1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90],{1098:(e,t,a)=>{"use strict";a.d(t,{$n:()=>_,DZ:()=>k,EY:()=>z,FN:()=>eX,GB:()=>eH,Lv:()=>w,Mo:()=>e0,NK:()=>eU,NS:()=>eJ,SQ:()=>E,UH:()=>j,UI:()=>eG,Vf:()=>eW,Zc:()=>x,Zk:()=>eY,_V:()=>N,e:()=>eq,el:()=>I,hl:()=>eK,iG:()=>eL,pA:()=>eF,sD:()=>T});var n,r,i,s,o,l,d=a(3075),u=a(7620),c=a(70323),p=a(89792),f=a(30996),m=a(22182);a(97340);var h=a(21367);(0,d.A)(":root{--cf-color-white:#fff;--cf-color-black:#000;--cf-color-gray100:#f7f9fa;--cf-color-gray400:#aec1cc;--cf-color-gray400-rgb:174,193,204;--cf-spacing-0:0rem;--cf-spacing-1:0.125rem;--cf-spacing-2:0.25rem;--cf-spacing-3:0.375rem;--cf-spacing-4:0.5rem;--cf-spacing-5:0.625rem;--cf-spacing-6:0.75rem;--cf-spacing-7:0.875rem;--cf-spacing-8:1rem;--cf-spacing-9:1.25rem;--cf-spacing-10:1.5rem;--cf-spacing-11:1.75rem;--cf-spacing-12:2rem;--cf-spacing-13:2.25rem;--cf-text-xs:0.75rem;--cf-text-sm:0.875rem;--cf-text-base:1rem;--cf-text-lg:1.125rem;--cf-text-xl:1.25rem;--cf-text-2xl:1.5rem;--cf-text-3xl:2rem;--cf-text-4xl:2.75rem;--cf-font-light:300;--cf-font-normal:400;--cf-font-medium:500;--cf-font-semibold:600;--cf-font-bold:700;--cf-font-extra-bold:800;--cf-font-black:900;--cf-border-radius-none:0px;--cf-border-radius-sm:0.125rem;--cf-border-radius:0.25rem;--cf-border-radius-md:0.375rem;--cf-border-radius-lg:0.5rem;--cf-border-radius-xl:0.75rem;--cf-border-radius-2xl:1rem;--cf-border-radius-3xl:1.5rem;--cf-border-radius-full:9999px;--cf-max-width-full:100%;--cf-button-bg:var(--cf-color-black);--cf-button-color:var(--cf-color-white);--cf-text-color:var(--cf-color-black)}*{box-sizing:border-box}"),function(e){e.READ_ONLY="readOnlyMode",e.EDITOR="editorMode",e.NONE="none"}(n||(n={}));let y="contentful-component",g="Contentful",v={section:{id:"contentful-section",name:"Section"},container:{id:"contentful-container",name:"Container"},columns:{id:"contentful-columns",name:"Columns"},singleColumn:{id:"contentful-single-column",name:"Column"},button:{id:"contentful-button",name:"Button"},heading:{id:"contentful-heading",name:"Heading"},image:{id:"contentful-image",name:"Image"},richText:{id:"contentful-richText",name:"Rich Text"},text:{id:"contentful-text",name:"Text"},divider:{id:"contentful-divider",name:"Divider"},carousel:{id:"contentful-carousel",name:"Carousel"}};function b(...e){return e.filter(e=>e).map(e=>e.trim()).join(" ")}!function(e){e.REQUEST_ENTITIES="REQUEST_ENTITIES",e.REQUESTED_ENTITIES="REQUESTED_ENTITIES"}(r||(r={})),(0,d.A)('.cf-button:empty:before{content:"";display:inline-block}');let _=({children:e,className:t,label:a,onClick:n,onNavigate:r,target:i,url:s,...o})=>{let l=b("cf-button",t),d=u.createElement("button",{className:l,"data-url":s,"data-target":i,onClick:e=>{r&&s&&(e.preventDefault(),r(s,i)),n&&n(e)},...o},a||e);return s?u.createElement("a",{href:s,target:i},d):d},x={id:v.button.id,name:v.button.name,category:g,builtInStyles:["cfMargin","cfMaxWidth","cfLetterSpacing","cfTextItalic","cfTextUnderline","cfTextBold","cfLineHeight","cfBorder","cfBorderRadius"],tooltip:{description:"Drop onto the canvas to add button that can be used to trigger an action."},variables:{cfFontSize:{displayName:"Font Size",type:"Text",group:"style",description:"The font size of the button.",defaultValue:"16px"},cfFontWeight:{displayName:"Font Weight",type:"Text",group:"style",description:"The font weight of the button.",defaultValue:"600"},cfTextColor:{displayName:"Text Color",type:"Text",group:"style",description:"The text color of the button.",defaultValue:"rgba(255, 255, 255, 1)"},cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",description:"The background color of the button.",defaultValue:"rgba(0, 0, 0, 1)"},cfPadding:{displayName:"Padding",type:"Text",group:"style",description:"The padding of the button.",defaultValue:"6px 12px 6px 12px"},cfWidth:{displayName:"Width",type:"Text",group:"style",description:"The width of the button.",defaultValue:"fit-content"},cfHeight:{displayName:"Height",type:"Text",group:"style",description:"The height of the button.",defaultValue:"fit-content"},cfTextAlign:{displayName:"Text Align",type:"Text",group:"style",description:"The text align of the button.",defaultValue:"center"},label:{displayName:"Text",type:"Text",defaultValue:"Button",validations:{bindingSourceType:["entry","manual"]}},url:{displayName:"URL",type:"Hyperlink",validations:{bindingSourceType:["entry","experience","manual"]}},target:{displayName:"URL behavior",type:"Text",defaultValue:""}}};(0,d.A)(".cf-heading{white-space:pre-line}");let k=({children:e,className:t,text:a,type:n="h1",...r})=>{let i=b("cf-heading",t);return u.createElement(n,{className:i,...r},a||e)},w={id:v.heading.id,name:v.heading.name,category:g,builtInStyles:["cfMargin","cfPadding","cfFontWeight","cfLetterSpacing","cfTextAlign","cfTextColor","cfTextTransform","cfTextItal
1ic","cfTextUnderline","cfWidth","cfMaxWidth","cfBackgroundColor","cfBorder","cfBorderRadius"],tooltip:{description:"Drop onto the canvas to add a heading."},variables:{cfHeight:{displayName:"Height",type:"Text",group:"style",description:"The height of the heading.",defaultValue:"fit-content"},cfFontSize:{displayName:"Font Size",type:"Text",group:"style",description:"The font size of the heading.",defaultValue:"32px"},cfLineHeight:{displayName:"Line Height",type:"Text",group:"style",description:"The line height of the heading.",defaultValue:"48px"},cfTextBold:{displayName:"Bold",type:"Boolean",group:"style",description:"The text bold of the heading.",defaultValue:!0},text:{displayName:"Text",type:"Text",description:"The text to display in the heading.",defaultValue:"Heading"},type:{displayName:"HTML tag",type:"Text",defaultValue:"h1",group:"style",description:"Determines the HTML tag of the heading. Value can be h1, h2, h3, h4, h5, or h6.",validations:{in:[{value:"h1",displayName:"H1"},{value:"h2",displayName:"H2"},{value:"h3",displayName:"H3"},{value:"h4",displayName:"H4"},{value:"h5",displayName:"H5"},{value:"h6",displayName:"H6"}]}}}};(0,d.A)(".cf-richtext{white-space:pre-line}.cf-richtext>:first-child{margin-top:0}.cf-richtext>:last-child{margin-bottom:0}");let T=({as:e="p",className:t,value:a,...n})=>u.createElement("div",{className:b("cf-richtext",t),...n},(0,c.i)(a,{renderNode:{[p.BLOCKS.PARAGRAPH]:(t,a)=>u.createElement(e,null,a)}})),I={id:v.richText.id,name:v.richText.name,category:g,builtInStyles:["cfMargin","cfPadding","cfFontWeight","cfLetterSpacing","cfTextTransform","cfMaxWidth","cfBackgroundColor","cfBorder","cfBorderRadius","cfTextColor"],tooltip:{description:"Drop onto the canvas to add text with Rich text formatting options."},variables:{cfLineHeight:{displayName:"Line Height",type:"Text",group:"style",description:"The line height of the Rich text.",defaultValue:"24px"},cfTextAlign:{displayName:"Text Align",type:"Text",group:"style",description:"The text alignment of the Rich text.",defaultValue:"center"},cfWidth:{displayName:"Width",type:"Text",group:"style",description:"The width of the Rich text.",defaultValue:"fit-content"},cfHeight:{displayName:"Height",type:"Text",group:"style",description:"The height of the Rich text.",defaultValue:"fit-content"},value:{displayName:"Text",description:"The text to display.",type:"RichText",validations:{bindingSourceType:["entry","manual"]},defaultValue:{nodeType:"document",data:{},content:[{nodeType:"paragraph",data:{},content:[{nodeType:"text",value:"Rich text",marks:[],data:{}}]}]}}}};(0,d.A)(".cf-text{white-space:pre-line}.cf-text-link .cf-text{margin:0}");let z=({as:e="p",children:t,className:a,value:n,url:r,target:i,onNavigate:s,onClick:o,...l})=>r?u.createElement("a",{className:b("cf-text-link",a),href:r,...i?{target:i}:{},...l},u.createElement(e,{className:"cf-text"},n||t)):u.createElement(e,{className:b("cf-text",a),onClick:e=>{s&&r&&(e.preventDefault(),s(r,i)),o&&o(e)},"data-url":r,...i?{"data-target":i}:{},...l},n||t),E={id:v.text.id,name:v.text.name,category:g,builtInStyles:["cfMargin","cfPadding","cfFontSize","cfFontWeight","cfLineHeight","cfLetterSpacing","cfTextColor","cfTextAlign","cfTextTransform","cfTextBold","cfTextItalic","cfTextUnderline","cfBackgroundColor","cfBorder","cfBorderRadius","cfWidth","cfMaxWidth"],tooltip:{description:"Drop onto the canvas to add plain text."},variables:{cfHeight:{displayName:"Height",type:"Text",group:"style",description:"The height of the text.",defaultValue:"fit-content"},value:{displayName:"Text",description:"The text to display. If not provided, children will be used instead.",type:"Text",defaultValue:"Text"},as:{displayName:"HTML tag",description:"Renders the text in a specific HTML tag.",type:"Text",defaultValue:"p",group:"style",validations:{in:[{value:"p",displayName:"p"},{value:"span",displayName:"span"},{value:"div",displayName:"div"},{value:"label",displayName:"label"},{value:"caption",displayName:"caption"},{value:"small",displayName:"small"},{value:"strong",displayName:"strong"},{value:"em",displayName:"em"}]}},url:{displayName:"URL",type:"Text",defaultValue:"",validations:{bindingSourceType:["entry","experience","manual"]}},target:{displayName:"URL behavior",type:"Text",defaultValue:""}}};(0,d.A)("div.cf-placeholder-wrapper{outline:2px solid rgba(var(--cf-color-gray400-rgb),.5);outline-offset:-2px;overflow:hidden;position:relative}img.cf-placeholder-image{background-color:var(--cf-color-gray100);
1height:100%;width:100%}svg.cf-placeholder-icon{height:var(--cf-text-3xl);left:50%;max-height:100%;max-width:100%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--cf-text-3xl)}svg.cf-placeholder-icon path{fill:var(--cf-color-gray400)}");let N=({className:e="",src:t,cfImageAsset:a,...n})=>{if(!a&&!t)return u.createElement("div",{className:b("cf-placeholder-wrapper",e)},u.createElement("img",{className:"cf-placeholder-image",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxJyBoZWlnaHQ9JzEnLz4=",...n}),u.createElement("svg",{className:"cf-placeholder-icon",fill:"none",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},u.createElement("path",{fill:"#fff",d:"M13.5 2h-10a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1m-10 1h10v4.836l-1.543-1.543a1 1 0 0 0-1.414 0L3.836 13H3.5zm10 10H5.25l6-6 2.25 2.25zm-7-5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-2a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"})));let r=b("cf-image",e);return"string"==typeof a?u.createElement("img",{src:a,className:r,...n}):a?u.createElement("img",{src:a.url,srcSet:a.srcSet?.length?a.srcSet?.join(", "):void 0,sizes:a.sizes?a.sizes:void 0,loading:a.loading,className:r,...n}):t?u.createElement("img",{src:t,className:r,...n}):void 0},j={id:v.image.id,name:v.image.name,category:g,builtInStyles:["cfMargin","cfPadding","cfImageAsset","cfImageOptions","cfBorderRadius"],tooltip:{description:"Drop onto the canvas to upload an image."},variables:{alt:{displayName:"Alt text",type:"Text",description:"Alternative text for the image",validations:{bindingSourceType:["asset","entry","manual"]}}}};!function(e){e.READ_ONLY="readOnlyMode",e.EDITOR="editorMode",e.NONE="none"}(i||(i={})),!function(e){e.REQUEST_ENTITIES="REQUEST_ENTITIES",e.REQUESTED_ENTITIES="REQUESTED_ENTITIES"}(s||(s={})),Object.values({section:{id:"contentful-section",name:"Section"},container:{id:"contentful-container",name:"Container"},columns:{id:"contentful-columns",name:"Columns"},singleColumn:{id:"contentful-single-column",name:"Column"},button:{id:"contentful-button",name:"Button"},heading:{id:"contentful-heading",name:"Heading"},image:{id:"contentful-image",name:"Image"},richText:{id:"contentful-richText",name:"Rich Text"},text:{id:"contentful-text",name:"Text"},divider:{id:"contentful-divider",name:"Divider"},carousel:{id:"contentful-carousel",name:"Carousel"}}).map(e=>e.id);let C={cfVerticalAlignment:{validations:{in:[{value:"start",displayName:"Align left"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align right"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Vertical alignment"},cfHorizontalAlignment:{validations:{in:[{value:"start",displayName:"Align top"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align bottom"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Horizontal alignment"},cfVisibility:{displayName:"Visibility toggle",type:"Boolean",group:"style",defaultValue:!0},cfMargin:{displayName:"Margin",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfPadding:{displayName:"Padding",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",defaultValue:"rgba(0, 0, 0, 0)"},cfWidth:{displayName:"Width",type:"Text",group:"style",defaultValue:"100%"},cfHeight:{displayName:"Height",type:"Text",group:"style",defaultValue:"fit-content"},cfMaxWidth:{displayName:"Max width",type:"Text",group:"style",defaultValue:"none"},cfFlexDirection:{displayName:"Direction",type:"Text",group:"style",defaultValue:"column"},cfFlexReverse:{displayName:"Reverse Direction",type:"Boolean",group:"style",defaultValue:!1},cfFlexWrap:{displayName:"Wrap objects",type:"Text",group:"style",defaultValue:"nowrap"},cfBorder:{displayName:"Border",type:"Text",group:"style",defaultValue:"0px solid rgba(0, 0, 0, 0)"},cfGap:{displayName:"Gap",type:"Text",group:"style",defaultValue:"0px"},cfHyperlink:{displayName:"URL",type:"Hyperlink",defaultValue:"",validations:{format:"URL",bindingSourceType:["entry","experience","manual"]}},cfOpenInNewTab:{displayName:"URL behaviour",type:"Boolean",defaultValue:!1,description:"Open in new tab"}}
1,S={cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",defaultValue:"rgba(0, 0, 0, 0)"},cfBackgroundImageUrl:{displayName:"Background image",type:"Media",validations:{bindingSourceType:["asset","entry","manual"]}},cfBackgroundImageOptions:{displayName:"Background image options",type:"Object",group:"style",defaultValue:{scaling:"fill",alignment:"left top",targetSize:"2000px"}},cfBorderRadius:{displayName:"Border Radius",type:"Text",group:"style",defaultValue:"0px"}},O={...C,cfBorderRadius:S.cfBorderRadius,cfBackgroundImageUrl:S.cfBackgroundImageUrl,cfBackgroundImageOptions:S.cfBackgroundImageOptions},V={...C,cfBorderRadius:S.cfBorderRadius,cfBackgroundImageUrl:S.cfBackgroundImageUrl,cfBackgroundImageOptions:S.cfBackgroundImageOptions,cfMargin:{displayName:"Margin",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfMaxWidth:{displayName:"Max Width",type:"Text",group:"style",defaultValue:"1192px"}},A={cfVisibility:C.cfVisibility,cfBorderRadius:S.cfBorderRadius,cfMargin:{displayName:"Margin",type:"Text",group:"style",defaultValue:"20px 0px 20px 0px"},cfWidth:{displayName:"Width",type:"Text",group:"style",defaultValue:"100%"},cfHeight:{displayName:"Height",type:"Text",group:"style",defaultValue:"1px"},cfMaxWidth:{displayName:"Max width",type:"Text",group:"style",defaultValue:"none"},cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",defaultValue:"rgba(204, 204, 204, 1)"}},Z={cfVisibility:C.cfVisibility,cfBorderRadius:S.cfBorderRadius,cfBackgroundColor:S.cfBackgroundColor,cfBackgroundImageUrl:S.cfBackgroundImageUrl,cfBackgroundImageOptions:S.cfBackgroundImageOptions,cfVerticalAlignment:{validations:{in:[{value:"start",displayName:"Align left"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align right"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Vertical alignment"},cfHorizontalAlignment:{validations:{in:[{value:"start",displayName:"Align top"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align bottom"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Horizontal alignment"},cfPadding:{displayName:"Padding",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfFlexDirection:{displayName:"Direction",type:"Text",group:"style",defaultValue:"column"},cfFlexWrap:{displayName:"Wrap objects",type:"Text",group:"style",defaultValue:"nowrap"},cfBorder:{displayName:"Border",type:"Text",group:"style",defaultValue:"0px solid rgba(0, 0, 0, 0)"},cfGap:{displayName:"Gap",type:"Text",group:"style",defaultValue:"0px"},cfColumnSpan:{type:"Text",defaultValue:"6",group:"style"},cfColumnSpanLock:{type:"Boolean",defaultValue:!1,group:"style"}},B={cfVisibility:C.cfVisibility,cfBorderRadius:S.cfBorderRadius,cfBackgroundColor:S.cfBackgroundColor,cfBackgroundImageUrl:S.cfBackgroundImageUrl,cfBackgroundImageOptions:S.cfBackgroundImageOptions,cfMargin:{displayName:"Margin",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfWidth:{displayName:"Width",type:"Text",group:"style",defaultValue:"100%"},cfMaxWidth:{displayName:"Max width",type:"Text",group:"style",defaultValue:"1192px"},cfPadding:{displayName:"Padding",type:"Text",group:"style",defaultValue:"10px 10px 10px 10px"},cfBorder:{displayName:"Border",type:"Text",group:"style",defaultValue:"0px solid rgba(0, 0, 0, 0)"},cfGap:{displayName:"Gap",type:"Text",group:"style",defaultValue:"10px 10px"},cfColumns:{type:"Text",defaultValue:"[6,6]",group:"style"},cfWrapColumns:{type:"Boolean",defaultValue:!1,group:"style"},cfWrapColumnsCount:{type:"Text",defaultValue:"2",group:"style"}},R=f.z.literal("2023-09-28");f.z.union([f.z.literal("2023-08-23"),f.z.literal("2023-07-26"),f.z.literal("2023-06-27")]);let M=f.z.enum(["Text","RichText","Number","Date","Boolean","Location","Media","Object","Hyperlink","Array","Link"]),D=f.z.string().regex(/^[a-zA-Z0-9-_]{1,32}$/,{message:"Property needs to match: /^[a-zA-Z0-9-_]{1,32}$/"}),$=f.z.union([f.z.string(),f.z.boolean(),f.z.number(),f.z.record(f.z.any(),f.z.any()),f.z.undefined()]),P=f.z.array(f.z.object({sys:f.z.object({type:f.z.literal("Link"),id:f.z.string(),linkType:f.z.literal("Entry")})})),L=f.z.string().regex(/^[a-zA-Z0-9-_]{1,21}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,21}$/"}),F=f.z.record(L,f.z.object({sys:f.z.object({type:f.z.literal("Link"),id:f.z.string(),linkType:f.z.enum(["Entry","Asset"])})})),U=f.z.record(L,f.z.object({value:$})),H=f.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,54}$/"}),W=f.z.string().regex(/^[a-zA-Z0-9]{1,8}$/,{message:"Does not match /^[a-zA-Z0-9]{1,8}$/"}),q=f.z.record(f.z.lazy(()=>$)),K=f.z.array(f.z.enum(["entry","asset","manual","experience"])).nonempty(),Y=f.z.object({type:f.z.literal("DesignValue"),valuesByBreakpoint:q}).strict(),G=f.z.object({type:f.z.literal("BoundValue"),path:f.z.string()}).strict(),Q=f.z.object({type:f.z.literal("HyperlinkValue"),linkTargetKey:f.z.string(),overrides:f.z.object({}).optional()}).strict(),J=f.z.object({type:f.z.literal("UnboundValue"),key:f.z.string()}).strict(),X=f.z.object({type:f.z.literal("ComponentValue"),key:f.z.string()}).strict(),ee=f.z.object({type:f.z.literal("NoValue")}
1).strict(),et=f.z.discriminatedUnion("type",[Y,G,J,Q,X,ee]),ea=f.z.object({type:f.z.literal("BoundValue"),path:f.z.string()}),en=f.z.record(H,ea),er=/^\*$|^[<>][0-9]+px$/,ei=f.z.object({id:H,query:f.z.string().refine(e=>er.test(e)),previewSize:f.z.string().optional(),displayName:f.z.string(),displayIcon:f.z.enum(["desktop","tablet","mobile"]).optional()}).strict(),es=f.z.object({id:W.optional(),definitionId:D,prebindingId:f.z.string().optional(),displayName:f.z.string().optional(),slotId:f.z.string().optional(),variables:f.z.record(H,et),parameters:en.optional()}),eo=f.z.object({displayName:f.z.string().optional(),type:M,description:f.z.string().optional(),group:f.z.string().optional(),defaultValue:$.or(et).optional(),validations:f.z.object({bindingSourceType:K.optional(),required:f.z.boolean().optional(),format:f.z.literal("URL").optional(),in:f.z.array(f.z.object({value:f.z.union([f.z.string(),f.z.number()]),displayName:f.z.string().optional()})).optional()}).optional()}),el=es.extend({children:f.z.lazy(()=>el.array())}).superRefine(({id:e,prebindingId:t,parameters:a},n)=>{t&&!a&&n.addIssue({code:f.z.ZodIssueCode.custom,message:`Found "prebindingId" but no "parameters" for node with i
1d: "${e}"`})}),ed=f.z.object({breakpoints:f.z.array(ei).superRefine((e,t)=>{if(!e.length||"*"!==e[0].query)return void t.addIssue({code:f.z.ZodIssueCode.custom,message:'The first breakpoint should include the following attributes: { "query": "*" }'});if(1===e.length)return;let a=e.map(e=>e.id);if(new Set(a).size!==a.length)return void t.addIssue({code:f.z.ZodIssueCode.custom,message:"Breakpoint IDs must be unique"});let n=e.slice(1),r=n[0].query.startsWith(">"),i=n[0].query.startsWith("<");r?(n.every(({query:e})=>e.startsWith(">"))||t.addIssue({code:f.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format ">[size]px" for mobile-first strategy'}),n.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,a)=>0===t||e>a[t-1])||t.addIssue({code:f.z.ZodIssueCode.custom,message:"When using a mobile-first strategy, all breakpoints must have strictly increasing pixel values"})):i?(n.every(({query:e})=>e.startsWith("<"))||t.addIssue({code:f.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format "<[size]px" for desktop-first strategy'}),n.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,a)=>0===t||e<a[t-1])||t.addIssue({code:f.z.ZodIssueCode.custom,message:"When using a desktop-first strategy, all breakpoints must have strictly decreasing pixel values"})):r||i||t.addIssue({code:f.z.ZodIssueCode.custom,message:"You may only use a mobile-first or desktop-first strategy for breakpoints using '<' or '>' queries"})}),children:f.z.array(el),schemaVersion:R}).strict(),eu=e=>f.z.record(f.z.string(),e);f.z.object({componentTree:eu(ed),dataSource:eu(F),unboundValues:eu(U),usedComponents:eu(P).optional()});let ec=f.z.object({parameterId:H,type:f.z.literal("ContentTypeMapping"),pathsByContentType:f.z.record(f.z.string(),f.z.object({path:f.z.string()})).superRefine((e,t)=>{let a=t.path[t.path.length-2];Object.keys(e).length>200&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`Too many paths defined for variable mapping with id "${a}", maximum allowed is 200`})})}),ep=f.z.object({nodeId:H,parameterId:H,prebindingId:H}).strict(),ef=f.z.object({defaultSource:f.z.strictObject({type:f.z.enum(["Entry"]),contentTypeId:f.z.string(),link:f.z.strictObject({sys:f.z.strictObject({type:f.z.literal("Link"),id:f.z.string(),linkType:f.z.enum(["Entry"])})})}).optional(),contentTypes:f.z.array(f.z.string()).min(1),passToNodes:f.z.array(ep).max(1,'At most one "passToNodes" element is allowed per parameter definition.')}),em=f.z.record(H,ef),eh=f.z.record(H,ec),ey=f.z.record(f.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/),eo),eg=f.z.object({id:H,parameterDefinitions:em,variableMappings:eh.optional(),allowedVariableOverrides:f.z.array(f.z.string()).optional()}).strict(),ev=f.z.object({variableDefinitions:ey,thumbnailId:f.z.enum(["columns","columnsPlusRight","imagesSquare","subtitles","rowsPlusBottom","userRectangle","textbox","monitorPlay","article","table","star","heartStraight","frameCorners","rows","dotsThreeOutline","listDashes","checkerBoard","gridFour","slideshow","diamondsFour","cards","textColumns","duplex"]).optional(),category:f.z.string().max(50,"Category must contain at most 50 characters").optional(),prebindingDefinitions:f.z.array(eg).length(1).optional()}).strict().superRefine((e,t)=>{let{variableDefinitions:a,prebindingDefinitions:n}=e;if(!n||0===n.length)return;let{parameterDefinitions:r,variableMappings:i,allowedVariableOverrides:s}=n[0];eb(r,t),e_(i,s,t),ex(i,s,a,t),ek(i,r,t)});f.z.object({componentTree:eu(ed),dataSource:eu(F),unboundValues:eu(U),usedComponents:eu(P).optional(),componentSettings:eu(ev)}).superRefine((e,t)=>{let{componentTree:a,componentSettings:n}=e,r=Object.values(a)[0],i=Object.values(n)[0];i&&r&&ew(r.children||[],i||{},t)});let eb=(e,t)=>{Object.values(e).filter(e=>!(e.passToNodes&&e.passToNodes.length>0)).length>1&&t.addIssue({code:f.z.ZodIssueCode.custom,message:"Only one native parameter definition (parameter definition without passToNodes) is allowed per prebinding definition."})},e_=(e,t,a)=>{let n=Object.keys(e||{}),r=new Set(t||[]),i=n.filter(e=>r.has(e));i.length>0&&a.addIssue({code:f.z.ZodIssueCode.custom,message:`Found both variable mapping and allowed override for the following keys: ${i.map(e=>`"${e}"`).join(", ")}.`})},ex=(e,t,a,n)=>{let r=Object.entries(a).filter(([e,t])=>"style"!==t.group).map(([e])=>e),i=[...Object.keys(e||{}),...t||[]].filter(e=>!r.includes(e));i.length>0&&n.addIssue({code:f.z.ZodIssueCode.custom,message:`The following variable mappings or overrides are missing from the variable definitions: ${i.map(e=>`"${e}"`).join(", ")}.`})},ek=(e,t,a)=>{let n=Object.keys(t||{});for(let[t,r]of Object.entries(e||{}))n.includes(r.parameterId)||a.addIssue({code:f.z.ZodIssueCode.custom,message:`The variable mapping with id "${t}" references a non-existing parameterId "${r.parameterId}".`})},ew=(e,t,a)=>{if(!t.prebindingDefinitions||0===t.prebindingDefinitions.length)return;let{parameterDefinitions:n}=t.prebindingDefinitions[0],r=new Set;for(let e of Object.values(n||{}
1))e.passToNodes?.forEach(e=>r.add(e.nodeId));if(!function(e,t){let a=e=>{let n=[...e.children];for(let r of(t(e),n))a(r)};if(Array.isArray(e))for(let t of e)a(t);else a(e)}(e,e=>{e.id&&r.has(e.id)&&r.delete(e.id)}),r.size>0){let e=Array.from(r).map(e=>`"${e}"`).join(", ");a.addIssue({code:f.z.ZodIssueCode.custom,message:`The following node IDs referenced in passToNodes are not present in the component tree: ${e}.`})}};f.z.object({id:D,name:f.z.string(),category:f.z.string().optional(),thumbnailUrl:f.z.string().optional(),thumbnailId:f.z.string().optional(),hyperlinkPattern:f.z.string().optional(),children:f.z.boolean().optional(),slots:f.z.record(D,f.z.object({displayName:f.z.string().optional()})).optional(),builtInStyles:f.z.array(f.z.string()).optional(),tooltip:f.z.object({imageUrl:f.z.string().optional(),description:f.z.string()}).optional(),variables:f.z.record(D,eo.extend({defaultValue:$.optional()}).superRefine((e,t)=>{switch(e.type){case"Array":void 0!==e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue is not supported for "Array" type for ${t.path.join(".")}`,fatal:!1});break;case"Boolean":void 0!==e.defaultValue&&"boolean"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue must be a boolean when type is "Boolean" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Date":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Date" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Hyperlink":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Hyperlink" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Link":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue is not supported for "Link" type for ${t.path.join(".")}`,fatal:!1});break;case"Location":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "Location" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Media":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Media" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Number":void 0!==e.defaultValue&&"number"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue must be a number when type is "Number" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Object":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "Object" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"RichText":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "RichText" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Text":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Text" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1})}}))}).superRefine((e,t)=>{!0===e.children&&(e.variables.children||e.slots?.children)&&t.addIssue({code:f.z.ZodIssueCode.custom,message:"Cannot activate 'children: true' and name a variable or slot 'children' at the same time",fatal:!1}),e.variables&&e.slots&&Object.keys(e.variables).forEach(a=>{e.slots[a]&&t.addIssue({code:f.z.ZodIssueCode.custom,message:`Variable and slot cannot have the same name: ${a}`,fatal:!1})})}),function(e){e.Type="type",e.Required="required",e.Unexpected="unexpected",e.Regex="regex",e.In="in",e.Size="size",e.Custom="custom"}(o||(o={}));let eT="cf_debug",eI=()=>{try{if("undefined"==typeof localStorage||null===localStorage)return!1;let e="cf_test_local_storage";if(localStorage.setItem(e,"yes"),"yes"===localStorage.getItem(e))return localStorage.removeItem(e),!0;return!1}catch(e){return!1}},ez=["error","warn","log","debug"];class eE{constructor(){if(this.activeLevel="warn",this.error=this.logger("error"),this.warn=this.logger("warn"),this.log=this.logger("log"),this.debug=this.logger("debug"),!eI())return;"true"===localStorage.getItem(eT)&&(this.activeLevel="debug")}static getInstance(){return null===this.instance&&(this.instance=new eE),this.instance}getActiveLevel(){return this.activeLevel}setActiveLevel(e){this.activeLevel=e,eI()&&("debug"===this.activeLevel||"log"===this.activeLevel?localStorage.setItem(eT,"true"):localStorage.removeItem(eT))}logger(e){return(...t)=>{let a=ez.indexOf(e);a<=ez.indexOf(this.activeLevel)&&console[e](...t)}}}eE.instance=null;let eN=eE.getInstance();function ej(e){return null!==e&&"object"==typeof e&&!!e.sys?.id&&e.sys?.type==="Link"&&!!e.sys?.linkType}let eC=e=>{let t=eS(e.split("/"),{startNextChunkOnElementEqualTo:"fields"});if(t.length<=1||2===t.length)return null;let[a,...n]=t;return/^\/([^/^~]+)$/.test(a.join("/"))&&n.every(e=>/^fields\/[^/^~]+\/~locale$/.test(e.join("/")))?{key:a[1],fields:n.map(e=>e[1])}:null},eS=(e,{startNextChunkOnElementEqualTo:t})=>{let a=[],n=[],r=e=>e===t;for(let t=0;t<e.length;
1t++){let i=0===t,s=e[t];i?n=[s]:r(s)?(a.push(n),n=[s]):n.push(s)}return a.push(n),a.filter(e=>e.length>0)};function eO(e,t){if(!t.length)return e;try{let[a,...n]=t;return eO(e[a],n)}catch(e){return}}let eV=e=>null!==e&&"object"==typeof e&&"sys"in e&&e.sys?.type==="Entry",eA=e=>null!==e&&"object"==typeof e&&"sys"in e&&e.sys?.type==="Asset";function eZ(e){for(let t of Object.getOwnPropertyNames(e)){let a=e[t];a&&"object"==typeof a&&eZ(a)}return Object.freeze(e)}class eB{constructor({entities:e,locale:t}){for(let a of(this.entryMap=new Map,this.assetMap=new Map,this.locale=t,e))this.addEntity(a)}get entities(){return[...this.entryMap.values(),...this.assetMap.values()]}updateEntity(e){this.addEntity(e)}getEntryOrAsset(e,t){let a;if((e=>{let t=eC(e);return!!t&&t.fields.length>1})(t))return this.getDeepEntry(e,t);if(ej(e)){let t="Entry"===e.sys.linkType?this.entryMap.get(e.sys.id):this.assetMap.get(e.sys.id);if(!t||t.sys.type!==e.sys.linkType)return void eN.warn(`[experiences-core::EntityStoreBase] Experience references unresolved entity: ${JSON.stringify(e)}`);a=t}else if(eA(e)||eV(e))a=e;else throw Error(`[experiences-core::EntityStoreBase] Unexpected object when resolving entity: ${JSON.stringify(e)}`);return a}getValue(e,t){let a=this.getEntity(e.sys.linkType,e.sys.id);return a?eO(a,t):void eN.warn(`Unresolved entity reference: ${e.sys.linkType} with ID ${e.sys.id}`)}getEntityFromLink(e){let t="Entry"===e.sys.linkType?this.entryMap.get(e.sys.id):this.assetMap.get(e.sys.id);return t&&t.sys.type===e.sys.linkType?t:void eN.warn(`[experiences-core::EntityStoreBase] Experience references unresolved entity: ${JSON.stringify(e)}`)}getAssetById(e){let t=this.assetMap.get(e);return t||void eN.warn(`[experiences-core::EntityStoreBase] Asset with ID "${e}" is not found in the store`)}getEntryById(e){let t=this.entryMap.get(e);return t||void eN.warn(`[experiences-core::EntityStoreBase] Entry with ID "${e}" is not found in the store`)}getEntitiesFromMap(e,t){let a=[],n=[];for(let r of t){let t=this.getEntity(e,r);t?a.push(t):n.push(r)}return{resolved:a,missing:n}}addEntity(e){if(eA(e))this.assetMap.set(e.sys.id,eZ(m(e)));else if(eV(e))this.entryMap.set(e.sys.id,eZ(m(e)));else throw Error(`Attempted to add an entity to the store that is neither Asset nor Entry: '${JSON.stringify(e)}'`)}async fetchAsset(e){let{resolved:t,missing:a}=this.getEntitiesFromMap("Asset",[e]);return a.length?void eN.warn(`[experiences-core::EntityStoreBase] Asset "${e}" is not in the store`):t[0]}async fetchAssets(e){let{resolved:t,missing:a}=this.getEntitiesFromMap("Asset",e);if(a.length)throw Error(`Missing assets in the store (${a.join(",")})`);return t}async fetchEntry(e){let{resolved:t,missing:a}=this.getEntitiesFromMap("Entry",[e]);return a.length?void eN.warn(`[experiences-core::EntityStoreBase] Entry "${e}" is not in the store`):t[0]}async fetchEntries(e){let{resolved:t,missing:a}=this.getEntitiesFromMap("Entry",e);if(a.length)throw Error(`Missing assets in the store (${a.join(",")})`);return t}getDeepEntry(e,t){let a=(e,t)=>{let a=[],n=t;for(let t=0;t<e.length;t++){let r=t===e.length-1,[,i,s]=e[t];if(!n)throw Error(`Logic Error: Cannot resolve field ${i} of a fieldset as there is no entity to resolve it from.`);if(r){a.push([n,i,s]);break}let o=eO(n,["fields",i]);if(void 0===o)return{resolvedFieldset:a,isFullyResolved:!1,reason:`Cannot resolve field Link<${n.sys.type}>(sys.id=${n.sys.id}).fields[${i}] as field value is not defined`};if(ej(o)){let e=this.getEntityFromLink(o);if(void 0===e)return{resolvedFieldset:a,isFullyResolved:!1,reason:`Field reference Link (sys.id=${o.sys.id}) not found in the EntityStore, waiting...`};a.push([n,i,s]),n=e}else{if(!(eA(o)||eV(o)))return{resolvedFieldset:a,isFullyResolved:!1,reason:`Deep path points to an invalid field value of type '${typeof o}' (value=${o})`};a.push([n,i,s]),n=o}}return{resolvedFieldset:a,isFullyResolved:!0}},n=ej(e)?this.getEntityFromLink(e):e;if(void 0===n)return;let{resolvedFieldset:r,isFullyResolved:i,reason:s}=a((e=>{let t=eC(e);if(null===t)throw Error(`Cannot parse path '${e}' as deep path`);return t.fields.map(e=>[null,e,"~locale"])})(t),n);if(!i){s&&eN.log(`[experiences-core::EntityStoreBase] Deep path wasn't resolved till leaf node, falling back to undefined, because: ${s}`);return}let[o]=r[r.length-1];return o}getEntity(e,t){return"Asset"===e?this.assetMap.get(t):this.entryMap.get(t)}toJSON(){return{entryMap:Object.fromEntries(this.entryMap),assetMap:Object.fromEntries(this.assetMap),locale:this.locale}}}class eR extends eB{constructor(){super({entities:[],locale:"uninitialized-locale-in-uninitialized-entity-store"})}}(0,h.vt)((e,t)=>({entityStore:new eR,areEntitiesFetched:!1,setEntitiesFetched(t){e({areEntitiesFetched:t})},resolveAssetById(e){if(!e)return;let{entityStore:a}=t();return a.getAssetById(e)},resolveEntryById(e){if(!e)return;let{entityStore:a}=t();return a.getEntryById(e)},resolveEntity(e){if(!e)return;let{entityStore:a}=t();return a.getEntityFromLink(e)},resetEntityStore(t){e({entityStore:t,areEntitiesFetched:!1})}})),function(e){e.LazyLoad="lazyLoad",e.InjectScript="injectScript"}(l||(l={})),(0,d.A)('.contentful-container{display:flex;pointer-events:all;position:relative}.contentful-container::-webkit-scrollbar{display:none}.cf-container-wrapper{position:relative;width:100%}.contentful-container:after{align-items:center;bottom:0;color:var(--exp-builder-gray400);content:"";display:block;display:flex;font-family:var(--exp-builder-font-stack-primary);font-size:12px;justify-content:center;left:0;overflow-x:clip;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.contentful-section-label:after{content:"Section"}.contentful-container-label:after{content:"Container"}.contentful-container-link,.contentful-container-link:active,.contentful-container-link:focus-visible,.contentful-container-link:hover,.contentful-container-link:read-write,.contentful-container-link:visited{color:inherit;outline:unset;text-decoration:unset}');let eM=(0,u.forwardRef)(({id:e,children:t,onMouseEnter:a,onMouseUp:n,onMouseLeave:r,onMouseDown:i,onClick:s,flex:o,flexBasis:l,flexShrink:d,flexDirection:c,gap:p,justifyContent:f,justifyItems:m,justifySelf:h,alignItems:y,alignSelf:g,alignContent:v,order:b,flexWrap:_,flexGrow:x,className:k,cssStyles:w,...T},I)=>u.createElement("div",{id:e,ref:I,style:{display:"flex",flex:o,flexBasis:l,flexShrink:d,flexDirection:c,gap:p,justifyContent:f,justifyItems:m,justifySelf:h,alignItems:y,alignSelf:g,alignContent:v,order:b,flexWrap:_,flexGrow:x,...w},className:k,onMouseEnter:a,onMouseUp:n,onMouseDown:i,onMouseLeave:r,onClick:s,...T},t));function eD(e){let{isEditorMode:t,isEmpty:a,nodeBlockId:n,children:r,...i}=e;return i}eM.displayName="Flex";let e$=e=>{let{cfHyperlink:t,cfOpenInNewTab:a,isEditorMode:n,className:r,children:i,...s}=e;return u.createElement("a",{className:b(r,"contentful-container","contentful-container-link"),href:t,...a?{target:"_blank",rel:"noopener noreferrer"}:{},...!0===n?{onClick:eP}:{},...eD(s)},i)},eP=e=>{e.stopPropagation(),e.preventDefault()},eL=e=>{let{className:t,isEditorMode:a,isEmpty:n,nodeBlockId:r,children:i,cfHyperlink:s,cfOpenInNewTab:o,...l}=e;if(s)return u.createElement(e$,{...e},i);
1if(!a)return u.createElement(eM,{"data-test-id":"contentful-container",...eD(l),className:b(t,"contentful-container")},i);let d=r===v.section.id;return u.createElement(eM,{"data-test-id":"contentful-container",...eD(l),className:b(t,"contentful-container",n?d?"contentful-section-label":"contentful-container-label":"")},i)},eF={id:v.container.id,name:v.container.name,category:y,children:!0,variables:V,tooltip:{description:"Create a new area or pattern within your page layout by dragging a container onto the canvas. Other components and patterns can be added into a container."}},eU={id:v.section.id,name:v.section.name,category:y,children:!0,variables:O,tooltip:{description:"Create a new full width section of your experience by dragging this component onto the canvas. Other components and patterns can be added into a section."}};(0,d.A)(".cf-divider{display:contents;height:100%;position:relative;width:100%}.cf-divider hr{border:none}");let eH=({className:e="",...t})=>u.createElement("div",{className:"cf-divider",...t},u.createElement("hr",{className:e})),eW={id:v.divider.id,name:v.divider.name,category:g,children:!1,variables:A,tooltip:{description:"Drop onto the canvas to add a divider."}};(0,d.A)('.cf-columns{display:flex;flex-direction:column;gap:24px;grid-template-columns:repeat(12,1fr);min-height:0;min-width:0}@media (min-width:768px){.cf-columns{display:grid}}.cf-single-column-wrapper{position:relative}.cf-single-column-wrapper:after{align-items:center;bottom:0;color:var(--exp-builder-gray400);content:"";display:block;display:flex;font-family:var(--exp-builder-font-stack-primary);font-size:12px;justify-content:center;left:0;overflow-x:clip;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.cf-single-column-label:after{content:"Column"}');let eq=({className:e,children:t,...a})=>u.createElement("div",{className:b(e,"cf-columns"),style:{display:"grid",gridTemplateColumns:"repeat(12, [col-start] 1fr)"},...eD(a)},t),eK=e=>{let{className:t,isEditorMode:a}=e;if(!a)return u.createElement(eM,{className:t},e.children);let{isEmpty:n,children:r}=e,i=b("cf-single-column-wrapper",t,n?"cf-single-column-label":"");return u.createElement(eM,{...eD(e),className:i},r)},eY={id:v.columns.id,name:v.columns.name,category:y,children:!0,variables:B,tooltip:{description:"Add columns to a container to create your desired layout and ensure that the experience is responsive across different screen sizes."}},eG={id:v.singleColumn.id,name:v.singleColumn.name,category:y,children:!0,variables:Z},eQ={display:"contents"},eJ=e=>u.createElement("div",{"data-test-id":"assembly",...e,style:eQ}),eX=({className:e,children:t,...a})=>u.createElement("div",{className:b(e,"cf-carousel"),...a},t),e0={id:v.carousel.id,name:v.carousel.name,category:g,children:!0,builtInStyles:["cfPadding","cfMargin","cfHeight","cfWidth","cfMaxWidth","cfBorderRadius","cfBackgroundColor","cfBorder"],variables:{},tooltip:{description:"Drop onto the canvas to add a carousel."}}},3075:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});let n=function(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===a&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}},5182:(e,t,a)=>{"use strict";a.r(t),a.d(t,{useFetchByBase:()=>s});var n=a(7620),r=a(67412);let i=e=>e===r.kT.EDITOR||e===r.kT.READ_ONLY,s=(e,t)=>{let[a,r]=(0,n.useState)(),[s,o]=(0,n.useState)(!i(t)),[l,d]=(0,n.useState)();return((0,n.useEffect)(()=>{(async()=>{if(!i(t)){o(!0),d(void 0);try{let t=await e();r(t)}catch(e){d(e)}finally{o(!1)}}})()},[e,t]),i(t))?{error:void 0,experience:void 0,isLoading:!1,mode:t}:{error:l,experience:a,isLoading:s,mode:t}}},15398:(e,t,a)=>{"use strict";a.d(t,{M:()=>n});let n="3.8.4"},16485:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){var a;return null!=e&&(t(e)||"function"==typeof(a=e).readFloatLE&&"function"==typeof a.slice&&t(a.slice(0,0))||!!e._isBuffer)}},21367:(e,t,a)=>{"use strict";a.d(t,{vt:()=>p,Pj:()=>u});let n=e=>{let t,a=new Set,n=(e,n)=>{let r="function"==typeof e?e(t):e;if(!Object.is(r,t)){let e=t;t=(null!=n?n:"object"!=typeof r||null===r)?r:Object.assign({},t,r),a.forEach(a=>a(t,e))}},r=()=>t,i={setState:n,getState:r,getInitialState:()=>s,subscribe:e=>(a.add(e),()=>a.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),a.clear()}},s=t=e(n,r,i);return i};var r=a(7620),i=a(33045);let{useDebugValue:s}=r,{useSyncExternalStoreWithSelector:o}=i,l=!1,d=e=>e;function u(e,t=d,a){a&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);let n=o(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,a);return s(n),n}let c=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { use
1Store } from 'zustand'`.");let t="function"==typeof e?(e=>e?n(e):n)(e):e,a=(e,a)=>u(t,e,a);return Object.assign(a,t),a},p=e=>e?c(e):c},22182:(e,t,a)=>{e=a.nmd(e);var n="__lodash_hash_undefined__",r="[object Arguments]",i="[object Boolean]",s="[object Date]",o="[object Function]",l="[object GeneratorFunction]",d="[object Map]",u="[object Number]",c="[object Object]",p="[object Promise]",f="[object RegExp]",m="[object Set]",h="[object String]",y="[object Symbol]",g="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",w="[object Int16Array]",T="[object Int32Array]",I="[object Uint8Array]",z="[object Uint8ClampedArray]",E="[object Uint16Array]",N="[object Uint32Array]",j=/\w*$/,C=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,O={};O[r]=O["[object Array]"]=O[v]=O[b]=O[i]=O[s]=O[_]=O[x]=O[k]=O[w]=O[T]=O[d]=O[u]=O[c]=O[f]=O[m]=O[h]=O[y]=O[I]=O[z]=O[E]=O[N]=!0,O["[object Error]"]=O[o]=O[g]=!1;var V="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,A="object"==typeof self&&self&&self.Object===Object&&self,Z=V||A||Function("return this")(),B=t&&!t.nodeType&&t,R=B&&e&&!e.nodeType&&e,M=R&&R.exports===B;function D(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function P(e,t,a,n){var r=-1,i=e?e.length:0;for(n&&i&&(a=e[++r]);++r<i;)a=t(a,e[r],r,e);return a}function L(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function F(e){var t=-1,a=Array(e.size);return e.forEach(function(e,n){a[++t]=[n,e]}),a}function U(e,t){return function(a){return e(t(a))}}function H(e){var t=-1,a=Array(e.size);return e.forEach(function(e){a[++t]=e}),a}var W=Array.prototype,q=Function.prototype,K=Object.prototype,Y=Z["__core-js_shared__"],G=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Q=q.toString,J=K.hasOwnProperty,X=K.toString,ee=RegExp("^"+Q.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),et=M?Z.Buffer:void 0,ea=Z.Symbol,en=Z.Uint8Array,er=U(Object.getPrototypeOf,Object),ei=Object.create,es=K.propertyIsEnumerable,eo=W.splice,el=Object.getOwnPropertySymbols,ed=et?et.isBuffer:void 0,eu=U(Object.keys,Object),ec=eV(Z,"DataView"),ep=eV(Z,"Map"),ef=eV(Z,"Promise"),em=eV(Z,"Set"),eh=eV(Z,"WeakMap"),ey=eV(Object,"create"),eg=eR(ec),ev=eR(ep),eb=eR(ef),e_=eR(em),ex=eR(eh),ek=ea?ea.prototype:void 0,ew=ek?ek.valueOf:void 0;function eT(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}function eI(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}function ez(e){var t=-1,a=e?e.length:0;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}function eE(e){this.__data__=new eI(e)}function eN(e,t,a){var n=e[t];J.call(e,t)&&eM(n,a)&&(void 0!==a||t in e)||(e[t]=a)}function ej(e,t){for(var a=e.length;a--;)if(eM(e[a][0],t))return a;return -1}function eC(e){var t=new e.constructor(e.byteLength);return new en(t).set(new en(e)),t}function eS(e,t,a,n){a||(a={});for(var r=-1,i=t.length;++r<i;){var s=t[r],o=n?n(a[s],e[s],s,a,e):void 0;eN(a,s,void 0===o?e[s]:o)}return a}function eO(e,t){var a,n,r=e.__data__;return("string"==(n=typeof(a=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==a:null===a)?r["string"==typeof t?"string":"hash"]:r.map}function eV(e,t){var a,n=null==e?void 0:e[t];return!(!eF(n)||(a=n,G&&G in a))&&(eL(n)||L(n)?ee:C).test(eR(n))?n:void 0}eT.prototype.clear=function(){this.__data__=ey?ey(null):{}},eT.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eT.prototype.get=function(e){var t=this.__data__;if(ey){var a=t[e];return a===n?void 0:a}return J.call(t,e)?t[e]:void 0},eT.prototype.has=function(e){var t=this.__data__;return ey?void 0!==t[e]:J.call(t,e)},eT.prototype.set=function(e,t){return this.__data__[e]=ey&&void 0===t?n:t,this},eI.prototype.clear=function(){this.__data__=[]},eI.prototype.delete=function(e){var t=this.__data__,a=ej(t,e);return!(a<0)&&(a==t.length-1?t.pop():eo.call(t,a,1),!0)},eI.prototype.get=function(e){var t=this.__data__,a=ej(t,e);return a<0?void 0:t[a][1]},eI.prototype.has=function(e){return ej(this.__data__,e)>-1},eI.prototype.set=function(e,t){var a=this.__data__,n=ej(a,e);return n<0?a.push([e,t]):a[n][1]=t,this},ez.prototype.clear=function(){this.__data__={hash:new eT,map:new(ep||eI),str
1ing:new eT}},ez.prototype.delete=function(e){return eO(this,e).delete(e)},ez.prototype.get=function(e){return eO(this,e).get(e)},ez.prototype.has=function(e){return eO(this,e).has(e)},ez.prototype.set=function(e,t){return eO(this,e).set(e,t),this},eE.prototype.clear=function(){this.__data__=new eI},eE.prototype.delete=function(e){return this.__data__.delete(e)},eE.prototype.get=function(e){return this.__data__.get(e)},eE.prototype.has=function(e){return this.__data__.has(e)},eE.prototype.set=function(e,t){var a=this.__data__;if(a instanceof eI){var n=a.__data__;if(!ep||n.length<199)return n.push([e,t]),this;a=this.__data__=new ez(n)}return a.set(e,t),this};var eA=el?U(el,Object):function(){return[]},eZ=function(e){return X.call(e)};function eB(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function eR(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eM(e,t){return e===t||e!=e&&t!=t}(ec&&eZ(new ec(new ArrayBuffer(1)))!=b||ep&&eZ(new ep)!=d||ef&&eZ(ef.resolve())!=p||em&&eZ(new em)!=m||eh&&eZ(new eh)!=g)&&(eZ=function(e){var t=X.call(e),a=t==c?e.constructor:void 0,n=a?eR(a):void 0;if(n)switch(n){case eg:return b;case ev:return d;case eb:return p;case e_:return m;case ex:return g}return t});var eD=Array.isArray;function e$(e){var t;return null!=e&&"number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=0x1fffffffffffff&&!eL(e)}var eP=ed||function(){return!1};function eL(e){var t=eF(e)?X.call(e):"";return t==o||t==l}function eF(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eU(e){return e$(e)?function(e,t){var a,n,i,s,o,l=eD(e)||(i=n=a=e)&&"object"==typeof i&&e$(n)&&J.call(a,"callee")&&(!es.call(a,"callee")||X.call(a)==r)?function(e,t){for(var a=-1,n=Array(e);++a<e;)n[a]=t(a);return n}(e.length,String):[],d=l.length,u=!!d;for(var c in e){J.call(e,c)&&!(u&&("length"==c||(s=c,(o=null==(o=d)?0x1fffffffffffff:o)&&("number"==typeof s||S.test(s))&&s>-1&&s%1==0&&s<o)))&&l.push(c)}return l}(e):function(e){if(!eB(e))return eu(e);var t=[];for(var a in Object(e))J.call(e,a)&&"constructor"!=a&&t.push(a);return t}(e)}e.exports=function(e){return function e(t,a,n,p,g,C,S){if(p&&(V=C?p(t,g,C,S):p(t)),void 0!==V)return V;if(!eF(t))return t;var V,A=eD(t);if(A){if(B=(Z=t).length,R=Z.constructor(B),B&&"string"==typeof Z[0]&&J.call(Z,"index")&&(R.index=Z.index,R.input=Z.input),V=R,!a){var Z,B,R,M=t,U=V,W=-1,q=M.length;for(U||(U=Array(q));++W<q;)U[W]=M[W];return U}}else{var K,Y,G,Q,X,ee=eZ(t),et=ee==o||ee==l;if(eP(t)){var ea=t,en=a;if(en)return ea.slice();var es=new ea.constructor(ea.length);return ea.copy(es),es}if(ee==c||ee==r||et&&!C){if(L(t))return C?t:{};if(V="function"!=typeof(K=et?{}:t).constructor||eB(K)?{}:eF(Y=er(K))?ei(Y):{},!a){return G=t,Q=(X=V)&&eS(t,eU(t),X),eS(G,eA(G),Q)}}else{if(!O[ee])return C?t:{};V=function(e,t,a,n){var r,o,l,c=e.constructor;switch(t){case v:return eC(e);case i:case s:return new c(+e);case b:return r=n?eC(e.buffer):e.buffer,new e.constructor(r,e.byteOffset,e.byteLength);case _:case x:case k:case w:case T:case I:case z:case E:case N:return o=n?eC(e.buffer):e.buffer,new e.constructor(o,e.byteOffset,e.length);case d:return P(n?a(F(e),!0):F(e),D,new e.constructor);case u:case h:return new c(e);case f:return(l=new e.constructor(e.source,j.exec(e))).lastIndex=e.lastIndex,l;case m:return P(n?a(H(e),!0):H(e),$,new e.constructor);case y:return ew?Object(ew.call(e)):{}}}(t,ee,e,a)}}S||(S=new eE);var eo=S.get(t);if(eo)return eo;if(S.set(t,V),!A)var el=n?function(e){var t;return t=eU(e),eD(e)?t:function(e,t){for(var a=-1,n=t.length,r=e.length;++a<n;)e[r+a]=t[a];return e}(t,eA(e))}(t):eU(t);return!function(e,t){for(var a=-1,n=e?e.length:0;++a<n&&!1!==t(e[a],a,e););}(el||t,function(r,i){el&&(r=t[i=r]),eN(V,i,e(r,a,n,p,i,t,S))}),V}(e,!0,!0)}},22930:(e,t,a)=>{"use strict";a.d(t,{_V:()=>o._V,lS:()=>i.ExperienceRoot,Wb:()=>n.Wb,Yi:()=>s.Yi,Qm:()=>n.Qm,A0:()=>n.A0});
1var n=a(19921),r=a(15398),i=a(48826);a(7620),a(5182),a(43314);var s=a(69985),o=a(67412);"undefined"!=typeof window&&(window.__EB__||(window.__EB__={}),window.__EB__.sdkVersion=r.M,window.__EB__.enableDebug=n.Nw,window.__EB__.disableDebug=n.WT)},27541:(e,t,a)=>{"use strict";var n=a(43041);a.o(n,"usePathname")&&a.d(t,{usePathname:function(){return n.usePathname}}),a.o(n,"useRouter")&&a.d(t,{useRouter:function(){return n.useRouter}}),a.o(n,"useSearchParams")&&a.d(t,{useSearchParams:function(){return n.useSearchParams}})},28190:(e,t,a)=>{"use strict";var n=a(7620),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,s=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!r(e,a)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),n=i({inst:{value:a,getSnapshot:t}}),r=n[0].inst,u=n[1];return o(function(){r.value=a,r.getSnapshot=t,d(r)&&u({inst:r})},[e,a,t]),s(function(){return d(r)&&u({inst:r}),e(function(){d(r)&&u({inst:r})})},[e]),l(a),a};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},30996:(e,t,a)=>{"use strict";let n;a.d(t,{eq:()=>s,z:()=>td}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let a of e)t[a]=a;return t},e.getValidEnumValues=t=>{let a=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of a)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},e.find=(e,t)=>{for(let a of e)if(t(a))return a},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(tn||(tn={})),(tr||(tr={})).mergeShapes=(e,t)=>({...e,...t});let r=tn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{switch(typeof e){case"undefined":return r.undefined;case"string":return r.string;case"number":return isNaN(e)?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(e))return r.array;if(null===e)return r.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r.promise;if("undefined"!=typeof Map&&e instanceof Map)return r.map;if("undefined"!=typeof Set&&e instanceof Set)return r.set;if("undefined"!=typeof Date&&e instanceof Date)return r.date;return r.object;default:return r.unknown}}
vendor: 5,774 bytes, line 1
1,s=tn.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"]);class o extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},a={_errors:[]},n=e=>{for(let r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(n);else if("invalid_return_type"===r.code)n(r.returnTypeError);else if("invalid_arguments"===r.code)n(r.argumentsError);else if(0===r.path.length)a._errors.push(t(r));else{let e=a,n=0;for(;n<r.path.length;){let a=r.path[n];n===r.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(r))):e[a]=e[a]||{_errors:[]},e=e[a],n++}}};return n(this),a}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tn.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},a=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):a.push(e(n));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e);let l=(e,t)=>{let a;switch(e.code){case s.invalid_type:a=e.received===r.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,tn.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:a=`Unrecognized key(s) in object: ${tn.joinValues(e.keys,", ")}`;break;case s.invalid_union:a="Invalid input";break;case s.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${tn.joinValues(e.options)}`;break;case s.invalid_enum_value:a=`Invalid enum value. Expected ${tn.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:a="Invalid function arguments";break;case s.invalid_return_type:a="Invalid function return type";break;case s.invalid_date:a="Invalid date";break;case s.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:tn.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:a="Invalid input";break;case s.invalid_intersection_types:a="Intersection results could not be merged";break;case s.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:a="Number must be finite";break;default:a=t.defaultError,tn.assertNever(e)}return{message:a}},d=l;function u(){return d}let c=e=>{let{data:t,path:a,errorMaps:n,issueData:r}=e,i=[...a,...r.path||[]],s={...r,path:i};if(void 0!==r.message)return{...r,path:i,message:r.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...r,path:i,message:o}};function p(e,t){let a=u(),n=c({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let a=[];for(let n of t){if("aborted"===n.status)return m;"dirty"===n.status&&e.dirty(),a.push(n.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){let a=[];for(let e of t){let t=await e.key,n=await e.value;a.push({key:t,value:n})}return f.mergeObjectSync(e,a)}static mergeObjectSync(e,t){let a={};for(let n of t){let{key:t,value:r}=n;if("aborted"===t.status||"aborted"===r.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==r.value||n.alwaysSet)&&(a[t.value]=r.value)}return{status:e.value,value:a}}}let m=Object.freeze({status:"aborted"}),h=e=>({status:"dirty",value:e}),y=e=>
1({status:"valid",value:e}),g=e=>"aborted"===e.status,v=e=>"dirty"===e.status,b=e=>"valid"===e.status,_=e=>"undefined"!=typeof Promise&&e instanceof Promise;function x(e,t,a,n){if("a"===a&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===a?n:"a"===a?n.call(e):n?n.value:t.get(e)}function k(e,t,a,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(e,a):r?r.value=a:t.set(e,a),a}"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(ti||(ti={}));class w{constructor(e,t,a,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=n}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 T=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o(e.common.issues);return this._error=t,this._error}}};function I(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:n,description:r}=e;if(t&&(a||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{var i,s;let{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:r.defaultError}:void 0===r.data?{message:null!=(i=null!=o?o:n)?i:r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:null!=(s=null!=o?o:a)?s:r.defaultError}},description:r}}class z{get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(_(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){var a;let n={common:{issues:[],async:null!=(a=null==t?void 0:t.async)&&a,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parseSync({data:e,path:n.path,parent:n});return T(n,r)}"~validate"(e){var t,a;let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)};if(!this["~standard"].async)try{let t=this._parseSync({data:e,path:[],parent:n});return b(t)?{value:t.value}:{issues:n.common.issues}}catch(e){(null==(a=null==(t=null==e?void 0:e.message)?void 0:t.toLowerCase())?void 0:a.includes("encountered"))&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(e=>b(e)?{value:e.value}:{issues:n.common.issues})}async parseAsync(e,t){let a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){let a={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},n=this._parse({data:e,path:a.path,parent:a});return T(a,await (_(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((a,n)=>{let r=e(a),i=()=>n.addIssue({code:s.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(a):t});return"undefined"!=typeof Promise&&r instanceof Promise?r.then(e=>!!e||(i(),!1)):!!r||(i(),!1)})}refinement(e,t){return this._refinement((a,n)=>!!e(a)||(n.addIssue("function"==typeof t?t(a,n):t),!1))}_refinement(e){return new e_({schema:this,typeName:tl.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,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.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ex.create(this,this._def)}nullable(){return ek.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return en.create(this)}promise(){return eb.create(this,this._def)}or(e){return ei.create([this,e],this._def)}and(e){return el.create(this,e,this._def)}transform(e){return new e_({...I(this._def),schema:this,typeName:tl.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ew({...I(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:tl.ZodDefault})}brand(){return new eE({typeName:tl.ZodBranded,type:this,...I(this._def)})}catch(e){return new eT({...I(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:tl.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eN.create(this,e)}readonly(){return ej.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let E=/^c[^\s-]{8,}
vendor: 6,585 bytes, line 1
1$/i,N=/^[0-9a-z]+$/,j=/^[0-9A-HJKMNP-TV-Z]{26}$/i,C=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,S=/^[a-z0-9_-]{21}$/i,O=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,V=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,A=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Z=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,B=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,R=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,M=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,D=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,P="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",L=RegExp(`^${P}$`);function F(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function U(e){let t=`${P}T${F(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,RegExp(`^${t}$`)}class H extends z{_parse(e){var t,a,i,o;let l;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==r.string){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.string,received:t.parsedType}),m}let d=new f;for(let r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(p(l=this._getOrReturnCtx(e,l),{code:s.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),d.dirty());else if("max"===r.kind)e.data.length>r.value&&(p(l=this._getOrReturnCtx(e,l),{code:s.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),d.dirty());else if("length"===r.kind){let t=e.data.length>r.value,a=e.data.length<r.value;(t||a)&&(l=this._getOrReturnCtx(e,l),t?p(l,{code:s.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):a&&p(l,{code:s.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),d.dirty())}else if("email"===r.kind)A.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"email",code:s.invalid_string,message:r.message}),d.dirty());else if("emoji"===r.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"emoji",code:s.invalid_string,message:r.message}),d.dirty());else if("uuid"===r.kind)C.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"uuid",code:s.invalid_string,message:r.message}),d.dirty());else if("nanoid"===r.kind)S.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"nanoid",code:s.invalid_string,message:r.message}),d.dirty());else if("cuid"===r.kind)E.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"cuid",code:s.invalid_string,message:r.message}),d.dirty());else if("cuid2"===r.kind)N.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"cuid2",code:s.invalid_string,message:r.message}),d.dirty());else if("ulid"===r.kind)j.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"ulid",code:s.invalid_string,message:r.message}),d.dirty());else if("url"===r.kind)try{new URL(e.data)}catch(t){p(l=this._getOrReturnCtx(e,l),{validation:"url",code:s.invalid_string,message:r.message}),d.dirty()}else"regex"===r.kind?(r.regex.lastIndex=0,r.regex.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"regex",code:s.invalid_string,message:r.message}),d.dirty())):"trim"===r.kind?e.data=e.data.trim():"includes"===r.kind?e.data.includes(r.value,r.position)||(p(l=this._getOrReturnCtx(e,l),{code:s.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),d.dirty()):"toLowerCase"===r.kind?e.data=e.data.toLowerCase():"toUpperCase"===r.kind?e.data=e.data.toUpperCase():"startsWith"===r.kind?e.data.startsWith(r.value)||(p(l=this._getOrReturnCtx(e,l),{code:s.invalid_string,validation:{startsWith:r.value},message:r.message}),d.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(p(l=this._getOrReturnCtx(e,l),{code:s.invalid_string,validation:{endsWith:r.value},message:r.message}),d.dirty()):"datetime"===r.kind?U(r).test(e.data)||(p(l=this._getOrReturnCtx(e,l),{code:s.invalid_string,validation:"datetime",message:r.message}),d.dirty()):"date"===r.kind?L.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{code:s.invalid_string,validation:"date",message:r.message}),d.dirty()):"time"===r.kind?RegExp(`^${F(r)}$`).test(e.data)||(p(l=this._getOrReturnCtx(e,l),{code:s.invalid_string,validation:"time",message:r.message}),d.dirty()):"duration"===r.kind?V.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"duration",code:s.invalid_string,message:r.message}),d.dirty()):"ip"===r.kind?(t=e.data,!(("v4"===(a=r.version)||!a)&&Z.test(t)||("v6"===a||
1!a)&&R.test(t))&&1&&(p(l=this._getOrReturnCtx(e,l),{validation:"ip",code:s.invalid_string,message:r.message}),d.dirty())):"jwt"===r.kind?!function(e,t){if(!O.test(e))return!1;try{let[a]=e.split("."),n=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),r=JSON.parse(atob(n));if("object"!=typeof r||null===r||!r.typ||!r.alg||t&&r.alg!==t)return!1;return!0}catch(e){return!1}}(e.data,r.alg)&&(p(l=this._getOrReturnCtx(e,l),{validation:"jwt",code:s.invalid_string,message:r.message}),d.dirty()):"cidr"===r.kind?(i=e.data,!(("v4"===(o=r.version)||!o)&&B.test(i)||("v6"===o||!o)&&M.test(i))&&1&&(p(l=this._getOrReturnCtx(e,l),{validation:"cidr",code:s.invalid_string,message:r.message}),d.dirty())):"base64"===r.kind?D.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"base64",code:s.invalid_string,message:r.message}),d.dirty()):"base64url"===r.kind?$.test(e.data)||(p(l=this._getOrReturnCtx(e,l),{validation:"base64url",code:s.invalid_string,message:r.message}),d.dirty()):tn.assertNever(r);return{status:d.value,value:e.data}}_regex(e,t,a){return this.refinement(t=>e.test(t),{validation:t,code:s.invalid_string,...ti.errToObj(a)})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ti.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ti.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ti.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ti.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ti.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ti.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ti.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ti.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ti.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ti.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ti.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ti.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ti.errToObj(e)})}datetime(e){var t,a;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!=(t=null==e?void 0:e.offset)&&t,local:null!=(a=null==e?void 0:e.local)&&a,...ti.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...ti.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ti.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ti.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...ti.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ti.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ti.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ti.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ti.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...ti.errToObj(t)})}nonempty(e){return this.min(1,ti.errToObj(e))}trim(){return new H({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new H({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new H({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}
1get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}H.create=e=>{var t;return new H({checks:[],typeName:tl.ZodString,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...I(e)})};class W extends z{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==r.number){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.number,received:t.parsedType}),m}let a=new f;for(let n of this._def.checks)"int"===n.kind?tn.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:s.invalid_type,expected:"integer",received:"float",message:n.message}),a.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):"multipleOf"===n.kind?0!==function(e,t){let a=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=a>n?a:n;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}(e.data,n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:s.not_finite,message:n.message}),a.dirty()):tn.assertNever(n);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ti.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ti.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ti.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ti.toString(t))}setLimit(e,t,a,n){return new W({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:ti.toString(n)}]})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ti.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ti.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ti.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ti.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ti.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ti.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:ti.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ti.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ti.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&tn.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let a of this._def.checks)if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;else"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.value<e)&&(e=a.value);return Number.isFinite(t)&&Number.isFinite(e)}}W.create=e=>new W({checks:[],typeName:tl.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...I(e)});class q extends z{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch(t){return this._getInvalidInput(e)}if(this._getType(e)!==r.bigint)return this._getInvalidInput(e);let a=new f;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):tn.assertNever(n);return{status:a.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,ti.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ti.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ti.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ti.toString(t))}setLimit(e,t,a,n){return new q({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:ti.toString(n)}]})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}
1positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ti.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ti.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ti.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ti.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ti.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}q.create=e=>{var t;return new q({checks:[],typeName:tl.ZodBigInt,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...I(e)})};class K extends z{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==r.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.boolean,received:t.parsedType}),m}return y(e.data)}}K.create=e=>new K({typeName:tl.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...I(e)});class Y extends z{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==r.date){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.date,received:t.parsedType}),m}if(isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:s.invalid_date}),m;let a=new f;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),a.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),a.dirty()):tn.assertNever(n);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ti.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ti.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Y.create=e=>new Y({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tl.ZodDate,...I(e)});class G extends z{_parse(e){if(this._getType(e)!==r.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.symbol,received:t.parsedType}),m}return y(e.data)}}G.create=e=>new G({typeName:tl.ZodSymbol,...I(e)});class Q extends z{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.undefined,received:t.parsedType}),m}return y(e.data)}}Q.create=e=>new Q({typeName:tl.ZodUndefined,...I(e)});class J extends z{_parse(e){if(this._getType(e)!==r.null){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.null,received:t.parsedType}),m}return y(e.data)}}J.create=e=>new J({typeName:tl.ZodNull,...I(e)});class X extends z{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}X.create=e=>new X({typeName:tl.ZodAny,...I(e)});class ee extends z{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}ee.create=e=>new ee({typeName:tl.ZodUnknown,...I(e)});class et extends z{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.never,received:t.parsedType}),m}}et.create=e=>new et({typeName:tl.ZodNever,...I(e)});class ea extends z{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.void,received:t.parsedType}),m}return y(e.data)}}ea.create=e=>new ea({typeName:tl.ZodVoid,...I(e)});class en extends z{_parse(e){let{ctx:t,status:a}=this._processInputParams(e),n=this._def;if(t.parsedType!==r.array)return p(t,{code:s.invalid_type,expected:r.array,received:t.parsedType}),m;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,r=t.data.length<n.exactLength.value;(e||r)&&(p(t,{code:e?s.too_big:s.too_small,minimum:r?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),a.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(p(t,{code:s.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),a.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(p(t,{code:s.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((e,a)=>n.type._parseAsync(new w(t,e,t.path,a)))).then(e=>f.mergeArray(a,e));let i=[...t.data].map((e,a)=>n.type._parseSync(new w(t,e,t.path,a)));return f.mergeArray(a,i)}
1get element(){return this._def.type}min(e,t){return new en({...this._def,minLength:{value:e,message:ti.toString(t)}})}max(e,t){return new en({...this._def,maxLength:{value:e,message:ti.toString(t)}})}length(e,t){return new en({...this._def,exactLength:{value:e,message:ti.toString(t)}})}nonempty(e){return this.min(1,e)}}en.create=(e,t)=>new en({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tl.ZodArray,...I(t)});class er extends z{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=tn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==r.object){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.object,received:t.parsedType}),m}let{status:t,ctx:a}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof et&&"strip"===this._def.unknownKeys))for(let e in a.data)i.includes(e)||o.push(e);let l=[];for(let e of i){let t=n[e],r=a.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new w(a,r,a.path,e)),alwaysSet:e in a.data})}if(this._def.catchall instanceof et){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)l.push({key:{status:"valid",value:e},value:{status:"valid",value:a.data[e]}});else if("strict"===e)o.length>0&&(p(a,{code:s.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=a.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new w(a,n,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let a=await t.key,n=await t.value;e.push({key:a,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return ti.errToObj,new er({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,a)=>{var n,r,i,s;let o=null!=(i=null==(r=(n=this._def).errorMap)?void 0:r.call(n,t,a).message)?i:a.defaultError;return"unrecognized_keys"===t.code?{message:null!=(s=ti.errToObj(e).message)?s:o}:{message:o}}}:{}})}strip(){return new er({...this._def,unknownKeys:"strip"})}passthrough(){return new er({...this._def,unknownKeys:"passthrough"})}extend(e){return new er({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new er({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tl.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new er({...this._def,catchall:e})}pick(e){let t={};return tn.objectKeys(e).forEach(a=>{e[a]&&this.shape[a]&&(t[a]=this.shape[a])}),new er({...this._def,shape:()=>t})}omit(e){let t={};return tn.objectKeys(this.shape).forEach(a=>{e[a]||(t[a]=this.shape[a])}),new er({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof er){let a={};for(let n in t.shape){let r=t.shape[n];a[n]=ex.create(e(r))}return new er({...t._def,shape:()=>a})}if(t instanceof en)return new en({...t._def,type:e(t.element)});if(t instanceof ex)return ex.create(e(t.unwrap()));if(t instanceof ek)return ek.create(e(t.unwrap()));if(t instanceof ed)return ed.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return tn.objectKeys(this.shape).forEach(a=>{let n=this.shape[a];e&&!e[a]?t[a]=n:t[a]=n.optional()}),new er({...this._def,shape:()=>t})}required(e){let t={};return tn.objectKeys(this.shape).forEach(a=>{if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof ex;)e=e._def.innerType;t[a]=e}}),new er({...this._def,shape:()=>t})}keyof(){return ey(tn.objectKeys(this.shape))}}er.create=(e,t)=>new er({shape:()=>e,unknownKeys:"strip",catchall:et.create(),typeName:tl.ZodObject,...I(t)}),er.strictCreate=(e,t)=>new er({shape:()=>e,unknownKeys:"strict",catchall:et.create(),typeName:tl.ZodObject,...I(t)}),er.lazycreate=(e,t)=>new er({shape:e,unknownKeys:"strip",catchall:et.create(),typeName:tl.ZodObject,...I(t)});class ei extends z{_parse(e){let{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map(async e=>{let a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;let a=e.map(e=>new o(e.ctx.common.issues));return p(t,{code:s.invalid_union,unionErrors:a}),m});{let e,n=[];for(let r of a){let a={...t,common:{...t.common,issues:[]},parent:null},i=r._parseSync({data:t.data,path:t.path,parent:a});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:a}),a.common.issues.length&&n.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let r=n.map(e=>new o(e));return p(t,{code:s.invalid_union,unionErrors:r}),m}}get options(){return this._def.options}}ei.create=(e,t)=>
1new ei({options:e,typeName:tl.ZodUnion,...I(t)});let es=e=>{if(e instanceof em)return es(e.schema);if(e instanceof e_)return es(e.innerType());if(e instanceof eh)return[e.value];if(e instanceof eg)return e.options;if(e instanceof ev)return tn.objectValues(e.enum);else if(e instanceof ew)return es(e._def.innerType);else if(e instanceof Q)return[void 0];else if(e instanceof J)return[null];else if(e instanceof ex)return[void 0,...es(e.unwrap())];else if(e instanceof ek)return[null,...es(e.unwrap())];else if(e instanceof eE)return es(e.unwrap());else if(e instanceof ej)return es(e.unwrap());else if(e instanceof eT)return es(e._def.innerType);else return[]};class eo extends z{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.object)return p(t,{code:s.invalid_type,expected:r.object,received:t.parsedType}),m;let a=this.discriminator,n=t.data[a],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){let n=new Map;for(let a of t){let t=es(a.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let r of t){if(n.has(r))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);n.set(r,a)}}return new eo({typeName:tl.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...I(a)})}}class el extends z{_parse(e){let{status:t,ctx:a}=this._processInputParams(e),n=(e,n)=>{if(g(e)||g(n))return m;let o=function e(t,a){let n=i(t),s=i(a);if(t===a)return{valid:!0,data:t};if(n===r.object&&s===r.object){let n=tn.objectKeys(a),r=tn.objectKeys(t).filter(e=>-1!==n.indexOf(e)),i={...t,...a};for(let n of r){let r=e(t[n],a[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===r.array&&s===r.array){if(t.length!==a.length)return{valid:!1};let n=[];for(let r=0;r<t.length;r++){let i=e(t[r],a[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}if(n===r.date&&s===r.date&&+t==+a)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return o.valid?((v(e)||v(n))&&t.dirty(),{status:t.value,value:o.data}):(p(a,{code:s.invalid_intersection_types}),m)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}el.create=(e,t,a)=>new el({left:e,right:t,typeName:tl.ZodIntersection,...I(a)});class ed extends z{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==r.array)return p(a,{code:s.invalid_type,expected:r.array,received:a.parsedType}),m;if(a.data.length<this._def.items.length)return p(a,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&a.data.length>this._def.items.length&&(p(a,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...a.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new w(a,e,a.path,t)):null}).filter(e=>!!e);return a.common.async?Promise.all(n).then(e=>f.mergeArray(t,e)):f.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ed({...this._def,rest:e})}}ed.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ed({items:e,typeName:tl.ZodTuple,rest:null,...I(t)})};class eu extends z{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==r.object)return p(a,{code:s.invalid_type,expected:r.object,received:a.parsedType}),m;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in a.data)n.push({key:i._parse(new w(a,e,a.path,e)),value:o._parse(new w(a,a.data[e],a.path,e)),alwaysSet:e in a.data});return a.common.async?f.mergeObjectAsync(t,n):f.mergeObjectSync(t,n)}
1get element(){return this._def.valueType}static create(e,t,a){return new eu(t instanceof z?{keyType:e,valueType:t,typeName:tl.ZodRecord,...I(a)}:{keyType:H.create(),valueType:e,typeName:tl.ZodRecord,...I(t)})}}class ec extends z{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==r.map)return p(a,{code:s.invalid_type,expected:r.map,received:a.parsedType}),m;let n=this._def.keyType,i=this._def.valueType,o=[...a.data.entries()].map(([e,t],r)=>({key:n._parse(new w(a,e,a.path,[r,"key"])),value:i._parse(new w(a,t,a.path,[r,"value"]))}));if(a.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let a of o){let n=await a.key,r=await a.value;if("aborted"===n.status||"aborted"===r.status)return m;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}})}{let e=new Map;for(let a of o){let n=a.key,r=a.value;if("aborted"===n.status||"aborted"===r.status)return m;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),e.set(n.value,r.value)}return{status:t.value,value:e}}}}ec.create=(e,t,a)=>new ec({valueType:t,keyType:e,typeName:tl.ZodMap,...I(a)});class ep extends z{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==r.set)return p(a,{code:s.invalid_type,expected:r.set,received:a.parsedType}),m;let n=this._def;null!==n.minSize&&a.data.size<n.minSize.value&&(p(a,{code:s.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&a.data.size>n.maxSize.value&&(p(a,{code:s.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let a=new Set;for(let n of e){if("aborted"===n.status)return m;"dirty"===n.status&&t.dirty(),a.add(n.value)}return{status:t.value,value:a}}let l=[...a.data.values()].map((e,t)=>i._parse(new w(a,e,a.path,t)));return a.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ep({...this._def,minSize:{value:e,message:ti.toString(t)}})}max(e,t){return new ep({...this._def,maxSize:{value:e,message:ti.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ep.create=(e,t)=>new ep({valueType:e,minSize:null,maxSize:null,typeName:tl.ZodSet,...I(t)});class ef extends z{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.function)return p(t,{code:s.invalid_type,expected:r.function,received:t.parsedType}),m;function a(e,a){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:s.invalid_arguments,argumentsError:a}})}function n(e,a){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:s.invalid_return_type,returnTypeError:a}})}let i={errorMap:t.common.contextualErrorMap},d=t.data;if(this._def.returns instanceof eb){let e=this;return y(async function(...t){let r=new o([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw r.addIssue(a(t,e)),r}),l=await Reflect.apply(d,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw r.addIssue(n(l,e)),r})})}{let e=this;return y(function(...t){let r=e._def.args.safeParse(t,i);if(!r.success)throw new o([a(t,r.error)]);let s=Reflect.apply(d,this,r.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new o([n(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ef({...this._def,args:ed.create(e).rest(ee.create())})}returns(e){return new ef({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new ef({args:e||ed.create([]).rest(ee.create()),returns:t||ee.create(),typeName:tl.ZodFunction,...I(a)})}}class em extends z{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}em.create=(e,t)=>
1new em({getter:e,typeName:tl.ZodLazy,...I(t)});class eh extends z{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ey(e,t){return new eg({values:e,typeName:tl.ZodEnum,...I(t)})}eh.create=(e,t)=>new eh({value:e,typeName:tl.ZodLiteral,...I(t)});class eg extends z{constructor(){super(...arguments),ts.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),a=this._def.values;return p(t,{expected:tn.joinValues(a),received:t.parsedType,code:s.invalid_type}),m}if(x(this,ts,"f")||k(this,ts,new Set(this._def.values),"f"),!x(this,ts,"f").has(e.data)){let t=this._getOrReturnCtx(e),a=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:a}),m}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eg.create(e,{...this._def,...t})}exclude(e,t=this._def){return eg.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ts=new WeakMap,eg.create=ey;class ev extends z{constructor(){super(...arguments),to.set(this,void 0)}_parse(e){let t=tn.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==r.string&&a.parsedType!==r.number){let e=tn.objectValues(t);return p(a,{expected:tn.joinValues(e),received:a.parsedType,code:s.invalid_type}),m}if(x(this,to,"f")||k(this,to,new Set(tn.getValidEnumValues(this._def.values)),"f"),!x(this,to,"f").has(e.data)){let e=tn.objectValues(t);return p(a,{received:a.data,code:s.invalid_enum_value,options:e}),m}return y(e.data)}get enum(){return this._def.values}}to=new WeakMap,ev.create=(e,t)=>new ev({values:e,typeName:tl.ZodNativeEnum,...I(t)});class eb extends z{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==r.promise&&!1===t.common.async?(p(t,{code:s.invalid_type,expected:r.promise,received:t.parsedType}),m):y((t.parsedType===r.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eb.create=(e,t)=>new eb({type:e,typeName:tl.ZodPromise,...I(t)});class e_ extends z{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tl.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:a}=this._processInputParams(e),n=this._def.effect||null,r={addIssue:e=>{p(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===n.type){let e=n.transform(a.data,r);if(a.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return m;let n=await this._def.schema._parseAsync({data:e,path:a.path,parent:a});return"aborted"===n.status?m:"dirty"===n.status||"dirty"===t.value?h(n.value):n});{if("aborted"===t.value)return m;let n=this._def.schema._parseSync({data:e,path:a.path,parent:a});return"aborted"===n.status?m:"dirty"===n.status||"dirty"===t.value?h(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,r);if(a.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(a=>"aborted"===a.status?m:("dirty"===a.status&&t.dirty(),e(a.value).then(()=>({status:t.value,value:a.value}))));{let n=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(e=>b(e)?Promise.resolve(n.transform(e.value,r)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!b(e))return e;let i=n.transform(e.value,r);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}tn.assertNever(n)}}e_.create=(e,t,a)=>new e_({schema:e,typeName:tl.ZodEffects,effect:t,...I(a)}),e_.createWithPreprocess=(e,t,a)=>new e_({schema:t,effect:{type:"preprocess",transform:e},typeName:tl.ZodEffects,...I(a)});class ex extends z{_parse(e){return this._getType(e)===r.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>
1new ex({innerType:e,typeName:tl.ZodOptional,...I(t)});class ek extends z{_parse(e){return this._getType(e)===r.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ek.create=(e,t)=>new ek({innerType:e,typeName:tl.ZodNullable,...I(t)});class ew extends z{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return t.parsedType===r.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:tl.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...I(t)});class eT extends z{_parse(e){let{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return _(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(a.common.issues)},input:a.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new o(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}eT.create=(e,t)=>new eT({innerType:e,typeName:tl.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...I(t)});class eI extends z{_parse(e){if(this._getType(e)!==r.nan){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:r.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}eI.create=e=>new eI({typeName:tl.ZodNaN,...I(e)});let ez=Symbol("zod_brand");class eE extends z{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class eN extends z{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),h(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})();{let e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new eN({in:e,out:t,typeName:tl.ZodPipeline})}}class ej extends z{_parse(e){let t=this._def.innerType._parse(e),a=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return _(t)?t.then(e=>a(e)):a(t)}unwrap(){return this._def.innerType}}function eC(e,t){let a="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof a?{message:a}:a}function eS(e,t={},a){return e?X.create().superRefine((n,r)=>{var i,s;let o=e(n);if(o instanceof Promise)return o.then(e=>{var i,s;if(!e){let e=eC(t,n),o=null==(s=null!=(i=e.fatal)?i:a)||s;r.addIssue({code:"custom",...e,fatal:o})}});if(!o){let e=eC(t,n),o=null==(s=null!=(i=e.fatal)?i:a)||s;r.addIssue({code:"custom",...e,fatal:o})}}):X.create()}ej.create=(e,t)=>new ej({innerType:e,typeName:tl.ZodReadonly,...I(t)});let eO={object:er.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(tl||(tl={}));let eV=H.create,eA=W.create,eZ=eI.create,eB=q.create,eR=K.create,eM=Y.create,eD=G.create,e$=Q.create,eP=J.create,eL=X.create,eF=ee.create,eU=et.create,eH=ea.create,eW=en.create,eq=er.create,eK=er.strictCreate,eY=ei.create,eG=eo.create,eQ=el.create,eJ=ed.create,eX=eu.create,e0=ec.create,e1=ep.create,e2=ef.create,e4=em.create,e9=eh.create,e5=eg.create,e3=ev.create,e6=eb.create,e8=e_.create,e7=ex.create,te=ek.create,tt=e_.createWithPreprocess,ta=eN.create;var tn,tr,ti,ts,to,tl,td=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){d=e},getErrorMap:u,makeIssue:c,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:f,INVALID:m,DIRTY:h,OK:y,isAborted:g,isDirty:v,isValid:b,isAsync:_,get util(){return tn},get objectUtil(){return tr},ZodParsedType:r,getParsedType:i,ZodType:z,datetimeRegex:U,ZodString:H,ZodNumber:W,ZodBigInt:q,ZodBoolean:K,ZodDate:Y,ZodSymbol:G,ZodUndefined:Q,ZodNull:J,ZodAny:X,ZodUnknown:ee,ZodNever:et,ZodVoid:ea,ZodArray:en,ZodObject:er,ZodUnion:ei,ZodDiscriminatedUnion:eo,ZodIntersection:el,ZodTuple:ed,ZodRecord:eu,ZodMap:ec,ZodSet:ep,ZodFunction:ef,ZodLazy:em,ZodLiteral:eh,ZodEnum:eg,ZodNativeEnum:ev,ZodPromise:eb,ZodEffects:e_,ZodTransformer:e_,ZodOptional:ex,ZodNullable:ek,ZodDefault:ew,ZodCatch:eT,ZodNaN:eI,BRAND:ez,ZodBranded:eE,ZodPipeline:eN,ZodReadonly:ej,custom:eS,Schema:z,ZodSchema:z,late:eO,get ZodFirstPartyTypeKind(){return tl},coerce:{string:e=>H.create({...e,coerce:!0}),number:e=>W.create({...e,coerce:!0}),boolean:e=>K.create({...e,coerce:!0}),bigint:e=>q.create({...e,coerce:!0}),date:e=>Y.create({...e,coerce:!0})},any:eL,array:eW,bigint:eB,boolean:eR,date:eM,discriminatedUnion:eG,effect:e8,enum:e5,function:e2,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eS(t=>t instanceof e,t),intersection:eQ,lazy:e4,literal:e9,map:e0,nan:eZ,nativeEnum:e3,never:eU,null:eP,nullable:te,number:eA,object:eq,oboolean:()=>eR().optional(),onumber:()=>eA().optional(),optional:e7,ostring:()=>eV().optional(),pipeline:ta,preprocess:tt,promise:e6,record:eX,set:e1,str
1ictObject:eK,string:eV,symbol:eD,transformer:e8,tuple:eJ,undefined:e$,union:eY,unknown:eF,void:eH,NEVER:m,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:o})},33045:(e,t,a)=>{"use strict";e.exports=a(53413)},43314:(e,t,a)=>{"use strict";a.r(t),a.d(t,{useDetectCanvasMode:()=>o});var n=a(7620),r=a(19921),i=a(67412);let s={hasSDKVersionUI:!0,hasVersionHistory:!0,cfVisibility:!0,patternResolution:!0,patternBreakpointDesignValues:!0,dndMigration:!0,hasPrebinding:!0},o=function(){let{isClientSide:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,a]=(0,n.useState)(!1),o=(0,n.useRef)(!1),[d,u]=(0,n.useState)(()=>e&&l()?i.kT.READ_ONLY:i.kT.NONE),c=(0,n.useCallback)(e=>{if((0,r.oP)(e))return;let t=(0,r.VI)(e);if(t.eventType!==i.$4.RequestEditorMode&&t.eventType!==i.$4.RequestReadOnlyMode)return;let a=t.eventType===i.$4.RequestEditorMode,n=a?i.kT.EDITOR:i.kT.READ_ONLY;o.current=!0,u(n),"undefined"!=typeof window&&(window.__EB__||(window.__EB__={}),window.__EB__.isReadOnlyMode=!a,window.__EB__.isEditorMode=a),window.removeEventListener("message",c)},[]);return(0,n.useEffect)(()=>{if(t){if("undefined"!=typeof window){window.addEventListener("message",c),(0,r._z)(i.tc.Connected,void 0),(0,r._z)(i.tc.SDKFeatures,s);let e=setTimeout(()=>{o.current||u(i.kT.NONE)},l()?2e3:100);return()=>{window.removeEventListener("message",c),clearTimeout(e)}}}else a(!0)},[d,t,c]),d};function l(){try{return window.self!==window.top}catch(e){return!1}}},48826:(e,t,a)=>{"use strict";a.d(t,{ExperienceRoot:()=>z});var n=a(54568),r=a(19921),i=a(7620),s=a(67412),o=a(69985),l=a(1098);class d{static prebindingDefinitions=new Map;static prebindingDefinitionIdsByNodeId=new Map;static parameterDefinitionsById=new Map;static parameterDefinitionsByNodeId=new Map;static variableMappingByPatternId=new Map;static newToOriginalNodeIdMap=new Map;static paramIdToOverwriteIdMap=new Map;static linkOriginalNodeIds(e,t){d.newToOriginalNodeIdMap.set(e,t)}static storePrebindingDefinitions(e,t,a){for(let n of a??[])d.prebindingDefinitions.set(n.id,{...n}),d.prebindingDefinitionIdsByNodeId.set(e,[n.id]),n.variableMappings&&d.variableMappingByPatternId.set(t,n.variableMappings),d.storeParameterDefinitions(e,n.parameterDefinitions||{})}static storeParameterDefinitions(e,t){d.parameterDefinitionsByNodeId.set(e,[]);let a=[];for(let[n,r]of Object.entries(t||{})){if(d.parameterDefinitionsById.set(n,{parameterId:n,parameter:r}),r.passToNodes){let{parameterId:t,nodeId:a}=r.passToNodes[0]??{};if(t){let r=d.paramIdToOverwriteIdMap.get(t)??[];r.some(t=>t.overwrittenByParamId===n&&t.originalNodeIdToOverride===a&&t.indexedParentPatternNodeId===e)||d.paramIdToOverwriteIdMap.set(t,[...r,{overwrittenByParamId:n,originalNodeIdToOverride:a,indexedParentPatternNodeId:e}])}}a.push({parameterId:n,parameter:r})}d.parameterDefinitionsByNodeId.set(e,a)}static getParameterIdByNodeId(e){let t=d.getNativeParameterDefinitionByNodeId(e);if(t)return d.getHoistedIdForParameterId(t?.parameterId,e)}static getParameterDefinitionsByParameterId(e){let t,a=d.parameterDefinitionsById.get(e),n=(a?.parameter?.passToNodes||[])[0],r=d.parameterDefinitionsById.get(n?.parameterId),i=(r?.parameter?.passToNodes||[])[0];i&&(t=d.parameterDefinitionsById.get(i?.parameterId));let s=[a,r,t];if(s&&s.filter(Boolean).length)return s}static getAllParameterDefinitionsForNodeId(e){return Object.fromEntries((d.parameterDefinitionsByNodeId.get(e)??[]).map(({parameterId:e,parameter:t})=>[e,t]))}static getAllParameterIdsByNodeId(e){return Object.keys(d.getAllParameterDefinitionsForNodeId(e))}static getHoistedIdForParameterId(e,t){let a,n=e,r=t,i=d.newToOriginalNodeIdMap.get(t)??t;do{let e=d.paramIdToOverwriteIdMap.get(n)??[],t=r.split("---");if(a=e.find(e=>e.originalNodeIdToOverride===i&&(t.length>1&&r.includes(e.indexedParentPatternNodeId)||1===t.length&&"root"===e.indexedParentPatternNodeId))){let{overwrittenByParamId:e,indexedParentPatternNodeId:t}=a;n=e,r=t,i=d.newToOriginalNodeIdMap.get(t)??t}}while(a);return n}static getNativeParameterDefinitionByNodeId(e){let t=d.parameterDefinitionsByNodeId.get(e);return d.extractNativeParameterDefinition(t)}static extractNativeParameterDefinition(e){let{parameterId:t,parameter:a}=e?.find(e=>!e.parameter.passToNodes?.length)||{};if(t&&a)return{parameterId:t,parameter:a}}static reset(){d.prebindingDefinitions=new Map,d.parameterDefinitionsById=new Map,d.parameterDefinitionsByNodeId=new Map,d.variableMappingByPatternId=new Map,d.newToOriginalNodeIdMap=new Map,d.paramIdToOverwriteIdMap=new Map}}let u=({componentValueKey:e,componentSettings:t,parameters:a,patternRootNodeIdsChain:n})=>{let{prebindingDefinitions:r}=t,{parameterDefinitions:i,variableMappings:s,allowedVariableOverrides:o}=r?.[0]||{},l=s?.[e],u=i?.[l?.parameterId||""],c=n.join("---"),p=d.getHoistedIdForParameterId(l?.parameterId||"",c),f=a?.[p];return!!(u&&f&&l&&o&&Array.isArray(o))&&!o.includes(e)},c=({componentValueKey:e,componentSettings:t,parameters:a,entityStore:n,patternRootNodeIdsChain:r})=>{let i=t.prebindingDefinitions?.[0];if(!i)return"";let s=i.variableMappings?.[e];if(!s)return"";let o=r.join("---"),l=d.getHoistedIdForParameterId(s.parameterId,o),u=a?.[l];if(!u)return"";let c=u.path.split("/")[1],p=n.dataSource[c];if(!p)return"";let f=n.getEntityFromLink(p);if(!f||"Asset"===f.sys.type)return"";let m=f.sys.contentType.sys.id,h=n.hoistedParameterDefinitions[l];if(!h||!h.contentTypes.includes(m))return"";let y=s?.pathsByContentType?.[m]?.path;return y?u.path+y:""},p=({node:e,rootPatternVariables:t,componentSettings:a,entityStore:n,rootPatternParameters:i,parentPatternRootNodeIdsChain:s})=>{let o={},l=s.slice(-1)[0];for(let[d,p]of(l===e.id&&(l=s.slice(-2)[0]),Object.entries(e.variables)))if(o[d]=p,"ComponentValue"===p.type){let l=p.key,f=t[l],m=a.variableDefinitions?.[l],h=m?.defaultValue,y=u({componentSettings:a,componentValueKey:l,parameters:i,patternRootNodeIdsChain:s}),g=c({componentSettings:a,componentValueKey:l,parameters:i,entityStore:n,patternRootNodeIdsChain:s});if(y&&g)o[d]={type:"BoundValue",path:g};else if(f?.type==="UnboundValue")o[d]={type:"UnboundValue",key:f.key};else if(f?.type==="NoValue")throw Error(`Unexpected NoValue for variable "${d}" when deserializing pattern "${e.definitionId}". This can only happen if you created experience in pre-release version of prebinding and experience contains NoValue properties. Resave experience to fix this issue.`);else f?.type==="BoundValue"?o[d]={type:"BoundValue",path:f.path}:f?.type==="HyperlinkValue"?o[d]={type:"HyperlinkValue",linkTargetKey:f.linkTargetKey}:f?.type==="DesignValue"?o[d]=(0,r.Pt)(h,f):f?.type==="ComponentValue"?y||(o[d]=h):!f&&h&&"style"===m.group&&(o[d]={type:"DesignValue",valuesByBreakpoint:h.values
1ByBreakpoint})}let d=e.children.map(e=>((0,r.H_)({componentId:e.definitionId,usedComponents:n.usedComponents}),p({node:e,rootPatternVariables:t,componentSettings:a,entityStore:n,rootPatternParameters:i,parentPatternRootNodeIdsChain:s}))),f=s.join("---"),m=f?[f,e.id].join("-"):e.id;return{definitionId:e.definitionId,id:e.id,variables:o,children:d,pattern:{nodeIdOnPattern:e.id,parentPatternNodeId:l,prefixedNodeId:m},slotId:e.slotId,displayName:e.displayName,parameters:e.parameters}};var f=a(97340);let m=e=>"cfBackgroundImageUrl"===e||e.startsWith("cfBackgroundImageUrl_"),h=({node:e,locale:t,entityStore:a,hyperlinkPattern:u,resolveDesignValue:c,getPatternChildNodeClassName:g,wrappingPatternIds:v=new Set,patternRootNodeIdsChain:b=[],rootPatternParameters:_})=>{let x=(0,i.useMemo)(()=>(0,r.H_)({componentId:e.definitionId,usedComponents:a.usedComponents}),[a.usedComponents,e.definitionId]),k=(0,i.useMemo)(()=>x?[...b,e.id]:b,[x,b,e.id]),w=(0,i.useMemo)(()=>_||(x&&e.parameters&&Object.keys(e.parameters).length?e.parameters:void 0),[e,_,x]),T=(0,i.useMemo)(()=>x?(({node:e,entityStore:t,parentPatternRootNodeIdsChain:a,rootPatternParameters:n})=>{let r,i=e.definitionId,s=t.usedComponents?.find(e=>e.sys.id===i);if(!s||!("fields"in s))return e;let o=s.fields;if(n){r={};let t=o.componentSettings?.prebindingDefinitions??[],s=a.join("---");d.linkOriginalNodeIds(s,e.id),d.storePrebindingDefinitions(s,i,t);let l=t[0];if(l&&l.parameterDefinitions)for(let[e]of Object.entries(l.parameterDefinitions)){let t=d.getHoistedIdForParameterId(e,s);n[t]&&(r[e]=n[t])}}let l=p({node:{definitionId:e.definitionId,id:e.id,variables:e.variables,children:o.componentTree.children,parameters:r},rootPatternVariables:e.variables,componentSettings:o.componentSettings,entityStore:t,rootPatternParameters:n,parentPatternRootNodeIdsChain:a});return t.addAssemblyUnboundValues(o.unboundValues),l})({node:e,entityStore:a,parentPatternRootNodeIdsChain:k,rootPatternParameters:w}):e,[a,x,e,k,w]),I=(0,i.useMemo)(()=>x?new Set([T.definitionId,...v]):v,[x,T,v]),z=(0,i.useMemo)(()=>{let e=(0,o.ze)(T.definitionId);return x&&!e?(0,o.Qj)({definitionId:T.definitionId,component:l.NS}):e},[x,T.definitionId]),{ssrProps:E,contentProps:N,props:j,mediaQuery:C}=(0,i.useMemo)(()=>{let e=T.variables.cfSsrClassName,n=a.breakpoints[0],i=e?.valuesByBreakpoint?.[n.id];if(!z||x)return{ssrProps:{cfSsrClassName:i},props:{className:i}};let o={cfSsrClassName:T.id&&g?g(T.id):i},{contentProps:l={},styleProps:p={},customDesignProps:h={},mediaQuery:y}=(({breakpoints:e,componentDefinition:t,patternRootNodeIdsChain:a,node:n,resolveDesignValue:i,resolveBoundValue:s,resolveHyperlinkValue:o,resolveUnboundValue:l,resolveComponentValue:d})=>{let u={},c={},p={};for(let[a,f]of(r.Yz.log("[experiences-sdk-react::parseComponentProps] Parsing component props for node with i
1d: ",n.id),Object.entries(t.variables))){let t=n.variables[a];if(t)switch(t.type){case"DesignValue":(0,r.HO)(a)?u[a]=t.valuesByBreakpoint:c[a]=i(t.valuesByBreakpoint);break;case"BoundValue":{let n=s({propertyName:a,dataType:f.type,binding:t})??f.defaultValue;m(a)?u[a]=Object.fromEntries(e.map(e=>[e.id,n])):p[a]=n;break}case"HyperlinkValue":{let e=o({linkTargetKey:t.linkTargetKey});e&&(p[a]=e);break}case"UnboundValue":{let n=l({mappingKey:t.key,defaultValue:f.defaultValue});m(a)?u[a]=Object.fromEntries(e.map(e=>[e.id,n])):p[a]=n;break}case"ComponentValue":{let n=d({propertyName:a,mappingKey:t.key,dataType:f.type,resolveBoundValue:s})??f.defaultValue;m(a)?u[a]=Object.fromEntries(e.map(e=>[e.id,n])):p[a]=n}}}let h=(e=>{let t=e.reduce((t,{breakpointCondition:a,className:n,css:i,visibilityCss:s},o)=>{if(t.classNames.includes(n))return t;let l=(0,r.yA)({condition:a,cssByClassName:{[n]:i}}),d=(0,r.yA)({condition:a,cssByClassName:{[n]:s??""},nextCondition:e[o+1]?.breakpointCondition});return{classNames:[...t.classNames,n],css:`${t.css}${l}${d}`}},{classNames:[],css:""});return{css:t.css,className:t.classNames.join(" ")}})((({designPropertiesByBreakpoint:e,breakpoints:t,node:a,patternRootNodeIdsChain:n})=>{let i,s=(0,r.ZZ)(r.WN),o=Object.values(e).some(e=>!1===e.cfVisibility),l=[];for(let d of t){let t,u=e[d.id];if(!u)continue;let c=Object.entries(u).reduce((e,[t,a])=>({...e,[t]:(0,r.Dh)(t,a,s)}),{});
1if(o){let e=c.cfVisibility??i;i=e;let a=(0,r.vm)(e);t=(0,r.Gi)(a)}let p=(0,r.NU)((0,r.Oc)(c),a),m=(0,r.Gi)(p),h=n?f([...n,a.id,m,t].join("-")):f(`${a.id}-${m}-${t}`),y=`cfstyles-${h}`;l.push({className:y,breakpointCondition:d.query,css:m,visibilityCss:t})}return l})({designPropertiesByBreakpoint:Object.entries(u).reduce((e,[t,a])=>{for(let[n,r]of Object.entries(a))e[n]||(e[n]={}),e[n][t]=r;return e},{}),breakpoints:e,node:n,patternRootNodeIdsChain:a}));return{styleProps:u,mediaQuery:h,customDesignProps:c,contentProps:p}})({breakpoints:a.breakpoints,mainBreakpoint:n,componentDefinition:z.definition,patternRootNodeIdsChain:k,node:T,resolveDesignValue:c,resolveBoundValue:({binding:e,propertyName:t,dataType:n})=>{let[,i]=e.path.split("/"),s=a.dataSource[i];if(s)return(0,r.Nv)(T.variables,a,s,c,t,n,e.path)},resolveHyperlinkValue:({linkTargetKey:e})=>{let n=a.dataSource[e],i=a.getEntryOrAsset(n,e);return(0,r.jK)(z.definition.hyperlinkPattern||u||s.se,i,t)},resolveUnboundValue:({mappingKey:e,defaultValue:t})=>a.unboundValues[e]?.value??t,resolveComponentValue:({mappingKey:e,propertyName:t,dataType:n,resolveBoundValue:i})=>{if(!a.isExperienceAPatternEntry)return;let s=(({componentValueKey:e,patternRootNodeIdsChain:t,entityStore:a})=>{let n=a.hoistedVariableMappings[e];if(!n)return;let i=t.join("---"),s=n.parameterId,o=d.getHoistedIdForParameterId(s,i),l=a.hoistedParameterDefinitions[o];if(!l||!l.defaultSource)return;let{contentTypeId:u,link:c}=l.defaultSource;if((0,r.PJ)(c)&&l.contentTypes.includes(u)){if(!a.getEntityFromLink(c))return;let e=n.pathsByContentType[u]?.path;if(!e)return;return`/${c.sys.id}${e}`}})({componentValueKey:e,patternRootNodeIdsChain:k,entityStore:a});if(s)return i({propertyName:t,dataType:n,binding:{type:"BoundValue",path:s}})}}),v={className:o.cfSsrClassName??y?.className,...p,...l,...h};return{ssrProps:o,contentProps:l,mediaQuery:y,props:v}},[T,a,z,x,g,c,u,t,k]);if((e=>{(0,i.useInsertionEffect)(()=>{if(!e)return;let t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),()=>{t.parentNode?.removeChild(t)}},[e])})(E.cfSsrClassName?void 0:C?.css),!z||v.has(T.definitionId))return null;let{component:S}=z,O=e=>{if(x){let t=[...k,e].join("-"),a=T.variables.cfSsrClassName?.[t];if(!a)return;return c(a.valuesByBreakpoint)}return g?.(e)},{slotNodesMap:V,directChildNodes:A}=(0,r.Oi)(T.children,z.definition),Z=(e,r)=>(0,n.jsx)(h,{getPatternChildNodeClassName:x||g?O:void 0,node:e,locale:t,hyperlinkPattern:u,entityStore:a,resolveDesignValue:c,wrappingPatternIds:I,patternRootNodeIdsChain:k,rootPatternParameters:w},e.id??r),B=Object.entries(V).reduce((e,[t,a])=>(a?.length&&(e[t]=(0,n.jsx)(n.Fragment,{children:a.map(Z)})),e),{}),R=A?.map(Z),M=(0,r.J4)();return y(T.definitionId)&&!M.__unsafe__enableBuiltInStructureOverwrites?(0,n.jsx)(l.iG,{cfHyperlink:N.cfHyperlink,cfOpenInNewTab:N.cfOpenInNewTab,className:j.className,children:R}):i.createElement(S,{...(0,r.um)(j),...B},...R??[])},y=e=>[s._V.container.id,s._V.section.id].includes(e),g=["2023-09-28"],v=["root"],b=({locale:e,experience:t})=>{let{entityStore:a}=t,{resolveDesignValue:s}=(e=>{let[t,a]=(0,i.useState)({});return(0,i.useEffect)(()=>{let[t,n]=(0,r.xW)(e);a(n);let i=t.map(({id:e,signal:t})=>{let n=()=>a(a=>({...a,[e]:t.matches}));return t.addEventListener("change",n),n});return()=>{i.forEach((e,a)=>{t[a].signal.removeEventListener("change",e)})}},[e]),{resolveDesignValue:(0,i.useCallback)((a,n)=>{let i=(0,r.iD)(e),s=(0,r.CX)(e,t,i);return(0,r.gZ)(a,e,s,i,n)},[t,e])}})(a?.breakpoints??[]);if(!a?.experienceEntryFields||!a?.schemaVersion)return null;if(!g.includes(a.schemaVersion))return r.Yz.warn(`[experiences-sdk-react::PreviewDeliveryRoot] Contentful experience schema version: ${a.schemaVersion} does not match the compatible schema versions: ${g}. Aborting.`),null;if(a.isExperienceAPatternEntry){let i=a.experienceEntryFields.componentSettings?.prebindingDefinitions??[];d.storePrebindingDefinitions("root",a.experienceEntryId,i);let{dataSource:o,parameters:l}=(0,r.oC)(i);return Object.keys(o).length&&(a.experienceEntryFields.dataSource={...a.dataSource,...o}
1),a.experienceEntryFields.componentTree.children.map((r,i)=>(0,n.jsx)(h,{node:r,hyperlinkPattern:t.hyperlinkPattern,locale:e,entityStore:a,resolveDesignValue:s,patternRootNodeIdsChain:v,rootPatternParameters:l},i))}return(0,n.jsx)(n.Fragment,{children:a.experienceEntryFields.componentTree.children.map((r,i)=>(0,n.jsx)(h,{node:r,hyperlinkPattern:t.hyperlinkPattern,locale:e,entityStore:a,resolveDesignValue:s},i))})},_={errorMessage:{"--exp-builder-font-size-m":"0.875rem","--exp-builder-font-size-l":"1rem","--exp-builder-font-stack-primary":"-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol","--exp-builder-red200":"#ffe0e0","--exp-builder-red800":"#7f0010","--exp-builder-blue700":"#0041ab",margin:"24px",fontSize:"var(--exp-builder-font-size-m)",fontFamily:"var(--exp-builder-font-stack-primary)",color:"var(--exp-builder-red800)",padding:"16px",backgroundColor:"var(--exp-builder-red200)"},title:{marginTop:0,fontSize:"var(--exp-builder-font-size-l)"},moreDetails:{cursor:"pointer",color:"var(--exp-builder-blue700)"}};class x extends i.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){if(this.setState({error:e,errorInfo:t}),"ImportedComponentError"!==e.name)(0,r._z)(s.tc.CanvasError,e);else throw e}render(){return this.state.hasError?(0,n.jsxs)("div",{style:_.errorMessage,children:[(0,n.jsx)("h2",{style:_.title,children:"Something went wrong while rendering the experience"}),(0,n.jsxs)("div",{children:["The Experience Builder SDK has encountered an error. It may be that the SDK has not been set up properly or an imported component has thrown this error. Try to refresh the page and find more guidance in our"," ",(0,n.jsx)("a",{href:"https://www.contentful.com/developers/docs/tutorials/general/experience-builder/",rel:"noreferrer",target:"_blank",children:"documentation"}),"."]}),(0,n.jsx)("br",{}),(0,n.jsxs)("span",{style:_.moreDetails,onClick:()=>this.setState(e=>({showErrorDetails:!e.showErrorDetails})),children:[this.state.showErrorDetails?"Hide":"See"," details"]}),this.state.showErrorDetails&&(0,n.jsx)("code",{children:this.state.error?.stack?.split("\n").map((e,t)=>(0,n.jsx)("div",{children:e},t))})]}):this.props.children}}let k=i.lazy(()=>a.e(127).then(a.bind(a,36127))),w=({visualEditorMode:e,canvasMode:t,experience:a,initialLocale:l})=>((e=>{let{initialLocale:t,initialEntities:a}=e,[n,l]=(0,i.useState)(t),d=(0,i.useRef)(!1);(0,i.useEffect)(()=>{d.current||((0,o.bI)(),(0,r.B4)(),(0,o.MA)(),d.current=!0);let e=()=>{(0,o.bI)(),(0,o.u1)()};return"undefined"!=typeof window&&window.addEventListener(s.UH.ComponentsRegistered,e),()=>{"undefined"!=typeof window&&window.removeEventListener(s.UH.ComponentsRegistered,e)}},[]),(0,i.useEffect)(()=>
1{l(t)},[t]),(0,i.useEffect)(()=>{let e=()=>{window.dispatchEvent(new CustomEvent(s.UH.VisualEditorInitialize,{detail:{componentRegistry:o.T8,designTokens:r.WN,breakpoints:r.oZ,sdkOptions:r.q8,locale:n,entities:a??[]}}))};return window.addEventListener(s.NG.Ready,e),()=>{window.removeEventListener(s.NG.Ready,e)}},[n,a])})({initialLocale:l,initialEntities:a?.entityStore?.entities||[]}),(0,n.jsx)(i.Suspense,{fallback:(0,n.jsx)("div",{children:"Loading..."}),children:(0,n.jsx)(k,{experience:a,visualEditorMode:e,canvasMode:t})})),T=e=>(0,n.jsx)(x,{children:(0,n.jsx)(w,{...e})});var I=a(43314);let z=e=>{let{locale:t,experience:a,visualEditorMode:i=r.XA.LazyLoad,debug:o}=e,l=(0,I.useDetectCanvasMode)();"boolean"==typeof o&&r.Yz.setActiveLevel(o?"debug":"warn");let d="string"==typeof a?(0,r.Dr)(a):a;return((0,r.sN)({locale:t,mode:l}),l===s.kT.EDITOR||l===s.kT.READ_ONLY)?(0,n.jsx)(T,{experience:d,visualEditorMode:i,initialLocale:t,canvasMode:l}):d?(0,n.jsx)(b,{locale:t,experience:d}):null}},53413:(e,t,a)=>{"use strict";var n=a(7620),r=a(71283),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useSyncExternalStore,o=n.useRef,l=n.useEffect,d=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,a,n,r){var c=o(null);if(null===c.current){var p={hasValue:!1,value:null};c.current=p}else p=c.current;var f=s(e,(c=d(function(){function e(e){if(!l){if(l=!0,s=e,e=n(e),void 0!==r&&p.hasValue){var t=p.value;if(r(t,e))return o=t}return o=e}if(t=o,i(s,e))return t;var a=n(e);return void 0!==r&&r(t,a)?(s=e,t):(s=e,o=a)}var s,o,l=!1,d=void 0===a?null:a;return[function(){return e(t())},null===d?void 0:function(){return e(d())}]},[t,a,n,r]))[0],c[1]);return l(function(){p.hasValue=!0,p.value=f},[f]),u(f),f}},54336:e=>{!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 0xff00ff&a.rotl(e,8)|0xff00ff00&a.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=a.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],a=0,n=0;a<e.length;a++,n+=8)t[n>>>5]|=e[a]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],a=0;a<32*e.length;a+=8)t.push(e[a>>>5]>>>24-a%32&255);return t},bytesToHex:function(e){for(var t=[],a=0;a<e.length;a++)t.push((e[a]>>>4).toString(16)),t.push((15&e[a]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],a=0;a<e.length;a+=2)t.push(parseInt(e.substr(a,2),16));return t},bytesToBase64:function(e){for(var a=[],n=0;n<e.length;n+=3)for(var r=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?a.push(t.charAt(r>>>6*(3-i)&63)):a.push("=");return a.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/ig,"");for(var a=[],n=0,r=0;n<e.length;r=++n%4)0!=r&&a.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|t.indexOf(e.charAt(n))>>>6-2*r);return a}};e.exports=a}()},60373:()=>{},67412:(e,t,a)=>{"use strict";var n,r;a.d(t,{$4:()=>s,N6:()=>d,NG:()=>l,UH:()=>o,_V:()=>u,kT:()=>n,se:()=>c,tc:()=>i});let i={Connected:"connected",DesignTokens:"registerDesignTokens",RegisteredBreakpoints:"registeredBreakpoints",MouseMove:"mouseMove",ComponentSelected:"componentSelected",RegisteredComponents:"registeredComponents",RequestComponentTreeUpdate:"requestComponentTreeUpdate",CanvasReload:"canvasReload",UpdateSelectedComponentCoordinates:"updateSelectedComponentCoordinates",CanvasScroll:"canvasScrolling",CanvasError:"canvasError",OutsideCanvasClick:"outsideCanvasClick",SDKFeatures:"sdkFeatures",RequestEntities:"REQUEST_ENTITIES",CanvasGeometryUpdated:"canvasGeometryUpdated",CanvasPan:"canvasPan"},s={RequestEditorMode:"requestEditorMode",RequestReadOnlyMode:"requestReadOnlyMode",ExperienceUpdated:"componentTreeUpdated",ComponentDraggingChanged:"componentDraggingChanged",ComponentDragCanceled:"componentDragCanceled",ComponentDragStarted:"componentDragStarted",ComponentDragEnded:"componentDragEnded",ComponentMoveEnded:"componentMoveEnded",CanvasResized:"canvasResized",SelectComponent:"selectComponent",HoverComponent:"hoverComponent",UpdatedEntity:"updatedEntity",AssembliesAdded:"assembliesAdded",AssembliesRegistered:"assembliesRegistered",MouseMove:"mouseMove",RequestedEntities:"REQUESTED_ENTITIES"},o={ComponentsRegistered:"cfComponentsRegistered",VisualEditorInitialize:"cfVisualEditorInitialize"},l={Ready:"cfVisualEditorReady"};!function(e){e.READ_ONLY="readOnlyMode",e.EDITOR="editorMode",e.NONE="none"}(n||(n={}));let d="cf-visual-editor",u={section:{id:"contentful-section",name:"Section"},container:{id:"contentful-container",name:"Container"},columns:{id:"contentful-columns",name:"Columns"}
1,singleColumn:{id:"contentful-single-column",name:"Column"},button:{id:"contentful-button",name:"Button"},heading:{id:"contentful-heading",name:"Heading"},image:{id:"contentful-image",name:"Image"},richText:{id:"contentful-richText",name:"Rich Text"},text:{id:"contentful-text",name:"Text"},divider:{id:"contentful-divider",name:"Divider"},carousel:{id:"contentful-carousel",name:"Carousel"}},c="/{locale}/{entry.fields.slug}/";!function(e){e.REQUEST_ENTITIES="REQUEST_ENTITIES",e.REQUESTED_ENTITIES="REQUESTED_ENTITIES"}(r||(r={}))},69985:(e,t,a)=>{"use strict";a.d(t,{T8:()=>ei,Qj:()=>em,Yi:()=>ep,ze:()=>ef,bI:()=>ed,MA:()=>ec,u1:()=>el});var n,r=a(1098),i=a(67412),s=a(19921),o=a(30996);let l=o.z.literal("2023-09-28");o.z.union([o.z.literal("2023-08-23"),o.z.literal("2023-07-26"),o.z.literal("2023-06-27")]);let d=o.z.enum(["Text","RichText","Number","Date","Boolean","Location","Media","Object","Hyperlink","Array","Link"]),u=o.z.string().regex(/^[a-zA-Z0-9-_]{1,32}$/,{message:"Property needs to match: /^[a-zA-Z0-9-_]{1,32}$/"}),c=o.z.union([o.z.string(),o.z.boolean(),o.z.number(),o.z.record(o.z.any(),o.z.any()),o.z.undefined()]),p=o.z.array(o.z.object({sys:o.z.object({type:o.z.literal("Link"),id:o.z.string(),linkType:o.z.literal("Entry")})})),f=o.z.string().regex(/^[a-zA-Z0-9-_]{1,21}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,21}$/"}),m=o.z.record(f,o.z.object({sys:o.z.object({type:o.z.literal("Link"),id:o.z.string(),linkType:o.z.enum(["Entry","Asset"])})})),h=o.z.record(f,o.z.object({value:c})),y=o.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,54}$/"}
1),g=o.z.string().regex(/^[a-zA-Z0-9]{1,8}$/,{message:"Does not match /^[a-zA-Z0-9]{1,8}$/"}),v=o.z.record(o.z.lazy(()=>c)),b=o.z.array(o.z.enum(["entry","asset","manual","experience"])).nonempty(),_=o.z.object({type:o.z.literal("DesignValue"),valuesByBreakpoint:v}).strict(),x=o.z.object({type:o.z.literal("BoundValue"),path:o.z.string()}).strict(),k=o.z.object({type:o.z.literal("HyperlinkValue"),linkTargetKey:o.z.string(),overrides:o.z.object({}).optional()}).strict(),w=o.z.object({type:o.z.literal("UnboundValue"),key:o.z.string()}).strict(),T=o.z.object({type:o.z.literal("ComponentValue"),key:o.z.string()}).strict(),I=o.z.object({type:o.z.literal("NoValue")}).strict(),z=o.z.discriminatedUnion("type",[_,x,w,k,T,I]),E=o.z.object({type:o.z.literal("BoundValue"),path:o.z.string()}),N=o.z.record(y,E),j=/^\*$|^[<>][0-9]+px$/,C=o.z.object({id:y,query:o.z.string().refine(e=>j.test(e)),previewSize:o.z.string().optional(),displayName:o.z.string(),displayIcon:o.z.enum(["desktop","tablet","mobile"]).optional()}).strict(),S=o.z.object({id:g.optional(),definitionId:u,prebindingId:o.z.string().optional(),displayName:o.z.string().optional(),slotId:o.z.string().optional(),variables:o.z.record(y,z),parameters:N.optional()}),O=o.z.object({displayName:o.z.string().optional(),type:d,description:o.z.string().optional(),group:o.z.string().optional(),defaultValue:c.or(z).optional(),validations:o.z.object({bindingSourceType:b.optional(),required:o.z.boolean().optional(),format:o.z.literal("URL").optional(),in:o.z.array(o.z.object({value:o.z.union([o.z.string(),o.z.number()]),displayName:o.z.string().optional()})).optional()}).optional()}),V=S.extend({children:o.z.lazy(()=>V.array())}).superRefine(({id:e,prebindingId:t,parameters:a},n)=>{t&&!a&&n.addIssue({code:o.z.ZodIssueCode.custom,message:`Found "prebindingId" but no "parameters" for node with i
1d: "${e}"`})}),A=o.z.object({breakpoints:o.z.array(C).superRefine((e,t)=>{if(!e.length||"*"!==e[0].query)return void t.addIssue({code:o.z.ZodIssueCode.custom,message:'The first breakpoint should include the following attributes: { "query": "*" }'});if(1===e.length)return;let a=e.map(e=>e.id);if(new Set(a).size!==a.length)return void t.addIssue({code:o.z.ZodIssueCode.custom,message:"Breakpoint IDs must be unique"});let n=e.slice(1),r=n[0].query.startsWith(">"),i=n[0].query.startsWith("<");r?(n.every(({query:e})=>e.startsWith(">"))||t.addIssue({code:o.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format ">[size]px" for mobile-first strategy'}),n.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,a)=>0===t||e>a[t-1])||t.addIssue({code:o.z.ZodIssueCode.custom,message:"When using a mobile-first strategy, all breakpoints must have strictly increasing pixel values"})):i?(n.every(({query:e})=>e.startsWith("<"))||t.addIssue({code:o.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format "<[size]px" for desktop-first strategy'}),n.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,a)=>0===t||e<a[t-1])||t.addIssue({code:o.z.ZodIssueCode.custom,message:"When using a desktop-first strategy, all breakpoints must have strictly decreasing pixel values"})):r||i||t.addIssue({code:o.z.ZodIssueCode.custom,message:"You may only use a mobile-first or desktop-first strategy for breakpoints using '<' or '>' queries"})}),children:o.z.array(V),schemaVersion:l}).strict(),Z=e=>o.z.record(o.z.string(),e);o.z.object({componentTree:Z(A),dataSource:Z(m),unboundValues:Z(h),usedComponents:Z(p).optional()});let B=o.z.object({parameterId:y,type:o.z.literal("ContentTypeMapping"),pathsByContentType:o.z.record(o.z.string(),o.z.object({path:o.z.string()})).superRefine((e,t)=>{let a=t.path[t.path.length-2];Object.keys(e).length>200&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`Too many paths defined for variable mapping with id "${a}", maximum allowed is 200`})})}),R=o.z.object({nodeId:y,parameterId:y,prebindingId:y}).strict(),M=o.z.object({defaultSource:o.z.strictObject({type:o.z.enum(["Entry"]),contentTypeId:o.z.string(),link:o.z.strictObject({sys:o.z.strictObject({type:o.z.literal("Link"),id:o.z.string(),linkType:o.z.enum(["Entry"])})})}).optional(),contentTypes:o.z.array(o.z.string()).min(1),passToNodes:o.z.array(R).max(1,'At most one "passToNodes" element is allowed per parameter definition.')}),D=o.z.record(y,M),$=o.z.record(y,B),P=o.z.record(o.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/),O),L=o.z.object({id:y,parameterDefinitions:D,variableMappings:$.optional(),allowedVariableOverrides:o.z.array(o.z.string()).optional()}).strict(),F=o.z.object({variableDefinitions:P,thumbnailId:o.z.enum(["columns","columnsPlusRight","imagesSquare","subtitles","rowsPlusBottom","userRectangle","textbox","monitorPlay","article","table","star","heartStraight","frameCorners","rows","dotsThreeOutline","listDashes","checkerBoard","gridFour","slideshow","diamondsFour","cards","textColumns","duplex"]).optional(),category:o.z.string().max(50,"Category must contain at most 50 characters").optional(),prebindingDefinitions:o.z.array(L).length(1).optional()}).strict().superRefine((e,t)=>{let{variableDefinitions:a,prebindingDefinitions:n}=e;if(!n||0===n.length)return;let{parameterDefinitions:r,variableMappings:i,allowedVariableOverrides:s}=n[0];U(r,t),H(i,s,t),W(i,s,a,t),q(i,r,t)});o.z.object({componentTree:Z(A),dataSource:Z(m),unboundValues:Z(h),usedComponents:Z(p).optional(),componentSettings:Z(F)}).superRefine((e,t)=>{let{componentTree:a,componentSettings:n}=e,r=Object.values(a)[0],i=Object.values(n)[0];i&&r&&K(r.children||[],i||{},t)});let U=(e,t)=>{Object.values(e).filter(e=>!(e.passToNodes&&e.passToNodes.length>0)).length>1&&t.addIssue({code:o.z.ZodIssueCode.custom,message:"Only one native parameter definition (parameter definition without passToNodes) is allowed per prebinding definition."})},H=(e,t,a)=>{let n=Object.keys(e||{}),r=new Set(t||[]),i=n.filter(e=>r.has(e));i.length>0&&a.addIssue({code:o.z.ZodIssueCode.custom,message:`Found both variable mapping and allowed override for the following keys: ${i.map(e=>`"${e}"`).join(", ")}.`})},W=(e,t,a,n)=>{let r=Object.entries(a).filter(([e,t])=>"style"!==t.group).map(([e])=>e),i=[...Object.keys(e||{}),...t||[]].filter(e=>!r.includes(e));i.length>0&&n.addIssue({code:o.z.ZodIssueCode.custom,message:`The following variable mappings or overrides are missing from the variable definitions: ${i.map(e=>`"${e}"`).join(", ")}.`})},q=(e,t,a)=>{let n=Object.keys(t||{});for(let[t,r]of Object.entries(e||{}))n.includes(r.parameterId)||a.addIssue({code:o.z.ZodIssueCode.custom,message:`The variable mapping with id "${t}" references a non-existing parameterId "${r.parameterId}".`})},K=(e,t,a)=>{if(!t.prebindingDefinitions||0===t.prebindingDefinitions.length)return;let{parameterDefinitions:n}=t.prebindingDefinitions[0],r=new Set;for(let e of Object.values(n||{}
1))e.passToNodes?.forEach(e=>r.add(e.nodeId));if(!function(e,t){let a=e=>{let n=[...e.children];for(let r of(t(e),n))a(r)};if(Array.isArray(e))for(let t of e)a(t);else a(e)}(e,e=>{e.id&&r.has(e.id)&&r.delete(e.id)}),r.size>0){let e=Array.from(r).map(e=>`"${e}"`).join(", ");a.addIssue({code:o.z.ZodIssueCode.custom,message:`The following node IDs referenced in passToNodes are not present in the component tree: ${e}.`})}},Y=o.z.object({id:u,name:o.z.string(),category:o.z.string().optional(),thumbnailUrl:o.z.string().optional(),thumbnailId:o.z.string().optional(),hyperlinkPattern:o.z.string().optional(),children:o.z.boolean().optional(),slots:o.z.record(u,o.z.object({displayName:o.z.string().optional()})).optional(),builtInStyles:o.z.array(o.z.string()).optional(),tooltip:o.z.object({imageUrl:o.z.string().optional(),description:o.z.string()}).optional(),variables:o.z.record(u,O.extend({defaultValue:c.optional()}).superRefine((e,t)=>{switch(e.type){case"Array":void 0!==e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue is not supported for "Array" type for ${t.path.join(".")}`,fatal:!1});break;case"Boolean":void 0!==e.defaultValue&&"boolean"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a boolean when type is "Boolean" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Date":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Date" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Hyperlink":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Hyperlink" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Link":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue is not supported for "Link" type for ${t.path.join(".")}`,fatal:!1});break;case"Location":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "Location" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Media":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Media" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Number":void 0!==e.defaultValue&&"number"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a number when type is "Number" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Object":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "Object" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"RichText":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "RichText" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Text":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Text" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1})}}))}).superRefine((e,t)=>{!0===e.children&&(e.variables.children||e.slots?.children)&&t.addIssue({code:o.z.ZodIssueCode.custom,message:"Cannot activate 'children: true' and name a variable or slot 'children' at the same time",fatal:!1}),e.variables&&e.slots&&Object.keys(e.variables).forEach(a=>{e.slots[a]&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`Variable and slot cannot have the same name: ${a}`,fatal:!1})})});!function(e){e.Type="type",e.Required="required",e.Unexpected="unexpected",e.Regex="regex",e.In="in",e.Size="size",e.Custom="custom"}(n||(n={}));let G=e=>
1{switch(e.code){case o.eq.invalid_type:return(e=>{let t="undefined"===e.received?n.Required:n.Type;return{details:"undefined"===e.received?`The property "${e.path.slice(-1)}" is required here`:`The type of "${e.path.slice(-1)}" is incorrect, expected type: ${e.expected}`,name:t,path:e.path,value:e.received.toString()}})(e);case o.eq.unrecognized_keys:return(e=>{let t=e.keys.map(e=>`"${e}"`).join(", ");return{details:e.keys.length>1?`The properties ${t} are not expected`:`The property ${t} is not expected`,name:n.Unexpected,path:e.path}})(e);case o.eq.invalid_enum_value:return(e=>({details:e.message||"Value must be one of expected values",name:n.In,path:e.path,value:e.received.toString(),expected:e.options}))(e);case o.eq.invalid_string:return(e=>({details:e.message||"Invalid string",name:"regex"===e.validation?n.Regex:n.Unexpected,path:e.path}))(e);case o.eq.too_small:return(e=>({details:e.message||`Size should be at least ${e.minimum}`,name:n.Size,path:e.path,min:e.minimum}))(e);case o.eq.too_big:return(e=>({details:e.message||`Size should be at most ${e.maximum}`,name:n.Size,path:e.path,max:e.maximum}))(e);case o.eq.invalid_literal:return(e=>({details:e.message||"Value must be one of expected values",name:n.In,path:e.path,value:e.received,expected:[e.expected]}))(e);default:return(e=>({details:e.message||"An unexpected error occurred",name:n.Custom,path:e.path.map(String)}))(e)}};var Q=a(54568),J=a(7620);let X={wrapComponent:!0,wrapContainer:"div"};var ee=a(15398);let et=/var\(--[\w-]+\)/,ea=e=>"undefined"!=typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e)),en=({component:e,definition:t,options:a})=>{let n=(e=>{let t=ea(e);for(let e of(t.builtInStyles||(t.builtInStyles=["cfMargin"]),t.variables||(t.variables={}),t.variables.cfVisibility=s.UC.cfVisibility,t.builtInStyles||[]))s.UC[e]&&(t.variables[e]=s.UC[e]),s.s4[e]&&(t.variables[e]=s.s4[e]);return t})((e=>{let t=ea(e);for(let e of Object.values(t.variables))e.group=e.group??"content";return t})(t));return{component:function(e,t=X){return a=>{let n=t.wrapContainer??"div",{className:r="","data-cf-node-id":i,"data-cf-node-block-id":s,"data-cf-node-block-type":o,...l}=a;return t.wrapComponent?(0,Q.jsx)(n,{"data-component-wrapper":!0,className:r,"data-cf-node-id":i,"data-cf-node-block-id":s,"data-cf-node-block-type":o,children:(0,Q.jsx)(e,{...l})}):J.createElement(e,a)}}(e,a),definition:n,options:a}},er={container:{component:r.iG,definition:r.pA,options:{enableEditorProperties:{isEditorMode:!0,isEmpty:!0,nodeBlockId:!0}}},section:{component:r.iG,definition:r.NK,options:{enableEditorProperties:{isEditorMode:!0,isEmpty:!0,nodeBlockId:!0}}},columns:{component:r.e,definition:r.Zk},singleColumn:{component:r.hl,definition:r.UI,options:{enableEditorProperties:{isEditorMode:!0,isEmpty:!0}}},button:en({component:r.$n,definition:r.Zc,options:{wrapComponent:!1}}),heading:en({component:r.DZ,definition:r.Lv,options:{wrapComponent:!1}}),image:en({component:r._V,definition:r.UH,options:{wrapComponent:!1}}),richText:en({component:r.sD,definition:r.el,options:{wrapComponent:!1}}),text:en({component:r.EY,definition:r.SQ,options:{wrapComponent:!1}}),divider:en({component:r.GB,definition:r.Vf,options:{wrapComponent:!1}}),carousel:en({component:r.FN,definition:r.Mo,options:{wrapComponent:!1}})},ei=new Map([[er.section.definition.id,er.section],[er.container.definition.id,er.container],[er.singleColumn.definition.id,er.singleColumn],[er.columns.definition.id,er.columns],[er.button.definition.id,er.button],[er.heading.definition.id,er.heading],[er.image.definition.id,er.image],[er.richText.definition.id,er.richText],[er.text.definition.id,er.text],[er.divider.definition.id,er.divider]]),es=[er.button.definition.id,er.heading.definition.id,er.image.definition.id,er.richText.definition.id,er.text.definition.id,er.divider.definition.id],eo=()=>Array.from(ei.values()).map(({definition:e})=>e).filter(e=>!(0,s.uF)(e)),el=()=>{let e=eo();(0,s._z)(i.tc.RegisteredComponents,{definitions:e})},ed=()=>{Array.from(ei.values()).map(({definition:e})=>{let t=(e=>{let t=Y.safeParse(e);return t.success?{success:!0}:{success:!1,errors:t.error.issues.map(G)}})(e);if(!t.success)throw Error(`Invalid component definition for component '${e.name}'. Failed with errors: 2${JSON.stringify(t.errors,null,2)}`)})},eu=(e,t,a)=>(e.style[a]=t,getComputedStyle(e).getPropertyValue(a)),ec=()=>{let e=eo();(0,s._z)(i.tc.Connected,{sdkVersion:ee.M,definitions:e}),(0,s._z)(i.tc.RegisteredBreakpoints,{breakpoints:s.oZ}
2),(0,s._z)(i.tc.DesignTokens,{designTokens:s.WN,resolvedCssVariables:(e=>{let{spacing:t,sizing:a,color:n,borderRadius:r,fontSize:i,lineHeight:s,letterSpacing:o,textColor:l,border:d}=e,u={},c=document.createElement("div");if(document.body.appendChild(c),[{variable:t,property:"margin"},{variable:a,property:"width"},{variable:n,property:"background-color"},{variable:r,property:"border-radius"},{variable:i,property:"font-size"},{variable:s,property:"line-height"},{variable:o,property:"letter-spacing"},{variable:l,property:"color"}].forEach(({variable:e,property:t})=>{e&&Object.assign(u,((e,t,a)=>{let n={};return Object.keys(t).forEach(r=>{let i=t[r];if(et.test(i)){let t=eu(e,i,a);n[i]=t}}),n})(c,e,t))}),d){let e={};Object.keys(d).forEach(t=>{let{width:a,style:n,color:r}=d[t];if(a&&et.test(a)){let t=eu(c,a,"border-width");e[a]=t}if(n&&et.test(n)){let t=eu(c,n,"border-style");e[n]=t}if(r&&et.test(r)){let t=eu(c,r,"border-color");e[r]=t}Object.assign(u,e)})}return document.body.removeChild(c),u})(s.WN)})},ep=(e,t)=>{if(t?.experimentalComponents?.carousel&&ei.set(i._V.carousel.id,er.carousel),t?.enabledBuiltInComponents)for(let e of es)t.enabledBuiltInComponents.includes(e)||ei.delete(e);for(let a of((0,s.qk)({__disableTextAlignmentTransform:!!t?.__disableTextAlignmentTransform,__unsafe__enableBuiltInStructureOverwrites:!!t?.__unsafe__enableBuiltInStructureOverwrites}),e)){(0,s.Lh)(a.definition.id)&&!t?.__unsafe__enableBuiltInStructureOverwrites&&s.Yz.warn(`[experience-builder
2-sdk:defineComponents] You are registering a structure component with the reserved id '${a.definition.id}'. This is not recommended and can lead to unexpected behavior. If you still want to register it, please provide the registry option '__unsafe__enableBuiltInStructureOverwrites' to fully enable built-in structure overwrites.`);let e=en(a);ei.set(e.definition.id,e)}"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(i.UH.ComponentsRegistered))},ef=e=>ei.get(e),em=({definitionId:e,component:t})=>{let a=ei.get(e);return a||((e=>{ei.set(e.definition.id,e)})({component:t,definition:(0,s.m6)(e)}),ei.get(e))}},71283:(e,t,a)=>{"use strict";e.exports=a(28190)},89852:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],a=0;a<e.length;a++)t.push(255&e.charCodeAt(a));return t},bytesToString:function(e){for(var t=[],a=0;a<e.length;a++)t.push(String.fromCharCode(e[a]));return t.join("")}}};e.exports=t},97340:(e,t,a)=>{!function(){var t=a(54336),n=a(89852).utf8,r=a(16485),i=a(89852).bin,s=function(e,a){e.constructor==String?e=a&&"binary"===a.encoding?i.stringToBytes(e):n.stringToBytes(e):r(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var o=t.bytesToWords(e),l=8*e.length,d=0x67452301,u=-0x10325477,c=-0x67452302,p=0x10325476,f=0;f<o.length;f++)o[f]=(o[f]<<8|o[f]>>>24)&0xff00ff|(o[f]<<24|o[f]>>>8)&0xff00ff00;o[l>>>5]|=128<<l%32,o[(l+64>>>9<<4)+14]=l;for(var m=s._ff,h=s._gg,y=s._hh,g=s._ii,f=0;f<o.length;f+=16){var v=d,b=u,_=c,x=p;d=m(d,u,c,p,o[f+0],7,-0x28955b88),p=m(p,d,u,c,o[f+1],12,-0x173848aa),c=m(c,p,d,u,o[f+2],17,0x242070db),u=m(u,c,p,d,o[f+3],22,-0x3e423112),d=m(d,u,c,p,o[f+4],7,-0xa83f051),p=m(p,d,u,c,o[f+5],12,0x4787c62a),c=m(c,p,d,u,o[f+6],17,-0x57cfb9ed),u=m(u,c,p,d,o[f+7],22,-0x2b96aff),d=m(d,u,c,p,o[f+8],7,0x698098d8),p=m(p,d,u,c,o[f+9],12,-0x74bb0851),c=m(c,p,d,u,o[f+10],17,-42063),u=m(u,c,p,d,o[f+11],22,-0x76a32842),d=m(d,u,c,p,o[f+12],7,0x6b901122),p=m(p,d,u,c,o[f+13],12,-0x2678e6d),c=m(c,p,d,u,o[f+14],17,-0x5986bc72),u=m(u,c,p,d,o[f+15],22,0x49b40821),d=h(d,u,c,p,o[f+1],5,-0x9e1da9e),p=h(p,d,u,c,o[f+6],9,-0x3fbf4cc0),c=h(c,p,d,u,o[f+11],14,0x265e5a51),u=h(u,c,p,d,o[f+0],20,-0x16493856),d=h(d,u,c,p,o[f+5],5,-0x29d0efa3),p=h(p,d,u,c,o[f+10],9,0x2441453),c=h(c,p,d,u,o[f+15],14,-0x275e197f),u=h(u,c,p,d,o[f+4],20,-0x182c0438),d=h(d,u,c,p,o[f+9],5,0x21e1cde6),p=h(p,d,u,c,o[f+14],9,-0x3cc8f82a),c=h(c,p,d,u,o[f+3],14,-0xb2af279),u=h(u,c,p,d,o[f+8],20,0x455a14ed),d=h(d,u,c,p,o[f+13],5,-0x561c16fb),p=h(p,d,u,c,o[f+2],9,-0x3105c08),c=h(c,p,d,u,o[f+7],14,0x676f02d9),u=h(u,c,p,d,o[f+12],20,-0x72d5b376),d=y(d,u,c,p,o[f+5],4,-378558),p=y(p,d,u,c,o[f+8],11,-0x788e097f),c=y(c,p,d,u,o[f+11],16,0x6d9d6122),u=y(u,c,p,d,o[f+14],23,-0x21ac7f4),d=y(d,u,c,p,o[f+1],4,-0x5b4115bc),p=y(p,d,u,c,o[f+4],11,0x4bdecfa9),c=y(c,p,d,u,o[f+7],16,-0x944b4a0),u=y(u,c,p,d,o[f+10],23,-0x41404390),d=y(d,u,c,p,o[f+13],4,0x289b7ec6),p=y(p,d,u,c,o[f+0],11,-0x155ed806),c=y(c,p,d,u,o[f+3],16,-0x2b10cf7b),u=y(u,c,p,d,o[f+6],23,0x4881d05),d=y(d,u,c,p,o[f+9],4,-0x262b2fc7),p=y(p,d,u,c,o[f+12],11,-0x1924661b),c=y(c,p,d,u,o[f+15],16,0x1fa27cf8),u=y(u,c,p,d,o[f+2],23,-0x3b53a99b),d=g(d,u,c,p,o[f+0],6,-0xbd6ddbc),p=g(p,d,u,c,o[f+7],10,0x432aff97),c=g(c,p,d,u,o[f+14],15,-0x546bdc59),u=g(u,c,p,d,o[f+5],21,-0x36c5fc7),d=g(d,u,c,p,o[f+12],6,0x655b59c3),p=g(p,d,u,c,o[f+3],10,-0x70f3336e),c=g(c,p,d,u,o[f+10],15,-1051523),u=g(u,c,p,d,o[f+1],21,-0x7a7ba22f),d=g(d,u,c,p,o[f+8],6,0x6fa87e4f),p=g(p,d,u,c,o[f+15],10,-0x1d31920),c=g(c,p,d,u,o[f+6],15,-0x5cfebcec),u=g(u,c,p,d,o[f+13],21,0x4e0811a1),d=g(d,u,c,p,o[f+4],6,-0x8ac817e),p=g(p,d,u,c,o[f+11],10,-0x42c50dcb),c=g(c,p,d,u,o[f+2],15,0x2ad7d2bb),u=g(u,c,p,d,o[f+9],21,-0x14792c6f),d=d+v>>>0,u=u+b>>>0,c=c+_>>>0,p=p+x>>>0}return t.endian([d,u,c,p])};s._ff=function(e,t,a,n,r,i,s){var o=e+(t&a|~t&n)+(r>>>0)+s;return(o<<i|o>>>32-i)+t},s._gg=function(e,t,a,n,r,i,s){var o=e+(t&n|a&~n)+(r>>>0)+s;return(o<<i|o>>>32-i)+t},s._hh=function(e,t,a,n,r,i,s){var o=e+(t^a^n)+(r>>>0)+s;return(o<<i|o>>>32-i)+t},s._ii=function(e,t,a,n,r,i,s){var o=e+(a^(t|~n))+(r>>>0)+s;return(o<<i|o>>>32-i)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,a){if(null==e)throw Error("Illegal argument "+e);
2var n=t.wordsToBytes(s(e,a));return a&&a.asBytes?n:a&&a.asString?i.bytesToString(n):t.bytesToHex(n)}}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.