slice-machine-ui 1.25.1-beta.1 → 1.25.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Simulator/components/FailedConnect/index.tsx +1 -1
- package/components/Simulator/index.tsx +17 -57
- package/lib/builders/SliceBuilder/SimulatorButton/index.tsx +4 -26
- package/lib/builders/SliceBuilder/index.tsx +1 -11
- package/lib/models/common/Environment.ts +0 -1
- package/out/404.html +1 -1
- package/out/_next/static/UH_nSG8k25NO9SYLlVW9n/_buildManifest.js +1 -0
- package/out/_next/static/chunks/{474-5a072e6fac61f703.js → 210-aee6116139329803.js} +2 -2
- package/out/_next/static/chunks/46-d22d7a121254e31d.js +8 -0
- package/out/_next/static/chunks/{696-b12edad30a3617e5.js → 696-b992b9e1ce75777e.js} +1 -1
- package/out/_next/static/chunks/{904-bed9c8dade39dc27.js → 904-1a755ebb0f5ee4ac.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-e32e7f8142e6cde0.js → _app-dd7fea6283b73c4e.js} +23 -23
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-97ab3b90b85d645d.js → [customTypeId]-d1a4a07e6b600fa6.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-84a22c5e480d3fa9.js → [pageTypeId]-a724ff12ef322020.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-3eb0fdce3228d389.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-ba6c3e2624f32fcd.js +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +3 -5
- package/src/apiClient.ts +0 -6
- package/src/modules/environment/index.ts +0 -6
- package/src/modules/modal/types.ts +0 -1
- package/src/modules/simulator/index.ts +5 -133
- package/src/modules/simulator/types.ts +0 -6
- package/src/modules/useSliceMachineActions.ts +1 -11
- package/test/__testutils__/createTestPlugin.ts +0 -1
- package/test/src/modules/__fixtures__/serverState.ts +0 -1
- package/test/src/modules/simulator.test.ts +0 -196
- package/components/CodeSpan/index.tsx +0 -23
- package/components/HTMLRenderer/index.tsx +0 -137
- package/components/Simulator/components/SetupModal/TextWithInlineCode.tsx +0 -21
- package/components/Simulator/components/SetupModal/index.tsx +0 -165
- package/out/_next/static/PAJQyEuW0rRHPSn18wYrk/_buildManifest.js +0 -1
- package/out/_next/static/chunks/777-7bc4ca95c82802e5.js +0 -8
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-a8213af71b0a99c9.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-60858a3cead6dc81.js +0 -1
- /package/out/_next/static/{PAJQyEuW0rRHPSn18wYrk → UH_nSG8k25NO9SYLlVW9n}/_ssgManifest.js +0 -0
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[777],{15952:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(75237),u=n(16360),o=n(73985),a=n(79687),c=n(81542),f=r.__importDefault(n(3758)),l=/(\w+)\[\d+]/;function s(t){let e={id:t.id,type:t.typ,lang:t.language};return t.uid?{...e,uid:t.uid}:e}function p(t){return(e,n)=>e.__TYPE__===i.EmptyContentType?void 0:i.StaticWidgetContent.is(e)&&!i.EmptyContent.is(e)?(0,c.StaticWidgetRenderer)(t).renderV1(e,o.Fetch.extractGroupOrFieldIfAny(n)):(0,f.default)(t).renderV1(e,o.Fetch.extractSliceFetchIfAny(n))}function d(t){return(e,n,r)=>n.__TYPE__===u.SlicesContentType&&e.__TYPE__===o.SlicesDefType?(0,f.default)(t).renderV2(e,n,o.Fetch.extractSliceFetchIfAny(r)):i.StaticWidgetContent.is(n)&&(0,o.isStaticFieldDef)(e)?(0,c.StaticWidgetRenderer)(t).renderV2(e,n,o.Fetch.extractGroupOrFieldIfAny(r)):h(t)(e)}function h(t){return e=>e.__TYPE__===o.SlicesDefType?(0,f.default)(t).renderDefault(e):e.__TYPE__===o.SimpleSliceDefType||e.__TYPE__===o.SharedSliceDefType||e.__TYPE__===o.CompositeSliceDefType?(0,c.SliceWidgetRenderer)(t).renderDefault(e):(0,c.StaticWidgetRenderer)(t).renderDefault(e)}let m=t=>{var e,n,r;return{renderV1(e,n,r,i,u,o,c,f,d){var h,m,v;let y=(u[e.groupLangId]||[]).filter(t=>t.id!==e.id).map(t=>s(t)),_=((e,n,r)=>{let i={};for(let[u,o]of n)if("uid"!==u){let a=u.match(l),c=a&&a[1],f=c?a[1]:u,s=c?i[f]:void 0;if(void 0!==r){let d=r.fields[u];void 0!==d&&(c?i[f]=Array.isArray(s)?[...s,p(t)(o,d)]:[p(t)(o,d)]:i[f]=p(t)(o,d))}else c?i[f]=Array.isArray(s)?[...s,p(t)(o,void 0)]:[p(t)(o,void 0)]:i[f]=p(t)(o,void 0)}return{[e.type]:i}})(e,n,d);return{id:e.id,uid:null!==(h=e.data.uid)&&void 0!==h?h:null,url:null!==(m=t.LinkResolver.buildUrl({linkResolver:f,pageType:e.type,masterLang:r,brokenRoute:c,doc:e}))&&void 0!==m?m:null,type:e.type,href:t.urlRewriter.enforceCDN(i),tags:e.tags,first_publication_date:e.first_publication_date?(0,a.formatDateTime)(e.first_publication_date):null,last_publication_date:e.last_publication_date?(0,a.formatDateTime)(e.last_publication_date):null,slugs:e.data.slugs,linked_documents:[],lang:e.language,alternate_languages:y,data:_,...o?e.metadata:{}}},renderWidgetV1:p(t),renderWidgetV2:d(t),renderV2(e,n,r,i,u,c,f,p,m,v){var y,_;let b=e.definitions.filter(t=>Object.keys(t).every(t=>"uid"!==t)).map(e=>{let n=Object.entries(e).find(([t])=>"config"!==t),r=n&&{apiId:n[1]};if(r){let u=i.find(([t])=>t===r.apiId),a=o.WidgetDef.encode(e),c=null==v?void 0:v.fields[r.apiId],f=r.apiId.match(l),s=Boolean(f&&f[1]),p=s?f[1]:r.apiId;return u?void 0===v||void 0!==c?[p,d(t)(a,u[1],c),s,]:void 0:void 0===v||void 0!==c?[p,h(t)(a),s]:void 0}throw Error("")}).reduce((t,e)=>{if(e){let[n,r,i]=e;if(i){let u=t[n];if(u){if(Array.isArray(u))return{...t,[n]:[...u,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(u)} should be an Array`)}return{...t,[n]:[r]}}return{...t,[n]:r}}return t},{}),T=(c[n.groupLangId]||[]).filter(t=>t.id!==n.id).map(t=>s(t));return{id:n.id,uid:null!==(y=n.data.uid)&&void 0!==y?y:null,url:null!==(_=t.LinkResolver.buildUrl({linkResolver:m,pageType:n.type,masterLang:r,brokenRoute:p,doc:n}))&&void 0!==_?_:null,type:n.type,href:t.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:T,data:b,...f?n.metadata:{}}},renderMocks(e,n){let r=n.reduce((t,[,e])=>{if(i.UIDContent.is(e))return e.value},void 0),a=e.definitions.filter(t=>Object.keys(t).every(t=>"uid"!==t)).map(e=>{let r=Object.entries(e).find(([t])=>"config"!==t),a=r&&{apiId:r[1]};if(a){var s,p,d;let m=n.find(([t])=>t===a.apiId),v=o.WidgetDef.encode(e),y=a.apiId.match(l),_=Boolean(y&&y[1]),b=_?y[1]:a.apiId;if(!m)return[b,h(t)(v),_];return[b,(p=v,(d=m[1]).__TYPE__===u.SlicesContentType&&p.__TYPE__===o.SlicesDefType?(0,f.default)(t).renderMocks(p,d):i.StaticWidgetContent.is(d)&&(0,o.isStaticFieldDef)(p)?(0,c.StaticWidgetRenderer)(t).renderMocks(p,d):h(t)(p)),_]}throw Error("")}).reduce((t,e)=>{if(e){let[n,r,i]=e;if(i){let u=t[n];if(u){if(Array.isArray(u))return{...t,[n]:[...u,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(u)} should be an Array`)}return{...t,[n]:[r]}}return{...t,[n]:r}}return t},{});return{id:"mock-doc-id",uid:r,url:r?`/${r}`:null,type:e.id,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:a}},renderDefaultWidget:h(t)}};e.default=m},88985:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=e.Models=e.DocumentRenderer=void 0;let r=n(87783);var i=n(15952);Object.defineProperty(e,"DocumentRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),e.Models=r.__importStar(n(73985)),e.Utils=r.__importStar(n(79687)),r.__exportStar(n(81542),e)},59527:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentContent=void 0;let r=n(96355);e.DocumentContent=class{constructor(t){Object.defineProperty(this,"fieldTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPositions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgets",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),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,"parsed",{enumerable:!0,configurable:!0,writable:!0,value:new Map});let{widgets:e,types:n,positions:i,slugs:u,uid:o}=r.DocumentData.partitionData(t);this.fieldTypes=n,this.fieldPositions=i,this.slugs=u,this.uid=o,this.widgets=e}getWidget(t){let e=r.DocumentData.getWidget(t,this.widgets,this.fieldTypes,this.fieldPositions,this.parsed);return this.parsed.set(t,e),e}parseAll(){let t=r.DocumentData.fromJson(this.widgets,this.fieldTypes,this.fieldPositions);return this.parsed=t,t}}},53264:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentMetadata=void 0;let r=n(87783),i=n(47320),u=r.__importStar(n(87830)),o=u.exact(u.intersection([u.type({title:u.string,description:u.string}),u.partial({imageURL:(0,i.nullable)(u.string)}),]));e.DocumentMetadata={empty:{title:"Untitled document",description:"",imageURL:void 0},codec:o}},72375:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RelatedDocument=void 0;let r=n(87783),i=n(47320),u=r.__importStar(n(87830));e.RelatedDocument=u.exact(u.intersection([u.type({typ:u.string,id:u.string,language:u.string,groupLangId:u.string}),u.partial({uid:(0,i.nullable)(u.string)}),]))},27380:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RelatedDocument=e.DocumentMetadata=e.DocumentContent=e.ApiDocumentCodec=e.GroupLangId=void 0;let r=n(87783),i=n(37581),u=n(9554),o=n(42275),a=r.__importStar(n(87830)),c=n(23284),f=n(2932),l=n(59527),s=n(53264);e.GroupLangId=a.string;let p=a.exact(a.intersection([a.type({id:a.string,version:a.string,type:a.string,groupLangId:e.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(s.DocumentMetadata.codec),s.DocumentMetadata.empty)}),])),d=(0,f.mapOutput)(p,t=>({id:t.id,version:t.version,type:t.type,groupLangId:t.groupLangId,tags:t.tags,data:new l.DocumentContent(t.data),language:t.language,first_publication_date:t.first_publication_date,last_publication_date:t.last_publication_date,metadata:t.metadata}));e.ApiDocumentCodec=new a.Type("DocCodec",t=>d.is(t),(t,e)=>(0,o.pipe)(p.validate(t,e),u.either.chain(t=>a.success(d.encode(t)))),t=>t);var h=n(59527);Object.defineProperty(e,"DocumentContent",{enumerable:!0,get:function(){return h.DocumentContent}});var m=n(53264);Object.defineProperty(e,"DocumentMetadata",{enumerable:!0,get:function(){return m.DocumentMetadata}});var v=n(72375);Object.defineProperty(e,"RelatedDocument",{enumerable:!0,get:function(){return v.RelatedDocument}})},75892:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromBoolean=e.BooleanFieldDef=e.BooleanFieldDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.BooleanFieldDefType="booleanFieldDef",e.BooleanFieldDef=(0,u.mapOutput)(i.strict({booleanField:i.string,config:i.strict({default_value:i.boolean})}),t=>({name:t.booleanField,__TYPE__:e.BooleanFieldDefType})),e.fromBoolean=function(t,e){var n;return{booleanField:t,config:{default_value:(null===(n=e.config)||void 0===n?void 0:n.default_value)||!1}}}},14871:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromColor=e.ColorDef=e.ColorDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.ColorDefType="colorDef",e.ColorDef=(0,u.mapOutput)(i.strict({color:i.string}),t=>({name:t.color,__TYPE__:e.ColorDefType})),e.fromColor=function(t){return{color:t}}},34540:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromDate=e.DateDef=e.DateDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.DateDefType="dateDef",e.DateDef=(0,u.mapOutput)(i.strict({date:i.string}),t=>({name:t.date,__TYPE__:e.DateDefType})),e.fromDate=function(t){return{date:t}}},63585:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromEmbed=e.EmbedDef=e.EmbedDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.EmbedDefType="embedDef",e.EmbedDef=(0,u.mapOutput)(i.strict({embed:i.string}),t=>({name:t.embed,__TYPE__:e.EmbedDefType})),e.fromEmbed=function(t){return{embed:t}}},98062:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},48767:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromGeoPoint=e.GeoPointDef=e.GeoPointDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.GeoPointDefType="geopointDef",e.GeoPointDef=(0,u.mapOutput)(i.strict({geopoint:i.string}),t=>({name:t.geopoint,__TYPE__:e.GeoPointDefType})),e.fromGeoPoint=function(t){return{geopoint:t}}},48568:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromGroup=e.GroupDef=e.GroupDefType=void 0;let r=n(87783),i=n(47320),u=r.__importStar(n(87830)),o=n(99169);e.GroupDefType="groupDef",e.GroupDef=(0,i.addType)(u.strict({name:u.string,fields:u.array(o.SimpleFieldDef)}),e.GroupDefType),e.fromGroup=function(t,e){var n;let r=Object.entries((null===(n=e.config)||void 0===n?void 0:n.fields)||{}).map(([t,e])=>(0,o.fromSimpleField)(t,e));return{name:t,fields:r}}},55702:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromImage=e.ImageDef=e.ImageDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.ImageDefType="imageDef",e.ImageDef=(0,u.mapOutput)(i.strict({image:i.string,config:i.strict({thumbnails:i.array(i.string)})}),t=>({name:t.image,config:t.config,__TYPE__:e.ImageDefType})),e.fromImage=function(t,e){var n,r;return{image:t,config:{thumbnails:(null===(r=null===(n=e.config)||void 0===n?void 0:n.thumbnails)||void 0===r?void 0:r.map(t=>t.name))||[]}}}},25329:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromIntegrationField=e.IntegrationFieldDef=e.IntegrationFieldDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.IntegrationFieldDefType="integrationFieldDef",e.IntegrationFieldDef=(0,u.mapOutput)(i.strict({integrationFields:i.string}),t=>({name:t.integrationFields,__TYPE__:e.IntegrationFieldDefType})),e.fromIntegrationField=function(t){return{integrationFields:t}}},28940:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromAnyLink=e.AnyLinkDef=e.AnyLinkDefType=void 0;let r=n(87783),i=n(47320),u=r.__importStar(n(87830));e.AnyLinkDefType="ConfigAnyLinkDef",e.AnyLinkDef=(0,i.addType)(u.partial({select:(0,i.nullable)(u.literal("any"))}),e.AnyLinkDefType),e.fromAnyLink=function(t){var n;if(null===(n=t.config)||void 0===n?void 0:n.select)throw Error("Invalid link type provided, should not be of type any");return e.AnyLinkDef.encode({select:"any"})}},39151:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultDocumentLinkDef=e.fromDocumentLink=e.DocumentLinkDef=e.DocumentLinkDefType=void 0;let r=n(87783),i=n(47320),u=r.__importStar(n(87830));e.DocumentLinkDefType="ConfigDocumentLinkDef",e.DocumentLinkDef=(0,i.addType)(u.strict({select:u.literal("document"),customtypes:u.readonlyArray(u.string)}),e.DocumentLinkDefType),e.fromDocumentLink=function(t){var n;if("document"!==(null===(n=t.config)||void 0===n?void 0:n.select))throw Error('Invalid link type provided, should contain { select: "document" }');return e.DocumentLinkDef.encode({select:"document",customtypes:t.config.customtypes||[]})},e.defaultDocumentLinkDef=function(){return e.DocumentLinkDef.encode({select:"document",customtypes:[]})}},4857:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultMediaLinkDef=e.fromMediaLink=e.MediaLinkDef=e.MediaLinkDefType=void 0;let r=n(87783),i=n(47320),u=r.__importStar(n(87830));e.MediaLinkDefType="ConfigMediaLinkDef",e.MediaLinkDef=(0,i.addType)(u.strict({select:u.literal("media")}),e.MediaLinkDefType),e.fromMediaLink=function(t){var n;if("media"!==(null===(n=t.config)||void 0===n?void 0:n.select))throw Error('Invalid link type provided, should contain { select: "media" }');return e.MediaLinkDef.encode({select:"media"})},e.defaultMediaLinkDef=function(){return e.MediaLinkDef.encode({select:"media"})}},29767:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultWebLinkDef=e.fromWebLink=e.WebLinkDef=e.WebLinkDefType=void 0;let r=n(87783),i=n(47320),u=r.__importStar(n(87830));e.WebLinkDefType="ConfigWebLinkDef",e.WebLinkDef=(0,i.addType)(u.strict({select:u.literal("web")}),e.WebLinkDefType),e.fromWebLink=function(t){var n;if("web"!==(null===(n=t.config)||void 0===n?void 0:n.select))throw Error('Invalid link type provided, should contain { select: "web" }');return e.WebLinkDef.encode({select:"web"})},e.defaultWebLinkDef=function(){return e.WebLinkDef.encode({select:"web"})}},27956:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWebLinkDef=e.isDocumentLinkDef=e.isAnyLinkDef=e.isMediaLinkDef=e.defaultLinkDef=e.fromLink=e.LinkDef=e.LinkDefType=void 0;let r=n(87783),i=n(4633),u=r.__importStar(n(87830)),o=n(2932),a=n(28940),c=n(39151),f=n(4857),l=n(29767),s=u.union([f.MediaLinkDef,c.DocumentLinkDef,l.WebLinkDef,a.AnyLinkDef]);e.LinkDefType="LinkDefType",e.LinkDef=(0,o.mapOutput)(u.strict({link:u.string,config:s}),t=>({name:t.link,__TYPE__:e.LinkDefType,config:t.config})),e.fromLink=function(t,e){let n=(()=>{var t;switch(null===(t=e.config)||void 0===t?void 0:t.select){case"document":return(0,c.fromDocumentLink)(e);case"media":return(0,f.fromMediaLink)(e);case"web":return(0,l.fromWebLink)(e);default:return(0,a.fromAnyLink)(e)}})();return{link:t,config:n}},e.defaultLinkDef=function(t){let e=(()=>{switch(t){case i.LinksTypes.DocumentLink:return(0,c.defaultDocumentLinkDef)();case i.LinksTypes.ImageLink:case i.LinksTypes.FileLink:return(0,f.defaultMediaLinkDef)();case i.LinksTypes.ExternalLink:return(0,l.defaultWebLinkDef)()}})();return{name:"",config:e,__TYPE__:"LinkDefType"}},e.isMediaLinkDef=t=>t.config.__TYPE__===f.MediaLinkDefType,e.isAnyLinkDef=t=>t.config.__TYPE__===a.AnyLinkDefType,e.isDocumentLinkDef=t=>t.config.__TYPE__===c.DocumentLinkDefType,e.isWebLinkDef=t=>t.config.__TYPE__===l.WebLinkDefType,r.__exportStar(n(28940),e),r.__exportStar(n(39151),e),r.__exportStar(n(4857),e),r.__exportStar(n(29767),e)},55598:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromNumber=e.NumberDef=e.NumberDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.NumberDefType="numberDef",e.NumberDef=(0,u.mapOutput)(i.strict({number:i.string}),t=>({name:t.number,__TYPE__:e.NumberDefType})),e.fromNumber=function(t){return{number:t}}},49844:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromRange=e.RangeDef=e.RangeDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.RangeDefType="RangeDef",e.RangeDef=(0,u.mapOutput)(i.strict({range:i.string}),t=>({name:t.range,__TYPE__:e.RangeDefType})),e.fromRange=function(t){return{range:t}}},63204:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromSelect=e.SelectDef=e.SelectDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.SelectDefType="selectDef",e.SelectDef=(0,u.mapOutput)(i.strict({select:i.string,config:i.strict({options:i.readonlyArray(i.string)})}),t=>({name:t.select,config:t.config,__TYPE__:e.SelectDefType})),e.fromSelect=function(t,e){var n;return{select:t,config:{options:(null===(n=e.config)||void 0===n?void 0:n.options)||[]}}}},62543:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromSeparator=e.SeparatorDef=e.SeparatorDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.SeparatorDefType="separatorDef",e.SeparatorDef=(0,u.mapOutput)(i.strict({separator:i.string}),t=>({name:t.separator,__TYPE__:e.SeparatorDefType})),e.fromSeparator=function(t){return{separator:t}}},99169:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromSimpleField=e.SimpleFieldDef=void 0;let r=n(87783),i=n(54249),u=r.__importStar(n(87830)),o=n(75892),a=n(14871),c=n(34540),f=n(63585),l=n(48767),s=n(55702),p=n(25329),d=n(27956),h=n(55598),m=n(49844),v=n(63204),y=n(62543),_=n(18213),b=n(22059),T=n(13008),I=n(53526);e.SimpleFieldDef=u.union([I.UIDDef,_.StructuredTextDef,s.ImageDef,d.LinkDef,c.DateDef,T.TimestampDef,a.ColorDef,h.NumberDef,b.TextDef,v.SelectDef,o.BooleanFieldDef,f.EmbedDef,l.GeoPointDef,y.SeparatorDef,p.IntegrationFieldDef,m.RangeDef,]),e.fromSimpleField=function(t,e){switch(e.type){case i.WidgetTypes.UID:return(0,I.fromUID)(t);case i.WidgetTypes.RichText:return(0,_.fromRichText)(t);case i.WidgetTypes.Image:return(0,s.fromImage)(t,e);case i.WidgetTypes.Link:return(0,d.fromLink)(t,e);case i.WidgetTypes.Date:return(0,c.fromDate)(t);case i.WidgetTypes.Timestamp:return(0,T.fromTimestamp)(t);case i.WidgetTypes.Color:return(0,a.fromColor)(t);case i.WidgetTypes.Number:return(0,h.fromNumber)(t);case i.WidgetTypes.Text:return(0,b.fromText)(t);case i.WidgetTypes.Select:return(0,v.fromSelect)(t,e);case i.WidgetTypes.BooleanField:return(0,o.fromBoolean)(t,e);case i.WidgetTypes.Embed:return(0,f.fromEmbed)(t);case i.WidgetTypes.GeoPoint:return(0,l.fromGeoPoint)(t);case i.WidgetTypes.Separator:return(0,y.fromSeparator)(t);case i.WidgetTypes.IntegrationField:return(0,p.fromIntegrationField)(t);case i.WidgetTypes.Range:return(0,m.fromRange)(t)}}},86714:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromStatic=e.isSimpleFieldDef=e.StaticDef=void 0;let r=n(87783),i=n(54249),u=r.__importStar(n(87830)),o=n(48568),a=n(99169);e.StaticDef=u.union([o.GroupDef,a.SimpleFieldDef]),e.isSimpleFieldDef=function(t){return t.__TYPE__!==o.GroupDefType},e.fromStatic=function(t,e){return e.type===i.WidgetTypes.Group?(0,o.fromGroup)(t,e):(0,a.fromSimpleField)(t,e)}},18213:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromRichText=e.StructuredTextDef=e.StructuredTextDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.StructuredTextDefType="structuredTextDef",e.StructuredTextDef=(0,u.mapOutput)(i.strict({structuredtext:i.string}),t=>({name:t.structuredtext,__TYPE__:e.StructuredTextDefType})),e.fromRichText=function(t){return{structuredtext:t}}},22059:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromText=e.TextDef=e.TextDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.TextDefType="textDef",e.TextDef=(0,u.mapOutput)(i.strict({text:i.string}),t=>({name:t.text,__TYPE__:e.TextDefType})),e.fromText=function(t){return{text:t}}},13008:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromTimestamp=e.TimestampDef=e.TimestampDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.TimestampDefType="timestampDef",e.TimestampDef=(0,u.mapOutput)(i.strict({timestamp:i.string}),t=>({name:t.timestamp,__TYPE__:e.TimestampDefType})),e.fromTimestamp=function(t){return{timestamp:t}}},53526:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromUID=e.UIDDef=e.UIDDefType=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(2932);e.UIDDefType="UIDDef",e.UIDDef=(0,u.mapOutput)(i.strict({uid:i.string}),t=>({name:t.uid,__TYPE__:e.UIDDefType})),e.fromUID=function(t){return{uid:t}}},67884:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromWidget=e.WidgetDef=e.isStaticFieldDef=void 0;let r=n(87783),i=n(54249),u=r.__importStar(n(87830)),o=n(1612),a=n(86714);e.isStaticFieldDef=function(t){return t.__TYPE__!==o.SimpleSliceDefType&&t.__TYPE__!==o.SharedSliceDefType&&t.__TYPE__!==o.CompositeSliceDefType&&t.__TYPE__!==o.SlicesDefType},e.WidgetDef=u.union([a.StaticDef,o.SlicesDef,o.SliceDef]),e.fromWidget=function(t,e,n){switch(e.type){case i.WidgetTypes.LegacySlices:case i.WidgetTypes.Slices:return(0,o.fromSlices)(t,e,n);default:return(0,a.fromStatic)(t,e)}}},239:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromCustomType=e.ApiModel=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=n(67884);e.ApiModel=i.strict({id:i.string,definitions:i.array(u.WidgetDef)}),e.fromCustomType=function(t,e){let n=Object.values(t.json).map(t=>Object.entries(t)).reduce((t,e)=>[...t,...e],[]),r=n.map(([t,n])=>(0,u.fromWidget)(t,n,e));return{id:t.id,definitions:r}},r.__exportStar(n(75892),e),r.__exportStar(n(14871),e),r.__exportStar(n(34540),e),r.__exportStar(n(63585),e),r.__exportStar(n(98062),e),r.__exportStar(n(48767),e),r.__exportStar(n(48568),e),r.__exportStar(n(55702),e),r.__exportStar(n(25329),e),r.__exportStar(n(27956),e),r.__exportStar(n(55598),e),r.__exportStar(n(49844),e),r.__exportStar(n(63204),e),r.__exportStar(n(62543),e),r.__exportStar(n(99169),e),r.__exportStar(n(1612),e),r.__exportStar(n(86714),e),r.__exportStar(n(18213),e),r.__exportStar(n(22059),e),r.__exportStar(n(13008),e),r.__exportStar(n(53526),e),r.__exportStar(n(67884),e)},55094:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromCompositeSlice=e.CompositeSliceDef=e.CompositeSliceDefType=void 0;let r=n(87783),i=n(54249),u=n(47320),o=r.__importStar(n(87830)),a=n(48568),c=n(99169);e.CompositeSliceDefType="compositeSliceDef",e.CompositeSliceDef=(0,u.addType)(o.type({name:o.string,primary:o.array(c.SimpleFieldDef),items:a.GroupDef}),e.CompositeSliceDefType),e.fromCompositeSlice=function(t,e){return{name:t,primary:Object.entries(e["non-repeat"]||{}).map(([t,e])=>(0,c.fromSimpleField)(t,e)),items:(0,a.fromGroup)(t,{type:i.WidgetTypes.Group,config:{fields:e.repeat||{}}})}}},16375:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromSharedSlice=e.SharedSliceDef=e.SharedSliceDefType=e.VariationDef=e.VariationDefType=void 0;let r=n(87783),i=n(47320),u=r.__importStar(n(87830)),o=n(99169);e.VariationDefType="variationDef",e.VariationDef=(0,i.addType)(u.strict({id:u.string,primary:u.array(o.SimpleFieldDef),items:u.array(o.SimpleFieldDef),version:u.string}),e.VariationDefType),e.SharedSliceDefType="sharedSliceDef",e.SharedSliceDef=(0,i.addType)(u.strict({name:u.string,variations:u.array(e.VariationDef)}),e.SharedSliceDefType),e.fromSharedSlice=function(t,e){return{name:t,variations:e.variations.map(t=>({id:t.id,primary:Object.entries(t.primary||{}).map(([t,e])=>(0,o.fromSimpleField)(t,e)),items:Object.entries(t.items||{}).map(([t,e])=>(0,o.fromSimpleField)(t,e)),version:t.version}))}}},51572:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromSimpleSlice=e.SimpleSliceDef=e.SimpleSliceDefType=void 0;let r=n(87783),i=n(47320),u=r.__importStar(n(87830)),o=n(86714);e.SimpleSliceDefType="simpleSliceDef",e.SimpleSliceDef=(0,i.addType)(u.type({name:u.string,widget:o.StaticDef}),e.SimpleSliceDefType),e.fromSimpleSlice=function(t,e){return{name:t,widget:(0,o.fromStatic)(t,e)}}},1566:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromSlice=e.SliceDef=void 0;let r=n(87783),i=n(66903),u=r.__importStar(n(87830)),o=n(1612),a=n(55094),c=n(16375),f=n(51572);e.SliceDef=u.union([f.SimpleSliceDef,c.SharedSliceDef,a.CompositeSliceDef]),e.fromSlice=function(t,e){switch(e.type){case i.SlicesTypes.SharedSlice:return(0,o.fromSharedSlice)(t,e);case i.SlicesTypes.Slice:return(0,o.fromCompositeSlice)(t,e);default:return(0,f.fromSimpleSlice)(t,e)}}},83673:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromSlices=e.SlicesDef=e.SlicesDefType=void 0;let r=n(87783),i=n(66903),u=n(47320),o=r.__importStar(n(87830)),a=n(1566);e.SlicesDefType="slicesDef",e.SlicesDef=(0,u.addType)(o.type({name:o.string,slices:o.array(a.SliceDef)}),e.SlicesDefType),e.fromSlices=function(t,e,n){var r;return{name:t,slices:Object.entries((null===(r=e.config)||void 0===r?void 0:r.choices)||{}).reduce((t,[e,r])=>{if(r.type===i.SlicesTypes.SharedSlice){let u=n[e];return u?[...t,(0,a.fromSlice)(e,u)]:t}return[...t,(0,a.fromSlice)(e,r)]},[]).filter(t=>void 0!==t)}}},1612:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(55094),e),r.__exportStar(n(16375),e),r.__exportStar(n(51572),e),r.__exportStar(n(1566),e),r.__exportStar(n(83673),e)},15087:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ApiVersion=void 0,(n=e.ApiVersion||(e.ApiVersion={})).v1="v1",n.v2="v2",n.mocks="mocks"},43134:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.customParam=e.langParam=e.uidParam=e.staticParam=e.LinkResolver=e.Rule=void 0;let r=n(87783),i=r.__importStar(n(87830)),u=i.type({isOptional:i.boolean,name:i.string,type:i.literal("custom")}),o=i.type({isOptional:i.boolean,type:i.literal("uid")}),a=i.type({isOptional:i.boolean,type:i.literal("lang")}),c=i.union([u,o,a]),f=i.type({value:i.string,type:i.literal("static")}),l=i.union([f,c]),s=i.type({trailingSlash:i.boolean,params:i.array(l)}),p=i.type({customTypeID:i.string,relationName:i.string,targetCustomTypeID:i.string}),d=i.record(i.string,i.array(p));e.Rule=i.type({pattern:s,resolvers:d}),e.LinkResolver=i.record(i.string,i.record(i.string,i.record(i.string,e.Rule))),e.staticParam=function(t){return{value:t,type:"static"}},e.uidParam=function(t){return{isOptional:t,type:"uid"}},e.langParam=function(t){return{isOptional:t,type:"lang"}},e.customParam=function(t,e){return{name:t,isOptional:e,type:"custom"}}},35280:function(t,e,n){"use strict";var r=n(48834).lW;function i(t){return{encode(e){let n=e.length;if(3>=r.byteLength(n.toString(),"utf8")){let i=`${n}`.padStart(3,"0");return t+i+e}throw Error(`ID is too long. Its size is ${n} and should be inferior to 1000`)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.IDEncoders=e.IDEncoder=e.decodeDocId=e.encodeDocId=void 0,e.encodeDocId=function(t,e){return`${t}%%${null!=e?e:""}`},e.decodeDocId=function(t,e){let[n,r]=t.split("%%");if(n&&r)return[n,r];if(n)return[n];throw Error(`Unable to read from for extension ${e} with encoded api key ${t}`)},e.IDEncoder=i,e.IDEncoders={documentLinks:i("=&="),documentUrls:i(">&<"),integrationFields:i("%!%")}},71659:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractSliceFetchIfAny=e.extractGroupOrFieldIfAny=e.DocRelationType=e.Docs=e.Doc=e.DocType=e.Simple=e.DocRelationC=e.GroupType=e.Slice=e.SharedSlice=e.SharedSliceType=e.CompositeSlice=e.CompositeSliceType=e.VariationC=e.SliceZone=e.SliceZoneType=e.FieldC=e.GroupOrFieldC=e.Group=e.SimpleField=e.SimpleFieldType=void 0;let r=n(87783),i=r.__importStar(n(87830));e.SimpleFieldType="SimpleField",e.SimpleField=i.strict({TYPE:i.literal(e.SimpleFieldType),name:i.string,legacy:i.boolean}),e.Group=i.recursion("Group",()=>i.strict({TYPE:i.literal(e.GroupType),name:i.string,fields:i.record(i.string,e.FieldC)})),e.GroupOrFieldC=i.recursion("GroupOrField",()=>i.union([e.Simple,e.Group])),e.FieldC=i.recursion("Field",()=>i.union([e.GroupOrFieldC,e.SliceZone])),e.SliceZoneType="SliceZone",e.SliceZone=i.recursion("SliceZone",()=>i.strict({TYPE:i.literal(e.SliceZoneType),name:i.string,slices:i.record(i.string,i.union([e.GroupOrFieldC,e.Slice]))})),e.VariationC=i.recursion("Variation",()=>i.strict({TYPE:i.literal("Variation"),nonRepeat:i.strict({fields:i.record(i.string,e.FieldC)}),repeat:i.strict({fields:i.record(i.string,e.FieldC)})})),e.CompositeSliceType="CompositeSlice",e.CompositeSlice=i.strict({TYPE:i.literal(e.CompositeSliceType),nonRepeat:i.strict({fields:i.record(i.string,e.FieldC),TYPE:i.literal("NonRepeat")}),repeat:i.strict({fields:i.record(i.string,e.FieldC),TYPE:i.literal("Repeat")})}),e.SharedSliceType="SharedSlice",e.SharedSlice=i.strict({TYPE:i.literal(e.SharedSliceType),variations:i.record(i.string,e.VariationC)}),e.Slice=i.union([e.SharedSlice,e.CompositeSlice]),e.GroupType="Group",e.DocRelationC=i.recursion("DocRelation",()=>i.strict({TYPE:i.literal(e.DocRelationType),name:i.string,uuid:i.string,fields:i.record(i.string,i.record(i.string,e.FieldC))})),e.Simple=i.union([e.DocRelationC,e.SimpleField]),e.DocType="Doc",e.Doc=i.recursion("Field",()=>i.strict({TYPE:i.literal("Doc"),typ:i.string,fields:i.record(i.string,e.FieldC)})),e.Docs=i.recursion("Field",()=>i.strict({docs:i.record(i.string,i.union([e.DocRelationC,e.SimpleField,e.Group,e.SliceZone])),docRelationsMap:i.record(i.string,e.DocRelationC)})),e.DocRelationType="DocRelation",e.extractGroupOrFieldIfAny=function(t){return void 0!==t&&(t.TYPE===e.SimpleFieldType||t.TYPE===e.DocRelationType||t.TYPE===e.GroupType)?t:void 0},e.extractSliceFetchIfAny=function(t){if(void 0!==t&&t.TYPE===e.SliceZoneType)return t}},73985:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkResolver=e.Fetch=e.Extensions=e.ApiVersion=void 0;let r=n(87783);r.__exportStar(n(27380),e),r.__exportStar(n(239),e);var i=n(15087);Object.defineProperty(e,"ApiVersion",{enumerable:!0,get:function(){return i.ApiVersion}}),e.Extensions=r.__importStar(n(35280)),e.Fetch=r.__importStar(n(71659));var u=n(43134);Object.defineProperty(e,"LinkResolver",{enumerable:!0,get:function(){return u.LinkResolver}})},79687:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.formatDate=e.formatDateTime=e.filterDouble=e.writeEmptyStringOrNull=e.renderIfNoFetchOrFetchDefined=void 0;let r=n(87783),i=r.__importStar(n(72720));e.renderIfNoFetchOrFetchDefined=function(t,e,n){if(void 0===t)return n(void 0);{let r=t[e];return void 0===r?i.none:n(r)}},e.writeEmptyStringOrNull=function(t,e){return null==t?e?"":null:t},e.filterDouble=function(t){if(""===t)return null;let e=Number(t);return Number.isNaN(e)?null:e},e.formatDateTime=function(t){return t.toISOString().replace(/\.\d{3}Z$/,"+0000")},e.formatDate=function(t){return t.toISOString().replace(/T.*/,"")},e.isEmpty=function(t){for(let e in t)return!1;return!0}},937:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=r.__importDefault(n(65082)),u=t=>({renderV1:(e,n)=>({type:"Group",value:e.value.map(e=>(0,i.default)(t).renderObjectOfSimpleWidgetV1(e.value,null==n?void 0:n.fields))}),renderV2:(e,n,r)=>n.value.map(n=>(0,i.default)(t).renderObjectOfSimpleWidgetV2(n.value,null==r?void 0:r.fields,e.fields,{withFetch:"filter"},{default:"default",withFetch:"default",withFetchField:"default"})),renderDefault:t=>[],renderMocks:(e,n)=>n.value.map(n=>(0,i.default)(t).renderObjectOfSimpleWidgetMocks(n.value,e.fields))});e.default=u},65082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(75237),u=n(32296),o=n(99616),a=n(45337),c=n(48025),f=n(24299),l=n(12149),s=n(92425),p=r.__importStar(n(72720)),d=n(73985),h=n(71659),m=n(79687),v=n(26041),y=r.__importDefault(n(32955));function _(t){return void 0!==t&&t.TYPE===h.SimpleFieldType?t:void 0}function b(t){return void 0!==t&&t.TYPE===h.DocRelationType?t:void 0}let T=t=>({renderV1(e,n){if(e.__TYPE__===u.StructuredTextContentType)return(0,v.StructuredTextRenderer)(t).renderV1(e,_(n));if(e.__TYPE__===c.ImageContentType)return(0,v.ImageRenderer)(t).renderV1(e);if(e.__TYPE__===i.WidgetTypes.Field)return v.FieldRenderer.renderV1(e);if(e.__TYPE__===l.LinkContentType)return(0,v.LinkRenderer)(t).renderV1(e,b(n));if(e.__TYPE__===u.EmbedContentType)return v.EmbedRenderer.renderV1(e);else if(e.__TYPE__===a.GeoPointContentType)return v.GeoPointRenderer.renderV1(e);else if(e.__TYPE__===i.UIDContentType)return y.default.renderV1(e);else if(e.__TYPE__===f.IntegrationFieldsContentType)return(0,v.IntegrationFieldsRenderer)(t).renderV1(e);else if(e.__TYPE__===u.SeparatorContentType)return v.SeparatorRenderer.renderV1(e);else if(e.__TYPE__===o.BooleanContentType)return v.BooleanRenderer.renderV1(e);else return null},renderV2(e,n,r){if(e.__TYPE__===d.StructuredTextDefType&&u.StructuredTextContent.is(n))return(0,v.StructuredTextRenderer)(t).renderV2(e,n,_(r));if(e.__TYPE__===d.ImageDefType&&u.ImageContent.is(n))return(0,v.ImageRenderer)(t).renderV2(e,n);if(e.__TYPE__===d.LinkDefType&&u.Links.LinkContent.is(n))return(0,v.LinkRenderer)(t).renderV2(e,n,b(r));if(e.__TYPE__===d.EmbedDefType&&u.EmbedContent.is(n))return v.EmbedRenderer.renderV2(e,n);if(e.__TYPE__===d.GeoPointDefType&&u.GeoPointContent.is(n))return v.GeoPointRenderer.renderV2(e,n);else if(e.__TYPE__===d.UIDDefType&&i.UIDContent.is(n))return y.default.renderV2(e,n);else if(e.__TYPE__===d.IntegrationFieldDefType&&u.IntegrationFieldsContent.is(n))return(0,v.IntegrationFieldsRenderer)(t).renderV2(e,n);else if(e.__TYPE__===d.SeparatorDefType&&u.SeparatorContent.is(n))return v.SeparatorRenderer.renderV2(e,n);else if(e.__TYPE__===d.BooleanFieldDefType&&u.BooleanContent.is(n))return v.BooleanRenderer.renderV2(e,n);else if((null==n?void 0:n.__TYPE__)===i.WidgetTypes.Field)return v.FieldRenderer.renderV2(e,n);else return null},renderDefault(e){if(e.__TYPE__===d.LinkDefType)return(0,v.LinkRenderer)(t).renderDefault(e);if(e.__TYPE__===d.EmbedDefType)return v.EmbedRenderer.renderDefault(e);if(e.__TYPE__===d.GeoPointDefType)return v.GeoPointRenderer.renderDefault(e);if(e.__TYPE__===d.StructuredTextDefType)return(0,v.StructuredTextRenderer)(t).renderDefault(e);if(e.__TYPE__===d.ImageDefType)return(0,v.ImageRenderer)(t).renderDefault(e);else if(e.__TYPE__===d.SeparatorDefType)return v.SeparatorRenderer.renderDefault(e);else if(e.__TYPE__===d.UIDDefType)return y.default.renderDefault(e);else if(e.__TYPE__===d.BooleanFieldDefType)return v.BooleanRenderer.renderDefault(e);else if(e.__TYPE__===d.IntegrationFieldDefType)return(0,v.IntegrationFieldsRenderer)(t).renderDefault(e);else return v.FieldRenderer.renderDefault(e)},renderMocks(e,n){if(e.__TYPE__===d.StructuredTextDefType&&u.StructuredTextContent.is(n))return(0,v.StructuredTextRenderer)(t).renderMocks(e,n);if(e.__TYPE__===d.ImageDefType&&u.ImageContent.is(n))return(0,v.ImageRenderer)(t).renderMocks(e,n);if(e.__TYPE__===d.LinkDefType&&u.Links.LinkContent.is(n))return(0,v.LinkRenderer)(t).renderMocks(e,n);if(e.__TYPE__===d.EmbedDefType&&u.EmbedContent.is(n))return v.EmbedRenderer.renderMocks(e,n);if(e.__TYPE__===d.GeoPointDefType&&u.GeoPointContent.is(n))return v.GeoPointRenderer.renderMocks(e,n);else if(e.__TYPE__===d.UIDDefType&&i.UIDContent.is(n))return y.default.renderMocks(e,n);else if(e.__TYPE__===d.IntegrationFieldDefType&&u.IntegrationFieldsContent.is(n))return(0,v.IntegrationFieldsRenderer)(t).renderMocks(e,n);else if(e.__TYPE__===d.SeparatorDefType&&u.SeparatorContent.is(n))return v.SeparatorRenderer.renderMocks(e,n);else if(e.__TYPE__===d.BooleanFieldDefType&&u.BooleanContent.is(n))return v.BooleanRenderer.renderMocks(e,n);else if((null==n?void 0:n.__TYPE__)===i.WidgetTypes.Field)return v.FieldRenderer.renderMocks(e,n);else return null},renderObjectOfSimpleWidgetV1(t,e){let n=t instanceof Array?t:Object.entries(t);return Object.fromEntries((0,s.compact)(n.map(([t,n])=>i.EmptyContent.is(n)?p.none:(0,m.renderIfNoFetchOrFetchDefined)(e,t,e=>p.some([t,this.renderV1(n,e)])))))},renderObjectOfSimpleWidgetV2(t,e,n,r,u){let o=t instanceof Array?Object.fromEntries(t):t,a={};for(let c of n){let f=c.name,l=o[f];if(void 0===l)e&&f in e||!e?a[f]=this.renderDefault(c):e&&"default"===r.withFetch&&(a[f]=this.renderDefault(c));else if(i.EmptyContent.is(l))e&&f in e?"default"===u.withFetchField?a[f]=this.renderDefault(c):"render"===u.withFetchField&&(a[f]=this.renderV2(c,l,e[f])):e?"default"===u.withFetch&&(a[f]=this.renderDefault(c)):"default"===u.default?a[f]=this.renderDefault(c):"render"===u.default&&(a[f]=this.renderV2(c,l));else{let s=(0,m.renderIfNoFetchOrFetchDefined)(e,f,t=>p.some(this.renderV2(c,l,t)));p.isSome(s)&&(a[f]=s.value)}}return a},renderObjectOfSimpleWidgetMocks(t,e){let n=t instanceof Array?Object.fromEntries(t):t,r={};for(let u of e){let o=u.name,a=n[o];if(void 0===a)r[o]=this.renderDefault(u);else if(i.EmptyContent.is(a))r[o]=this.renderDefault(u);else{let c=(0,m.renderIfNoFetchOrFetchDefined)(void 0,o,()=>p.some(this.renderMocks(u,a)));p.isSome(c)&&(r[o]=c.value)}}return r}});e.default=T},12706:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(75237),u=n(73985),o=n(71659),a=r.__importDefault(n(937)),c=r.__importDefault(n(65082));function f(t){return void 0!==t&&t.TYPE===o.GroupType?t:void 0}function l(t){return void 0!==t&&t.TYPE!==o.GroupType?t:void 0}let s=t=>({renderV1:(e,n)=>e.__TYPE__===i.WidgetTypes.Group?(0,a.default)(t).renderV1(e,f(n)):(0,c.default)(t).renderV1(e,l(n)),renderV2(e,n,r){return i.SimpleWidgetContent.is(n)&&(0,u.isSimpleFieldDef)(e)?(0,c.default)(t).renderV2(e,n,l(r)):n.__TYPE__===i.WidgetTypes.Group&&e.__TYPE__===u.GroupDefType?(0,a.default)(t).renderV2(e,n,f(r)):this.renderDefault(e)},renderDefault:e=>e.__TYPE__===u.GroupDefType?(0,a.default)(t).renderDefault(e):(0,c.default)(t).renderDefault(e),renderMocks(e,n){return i.SimpleWidgetContent.is(n)&&(0,u.isSimpleFieldDef)(e)?(0,c.default)(t).renderMocks(e,n):n.__TYPE__===i.WidgetTypes.Group&&e.__TYPE__===u.GroupDefType?(0,a.default)(t).renderMocks(e,n):this.renderDefault(e)}});e.default=s},32955:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(75237);e.default={renderV1:t=>({value:r.UIDContent.encode(t)}),renderV2:(t,e)=>r.UIDContent.encode(e),renderDefault:t=>null,renderMocks:(t,e)=>r.UIDContent.encode(e)}},81542:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIDRenderer=e.StaticWidgetRenderer=e.SimpleWidgetRenderer=e.GroupRenderer=void 0;let r=n(87783);var i=n(937);Object.defineProperty(e,"GroupRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(n(26041),e);var u=n(65082);Object.defineProperty(e,"SimpleWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}}),r.__exportStar(n(94814),e);var o=n(12706);Object.defineProperty(e,"StaticWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var a=n(32955);Object.defineProperty(e,"UIDRenderer",{enumerable:!0,get:function(){return r.__importDefault(a).default}})},7796:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={renderV1:t=>({type:"Boolean",value:t.value}),renderV2:(t,e)=>e.value,renderDefault:t=>null,renderMocks(t,e){return this.renderV2(t,e)}}},89591:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={renderV1:t=>({type:"Embed",value:{oembed:t.all}}),renderV2:(t,e)=>e.all,renderDefault:t=>({}),renderMocks(t,e){return this.renderV2(t,e)}}},49357:function(t,e,n){"use strict";Object.defineProperty(e,"__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)$/,u=/^(\d{1,4})-([0-9]{1,2})-([0-9]{1,2})$/;function o(t){let[e,n,r]=[t[1],t[2],t[3]];return`${e.padStart(4,"0")}-${n.padStart(2,"0")}-${r.padStart(2,"0")}T00:00:00.000+0000`}e.default={renderV1(t){let e={type:t.type,value:null};switch(t.type){case"Number":{let n=(0,r.filterDouble)(t.value);return{...e,value:n}}case"Date":try{let a=u.exec(t.value);if(a){let c=new Date(o(a));return{...e,value:(0,r.formatDate)(c)}}return e}catch(f){return console.warn(`Unable to render Date value with ${t.value}: ${f.toString()}`),e}case"Timestamp":try{if(i.test(t.value)){let l=new Date(t.value);return{...e,value:(0,r.formatDateTime)(l)}}return e}catch(s){return console.warn(`Unable to render Timestamp value with ${t.value}: ${s.toString()}`),e}default:return{...e,value:t.value}}},renderV2(t,e){switch(e.type){case"Number":return(0,r.filterDouble)(e.value);case"Date":try{let n=u.exec(e.value);if(n){let a=new Date(o(n));return(0,r.formatDate)(a)}return null}catch(c){return console.warn(`Unable to render Date value with ${e.value}: ${c.toString()}`),null}case"Timestamp":try{if(i.test(e.value)){let f=new Date(e.value);return(0,r.formatDateTime)(f)}return null}catch(l){return console.warn(`Unable to render Timestamp value with ${e.value}: ${l.toString()}`),null}default:return e.value}},renderDefault:t=>null,renderMocks(t,e){return this.renderV2(t,e)}}},42715:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={renderV1:t=>({type:"GeoPoint",value:{latitude:t.position.lat,longitude:t.position.lng}}),renderV2:(t,e)=>({latitude:e.position.lat,longitude:e.position.lng}),renderDefault:t=>({}),renderMocks(t,e){return this.renderV2(t,e)}}},6637:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(79687);function i(t,e){return{dimensions:{width:t.width,height:t.height},alt:(0,r.writeEmptyStringOrNull)(t.alt,e.emptyStringInsteadOfNull),copyright:(0,r.writeEmptyStringOrNull)(t.credits,e.emptyStringInsteadOfNull),url:e.urlRewriter.rewriteImageUrl(t)}}let u=t=>({renderV1(e){if(e.thumbnails){let n=Object.entries(e.thumbnails).reduce((e,[n,r])=>({...e,[n.toLowerCase()]:i(r,t)}),{});return{type:"Image",value:{main:i(e,t),views:n}}}return{type:"Image",value:{main:i(e,t),views:[]}}},renderV2(e,n){let r=i(n,t);if(n.thumbnails&&n.thumbnails){let u=Object.entries(n.thumbnails).reduce((e,[n,r])=>Object.assign(e,{[n]:i(r,t)}),{});return Object.assign(r,u)}return r},renderDefault:t=>t.config.thumbnails.reduce((t,e)=>({...t,[e]:{}}),{}),renderMocks(t,e){return this.renderV2(t,e)}});e.default=u},6413:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let n=t=>({renderV1(e){try{return{type:"IntegrationFields",value:t.Extension.encoders.integrationFields.encode(e.value)}}catch(n){return{value:{}}}},renderV2(e,n){try{return t.Extension.encoders.integrationFields.encode(n.value)}catch(r){return{}}},renderDefault:t=>null,renderMocks(t){return this.renderDefault(t)}});e.default=n},50335:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(4633),i=n(73985);function u(t){return{id:t,type:r.BROKEN_CUSTOM_TYPE,tags:[],isBroken:!0}}let o=t=>({renderV1(e,n){try{let r=t.Extension.DocEncoder.encodeDocId(e.id,null==n?void 0:n.uuid);return{type:"Link.document",value:t.Extension.encoders.documentLinks.encode(r)}}catch(o){var i;return{value:u(i=e.id)}}},renderV2(e,n,r){try{let i=t.Extension.DocEncoder.encodeDocId(n.id,null==r?void 0:r.uuid);return t.Extension.encoders.documentLinks.encode(i)}catch(o){return u(n.id)}},renderMocks(t,e){let n=i.DocumentLinkDef.is(t)&&t.customtypes[0]||"mock";return{id:e.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"}}});e.default=o},15802:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={renderV1(t){let e="string"==typeof t.target?{target:t.target}:{};return{type:"Link.web",value:{url:t.url,...e}}},renderV2(t,e){let n={link_type:"Web",url:e.url};return Object.assign(n,"string"==typeof e.target?{target:e.target}:{})},renderMocks(t,e){return this.renderV2(t,e)}}},50632:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let n=t=>({renderV1:e=>({type:"Link.file",value:{file:{name:e.name,kind:e.kind,url:t.urlRewriter.rewriteFileUrl(e.url),size:e.size}}}),renderV2:(e,n)=>({link_type:"Media",name:n.name,kind:n.kind,url:t.urlRewriter.rewriteFileUrl(n.url),size:n.size}),renderMocks:(t,e)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB"})});e.default=n},83434:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let n=t=>({renderV1:e=>({type:"Link.image",value:{image:{name:e.name,kind:e.kind,url:t.urlRewriter.optimizeImageUrl(e.url),size:e.size,height:e.height,width:e.width}}}),renderV2:(e,n)=>({link_type:"Media",name:n.name,kind:n.kind,url:t.urlRewriter.optimizeImageUrl(n.url),size:n.size,height:n.height,width:n.width}),renderMocks:(t,e)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB",height:"1920px",width:"1080px"})});e.default=n},57777:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImageLinkRenderer=e.FileLinkRenderer=e.ExternalLinkRenderer=e.DocumentLinkRenderer=void 0;let r=n(87783),i=n(4633),u=n(239),o=r.__importDefault(n(50335));e.DocumentLinkRenderer=o.default;let a=r.__importDefault(n(15802));e.ExternalLinkRenderer=a.default;let c=r.__importDefault(n(50632));e.FileLinkRenderer=c.default;let f=r.__importDefault(n(83434));e.ImageLinkRenderer=f.default;let l=t=>({renderV1(e,n){let r=i.Link.encode(e.value);if("ImageLink"===r.__TYPE__)return(0,f.default)(t).renderV1(r);if("DocumentLink"===r.__TYPE__)return(0,o.default)(t).renderV1(r,n);if("FileLink"===r.__TYPE__)return(0,c.default)(t).renderV1(r);if("ExternalLink"===r.__TYPE__)return a.default.renderV1(r);throw Error(`No rendered found for link ${JSON.stringify(e)}`)},renderV2(e,n,r){let l=i.Link.encode(n.value);return"ImageLink"===l.__TYPE__&&((0,u.isMediaLinkDef)(e)||(0,u.isAnyLinkDef)(e))?(0,f.default)(t).renderV2(e.config,l):((0,u.isDocumentLinkDef)(e)||(0,u.isAnyLinkDef)(e))&&"DocumentLink"===l.__TYPE__?(0,o.default)(t).renderV2(e.config,l,r):((0,u.isMediaLinkDef)(e)||(0,u.isAnyLinkDef)(e))&&"FileLink"===l.__TYPE__?(0,c.default)(t).renderV2(e.config,l):((0,u.isWebLinkDef)(e)||(0,u.isAnyLinkDef)(e))&&"ExternalLink"===l.__TYPE__?a.default.renderV2(e.config,l):this.renderDefault(e)},renderDefault(t){switch(t.config.__TYPE__){case"ConfigMediaLinkDef":return{link_type:"Media"};case"ConfigDocumentLinkDef":return{link_type:"Document"};case"ConfigWebLinkDef":return{link_type:"Web"};case"ConfigAnyLinkDef":return{link_type:"Any"}}},renderMocks(e,n){let r=i.Link.encode(n.value);return"ImageLink"===r.__TYPE__&&((0,u.isMediaLinkDef)(e)||(0,u.isAnyLinkDef)(e))?(0,f.default)(t).renderMocks(e.config,r):((0,u.isDocumentLinkDef)(e)||(0,u.isAnyLinkDef)(e))&&"DocumentLink"===r.__TYPE__?(0,o.default)(t).renderMocks(e.config,r):((0,u.isMediaLinkDef)(e)||(0,u.isAnyLinkDef)(e))&&"FileLink"===r.__TYPE__?(0,c.default)(t).renderMocks(e.config,r):((0,u.isWebLinkDef)(e)||(0,u.isAnyLinkDef)(e))&&"ExternalLink"===r.__TYPE__?a.default.renderMocks(e.config,r):this.renderDefault(e)}});e.default=l},97562:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={renderV1:t=>({type:"Separator"}),renderV2:(t,e)=>!0,renderDefault:t=>!0,renderMocks(t,e){return this.renderV2(t,e)}}},83775:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(4633),u=n(3773),o=r.__importStar(n(87412)),a=n(73985),c=n(73985),f=n(79687),l=r.__importDefault(n(57777));function s(t,e,n){let r=()=>{if(i.is.documentLink(t.value))return i.LinksTypes.DocumentLink;if(i.is.imageLink(t.value))return i.LinksTypes.ImageLink;if(i.is.fileLink(t.value))return i.LinksTypes.FileLink;if(i.is.externalLink(t.value))return i.LinksTypes.ExternalLink;throw Error(`[UNREACHABLE] unknown Link type for ${JSON.stringify(t)}`)};return e===a.ApiVersion.v1?(0,l.default)(n).renderV1(t,void 0):e===a.ApiVersion.v2?(0,l.default)(n).renderV2((0,c.defaultLinkDef)(r()),t,void 0):e===a.ApiVersion.mocks?(0,l.default)(n).renderMocks((0,c.defaultLinkDef)(r()),t):void 0}let p=t=>({renderBlock:e=>n=>{if((0,u.checkImageBlock)(e)){let r=(()=>{if(e.data.linkTo){let r={__TYPE__:i.LinksTypes.LinkContent,value:i.Link.encode(e.data.linkTo)};return{linkTo:s(r,n,t)}}return{}})(),a=e.label?{label:e.label}:{},c=e.direction?{direction:e.direction}:{};return{type:"image",url:t.urlRewriter.rewriteImageUrl(e.data),alt:(0,f.writeEmptyStringOrNull)(e.data.alt,t.emptyStringInsteadOfNull),copyright:(0,f.writeEmptyStringOrNull)(e.data.credits,t.emptyStringInsteadOfNull),dimensions:{width:e.data.width,height:e.data.height},...r,...a,...c}}if((0,u.checkEmbedBlock)(e)){let l=e.label?{label:e.label}:{},p=e.direction?{direction:e.direction}:{};return{type:"embed",oembed:e.data.all,...l,...p}}{let d=e.label?{label:e.label}:{},h=e.direction?{direction:e.direction}:{},m=(e.content.spans||[]).map(e=>{let r={start:e.start,end:e.end,type:e.type};if("hyperlink"===e.type){let u=i.LinkContent.decode(e.data),a=(()=>{if(o.isRight(u)){let e={__TYPE__:i.LinksTypes.LinkContent,value:i.Link.encode(u.right.value)};return s(e,n,t)}return{}})();return{...r,data:a}}return"label"===e.type?{...r,data:{label:"string"==typeof e.data?e.data:""}}:r});return{type:e.type,text:e.content.text,...d,spans:m,...h}}}});e.default=p},558:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(46354),u=n(14632),o=r.__importStar(n(72720)),a=n(73985),c=r.__importDefault(n(83775));function f(t,e){let n=(0,u.pipe)(o.fromNullable(t.value.find(t=>t.type.startsWith("heading"))),o.alt(()=>o.fromNullable(t.value.find(t=>"embed"!==t.type&&"image"!==t.type))),o.map(t=>[t]),o.getOrElse(()=>[]));return e({__TYPE__:i.StructuredTextContentType,value:n})}let l=t=>({renderV1(e,n){let r=e.value.map(e=>(0,c.default)(t).renderBlock(e)(a.ApiVersion.v1));return void 0!==n&&n.legacy?f(e,e=>e.value.map(e=>(0,c.default)(t).renderBlock(e)(a.ApiVersion.v1))):{type:"StructuredText",value:r}},renderV2(e,n,r){return void 0!=r&&r.legacy?f(n,t=>this.renderV2(e,t,void 0)):n.value.map(e=>(0,c.default)(t).renderBlock(e)(a.ApiVersion.v2))},renderDefault:t=>[],renderMocks:(e,n)=>n.value.map(e=>(0,c.default)(t).renderBlock(e)(a.ApiVersion.mocks))});e.default=l},26041:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.StructuredTextRenderer=e.SeparatorRenderer=e.LinkRenderer=e.ImageLinkRenderer=e.FileLinkRenderer=e.ExternalLinkRenderer=e.DocumentLinkRenderer=e.IntegrationFieldsRenderer=e.ImageRenderer=e.GeoPointRenderer=e.FieldRenderer=e.EmbedRenderer=e.BooleanRenderer=void 0;var i=n(7796);Object.defineProperty(e,"BooleanRenderer",{enumerable:!0,get:function(){return r(i).default}});var u=n(89591);Object.defineProperty(e,"EmbedRenderer",{enumerable:!0,get:function(){return r(u).default}});var o=n(49357);Object.defineProperty(e,"FieldRenderer",{enumerable:!0,get:function(){return r(o).default}});var a=n(42715);Object.defineProperty(e,"GeoPointRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6637);Object.defineProperty(e,"ImageRenderer",{enumerable:!0,get:function(){return r(c).default}});var f=n(6413);Object.defineProperty(e,"IntegrationFieldsRenderer",{enumerable:!0,get:function(){return r(f).default}});var l=n(57777);Object.defineProperty(e,"DocumentLinkRenderer",{enumerable:!0,get:function(){return l.DocumentLinkRenderer}}),Object.defineProperty(e,"ExternalLinkRenderer",{enumerable:!0,get:function(){return l.ExternalLinkRenderer}}),Object.defineProperty(e,"FileLinkRenderer",{enumerable:!0,get:function(){return l.FileLinkRenderer}}),Object.defineProperty(e,"ImageLinkRenderer",{enumerable:!0,get:function(){return l.ImageLinkRenderer}}),Object.defineProperty(e,"LinkRenderer",{enumerable:!0,get:function(){return r(l).default}});var s=n(97562);Object.defineProperty(e,"SeparatorRenderer",{enumerable:!0,get:function(){return r(s).default}});var p=n(558);Object.defineProperty(e,"StructuredTextRenderer",{enumerable:!0,get:function(){return r(p).default}})},24485:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(71659),u=n(79687),o=r.__importDefault(n(65082)),a=t=>({renderV1(e,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=e.repeat.flatMap(e=>{let n=(0,o.default)(t).renderObjectOfSimpleWidgetV1(e.value,a);return(0,u.isEmpty)(n)?[]:[n]}),l=(0,o.default)(t).renderObjectOfSimpleWidgetV1(e.nonRepeat,c);return{"non-repeat":l,repeat:f}},renderV2(e,n,r){var u;let a=void 0===r?void 0:{TYPE:i.GroupType,name:e.name,fields:r.repeat.fields},c=null===(u=null==r?void 0:r.nonRepeat)||void 0===u?void 0:u.fields,f=n.repeat.map(n=>(0,o.default)(t).renderObjectOfSimpleWidgetV2(n.value,null==a?void 0:a.fields,e.items.fields,{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"})),l=(0,o.default)(t).renderObjectOfSimpleWidgetV2(n.nonRepeat,c,e.primary,{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"});return{primary:l,items:f}},renderDefault:t=>({}),renderMocks(e,n){let r=n.repeat.map(n=>(0,o.default)(t).renderObjectOfSimpleWidgetMocks(n.value,e.items.fields)),i=(0,o.default)(t).renderObjectOfSimpleWidgetMocks(n.nonRepeat,e.primary);return{primary:i,items:r}}});e.default=a},68422:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=r.__importDefault(n(65082));function u(t,e,n){var r,i,u;return null===(u=null===(i=null===(r=null==n?void 0:n.variations)||void 0===r?void 0:r[t])||void 0===i?void 0:i[e])||void 0===u?void 0:u.fields}let o=t=>({renderV1(e,n){let r=e.items.map(r=>(0,i.default)(t).renderObjectOfSimpleWidgetV1(r.value,u(e.variation,"repeat",n))),o=(0,i.default)(t).renderObjectOfSimpleWidgetV1(e.primary,u(e.variation,"nonRepeat",n));return{variation:e.variation,items:r,primary:o}},renderV2(e,n,r){let o=e.variations.find(t=>t.id===n.variation);if(void 0===o)return this.renderDefault(e);let a=n.items.map(e=>(0,i.default)(t).renderObjectOfSimpleWidgetV2(e.value,u(n.variation,"repeat",r),o.items,{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"})),c=(0,i.default)(t).renderObjectOfSimpleWidgetV2(n.primary,u(n.variation,"nonRepeat",r),o.primary,{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"});return{variation:n.variation,version:o.version,items:a,primary:c}},renderDefault:t=>({}),renderMocks(e,n){let r=e.variations.find(t=>t.id===n.variation);if(void 0===r)return this.renderDefault(e);let u=n.items.map(e=>(0,i.default)(t).renderObjectOfSimpleWidgetMocks(e.value,r.items)),o=(0,i.default)(t).renderObjectOfSimpleWidgetMocks(n.primary,r.primary);return{variation:n.variation,version:r.version,items:u,primary:o}}});e.default=o},57962:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(17306),u=r.__importStar(n(72720)),o=r.__importDefault(n(12706)),a=t=>({renderV1:(e,n)=>e.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(t).renderV1(e,n)}),renderV2:(e,n,r)=>n.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(t).renderV2(e.widget,n,r)}),renderDefault:t=>({}),renderMocks:(e,n)=>n.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(t).renderMocks(e.widget,n)})});e.default=a},6324:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(16360),u=r.__importStar(n(72720)),o=n(73985),a=n(71659),c=r.__importDefault(n(24485)),f=r.__importDefault(n(68422)),l=r.__importDefault(n(57962)),s={extractCompositeSlice(t){if(void 0!==t&&t.TYPE===a.CompositeSliceType)return t},extractSharedSlice(t){if(void 0!==t&&t.TYPE===a.SharedSliceType)return t},extractGroupOrField(t){if(void 0!==t&&t.TYPE!==a.CompositeSliceType&&t.TYPE!==a.SharedSliceType)return t}},p=t=>({renderV1:(e,n)=>e.__TYPE__===i.CompositeSliceContentType?u.some((0,c.default)(t).renderV1(e,s.extractCompositeSlice(n))):e.__TYPE__===i.SharedSliceContentType?u.some((0,f.default)(t).renderV1(e,s.extractSharedSlice(n))):(0,l.default)(t).renderV1(e,s.extractGroupOrField(n)),renderV2(e,n,r){if(n.__TYPE__===i.CompositeSliceContentType){if(e.__TYPE__===o.CompositeSliceDefType)return u.some((0,c.default)(t).renderV2(e,n,s.extractCompositeSlice(r)))}else if(n&&n.__TYPE__===i.SharedSliceContentType){if(e.__TYPE__===o.SharedSliceDefType)return u.some((0,f.default)(t).renderV2(e,n,s.extractSharedSlice(r)))}else if(e.__TYPE__===o.SimpleSliceDefType)return(0,l.default)(t).renderV2(e,n,s.extractGroupOrField(r));return u.some(this.renderDefault(e))},renderDefault:t=>({}),renderMocks(e,n){if(n.__TYPE__===i.CompositeSliceContentType){if(e.__TYPE__===o.CompositeSliceDefType)return u.some((0,c.default)(t).renderMocks(e,n))}else if(n&&n.__TYPE__===i.SharedSliceContentType){if(e.__TYPE__===o.SharedSliceDefType)return u.some((0,f.default)(t).renderMocks(e,n))}else if(e.__TYPE__===o.SimpleSliceDefType)return(0,l.default)(t).renderMocks(e,n);return u.some(this.renderDefault(e))}});e.default=p},3758:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(17306),u=n(42275),o=n(92425),a=r.__importStar(n(20492)),c=n(71777),f=n(79687),l=r.__importDefault(n(6324));function s(t,e){let n=RegExp(`^(${e})\\$\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}$`);return t.match(n)?t:`${e}$${(0,c.v4)()}`}let p=t=>({renderV1:(e,n)=>({type:"SliceZone",value:(function(t,e,n){let r=null==e?void 0:e.slices;return(0,o.compact)(t.value.map(t=>(0,u.pipe)((0,f.renderIfNoFetchOrFetchDefined)(r,t.key,e=>(0,l.default)(n).renderV1(t.widget,e)),a.map(e=>[t,e]))))})(e,n,t).map(([t,e])=>{var n;return{...e,id:s(t.key,t.name),slice_type:t.name,slice_label:null!==(n=t.maybeLabel)&&void 0!==n?n:null,type:"Slice"}})}),renderV2(e,n,r){let c=Object.fromEntries(e.slices.map(t=>[t.name,t])),p=null==r?void 0:r.slices;return(0,o.compact)(n.value.map(e=>(0,f.renderIfNoFetchOrFetchDefined)(p,e.name,n=>{var r,o,f,p;return"__TYPE__"in e.widget&&e.widget.__TYPE__===i.EmptyContentType?a.none:e.name in c?(0,u.pipe)((0,l.default)(t).renderV2(c[e.name],e.widget,n),a.map(t=>{var n;return{...t,id:s(e.key,e.name),slice_type:e.name,slice_label:null!==(n=e.maybeLabel)&&void 0!==n?n:null}})):a.none})))},renderDefault:t=>[],renderMocks(t,e){return this.renderV2(t,e)}});e.default=p},94814:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SliceWidgetRenderer=e.SlicesRenderer=e.SimpleSliceRenderer=e.SharedSliceRenderer=e.CompositeSliceRenderer=void 0;var i=n(24485);Object.defineProperty(e,"CompositeSliceRenderer",{enumerable:!0,get:function(){return r(i).default}});var u=n(68422);Object.defineProperty(e,"SharedSliceRenderer",{enumerable:!0,get:function(){return r(u).default}});var o=n(57962);Object.defineProperty(e,"SimpleSliceRenderer",{enumerable:!0,get:function(){return r(o).default}});var a=n(3758);Object.defineProperty(e,"SlicesRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6324);Object.defineProperty(e,"SliceWidgetRenderer",{enumerable:!0,get:function(){return r(c).default}})},73045:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(75237),o=n(37581),a=(0,r.__importDefault)(n(97662)),c=n(32512),f=i.exact(i.partial({label:o.StringOrNull,repeat:i.boolean,fields:i.record(u.WidgetKey,a.default)})),l=i.exact(i.intersection([i.type({type:i.literal(c.WidgetTypes.Group)}),i.partial({fieldset:o.StringOrNull,icon:i.string,description:i.string,config:f}),]));e.default=l},80260:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.UID)}),i.partial({fieldset:u.StringOrNull,config:a}),]));e.default=c},34716:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Widgets=e.DynamicWidget=e.StaticWidget=e.widgetReader=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=(0,r.__importDefault)(n(73045)),o=(0,r.__importDefault)(n(97662)),a=n(8972),c=(0,r.__importDefault)(n(80260)),f=n(32512);function l(t){return i.union([c.default,o.default,u.default,t])}e.widgetReader=l,e.StaticWidget=l(a.StaticSlices),e.DynamicWidget=l(a.DynamicSlices),e.Widgets={toStatic(t,e){switch(t.type){case f.WidgetTypes.LegacySlices:case f.WidgetTypes.Slices:return a.Slices.toStatic(t,e);default:return t}}}},32512:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetTypes=void 0,e.WidgetTypes={Text:"Text",RichText:"StructuredText",Color:"Color",Image:"Image",Date:"Date",Timestamp:"Timestamp",Number:"Number",Range:"Range",Select:"Select",Link:"Link",Embed:"Embed",GeoPoint:"GeoPoint",Separator:"Separator",UID:"UID",BooleanField:"Boolean",IntegrationField:"IntegrationFields",Group:"Group",Slices:"Slices",LegacySlices:"Choice"}},54249:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetTypes=e.Widget=e.UID=e.Slices=e.Shared=e.Nestable=e.Group=void 0;let r=n(87783);var i=n(73045);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}}),e.Nestable=(0,r.__importStar)(n(46239)),e.Shared=(0,r.__importStar)(n(94631)),e.Slices=(0,r.__importStar)(n(66903));var u=n(80260);Object.defineProperty(e,"UID",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),e.Widget=(0,r.__importStar)(n(34716));var o=n(32512);Object.defineProperty(e,"WidgetTypes",{enumerable:!0,get:function(){return o.WidgetTypes}})},13071:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull,default_value:i.boolean,placeholder_true:i.string,placeholder_false:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.BooleanField)}),i.partial({config:a}),]));e.default=c},98871:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Color)}),i.partial({fieldset:u.StringOrNull,config:a}),]));e.default=c},68829:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Date)}),i.partial({fieldset:u.StringOrNull,config:a}),]));e.default=c},82427:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Embed)}),i.partial({fieldset:u.StringOrNull,config:a}),]));e.default=c},56477:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.GeoPoint)}),i.partial({fieldset:u.StringOrNull,config:a}),]));e.default=c},4813:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=(0,r.__importDefault)(n(62291)),a=n(32512),c=i.exact(i.intersection([i.type({name:i.string}),o.default,])),f=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,constraint:o.default,thumbnails:i.readonlyArray(c)})),l=i.exact(i.intersection([i.type({type:i.literal(a.WidgetTypes.Image)}),i.partial({fieldset:u.StringOrNull,config:f}),]));e.default=l},25272:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,catalog:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.IntegrationField)}),i.partial({fieldset:u.StringOrNull,config:a}),]));e.default=c},68751:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(87412),u=(0,r.__importStar)(n(87830)),o=n(69624),a=n(37581),c=n(32512),f=t=>{if(t instanceof Array){let e=t.reduce((t,e)=>t&&"string"==typeof e,!0);if(e)return u.success(t)}},l=t=>{if("string"==typeof t)return u.success([t])},s=new u.Type("MasksArrayString",t=>t instanceof Array,(t,e)=>i.either.chain(u.union([u.array(u.string),u.string]).validate(t,e),n=>f(n)||l(n)||u.failure(t,e)),t=>t),p=u.exact(u.partial({label:a.StringOrNull,useAsTitle:u.boolean,placeholder:u.string,select:(0,o.withFallback)(u.union([u.literal("media"),u.literal("document"),u.literal("web"),u.null,]),null),customtypes:u.readonlyArray(u.string),masks:s,tags:s,allowTargetBlank:u.boolean})),d=u.exact(u.intersection([u.type({type:u.literal(c.WidgetTypes.Link)}),u.partial({fieldset:a.StringOrNull,config:p}),]));e.default=d},97662:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=(0,r.__importDefault)(n(13071)),o=(0,r.__importDefault)(n(98871)),a=(0,r.__importDefault)(n(68829)),c=(0,r.__importDefault)(n(82427)),f=(0,r.__importDefault)(n(56477)),l=(0,r.__importDefault)(n(4813)),s=(0,r.__importDefault)(n(25272)),p=(0,r.__importDefault)(n(68751)),d=(0,r.__importDefault)(n(25286)),h=(0,r.__importDefault)(n(35600)),m=n(17685),v=(0,r.__importDefault)(n(99187)),y=(0,r.__importDefault)(n(57225)),_=(0,r.__importDefault)(n(4575)),b=(0,r.__importDefault)(n(37842)),T=i.union([o.default,u.default,c.default,f.default,a.default,d.default,h.default,m.RichText,v.default,y.default,_.default,b.default,p.default,l.default,s.default,]);e.default=T},25286:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(59054),o=n(37581),a=n(32512),c=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,min:i.union([i.number,u.NumberFromString]),max:i.union([i.number,u.NumberFromString]),step:i.union([i.number,u.NumberFromString])})),f=i.exact(i.intersection([i.type({type:i.literal(a.WidgetTypes.Number)}),i.partial({fieldset:o.StringOrNull,config:c}),]));e.default=f},35600:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(59054),o=n(37581),a=n(32512),c=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,min:i.union([i.number,u.NumberFromString]),max:i.union([i.number,u.NumberFromString]),step:i.union([i.number,u.NumberFromString])})),f=i.exact(i.intersection([i.type({type:i.literal(a.WidgetTypes.Range)}),i.partial({fieldset:o.StringOrNull,config:c}),]));e.default=f},17685:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RichText=e.RichTextConfig=e.RichTextNodeTypeCodec=e.RichTextNodeType=e.DEFAULT_OPTION=void 0;let r=n(87783),i=n(87412),u=(0,r.__importStar)(n(87830)),o=n(37581),a=(0,r.__importDefault)(n(62291)),c=n(32512);e.DEFAULT_OPTION="paragraph",e.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"},e.RichTextNodeTypeCodec=u.keyof({[e.RichTextNodeType.heading1]:null,[e.RichTextNodeType.heading2]:null,[e.RichTextNodeType.heading3]:null,[e.RichTextNodeType.heading4]:null,[e.RichTextNodeType.heading5]:null,[e.RichTextNodeType.heading6]:null,[e.RichTextNodeType.paragraph]:null,[e.RichTextNodeType.strong]:null,[e.RichTextNodeType.em]:null,[e.RichTextNodeType.preformatted]:null,[e.RichTextNodeType.hyperlink]:null,[e.RichTextNodeType.image]:null,[e.RichTextNodeType.embed]:null,[e.RichTextNodeType.list]:null,[e.RichTextNodeType.orderedList]:null,[e.RichTextNodeType.rtl]:null});let f=new u.Type("RichTextOptions",t=>"string"==typeof t,(t,n)=>i.either.chain(u.union([u.string,u.null]).validate(t,n),t=>{if(!t)return u.success(e.DEFAULT_OPTION);let n=t.split(",").map(t=>t.trim()),r=n.filter(t=>(0,i.getOrElseW)(()=>void 0)(e.RichTextNodeTypeCodec.decode(t)));return r.length?u.success(r.join(",")):u.success(e.DEFAULT_OPTION)}),t=>t),l=t=>{if(!t)return u.success([])},s=t=>{if(t instanceof Object){if(!Object.entries(t).length)return u.success([]);if(t[""])return u.success(t[""].map(t=>t.name));let e=Object.entries(t).reduce((t,[,e])=>t.concat(e.map(t=>t.name)),[]).filter(Boolean);return u.success(e)}},p=t=>{if(t instanceof Array){let e=t.reduce((t,e)=>t&&"string"==typeof e,!0);if(e)return u.success(t)}},d=t=>{if("string"==typeof t)return u.success([t])},h=new u.Type("RichTextLabels",t=>t instanceof Array,(t,e)=>{let n=u.record(u.string,u.readonlyArray(u.record(u.literal("name"),u.string))),r=u.readonlyArray(u.string);return i.either.chain(u.union([n,r,u.string,u.null]).validate(t,e),n=>l(n)||p(n)||s(n)||d(n)||u.failure(t,e))},t=>t);e.RichTextConfig=u.exact(u.partial({label:o.StringOrNull,placeholder:u.string,useAsTitle:u.boolean,single:f,multi:f,imageConstraint:a.default,labels:h,allowTargetBlank:u.boolean})),e.RichText=u.exact(u.intersection([u.type({type:u.literal(c.WidgetTypes.RichText)}),u.partial({fieldset:o.StringOrNull,config:e.RichTextConfig}),]))},99187:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,u.StringFromNumber,u.StringFromBoolean]))})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Select)}),i.partial({fieldset:u.StringOrNull,config:a}),]));e.default=c},57225:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Separator)}),i.partial({config:a}),]));e.default=c},4575:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Text)}),i.partial({fieldset:u.StringOrNull,config:a}),]));e.default=c},37842:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Timestamp)}),i.partial({fieldset:u.StringOrNull,config:a}),]));e.default=c},46239:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=e.Text=e.Separator=e.Select=e.Range=e.Number=e.NestableWidget=e.Link=e.IntegrationField=e.Image=e.GeoPoint=e.Embed=e.Date=e.Color=e.BooleanField=void 0;let r=n(87783);var i=n(13071);Object.defineProperty(e,"BooleanField",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var u=n(98871);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var o=n(68829);Object.defineProperty(e,"Date",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var a=n(82427);Object.defineProperty(e,"Embed",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(56477);Object.defineProperty(e,"GeoPoint",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(4813);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(25272);Object.defineProperty(e,"IntegrationField",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var s=n(68751);Object.defineProperty(e,"Link",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var p=n(97662);Object.defineProperty(e,"NestableWidget",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(25286);Object.defineProperty(e,"Number",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var h=n(35600);Object.defineProperty(e,"Range",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}}),(0,r.__exportStar)(n(17685),e);var m=n(99187);Object.defineProperty(e,"Select",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}});var v=n(57225);Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return(0,r.__importDefault)(v).default}});var y=n(4575);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return(0,r.__importDefault)(y).default}});var _=n(37842);Object.defineProperty(e,"Timestamp",{enumerable:!0,get:function(){return(0,r.__importDefault)(_).default}})},62291:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(87412),u=(0,r.__importStar)(n(87830)),o=n(11621),a=n(37581),c=new u.Type("SideConstraints",t=>!t||"number"==typeof t,(t,e)=>i.either.chain(u.union([u.literal("auto"),u.literal(""),u.Int,o.IntFromString,a.IntFromNumber,a.IntFromPixels,u.null,]).validate(t,e),t=>"auto"===t||""===t?u.success(null):u.success(t)),t=>t),f=u.partial({width:c,height:c});e.default=f},94631:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ImageConstraint=void 0;var i=n(62291);Object.defineProperty(e,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},57191:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(75237),o=n(37581),a=(0,r.__importDefault)(n(97662)),c=n(37182),f=i.exact(i.partial({label:o.StringOrNull})),l=i.exact(i.intersection([i.type({type:i.literal(c.SlicesTypes.Slice)}),i.partial({fieldset:o.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(u.WidgetKey,a.default),repeat:i.record(u.WidgetKey,a.default),config:f}),]));e.default=l},7816:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=(0,r.__importDefault)(n(73045)),o=(0,r.__importDefault)(n(97662)),a=i.union([o.default,u.default]);e.default=a},78716:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedSlice=e.Variation=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(69624),o=n(75237),a=(0,r.__importDefault)(n(97662)),c=n(37182);e.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,u.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(o.WidgetKey,a.default),items:i.record(o.WidgetKey,a.default)}),])),e.SharedSlice=i.exact(i.intersection([i.type({id:i.string,type:i.literal(c.SlicesTypes.SharedSlice),name:i.string,variations:i.readonlyArray(e.Variation)}),i.partial({description:i.string}),]))},29377:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37182),o=i.exact(i.type({type:i.literal(u.SlicesTypes.SharedSlice)}));e.default=o},76098:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8972:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slices=e.DynamicSlices=e.StaticSlices=e.slicesReader=e.DynamicSlicesConfig=e.StaticSlicesConfig=e.slicesConfigReader=e.SlicesLabels=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(75237),o=n(37581),a=n(32512),c=(0,r.__importDefault)(n(57191)),f=(0,r.__importDefault)(n(7816)),l=n(78716),s=(0,r.__importDefault)(n(29377)),p=n(37182);function d(t){return i.exact(i.partial({label:o.StringOrNull,labels:e.SlicesLabels,choices:i.record(u.WidgetKey,i.union([f.default,c.default,t]))}))}e.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,]),e.slicesConfigReader=d,e.StaticSlicesConfig=d(l.SharedSlice),e.DynamicSlicesConfig=d(s.default);let h={toStatic(t,e){let n=Object.entries(t.choices||{}).reduce((t,[n,r])=>{if(r.type!==p.SlicesTypes.SharedSlice)return{...t,[n]:r};{let i=e.get(n);return i?{...t,[n]:i}:t}},{});return{...t,choices:n}}};function m(t){return i.exact(i.intersection([i.type({type:i.union([i.literal(a.WidgetTypes.Slices),i.literal(a.WidgetTypes.LegacySlices),])}),i.partial({fieldset:o.StringOrNull,config:t}),]))}e.slicesReader=m,e.StaticSlices=m(e.StaticSlicesConfig),e.DynamicSlices=m(e.DynamicSlicesConfig),e.Slices={toStatic:(t,e)=>t.config?{...t,config:h.toStatic(t.config,e)}:t}},37182:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlicesTypes=void 0,e.SlicesTypes={Slice:"Slice",SharedSlice:"SharedSlice"}},66903:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlicesTypes=e.SliceZone=e.Slice=e.SharedSliceRef=e.LegacySlice=e.CompositeSlice=void 0;let r=n(87783);var i=n(57191);Object.defineProperty(e,"CompositeSlice",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var u=n(7816);Object.defineProperty(e,"LegacySlice",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(78716),e);var o=n(29377);Object.defineProperty(e,"SharedSliceRef",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),e.Slice=(0,r.__importStar)(n(76098)),e.SliceZone=(0,r.__importStar)(n(8972));var a=n(37182);Object.defineProperty(e,"SlicesTypes",{enumerable:!0,get:function(){return a.SlicesTypes}})},20705:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(87412),u=(0,r.__importStar)(n(72720)),o=(0,r.__importStar)(n(87830)),a=n(75237);e.default={getWidget(t,e,n,r,i){let o=i.get(t);return void 0===o?function(t,e,n,r){let i=e.get(t);return void 0===i?u.none:a.Widget.fromJson(t,i,n,r)}(t,e,n,r):o},fromJson(t,e,n){return Array.from(t.keys()).reduce((r,i)=>{let u=this.getWidget(i,t,e,n,r);return new Map([...Array.from(r.entries()),[i,u]])},new Map)},partitionData(t){let e=Object.entries(t),{types:n,positions:r,widgets:u}=e.reduce((t,[e,n])=>{if(e.endsWith("_TYPE")){let r=o.string.decode(n);if((0,i.isRight)(r))return{...t,types:t.types.set(e.substring(0,e.length-5),r.right)}}return e.endsWith("_POSITION")&&"number"==typeof n?{...t,positions:t.positions.set(e.substring(0,e.length-9),n)}:e.endsWith("_POSITION")||e.endsWith("_TYPE")?t:{...t,widgets:t.widgets.set(e,n)}},{types:new Map,positions:new Map,widgets:new Map}),a=t.slugs_INTERNAL||[],c=t.uid;return{widgets:u,types:n,positions:r,uid:c,slugs:a}}}},96355:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Widgets=e.DocumentData=void 0;let r=n(87783);var i=n(20705);Object.defineProperty(e,"DocumentData",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}}),e.Widgets=(0,r.__importStar)(n(75237))},17306:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyContent=e.EmptyContentType=void 0,e.EmptyContentType="EmptyContent",e.EmptyContent={is:t=>t.__TYPE__===e.EmptyContentType}},28645:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GroupContent=e.GroupContentType=e.GroupItemContentType=void 0;let r=n(87783),i=(0,r.__importStar)(n(1358)),u=(0,r.__importStar)(n(20492)),o=(0,r.__importStar)(n(87830)),a=n(10945);e.GroupItemContentType="GroupItemContent",e.GroupContentType="GroupContentType",e.GroupContent=Object.freeze({itemsContentsFromJson:(t,e,n,r)=>e?e.map(e=>{if("object"!=typeof e||null===e)return{__TYPE__:"GroupItemContent",value:[]};{let o=Object.entries(e).sort(([e],[n])=>{var i,u;let o=null!==(i=r.get(`${t}.${e}`))&&void 0!==i?i:1e4,a=null!==(u=r.get(`${t}.${n}`))&&void 0!==u?u:1e4;return o-a}),c=o.map(([e,r])=>{let i=n.get(`${t}.${e}`);return i?u.map(t=>[e,t])(a.SimpleWidgetContent.from(i,r)):u.none});return{__TYPE__:"GroupItemContent",value:i.compact(c)}}}):[],fromJson(t,n,r,i,a){let c=Array.of(t,[n]).flat().join("."),f=u.fromEither(o.array(o.unknown).decode(r));return u.map(t=>({value:e.GroupContent.itemsContentsFromJson(c,t,i,a),__TYPE__:e.GroupContentType}))(f)}})},10945:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleWidgetContent=e.is=e.SimpleWidgetContentType=void 0;let r=n(87783),i=n(42275),u=(0,r.__importStar)(n(20492)),o=(0,r.__importStar)(n(87830)),a=(0,r.__importDefault)(n(99616)),c=n(43420),f=(0,r.__importDefault)(n(70786)),l=n(45337),s=n(48025),p=(0,r.__importDefault)(n(24299)),d=n(4633),h=n(46354),m=n(7335);e.SimpleWidgetContentType=["EmptyContent","ImageContent","GeoPointContent","EmbedContent","BooleanContent","IntegrationFieldsContent","StructuredTextContent","LinkContent","UIDContent","SeparatorContent","FieldContent",],e.is=function(t){return e.SimpleWidgetContentType.includes(t.__TYPE__)};let v=o.type({value:o.null});e.SimpleWidgetContent={from(t,e){if(null===e||v.is(e))return u.some({type:t,__TYPE__:"EmptyContent"});switch(t){case"StructuredText":return u.fromEither(h.StructuredTextContent.decode(e));case"IntegrationFields":return u.fromEither(p.default.decode(e));case"Image":return(0,i.pipe)(u.fromEither(s.ImageContent.decode(e)),u.map(t=>s.ImageContent.encode(t)));case"GeoPoint":return(0,i.pipe)(u.fromEither(l.GeoPointContent.decode(e)),u.map(t=>l.GeoPointContent.encode(t)));case"Embed":return u.fromEither(c.EmbedContent.decode(e));case"Link":return u.fromEither(d.LinkContent.decode(e));case"UID":return u.fromEither(m.UIDContent.decode(e));case"Separator":return u.some({__TYPE__:"SeparatorContent"});case"Boolean":return u.fromEither(a.default.decode(e));default:if(f.default.types.includes(t))return f.default.forType(t,e);return u.none}},is:t=>e.SimpleWidgetContentType.includes(t.__TYPE__)}},18331:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(20492)),u=n(28645),o=n(10945);e.default={fromJson(t,e,n,r,a){let c=Array.of(t,[e]).flat().join("."),f=r.get(c);return"Group"===f?u.GroupContent.fromJson(t,e,n,r,a):f?o.SimpleWidgetContent.from(f,n):i.none},is:t=>o.SimpleWidgetContent.is(t)||u.GroupContentType===t.__TYPE__}},7335:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIDContent=e.UIDContentType=void 0;let r=n(87783),i=n(81878),u=(0,r.__importStar)(n(87830));e.UIDContentType="UIDContent",e.UIDContent=new u.Type("UIDContent",t=>(null==t?void 0:t.__TYPE__)===e.UIDContentType,(t,e)=>i.Chain.chain(u.string.validate(t,e),t=>u.success({value:t,__TYPE__:"UIDContent"})),t=>t.value)},75237:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Widget=e.WidgetKey=e.WidgetTypes=e.StaticWidgetContent=e.Slices=e.Nestable=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(47320),o=n(17306),a=n(28645),c=n(32296),f=n(16360),l=(0,r.__importDefault)(n(18331)),s=n(7335);(0,r.__exportStar)(n(17306),e),(0,r.__exportStar)(n(28645),e),e.Nestable=(0,r.__importStar)(n(32296)),(0,r.__exportStar)(n(10945),e),e.Slices=(0,r.__importStar)(n(16360));var p=n(18331);Object.defineProperty(e,"StaticWidgetContent",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}}),(0,r.__exportStar)(n(7335),e),e.WidgetTypes={...c.NestableTypes,Empty:o.EmptyContentType,UID:s.UIDContentType,Group:a.GroupContentType,slices:f.SlicesContentType};let d=RegExp("^[^<>]+$");e.WidgetKey=(0,u.refineType)(i.string,"WidgetKey",t=>0===t.length||d.test(t)),e.Widget={fromJson(t,e,n,r){let i=n.get(t);return"Slices"===i?f.SlicesContent.fromJson(t,e,n,r):l.default.fromJson([],t,e,n,r)}}},99616:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanContentType=void 0;let r=n(87783),i=n(81878),u=(0,r.__importStar)(n(87830));e.BooleanContentType="BooleanContent";let o=new u.Type("BooleanContent",t=>(null==t?void 0:t.__TYPE__)===e.BooleanContentType,(t,n)=>i.Chain.chain(u.boolean.validate(t,n),t=>u.success({value:t,__TYPE__:e.BooleanContentType})),t=>u.boolean.encode(t.value));e.default=o},43420:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmbedContentC=e.EmbedContent=e.EmbedContentType=void 0;let r=n(87783),i=n(9554),u=n(42275),o=(0,r.__importStar)(n(87830)),a=n(37581),c=n(47320);e.EmbedContentType="EmbedContent",e.EmbedContent=new o.Type("EmbedContent",t=>t.__TYPE__===e.EmbedContentType,t=>(0,u.pipe)(e.EmbedContentC.decode(t),i.either.map(n=>({...e.EmbedContentC.encode(n),all:t}))),t=>e.EmbedContentC.encode(t)),e.EmbedContentC=(0,c.addType)(o.exact(o.intersection([o.type({embed_url:o.string,type:o.string}),o.partial({version:o.union([o.string,o.number,o.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:o.union([o.string,o.number,o.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),])),e.EmbedContentType)},70786:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FieldContentType=void 0;let r=n(87783),i=n(42275),u=(0,r.__importStar)(n(20492)),o=(0,r.__importStar)(n(87830));e.FieldContentType="FieldContent",e.default={types:["Text","Date","Timestamp","Color","Number","Range","Select"],forType:(t,e)=>(0,i.pipe)(u.fromEither(o.string.decode(e)),u.map(e=>({value:function(t){let e=0;for(;e<t.length&&t[e]<=" ";)e++;let n=t.length;for(;e<n&&t[n-1]<=" ";)n--;return t.substring(e,n)}(e),type:t,__TYPE__:"FieldContent"})))}},45337:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GeoPointContent=e.GeoPointContentType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(47320);e.GeoPointContentType="GeoPointContent",e.GeoPointContent=(0,u.addType)(i.strict({position:i.strict({lat:i.number,lng:i.number})}),e.GeoPointContentType)},48025:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImageContent=e.ImageContentType=e.ImageContentView=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(47320),a=i.exact(i.type({id:i.string,url:i.string,width:i.number,height:i.number}));e.ImageContentView=i.exact(i.intersection([i.type({origin:a,width:i.number,height:i.number,edit:i.type({zoom:i.number,crop:i.type({x:i.number,y:i.number}),background:i.string})}),i.partial({url:i.string,credits:u.NonEmptyStringOrNull,alt:u.NonEmptyStringOrNull,provider:u.StringOrNull}),])),e.ImageContentType="ImageContent",e.ImageContent=(0,o.addType)(i.intersection([e.ImageContentView,i.partial({thumbnails:i.record(i.string,e.ImageContentView)}),]),e.ImageContentType)},24299:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IntegrationFieldsContentType=void 0;let r=n(87783),i=n(81878),u=(0,r.__importStar)(n(87830));e.IntegrationFieldsContentType="IntegrationFieldsContent";let o=new u.Type("IntegrationFieldsContent",t=>(null==t?void 0:t.__TYPE__)===e.IntegrationFieldsContentType,(t,n)=>i.Chain.chain(u.string.validate(t,n),t=>u.success({value:t,__TYPE__:e.IntegrationFieldsContentType})),()=>{throw Error("Not implemented - Not used - Not relevant")});e.default=o},52109:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDocumentLink=e.DocumentLink=e.DocumentLinkType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(47320);e.DocumentLinkType="DocumentLink",e.DocumentLink=(0,o.addType)(i.strict({id:u.NonEmptyString}),e.DocumentLinkType),e.isDocumentLink=function(t){return t.__TYPE__===e.DocumentLinkType}},40754:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isExternalLink=e.ExternalLink=e.ExternalLinkType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(47320);e.ExternalLinkType="ExternalLink",e.ExternalLink=(0,o.addType)(i.exact(i.intersection([i.type({url:i.string}),i.partial({kind:i.literal("web"),target:u.StringOrNull,preview:(0,o.nullable)(i.partial({title:i.string}))}),])),e.ExternalLinkType),e.isExternalLink=function(t){return t.__TYPE__===e.ExternalLinkType}},32386:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFileLink=e.FileLink=e.FileLinkType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(23284),o=n(2932),a=n(47320);e.FileLinkType="FileLink",e.FileLink=(0,o.mapOutput)(i.exact(i.intersection([i.type({id:i.string,url:i.string,name:i.string,kind:i.string}),i.partial({date:(0,a.nullable)(i.string),size:(0,u.withFallback)(i.string,"0")}),])),t=>({...t,size:t.size||"0",__TYPE__:e.FileLinkType})),e.isFileLink=function(t){return t.__TYPE__===e.FileLinkType}},5782:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isImageLink=e.ImageLink=e.ImageLinkType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(37581),o=n(47320);e.ImageLinkType="ImageLink",e.ImageLink=(0,o.addType)(i.exact(i.intersection([i.type({id:i.string,url:i.string,height:i.string,width:i.string,size:i.string,name:i.string,kind:i.string}),i.partial({date:u.StringOrNull}),])),e.ImageLinkType),e.isImageLink=function(t){return t.__TYPE__===e.ImageLinkType}},12149:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkContent=e.LinkContentType=void 0;let r=n(87783),i=n(81878),u=(0,r.__importStar)(n(87830)),o=n(4633);e.LinkContentType="LinkContent",e.LinkContent=new u.Type("LinkContent",t=>o.Link.is(null==t?void 0:t.value),(t,n)=>i.Chain.chain(o.Link.validate(t,n),t=>u.success({value:o.Link.encode(t),__TYPE__:e.LinkContentType})),t=>o.Link.encode(t.value))},4633:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinksTypes=e.is=e.BROKEN_CUSTOM_TYPE=e.LinkContent=e.ImageLink=e.FileLink=e.ExternalLink=e.DocumentLink=e.Link=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(52109),o=n(40754),a=n(32386),c=n(5782),f=n(12149);e.Link=i.union([c.ImageLink,a.FileLink,u.DocumentLink,o.ExternalLink]);var l=n(52109);Object.defineProperty(e,"DocumentLink",{enumerable:!0,get:function(){return l.DocumentLink}});var s=n(40754);Object.defineProperty(e,"ExternalLink",{enumerable:!0,get:function(){return s.ExternalLink}});var p=n(32386);Object.defineProperty(e,"FileLink",{enumerable:!0,get:function(){return p.FileLink}});var d=n(5782);Object.defineProperty(e,"ImageLink",{enumerable:!0,get:function(){return d.ImageLink}});var h=n(12149);Object.defineProperty(e,"LinkContent",{enumerable:!0,get:function(){return h.LinkContent}}),e.BROKEN_CUSTOM_TYPE="broken_type",e.is={documentLink:u.isDocumentLink,fileLink:a.isFileLink,externalLink:o.isExternalLink,imageLink:c.isImageLink},e.LinksTypes={DocumentLink:u.DocumentLinkType,FileLink:a.FileLinkType,ExternalLink:o.ExternalLinkType,ImageLink:c.ImageLinkType,LinkContent:f.LinkContentType}},57659:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SeparatorContent=e.SeparatorContentType=void 0;let r=n(87783),i=(0,r.__importStar)(n(87830));e.SeparatorContentType="SeparatorContent",e.SeparatorContent={codec:i.strict({__TYPE__:i.literal(e.SeparatorContentType)}),is:t=>"SeparatorContent"===t.__TYPE__}},3773:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Block=e.TextBlock=e.checkEmbedBlock=e.EmbedBlock=e.checkImageBlock=e.ImageBlock=e.ValidatedMetas=e.Span=e.Meta=void 0;let r=n(87783),i=(0,r.__importStar)(n(87412)),u=(0,r.__importStar)(n(87830)),o=n(46239),a=n(37581),c=n(47320),f=n(43420),l=n(48025),s=n(4633);e.Meta=u.exact(u.intersection([u.partial({data:u.unknown}),u.type({start:u.number,end:u.number,type:u.union([o.RichTextNodeTypeCodec,u.literal("label")])}),])),e.Span=e.Meta,e.ValidatedMetas=new u.Type("ValidatedMetas",t=>Array.isArray(t)&&t.every(e.Meta.is),(t,n)=>{if(!Array.isArray(t))return u.failure(t,n);{let r=t.reduce((t,r)=>{let u=e.Meta.decode(r);if(i.isRight(u)){let o=u.right;if(o.data&&"hyperlink"===o.type&&i.isRight(s.Link.validate(o.data,n))||"hyperlink"!==o.type)return[...t,o]}return t},[]).sort((t,e)=>t.start-e.start);return u.success(r)}},t=>u.array(e.Meta).encode(t)),e.ImageBlock=u.exact(u.intersection([u.type({type:u.literal(o.RichTextNodeType.image),data:u.intersection([l.ImageContentView,u.partial({linkTo:(0,c.nullable)(s.Link)}),])}),u.partial({label:a.StringOrNull,direction:a.StringOrNull}),])),e.checkImageBlock=function(t){return t.type===o.RichTextNodeType.image},e.EmbedBlock=u.exact(u.intersection([u.type({type:u.literal(o.RichTextNodeType.embed),data:f.EmbedContent}),u.partial({label:a.StringOrNull,direction:a.StringOrNull}),])),e.checkEmbedBlock=function(t){return t.type===o.RichTextNodeType.embed},e.TextBlock=u.exact(u.intersection([u.type({type:(0,c.refineType)(o.RichTextNodeTypeCodec,`string which isn't ${o.RichTextNodeType.image} ${o.RichTextNodeType.embed}`,t=>t!==o.RichTextNodeType.image&&t!==o.RichTextNodeType.embed),content:u.intersection([u.type({text:u.string}),u.partial({spans:e.ValidatedMetas}),])}),u.partial({label:u.string,direction:u.string}),])),e.Block=u.union([e.ImageBlock,e.EmbedBlock,e.TextBlock])},46354:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Blocks=e.StructuredTextContent=e.StructuredTextContentType=void 0;let r=n(87783),i=n(81878),u=(0,r.__importStar)(n(87830)),o=n(3773);e.StructuredTextContentType="StructuredTextContent",e.StructuredTextContent=new u.Type(e.StructuredTextContentType,t=>(null==t?void 0:t.__TYPE__)===e.StructuredTextContentType,(t,n)=>i.Chain.chain(u.array(o.Block).validate(t,n),t=>u.success({value:t,__TYPE__:e.StructuredTextContentType})),()=>{throw Error("NotImplementedError: Not relevant method")}),e.Blocks=(0,r.__importStar)(n(3773))},32296:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NestableTypes=e.Links=e.IntegrationFieldsContent=e.ImageContentView=e.ImageContent=e.GeoPointContent=e.FieldContent=e.BooleanContent=void 0;let r=n(87783),i=n(99616),u=n(43420),o=n(70786),a=n(45337),c=n(48025),f=n(24299),l=n(4633),s=n(57659),p=n(46354);var d=n(99616);Object.defineProperty(e,"BooleanContent",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}}),(0,r.__exportStar)(n(43420),e);var h=n(70786);Object.defineProperty(e,"FieldContent",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var m=n(45337);Object.defineProperty(e,"GeoPointContent",{enumerable:!0,get:function(){return m.GeoPointContent}});var v=n(48025);Object.defineProperty(e,"ImageContent",{enumerable:!0,get:function(){return v.ImageContent}}),Object.defineProperty(e,"ImageContentView",{enumerable:!0,get:function(){return v.ImageContentView}});var y=n(24299);Object.defineProperty(e,"IntegrationFieldsContent",{enumerable:!0,get:function(){return(0,r.__importDefault)(y).default}}),e.Links=(0,r.__importStar)(n(4633)),(0,r.__exportStar)(n(57659),e),(0,r.__exportStar)(n(46354),e),e.NestableTypes={Links:l.LinksTypes,StructuredText:p.StructuredTextContentType,Boolean:i.BooleanContentType,Embed:u.EmbedContentType,Field:o.FieldContentType,GeoPoint:a.GeoPointContentType,Image:c.ImageContentType,IntegrationFields:f.IntegrationFieldsContentType,Separator:s.SeparatorContentType}},19913:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositeSliceContent=e.CompositeSliceContentType=void 0;let r=n(87783),i=n(81878),u=(0,r.__importStar)(n(20492)),o=(0,r.__importStar)(n(87830)),a=n(75237);e.CompositeSliceContentType="CompositeSliceContent";let c=o.exact(o.partial({repeat:o.array(o.unknown),"non-repeat":o.UnknownRecord}));e.CompositeSliceContent={fromJson(t,e,n,r,o){var f;let l=Array.of(t,[e,"repeat"]).flat().join("."),s=c.decode(n);if(!(0,i.isRight)(s))return u.none;{let p=s.right.repeat,d=null!==(f=s.right["non-repeat"])&&void 0!==f?f:{},h=a.GroupContent.itemsContentsFromJson(l,p,r,o),m=Object.entries(d).sort(([n],[r])=>{var i,u;let a=null!==(i=o.get(`${Array.of(t,[e]).flat().join(".")}.${n}`))&&void 0!==i?i:1e4,c=null!==(u=o.get(`${Array.of(t,[e]).flat().join(".")}.${r}`))&&void 0!==u?u:1e4;return a-c}),v=m.reduce((n,[i,o])=>{let c=Array.of(t,[e,"non-repeat",i]).flat().join("."),f=r.get(c);if(f){let l=a.SimpleWidgetContent.from(f,o);u.isSome(l)&&(n[i]=l.value)}return n},{});return u.some({repeat:h,nonRepeat:v,__TYPE__:"CompositeSliceContent"})}}}},92488:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedSliceContent=e.SharedSliceContentType=void 0;let r=n(87783),i=n(81878),u=(0,r.__importStar)(n(20492)),o=(0,r.__importStar)(n(87830)),a=n(23284),c=n(75237);e.SharedSliceContentType="SharedSliceContent";let f=o.exact(o.type({variation:o.string,items:(0,a.withFallback)(o.array(o.unknown),[]),primary:(0,a.withFallback)(o.UnknownRecord,{})}));e.SharedSliceContent={fromJson(t,e,n,r,o){let a=(0,i.map)(n=>{let i=Array.of(t,[e,"variations",n.variation,"items",]).flat().join("."),a=c.GroupContent.itemsContentsFromJson(i,n.items,r,o),f=Object.entries(n.primary).sort(([n],[r])=>{var i,u;let a=null!==(i=o.get(`${Array.of(t,[e]).flat().join(".")}.${n}`))&&void 0!==i?i:1e4,c=null!==(u=o.get(`${Array.of(t,[e]).flat().join(".")}.${r}`))&&void 0!==u?u:1e4;return a-c}),l=f.reduce((i,[o,a])=>{let f=Array.of(t,[e,"variations",n.variation,"primary",o,]).flat().join("."),l=r.get(f);if(l){let s=c.SimpleWidgetContent.from(l,a);u.isSome(s)&&(i[o]=s.value)}return i},{}),s={variation:n.variation,primary:l,items:a,__TYPE__:"SharedSliceContent"};return s})(f.decode(n));return u.fromEither(a)}}},82817:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleSliceContent=void 0;let r=n(87783),i=(0,r.__importDefault)(n(18331));e.SimpleSliceContent=i.default},83729:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SliceWidgetContent=void 0;let r=n(87783),i=(0,r.__importStar)(n(20492)),u=(0,r.__importDefault)(n(18331)),o=n(19913),a=n(92488);e.SliceWidgetContent={fromJson(t,e,n,r,c){let f=Array.of(t,[e]).flat().join("."),l=r.get(f);return"SharedSlice"===l?a.SharedSliceContent.fromJson(t,e,n,r,c):"Slice"===l?o.CompositeSliceContent.fromJson(t,e,n,r,c):l?u.default.fromJson(t,e,n,r,c):(0,i.none)}}},917:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlicesContent=e.SlicesContentType=void 0;let r=n(87783),i=(0,r.__importStar)(n(1358)),u=n(42275),o=(0,r.__importStar)(n(20492)),a=(0,r.__importStar)(n(87830)),c=n(47320),f=n(83729);e.SlicesContentType="SliceContentType";let l=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),]));e.SlicesContent={itemsCodec:(t,e)=>(0,u.pipe)(l.decode(t),o.fromEither,o.chain(t=>{let n=t.key.indexOf("$"),r=t.key.substring(0,n>0?n:void 0),i=e(r,t.value);return o.map(e=>{var n;return{key:t.key,name:r,maybeLabel:null!==(n=t.label)&&void 0!==n?n:void 0,widget:e}})(i)})),fromJson(t,n,r,u){if("Slices"!==r.get(t))return console.error("fieldTypes.get(key) !== 'Slices'"),o.none;{let c=o.getOrElse(()=>[])(o.fromEither(a.array(a.unknown).decode(n))),l=(e,n)=>f.SliceWidgetContent.fromJson([t],e,n,r,u);return o.some({value:i.compact(c.map(t=>e.SlicesContent.itemsCodec(t,l))),__TYPE__:e.SlicesContentType})}}}},16360:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783);(0,r.__exportStar)(n(19913),e),(0,r.__exportStar)(n(92488),e),(0,r.__exportStar)(n(82817),e),(0,r.__exportStar)(n(917),e),(0,r.__exportStar)(n(83729),e)},63323:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(81878),u=n(42275),o=(0,r.__importStar)(n(87830));e.default=new o.Type("dateFromString",t=>t instanceof Date,(t,e)=>(0,u.pipe)(o.string.validate(t,e),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?o.failure(t,e):o.success(r)})),t=>t.toISOString())},16905:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(81878),u=n(42275),o=(0,r.__importStar)(n(87830));e.default=new o.Type("dateFromStringOrNumber",t=>t instanceof Date,(t,e)=>(0,u.pipe)(o.union([o.number,o.string]).validate(t,e),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?o.failure(t,e):o.success(r)})),t=>t)},82175:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(81878),u=n(42275),o=(0,r.__importStar)(n(87830));e.default=new o.Type("dateFromTsMs",t=>t instanceof Date,(t,e)=>(0,u.pipe)(o.number.validate(t,e),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?o.failure(t,e):o.success(r)})),t=>t.getTime())},79312:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(81878),u=n(42275),o=(0,r.__importStar)(n(87830));e.default=new o.Type("IntFromNumber",o.Int.is,(t,e)=>(0,u.pipe)(o.number.validate(t,e),(0,i.chain)(t=>o.Int.is(t)?o.success(t):o.success(Math.round(t)))),o.Int.encode)},57288:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(81878),u=n(42275),o=(0,r.__importStar)(n(87830)),a=/^([0-9]+)px$/;e.default=new o.Type("IntFromPixels",o.Int.is,(t,e)=>(0,u.pipe)(o.string.validate(t,e),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return o.failure(t,e);let i=parseInt(r[1]);return o.success(i)}catch{return o.failure(t,e)}})),String)},30487:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(47320);e.default=(0,u.refineType)(i.string,"nonEmptyString",t=>t.trim().length>0)},32514:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(81878),u=n(42275),o=n(87830),a=(0,r.__importDefault)(n(59941));e.default=new o.Type("nonEmptyStringOrNull",t=>"string"==typeof t||null===t,(t,e)=>(0,u.pipe)(a.default.validate(t,e),(0,i.chain)(t=>"string"==typeof t&&t.length>0?(0,o.success)(t):(0,o.success)(null))),t=>t)},63205:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(47320);e.default=(0,u.nullable)(i.number)},70453:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(81878),u=n(42275),o=(0,r.__importStar)(n(87830));e.default=new o.Type("StringFromInt",o.string.is,(t,e)=>(0,u.pipe)(o.boolean.validate(t,e),(0,i.chain)(t=>o.success(t.toString()))),t=>t)},62161:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=n(81878),u=n(42275),o=(0,r.__importStar)(n(87830));e.default=new o.Type("StringFromInt",o.string.is,(t,e)=>(0,u.pipe)(o.number.validate(t,e),(0,i.chain)(t=>o.success(t.toString()))),t=>t)},59941:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(87783),i=(0,r.__importStar)(n(87830)),u=n(47320);e.default=(0,u.nullable)(i.string)},47320:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addType=e.isEmpty=e.objectToMap=e.grouped=e.formatDate=e.formatDateTime=e.filterDouble=e.refineType=e.nullable=void 0;let r=n(87783),i=n(9554),u=n(42275),o=(0,r.__importStar)(n(87830)),a=n(47361);e.nullable=function(t){return o.union([t,o.null,o.undefined])},e.refineType=function(t,e,n){return new o.Type(e,t.is,(e,r)=>(0,u.pipe)(t.validate(e,r),i.either.chain(t=>n(t)?o.success(t):o.failure(e,r))),t.encode)},e.filterDouble=function(t){if(""===t)return null;let e=Number(t);return Number.isNaN(e)?null:e},e.formatDateTime=function(t){return t.toISOString().replace(/\.\d{3}Z$/,"+0000")},e.formatDate=function(t){return t.toISOString().replace(/T.*/,"")},e.grouped=function(t,e){return t.reduce((t,n,r)=>(r%e==0?t.push([n]):t[Math.floor(r/e)].push(n),t),[])},e.objectToMap=function(t){return new Map(Object.entries(t))},e.isEmpty=function(t){for(let e in t)return!1;return!0},e.addType=function(t,e){return(0,a.mapOutput)(t,t=>({...t,__TYPE__:e}))}},37581:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringOrNull=e.StringFromNumber=e.StringFromBoolean=e.NumberOrNull=e.NonEmptyStringOrNull=e.NonEmptyString=e.IntFromPixels=e.IntFromNumber=e.Function=e.DateFromTsMs=e.DateFromStringOrNumber=e.DateFromString=void 0;let r=n(87783);var i=n(63323);Object.defineProperty(e,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var u=n(16905);Object.defineProperty(e,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var o=n(82175);Object.defineProperty(e,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),e.Function=(0,r.__importStar)(n(47320));var a=n(79312);Object.defineProperty(e,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(57288);Object.defineProperty(e,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(30487);Object.defineProperty(e,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(32514);Object.defineProperty(e,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var s=n(63205);Object.defineProperty(e,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var p=n(70453);Object.defineProperty(e,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(62161);Object.defineProperty(e,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var h=n(59941);Object.defineProperty(e,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}})},71777:function(t,e,n){"use strict";n.r(e),n.d(e,{NIL:function(){return C},parse:function(){return v},stringify:function(){return p},v1:function(){return m},v3:function(){return R},v4:function(){return O},v5:function(){return k},validate:function(){return f},version:function(){return P}});var r,i,u,o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var c=/^(?:[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,f=function(t){return"string"==typeof t&&c.test(t)},l=[],s=0;s<256;++s)l.push((s+256).toString(16).substr(1));var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();if(!f(n))throw TypeError("Stringified UUID is invalid");return n},d=0,h=0,m=function(t,e,n){var r=e&&n||0,o=e||Array(16),c=(t=t||{}).node||i,f=void 0!==t.clockseq?t.clockseq:u;if(null==c||null==f){var l=t.random||(t.rng||a)();null==c&&(c=i=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==f&&(f=u=(l[6]<<8|l[7])&16383)}var s=void 0!==t.msecs?t.msecs:Date.now(),m=void 0!==t.nsecs?t.nsecs:h+1,v=s-d+(m-h)/1e4;if(v<0&&void 0===t.clockseq&&(f=f+1&16383),(v<0||s>d)&&void 0===t.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");d=s,h=m,u=f;var y=((268435455&(s+=122192928e5))*1e4+m)%4294967296;o[r++]=y>>>24&255,o[r++]=y>>>16&255,o[r++]=y>>>8&255,o[r++]=255&y;var _=s/4294967296*1e4&268435455;o[r++]=_>>>8&255,o[r++]=255&_,o[r++]=_>>>24&15|16,o[r++]=_>>>16&255,o[r++]=f>>>8|128,o[r++]=255&f;for(var b=0;b<6;++b)o[r+b]=c[b];return e||p(o)},v=function(t){if(!f(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};function y(t,e,n){function r(t,r,i,u){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof r&&(r=v(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+t.length);if(o.set(r),o.set(t,r.length),(o=n(o))[6]=15&o[6]|e,o[8]=63&o[8]|128,i){u=u||0;for(var a=0;a<16;++a)i[u+a]=o[a];return i}return p(o)}try{r.name=t}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function _(t){return(t+64>>>9<<4)+14+1}function b(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function T(t,e,n,r,i,u){var o,a;return b((o=b(b(e,t),b(r,u)))<<i|o>>>32-i,n)}function I(t,e,n,r,i,u,o){return T(e&n|~e&r,t,e,i,u,o)}function S(t,e,n,r,i,u,o){return T(e&r|n&~r,t,e,i,u,o)}function x(t,e,n,r,i,u,o){return T(e^n^r,t,e,i,u,o)}function w(t,e,n,r,i,u,o){return T(n^(e|~r),t,e,i,u,o)}var R=y("v3",48,function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){for(var e=[],n=32*t.length,r="0123456789abcdef",i=0;i<n;i+=8){var u=t[i>>5]>>>i%32&255,o=parseInt(r.charAt(u>>>4&15)+r.charAt(15&u),16);e.push(o)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[_(e)-1]=e;for(var n=1732584193,r=-271733879,i=-1732584194,u=271733878,o=0;o<t.length;o+=16){var a=n,c=r,f=i,l=u;n=I(n,r,i,u,t[o],7,-680876936),u=I(u,n,r,i,t[o+1],12,-389564586),i=I(i,u,n,r,t[o+2],17,606105819),r=I(r,i,u,n,t[o+3],22,-1044525330),n=I(n,r,i,u,t[o+4],7,-176418897),u=I(u,n,r,i,t[o+5],12,1200080426),i=I(i,u,n,r,t[o+6],17,-1473231341),r=I(r,i,u,n,t[o+7],22,-45705983),n=I(n,r,i,u,t[o+8],7,1770035416),u=I(u,n,r,i,t[o+9],12,-1958414417),i=I(i,u,n,r,t[o+10],17,-42063),r=I(r,i,u,n,t[o+11],22,-1990404162),n=I(n,r,i,u,t[o+12],7,1804603682),u=I(u,n,r,i,t[o+13],12,-40341101),i=I(i,u,n,r,t[o+14],17,-1502002290),r=I(r,i,u,n,t[o+15],22,1236535329),n=S(n,r,i,u,t[o+1],5,-165796510),u=S(u,n,r,i,t[o+6],9,-1069501632),i=S(i,u,n,r,t[o+11],14,643717713),r=S(r,i,u,n,t[o],20,-373897302),n=S(n,r,i,u,t[o+5],5,-701558691),u=S(u,n,r,i,t[o+10],9,38016083),i=S(i,u,n,r,t[o+15],14,-660478335),r=S(r,i,u,n,t[o+4],20,-405537848),n=S(n,r,i,u,t[o+9],5,568446438),u=S(u,n,r,i,t[o+14],9,-1019803690),i=S(i,u,n,r,t[o+3],14,-187363961),r=S(r,i,u,n,t[o+8],20,1163531501),n=S(n,r,i,u,t[o+13],5,-1444681467),u=S(u,n,r,i,t[o+2],9,-51403784),i=S(i,u,n,r,t[o+7],14,1735328473),r=S(r,i,u,n,t[o+12],20,-1926607734),n=x(n,r,i,u,t[o+5],4,-378558),u=x(u,n,r,i,t[o+8],11,-2022574463),i=x(i,u,n,r,t[o+11],16,1839030562),r=x(r,i,u,n,t[o+14],23,-35309556),n=x(n,r,i,u,t[o+1],4,-1530992060),u=x(u,n,r,i,t[o+4],11,1272893353),i=x(i,u,n,r,t[o+7],16,-155497632),r=x(r,i,u,n,t[o+10],23,-1094730640),n=x(n,r,i,u,t[o+13],4,681279174),u=x(u,n,r,i,t[o],11,-358537222),i=x(i,u,n,r,t[o+3],16,-722521979),r=x(r,i,u,n,t[o+6],23,76029189),n=x(n,r,i,u,t[o+9],4,-640364487),u=x(u,n,r,i,t[o+12],11,-421815835),i=x(i,u,n,r,t[o+15],16,530742520),r=x(r,i,u,n,t[o+2],23,-995338651),n=w(n,r,i,u,t[o],6,-198630844),u=w(u,n,r,i,t[o+7],10,1126891415),i=w(i,u,n,r,t[o+14],15,-1416354905),r=w(r,i,u,n,t[o+5],21,-57434055),n=w(n,r,i,u,t[o+12],6,1700485571),u=w(u,n,r,i,t[o+3],10,-1894986606),i=w(i,u,n,r,t[o+10],15,-1051523),r=w(r,i,u,n,t[o+1],21,-2054922799),n=w(n,r,i,u,t[o+8],6,1873313359),u=w(u,n,r,i,t[o+15],10,-30611744),i=w(i,u,n,r,t[o+6],15,-1560198380),r=w(r,i,u,n,t[o+13],21,1309151649),n=w(n,r,i,u,t[o+4],6,-145523070),u=w(u,n,r,i,t[o+11],10,-1120210379),i=w(i,u,n,r,t[o+2],15,718787259),r=w(r,i,u,n,t[o+9],21,-343485551),n=b(n,a),r=b(r,c),i=b(i,f),u=b(u,l)}return[n,r,i,u]}(function(t){if(0===t.length)return[];for(var e=8*t.length,n=new Uint32Array(_(e)),r=0;r<e;r+=8)n[r>>5]|=(255&t[r/8])<<r%32;return n}(t),8*t.length))}),O=function(t,e,n){var r=(t=t||{}).random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return p(r)};function M(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:case 3:return e^n^r;case 2:return e&n^e&r^n&r}}function E(t,e){return t<<e|t>>>32-e}var k=y("v5",80,function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i<r.length;++i)t.push(r.charCodeAt(i))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var u=Math.ceil((t.length/4+2)/16),o=Array(u),a=0;a<u;++a){for(var c=new Uint32Array(16),f=0;f<16;++f)c[f]=t[64*a+4*f]<<24|t[64*a+4*f+1]<<16|t[64*a+4*f+2]<<8|t[64*a+4*f+3];o[a]=c}o[u-1][14]=(t.length-1)*8/4294967296,o[u-1][14]=Math.floor(o[u-1][14]),o[u-1][15]=(t.length-1)*8&4294967295;for(var l=0;l<u;++l){for(var s=new Uint32Array(80),p=0;p<16;++p)s[p]=o[l][p];for(var d=16;d<80;++d)s[d]=E(s[d-3]^s[d-8]^s[d-14]^s[d-16],1);for(var h=n[0],m=n[1],v=n[2],y=n[3],_=n[4],b=0;b<80;++b){var T=Math.floor(b/20),I=E(h,5)+M(T,m,v,y)+_+e[T]+s[b]>>>0;_=y,y=v,v=E(m,30)>>>0,m=h,h=I}n[0]=n[0]+h>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+_>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),C="00000000-0000-0000-0000-000000000000",P=function(t){if(!f(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},53429:function(t,e,n){"use strict";n.d(e,{N:function(){return f}});var r,i,u=n(2784),o={},a={get exports(){return o},set exports(g){o=g}},c={};function f(t,e){return Array(t).fill("").map((t,n)=>o.jsx(u.Fragment,{children:e},n))}(i=a).exports=function(){if(r)return c;r=1;var t=Symbol.for("react.element"),e=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,u){var a,c={},f=null,l=null;for(a in void 0!==u&&(f=""+u),void 0!==r.key&&(f=""+r.key),void 0!==r.ref&&(l=r.ref),r)n.call(r,a)&&!o.hasOwnProperty(a)&&(c[a]=r[a]);if(e&&e.defaultProps)for(a in r=e.defaultProps)void 0===c[a]&&(c[a]=r[a]);return{$$typeof:t,type:e,key:f,ref:l,props:c,_owner:i.current}}return c.Fragment=e,c.jsx=a,c.jsxs=a,c}()},1611:function(t,e,n){"use strict";n.d(e,{WY:function(){return i},xb:function(){return a}});var r=n(86579);async function i(t,e){let{okType:n,signal:i,headers:a,body:c,timeout:f=15e3,...l}=e,s=new Headers(a);s.has("Content-Type")||s.set("Content-Type","application/json"),"multipart/form-data"===s.get("Content-Type")&&s.delete("Content-Type");let p=o();p&&s.set("Authorization",`Bearer ${p}`);let d="application/json"===s.get("Content-Type")?JSON.stringify(c):c,h=!1;try{let m=e.method&&"GET"!==e.method?void 0:new AbortController,v=function(t){let e=new AbortController;function n(){for(let r of(e.abort(),t))r.removeEventListener("abort",n)}for(let r of t){if(r.aborted){n();break}r.addEventListener("abort",n)}return e.signal}([null==m?void 0:m.signal,i].filter(r.$));m&&setTimeout(()=>{h=!0,m.abort()},f);let y=await fetch(t,{...l,body:d,headers:s,signal:v}),{status:_}=y,b=y.clone(),T=await y.json().catch(t=>b.text());if(y.ok){let I=n.safeParse(T);if(!I.success)throw new u({type:"validation",status:_,cause:I.error});return I.data}throw new u({type:"http",status:_,body:T})}catch(w){var S,x;throw(S=w,S instanceof u)?w:new u((x=w,x instanceof DOMException&&"AbortError"===x.name)?{type:h?"timeout":"abort"}:{type:"unknown",cause:w})}}class u extends Error{constructor(t){super(JSON.stringify(t,null,2)),this.detail=t,this.name="RequestError"}}let o=()=>"";function a(t){return"dev"===t?"same-origin":"include"}},16247:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(77252);function i(t){let{documentId:e,versionId:n,env:i,status:u,releaseId:o}=t,a=(0,r.aO)({params:{s:u,v:n,r:o}}),c=new URLSearchParams(a).toString();return`${"dev"===i?"":"/builder"}/pages/${e}?${c}`??0}},661:function(t,e,n){"use strict";n.d(e,{fW:function(){return ev},EK:function(){return eg},Ag:function(){return eI},JY:function(){return eO},Mi:function(){return ex},W7:function(){return em},Vu:function(){return ey}}),(t9=en||(en={})).assertEqual=t=>t,t9.assertIs=function(t){},t9.assertNever=function(t){throw Error()},t9.arrayToEnum=t=>{let e={};for(let n of t)e[n]=n;return e},t9.getValidEnumValues=t=>{let e=t9.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let r of e)n[r]=t[r];return t9.objectValues(n)},t9.objectValues=t=>t9.objectKeys(t).map(function(e){return t[e]}),t9.objectKeys="function"==typeof Object.keys?t=>Object.keys(t):t=>{let e=[];for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e},t9.find=(t,e)=>{for(let n of t)if(e(n))return n},t9.isInteger="function"==typeof Number.isInteger?t=>Number.isInteger(t):t=>"number"==typeof t&&isFinite(t)&&Math.floor(t)===t,t9.joinValues=function(t,e=" | "){return t.map(t=>"string"==typeof t?`'${t}'`:t).join(e)},t9.jsonStringifyReplacer=(t,e)=>"bigint"==typeof e?e.toString():e,(t6=er||(er={})).mergeShapes=(t,e)=>({...t,...e});let r=en.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set",]),i=t=>{switch(typeof t){case"undefined":return r.undefined;case"string":return r.string;case"number":return isNaN(t)?r.nan:r.number;case"boolean":return r.boolean;case"function":return r.function;case"bigint":return r.bigint;case"symbol":return r.symbol;case"object":if(Array.isArray(t))return r.array;if(null===t)return r.null;if(t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch)return r.promise;if("undefined"!=typeof Map&&t instanceof Map)return r.map;if("undefined"!=typeof Set&&t instanceof Set)return r.set;if("undefined"!=typeof Date&&t instanceof Date)return r.date;return r.object;default:return r.unknown}},u=en.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite",]),o=t=>{let e=JSON.stringify(t,null,2);return e.replace(/"([^"]+)":/g,"$1:")};class a extends Error{constructor(t){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};let e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){let e=t||function(t){return t.message},n={_errors:[]},r=t=>{for(let i of t.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(e(i));else{let u=n,o=0;for(;o<i.path.length;){let a=i.path[o],c=o===i.path.length-1;c?(u[a]=u[a]||{_errors:[]},u[a]._errors.push(e(i))):u[a]=u[a]||{_errors:[]},u=u[a],o++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,en.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(t=t=>t.message){let e={},n=[];for(let r of this.issues)r.path.length>0?(e[r.path[0]]=e[r.path[0]]||[],e[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:e}}get formErrors(){return this.flatten()}}a.create=t=>{let e=new a(t);return e};let c=(t,e)=>{let n;switch(t.code){case u.invalid_type:n=t.received===r.undefined?"Required":`Expected ${t.expected}, received ${t.received}`;break;case u.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,en.jsonStringifyReplacer)}`;break;case u.unrecognized_keys:n=`Unrecognized key(s) in object: ${en.joinValues(t.keys,", ")}`;break;case u.invalid_union:n="Invalid input";break;case u.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${en.joinValues(t.options)}`;break;case u.invalid_enum_value:n=`Invalid enum value. Expected ${en.joinValues(t.options)}, received '${t.received}'`;break;case u.invalid_arguments:n="Invalid function arguments";break;case u.invalid_return_type:n="Invalid function return type";break;case u.invalid_date:n="Invalid date";break;case u.invalid_string:"object"==typeof t.validation?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,"number"==typeof t.validation.position&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:en.assertNever(t.validation):n="regex"!==t.validation?`Invalid ${t.validation}`:"Invalid";break;case u.too_small:n="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:"date"===t.type?`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:"Invalid input";break;case u.too_big:n="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"bigint"===t.type?`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"date"===t.type?`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:"Invalid input";break;case u.custom:n="Invalid input";break;case u.invalid_intersection_types:n="Intersection results could not be merged";break;case u.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case u.not_finite:n="Number must be finite";break;default:n=e.defaultError,en.assertNever(t)}return{message:n}},f=c;function l(t){f=t}function s(){return f}let p=t=>{let{data:e,path:n,errorMaps:r,issueData:i}=t,u=[...n,...i.path||[]],o={...i,path:u},a="",c=r.filter(t=>!!t).slice().reverse();for(let f of c)a=f(o,{data:e,defaultError:a}).message;return{...i,path:u,message:i.message||a}};function d(t,e){let n=p({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,f,c].filter(t=>!!t)});t.common.issues.push(n)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(t,e){let n=[];for(let r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.push(r.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,e){let n=[];for(let r of e)n.push({key:await r.key,value:await r.value});return h.mergeObjectSync(t,n)}static mergeObjectSync(t,e){let n={};for(let r of e){let{key:i,value:u}=r;if("aborted"===i.status||"aborted"===u.status)return m;"dirty"===i.status&&t.dirty(),"dirty"===u.status&&t.dirty(),(void 0!==u.value||r.alwaysSet)&&(n[i.value]=u.value)}return{status:t.value,value:n}}}let m=Object.freeze({status:"aborted"}),v=t=>({status:"dirty",value:t}),y=t=>({status:"valid",value:t}),_=t=>"aborted"===t.status,b=t=>"dirty"===t.status,T=t=>"valid"===t.status,I=t=>"undefined"!=typeof Promise&&t instanceof Promise;(et=ei||(ei={})).errToObj=t=>"string"==typeof t?{message:t}:t||{},et.toString=t=>"string"==typeof t?t:null==t?void 0:t.message;class S{constructor(t,e,n,r){this._cachedPath=[],this.parent=t,this.data=e,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let x=(t,e)=>{if(T(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new a(t.common.issues);return this._error=n,this._error}}};function w(t){if(!t)return{};let{errorMap:e,invalid_type_error:n,required_error:r,description:i}=t;if(e&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(e)return{errorMap:e,description:i};let u=(t,e)=>"invalid_type"!==t.code?{message:e.defaultError}:void 0===e.data?{message:null!=r?r:e.defaultError}:{message:null!=n?n:e.defaultError};return{errorMap:u,description:i}}class R{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return i(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:i(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new h,ctx:{common:t.parent.common,data:t.data,parsedType:i(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let e=this._parse(t);if(I(e))throw Error("Synchronous parse encountered promise.");return e}_parseAsync(t){let e=this._parse(t);return Promise.resolve(e)}parse(t,e){let n=this.safeParse(t,e);if(n.success)return n.data;throw n.error}safeParse(t,e){var n;let r={common:{issues:[],async:null!==(n=null==e?void 0:e.async)&&void 0!==n&&n,contextualErrorMap:null==e?void 0:e.errorMap},path:(null==e?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:i(t)},u=this._parseSync({data:t,path:r.path,parent:r});return x(r,u)}async parseAsync(t,e){let n=await this.safeParseAsync(t,e);if(n.success)return n.data;throw n.error}async safeParseAsync(t,e){let n={common:{issues:[],contextualErrorMap:null==e?void 0:e.errorMap,async:!0},path:(null==e?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:i(t)},r=this._parse({data:t,path:n.path,parent:n}),u=await (I(r)?r:Promise.resolve(r));return x(n,u)}refine(t,e){let n=t=>"string"==typeof e||void 0===e?{message:e}:"function"==typeof e?e(t):e;return this._refinement((e,r)=>{let i=t(e),o=()=>r.addIssue({code:u.custom,...n(e)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(t=>!!t||(o(),!1)):!!i||(o(),!1)})}refinement(t,e){return this._refinement((n,r)=>!!t(n)||(r.addIssue("function"==typeof e?e(n,r):e),!1))}_refinement(t){return new td({schema:this,typeName:eu.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return th.create(this,this._def)}nullable(){return tm.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $.create(this,this._def)}promise(){return tp.create(this,this._def)}or(t){return J.create([this,t],this._def)}and(t){return te.create(this,t,this._def)}transform(t){return new td({...w(this._def),schema:this,typeName:eu.ZodEffects,effect:{type:"transform",transform:t}})}default(t){return new tv({...w(this._def),innerType:this,defaultValue:"function"==typeof t?t:()=>t,typeName:eu.ZodDefault})}brand(){return new tb({typeName:eu.ZodBranded,type:this,...w(this._def)})}catch(t){return new tg({...w(this._def),innerType:this,catchValue:"function"==typeof t?t:()=>t,typeName:eu.ZodCatch})}describe(t){let e=this.constructor;return new e({...this._def,description:t})}pipe(t){return tT.create(this,t)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let O=/^c[^\s-]{8,}$/i,M=/^[a-z][a-z0-9]*$/,E=/[0-9A-HJKMNP-TV-Z]{26}/,k=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,C=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,P=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,W=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,D=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,F=t=>t.precision?t.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):0===t.precision?t.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function N(t,e){return!!(("v4"===e||!e)&&W.test(t)||("v6"===e||!e)&&D.test(t))}class A extends R{constructor(){super(...arguments),this._regex=(t,e,n)=>this.refinement(e=>t.test(e),{validation:e,code:u.invalid_string,...ei.errToObj(n)}),this.nonempty=t=>this.min(1,ei.errToObj(t)),this.trim=()=>new A({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new A({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new A({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(t){this._def.coerce&&(t.data=String(t.data));let e=this._getType(t);if(e!==r.string){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.string,received:n.parsedType}),m}let i=new h,o;for(let a of this._def.checks)if("min"===a.kind)t.data.length<a.value&&(d(o=this._getOrReturnCtx(t,o),{code:u.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if("max"===a.kind)t.data.length>a.value&&(d(o=this._getOrReturnCtx(t,o),{code:u.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if("length"===a.kind){let c=t.data.length>a.value,f=t.data.length<a.value;(c||f)&&(o=this._getOrReturnCtx(t,o),c?d(o,{code:u.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):f&&d(o,{code:u.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),i.dirty())}else if("email"===a.kind)C.test(t.data)||(d(o=this._getOrReturnCtx(t,o),{validation:"email",code:u.invalid_string,message:a.message}),i.dirty());else if("emoji"===a.kind)P.test(t.data)||(d(o=this._getOrReturnCtx(t,o),{validation:"emoji",code:u.invalid_string,message:a.message}),i.dirty());else if("uuid"===a.kind)k.test(t.data)||(d(o=this._getOrReturnCtx(t,o),{validation:"uuid",code:u.invalid_string,message:a.message}),i.dirty());else if("cuid"===a.kind)O.test(t.data)||(d(o=this._getOrReturnCtx(t,o),{validation:"cuid",code:u.invalid_string,message:a.message}),i.dirty());else if("cuid2"===a.kind)M.test(t.data)||(d(o=this._getOrReturnCtx(t,o),{validation:"cuid2",code:u.invalid_string,message:a.message}),i.dirty());else if("ulid"===a.kind)E.test(t.data)||(d(o=this._getOrReturnCtx(t,o),{validation:"ulid",code:u.invalid_string,message:a.message}),i.dirty());else if("url"===a.kind)try{new URL(t.data)}catch(l){d(o=this._getOrReturnCtx(t,o),{validation:"url",code:u.invalid_string,message:a.message}),i.dirty()}else if("regex"===a.kind){a.regex.lastIndex=0;let s=a.regex.test(t.data);s||(d(o=this._getOrReturnCtx(t,o),{validation:"regex",code:u.invalid_string,message:a.message}),i.dirty())}else if("trim"===a.kind)t.data=t.data.trim();else if("includes"===a.kind)t.data.includes(a.value,a.position)||(d(o=this._getOrReturnCtx(t,o),{code:u.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),i.dirty());else if("toLowerCase"===a.kind)t.data=t.data.toLowerCase();else if("toUpperCase"===a.kind)t.data=t.data.toUpperCase();else if("startsWith"===a.kind)t.data.startsWith(a.value)||(d(o=this._getOrReturnCtx(t,o),{code:u.invalid_string,validation:{startsWith:a.value},message:a.message}),i.dirty());else if("endsWith"===a.kind)t.data.endsWith(a.value)||(d(o=this._getOrReturnCtx(t,o),{code:u.invalid_string,validation:{endsWith:a.value},message:a.message}),i.dirty());else if("datetime"===a.kind){let p=F(a);p.test(t.data)||(d(o=this._getOrReturnCtx(t,o),{code:u.invalid_string,validation:"datetime",message:a.message}),i.dirty())}else"ip"===a.kind?N(t.data,a.version)||(d(o=this._getOrReturnCtx(t,o),{validation:"ip",code:u.invalid_string,message:a.message}),i.dirty()):en.assertNever(a);return{status:i.value,value:t.data}}_addCheck(t){return new A({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ei.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ei.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ei.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ei.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ei.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ei.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ei.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ei.errToObj(t)})}datetime(t){var e;return"string"==typeof t?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:void 0===(null==t?void 0:t.precision)?null:null==t?void 0:t.precision,offset:null!==(e=null==t?void 0:t.offset)&&void 0!==e&&e,...ei.errToObj(null==t?void 0:t.message)})}regex(t,e){return this._addCheck({kind:"regex",regex:t,...ei.errToObj(e)})}includes(t,e){return this._addCheck({kind:"includes",value:t,position:null==e?void 0:e.position,...ei.errToObj(null==e?void 0:e.message)})}startsWith(t,e){return this._addCheck({kind:"startsWith",value:t,...ei.errToObj(e)})}endsWith(t,e){return this._addCheck({kind:"endsWith",value:t,...ei.errToObj(e)})}min(t,e){return this._addCheck({kind:"min",value:t,...ei.errToObj(e)})}max(t,e){return this._addCheck({kind:"max",value:t,...ei.errToObj(e)})}length(t,e){return this._addCheck({kind:"length",value:t,...ei.errToObj(e)})}get isDatetime(){return!!this._def.checks.find(t=>"datetime"===t.kind)}get isEmail(){return!!this._def.checks.find(t=>"email"===t.kind)}get isURL(){return!!this._def.checks.find(t=>"url"===t.kind)}get isEmoji(){return!!this._def.checks.find(t=>"emoji"===t.kind)}get isUUID(){return!!this._def.checks.find(t=>"uuid"===t.kind)}get isCUID(){return!!this._def.checks.find(t=>"cuid"===t.kind)}get isCUID2(){return!!this._def.checks.find(t=>"cuid2"===t.kind)}get isULID(){return!!this._def.checks.find(t=>"ulid"===t.kind)}get isIP(){return!!this._def.checks.find(t=>"ip"===t.kind)}get minLength(){let t=null;for(let e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxLength(){let t=null;for(let e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return t}}function L(t,e){let n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,i=n>r?n:r,u=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return u%o/Math.pow(10,i)}A.create=t=>{var e;return new A({checks:[],typeName:eu.ZodString,coerce:null!==(e=null==t?void 0:t.coerce)&&void 0!==e&&e,...w(t)})};class U extends R{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){this._def.coerce&&(t.data=Number(t.data));let e=this._getType(t);if(e!==r.number){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.number,received:n.parsedType}),m}let i,o=new h;for(let a of this._def.checks)if("int"===a.kind)en.isInteger(t.data)||(d(i=this._getOrReturnCtx(t,i),{code:u.invalid_type,expected:"integer",received:"float",message:a.message}),o.dirty());else if("min"===a.kind){let c=a.inclusive?t.data<a.value:t.data<=a.value;c&&(d(i=this._getOrReturnCtx(t,i),{code:u.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty())}else if("max"===a.kind){let f=a.inclusive?t.data>a.value:t.data>=a.value;f&&(d(i=this._getOrReturnCtx(t,i),{code:u.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty())}else"multipleOf"===a.kind?0!==L(t.data,a.value)&&(d(i=this._getOrReturnCtx(t,i),{code:u.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):"finite"===a.kind?Number.isFinite(t.data)||(d(i=this._getOrReturnCtx(t,i),{code:u.not_finite,message:a.message}),o.dirty()):en.assertNever(a);return{status:o.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,ei.toString(e))}gt(t,e){return this.setLimit("min",t,!1,ei.toString(e))}lte(t,e){return this.setLimit("max",t,!0,ei.toString(e))}lt(t,e){return this.setLimit("max",t,!1,ei.toString(e))}setLimit(t,e,n,r){return new U({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:n,message:ei.toString(r)},]})}_addCheck(t){return new U({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ei.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ei.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ei.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ei.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ei.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:ei.toString(e)})}finite(t){return this._addCheck({kind:"finite",message:ei.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ei.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ei.toString(t)})}get minValue(){let t=null;for(let e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(let e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return t}get isInt(){return!!this._def.checks.find(t=>"int"===t.kind||"multipleOf"===t.kind&&en.isInteger(t.value))}get isFinite(){let t=null,e=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===e||n.value>e)&&(e=n.value):"max"===n.kind&&(null===t||n.value<t)&&(t=n.value)}return Number.isFinite(e)&&Number.isFinite(t)}}U.create=t=>new U({checks:[],typeName:eu.ZodNumber,coerce:(null==t?void 0:t.coerce)||!1,...w(t)});class j extends R{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){this._def.coerce&&(t.data=BigInt(t.data));let e=this._getType(t);if(e!==r.bigint){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.bigint,received:n.parsedType}),m}let i,o=new h;for(let a of this._def.checks)if("min"===a.kind){let c=a.inclusive?t.data<a.value:t.data<=a.value;c&&(d(i=this._getOrReturnCtx(t,i),{code:u.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty())}else if("max"===a.kind){let f=a.inclusive?t.data>a.value:t.data>=a.value;f&&(d(i=this._getOrReturnCtx(t,i),{code:u.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty())}else"multipleOf"===a.kind?t.data%a.value!==BigInt(0)&&(d(i=this._getOrReturnCtx(t,i),{code:u.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):en.assertNever(a);return{status:o.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,ei.toString(e))}gt(t,e){return this.setLimit("min",t,!1,ei.toString(e))}lte(t,e){return this.setLimit("max",t,!0,ei.toString(e))}lt(t,e){return this.setLimit("max",t,!1,ei.toString(e))}setLimit(t,e,n,r){return new j({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:n,message:ei.toString(r)},]})}_addCheck(t){return new j({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ei.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ei.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ei.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ei.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:ei.toString(e)})}get minValue(){let t=null;for(let e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(let e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return t}}j.create=t=>{var e;return new j({checks:[],typeName:eu.ZodBigInt,coerce:null!==(e=null==t?void 0:t.coerce)&&void 0!==e&&e,...w(t)})};class q extends R{_parse(t){this._def.coerce&&(t.data=Boolean(t.data));let e=this._getType(t);if(e!==r.boolean){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.boolean,received:n.parsedType}),m}return y(t.data)}}q.create=t=>new q({typeName:eu.ZodBoolean,coerce:(null==t?void 0:t.coerce)||!1,...w(t)});class B extends R{_parse(t){this._def.coerce&&(t.data=new Date(t.data));let e=this._getType(t);if(e!==r.date){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.date,received:n.parsedType}),m}if(isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return d(i,{code:u.invalid_date}),m}let o=new h,a;for(let c of this._def.checks)"min"===c.kind?t.data.getTime()<c.value&&(d(a=this._getOrReturnCtx(t,a),{code:u.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),o.dirty()):"max"===c.kind?t.data.getTime()>c.value&&(d(a=this._getOrReturnCtx(t,a),{code:u.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),o.dirty()):en.assertNever(c);return{status:o.value,value:new Date(t.data.getTime())}}_addCheck(t){return new B({...this._def,checks:[...this._def.checks,t]})}min(t,e){return this._addCheck({kind:"min",value:t.getTime(),message:ei.toString(e)})}max(t,e){return this._addCheck({kind:"max",value:t.getTime(),message:ei.toString(e)})}get minDate(){let t=null;for(let e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return null!=t?new Date(t):null}get maxDate(){let t=null;for(let e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return null!=t?new Date(t):null}}B.create=t=>new B({checks:[],coerce:(null==t?void 0:t.coerce)||!1,typeName:eu.ZodDate,...w(t)});class Y extends R{_parse(t){let e=this._getType(t);if(e!==r.symbol){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.symbol,received:n.parsedType}),m}return y(t.data)}}Y.create=t=>new Y({typeName:eu.ZodSymbol,...w(t)});class K extends R{_parse(t){let e=this._getType(t);if(e!==r.undefined){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.undefined,received:n.parsedType}),m}return y(t.data)}}K.create=t=>new K({typeName:eu.ZodUndefined,...w(t)});class G extends R{_parse(t){let e=this._getType(t);if(e!==r.null){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.null,received:n.parsedType}),m}return y(t.data)}}G.create=t=>new G({typeName:eu.ZodNull,...w(t)});class z extends R{constructor(){super(...arguments),this._any=!0}_parse(t){return y(t.data)}}z.create=t=>new z({typeName:eu.ZodAny,...w(t)});class V extends R{constructor(){super(...arguments),this._unknown=!0}_parse(t){return y(t.data)}}V.create=t=>new V({typeName:eu.ZodUnknown,...w(t)});class H extends R{_parse(t){let e=this._getOrReturnCtx(t);return d(e,{code:u.invalid_type,expected:r.never,received:e.parsedType}),m}}H.create=t=>new H({typeName:eu.ZodNever,...w(t)});class Z extends R{_parse(t){let e=this._getType(t);if(e!==r.undefined){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.void,received:n.parsedType}),m}return y(t.data)}}Z.create=t=>new Z({typeName:eu.ZodVoid,...w(t)});class $ extends R{_parse(t){let{ctx:e,status:n}=this._processInputParams(t),i=this._def;if(e.parsedType!==r.array)return d(e,{code:u.invalid_type,expected:r.array,received:e.parsedType}),m;if(null!==i.exactLength){let o=e.data.length>i.exactLength.value,a=e.data.length<i.exactLength.value;(o||a)&&(d(e,{code:o?u.too_big:u.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&e.data.length<i.minLength.value&&(d(e,{code:u.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&e.data.length>i.maxLength.value&&(d(e,{code:u.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),e.common.async)return Promise.all([...e.data].map((t,n)=>i.type._parseAsync(new S(e,t,e.path,n)))).then(t=>h.mergeArray(n,t));let c=[...e.data].map((t,n)=>i.type._parseSync(new S(e,t,e.path,n)));return h.mergeArray(n,c)}get element(){return this._def.type}min(t,e){return new $({...this._def,minLength:{value:t,message:ei.toString(e)}})}max(t,e){return new $({...this._def,maxLength:{value:t,message:ei.toString(e)}})}length(t,e){return new $({...this._def,exactLength:{value:t,message:ei.toString(e)}})}nonempty(t){return this.min(1,t)}}$.create=(t,e)=>new $({type:t,minLength:null,maxLength:null,exactLength:null,typeName:eu.ZodArray,...w(e)});class X extends R{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let t=this._def.shape(),e=en.objectKeys(t);return this._cached={shape:t,keys:e}}_parse(t){let e=this._getType(t);if(e!==r.object){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.object,received:n.parsedType}),m}let{status:i,ctx:o}=this._processInputParams(t),{shape:a,keys:c}=this._getCached(),f=[];if(!(this._def.catchall instanceof H&&"strip"===this._def.unknownKeys))for(let l in o.data)c.includes(l)||f.push(l);let s=[];for(let p of c){let v=a[p],y=o.data[p];s.push({key:{status:"valid",value:p},value:v._parse(new S(o,y,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof H){let _=this._def.unknownKeys;if("passthrough"===_)for(let b of f)s.push({key:{status:"valid",value:b},value:{status:"valid",value:o.data[b]}});else if("strict"===_)f.length>0&&(d(o,{code:u.unrecognized_keys,keys:f}),i.dirty());else if("strip"===_);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let T=this._def.catchall;for(let I of f){let x=o.data[I];s.push({key:{status:"valid",value:I},value:T._parse(new S(o,x,o.path,I)),alwaysSet:I in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let t=[];for(let e of s){let n=await e.key;t.push({key:n,value:await e.value,alwaysSet:e.alwaysSet})}return t}).then(t=>h.mergeObjectSync(i,t)):h.mergeObjectSync(i,s)}get shape(){return this._def.shape()}strict(t){return ei.errToObj,new X({...this._def,unknownKeys:"strict",...void 0!==t?{errorMap:(e,n)=>{var r,i,u,o;let a=null!==(u=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,e,n).message)&&void 0!==u?u:n.defaultError;return"unrecognized_keys"===e.code?{message:null!==(o=ei.errToObj(t).message)&&void 0!==o?o:a}:{message:a}}}:{}})}strip(){return new X({...this._def,unknownKeys:"strip"})}passthrough(){return new X({...this._def,unknownKeys:"passthrough"})}extend(t){return new X({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){let e=new X({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:eu.ZodObject});return e}setKey(t,e){return this.augment({[t]:e})}catchall(t){return new X({...this._def,catchall:t})}pick(t){let e={};return en.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(e[n]=this.shape[n])}),new X({...this._def,shape:()=>e})}omit(t){let e={};return en.objectKeys(this.shape).forEach(n=>{t[n]||(e[n]=this.shape[n])}),new X({...this._def,shape:()=>e})}deepPartial(){return function t(e){if(e instanceof X){let n={};for(let r in e.shape){let i=e.shape[r];n[r]=th.create(t(i))}return new X({...e._def,shape:()=>n})}if(e instanceof $)return new $({...e._def,type:t(e.element)});if(e instanceof th)return th.create(t(e.unwrap()));if(e instanceof tm)return tm.create(t(e.unwrap()));if(e instanceof tn)return tn.create(e.items.map(e=>t(e)));else return e}(this)}partial(t){let e={};return en.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];t&&!t[n]?e[n]=r:e[n]=r.optional()}),new X({...this._def,shape:()=>e})}required(t){let e={};return en.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])e[n]=this.shape[n];else{let r=this.shape[n],i=r;for(;i instanceof th;)i=i._def.innerType;e[n]=i}}),new X({...this._def,shape:()=>e})}keyof(){return tf(en.objectKeys(this.shape))}}X.create=(t,e)=>new X({shape:()=>t,unknownKeys:"strip",catchall:H.create(),typeName:eu.ZodObject,...w(e)}),X.strictCreate=(t,e)=>new X({shape:()=>t,unknownKeys:"strict",catchall:H.create(),typeName:eu.ZodObject,...w(e)}),X.lazycreate=(t,e)=>new X({shape:t,unknownKeys:"strip",catchall:H.create(),typeName:eu.ZodObject,...w(e)});class J extends R{_parse(t){let{ctx:e}=this._processInputParams(t),n=this._def.options;if(e.common.async)return Promise.all(n.map(async t=>{let n={...e,common:{...e.common,issues:[]},parent:null};return{result:await t._parseAsync({data:e.data,path:e.path,parent:n}),ctx:n}})).then(function(t){for(let n of t)if("valid"===n.result.status)return n.result;for(let r of t)if("dirty"===r.result.status)return e.common.issues.push(...r.ctx.common.issues),r.result;let i=t.map(t=>new a(t.ctx.common.issues));return d(e,{code:u.invalid_union,unionErrors:i}),m});{let r,i=[];for(let o of n){let c={...e,common:{...e.common,issues:[]},parent:null},f=o._parseSync({data:e.data,path:e.path,parent:c});if("valid"===f.status)return f;"dirty"!==f.status||r||(r={result:f,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(r)return e.common.issues.push(...r.ctx.common.issues),r.result;let l=i.map(t=>new a(t));return d(e,{code:u.invalid_union,unionErrors:l}),m}}get options(){return this._def.options}}J.create=(t,e)=>new J({options:t,typeName:eu.ZodUnion,...w(e)});let Q=t=>{if(t instanceof ta)return Q(t.schema);if(t instanceof td)return Q(t.innerType());if(t instanceof tc)return[t.value];if(t instanceof tl)return t.options;if(t instanceof ts)return Object.keys(t.enum);else if(t instanceof tv)return Q(t._def.innerType);else if(t instanceof K)return[void 0];else if(t instanceof G)return[null];else return null};class tt extends R{_parse(t){let{ctx:e}=this._processInputParams(t);if(e.parsedType!==r.object)return d(e,{code:u.invalid_type,expected:r.object,received:e.parsedType}),m;let n=this.discriminator,i=e.data[n],o=this.optionsMap.get(i);return o?e.common.async?o._parseAsync({data:e.data,path:e.path,parent:e}):o._parseSync({data:e.data,path:e.path,parent:e}):(d(e,{code:u.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,e,n){let r=new Map;for(let i of e){let u=Q(i.shape[t]);if(!u)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let o of u){if(r.has(o))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);r.set(o,i)}}return new tt({typeName:eu.ZodDiscriminatedUnion,discriminator:t,options:e,optionsMap:r,...w(n)})}}class te extends R{_parse(t){let{status:e,ctx:n}=this._processInputParams(t),o=(t,o)=>{if(_(t)||_(o))return m;let a=function t(e,n){let u=i(e),o=i(n);if(e===n)return{valid:!0,data:e};if(u===r.object&&o===r.object){let a=en.objectKeys(n),c=en.objectKeys(e).filter(t=>-1!==a.indexOf(t)),f={...e,...n};for(let l of c){let s=t(e[l],n[l]);if(!s.valid)return{valid:!1};f[l]=s.data}return{valid:!0,data:f}}if(u===r.array&&o===r.array){if(e.length!==n.length)return{valid:!1};let p=[];for(let d=0;d<e.length;d++){let h=e[d],m=n[d],v=t(h,m);if(!v.valid)return{valid:!1};p.push(v.data)}return{valid:!0,data:p}}if(u===r.date&&o===r.date&&+e==+n)return{valid:!0,data:e};return{valid:!1}}(t.value,o.value);return a.valid?((b(t)||b(o))&&e.dirty(),{status:e.value,value:a.data}):(d(n,{code:u.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n}),]).then(([t,e])=>o(t,e)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}te.create=(t,e,n)=>new te({left:t,right:e,typeName:eu.ZodIntersection,...w(n)});class tn extends R{_parse(t){let{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==r.array)return d(n,{code:u.invalid_type,expected:r.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return d(n,{code:u.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;let i=this._def.rest;!i&&n.data.length>this._def.items.length&&(d(n,{code:u.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());let o=[...n.data].map((t,e)=>{let r=this._def.items[e]||this._def.rest;return r?r._parse(new S(n,t,n.path,e)):null}).filter(t=>!!t);return n.common.async?Promise.all(o).then(t=>h.mergeArray(e,t)):h.mergeArray(e,o)}get items(){return this._def.items}rest(t){return new tn({...this._def,rest:t})}}tn.create=(t,e)=>{if(!Array.isArray(t))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new tn({items:t,typeName:eu.ZodTuple,rest:null,...w(e)})};class tr extends R{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==r.object)return d(n,{code:u.invalid_type,expected:r.object,received:n.parsedType}),m;let i=[],o=this._def.keyType,a=this._def.valueType;for(let c in n.data)i.push({key:o._parse(new S(n,c,n.path,c)),value:a._parse(new S(n,n.data[c],n.path,c))});return n.common.async?h.mergeObjectAsync(e,i):h.mergeObjectSync(e,i)}get element(){return this._def.valueType}static create(t,e,n){return new tr(e instanceof R?{keyType:t,valueType:e,typeName:eu.ZodRecord,...w(n)}:{keyType:A.create(),valueType:t,typeName:eu.ZodRecord,...w(e)})}}class ti extends R{_parse(t){let{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==r.map)return d(n,{code:u.invalid_type,expected:r.map,received:n.parsedType}),m;let i=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map(([t,e],r)=>({key:i._parse(new S(n,t,n.path,[r,"key"])),value:o._parse(new S(n,e,n.path,[r,"value"]))}));if(n.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let t of a){let n=await t.key,r=await t.value;if("aborted"===n.status||"aborted"===r.status)return m;("dirty"===n.status||"dirty"===r.status)&&e.dirty(),c.set(n.value,r.value)}return{status:e.value,value:c}})}{let f=new Map;for(let l of a){let s=l.key,p=l.value;if("aborted"===s.status||"aborted"===p.status)return m;("dirty"===s.status||"dirty"===p.status)&&e.dirty(),f.set(s.value,p.value)}return{status:e.value,value:f}}}}ti.create=(t,e,n)=>new ti({valueType:e,keyType:t,typeName:eu.ZodMap,...w(n)});class tu extends R{_parse(t){let{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==r.set)return d(n,{code:u.invalid_type,expected:r.set,received:n.parsedType}),m;let i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(d(n,{code:u.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),e.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(d(n,{code:u.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),e.dirty());let o=this._def.valueType;function a(t){let n=new Set;for(let r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.add(r.value)}return{status:e.value,value:n}}let c=[...n.data.values()].map((t,e)=>o._parse(new S(n,t,n.path,e)));return n.common.async?Promise.all(c).then(t=>a(t)):a(c)}min(t,e){return new tu({...this._def,minSize:{value:t,message:ei.toString(e)}})}max(t,e){return new tu({...this._def,maxSize:{value:t,message:ei.toString(e)}})}size(t,e){return this.min(t,e).max(t,e)}nonempty(t){return this.min(1,t)}}tu.create=(t,e)=>new tu({valueType:t,minSize:null,maxSize:null,typeName:eu.ZodSet,...w(e)});class to extends R{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:e}=this._processInputParams(t);if(e.parsedType!==r.function)return d(e,{code:u.invalid_type,expected:r.function,received:e.parsedType}),m;function n(t,n){return p({data:t,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,f,c,].filter(t=>!!t),issueData:{code:u.invalid_arguments,argumentsError:n}})}function i(t,n){return p({data:t,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,f,c,].filter(t=>!!t),issueData:{code:u.invalid_return_type,returnTypeError:n}})}let o={errorMap:e.common.contextualErrorMap},l=e.data;return this._def.returns instanceof tp?y(async(...t)=>{let e=new a([]),r=await this._def.args.parseAsync(t,o).catch(r=>{throw e.addIssue(n(t,r)),e}),u=await l(...r),c=await this._def.returns._def.type.parseAsync(u,o).catch(t=>{throw e.addIssue(i(u,t)),e});return c}):y((...t)=>{let e=this._def.args.safeParse(t,o);if(!e.success)throw new a([n(t,e.error)]);let r=l(...e.data),u=this._def.returns.safeParse(r,o);if(!u.success)throw new a([i(r,u.error)]);return u.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new to({...this._def,args:tn.create(t).rest(V.create())})}returns(t){return new to({...this._def,returns:t})}implement(t){let e=this.parse(t);return e}strictImplement(t){let e=this.parse(t);return e}static create(t,e,n){return new to({args:t||tn.create([]).rest(V.create()),returns:e||V.create(),typeName:eu.ZodFunction,...w(n)})}}class ta extends R{get schema(){return this._def.getter()}_parse(t){let{ctx:e}=this._processInputParams(t),n=this._def.getter();return n._parse({data:e.data,path:e.path,parent:e})}}ta.create=(t,e)=>new ta({getter:t,typeName:eu.ZodLazy,...w(e)});class tc extends R{_parse(t){if(t.data!==this._def.value){let e=this._getOrReturnCtx(t);return d(e,{received:e.data,code:u.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:t.data}}get value(){return this._def.value}}function tf(t,e){return new tl({values:t,typeName:eu.ZodEnum,...w(e)})}tc.create=(t,e)=>new tc({value:t,typeName:eu.ZodLiteral,...w(e)});class tl extends R{_parse(t){if("string"!=typeof t.data){let e=this._getOrReturnCtx(t),n=this._def.values;return d(e,{expected:en.joinValues(n),received:e.parsedType,code:u.invalid_type}),m}if(-1===this._def.values.indexOf(t.data)){let r=this._getOrReturnCtx(t),i=this._def.values;return d(r,{received:r.data,code:u.invalid_enum_value,options:i}),m}return y(t.data)}get options(){return this._def.values}get enum(){let t={};for(let e of this._def.values)t[e]=e;return t}get Values(){let t={};for(let e of this._def.values)t[e]=e;return t}get Enum(){let t={};for(let e of this._def.values)t[e]=e;return t}extract(t){return tl.create(t)}exclude(t){return tl.create(this.options.filter(e=>!t.includes(e)))}}tl.create=tf;class ts extends R{_parse(t){let e=en.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==r.string&&n.parsedType!==r.number){let i=en.objectValues(e);return d(n,{expected:en.joinValues(i),received:n.parsedType,code:u.invalid_type}),m}if(-1===e.indexOf(t.data)){let o=en.objectValues(e);return d(n,{received:n.data,code:u.invalid_enum_value,options:o}),m}return y(t.data)}get enum(){return this._def.values}}ts.create=(t,e)=>new ts({values:t,typeName:eu.ZodNativeEnum,...w(e)});class tp extends R{unwrap(){return this._def.type}_parse(t){let{ctx:e}=this._processInputParams(t);if(e.parsedType!==r.promise&&!1===e.common.async)return d(e,{code:u.invalid_type,expected:r.promise,received:e.parsedType}),m;let n=e.parsedType===r.promise?e.data:Promise.resolve(e.data);return y(n.then(t=>this._def.type.parseAsync(t,{path:e.path,errorMap:e.common.contextualErrorMap})))}}tp.create=(t,e)=>new tp({type:t,typeName:eu.ZodPromise,...w(e)});class td extends R{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eu.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:e,ctx:n}=this._processInputParams(t),r=this._def.effect||null;if("preprocess"===r.type){let i=r.transform(n.data);return n.common.async?Promise.resolve(i).then(t=>this._def.schema._parseAsync({data:t,path:n.path,parent:n})):this._def.schema._parseSync({data:i,path:n.path,parent:n})}let u={addIssue(t){d(n,t),t.fatal?e.abort():e.dirty()},get path(){return n.path}};if(u.addIssue=u.addIssue.bind(u),"refinement"===r.type){let o=t=>{let e=r.refinement(t,u);if(n.common.async)return Promise.resolve(e);if(e instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return t};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(t=>"aborted"===t.status?m:("dirty"===t.status&&e.dirty(),o(t.value).then(()=>({status:e.value,value:t.value}))));{let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===a.status?m:("dirty"===a.status&&e.dirty(),o(a.value),{status:e.value,value:a.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(t=>T(t)?Promise.resolve(r.transform(t.value,u)).then(t=>({status:e.value,value:t})):t);{let c=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!T(c))return c;let f=r.transform(c.value,u);if(f instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:f}}}en.assertNever(r)}}td.create=(t,e,n)=>new td({schema:t,typeName:eu.ZodEffects,effect:e,...w(n)}),td.createWithPreprocess=(t,e,n)=>new td({schema:e,effect:{type:"preprocess",transform:t},typeName:eu.ZodEffects,...w(n)});class th extends R{_parse(t){let e=this._getType(t);return e===r.undefined?y(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}th.create=(t,e)=>new th({innerType:t,typeName:eu.ZodOptional,...w(e)});class tm extends R{_parse(t){let e=this._getType(t);return e===r.null?y(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}tm.create=(t,e)=>new tm({innerType:t,typeName:eu.ZodNullable,...w(e)});class tv extends R{_parse(t){let{ctx:e}=this._processInputParams(t),n=e.data;return e.parsedType===r.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}tv.create=(t,e)=>new tv({innerType:t,typeName:eu.ZodDefault,defaultValue:"function"==typeof e.default?e.default:()=>e.default,...w(e)});class tg extends R{_parse(t){let{ctx:e}=this._processInputParams(t),n={...e,common:{...e.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return I(r)?r.then(t=>({status:"valid",value:"valid"===t.status?t.value:this._def.catchValue({get error(){return new a(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new a(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}tg.create=(t,e)=>new tg({innerType:t,typeName:eu.ZodCatch,catchValue:"function"==typeof e.catch?e.catch:()=>e.catch,...w(e)});class ty extends R{_parse(t){let e=this._getType(t);if(e!==r.nan){let n=this._getOrReturnCtx(t);return d(n,{code:u.invalid_type,expected:r.nan,received:n.parsedType}),m}return{status:"valid",value:t.data}}}ty.create=t=>new ty({typeName:eu.ZodNaN,...w(t)});let t_=Symbol("zod_brand");class tb extends R{_parse(t){let{ctx:e}=this._processInputParams(t),n=e.data;return this._def.type._parse({data:n,path:e.path,parent:e})}unwrap(){return this._def.type}}class tT extends R{_parse(t){let{status:e,ctx:n}=this._processInputParams(t);if(n.common.async){let r=async()=>{let t=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===t.status?m:"dirty"===t.status?(e.dirty(),v(t.value)):this._def.out._parseAsync({data:t.value,path:n.path,parent:n})};return r()}{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?m:"dirty"===i.status?(e.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,e){return new tT({in:t,out:e,typeName:eu.ZodPipeline})}}let tI=(t,e={},n)=>t?z.create().superRefine((r,i)=>{var u,o;if(!t(r)){let a="function"==typeof e?e(r):"string"==typeof e?{message:e}:e,c=null===(o=null!==(u=a.fatal)&&void 0!==u?u:n)||void 0===o||o;i.addIssue({code:"custom",..."string"==typeof a?{message:a}:a,fatal:c})}}):z.create(),tS={object:X.lazycreate};(ee=eu||(eu={})).ZodString="ZodString",ee.ZodNumber="ZodNumber",ee.ZodNaN="ZodNaN",ee.ZodBigInt="ZodBigInt",ee.ZodBoolean="ZodBoolean",ee.ZodDate="ZodDate",ee.ZodSymbol="ZodSymbol",ee.ZodUndefined="ZodUndefined",ee.ZodNull="ZodNull",ee.ZodAny="ZodAny",ee.ZodUnknown="ZodUnknown",ee.ZodNever="ZodNever",ee.ZodVoid="ZodVoid",ee.ZodArray="ZodArray",ee.ZodObject="ZodObject",ee.ZodUnion="ZodUnion",ee.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ee.ZodIntersection="ZodIntersection",ee.ZodTuple="ZodTuple",ee.ZodRecord="ZodRecord",ee.ZodMap="ZodMap",ee.ZodSet="ZodSet",ee.ZodFunction="ZodFunction",ee.ZodLazy="ZodLazy",ee.ZodLiteral="ZodLiteral",ee.ZodEnum="ZodEnum",ee.ZodEffects="ZodEffects",ee.ZodNativeEnum="ZodNativeEnum",ee.ZodOptional="ZodOptional",ee.ZodNullable="ZodNullable",ee.ZodDefault="ZodDefault",ee.ZodCatch="ZodCatch",ee.ZodPromise="ZodPromise",ee.ZodBranded="ZodBranded",ee.ZodPipeline="ZodPipeline";let tx=(t,e={message:`Input not instance of ${t.name}`})=>tI(e=>e instanceof t,e),tw=A.create,tR=U.create,tO=ty.create,tM=j.create,tE=q.create,tk=B.create,tC=Y.create,tP=K.create,tW=G.create,tD=z.create,tF=V.create,tN=H.create,tA=Z.create,tL=$.create,tU=X.create,tj=X.strictCreate,tq=J.create,tB=tt.create,tY=te.create,tK=tn.create,tG=tr.create,tz=ti.create,tV=tu.create,tH=to.create,tZ=ta.create,t$=tc.create,tX=tl.create,tJ=ts.create,tQ=tp.create,t0=td.create,t1=th.create,t8=tm.create,t2=td.createWithPreprocess,t7=tT.create,t3=()=>tw().optional(),t5=()=>tR().optional(),t4=()=>tE().optional();var t9,t6,et,ee,en,er,ei,eu,eo=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:l,getErrorMap:s,makeIssue:p,EMPTY_PATH:[],addIssueToContext:d,ParseStatus:h,INVALID:m,DIRTY:v,OK:y,isAborted:_,isDirty:b,isValid:T,isAsync:I,get util(){return en},get objectUtil(){return er},ZodParsedType:r,getParsedType:i,ZodType:R,ZodString:A,ZodNumber:U,ZodBigInt:j,ZodBoolean:q,ZodDate:B,ZodSymbol:Y,ZodUndefined:K,ZodNull:G,ZodAny:z,ZodUnknown:V,ZodNever:H,ZodVoid:Z,ZodArray:$,ZodObject:X,ZodUnion:J,ZodDiscriminatedUnion:tt,ZodIntersection:te,ZodTuple:tn,ZodRecord:tr,ZodMap:ti,ZodSet:tu,ZodFunction:to,ZodLazy:ta,ZodLiteral:tc,ZodEnum:tl,ZodNativeEnum:ts,ZodPromise:tp,ZodEffects:td,ZodTransformer:td,ZodOptional:th,ZodNullable:tm,ZodDefault:tv,ZodCatch:tg,ZodNaN:ty,BRAND:t_,ZodBranded:tb,ZodPipeline:tT,custom:tI,Schema:R,ZodSchema:R,late:tS,get ZodFirstPartyTypeKind(){return eu},coerce:{string:t=>A.create({...t,coerce:!0}),number:t=>U.create({...t,coerce:!0}),boolean:t=>q.create({...t,coerce:!0}),bigint:t=>j.create({...t,coerce:!0}),date:t=>B.create({...t,coerce:!0})},any:tD,array:tL,bigint:tM,boolean:tE,date:tk,discriminatedUnion:tB,effect:t0,enum:tX,function:tH,instanceof:tx,intersection:tY,lazy:tZ,literal:t$,map:tz,nan:tO,nativeEnum:tJ,never:tN,null:tW,nullable:t8,number:tR,object:tU,oboolean:t4,onumber:t5,optional:t1,ostring:t3,pipeline:t7,preprocess:t2,promise:tQ,record:tG,set:tV,strictObject:tj,string:tw,symbol:tC,transformer:t0,tuple:tK,undefined:tP,union:tq,unknown:tF,void:tA,NEVER:m,ZodIssueCode:u,quotelessJson:o,ZodError:a}),ea=n(87322),ec=n(1611),ef=n(77252);let el=tU({first_name:tw().optional(),last_name:tw().optional(),email:tw().email().optional()}),es=tU({id:tw(),name:tw(),is_master:tE().optional()}),ep=tB("status",[tU({status:t$("unclassified")}),tU({status:t$("published")}),tU({status:t$("release"),release_id:tw()}),tU({status:t$("archived")})]).and(tU({version_id:tw(),tags:tL(tw()),custom_type_label:tw(),preview_summary:tw().optional(),preview_image:tw().optional(),last_modified_date:eo.coerce.date(),author:el,uid:tw().optional()})),ed=tU({id:tw(),title:tw().nullish().transform(t=>t??"Untitled"),custom_type_id:tw(),group_lang_id:tw(),language:es,versions:tL(ep)}),eh=tU({total:tR(),cursor:tw().optional(),results:tL(ed)});function em(t,e,n,r,i){let u=new URLSearchParams({...r&&{limit:r.toString()},...i&&{cursor:i}});return(0,ec.WY)(`${t}/documents?${u.toString()}&${n}`,{credentials:(0,ec.xb)(e),okType:eh})}function ev(t){return t.reduce((t,e)=>{if(e.values.every(t=>""===t))return t;let n=e.values.map(t=>[e.name,t]);return t.concat(n)},[])}function eg(t,e,n){return(0,ec.WY)(`${t}/documents/${n}`,{credentials:(0,ec.xb)(e),okType:ed})}let ey={unclassified:["unclassified","published"],archived:["unclassified","published"],release:["release","published"],published:["published"]},e_=eo.object({id:eo.string(),firstname:eo.string().optional(),lastname:eo.string().optional(),email:eo.string()}),eb=eo.array(e_),eT=tU({simulator_url:tw().url().nullish(),languages:tL(es).transform(t=>(0,ea.DY)(t,t=>t.name)),authors:eb.optional().default([])}).transform(({simulator_url:t,...e})=>{let n=t&&function(t){let e=(0,ef.ju)(t);return!!e&&e.pathname.endsWith("/slice-simulator")}(t)?t:void 0;return{...e,simulatorUrl:n}});function eI(t,e){return(0,ec.WY)(t,{credentials:(0,ec.xb)(e),okType:eT})}let eS=tU({results:tL(tw())});function ex(t,e){return(0,ec.WY)(`${t}/tags`,{credentials:(0,ec.xb)(e),okType:eS})}let ew=eo.object({id:eo.string(),label:eo.string(),repeatable:eo.boolean(),status:eo.boolean()}),eR=eo.array(ew);function eO(t,e,n){return(0,ec.WY)(`${t}/customtypes`,{headers:{repository:e},credentials:(0,ec.xb)(n),okType:eR})}},47124:function(t,e,n){"use strict";function r(t){return t.charAt(0).toUpperCase()+t.slice(1)}function i(t,e){return t.length<=e?t:`${null==t?void 0:t.slice(0,e).trim()}...`}function u(t){if(0===t)return"0 Bytes";let e=Math.floor(Math.log(t)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"][e];return n?`${(t/Math.pow(1024,e)).toFixed(2)} ${n}`:`${t} Bytes`}n.d(e,{kC:function(){return r},td:function(){return u},tx:function(){return i}})},77252:function(t,e,n){"use strict";n.d(e,{S$:function(){return u},aO:function(){return o},ju:function(){return i}});var r=n(47124);function i(t){try{return new URL(t)}catch{return}}function u(t){try{return t.host.split(".").slice(0,-1).filter(t=>"www"!==t).map(r.kC)[0]??""}catch{return""}}function o(t){let{params:e}=t;return Object.entries(e).reduce((t,[e,n])=>void 0!==n?{...t,[e]:n}:t,{})}},24662:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentMock=void 0;let r=n(93784),i=n(73605),u=n(32361);e.DocumentMock={generate(t,e={},n){var o,a,c;return(0,r.flattenWidgets)(t).map(([t,r])=>{let o=(null==n?void 0:n.value)&&n.value[t],a=function(t,e,n){switch(t.type){case"Choice":case"Slices":return u.SliceZoneMock.generate(t,e,n);case"Group":return i.GroupMock.generate(t,n);case"UID":return i.UIDMock.generate(t,n);default:return i.NestableWidgetMock.generate(t,n)}}(r,e,o);return[t,a]}).reduce((t,[e,n])=>({...t,[e]:n}),{})}}},73605:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(24662),e),(0,r.__exportStar)(n(93103),e)},15801:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.randomInt=e.slug=void 0;var i=n(91249);Object.defineProperty(e,"slug",{enumerable:!0,get:function(){return r(i).default}}),e.randomInt=function(t=0,e=100){return Math.floor(Math.random()*(e-t+1)+t)}},91249:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=(0,r.__importDefault)(n(93953)),u=n(15801);e.default=function(t){return function e(){let n=function(t){let e=t[(0,u.randomInt)(0,t.length-1)];if(!e)throw Error("Error while generating a slug.");return e}(i.default);return t&&(t.exactly&&n.length!=t.exactly||t.min&&n.length<t.min||t.max&&n.length>t.max)?e():n}()}},44609:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GroupMock=void 0;let r=n(29585),i=n(93103);e.GroupMock={generate(t,e){let n=(null==e?void 0:e.value)||function(t,e=1,n={}){return t.config&&t.config.fields?Array(e).fill(null).map(()=>{var e;let r=Object.entries((null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.fields)||{}),u=r.map(([t,e])=>{let r=n[t];return[t,i.NestableWidgetMock.generate(e,r)]});return u}):[]}(t,null==e?void 0:e.nbBlocks,null==e?void 0:e.fields);return{__TYPE__:r.GroupContentType,value:n.map(t=>({__TYPE__:r.GroupItemContentType,value:t}))}}}},73042:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedSliceMock=void 0;let r=n(42793),i=n(42793),u=n(18784),o=n(93103);function a(t,e){return t.map(([t,n])=>{let r=e&&e[t];return[t,o.NestableWidgetMock.generate(n,r)]})}function c(t,e){return function(t,e){let n=(null==e?void 0:e.nbItemsBlocks)||1;return{__TYPE__:i.SharedSliceContentType,variation:t.id,primary:t.primary?a(Object.entries(t.primary),null==e?void 0:e.primaryFields).reduce((t,[e,n])=>({...t,[e]:n}),{}):{},items:t.items?Array(n).fill(null).map(()=>a(Object.entries(t.items||{}),null==e?void 0:e.itemFields)).map(t=>({__TYPE__:r.GroupItemContentType,value:t})):[]}}(t,e)}function f(t,e,n){let r=Object.entries(t).reduce((t,[r,i])=>{var u;let a=null===(u=e.find(([t])=>t===r))||void 0===u?void 0:u[1],c=null==n?void 0:n[r],f=o.NestableWidgetMock.patch(i,a,c);return{...t,...f?{[r]:f}:{}}},{}),i=e.reduce((e,[n,i])=>{let u=t[n]?r[n]:i;return u?{...e,[n]:u}:e},{});return{...i,...r}}e.SharedSliceMock={generate(t,e){var n;if(null==e?void 0:e.value)return{__TYPE__:i.SharedSliceContentType,...e.value};let r=null!==(n=t.variations.find(t=>t.id===(null==e?void 0:e.variation)))&&void 0!==n?n:t.variations[0];if(!r)throw Error(`Something happened during Shared slice generation. No variations were configured for slice ${t.id}.`);let u=(null==e?void 0:e.variations)&&e.variations[r.id];return c(r,u)},patch(t,e,n){var i,o;switch(t.op){case u.DiffOperation.Removed:if(!(null==n?void 0:n.variation)||n.variation===(null==e?void 0:e.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(e)return{ok:!1,error:Error(`Content already exists for slice ${t.value.id}.`)};if(!(null==n?void 0:n.variation)||t.value.variations.find(t=>t.id===n.variation))return{ok:!0,result:this.generate(t.value,n)};return{ok:!1,error:Error(`Configured variation ${n.variation} not found in slice ${t.value.id} definition.`)};case u.DiffOperation.Updated:{let a=null!=e&&e.variation?(null==n?void 0:n.variation)&&e.variation!==(null==n?void 0:n.variation)?{ok:!1,error:Error(`Variation ${e.variation} from the content doesn't match the config ${null==n?void 0:n.variation}.`)}:{ok:!0,result:e.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,s=null===(i=t.value.variations)||void 0===i?void 0:i[l];if(!s)return{ok:!1,error:Error(`The model of the content with variation ${l} has not changed.`)};return function(t,e,n,i){switch(e.op){case u.DiffOperation.Removed:return{ok:!0,result:void 0};case u.DiffOperation.Added:if(!n)return{ok:!0,result:c(e.value,i)};return{ok:!1,error:Error(`Content already exists for variation ${n.variation}.`)};case u.DiffOperation.Updated:{let o=e.value.primary&&(null==n?void 0:n.primary)?f(e.value.primary,Object.entries(null==n?void 0:n.primary),null==i?void 0:i.primaryFields):(null==n?void 0:n.primary)||{},a=(()=>{if(!e.value.items||null==n||!n.items)return(null==n?void 0:n.items)||[];{let t=e.value.items;return n.items.map(e=>({__TYPE__:r.GroupItemContentType,value:Object.entries(f(t,e.value,null==i?void 0:i.itemFields))}))}})();return{ok:!0,result:{__TYPE__:"SharedSliceContent",variation:t,primary:o,items:a}}}}}(l,s,e,s.op!==u.DiffOperation.Removed?null===(o=null==n?void 0:n.variations)||void 0===o?void 0:o[l]:void 0)}}}}},32361:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SliceZoneMock=void 0;let r=n(42793),i=n(78631),u=n(93103),o=n(92947);e.SliceZoneMock={generate(t,e={},n){var a;if(!(null===(a=t.config)||void 0===a?void 0:a.choices))return{__TYPE__:r.SlicesContentType,value:[]};let c=Object.entries(t.config.choices).reduce((t,[r,a])=>{let c=(null==n?void 0:n.value)&&n.value[r],f=(()=>{switch(a.type){case"SharedSlice":{let t=e[r];if(!t){console.error(`You must provide the definition of the Shared Slice ${r} to get mocks.`);return}return u.SharedSliceMock.generate(t,c)}case"Slice":return;case"Group":return u.GroupMock.generate(a);default:return o.NestableWidgetMock.generate(a)}})();return f?t.concat({key:`${r}$${(0,i.v4)()}`,name:r,maybeLabel:void 0,widget:f}):t},[]);return{__TYPE__:r.SlicesContentType,value:c}}}},32033:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIDMock=void 0;let r=n(42793),i=n(15801);e.UIDMock={generate(t,e){let n=(null==e?void 0:e.value)||(0,i.slug)({min:3,max:10});return{__TYPE__:r.UIDContentType,value:n}}}},93103:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(44609),e),(0,r.__exportStar)(n(92947),e),(0,r.__exportStar)(n(73042),e),(0,r.__exportStar)(n(32033),e)},42386:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanMock=void 0;let r=n(42793),i=n(18784);e.BooleanMock={generate(t,e){let n="boolean"==typeof(null==e?void 0:e.value)?e.value:.5>Math.random();return{__TYPE__:r.BooleanContentType,value:n}},patch(t,e,n){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,n)}},applyPatch(t){var e;if(t.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Boolean"===t.diff.value.type){let n=this.patch(t.diff,t.content&&t.content.__TYPE__!==r.BooleanContentType?void 0:t.content,(null===(e=t.config)||void 0===e?void 0:e.type)==="Boolean"?t.config:void 0);return{result:n}}}}},77859:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorMock=void 0;let r=n(42793),i=n(42793),u=n(18784);e.ColorMock={generate(t,e){let n=(null==e?void 0:e.value)||function(){let t="#";for(let e=0;e<6;e++)t+="0123456789abcdef"[Math.floor(16*Math.random())];return t}();return{__TYPE__:i.FieldContentType,value:n,type:"Color"}},applyPatch(t){var e;if(t.diff.op===u.DiffOperation.Removed)return{result:void 0};if("Color"===t.diff.value.type){let n=this.patch(t.diff,(0,r.isColorContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Color"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(t.value,n)}}}},21276:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateMock=void 0;let r=n(42793),i=n(18784);function u(t){let e=t.toISOString().split("T")[0];if(!e)throw Error("Something happened during Date generation.");return e}function o(t=new Date(2012,0,1),e=new Date){let n=new Date(t.getTime()+Math.random()*(e.getTime()-t.getTime()));return u(n)}e.DateMock={generate(t,e){let n=(null==e?void 0:e.value)?u(e.value):(null==e?void 0:e.start)&&(null==e?void 0:e.end)?o(e.start,e.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Date",value:n}},applyPatch(t){var e;if(t.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Date"===t.diff.value.type){let n=this.patch(t.diff,(0,r.isDateContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Date"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,n)}}}},60300:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmbedMock=void 0;let r=n(78948),i=n(42793),u=n(18784),o=(0,r.__importDefault)(n(19108));e.EmbedMock={generate:(t,e)=>(function(t){var e;let n=t||(null===(e=o.default[Math.floor(Math.random()*o.default.length)])||void 0===e?void 0:e.oembed);if(!n)throw Error("Something happened during Embed generation.");return{...n,all:n,__TYPE__:i.EmbedContentType}})(null==e?void 0:e.value),applyPatch(t){var e;if(t.diff.op===u.DiffOperation.Removed)return{result:void 0};if("Embed"===t.diff.value.type){let n=this.patch(t.diff,(0,i.isEmbedContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Embed"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(t.value,n)}}}},95441:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GeoPointMock=void 0;let r=n(78948),i=n(42793),u=n(18784),o=(0,r.__importDefault)(n(88416));e.GeoPointMock={generate(t,e){let n=(null==e?void 0:e.value)||function(){let t=o.default[Math.floor(Math.random()*o.default.length)];if(!t)throw Error("Something happened during GeoPoint generation.");return{latitude:t.points.latitude,longitude:t.points.longitude}}();return{__TYPE__:i.GeoPointContentType,position:{lat:n.latitude,lng:n.longitude}}},applyPatch(t){var e;if(t.diff.op===u.DiffOperation.Removed)return{result:void 0};if("GeoPoint"===t.diff.value.type){let n=this.patch(t.diff,(0,i.isGeoPointContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="GeoPoint"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(t.value,n)}}}},66947:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImageMock=e.random=void 0;let r=n(78948),i=n(42793),u=n(18784),o=(0,r.__importDefault)(n(15542)),a=n(15801),c=o.default,f=(t,e)=>{let[n,r]=(()=>{let{width:n,height:r}=null!=e?e:{};return n&&r?[n,r]:n?[n,Math.round(t.height*(n/t.width))]:r?[Math.round(t.width*(r/t.height)),r]:[t.width,t.height]})(),i=Math.max(n/t.width,r/t.height),u=Math.round((t.width-n/i)/2),o=Math.round((t.height-r/i)/2);return{width:n,height:r,rect:{x:u,y:o,width:Math.round(n/i),height:Math.round(r/i)}}},l=(t,e,n)=>{let r=new URL(t),{x:i,y:u,width:o,height:a}=e;return r.searchParams.set("rect",[i,u,o,a].join(",")),r.searchParams.set("w",n.width.toString()),r.searchParams.set("h",n.height.toString()),r.toString()};function s(t){var e,n;let[r,i,u]=(()=>{let t=c[(0,a.randomInt)(0,c.length-1)],e=null==t?void 0:t.raw.split("?")[0];if(!e)throw Error("Something happened during Image generation.");return[e,t.width,t.height]})(),{width:o,height:s,rect:p}=f({width:i,height:u},t.constraints),d=Boolean((null===(e=t.constraints)||void 0===e?void 0:e.width)||(null===(n=t.constraints)||void 0===n?void 0:n.height)),h=d?l(r,p,{width:o,height:s}):r;return{origin:{id:t.id,url:r,width:i,height:u},url:h,width:o,height:s,edit:{zoom:1,crop:{x:p.x,y:p.y},background:"transparent"}}}function p(t){var e,n,r;let u=s({id:"main",constraints:null===(e=t.config)||void 0===e?void 0:e.constraint}),o=null===(r=null===(n=t.config)||void 0===n?void 0:n.thumbnails)||void 0===r?void 0:r.map(t=>[t.name,s({id:t.name,constraints:{width:t.width,height:t.height}}),]),a=o?{thumbnails:o.reduce((t,[e,n])=>({...t,[e]:n}),{})}:{};return{__TYPE__:i.ImageContentType,...u,...a}}e.random=p,e.ImageMock={generate:t=>p(t),applyPatch(t){if(t.diff.op===u.DiffOperation.Removed)return{result:void 0};if("Image"===t.diff.value.type){let e=this.patch(t.diff,(0,i.isImageContent)(t.content)?t.content:void 0);return{result:e}}},patch(t,e){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(t.value)}}}},54595:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IntegrationFieldMock=void 0;let r=n(42793),i=n(18784);e.IntegrationFieldMock={generate(t,e){let n=(null==e?void 0:e.value)||"integration-field-product-id";return{__TYPE__:r.IntegrationFieldContentType,value:n}},applyPatch(t){var e;if(t.diff.op===i.DiffOperation.Removed)return{result:void 0};if("IntegrationFields"===t.diff.value.type){let n=this.patch(t.diff,(0,r.isIntegrationFieldContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="IntegrationFields"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,n)}}}},50107:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentLinkMock=void 0;let r=n(42793);e.DocumentLinkMock={generate:t=>r.DocumentLinkContent.encode({__TYPE__:r.DocumentLinkType,id:"mock_document_id"})}},79241:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExternalLinkMock=void 0;let r=n(78948),i=n(42793),u=(0,r.__importDefault)(n(83777));e.ExternalLinkMock={generate(t,e){let n=(null==e?void 0:e.value)&&{__TYPE__:i.ExternalLinkType,url:e.value}||function(){let t=u.default,e=Math.floor(Math.random()*t.length),n=t[e];if(!n)throw Error("Something happened during Web link generation.");return{__TYPE__:i.ExternalLinkType,url:n}}();return i.ExternalLinkContent.encode(n)}}},25891:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediaLinkMock=void 0;let r=n(42793);e.MediaLinkMock={generate(t,e){let n=(null==e?void 0:e.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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkMock=void 0;let r=n(78948),i=n(42793),u=n(18784),o=n(50107),a=n(79241),c=n(25891);e.LinkMock={generate(t,e){let n=(()=>{var n;switch(null===(n=t.config)||void 0===n?void 0:n.select){case"document":return o.DocumentLinkMock.generate(t);case"web":default:return a.ExternalLinkMock.generate(t,(null==e?void 0:e.value)&&e.value);case"media":return c.MediaLinkMock.generate(t,(null==e?void 0:e.value)&&e.value)}})();return{__TYPE__:i.LinkContentType,value:n}},applyPatch(t){var e;if(t.diff.op===u.DiffOperation.Removed)return{result:void 0};if("Link"===t.diff.value.type){let n=this.patch(t.diff,(0,i.isLinkContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Link"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Added:case u.DiffOperation.Updated:return this.generate(t.value,n)}}},(0,r.__exportStar)(n(50107),e),(0,r.__exportStar)(n(79241),e),(0,r.__exportStar)(n(25891),e)},628:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NumberMock=void 0;let r=n(42793),i=n(18784);e.NumberMock={generate(t,e){var n,i,u;let o=(null===(n=t.config)||void 0===n?void 0:n.min)?(null==e?void 0:e.min)&&e.min>t.config.min?e.min:t.config.min:0,a=(null===(i=t.config)||void 0===i?void 0:i.max)?(null==e?void 0:e.max)&&e.max<t.config.max?e.max:t.config.max:100,c=(null===(u=t.config)||void 0===u?void 0:u.step)?(null==e?void 0:e.step)&&e.step>t.config.step?e.step:t.config.step:1,f=((null==e?void 0:e.value)?e.value:function(t,e,n){let r=Math.floor(Math.random()*(e-t))+t;return r%n==0?r:Math.min(r+(n-r%n),e)}(o,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Number"}},applyPatch(t){var e;if(t.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Number"===t.diff.value.type){let n=this.patch(t.diff,t.content&&t.content.__TYPE__!==r.FieldContentType?void 0:t.content,(null===(e=t.config)||void 0===e?void 0:e.type)==="Number"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,n)}}}},38206:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeMock=void 0;let r=n(42793),i=n(18784);e.RangeMock={generate(t,e){var n,i,u;let o=(null===(n=t.config)||void 0===n?void 0:n.min)?(null==e?void 0:e.min)&&e.min>t.config.min?e.min:t.config.min:0,a=(null===(i=t.config)||void 0===i?void 0:i.max)?(null==e?void 0:e.max)&&e.max<t.config.max?e.max:t.config.max:100,c=(null===(u=t.config)||void 0===u?void 0:u.step)?(null==e?void 0:e.step)&&e.step>t.config.step?e.step:t.config.step:1,f=((null==e?void 0:e.value)?e.value:function(t,e,n){let r=Math.floor(Math.random()*(e-t))+t;return r%n==0?r:Math.min(r+(n-r%n),e)}(o,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Range"}},applyPatch(t){var e;if(t.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Range"===t.diff.value.type){let n=this.patch(t.diff,(0,r.isRangeContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Range"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,n)}}}},13319:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RichTextMockConfig=e.Patterns=e.LoremDefaultConfig=void 0;let r=n(93784),i=n(72788),u=n(15801);e.LoremDefaultConfig={sentencesPerParagraph:{min:1,max:3},wordsPerSentence:{min:4,max:16}},e.Patterns={PARAGRAPH:{title:"Simple Paragraph",test:t=>t.some(t=>t===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single paragraph with a variant number of words."},HEADING:{title:"Section Title",test:t=>t.some(e.RichTextMockConfig.isHeading),value:t=>[t.find(e.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,],description:"A single heading (h1 to h6) with a variant number of words."},STORY:{title:"Story",test:t=>t.some(e.RichTextMockConfig.isHeading)&&t.some(t=>t===r.RichTextNodeType.paragraph),value:t=>[t.find(e.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,...e.RichTextMockConfig.optionalType(t,r.RichTextNodeType.image),r.RichTextNodeType.paragraph,],description:"Content with headings, texts and optional images"}},e.RichTextMockConfig={INITIAL_CONFIG:{pattern:e.Patterns.PARAGRAPH,blocks:1},isHeading:t=>0===t.indexOf("heading"),isText:t=>t===r.RichTextNodeType.paragraph||e.RichTextMockConfig.isHeading(t),isImage:t=>t===r.RichTextNodeType.image,optionalType:(t,e)=>t.find(t=>t===e)&&Math.random()>.5?[e]:[],findMatchingPattern(t){let n=Object.entries(e.Patterns).find(([,e])=>e.test(t));return n&&n.length?n[1]:e.RichTextMockConfig.INITIAL_CONFIG.pattern},generateText(t,n){let r=new i.LoremIpsum(n);if(e.RichTextMockConfig.isHeading(t)){let o=(0,u.slug)({min:5,max:10});return[o[0]&&o[0].toUpperCase(),...o.slice(1)].join("")}return r.generateParagraphs(1)}}},35650:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RichTextMock=void 0;let r=n(78948),i=n(42793),u=n(93784),o=n(18784),a=n(66947),c=n(13319);e.RichTextMock={generate(t,e){let n=(null==e?void 0:e.value)||function(t,e){var n,r;let i=((null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.multi)||(null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.single)||`${u.RichTextNodeType.paragraph}`).split(",").map(t=>t),o=(null==e?void 0:e.pattern)&&c.Patterns[e.pattern]||c.RichTextMockConfig.findMatchingPattern(i),f=o.value(i),l=Array((null==e?void 0:e.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>f.map(t=>{if(c.RichTextMockConfig.isText(t))return{type:t,content:{text:c.RichTextMockConfig.generateText(t,c.LoremDefaultConfig)}};let e=(0,a.random)({type:"Image"});return{type:u.RichTextNodeType.image,data:e}}));return l.flat()}(t,e);return{__TYPE__:i.RichTextContentType,value:n}},applyPatch(t){var e;if(t.diff.op===o.DiffOperation.Removed)return{result:void 0};if("StructuredText"===t.diff.value.type){let n=this.patch(t.diff,(0,i.isRichTextContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="StructuredText"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(t.value,n)}}},(0,r.__exportStar)(n(13319),e)},20999:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectMock=void 0;let r=n(42793),i=n(18784),u="mock_option";e.SelectMock={generate(t,e){let n=(null==e?void 0:e.value)||function(t){if(!t.config)return u;if(t.config.default_value&&.5>Math.random())return t.config.default_value;if(!t.config.options)return u;let e=Math.floor(Math.random()*t.config.options.length);return t.config.options[e]||u}(t);return{__TYPE__:r.FieldContentType,value:n,type:"Select"}},applyPatch(t){var e;if(t.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Select"===t.diff.value.type){let n=this.patch(t.diff,(0,r.isSelectContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Select"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,n)}}}},14259:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SeparatorMock=void 0;let r=n(42793),i=n(18784);e.SeparatorMock={generate:()=>({__TYPE__:r.SeparatorContentType}),applyPatch(t){if(t.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Separator"===t.diff.value.type){let e=this.patch(t.diff,(0,r.isSeparatorContent)(t.content)?t.content:void 0);return{result:e}}},patch(t,e){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value)}}}},44395:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextMock=void 0;let r=n(42793),i=n(18784),u=n(15801);e.TextMock={generate(t,e){var n,i;let o=(null==e?void 0:e.value)||(n=null==e?void 0:e.minChar,i=null==e?void 0:e.maxChar,(0,u.slug)({...n?{min:n}:{},...i?{max:i}:{}}));return{__TYPE__:r.FieldContentType,value:o,type:"Text"}},applyPatch(t){var e;if(t.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Text"===t.diff.value.type){let n=this.patch(t.diff,(0,r.isTextContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Text"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,n)}}}},4424:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimestampMock=void 0;let r=n(42793),i=n(18784);function u(t){return t.toISOString().slice(0,19)+"Z"}function o(t=new Date(2012,0,1),e=new Date){let n=new Date(t.getTime()+Math.random()*(e.getTime()-t.getTime()));return u(n)}e.TimestampMock={generate(t,e){let n=(null==e?void 0:e.value)?u(e.value):(null==e?void 0:e.start)&&(null==e?void 0:e.end)?o(e.start,e.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Timestamp",value:n}},applyPatch(t){var e;if(t.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Timestamp"===t.diff.value.type){let n=this.patch(t.diff,(0,r.isTimestampContent)(t.content)?t.content:void 0,(null===(e=t.config)||void 0===e?void 0:e.type)==="Timestamp"?t.config:void 0);return{result:n}}},patch(t,e,n){switch(t.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(t.value,n)}}}},92947:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NestableWidgetMock=void 0;let r=n(78948),i=n(18784),u=n(42386),o=n(77859),a=n(21276),c=n(60300),f=n(95441),l=n(66947),s=n(54595),p=n(33610),d=n(628),h=n(38206),m=n(35650),v=n(20999),y=n(14259),_=n(44395),b=n(4424);(0,r.__exportStar)(n(42386),e),(0,r.__exportStar)(n(77859),e),(0,r.__exportStar)(n(21276),e),(0,r.__exportStar)(n(60300),e),(0,r.__exportStar)(n(95441),e),(0,r.__exportStar)(n(66947),e),(0,r.__exportStar)(n(54595),e),(0,r.__exportStar)(n(33610),e),(0,r.__exportStar)(n(628),e),(0,r.__exportStar)(n(38206),e),(0,r.__exportStar)(n(35650),e),(0,r.__exportStar)(n(20999),e),(0,r.__exportStar)(n(14259),e),(0,r.__exportStar)(n(44395),e),(0,r.__exportStar)(n(4424),e),e.NestableWidgetMock={generate(t,e){switch(t.type){case"Boolean":return u.BooleanMock.generate(t,(null==e?void 0:e.type)==="Boolean"?e:void 0);case"Color":return o.ColorMock.generate(t,(null==e?void 0:e.type)==="Color"?e:void 0);case"Link":return p.LinkMock.generate(t,(null==e?void 0:e.type)==="Link"?e:void 0);case"Date":return a.DateMock.generate(t,(null==e?void 0:e.type)==="Date"?e:void 0);case"Embed":return c.EmbedMock.generate(t,(null==e?void 0:e.type)==="Embed"?e:void 0);case"GeoPoint":return f.GeoPointMock.generate(t,(null==e?void 0:e.type)==="GeoPoint"?e:void 0);case"Image":return l.ImageMock.generate(t);case"IntegrationFields":return s.IntegrationFieldMock.generate(t,(null==e?void 0:e.type)==="IntegrationFields"?e:void 0);case"Number":return d.NumberMock.generate(t,(null==e?void 0:e.type)==="Number"?e:void 0);case"Range":return h.RangeMock.generate(t,(null==e?void 0:e.type)==="Range"?e:void 0);case"StructuredText":return m.RichTextMock.generate(t,(null==e?void 0:e.type)==="StructuredText"?e:void 0);case"Select":return v.SelectMock.generate(t,(null==e?void 0:e.type)==="Select"?e:void 0);case"Text":return _.TextMock.generate(t,(null==e?void 0:e.type)==="Text"?e:void 0);case"Timestamp":return b.TimestampMock.generate(t,(null==e?void 0:e.type)==="Timestamp"?e:void 0);case"Separator":return y.SeparatorMock.generate(t)}},patch(t,e,n){if(t.op===i.DiffOperation.Removed)return;let r={diff:t,content:e,config:n},T=o.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||b.TimestampMock.applyPatch(r)||v.SelectMock.applyPatch(r)||h.RangeMock.applyPatch(r)||_.TextMock.applyPatch(r)||d.NumberMock.applyPatch(r)||u.BooleanMock.applyPatch(r)||m.RichTextMock.applyPatch(r)||p.LinkMock.applyPatch(r)||c.EmbedMock.applyPatch(r)||f.GeoPointMock.applyPatch(r)||l.ImageMock.applyPatch(r)||s.IntegrationFieldMock.applyPatch(r)||y.SeparatorMock.applyPatch(r);return null==T?void 0:T.result}}},25242:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateSliceMock=e.generateDocumentMock=void 0;let r=n(78948),i=n(73605);e.generateDocumentMock=function(t,e,n){let r=i.DocumentMock.generate(t,e,n);return n=>n?n(t,e,r):r},e.generateSliceMock=function(t,e){let n=i.SharedSliceMock.generate(t,e);return e=>e?e(t,n):n},(0,r.__exportStar)(n(73605),e),(0,r.__exportStar)(n(86449),e)},54775:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(73985),i={urlRewriter:{optimizeImageUrl:t=>t,rewriteImageUrl:t=>t.url||"/mockURL",rewriteFileUrl:t=>t,rewriteS3Bucket:t=>t,enforceCDN:t=>t},emptyStringInsteadOfNull:!1,Extension:{DocEncoder:{encodeDocId:r.Extensions.encodeDocId},encoders:r.Extensions.IDEncoders},LinkResolver:{buildUrl:t=>"/"}};e.default=i},86449:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderSliceMock=e.renderDocumentMock=void 0;let r=n(78948),i=n(88985),u=n(73985),o=n(16375),a=n(78631),c=(0,r.__importDefault)(n(54775));e.renderDocumentMock=function(t,e,n){let r=(0,u.fromCustomType)(t,e),o=Object.entries(n).filter(Boolean);return(0,i.DocumentRenderer)(c.default).renderMocks(r,o)},e.renderSliceMock=function(t,e){let n=o.SharedSliceDef.encode((0,o.fromSharedSlice)(t.id,t));return{...(0,i.SharedSliceRenderer)(c.default).renderMocks(n,e),id:`${t.id}$${(0,a.v4)()}`,slice_type:t.id}}},43830:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetKey=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(55242),o=RegExp("^[^<>]+$");e.WidgetKey=(0,u.refineType)(i.string,"WidgetKey",t=>0===t.length||o.test(t))},88966:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(43830),e)},60716:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentLegacy=e.Document=void 0;let r=n(78948),i=n(9554),u=n(87412),o=n(14632),a=r.__importStar(n(87830)),c=n(88966),f=n(29585),l=n(63750);e.Document=a.record(c.WidgetKey,f.WidgetContent);let s=a.record(c.WidgetKey,a.unknown),p=t=>new a.Type("Document",t=>!!t&&"object"==typeof t,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>Object.entries(e).reduce((e,[n,r])=>{let i=(0,l.defaultCtx)(n,t),o=(0,f.WidgetLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?e:{...e,[n]:o.right}},{}))),e=>Object.entries(e).reduce((e,[n,r])=>{let i=(0,l.defaultCtx)(n,t),u=(0,f.WidgetLegacy)(i).encode(r);return u?{content:{...e.content,[n]:u.content},types:{...e.types,...u.types}}:e},{content:{},types:{}}));function d(t){let e=Object.entries(t),{types:n,widgets:r}=e.reduce((t,[e,n])=>{if(e.endsWith("_TYPE")){let r=l.FieldOrSliceType.decode(n);if((0,u.isRight)(r))return{...t,types:t.types.set(e.substring(0,e.length-5),r.right)}}return e.endsWith("_POSITION")||e.endsWith("_TYPE")?t:{...t,widgets:{...t.widgets,[e]:n}}},{types:new Map,widgets:{}}),i=t.slugs_INTERNAL||[],o=t.uid;return{widgets:r,types:n,uid:o,slugs:i}}e.DocumentLegacy={_codec:p,extractMetadata:d,parse:function(t){let e=(0,o.pipe)(a.record(c.WidgetKey,a.unknown).decode(t),i.either.chain(t=>{let{types:e,widgets:n}=d(t);return p(e).decode(n)}));return(0,u.isLeft)(e)?void 0:e.right},encode:function(t){let e=p().encode(t);return{...e.content,...e.types}}}},63750:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultCtx=e.getFieldCtx=e.LegacyContentCtx=e.FieldOrSliceType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(75493);e.FieldOrSliceType=i.union([u.FieldType,u.SlicesTypes]);class o{constructor(t,e,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=t,this.fieldPath=e||[],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)}}e.LegacyContentCtx=o,e.getFieldCtx=function(t,e,n){return new o(t,[...e.fieldPath,e.fieldKey,...n||[]],e.allTypes)},e.defaultCtx=function(t,e=new Map){return new o(t,[],e)}},84774:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyContent=e.EmptyLegacy=e.isEmptyContent=e.EmptyContentType=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(93906);e.EmptyContentType="EmptyContent";let c=t=>(0,a.hasContentType)(t)&&t.__TYPE__===e.EmptyContentType;e.isEmptyContent=c;let f=o.union([o.null,o.type({value:o.null}),]),l=t=>new o.Type("EmptyLegacy",e.isEmptyContent,n=>(0,u.pipe)(f.decode(n),i.either.map(()=>({type:t,__TYPE__:e.EmptyContentType}))),()=>null);e.EmptyLegacy=l,e.EmptyContent=o.strict({type:o.string,__TYPE__:o.literal(e.EmptyContentType)})},28844:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GroupContent=e.isGroupContent=e.GroupContentType=e.GroupLegacy=e.GroupItemLegacy=e.GroupItemContent=e.GroupItemContentType=void 0;let r=n(78948),i=n(9554),u=n(87412),o=n(14632),a=r.__importStar(n(87830)),c=n(63750),f=n(93906),l=n(74912);e.GroupItemContentType="GroupItemContent",e.GroupItemContent=a.strict({__TYPE__:a.literal(e.GroupItemContentType),value:a.array(a.tuple([a.string,l.NestableContent]))});let s=a.array(a.tuple([a.string,a.unknown])),p=t=>new a.Type("GroupItemLegacy",t=>(0,f.hasContentType)(t)&&t.__TYPE__===e.GroupItemContentType,n=>{let r=(0,o.pipe)(s.decode(n),i.either.map(n=>{let r=n.reduce((e,[n,r])=>{let i=(0,c.getFieldCtx)(n,t),o=(0,l.NestableLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?e:[...e,[n,o.right]]},[]);return{value:r,__TYPE__:e.GroupItemContentType}}));return r},e=>e.value.reduce((e,[n,r])=>{let i=(0,c.getFieldCtx)(n,t),u=(0,l.NestableLegacy)(i).encode(r);return u?{content:[...e.content,[n,u.content]],types:{...e.types,...u.types}}:e},{content:[],types:{}}));e.GroupItemLegacy=p;let d=t=>{let n=a.array((0,e.GroupItemLegacy)(t));return new a.Type("GroupLegacy",e.isGroupContent,t=>(0,o.pipe)(n.decode(t),i.either.map(t=>({value:t,__TYPE__:e.GroupContentType}))),e=>{let r=n.encode(e.value);return{content:r.map(t=>t.content),types:r.reduce((t,e)=>({...t,...e.types}),{[t.keyOfType]:"Group"})}})};e.GroupLegacy=d,e.GroupContentType="GroupContentType";let h=t=>(0,f.hasContentType)(t)&&t.__TYPE__===e.GroupContentType;e.isGroupContent=h,e.GroupContent=a.strict({__TYPE__:a.literal(e.GroupContentType),value:a.array(e.GroupItemContent)})},33437:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIDContent=e.UIDLegacy=e.isUIDContent=e.UIDContentType=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(93906);e.UIDContentType="UIDContent";let c=t=>(0,a.hasContentType)(t)&&t.__TYPE__===e.UIDContentType;e.isUIDContent=c;let f=t=>new o.Type("UIDLegacy",e.isUIDContent,t=>(0,u.pipe)(o.string.decode(t),i.either.map(t=>e.UIDContent.encode({value:t,__TYPE__:e.UIDContentType}))),e=>({content:e.value,types:{[t.keyOfType]:"UID"}}));e.UIDLegacy=f,e.UIDContent=o.type({__TYPE__:o.literal(e.UIDContentType),value:o.string})},51357:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetLegacy=e.isWidgetContent=e.WidgetContent=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(28844),o=n(74912),a=n(47828),c=n(33437);e.WidgetContent=i.union([u.GroupContent,o.NestableContent,c.UIDContent,a.SlicesContent,]);let f=t=>(0,u.isGroupContent)(t)||(0,o.isNestableContent)(t)||(0,c.isUIDContent)(t)||(0,a.isSlicesContent)(t);e.isWidgetContent=f;let l=t=>({decode(e){if(!t.fieldType)return;let n=(()=>{switch(t.fieldType){case"UID":return(0,c.UIDLegacy)(t);case"Group":return(0,u.GroupLegacy)(t);case"Choice":case"Slices":return(0,a.SlicesLegacy)(t);default:return(0,o.NestableLegacy)(t)}})();if(n)return n.decode(e)},encode(e){switch(e.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(t).encode(e);case u.GroupContentType:return(0,u.GroupLegacy)(t).encode(e);case a.SlicesContentType:return(0,a.SlicesLegacy)(t).encode(e);default:return(0,o.NestableLegacy)(t).encode(e)}}});e.WidgetLegacy=l},29585:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(28844),e),r.__exportStar(n(74912),e),r.__exportStar(n(47828),e),r.__exportStar(n(33437),e),r.__exportStar(n(51357),e)},55211:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanContent=e.BooleanLegacy=e.isBooleanContent=e.BooleanContentType=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(93906);e.BooleanContentType="BooleanContent";let c=t=>(0,a.hasContentType)(t)&&t.__TYPE__===e.BooleanContentType;e.isBooleanContent=c;let f=t=>new o.Type("BooleanLegacy",e.isBooleanContent,t=>(0,u.pipe)(o.boolean.decode(t),i.either.map(t=>e.BooleanContent.encode({value:t,__TYPE__:e.BooleanContentType}))),e=>({content:e.value,types:{[t.keyOfType]:"Boolean"}}));e.BooleanLegacy=f,e.BooleanContent=o.strict({__TYPE__:o.literal(e.BooleanContentType),value:o.boolean})},44390:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmbedContent=e.EmbedLegacy=e.EmbedContentLegacy=e.isEmbedContent=e.EmbedContentType=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(49664),c=n(93906);e.EmbedContentType="EmbedContent";let f=t=>(0,c.hasContentType)(t)&&t.__TYPE__===e.EmbedContentType;e.isEmbedContent=f,e.EmbedContentLegacy=o.exact(o.intersection([o.type({embed_url:o.string,type:o.string}),o.partial({version:o.union([o.string,o.number,o.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:o.union([o.string,o.number,o.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),]));let l=t=>new o.Type("EmbedLegacy",e.isEmbedContent,t=>(0,u.pipe)(e.EmbedContentLegacy.decode(t),i.either.map(n=>({...n,all:t,__TYPE__:e.EmbedContentType}))),e=>({content:e.all,types:{[t.keyOfType]:"Embed"}}));e.EmbedLegacy=l,e.EmbedContent=o.intersection([e.EmbedContentLegacy,o.strict({__TYPE__:o.literal(e.EmbedContentType),all:o.unknown}),])},82622:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorContent=e.ColorLegacy=e.isColorContent=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(75493),c=r.__importDefault(n(55746)),f=n(93906),l=n(51243),s=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Color"===t.type;e.isColorContent=s;let p=t=>new o.Type("ColorLegacy",e.isColorContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>e.ColorContent.encode({value:t,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),e=>({content:e.value,types:{[t.keyOfType]:a.ColorFieldType}}));e.ColorLegacy=p,e.ColorContent=o.strict({type:o.literal(a.ColorFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},95066:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateContent=e.DateLegacy=e.isDateContent=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(75493),c=r.__importDefault(n(55746)),f=n(93906),l=n(51243),s=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Date"===t.type;e.isDateContent=s;let p=t=>new o.Type("DateLegacy",e.isDateContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>e.DateContent.encode({value:t,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),e=>({content:e.value,types:{[t.keyOfType]:a.DateFieldType}}));e.DateLegacy=p,e.DateContent=o.strict({type:o.literal(a.DateFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},77512:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NumberContent=e.NumberLegacy=e.isNumberContent=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(75493),c=r.__importDefault(n(55746)),f=n(93906),l=n(51243),s=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Number"===t.type;e.isNumberContent=s;let p=t=>new o.Type("NumberLegacy",e.isNumberContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>e.NumberContent.encode({value:t,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),e=>({content:e.value,types:{[t.keyOfType]:a.NumberFieldType}}));e.NumberLegacy=p,e.NumberContent=o.strict({type:o.literal(a.NumberFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},28107:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeContent=e.RangeLegacy=e.isRangeContent=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(75493),c=r.__importDefault(n(55746)),f=n(93906),l=n(51243),s=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Range"===t.type;e.isRangeContent=s;let p=t=>new o.Type("RangeLegacy",e.isRangeContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>e.RangeContent.encode({value:t,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),e=>({content:e.value,types:{[t.keyOfType]:a.RangeFieldType}}));e.RangeLegacy=p,e.RangeContent=o.strict({type:o.literal(a.RangeFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},5805:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectContent=e.SelectLegacy=e.isSelectContent=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(75493),c=r.__importDefault(n(55746)),f=n(93906),l=n(51243),s=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Select"===t.type;e.isSelectContent=s;let p=t=>new o.Type("SelectLegacy",e.isSelectContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>e.SelectContent.encode({value:t,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),e=>({content:e.value,types:{[t.keyOfType]:a.SelectFieldType}}));e.SelectLegacy=p,e.SelectContent=o.strict({type:o.literal(a.SelectFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},19522:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextContent=e.TextLegacy=e.isTextContent=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(75493),c=r.__importDefault(n(55746)),f=n(93906),l=n(51243),s=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Text"===t.type;e.isTextContent=s;let p=t=>new o.Type("TextLegacy",e.isTextContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>e.TextContent.encode({value:t,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),e=>({content:e.value,types:{[t.keyOfType]:a.TextFieldType}}));e.TextLegacy=p,e.TextContent=o.strict({type:o.literal(a.TextFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},53033:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimestampContent=e.TimestampLegacy=e.isTimestampContent=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(75493),c=r.__importDefault(n(55746)),f=n(93906),l=n(51243),s=t=>(0,f.hasContentType)(t)&&t.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(t)&&"Timestamp"===t.type;e.isTimestampContent=s;let p=t=>new o.Type("TimestampLegacy",e.isTimestampContent,t=>(0,u.pipe)(c.default.decode(t),i.either.map(t=>e.TimestampContent.encode({value:t,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),e=>({content:e.value,types:{[t.keyOfType]:a.TimestampFieldType}}));e.TimestampLegacy=p,e.TimestampContent=o.strict({type:o.literal(a.TimestampFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},51243:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FieldContentType=void 0,e.FieldContentType="FieldContent"},14898:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FieldContent=e.FieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(82622),o=n(95066),a=n(77512),c=n(28107),f=n(5805),l=n(19522),s=n(53033);e.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),e.FieldContent=i.union([o.DateContent,u.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,s.TimestampContent,]),r.__exportStar(n(82622),e),r.__exportStar(n(51243),e),r.__exportStar(n(95066),e),r.__exportStar(n(77512),e),r.__exportStar(n(28107),e),r.__exportStar(n(5805),e),r.__exportStar(n(19522),e),r.__exportStar(n(53033),e)},66450:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GeoPointContent=e.GeoPointLegacy=e.isGeoPointContent=e.GeoPointContentType=void 0;let r=n(78948),i=n(9554),u=n(42275),o=r.__importStar(n(87830)),a=n(93906);e.GeoPointContentType="GeoPointContent";let c=t=>(0,a.hasContentType)(t)&&t.__TYPE__===e.GeoPointContentType;e.isGeoPointContent=c;let f=o.strict({position:o.strict({lat:o.number,lng:o.number})}),l=t=>new o.Type("GeoPointLegacy",e.isGeoPointContent,t=>(0,u.pipe)(f.decode(t),i.either.map(t=>e.GeoPointContent.encode({...t,__TYPE__:e.GeoPointContentType}))),e=>({content:{position:e.position},types:{[t.keyOfType]:"GeoPoint"}}));e.GeoPointLegacy=l,e.GeoPointContent=o.intersection([f,o.strict({__TYPE__:o.literal(e.GeoPointContentType)}),])},80286:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImageContent=e.ImageLegacy=e.ImageContentView=e.isImageContent=e.ImageContentType=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(73147),c=n(49664),f=n(93906);e.ImageContentType="ImageContent";let l=t=>(0,f.hasContentType)(t)&&t.__TYPE__===e.ImageContentType;e.isImageContent=l;let s=o.exact(o.type({id:o.string,url:o.string,width:o.number,height:o.number}));e.ImageContentView=o.exact(o.intersection([o.type({origin:s,width:o.number,height:o.number,edit:o.type({zoom:o.number,crop:o.type({x:o.number,y:o.number}),background:o.string})}),o.partial({url:o.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull}),]));let p=o.intersection([e.ImageContentView,o.partial({thumbnails:o.record(o.string,e.ImageContentView)}),]),d=t=>new o.Type("ImageLegacy",e.isImageContent,t=>(0,u.pipe)(p.decode(t),i.either.map(t=>e.ImageContent.encode({...t,__TYPE__:e.ImageContentType}))),e=>({content:(0,a.withOptionals)({edit:e.edit,height:e.height,origin:e.origin,width:e.width},[["alt",e.alt],["credits",e.credits],["provider",e.provider],["thumbnails",e.thumbnails],["url",e.url],]),types:{[t.keyOfType]:"Image"}}));e.ImageLegacy=d,e.ImageContent=o.intersection([p,o.strict({__TYPE__:o.literal(e.ImageContentType)}),])},53304:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IntegrationFieldContent=e.IntegrationFieldLegacy=e.isIntegrationFieldContent=e.IntegrationFieldContentType=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(93906);e.IntegrationFieldContentType="IntegrationFieldsContent";let c=t=>(0,a.hasContentType)(t)&&t.__TYPE__===e.IntegrationFieldContentType;e.isIntegrationFieldContent=c;let f=t=>new o.Type("IntegrationFieldLegacy",e.isIntegrationFieldContent,t=>(0,u.pipe)(o.string.decode(t),i.either.map(t=>e.IntegrationFieldContent.encode({value:t,__TYPE__:e.IntegrationFieldContentType}))),e=>({content:e.value,types:{[t.keyOfType]:"IntegrationFields"}}));e.IntegrationFieldLegacy=f,e.IntegrationFieldContent=o.strict({__TYPE__:o.literal(e.IntegrationFieldContentType),value:o.string})},89138:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkContent=e.Link=e.LinkContentLegacy=e.LinkLegacy=e.isLinkContent=e.LinkContentType=e.ExternalLinkContent=e.ExternalLinkType=e.DocumentLinkContent=e.DocumentLinkType=e.FileLinkContent=e.FileLinkType=e.ImageLinkContent=e.ImageLinkType=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(23284),c=n(49664),f=n(55242),l=n(93906);e.ImageLinkType="ImageLink";let s=o.exact(o.intersection([o.type({id:o.string,url:o.string,height:o.string,width:o.string,size:o.string,name:o.string,kind:o.string}),o.partial({date:c.StringOrNull}),])),p=new o.Type("ImageLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===e.ImageLinkType,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>e.ImageLinkContent.encode({...t,__TYPE__:e.ImageLinkType}))),t=>s.encode(t));e.ImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(e.ImageLinkType)}),s,]),e.FileLinkType="FileLink";let d=o.exact(o.intersection([o.type({id:o.string,url:o.string,name:o.string,kind:o.string,size:(0,a.withFallback)(o.string,"0")}),o.partial({date:(0,f.nullable)(o.string)}),])),h=new o.Type("FileLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===e.FileLinkType,t=>(0,u.pipe)(d.decode(t),i.either.map(t=>e.FileLinkContent.encode({...t,__TYPE__:e.FileLinkType}))),t=>d.encode(t));e.FileLinkContent=o.intersection([d,o.exact(o.intersection([o.type({__TYPE__:o.literal(e.FileLinkType)}),o.partial({size:(0,a.withFallback)(o.string,"0")}),])),]),e.DocumentLinkType="DocumentLink";let m=o.strict({id:c.NonEmptyString}),v=new o.Type("DocumentLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===e.DocumentLinkType,t=>(0,u.pipe)(m.decode(t),i.either.map(t=>e.DocumentLinkContent.encode({...t,__TYPE__:e.DocumentLinkType}))),t=>m.encode(t));e.DocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(e.DocumentLinkType)}),m,]),e.ExternalLinkType="ExternalLink";let y=o.exact(o.intersection([o.type({url:o.string}),o.partial({kind:o.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(o.partial({title:o.string}))}),])),_=new o.Type("ExternalLink",t=>(0,l.hasContentType)(t)&&t.__TYPE__===e.ExternalLinkType,t=>(0,u.pipe)(y.decode(t),i.either.map(t=>e.ExternalLinkContent.encode({...t,__TYPE__:e.ExternalLinkType}))),t=>y.encode(t));e.ExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(e.ExternalLinkType)}),y,]),e.LinkContentType="LinkContent";let b=t=>(0,l.hasContentType)(t)&&t.__TYPE__===e.LinkContentType;e.isLinkContent=b,e.LinkLegacy=o.union([p,h,v,_,]);let T=t=>new o.Type("LinkLegacy",e.isLinkContent,t=>(0,u.pipe)(e.LinkLegacy.decode(t),i.either.map(t=>e.LinkContent.encode({value:t,__TYPE__:e.LinkContentType}))),n=>({content:e.LinkLegacy.encode(n.value),types:{[t.keyOfType]:"Link"}}));e.LinkContentLegacy=T,e.Link=o.union([e.ImageLinkContent,e.FileLinkContent,e.DocumentLinkContent,e.ExternalLinkContent,]),e.LinkContent=o.strict({__TYPE__:o.literal(e.LinkContentType),value:e.Link})},69506:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NestableLegacy=e.isNestableContent=e.NestableContent=void 0;let r=n(78948),i=n(87412),u=r.__importStar(n(87830)),o=n(84774),a=n(55211),c=n(44390),f=n(14898),l=n(51243),s=n(66450),p=n(80286),d=n(53304),h=n(89138),m=n(18638),v=n(72372);e.NestableContent=u.union([o.EmptyContent,a.BooleanContent,c.EmbedContent,f.TextContent,f.TimestampContent,f.SelectContent,f.RangeContent,f.NumberContent,f.DateContent,f.ColorContent,s.GeoPointContent,p.ImageContent,d.IntegrationFieldContent,h.LinkContent,m.RichTextContent,v.SeparatorContent,]);let y=t=>(0,f.isTextContent)(t)||(0,f.isColorContent)(t)||(0,f.isDateContent)(t)||(0,f.isTimestampContent)(t)||(0,f.isNumberContent)(t)||(0,f.isRangeContent)(t)||(0,f.isSelectContent)(t)||(0,s.isGeoPointContent)(t)||(0,m.isRichTextContent)(t)||(0,a.isBooleanContent)(t)||(0,c.isEmbedContent)(t)||(0,p.isImageContent)(t)||(0,d.isIntegrationFieldContent)(t)||(0,h.isLinkContent)(t)||(0,v.isSeparatorContent)(t);e.isNestableContent=y;let _=t=>({decode(e){if(!t.fieldType)return;let n=(0,o.EmptyLegacy)(t.fieldType).decode(e);if((0,i.isRight)(n))return n;let r=(()=>{switch(t.fieldType){case"Text":return(0,f.TextLegacy)(t);case"Color":return(0,f.ColorLegacy)(t);case"Date":return(0,f.DateLegacy)(t);case"Timestamp":return(0,f.TimestampLegacy)(t);case"Number":return(0,f.NumberLegacy)(t);case"Range":return(0,f.RangeLegacy)(t);case"Select":return(0,f.SelectLegacy)(t);case"GeoPoint":return(0,s.GeoPointLegacy)(t);case"StructuredText":return(0,m.RichTextLegacy)(t);case"Boolean":return(0,a.BooleanLegacy)(t);case"Embed":return(0,c.EmbedLegacy)(t);case"Image":return(0,p.ImageLegacy)(t);case"IntegrationFields":return(0,d.IntegrationFieldLegacy)(t);case"Link":return(0,h.LinkContentLegacy)(t);case"Separator":return(0,v.SeparatorLegacy)(t);default:return}})();if(r)return r.decode(e)},encode(e){switch(e.__TYPE__){case l.FieldContentType:if("Text"===e.type)return(0,f.TextLegacy)(t).encode(e);if("Color"===e.type)return(0,f.ColorLegacy)(t).encode(e);if("Range"===e.type)return(0,f.RangeLegacy)(t).encode(e);if("Date"===e.type)return(0,f.DateLegacy)(t).encode(e);if("Number"===e.type)return(0,f.NumberLegacy)(t).encode(e);if("Timestamp"===e.type)return(0,f.TimestampLegacy)(t).encode(e);if("Select"===e.type)return(0,f.SelectLegacy)(t).encode(e);return;case s.GeoPointContentType:return(0,s.GeoPointLegacy)(t).encode(e);case m.RichTextContentType:return(0,m.RichTextLegacy)(t).encode(e);case c.EmbedContentType:return(0,c.EmbedLegacy)(t).encode(e);case a.BooleanContentType:return(0,a.BooleanLegacy)(t).encode(e);case p.ImageContentType:return(0,p.ImageLegacy)(t).encode(e);case d.IntegrationFieldContentType:return(0,d.IntegrationFieldLegacy)(t).encode(e);case h.LinkContentType:return(0,h.LinkContentLegacy)(t).encode(e);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(t).encode(e);default:return}}});e.NestableLegacy=_},92546:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Block=e.BlockLegacy=e.TextBlock=e.checkEmbedBlock=e.EmbedBlock=e.checkImageBlock=e.ImageBlock=e.ValidatedMetas=e.Span=e.Meta=void 0;let r=n(78948),i=n(9554),u=n(87412),o=n(14632),a=r.__importStar(n(87830)),c=n(82250),f=n(49664),l=n(55242),s=n(44390),p=n(80286),d=n(89138);e.Meta=a.exact(a.intersection([a.partial({data:a.unknown}),a.type({start:a.number,end:a.number,type:a.union([c.RichTextNodeTypeCodec,a.literal("label")])}),])),e.Span=e.Meta;let h=t=>new a.Type("ValidatedMetas",t=>Array.isArray(t)&&t.every(e.Meta.is),(n,r)=>{if(!Array.isArray(n))return a.failure(n,r);{let i=n.reduce((n,r)=>{let i=e.Meta.decode(r);if((0,u.isRight)(i)){let o=i.right;if(o.data&&"hyperlink"===o.type){let a=t.decode(o.data);return(0,u.isLeft)(a)?n:[...n,{...o,data:a.right}]}if("hyperlink"!==o.type)return[...n,o]}return n},[]).sort((t,e)=>t.start-e.start);return a.success(i)}},n=>n.reduce((n,r)=>{if("hyperlink"===r.type&&r.data){let i=t.decode(r.data);return(0,u.isLeft)(i)?n:[...n,{...r,data:t.encode(i.right)}]}return[...n,e.Meta.encode(r)]},[]));e.ValidatedMetas=h,e.ImageBlock=a.exact(a.intersection([a.type({type:a.literal(c.RichTextNodeType.image),data:a.intersection([p.ImageContentView,a.partial({linkTo:(0,l.nullable)(d.Link)}),])}),a.partial({label:f.StringOrNull,direction:f.StringOrNull}),])),e.checkImageBlock=function(t){return t.type===c.RichTextNodeType.image};let m=a.exact(a.intersection([a.type({type:a.literal(c.RichTextNodeType.embed),data:a.unknown}),a.partial({label:f.StringOrNull,direction:f.StringOrNull}),])),v=new a.Type("EmbedBlockLegacy",t=>"embed"===t.type,t=>(0,o.pipe)(m.decode(t),i.either.chain(t=>i.either.map(e=>[t,e])(s.EmbedContentLegacy.decode(t.data))),i.either.map(([t,n])=>e.EmbedBlock.encode({...t,data:{...n,__TYPE__:s.EmbedContentType,all:t.data}}))),t=>({...m.encode(t),data:s.EmbedContentLegacy.encode(t.data)}));e.EmbedBlock=a.exact(a.intersection([a.type({type:a.literal(c.RichTextNodeType.embed),data:s.EmbedContent}),a.partial({label:f.StringOrNull,direction:f.StringOrNull}),])),e.checkEmbedBlock=function(t){return t.type===c.RichTextNodeType.embed};let y=t=>a.exact(a.intersection([a.type({type:(0,l.refineType)(c.RichTextNodeTypeCodec,`string which isn't ${c.RichTextNodeType.image} ${c.RichTextNodeType.embed}`,t=>t!==c.RichTextNodeType.image&&t!==c.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,e.ValidatedMetas)(t)}),])}),a.partial({label:a.string,direction:a.string}),]));e.TextBlock=y(d.Link);let _=y(d.LinkLegacy),b=a.union([v,e.ImageBlock,_,]);e.BlockLegacy=new a.Type("BlockLegacy",t=>v.is(t)||e.ImageBlock.is(t)||_.is(t),t=>b.decode(t),t=>e.ImageBlock.is(t)?e.ImageBlock.encode(t):e.EmbedBlock.is(t)?v.encode(t):_.encode(t)),e.Block=a.union([e.ImageBlock,e.EmbedBlock,e.TextBlock])},18638:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RichTextLegacy=e.RichTextContent=e.isRichTextContent=e.RichTextContentType=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(93906),c=n(92546);e.RichTextContentType="StructuredTextContent";let f=t=>(0,a.hasContentType)(t)&&t.__TYPE__===e.RichTextContentType;e.isRichTextContent=f;let l=o.array(c.BlockLegacy);e.RichTextContent=o.strict({__TYPE__:o.literal(e.RichTextContentType),value:o.array(c.Block)}),r.__exportStar(n(92546),e);let s=t=>new o.Type("RichTextLegacy",e.isRichTextContent,t=>(0,u.pipe)(l.decode(t),i.either.map(t=>e.RichTextContent.encode({value:t,__TYPE__:e.RichTextContentType}))),e=>({content:l.encode(e.value),types:{[t.keyOfType]:"StructuredText"}}));e.RichTextLegacy=s},72372:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SeparatorContent=e.SeparatorLegacy=e.isSeparatorContent=e.SeparatorContentType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(93906);e.SeparatorContentType="SeparatorContent";let o=t=>(0,u.hasContentType)(t)&&t.__TYPE__===e.SeparatorContentType;e.isSeparatorContent=o;let a=t=>new i.Type("SeparatorLegacy",e.isSeparatorContent,()=>i.success(e.SeparatorContent.encode({__TYPE__:e.SeparatorContentType})),()=>({content:{},types:{[t.keyOfType]:"Separator"}}));e.SeparatorLegacy=a,e.SeparatorContent=i.strict({__TYPE__:i.literal(e.SeparatorContentType)})},74912:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(55211),e),r.__exportStar(n(44390),e),r.__exportStar(n(14898),e),r.__exportStar(n(66450),e),r.__exportStar(n(80286),e),r.__exportStar(n(53304),e),r.__exportStar(n(89138),e),r.__exportStar(n(69506),e),r.__exportStar(n(18638),e),r.__exportStar(n(72372),e)},80975:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositeSliceContent=e.CompositeSliceLegacy=e.isCompositeSliceContent=e.CompositeSliceContentType=void 0;let r=n(78948),i=n(9554),u=n(87412),o=n(14632),a=r.__importStar(n(87830)),c=n(63750),f=n(93906),l=n(74912),s=n(95887);e.CompositeSliceContentType="CompositeSliceContent";let p=t=>(0,f.hasContentType)(t)&&t.__TYPE__===e.CompositeSliceContentType;e.isCompositeSliceContent=p;let d=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord})),h=t=>new a.Type("CompositeSliceLegacy",e.isCompositeSliceContent,n=>(0,o.pipe)(d.decode(n),i.either.map(n=>{let r=(()=>{let e=(0,c.getFieldCtx)("repeat",t),r=(0,s.RepeatableWidgetsLegacy)(e).decode(n.repeat);if(!(!r||(0,u.isLeft)(r)))return r.right})()||[],i=Object.entries(n["non-repeat"]||{}).reduce((e,[n,r])=>{let i=(0,c.getFieldCtx)(n,t,["non-repeat"]);if(!i)return e;let o=(0,l.NestableLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?e:{...e,[n]:o.right}},{});return{nonRepeat:i,repeat:r,__TYPE__:e.CompositeSliceContentType}})),e=>{let n=Object.entries(e.nonRepeat).reduce((e,[n,r])=>{let i=(0,c.getFieldCtx)(n,t,["non-repeat"]),u=(0,l.NestableLegacy)(i).encode(r);return u?{content:{...e.content,[n]:u.content},types:{...e.types,...u.types}}:e},{content:{},types:{}}),r=(()=>{let n=(0,c.getFieldCtx)("repeat",t),r=(0,s.RepeatableWidgetsLegacy)(n).encode(e.repeat);return r})()||[];return{content:{"non-repeat":n.content,repeat:r.map(t=>t.content)},types:{[t.keyOfType]:"Slice",...n.types,...r.reduce((t,e)=>({...t,...e.types}),{})}}});e.CompositeSliceLegacy=h,e.CompositeSliceContent=a.strict({__TYPE__:a.literal(e.CompositeSliceContentType),nonRepeat:a.record(a.string,l.NestableContent),repeat:s.RepeatableWidgets})},95887:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RepeatableWidgets=e.RepeatableWidgetsLegacy=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(28844),o=n(74912),a=t=>i.array((0,u.GroupItemLegacy)(t));e.RepeatableWidgetsLegacy=a;let c=i.tuple([i.string,o.NestableContent]),f=i.strict({__TYPE__:i.literal(u.GroupItemContentType),value:i.array(c)});i.array(c),e.RepeatableWidgets=i.array(f)},61467:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedSliceContent=e.SharedSliceLegacy=e.isSharedSliceContent=e.SharedSliceContentType=void 0;let r=n(78948),i=n(9554),u=n(87412),o=n(14632),a=r.__importStar(n(87830)),c=n(23284),f=n(63750),l=n(93906),s=n(74912),p=n(95887);e.SharedSliceContentType="SharedSliceContent";let d=t=>(0,l.hasContentType)(t)&&t.__TYPE__===e.SharedSliceContentType;e.isSharedSliceContent=d;let h=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})})),m=t=>new a.Type("SharedSliceLegacy",e.isSharedSliceContent,n=>(0,o.pipe)(h.decode(n),i.either.map(n=>{let r=(()=>{let e=(0,f.getFieldCtx)("items",t,["variations",n.variation,]),r=(0,p.RepeatableWidgetsLegacy)(e).decode(n.items);if(!(!r||(0,u.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((e,[r,i])=>{let o=(0,f.getFieldCtx)(r,t,["variations",n.variation,"primary",]),a=(0,s.NestableLegacy)(o).decode(i);return!a||(0,u.isLeft)(a)?e:{...e,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:e.SharedSliceContentType}})),e=>{let n=Object.entries(e.primary).reduce((n,[r,i])=>{let u=(0,f.getFieldCtx)(r,t,["variations",e.variation,"primary",]),o=(0,s.NestableLegacy)(u).encode(i);return o?{content:{...n.content,[r]:o.content},types:{...n.types,...o.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,f.getFieldCtx)("items",t,["variations",e.variation,]),r=(0,p.RepeatableWidgetsLegacy)(n).encode(e.items);return r})()||[];return{content:{primary:n.content,items:r.map(t=>t.content),variation:e.variation},types:{[t.keyOfType]:"SharedSlice",...n.types,...r.reduce((t,e)=>({...t,...e.types}),{})}}});e.SharedSliceLegacy=m,e.SharedSliceContent=a.strict({__TYPE__:a.literal(e.SharedSliceContentType),variation:a.string,primary:a.record(a.string,s.NestableContent),items:p.RepeatableWidgets})},44979:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleSliceLegacy=e.isSimpleSliceContent=e.SimpleSliceContent=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(28844),o=n(74912);e.SimpleSliceContent=i.union([o.NestableContent,u.GroupContent]);let a=t=>(0,o.isNestableContent)(t)||(0,u.isGroupContent)(t);e.isSimpleSliceContent=a;let c=t=>({decode:((0,o.NestableLegacy)(t)||(0,u.GroupLegacy)(t)).decode.bind(null),encode:e=>"GroupContentType"===e.__TYPE__?(0,u.GroupLegacy)(t).encode(e):(0,o.NestableLegacy)(t).encode(e)});e.SimpleSliceLegacy=c},54672:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SliceContent=e.SliceLegacy=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(80975),o=n(61467),a=n(44979),c=t=>({decode(e){let n=(()=>{switch(t.fieldType){case"Slice":return(0,u.CompositeSliceLegacy)(t);case"SharedSlice":return(0,o.SharedSliceLegacy)(t);default:return(0,a.SimpleSliceLegacy)(t)}})();return n.decode(e)},encode(e){switch(e.__TYPE__){case"SharedSliceContent":return(0,o.SharedSliceLegacy)(t).encode(e);case"CompositeSliceContent":return(0,u.CompositeSliceLegacy)(t).encode(e);default:return(0,a.SimpleSliceLegacy)(t).encode(e)}}});e.SliceLegacy=c,e.SliceContent=i.union([u.CompositeSliceContent,o.SharedSliceContent,a.SimpleSliceContent,]),r.__exportStar(n(80975),e),r.__exportStar(n(61467),e),r.__exportStar(n(44979),e)},78005:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlicesItemLegacy=e.SliceItemContent=void 0;let r=n(78948),i=n(9554),u=n(87412),o=n(14632),a=r.__importStar(n(87830)),c=n(55242),f=n(63750),l=n(54672),s=n(80975),p=n(61467),d=n(44979);e.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:l.SliceContent});let h=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),])),m=t=>new a.Type("SlicesItemLegacy",t=>((0,p.isSharedSliceContent)(t.widget),(0,s.isCompositeSliceContent)(t.widget),(0,d.isSimpleSliceContent)(t.widget)),(e,n)=>(0,o.pipe)(h.decode(e),i.either.chain(r=>{var i;let o=r.key.indexOf("$"),c=r.key.substring(0,o>0?o:void 0),s=(0,f.getFieldCtx)(c,t),p=(0,l.SliceLegacy)(s).decode(r.value);return!p||(0,u.isLeft)(p)?a.failure(e,n):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),e=>{let n=(0,f.getFieldCtx)(e.name,t),r=(0,l.SliceLegacy)(n).encode(e.widget);return{content:{key:e.key,label:e.maybeLabel,value:(null==r?void 0:r.content)||{}},types:(null==r?void 0:r.types)||{}}});e.SlicesItemLegacy=m},25230:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlicesContent=e.SlicesLegacy=e.isSlicesContent=e.SlicesContentType=void 0;let r=n(78948),i=n(9554),u=n(14632),o=r.__importStar(n(87830)),a=n(93906),c=n(78005);e.SlicesContentType="SliceContentType";let f=t=>(0,a.hasContentType)(t)&&t.__TYPE__===e.SlicesContentType;e.isSlicesContent=f;let l=t=>{let n=o.array((0,c.SlicesItemLegacy)(t));return new o.Type("SlicesLegacy",e.isSlicesContent,t=>(0,u.pipe)(n.decode(t),i.either.map(t=>({__TYPE__:e.SlicesContentType,value:t}))),e=>{let r=n.encode(e.value);return{content:r.map(t=>t.content),types:r.reduce((t,e)=>({...t,...e.types}),{[t.keyOfType]:"Slices"})}})};e.SlicesLegacy=l,e.SlicesContent=o.type({__TYPE__:o.literal(e.SlicesContentType),value:o.array(c.SliceItemContent)})},47828:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(54672),e),r.__exportStar(n(78005),e),r.__exportStar(n(25230),e)},42793:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(60716),e),r.__exportStar(n(29585),e),r.__exportStar(n(63750),e)},93906:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasContentType=e.hasFieldContentType=void 0;let r=n(87412),i=n(29585);function u(t){return"object"==typeof t&&null!==t&&"__TYPE__"in t}e.hasFieldContentType=function(t){return u(t)&&t.__TYPE__===i.FieldContentType&&(null==t?void 0:t.type)!==void 0&&"string"==typeof t.type&&(0,r.isRight)(i.FieldType.decode(t.type))},e.hasContentType=u},70090:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filterMissingSharedSlices=e.collectWidgets=e.validateSlices=e.toStatic=e.flattenWidgets=e.CustomType=e.StaticCustomType=void 0;let r=n(78948),i=n(87412),u=r.__importStar(n(87830)),o=n(69624),a=n(49664),c=n(56668);class f extends Error{constructor(t){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=t,this.message=this._formatError(t)}_formatError(t){let e=t.map(t=>` - ${t}`);return`The following slices doesn't exists in your Prismic repository:
|
|
2
|
-
${e.join("\n")}
|
|
3
|
-
`}}function l(t){return u.exact(u.intersection([u.type({id:u.string,label:a.StringOrNull,repeatable:(0,o.withFallback)(u.boolean,!0),json:u.record(u.string,t),status:(0,o.withFallback)(u.boolean,!0)}),u.partial({hash:u.string}),]))}function s(t){return Object.entries(t.json).reduce((t,[,e])=>{let n=Object.entries(e);return t.concat(n)},[])}function p(t,e){let n=Object.entries(t.json).reduce((t,[n,r])=>{let i=Object.entries(r).reduce((t,[n,r])=>{let i=e(n,r);return i?{...t,[n]:i}:t},{});return{...t,[n]:i}},{});return{...t,json:n}}e.StaticCustomType=l(c.StaticSection),e.CustomType=l(c.DynamicSection),e.flattenWidgets=s,e.toStatic=function(t,e){let n=Object.entries(t.json).reduce((t,[n,r])=>({...t,[n]:c.Sections.toStatic(r,e)}),{});return{...t,json:n}},e.validateSlices=function(t,e){let n=(function(t){let e=function(t){let e=s(t).filter(([,t])=>"Slices"===t.type),n=e.reduce((t,[,e])=>{let n=Object.entries(e.config&&e.config.choices?e.config.choices:{}).filter(([,t])=>"SharedSlice"===t.type).map(([t])=>t);return t.concat(n)},[]);return n}(t);return function(t){return e.map(t)}})(t)(t=>{let n=e.get(t);if(!n)return t}).filter(Boolean);return n.length>0?(0,i.left)(new f(n)):(0,i.right)(t)},e.collectWidgets=p,e.filterMissingSharedSlices=function(t,e){return p(t,(t,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let r=Object.entries(n.config.choices).reduce((t,[n,r])=>"SharedSlice"!==r.type||e.get(n)?{...t,[n]:r}:t,{}),i={...n.config,choices:r};return{...n,config:i}}return n})}},56668:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sections=e.DynamicSection=e.StaticSection=e.sectionReader=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(88966),o=n(35264);function a(t){return i.record(u.WidgetKey,t)}e.sectionReader=a,e.StaticSection=a(o.StaticWidget),e.DynamicSection=a(o.DynamicWidget),e.Sections={toStatic(t,e){let n=Object.entries(t).reduce((t,[n,r])=>({...t,[n]:o.Widgets.toStatic(r,e)}),{});return n}}},88082:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.DiffOperation=void 0,(n=e.DiffOperation||(e.DiffOperation={})).Added="added",n.Removed="removed",n.Updated="updated"},73106:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SliceComparator=void 0;let r=n(68396),i=n(88082),u=n(17398);e.SliceComparator={compare(t,e){if(!t&&e)return{op:i.DiffOperation.Added,value:e};if(t&&!e)return{op:i.DiffOperation.Removed};let n=function(t,e){let n=r.Objects.zipObjects(t,e);return Object.entries(n).reduce((t,[e,n])=>"variations"===e||(null==n?void 0:n.left)===(null==n?void 0:n.right)?t:{...t,[e]:null==n?void 0:n.right},{})}(t,e),o=r.Objects.zipObjects(t&&r.Arrays.toRecord(t.variations,t=>t.id),e&&r.Arrays.toRecord(e.variations,t=>t.id)),a=Object.entries(o).reduce((t,[e,n])=>{if(!n)return t;let r=u.VariationComparator.compare(n.left,n.right);return r?{...t,[e]:r}:t},{}),c={...n,...r.Objects.isNotEmpty(a)?{variations:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},17398:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VariationComparator=void 0;let r=n(68396),i=n(88082);function u(t,e){let n=r.Objects.zipObjects(t,e),u=Object.entries(n).reduce((t,[e,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return t;let r=(()=>{if((null==n?void 0:n.left)||(null==n?void 0:n.right))return(null==n?void 0:n.left)&&!n.right?{op:i.DiffOperation.Removed}:!(null==n?void 0:n.left)&&(null==n?void 0:n.right)?{op:i.DiffOperation.Added,value:n.right}:{op:i.DiffOperation.Updated,value:n.right}})();return r?{...t,[e]:r}:t},{});return r.Objects.isNotEmpty(u)?u:void 0}e.VariationComparator={compare(t,e){if(t&&!e)return{op:i.DiffOperation.Removed};if(!t&&e)return{op:i.DiffOperation.Added,value:e};let n=function(t,e){let n=r.Objects.zipObjects(t,e);return Object.entries(n).reduce((t,[e,n])=>"primary"===e||"items"===e||(null==n?void 0:n.left)===(null==n?void 0:n.right)?t:{...t,[e]:null==n?void 0:n.right},{})}(t,e),o=u(null==t?void 0:t.primary,null==e?void 0:e.primary),a=u(null==t?void 0:t.items,null==e?void 0:e.items),c={...n,...o?{primary:o}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},18784:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(88082),e),r.__exportStar(n(73106),e),r.__exportStar(n(17398),e)},93784:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(70090),e),r.__exportStar(n(18784),e),r.__exportStar(n(56668),e),r.__exportStar(n(75493),e)},82051:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Group=e.GroupConfig=e.GroupFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(88966),o=n(49664),a=n(56966);e.GroupFieldType="Group",e.GroupConfig=i.exact(i.partial({label:o.StringOrNull,repeat:i.boolean,fields:i.record(u.WidgetKey,a.NestableWidget)})),e.Group=i.exact(i.intersection([i.type({type:i.literal(e.GroupFieldType)}),i.partial({fieldset:o.StringOrNull,icon:i.string,description:i.string,config:e.GroupConfig}),]))},29218:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UID=e.UIDConfig=e.UIDFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.UIDFieldType="UID",e.UIDConfig=i.exact(i.partial({label:u.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),e.UID=i.exact(i.intersection([i.type({type:i.literal(e.UIDFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.UIDConfig}),]))},35264:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Widgets=e.FieldType=e.DynamicWidget=e.StaticWidget=e.widgetReader=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(82051),o=n(82250),a=n(56966),c=n(14149),f=n(29218);function l(t){return i.union([f.UID,a.NestableWidget,u.Group,t])}e.widgetReader=l,e.StaticWidget=l(c.StaticSlices),e.DynamicWidget=l(c.DynamicSlices),e.FieldType=i.keyof({[o.ColorFieldType]:null,[o.BooleanFieldType]:null,[o.NumberFieldType]:null,[o.EmbedFieldType]:null,[o.GeoPointFieldType]:null,[o.DateFieldType]:null,[o.RangeFieldType]:null,[o.RichTextFieldType]:null,[o.SelectFieldType]:null,[o.SeparatorFieldType]:null,[o.TextFieldType]:null,[o.TimestampFieldType]:null,[o.LinkFieldType]:null,[o.ImageFieldType]:null,[o.IntegrationFieldType]:null,[f.UIDFieldType]:null,[u.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),e.Widgets={toStatic(t,e){switch(t.type){case"Choice":case"Slices":return c.Slices.toStatic(t,e);default:return t}}}},75493:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(82051),e),r.__exportStar(n(82250),e),r.__exportStar(n(25852),e),r.__exportStar(n(27035),e),r.__exportStar(n(29218),e),r.__exportStar(n(35264),e)},50541:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanField=e.BooleanConfig=e.BooleanFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.BooleanFieldType="Boolean",e.BooleanConfig=i.exact(i.partial({label:u.StringOrNull,default_value:i.boolean,placeholder_true:i.string,placeholder_false:i.string})),e.BooleanField=i.exact(i.intersection([i.type({type:i.literal(e.BooleanFieldType)}),i.partial({config:e.BooleanConfig}),]))},247:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Color=e.ColorConfig=e.ColorFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.ColorFieldType="Color",e.ColorConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string})),e.Color=i.exact(i.intersection([i.type({type:i.literal(e.ColorFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.ColorConfig}),]))},33006:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Date=e.DateConfig=e.DateFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.DateFieldType="Date",e.DateConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default:i.string})),e.Date=i.exact(i.intersection([i.type({type:i.literal(e.DateFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.DateConfig}),]))},26493:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Embed=e.EmbedConfig=e.EmbedFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.EmbedFieldType="Embed",e.EmbedConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),e.Embed=i.exact(i.intersection([i.type({type:i.literal(e.EmbedFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.EmbedConfig}),]))},91301:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GeoPoint=e.GeoPointConfig=e.GeoPointFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.GeoPointFieldType="GeoPoint",e.GeoPointConfig=i.exact(i.partial({label:u.StringOrNull})),e.GeoPoint=i.exact(i.intersection([i.type({type:i.literal(e.GeoPointFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.GeoPointConfig}),]))},2507:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Image=e.ImageConfig=e.Thumbnail=e.ImageFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664),o=r.__importDefault(n(14419));e.ImageFieldType="Image",e.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),o.default,])),e.ImageConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,constraint:o.default,thumbnails:i.readonlyArray(e.Thumbnail)})),e.Image=i.exact(i.intersection([i.type({type:i.literal(e.ImageFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.ImageConfig}),]))},22262:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IntegrationField=e.IntegrationFieldConfig=e.IntegrationFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.IntegrationFieldType="IntegrationFields",e.IntegrationFieldConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,catalog:i.string})),e.IntegrationField=i.exact(i.intersection([i.type({type:i.literal(e.IntegrationFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.IntegrationFieldConfig}),]))},45576:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Link=e.LinkConfig=e.LinkFieldType=void 0;let r=n(78948),i=n(87412),u=r.__importStar(n(87830)),o=n(69624),a=n(49664),c=t=>{if(t instanceof Array){let e=t.reduce((t,e)=>t&&"string"==typeof e,!0);if(e)return u.success(t)}},f=t=>{if("string"==typeof t)return u.success([t])},l=new u.Type("MasksArrayString",t=>t instanceof Array,(t,e)=>i.either.chain(u.union([u.array(u.string),u.string]).validate(t,e),n=>c(n)||f(n)||u.failure(t,e)),t=>t);e.LinkFieldType="Link",e.LinkConfig=u.exact(u.partial({label:a.StringOrNull,useAsTitle:u.boolean,placeholder:u.string,select:(0,o.withFallback)(u.union([u.literal("media"),u.literal("document"),u.literal("web"),u.null,]),null),customtypes:u.readonlyArray(u.string),masks:l,tags:l,allowTargetBlank:u.boolean})),e.Link=u.exact(u.intersection([u.type({type:u.literal(e.LinkFieldType)}),u.partial({fieldset:a.StringOrNull,config:e.LinkConfig}),]))},56966:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NestableWidget=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(50541),o=n(247),a=n(33006),c=n(26493),f=n(91301),l=n(2507),s=n(22262),p=n(45576),d=n(99336),h=n(86422),m=n(9591),v=n(64753),y=n(3448),_=n(69809),b=n(82135);e.NestableWidget=i.union([o.Color,u.BooleanField,c.Embed,f.GeoPoint,a.Date,d.Number,h.Range,m.RichText,v.Select,y.Separator,_.Text,b.Timestamp,p.Link,l.Image,s.IntegrationField,])},99336:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Number=e.NumberConfig=e.NumberFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(59054),o=n(49664);e.NumberFieldType="Number",e.NumberConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,min:i.union([i.number,u.NumberFromString]),max:i.union([i.number,u.NumberFromString]),step:i.union([i.number,u.NumberFromString])})),e.Number=i.exact(i.intersection([i.type({type:i.literal(e.NumberFieldType)}),i.partial({fieldset:o.StringOrNull,config:e.NumberConfig}),]))},86422:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=e.RangeConfig=e.RangeFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(59054),o=n(49664);e.RangeFieldType="Range",e.RangeConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,min:i.union([i.number,u.NumberFromString]),max:i.union([i.number,u.NumberFromString]),step:i.union([i.number,u.NumberFromString])})),e.Range=i.exact(i.intersection([i.type({type:i.literal(e.RangeFieldType)}),i.partial({fieldset:o.StringOrNull,config:e.RangeConfig}),]))},9591:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RichText=e.RichTextConfig=e.RichTextNodeTypeCodec=e.RichTextNodeType=e.DEFAULT_OPTION=e.RichTextFieldType=void 0;let r=n(78948),i=n(9554),u=n(87412),o=n(14632),a=r.__importStar(n(87830)),c=n(49664),f=r.__importDefault(n(14419));e.RichTextFieldType="StructuredText",e.DEFAULT_OPTION="paragraph",e.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"},e.RichTextNodeTypeCodec=a.keyof({[e.RichTextNodeType.heading1]:null,[e.RichTextNodeType.heading2]:null,[e.RichTextNodeType.heading3]:null,[e.RichTextNodeType.heading4]:null,[e.RichTextNodeType.heading5]:null,[e.RichTextNodeType.heading6]:null,[e.RichTextNodeType.paragraph]:null,[e.RichTextNodeType.strong]:null,[e.RichTextNodeType.em]:null,[e.RichTextNodeType.preformatted]:null,[e.RichTextNodeType.hyperlink]:null,[e.RichTextNodeType.image]:null,[e.RichTextNodeType.embed]:null,[e.RichTextNodeType.list]:null,[e.RichTextNodeType.orderedList]:null,[e.RichTextNodeType.rtl]:null});let l=new a.Type("RichTextOptions",t=>"string"==typeof t,t=>(0,o.pipe)(a.union([a.string,a.null]).decode(t),i.either.map(t=>{if(!t)return e.DEFAULT_OPTION;let n=t.split(",").map(t=>t.trim()),r=n.filter(t=>(0,u.getOrElseW)(()=>void 0)(e.RichTextNodeTypeCodec.decode(t)));return r.length?r.join(","):e.DEFAULT_OPTION})),t=>t),s=t=>{if(!t)return a.success([])},p=t=>{if(t instanceof Object){if(!Object.entries(t).length)return a.success([]);if(t[""])return a.success(t[""].map(t=>t.name));let e=Object.entries(t).reduce((t,[,e])=>t.concat(e.map(t=>t.name)),[]).filter(Boolean);return a.success(e)}},d=t=>{if(t instanceof Array){let e=t.reduce((t,e)=>t&&"string"==typeof e,!0);if(e)return a.success(t)}},h=t=>{if("string"==typeof t)return a.success([t])},m=new a.Type("RichTextLabels",t=>t instanceof Array,(t,e)=>{let n=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,o.pipe)(a.union([n,r,a.string,a.null]).decode(t),i.either.chain(n=>s(n)||d(n)||p(n)||h(n)||a.failure(t,e)))},t=>t);e.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:m,allowTargetBlank:a.boolean})),e.RichText=a.exact(a.intersection([a.type({type:a.literal(e.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:e.RichTextConfig}),]))},64753:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Select=e.SelectConfig=e.SelectFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.SelectFieldType="Select",e.SelectConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,u.StringFromNumber,u.StringFromBoolean]))})),e.Select=i.exact(i.intersection([i.type({type:i.literal(e.SelectFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.SelectConfig}),]))},3448:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Separator=e.SeparatorConfig=e.SeparatorFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.SeparatorFieldType="Separator",e.SeparatorConfig=i.exact(i.partial({label:u.StringOrNull})),e.Separator=i.exact(i.intersection([i.type({type:i.literal(e.SeparatorFieldType)}),i.partial({config:e.SeparatorConfig}),]))},69809:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.TextConfig=e.TextFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.TextFieldType="Text",e.TextConfig=i.exact(i.partial({label:u.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),e.Text=i.exact(i.intersection([i.type({type:i.literal(e.TextFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.TextConfig}),]))},82135:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=e.TimestampConfig=e.TimestampFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(49664);e.TimestampFieldType="Timestamp",e.TimestampConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default:i.string})),e.Timestamp=i.exact(i.intersection([i.type({type:i.literal(e.TimestampFieldType)}),i.partial({fieldset:u.StringOrNull,config:e.TimestampConfig}),]))},82250:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(50541),e),r.__exportStar(n(247),e),r.__exportStar(n(33006),e),r.__exportStar(n(26493),e),r.__exportStar(n(91301),e),r.__exportStar(n(2507),e),r.__exportStar(n(22262),e),r.__exportStar(n(45576),e),r.__exportStar(n(56966),e),r.__exportStar(n(99336),e),r.__exportStar(n(86422),e),r.__exportStar(n(9591),e),r.__exportStar(n(64753),e),r.__exportStar(n(3448),e),r.__exportStar(n(69809),e),r.__exportStar(n(82135),e)},14419:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(87412),u=r.__importStar(n(87830)),o=n(11621),a=n(49664),c=new u.Type("SideConstraints",t=>!t||"number"==typeof t,(t,e)=>i.either.chain(u.union([u.literal("auto"),u.literal(""),u.Int,o.IntFromString,a.IntFromNumber,a.IntFromPixels,u.null,]).validate(t,e),t=>"auto"===t||""===t?u.success(null):u.success(t)),t=>t),f=u.partial({width:c,height:c});e.default=f},25852:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ImageConstraint=void 0;var i=n(14419);Object.defineProperty(e,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},87190:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositeSlice=e.CompositeSliceConfig=e.CompositeSliceType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(88966),o=n(49664),a=n(56966);e.CompositeSliceType="Slice",e.CompositeSliceConfig=i.exact(i.partial({label:o.StringOrNull})),e.CompositeSlice=i.exact(i.intersection([i.type({type:i.literal(e.CompositeSliceType)}),i.partial({fieldset:o.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(u.WidgetKey,a.NestableWidget),repeat:i.record(u.WidgetKey,a.NestableWidget),config:e.CompositeSliceConfig}),]))},41379:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LegacySlice=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(82051),o=n(56966);e.LegacySlice=i.union([o.NestableWidget,u.Group])},14881:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedSlice=e.SharedSliceType=e.Variation=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(69624),o=n(88966),a=n(56966);e.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,u.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(o.WidgetKey,a.NestableWidget),items:i.record(o.WidgetKey,a.NestableWidget)}),])),e.SharedSliceType="SharedSlice",e.SharedSlice=i.exact(i.intersection([i.type({id:i.string,type:i.literal(e.SharedSliceType),name:i.string,variations:i.readonlyArray(e.Variation)}),i.partial({description:i.string}),]))},15669:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedSliceRef=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(14881);e.SharedSliceRef=i.exact(i.type({type:i.literal(u.SharedSliceType)}))},304:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},14149:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slices=e.DynamicSlices=e.StaticSlices=e.slicesReader=e.DynamicSlicesConfig=e.StaticSlicesConfig=e.slicesConfigReader=e.SlicesLabels=e.SlicesFieldType=e.LegacySlicesFieldType=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(88966),o=n(49664),a=n(87190),c=n(41379),f=n(14881),l=n(15669);function s(t){return i.exact(i.partial({label:o.StringOrNull,labels:e.SlicesLabels,choices:i.record(u.WidgetKey,i.union([c.LegacySlice,a.CompositeSlice,t]))}))}e.LegacySlicesFieldType="Choice",e.SlicesFieldType="Slices",e.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,]),e.slicesConfigReader=s,e.StaticSlicesConfig=s(f.SharedSlice),e.DynamicSlicesConfig=s(l.SharedSliceRef);let p={toStatic(t,e){let n=Object.entries(t.choices||{}).reduce((t,[n,r])=>{if("SharedSlice"!==r.type)return{...t,[n]:r};{let i=e.get(n);return i?{...t,[n]:i}:t}},{});return{...t,choices:n}}};function d(t){return i.exact(i.intersection([i.type({type:i.keyof({[e.SlicesFieldType]:null,[e.LegacySlicesFieldType]:null})}),i.partial({fieldset:o.StringOrNull,config:t}),]))}e.slicesReader=d,e.StaticSlices=d(e.StaticSlicesConfig),e.DynamicSlices=d(e.DynamicSlicesConfig),e.Slices={toStatic:(t,e)=>t.config?{...t,config:p.toStatic(t.config,e)}:t}},73961:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlicesTypes=void 0;let r=n(78948),i=r.__importStar(n(87830)),u=n(87190),o=n(14881);e.SlicesTypes=i.keyof({[u.CompositeSliceType]:null,[o.SharedSliceType]:null})},27035:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948);r.__exportStar(n(87190),e),r.__exportStar(n(41379),e),r.__exportStar(n(14881),e),r.__exportStar(n(15669),e),r.__exportStar(n(304),e),r.__exportStar(n(14149),e),r.__exportStar(n(73961),e)},71551:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toRecord=void 0,e.toRecord=function(t,e){return t.reduce((t,n)=>{let r=e(n);return{...t,[r]:n}},{})}},73147:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withOptionals=e.isNotEmpty=e.zipObjects=void 0,e.zipObjects=function(t,e){let n=[...new Set(Object.keys(t||{}).concat(Object.keys(e||{}))),];return n.reduce((n,r)=>{let i=null==t?void 0:t[r],u=null==e?void 0:e[r];return{...n,[r]:{left:i,right:u}}},{})},e.isNotEmpty=function(t){return Boolean(Object.keys(t).length)},e.withOptionals=function(t,e){return{...t,...e.reduce((t,[e,n])=>n?{...t,[e]:n}:t,{})}}},68396:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Objects=e.Arrays=void 0;let r=n(78948);e.Arrays=r.__importStar(n(71551)),e.Objects=r.__importStar(n(73147))},76088:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(81878),u=n(42275),o=r.__importStar(n(87830));e.default=new o.Type("dateFromString",t=>t instanceof Date,(t,e)=>(0,u.pipe)(o.string.validate(t,e),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?o.failure(t,e):o.success(r)})),t=>t.toISOString())},49848:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(81878),u=n(42275),o=r.__importStar(n(87830));e.default=new o.Type("dateFromStringOrNumber",t=>t instanceof Date,(t,e)=>(0,u.pipe)(o.union([o.number,o.string]).validate(t,e),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?o.failure(t,e):o.success(r)})),t=>t)},99451:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(81878),u=n(42275),o=r.__importStar(n(87830));e.default=new o.Type("dateFromTsMs",t=>t instanceof Date,(t,e)=>(0,u.pipe)(o.number.validate(t,e),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?o.failure(t,e):o.success(r)})),t=>t.getTime())},79107:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(81878),u=n(42275),o=r.__importStar(n(87830));e.default=new o.Type("IntFromNumber",o.Int.is,(t,e)=>(0,u.pipe)(o.number.validate(t,e),(0,i.chain)(t=>o.Int.is(t)?o.success(t):o.success(Math.round(t)))),o.Int.encode)},71112:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(81878),u=n(42275),o=r.__importStar(n(87830)),a=/^([0-9]+)px$/;e.default=new o.Type("IntFromPixels",o.Int.is,(t,e)=>(0,u.pipe)(o.string.validate(t,e),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return o.failure(t,e);let i=parseInt(r[1]);return o.success(i)}catch{return o.failure(t,e)}})),String)},4898:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=r.__importStar(n(87830)),u=n(55242);e.default=(0,u.refineType)(i.string,"nonEmptyString",t=>t.trim().length>0)},28881:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(81878),u=n(42275),o=n(87830),a=r.__importDefault(n(82395));e.default=new o.Type("nonEmptyStringOrNull",t=>"string"==typeof t||null===t,(t,e)=>(0,u.pipe)(a.default.validate(t,e),(0,i.chain)(t=>"string"==typeof t&&t.length>0?(0,o.success)(t):(0,o.success)(null))),t=>t)},46567:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=r.__importStar(n(87830)),u=n(55242);e.default=(0,u.nullable)(i.number)},23517:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(81878),u=n(42275),o=r.__importStar(n(87830));e.default=new o.Type("StringFromInt",o.string.is,(t,e)=>(0,u.pipe)(o.boolean.validate(t,e),(0,i.chain)(t=>o.success(t.toString()))),t=>t)},65259:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(81878),u=n(42275),o=r.__importStar(n(87830));e.default=new o.Type("StringFromInt",o.string.is,(t,e)=>(0,u.pipe)(o.number.validate(t,e),(0,i.chain)(t=>o.success(t.toString()))),t=>t)},82395:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=r.__importStar(n(87830)),u=n(55242);e.default=(0,u.nullable)(i.string)},55746:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let r=n(78948),i=n(81878),u=n(42275),o=r.__importStar(n(87830));e.default=new o.Type("TrimmedString",o.string.is,(t,e)=>(0,u.pipe)(o.string.validate(t,e),(0,i.chain)(t=>o.success(function(t){let e=0;for(;e<t.length&&t[e]<=" ";)e++;let n=t.length;for(;e<n&&t[n-1]<=" ";)n--;return t.substring(e,n)}(t)))),t=>t)},55242:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addType=e.isEmpty=e.objectToMap=e.grouped=e.formatDate=e.formatDateTime=e.filterDouble=e.refineType=e.nullable=void 0;let r=n(78948),i=n(9554),u=n(42275),o=r.__importStar(n(87830)),a=n(47361);e.nullable=function(t){return o.union([t,o.null,o.undefined])},e.refineType=function(t,e,n){return new o.Type(e,t.is,(e,r)=>(0,u.pipe)(t.validate(e,r),i.either.chain(t=>n(t)?o.success(t):o.failure(e,r))),t.encode)},e.filterDouble=function(t){if(""===t)return null;let e=Number(t);return Number.isNaN(e)?null:e},e.formatDateTime=function(t){return t.toISOString().replace(/\.\d{3}Z$/,"+0000")},e.formatDate=function(t){return t.toISOString().replace(/T.*/,"")},e.grouped=function(t,e){return t.reduce((t,n,r)=>(r%e==0?t.push([n]):t[Math.floor(r/e)].push(n),t),[])},e.objectToMap=function(t){return new Map(Object.entries(t))},e.isEmpty=function(t){for(let e in t)return!1;return!0},e.addType=function(t,e){return(0,a.mapOutput)(t,t=>({...t,__TYPE__:e}))}},49664:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringOrNull=e.StringFromNumber=e.StringFromBoolean=e.NumberOrNull=e.NonEmptyStringOrNull=e.NonEmptyString=e.IntFromPixels=e.IntFromNumber=e.Function=e.DateFromTsMs=e.DateFromStringOrNumber=e.DateFromString=void 0;let r=n(78948);var i=n(76088);Object.defineProperty(e,"DateFromString",{enumerable:!0,get:function(){return r.__importDefault(i).default}});var u=n(49848);Object.defineProperty(e,"DateFromStringOrNumber",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var o=n(99451);Object.defineProperty(e,"DateFromTsMs",{enumerable:!0,get:function(){return r.__importDefault(o).default}}),e.Function=r.__importStar(n(55242));var a=n(79107);Object.defineProperty(e,"IntFromNumber",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var c=n(71112);Object.defineProperty(e,"IntFromPixels",{enumerable:!0,get:function(){return r.__importDefault(c).default}});var f=n(4898);Object.defineProperty(e,"NonEmptyString",{enumerable:!0,get:function(){return r.__importDefault(f).default}});var l=n(28881);Object.defineProperty(e,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var s=n(46567);Object.defineProperty(e,"NumberOrNull",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var p=n(23517);Object.defineProperty(e,"StringFromBoolean",{enumerable:!0,get:function(){return r.__importDefault(p).default}});var d=n(65259);Object.defineProperty(e,"StringFromNumber",{enumerable:!0,get:function(){return r.__importDefault(d).default}});var h=n(82395);Object.defineProperty(e,"StringOrNull",{enumerable:!0,get:function(){return r.__importDefault(h).default}})},78631:function(t,e,n){"use strict";n.r(e),n.d(e,{NIL:function(){return C},parse:function(){return v},stringify:function(){return p},v1:function(){return m},v3:function(){return R},v4:function(){return O},v5:function(){return k},validate:function(){return f},version:function(){return P}});var r,i,u,o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var c=/^(?:[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,f=function(t){return"string"==typeof t&&c.test(t)},l=[],s=0;s<256;++s)l.push((s+256).toString(16).substr(1));var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();if(!f(n))throw TypeError("Stringified UUID is invalid");return n},d=0,h=0,m=function(t,e,n){var r=e&&n||0,o=e||Array(16),c=(t=t||{}).node||i,f=void 0!==t.clockseq?t.clockseq:u;if(null==c||null==f){var l=t.random||(t.rng||a)();null==c&&(c=i=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==f&&(f=u=(l[6]<<8|l[7])&16383)}var s=void 0!==t.msecs?t.msecs:Date.now(),m=void 0!==t.nsecs?t.nsecs:h+1,v=s-d+(m-h)/1e4;if(v<0&&void 0===t.clockseq&&(f=f+1&16383),(v<0||s>d)&&void 0===t.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");d=s,h=m,u=f;var y=((268435455&(s+=122192928e5))*1e4+m)%4294967296;o[r++]=y>>>24&255,o[r++]=y>>>16&255,o[r++]=y>>>8&255,o[r++]=255&y;var _=s/4294967296*1e4&268435455;o[r++]=_>>>8&255,o[r++]=255&_,o[r++]=_>>>24&15|16,o[r++]=_>>>16&255,o[r++]=f>>>8|128,o[r++]=255&f;for(var b=0;b<6;++b)o[r+b]=c[b];return e||p(o)},v=function(t){if(!f(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};function y(t,e,n){function r(t,r,i,u){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof r&&(r=v(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+t.length);if(o.set(r),o.set(t,r.length),(o=n(o))[6]=15&o[6]|e,o[8]=63&o[8]|128,i){u=u||0;for(var a=0;a<16;++a)i[u+a]=o[a];return i}return p(o)}try{r.name=t}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function _(t){return(t+64>>>9<<4)+14+1}function b(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function T(t,e,n,r,i,u){var o,a;return b((o=b(b(e,t),b(r,u)))<<i|o>>>32-i,n)}function I(t,e,n,r,i,u,o){return T(e&n|~e&r,t,e,i,u,o)}function S(t,e,n,r,i,u,o){return T(e&r|n&~r,t,e,i,u,o)}function x(t,e,n,r,i,u,o){return T(e^n^r,t,e,i,u,o)}function w(t,e,n,r,i,u,o){return T(n^(e|~r),t,e,i,u,o)}var R=y("v3",48,function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){for(var e=[],n=32*t.length,r="0123456789abcdef",i=0;i<n;i+=8){var u=t[i>>5]>>>i%32&255,o=parseInt(r.charAt(u>>>4&15)+r.charAt(15&u),16);e.push(o)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[_(e)-1]=e;for(var n=1732584193,r=-271733879,i=-1732584194,u=271733878,o=0;o<t.length;o+=16){var a=n,c=r,f=i,l=u;n=I(n,r,i,u,t[o],7,-680876936),u=I(u,n,r,i,t[o+1],12,-389564586),i=I(i,u,n,r,t[o+2],17,606105819),r=I(r,i,u,n,t[o+3],22,-1044525330),n=I(n,r,i,u,t[o+4],7,-176418897),u=I(u,n,r,i,t[o+5],12,1200080426),i=I(i,u,n,r,t[o+6],17,-1473231341),r=I(r,i,u,n,t[o+7],22,-45705983),n=I(n,r,i,u,t[o+8],7,1770035416),u=I(u,n,r,i,t[o+9],12,-1958414417),i=I(i,u,n,r,t[o+10],17,-42063),r=I(r,i,u,n,t[o+11],22,-1990404162),n=I(n,r,i,u,t[o+12],7,1804603682),u=I(u,n,r,i,t[o+13],12,-40341101),i=I(i,u,n,r,t[o+14],17,-1502002290),r=I(r,i,u,n,t[o+15],22,1236535329),n=S(n,r,i,u,t[o+1],5,-165796510),u=S(u,n,r,i,t[o+6],9,-1069501632),i=S(i,u,n,r,t[o+11],14,643717713),r=S(r,i,u,n,t[o],20,-373897302),n=S(n,r,i,u,t[o+5],5,-701558691),u=S(u,n,r,i,t[o+10],9,38016083),i=S(i,u,n,r,t[o+15],14,-660478335),r=S(r,i,u,n,t[o+4],20,-405537848),n=S(n,r,i,u,t[o+9],5,568446438),u=S(u,n,r,i,t[o+14],9,-1019803690),i=S(i,u,n,r,t[o+3],14,-187363961),r=S(r,i,u,n,t[o+8],20,1163531501),n=S(n,r,i,u,t[o+13],5,-1444681467),u=S(u,n,r,i,t[o+2],9,-51403784),i=S(i,u,n,r,t[o+7],14,1735328473),r=S(r,i,u,n,t[o+12],20,-1926607734),n=x(n,r,i,u,t[o+5],4,-378558),u=x(u,n,r,i,t[o+8],11,-2022574463),i=x(i,u,n,r,t[o+11],16,1839030562),r=x(r,i,u,n,t[o+14],23,-35309556),n=x(n,r,i,u,t[o+1],4,-1530992060),u=x(u,n,r,i,t[o+4],11,1272893353),i=x(i,u,n,r,t[o+7],16,-155497632),r=x(r,i,u,n,t[o+10],23,-1094730640),n=x(n,r,i,u,t[o+13],4,681279174),u=x(u,n,r,i,t[o],11,-358537222),i=x(i,u,n,r,t[o+3],16,-722521979),r=x(r,i,u,n,t[o+6],23,76029189),n=x(n,r,i,u,t[o+9],4,-640364487),u=x(u,n,r,i,t[o+12],11,-421815835),i=x(i,u,n,r,t[o+15],16,530742520),r=x(r,i,u,n,t[o+2],23,-995338651),n=w(n,r,i,u,t[o],6,-198630844),u=w(u,n,r,i,t[o+7],10,1126891415),i=w(i,u,n,r,t[o+14],15,-1416354905),r=w(r,i,u,n,t[o+5],21,-57434055),n=w(n,r,i,u,t[o+12],6,1700485571),u=w(u,n,r,i,t[o+3],10,-1894986606),i=w(i,u,n,r,t[o+10],15,-1051523),r=w(r,i,u,n,t[o+1],21,-2054922799),n=w(n,r,i,u,t[o+8],6,1873313359),u=w(u,n,r,i,t[o+15],10,-30611744),i=w(i,u,n,r,t[o+6],15,-1560198380),r=w(r,i,u,n,t[o+13],21,1309151649),n=w(n,r,i,u,t[o+4],6,-145523070),u=w(u,n,r,i,t[o+11],10,-1120210379),i=w(i,u,n,r,t[o+2],15,718787259),r=w(r,i,u,n,t[o+9],21,-343485551),n=b(n,a),r=b(r,c),i=b(i,f),u=b(u,l)}return[n,r,i,u]}(function(t){if(0===t.length)return[];for(var e=8*t.length,n=new Uint32Array(_(e)),r=0;r<e;r+=8)n[r>>5]|=(255&t[r/8])<<r%32;return n}(t),8*t.length))}),O=function(t,e,n){var r=(t=t||{}).random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return p(r)};function M(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:case 3:return e^n^r;case 2:return e&n^e&r^n&r}}function E(t,e){return t<<e|t>>>32-e}var k=y("v5",80,function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i<r.length;++i)t.push(r.charCodeAt(i))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var u=Math.ceil((t.length/4+2)/16),o=Array(u),a=0;a<u;++a){for(var c=new Uint32Array(16),f=0;f<16;++f)c[f]=t[64*a+4*f]<<24|t[64*a+4*f+1]<<16|t[64*a+4*f+2]<<8|t[64*a+4*f+3];o[a]=c}o[u-1][14]=(t.length-1)*8/4294967296,o[u-1][14]=Math.floor(o[u-1][14]),o[u-1][15]=(t.length-1)*8&4294967295;for(var l=0;l<u;++l){for(var s=new Uint32Array(80),p=0;p<16;++p)s[p]=o[l][p];for(var d=16;d<80;++d)s[d]=E(s[d-3]^s[d-8]^s[d-14]^s[d-16],1);for(var h=n[0],m=n[1],v=n[2],y=n[3],_=n[4],b=0;b<80;++b){var T=Math.floor(b/20),I=E(h,5)+M(T,m,v,y)+_+e[T]+s[b]>>>0;_=y,y=v,v=E(m,30)>>>0,m=h,h=I}n[0]=n[0]+h>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+_>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),C="00000000-0000-0000-0000-000000000000",P=function(t){if(!f(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},34821:function(t,e){"use strict";var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,(r=n=e.ElementType||(e.ElementType={})).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype",e.isTag=function(t){return t.type===n.Tag||t.type===n.Script||t.type===n.Style},e.Root=n.Root,e.Text=n.Text,e.Directive=n.Directive,e.Comment=n.Comment,e.Script=n.Script,e.Style=n.Style,e.Tag=n.Tag,e.CDATA=n.CDATA,e.Doctype=n.Doctype},79959:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var u=n(34821),o=n(75538);i(n(75538),e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function t(t,e,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=a),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:a,this.elementCB=null!=n?n:null}return t.prototype.onparserinit=function(t){this.parser=t},t.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},t.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},t.prototype.onopentag=function(t,e){var n=this.options.xmlMode?u.ElementType.Tag:void 0,r=new o.Element(t,e,void 0,n);this.addNode(r),this.tagStack.push(r)},t.prototype.ontext=function(t){var e=this.lastNode;if(e&&e.type===u.ElementType.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{var n=new o.Text(t);this.addNode(n),this.lastNode=n}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===u.ElementType.Comment){this.lastNode.data+=t;return}var e=new o.Comment(t);this.addNode(e),this.lastNode=e},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new o.Text(""),e=new o.CDATA([t]);this.addNode(e),t.parent=e,this.lastNode=t},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var n=new o.ProcessingInstruction(t,e);this.addNode(n)},t.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&(t.prev=n,n.next=t),t.parent=e,this.lastNode=null},t}();e.DomHandler=c,e.default=c},75538:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.cloneNode=e.hasChildren=e.isDocument=e.isDirective=e.isComment=e.isText=e.isCDATA=e.isTag=e.Element=e.Document=e.CDATA=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var o=n(34821),a=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(t){return void 0===t&&(t=!1),S(this,t)},t}();e.Node=a;var c=function(t){function e(e){var n=t.call(this)||this;return n.data=e,n}return i(e,t),Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),e}(a);e.DataNode=c;var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=o.ElementType.Text,e}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(c);e.Text=f;var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=o.ElementType.Comment,e}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(c);e.Comment=l;var s=function(t){function e(e,n){var r=t.call(this,n)||this;return r.name=e,r.type=o.ElementType.Directive,r}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(c);e.ProcessingInstruction=s;var p=function(t){function e(e){var n=t.call(this)||this;return n.children=e,n}return i(e,t),Object.defineProperty(e.prototype,"firstChild",{get:function(){var t;return null!==(t=this.children[0])&&void 0!==t?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(a);e.NodeWithChildren=p;var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=o.ElementType.CDATA,e}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(p);e.CDATA=d;var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=o.ElementType.Root,e}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(p);e.Document=h;var m=function(t){function e(e,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===e?o.ElementType.Script:"style"===e?o.ElementType.Style:o.ElementType.Tag);var u=t.call(this,r)||this;return u.name=e,u.attribs=n,u.type=i,u}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(e){var n,r;return{name:e,value:t.attribs[e],namespace:null===(n=t["x-attribsNamespace"])||void 0===n?void 0:n[e],prefix:null===(r=t["x-attribsPrefix"])||void 0===r?void 0:r[e]}})},enumerable:!1,configurable:!0}),e}(p);function v(t){return(0,o.isTag)(t)}function y(t){return t.type===o.ElementType.CDATA}function _(t){return t.type===o.ElementType.Text}function b(t){return t.type===o.ElementType.Comment}function T(t){return t.type===o.ElementType.Directive}function I(t){return t.type===o.ElementType.Root}function S(t,e){if(void 0===e&&(e=!1),_(t))n=new f(t.data);else if(b(t))n=new l(t.data);else if(v(t)){var n,r=e?x(t.children):[],i=new m(t.name,u({},t.attribs),r);r.forEach(function(t){return t.parent=i}),null!=t.namespace&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=u({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=u({},t["x-attribsPrefix"])),n=i}else if(y(t)){var r=e?x(t.children):[],o=new d(r);r.forEach(function(t){return t.parent=o}),n=o}else if(I(t)){var r=e?x(t.children):[],a=new h(r);r.forEach(function(t){return t.parent=a}),t["x-mode"]&&(a["x-mode"]=t["x-mode"]),n=a}else if(T(t)){var c=new s(t.name,t.data);null!=t["x-name"]&&(c["x-name"]=t["x-name"],c["x-publicId"]=t["x-publicId"],c["x-systemId"]=t["x-systemId"]),n=c}else throw Error("Not implemented yet: ".concat(t.type));return n.startIndex=t.startIndex,n.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function x(t){for(var e=t.map(function(t){return S(t,!0)}),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}e.Element=m,e.isTag=v,e.isCDATA=y,e.isText=_,e.isComment=b,e.isDirective=T,e.isDocument=I,e.hasChildren=function(t){return Object.prototype.hasOwnProperty.call(t,"children")},e.cloneNode=S},46111:function(t,e,n){"use strict";n.r(e),n.d(e,{getApplicativeComposition:function(){return a},getApplicativeMonoid:function(){return o}});var r=n(42925),i=n(42275),u=n(67560);function o(t){var e=(0,r.getApplySemigroup)(t);return function(n){return{concat:e(n).concat,empty:t.of(n.empty)}}}function a(t,e){var n=(0,u.getFunctorComposition)(t,e).map,o=(0,r.ap)(t,e);return{map:n,of:function(n){return t.of(e.of(n))},ap:function(t,e){return(0,i.pipe)(t,o(e))}}}},42925:function(t,e,n){"use strict";n.r(e),n.d(e,{ap:function(){return u},apFirst:function(){return o},apS:function(){return c},apSecond:function(){return a},getApplySemigroup:function(){return f},sequenceS:function(){return d},sequenceT:function(){return p}});var r=n(42275),i=n(97963);function u(t,e){return function(n){return function(r){return t.ap(t.map(r,function(t){return function(n){return e.ap(t,n)}}),n)}}}function o(t){return function(e){return function(n){return t.ap(t.map(n,function(t){return function(){return t}}),e)}}}function a(t){return function(e){return function(n){return t.ap(t.map(n,function(){return function(t){return t}}),e)}}}function c(t){return function(e,n){return function(r){return t.ap(t.map(r,function(t){return function(n){var r;return Object.assign({},t,((r={})[e]=n,r))}}),n)}}}function f(t){return function(e){return{concat:function(n,r){return t.ap(t.map(n,function(t){return function(n){return e.concat(t,n)}}),r)}}}}function l(t,e,n){return function(r){for(var i=Array(n.length+1),u=0;u<n.length;u++)i[u]=n[u];return i[n.length]=r,0===e?t.apply(null,i):l(t,e-1,i)}}var s={1:function(t){return[t]},2:function(t){return function(e){return[t,e]}},3:function(t){return function(e){return function(n){return[t,e,n]}}},4:function(t){return function(e){return function(n){return function(r){return[t,e,n,r]}}}},5:function(t){return function(e){return function(n){return function(r){return function(i){return[t,e,n,r,i]}}}}}};function p(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var u,o=e.length,a=(i.e$.call(s,o)||(s[o]=l(r.tuple,o-1,[])),s[o]),c=t.map(e[0],a),f=1;f<o;f++)c=t.ap(c,e[f]);return c}}function d(t){return function(e){for(var n=Object.keys(e),r=n.length,i=function(t){var e=t.length;switch(e){case 1:return function(e){var n;return(n={})[t[0]]=e,n};case 2:return function(e){return function(n){var r;return(r={})[t[0]]=e,r[t[1]]=n,r}};case 3:return function(e){return function(n){return function(r){var i;return(i={})[t[0]]=e,i[t[1]]=n,i[t[2]]=r,i}}};case 4:return function(e){return function(n){return function(r){return function(i){var u;return(u={})[t[0]]=e,u[t[1]]=n,u[t[2]]=r,u[t[3]]=i,u}}}};case 5:return function(e){return function(n){return function(r){return function(i){return function(u){var o;return(o={})[t[0]]=e,o[t[1]]=n,o[t[2]]=r,o[t[3]]=i,o[t[4]]=u,o}}}}};default:return l(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},u=0;u<e;u++)i[t[u]]=n[u];return i},e-1,[])}}(n),u=t.map(e[n[0]],i),o=1;o<r;o++)u=t.ap(u,e[n[o]]);return u}}},1358:function(t,e,n){"use strict";n.r(e),n.d(e,{Alt:function(){return eG},Alternative:function(){return eH},Applicative:function(){return ej},Apply:function(){return eA},Chain:function(){return eq},ChainRecBreadthFirst:function(){return e6},ChainRecDepthFirst:function(){return e4},Compactable:function(){return e$},Do:function(){return nl},Extend:function(){return eZ},Filterable:function(){return eX},FilterableWithIndex:function(){return eJ},Foldable:function(){return eQ},FoldableWithIndex:function(){return e0},FromEither:function(){return ne},Functor:function(){return eW},FunctorWithIndex:function(){return eN},Monad:function(){return eY},Pointed:function(){return eF},Traversable:function(){return e1},TraversableWithIndex:function(){return e8},URI:function(){return eS},Unfoldable:function(){return eK},Witherable:function(){return e3},Zero:function(){return ez},alt:function(){return ea},altW:function(){return eo},ap:function(){return t2},apFirst:function(){return eL},apS:function(){return nh},apSecond:function(){return eU},append:function(){return _},appendW:function(){return b},array:function(){return nT},bind:function(){return nd},bindTo:function(){return ns},chain:function(){return nm},chainFirst:function(){return eB},chainRecBreadthFirst:function(){return e9},chainRecDepthFirst:function(){return e5},chainWithIndex:function(){return D},chop:function(){return tT},chunksOf:function(){return tS},compact:function(){return t6},comprehension:function(){return tw},concat:function(){return tO},concatW:function(){return tR},cons:function(){return ny},copy:function(){return ti},deleteAt:function(){return ta},difference:function(){return tk},dropLeft:function(){return Z},dropLeftWhile:function(){return X},dropRight:function(){return $},duplicate:function(){return el},elem:function(){return ty},empty:function(){return ng},every:function(){return no},exists:function(){return nc},extend:function(){return ef},filter:function(){return ee},filterE:function(){return nt},filterMap:function(){return t9},filterMapWithIndex:function(){return t4},filterWithIndex:function(){return ec},findFirst:function(){return Q},findFirstMap:function(){return tt},findIndex:function(){return J},findLast:function(){return te},findLastIndex:function(){return tr},findLastMap:function(){return tn},flap:function(){return eD},flatMap:function(){return t7},flatten:function(){return t3},foldLeft:function(){return k},foldMap:function(){return es},foldMapWithIndex:function(){return ep},foldRight:function(){return W},fromEither:function(){return w},fromEitherK:function(){return nn},fromOption:function(){return x},fromOptionK:function(){return tx},fromPredicate:function(){return S},getDifferenceMagma:function(){return eP},getEq:function(){return eO},getIntersectionSemigroup:function(){return eC},getMonoid:function(){return eR},getOrd:function(){return eM},getSemigroup:function(){return ew},getShow:function(){return ex},getUnionMonoid:function(){return ek},getUnionSemigroup:function(){return eE},guard:function(){return eV},head:function(){return j},init:function(){return Y},insertAt:function(){return tu},intercalate:function(){return nf},intersection:function(){return tE},intersperse:function(){return tv},isEmpty:function(){return h},isNonEmpty:function(){return m},isOutOfBound:function(){return L},last:function(){return q},lefts:function(){return ts},let:function(){return np},lookup:function(){return U},makeBy:function(){return T},map:function(){return t8},mapWithIndex:function(){return t5},match:function(){return O},matchLeft:function(){return E},matchLeftW:function(){return M},matchRight:function(){return P},matchRightW:function(){return C},matchW:function(){return R},modifyAt:function(){return tc},of:function(){return t0},partition:function(){return en},partitionMap:function(){return ei},partitionMapWithIndex:function(){return eu},partitionWithIndex:function(){return er},prepend:function(){return v},prependAll:function(){return tm},prependToAll:function(){return nb},prependW:function(){return y},range:function(){return nv},reduce:function(){return ed},reduceRight:function(){return em},reduceRightWithIndex:function(){return ev},reduceWithIndex:function(){return eh},replicate:function(){return I},reverse:function(){return tf},rights:function(){return tl},rotate:function(){return tg},scanLeft:function(){return F},scanRight:function(){return N},separate:function(){return et},sequence:function(){return ey},size:function(){return A},snoc:function(){return n_},some:function(){return na},sort:function(){return tp},sortBy:function(){return tb},spanLeft:function(){return H},splitAt:function(){return tI},tail:function(){return B},takeLeft:function(){return K},takeLeftWhile:function(){return z},takeRight:function(){return G},traverse:function(){return eg},traverseWithIndex:function(){return e_},unfold:function(){return eI},union:function(){return tM},uniq:function(){return t_},unsafeDeleteAt:function(){return nu},unsafeInsertAt:function(){return nr},unsafeUpdateAt:function(){return ni},unzip:function(){return th},updateAt:function(){return to},wilt:function(){return eT},wither:function(){return eb},zero:function(){return t1},zip:function(){return function t(e,n){return void 0===n?function(n){return t(n,e)}:td(e,n,function(t,e){return[t,e]})}},zipWith:function(){return td}});var r=n(42925),i=n(88543),u=n(25162),o=n(42275),a=n(67560),c=n(97963),f=n(43586),l=n(31583),s=n(34219),p=n(76511),d=n(28957),h=function(t){return 0===t.length},m=f.isNonEmpty,v=f.prepend,y=f.prependW,_=f.append,b=f.appendW,T=function(t,e){return t<=0?[]:f.makeBy(e)(t)},I=function(t,e){return T(t,function(){return e})};function S(t){return function(e){return t(e)?[e]:[]}}var x=function(t){return c.Wi(t)?[]:[t.value]},w=function(t){return c.nM(t)?[]:[t.right]},R=function(t,e){return function(n){return m(n)?e(n):t()}},O=R,M=function(t,e){return function(n){return m(n)?e(f.head(n),f.tail(n)):t()}},E=M,k=E,C=function(t,e){return function(n){return m(n)?e(f.init(n),f.last(n)):t()}},P=C,W=P,D=function(t){return function(e){for(var n=[],r=0;r<e.length;r++)n.push.apply(n,t(r,e[r]));return n}},F=function(t,e){return function(n){var r=n.length,i=Array(r+1);i[0]=t;for(var u=0;u<r;u++)i[u+1]=e(i[u],n[u]);return i}},N=function(t,e){return function(n){var r=n.length,i=Array(r+1);i[r]=t;for(var u=r-1;u>=0;u--)i[u]=e(n[u],i[u+1]);return i}},A=function(t){return t.length},L=f.isOutOfBound,U=l.lookup,j=l.head,q=l.last,B=function(t){return m(t)?c.G(f.tail(t)):c.YP},Y=function(t){return m(t)?c.G(f.init(t)):c.YP},K=function(t){return function(e){return L(t,e)?ti(e):e.slice(0,t)}},G=function(t){return function(e){return L(t,e)?ti(e):0===t?[]:e.slice(-t)}};function z(t){return function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r];if(!t(i))break;n.push(i)}return n}}var V=function(t,e){for(var n=t.length,r=0;r<n&&e(t[r]);r++);return r};function H(t){return function(e){var n,r=tI(V(e,t))(e);return{init:r[0],rest:r[1]}}}var Z=function(t){return function(e){return t<=0||h(e)?ti(e):t>=e.length?[]:e.slice(t,e.length)}},$=function(t){return function(e){return t<=0||h(e)?ti(e):t>=e.length?[]:e.slice(0,e.length-t)}};function X(t){return function(e){return e.slice(V(e,t))}}var J=l.findIndex;function Q(t){return l.findFirst(t)}var tt=l.findFirstMap;function te(t){return l.findLast(t)}var tn=l.findLastMap,tr=l.findLastIndex,ti=function(t){return t.slice()},tu=function(t,e){return function(n){return t<0||t>n.length?c.YP:c.G(nr(t,e,n))}},to=function(t,e){return tc(t,function(){return e})},ta=function(t){return function(e){return L(t,e)?c.YP:c.G(nu(t,e))}},tc=function(t,e){return function(n){return L(t,n)?c.YP:c.G(ni(t,e(n[t]),n))}},tf=function(t){return h(t)?[]:t.slice().reverse()},tl=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];"Right"===r._tag&&e.push(r.right)}return e},ts=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];"Left"===r._tag&&e.push(r.left)}return e},tp=function(t){return function(e){return e.length<=1?ti(e):e.slice().sort(t.compare)}},td=function(t,e,n){for(var r=[],i=Math.min(t.length,e.length),u=0;u<i;u++)r[u]=n(t[u],e[u]);return r},th=function(t){for(var e=[],n=[],r=0;r<t.length;r++)e[r]=t[r][0],n[r]=t[r][1];return[e,n]},tm=function(t){var e=f.prependAll(t);return function(t){return m(t)?e(t):[]}},tv=function(t){var e=f.intersperse(t);return function(t){return m(t)?e(t):ti(t)}},tg=function(t){var e=f.rotate(t);return function(t){return m(t)?e(t):ti(t)}},ty=l.elem,t_=function(t){var e=f.uniq(t);return function(t){return m(t)?e(t):ti(t)}},tb=function(t){var e=f.sortBy(t);return function(t){return m(t)?e(t):ti(t)}},tT=function(t){var e=f.chop(t);return function(t){return m(t)?e(t):[]}},tI=function(t){return function(e){return t>=1&&m(e)?f.splitAt(t)(e):h(e)?[ti(e),[]]:[[],ti(e)]}},tS=function(t){var e=f.chunksOf(t);return function(t){return m(t)?e(t):[]}},tx=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return x(t.apply(void 0,e))}};function tw(t,e,n){void 0===n&&(n=function(){return!0});var r=function(t,i){return m(i)?t7(f.head(i),function(e){return r((0,o.pipe)(t,_(e)),f.tail(i))}):n.apply(void 0,t)?[e.apply(void 0,t)]:[]};return r([],t)}var tR=function(t){return function(e){return h(e)?ti(t):h(t)?ti(e):e.concat(t)}},tO=tR;function tM(t){var e=f.union(t);return function(n,r){if(void 0===r){var i=tM(t);return function(t){return i(t,n)}}return m(n)&&m(r)?e(r)(n):m(n)?ti(n):ti(r)}}function tE(t){var e=ty(t);return function(n,r){if(void 0===r){var i=tE(t);return function(t){return i(t,n)}}return n.filter(function(t){return e(t,r)})}}function tk(t){var e=ty(t);return function(n,r){if(void 0===r){var i=tk(t);return function(t){return i(t,n)}}return n.filter(function(t){return!e(t,r)})}}var tC=function(t,e){return(0,o.pipe)(t,t8(e))},tP=function(t,e){return(0,o.pipe)(t,t5(e))},tW=function(t,e){return(0,o.pipe)(t,t2(e))},tD=function(t,e){return(0,o.pipe)(t,ee(e))},tF=function(t,e){return(0,o.pipe)(t,t9(e))},tN=function(t,e){return(0,o.pipe)(t,en(e))},tA=function(t,e){return(0,o.pipe)(t,ei(e))},tL=function(t,e){return(0,o.pipe)(t,er(e))},tU=function(t,e){return(0,o.pipe)(t,eu(e))},tj=function(t,e){return(0,o.pipe)(t,ea(e))},tq=function(t,e,n){return(0,o.pipe)(t,ed(e,n))},tB=function(t){var e=es(t);return function(t,n){return(0,o.pipe)(t,e(n))}},tY=function(t,e,n){return(0,o.pipe)(t,em(e,n))},tK=function(t,e,n){return(0,o.pipe)(t,eh(e,n))},tG=function(t){var e=ep(t);return function(t,n){return(0,o.pipe)(t,e(n))}},tz=function(t,e,n){return(0,o.pipe)(t,ev(e,n))},tV=function(t,e){return(0,o.pipe)(t,t4(e))},tH=function(t,e){return(0,o.pipe)(t,ec(e))},tZ=function(t,e){return(0,o.pipe)(t,ef(e))},t$=function(t){var e=eg(t);return function(t,n){return(0,o.pipe)(t,e(n))}},tX=function(t){var e=e_(t);return function(t,n){return(0,o.pipe)(t,e(n))}},tJ=l._chainRecDepthFirst,tQ=l._chainRecBreadthFirst,t0=f.of,t1=function(){return[]},t8=function(t){return function(e){return e.map(function(e){return t(e)})}},t2=function(t){return t7(function(e){return(0,o.pipe)(t,t8(e))})},t7=(0,o.dual)(2,function(t,e){return(0,o.pipe)(t,D(function(t,n){return e(n,t)}))}),t3=t7(o.identity),t5=function(t){return function(e){return e.map(function(e,n){return t(n,e)})}},t4=function(t){return function(e){for(var n=[],r=0;r<e.length;r++){var i=t(r,e[r]);c.pC(i)&&n.push(i.value)}return n}},t9=function(t){return t4(function(e,n){return t(n)})},t6=t9(o.identity),et=function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];"Left"===i._tag?e.push(i.left):n.push(i.right)}return(0,s.separated)(e,n)},ee=function(t){return function(e){return e.filter(t)}},en=function(t){return er(function(e,n){return t(n)})},er=function(t){return function(e){for(var n=[],r=[],i=0;i<e.length;i++){var u=e[i];t(i,u)?r.push(u):n.push(u)}return(0,s.separated)(n,r)}},ei=function(t){return eu(function(e,n){return t(n)})},eu=function(t){return function(e){for(var n=[],r=[],i=0;i<e.length;i++){var u=t(i,e[i]);"Left"===u._tag?n.push(u.left):r.push(u.right)}return(0,s.separated)(n,r)}},eo=function(t){return function(e){return e.concat(t())}},ea=eo,ec=function(t){return function(e){return e.filter(function(e,n){return t(n,e)})}},ef=function(t){return function(e){return e.map(function(n,r){return t(e.slice(r))})}},el=ef(o.identity),es=l.foldMap,ep=l.foldMapWithIndex,ed=l.reduce,eh=l.reduceWithIndex,em=l.reduceRight,ev=l.reduceRightWithIndex,eg=function(t){var e=e_(t);return function(t){return e(function(e,n){return t(n)})}},ey=function(t){return function(e){return tq(e,t.of(t1()),function(e,n){return t.ap(t.map(e,function(t){return function(e){return(0,o.pipe)(t,_(e))}}),n)})}},e_=function(t){return function(e){return eh(t.of(t1()),function(n,r,i){return t.ap(t.map(r,function(t){return function(e){return(0,o.pipe)(t,_(e))}}),e(n,i))})}},eb=function(t){var e=e2(t);return function(t){return function(n){return e(n,t)}}},eT=function(t){var e=e7(t);return function(t){return function(n){return e(n,t)}}},eI=function(t,e){for(var n=[],r=t;;){var i=e(r);if(c.pC(i)){var u=i.value,o=u[0],a=u[1];n.push(o),r=a}else break}return n},eS="Array",ex=l.getShow,ew=function(){return{concat:function(t,e){return t.concat(e)}}},eR=function(){return{concat:ew().concat,empty:[]}},eO=l.getEq,eM=l.getOrd,eE=function(t){var e=tM(t);return{concat:function(t,n){return e(n)(t)}}},ek=function(t){return{concat:eE(t).concat,empty:[]}},eC=function(t){var e=tE(t);return{concat:function(t,n){return e(n)(t)}}},eP=function(t){var e=tk(t);return{concat:function(t,n){return e(n)(t)}}},eW={URI:eS,map:tC},eD=(0,a.flap)(eW),eF={URI:eS,of:t0},eN={URI:eS,map:tC,mapWithIndex:tP},eA={URI:eS,map:tC,ap:tW},eL=(0,r.apFirst)(eA),eU=(0,r.apSecond)(eA),ej={URI:eS,map:tC,ap:tW,of:t0},eq={URI:eS,map:tC,ap:tW,chain:t7},eB=(0,i.chainFirst)(eq),eY={URI:eS,map:tC,ap:tW,of:t0,chain:t7},eK={URI:eS,unfold:eI},eG={URI:eS,map:tC,alt:tj},ez={URI:eS,zero:t1},eV=(0,d.guard)(ez,eF),eH={URI:eS,map:tC,ap:tW,of:t0,alt:tj,zero:t1},eZ={URI:eS,map:tC,extend:tZ},e$={URI:eS,compact:t6,separate:et},eX={URI:eS,map:tC,compact:t6,separate:et,filter:tD,filterMap:tF,partition:tN,partitionMap:tA},eJ={URI:eS,map:tC,mapWithIndex:tP,compact:t6,separate:et,filter:tD,filterMap:tF,partition:tN,partitionMap:tA,partitionMapWithIndex:tU,partitionWithIndex:tL,filterMapWithIndex:tV,filterWithIndex:tH},eQ={URI:eS,reduce:tq,foldMap:tB,reduceRight:tY},e0={URI:eS,reduce:tq,foldMap:tB,reduceRight:tY,reduceWithIndex:tK,foldMapWithIndex:tG,reduceRightWithIndex:tz},e1={URI:eS,map:tC,reduce:tq,foldMap:tB,reduceRight:tY,traverse:t$,sequence:ey},e8={URI:eS,map:tC,mapWithIndex:tP,reduce:tq,foldMap:tB,reduceRight:tY,reduceWithIndex:tK,foldMapWithIndex:tG,reduceRightWithIndex:tz,traverse:t$,sequence:ey,traverseWithIndex:tX},e2=(0,p.witherDefault)(e1,e$),e7=(0,p.wiltDefault)(e1,e$),e3={URI:eS,map:tC,compact:t6,separate:et,filter:tD,filterMap:tF,partition:tN,partitionMap:tA,reduce:tq,foldMap:tB,reduceRight:tY,traverse:t$,sequence:ey,wither:e2,wilt:e7},e5=l.chainRecDepthFirst,e4={URI:eS,map:tC,ap:tW,chain:t7,chainRec:tJ},e9=l.chainRecBreadthFirst,e6={URI:eS,map:tC,ap:tW,chain:t7,chainRec:tQ},nt=(0,p.filterE)(e3),ne={URI:eS,fromEither:w},nn=(0,u.fromEitherK)(ne),nr=f.unsafeInsertAt,ni=function(t,e,n){return m(n)?f.unsafeUpdateAt(t,e,n):[]},nu=function(t,e){var n=e.slice();return n.splice(t,1),n},no=l.every,na=function(t){return function(e){return e.some(t)}},nc=na,nf=l.intercalate,nl=t0(c.F4),ns=(0,a.bindTo)(eW),np=(0,a.let)(eW),nd=(0,i.bind)(eq),nh=(0,r.apS)(eA),nm=t7,nv=f.range,ng=[],ny=f.cons,n_=f.snoc,nb=tm,nT={URI:eS,compact:t6,separate:et,map:tC,ap:tW,of:t0,chain:t7,filter:tD,filterMap:tF,partition:tN,partitionMap:tA,mapWithIndex:tP,partitionMapWithIndex:tU,partitionWithIndex:tL,filterMapWithIndex:tV,filterWithIndex:tH,alt:tj,zero:t1,unfold:eI,reduce:tq,foldMap:tB,reduceRight:tY,traverse:t$,sequence:ey,reduceWithIndex:tK,foldMapWithIndex:tG,reduceRightWithIndex:tz,traverseWithIndex:tX,extend:tZ,wither:e2,wilt:e7}},88543:function(t,e,n){"use strict";function r(t){var e=i(t);return function(t){return function(n){return e(n,t)}}}function i(t){return function(e,n){return t.chain(e,function(e){return t.map(n(e),function(){return e})})}}function u(t){return function(e,n){return function(r){return t.chain(r,function(r){return t.map(n(r),function(t){var n;return Object.assign({},r,((n={})[e]=t,n))})})}}}n.r(e),n.d(e,{bind:function(){return u},chainFirst:function(){return r},tap:function(){return i}})},56661:function(t,e,n){"use strict";n.r(e),n.d(e,{tailRec:function(){return r}});var r=function(t,e){for(var n=e(t);"Left"===n._tag;)n=e(n.left);return n.right}},90817:function(t,e,n){"use strict";n.r(e),n.d(e,{Bifunctor:function(){return C},Contravariant:function(){return k},Functor:function(){return M},URI:function(){return O},bimap:function(){return w},const_:function(){return P},contramap:function(){return S},flap:function(){return E},getApplicative:function(){return y},getApply:function(){return v},getBooleanAlgebra:function(){return m},getBounded:function(){return f},getEq:function(){return a},getHeytingAlgebra:function(){return h},getMonoid:function(){return s},getOrd:function(){return c},getRing:function(){return d},getSemigroup:function(){return l},getSemiring:function(){return p},getShow:function(){return o},make:function(){return u},map:function(){return x},mapLeft:function(){return R}});var r=n(42275),i=n(67560),u=r.unsafeCoerce;function o(t){return{show:function(e){return"make(".concat(t.show(e),")")}}}var a=r.identity,c=r.identity,f=r.identity,l=r.identity,s=r.identity,p=r.identity,d=r.identity,h=r.identity,m=r.identity;function v(t){return{URI:O,_E:void 0,map:b,ap:function(e,n){return u(t.concat(e,n))}}}function y(t){var e=v(t);return{URI:O,_E:void 0,map:e.map,ap:e.ap,of:function(){return u(t.empty)}}}var _=function(t,e){return(0,r.pipe)(t,S(e))},b=function(t,e){return(0,r.pipe)(t,x(e))},T=function(t,e,n){return(0,r.pipe)(t,w(e,n))},I=function(t,e){return(0,r.pipe)(t,R(e))},S=function(){return r.unsafeCoerce},x=function(){return r.unsafeCoerce},w=function(t){return function(e){return u(t(e))}},R=function(t){return function(e){return u(t(e))}},O="Const",M={URI:O,map:b},E=(0,i.flap)(M),k={URI:O,contramap:_},C={URI:O,bimap:T,mapLeft:I},P={URI:O,map:b,contramap:_,bimap:T,mapLeft:I}},81878:function(t,e,n){"use strict";n.r(e),n.d(e,{Alt:function(){return ta},ApT:function(){return t9},Applicative:function(){return z},Apply:function(){return G},Bifunctor:function(){return ti},Chain:function(){return V},ChainRec:function(){return tl},Do:function(){return t1},Extend:function(){return tf},Foldable:function(){return J},FromEither:function(){return td},Functor:function(){return L},Monad:function(){return H},MonadThrow:function(){return tp},Pointed:function(){return B},Traversable:function(){return te},URI:function(){return M},alt:function(){return to},altW:function(){return tu},ap:function(){return K},apFirst:function(){return tw},apFirstW:function(){return tR},apS:function(){return t5},apSW:function(){return t4},apSecond:function(){return tO},apSecondW:function(){return tM},apW:function(){return Y},as:function(){return U},asUnit:function(){return j},bimap:function(){return tn},bind:function(){return t7},bindTo:function(){return t8},bindW:function(){return t3},chain:function(){return eu},chainFirst:function(){return eo},chainFirstW:function(){return ea},chainNullableK:function(){return tX},chainOptionK:function(){return tD},chainOptionKW:function(){return tF},chainW:function(){return ei},duplicate:function(){return tP},either:function(){return el},elem:function(){return function t(e){return function(n,r){if(void 0===r){var i=t(e);return function(t){return i(n,t)}}return!tv(r)&&e.equals(n,r.right)}}},exists:function(){return t0},extend:function(){return tc},filterOrElse:function(){return tB},filterOrElseW:function(){return tY},flap:function(){return tx},flatMap:function(){return m},flatMapNullable:function(){return tj},flatMapOption:function(){return tq},flatten:function(){return tC},flattenW:function(){return tk},fold:function(){return tT},foldMap:function(){return $},foldW:function(){return t_},fromNullable:function(){return tV},fromNullableK:function(){return t$},fromOption:function(){return tm},fromOptionK:function(){return tW},fromPredicate:function(){return th},getAltValidation:function(){return N},getApplicativeValidation:function(){return F},getApplyMonoid:function(){return ep},getApplySemigroup:function(){return es},getCompactable:function(){return P},getEq:function(){return k},getFilterable:function(){return W},getOrElse:function(){return tS},getOrElseW:function(){return tI},getSemigroup:function(){return C},getShow:function(){return E},getValidation:function(){return em},getValidationMonoid:function(){return eh},getValidationSemigroup:function(){return ed},getWitherable:function(){return D},isLeft:function(){return tv},isRight:function(){return tg},left:function(){return d},let:function(){return t2},liftNullable:function(){return tA},liftOption:function(){return tL},map:function(){return A},mapLeft:function(){return tr},match:function(){return tb},matchW:function(){return ty},of:function(){return q},orElse:function(){return tz},orElseW:function(){return tG},parseJSON:function(){return ec},reduce:function(){return Z},reduceRight:function(){return X},right:function(){return h},sequence:function(){return tt},sequenceArray:function(){return er},stringifyJSON:function(){return ef},swap:function(){return tK},tap:function(){return tE},throwError:function(){return ts},toError:function(){return tQ},toUnion:function(){return tJ},traverse:function(){return Q},traverseArray:function(){return en},traverseArrayWithIndex:function(){return ee},traverseReadonlyArrayWithIndex:function(){return et},traverseReadonlyNonEmptyArrayWithIndex:function(){return t6},tryCatch:function(){return tH},tryCatchK:function(){return tZ}});var r=n(46111),i=n(42925),u=n(88543),o=n(56661),a=n(25162),c=n(42275),f=n(67560),l=n(97963),s=n(34219),p=n(76511),d=l.t$,h=l.F2,m=(0,c.dual)(2,function(t,e){return tv(t)?t:e(t.right)}),v=function(t,e){return(0,c.pipe)(t,A(e))},y=function(t,e){return(0,c.pipe)(t,K(e))},_=function(t,e,n){return(0,c.pipe)(t,Z(e,n))},b=function(t){return function(e,n){var r=$(t);return(0,c.pipe)(e,r(n))}},T=function(t,e,n){return(0,c.pipe)(t,X(e,n))},I=function(t){var e=Q(t);return function(t,n){return(0,c.pipe)(t,e(n))}},S=function(t,e,n){return(0,c.pipe)(t,tn(e,n))},x=function(t,e){return(0,c.pipe)(t,tr(e))},w=function(t,e){return(0,c.pipe)(t,to(e))},R=function(t,e){return(0,c.pipe)(t,tc(e))},O=function(t,e){return(0,o.tailRec)(e(t),function(t){return tv(t)?h(d(t.left)):tv(t.right)?d(e(t.right.left)):h(h(t.right.right))})},M="Either",E=function(t,e){return{show:function(n){return tv(n)?"left(".concat(t.show(n.left),")"):"right(".concat(e.show(n.right),")")}}},k=function(t,e){return{equals:function(n,r){return n===r||(tv(n)?tv(r)&&t.equals(n.left,r.left):tg(r)&&e.equals(n.right,r.right))}}},C=function(t){return{concat:function(e,n){return tv(n)?e:tv(e)?n:h(t.concat(e.right,n.right))}}},P=function(t){var e=d(t.empty);return{URI:M,_E:void 0,compact:function(t){return tv(t)?t:"None"===t.right._tag?e:h(t.right.value)},separate:function(t){return tv(t)?(0,s.separated)(t,t):tv(t.right)?(0,s.separated)(h(t.right.left),e):(0,s.separated)(e,h(t.right.right))}}},W=function(t){var e,n=d(t.empty),r=P(t),i=r.compact;return{URI:M,_E:void 0,map:v,compact:i,separate:r.separate,filter:function(t,e){return tv(t)?t:e(t.right)?t:n},filterMap:function(t,e){if(tv(t))return t;var r=e(t.right);return"None"===r._tag?n:h(r.value)},partition:function(t,e){return tv(t)?(0,s.separated)(t,t):e(t.right)?(0,s.separated)(n,h(t.right)):(0,s.separated)(h(t.right),n)},partitionMap:function(t,e){if(tv(t))return(0,s.separated)(t,t);var r=e(t.right);return tv(r)?(0,s.separated)(h(r.left),n):(0,s.separated)(n,h(r.right))}}},D=function(t){var e=W(t),n=P(t);return{URI:M,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:I,sequence:tt,reduce:_,foldMap:b,reduceRight:T,wither:(0,p.witherDefault)(te,n),wilt:(0,p.wiltDefault)(te,n)}},F=function(t){return{URI:M,_E:void 0,map:v,ap:function(e,n){return tv(e)?tv(n)?d(t.concat(e.left,n.left)):e:tv(n)?n:h(e.right(n.right))},of:q}},N=function(t){return{URI:M,_E:void 0,map:v,alt:function(e,n){if(tg(e))return e;var r=n();return tv(r)?d(t.concat(e.left,r.left)):r}}},A=function(t){return function(e){return tv(e)?e:h(t(e.right))}},L={URI:M,map:v},U=(0,c.dual)(2,(0,f.as)(L)),j=(0,f.asUnit)(L),q=h,B={URI:M,of:q},Y=function(t){return function(e){return tv(e)?e:tv(t)?t:h(e.right(t.right))}},K=Y,G={URI:M,map:v,ap:y},z={URI:M,map:v,ap:y,of:q},V={URI:M,map:v,ap:y,chain:m},H={URI:M,map:v,ap:y,of:q,chain:m},Z=function(t,e){return function(n){return tv(n)?t:e(t,n.right)}},$=function(t){return function(e){return function(n){return tv(n)?t.empty:e(n.right)}}},X=function(t,e){return function(n){return tv(n)?t:e(n.right,t)}},J={URI:M,reduce:_,foldMap:b,reduceRight:T},Q=function(t){return function(e){return function(n){return tv(n)?t.of(d(n.left)):t.map(e(n.right),h)}}},tt=function(t){return function(e){return tv(e)?t.of(d(e.left)):t.map(e.right,h)}},te={URI:M,map:v,reduce:_,foldMap:b,reduceRight:T,traverse:I,sequence:tt},tn=function(t,e){return function(n){return tv(n)?d(t(n.left)):h(e(n.right))}},tr=function(t){return function(e){return tv(e)?d(t(e.left)):e}},ti={URI:M,bimap:S,mapLeft:x},tu=function(t){return function(e){return tv(e)?t():e}},to=tu,ta={URI:M,map:v,alt:w},tc=function(t){return function(e){return tv(e)?e:h(t(e))}},tf={URI:M,map:v,extend:R},tl={URI:M,map:v,ap:y,chain:m,chainRec:O},ts=d,tp={URI:M,map:v,ap:y,of:q,chain:m,throwError:ts},td={URI:M,fromEither:c.identity},th=(0,a.fromPredicate)(td),tm=(0,a.fromOption)(td),tv=l.nM,tg=l.tO,ty=function(t,e){return function(n){return tv(n)?t(n.left):e(n.right)}},t_=ty,tb=ty,tT=tb,tI=function(t){return function(e){return tv(e)?t(e.left):e.right}},tS=tI,tx=(0,f.flap)(L),tw=(0,i.apFirst)(G),tR=tw,tO=(0,i.apSecond)(G),tM=tO,tE=(0,c.dual)(2,u.tap(V)),tk=m(c.identity),tC=tk,tP=tc(c.identity),tW=(0,a.fromOptionK)(td),tD=(0,a.chainOptionK)(td,V),tF=tD,tN={fromEither:td.fromEither},tA=l.uL(tN),tL=l.WE(tN),tU={flatMap:m},tj=l.ny(tN,tU),tq=l.hU(tN,tU),tB=(0,a.filterOrElse)(td,V),tY=tB,tK=function(t){return tv(t)?h(t.left):d(t.right)},tG=function(t){return function(e){return tv(e)?t(e.left):e}},tz=tG,tV=function(t){return function(e){return null==e?d(t):h(e)}},tH=function(t,e){try{return h(t())}catch(n){return d(e(n))}},tZ=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return tH(function(){return t.apply(void 0,n)},e)}},t$=function(t){var e=tV(t);return function(t){return(0,c.flow)(t,e)}},tX=function(t){var e=t$(t);return function(t){return m(e(t))}},tJ=t_(c.identity,c.identity);function tQ(t){return t instanceof Error?t:Error(String(t))}var t0=function(t){return function(e){return!tv(e)&&t(e.right)}},t1=q(l.F4),t8=(0,f.bindTo)(L),t2=(0,f.let)(L),t7=u.bind(V),t3=t7,t5=(0,i.apS)(G),t4=t5,t9=q(l.Xl),t6=function(t){return function(e){var n=t(0,l.YM(e));if(tv(n))return n;for(var r=[n.right],i=1;i<e.length;i++){var u=t(i,e[i]);if(tv(u))return u;r.push(u.right)}return h(r)}},et=function(t){var e=t6(t);return function(t){return l.Od(t)?e(t):t9}},ee=et,en=function(t){return et(function(e,n){return t(n)})},er=en(c.identity),ei=m,eu=m,eo=tE,ea=tE;function ec(t,e){return tH(function(){return JSON.parse(t)},e)}var ef=function(t,e){return tH(function(){var e=JSON.stringify(t);if("string"!=typeof e)throw Error("Converting unsupported structure to JSON");return e},e)},el={URI:M,map:v,of:q,ap:y,chain:m,reduce:_,foldMap:b,reduceRight:T,traverse:I,sequence:tt,bimap:S,mapLeft:x,alt:w,extend:R,chainRec:O,throwError:ts},es=(0,i.getApplySemigroup)(G),ep=(0,r.getApplicativeMonoid)(z),ed=function(t,e){return(0,i.getApplySemigroup)(F(t))(e)},eh=function(t,e){return(0,r.getApplicativeMonoid)(F(t))(e)};function em(t){var e=F(t).ap,n=N(t).alt;return{URI:M,_E:void 0,map:v,of:q,chain:m,bimap:S,mapLeft:x,reduce:_,foldMap:b,reduceRight:T,extend:R,traverse:I,sequence:tt,chainRec:O,throwError:ts,ap:e,alt:n}}},47797:function(t,e,n){"use strict";n.r(e),n.d(e,{URI:function(){return i},getMonoid:function(){return o},getSemigroup:function(){return u}});var r=n(42275),i="Endomorphism",u=function(){return{concat:function(t,e){return(0,r.flow)(t,e)}}},o=function(){return{concat:u().concat,empty:r.identity}}},65191:function(t,e,n){"use strict";n.r(e),n.d(e,{Contravariant:function(){return d},URI:function(){return c},contramap:function(){return a},eq:function(){return y},eqBoolean:function(){return _},eqDate:function(){return I},eqNumber:function(){return T},eqStrict:function(){return f},eqString:function(){return b},fromEquals:function(){return i},getMonoid:function(){return p},getSemigroup:function(){return s},getStructEq:function(){return m},getTupleEq:function(){return h},strictEqual:function(){return v},struct:function(){return u},tuple:function(){return o}});var r=n(42275),i=function(t){return{equals:function(e,n){return e===n||t(e,n)}}},u=function(t){return i(function(e,n){for(var r in t)if(!t[r].equals(e[r],n[r]))return!1;return!0})},o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i(function(e,n){return t.every(function(t,r){return t.equals(e[r],n[r])})})},a=function(t){return function(e){return i(function(n,r){return e.equals(t(n),t(r))})}},c="Eq",f={equals:function(t,e){return t===e}},l={equals:function(){return!0}},s=function(){return{concat:function(t,e){return i(function(n,r){return t.equals(n,r)&&e.equals(n,r)})}}},p=function(){return{concat:s().concat,empty:l}},d={URI:c,contramap:function(t,e){return(0,r.pipe)(t,a(e))}},h=o,m=u,v=f.equals,y=d,_=f,b=f,T=f,I={equals:function(t,e){return t.valueOf()===e.valueOf()}}},25162:function(t,e,n){"use strict";n.r(e),n.d(e,{chainEitherK:function(){return s},chainFirstEitherK:function(){return p},chainOptionK:function(){return f},filterOrElse:function(){return d},fromEitherK:function(){return l},fromOption:function(){return o},fromOptionK:function(){return c},fromPredicate:function(){return a},tapEither:function(){return h}});var r=n(88543),i=n(42275),u=n(97963);function o(t){return function(e){return function(n){return t.fromEither(u.Wi(n)?u.t$(e()):u.F2(n.value))}}}function a(t){return function(e,n){return function(r){return t.fromEither(e(r)?u.F2(r):u.t$(n(r)))}}}function c(t){var e=o(t);return function(t){var n=e(t);return function(t){return(0,i.flow)(t,n)}}}function f(t,e){var n=c(t);return function(t){var r=n(t);return function(t){return function(n){return e.chain(n,r(t))}}}}function l(t){return function(e){return(0,i.flow)(e,t.fromEither)}}function s(t,e){var n=l(t);return function(t){return function(r){return e.chain(r,n(t))}}}function p(t,e){var n=h(t,e);return function(t){return function(e){return n(e,t)}}}function d(t,e){return function(n,r){return function(i){return e.chain(i,function(e){return t.fromEither(n(e)?u.F2(e):u.t$(r(e)))})}}}function h(t,e){var n=l(t),i=(0,r.tap)(e);return function(t,e){return i(t,n(e))}}},67560:function(t,e,n){"use strict";n.r(e),n.d(e,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return o},flap:function(){return u},getFunctorComposition:function(){return c},let:function(){return a},map:function(){return i}});var r=n(42275);function i(t,e){return function(n){return function(r){return t.map(r,function(t){return e.map(t,n)})}}}function u(t){return function(e){return function(n){return t.map(n,function(t){return t(e)})}}}function o(t){return function(e){return function(n){return t.map(n,function(t){var n;return(n={})[e]=t,n})}}}function a(t){return function(e,n){return function(r){return t.map(r,function(t){var r;return Object.assign({},t,((r={})[e]=n(t),r))})}}}function c(t,e){var n=i(t,e);return{map:function(t,e){return(0,r.pipe)(t,n(e))}}}function f(t){return function(e,n){return t.map(e,function(){return n})}}function l(t){var e=f(t);return function(t){return e(t,void 0)}}},76113:function(t,e,n){"use strict";n.r(e),n.d(e,{concatAll:function(){return a},endo:function(){return o},filterFirst:function(){return i},filterSecond:function(){return u},reverse:function(){return r}});var r=function(t){return{concat:function(e,n){return t.concat(n,e)}}},i=function(t){return function(e){return{concat:function(n,r){return t(n)?e.concat(n,r):r}}}},u=function(t){return function(e){return{concat:function(n,r){return t(r)?e.concat(n,r):n}}}},o=function(t){return function(e){return{concat:function(n,r){return e.concat(t(n),t(r))}}}},a=function(t){return function(e){return function(n){return n.reduce(function(e,n){return t.concat(e,n)},e)}}}},55116:function(t,e,n){"use strict";n.r(e),n.d(e,{Compactable:function(){return tb},Filterable:function(){return tT},Functor:function(){return ty},URI:function(){return tn},collect:function(){return _},compact:function(){return H},deleteAt:function(){return S},difference:function(){return tw},elem:function(){return m},empty:function(){return tR},filter:function(){return Z},filterMap:function(){return $},filterMapWithIndex:function(){return A},filterWithIndex:function(){return L},flap:function(){return t_},foldMap:function(){return tl},foldMapWithIndex:function(){return th},fromFoldable:function(){return W},getDifferenceMagma:function(){return to},getEq:function(){return k},getFilterableWithIndex:function(){return ta},getFoldable:function(){return tp},getFoldableWithIndex:function(){return tv},getIntersectionSemigroup:function(){return tu},getMonoid:function(){return C},getShow:function(){return s},getTraversableWithIndex:function(){return tg},getUnionMonoid:function(){return ti},getUnionSemigroup:function(){return tr},getWitherable:function(){return tc},insertAt:function(){return tO},intersection:function(){return tx},isEmpty:function(){return d},isSubmap:function(){return E},keys:function(){return v},lookup:function(){return M},lookupWithKey:function(){return O},map:function(){return X},mapWithIndex:function(){return J},map_:function(){return tM},member:function(){return h},modifyAt:function(){return w},partition:function(){return Q},partitionMap:function(){return tt},partitionMapWithIndex:function(){return F},partitionWithIndex:function(){return N},pop:function(){return R},reduce:function(){return tf},reduceRight:function(){return ts},reduceRightWithIndex:function(){return tm},reduceWithIndex:function(){return td},separate:function(){return te},singleton:function(){return P},size:function(){return p},toArray:function(){return b},toUnfoldable:function(){return T},union:function(){return tS},updateAt:function(){return x},upsertAt:function(){return I},values:function(){return y}});var r=n(42275),i=n(67560),u=n(97963),o=n(20492),a=n(13512),c=n(34219),f=n(76511),l=function(){return(l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=a.getShow,p=a.size,d=a.isEmpty,h=a.member,m=a.elem,v=function(t){return function(e){return Array.from(e.keys()).sort(t.compare)}},y=function(t){return function(e){return Array.from(e.values()).sort(t.compare)}};function _(t){var e=v(t);return function(t){return function(n){for(var r=[],i=e(n),u=0;u<i.length;u++){var o=i[u];r.push(t(o,n.get(o)))}return r}}}function b(t){return _(t)(function(t,e){return[t,e]})}function T(t,e){var n=b(t);return function(t){var r=n(t),i=r.length;return e.unfold(0,function(t){return t<i?u.G([r[t],t+1]):u.YP})}}var I=function(t){var e=O(t);return function(t,n){var r=e(t);return function(e){var i=r(e);if(u.Wi(i)){var o=new Map(e);return o.set(t,n),o}if(i.value[1]!==n){var o=new Map(e);return o.set(i.value[0],n),o}return e}}},S=function(t){var e=O(t);return function(t){return function(n){var r=e(t,n);if(u.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},x=function(t){var e=w(t);return function(t,n){return e(t,function(){return n})}},w=function(t){var e=O(t);return function(t,n){return function(r){var i=e(t,r);if(u.Wi(i))return u.YP;var o=new Map(r);return o.set(i.value[0],n(i.value[1])),u.G(o)}}};function R(t){var e=M(t),n=S(t);return function(t){var i=n(t);return function(n){return(0,r.pipe)(e(t,n),o.map(function(t){return[t,i(n)]}))}}}function O(t){return function(e,n){if(void 0===n){var r,i=O(t);return function(t){return i(e,t)}}for(var o=n.entries();!(r=o.next()).done;){var a=r.value,c=a[0],f=a[1];if(t.equals(c,e))return u.G([c,f])}return u.YP}}var M=a.lookup,E=a.isSubmap,k=a.getEq;function C(t,e){var n=O(t);return{concat:function(t,r){if(d(t))return r;if(d(r))return t;for(var i,o=new Map(t),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],s=n(f,t);u.pC(s)?o.set(s.value[0],e.concat(s.value[1],l)):o.set(f,l)}return o},empty:new Map}}var P=function(t,e){return new Map([[t,e]])};function W(t,e,n){return function(r){var i=O(t);return n.reduce(r,new Map,function(t,n){var r=n[0],o=n[1],a=i(r,t);return u.pC(a)?t.set(a.value[0],e.concat(a.value[1],o)):t.set(r,o),t})}}var D=function(t,e){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var u=n.value,o=u[0],a=u[1];r.set(o,e(o,a))}return r},F=function(t){return function(e){for(var n,r=new Map,i=new Map,o=e.entries();!(n=o.next()).done;){var a=n.value,f=a[0],l=t(f,a[1]);u.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function N(t){return function(e){for(var n,r=new Map,i=new Map,u=e.entries();!(n=u.next()).done;){var o=n.value,a=o[0],f=o[1];t(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var A=function(t){return function(e){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,a=o[0],c=t(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function L(t){return function(e){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var u=n.value,o=u[0],a=u[1];t(o,a)&&r.set(o,a)}return r}}var U=function(t,e){return D(t,function(t,n){return e(n)})},j=function(t,e){return K(t,function(t,n){return e(n)})},q=function(t,e){return G(t,function(t,n){return e(n)})},B=function(t,e){return z(t,function(t,n){return e(n)})},Y=function(t,e){return V(t,function(t,n){return e(n)})},K=function(t,e){return(0,r.pipe)(t,L(e))},G=function(t,e){return(0,r.pipe)(t,A(e))},z=function(t,e){return(0,r.pipe)(t,N(e))},V=function(t,e){return(0,r.pipe)(t,F(e))},H=function(t){for(var e,n=new Map,r=t.entries();!(e=r.next()).done;){var i=e.value,o=i[0],a=i[1];u.pC(a)&&n.set(o,a.value)}return n},Z=function(t){return function(e){return j(e,t)}},$=function(t){return function(e){return q(e,t)}},X=function(t){return function(e){return U(e,t)}},J=function(t){return function(e){return D(e,t)}},Q=function(t){return function(e){return B(e,t)}},tt=function(t){return function(e){return Y(e,t)}},te=function(t){for(var e,n=new Map,r=new Map,i=t.entries();!(e=i.next()).done;){var o=e.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)},tn="Map",tr=function(t,e){var n=tS(t,e);return{concat:function(t,e){return n(e)(t)}}},ti=function(t,e){return{concat:tr(t,e).concat,empty:new Map}},tu=function(t,e){var n=tx(t,e);return{concat:function(t,e){return n(e)(t)}}},to=function(t){return function(){var e=tw(t);return{concat:function(t,n){return e(n)(t)}}}};function ta(){return{URI:tn,_E:void 0,map:U,mapWithIndex:D,compact:H,separate:te,filter:j,filterMap:q,partition:B,partitionMap:Y,partitionMapWithIndex:V,partitionWithIndex:z,filterMapWithIndex:G,filterWithIndex:K}}function tc(t){var e=tg(t);return{URI:tn,_E:void 0,map:U,compact:H,separate:te,filter:j,filterMap:q,partition:B,partitionMap:Y,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,traverse:e.traverse,sequence:e.sequence,mapWithIndex:D,reduceWithIndex:e.reduceWithIndex,foldMapWithIndex:e.foldMapWithIndex,reduceRightWithIndex:e.reduceRightWithIndex,traverseWithIndex:e.traverseWithIndex,wilt:(0,f.wiltDefault)(e,tb),wither:(0,f.witherDefault)(e,tb)}}var tf=a.reduce,tl=a.foldMap,ts=a.reduceRight,tp=function(t){return l(l({},a.getFoldable(t)),{URI:tn})},td=a.reduceWithIndex,th=a.foldMapWithIndex,tm=a.reduceRightWithIndex,tv=function(t){return l(l({},a.getFoldableWithIndex(t)),{URI:tn})},tg=function(t){var e=tv(t),n=v(t),r=function(t){return function(e,r){for(var i=t.of(new Map),u=n(e),o=u.length,a=0;a<o;a++)!function(n){var o=u[n],a=e.get(o);i=t.ap(t.map(i,function(t){return function(e){return t.set(o,e)}}),r(o,a))}(a);return i}},i=function(t){var e=r(t);return function(t,n){return e(t,function(t,e){return n(e)})}},u=function(t){var e=r(t);return function(t){return e(t,function(t,e){return e})}};return{URI:tn,_E:void 0,map:U,mapWithIndex:D,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,reduceWithIndex:e.reduceWithIndex,foldMapWithIndex:e.foldMapWithIndex,reduceRightWithIndex:e.reduceRightWithIndex,traverse:i,sequence:u,traverseWithIndex:r}},ty={URI:tn,map:U},t_=(0,i.flap)(ty),tb={URI:tn,compact:H,separate:te},tT={URI:tn,map:U,compact:H,separate:te,filter:j,filterMap:q,partition:B,partitionMap:Y},tI=function(t){return new Map(t)},tS=function(t,e){var n=a.union(t,e);return function(t){return function(e){return d(e)?tI(t):d(t)?tI(e):n(t)(e)}}},tx=function(t,e){var n=a.intersection(t,e);return function(t){return function(e){return d(e)||d(t)?new Map:n(t)(e)}}},tw=function(t){var e=a.difference(t);return function(t){return function(n){return d(n)?tI(t):d(t)?tI(n):e(t)(n)}}},tR=new Map,tO=I,tM=tT},96576:function(t,e,n){"use strict";n.r(e),n.d(e,{concatAll:function(){return p},fold:function(){return b},getDualMonoid:function(){return v},getEndomorphismMonoid:function(){return x},getFunctionMonoid:function(){return S},getJoinMonoid:function(){return y},getMeetMonoid:function(){return _},getStructMonoid:function(){return m},getTupleMonoid:function(){return h},max:function(){return c},min:function(){return a},monoidAll:function(){return T},monoidAny:function(){return I},monoidProduct:function(){return O},monoidString:function(){return w},monoidSum:function(){return R},monoidVoid:function(){return d},reverse:function(){return f},struct:function(){return l},tuple:function(){return s}});var r=n(47797),i=n(42275),u=n(97963),o=n(3291),a=function(t){return{concat:o.min(t).concat,empty:t.top}},c=function(t){return{concat:o.max(t).concat,empty:t.bottom}},f=function(t){return{concat:o.reverse(t).concat,empty:t.empty}},l=function(t){var e={};for(var n in t)u.e$.call(t,n)&&(e[n]=t[n].empty);return{concat:o.struct(t).concat,empty:e}},s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return{concat:o.tuple.apply(o,t).concat,empty:t.map(function(t){return t.empty})}},p=function(t){return o.concatAll(t)(t.empty)},d={concat:o.semigroupVoid.concat,empty:void 0},h=s,m=l,v=f,y=c,_=a,b=p,T={concat:o.semigroupAll.concat,empty:!0},I={concat:o.semigroupAny.concat,empty:!1},S=i.getMonoid,x=function(){return f((0,r.getMonoid)())},w={concat:o.semigroupString.concat,empty:""},R={concat:o.semigroupSum.concat,empty:0},O={concat:o.semigroupProduct.concat,empty:1}},43586:function(t,e,n){"use strict";n.r(e),n.d(e,{Alt:function(){return tH},Applicative:function(){return tj},Apply:function(){return tA},Chain:function(){return tq},Comonad:function(){return tZ},Do:function(){return t$},Foldable:function(){return tK},FoldableWithIndex:function(){return tG},Functor:function(){return tW},FunctorWithIndex:function(){return tN},Monad:function(){return tY},Pointed:function(){return tF},Traversable:function(){return tz},TraversableWithIndex:function(){return tV},URI:function(){return tM},alt:function(){return tp},altW:function(){return ts},ap:function(){return td},apFirst:function(){return tL},apS:function(){return t0},apSecond:function(){return tU},append:function(){return v},appendW:function(){return m},bind:function(){return tQ},bindTo:function(){return tX},chain:function(){return eu},chainFirst:function(){return tB},chainWithIndex:function(){return H},chop:function(){return Z},chunksOf:function(){return X},concat:function(){return P},concatAll:function(){return t4},concatW:function(){return C},cons:function(){return es},copy:function(){return j},duplicate:function(){return tv},extend:function(){return tm},extract:function(){return tO},filter:function(){return ea},filterWithIndex:function(){return ec},flap:function(){return tD},flatMap:function(){return th},flatten:function(){return tg},fold:function(){return eh},foldMap:function(){return V},foldMapWithIndex:function(){return z},fromArray:function(){return w},fromReadonlyNonEmptyArray:function(){return x},getEq:function(){return tC},getSemigroup:function(){return tk},getShow:function(){return tE},getUnionSemigroup:function(){return tP},group:function(){return D},groupBy:function(){return F},groupSort:function(){return eo},head:function(){return t1},init:function(){return t7},insertAt:function(){return A},intercalate:function(){return ei},intersperse:function(){return G},isNonEmpty:function(){return s},isOutOfBound:function(){return p},last:function(){return t2},let:function(){return tJ},makeBy:function(){return R},map:function(){return ty},mapWithIndex:function(){return t_},matchLeft:function(){return t9},matchRight:function(){return t6},max:function(){return t5},min:function(){return t3},modifyAt:function(){return U},modifyHead:function(){return et},modifyLast:function(){return en},nonEmptyArray:function(){return em},of:function(){return q},prepend:function(){return h},prependAll:function(){return K},prependToAll:function(){return ed},prependW:function(){return d},range:function(){return M},reduce:function(){return tb},reduceRight:function(){return tI},reduceRightWithIndex:function(){return tS},reduceWithIndex:function(){return tT},replicate:function(){return O},reverse:function(){return W},rotate:function(){return S},sequence:function(){return tw},snoc:function(){return ep},sort:function(){return N},sortBy:function(){return T},splitAt:function(){return $},tail:function(){return t8},traverse:function(){return tx},traverseWithIndex:function(){return tR},unappend:function(){return k},uncons:function(){return ef},union:function(){return I},uniq:function(){return b},unprepend:function(){return E},unsafeInsertAt:function(){return y},unsafeUpdateAt:function(){return _},unsnoc:function(){return el},unzip:function(){return Y},updateAt:function(){return L},updateHead:function(){return ee},updateLast:function(){return er},zip:function(){return function t(e,n){return void 0===n?function(n){return t(n,e)}:B(e,n,function(t,e){return[t,e]})}},zipWith:function(){return B}});var r=n(42925),i=n(88543),u=n(42275),o=n(67560),a=n(97963),c=n(5586),f=n(28350),l=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},s=function(t){return t.length>0},p=function(t,e){return t<0||t>=e.length},d=function(t){return function(e){return l([t],e,!0)}},h=d,m=function(t){return function(e){return l(l([],e,!0),[t],!1)}},v=m,y=function(t,e,n){if(s(n)){var r=x(n);return r.splice(t,0,e),r}return[e]},_=function(t,e,n){var r=x(n);return r[t]=e,r},b=function(t){return function(e){if(1===e.length)return j(e);for(var n=[t1(e)],r=t8(e),i=function(e){n.every(function(n){return!t.equals(n,e)})&&n.push(e)},u=0;u<r.length;u++)i(r[u]);return n}},T=function(t){if(s(t)){var e=(0,c.getMonoid)();return N(t.reduce(e.concat,e.empty))}return j},I=function(t){var e=b(t);return function(t){return function(n){return e((0,u.pipe)(n,P(t)))}}},S=function(t){return function(e){var n=e.length,r=Math.round(t)%n;if(p(Math.abs(r),e)||0===r)return j(e);if(!(r<0))return S(r-n)(e);var i=$(-r)(e),o=i[0],a=i[1];return(0,u.pipe)(a,P(o))}},x=a.r1,w=function(t){return s(t)?a.G(t):a.YP},R=function(t){return function(e){for(var n=Math.max(0,Math.floor(e)),r=[t(0)],i=1;i<n;i++)r.push(t(i));return r}},O=function(t){return R(function(){return t})},M=function(t,e){return t<=e?R(function(e){return t+e})(e-t+1):[t]},E=function(t){return[t1(t),t8(t)]},k=function(t){return[t7(t),t2(t)]};function C(t){return function(e){return e.concat(t)}}function P(t,e){return e?t.concat(e):function(e){return e.concat(t)}}var W=function(t){return l([t2(t)],t.slice(0,-1).reverse(),!0)};function D(t){return function(e){var n=e.length;if(0===n)return[];for(var r=[],i=e[0],u=[i],o=1;o<n;o++){var a=e[o];t.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var F=function(t){return function(e){for(var n={},r=0;r<e.length;r++){var i=e[r],u=t(i);a.e$.call(n,u)?n[u].push(i):n[u]=[i]}return n}},N=function(t){return function(e){return e.slice().sort(t.compare)}},A=function(t,e){return function(n){return t<0||t>n.length?a.YP:a.G(y(t,e,n))}},L=function(t,e){return U(t,function(){return e})},U=function(t,e){return function(n){return p(t,n)?a.YP:a.G(_(t,e(n[t]),n))}},j=x,q=function(t){return[t]},B=function(t,e,n){for(var r=[n(t[0],e[0])],i=Math.min(t.length,e.length),u=1;u<i;u++)r[u]=n(t[u],e[u]);return r},Y=function(t){for(var e=[t[0][0]],n=[t[0][1]],r=1;r<t.length;r++)e[r]=t[r][0],n[r]=t[r][1];return[e,n]},K=function(t){return function(e){for(var n=[t,e[0]],r=1;r<e.length;r++)n.push(t,e[r]);return n}},G=function(t){return function(e){var n=t8(e);return s(n)?(0,u.pipe)(n,K(t),h(t1(e))):j(e)}},z=f.foldMapWithIndex,V=f.foldMap,H=function(t){return function(e){for(var n=x(t(0,t1(e))),r=1;r<e.length;r++)n.push.apply(n,t(r,e[r]));return n}},Z=function(t){return function(e){for(var n=t(e),r=n[0],i=n[1],u=[r],o=i;s(o);){var a=t(o),c=a[0],f=a[1];u.push(c),o=f}return u}},$=function(t){return function(e){var n=Math.max(1,t);return n>=e.length?[j(e),[]]:[(0,u.pipe)(e.slice(1,n),h(t1(e))),e.slice(n)]}},X=function(t){return Z($(t))},J=function(t,e){return(0,u.pipe)(t,ty(e))},Q=function(t,e){return(0,u.pipe)(t,t_(e))},tt=function(t,e){return(0,u.pipe)(t,td(e))},te=function(t,e){return(0,u.pipe)(t,tm(e))},tn=function(t,e,n){return(0,u.pipe)(t,tb(e,n))},tr=function(t){var e=V(t);return function(t,n){return(0,u.pipe)(t,e(n))}},ti=function(t,e,n){return(0,u.pipe)(t,tI(e,n))},tu=function(t){var e=tx(t);return function(t,n){return(0,u.pipe)(t,e(n))}},to=function(t,e){return(0,u.pipe)(t,tp(e))},ta=function(t,e,n){return(0,u.pipe)(t,tT(e,n))},tc=function(t){var e=z(t);return function(t,n){return(0,u.pipe)(t,e(n))}},tf=function(t,e,n){return(0,u.pipe)(t,tS(e,n))},tl=function(t){var e=tR(t);return function(t,n){return(0,u.pipe)(t,e(n))}},ts=function(t){return function(e){return(0,u.pipe)(e,C(t()))}},tp=ts,td=function(t){return th(function(e){return(0,u.pipe)(t,ty(e))})},th=(0,u.dual)(2,function(t,e){return(0,u.pipe)(t,H(function(t,n){return e(n,t)}))}),tm=function(t){return function(e){for(var n=t8(e),r=[t(e)];s(n);)r.push(t(n)),n=t8(n);return r}},tv=tm(u.identity),tg=th(u.identity),ty=function(t){return t_(function(e,n){return t(n)})},t_=function(t){return function(e){for(var n=[t(0,t1(e))],r=1;r<e.length;r++)n.push(t(r,e[r]));return n}},tb=f.reduce,tT=f.reduceWithIndex,tI=f.reduceRight,tS=f.reduceRightWithIndex,tx=function(t){var e=tR(t);return function(t){return e(function(e,n){return t(n)})}},tw=function(t){return tR(t)(function(t,e){return e})},tR=function(t){return function(e){return function(n){for(var r=t.map(e(0,t1(n)),q),i=1;i<n.length;i++)r=t.ap(t.map(r,function(t){return function(e){return(0,u.pipe)(t,v(e))}}),e(i,n[i]));return r}}},tO=f.head,tM="NonEmptyArray",tE=f.getShow,tk=function(){return{concat:P}},tC=f.getEq,tP=function(t){var e=I(t);return{concat:function(t,n){return e(n)(t)}}},tW={URI:tM,map:J},tD=(0,o.flap)(tW),tF={URI:tM,of:q},tN={URI:tM,map:J,mapWithIndex:Q},tA={URI:tM,map:J,ap:tt},tL=(0,r.apFirst)(tA),tU=(0,r.apSecond)(tA),tj={URI:tM,map:J,ap:tt,of:q},tq={URI:tM,map:J,ap:tt,chain:th},tB=(0,i.chainFirst)(tq),tY={URI:tM,map:J,ap:tt,of:q,chain:th},tK={URI:tM,reduce:tn,foldMap:tr,reduceRight:ti},tG={URI:tM,reduce:tn,foldMap:tr,reduceRight:ti,reduceWithIndex:ta,foldMapWithIndex:tc,reduceRightWithIndex:tf},tz={URI:tM,map:J,reduce:tn,foldMap:tr,reduceRight:ti,traverse:tu,sequence:tw},tV={URI:tM,map:J,mapWithIndex:Q,reduce:tn,foldMap:tr,reduceRight:ti,traverse:tu,sequence:tw,reduceWithIndex:ta,foldMapWithIndex:tc,reduceRightWithIndex:tf,traverseWithIndex:tl},tH={URI:tM,map:J,alt:to},tZ={URI:tM,map:J,extend:te,extract:tO},t$=q(a.F4),tX=(0,o.bindTo)(tW),tJ=(0,o.let)(tW),tQ=(0,i.bind)(tq),t0=(0,r.apS)(tA),t1=f.head,t8=function(t){return t.slice(1)},t2=f.last,t7=function(t){return t.slice(0,-1)},t3=f.min,t5=f.max,t4=function(t){return function(e){return e.reduce(t.concat)}},t9=function(t){return function(e){return t(t1(e),t8(e))}},t6=function(t){return function(e){return t(t7(e),t2(e))}},et=function(t){return function(e){return l([t(t1(e))],t8(e),!0)}},ee=function(t){return et(function(){return t})},en=function(t){return function(e){return(0,u.pipe)(t7(e),v(t(t2(e))))}},er=function(t){return en(function(){return t})},ei=f.intercalate,eu=th;function eo(t){var e=N(t),n=D(t);return function(t){return s(t)?n(e(t)):[]}}function ea(t){return ec(function(e,n){return t(n)})}var ec=function(t){return function(e){return w(e.filter(function(e,n){return t(n,e)}))}},ef=E,el=k;function es(t,e){return void 0===e?h(t):(0,u.pipe)(e,h(t))}var ep=function(t,e){return(0,u.pipe)(t,v(e))},ed=K,eh=f.concatAll,em={URI:tM,of:q,map:J,mapWithIndex:Q,ap:tt,chain:th,extend:te,extract:tO,reduce:tn,foldMap:tr,reduceRight:ti,traverse:tu,sequence:tw,reduceWithIndex:ta,foldMapWithIndex:tc,reduceRightWithIndex:tf,traverseWithIndex:tl,alt:to}},20492:function(t,e,n){"use strict";n.r(e),n.d(e,{Alt:function(){return tr},Alternative:function(){return ta},ApT:function(){return t9},Applicative:function(){return z},Apply:function(){return G},Chain:function(){return H},Compactable:function(){return td},Do:function(){return t2},Extend:function(){return tf},Filterable:function(){return ty},Foldable:function(){return Q},FromEither:function(){return tk},Functor:function(){return U},Monad:function(){return Z},MonadThrow:function(){return tM},Pointed:function(){return Y},Traversable:function(){return tT},URI:function(){return W},Witherable:function(){return tR},Zero:function(){return tu},alt:function(){return tn},altW:function(){return te},ap:function(){return K},apFirst:function(){return tj},apS:function(){return t4},apSecond:function(){return tq},as:function(){return j},asUnit:function(){return q},bind:function(){return t5},bindTo:function(){return t7},chain:function(){return ei},chainEitherK:function(){return tV},chainFirst:function(){return eu},chainFirstEitherK:function(){return tH},chainNullableK:function(){return tQ},compact:function(){return tl},duplicate:function(){return tG},elem:function(){return function t(e){return function(n,r){if(void 0===r){var i=t(e);return function(t){return i(n,t)}}return!tP(r)&&e.equals(n,r.value)}}},exists:function(){return t8},extend:function(){return tc},filter:function(){return th},filterMap:function(){return tm},flap:function(){return tU},flatMap:function(){return V},flatten:function(){return tB},fold:function(){return tN},foldMap:function(){return X},foldW:function(){return tD},fromEither:function(){return tE},fromEitherK:function(){return tz},fromNullable:function(){return tZ},fromNullableK:function(){return tJ},fromPredicate:function(){return y},getApplyMonoid:function(){return el},getApplySemigroup:function(){return ef},getEq:function(){return F},getFirstMonoid:function(){return es},getLastMonoid:function(){return ep},getLeft:function(){return _},getMonoid:function(){return A},getOrElse:function(){return tL},getOrElseW:function(){return tA},getOrd:function(){return N},getRefinement:function(){return eo},getRight:function(){return b},getShow:function(){return D},guard:function(){return to},isNone:function(){return tP},isSome:function(){return tC},let:function(){return t3},map:function(){return L},mapNullable:function(){return ea},match:function(){return tF},matchW:function(){return tW},none:function(){return m},of:function(){return B},option:function(){return ec},orElse:function(){return tt},partition:function(){return tv},partitionMap:function(){return tg},reduce:function(){return $},reduceRight:function(){return J},separate:function(){return tp},sequence:function(){return tb},sequenceArray:function(){return er},some:function(){return v},tap:function(){return tY},tapEither:function(){return tK},throwError:function(){return tO},toNullable:function(){return t0},toUndefined:function(){return t1},traverse:function(){return t_},traverseArray:function(){return en},traverseArrayWithIndex:function(){return ee},traverseReadonlyArrayWithIndex:function(){return et},traverseReadonlyNonEmptyArrayWithIndex:function(){return t6},tryCatch:function(){return t$},tryCatchK:function(){return tX},wilt:function(){return tw},wither:function(){return tx},zero:function(){return ti}});var r=n(46111),i=n(42925),u=n(88543),o=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(88491),s=n(3291),p=n(34219),d=n(76511),h=n(28957),m=f.YP,v=f.G;function y(t){return function(e){return t(e)?v(e):m}}var _=function(t){return"Right"===t._tag?m:v(t.left)},b=function(t){return"Left"===t._tag?m:v(t.right)},T=function(t,e){return(0,a.pipe)(t,L(e))},I=function(t,e){return(0,a.pipe)(t,K(e))},S=function(t,e,n){return(0,a.pipe)(t,$(e,n))},x=function(t){var e=X(t);return function(t,n){return(0,a.pipe)(t,e(n))}},w=function(t,e,n){return(0,a.pipe)(t,J(e,n))},R=function(t){var e=t_(t);return function(t,n){return(0,a.pipe)(t,e(n))}},O=function(t,e){return(0,a.pipe)(t,tn(e))},M=function(t,e){return(0,a.pipe)(t,th(e))},E=function(t,e){return(0,a.pipe)(t,tm(e))},k=function(t,e){return(0,a.pipe)(t,tc(e))},C=function(t,e){return(0,a.pipe)(t,tv(e))},P=function(t,e){return(0,a.pipe)(t,tg(e))},W="Option",D=function(t){return{show:function(e){return tP(e)?"none":"some(".concat(t.show(e.value),")")}}},F=function(t){return{equals:function(e,n){return e===n||(tP(e)?tP(n):!tP(n)&&t.equals(e.value,n.value))}}},N=function(t){return{equals:F(t).equals,compare:function(e,n){return e===n?0:tC(e)?tC(n)?t.compare(e.value,n.value):1:-1}}},A=function(t){return{concat:function(e,n){return tP(e)?n:tP(n)?e:v(t.concat(e.value,n.value))},empty:m}},L=function(t){return function(e){return tP(e)?m:v(t(e.value))}},U={URI:W,map:T},j=(0,a.dual)(2,(0,c.as)(U)),q=(0,c.asUnit)(U),B=v,Y={URI:W,of:B},K=function(t){return function(e){return tP(e)?m:tP(t)?m:v(e.value(t.value))}},G={URI:W,map:T,ap:I},z={URI:W,map:T,ap:I,of:B},V=(0,a.dual)(2,function(t,e){return tP(t)?m:e(t.value)}),H={URI:W,map:T,ap:I,chain:V},Z={URI:W,map:T,ap:I,of:B,chain:V},$=function(t,e){return function(n){return tP(n)?t:e(t,n.value)}},X=function(t){return function(e){return function(n){return tP(n)?t.empty:e(n.value)}}},J=function(t,e){return function(n){return tP(n)?t:e(n.value,t)}},Q={URI:W,reduce:S,foldMap:x,reduceRight:w},tt=(0,a.dual)(2,function(t,e){return tP(t)?e():t}),te=tt,tn=tt,tr={URI:W,map:T,alt:O},ti=function(){return m},tu={URI:W,zero:ti},to=(0,h.guard)(tu,Y),ta={URI:W,map:T,ap:I,of:B,alt:O,zero:ti},tc=function(t){return function(e){return tP(e)?m:v(t(e))}},tf={URI:W,map:T,extend:k},tl=V(a.identity),ts=(0,p.separated)(m,m),tp=function(t){return tP(t)?ts:(0,p.separated)(_(t.value),b(t.value))},td={URI:W,compact:tl,separate:tp},th=function(t){return function(e){return tP(e)?m:t(e.value)?e:m}},tm=function(t){return function(e){return tP(e)?m:t(e.value)}},tv=function(t){return function(e){return(0,p.separated)(M(e,(0,l.not)(t)),M(e,t))}},tg=function(t){return(0,a.flow)(L(t),tp)},ty={URI:W,map:T,compact:tl,separate:tp,filter:M,filterMap:E,partition:C,partitionMap:P},t_=function(t){return function(e){return function(n){return tP(n)?t.of(m):t.map(e(n.value),v)}}},tb=function(t){return function(e){return tP(e)?t.of(m):t.map(e.value,v)}},tT={URI:W,map:T,reduce:S,foldMap:x,reduceRight:w,traverse:R,sequence:tb},tI=(0,d.witherDefault)(tT,td),tS=(0,d.wiltDefault)(tT,td),tx=function(t){var e=tI(t);return function(t){return function(n){return e(n,t)}}},tw=function(t){var e=tS(t);return function(t){return function(n){return e(n,t)}}},tR={URI:W,map:T,reduce:S,foldMap:x,reduceRight:w,traverse:R,sequence:tb,compact:tl,separate:tp,filter:M,filterMap:E,partition:C,partitionMap:P,wither:tI,wilt:tS},tO=function(){return m},tM={URI:W,map:T,ap:I,of:B,chain:V,throwError:tO},tE=b,tk={URI:W,fromEither:tE},tC=f.pC,tP=function(t){return"None"===t._tag},tW=function(t,e){return function(n){return tP(n)?t():e(n.value)}},tD=tW,tF=tW,tN=tF,tA=function(t){return function(e){return tP(e)?t():e.value}},tL=tA,tU=(0,c.flap)(U),tj=(0,i.apFirst)(G),tq=(0,i.apSecond)(G),tB=tl,tY=(0,a.dual)(2,u.tap(H)),tK=(0,a.dual)(2,(0,o.tapEither)(tk,H)),tG=tc(a.identity),tz=(0,o.fromEitherK)(tk),tV=(0,o.chainEitherK)(tk,H),tH=tK,tZ=function(t){return null==t?m:v(t)},t$=function(t){try{return v(t())}catch(e){return m}},tX=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t$(function(){return t.apply(void 0,e)})}},tJ=function(t){return(0,a.flow)(t,tZ)},tQ=function(t){return function(e){return tP(e)?m:tZ(t(e.value))}},t0=tF(a.constNull,a.identity),t1=tF(a.constUndefined,a.identity),t8=function(t){return function(e){return!tP(e)&&t(e.value)}},t2=B(f.F4),t7=(0,c.bindTo)(U),t3=(0,c.let)(U),t5=u.bind(H),t4=(0,i.apS)(G),t9=B(f.Xl),t6=function(t){return function(e){var n=t(0,f.YM(e));if(tP(n))return m;for(var r=[n.value],i=1;i<e.length;i++){var u=t(i,e[i]);if(tP(u))return m;r.push(u.value)}return v(r)}},et=function(t){var e=t6(t);return function(t){return f.Od(t)?e(t):t9}},ee=et,en=function(t){return et(function(e,n){return t(n)})},er=en(a.identity),ei=V,eu=tY;function eo(t){return function(e){return tC(t(e))}}var ea=tQ,ec={URI:W,map:T,of:B,ap:I,chain:V,reduce:S,foldMap:x,reduceRight:w,traverse:R,sequence:tb,zero:ti,alt:O,extend:k,compact:tl,separate:tp,filter:M,filterMap:E,partition:C,partitionMap:P,wither:tI,wilt:tS,throwError:tO},ef=(0,i.getApplySemigroup)(G),el=(0,r.getApplicativeMonoid)(z),es=function(){return A((0,s.first)())},ep=function(){return A((0,s.last)())}},5586:function(t,e,n){"use strict";n.r(e),n.d(e,{Contravariant:function(){return d},URI:function(){return l},between:function(){return x},clamp:function(){return S},contramap:function(){return f},equals:function(){return m},equalsDefault:function(){return u},fromCompare:function(){return o},geq:function(){return b},getDualOrd:function(){return R},getMonoid:function(){return p},getSemigroup:function(){return s},getTupleOrd:function(){return w},gt:function(){return y},leq:function(){return _},lt:function(){return v},max:function(){return I},min:function(){return T},ord:function(){return O},ordBoolean:function(){return E},ordDate:function(){return P},ordNumber:function(){return C},ordString:function(){return k},reverse:function(){return c},trivial:function(){return h},tuple:function(){return a}});var r=n(65191),i=n(42275),u=function(t){return function(e,n){return e===n||0===t(e,n)}},o=function(t){return{equals:u(t),compare:function(e,n){return e===n?0:t(e,n)}}},a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(function(e,n){for(var r=0;r<t.length-1;r++){var i=t[r].compare(e[r],n[r]);if(0!==i)return i}return t[r].compare(e[r],n[r])})},c=function(t){return o(function(e,n){return t.compare(n,e)})},f=function(t){return function(e){return o(function(n,r){return e.compare(t(n),t(r))})}},l="Ord",s=function(){return{concat:function(t,e){return o(function(n,r){var i=t.compare(n,r);return 0!==i?i:e.compare(n,r)})}}},p=function(){return{concat:s().concat,empty:o(function(){return 0})}},d={URI:l,contramap:function(t,e){return(0,i.pipe)(t,f(e))}},h={equals:i.constTrue,compare:(0,i.constant)(0)},m=function(t){return function(e){return function(n){return n===e||0===t.compare(n,e)}}},v=function(t){return function(e,n){return -1===t.compare(e,n)}},y=function(t){return function(e,n){return 1===t.compare(e,n)}},_=function(t){return function(e,n){return 1!==t.compare(e,n)}},b=function(t){return function(e,n){return -1!==t.compare(e,n)}},T=function(t){return function(e,n){return e===n||1>t.compare(e,n)?e:n}},I=function(t){return function(e,n){return e===n||t.compare(e,n)>-1?e:n}},S=function(t){var e=T(t),n=I(t);return function(t,r){return function(i){return n(e(i,r),t)}}},x=function(t){var e=v(t),n=y(t);return function(t,r){return function(i){return!(e(i,t)||n(i,r))}}},w=a,R=c,O=d,M={equals:r.eqStrict.equals,compare:function(t,e){return t<e?-1:t>e?1:0}},E=M,k=M,C=M,P=(0,i.pipe)(C,f(function(t){return t.valueOf()}))},88491:function(t,e,n){"use strict";n.r(e),n.d(e,{Contravariant:function(){return l},URI:function(){return u},and:function(){return d},contramap:function(){return i},getMonoidAll:function(){return f},getMonoidAny:function(){return a},getSemigroupAll:function(){return c},getSemigroupAny:function(){return o},not:function(){return s},or:function(){return p}});var r=n(42275),i=function(t){return function(e){return(0,r.flow)(t,e)}},u="Predicate",o=function(){return{concat:function(t,e){return(0,r.pipe)(t,p(e))}}},a=function(){return{concat:o().concat,empty:r.constFalse}},c=function(){return{concat:function(t,e){return(0,r.pipe)(t,d(e))}}},f=function(){return{concat:c().concat,empty:r.constTrue}},l={URI:u,contramap:function(t,e){return(0,r.pipe)(t,i(e))}},s=function(t){return function(e){return!t(e)}},p=function(t){return function(e){return function(n){return e(n)||t(n)}}},d=function(t){return function(e){return function(n){return e(n)&&t(n)}}}},31583:function(t,e,n){"use strict";n.r(e),n.d(e,{Alt:function(){return ez},Alternative:function(){return eZ},Applicative:function(){return eq},Apply:function(){return eL},Chain:function(){return eB},ChainRecBreadthFirst:function(){return e4},ChainRecDepthFirst:function(){return e3},Compactable:function(){return eX},Do:function(){return nh},Extend:function(){return e$},Filterable:function(){return eJ},FilterableWithIndex:function(){return eQ},Foldable:function(){return e0},FoldableWithIndex:function(){return e1},FromEither:function(){return nn},Functor:function(){return eD},FunctorWithIndex:function(){return eA},Monad:function(){return eY},Pointed:function(){return eN},Traversable:function(){return e8},TraversableWithIndex:function(){return e2},URI:function(){return ex},Unfoldable:function(){return eG},Witherable:function(){return nt},Zero:function(){return eV},_chainRecBreadthFirst:function(){return t0},_chainRecDepthFirst:function(){return tQ},alt:function(){return t7},altW:function(){return t2},ap:function(){return t3},apFirst:function(){return eU},apS:function(){return ny},apSecond:function(){return ej},append:function(){return I},appendW:function(){return S},bind:function(){return ng},bindTo:function(){return nm},chain:function(){return n_},chainFirst:function(){return eK},chainRecBreadthFirst:function(){return e5},chainRecDepthFirst:function(){return e7},chainWithIndex:function(){return A},chop:function(){return tI},chunksOf:function(){return tx},compact:function(){return ei},comprehension:function(){return tR},concat:function(){return tM},concatW:function(){return tO},cons:function(){return nT},deleteAt:function(){return tc},difference:function(){return tC},dropLeft:function(){return X},dropLeftWhile:function(){return Q},dropRight:function(){return J},duplicate:function(){return es},elem:function(){return t_},empty:function(){return nf},every:function(){return nl},exists:function(){return np},extend:function(){return el},filter:function(){return ee},filterE:function(){return ne},filterMap:function(){return er},filterMapWithIndex:function(){return en},filterWithIndex:function(){return ef},findFirst:function(){return te},findFirstMap:function(){return tn},findIndex:function(){return tt},findLast:function(){return tr},findLastIndex:function(){return tu},findLastMap:function(){return ti},flap:function(){return eF},flatMap:function(){return t5},flatten:function(){return t4},foldLeft:function(){return W},foldMap:function(){return eh},foldMapWithIndex:function(){return ep},foldRight:function(){return N},fromArray:function(){return nc},fromEither:function(){return M},fromEitherK:function(){return nr},fromOption:function(){return O},fromOptionK:function(){return tw},fromPredicate:function(){return R},getDifferenceMagma:function(){return eW},getEq:function(){return eM},getIntersectionSemigroup:function(){return eP},getMonoid:function(){return eO},getOrd:function(){return eE},getSemigroup:function(){return eR},getShow:function(){return ew},getUnionMonoid:function(){return eC},getUnionSemigroup:function(){return ek},guard:function(){return eH},head:function(){return B},init:function(){return G},insertAt:function(){return to},intercalate:function(){return nd},intersection:function(){return tk},intersperse:function(){return tg},isEmpty:function(){return y},isNonEmpty:function(){return _},isOutOfBound:function(){return q},last:function(){return Y},lefts:function(){return tp},let:function(){return nv},lookup:function(){return function t(e,n){return void 0===n?function(n){return t(e,n)}:q(e,n)?f.YP:f.G(n[e])}},makeBy:function(){return x},map:function(){return t9},mapWithIndex:function(){return t6},match:function(){return k},matchLeft:function(){return P},matchLeftW:function(){return C},matchRight:function(){return F},matchRightW:function(){return D},matchW:function(){return E},modifyAt:function(){return tf},of:function(){return t1},partition:function(){return eu},partitionMap:function(){return ea},partitionMapWithIndex:function(){return ec},partitionWithIndex:function(){return eo},prepend:function(){return b},prependAll:function(){return tv},prependToAll:function(){return nS},prependW:function(){return T},range:function(){return nb},readonlyArray:function(){return nx},reduce:function(){return ed},reduceRight:function(){return ev},reduceRightWithIndex:function(){return eg},reduceWithIndex:function(){return em},replicate:function(){return w},reverse:function(){return tl},rights:function(){return ts},rotate:function(){return ty},scanLeft:function(){return L},scanRight:function(){return U},separate:function(){return et},sequence:function(){return e_},size:function(){return j},snoc:function(){return nI},some:function(){return ns},sort:function(){return td},sortBy:function(){return tT},spanLeft:function(){return $},splitAt:function(){return tS},tail:function(){return K},takeLeft:function(){return z},takeLeftWhile:function(){return H},takeRight:function(){return V},toArray:function(){return na},traverse:function(){return ey},traverseWithIndex:function(){return eb},unfold:function(){return eS},union:function(){return tE},uniq:function(){return tb},unsafeDeleteAt:function(){return no},unsafeInsertAt:function(){return ni},unsafeUpdateAt:function(){return nu},unzip:function(){return tm},updateAt:function(){return ta},wilt:function(){return eI},wither:function(){return eT},zero:function(){return t8},zip:function(){return function t(e,n){return void 0===n?function(n){return t(n,e)}:th(e,n,function(t,e){return[t,e]})}},zipWith:function(){return th}});var r=n(42925),i=n(88543),u=n(65191),o=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(76627),s=n(5586),p=n(28350),d=n(34219),h=n(76511),m=n(28957),v=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},y=function(t){return 0===t.length},_=p.isNonEmpty,b=p.prepend,T=p.prependW,I=p.append,S=p.appendW,x=function(t,e){return t<=0?nf:p.makeBy(e)(t)},w=function(t,e){return x(t,function(){return e})};function R(t){return function(e){return t(e)?[e]:nf}}var O=function(t){return f.Wi(t)?nf:[t.value]},M=function(t){return f.nM(t)?nf:[t.right]},E=function(t,e){return function(n){return _(n)?e(n):t()}},k=E,C=function(t,e){return function(n){return _(n)?e(p.head(n),p.tail(n)):t()}},P=C,W=P,D=function(t,e){return function(n){return _(n)?e(p.init(n),p.last(n)):t()}},F=D,N=F,A=function(t){return function(e){if(y(e))return nf;for(var n=[],r=0;r<e.length;r++)n.push.apply(n,t(r,e[r]));return n}},L=function(t,e){return function(n){var r=n.length,i=Array(r+1);i[0]=t;for(var u=0;u<r;u++)i[u+1]=e(i[u],n[u]);return i}},U=function(t,e){return function(n){var r=n.length,i=Array(r+1);i[r]=t;for(var u=r-1;u>=0;u--)i[u]=e(n[u],i[u+1]);return i}},j=function(t){return t.length},q=p.isOutOfBound,B=function(t){return _(t)?f.G(p.head(t)):f.YP},Y=function(t){return _(t)?f.G(p.last(t)):f.YP},K=function(t){return _(t)?f.G(p.tail(t)):f.YP},G=function(t){return _(t)?f.G(p.init(t)):f.YP},z=function(t){return function(e){return q(t,e)?e:0===t?nf:e.slice(0,t)}},V=function(t){return function(e){return q(t,e)?e:0===t?nf:e.slice(-t)}};function H(t){return function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r];if(!t(i))break;n.push(i)}var u=n.length;return u===e.length?e:0===u?nf:n}}var Z=function(t,e){for(var n=t.length,r=0;r<n&&e(t[r]);r++);return r};function $(t){return function(e){var n,r=tS(Z(e,t))(e);return{init:r[0],rest:r[1]}}}var X=function(t){return function(e){return t<=0||y(e)?e:t>=e.length?nf:e.slice(t,e.length)}},J=function(t){return function(e){return t<=0||y(e)?e:t>=e.length?nf:e.slice(0,e.length-t)}};function Q(t){return function(e){var n=Z(e,t);return 0===n?e:n===e.length?nf:e.slice(n)}}var tt=function(t){return function(e){for(var n=0;n<e.length;n++)if(t(e[n]))return f.G(n);return f.YP}};function te(t){return function(e){for(var n=0;n<e.length;n++)if(t(e[n]))return f.G(e[n]);return f.YP}}var tn=function(t){return function(e){for(var n=0;n<e.length;n++){var r=t(e[n]);if(f.pC(r))return r}return f.YP}};function tr(t){return function(e){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return f.G(e[n]);return f.YP}}var ti=function(t){return function(e){for(var n=e.length-1;n>=0;n--){var r=t(e[n]);if(f.pC(r))return r}return f.YP}},tu=function(t){return function(e){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return f.G(n);return f.YP}},to=function(t,e){return function(n){return t<0||t>n.length?f.YP:f.G(p.unsafeInsertAt(t,e,n))}},ta=function(t,e){return tf(t,function(){return e})},tc=function(t){return function(e){return q(t,e)?f.YP:f.G(no(t,e))}},tf=function(t,e){return function(n){return q(t,n)?f.YP:f.G(nu(t,e(n[t]),n))}},tl=function(t){return t.length<=1?t:t.slice().reverse()},ts=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];"Right"===r._tag&&e.push(r.right)}return e},tp=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];"Left"===r._tag&&e.push(r.left)}return e},td=function(t){return function(e){return e.length<=1?e:e.slice().sort(t.compare)}},th=function(t,e,n){for(var r=[],i=Math.min(t.length,e.length),u=0;u<i;u++)r[u]=n(t[u],e[u]);return r},tm=function(t){for(var e=[],n=[],r=0;r<t.length;r++)e[r]=t[r][0],n[r]=t[r][1];return[e,n]},tv=function(t){var e=p.prependAll(t);return function(t){return _(t)?e(t):t}},tg=function(t){var e=p.intersperse(t);return function(t){return _(t)?e(t):t}},ty=function(t){var e=p.rotate(t);return function(t){return _(t)?e(t):t}};function t_(t){return function(e,n){if(void 0===n){var r,i=t_(t);return function(t){return i(e,t)}}for(var u=0;u<n.length;u++)if(r=n[u],t.equals(r,e))return!0;return!1}}var tb=function(t){var e=p.uniq(t);return function(t){return _(t)?e(t):t}},tT=function(t){var e=p.sortBy(t);return function(t){return _(t)?e(t):t}},tI=function(t){var e=p.chop(t);return function(t){return _(t)?e(t):nf}},tS=function(t){return function(e){return t>=1&&_(e)?p.splitAt(t)(e):y(e)?[e,nf]:[nf,e]}},tx=function(t){var e=p.chunksOf(t);return function(t){return _(t)?e(t):nf}},tw=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return O(t.apply(void 0,e))}};function tR(t,e,n){void 0===n&&(n=function(){return!0});var r=function(t,i){return _(i)?t5(p.head(i),function(e){return r((0,a.pipe)(t,I(e)),p.tail(i))}):n.apply(void 0,t)?[e.apply(void 0,t)]:nf};return r(nf,t)}var tO=function(t){return function(e){return y(e)?t:y(t)?e:e.concat(t)}},tM=tO;function tE(t){var e=p.union(t);return function(n,r){if(void 0===r){var i=tE(t);return function(t){return i(t,n)}}return _(n)&&_(r)?e(r)(n):_(n)?n:r}}function tk(t){var e=t_(t);return function(n,r){if(void 0===r){var i=tk(t);return function(t){return i(t,n)}}return n.filter(function(t){return e(t,r)})}}function tC(t){var e=t_(t);return function(n,r){if(void 0===r){var i=tC(t);return function(t){return i(t,n)}}return n.filter(function(t){return!e(t,r)})}}var tP=function(t,e){return(0,a.pipe)(t,t9(e))},tW=function(t,e){return(0,a.pipe)(t,t6(e))},tD=function(t,e){return(0,a.pipe)(t,t3(e))},tF=function(t,e){return(0,a.pipe)(t,ee(e))},tN=function(t,e){return(0,a.pipe)(t,er(e))},tA=function(t,e){return(0,a.pipe)(t,eu(e))},tL=function(t,e){return(0,a.pipe)(t,ea(e))},tU=function(t,e){return(0,a.pipe)(t,eo(e))},tj=function(t,e){return(0,a.pipe)(t,ec(e))},tq=function(t,e){return(0,a.pipe)(t,t7(e))},tB=function(t,e,n){return(0,a.pipe)(t,ed(e,n))},tY=function(t){var e=eh(t);return function(t,n){return(0,a.pipe)(t,e(n))}},tK=function(t,e,n){return(0,a.pipe)(t,ev(e,n))},tG=function(t,e,n){return(0,a.pipe)(t,em(e,n))},tz=function(t){var e=ep(t);return function(t,n){return(0,a.pipe)(t,e(n))}},tV=function(t,e,n){return(0,a.pipe)(t,eg(e,n))},tH=function(t,e){return(0,a.pipe)(t,en(e))},tZ=function(t,e){return(0,a.pipe)(t,ef(e))},t$=function(t,e){return(0,a.pipe)(t,el(e))},tX=function(t){var e=ey(t);return function(t,n){return(0,a.pipe)(t,e(n))}},tJ=function(t){var e=eb(t);return function(t,n){return(0,a.pipe)(t,e(n))}},tQ=function(t,e){return(0,a.pipe)(t,e7(e))},t0=function(t,e){return(0,a.pipe)(t,e5(e))},t1=p.of,t8=function(){return nf},t2=function(t){return function(e){return e.concat(t())}},t7=t2,t3=function(t){return t5(function(e){return(0,a.pipe)(t,t9(e))})},t5=(0,a.dual)(2,function(t,e){return(0,a.pipe)(t,A(function(t,n){return e(n,t)}))}),t4=t5(a.identity),t9=function(t){return function(e){return e.map(function(e){return t(e)})}},t6=function(t){return function(e){return e.map(function(e,n){return t(n,e)})}},et=function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];"Left"===i._tag?e.push(i.left):n.push(i.right)}return(0,d.separated)(e,n)},ee=function(t){return function(e){return e.filter(t)}},en=function(t){return function(e){for(var n=[],r=0;r<e.length;r++){var i=t(r,e[r]);f.pC(i)&&n.push(i.value)}return n}},er=function(t){return en(function(e,n){return t(n)})},ei=er(a.identity),eu=function(t){return eo(function(e,n){return t(n)})},eo=function(t){return function(e){for(var n=[],r=[],i=0;i<e.length;i++){var u=e[i];t(i,u)?r.push(u):n.push(u)}return(0,d.separated)(n,r)}},ea=function(t){return ec(function(e,n){return t(n)})},ec=function(t){return function(e){for(var n=[],r=[],i=0;i<e.length;i++){var u=t(i,e[i]);"Left"===u._tag?n.push(u.left):r.push(u.right)}return(0,d.separated)(n,r)}},ef=function(t){return function(e){return e.filter(function(e,n){return t(n,e)})}},el=function(t){return function(e){return e.map(function(n,r){return t(e.slice(r))})}},es=el(a.identity),ep=function(t){return function(e){return function(n){return n.reduce(function(n,r,i){return t.concat(n,e(i,r))},t.empty)}}},ed=function(t,e){return em(t,function(t,n,r){return e(n,r)})},eh=function(t){var e=ep(t);return function(t){return e(function(e,n){return t(n)})}},em=function(t,e){return function(n){for(var r=n.length,i=t,u=0;u<r;u++)i=e(u,i,n[u]);return i}},ev=function(t,e){return eg(t,function(t,n,r){return e(n,r)})},eg=function(t,e){return function(n){return n.reduceRight(function(t,n,r){return e(r,n,t)},t)}},ey=function(t){var e=eb(t);return function(t){return e(function(e,n){return t(n)})}},e_=function(t){return function(e){return tB(e,t.of(t8()),function(e,n){return t.ap(t.map(e,function(t){return function(e){return(0,a.pipe)(t,I(e))}}),n)})}},eb=function(t){return function(e){return em(t.of(t8()),function(n,r,i){return t.ap(t.map(r,function(t){return function(e){return(0,a.pipe)(t,I(e))}}),e(n,i))})}},eT=function(t){var e=e9(t);return function(t){return function(n){return e(n,t)}}},eI=function(t){var e=e6(t);return function(t){return function(n){return e(n,t)}}},eS=function(t,e){for(var n=[],r=t;;){var i=e(r);if(f.pC(i)){var u=i.value,o=u[0],a=u[1];n.push(o),r=a}else break}return n},ex="ReadonlyArray",ew=function(t){return{show:function(e){return"[".concat(e.map(t.show).join(", "),"]")}}},eR=function(){return{concat:function(t,e){return y(t)?e:y(e)?t:t.concat(e)}}},eO=function(){return{concat:eR().concat,empty:nf}},eM=function(t){return(0,u.fromEquals)(function(e,n){return e.length===n.length&&e.every(function(e,r){return t.equals(e,n[r])})})},eE=function(t){return(0,s.fromCompare)(function(e,n){for(var r=e.length,i=n.length,u=Math.min(r,i),o=0;o<u;o++){var a=t.compare(e[o],n[o]);if(0!==a)return a}return l.Ord.compare(r,i)})},ek=function(t){var e=tE(t);return{concat:function(t,n){return e(n)(t)}}},eC=function(t){return{concat:ek(t).concat,empty:nf}},eP=function(t){var e=tk(t);return{concat:function(t,n){return e(n)(t)}}},eW=function(t){var e=tC(t);return{concat:function(t,n){return e(n)(t)}}},eD={URI:ex,map:tP},eF=(0,c.flap)(eD),eN={URI:ex,of:t1},eA={URI:ex,map:tP,mapWithIndex:tW},eL={URI:ex,map:tP,ap:tD},eU=(0,r.apFirst)(eL),ej=(0,r.apSecond)(eL),eq={URI:ex,map:tP,ap:tD,of:t1},eB={URI:ex,map:tP,ap:tD,chain:t5},eY={URI:ex,map:tP,ap:tD,of:t1,chain:t5},eK=(0,i.chainFirst)(eB),eG={URI:ex,unfold:eS},ez={URI:ex,map:tP,alt:tq},eV={URI:ex,zero:t8},eH=(0,m.guard)(eV,eN),eZ={URI:ex,map:tP,ap:tD,of:t1,alt:tq,zero:t8},e$={URI:ex,map:tP,extend:t$},eX={URI:ex,compact:ei,separate:et},eJ={URI:ex,map:tP,compact:ei,separate:et,filter:tF,filterMap:tN,partition:tA,partitionMap:tL},eQ={URI:ex,map:tP,mapWithIndex:tW,compact:ei,separate:et,filter:tF,filterMap:tN,partition:tA,partitionMap:tL,partitionMapWithIndex:tj,partitionWithIndex:tU,filterMapWithIndex:tH,filterWithIndex:tZ},e0={URI:ex,reduce:tB,foldMap:tY,reduceRight:tK},e1={URI:ex,reduce:tB,foldMap:tY,reduceRight:tK,reduceWithIndex:tG,foldMapWithIndex:tz,reduceRightWithIndex:tV},e8={URI:ex,map:tP,reduce:tB,foldMap:tY,reduceRight:tK,traverse:tX,sequence:e_},e2={URI:ex,map:tP,mapWithIndex:tW,reduce:tB,foldMap:tY,reduceRight:tK,reduceWithIndex:tG,foldMapWithIndex:tz,reduceRightWithIndex:tV,traverse:tX,sequence:e_,traverseWithIndex:tJ},e7=function(t){return function(e){for(var n=v([],t(e),!0),r=[];n.length>0;){var i=n.shift();f.nM(i)?n.unshift.apply(n,t(i.left)):r.push(i.right)}return r}},e3={URI:ex,map:tP,ap:tD,chain:t5,chainRec:tQ},e5=function(t){return function(e){var n=t(e),r=[],i=[];function u(e){f.nM(e)?t(e.left).forEach(function(t){return r.push(t)}):i.push(e.right)}for(var o=0;o<n.length;o++)u(n[o]);for(;r.length>0;)u(r.shift());return i}},e4={URI:ex,map:tP,ap:tD,chain:t5,chainRec:t0},e9=(0,h.witherDefault)(e8,eX),e6=(0,h.wiltDefault)(e8,eX),nt={URI:ex,map:tP,compact:ei,separate:et,filter:tF,filterMap:tN,partition:tA,partitionMap:tL,reduce:tB,foldMap:tY,reduceRight:tK,traverse:tX,sequence:e_,wither:e9,wilt:e6},ne=(0,h.filterE)(nt),nn={URI:ex,fromEither:M},nr=(0,o.fromEitherK)(nn),ni=p.unsafeInsertAt,nu=function(t,e,n){return _(n)?p.unsafeUpdateAt(t,e,n):n},no=function(t,e){var n=e.slice();return n.splice(t,1),n},na=function(t){return t.slice()},nc=function(t){return y(t)?nf:t.slice()},nf=p.empty;function nl(t){return function(e){return e.every(t)}}var ns=function(t){return function(e){return e.some(t)}},np=ns,nd=function(t){var e=p.intercalate(t);return function(n){return k(function(){return t.empty},e(n))}},nh=t1(f.F4),nm=(0,c.bindTo)(eD),nv=(0,c.let)(eD),ng=(0,i.bind)(eB),ny=(0,r.apS)(eL),n_=t5,nb=p.range,nT=p.cons,nI=p.snoc,nS=tv,nx={URI:ex,compact:ei,separate:et,map:tP,ap:tD,of:t1,chain:t5,filter:tF,filterMap:tN,partition:tA,partitionMap:tL,mapWithIndex:tW,partitionMapWithIndex:tj,partitionWithIndex:tU,filterMapWithIndex:tH,filterWithIndex:tZ,alt:tq,zero:t8,unfold:eS,reduce:tB,foldMap:tY,reduceRight:tK,traverse:tX,sequence:e_,reduceWithIndex:tG,foldMapWithIndex:tz,reduceRightWithIndex:tV,traverseWithIndex:tJ,extend:t$,wither:e9,wilt:e6}},13512:function(t,e,n){"use strict";n.r(e),n.d(e,{Compactable:function(){return tp},Filterable:function(){return td},Functor:function(){return tf},URI:function(){return tr},collect:function(){return _},compact:function(){return Z},deleteAt:function(){return S},difference:function(){return tO},elem:function(){return function t(e){return function(n,r){if(void 0===r){var i,u=t(e);return function(t){return u(n,t)}}for(var o=r.values();!(i=o.next()).done;){var a=i.value;if(e.equals(n,a))return!0}return!1}}},empty:function(){return k},filter:function(){return $},filterMap:function(){return X},filterMapWithIndex:function(){return L},filterWithIndex:function(){return U},flap:function(){return tl},foldMap:function(){return tm},foldMapWithIndex:function(){return t_},fromFoldable:function(){return D},fromMap:function(){return l},getDifferenceMagma:function(){return ta},getEq:function(){return C},getFilterableWithIndex:function(){return tc},getFoldable:function(){return tg},getFoldableWithIndex:function(){return tT},getFunctorWithIndex:function(){return ts},getIntersectionSemigroup:function(){return to},getMonoid:function(){return P},getShow:function(){return p},getTraversable:function(){return tI},getTraversableWithIndex:function(){return tS},getUnionMonoid:function(){return tu},getUnionSemigroup:function(){return ti},getWitherable:function(){return tx},insertAt:function(){return tM},intersection:function(){return tR},isEmpty:function(){return h},isSubmap:function(){return E},keys:function(){return v},lookup:function(){return M},lookupWithKey:function(){return O},map:function(){return J},mapWithIndex:function(){return Q},member:function(){return m},modifyAt:function(){return w},partition:function(){return tt},partitionMap:function(){return te},partitionMapWithIndex:function(){return N},partitionWithIndex:function(){return A},pop:function(){return R},readonlyMap:function(){return tE},reduce:function(){return th},reduceRight:function(){return tv},reduceRightWithIndex:function(){return tb},reduceWithIndex:function(){return ty},separate:function(){return tn},singleton:function(){return W},size:function(){return d},toMap:function(){return s},toReadonlyArray:function(){return b},toUnfoldable:function(){return T},union:function(){return tw},updateAt:function(){return x},upsertAt:function(){return I},values:function(){return y}});var r=n(65191),i=n(42275),u=n(67560),o=n(97963),a=n(20492),c=n(34219),f=n(76511),l=function(t){return new Map(t)};function s(t){return new Map(t)}function p(t,e){return{show:function(n){var r=[];return n.forEach(function(n,i){r.push("[".concat(t.show(i),", ").concat(e.show(n),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var d=function(t){return t.size},h=function(t){return 0===t.size};function m(t){var e=M(t);return function(n,r){if(void 0===r){var i=m(t);return function(t){return i(n,t)}}return o.pC(e(n,r))}}var v=function(t){return function(e){return Array.from(e.keys()).sort(t.compare)}},y=function(t){return function(e){return Array.from(e.values()).sort(t.compare)}};function _(t){var e=v(t);return function(t){return function(n){for(var r=[],i=e(n),u=0;u<i.length;u++){var o=i[u];r.push(t(o,n.get(o)))}return r}}}var b=function(t){return _(t)(function(t,e){return[t,e]})};function T(t,e){var n=b(t);return function(t){var r=n(t),i=r.length;return e.unfold(0,function(t){return t<i?o.G([r[t],t+1]):o.YP})}}var I=function(t){var e=O(t);return function(t,n){var r=e(t);return function(e){var i=r(e);if(o.Wi(i)){var u=new Map(e);return u.set(t,n),u}if(i.value[1]!==n){var u=new Map(e);return u.set(i.value[0],n),u}return e}}},S=function(t){var e=O(t);return function(t){return function(n){var r=e(t,n);if(o.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},x=function(t){var e=w(t);return function(t,n){return e(t,function(){return n})}},w=function(t){var e=O(t);return function(t,n){return function(r){var i=e(t,r);if(o.Wi(i))return o.YP;var u=i.value,a=u[0],c=u[1],f=n(c);if(f===c)return o.G(r);var l=new Map(r);return l.set(a,f),o.G(l)}}};function R(t){var e=M(t),n=S(t);return function(t){var r=n(t);return function(n){return(0,i.pipe)(e(t,n),a.map(function(t){return[t,r(n)]}))}}}function O(t){return function(e,n){if(void 0===n){var r,i=O(t);return function(t){return i(e,t)}}for(var u=n.entries();!(r=u.next()).done;){var a=r.value,c=a[0],f=a[1];if(t.equals(c,e))return o.G([c,f])}return o.YP}}function M(t){var e=O(t);return function(n,r){if(void 0===r){var u=M(t);return function(t){return u(n,t)}}return(0,i.pipe)(e(n,r),a.map(function(t){return t[0],t[1]}))}}function E(t,e){var n=O(t);return function(r,i){if(void 0===i){var u,a=E(t,e);return function(t){return a(t,r)}}for(var c=r.entries();!(u=c.next()).done;){var f=u.value,l=f[0],s=f[1],p=n(l,i);if(o.Wi(p)||!t.equals(l,p.value[0])||!e.equals(s,p.value[1]))return!1}return!0}}var k=new Map;function C(t,e){var n=E(t,e);return(0,r.fromEquals)(function(t,e){return n(t,e)&&n(e,t)})}function P(t,e){var n=O(t);return{concat:function(t,r){if(h(t))return r;if(h(r))return t;for(var i,u=new Map(t),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],s=n(f,t);o.pC(s)?u.set(s.value[0],e.concat(s.value[1],l)):u.set(f,l)}return u},empty:k}}var W=function(t,e){return new Map([[t,e]])};function D(t,e,n){return function(r){var i=O(t);return n.reduce(r,new Map,function(t,n){var r=n[0],u=n[1],a=i(r,t);return o.pC(a)?t.set(a.value[0],e.concat(a.value[1],u)):t.set(r,u),t})}}var F=function(t,e){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var u=n.value,o=u[0],a=u[1];r.set(o,e(o,a))}return r},N=function(t){return function(e){for(var n,r=new Map,i=new Map,u=e.entries();!(n=u.next()).done;){var a=n.value,f=a[0],l=t(f,a[1]);o.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function A(t){return function(e){for(var n,r=new Map,i=new Map,u=e.entries();!(n=u.next()).done;){var o=n.value,a=o[0],f=o[1];t(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var L=function(t){return function(e){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var u=n.value,a=u[0],c=t(a,u[1]);o.pC(c)&&r.set(a,c.value)}return r}};function U(t){return function(e){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var u=n.value,o=u[0],a=u[1];t(o,a)&&r.set(o,a)}return r}}var j=function(t,e){return F(t,function(t,n){return e(n)})},q=function(t,e){return G(t,function(t,n){return e(n)})},B=function(t,e){return z(t,function(t,n){return e(n)})},Y=function(t,e){return V(t,function(t,n){return e(n)})},K=function(t,e){return H(t,function(t,n){return e(n)})},G=function(t,e){return(0,i.pipe)(t,U(e))},z=function(t,e){return(0,i.pipe)(t,L(e))},V=function(t,e){return(0,i.pipe)(t,A(e))},H=function(t,e){return(0,i.pipe)(t,N(e))},Z=function(t){for(var e,n=new Map,r=t.entries();!(e=r.next()).done;){var i=e.value,u=i[0],a=i[1];o.pC(a)&&n.set(u,a.value)}return n},$=function(t){return function(e){return q(e,t)}},X=function(t){return function(e){return B(e,t)}},J=function(t){return function(e){return j(e,t)}},Q=function(t){return function(e){return F(e,t)}},tt=function(t){return function(e){return Y(e,t)}},te=function(t){return function(e){return K(e,t)}},tn=function(t){for(var e,n=new Map,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.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)},tr="ReadonlyMap",ti=function(t,e){var n=tw(t,e);return{concat:function(t,e){return n(e)(t)}}},tu=function(t,e){return{concat:ti(t,e).concat,empty:k}},to=function(t,e){var n=tR(t,e);return{concat:function(t,e){return n(e)(t)}}},ta=function(t){return function(){var e=tO(t);return{concat:function(t,n){return e(n)(t)}}}};function tc(){return{URI:tr,_E:void 0,map:j,mapWithIndex:F,compact:Z,separate:tn,filter:q,filterMap:B,partition:Y,partitionMap:K,partitionMapWithIndex:H,partitionWithIndex:V,filterMapWithIndex:z,filterWithIndex:G}}var tf={URI:tr,map:j},tl=(0,u.flap)(tf),ts=function(){return{URI:tr,_E:void 0,map:j,mapWithIndex:F}},tp={URI:tr,compact:Z,separate:tn},td={URI:tr,map:j,compact:Z,separate:tn,filter:q,filterMap:B,partition:Y,partitionMap:K},th=function(t){var e=ty(t);return function(t,n){return e(t,function(t,e,r){return n(e,r)})}},tm=function(t){var e=t_(t);return function(t){var n=e(t);return function(t){return n(function(e,n){return t(n)})}}},tv=function(t){var e=tb(t);return function(t,n){return e(t,function(t,e,r){return n(e,r)})}},tg=function(t){var e=th(t),n=tm(t),r=tv(t);return{URI:tr,_E:void 0,reduce:function(t,n,r){return(0,i.pipe)(t,e(n,r))},foldMap:function(t){var e=n(t);return function(t,n){return(0,i.pipe)(t,e(n))}},reduceRight:function(t,e,n){return(0,i.pipe)(t,r(e,n))}}},ty=function(t){var e=v(t);return function(t,n){return function(r){for(var i=t,u=0,o=e(r);u<o.length;u++){var a=o[u];i=n(a,i,r.get(a))}return i}}},t_=function(t){var e=v(t);return function(t){return function(n){return function(r){for(var i=t.empty,u=0,o=e(r);u<o.length;u++){var a=o[u];i=t.concat(i,n(a,r.get(a)))}return i}}}},tb=function(t){var e=v(t);return function(t,n){return function(r){for(var i=t,u=e(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=n(c,r.get(c),i)}return i}}},tT=function(t){var e=tg(t),n=ty(t),r=t_(t),u=tb(t);return{URI:tr,_E:void 0,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,reduceWithIndex:function(t,e,r){return(0,i.pipe)(t,n(e,r))},foldMapWithIndex:function(t){var e=r(t);return function(t,n){return(0,i.pipe)(t,e(n))}},reduceRightWithIndex:function(t,e,n){return(0,i.pipe)(t,u(e,n))}}},tI=function(t){var e=tS(t),n=tg(t);return{URI:tr,_E:void 0,map:j,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,traverse:e.traverse,sequence:e.sequence}},tS=function(t){var e=tT(t),n=v(t),r=function(t){return function(e,r){for(var i=t.of(new Map),u=n(e),o=u.length,a=0;a<o;a++)!function(n){var o=u[n],a=e.get(o);i=t.ap(t.map(i,function(t){return function(e){return t.set(o,e)}}),r(o,a))}(a);return i}},u=function(t){var e=r(t);return function(t,n){return e(t,function(t,e){return n(e)})}},o=function(t){var e=r(t);return function(t){return e(t,i.SK)}};return{URI:tr,_E:void 0,map:j,mapWithIndex:F,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,reduceWithIndex:e.reduceWithIndex,foldMapWithIndex:e.foldMapWithIndex,reduceRightWithIndex:e.reduceRightWithIndex,traverse:u,sequence:o,traverseWithIndex:r}};function tx(t){var e=tS(t);return{URI:tr,_E:void 0,map:j,compact:Z,separate:tn,filter:q,filterMap:B,partition:Y,partitionMap:K,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,traverse:e.traverse,sequence:e.sequence,mapWithIndex:F,reduceWithIndex:e.reduceWithIndex,foldMapWithIndex:e.foldMapWithIndex,reduceRightWithIndex:e.reduceRightWithIndex,traverseWithIndex:e.traverseWithIndex,wilt:(0,f.wiltDefault)(e,tp),wither:(0,f.witherDefault)(e,tp)}}var tw=function(t,e){var n=M(t);return function(t){return function(r){if(h(r))return t;if(h(t))return r;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],s=n(f)(t);o.pC(s)?u.set(f,e.concat(l,s.value)):u.set(f,l)}for(var p=t.entries();!(i=p.next()).done;){var d=i.value,f=d[0],l=d[1],s=n(f)(u);o.Wi(s)&&u.set(f,l)}return u}}},tR=function(t,e){var n=M(t);return function(t){return function(r){if(h(r)||h(t))return k;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],s=n(f)(t);o.pC(s)&&u.set(f,e.concat(l,s.value))}return u}}},tO=function(t){var e=m(t);return function(t){return function(n){if(h(n))return t;if(h(t))return n;for(var r,i=new Map,u=n.entries();!(r=u.next()).done;){var o=r.value,a=o[0],c=o[1];e(a)(t)||i.set(a,c)}for(var f=t.entries();!(r=f.next()).done;){var l=r.value,a=l[0],c=l[1];e(a)(n)||i.set(a,c)}return i}}},tM=I,tE={URI:tr,map:j,compact:Z,separate:tn,filter:q,filterMap:B,partition:Y,partitionMap:K}},28350:function(t,e,n){"use strict";n.r(e),n.d(e,{Alt:function(){return tH},Applicative:function(){return tj},Apply:function(){return tA},Chain:function(){return tq},Comonad:function(){return tZ},Do:function(){return t$},Foldable:function(){return tK},FoldableWithIndex:function(){return tG},Functor:function(){return tW},FunctorWithIndex:function(){return tN},Monad:function(){return tY},Pointed:function(){return tF},Traversable:function(){return tz},TraversableWithIndex:function(){return tV},URI:function(){return tM},alt:function(){return tl},altW:function(){return tf},ap:function(){return ts},apFirst:function(){return tL},apS:function(){return t0},apSecond:function(){return tU},append:function(){return _},appendW:function(){return y},bind:function(){return tQ},bindTo:function(){return tX},chain:function(){return eu},chainFirst:function(){return tB},chainWithIndex:function(){return G},chop:function(){return z},chunksOf:function(){return H},concat:function(){return D},concatAll:function(){return t4},concatW:function(){return W},cons:function(){return es},duplicate:function(){return th},empty:function(){return p},extend:function(){return td},extract:function(){return tO},filter:function(){return ea},filterWithIndex:function(){return ec},flap:function(){return tD},flatMap:function(){return tp},flatten:function(){return tm},fold:function(){return em},foldMap:function(){return t_},foldMapWithIndex:function(){return tI},fromArray:function(){return P},fromReadonlyArray:function(){return R},getEq:function(){return tC},getSemigroup:function(){return tk},getShow:function(){return tE},getUnionSemigroup:function(){return tP},group:function(){return N},groupBy:function(){return A},groupSort:function(){return eo},head:function(){return t1},init:function(){return t7},insertAt:function(){return ed},intercalate:function(){return ei},intersperse:function(){return K},isNonEmpty:function(){return d},isOutOfBound:function(){return h},last:function(){return t2},let:function(){return tJ},makeBy:function(){return O},map:function(){return tv},mapWithIndex:function(){return tg},matchLeft:function(){return t9},matchRight:function(){return t6},max:function(){return t5},min:function(){return t3},modifyAt:function(){return j},modifyHead:function(){return et},modifyLast:function(){return en},of:function(){return tc},prepend:function(){return v},prependAll:function(){return Y},prependToAll:function(){return eh},prependW:function(){return m},range:function(){return E},readonlyNonEmptyArray:function(){return ev},reduce:function(){return ty},reduceRight:function(){return tb},reduceRightWithIndex:function(){return tS},reduceWithIndex:function(){return tT},replicate:function(){return M},reverse:function(){return F},rotate:function(){return w},sequence:function(){return tw},snoc:function(){return ep},sort:function(){return L},sortBy:function(){return S},splitAt:function(){return V},tail:function(){return t8},traverse:function(){return tx},traverseWithIndex:function(){return tR},unappend:function(){return C},uncons:function(){return ef},union:function(){return x},uniq:function(){return I},unprepend:function(){return k},unsafeInsertAt:function(){return b},unsafeUpdateAt:function(){return T},unsnoc:function(){return el},unzip:function(){return B},updateAt:function(){return U},updateHead:function(){return ee},updateLast:function(){return er},zip:function(){return function t(e,n){return void 0===n?function(n){return t(n,e)}:q(e,n,function(t,e){return[t,e]})}},zipWith:function(){return q}});var r=n(42925),i=n(88543),u=n(65191),o=n(42275),a=n(67560),c=n(97963),f=n(5586),l=n(3291),s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},p=c.Xl,d=c.Od,h=function(t,e){return t<0||t>=e.length},m=function(t){return function(e){return s([t],e,!0)}},v=m,y=function(t){return function(e){return s(s([],e,!0),[t],!1)}},_=y,b=function(t,e,n){if(d(n)){var r=c.r1(n);return r.splice(t,0,e),r}return[e]},T=function(t,e,n){if(n[t]===e)return n;var r=c.r1(n);return r[t]=e,r},I=function(t){return function(e){if(1===e.length)return e;for(var n=[t1(e)],r=t8(e),i=function(e){n.every(function(n){return!t.equals(n,e)})&&n.push(e)},u=0;u<r.length;u++)i(r[u]);return n}},S=function(t){if(d(t)){var e=(0,f.getMonoid)();return L(t.reduce(e.concat,e.empty))}return o.identity},x=function(t){var e=I(t);return function(t){return function(n){return e((0,o.pipe)(n,D(t)))}}},w=function(t){return function(e){var n=e.length,r=Math.round(t)%n;if(h(Math.abs(r),e)||0===r)return e;if(!(r<0))return w(r-n)(e);var i=V(-r)(e),u=i[0],a=i[1];return(0,o.pipe)(a,D(u))}},R=function(t){return d(t)?c.G(t):c.YP},O=function(t){return function(e){for(var n=Math.max(0,Math.floor(e)),r=[t(0)],i=1;i<n;i++)r.push(t(i));return r}},M=function(t){return O(function(){return t})},E=function(t,e){return t<=e?O(function(e){return t+e})(e-t+1):[t]},k=function(t){return[t1(t),t8(t)]},C=function(t){return[t7(t),t2(t)]},P=function(t){return R(t.slice())};function W(t){return function(e){return e.concat(t)}}function D(t,e){return e?t.concat(e):function(e){return e.concat(t)}}var F=function(t){return 1===t.length?t:s([t2(t)],t.slice(0,-1).reverse(),!0)};function N(t){return function(e){var n=e.length;if(0===n)return p;for(var r=[],i=e[0],u=[i],o=1;o<n;o++){var a=e[o];t.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var A=function(t){return function(e){for(var n={},r=0;r<e.length;r++){var i=e[r],u=t(i);c.e$.call(n,u)?n[u].push(i):n[u]=[i]}return n}},L=function(t){return function(e){return 1===e.length?e:e.slice().sort(t.compare)}},U=function(t,e){return j(t,function(){return e})},j=function(t,e){return function(n){return h(t,n)?c.YP:c.G(T(t,e(n[t]),n))}},q=function(t,e,n){for(var r=[n(t[0],e[0])],i=Math.min(t.length,e.length),u=1;u<i;u++)r[u]=n(t[u],e[u]);return r},B=function(t){for(var e=[t[0][0]],n=[t[0][1]],r=1;r<t.length;r++)e[r]=t[r][0],n[r]=t[r][1];return[e,n]},Y=function(t){return function(e){for(var n=[t,e[0]],r=1;r<e.length;r++)n.push(t,e[r]);return n}},K=function(t){return function(e){var n=t8(e);return d(n)?(0,o.pipe)(n,Y(t),v(t1(e))):e}},G=function(t){return function(e){for(var n=c.r1(t(0,t1(e))),r=1;r<e.length;r++)n.push.apply(n,t(r,e[r]));return n}},z=function(t){return function(e){for(var n=t(e),r=n[0],i=n[1],u=[r],o=i;d(o);){var a=t(o),c=a[0],f=a[1];u.push(c),o=f}return u}},V=function(t){return function(e){var n=Math.max(1,t);return n>=e.length?[e,p]:[(0,o.pipe)(e.slice(1,n),v(t1(e))),e.slice(n)]}},H=function(t){return z(V(t))},Z=function(t,e){return(0,o.pipe)(t,tv(e))},$=function(t,e){return(0,o.pipe)(t,tg(e))},X=function(t,e){return(0,o.pipe)(t,ts(e))},J=function(t,e){return(0,o.pipe)(t,td(e))},Q=function(t,e,n){return(0,o.pipe)(t,ty(e,n))},tt=function(t){var e=t_(t);return function(t,n){return(0,o.pipe)(t,e(n))}},te=function(t,e,n){return(0,o.pipe)(t,tb(e,n))},tn=function(t){var e=tx(t);return function(t,n){return(0,o.pipe)(t,e(n))}},tr=function(t,e){return(0,o.pipe)(t,tl(e))},ti=function(t,e,n){return(0,o.pipe)(t,tT(e,n))},tu=function(t){var e=tI(t);return function(t,n){return(0,o.pipe)(t,e(n))}},to=function(t,e,n){return(0,o.pipe)(t,tS(e,n))},ta=function(t){var e=tR(t);return function(t,n){return(0,o.pipe)(t,e(n))}},tc=c.ri,tf=function(t){return function(e){return(0,o.pipe)(e,W(t()))}},tl=tf,ts=function(t){return tp(function(e){return(0,o.pipe)(t,tv(e))})},tp=(0,o.dual)(2,function(t,e){return(0,o.pipe)(t,G(function(t,n){return e(n,t)}))}),td=function(t){return function(e){for(var n=t8(e),r=[t(e)];d(n);)r.push(t(n)),n=t8(n);return r}},th=td(o.identity),tm=tp(o.identity),tv=function(t){return tg(function(e,n){return t(n)})},tg=function(t){return function(e){for(var n=[t(0,t1(e))],r=1;r<e.length;r++)n.push(t(r,e[r]));return n}},ty=function(t,e){return tT(t,function(t,n,r){return e(n,r)})},t_=function(t){return function(e){return function(n){return n.slice(1).reduce(function(n,r){return t.concat(n,e(r))},e(n[0]))}}},tb=function(t,e){return tS(t,function(t,n,r){return e(n,r)})},tT=function(t,e){return function(n){return n.reduce(function(t,n,r){return e(r,t,n)},t)}},tI=function(t){return function(e){return function(n){return n.slice(1).reduce(function(n,r,i){return t.concat(n,e(i+1,r))},e(0,n[0]))}}},tS=function(t,e){return function(n){return n.reduceRight(function(t,n,r){return e(r,n,t)},t)}},tx=function(t){var e=tR(t);return function(t){return e(function(e,n){return t(n)})}},tw=function(t){return tR(t)(o.SK)},tR=function(t){return function(e){return function(n){for(var r=t.map(e(0,t1(n)),tc),i=1;i<n.length;i++)r=t.ap(t.map(r,function(t){return function(e){return(0,o.pipe)(t,_(e))}}),e(i,n[i]));return r}}},tO=c.YM,tM="ReadonlyNonEmptyArray",tE=function(t){return{show:function(e){return"[".concat(e.map(t.show).join(", "),"]")}}},tk=function(){return{concat:D}},tC=function(t){return(0,u.fromEquals)(function(e,n){return e.length===n.length&&e.every(function(e,r){return t.equals(e,n[r])})})},tP=function(t){var e=x(t);return{concat:function(t,n){return e(n)(t)}}},tW={URI:tM,map:Z},tD=(0,a.flap)(tW),tF={URI:tM,of:tc},tN={URI:tM,map:Z,mapWithIndex:$},tA={URI:tM,map:Z,ap:X},tL=(0,r.apFirst)(tA),tU=(0,r.apSecond)(tA),tj={URI:tM,map:Z,ap:X,of:tc},tq={URI:tM,map:Z,ap:X,chain:tp},tB=(0,i.chainFirst)(tq),tY={URI:tM,map:Z,ap:X,of:tc,chain:tp},tK={URI:tM,reduce:Q,foldMap:tt,reduceRight:te},tG={URI:tM,reduce:Q,foldMap:tt,reduceRight:te,reduceWithIndex:ti,foldMapWithIndex:tu,reduceRightWithIndex:to},tz={URI:tM,map:Z,reduce:Q,foldMap:tt,reduceRight:te,traverse:tn,sequence:tw},tV={URI:tM,map:Z,mapWithIndex:$,reduce:Q,foldMap:tt,reduceRight:te,traverse:tn,sequence:tw,reduceWithIndex:ti,foldMapWithIndex:tu,reduceRightWithIndex:to,traverseWithIndex:ta},tH={URI:tM,map:Z,alt:tr},tZ={URI:tM,map:Z,extend:J,extract:tO},t$=tc(c.F4),tX=(0,a.bindTo)(tW),tJ=(0,a.let)(tW),tQ=(0,i.bind)(tq),t0=(0,r.apS)(tA),t1=tO,t8=c.Gb,t2=function(t){return t[t.length-1]},t7=function(t){return t.slice(0,-1)},t3=function(t){var e=l.min(t);return function(t){return t.reduce(e.concat)}},t5=function(t){var e=l.max(t);return function(t){return t.reduce(e.concat)}},t4=function(t){return function(e){return e.reduce(t.concat)}},t9=function(t){return function(e){return t(t1(e),t8(e))}},t6=function(t){return function(e){return t(t7(e),t2(e))}},et=function(t){return function(e){return s([t(t1(e))],t8(e),!0)}},ee=function(t){return et(function(){return t})},en=function(t){return function(e){return(0,o.pipe)(t7(e),_(t(t2(e))))}},er=function(t){return en(function(){return t})},ei=function(t){var e=t4(t);return function(t){return(0,o.flow)(K(t),e)}},eu=tp;function eo(t){var e=L(t),n=N(t);return function(t){return d(t)?n(e(t)):p}}function ea(t){return ec(function(e,n){return t(n)})}var ec=function(t){return function(e){return R(e.filter(function(e,n){return t(n,e)}))}},ef=k,el=C;function es(t,e){return void 0===e?v(t):(0,o.pipe)(e,v(t))}var ep=function(t,e){return(0,o.pipe)(t,D([e]))},ed=function(t,e){return function(n){return t<0||t>n.length?c.YP:c.G(b(t,e,n))}},eh=Y,em=t4,ev={URI:tM,of:tc,map:Z,mapWithIndex:$,ap:X,chain:tp,extend:J,extract:tO,reduce:Q,foldMap:tt,reduceRight:te,traverse:tn,sequence:tw,reduceWithIndex:ti,foldMapWithIndex:tu,reduceRightWithIndex:to,traverseWithIndex:ta,alt:tr}},97054:function(t,e,n){"use strict";n.r(e),n.d(e,{Compactable:function(){return tF},Filterable:function(){return tN},FilterableWithIndex:function(){return tA},Foldable:function(){return tG},FoldableWithIndex:function(){return tz},Functor:function(){return tk},FunctorWithIndex:function(){return tP},Traversable:function(){return tV},TraversableWithIndex:function(){return tH},URI:function(){return tO},Witherable:function(){return tX},_filter:function(){return ti},_filterMap:function(){return tu},_filterMapWithIndex:function(){return td},_filterWithIndex:function(){return th},_foldMap:function(){return tn},_foldMapWithIndex:function(){return tf},_map:function(){return Q},_mapWithIndex:function(){return tt},_partition:function(){return to},_partitionMap:function(){return ta},_partitionMapWithIndex:function(){return ts},_partitionWithIndex:function(){return tp},_reduce:function(){return te},_reduceRight:function(){return tr},_reduceRightWithIndex:function(){return tl},_reduceWithIndex:function(){return tc},_sequence:function(){return tv},_traverse:function(){return tm},collect:function(){return v},compact:function(){return tw},deleteAt:function(){return I},difference:function(){return J},elem:function(){return function t(e){return function(n,r){if(void 0===r){var i=t(e);return function(t){return i(n,t)}}for(var u in r)if(e.equals(r[u],n))return!0;return!1}}},empty:function(){return M},every:function(){return H},filter:function(){return ty},filterMap:function(){return t_},filterMapWithIndex:function(){return B},filterWithIndex:function(){return Y},flap:function(){return tC},foldMap:function(){return tS},foldMapWithIndex:function(){return P},fromEntries:function(){return V},fromFoldable:function(){return K},fromFoldableMap:function(){return G},fromRecord:function(){return l},getDifferenceMagma:function(){return tK},getEq:function(){return tM},getFoldable:function(){return tW},getFoldableWithIndex:function(){return tD},getIntersectionSemigroup:function(){return tY},getMonoid:function(){return tE},getShow:function(){return function t(e){return"compare"in e?function(t){return{show:function(n){var r=v(e)(function(e,n){return"".concat(JSON.stringify(e),": ").concat(t.show(n))})(n).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:t(c.Ord)(e)}},getTraversable:function(){return tL},getTraversableWithIndex:function(){return tU},getUnionMonoid:function(){return tB},getUnionSemigroup:function(){return tq},getWitherable:function(){return tj},has:function(){return T},hasOwnProperty:function(){return tQ},insertAt:function(){return tJ},intersection:function(){return X},isEmpty:function(){return d},isSubrecord:function(){return R},keys:function(){return m},lookup:function(){return O},map:function(){return k},mapWithIndex:function(){return E},modifyAt:function(){return x},partition:function(){return tb},partitionMap:function(){return tT},partitionMapWithIndex:function(){return j},partitionWithIndex:function(){return q},pop:function(){return w},readonlyRecord:function(){return t0},reduce:function(){return tI},reduceRight:function(){return tx},reduceRightWithIndex:function(){return W},reduceWithIndex:function(){return C},separate:function(){return tR},sequence:function(){return A},singleton:function(){return D},size:function(){return p},some:function(){return Z},toEntries:function(){return z},toReadonlyArray:function(){return y},toRecord:function(){return s},toUnfoldable:function(){return _},traverse:function(){return N},traverseWithIndex:function(){return F},union:function(){return $},updateAt:function(){return S},upsertAt:function(){return b},wilt:function(){return U},wither:function(){return L}});var r=n(65191),i=n(42275),u=n(67560),o=n(97963),a=n(34219),c=n(57029),f=n(76511),l=function(t){return Object.assign({},t)},s=function(t){return Object.assign({},t)},p=function(t){return Object.keys(t).length},d=function(t){for(var e in t)if(o.e$.call(t,e))return!1;return!0},h=function(t){return function(e){return Object.keys(e).sort(t.compare)}},m=h(c.Ord);function v(t){if("function"==typeof t)return v(c.Ord)(t);var e=h(t);return function(t){return function(n){for(var r=[],i=0,u=e(n);i<u.length;i++){var o=u[i];r.push(t(o,n[o]))}return r}}}var y=v(c.Ord)(function(t,e){return[t,e]});function _(t){return function(e){var n=y(e),r=n.length;return t.unfold(0,function(t){return t<r?o.G([n[t],t+1]):o.YP})}}var b=function(t,e){return function(n){if(o.e$.call(n,t)&&n[t]===e)return n;var r=Object.assign({},n);return r[t]=e,r}},T=function(t,e){return o.e$.call(e,t)};function I(t){return function(e){if(!o.e$.call(e,t))return e;var n=Object.assign({},e);return delete n[t],n}}var S=function(t,e){return function(n){if(!T(t,n))return o.YP;if(n[t]===e)return o.G(n);var r=Object.assign({},n);return r[t]=e,o.G(r)}},x=function(t,e){return function(n){if(!T(t,n))return o.YP;var r=e(n[t]);if(r===n[t])return o.G(n);var i=Object.assign({},n);return i[t]=r,o.G(i)}};function w(t){var e=I(t);return function(n){var r=O(t,n);return o.Wi(r)?o.YP:o.G([r.value,e(n)])}}function R(t){return function(e,n){if(void 0===n){var r=R(t);return function(t){return r(t,e)}}for(var i in e)if(!o.e$.call(n,i)||!t.equals(e[i],n[i]))return!1;return!0}}function O(t,e){return void 0===e?function(e){return O(t,e)}:o.e$.call(e,t)?o.G(e[t]):o.YP}var M={};function E(t){return function(e){var n={};for(var r in e)o.e$.call(e,r)&&(n[r]=t(r,e[r]));return n}}function k(t){return E(function(e,n){return t(n)})}function C(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(2===t.length)return C(c.Ord).apply(void 0,t);var n=h(t[0]);return function(t,e){return function(r){for(var i=t,u=n(r),o=u.length,a=0;a<o;a++){var c=u[a];i=e(c,i,r[c])}return i}}}function P(t){if("compare"in t){var e=h(t);return function(t){return function(n){return function(r){for(var i=t.empty,u=e(r),o=u.length,a=0;a<o;a++){var c=u[a];i=t.concat(i,n(c,r[c]))}return i}}}}return P(c.Ord)(t)}function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(2===t.length)return W(c.Ord).apply(void 0,t);var n=h(t[0]);return function(t,e){return function(r){for(var i=t,u=n(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=e(c,r[c],i)}return i}}}var D=function(t,e){var n;return(n={})[t]=e,n};function F(t){var e=tg(c.Ord)(t);return function(t){return function(n){return e(n,t)}}}function N(t){var e=tm(c.Ord)(t);return function(t){return function(n){return e(n,t)}}}function A(t){return tv(c.Ord)(t)}var L=function(t){var e=N(t);return function(n){return function(r){return t.map((0,i.pipe)(r,e(n)),tw)}}},U=function(t){var e=N(t);return function(n){return function(r){return t.map((0,i.pipe)(r,e(n)),tR)}}};function j(t){return function(e){var n={},r={};for(var i in e)if(o.e$.call(e,i)){var u=t(i,e[i]);switch(u._tag){case"Left":n[i]=u.left;break;case"Right":r[i]=u.right}}return(0,a.separated)(n,r)}}function q(t){return function(e){var n={},r={};for(var i in e)if(o.e$.call(e,i)){var u=e[i];t(i,u)?r[i]=u:n[i]=u}return(0,a.separated)(n,r)}}function B(t){return function(e){var n={};for(var r in e)if(o.e$.call(e,r)){var i=t(r,e[r]);o.pC(i)&&(n[r]=i.value)}return n}}function Y(t){return function(e){var n={},r=!1;for(var i in e)if(o.e$.call(e,i)){var u=e[i];t(i,u)?n[i]=u:r=!0}return r?n:e}}function K(t,e){var n=G(t,e);return function(t){return n(t,i.identity)}}function G(t,e){return function(n,r){return e.reduce(n,{},function(e,n){var i=r(n),u=i[0],a=i[1];return e[u]=o.e$.call(e,u)?t.concat(e[u],a):a,e})}}var z=y,V=function(t){for(var e={},n=0;n<t.length;n++){var r=t[n];e[r[0]]=r[1]}return e};function H(t){return function(e){for(var n in e)if(!t(e[n]))return!1;return!0}}function Z(t){return function(e){for(var n in e)if(t(e[n]))return!0;return!1}}var $=function(t){return function(e){return function(n){if(d(n))return e;if(d(e))return n;var r={};for(var i in n)T(i,e)?r[i]=t.concat(n[i],e[i]):r[i]=n[i];for(var i in e)T(i,r)||(r[i]=e[i]);return r}}},X=function(t){return function(e){return function(n){if(d(n)||d(e))return M;var r={};for(var i in n)T(i,e)&&(r[i]=t.concat(n[i],e[i]));return r}}},J=function(t){return function(e){if(d(e))return t;if(d(t))return e;var n={};for(var r in e)T(r,t)||(n[r]=e[r]);for(var r in t)T(r,e)||(n[r]=t[r]);return n}},Q=function(t,e){return(0,i.pipe)(t,k(e))},tt=function(t,e){return(0,i.pipe)(t,E(e))},te=function(t){var e=tI(t);return function(t,n,r){return(0,i.pipe)(t,e(n,r))}},tn=function(t){return function(e){var n=tS(t)(e);return function(t,e){return(0,i.pipe)(t,n(e))}}},tr=function(t){var e=tx(t);return function(t,n,r){return(0,i.pipe)(t,e(n,r))}},ti=function(t,e){return(0,i.pipe)(t,ty(e))},tu=function(t,e){return(0,i.pipe)(t,t_(e))},to=function(t,e){return(0,i.pipe)(t,tb(e))},ta=function(t,e){return(0,i.pipe)(t,tT(e))},tc=function(t){var e=C(t);return function(t,n,r){return(0,i.pipe)(t,e(n,r))}},tf=function(t){var e=P(t);return function(t){var n=e(t);return function(t,e){return(0,i.pipe)(t,n(e))}}},tl=function(t){var e=W(t);return function(t,n,r){return(0,i.pipe)(t,e(n,r))}},ts=function(t,e){return(0,i.pipe)(t,j(e))},tp=function(t,e){return(0,i.pipe)(t,q(e))},td=function(t,e){return(0,i.pipe)(t,B(e))},th=function(t,e){return(0,i.pipe)(t,Y(e))},tm=function(t){var e=tg(t);return function(t){var n=e(t);return function(t,e){return n(t,(0,i.flow)(i.SK,e))}}},tv=function(t){var e=tm(t);return function(t){var n=e(t);return function(t){return n(t,i.identity)}}},tg=function(t){return function(e){var n=h(t);return function(t,r){var i=n(t);if(0===i.length)return e.of(M);for(var u=e.of({}),o=function(n){u=e.ap(e.map(u,function(t){return function(e){var r;return Object.assign({},t,((r={})[n]=e,r))}}),r(n,t[n]))},a=0;a<i.length;a++)o(i[a]);return u}}},ty=function(t){return Y(function(e,n){return t(n)})},t_=function(t){return B(function(e,n){return t(n)})},tb=function(t){return q(function(e,n){return t(n)})},tT=function(t){return j(function(e,n){return t(n)})};function tI(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=C(t[0]);return function(t,e){return n(t,function(t,n,r){return e(n,r)})}}return tI(c.Ord).apply(void 0,t)}function tS(t){if("compare"in t){var e=P(t);return function(t){var n=e(t);return function(t){return n(function(e,n){return t(n)})}}}return tS(c.Ord)(t)}function tx(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=W(t[0]);return function(t,e){return n(t,function(t,n,r){return e(n,r)})}}return tx(c.Ord).apply(void 0,t)}var tw=function(t){var e={};for(var n in t)if(o.e$.call(t,n)){var r=t[n];o.pC(r)&&(e[n]=r.value)}return e},tR=function(t){var e={},n={};for(var r in t)if(o.e$.call(t,r)){var i=t[r];o.nM(i)?e[r]=i.left:n[r]=i.right}return(0,a.separated)(e,n)},tO="ReadonlyRecord";function tM(t){var e=R(t);return(0,r.fromEquals)(function(t,n){return e(t)(n)&&e(n)(t)})}function tE(t){return{concat:function(e,n){if(d(e))return n;if(d(n))return e;var r=Object.assign({},e);for(var i in n)o.e$.call(n,i)&&(r[i]=o.e$.call(e,i)?t.concat(e[i],n[i]):n[i]);return r},empty:M}}var tk={URI:tO,map:Q},tC=(0,u.flap)(tk),tP={URI:tO,map:Q,mapWithIndex:tt},tW=function(t){return{URI:tO,reduce:te(t),foldMap:tn(t),reduceRight:tr(t)}},tD=function(t){return{URI:tO,reduce:te(t),foldMap:tn(t),reduceRight:tr(t),reduceWithIndex:tc(t),foldMapWithIndex:tf(t),reduceRightWithIndex:tl(t)}},tF={URI:tO,compact:tw,separate:tR},tN={URI:tO,map:Q,compact:tw,separate:tR,filter:ti,filterMap:tu,partition:to,partitionMap:ta},tA={URI:tO,map:Q,mapWithIndex:tt,compact:tw,separate:tR,filter:ti,filterMap:tu,partition:to,partitionMap:ta,filterMapWithIndex:td,filterWithIndex:th,partitionMapWithIndex:ts,partitionWithIndex:tp},tL=function(t){return{URI:tO,map:Q,reduce:te(t),foldMap:tn(t),reduceRight:tr(t),traverse:tm(t),sequence:tv(t)}},tU=function(t){return{URI:tO,map:Q,mapWithIndex:tt,reduce:te(t),foldMap:tn(t),reduceRight:tr(t),reduceWithIndex:tc(t),foldMapWithIndex:tf(t),reduceRightWithIndex:tl(t),traverse:tm(t),sequence:tv(t),traverseWithIndex:tg(t)}},tj=function(t){var e=tL(t);return{URI:tO,map:Q,reduce:te(t),foldMap:tn(t),reduceRight:tr(t),traverse:e.traverse,sequence:e.sequence,compact:tw,separate:tR,filter:ti,filterMap:tu,partition:to,partitionMap:ta,wither:(0,f.witherDefault)(e,tF),wilt:(0,f.wiltDefault)(e,tF)}},tq=function(t){var e=$(t);return{concat:function(t,n){return e(n)(t)}}},tB=function(t){return{concat:tq(t).concat,empty:M}},tY=function(t){var e=X(t);return{concat:function(t,n){return e(n)(t)}}},tK=function(){return{concat:function(t,e){return J(e)(t)}}},tG={URI:tO,reduce:te(c.Ord),foldMap:tn(c.Ord),reduceRight:tr(c.Ord)},tz={URI:tO,reduce:te(c.Ord),foldMap:tn(c.Ord),reduceRight:tr(c.Ord),reduceWithIndex:tc(c.Ord),foldMapWithIndex:tf(c.Ord),reduceRightWithIndex:tl(c.Ord)},tV={URI:tO,map:Q,reduce:te(c.Ord),foldMap:tn(c.Ord),reduceRight:tr(c.Ord),traverse:tm(c.Ord),sequence:A},tH={URI:tO,map:Q,mapWithIndex:tt,reduce:te(c.Ord),foldMap:tn(c.Ord),reduceRight:tr(c.Ord),reduceWithIndex:tc(c.Ord),foldMapWithIndex:tf(c.Ord),reduceRightWithIndex:tl(c.Ord),traverse:tm(c.Ord),sequence:A,traverseWithIndex:tg(c.Ord)},tZ=(0,f.witherDefault)(tV,tF),t$=(0,f.wiltDefault)(tV,tF),tX={URI:tO,map:Q,reduce:te(c.Ord),foldMap:tn(c.Ord),reduceRight:tr(c.Ord),traverse:tm(c.Ord),sequence:A,compact:tw,separate:tR,filter:ti,filterMap:tu,partition:to,partitionMap:ta,wither:tZ,wilt:t$},tJ=b;function tQ(t,e){return o.e$.call(void 0===e?this:e,t)}var t0={URI:tO,map:Q,reduce:te(c.Ord),foldMap:tn(c.Ord),reduceRight:tr(c.Ord),traverse:tm(c.Ord),sequence:A,compact:tw,separate:tR,filter:ti,filterMap:tu,partition:to,partitionMap:ta,mapWithIndex:tt,reduceWithIndex:tc(c.Ord),foldMapWithIndex:tf(c.Ord),reduceRightWithIndex:tl(c.Ord),filterMapWithIndex:td,filterWithIndex:th,partitionMapWithIndex:ts,partitionWithIndex:tp,traverseWithIndex:tg(c.Ord),wither:tZ,wilt:t$}},99156:function(t,e,n){"use strict";n.r(e),n.d(e,{URI:function(){return A},chain:function(){return p},compact:function(){return R},difference:function(){return _},elem:function(){return F},empty:function(){return E},every:function(){return W},filter:function(){return d},filterMap:function(){return M},foldMap:function(){return T},fromArray:function(){return K},fromReadonlyArray:function(){return f},fromSet:function(){return a},getDifferenceMagma:function(){return Y},getEq:function(){return U},getIntersectionSemigroup:function(){return B},getShow:function(){return L},getUnionMonoid:function(){return q},getUnionSemigroup:function(){return j},insert:function(){return S},intersection:function(){return v},isEmpty:function(){return k},isSubset:function(){return D},map:function(){return s},partition:function(){return h},partitionMap:function(){return y},reduce:function(){return b},reduceRight:function(){return I},remove:function(){return x},separate:function(){return O},singleton:function(){return c},size:function(){return C},some:function(){return P},toReadonlyArray:function(){return N},toSet:function(){return l},toggle:function(){return w},union:function(){return m}});var r=n(65191),i=n(42275),u=n(88491),o=n(34219),a=function(t){return new Set(t)},c=function(t){return new Set([t])},f=function(t){return function(e){for(var n=e.length,r=new Set,i=F(t),u=0;u<n;u++){var o=e[u];i(o,r)||r.add(o)}return r}};function l(t){return new Set(t)}function s(t){var e=F(t);return function(t){return function(n){var r=new Set;return n.forEach(function(n){var i=t(n);e(i,r)||r.add(i)}),r}}}function p(t){var e=F(t);return function(t){return function(n){var r=new Set;return n.forEach(function(n){t(n).forEach(function(t){e(t,r)||r.add(t)})}),r}}}function d(t){return function(e){for(var n,r=e.values(),i=new Set;!(n=r.next()).done;){var u=n.value;t(u)&&i.add(u)}return i}}function h(t){return function(e){for(var n,r=e.values(),i=new Set,u=new Set;!(n=r.next()).done;){var a=n.value;t(a)?i.add(a):u.add(a)}return(0,o.separated)(u,i)}}function m(t){var e=F(t);return function(n,r){if(void 0===r){var i=m(t);return function(t){return i(n,t)}}if(k(n))return r;if(k(r))return n;var u=new Set(n);return r.forEach(function(t){e(t,u)||u.add(t)}),u}}function v(t){var e=F(t);return function(n,r){if(void 0===r){var i=v(t);return function(t){return i(t,n)}}if(k(n)||k(r))return E;var u=new Set;return n.forEach(function(t){e(t,r)&&u.add(t)}),u}}function y(t,e){return function(n){return function(r){for(var i,u=r.values(),a=new Set,c=new Set,f=F(t),l=F(e);!(i=u.next()).done;){var s=n(i.value);switch(s._tag){case"Left":f(s.left,a)||a.add(s.left);break;case"Right":l(s.right,c)||c.add(s.right)}}return(0,o.separated)(a,c)}}}function _(t){var e=F(t);return function(n,r){if(void 0===r){var i=_(t);return function(t){return i(t,n)}}return d(function(t){return!e(t,r)})(n)}}function b(t){var e=N(t);return function(t,n){return function(r){return e(r).reduce(n,t)}}}function T(t,e){var n=N(t);return function(t){return function(r){return n(r).reduce(function(n,r){return e.concat(n,t(r))},e.empty)}}}var I=function(t){var e=N(t);return function(t,n){return function(r){return e(r).reduceRight(function(t,e){return n(e,t)},t)}}};function S(t){var e=F(t);return function(t){return function(n){if(e(t)(n))return n;var r=new Set(n);return r.add(t),r}}}var x=function(t){return function(e){return function(n){return d(function(n){return!t.equals(e,n)})(n)}}},w=function(t){var e=F(t),n=x(t),r=S(t);return function(t){return function(i){return(e(t,i)?n:r)(t)(i)}}},R=function(t){return M(t)(i.identity)};function O(t,e){return function(n){var r=F(t),i=F(e),u=new Set,a=new Set;return n.forEach(function(t){switch(t._tag){case"Left":r(t.left,u)||u.add(t.left);break;case"Right":i(t.right,a)||a.add(t.right)}}),(0,o.separated)(u,a)}}function M(t){var e=F(t);return function(t){return function(n){var r=new Set;return n.forEach(function(n){var i=t(n);"Some"!==i._tag||e(i.value,r)||r.add(i.value)}),r}}}var E=new Set,k=function(t){return 0===t.size},C=function(t){return t.size},P=function(t){return function(e){for(var n,r=e.values(),i=!1;!i&&!(n=r.next()).done;)i=t(n.value);return i}};function W(t){return(0,u.not)(P((0,u.not)(t)))}function D(t){var e=F(t);return function(n,r){if(void 0===r){var i=D(t);return function(t){return i(t,n)}}return W(function(t){return e(t,r)})(n)}}function F(t){return function(e,n){if(void 0===n){var r,i=F(t);return function(t){return i(e,t)}}for(var u=n.values(),o=!1;!o&&!(r=u.next()).done;)o=t.equals(e,r.value);return o}}var N=function(t){return function(e){var n=[];return e.forEach(function(t){return n.push(t)}),n.sort(t.compare)}},A="ReadonlySet";function L(t){return{show:function(e){var n=[];return e.forEach(function(e){n.push(t.show(e))}),"new Set([".concat(n.sort().join(", "),"])")}}}function U(t){var e=D(t);return(0,r.fromEquals)(function(t,n){return e(t,n)&&e(n,t)})}var j=function(t){return{concat:m(t)}},q=function(t){return{concat:j(t).concat,empty:E}},B=function(t){return{concat:v(t)}},Y=function(t){return{concat:_(t)}},K=f},3291:function(t,e,n){"use strict";n.r(e),n.d(e,{concatAll:function(){return v},constant:function(){return f},first:function(){return h},fold:function(){return M},getDualSemigroup:function(){return x},getFirstSemigroup:function(){return T},getFunctionSemigroup:function(){return C},getIntercalateSemigroup:function(){return O},getJoinSemigroup:function(){return w},getLastSemigroup:function(){return b},getMeetSemigroup:function(){return R},getObjectSemigroup:function(){return _},getStructSemigroup:function(){return S},getTupleSemigroup:function(){return I},intercalate:function(){return d},last:function(){return m},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return E},semigroupAny:function(){return k},semigroupProduct:function(){return D},semigroupString:function(){return P},semigroupSum:function(){return W},semigroupVoid:function(){return y},struct:function(){return s},tuple:function(){return p}});var r=n(42275),i=n(97963),u=n(76113),o=n(5586),a=function(t){return{concat:o.min(t)}},c=function(t){return{concat:o.max(t)}},f=function(t){return{concat:function(){return t}}},l=u.reverse,s=function(t){return{concat:function(e,n){var r={};for(var u in t)i.e$.call(t,u)&&(r[u]=t[u].concat(e[u],n[u]));return r}}},p=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return{concat:function(e,n){return t.map(function(t,r){return t.concat(e[r],n[r])})}}},d=function(t){return function(e){return{concat:function(n,r){return e.concat(n,e.concat(t,r))}}}},h=function(){return{concat:r.identity}},m=function(){return{concat:function(t,e){return e}}},v=u.concatAll,y=f(void 0),_=function(){return{concat:function(t,e){return Object.assign({},t,e)}}},b=m,T=h,I=p,S=s,x=l,w=c,R=a,O=d;function M(t){var e=v(t);return function(t,n){return void 0===n?e(t):e(t)(n)}}var E={concat:function(t,e){return t&&e}},k={concat:function(t,e){return t||e}},C=r.getSemigroup,P={concat:function(t,e){return t+e}},W={concat:function(t,e){return t+e}},D={concat:function(t,e){return t*e}}},34219:function(t,e,n){"use strict";n.r(e),n.d(e,{Bifunctor:function(){return l},Functor:function(){return s},URI:function(){return f},bimap:function(){return c},flap:function(){return p},left:function(){return d},map:function(){return o},mapLeft:function(){return a},right:function(){return h},separated:function(){return u}});var r=n(42275),i=n(67560),u=function(t,e){return{left:t,right:e}},o=function(t){return function(e){return u(d(e),t(h(e)))}},a=function(t){return function(e){return u(t(d(e)),h(e))}},c=function(t,e){return function(n){return u(t(d(n)),e(h(n)))}},f="Separated",l={URI:f,mapLeft:function(t,e){return(0,r.pipe)(t,a(e))},bimap:function(t,e,n){return(0,r.pipe)(t,c(e,n))}},s={URI:f,map:function(t,e){return(0,r.pipe)(t,o(e))}},p=(0,i.flap)(s),d=function(t){return t.left},h=function(t){return t.right}},1214:function(t,e,n){"use strict";n.r(e),n.d(e,{chain:function(){return f},compact:function(){return E},difference:function(){return m},elem:function(){return L},empty:function(){return P},every:function(){return N},filter:function(){return l},filterMap:function(){return C},foldMap:function(){return I},fromArray:function(){return M},getDifferenceMagma:function(){return b},getEq:function(){return a},getIntersectionSemigroup:function(){return _},getShow:function(){return o},getUnionMonoid:function(){return y},getUnionSemigroup:function(){return v},insert:function(){return w},intersection:function(){return d},isEmpty:function(){return W},isSubset:function(){return A},map:function(){return c},partition:function(){return s},partitionMap:function(){return h},reduce:function(){return T},reduceRight:function(){return S},remove:function(){return R},separate:function(){return k},singleton:function(){return x},size:function(){return D},some:function(){return F},subset:function(){return j},toArray:function(){return U},toggle:function(){return O},union:function(){return p}});var r=n(42275),i=n(99156),u=n(34219),o=i.getShow,a=i.getEq;function c(t){var e=L(t);return function(t){return function(n){var r=new Set;return n.forEach(function(n){var i=t(n);e(i,r)||r.add(i)}),r}}}function f(t){var e=L(t);return function(t){return function(n){var r=new Set;return n.forEach(function(n){t(n).forEach(function(t){e(t,r)||r.add(t)})}),r}}}function l(t){return function(e){for(var n,r=e.values(),i=new Set;!(n=r.next()).done;){var u=n.value;t(u)&&i.add(u)}return i}}function s(t){return function(e){for(var n,r=e.values(),i=new Set,o=new Set;!(n=r.next()).done;){var a=n.value;t(a)?i.add(a):o.add(a)}return(0,u.separated)(o,i)}}function p(t){var e=L(t);return function(n,r){if(void 0===r){var i=p(t);return function(t){return i(n,t)}}if(W(n))return r;if(W(r))return n;var u=new Set(n);return r.forEach(function(t){e(t,u)||u.add(t)}),u}}function d(t){var e=L(t);return function(n,r){if(void 0===r){var i=d(t);return function(t){return i(t,n)}}if(W(n)||W(r))return new Set;var u=new Set;return n.forEach(function(t){e(t,r)&&u.add(t)}),u}}function h(t,e){return function(n){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=L(t),l=L(e);!(i=o.next()).done;){var s=n(i.value);switch(s._tag){case"Left":f(s.left,a)||a.add(s.left);break;case"Right":l(s.right,c)||c.add(s.right)}}return(0,u.separated)(a,c)}}}function m(t){var e=L(t);return function(n,r){if(void 0===r){var i=m(t);return function(t){return i(t,n)}}return l(function(t){return!e(t,r)})(n)}}var v=function(t){return{concat:p(t)}},y=function(t){return{concat:v(t).concat,empty:new Set}},_=function(t){return{concat:d(t)}},b=function(t){return{concat:m(t)}},T=i.reduce,I=i.foldMap,S=i.reduceRight,x=function(t){return new Set([t])};function w(t){var e=L(t);return function(t){return function(n){if(e(t)(n))return n;var r=new Set(n);return r.add(t),r}}}var R=function(t){return function(e){return function(n){return l(function(n){return!t.equals(e,n)})(n)}}},O=function(t){var e=L(t),n=R(t),r=w(t);return function(t){return function(i){return(e(t,i)?n:r)(t)(i)}}},M=function(t){return function(e){for(var n=e.length,r=new Set,i=L(t),u=0;u<n;u++){var o=e[u];i(o,r)||r.add(o)}return r}},E=function(t){return C(t)(r.identity)};function k(t,e){return function(n){var r=L(t),i=L(e),o=new Set,a=new Set;return n.forEach(function(t){switch(t._tag){case"Left":r(t.left,o)||o.add(t.left);break;case"Right":i(t.right,a)||a.add(t.right)}}),(0,u.separated)(o,a)}}function C(t){var e=L(t);return function(t){return function(n){var r=new Set;return n.forEach(function(n){var i=t(n);"Some"!==i._tag||e(i.value,r)||r.add(i.value)}),r}}}var P=new Set,W=function(t){return 0===t.size},D=function(t){return t.size},F=i.some,N=i.every,A=i.isSubset,L=i.elem,U=function(t){return function(e){var n=[];return e.forEach(function(t){return n.push(t)}),n.sort(t.compare)}},j=i.isSubset},76511:function(t,e,n){"use strict";n.r(e),n.d(e,{filterE:function(){return o},wiltDefault:function(){return i},witherDefault:function(){return u}});var r=n(97963);function i(t,e){return function(n){var r=t.traverse(n);return function(t,i){return n.map(r(t,i),e.separate)}}}function u(t,e){return function(n){var r=t.traverse(n);return function(t,i){return n.map(r(t,i),e.compact)}}}function o(t){return function(e){var n=t.wither(e);return function(t){return function(i){return n(i,function(n){return e.map(t(n),function(t){return t?r.G(n):r.YP})})}}}}},28957:function(t,e,n){"use strict";function r(t,e){return function(n){return n?e.of(void 0):t.zero()}}n.r(e),n.d(e,{guard:function(){return r}})},42275:function(t,e,n){"use strict";n.r(e),n.d(e,{SK:function(){return E},absurd:function(){return x},apply:function(){return f},constFalse:function(){return h},constNull:function(){return m},constTrue:function(){return d},constUndefined:function(){return v},constVoid:function(){return y},constant:function(){return p},decrement:function(){return S},dual:function(){return P},flip:function(){return _},flow:function(){return b},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return C},getMonoid:function(){return o},getRing:function(){return c},getSemigroup:function(){return u},getSemiring:function(){return a},hole:function(){return M},identity:function(){return l},increment:function(){return I},not:function(){return k},pipe:function(){return O},tuple:function(){return T},tupled:function(){return w},unsafeCoerce:function(){return s},untupled:function(){return R}});var r=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},i=function(t){return function(){return{meet:function(e,n){return function(r){return t.meet(e(r),n(r))}},join:function(e,n){return function(r){return t.join(e(r),n(r))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,n){return function(r){return t.implies(e(r),n(r))}},not:function(e){return function(n){return t.not(e(n))}}}}},u=function(t){return function(){return{concat:function(e,n){return function(r){return t.concat(e(r),n(r))}}}}},o=function(t){var e=u(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}},a=function(t){return{add:function(e,n){return function(r){return t.add(e(r),n(r))}},zero:function(){return t.zero},mul:function(e,n){return function(r){return t.mul(e(r),n(r))}},one:function(){return t.one}}},c=function(t){var e=a(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(e,n){return function(r){return t.sub(e(r),n(r))}}}},f=function(t){return function(e){return e(t)}};function l(t){return t}var s=l;function p(t){return function(){return t}}var d=p(!0),h=p(!1),m=p(null),v=p(void 0),y=v;function _(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length>1?t(e[1],e[0]):function(n){return t(n)(e[0])}}}function b(t,e,n,r,i,u,o,a,c){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return n(e(t.apply(this,arguments)))};case 4:return function(){return r(n(e(t.apply(this,arguments))))};case 5:return function(){return i(r(n(e(t.apply(this,arguments)))))};case 6:return function(){return u(i(r(n(e(t.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(n(e(t.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(n(e(t.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(n(e(t.apply(this,arguments)))))))))}}}function T(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t}function I(t){return t+1}function S(t){return t-1}function x(t){throw Error("Called `absurd` function which should be uncallable")}function w(t){return function(e){return t.apply(void 0,e)}}function R(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t(e)}}function O(t,e,n,r,i,u,o,a,c){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return n(e(t));case 4:return r(n(e(t)));case 5:return i(r(n(e(t))));case 6:return u(i(r(n(e(t)))));case 7:return o(u(i(r(n(e(t))))));case 8:return a(o(u(i(r(n(e(t)))))));case 9:return c(a(o(u(i(r(n(e(t))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var M=x,E=function(t,e){return e};function k(t){return function(e){return!t(e)}}var C=function(){return{concat:function(t,e){return b(t,e)},empty:l}},P=function(t,e){var n="number"==typeof t?function(e){return e.length>=t}:t;return function(){var t=Array.from(arguments);return n(arguments)?e.apply(this,t):function(n){return e.apply(void 0,r([n],t,!1))}}}},9554:function(t,e,n){"use strict";n.r(e),n.d(e,{alt:function(){return r},alternative:function(){return i},applicative:function(){return tY},apply:function(){return tj},array:function(){return tK},bifunctor:function(){return u},boolean:function(){return o},booleanAlgebra:function(){return a},bounded:function(){return c},boundedDistributiveLattice:function(){return l},boundedJoinSemilattice:function(){return s},boundedLattice:function(){return p},boundedMeetSemilattice:function(){return d},category:function(){return h},chain:function(){return eo},chainRec:function(){return ea},choice:function(){return m},comonad:function(){return v},compactable:function(){return y},console:function(){return _},const:function(){return eI},contravariant:function(){return b},date:function(){return T},distributiveLattice:function(){return f},either:function(){return eC},eitherT:function(){return I},endomorphism:function(){return e3},eq:function(){return e5},extend:function(){return S},field:function(){return x},filterable:function(){return w},filterableWithIndex:function(){return R},foldable:function(){return O},foldableWithIndex:function(){return M},fromEither:function(){return nb},fromIO:function(){return E},fromReader:function(){return C},fromState:function(){return W},fromTask:function(){return D},fromThese:function(){return F},function:function(){return t7},functor:function(){return ep},functorWithIndex:function(){return N},group:function(){return A},heytingAlgebra:function(){return L},hkt:function(){return U},identity:function(){return j},invariant:function(){return q},io:function(){return B},ioEither:function(){return Y},ioOption:function(){return G},ioRef:function(){return z},joinSemilattice:function(){return V},json:function(){return H},lattice:function(){return Z},magma:function(){return fx},map:function(){return fw},meetSemilattice:function(){return $},monad:function(){return X},monadIO:function(){return J},monadTask:function(){return Q},monadThrow:function(){return tt},monoid:function(){return fR},naturalTransformation:function(){return te},nonEmptyArray:function(){return fO},number:function(){return eS},option:function(){return ed},optionT:function(){return K},ord:function(){return et},ordering:function(){return tn},pipeable:function(){return fU},pointed:function(){return tr},predicate:function(){return nt},profunctor:function(){return ti},random:function(){return tu},reader:function(){return k},readerEither:function(){return to},readerIO:function(){return tc},readerT:function(){return ta},readerTask:function(){return tl},readerTaskEither:function(){return tp},readonlyArray:function(){return bw},readonlyMap:function(){return bR},readonlyNonEmptyArray:function(){return bO},readonlyRecord:function(){return bM},readonlySet:function(){return bE},readonlyTuple:function(){return td},record:function(){return th},refinement:function(){return tm},ring:function(){return tv},semigroup:function(){return Ta},semigroupoid:function(){return tg},semiring:function(){return ty},separated:function(){return eh},set:function(){return I7},show:function(){return t_},state:function(){return P},stateReaderTaskEither:function(){return tT},stateT:function(){return tb},store:function(){return tI},string:function(){return Tc},strong:function(){return tS},struct:function(){return tx},task:function(){return tf},taskEither:function(){return ts},taskOption:function(){return tw},taskThese:function(){return tM},these:function(){return tR},theseT:function(){return tO},traced:function(){return tE},traversable:function(){return tk},traversableWithIndex:function(){return tC},tree:function(){return tP},tuple:function(){return tW},unfoldable:function(){return tD},validationT:function(){return tF},void:function(){return tN},witherable:function(){return Tf},writer:function(){return tA},writerT:function(){return tL},zero:function(){return a3}});var r={};n.r(r),n.d(r,{altAll:function(){return tU}});var i={};n.r(i),n.d(i,{altAll:function(){return tq},getAlternativeMonoid:function(){return tB}});var u={};n.r(u);var o={};n.r(o),n.d(o,{BooleanAlgebra:function(){return tX},Eq:function(){return t$},MonoidAll:function(){return t0},MonoidAny:function(){return t1},Ord:function(){return t8},SemigroupAll:function(){return tJ},SemigroupAny:function(){return tQ},Show:function(){return t2},fold:function(){return tZ},foldW:function(){return tV},isBoolean:function(){return tG},match:function(){return tH},matchW:function(){return tz}});var a={};n.r(a),n.d(a,{booleanAlgebraBoolean:function(){return t9},booleanAlgebraVoid:function(){return t5},getDualBooleanAlgebra:function(){return t4},getFunctionBooleanAlgebra:function(){return t6},reverse:function(){return t3}});var c={};n.r(c),n.d(c,{boundedNumber:function(){return er},clamp:function(){return ee},reverse:function(){return en}});var f={};n.r(f),n.d(f,{getMinMaxDistributiveLattice:function(){return ei}});var l={};n.r(l),n.d(l,{getMinMaxBoundedDistributiveLattice:function(){return eu}});var s={};n.r(s);var p={};n.r(p);var d={};n.r(d);var h={};n.r(h);var m={};n.r(m),n.d(m,{fanIn:function(){return ef},fanin:function(){return es},split:function(){return ec},splitChoice:function(){return el}});var v={};n.r(v);var y={};n.r(y),n.d(y,{compact:function(){return em},getCompactableComposition:function(){return eg},separate:function(){return ev}});var _={};n.r(_),n.d(_,{error:function(){return eb},info:function(){return eT},log:function(){return ey},warn:function(){return e_}});var b={};n.r(b);var T={};n.r(T),n.d(T,{Eq:function(){return ex},Ord:function(){return eM},create:function(){return eE},eqDate:function(){return ew},eqMonth:function(){return eR},eqYear:function(){return eO},now:function(){return ek}});var I={};n.r(I),n.d(I,{alt:function(){return eY},altValidation:function(){return eH},ap:function(){return ej},bimap:function(){return eK},chain:function(){return eq},chainNullableK:function(){return eL},flatMap:function(){return eB},fromNullable:function(){return eN},fromNullableK:function(){return eA},getEitherM:function(){return e7},getOrElse:function(){return eX},left:function(){return eW},leftF:function(){return eF},map:function(){return eU},mapBoth:function(){return eG},mapError:function(){return eV},mapLeft:function(){return ez},match:function(){return eZ},matchE:function(){return e$},orElse:function(){return eJ},orElseFirst:function(){return eQ},orLeft:function(){return e1},right:function(){return eP},rightF:function(){return eD},swap:function(){return e8},tapError:function(){return e0},toUnion:function(){return e2}});var S={};n.r(S);var x={};n.r(x),n.d(x,{fieldNumber:function(){return e6},gcd:function(){return e4},lcm:function(){return e9}});var w={};n.r(w),n.d(w,{filter:function(){return ne},filterMap:function(){return nn},getFilterableComposition:function(){return nu},partition:function(){return nr},partitionMap:function(){return ni}});var R={};n.r(R);var O={};n.r(O),n.d(O,{foldM:function(){return nd},foldMap:function(){return na},getFoldableComposition:function(){return nm},intercalate:function(){return nl},reduce:function(){return no},reduceM:function(){return nf},reduceRight:function(){return nc},toArray:function(){return nh},toReadonlyArray:function(){return ns},traverse_:function(){return np}});var M={};n.r(M),n.d(M,{foldMapWithIndex:function(){return ng},getFoldableWithIndexComposition:function(){return n_},reduceRightWithIndex:function(){return ny},reduceWithIndex:function(){return nv}});var E={};n.r(E),n.d(E,{chainFirstIOK:function(){return nS},chainIOK:function(){return nI},fromIOK:function(){return nT},tapIO:function(){return nx}});var k={};n.r(k),n.d(k,{ApT:function(){return rf},Applicative:function(){return n7},Apply:function(){return nQ},Category:function(){return n6},Chain:function(){return n3},Choice:function(){return re},Do:function(){return ro},Functor:function(){return n$},Monad:function(){return n5},Pointed:function(){return nJ},Profunctor:function(){return n9},Strong:function(){return rt},URI:function(){return nZ},ap:function(){return nA},apFirst:function(){return n0},apFirstW:function(){return n1},apS:function(){return ra},apSW:function(){return rc},apSecond:function(){return n8},apSecondW:function(){return n2},apW:function(){return nN},ask:function(){return nR},asks:function(){return nO},asksReader:function(){return nk},asksReaderW:function(){return nE},bind:function(){return ri},bindTo:function(){return rn},bindW:function(){return ru},chain:function(){return rv},chainFirst:function(){return rg},chainFirstW:function(){return ry},chainW:function(){return rm},compose:function(){return nB},first:function(){return nG},flap:function(){return nX},flatMap:function(){return nU},flatten:function(){return nq},flattenW:function(){return nj},getMonoid:function(){return rT},getSemigroup:function(){return rb},id:function(){return nK},left:function(){return nV},let:function(){return rr},local:function(){return nM},map:function(){return nF},of:function(){return nL},promap:function(){return nY},reader:function(){return r_},right:function(){return nH},second:function(){return nz},sequenceArray:function(){return rh},tap:function(){return n4},traverseArray:function(){return rd},traverseArrayWithIndex:function(){return rp},traverseReadonlyArrayWithIndex:function(){return rs},traverseReadonlyNonEmptyArrayWithIndex:function(){return rl}});var C={};n.r(C),n.d(C,{ask:function(){return rI},asks:function(){return rS},chainFirstReaderK:function(){return rR},chainReaderK:function(){return rw},fromReaderK:function(){return rx},tapReader:function(){return rO}});var P={};n.r(P),n.d(P,{Applicative:function(){return rz},Apply:function(){return rY},Chain:function(){return rV},FromState:function(){return r$},Functor:function(){return rj},Monad:function(){return rH},Pointed:function(){return rB},URI:function(){return rU},ap:function(){return rF},apFirst:function(){return rK},apS:function(){return r8},apSecond:function(){return rG},bind:function(){return r1},bindTo:function(){return rQ},chain:function(){return r9},chainFirst:function(){return r6},evalState:function(){return it},evaluate:function(){return rX},execState:function(){return ie},execute:function(){return rJ},flap:function(){return rq},flatMap:function(){return rA},flatten:function(){return rL},get:function(){return rM},gets:function(){return rC},let:function(){return r0},map:function(){return rD},modify:function(){return rk},of:function(){return rN},put:function(){return rE},sequenceArray:function(){return r4},state:function(){return ir},tap:function(){return rZ},traverseArray:function(){return r5},traverseArrayWithIndex:function(){return r3},traverseReadonlyArrayWithIndex:function(){return r7},traverseReadonlyNonEmptyArrayWithIndex:function(){return r2}});var W={};n.r(W),n.d(W,{chainStateK:function(){return il},fromStateK:function(){return ic},get:function(){return ii},gets:function(){return ia},modify:function(){return io},put:function(){return iu}});var D={};n.r(D),n.d(D,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return is},tapTask:function(){return ih}});var F={};n.r(F),n.d(F,{fromTheseK:function(){return im}});var N={};n.r(N),n.d(N,{getFunctorWithIndexComposition:function(){return ig},mapWithIndex:function(){return iv}});var A={};n.r(A);var L={};n.r(L);var U={};n.r(U);var j={};n.r(j),n.d(j,{Alt:function(){return i2},Applicative:function(){return iX},Apply:function(){return iH},Chain:function(){return iJ},ChainRec:function(){return i3},Comonad:function(){return i7},Do:function(){return i5},Foldable:function(){return i1},Functor:function(){return iG},Monad:function(){return iQ},Pointed:function(){return iV},Traversable:function(){return i8},URI:function(){return iB},alt:function(){return iq},altW:function(){return ij},ap:function(){return iM},apFirst:function(){return iZ},apS:function(){return ut},apSecond:function(){return i$},bind:function(){return i6},bindTo:function(){return i4},chain:function(){return ue},chainFirst:function(){return i0},duplicate:function(){return iW},extend:function(){return iC},extract:function(){return iP},flap:function(){return iz},flatMap:function(){return ik},flatten:function(){return iD},foldMap:function(){return iN},getEq:function(){return iK},getShow:function(){return iY},identity:function(){return un},let:function(){return i9},map:function(){return iO},of:function(){return iE},reduce:function(){return iF},reduceRight:function(){return iA},sequence:function(){return iU},traverse:function(){return iL}});var q={};n.r(q);var B={};n.r(B),n.d(B,{ApT:function(){return uW},Applicative:function(){return ub},Apply:function(){return ug},Chain:function(){return uT},ChainRec:function(){return uR},Do:function(){return uM},FromIO:function(){return uO},Functor:function(){return up},Monad:function(){return uI},MonadIO:function(){return uw},Pointed:function(){return uv},URI:function(){return us},ap:function(){return ua},apFirst:function(){return uy},apS:function(){return uP},apSecond:function(){return u_},as:function(){return ud},asUnit:function(){return uh},bind:function(){return uC},bindTo:function(){return uE},chain:function(){return uU},chainFirst:function(){return uj},flap:function(){return um},flatMap:function(){return uf},flatten:function(){return ul},fromIO:function(){return ux},getMonoid:function(){return uY},getSemigroup:function(){return uB},io:function(){return uq},let:function(){return uk},map:function(){return uo},of:function(){return uc},sequenceArray:function(){return uL},tap:function(){return uS},traverseArray:function(){return uA},traverseArrayWithIndex:function(){return uN},traverseReadonlyArrayWithIndex:function(){return uF},traverseReadonlyNonEmptyArrayWithIndex:function(){return uD}});var Y={};n.r(Y),n.d(Y,{Alt:function(){return oz},ApT:function(){return ag},Applicative:function(){return aM},ApplicativePar:function(){return oA},ApplicativeSeq:function(){return oL},ApplyPar:function(){return oP},Bifunctor:function(){return oC},Chain:function(){return oU},Do:function(){return al},FromEither:function(){return oq},FromIO:function(){return oB},Functor:function(){return oR},Monad:function(){return oj},MonadIO:function(){return oV},MonadThrow:function(){return oH},Pointed:function(){return ok},URI:function(){return oT},alt:function(){return oy},altW:function(){return o_},ap:function(){return op},apFirst:function(){return oW},apFirstW:function(){return oD},apS:function(){return am},apSW:function(){return av},apSecond:function(){return oF},apSecondW:function(){return oN},apW:function(){return od},as:function(){return oO},asUnit:function(){return oM},bimap:function(){return of},bind:function(){return ad},bindTo:function(){return as},bindW:function(){return ah},bracket:function(){return ac},bracketW:function(){return af},chain:function(){return aE},chainEitherK:function(){return at},chainEitherKW:function(){return ae},chainFirst:function(){return aC},chainFirstEitherK:function(){return an},chainFirstEitherKW:function(){return ar},chainFirstIOK:function(){return o$},chainFirstW:function(){return aP},chainIOK:function(){return o6},chainOptionK:function(){return oQ},chainOptionKW:function(){return o0},chainW:function(){return ak},filterOrElse:function(){return au},filterOrElseW:function(){return ao},flap:function(){return oE},flatMap:function(){return om},flatMapEither:function(){return o4},flatMapIO:function(){return o9},flatMapNullable:function(){return o3},flatMapOption:function(){return o5},flatten:function(){return og},flattenW:function(){return ov},fold:function(){return uQ},foldW:function(){return u1},fromEither:function(){return uH},fromEitherK:function(){return aa},fromIO:function(){return uZ},fromIOK:function(){return oZ},fromOption:function(){return oX},fromOptionK:function(){return oJ},fromPredicate:function(){return ai},getAltIOValidation:function(){return oS},getApplicativeIOValidation:function(){return oI},getApplyMonoid:function(){return aA},getApplySemigroup:function(){return aN},getCompactable:function(){return ox},getFilterable:function(){return ow},getIOValidation:function(){return aU},getOrElse:function(){return u8},getOrElseW:function(){return u2},getSemigroup:function(){return aL},ioEither:function(){return aF},left:function(){return uK},leftIO:function(){return uV},let:function(){return ap},liftNullable:function(){return o8},liftOption:function(){return o2},map:function(){return oa},mapBoth:function(){return oc},mapError:function(){return ol},mapLeft:function(){return os},match:function(){return u$},matchE:function(){return uJ},matchEW:function(){return u0},matchW:function(){return uX},of:function(){return oh},orElse:function(){return u4},orElseFirst:function(){return aW},orElseFirstIOK:function(){return ot},orElseFirstW:function(){return aD},orElseW:function(){return u9},orLeft:function(){return oe},right:function(){return uG},rightIO:function(){return uz},sequenceArray:function(){return ax},sequenceSeqArray:function(){return aO},swap:function(){return on},tap:function(){return oY},tapEither:function(){return oK},tapError:function(){return u6},tapIO:function(){return oG},throwError:function(){return ob},toUnion:function(){return u5},traverseArray:function(){return aS},traverseArrayWithIndex:function(){return aI},traverseReadonlyArrayWithIndex:function(){return a_},traverseReadonlyArrayWithIndexSeq:function(){return aT},traverseReadonlyNonEmptyArrayWithIndex:function(){return ay},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return ab},traverseSeqArray:function(){return aR},traverseSeqArrayWithIndex:function(){return aw},tryCatch:function(){return u7},tryCatchK:function(){return u3}});var K={};n.r(K),n.d(K,{alt:function(){return a2},ap:function(){return a0},chain:function(){return a1},chainNullableK:function(){return aG},chainOptionK:function(){return aV},flatMap:function(){return a8},fromEither:function(){return aZ},fromF:function(){return aB},fromNullable:function(){return aY},fromNullableK:function(){return aK},fromOptionK:function(){return az},fromPredicate:function(){return aH},getOptionM:function(){return a7},getOrElse:function(){return aJ},map:function(){return aQ},match:function(){return a$},matchE:function(){return aX},some:function(){return aj},zero:function(){return aq}});var G={};n.r(G),n.d(G,{Alt:function(){return cQ},Alternative:function(){return c8},ApT:function(){return fm},Applicative:function(){return cz},Apply:function(){return cY},Chain:function(){return cV},Compactable:function(){return c3},Do:function(){return fl},Filterable:function(){return c5},FromEither:function(){return cH},FromIO:function(){return cZ},Functor:function(){return cL},Monad:function(){return c2},MonadIO:function(){return c7},Pointed:function(){return cB},URI:function(){return cA},Zero:function(){return c0},alt:function(){return cb},altW:function(){return cT},ap:function(){return cv},apFirst:function(){return cK},apS:function(){return fh},apSecond:function(){return cG},as:function(){return cU},asUnit:function(){return cj},bind:function(){return fd},bindTo:function(){return fs},chain:function(){return fy},chainEitherK:function(){return fa},chainFirst:function(){return f_},chainFirstEitherK:function(){return fc},chainFirstIOK:function(){return fu},chainIOK:function(){return fi},chainNullableK:function(){return cd},chainOptionK:function(){return ff},compact:function(){return cx},filter:function(){return cR},filterMap:function(){return cO},flap:function(){return cq},flatMap:function(){return cy},flatMapEither:function(){return fe},flatMapIO:function(){return c6},flatMapNullable:function(){return fn},flatMapOption:function(){return ft},flatten:function(){return c_},fold:function(){return cu},fromEither:function(){return a6},fromEitherK:function(){return fo},fromIO:function(){return ct},fromIOEither:function(){return ce},fromIOK:function(){return fr},fromNullable:function(){return cs},fromNullableK:function(){return cp},fromOption:function(){return a9},fromOptionK:function(){return ch},fromPredicate:function(){return a4},getOrElse:function(){return ca},getOrElseW:function(){return cc},guard:function(){return c1},let:function(){return fp},map:function(){return cm},match:function(){return cn},matchE:function(){return ci},matchEW:function(){return co},matchW:function(){return cr},none:function(){return cS},of:function(){return cg},partition:function(){return cM},partitionMap:function(){return cE},separate:function(){return cw},some:function(){return a5},tap:function(){return c$},tapEither:function(){return cX},tapIO:function(){return cJ},toNullable:function(){return cl},toUndefined:function(){return cf},traverseReadonlyArrayWithIndex:function(){return fg},traverseReadonlyNonEmptyArrayWithIndex:function(){return fv},zero:function(){return cI}});var z={};n.r(z),n.d(z,{IORef:function(){return fb},newIORef:function(){return fT}});var V={};n.r(V);var H={};n.r(H),n.d(H,{parse:function(){return fI},stringify:function(){return fS}});var Z={};n.r(Z);var $={};n.r($);var X={};n.r(X);var J={};n.r(J);var Q={};n.r(Q);var tt={};n.r(tt);var te={};n.r(te);var tn={};n.r(tn),n.d(tn,{Eq:function(){return fC},Monoid:function(){return fW},Semigroup:function(){return fP},eqOrdering:function(){return fA},invert:function(){return fF},match:function(){return fE},matchW:function(){return fM},monoidOrdering:function(){return fL},reverse:function(){return fk},semigroupOrdering:function(){return fN},sign:function(){return fD}});var tr={};n.r(tr);var ti={};n.r(ti);var tu={};n.r(tu),n.d(tu,{random:function(){return fj},randomBool:function(){return fY},randomElem:function(){return fK},randomInt:function(){return fq},randomRange:function(){return fB}});var to={};n.r(to),n.d(to,{Alt:function(){return lG},ApT:function(){return sy},Applicative:function(){return lN},Apply:function(){return lC},Bifunctor:function(){return lK},Chain:function(){return lA},Do:function(){return ss},FromEither:function(){return lU},FromReader:function(){return lj},Functor:function(){return lR},Monad:function(){return lL},MonadThrow:function(){return lX},Pointed:function(){return lk},URI:function(){return lT},alt:function(){return ly},altW:function(){return l_},ap:function(){return lp},apFirst:function(){return lP},apFirstW:function(){return lW},apS:function(){return sv},apSW:function(){return sg},apSecond:function(){return lD},apSecondW:function(){return lF},apW:function(){return ld},as:function(){return lO},asUnit:function(){return lM},ask:function(){return lz},asks:function(){return lV},asksReaderEither:function(){return f9},asksReaderEitherW:function(){return f4},bimap:function(){return lf},bind:function(){return sh},bindTo:function(){return sp},bindW:function(){return sm},chain:function(){return sx},chainEitherK:function(){return se},chainEitherKW:function(){return sn},chainFirst:function(){return sR},chainFirstEitherK:function(){return sr},chainFirstEitherKW:function(){return si},chainFirstReaderK:function(){return lZ},chainFirstReaderKW:function(){return l$},chainFirstW:function(){return sO},chainOptionK:function(){return l0},chainOptionKW:function(){return l1},chainReaderK:function(){return su},chainReaderKW:function(){return so},chainW:function(){return sw},filterOrElse:function(){return sc},filterOrElseW:function(){return sf},flap:function(){return lE},flatMap:function(){return lm},flatMapEither:function(){return l6},flatMapNullable:function(){return l4},flatMapOption:function(){return l9},flatMapReader:function(){return st},flatten:function(){return lg},flattenW:function(){return lv},fold:function(){return f0},foldW:function(){return f8},fromEither:function(){return fZ},fromEitherK:function(){return sl},fromOption:function(){return lJ},fromOptionK:function(){return lQ},fromPredicate:function(){return sa},fromReader:function(){return f$},fromReaderK:function(){return lH},getAltReaderValidation:function(){return lw},getApplicativeReaderValidation:function(){return lx},getApplyMonoid:function(){return sP},getApplySemigroup:function(){return sC},getCompactable:function(){return lI},getFilterable:function(){return lS},getOrElse:function(){return f2},getOrElseW:function(){return f7},getReaderValidation:function(){return sD},getSemigroup:function(){return sW},left:function(){return fG},leftReader:function(){return fH},let:function(){return sd},liftNullable:function(){return l7},liftOption:function(){return l3},local:function(){return f5},map:function(){return la},mapBoth:function(){return lc},mapError:function(){return ll},mapLeft:function(){return ls},match:function(){return fX},matchE:function(){return fQ},matchEW:function(){return f1},matchW:function(){return fJ},of:function(){return lh},orElse:function(){return f6},orElseFirst:function(){return sM},orElseFirstW:function(){return sE},orElseW:function(){return lt},orLeft:function(){return ln},readerEither:function(){return sk},right:function(){return fz},rightReader:function(){return fV},sequenceArray:function(){return sS},swap:function(){return lr},tap:function(){return lq},tapEither:function(){return lB},tapError:function(){return le},tapReader:function(){return lY},throwError:function(){return lb},toUnion:function(){return f3},traverseArray:function(){return sI},traverseArrayWithIndex:function(){return sT},traverseReadonlyArrayWithIndex:function(){return sb},traverseReadonlyNonEmptyArrayWithIndex:function(){return s_}});var ta={};n.r(ta),n.d(ta,{ap:function(){return sA},chain:function(){return sL},flatMap:function(){return sU},fromNaturalTransformation:function(){return sq},fromReader:function(){return sj},getReaderM:function(){return sB},map:function(){return sN},of:function(){return sF}});var tc={};n.r(tc),n.d(tc,{ApT:function(){return pC},Applicative:function(){return pn},Apply:function(){return s6},Chain:function(){return pr},Do:function(){return pw},FromIO:function(){return po},FromReader:function(){return pa},Functor:function(){return s7},Monad:function(){return pi},MonadIO:function(){return pu},Pointed:function(){return s9},URI:function(){return s2},ap:function(){return sX},apFirst:function(){return pt},apS:function(){return pE},apSW:function(){return pk},apSecond:function(){return pe},apW:function(){return sJ},as:function(){return s3},asUnit:function(){return s5},ask:function(){return py},asks:function(){return p_},asksReaderIO:function(){return sV},asksReaderIOW:function(){return sz},bind:function(){return pO},bindTo:function(){return pR},bindW:function(){return pM},chain:function(){return pA},chainFirst:function(){return pU},chainFirstIOK:function(){return pg},chainFirstReaderK:function(){return pS},chainFirstReaderKW:function(){return px},chainFirstW:function(){return pj},chainIOK:function(){return pv},chainReaderK:function(){return pT},chainReaderKW:function(){return pI},chainW:function(){return pL},flap:function(){return s4},flatMap:function(){return s0},flatMapIO:function(){return pl},flatMapReader:function(){return ps},flatten:function(){return s8},flattenW:function(){return s1},fromIO:function(){return sK},fromIOK:function(){return pm},fromReader:function(){return sY},fromReaderK:function(){return pb},local:function(){return sG},map:function(){return s$},of:function(){return sQ},sequenceArray:function(){return pN},tap:function(){return pp},tapIO:function(){return pd},tapReader:function(){return ph},traverseArray:function(){return pF},traverseArrayWithIndex:function(){return pD},traverseReadonlyArrayWithIndex:function(){return pW},traverseReadonlyNonEmptyArrayWithIndex:function(){return pP}});var tf={};n.r(tf),n.d(tf,{ApT:function(){return dT},ApplicativePar:function(){return p4},ApplicativeSeq:function(){return p6},ApplyPar:function(){return p7},ApplySeq:function(){return p9},Chain:function(){return dt},Do:function(){return dv},FromIO:function(){return du},FromTask:function(){return dh},Functor:function(){return pQ},Monad:function(){return de},MonadIO:function(){return dn},MonadTask:function(){return di},Pointed:function(){return p2},URI:function(){return pX},ap:function(){return pV},apFirst:function(){return p3},apS:function(){return db},apSecond:function(){return p5},as:function(){return p0},asUnit:function(){return p1},bind:function(){return d_},bindTo:function(){return dg},chain:function(){return dP},chainFirst:function(){return dW},chainFirstIOK:function(){return dd},chainIOK:function(){return dp},delay:function(){return pB},flap:function(){return p8},flatMap:function(){return pZ},flatMapIO:function(){return dc},flatten:function(){return p$},fromIO:function(){return pq},fromIOK:function(){return ds},fromTask:function(){return dr},getMonoid:function(){return dA},getRaceMonoid:function(){return pJ},getSemigroup:function(){return dN},let:function(){return dy},map:function(){return pz},never:function(){return dm},of:function(){return pH},sequenceArray:function(){return dM},sequenceSeqArray:function(){return dC},tap:function(){return df},tapIO:function(){return dl},task:function(){return dD},taskSeq:function(){return dF},traverseArray:function(){return dO},traverseArrayWithIndex:function(){return dR},traverseReadonlyArrayWithIndex:function(){return dS},traverseReadonlyArrayWithIndexSeq:function(){return dw},traverseReadonlyNonEmptyArrayWithIndex:function(){return dI},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return dx},traverseSeqArray:function(){return dk},traverseSeqArrayWithIndex:function(){return dE}});var tl={};n.r(tl),n.d(tl,{ApT:function(){return hz},ApplicativePar:function(){return ht},ApplicativeSeq:function(){return hn},ApplyPar:function(){return d4},ApplySeq:function(){return he},Chain:function(){return hr},Do:function(){return hU},FromIO:function(){return ha},FromReader:function(){return hf},FromTask:function(){return hc},Functor:function(){return d8},Monad:function(){return hi},MonadIO:function(){return hu},MonadTask:function(){return ho},Pointed:function(){return d5},URI:function(){return d1},ap:function(){return dZ},apFirst:function(){return d9},apS:function(){return hK},apSW:function(){return hG},apSecond:function(){return d6},apW:function(){return d$},as:function(){return d2},asUnit:function(){return d7},ask:function(){return hx},asks:function(){return hw},asksReaderTask:function(){return dK},asksReaderTaskW:function(){return dY},bind:function(){return hB},bindTo:function(){return hj},bindW:function(){return hY},chain:function(){return h8},chainFirst:function(){return h7},chainFirstIOK:function(){return hS},chainFirstReaderIOK:function(){return hF},chainFirstReaderIOKW:function(){return hD},chainFirstReaderK:function(){return hE},chainFirstReaderKW:function(){return hk},chainFirstTaskK:function(){return hL},chainFirstW:function(){return h3},chainIOK:function(){return hI},chainReaderIOK:function(){return hW},chainReaderIOKW:function(){return hP},chainReaderK:function(){return hO},chainReaderKW:function(){return hM},chainTaskK:function(){return hA},chainW:function(){return h2},flap:function(){return d3},flatMap:function(){return dJ},flatMapIO:function(){return hp},flatMapReader:function(){return hh},flatMapReaderIO:function(){return hm},flatMapTask:function(){return hd},flatten:function(){return d0},flattenW:function(){return dQ},fromIO:function(){return dj},fromIOK:function(){return hT},fromReader:function(){return dL},fromReaderIO:function(){return dq},fromReaderIOK:function(){return hC},fromReaderK:function(){return hR},fromTask:function(){return dU},fromTaskK:function(){return hN},getMonoid:function(){return mt},getSemigroup:function(){return h6},let:function(){return hq},local:function(){return dB},map:function(){return dH},of:function(){return dX},readerTask:function(){return h4},readerTaskSeq:function(){return h9},run:function(){return me},sequenceArray:function(){return hQ},sequenceSeqArray:function(){return h5},tap:function(){return hv},tapIO:function(){return hg},tapReader:function(){return hy},tapReaderIO:function(){return hb},tapTask:function(){return h_},traverseArray:function(){return hJ},traverseArrayWithIndex:function(){return hX},traverseReadonlyArrayWithIndex:function(){return hH},traverseReadonlyArrayWithIndexSeq:function(){return h$},traverseReadonlyNonEmptyArrayWithIndex:function(){return hV},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return hZ},traverseSeqArray:function(){return h1},traverseSeqArrayWithIndex:function(){return h0}});var ts={};n.r(ts),n.d(ts,{Alt:function(){return vx},ApT:function(){return gr},ApplicativePar:function(){return vc},ApplicativeSeq:function(){return vl},ApplyPar:function(){return vr},ApplySeq:function(){return vf},Bifunctor:function(){return vS},Chain:function(){return vs},Do:function(){return v5},FromEither:function(){return vv},FromIO:function(){return vg},FromTask:function(){return vy},Functor:function(){return m9},Monad:function(){return vp},MonadIO:function(){return vd},MonadTask:function(){return vh},MonadThrow:function(){return vm},Pointed:function(){return vn},URI:function(){return m2},alt:function(){return mQ},altW:function(){return m0},ap:function(){return mH},apFirst:function(){return vi},apFirstW:function(){return vu},apS:function(){return ge},apSW:function(){return gn},apSecond:function(){return vo},apSecondW:function(){return va},apW:function(){return mZ},as:function(){return m6},asUnit:function(){return vt},bimap:function(){return mG},bind:function(){return v6},bindTo:function(){return v4},bindW:function(){return gt},bracket:function(){return v7},bracketW:function(){return v3},chain:function(){return gh},chainEitherK:function(){return vq},chainEitherKW:function(){return vB},chainFirst:function(){return gv},chainFirstEitherK:function(){return vY},chainFirstEitherKW:function(){return vK},chainFirstIOK:function(){return vX},chainFirstTaskK:function(){return v0},chainFirstW:function(){return gg},chainIOEitherK:function(){return v8},chainIOEitherKW:function(){return v1},chainIOK:function(){return v$},chainNullableK:function(){return mO},chainOptionK:function(){return vO},chainOptionKW:function(){return vM},chainTaskK:function(){return vQ},chainTaskOptionK:function(){return mA},chainTaskOptionKW:function(){return mN},chainW:function(){return gm},filterOrElse:function(){return vz},filterOrElseW:function(){return vV},flap:function(){return ve},flatMap:function(){return m$},flatMapEither:function(){return vN},flatMapIO:function(){return vA},flatMapIOEither:function(){return vU},flatMapNullable:function(){return vD},flatMapOption:function(){return vF},flatMapTask:function(){return vL},flatMapTaskOption:function(){return vj},flatten:function(){return mJ},flattenW:function(){return mX},fold:function(){return mg},foldW:function(){return m_},fromEither:function(){return ms},fromEitherK:function(){return vH},fromIO:function(){return mf},fromIOEither:function(){return mp},fromIOEitherK:function(){return mL},fromIOK:function(){return vZ},fromNullable:function(){return mw},fromNullableK:function(){return mR},fromOption:function(){return vw},fromOptionK:function(){return vR},fromPredicate:function(){return vG},fromTask:function(){return ml},fromTaskK:function(){return vJ},fromTaskOption:function(){return md},fromTaskOptionK:function(){return mF},getAltTaskValidation:function(){return m3},getApplicativeTaskValidation:function(){return m7},getApplyMonoid:function(){return gS},getApplySemigroup:function(){return gI},getCompactable:function(){return m5},getFilterable:function(){return m4},getOrElse:function(){return mb},getOrElseW:function(){return mT},getSemigroup:function(){return gx},getTaskValidation:function(){return gw},left:function(){return mr},leftIO:function(){return mc},leftTask:function(){return mo},let:function(){return v9},liftNullable:function(){return vk},liftOption:function(){return vC},map:function(){return mY},mapBoth:function(){return mK},mapError:function(){return mz},mapLeft:function(){return mV},match:function(){return mh},matchE:function(){return mv},matchEW:function(){return my},matchW:function(){return mm},of:function(){return m1},orElse:function(){return mM},orElseFirst:function(){return gy},orElseFirstIOK:function(){return mC},orElseFirstTaskK:function(){return mP},orElseFirstW:function(){return g_},orElseW:function(){return mE},orLeft:function(){return mW},right:function(){return mi},rightIO:function(){return ma},rightTask:function(){return mu},sequenceArray:function(){return gl},sequenceSeqArray:function(){return gd},swap:function(){return mD},tap:function(){return v_},tapEither:function(){return vb},tapError:function(){return mk},tapIO:function(){return vT},tapTask:function(){return vI},taskEither:function(){return gb},taskEitherSeq:function(){return gT},taskify:function(){return v2},throwError:function(){return m8},toUnion:function(){return mx},traverseArray:function(){return gf},traverseArrayWithIndex:function(){return gc},traverseReadonlyArrayWithIndex:function(){return gu},traverseReadonlyArrayWithIndexSeq:function(){return ga},traverseReadonlyNonEmptyArrayWithIndex:function(){return gi},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return go},traverseSeqArray:function(){return gp},traverseSeqArrayWithIndex:function(){return gs},tryCatch:function(){return mI},tryCatchK:function(){return mS}});var tp={};n.r(tp),n.d(tp,{Alt:function(){return y3},ApT:function(){return be},ApplicativePar:function(){return yA},ApplicativeSeq:function(){return yU},ApplyPar:function(){return yP},ApplySeq:function(){return yL},Bifunctor:function(){return y7},Chain:function(){return yj},Do:function(){return _7},FromEither:function(){return yG},FromIO:function(){return yz},FromReader:function(){return yH},FromTask:function(){return yV},Functor:function(){return yO},Monad:function(){return yq},MonadIO:function(){return yB},MonadTask:function(){return yY},MonadThrow:function(){return yK},Pointed:function(){return yC},URI:function(){return yI},alt:function(){return y_},altW:function(){return yb},ap:function(){return yd},apFirst:function(){return yW},apFirstW:function(){return yD},apS:function(){return _6},apSW:function(){return bt},apSecond:function(){return yF},apSecondW:function(){return yN},apW:function(){return yh},as:function(){return yM},asUnit:function(){return yE},ask:function(){return y5},asks:function(){return y4},asksReaderTaskEither:function(){return g3},asksReaderTaskEitherW:function(){return g7},bimap:function(){return yl},bind:function(){return _4},bindTo:function(){return _3},bindW:function(){return _9},bracket:function(){return _8},bracketW:function(){return _2},chain:function(){return bp},chainEitherK:function(){return _k},chainEitherKW:function(){return _C},chainFirst:function(){return bh},chainFirstEitherK:function(){return _P},chainFirstEitherKW:function(){return _W},chainFirstIOK:function(){return _K},chainFirstReaderEitherK:function(){return _n},chainFirstReaderEitherKW:function(){return _e},chainFirstReaderIOK:function(){return _l},chainFirstReaderIOKW:function(){return _f},chainFirstReaderK:function(){return y6},chainFirstReaderKW:function(){return _t},chainFirstReaderTaskK:function(){return _a},chainFirstReaderTaskKW:function(){return _o},chainFirstTaskEitherK:function(){return _i},chainFirstTaskEitherKW:function(){return _r},chainFirstTaskK:function(){return _V},chainFirstW:function(){return bm},chainIOEitherK:function(){return _Q},chainIOEitherKW:function(){return _J},chainIOK:function(){return _Y},chainNullableK:function(){return g8},chainOptionK:function(){return _d},chainOptionKW:function(){return _h},chainReaderEitherK:function(){return _1},chainReaderEitherKW:function(){return _0},chainReaderIOK:function(){return _X},chainReaderIOKW:function(){return _$},chainReaderK:function(){return _H},chainReaderKW:function(){return _Z},chainReaderTaskK:function(){return _A},chainReaderTaskKW:function(){return _N},chainTaskEitherK:function(){return _F},chainTaskEitherKW:function(){return _D},chainTaskK:function(){return _z},chainW:function(){return bd},filterOrElse:function(){return _U},filterOrElseW:function(){return _j},flap:function(){return yk},flatMap:function(){return yv},flatMapEither:function(){return _T},flatMapIO:function(){return _x},flatMapIOEither:function(){return _M},flatMapNullable:function(){return __},flatMapOption:function(){return _b},flatMapReader:function(){return _R},flatMapReaderEither:function(){return _E},flatMapReaderIO:function(){return _O},flatMapReaderTask:function(){return _S},flatMapTask:function(){return _w},flatMapTaskEither:function(){return _I},flatten:function(){return yy},flattenW:function(){return yg},fold:function(){return gH},foldW:function(){return g$},fromEither:function(){return gU},fromEitherK:function(){return _q},fromIO:function(){return gq},fromIOEither:function(){return gY},fromIOEitherK:function(){return ye},fromIOK:function(){return _B},fromNullable:function(){return g0},fromNullableK:function(){return g1},fromOption:function(){return _s},fromOptionK:function(){return _p},fromPredicate:function(){return _L},fromReader:function(){return gj},fromReaderEither:function(){return gK},fromReaderEitherK:function(){return yr},fromReaderIOK:function(){return _c},fromReaderK:function(){return y9},fromReaderTaskK:function(){return _u},fromTask:function(){return gB},fromTaskEither:function(){return gR},fromTaskEitherK:function(){return yn},fromTaskK:function(){return _G},getAltReaderTaskValidation:function(){return yR},getApplicativeReaderTaskValidation:function(){return yw},getApplyMonoid:function(){return bT},getApplySemigroup:function(){return bb},getCompactable:function(){return yS},getFilterable:function(){return yx},getOrElse:function(){return gX},getOrElseW:function(){return gJ},getReaderTaskValidation:function(){return bS},getSemigroup:function(){return bI},left:function(){return gO},leftIO:function(){return gN},leftReader:function(){return gP},leftReaderIO:function(){return gL},leftReaderTask:function(){return gD},leftTask:function(){return gk},let:function(){return _5},liftNullable:function(){return _v},liftOption:function(){return _g},local:function(){return g2},map:function(){return yc},mapBoth:function(){return yf},mapError:function(){return ys},mapLeft:function(){return yp},match:function(){return gG},matchE:function(){return gV},matchEW:function(){return gZ},matchW:function(){return gz},of:function(){return ym},orElse:function(){return g5},orElseFirst:function(){return bv},orElseFirstW:function(){return bg},orElseW:function(){return g4},orLeft:function(){return g6},readerTaskEither:function(){return by},readerTaskEitherSeq:function(){return b_},right:function(){return gM},rightIO:function(){return gF},rightReader:function(){return gC},rightReaderIO:function(){return gA},rightReaderTask:function(){return gW},rightTask:function(){return gE},run:function(){return bx},sequenceArray:function(){return bc},sequenceSeqArray:function(){return bs},swap:function(){return yt},tap:function(){return yZ},tapEither:function(){return y$},tapError:function(){return g9},tapIO:function(){return yX},tapReader:function(){return yQ},tapReaderEither:function(){return y0},tapReaderIO:function(){return y2},tapReaderTask:function(){return y8},tapTask:function(){return yJ},tapTaskEither:function(){return y1},throwError:function(){return yT},toUnion:function(){return gQ},traverseArray:function(){return ba},traverseArrayWithIndex:function(){return bo},traverseReadonlyArrayWithIndex:function(){return br},traverseReadonlyArrayWithIndexSeq:function(){return bu},traverseReadonlyNonEmptyArrayWithIndex:function(){return bn},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return bi},traverseSeqArray:function(){return bl},traverseSeqArrayWithIndex:function(){return bf}});var td={};n.r(td),n.d(td,{Bifunctor:function(){return Te},Comonad:function(){return Tr},Foldable:function(){return Ti},Functor:function(){return b4},Semigroupoid:function(){return Tn},Traversable:function(){return Tu},URI:function(){return b5},bimap:function(){return bH},compose:function(){return bX},duplicate:function(){return b0},extend:function(){return bJ},extract:function(){return bQ},flap:function(){return b9},foldMap:function(){return b8},fst:function(){return bk},getApplicative:function(){return bF},getApply:function(){return bW},getChain:function(){return bN},getChainRec:function(){return bL},getMonad:function(){return bA},map:function(){return b6},mapFst:function(){return bZ},mapLeft:function(){return Tt},mapSnd:function(){return b$},readonlyTuple:function(){return To},reduce:function(){return b1},reduceRight:function(){return b2},sequence:function(){return b3},snd:function(){return bC},swap:function(){return bP},traverse:function(){return b7}});var th={};n.r(th),n.d(th,{Compactable:function(){return Ix},Filterable:function(){return Iw},FilterableWithIndex:function(){return IR},Foldable:function(){return ID},FoldableWithIndex:function(){return IF},Functor:function(){return I_},FunctorWithIndex:function(){return IT},Traversable:function(){return IN},TraversableWithIndex:function(){return IA},URI:function(){return Im},Witherable:function(){return Ij},collect:function(){return Tm},compact:function(){return Id},deleteAt:function(){return Tb},difference:function(){return T$},elem:function(){return TV},empty:function(){return Iq},every:function(){return TG},filter:function(){return Io},filterMap:function(){return Ia},filterMapWithIndex:function(){return TU},filterWithIndex:function(){return Tj},flap:function(){return Ib},foldMap:function(){return Is},foldMapWithIndex:function(){return TE},fromEntries:function(){return TY},fromFoldable:function(){return Tq},fromFoldableMap:function(){return TK},getDifferenceMagma:function(){return IW},getEq:function(){return Ig},getFoldable:function(){return II},getFoldableWithIndex:function(){return IS},getIntersectionSemigroup:function(){return IP},getMonoid:function(){return Iy},getShow:function(){return Iv},getTraversable:function(){return IO},getTraversableWithIndex:function(){return IM},getUnionMonoid:function(){return IC},getUnionSemigroup:function(){return Ik},getWitherable:function(){return IE},has:function(){return T_},hasOwnProperty:function(){return IY},insertAt:function(){return IB},intersection:function(){return TZ},isEmpty:function(){return Tp},isSubrecord:function(){return Tx},keys:function(){return Th},lookup:function(){return Tw},map:function(){return TO},mapWithIndex:function(){return TR},modifyAt:function(){return TI},partition:function(){return Ic},partitionMap:function(){return If},partitionMapWithIndex:function(){return TA},partitionWithIndex:function(){return TL},pop:function(){return TS},record:function(){return IK},reduce:function(){return Il},reduceRight:function(){return Ip},reduceRightWithIndex:function(){return Tk},reduceWithIndex:function(){return TM},separate:function(){return Ih},sequence:function(){return TD},singleton:function(){return TC},size:function(){return Ts},some:function(){return Tz},toArray:function(){return Tv},toEntries:function(){return TB},toUnfoldable:function(){return Tg},traverse:function(){return TW},traverseWithIndex:function(){return TP},union:function(){return TH},updateAt:function(){return TT},upsertAt:function(){return Ty},wilt:function(){return TN},wither:function(){return TF}});var tm={};n.r(tm),n.d(tm,{and:function(){return I$},compose:function(){return IJ},fromEitherK:function(){return Iz},fromOptionK:function(){return IG},id:function(){return IV},not:function(){return IH},or:function(){return IZ},zero:function(){return IX}});var tv={};n.r(tv),n.d(tv,{getFunctionRing:function(){return I8},getTupleRing:function(){return I1},negate:function(){return I0},tuple:function(){return IQ}});var tg={};n.r(tg);var ty={};n.r(ty),n.d(ty,{getFunctionSemiring:function(){return I2}});var t_={};n.r(t_),n.d(t_,{getStructShow:function(){return I9},getTupleShow:function(){return I4},showBoolean:function(){return I6},showNumber:function(){return Se},showString:function(){return St},struct:function(){return I3},tuple:function(){return I5}});var tb={};n.r(tb),n.d(tb,{ap:function(){return Si},chain:function(){return Su},evaluate:function(){return Sf},execute:function(){return Sl},flatMap:function(){return So},fromF:function(){return Sc},fromState:function(){return Sa},getStateM:function(){return Ss},map:function(){return Sr},of:function(){return Sn}});var tT={};n.r(tT),n.d(tT,{Alt:function(){return xA},Applicative:function(){return xh},Apply:function(){return xf},Bifunctor:function(){return xN},Chain:function(){return xm},FromEither:function(){return xO},FromIO:function(){return xM},FromReader:function(){return xk},FromState:function(){return xv},FromTask:function(){return xE},Functor:function(){return xi},Monad:function(){return xS},MonadIO:function(){return xx},MonadTask:function(){return xw},MonadThrow:function(){return xR},Pointed:function(){return xc},URI:function(){return xr},alt:function(){return xe},altW:function(){return xt},ap:function(){return SV},apFirst:function(){return xl},apFirstW:function(){return xs},apS:function(){return wf},apSW:function(){return wl},apSecond:function(){return xp},apSecondW:function(){return xd},apW:function(){return SH},as:function(){return xu},asUnit:function(){return xo},ask:function(){return xL},asks:function(){return xU},asksStateReaderTaskEither:function(){return SW},asksStateReaderTaskEitherW:function(){return SP},bimap:function(){return SG},bind:function(){return wa},bindTo:function(){return wu},bindW:function(){return wc},chain:function(){return wv},chainEitherK:function(){return xZ},chainEitherKW:function(){return x$},chainFirst:function(){return wy},chainFirstEitherK:function(){return xX},chainFirstEitherKW:function(){return xJ},chainFirstIOK:function(){return x3},chainFirstReaderK:function(){return xY},chainFirstReaderKW:function(){return xK},chainFirstTaskK:function(){return wn},chainFirstW:function(){return w_},chainIOEitherK:function(){return x6},chainIOEitherKW:function(){return x9},chainIOK:function(){return x7},chainOptionK:function(){return xV},chainOptionKW:function(){return xH},chainReaderK:function(){return xq},chainReaderKW:function(){return xB},chainReaderTaskEitherK:function(){return SL},chainReaderTaskEitherKW:function(){return SA},chainStateK:function(){return xI},chainTaskEitherK:function(){return x4},chainTaskEitherKW:function(){return x5},chainTaskK:function(){return we},chainW:function(){return wg},evalState:function(){return wI},evaluate:function(){return wr},execState:function(){return wS},execute:function(){return wi},filterOrElse:function(){return x0},filterOrElseW:function(){return x1},flap:function(){return xa},flatMap:function(){return SX},flatMapEither:function(){return S7},flatMapIO:function(){return S0},flatMapIOEither:function(){return S2},flatMapOption:function(){return S3},flatMapReader:function(){return S8},flatMapReaderTaskEither:function(){return S5},flatMapState:function(){return S4},flatMapTask:function(){return S1},flatMapTaskEither:function(){return SQ},flatten:function(){return S6},flattenW:function(){return S9},fromEither:function(){return SI},fromEitherK:function(){return x8},fromIO:function(){return Sx},fromIOEither:function(){return SM},fromIOEitherK:function(){return SD},fromIOK:function(){return x2},fromOption:function(){return xG},fromOptionK:function(){return xz},fromPredicate:function(){return xQ},fromReader:function(){return SS},fromReaderEither:function(){return SE},fromReaderK:function(){return xj},fromReaderTaskEither:function(){return Sk},fromReaderTaskEitherK:function(){return SN},fromState:function(){return SR},fromStateK:function(){return xT},fromTask:function(){return Sw},fromTaskEither:function(){return SO},fromTaskEitherK:function(){return SF},fromTaskK:function(){return wt},get:function(){return xg},gets:function(){return xb},left:function(){return Sp},leftIO:function(){return S_},leftReader:function(){return Sg},leftState:function(){return ST},leftTask:function(){return Sm},let:function(){return wo},local:function(){return SC},map:function(){return SK},mapLeft:function(){return Sz},modify:function(){return x_},of:function(){return SZ},put:function(){return xy},right:function(){return Sd},rightIO:function(){return Sy},rightReader:function(){return Sv},rightState:function(){return Sb},rightTask:function(){return Sh},run:function(){return wx},sequenceArray:function(){return wm},stateReaderTaskEither:function(){return wb},stateReaderTaskEitherSeq:function(){return wT},tap:function(){return xC},tapEither:function(){return xP},tapIO:function(){return xW},tapReader:function(){return xF},tapTask:function(){return xD},throwError:function(){return xn},traverseArray:function(){return wh},traverseArrayWithIndex:function(){return wd},traverseReadonlyArrayWithIndex:function(){return wp},traverseReadonlyNonEmptyArrayWithIndex:function(){return ws}});var tI={};n.r(tI),n.d(tI,{Comonad:function(){return wL},Functor:function(){return wN},URI:function(){return wF},duplicate:function(){return wW},experiment:function(){return wM},extend:function(){return wC},extract:function(){return wP},flap:function(){return wA},map:function(){return wD},peeks:function(){return wO},seek:function(){return ww},seeks:function(){return wR},store:function(){return wU}});var tS={};n.r(tS),n.d(tS,{fanOut:function(){return wq},fanout:function(){return wY},split:function(){return wj},splitStrong:function(){return wB}});var tx={};n.r(tx),n.d(tx,{evolve:function(){return wG},getAssignSemigroup:function(){return wK}});var tw={};n.r(tw),n.d(tw,{Alt:function(){return RX},Alternative:function(){return R0},ApT:function(){return Ol},ApplicativePar:function(){return RU},ApplicativeSeq:function(){return RB},ApplyPar:function(){return RN},ApplySeq:function(){return Rq},Chain:function(){return RY},Compactable:function(){return R7},Do:function(){return Ou},Filterable:function(){return R3},FromEither:function(){return RK},FromIO:function(){return RG},FromTask:function(){return Rz},Functor:function(){return RC},Monad:function(){return R1},MonadIO:function(){return R8},MonadTask:function(){return R2},Pointed:function(){return RF},URI:function(){return Rk},Zero:function(){return RJ},alt:function(){return Rd},altW:function(){return Rh},ap:function(){return Ro},apFirst:function(){return RA},apS:function(){return Of},apSecond:function(){return RL},as:function(){return RP},asUnit:function(){return RW},bind:function(){return Oc},bindTo:function(){return Oo},chain:function(){return OT},chainEitherK:function(){return Ot},chainFirst:function(){return OI},chainFirstEitherK:function(){return Oe},chainFirstIOK:function(){return R9},chainFirstTaskK:function(){return Oi},chainIOK:function(){return R4},chainNullableK:function(){return Rn},chainOptionK:function(){return Ri},chainTaskK:function(){return Or},compact:function(){return Rg},filter:function(){return R_},filterMap:function(){return Rb},flap:function(){return RD},flatMap:function(){return Rc},flatMapIO:function(){return Rl},flatMapTask:function(){return Rs},flatten:function(){return Rp},fold:function(){return w2},foldW:function(){return w3},fromEither:function(){return w$},fromEitherK:function(){return R6},fromIO:function(){return wX},fromIOK:function(){return R5},fromNullable:function(){return w9},fromNullableK:function(){return Re},fromOption:function(){return wZ},fromOptionK:function(){return Rr},fromPredicate:function(){return wH},fromTask:function(){return wJ},fromTaskEither:function(){return wQ},fromTaskK:function(){return On},getOrElse:function(){return w5},getOrElseW:function(){return w4},guard:function(){return RQ},let:function(){return Oa},map:function(){return Ru},match:function(){return w0},matchE:function(){return w8},matchEW:function(){return w7},matchW:function(){return w1},none:function(){return Rv},of:function(){return Ra},partition:function(){return RT},partitionMap:function(){return RI},separate:function(){return Ry},sequenceArray:function(){return Og},sequenceSeqArray:function(){return Ob},some:function(){return wV},tap:function(){return RV},tapEither:function(){return RH},tapIO:function(){return RZ},tapTask:function(){return R$},traverseArray:function(){return Ov},traverseArrayWithIndex:function(){return Om},traverseReadonlyArrayWithIndex:function(){return Op},traverseReadonlyArrayWithIndexSeq:function(){return Oh},traverseReadonlyNonEmptyArrayWithIndex:function(){return Os},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Od},traverseSeqArray:function(){return O_},traverseSeqArrayWithIndex:function(){return Oy},tryCatch:function(){return w6},tryCatchK:function(){return Rt},zero:function(){return Rm}});var tR={};n.r(tR),n.d(tR,{ApT:function(){return Mv},Bifunctor:function(){return Mi},Foldable:function(){return Mo},FromEither:function(){return Mc},FromThese:function(){return Mu},Functor:function(){return Me},Pointed:function(){return Mr},Traversable:function(){return Ma},URI:function(){return Mt},bimap:function(){return O1},both:function(){return OM},elem:function(){return Mp},exists:function(){return Md},flap:function(){return Mn},fold:function(){return OP},foldMap:function(){return O3},foldW:function(){return Ok},fromOption:function(){return Ml},fromOptionK:function(){return Ms},fromOptions:function(){return OV},fromPredicate:function(){return Mf},getApplicative:function(){return OL},getApply:function(){return OA},getChain:function(){return OU},getEq:function(){return OF},getLeft:function(){return Oq},getLeftOnly:function(){return OG},getMonad:function(){return Oj},getRight:function(){return OB},getRightOnly:function(){return Oz},getSemigroup:function(){return ON},getShow:function(){return OD},isBoth:function(){return Ow},isLeft:function(){return OS},isRight:function(){return Ox},left:function(){return OR},leftOrBoth:function(){return OY},map:function(){return O2},mapLeft:function(){return O8},match:function(){return OC},matchW:function(){return OE},of:function(){return O6},reduce:function(){return O7},reduceRight:function(){return O5},right:function(){return OO},rightOrBoth:function(){return OK},sequence:function(){return O9},swap:function(){return OW},these:function(){return M_},toTuple:function(){return Mm},toTuple2:function(){return Mh},traverse:function(){return O4},traverseReadonlyArrayWithIndex:function(){return My},traverseReadonlyNonEmptyArrayWithIndex:function(){return Mg}});var tO={};n.r(tO),n.d(tO,{ap:function(){return MR},bimap:function(){return MM},both:function(){return MI},chain:function(){return MO},getTheseM:function(){return MD},left:function(){return MT},leftF:function(){return Mx},map:function(){return Mw},mapLeft:function(){return ME},match:function(){return Mk},matchE:function(){return MC},right:function(){return Mb},rightF:function(){return MS},swap:function(){return MP},toTuple2:function(){return MW}});var tM={};n.r(tM),n.d(tM,{ApT:function(){return Eg},Bifunctor:function(){return Eu},FromEither:function(){return Eo},FromIO:function(){return Ep},FromTask:function(){return Eh},FromThese:function(){return El},Functor:function(){return En},Pointed:function(){return Ei},URI:function(){return M4},bifunctorTaskThese:function(){return ES},bimap:function(){return M7},both:function(){return MA},flap:function(){return Er},fold:function(){return M$},foldW:function(){return MJ},fromEither:function(){return MB},fromIO:function(){return MK},fromIOEither:function(){return MG},fromIOK:function(){return Ed},fromOption:function(){return Ea},fromOptionK:function(){return Ec},fromPredicate:function(){return Ef},fromTask:function(){return Mz},fromTaskK:function(){return Em},fromThese:function(){return MY},fromTheseK:function(){return Es},functorTaskThese:function(){return EI},getApplicative:function(){return M6},getApply:function(){return M9},getChain:function(){return Et},getMonad:function(){return Ee},getSemigroup:function(){return ER},left:function(){return MF},leftIO:function(){return Mq},leftTask:function(){return MU},map:function(){return M2},mapLeft:function(){return M3},match:function(){return MV},matchE:function(){return MZ},matchEW:function(){return MX},matchW:function(){return MH},of:function(){return M5},right:function(){return MN},rightIO:function(){return Mj},rightTask:function(){return ML},swap:function(){return MQ},taskThese:function(){return Ew},toTuple:function(){return Ex},toTuple2:function(){return Ev},traverseReadonlyArrayWithIndex:function(){return E_},traverseReadonlyArrayWithIndexSeq:function(){return ET},traverseReadonlyNonEmptyArrayWithIndex:function(){return Ey},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Eb}});var tE={};n.r(tE),n.d(tE,{Functor:function(){return EF},URI:function(){return ED},censor:function(){return Ek},flap:function(){return EN},getComonad:function(){return EC},listen:function(){return EM},listens:function(){return EE},map:function(){return EW},traced:function(){return EA},tracks:function(){return EO}});var tk={};n.r(tk),n.d(tk,{getTraversableComposition:function(){return Ej},sequence:function(){return EU},traverse:function(){return EL}});var tC={};n.r(tC);var tP={};n.r(tP),n.d(tP,{Applicative:function(){return km},Apply:function(){return kp},Chain:function(){return kv},Comonad:function(){return kT},Do:function(){return kI},Foldable:function(){return k_},Functor:function(){return kf},Monad:function(){return kg},Pointed:function(){return ks},Traversable:function(){return kb},URI:function(){return kc},ap:function(){return E3},apFirst:function(){return kd},apS:function(){return kR},apSecond:function(){return kh},bind:function(){return kw},bindTo:function(){return kS},chain:function(){return kE},chainFirst:function(){return ky},drawForest:function(){return EG},drawTree:function(){return Ez},duplicate:function(){return E9},elem:function(){return kO},exists:function(){return kM},extend:function(){return E4},extract:function(){return ki},flap:function(){return kl},flatMap:function(){return E5},flatten:function(){return E6},fold:function(){return EX},foldMap:function(){return kn},getEq:function(){return EY},getShow:function(){return EB},let:function(){return kx},make:function(){return Eq},map:function(){return kt},of:function(){return ka},reduce:function(){return ke},reduceRight:function(){return kr},sequence:function(){return ko},traverse:function(){return ku},tree:function(){return kk},unfoldForest:function(){return EH},unfoldForestM:function(){return E$},unfoldTree:function(){return EV},unfoldTreeM:function(){return EZ}});var tW={};n.r(tW),n.d(tW,{Bifunctor:function(){return Ct},Comonad:function(){return Cn},Foldable:function(){return Cr},Functor:function(){return k9},Semigroupoid:function(){return Ce},Traversable:function(){return Ci},URI:function(){return k4},bimap:function(){return kZ},compose:function(){return kJ},duplicate:function(){return k0},extend:function(){return kQ},extract:function(){return k1},flap:function(){return k6},foldMap:function(){return k8},fst:function(){return kC},getApplicative:function(){return kN},getApply:function(){return kD},getChain:function(){return kA},getChainRec:function(){return kU},getMonad:function(){return kL},map:function(){return Cu},mapFst:function(){return k$},mapLeft:function(){return Co},mapSnd:function(){return kX},reduce:function(){return k2},reduceRight:function(){return k7},sequence:function(){return k5},snd:function(){return kP},swap:function(){return kW},traverse:function(){return k3},tuple:function(){return Ca}});var tD={};n.r(tD);var tF={};n.r(tF),n.d(tF,{getValidationM:function(){return Cc}});var tN={};n.r(tN),n.d(tN,{Monoid:function(){return Cl},Semigroup:function(){return Cf}});var tA={};n.r(tA),n.d(tA,{Functor:function(){return Cx},URI:function(){return Cy},censor:function(){return Cm},evalWriter:function(){return CM},evaluate:function(){return CR},execWriter:function(){return CE},execute:function(){return CO},flap:function(){return Cw},getApplicative:function(){return CT},getApply:function(){return Cb},getChain:function(){return CI},getMonad:function(){return CS},getPointed:function(){return C_},listen:function(){return Cp},listens:function(){return Ch},map:function(){return Cg},pass:function(){return Cd},tell:function(){return Cs},writer:function(){return Ck}});var tL={};function tU(t){return function(e){return function(n){return n.reduce(function(e,n){return t.alt(e,function(){return n})},e)}}}n.r(tL),n.d(tL,{getWriterM:function(){return CC}});var tj=n(42925);function tq(t){return tU(t)(t.zero())}function tB(t){var e=(0,tj.getApplySemigroup)(t);return function(n){var r=e(n);return{concat:function(e,n){return t.alt(r.concat(e,n),function(){return t.alt(e,function(){return n})})},empty:t.zero()}}}var tY=n(46111),tK=n(1358),tG=function(t){return"boolean"==typeof t},tz=function(t,e){return function(n){return n?e():t()}},tV=tz,tH=tV,tZ=tH,t$={equals:function(t,e){return t===e}},tX={meet:function(t,e){return t&&e},join:function(t,e){return t||e},zero:!1,one:!0,implies:function(t,e){return!t||e},not:function(t){return!t}},tJ={concat:function(t,e){return t&&e}},tQ={concat:function(t,e){return t||e}},t0={concat:tJ.concat,empty:!0},t1={concat:tQ.concat,empty:!1},t8={equals:t$.equals,compare:function(t,e){return t<e?-1:t>e?1:0}},t2={show:function(t){return JSON.stringify(t)}},t7=n(42275),t3=function(t){return{meet:function(e,n){return t.join(e,n)},join:function(e,n){return t.meet(e,n)},zero:t.one,one:t.zero,implies:function(e,n){return t.join(t.not(e),n)},not:t.not}},t5={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},t4=t3,t9={meet:function(t,e){return t&&e},join:function(t,e){return t||e},zero:!1,one:!0,implies:function(t,e){return!t||e},not:function(t){return!t}},t6=t7.getBooleanAlgebra,et=n(5586),ee=function(t){return et.clamp(t)(t.bottom,t.top)},en=function(t){var e=et.reverse(t);return{equals:e.equals,compare:e.compare,top:t.bottom,bottom:t.top}},er={equals:et.ordNumber.equals,compare:et.ordNumber.compare,top:1/0,bottom:-1/0};function ei(t){return{meet:(0,et.min)(t),join:(0,et.max)(t)}}function eu(t){var e=ei(t);return function(t,n){return{join:e.join,meet:e.meet,zero:t,one:n}}}var eo=n(88543),ea=n(56661);function ec(t,e){return function(n,r){return e.compose(t.right(r),t.left(n))}}function ef(t,e){var n=ec(t,e);return function(r,i){return e.compose(t.promap(e.id(),function(t){return"Left"===t._tag?t.left:t.right},t7.identity),n(r,i))}}function el(t){return ec(t,t)}function es(t){return ef(t,t)}var ep=n(67560),ed=n(20492),eh=n(34219);function em(t,e){return function(n){return t.map(n,e.compact)}}function ev(t,e,n){var r=em(t,e),i=(0,ep.map)(t,n);return function(t){return eh.separated(r((0,t7.pipe)(t,i(ed.getLeft))),r((0,t7.pipe)(t,i(ed.getRight))))}}function eg(t,e){return{map:(0,ep.getFunctorComposition)(t,e).map,compact:em(t,e),separate:ev(t,e,e)}}var ey=function(t){return function(){return console.log(t)}},e_=function(t){return function(){return console.warn(t)}},eb=function(t){return function(){return console.error(t)}},eT=function(t){return function(){return console.info(t)}},eI=n(90817),eS=n(76627),ex={equals:function(t,e){return t.valueOf()===e.valueOf()}},ew={equals:function(t,e){return t.getDate()===e.getDate()}},eR={equals:function(t,e){return t.getMonth()===e.getMonth()}},eO={equals:function(t,e){return t.getFullYear()===e.getFullYear()}},eM=(0,t7.pipe)(eS.Ord,et.contramap(function(t){return t.valueOf()})),eE=function(){return new Date},ek=function(){return new Date().getTime()},eC=n(81878);function eP(t){return(0,t7.flow)(eC.right,t.of)}function eW(t){return(0,t7.flow)(eC.left,t.of)}function eD(t){return function(e){return t.map(e,eC.right)}}function eF(t){return function(e){return t.map(e,eC.left)}}function eN(t){return function(e){return(0,t7.flow)(eC.fromNullable(e),t.of)}}function eA(t){var e=eN(t);return function(t){var n=e(t);return function(t){return(0,t7.flow)(t,n)}}}function eL(t){var e=eq(t),n=eA(t);return function(t){var r=n(t);return function(t){return e(r(t))}}}function eU(t){return(0,ep.map)(t,eC.Functor)}function ej(t){return(0,tj.ap)(t,eC.Apply)}function eq(t){var e=eB(t);return function(t){return function(n){return e(n,t)}}}function eB(t){return function(e,n){return t.chain(e,function(e){return eC.isLeft(e)?t.of(e):n(e.right)})}}function eY(t){return function(e){return function(n){return t.chain(n,function(n){return eC.isLeft(n)?e():t.of(n)})}}}function eK(t){var e=eG(t);return function(t,n){return function(r){return e(r,t,n)}}}function eG(t){return function(e,n,r){return t.map(e,eC.bimap(n,r))}}function ez(t){var e=eV(t);return function(t){return function(n){return e(n,t)}}}function eV(t){return function(e,n){return t.map(e,eC.mapLeft(n))}}function eH(t,e){return function(n){return function(r){return t.chain(r,eC.match(function(r){return t.map(n(),eC.mapLeft(function(t){return e.concat(r,t)}))},eP(t)))}}}function eZ(t){return function(e,n){return function(r){return t.map(r,eC.match(e,n))}}}function e$(t){return function(e,n){return function(r){return t.chain(r,eC.match(e,n))}}}function eX(t){return function(e){return function(n){return t.chain(n,eC.match(e,t.of))}}}function eJ(t){return function(e){return function(n){return t.chain(n,function(n){return eC.isLeft(n)?e(n.left):t.of(n)})}}}function eQ(t){var e=e0(t);return function(t){return function(n){return e(n,t)}}}function e0(t){var e=eJ(t);return function(n,r){return(0,t7.pipe)(n,e(function(e){return t.map(r(e),function(t){return eC.isLeft(t)?t:eC.left(e)})}))}}function e1(t){return function(e){return function(n){return t.chain(n,eC.match(function(n){return t.map(e(n),eC.left)},function(e){return t.of(eC.right(e))}))}}}function e8(t){return function(e){return t.map(e,eC.swap)}}function e2(t){return function(e){return t.map(e,eC.toUnion)}}function e7(t){var e=ej(t),n=eU(t),r=eq(t),i=eY(t),u=eK(t),o=ez(t),a=e$(t),c=eX(t),f=eJ(t);return{map:function(t,e){return(0,t7.pipe)(t,n(e))},ap:function(t,n){return(0,t7.pipe)(t,e(n))},of:eP(t),chain:function(t,e){return(0,t7.pipe)(t,r(e))},alt:function(t,e){return(0,t7.pipe)(t,i(e))},bimap:function(t,e,n){return(0,t7.pipe)(t,u(e,n))},mapLeft:function(t,e){return(0,t7.pipe)(t,o(e))},fold:function(t,e,n){return(0,t7.pipe)(t,a(e,n))},getOrElse:function(t,e){return(0,t7.pipe)(t,c(e))},orElse:function(t,e){return(0,t7.pipe)(t,f(e))},swap:e8(t),rightM:eD(t),leftM:eF(t),left:eW(t)}}var e3=n(47797),e5=n(65191);function e4(t,e){var n=e.zero,r=function(i,u){return t.equals(u,n)?i:r(u,e.mod(i,u))};return r}function e9(t,e){var n=e.zero,r=e4(t,e);return function(i,u){return t.equals(i,n)||t.equals(u,n)?n:e.div(e.mul(i,u),r(i,u))}}var e6={add:function(t,e){return t+e},zero:0,mul:function(t,e){return t*e},one:1,sub:function(t,e){return t-e},degree:function(t){return 1},div:function(t,e){return t/e},mod:function(t,e){return t%e}},nt=n(88491);function ne(t,e){return function(n){return function(r){return t.map(r,function(t){return e.filter(t,n)})}}}function nn(t,e){return function(n){return function(r){return t.map(r,function(t){return e.filterMap(t,n)})}}}function nr(t,e){var n=ne(t,e);return function(t){var e=n((0,nt.not)(t)),r=n(t);return function(t){return(0,eh.separated)(e(t),r(t))}}}function ni(t,e){var n=nn(t,e);return function(t){return function(e){return(0,eh.separated)((0,t7.pipe)(e,n(function(e){return(0,ed.getLeft)(t(e))})),(0,t7.pipe)(e,n(function(e){return(0,ed.getRight)(t(e))})))}}}function nu(t,e){var n=(0,ep.getFunctorComposition)(t,e).map,r=em(t,e),i=ev(t,e,e),u=ne(t,e),o=nn(t,e),a=nr(t,e),c=ni(t,e);return{map:n,compact:r,separate:i,filter:function(t,e){return(0,t7.pipe)(t,u(e))},filterMap:function(t,e){return(0,t7.pipe)(t,o(e))},partition:function(t,e){return(0,t7.pipe)(t,a(e))},partitionMap:function(t,e){return(0,t7.pipe)(t,c(e))}}}function no(t,e){return function(n,r){return function(i){return t.reduce(i,n,function(t,n){return e.reduce(n,t,r)})}}}function na(t,e){return function(n){var r=t.foldMap(n),i=e.foldMap(n);return function(t){return function(e){return r(e,function(e){return i(e,t)})}}}}function nc(t,e){return function(n,r){return function(i){return t.reduceRight(i,n,function(t,n){return e.reduceRight(t,n,r)})}}}function nf(t,e){return function(n,r){return function(i){return e.reduce(i,t.of(n),function(e,n){return t.chain(e,function(t){return r(t,n)})})}}}function nl(t,e){return function(n,r){var i=function(e,r){var i=e.init,u=e.acc;return i?{init:!1,acc:r}:{init:!1,acc:t.concat(t.concat(u,n),r)}};return e.reduce(r,{init:!0,acc:t.empty},i).acc}}function ns(t){return function(e){return t.reduce(e,[],function(t,e){return t.push(e),t})}}function np(t,e){var n=t.of(void 0);return function(r,i){return e.reduce(r,n,function(e,n){var r,u;return u=i(n),t.ap(t.map(e,t7.constant),u)})}}function nd(t,e){return function(n,r,i){return e.reduce(n,t.of(r),function(e,n){return t.chain(e,function(t){return i(t,n)})})}}var nh=ns;function nm(t,e){var n=no(t,e),r=na(t,e),i=nc(t,e);return{reduce:function(t,e,r){return(0,t7.pipe)(t,n(e,r))},foldMap:function(t){var e=r(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},reduceRight:function(t,e,n){return(0,t7.pipe)(t,i(e,n))}}}function nv(t,e){return function(n,r){return function(i){return t.reduceWithIndex(i,n,function(t,n,i){return e.reduceWithIndex(i,n,function(e,n,i){return r([t,e],n,i)})})}}}function ng(t,e){return function(n){var r=t.foldMapWithIndex(n),i=e.foldMapWithIndex(n);return function(t){return function(e){return r(e,function(e,n){return i(n,function(n,r){return t([e,n],r)})})}}}}function ny(t,e){return function(n,r){return function(i){return t.reduceRightWithIndex(i,n,function(t,n,i){return e.reduceRightWithIndex(n,i,function(e,n,i){return r([t,e],n,i)})})}}}function n_(t,e){var n=nm(t,e),r=nv(t,e),i=ng(t,e),u=ny(t,e);return{reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:function(t,e,n){return(0,t7.pipe)(t,r(e,n))},foldMapWithIndex:function(t){var e=i(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},reduceRightWithIndex:function(t,e,n){return(0,t7.pipe)(t,u(e,n))}}}var nb=n(25162);function nT(t){return function(e){return(0,t7.flow)(e,t.fromIO)}}function nI(t,e){return function(n){var r=(0,t7.flow)(n,t.fromIO);return function(t){return e.chain(t,r)}}}function nS(t,e){var n=nx(t,e);return function(t){return function(e){return n(e,t)}}}function nx(t,e){var n=(0,eo.tap)(e);return function(e,r){return n(e,(0,t7.flow)(r,t.fromIO))}}var nw=n(97963),nR=function(){return t7.identity},nO=t7.identity,nM=function(t){return function(e){return function(n){return e(t(n))}}},nE=function(t){return function(e){return t(e)(e)}},nk=nE,nC=function(t,e){return(0,t7.pipe)(t,nF(e))},nP=function(t,e){return(0,t7.pipe)(t,nA(e))},nW=function(t,e){return(0,t7.pipe)(t,nB(e))},nD=function(t,e,n){return(0,t7.pipe)(t,nY(e,n))},nF=function(t){return function(e){return function(n){return t(e(n))}}},nN=function(t){return function(e){return function(n){return e(n)(t(n))}}},nA=nN,nL=t7.constant,nU=(0,t7.dual)(2,function(t,e){return function(n){return e(t(n))(n)}}),nj=nU(t7.identity),nq=nj,nB=function(t){return function(e){return(0,t7.flow)(t,e)}},nY=function(t,e){return function(n){return function(r){return e(n(t(r)))}}},nK=function(){return t7.identity},nG=function(t){return function(e){var n=e[0],r=e[1];return[t(n),r]}},nz=function(t){return function(e){var n;return[e[0],t(e[1])]}},nV=function(t){return eC.fold(function(e){return nw.t$(t(e))},eC.right)},nH=function(t){return eC.fold(eC.left,function(e){return nw.F2(t(e))})},nZ="Reader",n$={URI:nZ,map:nC},nX=(0,ep.flap)(n$),nJ={URI:nZ,of:nL},nQ={URI:nZ,map:nC,ap:nP},n0=(0,tj.apFirst)(nQ),n1=n0,n8=(0,tj.apSecond)(nQ),n2=n8,n7={URI:nZ,map:nC,ap:nP,of:nL},n3={URI:nZ,map:nC,ap:nP,chain:nU},n5={URI:nZ,map:nC,of:nL,ap:nP,chain:nU},n4=(0,t7.dual)(2,eo.tap(n3)),n9={URI:nZ,map:nC,promap:nD},n6={URI:nZ,compose:nW,id:nK},rt={URI:nZ,map:nC,promap:nD,first:nG,second:nz},re={URI:nZ,map:nC,promap:nD,left:nV,right:nH},rn=(0,ep.bindTo)(n$),rr=(0,ep.let)(n$),ri=eo.bind(n3),ru=ri,ro=nL(nw.F4),ra=(0,tj.apS)(nQ),rc=ra,rf=nL(nw.Xl),rl=function(t){return function(e){return function(n){for(var r=[t(0,nw.YM(e))(n)],i=1;i<e.length;i++)r.push(t(i,e[i])(n));return r}}},rs=function(t){var e=rl(t);return function(t){return nw.Od(t)?e(t):rf}},rp=rs,rd=function(t){return rs(function(e,n){return t(n)})},rh=rd(t7.identity),rm=nU,rv=nU,rg=n4,ry=n4,r_={URI:nZ,map:nC,of:nL,ap:nP,chain:nU,promap:nD,compose:nW,id:nK,first:nG,second:nz,left:nV,right:nH},rb=(0,tj.getApplySemigroup)(nQ),rT=(0,tY.getApplicativeMonoid)(n7);function rI(t){return function(){return t.fromReader(nR())}}function rS(t){return t.fromReader}function rx(t){return function(e){return(0,t7.flow)(e,t.fromReader)}}function rw(t,e){var n=rx(t);return function(t){return function(r){return e.chain(r,n(t))}}}function rR(t,e){var n=rO(t,e);return function(t){return function(e){return n(e,t)}}}function rO(t,e){var n=(0,eo.tap)(e);return function(e,r){return n(e,(0,t7.flow)(r,t.fromReader))}}var rM=function(){return function(t){return[t,t]}},rE=function(t){return function(){return[void 0,t]}},rk=function(t){return function(e){return[void 0,t(e)]}},rC=function(t){return function(e){return[t(e),e]}},rP=function(t,e){return(0,t7.pipe)(t,rD(e))},rW=function(t,e){return(0,t7.pipe)(t,rF(e))},rD=function(t){return function(e){return function(n){var r=e(n),i=r[0],u=r[1];return[t(i),u]}}},rF=function(t){return function(e){return function(n){var r=e(n),i=r[0],u=t(r[1]),o=u[0],a=u[1];return[i(o),a]}}},rN=function(t){return function(e){return[t,e]}},rA=(0,t7.dual)(2,function(t,e){return function(n){var r=t(n),i=r[0],u=r[1];return e(i)(u)}}),rL=rA(t7.identity),rU="State",rj={URI:rU,map:rP},rq=(0,ep.flap)(rj),rB={URI:rU,of:rN},rY={URI:rU,map:rP,ap:rW},rK=(0,tj.apFirst)(rY),rG=(0,tj.apSecond)(rY),rz={URI:rU,map:rP,ap:rW,of:rN},rV={URI:rU,map:rP,ap:rW,chain:rA},rH={URI:rU,map:rP,ap:rW,of:rN,chain:rA},rZ=(0,t7.dual)(2,eo.tap(rV)),r$={URI:rU,fromState:t7.identity},rX=function(t){return function(e){return e(t)[0]}},rJ=function(t){return function(e){return e(t)[1]}},rQ=(0,ep.bindTo)(rj),r0=(0,ep.let)(rj),r1=eo.bind(rV),r8=(0,tj.apS)(rY),r2=function(t){return function(e){return function(n){for(var r=t(0,nw.YM(e))(n),i=r[0],u=r[1],o=[i],a=u,c=1;c<e.length;c++){var f=t(c,e[c])(a),l=f[0],s=f[1];o.push(l),a=s}return[o,a]}}},r7=function(t){var e=r2(t);return function(t){return nw.Od(t)?e(t):rN(nw.Xl)}},r3=r7,r5=function(t){return r7(function(e,n){return t(n)})},r4=r5(t7.identity),r9=rA,r6=rZ,it=function(t,e){return t(e)[0]},ie=function(t,e){return t(e)[1]},ir=rH;function ii(t){return function(){return t.fromState(rM())}}function iu(t){return function(e){return t.fromState(rE(e))}}function io(t){return(0,t7.flow)(rk,t.fromState)}function ia(t){return(0,t7.flow)(rC,t.fromState)}function ic(t){return function(e){return(0,t7.flow)(e,t.fromState)}}function il(t,e){var n=ic(t);return function(t){return function(r){return e.chain(r,n(t))}}}function is(t){return function(e){return(0,t7.flow)(e,t.fromTask)}}function ip(t,e){return function(n){var r=(0,t7.flow)(n,t.fromTask);return function(t){return e.chain(t,r)}}}function id(t,e){var n=ih(t,e);return function(t){return function(e){return n(e,t)}}}function ih(t,e){var n=(0,eo.tap)(e);return function(e,r){return n(e,(0,t7.flow)(r,t.fromTask))}}function im(t){return function(e){return(0,t7.flow)(e,t.fromThese)}}function iv(t,e){return function(n){return function(r){return t.mapWithIndex(r,function(t,r){return e.mapWithIndex(r,function(e,r){return n([t,e],r)})})}}}function ig(t,e){var n=(0,ep.getFunctorComposition)(t,e).map,r=iv(t,e);return{map:n,mapWithIndex:function(t,e){return(0,t7.pipe)(t,r(e))}}}var iy=function(t,e){return(0,t7.pipe)(t,iO(e))},i_=function(t,e){return(0,t7.pipe)(t,iM(e))},ib=function(t,e,n){return(0,t7.pipe)(t,iF(e,n))},iT=function(t){return function(e,n){return(0,t7.pipe)(e,iN(t)(n))}},iI=function(t,e,n){return(0,t7.pipe)(t,iA(e,n))},iS=function(t,e){return(0,t7.pipe)(t,iq(e))},ix=function(t,e){return(0,t7.pipe)(t,iC(e))},iw=function(t){var e=iL(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},iR=ea.tailRec,iO=function(t){return function(e){return t(e)}},iM=function(t){return function(e){return e(t)}},iE=t7.identity,ik=(0,t7.dual)(2,function(t,e){return e(t)}),iC=function(t){return function(e){return t(e)}},iP=t7.identity,iW=iC(t7.identity),iD=ik(t7.identity),iF=function(t,e){return function(n){return e(t,n)}},iN=function(){return function(t){return function(e){return t(e)}}},iA=function(t,e){return function(n){return e(n,t)}},iL=function(t){return function(e){return function(n){return t.map(e(n),t7.identity)}}},iU=function(t){return function(e){return t.map(e,t7.identity)}},ij=function(){return t7.identity},iq=ij,iB="Identity",iY=t7.identity,iK=t7.identity,iG={URI:iB,map:iy},iz=(0,ep.flap)(iG),iV={URI:iB,of:iE},iH={URI:iB,map:iy,ap:i_},iZ=(0,tj.apFirst)(iH),i$=(0,tj.apSecond)(iH),iX={URI:iB,map:iy,ap:i_,of:iE},iJ={URI:iB,map:iy,ap:i_,chain:ik},iQ={URI:iB,map:iy,ap:i_,of:iE,chain:ik},i0=(0,eo.chainFirst)(iJ),i1={URI:iB,reduce:ib,foldMap:iT,reduceRight:iI},i8={URI:iB,map:iy,reduce:ib,foldMap:iT,reduceRight:iI,traverse:iw,sequence:iU},i2={URI:iB,map:iy,alt:iS},i7={URI:iB,map:iy,extend:ix,extract:iP},i3={URI:iB,map:iy,ap:i_,chain:ik,chainRec:iR},i5=iE(nw.F4),i4=(0,ep.bindTo)(iG),i9=(0,ep.let)(iG),i6=(0,eo.bind)(iJ),ut=(0,tj.apS)(iH),ue=ik,un={URI:iB,map:iy,ap:i_,of:iE,chain:ik,reduce:ib,foldMap:iT,reduceRight:iI,traverse:iw,sequence:iU,alt:iS,extract:iP,extend:ix,chainRec:iR},ur=function(t,e){return function(){return e(t())}},ui=function(t,e){return function(){return t()(e())}},uu=function(t,e){return function(){for(var n=e(t)();"Left"===n._tag;)n=e(n.left)();return n.right}},uo=function(t){return function(e){return ur(e,t)}},ua=function(t){return function(e){return ui(e,t)}},uc=t7.constant,uf=(0,t7.dual)(2,function(t,e){return function(){return e(t())()}}),ul=uf(t7.identity),us="IO",up={URI:us,map:ur},ud=(0,t7.dual)(2,(0,ep.as)(up)),uh=(0,ep.asUnit)(up),um=(0,ep.flap)(up),uv={URI:us,of:uc},ug={URI:us,map:ur,ap:ui},uy=(0,tj.apFirst)(ug),u_=(0,tj.apSecond)(ug),ub={URI:us,map:ur,ap:ui,of:uc},uT={URI:us,map:ur,ap:ui,chain:uf},uI={URI:us,map:ur,ap:ui,of:uc,chain:uf},uS=(0,t7.dual)(2,eo.tap(uT)),ux=t7.identity,uw={URI:us,map:ur,ap:ui,of:uc,chain:uf,fromIO:ux},uR={URI:us,map:ur,ap:ui,chain:uf,chainRec:uu},uO={URI:us,fromIO:t7.identity},uM=uc(nw.F4),uE=(0,ep.bindTo)(up),uk=(0,ep.let)(up),uC=eo.bind(uT),uP=(0,tj.apS)(ug),uW=uc(nw.Xl),uD=function(t){return function(e){return function(){for(var n=[t(0,nw.YM(e))()],r=1;r<e.length;r++)n.push(t(r,e[r])());return n}}},uF=function(t){var e=uD(t);return function(t){return nw.Od(t)?e(t):uW}},uN=uF,uA=function(t){return uF(function(e,n){return t(n)})},uL=uA(t7.identity),uU=uf,uj=uS,uq={URI:us,map:ur,of:uc,ap:ui,chain:uf,fromIO:ux,chainRec:uu},uB=(0,tj.getApplySemigroup)(ug),uY=(0,tY.getApplicativeMonoid)(ub),uK=eW(uv),uG=eP(uv),uz=eD(up),uV=eF(up),uH=uc,uZ=uz,u$=eZ(up),uX=u$,uJ=e$(uI),uQ=uJ,u0=uJ,u1=u0,u8=eX(uI),u2=u8,u7=function(t,e){return function(){return eC.tryCatch(t,e)}},u3=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return u7(function(){return t.apply(void 0,n)},e)}},u5=e2(up),u4=eJ(uI),u9=u4,u6=(0,t7.dual)(2,e0(uI)),ot=function(t){return u6(oZ(t))},oe=e1(uI),on=e8(up),or=function(t,e){return(0,t7.pipe)(t,oa(e))},oi=function(t,e){return(0,t7.pipe)(t,op(e))},ou=function(t,e){return om(t,function(t){return(0,t7.pipe)(e,oa(t))})},oo=function(t,e){return(0,t7.pipe)(t,oy(e))},oa=eU(up),oc=(0,t7.dual)(3,eG(up)),of=oc,ol=(0,t7.dual)(2,eV(up)),os=ol,op=ej(ug),od=op,oh=uG,om=(0,t7.dual)(2,eB(uI)),ov=om(t7.identity),og=ov,oy=eY(uI),o_=oy,ob=uK,oT="IOEither";function oI(t){var e=(0,tj.ap)(ug,eC.getApplicativeValidation(t));return{URI:oT,_E:void 0,map:or,ap:function(t,n){return(0,t7.pipe)(t,e(n))},of:oh}}function oS(t){var e=eH(uI,t);return{URI:oT,_E:void 0,map:or,alt:function(t,n){return(0,t7.pipe)(t,e(n))}}}var ox=function(t){var e=eC.getCompactable(t);return{URI:oT,_E:void 0,compact:em(up,e),separate:ev(up,e,eC.Functor)}};function ow(t){var e=eC.getFilterable(t),n=ox(t),r=ne(up,e),i=nn(up,e),u=nr(up,e),o=ni(up,e);return{URI:oT,_E:void 0,map:or,compact:n.compact,separate:n.separate,filter:function(t,e){return(0,t7.pipe)(t,r(e))},filterMap:function(t,e){return(0,t7.pipe)(t,i(e))},partition:function(t,e){return(0,t7.pipe)(t,u(e))},partitionMap:function(t,e){return(0,t7.pipe)(t,o(e))}}}var oR={URI:oT,map:or},oO=(0,t7.dual)(2,(0,ep.as)(oR)),oM=(0,ep.asUnit)(oR),oE=(0,ep.flap)(oR),ok={URI:oT,of:oh},oC={URI:oT,bimap:oc,mapLeft:ol},oP={URI:oT,map:or,ap:oi},oW=(0,tj.apFirst)(oP),oD=oW,oF=(0,tj.apSecond)(oP),oN=oF,oA={URI:oT,map:or,ap:oi,of:oh},oL={URI:oT,map:or,ap:ou,of:oh},oU={URI:oT,map:or,ap:oi,chain:om},oj={URI:oT,map:or,ap:oi,of:oh,chain:om},oq={URI:oT,fromEither:uH},oB={URI:oT,fromIO:uZ},oY=(0,t7.dual)(2,eo.tap(oU)),oK=(0,t7.dual)(2,(0,nb.tapEither)(oq,oU)),oG=(0,t7.dual)(2,nx(oB,oU)),oz={URI:oT,map:or,alt:oo},oV={URI:oT,map:or,ap:oi,of:oh,chain:om,fromIO:uZ},oH={URI:oT,map:or,ap:oi,of:oh,chain:om,throwError:ob},oZ=nT(oB),o$=oG,oX=(0,nb.fromOption)(oq),oJ=(0,nb.fromOptionK)(oq),oQ=(0,nb.chainOptionK)(oq,oU),o0=oQ,o1={fromEither:oq.fromEither},o8=nw.uL(o1),o2=nw.WE(o1),o7={flatMap:om},o3=nw.ny(o1,o7),o5=nw.hU(o1,o7),o4=nw.iu(o1,o7),o9=nw.we({fromIO:uZ},o7),o6=o9,at=o4,ae=o4,an=oK,ar=oK,ai=(0,nb.fromPredicate)(oq),au=(0,nb.filterOrElse)(oq,oU),ao=au,aa=(0,nb.fromEitherK)(oq),ac=function(t,e,n){return af(t,e,n)},af=function(t,e,n){return om(t,function(t){return uf(e(t),function(e){return om(n(t,e),function(){return uc(e)})})})},al=oh(nw.F4),as=(0,ep.bindTo)(oR),ap=(0,ep.let)(oR),ad=eo.bind(oU),ah=ad,am=(0,tj.apS)(oP),av=am,ag=oh(nw.Xl),ay=function(t){return(0,t7.flow)(uD(t),uo(eC.traverseReadonlyNonEmptyArrayWithIndex(t7.SK)))},a_=function(t){var e=ay(t);return function(t){return nw.Od(t)?e(t):ag}},ab=function(t){return function(e){return function(){var n=t(0,nw.YM(e))();if(nw.nM(n))return n;for(var r=[n.right],i=1;i<e.length;i++){var u=t(i,e[i])();if(nw.nM(u))return u;r.push(u.right)}return nw.F2(r)}}},aT=function(t){var e=ab(t);return function(t){return nw.Od(t)?e(t):ag}},aI=a_,aS=function(t){return a_(function(e,n){return t(n)})},ax=aS(t7.identity),aw=aT,aR=function(t){return aT(function(e,n){return t(n)})},aO=aR(t7.identity),aM=oA,aE=om,ak=om,aC=oY,aP=oY,aW=u6,aD=u6,aF={URI:oT,bimap:oc,mapLeft:ol,map:or,of:oh,ap:oi,chain:om,alt:oo,fromIO:uZ,throwError:ob},aN=(0,tj.getApplySemigroup)(oP),aA=(0,tY.getApplicativeMonoid)(oA),aL=function(t){return(0,tj.getApplySemigroup)(ug)(eC.getSemigroup(t))};function aU(t){var e=oI(t),n=oS(t);return{URI:oT,_E:void 0,map:or,ap:e.ap,of:oh,chain:om,bimap:oc,mapLeft:ol,alt:n.alt,fromIO:uZ,throwError:ob}}function aj(t){return(0,t7.flow)(ed.some,t.of)}function aq(t){return(0,t7.constant)(t.of(ed.none))}function aB(t){return function(e){return t.map(e,ed.some)}}function aY(t){return(0,t7.flow)(ed.fromNullable,t.of)}function aK(t){var e=aY(t);return function(t){return(0,t7.flow)(t,e)}}function aG(t){var e=a1(t),n=aK(t);return function(t){return e(n(t))}}function az(t){return function(e){return(0,t7.flow)(e,t.of)}}function aV(t){var e=a1(t),n=az(t);return function(t){return e(n(t))}}function aH(t){return function(e){return function(n){return t.of(ed.fromPredicate(e)(n))}}}function aZ(t){return(0,t7.flow)(ed.fromEither,t.of)}function a$(t){return function(e,n){return function(r){return t.map(r,ed.match(e,n))}}}function aX(t){return function(e,n){return function(r){return t.chain(r,ed.match(e,n))}}}function aJ(t){return function(e){return function(n){return t.chain(n,ed.match(e,t.of))}}}function aQ(t){return(0,ep.map)(t,ed.Functor)}function a0(t){return(0,tj.ap)(t,ed.Apply)}function a1(t){var e=a8(t);return function(t){return function(n){return e(n,t)}}}function a8(t){var e=aq(t);return function(n,r){return t.chain(n,ed.match(function(){return e()},r))}}function a2(t){var e=aj(t);return function(n){return function(r){return t.chain(r,ed.match(n,e))}}}function a7(t){var e=a0(t),n=aQ(t),r=a1(t),i=a2(t),u=aX(t),o=aJ(t),a=aq(t);return{map:function(t,e){return(0,t7.pipe)(t,n(e))},ap:function(t,n){return(0,t7.pipe)(t,e(n))},of:aj(t),chain:function(t,e){return(0,t7.pipe)(t,r(e))},alt:function(t,e){return(0,t7.pipe)(t,i(e))},fold:function(t,e,n){return(0,t7.pipe)(t,u(e,n))},getOrElse:function(t,e){return(0,t7.pipe)(t,o(e))},fromM:aB(t),none:function(){return a()}}}var a3=n(28957),a5=aj(uv),a4=aH(uv),a9=uc,a6=aZ(uv),ct=aB(up),ce=uo(ed.fromEither),cn=a$(up),cr=cn,ci=aX(uT),cu=ci,co=ci,ca=aJ(uI),cc=ca,cf=uo(ed.toUndefined),cl=uo(ed.toNullable),cs=aY(uv),cp=aK(uv),cd=aG(uI),ch=az(uv),cm=aQ(up),cv=a0(ug),cg=a5,cy=(0,t7.dual)(2,a8(uI)),c_=cy(t7.identity),cb=a2(uI),cT=cb,cI=aq(uv),cS=cI(),cx=em(up,ed.Compactable),cw=ev(up,ed.Compactable,ed.Functor),cR=ne(up,ed.Filterable),cO=nn(up,ed.Filterable),cM=nr(up,ed.Filterable),cE=ni(up,ed.Filterable),ck=function(t,e){return(0,t7.pipe)(t,cm(e))},cC=function(t,e){return(0,t7.pipe)(t,cv(e))},cP=function(t,e){return(0,t7.pipe)(t,cb(e))},cW=function(t,e){return(0,t7.pipe)(t,cR(e))},cD=function(t,e){return(0,t7.pipe)(t,cO(e))},cF=function(t,e){return(0,t7.pipe)(t,cM(e))},cN=function(t,e){return(0,t7.pipe)(t,cE(e))},cA="IOOption",cL={URI:cA,map:ck},cU=(0,t7.dual)(2,(0,ep.as)(cL)),cj=(0,ep.asUnit)(cL),cq=(0,ep.flap)(cL),cB={URI:cA,of:cg},cY={URI:cA,map:ck,ap:cC},cK=(0,tj.apFirst)(cY),cG=(0,tj.apSecond)(cY),cz={URI:cA,map:ck,ap:cC,of:cg},cV={URI:cA,map:ck,ap:cC,chain:cy},cH={URI:cA,fromEither:a6},cZ={URI:cA,fromIO:ct},c$=(0,t7.dual)(2,eo.tap(cV)),cX=(0,t7.dual)(2,(0,nb.tapEither)(cH,cV)),cJ=(0,t7.dual)(2,nx(cZ,cV)),cQ={URI:cA,map:ck,alt:cP},c0={URI:cA,zero:cI},c1=(0,a3.guard)(c0,cB),c8={URI:cA,map:ck,ap:cC,of:cg,alt:cP,zero:cI},c2={URI:cA,map:ck,ap:cC,of:cg,chain:cy},c7={URI:cA,map:ck,ap:cC,of:cg,chain:cy,fromIO:ct},c3={URI:cA,compact:cx,separate:cw},c5={URI:cA,map:ck,compact:cx,separate:cw,filter:cW,filterMap:cD,partition:cF,partitionMap:cN},c4={flatMap:cy},c9={fromIO:cZ.fromIO},c6=nw.we(c9,c4),ft=(0,t7.dual)(2,function(t,e){return cy(t,ch(e))}),fe=nw.iu({fromEither:a6},c4),fn=(0,t7.dual)(2,function(t,e){return cy(t,cp(e))}),fr=nT(cZ),fi=c6,fu=cJ,fo=(0,nb.fromEitherK)(cH),fa=fe,fc=cX,ff=ft,fl=cg(nw.F4),fs=(0,ep.bindTo)(cL),fp=(0,ep.let)(cL),fd=eo.bind(cV),fh=(0,tj.apS)(cY),fm=cg(nw.Xl),fv=function(t){return(0,t7.flow)(uD(t),uo(ed.traverseReadonlyNonEmptyArrayWithIndex(t7.SK)))},fg=function(t){var e=fv(t);return function(t){return nw.Od(t)?e(t):fm}},fy=cy,f_=c$,fb=function(){function t(t){var e=this;this.value=t,this.read=function(){return e.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return t.prototype.write=function(t){var e=this;return function(){e.value=t}},t.prototype.modify=function(t){var e=this;return function(){e.value=t(e.value)}},t}();function fT(t){return function(){return new fb(t)}}var fI=function(t){return(0,eC.tryCatch)(function(){return JSON.parse(t)},t7.identity)},fS=function(t){return(0,eC.tryCatch)(function(){var e=JSON.stringify(t);if("string"!=typeof e)throw Error("Converting unsupported structure to JSON");return e},t7.identity)},fx=n(76113),fw=n(55116),fR=n(96576),fO=n(43586),fM=function(t,e,n){return function(r){return -1===r?t():0===r?e():n()}},fE=fM,fk=function(t){return -1===t?1:1===t?-1:0},fC={equals:function(t,e){return t===e}},fP={concat:function(t,e){return 0!==t?t:e}},fW={concat:fP.concat,empty:0},fD=function(t){return t<=-1?-1:t>=1?1:0},fF=fk,fN=fP,fA=fC,fL=fW,fU=n(18896),fj=function(){return Math.random()};function fq(t,e){return(0,t7.pipe)(fj,uo(function(n){return Math.floor((e-t+1)*n+t)}))}function fB(t,e){return(0,t7.pipe)(fj,uo(function(n){return(e-t)*n+t}))}var fY=(0,t7.pipe)(fj,uo(function(t){return t<.5})),fK=function(t){return(0,t7.pipe)(fq(0,t.length-1),uo(function(e){return t[e]}))},fG=eW(nJ),fz=eP(nJ),fV=eD(n$),fH=eF(n$),fZ=nL,f$=fV,fX=eZ(n$),fJ=fX,fQ=e$(n5),f0=fQ,f1=fQ,f8=f1,f2=eX(n5),f7=f2,f3=e2(n$),f5=nM,f4=nE,f9=f4,f6=eJ(n5),lt=f6,le=(0,t7.dual)(2,e0(n5)),ln=e1(n5),lr=e8(n$),li=function(t,e){return(0,t7.pipe)(t,la(e))},lu=function(t,e){return(0,t7.pipe)(t,lp(e))},lo=function(t,e){return(0,t7.pipe)(t,ly(e))},la=eU(n$),lc=(0,t7.dual)(3,eG(n$)),lf=lc,ll=(0,t7.dual)(2,eV(n$)),ls=ll,lp=ej(nQ),ld=lp,lh=fz,lm=(0,t7.dual)(2,eB(n5)),lv=lm(t7.identity),lg=lv,ly=eY(n5),l_=ly,lb=fG,lT="ReaderEither",lI=function(t){var e=eC.getCompactable(t);return{URI:lT,_E:void 0,compact:em(n$,e),separate:ev(n$,e,eC.Functor)}};function lS(t){var e=eC.getFilterable(t),n=lI(t),r=ne(n$,e),i=nn(n$,e),u=nr(n$,e),o=ni(n$,e);return{URI:lT,_E:void 0,map:li,compact:n.compact,separate:n.separate,filter:function(t,e){return(0,t7.pipe)(t,r(e))},filterMap:function(t,e){return(0,t7.pipe)(t,i(e))},partition:function(t,e){return(0,t7.pipe)(t,u(e))},partitionMap:function(t,e){return(0,t7.pipe)(t,o(e))}}}function lx(t){var e=(0,tj.ap)(nQ,eC.getApplicativeValidation(t));return{URI:lT,_E:void 0,map:li,ap:function(t,n){return(0,t7.pipe)(t,e(n))},of:lh}}function lw(t){var e=eH(n5,t);return{URI:lT,_E:void 0,map:li,alt:function(t,n){return(0,t7.pipe)(t,e(n))}}}var lR={URI:lT,map:li},lO=(0,t7.dual)(2,(0,ep.as)(lR)),lM=(0,ep.asUnit)(lR),lE=(0,ep.flap)(lR),lk={URI:lT,of:lh},lC={URI:lT,map:li,ap:lu},lP=(0,tj.apFirst)(lC),lW=lP,lD=(0,tj.apSecond)(lC),lF=lD,lN={URI:lT,map:li,ap:lu,of:lh},lA={URI:lT,map:li,ap:lu,chain:lm},lL={URI:lT,map:li,ap:lu,of:lh,chain:lm},lU={URI:lT,fromEither:fZ},lj={URI:lT,fromReader:f$},lq=(0,t7.dual)(2,eo.tap(lA)),lB=(0,t7.dual)(2,(0,nb.tapEither)(lU,lA)),lY=(0,t7.dual)(2,rO(lj,lA)),lK={URI:lT,bimap:lc,mapLeft:ll},lG={URI:lT,map:li,alt:lo},lz=rI(lj),lV=rS(lj),lH=rx(lj),lZ=lY,l$=lY,lX={URI:lT,map:li,ap:lu,of:lh,chain:lm,throwError:lb},lJ=(0,nb.fromOption)(lU),lQ=(0,nb.fromOptionK)(lU),l0=(0,nb.chainOptionK)(lU,lA),l1=l0,l8={fromEither:lU.fromEither},l2={fromReader:lj.fromReader},l7=nw.uL(l8),l3=nw.WE(l8),l5={flatMap:lm},l4=nw.ny(l8,l5),l9=nw.hU(l8,l5),l6=nw.iu(l8,l5),st=nw.on(l2,l5),se=l6,sn=l6,sr=lB,si=lB,su=st,so=st,sa=(0,nb.fromPredicate)(lU),sc=(0,nb.filterOrElse)(lU,lA),sf=sc,sl=(0,nb.fromEitherK)(lU),ss=lh(nw.F4),sp=(0,ep.bindTo)(lR),sd=(0,ep.let)(lR),sh=eo.bind(lA),sm=sh,sv=(0,tj.apS)(lC),sg=sv,sy=lh(nw.Xl),s_=function(t){return(0,t7.flow)(rl(t),nF(eC.traverseReadonlyNonEmptyArrayWithIndex(t7.SK)))},sb=function(t){var e=s_(t);return function(t){return nw.Od(t)?e(t):sy}},sT=sb,sI=function(t){return sb(function(e,n){return t(n)})},sS=sI(t7.identity),sx=lm,sw=lm,sR=lq,sO=lq,sM=le,sE=le,sk={URI:lT,bimap:lc,mapLeft:ll,map:li,of:lh,ap:lu,chain:lm,alt:lo,throwError:fG},sC=(0,tj.getApplySemigroup)(lC),sP=(0,tY.getApplicativeMonoid)(lN),sW=function(t){return(0,tj.getApplySemigroup)(nQ)(eC.getSemigroup(t))};function sD(t){var e=lx(t),n=lw(t);return{URI:lT,_E:void 0,map:li,ap:e.ap,of:lh,chain:lm,bimap:lc,mapLeft:ll,alt:n.alt,throwError:lb}}function sF(t){return function(e){return function(){return t.of(e)}}}function sN(t){return function(e){return function(n){return function(r){return t.map(n(r),e)}}}}function sA(t){return function(e){return function(n){return function(r){return t.ap(n(r),e(r))}}}}function sL(t){var e=sU(t);return function(t){return function(n){return e(n,t)}}}function sU(t){return function(e,n){return function(r){return t.chain(e(r),function(t){return n(t)(r)})}}}function sj(t){return function(e){return(0,t7.flow)(e,t.of)}}function sq(t){return function(e){return(0,t7.flow)(e,t)}}function sB(t){var e=sA(t),n=sN(t),r=sL(t);return{map:function(t,e){return(0,t7.pipe)(t,n(e))},ap:function(t,n){return(0,t7.pipe)(t,e(n))},of:sF(t),chain:function(t,e){return(0,t7.pipe)(t,r(e))},ask:function(){return t.of},asks:function(e){return(0,t7.flow)(e,t.of)},local:function(t,e){return function(n){return t(e(n))}},fromReader:sj(t),fromM:function(t){return function(){return t}}}}var sY=sj(uv),sK=nL,sG=nM,sz=nE,sV=sz,sH=function(t,e){return(0,t7.pipe)(t,s$(e))},sZ=function(t,e){return(0,t7.pipe)(t,sX(e))},s$=sN(up),sX=sA(ug),sJ=sX,sQ=sF(uv),s0=(0,t7.dual)(2,sU(uI)),s1=s0(t7.identity),s8=s1,s2="ReaderIO",s7={URI:s2,map:sH},s3=(0,t7.dual)(2,(0,ep.as)(s7)),s5=(0,ep.asUnit)(s7),s4=(0,ep.flap)(s7),s9={URI:s2,of:sQ},s6={URI:s2,map:sH,ap:sZ},pt=(0,tj.apFirst)(s6),pe=(0,tj.apSecond)(s6),pn={URI:s2,map:sH,ap:sZ,of:sQ},pr={URI:s2,map:sH,ap:sZ,chain:s0},pi={URI:s2,map:sH,of:sQ,ap:sZ,chain:s0},pu={URI:s2,map:sH,of:sQ,ap:sZ,chain:s0,fromIO:sK},po={URI:s2,fromIO:sK},pa={URI:s2,fromReader:sY},pc={flatMap:s0},pf={fromIO:po.fromIO},pl=nw.we(pf,pc),ps=nw.on({fromReader:sY},pc),pp=(0,t7.dual)(2,eo.tap(pr)),pd=(0,t7.dual)(2,nx(po,pr)),ph=(0,t7.dual)(2,rO(pa,pr)),pm=nT(po),pv=pl,pg=pd,py=rI(pa),p_=rS(pa),pb=rx(pa),pT=ps,pI=ps,pS=ph,px=ph,pw=sQ(nw.F4),pR=(0,ep.bindTo)(s7),pO=eo.bind(pr),pM=pO,pE=(0,tj.apS)(s6),pk=pE,pC=sQ(nw.Xl),pP=function(t){return(0,t7.flow)(rl(t),nF(uD(t7.SK)))},pW=function(t){var e=pP(t);return function(t){return nw.Od(t)?e(t):pC}},pD=pW,pF=function(t){return pW(function(e,n){return t(n)})},pN=pF(t7.identity),pA=s0,pL=s0,pU=pp,pj=pp,pq=function(t){return function(){return Promise.resolve().then(t)}};function pB(t){return function(e){return function(){return new Promise(function(n){setTimeout(function(){Promise.resolve().then(e).then(n)},t)})}}}var pY=function(t,e){return(0,t7.pipe)(t,pz(e))},pK=function(t,e){return(0,t7.pipe)(t,pV(e))},pG=function(t,e){return pZ(t,function(t){return(0,t7.pipe)(e,pz(t))})},pz=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}},pV=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(t){var e;return(0,t[0])(t[1])})}}},pH=function(t){return function(){return Promise.resolve(t)}},pZ=(0,t7.dual)(2,function(t,e){return function(){return Promise.resolve().then(t).then(function(t){return e(t)()})}}),p$=pZ(t7.identity),pX="Task";function pJ(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:dm}}var pQ={URI:pX,map:pY},p0=(0,t7.dual)(2,(0,ep.as)(pQ)),p1=(0,ep.asUnit)(pQ),p8=(0,ep.flap)(pQ),p2={URI:pX,of:pH},p7={URI:pX,map:pY,ap:pK},p3=(0,tj.apFirst)(p7),p5=(0,tj.apSecond)(p7),p4={URI:pX,map:pY,ap:pK,of:pH},p9={URI:pX,map:pY,ap:pG},p6={URI:pX,map:pY,ap:pG,of:pH},dt={URI:pX,map:pY,ap:pK,chain:pZ},de={URI:pX,map:pY,of:pH,ap:pK,chain:pZ},dn={URI:pX,map:pY,of:pH,ap:pK,chain:pZ,fromIO:pq},dr=t7.identity,di={URI:pX,map:pY,of:pH,ap:pK,chain:pZ,fromIO:pq,fromTask:dr},du={URI:pX,fromIO:pq},da={fromIO:du.fromIO},dc=nw.we(da,{flatMap:pZ}),df=(0,t7.dual)(2,eo.tap(dt)),dl=(0,t7.dual)(2,nx(du,dt)),ds=nT(du),dp=dc,dd=dl,dh={URI:pX,fromIO:pq,fromTask:dr},dm=function(){return new Promise(function(t){})},dv=pH(nw.F4),dg=(0,ep.bindTo)(pQ),dy=(0,ep.let)(pQ),d_=eo.bind(dt),db=(0,tj.apS)(p7),dT=pH(nw.Xl),dI=function(t){return function(e){return function(){return Promise.all(e.map(function(e,n){return Promise.resolve().then(function(){return t(n,e)()})}))}}},dS=function(t){var e=dI(t);return function(t){return nw.Od(t)?e(t):dT}},dx=function(t){return function(e){return function(){return nw.Gb(e).reduce(function(e,n,r){return e.then(function(e){return Promise.resolve().then(t(r+1,n)).then(function(t){return e.push(t),e})})},Promise.resolve().then(t(0,nw.YM(e))).then(nw.ri))}}},dw=function(t){var e=dx(t);return function(t){return nw.Od(t)?e(t):dT}},dR=dS,dO=function(t){return dS(function(e,n){return t(n)})},dM=dO(t7.identity),dE=dw,dk=function(t){return dw(function(e,n){return t(n)})},dC=dk(t7.identity),dP=pZ,dW=df,dD={URI:pX,map:pY,of:pH,ap:pK,chain:pZ,fromIO:pq,fromTask:dr},dF={URI:pX,map:pY,of:pH,ap:pG,chain:pZ,fromIO:pq,fromTask:dr},dN=(0,tj.getApplySemigroup)(p9),dA=(0,tY.getApplicativeMonoid)(p6),dL=sj(p2),dU=nL,dj=(0,t7.flow)(pq,dU),dq=nF(pq),dB=nM,dY=nE,dK=dY,dG=function(t,e){return(0,t7.pipe)(t,dH(e))},dz=function(t,e){return(0,t7.pipe)(t,dZ(e))},dV=function(t,e){return dJ(t,function(t){return(0,t7.pipe)(e,dH(t))})},dH=sN(pQ),dZ=sA(p7),d$=dZ,dX=sF(p2),dJ=(0,t7.dual)(2,sU(de)),dQ=dJ(t7.identity),d0=dQ,d1="ReaderTask",d8={URI:d1,map:dG},d2=(0,t7.dual)(2,(0,ep.as)(d8)),d7=(0,ep.asUnit)(d8),d3=(0,ep.flap)(d8),d5={URI:d1,of:dX},d4={URI:d1,map:dG,ap:dz},d9=(0,tj.apFirst)(d4),d6=(0,tj.apSecond)(d4),ht={URI:d1,map:dG,ap:dz,of:dX},he={URI:d1,map:dG,ap:dV},hn={URI:d1,map:dG,ap:dV,of:dX},hr={URI:d1,map:dG,ap:dz,chain:dJ},hi={URI:d1,map:dG,of:dX,ap:dz,chain:dJ},hu={URI:d1,map:dG,of:dX,ap:dz,chain:dJ,fromIO:dj},ho={URI:d1,map:dG,of:dX,ap:dz,chain:dJ,fromIO:dj,fromTask:dU},ha={URI:d1,fromIO:dj},hc={URI:d1,fromIO:dj,fromTask:dU},hf={URI:d1,fromReader:dL},hl={flatMap:dJ},hs={fromIO:ha.fromIO},hp=nw.we(hs,hl),hd=nw.D9({fromTask:dU},hl),hh=nw.on({fromReader:dL},hl),hm=(0,t7.dual)(2,function(t,e){return dJ(t,hC(e))}),hv=(0,t7.dual)(2,eo.tap(hr)),hg=(0,t7.dual)(2,nx(ha,hr)),hy=(0,t7.dual)(2,rO(hf,hr)),h_=(0,t7.dual)(2,ih(hc,hr)),hb=(0,t7.dual)(2,function(t,e){return hv(t,hC(e))}),hT=nT(ha),hI=hp,hS=hg,hx=rI(hf),hw=rS(hf),hR=rx(hf),hO=hh,hM=hh,hE=hy,hk=hy,hC=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return dq(t.apply(void 0,e))}},hP=hm,hW=hm,hD=hb,hF=hb,hN=is(hc),hA=hd,hL=h_,hU=dX(nw.F4),hj=(0,ep.bindTo)(d8),hq=(0,ep.let)(d8),hB=eo.bind(hr),hY=hB,hK=(0,tj.apS)(d4),hG=hK,hz=dX(nw.Xl),hV=function(t){return(0,t7.flow)(rl(t),nF(dI(t7.SK)))},hH=function(t){var e=hV(t);return function(t){return nw.Od(t)?e(t):hz}},hZ=function(t){return(0,t7.flow)(rl(t),nF(dx(t7.SK)))},h$=function(t){var e=hZ(t);return function(t){return nw.Od(t)?e(t):hz}},hX=hH,hJ=function(t){return hH(function(e,n){return t(n)})},hQ=hJ(t7.identity),h0=h$,h1=function(t){return h$(function(e,n){return t(n)})},h8=dJ,h2=dJ,h7=hv,h3=hv,h5=h1(t7.identity),h4={URI:d1,map:dG,of:dX,ap:dz,chain:dJ,fromIO:dj,fromTask:dU},h9={URI:d1,map:dG,of:dX,ap:dV,chain:dJ,fromIO:dj,fromTask:dU},h6=(0,tj.getApplySemigroup)(he),mt=(0,tY.getApplicativeMonoid)(hn);function me(t,e){return t(e)()}var mn=function(t,e){var n,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)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 o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}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])}}},mr=eW(p2),mi=eP(p2),mu=eD(pQ),mo=eF(pQ),ma=(0,t7.flow)(pq,mu),mc=(0,t7.flow)(pq,mo),mf=ma,ml=mu,ms=pH,mp=pq,md=function(t){return pz(eC.fromOption(t))},mh=eZ(pQ),mm=mh,mv=e$(de),mg=mv,my=mv,m_=my,mb=eX(de),mT=mb,mI=function(t,e){return function(){var n,r,i,u;return n=void 0,r=void 0,i=void 0,u=function(){var n;return mn(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t().then(nw.F2)];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,nw.t$(e(n))];case 3:return[2]}})},new(i||(i=Promise))(function(t,e){function o(t){try{c(u.next(t))}catch(n){e(n)}}function a(t){try{c(u.throw(t))}catch(n){e(n)}}function c(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(o,a)}c((u=u.apply(n,r||[])).next())})}},mS=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return mI(function(){return t.apply(void 0,n)},e)}},mx=e2(pQ),mw=eN(p2),mR=eA(p2),mO=eL(de),mM=eJ(de),mE=mM,mk=(0,t7.dual)(2,e0(de)),mC=function(t){return mk(vZ(t))},mP=function(t){return mk(vJ(t))},mW=e1(de),mD=e8(pQ),mF=function(t){var e=md(t);return function(t){return(0,t7.flow)(t,e)}},mN=function(t){return function(e){return function(n){return m$(n,mF(t)(e))}}},mA=mN,mL=function(t){return(0,t7.flow)(t,mp)},mU=function(t,e){return(0,t7.pipe)(t,mY(e))},mj=function(t,e){return(0,t7.pipe)(t,mH(e))},mq=function(t,e){return m$(t,function(t){return(0,t7.pipe)(e,mY(t))})},mB=function(t,e){return(0,t7.pipe)(t,mQ(e))},mY=eU(pQ),mK=(0,t7.dual)(3,eG(pQ)),mG=mK,mz=(0,t7.dual)(2,eV(pQ)),mV=mz,mH=ej(p7),mZ=mH,m$=(0,t7.dual)(2,eB(de)),mX=m$(t7.identity),mJ=mX,mQ=eY(de),m0=mQ,m1=mi,m8=mr,m2="TaskEither";function m7(t,e){var n=(0,tj.ap)(t,eC.getApplicativeValidation(e));return{URI:m2,_E:void 0,map:mU,ap:function(t,e){return(0,t7.pipe)(t,n(e))},of:m1}}function m3(t){var e=eH(de,t);return{URI:m2,_E:void 0,map:mU,alt:function(t,n){return(0,t7.pipe)(t,e(n))}}}var m5=function(t){var e=eC.getCompactable(t);return{URI:m2,_E:void 0,compact:em(pQ,e),separate:ev(pQ,e,eC.Functor)}};function m4(t){var e=eC.getFilterable(t),n=m5(t),r=ne(pQ,e),i=nn(pQ,e),u=nr(pQ,e),o=ni(pQ,e);return{URI:m2,_E:void 0,map:mU,compact:n.compact,separate:n.separate,filter:function(t,e){return(0,t7.pipe)(t,r(e))},filterMap:function(t,e){return(0,t7.pipe)(t,i(e))},partition:function(t,e){return(0,t7.pipe)(t,u(e))},partitionMap:function(t,e){return(0,t7.pipe)(t,o(e))}}}var m9={URI:m2,map:mU},m6=(0,t7.dual)(2,(0,ep.as)(m9)),vt=(0,ep.asUnit)(m9),ve=(0,ep.flap)(m9),vn={URI:m2,of:m1},vr={URI:m2,map:mU,ap:mj},vi=(0,tj.apFirst)(vr),vu=vi,vo=(0,tj.apSecond)(vr),va=vo,vc={URI:m2,map:mU,ap:mj,of:m1},vf={URI:m2,map:mU,ap:mq},vl={URI:m2,map:mU,ap:mq,of:m1},vs={URI:m2,map:mU,ap:mj,chain:m$},vp={URI:m2,map:mU,ap:mj,chain:m$,of:m1},vd={URI:m2,map:mU,ap:mj,chain:m$,of:m1,fromIO:mf},vh={URI:m2,map:mU,ap:mj,chain:m$,of:m1,fromIO:mf,fromTask:ml},vm={URI:m2,map:mU,ap:mj,chain:m$,of:m1,throwError:m8},vv={URI:m2,fromEither:ms},vg={URI:m2,fromIO:mf},vy={URI:m2,fromIO:mf,fromTask:ml},v_=(0,t7.dual)(2,eo.tap(vs)),vb=(0,t7.dual)(2,(0,nb.tapEither)(vv,vs)),vT=(0,t7.dual)(2,nx(vg,vs)),vI=(0,t7.dual)(2,ih(vy,vs)),vS={URI:m2,bimap:mK,mapLeft:mz},vx={URI:m2,map:mU,alt:mB},vw=(0,nb.fromOption)(vv),vR=(0,nb.fromOptionK)(vv),vO=(0,nb.chainOptionK)(vv,vs),vM=vO,vE={fromEither:vv.fromEither},vk=nw.uL(vE),vC=nw.WE(vE),vP={flatMap:m$},vW={fromIO:vg.fromIO},vD=nw.ny(vE,vP),vF=nw.hU(vE,vP),vN=nw.iu(vE,vP),vA=nw.we(vW,vP),vL=nw.D9({fromTask:ml},vP),vU=(0,t7.dual)(2,function(t,e){return m$(t,mL(e))}),vj=(0,t7.dual)(3,function(t,e,n){return m$(t,function(t){return md(function(){return n(t)})(e(t))})}),vq=vN,vB=vN,vY=vb,vK=vb,vG=(0,nb.fromPredicate)(vv),vz=(0,nb.filterOrElse)(vv,vs),vV=vz,vH=(0,nb.fromEitherK)(vv),vZ=nT(vg),v$=vA,vX=vT,vJ=is(vy),vQ=vL,v0=vI,v1=vU,v8=vU;function v2(t){return function(){var e=Array.prototype.slice.call(arguments);return function(){return new Promise(function(n){var r=function(t,e){return null!=t?n(nw.t$(t)):n(nw.F2(e))};t.apply(null,e.concat(r))})}}}var v7=function(t,e,n){return v3(t,e,n)},v3=function(t,e,n){return m$(t,function(t){return pZ(e(t),function(e){return m$(n(t,e),function(){return pH(e)})})})},v5=m1(nw.F4),v4=(0,ep.bindTo)(m9),v9=(0,ep.let)(m9),v6=eo.bind(vs),gt=v6,ge=(0,tj.apS)(vr),gn=ge,gr=m1(nw.Xl),gi=function(t){return(0,t7.flow)(dI(t),pz(eC.traverseReadonlyNonEmptyArrayWithIndex(t7.SK)))},gu=function(t){var e=gi(t);return function(t){return nw.Od(t)?e(t):gr}},go=function(t){return function(e){return function(){return nw.Gb(e).reduce(function(e,n,r){return e.then(function(i){return nw.nM(i)?e:t(r+1,n)().then(function(t){return nw.nM(t)?t:(i.right.push(t.right),i)})})},t(0,nw.YM(e))().then(eC.map(nw.ri)))}}},ga=function(t){var e=go(t);return function(t){return nw.Od(t)?e(t):gr}},gc=gu,gf=function(t){return gu(function(e,n){return t(n)})},gl=gf(t7.identity),gs=ga,gp=function(t){return ga(function(e,n){return t(n)})},gd=gp(t7.identity),gh=m$,gm=m$,gv=v_,gg=v_,gy=mk,g_=mk,gb={URI:m2,bimap:mK,mapLeft:mz,map:mU,of:m1,ap:mj,chain:m$,alt:mB,fromIO:mf,fromTask:ml,throwError:m8},gT={URI:m2,bimap:mK,mapLeft:mz,map:mU,of:m1,ap:mq,chain:m$,alt:mB,fromIO:mf,fromTask:ml,throwError:m8},gI=(0,tj.getApplySemigroup)(vf),gS=(0,tY.getApplicativeMonoid)(vl),gx=function(t){return(0,tj.getApplySemigroup)(p9)(eC.getSemigroup(t))};function gw(t){var e=m7(p4,t),n=m3(t);return{URI:m2,_E:void 0,map:mU,ap:e.ap,of:m1,chain:m$,bimap:mK,mapLeft:mz,alt:n.alt,fromIO:mf,fromTask:ml,throwError:m8}}var gR=nL,gO=eW(d5),gM=eP(d5),gE=(0,t7.flow)(mu,gR),gk=(0,t7.flow)(mo,gR),gC=function(t){return(0,t7.flow)(t,mi)},gP=function(t){return(0,t7.flow)(t,mr)},gW=eD(d8),gD=eF(d8),gF=(0,t7.flow)(ma,gR),gN=(0,t7.flow)(mc,gR),gA=function(t){return(0,t7.flow)(t,ma)},gL=function(t){return(0,t7.flow)(t,mc)},gU=dX,gj=gC,gq=gF,gB=gE,gY=(0,t7.flow)(mp,gR),gK=function(t){return(0,t7.flow)(t,ms)},gG=eZ(d8),gz=gG,gV=e$(hr),gH=gV,gZ=gV,g$=gZ,gX=eX(hi),gJ=gX,gQ=e2(d8),g0=eN(d5),g1=eA(d5),g8=eL(hi),g2=nM,g7=nE,g3=g7,g5=eJ(hi),g4=g5,g9=(0,t7.dual)(2,e0(hi)),g6=e1(hi),yt=e8(d8),ye=function(t){return(0,t7.flow)(t,gY)},yn=function(t){return(0,t7.flow)(t,gR)},yr=function(t){return(0,t7.flow)(t,gK)},yi=function(t,e){return(0,t7.pipe)(t,yc(e))},yu=function(t,e){return(0,t7.pipe)(t,yd(e))},yo=function(t,e){return yv(t,function(t){return(0,t7.pipe)(e,yc(t))})},ya=function(t,e){return(0,t7.pipe)(t,y_(e))},yc=eU(d8),yf=(0,t7.dual)(3,eG(d8)),yl=yf,ys=(0,t7.dual)(2,eV(d8)),yp=ys,yd=ej(d4),yh=yd,ym=gM,yv=(0,t7.dual)(2,eB(hi)),yg=yv(t7.identity),yy=yg,y_=eY(hi),yb=y_,yT=gO,yI="ReaderTaskEither",yS=function(t){var e=eC.getCompactable(t);return{URI:yI,_E:void 0,compact:em(d8,e),separate:ev(d8,e,eC.Functor)}};function yx(t){var e=eC.getFilterable(t),n=yS(t),r=ne(d8,e),i=nn(d8,e),u=nr(d8,e),o=ni(d8,e);return{URI:yI,_E:void 0,map:yi,compact:n.compact,separate:n.separate,filter:function(t,e){return(0,t7.pipe)(t,r(e))},filterMap:function(t,e){return(0,t7.pipe)(t,i(e))},partition:function(t,e){return(0,t7.pipe)(t,u(e))},partitionMap:function(t,e){return(0,t7.pipe)(t,o(e))}}}function yw(t,e){var n=(0,tj.ap)(nQ,m7(t,e));return{URI:yI,_E:void 0,map:yi,ap:function(t,e){return(0,t7.pipe)(t,n(e))},of:ym}}function yR(t){var e=eH(hi,t);return{URI:yI,_E:void 0,map:yi,alt:function(t,n){return(0,t7.pipe)(t,e(n))}}}var yO={URI:yI,map:yi},yM=(0,t7.dual)(2,(0,ep.as)(yO)),yE=(0,ep.asUnit)(yO),yk=(0,ep.flap)(yO),yC={URI:yI,of:ym},yP={URI:yI,map:yi,ap:yu},yW=(0,tj.apFirst)(yP),yD=yW,yF=(0,tj.apSecond)(yP),yN=yF,yA={URI:yI,map:yi,ap:yu,of:ym},yL={URI:yI,map:yi,ap:yo},yU={URI:yI,map:yi,ap:yo,of:ym},yj={URI:yI,map:yi,ap:yu,chain:yv},yq={URI:yI,map:yi,ap:yu,chain:yv,of:ym},yB={URI:yI,map:yi,ap:yu,chain:yv,of:ym,fromIO:gq},yY={URI:yI,map:yi,ap:yu,chain:yv,of:ym,fromIO:gq,fromTask:gB},yK={URI:yI,map:yi,ap:yu,chain:yv,of:ym,throwError:yT},yG={URI:yI,fromEither:gU},yz={URI:yI,fromIO:gq},yV={URI:yI,fromIO:gq,fromTask:gB},yH={URI:yI,fromReader:gj},yZ=(0,t7.dual)(2,eo.tap(yj)),y$=(0,t7.dual)(2,(0,nb.tapEither)(yG,yj)),yX=(0,t7.dual)(2,nx(yz,yj)),yJ=(0,t7.dual)(2,ih(yV,yj)),yQ=(0,t7.dual)(2,rO(yH,yj)),y0=(0,t7.dual)(2,function(t,e){return yZ(t,yr(e))}),y1=(0,t7.dual)(2,function(t,e){return yZ(t,yn(e))}),y8=(0,t7.dual)(2,function(t,e){return yZ(t,_u(e))}),y2=(0,t7.dual)(2,function(t,e){return yZ(t,_c(e))}),y7={URI:yI,bimap:yf,mapLeft:ys},y3={URI:yI,map:yi,alt:ya},y5=rI(yH),y4=rS(yH),y9=rx(yH),y6=yQ,_t=yQ,_e=y0,_n=y0,_r=y1,_i=y1,_u=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return gW(t.apply(void 0,e))}},_o=y8,_a=y8,_c=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return gA(t.apply(void 0,e))}},_f=y2,_l=y2,_s=(0,nb.fromOption)(yG),_p=(0,nb.fromOptionK)(yG),_d=(0,nb.chainOptionK)(yG,yj),_h=_d,_m={fromEither:yG.fromEither},_v=nw.uL(_m),_g=nw.WE(_m),_y={flatMap:yv},__=nw.ny(_m,_y),_b=nw.hU(_m,_y),_T=nw.iu(_m,_y),_I=(0,t7.dual)(2,function(t,e){return yv(t,yn(e))}),_S=(0,t7.dual)(2,function(t,e){return yv(t,_u(e))}),_x=nw.we({fromIO:gq},_y),_w=nw.D9({fromTask:gB},_y),_R=nw.on({fromReader:gj},_y),_O=(0,t7.dual)(2,function(t,e){return yv(t,_c(e))}),_M=(0,t7.dual)(2,function(t,e){return yv(t,ye(e))}),_E=(0,t7.dual)(2,function(t,e){return yv(t,yr(e))}),_k=_T,_C=_T,_P=y$,_W=y$,_D=_I,_F=_I,_N=_S,_A=_S,_L=(0,nb.fromPredicate)(yG),_U=(0,nb.filterOrElse)(yG,yj),_j=_U,_q=(0,nb.fromEitherK)(yG),_B=nT(yz),_Y=_x,_K=yX,_G=is(yV),_z=_w,_V=yJ,_H=_R,_Z=_R,_$=_O,_X=_O,_J=_M,_Q=_M,_0=_E,_1=_E;function _8(t,e,n){return _2(t,e,n)}function _2(t,e,n){return function(r){return v3(t(r),function(t){return e(t)(r)},function(t,e){return n(t,e)(r)})}}var _7=ym(nw.F4),_3=(0,ep.bindTo)(yO),_5=(0,ep.let)(yO),_4=eo.bind(yj),_9=_4,_6=(0,tj.apS)(yP),bt=_6,be=ym(nw.Xl),bn=function(t){return(0,t7.flow)(rl(t),nF(gi(t7.SK)))},br=function(t){var e=bn(t);return function(t){return nw.Od(t)?e(t):be}},bi=function(t){return(0,t7.flow)(rl(t),nF(go(t7.SK)))},bu=function(t){var e=bi(t);return function(t){return nw.Od(t)?e(t):be}},bo=br,ba=function(t){return br(function(e,n){return t(n)})},bc=ba(t7.identity),bf=bu,bl=function(t){return bu(function(e,n){return t(n)})},bs=bl(t7.identity),bp=yv,bd=yv,bh=yZ,bm=yZ,bv=g9,bg=g9,by={URI:yI,map:yi,of:ym,ap:yu,chain:yv,alt:ya,bimap:yf,mapLeft:ys,fromIO:gq,fromTask:gB,throwError:yT},b_={URI:yI,map:yi,of:ym,ap:yo,chain:yv,alt:ya,bimap:yf,mapLeft:ys,fromIO:gq,fromTask:gB,throwError:yT},bb=(0,tj.getApplySemigroup)(yL),bT=(0,tY.getApplicativeMonoid)(yU),bI=function(t){return(0,tj.getApplySemigroup)(he)(eC.getSemigroup(t))};function bS(t){var e=yw(p4,t),n=yR(t);return{URI:yI,_E:void 0,map:yi,of:ym,chain:yv,bimap:yf,mapLeft:ys,ap:e.ap,alt:n.alt,fromIO:gq,fromTask:gB,throwError:yT}}function bx(t,e){return t(e)()}var bw=n(31583),bR=n(13512),bO=n(28350),bM=n(97054),bE=n(99156);function bk(t){return t[0]}function bC(t){return t[1]}var bP=function(t){var e;return[bC(t),t[0]]};function bW(t){return{URI:b5,_E:void 0,map:bj,ap:function(e,n){var r,i;return[(0,e[0])(n[0]),t.concat(bC(e),bC(n))]}}}var bD=function(t){return function(e){return[e,t.empty]}};function bF(t){var e=bW(t);return{URI:b5,_E:void 0,map:bj,ap:e.ap,of:bD(t)}}function bN(t){var e=bW(t);return{URI:b5,_E:void 0,map:bj,ap:e.ap,chain:function(e,n){var r,i=n(e[0]),u=i[0],o=i[1];return[u,t.concat(bC(e),o)]}}}function bA(t){var e=bN(t);return{URI:b5,_E:void 0,map:bj,ap:e.ap,chain:e.chain,of:bD(t)}}function bL(t){var e=function(e,n){for(var r,i,u=n(e),o=t.empty,a=(i=u)[0];"Left"===a._tag;)o=t.concat(o,bC(u)),a=(r=u=n(a.left))[0];return[a.right,t.concat(o,bC(u))]},n=bN(t);return{URI:b5,_E:void 0,map:bj,ap:n.ap,chain:n.chain,chainRec:e}}var bU=function(t,e){return(0,t7.pipe)(t,bX(e))},bj=function(t,e){return(0,t7.pipe)(t,bZ(e))},bq=function(t,e,n){return(0,t7.pipe)(t,bH(e,n))},bB=function(t,e){return(0,t7.pipe)(t,b$(e))},bY=function(t,e){return(0,t7.pipe)(t,bJ(e))},bK=function(t,e,n){return(0,t7.pipe)(t,b1(e,n))},bG=function(t){var e=b8(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},bz=function(t,e,n){return(0,t7.pipe)(t,b2(e,n))},bV=function(t){var e=b7(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},bH=function(t,e){return function(n){var r;return[e(n[0]),t(bC(n))]}},bZ=function(t){return function(e){var n;return[t(e[0]),bC(e)]}},b$=function(t){return function(e){var n;return[e[0],t(bC(e))]}},bX=function(t){return function(e){var n;return[e[0],bC(t)]}},bJ=function(t){return function(e){return[t(e),bC(e)]}},bQ=bk,b0=bJ(t7.identity),b1=function(t,e){return function(n){var r;return e(t,n[0])}},b8=function(){return function(t){return function(e){var n;return t(e[0])}}},b2=function(t,e){return function(n){var r;return e(n[0],t)}},b7=function(t){return function(e){return function(n){var r;return t.map(e(n[0]),function(t){return[t,bC(n)]})}}},b3=function(t){return function(e){var n;return t.map(e[0],function(t){return[t,bC(e)]})}},b5="ReadonlyTuple",b4={URI:b5,map:bj},b9=(0,ep.flap)(b4),b6=bZ,Tt=b$,Te={URI:b5,bimap:bq,mapLeft:bB},Tn={URI:b5,compose:bU},Tr={URI:b5,map:bj,extend:bY,extract:bQ},Ti={URI:b5,reduce:bK,foldMap:bG,reduceRight:bz},Tu={URI:b5,map:bj,reduce:bK,foldMap:bG,reduceRight:bz,traverse:bV,sequence:b3},To={URI:b5,compose:bU,map:bj,bimap:bq,mapLeft:bB,extract:bQ,extend:bY,reduce:bK,foldMap:bG,reduceRight:bz,traverse:bV,sequence:b3},Ta=n(3291),Tc=n(57029),Tf=n(76511),Tl=function(){return(Tl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ts=bM.size,Tp=bM.isEmpty,Td=function(t){return function(e){return Object.keys(e).sort(t.compare)}},Th=Td(Tc.Ord);function Tm(t){if("function"==typeof t)return Tm(Tc.Ord)(t);var e=Td(t);return function(t){return function(n){for(var r=[],i=0,u=e(n);i<u.length;i++){var o=u[i];r.push(t(o,n[o]))}return r}}}var Tv=Tm(Tc.Ord)(function(t,e){return[t,e]});function Tg(t){return function(e){var n=Tv(e),r=n.length;return t.unfold(0,function(t){return t<r?nw.G([n[t],t+1]):nw.YP})}}var Ty=bM.upsertAt,T_=bM.has;function Tb(t){return function(e){if(!nw.e$.call(e,t))return e;var n=Object.assign({},e);return delete n[t],n}}var TT=function(t,e){return TI(t,function(){return e})},TI=function(t,e){return function(n){if(!T_(t,n))return nw.YP;var r=Object.assign({},n);return r[t]=e(n[t]),nw.G(r)}};function TS(t){var e=Tb(t);return function(n){var r=Tw(t,n);return nw.Wi(r)?nw.YP:nw.G([r.value,e(n)])}}var Tx=bM.isSubrecord,Tw=bM.lookup,TR=bM.mapWithIndex,TO=bM.map;function TM(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length?bM.reduceWithIndex(t[0]):bM.reduceWithIndex(Tc.Ord).apply(void 0,t)}function TE(t){return"compare"in t?bM.foldMapWithIndex(t):bM.foldMapWithIndex(Tc.Ord)(t)}function Tk(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length?bM.reduceRightWithIndex(t[0]):bM.reduceRightWithIndex(Tc.Ord).apply(void 0,t)}var TC=bM.singleton;function TP(t){return bM.traverseWithIndex(t)}function TW(t){return bM.traverse(t)}function TD(t){return bM.sequence(t)}var TF=function(t){var e=TW(t);return function(n){return function(r){return t.map((0,t7.pipe)(r,e(n)),Id)}}},TN=function(t){var e=TW(t);return function(n){return function(r){return t.map((0,t7.pipe)(r,e(n)),Ih)}}},TA=bM.partitionMapWithIndex;function TL(t){return bM.partitionWithIndex(t)}var TU=bM.filterMapWithIndex;function Tj(t){return bM.filterWithIndex(t)}function Tq(t,e){return bM.fromFoldable(t,e)}var TB=Tv,TY=function(t){return Tq(Ta.last(),tK.Foldable)(t)};function TK(t,e){return bM.fromFoldableMap(t,e)}var TG=bM.every,Tz=bM.some,TV=bM.elem,TH=function(t){var e=bM.union(t);return function(t){return function(n){return Tp(n)?Tl({},t):Tp(t)?Tl({},n):e(t)(n)}}},TZ=function(t){return function(e){return function(n){return Tp(n)||Tp(e)?{}:bM.intersection(t)(e)(n)}}},T$=function(t){return function(e){return Tp(e)?Tl({},t):Tp(t)?Tl({},e):bM.difference(t)(e)}},TX=bM._map,TJ=bM._mapWithIndex,TQ=bM._reduce,T0=bM._foldMap,T1=bM._reduceRight,T8=bM._filter,T2=bM._filterMap,T7=bM._partition,T3=bM._partitionMap,T5=bM._reduceWithIndex,T4=bM._foldMapWithIndex,T9=bM._reduceRightWithIndex,T6=bM._partitionMapWithIndex,It=bM._partitionWithIndex,Ie=bM._filterMapWithIndex,In=bM._filterWithIndex,Ir=bM._traverse,Ii=bM._sequence,Iu=function(t){return function(e){var n=Td(t);return function(t,r){var i=n(t);if(0===i.length)return e.of({});for(var u=e.of({}),o=function(n){u=e.ap(e.map(u,function(t){return function(e){return t[n]=e,t}}),r(n,t[n]))},a=0;a<i.length;a++)o(i[a]);return u}}},Io=bM.filter,Ia=bM.filterMap,Ic=bM.partition,If=bM.partitionMap;function Il(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length?bM.reduce(t[0]):bM.reduce(Tc.Ord).apply(void 0,t)}function Is(t){return"compare"in t?bM.foldMap(t):bM.foldMap(Tc.Ord)(t)}function Ip(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length?bM.reduceRight(t[0]):bM.reduceRight(Tc.Ord).apply(void 0,t)}var Id=bM.compact,Ih=bM.separate,Im="Record";function Iv(t){return"compare"in t?bM.getShow(t):bM.getShow(Tc.Ord)(t)}var Ig=bM.getEq,Iy=bM.getMonoid,I_={URI:Im,map:TX},Ib=(0,ep.flap)(I_),IT={URI:Im,map:TX,mapWithIndex:TJ},II=function(t){return{URI:Im,reduce:TQ(t),foldMap:T0(t),reduceRight:T1(t)}},IS=function(t){return{URI:Im,reduce:TQ(t),foldMap:T0(t),reduceRight:T1(t),reduceWithIndex:T5(t),foldMapWithIndex:T4(t),reduceRightWithIndex:T9(t)}},Ix={URI:Im,compact:Id,separate:Ih},Iw={URI:Im,map:TX,compact:Id,separate:Ih,filter:T8,filterMap:T2,partition:T7,partitionMap:T3},IR={URI:Im,map:TX,mapWithIndex:TJ,compact:Id,separate:Ih,filter:T8,filterMap:T2,partition:T7,partitionMap:T3,filterMapWithIndex:Ie,filterWithIndex:In,partitionMapWithIndex:T6,partitionWithIndex:It},IO=function(t){return{URI:Im,map:TX,reduce:TQ(t),foldMap:T0(t),reduceRight:T1(t),traverse:Ir(t),sequence:Ii(t)}},IM=function(t){return{URI:Im,map:TX,mapWithIndex:TJ,reduce:TQ(t),foldMap:T0(t),reduceRight:T1(t),reduceWithIndex:T5(t),foldMapWithIndex:T4(t),reduceRightWithIndex:T9(t),traverse:Ir(t),sequence:Ii(t),traverseWithIndex:Iu(t)}},IE=function(t){var e=IO(t);return{URI:Im,map:TX,reduce:TQ(t),foldMap:T0(t),reduceRight:T1(t),traverse:e.traverse,sequence:e.sequence,compact:Id,separate:Ih,filter:T8,filterMap:T2,partition:T7,partitionMap:T3,wither:(0,Tf.witherDefault)(e,Ix),wilt:(0,Tf.wiltDefault)(e,Ix)}},Ik=function(t){var e=TH(t);return{concat:function(t,n){return e(n)(t)}}},IC=function(t){return{concat:Ik(t).concat,empty:{}}},IP=function(t){var e=TZ(t);return{concat:function(t,n){return e(n)(t)}}},IW=function(){return{concat:function(t,e){return T$(e)(t)}}},ID={URI:Im,reduce:TQ(Tc.Ord),foldMap:T0(Tc.Ord),reduceRight:T1(Tc.Ord)},IF={URI:Im,reduce:TQ(Tc.Ord),foldMap:T0(Tc.Ord),reduceRight:T1(Tc.Ord),reduceWithIndex:T5(Tc.Ord),foldMapWithIndex:T4(Tc.Ord),reduceRightWithIndex:T9(Tc.Ord)},IN={URI:Im,map:TX,reduce:TQ(Tc.Ord),foldMap:T0(Tc.Ord),reduceRight:T1(Tc.Ord),traverse:Ir(Tc.Ord),sequence:TD},IA={URI:Im,map:TX,mapWithIndex:TJ,reduce:TQ(Tc.Ord),foldMap:T0(Tc.Ord),reduceRight:T1(Tc.Ord),reduceWithIndex:T5(Tc.Ord),foldMapWithIndex:T4(Tc.Ord),reduceRightWithIndex:T9(Tc.Ord),traverse:Ir(Tc.Ord),sequence:TD,traverseWithIndex:Iu(Tc.Ord)},IL=(0,Tf.witherDefault)(IN,Ix),IU=(0,Tf.wiltDefault)(IN,Ix),Ij={URI:Im,map:TX,reduce:TQ(Tc.Ord),foldMap:T0(Tc.Ord),reduceRight:T1(Tc.Ord),traverse:Ir(Tc.Ord),sequence:TD,compact:Id,separate:Ih,filter:T8,filterMap:T2,partition:T7,partitionMap:T3,wither:IL,wilt:IU},Iq={},IB=Ty,IY=bM.hasOwnProperty,IK={URI:Im,map:TX,reduce:TQ(Tc.Ord),foldMap:T0(Tc.Ord),reduceRight:T1(Tc.Ord),traverse:Ir(Tc.Ord),sequence:TD,compact:Id,separate:Ih,filter:T8,filterMap:T2,partition:T7,partitionMap:T3,mapWithIndex:TJ,reduceWithIndex:T5(Tc.Ord),foldMapWithIndex:T4(Tc.Ord),reduceRightWithIndex:T9(Tc.Ord),filterMapWithIndex:Ie,filterWithIndex:In,partitionMapWithIndex:T6,partitionWithIndex:It,traverseWithIndex:Iu(Tc.Ord),wither:IL,wilt:IU},IG=function(t){return function(e){return nw.pC(t(e))}},Iz=function(t){return function(e){return nw.tO(t(e))}},IV=function(){return function(t){return!0}},IH=function(t){return function(e){return!t(e)}},IZ=function(t){return function(e){return function(n){return e(n)||t(n)}}},I$=function(t){return function(e){return function(n){return e(n)&&t(n)}}},IX=function(){return function(t){return!1}},IJ=function(t){return function(e){return function(n){return e(n)&&t(n)}}},IQ=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return{add:function(e,n){return t.map(function(t,r){return t.add(e[r],n[r])})},zero:t.map(function(t){return t.zero}),mul:function(e,n){return t.map(function(t,r){return t.mul(e[r],n[r])})},one:t.map(function(t){return t.one}),sub:function(e,n){return t.map(function(t,r){return t.sub(e[r],n[r])})}}},I0=function(t){return function(e){return t.sub(t.zero,e)}},I1=IQ,I8=t7.getRing,I2=t7.getSemiring,I7=n(1214),I3=function(t){return{show:function(e){var n="{";for(var r in t)nw.e$.call(t,r)&&(n+=" ".concat(r,": ").concat(t[r].show(e[r]),","));return n.length>1&&(n=n.slice(0,-1)+" "),n+="}"}}},I5=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return{show:function(e){return"[".concat(e.map(function(e,n){return t[n].show(e)}).join(", "),"]")}}},I4=I5,I9=I3,I6={show:function(t){return JSON.stringify(t)}},St={show:function(t){return JSON.stringify(t)}},Se={show:function(t){return JSON.stringify(t)}};function Sn(t){return function(e){return function(n){return t.of([e,n])}}}function Sr(t){return function(e){return function(n){return function(r){return t.map(n(r),function(t){var n=t[0],r=t[1];return[e(n),r]})}}}}function Si(t){return function(e){return function(n){return function(r){return t.chain(n(r),function(n){var r=n[0],i=n[1];return t.map(e(i),function(t){var e=t[0],n=t[1];return[r(e),n]})})}}}}function Su(t){var e=So(t);return function(t){return function(n){return e(n,t)}}}function So(t){return function(e,n){return function(r){return t.chain(e(r),function(t){var e=t[0],r=t[1];return n(e)(r)})}}}function Sa(t){return function(e){return function(n){return t.of(e(n))}}}function Sc(t){return function(e){return function(n){return t.map(e,function(t){return[t,n]})}}}function Sf(t){return function(e){return function(n){return t.map(n(e),function(t){return t[0]})}}}function Sl(t){return function(e){return function(n){return t.map(n(e),bC)}}}function Ss(t){var e=Si(t),n=Sr(t),r=Su(t),i=Sf(t),u=Sl(t);return{map:function(t,e){return(0,t7.pipe)(t,n(e))},ap:function(t,n){return(0,t7.pipe)(t,e(n))},of:Sn(t),chain:function(t,e){return(0,t7.pipe)(t,r(e))},get:function(){return function(e){return t.of([e,e])}},put:function(e){return function(){return t.of([void 0,e])}},modify:function(e){return function(n){return t.of([void 0,e(n)])}},gets:function(e){return function(n){return t.of([e(n),n])}},fromState:Sa(t),fromM:Sc(t),evalState:function(t,e){return(0,t7.pipe)(t,i(e))},execState:function(t,e){return(0,t7.pipe)(t,u(e))}}}var Sp=function(t){return function(){return gO(t)}},Sd=Sn(yC);function Sh(t){return Sk(gE(t))}function Sm(t){return Sk(gk(t))}function Sv(t){return Sk(gC(t))}function Sg(t){return Sk(gP(t))}function Sy(t){return Sk(gF(t))}function S_(t){return Sk(gN(t))}var Sb=function(t){return(0,t7.flow)(t,gM)},ST=function(t){return function(e){return gO(t(e)[0])}},SI=eC.match(function(t){return Sp(t)},Sd),SS=Sv,Sx=Sy,Sw=Sh,SR=Sa(yC),SO=function(t){return Sk(gR(t))},SM=function(t){return Sk(gY(t))},SE=function(t){return Sk(gK(t))},Sk=Sc(yO),SC=function(t){return function(e){return(0,t7.flow)(e,nM(t))}},SP=function(t){return function(e){return function(n){return t(n)(e)(n)}}},SW=SP,SD=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return SM(t.apply(void 0,e))}},SF=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return SO(t.apply(void 0,e))}},SN=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sk(t.apply(void 0,e))}},SA=function(t){return function(e){return SX(e,SN(t))}},SL=SA,SU=function(t,e){return(0,t7.pipe)(t,SK(e))},Sj=function(t,e){return(0,t7.pipe)(t,SV(e))},Sq=function(t,e){return function(n){return(0,t7.pipe)(t(n),y_(function(){return e()(n)}))}},SB=function(t,e,n){return function(r){return(0,t7.pipe)(t(r),yl(e,function(t){var e=t[0],r=t[1];return[n(e),r]}))}},SY=function(t,e){return function(n){return(0,t7.pipe)(t(n),yp(e))}},SK=Sr(yO),SG=function(t,e){return function(n){return SB(n,t,e)}},Sz=function(t){return function(e){return SY(e,t)}},SV=Si(yj),SH=SV,SZ=Sd,S$={fromEither:SI},SX=(0,t7.dual)(2,So(yq)),SJ={flatMap:SX},SQ=(0,t7.dual)(2,function(t,e){return SX(t,function(t){return SF(e)(t)})}),S0=nw.we({fromIO:Sx},SJ),S1=nw.D9({fromTask:Sw},SJ),S8=nw.on({fromReader:SS},SJ),S2=(0,t7.dual)(2,function(t,e){return SX(t,function(t){return SD(e)(t)})}),S7=(0,t7.dual)(2,nw.iu(S$,SJ)),S3=nw.hU(S$,SJ),S5=(0,t7.dual)(2,function(t,e){return SX(t,function(t){return SN(e)(t)})}),S4=(0,t7.dual)(2,function(t,e){return SX(t,xT(e))}),S9=SX(t7.identity),S6=S9,xt=function(t){return function(e){return function(n){return(0,t7.pipe)(e(n),yb(function(){return t()(n)}))}}},xe=xt,xn=Sp,xr="StateReaderTaskEither",xi={URI:xr,map:SU},xu=(0,t7.dual)(2,(0,ep.as)(xi)),xo=(0,ep.asUnit)(xi),xa=(0,ep.flap)(xi),xc={URI:xr,of:SZ},xf={URI:xr,map:SU,ap:Sj},xl=(0,tj.apFirst)(xf),xs=xl,xp=(0,tj.apSecond)(xf),xd=xp,xh={URI:xr,map:SU,ap:Sj,of:SZ},xm={URI:xr,map:SU,ap:Sj,chain:SX},xv={URI:xr,fromState:SR},xg=ii(xv),xy=iu(xv),x_=io(xv),xb=ia(xv),xT=ic(xv),xI=il(xv,xm),xS={URI:xr,map:SU,ap:Sj,of:SZ,chain:SX},xx={URI:xr,map:SU,ap:Sj,of:SZ,chain:SX,fromIO:Sx},xw={URI:xr,map:SU,ap:Sj,of:SZ,chain:SX,fromIO:Sx,fromTask:Sw},xR={URI:xr,map:SU,ap:Sj,of:SZ,chain:SX,throwError:xn},xO={URI:xr,fromEither:SI},xM={URI:xr,fromIO:Sx},xE={URI:xr,fromIO:Sx,fromTask:Sw},xk={URI:xr,fromReader:SS},xC=(0,t7.dual)(2,eo.tap(xm)),xP=(0,t7.dual)(2,(0,nb.tapEither)(xO,xm)),xW=(0,t7.dual)(2,nx(xM,xm)),xD=(0,t7.dual)(2,ih(xE,xm)),xF=(0,t7.dual)(2,rO(xk,xm)),xN={URI:xr,bimap:SB,mapLeft:SY},xA={URI:xr,map:SU,alt:Sq},xL=rI(xk),xU=rS(xk),xj=rx(xk),xq=S8,xB=S8,xY=xF,xK=xF,xG=(0,nb.fromOption)(xO),xz=(0,nb.fromOptionK)(xO),xV=(0,nb.chainOptionK)(xO,xm),xH=xV,xZ=S7,x$=S7,xX=xP,xJ=xP,xQ=(0,nb.fromPredicate)(xO),x0=(0,nb.filterOrElse)(xO,xm),x1=x0,x8=(0,nb.fromEitherK)(xO),x2=nT(xM),x7=S0,x3=xW,x5=SQ,x4=SQ,x9=S2,x6=S2,wt=is(xE),we=S1,wn=xD,wr=Sf(yO),wi=Sl(yO),wu=(0,ep.bindTo)(xi),wo=(0,ep.let)(xi),wa=eo.bind(xm),wc=wa,wf=(0,tj.apS)(xf),wl=wf,ws=function(t){return function(e){return function(n){return function(r){return function(){return nw.Gb(e).reduce(function(e,n,i){return e.then(function(u){return nw.nM(u)?e:t(i+1,n)(u.right[1])(r)().then(function(t){if(nw.nM(t))return t;var e=t.right,n=e[0],r=e[1];return u.right[0].push(n),u.right[1]=r,u})})},t(0,nw.YM(e))(n)(r)().then(eC.map(function(t){var e;return[[t[0]],t[1]]})))}}}}},wp=function(t){var e=ws(t);return function(t){return nw.Od(t)?e(t):SZ(nw.Xl)}},wd=wp,wh=function(t){return wp(function(e,n){return t(n)})},wm=wh(t7.identity),wv=SX,wg=SX,wy=xC,w_=xC,wb={URI:xr,map:SU,of:SZ,ap:Sj,chain:SX,bimap:SB,mapLeft:SY,alt:Sq,fromIO:Sx,fromTask:Sw,throwError:xn},wT={URI:xr,map:SU,of:SZ,ap:Sj,chain:SX,bimap:SB,mapLeft:SY,alt:Sq,fromIO:Sx,fromTask:Sw,throwError:xn},wI=function(t,e){return(0,t7.pipe)(t(e),yc(function(t){return t[0]}))},wS=function(t,e){return(0,t7.pipe)(t(e),yc(function(t){return t[0],t[1]}))};function wx(t,e,n){return t(e)(n)()}function ww(t){return function(e){return{peek:e.peek,pos:t}}}function wR(t){return function(e){return{peek:e.peek,pos:t(e.pos)}}}function wO(t){return function(e){return e.peek(t(e.pos))}}function wM(t){return function(e){return function(n){return t.map(e(n.pos),function(t){return n.peek(t)})}}}var wE=function(t,e){return(0,t7.pipe)(t,wD(e))},wk=function(t,e){return(0,t7.pipe)(t,wC(e))},wC=function(t){return function(e){return{peek:function(n){return t({peek:e.peek,pos:n})},pos:e.pos}}},wP=function(t){return t.peek(t.pos)},wW=wC(t7.identity),wD=function(t){return function(e){return{peek:function(n){return t(e.peek(n))},pos:e.pos}}},wF="Store",wN={URI:wF,map:wE},wA=(0,ep.flap)(wN),wL={URI:wF,map:wE,extend:wk,extract:wP},wU=wL;function wj(t,e){return function(n,r){return e.compose(t.second(r),t.first(n))}}function wq(t,e){var n=wj(t,e);return function(r,i){return e.compose(n(r,i),t.promap(e.id(),t7.identity,function(t){return[t,t]}))}}function wB(t){return wj(t,t)}function wY(t){return wq(t,t)}var wK=function(){return{concat:function(t,e){return Object.assign({},t,e)}}},wG=function(t){return function(e){var n={};for(var r in e)nw.e$.call(e,r)&&(n[r]=t[r](e[r]));return n}},wz=function(t,e){var n,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)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 o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}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=aj(p2),wH=aH(p2),wZ=pH,w$=aZ(p2),wX=function(t){return wJ(pq(t))},wJ=aB(pQ),wQ=pz(ed.fromEither),w0=a$(pQ),w1=w0,w8=aX(dt),w2=w8,w7=w8,w3=w7,w5=aJ(de),w4=w5,w9=aY(p2),w6=function(t){return function(){var e,n,r,i;return e=void 0,n=void 0,r=void 0,i=function(){return wz(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t().then(nw.G)];case 1:return[2,e.sent()];case 2:return e.sent(),[2,nw.YP];case 3:return[2]}})},new(r||(r=Promise))(function(t,u){function o(t){try{c(i.next(t))}catch(e){u(e)}}function a(t){try{c(i.throw(t))}catch(e){u(e)}}function c(e){var n;e.done?t(e.value):((n=e.value)instanceof r?n:new r(function(t){t(n)})).then(o,a)}c((i=i.apply(e,n||[])).next())})}},Rt=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return w6(function(){return t.apply(void 0,e)})}},Re=aK(p2),Rn=aG(de),Rr=az(p2),Ri=aV(de),Ru=aQ(pQ),Ro=a0(p7),Ra=wV,Rc=(0,t7.dual)(2,a8(de)),Rf={flatMap:Rc},Rl=nw.we({fromIO:wX},Rf),Rs=nw.D9({fromTask:wJ},Rf),Rp=Rc(t7.identity),Rd=a2(de),Rh=Rd,Rm=aq(p2),Rv=Rm(),Rg=em(pQ,ed.Compactable),Ry=ev(pQ,ed.Compactable,ed.Functor),R_=ne(pQ,ed.Filterable),Rb=nn(pQ,ed.Filterable),RT=nr(pQ,ed.Filterable),RI=ni(pQ,ed.Filterable),RS=function(t,e){return(0,t7.pipe)(t,Ru(e))},Rx=function(t,e){return(0,t7.pipe)(t,Ro(e))},Rw=function(t,e){return(0,t7.pipe)(t,Rd(e))},RR=function(t,e){return(0,t7.pipe)(t,R_(e))},RO=function(t,e){return(0,t7.pipe)(t,Rb(e))},RM=function(t,e){return(0,t7.pipe)(t,RT(e))},RE=function(t,e){return(0,t7.pipe)(t,RI(e))},Rk="TaskOption",RC={URI:Rk,map:RS},RP=(0,t7.dual)(2,(0,ep.as)(RC)),RW=(0,ep.asUnit)(RC),RD=(0,ep.flap)(RC),RF={URI:Rk,of:Ra},RN={URI:Rk,map:RS,ap:Rx},RA=(0,tj.apFirst)(RN),RL=(0,tj.apSecond)(RN),RU={URI:Rk,map:RS,ap:Rx,of:Ra},Rj=function(t,e){return Rc(t,function(t){return(0,t7.pipe)(e,Ru(t))})},Rq={URI:Rk,map:RS,ap:Rj},RB={URI:Rk,map:RS,ap:Rj,of:Ra},RY={URI:Rk,map:RS,ap:Rx,chain:Rc},RK={URI:Rk,fromEither:w$},RG={URI:Rk,fromIO:wX},Rz={URI:Rk,fromIO:wX,fromTask:wJ},RV=(0,t7.dual)(2,eo.tap(RY)),RH=(0,t7.dual)(2,(0,nb.tapEither)(RK,RY)),RZ=(0,t7.dual)(2,nx(RG,RY)),R$=(0,t7.dual)(2,ih(Rz,RY)),RX={URI:Rk,map:RS,alt:Rw},RJ={URI:Rk,zero:Rm},RQ=(0,a3.guard)(RJ,RF),R0={URI:Rk,map:RS,ap:Rx,of:Ra,alt:Rw,zero:Rm},R1={URI:Rk,map:RS,ap:Rx,of:Ra,chain:Rc},R8={URI:Rk,map:RS,ap:Rx,of:Ra,chain:Rc,fromIO:wX},R2={URI:Rk,map:RS,ap:Rx,of:Ra,chain:Rc,fromIO:wX,fromTask:wJ},R7={URI:Rk,compact:Rg,separate:Ry},R3={URI:Rk,map:RS,compact:Rg,separate:Ry,filter:RR,filterMap:RO,partition:RM,partitionMap:RE},R5=nT(RG),R4=Rl,R9=RZ,R6=(0,nb.fromEitherK)(RK),Ot=(0,nb.chainEitherK)(RK,RY),Oe=RH,On=is(Rz),Or=Rs,Oi=R$,Ou=Ra(nw.F4),Oo=(0,ep.bindTo)(RC),Oa=(0,ep.let)(RC),Oc=eo.bind(RY),Of=(0,tj.apS)(RN),Ol=Ra(nw.Xl),Os=function(t){return(0,t7.flow)(dI(t),pz(ed.traverseReadonlyNonEmptyArrayWithIndex(t7.SK)))},Op=function(t){var e=Os(t);return function(t){return nw.Od(t)?e(t):Ol}},Od=function(t){return function(e){return function(){return nw.Gb(e).reduce(function(e,n,r){return e.then(function(i){return nw.Wi(i)?e:t(r+1,n)().then(function(t){return nw.Wi(t)?t:(i.value.push(t.value),i)})})},t(0,nw.YM(e))().then(ed.map(nw.ri)))}}},Oh=function(t){var e=Od(t);return function(t){return nw.Od(t)?e(t):Ol}},Om=Op,Ov=function(t){return Op(function(e,n){return t(n)})},Og=Ov(t7.identity),Oy=Oh,O_=function(t){return Oh(function(e,n){return t(n)})},Ob=O_(t7.identity),OT=Rc,OI=RV,OS=function(t){return"Left"===t._tag},Ox=function(t){return"Right"===t._tag};function Ow(t){return"Both"===t._tag}function OR(t){return{_tag:"Left",left:t}}function OO(t){return{_tag:"Right",right:t}}function OM(t,e){return{_tag:"Both",left:t,right:e}}var OE=function(t,e,n){return function(r){switch(r._tag){case"Left":return t(r.left);case"Right":return e(r.right);case"Both":return n(r.left,r.right)}}},Ok=OE,OC=OE,OP=OC,OW=OC(OO,OR,function(t,e){return OM(e,t)});function OD(t,e){return{show:OC(function(e){return"left(".concat(t.show(e),")")},function(t){return"right(".concat(e.show(t),")")},function(n,r){return"both(".concat(t.show(n),", ").concat(e.show(r),")")})}}function OF(t,e){return(0,e5.fromEquals)(function(n,r){return OS(n)?OS(r)&&t.equals(n.left,r.left):Ox(n)?Ox(r)&&e.equals(n.right,r.right):Ow(r)&&t.equals(n.left,r.left)&&e.equals(n.right,r.right)})}function ON(t,e){return{concat:function(n,r){return OS(n)?OS(r)?OR(t.concat(n.left,r.left)):Ox(r)?OM(n.left,r.right):OM(t.concat(n.left,r.left),r.right):Ox(n)?OS(r)?OM(r.left,n.right):Ox(r)?OO(e.concat(n.right,r.right)):OM(r.left,e.concat(n.right,r.right)):OS(r)?OM(t.concat(n.left,r.left),n.right):Ox(r)?OM(n.left,e.concat(n.right,r.right)):OM(t.concat(n.left,r.left),e.concat(n.right,r.right))}}}var OA=function(t){return{URI:Mt,_E:void 0,map:OH,ap:function(e,n){return OS(e)?OS(n)?OR(t.concat(e.left,n.left)):Ox(n)?OR(e.left):OR(t.concat(e.left,n.left)):Ox(e)?OS(n)?OR(n.left):Ox(n)?OO(e.right(n.right)):OM(n.left,e.right(n.right)):OS(n)?OR(t.concat(e.left,n.left)):Ox(n)?OM(e.left,e.right(n.right)):OM(t.concat(e.left,n.left),e.right(n.right))}}};function OL(t){var e=OA(t);return{URI:Mt,_E:void 0,map:OH,ap:e.ap,of:O6}}function OU(t){var e=OA(t),n=function(e,n){if(OS(e))return e;if(Ox(e))return n(e.right);var r=n(e.right);return OS(r)?OR(t.concat(e.left,r.left)):Ox(r)?OM(e.left,r.right):OM(t.concat(e.left,r.left),r.right)};return{URI:Mt,_E:void 0,map:OH,ap:e.ap,chain:n}}function Oj(t){var e=OU(t);return{URI:Mt,_E:void 0,map:OH,of:O6,ap:e.ap,chain:e.chain,throwError:OR}}function Oq(t){return OS(t)?nw.G(t.left):Ox(t)?nw.YP:nw.G(t.left)}function OB(t){return OS(t)?nw.YP:(Ox(t),nw.G(t.right))}function OY(t){return function(e){return nw.Wi(e)?OR(t):OM(t,e.value)}}function OK(t){return function(e){return nw.Wi(e)?OO(t):OM(e.value,t)}}function OG(t){return OS(t)?nw.G(t.left):nw.YP}function Oz(t){return Ox(t)?nw.G(t.right):nw.YP}var OV=function(t,e){return nw.Wi(t)?nw.Wi(e)?nw.YP:nw.G(OO(e.value)):nw.Wi(e)?nw.G(OR(t.value)):nw.G(OM(t.value,e.value))},OH=function(t,e){return(0,t7.pipe)(t,O2(e))},OZ=function(t,e,n){return(0,t7.pipe)(t,O1(e,n))},O$=function(t,e){return(0,t7.pipe)(t,O8(e))},OX=function(t,e,n){return(0,t7.pipe)(t,O7(e,n))},OJ=function(t){var e=O3(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},OQ=function(t,e,n){return(0,t7.pipe)(t,O5(e,n))},O0=function(t){var e=O4(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},O1=function(t,e){return function(n){return OS(n)?OR(t(n.left)):Ox(n)?OO(e(n.right)):OM(t(n.left),e(n.right))}},O8=function(t){return function(e){return OS(e)?OR(t(e.left)):Ow(e)?OM(t(e.left),e.right):e}},O2=function(t){return function(e){return OS(e)?e:Ox(e)?OO(t(e.right)):OM(e.left,t(e.right))}},O7=function(t,e){return function(n){return OS(n)?t:e(t,n.right)}},O3=function(t){return function(e){return function(n){return OS(n)?t.empty:e(n.right)}}},O5=function(t,e){return function(n){return OS(n)?t:e(n.right,t)}},O4=function(t){return function(e){return function(n){return OS(n)?t.of(n):Ox(n)?t.map(e(n.right),OO):t.map(e(n.right),function(t){return OM(n.left,t)})}}},O9=function(t){return function(e){return OS(e)?t.of(e):Ox(e)?t.map(e.right,OO):t.map(e.right,function(t){return OM(e.left,t)})}},O6=OO,Mt="These",Me={URI:Mt,map:OH},Mn=(0,ep.flap)(Me),Mr={URI:Mt,of:O6},Mi={URI:Mt,bimap:OZ,mapLeft:O$},Mu={URI:Mt,fromThese:t7.identity},Mo={URI:Mt,reduce:OX,foldMap:OJ,reduceRight:OQ},Ma={URI:Mt,map:OH,reduce:OX,foldMap:OJ,reduceRight:OQ,traverse:O0,sequence:O9},Mc={URI:Mt,fromEither:t7.identity},Mf=(0,nb.fromPredicate)(Mc),Ml=(0,nb.fromOption)(Mc),Ms=(0,nb.fromOptionK)(Mc),Mp=function(t){return function(e){return function(n){return!OS(n)&&t.equals(e,n.right)}}},Md=function(t){return function(e){return!OS(e)&&t(e.right)}},Mh=function(t,e){return function(n){return OS(n)?[n.left,e()]:Ox(n)?[t(),n.right]:[n.left,n.right]}},Mm=function(t,e){return Mh(function(){return t},function(){return e})},Mv=O6(nw.Xl),Mg=function(t){return function(e){return function(n){var r=nw.YP,i=e(0,nw.YM(n));if(OS(i))return i;Ow(i)&&(r=nw.G(i.left));for(var u=[i.right],o=1;o<n.length;o++){var a=e(o,n[o]);if(OS(a))return a;Ow(a)&&(r=nw.Wi(r)?nw.G(a.left):nw.G(t.concat(r.value,a.left))),u.push(a.right)}return nw.Wi(r)?OO(u):OM(r.value,u)}}},My=function(t){return function(e){var n=Mg(t)(e);return function(t){return nw.Od(t)?n(t):Mv}}},M_={URI:Mt,map:OH,bimap:OZ,mapLeft:O$,reduce:OX,foldMap:OJ,reduceRight:OQ,traverse:O0,sequence:O9};function Mb(t){return(0,t7.flow)(OO,t.of)}function MT(t){return(0,t7.flow)(OR,t.of)}function MI(t){return(0,t7.flow)(OM,t.of)}function MS(t){return function(e){return t.map(e,OO)}}function Mx(t){return function(e){return t.map(e,OR)}}function Mw(t){return(0,ep.map)(t,Me)}function MR(t,e){return(0,tj.ap)(t,OA(e))}function MO(t,e){var n=MT(t);return function(r){return function(i){return t.chain(i,OC(n,r,function(n,i){return t.map(r(i),OC(function(t){return OR(e.concat(n,t))},function(t){return OM(n,t)},function(t,r){return OM(e.concat(n,t),r)}))}))}}}function MM(t){return function(e,n){return function(r){return t.map(r,O1(e,n))}}}function ME(t){return function(e){return function(n){return t.map(n,O8(e))}}}function Mk(t){return function(e,n,r){return function(i){return t.map(i,OC(e,n,r))}}}function MC(t){return function(e,n,r){return function(i){return t.chain(i,OC(e,n,r))}}}function MP(t){return function(e){return t.map(e,OW)}}function MW(t){return function(e,n){return function(r){return t.map(r,Mh(e,n))}}}function MD(t){var e=Mw(t),n=MM(t),r=ME(t),i=MC(t),u=MW(t),o=Mb(t),a=function(t,n){return(0,t7.pipe)(t,e(n))};return{map:a,bimap:function(t,e,r){return(0,t7.pipe)(t,n(e,r))},mapLeft:function(t,e){return(0,t7.pipe)(t,r(e))},fold:function(t,e,n,r){return(0,t7.pipe)(t,i(e,n,r))},swap:MP(t),rightM:MS(t),leftM:Mx(t),left:MT(t),right:Mb(t),both:MI(t),toTuple:function(t,e,n){return(0,t7.pipe)(t,u(function(){return e},function(){return n}))},getMonad:function(e){var n=MR(t,e),r=MO(t,e);return{_E:void 0,map:a,of:o,ap:function(t,e){return(0,t7.pipe)(t,n(e))},chain:function(t,e){return(0,t7.pipe)(t,r(e))}}}}}var MF=MT(p2),MN=Mb(p2),MA=MI(p2),ML=MS(pQ),MU=Mx(pQ),Mj=(0,t7.flow)(pq,ML),Mq=(0,t7.flow)(pq,MU),MB=pH,MY=pH,MK=Mj,MG=pq,Mz=ML,MV=Mk(pQ),MH=MV,MZ=MC(de),M$=MZ,MX=M$,MJ=MX,MQ=MP(pQ),M0=function(t,e){return(0,t7.pipe)(t,M2(e))},M1=function(t,e,n){return(0,t7.pipe)(t,M7(e,n))},M8=function(t,e){return(0,t7.pipe)(t,M3(e))},M2=Mw(pQ),M7=MM(pQ),M3=ME(pQ),M5=MN,M4="TaskThese",M9=function(t,e){var n=MR(t,e);return{URI:M4,_E:void 0,map:M0,ap:function(t,e){return(0,t7.pipe)(t,n(e))}}};function M6(t,e){var n=M9(t,e).ap;return{URI:M4,_E:void 0,map:M0,ap:n,of:M5}}function Et(t){var e=M9(p4,t),n=MO(de,t);return{URI:M4,_E:void 0,map:M0,ap:e.ap,chain:function(t,e){return(0,t7.pipe)(t,n(e))}}}function Ee(t){var e=M6(p4,t),n=Et(t);return{URI:M4,_E:void 0,map:M0,ap:e.ap,of:M5,chain:n.chain,fromIO:MK,fromTask:Mz}}var En={URI:M4,map:M0},Er=(0,ep.flap)(En),Ei={URI:M4,of:M5},Eu={URI:M4,bimap:M1,mapLeft:M8},Eo={URI:M4,fromEither:MB},Ea=(0,nb.fromOption)(Eo),Ec=(0,nb.fromOptionK)(Eo),Ef=(0,nb.fromPredicate)(Eo),El={URI:M4,fromThese:MY},Es=im(El),Ep={URI:M4,fromIO:MK},Ed=nT(Ep),Eh={URI:M4,fromIO:MK,fromTask:Mz},Em=is(Eh),Ev=MW(pQ),Eg=M5(nw.Xl),Ey=function(t){var e=Mg(t);return function(t){return(0,t7.flow)(dI(t),pz(e(t7.SK)))}},E_=function(t){return function(e){var n=Ey(t)(e);return function(t){return nw.Od(t)?n(t):Eg}}},Eb=function(t){return function(e){return function(n){return function(){return nw.Gb(n).reduce(function(n,r,i){return n.then(function(u){return OS(u)?n:e(i+1,r)().then(function(e){if(OS(e))return e;if(Ow(e)){var n=u.right;return n.push(e.right),Ow(u)?OM(t.concat(u.left,e.left),n):OM(e.left,n)}return u.right.push(e.right),u})})},e(0,nw.YM(n))().then(O2(nw.ri)))}}}},ET=function(t){return function(e){var n=Eb(t)(e);return function(t){return nw.Od(t)?n(t):Eg}}},EI={URI:M4,map:M0},ES={URI:M4,bimap:M1,mapLeft:M8},Ex=function(t,e){return Ev(function(){return t},function(){return e})},Ew={URI:M4,map:M0,bimap:M1,mapLeft:M8},ER=function(t,e){return(0,tj.getApplySemigroup)(p9)(ON(t,e))};function EO(t,e){return function(n){return n(e(n(t.empty)))}}function EM(t){return function(e){return[t(e),e]}}function EE(t){return function(e){return function(n){return[e(n),t(n)]}}}function Ek(t){return function(e){return function(n){return e(t(n))}}}function EC(t){return{URI:ED,_E:void 0,map:EP,extend:function(e,n){return function(r){return n(function(n){return e(t.concat(r,n))})}},extract:function(e){return e(t.empty)}}}var EP=function(t,e){return(0,t7.pipe)(t,EW(e))},EW=function(t){return function(e){return function(n){return t(e(n))}}},ED="Traced",EF={URI:ED,map:EP},EN=(0,ep.flap)(EF),EA=EF;function EL(t,e){return function(n){var r=t.traverse(n),i=e.traverse(n);return function(t){return function(e){return r(e,function(e){return i(e,t)})}}}}function EU(t,e){return function(n){var r=t.sequence(n),i=e.sequence(n);return function(e){return r(t.map(e,i))}}}function Ej(t,e){var n=(0,ep.getFunctorComposition)(t,e).map,r=nm(t,e),i=EL(t,e),u=EU(t,e);return{map:n,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(t){var e=i(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},sequence:function(t){var e=u(t);return function(t){return(0,t7.pipe)(t,e)}}}}function Eq(t,e){return void 0===e&&(e=[]),{value:t,forest:e}}function EB(t){var e=function(n){return tK.isEmpty(n.forest)?"make(".concat(t.show(n.value),")"):"make(".concat(t.show(n.value),", [").concat(n.forest.map(e).join(", "),"])")};return{show:e}}function EY(t){var e,n=(0,e5.fromEquals)(function(n,r){return t.equals(n.value,r.value)&&e.equals(n.forest,r.forest)});return e=tK.getEq(n),n}var EK=function(t,e){for(var n,r="",i=e.length,u=0;u<i;u++){n=e[u];var o=u===i-1;r+=t+(o?"└":"├")+"─ "+n.value,r+=EK(t+(i>1&&!o?"│ ":" "),n.forest)}return r};function EG(t){return EK("\n",t)}function Ez(t){return t.value+EG(t.forest)}function EV(t,e){var n,r=e(t);return{value:r[0],forest:EH(r[1],e)}}function EH(t,e){return t.map(function(t){return EV(t,e)})}function EZ(t){var e=E$(t);return function(n,r){return t.chain(r(n),function(n){var i=n[0],u=n[1];return t.map(e(u,r),function(t){return{value:i,forest:t}})})}}function E$(t){var e=tK.traverse(t);return function(n,r){return(0,t7.pipe)(n,e(function(e){return EZ(t)(e,r)}))}}function EX(t){var e=function(n){return t(n.value,n.forest.map(e))};return e}var EJ=function(t,e){return(0,t7.pipe)(t,kt(e))},EQ=function(t,e){return E5(t,function(t){return(0,t7.pipe)(e,kt(t))})},E0=function(t,e,n){return(0,t7.pipe)(t,ke(e,n))},E1=function(t){var e=kn(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},E8=function(t,e,n){return(0,t7.pipe)(t,kr(e,n))},E2=function(t,e){return(0,t7.pipe)(t,E4(e))},E7=function(t){var e=ku(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},E3=function(t){return function(e){return EQ(e,t)}},E5=(0,t7.dual)(2,function(t,e){var n=e(t.value),r=n.value,i=n.forest;return{value:r,forest:(0,tK.getMonoid().concat)(i,t.forest.map(E5(e)))}}),E4=function(t){return function(e){return{value:t(e),forest:e.forest.map(E4(t))}}},E9=E4(t7.identity),E6=E5(t7.identity),kt=function(t){return function(e){return{value:t(e.value),forest:e.forest.map(kt(t))}}},ke=function(t,e){return function(n){for(var r=e(t,n.value),i=n.forest.length,u=0;u<i;u++)r=(0,t7.pipe)(n.forest[u],ke(r,e));return r}},kn=function(t){return function(e){return ke(t.empty,function(n,r){return t.concat(n,e(r))})}},kr=function(t,e){return function(n){for(var r=t,i=n.forest.length,u=i-1;u>=0;u--)r=(0,t7.pipe)(n.forest[u],kr(r,e));return e(n.value,r)}},ki=function(t){return t.value},ku=function(t){var e=tK.traverse(t),n=function(r){return function(i){return t.ap(t.map(r(i.value),function(t){return function(e){return{value:t,forest:e}}}),(0,t7.pipe)(i.forest,e(n(r))))}};return n},ko=function(t){return ku(t)(t7.identity)},ka=function(t){return Eq(t)},kc="Tree",kf={URI:kc,map:EJ},kl=(0,ep.flap)(kf),ks={URI:kc,of:ka},kp={URI:kc,map:EJ,ap:EQ},kd=(0,tj.apFirst)(kp),kh=(0,tj.apSecond)(kp),km={URI:kc,map:EJ,ap:EQ,of:ka},kv={URI:kc,map:EJ,ap:EQ,chain:E5},kg={URI:kc,map:EJ,ap:EQ,of:ka,chain:E5},ky=(0,eo.chainFirst)(kv),k_={URI:kc,reduce:E0,foldMap:E1,reduceRight:E8},kb={URI:kc,map:EJ,reduce:E0,foldMap:E1,reduceRight:E8,traverse:E7,sequence:ko},kT={URI:kc,map:EJ,extend:E2,extract:ki},kI=ka(nw.F4),kS=(0,ep.bindTo)(kf),kx=(0,ep.let)(kf),kw=(0,eo.bind)(kv),kR=(0,tj.apS)(kp);function kO(t){var e=function(n,r){return t.equals(n,r.value)||r.forest.some(function(t){return e(n,t)})};return e}var kM=function(t){return function(e){return t(e.value)||e.forest.some(kM(t))}},kE=E5,kk={URI:kc,map:EJ,of:ka,ap:EQ,chain:E5,reduce:E0,foldMap:E1,reduceRight:E8,traverse:E7,sequence:ko,extract:ki,extend:E2},kC=bk,kP=bC,kW=function(t){return[kP(t),kC(t)]};function kD(t){return{URI:k4,_E:void 0,map:kq,ap:function(e,n){return[kC(e)(kC(n)),t.concat(kP(e),kP(n))]}}}var kF=function(t){return function(e){return[e,t.empty]}};function kN(t){var e=kD(t);return{URI:k4,_E:void 0,map:e.map,ap:e.ap,of:kF(t)}}function kA(t){var e=kD(t);return{URI:k4,_E:void 0,map:e.map,ap:e.ap,chain:function(e,n){var r=n(kC(e)),i=r[0],u=r[1];return[i,t.concat(kP(e),u)]}}}function kL(t){var e=kA(t);return{URI:k4,_E:void 0,map:e.map,ap:e.ap,chain:e.chain,of:kF(t)}}function kU(t){var e=function(e,n){for(var r=n(e),i=t.empty,u=kC(r);"Left"===u._tag;)i=t.concat(i,kP(r)),r=n(u.left),u=kC(r);return[u.right,t.concat(i,kP(r))]},n=kA(t);return{URI:k4,_E:void 0,map:n.map,ap:n.ap,chain:n.chain,chainRec:e}}var kj=function(t,e){return(0,t7.pipe)(t,kJ(e))},kq=function(t,e){return(0,t7.pipe)(t,k$(e))},kB=function(t,e,n){return(0,t7.pipe)(t,kZ(e,n))},kY=function(t,e){return(0,t7.pipe)(t,kX(e))},kK=function(t,e){return(0,t7.pipe)(t,kQ(e))},kG=function(t,e,n){return(0,t7.pipe)(t,k2(e,n))},kz=function(t){var e=k8(t);return function(t,n){return(0,t7.pipe)(t,e(n))}},kV=function(t,e,n){return(0,t7.pipe)(t,k7(e,n))};function kH(t){var e=k3(t);return function(t,n){return(0,t7.pipe)(t,e(n))}}var kZ=function(t,e){return function(n){return[e(kC(n)),t(kP(n))]}},k$=function(t){return function(e){return[t(kC(e)),kP(e)]}},kX=function(t){return function(e){return[kC(e),t(kP(e))]}},kJ=function(t){return function(e){return[kC(e),kP(t)]}},kQ=function(t){return function(e){return[t(e),kP(e)]}},k0=kQ(t7.identity),k1=bQ,k8=b8,k2=b1,k7=b2,k3=function(t){return function(e){return function(n){return t.map(e(kC(n)),function(t){return[t,kP(n)]})}}},k5=function(t){return function(e){return t.map(kC(e),function(t){return[t,kP(e)]})}},k4="Tuple",k9={URI:k4,map:kq},k6=(0,ep.flap)(k9),Ct={URI:k4,bimap:kB,mapLeft:kY},Ce={URI:k4,compose:kj},Cn={URI:k4,map:kq,extend:kK,extract:k1},Cr={URI:k4,reduce:kG,foldMap:kz,reduceRight:kV},Ci={URI:k4,map:kq,reduce:kG,foldMap:kz,reduceRight:kV,traverse:kH,sequence:k5},Cu=k$,Co=kX,Ca={URI:k4,compose:kj,map:kq,bimap:kB,mapLeft:kY,extract:k1,extend:kK,reduce:kG,foldMap:kz,reduceRight:kV,traverse:kH,sequence:k5};function Cc(t,e){var n=(0,tY.getApplicativeComposition)(e,eC.getApplicativeValidation(t));return{map:n.map,ap:n.ap,of:n.of,chain:function(t,n){return e.chain(t,function(t){return nw.nM(t)?e.of(nw.t$(t.left)):n(t.right)})},alt:function(n,r){return e.chain(n,function(n){return nw.tO(n)?e.of(n):e.map(r(),function(e){return nw.nM(e)?nw.t$(t.concat(n.left,e.left)):e})})}}}var Cf=Ta.constant(void 0),Cl={concat:Cf.concat,empty:void 0},Cs=function(t){return function(){return[void 0,t]}},Cp=function(t){return function(){var e=t(),n=e[0],r=e[1];return[[n,r],r]}},Cd=function(t){return function(){var e,n=t(),r=n[0],i=r[0];return[i,(0,r[1])(n[1])]}},Ch=function(t){return function(e){return function(){var n=e(),r=n[0],i=n[1];return[[r,t(i)],i]}}},Cm=function(t){return function(e){return function(){var n,r=e();return[r[0],t(r[1])]}}},Cv=function(t,e){return(0,t7.pipe)(t,Cg(e))},Cg=function(t){return function(e){return function(){var n=e(),r=n[0],i=n[1];return[t(r),i]}}},Cy="Writer",C_=function(t){return{URI:Cy,_E:void 0,of:function(e){return function(){return[e,t.empty]}}}},Cb=function(t){return{URI:Cy,_E:void 0,map:Cv,ap:function(e,n){return function(){var r=e(),i=r[0],u=r[1],o=n(),a=o[0],c=o[1];return[i(a),t.concat(u,c)]}}}},CT=function(t){var e=Cb(t),n=C_(t);return{URI:Cy,_E:void 0,map:Cv,ap:e.ap,of:n.of}};function CI(t){var e=Cb(t);return{URI:Cy,_E:void 0,map:Cv,ap:e.ap,chain:function(e,n){return function(){var r=e(),i=r[0],u=r[1],o=n(i)(),a=o[0],c=o[1];return[a,t.concat(u,c)]}}}}function CS(t){var e=CT(t),n=CI(t);return{URI:Cy,_E:void 0,map:Cv,ap:e.ap,of:e.of,chain:n.chain}}var Cx={URI:Cy,map:Cv},Cw=(0,ep.flap)(Cx),CR=function(t){return t()[0]},CO=function(t){return t()[1]},CM=function(t){return t()[0]},CE=function(t){return t()[1]},Ck=Cx;function CC(t){var e=function(e,n){return function(){return t.map(e(),function(t){var e=t[0],r=t[1];return[n(e),r]})}};return{map:e,evalWriter:function(e){return t.map(e(),function(t){return t[0]})},execWriter:function(e){return t.map(e(),function(t){return t[0],t[1]})},tell:function(e){return function(){return t.of([void 0,e])}},listen:function(e){return function(){return t.map(e(),function(t){var e=t[0],n=t[1];return[[e,n],n]})}},pass:function(e){return function(){return t.map(e(),function(t){var e,n=t[0],r=n[0];return[r,(0,n[1])(t[1])]})}},listens:function(e,n){return function(){return t.map(e(),function(t){var e=t[0],r=t[1];return[[e,n(r)],r]})}},censor:function(e,n){return function(){return t.map(e(),function(t){var e;return[t[0],n(t[1])]})}},getMonad:function(n){return{_E:void 0,map:e,of:function(e){return function(){return t.of([e,n.empty])}},ap:function(e,r){return function(){return t.chain(e(),function(e){var i=e[0],u=e[1];return t.map(r(),function(t){var e=t[0],r=t[1];return[i(e),n.concat(u,r)]})})}},chain:function(e,r){return function(){return t.chain(e(),function(e){var i=e[0],u=e[1];return t.map(r(i)(),function(t){var e=t[0],r=t[1];return[e,n.concat(u,r)]})})}}}}}}},97963:function(t,e,n){"use strict";n.d(e,{D9:function(){return M},F2:function(){return p},F4:function(){return _},G:function(){return c},Gb:function(){return v},Od:function(){return h},WE:function(){return S},Wi:function(){return u},Xl:function(){return y},YM:function(){return m},YP:function(){return a},e$:function(){return b},hU:function(){return w},iu:function(){return R},nM:function(){return f},ny:function(){return x},on:function(){return E},pC:function(){return o},r1:function(){return T},ri:function(){return d},t$:function(){return s},tO:function(){return l},uL:function(){return I},we:function(){return O}});var r=n(42275),i=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},u=function(t){return"None"===t._tag},o=function(t){return"Some"===t._tag},a={_tag:"None"},c=function(t){return{_tag:"Some",value:t}},f=function(t){return"Left"===t._tag},l=function(t){return"Right"===t._tag},s=function(t){return{_tag:"Left",left:t}},p=function(t){return{_tag:"Right",right:t}},d=function(t){return[t]},h=function(t){return t.length>0},m=function(t){return t[0]},v=function(t){return t.slice(1)},y=[],_={},b=Object.prototype.hasOwnProperty,T=function(t){return i([t[0]],t.slice(1),!0)},I=function(t){return function(e,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var u=e.apply(void 0,r);return t.fromEither(null==u?s(n.apply(void 0,r)):p(u))}}},S=function(t){return function(e,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e.apply(void 0,r);return t.fromEither(u(o)?s(n.apply(void 0,r)):p(o.value))}}},x=function(t,e){return(0,r.dual)(3,function(n,r,i){return e.flatMap(n,I(t)(r,i))})},w=function(t,e){return(0,r.dual)(3,function(n,r,i){return e.flatMap(n,S(t)(r,i))})},R=function(t,e){return(0,r.dual)(2,function(n,r){return e.flatMap(n,function(e){return t.fromEither(r(e))})})},O=function(t,e){return(0,r.dual)(2,function(n,r){return e.flatMap(n,function(e){return t.fromIO(r(e))})})},M=function(t,e){return(0,r.dual)(2,function(n,r){return e.flatMap(n,function(e){return t.fromTask(r(e))})})},E=function(t,e){return(0,r.dual)(2,function(n,r){return e.flatMap(n,function(e){return t.fromReader(r(e))})})}},76627:function(t,e,n){"use strict";n.r(e),n.d(e,{Bounded:function(){return o},Eq:function(){return i},Field:function(){return d},MagmaSub:function(){return c},MonoidProduct:function(){return p},MonoidSum:function(){return s},Ord:function(){return u},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return a},isNumber:function(){return r}});var r=function(t){return"number"==typeof t},i={equals:function(t,e){return t===e}},u={equals:i.equals,compare:function(t,e){return t<e?-1:t>e?1:0}},o={equals:i.equals,compare:u.compare,top:1/0,bottom:-1/0},a={show:function(t){return JSON.stringify(t)}},c={concat:function(t,e){return t-e}},f={concat:function(t,e){return t+e}},l={concat:function(t,e){return t*e}},s={concat:f.concat,empty:0},p={concat:l.concat,empty:1},d={add:f.concat,zero:0,mul:l.concat,one:1,sub:c.concat,degree:function(t){return 1},div:function(t,e){return t/e},mod:function(t,e){return t%e}}},18896:function(t,e,n){"use strict";n.r(e),n.d(e,{alt:function(){return T},ap:function(){return f},bimap:function(){return s},chain:function(){return l},compose:function(){return C},contramap:function(){return a},extend:function(){return d},filter:function(){return I},filterMap:function(){return S},filterMapWithIndex:function(){return O},filterWithIndex:function(){return R},foldMap:function(){return m},foldMapWithIndex:function(){return _},map:function(){return o},mapLeft:function(){return p},mapWithIndex:function(){return c},partition:function(){return x},partitionMap:function(){return w},partitionMapWithIndex:function(){return E},partitionWithIndex:function(){return M},pipe:function(){return W},pipeable:function(){return P},promap:function(){return k},reduce:function(){return h},reduceRight:function(){return v},reduceRightWithIndex:function(){return b},reduceWithIndex:function(){return y}});var r=n(42925),i=n(88543),u=n(42275);function o(t){return function(e){return function(n){return t.map(n,e)}}}function a(t){return function(e){return function(n){return t.contramap(n,e)}}}function c(t){return function(e){return function(n){return t.mapWithIndex(n,e)}}}function f(t){return function(e){return function(n){return t.ap(n,e)}}}function l(t){return function(e){return function(n){return t.chain(n,e)}}}function s(t){return function(e,n){return function(r){return t.bimap(r,e,n)}}}function p(t){return function(e){return function(n){return t.mapLeft(n,e)}}}function d(t){return function(e){return function(n){return t.extend(n,e)}}}function h(t){return function(e,n){return function(r){return t.reduce(r,e,n)}}}function m(t){return function(e){var n=t.foldMap(e);return function(t){return function(e){return n(e,t)}}}}function v(t){return function(e,n){return function(r){return t.reduceRight(r,e,n)}}}function y(t){return function(e,n){return function(r){return t.reduceWithIndex(r,e,n)}}}function _(t){return function(e){var n=t.foldMapWithIndex(e);return function(t){return function(e){return n(e,t)}}}}function b(t){return function(e,n){return function(r){return t.reduceRightWithIndex(r,e,n)}}}function T(t){return function(e){return function(n){return t.alt(n,e)}}}function I(t){return function(e){return function(n){return t.filter(n,e)}}}function S(t){return function(e){return function(n){return t.filterMap(n,e)}}}function x(t){return function(e){return function(n){return t.partition(n,e)}}}function w(t){return function(e){return function(n){return t.partitionMap(n,e)}}}function R(t){return function(e){return function(n){return t.filterWithIndex(n,e)}}}function O(t){return function(e){return function(n){return t.filterMapWithIndex(n,e)}}}function M(t){return function(e){return function(n){return t.partitionWithIndex(n,e)}}}function E(t){return function(e){return function(n){return t.partitionMapWithIndex(n,e)}}}function k(t){return function(e,n){return function(r){return t.promap(r,e,n)}}}function C(t){return function(e){return function(n){return t.compose(n,e)}}}function P(t){var e,n,P,W,D,F,N,A,L,U,j,q,B,Y,K,G,z={};if("function"==typeof t.map&&(z.map=o(t)),"function"==typeof t.contramap&&(z.contramap=a(t)),"function"==typeof t.mapWithIndex&&(z.mapWithIndex=c(t)),"function"==typeof t.ap&&(z.ap=f(t),z.apFirst=(0,r.apFirst)(t),z.apSecond=(0,r.apSecond)(t)),"function"==typeof t.chain&&(z.chain=l(t),z.chainFirst=(0,i.chainFirst)(t),z.flatten=z.chain(u.identity)),"function"==typeof t.bimap&&(z.bimap=s(t),z.mapLeft=p(t)),"function"==typeof t.extend&&(z.extend=d(t),z.duplicate=z.extend(u.identity)),"function"==typeof t.reduce&&(z.reduce=h(t),z.foldMap=m(t),z.reduceRight=v(t)),"function"==typeof t.reduceWithIndex&&(z.reduceWithIndex=y(t),z.foldMapWithIndex=_(t),z.reduceRightWithIndex=b(t)),"function"==typeof t.alt&&(z.alt=T(t)),"function"==typeof t.compact&&(z.compact=t.compact,z.separate=t.separate),"function"==typeof t.filter&&(z.filter=I(t),z.filterMap=S(t),z.partition=x(t),z.partitionMap=w(t)),"function"==typeof t.filterWithIndex&&(z.filterWithIndex=R(t),z.filterMapWithIndex=O(t),z.partitionWithIndex=M(t),z.partitionMapWithIndex=E(t)),"function"==typeof t.promap&&(z.promap=k(t)),"function"==typeof t.compose&&(z.compose=C(t)),"function"==typeof t.throwError){var V=function(e){return function(n){return"None"===n._tag?t.throwError(e()):t.of(n.value)}},H=function(e){return"Left"===e._tag?t.throwError(e.left):t.of(e.right)},Z=function(e,n){return function(r){return e(r)?t.of(r):t.throwError(n(r))}},$=function(e,n){return function(r){return t.chain(r,function(r){return e(r)?t.of(r):t.throwError(n(r))})}};z.fromOption=V,z.fromEither=H,z.fromPredicate=Z,z.filterOrElse=$}return z}var W=u.pipe},57029:function(t,e,n){"use strict";n.r(e),n.d(e,{Eq:function(){return i},Monoid:function(){return a},Ord:function(){return c},Semigroup:function(){return u},Show:function(){return f},empty:function(){return o},endsWith:function(){return x},includes:function(){return I},isEmpty:function(){return _},isString:function(){return l},replace:function(){return d},size:function(){return b},slice:function(){return y},split:function(){return T},startsWith:function(){return S},toLowerCase:function(){return p},toUpperCase:function(){return s},trim:function(){return h},trimLeft:function(){return m},trimRight:function(){return v}});var r=n(28350),i={equals:function(t,e){return t===e}},u={concat:function(t,e){return t+e}},o="",a={concat:u.concat,empty:o},c={equals:i.equals,compare:function(t,e){return t<e?-1:t>e?1:0}},f={show:function(t){return JSON.stringify(t)}},l=function(t){return"string"==typeof t},s=function(t){return t.toUpperCase()},p=function(t){return t.toLowerCase()},d=function(t,e){return function(n){return n.replace(t,e)}},h=function(t){return t.trim()},m=function(t){return t.trimLeft()},v=function(t){return t.trimRight()},y=function(t,e){return function(n){return n.slice(t,e)}},_=function(t){return 0===t.length},b=function(t){return t.length},T=function(t){return function(e){var n=e.split(t);return(0,r.isNonEmpty)(n)?n:[e]}},I=function(t,e){return function(n){return n.includes(t,e)}},S=function(t,e){return function(n){return n.startsWith(t,e)}},x=function(t,e){return function(n){return n.endsWith(t,e)}}},91756:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getApplicativeComposition=e.getApplicativeMonoid=void 0;var r=n(93145),i=n(14632),u=n(8762);e.getApplicativeMonoid=function(t){var e=(0,r.getApplySemigroup)(t);return function(n){return{concat:e(n).concat,empty:t.of(n.empty)}}},e.getApplicativeComposition=function(t,e){var n=(0,u.getFunctorComposition)(t,e).map,o=(0,r.ap)(t,e);return{map:n,of:function(n){return t.of(e.of(n))},ap:function(t,e){return(0,i.pipe)(t,o(e))}}}},93145:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.sequenceS=e.sequenceT=e.getApplySemigroup=e.apS=e.apSecond=e.apFirst=e.ap=void 0;var o=n(14632),a=u(n(5309));function c(t,e,n){return function(r){for(var i=Array(n.length+1),u=0;u<n.length;u++)i[u]=n[u];return i[n.length]=r,0===e?t.apply(null,i):c(t,e-1,i)}}e.ap=function(t,e){return function(n){return function(r){return t.ap(t.map(r,function(t){return function(n){return e.ap(t,n)}}),n)}}},e.apFirst=function(t){return function(e){return function(n){return t.ap(t.map(n,function(t){return function(){return t}}),e)}}},e.apSecond=function(t){return function(e){return function(n){return t.ap(t.map(n,function(){return function(t){return t}}),e)}}},e.apS=function(t){return function(e,n){return function(r){return t.ap(t.map(r,function(t){return function(n){var r;return Object.assign({},t,((r={})[e]=n,r))}}),n)}}},e.getApplySemigroup=function(t){return function(e){return{concat:function(n,r){return t.ap(t.map(n,function(t){return function(n){return e.concat(t,n)}}),r)}}}};var f={1:function(t){return[t]},2:function(t){return function(e){return[t,e]}},3:function(t){return function(e){return function(n){return[t,e,n]}}},4:function(t){return function(e){return function(n){return function(r){return[t,e,n,r]}}}},5:function(t){return function(e){return function(n){return function(r){return function(i){return[t,e,n,r,i]}}}}}};e.sequenceT=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r,i=e.length,u=(a.has.call(f,i)||(f[i]=c(o.tuple,i-1,[])),f[i]),l=t.map(e[0],u),s=1;s<i;s++)l=t.ap(l,e[s]);return l}},e.sequenceS=function(t){return function(e){for(var n=Object.keys(e),r=n.length,i=function(t){var e=t.length;switch(e){case 1:return function(e){var n;return(n={})[t[0]]=e,n};case 2:return function(e){return function(n){var r;return(r={})[t[0]]=e,r[t[1]]=n,r}};case 3:return function(e){return function(n){return function(r){var i;return(i={})[t[0]]=e,i[t[1]]=n,i[t[2]]=r,i}}};case 4:return function(e){return function(n){return function(r){return function(i){var u;return(u={})[t[0]]=e,u[t[1]]=n,u[t[2]]=r,u[t[3]]=i,u}}}};case 5:return function(e){return function(n){return function(r){return function(i){return function(u){var o;return(o={})[t[0]]=e,o[t[1]]=n,o[t[2]]=r,o[t[3]]=i,o[t[4]]=u,o}}}}};default:return c(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},u=0;u<e;u++)i[t[u]]=n[u];return i},e-1,[])}}(n),u=t.map(e[n[0]],i),o=1;o<r;o++)u=t.ap(u,e[n[o]]);return u}}},92425:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.lefts=e.rights=e.reverse=e.modifyAt=e.deleteAt=e.updateAt=e.insertAt=e.copy=e.findLastIndex=e.findLastMap=e.findLast=e.findFirstMap=e.findFirst=e.findIndex=e.dropLeftWhile=e.dropRight=e.dropLeft=e.spanLeft=e.takeLeftWhile=e.takeRight=e.takeLeft=e.init=e.tail=e.last=e.head=e.lookup=e.isOutOfBound=e.size=e.scanRight=e.scanLeft=e.chainWithIndex=e.foldRight=e.matchRight=e.matchRightW=e.foldLeft=e.matchLeft=e.matchLeftW=e.match=e.matchW=e.fromEither=e.fromOption=e.fromPredicate=e.replicate=e.makeBy=e.appendW=e.append=e.prependW=e.prepend=e.isNonEmpty=e.isEmpty=void 0,e.traverseWithIndex=e.sequence=e.traverse=e.reduceRightWithIndex=e.reduceRight=e.reduceWithIndex=e.reduce=e.foldMapWithIndex=e.foldMap=e.duplicate=e.extend=e.filterWithIndex=e.alt=e.altW=e.partitionMapWithIndex=e.partitionMap=e.partitionWithIndex=e.partition=e.filter=e.separate=e.compact=e.filterMap=e.filterMapWithIndex=e.mapWithIndex=e.flatten=e.flatMap=e.ap=e.map=e.zero=e.of=e.difference=e.intersection=e.union=e.concat=e.concatW=e.comprehension=e.fromOptionK=e.chunksOf=e.splitAt=e.chop=e.sortBy=e.uniq=e.elem=e.rotate=e.intersperse=e.prependAll=e.unzip=e.zip=e.zipWith=e.sort=void 0,e.some=e.every=e.unsafeDeleteAt=e.unsafeUpdateAt=e.unsafeInsertAt=e.fromEitherK=e.FromEither=e.filterE=e.ChainRecBreadthFirst=e.chainRecBreadthFirst=e.ChainRecDepthFirst=e.chainRecDepthFirst=e.Witherable=e.TraversableWithIndex=e.Traversable=e.FoldableWithIndex=e.Foldable=e.FilterableWithIndex=e.Filterable=e.Compactable=e.Extend=e.Alternative=e.guard=e.Zero=e.Alt=e.Unfoldable=e.Monad=e.chainFirst=e.Chain=e.Applicative=e.apSecond=e.apFirst=e.Apply=e.FunctorWithIndex=e.Pointed=e.flap=e.Functor=e.getDifferenceMagma=e.getIntersectionSemigroup=e.getUnionMonoid=e.getUnionSemigroup=e.getOrd=e.getEq=e.getMonoid=e.getSemigroup=e.getShow=e.URI=e.unfold=e.wilt=e.wither=void 0,e.array=e.prependToAll=e.snoc=e.cons=e.empty=e.range=e.chain=e.apS=e.bind=e.let=e.bindTo=e.Do=e.intercalate=e.exists=void 0;var o=n(93145),a=n(18222),c=n(57756),f=n(14632),l=n(8762),s=u(n(5309)),p=u(n(7219)),d=u(n(78703)),h=n(4773),m=n(69706),v=n(3899),y=function(t){return 0===t.length};e.isEmpty=y,e.isNonEmpty=p.isNonEmpty,e.prepend=p.prepend,e.prependW=p.prependW,e.append=p.append,e.appendW=p.appendW;var _=function(t,e){return t<=0?[]:p.makeBy(e)(t)};e.makeBy=_;var b=function(t,n){return(0,e.makeBy)(t,function(){return n})};e.replicate=b,e.fromPredicate=function(t){return function(e){return t(e)?[e]:[]}};var T=function(t){return s.isNone(t)?[]:[t.value]};e.fromOption=T;var I=function(t){return s.isLeft(t)?[]:[t.right]};e.fromEither=I;var S=function(t,n){return function(r){return(0,e.isNonEmpty)(r)?n(r):t()}};e.matchW=S,e.match=e.matchW;var x=function(t,n){return function(r){return(0,e.isNonEmpty)(r)?n(p.head(r),p.tail(r)):t()}};e.matchLeftW=x,e.matchLeft=e.matchLeftW,e.foldLeft=e.matchLeft;var w=function(t,n){return function(r){return(0,e.isNonEmpty)(r)?n(p.init(r),p.last(r)):t()}};e.matchRightW=w,e.matchRight=e.matchRightW,e.foldRight=e.matchRight;var R=function(t){return function(e){for(var n=[],r=0;r<e.length;r++)n.push.apply(n,t(r,e[r]));return n}};e.chainWithIndex=R;var O=function(t,e){return function(n){var r=n.length,i=Array(r+1);i[0]=t;for(var u=0;u<r;u++)i[u+1]=e(i[u],n[u]);return i}};e.scanLeft=O;var M=function(t,e){return function(n){var r=n.length,i=Array(r+1);i[r]=t;for(var u=r-1;u>=0;u--)i[u]=e(n[u],i[u+1]);return i}};e.scanRight=M;var E=function(t){return t.length};e.size=E,e.isOutOfBound=p.isOutOfBound,e.lookup=d.lookup,e.head=d.head,e.last=d.last;var k=function(t){return(0,e.isNonEmpty)(t)?s.some(p.tail(t)):s.none};e.tail=k;var C=function(t){return(0,e.isNonEmpty)(t)?s.some(p.init(t)):s.none};e.init=C;var P=function(t){return function(n){return(0,e.isOutOfBound)(t,n)?(0,e.copy)(n):n.slice(0,t)}};e.takeLeft=P;var W=function(t){return function(n){return(0,e.isOutOfBound)(t,n)?(0,e.copy)(n):0===t?[]:n.slice(-t)}};e.takeRight=W,e.takeLeftWhile=function(t){return function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r];if(!t(i))break;n.push(i)}return n}};var D=function(t,e){for(var n=t.length,r=0;r<n&&e(t[r]);r++);return r};e.spanLeft=function(t){return function(n){var r,i=(0,e.splitAt)(D(n,t))(n);return{init:i[0],rest:i[1]}}};var F=function(t){return function(n){return t<=0||(0,e.isEmpty)(n)?(0,e.copy)(n):t>=n.length?[]:n.slice(t,n.length)}};e.dropLeft=F;var N=function(t){return function(n){return t<=0||(0,e.isEmpty)(n)?(0,e.copy)(n):t>=n.length?[]:n.slice(0,n.length-t)}};e.dropRight=N,e.dropLeftWhile=function(t){return function(e){return e.slice(D(e,t))}},e.findIndex=d.findIndex,e.findFirst=function(t){return d.findFirst(t)},e.findFirstMap=d.findFirstMap,e.findLast=function(t){return d.findLast(t)},e.findLastMap=d.findLastMap,e.findLastIndex=d.findLastIndex;var A=function(t){return t.slice()};e.copy=A;var L=function(t,n){return function(r){return t<0||t>r.length?s.none:s.some((0,e.unsafeInsertAt)(t,n,r))}};e.insertAt=L;var U=function(t,n){return(0,e.modifyAt)(t,function(){return n})};e.updateAt=U;var j=function(t){return function(n){return(0,e.isOutOfBound)(t,n)?s.none:s.some((0,e.unsafeDeleteAt)(t,n))}};e.deleteAt=j;var q=function(t,n){return function(r){return(0,e.isOutOfBound)(t,r)?s.none:s.some((0,e.unsafeUpdateAt)(t,n(r[t]),r))}};e.modifyAt=q;var B=function(t){return(0,e.isEmpty)(t)?[]:t.slice().reverse()};e.reverse=B;var Y=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];"Right"===r._tag&&e.push(r.right)}return e};e.rights=Y;var K=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];"Left"===r._tag&&e.push(r.left)}return e};e.lefts=K;var G=function(t){return function(n){return n.length<=1?(0,e.copy)(n):n.slice().sort(t.compare)}};e.sort=G;var z=function(t,e,n){for(var r=[],i=Math.min(t.length,e.length),u=0;u<i;u++)r[u]=n(t[u],e[u]);return r};e.zipWith=z,e.zip=function t(n,r){return void 0===r?function(e){return t(e,n)}:(0,e.zipWith)(n,r,function(t,e){return[t,e]})};var V=function(t){for(var e=[],n=[],r=0;r<t.length;r++)e[r]=t[r][0],n[r]=t[r][1];return[e,n]};e.unzip=V;var H=function(t){var n=p.prependAll(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):[]}};e.prependAll=H;var Z=function(t){var n=p.intersperse(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):(0,e.copy)(t)}};e.intersperse=Z;var $=function(t){var n=p.rotate(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):(0,e.copy)(t)}};e.rotate=$,e.elem=d.elem;var X=function(t){var n=p.uniq(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):(0,e.copy)(t)}};e.uniq=X;var J=function(t){var n=p.sortBy(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):(0,e.copy)(t)}};e.sortBy=J;var Q=function(t){var n=p.chop(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):[]}};e.chop=Q;var tt=function(t){return function(n){return t>=1&&(0,e.isNonEmpty)(n)?p.splitAt(t)(n):(0,e.isEmpty)(n)?[(0,e.copy)(n),[]]:[[],(0,e.copy)(n)]}};e.splitAt=tt;var te=function(t){var n=p.chunksOf(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):[]}};e.chunksOf=te;var tn=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,e.fromOption)(t.apply(void 0,n))}};e.fromOptionK=tn,e.comprehension=function(t,n,r){void 0===r&&(r=function(){return!0});var i=function(t,u){return(0,e.isNonEmpty)(u)?(0,e.flatMap)(p.head(u),function(n){return i((0,f.pipe)(t,(0,e.append)(n)),p.tail(u))}):r.apply(void 0,t)?[n.apply(void 0,t)]:[]};return i([],t)};var tr=function(t){return function(n){return(0,e.isEmpty)(n)?(0,e.copy)(t):(0,e.isEmpty)(t)?(0,e.copy)(n):n.concat(t)}};function ti(t){var n=p.union(t);return function(r,i){if(void 0===i){var u=ti(t);return function(t){return u(t,r)}}return(0,e.isNonEmpty)(r)&&(0,e.isNonEmpty)(i)?n(i)(r):(0,e.isNonEmpty)(r)?(0,e.copy)(r):(0,e.copy)(i)}}function tu(t){var n=(0,e.elem)(t);return function(e,r){if(void 0===r){var i=tu(t);return function(t){return i(t,e)}}return e.filter(function(t){return n(t,r)})}}function to(t){var n=(0,e.elem)(t);return function(e,r){if(void 0===r){var i=to(t);return function(t){return i(t,e)}}return e.filter(function(t){return!n(t,r)})}}e.concatW=tr,e.concat=e.concatW,e.union=ti,e.intersection=tu,e.difference=to;var ta=function(t,n){return(0,f.pipe)(t,(0,e.map)(n))},tc=function(t,n){return(0,f.pipe)(t,(0,e.mapWithIndex)(n))},tf=function(t,n){return(0,f.pipe)(t,(0,e.ap)(n))},tl=function(t,n){return(0,f.pipe)(t,(0,e.filter)(n))},ts=function(t,n){return(0,f.pipe)(t,(0,e.filterMap)(n))},tp=function(t,n){return(0,f.pipe)(t,(0,e.partition)(n))},td=function(t,n){return(0,f.pipe)(t,(0,e.partitionMap)(n))},th=function(t,n){return(0,f.pipe)(t,(0,e.partitionWithIndex)(n))},tm=function(t,n){return(0,f.pipe)(t,(0,e.partitionMapWithIndex)(n))},tv=function(t,n){return(0,f.pipe)(t,(0,e.alt)(n))},tg=function(t,n,r){return(0,f.pipe)(t,(0,e.reduce)(n,r))},ty=function(t){var n=(0,e.foldMap)(t);return function(t,e){return(0,f.pipe)(t,n(e))}},t_=function(t,n,r){return(0,f.pipe)(t,(0,e.reduceRight)(n,r))},tb=function(t,n,r){return(0,f.pipe)(t,(0,e.reduceWithIndex)(n,r))},tT=function(t){var n=(0,e.foldMapWithIndex)(t);return function(t,e){return(0,f.pipe)(t,n(e))}},tI=function(t,n,r){return(0,f.pipe)(t,(0,e.reduceRightWithIndex)(n,r))},tS=function(t,n){return(0,f.pipe)(t,(0,e.filterMapWithIndex)(n))},tx=function(t,n){return(0,f.pipe)(t,(0,e.filterWithIndex)(n))},tw=function(t,n){return(0,f.pipe)(t,(0,e.extend)(n))},tR=function(t){var n=(0,e.traverse)(t);return function(t,e){return(0,f.pipe)(t,n(e))}},tO=function(t){var n=(0,e.traverseWithIndex)(t);return function(t,e){return(0,f.pipe)(t,n(e))}},tM=d._chainRecDepthFirst,tE=d._chainRecBreadthFirst;e.of=p.of;var tk=function(){return[]};e.zero=tk;var tC=function(t){return function(e){return e.map(function(e){return t(e)})}};e.map=tC;var tP=function(t){return(0,e.flatMap)(function(n){return(0,f.pipe)(t,(0,e.map)(n))})};e.ap=tP,e.flatMap=(0,f.dual)(2,function(t,n){return(0,f.pipe)(t,(0,e.chainWithIndex)(function(t,e){return n(e,t)}))}),e.flatten=(0,e.flatMap)(f.identity);var tW=function(t){return function(e){return e.map(function(e,n){return t(n,e)})}};e.mapWithIndex=tW;var tD=function(t){return function(e){for(var n=[],r=0;r<e.length;r++){var i=t(r,e[r]);s.isSome(i)&&n.push(i.value)}return n}};e.filterMapWithIndex=tD;var tF=function(t){return(0,e.filterMapWithIndex)(function(e,n){return t(n)})};e.filterMap=tF,e.compact=(0,e.filterMap)(f.identity);var tN=function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];"Left"===i._tag?e.push(i.left):n.push(i.right)}return(0,h.separated)(e,n)};e.separate=tN;var tA=function(t){return function(e){return e.filter(t)}};e.filter=tA;var tL=function(t){return(0,e.partitionWithIndex)(function(e,n){return t(n)})};e.partition=tL;var tU=function(t){return function(e){for(var n=[],r=[],i=0;i<e.length;i++){var u=e[i];t(i,u)?r.push(u):n.push(u)}return(0,h.separated)(n,r)}};e.partitionWithIndex=tU;var tj=function(t){return(0,e.partitionMapWithIndex)(function(e,n){return t(n)})};e.partitionMap=tj;var tq=function(t){return function(e){for(var n=[],r=[],i=0;i<e.length;i++){var u=t(i,e[i]);"Left"===u._tag?n.push(u.left):r.push(u.right)}return(0,h.separated)(n,r)}};e.partitionMapWithIndex=tq;var tB=function(t){return function(e){return e.concat(t())}};e.altW=tB,e.alt=e.altW;var tY=function(t){return function(e){return e.filter(function(e,n){return t(n,e)})}};e.filterWithIndex=tY;var tK=function(t){return function(e){return e.map(function(n,r){return t(e.slice(r))})}};e.extend=tK,e.duplicate=(0,e.extend)(f.identity),e.foldMap=d.foldMap,e.foldMapWithIndex=d.foldMapWithIndex,e.reduce=d.reduce,e.reduceWithIndex=d.reduceWithIndex,e.reduceRight=d.reduceRight,e.reduceRightWithIndex=d.reduceRightWithIndex;var tG=function(t){var n=(0,e.traverseWithIndex)(t);return function(t){return n(function(e,n){return t(n)})}};e.traverse=tG;var tz=function(t){return function(n){return tg(n,t.of((0,e.zero)()),function(n,r){return t.ap(t.map(n,function(t){return function(n){return(0,f.pipe)(t,(0,e.append)(n))}}),r)})}};e.sequence=tz;var tV=function(t){return function(n){return(0,e.reduceWithIndex)(t.of((0,e.zero)()),function(r,i,u){return t.ap(t.map(i,function(t){return function(n){return(0,f.pipe)(t,(0,e.append)(n))}}),n(r,u))})}};e.traverseWithIndex=tV;var tH=function(t){var e=t2(t);return function(t){return function(n){return e(n,t)}}};e.wither=tH;var tZ=function(t){var e=t7(t);return function(t){return function(n){return e(n,t)}}};e.wilt=tZ;var t$=function(t,e){for(var n=[],r=t;;){var i=e(r);if(s.isSome(i)){var u=i.value,o=u[0],a=u[1];n.push(o),r=a}else break}return n};e.unfold=t$,e.URI="Array",e.getShow=d.getShow;var tX=function(){return{concat:function(t,e){return t.concat(e)}}};e.getSemigroup=tX;var tJ=function(){return{concat:(0,e.getSemigroup)().concat,empty:[]}};e.getMonoid=tJ,e.getEq=d.getEq,e.getOrd=d.getOrd;var tQ=function(t){var e=ti(t);return{concat:function(t,n){return e(n)(t)}}};e.getUnionSemigroup=tQ;var t0=function(t){return{concat:(0,e.getUnionSemigroup)(t).concat,empty:[]}};e.getUnionMonoid=t0;var t1=function(t){var e=tu(t);return{concat:function(t,n){return e(n)(t)}}};e.getIntersectionSemigroup=t1;var t8=function(t){var e=to(t);return{concat:function(t,n){return e(n)(t)}}};e.getDifferenceMagma=t8,e.Functor={URI:e.URI,map:ta},e.flap=(0,l.flap)(e.Functor),e.Pointed={URI:e.URI,of:e.of},e.FunctorWithIndex={URI:e.URI,map:ta,mapWithIndex:tc},e.Apply={URI:e.URI,map:ta,ap:tf},e.apFirst=(0,o.apFirst)(e.Apply),e.apSecond=(0,o.apSecond)(e.Apply),e.Applicative={URI:e.URI,map:ta,ap:tf,of:e.of},e.Chain={URI:e.URI,map:ta,ap:tf,chain:e.flatMap},e.chainFirst=(0,a.chainFirst)(e.Chain),e.Monad={URI:e.URI,map:ta,ap:tf,of:e.of,chain:e.flatMap},e.Unfoldable={URI:e.URI,unfold:e.unfold},e.Alt={URI:e.URI,map:ta,alt:tv},e.Zero={URI:e.URI,zero:e.zero},e.guard=(0,v.guard)(e.Zero,e.Pointed),e.Alternative={URI:e.URI,map:ta,ap:tf,of:e.of,alt:tv,zero:e.zero},e.Extend={URI:e.URI,map:ta,extend:tw},e.Compactable={URI:e.URI,compact:e.compact,separate:e.separate},e.Filterable={URI:e.URI,map:ta,compact:e.compact,separate:e.separate,filter:tl,filterMap:ts,partition:tp,partitionMap:td},e.FilterableWithIndex={URI:e.URI,map:ta,mapWithIndex:tc,compact:e.compact,separate:e.separate,filter:tl,filterMap:ts,partition:tp,partitionMap:td,partitionMapWithIndex:tm,partitionWithIndex:th,filterMapWithIndex:tS,filterWithIndex:tx},e.Foldable={URI:e.URI,reduce:tg,foldMap:ty,reduceRight:t_},e.FoldableWithIndex={URI:e.URI,reduce:tg,foldMap:ty,reduceRight:t_,reduceWithIndex:tb,foldMapWithIndex:tT,reduceRightWithIndex:tI},e.Traversable={URI:e.URI,map:ta,reduce:tg,foldMap:ty,reduceRight:t_,traverse:tR,sequence:e.sequence},e.TraversableWithIndex={URI:e.URI,map:ta,mapWithIndex:tc,reduce:tg,foldMap:ty,reduceRight:t_,reduceWithIndex:tb,foldMapWithIndex:tT,reduceRightWithIndex:tI,traverse:tR,sequence:e.sequence,traverseWithIndex:tO};var t2=(0,m.witherDefault)(e.Traversable,e.Compactable),t7=(0,m.wiltDefault)(e.Traversable,e.Compactable);e.Witherable={URI:e.URI,map:ta,compact:e.compact,separate:e.separate,filter:tl,filterMap:ts,partition:tp,partitionMap:td,reduce:tg,foldMap:ty,reduceRight:t_,traverse:tR,sequence:e.sequence,wither:t2,wilt:t7},e.chainRecDepthFirst=d.chainRecDepthFirst,e.ChainRecDepthFirst={URI:e.URI,map:ta,ap:tf,chain:e.flatMap,chainRec:tM},e.chainRecBreadthFirst=d.chainRecBreadthFirst,e.ChainRecBreadthFirst={URI:e.URI,map:ta,ap:tf,chain:e.flatMap,chainRec:tE},e.filterE=(0,m.filterE)(e.Witherable),e.FromEither={URI:e.URI,fromEither:e.fromEither},e.fromEitherK=(0,c.fromEitherK)(e.FromEither),e.unsafeInsertAt=p.unsafeInsertAt;var t3=function(t,n,r){return(0,e.isNonEmpty)(r)?p.unsafeUpdateAt(t,n,r):[]};e.unsafeUpdateAt=t3;var t5=function(t,e){var n=e.slice();return n.splice(t,1),n};e.unsafeDeleteAt=t5,e.every=d.every;var t4=function(t){return function(e){return e.some(t)}};e.some=t4,e.exists=e.some,e.intercalate=d.intercalate,e.Do=(0,e.of)(s.emptyRecord),e.bindTo=(0,l.bindTo)(e.Functor);var t9=(0,l.let)(e.Functor);e.let=t9,e.bind=(0,a.bind)(e.Chain),e.apS=(0,o.apS)(e.Apply),e.chain=e.flatMap,e.range=p.range,e.empty=[],e.cons=p.cons,e.snoc=p.snoc,e.prependToAll=e.prependAll,e.array={URI:e.URI,compact:e.compact,separate:e.separate,map:ta,ap:tf,of:e.of,chain:e.flatMap,filter:tl,filterMap:ts,partition:tp,partitionMap:td,mapWithIndex:tc,partitionMapWithIndex:tm,partitionWithIndex:th,filterMapWithIndex:tS,filterWithIndex:tx,alt:tv,zero:e.zero,unfold:e.unfold,reduce:tg,foldMap:ty,reduceRight:t_,traverse:tR,sequence:e.sequence,reduceWithIndex:tb,foldMapWithIndex:tT,reduceRightWithIndex:tI,traverseWithIndex:tO,extend:tw,wither:t2,wilt:t7}},18222:function(t,e){"use strict";function n(t){return function(e,n){return t.chain(e,function(e){return t.map(n(e),function(){return e})})}}Object.defineProperty(e,"__esModule",{value:!0}),e.bind=e.tap=e.chainFirst=void 0,e.chainFirst=function(t){var e=n(t);return function(t){return function(n){return e(n,t)}}},e.tap=n,e.bind=function(t){return function(e,n){return function(r){return t.chain(r,function(r){return t.map(n(r),function(t){var n;return Object.assign({},r,((n={})[e]=t,n))})})}}}},71166:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tailRec=void 0;var n=function(t,e){for(var n=e(t);"Left"===n._tag;)n=e(n.left);return n.right};e.tailRec=n},87412:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.match=e.foldW=e.matchW=e.isRight=e.isLeft=e.fromOption=e.fromPredicate=e.FromEither=e.MonadThrow=e.throwError=e.ChainRec=e.Extend=e.extend=e.Alt=e.alt=e.altW=e.Bifunctor=e.mapLeft=e.bimap=e.Traversable=e.sequence=e.traverse=e.Foldable=e.reduceRight=e.foldMap=e.reduce=e.Monad=e.Chain=e.Applicative=e.Apply=e.ap=e.apW=e.Pointed=e.of=e.asUnit=e.as=e.Functor=e.map=e.getAltValidation=e.getApplicativeValidation=e.getWitherable=e.getFilterable=e.getCompactable=e.getSemigroup=e.getEq=e.getShow=e.URI=e.flatMap=e.right=e.left=void 0,e.chainFirstW=e.chainFirst=e.chain=e.chainW=e.sequenceArray=e.traverseArray=e.traverseArrayWithIndex=e.traverseReadonlyArrayWithIndex=e.traverseReadonlyNonEmptyArrayWithIndex=e.ApT=e.apSW=e.apS=e.bindW=e.bind=e.let=e.bindTo=e.Do=e.exists=e.elem=e.toError=e.toUnion=e.chainNullableK=e.fromNullableK=e.tryCatchK=e.tryCatch=e.fromNullable=e.orElse=e.orElseW=e.swap=e.filterOrElseW=e.filterOrElse=e.flatMapOption=e.flatMapNullable=e.liftOption=e.liftNullable=e.chainOptionKW=e.chainOptionK=e.fromOptionK=e.duplicate=e.flatten=e.flattenW=e.tap=e.apSecondW=e.apSecond=e.apFirstW=e.apFirst=e.flap=e.getOrElse=e.getOrElseW=e.fold=void 0,e.getValidation=e.getValidationMonoid=e.getValidationSemigroup=e.getApplyMonoid=e.getApplySemigroup=e.either=e.stringifyJSON=e.parseJSON=void 0;var o=n(91756),a=n(93145),c=u(n(18222)),f=n(71166),l=n(57756),s=n(14632),p=n(8762),d=u(n(5309)),h=n(4773),m=n(69706);e.left=d.left,e.right=d.right,e.flatMap=(0,s.dual)(2,function(t,n){return(0,e.isLeft)(t)?t:n(t.right)});var v=function(t,n){return(0,s.pipe)(t,(0,e.map)(n))},y=function(t,n){return(0,s.pipe)(t,(0,e.ap)(n))},_=function(t,n,r){return(0,s.pipe)(t,(0,e.reduce)(n,r))},b=function(t){return function(n,r){var i=(0,e.foldMap)(t);return(0,s.pipe)(n,i(r))}},T=function(t,n,r){return(0,s.pipe)(t,(0,e.reduceRight)(n,r))},I=function(t){var n=(0,e.traverse)(t);return function(t,e){return(0,s.pipe)(t,n(e))}},S=function(t,n,r){return(0,s.pipe)(t,(0,e.bimap)(n,r))},x=function(t,n){return(0,s.pipe)(t,(0,e.mapLeft)(n))},w=function(t,n){return(0,s.pipe)(t,(0,e.alt)(n))},R=function(t,n){return(0,s.pipe)(t,(0,e.extend)(n))},O=function(t,n){return(0,f.tailRec)(n(t),function(t){return(0,e.isLeft)(t)?(0,e.right)((0,e.left)(t.left)):(0,e.isLeft)(t.right)?(0,e.left)(n(t.right.left)):(0,e.right)((0,e.right)(t.right.right))})};e.URI="Either";var M=function(t,n){return{show:function(r){return(0,e.isLeft)(r)?"left(".concat(t.show(r.left),")"):"right(".concat(n.show(r.right),")")}}};e.getShow=M;var E=function(t,n){return{equals:function(r,i){return r===i||((0,e.isLeft)(r)?(0,e.isLeft)(i)&&t.equals(r.left,i.left):(0,e.isRight)(i)&&n.equals(r.right,i.right))}}};e.getEq=E;var k=function(t){return{concat:function(n,r){return(0,e.isLeft)(r)?n:(0,e.isLeft)(n)?r:(0,e.right)(t.concat(n.right,r.right))}}};e.getSemigroup=k;var C=function(t){var n=(0,e.left)(t.empty);return{URI:e.URI,_E:void 0,compact:function(t){return(0,e.isLeft)(t)?t:"None"===t.right._tag?n:(0,e.right)(t.right.value)},separate:function(t){return(0,e.isLeft)(t)?(0,h.separated)(t,t):(0,e.isLeft)(t.right)?(0,h.separated)((0,e.right)(t.right.left),n):(0,h.separated)(n,(0,e.right)(t.right.right))}}};e.getCompactable=C;var P=function(t){var n=(0,e.left)(t.empty),r=(0,e.getCompactable)(t),i=r.compact,u=r.separate,o=function(t,r){return(0,e.isLeft)(t)?t:r(t.right)?t:n},a=function(t,r){return(0,e.isLeft)(t)?(0,h.separated)(t,t):r(t.right)?(0,h.separated)(n,(0,e.right)(t.right)):(0,h.separated)((0,e.right)(t.right),n)};return{URI:e.URI,_E:void 0,map:v,compact:i,separate:u,filter:o,filterMap:function(t,r){if((0,e.isLeft)(t))return t;var i=r(t.right);return"None"===i._tag?n:(0,e.right)(i.value)},partition:a,partitionMap:function(t,r){if((0,e.isLeft)(t))return(0,h.separated)(t,t);var i=r(t.right);return(0,e.isLeft)(i)?(0,h.separated)((0,e.right)(i.left),n):(0,h.separated)(n,(0,e.right)(i.right))}}};e.getFilterable=P;var W=function(t){var n=(0,e.getFilterable)(t),r=(0,e.getCompactable)(t);return{URI:e.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:I,sequence:e.sequence,reduce:_,foldMap:b,reduceRight:T,wither:(0,m.witherDefault)(e.Traversable,r),wilt:(0,m.wiltDefault)(e.Traversable,r)}};e.getWitherable=W;var D=function(t){return{URI:e.URI,_E:void 0,map:v,ap:function(n,r){return(0,e.isLeft)(n)?(0,e.isLeft)(r)?(0,e.left)(t.concat(n.left,r.left)):n:(0,e.isLeft)(r)?r:(0,e.right)(n.right(r.right))},of:e.of}};e.getApplicativeValidation=D;var F=function(t){return{URI:e.URI,_E:void 0,map:v,alt:function(n,r){if((0,e.isRight)(n))return n;var i=r();return(0,e.isLeft)(i)?(0,e.left)(t.concat(n.left,i.left)):i}}};e.getAltValidation=F;var N=function(t){return function(n){return(0,e.isLeft)(n)?n:(0,e.right)(t(n.right))}};e.map=N,e.Functor={URI:e.URI,map:v},e.as=(0,s.dual)(2,(0,p.as)(e.Functor)),e.asUnit=(0,p.asUnit)(e.Functor),e.of=e.right,e.Pointed={URI:e.URI,of:e.of};var A=function(t){return function(n){return(0,e.isLeft)(n)?n:(0,e.isLeft)(t)?t:(0,e.right)(n.right(t.right))}};e.apW=A,e.ap=e.apW,e.Apply={URI:e.URI,map:v,ap:y},e.Applicative={URI:e.URI,map:v,ap:y,of:e.of},e.Chain={URI:e.URI,map:v,ap:y,chain:e.flatMap},e.Monad={URI:e.URI,map:v,ap:y,of:e.of,chain:e.flatMap};var L=function(t,n){return function(r){return(0,e.isLeft)(r)?t:n(t,r.right)}};e.reduce=L;var U=function(t){return function(n){return function(r){return(0,e.isLeft)(r)?t.empty:n(r.right)}}};e.foldMap=U;var j=function(t,n){return function(r){return(0,e.isLeft)(r)?t:n(r.right,t)}};e.reduceRight=j,e.Foldable={URI:e.URI,reduce:_,foldMap:b,reduceRight:T};var q=function(t){return function(n){return function(r){return(0,e.isLeft)(r)?t.of((0,e.left)(r.left)):t.map(n(r.right),e.right)}}};e.traverse=q;var B=function(t){return function(n){return(0,e.isLeft)(n)?t.of((0,e.left)(n.left)):t.map(n.right,e.right)}};e.sequence=B,e.Traversable={URI:e.URI,map:v,reduce:_,foldMap:b,reduceRight:T,traverse:I,sequence:e.sequence};var Y=function(t,n){return function(r){return(0,e.isLeft)(r)?(0,e.left)(t(r.left)):(0,e.right)(n(r.right))}};e.bimap=Y;var K=function(t){return function(n){return(0,e.isLeft)(n)?(0,e.left)(t(n.left)):n}};e.mapLeft=K,e.Bifunctor={URI:e.URI,bimap:S,mapLeft:x};var G=function(t){return function(n){return(0,e.isLeft)(n)?t():n}};e.altW=G,e.alt=e.altW,e.Alt={URI:e.URI,map:v,alt:w};var z=function(t){return function(n){return(0,e.isLeft)(n)?n:(0,e.right)(t(n))}};e.extend=z,e.Extend={URI:e.URI,map:v,extend:R},e.ChainRec={URI:e.URI,map:v,ap:y,chain:e.flatMap,chainRec:O},e.throwError=e.left,e.MonadThrow={URI:e.URI,map:v,ap:y,of:e.of,chain:e.flatMap,throwError:e.throwError},e.FromEither={URI:e.URI,fromEither:s.identity},e.fromPredicate=(0,l.fromPredicate)(e.FromEither),e.fromOption=(0,l.fromOption)(e.FromEither),e.isLeft=d.isLeft,e.isRight=d.isRight;var V=function(t,n){return function(r){return(0,e.isLeft)(r)?t(r.left):n(r.right)}};e.matchW=V,e.foldW=e.matchW,e.match=e.matchW,e.fold=e.match;var H=function(t){return function(n){return(0,e.isLeft)(n)?t(n.left):n.right}};e.getOrElseW=H,e.getOrElse=e.getOrElseW,e.flap=(0,p.flap)(e.Functor),e.apFirst=(0,a.apFirst)(e.Apply),e.apFirstW=e.apFirst,e.apSecond=(0,a.apSecond)(e.Apply),e.apSecondW=e.apSecond,e.tap=(0,s.dual)(2,c.tap(e.Chain)),e.flattenW=(0,e.flatMap)(s.identity),e.flatten=e.flattenW,e.duplicate=(0,e.extend)(s.identity),e.fromOptionK=(0,l.fromOptionK)(e.FromEither),e.chainOptionK=(0,l.chainOptionK)(e.FromEither,e.Chain),e.chainOptionKW=e.chainOptionK;var Z={fromEither:e.FromEither.fromEither};e.liftNullable=d.liftNullable(Z),e.liftOption=d.liftOption(Z);var $={flatMap:e.flatMap};e.flatMapNullable=d.flatMapNullable(Z,$),e.flatMapOption=d.flatMapOption(Z,$),e.filterOrElse=(0,l.filterOrElse)(e.FromEither,e.Chain),e.filterOrElseW=e.filterOrElse;var X=function(t){return(0,e.isLeft)(t)?(0,e.right)(t.left):(0,e.left)(t.right)};e.swap=X;var J=function(t){return function(n){return(0,e.isLeft)(n)?t(n.left):n}};e.orElseW=J,e.orElse=e.orElseW;var Q=function(t){return function(n){return null==n?(0,e.left)(t):(0,e.right)(n)}};e.fromNullable=Q;var tt=function(t,n){try{return(0,e.right)(t())}catch(r){return(0,e.left)(n(r))}};e.tryCatch=tt;var te=function(t,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,e.tryCatch)(function(){return t.apply(void 0,r)},n)}};e.tryCatchK=te;var tn=function(t){var n=(0,e.fromNullable)(t);return function(t){return(0,s.flow)(t,n)}};e.fromNullableK=tn;var tr=function(t){var n=(0,e.fromNullableK)(t);return function(t){return(0,e.flatMap)(n(t))}};e.chainNullableK=tr,e.toUnion=(0,e.foldW)(s.identity,s.identity),e.toError=function(t){return t instanceof Error?t:Error(String(t))},e.elem=function t(n){return function(r,i){if(void 0===i){var u=t(n);return function(t){return u(r,t)}}return!(0,e.isLeft)(i)&&n.equals(r,i.right)}};var ti=function(t){return function(n){return!(0,e.isLeft)(n)&&t(n.right)}};e.exists=ti,e.Do=(0,e.of)(d.emptyRecord),e.bindTo=(0,p.bindTo)(e.Functor);var tu=(0,p.let)(e.Functor);e.let=tu,e.bind=c.bind(e.Chain),e.bindW=e.bind,e.apS=(0,a.apS)(e.Apply),e.apSW=e.apS,e.ApT=(0,e.of)(d.emptyReadonlyArray);var to=function(t){return function(n){var r=t(0,d.head(n));if((0,e.isLeft)(r))return r;for(var i=[r.right],u=1;u<n.length;u++){var o=t(u,n[u]);if((0,e.isLeft)(o))return o;i.push(o.right)}return(0,e.right)(i)}};e.traverseReadonlyNonEmptyArrayWithIndex=to;var ta=function(t){var n=(0,e.traverseReadonlyNonEmptyArrayWithIndex)(t);return function(t){return d.isNonEmpty(t)?n(t):e.ApT}};e.traverseReadonlyArrayWithIndex=ta,e.traverseArrayWithIndex=e.traverseReadonlyArrayWithIndex;var tc=function(t){return(0,e.traverseReadonlyArrayWithIndex)(function(e,n){return t(n)})};e.traverseArray=tc,e.sequenceArray=(0,e.traverseArray)(s.identity),e.chainW=e.flatMap,e.chain=e.flatMap,e.chainFirst=e.tap,e.chainFirstW=e.tap,e.parseJSON=function(t,n){return(0,e.tryCatch)(function(){return JSON.parse(t)},n)};var tf=function(t,n){return(0,e.tryCatch)(function(){var e=JSON.stringify(t);if("string"!=typeof e)throw Error("Converting unsupported structure to JSON");return e},n)};e.stringifyJSON=tf,e.either={URI:e.URI,map:v,of:e.of,ap:y,chain:e.flatMap,reduce:_,foldMap:b,reduceRight:T,traverse:I,sequence:e.sequence,bimap:S,mapLeft:x,alt:w,extend:R,chainRec:O,throwError:e.throwError},e.getApplySemigroup=(0,a.getApplySemigroup)(e.Apply),e.getApplyMonoid=(0,o.getApplicativeMonoid)(e.Applicative);var tl=function(t,n){return(0,a.getApplySemigroup)((0,e.getApplicativeValidation)(t))(n)};e.getValidationSemigroup=tl;var ts=function(t,n){return(0,o.getApplicativeMonoid)((0,e.getApplicativeValidation)(t))(n)};e.getValidationMonoid=ts,e.getValidation=function(t){var n=(0,e.getApplicativeValidation)(t).ap,r=(0,e.getAltValidation)(t).alt;return{URI:e.URI,_E:void 0,map:v,of:e.of,chain:e.flatMap,bimap:S,mapLeft:x,reduce:_,foldMap:b,reduceRight:T,extend:R,traverse:I,sequence:e.sequence,chainRec:O,throwError:e.throwError,ap:n,alt:r}}},8190:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.eqDate=e.eqNumber=e.eqString=e.eqBoolean=e.eq=e.strictEqual=e.getStructEq=e.getTupleEq=e.Contravariant=e.getMonoid=e.getSemigroup=e.eqStrict=e.URI=e.contramap=e.tuple=e.struct=e.fromEquals=void 0;var r=n(14632),i=function(t){return{equals:function(e,n){return e===n||t(e,n)}}};e.fromEquals=i;var u=function(t){return(0,e.fromEquals)(function(e,n){for(var r in t)if(!t[r].equals(e[r],n[r]))return!1;return!0})};e.struct=u;var o=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0,e.fromEquals)(function(e,n){return t.every(function(t,r){return t.equals(e[r],n[r])})})};e.tuple=o;var a=function(t,n){return(0,r.pipe)(t,(0,e.contramap)(n))},c=function(t){return function(n){return(0,e.fromEquals)(function(e,r){return n.equals(t(e),t(r))})}};e.contramap=c,e.URI="Eq",e.eqStrict={equals:function(t,e){return t===e}};var f={equals:function(){return!0}},l=function(){return{concat:function(t,n){return(0,e.fromEquals)(function(e,r){return t.equals(e,r)&&n.equals(e,r)})}}};e.getSemigroup=l;var s=function(){return{concat:(0,e.getSemigroup)().concat,empty:f}};e.getMonoid=s,e.Contravariant={URI:e.URI,contramap:a},e.getTupleEq=e.tuple,e.getStructEq=e.struct,e.strictEqual=e.eqStrict.equals,e.eq=e.Contravariant,e.eqBoolean=e.eqStrict,e.eqString=e.eqStrict,e.eqNumber=e.eqStrict,e.eqDate={equals:function(t,e){return t.valueOf()===e.valueOf()}}},57756:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.tapEither=e.filterOrElse=e.chainFirstEitherK=e.chainEitherK=e.fromEitherK=e.chainOptionK=e.fromOptionK=e.fromPredicate=e.fromOption=void 0;var o=n(18222),a=n(14632),c=u(n(5309));function f(t){return function(e){return function(n){return t.fromEither(c.isNone(n)?c.left(e()):c.right(n.value))}}}function l(t){var e=f(t);return function(t){var n=e(t);return function(t){return(0,a.flow)(t,n)}}}function s(t){return function(e){return(0,a.flow)(e,t.fromEither)}}function p(t,e){var n=s(t),r=(0,o.tap)(e);return function(t,e){return r(t,n(e))}}e.fromOption=f,e.fromPredicate=function(t){return function(e,n){return function(r){return t.fromEither(e(r)?c.right(r):c.left(n(r)))}}},e.fromOptionK=l,e.chainOptionK=function(t,e){var n=l(t);return function(t){var r=n(t);return function(t){return function(n){return e.chain(n,r(t))}}}},e.fromEitherK=s,e.chainEitherK=function(t,e){var n=s(t);return function(t){return function(r){return e.chain(r,n(t))}}},e.chainFirstEitherK=function(t,e){var n=p(t,e);return function(t){return function(e){return n(e,t)}}},e.filterOrElse=function(t,e){return function(n,r){return function(i){return e.chain(i,function(e){return t.fromEither(n(e)?c.right(e):c.left(r(e)))})}}},e.tapEither=p},8762:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asUnit=e.as=e.getFunctorComposition=e.let=e.bindTo=e.flap=e.map=void 0;var r=n(14632);function i(t,e){return function(n){return function(r){return t.map(r,function(t){return e.map(t,n)})}}}function u(t){return function(e,n){return t.map(e,function(){return n})}}e.map=i,e.flap=function(t){return function(e){return function(n){return t.map(n,function(t){return t(e)})}}},e.bindTo=function(t){return function(e){return function(n){return t.map(n,function(t){var n;return(n={})[e]=t,n})}}},e.let=function(t){return function(e,n){return function(r){return t.map(r,function(t){var r;return Object.assign({},t,((r={})[e]=n(t),r))})}}},e.getFunctorComposition=function(t,e){var n=i(t,e);return{map:function(t,e){return(0,r.pipe)(t,n(e))}}},e.as=u,e.asUnit=function(t){var e=u(t);return function(t){return e(t,void 0)}}},73540:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concatAll=e.endo=e.filterSecond=e.filterFirst=e.reverse=void 0;var n=function(t){return{concat:function(e,n){return t.concat(n,e)}}};e.reverse=n;var r=function(t){return function(e){return{concat:function(n,r){return t(n)?e.concat(n,r):r}}}};e.filterFirst=r;var i=function(t){return function(e){return{concat:function(n,r){return t(r)?e.concat(n,r):n}}}};e.filterSecond=i;var u=function(t){return function(e){return{concat:function(n,r){return e.concat(t(n),t(r))}}}};e.endo=u;var o=function(t){return function(e){return function(n){return n.reduce(function(e,n){return t.concat(e,n)},e)}}};e.concatAll=o},7219:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},o=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.mapWithIndex=e.map=e.flatten=e.duplicate=e.extend=e.flatMap=e.ap=e.alt=e.altW=e.chunksOf=e.splitAt=e.chop=e.chainWithIndex=e.foldMap=e.foldMapWithIndex=e.intersperse=e.prependAll=e.unzip=e.zip=e.zipWith=e.of=e.copy=e.modifyAt=e.updateAt=e.insertAt=e.sort=e.groupBy=e.group=e.reverse=e.concat=e.concatW=e.unappend=e.unprepend=e.range=e.replicate=e.makeBy=e.fromArray=e.fromReadonlyNonEmptyArray=e.rotate=e.union=e.sortBy=e.uniq=e.unsafeUpdateAt=e.unsafeInsertAt=e.append=e.appendW=e.prepend=e.prependW=e.isOutOfBound=e.isNonEmpty=void 0,e.chain=e.intercalate=e.updateLast=e.modifyLast=e.updateHead=e.modifyHead=e.matchRight=e.matchLeft=e.concatAll=e.max=e.min=e.init=e.last=e.tail=e.head=e.apS=e.bind=e.let=e.bindTo=e.Do=e.Comonad=e.Alt=e.TraversableWithIndex=e.Traversable=e.FoldableWithIndex=e.Foldable=e.Monad=e.chainFirst=e.Chain=e.Applicative=e.apSecond=e.apFirst=e.Apply=e.FunctorWithIndex=e.Pointed=e.flap=e.Functor=e.getUnionSemigroup=e.getEq=e.getSemigroup=e.getShow=e.URI=e.extract=e.traverseWithIndex=e.sequence=e.traverse=e.reduceRightWithIndex=e.reduceRight=e.reduceWithIndex=e.reduce=void 0,e.nonEmptyArray=e.fold=e.prependToAll=e.snoc=e.cons=e.unsnoc=e.uncons=e.filterWithIndex=e.filter=e.groupSort=void 0;var a=n(93145),c=n(18222),f=n(14632),l=n(8762),s=u(n(5309)),p=n(83235),d=u(n(84612)),h=function(t){return t.length>0};e.isNonEmpty=h;var m=function(t,e){return t<0||t>=e.length};e.isOutOfBound=m;var v=function(t){return function(e){return o([t],e,!0)}};e.prependW=v,e.prepend=e.prependW;var y=function(t){return function(e){return o(o([],e,!0),[t],!1)}};e.appendW=y,e.append=e.appendW;var _=function(t,n,r){if((0,e.isNonEmpty)(r)){var i=(0,e.fromReadonlyNonEmptyArray)(r);return i.splice(t,0,n),i}return[n]};e.unsafeInsertAt=_;var b=function(t,n,r){var i=(0,e.fromReadonlyNonEmptyArray)(r);return i[t]=n,i};e.unsafeUpdateAt=b;var T=function(t){return function(n){if(1===n.length)return(0,e.copy)(n);for(var r=[(0,e.head)(n)],i=(0,e.tail)(n),u=function(e){r.every(function(n){return!t.equals(n,e)})&&r.push(e)},o=0;o<i.length;o++)u(i[o]);return r}};e.uniq=T;var I=function(t){if((0,e.isNonEmpty)(t)){var n=(0,p.getMonoid)();return(0,e.sort)(t.reduce(n.concat,n.empty))}return e.copy};e.sortBy=I;var S=function(t){var n=(0,e.uniq)(t);return function(t){return function(e){return n((0,f.pipe)(e,P(t)))}}};e.union=S;var x=function(t){return function(n){var r=n.length,i=Math.round(t)%r;if((0,e.isOutOfBound)(Math.abs(i),n)||0===i)return(0,e.copy)(n);if(!(i<0))return(0,e.rotate)(i-r)(n);var u=(0,e.splitAt)(-i)(n),o=u[0],a=u[1];return(0,f.pipe)(a,P(o))}};e.rotate=x,e.fromReadonlyNonEmptyArray=s.fromReadonlyNonEmptyArray;var w=function(t){return(0,e.isNonEmpty)(t)?s.some(t):s.none};e.fromArray=w;var R=function(t){return function(e){for(var n=Math.max(0,Math.floor(e)),r=[t(0)],i=1;i<n;i++)r.push(t(i));return r}};e.makeBy=R;var O=function(t){return(0,e.makeBy)(function(){return t})};e.replicate=O;var M=function(t,n){return t<=n?(0,e.makeBy)(function(e){return t+e})(n-t+1):[t]};e.range=M;var E=function(t){return[(0,e.head)(t),(0,e.tail)(t)]};e.unprepend=E;var k=function(t){return[(0,e.init)(t),(0,e.last)(t)]};function C(t){return function(e){return e.concat(t)}}function P(t,e){return e?t.concat(e):function(e){return e.concat(t)}}e.unappend=k,e.concatW=C,e.concat=P;var W=function(t){return o([(0,e.last)(t)],t.slice(0,-1).reverse(),!0)};function D(t){return function(e){var n=e.length;if(0===n)return[];for(var r=[],i=e[0],u=[i],o=1;o<n;o++){var a=e[o];t.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}e.reverse=W,e.group=D;var F=function(t){return function(e){for(var n={},r=0;r<e.length;r++){var i=e[r],u=t(i);s.has.call(n,u)?n[u].push(i):n[u]=[i]}return n}};e.groupBy=F;var N=function(t){return function(e){return e.slice().sort(t.compare)}};e.sort=N;var A=function(t,n){return function(r){return t<0||t>r.length?s.none:s.some((0,e.unsafeInsertAt)(t,n,r))}};e.insertAt=A;var L=function(t,n){return(0,e.modifyAt)(t,function(){return n})};e.updateAt=L;var U=function(t,n){return function(r){return(0,e.isOutOfBound)(t,r)?s.none:s.some((0,e.unsafeUpdateAt)(t,n(r[t]),r))}};e.modifyAt=U,e.copy=e.fromReadonlyNonEmptyArray;var j=function(t){return[t]};e.of=j;var q=function(t,e,n){for(var r=[n(t[0],e[0])],i=Math.min(t.length,e.length),u=1;u<i;u++)r[u]=n(t[u],e[u]);return r};e.zipWith=q,e.zip=function t(n,r){return void 0===r?function(e){return t(e,n)}:(0,e.zipWith)(n,r,function(t,e){return[t,e]})};var B=function(t){for(var e=[t[0][0]],n=[t[0][1]],r=1;r<t.length;r++)e[r]=t[r][0],n[r]=t[r][1];return[e,n]};e.unzip=B;var Y=function(t){return function(e){for(var n=[t,e[0]],r=1;r<e.length;r++)n.push(t,e[r]);return n}};e.prependAll=Y;var K=function(t){return function(n){var r=(0,e.tail)(n);return(0,e.isNonEmpty)(r)?(0,f.pipe)(r,(0,e.prependAll)(t),(0,e.prepend)((0,e.head)(n))):(0,e.copy)(n)}};e.intersperse=K,e.foldMapWithIndex=d.foldMapWithIndex,e.foldMap=d.foldMap;var G=function(t){return function(n){for(var r=(0,e.fromReadonlyNonEmptyArray)(t(0,(0,e.head)(n))),i=1;i<n.length;i++)r.push.apply(r,t(i,n[i]));return r}};e.chainWithIndex=G;var z=function(t){return function(n){for(var r=t(n),i=r[0],u=r[1],o=[i],a=u;(0,e.isNonEmpty)(a);){var c=t(a),f=c[0],l=c[1];o.push(f),a=l}return o}};e.chop=z;var V=function(t){return function(n){var r=Math.max(1,t);return r>=n.length?[(0,e.copy)(n),[]]:[(0,f.pipe)(n.slice(1,r),(0,e.prepend)((0,e.head)(n))),n.slice(r)]}};e.splitAt=V;var H=function(t){return(0,e.chop)((0,e.splitAt)(t))};e.chunksOf=H;var Z=function(t,n){return(0,f.pipe)(t,(0,e.map)(n))},$=function(t,n){return(0,f.pipe)(t,(0,e.mapWithIndex)(n))},X=function(t,n){return(0,f.pipe)(t,(0,e.ap)(n))},J=function(t,n){return(0,f.pipe)(t,(0,e.extend)(n))},Q=function(t,n,r){return(0,f.pipe)(t,(0,e.reduce)(n,r))},tt=function(t){var n=(0,e.foldMap)(t);return function(t,e){return(0,f.pipe)(t,n(e))}},te=function(t,n,r){return(0,f.pipe)(t,(0,e.reduceRight)(n,r))},tn=function(t){var n=(0,e.traverse)(t);return function(t,e){return(0,f.pipe)(t,n(e))}},tr=function(t,n){return(0,f.pipe)(t,(0,e.alt)(n))},ti=function(t,n,r){return(0,f.pipe)(t,(0,e.reduceWithIndex)(n,r))},tu=function(t){var n=(0,e.foldMapWithIndex)(t);return function(t,e){return(0,f.pipe)(t,n(e))}},to=function(t,n,r){return(0,f.pipe)(t,(0,e.reduceRightWithIndex)(n,r))},ta=function(t){var n=(0,e.traverseWithIndex)(t);return function(t,e){return(0,f.pipe)(t,n(e))}},tc=function(t){return function(e){return(0,f.pipe)(e,C(t()))}};e.altW=tc,e.alt=e.altW;var tf=function(t){return(0,e.flatMap)(function(n){return(0,f.pipe)(t,(0,e.map)(n))})};e.ap=tf,e.flatMap=(0,f.dual)(2,function(t,n){return(0,f.pipe)(t,(0,e.chainWithIndex)(function(t,e){return n(e,t)}))});var tl=function(t){return function(n){for(var r=(0,e.tail)(n),i=[t(n)];(0,e.isNonEmpty)(r);)i.push(t(r)),r=(0,e.tail)(r);return i}};e.extend=tl,e.duplicate=(0,e.extend)(f.identity),e.flatten=(0,e.flatMap)(f.identity);var ts=function(t){return(0,e.mapWithIndex)(function(e,n){return t(n)})};e.map=ts;var tp=function(t){return function(n){for(var r=[t(0,(0,e.head)(n))],i=1;i<n.length;i++)r.push(t(i,n[i]));return r}};e.mapWithIndex=tp,e.reduce=d.reduce,e.reduceWithIndex=d.reduceWithIndex,e.reduceRight=d.reduceRight,e.reduceRightWithIndex=d.reduceRightWithIndex;var td=function(t){var n=(0,e.traverseWithIndex)(t);return function(t){return n(function(e,n){return t(n)})}};e.traverse=td;var th=function(t){return(0,e.traverseWithIndex)(t)(function(t,e){return e})};e.sequence=th;var tm=function(t){return function(n){return function(r){for(var i=t.map(n(0,(0,e.head)(r)),e.of),u=1;u<r.length;u++)i=t.ap(t.map(i,function(t){return function(n){return(0,f.pipe)(t,(0,e.append)(n))}}),n(u,r[u]));return i}}};e.traverseWithIndex=tm,e.extract=d.head,e.URI="NonEmptyArray",e.getShow=d.getShow;var tv=function(){return{concat:P}};e.getSemigroup=tv,e.getEq=d.getEq;var tg=function(t){var n=(0,e.union)(t);return{concat:function(t,e){return n(e)(t)}}};e.getUnionSemigroup=tg,e.Functor={URI:e.URI,map:Z},e.flap=(0,l.flap)(e.Functor),e.Pointed={URI:e.URI,of:e.of},e.FunctorWithIndex={URI:e.URI,map:Z,mapWithIndex:$},e.Apply={URI:e.URI,map:Z,ap:X},e.apFirst=(0,a.apFirst)(e.Apply),e.apSecond=(0,a.apSecond)(e.Apply),e.Applicative={URI:e.URI,map:Z,ap:X,of:e.of},e.Chain={URI:e.URI,map:Z,ap:X,chain:e.flatMap},e.chainFirst=(0,c.chainFirst)(e.Chain),e.Monad={URI:e.URI,map:Z,ap:X,of:e.of,chain:e.flatMap},e.Foldable={URI:e.URI,reduce:Q,foldMap:tt,reduceRight:te},e.FoldableWithIndex={URI:e.URI,reduce:Q,foldMap:tt,reduceRight:te,reduceWithIndex:ti,foldMapWithIndex:tu,reduceRightWithIndex:to},e.Traversable={URI:e.URI,map:Z,reduce:Q,foldMap:tt,reduceRight:te,traverse:tn,sequence:e.sequence},e.TraversableWithIndex={URI:e.URI,map:Z,mapWithIndex:$,reduce:Q,foldMap:tt,reduceRight:te,traverse:tn,sequence:e.sequence,reduceWithIndex:ti,foldMapWithIndex:tu,reduceRightWithIndex:to,traverseWithIndex:ta},e.Alt={URI:e.URI,map:Z,alt:tr},e.Comonad={URI:e.URI,map:Z,extend:J,extract:e.extract},e.Do=(0,e.of)(s.emptyRecord),e.bindTo=(0,l.bindTo)(e.Functor);var ty=(0,l.let)(e.Functor);e.let=ty,e.bind=(0,c.bind)(e.Chain),e.apS=(0,a.apS)(e.Apply),e.head=d.head;var t_=function(t){return t.slice(1)};e.tail=t_,e.last=d.last;var tb=function(t){return t.slice(0,-1)};e.init=tb,e.min=d.min,e.max=d.max;var tT=function(t){return function(e){return e.reduce(t.concat)}};e.concatAll=tT;var tI=function(t){return function(n){return t((0,e.head)(n),(0,e.tail)(n))}};e.matchLeft=tI;var tS=function(t){return function(n){return t((0,e.init)(n),(0,e.last)(n))}};e.matchRight=tS;var tx=function(t){return function(n){return o([t((0,e.head)(n))],(0,e.tail)(n),!0)}};e.modifyHead=tx;var tw=function(t){return(0,e.modifyHead)(function(){return t})};e.updateHead=tw;var tR=function(t){return function(n){return(0,f.pipe)((0,e.init)(n),(0,e.append)(t((0,e.last)(n))))}};e.modifyLast=tR;var tO=function(t){return(0,e.modifyLast)(function(){return t})};e.updateLast=tO,e.intercalate=d.intercalate,e.chain=e.flatMap,e.groupSort=function(t){var n=(0,e.sort)(t),r=D(t);return function(t){return(0,e.isNonEmpty)(t)?r(n(t)):[]}},e.filter=function(t){return(0,e.filterWithIndex)(function(e,n){return t(n)})};var tM=function(t){return function(n){return(0,e.fromArray)(n.filter(function(e,n){return t(n,e)}))}};e.filterWithIndex=tM,e.uncons=e.unprepend,e.unsnoc=e.unappend,e.cons=function(t,n){return void 0===n?(0,e.prepend)(t):(0,f.pipe)(n,(0,e.prepend)(t))};var tE=function(t,n){return(0,f.pipe)(t,(0,e.append)(n))};e.snoc=tE,e.prependToAll=e.prependAll,e.fold=d.concatAll,e.nonEmptyArray={URI:e.URI,of:e.of,map:Z,mapWithIndex:$,ap:X,chain:e.flatMap,extend:J,extract:e.extract,reduce:Q,foldMap:tt,reduceRight:te,traverse:tn,sequence:e.sequence,reduceWithIndex:ti,foldMapWithIndex:tu,reduceRightWithIndex:to,traverseWithIndex:ta,alt:tr}},72720:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.Witherable=e.wilt=e.wither=e.Traversable=e.sequence=e.traverse=e.Filterable=e.partitionMap=e.partition=e.filterMap=e.filter=e.Compactable=e.separate=e.compact=e.Extend=e.extend=e.Alternative=e.guard=e.Zero=e.zero=e.Alt=e.alt=e.altW=e.orElse=e.Foldable=e.reduceRight=e.foldMap=e.reduce=e.Monad=e.Chain=e.flatMap=e.Applicative=e.Apply=e.ap=e.Pointed=e.of=e.asUnit=e.as=e.Functor=e.map=e.getMonoid=e.getOrd=e.getEq=e.getShow=e.URI=e.getRight=e.getLeft=e.fromPredicate=e.some=e.none=void 0,e.getFirstMonoid=e.getApplyMonoid=e.getApplySemigroup=e.option=e.mapNullable=e.getRefinement=e.chainFirst=e.chain=e.sequenceArray=e.traverseArray=e.traverseArrayWithIndex=e.traverseReadonlyArrayWithIndex=e.traverseReadonlyNonEmptyArrayWithIndex=e.ApT=e.apS=e.bind=e.let=e.bindTo=e.Do=e.exists=e.elem=e.toUndefined=e.toNullable=e.chainNullableK=e.fromNullableK=e.tryCatchK=e.tryCatch=e.fromNullable=e.chainFirstEitherK=e.chainEitherK=e.fromEitherK=e.duplicate=e.tapEither=e.tap=e.flatten=e.apSecond=e.apFirst=e.flap=e.getOrElse=e.getOrElseW=e.fold=e.match=e.foldW=e.matchW=e.isNone=e.isSome=e.FromEither=e.fromEither=e.MonadThrow=e.throwError=void 0,e.getLastMonoid=void 0;var o=n(91756),a=n(93145),c=u(n(18222)),f=n(57756),l=n(14632),s=n(8762),p=u(n(5309)),d=n(87612),h=n(98744),m=n(4773),v=n(69706),y=n(3899);e.none=p.none,e.some=p.some,e.fromPredicate=function(t){return function(n){return t(n)?(0,e.some)(n):e.none}};var _=function(t){return"Right"===t._tag?e.none:(0,e.some)(t.left)};e.getLeft=_;var b=function(t){return"Left"===t._tag?e.none:(0,e.some)(t.right)};e.getRight=b;var T=function(t,n){return(0,l.pipe)(t,(0,e.map)(n))},I=function(t,n){return(0,l.pipe)(t,(0,e.ap)(n))},S=function(t,n,r){return(0,l.pipe)(t,(0,e.reduce)(n,r))},x=function(t){var n=(0,e.foldMap)(t);return function(t,e){return(0,l.pipe)(t,n(e))}},w=function(t,n,r){return(0,l.pipe)(t,(0,e.reduceRight)(n,r))},R=function(t){var n=(0,e.traverse)(t);return function(t,e){return(0,l.pipe)(t,n(e))}},O=function(t,n){return(0,l.pipe)(t,(0,e.alt)(n))},M=function(t,n){return(0,l.pipe)(t,(0,e.filter)(n))},E=function(t,n){return(0,l.pipe)(t,(0,e.filterMap)(n))},k=function(t,n){return(0,l.pipe)(t,(0,e.extend)(n))},C=function(t,n){return(0,l.pipe)(t,(0,e.partition)(n))},P=function(t,n){return(0,l.pipe)(t,(0,e.partitionMap)(n))};e.URI="Option";var W=function(t){return{show:function(n){return(0,e.isNone)(n)?"none":"some(".concat(t.show(n.value),")")}}};e.getShow=W;var D=function(t){return{equals:function(n,r){return n===r||((0,e.isNone)(n)?(0,e.isNone)(r):!(0,e.isNone)(r)&&t.equals(n.value,r.value))}}};e.getEq=D;var F=function(t){return{equals:(0,e.getEq)(t).equals,compare:function(n,r){return n===r?0:(0,e.isSome)(n)?(0,e.isSome)(r)?t.compare(n.value,r.value):1:-1}}};e.getOrd=F;var N=function(t){return{concat:function(n,r){return(0,e.isNone)(n)?r:(0,e.isNone)(r)?n:(0,e.some)(t.concat(n.value,r.value))},empty:e.none}};e.getMonoid=N;var A=function(t){return function(n){return(0,e.isNone)(n)?e.none:(0,e.some)(t(n.value))}};e.map=A,e.Functor={URI:e.URI,map:T},e.as=(0,l.dual)(2,(0,s.as)(e.Functor)),e.asUnit=(0,s.asUnit)(e.Functor),e.of=e.some,e.Pointed={URI:e.URI,of:e.of};var L=function(t){return function(n){return(0,e.isNone)(n)?e.none:(0,e.isNone)(t)?e.none:(0,e.some)(n.value(t.value))}};e.ap=L,e.Apply={URI:e.URI,map:T,ap:I},e.Applicative={URI:e.URI,map:T,ap:I,of:e.of},e.flatMap=(0,l.dual)(2,function(t,n){return(0,e.isNone)(t)?e.none:n(t.value)}),e.Chain={URI:e.URI,map:T,ap:I,chain:e.flatMap},e.Monad={URI:e.URI,map:T,ap:I,of:e.of,chain:e.flatMap};var U=function(t,n){return function(r){return(0,e.isNone)(r)?t:n(t,r.value)}};e.reduce=U;var j=function(t){return function(n){return function(r){return(0,e.isNone)(r)?t.empty:n(r.value)}}};e.foldMap=j;var q=function(t,n){return function(r){return(0,e.isNone)(r)?t:n(r.value,t)}};e.reduceRight=q,e.Foldable={URI:e.URI,reduce:S,foldMap:x,reduceRight:w},e.orElse=(0,l.dual)(2,function(t,n){return(0,e.isNone)(t)?n():t}),e.altW=e.orElse,e.alt=e.orElse,e.Alt={URI:e.URI,map:T,alt:O};var B=function(){return e.none};e.zero=B,e.Zero={URI:e.URI,zero:e.zero},e.guard=(0,y.guard)(e.Zero,e.Pointed),e.Alternative={URI:e.URI,map:T,ap:I,of:e.of,alt:O,zero:e.zero};var Y=function(t){return function(n){return(0,e.isNone)(n)?e.none:(0,e.some)(t(n))}};e.extend=Y,e.Extend={URI:e.URI,map:T,extend:k},e.compact=(0,e.flatMap)(l.identity);var K=(0,m.separated)(e.none,e.none),G=function(t){return(0,e.isNone)(t)?K:(0,m.separated)((0,e.getLeft)(t.value),(0,e.getRight)(t.value))};e.separate=G,e.Compactable={URI:e.URI,compact:e.compact,separate:e.separate};var z=function(t){return function(n){return(0,e.isNone)(n)?e.none:t(n.value)?n:e.none}};e.filter=z;var V=function(t){return function(n){return(0,e.isNone)(n)?e.none:t(n.value)}};e.filterMap=V;var H=function(t){return function(e){return(0,m.separated)(M(e,(0,d.not)(t)),M(e,t))}};e.partition=H;var Z=function(t){return(0,l.flow)((0,e.map)(t),e.separate)};e.partitionMap=Z,e.Filterable={URI:e.URI,map:T,compact:e.compact,separate:e.separate,filter:M,filterMap:E,partition:C,partitionMap:P};var $=function(t){return function(n){return function(r){return(0,e.isNone)(r)?t.of(e.none):t.map(n(r.value),e.some)}}};e.traverse=$;var X=function(t){return function(n){return(0,e.isNone)(n)?t.of(e.none):t.map(n.value,e.some)}};e.sequence=X,e.Traversable={URI:e.URI,map:T,reduce:S,foldMap:x,reduceRight:w,traverse:R,sequence:e.sequence};var J=(0,v.witherDefault)(e.Traversable,e.Compactable),Q=(0,v.wiltDefault)(e.Traversable,e.Compactable),tt=function(t){var e=J(t);return function(t){return function(n){return e(n,t)}}};e.wither=tt;var te=function(t){var e=Q(t);return function(t){return function(n){return e(n,t)}}};e.wilt=te,e.Witherable={URI:e.URI,map:T,reduce:S,foldMap:x,reduceRight:w,traverse:R,sequence:e.sequence,compact:e.compact,separate:e.separate,filter:M,filterMap:E,partition:C,partitionMap:P,wither:J,wilt:Q};var tn=function(){return e.none};e.throwError=tn,e.MonadThrow={URI:e.URI,map:T,ap:I,of:e.of,chain:e.flatMap,throwError:e.throwError},e.fromEither=e.getRight,e.FromEither={URI:e.URI,fromEither:e.fromEither},e.isSome=p.isSome;var tr=function(t){return"None"===t._tag};e.isNone=tr;var ti=function(t,n){return function(r){return(0,e.isNone)(r)?t():n(r.value)}};e.matchW=ti,e.foldW=e.matchW,e.match=e.matchW,e.fold=e.match;var tu=function(t){return function(n){return(0,e.isNone)(n)?t():n.value}};e.getOrElseW=tu,e.getOrElse=e.getOrElseW,e.flap=(0,s.flap)(e.Functor),e.apFirst=(0,a.apFirst)(e.Apply),e.apSecond=(0,a.apSecond)(e.Apply),e.flatten=e.compact,e.tap=(0,l.dual)(2,c.tap(e.Chain)),e.tapEither=(0,l.dual)(2,(0,f.tapEither)(e.FromEither,e.Chain)),e.duplicate=(0,e.extend)(l.identity),e.fromEitherK=(0,f.fromEitherK)(e.FromEither),e.chainEitherK=(0,f.chainEitherK)(e.FromEither,e.Chain),e.chainFirstEitherK=e.tapEither;var to=function(t){return null==t?e.none:(0,e.some)(t)};e.fromNullable=to;var ta=function(t){try{return(0,e.some)(t())}catch(n){return e.none}};e.tryCatch=ta;var tc=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,e.tryCatch)(function(){return t.apply(void 0,n)})}};e.tryCatchK=tc;var tf=function(t){return(0,l.flow)(t,e.fromNullable)};e.fromNullableK=tf;var tl=function(t){return function(n){return(0,e.isNone)(n)?e.none:(0,e.fromNullable)(t(n.value))}};e.chainNullableK=tl,e.toNullable=(0,e.match)(l.constNull,l.identity),e.toUndefined=(0,e.match)(l.constUndefined,l.identity),e.elem=function t(n){return function(r,i){if(void 0===i){var u=t(n);return function(t){return u(r,t)}}return!(0,e.isNone)(i)&&n.equals(r,i.value)}};var ts=function(t){return function(n){return!(0,e.isNone)(n)&&t(n.value)}};e.exists=ts,e.Do=(0,e.of)(p.emptyRecord),e.bindTo=(0,s.bindTo)(e.Functor);var tp=(0,s.let)(e.Functor);e.let=tp,e.bind=c.bind(e.Chain),e.apS=(0,a.apS)(e.Apply),e.ApT=(0,e.of)(p.emptyReadonlyArray);var td=function(t){return function(n){var r=t(0,p.head(n));if((0,e.isNone)(r))return e.none;for(var i=[r.value],u=1;u<n.length;u++){var o=t(u,n[u]);if((0,e.isNone)(o))return e.none;i.push(o.value)}return(0,e.some)(i)}};e.traverseReadonlyNonEmptyArrayWithIndex=td;var th=function(t){var n=(0,e.traverseReadonlyNonEmptyArrayWithIndex)(t);return function(t){return p.isNonEmpty(t)?n(t):e.ApT}};e.traverseReadonlyArrayWithIndex=th,e.traverseArrayWithIndex=e.traverseReadonlyArrayWithIndex;var tm=function(t){return(0,e.traverseReadonlyArrayWithIndex)(function(e,n){return t(n)})};e.traverseArray=tm,e.sequenceArray=(0,e.traverseArray)(l.identity),e.chain=e.flatMap,e.chainFirst=e.tap,e.getRefinement=function(t){return function(n){return(0,e.isSome)(t(n))}},e.mapNullable=e.chainNullableK,e.option={URI:e.URI,map:T,of:e.of,ap:I,chain:e.flatMap,reduce:S,foldMap:x,reduceRight:w,traverse:R,sequence:e.sequence,zero:e.zero,alt:O,extend:k,compact:e.compact,separate:e.separate,filter:M,filterMap:E,partition:C,partitionMap:P,wither:J,wilt:Q,throwError:e.throwError},e.getApplySemigroup=(0,a.getApplySemigroup)(e.Apply),e.getApplyMonoid=(0,o.getApplicativeMonoid)(e.Applicative);var tv=function(){return(0,e.getMonoid)((0,h.first)())};e.getFirstMonoid=tv;var tg=function(){return(0,e.getMonoid)((0,h.last)())};e.getLastMonoid=tg},83235:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ordDate=e.ordNumber=e.ordString=e.ordBoolean=e.ord=e.getDualOrd=e.getTupleOrd=e.between=e.clamp=e.max=e.min=e.geq=e.leq=e.gt=e.lt=e.equals=e.trivial=e.Contravariant=e.getMonoid=e.getSemigroup=e.URI=e.contramap=e.reverse=e.tuple=e.fromCompare=e.equalsDefault=void 0;var r=n(8190),i=n(14632),u=function(t){return function(e,n){return e===n||0===t(e,n)}};e.equalsDefault=u;var o=function(t){return{equals:(0,e.equalsDefault)(t),compare:function(e,n){return e===n?0:t(e,n)}}};e.fromCompare=o;var a=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0,e.fromCompare)(function(e,n){for(var r=0;r<t.length-1;r++){var i=t[r].compare(e[r],n[r]);if(0!==i)return i}return t[r].compare(e[r],n[r])})};e.tuple=a;var c=function(t){return(0,e.fromCompare)(function(e,n){return t.compare(n,e)})};e.reverse=c;var f=function(t,n){return(0,i.pipe)(t,(0,e.contramap)(n))},l=function(t){return function(n){return(0,e.fromCompare)(function(e,r){return n.compare(t(e),t(r))})}};e.contramap=l,e.URI="Ord";var s=function(){return{concat:function(t,n){return(0,e.fromCompare)(function(e,r){var i=t.compare(e,r);return 0!==i?i:n.compare(e,r)})}}};e.getSemigroup=s;var p=function(){return{concat:(0,e.getSemigroup)().concat,empty:(0,e.fromCompare)(function(){return 0})}};e.getMonoid=p,e.Contravariant={URI:e.URI,contramap:f},e.trivial={equals:i.constTrue,compare:(0,i.constant)(0)};var d=function(t){return function(e){return function(n){return n===e||0===t.compare(n,e)}}};e.equals=d;var h=function(t){return function(e,n){return -1===t.compare(e,n)}};e.lt=h;var m=function(t){return function(e,n){return 1===t.compare(e,n)}};e.gt=m;var v=function(t){return function(e,n){return 1!==t.compare(e,n)}};e.leq=v;var y=function(t){return function(e,n){return -1!==t.compare(e,n)}};e.geq=y;var _=function(t){return function(e,n){return e===n||1>t.compare(e,n)?e:n}};e.min=_;var b=function(t){return function(e,n){return e===n||t.compare(e,n)>-1?e:n}};e.max=b;var T=function(t){var n=(0,e.min)(t),r=(0,e.max)(t);return function(t,e){return function(i){return r(n(i,e),t)}}};e.clamp=T;var I=function(t){var n=(0,e.lt)(t),r=(0,e.gt)(t);return function(t,e){return function(i){return!(n(i,t)||r(i,e))}}};e.between=I,e.getTupleOrd=e.tuple,e.getDualOrd=e.reverse,e.ord=e.Contravariant;var S={equals:r.eqStrict.equals,compare:function(t,e){return t<e?-1:t>e?1:0}};e.ordBoolean=S,e.ordString=S,e.ordNumber=S,e.ordDate=(0,i.pipe)(e.ordNumber,(0,e.contramap)(function(t){return t.valueOf()}))},87612:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.and=e.or=e.not=e.Contravariant=e.getMonoidAll=e.getSemigroupAll=e.getMonoidAny=e.getSemigroupAny=e.URI=e.contramap=void 0;var r=n(14632),i=function(t,n){return(0,r.pipe)(t,(0,e.contramap)(n))},u=function(t){return function(e){return(0,r.flow)(t,e)}};e.contramap=u,e.URI="Predicate";var o=function(){return{concat:function(t,n){return(0,r.pipe)(t,(0,e.or)(n))}}};e.getSemigroupAny=o;var a=function(){return{concat:(0,e.getSemigroupAny)().concat,empty:r.constFalse}};e.getMonoidAny=a;var c=function(){return{concat:function(t,n){return(0,r.pipe)(t,(0,e.and)(n))}}};e.getSemigroupAll=c;var f=function(){return{concat:(0,e.getSemigroupAll)().concat,empty:r.constTrue}};e.getMonoidAll=f,e.Contravariant={URI:e.URI,contramap:i};var l=function(t){return function(e){return!t(e)}};e.not=l;var s=function(t){return function(e){return function(n){return e(n)||t(n)}}};e.or=s;var p=function(t){return function(e){return function(n){return e(n)&&t(n)}}};e.and=p},78703:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},o=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.sort=e.lefts=e.rights=e.reverse=e.modifyAt=e.deleteAt=e.updateAt=e.insertAt=e.findLastIndex=e.findLastMap=e.findLast=e.findFirstMap=e.findFirst=e.findIndex=e.dropLeftWhile=e.dropRight=e.dropLeft=e.spanLeft=e.takeLeftWhile=e.takeRight=e.takeLeft=e.init=e.tail=e.last=e.head=e.lookup=e.isOutOfBound=e.size=e.scanRight=e.scanLeft=e.chainWithIndex=e.foldRight=e.matchRight=e.matchRightW=e.foldLeft=e.matchLeft=e.matchLeftW=e.match=e.matchW=e.fromEither=e.fromOption=e.fromPredicate=e.replicate=e.makeBy=e.appendW=e.append=e.prependW=e.prepend=e.isNonEmpty=e.isEmpty=void 0,e.sequence=e.traverse=e.reduceRightWithIndex=e.reduceRight=e.reduceWithIndex=e.foldMap=e.reduce=e.foldMapWithIndex=e.duplicate=e.extend=e.filterWithIndex=e.partitionMapWithIndex=e.partitionMap=e.partitionWithIndex=e.partition=e.compact=e.filterMap=e.filterMapWithIndex=e.filter=e.separate=e.mapWithIndex=e.map=e.flatten=e.flatMap=e.ap=e.alt=e.altW=e.zero=e.of=e._chainRecBreadthFirst=e._chainRecDepthFirst=e.difference=e.intersection=e.union=e.concat=e.concatW=e.comprehension=e.fromOptionK=e.chunksOf=e.splitAt=e.chop=e.sortBy=e.uniq=e.elem=e.rotate=e.intersperse=e.prependAll=e.unzip=e.zip=e.zipWith=void 0,e.toArray=e.unsafeDeleteAt=e.unsafeUpdateAt=e.unsafeInsertAt=e.fromEitherK=e.FromEither=e.filterE=e.Witherable=e.ChainRecBreadthFirst=e.chainRecBreadthFirst=e.ChainRecDepthFirst=e.chainRecDepthFirst=e.TraversableWithIndex=e.Traversable=e.FoldableWithIndex=e.Foldable=e.FilterableWithIndex=e.Filterable=e.Compactable=e.Extend=e.Alternative=e.guard=e.Zero=e.Alt=e.Unfoldable=e.chainFirst=e.Monad=e.Chain=e.Applicative=e.apSecond=e.apFirst=e.Apply=e.FunctorWithIndex=e.Pointed=e.flap=e.Functor=e.getDifferenceMagma=e.getIntersectionSemigroup=e.getUnionMonoid=e.getUnionSemigroup=e.getOrd=e.getEq=e.getMonoid=e.getSemigroup=e.getShow=e.URI=e.unfold=e.wilt=e.wither=e.traverseWithIndex=void 0,e.readonlyArray=e.prependToAll=e.snoc=e.cons=e.range=e.chain=e.apS=e.bind=e.let=e.bindTo=e.Do=e.intercalate=e.exists=e.some=e.every=e.empty=e.fromArray=void 0;var a=n(93145),c=n(18222),f=n(8190),l=n(57756),s=n(14632),p=n(8762),d=u(n(5309)),h=u(n(40457)),m=n(83235),v=u(n(84612)),y=n(4773),_=n(69706),b=n(3899),T=function(t){return 0===t.length};e.isEmpty=T,e.isNonEmpty=v.isNonEmpty,e.prepend=v.prepend,e.prependW=v.prependW,e.append=v.append,e.appendW=v.appendW;var I=function(t,n){return t<=0?e.empty:v.makeBy(n)(t)};e.makeBy=I;var S=function(t,n){return(0,e.makeBy)(t,function(){return n})};e.replicate=S,e.fromPredicate=function(t){return function(n){return t(n)?[n]:e.empty}};var x=function(t){return d.isNone(t)?e.empty:[t.value]};e.fromOption=x;var w=function(t){return d.isLeft(t)?e.empty:[t.right]};e.fromEither=w;var R=function(t,n){return function(r){return(0,e.isNonEmpty)(r)?n(r):t()}};e.matchW=R,e.match=e.matchW;var O=function(t,n){return function(r){return(0,e.isNonEmpty)(r)?n(v.head(r),v.tail(r)):t()}};e.matchLeftW=O,e.matchLeft=e.matchLeftW,e.foldLeft=e.matchLeft;var M=function(t,n){return function(r){return(0,e.isNonEmpty)(r)?n(v.init(r),v.last(r)):t()}};e.matchRightW=M,e.matchRight=e.matchRightW,e.foldRight=e.matchRight;var E=function(t){return function(n){if((0,e.isEmpty)(n))return e.empty;for(var r=[],i=0;i<n.length;i++)r.push.apply(r,t(i,n[i]));return r}};e.chainWithIndex=E;var k=function(t,e){return function(n){var r=n.length,i=Array(r+1);i[0]=t;for(var u=0;u<r;u++)i[u+1]=e(i[u],n[u]);return i}};e.scanLeft=k;var C=function(t,e){return function(n){var r=n.length,i=Array(r+1);i[r]=t;for(var u=r-1;u>=0;u--)i[u]=e(n[u],i[u+1]);return i}};e.scanRight=C;var P=function(t){return t.length};e.size=P,e.isOutOfBound=v.isOutOfBound,e.lookup=function t(n,r){return void 0===r?function(e){return t(n,e)}:(0,e.isOutOfBound)(n,r)?d.none:d.some(r[n])};var W=function(t){return(0,e.isNonEmpty)(t)?d.some(v.head(t)):d.none};e.head=W;var D=function(t){return(0,e.isNonEmpty)(t)?d.some(v.last(t)):d.none};e.last=D;var F=function(t){return(0,e.isNonEmpty)(t)?d.some(v.tail(t)):d.none};e.tail=F;var N=function(t){return(0,e.isNonEmpty)(t)?d.some(v.init(t)):d.none};e.init=N;var A=function(t){return function(n){return(0,e.isOutOfBound)(t,n)?n:0===t?e.empty:n.slice(0,t)}};e.takeLeft=A;var L=function(t){return function(n){return(0,e.isOutOfBound)(t,n)?n:0===t?e.empty:n.slice(-t)}};e.takeRight=L,e.takeLeftWhile=function(t){return function(n){for(var r=[],i=0;i<n.length;i++){var u=n[i];if(!t(u))break;r.push(u)}var o=r.length;return o===n.length?n:0===o?e.empty:r}};var U=function(t,e){for(var n=t.length,r=0;r<n&&e(t[r]);r++);return r};e.spanLeft=function(t){return function(n){var r,i=(0,e.splitAt)(U(n,t))(n);return{init:i[0],rest:i[1]}}};var j=function(t){return function(n){return t<=0||(0,e.isEmpty)(n)?n:t>=n.length?e.empty:n.slice(t,n.length)}};e.dropLeft=j;var q=function(t){return function(n){return t<=0||(0,e.isEmpty)(n)?n:t>=n.length?e.empty:n.slice(0,n.length-t)}};e.dropRight=q,e.dropLeftWhile=function(t){return function(n){var r=U(n,t);return 0===r?n:r===n.length?e.empty:n.slice(r)}};var B=function(t){return function(e){for(var n=0;n<e.length;n++)if(t(e[n]))return d.some(n);return d.none}};e.findIndex=B,e.findFirst=function(t){return function(e){for(var n=0;n<e.length;n++)if(t(e[n]))return d.some(e[n]);return d.none}};var Y=function(t){return function(e){for(var n=0;n<e.length;n++){var r=t(e[n]);if(d.isSome(r))return r}return d.none}};e.findFirstMap=Y,e.findLast=function(t){return function(e){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return d.some(e[n]);return d.none}};var K=function(t){return function(e){for(var n=e.length-1;n>=0;n--){var r=t(e[n]);if(d.isSome(r))return r}return d.none}};e.findLastMap=K;var G=function(t){return function(e){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return d.some(n);return d.none}};e.findLastIndex=G;var z=function(t,e){return function(n){return t<0||t>n.length?d.none:d.some(v.unsafeInsertAt(t,e,n))}};e.insertAt=z;var V=function(t,n){return(0,e.modifyAt)(t,function(){return n})};e.updateAt=V;var H=function(t){return function(n){return(0,e.isOutOfBound)(t,n)?d.none:d.some((0,e.unsafeDeleteAt)(t,n))}};e.deleteAt=H;var Z=function(t,n){return function(r){return(0,e.isOutOfBound)(t,r)?d.none:d.some((0,e.unsafeUpdateAt)(t,n(r[t]),r))}};e.modifyAt=Z;var $=function(t){return t.length<=1?t:t.slice().reverse()};e.reverse=$;var X=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];"Right"===r._tag&&e.push(r.right)}return e};e.rights=X;var J=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];"Left"===r._tag&&e.push(r.left)}return e};e.lefts=J;var Q=function(t){return function(e){return e.length<=1?e:e.slice().sort(t.compare)}};e.sort=Q;var tt=function(t,e,n){for(var r=[],i=Math.min(t.length,e.length),u=0;u<i;u++)r[u]=n(t[u],e[u]);return r};e.zipWith=tt,e.zip=function t(n,r){return void 0===r?function(e){return t(e,n)}:(0,e.zipWith)(n,r,function(t,e){return[t,e]})};var te=function(t){for(var e=[],n=[],r=0;r<t.length;r++)e[r]=t[r][0],n[r]=t[r][1];return[e,n]};e.unzip=te;var tn=function(t){var n=v.prependAll(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):t}};e.prependAll=tn;var tr=function(t){var n=v.intersperse(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):t}};e.intersperse=tr;var ti=function(t){var n=v.rotate(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):t}};function tu(t){return function(e,n){if(void 0===n){var r,i=tu(t);return function(t){return i(e,t)}}for(var u=0;u<n.length;u++)if(r=n[u],t.equals(r,e))return!0;return!1}}e.rotate=ti,e.elem=tu;var to=function(t){var n=v.uniq(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):t}};e.uniq=to;var ta=function(t){var n=v.sortBy(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):t}};e.sortBy=ta;var tc=function(t){var n=v.chop(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):e.empty}};e.chop=tc;var tf=function(t){return function(n){return t>=1&&(0,e.isNonEmpty)(n)?v.splitAt(t)(n):(0,e.isEmpty)(n)?[n,e.empty]:[e.empty,n]}};e.splitAt=tf;var tl=function(t){var n=v.chunksOf(t);return function(t){return(0,e.isNonEmpty)(t)?n(t):e.empty}};e.chunksOf=tl;var ts=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,e.fromOption)(t.apply(void 0,n))}};e.fromOptionK=ts,e.comprehension=function(t,n,r){void 0===r&&(r=function(){return!0});var i=function(t,u){return(0,e.isNonEmpty)(u)?(0,e.flatMap)(v.head(u),function(n){return i((0,s.pipe)(t,(0,e.append)(n)),v.tail(u))}):r.apply(void 0,t)?[n.apply(void 0,t)]:e.empty};return i(e.empty,t)};var tp=function(t){return function(n){return(0,e.isEmpty)(n)?t:(0,e.isEmpty)(t)?n:n.concat(t)}};function td(t){var n=v.union(t);return function(r,i){if(void 0===i){var u=td(t);return function(t){return u(t,r)}}return(0,e.isNonEmpty)(r)&&(0,e.isNonEmpty)(i)?n(i)(r):(0,e.isNonEmpty)(r)?r:i}}function th(t){var e=tu(t);return function(n,r){if(void 0===r){var i=th(t);return function(t){return i(t,n)}}return n.filter(function(t){return e(t,r)})}}function tm(t){var e=tu(t);return function(n,r){if(void 0===r){var i=tm(t);return function(t){return i(t,n)}}return n.filter(function(t){return!e(t,r)})}}e.concatW=tp,e.concat=e.concatW,e.union=td,e.intersection=th,e.difference=tm;var tv=function(t,n){return(0,s.pipe)(t,(0,e.map)(n))},tg=function(t,n){return(0,s.pipe)(t,(0,e.mapWithIndex)(n))},ty=function(t,n){return(0,s.pipe)(t,(0,e.ap)(n))},t_=function(t,n){return(0,s.pipe)(t,(0,e.filter)(n))},tb=function(t,n){return(0,s.pipe)(t,(0,e.filterMap)(n))},tT=function(t,n){return(0,s.pipe)(t,(0,e.partition)(n))},tI=function(t,n){return(0,s.pipe)(t,(0,e.partitionMap)(n))},tS=function(t,n){return(0,s.pipe)(t,(0,e.partitionWithIndex)(n))},tx=function(t,n){return(0,s.pipe)(t,(0,e.partitionMapWithIndex)(n))},tw=function(t,n){return(0,s.pipe)(t,(0,e.alt)(n))},tR=function(t,n,r){return(0,s.pipe)(t,(0,e.reduce)(n,r))},tO=function(t){var n=(0,e.foldMap)(t);return function(t,e){return(0,s.pipe)(t,n(e))}},tM=function(t,n,r){return(0,s.pipe)(t,(0,e.reduceRight)(n,r))},tE=function(t,n,r){return(0,s.pipe)(t,(0,e.reduceWithIndex)(n,r))},tk=function(t){var n=(0,e.foldMapWithIndex)(t);return function(t,e){return(0,s.pipe)(t,n(e))}},tC=function(t,n,r){return(0,s.pipe)(t,(0,e.reduceRightWithIndex)(n,r))},tP=function(t,n){return(0,s.pipe)(t,(0,e.filterMapWithIndex)(n))},tW=function(t,n){return(0,s.pipe)(t,(0,e.filterWithIndex)(n))},tD=function(t,n){return(0,s.pipe)(t,(0,e.extend)(n))},tF=function(t){var n=(0,e.traverse)(t);return function(t,e){return(0,s.pipe)(t,n(e))}},tN=function(t){var n=(0,e.traverseWithIndex)(t);return function(t,e){return(0,s.pipe)(t,n(e))}},tA=function(t,n){return(0,s.pipe)(t,(0,e.chainRecDepthFirst)(n))};e._chainRecDepthFirst=tA;var tL=function(t,n){return(0,s.pipe)(t,(0,e.chainRecBreadthFirst)(n))};e._chainRecBreadthFirst=tL,e.of=v.of;var tU=function(){return e.empty};e.zero=tU;var tj=function(t){return function(e){return e.concat(t())}};e.altW=tj,e.alt=e.altW;var tq=function(t){return(0,e.flatMap)(function(n){return(0,s.pipe)(t,(0,e.map)(n))})};e.ap=tq,e.flatMap=(0,s.dual)(2,function(t,n){return(0,s.pipe)(t,(0,e.chainWithIndex)(function(t,e){return n(e,t)}))}),e.flatten=(0,e.flatMap)(s.identity);var tB=function(t){return function(e){return e.map(function(e){return t(e)})}};e.map=tB;var tY=function(t){return function(e){return e.map(function(e,n){return t(n,e)})}};e.mapWithIndex=tY;var tK=function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];"Left"===i._tag?e.push(i.left):n.push(i.right)}return(0,y.separated)(e,n)};e.separate=tK;var tG=function(t){return function(e){return e.filter(t)}};e.filter=tG;var tz=function(t){return function(e){for(var n=[],r=0;r<e.length;r++){var i=t(r,e[r]);d.isSome(i)&&n.push(i.value)}return n}};e.filterMapWithIndex=tz;var tV=function(t){return(0,e.filterMapWithIndex)(function(e,n){return t(n)})};e.filterMap=tV,e.compact=(0,e.filterMap)(s.identity);var tH=function(t){return(0,e.partitionWithIndex)(function(e,n){return t(n)})};e.partition=tH;var tZ=function(t){return function(e){for(var n=[],r=[],i=0;i<e.length;i++){var u=e[i];t(i,u)?r.push(u):n.push(u)}return(0,y.separated)(n,r)}};e.partitionWithIndex=tZ;var t$=function(t){return(0,e.partitionMapWithIndex)(function(e,n){return t(n)})};e.partitionMap=t$;var tX=function(t){return function(e){for(var n=[],r=[],i=0;i<e.length;i++){var u=t(i,e[i]);"Left"===u._tag?n.push(u.left):r.push(u.right)}return(0,y.separated)(n,r)}};e.partitionMapWithIndex=tX;var tJ=function(t){return function(e){return e.filter(function(e,n){return t(n,e)})}};e.filterWithIndex=tJ;var tQ=function(t){return function(e){return e.map(function(n,r){return t(e.slice(r))})}};e.extend=tQ,e.duplicate=(0,e.extend)(s.identity);var t0=function(t){return function(e){return function(n){return n.reduce(function(n,r,i){return t.concat(n,e(i,r))},t.empty)}}};e.foldMapWithIndex=t0;var t1=function(t,n){return(0,e.reduceWithIndex)(t,function(t,e,r){return n(e,r)})};e.reduce=t1;var t8=function(t){var n=(0,e.foldMapWithIndex)(t);return function(t){return n(function(e,n){return t(n)})}};e.foldMap=t8;var t2=function(t,e){return function(n){for(var r=n.length,i=t,u=0;u<r;u++)i=e(u,i,n[u]);return i}};e.reduceWithIndex=t2;var t7=function(t,n){return(0,e.reduceRightWithIndex)(t,function(t,e,r){return n(e,r)})};e.reduceRight=t7;var t3=function(t,e){return function(n){return n.reduceRight(function(t,n,r){return e(r,n,t)},t)}};e.reduceRightWithIndex=t3;var t5=function(t){var n=(0,e.traverseWithIndex)(t);return function(t){return n(function(e,n){return t(n)})}};e.traverse=t5;var t4=function(t){return function(n){return tR(n,t.of((0,e.zero)()),function(n,r){return t.ap(t.map(n,function(t){return function(n){return(0,s.pipe)(t,(0,e.append)(n))}}),r)})}};e.sequence=t4;var t9=function(t){return function(n){return(0,e.reduceWithIndex)(t.of((0,e.zero)()),function(r,i,u){return t.ap(t.map(i,function(t){return function(n){return(0,s.pipe)(t,(0,e.append)(n))}}),n(r,u))})}};e.traverseWithIndex=t9;var t6=function(t){var e=ed(t);return function(t){return function(n){return e(n,t)}}};e.wither=t6;var et=function(t){var e=eh(t);return function(t){return function(n){return e(n,t)}}};e.wilt=et;var ee=function(t,e){for(var n=[],r=t;;){var i=e(r);if(d.isSome(i)){var u=i.value,o=u[0],a=u[1];n.push(o),r=a}else break}return n};e.unfold=ee,e.URI="ReadonlyArray";var en=function(t){return{show:function(e){return"[".concat(e.map(t.show).join(", "),"]")}}};e.getShow=en;var er=function(){return{concat:function(t,n){return(0,e.isEmpty)(t)?n:(0,e.isEmpty)(n)?t:t.concat(n)}}};e.getSemigroup=er;var ei=function(){return{concat:(0,e.getSemigroup)().concat,empty:e.empty}};e.getMonoid=ei;var eu=function(t){return(0,f.fromEquals)(function(e,n){return e.length===n.length&&e.every(function(e,r){return t.equals(e,n[r])})})};e.getEq=eu;var eo=function(t){return(0,m.fromCompare)(function(e,n){for(var r=e.length,i=n.length,u=Math.min(r,i),o=0;o<u;o++){var a=t.compare(e[o],n[o]);if(0!==a)return a}return h.Ord.compare(r,i)})};e.getOrd=eo;var ea=function(t){var e=td(t);return{concat:function(t,n){return e(n)(t)}}};e.getUnionSemigroup=ea;var ec=function(t){return{concat:(0,e.getUnionSemigroup)(t).concat,empty:e.empty}};e.getUnionMonoid=ec;var ef=function(t){var e=th(t);return{concat:function(t,n){return e(n)(t)}}};e.getIntersectionSemigroup=ef;var el=function(t){var e=tm(t);return{concat:function(t,n){return e(n)(t)}}};e.getDifferenceMagma=el,e.Functor={URI:e.URI,map:tv},e.flap=(0,p.flap)(e.Functor),e.Pointed={URI:e.URI,of:e.of},e.FunctorWithIndex={URI:e.URI,map:tv,mapWithIndex:tg},e.Apply={URI:e.URI,map:tv,ap:ty},e.apFirst=(0,a.apFirst)(e.Apply),e.apSecond=(0,a.apSecond)(e.Apply),e.Applicative={URI:e.URI,map:tv,ap:ty,of:e.of},e.Chain={URI:e.URI,map:tv,ap:ty,chain:e.flatMap},e.Monad={URI:e.URI,map:tv,ap:ty,of:e.of,chain:e.flatMap},e.chainFirst=(0,c.chainFirst)(e.Chain),e.Unfoldable={URI:e.URI,unfold:e.unfold},e.Alt={URI:e.URI,map:tv,alt:tw},e.Zero={URI:e.URI,zero:e.zero},e.guard=(0,b.guard)(e.Zero,e.Pointed),e.Alternative={URI:e.URI,map:tv,ap:ty,of:e.of,alt:tw,zero:e.zero},e.Extend={URI:e.URI,map:tv,extend:tD},e.Compactable={URI:e.URI,compact:e.compact,separate:e.separate},e.Filterable={URI:e.URI,map:tv,compact:e.compact,separate:e.separate,filter:t_,filterMap:tb,partition:tT,partitionMap:tI},e.FilterableWithIndex={URI:e.URI,map:tv,mapWithIndex:tg,compact:e.compact,separate:e.separate,filter:t_,filterMap:tb,partition:tT,partitionMap:tI,partitionMapWithIndex:tx,partitionWithIndex:tS,filterMapWithIndex:tP,filterWithIndex:tW},e.Foldable={URI:e.URI,reduce:tR,foldMap:tO,reduceRight:tM},e.FoldableWithIndex={URI:e.URI,reduce:tR,foldMap:tO,reduceRight:tM,reduceWithIndex:tE,foldMapWithIndex:tk,reduceRightWithIndex:tC},e.Traversable={URI:e.URI,map:tv,reduce:tR,foldMap:tO,reduceRight:tM,traverse:tF,sequence:e.sequence},e.TraversableWithIndex={URI:e.URI,map:tv,mapWithIndex:tg,reduce:tR,foldMap:tO,reduceRight:tM,reduceWithIndex:tE,foldMapWithIndex:tk,reduceRightWithIndex:tC,traverse:tF,sequence:e.sequence,traverseWithIndex:tN};var es=function(t){return function(e){for(var n=o([],t(e),!0),r=[];n.length>0;){var i=n.shift();d.isLeft(i)?n.unshift.apply(n,t(i.left)):r.push(i.right)}return r}};e.chainRecDepthFirst=es,e.ChainRecDepthFirst={URI:e.URI,map:tv,ap:ty,chain:e.flatMap,chainRec:e._chainRecDepthFirst};var ep=function(t){return function(e){var n=t(e),r=[],i=[];function u(e){d.isLeft(e)?t(e.left).forEach(function(t){return r.push(t)}):i.push(e.right)}for(var o=0;o<n.length;o++)u(n[o]);for(;r.length>0;)u(r.shift());return i}};e.chainRecBreadthFirst=ep,e.ChainRecBreadthFirst={URI:e.URI,map:tv,ap:ty,chain:e.flatMap,chainRec:e._chainRecBreadthFirst};var ed=(0,_.witherDefault)(e.Traversable,e.Compactable),eh=(0,_.wiltDefault)(e.Traversable,e.Compactable);e.Witherable={URI:e.URI,map:tv,compact:e.compact,separate:e.separate,filter:t_,filterMap:tb,partition:tT,partitionMap:tI,reduce:tR,foldMap:tO,reduceRight:tM,traverse:tF,sequence:e.sequence,wither:ed,wilt:eh},e.filterE=(0,_.filterE)(e.Witherable),e.FromEither={URI:e.URI,fromEither:e.fromEither},e.fromEitherK=(0,l.fromEitherK)(e.FromEither),e.unsafeInsertAt=v.unsafeInsertAt;var em=function(t,n,r){return(0,e.isNonEmpty)(r)?v.unsafeUpdateAt(t,n,r):r};e.unsafeUpdateAt=em;var ev=function(t,e){var n=e.slice();return n.splice(t,1),n};e.unsafeDeleteAt=ev;var eg=function(t){return t.slice()};e.toArray=eg;var ey=function(t){return(0,e.isEmpty)(t)?e.empty:t.slice()};e.fromArray=ey,e.empty=v.empty,e.every=function(t){return function(e){return e.every(t)}};var e_=function(t){return function(e){return e.some(t)}};e.some=e_,e.exists=e.some;var eb=function(t){var n=v.intercalate(t);return function(r){return(0,e.match)(function(){return t.empty},n(r))}};e.intercalate=eb,e.Do=(0,e.of)(d.emptyRecord),e.bindTo=(0,p.bindTo)(e.Functor);var eT=(0,p.let)(e.Functor);e.let=eT,e.bind=(0,c.bind)(e.Chain),e.apS=(0,a.apS)(e.Apply),e.chain=e.flatMap,e.range=v.range,e.cons=v.cons,e.snoc=v.snoc,e.prependToAll=e.prependAll,e.readonlyArray={URI:e.URI,compact:e.compact,separate:e.separate,map:tv,ap:ty,of:e.of,chain:e.flatMap,filter:t_,filterMap:tb,partition:tT,partitionMap:tI,mapWithIndex:tg,partitionMapWithIndex:tx,partitionWithIndex:tS,filterMapWithIndex:tP,filterWithIndex:tW,alt:tw,zero:e.zero,unfold:e.unfold,reduce:tR,foldMap:tO,reduceRight:tM,traverse:tF,sequence:e.sequence,reduceWithIndex:tE,foldMapWithIndex:tk,reduceRightWithIndex:tC,traverseWithIndex:tN,extend:tD,wither:ed,wilt:eh}},84612:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},o=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.reduceRight=e.foldMap=e.reduce=e.mapWithIndex=e.map=e.flatten=e.duplicate=e.extend=e.flatMap=e.ap=e.alt=e.altW=e.of=e.chunksOf=e.splitAt=e.chop=e.chainWithIndex=e.intersperse=e.prependAll=e.unzip=e.zip=e.zipWith=e.modifyAt=e.updateAt=e.sort=e.groupBy=e.group=e.reverse=e.concat=e.concatW=e.fromArray=e.unappend=e.unprepend=e.range=e.replicate=e.makeBy=e.fromReadonlyArray=e.rotate=e.union=e.sortBy=e.uniq=e.unsafeUpdateAt=e.unsafeInsertAt=e.append=e.appendW=e.prepend=e.prependW=e.isOutOfBound=e.isNonEmpty=e.empty=void 0,e.groupSort=e.chain=e.intercalate=e.updateLast=e.modifyLast=e.updateHead=e.modifyHead=e.matchRight=e.matchLeft=e.concatAll=e.max=e.min=e.init=e.last=e.tail=e.head=e.apS=e.bind=e.let=e.bindTo=e.Do=e.Comonad=e.Alt=e.TraversableWithIndex=e.Traversable=e.FoldableWithIndex=e.Foldable=e.Monad=e.chainFirst=e.Chain=e.Applicative=e.apSecond=e.apFirst=e.Apply=e.FunctorWithIndex=e.Pointed=e.flap=e.Functor=e.getUnionSemigroup=e.getEq=e.getSemigroup=e.getShow=e.URI=e.extract=e.traverseWithIndex=e.sequence=e.traverse=e.reduceRightWithIndex=e.foldMapWithIndex=e.reduceWithIndex=void 0,e.readonlyNonEmptyArray=e.fold=e.prependToAll=e.insertAt=e.snoc=e.cons=e.unsnoc=e.uncons=e.filterWithIndex=e.filter=void 0;var a=n(93145),c=n(18222),f=n(8190),l=n(14632),s=n(8762),p=u(n(5309)),d=n(83235),h=u(n(98744));e.empty=p.emptyReadonlyArray,e.isNonEmpty=p.isNonEmpty;var m=function(t,e){return t<0||t>=e.length};e.isOutOfBound=m;var v=function(t){return function(e){return o([t],e,!0)}};e.prependW=v,e.prepend=e.prependW;var y=function(t){return function(e){return o(o([],e,!0),[t],!1)}};e.appendW=y,e.append=e.appendW;var _=function(t,n,r){if((0,e.isNonEmpty)(r)){var i=p.fromReadonlyNonEmptyArray(r);return i.splice(t,0,n),i}return[n]};e.unsafeInsertAt=_;var b=function(t,e,n){if(n[t]===e)return n;var r=p.fromReadonlyNonEmptyArray(n);return r[t]=e,r};e.unsafeUpdateAt=b;var T=function(t){return function(n){if(1===n.length)return n;for(var r=[(0,e.head)(n)],i=(0,e.tail)(n),u=function(e){r.every(function(n){return!t.equals(n,e)})&&r.push(e)},o=0;o<i.length;o++)u(i[o]);return r}};e.uniq=T;var I=function(t){if((0,e.isNonEmpty)(t)){var n=(0,d.getMonoid)();return(0,e.sort)(t.reduce(n.concat,n.empty))}return l.identity};e.sortBy=I;var S=function(t){var n=(0,e.uniq)(t);return function(t){return function(e){return n((0,l.pipe)(e,W(t)))}}};e.union=S;var x=function(t){return function(n){var r=n.length,i=Math.round(t)%r;if((0,e.isOutOfBound)(Math.abs(i),n)||0===i)return n;if(!(i<0))return(0,e.rotate)(i-r)(n);var u=(0,e.splitAt)(-i)(n),o=u[0],a=u[1];return(0,l.pipe)(a,W(o))}};e.rotate=x;var w=function(t){return(0,e.isNonEmpty)(t)?p.some(t):p.none};e.fromReadonlyArray=w;var R=function(t){return function(e){for(var n=Math.max(0,Math.floor(e)),r=[t(0)],i=1;i<n;i++)r.push(t(i));return r}};e.makeBy=R;var O=function(t){return(0,e.makeBy)(function(){return t})};e.replicate=O;var M=function(t,n){return t<=n?(0,e.makeBy)(function(e){return t+e})(n-t+1):[t]};e.range=M;var E=function(t){return[(0,e.head)(t),(0,e.tail)(t)]};e.unprepend=E;var k=function(t){return[(0,e.init)(t),(0,e.last)(t)]};e.unappend=k;var C=function(t){return(0,e.fromReadonlyArray)(t.slice())};function P(t){return function(e){return e.concat(t)}}function W(t,e){return e?t.concat(e):function(e){return e.concat(t)}}e.fromArray=C,e.concatW=P,e.concat=W;var D=function(t){return 1===t.length?t:o([(0,e.last)(t)],t.slice(0,-1).reverse(),!0)};function F(t){return function(n){var r=n.length;if(0===r)return e.empty;for(var i=[],u=n[0],o=[u],a=1;a<r;a++){var c=n[a];t.equals(c,u)?o.push(c):(i.push(o),o=[u=c])}return i.push(o),i}}e.reverse=D,e.group=F;var N=function(t){return function(e){for(var n={},r=0;r<e.length;r++){var i=e[r],u=t(i);p.has.call(n,u)?n[u].push(i):n[u]=[i]}return n}};e.groupBy=N;var A=function(t){return function(e){return 1===e.length?e:e.slice().sort(t.compare)}};e.sort=A;var L=function(t,n){return(0,e.modifyAt)(t,function(){return n})};e.updateAt=L;var U=function(t,n){return function(r){return(0,e.isOutOfBound)(t,r)?p.none:p.some((0,e.unsafeUpdateAt)(t,n(r[t]),r))}};e.modifyAt=U;var j=function(t,e,n){for(var r=[n(t[0],e[0])],i=Math.min(t.length,e.length),u=1;u<i;u++)r[u]=n(t[u],e[u]);return r};e.zipWith=j,e.zip=function t(n,r){return void 0===r?function(e){return t(e,n)}:(0,e.zipWith)(n,r,function(t,e){return[t,e]})};var q=function(t){for(var e=[t[0][0]],n=[t[0][1]],r=1;r<t.length;r++)e[r]=t[r][0],n[r]=t[r][1];return[e,n]};e.unzip=q;var B=function(t){return function(e){for(var n=[t,e[0]],r=1;r<e.length;r++)n.push(t,e[r]);return n}};e.prependAll=B;var Y=function(t){return function(n){var r=(0,e.tail)(n);return(0,e.isNonEmpty)(r)?(0,l.pipe)(r,(0,e.prependAll)(t),(0,e.prepend)((0,e.head)(n))):n}};e.intersperse=Y;var K=function(t){return function(n){for(var r=p.fromReadonlyNonEmptyArray(t(0,(0,e.head)(n))),i=1;i<n.length;i++)r.push.apply(r,t(i,n[i]));return r}};e.chainWithIndex=K;var G=function(t){return function(n){for(var r=t(n),i=r[0],u=r[1],o=[i],a=u;(0,e.isNonEmpty)(a);){var c=t(a),f=c[0],l=c[1];o.push(f),a=l}return o}};e.chop=G;var z=function(t){return function(n){var r=Math.max(1,t);return r>=n.length?[n,e.empty]:[(0,l.pipe)(n.slice(1,r),(0,e.prepend)((0,e.head)(n))),n.slice(r)]}};e.splitAt=z;var V=function(t){return(0,e.chop)((0,e.splitAt)(t))};e.chunksOf=V;var H=function(t,n){return(0,l.pipe)(t,(0,e.map)(n))},Z=function(t,n){return(0,l.pipe)(t,(0,e.mapWithIndex)(n))},$=function(t,n){return(0,l.pipe)(t,(0,e.ap)(n))},X=function(t,n){return(0,l.pipe)(t,(0,e.extend)(n))},J=function(t,n,r){return(0,l.pipe)(t,(0,e.reduce)(n,r))},Q=function(t){var n=(0,e.foldMap)(t);return function(t,e){return(0,l.pipe)(t,n(e))}},tt=function(t,n,r){return(0,l.pipe)(t,(0,e.reduceRight)(n,r))},te=function(t){var n=(0,e.traverse)(t);return function(t,e){return(0,l.pipe)(t,n(e))}},tn=function(t,n){return(0,l.pipe)(t,(0,e.alt)(n))},tr=function(t,n,r){return(0,l.pipe)(t,(0,e.reduceWithIndex)(n,r))},ti=function(t){var n=(0,e.foldMapWithIndex)(t);return function(t,e){return(0,l.pipe)(t,n(e))}},tu=function(t,n,r){return(0,l.pipe)(t,(0,e.reduceRightWithIndex)(n,r))},to=function(t){var n=(0,e.traverseWithIndex)(t);return function(t,e){return(0,l.pipe)(t,n(e))}};e.of=p.singleton;var ta=function(t){return function(e){return(0,l.pipe)(e,P(t()))}};e.altW=ta,e.alt=e.altW;var tc=function(t){return(0,e.flatMap)(function(n){return(0,l.pipe)(t,(0,e.map)(n))})};e.ap=tc,e.flatMap=(0,l.dual)(2,function(t,n){return(0,l.pipe)(t,(0,e.chainWithIndex)(function(t,e){return n(e,t)}))});var tf=function(t){return function(n){for(var r=(0,e.tail)(n),i=[t(n)];(0,e.isNonEmpty)(r);)i.push(t(r)),r=(0,e.tail)(r);return i}};e.extend=tf,e.duplicate=(0,e.extend)(l.identity),e.flatten=(0,e.flatMap)(l.identity);var tl=function(t){return(0,e.mapWithIndex)(function(e,n){return t(n)})};e.map=tl;var ts=function(t){return function(n){for(var r=[t(0,(0,e.head)(n))],i=1;i<n.length;i++)r.push(t(i,n[i]));return r}};e.mapWithIndex=ts;var tp=function(t,n){return(0,e.reduceWithIndex)(t,function(t,e,r){return n(e,r)})};e.reduce=tp;var td=function(t){return function(e){return function(n){return n.slice(1).reduce(function(n,r){return t.concat(n,e(r))},e(n[0]))}}};e.foldMap=td;var th=function(t,n){return(0,e.reduceRightWithIndex)(t,function(t,e,r){return n(e,r)})};e.reduceRight=th;var tm=function(t,e){return function(n){return n.reduce(function(t,n,r){return e(r,t,n)},t)}};e.reduceWithIndex=tm;var tv=function(t){return function(e){return function(n){return n.slice(1).reduce(function(n,r,i){return t.concat(n,e(i+1,r))},e(0,n[0]))}}};e.foldMapWithIndex=tv;var tg=function(t,e){return function(n){return n.reduceRight(function(t,n,r){return e(r,n,t)},t)}};e.reduceRightWithIndex=tg;var ty=function(t){var n=(0,e.traverseWithIndex)(t);return function(t){return n(function(e,n){return t(n)})}};e.traverse=ty;var t_=function(t){return(0,e.traverseWithIndex)(t)(l.SK)};e.sequence=t_;var tb=function(t){return function(n){return function(r){for(var i=t.map(n(0,(0,e.head)(r)),e.of),u=1;u<r.length;u++)i=t.ap(t.map(i,function(t){return function(n){return(0,l.pipe)(t,(0,e.append)(n))}}),n(u,r[u]));return i}}};e.traverseWithIndex=tb,e.extract=p.head,e.URI="ReadonlyNonEmptyArray";var tT=function(t){return{show:function(e){return"[".concat(e.map(t.show).join(", "),"]")}}};e.getShow=tT;var tI=function(){return{concat:W}};e.getSemigroup=tI;var tS=function(t){return(0,f.fromEquals)(function(e,n){return e.length===n.length&&e.every(function(e,r){return t.equals(e,n[r])})})};e.getEq=tS;var tx=function(t){var n=(0,e.union)(t);return{concat:function(t,e){return n(e)(t)}}};e.getUnionSemigroup=tx,e.Functor={URI:e.URI,map:H},e.flap=(0,s.flap)(e.Functor),e.Pointed={URI:e.URI,of:e.of},e.FunctorWithIndex={URI:e.URI,map:H,mapWithIndex:Z},e.Apply={URI:e.URI,map:H,ap:$},e.apFirst=(0,a.apFirst)(e.Apply),e.apSecond=(0,a.apSecond)(e.Apply),e.Applicative={URI:e.URI,map:H,ap:$,of:e.of},e.Chain={URI:e.URI,map:H,ap:$,chain:e.flatMap},e.chainFirst=(0,c.chainFirst)(e.Chain),e.Monad={URI:e.URI,map:H,ap:$,of:e.of,chain:e.flatMap},e.Foldable={URI:e.URI,reduce:J,foldMap:Q,reduceRight:tt},e.FoldableWithIndex={URI:e.URI,reduce:J,foldMap:Q,reduceRight:tt,reduceWithIndex:tr,foldMapWithIndex:ti,reduceRightWithIndex:tu},e.Traversable={URI:e.URI,map:H,reduce:J,foldMap:Q,reduceRight:tt,traverse:te,sequence:e.sequence},e.TraversableWithIndex={URI:e.URI,map:H,mapWithIndex:Z,reduce:J,foldMap:Q,reduceRight:tt,traverse:te,sequence:e.sequence,reduceWithIndex:tr,foldMapWithIndex:ti,reduceRightWithIndex:tu,traverseWithIndex:to},e.Alt={URI:e.URI,map:H,alt:tn},e.Comonad={URI:e.URI,map:H,extend:X,extract:e.extract},e.Do=(0,e.of)(p.emptyRecord),e.bindTo=(0,s.bindTo)(e.Functor);var tw=(0,s.let)(e.Functor);e.let=tw,e.bind=(0,c.bind)(e.Chain),e.apS=(0,a.apS)(e.Apply),e.head=e.extract,e.tail=p.tail;var tR=function(t){return t[t.length-1]};e.last=tR;var tO=function(t){return t.slice(0,-1)};e.init=tO;var tM=function(t){var e=h.min(t);return function(t){return t.reduce(e.concat)}};e.min=tM;var tE=function(t){var e=h.max(t);return function(t){return t.reduce(e.concat)}};e.max=tE;var tk=function(t){return function(e){return e.reduce(t.concat)}};e.concatAll=tk;var tC=function(t){return function(n){return t((0,e.head)(n),(0,e.tail)(n))}};e.matchLeft=tC;var tP=function(t){return function(n){return t((0,e.init)(n),(0,e.last)(n))}};e.matchRight=tP;var tW=function(t){return function(n){return o([t((0,e.head)(n))],(0,e.tail)(n),!0)}};e.modifyHead=tW;var tD=function(t){return(0,e.modifyHead)(function(){return t})};e.updateHead=tD;var tF=function(t){return function(n){return(0,l.pipe)((0,e.init)(n),(0,e.append)(t((0,e.last)(n))))}};e.modifyLast=tF;var tN=function(t){return(0,e.modifyLast)(function(){return t})};e.updateLast=tN;var tA=function(t){var n=(0,e.concatAll)(t);return function(t){return(0,l.flow)((0,e.intersperse)(t),n)}};e.intercalate=tA,e.chain=e.flatMap,e.groupSort=function(t){var n=(0,e.sort)(t),r=F(t);return function(t){return(0,e.isNonEmpty)(t)?r(n(t)):e.empty}},e.filter=function(t){return(0,e.filterWithIndex)(function(e,n){return t(n)})};var tL=function(t){return function(n){return(0,e.fromReadonlyArray)(n.filter(function(e,n){return t(n,e)}))}};e.filterWithIndex=tL,e.uncons=e.unprepend,e.unsnoc=e.unappend,e.cons=function(t,n){return void 0===n?(0,e.prepend)(t):(0,l.pipe)(n,(0,e.prepend)(t))};var tU=function(t,e){return(0,l.pipe)(t,W([e]))};e.snoc=tU;var tj=function(t,n){return function(r){return t<0||t>r.length?p.none:p.some((0,e.unsafeInsertAt)(t,n,r))}};e.insertAt=tj,e.prependToAll=e.prependAll,e.fold=e.concatAll,e.readonlyNonEmptyArray={URI:e.URI,of:e.of,map:H,mapWithIndex:Z,ap:$,chain:e.flatMap,extend:X,extract:e.extract,reduce:J,foldMap:Q,reduceRight:tt,traverse:te,sequence:e.sequence,reduceWithIndex:tr,foldMapWithIndex:ti,reduceRightWithIndex:tu,traverseWithIndex:to,alt:tn}},98744:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.semigroupProduct=e.semigroupSum=e.semigroupString=e.getFunctionSemigroup=e.semigroupAny=e.semigroupAll=e.fold=e.getIntercalateSemigroup=e.getMeetSemigroup=e.getJoinSemigroup=e.getDualSemigroup=e.getStructSemigroup=e.getTupleSemigroup=e.getFirstSemigroup=e.getLastSemigroup=e.getObjectSemigroup=e.semigroupVoid=e.concatAll=e.last=e.first=e.intercalate=e.tuple=e.struct=e.reverse=e.constant=e.max=e.min=void 0;var o=n(14632),a=u(n(5309)),c=u(n(73540)),f=u(n(83235)),l=function(t){return{concat:f.min(t)}};e.min=l;var s=function(t){return{concat:f.max(t)}};e.max=s;var p=function(t){return{concat:function(){return t}}};e.constant=p,e.reverse=c.reverse;var d=function(t){return{concat:function(e,n){var r={};for(var i in t)a.has.call(t,i)&&(r[i]=t[i].concat(e[i],n[i]));return r}}};e.struct=d;var h=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return{concat:function(e,n){return t.map(function(t,r){return t.concat(e[r],n[r])})}}};e.tuple=h;var m=function(t){return function(e){return{concat:function(n,r){return e.concat(n,e.concat(t,r))}}}};e.intercalate=m;var v=function(){return{concat:o.identity}};e.first=v;var y=function(){return{concat:function(t,e){return e}}};e.last=y,e.concatAll=c.concatAll,e.semigroupVoid=(0,e.constant)(void 0);var _=function(){return{concat:function(t,e){return Object.assign({},t,e)}}};e.getObjectSemigroup=_,e.getLastSemigroup=e.last,e.getFirstSemigroup=e.first,e.getTupleSemigroup=e.tuple,e.getStructSemigroup=e.struct,e.getDualSemigroup=e.reverse,e.getJoinSemigroup=e.max,e.getMeetSemigroup=e.min,e.getIntercalateSemigroup=e.intercalate,e.fold=function(t){var n=(0,e.concatAll)(t);return function(t,e){return void 0===e?n(t):n(t)(e)}},e.semigroupAll={concat:function(t,e){return t&&e}},e.semigroupAny={concat:function(t,e){return t||e}},e.getFunctionSemigroup=o.getSemigroup,e.semigroupString={concat:function(t,e){return t+e}},e.semigroupSum={concat:function(t,e){return t+e}},e.semigroupProduct={concat:function(t,e){return t*e}}},4773:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.right=e.left=e.flap=e.Functor=e.Bifunctor=e.URI=e.bimap=e.mapLeft=e.map=e.separated=void 0;var r=n(14632),i=n(8762),u=function(t,e){return{left:t,right:e}};e.separated=u;var o=function(t,n){return(0,r.pipe)(t,(0,e.map)(n))},a=function(t,n){return(0,r.pipe)(t,(0,e.mapLeft)(n))},c=function(t,n,i){return(0,r.pipe)(t,(0,e.bimap)(n,i))},f=function(t){return function(n){return(0,e.separated)((0,e.left)(n),t((0,e.right)(n)))}};e.map=f;var l=function(t){return function(n){return(0,e.separated)(t((0,e.left)(n)),(0,e.right)(n))}};e.mapLeft=l;var s=function(t,n){return function(r){return(0,e.separated)(t((0,e.left)(r)),n((0,e.right)(r)))}};e.bimap=s,e.URI="Separated",e.Bifunctor={URI:e.URI,mapLeft:a,bimap:c},e.Functor={URI:e.URI,map:o},e.flap=(0,i.flap)(e.Functor);var p=function(t){return t.left};e.left=p;var d=function(t){return t.right};e.right=d},69706:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.filterE=e.witherDefault=e.wiltDefault=void 0;var o=u(n(5309));e.wiltDefault=function(t,e){return function(n){var r=t.traverse(n);return function(t,i){return n.map(r(t,i),e.separate)}}},e.witherDefault=function(t,e){return function(n){var r=t.traverse(n);return function(t,i){return n.map(r(t,i),e.compact)}}},e.filterE=function(t){return function(e){var n=t.wither(e);return function(t){return function(r){return n(r,function(n){return e.map(t(n),function(t){return t?o.some(n):o.none})})}}}}},3899:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.guard=void 0,e.guard=function(t,e){return function(n){return n?e.of(void 0):t.zero()}}},14632:function(t,e){"use strict";var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.dual=e.getEndomorphismMonoid=e.not=e.SK=e.hole=e.pipe=e.untupled=e.tupled=e.absurd=e.decrement=e.increment=e.tuple=e.flow=e.flip=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.constant=e.unsafeCoerce=e.identity=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0;var r=function(t){return function(){return{meet:function(e,n){return function(r){return t.meet(e(r),n(r))}},join:function(e,n){return function(r){return t.join(e(r),n(r))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,n){return function(r){return t.implies(e(r),n(r))}},not:function(e){return function(n){return t.not(e(n))}}}}};e.getBooleanAlgebra=r;var i=function(t){return function(){return{concat:function(e,n){return function(r){return t.concat(e(r),n(r))}}}}};e.getSemigroup=i;var u=function(t){var n=(0,e.getSemigroup)(t);return function(){return{concat:n().concat,empty:function(){return t.empty}}}};e.getMonoid=u;var o=function(t){return{add:function(e,n){return function(r){return t.add(e(r),n(r))}},zero:function(){return t.zero},mul:function(e,n){return function(r){return t.mul(e(r),n(r))}},one:function(){return t.one}}};e.getSemiring=o;var a=function(t){var n=(0,e.getSemiring)(t);return{add:n.add,mul:n.mul,one:n.one,zero:n.zero,sub:function(e,n){return function(r){return t.sub(e(r),n(r))}}}};e.getRing=a;var c=function(t){return function(e){return e(t)}};function f(t){return t}function l(t){return function(){return t}}function s(t,e,n,r,i,u,o,a,c){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return n(e(t.apply(this,arguments)))};case 4:return function(){return r(n(e(t.apply(this,arguments))))};case 5:return function(){return i(r(n(e(t.apply(this,arguments)))))};case 6:return function(){return u(i(r(n(e(t.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(n(e(t.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(n(e(t.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(n(e(t.apply(this,arguments)))))))))}}}function p(t){return t+1}function d(t){return t-1}function h(t){throw Error("Called `absurd` function which should be uncallable")}e.apply=c,e.identity=f,e.unsafeCoerce=f,e.constant=l,e.constTrue=l(!0),e.constFalse=l(!1),e.constNull=l(null),e.constUndefined=l(void 0),e.constVoid=e.constUndefined,e.flip=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length>1?t(e[1],e[0]):function(n){return t(n)(e[0])}}},e.flow=s,e.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t},e.increment=p,e.decrement=d,e.absurd=h,e.tupled=function(t){return function(e){return t.apply(void 0,e)}},e.untupled=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t(e)}},e.pipe=function(t,e,n,r,i,u,o,a,c){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return n(e(t));case 4:return r(n(e(t)));case 5:return i(r(n(e(t))));case 6:return u(i(r(n(e(t)))));case 7:return o(u(i(r(n(e(t))))));case 8:return a(o(u(i(r(n(e(t)))))));case 9:return c(a(o(u(i(r(n(e(t))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},e.hole=h;var m=function(t,e){return e};e.SK=m,e.not=function(t){return function(e){return!t(e)}};var v=function(){return{concat:function(t,e){return s(t,e)},empty:f}};e.getEndomorphismMonoid=v;var y=function(t,e){var r="number"==typeof t?function(e){return e.length>=t}:t;return function(){var t=Array.from(arguments);return r(arguments)?e.apply(this,t):function(r){return e.apply(void 0,n([r],t,!1))}}};e.dual=y},5309:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.flatMapReader=e.flatMapTask=e.flatMapIO=e.flatMapEither=e.flatMapOption=e.flatMapNullable=e.liftOption=e.liftNullable=e.fromReadonlyNonEmptyArray=e.has=e.emptyRecord=e.emptyReadonlyArray=e.tail=e.head=e.isNonEmpty=e.singleton=e.right=e.left=e.isRight=e.isLeft=e.some=e.none=e.isSome=e.isNone=void 0;var i=n(14632),u=function(t){return"None"===t._tag};e.isNone=u;var o=function(t){return"Some"===t._tag};e.isSome=o,e.none={_tag:"None"};var a=function(t){return{_tag:"Some",value:t}};e.some=a;var c=function(t){return"Left"===t._tag};e.isLeft=c;var f=function(t){return"Right"===t._tag};e.isRight=f;var l=function(t){return{_tag:"Left",left:t}};e.left=l;var s=function(t){return{_tag:"Right",right:t}};e.right=s;var p=function(t){return[t]};e.singleton=p;var d=function(t){return t.length>0};e.isNonEmpty=d;var h=function(t){return t[0]};e.head=h;var m=function(t){return t.slice(1)};e.tail=m,e.emptyReadonlyArray=[],e.emptyRecord={},e.has=Object.prototype.hasOwnProperty;var v=function(t){return r([t[0]],t.slice(1),!0)};e.fromReadonlyNonEmptyArray=v;var y=function(t){return function(n,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=n.apply(void 0,i);return t.fromEither(null==o?(0,e.left)(r.apply(void 0,i)):(0,e.right)(o))}}};e.liftNullable=y;var _=function(t){return function(n,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=n.apply(void 0,i);return t.fromEither((0,e.isNone)(o)?(0,e.left)(r.apply(void 0,i)):(0,e.right)(o.value))}}};e.liftOption=_;var b=function(t,n){return(0,i.dual)(3,function(r,i,u){return n.flatMap(r,(0,e.liftNullable)(t)(i,u))})};e.flatMapNullable=b;var T=function(t,n){return(0,i.dual)(3,function(r,i,u){return n.flatMap(r,(0,e.liftOption)(t)(i,u))})};e.flatMapOption=T;var I=function(t,e){return(0,i.dual)(2,function(n,r){return e.flatMap(n,function(e){return t.fromEither(r(e))})})};e.flatMapEither=I;var S=function(t,e){return(0,i.dual)(2,function(n,r){return e.flatMap(n,function(e){return t.fromIO(r(e))})})};e.flatMapIO=S;var x=function(t,e){return(0,i.dual)(2,function(n,r){return e.flatMap(n,function(e){return t.fromTask(r(e))})})};e.flatMapTask=x;var w=function(t,e){return(0,i.dual)(2,function(n,r){return e.flatMap(n,function(e){return t.fromReader(r(e))})})};e.flatMapReader=w},40457:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Field=e.MonoidProduct=e.MonoidSum=e.SemigroupProduct=e.SemigroupSum=e.MagmaSub=e.Show=e.Bounded=e.Ord=e.Eq=e.isNumber=void 0;var n=function(t){return"number"==typeof t};e.isNumber=n,e.Eq={equals:function(t,e){return t===e}},e.Ord={equals:e.Eq.equals,compare:function(t,e){return t<e?-1:t>e?1:0}},e.Bounded={equals:e.Eq.equals,compare:e.Ord.compare,top:1/0,bottom:-1/0},e.Show={show:function(t){return JSON.stringify(t)}},e.MagmaSub={concat:function(t,e){return t-e}},e.SemigroupSum={concat:function(t,e){return t+e}},e.SemigroupProduct={concat:function(t,e){return t*e}},e.MonoidSum={concat:e.SemigroupSum.concat,empty:0},e.MonoidProduct={concat:e.SemigroupProduct.concat,empty:1},e.Field={add:e.SemigroupSum.concat,zero:0,mul:e.SemigroupProduct.concat,one:1,sub:e.MagmaSub.concat,degree:function(t){return 1},div:function(t,e){return t/e},mod:function(t,e){return t%e}}},67794:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pipe=e.pipeable=e.compose=e.promap=e.partitionMapWithIndex=e.partitionWithIndex=e.filterMapWithIndex=e.filterWithIndex=e.partitionMap=e.partition=e.filterMap=e.filter=e.alt=e.reduceRightWithIndex=e.foldMapWithIndex=e.reduceWithIndex=e.reduceRight=e.foldMap=e.reduce=e.extend=e.mapLeft=e.bimap=e.chain=e.ap=e.mapWithIndex=e.contramap=e.map=void 0;var r=n(93145),i=n(18222),u=n(14632);function o(t){return function(e){return function(n){return t.map(n,e)}}}function a(t){return function(e){return function(n){return t.contramap(n,e)}}}function c(t){return function(e){return function(n){return t.mapWithIndex(n,e)}}}function f(t){return function(e){return function(n){return t.ap(n,e)}}}function l(t){return function(e){return function(n){return t.chain(n,e)}}}function s(t){return function(e,n){return function(r){return t.bimap(r,e,n)}}}function p(t){return function(e){return function(n){return t.mapLeft(n,e)}}}function d(t){return function(e){return function(n){return t.extend(n,e)}}}function h(t){return function(e,n){return function(r){return t.reduce(r,e,n)}}}function m(t){return function(e){var n=t.foldMap(e);return function(t){return function(e){return n(e,t)}}}}function v(t){return function(e,n){return function(r){return t.reduceRight(r,e,n)}}}function y(t){return function(e,n){return function(r){return t.reduceWithIndex(r,e,n)}}}function _(t){return function(e){var n=t.foldMapWithIndex(e);return function(t){return function(e){return n(e,t)}}}}function b(t){return function(e,n){return function(r){return t.reduceRightWithIndex(r,e,n)}}}function T(t){return function(e){return function(n){return t.alt(n,e)}}}function I(t){return function(e){return function(n){return t.filter(n,e)}}}function S(t){return function(e){return function(n){return t.filterMap(n,e)}}}function x(t){return function(e){return function(n){return t.partition(n,e)}}}function w(t){return function(e){return function(n){return t.partitionMap(n,e)}}}function R(t){return function(e){return function(n){return t.filterWithIndex(n,e)}}}function O(t){return function(e){return function(n){return t.filterMapWithIndex(n,e)}}}function M(t){return function(e){return function(n){return t.partitionWithIndex(n,e)}}}function E(t){return function(e){return function(n){return t.partitionMapWithIndex(n,e)}}}function k(t){return function(e,n){return function(r){return t.promap(r,e,n)}}}function C(t){return function(e){return function(n){return t.compose(n,e)}}}e.map=o,e.contramap=a,e.mapWithIndex=c,e.ap=f,e.chain=l,e.bimap=s,e.mapLeft=p,e.extend=d,e.reduce=h,e.foldMap=m,e.reduceRight=v,e.reduceWithIndex=y,e.foldMapWithIndex=_,e.reduceRightWithIndex=b,e.alt=T,e.filter=I,e.filterMap=S,e.partition=x,e.partitionMap=w,e.filterWithIndex=R,e.filterMapWithIndex=O,e.partitionWithIndex=M,e.partitionMapWithIndex=E,e.promap=k,e.compose=C,e.pipeable=function(t){var e,n,P,W,D,F,N,A,L,U,j,q,B,Y,K,G,z={};if("function"==typeof t.map&&(z.map=o(t)),"function"==typeof t.contramap&&(z.contramap=a(t)),"function"==typeof t.mapWithIndex&&(z.mapWithIndex=c(t)),"function"==typeof t.ap&&(z.ap=f(t),z.apFirst=(0,r.apFirst)(t),z.apSecond=(0,r.apSecond)(t)),"function"==typeof t.chain&&(z.chain=l(t),z.chainFirst=(0,i.chainFirst)(t),z.flatten=z.chain(u.identity)),"function"==typeof t.bimap&&(z.bimap=s(t),z.mapLeft=p(t)),"function"==typeof t.extend&&(z.extend=d(t),z.duplicate=z.extend(u.identity)),"function"==typeof t.reduce&&(z.reduce=h(t),z.foldMap=m(t),z.reduceRight=v(t)),"function"==typeof t.reduceWithIndex&&(z.reduceWithIndex=y(t),z.foldMapWithIndex=_(t),z.reduceRightWithIndex=b(t)),"function"==typeof t.alt&&(z.alt=T(t)),"function"==typeof t.compact&&(z.compact=t.compact,z.separate=t.separate),"function"==typeof t.filter&&(z.filter=I(t),z.filterMap=S(t),z.partition=x(t),z.partitionMap=w(t)),"function"==typeof t.filterWithIndex&&(z.filterWithIndex=R(t),z.filterMapWithIndex=O(t),z.partitionWithIndex=M(t),z.partitionMapWithIndex=E(t)),"function"==typeof t.promap&&(z.promap=k(t)),"function"==typeof t.compose&&(z.compose=C(t)),"function"==typeof t.throwError){var V=function(e){return function(n){return"None"===n._tag?t.throwError(e()):t.of(n.value)}},H=function(e){return"Left"===e._tag?t.throwError(e.left):t.of(e.right)},Z=function(e,n){return function(r){return e(r)?t.of(r):t.throwError(n(r))}},$=function(e,n){return function(r){return t.chain(r,function(r){return e(r)?t.of(r):t.throwError(n(r))})}};z.fromOption=V,z.fromEither=H,z.fromPredicate=Z,z.filterOrElse=$}return z},e.pipe=u.pipe},8401:function(t,e){e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},58166:function(t){var e,n="html",r="head",i="body",u=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,a=/<body[^]*>/i,c=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},f=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},l="object"==typeof window&&window.DOMParser;if("function"==typeof l){var s=new l;c=f=function(t,e){return e&&(t="<"+e+">"+t+"</"+e+">"),s.parseFromString(t,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();c=function(t,e){return e?(p.documentElement.querySelector(e).innerHTML=t,p):(p.documentElement.innerHTML=t,p)}}var d="object"==typeof document?document.createElement("template"):{};d.content&&(e=function(t){return d.innerHTML=t,d.content.childNodes}),t.exports=function(t){var l,s,p,d,h=t.match(u);switch(h&&h[1]&&(l=h[1].toLowerCase()),l){case n:return s=f(t),!o.test(t)&&(p=s.querySelector(r))&&p.parentNode.removeChild(p),!a.test(t)&&(p=s.querySelector(i))&&p.parentNode.removeChild(p),s.querySelectorAll(n);case r:case i:if(d=(s=c(t)).querySelectorAll(l),a.test(t)&&o.test(t))return d[0].parentNode.childNodes;return d;default:if(e)return e(t);return(p=c(t,i).querySelector(i)).childNodes}}},50307:function(t,e,n){var r=n(58166),i=n(41594).formatDOM,u=/<(![a-zA-Z\s]+)>/;t.exports=function(t){if("string"!=typeof t)throw TypeError("First argument must be a string");if(""===t)return[];var e,n=t.match(u);return n&&n[1]&&(e=n[1]),i(r(t),null,e)}},41594:function(t,e,n){for(var r,i=n(79959),u=n(8401).CASE_SENSITIVE_TAG_NAMES,o=i.Comment,a=i.Element,c=i.ProcessingInstruction,f=i.Text,l={},s=0,p=u.length;s<p;s++)l[(r=u[s]).toLowerCase()]=r;function d(t){for(var e,n={},r=0,i=t.length;r<i;r++)n[(e=t[r]).name]=e.value;return n}function h(t){var e,n=l[e=t=t.toLowerCase()];return n||t}e.formatAttributes=d,e.formatDOM=function t(e,n,r){n=n||null;for(var i=[],u=0,l=e.length;u<l;u++){var s,p,m=e[u];switch(m.nodeType){case 1:s=h(m.nodeName),(p=new a(s,d(m.attributes))).children=t("template"===s?m.content.childNodes:m.childNodes,p);break;case 3:p=new f(m.nodeValue);break;case 8:p=new o(m.nodeValue);break;default:continue}var v=i[u-1]||null;v&&(v.next=p),p.parent=n,p.prev=v,p.next=null,i.push(p)}return r&&((p=new c(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,p.parent=n,i.unshift(p),i[1]&&(i[1].prev=i[0])),i}},72670:function(t,e,n){var r=n(79959),i=n(50307),u=n(13683),o=n(69239);i="function"==typeof i.default?i.default:i;var a={lowerCaseAttributeNames:!1};function c(t,e){if("string"!=typeof t)throw TypeError("First argument must be a string");return""===t?[]:o(i(t,(e=e||{}).htmlparser2||a),e)}c.domToReact=o,c.htmlToDOM=i,c.attributesToProps=u,c.Comment=r.Comment,c.Element=r.Element,c.ProcessingInstruction=r.ProcessingInstruction,c.Text=r.Text,t.exports=c,c.default=c},13683:function(t,e,n){var r=n(18701),i=n(54848),u=["checked","value"],o=["input","select","textarea"],a={reset:!0,submit:!0};function c(t){return r.possibleStandardNames[t]}t.exports=function(t,e){var n,f,l,s,p,d={},h=(t=t||{}).type&&a[t.type];for(n in t){if(l=t[n],r.isCustomAttribute(n)){d[n]=l;continue}if(s=c(f=n.toLowerCase())){switch(p=r.getPropertyInfo(s),-1===u.indexOf(s)||-1===o.indexOf(e)||h||(s=c("default"+f)),d[s]=l,p&&p.type){case r.BOOLEAN:d[s]=!0;break;case r.OVERLOADED_BOOLEAN:""===l&&(d[s]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(d[n]=l)}return i.setStyleProp(t.style,d),d}},69239:function(t,e,n){var r=n(2784),i=n(13683),u=n(54848),o=u.setStyleProp,a=u.canTextBeChildOfNode;function c(t){return u.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===t.type&&u.isCustomComponent(t.name,t.attribs)}t.exports=function t(e,n){for(var u,f,l,s,p,d=(n=n||{}).library||r,h=d.cloneElement,m=d.createElement,v=d.isValidElement,y=[],_="function"==typeof n.replace,b=n.trim,T=0,I=e.length;T<I;T++){if(u=e[T],_&&v(l=n.replace(u))){I>1&&(l=h(l,{key:l.key||T})),y.push(l);continue}if("text"===u.type){if((f=!u.data.trim().length)&&u.parent&&!a(u.parent)||b&&f)continue;y.push(u.data);continue}switch(s=u.attribs,c(u)?o(s.style,s):s&&(s=i(s,u.name)),p=null,u.type){case"script":case"style":u.children[0]&&(s.dangerouslySetInnerHTML={__html:u.children[0].data});break;case"tag":"textarea"===u.name&&u.children[0]?s.defaultValue=u.children[0].data:u.children&&u.children.length&&(p=t(u.children,n));break;default:continue}I>1&&(s.key=T),y.push(m(u.name,s,p))}return 1===y.length?y[0]:y}},54848:function(t,e,n){var r=n(2784),i=n(91618).default,u={reactCompat:!0},o=r.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.exports={PRESERVE_CUSTOM_ATTRIBUTES:o,invertObject:function(t,e){if(!t||"object"!=typeof t)throw TypeError("First argument must be an object");var n,r,i="function"==typeof e,u={},o={};for(n in t){if(r=t[n],i&&(u=e(n,r))&&2===u.length){o[u[0]]=u[1];continue}"string"==typeof r&&(o[r]=n)}return o},isCustomComponent:function(t,e){if(-1===t.indexOf("-"))return e&&"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(t,e){if(null!=t)try{e.style=i(t,u)}catch(n){e.style={}}},canTextBeChildOfNode:function(t){return!a.has(t.name)},elementsWithNoTextChildren:a}},6299:function(t){var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,c=/^\s+|\s+$/g;function f(t){return t?t.replace(c,""):""}t.exports=function(t,c){if("string"!=typeof t)throw TypeError("First argument must be a string");if(!t)return[];c=c||{};var l=1,s=1;function p(t){var e=t.match(n);e&&(l+=e.length);var r=t.lastIndexOf("\n");s=~r?t.length-r:s+t.length}function d(){var t={line:l,column:s};return function(e){return e.position=new h(t),_(),e}}function h(t){this.start=t,this.end={line:l,column:s},this.source=c.source}h.prototype.content=t;var m=[];function v(e){var n=Error(c.source+":"+l+":"+s+": "+e);if(n.reason=e,n.filename=c.source,n.line=l,n.column=s,n.source=t,c.silent)m.push(n);else throw n}function y(e){var n=e.exec(t);if(n){var r=n[0];return p(r),t=t.slice(r.length),n}}function _(){y(r)}function b(t){var e;for(t=t||[];e=T();)!1!==e&&t.push(e);return t}function T(){var e=d();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;""!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,""===t.charAt(n-1))return v("End of comment missing");var r=t.slice(2,n-2);return s+=2,p(r),t=t.slice(n),s+=2,e({type:"comment",comment:r})}}function I(){var t=d(),n=y(i);if(n){if(T(),!y(u))return v("property missing ':'");var r=y(o),c=t({type:"declaration",property:f(n[0].replace(e,"")),value:r?f(r[0].replace(e,"")):""});return y(a),c}}return _(),function(){var t,e=[];for(b(e);t=I();)!1!==t&&(e.push(t),b(e));return e}()}},23284:function(t,e,n){"use strict";n.r(e),n.d(e,{BigIntFromString:function(){return eS},BooleanFromNumber:function(){return ew},BooleanFromString:function(){return ea},DateFromISOString:function(){return t9},DateFromNumber:function(){return ee},DateFromUnixTime:function(){return ed},IntFromString:function(){return em},Json:function(){return ey},JsonArray:function(){return ev},JsonFromString:function(){return e_},JsonRecord:function(){return eg},NonEmptyString:function(){return o},NumberFromString:function(){return eh},UUID:function(){return eu},clone:function(){return et},date:function(){return y},either:function(){return eI},fromNewtype:function(){return t2},fromNullable:function(){return eo},fromRefinement:function(){return v},getLenses:function(){return es},mapFromEntries:function(){return eM},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return p},option:function(){return t5},optionFromNullable:function(){return t4},readonlyMapFromEntries:function(){return eE},readonlyNonEmptyArray:function(){return t6},readonlySetFromArray:function(){return m},regexp:function(){return ep},setFromArray:function(){return h},withEncode:function(){return ex},withFallback:function(){return er},withMessage:function(){return ec},withValidate:function(){return en}});var r={};n.r(r),n.d(r,{Category:function(){return tN},Invariant:function(){return tD},Semigroupoid:function(){return tF},URI:function(){return tW},asOptional:function(){return to},asTraversal:function(){return ta},atKey:function(){return tx},component:function(){return tb},compose:function(){return tc},composeIso:function(){return tl},composeLens:function(){return tf},composeOptional:function(){return tp},composePrism:function(){return ts},composeTraversal:function(){return td},filter:function(){return tg},findFirst:function(){return tE},findFirstNonEmpty:function(){return tk},fromNullable:function(){return tv},id:function(){return tu},imap:function(){return tC},index:function(){return tT},indexNonEmpty:function(){return tI},key:function(){return tS},left:function(){return tO},lens:function(){return ti},modify:function(){return th},modifyF:function(){return tm},prop:function(){return ty},props:function(){return t_},right:function(){return tR},some:function(){return tw},traverse:function(){return tM}});var i=n(47361),u=n(87830),o=u.brand(u.string,function(t){return t.length>0},"NonEmptyString"),a=n(43586),c=n(1358),f=n(18896),l=n(81878),s=n(20492);function p(t,e){void 0===e&&(e="NonEmptyArray<"+t.name+">");var n=u.array(t);return new u.Type(e,function(t){return n.is(t)&&(0,c.isNonEmpty)(t)},function(t,e){return(0,f.pipe)(n.validate(t,e),(0,l.chain)(function(n){var r=(0,a.fromArray)(n);return(0,s.isNone)(r)?u.failure(t,e):u.success(r.value)}))},(0,a.map)(t.encode))}var d=n(1214);function h(t,e,n){void 0===n&&(n="Set<"+t.name+">");var r=u.array(t),i=(0,d.toArray)(e),o=(0,d.fromArray)(e);return new u.Type(n,function(e){return e instanceof Set&&(0,d.every)(t.is)(e)},function(t,e){return(0,f.pipe)(r.validate(t,e),(0,l.chain)(function(n){var r=o(n);return r.size!==n.length?u.failure(t,e):u.success(r)}))},function(t){return r.encode(i(t))})}function m(t,e,n){return void 0===n&&(n="ReadonlySet<"+t.name+">"),h(t,e,n)}function v(t,e){return new u.Type(t,e,function(t,n){return e(t)?u.success(t):u.failure(t,n)},u.identity)}var y=v("Date",function(t){return t instanceof Date}),_=n(42275),b=n(90817),T=n(96576),I=n(31583),S=n(97054),x=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},w=function(t,e){return{get:t,reverseGet:e}},R=function(t){return k(t.get,(0,_.flow)(t.reverseGet,_.constant))},O=function(t){return q((0,_.flow)(t.get,s.some),t.reverseGet)},M=function(t){return V((0,_.flow)(t.get,s.some),(0,_.flow)(t.reverseGet,_.constant))},E=function(t){return Q(function(e){return function(n){return function(r){return e.map(n(t.get(r)),function(e){return t.reverseGet(e)})}}})},k=function(t,e){return{get:t,set:e}},C=function(t){return V((0,_.flow)(t.get,s.some),t.set)},P=function(t){return Q(function(e){return function(n){return function(r){return e.map(n(t.get(r)),function(e){return t.set(e)(r)})}}})},W=function(t){return function(e){return k(function(n){return t.get(e.get(n))},function(n){return function(r){return e.set(t.set(n)(e.get(r)))(r)}})}},D=function(t){return function(e){return q((0,_.flow)(e.getOption,s.chain(t.getOption)),(0,_.flow)(t.reverseGet,e.reverseGet))}},F=function(t){return function(e){return X(B(t))(C(e))}},N=function(){return k(_.identity,_.constant)},A=function(t){return function(e){return k(function(n){return e.get(n)[t]},function(n){return function(r){var i,u=e.get(r);return n===u[t]?r:e.set(Object.assign({},u,((i={})[t]=n,i)))(r)}})}},L=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return k(function(n){for(var r=e.get(n),i={},u=0;u<t.length;u++){var o=t[u];i[o]=r[o]}return i},function(n){return function(r){for(var i=e.get(r),u=0;u<t.length;u++){var o=t[u];if(n[o]!==i[o])return e.set(Object.assign({},i,n))(r)}return r}})}},U=function(t){return function(e){return k(function(n){return e.get(n)[t]},function(n){return function(r){var i=e.get(r);if(n===i[t])return r;var u=i.slice();return u[t]=n,e.set(u)(r)}})}},j=function(t){return function(e){return(0,f.pipe)(e,W(tr(function(t){return k(function(e){return S.lookup(t,e)},s.fold(function(){return S.deleteAt(t)},function(e){return S.insertAt(t,e)}))}).at(t)))}},q=function(t,e){return{getOption:t,reverseGet:e}},B=function(t){return V(t.getOption,function(e){return K(e)(t)})},Y=function(t){return Q(function(e){return function(n){return function(r){return(0,f.pipe)(t.getOption(r),s.fold(function(){return e.of(r)},function(i){return e.map(n(i),function(e){return K(e)(t)(r)})}))}}})},K=function(t){var e;return e=function(){return t},function(t){var n,r,i=(n=t,function(t){return(0,f.pipe)(n.getOption(t),s.map(function(r){var i=e(r);return i===r?t:n.reverseGet(i)}))});return function(t){return(0,f.pipe)(i(t),s.getOrElse(function(){return t}))}}},G=function(t){return q(s.fromPredicate(t),_.identity)},z=function(){return q(_.identity,s.some)},V=function(t,e){return{getOption:t,set:e}},H=function(t){return Q(function(e){return function(n){return function(r){return(0,f.pipe)(t.getOption(r),s.fold(function(){return e.of(r)},function(i){return e.map(n(i),function(e){return t.set(e)(r)})}))}}})},Z=function(t){return function(e){return function(n){return(0,f.pipe)(e.getOption(n),s.map(function(r){var i=t(r);return i===r?n:e.set(i)(n)}))}}},$=function(t){return function(e){var n=Z(t)(e);return function(t){return(0,f.pipe)(n(t),s.getOrElse(function(){return t}))}}},X=function(t){return function(e){return V((0,_.flow)(e.getOption,s.chain(t.getOption)),function(n){return $(t.set(n))(e)})}},J=function(t,e,n){if(n[t]===e)return n;var r=x([n[0]],n.slice(1),!0);return r[t]=e,r},Q=function(t){return{modifyF:t}};function tt(t){return function(e){return Q(function(n){return function(r){return e.modifyF(n)(t.modifyF(n)(r))}})}}var te={URI:"Identity",map:function(t,e){return e(t)},of:_.identity,ap:function(t,e){return t(e)}},tn=function(t){return{index:t}},tr=function(t){return{at:t}},ti=k,tu=N,to=C,ta=P,tc=W,tf=tc,tl=(0,_.flow)(R,tc),ts=F,tp=function(t){return(0,_.flow)(to,X(t))},td=function(t){return(0,_.flow)(ta,tt(t))},th=function(t){return function(e){return function(n){var r=e.get(n),i=t(r);return r===i?n:e.set(i)(n)}}};function tm(t){return function(e){return function(n){return function(r){return(0,f.pipe)(n.get(r),e,function(e){return t.map(e,function(t){return n.set(t)(r)})})}}}}var tv=function(t){return ts(q(s.fromNullable,_.identity))(t)};function tg(t){return ts(G(t))}var ty=A,t_=L,tb=U,tT=function(t){var e;return(0,_.flow)(to,function(e){return(0,f.pipe)(e,X(tn(function(t){return V(function(e){return I.lookup(t,e)},function(e){return function(n){return(0,f.pipe)(I.lookup(t,n),s.fold(function(){return n},function(){return I.unsafeUpdateAt(t,e,n)}))}})}).index(t)))})},tI=function(t){var e;return(0,_.flow)(to,function(e){return(0,f.pipe)(e,X(tn(function(t){return V(function(e){return I.lookup(t,e)},function(e){return function(n){return(0,f.pipe)(I.lookup(t,n),s.fold(function(){return n},function(){return J(t,e,n)}))}})}).index(t)))})},tS=function(t){var e;return(0,_.flow)(to,function(e){return(0,f.pipe)(e,X(tn(function(t){return V(function(e){return S.lookup(t,e)},function(e){return function(n){return n[t]===e||s.isNone(S.lookup(t,n))?n:S.insertAt(t,e)(n)}})}).index(t)))})},tx=j,tw=ts(z()),tR=ts(q(s.fromEither,l.right)),tO=ts(q(function(t){return l.isLeft(t)?s.some(t.left):s.none},l.left));function tM(t){var e,n;return(0,_.flow)(ta,tt(Q(function(e){var n,r="Identity"===e.URI?t.map:t.traverse(e);return function(t){return function(e){return r(e,t)}}})))}function tE(t){var e;return tp(V(I.findFirst(t),function(e){return function(n){return(0,f.pipe)(I.findIndex(t)(n),s.fold(function(){return n},function(t){return I.unsafeUpdateAt(t,e,n)}))}}))}function tk(t){var e;return tp(V(I.findFirst(t),function(e){return function(n){return(0,f.pipe)(I.findIndex(t)(n),s.fold(function(){return n},function(t){return J(t,e,n)}))}}))}var tC=function(t,e){return function(n){return tP(n,t,e)}},tP=function(t,e,n){return ti((0,_.flow)(t.get,e),(0,_.flow)(n,t.set))},tW="monocle-ts/Lens",tD={URI:tW,imap:tP},tF={URI:tW,compose:function(t,e){return tc(t)(e)}},tN={URI:tW,compose:tF.compose,id:tu},tA=function(t){return function(e){return e.modifyF(te)(t)}},tL=function(t){return new tG(t.get,t.reverseGet)},tU=function(t){return new tz(t.get,t.set)},tj=function(t){return new tV(t.getOption,t.reverseGet)},tq=function(t){return new tZ(t.getOption,t.set)},tB=function(t){return new t$(t.modifyF)},tY=function(t){return new tJ(function(e){return tq(t.index(e))})},tK=function(t,e,n){var r;return n===t[e]?t:Object.assign({},t,((r={})[e]=n,r))},tG=function(){function t(t,e){this.get=t,this.reverseGet=e,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return t.prototype.reverse=function(){var t;return tL(w(this.reverseGet,this.get))},t.prototype.modify=function(t){var e,n;return n=this,function(e){return n.reverseGet(t(n.get(e)))}},t.prototype.asLens=function(){return tU(R(this))},t.prototype.asPrism=function(){return tj(O(this))},t.prototype.asOptional=function(){return tq(M(this))},t.prototype.asTraversal=function(){return tB(E(this))},t.prototype.asFold=function(){var t=this;return new t0(function(){return function(e){return function(n){return e(t.get(n))}}})},t.prototype.asGetter=function(){var t=this;return new tQ(function(e){return t.get(e)})},t.prototype.asSetter=function(){var t=this;return new t1(function(e){return t.modify(e)})},t.prototype.compose=function(t){var e;return tL((e=t,function(t){return w((0,_.flow)(t.get,e.get),(0,_.flow)(e.reverseGet,t.reverseGet))})(this))},t.prototype.composeIso=function(t){return this.compose(t)},t.prototype.composeLens=function(t){return tU((0,f.pipe)(this,R,tc(t)))},t.prototype.composePrism=function(t){return tj((0,f.pipe)(this,O,D(t)))},t.prototype.composeOptional=function(t){return tq((0,f.pipe)(this,M,X(t)))},t.prototype.composeTraversal=function(t){return tB((0,f.pipe)(this,E,tt(t)))},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeGetter=function(t){return this.asGetter().compose(t)},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t}(),tz=function(){function t(t,e){this.get=t,this.set=e,this._tag="Lens"}return t.fromPath=function(){var e=t.fromProp();return function(t){var n=e(t[0]);return t.slice(1).reduce(function(t,n){return t.compose(e(n))},n)}},t.fromProp=function(){return function(t){return tU((0,f.pipe)(tu(),ty(t)))}},t.fromProps=function(){return function(t){return tU((0,f.pipe)(tu(),t_.apply(r,t)))}},t.fromNullableProp=function(){return function(e,n){return new t(function(t){var r=(0,s.fromNullable)(t[e]);return(0,s.isNone)(r)?n:r.value},function(t){return function(n){return tK(n,e,t)}})}},t.prototype.modify=function(t){return th(t)(this)},t.prototype.asOptional=function(){return tq(to(this))},t.prototype.asTraversal=function(){return tB(ta(this))},t.prototype.asSetter=function(){var t=this;return new t1(function(e){return t.modify(e)})},t.prototype.asGetter=function(){var t=this;return new tQ(function(e){return t.get(e)})},t.prototype.asFold=function(){var t=this;return new t0(function(){return function(e){return function(n){return e(t.get(n))}}})},t.prototype.compose=function(t){return tU(tc(t)(this))},t.prototype.composeLens=function(t){return this.compose(t)},t.prototype.composeGetter=function(t){return this.asGetter().compose(t)},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeOptional=function(t){return tq((0,f.pipe)(this,to,X(t)))},t.prototype.composeTraversal=function(t){return tB((0,f.pipe)(this,ta,tt(t)))},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t.prototype.composeIso=function(t){return tU((0,f.pipe)(this,tc((0,f.pipe)(t,R))))},t.prototype.composePrism=function(t){return tq(ts(t)(this))},t}(),tV=function(){function t(t,e){this.getOption=t,this.reverseGet=e,this._tag="Prism"}return t.fromPredicate=function(t){return tj(G(t))},t.some=function(){return tH},t.prototype.modify=function(t){var e=this;return function(n){var r=e.modifyOption(t)(n);return(0,s.isNone)(r)?n:r.value}},t.prototype.modifyOption=function(t){var e=this;return function(n){return s.option.map(e.getOption(n),function(r){var i=t(r);return i===r?n:e.reverseGet(i)})}},t.prototype.set=function(t){return this.modify(function(){return t})},t.prototype.asOptional=function(){return tq(B(this))},t.prototype.asTraversal=function(){return tB(Y(this))},t.prototype.asSetter=function(){var t=this;return new t1(function(e){return t.modify(e)})},t.prototype.asFold=function(){var t=this;return new t0(function(e){return function(n){return function(r){var i=t.getOption(r);return(0,s.isNone)(i)?e.empty:n(i.value)}}})},t.prototype.compose=function(t){return tj(D(t)(this))},t.prototype.composePrism=function(t){return this.compose(t)},t.prototype.composeOptional=function(t){return tq((0,f.pipe)(this,B,X(t)))},t.prototype.composeTraversal=function(t){return tB((0,f.pipe)(this,Y,tt(t)))},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t.prototype.composeIso=function(t){return tj((0,f.pipe)(this,D((0,f.pipe)(t,O))))},t.prototype.composeLens=function(t){var e;return tq((e=t,function(t){return X(C(e))(B(t))})(this))},t.prototype.composeGetter=function(t){return this.asFold().compose(t.asFold())},t}(),tH=new tV(_.identity,s.some),tZ=function(){function t(t,e){this.getOption=t,this.set=e,this._tag="Optional"}return t.fromPath=function(){var e=t.fromNullableProp();return function(t){var n=e(t[0]);return t.slice(1).reduce(function(t,n){return t.compose(e(n))},n)}},t.fromNullableProp=function(){return function(e){return new t(function(t){return(0,s.fromNullable)(t[e])},function(t){return function(n){return null==n[e]?n:tK(n,e,t)}})}},t.fromOptionProp=function(){var t=tz.fromProp();return function(e){return t(e).composePrism(tH)}},t.prototype.modify=function(t){return $(t)(this)},t.prototype.modifyOption=function(t){return Z(t)(this)},t.prototype.asTraversal=function(){return tB(H(this))},t.prototype.asFold=function(){var t=this;return new t0(function(e){return function(n){return function(r){var i=t.getOption(r);return(0,s.isNone)(i)?e.empty:n(i.value)}}})},t.prototype.asSetter=function(){var t=this;return new t1(function(e){return t.modify(e)})},t.prototype.compose=function(t){return tq(X(t)(this))},t.prototype.composeOptional=function(t){return this.compose(t)},t.prototype.composeTraversal=function(t){return tB((0,f.pipe)(this,H,tt(t)))},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t.prototype.composeLens=function(t){return tq((0,f.pipe)(this,X((0,f.pipe)(t,to))))},t.prototype.composePrism=function(t){return tq((0,f.pipe)(this,X((0,f.pipe)(t,B))))},t.prototype.composeIso=function(t){return tq((0,f.pipe)(this,X((0,f.pipe)(t,M))))},t.prototype.composeGetter=function(t){return this.asFold().compose(t.asFold())},t}(),t$=function(){function t(t){this.modifyF=t,this._tag="Traversal"}return t.prototype.modify=function(t){return tA(t)(this)},t.prototype.set=function(t){var e;return tA(function(){return t})(this)},t.prototype.filter=function(t){var e;return tB(tt(Y(G(t)))(this))},t.prototype.asFold=function(){var t=this;return new t0(function(e){return function(n){return t.modifyF((0,b.getApplicative)(e))(function(t){return(0,b.make)(n(t))})}})},t.prototype.asSetter=function(){var t=this;return new t1(function(e){return t.modify(e)})},t.prototype.compose=function(t){return tB(tt(t)(this))},t.prototype.composeTraversal=function(t){return this.compose(t)},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeSetter=function(t){return this.asSetter().compose(t)},t.prototype.composeOptional=function(t){return this.compose(t.asTraversal())},t.prototype.composeLens=function(t){return tB((0,f.pipe)(this,tt((0,f.pipe)(t,ta))))},t.prototype.composePrism=function(t){return tB((0,f.pipe)(this,tt((0,f.pipe)(t,Y))))},t.prototype.composeIso=function(t){return tB((0,f.pipe)(this,tt((0,f.pipe)(t,E))))},t.prototype.composeGetter=function(t){return this.asFold().compose(t.asFold())},t}(),tX=function(){function t(t){this.at=t,this._tag="At"}return t.prototype.fromIso=function(t){var e,n,r;return r=this,n=tr(function(e){return(0,f.pipe)(t,R,W(r.at(e)))}),new tX(function(t){return tU(n.at(t))})},t}(),tJ=function(){function t(t){this.index=t,this._tag="Index"}return t.fromAt=function(t){var e;return tY(tn(function(e){return F(z())(t.at(e))}))},t.prototype.fromIso=function(t){var e,n;return tY((n=this,tn(function(e){return(0,f.pipe)(t,M,X(n.index(e)))})))},t}(),tQ=function(){function t(t){this.get=t,this._tag="Getter"}return t.prototype.asFold=function(){var t=this;return new t0(function(){return function(e){return function(n){return e(t.get(n))}}})},t.prototype.compose=function(e){var n=this;return new t(function(t){return e.get(n.get(t))})},t.prototype.composeGetter=function(t){return this.compose(t)},t.prototype.composeFold=function(t){return this.asFold().compose(t)},t.prototype.composeLens=function(t){return this.compose(t.asGetter())},t.prototype.composeIso=function(t){return this.compose(t.asGetter())},t.prototype.composeTraversal=function(t){return this.asFold().compose(t.asFold())},t.prototype.composeOptional=function(t){return this.asFold().compose(t.asFold())},t.prototype.composePrism=function(t){return this.asFold().compose(t.asFold())},t}(),t0=function(){function t(t){this.foldMap=t,this._tag="Fold",this.getAll=t(c.getMonoid())(c.of),this.exist=t(T.monoidAny),this.all=t(T.monoidAll),this.foldMapFirst=t((0,s.getFirstMonoid)())}return t.prototype.compose=function(e){var n=this;return new t(function(t){return function(r){return n.foldMap(t)(e.foldMap(t)(r))}})},t.prototype.composeFold=function(t){return this.compose(t)},t.prototype.composeGetter=function(t){return this.compose(t.asFold())},t.prototype.composeTraversal=function(t){return this.compose(t.asFold())},t.prototype.composeOptional=function(t){return this.compose(t.asFold())},t.prototype.composeLens=function(t){return this.compose(t.asFold())},t.prototype.composePrism=function(t){return this.compose(t.asFold())},t.prototype.composeIso=function(t){return this.compose(t.asFold())},t.prototype.find=function(t){return this.foldMapFirst((0,s.fromPredicate)(t))},t.prototype.headOption=function(t){return this.find(function(){return!0})(t)},t}(),t1=function(){function t(t){this.modify=t,this._tag="Setter"}return t.prototype.set=function(t){return this.modify((0,_.constant)(t))},t.prototype.compose=function(e){var n=this;return new t(function(t){return n.modify(e.modify(t))})},t.prototype.composeSetter=function(t){return this.compose(t)},t.prototype.composeTraversal=function(t){return this.compose(t.asSetter())},t.prototype.composeOptional=function(t){return this.compose(t.asSetter())},t.prototype.composeLens=function(t){return this.compose(t.asSetter())},t.prototype.composePrism=function(t){return this.compose(t.asSetter())},t.prototype.composeIso=function(t){return this.compose(t.asSetter())},t}(),t8=new tG(_.unsafeCoerce,_.unsafeCoerce);function t2(t,e){return void 0===e&&(e="fromNewtype("+t.name+")"),new u.Type(e,function(e){return t.is(e)},function(e,n){return(0,f.pipe)(t.validate(e,n),(0,l.map)(t8.wrap))},function(e){return t.encode(t8.unwrap(e))})}var t7=u.strict({_tag:u.literal("None")},"None"),t3=u.literal("Some");function t5(t,e){return void 0===e&&(e="Option<"+t.name+">"),u.union([t7,u.strict({_tag:t3,value:t},"Some<"+t.name+">")],e)}function t4(t,e){return void 0===e&&(e="Option<"+t.name+">"),new u.Type(e,t5(t).is,function(e,n){return null==e?u.success(s.none):(0,f.pipe)(t.validate(e,n),(0,l.map)(s.some))},function(e){return s.toNullable((0,f.pipe)(e,s.map(t.encode)))})}var t9=new u.Type("DateFromISOString",function(t){return t instanceof Date},function(t,e){return(0,f.pipe)(u.string.validate(t,e),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?u.failure(t,e):u.success(r)}))},function(t){return t.toISOString()});function t6(t,e){return void 0===e&&(e="ReadonlyNonEmptyArray<"+t.name+">"),p(t,e)}function et(t){var e=Object.create(Object.getPrototypeOf(t));return Object.assign(e,t),e}var ee=new u.Type("DateFromNumber",function(t){return t instanceof Date},function(t,e){return(0,f.pipe)(u.number.validate(t,e),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?u.failure(t,e):u.success(r)}))},function(t){return t.getTime()});function en(t,e,n){void 0===n&&(n=t.name);var r=et(t);return r.validate=e,r.decode=function(t){return e(t,u.getDefaultContext(r))},r.name=n,r}function er(t,e,n){return void 0===n&&(n="withFallback("+t.name+")"),en(t,function(n,r){return(0,l.orElse)(function(){return u.success(e)})(t.validate(n,r))},n)}var ei=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,eu=u.brand(u.string,function(t){return ei.test(t)},"UUID");function eo(t,e,n){return void 0===n&&(n="fromNullable("+t.name+")"),en(t,function(n,r){return null==n?u.success(e):t.validate(n,r)},n)}var ea=new u.Type("BooleanFromString",u.boolean.is,function(t,e){return(0,f.pipe)(u.string.validate(t,e),(0,l.chain)(function(n){return"true"===n?u.success(!0):"false"===n?u.success(!1):u.failure(t,e)}))},String);function ec(t,e){return en(t,function(n,r){return(0,l.mapLeft)(function(){return[{value:n,context:r,message:e(n,r),actual:n}]})(t.validate(n,r))})}function ef(t){switch(t._tag){case"InterfaceType":return t.props;case"ExactType":return ef(t.type)}}var el=tz.fromProp();function es(t){var e={};for(var n in ef(t))e[n]=el(n);return e}var ep=v("RegExp",function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}),ed=new u.Type("DateFromUnixTime",function(t){return t instanceof Date},function(t,e){return(0,f.pipe)(u.Int.validate(t,e),(0,l.chain)(function(n){var r=new Date(1e3*n);return isNaN(r.getTime())?u.failure(t,e):u.success(r)}))},function(t){return Math.floor(t.getTime()/1e3)}),eh=new u.Type("NumberFromString",u.number.is,function(t,e){return(0,f.pipe)(u.string.validate(t,e),(0,l.chain)(function(n){var r=+n;return isNaN(r)||""===n.trim()?u.failure(t,e):u.success(r)}))},String),em=new u.Type("IntFromString",u.Int.is,function(t,e){return(0,f.pipe)(eh.validate(t,e),(0,l.chain)(function(n){return u.Int.is(n)?u.success(n):u.failure(t,e)}))},eh.encode),ev=u.recursion("JsonArray",function(){return u.readonlyArray(ey)}),eg=u.recursion("JsonRecord",function(){return u.record(u.string,ey)}),ey=u.union([u.boolean,u.number,u.string,u.null,ev,eg],"Json"),e_=new u.Type("JsonFromString",ey.is,function(t,e){try{return u.success(JSON.parse(t))}catch(n){return u.failure(t,e)}},function(t){return JSON.stringify(t)}),eb=u.literal("Left"),eT=u.literal("Right");function eI(t,e,n){return void 0===n&&(n="Either<"+t.name+", "+e.name+">"),u.union([u.strict({_tag:eb,left:t},"Left<"+t.name+">"),u.strict({_tag:eT,right:e},"Right<"+t.name+">")],n)}var eS=new u.Type("BigIntFromString",function(t){return"bigint"==typeof t},function(t,e){return(0,f.pipe)(u.string.validate(t,e),(0,l.chain)(function(n){if(!o.is(n.trim()))return u.failure(t,e);try{return u.success(BigInt(n))}catch(r){return u.failure(t,e)}}))},String);function ex(t,e,n){return void 0===n&&(n=t.name),new u.Type(n,t.is,t.validate,e)}var ew=new u.Type("BooleanFromNumber",u.boolean.is,function(t,e){return(0,f.pipe)(u.number.validate(t,e),(0,l.map)(function(t){return 0!==t}))},Number),eR=n(55116),eO=n(3291);function eM(t,e,n,r){void 0===r&&(r="Map<"+t.name+", "+n.name+">");var i,o,a=u.array(u.tuple([t,n])),f=(0,eR.toArray)(e),s=(0,eR.fromFoldable)(e,(0,eO.getLastSemigroup)(),c.Foldable),p=(i=t.is,o=n.is,function(t){for(var e,n=t.entries();!(e=n.next()).done;)if(!1===i(e.value[0])||!1===o(e.value[1]))return!1;return!0});return new u.Type(r,function(t){return t instanceof Map&&p(t)},function(t,e){return(0,_.pipe)(a.validate(t,e),(0,l.chain)(function(n){var r=s(n);return r.size!==n.length?u.failure(t,e):u.success(r)}))},function(t){return a.encode(f(t))})}function eE(t,e,n,r){return void 0===r&&(r="ReadonlyMap<"+t.name+", "+n.name+">"),eM(t,e,n,r)}},47361:function(t,e,n){"use strict";n.r(e),n.d(e,{mapOutput:function(){return i}});var r=n(87830);function i(t,e,n){return void 0===n&&(n=t.name),new r.Type(n,t.is,t.validate,function(n){return e(t.encode(n))})}},11621:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.IntFromString=void 0;var o=u(n(87830)),a=n(59054),c=n(67794),f=n(87412);e.IntFromString=new o.Type("IntFromString",o.Int.is,function(t,e){return c.pipe(a.NumberFromString.validate(t,e),f.chain(function(n){return o.Int.is(n)?o.success(n):o.failure(t,e)}))},a.NumberFromString.encode)},59054:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.NumberFromString=void 0;var o=u(n(87830)),a=n(67794),c=n(87412);e.NumberFromString=new o.Type("NumberFromString",o.number.is,function(t,e){return a.pipe(o.string.validate(t,e),c.chain(function(n){var r=+n;return isNaN(r)||""===n.trim()?o.failure(t,e):o.success(r)}))},String)},62886:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clone=void 0,e.clone=function(t){var e=Object.create(Object.getPrototypeOf(t));return Object.assign(e,t),e}},2932:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.mapOutput=void 0;var o=u(n(87830));e.mapOutput=function(t,e,n){return void 0===n&&(n=t.name),new o.Type(n,t.is,t.validate,function(n){return e(t.encode(n))})}},69624:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.withFallback=void 0;var o=u(n(87830)),a=n(40308),c=n(87412);e.withFallback=function(t,e,n){return void 0===n&&(n="withFallback("+t.name+")"),a.withValidate(t,function(n,r){return c.orElse(function(){return o.success(e)})(t.validate(n,r))},n)}},40308:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.withValidate=void 0;var o=u(n(87830)),a=n(62886);e.withValidate=function(t,e,n){void 0===n&&(n=t.name);var r=a.clone(t);return r.validate=e,r.decode=function(t){return e(t,o.getDefaultContext(r))},r.name=n,r}},87830:function(t,e,n){"use strict";n.r(e),n.d(e,{AnyArrayType:function(){return Q},AnyDictionaryType:function(){return te},AnyType:function(){return tU},Array:function(){return tt},ArrayType:function(){return th},BigIntType:function(){return Z},BooleanType:function(){return X},Dictionary:function(){return tV},DictionaryType:function(){return tb},ExactType:function(){return tW},Function:function(){return tN},FunctionType:function(){return tF},Int:function(){return ts},Integer:function(){return tB},InterfaceType:function(){return tv},IntersectionType:function(){return tx},KeyofType:function(){return tu},LiteralType:function(){return tr},NeverType:function(){return tA},NullType:function(){return A},NumberType:function(){return V},ObjectType:function(){return tH},PartialType:function(){return ty},ReadonlyArrayType:function(){return tk},ReadonlyType:function(){return tM},RecursiveType:function(){return tp},RefinementType:function(){return ta},StrictType:function(){return tX},StringType:function(){return G},TaggedUnionType:function(){return tY},TupleType:function(){return tR},Type:function(){return s},UndefinedType:function(){return U},UnionType:function(){return tI},UnknownArray:function(){return tt},UnknownRecord:function(){return tn},UnknownType:function(){return Y},VoidType:function(){return q},alias:function(){return tQ},any:function(){return tj},appendContext:function(){return m},array:function(){return tm},bigint:function(){return $},boolean:function(){return J},brand:function(){return tc},clean:function(){return tJ},dictionary:function(){return t$},emptyTags:function(){return M},exact:function(){return tD},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return h},getDefaultContext:function(){return tz},getDomainKeys:function(){return S},getFunctionName:function(){return d},getIndex:function(){return N},getTags:function(){return F},getValidationError:function(){return tG},identity:function(){return p},interface:function(){return tg},intersection:function(){return tw},keyof:function(){return to},literal:function(){return ti},mergeAll:function(){return w},never:function(){return tL},null:function(){return L},nullType:function(){return L},number:function(){return H},object:function(){return tZ},partial:function(){return t_},readonly:function(){return tE},readonlyArray:function(){return tC},record:function(){return tT},recursion:function(){return td},refinement:function(){return tq},strict:function(){return tP},string:function(){return z},success:function(){return l},taggedUnion:function(){return tK},tuple:function(){return tO},type:function(){return tg},undefined:function(){return j},union:function(){return tS},unknown:function(){return K},void:function(){return B},voidType:function(){return B}});var r,i=n(81878),u=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},c=i.left,f=function(t,e,n){return c([{value:t,context:e,message:n}])},l=i.right,s=function(){function t(t,e,n,r){this.name=t,this.is=e,this.validate=n,this.encode=r,this.decode=this.decode.bind(this)}return t.prototype.pipe=function(e,n){var r=this;return void 0===n&&(n="pipe(".concat(this.name,", ").concat(e.name,")")),new t(n,e.is,function(t,n){var u=r.validate(t,n);return(0,i.isLeft)(u)?u:e.validate(u.right,n)},this.encode===p&&e.encode===p?p:function(t){return r.encode(e.encode(t))})},t.prototype.asDecoder=function(){return this},t.prototype.asEncoder=function(){return this},t.prototype.decode=function(t){return this.validate(t,[{key:"",type:this,actual:t}])},t}(),p=function(t){return t};function d(t){return t.displayName||t.name||"<function".concat(t.length,">")}function h(t,e){return{key:t,type:e}}function m(t,e,n,r){for(var i=t.length,u=Array(i+1),o=0;o<i;o++)u[o]=t[o];return u[i]={key:e,type:n,actual:r},u}function v(t,e){for(var n=e.length,r=0;r<n;r++)t.push(e[r])}var y=Object.prototype.hasOwnProperty;function _(t){return Object.keys(t).map(function(e){return"".concat(e,": ").concat(t[e].name)}).join(", ")}function b(t){for(var e=0;e<t.length;e++)if(t[e].encode!==p)return!1;return!0}function T(t){return"{ ".concat(_(t)," }")}function I(t){return"Partial<".concat(t,">")}function S(t){if(C(t)){var e,n,r=t.value;if(z.is(r))return(e={})[r]=null,e}else{if(n=t,"KeyofType"===n._tag)return t.keys;else if(W(t)){var i=t.types.map(function(t){return S(t)});return i.some(j.is)?void 0:Object.assign.apply(Object,a([{}],i,!1))}}}function x(t){return"("+t.map(function(t){return t.name}).join(" | ")+")"}function w(t,e){for(var n=!0,r=!0,i=!tn.is(t),u=0;u<e.length;u++){var o=e[u];o!==t&&(n=!1),tn.is(o)&&(r=!1)}if(n)return t;if(r)return e[e.length-1];for(var a={},c=0;c<e.length;c++){var o=e[c];for(var f in o)(!y.call(a,f)||i||o[f]!==t[f])&&(a[f]=o[f])}return a}function R(t,e){for(var n=Object.getOwnPropertyNames(t),r=!1,i={},u=0;u<n.length;u++){var o=n[u];y.call(e,o)?i[o]=t[o]:r=!0}return r?i:t}function O(t){return t.length>0}var M={};function E(t,e){for(var n=[],r=0;r<t.length;r++){var i=t[r];-1!==e.indexOf(i)&&n.push(i)}return n}function k(t){return"AnyType"===t._tag}function C(t){return"LiteralType"===t._tag}function P(t){return"InterfaceType"===t._tag}function W(t){return"UnionType"===t._tag}var D=[];function F(t){if(-1!==D.indexOf(t))return M;if(P(t)||"StrictType"===(i=t)._tag){var e=M;for(var n in t.props){var r=t.props[n];C(r)&&(e===M&&(e={}),e[n]=[r.value])}return e}if("ExactType"===(u=t)._tag||"RefinementType"===(o=t)._tag)return F(t.type);if("IntersectionType"===(a=t)._tag)return t.types.reduce(function(t,e){return function(t,e){if(t===M)return e;if(e===M)return t;var n=Object.assign({},t);for(var r in e)if(y.call(t,r)){var i=E(t[r],e[r]);if(O(i))n[r]=i;else{n=M;break}}else n[r]=e[r];return n}(t,F(e))},M);if(W(t))return t.types.slice(1).reduce(function(t,e){return function(t,e){if(t===M||e===M)return M;var n=M;for(var r in t)y.call(e,r)&&0===E(t[r],e[r]).length&&(n===M&&(n={}),n[r]=t[r].concat(e[r]));return n}(t,F(e))},F(t.types[0]));if("RecursiveType"===(c=t)._tag){D.push(t);var i,u,o,a,c,f=F(t.type);return D.pop(),f}return M}function N(t){var e=F(t[0]),n=Object.keys(e),r=t.length;keys:for(var i=0;i<n.length;i++){var u=function(n){for(var i=e[n].slice(),u=[e[n]],o=1;o<r;o++){var a=F(t[o])[n];if(void 0===a||a.some(function(t){return -1!==i.indexOf(t)}))return"continue-keys";i.push.apply(i,a),u.push(a)}return{value:[n,u]}}(n[i]);if("object"==typeof u)return u.value;if("continue-keys"===u)continue keys}}var A=function(t){function e(){var e=t.call(this,"null",function(t){return null===t},function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="NullType",e}return u(e,t),e}(s),L=new A,U=function(t){function e(){var e=t.call(this,"undefined",function(t){return void 0===t},function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="UndefinedType",e}return u(e,t),e}(s),j=new U,q=function(t){function e(){var e=t.call(this,"void",j.is,j.validate,p)||this;return e._tag="VoidType",e}return u(e,t),e}(s),B=new q,Y=function(t){function e(){var e=t.call(this,"unknown",function(t){return!0},l,p)||this;return e._tag="UnknownType",e}return u(e,t),e}(s),K=new Y,G=function(t){function e(){var e=t.call(this,"string",function(t){return"string"==typeof t},function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="StringType",e}return u(e,t),e}(s),z=new G,V=function(t){function e(){var e=t.call(this,"number",function(t){return"number"==typeof t},function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="NumberType",e}return u(e,t),e}(s),H=new V,Z=function(t){function e(){var e=t.call(this,"bigint",function(t){return"bigint"==typeof t},function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="BigIntType",e}return u(e,t),e}(s),$=new Z,X=function(t){function e(){var e=t.call(this,"boolean",function(t){return"boolean"==typeof t},function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="BooleanType",e}return u(e,t),e}(s),J=new X,Q=function(t){function e(){var e=t.call(this,"UnknownArray",Array.isArray,function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="AnyArrayType",e}return u(e,t),e}(s),tt=new Q,te=function(t){function e(){var e=t.call(this,"UnknownRecord",function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)},function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="AnyDictionaryType",e}return u(e,t),e}(s),tn=new te,tr=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.value=u,o._tag="LiteralType",o}return u(e,t),e}(s);function ti(t,e){void 0===e&&(e=JSON.stringify(t));var n=function(e){return e===t};return new tr(e,n,function(e,r){return n(e)?l(t):f(e,r)},p,t)}var tu=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.keys=u,o._tag="KeyofType",o}return u(e,t),e}(s);function to(t,e){void 0===e&&(e=Object.keys(t).map(function(t){return JSON.stringify(t)}).join(" | "));var n=function(e){return z.is(e)&&y.call(t,e)};return new tu(e,n,function(t,e){return n(t)?l(t):f(t,e)},p,t)}var ta=function(t){function e(e,n,r,i,u,o){var a=t.call(this,e,n,r,i)||this;return a.type=u,a.predicate=o,a._tag="RefinementType",a}return u(e,t),e}(s);function tc(t,e,n){return tq(t,e,n)}var tf,tl,ts=tq(H,tl=function(t){return Number.isInteger(t)},"Int"),tp=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.runDefinition=u,o._tag="RecursiveType",o}return u(e,t),e}(s);function td(t,e){var n,r=function(){return n||((n=e(i)).name=t),n},i=new tp(t,function(t){return r().is(t)},function(t,e){return r().validate(t,e)},function(t){return r().encode(t)},r);return i}Object.defineProperty(tp.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var th=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.type=u,o._tag="ArrayType",o}return u(e,t),e}(s);function tm(t,e){return void 0===e&&(e="Array<".concat(t.name,">")),new th(e,function(e){return tt.is(e)&&e.every(t.is)},function(e,n){var r=tt.validate(e,n);if((0,i.isLeft)(r))return r;for(var u=r.right,o=u.length,a=u,f=[],s=0;s<o;s++){var p=u[s],d=t.validate(p,m(n,String(s),t,p));if((0,i.isLeft)(d))v(f,d.left);else{var h=d.right;h!==p&&(a===u&&(a=u.slice()),a[s]=h)}}return f.length>0?c(f):l(a)},t.encode===p?p:function(e){return e.map(t.encode)},t)}var tv=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.props=u,o._tag="InterfaceType",o}return u(e,t),e}(s);function tg(t,e){void 0===e&&(e=T(t));var n=Object.keys(t),r=n.map(function(e){return t[e]}),u=n.length;return new tv(e,function(t){if(tn.is(t)){for(var e=0;e<u;e++){var i=n[e],o=t[i];if(void 0===o&&!y.call(t,i)||!r[e].is(o))return!1}return!0}return!1},function(t,e){var a=tn.validate(t,e);if((0,i.isLeft)(a))return a;for(var f=a.right,s=f,p=[],d=0;d<u;d++){var h=n[d],_=s[h],b=r[d],T=b.validate(_,m(e,h,b,_));if((0,i.isLeft)(T))v(p,T.left);else{var I=T.right;I===_&&(void 0!==I||y.call(s,h))||(s===f&&(s=o({},f)),s[h]=I)}}return p.length>0?c(p):l(s)},b(r)?p:function(t){for(var e=o({},t),i=0;i<u;i++){var a=n[i],c=r[i].encode;c!==p&&(e[a]=c(t[a]))}return e},t)}var ty=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.props=u,o._tag="PartialType",o}return u(e,t),e}(s);function t_(t,e){void 0===e&&(e=I(T(t)));var n=Object.keys(t),r=n.map(function(e){return t[e]}),u=n.length;return new ty(e,function(e){if(tn.is(e)){for(var r=0;r<u;r++){var i=n[r],o=e[i];if(void 0!==o&&!t[i].is(o))return!1}return!0}return!1},function(e,r){var a=tn.validate(e,r);if((0,i.isLeft)(a))return a;for(var f=a.right,s=f,p=[],d=0;d<u;d++){var h=n[d],y=s[h],_=t[h],b=_.validate(y,m(r,h,_,y));if((0,i.isLeft)(b))void 0!==y&&v(p,b.left);else{var T=b.right;T!==y&&(s===f&&(s=o({},f)),s[h]=T)}}return p.length>0?c(p):l(s)},b(r)?p:function(t){for(var e=o({},t),i=0;i<u;i++){var a=n[i],c=t[a];void 0!==c&&(e[a]=r[i].encode(c))}return e},t)}var tb=function(t){function e(e,n,r,i,u,o){var a=t.call(this,e,n,r,i)||this;return a.domain=u,a.codomain=o,a._tag="DictionaryType",a}return u(e,t),e}(s);function tT(t,e,n){var r,u,o,a,s,d,h,y,_=S(t);return _?(r=Object.keys(_),void 0===(a=n)&&(a="{ [K in ".concat(t.name,"]: ").concat(e.name," }")),s=r.length,new tb(a,function(t){return tn.is(t)&&r.every(function(n){return e.is(t[n])})},function(t,n){var u=tn.validate(t,n);if((0,i.isLeft)(u))return u;for(var o=u.right,a={},f=[],p=!1,d=0;d<s;d++){var h=r[d],y=o[h],_=e.validate(y,m(n,h,e,y));if((0,i.isLeft)(_))v(f,_.left);else{var b=_.right;p=p||b!==y,a[h]=b}}return f.length>0?c(f):l(p||Object.keys(o).length!==s?a:o)},e.encode===p?p:function(t){for(var n={},i=0;i<s;i++){var u=r[i];n[u]=e.encode(t[u])}return n},t,e)):(d=t,void 0===(y=n)&&(y="{ [K in ".concat(d.name,"]: ").concat(e.name," }")),new tb(y,function(t){return tn.is(t)?Object.keys(t).every(function(n){return d.is(n)&&e.is(t[n])}):k(e)&&Array.isArray(t)},function(t,n){if(tn.is(t)){for(var r={},u=[],o=Object.keys(t),a=o.length,s=!1,p=0;p<a;p++){var h=o[p],y=t[h],_=d.validate(h,m(n,h,d,h));if((0,i.isLeft)(_))v(u,_.left);else{var b=_.right;s=s||b!==h,h=b;var T=e.validate(y,m(n,h,e,y));if((0,i.isLeft)(T))v(u,T.left);else{var I=T.right;s=s||I!==y,r[h]=I}}}return u.length>0?c(u):l(s?r:t)}return k(e)&&Array.isArray(t)?l(t):f(t,n)},d.encode===p&&e.encode===p?p:function(t){for(var n={},r=Object.keys(t),i=r.length,u=0;u<i;u++){var o=r[u];n[String(d.encode(o))]=e.encode(t[o])}return n},d,e))}var tI=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.types=u,o._tag="UnionType",o}return u(e,t),e}(s);function tS(t,e){void 0===e&&(e=x(t));var n=N(t);if(void 0===n||!(t.length>0))return new tI(e,function(e){return t.some(function(t){return t.is(e)})},function(e,n){for(var r=[],u=0;u<t.length;u++){var o=t[u],a=o.validate(e,m(n,String(u),o,e));if(!(0,i.isLeft)(a))return l(a.right);v(r,a.left)}return c(r)},b(t)?p:function(n){for(var r=0;r<t.length;r++){var i=t[r];if(i.is(n))return i.encode(n)}throw Error("no codec found to encode value in union type ".concat(e))},t);var r=n[0],u=n[1],o=u.length,a=function(t){for(var e=0;e<o;e++)if(-1!==u[e].indexOf(t))return e};return new tY(e,function(e){if(tn.is(e)){var n=a(e[r]);return void 0!==n&&t[n].is(e)}return!1},function(e,n){var u=tn.validate(e,n);if((0,i.isLeft)(u))return u;var o=u.right,c=a(o[r]);if(void 0===c)return f(e,n);var l=t[c];return l.validate(o,m(n,String(c),l,o))},b(t)?p:function(n){var i=a(n[r]);if(void 0!==i)return t[i].encode(n);throw Error("no codec found to encode value in union codec ".concat(e))},t,r)}var tx=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.types=u,o._tag="IntersectionType",o}return u(e,t),e}(s);function tw(t,e){void 0===e&&(e="(".concat(t.map(function(t){return t.name}).join(" & "),")"));var n=t.length;return new tx(e,function(e){return t.every(function(t){return t.is(e)})},0===t.length?l:function(e,r){for(var u=[],o=[],a=0;a<n;a++){var f=t[a],s=f.validate(e,m(r,String(a),f,e));(0,i.isLeft)(s)?v(o,s.left):u.push(s.right)}return o.length>0?c(o):l(w(e,u))},0===t.length?p:function(e){return w(e,t.map(function(t){return t.encode(e)}))},t)}var tR=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.types=u,o._tag="TupleType",o}return u(e,t),e}(s);function tO(t,e){void 0===e&&(e="[".concat(t.map(function(t){return t.name}).join(", "),"]"));var n=t.length;return new tR(e,function(e){return tt.is(e)&&e.length===n&&t.every(function(t,n){return t.is(e[n])})},function(e,r){var u=tt.validate(e,r);if((0,i.isLeft)(u))return u;for(var o=u.right,a=o.length>n?o.slice(0,n):o,f=[],s=0;s<n;s++){var p=o[s],d=t[s],h=d.validate(p,m(r,String(s),d,p));if((0,i.isLeft)(h))v(f,h.left);else{var y=h.right;y!==p&&(a===o&&(a=o.slice()),a[s]=y)}}return f.length>0?c(f):l(a)},b(t)?p:function(e){return t.map(function(t,n){return t.encode(e[n])})},t)}var tM=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.type=u,o._tag="ReadonlyType",o}return u(e,t),e}(s);function tE(t,e){return void 0===e&&(e="Readonly<".concat(t.name,">")),new tM(e,t.is,t.validate,t.encode,t)}var tk=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.type=u,o._tag="ReadonlyArrayType",o}return u(e,t),e}(s);function tC(t,e){void 0===e&&(e="ReadonlyArray<".concat(t.name,">"));var n=tm(t);return new tk(e,n.is,n.validate,n.encode,t)}var tP=function(t,e){return tD(tg(t),e)},tW=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.type=u,o._tag="ExactType",o}return u(e,t),e}(s);function tD(t,e){if(void 0===e){var n,r;e=P(t)?"{| ".concat(_(t.props)," |}"):(r=t,"PartialType"===r._tag)?I("{| ".concat(_(t.props)," |}")):"Exact<".concat(t.name,">")}var u=function t(e){switch(e._tag){case"RefinementType":case"ReadonlyType":return t(e.type);case"InterfaceType":case"StrictType":case"PartialType":return e.props;case"IntersectionType":return e.types.reduce(function(e,n){return Object.assign(e,t(n))},{})}}(t);return new tW(e,t.is,function(e,n){var r=tn.validate(e,n);if((0,i.isLeft)(r))return r;var o=t.validate(e,n);return(0,i.isLeft)(o)?o:(0,i.right)(R(o.right,u))},function(e){return t.encode(R(e,u))},t)}var tF=function(t){function e(){var e=t.call(this,"Function",function(t){return"function"==typeof t},function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="FunctionType",e}return u(e,t),e}(s),tN=new tF,tA=function(t){function e(){var e=t.call(this,"never",function(t){return!1},function(t,e){return f(t,e)},function(){throw Error("cannot encode never")})||this;return e._tag="NeverType",e}return u(e,t),e}(s),tL=new tA,tU=function(t){function e(){var e=t.call(this,"any",function(t){return!0},l,p)||this;return e._tag="AnyType",e}return u(e,t),e}(s),tj=new tU;function tq(t,e,n){return void 0===n&&(n="(".concat(t.name," | ").concat(d(e),")")),new ta(n,function(n){return t.is(n)&&e(n)},function(n,r){var u=t.validate(n,r);if((0,i.isLeft)(u))return u;var o=u.right;return e(o)?l(o):f(o,r)},t.encode,t,e)}var tB=tq(H,Number.isInteger,"Integer"),tY=function(t){function e(e,n,r,i,u,o){var a=t.call(this,e,n,r,i,u)||this;return a.tag=o,a}return u(e,t),e}(tI),tK=function(t,e,n){void 0===n&&(n=x(e));var r=tS(e,n);return r instanceof tY?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(n,", returning a de-optimized union")),new tY(n,r.is,r.validate,r.encode,e,t))},tG=function(t,e){return{value:t,context:e}},tz=function(t){return[{key:"",type:t}]},tV=tn,tH=function(t){function e(){var e=t.call(this,"object",function(t){return null!==t&&"object"==typeof t},function(t,n){return e.is(t)?l(t):f(t,n)},p)||this;return e._tag="ObjectType",e}return u(e,t),e}(s),tZ=new tH,t$=tT,tX=function(t){function e(e,n,r,i,u){var o=t.call(this,e,n,r,i)||this;return o.props=u,o._tag="StrictType",o}return u(e,t),e}(s);function tJ(t){return t}function tQ(t){return function(){return t}}},77883:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_PLAIN=e.FORMAT_HTML=e.FORMATS=void 0;var n="html";e.FORMAT_HTML=n;var r="plain";e.FORMAT_PLAIN=r,e.FORMATS=[n,r]},779:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LINE_ENDINGS=void 0,e.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUPPORTED_PLATFORMS=void 0,e.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},29688:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UNIT_WORDS=e.UNIT_WORD=e.UNIT_SENTENCES=e.UNIT_SENTENCE=e.UNIT_PARAGRAPHS=e.UNIT_PARAGRAPH=e.UNITS=void 0;var n="words";e.UNIT_WORDS=n;var r="word";e.UNIT_WORD=r;var i="sentences";e.UNIT_SENTENCES=i;var u="sentence";e.UNIT_SENTENCE=u;var o="paragraphs";e.UNIT_PARAGRAPHS=o;var a="paragraph";e.UNIT_PARAGRAPH=a,e.UNITS=[n,r,i,u,o,a]},90783:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WORDS=void 0,e.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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoremIpsum",{enumerable:!0,get:function(){return a.default}}),e.loremIpsum=void 0;var r,i=n(77883),u=n(29688),o=n(90783),a=(r=n(55548),r&&r.__esModule?r:{default:r}),c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.count,n=void 0===e?1:e,r=t.format,c=void 0===r?i.FORMAT_PLAIN:r,f=t.paragraphLowerBound,l=t.paragraphUpperBound,s=t.random,p=t.sentenceLowerBound,d=t.sentenceUpperBound,h=t.units,m=void 0===h?u.UNIT_SENTENCES:h,v=t.words,y=void 0===v?o.WORDS:v,_=t.suffix,b=new a.default({random:s,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:y,wordsPerSentence:{max:void 0===d?15:d,min:void 0===p?5:p}},c,void 0===_?"":_);switch(m){case u.UNIT_PARAGRAPHS:case u.UNIT_PARAGRAPH:return b.generateParagraphs(n);case u.UNIT_SENTENCES:case u.UNIT_SENTENCE:return b.generateSentences(n);case u.UNIT_WORDS:case u.UNIT_WORD:return b.generateWords(n);default:return""}};e.loremIpsum=c},55548:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=n(77883),u=n(779),o=(r=n(40928),r&&r.__esModule?r:{default:r}),a=n(23749);function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var f=function(){var t,e,n;function r(){var t,e,n,u=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(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),this.format=a,this.suffix=c,t=this,n=void 0,(e="generator")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=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 o.default(u)}return e=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,a.isReactNative)()&&(0,a.isNode)()&&(0,a.isWindows)()?u.LINE_ENDINGS.WIN32:u.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(t){return this.format===i.FORMAT_HTML?"<p>".concat(t,"</p>"):t}},{key:"formatStrings",value:function(t){var e=this;return t.map(function(t){return e.formatString(t)})}},{key:"generateWords",value:function(t){return this.formatString(this.generator.generateRandomWords(t))}},{key:"generateSentences",value:function(t){return this.formatString(this.generator.generateRandomParagraph(t))}},{key:"generateParagraphs",value:function(t){var e=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,a.makeArrayOfStrings)(t,e)).join(this.getLineEnding())}}],c(r.prototype,e),n&&c(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();e.default=f},40928:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(90783),i=n(23749);function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=function(){var t,e,n;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.sentencesPerParagraph,n=void 0===e?{max:7,min:3}:e,i=t.wordsPerSentence,u=void 0===i?{max:15,min:5}:i,c=t.random,f=(t.seed,t.words),l=void 0===f?r.WORDS:f;if(!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,a),o(this,"sentencesPerParagraph",void 0),o(this,"wordsPerSentence",void 0),o(this,"random",void 0),o(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(u.min>u.max)throw Error("Minimum number of words per sentence (".concat(u.min,") cannot exceed maximum (").concat(u.max,")."));this.sentencesPerParagraph=n,this.words=l,this.wordsPerSentence=u,this.random=c||Math.random}return e=[{key:"generateRandomInteger",value:function(t,e){return Math.floor(this.random()*(e-t+1)+t)}},{key:"generateRandomWords",value:function(t){var e=this,n=this.wordsPerSentence,r=n.min,u=n.max,o=t||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(t,n){return"".concat(e.pluckRandomWord()," ").concat(t)},"").trim()}},{key:"generateRandomSentence",value:function(t){return"".concat((0,i.capitalize)(this.generateRandomWords(t)),".")}},{key:"generateRandomParagraph",value:function(t){var e=this,n=this.sentencesPerParagraph,r=n.min,u=n.max,o=t||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(t,n){return"".concat(e.generateRandomSentence()," ").concat(t)},"").trim()}},{key:"pluckRandomWord",value:function(){var t=this.words.length-1,e=this.generateRandomInteger(0,t);return this.words[e]}}],u(a.prototype,e),n&&u(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}();e.default=a},79998:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t){var e=t.trim();return e.charAt(0).toUpperCase()+e.slice(1)};e.default=n},23749:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"capitalize",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"isReactNative",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"isWindows",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"makeArrayOfLength",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"makeArrayOfStrings",{enumerable:!0,get:function(){return c.default}});var r=f(n(79998)),i=f(n(18077)),u=f(n(66002)),o=f(n(89759)),a=f(n(13385)),c=f(n(74523));function f(t){return t&&t.__esModule?t:{default:t}}},18077:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){return!!t.exports};e.default=n},66002:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){var t=!1;try{t="ReactNative"===navigator.product}catch(e){t=!1}return t};e.default=n},89759:function(t,e,n){"use strict";var r=n(34406);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(36021),u=function(){var t=!1;try{t=r.platform===i.SUPPORTED_PLATFORMS.WIN32}catch(e){t=!1}return t};e.default=u},13385:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(t)).map(function(t,e){return e})};e.default=n},74523:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(13385),r&&r.__esModule?r:{default:r}),u=function(t,e){return(0,i.default)(t).map(function(){return e()})};e.default=u},18701:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e,n,r,i,u,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=u,this.removeEmptyString=o}Object.defineProperty(e,"__esModule",{value:!0});var u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(t){u[t]=new i(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e,n,o=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var u=[],o=!0,a=!1;try{for(i=i.call(t);!(o=(n=i.next()).done)&&(u.push(n.value),!e||u.length!==e);o=!0);}catch(c){a=!0,r=c}finally{try{o||null==i.return||i.return()}finally{if(a)throw r}}return u}}(t,2)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],c=o[1];u[a]=new i(a,1,!1,c,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){u[t]=new i(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){u[t]=new i(t,2,!1,t,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(t){u[t]=new i(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){u[t]=new i(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){u[t]=new i(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){u[t]=new i(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){u[t]=new i(t,5,!1,t.toLowerCase(),null,!1,!1)});var o=/[\-\:]([a-z])/g,a=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(t){var e=t.replace(o,a);u[e]=new i(e,1,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var e=t.replace(o,a);u[e]=new i(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(o,a);u[e]=new i(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){u[t]=new i(t,1,!1,t.toLowerCase(),null,!1,!1)}),u.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){u[t]=new i(t,1,!1,t.toLowerCase(),null,!0,!0)});var c=n(52558),f=c.CAMELCASE,l=c.SAME,s=c.possibleStandardNames,p=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(s).reduce(function(t,e){var n=s[e];return n===l?t[e]=e:n===f?t[e.toLowerCase()]=e:t[e]=n,t},{});e.BOOLEAN=3,e.BOOLEANISH_STRING=2,e.NUMERIC=5,e.OVERLOADED_BOOLEAN=4,e.POSITIVE_NUMERIC=6,e.RESERVED=0,e.STRING=1,e.getPropertyInfo=function(t){return u.hasOwnProperty(t)?u[t]:null},e.isCustomAttribute=p,e.possibleStandardNames=d},52558:function(t,e){e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},92928:function(t,e,n){"use strict";n.d(e,{OK:function(){return O},td:function(){return S},x4:function(){return C},mQ:function(){return b}});var r,i=n(2784);function u(t){return function(e){return!!e.type&&e.type.tabsRole===t}}var o=u("Tab"),a=u("TabList"),c=u("TabPanel");function f(t,e){return i.Children.map(t,function(t){var n;return null===t?null:o(t)||a(t)||c(t)?e(t):t.props&&t.props.children&&"object"==typeof t.props.children?(0,i.cloneElement)(t,Object.assign({},t.props,{children:f(t.props.children,e)})):t})}var l=n(6277);function s(t){var e=0;return!function t(e,n){return i.Children.forEach(e,function(e){null!==e&&(o(e)||c(e)?n(e):e.props&&e.props.children&&"object"==typeof e.props.children&&(a(e)&&n(e),t(e.props.children,n)))})}(t,function(t){o(t)&&e++}),e}var p=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys","disableLeftRightKeys"];function d(t){return t&&"getAttribute"in t}function h(t){return d(t)&&t.getAttribute("data-rttab")}function m(t){return d(t)&&"true"===t.getAttribute("aria-disabled")}var v=function(t){var e=(0,i.useRef)([]),n=(0,i.useRef)([]),u=(0,i.useRef)();function d(e,n){if(!(e<0||e>=_())){var r;(0,t.onSelect)(e,t.selectedIndex,n)}}function v(t){for(var e=_(),n=t+1;n<e;n++)if(!m(b(n)))return n;for(var r=0;r<t;r++)if(!m(b(r)))return r;return t}function y(t){for(var e=t;e--;)if(!m(b(e)))return e;for(e=_();e-- >t;)if(!m(b(e)))return e;return t}function _(){return s(t.children)}function b(t){return e.current["tabs-"+t]}function T(t){var e=t.target;do if(I(e)){if(m(e))return;var n=[].slice.call(e.parentNode.children).filter(h).indexOf(e);d(n,t);return}while(null!=(e=e.parentNode))}function I(t){if(!h(t))return!1;var e=t.parentElement;do{if(e===u.current)return!0;if(e.getAttribute("data-rttabs"))break;e=e.parentElement}while(e);return!1}t.children;var S=t.className,x=(t.disabledTabClassName,t.domRef),w=(t.focus,t.forceRenderTabPanel,t.onSelect,t.selectedIndex,t.selectedTabClassName,t.selectedTabPanelClassName,t.environment,t.disableUpDownKeys,t.disableLeftRightKeys,function(t,e){if(null==t)return{};var n,r,i={},u=Object.keys(t);for(r=0;r<u.length;r++)n=u[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,p));return i.createElement("div",Object.assign({},w,{className:(0,l.Z)(S),onClick:T,onKeyDown:function(e){var n=t.direction,r=t.disableUpDownKeys,i=t.disableLeftRightKeys;if(I(e.target)){var u=t.selectedIndex,o=!1,a=!1;("Space"===e.code||32===e.keyCode||"Enter"===e.code||13===e.keyCode)&&(o=!0,a=!1,T(e)),(i||37!==e.keyCode&&"ArrowLeft"!==e.code)&&(r||38!==e.keyCode&&"ArrowUp"!==e.code)?(i||39!==e.keyCode&&"ArrowRight"!==e.code)&&(r||40!==e.keyCode&&"ArrowDown"!==e.code)?35===e.keyCode||"End"===e.code?(u=function(){for(var t=_();t--;)if(!m(b(t)))return t;return null}(),o=!0,a=!0):(36===e.keyCode||"Home"===e.code)&&(u=function(){for(var t=_(),e=0;e<t;e++)if(!m(b(e)))return e;return null}(),o=!0,a=!0):(u="rtl"===n?y(u):v(u),o=!0,a=!0):(u="rtl"===n?v(u):y(u),o=!0,a=!0),o&&e.preventDefault(),a&&d(u,e)}},ref:function(t){u.current=t,x&&x(t)},"data-rttabs":!0}),function(){var u=0,l=t.children,s=t.disabledTabClassName,p=t.focus,d=t.forceRenderTabPanel,h=t.selectedIndex,m=t.selectedTabClassName,v=t.selectedTabPanelClassName,y=t.environment;n.current=n.current||[];for(var T=n.current.length-_(),I=(0,i.useId)();T++<0;)n.current.push(""+I+n.current.length);return f(l,function(t){var l=t;if(a(t)){var _=0,T=!1;null==r&&function(t){var e=t||("undefined"!=typeof window?window:void 0);try{r=!!(void 0!==e&&e.document&&e.document.activeElement)}catch(n){r=!1}}(y);var I=y||("undefined"!=typeof window?window:void 0);r&&I&&(T=i.Children.toArray(t.props.children).filter(o).some(function(t,e){return I.document.activeElement===b(e)})),l=(0,i.cloneElement)(t,{children:f(t.props.children,function(t){var r="tabs-"+_,u=h===_,o={tabRef:function(t){e.current[r]=t},id:n.current[_],selected:u,focus:u&&(p||T)};return m&&(o.selectedClassName=m),s&&(o.disabledClassName=s),_++,(0,i.cloneElement)(t,o)})})}else if(c(t)){var S={id:n.current[u],selected:h===u};d&&(S.forceRender=d),v&&(S.selectedClassName=v),u++,l=(0,i.cloneElement)(t,S)}return l})}())};v.defaultProps={className:"react-tabs",focus:!1},v.propTypes={};var y=function(t,e){},_=function(t){var e,n=t.children,r=t.defaultFocus,u=t.defaultIndex,o=t.focusTabOnClick,a=t.onSelect,c=(0,i.useState)(r),f=c[0],l=c[1],p=(0,i.useState)(null===t.selectedIndex?1:0)[0],d=(0,i.useState)(1===p?u||0:null),h=d[0],m=d[1];if((0,i.useEffect)(function(){l(!1)},[]),1===p){var _=s(n);(0,i.useEffect)(function(){null!=h&&m(Math.min(h,Math.max(0,_-1)))},[_])}y(t,p);var b=function(t,e,n){("function"!=typeof a||!1!==a(t,e,n))&&(o&&l(!0),1===p&&m(t))},T=Object.assign({},t);return T.focus=f,T.onSelect=b,null!=h&&(T.selectedIndex=h),delete T.defaultFocus,delete T.defaultIndex,delete T.focusTabOnClick,i.createElement(v,T,n)};_.propTypes={},_.defaultProps={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1,disableLeftRightKeys:!1},_.tabsRole="Tabs";var b=_,T=["children","className"],I=function(t){var e=t.children,n=t.className,r=function(t,e){if(null==t)return{};var n,r,i={},u=Object.keys(t);for(r=0;r<u.length;r++)n=u[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,T);return i.createElement("ul",Object.assign({},r,{className:(0,l.Z)(n),role:"tablist"}),e)};I.tabsRole="TabList",I.propTypes={},I.defaultProps={className:"react-tabs__tab-list"};var S=I,x=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"],w="react-tabs__tab",R=function(t){var e,n=(0,i.useRef)(),r=t.children,u=t.className,o=t.disabled,a=t.disabledClassName,c=t.focus,f=t.id,s=t.selected,p=t.selectedClassName,d=t.tabIndex,h=t.tabRef,m=function(t,e){if(null==t)return{};var n,r,i={},u=Object.keys(t);for(r=0;r<u.length;r++)n=u[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,x);return(0,i.useEffect)(function(){s&&c&&n.current.focus()},[s,c]),i.createElement("li",Object.assign({},m,{className:(0,l.Z)(u,((e={})[p]=s,e[a]=o,e)),ref:function(t){n.current=t,h&&h(t)},role:"tab",id:"tab"+f,"aria-selected":s?"true":"false","aria-disabled":o?"true":"false","aria-controls":"panel"+f,tabIndex:d||(s?"0":null),"data-rttab":!0}),r)};R.propTypes={},R.tabsRole="Tab",R.defaultProps={className:w,disabledClassName:w+"--disabled",focus:!1,id:null,selected:!1,selectedClassName:w+"--selected"};var O=R,M=["children","className","forceRender","id","selected","selectedClassName"],E="react-tabs__tab-panel",k=function(t){var e,n=t.children,r=t.className,u=t.forceRender,o=t.id,a=t.selected,c=t.selectedClassName,f=function(t,e){if(null==t)return{};var n,r,i={},u=Object.keys(t);for(r=0;r<u.length;r++)n=u[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,M);return i.createElement("div",Object.assign({},f,{className:(0,l.Z)(r,((e={})[c]=a,e)),role:"tabpanel",id:"panel"+o,"aria-labelledby":"tab"+o}),u||a?n:null)};k.tabsRole="TabPanel",k.propTypes={},k.defaultProps={className:E,forceRender:!1,selectedClassName:E+"--selected"};var C=k},58831:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrowContainer=void 0;var i=n(52322),u=n(2784),o=n(64379),a=function(t){var e=t.childRect,n=t.popoverRect,a=t.position,c=t.arrowColor,f=t.arrowSize,l=t.arrowClassName,s=t.arrowStyle,p=t.className,d=t.children,h=t.style,m=o.useArrowContainer({childRect:e,popoverRect:n,position:a,arrowColor:c,arrowSize:f}),v=m.arrowContainerStyle,y=m.arrowStyle,_=u.useMemo(function(){return r(r({},v),h)},[v,h]),b=u.useMemo(function(){return r(r({},y),s)},[y,s]);return i.jsxs("div",r({className:p,style:_},{children:[i.jsx("div",{style:b,className:l},void 0),d]}),void 0)};e.ArrowContainer=a},19909:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Popover=e.usePopover=e.ArrowContainer=e.useArrowContainer=void 0;var i=n(52322),u=n(2784),o=n(44635),a=n(27574),c=n(61462);Object.defineProperty(e,"usePopover",{enumerable:!0,get:function(){return c.usePopover}});var f=n(70414),l=n(64379);Object.defineProperty(e,"useArrowContainer",{enumerable:!0,get:function(){return l.useArrowContainer}});var s=n(58831);Object.defineProperty(e,"ArrowContainer",{enumerable:!0,get:function(){return s.ArrowContainer}});var p=["top","left","right","bottom"],d=u.forwardRef(function(t,e){var n=t.isOpen,l=t.children,s=t.content,d=t.positions,h=t.align,m=void 0===h?"center":h,v=t.padding,y=void 0===v?0:v,_=t.reposition,b=void 0===_||_,T=t.parentElement,I=void 0===T?window.document.body:T,S=t.boundaryElement,x=t.containerClassName,w=t.containerStyle,R=t.contentLocation,O=t.boundaryInset,M=void 0===O?0:O,E=t.onClickOutside,k=t.clickOutsideCapture,C=void 0!==k&&k,P=f.useMemoizedArray(void 0===d?p:d),W=u.useRef(!1),D=u.useRef(),F=u.useRef(),N=u.useRef(b),A=u.useRef(),L=u.useState({align:m,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:M,violations:a.EMPTY_CLIENT_RECT,hasViolations:!1}),U=L[0],j=L[1],q=u.useCallback(function(t){return j(t)},[]),B=c.usePopover({isOpen:n,childRef:A,containerClassName:void 0===x?"react-tiny-popover-container":x,parentElement:I,boundaryElement:void 0===S?I:S,contentLocation:R,positions:P,align:m,padding:y,boundaryInset:M,reposition:b,onPositionPopover:q}),Y=B.positionPopover,K=B.popoverRef,G=B.scoutRef;u.useLayoutEffect(function(){var t=!0,e=function(){var r,i;if(n&&t){var u=null===(r=null==A?void 0:A.current)||void 0===r?void 0:r.getBoundingClientRect(),o=null===(i=null==K?void 0:K.current)||void 0===i?void 0:i.getBoundingClientRect();null==u||null==o||a.rectsAreEqual(u,{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})&&o.width===U.popoverRect.width&&o.height===U.popoverRect.height&&U.padding===y&&U.align===m&&P===D.current&&R===F.current&&b===N.current||Y(),P!==D.current&&(D.current=P),R!==F.current&&(F.current=R),b!==N.current&&(N.current=b),t&&window.requestAnimationFrame(e)}W.current=n};return window.requestAnimationFrame(e),function(){t=!1}},[m,R,n,y,K,U.align,U.childRect.height,U.childRect.left,U.childRect.top,U.childRect.width,U.padding,U.popoverRect.height,U.popoverRect.width,Y,P,b,]),u.useEffect(function(){var t=K.current;return Object.assign(t.style,w),function(){Object.keys(null!=w?w:{}).forEach(function(e){return delete t.style[e]})}},[w,n,K]);var z=u.useCallback(function(t){var e,r;!n||(null===(e=K.current)||void 0===e?void 0:e.contains(t.target))||(null===(r=A.current)||void 0===r?void 0:r.contains(t.target))||null==E||E(t)},[n,E,K]),V=u.useCallback(function(){A.current&&window.requestAnimationFrame(function(){return Y()})},[Y]);u.useEffect(function(){var t=I.ownerDocument.body;return t.addEventListener("click",z,C),t.addEventListener("contextmenu",z,C),t.addEventListener("resize",V),function(){t.removeEventListener("click",z,C),t.removeEventListener("contextmenu",z,C),t.removeEventListener("resize",V)}},[C,z,V,I]);var H=u.useCallback(function(t){A.current=t,null!=e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))},[e]);return i.jsxs(i.Fragment,{children:[u.cloneElement(l,{ref:H}),n?i.jsx(o.PopoverPortal,r({element:K.current,scoutElement:G.current,container:I},{children:"function"==typeof s?s(U):s}),void 0):null]},void 0)});e.Popover=u.forwardRef(function(t,e){return"undefined"==typeof window?t.children:i.jsx(d,r({},t,{ref:e}),void 0)})},44635:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopoverPortal=void 0;var r=n(2784),i=n(28316),u=function(t){var e=t.container,n=t.element,u=t.scoutElement,o=t.children;return r.useLayoutEffect(function(){return e.appendChild(n),e.appendChild(u),function(){e.removeChild(n),e.removeChild(u)}},[e,n,u]),i.createPortal(o,n)};e.PopoverPortal=u},64379:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.useArrowContainer=void 0;var i=n(2784),u=function(t){var e=t.childRect,n=t.popoverRect,u=t.position,o=t.arrowSize,a=t.arrowColor,c=i.useMemo(function(){return{padding:o}},[o]),f=i.useMemo(function(){return r({position:"absolute"},function(){var t=2*o,r=e.top-n.top+e.height/2-t/2,i=e.left-n.left+e.width/2-t/2,c=n.width-o,f=n.height-o;switch(i=(i=i<o?o:i)+t>c?c-t:i,r=Number.isNaN(r=(r=r<o?o:r)+t>f?f-t:r)?0:r,i=Number.isNaN(i)?0:i,u){case"right":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderRight:o+"px solid "+a,left:0,top:r};case"left":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderLeft:o+"px solid "+a,right:0,top:r};case"bottom":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderBottom:o+"px solid "+a,top:0,left:i};case"top":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderTop:o+"px solid "+a,bottom:0,left:i};default:return{display:"hidden"}}}())},[a,o,e.height,e.left,e.top,e.width,n.height,n.left,n.top,n.width,u,]);return{arrowContainerStyle:c,arrowStyle:f}};e.useArrowContainer=u},79601:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useElementRef=void 0;var r=n(2784),i=n(27574),u=function(t,e){var n=r.useRef(),u=r.useMemo(function(){return i.createContainer(e,t)},[t,e]);return n.current=u,n};e.useElementRef=u},70414:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useMemoizedArray=void 0;var r=n(2784),i=function(t){var e=r.useRef(t);return r.useMemo(function(){if(e.current===t)return e.current;if(e.current.length!==t.length)return e.current=t,t;for(var n=0;n<t.length;n+=1)if(t[n]!==e.current[n])return e.current=t,t;return e.current},[t])};e.useMemoizedArray=i},61462:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.usePopover=void 0;var r=n(2784),i=n(27574),u=n(79601),o={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"},c=function(t){var e=t.isOpen,n=t.childRef,c=t.positions,f=t.containerClassName,l=t.parentElement,s=t.contentLocation,p=t.align,d=t.padding,h=t.reposition,m=t.boundaryInset,v=t.boundaryElement,y=t.onPositionPopover,_=u.useElementRef(f,o),b=u.useElementRef("react-tiny-popover-scout",a),T=r.useCallback(function(t){var r,u,o=void 0===t?{}:t,a=o.positionIndex,f=void 0===a?0:a,I=o.parentRect,S=void 0===I?l.getBoundingClientRect():I,x=o.childRect,w=void 0===x?null===(r=null==n?void 0:n.current)||void 0===r?void 0:r.getBoundingClientRect():x,R=o.scoutRect,O=void 0===R?null===(u=null==b?void 0:b.current)||void 0===u?void 0:u.getBoundingClientRect():R,M=o.popoverRect,E=void 0===M?_.current.getBoundingClientRect():M,k=o.boundaryRect,C=void 0===k?v===l?S:v.getBoundingClientRect():k;if(w&&S&&e){if(s){var P="function"==typeof s?s({childRect:w,popoverRect:E,parentRect:S,boundaryRect:C,padding:d,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):s,W=P.top,D=P.left,F=Math.round(S.left+D-O.left),N=Math.round(S.top+W-O.top);_.current.style.transform="translate("+F+"px, "+N+"px)",y({childRect:w,popoverRect:E,parentRect:S,boundaryRect:C,padding:d,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var A=f===c.length,L=A?c[0]:c[f],U=i.getNewPopoverRect({childRect:w,popoverRect:E,boundaryRect:C,position:L,align:p,padding:d,reposition:h},m),j=U.rect;if(U.boundaryViolation&&h&&!A){T({positionIndex:f+1,childRect:w,popoverRect:E,parentRect:S,boundaryRect:C});return}var q=j.top,B=j.left,Y=j.width,K=j.height,G=i.getNudgedPopoverRect(j,C,m),z=G.left,V=G.top,H=q,Z=B;h&&!A&&(H=V,Z=z),H=Math.round(H-O.top),Z=Math.round(Z-O.left),_.current.style.transform="translate("+Z+"px, "+H+"px)";var $={top:C.top+m-H,left:C.left+m-Z,right:Z+Y-C.right+m,bottom:H+K-C.bottom+m};y({childRect:w,popoverRect:{top:H,left:Z,width:Y,height:K,right:Z+Y,bottom:H+K},parentRect:S,boundaryRect:C,position:L,align:p,padding:d,nudgedTop:V-q,nudgedLeft:z-B,boundaryInset:m,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,b,_,v,e,s,c,p,d,h,m,y,]);return{positionPopover:T,popoverRef:_,scoutRef:b}};e.usePopover=c},27574:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNudgedPopoverRect=e.getNewPopoverRect=e.popoverRectForPosition=e.createContainer=e.rectsAreEqual=e.EMPTY_CLIENT_RECT=void 0,e.EMPTY_CLIENT_RECT={top:0,left:0,bottom:0,height:0,right:0,width:0};var n=function(t,e){return t===e||(null==t?void 0:t.bottom)===(null==e?void 0:e.bottom)&&(null==t?void 0:t.height)===(null==e?void 0:e.height)&&(null==t?void 0:t.left)===(null==e?void 0:e.left)&&(null==t?void 0:t.right)===(null==e?void 0:e.right)&&(null==t?void 0:t.top)===(null==e?void 0:e.top)&&(null==t?void 0:t.width)===(null==e?void 0:e.width)};e.rectsAreEqual=n;var r=function(t,e){var n=window.document.createElement("div");return e&&(n.className=e),Object.assign(n.style,t),n};e.createContainer=r;var i=function(t,e,n,r,i){var u,o,a=e.left+e.width/2,c=e.top+e.height/2,f=n.width,l=n.height;switch(t){case"left":u=c-l/2,o=e.left-r-f,"start"===i&&(u=e.top),"end"===i&&(u=e.bottom-l);break;case"bottom":u=e.bottom+r,o=a-f/2,"start"===i&&(o=e.left),"end"===i&&(o=e.right-f);break;case"right":u=c-l/2,o=e.right+r,"start"===i&&(u=e.top),"end"===i&&(u=e.bottom-l);break;default:u=e.top-l-r,o=a-f/2,"start"===i&&(o=e.left),"end"===i&&(o=e.right-f)}return{top:u,left:o,width:f,height:l,right:o+f,bottom:u+l}};e.popoverRectForPosition=i;var u=function(t,n){var r=t.position,i=t.align,u=t.childRect,o=t.popoverRect,a=t.boundaryRect,c=t.padding,f=t.reposition,l=e.popoverRectForPosition(r,u,o,c,i),s=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:s}};e.getNewPopoverRect=u;var o=function(t,e,n){var r=e.top+n,i=e.left+n,u=e.right-n,o=e.bottom-n,a=t.top<r?r:t.top;a=a+t.height>o?o-t.height:a;var c=t.left<i?i:t.left;return{top:a,left:c=c+t.width>u?u-t.width:c,width:t.width,height:t.height,right:c+t.width,bottom:a+t.height}};e.getNudgedPopoverRect=o},80734:function(t,e,n){"use strict";/*!
|
|
4
|
-
* statuses
|
|
5
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
6
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
7
|
-
* MIT Licensed
|
|
8
|
-
*/ var r,i,u,o=n(1710);function a(t){if(!Object.prototype.hasOwnProperty.call(c.message,t))throw Error("invalid status code: "+t);return c.message[t]}function c(t){if("number"==typeof t)return a(t);if("string"!=typeof t)throw TypeError("code must be a number or string");var e=parseInt(t,10);return isNaN(e)?function(t){var e=t.toLowerCase();if(!Object.prototype.hasOwnProperty.call(c.code,e))throw Error('invalid status message: "'+t+'"');return c.code[e]}(t):a(e)}t.exports=c,c.message=o,c.code=(r=o,i={},Object.keys(r).forEach(function(t){var e=r[t],n=Number(t);i[e.toLowerCase()]=n}),i),c.codes=(u=o,Object.keys(u).map(function(t){return Number(t)})),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}},91618:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};e.__esModule=!0;var i=r(n(85653)),u=n(31380);e.default=function(t,e){var n={};return t&&"string"==typeof t&&(0,i.default)(t,function(t,r){t&&r&&(n[(0,u.camelCase)(t,e)]=r)}),n}},31380:function(t,e){"use strict";e.__esModule=!0,e.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(t,e){return e.toUpperCase()},c=function(t,e){return"".concat(e,"-")},f=function(t,e){var f;return(void 0===e&&(e={}),!(f=t)||i.test(f)||n.test(f))?t:(t=t.toLowerCase(),(t=e.reactCompat?t.replace(o,c):t.replace(u,c)).replace(r,a))};e.camelCase=f},85653:function(t,e,n){var r=n(6299);function i(t,e){var n,i,u,o=null;if(!t||"string"!=typeof t)return o;for(var a=r(t),c="function"==typeof e,f=0,l=a.length;f<l;f++)i=(n=a[f]).property,u=n.value,c?e(i,u,n):u&&(o||(o={}),o[i]=u);return o}t.exports=i,t.exports.default=i},87783:function(t,e,n){"use strict";n.r(e),n.d(e,{__assign:function(){return u},__asyncDelegator:function(){return R},__asyncGenerator:function(){return w},__asyncValues:function(){return O},__await:function(){return x},__awaiter:function(){return h},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return D},__classPrivateFieldSet:function(){return W},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return C},__importStar:function(){return k},__makeTemplateObject:function(){return M},__metadata:function(){return d},__param:function(){return c},__propKey:function(){return s},__read:function(){return b},__rest:function(){return o},__runInitializers:function(){return l},__setFunctionName:function(){return p},__spread:function(){return T},__spreadArray:function(){return S},__spreadArrays:function(){return I},__values:function(){return _}});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function o(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function a(t,e,n,r){var i,u=arguments.length,o=u<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(u<3?i(o):u>3?i(e,n,o):i(e,n))||o);return u>3&&o&&Object.defineProperty(e,n,o),o}function c(t,e){return function(n,r){e(n,r,t)}}function f(t,e,n,r,i,u){function o(t){if(void 0!==t&&"function"!=typeof t)throw TypeError("Function expected");return t}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!e&&t?r.static?t:t.prototype:null,s=e||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),p=!1,d=n.length-1;d>=0;d--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(t){if(p)throw TypeError("Cannot add initializers after decoration has completed");u.push(o(t||null))};var v=(0,n[d])("accessor"===c?{get:s.get,set:s.set}:s[f],h);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=o(v.get))&&(s.get=a),(a=o(v.set))&&(s.set=a),(a=o(v.init))&&i.unshift(a)}else(a=o(v))&&("field"===c?i.unshift(a):s[f]=a)}l&&Object.defineProperty(l,r.name,s),p=!0}function l(t,e,n){for(var r=arguments.length>2,i=0;i<e.length;i++)n=r?e[i].call(t,n):e[i].call(t);return r?n:void 0}function s(t){return"symbol"==typeof t?t:"".concat(t)}function p(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function d(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t,e,n,r){return new(n||(n=Promise))(function(i,u){function o(t){try{c(r.next(t))}catch(e){u(e)}}function a(t){try{c(r.throw(t))}catch(e){u(e)}}function c(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,a)}c((r=r.apply(t,e||[])).next())})}function m(t,e){var n,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)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 o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}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(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function y(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||v(e,t,n)}function _(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,u=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=u.next()).done;)o.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return o}function T(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function I(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var u=arguments[e],o=0,a=u.length;o<a;o++,i++)r[i]=u[o];return r}function S(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function x(t){return this instanceof x?(this.v=t,this):new x(t)}function w(t,e,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),u=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){u.push([t,e,n,r])>1||a(t,e)})})}function a(t,e){try{var n;n=i[t](e),n.value instanceof x?Promise.resolve(n.value.v).then(c,f):l(u[0][2],n)}catch(r){l(u[0][3],r)}}function c(t){a("next",t)}function f(t){a("throw",t)}function l(t,e){t(e),u.shift(),u.length&&a(u[0][0],u[0][1])}}function R(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:x(t[r](e)),done:!1}:i?i(e):e}:i}}function O(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=_(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){!function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,i,(e=t[n](e)).done,e.value)})}}}function M(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var E=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&v(e,t,n);return E(e,t),e}function C(t){return t&&t.__esModule?t:{default:t}}function P(t,e,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function W(t,e,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 e?t!==e||!i:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function D(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}e.default={__extends:i,__assign:u,__rest:o,__decorate:a,__param:c,__metadata:d,__awaiter:h,__generator:m,__createBinding:v,__exportStar:y,__values:_,__read:b,__spread:T,__spreadArrays:I,__spreadArray:S,__await:x,__asyncGenerator:w,__asyncDelegator:R,__asyncValues:O,__makeTemplateObject:M,__importStar:k,__importDefault:C,__classPrivateFieldGet:P,__classPrivateFieldSet:W,__classPrivateFieldIn:D}},78948:function(t,e,n){"use strict";n.r(e),n.d(e,{__assign:function(){return u},__asyncDelegator:function(){return R},__asyncGenerator:function(){return w},__asyncValues:function(){return O},__await:function(){return x},__awaiter:function(){return h},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return D},__classPrivateFieldSet:function(){return W},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return C},__importStar:function(){return k},__makeTemplateObject:function(){return M},__metadata:function(){return d},__param:function(){return c},__propKey:function(){return s},__read:function(){return b},__rest:function(){return o},__runInitializers:function(){return l},__setFunctionName:function(){return p},__spread:function(){return T},__spreadArray:function(){return S},__spreadArrays:function(){return I},__values:function(){return _}});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function o(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function a(t,e,n,r){var i,u=arguments.length,o=u<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(u<3?i(o):u>3?i(e,n,o):i(e,n))||o);return u>3&&o&&Object.defineProperty(e,n,o),o}function c(t,e){return function(n,r){e(n,r,t)}}function f(t,e,n,r,i,u){function o(t){if(void 0!==t&&"function"!=typeof t)throw TypeError("Function expected");return t}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!e&&t?r.static?t:t.prototype:null,s=e||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),p=!1,d=n.length-1;d>=0;d--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(t){if(p)throw TypeError("Cannot add initializers after decoration has completed");u.push(o(t||null))};var v=(0,n[d])("accessor"===c?{get:s.get,set:s.set}:s[f],h);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=o(v.get))&&(s.get=a),(a=o(v.set))&&(s.set=a),(a=o(v.init))&&i.unshift(a)}else(a=o(v))&&("field"===c?i.unshift(a):s[f]=a)}l&&Object.defineProperty(l,r.name,s),p=!0}function l(t,e,n){for(var r=arguments.length>2,i=0;i<e.length;i++)n=r?e[i].call(t,n):e[i].call(t);return r?n:void 0}function s(t){return"symbol"==typeof t?t:"".concat(t)}function p(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function d(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t,e,n,r){return new(n||(n=Promise))(function(i,u){function o(t){try{c(r.next(t))}catch(e){u(e)}}function a(t){try{c(r.throw(t))}catch(e){u(e)}}function c(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,a)}c((r=r.apply(t,e||[])).next())})}function m(t,e){var n,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)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 o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}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(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function y(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||v(e,t,n)}function _(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,u=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=u.next()).done;)o.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return o}function T(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function I(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var u=arguments[e],o=0,a=u.length;o<a;o++,i++)r[i]=u[o];return r}function S(t,e,n){if(n||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function x(t){return this instanceof x?(this.v=t,this):new x(t)}function w(t,e,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),u=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){u.push([t,e,n,r])>1||a(t,e)})})}function a(t,e){try{var n;n=i[t](e),n.value instanceof x?Promise.resolve(n.value.v).then(c,f):l(u[0][2],n)}catch(r){l(u[0][3],r)}}function c(t){a("next",t)}function f(t){a("throw",t)}function l(t,e){t(e),u.shift(),u.length&&a(u[0][0],u[0][1])}}function R(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:x(t[r](e)),done:!1}:i?i(e):e}:i}}function O(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=_(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){!function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,i,(e=t[n](e)).done,e.value)})}}}function M(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var E=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&v(e,t,n);return E(e,t),e}function C(t){return t&&t.__esModule?t:{default:t}}function P(t,e,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function W(t,e,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 e?t!==e||!i:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function D(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}e.default={__extends:i,__assign:u,__rest:o,__decorate:a,__param:c,__metadata:d,__awaiter:h,__generator:m,__createBinding:v,__exportStar:y,__values:_,__read:b,__spread:T,__spreadArrays:I,__spreadArray:S,__await:x,__asyncGenerator:w,__asyncDelegator:R,__asyncValues:O,__makeTemplateObject:M,__importStar:k,__importDefault:C,__classPrivateFieldGet:P,__classPrivateFieldSet:W,__classPrivateFieldIn:D}},16:function(t,e,n){"use strict";n.d(e,{SH:function(){return H}}),(r=u||(u={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(i=o||(o={})).Ping="ping",i.SetSliceZone="setSliceZone",i.ScrollToSlice="scrollToSlice";var r,i,u,o,a,c,f,l,s,p,d,h=n(80734);(p=a||(a={})).Connect="connect",(d=c||(c={})).Ready="ready";var m=Object.defineProperty,v=(t,e,n)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,y=(t,e,n)=>(v(t,"symbol"!=typeof e?e+"":e,n),n);class _ extends Error{constructor(t){super(t.msg),y(this,"response"),this.response=t}}class b extends Error{constructor(){super("Connection timed out")}}class T extends Error{constructor(t){super("Too many concurrent requests"),y(this,"request"),this.request=t}}class I extends Error{constructor(t){super(`Request \`${t.requestID}\` timed out`),y(this,"request"),this.request=t}}class S extends Error{}class x extends Error{constructor(){super("Port is not set")}}class w extends Error{constructor(){super("Channel is not set")}}let R=0,O=(t,e,n="")=>({requestID:`${n}${R++}`,type:t,data:e}),M=(t,e,n=200)=>{var r;if(n>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${n}\``);return{requestID:t,status:n,msg:(null==(r=h.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:e}},E=(t,e,n=400)=>{var r;if(n<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${n}\``);return{requestID:t,status:n,msg:(null==(r=h.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:e}},k=t=>{if("object"!=typeof t||null===t)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof t}\``);if(Object.keys(t).every(t=>["requestID","type","data","status","msg","error"].includes(t))){if("string"!=typeof t.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof t.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(t)}`);return t},C=t=>"type"in t,P=t=>!("type"in t),W=t=>P(t)&&!("error"in t);var D=Object.defineProperty,F=(t,e,n)=>e in t?D(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N=(t,e,n)=>(F(t,"symbol"!=typeof e?e+"":e,n),n);let A={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class L{constructor(t,e){N(this,"requestHandlers"),N(this,"options"),N(this,"_port",null),N(this,"_pendingRequests",new Map),this.requestHandlers=t,this.options={...A,...e}}get port(){if(!this._port)throw new x;return this._port}set port(t){this._port&&(this._port.onmessage=null),this._port=t,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(t,e){return O(t,e,this.options.requestIDPrefix)}async onMessage(t){this.options.debug&&console.debug(t.data);try{let e=k(t.data);if(C(e)){if(this.requestHandlers[e.type])try{let n=await this.requestHandlers[e.type](e,{success:M.bind(this,e.requestID),error:E.bind(this,e.requestID)});this.postResponse(n)}catch(r){this.postResponse(E(e.requestID,r,500))}else this.postResponse(E(e.requestID,void 0,501))}else this._pendingRequests.has(e.requestID)?(this._pendingRequests.get(e.requestID)(e),this._pendingRequests.delete(e.requestID)):console.error(`Unknown request ID received in response: ${JSON.stringify(e)}`)}catch(i){if(i instanceof TypeError)console.warn(i.message);else throw i}}postRequest(t,e=t=>this.port.postMessage(t),n={}){if(this.options.debug&&console.debug(t),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new T(t);return new Promise((r,i)=>{let u=setTimeout(()=>{this._pendingRequests.has(t.requestID)&&this._pendingRequests.delete(t.requestID),i(new I(t))},n.timeout||this.options.defaultTimeout);this._pendingRequests.set(t.requestID,t=>{clearTimeout(u),W(t)?r(t):i(new _(t))}),e(t)})}postResponse(t,e=t=>this.port.postMessage(t)){return this.options.debug&&console.debug(t),e(t),t}}var U=Object.defineProperty,j=(t,e,n)=>e in t?U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q=(t,e,n)=>(j(t,"symbol"!=typeof e?e+"":e,n),n);let B={connectTimeout:2e4,requestIDPrefix:"emitter-"};class Y extends L{constructor(t,e,n){super(e,{...B,...n}),q(this,"_target"),q(this,"_channel",null),q(this,"_receiverReady",""),q(this,"_receiverReadyCallback",null),q(this,"_connected",!1),this._target=t,window.addEventListener("message",t=>{this._onPublicMessage(t)})}get channel(){if(!this._channel)throw new w;return this._channel}set channel(t){this._channel=t,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(t={},e=!1){return this.disconnect(),e&&(this._receiverReady=""),new Promise((e,n)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return n(Error("Target window is not available"));let r=setTimeout(()=>{n(new b)},this.options.connectTimeout),i=async()=>{clearTimeout(r),this.channel=new MessageChannel;let n=this.createRequestMessage(a.Connect,t),i=await this.postRequest(n,t=>{this._target.contentWindow.postMessage(t,"*",[this.channel.port2])});this.postResponse(M(this._receiverReady,void 0),t=>{this._target.contentWindow.postMessage(t,"*")}),this._connected=!0,e(i)};this._receiverReady?i():this._receiverReadyCallback=i},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(t){if(t.source===this._target.contentWindow)try{let e=k(t.data);if(C(e)){if(this.options.debug&&console.debug(t.data),e.type===c.Ready){if(this._receiverReady=e.requestID,this._receiverReadyCallback){let n=this._receiverReadyCallback();this._receiverReadyCallback=null,await n}}else this.postResponse(E(e.requestID,void 0),e=>{t.source.postMessage(e,t.origin)})}}catch(r){if(r instanceof TypeError);else throw r}}postFormattedRequest(t,e,n={}){if(!this._connected)throw new S("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(t,e),void 0,n)}}var K=Object.defineProperty,G=(t,e,n)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,z=(t,e,n)=>(G(t,"symbol"!=typeof e?e+"":e,n),n);let V={requestIDPrefix:"client-"};class H extends Y{constructor(t,e,n){var r,i;let a=(null==n?void 0:n.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(t,{[u.SetActiveSlice]:(t,e)=>e.success(),[u.SetSliceZoneSize]:(t,e)=>e.success(),...e},{...V,...n,debug:a}),z(this,f,async()=>await this.postFormattedRequest(o.Ping)),z(this,l,async t=>await this.postFormattedRequest(o.SetSliceZone,t)),z(this,s,async t=>await this.postFormattedRequest(o.ScrollToSlice,t)),a&&(window.prismic||(window.prismic={}),(r=window.prismic).sliceSimulator||(r.sliceSimulator={}),(i=window.prismic.sliceSimulator).client||(i.client=[]),window.prismic.sliceSimulator.client.push(this))}}f=o.Ping,l=o.SetSliceZone,s=o.ScrollToSlice,u.SetActiveSlice,u.SetSliceZoneSize},86741:function(t,e,n){"use strict";n.d(e,{W_:function(){return u},du:function(){return i}});var r=n(72670),i=r.domToReact;r.htmlToDOM,r.attributesToProps,r.Comment;var u=r.Element;r.ProcessingInstruction,r.Text,e.ZP=r},33402:function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}n.d(e,{Z:function(){return r}})},19108:function(t){"use strict";t.exports=JSON.parse('[{"url":"https://twitter.com/prismicio/status/1356293316158095361","oembed":{"embed_url":"https://twitter.com/prismicio/status/1356293316158095361","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Gatsby is a popular choice for Prismic users and we work hard on delivering a CMS that plays to its strengths.<br><br>But, what makes <a href=\\"https://twitter.com/GatsbyJS?ref_src=twsrc%5Etfw\\">@GatsbyJS</a> so popular?<br><br>Here are some of <a href=\\"https://twitter.com/mxstbr?ref_src=twsrc%5Etfw\\">@mxstbr</a>'s thoughts on Gatsby's success and how they're improving developer experience.<a href=\\"https://t.co/ZjCPvsWWUD\\">https://t.co/ZjCPvsWWUD</a> <a href=\\"https://t.co/EQqzJpeNKl\\">pic.twitter.com/EQqzJpeNKl</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1356293316158095361?ref_src=twsrc%5Etfw\\">February 1, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/timbenniks/status/1304146886832594944","oembed":{"embed_url":"https://twitter.com/timbenniks/status/1304146886832594944","author_name":"Tim Benniks","author_url":"https://twitter.com/timbenniks","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">I’ve been diving deep on <a href=\\"https://twitter.com/prismicio?ref_src=twsrc%5Etfw\\">@prismicio</a> <a href=\\"https://twitter.com/hashtag/slicemachine?src=hash&ref_src=twsrc%5Etfw\\">#slicemachine</a> today. I made all my own components and I used custom slices. It works like a charm with <a href=\\"https://twitter.com/nuxt_js?ref_src=twsrc%5Etfw\\">@nuxt_js</a>. Also\\": I’m coding with this view. <a href=\\"https://t.co/F0I8X9gz39\\">pic.twitter.com/F0I8X9gz39</a></p>— Tim Benniks (@timbenniks) <a href=\\"https://twitter.com/timbenniks/status/1304146886832594944?ref_src=twsrc%5Etfw\\">September 10, 2020</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354112310252630016","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354112310252630016","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">We're launching a new <a href=\\"https://twitter.com/hashtag/SliceContest?src=hash&ref_src=twsrc%5Etfw\\">#SliceContest</a> tomorrow along with Slice Machine upgrades.<br><br>Want to know more? Join us at tomorrow's Product Meet-up\uD83D\uDC47<a href=\\"https://t.co/prYSypiAvB\\">https://t.co/prYSypiAvB</a><br><br>We can't tell you any further details for now, but here's a sneak peek at the prizes\uD83D\uDC40 <a href=\\"https://t.co/fV1eoGlEBh\\">pic.twitter.com/fV1eoGlEBh</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354112310252630016?ref_src=twsrc%5Etfw\\">January 26, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354835716430319617","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354835716430319617","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Does anyone want to create a wildly popular website for discussing 'Wall Street Bets' using Prismic?<br><br>It may or may not have to look a lot like <a href=\\"https://twitter.com/hashtag/reddit?src=hash&ref_src=twsrc%5Etfw\\">#reddit</a> and we won't make it private.<br><br>Just asking for some friends...</p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354835716430319617?ref_src=twsrc%5Etfw\\">January 28, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}}]')},88416:function(t){"use strict";t.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(t){"use strict";t.exports=JSON.parse('[{"raw":"https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Christin Hume","orientation":"landscape","userLink":"https://unsplash.com/@christinhumephoto","width":5616,"height":3744},{"raw":"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Glenn Carstens-Peters","orientation":"landscape","userLink":"https://unsplash.com/@glenncarstenspeters","width":4076,"height":2712},{"raw":"https://images.unsplash.com/photo-1589652717521-10c0d092dea9?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Cookie the Pom","orientation":"landscape","userLink":"https://unsplash.com/@cookiethepom","width":4752,"height":3168},{"raw":"https://images.unsplash.com/photo-1515378960530-7c0da6231fb1?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Christin Hume","orientation":"landscape","userLink":"https://unsplash.com/@christinhumephoto","width":5616,"height":3744},{"raw":"https://images.unsplash.com/photo-1547394765-185e1e68f34e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Christian Wiediger","orientation":"landscape","userLink":"https://unsplash.com/@christianw","width":6000,"height":4000},{"raw":"https://images.unsplash.com/photo-1601933973783-43cf8a7d4c5f?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Brooke Cagle","orientation":"landscape","userLink":"https://unsplash.com/@brookecagle","width":6597,"height":4398},{"raw":"https://images.unsplash.com/photo-1537498425277-c283d32ef9db?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Tianyi Ma","orientation":"landscape","userLink":"https://unsplash.com/@tma","width":4380,"height":2895},{"raw":"https://images.unsplash.com/photo-1496181133206-80ce9b88a853?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Kari Shea","orientation":"landscape","userLink":"https://unsplash.com/@karishea","width":5243,"height":3495},{"raw":"https://images.unsplash.com/photo-1448932223592-d1fc686e76ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Bench Accounting","orientation":"landscape","userLink":"https://unsplash.com/@benchaccounting","width":3500,"height":2338},{"raw":"https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Christopher Gower","orientation":"landscape","userLink":"https://unsplash.com/@cgower","width":3882,"height":2584},{"raw":"https://images.unsplash.com/photo-1560762484-813fc97650a0?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Aryan Dhiman","orientation":"landscape","userLink":"https://unsplash.com/@mylifeasaryan_","width":3344,"height":2509},{"raw":"https://images.unsplash.com/photo-1544731612-de7f96afe55f?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Aleksander Vlad","orientation":"landscape","userLink":"https://unsplash.com/@aleksowlade","width":6000,"height":4000},{"raw":"https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Domenico Loia","orientation":"landscape","userLink":"https://unsplash.com/@domenicoloia","width":5848,"height":3899},{"raw":"https://images.unsplash.com/photo-1560457079-9a6532ccb118?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Sam Albury","orientation":"landscape","userLink":"https://unsplash.com/@sammisamuel21","width":4160,"height":3120},{"raw":"https://images.unsplash.com/photo-1547082299-de196ea013d6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"DESIGNECOLOGIST","orientation":"landscape","userLink":"https://unsplash.com/@designecologist","width":4272,"height":2848},{"raw":"https://images.unsplash.com/photo-1551739440-5dd934d3a94a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Niclas Illg","orientation":"portrait","userLink":"https://unsplash.com/@nicklbaert","width":3456,"height":4320},{"raw":"https://images.unsplash.com/photo-1531771686035-25f47595c87a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Tanner Van Dera","orientation":"portrait","userLink":"https://unsplash.com/@tanner","width":3024,"height":3778},{"raw":"https://images.unsplash.com/photo-1471897488648-5eae4ac6686b?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Sarah Dorweiler","orientation":"portrait","userLink":"https://unsplash.com/@sarahdorweiler","width":3560,"height":5340},{"raw":"https://images.unsplash.com/photo-1504198070170-4ca53bb1c1fa?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Sarah Dorweiler","orientation":"portrait","userLink":"https://unsplash.com/@sarahdorweiler","width":2747,"height":4120},{"raw":"https://images.unsplash.com/photo-1494173853739-c21f58b16055?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Gabriel Beaudry","orientation":"portrait","userLink":"https://unsplash.com/@gbeaudry","width":3277,"height":4092},{"raw":"https://images.unsplash.com/photo-1541807084-5c52b6b3adef?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Howard Bouchevereau","orientation":"portrait","userLink":"https://unsplash.com/@howardbouchevereau","width":4000,"height":6000},{"raw":"https://images.unsplash.com/photo-1593642633279-1796119d5482?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"XPS","orientation":"portrait","userLink":"https://unsplash.com/@xps","width":4016,"height":6016},{"raw":"https://images.unsplash.com/photo-1545239351-1141bd82e8a6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Sincerely Media","orientation":"portrait","userLink":"https://unsplash.com/@sincerelymedia","width":3212,"height":3880},{"raw":"https://images.unsplash.com/photo-1491975474562-1f4e30bc9468?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Andrew Neel","orientation":"portrait","userLink":"https://unsplash.com/@andrewtneel","width":4000,"height":6000},{"raw":"https://images.unsplash.com/photo-1587614295999-6c1c13675117?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"Windows","orientation":"portrait","userLink":"https://unsplash.com/@windows","width":3810,"height":5715},{"raw":"https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"Andras Vas","orientation":"portrait","userLink":"https://unsplash.com/@wasdrew","width":3648,"height":4560},{"raw":"https://images.unsplash.com/photo-1587905069134-008460d7a636?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"Varun Gaba","orientation":"portrait","userLink":"https://unsplash.com/@varunkgaba","width":3935,"height":5894},{"raw":"https://images.unsplash.com/photo-1587613865763-4b8b0d19e8ab?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"Surface","orientation":"portrait","userLink":"https://unsplash.com/@surface","width":12288,"height":16384},{"raw":"https://images.unsplash.com/photo-1589321599763-d66926c29613?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"lilzidesigns","orientation":"portrait","userLink":"https://unsplash.com/@loravisuals","width":3168,"height":4752},{"raw":"https://images.unsplash.com/photo-1589321578146-4c1ba445cc88?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"lilzidesigns","orientation":"portrait","userLink":"https://unsplash.com/@loravisuals","width":3168,"height":4752},{"raw":"https://images.unsplash.com/photo-1593642532973-d31b6557fa68?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"XPS","orientation":"squarish","userLink":"https://unsplash.com/@xps","width":8640,"height":8640},{"raw":"https://images.unsplash.com/photo-1591012911207-0dbac31f37da?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Amadej Tauses","orientation":"squarish","userLink":"https://unsplash.com/@amadejtauses","width":4000,"height":4000},{"raw":"https://images.unsplash.com/photo-1576662712957-9c79ae1280f8?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Andrew Mantarro","orientation":"squarish","userLink":"https://unsplash.com/@andymant","width":3456,"height":3456},{"raw":"https://images.unsplash.com/photo-1606248897732-2c5ffe759c04?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"F\xe1bio Alves","orientation":"squarish","userLink":"https://unsplash.com/@barncreative","width":4000,"height":4000},{"raw":"https://images.unsplash.com/photo-1600804931749-2da4ce26c869?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"mojtaba mosayebzadeh","orientation":"squarish","userLink":"https://unsplash.com/@mojiw","width":3199,"height":3199},{"raw":"https://images.unsplash.com/photo-1607582278038-6bebbd4d7b72?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Kouji Tsuru","orientation":"squarish","userLink":"https://unsplash.com/@pafuxu","width":4010,"height":4010},{"raw":"https://images.unsplash.com/photo-1587840171670-8b850147754e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Sebastian Bednarek","orientation":"squarish","userLink":"https://unsplash.com/@abeso","width":4480,"height":4480},{"raw":"https://images.unsplash.com/photo-1493119508027-2b584f234d6c?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Goran Ivos","orientation":"squarish","userLink":"https://unsplash.com/@goran_ivos","width":3424,"height":3424},{"raw":"https://images.unsplash.com/photo-1600861194802-a2b11076bc51?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Sam Pak","orientation":"squarish","userLink":"https://unsplash.com/@melocokr","width":2545,"height":2545},{"raw":"https://images.unsplash.com/photo-1571126770897-2d612d1f7b89?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Andrew Mantarro","orientation":"squarish","userLink":"https://unsplash.com/@andymant","width":3456,"height":3456},{"raw":"https://images.unsplash.com/photo-1586952518485-11b180e92764?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Shuttergames","orientation":"squarish","userLink":"https://unsplash.com/@shuttergames","width":4172,"height":4000},{"raw":"https://images.unsplash.com/photo-1587653915936-5623ea0b949a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Huy Phan","orientation":"squarish","userLink":"https://unsplash.com/@huyphan2602","width":4000,"height":4000},{"raw":"https://images.unsplash.com/photo-1607582278043-57198ac8da43?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Kouji Tsuru","orientation":"squarish","userLink":"https://unsplash.com/@pafuxu","width":4024,"height":4024},{"raw":"https://images.unsplash.com/photo-1579931794097-0ad001e51edb?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Alexander Aguero","orientation":"squarish","userLink":"https://unsplash.com/@alex_cr0496","width":3958,"height":3958},{"raw":"https://images.unsplash.com/photo-1596195689404-24d8a8d1c6ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Md Mahdi","orientation":"squarish","userLink":"https://unsplash.com/@mahdi17","width":5000,"height":4613}]')},93953:function(t){"use strict";t.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(t){"use strict";t.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')},1710:function(t){"use strict";t.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"}')}}]);
|