1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="deaa9a61-860c-323a-4145-23a8b53048db")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,484580,e=>{"use strict";e.s(["DISCLAIMER_ANCHOR_ID",0,"article-disclaimer"])},87209,786031,e=>{"use strict";var t=e.i(843476),n=e.i(450818),a=e.i(343794),r=e.i(108322),l=e.i(702677);e.s(["Modal",0,({isOpen:e,onClose:i,children:s,className:o,hideCloseButton:c,sheetOnMobile:d,...u})=>((0,r.useBodyScrollLock)(e),(0,t.jsxs)(n.Dialog,{open:e,handler:i,...u,"data-mhg-modal":!0,animate:d?{mount:{opacity:1,y:0},unmount:{opacity:0,y:16}}:void 0,className:(0,a.default)("focus:outline-none","max-h-[90vh] overflow-y-auto",d&&"mhg-modal-sheet",o),children:[d&&(0,t.jsx)("div",{"aria-hidden":!0,className:"mhg-modal-sheet-handle"}),!c&&(0,t.jsx)("div",{className:"absolute right-4 top-4 z-10",children:(0,t.jsx)(n.IconButton,{variant:"text",onClick:i,className:"!size-6",children:(0,t.jsx)(l.default,{className:"flex size-6 text-gray-900"})})}),s]}))],786031),e.s([],87209)},464188,e=>{"use strict";var t=e.i(843476);e.i(782316);var n=e.i(510274);e.i(87209);var a=e.i(786031);e.i(910881);var r=e.i(943032),l=e.i(271645),i=e.i(70410),s=e.i(10358),o=e.i(347460),c=e.i(862119);e.i(843780);var d=e.i(892063),u=e.i(295750),p=e.i(418081);e.s(["ApplyV3Modal",0,({isPreview:e=!1})=>{let{isOpen:m,rewardProductId:h,mode:f,close:g}=(0,n.useApplyV3Modal)(),x=(0,u.useClientContext)(),b=(0,p.getClientTranslations)(i.ApplyStaticText,x),[y,_]=(0,l.useState)({status:"idle"}),[v,C]=(0,l.useState)(null),T=(0,l.useCallback)(async t=>{_({status:"loading"});try{let n=await c.feApiFrontClient.getApplyProduct({rewardProductId:t,isDraft:e});if(!n)return void _({status:"error"});_({status:"success",product:n})}catch{_({status:"error"})}},[e]);return((0,l.useEffect)(()=>{if(!m||null==h){_({status:"idle"}),C(null);return}C(Date.now()),T(h)},[m,h,T]),m&&null!=h&&null!=f)?(0,t.jsx)(a.Modal,{isOpen:!0,onClose:g,hideCloseButton:!0,"data-component":"apply-v3-modal",className:"md:!w-[--general-6-col-width] md:!max-w-[--general-6-col-width]",children:"loading"===y.status||"idle"===y.status?(0,t.jsx)("div",{className:"flex min-h-[50vh] items-center justify-center p-spacing/padding/section-y",children:(0,t.jsx)(r.MaterialIcon,{icon:"sync",px:48,className:"animate-spin text-text/secondary"})}):"error"===y.status?(0,t.jsxs)("div",{className:"flex min-h-[40vh] flex-col items-center justify-center gap-spacing/gap/y-sm p-spacing/padding/section-y text-center",children:[(0,t.jsx)(r.MaterialIcon,{icon:"warning",px:48,className:"text-text/secondary"}),(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 text-text/primary",children:b.applyModalErrorTitle}),(0,t.jsx)("p",{className:"mhg-alpha-typography-body-1-relaxed text-text/secondary",children:b.applyModalErrorSubtitle}),(0,t.jsx)(d.default,{styleType:"cta",onClick:()=>T(h),children:b.applyModalTryAgain})]}):null!=v?(0,t.jsx)(o.ApplyForm,{mode:f,viewMode:s.ApplyViewMode.Modal,product:y.product,initialNow:v,onClose:g}):null}):null}])},902639,e=>{"use strict";var t=e.i(843476);e.i(17068);var n=e.i(289981);let a=({children:e})=>(0,t.jsx)(n.EmailCaptureProvider,{children:e});e.i(739736);var r=e.i(598237);e.i(174345);var l=e.i(228179),i=e.i(774860),s=e.i(271645);let o=(0,s.createContext)(null);e.s(["PageDataProvider",0,({children:e,...n})=>{let[c,d]=(0,s.useState)(n),u=(0,i.useCmsClientContext)(),p=(0,s.useCallback)(e=>{d(t=>({...t,promotionCampaign:{...t.promotionCampaign,activePromotionIndex:e}}))},[d]),m=(0,s.useCallback)(e=>{d(t=>({...t,pageData:{...t.pageData,travelQuotes:{...e,providerSettings:t.pageData.travelQuotes?.providerSettings,isBackendData:!1,countries:t.pageData.travelQuotes?.countries??[],regions:t.pageData.travelQuotes?.regions??[],oldPremiumsIds:e.oldPremiumsIds??t.pageData.travelQuotes?.oldPremiumsIds??[],selectedTier:e.selectedTier??t.pageData.travelQuotes?.selectedTier}}}))},[d]),h=(0,s.useCallback)((e,t)=>{d(n=>{let a=n.pageData.moduleTravelQuotes?.[e];return a?{...n,pageData:{...n.pageData,moduleTravelQuotes:{...n.pageData.moduleTravelQuotes,[e]:{...a,...t,isBackendData:!1}}}}:n})},[d]),f=(0,s.useCallback)(e=>{d(t=>t.pageData.travelQuotes?{...t,pageData:{...t.pageData,travelQuotes:{...t.pageData.travelQuotes,selectedTier:e}}
2}:t)},[d]),g=(0,s.useCallback)(e=>{d(t=>({...t,pageData:{...t.pageData,policySummary:e}}))},[d]),x=(0,s.useMemo)(()=>({...c,setActivePromotionIndex:p,setTravelQuotes:m,setSelectedTier:f,setModuleTravelQuotes:h,setPolicySummary:g}),[c,p,m,f,h,g]),b=c.pageData.page.section,y=(0,s.useMemo)(()=>({...u,vertical:b,pageType:c.pageType}),[u,b,c.pageType]),_=(0,s.useMemo)(()=>({travelQuotesData:c.pageData.travelQuotes}),[c.pageData.travelQuotes]);return(0,t.jsx)(l.CmsClientProvider,{value:y,children:(0,t.jsx)(r.CmsCalculationDataProvider,{value:_,children:(0,t.jsx)(o.Provider,{value:x,children:(0,t.jsx)(a,{children:e})})})})},"usePageDataContext",0,()=>{let e=(0,s.useContext)(o);if(!e)throw Error("usePageData must be used within a PageDataProvider");return e}],902639)},633499,e=>{"use strict";var t=e.i(843476),n=e.i(484580);e.s(["ShortDisclaimer",0,({linkLabel:e,shortText:a})=>a||e?(0,t.jsx)("div",{className:"rounded-radius/card-inner border border-borders/default bg-fill/alternative-1 p-spacing/gap/soft-12px",children:(0,t.jsxs)("p",{className:"mhg-alpha-caption text-text/secondary-lighter",children:[e&&(0,t.jsx)("a",{href:`#${n.DISCLAIMER_ANCHOR_ID}`,onClick:e=>{e.preventDefault(),document.getElementById(n.DISCLAIMER_ANCHOR_ID)?.scrollIntoView({behavior:"smooth"})},className:"font-font-weight/table-header underline",children:e}),e&&a?": ":"",(0,t.jsx)("span",{children:a})]})}):null])},274839,713222,178680,e=>{"use strict";var t,n=e.i(523298),a=e.i(321346);(t={}).ExternalLink="external-link",t.Page="page",t.Article="article",e.s([],473574),e.s([],713222),e.i(473574);var r=n;e.s(["EnumColorSchema",()=>r.CallToActionColorSchemeEnum,"EnumCtaButtonStyleType",()=>r.CtaButtonStyleTypeEnum,"EnumCtaButtonVariant",()=>r.CtaButtonVariantEnum,"EnumCtaSectionBlockBackgroundTheme",()=>r.CtaSectionBlockBackgroundThemeEnum,"EnumCtaSectionBlockTextAlign",()=>r.CtaSectionBlockTextAlignEnum,"EnumCustomerReviewsBlockAlign",()=>r.CustomerReviewsBlockAlignEnum,"EnumCustomerReviewsBlockBgColorVariant",()=>r.CustomerReviewsBlockBgColorVariantEnum,"EnumCustomerReviewsBlockReviewSource",()=>r.CustomerReviewsBlockReviewSourceEnum,"EnumDisplayType",()=>r.SelectedProductsDisplayTypeEnum,"EnumFlexibleHeroBlockHeroType",()=>r.FlexibleHeroBlockHeroTypeEnum,"EnumFlexibleHeroBlockRewardType",()=>r.FlexibleHeroBlockRewardTypeEnum,"EnumFlexibleHeroBlockTextAlign",()=>r.FlexibleHeroBlockTextAlignEnum,"EnumFlexibleHeroBlockTheme",()=>r.FlexibleHeroBlockThemeEnum,"EnumGridModuleAlign",()=>
2r.GridModuleAlignEnum,"EnumGridModuleBackgroundColor",()=>r.GridModuleBackgroundColorEnum,"EnumGridModuleWidthMode",()=>r.GridModuleWidthModeEnum,"EnumIcon",()=>r.IconEnum,"EnumImageAlignment",()=>r.ImageAlignmentEnum,"EnumImageWidth",()=>r.ImageWidthEnum,"EnumLinkTarget",()=>r.TabTargetEnum,"EnumMiniProductHighlightBadgeColor",()=>r.MiniProductHighlightBadgeColorEnum,"EnumRelevantArticleGroupType",()=>a.EnumRelevantArticleGroupType,"EnumRelevantArticleMode",()=>r.RelevantArticleModeEnum,"EnumStandoutTextBlockType",()=>r.StandoutTextBlockTypeEnum,"EnumSummaryProductsListType",()=>r.SummaryProductsListTypeEnum,"EnumTabTarget",()=>r.TabTargetEnum,"EnumTestimonialsBackgroundColor",()=>r.TestimonialsBackgroundColorEnum,"EnumTypeReleventArticle",()=>r.PageRelevantArticleTypeEnum,"EnumVideoBlockAspectRatio",()=>r.VideoBlockAspectRatioEnum,"EnumVideoBlockEmbedType",()=>r.VideoBlockEmbedTypeEnum,"Enum_Componentpagescomponentheaderwithtabstab_Icon",()=>r.HeaderWithTabsTabIconEnum,"Page_Layout",()=>r.PageLayoutEnum],178680);var r=n;e.s(["getTabTarget",0,e=>{switch(e){case r.TabTargetEnum.SameTab:return"_self";case r.TabTargetEnum.NewTab:return"_blank";default:return}}],274839)},579672,587069,334037,617681,686672,419747,89707,e=>{"use strict";var t=e.i(843476),n=e.i(702677),a=e.i(469835),r=e.i(343794),l=e.i(271645);e.i(843780);var i=e.i(892063),s=e.i(274839),o=e.i(378058);e.i(69618);var c=e.i(440481);e.i(433793);var d=e.i(334850);e.s(["SimpleStickyFooter",0,({title:e,content:u,button:p,color_shema:m})=>{let[h,f]=(0,l.useState)(!1),[g,x]=(0,l.useState)(!1),[b,y]=(0,l.useState)(!1),_=(0,l.useRef)(null),v=(e=>{switch(e){case"GREEN":return{block_fill:"bg-highlights/green-light",title:"text-highlights/green-dark",button:"!border-campaign/green-3 !text-campaign/green-3 hover:bg-campaign/green-3 hover:!text-white"};case"BLUE":return{block_fill:"bg-highlights/blue-light",title:"text-highlights/blue-dark",button:"!border-campaign/blue-3 !text-campaign/blue-3 hover:bg-campaign/blue-3 hover:!text-white"};case"YELLOW":return{block_fill:"bg-highlights/yellow-light",title:"text-highlights/yellow-dark",button:"!border-campaign/yellow-3 !text-campaign/yellow-3 hover:bg-campaign/yellow-3 hover:!text-white"};case"RED":return{block_fill:"bg-highlights/red-light",title:"text-highlights/red-dark",button:"!border-campaign/red-3 !text-campaign/red-3 hover:bg-campaign/red-3 hover:!text-white"};case"ORANGE":return{block_fill:"bg-highlights/orange-light",title:"text-highlights/orange-dark",button:"!border-campaign/orange-3 !text-campaign/orange-3 hover:bg-campaign/orange-3 hover:!text-white"};default:return{block_fill:"bg-white",title:"text-fill/primary-dark",button:"mhg-alpha-btn-outline-primary hover:bg-fill/primary-dark hover:!text-white"}}})(m),C=(0,s.getTabTarget)(p?.target),T=p?.product?.call_to_action?.links?.[0]?.redirected_url,E=()=>{x(!0),f(!1),(0,o.pushDataLayer)({event:"navigate",component_type:"bottom-sticky",component_title:`${e}_Close`,index:"",action:"close"})},N=p?.applyClick!==void 0?p.applyClick:!!p?.product,A=()=>{N&&p?(d.sessionAttributionTracker.recordApplyClick(),(0,o.pushDataLayer)({event:"product_click_apply",component_type:"bottom-sticky",component_title:`${e}_${p?.text}`,action:"click",items:[{item_id:p?.product?.uid??"",item_name:p?.product?.product_name??"",item_brand:p?.product?.provider?.provider_name??"",index:""}]})):(0,o.pushDataLayer)({event:"navigate_click",component_type:"bottom-sticky",component_title:`${e}_${p?.text}`,action:"click",index:""})};return((0,l.useEffect)(()=>{let e,t=()=>{g||b||f((window.scrollY||document.documentElement.scrollTop)>10)};return window.addEventListener("scroll",t),(e=document.querySelector("footer"))&&(_.current=new IntersectionObserver(([e])=>{y(e.isIntersecting),e.isIntersecting&&f(!1)},{threshold:.1}),_.current.observe(e)),()=>{window.removeEventListener("scroll",t),_.current?.disconnect()}},[g,b]),g)?null:(0,t.jsx)("div",{className:(0,r.default)("fixed bottom-0 left-0 w-full z-50 duration-300 ease-out",{"translate-y-0":h,"translate-y-full":!h}),children:(0,t.jsx)("div",{className:"!p-0 overflow-hidden",children:(0,t.jsxs)("div",{className:(0,r.default)("flex h-full px-spacing/gap/x py-spacing/margin/y rounded-none flex-col md:flex-row shadow transition-all duration-300 ease-out",v.block_fill),children:[(0,t.jsx)("div",{className:"bg-transparent w-full md:max-w-[990px] mx-auto",children:(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row gap-spacing/gap/x lg:items-center lg:justify-evenly",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/x-xs",children:[(0,t.jsxs)("h3",{className:(0,r.default)("flex justify-between mhg-alpha-typography-title-1",v.title),children:[(0,t.jsx)(c.FeLink,{href:p?.url,onClick:A,target:C,className:"hover:underline",children:e}),(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:E,className:"lg:hidden","aria-label":"Close sticky footer",children:(0,t.jsx)("div",{className:"cursor-pointer",children:(0,t.jsx)("span",{children:(0,t.jsx)(n.default,{className:"size-shapes/icon-size-md text-text/primary"})})})})]}),(0,t.jsx)(a.RichText,{className:"mhg-alpha-typography-body-2 text-text/secondary",children:u})]}),(0,t.jsx)("div",{className:"flex items-center",children:p?.text&&(p?.url||T)&&(0,t.jsx)(c.FeLink,{href:p?.url||T,target:C,className:"w-full",children:(0,t.jsx)(i.default,{styleType:"primary",variant:"outline",className:(0,r.default)("w-full lg:w-auto",v.button),onClick:e=>{e.stopPropagation(),A()},children:p?.text})})})]})}),(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:E,className:"hidden lg:block cursor-pointer shrink-0 self-center","aria-label":"Close sticky footer",children:(0,t.jsx)(n.default,{className:"size-shapes/icon-size-md text-text/primary"})})]})})})}],579672),e.i(397031);var u=e.i(271159);e.s(["AboutModule",0,({items:e})=>(0,t.jsx)("div",{className:"py-spacing/padding/y",children:(0,t.jsx)("div",{className:"mx-auto max-w-[1536px] px-4 sm:px-6 md:px-8 lg:px-10",children:(0,t.jsx)("div",{className:"grid grid-cols-2 gap-spacing/gap/y",children:e?.map((e,n)=>(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y",children:[(0,t.jsx)("h3",{className:"font-bold text-text/primary text-font-size/xl leading-line-height/xl md:text-font-size/2xl md:leading-[30px] lg:text-font-size/3xl lg:leading-[34px]",children:e.title}),e?.image?.url&&(0,t.jsx)(u.CmsImage,{unoptimized:!0,src:e.image?.url,alt:e.image?.alternativeText,width:500,height:56,className:"h-full max-h-7 w-fit object-contain sm:max-h-10 md:max-h-14"}),(0,t.jsx)(a.RichText,{className:"font-medium text-text/secondary-lighter text-sm leading-5 sm:text-base sm:leading-[22px] md:text-lg md:leading-6",children:e.description})]},n))})})})],587069),e.i(413990);var p=e.i(215710),m=e.i(594999),h=e.i(789450);let f={perTrip:{_:"trip","zh-hk":"次æ
è¡"},perYear:{_:"year","zh-hk":"å¹´"}};var g=e.i(902639),x=e.i(295750),b=e.i(418081),y=e.i(565102);e.s(["BenefitComparisonTableWrapper",0,({component:e})=>{let n=(0,x.useClientContext)(),a=(0,b.getClientTranslations)(f,n),{pageData:{travelQuotes:r}}=(0,g.usePageDataContext)();if("singsaver"!==n.brand&&"moneyhero"!==n.brand)return null;let l=r?.params?.insuranceType==="ANNUAL_PLAN",i=l?r?.providerSettings?.productsAnnual??[]:r?.providerSettings?.productsSingle??[],s=y.Currency[y.MAP_BRAND_TO_COUNTRY_CODE[n.brand]],c=`${s} / ${(0,h.tr)(l?"perYear":"perTrip",a)}`,d=r?.status==="inprogress",u=new Map((r?.premiums??[]).filter(e=>!!e).map(e=>[e.brokerProductCode,e])),_=e=>{let t=u.get(e)?.offeredPremium;if(!t)return 1/0;let n=Number(t);return Number.isFinite(n)?n:1/0},v=i.map(e=>{let t=(0,m.getAttrFromProduct)("INSUREMO_PRODUCT_UID",e)?.value??void 0;if(!t)return;let n=(e=>{if(!e?.offeredPremium)return;let t=e.currencySymbol??"",n=t.includes("$")?"$":t;return`${n}${e.offeredPremium}`})(u.get(t)),a=d&&!n;return{id:t,name:e.product_name||e.title||"",price:n,period:n||a?c:void 0,isPriceLoading:a,product:e}}).filter(e=>void 0!==e).sort((e,t)=>
2{let n=_(e.id),a=_(t.id);return n===a?0:n<a?-1:1});return(0,t.jsx)(p.BenefitComparisonTable,{component:e,tiers:v,selectedTier:r?.selectedTier,pushDataLayer:o.pushDataLayer})}],334037);var _=e.i(501701);e.s(["BlueCTA",0,({title:e,subtitle:n,url:a,button:r,image:l})=>(0,t.jsxs)("div",{className:"flex flex-row flex-wrap items-center justify-between rounded-radius/table border border-solid border-colors/neutral-gray-300 p-2 bg-blue-light md:p-3",children:[l?.url?(0,t.jsx)(u.CmsImage,{unoptimized:!0,className:"mr-2",width:64,height:64,alt:l.alternativeText??"",src:l.url}):null,(0,t.jsxs)("div",{className:"flex-1 md:mr-5",children:[(0,t.jsx)("h3",{className:"md:mhg-alpha-typography-title-2 mhg-alpha-typography-bullet-1 text-fill/primary-dark",children:e}),(0,t.jsx)("div",{className:"mhg-alpha-typography-body-2 text-colors/neutral-gray-800",children:n})]}),(0,t.jsx)(i.default,{className:"mt-2 flex-[0_0_100%] md:mt-0 md:flex-[0_1_auto]",variant:"filled",color:"text-primary",onClick:()=>void(0,o.pushDataLayer)({event:"navigate",component_type:"above-footer",component_title:"Looking for other providers or plans_Compare All Plans",action:"click"}),endIcon:(0,t.jsx)(_.default,{}),size:"small",children:(0,t.jsx)(c.FeLink,{href:a??"",children:r})})]})],617681);var v=e.i(538194);e.i(713222);var C=e.i(178680);e.s(["CallToAction",0,({titleReq:e,button_text:n,alignment:l,image:p,button_target:m,button_url:h,trackedApplyClick:f,contentText:g,color_scheme:x,productCtaRedirectUrl:b,productName:y,productTitle:_,providerName:T})=>{let E=(h||b)??"",N=(0,s.getTabTarget)(m)??"_self",A=e=>{f?(d.sessionAttributionTracker.recordApplyClick(),(0,o.pushDataLayer)({event:"product_click_apply",component_type:"card",component_title:e,action:"click",items:[{item_id:_,item_name:y,item_brand:T,index:""}]})):(0,o.pushDataLayer)({event:"navigate",component_type:"card",component_title:e,action:"click"})},k={[C.EnumColorSchema.Blue]:"bg-blue-light",[C.EnumColorSchema.Green]:"bg-green-light",[C.EnumColorSchema.Orange]:"bg-orange-light",[C.EnumColorSchema.Red]:"bg-red-light",[C.EnumColorSchema.White]:"bg-white-light",[C.EnumColorSchema.Yellow]:"bg-yellow-light",[C.EnumColorSchema.Transparent]:"bg-transparent",default:"bg-white-light"}[x??"default"],w=(0,r.default)("flex items-center justify-center overflow-hidden md:w-auto md:max-w-65 md:shrink-0 md:self-stretch xl:max-w-80",k),S=(0,r.default)("flex h-full overflow-hidden rounded-radius/card border border-borders/default",{"flex-col md:flex-row-reverse":l,"flex-col md:flex-row":!l});return(0,t.jsx)(v.TheWrapper,{type:"simple",children:(0,t.jsxs)("div",{className:S,children:[p&&(0,t.jsx)("div",{className:w,children:(0,t.jsx)(c.FeLink,{href:E,target:N,className:"mx-auto",onClick:()=>A(`card image_${e}`),children:(0,t.jsx)(u.CmsImage,{unoptimized:!0,src:p.url,alt:e,height:p.height??9,width:p.width??16,className:"aspect-video size-auto max-h-full max-w-full object-contain"})})}),(0,t.jsx)("div",{className:`w-full px-spacing/padding/x py-spacing/padding/y bg-fill/card ${!p?"w-full":""}`,children:(0,t.jsxs)("div",{className:"flex flex-col items-stretch gap-spacing/gap/y-sm md:items-start",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y-xs",children:[(0,t.jsx)("h3",{className:"font-semibold text-base leading-[--md] md:text-xl md:leading-[--xl]",children:(0,t.jsx)(c.FeLink,{href:E,target:N,onClick:()=>A(`card title_${e}`),children:e})}),(0,t.jsx)(a.RichText,{className:"font-medium text-gray-600 text-sm leading-line-height/sm md:text-lg md:leading-[--lg]",children:g})]}),(0,t.jsx)("div",{children:(0,t.jsx)(c.FeLink,{href:E,target:N,children:(0,t.jsx)(i.default,{variant:"filled",styleType:f?"cta":"primary",className:"!w-full !px-4 md:!w-auto",onClick:()=>A("CTA_Apply Now"),children:n})})})]})})]})})}],686672);var T=e.i(414021);e.s(["CardListingWrapperBase",0,e=>(0,t.jsx)(T.CardListingPosition,{...e,skeletonThreshold:0,travelQuotes:void 0,travelPremiumsData:void 0})],419747);var E=e.i(943032);e.s(["Stepper",0,({steps:e,activeStep:n,customWrapperStyles:a})=>(0,t.jsx)("div",{className:a||"flex w-full items-center gap-2",children:e.map((a,i)=>{let s=i<n;return(0,t.jsxs)(l.default.Fragment,{children:[(0,t.jsx)("div",{className:(0,r.default)("flex size-8 shrink-0 items-center justify-center rounded-full bg-primary-50 md:size-10",{"bg-primary-700":i===n||s}),children:(0,t.jsx)(E.MaterialIcon,{icon:s?"done":a.icon,className:(0,r.default)("cursor-default outline-none text-white",{"!text-primary-700":i>n})})}),i<e.length-1&&(0,t.jsx)("div",{className:"h-px w-full bg-primary-300"})]},`step_${a.icon}`)})})],89707)},612753,181354,e=>{"use strict";let t={dateOfBirth:(0,e.i(427011).getDateOfBirth)(35),age:35,gender:"M",maritalStatus:"M",totalDrivingExperience:3,numberOfClaims:0},n={vehicle:{makeName:"Honda",modelCode:"Accord",modelName:"Accord",manufactureYear:"2020",trim:"EL Turbo 1.5L Gas A/T FWD Sedan 5-Seater SENSING",fairMarket:0,type:"private",variantCode:"EL Turbo 1.5L Gas A/T FWD Sedan 5-Seater SENSING"},driver:{identityType:"NRIC",dateOfBirth:t.dateOfBirth,age:t.age,gender:t.gender,maritalStatus:t.maritalStatus,totalDrivingExperience:t.totalDrivingExperience,numberOfClaims:t.numberOfClaims},ncd:30,prices:{propertyDamage:2e5,personalAccident:35e4,isActsOfNature:!0}};e.s(["bolttechDrivingExperience",0,e=>[{label:e.zero_years,value:"0"},{label:e.one_year,value:"1"},{label:e.two_years,value:"2"},{label:e.three_years,value:"3"},{label:e.four_years,value:"4"},{label:e.five_years_and_above,value:"5"}
2],"bolttechNumberOfClaims",0,[{label:"0",value:"0"},{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"}],"carUseType",0,[{label:"Private",value:"private"},{label:"Grab / TNVS",value:"commercial"},{label:"Other",value:"other"}],"defaultRequestParamsMoneyMax",0,n,"disabledButton",0,"w-full h-9 flex items-center justify-center bg-gray-400 text-white rounded-lg text-base font-semibold cursor-not-allowed","drivingExperience",0,e=>[{label:e.zero_years,value:"0"},{label:e.one_year,value:"1"},{label:e.two_years,value:"2"},{label:e.three_years_and_above,value:"3"}],"enquiryPurposeOptions",0,[{label:"How to Apply",value:"How to Apply"},{label:"Getting a quotation",value:"Getting a quotation"},{label:"Insurance Product",value:"Insurance Product"},{label:"Advise",value:"Advise"}],"genderOptions",0,e=>[{label:e.gender_male,value:"M"},{label:e.gender_female,value:"F"}],"maritalStatus",0,e=>[{label:e.marital_status_single,value:"S"},{label:e.marital_status_married,value:"M"}],"monthOptions",0,[{label:"September",value:"8"},{label:"October",value:"9"},{label:"November",value:"10"},{label:"December",value:"11"},{label:"January",value:"0"},{label:"February",value:"1"},{label:"March",value:"2"},{label:"April",value:"3"},{label:"May",value:"4"},{label:"June",value:"5"},{label:"July",value:"6"},{label:"August",value:"7"}],"nextButtonStyles",0,"w-full h-9 flex items-center gap-1 justify-center bg-[#04709B] text-white rounded-lg text-base font-semibold cursor-pointer","numberOfClaims",0,[{label:"0",value:"0"},{label:"1",value:"1"},{label:"2",value:"2"}],"occupationType",0,e=>[{label:e.indoor,value:"indoor"},{label:e.outdoor,value:"outdoor"}],"personalAccidentValues",0,[5e4,75e3,1e5,15e4,2e5,25e4,3e5,35e4,4e5,45e4,5e5,55e4,6e5,65e4,7e5,75e4,8e5,85e4,9e5,95e4,1e6],"properyDamageValues",0,[5e4,75e3,1e5,15e4,2e5,25e4,3e5,4e5,5e5,75e4,1e6],"yesNoOptions",0,e=>[{label:e.yes,value:"Y"},{label:e.no,value:"N"}]],612753);var a=e.i(843476),r=e.i(450818),l=e.i(343794),i=e.i(271645),s=e.i(943032);let o=({placeholder:e,type:t,onChange:n,onInput:o,disabled:c=!1,value:d,error:u,containerClassName:p="",labelClassName:m,validateInput:h,isBold:f=!1,backgroundColor:g=""})=>{let[x,b]=(0,i.useState)(!1),y=f?"!font-semibold":"!font-medium",_=`!py-[7px] !px-3 rounded-lg border-solid border !border-t-[#BDBDBD] border-[#BDBDBD] focus:border-solid focus:border-[1px] focus:!border-[#757575] focus:border-t-[#757575] placeholder:[#9E9E9E] placeholder:opacity-100 focus:shadow-form !text-[#212121] lg:text-xl md:text-lg !text-base ${y} ${g||""}`,v=`!py-[7px] !px-3 rounded-lg border-solid border !border-t-[#E57373] !border-[#E57373] !bg-[#FFEBEE] placeholder:opacity-100 text-[#212121] lg:text-xl md:text-lg !text-base focus:shadow-none focus:!border-[#E57373] focus:!border-t-[#E57373] ${y}`,C=(0,i.useRef)(null),T=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{C.current&&!C.current.contains(e.target)&&h&&h(d)};if(h)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d,h]),(0,i.useEffect)(()=>{d&&h&&(b(!0),h(d))},[]),(0,a.jsx)("div",{ref:T,className:`relative ${p}`,children:(0,a.jsx)(r.Input,{className:(0,l.default)("h-9 w-full",{[v]:u&&x,[_]:!u}),placeholder:e,value:d,type:t,disabled:c,ref:C,onBlur:()=>{h?.(d),b(!0)},onInput:()=>{o?.(),b(!1)},icon:void 0!==u&&(!1!==u||!1!=!!d)&&x?!1===u&&d?(0,a.jsx)(s.MaterialIcon,{icon:"check_circle",className:"cursor-default text-[#33691E]"}):(0,a.jsx)(s.MaterialIcon,{icon:"cancel",className:"cursor-default text-[#B71C1C]"}):null,labelProps:{className:m||"hidden"},containerProps:{className:"!min-h-9 !h-9"},onChange:e=>n(e.target.value)})})};e.s(["FormInput",0,({label:e,error:t,hint:n,value:r,...l})=>{let i=!!n&&!t?.length&&!r.length;return(0,a.jsxs)("div",{className:"flex grow flex-col gap-1",children:[(0,a.jsx)("p",{className:"font-medium text-gray-800 text-base",children:e}),(0,a.jsx)(o,{error:!!t,isBold:!0,backgroundColor:"bg-white",value:r,...l}),i&&(0,a.jsx)("p",{className:"font-medium text-gray-800 text-xs",children:n}),!!t&&(0,a.jsx)("p",{className:"font-normal text-red-800 text-sm",children:t})]})}],181354)},184641,e=>{"use strict";var t=e.i(843476),n=e.i(343794),a=e.i(271645),r=e.i(400226);e.i(174345);var l=e.i(774860),i=e.i(564755);e.s(["Checkbox",0,({onClick:e,label:s,size:o="lg:size-6 size-5",containerClass:c="",defaultValue:d=!1})=>{let[u,p]=(0,a.useState)(d),m=(0,l.useCmsClientContext)(),h=(0,i.getClientTranslations)(r.BaseTranslations,m);return(0,t.jsxs)("div",{className:"flex gap-2",role:"button",tabIndex:0,onClick:()=>{p(!u),e&&e()},children:[(0,t.jsx)("div",{className:(0,n.default)("flex shrink-0 cursor-pointer select-none items-center justify-center overflow-hidden rounded",o,c,u?"bg-primary-800":"border border-gray-400 bg-transparent"),children:(0,t.jsx)("span",{className:"material-symbols-outlined text-white",children:u?h.check:""})}),!!s&&(0,t.jsx)("p",{className:"font-medium text-gray-700 text-xs md:text-sm",children:s})]})}])},419301,e=>{"use strict";var t=e.i(843476),n=e.i(450818),a=e.i(343794),r=e.i(845234),l=e.i(943032),i=e.i(605122);e.s(["TabsCheckbox",0,({onChange:e,options:r,value:l,label:s,tabsHeaderClass:o="",tabClass:c="",indicatorClass:d="",labelClass:u="",tooltip:p=""})=>(0,t.jsxs)("div",{className:"relative z-1 flex flex-col gap-1",children:[!!s?.length&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("p",{className:`font-medium text-gray-800 text-base leading-4 ${u}`,children:s}),!!p&&(0,t.jsx)(i.default,{content:(0,t.jsx)("span",{className:"text-white alpha-caption",children:p}),placement:"top"})]}),(0,t.jsx)(n.Tabs,{value:l??"",children:(0,t.jsx)(n.TabsHeader,{className:`h-9 rounded-lg p-0.5 !bg-gray-200 ${o}`,indicatorProps:{className:`rounded-lg ${d}`},children:r.map(r=>(0,t.jsx)(n.Tab,{className:(0,a.default)(`w-full font-semibold text-gray-600 text-base sm:px-2 sm:py-[6px] md:px-4 md:py-[7px] ${c}`,{"!text-gray-900":r.value===l}),value:r.value,onClick:()=>e(r.value),children:r.label},r.value))})})]}),"TabsIconsCheckbox",0,({onChange:e,options:i,value:s,label:o,labelClass:c,tabsHeaderClass:d,iconClass:u,indicatorClass:p=""})=>(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[!!o&&(0,t.jsx)("p",{className:`font-medium text-gray-800 text-base leading-4 ${c}`,children:o}),(0,t.jsx)(n.Tabs,{value:s??"",children:(0,t.jsx)(n.TabsHeader,{className:`h-9 rounded-lg p-0.5 !bg-gray-200 ${d}`,indicatorProps:{id:"tabs-header-indicator",className:`rounded-lg ${p}`},children:i.map(i=>(0,t.jsxs)(n.Tab,{className:"flex items-center justify-center [&_#tabs-header-indicator]:!translate-x-0",value:i.value,onClick:()=>e(i.value),"aria-label":i.label,children:["WA"===i.value&&(0,t.jsx)(r.default,{className:(0,a.default)("size-[22px]",{"text-buttons/neutral":i.value!==s,"text-buttons/neutral-dark":i.value===s})}),"WA"!==i.value&&(0,t.jsx)(l.MaterialIcon,{icon:i.label,className:(0,a.default)(`mt-1 text-gray-900 text-2xl ${u}`,{"!text-gray-600":i.value!==s})})]},i.value))})})]})])},714261,631822,59915,e=>{"use strict";var t=e.i(843476),n=e.i(450818),a=e.i(400226);e.i(174345);var r=e.i(774860),l=e.i(564755),i=e.i(440481),s=e.i(702677);let o=function({className:e,color:n}){return(0,t.jsxs)("svg",{width:"96",height:"97",viewBox:"0 0 99 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,color:n,children:[(0,t.jsx)("mask",{id:"mask0_17146_9039",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"96",height:"97",children:(0,t.jsx)("rect",{y:"0.00170898",width:"96",height:"96",fill:"#D9D9D9"})}),(0,t.jsx)("g",{mask:"url(#mask0_17146_9039)",children:(0,t.jsx)("path",{d:"M47.8769 43.6846L79.3539 23.0769H16.4769L47.8769 43.6846ZM47.8769 47.2231L15.0769 25.5231V69.8769C15.0769 70.5949 15.3077 71.1847 15.7692 71.6462C16.2307 72.1077 16.8205 72.3385 17.5384 72.3385H38.9846L42.0616 75.4154H17.5384C16.0013 75.4154 14.6939 74.8766 13.6163 73.7991C12.5388 72.7215 12 71.4141 12 69.8769V25.5384C12 24.0013 12.5388 22.6939 13.6163 21.6163C14.6939 20.5388 16.0013 20 17.5384 20H78.3154C79.8526 20 81.16 20.5388 82.2375 21.6163C83.3151 22.6939 83.8539 24.0013 83.8539 25.5384V48.4769L80.7769 51.5539V25.5231L47.8769 47.2231Z",fill:"#004A68"})}),(0,t.jsx)("path",{d:"M74.0313 87.1388L71.5021 84.5358L80.6683 75.3696H51.6006V71.7697H80.6683L71.5021 62.6035L74.0313 60.0005L87.6005 73.5697L74.0313 87.1388Z",fill:"#004A68"})]})};var c=e.i(343794),d=e.i(944625);let u=({iconSize:e=28,className:n="",text:a,trackClick:r,createLink:l,...i})=>{let s=(0,c.default)("flex items-center justify-center gap-1 rounded-lg","outline-none bg-[#25D366] text-[#111B21]",n);return(0,t.jsx)("button",{type:"button",onClick:()=>{i.onClick(),r?.()},className:s,style:{height:"36px"},children:(0,t.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[a&&(0,t.jsx)("p",{className:"font-semibold text-base",children:a}),(0,t.jsx)(d.WhatsappIcon,{size:e,color:"#111B21"})]})})};function p({isOpen:e,onClose:c,waLink:d,pushDataLayer:p}){let m=(0,r.useCmsClientContext)(),h=(0,l.getClientTranslations)(a.BaseTranslations,m),f=()=>{p({event:"navigate",component_type:"overlay",component_title:"Confirmation Modal_WhatsApp us now",action:"click"})};return(0,t.jsxs)(n.Dialog,{className:"relative flex !w-82 items-center justify-center overflow-hidden rounded-lg p-4 md:!w-100 md:rounded-2xl lg:w-[800px] lg:rounded-3xl lg:p-6",open:e,handler:c,children:[(0,t.jsx)("div",{className:"absolute right-6 top-6",children:(0,t.jsx)(n.IconButton,{variant:"text",className:"flex size-6 items-center justify-center text-gray-900",onClick:c,children:(0,t.jsx)(s.default,{className:"flex size-6 text-gray-900"})})}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center lg:gap-6",children:[(0,t.jsxs)("div",{className:"mx-auto flex flex-col items-center gap-2 lg:gap-4 lg:pt-[13px]",children:[(0,t.jsx)("div",{className:"flex size-16 items-center justify-center rounded-full p-3 bg-fill/primary-light md:size-20 lg:size-24 lg:p-4",children:(0,t.jsx)(o,{className:"size-16 fill-fill/primary-dark md:size-20 lg:size-24"})}),(0,t.jsx)("p",{className:"w-full font-bold text-gray-900 text-xl md:text-2xl lg:w-103 lg:text-3xl",children:h.confirmation_modal_title}),(0,t.jsx)("p",{className:"w-full font-medium text-[#424242] text-sm md:text-base lg:w-100 lg:text-lg",children:h.confirmation_modal_subtitle})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-1 lg:w-100 lg:gap-2",children:[(0,t.jsx)(i.FeLink,{href:d,className:"w-full",children:(0,t.jsx)(u,{text:h.WA,onClick:f,trackClick:f,className:"h-9 w-full",type:"button",iconSize:22})}),(0,t.jsx)("p",{className:"font-medium text-gray-700 text-xs md:text-sm lg:text-base",children:h.timing})]})]})]})}e.s(["WhatsAppButton",0,u],631822),e.s(["ConfirmationModal",()=>p],714261);var m=e.i(943032);e.s(["ErrorModal",0,({isOpen:e,onClose:i,onTryAgain:o})=>{let c=(0,r.useCmsClientContext)(),d=(0,l.getClientTranslations)(a.BaseTranslations,c);return(0,t.jsxs)(n.Dialog,{open:e,handler:i,className:"rounded-3xl p-0 shadow-lg sm:p-4 md:!w-100 lg:!w-[800px]",children:[(0,t.jsx)(n.DialogHeader,{className:"flex justify-end p-0",children:(0,t.jsx)(n.IconButton,{variant:"text",className:"flex size-6 items-center justify-center text-gray-900",onClick:i,children:(0,t.jsx)(s.default,{className:"flex size-6 text-gray-900"})})}),(0,t.jsx)(n.DialogBody,{className:"px-0 sm:py-0 lg:pb-20 lg:pt-8",children:(0,t.jsxs)("div",{className:"lg:mx-auto lg:w-100",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center sm:gap-2 lg:gap-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-center rounded-full bg-red-light sm:size-22 md:size-26 lg:size-32",children:(0,t.jsx)(m.MaterialIcon,{icon:"warning",className:"text-highlights/red-dark sm:text-[50px] md:text-[62px] lg:text-[74px]"})}),(0,t.jsx)("h2",{className:"text-center font-bold text-gray-900 sm:text-xl md:text-2xl lg:text-3xl",children:d.error_modal_title}),(0,t.jsx)("p",{className:"text-center font-medium text-gray-800 sm:text-lg md:text-lg",children:d.error_modal_subtitle})]}),(0,t.jsx)("div",{className:"mt-6 sm:h-9 md:h-10 lg:h-12",children:(0,t.jsx)("button",{type:"button",className:"size-full rounded-xl font-semibold bg-primary-800 text-white sm:text-base md:text-lg lg:text-xl",onClick:o,children:d.try_again})})]})})]})}],59915)},961691,655616,e=>{"use strict";var t=e.i(843476),n=e.i(343794),a=e.i(400226),r=e.i(539931);e.i(174345);var l=e.i(774860),i=e.i(564755);e.i(45030);var s=e.i(359747),o=e.i(892063),c=e.i(612753),d=e.i(900753),u=e.i(181354),p=e.i(450818);let m=({defaultCheckedOption:e,helpText:n,options:a,onClick:r,name:l,label:i,stacked:s=!1})=>(0,t.jsxs)("div",{className:"flex flex-col",children:[!!i&&(0,t.jsx)("p",{className:"font-medium text-gray-800 text-base",children:i}),(0,t.jsx)("div",{className:s?"flex flex-col gap-2":"flex gap-4",children:a.map(n=>(0,t.jsx)(p.Radio,{className:"transition-all duration-200 text-gray-800 before:hidden checked:border-primary-800 checked:bg-primary-800 checked:before:bg-primary-800 hover:!border-border/form-hover hover:shadow-md lg:size-6",defaultChecked:n.value===e,iconProps:{className:"text-white [&>svg]:w-[10px] [&>svg]:h-[10px]"},labelProps:{className:"font-medium text-base text-gray-800"},label:n.label,name:l,onClick:()=>{r(n.value)},ripple:!1,value:n.value},n.value))}),!!n&&n]});e.s(["RadioButtonGroup",0,m],655616);var h=e.i(26667),f=e.i(383088);let g=()=>{let e=(0,l.useCmsClientContext)(),n=(0,i.getClientTranslations)(a.BaseTranslations,e),r=(0,d.useSafeCarInsuranceContext)();if(!r)return null;
2let{requestParams:{user:{setValue:s,value:o}}}=r,{email:c,firstName:p,lastName:m,phone:h}=o,f=e=>{s({...o,...e})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.FormInput,{label:n.first_name,value:p,placeholder:n.first_name,type:"text",onChange:e=>f({firstName:e})}),(0,t.jsx)(u.FormInput,{label:n.last_name,value:m,placeholder:n.last_name,type:"text",onChange:e=>f({lastName:e})}),(0,t.jsx)(u.FormInput,{label:n.email,value:c,placeholder:n.email,type:"text",onChange:e=>f({email:e})}),(0,t.jsx)(u.FormInput,{label:n.phone_number,value:h,placeholder:n.phone_number,type:"text",onChange:e=>f({phone:e})})]})};e.s(["ContactDetailsMoneymax",0,({onBackword:e,pushDataLayer:u})=>{let p=(0,l.useCmsClientContext)(),x=(0,i.getClientTranslations)(a.BaseTranslations,p),b=(0,s.useSafeSearchParams)(),{closeModal:y}=(0,h.useCarInsuranceCentralModal)("CAR_INSURANCE"),{openErrorModal:_,openConfirmationModal:v}=(0,f.useCentralModals)(),C=(0,d.useSafeCarInsuranceContext)();if(!C)return null;let{requestParams:{user:{value:T},vehicle:{value:{makeName:E,modelCode:N,trim:A,type:k,manufactureYear:w,fairMarket:S}},prices:{value:{personalAccident:I,propertyDamage:D,isActsOfNature:L}}},sendLeadToZoho:j,getCarInsuranceLayoutId:P}=C,{email:M,firstName:O,lastName:R,phone:B}=T,F=[{value:"yes",label:x.receive_updates},{value:"no",label:x.no_thank}],H=!!M?.trim()&&!!O?.trim()&&!!R?.trim()&&!!B?.trim(),U=async()=>{u({event:"form_interact",lead_form_name:"ci-rp-contact-us-form",form_type:"lead form",action:"click",component_type:"button",component_title:"Contact Me",vertical_code:"CI"});try{let e=(0,r.getUtmParams)(b),t={First_Name:O?.trim()||"-",Last_Name:R?.trim()||"-",Email:M?.trim()||"",Phone:B?.trim()||"",Product_Type:"Motor Vehicle",Vehicle_Type:k,Car_Make:E,Car_Model:N,Car_Year:w?.toString()??"",Car_Variant:A,Bodily_Injury:D?.toString()??"",Property_Damage:D?.toString()??"",Personal_Accident:I?.toString()??"",Acts_of_Nature_Coverage:void 0===L?null:L?"With AON":"Without AON",FMV:S?.toString()??"",UtmSource:e.utm_source??"",UtmMedium:e.utm_medium??"",UtmCampaign:e.utm_campaign??"",UtmContent:e.utm_content??"",UtmTerm:e.utm_term??"",Lead_Status:"New Lead",isAutoCreated:!0,Layout:{id:await P()},Selected_Product:"-"},n=await j(t);if(u({event:"form_submit",lead_form_name:"ci-rp-contact-us-form",form_type:"lead form",vertical_code:"CI"}),!n.leadId)return y(),_(),!1;y(),v()}catch(e){return u({event:"form_error",lead_form_name:"ci-rp-contact-us-form",form_type:"lead form",vertical_code:"CI",error_message:e instanceof Error?e.message:"Unknown error"}),y(),_(),!1}};return(0,t.jsxs)("div",{className:"mt-4 flex w-full flex-col gap-4",children:[(0,t.jsx)(g,{}),(0,t.jsx)(m,{defaultCheckedOption:"yes",options:F,onClick:()=>{},label:x.offence_free||"",name:"offenceFree",stacked:!0}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(o.default,{styleType:"neutral-light-and-blue",variant:"outline",onClick:e,className:"h-9 flex-1 text-base",children:x.back}),(0,t.jsx)(o.default,{className:(0,n.default)(H?c.nextButtonStyles:c.disabledButton,"flex-1"),disabled:!H,onClick:U,children:x.get_result})]})]})},"ContactFormMoneymax",0,g],961691)},935275,e=>{"use strict";var t=e.i(843476),n=e.i(343794),a=e.i(450818),r=e.i(271645),l=e.i(174080),i=e.i(400226);e.i(174345);var s=e.i(774860),o=e.i(564755),c=e.i(943032);let d=({prefixIcon:e,options:d,value:u,placeholder:p,border:m,onChange:h,search:f,disabled:g=!1,isLoading:x=!1,containerClassName:b,openedContainerClassName:y,labelClassName:_,showBodyShadow:v=!1,showDropdownArrow:C=!0,dropdownClassName:T="",disabledClassName:E="",popoverClassName:N=""})=>{let[A,k]=(0,r.useState)(!1),[w,S]=(0,r.useState)(d),[I,D]=(0,r.useState)(""),[L,j]=(0,r.useState)(""),P=(0,r.useRef)(null),M=(0,r.useRef)(null),O=(0,r.useCallback)(()=>{let e=d.filter(e=>e.value===u)[0];e&&D(e.label)},[u]),R=(0,r.useCallback)(()=>{A&&M.current&&setTimeout(()=>{M.current?.focus()},0)},[A]),B=P.current?.clientWidth??200;(0,r.useEffect)(()=>{O()},[O]),(0,r.useEffect)(()=>{!u&&I&&D(void 0)},[u,I,D]);let F=(0,s.useCmsClientContext)(),H=(0,o.getClientTranslations)(i.BaseTranslations,F).policySearch_select_searchField;return(0,r.useEffect)(()=>{j(""),S(d)},[d]),(0,r.useEffect)(()=>{R()},[R]),(0,t.jsx)(a.Popover,{open:A,handler:()=>{g||x||k(e=>!e)},placement:"bottom-start",children:(0,t.jsxs)(t.Fragment,{children:[A&&v&&(0,l.createPortal)((0,t.jsx)("div",{className:"fixed top-0 size-full bg-black/30"}),document.body),(0,t.jsx)(a.PopoverHandler,{ref:P,children:(0,t.jsx)("div",{className:"size-full",children:(0,t.jsxs)("button",{className:(0,n.default)("flex size-full flex-row items-center justify-between overflow-hidden rounded-3xl border border-gray-400 font-medium bg-white sm:px-4 md:px-2 lg:px-4",{"!border-transparent":!m,[`${E||"!cursor-default pointer-events-none !bg-gray-500"}`]:g,"!cursor-default pointer-events-none":x},{[`${b}`]:!!b,[`${y}`]:!!y&&A}),type:"button",children:[(0,t.jsxs)("div",{className:(0,n.default)("flex w-full items-center gap-2 text-start",{"!w-[90%]":C}),children:[e,(0,t.jsx)("div",{className:(0,n.default)("w-full font-medium text-gray-900 sm:text-base md:text-sm lg:text-lg",{[_??""]:!!_,"!text-gray-400":!!(!I&&p)}),children:I||p})]}),C&&(0,t.jsx)(c.MaterialIcon,{icon:"expand_more",className:(0,n.default)(`text-gray-600 text-xl ${T}`,{"rotate-180":A})})]})})}),(0,t.jsx)(a.PopoverContent,{className:(0,n.default)("z-[var(--z-index-dropdown)] overflow-hidden rounded-lg border border-gray-600 p-0 shadow-xl md:rounded-xl",{[`${N}`]:!!N}),children:(0,t.jsxs)("div",{className:"flex max-h-96 w-full flex-col",style:{width:B},children:[f&&(0,t.jsxs)("div",{className:"flex items-center rounded-none border-b border-b-gray-300 md:gap-1 md:px-2 lg:gap-2 lg:px-4",children:[(0,t.jsx)("div",{className:"size-6 flex-none",children:(0,t.jsx)(c.MaterialIcon,{icon:"search",className:"text-gray-600"})}),(0,t.jsx)("input",{className:"w-full border-none py-2 pl-0 font-medium outline-none text-gray-600 text-base",ref:M,placeholder:H,value:L,onChange:e=>{let t=e.target.value,n=d.filter(e=>e.value.toLowerCase().includes(t.toLowerCase())||e.label.toLowerCase().includes(t.toLowerCase()));j(t),S(n)}})]}),(0,t.jsx)("div",{className:"flex max-h-70 flex-col overflow-y-auto px-4 py-2",children:w.map((e,a)=>(0,t.jsxs)("div",{onClick:()=>{D(e.label),h?.(e.value),k(!1)},role:"button",tabIndex:a,className:(0,n.default)("flex cursor-pointer items-center justify-between rounded-lg hover:bg-gray-200 sm:p-3 md:p-2 lg:p-3",{"bg-gray-200":e.label===I}),"data-value":e.value,children:[(0,t.jsx)("p",{className:"font-medium text-gray-900 text-lg",children:e.label}),e.label===I&&(0,t.jsx)("div",{className:"size-6",children:(0,t.jsx)(c.MaterialIcon,{icon:"check",className:"text-primary-400"})})]},`${e.value}_${a}`))})]})})]})})};e.s(["FormSelect",0,({options:e,value:a,label:r,onChange:l,disabled:i=!1,placeholder:s="",error:o,search:c=!1})=>(0,t.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[!!r&&(0,t.jsx)("p",{className:"font-medium text-gray-800 text-base leading-4",children:r}),(0,t.jsx)("div",{className:"h-9 w-full",children:(0,t.jsx)(d,{search:c,options:e,border:!0,value:a,onChange:l,disabled:i,containerClassName:(0,n.default)("!rounded-lg sm:!px-2.5",{"!border-[#
2E57373]":!!o}),dropdownClassName:i?"!text-buttons/disable":"!text-gray-900",placeholder:s,labelClassName:"!text-base !font-semibold truncate max-w-[90%]",disabledClassName:"!cursor-default pointer-events-none !bg-fill/alternative-1"},`${JSON.stringify(e)}-${a}`)}),!!o&&(0,t.jsx)("p",{className:"font-normal text-red-800 text-sm",children:o})]})],935275)},115815,603938,592485,579378,e=>{"use strict";var t=e.i(843476),n=e.i(400226);e.i(174345);var a=e.i(774860),r=e.i(564755),l=e.i(892063),i=e.i(943032),s=e.i(612753),o=e.i(900753),c=e.i(935275),d=e.i(184641),u=e.i(419301);let p=({title:e,subTitle:n,stepNumber:a})=>(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-gray-900 alpha-display-1",children:[a,". ",e]}),(0,t.jsx)("span",{className:"text-center text-gray-800 alpha-body-1",children:n})]});e.s(["StepHeader",()=>p],603938),e.s(["VehicleDetailsMoneymax",0,({onNext:e,pushDataLayer:m})=>{let h=(0,a.useCmsClientContext)(),f=(0,r.getClientTranslations)(n.BaseTranslations,h),g=(0,o.useSafeCarInsuranceContext)();if(!g)return null;let{requestParams:{vehicle:{value:x,setValue:b}},data:{vehicleMakers:y,vehicleModels:_,vehicleTrims:v,isTrimsLoading:C,isVehiclesDataLoading:T,yearsOptions:E}}=g,{makeName:N,manufactureYear:A,modelCode:k,trim:w,type:S}=x,I=e=>{b({...x,...e})},D=(e,t)=>{m({event:"form_interact",lead_form_name:"ci-policy-search-module-car-info",action:"select",component_type:"dropdown",component_title:e,vertical_code:"CI",form_field_value:t})},L=[{options:y.value,label:f.brand,value:N,onChange:e=>{D("Vehicle make",e),I({makeName:e})}},{options:_.value,disabled:T,label:f.model,value:k,onChange:e=>{let t=_.value.find(t=>t.value===e)?.label.trim()??"";D("Vehicle model",e),I({modelCode:e,modelName:t})}},{options:E.value,label:f.year_of_manufacture,value:A.toString(),onChange:e=>{D("Year of manufacture",e),I({manufactureYear:e})}},{options:v.value,disabled:T||C,label:f.variant,value:w,onChange:e=>I({trim:e})}];return(0,t.jsxs)("div",{className:"mt-4 flex w-full flex-col gap-4",children:[(0,t.jsx)(p,{title:f.vehicle_details,subTitle:f.vehicle_details_subtitle,stepNumber:1}),L.map(e=>(0,t.jsx)(c.FormSelect,{...e},e.label)),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-base mb-1 font-medium text-gray-700 text-base",children:(0,t.jsx)("span",{className:"flex items-center gap-1",children:f.primary_use_car})}),(0,t.jsx)(u.TabsCheckbox,{options:s.carUseType,onChange:e=>{I({type:e})},value:S})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(d.Checkbox,{containerClass:"!size-5"}),(0,t.jsx)("span",{className:"font-medium text-gray-900 text-sm",children:f.interested_ctpl})]}),(0,t.jsxs)(l.default,{className:s.nextButtonStyles,onClick:e,children:[f.next,(0,t.jsx)(i.MaterialIcon,{icon:"arrow_right_alt",className:"text-white text-[22px]"})]})]})}],115815);var m=e.i(440481),h=e.i(631822);e.s(["SelectContactMethod",0,({contactMethod:e,createWALink:l,stepNumber:s,contactInfo:o,pushDataLayer:c})=>{let d=(0,a.useCmsClientContext)(),u=(0,r.getClientTranslations)(n.BaseTranslations,d),p=o.phone.number,f=o.email.email,g=()=>{c({event:"navigate",component_type:"overlay",component_title:`Lead Collection Form_Step${s}_Call us now`,action:"click"})},x=()=>{c({event:"navigate",component_type:"overlay",component_title:`Lead Collection Form_Step${s}_Email us now`,action:"click"})},b=()=>{c({event:"navigate",component_type:"cta-button",component_title:`Lead Collection Form_Step${s}_WhatsApp us now`,action:"click",index:""})},y=function(e){switch(e){case"Email":return{content:(0,t.jsxs)("div",{role:"button",tabIndex:0,className:"flex items-center justify-center gap-1 outline-none",onClick:x,children:[(0,t.jsx)("p",{className:"font-semibold text-white text-base",children:u.email_now}),(0,t.jsx)(i.MaterialIcon,{icon:"mail",className:"text-white text-[22px]"})]}),href:`mailto:${f}`,className:"w-full flex items-center justify-center h-9 bg-[#5D8433] text-white rounded-lg"};case"WA":return{content:(0,t.jsx)(h.WhatsAppButton,{text:u.WA,onClick:()=>window.open(l(),"_blank"),trackClick:b,className:"h-9 w-full",type:"button",iconSize:22}),href:l()};default:return{content:(0,t.jsxs)("div",{role:"button",tabIndex:0,className:"flex items-center justify-center gap-1 outline-none",onClick:g,children:[(0,t.jsx)(i.MaterialIcon,{icon:"call",className:"text-white text-[22px]"}),(0,t.jsx)("p",{className:"font-semibold text-white text-base",children:u.phone_now})]}),href:`tel:${p}`,className:"w-full flex items-center justify-center h-9 bg-[#5D8433] text-white rounded-lg"}}}(e);return(0,t.jsxs)("div",{className:"mt-2 flex w-full flex-col items-center justify-center gap-1 lg:gap-2",children:["WA"===e?y.content:(0,t.jsx)(m.FeLink,{href:y.href,className:y.className,children:y.content}),(0,t.jsx)("p",{className:"text-center font-medium text-gray-700 text-xs md:text-sm lg:text-base",children:u.timing})]})}],592485);var f=e.i(181354);e.s(["ContactDetailsSingsaver",0,()=>{let e=(0,a.useCmsClientContext)(),l=(0,r.getClientTranslations)(n.BaseTranslations,e),i=(0,o.useSafeCarInsuranceContext)();if(!i)return null;
2let{requestParams:{user:{setValue:u,value:m},vehicle:{value:h,setValue:g}}}=i,{firstName:x,lastName:b}=m,{enquiryPurpose:y,insuranceExpiryDate:_,noInsurance:v}=h,C=e=>{u({...m,...e})},T=e=>{g({...h,...e})};return(0,t.jsxs)("div",{className:"mt-4 flex w-full flex-col gap-4",children:[(0,t.jsx)(p,{title:l.vehicle_details,subTitle:l.vehicle_details_subtitle,stepNumber:3}),(0,t.jsx)(c.FormSelect,{options:s.enquiryPurposeOptions,value:y??"How to Apply",onChange:e=>T({enquiryPurpose:e}),label:l.enquiry_purpose,placeholder:l.select_enquiry_purpose}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(d.Checkbox,{onClick:()=>T({noInsurance:!v}),defaultValue:v,containerClass:"!size-5"}),(0,t.jsx)("span",{className:"font-medium text-gray-900 text-sm",children:l.i_dont_have_insurance})]}),!v&&(0,t.jsx)(c.FormSelect,{options:s.monthOptions,value:_??new Date().getMonth().toString(),onChange:e=>T({insuranceExpiryDate:e}),label:l.car_insurance_expiry,placeholder:l.select_month}),(0,t.jsx)(f.FormInput,{label:l.first_name,value:x,placeholder:l.first_name,type:"text",onChange:e=>C({firstName:e})}),(0,t.jsx)(f.FormInput,{label:l.last_name,value:b,placeholder:l.last_name,type:"text",onChange:e=>C({lastName:e})})]})}],579378)},565372,e=>{"use strict";var t=e.i(260537),n=e.i(427011);({dateOfBirth:(0,n.getDateOfBirth)(34),...(0,t.generateCompareQuoteStaticFields)()});let a={dateOfBirth:(0,n.getDateOfBirth)(35),age:35,gender:"M",maritalStatus:"M",totalDrivingExperience:3,numberOfClaims:0},r={dateOfBirth:(0,n.getDateOfBirth)(35),age:35,gender:"M",maritalStatus:"M",totalDrivingExperience:3,numberOfClaims:0},l={makeName:"",modelCode:"",modelName:"",manufactureYear:"",trim:"",fairMarket:0,type:"private"},i=({useBolttechData:e=!1})=>({driver:(({useBolttechData:e=!1})=>({age:35,dateOfBirth:(0,n.getDateOfBirth)(35),gender:"M",maritalStatus:"M",numberOfClaims:0,occupationType:"indoor",totalDrivingExperience:e?5:10}))({useBolttechData:e}),vehicle:(({useBolttechData:e=!1})=>({makeName:e?"BT-HOND":"HONDA",modelCode:e?"Vezel":"MHG.646",manufactureYear:2021,modelName:"Vezel 1.5",trim:e?"BT-HOND-0130":"",fairMarket:0,type:""}))({useBolttechData:e}),ncd:50,offenceFree:"Y",offPeakVehicle:"Y"}),s={driver:a,vehicle:{makeName:"HONDA",modelCode:"1405659",modelName:"Jazz",manufactureYear:2022,trim:"",fairMarket:0,type:""},ncd:60},o={driver:r,vehicle:l,ncd:30,prices:{propertyDamage:2e5,personalAccident:35e4,isActsOfNature:!0}},c=[{value:"2026",label:"2026"},{value:"2025",label:"2025"},{value:"2024",label:"2024"},{value:"2023",label:"2023"},{value:"2022",label:"2022"},{value:"2021",label:"2021"},{value:"2020",label:"2020"},{value:"2019",label:"2019"},{value:"2018",label:"2018"},{value:"2017",label:"2017"},{value:"2016",label:"2016"},{value:"2015",label:"2015"},{value:"2014",label:"2014"},{value:"2013",label:"2013"},{value:"2012",label:"2012"},{value:"2011",label:"2011"},{value:"2010",label:"2010"},{value:"2009",label:"2009"},{value:"2008",label:"2008"},{value:"2007",label:"2007"},{value:"2006",label:"2006"},{value:"2005",label:"2005"},{value:"2004",label:"2004"}];l.fairMarket,r.dateOfBirth,r.age,r.gender,r.maritalStatus,r.totalDrivingExperience,r.numberOfClaims,o.ncd,e.s(["config",0,({useBolttechData:e}={useBolttechData:!1})=>({singsaver:{defaultContextState:i({useBolttechData:e}),ncdOptions:[{label:"0%",value:"0"},{label:"10%",value:"10"},{label:"20%",value:"20"},{label:"30%",value:"30"},{label:"40%",value:"40"},{label:"50%",value:"50"}],driverAgeOptions:Array.from({length:58},(e,t)=>t+18).map(e=>({label:`${e} years`,value:String(e)})),yearsOptions:c},moneymax:{defaultContextState:o,ncdOptions:[{label:"0%",value:"0"},{label:"10%",value:"10"},{label:"20%",value:"20"},{label:"30%",value:"30"},{label:"40%",value:"40"},{label:"50%",value:"50"}],driverAgeOptions:Array.from({length:58},(e,t)=>t+18).map(e=>({label:`${e} years`,value:String(e)})),yearsOptions:c},moneyhero:{defaultContextState:s,ncdOptions:[{label:"0%",value:"0"},{label:"10%",value:"10"},{label:"20%",value:"20"},{label:"30%",value:"30"},{label:"40%",value:"40"},{label:"50%",value:"50"},{label:"60%",value:"60"}],driverAgeOptions:Array.from({length:58},(e,t)=>t+18).map(e=>({label:`${e} å¹´`,value:String(e)})),yearsOptions:c},money101:{defaultContextState:i({useBolttechData:e}
2),ncdOptions:[{label:"0%",value:"0"},{label:"10%",value:"10"},{label:"20%",value:"20"},{label:"30%",value:"30"},{label:"40%",value:"40"},{label:"50%",value:"50"}],driverAgeOptions:Array.from({length:58},(e,t)=>t+18).map(e=>({label:`${e} years`,value:String(e)})),yearsOptions:c}})])},742798,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(400226),r=e.i(774860),l=e.i(564755),i=e.i(440481),s=e.i(565372),o=e.i(612753),c=e.i(464366),d=e.i(935275),u=e.i(655616),p=e.i(419301);e.i(17291);var m=e.i(110243);let h={title:{_:"Edit quote details","zh-hk":"ç·¨è¼¯å ±å¹è©³æ
"},subtitle:{_:"Please enter your personal details to get the best deal.","zh-hk":"è«è¼¸å
¥æ¨çåäººè³æä»¥ç²åæä½³åªæ ã"},carDetailsSubtitle:{_:"Please enter your personal details to get the best deal.","zh-hk":"è«è¼¸å
¥æ¨çè»è¼è©³ç´°è³æã","en-ph":"Please enter the relevant vehicle and personal details to get the best deal."},updateButton:{_:"Update Quote","zh-hk":"æ´æ°å ±å¹"},form:{gender:{label:{_:"Gender","zh-hk":"æ§å¥"},values:{_:[{label:"Male",value:"M"},{label:"Female",value:"F"}],"zh-hk":[{label:"ç·",value:"M"},{label:"女",value:"F"}]}},maritalStatus:{label:{_:"Marital Status","zh-hk":"å©å§»çæ³"},values:{_:[{label:"Single",value:"S"},{label:"Married",value:"M"}],"zh-hk":[{label:"å®èº«",value:"S"},{label:"å·²å©",value:"M"}]}},occupationType:{label:{_:"Occupation Type","zh-hk":"è·æ¥é¡å"},values:{_:[{label:"Indoor",value:"indoor"},{label:"Outdoor",value:"outdoor"}],"zh-hk":[{label:"室å
§",value:"indoor"},{label:"室å¤",value:"outdoor"}]}},offPeakVehicle:{label:{_:"Off-peak Vehicle","zh-hk":"éå°å³°ææ®µè»è¼"},values:{_:[{label:"Yes",value:"Y"},{label:"No",value:"N"}],"zh-hk":[{label:"æ¯",value:"Y"},{label:"å¦",value:"N"}]}},age:{label:{_:"Age","zh-hk":"年齡"}},drivingExperience:{label:{_:"Driving Experience","zh-hk":"é§é§ç¶é©"},values:{_:[{label:"0 years",value:"0"},{label:"1 year",value:"1"},{label:"2 years",value:"2"},{label:"3 Years and Above",value:"3"}],"zh-hk":[{label:"0 å¹´",value:"0"},{label:"1 å¹´",value:"1"},{label:"2 å¹´",value:"2"},{label:"3 å¹´å以ä¸",value:"3"}]},bolttechValues:{_:[{label:"0 years",value:"0"},{label:"1 year",value:"1"},{label:"2 years",value:"2"},{label:"3 years",value:"3"},{label:"4 years",value:"4"},{label:"5 years and above",value:"5"}],"zh-hk":[{label:"0 å¹´",value:"0"},{label:"1 å¹´",value:"1"},{label:"2 å¹´",value:"2"},{label:"3 å¹´",value:"3"},{label:"4 å¹´",value:"4"},{label:"5 å¹´å以ä¸",value:"5"}]}},ncd:{_:"NCD","zh-hk":"ç¡ç´¢åææ£"},offenceFree:{label:{_:"Do you have any demerit points?","zh-hk":"æ¨æ¯å¦æè³æ ¼ç²å¾ç¡éè¦ææ£ï¼"},values:{_:[{label:"No",value:"Y"},{label:"Yes",value:"N"}],"zh-hk":[{label:"æ¯",value:"Y"},{label:"å¦",value:"N"}]},helpText:{_:"Find out if you have a Certificate of Merit (COM).","zh-hk":"æ¥çæ¨æ¯å¦ææ¦®è½èæ¸ï¼COMï¼ã"}},noc:{label:{_:"Number of claims in last 3 years","zh-hk":"éå»3å¹´å
§ççè³ æ¬¡æ¸"},values:{_:[{label:"0",value:"0"},{label:"1",value:"1"},{label:"2",value:"2"}],"zh-hk":[{label:"0",value:"0"},{label:"1",value:"1"},{label:"2",value:"2"}]},bolttechValues:{_:[{label:"0",value:"0"},{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"}],"zh-hk":[{label:"0",value:"0"},{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"}]}}},brand:{_:"Vehicle make","zh-hk":"æ±½è»åç"},model:{_:"Vehicle model","zh-hk":"è»å"},year:{_:"Year of manufacture","zh-hk":"製é 年份"},variant:{_:"Variant","en-ph":"Variant"}},f={title:{_:"Select insurance providers","zh-hk":"鏿ä¿éªæä¾å"},reset:{_:"Reset Filters","zh-hk":"éè¨ç¯©é¸æ¢ä»¶"},submit:{_:"Show plans","zh-hk":"顯示è¨å"}};e.s(["PersonalDetailsForm",0,({useBolttechData:e,pushDataLayer:f})=>{let g=(0,r.useCmsClientContext)(),x=(0,l.getClientTranslations)(a.BaseTranslations,g),{lang:b,brand:y}=g,_=function(e,t){let n=(0,m.localeSpecific)({...h.title}).get(e),a=(0,m.localeSpecific)({...h.subtitle}).get(e),r=(0,m.localeSpecific)({...h.carDetailsSubtitle}).get(e),l=(0,m.localeSpecific)({...h.updateButton}).get(e),i=(0,m.localeSpecific)({...h.form.gender.label}).get(e),o=(0,m.localeSpecific)({...h.form.gender.values}).get(e),c=(0,m.localeSpecific)({...h.form.maritalStatus.label}).get(e),d=(0,m.localeSpecific)({...h.form.maritalStatus.values}).get(e),u=(0,m.localeSpecific)({...h.form.occupationType.label}).get(e),p=(0,m.localeSpecific)({...h.form.occupationType.values}).get(e),f=(0,m.localeSpecific)({...h.form.offPeakVehicle.label}).get(e),g=(0,m.localeSpecific)({...h.form.offPeakVehicle.values}).get(e),x=(0,m.localeSpecific)({...h.form.age.label}).get(e),b=(0,m.localeSpecific)({...h.form.drivingExperience.label}).get(e),y=(0,m.localeSpecific)({...h.form.ncd}).get(e),_=(0,m.localeSpecific)({...h.form.offenceFree.label}).get(e),v=(0,m.localeSpecific)({...h.form.noc.label}).get(e),{driverAgeOptions:C}=(0,s.config)()[t],T=(0,m.localeSpecific)({...h.form.drivingExperience.values}).get(e),E=(0,m.localeSpecific)({...h.form.drivingExperience.bolttechValues}).get(e),N=(0,m.localeSpecific)({...h.form.offenceFree.values}).get(e),A=(0,m.localeSpecific)({...h.form.noc.values}).get(e),k=(0,m.localeSpecific)({...h.form.noc.bolttechValues}).get(e),w=(0,m.localeSpecific)({...h.brand}).get(e),S=(0,m.localeSpecific)({...h.model}).get(e),I=(0,m.localeSpecific)({...h.year}).get(e);return{sidebar:{title:n,subtitle:a,carDetailsSubtitle:r,buttonText:l},form:{genderLabel:i,genderOptions:o,maritalStatusLabel:c,maritalStatusOptions:d,occupationTypeLabel:u,offPeakVehicleLabel:f,ageLabel:x,drivingExperienceLabel:b,ncdLabel:y,offenceFreeLabel:_,nocLabel:v,occupationTypeOptions:p,offPeakVehicleOptions:g,driverAgeOptions:C,drivingExperienceOptions:T,bolttechDrivingExperienceOptions:E,offfenceFreeOptions:N,nocOptions:A,bolttechNocOptions:k,brandLabel:w,modelLabel:S,yearLabel:I,variantLabel:(0,m.localeSpecific)({...h.variant}).get(e),offenceFreeHelpText:(0,m.localeSpecific)({...h.form.offenceFree.helpText}).get(e)}}}(b,y),v=(0,o.genderOptions)(x),C=(0,o.maritalStatus)(x),T=(0,o.occupationType)(x),E=(0,o.yesNoOptions)(x),N=(0,o.drivingExperience)(x),A=(0,o.bolttechDrivingExperience)(x),{requestParam
2s:{driver:k,ncd:w,offPeakVehicle:S,offenceFree:I}}=(0,c.useCarInsuranceContext)(),{ncdOptions:D}=(0,s.config)()[y],L=(0,n.useMemo)(()=>"singsaver"===y&&e&&w.value>=30,[y,e,w.value]);return(0,n.useEffect)(()=>{L?I.value||I.setValue("Y"):I.setValue("")},[I,L]),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(p.TabsCheckbox,{options:v,onChange:e=>{f({event:"form_interact",component_type:"tabs_checkbox",component_title:"Gender",action:"change",form_field_value:e,lead_form_name:"ci-policy-search-module-driver-info",vertical_code:"CI"}),k.setValue({gender:e})},value:k.value.gender,label:x.gender}),(0,t.jsx)(p.TabsCheckbox,{options:C,onChange:e=>{f({event:"form_interact",component_type:"button",component_title:"Marital Status",action:"change",form_field_value:"S"===e?"Single":"Married",lead_form_name:"ci-policy-search-module-driver-info",vertical_code:"CI"}),k.setValue({maritalStatus:e})},value:k.value?.maritalStatus,label:x.marital_status}),e&&(0,t.jsxs)(t.Fragment,{children:[T&&(0,t.jsx)(p.TabsCheckbox,{options:T,onChange:e=>{k.setValue({occupationType:e})},value:k.value?.occupationType,label:x.occupation_type||""}),E&&(0,t.jsx)(p.TabsCheckbox,{options:E,onChange:e=>{S.setValue(e)},value:S.value,label:x.off_peak_vehicle||""})]}),(0,t.jsx)(d.FormSelect,{options:_.form.driverAgeOptions,label:x.age,value:k.value.age?.toString(),onChange:e=>{f({event:"form_interact",component_type:"dropdown",component_title:"Age",action:"change",form_field_value:e,lead_form_name:"ci-policy-search-module-driver-info",vertical_code:"CI"}),k.setValue({age:Number(e)})}}),(0,t.jsx)(d.FormSelect,{options:e&&A?A:N,label:x.driving_experience,value:k.value.totalDrivingExperience?.toString(),onChange:e=>{f({event:"form_interact",component_type:"dropdown",component_title:"Driving Experience",action:"change",form_field_value:e,lead_form_name:"ci-policy-search-module-driver-info",vertical_code:"CI"}),k.setValue({totalDrivingExperience:Number(e)})}}),(0,t.jsx)(d.FormSelect,{options:D,label:x.ncd,value:w.value?.toString(),onChange:e=>{f({event:"form_interact",component_type:"dropdown",component_title:"NCD",action:"change",form_field_value:e,lead_form_name:"ci-policy-search-module-driver-info",vertical_code:"CI"}),w.setValue(Number(e))}}),L&&(0,t.jsx)(u.RadioButtonGroup,{defaultCheckedOption:I.value||"Y",helpText:(0,t.jsx)(i.FeLink,{className:"font-medium text-primary-800 text-base",href:"https://eservices1.police.gov.sg/phub/eservices/landingpage/certificate-of-merit",target:"_blank",rel:"noreferrer",children:x.helpText}),options:_.form.offfenceFreeOptions,onClick:e=>{I.setValue(e)},label:x.offence_free||"",name:"offenceFree"}),(0,t.jsx)(d.FormSelect,{value:k.value.numberOfClaims?.toString(),options:e&&o.bolttechNumberOfClaims?o.bolttechNumberOfClaims:o.numberOfClaims,label:x.number_of_claims,onChange:e=>{f({event:"form_interact",component_type:"dropdown",component_title:"Number of claims in the last 3 years",action:"change",form_field_value:e,lead_form_name:"ci-policy-search-module-driver-info",vertical_code:"CI"}),k.setValue({numberOfClaims:Number(e)})}})]})}],742798)},757264,512629,85277,661,e=>{"use strict";var t=e.i(843476),n=e.i(414021),a=e.i(450818),r=e.i(343794),l=e.i(271645),i=e.i(400226),s=e.i(754886),o=e.i(539931);e.i(174345);var c=e.i(774860),d=e.i(564755);e.i(45030);var u=e.i(359747),p=e.i(892063),m=e.i(440481),h=e.i(702677),f=e.i(943032),g=e.i(89707),x=e.i(612753),b=e.i(900753),y=e.i(181354),_=e.i(184641),v=e.i(419301),C=e.i(714261),T=e.i(59915),E=e.i(961691),N=e.i(115815),A=e.i(592485),k=e.i(579378),w=e.i(742798),S=e.i(603938);let I=({onNext:e,pushDataLayer:n})=>{let a=(0,c.useCmsClientContext)(),r=(0,d.getClientTranslations)(i.BaseTranslations,a),l=(0,b.useSafeCarInsuranceContext)();if(!l)return null;let{form:s}=l,o=async()=>{s.setIsChanged(!0),e()};return(0,t.jsxs)("div",{className:"mt-4 flex w-full flex-col gap-4",children:[(0,t.jsx)(S.StepHeader,{title:r.personal_details,subTitle:r.personal_details_subtitle,stepNumber:2}),(0,t.jsx)(w.PersonalDetailsForm,{useBolttechData:!0,pushDataLayer:n}),(0,t.jsxs)(p.default,{className:x.nextButtonStyles,onClick:o,children:[r.next,(0,t.jsx)(f.MaterialIcon,{icon:"arrow_right_alt",className:"text-white text-[22px]"})]})]})};var D=e.i(935275);let L=({onNext:e,pushDataLayer:n})=>{let a=(0,c.useCmsClientContext)(),r=(0,d.getClientTranslations)(i.BaseTranslations,a),l=(0,b.useSafeCarInsuranceContext)();if(!l)return null;
2let{requestParams:{vehicle:{value:s,setValue:o}},data:{vehicleMakers:u,vehicleModels:m,vehicleTrims:h,isTrimsLoading:g,isVehiclesDataLoading:y,yearsOptions:_}}=l,{makeName:v,manufactureYear:C,modelCode:T,trim:E}=s,N=e=>{o({...s,...e})},A=(e,t)=>{n({event:"form_interact",lead_form_name:"ci-policy-search-module-car-info",action:"select",component_type:"dropdown",component_title:e,vertical_code:"CI",form_field_value:t})},k=[{options:u.value,label:r.brand,value:v,onChange:e=>{A("Vehicle make",e),N({makeName:e})}},{options:m.value,disabled:y,label:r.model,value:T,onChange:e=>{let t=m.value.find(t=>t.value===e)?.label.trim()??"";A("Vehicle model",e),N({modelCode:e,modelName:t})}},{options:_.value,label:r.year_of_manufacture,value:C.toString(),onChange:e=>{A("Year of manufacture",e),N({manufactureYear:e})}},{options:h.value,disabled:y||g,label:r.variant,value:E,onChange:e=>N({trim:e})}];return(0,t.jsxs)("div",{className:"mt-4 flex w-full flex-col gap-4",children:[(0,t.jsx)(S.StepHeader,{title:r.vehicle_details,subTitle:r.vehicle_details_subtitle,stepNumber:1}),k.map(e=>(0,t.jsx)(D.FormSelect,{...e},e.label)),(0,t.jsxs)(p.default,{className:x.nextButtonStyles,onClick:e,children:[r.next,(0,t.jsx)(f.MaterialIcon,{icon:"arrow_right_alt",className:"text-white text-[22px]"})]})]})};var j=e.i(383088);let P=({isOpen:e,onClose:n,onOpen:w,onContactMe:S,pushDataLayer:D,contactMe:P})=>{let{openErrorModal:H,openConfirmationModal:U,isErrorOpen:z,isConfirmationOpen:G,closeConfirmationModal:V,closeErrorModal:$}=(0,j.useCentralModals)(),[Y,W]=(0,l.useState)(0),q=(0,u.useSafeSearchParams)(),K=(0,c.useCmsClientContext)(),{brand:Q}=K,Z=(0,d.getClientTranslations)(i.BaseTranslations,K),X="moneymax"===Q,J=(0,b.useSafeCarInsuranceContext)(),ee=J?.requestParams?.user?.value,et=J?.requestParams?.user?.setValue;if((0,l.useEffect)(()=>{et&&ee&&e&&!ee.preferredContactMethod&&et({...ee,preferredContactMethod:s.ContactMethod.WA})},[e,ee?.preferredContactMethod,ee,et]),!J||!ee)return null;let{requestParams:{vehicle:{value:en,setValue:ea},prices:{value:{personalAccident:er,propertyDamage:el}}},form:ei}=J,{preferredContactMethod:es,phone:eo,email:ec,firstName:ed,lastName:eu}=ee,{consentDirectMarketing:ep,makeName:em,modelCode:eh,trim:ef,type:eg,manufactureYear:ex,fairMarket:eb}=en,ey=P??F,e_=(e=ey.whatsapp.message_template_empty)=>{let t=ey.whatsapp.number.trim();if(!t)return"";let n=encodeURIComponent(e);return`https://wa.me/${t}?text=${n}`},ev=async()=>{D({event:"form_interact",lead_form_name:"ci-rp-contact-us-form",form_type:"lead form",action:"click",component_type:"button",component_title:"Contact Me",vertical_code:"CI"});try{let e={first_name:ed,last_name:eu,email:ec,phone:eo,car_brand:em,car_model:eh,car_year:ex.toString(),choose_car_trim:ef,vehicle_type:eg,acts_of_nature_coverage:!0,car_fmv:eb.toString(),searchParams:(0,o.getUtmParams)(q),bodily:el.toString(),property_damage:el.toString(),personal_acc:er.toString()},t=await S(e);if(D({event:"form_submit",lead_form_name:"ci-rp-contact-us-form",form_type:"lead form",vertical_code:"CI"}),!t.status)return n(),H(),!1;n(),U()}catch(e){D({event:"form_error",lead_form_name:"ci-rp-contact-us-form",form_type:"lead form",vertical_code:"CI",error_message:e instanceof Error?e.message:"Unknown error"}),H(),n()}},eC=e=>{et({...ee,...e})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.Dialog,{open:e,handler:n,className:(0,r.default)("max-h-[90vh] overflow-y-auto md:!max-w-screen-2sm lg:!max-w-screen-2sm",{"lg:!min-w-[450px]":X,"lg:!min-w-[550px] flex gap-4 justify-between p-4":!X}),children:[Y>0&&!X?(0,t.jsx)(a.IconButton,{variant:"text",onClick:()=>W(Y-(X?2:1)),className:"!size-6",children:(0,t.jsx)(f.MaterialIcon,{icon:"arrow_left_alt",className:"flex text-gray-900"})}):(0,t.jsx)("div",{}),(0,t.jsxs)("div",{className:(0,r.default)({"h-full size-full":X,"w-[420px]":!X}),children:[(0,t.jsxs)("div",{className:"flex w-full shrink-0 flex-col p-4",children:[(0,t.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,t.jsx)(g.Stepper,{steps:X?M.filter((e,t)=>1!==t):M,activeStep:Y})}),(()=>{switch(Y){case 0:return X?(0,t.jsx)(N.VehicleDetailsMoneymax,{onNext:()=>W(2),pushDataLayer:D}):(0,t.jsx)(L,{onNext:()=>W(1),pushDataLayer:D});case 1:if(!X)return(0,t.jsx)(I,{onNext:()=>W(2),pushDataLayer:D});return;case 2:return X?(0,t.jsx)(E.ContactDetailsMoneymax,{onBackword:()=>W(0),pushDataLayer:D}):(0,t.jsx)(k.ContactDetailsSingsaver,{});default:return null}})(),(()=>{let e=es===s.ContactMethod.Email&&!!ec?.trim(),n=(es===s.ContactMethod.WA||es===s.ContactMethod.Phone)&&!!eo?.trim(),a=!!ed?.trim()&&!!eu?.trim()&&(e||n);if(!X)return(0,t.jsxs)("div",{className:"mb-2 mt-3",children:[2!==Y&&(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("p",{className:"font-base font-medium text-gray-700 text-base",children:Z.or})}),(0,t.jsx)(v.TabsIconsCheckbox,{options:O,onChange:e=>eC({preferredContactMethod:e}),value:es??s.ContactMethod.WA,label:Z.preferred_contact_method}),2===Y&&(0,t.jsxs)(t.Fragment,{children:[(es===s.ContactMethod.WA||es===s.ContactMethod.Phone||!es)&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(y.FormInput,{label:Z.phone_number,value:eo,placeholder:Z.phone_number,type:"text",onCh
2ange:e=>eC({phone:e})})}),es===s.ContactMethod.Email&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(y.FormInput,{label:Z.email,value:ec,placeholder:Z.email,type:"text",onChange:e=>eC({email:e})})}),(0,t.jsxs)("div",{className:"my-4 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("div",{className:"w-5",children:(0,t.jsx)(_.Checkbox,{onClick:()=>{var e;return e={consentDirectMarketing:!ep},void ea({...ee,...e})},containerClass:"!size-5",defaultValue:ep})}),(0,t.jsx)("span",{className:"grow font-medium text-gray-900 text-sm",children:Z.marketing})]}),(0,t.jsx)(p.default,{className:(0,r.default)(a?x.nextButtonStyles:x.disabledButton),disabled:!a,onClick:ev,children:Z.contact_me}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("p",{className:"font-base font-medium text-gray-700 text-base",children:Z.or})})]})]}),(0,t.jsx)(A.SelectContactMethod,{contactMethod:es??"",createWALink:e_,stepNumber:Y+1,contactInfo:ey,pushDataLayer:D})]})})()]}),(0,t.jsx)("div",{className:"flex w-full items-center justify-center rounded-b-md border border-t-[#E0E0E0] p-4",children:(0,t.jsxs)("span",{className:"text-center font-medium text-gray-700 text-xs md:text-sm lg:text-base",children:[Z.by_continuing," ",Q.charAt(0).toUpperCase()+Q.slice(1)," ",(0,t.jsx)(m.FeLink,{href:B[Q],className:"underline",target:"_blank",rel:"noreferrer",children:Z.terms_and_conditions})," ",Z.and," ",(0,t.jsx)(m.FeLink,{href:R[Q],className:"underline",target:"_blank",rel:"noreferrer",children:Z.privacy_and_policy})]})})]}),!X&&(0,t.jsx)(a.IconButton,{variant:"text",onClick:n,className:"!size-6",children:(0,t.jsx)(h.default,{className:"flex size-6 text-gray-900"})})]}),(0,t.jsx)(C.ConfirmationModal,{isOpen:G&&!X,onClose:()=>{V(),["singsaver","moneyhero"].includes(Q)&&ei.setIsChanged(!0)},waLink:e_(),pushDataLayer:D}),(0,t.jsx)(T.ErrorModal,{isOpen:z,onClose:()=>{$(),["singsaver","moneyhero"].includes(Q)&&ei.setIsChanged(!0)},onTryAgain:()=>{H(),w()}})]})},M=[{icon:"directions_car"},{icon:"account_circle"},{icon:"call"}],O=[{label:"whatsapp",value:s.ContactMethod.WA},{label:"phone",value:s.ContactMethod.Phone},{label:"email",value:s.ContactMethod.Email}],R={singsaver:"https://www.singsaver.com.sg/page/singsaver-privacy-policy",moneymax:"https://www.moneymax.ph/page/privacy-policy",money101:"",moneyhero:"https://www.moneyherogroup.com/privacy-policy"},B={singsaver:"https://www.singsaver.com.sg/page/singsaver-terms",moneymax:"https://www.moneymax.ph/page/terms-and-conditions",money101:"",moneyhero:"https://www.moneyherogroup.com/terms-conditions"},F={email:{email:"",caption:"",note:""},phone:{number:"",caption:"",note:""},whatsapp:{number:"",caption:"",message_template:"",message_template_empty:""},show:!1,title:""};var H=e.i(618566),U=e.i(983865),z=e.i(686148);let G=(0,z.staticText)({giftsAvailable:{_:"Don't miss out on exclusive rewards...",zh:"ä¸è¦é¯éç¨å®¶çåµ..."},giftsNotAvailable:{_:"You're almost done!",zh:"æ¨å¿«å®æäºï¼"},back:{_:"Back",zh:"è¿å"},noRewards:{_:"No rewards available for this product",zh:"æ¤ç¢åæ²æå¯ç¨ççå³"},multipleRewards:{_:"You'll get to choose one of these rewards:",zh:"æ¨å¯ä»¥é¸æä»¥ä¸å
¶ä¸ä¸é
çåµ:"},multipleGiftsAvailable:{_:"Plus, you'll get:",zh:"æ¤å¤ï¼æ¨éå°ç²å¾:"},multipleGiftsNotAvailable:{_:"You will get this reward:",zh:"æ¨å°ç²å¾ä»¥ä¸çåµ:"},termsCampaign:{_:"*Campaign",zh:"å
¬å¸ç"},termsApply:{_:"*T&Cs apply",zh:"T&Cs å·²å°ä½"},originalPrice:{_:"Original premium",zh:"åå§ä¿è²»"},discountPrice:{_:"You'll pay only",zh:"æ¨åªéæ¯ä»"},vehicleMake:{_:"Vehicle make",zh:"æ±½è»åç"},vehicleModel:{_:"Vehicle model",zh:"è»å"},variant:{_:"Variant",zh:"è»æ¬¾"},manufactureYear:{_:"Manufacture year",zh:"製é 年份"},gender:{_:"Gender",zh:"æ§å¥"},genderMale:{_:"Male",zh:"ç·"},genderFemale:{_:"Female",zh:"女"},maritalStatus:{_:"Marital status",zh:"å©å§»çæ³"},maritalStatusSingle:{_:"Single",zh:"å®èº«"},maritalStatusMarried:{_:"Married",zh:"å·²å©"},age:{_:"Age",zh:"年齡"},ageYears:{_:"y.o.",zh:"æ²"},drivingExperience:{_:"Driving experience",zh:"é§é§ç¶é©"},drivingExperience0Years:{_:"0 years",zh:"0 å¹´"},drivingExperience1Year:{_:"1 year",zh:"1 å¹´"},drivingExperience2Years:{_:"2 years",zh:"2 å¹´"},drivingExperience3PlusYears:{_:"3 years and above",zh:"3 å¹´å以ä¸"},ncd:{_:"NCD",zh:"ç¡ç´¢åææ£"},numberOfClaims:{_:"Number of claims in last 3 years",zh:"éå»3å¹´å
§ççè³ æ¬¡æ¸"}
2,priceSymbol:{_:"$",zh:"$"},startingAt:{_:"Starting at",zh:"èµ·å¹çº"},shareEmail:{_:"Share your email address to receive the rewards claim form.",zh:"æä¾æ¨çé»åéµä»¶å°åï¼ä»¥æ¥æ¶å ±çè¡¨æ ¼ã"},emailError:{_:"Please enter a valid email address",zh:"è«è¼¸å
¥ææçé»åéµä»¶å°å"},redirect:{_:"You'll be redirected to",zh:"æ¨å°è¢«éå®åå°"},buy:{_:"Continue",zh:"ç¹¼çºè³¼è²·"},subscribe:{_:"I consent to receiving marketing materials from SingSaver Pte Ltd / SingSaver Insurance Brokers Pte Ltd about their products, services, offers & events by email, phone call, IM or text as per their",zh:" æåæééé»åéµä»¶ãé»è©±ãå³ææ¶æ¯æçä¿¡æ¥æ¶æé MoneyHero Global Limited / MoneyHero Insurance Brokers Limited çç¢åãæåãåªæ åæ´»åççé·ææï¼ä¸¦ä¸åæå
¶"},privacyPolicy:{_:"Privacy Policy.",zh:"é±ç§æ¿çã"},termsBy:{_:"By entering your email address, you agree to SingSaver's",zh:"輸å
¥æ¨çé»åéµä»¶å°åï¼å³è¡¨ç¤ºæ¨åæ MoneyHero ç"},termsAndConditions:{_:"T&Cs",zh:"ä½¿ç¨æ¢æ¬¾"},and:{_:"and",zh:"å"},privacyPolicyFooter:{_:"Privacy Policy.",zh:"é±ç§æ¬æ¿çã"}});e.i(73430);var V=e.i(43185);e.i(397031);var $=e.i(271159),Y=e.i(515045);let W=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,t.jsx)("path",{d:"M5.25 5.25H5.2575M5.25 2.25H9C9.384 2.25 9.768 2.39625 10.0605 2.6895L15.3105 7.9395C15.5917 8.22079 15.7497 8.60225 15.7497 9C15.7497 9.39775 15.5917 9.77921 15.3105 10.0605L10.0605 15.3105C9.77921 15.5917 9.39775 15.7497 9 15.7497C8.60225 15.7497 8.22079 15.5917 7.9395 15.3105L2.6895 10.0605C2.55 9.92139 2.43937 9.75609 2.36394 9.5741C2.28852 9.39211 2.2498 9.197 2.25 9V5.25C2.25 4.45435 2.56607 3.69129 3.12868 3.12868C3.69129 2.56607 4.45435 2.25 5.25 2.25Z",stroke:"#757575",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),q=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,t.jsx)("mask",{id:"mask0_17590_130821",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:(0,t.jsx)("rect",{width:"18",height:"18",fill:"#D9D9D9"})}),(0,t.jsx)("g",{mask:"url(#mask0_17590_130821)",children:(0,t.jsx)("path",{d:"M4.21149 13.875V14.8125C4.21149 14.9718 4.15759 15.1054 4.04977 15.2132C3.94197 15.3211 3.80839 15.375 3.64901 15.375H3.1875C3.02813 15.375 2.89453 15.3211 2.78672 15.2132C2.67891 15.1054 2.625 14.9718 2.625 14.8125V9.05768L4.15674 4.6875C4.21251 4.51539 4.31491 4.37861 4.46394 4.27718C4.61298 4.17573 4.77884 4.125 4.96153 4.125H13.0673C13.2428 4.125 13.4021 4.17656 13.5453 4.27969C13.6885 4.38281 13.7878 4.51875 13.8432 4.6875L15.375 9.05768V14.8125C15.375 14.9718 15.3211 15.1054 15.2132 15.2132C15.1054 15.3211 14.9718 15.375 14.8125 15.375H14.351C14.1916 15.375 14.058 15.3211 13.9502 15.2132C13.8424 15.1054 13.7885 14.9718 13.7885 14.8125V13.875H4.21149ZM4.20574 7.93271H13.7942L12.8481 5.24998H5.1519L4.20574 7.93271ZM5.59783 11.8846C5.87073 11.8846 6.10213 11.7891 6.29203 11.598C6.48194 11.407 6.5769 11.175 6.5769 10.9021C6.5769 10.6292 6.48138 10.3978 6.29034 10.2079C6.09931 10.018 5.86734 9.92306 5.59444 9.92306C5.32154 9.92306 5.09013 10.0186 4.90022 10.2096C4.71032 10.4007 4.61537 10.6326 4.61537 10.9055C4.61537 11.1784 4.71089 11.4098 4.90193 11.5997C5.09296 11.7896 5.32493 11.8846 5.59783 11.8846ZM12.4055 11.8846C12.6784 11.8846 12.9098 11.7891 13.0997 11.598C13.2896 11.407 13.3846 11.175 13.3846 10.9021C13.3846 10.6292 13.2891 10.3978 13.098 10.2079C12.907 10.018 12.675 9.92306 12.4021 9.92306C12.1292 9.92306 11.8978 10.0186 11.7079 10.2096C11.518 10.4007 11.4231 10.6326 11.4231 10.9055C11.4231 11.1784 11.5186 11.4098 11.7096 11.5997C11.9007 11.7896 12.1326 11.8846 12.4055 11.8846ZM3.74998 12.75H14.25V9.05768H3.74998V12.75Z",fill:"#757575"})})]}),K=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,t.jsx)("path",{d:"M5.99998 10.4567C5.81633 10.4567 5.65984 10.3921 5.53052 10.2628C5.40119 10.1334 5.33653 9.97695 5.33653 9.7933C5.33653 9.60965 5.40119 9.45316 5.53052 9.32384C5.65984 9.19451 5.81633 9.12985 5.99998 9.12985C6.18363 9.12985 6.34012 9.19451 6.46944 9.32384C6.59877 9.45316 6.66343 9.60965 6.66343 9.7933C6.66343 9.97695 6.59877 10.1334 6.46944 10.2628C6.34012 10.3921 6.18363 10.4567 5.99998 10.4567ZM8.99998 10.4567C8.81633 10.4567 8.65984 10.3921 8.53052 10.2628C8.40119 10.1334 8.33653 9.97695 8.33653 9.7933C8.33653 9.60965 8.40119 9.45316 8.53052 9.32384C8.65984 9.19451 8.81633 9.12985 8.99998 9.12985C9.18363 9.12985 9.34012 9.19451 9.46944 9.32384C9.59877 9.45316 9.66343 9.60965 9.66343 9.7933C9.66343 9.97695 9.59877 10.1334 9.46944 10.2628C9.34012 10.3921 9.18363 10.4567 8.99998 10.4567ZM12 10.4567C11.8163 10.4567 11.6598 10.3921 11.5305 10.2628C11.4012 10.1334 11.3365 9.97695 11.3365 9.7933C11.3365 9.60965 11.4012 9.45316 11.5305 9.32384C11.6598 9.19451 11.8163 9.12985 12 9.12985C12.1836 9.12985 12.3401 9.19451 12.4694 9.32384C12.5988 9.45316 12.6634 9.60965 12.6634 9.7933C12.6634 9.97695 12.5988 10.1334 12.4694 10.2628C12.3401 10.3921 12.1836 10.4567 12 10.4567ZM3.98077 16.125C3.60193 16.125 3.28125 15.9938 3.01875 15.7313C2.75625 15.4688 2.625 15.1481 2.625 14.7692V4.73082C2.625 4.35197 2.75625 4.03129 3.01875 3.76879C3.28125 3.50629 3.60193 3.37504 3.98077 3.37504H5.01924V1.78851H6.17306V3.37504H11.8557V1.78851H12.9807V3.37504H14.0192C14.398 3.37504 14.7187 3.50629 14.9812 3.76879C15.2437 4.03129 15.375 4.35197 15.375 4.73082V14.7692C15.375 15.1481 15.2437 15.4688 14.9812 15.7313C14.7187 15.9938 14.398 16.125 14.0192 16.125H3.98077ZM3.98077 15H14.0192C14.0769
215 14.1298 14.976 14.1779 14.9279C14.2259 14.8798 14.25 14.8269 14.25 14.7692V7.73082H3.74998V14.7692C3.74998 14.8269 3.77402 14.8798 3.82209 14.9279C3.87018 14.976 3.92308 15 3.98077 15ZM3.74998 6.60584H14.25V4.73082C14.25 4.67312 14.2259 4.62023 14.1779 4.57214C14.1298 4.52406 14.0769 4.50003 14.0192 4.50003H3.98077C3.92308 4.50003 3.87018 4.52406 3.82209 4.57214C3.77402 4.62023 3.74998 4.67312 3.74998 4.73082V6.60584Z",fill:"#757575"})}),Q=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,t.jsx)("mask",{id:"mask0_17590_130832",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:(0,t.jsx)("rect",{width:"18",height:"18",fill:"#D9D9D9"})}),(0,t.jsx)("g",{mask:"url(#mask0_17590_130832)",children:(0,t.jsx)("path",{d:"M1.34863 14.4808V12.8135C1.34863 12.4269 1.4484 12.082 1.64792 11.7786C1.84743 11.4753 2.11388 11.2393 2.44727 11.0706C3.16003 10.7219 3.87675 10.4532 4.59741 10.2642C5.31808 10.0753 6.11015 9.98082 6.97361 9.98082C7.83708 9.98082 8.62914 10.0753 9.3498 10.2642C10.0705 10.4532 10.7872 10.7219 11.5 11.0706C11.8333 11.2393 12.0998 11.4753 12.2993 11.7786C12.4988 12.082 12.5986 12.4269 12.5986 12.8135V14.4808H1.34863ZM14.0986 14.4808V12.7212C14.0986 12.2289 13.978 11.7597 13.737 11.3136C13.4959 10.8676 13.1539 10.4848 12.7111 10.1654C13.214 10.2404 13.6914 10.3565 14.1433 10.5138C14.5952 10.671 15.0265 10.8568 15.437 11.0712C15.8245 11.2779 16.1238 11.5216 16.3349 11.8021C16.5459 12.0827 16.6514 12.3891 16.6514 12.7212V14.4808H14.0986ZM6.97361 8.76923C6.25175 8.76923 5.63379 8.51221 5.11973 7.99816C4.60566 7.48409 4.34863 6.86613 4.34863 6.14427C4.34863 5.42239 4.60566 4.80443 5.11973 4.29038C5.63379 3.77632 6.25175 3.51929 6.97361 3.51929C7.69548 3.51929 8.31344 3.77632 8.8275 4.29038C9.34155 4.80443 9.59858 5.42239 9.59858 6.14427C9.59858 6.86613 9.34155 7.48409 8.8275 7.99816C8.31344 8.51221 7.69548 8.76923 6.97361 8.76923ZM13.4495 6.14427C13.4495 6.86613 13.1925 7.48409 12.6784 7.99816C12.1644 8.51221 11.5464 8.76923 10.8245 8.76923C10.7399 8.76923 10.6322 8.75962 10.5015 8.74039C10.3707 8.72117 10.263 8.70002 10.1784 8.67694C10.4742 8.32136 10.7015 7.92688 10.8603 7.4935C11.0192 7.06013 11.0986 6.61008 11.0986 6.14337C11.0986 5.67667 11.0176 5.22841 10.8556 4.7986C10.6935 4.3688 10.4678 3.97313 10.1784 3.61159C10.2861 3.57313 10.3938 3.54813 10.5015 3.53659C10.6092 3.52506 10.7168 3.51929 10.8245 3.51929C11.5464 3.51929 12.1644 3.77632 12.6784 4.29038C13.1925 4.80443 13.4495 5.42239 13.4495 6.14427ZM2.47361 13.3558H11.4736V12.8135C11.4736 12.6568 11.4344 12.5173 11.3561 12.3952C11.2777 12.2731 11.1534 12.1664 10.9832 12.075C10.3659 11.7567 9.73034 11.5156 9.0765 11.3517C8.42265 11.1878 7.72169 11.1058 6.97361 11.1058C6.22554 11.1058 5.52458 11.1878 4.87073 11.3517C4.21689 11.5156 3.58131 11.7567 2.964 12.075C2.79381 12.1664 2.66953 12.2731 2.59116 12.3952C2.5128 12.5173 2.47361 12.6568 2.47361 12.8135V13.3558ZM6.97361 7.64427C7.38611 7.64427 7.73924 7.49739 8.03299 7.20364C8.32674 6.90989 8.47361 6.55677 8.47361 6.14427C8.47361 5.73177 8.32674 5.37864 8.03299 5.08489C7.73924 4.79114 7.38611 4.64427 6.97361 4.64427C6.56111 4.64427 6.20799 4.79114 5.91424 5.08489C5.62049 5.37864 5.47361 5.73177 5.47361 6.14427C5.47361 6.55677 5.62049 6.90989 5.91424 7.20364C6.20799 7.49739 6.56111 7.64427 6.97361 7.64427Z",fill:"#757575"})})]}),Z=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,t.jsx)("path",{d:"M9.00001 6.70669C8.35189 6.70669 7.80045 6.47932 7.3457 6.02457C6.89095 5.56969 6.66357 5.01826 6.66357 4.37026C6.66357 3.72213 6.89095 3.17069 7.3457 2.71594C7.80045 2.26107 8.35189 2.03363 9.00001 2.03363C9.64814 2.03363 10.1996 2.26107 10.6543 2.71594C11.1091 3.17069 11.3364 3.72213 11.3364 4.37026C11.3364 5.01826 11.1091 5.56969 10.6543 6.02457C10.1996 6.47932 9.64814 6.70669 9.00001 6.70669ZM9.00001 5.58169C9.33651 5.58169 9.62257 5.46394 9.8582 5.22844C10.0938 4.99282 10.2116 4.70676 10.2116 4.37026C10.2116 4.03363 10.0938 3.74757 9.8582 3.51207C9.62257 3.27644 9.33651 3.15863 9.00001 3.15863C8.66351 3.15863 8.37745 3.27644 8.14182 3.51207C7.9062 3.74757 7.78839 4.03363 7.78839 4.37026C7.78839 4.70676 7.9062 4.99282 8.14182 5.22844C8.37745 5.46394 8.66351 5.58169 9.00001 5.58169ZM9.00001 15.8509L4.70195 11.5528C4.48082 11.3317 4.31495 11.0805 4.20432 10.7993C4.09382 10.518 4.03857 10.2107 4.03857 9.87732C4.03857 9.22157 4.26382 8.66863 4.71432 8.21851C5.16495 7.76838 5.71851 7.54332 6.37501 7.54332C6.69639 7.54332 6.99282 7.60363 7.26432 7.72426C7.53582 7.84501 7.78457 8.01832 8.01057 8.24419L9.00001 9.23363L9.98945 8.24419C10.2106 8.02307 10.4586 7.85094 10.7336 7.72782C11.0086 7.60482 11.3068 7.54332 11.6282 7.54332C12.2818 7.54332 12.8341 7.76838 13.2851 8.21851C13.736 8.66863 13.9614 9.22157 13.9614 9.87732C13.9614 10.2107 13.9062 10.518 13.7957 10.7993C13.6851 11.0805 13.5192 11.3317 13.2981 11.5528L9.00001 15.8509ZM9.00001 14.2472L12.4847 10.7625C12.6068 10.6404 12.696 10.5038 12.7523 10.3528C12.8085 10.2019 12.8366 10.0454 12.8366 9.88332C12.8366 9.55932 12.7208 9.27582 12.489 9.03282C12.2573 8.78982 11.969 8.66832 11.6243 8.66832C11.4651 8.66832 11.3213 8.69226 11.1928 8.74013C11.0642 8.78813 10.939 8.87375 10.8173 8.997L9.00001 10.8144L7.1972 9.01144C7.11407 8.92569 7.00676 8.84707 6.87526 8.77557C6.74364 8.70407 6.57795 8.66832 6.3782 8.66832C6.03182 8.66832 5.74276 8.78919 5.51101 9.03094C5.27926 9.27282 5.16339 9.55494 5.16339 9.87732C5.16339 10.0386 5.19345 10.1921 5.25357 10.3378C5.3137 10.4834 5.40095 10.6173 5.51532 10.7394L9.00001 14.2472Z",fill:"#757575"})}),X=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,t.jsx)("mask",{id:"mask0_17590_130843",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:(0,t.jsx)("rect",{width:"18",height:"18",fill:"#D9D9D9"})}),(0,t.jsx)("g",{mask:"url(#mask0_17590_130843)",children:(0,t.jsx)("path",{d:"M6.74998 10.6875C6.48748 10.6875 6.26561 10.5969 6.08436 10.4156C5.90311 10.2344 5.81248 10.0125 5.81248 9.74998C5.81248 9.48748 5.90311 9.26561 6.08436 9.08436C6.26561 8.90311 6.48748 8.81248 6.74998 8.81248C7.01248 8.81248 7.23436 8.90311 7.41561 9.08436C7.59686 9.26561 7.68748 9.48748 7.68748 9.74998C7.68748 10.0125 7.59686 10.2344 7.41561 10.4156C7.23436 10.5969 7.01248 10.6875 6.74998 10.6875ZM11.25 10.6875C10.9875 10.6875 10.7656 10.5969 10.5844 10.4156C10.4031 10.2344 10.3125 10.0125 10.3125 9.74998C10.3125 9.48748 10.4031 9.26561 10.5844 9.08436C10.7656 8.90311 10.9875 8.81248 11.25 8.81248C11.5125 8.81248 11.7344 8.90311 11.9156 9.08436C12.0969 9.26561 12.1875 9.48748 12.1875 9.74998C12.1875 10.0125 12.0969 10.2344 11.9156 10.4156C11.7344 10.5969 11.5125 10.6875 11.25 10.6875ZM8.99998 15C10.675 15 12.0937 14.4187 13.2562 13.2562C14.4187 12.0937 15 10.675 15 8.99998C15 8.69998 14.9812 8.40936 14.9437 8.12811C14.9062 7.84686 14.8375 7.57498 14.7375 7.31248C14.475 7.37498 14.2125 7.42186 13.95 7.45311C13.6875 7.48436 13.4125 7.49998 13.125 7.49998C11.9875 7.49998 10.9125 7.25623 9.89998 6.76873C8.88748 6.28123 8.02498 5.59998 7.31248 4.72498C6.91248 5.69998 6.34061 6.54686 5.59686 7.26561C4.85311 7.98436 3.98748 8.52498 2.99998 8.88748V8.99998C2.99998 10.675 3.58123 12.0937 4.74373 13.2562C5.90623 14.4187 7.32498 15 8.99998 15ZM9.00124 16.125C8.01579 16.125 7.08951 15.938 6.22241 15.564C5.3553 15.19 4.60104 14.6824 3.95963 14.0413C3.3182 13.4001 2.8104
21 12.6462 2.43624 11.7795C2.06208 10.9128 1.875 9.98669 1.875 9.00124C1.875 8.01579 2.062 7.08951 2.436 6.22241C2.81 5.3553 3.31756 4.60104 3.95869 3.95963C4.59983 3.3182 5.35376 2.81041 6.22048 2.43624C7.08719 2.06208 8.01328 1.875 8.99873 1.875C9.98418 1.875 10.9105 2.062 11.7776 2.436C12.6447 2.81 13.3989 3.31756 14.0403 3.95869C14.6818 4.59983 15.1896 5.35376 15.5637 6.22048C15.9379 7.08719 16.125 8.01328 16.125 8.99873C16.125 9.98418 15.938 10.9104 15.564 11.7775C15.19 12.6447 14.6824 13.3989 14.0413 14.0403C13.4001 14.6818 12.6462 15.1896 11.7795 15.5637C10.9128 15.9379 9.98669 16.125 9.00124 16.125ZM7.63408 3.16584C8.20236 4.21394 8.99059 5.01083 9.99877 5.55651C11.0069 6.10217 12.049 6.375 13.125 6.375C13.3288 6.375 13.5276 6.36443 13.7214 6.34328C13.9151 6.32213 14.1115 6.29184 14.3106 6.25241C13.8096 5.25721 13.0839 4.46634 12.1334 3.87979C11.1829 3.29325 10.1384 2.99998 8.99998 2.99998C8.74806 2.99998 8.51319 3.01416 8.29539 3.04253C8.07761 3.0709 7.85717 3.11201 7.63408 3.16584ZM3.21054 7.5678C3.91536 7.21491 4.5846 6.69929 5.21827 6.02093C5.85194 5.34255 6.26108 4.52931 6.44569 3.58121C5.62547 3.95334 4.93219 4.4882 4.36584 5.1858C3.79949 5.8834 3.41439 6.6774 3.21054 7.5678Z",fill:"#757575"})})]}),J=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,t.jsx)("path",{d:"M1.875 9.80775L3.40669 5.4375C3.46256 5.26537 3.565 5.12863 3.714 5.02725C3.863 4.92575 4.02887 4.875 4.21163 4.875H7.62113C7.59812 5.0625 7.589 5.25 7.59375 5.4375C7.59863 5.625 7.615 5.8125 7.64287 6H4.40194L3.45581 8.68275H9.13425C9.39 8.93462 9.66713 9.15625 9.96563 9.34762C10.2642 9.539 10.5905 9.69237 10.9444 9.80775H3V13.5H13.5V10.2347C13.6904 10.2116 13.8817 10.1709 14.0739 10.1128C14.2663 10.0546 14.45 9.98119 14.625 9.89269V15.5625C14.625 15.7219 14.5711 15.8554 14.4632 15.9632C14.3554 16.0711 14.2219 16.125 14.0625 16.125H13.6011C13.4417 16.125 13.3081 16.0711 13.2002 15.9632C13.0924 15.8554 13.0386 15.7219 13.0386 15.5625V14.625H3.46144V15.5625C3.46144 15.7219 3.40756 15.8554 3.29981 15.9632C3.19194 16.
20711 3.05831 16.125 2.89894 16.125H2.4375C2.27812 16.125 2.14456 16.0711 2.03681 15.9632C1.92894 15.8554 1.875 15.7219 1.875 15.5625V9.80775ZM11.6556 12.6347C11.9284 12.6347 12.1598 12.5391 12.3497 12.348C12.5397 12.157 12.6347 11.9251 12.6347 11.6522C12.6347 11.3793 12.5391 11.1479 12.348 10.9579C12.157 10.768 11.9251 10.6731 11.6522 10.6731C11.3793 10.6731 11.1479 10.7686 10.9579 10.9596C10.768 11.1507 10.6731 11.3827 10.6731 11.6556C10.6731 11.9284 10.7686 12.1598 10.9596 12.3497C11.1507 12.5397 11.3827 12.6347 11.6556 12.6347ZM4.84781 12.6347C5.12069 12.6347 5.35212 12.5391 5.54212 12.348C5.732 12.157 5.82694 11.9251 5.82694 11.6522C5.82694 11.3793 5.73144 11.1479 5.54044 10.9579C5.34931 10.768 5.11731 10.6731 4.84444 10.6731C4.57156 10.6731 4.34019 10.7686 4.15031 10.9596C3.96031 11.1507 3.86531 11.3827 3.86531 11.6556C3.86531 11.9284 3.96088 12.1598 4.152 12.3497C4.343 12.5397 4.57494 12.6347 4.84781 12.6347Z",fill:"#757575"}),(0,t.jsx)("path",{d:"M13.6125 6.97781L14.1028 6.4875L12.7067 5.11725V3.04331H12.0431V5.38556L13.6125 6.97781ZM12.372 8.625C11.4374 8.625 10.6417 8.29663 9.98512 7.63988C9.32837 6.98313 9 6.18562 9 5.24737C9 4.32025 9.3265 3.52644 9.9795 2.86594C10.6326 2.20531 11.4321 1.875 12.3778 1.875C13.3124 1.875 14.1081 2.20337 14.7649 2.86012C15.4216 3.51687 15.75 4.3135 15.75 5.25C15.75 6.1865 15.4206 6.98313 14.7619 7.63988C14.1031 8.29663 13.3065 8.625 12.372 8.625Z",fill:"#757575"})]}),ee=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,t.jsx)("mask",{id:"mask0_17590_130860",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:(0,t.jsx)("rect",{width:"18",height:"18",fill:"#D9D9D9"})}),(0,t.jsx)("g",{mask:"url(#mask0_17590_130860)",children:(0,t.jsx)("path",{d:"M5.4375 12.5625H10.3125V11.4375H5.4375V12.5625ZM5.4375 9.56246H12.5625V8.4375H5.4375V9.56246ZM5.4375 6.56246H12.5625V5.4375H5.4375V6.56246ZM3.98078 15.375C3.60193 15.375 3.28125 15.2437 3.01875 14.9812C2.75625 14.7187 2.625 14.398 2.625 14.0192V3.98078C2.625 3.60193 2.75625 3.28125 3.01875 3.01875C3.28125 2.75625 3.60193 2.625 3.98078 2.625H14.0192C14.398 2.625 14.7187 2.75625 14.9812 3.01875C15.2437 3.28125 15.375 3.60193 15.375 3.98078V14.0192C15.375 14.398 15.2437 14.7187 14.9812 14.9812C14.7187 15.2437 14.398 15.375 14.0192 15.375H3.98078ZM3.98078 14.25H14.0192C14.0769 14.25 14.1298 14.2259 14.1779 14.1779C14.2259 14.1298 14.25 14.0769 14.25 14.0192V3.98078C14.25 3.92308 14.2259 3.87018 14.1779 3.82209C14.1298 3.77402 14.0769 3.74998 14.0192 3.74998H3.98078C3.92308 3.74998 3.87018 3.77402 3.82209 3.82209C3.77402 3.87018 3.74998 3.92308 3.74998 3.98078V14.0192C3.74998 14.0769 3.77402 14.1298 3.82209 14.1779C3.87018 14.2259 3.92308 14.25 3.98078 14.25Z",fill:"#757575"})})]}),et=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"18",viewBox:"0 -960 960 960",width:"18",fill:"#757575",children:(0,t.jsx)("path",{d:"m260-520 220-360 220 360H260ZM700-80q-75 0-127.5-52.5T520-260q0-75 52.5-127.5T700-440q75 0 127.5 52.5T880-260q0 75-52.5 127.5T700-80Zm-580-20v-320h320v320H120Zm580-60q42 0 71-29t29-71q0-42-29-71t-71-29q-42 0-71 29t-29 71q0 42 29 71t71 29Zm-500-20h160v-160H200v160Zm202-420h156l-78-126-78 126Zm78 0ZM360-340Zm340 80Z"})}),en=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,t.jsx)("mask",{id:"mask0_17539_73806",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:(0,t.jsx)("rect",{x:"-6.10352e-05",width:"20",height:"20",fill:"#D9D9D9"})}),(0,t.jsx)("g",{mask:"url(#mask0_17539_73806)",children:(0,t.jsx)("path",{d:"M15.8333 15.4167V12.5C15.8333 11.7521 15.5688 11.1137 15.0399 10.585C14.5112 10.0561 13.8729 9.79167 13.1249 9.79167H5.31077L8.5191 13L7.62806 13.8781L2.9166 9.16667L7.62806 4.45521L8.5191 5.33333L5.31077 8.54167H13.1249C14.219 8.54167 15.1522 8.92792 15.9245 9.70042C16.697 10.4728 17.0833 11.406 17.0833 12.5V15.4167H15.8333Z",fill:"#B2E2ED"})})]}),ea=({name:e,value:n,icon:a,isStartAlignment:r})=>{let l=r?"items-start":"items-center";return(0,t.jsxs)("div",{className:`flex ${l} gap-2`,children:[(0,t.jsxs)("span",{className:`flex ${l} gap-2 md:w-37 md:min-w-37 w-39 min-w-39`,children:[(0,t.jsx)("span",{children:a}),(0,t.jsx)("span",{className:"alpha-badge text-text/secondary-lighter",children:e})]}),(0,t.jsx)("span",{className:"alpha-badge text-text/primary truncate max-w-fit",children:n})]})},er=({product:e,carInsuranceQuotes:n,productWithLivePrice:a,carInsuranceSection:i})=>{let s=(0,c.useCmsClientContext)(),{brand:o,lang:p}=s,m=(0,d.getClientTranslations)(G,s),h=(0,b.useSafeCarInsuranceContext)(),f=h?.requestParam
2s?.vehicle?.value,g=h?.requestParams?.driver?.value,x=h?.requestParams?.ncd?.value,y=h?.useBolttechData,_=(0,l.useMemo)(()=>{let e=h?.data?.vehicleMakers?.value??[];return f?y?e.find(e=>e.value===f.makeName)?.label||"":f.makeName:""},[y,f,h?.data?.vehicleMakers?.value]),v=(0,l.useMemo)(()=>{let e=h?.data?.vehicleModels?.value??[];return f?y?e.find(e=>e.value===f.modelCode)?.label||"":f.modelName:""},[y,f,h?.data?.vehicleModels?.value]),C=(0,l.useMemo)(()=>{let e=h?.data?.vehicleTrims?.value??[];return f?y?e.find(e=>e.value===f.trim)?.label||"":f.trim:""},[y,f,h?.data?.vehicleTrims?.value]),T=Number(g?.totalDrivingExperience??0),E=T>=3?m.drivingExperience3PlusYears:2===T?m.drivingExperience2Years:1===T?m.drivingExperience1Year:m.drivingExperience0Years,N=(0,u.useSafeSearchParams)(),A=null!=N&&N.has("showVehicle")&&N?.getAll("showVehicle")[0]==="false",k=n?.find(t=>t.productId===e?.title),w=a?.find(t=>t.brokerProductCode===e?.title?.slice(3)),S=(0,V.formatNumberWithSeparator)({value:w?.discountValue??w?.duePremium??(k&&(0,Y.getPrice)(k))??i?.priceStatic??0,thousandsSeparator:",",alwaysTwoDecimals:!0});return e?(0,t.jsxs)("div",{className:"w-full md:w-72 lg:w-[346px] shrink-0 self-start flex flex-col justify-start items-start rounded-2xl bg-white shadow-md",children:[(0,t.jsx)("div",{className:"w-full p-4 md:p-6",children:(0,t.jsxs)("div",{className:"flex flex-col justify-center gap-4",children:[(0,t.jsx)("div",{className:"flex flex-row justify-center rounded-lg outline outline-1 outline-gray-300 p-4 md:h-22 sm:h-18 bg-white",children:e.product_image&&(0,t.jsx)($.CmsImage,{className:"size-full object-contain",sizes:{_:266},src:e.product_image,alt:e.product_name??"product image",width:266,height:56})}),(0,t.jsx)("div",{className:"max-w-full self-start text-left",children:(0,t.jsx)("p",{className:"alpha-title-2 text-text/primary break-normal",children:e.product_name})}),(0,t.jsx)("div",{className:"flex flex-col",children:!!S&&"0.00"!==S&&(0,t.jsxs)("div",{className:(0,r.default)("flex","zh-hk"===p?"flex-col-reverse":"flex-col"),children:[(0,t.jsx)("span",{className:"text-text/secondary-lighter alpha-badge",children:m.startingAt}),(0,t.jsxs)("span",{className:"text-text/primary alpha-title-2",children:[i?.prefix,S,i?.suffix]})]})})]})}),A?null:(0,t.jsx)("div",{className:"border-t p-4 md:p-6 border-gray-300 w-full gap-2",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(ea,{name:m.vehicleMake,value:_,icon:(0,t.jsx)(W,{})}),(0,t.jsx)(ea,{name:m.vehicleModel,value:v,icon:(0,t.jsx)(q,{})}),"singsaver"===o&&y&&C&&(0,t.jsx)(ea,{name:m.variant,value:C,icon:(0,t.jsx)(et,{})}),(0,t.jsx)(ea,{name:m.manufactureYear,value:f?.manufactureYear??"",icon:(0,t.jsx)(K,{})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 mt-5",children:[(0,t.jsx)(ea,{name:m.gender,value:g?.gender==="M"?m.genderMale:m.genderFemale,icon:(0,t.jsx)(Q,{})}),(0,t.jsx)(ea,{name:m.maritalStatus,value:g?.maritalStatus==="S"?m.maritalStatusSingle:m.maritalStatusMarried,icon:(0,t.jsx)(Z,{})}),(0,t.jsx)(ea,{name:m.age,value:`${g?.age} ${m.ageYears}`,icon:(0,t.jsx)(X,{})}),(0,t.jsx)(ea,{name:m.drivingExperience,value:E,icon:(0,t.jsx)(J,{})}),(0,t.jsx)(ea,{name:m.ncd,value:`${x}%`,icon:(0,t.jsx)(W,{})}),(0,t.jsx)(ea,{name:m.numberOfClaims,value:g?.numberOfClaims??0,icon:(0,t.jsx)(ee,{}),isStartAlignment:!0})]})]})})]}):null};var el=e.i(674686);let ei=({gifts:e})=>{let[n,a]=(0,l.useState)(0),i=(0,l.useRef)(null),{slideWidth:s,slidesToShow:o}=(0,el.useBreakpoint)({_:{slideWidth:270,slidesToShow:1},md:{slideWidth:220,slidesToShow:1},lg:{slideWidth:220,slidesToShow:2}}),c=270===s;return(0,t.jsxs)("div",{className:"w-full relative flex pl-4 md:pl-6",children:[(0,t.jsx)("div",{ref:i,className:"carousel no-scrollbar flex w-full snap-x snap-mandatory gap-4 overflow-x-scroll scroll-smooth pr-4 md:pr-6",children:e.map((e,a)=>(0,t.jsx)("div",{className:(0,r.default)("md:max-w-55 sm:max-w-[270px] relative shrink-0 snap-start snap-always w-full md:min-h-38 sm:min-h-20 bg-gray-100 p-2 md:p-4 roun
2ded-lg",{"opacity-50":a+1>o+n}),children:!!e.gift&&(0,t.jsxs)("div",{className:"flex md:flex-col sm:flex-row md:items-start sm:items-center md:gap-3 sm:gap-2 size-full",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center rounded-lg bg-white p-2 outline outline-1 outline-gray-300 w-20 md:px-4 md:mr-0 md:w-full md:h-14 sm:h-12",children:(0,t.jsx)($.CmsImage,{className:"size-full object-contain",sizes:{_:156},src:c&&e.gift.mobile_image||e.gift.desktop_image,alt:"gift logo",width:156,height:40})}),(0,t.jsx)("p",{className:"gap-2 alpha-badge text-primary-800",children:e.gift.gift_title})]})},`rewards_gift__${e.id}`))}),(0,t.jsxs)("div",{className:"absolute flex z-1 justify-between self-center w-full pr-8 md:pr-12",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{i.current&&(i.current.scrollBy({left:-s,behavior:"smooth"}),a(n-1))},className:(0,r.default)("rotate-180 size-9 flex justify-center items-center rounded-full bg-white border border-gray-400",{invisible:0===n}),children:(0,t.jsx)(f.MaterialIcon,{icon:"arrow_forward",className:"text-gray-700"})}),(0,t.jsx)("button",{type:"button",onClick:()=>{i.current&&(i?.current.scrollBy({left:s,behavior:"smooth"}),a(n+1))},className:(0,r.default)("size-9 flex justify-center items-center rounded-full bg-white border border-gray-400",{invisible:n>=e.length-o}),children:(0,t.jsx)(f.MaterialIcon,{icon:"arrow_forward",className:"text-gray-700"})})]})]})},es=({singleGiftOffers:e,multipleGiftsOffers:n,isGiftOffersAvailable:a})=>{let r=(0,c.useCmsClientContext)(),l=(0,d.getClientTranslations)(G,r),i=(0,el.useBreakpoint)({_:!0,md:!1});return(0,t.jsx)("div",{className:"grow md:self-start self-stretch gap-4 h-auto py-4 md:py-6 overflow-hidden flex flex-col justify-start items-start rounded-2xl lg:rounded-3xl bg-white shadow-md",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 self-stretch w-full",children:[!a&&(0,t.jsx)("p",{className:"alpha-title-2 text-text/primary px-4 md:px-6",children:l.noRewards}),!!n.length&&(0,t.jsx)("p",{className:"alpha-title-2 text-text/primary px-4 md:px-6",children:l.multipleRewards}),n.map(e=>(0,t.jsx)(ei,{gifts:e.list_of_gifts??[]},e.uid)),a&&(0,t.jsx)("p",{className:"alpha-title-2 text-text/primary px-4 md:px-6",children:n.length?l.multipleGiftsAvailable:l.multipleGiftsNotAvailable}),(0,t.jsx)("div",{className:"px-4 md:px-6 gap-2 lg:gap-4 flex flex-col",children:e.map(e=>{let n=e.list_of_gifts?.[0]?.gift;
2return n?(0,t.jsxs)("div",{className:"p-2 md:p-4 rounded-lg bg-gray-100 items-center flex flex-row gap-2 md:gap-4",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center rounded-lg bg-white p-2 outline outline-1 outline-gray-300 w-20 md:px-4 md:mr-0 lg:w-47 lg:max-w-47 md:w-35 md:max-w-35 md:h-14 sm:h-12",children:(0,t.jsx)($.CmsImage,{className:"size-full object-contain",sizes:{_:156},src:i&&n.mobile_image||n.desktop_image,alt:"gift logo",width:156,height:40})}),(0,t.jsx)("p",{className:"gap-2 alpha-badge text-primary-800",children:n.gift_title})]},`rewards_gift__${n.uid}`):null})}),(0,t.jsxs)("span",{className:"text-xs md:text-sm text-gray-700 font-medium px-4 md:px-6",children:[l.termsCampaign," ",(0,t.jsx)("a",{href:"https://www.singsaver.com.sg/page/singsaver-terms",target:"_blank",rel:"noreferrer",className:"underline",children:l.termsApply})]})]})})},eo=({product:e,singleGiftOffers:n,multipleGiftsOffers:a,isGiftOffersAvailable:r,carInsuranceQuotes:l,productWithLivePrice:i,carInsuranceSection:s})=>{let o=(0,c.useCmsClientContext)(),u=(0,d.getClientTranslations)(G,o);return(0,t.jsxs)("div",{className:"bg-gray-200 flex flex-col grow md:flex-row md:items-start md:justify-evenly w-full px-3 md:px-0 xs:pb-3 md:pb-6 md:pt-3 sm:px-4",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row justify-center gap-4 lg:gap-6 w-full md:w-[720px] lg:w-[922px] -mt-10 md:-mt-15 sm:-mt-4",children:[(0,t.jsx)(es,{singleGiftOffers:n,multipleGiftsOffers:a,isGiftOffersAvailable:r}),(0,t.jsx)(er,{product:e,carInsuranceQuotes:l,productWithLivePrice:i,carInsuranceSection:s})]}),(0,t.jsxs)("span",{className:"my-4 alpha-caption text-gray-700 md:hidden sm:block",children:[u.termsBy," ",(0,t.jsx)("a",{href:"https://www.singsaver.com.sg/page/singsaver-terms",target:"_blank",rel:"noreferrer",className:"underline text-primary-800",children:u.termsAndConditions})," ",u.and," ",(0,t.jsx)("a",{href:"https://www.singsaver.com.sg/page/singsaver-privacy-policy",target:"_blank",rel:"noreferrer",className:"underline text-primary-800",children:u.privacyPolicyFooter})]})]})};var ec=e.i(417137),ed=e.i(594999),eu=e.i(7004);e.i(782316);var ep=e.i(619827),em=e.i(510274),eh=e.i(40232);let ef=({placeholder:e,type:n,onChange:i,onInput:s,disabled:o=!1,value:c,error:d,validateInput:u})=>{let p="!pl-10 !py-2 !pr-3 !h-9 md:!h-10 lg:!h-11 rounded-lg md:rounded-xl border-solid border !text-base !font-medium !text-gray-900 placeholder:opacity-100",m=`${p} !border-gray-400 focus:border-solid focus:border focus:!border-gray-600 focus:shadow-form placeholder-gray-700`,h=`${p} !border-[#E57373] !bg-[#FFEBEE] focus:shadow-none focus:!border-[#E57373] !placeholder-red-800`,g=(0,l.useRef)(null),x=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=e=>{g.current&&!g.current.contains(e.target)&&u&&u(c)};if(u)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c,u]),(0,t.jsxs)("div",{ref:x,className:"relative w-full flex",children:[(0,t.jsx)("div",{className:"absolute left-3 flex self-center z-1",children:(0,t.jsx)(f.MaterialIcon,{icon:"mail",className:(0,r.default)("cursor-default text-gray-700",{"text-red-800":d})})}),(0,t.jsx)(a.Input,{className:(0,r.default)(`w-full ${d?h:m}`,"h-9 md:h-10 lg:h-11"),placeholder:e,value:c,type:n,disabled:o,ref:g,onInput:s,labelProps:{className:"hidden"},containerProps:{className:"!min-h-9 md:!min-h-10 lg:!min-h-11 !h-9 md:!h-10 lg:!h-11"},onChange:e=>i(e.target.value)})]})},eg=e=>{let t=e.split(".");return t.length>2?t.slice(-2).join("."):e},ex=e=>{let{product:n,onClose:a,onCreateLead:r,pushDataLayer:i}=e,s=(0,c.useCmsClientContext)(),o=(0,d.getClientTranslations)(G,s),u=(0,ed.getAttrFromProduct)(ed.ATTR_NAMES.REWARD_PRODUCT_ID,n??void 0),m=u?.value,{open:h}=(0,em.useApplyV3Modal)(),f=(0,eh.useCtaUrl)({product:n??void 0}),[g,x]=(0,l.useState)(""),[b,y]=(0,l.useState)(),[v,C]=(0,l.useState)(!1),[T,E]=(0,l.useState)(!1),N=(0,l.useMemo)(()=>{if(f&&f.length>0&&f.indexOf("deeplink")>=0){let e=new URL(f).searchParams,t=e.get("destination")??"";if(e.get("destination"))return eg(new URL(t).hostname)??""}else if(f&&f.length>0)return eg(new URL(f).hostname)??"";return""},[f]),A=async()=>
2{if(!g)return void y(!0);if(n&&m&&!b){if(f){let e=(0,ep.matchApplyV3ModalIntent)(f);e?h(e):window.open(f,"_blank","noopener,noreferrer")}E(!0);try{let e=await r({email:g,productId:Number(m),consent:v,source:"extra1",searchParams:location.search}),t=g.toLowerCase(),l=g?.length?(0,eu.generateEmailHash)(g):"",s=g?.length?ec.default.SHA256(t).toString():"",o={email:t||"",email_hash_md5:l,email_hash_sha256:s},c={event:"reward_gateway",location:"rewards page",step_number:"1",step_name:"user-auth",intent:"Lead Submitted",marketing_consent:v?"yes":"no",lead_id:String(e?.leadId||""),reward_campaign_name:"",reward_campaign_id:m,reward_selected:"",user_data:o,userIdentities:structuredClone(o),items:[{item_id:n.uid??"",item_name:n.product_name??"",item_brand:n.provider?.provider_name??""}]};i(c),a(),e?.redemptionUrl&&window.open(e.redemptionUrl,"_self")}catch(e){console.error(e)}finally{E(!1)}}};return(0,t.jsx)("div",{className:"flex flex-row sticky bottom-0 py-8 lg:py-6 justify-evenly bg-gray-50 md:bg-white z-20 border-t border-gray-300",children:(0,t.jsxs)("div",{className:"w-full flex flex-col lg:w-fit lg:px-0 md:px-6 sm:px-4",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-2 md:gap-4",children:[(0,t.jsxs)("div",{className:"flex grow items-start justify-between flex-col gap-2 md:w-115 lg:w-max lg:min-w-max",children:[(0,t.jsx)("p",{className:"alpha-overline text-gray-900",children:o.shareEmail}),(0,t.jsx)(ef,{placeholder:b?o.emailError:"[email protected]",type:"email",value:g,onChange:e=>x(e),onInput:()=>{b&&y(void 0)},error:b,validateInput:()=>{g.trim().length>0&&y(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g))}})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start justify-between gap-2 md:w-61 lg:w-fit lg:min-w-fit",children:[!!N&&(0,t.jsxs)("p",{className:"alpha-caption text-gray-700 md:block hidden",children:[o.redirect," ",N]}),(0,t.jsx)(p.default,{styleType:"cta",onClick:A,disabled:!!b||T,className:"h-9 md:h-10 lg:h-11",children:T?(0,t.jsx)("span",{className:"flex items-center gap-2",children:(0,t.jsx)("span",{className:"size-4 animate-spin rounded-full border-2 border-white border-t-transparent"})}):o.buy})]})]}),(0,t.jsxs)("div",{className:"md:mt-4 sm:mt-2 flex flex-col gap-2 lg:w-page-max lg:self-center",children:[(0,t.jsx)(_.Checkbox,{onClick:()=>C(!v),containerClass:"!size-5",defaultValue:v,label:(0,t.jsxs)("span",{className:"text-text/primary alpha-body-2",children:[o.subscribe," ",(0,t.jsx)("a",{href:"https://www.singsaver.com.sg/page/singsaver-privacy-policy",target:"_blank",rel:"noreferrer",className:"text-primary-800 underline",onClick:e=>e.stopPropagation(),children:o.privacyPolicy})]})}),(0,t.jsx)("div",{className:"w-full border-b border-b-gray-300 hidden md:block"}),(0,t.jsxs)("span",{className:"self-center alpha-caption text-gray-700 md:block sm:hidden",children:[o.termsBy," ",(0,t.jsx)("a",{href:"https://www.singsaver.com.sg/page/singsaver-terms",target:"_blank",rel:"noreferrer",className:"underline text-primary-800",children:o.termsAndConditions})," ",o.and," ",(0,t.jsx)("a",{href:"https://www.singsaver.com.sg/page/singsaver-privacy-policy",target:"_blank",rel:"noreferrer",className:"underline text-primary-800",children:o.privacyPolicyFooter})]}),!!N&&(0,t.jsxs)("p",{className:"alpha-caption text-gray-700 sm:block md:hidden",children:[o.redirect," ",N]})]})]})})},eb=({isGiftOffersAvailable:e,brandLogoUrl:n,handleBack:a})=>{let r=(0,c.useCmsClientContext)(),l=(0,d.getClientTranslations)(G,r);return(0,t.jsx)("div",{className:"flex flex-row items-start justify-evenly w-full bg-primary-900 h-auto pb-8 md:pb-12 md:pt-0 sm:pb-4",children:(0,t.jsxs)("div",{className:"flex flex-row w-full lg:w-page-max md:justify-between p-4 md:p-6 lg:px-0",children:[(0,t.jsx)("p",{className:"grow content-end alpha-display-2 text-white pr-2 md:pr-0",children:e?l.giftsAvailable:l.giftsNotAvailable}),(0,t.jsxs)("div",{className:"flex flex-col items-end text-primary-100 text-sm md:text-base font-medium leading-5 cursor-pointer",children:[(0,t.jsxs)("div",{tabIndex:0,role:"button",className:"flex flex-row-reverse md:flex-row gap-1 pb-1 outline-none",onClick:a,children:[(0,t.jsx)(en,{}),(0,t.jsx)("span",{className:"underline",children:l.back})]}),(0,t.jsx)("div",{className:"w-25 shrink-0 grow-0 md:w-35 h-9",children:(0,t.jsx)($.CmsImage,{sizes:{_:140},src:n,alt:"Provider logo",width:140,height:36})})]})]})})},ey=({isOpen:e,onClose:n,product:r,carInsuranceQuotes:l,productWithLivePrice:i,metadata:s,onCreateLead:o,pushDataLayer:c})=>{let d=(0,H.usePathname)(),u=(0,H.useRouter)(),[p,m]=(0,U.useCmsHashState)({exclusiveRewardsProductUid:"string"}),h=!!p.exclusiveRewardsProductUid,f=()=>{window.history.length<=2?(window.location.hash="",u.replace(d||"/",{scroll:!1}),m({exclusiveRewardsProductUid:void 0}),n()):u.back()},g=r?.welcome_offers??[],x=[...r?.exclusive_offers??[],...r?.bundle_exclusive_offers??[],...g],b=x.filter(e=>(e.list_of_gifts?.length??0)===1),y=x.filter(e=>(e.list_of_gifts?.length??0)>1),_=!!b.length||!!y.length,v=s?.product_card?.find(e=>e.productBlock?.product?.uid===r?.uid)?.productBlock?.car_insurance;return(0,t.jsxs)(a.Dialog,{size:"xxl",className:"size-full bg-white overflow-x-hidden",open:e&&h,handler:e=>{e||f()},children:[(0,t.jsx)(eb,{isGiftOffersAvailable:_,brandLogoUrl:"https://mhgprod.blob.core.windows.net/singsaver/strapi-uploads/933_singsaver_white_9d76b81661.svg",handleBack:f}),(0,t.jsx)(eo,{product:r,singleGiftOffers:b,multipleGiftsOffers:y,isGiftOffersAvailable:_,carInsuranceQuotes:l,productWithLivePrice:i,carInsuranceSection:v}),(0,t.jsx)(ex,{product:r,onClose:f,onCreateLead:o,pushDataLayer:c})]})};var e_=e.i(69872),ev=e.i(95187);let eC=(0,ev.createServerReference)("7f5545bd058dbe56e8650a3aaa074f6c3ff4c9b372",ev.callServer,void 0,ev.findSourceMapURL,"CreateLeadSingsaver");var eT=e.i(295750),eE=e.i(26667),eN=e.i(378058),eA=e.i(471507),ek=e.i(663257),ew=e.i(454499);let eS=async e=>{let{vehicle:t,ncd:n,offenceFree:a,offPeak:r,noOfClaims:l,driver:i}=e,s=new eA.ClientProductsDomainService,o={manufactureYear:Number(t.manufactureYear),brandName:t.makeName||"",modelCode:t.modelCode,variantCode:t.trim||"",engineCapacity:void 0,seatingCapacity:void 0,vehicleAge:void 0},c=ek.CAR_INSURANCE_POLLING_WINDOW_MS,d=Date.now();if(!i)return{completed:"fail",premiums:[]};let u={age:i.age,dateOfBirth:i.dateOfBirth,gender:i.gender,maritalStatus:i.maritalStatus,occupation:i.occupationType,occupationType:i.occupationType,totalDrivingExperience:i.totalDrivingExperience},p=await s.getCompareQuote({mainDriver:u,vehicle:o,ncd:n,noOfClaims:l,offenceFree:a,offPeak:r},!0);return new Promise((e,t)=>
2{let n=async()=>{try{let t=await s.getPremiums({requestId:p,useBolttechData:!0});"object"==typeof t&&null!==t&&"completed"in t?t.completed||Date.now()-d>=c?e(t):setTimeout(n,1500):Date.now()-d<c?setTimeout(n,1500):e({completed:"fail",premiums:[]})}catch(e){t(e)}};n()})},eI=async e=>{let{driver:t,prices:n,vehicle:a}=e,r=new ew.CmsServiceClientVehiclesDomainService;if(!t)return[];let l=await r.getCarInsurancePremiums(a.makeName||"",a.modelCode,+a.manufactureYear,a.trim||"",n.propertyDamage??0,n.personalAccident??0,n.isActsOfNature||!1,a.type),i=l?.getCarInsuranceQuoteRequest?.quotes;return i?i.filter(Boolean).map(e=>({deductible:e.deductible,fmv:e.fmv,netPremium:e.netPremium,prices:{personalAccident:e.prices.personalAccident,bodilyInjury:e.prices.bodilyInjury,propertyDamage:e.prices.propertyDamage,ownDamageTheft:e.prices.ownDamageTheft,actOfNature:e.prices.actOfNature},taxes:{documentStamps:e.taxes.documentStamps,localGovernment:e.taxes.localGovernment,vat:e.taxes.vat},productId:e.productId,productName:e.productName,providerId:e.providerId,providerName:e.providerName,totalPremium:e.totalPremium})):[]};async function eD(e){let{requestParams:{driver:{value:t},prices:{value:n},vehicle:{value:a}}}=e;return t&&n?eI({driver:t,prices:n,vehicle:a}).then(e=>({status:!0,quotes:e})).catch(e=>(console.error("Polling for car insurance failed:",e),{status:"fail",quotes:[]})):{status:"fail",quotes:[]}}async function eL(e){let{requestParams:{vehicle:{value:t},ncd:{value:n},offenceFree:{value:a},driver:{value:r},offPeakVehicle:{value:l}}}=e;return eS({vehicle:t,ncd:n??0,offenceFree:(n??0)>=30?a||"Y":"N",offPeak:l??"",noOfClaims:r.numberOfClaims??0,driver:r}).then(e=>({status:e.completed,premiums:e.premiums})).catch(e=>(console.error("Polling for car insurance failed:",e),{status:"fail",premiums:[]}))}var ej=e.i(310928),eP=e.i(902639);e.s(["CardListingWrapperCar",0,e=>{let{metadata:a,vertical:r}=e,{pageData:i}=(0,eP.usePageDataContext)(),s=i.contactMe,{brand:o}=(0,eT.useClientContext)(),c=(0,b.useSafeCarInsuranceContext)(),d=c?.form,{isOpen:u,toggleModal:p,openModal:m}=(0,eE.useCarInsuranceCentralModal)(r??"CAR_INSURANCE"),{isOpen:h,closeModal:f,productUid:g}=(0,e_.default)(),[x,y]=(0,l.useState)({status:"Incomplete"}),[_,v]=(0,l.useState)({premiums:[]}),[C,T]=(0,l.useState)([]),E=(0,l.useRef)({id:0});(0,l.useEffect)(()=>{if(!c)return;let e=++E.current.id;y({status:"Incomplete"}),v(({premiums:e})=>({premiums:e})),"moneymax"===o?eD(c).then(t=>{if(e!==E.current.id)return;let{quotes:n,status:a}=t;y({status:a}),T(n),d?.setIsChanged(!1)}):eL(c).then(t=>{if(e!==E.current.id)return;let{premiums:n,status:a}=t;y({status:a}),v({premiums:n}),d?.setIsChanged(!1)})},[d?.isChanged]);let N=c?.requestParams.user.value,A=N?.firstName,k=N?.lastName,w=N?.email,S=N?.phone;(0,l.useEffect)(()=>{"moneymax"!==o||A&&k&&w&&S||m()},[]);let I=JSON.parse(JSON.stringify({...a,product_card:a?.product_card??[]})),D=g?a?.product_card?.find(e=>e.productBlock?.product?.uid===g)?.productBlock?.product??null:null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.CardListingPosition,{...e,metadata:I,productWithLivePrice:_.premiums,statusCarInsuranceRequest:x.status,calculateError:!1,carInsuranceQuotes:C,skeletonThreshold:0,travelQuotes:void 0,travelPremiumsData:void 0}),(0,t.jsx)(P,{isOpen:u,onClose:p,onOpen:m,onContactMe:eC,pushDataLayer:eN.pushDataLayer,contactMe:s}),(0,t.jsx)(ey,{isOpen:h,onClose:f,product:D,onCreateLead:ej.createLead,pushDataLayer:eN.pushDataLayer,carInsuranceQuotes:C,productWithLivePrice:_.premiums,metadata:I})]})}],757264),e.i(328419);var eM=e.i(424135),eO=e.i(478082),eR=e.i(789450);let eB=function({className:e}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48px",viewBox:"0 -960 960 960",width:"48px",fill:"currentColor",stroke:"currentColor",className:e,children:(0,t.jsx)("path",{d:"m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z"})})},eF=l.useLayoutEffect;var eH=e.i(40828);let eU=l.default.forwardRef((e,n)=>{var a;let i,{initialIsOpen:s=!1,hideCloseButton:o,disableClosingByOverlay:c,disableStickyMode:d,title:u,titleClassName:p,children:m,rootClassName:h,titleContainerClassName:f,bodyClassName:g}=e,[x,b]=l.default.useState(s),y=(a=e.onClose,i=l.useRef(a),eF(()=>{i.current=a}),l.useCallback((...e)=>(0,i.current)?.(...e),[])),_=l.default.useCallback(()=>{b(!1),y?.()},[y]);return(l.default.useEffect(()=>(x?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[x]),l.default.useImperativeHandle(n,()=>({open:()=>{b(!0)},close:_}),[_]),x)?(0,t.jsxs)(eH.Portal,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-modal size-full opacity-50 bg-[#25252B]",onClick:c?void 0:_}),(0,t.jsxs)("div",{className:(0,r.default)("fixed z-modal flex flex-col items-center bg-white","left-1/2 max-h-[80vh] -translate-x-1/2 overflow-y-auto",d?"bottom-auto top-1/2 w-111 max-w-[90%] -translate-y-1/2 roun
2ded-radius/card lg:w-123 xl:w-[554px]":"bottom-0 w-full rounded-t-radius/card md:bottom-auto md:top-1/2 md:w-111 md:max-w-[90%] md:-translate-y-1/2 md:rounded-radius/card lg:w-123 xl:w-[554px]",h),children:[u||!o?(0,t.jsxs)("div",{className:(0,r.default)("flex w-full items-center justify-between px-spacing/gap/x py-3 md:py-4",f),children:[u?(0,t.jsx)("h2",{className:(0,r.default)("mhg-alpha-typography-subheading-2 text-text/primary",p),children:u}):null,!o&&(0,t.jsx)("div",{tabIndex:0,onClick:_,className:"text-text/primary",role:"button",children:(0,t.jsx)(eB,{className:"size-6"})})]}):null,(0,t.jsx)("div",{className:(0,r.default)("mhg-alpha-typography-caption w-full overflow-y-auto text-[#616161]","flex-1","py-4 md:py-5 lg:py-6","md:max-h-[90vh] md:flex-none","no-scrollbar","px-4 lg:px-6",g),children:m})]})]}):null});eU.displayName="SlideUpModal",e.s(["SlideUpModal",0,eU],512629);let ez=function({className:e}){return(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,t.jsx)("mask",{id:"mask0_21393_112979",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,t.jsx)("g",{mask:"url(#mask0_21393_112979)",children:(0,t.jsx)("path",{d:"M10.5808 16.2538L17.3038 9.53075L16.25 8.47693L10.5808 14.1462L7.73078 11.2962L6.67696 12.35L10.5808 16.2538ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5Z",fill:"currentColor"})})]})},eG=function({className:e}){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,t.jsx)("path",{d:"M11.3193 21.2646C11.1001 21.1741 10.9001 21.0436 10.7193 20.8731L3.12701 13.2808C2.95651 13.1 2.82601 12.9 2.73551 12.6808C2.64517 12.4617 2.60001 12.2348 2.60001 12.0001C2.60001 11.7654 2.64517 11.5359 2.73551 11.3116C2.82601 11.0873 2.95651 10.8898 3.12701 10.7193L10.7193 3.1271C10.9001 2.94626 11.1001 2.81326 11.3193 2.7281C11.5384 2.64276 11.7653 2.6001 12 2.6001C12.2347 2.6001 12.4642 2.64276 12.6885 2.7281C12.9128 2.81326 13.1103 2.94626 13.2808 3.1271L20.873 10.7193C21.0538 10.8898 21.1868 11.0873 21.272 11.3116C21.3573 11.5359 21.4 11.7654 21.4 12.0001C21.4 12.2348 21.3573 12.4617 21.272 12.6808C21.1868 12.9 21.0538 13.1 20.873 13.2808L13.2808 20.8731C13.1103 21.0436 12.9128 21.1741 12.6885 21.2646C12.4642 21.3549 12.2347 21.4001 12 21.4001C11.7653 21.4001 11.5384 21.3549 11.3193 21.2646ZM11.25 13.0866H12.75V7.47135H11.25V13.0866ZM12.573 15.4673C12.7295 15.311 12.8078 15.12 12.8078 14.8943C12.8078 14.6687 12.7295 14.4777 12.573 14.3213C12.4167 14.1648 12.2257 14.0866 12 14.0866C11.7743 14.0866 11.5833 14.1648 11.427 14.3213C11.2705 14.4777 11.1923 14.6687 11.1923 14.8943C11.1923 15.12 11.2705 15.311 11.427 15.4673C11.5833 15.6238 11.7743 15.7021 12 15.7021C12.2257 15.7021 12.4167 15.6238 12.573 15.4673Z",fill:"currentColor"})})},eV=(0,z.staticText)({approval_odds_date_format:{_:"dd MMM yyyy",zh:"yyyyå¹´Mædæ¥"},popup_title:{_:"Your Chance of Approval",zh:"ä½ çæ¹æ ¸æ©æ"},approval_odds_determined:{_:"How are Approval Odds Determined?",zh:"æ¹æ ¸æ©æå¦ä½éå®ï¼"},determined_description:{_:"Odds are based on comparing your TransUnion credit profile with each products general requirements",zh:"æ¹æ ¸æ©ææ ¹æä½ çç°è¯ä¿¡è²¸è³æèåç¢åçä¸è¬è¦æ±æ¯å°èæã"},last_updated_label:{_:"Approval Odds Updated ",zh:"æ¹æ ¸æ©ææ´æ°æ¥æï¼"},disclaimer:{_:"Approval odds are estimates only and do not guarantee approval or rejection. Final decisions are made by the lender. ",zh:"æ¹æ ¸æ©æå
çºä¼°ç®ï¼ä¸¦ä¸ä¿èç²æ¹æè¢«æãæçµæ±ºå®ç±è²¸æ¬¾æ©æ§ä½åºã"},disclaimer_tnc_link:{_:"View full terms and conditions.",zh:"æ¥ç宿´æ¢æ¬¾åç´°åã"},button_mini_description:{_:"Requires SMS verification via TransUnion (~1 min)",zh:"éééç°è¯é²è¡çè¨é©èï¼ç´1åéï¼"},button_label:{_:"Update My Credit Data",zh:"æ´æ°æçä¿¡è²¸è³æ"},approval_odds_high:{_:"High",zh:"é«"},approval_odds_medium:{_:"Medium",zh:"ä¸"},approval_odds_low:{_:"Low",zh:"ä½"},approval_odds_unlock:{_:"Unlock",zh:"è§£é"},high_chance:{_:"Good Chance",zh:"æ©æé«"},medium_chance:{_:"Fair Chance",zh:"æ©æä¸è¬"},low_chance:{_:"Low Chance",zh:"æ©æä½"},none_chance:{_:"Not Available",zh:"ç®åæ«ç¡"},high_description:{_:"Your credit profile meets most or all of this products general requirements.",zh:"ä½ çä¿¡è²¸çæ³ç¬¦åæ¤ç¢åç大é¨åæå
¨é¨ä¸è¬è¦æ±ã"},medium_description:{_:"Your credit profile meets some but not all requirements. Approval is possible but not certain.",zh:"ä½ çä¿¡è²¸çæ³ç¬¦åé¨åè¦æ±ï¼ææ©æç²æ¹ä½ä¸¦ä¸ç¢ºå®ã"}
2,low_description:{_:"Your credit profile may not meet this products general requirements. Applying may result in a hard enquiry without a successful outcome.",zh:"ä½ çä¿¡è²¸çæ³å¯è½æªç¬¦åæ¤ç¢åçä¸è¬è¦æ±ï¼ç³è«ææç¢çç¡¬æ§æ¥è©¢èæªè½æåç²æ¹ã"},none_description:{_:"Approval odds are not available for this product yet. You can still apply as usual.",zh:"æ¤ç¢åæ«æªæä¾æ¹æ ¸æ©æãä½ ä»å¯å¦å¸¸ç³è«ã"},outdated_data_alert:{_:"Your Credit Data is Outdated",zh:"ä½ çä¿¡è²¸è³æå·²éæ"},updated_data_reminder:{_:"Your Credit Data is Up to Date",zh:"ä½ çä¿¡è²¸è³æå·²æ¯ææ°"},outdated_state_explanation:{_:"Your credit profile may have changed. Refresh to see odds based on your latest data.",zh:"ä½ çä¿¡è²¸çæ³å¯è½å·²è®æ´,éæ°æ´çä»¥æ ¹æææ°è³ææ¥çæ¹æ ¸æ©æã"}}),e$=({isOutdated:e})=>{let n=(0,c.useCmsClientContext)(),a=(0,d.getClientTranslations)(eV,n),i=(0,l.useMemo)(()=>e?{bg:"bg-highlights/red-light",text:"text-colors/supplementary-red-dark"}:{bg:"bg-fill/primary-light items-center",text:"text-text/accent"},[e]);return(0,t.jsxs)("div",{className:(0,r.default)("flex flex-row gap-spacing/gap/soft-8px rounded-radius/card-inner p-spacing/gap/y",i.bg),children:[(0,t.jsx)("div",{className:i.text,children:e?(0,t.jsx)(eG,{}):(0,t.jsx)(ez,{})}),(0,t.jsxs)("div",{className:(0,r.default)("flex flex-col gap-spacing/gap/soft-8px"),children:[(0,t.jsx)("div",{className:(0,r.default)("mhg-alpha-typography-title-2",i.text),children:e?(0,eR.tr)("outdated_data_alert",a):(0,eR.tr)("updated_data_reminder",a)}),e&&(0,t.jsx)("div",{className:"mhg-alpha-typography-body-2",children:(0,eR.tr)("outdated_state_explanation",a)})]})]})};e.i(133762);var eY=e.i(988823);let eW=({type:e,isFresh:n,showBorder:a})=>{let l=(0,c.useCmsClientContext)(),i=(0,d.getClientTranslations)(eV,l),s={HIGH:{subtitle:(0,eR.tr)("high_chance",i),description:(0,eR.tr)("high_description",i),textColor:"text-colors/supplementary-green-dark"},MEDIUM:{subtitle:(0,eR.tr)("medium_chance",i),description:(0,eR.tr)("medium_description",i),textColor:"text-colors/supplementary-yellow-dark"},LOW:{subtitle:(0,eR.tr)("low_chance",i),description:(0,eR.tr)("low_description",i),textColor:"text-colors/supplementary-orange-dark"},UNKNOWN:{subtitle:(0,eR.tr)("none_chance",i),description:(0,eR.tr)("none_description",i),textColor:"text-gray-700"}}[e],o={high:(0,eR.tr)("approval_odds_high",i),medium:(0,eR.tr)("approval_odds_medium",i),low:(0,eR.tr)("approval_odds_low",i),unlock:(0,eR.tr)("approval_odds_unlock",i)};return(0,t.jsxs)("div",{className:(0,r.default)("flex flex-col gap-spacing/gap/soft-12px pb-spacing/gap/y",{"border-b border-borders/default":a}),children:[(0,t.jsxs)("div",{className:(0,r.default)("mhg-alpha-typography-title-2 flex flex-row items-center gap-spacing/gap/soft-12px",s.textColor),children:[(0,t.jsx)(eY.ApprovalOddsBadge,{isLocked:!1,isFresh:n,degree:e,labels:o}),s.subtitle]}),(0,t.jsx)("div",{className:"mhg-alpha-typography-body-2-relaxed text-[#424242]",children:s.description})]})};function eq({children:e,show:n}){return(0,t.jsx)("div",{className:(0,r.default)("transition-opacity duration-500 font-label",n?"opacity-100":"opacity-0"),children:e})}e.s(["ApprovalOddsDrawer",0,({slideUpModalRef:e,onClose:n,onClickCTA:a,lastUpdated:l,isOutdated:i,pushDataLayer:s})=>{let o=(0,el.useBreakpoint)({_:"_",sm:"sm",md:"md",lg:"lg",xl:"xl",xxl:"xxl"}),u=(0,c.useCmsClientContext)(),m=(0,d.getClientTranslations)(eV,u),h=["HIGH","MEDIUM","LOW","UNKNOWN"];if(!l)return null;let f=(0,eR.tr)("approval_odds_date_format",m),g=(0,eO.formatData)(l,f,u.lang);return(0,t.jsxs)(eU,{title:(0,eR.tr)("popup_title",m),titleClassName:"font-font-weight/subheading-1 text-font-size/subheading-1 leading-line-height/subheading-1",ref:e,onClose:n,titleContainerClassName:" border-b border-borders/default !px-spacing/padding/x !py-spacing/padding/y-sm",rootClassName:"!p-[0px] no-scrollbar !flex !flex-col",bodyClassName:"!p-0 !overflow-y-auto !flex-1",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/section-y px-spacing/gap/x pt-spacing/margin/y",children:[(0,t.jsx)(e$,{isOutdated:i}),h.map((e,n)=>(0,t.jsx)(eW,{type:e,isFresh:!i,showBorder:n!==h.length-1},e))]}),(0,t.jsx)("div",{className:"flex flex-col gap-spacing/gap/soft-12px border-y border-borders/default",children:(0,t.jsxs)("div",{className:"flex flex-col px-spacing/gap/x py-spacing/gap/section-y gap-spacing/gap/soft-12px",children:[(0,t.jsx)("div",{className:"mhg-alpha-typography-bullet-2 text-text/primary",children:(0,eR.tr)("approval_odds_determined",m)}),(0,t.jsx)("div",{className:"mhg-alpha-typography-body-2-relaxed text-text/secondary-lighter",children:(0,eR.tr)("determined_description",m)})]})}),(0,t.jsxs)("div",{className:"mhg-alpha-typography-caption flex flex-col gap-spacing/gap/soft-12px px-spacing/gap/x py-spacing/gap/section-y",children:[(0,t.jsxs)("div",{children:[(0,eR.tr)("last_updated_label",m),l?g:"-"]}),(0,t.jsxs)("div",{children:[(0,eR.tr)("disclaimer",m),(0,t.jsx)("a",{href:"https://moneyhero.link/approval-odds-tnc",target:"_blank",rel:"noopener noreferrer",className:"underline",children:(0,eR.tr)("disclaimer_tnc_link",m)})]})]})]}),i&&(0,t.jsxs)("div",{className:(0,r.default)("flex flex-col items-center gap-spacing/gap/x px-spacing/padding/x py-spacing/padding/y-sm sticky bottom-0 bg-white",{"shadow-[0px_0px_12px_-1px_rgba(0,0,0,0.25)]":"sm"===o||"_"===o}),children:[(0,t.jsx)("div",{className:"mhg-alpha-typography-caption text-text/primary",children:(0,eR.tr)("button_mini_description",m)}),(0,t.jsx)(p.default,{className:"w-full px-button/padding-regular-x text-text/on-dark",variant:"filled",styleType:"primary",onClick:()=>{s?.({event:"credit_report_interaction",intent:"Refresh Credit Data",action:eM.UserActionEnum.CLICK,component_type:"drawer",component_title:"CHC Approval Odds Explanation Drawer/Footer CTA_Refresh My Credit Data",component_index:"1"}),a?.()},children:(0,eR.tr)("button_label",m)})]})]})}],85277),e.s(["Fade",()=>eq],661)},928441,e=>{"use strict";e.i(271210);var t=e.i(686148),n=e.i(443036);let a=(0,t.staticText)({show_all_banking_products:{_:"Show All Products",zh:"顯示ææéè¡æ¶å£"},show_all_investment_products:{_:"Show All Products",zh:"顯示å
¨é¨èå·å"},sta_bka_bank_gift:{_:"Provider Gift - On Top of Money101",zh:"éè¡åªæ "},offers:{_:"Offers",zh:"ç³è¾¦åéæå®é檻å³äº«æä»¥ä¸åªæ :"},apply_through:{_:"Apply through SingSaver and choose from :count premium rewards",zh:"éé Money101 ç³è«ï¼äº«ç¨å®¶éè·¯å¥½ç¦®ï¼ :count é
好禮æä¸"},purchase_through:{_:"Purchase through SingSaver and choose from :count premium rewards",zh:"éé Money101 購買ï¼äº«ç¨å®¶éè·¯å¥½ç¦®ï¼ :count é
好禮æä¸"},apply_through_stk_bka:{_:"Apply through Money101 and choose from :count premium rewards (Actual Gift eligibility depends on the deposit amount provided in the terms and conditions)",zh:"éé Money101 ç³è«ï¼äº«ç¨å®¶éè·¯å¥½ç¦®ï¼ :count é
好禮æä¸"}
2,bank_gift:{_:"Bank Gift - On Top of Money101",zh:"éè¡åªæ "},lender_gift:{_:"Lender Gift - On Top of Money101",zh:"éè¡åªæ "},brand_reward_product_modal:{_:"Money101 Reward",zh:"Money101 ç²¾é¸åªæ "},brand_reward_product_modal_cc:{_:"Money101 Reward",zh:"Money101 ç²¾é¸åªæ "},brand_reward_stk_bka:{_:"Money101 Reward",zh:"Money101 好禮å¹å¼"},loan_reward_bank_gift:{_:"Your Loan Rewards & Bank Gifts",zh:`ä½ ç貸款ç¨å®¶å¥½ç¦®èéè¡åªæ `},eligible_choose_reward:{_:`Youâre eligible to choose one reward based on your loan amount and tenure`,zh:`æ ¹æä½ 輸å
¥ç貸款éé¡å鿬¾æéï¼ä½ å¯ä»¥é¸æä»¥ä¸å
¶ä¸ä¸ååªæ `},eligible_choose_reward_without_tenure_and_amount:{_:`Youâre eligible to choose one reward`,zh:`æ ¹æä½ 輸å
¥ç貸款éé¡å鿬¾æéï¼ä½ å¯ä»¥é¸æä»¥ä¸å
¶ä¸ä¸ååªæ `},monthly_repayment:{_:"Monthly Repayment",zh:"æ¯æéæ¬¾éé¡"},annual_interest_rate:{_:"Annual Interest Rate",zh:"æä½è²¸æ¬¾å©ç"},APR:{_:"APR",zh:"總費ç¨å¹´ç¾åç"},loan:{_:"Loan",zh:"貸款"},reward_modal_loan_amount_with_end:{_:":start - :end",zh:"貸款éé¡ :start - :end"},reward_modal_loan_amount_without_end:{_:":start and above",zh:"貸款éé¡ :start æä»¥ä¸"},personal_loan_amount:{_:"Loan Amount (:currency)",zh:"貸款éé¡ (:currency)"},personal_loan_tenure:{_:"Tenure (months)",zh:"鿬¾æé (æ)"},personal_loan_amount_help:{_:"Most lenders offer loans between :currency:min_amount and :currency:max_amount depending on your profile.",zh:"大夿¸è²¸æ¬¾æ©æ§æä¾ç貸款éé¡ç¯åç´çº :currency:min_amount è³ :currency:max_amountï¼å¯¦éæ ¸åéé¡å°ä¾ç³è«äººåäººè³æèå®"},personal_loan_tenure_help:{_:"Loan tenure ranges from :min_tenure to :max_tenure months. Longer tenures mean smaller monthly payments but more interest overall.",zh:"鿬¾æéçº :min_tenure å° :max_tenure åæä¸çã鿬¾æéè¶é·ï¼æ¯æé款å£åè¼ä½ï¼ä½ç¸½æ¯ä»å©æ¯æè¼é«ã"},bank_gift_link:{_:"See the full welcome gift details",zh:`æ¥çæ´å¤åªæ 詳æ
`},lightdeal:{_:"Money101 Lightning Deal",zh:"Money101 éè·¯éå®åªæ "},standout_tips:{_:"Money101 Tips",zh:"Money101 ç財建è°"},standout_takeaways:{_:"Money101 Takeaways",zh:"Money101 éé»"},standout_perspective:{_:"Money101 Expert Perspective",zh:"Money101 å°å®¶è§é»"},loan_reward_lender_gift:{_:"Your Loan Rewards & Lender Gifts",zh:`Money101ç³è¾¦åªæ è³è¨`},loan_reward_provider_gift:{_:"Your Loan Rewards & Provider Gifts",zh:`Money101ç³è¾¦åªæ è³è¨`},lender_gift_info:{_:`Youâll also receive the following welcome gift(s) directly from the lender`,zh:`æ¤ç¢å享æä»¥ä¸éæåªæ `},loan_amount_exclusive_bold:{_:`For a <b>:product</b> of <b>:currency:amount</b> over <b>:tenure</b> months, youâll enjoy via <b>:brand</b>`,zh:`ç³è« <b>:product</b> <b>:currency:amount</b> å <b>:tenure</b> åæ æ¤éï¼ä¸¦éææå®æ¢ä»¶å³äº«æä»¥ä¸åªæ ï¼`},update_amount_tenure:{_:"Update Loan Amount / Tenure to Qualify",zh:"調æ´è²¸æ¬¾éé¡ï¼é款æé以符ååªæ è³æ ¼"},update_amount_tenure_unlock_reward:{_:"Update your loan amount to at least <b>:prefix:amount</b> and loan tenure to at least <b>:tenure month</b> to unlock exclusive gifts",zh:"å
§å®¹ï¼è«å°è²¸æ¬¾éé¡èª¿æ´è³è³å° <b>:prefix:amount</b> æå°é款æéå»¶é·è³è³å° <b>:tenure month</b> 鿿宿¢ä»¶å³å¯ç²å¾æé«"},worth_up_reward:{_:"<b>worth up to :prefix:reward</b>",zh:"<b>:prefix:reward å°å±¬å¥½ç¦®</b>"},welcome_text_single:{zh:"ç¨å®¶åªæ éæäº«æï¼",_:"ç¨å®¶åªæ éæäº«æï¼"},welcome_text:{zh:"ç¨å®¶åªæ éæäº«æï¼",_:"ç¨å®¶åªæ éæäº«æï¼"}}),r=(0,t.staticText)({brand_reward_stk_bka:{_:"MoneyHero Reward",zh:"MoneyHeroçè³å¹å¼"},brand_reward_product_modal:{_:"MoneyHero Reward",zh:"MoneyHeroçè³å¹å¼"},brand_reward_product_modal_cc:{_:"MoneyHero Reward",zh:"MoneyHeroçè³å¹å¼"},show_all_travel_insurance_products:{_:"Show All Products",zh:"顯示ææç¢å"},show_all_car_insurance_products:{_:"Show All Products",zh:"顯示ææç¢å"},apply_through:{_:"Apply through MoneyHero and choose from :count premium rewards",zh:"ãç¶MoneyHeroç³è«,ç²¾é¸çè³ä»»ä½ æ!çè³é¸æ(:count) ã"},purchase_through:{_:"Purchase through MoneyHero and choose from :count premium rewards",zh:"ç¶MoneyHeroæä¿ ï¼ç²¾é¸çè³ä»»ä½ æï¼çè³
2鏿(:count)"},apply_through_stk_bka:{_:"Apply through MoneyHero and choose from :count premium rewards (Actual Gift eligibility depends on the deposit amount provided in the terms and conditions)",zh:"ç¶MoneyHeroç³è«ï¼ç²¾é¸çè³ä»»ä½ æï¼çè³é¸æ :count (實éçè³è³æ ¼é è¦ä¹æ¢æ¬¾åç´°åæåç忬¾éé¡èå®)"},bank_gift:{_:"Bank Gift - On Top of MoneyHero's",zh:"ç¢å禮é"},lender_gift:{_:"Lender Gift - On Top of MoneyHero's",zh:"ç¢å禮é"},sta_bka_bank_gift:{_:"Provider Gift - On Top of MoneyHero's",zh:"ç¢å禮é"},standout_tips:{_:"MoneyHero Tips",zh:"MoneyHero ç財建è°"},standout_takeaways:{_:"MoneyHero Takeaways",zh:"MoneyHero éé»"},standout_perspective:{_:"MoneyHero Expert Perspective",zh:"MoneyHero å°å®¶è§é»"},lightdeal:{_:"MoneyHero Lightning Deal",zh:"MoneyHero éæåªæ "},reward_modal_loan_amount_with_end:{_:":label :start - :end",zh:":label :start - :end"},reward_modal_loan_amount_without_end:{_:":label :start",zh:":label :start"},reward_modal_tenure_with_end:{_:":label :start - :end month tenure",zh:":label :prefix:start :suffix - :prefix:end :suffix"},reward_modal_tenure_without_end:{_:":label :start month tenure :suffix",zh:":label :start :suffix"}}),l=(0,t.staticText)({brand_reward_stk_bka:{_:"Moneymax Reward"},brand_reward_product_modal:{_:"Moneymax Reward"},brand_reward_product_modal_cc:{_:"Moneymax Reward"},apply_through:{_:"Apply through Moneymax and choose from :count premium rewards"},purchase_through:{_:"Purchase through SingSaver and choose from :count premium rewards"},apply_through_stk_bka:{_:"Apply through Moneymax and choose from :count premium rewards (Actual Gift eligibility depends on the deposit amount provided in the terms and conditions)"},bank_gift:{_:"Bank Gift - On Top of Moneymax's",zh:"ç¢å禮é"},lender_gift:{_:"Lender Gift - On Top of Moneymax's",zh:"ç¢å禮é"},lightdeal:{_:"Moneymax Lightning Deal",zh:"Moneymax éæåªæ "},standout_tips:{_:"MoneyMax Tips",zh:"MoneyMax ç財建è°"},standout_takeaways:{_:"MoneyMax Takeaways",zh:"MoneyMax éé»"},standout_perspective:{_:"MoneyMax Expert Perspective",zh:"MoneyMax å°å®¶è§é»"}}),i=(0,t.brandSpecificStaticText)({_:n.CONTENT_MHG_STATIC,moneyhero:r,money101:a,moneymax:l});e.s(["TRANSLATIONS",0,i],928441)},665738,(e,t,n)=>{var a=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g;function u(e){return e?e.replace(d,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,d=1;function p(e){var t=e.match(r);t&&(n+=t.length);var a=e.lastIndexOf("\n");d=~a?e.length-a:d+e.length}function m(){var e={line:n,column:d};return function(t){return t.position=new h(e),x(l),t}}function h(e){this.start=e,this.end={line:n,column:d},this.source=t.source}h.prototype.content=e;var f=[];function g(a){var r=Error(t.source+":"+n+":"+d+": "+a);if(r.reason=a,r.filename=t.source,r.line=n,r.column=d,r.source=e,t.silent)f.push(r);else throw r}function x(t){var n=t.exec(e);if(n){var a=n[0];return p(a),e=e.slice(a.length),n}}function b(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var a=e.slice(2,n-2);return d+=2,p(a),e=e.slice(n),d+=2,t({type:"comment",comment:a})}}x(l);var _,v=[];for(b(v);_=function(){var e=m(),t=x(i);if(t){if(y(),!x(s))return g("property missing ':'");var n=x(o),r=e({type:"declaration",property:u(t[0].replace(a,"")),value:n?u(n[0].replace(a,"")):""});return x(c),r}}();)!1!==_&&(v.push(_),b(v));return v}},681383,(e,t,n)=>{"use strict";var a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var r=a(e.r(665738));n.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var a=(0,r.default)(e),l="function"==typeof t;return a.forEach(function(e){if("declaration"===e.type){var a=e.property,r=e.value;l?t(a,r,e):r&&((n=n||{})[a]=r)}}),n}},104100,(e,t,n)=>{"use strict";var a=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},o=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,n=a.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&a.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!l)return!1;for(t in e);return void 0===t||a.call(e,t)},c=function(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,t){if("__proto__"===t){if(!a.call(e,t))return;else if(i)return i(e,t).value}return e[t]};t.exports=function e(){var t,n,a,r,l,i,u=arguments[0],p=1,m=arguments.length,h=!1;for("boolean"==typeof u&&(h=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<m;++p)if(t=arguments[p],null!=t)for(n in t)a=d(u,n),u!==(r=d(t,n))&&(h&&r&&(
2o(r)||(l=s(r)))?(l?(l=!1,i=a&&s(a)?a:[]):i=a&&o(a)?a:{},c(u,{name:n,newValue:e(h,i,r)})):void 0!==r&&c(u,{name:n,newValue:r}));return u}},878942,718942,908251,462416,349279,185775,784626,191133,25375,237922,69712,168247,871231,272702,557581,917691,142202,e=>{"use strict";let t;var n,a,r,l,i,s,o,c,d,u,p,m,h,f,g,x,b,y,_,v,C,T,E,N,A,k,w,S,I,D,L,j=e.i(843476),P=e.i(419747),M=e.i(757264),O=e.i(414021);e.i(133762);var R=e.i(325063),B=e.i(85277),F=e.i(343794),H=e.i(271645),U=e.i(295750),z=e.i(218646),G=e.i(789450),V=e.i(637243),$=e.i(605122),Y=e.i(450818);e.i(910881);var W=e.i(943032),q=e.i(968673),K=e.i(661),Q=e.i(928441);e.i(843780);var Z=e.i(892063);e.i(45030);var X=e.i(359747),J=e.i(618566),ee=e.i(279143);e.i(245213);let et=e=>{let t=(0,J.usePathname)(),n=(0,X.useSafeSearchParams)(),a={amount:n?.get("amount")||n?.get(`${ee.cmsQueryParamsPrefix}amount`)||e?.amount,tenure:n?.get("tenure")||n?.get(`${ee.cmsQueryParamsPrefix}tenure`)||e?.tenure};return(!a.amount||Number.isNaN(+a.amount))&&(a.amount=e?.amount),(!a.tenure||Number.isNaN(+a.tenure))&&(a.tenure=e?.tenure),{loanSearchParams:a,setLoanSearchParams:e=>{let n=new URLSearchParams(window.location.search);e.amount&&(n.set(`${ee.cmsQueryParamsPrefix}amount`,e.amount),n.delete("amount"),a.amount=e.amount),e.tenure&&(n.set(`${ee.cmsQueryParamsPrefix}tenure`,e.tenure),n.delete("tenure"),a.tenure=e.tenure);let r=`${t}?${n.toString()}`;return window.history.pushState(null,"",r),a}}};e.s(["useLoanSearchParams",0,et],718942);var en=e.i(418081);let ea=e=>{let{loanSearchParams:n,setLoanSearchParams:a}=et(e.defaultValue),r=(0,U.useClientContext)(),l=(0,en.getClientTranslations)(Q.TRANSLATIONS,r),i=n?.[e.searchParam]??e.defaultValue?.[e.searchParam],[s,o]=(0,H.useState)(i?g(i):""),[c,d]=(0,H.useState)(i||""),[u,p]=(0,H.useState)(""),[m,h]=(0,H.useState)(!1);(0,H.useEffect)(()=>{let t=n?.[e.searchParam]??"";d(t),o(t?g(t):"")},[n?.[e.searchParam]]);let f=(0,q.useDebouncedCallback)(i=>{if(!(+i<=(e.max??1/0)&&+i>=e.min)){let t=e=>{let t=Math.floor(e/1e3);return t?`${t}K`:e},n="moneyhero"===r.brand?z.currencyFormatterNoDecimal.format(e.min):`${e.prefix??""}${t(+e.min)}`;if(e.max){let a=e.prefix?l.personal_loan_error:l.personal_loan_months_error,i="moneyhero"===r.brand?z.currencyFormatterNoDecimal.format(e.max):`${e.prefix??""}${t(+e.max)}`;p(a.replace("{{min}}",n).replace("{{max}}",i));return}p((e.prefix?l.personal_loan_amount_min_error:l.personal_loan_month_min_error).replace("{{min}}",n));return}clearTimeout(t),h(!0),t=setTimeout(()=>{h(!1)},2e3),p("");let s=a({...n,[e.searchParam]:i});e.onFinished?.(s,!1)},1e3);function g(e){let t=e.replace(/\D/g,"");return t?z.currencyFormatterNoDecimal.format(+t):""}let x=e=>{let t=e.replace(/[^\d-]/g,"");if(t.includes("-")&&(t=`-${t.replace(/-/g,"")}`),"-"===t||""===t){o(t),d(t),f(t);return}d(t),o(g(t)),f(t)};return(0,j.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,j.jsxs)("div",{className:"flex flex-row items-center gap-1",children:[(0,j.jsx)("span",{className:"mhg-alpha-caption text-highlights/gray-dark",children:e.title}),e.help&&(0,j.jsx)(Z.default,{variant:"text",className:"h-full p-0","aria-label":"Help",children:(0,j.jsx)($.default,{placement:"top",onOpenEvent:"hover",content:e.help,tooltipClass:"rounded-s z-[--z-index-dropdown]",infoClass:"size-4 md:size-[18px] lg:size-[18px]",onClick:()=>{}})})]}),(0,j.jsxs)("form",{children:[(0,j.jsxs)("div",{className:"relative",children:[(0,j.jsx)(Y.Input,{"aria-label":e.title,max:e.max,min:e.min,error:!!u,value:s,onChange:e=>x(e.target.value),onBlur:()=>{""!==c&&"-"!==c&&c?x(c):x((e.min??0).toString())},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())},onFocus:e=>{e.stopPropagation(),e.preventDefault(),o("")},style:{borderWidth:"1px"},containerProps:{className:e.inputClassname},className:(0,F.default)("font-[600] bg-white text-text/primary hover:!border-gray-600 hover:shadow-md focus:!border-gray-600 focus:shadow-md",{"!border-border/form-error outline-borders/form-error !bg-red-light":u})}),u?(0,j.jsx)(K.Fade,{show:!0,children:(0,j.jsx)(W.MaterialIcon,{icon:"cancel",className:"absolute right-3 top-2 text-highlights/red-dark md:top-3"})}):(0,j.jsx)(K.Fade,{show:m,children:(0,j.jsx)(V.default,{className:"absolute right-3 top-2 text-highlights/green-dark md:top-3"})})]}),u?(0,j.jsx)("div",{className:"mhg-alpha-typography-badge mt-1.5 text-highlights/red-dark",children:u}):null]})]})};e.s(["FilterInput",0,ea],908251);var er=e.i(902639);let el=e=>{var t;let n=(0,U.useClientContext)(),a=(0,H.useRef)(!0),{loanSearchParams:r}=et(e.defaultParams),{pageType:l,pageData:i}=(0,er.usePageDataContext)();i.page.section;let s=(0,en.getClientTranslations)(Q.TRANSLATIONS,n),o=e.min_loan_amount??1e3,c=e.max_loan_amount,d=e.min_loan_tenure??6,u=e.max_loan_tenure,p={max:(t={initialMaxLoanAmount:e.max_loan_amount,brand:n.brand,pageType:l,section:i.page.section}).initialMaxLoanAmount?t.initialMaxLoanAmount:"article"===t.pageType&&"PERSONAL_LOANS"===t.section||"singsaver"===t.brand?1e5:6e5,min:o};(0,H.useEffect)(()=>
2{if(a.current){a.current=!1;return}try{e.onFinished?.(r)}catch(e){console.debug("ERROR",e.message)}},[r.amount,r.tenure,e.onlyListen]);let m="!w-[160px] md:!w-full !min-w-[160px] md:!min-w-[200px]";return(0,j.jsxs)("div",{style:{overflow:"hidden"},className:(0,F.default)("flex flex-row gap-2 py-4 bg-fill/base md:gap-4",{hidden:!e.show}),children:[(0,j.jsx)(ea,{onFinished:e.onFinished,title:(0,G.tr)("personal_loan_amount",s,{currency:n.currencyDisplay}),help:(0,G.tr)("personal_loan_amount_help",s,{currency:n.currencyDisplay,max_amount:z.currencyFormatterNoDecimal.format(p.max),min_amount:z.currencyFormatterNoDecimal.format(p.min)}),inputClassname:m,defaultValue:e.defaultParams,searchParam:"amount",prefix:n.currencyDisplay,min:o,max:c}),(0,j.jsx)(ea,{title:s.personal_loan_tenure,help:(0,G.tr)("personal_loan_tenure_help",s,{currency:n.currencyDisplay,min_tenure:d.toString(),max_tenure:(u??84).toString()}),inputClassname:m,onFinished:e.onFinished,defaultValue:e.defaultParams,min:d,max:u,searchParam:"tenure"})]})};var ei=e.i(104249);let es=e=>(0,j.jsxs)(j.Fragment,{children:["PERSONAL_LOANS"===e.vertical?(0,j.jsx)(ei.PortalTo,{rootId:"personal-loan-filter",children:(0,j.jsx)(el,{onlyListen:!!e.onlyListen&&"PERSONAL_LOANS"===e.vertical,show:"PERSONAL_LOANS"===e.vertical&&!e.onlyListen,onFinished:e.onFinishedEnterFilter,defaultParams:e.defaultParams,max_loan_amount:e.max_loan_amount,max_loan_tenure:e.max_loan_tenure,min_loan_amount:e.min_loan_amount,min_loan_tenure:e.min_loan_tenure})}):null,e.wrapperClassName?(0,j.jsx)("div",{className:e.wrapperClassName,children:e.children}):e.children]});e.s(["PersonalLoanFilterWrapper",0,es],462416);let eo=(e,t=0,n=0)=>e?(0,z.currencyFormatterFactory)({minimumFractionDigits:t,maximumFractionDigits:n}).format(+e):e,ec=(e,t)=>e?e.map(e=>{let n={...e??{}};if(!n||!n?.name?.name||"ComponentAttributesAttrNumberRange"===n.__typename)return n;switch(n.name.name){case"MONTHLY_REPAYMENT":n.value=t?eo(t?.monthlyRepayment):"";break;case"HANDLING_FEE":n.value=t?eo(t?.totalFees):"";break;case"TOTAL_INTEREST":n.value=t?eo(t?.totalInterest):"";break;case"TOTAL_REPAYMENT":n.value=t?eo(t?.totalRepayment):"";break;case"APR":n.value=t?t?.annualisedPercentageRate?.replace("%",""):"";break;case"ANNUAL_RATE":n.value=t?t?.interest?.interestRate?.replace("%",""):"";break;case"INTRODUCTORY_ANNUAL_RATE":n.value=t?eo(t?.introductoryAnnualRate,0,2):"";break;case"DAILY_INTEREST":n.value=t?t?.dailyInterest:"";break;case"INTRODUCTORY_MONTHLY_REPAYMENT":n.value=t?eo(t?.introductoryRateOnPrincipalReducing):""}return n}):[];e.s(["RecalculateProductAttributes",0,ec],349279);let ed=(e,t,n)=>{let a=t?.amount??t?.cms_amount,r=t?.tenure??t?.cms_tenure;return{amount:(()=>{switch(!0){case!!a:return a;case!!n?.amount:return n.amount;case"singsaver"===e:return"15000";case"moneyhero"===e:return"300000";default:return"30000"}})(),tenure:(()=>{switch(!0){case!!r:return r;case!!n?.tenure:return n.tenure;case"singsaver"===e:return"36";case"moneyhero"===e:return"24";default:return"12"}})()}};e.s(["getLoanSearchParamsWithDefaultComponentParam",0,ed],185775);var eu=e.i(378058),ep=e.i(23219);let em=new Map,eh=new Map;function ef(e,t){return em.get(e)?.get(t)}function eg(e,t,n){let a=em.get(e);a||(a=new Map,em.set(e,a)),a.set(t,n)}function ex(e,t){return eh.get(e)?.get(t)}function eb(e,t){let n=ex(e,t);if(n)for(let e of n)e()}function ey(e,t){let n=ef(e,t),a=n&&"loading"!==n.status?n:{status:"loading",generation:Symbol("approval-odds-fetch")};a!==n&&eg(e,t,a),(async()=>{let n=!1;try{let r=await fetch("/api/-cms/approval-odds",{method:"POST",body:"{}",headers:{"accept-language":t,"content-type":"application/json"}});if(ef(e,t)!==a)return;if(!r.ok){eg(e,t,{status:"error",error:Error(`http ${r.status}`)}),n=!0;return}let l=await r.json();if(ef(e,t)!==a)return;eg(e,t,{status:"ready",result:l}),n=!0}catch(r){if(ef(e,t)!==a)return;eg(e,t,{status:"error",error:r}),n=!0}finally{n&&eb(e,t)}})()}function e_(e,t){let n;if((ex(e,t)?.size??0)>0){ey(e,t),eb(e,t);return}(n=em.get(e))&&(n.delete(t),0===n.size&&em.delete(e)),eb(e,t)}
2async function ev(e,t,n){let a=await fetch("/api/-cms/approval-odds-consent",{method:"POST",body:JSON.stringify({input:{consentAgreements:n}}),headers:{"content-type":"application/json"}});if(!a.ok)throw Error(`http ${a.status}`);let{success:r,...l}=await a.json();if(!r)throw Error("Consent update failed");return!function(e,t,n){let a=ef(e,t);if(!a||"ready"!==a.status)return;let r=new Date().toISOString(),l=[...a.result.chcUserConsents.consents];for(let e of n){let t={agreementId:e.agreementId,agreementVersion:e.agreementVersion,status:"ACCEPTED",consentedAt:r},n=l.findIndex(t=>t.agreementId===e.agreementId&&t.agreementVersion===e.agreementVersion);if(n>=0){l[n]=t;continue}l.push(t)}eg(e,t,{status:"ready",result:{...a.result,chcUserConsents:{...a.result.chcUserConsents,consents:l}}}),eb(e,t)}(e,t,n),e_(e,t),l}e.i(882337);var eC=e.i(163137);let eT={odds:{},lastUpdated:null,userState:"guest",agreements:[],consents:[]};function eE(e,t,n){let a=(0,eC.useIdentity)(),r=a?.sub,l=(0,H.useMemo)(()=>(0,ep.languageCode)(n),[n]),[i,s]=(0,H.useState)(()=>r&&t?ef(r,l):void 0);(0,H.useEffect)(()=>{let e,n;if(!r||!t)return void s(void 0);let a=()=>s(ef(r,l)),i=((e=eh.get(r))||(e=new Map,eh.set(r,e)),(n=e.get(l))||(n=new Set,e.set(l,n)),n.add(a),()=>{let e=eh.get(r)?.get(l);if(!e||(e.delete(a),e.size>0))return;let t=eh.get(r);t?.delete(l),(t?.size??0)===0&&eh.delete(r)});return ef(r,l)||(ey(r,l),eb(r,l)),a(),i},[r,t,l]);let o=(0,H.useMemo)(()=>r?i?"ready"===i.status?{odds:eN(i.result,e),lastUpdated:i.result.lastUpdated,userState:i.result.userState,agreements:i.result.chcConsentAgreements.agreements,consents:i.result.chcUserConsents.consents}:"error"===i.status?eT:null:null:eT,[i,e,r]),c=(0,H.useCallback)(()=>{r&&e_(r,l)},[r,l]),d=(0,H.useCallback)(async e=>{if(!r)throw Error("No authenticated user");return ev(r,l,e)},[r,l]);return{data:o,loading:!!r&&i?.status==="loading",error:i?.status==="error"?i.error:null,refresh:c,sendConsent:d}}let eN=(e,t)=>{let n=new Map,a=new Map;for(let t of e.odds){if(t.productId){n.set(t.productId,t.approvalDegree);continue}if(!t.issuerName)continue;let e=t.issuerName.toLowerCase();a.has(e)||a.set(e,t.approvalDegree)}let r={};for(let e of t){if(!e.title)continue;let t=n.get(e.title);if(void 0!==t){r[e.title]=t;continue}let l=e.provider?.provider_uid?.toLowerCase();if(!l)continue;let i=a.get(l);void 0!==i&&(r[e.title]=i)}return r};function eA(){}function ek(){}function ew(e){let t=[],n=String(e||""),a=n.indexOf(","),r=0,l=!1;for(;!l;){-1===a&&(a=n.length,l=!0);let e=n.slice(r,a).trim();(e||!l)&&t.push(e),r=a+1,a=n.indexOf(",",r)}return t}function eS(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}e.s(["useApprovalOdds",()=>eE],784626);let eI=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eL={};function ej(e,t){return((t||eL).jsx?eD:eI).test(e)}let eP=/[ \t\n\f\r]/g;function eM(e){return""===e.replace(eP,"")}function eO(e){return e.toLowerCase()}class eR{constructor(e,t){this.property=e,this.attribute=t}}eR.prototype.space=null,eR.prototype.boolean=!1,eR.prototype.booleanish=!1,eR.prototype.overloadedBoolean=!1,eR.prototype.number=!1,eR.prototype.commaSeparated=!1,eR.prototype.spaceSeparated=!1,eR.prototype.commaOrSpaceSeparated=!1,eR.prototype.mustUseProperty=!1,eR.prototype.defined=!1;let eB=0,eF=eY(),eH=eY(),eU=eY(),ez=eY(),eG=eY(),eV=eY(),e$=eY();function eY(){return 2**++eB}e.s(["boolean",0,eF,"booleanish",0,eH,"commaOrSpaceSeparated",0,e$,"commaSeparated",0,eV,"number",0,ez,"overloadedBoolean",0,eU,"spaceSeparated",0,eG],825045);var eW=e.i(825045);let eq=Object.keys(eW);class eK extends eR{constructor(e,t,n,a){let r=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",a),"number"==typeof n)for(;++r<eq.length;){const e=eq[r];!function(e,t,n){n&&(e[t]=n)}(this,eq[r],(n&eW[e])===eW[e])}}}eK.prototype.defined=!0;let eQ=/^data[-\w.:]+$/i,eZ=/-[a-z]/g,eX=/[A-Z]/g;function eJ(e){return"-"+e.toLowerCase()}function e0(e){return e.charAt(1).toUpperCase()}let e1={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class e2{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function e3(e,t){let n={},a={},r=-1;for(;++r<e.length;)Object.assign(n,e[r].property),Object.assign(a,e[r].normal);return new e2(n,a,t)}e2.prototype.property={},e2.prototype.normal={},e2.prototype.space=null;let e4={}.hasOwnProperty;function e5(e){let t,n={},a={};for(t in e.properties)if(e4.call(e.properties,t)){let r=e.properties[t],l=new eK(t,e.transform(e.attributes||{},t),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(l.mustUseProperty=!0),n[t]=l,a[eO(t)]=t,a[eO(l.attribute)]=t}return new e2(n,a,e.space)}let e6=e5({space:"xlink",transform:(e,t)=>
vendor: 4,219 bytes, line 2
2"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),e7=e5({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function e8(e,t){return t in e?e[t]:t}function e9(e,t){return e8(e,t.toLowerCase())}let te=e5({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:e9,properties:{xmlns:null,xmlnsXLink:null}}),tt=e5({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:eH,ariaAutoComplete:null,ariaBusy:eH,ariaChecked:eH,ariaColCount:ez,ariaColIndex:ez,ariaColSpan:ez,ariaControls:eG,ariaCurrent:null,ariaDescribedBy:eG,ariaDetails:null,ariaDisabled:eH,ariaDropEffect:eG,ariaErrorMessage:null,ariaExpanded:eH,ariaFlowTo:eG,ariaGrabbed:eH,ariaHasPopup:null,ariaHidden:eH,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:eG,ariaLevel:ez,ariaLive:null,ariaModal:eH,ariaMultiLine:eH,ariaMultiSelectable:eH,ariaOrientation:null,ariaOwns:eG,ariaPlaceholder:null,ariaPosInSet:ez,ariaPressed:eH,ariaReadOnly:eH,ariaRelevant:null,ariaRequired:eH,ariaRoleDescription:eG,ariaRowCount:ez,ariaRowIndex:ez,ariaRowSpan:ez,ariaSelected:eH,ariaSetSize:ez,ariaSort:null,ariaValueMax:ez,ariaValueMin:ez,ariaValueNow:ez,ariaValueText:null,role:null}}),tn=e5({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:e9,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eV,acceptCharset:eG,accessKey:eG,action:null,allow:null,allowFullScreen:eF,allowPaymentRequest:eF,allowUserMedia:eF,alt:null,as:null,async:eF,autoCapitalize:null,autoComplete:eG,autoFocus:eF,autoPlay:eF,blocking:eG,capture:null,charSet:null,checked:eF,cite:null,className:eG,cols:ez,colSpan:null,content:null,contentEditable:eH,controls:eF,controlsList:eG,coords:ez|eV,crossOrigin:null,data:null,dateTime:null,decoding:null,default:eF,defer:eF,dir:null,dirName:null,disabled:eF,download:eU,draggable:eH,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:eF,formTarget:null,headers:eG,height:ez,hidden:eF,high:ez,href:null,hrefLang:null,htmlFor:eG,httpEquiv:eG,id:null,imageSizes:null,imageSrcSet:null,inert:eF,inputMode:null,integrity:null,is:null,isMap:eF,itemId:null,itemProp:eG,itemRef:eG,itemScope:eF,itemType:eG,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:eF,low:ez,manifest:null,max:null,maxLength:ez,media:null,method:null,min:null,minLength:ez,multiple:eF,muted:eF,name:null,nonce:null,noModule:eF,noValidate:eF,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:eF,optimum:ez,pattern:null,ping:eG,placeholder:null,playsInl
2ine:eF,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:eF,referrerPolicy:null,rel:eG,required:eF,reversed:eF,rows:ez,rowSpan:ez,sandbox:eG,scope:null,scoped:eF,seamless:eF,selected:eF,shadowRootClonable:eF,shadowRootDelegatesFocus:eF,shadowRootMode:null,shape:null,size:ez,sizes:null,slot:null,span:ez,spellCheck:eH,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ez,step:null,style:null,tabIndex:ez,target:null,title:null,translate:null,type:null,typeMustMatch:eF,useMap:null,value:eH,width:ez,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:eG,axis:null,background:null,bgColor:null,border:ez,borderColor:null,bottomMargin:ez,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:eF,declare:eF,event:null,face:null,frame:null,frameBorder:null,hSpace:ez,leftMargin:ez,link:null,longDesc:null,lowSrc:null,marginHeight:ez,marginWidth:ez,noResize:eF,noHref:eF,noShade:eF,noWrap:eF,object:null,profile:null,prompt:null,rev:null,rightMargin:ez,rules:null,scheme:null,scrolling:eH,standby:null,summary:null,text:null,topMargin:ez,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ez,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:eF,disableRemotePlayback:eF,prefix:null,property:null,results:ez,security:null,unselectable:null}}),ta=e5({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
2-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:e8,properties:{about:e$,accentHeight:ez,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ez,amplitude:ez,arabicForm:null,ascent:ez,attributeName:null,attributeType:null,azimuth:ez,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ez,by:null,calcMode:null,capHeight:ez,className:eG,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ez,diffuseConstant:ez,direction:null,display:null,dur:null,divisor:ez,dominantBaseline:null,download:eF,dx:null,dy:null,edgeMode:null,editable:null,elevation:ez,enableBackground:null,end:null,event:null,exponent:ez,externalResourcesRequired:null,fill:null,fillOpacity:ez,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:eV,g2:eV,glyphName:eV,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ez,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ez,horizOriginX:ez,horizOriginY:ez,id:null,ideographic:ez,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ez,k:ez,k1:ez,k2:ez,k3:ez,k4:ez,kernelMatrix:e$,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ez,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ez,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
2Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ez,overlineThickness:ez,paintOrder:null,panose1:null,path:null,pathLength:ez,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:eG,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ez,pointsAtY:ez,pointsAtZ:ez,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:e$,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:e$,rev:e$,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:e$,requiredFeatures:e$,requiredFonts:e$,requiredFormats:e$,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ez,specularExponent:ez,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ez,strikethroughThickness:ez,string:null,stroke:null,strokeDashArray:e$,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ez,strokeOpacity:ez,strokeWidth:null,style:null,surfaceScale:ez,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:e$,tabIndex:ez,tableValues:null,target:null,targetX:ez,targetY:ez,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:e$,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ez,underlineThickness:ez,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ez,values:null,vAlphabetic:ez,vMathematical:ez,vectorEffect:null,vHanging:ez,vIdeographic:ez,version:null,vertAdvY:ez,vertOriginX:ez,vertOriginY:ez,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ez,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tr=e3([e7,e6,te,tt,tn],"html"),tl=e3([e7,e6,te,tt,ta],"svg");function ti(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ts(e){return e.join(" ").trim()}var to=e.i(681383);let tc=to.default.default||to.default,td=tp("end"),tu=tp("start");function tp(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function tm(e){return e&&"object"==typeof e?"position"in e||"type"in e?tf(e.position):"start"in e||"end"in e?tf(e):"line"in e||"column"in e?th(e):"":""}function th(e){return tg(e&&e.line)+":"+tg(e&&e.column)}function tf(e){return th(e&&e.start)+"-"+th(e&&e.end)}function tg(e){return e&&"number"==typeof e?e:1}class tx extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let a="",r={},l=!1;if(t&&(r="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?a=e:!r.cause&&e&&(l=!0,a=e.message,r.cause=e),!r.ruleId&&!r.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?r.ruleId=n:(r.source=n.slice(0,e),r.ruleId=n.slice(e+1))}if(!r.place&&r.ancestors&&r.ancestors){const e=r.ancestors[r.ancestors.length-1];e&&(r.place=e.position)}const i=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=i?i.line:void 0,this.name=tm(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=l&&r.cause&&"string"==typeof r.cause.stack?r.cause.stack:"",this.actual,this.expected,this.note,this.url}}tx.prototype.file="",tx.prototype.name="",tx.prototype.reason="",tx.prototype.message="",tx.prototype.stack="",tx.prototype.column=void 0,tx.prototype.line=void 0,tx.prototype.ancestors=void 0,tx.prototype.cause=void 0,tx.prototype.fatal=void 0,tx.prototype.place=void 0,tx.prototype.ruleId=void 0,tx.prototype.source=void 0;let tb={}.hasOwnProperty,ty=new Map,t_=/[A-Z]/g,tv=/-([a-z])/g,tC=new Set(["table","tbody","thead","tfoot","tr"]),tT=ne
2w Set(["td","th"]),tE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tN(e,t,n){var a,r,l,i,s,o,c,d,u;let p,m,h,f,g,x,b,y,_,v,C;return"element"===t.type?(a=e,r=t,l=n,m=p=a.schema,"svg"===r.tagName.toLowerCase()&&"html"===p.space&&(a.schema=tl),a.ancestors.push(r),h=tS(a,r.tagName,!1),f=function(e,t){let n,a,r={};for(a in t.properties)if("children"!==a&&tb.call(t.properties,a)){let l=function(e,t,n){let a=function(e,t){let n=eO(t),a=t,r=eR;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&eQ.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(eZ,e0);a="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!eZ.test(e)){let n=e.replace(eX,eJ);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}r=eK}return new r(a,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?eS(n):ts(n)),"style"===a.property){let t="object"==typeof n?n:function(e,t){let n={};try{tc(t,function(e,t){let a=e;"--"!==a.slice(0,2)&&("-ms-"===a.slice(0,4)&&(a="ms-"+a.slice(4)),a=a.replace(tv,tD)),n[a]=t})}catch(t){if(!e.ignoreInvalidStyle){let n=new tx("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=tE+"#cannot-parse-style-attribute",n}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)tb.call(e,t)&&(n[function(e){let t=e.replace(t_,tL);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&a.space?e1[a.property]||a.property:a.attribute,n]}}(e,a,t.properties[a]);if(l){let[a,i]=l;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&tT.has(t.tagName)?n=i:r[a]=i}}
2return n&&((r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),r}(a,r),g=tw(a,r),tC.has(r.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&eM(e.value):eM(e))})),tA(a,f,h,r),tk(f,g),a.ancestors.pop(),a.schema=p,a.create(r,h,f,l)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return eA("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}tI(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(i=e,s=t,o=n,b=x=i.schema,"svg"===s.name&&"html"===x.space&&(i.schema=tl),i.ancestors.push(s),y=null===s.name?i.Fragment:tS(i,s.name,!0),_=function(e,t){let n={};for(let a of t.attributes)if("mdxJsxExpressionAttribute"===a.type)if(a.data&&a.data.estree&&e.evaluater){let t=a.data.estree.body[0];eA("ExpressionStatement"===t.type);let r=t.expression;eA("ObjectExpression"===r.type);let l=r.properties[0];eA("SpreadElement"===l.type),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else tI(e,t.position);else{let r,l=a.name;if(a.value&&"object"==typeof a.value)if(a.value.data&&a.value.data.estree&&e.evaluater){let t=a.value.data.estree.body[0];eA("ExpressionStatement"===t.type),r=e.evaluater.evaluateExpression(t.expression)}else tI(e,t.position);else r=null===a.value||a.value;n[l]=r}return n}(i,s),v=tw(i,s),tA(i,_,y,s),tk(_,v),i.ancestors.pop(),i.schema=x,i.create(s,y,_,o)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);tI(e,t.position)}(e,t):"root"===t.type?(c=e,d=t,u=n,tk(C={},tw(c,d)),c.create(d,c.Fragment,C,u)):"text"===t.type?t.value:void 0}function tA(e,t,n,a){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=a)}function tk(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function tw(e,t){let n=[],a=-1,r=e.passKeys?new Map:ty;for(;++a<t.children.length;){let l,i=t.children[a];if(e.passKeys){let e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){let t=r.get(e)||0;l=e+"-"+t,r.set(e,t+1)}}let s=tN(e,i,l);void 0!==s&&n.push(s)}return n}function tS(e,t,n){let a;if(n)if(t.includes(".")){let e,n=t.split("."),r=-1;for(;++r<n.length;){let t=ej(n[r])?{type:"Identifier",name:n[r]}:{type:"Literal",value:n[r]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(r&&"Literal"===t.type),optional:!1}:t}eA(e,"always a result"),a=e}else a=ej(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else a={type:"Literal",value:t};if("Literal"===a.type){let t=a.value;return tb.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(a);tI(e)}function tI(e,t){let n=new tx("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=tE+"#cannot-handle-mdx-estrees-without-createevaluater",n}function tD(e,t){return t.toUpperCase()}function tL(e){return"-"+e.toLowerCase()}let tj={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},tP={};function tM(e,t){let n=t||tP;return tO(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function tO(e,t,n){var a;if((a=e)&&"object"==typeof a){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return tR(e.children,t,n)}return Array.isArray(e)?tR(e,t,n):""}function tR(e,t,n){let a=[],r=-1;for(;++r<e.length;)a[r]=tO(e[r],t,n);return a.join("")}function tB(e,t,n,a){let r,l=e.length,i=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,a.length<1e4)(r=Array.from(a)).unshift(t,n),e.splice(...r);else for(n&&e.splice(t,n);i<a.length;)(r=a.slice(i,i+1e4)).unshift(t,0),e.splice(...r),i+=1e4,t+=1e4}function tF(e,t){return e.length>0?(tB(e,e.length,0,t),e):t}let tH={}.hasOwnProperty;function tU(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let a,r=(tH.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(a in l){tH.call(r,a)||(r[a]=[]);let e=l[a];!function(e,t){let n=-1,a=[];for(;++n<t.length;)("after"===t[n].add?e:a).push(t[n]);tB(e,0,0,a)}(r[a],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let tz=t0(/[A-Za-z]/),tG=t0(/[\dA-Za-z]/),tV=t0(/[#-'*+\--9=?A-Z^-~]/);function t$(e){return null!==e&&(e<32||127===e)}let tY=t0(/\d/),tW=t0(/[\dA-Fa-f]/),tq=t0(/[!-/:-@[-`{-~]/);function tK(e){return null!==e&&e<-2}function tQ(e){return null!==e&&(e<0||32===e)}function tZ(e){return -2===e||-1===e||32===e}let tX=t0(/\p{P}|\p{S}/u),tJ=t0(/\s/);function t0(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function t1(e,t,n,a){let r=a?a-1:1/0,l=0;return function(a){return tZ(a)?(e.enter(n),function a(i){return tZ(i)&&l++<r?(e.consume(i),a):(e.exit(n),t(i))}(a)):t(a)}}let t2={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),t1(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(a){let r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,function t(a){if(null===a){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return tK(a)?(e.consume(a),e.exit("chunkText"),n):(e.consume(a),t)}(a)}(n)});return n}},t3={tokenize:function(e){let t,n,a,r=this,l=[],i=0;return s;function s(t){if(i<l.length){let n=l[i];return r.containerState=n[1],e.attempt(n[0].continuation,o,c)(t)}return c(t)}function o(e){if(i++,r.containerState._closeFlow){let n;r.containerState._closeFlow=void 0,t&&x();let a=r.events.length,l=a;for(;l--;)if("exit"===r.events[l][0]&&"chunkFlow"===r.events[l][1].type){n=r.events[l][1].end;break}g(i);let s=a;for(;s<r.events.length;)r.events[s][1].end=Object.assign({},n),s++;return tB(r.events,l+1,0,r.events.slice(a)),r.events.length=s,c(e)}return s(e)}function c(n){if(i===l.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);r.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(t4,d,u)(n)}function d(e){return t&&x(),g(i),p(e)}function u(e){return r.parser.lazy[r.now().line]=i!==l.length,a=r.now().offset,h(e)}function p(t){return r.containerState={},e.attempt(t4,m,h)(t)}function m(e){return i++,l.push([r.currentConstruct,r.containerState]),p(e)}
2function h(a){if(null===a){t&&x(),g(0),e.consume(a);return}return t=t||r.parser.flow(r.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),function t(n){if(null===n){f(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return tK(n)?(e.consume(n),f(e.exit("chunkFlow")),i=0,r.interrupt=void 0,s):(e.consume(n),t)}(a)}function f(e,l){let s=r.sliceStream(e);if(l&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),r.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<a&&(!t.events[l][1].end||t.events[l][1].end.offset>a))return;let s=r.events.length,o=s;for(;o--;)if("exit"===r.events[o][0]&&"chunkFlow"===r.events[o][1].type){if(e){n=r.events[o][1].end;break}e=!0}for(g(i),l=s;l<r.events.length;)r.events[l][1].end=Object.assign({},n),l++;tB(r.events,o+1,0,r.events.slice(s)),r.events.length=l}}function g(t){let n=l.length;for(;n-- >t;){let t=l[n];r.containerState=t[1],t[0].exit.call(r,e)}l.length=t}function x(){t.write([null]),n=void 0,t=void 0,r.containerState._closeFlow=void 0}}},t4={tokenize:function(e,t,n){return t1(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},t5={tokenize:function(e,t,n){return function(t){return tZ(t)?t1(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||tK(e)?t(e):n(e)}},partial:!0};class t6{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let a=this.right.splice(this.right.length-(t||0),1/0);return n&&t7(this.left,n),a.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),t7(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),t7(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);t7(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);t7(this.left,t.reverse())}}}function t7(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function t8(e){let t,n,a,r,l,i,s,o={},c=-1,d=new t6(e);for(;++c<d.length;){for(;c in o;)c=o[c];if(t=d.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===d.get(c-1)[1].type&&((a=0)<(i=t[1]._tokenizer.events).length&&"lineEndingBlank"===i[a][1].type&&(a+=2),a<i.length&&"content"===i[a][1].type))for(;++a<i.length&&"content"!==i[a][1].type;)"chunkText"===i[a][1].type&&(i[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===t[0])t[1].contentType&&(Object.assign(o,function(e,t){let n,a,r=e.get(t)[1],l=e.get(t)[2],i=t-1,s=[],o=r._tokenizer||l.parser[r.contentType](r.start),c=o.events,d=[],u={},p=-1,m=r,h=0,f=0,g=[0];for(;m;){for(;e.get(++i)[1]!==m;);s.push(i),!m._tokenizer&&(n=l.sliceStream(m),m.next||n.push(null),a&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(n),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),a=m,m=m.next}for(m=r;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(f=p+1,g.push(f),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):g.pop(),p=g.length;p--;){let t=c.slice(g[p],g[p+1]),n=s.pop();d.push([n,n+t.length-1]),e.splice(n,2,t)}for(d.reverse(),p=-1;++p<d.length;)u[h+d[p][0]]=h+d[p][1],h+=d[p][1]-d[p][0]-1;return u}(d,c)),c=o[c],s=!0);else if(t[1]._container){for(a=c,n=void 0;a--;)if("lineEnding"===(r=d.get(a))[1].type||"lineEndingBlank"===r[1].type)"enter"===r[0]&&(n&&(d.get(n)[1].type="lineEndingBlank"),r[1].type="lineEnding",n=a);else break;
2n&&(t[1].end=Object.assign({},d.get(n)[1].start),(l=d.slice(n,c)).unshift(t),d.splice(n,c-n+1,l))}}return tB(e,0,1/0,d.slice(0)),!s}let t9={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(t)};function a(t){return null===t?r(t):tK(t)?e.check(ne,l,r)(t):(e.consume(t),a)}function r(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}},resolve:function(e){return t8(e),e}},ne={tokenize:function(e,t,n){let a=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),t1(e,r,"linePrefix")};function r(r){if(null===r||tK(r))return n(r);let l=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(r):e.interrupt(a.parser.constructs.flow,n,t)(r)}},partial:!0},nt={tokenize:function(e){let t=this,n=e.attempt(t5,function(a){return null===a?void e.consume(a):(e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,a,t1(e,e.attempt(this.parser.constructs.flow,a,e.attempt(t9,a)),"linePrefix")));return n;function a(a){return null===a?void e.consume(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},nn={resolveAll:ni()},na=nl("string"),nr=nl("text");function nl(e){return{tokenize:function(t){let n=this,a=this.parser.constructs[e],r=t.attempt(a,l,i);return l;function l(e){return o(e)?r(e):i(e)}function i(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return o(e)?(t.exit("data"),r(e)):(t.consume(e),s)}function o(e){if(null===e)return!0;let t=a[e],r=-1;if(t)for(;++r<t.length;){let e=t[r];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:ni("text"===e?ns:void 0)}}function ni(e){return function(t,n){let a,r=-1;for(;++r<=t.length;)void 0===a?t[r]&&"data"===t[r][1].type&&(a=r,r++):t[r]&&"data"===t[r][1].type||(r!==a+2&&(t[a][1].end=t[r-1][1].end,t.splice(a+2,r-a-2),r=a+2),a=void 0);return e?e(t,n):t}}function ns(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let a,r=e[n-1][1],l=t.sliceStream(r),i=l.length,s=-1,o=0;for(;i--;){let e=l[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)o++,s--;if(s)break;s=-1}else if(-2===e)a=!0,o++;else if(-1===e);else{i++;break}}if(o){let l={type:n===e.length||a||o<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-o,offset:r.end.offset-o,_index:r.start._index+i,_bufferIndex:i?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},l.start),r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}function no(e,t,n){let a=[],r=-1;for(;++r<e.length;){let l=e[r].resolveAll;l&&!a.includes(l)&&(t=l(t,n),a.push(l))}return t}function nc(e){return null===e||tQ(e)||tJ(e)?1:tX(e)?2:void 0}let nd={name:"attention",tokenize:function(e,t){let n,a=this.parser.constructs.attentionMarkers.null,r=this.previous,l=nc(r);return function(i){return n=i,e.enter("attentionSequence"),function i(s){if(s===n)return e.consume(s),i;let o=e.exit("attentionSequence"),c=nc(s),d=!c||2===c&&l||a.includes(s),u=!l||2===l&&c||a.includes(r);return o._open=!!(42===n?d:d&&(l||!u)),o._close=!!(42===n?u:u&&(c||!d)),t(s)}(i)}},resolveAll:function(e,t){let n,a,r,l,i,s,o,c,d=-1;for(;++d<e.length;)if("enter"===e[d][0]&&"attentionSequence"===e[d][1].type&&e[d][1]._close){for(n=d;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[d][1]).charCodeAt(0)){if((e[n][1]._close||e[d][1]._open)&&(e[d][1].end.offset-e[d][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[d][1].end.offset-e[d][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;let u=Object.assign({},e[n][1].end),p=Object.assign({},e[d][1].start);nu(u,-s),nu(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[n][1].end)},i={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[d][1].start),end:p},r={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[d][1].start)},a={type:s>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},l.start),e[d][1].start=Object.assign({},i.end),o=[],e[n][1].end.offset-e[n][1].start.offset&&(o=tF(o,[["enter",e[n][1],t],["exit",e[n][1],t]])),o=tF(o,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",r,t]]),o=tF(o,no(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),o=tF(o,[["exit",r,t],["enter",i,t],["exit",i,t],["exit",a,t]]
2),e[d][1].end.offset-e[d][1].start.offset?(c=2,o=tF(o,[["enter",e[d][1],t],["exit",e[d][1],t]])):c=0,tB(e,n-1,d-n+3,o),d=n+o.length-c-2;break}}for(d=-1;++d<e.length;)"attentionSequence"===e[d][1].type&&(e[d][1].type="data");return e}};function nu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let np={name:"blockQuote",tokenize:function(e,t,n){let a=this;return function(t){if(62===t){let n=a.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),r}return n(t)};function r(n){return tZ(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let a=this;return function(t){return tZ(t)?t1(e,r,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):r(t)};function r(a){return e.attempt(np,t,n)(a)}}},exit:function(e){e.exit("blockQuote")}},nm={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),a};function a(a){return tq(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}},nh=document.createElement("i");function nf(e){let t="&"+e+";";nh.innerHTML=t;let n=nh.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ng={name:"characterReference",tokenize:function(e,t,n){let a,r,l=this,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),o):(e.enter("characterReferenceValue"),a=31,r=tG,c(t))}function o(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,r=tW,c):(e.enter("characterReferenceValue"),a=7,r=tY,c(t))}function c(s){if(59===s&&i){let a=e.exit("characterReferenceValue");return r!==tG||nf(l.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return r(s)&&i++<a?(e.consume(s),c):n(s)}}},nx={tokenize:function(e,t,n){let a=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r)};function r(e){return a.parser.lazy[a.now().line]?n(e):t(e)}},partial:!0},nb={name:"codeFenced",tokenize:function(e,t,n){let a,r=this,l={tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),tZ(t)?t1(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)}function o(t){return t===a?(e.enter("codeFencedFenceSequence"),function t(r){return r===a?(l++,e.consume(r),t):l>=s?(e.exit("codeFencedFenceSequence"),tZ(r)?t1(e,c,"whitespace")(r):c(r)):n(r)}(t)):n(t)}function c(a){return null===a||tK(a)?(e.exit("codeFencedFence"),t(a)):n(a)}},partial:!0},i=0,s=0;return function(t){var l;let c;return l=t,i=(c=r.events[r.events.length-1])&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,a=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(r){return r===a?(s++,e.consume(r),t):s<3?n(r):(e.exit("codeFencedFenceSequence"),tZ(r)?t1(e,o,"whitespace")(r):o(r))}(l)};function o(l){return null===l||tK(l)?(e.exit("codeFencedFence"),r.interrupt?t(l):e.check(nx,d,h)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||tK(r)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),o(r)):tZ(r)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),t1(e,c,"whitespace")(r)):96===r&&r===a?n(r):(e.consume(r),t)}(l))}function c(t){return null===t||tK(t)?o(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||tK(r)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),o(r)):96===r&&r===a?n(r):(e.consume(r),t)}(t))}function d(t){return e.attempt(l,h,u)(t)}function u(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return i>0&&tZ(t)?t1(e,m,"linePrefix",i+1)(t):m(t)}function m(t){return null===t||tK(t)?e.check(nx,d,h)(t):(e.enter("co
2deFlowValue"),function t(n){return null===n||tK(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}},concrete:!0},ny={name:"codeIndented",tokenize:function(e,t,n){let a=this;return function(t){return e.enter("codeIndented"),t1(e,r,"linePrefix",5)(t)};function r(t){let r=a.events[a.events.length-1];return r&&"linePrefix"===r[1].type&&r[2].sliceSerialize(r[1],!0).length>=4?function t(n){return null===n?l(n):tK(n)?e.attempt(n_,t,l)(n):(e.enter("codeFlowValue"),function n(a){return null===a||tK(a)?(e.exit("codeFlowValue"),t(a)):(e.consume(a),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},n_={tokenize:function(e,t,n){let a=this;return r;function r(t){return a.parser.lazy[a.now().line]?n(t):tK(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):t1(e,l,"linePrefix",5)(t)}function l(e){let l=a.events[a.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):tK(e)?r(e):n(e)}},partial:!0};function nv(e,t,n,a,r,l,i,s,o){let c=o||1/0,d=0;return function(t){return 60===t?(e.enter(a),e.enter(r),e.enter(l),e.consume(t),e.exit(l),u):null===t||32===t||41===t||t$(t)?n(t):(e.enter(a),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function u(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(r),e.exit(a),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),u(t)):null===t||60===t||tK(t)?n(t):(e.consume(t),92===t?m:p)}function m(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(r){return!d&&(null===r||41===r||tQ(r))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(a),t(r)):d<c&&40===r?(e.consume(r),d++,h):41===r?(e.consume(r),d--,h):null===r||32===r||40===r||t$(r)?n(r):(e.consume(r),92===r?f:h)}function f(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function nC(e,t,n,a,r,l){let i,s=this,o=0;return function(t){return e.enter(a),e.enter(r),e.consume(t),e.exit(r),e.enter(l),c};function c(u){return o>999||null===u||91===u||93===u&&!i||94===u&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(u):93===u?(e.exit(l),e.enter(r),e.consume(u),e.exit(r),e.exit(a),t):tK(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(u))}function d(t){return null===t||91===t||93===t||tK(t)||o++>999?(e.exit("chunkString"),c(t)):(e.consume(t),i||(i=!tZ(t)),92===t?u:d)}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,d):d(t)}}function nT(e,t,n,a,r,l){let i;return function(t){return 34===t||39===t||40===t?(e.enter(a),e.enter(r),e.consume(t),e.exit(r),i=40===t?41:t,s):n(t)};function s(n){return n===i?(e.enter(r),e.consume(n),e.exit(r),e.exit(a),t):(e.enter(l),o(n))}function o(t){return t===i?(e.exit(l),s(i)):null===t?n(t):tK(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),t1(e,o,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||tK(t)?(e.exit("chunkString"),o(t)):(e.consume(t),92===t?d:c)}function d(t){return t===i||92===t?(e.consume(t),c):c(t)}}function nE(e,t){let n;return function a(r){return tK(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,a):tZ(r)?t1(e,a,n?"linePrefix":"lineSuffix")(r):t(r)}}function nN(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let nA={tokenize:function(e,t,n){return function(t){return tQ(t)?nE(e,a)(t):n(t)};function a(t){return nT(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function r(t){return tZ(t)?t1(e,l,"whitespace")(t):l(t)}function l(e){return null===e||tK(e)?t(e):n(e)}},partial:!0},nk=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nw=["pre","script","style","textarea"],nS={tokenize:function(e,t,n){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(t5,t,n)}},partial:!0},nI={tokenize:function(e,t,n){let a=this;return function(t){return tK(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):n(t)};function r(e){return a.parser.lazy[a.now().line]?n(e):t(e)}},partial:!0},nD={name:"labelEnd",tokenize:function(e,t,n){let a,r,l=this,i=l.events.length;for(;i--;)if(("labelImage"===l.events[i][1].type||"labelLink"===l.events[i][1].type)&&!l.events[i][1]._balanced){a=l.events[i][1];break}return function(t){return a?a._inactive?d(t):(r=l.parser.defined.includes(nN(l.sliceSerialize({start:a.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(nL,c,r?c:d)(t):91===t?e.attempt(nj,c,r?o:d)(t):r?c(t):d(t)}function o(t){return e.attempt(nP,c,d)(t)}function c(e){return t(e)}function d(e){return a._balanced=!0,n(e)}},resolveTo:function(e,t){let n,a,r,l,i=e.length,s=0;for(;i--;)if(n=e[i][1],a){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(r){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(a=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(r=i);let o={type:"labelLink"===e[a][1].type?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[r][1].end)},d={type:"labelText",start:Object.assign({},e[a+s+2][1].end),end:Object.assign({},e[r-2][1].start)};return l=tF(l=[["enter",o,t],["enter",c,t]],e.slice(a+1,a+s+3)),l=tF(l,[["enter",d,t]]
2),l=tF(l,no(t.parser.constructs.insideSpan.null,e.slice(a+s+4,r-3),t)),l=tF(l,[["exit",d,t],e[r-2],e[r-1],["exit",c,t]]),l=tF(l,e.slice(r+1)),l=tF(l,[["exit",o,t]]),tB(e,a,e.length,l),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let n=e[t][1];("labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type)&&(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},nL={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),a};function a(t){return tQ(t)?nE(e,r)(t):r(t)}function r(t){return 41===t?c(t):nv(e,l,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return tQ(t)?nE(e,s)(t):c(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?nT(e,o,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function o(t){return tQ(t)?nE(e,c)(t):c(t)}function c(a){return 41===a?(e.enter("resourceMarker"),e.consume(a),e.exit("resourceMarker"),e.exit("resource"),t):n(a)}}},nj={tokenize:function(e,t,n){let a=this;return function(t){return nC.call(a,e,r,l,"reference","referenceMarker","referenceString")(t)};function r(e){return a.parser.defined.includes(nN(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},nP={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),a};function a(a){return 93===a?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}},nM={name:"labelStartImage",tokenize:function(e,t,n){let a=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),r};function r(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?n(e):t(e)}},resolveAll:nD.resolveAll},nO={name:"labelStartLink",tokenize:function(e,t,n){let a=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),r};function r(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?n(e):t(e)}},resolveAll:nD.resolveAll},nR={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t1(e,t,"linePrefix")}}},nB={name:"thematicBreak",tokenize:function(e,t,n){let a,r=0;return function(l){var i;return e.enter("thematicBreak"),a=i=l,function l(i){return i===a?(e.enter("thematicBreakSequence"),function t(n){return n===a?(e.consume(n),r++,t):(e.exit("thematicBreakSequence"),tZ(n)?t1(e,l,"whitespace")(n):l(n))}(i)):r>=3&&(null===i||tK(i))?(e.exit("thematicBreak"),t(i)):n(i)}(i)}}},nF={name:"list",tokenize:function(e,t,n){let a=this,r=a.events[a.events.length-1],l=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,i=0;return function(t){let r=a.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===r?!a.containerState.marker||t===a.containerState.marker:tY(t)){if(a.containerState.type||(a.containerState.type=r,e.enter(r,{_container:!0})),"listUnordered"===r)return e.enter("listItemPrefix"),42===t||45===t?e.check(nB,n,s)(t):s(t);if(!a.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(r){return tY(r)&&++i<10?(e.consume(r),t):(!a.interrupt||i<2)&&(a.containerState.marker?r===a.containerState.marker:41===r||46===r)?(e.exit("listItemValue"),s(r)):n(r)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||t,e.check(t5,a.interrupt?n:o,e.attempt(nH,d,c))}
2function o(e){return a.containerState.initialBlankLine=!0,l++,d(e)}function c(t){return tZ(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let a=this;return a.containerState._closeFlow=void 0,e.check(t5,function(n){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,t1(e,t,"listItemIndent",a.containerState.size+1)(n)},function(n){return a.containerState.furtherBlankLines||!tZ(n)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,r(n)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(nU,t,r)(n))});function r(r){return a.containerState._closeFlow=!0,a.interrupt=void 0,t1(e,e.attempt(nF,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}},exit:function(e){e.exit(this.containerState.type)}},nH={tokenize:function(e,t,n){let a=this;return t1(e,function(e){let r=a.events[a.events.length-1];return!tZ(e)&&r&&"listItemPrefixWhitespace"===r[1].type?t(e):n(e)},"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},nU={tokenize:function(e,t,n){let a=this;return t1(e,function(e){let r=a.events[a.events.length-1];return r&&"listItemIndent"===r[1].type&&r[2].sliceSerialize(r[1],!0).length===a.containerState.size?t(e):n(e)},"listItemIndent",a.containerState.size+1)},partial:!0},nz={name:"setextUnderline",tokenize:function(e,t,n){let a,r=this;return function(t){var i;let s,o=r.events.length;for(;o--;)if("lineEnding"!==r.events[o][1].type&&"linePrefix"!==r.events[o][1].type&&"content"!==r.events[o][1].type){s="paragraph"===r.events[o][1].type;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter("setextHeadingLine"),a=t,i=t,e.enter("setextHeadingLineSequence"),function t(n){return n===a?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),tZ(n)?t1(e,l,"lineSuffix")(n):l(n))}(i)):n(t)};function l(a){return null===a||tK(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}},resolveTo:function(e,t){let n,a,r,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(a=l)}else"content"===e[l][1].type&&e.splice(l,1),r||"definition"!==e[l][1].type||(r=l);let i={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",r?(e.splice(a,0,["enter",i,t]),e.splice(r+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[r][1].end)):e[n][1]=i,e.push(["exit",i,t]),e}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let a,r=this;return function(t){var a;return e.enter("definition"),a=t,nC.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(a)};function l(t){return(a=nN(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return tQ(t)?nE(e,s)(t):s(t)}function s(t){return nv(e,o,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function o(t){return e.attempt(nA,c,c)(t)}function c(t){return tZ(t)?t1(e,d,"whitespace")(t):d(t)}function d(l){return null===l||tK(l)?(e.exit("definition"),r.parser.defined.push(a),t(l)):n(l)}}}},"disable",0,{null:[]},"document",0,{42:nF,43:nF,45:nF,48:nF,49:nF,50:nF,51:nF,52:nF,53:nF,54:nF,55:nF,56:nF,57:nF,62:np},"flow",0,{35:{name:"headingAtx",tokenize:function(e,t,n){let a=0;return function(r){var l;return e.enter("atxHeading"),l=r,e.enter("atxHeadingSequence"),function r(l){return 35===l&&a++<6?(e.consume(l),r):null===l||tQ(l)?(e.exit("atxHeadingSequence"),function n(a){return 35===a?(e.enter("atxHeadingSequence"),function t(a){return 35===a?(e.consume(a),t):(e.exit("atxHeadingSequence"),n(a))}(a)):null===a||tK(a)?(e.exit("atxHeading"),t(a)):tZ(a)?t1(e,n,"whitespace")(a):(e.enter("atxHeadingText"),function t(a){return null===a||35===a||tQ(a)?(e.exit("atxHeadingText"),n(a)):(e.consume(a),t)}(a))}(l)):n(l)}(l)}},resolve:function(e,t){let n,a,r=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),r-2>l&&"whitespace"===e[r][1].type&&(r-=2),"atxHeadingSequence"===e[r][1].type&&(l===r-1||r-4>l&&"whitespace"===e[r-2][1].type)&&(r-=l+1===r?2:4),r>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[r][1].end},a={type:"chunkText",start:e[l][1].start,end:e[r][1].end,contentType:"text"},tB(e,l,r-l+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]])),e}},42:nB,45:[nz,nB],60:{name:"htmlFlow",tokenize:function(e,t,n){let a,r,l,i,s,o=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(i){return 33===i?(e.consume(i),d):47===i?(e.consume(i),r=!0,m):63===i?(e.consume(i),a=3,o.interrupt?t:L):tz(i)?(e.consume(i),l=String.fromCharCode(i),h):n(i)}function d(r){return 45===r?(e.consume(r),a=2,u):91===r?(e.consume(r),a=5,i=0,p):tz(r)?(e.consume(r),a=4,o.interrupt?t:L):n(r)}function u(a){return 45===a?(e.consume(a),o.interrupt?t:L):n(a)}function p(a){let r="CDATA[";return a===r.charCodeAt(i++)?(e.consume(a),i===r.length)?o.interrupt?t:E:p:n(a)}function m(t){return tz(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(i){if(null===i||47===i||62===i||tQ(i)){let s=47===i,c=l.toLowerCase();return!s&&!r&&nw.includes(c)?(a=1,o.interrupt?t(i):E(i)):nk.includes(l.toLowerCase())?(a=6,s)?(e.consume(i),f):o.interrupt?t(i):E(i):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(i):r?function t(n){return tZ(n)?(e.consume(n),t):C(n)}(i):g(i))}return 45===i||tG(i)?(e.consume(i),l+=String.fromCharCode(i),h):n(i)}function f(a){return 62===a?(e.consume(a),o.interrupt?t:E):n(a)}function g(t){return 47===t?(e.consume(t),C):58===t||95===t||tz(t)?(e.consume(t),x):tZ(t)?(e.consume(t),g):C(t)}function x(t){return 45===t||46===t||58===t||95===t||tG(t)?(e.consume(t),x):b(t)}function b(t){return 61===t?(e.consume(t),y):tZ(t)?(e.consume(t),b):g(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,_):tZ(t)?(e.consume(t),y):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||tQ(n)?b(n):(e.consume(n),t)}(t)}function _(t){return t===s?(e.consume(t),s=null,v):null===t||tK(t)?n(t):(e.consume(t),_)}function v(e){return 47===e||62===e||tZ(e)?g(e):n(e)}function C(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||tK(t)?E(t):tZ(t)?(e.consume(t),T):n(t)}function E(t){return 45===t&&2===a?(e.consume(t),w):60===t&&1===a?(e.consume(t),S):62===t&&4===a?(e.consume(t),j):63===t&&3===a?(e.consume(t),L):93===t&&5===a?(e.consume(t),D):tK(t)&&(6===a||7===a)?(e.exit("htmlFlowData"),e.check(nS,P,N)(t)):null===t||tK(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),E)}function N(t){return e.check(nI,A,P)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),k}function k(t){return null===t||tK(t)?N(t):(e.enter("htmlFlowData"),E(t))}function w(t){return 45===t?(e.consume(t),L):E(t)}function S(t){return 47===t?(e.consume(t),l="",I):E(t)}function I(t){if(62===t){let n=l.toLowerCase();return nw.includes(n)?(e.consume(t),j):E(t)}return tz(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),I):E(t)}function D(t){return 93===t?(e.consume(t),L):E(t)}function L(t){return 62===t?(e.consume(t),j):45===t&&2===a?(e.consume(t),L):E(t)}function j(t){return null===t||tK(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),j)}function P(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:nz,95:nB,96:nb,126:nb},"flowInitial",0,{[-2]:ny,[-1]:ny,32:ny},"insideSpan",0,{null:[nd,nn]},"string",0,{38:ng,92:nm}
2,"text",0,{[-5]:nR,[-4]:nR,[-3]:nR,33:nM,38:ng,42:nd,60:[{name:"autolink",tokenize:function(e,t,n){let a=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r};function r(t){return tz(t)?(e.consume(t),l):64===t?n(t):s(t)}function l(t){return 43===t||45===t||46===t||tG(t)?(a=1,function t(n){return 58===n?(e.consume(n),a=0,i):(43===n||45===n||46===n||tG(n))&&a++<32?(e.consume(n),t):(a=0,s(n))}(t)):s(t)}function i(a){return 62===a?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):null===a||32===a||60===a||t$(a)?n(a):(e.consume(a),i)}function s(t){return 64===t?(e.consume(t),o):tV(t)?(e.consume(t),s):n(t)}function o(r){return tG(r)?function r(l){return 46===l?(e.consume(l),a=0,o):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||tG(l))&&a++<63){let n=45===l?t:r;return e.consume(l),n}return n(l)}(l)}(r):n(r)}}},{name:"htmlText",tokenize:function(e,t,n){let a,r,l,i=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),o):47===t?(e.consume(t),_):63===t?(e.consume(t),b):tz(t)?(e.consume(t),C):n(t)}function o(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),r=0,m):tz(t)?(e.consume(t),x):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function d(t){return null===t?n(t):45===t?(e.consume(t),u):tK(t)?(l=d,I(t)):(e.consume(t),d)}function u(t){return 45===t?(e.consume(t),p):d(t)}function p(e){return 62===e?S(e):45===e?u(e):d(e)}function m(t){let a="CDATA[";return t===a.charCodeAt(r++)?(e.consume(t),r===a.length?h:m):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),f):tK(t)?(l=h,I(t)):(e.consume(t),h)}function f(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?S(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?S(t):tK(t)?(l=x,I(t)):(e.consume(t),x)}function b(t){return null===t?n(t):63===t?(e.consume(t),y):tK(t)?(l=b,I(t)):(e.consume(t),b)}function y(e){return 62===e?S(e):b(e)}function _(t){return tz(t)?(e.consume(t),v):n(t)}function v(t){return 45===t||tG(t)?(e.consume(t),v):function t(n){return tK(n)?(l=t,I(n)):tZ(n)?(e.consume(n),t):S(n)}(t)}function C(t){return 45===t||tG(t)?(e.consume(t),C):47===t||62===t||tQ(t)?T(t):n(t)}function T(t){return 47===t?(e.consume(t),S):58===t||95===t||tz(t)?(e.consume(t),E):tK(t)?(l=T,I(t)):tZ(t)?(e.consume(t),T):S(t)}function E(t){return 45===t||46===t||58===t||95===t||tG(t)?(e.consume(t),E):function t(n){return 61===n?(e.consume(n),N):tK(n)?(l=t,I(n)):tZ(n)?(e.consume(n),t):T(n)}(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,A):tK(t)?(l=N,I(t)):tZ(t)?(e.consume(t),N):(e.consume(t),k)}function A(t){return t===a?(e.consume(t),a=void 0,w):null===t?n(t):tK(t)?(l=A,I(t)):(e.consume(t),A)}function k(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||tQ(t)?T(t):(e.consume(t),k)}function w(e){return 47===e||62===e||tQ(e)?T(e):n(e)}function S(a){return 62===a?(e.consume(a),e.exit("htmlTextData"),e.exit("htmlText"),t):n(a)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return tZ(t)?t1(e,L,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),l(t)}}}],91:nO,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),a};function a(a){return tK(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}},nm],93:nD,95:nd,96:{name:"codeText",tokenize:function(e,t,n){let a,r,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),i(n))}(t)};function i(o){return null===o?n(o):32===o?(e.enter("space"),e.consume(o),e.exit("space"),i):96===o?(r=e.enter("co
2deTextSequence"),a=0,function n(i){return 96===i?(e.consume(i),a++,n):a===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(i)):(r.type="codeTextData",s(i))}(o)):tK(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):(e.enter("codeTextData"),s(o))}function s(t){return null===t||32===t||96===t||tK(t)?(e.exit("codeTextData"),i(t)):(e.consume(t),s)}},resolve:function(e){let t,n,a=e.length-4,r=3;if(("lineEnding"===e[3][1].type||"space"===e[r][1].type)&&("lineEnding"===e[a][1].type||"space"===e[a][1].type)){for(t=r;++t<a;)if("codeTextData"===e[t][1].type){e[r][1].type="codeTextPadding",e[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(t=r-1,a++;++t<=a;)void 0===n?t!==a&&"lineEnding"!==e[t][1].type&&(n=t):(t===a||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),a-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}}],304127);var nG=e.i(304127);let nV=/[\0\t\n\r]/g;function n$(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let nY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nW(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return n$(n.slice(t?2:1),t?16:10)}return nf(n)||e}let nq={}.hasOwnProperty;function nK(e){return{line:e.line,column:e.column,offset:e.offset}}function nQ(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+tm({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tm({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+tm({start:t.start,end:t.end})+") is still open")}function nZ(e){let t=this;t.parser=function(n){var a,r;let l,i,s,o;return"string"!=typeof(a={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(r=a,a=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(x),autolinkProtocol:c,autolinkEmail:c,atxHeading:a(h),blockQuote:a(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:a(m),codeFencedFenceInfo:r,codeFencedFenceMeta:r,codeIndented:a(m,r),codeText:a(function(){return{type:"inlineCode",value:""}},r),codeTextData:c,data:c,codeFlowValue:c,definition:a(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:r,definitionLabelString:r,definitionTitleString:r,emphasis:a(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:a(f),hardBreakTrailing:a(f),htmlFlow:a(g,r),htmlFlowData:c,htmlText:a(g,r),htmlTextData:c,image:a(function(){return{type:"image",title:null,url:"",alt:null}}),label:r,link:a(x),listItem:a(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:a(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:a(b),paragraph:a(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:r,resourceDestinationString:r,resourceTitleString:r,setextHeading:a(h),strong:a(function(){return{type:"strong",children:[]}}),thematicBreak:a(function(){return{type:"thematicBreak"}})},exit:{atxHeading:i(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:i(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:i(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),a=this.data.characterReferenceType;a?(t=n$(n,"characterReferenceMarkerNumeric"===a?10:16),this.data.characterReferenceType=void 0):t=nf(n);let r=this.stack[this.stack.length-1];r.value+=t},characterReference:function(e){this.stack.pop().position.end=nK(e.end)},codeFenced:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:i(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nN(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:i(),hardBreakEscape:i(u),hardBreakTrailing:i(u),htmlFlow:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:i(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(nY,nW),n.identifier=nN(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=nK(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
2ype)&&(c.call(this,e),d.call(this,e))},link:i(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:i(),listOrdered:i(),listUnordered:i(),paragraph:i(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nN(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:i(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:i(),thematicBreak:i()}};!function e(t,n){let a=-1;for(;++a<n.length;){let r=n[a];Array.isArray(r)?e(t,r):function(e,t){let n;for(n in t)if(nq.call(t,n))switch(n){case"canContainEols":{let a=t[n];a&&e[n].push(...a);break}case"transforms":{let a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{let a=t[n];a&&Object.assign(e[n],a)}}}(t,r)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let a={type:"root",children:[]},i={stack:[a],tokenStack:[],config:t,enter:l,exit:s,buffer:r,resume:o,data:n},c=[],d=-1;for(;++d<e.length;)("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)&&("enter"===e[d][0]?c.push(d):d=function(e,t,n){let a,r,l,i,s=t-1,o=-1,c=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?o++:o--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!a||i||o||l||(l=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!o&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===o&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(a){let i=s;for(r=void 0;i--;){let t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;r&&(e[r][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",r=i}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!r||l<r)&&(a._spread=!0),a.end=Object.assign({},r?e[r][1].start:t[1].end),e.splice(r||s,0,["exit",a,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};a=r,e.splice(s,0,["enter",r,t[2]]),s++,n++,l=void 0,i=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];nq.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){let e=i.tokenStack[i.tokenStack.length-1];(e[1]||nQ).call(i,void 0,e[0])}for(a.position={start:nK(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nK(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)a=t.transforms[d](a)||a;return a};function a(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function r(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:nK(t.start),end:void 0}}function i(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),a=this.tokenStack.pop();if(a)a[0].type!==e.type&&(t?t.call(this,e,a[0]):(a[1]||nQ).call(this,e,a[0]));else throw Error("Cannot close `"+e.type+"` ("+tm({start:e.start,end:e.end})+"): itâs not open");n.position.end=nK(e.end)}function o(){return tM(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:nK(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=nK(e.end)}function u(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function f(){return{type:"break"}}function g(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(r)(function(e){for(;!t8(e););return e}((function(e){let t={defined:[],lazy:{},constructs:tU([nG,...(e||{}).extensions||[]]),content:n(t2),document:n(t3),flow:n(nt),string:n(na),text:n(nr)};return t;function n(e){return function(n){return function(e,t,n){let a=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),r={},l=[],i=[],s=[],o={consume:function(e){tK(e)?(a.line++,a.column=1,a.offset+=-3===e?2:1,g()):-1!==e&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===i[a._index].length&&(a._bufferIndex=-1,a._index++)),c.previous=e}
2,enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:h(function(e,t){f(e,t.from)}),check:h(m),interrupt:h(m,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:u,sliceSerialize:function(e,t){return function(e,t){let n,a=-1,r=[];for(;++a<e.length;){let l,i=e[a];if("string"==typeof i)l=i;else switch(i){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(i)}n=-2===i,r.push(l)}return r.join("")}(u(e),t)},now:p,defineSkip:function(e){r[e.line]=e.column,g()},write:function(e){return(i=tF(i,e),function(){let e;for(;a._index<i.length;){let n=i[a._index];if("string"==typeof n)for(e=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===e&&a._bufferIndex<n.length;){var t;t=n.charCodeAt(a._bufferIndex),d=d(t)}else d=d(n)}}(),null!==i[i.length-1])?[]:(f(t,0),c.events=no(l,c.events,c),c.events)}},d=t.tokenize.call(c,o);return t.resolveAll&&l.push(t),c;function u(e){return function(e,t){let n,a=t.start._index,r=t.start._bufferIndex,l=t.end._index,i=t.end._bufferIndex;if(a===l)n=[e[a].slice(r,i)];else{if(n=e.slice(a,l),r>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(r):n.shift()}i>0&&n.push(e[l].slice(0,i))}return n}(i,e)}function p(){let{line:e,column:t,offset:n,_index:r,_bufferIndex:l}=a;return{line:e,column:t,offset:n,_index:r,_bufferIndex:l}}function m(e,t){t.restore()}function h(e,t){return function(n,r,l){var i;let d,u,m,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):(i=n,function(e){let t=null!==e&&i[e],n=null!==e&&i.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function f(e){return(d=e,u=0,0===e.length)?l:x(e[u])}function x(e){return function(n){let r,l,i,d,u;return(r=p(),l=c.previous,i=c.currentConstruct,d=c.events.length,u=Array.from(s),h={restore:function(){a=r,c.previous=l,c.currentConstruct=i,c.events.length=d,s=u,g()},from:d},m=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,o,b,y)(n)}}function b(t){return e(m,h),r}function y(e){return(h.restore(),++u<d.length)?x(d[u]):l}}}function f(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&tB(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){a.line in r&&a.column<2&&(a.column=r[a.line],a.offset+=r[a.line]-1)}}(t,e,n)}}})(r).document().write((i=1,s="",o=!0,function(e,t,n){let a,r,c,d,u,p=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),c=0,s="",o&&(65279===e.charCodeAt(0)&&c++,o=void 0);c<e.length;){if(nV.lastIndex=c,d=(a=nV.exec(e))&&void 0!==a.index?a.index:e.length,u=e.charCodeAt(d),!a){s=e.slice(c);break}if(10===u&&c===d&&l)p.push(-3),l=void 0;else switch(l&&(p.push(-5),l=void 0),c<d&&(p.push(e.slice(c,d)),i+=d-c),u){case 0:p.push(65533),i++;break;case 9:for(r=4*Math.ceil(i/4),p.push(-2);i++<r;)p.push(-1);break;case 10:p.push(-4),i=1;break;default:l=!0,i=1}c=d+1}return n&&(l&&p.push(-5),s&&p.push(s),p.push(null)),p})(n,a,!0))))}}let nX="object"==typeof self?self:globalThis,nJ=e=>{var t;let n,a;return(t=new Map,n=(e,n)=>(t.set(n,e),e),a=r=>{if(t.has(r))return t.get(r);let[l,i]=e[r];switch(l){case 0:case -1:return n(i,r);case 1:{let e=n([],r);for(let t of i)e.push(a(t));return e}case 2:{let e=n({},r);for(let[t,n]of i)e[a(t)]=a(n);return e}case 3:return n(new Date(i),r);case 4:{let{source:e,flags:t}=i;return n(new RegExp(e,t),r)}case 5:{let e=n(new Map,r);for(let[t,n]of i)e.set(a(t),a(n));return e}case 6:{let e=n(new Set,r);for(let t of i)e.add(a(t));return e}case 7:{let{name:e,message:t}=i;return n(new nX[e](t),r)}case 8:return n(BigInt(i),r);case"BigInt":return n(Object(BigInt(i)),r)}return n(new nX[l](i),r)})(0)},{toString:n0}={},{keys:n1}=Object,n2=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=n0.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},n3=([e,t])=>0===e&&("function"===t||"symbol"===t),n4=(e,{json:t,lossy:n}={})=>{var a,r,l;let i,s,o=[];return(a=!(t||n),r=!!t,l=new Map,i=(e,t)=>{let n=o.push(e)-1;return l.set(t,n),n},s=e=>{if(l.has(e))return l.get(e);let[t,n]=n2(e);switch(t){case 0:{let r=e;switch(n){case"bigint":t=8,r=e.toString();break;case"function":case"symbol":if(a)throw TypeError("unable to serialize "+n);r=null;break;case"undefined":return i([-1],e)}return i([t,r],e)}case 1:{if(n)return i([n,[...e]],e);let a=[],r=i([t,a],e);for(let t of e)a.push(s(t));return r}case 2:{if(n)switch(n){case"BigInt":return i([n,e.toString()],e);case"Boolean":case"Number":case"String":return i([n,e.valueOf()],e)}if(r&&"toJSON"in e)return s(e.toJSON());let l=[],o=i([t,l],e);
2for(let t of n1(e))(a||!n3(n2(e[t])))&&l.push([s(t),s(e[t])]);return o}case 3:return i([t,e.toISOString()],e);case 4:{let{source:n,flags:a}=e;return i([t,{source:n,flags:a}],e)}case 5:{let n=[],r=i([t,n],e);for(let[t,r]of e)(a||!(n3(n2(t))||n3(n2(r))))&&n.push([s(t),s(r)]);return r}case 6:{let n=[],r=i([t,n],e);for(let t of e)(a||!n3(n2(t)))&&n.push(s(t));return r}}let{message:o}=e;return i([t,{name:n,message:o}],e)})(e),o},n5="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?nJ(n4(e,t)):structuredClone(e):(e,t)=>nJ(n4(e,t));function n6(e){let t=[],n=-1,a=0,r=0;for(;++n<e.length;){let l=e.charCodeAt(n),i="";if(37===l&&tG(e.charCodeAt(n+1))&&tG(e.charCodeAt(n+2)))r=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(i=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(i=String.fromCharCode(l,t),r=1):i="�"}else i=String.fromCharCode(l);i&&(t.push(e.slice(a,n),encodeURIComponent(i)),a=n+r+1,i=""),r&&(n+=r,r=0)}return t.join("")+e.slice(a)}function n7(e,t){let n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function n8(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let n9=function(e){var t,n;if(null==e)return at;if("function"==typeof e)return ae(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=n9(e[n]);return ae(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,ae(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,ae(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function ae(e){return function(t,n,a){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,a||void 0))}}function at(){return!0}let an=[];function aa(e,t,n,a){let r;"function"==typeof t&&"function"!=typeof n?(a=n,n=t):r=t;let l=n9(r),i=a?-1:1;(function e(r,s,o){let c=r&&"object"==typeof r?r:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return d;function d(){var c;let d,u,p,m=an;if((!t||l(r,s,o[o.length-1]||void 0))&&!1===(m=Array.isArray(c=n(r,o))?c:"number"==typeof c?[!0,c]:null==c?an:[c])[0])return m;if("children"in r&&r.children&&r.children&&"skip"!==m[0])for(u=(a?r.children.length:-1)+i,p=o.concat(r);u>-1&&u<r.children.length;){if(!1===(d=e(r.children[u],u,p)())[0])return d;u="number"==typeof d[1]?d[1]:u+i}return m}})(e,void 0,[])()}function ar(e,t,n,a){let r,l,i;"function"==typeof t&&"function"!=typeof n?(l=void 0,i=t,r=n):(l=t,i=n,r=a),aa(e,l,function(e,t){let n=t[t.length-1],a=n?n.children.indexOf(e):void 0;return i(e,a,n)},r)}function al(e,t){let n=t.referenceType,a="]";if("collapsed"===n?a+="[]":"full"===n&&(a+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+a}];let r=e.all(t),l=r[0];l&&"text"===l.type?l.value="["+l.value:r.unshift({type:"text",value:"["});let i=r[r.length-1];return i&&"text"===i.type?i.value+=a:r.push({type:"text",value:a}),r}function ai(e){let t=e.spread;return null==t?e.children.length>1:t}function as(e,t,n){let a=0,r=e.length;if(t){let t=e.codePointAt(a);for(;9===t||32===t;)a++,t=e.codePointAt(a)}if(n){let t=e.codePointAt(r-1);for(;9===t||32===t;)r--,t=e.codePointAt(r-1)}return r>a?e.slice(a,r):""}let ao={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",a={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(a.className=["language-"+r[0]]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
2,footnoteReference:function(e,t){let n,a="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=n6(r.toLowerCase()),i=e.footnoteOrder.indexOf(r),s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),n=e.footnoteOrder.length):n=i+1,s+=1,e.footnoteCounts.set(r,s);let o={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+l,id:a+"fnref-"+l+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,o);let c={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return al(e,t);let r={src:n6(a.url||""),alt:t.alt};null!==a.title&&void 0!==a.title&&(r.title=a.title);let l={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:n6(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return al(e,t);let r={href:n6(a.url||"")};null!==a.title&&void 0!==a.title&&(r.title=a.title);let l={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:n6(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},listItem:function(e,t,n){let a=e.all(t),r=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,a=-1;for(;!t&&++a<n.length;)t=ai(n[a])}return t}(n):ai(t),l={},i=[];if("boolean"==typeof t.checked){let e,n=a[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},a.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let s=-1;for(;++s<a.length;){let e=a[s];(r||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||r?i.push(e):i.push(...e.children)}let o=a[a.length-1];o&&(r||"element"!==o.type||"p"!==o.tagName)&&i.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:l,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},a=e.all(t),r=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++r<a.length;){let e=a[r];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),a=n.shift(),r=[];if(a){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],n),r.push(n)}if(n.length>0){let a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=tu(t.children[1]),i=td(t.children[t.children.length-1]);l&&i&&(a.position={start:l,end:i}),r.push(a)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
2,tableRow:function(e,t,n){let a=n?n.children:void 0,r=0===(a?a.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,i=l?l.length:t.children.length,s=-1,o=[];for(;++s<i;){let n=t.children[s],a={},i=l?l[s]:void 0;i&&(a.align=i);let c={type:"element",tagName:r,properties:a,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),o.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(o,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,a=n.exec(t),r=0,l=[];for(;a;)l.push(as(t.slice(r,a.index),r>0,!0),a[0]),r=a.index+a[0].length,a=n.exec(t);return l.push(as(t.slice(r),r>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ac,yaml:ac,definition:ac,footnoteDefinition:ac};function ac(){}let ad={}.hasOwnProperty,au={};function ap(e,t){e.position&&(t.position=function(e){let t=tu(e),n=td(e);if(t&&n)return{start:t,end:n}}(e))}function am(e,t){let n=t;if(e&&e.data){let t=e.data.hName,a=e.data.hChildren,r=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&r&&Object.assign(n.properties,n5(r)),"children"in n&&n.children&&null!=a&&(n.children=a)}return n}function ah(e,t){let n=[],a=-1;for(t&&n.push({type:"text",value:"\n"});++a<e.length;)a&&n.push({type:"text",value:"\n"}),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function af(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ag(e,t){let n,a,r,l,i=(n=t||au,a=new Map,r=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,a=-1;for(;++a<n.length;){let r=l.one(n[a],e);if(r){if(a&&"break"===n[a-1].type&&(Array.isArray(r)||"text"!==r.type||(r.value=af(r.value)),!Array.isArray(r)&&"element"===r.type)){let e=r.children[0];e&&"text"===e.type&&(e.value=af(e.value))}Array.isArray(r)?t.push(...r):t.push(r)}}}return t},applyData:am,definitionById:a,footnoteById:r,footnoteCounts:new Map,footnoteOrder:[],handlers:{...ao,...n.handlers},one:function(e,t){let n=e.type,a=l.handlers[n];if(ad.call(l.handlers,n)&&a)return a(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,a=n5(n);return a.children=l.all(e),a}return n5(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},a="value"in t&&!(ad.call(n,"hProperties")||ad.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)})(l,e,t)},options:n,patch:ap,wrap:ah},ar(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?a:r,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l),s=i.one(e,void 0),o=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||n7,a=e.options.footnoteBackLabel||n8,r=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],o=-1;for(;++o<e.footnoteOrder.length;){let r=e.footnoteById.get(e.footnoteOrder[o]);if(!r)continue;let l=e.all(r),i=String(r.identifier).toUpperCase(),c=n6(i.toLowerCase()),d=0,u=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++d<=p;){u.length>0&&u.push({type:"text",value:" "});let e="string"==typeof n?n:n(o,d);"string"==typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof a?a:a(o,d),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let m=l[l.length-1];if(m&&"element"===m.type&&"p"===m.tagName){let e=m.children[m.children.length-1];e&&"text"===e.type?e.value+=" ":m.children.push({type:"text",value:" "}),m.children.push(...u)}else l.push(...u);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(l,!0)};e.patch(r,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...n5(i),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)}
2,{type:"text",value:"\n"}]}}(i),c=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return o&&(eA("children"in c),c.children.push({type:"text",value:"\n"},o)),c}function ax(e,t){return e&&"run"in e?async function(n,a){let r=ag(n,{file:a,...t});await e.run(r,a)}:function(n,a){return ag(n,{file:a,...t||e})}}function ab(e){if(e)throw e}var ay=e.i(104100);function a_(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let av=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');aN(e);let a=0,r=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){a=l+1;break}}else r<0&&(n=!0,r=l+1);return r<0?"":e.slice(a,r)}if(t===e)return"";let i=-1,s=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){a=l+1;break}}else i<0&&(n=!0,i=l+1),s>-1&&(e.codePointAt(l)===t.codePointAt(s--)?s<0&&(r=l):(s=-1,r=i));return a===r?r=i:r<0&&(r=e.length),e.slice(a,r)},aC=function(e){let t;if(aN(e),0===e.length)return".";let n=-1,a=e.length;for(;--a;)if(47===e.codePointAt(a)){if(t){n=a;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},aT=function(e){let t;aN(e);let n=e.length,a=-1,r=0,l=-1,i=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){r=n+1;break}continue}a<0&&(t=!0,a=n+1),46===s?l<0?l=n:1!==i&&(i=1):l>-1&&(i=-1)}return l<0||a<0||0===i||1===i&&l===a-1&&l===r+1?"":e.slice(l,a)},aE=function(...e){var t;let n,a,r,l=-1;for(;++l<e.length;)aN(e[l]),e[l]&&(r=void 0===r?e[l]:r+"/"+e[l]);return void 0===r?".":(aN(t=r),n=47===t.codePointAt(0),0!==(a=function(e,t){let n,a,r="",l=0,i=-1,s=0,o=-1;for(;++o<=e.length;){if(o<e.length)n=e.codePointAt(o);else if(47===n)break;else n=47;if(47===n){if(i===o-1||1===s);else if(i!==o-1&&2===s){if(r.length<2||2!==l||46!==r.codePointAt(r.length-1)||46!==r.codePointAt(r.length-2)){if(r.length>2){if((a=r.lastIndexOf("/"))!==r.length-1){a<0?(r="",l=0):l=(r=r.slice(0,a)).length-1-r.lastIndexOf("/"),i=o,s=0;continue}}else if(r.length>0){r="",l=0,i=o,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",l=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),l=o-i-1;i=o,s=0}else 46===n&&s>-1?s++:s=-1}return r}(t,!n)).length||n||(a="."),a.length>0&&47===t.codePointAt(t.length-1)&&(a+="/"),n?"/"+a:a)};function aN(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function aA(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let ak=["history","path","basename","stem","extname","dirname"];class aw{constructor(e){let t,n;t=e?aA(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<ak.length;){const e=ak[a];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ak.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?av(this.path):void 0}set basename(e){aI(e,"basename"),aS(e,"basename"),this.path=aE(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?aC(this.path):void 0}set dirname(e){aD(this.basename,"dirname"),this.path=aE(e||"",this.basename)}get extname(){return"string"==typeof this.path?aT(this.path):void 0}set extname(e){if(aS(e,"extname"),aD(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=aE(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){aA(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!aA(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),aI(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?av(this.path,this.extname):void 0}set stem(e){aI(e,"stem"),aS(e,"stem"),this.path=aE(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let a=this.message(e,t,n);throw a.fatal=!0,a}info(e,t,n){let a=this.message(e,t,n);return a.fatal=void 0,a}message(e,t,n){let a=new tx(e,t,n);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function aS(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function aI(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function aD(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let aL=function(e){let t=this.constructor.prototype,n=t[e],a=function(){return n.apply(a,arguments)};return Object.setPrototypeOf(a,t),a},aj={}.hasOwnProperty;class aP extends aL{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,a=t.pop();if("function"!=typeof a)throw TypeError("Expected function as last argument, not "+a);!function r(l,...i){let s=e[++n],o=-1;if(l)return void a(l);for(;++o<t.length;
2)(null===i[o]||void 0===i[o])&&(i[o]=t[o]);t=i,s?(function(e,t){let n;return function(...t){let l,i=e.length>t.length;i&&t.push(a);try{l=e.apply(this,t)}catch(e){if(i&&n)throw e;return a(e)}i||(l&&l.then&&"function"==typeof l.then?l.then(r,a):l instanceof Error?a(l):r(l))};function a(e,...r){n||(n=!0,t(e,...r))}function r(e){a(null,e)}})(s,r)(...i):a(null,...i)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new aP,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,ay.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(aB("data",this.frozen),this.namespace[e]=t,this):aj.call(this.namespace,e)&&this.namespace[e]||void 0:e?(aB("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=aU(e),n=this.parser||this.Parser;return aO("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),aO("process",this.parser||this.Parser),aR("process",this.compiler||this.Compiler),t?a(void 0,t):new Promise(a);function a(a,r){let l=aU(e),i=n.parse(l);function s(e,n){e||!n?r(e):a?a(n):(eA(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(i,l,function(e,t,a){var r,l;if(e||!t||!a)return s(e);let i=n.stringify(t,a);"string"==typeof(r=i)||(l=r)&&"object"==typeof l&&"byteLength"in l&&"byteOffset"in l?a.value=i:a.result=i,s(e,a)})}}processSync(e){let t,n=!1;return this.freeze(),aO("processSync",this.parser||this.Parser),aR("processSync",this.compiler||this.Compiler),this.process(e,function(e,a){n=!0,ab(e),t=a}),aH("processSync","process",n),eA(t,"we either bailed on an error or have a tree"),t}run(e,t,n){aF(e),this.freeze();let a=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?r(void 0,n):new Promise(r);function r(r,l){eA("function"!=typeof t,"`file` canât be a `done` anymore, we checked");let i=aU(t);a.run(e,i,function(t,a,i){let s=a||e;t?l(t):r?r(s):(eA(n,"`done` is defined if `resolve` is not"),n(void 0,s,i))})}}runSync(e,t){let n,a=!1;return this.run(e,t,function(e,t){ab(e),n=t,a=!0}),aH("runSync","run",a),eA(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=aU(t),a=this.compiler||this.Compiler;return aR("stringify",a),aF(e),a(e,n)}use(e,...t){let n=this.attachers,a=this.namespace;if(aB("use",this.frozen),null==e);else if("function"==typeof e)i(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):r(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function r(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(a.settings=(0,ay.default)(!0,a.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)i(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;i(t,n)}else r(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function i(e,t){let a=-1,r=-1;for(;++a<n.length;)if(n[a][0]===e){r=a;break}if(-1===r)n.push([e,...t]);else if(t.length>0){let[a,...l]=t,i=n[r][1];a_(i)&&a_(a)&&(a=(0,ay.default)(!0,i,a)),n[r]=[e,a,...l]}}}}let aM=new aP().freeze();function aO(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function aR(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function aB(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function aF(e){if(!a_(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function aH(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function aU(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new aw(e)}let az=[],aG={allowDangerousHtml:!0},aV=/^(https?|ircs?|mailto|xmpp)$/i,a$=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function aY(e){var t;let n,a,r,l,i,s=(n=(t=e).rehypePlugins||az,a=t.remarkPlugins||az,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...aG}:aG,aM().use(nZ).use(a).use(ax,r).use(n)),o=(l=e.children||"",i=new aw,"string"==typeof l?i.value=l:ek("Unexpected value `"+l+"` for `children` prop, expected `string`"),i);return function(e,t){let n=t.allowedElements,a=t.allowElement,r=t.components,l=t.disallowedElements,i=t.skipHtml,s=t.unwrapDisallowed,o=t.urlTransform||aW;for(let e of a$)Object.hasOwn(t,e.from)&&ek("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&l&&ek("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),ar(e,function(e,t,r){if("raw"===e.type&&r&&"number"==typeof t)return i?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in tj)if(Object.hasOwn(tj,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],a=tj[t];(null===a||a.includes(e.tagName))&&(e.properties[t]=o(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!l&&l.includes(e.tagName);if(!i&&a&&"number"==typeof t&&(i=!a(e,t,r)),i&&r&&"number"==typeof t)return s&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),function(e,t){var n,a,r,l;let i;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,a=t.jsxDEV,i=function(e,t,r,l){let i=Array.isArray(r.children),s=tu(e);return a(t,r,l,i,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
2if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,l=t.jsxs,i=function(e,t,n,a){let i=Array.isArray(n.children)?l:r;return a?i(t,n,a):i(t,n)}}let o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?tl:tr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=tN(o,e,void 0);return c&&"string"!=typeof c?c:o.create(e,o.Fragment,{children:c||void 0},void 0)}(e,{Fragment:j.Fragment,components:r,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(o),o),e)}function aW(e){let t=e.indexOf(":"),n=e.indexOf("?"),a=e.indexOf("#"),r=e.indexOf("/");return -1===t||-1!==r&&t>r||-1!==n&&t>n||-1!==a&&t>a||aV.test(e.slice(0,t))?e:""}class aq{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function aK(e,t){let n={},a={};for(let t of e)Object.assign(n,t.property),Object.assign(a,t.normal);return new aq(n,a,t)}function aQ(e){return e.toLowerCase()}aq.prototype.normal={},aq.prototype.property={},aq.prototype.space=void 0;class aZ{constructor(e,t){this.attribute=t,this.property=e}}aZ.prototype.attribute="",aZ.prototype.booleanish=!1,aZ.prototype.boolean=!1,aZ.prototype.commaOrSpaceSeparated=!1,aZ.prototype.commaSeparated=!1,aZ.prototype.defined=!1,aZ.prototype.mustUseProperty=!1,aZ.prototype.number=!1,aZ.prototype.overloadedBoolean=!1,aZ.prototype.property="",aZ.prototype.spaceSeparated=!1,aZ.prototype.space=void 0;let aX=0,aJ=a6(),a0=a6(),a1=a6(),a2=a6(),a3=a6(),a4=a6(),a5=a6();function a6(){return 2**++aX}e.s(["boolean",0,aJ,"booleanish",0,a0,"commaOrSpaceSeparated",0,a5,"commaSeparated",0,a4,"number",0,a2,"overloadedBoolean",0,a1,"spaceSeparated",0,a3],400744);var a7=e.i(400744);let a8=Object.keys(a7);class a9 extends aZ{constructor(e,t,n,a){let r=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",a),"number"==typeof n)for(;++r<a8.length;){const e=a8[r];!function(e,t,n){n&&(e[t]=n)}(this,a8[r],(n&a7[e])===a7[e])}}}function re(e){let t={},n={};for(let[a,r]of Object.entries(e.properties)){let l=new a9(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(l.mustUseProperty=!0),t[a]=l,n[aQ(a)]=a,n[aQ(l.attribute)]=a}return new aq(t,n,e.space)}a9.prototype.defined=!0;let rt=re({properties:{ariaActiveDescendant:null,ariaAtomic:a0,ariaAutoComplete:null,ariaBusy:a0,ariaChecked:a0,ariaColCount:a2,ariaColIndex:a2,ariaColSpan:a2,ariaControls:a3,ariaCurrent:null,ariaDescribedBy:a3,ariaDetails:null,ariaDisabled:a0,ariaDropEffect:a3,ariaErrorMessage:null,ariaExpanded:a0,ariaFlowTo:a3,ariaGrabbed:a0,ariaHasPopup:null,ariaHidden:a0,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:a3,ariaLevel:a2,ariaLive:null,ariaModal:a0,ariaMultiLine:a0,ariaMultiSelectable:a0,ariaOrientation:null,ariaOwns:a3,ariaPlaceholder:null,ariaPosInSet:a2,ariaPressed:a0,ariaReadOnly:a0,ariaRelevant:null,ariaRequired:a0,ariaRoleDescription:a3,ariaRowCount:a2,ariaRowIndex:a2,ariaRowSpan:a2,ariaSelected:a0,ariaSetSize:a2,ariaSort:null,ariaValueMax:a2,ariaValueMin:a2,ariaValueNow:a2,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function rn(e,t){return t in e?e[t]:t}function ra(e,t){return rn(e,t.toLowerCase())}let rr=re({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:a4,acceptCharset:a3,accessKey:a3,action:null,allow:null,allowFullScreen:aJ,allowPaymentRequest:aJ,allowUserMedia:aJ,alt:null,as:null,async:aJ,autoCapitalize:null,autoComplete:a3,autoFocus:aJ,autoPlay:aJ,blocking:a3,capture:null,charSet:null,checked:aJ,cite:null,className:a3,cols:a2,colSpan:null,content:null,contentEditable:a0,controls:aJ,controlsList:a3,coords:a2|a4,crossOrigin:null,data:null,dateTime:null,decoding:null,default:aJ,defer:aJ,dir:null,dirName:null,disabled:aJ,download:a1,draggable:a0,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:aJ,formTarget:null,headers:a3,he
2ight:a2,hidden:a1,high:a2,href:null,hrefLang:null,htmlFor:a3,httpEquiv:a3,id:null,imageSizes:null,imageSrcSet:null,inert:aJ,inputMode:null,integrity:null,is:null,isMap:aJ,itemId:null,itemProp:a3,itemRef:a3,itemScope:aJ,itemType:a3,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:aJ,low:a2,manifest:null,max:null,maxLength:a2,media:null,method:null,min:null,minLength:a2,multiple:aJ,muted:aJ,name:null,nonce:null,noModule:aJ,noValidate:aJ,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:aJ,optimum:a2,pattern:null,ping:a3,placeholder:null,playsInline:aJ,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:aJ,referrerPolicy:null,rel:a3,required:aJ,reversed:aJ,rows:a2,rowSpan:a2,sandbox:a3,scope:null,scoped:aJ,seamless:aJ,selected:aJ,shadowRootClonable:aJ,shadowRootDelegatesFocus:aJ,shadowRootMode:null,shape:null,size:a2,sizes:null,slot:null,span:a2,spellCheck:a0,src:null,srcDoc:null,srcLang:null,srcSet:null,start:a2,step:null,style:null,tabIndex:a2,target:null,title:null,translate:null,type:null,typeMustMatch:aJ,useMap:null,value:a0,width:a2,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:a3,axis:null,background:null,bgColor:null,border:a2,borderColor:null,bottomMargin:a2,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:aJ,declare:aJ,event:null,face:null,frame:null,frameBorder:null,hSpace:a2,leftMargin:a2,link:null,longDesc:null,lowSrc:null,marginHeight:a2,marginWidth:a2,noResize:aJ,noHref:aJ,noShade:aJ,noWrap:aJ,object:null,profile:null,prompt:null,rev:null,rightMargin:a2,rules:null,scheme:null,scrolling:a0,standby:null,summary:null,text:null,topMargin:a2,valueType:null,version:null,vAlign:null,vLink:null,vSpace:a2,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:aJ,disableRemotePlayback:aJ,prefix:null,property:null,results:a2,security:null,unselectable:null},space:"html",transform:ra}),rl=re({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav
2-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:a5,accentHeight:a2,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:a2,amplitude:a2,arabicForm:null,ascent:a2,attributeName:null,attributeType:null,azimuth:a2,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:a2,by:null,calcMode:null,capHeight:a2,className:a3,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:a2,diffuseConstant:a2,direction:null,display:null,dur:null,divisor:a2,dominantBaseline:null,download:aJ,dx:null,dy:null,edgeMode:null,editable:null,elevation:a2,enableBackground:null,end:null,event:null,exponent:a2,externalResourcesRequired:null,fill:null,fillOpacity:a2,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:a4,g2:a4,glyphName:a4,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:a2,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:a2,horizOriginX:a2,horizOriginY:a2,id:null,ideographic:a2,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:a2,k:a2,k1:a2,k2:a2,k3:a2,k4:a2,kernelMatrix:a5,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:a2,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:a2,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
2Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:a2,overlineThickness:a2,paintOrder:null,panose1:null,path:null,pathLength:a2,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:a3,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:a2,pointsAtY:a2,pointsAtZ:a2,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:a5,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:a5,rev:a5,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:a5,requiredFeatures:a5,requiredFonts:a5,requiredFormats:a5,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:a2,specularExponent:a2,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:a2,strikethroughThickness:a2,string:null,stroke:null,strokeDashArray:a5,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:a2,strokeOpacity:a2,strokeWidth:null,style:null,surfaceScale:a2,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:a5,tabIndex:a2,tableValues:null,target:null,targetX:a2,targetY:a2,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:a5,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:a2,underlineThickness:a2,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:a2,values:null,vAlphabetic:a2,vMathematical:a2,vectorEffect:null,vHanging:a2,vIdeographic:a2,version:null,vertAdvY:a2,vertOriginX:a2,vertOriginY:a2,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:a2,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:rn}),ri=re({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),rs=re({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ra}),ro=re({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),rc=aK([rt,rr,ri,rs,ro],"html"),rd=aK([rt,rl,ri,rs,ro],"svg"),ru=/[#.]/g,rp=/[A-Z]/g,rm=/-[a-z]/g,rh=/^data[-\w.:]+$/i;function rf(e,t){let n=aQ(t),a=t,r=aZ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&rh.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(rm,rx);a="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!rm.test(e)){let n=e.replace(rp,rg);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}r=a9}return new r(a,t)}function rg(e){return"-"+e.toLowerCase()}function rx(e){return e.charAt(1).toUpperCase()}function rb(e,t,n){let a=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,r,...l){let i;if(null==n)i={type:"root",children:[]},l.unshift(r);else{let s=(i=function(e,t){let n,a,r=e||"",l={},i=0;for(;i<r.length;){ru.lastIndex=i;let e=ru.exec(r),t=r.slice(i,e?e.index:r.length);t&&(n?"#"===n?l.id=t:Array.isArray(l.className)?l.className.push(t):l.className=[t]:a=t,i+=t.length),e&&(n=e[0],i++)}return{type:"element",tagName:a||t||"div",properties:l,children:[]}}(n,t)).tagName.toLowerCase(),o=a?a.get(s):void 0;if(i.tagName=o||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(r))l.unshift(r);else for(let[t,n]of Object.entries(r))!function(e,t,n,a){let r,l=rf(e,n);
2if(null!=a){if("number"==typeof a){if(Number.isNaN(a))return;r=a}else r="boolean"==typeof a?a:"string"==typeof a?l.spaceSeparated?ti(a):l.commaSeparated?ew(a):l.commaOrSpaceSeparated?ti(ew(a).join(" ")):ry(l,l.property,a):Array.isArray(a)?[...a]:"style"===l.property?function(e){let t=[];for(let[n,a]of Object.entries(e))t.push([n,a].join(": "));return t.join("; ")}(a):String(a);if(Array.isArray(r)){let e=[];for(let t of r)e.push(ry(l,l.property,t));r=e}"className"===l.property&&Array.isArray(t.className)&&(r=t.className.concat(r)),t[l.property]=r}}(e,i.properties,t,n)}for(let e of l)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let a of n)e(t,a);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function ry(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||aQ(n)===aQ(t)))return!0}return n}let r_=rb(rc,"div"),rv=rb(rd,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function rC(e,t){let n=e.indexOf("\r",t),a=e.indexOf("\n",t);return -1===a?n:-1===n||n+1===a?a:n<a?n:a}let rT={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},rE={}.hasOwnProperty,rN=Object.prototype;function rA(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},rw(e,t,n),n;case"#document":case"#document-fragment":{let a="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:rk(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){let t,a,r=String(e.file),l=(t=String(r),a=[],{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;a.length<e.line;){let e=a[a.length-1],n=rC(t,e),r=-1===n?t.length+1:n+1;if(e===r)break;a.push(r)}let n=(e.line>1?a[e.line-2]:0)+e.column-1;if(n<a[e.line-1])return n}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let n=0;for(;;){let r=a[n];if(void 0===r){let e=rC(t,a[n-1]);r=-1===e?t.length+1:e+1,a[n]=r}if(r>e)return{line:n+1,column:e-(n>0?a[n-1]:0)+1,offset:e};n++}}}}),i=l.toPoint(0),s=l.toPoint(r.length);eA(i,"expected `start`"),eA(s,"expected `end`"),n.position={start:i,end:s}}return n}case"#documentType":return rw(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},rw(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===rT.svg?rd:rc;let a=-1,r={};for(;++a<t.attrs.length;){let e=t.attrs[a],n=(e.prefix?e.prefix+":":"")+e.name;rE.call(rN,n)||(r[n]=e.value)}let l=("svg"===e.schema.space?rv:r_)(t.tagName,r,rk(e,t.childNodes));if(rw(e,t,l),"template"===l.tagName){let n=t.sourceCodeLocation,a=n&&n.startTag&&rS(n.startTag),r=n&&n.endTag&&rS(n.endTag),i=rA(e,t.content);a&&r&&e.file&&(i.position={start:a.end,end:r.start}),l.content=i}return e.schema=n,l}(e,t)}}function rk(e,t){let n=-1,a=[];for(;++n<t.length;){let r=rA(e,t[n]);a.push(r)}return a}function rw(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let a=function(e,t,n){let a=rS(n);if("element"===t.type){let r=t.children[t.children.length-1];if(a&&!n.endTag&&r&&r.position&&r.position.end&&(a.end=Object.assign({},r.position.end)),e.verbose){let a,r={};if(n.attrs)for(a in n.attrs)rE.call(n.attrs,a)&&(r[rf(e.schema,a).property]=rS(n.attrs[a]));
2eA(n.startTag,"a start tag should exist");let l=rS(n.startTag),i=n.endTag?rS(n.endTag):void 0,s={opening:l};i&&(s.closing=i),s.properties=r,t.data={position:s}}}return a}(e,n,t.sourceCodeLocation);a&&(e.location=!0,n.position=a)}}function rS(e){let t=rI({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=rI({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function rI(e){return e.line&&e.column?e:void 0}let rD={}.hasOwnProperty;function rL(e,t){let n=t||{};function a(t,...n){let r=a.invalid,l=a.handlers;if(t&&rD.call(t,e)){let n=String(t[e]);r=rD.call(l,n)?l[n]:a.unknown}if(r)return r.call(this,t,...n)}return a.handlers=n.handlers||{},a.invalid=n.invalid,a.unknown=n.unknown,a}let rj={}.hasOwnProperty,rP=rL("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=rM(e.children,n,t),rO(e,n),n},element:function(e,t){var n,a;let r,l,i=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(i=rd);let s=[];if(e.properties){for(r in e.properties)if("children"!==r&&rj.call(e.properties,r)){let t=function(e,t,n){let a=rf(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&a.boolean)return;Array.isArray(n)&&(n=a.commaSeparated?eS(n):ts(n));let r={name:a.attribute,value:!0===n?"":String(n)};if(a.space&&"html"!==a.space&&"svg"!==a.space){let e=r.name.indexOf(":");e<0?r.prefix="":(r.name=r.name.slice(e+1),r.prefix=a.attribute.slice(0,e)),r.namespace=rT[a.space]}return r}(i,r,e.properties[r]);t&&s.push(t)}}let o=i.space;eA(o);let c={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:rT[o],childNodes:[],parentNode:null};return c.childNodes=rM(e.children,c,i),rO(e,c),"template"===e.tagName&&e.content&&(n=e.content,a=i,(l={nodeName:"#document-fragment",childNodes:[]}).childNodes=rM(n.children,l,a),rO(n,l),c.content=l),c},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return rO(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return rO(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return rO(e,t),t}}});function rM(e,t,n){let a=-1,r=[];if(e)for(;++a<e.length;){let l=rP(e[a],n);l.parentNode=t,r.push(l)}return r}function rO(e,t){let n=e.position;n&&n.start&&n.end&&(eA("number"==typeof n.start.offset),eA("number"==typeof n.end.offset),t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}let rR=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],rB=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);(n=x||(x={}))[n.EOF=-1]="EOF",n[n.NULL=0]="NULL",n[n.TABULATION=9]="TABULATION",n[n.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",n[n.LINE_FEED=10]="LINE_FEED",n[n.FORM_FEED=12]="FORM_FEED",n[n.SPACE=32]="SPACE",n[n.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",n[n.QUOTATION_MARK=34]="QUOTATION_MARK",n[n.AMPERSAND=38]="AMPERSAND",n[n.APOSTROPHE=39]="APOSTROPHE",n[n.HYPHEN_MINUS=45]="HYPHEN_MINUS",n[n.SOLIDUS=47]="SOLIDUS",n[n.DIGIT_0=48]="DIGIT_0",n[n.DIGIT_9=57]="DIGIT_9",n[n.SEMICOLON=59]="SEMICOLON",n[n.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",n[n.EQUALS_SIGN=61]="EQUALS_SIGN",n[n.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",n[n.QUESTION_MARK=63]="QUESTION_MARK",n[n.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",n[n.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",n[n.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",n[n.GRAVE_ACCENT=96]="GRAVE_ACCENT",n[n.LATIN_SMALL_A=97]="LATIN_SMALL_A",n[n.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let rF="[CDATA[",rH="doctype",rU="script";function rz(e){return e>=55296&&e<=57343}function rG(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function rV(e){return e>=64976&&e<=65007||rB.has(e)}(a=b||(b={})).controlCharacterInInputStream="control-character-in-input-stream",a.noncharacterInInputStream="noncharacter-in-input-stream",a.surrogateInInputStream="surrogate-in-input-stream",a.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",a.endTagWithAttributes="end-tag-with-attributes",a.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",a.unexpectedSolidusInTag="unexpected-solidus-in-tag",a.unexpectedNullCharacter="unexpected-null-character",a.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",a.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",a.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",a.missingEndTagName="missing-end-tag-name",a.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",a.unknownNamedCharacterReference="unknown-named-character-reference",a.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",a.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",a.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",a.eofBeforeTagName="eof-before-tag-name",a.eofInTag="eof-in-tag",a.missingAttributeValue="missing-attribute-value",a.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",a.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",a.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",a.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",a.missingQuoteBeforeDoctype
2SystemIdentifier="missing-quote-before-doctype-system-identifier",a.missingDoctypePublicIdentifier="missing-doctype-public-identifier",a.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",a.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",a.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",a.cdataInHtmlContent="cdata-in-html-content",a.incorrectlyOpenedComment="incorrectly-opened-comment",a.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",a.eofInDoctype="eof-in-doctype",a.nestedComment="nested-comment",a.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",a.eofInComment="eof-in-comment",a.incorrectlyClosedComment="incorrectly-closed-comment",a.eofInCdata="eof-in-cdata",a.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",a.nullCharacterReference="null-character-reference",a.surrogateCharacterReference="surrogate-character-reference",a.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",a.controlCharacterReference="control-character-reference",a.noncharacterCharacterReference="noncharacter-character-reference",a.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",a.missingDoctypeName="missing-doctype-name",a.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",a.duplicateAttribute="duplicate-attribute",a.nonConformingDoctype="non-conforming-doctype",a.missingDoctype="missing-doctype",a.misplacedDoctype="misplaced-doctype",a.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",a.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",a.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",a.openElementsLeftAfterEof="open-elements-left-after-eof",a.abandonedHeadElementChild="abandoned-head-element-child",a.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",a.nestedNoscriptInHead="nested-noscript-in-head",a.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class r${constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:a,offset:r}=this,l=a+t,i=r+t;return{code:e,startLine:n,endLine:n,startCol:l,endCol:l,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,x.EOF;return this._err(b.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;let n=this.html.charCodeAt(t);return n===x.CARRIAGE_RETURN?x.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;let e=this.html.charCodeAt(this.pos);return e===x.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,x.LINE_FEED):e===x.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,rz(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===x.LINE_FEED||e===x.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){rG(e)?this._err(b.controlCharacterInInputStream):rV(e)&&this._err(b.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function rY(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(r=y||(y={}))[r.CHARACTER=0]="CHARACTER",r[r.NULL_CHARACTER=1]="NULL_CHARACTER",r[r.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",r[r.START_TAG=3]="START_TAG",r[r.END_TAG=4]="END_TAG",r[r.COMMENT=5]="COMMENT",r[r.DOCTYPE=6]="DOCTYPE",r[r.EOF=7]="EOF",r[r.HIBERNATION=8]="HIBERNATION",e.s(["TokenType",()=>y,"getTokenAttr",()=>rY],92261);
2let rW
vendor: 10,025 bytes, line 2
2=new Uint16Array('áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;
vendor: 6,122 bytes, line 2
2ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 10,520 bytes, line 2
2ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ'.split("").map(
2e=>e.charCodeAt(0))),rq=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rK(e){return e>=v.ZERO&&e<=v.NINE}_=String.fromCodePoint,(l=v||(v={}))[l.NUM=35]="NUM",l[l.SEMI=59]="SEMI",l[l.EQUALS=61]="EQUALS",l[l.ZERO=48]="ZERO",l[l.NINE=57]="NINE",l[l.LOWER_A=97]="LOWER_A",l[l.LOWER_F=102]="LOWER_F",l[l.LOWER_X=120]="LOWER_X",l[l.LOWER_Z=122]="LOWER_Z",l[l.UPPER_A=65]="UPPER_A",l[l.UPPER_F=70]="UPPER_F",l[l.UPPER_Z=90]="UPPER_Z",(i=C||(C={}))[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE",(s=T||(T={}))[s.EntityStart=0]="EntityStart",s[s.NumericStart=1]="NumericStart",s[s.NumericDecimal=2]="NumericDecimal",s[s.NumericHex=3]="NumericHex",s[s.NamedEntity=4]="NamedEntity",(o=E||(E={}))[o.Legacy=0]="Legacy",o[o.Strict=1]="Strict",o[o.Attribute=2]="Attribute";class rQ{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=T.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=E.Strict}startEntity(e){this.decodeMode=e,this.state=T.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case T.EntityStart:if(e.charCodeAt(t)===v.NUM)return this.state=T.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=T.NamedEntity,this.stateNamedEntity(e,t);case T.NumericStart:return this.stateNumericStart(e,t);case T.NumericDecimal:return this.stateNumericDecimal(e,t);case T.NumericHex:return this.stateNumericHex(e,t);case T.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===v.LOWER_X?(this.state=T.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=T.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,a){if(t!==n){let r=n-t;this.result=this.result*Math.pow(a,r)+Number.parseInt(e.substr(t,r),a),this.consumed+=r}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var a;let r=e.charCodeAt(t);if(!rK(r)&&(!((a=r)>=v.UPPER_A)||!(a<=v.UPPER_F))&&(!(a>=v.LOWER_A)||!(a<=v.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let a=e.charCodeAt(t);if(!rK(a))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(a,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,a,r;if(this.consumed<=t)return null==(n=this.errors)||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===v.SEMI)this.consumed+=1;else if(this.decodeMode===E.Strict)return 0;return this.emitCodePoint((a=this.result)>=55296&&a<=57343||a>1114111?65533:null!=(r=rq.get(a))?r:a,this.consumed),this.errors&&(e!==v.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,a=n[this.treeIndex],r=(a&C.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let l=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,a){let r=(t&C.BRANCH_LENGTH)>>7,l=t&C.JUMP_TABLE;if(0===r)return 0!==l&&a===l?n:-1;
2if(l){let t=a-l;return t<0||t>=r?-1:e[n+t]-1}let i=n,s=i+r-1;for(;i<=s;){let t=i+s>>>1,n=e[t];if(n<a)i=t+1;else{if(!(n>a))return e[t+r];s=t-1}}return -1}(n,a,this.treeIndex+Math.max(1,r),l),this.treeIndex<0)return 0===this.result||this.decodeMode===E.Attribute&&(0===r||function(e){var t;return e===v.EQUALS||(t=e)>=v.UPPER_A&&t<=v.UPPER_Z||t>=v.LOWER_A&&t<=v.LOWER_Z||rK(t)}(l))?0:this.emitNotTerminatedNamedEntity();if(0!=(r=((a=n[this.treeIndex])&C.VALUE_LENGTH)>>14)){if(l===v.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==E.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,a=(n[t]&C.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,a,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:a}=this;return this.emitCodePoint(1===t?a[e]&~C.VALUE_LENGTH:a[e+1],n),3===t&&this.emitCodePoint(a[e+2],n),n}end(){var e;switch(this.state){case T.NamedEntity:return 0!==this.result&&(this.decodeMode!==E.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case T.NumericDecimal:return this.emitNumericEntity(0,2);case T.NumericHex:return this.emitNumericEntity(0,3);case T.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case T.EntityStart:return 0}}}(c=N||(N={})).HTML="http://www.w3.org/1999/xhtml",c.MATHML="http://www.w3.org/1998/Math/MathML",c.SVG="http://www.w3.org/2000/svg",c.XLINK="http://www.w3.org/1999/xlink",c.XML="http://www.w3.org/XML/1998/namespace",c.XMLNS="http://www.w3.org/2000/xmlns/",(d=A||(A={})).TYPE="type",d.ACTION="action",d.ENCODING="encoding",d.PROMPT="prompt",d.NAME="name",d.COLOR="color",d.FACE="face",d.SIZE="size",(u=k||(k={})).NO_QUIRKS="no-quirks",u.QUIRKS="quirks",u.LIMITED_QUIRKS="limited-quirks",(p=w||(w={})).A="a",p.ADDRESS="address",p.ANNOTATION_XML="annotation-xml",p.APPLET="applet",p.AREA="area",p.ARTICLE="article",p.ASIDE="aside",p.B="b",p.BASE="base",p.BASEFONT="basefont",p.BGSOUND="bgsound",p.BIG="big",p.BLOCKQUOTE="blockquote",p.BODY="body",p.BR="br",p.BUTTON="button",p.CAPTION="caption",p.CENTER="center",p.CODE="code",p.COL="col",p.COLGROUP="colgroup",p.DD="dd",p.DESC="desc",p.DETAILS="details",p.DIALOG="dialog",p.DIR="dir",p.DIV="div",p.DL="dl",p.DT="dt",p.EM="em",p.EMBED="embed",p.FIELDSET="fieldset",p.FIGCAPTION="figcaption",p.FIGURE="figure",p.FONT="font",p.FOOTER="footer",p.FOREIGN_OBJECT="foreignObject",p.FORM="form",p.FRAME="frame",p.FRAMESET="frameset",p.H1="h1",p.H2="h2",p.H3="h3",p.H4="h4",p.H5="h5",p.H6="h6",p.HEAD="head",p.HEADER="header",p.HGROUP="hgroup",p.HR="hr",p.HTML="html",p.I="i",p.IMG="img",p.IMAGE="image",p.INPUT="input",p.IFRAME="iframe",p.KEYGEN="keygen",p.LABEL="label",p.LI="li",p.LINK="link",p.LISTING="listing",p.MAIN="main",p.MALIGNMARK="malignmark",p.MARQUEE="marquee",p.MATH="math",p.MENU="menu",p.META="meta",p.MGLYPH="mglyph",p.MI="mi",p.MO="mo",p.MN="mn",p.MS="ms",p.MTEXT="mtext",p.NAV="nav",p.NOBR="nobr",p.NOFRAMES="noframes",p.NOEMBED="noembed",p.NOSCRIPT="noscript",p.OBJECT="object",p.OL="ol",p.OPTGROUP="optgroup",p.OPTION="option",p.P="p",p.PARAM="param",p.PLAINTEXT="plaintext",p.PRE="pre",p.RB="rb",p.RP="rp",p.RT="rt",p.RTC="rtc",p.RUBY="ruby",p.S="s",p.SCRIPT="script",p.SEARCH="search",p.SECTION="section",p.SELECT="select",p.SOURCE="source",p.SMALL="small",p.SPAN="span",p.STRIKE="strike",p.STRONG="strong",p.STYLE="style",p.SUB="sub",p.SUMMARY="summary",p.SUP="sup",p.TABLE="table",p.TBODY="tbody",p.TEMPLATE="template",p.TEXTAREA="textarea",p.TFOOT="tfoot",p.TD="td",p.TH="th",p.THEAD="thead",p.TITLE="title",p.TR="tr",p.TRACK="track",p.TT="tt",p.U="u",p.UL="ul",p.SVG="svg",p.VAR="var",p.WBR="wbr",p.XMP="xmp",(m=S||(S={}))[m.UNKNOWN=0]="UNKNOWN",m[m.A=1]="A",m[m.ADDRESS=2]="ADDRESS",m[m.ANNOTATION_XML=3]="ANNOTATION_XML",m[m.APPLET=4]="APPLET",m[m.AREA=5]="AREA",m[m.ARTICLE=6]="ARTICLE",m[m.ASIDE=7]="ASIDE",m[m.B=8]="B",m[m.BASE=9]="BASE",m[m.BASEFONT=10]="BASEFONT",m[m.BGSOUND=11]="BGSOUND",m[m.BIG=12]="BIG",m[m.BLOCKQUOTE=13]="BLOCKQUOTE",m[m.BODY=14]="BODY",m[m.BR=15]="BR",m[m.BUTTON=16]="BUTTON",m[m.CAPTION=17]="CAPTION",m[m.CENTER=18]="CENTER",m[m.CODE=19]="CODE",m[m.COL=20]="
2COL",m[m.COLGROUP=21]="COLGROUP",m[m.DD=22]="DD",m[m.DESC=23]="DESC",m[m.DETAILS=24]="DETAILS",m[m.DIALOG=25]="DIALOG",m[m.DIR=26]="DIR",m[m.DIV=27]="DIV",m[m.DL=28]="DL",m[m.DT=29]="DT",m[m.EM=30]="EM",m[m.EMBED=31]="EMBED",m[m.FIELDSET=32]="FIELDSET",m[m.FIGCAPTION=33]="FIGCAPTION",m[m.FIGURE=34]="FIGURE",m[m.FONT=35]="FONT",m[m.FOOTER=36]="FOOTER",m[m.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",m[m.FORM=38]="FORM",m[m.FRAME=39]="FRAME",m[m.FRAMESET=40]="FRAMESET",m[m.H1=41]="H1",m[m.H2=42]="H2",m[m.H3=43]="H3",m[m.H4=44]="H4",m[m.H5=45]="H5",m[m.H6=46]="H6",m[m.HEAD=47]="HEAD",m[m.HEADER=48]="HEADER",m[m.HGROUP=49]="HGROUP",m[m.HR=50]="HR",m[m.HTML=51]="HTML",m[m.I=52]="I",m[m.IMG=53]="IMG",m[m.IMAGE=54]="IMAGE",m[m.INPUT=55]="INPUT",m[m.IFRAME=56]="IFRAME",m[m.KEYGEN=57]="KEYGEN",m[m.LABEL=58]="LABEL",m[m.LI=59]="LI",m[m.LINK=60]="LINK",m[m.LISTING=61]="LISTING",m[m.MAIN=62]="MAIN",m[m.MALIGNMARK=63]="MALIGNMARK",m[m.MARQUEE=64]="MARQUEE",m[m.MATH=65]="MATH",m[m.MENU=66]="MENU",m[m.META=67]="META",m[m.MGLYPH=68]="MGLYPH",m[m.MI=69]="MI",m[m.MO=70]="MO",m[m.MN=71]="MN",m[m.MS=72]="MS",m[m.MTEXT=73]="MTEXT",m[m.NAV=74]="NAV",m[m.NOBR=75]="NOBR",m[m.NOFRAMES=76]="NOFRAMES",m[m.NOEMBED=77]="NOEMBED",m[m.NOSCRIPT=78]="NOSCRIPT",m[m.OBJECT=79]="OBJECT",m[m.OL=80]="OL",m[m.OPTGROUP=81]="OPTGROUP",m[m.OPTION=82]="OPTION",m[m.P=83]="P",m[m.PARAM=84]="PARAM",m[m.PLAINTEXT=85]="PLAINTEXT",m[m.PRE=86]="PRE",m[m.RB=87]="RB",m[m.RP=88]="RP",m[m.RT=89]="RT",m[m.RTC=90]="RTC",m[m.RUBY=91]="RUBY",m[m.S=92]="S",m[m.SCRIPT=93]="SCRIPT",m[m.SEARCH=94]="SEARCH",m[m.SECTION=95]="SECTION",m[m.SELECT=96]="SELECT",m[m.SOURCE=97]="SOURCE",m[m.SMALL=98]="SMALL",m[m.SPAN=99]="SPAN",m[m.STRIKE=100]="STRIKE",m[m.STRONG=101]="STRONG",m[m.STYLE=102]="STYLE",m[m.SUB=103]="SUB",m[m.SUMMARY=104]="SUMMARY",m[m.SUP=105]="SUP",m[m.TABLE=106]="TABLE",m[m.TBODY=107]="TBODY",m[m.TEMPLATE=108]="TEMPLATE",m[m.TEXTAREA=109]="TEXTAREA",m[m.TFOOT=110]="TFOOT",m[m.TD=111]="TD",m[m.TH=112]="TH",m[m.THEAD=113]="THEAD",m[m.TITLE=114]="TITLE",m[m.TR=115]="TR",m[m.TRACK=116]="TRACK",m[m.TT=117]="TT",m[m.U=118]="U",m[m.UL=119]="UL",m[m.SVG=120]="SVG",m[m.VAR=121]="VAR",m[m.WBR=122]="WBR",m[m.XMP=123]="XMP";let rZ=new Map([[w.A,S.A],[w.ADDRESS,S.ADDRESS],[w.ANNOTATION_XML,S.ANNOTATION_XML],[w.APPLET,S.APPLET],[w.AREA,S.AREA],[w.ARTICLE,S.ARTICLE],[w.ASIDE,S.ASIDE],[w.B,S.B],[w.BASE,S.BASE],[w.BASEFONT,S.BASEFONT],[w.BGSOUND,S.BGSOUND],[w.BIG,S.BIG],[w.BLOCKQUOTE,S.BLOCKQUOTE],[w.BODY,S.BODY],[w.BR,S.BR],[w.BUTTON,S.BUTTON],[w.CAPTION,S.CAPTION],[w.CENTER,S.CENTER],[w.CODE,S.CODE],[w.COL,S.COL],[w.COLGROUP,S.COLGROUP],[w.DD,S.DD],[w.DESC,S.DESC],[w.DETAILS,S.DETAILS],[w.DIALOG,S.DIALOG],[w.DIR,S.DIR],[w.DIV,S.DIV],[w.DL,S.DL],[w.DT,S.DT],[w.EM,S.EM],[w.EMBED,S.EMBED],[w.FIELDSET,S.FIELDSET],[w.FIGCAPTION,S.FIGCAPTION],[w.FIGURE,S.FIGURE],[w.FONT,S.FONT],[w.FOOTER,S.FOOTER],[w.FOREIGN_OBJECT,S.FOREIGN_OBJECT],[w.FORM,S.FORM],[w.FRAME,S.FRAME],[w.FRAMESET,S.FRAMESET],[w.H1,S.H1],[w.H2,S.H2],[w.H3,S.H3],[w.H4,S.H4],[w.H5,S.H5],[w.H6,S.H6],[w.HEAD,S.HEAD],[w.HEADER,S.HEADER],[w.HGROUP,S.HGROUP],[w.HR,S.HR],[w.HTML,S.HTML],[w.I,S.I],[w.IMG,S.IMG],[w.IMAGE,S.IMAGE],[w.INPUT,S.INPUT],[w.IFRAME,S.IFRAME],[w.KEYGEN,S.KEYGEN],[w.LABEL,S.LABEL],[w.LI,S.LI],[w.LINK,S.LINK],[w.LISTING,S.LISTING],[w.MAIN,S.MAIN],[w.MALIGNMARK,S.MALIGNMARK],[w.MARQUEE,S.MARQUEE],[w.MATH,S.MATH],[w.MENU,S.MENU],[w.META,S.META],[w.MGLYPH,S.MGLYPH],[w.MI,S.MI],[w.MO,S.MO],[w.MN,S.MN],[w.MS,S.MS],[w.MTEXT,S.MTEXT],[w.NAV,S.NAV],[w.NOBR,S.NOBR],[w.NOFRAMES,S.NOFRAMES],[w.NOEMBED,S.NOEMBED],[w.NOSCRIPT,S.NOSCRIPT],[w.OBJECT,S.OBJECT],[w.OL,S.OL],[w.OPTGROUP,S.OPTGROUP],[w.OPTION,S.OPTION],[w.P,S.P],[w.PARAM,S.PARAM],[w.PLAINTEXT,S.PLAINTEXT],[w.PRE,S.PRE],[w.RB,S.RB],[w.RP,S.RP],[w.RT,S.RT],[w.RTC,S.RTC],[w.RUBY,S.RUBY],[w.S,S.S],[w.SCRIPT,S.SCRIPT],[w.SEARCH,S.SEARCH],[w.SECTION,S.SECTION],[w.SELECT,S.SELECT],[w.SOURCE,S.SOURCE],[w.SMALL,S.SMALL],[w.SPAN,S.SPAN],[w.STRIKE,S.STRIKE],[w.STRONG,S.STRONG],[w.STYLE,S.STYLE],[w.SUB,S.SUB],[w.SUMMARY,S.SUMMARY],[w.SUP,S.SUP],[w.TABLE,S.TABLE],[w.TBODY,S.TBODY],[w.TEMPLATE,S.TEMPLATE],[w.TEXTAREA,S.TEXTAREA],[w.TFOOT,S.TFOOT],[w.TD,S.TD],[w.TH,S.TH],[w.THEAD,S.THEAD],[w.TITLE,S.TITLE],[w.TR,S.TR],[w.TRACK,S.TRACK],[w.TT,S.TT],[w.U,S.U],[w.UL,S.UL],[w.SVG,S.SVG],[w.VAR,S.VAR],[w.WBR,S.WBR],[w.XMP,S.XMP]]);function rX(e){var t;return null!=(t=rZ.get(e))?t:S.UNKNOWN}let rJ=S,r0={[N.HTML]:new Set([rJ.ADDRESS,rJ.APPLET,rJ.AREA,rJ.ARTICLE,rJ.ASIDE,rJ.BASE,rJ.BASEFONT,rJ.BGSOUND,rJ.BLOCKQUOTE,rJ.BODY,rJ.BR,rJ.BUTTON,rJ.CAPTION,rJ.CENTER,rJ.COL,rJ.COLGROUP,rJ.DD,rJ.DETAILS,rJ.DIR,rJ.DIV,rJ.DL,rJ.DT,rJ.EMBED,rJ.FIELDSET,rJ.FIGCAPTION,rJ.FIGURE,rJ.FOOTER,rJ.FORM,rJ.FRAME,rJ.FRAMESET,rJ.H1,rJ.H2,rJ.H3,rJ.H4,rJ.H5,rJ.H6,rJ.HEAD,rJ.HEADER,rJ.HGROUP,rJ.HR,rJ.HTML,rJ.IFRAME,rJ.IMG,rJ.INPUT,rJ.
2LI,rJ.LINK,rJ.LISTING,rJ.MAIN,rJ.MARQUEE,rJ.MENU,rJ.META,rJ.NAV,rJ.NOEMBED,rJ.NOFRAMES,rJ.NOSCRIPT,rJ.OBJECT,rJ.OL,rJ.P,rJ.PARAM,rJ.PLAINTEXT,rJ.PRE,rJ.SCRIPT,rJ.SECTION,rJ.SELECT,rJ.SOURCE,rJ.STYLE,rJ.SUMMARY,rJ.TABLE,rJ.TBODY,rJ.TD,rJ.TEMPLATE,rJ.TEXTAREA,rJ.TFOOT,rJ.TH,rJ.THEAD,rJ.TITLE,rJ.TR,rJ.TRACK,rJ.UL,rJ.WBR,rJ.XMP]),[N.MATHML]:new Set([rJ.MI,rJ.MO,rJ.MN,rJ.MS,rJ.MTEXT,rJ.ANNOTATION_XML]),[N.SVG]:new Set([rJ.TITLE,rJ.FOREIGN_OBJECT,rJ.DESC]),[N.XLINK]:new Set,[N.XML]:new Set,[N.XMLNS]:new Set},r1=new Set([rJ.H1,rJ.H2,rJ.H3,rJ.H4,rJ.H5,rJ.H6]),r2=new Set([w.STYLE,w.SCRIPT,w.XMP,w.IFRAME,w.NOEMBED,w.NOFRAMES,w.PLAINTEXT]);function r3(e,t){return r2.has(e)||t&&e===w.NOSCRIPT}e.s(["ATTRS",()=>A,"DOCUMENT_MODE",()=>k,"NS",()=>N,"NUMBERED_HEADERS",0,r1,"SPECIAL_ELEMENTS",0,r0,"TAG_ID",()=>S,"TAG_NAMES",()=>w,"getTagID",()=>rX,"hasUnescapedText",()=>r3],718610),(h=I||(I={}))[h.DATA=0]="DATA",h[h.RCDATA=1]="RCDATA",h[h.RAWTEXT=2]="RAWTEXT",h[h.SCRIPT_DATA=3]="SCRIPT_DATA",h[h.PLAINTEXT=4]="PLAINTEXT",h[h.TAG_OPEN=5]="TAG_OPEN",h[h.END_TAG_OPEN=6]="END_TAG_OPEN",h[h.TAG_NAME=7]="TAG_NAME",h[h.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",h[h.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",h[h.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",h[h.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",h[h.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",h[h.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",h[h.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",h[h.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",h[h.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",h[h.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",h[h.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",h[h.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",h[h.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",h[h.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",h[h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",h[h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",h[h.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",h[h.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",h[h.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",h[h.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",h[h.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",h[h.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",h[h.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",h[h.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",h[h.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",h[h.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",h[h.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",h[h.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",h[h.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",h[h.BOGUS_COMMENT=40]="BOGUS_COMMENT",h[h.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",h[h.COMMENT_START=42]="COMMENT_START",h[h.COMMENT_START_DASH=43]="COMMENT_START_DASH",h[h.COMMENT=44]="COMMENT",h[h.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",h[h.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",h[h.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",h[h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",h[h.COMMENT_END_DASH=49]="COMMENT_END_DASH",h[h.COMMENT_END=50]="COMMENT_END",h[h.COMMENT_END_BANG=51]="COMMENT_END_BANG",h[h.DOCTYPE=52]="DOCTYPE",h[h.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",h[h.DOCTYPE_NAME=54]="DOCTYPE_NAME",h[h.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",h[h.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",h[h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",h[h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",h[h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",h[h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",h[h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",h[h.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",h[h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",h[h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",h[h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",h[h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",h[h.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",h[h.CDATA_SECTION=68]="CDATA_SECTION",h[h.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",h[h.CDATA_SECTION_END=70]="CDATA_SECTION_END",h[h.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",h[h.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let r4={DATA:I.DATA,RCDATA:I.RCDATA,RAWTEXT:I.RAWTEXT,SCRIPT_DATA:I.SCRIPT_DATA,PLAINTEXT:I.PLAINTEXT,CDATA_SECTION:I.CDATA_SECTION};function r5(e){return e>=x.LATIN_CAPITAL_A&&e<=x.LATIN_CAPITAL_Z}function r6(e){return e>=x.LATIN_SMALL_A&&e<=x.LATIN_SMALL_Z||r5(e)}function r7(e){return r6(e)||e>=x.DIGIT_0&&e<=x.DIGIT_9}function r8(e){return e===x.SPACE||e===x.LINE_FEED||e===x.TABULATION||e===x.FORM_FEED}function r9(e){return r8(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN}class le{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=I.DATA,this.returnState=I.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new r$(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new rQ(rW,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(b.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(b.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===x.NULL)return b.nullCharacterReference;if(e>1114111)return b.characterReferenceOutsideUnicodeRange;if(rz(e))return b.surrogateCharacterReference;if(rV(e))return b.noncharacterCharacterReference;if(rG(e)||e===x.CARRIAGE_RETURN)return b.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,a;null==(a=(n=this.handler).onParseError)||a.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:y.START_TAG,tagName:"",tagID:S.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:y.END_TAG,tagName:"",tagID:S.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:y.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:y.DOCTYPE,name:e,forceQuirks:!1,publicId:null,
2systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;null===rY(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!=(e=(t=n.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(b.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=rX(e.tagName),e.type===y.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(b.endTagWithAttributes),e.selfClosing&&this._err(b.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case y.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case y.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case y.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:y.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=r8(e)?y.WHITESPACE_CHARACTER:e===x.NULL?y.NULL_CHARACTER:y.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(y.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=I.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?E.Attribute:E.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===I.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case I.DATA:this._stateData(e);break;case I.RCDATA:this._stateRcdata(e);break;case I.RAWTEXT:this._stateRawtext(e);break;case I.SCRIPT_DATA:this._stateScriptData(e);break;case I.PLAINTEXT:this._statePlaintext(e);break;case I.TAG_OPEN:this._stateTagOpen(e);break;case I.END_TAG_OPEN:this._stateEndTagOpen(e);break;case I.TAG_NAME:this._stateTagName(e);break;case I.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case I.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case I.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case I.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case I.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case I.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case I.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case I.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case I.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case I.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case I.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case I.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case I.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case I.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case I.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case I.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscape
vendor: 5,295 bytes, line 2
2Start(e);break;case I.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case I.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case I.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case I.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case I.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case I.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case I.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case I.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case I.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case I.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case I.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case I.BOGUS_COMMENT:this._stateBogusComment(e);break;case I.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case I.COMMENT_START:this._stateCommentStart(e);break;case I.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case I.COMMENT:this._stateComment(e);break;case I.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case I.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case I.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case I.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case I.COMMENT_END:this._stateCommentEnd(e);break;case I.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case I.DOCTYPE:this._stateDoctype(e);break;case I.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case I.DOCTYPE_NAME:this._stateDoctypeName(e);break;case I.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case I.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case I.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case I.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case I.CDATA_SECTION:this._stateCdataSection(e);break;case I.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case I.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case I.CHARACTER_REFERENCE:this._stateCharacterReference();break;case I.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case x.LESS_THAN_SIGN:this.state=I.TAG_OPEN;break;case x.AMPERSAND:this._startCharacterReference();break;case x.NULL:this._err(b.unexpectedNullCharacter),this._emitCodePoint(e);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case x.AMPERSAND:this._startCharacterReference();break;case x.LESS_THAN_SIGN:this.state=I.RCDATA_LESS_THAN_SIGN;break;case x.NULL:this._err(b.unexpectedNullCharacter),this._emitChars("�");break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case x.LESS_THAN_SIGN:this.state=I.RAWTEXT_LESS_THAN_SIGN;break;case x.NULL:this._err(b.unexpectedNullCharacter),this._emitChars("�");break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case x.LESS_THAN_SIGN:this.state=I.SCRIPT_DATA_LESS_THAN_SIGN;break;case x.NULL:this._err(b.unexpectedNullCharacter),this._emitChars("�");break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case x.NULL:this._err(b.unexpectedNullCharacter),this._emitChars("�");break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(r6(e))this._createStartTagToken(),this.state=I.TAG_NAME,this._stateTagName(e);else switch(e){case x.EXCLAMATION_MARK:this.state=I.MARKUP_DECLARATION_OPEN;break;case x.SOLIDUS:this.state=I.END_TAG_OPEN;break;case x.QUESTION_MARK:this._err(b.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=I.BOGUS_COMMENT,this._stateBogusComment(e);break;case x.EOF:this._err(b.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;
vendor: 17,436 bytes, line 2
2default:this._err(b.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=I.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(r6(e))this._createEndTagToken(),this.state=I.TAG_NAME,this._stateTagName(e);else switch(e){case x.GREATER_THAN_SIGN:this._err(b.missingEndTagName),this.state=I.DATA;break;case x.EOF:this._err(b.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(b.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:this.state=I.BEFORE_ATTRIBUTE_NAME;break;case x.SOLIDUS:this.state=I.SELF_CLOSING_START_TAG;break;case x.GREATER_THAN_SIGN:this.state=I.DATA,this.emitCurrentTagToken();break;case x.NULL:this._err(b.unexpectedNullCharacter),t.tagName+="�";break;case x.EOF:this._err(b.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(r5(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===x.SOLIDUS?this.state=I.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){r6(e)?(this.state=I.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=I.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=I.BEFORE_ATTRIBUTE_NAME,!1;case x.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=I.SELF_CLOSING_START_TAG,!1;case x.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=I.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=I.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===x.SOLIDUS?this.state=I.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){r6(e)?(this.state=I.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=I.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=I.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case x.SOLIDUS:this.state=I.SCRIPT_DATA_END_TAG_OPEN;break;case x.EXCLAMATION_MARK:this.state=I.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=I.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){r6(e)?(this.state=I.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=I.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=I.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===x.HYPHEN_MINUS?(this.state=I.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=I.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===x.HYPHEN_MINUS?(this.state=I.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=I.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case x.HYPHEN_MINUS:this.state=I.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case x.LESS_THAN_SIGN:this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case x.NULL:this._err(b.unexpectedNullCharacter),this._emitChars("�");break;case x.EOF:this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case x.HYPHEN_MINUS:this.state=I.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case x.LESS_THAN_SIGN:this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case x.NULL:this._err(b.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case x.EOF:this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case x.HYPHEN_MINUS:this._emitChars("-");break;case x.LESS_THAN_SIGN:this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case x.GREATER_THAN_SIGN:this.state=I.SCRIPT_DATA,this._emitChars(">");break;case x.NULL:this._err(b.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case x.EOF:this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===x.SOLIDUS?this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:r6(e)?(this._emitChars("<"),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){r6(e)?(this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(rU,!1)&&r9(this.preprocessor.peek(rU.length))){this._emitCodePoint(e);for(let e=0;e<rU.length;e++)this._emitCodePoint(this._consume());this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case x.HYPHEN_MINUS:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case x.LESS_THAN_SIGN:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case x.NULL:this._err(b.unexpectedNullCharacter),this._emitChars("�");break;case x.EOF:this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case x.HYPHEN_MINUS:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case x.LESS_THAN_SIGN:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case x.NULL:this._err(b.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case x.EOF:this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case x.HYPHEN_MINUS:this._emitChars("-");break;case x.LESS_THAN_SIGN:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case x.GREATER_THAN_SIGN:this.state=I.SCRIPT_DATA,this._emitChars(">");break;case x.NULL:this._err(b.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case x.EOF:this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===x.SOLIDUS?(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(rU,!1)&&r9(this.preprocessor.peek(rU.length))){this._emitCodePoint(e);for(let e=0;e<rU.length;e++)this._emitCodePoint(this._consume());this.state=I.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case x.EQUALS_SIGN:this._err(b.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=I.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=I.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:this._leaveAttrName(),this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case x.EQUALS_SIGN:this._leaveAttrName(),this.state=I.BEFORE_ATTRIBUTE_VALUE;break;case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:this._err(b.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case x.NULL:this._err(b.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(r5(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:this.state=I.SELF_CLOSING_START_TAG;break;case x.EQUALS_SIGN:this.state=I.BEFORE_ATTRIBUTE_VALUE;break;case x.GREATER_THAN_SIGN:this.state=I.DATA,this.emitCurrentTagToken();break;case x.EOF:this._err(b.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=I.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:this.state=I.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case x.APOSTROPHE:this.state=I.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case x.GREATER_THAN_SIGN:this._err(b.missingAttributeValue),this.state=I.DATA,this.emitCurrentTagToken();break;default:this.state=I.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case x.QUOTATION_MARK:this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case x.AMPERSAND:this._startCharacterReference();break;case x.NULL:this._err(b.unexpectedNullCharacter),this.currentAttr.value+="�";break;case x.EOF:this._err(b.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case x.APOSTROPHE:this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case x.AMPERSAND:this._startCharacterReference();break;case x.NULL:this._err(b.unexpectedNullCharacter),this.currentAttr.value+="�";break;case x.EOF:this._err(b.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break;case x.AMPERSAND:this._startCharacterReference();break;case x.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break;case x.NULL:this._err(b.unexpectedNullCharacter),this.currentAttr.value+="�";break;case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:case x.EQUALS_SIGN:case x.GRAVE_ACCENT:this._err(b.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case x.EOF:this._err(b.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break;case x.SOLIDUS:this._leaveAttrValue(),this.state=I.SELF_CLOSING_START_TAG;break;case x.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break;case x.EOF:this._err(b.eofInTag),this._emitEOFToken();break;default:this._err(b.missingWhitespaceBetweenAttributes),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case x.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=I.DATA,this.emitCurrentTagToken();break;case x.EOF:this._err(b.eofInTag),this._emitEOFToken();break;default:this._err(b.unexpectedSolidusInTag),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case x.GREATER_THAN_SIGN:this.state=I.DATA,this.emitCurrentComment(t);break;case x.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case x.NULL:this._err(b.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=I.COMMENT_START):this._consumeSequenceIfMatch(rH,!1)?(this.currentLocation=this.getCurrentLocation(rH.length+1),this.state=I.DOCTYPE):this._consumeSequenceIfMatch(rF,!0)?this.inForeignNode?this.state=I.CDATA_SECTION:(this._err(b.cdataInHtmlContent),this._createCommentToken(rF.length+1),this.currentToken.data="[CDATA[",this.state=I.BOGUS_COMMENT):this._ensureHibernation()||(this._err(b.incorrectlyOpenedComment),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case x.HYPHEN_MINUS:this.state=I.COMMENT_START_DASH;break;case x.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=I.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=I.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case x.HYPHEN_MINUS:this.state=I.COMMENT_END;break;case x.GREATER_THAN_SIGN:this._err(b.abruptClosingOfEmptyComment),this.state=I.DATA,this.emitCurrentComment(t);break;case x.EOF:this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=I.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case x.HYPHEN_MINUS:this.state=I.COMMENT_END_DASH;break;case x.LESS_THAN_SIGN:t.data+="<",this.state=I.COMMENT_LESS_THAN_SIGN;break;case x.NULL:this._err(b.unexpectedNullCharacter),t.data+="�";break;case x.EOF:this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case x.EXCLAMATION_MARK:t.data+="!",this.state=I.COMMENT_LESS_THAN_SIGN_BANG;break;case x.LESS_THAN_SIGN:t.data+="<";break;default:this.state=I.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===x.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=I.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===x.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=I.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==x.GREATER_THAN_SIGN&&e!==x.EOF&&this._err(b.nestedComment),this.state=I.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case x.HYPHEN_MINUS:this.state=I.COMMENT_END;break;case x.EOF:this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=I.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case x.GREATER_THAN_SIGN:this.state=I.DATA,this.emitCurrentComment(t);break;case x.EXCLAMATION_MARK:this.state=I.COMMENT_END_BANG;break;case x.HYPHEN_MINUS:t.data+="-";break;case x.EOF:this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=I.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case x.HYPHEN_MINUS:t.data+="--!",this.state=I.COMMENT_END_DASH;break;case x.GREATER_THAN_SIGN:this._err(b.incorrectlyClosedComment),this.state=I.DATA,this.emitCurrentComment(t);break;case x.EOF:this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=I.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:this.state=I.BEFORE_DOCTYPE_NAME;break;case x.GREATER_THAN_SIGN:this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case x.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBeforeDoctypeName),this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(r5(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=I.DOCTYPE_NAME;else switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.NULL:this._err(b.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=I.DOCTYPE_NAME;break;case x.GREATER_THAN_SIGN:{this._err(b.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=I.DATA;break}case x.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=I.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:this.state=I.AFTER_DOCTYPE_NAME;break;case x.GREATER_THAN_SIGN:this.state=I.DATA,this.emitCurrentDoctype(t);break;
vendor: 4,187 bytes, line 2
2case x.NULL:this._err(b.unexpectedNullCharacter),t.name+="�";break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(r5(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:this.state=I.DATA,this.emitCurrentDoctype(t);break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=I.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=I.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(b.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:this.state=I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case x.QUOTATION_MARK:this._err(b.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case x.APOSTROPHE:this._err(b.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case x.GREATER_THAN_SIGN:this._err(b.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(t);break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:t.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case x.APOSTROPHE:t.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case x.GREATER_THAN_SIGN:this._err(b.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(t);break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case x.QUOTATION_MARK:this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case x.NULL:this._err(b.unexpectedNullCharacter),t.publicId+="�";break;case x.GREATER_THAN_SIGN:this._err(b.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=I.DATA;break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case x.APOSTROPHE:this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case x.NULL:this._err(b.unexpectedNullCharacter),t.publicId+="�";break;case x.GREATER_THAN_SIGN:this._err(b.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=I.DATA;break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:this.state=I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case x.GREATER_THAN_SIGN:this.state=I.DATA,this.emitCurrentDoctype(t);break;case x.QUOTATION_MARK:this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case x.APOSTROPHE:this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;
vendor: 4,995 bytes, line 2
2default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=I.DATA;break;case x.QUOTATION_MARK:t.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case x.APOSTROPHE:t.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:this.state=I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case x.QUOTATION_MARK:this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case x.APOSTROPHE:this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case x.GREATER_THAN_SIGN:this._err(b.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(t);break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:t.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case x.APOSTROPHE:t.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case x.GREATER_THAN_SIGN:this._err(b.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(t);break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case x.QUOTATION_MARK:this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case x.NULL:this._err(b.unexpectedNullCharacter),t.systemId+="�";break;case x.GREATER_THAN_SIGN:this._err(b.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=I.DATA;break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case x.APOSTROPHE:this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case x.NULL:this._err(b.unexpectedNullCharacter),t.systemId+="�";break;case x.GREATER_THAN_SIGN:this._err(b.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=I.DATA;break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=I.DATA;break;case x.EOF:this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(b.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case x.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=I.DATA;break;case x.NULL:this._err(b.unexpectedNullCharacter);break;case x.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case x.RIGHT_SQUARE_BRACKET:this.state=I.CDATA_SECTION_BRACKET;break;case x.EOF:this._err(b.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===x.RIGHT_SQUARE_BRACKET?this.state=I.CDATA_SECTION_END:(this._emitChars("]"),this.state=I.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case x.GREATER_THAN_SIGN:this.state=I.DATA;break;case x.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=I.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}
vendor: 4,106 bytes, line 2
20===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(x.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&r7(this.preprocessor.peek(1))?I.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){r7(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===x.SEMICOLON&&this._err(b.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let lt=new Set([S.DD,S.DT,S.LI,S.OPTGROUP,S.OPTION,S.P,S.RB,S.RP,S.RT,S.RTC]),ln=new Set([...lt,S.CAPTION,S.COLGROUP,S.TBODY,S.TD,S.TFOOT,S.TH,S.THEAD,S.TR]),la=new Set([S.APPLET,S.CAPTION,S.HTML,S.MARQUEE,S.OBJECT,S.TABLE,S.TD,S.TEMPLATE,S.TH]),lr=new Set([...la,S.OL,S.UL]),ll=new Set([...la,S.BUTTON]),li=new Set([S.ANNOTATION_XML,S.MI,S.MN,S.MO,S.MS,S.MTEXT]),ls=new Set([S.DESC,S.FOREIGN_OBJECT,S.TITLE]),lo=new Set([S.TR,S.TEMPLATE,S.HTML]),lc=new Set([S.TBODY,S.TFOOT,S.THEAD,S.TEMPLATE,S.HTML]),ld=new Set([S.TABLE,S.TEMPLATE,S.HTML]),lu=new Set([S.TD,S.TH]);class lp{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=S.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===S.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===N.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let a=this._indexOf(e)+1;this.items.splice(a,0,t),this.tagIDs.splice(a,0,n),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==N.HTML)this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(r1,N.HTML)}popUntilTableCellPopped(){this.popUntilPopped(lu,N.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(ld,N.HTML)}clearBackToTableBodyContext(){this.clearBackTo(lc,N.HTML)}clearBackToTableRowContext(){this.clearBackTo(lo,N.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===S.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===S.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case N.HTML:if(a===e)return!0;
2if(t.has(a))return!1;break;case N.SVG:if(ls.has(a))return!1;break;case N.MATHML:if(li.has(a))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,la)}hasInListItemScope(e){return this.hasInDynamicScope(e,lr)}hasInButtonScope(e){return this.hasInDynamicScope(e,ll)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case N.HTML:if(r1.has(t))return!0;if(la.has(t))return!1;break;case N.SVG:if(ls.has(t))return!1;break;case N.MATHML:if(li.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===N.HTML)switch(this.tagIDs[t]){case e:return!0;case S.TABLE:case S.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===N.HTML)switch(this.tagIDs[e]){case S.TBODY:case S.THEAD:case S.TFOOT:return!0;case S.TABLE:case S.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===N.HTML)switch(this.tagIDs[t]){case e:return!0;case S.OPTION:case S.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&<.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&ln.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&ln.has(this.currentTagId);)this.pop()}}(f=D||(D={}))[f.Marker=0]="Marker",f[f.Element=1]="Element";let lm={type:D.Marker};class lh{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],a=t.length,r=this.treeAdapter.getTagName(e),l=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===D.Marker)break;let{element:i}=t;if(this.treeAdapter.getTagName(i)===r&&this.treeAdapter.getNamespaceURI(i)===l){let t=this.treeAdapter.getAttrList(i);t.length===a&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let a=new Map(t.map(e=>[e.name,e.value])),r=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>a.get(e.name)===e.value)&&(r+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(lm)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:D.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:D.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(lm);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===D.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===D.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===D.Element&&t.element===e)}}let lf={createDocument:()=>({nodeName:"#document",mode:k.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let a=e.childNodes.indexOf(n);e.childNodes.splice(a,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,a){let r=e.childNodes.find(e=>"#documentType"===e.nodeName);r?(r.name=t,r.publicId=n,r.systemId=a):lf.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:a,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(lf.isTextNode(n)){n.value+=t;return}}lf.appendChild(e,lf.createTextNode(t))},insertTextBefore(e,t,n){let a=e.childNodes[e.childNodes.indexOf(n)-1];a&&lf.isTextNode(a)?a.value+=t:lf.insertBefore(e,lf.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let a=0;a<t.length;a++)n.has(t[a].name)||e.attrs.push(t[a])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},lg="html",lx=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],lb=[...lx,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ly=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),l_=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],lv=[...l_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function lC(e,t){return t.some(t=>e.startsWith(t))}let lT=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),lE=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:N.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:N.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:N.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:N.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:N.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:N.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:N.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:N.XML}],["xml:space",{prefix:"xml",name:"space",namespace:N.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:N.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:N.XMLNS}]]),lN=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),lA=new Set([S.B,S.BIG,S.BLOCKQUOTE,S.BODY,S.BR,S.CENTER,S.CODE,S.DD,S.DIV,S.DL,S.DT,S.EM,S.EMBED,S.H1,S.H2,S.H3,S.H4,S.H5,S.H6,S.HEAD,S.HR,S.I,S.IMG,S.LI,S.LISTING,S.MENU,S.META,S.NOBR,S.OL,S.P,S.PRE,S.RUBY,S.S,S.SMALL,S.SPAN,S.STRONG,S.STRIKE,S.SUB,S.SUP,S.TABLE,S.TT,S.U,S.UL,S.VAR]);function lk(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function lw(e){for(let t=0;t<e.attrs.length;t++){let n=lT.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function lS(e){for(let t=0;t<e.attrs.length;t++){let n=lE.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}(g=L||(L={}))[g.INITIAL=0]="INITIAL",g[g.BEFORE_HTML=1]="BEFORE_HTML",g[g.BEFORE_HEAD=2]="BEFORE_HEAD",g[g.IN_HEAD=3]="IN_HEAD",g[g.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",g[g.AFTER_HEAD=5]="AFTER_HEAD",g[g.IN_BODY=6]="IN_BODY",g[g.TEXT=7]="TEXT",g[g.IN_TABLE=8]="IN_TABLE",g[g.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",g[g.IN_CAPTION=10]="IN_CAPTION",g[g.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",g[g.IN_TABLE_BODY=12]="IN_TABLE_BODY",g[g.IN_ROW=13]="IN_ROW",g[g.IN_CELL=14]="IN_CELL",g[g.IN_SELECT=15]="IN_SELECT",g[g.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",g[g.IN_TEMPLATE=17]="IN_TEMPLATE",g[g.AFTER_BODY=18]="AFTER_BODY",g[g.IN_FRAMESET=19]="IN_FRAMESET",g[g.AFTER_FRAMESET=20]="AFTER_FRAMESET",g[g.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",g[g.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let lI={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},lD=new Set([S.TABLE,S.TBODY,S.TFOOT,S.THEAD,S.TR]),lL={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:lf,onParseError:null};class lj{constructor(e,t,n=null,a=null){this.fragmentContext=n,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=L.INITIAL,this.originalInsertionMode=L.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...lL,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new le(this.options,this),this.activeFormattingElements=new lh(this.treeAdapter),this.fragmentContextID=n?rX(this.treeAdapter.getTagName(n)):S.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new lp(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...lL,...t};null!=e||(e=n.treeAdapter.createElement(w.TEMPLATE,N.HTML,[]));let a=n.treeAdapter.createElement("documentmock",N.HTML,[]),r=new this(n,a,e);return r.fragmentContextID===S.TEMPLATE&&r.tmplInsertionModeStack.unshift(L.IN_TEMPLATE),r._initTokenizerForFragmentParsing(),r._insertFakeRootElement(),r._resetInsertionMode(),r._findFormInFragmentContext(),r}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var a;if(!this.onParseError)return;let r=null!=(a=e.location)?a:lI,l={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(l)}
2onItemPush(e,t,n){var a,r;null==(r=(a=this.treeAdapter).onItemPush)||r.call(a,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(a=(n=this.treeAdapter).onItemPop)||a.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===N.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,N.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=L.TEXT}switchToPlaintextParsing(){this.insertionMode=L.TEXT,this.originalInsertionMode=L.IN_BODY,this.tokenizer.state=r4.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===w.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===N.HTML)switch(this.fragmentContextID){case S.TITLE:case S.TEXTAREA:this.tokenizer.state=r4.RCDATA;break;case S.STYLE:case S.XMP:case S.IFRAME:case S.NOEMBED:case S.NOFRAMES:case S.NOSCRIPT:this.tokenizer.state=r4.RAWTEXT;break;case S.SCRIPT:this.tokenizer.state=r4.SCRIPT_DATA;break;case S.PLAINTEXT:this.tokenizer.state=r4.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,a),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,N.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,N.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(w.HTML,N.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,S.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let a=this.treeAdapter.getChildNodes(t),r=n?a.lastIndexOf(n):a.length,l=a[r-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){let{endLine:t,endCol:n,endOffset:a}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:t,endCol:n,endOffset:a})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,a=this.treeAdapter.getTagName(e),r=t.type===y.END_TAG&&a===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,r)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==S.SVG||this.treeAdapter.getTagName(t)!==w.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==N.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===S.MGLYPH||e.tagID===S.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,N.HTML)))}_processToken(e){switch(e.type){case y.CHARACTER:this.onCharacter(e);break;case y.NULL_CHARACTER:this.onNullCharacter(e);break;case y.COMMENT:this.onComment(e);break;case y.DOCTYPE:this.onDoctype(e);break;case y.START_TAG:this._processStartTag(e);break;case y.END_TAG:this.onEndTag(e);break;case y.EOF:this.onEof(e);break;case y.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let a=this.treeAdapter.getNamespaceURI(t),r=this.treeAdapter.getAttrList(t);return(!n||n===N.HTML)&&function(e,t,n){if(t===N.MATHML&&e===S.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===A.ENCODING){let t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}}return t===N.SVG&&(e===S.FOREIGN_OBJECT||e===S.DESC||e===S.TITLE)}(e,a,r)||(!n||n===N.MATHML)&&a===N.MATHML&&(e===S.MI||e===S.MO||e===S.MN||e===S.MS||e===S.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===D.Marker||this.openElements.contains(e.element)),n=-1===t?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=L.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(S.P),this.openElements.popUntilTagNamePopped(S.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case S.TR:this.insertionMode=L.IN_ROW;return;case S.TBODY:case S.THEAD:case S.TFOOT:this.insertionMode=L.IN_TABLE_BODY;return;case S.CAPTION:this.insertionMode=L.IN_CAPTION;return;case S.COLGROUP:this.insertionMode=L.IN_COLUMN_GROUP;return;case S.TABLE:this.insertionMode=L.IN_TABLE;return;case S.BODY:this.insertionMode=L.IN_BODY;return;case S.FRAMESET:this.insertionMode=L.IN_FRAMESET;return;case S.SELECT:return void this._resetInsertionModeForSelect(e);case S.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case S.HTML:this.insertionMode=this.headElement?L.AFTER_HEAD:L.BEFORE_HEAD;return;case S.TD:case S.TH:if(e>0){this.insertionMode=L.IN_CELL;return}break;case S.HEAD:if(e>0){this.insertionMode=L.IN_HEAD;return}}this.insertionMode=L.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===S.TEMPLATE)break;if(e===S.TABLE){this.insertionMode=L.IN_SELECT_IN_TABLE;return}}this.insertionMode=L.IN_SELECT}_isElementCausesFosterParenting(e){return lD.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case S.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===N.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case S.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return r0[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,n=e,t._insertCharacters(n),t.framesetOk=!1)}switch(this.insertionMode){case L.INITIAL:lR(this,e);break;case L.BEFORE_HTML:lB(this,e);break;case L.BEFORE_HEAD:lF(this,e);break;case L.IN_HEAD:lz(this,e);break;case L.IN_HEAD_NO_SCRIPT:lG(this,e);break;case L.AFTER_HEAD:lV(this,e);break;case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:lW(this,e);break;case L.TEXT:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:l2(this,e);break;case L.IN_TABLE_TEXT:l7(this,e);break;case L.IN_COLUMN_GROUP:it(this,e);break;case L.AFTER_BODY:iu(this,e);break;case L.AFTER_AFTER_BODY:ip(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,(n=e).chars="�",t._insertCharacters(n))}switch(this.insertionMode){case L.INITIAL:lR(this,e);break;case L.BEFORE_HTML:lB(this,e);break;case L.BEFORE_HEAD:lF(this,e);break;case L.IN_HEAD:lz(this,e);break;case L.IN_HEAD_NO_SCRIPT:lG(this,e);break;case L.AFTER_HEAD:lV(this,e);break;case L.TEXT:this._insertCharacters(e);break;case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:l2(this,e);break;case L.IN_COLUMN_GROUP:it(this,e);break;case L.AFTER_BODY:iu(this,e);break;case L.AFTER_AFTER_BODY:ip(this,e)}}onComment(e){var t,n,a,r;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void lM(this,e);switch(this.insertionMode){case L.INITIAL:case L.BEFORE_HTML:case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_TEMPLATE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:lM(this,e);break;case L.IN_TABLE_TEXT:l8(this,e);break;case L.AFTER_BODY:t=this,n=e,t._appendCommentNode(n,t.openElements.items[0]);break;case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:a=this,r=e,a._appendCommentNode(r,a.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case L.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?k.QUIRKS:function(e){if(e.name!==lg)return k.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return k.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),ly.has(n))return k.QUIRKS;let e=null===t?lb:lx;if(lC(n,e))return k.QUIRKS;if(lC(n,e=null===t?l_:lv))return k.LIMITED_QUIRKS}return k.NO_QUIRKS}(t);(t.name!==lg||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,b.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=L.BEFORE_HTML}(this,e);break;case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:this._err(e,b.misplacedDoctype);break;case L.IN_TABLE_TEXT:l8(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,b.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){let n;if((n=t.tagID)===S.FONT&&t.attrs.some(({name:e})=>e===A.COLOR||e===A.SIZE||e===A.FACE)||lA.has(n))im(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(n);if(a===N.MATHML)lk(t);else if(a===N.SVG){let e;null!=(e=lN.get(t.tagName))&&(t.tagName=e,t.tagID=rX(t.tagName)),lw(t)}lS(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case L.INITIAL:lR(this,e);break;case L.BEFORE_HTML:t=this,(n=e).tagID===S.HTML?(t._insertElement(n,N.HTML),t.insertionMode=L.BEFORE_HEAD):lB(t,n);break;case L.BEFORE_HEAD:var t,n,a,r,l,i,s,o,c,d,u,p,m=this,h=e;switch(h.tagID){case S.HTML:lX(m,h);break;case S.HEAD:m._insertElement(h,N.HTML),m.headElement=m.openElements.current,m.insertionMode=L.IN_HEAD;break;default:lF(m,h)}break;case L.IN_HEAD:lH(this,e);break;case L.IN_HEAD_NO_SCRIPT:var f=this,g=e;switch(g.tagID){case S.HTML:lX(f,g);break;case S.BASEFONT:case S.BGSOUND:case S.HEAD:case S.LINK:case S.META:case S.NOFRAMES:case S.STYLE:lH(f,g);break;case S.NOSCRIPT:f._err(g,b.nestedNoscriptInHead);break;default:lG(f,g)}break;case L.AFTER_HEAD:var x=this,y=e;switch(y.tagID){case S.HTML:lX(x,y);break;case S.BODY:x._insertElement(y,N.HTML),x.framesetOk=!1,x.insertionMode=L.IN_BODY;break;case S.FRAMESET:x._insertElement(y,N.HTML),x.insertionMode=L.IN_FRAMESET;break;case S.BASE:case S.BASEFONT:case S.BGSOUND:case S.LINK:case S.META:case S.NOFRAMES:case S.SCRIPT:case S.STYLE:case S.TEMPLATE:case S.TITLE:x._err(y,b.abandonedHeadElementChild),x.openElements.push(x.headElement,S.HEAD),lH(x,y),x.openElements.remove(x.headElement);break;case S.HEAD:x._err(y,b.misplacedStartTagForHeadElement);break;default:lV(x,y)}break;case L.IN_BODY:lX(this,e);break;case L.IN_TABLE:l3(this,e);break;case L.IN_TABLE_TEXT:l8(this,e);break;case L.IN_CAPTION:let _;a=this,_=(r=e).tagID,l9.has(_)?a.openElements.hasInTableScope(S.CAPTION)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(S.CAPTION),a.activeFormattingElements.clearToLastMarker(),a.insertionMode=L.IN_TABLE,l3(a,r)):lX(a,r);break;case L.IN_COLUMN_GROUP:ie(this,e);break;case L.IN_TABLE_BODY:ia(this,e);break;case L.IN_ROW:il(this,e);break;case L.IN_CELL:let v;l=this,v=(i=e).tagID,l9.has(v)?(l.openElements.hasInTableScope(S.TD)||l.openElements.hasInTableScope(S.TH))&&(l._closeTableCell(),il(l,i)):lX(l,i);break;case L.IN_SELECT:is(this,e);break;case L.IN_SELECT_IN_TABLE:let C;s=this,(C=(o=e).tagID)===S.CAPTION||C===S.TABLE||C===S.TBODY||C===S.TFOOT||C===S.THEAD||C===S.TR||C===S.TD||C===S.TH?(s.openElements.popUntilTagNamePopped(S.SELECT),s._resetInsertionMode(),s._processStartTag(o)):is(s,o);break;case L.IN_TEMPLATE:var T=this,E=e;switch(E.tagID){case S.BASE:case S.BASEFONT:case S.BGSOUND:case S.LINK:case S.META:case S.NOFRAMES:case S.SCRIPT:case S.STYLE:case S.TEMPLATE:case S.TITLE:lH(T,E);break;case S.CAPTION:case S.COLGROUP:case S.TBODY:case S.TFOOT:case S.THEAD:T.tmplInsertionModeStack[0]=L.IN_TABLE,T.
2insertionMode=L.IN_TABLE,l3(T,E);break;case S.COL:T.tmplInsertionModeStack[0]=L.IN_COLUMN_GROUP,T.insertionMode=L.IN_COLUMN_GROUP,ie(T,E);break;case S.TR:T.tmplInsertionModeStack[0]=L.IN_TABLE_BODY,T.insertionMode=L.IN_TABLE_BODY,ia(T,E);break;case S.TD:case S.TH:T.tmplInsertionModeStack[0]=L.IN_ROW,T.insertionMode=L.IN_ROW,il(T,E);break;default:T.tmplInsertionModeStack[0]=L.IN_BODY,T.insertionMode=L.IN_BODY,lX(T,E)}break;case L.AFTER_BODY:c=this,(d=e).tagID===S.HTML?lX(c,d):iu(c,d);break;case L.IN_FRAMESET:var A=this,k=e;switch(k.tagID){case S.HTML:lX(A,k);break;case S.FRAMESET:A._insertElement(k,N.HTML);break;case S.FRAME:A._appendElement(k,N.HTML),k.ackSelfClosing=!0;break;case S.NOFRAMES:lH(A,k)}break;case L.AFTER_FRAMESET:var w=this,I=e;switch(I.tagID){case S.HTML:lX(w,I);break;case S.NOFRAMES:lH(w,I)}break;case L.AFTER_AFTER_BODY:u=this,(p=e).tagID===S.HTML?lX(u,p):ip(u,p);break;case L.AFTER_AFTER_FRAMESET:var D=this,j=e;switch(j.tagID){case S.HTML:lX(D,j);break;case S.NOFRAMES:lH(D,j)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===S.P||t.tagID===S.BR){im(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let a=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(a)===N.HTML){e._endTagOutsideForeignContent(t);break}let r=e.treeAdapter.getTagName(a);if(r.toLowerCase()===t.tagName){t.tagName=r,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case L.INITIAL:lR(this,e);break;case L.BEFORE_HTML:let t;a=this,((t=(r=e).tagID)===S.HTML||t===S.HEAD||t===S.BODY||t===S.BR)&&lB(a,r);break;case L.BEFORE_HEAD:let n;l=this,(n=(i=e).tagID)===S.HEAD||n===S.BODY||n===S.HTML||n===S.BR?lF(l,i):l._err(i,b.endTagWithoutMatchingOpenElement);break;case L.IN_HEAD:var a,r,l,i,s,o,c,d,u,p,m,h,f=this,g=e;switch(g.tagID){case S.HEAD:f.openElements.pop(),f.insertionMode=L.AFTER_HEAD;break;case S.BODY:case S.BR:case S.HTML:lz(f,g);break;case S.TEMPLATE:lU(f,g);break;default:f._err(g,b.endTagWithoutMatchingOpenElement)}break;case L.IN_HEAD_NO_SCRIPT:var x=this,y=e;switch(y.tagID){case S.NOSCRIPT:x.openElements.pop(),x.insertionMode=L.IN_HEAD;break;case S.BR:lG(x,y);break;default:x._err(y,b.endTagWithoutMatchingOpenElement)}break;case L.AFTER_HEAD:var _=this,v=e;switch(v.tagID){case S.BODY:case S.HTML:case S.BR:lV(_,v);break;case S.TEMPLATE:lU(_,v);break;default:_._err(v,b.endTagWithoutMatchingOpenElement)}break;case L.IN_BODY:l0(this,e);break;case L.TEXT:s=this,e.tagID===S.SCRIPT&&(null==(o=s.scriptHandler)||o.call(s,s.openElements.current)),s.openElements.pop(),s.insertionMode=s.originalInsertionMode;break;case L.IN_TABLE:l4(this,e);break;case L.IN_TABLE_TEXT:l8(this,e);break;case L.IN_CAPTION:var C=this,T=e;let E=T.tagID;switch(E){case S.CAPTION:case S.TABLE:C.openElements.hasInTableScope(S.CAPTION)&&(C.openElements.generateImpliedEndTags(),C.openElements.popUntilTagNamePopped(S.CAPTION),C.activeFormattingElements.clearToLastMarker(),C.insertionMode=L.IN_TABLE,E===S.TABLE&&l4(C,T));break;case S.BODY:case S.COL:case S.COLGROUP:case S.HTML:case S.TBODY:case S.TD:case S.TFOOT:case S.TH:case S.THEAD:case S.TR:break;default:l0(C,T)}break;case L.IN_COLUMN_GROUP:var N=this,A=e;switch(A.tagID){case S.COLGROUP:N.openElements.currentTagId===S.COLGROUP&&(N.openElements.pop(),N.insertionMode=L.IN_TABLE);break;case S.TEMPLATE:lU(N,A);break;case S.COL:break;default:it(N,A)}break;case L.IN_TABLE_BODY:ir(this,e);break;case L.IN_ROW:ii(this,e);break;case L.IN_CELL:var k=this,w=e;let I=w.tagID;switch(I){case S.TD:case S.TH:k.openElements.hasInTableScope(I)&&(k.openElements.generateImpliedEndTags(),k.openElements.popUntilTagNamePopped(I),k.activeFormattingElements.clearToLastMarker(),k.insertionMode=L.IN_ROW);break;case S.TABLE:case S.TBODY:case S.TFOOT:case S.THEAD:case S.TR:k.openElements.hasInTableScope(I)&&(k._closeTableCell(),ii(k,w));break;case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:break;default:l0(k,w)}break;case L.IN_SELECT:io(this,e);break;case L.IN_SELECT_IN_TABLE:let D;c=this,(D=(d=e).tagID)===S.CAPTION||D===S.TABLE||D===S.TBODY||D===S.TFOOT||D===S.THEAD||D===S.TR||D===S.TD||D===S.TH?c.openElements.hasInTableScope(D)&&
2(c.openElements.popUntilTagNamePopped(S.SELECT),c._resetInsertionMode(),c.onEndTag(d)):io(c,d);break;case L.IN_TEMPLATE:u=this,(p=e).tagID===S.TEMPLATE&&lU(u,p);break;case L.AFTER_BODY:id(this,e);break;case L.IN_FRAMESET:m=this,e.tagID===S.FRAMESET&&!m.openElements.isRootHtmlElementCurrent()&&(m.openElements.pop(),m.fragmentContext||m.openElements.currentTagId===S.FRAMESET||(m.insertionMode=L.AFTER_FRAMESET));break;case L.AFTER_FRAMESET:h=this,e.tagID===S.HTML&&(h.insertionMode=L.AFTER_AFTER_FRAMESET);break;case L.AFTER_AFTER_BODY:ip(this,e)}}onEof(e){switch(this.insertionMode){case L.INITIAL:lR(this,e);break;case L.BEFORE_HTML:lB(this,e);break;case L.BEFORE_HEAD:lF(this,e);break;case L.IN_HEAD:lz(this,e);break;case L.IN_HEAD_NO_SCRIPT:lG(this,e);break;case L.AFTER_HEAD:lV(this,e);break;case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:l1(this,e);break;case L.TEXT:var t,n;t=this,n=e,t._err(n,b.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(n);break;case L.IN_TABLE_TEXT:l8(this,e);break;case L.IN_TEMPLATE:ic(this,e);break;case L.AFTER_BODY:case L.IN_FRAMESET:case L.AFTER_FRAMESET:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:lO(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===x.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.TEXT:case L.IN_COLUMN_GROUP:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:this._insertCharacters(e);break;case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:case L.AFTER_BODY:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:lY(this,e);break;case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:l2(this,e);break;case L.IN_TABLE_TEXT:l6(this,e)}}}function lP(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):lJ(e,t),n}(e,t);if(!n)break;let a=function(e,t){let n=null,a=e.openElements.stackTop;for(;a>=0;a--){let r=e.openElements.items[a];if(r===t.element)break;e._isSpecialElement(r,e.openElements.tagIDs[a])&&(n=r)}return n||(e.openElements.shortenToLength(Math.max(a,0)),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!a)break;e.activeFormattingElements.bookmark=n;let r=function(e,t,n){let a=t,r=e.openElements.getCommonAncestor(t);for(let l=0,i=r;i!==n;l++,i=r){r=e.openElements.getCommonAncestor(i);let n=e.activeFormattingElements.getElementEntry(i),s=n&&l>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(i)):(i=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}(e,n),a===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(i,a),a=i)}return a}(e,a,n.element),l=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),l&&function(e,t,n){let a=rX(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{let r=e.treeAdapter.getNamespaceURI(t);a===S.TEMPLATE&&r===N.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,l,r),function(e,t,n){let a=e.treeAdapter.getNamespaceURI(n.element),{token:r}=n,l=e.treeAdapter.createElement(r.tagName,a,r.attrs);e._adoptNodes(t,l),e.treeAdapter.appendChild(t,l),e.activeFormattingElements.insertElementAfterBookmark(l,r),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,l,r.tagID)}(e,a,n)}}function lM(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function lO(e,t){if(e.stopped=!0,t.location){let n=2*!e.fragmentContext;
2for(let a=e.openElements.stackTop;a>=n;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(n);if(a&&!a.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(n);a&&!a.endTag&&e._setEndLocation(n,t)}}}}function lR(e,t){e._err(t,b.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,k.QUIRKS),e.insertionMode=L.BEFORE_HTML,e._processToken(t)}function lB(e,t){e._insertFakeRootElement(),e.insertionMode=L.BEFORE_HEAD,e._processToken(t)}function lF(e,t){e._insertFakeElement(w.HEAD,S.HEAD),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD,e._processToken(t)}function lH(e,t){switch(t.tagID){case S.HTML:lX(e,t);break;case S.BASE:case S.BASEFONT:case S.BGSOUND:case S.LINK:case S.META:e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break;case S.TITLE:e._switchToTextParsing(t,r4.RCDATA);break;case S.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,r4.RAWTEXT):(e._insertElement(t,N.HTML),e.insertionMode=L.IN_HEAD_NO_SCRIPT);break;case S.NOFRAMES:case S.STYLE:e._switchToTextParsing(t,r4.RAWTEXT);break;case S.SCRIPT:e._switchToTextParsing(t,r4.SCRIPT_DATA);break;case S.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=L.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(L.IN_TEMPLATE);break;case S.HEAD:e._err(t,b.misplacedStartTagForHeadElement);break;default:lz(e,t)}}function lU(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==S.TEMPLATE&&e._err(t,b.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,b.endTagWithoutMatchingOpenElement)}function lz(e,t){e.openElements.pop(),e.insertionMode=L.AFTER_HEAD,e._processToken(t)}function lG(e,t){let n=t.type===y.EOF?b.openElementsLeftAfterEof:b.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=L.IN_HEAD,e._processToken(t)}function lV(e,t){e._insertFakeElement(w.BODY,S.BODY),e.insertionMode=L.IN_BODY,l$(e,t)}function l$(e,t){switch(t.type){case y.CHARACTER:lW(e,t);break;case y.WHITESPACE_CHARACTER:lY(e,t);break;case y.COMMENT:lM(e,t);break;case y.START_TAG:lX(e,t);break;case y.END_TAG:l0(e,t);break;case y.EOF:l1(e,t)}}function lY(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function lW(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function lq(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,N.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function lK(e){let t=rY(e,A.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function lQ(e,t){e._switchToTextParsing(t,r4.RAWTEXT)}function lZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML)}function lX(e,t){switch(t.tagID){case S.I:case S.S:case S.B:case S.U:case S.EM:case S.TT:case S.BIG:case S.CODE:case S.FONT:case S.SMALL:case S.STRIKE:case S.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case S.A:let n;(n=e.activeFormattingElements.getElementEntryInScopeWithTagName(w.A))&&(lP(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case S.H1:case S.H2:case S.H3:case S.H4:case S.H5:case S.H6:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&r1.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,N.HTML);break;case S.P:case S.DL:case S.OL:case S.UL:case S.DIV:case S.DIR:case S.NAV:case S.MAIN:case S.MENU:case S.ASIDE:case S.CENTER:case S.FIGURE:case S.FOOTER:case S.HEADER:case S.HGROUP:case S.DIALOG:case S.DETAILS:case S.ADDRESS:case S.ARTICLE:case S.SEARCH:case S.SECTION:case S.SUMMARY:case S.FIELDSET:case S.BLOCKQUOTE:case S.FIGCAPTION:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,N.HTML);break;
2case S.LI:case S.DD:case S.DT:e.framesetOk=!1;let a=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(a===S.LI&&n===S.LI||(a===S.DD||a===S.DT)&&(n===S.DD||n===S.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==S.ADDRESS&&n!==S.DIV&&n!==S.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,N.HTML);break;case S.BR:case S.IMG:case S.WBR:case S.AREA:case S.EMBED:case S.KEYGEN:lq(e,t);break;case S.HR:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,N.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case S.RB:case S.RTC:e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,N.HTML);break;case S.RT:case S.RP:e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,N.HTML);break;case S.PRE:case S.LISTING:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,N.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case S.XMP:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r4.RAWTEXT);break;case S.SVG:e._reconstructActiveFormattingElements(),lw(t),lS(t),t.selfClosing?e._appendElement(t,N.SVG):e._insertElement(t,N.SVG),t.ackSelfClosing=!0;break;case S.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case S.BASE:case S.LINK:case S.META:case S.STYLE:case S.TITLE:case S.SCRIPT:case S.BGSOUND:case S.BASEFONT:case S.TEMPLATE:lH(e,t);break;case S.BODY:let r;(r=e.openElements.tryPeekProperlyNestedBodyElement())&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs));break;case S.FORM:let l;l=e.openElements.tmplCount>0,(!e.formElement||l)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,N.HTML),l||(e.formElement=e.openElements.current));break;case S.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(lP(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,N.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case S.MATH:e._reconstructActiveFormattingElements(),lk(t),lS(t),t.selfClosing?e._appendElement(t,N.MATHML):e._insertElement(t,N.MATHML),t.ackSelfClosing=!0;break;case S.TABLE:e.treeAdapter.getDocumentMode(e.document)!==k.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,N.HTML),e.framesetOk=!1,e.insertionMode=L.IN_TABLE;break;case S.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,N.HTML),lK(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case S.PARAM:case S.TRACK:case S.SOURCE:e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break;case S.IMAGE:t.tagName=w.IMG,t.tagID=S.IMG,lq(e,t);break;case S.BUTTON:e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.framesetOk=!1;break;case S.APPLET:case S.OBJECT:case S.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case S.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,r4.RAWTEXT);break;case S.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===L.IN_TABLE||e.insertionMode===L.IN_CAPTION||e.insertionMode===L.IN_TABLE_BODY||e.insertionMode===L.IN_ROW||e.insertionMode===L.IN_CELL?L.IN_SELECT_IN_TABLE:L.IN_SELECT;break;case S.OPTION:case S.OPTGROUP:e.openElements.currentTagId===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML);break;case S.NOEMBED:case S.NOFRAMES:lQ(e,t);break;case S.FRAMESET:let i;i=e.openElements.tryPeekProperlyNestedBodyElement(),e.framesetOk&&i&&(e.treeAdapter.detachNode(i),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,N.HTML),e.insertionMode=L.IN_FRAMESET);break;case S.TEXTAREA:e._insertElement(t,N.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r4.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=L.TEXT;break;case S.NOSCRIPT:e.options.scriptingEnabled?lQ(e,t):lZ(e,t);break;case S.PLAINTEXT:e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,N.HTML),e.tokenizer.state=r4.PLAINTEXT;break;case S.COL:case S.TH:case S.TD:case S.TR:case S.HEAD:case S.FRAME:case S.TBODY:case S.TFOOT:case S.THEAD:case S.CAPTION:case S.COLGROUP:break;default:lZ(e,t)}}function lJ(e,t){let n=t.tagName,a=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let r=e.openElements.items[t],l=e.openElements.tagIDs[t];if(a===l&&(a!==S.UNKNOWN||e.treeAdapter.getTagName(r)===n)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>
2=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(r,l))break}}function l0(e,t){switch(t.tagID){case S.A:case S.B:case S.I:case S.S:case S.U:case S.EM:case S.TT:case S.BIG:case S.CODE:case S.FONT:case S.NOBR:case S.SMALL:case S.STRIKE:case S.STRONG:lP(e,t);break;case S.P:e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(w.P,S.P),e._closePElement();break;case S.DL:case S.UL:case S.OL:case S.DIR:case S.DIV:case S.NAV:case S.PRE:case S.MAIN:case S.MENU:case S.ASIDE:case S.BUTTON:case S.CENTER:case S.FIGURE:case S.FOOTER:case S.HEADER:case S.HGROUP:case S.DIALOG:case S.ADDRESS:case S.ARTICLE:case S.DETAILS:case S.SEARCH:case S.SECTION:case S.SUMMARY:case S.LISTING:case S.FIELDSET:case S.BLOCKQUOTE:case S.FIGCAPTION:let n;n=t.tagID,e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));break;case S.LI:e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI));break;case S.DD:case S.DT:let a;a=t.tagID,e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a));break;case S.H1:case S.H2:case S.H3:case S.H4:case S.H5:case S.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case S.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(w.BR,S.BR),e.openElements.pop(),e.framesetOk=!1;break;case S.BODY:if(e.openElements.hasInScope(S.BODY)&&(e.insertionMode=L.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}break;case S.HTML:e.openElements.hasInScope(S.BODY)&&(e.insertionMode=L.AFTER_BODY,id(e,t));break;case S.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):n&&e.openElements.remove(n))}(e);break;case S.APPLET:case S.OBJECT:case S.MARQUEE:let r;r=t.tagID,e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker());break;case S.TEMPLATE:lU(e,t);break;default:lJ(e,t)}}function l1(e,t){e.tmplInsertionModeStack.length>0?ic(e,t):lO(e,t)}function l2(e,t){if(void 0!==e.openElements.currentTagId&&lD.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=L.IN_TABLE_TEXT,t.type){case y.CHARACTER:l7(e,t);break;case y.WHITESPACE_CHARACTER:l6(e,t)}else l5(e,t)}function l3(e,t){switch(t.tagID){case S.TD:case S.TH:case S.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(w.TBODY,S.TBODY),e.insertionMode=L.IN_TABLE_BODY,ia(e,t);break;case S.STYLE:case S.SCRIPT:case S.TEMPLATE:lH(e,t);break;case S.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(w.COLGROUP,S.COLGROUP),e.insertionMode=L.IN_COLUMN_GROUP,ie(e,t);break;case S.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,N.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case S.TABLE:e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case S.TBODY:case S.TFOOT:case S.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,N.HTML),e.insertionMode=L.IN_TABLE_BODY;break;case S.INPUT:lK(t)?e._appendElement(t,N.HTML):l5(e,t),t.ackSelfClosing=!0;break;case S.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,N.HTML),e.insertionMode=L.IN_CAPTION;break;case S.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,N.HTML),e.insertionMode=L.IN_COLUMN_GROUP;break;default:l5(e,t)}}function l4(e,t){switch(t.tagID){case S.TABLE:e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode());break;case S.TEMPLATE:lU(e,t);break;case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:case S.TBODY:case S.TD:case S.TFOOT:case S.TH:case S.THEAD:case S.TR:break;default:l5(e,t)}}function l5(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,l$(e,t),e.fosterParentingEnabled=n}
vendor: 4,790 bytes, line 2
2function l6(e,t){e.pendingCharacterTokens.push(t)}function l7(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function l8(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)l5(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let l9=new Set([S.CAPTION,S.COL,S.COLGROUP,S.TBODY,S.TD,S.TFOOT,S.TH,S.THEAD,S.TR]);function ie(e,t){switch(t.tagID){case S.HTML:lX(e,t);break;case S.COL:e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break;case S.TEMPLATE:lH(e,t);break;default:it(e,t)}}function it(e,t){e.openElements.currentTagId===S.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE,e._processToken(t))}function ia(e,t){switch(t.tagID){case S.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,N.HTML),e.insertionMode=L.IN_ROW;break;case S.TH:case S.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(w.TR,S.TR),e.insertionMode=L.IN_ROW,il(e,t);break;case S.CAPTION:case S.COL:case S.COLGROUP:case S.TBODY:case S.TFOOT:case S.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,l3(e,t));break;default:l3(e,t)}}function ir(e,t){let n=t.tagID;switch(t.tagID){case S.TBODY:case S.TFOOT:case S.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE);break;case S.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,l4(e,t));break;case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:case S.TD:case S.TH:case S.TR:break;default:l4(e,t)}}function il(e,t){switch(t.tagID){case S.TH:case S.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,N.HTML),e.insertionMode=L.IN_CELL,e.activeFormattingElements.insertMarker();break;case S.CAPTION:case S.COL:case S.COLGROUP:case S.TBODY:case S.TFOOT:case S.THEAD:case S.TR:e.openElements.hasInTableScope(S.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,ia(e,t));break;default:l3(e,t)}}function ii(e,t){switch(t.tagID){case S.TR:e.openElements.hasInTableScope(S.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY);break;case S.TABLE:e.openElements.hasInTableScope(S.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,ir(e,t));break;case S.TBODY:case S.TFOOT:case S.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(S.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,ir(e,t));break;case S.BODY:case S.CAPTION:case S.COL:case S.COLGROUP:case S.HTML:case S.TD:case S.TH:break;default:l4(e,t)}}function is(e,t){switch(t.tagID){case S.HTML:lX(e,t);break;case S.OPTION:e.openElements.currentTagId===S.OPTION&&e.openElements.pop(),e._insertElement(t,N.HTML);break;case S.OPTGROUP:e.openElements.currentTagId===S.OPTION&&e.openElements.pop(),e.openElements.currentTagId===S.OPTGROUP&&e.openElements.pop(),e._insertElement(t,N.HTML);break;case S.HR:e.openElements.currentTagId===S.OPTION&&e.openElements.pop(),e.openElements.currentTagId===S.OPTGROUP&&e.openElements.pop(),e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break;case S.INPUT:case S.KEYGEN:case S.TEXTAREA:case S.SELECT:e.openElements.hasInSelectScope(S.SELECT)&&(e.openElements.popUntilTagNamePopped(S.SELECT),e._resetInsertionMode(),t.tagID!==S.SELECT&&e._processStartTag(t));break;case S.SCRIPT:case S.TEMPLATE:lH(e,t)}}function io(e,t){switch(t.tagID){case S.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===S.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===S.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===S.OPTGROUP&&e.openElements.pop();break;case S.OPTION:e.openElements.currentTagId===S.OPTION&&e.openElements.pop();break;case S.SELECT:e.openElements.hasInSelectScope(S.SELECT)&&(e.openElements.popUntilTagNamePopped(S.SELECT),e._resetInsertionMode());break;case S.TEMPLATE:lU(e,t)}}function ic(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):lO(e,t)}function id(e,t){var n;if(t.tagID===S.HTML){if(e.fragmentContext||(e.insertionMode=L.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===S.HTML){e._setEndLocation(e.openElements.items[0],t);let a=e.openElements.items[1];
2!a||(null==(n=e.treeAdapter.getNodeSourceCodeLocation(a))?void 0:n.endTag)||e._setEndLocation(a,t)}}else iu(e,t)}function iu(e,t){e.insertionMode=L.IN_BODY,l$(e,t)}function ip(e,t){e.insertionMode=L.IN_BODY,l$(e,t)}function im(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==N.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}String.prototype.codePointAt,w.AREA,w.BASE,w.BASEFONT,w.BGSOUND,w.BR,w.COL,w.EMBED,w.FRAME,w.HR,w.IMG,w.INPUT,w.KEYGEN,w.LINK,w.META,w.PARAM,w.SOURCE,w.TRACK,w.WBR;var ih=e.i(92261),ih=ih,ig=e.i(718610),ig=ig;let ix=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,ib=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),iy={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function i_(e,t){var n,a;let r,l,i=!!((r="root"===(a=e).type?a.children[0]:a)&&("doctype"===r.type||"element"===r.type&&"html"===r.tagName.toLowerCase())),s=rL("type",{handlers:{root:iC,element:iT,text:iE,comment:iA,doctype:iN,raw:ik},unknown:iw}),o={parser:i?new lj(iy):lj.getFragmentParser(void 0,iy),handle(e){s(e,o)},stitches:!1,options:t||{}};s(e,o),iS(o,tu());let c=(n=i?o.parser.document:o.parser.getFragment(),rA({file:(l={file:o.options.file}).file||void 0,location:!1,schema:"svg"===l.space?rd:rc,verbose:l.verbose||!1},n));return(o.stitches&&ar(c,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===c.type&&1===c.children.length&&c.children[0].type===e.type)?c.children[0]:c}function iv(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function iC(e,t){iv(e.children,t)}function iT(e,t){(function(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===r4.PLAINTEXT)return;iS(t,tu(e));let a=t.parser.openElements.current,r="namespaceURI"in a?a.namespaceURI:rT.html;r===rT.html&&"svg"===n&&(r=rT.svg);let l=rP({...e,children:[]},"svg"===({space:r===rT.svg?"svg":"html"}).space?rd:rc),i={type:ih.TokenType.START_TAG,tagName:n,tagID:ig.getTagID(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in l?l.attrs:[],location:iD(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n})(e,t),iv(e.children,t),function(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&rR.includes(n)||t.parser.tokenizer.state===r4.PLAINTEXT)return;iS(t,td(e));let a={type:ih.TokenType.END_TAG,tagName:n,tagID:ig.getTagID(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:iD(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===r4.RCDATA||t.parser.tokenizer.state===r4.RAWTEXT||t.parser.tokenizer.state===r4.SCRIPT_DATA)&&(t.parser.tokenizer.state=r4.DATA)}(e,t)}function iE(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:ih.TokenType.CHARACTER,chars:e.value,location:iD(e)};iS(t,tu(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function iN(e,t){let n={type:ih.TokenType.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:iD(e)};iS(t,tu(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function iA(e,t){let n=e.value,a={type:ih.TokenType.COMMENT,data:n,location:iD(e)};iS(t,tu(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function ik(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,iI(t,tu(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(ix,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function iw(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var n;let a;t.stitches=!0,a="children"in(n=e)?n5({...n,children:[]}):n5(n),"children"in e&&"children"in a&&(a.children=i_({type:"root",children:e.children},t.options).children),iA({type:"comment",value:{stitch:a}},t)}else{let t="";
2throw ib.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function iS(e,t){iI(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=r4.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function iI(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function iD(e){let t=tu(e)||{line:void 0,column:void 0,offset:void 0},n=td(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function iL(e){return function(t,n){return i_(t,{...e,file:n})}}function ij(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let a=0,r=n.indexOf(t);for(;-1!==r;)a++,r=n.indexOf(t,r+t.length);return a}let iP="phrasing",iM=["autolink","link","image","label"];function iO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function iR(e){this.config.enter.autolinkProtocol.call(this,e)}function iB(e){this.config.exit.autolinkProtocol.call(this,e)}function iF(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];eA("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function iH(e){this.config.exit.autolinkEmail.call(this,e)}function iU(e){this.exit(e)}function iz(e){!function(e,t,n){let a=n9((n||{}).ignore||[]),r=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],a=-1;for(;++a<n.length;){var r;let e=n[a];t.push(["string"==typeof(r=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(r),"g"):r,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<r.length;)aa(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){let e=t[i],r=n?n.children:void 0;if(a(e,r?r.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],a=r[l][0],i=r[l][1],s=0,o=n.children.indexOf(e),c=!1,d=[];a.lastIndex=0;let u=a.exec(e.value);for(;u;){let n=u.index,r={index:u.index,input:u.input,stack:[...t,e]},l=i(...u,r);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?a.lastIndex=n+1:(s!==n&&d.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(l)?d.push(...l):l&&d.push(l),s=n+u[0].length,c=!0),!a.global)break;u=a.exec(e.value)}return c?(s<e.value.length&&d.push({type:"text",value:e.value.slice(s)}),n.children.splice(o,1,...d)):d=[e],o+d.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,iG],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,iV]],{ignore:["link","linkReference"]})}function iG(e,t,n,a,r){let l,i="";if(!i$(r))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),(l=n.split(".")).length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],a=n.indexOf(")"),r=ij(e,"("),l=ij(e,")");for(;-1!==a&&r>l;)e+=n.slice(0,a+1),a=(n=n.slice(a+1)).indexOf(")"),l++;return[e,n]}(n+a);if(!s[0])return!1;let o={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function iV(e,t,n,a){return!(!i$(a,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function i$(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||tJ(n)||tX(n))&&(!t||47!==n)}function iY(){this.buffer()}function iW(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iq(){this.buffer()}function iK(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function iQ(e){let t=this.resume(),n=this.stack[this.stack.length-1];eA("footnoteReference"===n.type),n.identifier=nN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iZ(e){this.exit(e)}function iX(e){let t=this.resume(),n=this.stack[this.stack.length-1];eA("footnoteDefinition"===n.type),n.identifier=nN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iJ(e){this.exit(e)}function i0(e,t,n,a){let r=n.createTracker(a),l=r.move("[^"),i=n.enter("footnoteReference"),s=n.enter("reference");return l+=r.move(n.safe(n.associationId(e),{after:"]",before:l})),s(),i(),l+=r.move("]")}function i1(e,t,n){return 0===t?e:i2(e,t,n)}function i2(e,t,n){return(n?"":" ")+e}i0.peek=function(){return"["};let i3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function i4(e){this.enter({type:"delete",children:[]},e)}function i5(e){this.exit(e)}function i6(e,t,n,a){let r=n.createTracker(a),l=n.enter("strikethrough"),i=r.move("~~");return i+=n.containerPhrasing(e,{...r.current(),before:i,after:"~"}),i+=r.move("~~"),l(),i}function i7(e){return e.length}function i8(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}i6.peek=function(){return"~"};function i9(e,t,n){let a=e.value||"",r="`",l=-1;for(;RegExp("(^|[^`])"+r+"([^`]|$)").test(a);)r+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++l<n.unsafe.length;){let e,t=n.unsafe[l],r=n.compilePattern(t);if(t.atBreak)for(;e=r.exec(a);){let t=e.index;
210===a.charCodeAt(t)&&13===a.charCodeAt(t-1)&&t--,a=a.slice(0,t)+" "+a.slice(e.index+1)}}return r+a+r}i9.peek=function(){return"`"};n9(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let se=function(e,t,n,a){let r=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let i=l.length+1;("tab"===r||"mixed"===r&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));let s=n.createTracker(a);s.move(l+" ".repeat(i-l.length)),s.shift(i);let o=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(i))+e:(n?l:l+" ".repeat(i-l.length))+e});return o(),c};function st(e){let t=e._align;eA(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function sn(e){this.exit(e),this.data.inTable=void 0}function sa(e){this.enter({type:"tableRow",children:[]},e)}function sr(e){this.exit(e)}function sl(e){this.enter({type:"tableCell",children:[]},e)}function si(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ss));let n=this.stack[this.stack.length-1];eA("inlineCode"===n.type),n.value=t,this.exit(e)}function ss(e,t){return"|"===t?t:e}function so(e){let t=this.stack[this.stack.length-2];eA("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function sc(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];eA("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let a,r=t.children,l=-1;for(;++l<r.length;){let e=r[l];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function sd(e,t,n,a){let r=e.children[0],l="boolean"==typeof e.checked&&r&&"paragraph"===r.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(a);l&&s.move(i);let o=se(e,t,n,{...a,...s.current()});return l&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),o}let su={tokenize:function(e,t,n){let a=0;return function t(l){return(87===l||119===l)&&a<3?(a++,e.consume(l),t):46===l&&3===a?(e.consume(l),r):n(l)};function r(e){return null===e?n(e):t(e)}},partial:!0},sp={tokenize:function(e,t,n){let a,r,l;return i;function i(t){return 46===t||95===t?e.check(sh,o,s)(t):null===t||tQ(t)||tJ(t)||45!==t&&tX(t)?o(t):(l=!0,e.consume(t),i)}function s(t){return 95===t?a=!0:(r=a,a=void 0),e.consume(t),i}function o(e){return r||a||!l?n(e):t(e)}},partial:!0},sm={tokenize:function(e,t){let n=0,a=0;return r;function r(i){return 40===i?(n++,e.consume(i),r):41===i&&a<n?l(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(sh,t,l)(i):null===i||tQ(i)||tJ(i)?t(i):(e.consume(i),r)}function l(t){return 41===t&&a++,e.consume(t),r}},partial:!0},sh={tokenize:function(e,t,n){return a;function a(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),a):38===i?(e.consume(i),l):93===i?(e.consume(i),r):60===i||null===i||tQ(i)||tJ(i)?t(i):n(i)}function r(e){return null===e||40===e||91===e||tQ(e)||tJ(e)?t(e):a(e)}function l(t){return tz(t)?function t(r){return 59===r?(e.consume(r),a):tz(r)?(e.consume(r),t):n(r)}(t):n(t)}},partial:!0},sf={tokenize:function(e,t,n){return function(t){return e.consume(t),a};function a(e){return tG(e)?n(e):t(e)}},partial:!0},sg={name:"wwwAutolink",tokenize:function(e,t,n){let a=this;return function(t){return 87!==t&&119!==t||!sv.call(a,a.previous)||sN(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(su,e.attempt(sp,e.attempt(sm,r),n),n)(t))};function r(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:sv},sx={name:"protocolAutolink",tokenize:function(e,t,n){let a=this,r="",l=!1;return function(t){return(72===t||104===t)&&sC.call(a,a.previous)&&!sN(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(t),e.consume(t),i):n(t)};function i(t){if(tz(t)&&r.length<5)return r+=String.fromCodePoint(t),e.consume(t),i;if(58===t){let n=r.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),l)?o:(l=!0,s):n(t)}function o(t){return null===t||t$(t)||tQ(t)||tJ(t)||tX(t)?n(t):e.attempt(sp,e.attempt(sm,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:sC}
2,sb={name:"emailAutolink",tokenize:function(e,t,n){let a,r,l=this;return function(t){return!sE(t)||!sT.call(l,l.previous)||sN(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(a){return sE(a)?(e.consume(a),t):64===a?(e.consume(a),i):n(a)}(t))};function i(t){return 46===t?e.check(sf,o,s)(t):45===t||95===t||tG(t)?(r=!0,e.consume(t),i):o(t)}function s(t){return e.consume(t),a=!0,i}function o(i){return r&&a&&tz(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:sT},sy={},s_=48;for(;s_<123;)sy[s_]=sb,58==++s_?s_=65:91===s_&&(s_=97);function sv(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||tQ(e)}function sC(e){return!tz(e)}function sT(e){return!(47===e||sE(e))}function sE(e){return 43===e||45===e||46===e||95===e||tG(e)}function sN(e){let t=e.length,n=!1;for(;t--;){let a=e[t][1];if(("labelLink"===a.type||"labelImage"===a.type)&&!a._balanced){n=!0;break}if(a._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}sy[43]=sb,sy[45]=sb,sy[46]=sb,sy[95]=sb,sy[72]=[sb,sx],sy[104]=[sb,sx],sy[87]=[sb,sg],sy[119]=[sb,sg];let sA={tokenize:function(e,t,n){let a=this;return t1(e,function(e){let r=a.events[a.events.length-1];return r&&"gfmFootnoteDefinitionIndent"===r[1].type&&4===r[2].sliceSerialize(r[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function sk(e,t,n){let a,r=this,l=r.events.length,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);for(;l--;){let e=r.events[l][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!a||!a._balanced)return n(l);let s=nN(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&i.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function sw(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let a={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},s=[e[n+1],e[n+2],["enter",a,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(n,e.length-n+1,...s),e}function sS(e,t,n){let a,r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",o)}function o(s){if(i>999||93===s&&!a||null===s||91===s||tQ(s))return n(s);if(93===s){e.exit("chunkString");let a=e.exit("gfmFootnoteCallString");return l.includes(nN(r.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return tQ(s)||(a=!0),i++,e.consume(s),92===s?c:o}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,o):o(t)}}function sI(e,t,n){let a,r,l=this,i=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),o};function o(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!r||null===t||91===t||tQ(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return a=nN(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),u}return tQ(t)||(r=!0),s++,e.consume(t),92===t?d:c}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function u(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(a)||i.push(a),t1(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}
2function sD(e,t,n){return e.check(t5,t,e.attempt(sA,t,n))}function sL(e){e.exit("gfmFootnoteDefinition")}class sj{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,a){let r=0;if(0!==n||0!==a.length){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...a);return}r+=1}e.map.push([t,n,a])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let a=n.pop();for(;a;){for(let t of a)e.push(t);a=n.pop()}this.map.length=0}}function sP(e,t,n){let a,r=this,l=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let a=t>-1?r.events[t][1].type:null,l="tableHead"===a||"tableRow"===a?b:s;return l===b&&r.parser.lazy[r.now().line]?n(e):l(e)};function s(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(a=!0,i+=1),o(n)}function o(t){return null===t?n(t):tK(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):n(t):tZ(t)?t1(e,o,"whitespace")(t):(i+=1,a&&(a=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,o):(e.enter("data"),c(t))}function c(t){return null===t||124===t||tQ(t)?(e.exit("data"),o(t)):(e.consume(t),92===t?d:c)}function d(t){return 92===t||124===t?(e.consume(t),c):c(t)}function u(t){return(r.interrupt=!1,r.parser.lazy[r.now().line])?n(t):(e.enter("tableDelimiterRow"),a=!1,tZ(t))?t1(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?h(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function m(t){return tZ(t)?t1(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),f):45===t?(i+=1,f(t)):null===t||tK(t)?x(t):n(t)}function f(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return tZ(t)?t1(e,x,"whitespace")(t):x(t)}function x(r){if(124===r)return p(r);if(null===r||tK(r))return a&&l===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):n(r);return n(r)}function b(t){return e.enter("tableRow"),y(t)}function y(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),y):null===n||tK(n)?(e.exit("tableRow"),t(n)):tZ(n)?t1(e,y,"whitespace")(n):(e.enter("data"),_(n))}function _(t){return null===t||124===t||tQ(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?v:_)}function v(t){return 92===t||124===t?(e.consume(t),_):_(t)}}function sM(e,t){let n,a,r,l=-1,i=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,u=0,p=new sj;for(;++l<e.length;){let m=e[l],h=m[1];
2"enter"===m[0]?"tableHead"===h.type?(d=!1,0!==u&&(sR(p,t,u,n,a),a=void 0,u=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(l,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(i=!0,r=void 0,o=[0,0,0,0],c=[0,l+1,0,0],d&&(d=!1,a={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(l,0,[["enter",a,t]])),s="tableDelimiterRow"===h.type?2:a?3:1):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(i=!1,0===c[2]&&(0!==o[1]&&(c[0]=c[1],r=sO(p,t,o,s,void 0,r),o=[0,0,0,0]),c[2]=l)):"tableCellDivider"===h.type&&(i?i=!1:(0!==o[1]&&(c[0]=c[1],r=sO(p,t,o,s,void 0,r)),c=[(o=c)[1],l,0,0])):"tableHead"===h.type?(d=!0,u=l):"tableRow"===h.type||"tableDelimiterRow"===h.type?(u=l,0!==o[1]?(c[0]=c[1],r=sO(p,t,o,s,l,r)):0!==c[1]&&(r=sO(p,t,c,s,l,r)),s=0):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(c[3]=l)}for(0!==u&&sR(p,t,u,n,a),p.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,a=[];for(;t<e.length;){let r=e[t];if(n){if("enter"===r[0])"tableContent"===r[1].type&&a.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===r[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=a.length-1;a[e]="left"===a[e]?"center":"right"}}else if("tableDelimiterRow"===r[1].type)break}else"enter"===r[0]&&"tableDelimiterRow"===r[1].type&&(n=!0);t+=1}return a}(t.events,l))}return e}function sO(e,t,n,a,r,l){0!==n[0]&&(l.end=Object.assign({},sB(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let i=sB(t.events,n[1]);if(l={type:1===a?"tableHeader":2===a?"tableDelimiter":"tableData",start:Object.assign({},i),end:Object.assign({},i)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let r=sB(t.events,n[2]),l=sB(t.events,n[3]),i={type:"tableContent",start:Object.assign({},r),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",i,t]]),2!==a){let a=t.events[n[2]],r=t.events[n[3]];if(a[1].end=Object.assign({},r[1].end),a[1].type="chunkText",a[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,a=n[3]-n[2]-1;e.add(t,a,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==r&&(l.end=Object.assign({},sB(t.events,r)),e.add(r,0,[["exit",l,t]]),l=void 0),l}function sR(e,t,n,a,r){let l=[],i=sB(t.events,n);r&&(r.end=Object.assign({},i),l.push(["exit",r,t])),a.end=Object.assign({},i),l.push(["exit",a,t]),e.add(n+1,0,l)}function sB(e,t){let n=e[t],a="enter"===n[0]?"start":"end";return n[1][a]}let sF={name:"tasklistCheck",tokenize:function(e,t,n){let a=this;return function(t){return null===a.previous&&a._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),r):n(t)};function r(t){return tQ(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(a){return tK(a)?t(a):tZ(a)?e.check({tokenize:sH},t,n)(a):n(a)}}};function sH(e,t,n){return t1(e,function(e){return null===e?n(e):t(e)},"whitespace")}let sU={};function sz(e){let t,n,a,r=e||sU,l=this.data(),i=l.micromarkExtensions||(l.micromarkExtensions=[]),s=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),o=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);i.push(tU([{text:sy},{document:{91:{name:"gfmFootnoteDefinition",tokenize:sI,continuation:{tokenize:sD},exit:sL}},text:{91:{name:"gfmFootnoteCall",tokenize:sS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sk,resolveTo:sw}}},(t=(r||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,a){let r=this.previous,l=this.events,i=0;return function(s){return 126===r&&"characterEscape"!==l[l.length-1][1].type?a(s):(e.enter("strikethroughSequenceTemporary"),function l(s){let o=nc(r);if(126===s)return i>1?a(s):(e.consume(s),i++,l);if(i<2&&!t)return a(s);let c=e.exit("strikethroughSequenceTemporary"),d=nc(s);return c._open=!d||2===d&&!!o,c._close=!o||2===o&&!!d,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let a=n;for(;a--;)if("exit"===e[a][0]&&"strikethroughSequenceTemporary"===e[a][1].type&&e[a][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[a][1].end.offset-e[a][1].start.offset){e[n][1].type="strikethroughSequence",e[a][1].type="strikethroughSequence";let r={type:"strikethrough",start:Object.assign({},e[a][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",r,t],["enter",e[a][1],t],["exit",e[a][1],t],["enter",l,t]],s=t.parser.constructs.insideSpan.null;s&&tB(i,i.length,0,no(s,e.slice(a+1,n),t)),tB(i,i.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",r,t]]),tB(e,a-1,n-a+3,i),n=a+i.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:sP,resolveAll:sM}}},{text:{91:sF}}])),s.push([{transforms:[iz],enter:{literalAutolink:iO,literalAutolinkEmail:iR,literalAutolinkHttp:iR,literalAutolinkWww:iR},exit:{literalAutolink:iU,literalAutolinkEmail:iH,literalAutolinkHttp:iB,literalAutolinkWww:iF}}
2,{enter:{gfmFootnoteCallString:iY,gfmFootnoteCall:iW,gfmFootnoteDefinitionLabelString:iq,gfmFootnoteDefinition:iK},exit:{gfmFootnoteCallString:iQ,gfmFootnoteCall:iZ,gfmFootnoteDefinitionLabelString:iX,gfmFootnoteDefinition:iJ}},{canContainEols:["delete"],enter:{strikethrough:i4},exit:{strikethrough:i5}},{enter:{table:st,tableData:sl,tableHeader:sl,tableRow:sa},exit:{codeText:si,table:sn,tableData:sr,tableHeader:sr,tableRow:sr}},{exit:{taskListCheckValueChecked:so,taskListCheckValueUnchecked:so,paragraph:sc}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:iP,notInConstruct:iM},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:iP,notInConstruct:iM},{character:":",before:"[ps]",after:"\\/",inConstruct:iP,notInConstruct:iM}]},(a=!1,r&&r.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:function(e,t,n,r){let l=n.createTracker(r),i=l.move("[^"),s=n.enter("footnoteDefinition"),o=n.enter("label");return i+=l.move(n.safe(n.associationId(e),{before:i,after:"]"})),o(),i+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),i+=l.move((a?"\n":" ")+n.indentLines(n.containerFlow(e,l.current()),a?i2:i1))),s(),i},footnoteReference:i0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:i3}],handlers:{delete:i6}},function(e){let t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,r=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let a=i9(e,t,n);return n.stack.includes("tableCell")&&(a=a.replace(/\|/g,"\\$&")),a},table:function(e,t,n,a){return s(function(e,t,n){let a=e.children,r=-1,l=[],i=t.enter("table");for(;++r<a.length;)l[r]=o(a[r],t,n);return i(),l}(e,n,a),e.align)},tableCell:i,tableRow:function(e,t,n,a){let r=s([o(e,n,a)]);return r.slice(0,r.indexOf("\n"))}}};function i(e,t,n,a){let r=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...a,before:l,after:l});return i(),r(),s}function s(e,t){return function(e,t){let n=t||{},a=(n.align||[]).concat(),r=n.stringLength||i7,l=[],i=[],s=[],o=[],c=0,d=-1;for(;++d<e.length;){let t=[],a=[],l=-1;for(e[d].length>c&&(c=e[d].length);++l<e[d].length;){var u;let i=null==(u=e[d][l])?"":String(u);if(!1!==n.alignDelimiters){let e=r(i);a[l]=e,(void 0===o[l]||e>o[l])&&(o[l]=e)}t.push(i)}i[d]=t,s[d]=a}let p=-1;if("object"==typeof a&&"length"in a)for(;++p<c;)l[p]=i8(a[p]);else{let e=i8(a);for(;++p<c;)l[p]=e}p=-1;let m=[],h=[];for(;++p<c;){let e=l[p],t="",a="";99===e?(t=":",a=":"):108===e?t=":":114===e&&(a=":");let r=!1===n.alignDelimiters?1:Math.max(1,o[p]-t.length-a.length),i=t+"-".repeat(r)+a;!1!==n.alignDelimiters&&((r=t.length+r+a.length)>o[p]&&(o[p]=r),h[p]=r),m[p]=i}i.splice(1,0,m),s.splice(1,0,h),d=-1;let f=[];for(;++d<i.length;){let e=i[d],t=s[d];p=-1;let a=[];for(;++p<c;){let r=e[p]||"",i="",s="";if(!1!==n.alignDelimiters){let e=o[p]-(t[p]||0),n=l[p];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=i=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||p||a.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==r)&&(!1!==n.delimiterStart||p)&&a.push(" "),!1!==n.alignDelimiters&&a.push(i),a.push(r),!1!==n.alignDelimiters&&a.push(s),!1!==n.padding&&a.push(" "),(!1!==n.delimiterEnd||p!==c-1)&&a.push("|")}f.push(!1===n.delimiterEnd?a.join("").replace(/ +$/,""):a.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:a,padding:n,stringLength:r})}function o(e,t,n){let a=e.children,r=-1,l=[],s=t.enter("tableRow");for(;++r<a.length;)l[r]=i(a[r],e,t,n);return s(),l}}(r),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:sd}}]})}e.i(174345);var sG=e.i(774860),sV=e.i(564755),s$=e.i(674686),sY=e.i(578197),sW=e.i(512629);let sq=function({className:e}){return(0,j.jsx)("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,j.jsx)("path",{d:"M5.62875 13.546L8.77875 11.646L11.9288 13.571L11.1038 9.971L13.8788 7.571L10.2288 7.246L8.77875 3.846L7.32875 7.221L3.67875 7.546L6.45375 9.971L5.62875 13.546ZM3.35375 16.6825L4.7865 10.5133L0 6.36525L6.31525 5.81725L8.77875 0L11.2422 5.81725L17.5575 6.36525L12.771 10.5133L14.2038 16.6825L8.77875 13.4095L3.35375 16.6825Z",fill:"currentColor"})})},sK=({bullets:e,className:t})=>(0,j.jsx)("div",{className:(0,F.default)("",t),children:e.length>
20&&(0,j.jsx)("ul",{className:"list-none p-0 font-font-weight/body-2 text-text/primary text-font-size/body-2 leading-line-height/body-2-relaxed",children:e.map((e,t)=>(0,j.jsxs)("li",{className:"mb-2 flex items-start",children:[(0,j.jsx)("span",{className:"mr-2 mt-1 shrink-0",children:(0,j.jsx)(sq,{className:"text-text/accent"})}),(0,j.jsx)("span",{className:"flex-1",children:e})]},t))})}),sQ=(0,e.i(686148).staticText)({dismiss:{_:"Not Now",zh:"æ«æä¸ç¨"},confirm:{_:"Proceed",zh:"確èª"}}),sZ=({slideUpModalRef:e,onClose:t,onClickAgree:n,agreement:a,pushDataLayer:r})=>{let[l,i]=(0,H.useState)(!1),[s,o]=(0,H.useState)(!1),[c,d]=(0,H.useState)(!1),u=(0,s$.useBreakpoint)({_:"_",sm:"sm",md:"md",lg:"lg",xl:"xl",xxl:"xxl"}),p=(0,sG.useCmsClientContext)(),m=(0,sV.getClientTranslations)(sQ,p),h=async()=>{if(!s){o(!0);try{await n?.(),r?.({event:"form_step",lead_form_name:"pl-chc-approval-odds-consent-form",form_type:"consent form",action:"submit",component_type:"footer",component_title:"CHC Approval Odds Consent Drawer/Footer CTAs_Proceed",component_index:"1",vertical_code:"PL",form_field_value:"true",step_number:"1",step_name:"consent",status:""})}finally{o(!1)}}};return a?(0,j.jsx)(sW.SlideUpModal,{title:a.title,titleClassName:"rounded-radius/card",ref:e,titleContainerClassName:"!p-[16px] border-b",rootClassName:"!p-[0px]",bodyClassName:"sm"===u?"!px-[0px] !pb-0":"!px-[0px]",hideCloseButton:!0,children:(0,j.jsxs)("div",{className:"flex flex-col gap-spacing/padding/x-sm",children:[(0,j.jsx)(aY,{remarkPlugins:[sz],rehypePlugins:[iL],components:{div:({className:e,children:t,...n})=>{if("subtitle"===e)return(0,j.jsx)("div",{className:"px-4 font-font-weight/body-2 text-font-size/body-2 leading-line-height/body-2-relaxed lg:px-6",...n,children:t});if("bullets"===e){let e,n,a=(e=[],(n=t=>{"string"==typeof t?e.push(t):Array.isArray(t)?t.forEach(n):H.default.isValidElement(t)&&t.props?.children&&n(t.props.children)})(t),e.join("").split("\n").filter(e=>e.trim().startsWith("-")).map(e=>e.replace(/^-\s*/,"").trim()));return(0,j.jsx)(sK,{bullets:a,className:"px-4 lg:px-6"})}return"checkbox"===e?(0,j.jsx)("div",{className:"relative z-10 flex items-center gap-2 border-t p-spacing/gap/section-y pb-2",...n,children:(0,j.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,j.jsx)("input",{type:"checkbox",className:"size-form/check-radio-size",checked:l,onChange:()=>{let e=!l;r?.({event:"form_interact",lead_form_name:"pl-chc-approval-odds-consent-form",form_type:"consent form",action:`${e?"check":"uncheck"}`,component_type:"checkbox",component_title:"CHC Approval Odds Consent Drawer/Consent Acknowledgement_Credit Data Usage",component_index:"",vertical_code:"PL",form_field_value:"",step_number:"1",step_name:"consent",status:""}),i(e)}}),(0,j.jsx)("p",{className:"font-font-weight/body-2 text-text/primary text-font-size/body-2 leading-line-height/body-2",children:t})]})}):(0,j.jsx)("div",{...n,children:t})},h2:({className:e,title:t,children:n,...a})=>"accordion"===e?(0,j.jsx)("div",{className:"px-4 lg:px-6",children:(0,j.jsx)(sY.CollapsibleSection,{id:"bullets",isOpen:c,onToggle:()=>{let e=!c;r?.({event:"form_interact",lead_form_name:"pl-chc-approval-odds-consent-form",form_type:"consent form",action:`${e?"expand":"collapse"}`,component_type:"accordion",component_title:"CHC Approval Odds Consent Drawer/Accordion_How does approval odds works",component_index:"",vertical_code:"PL",form_field_value:"",step_number:"1",step_name:"consent",status:""}),d(e)},content:(0,j.jsx)("div",{className:"mt-2 text-text/primary",children:n}),children:(0,j.jsx)("div",{className:"font-bold",children:t})})}):(0,j.jsx)("h2",{...a,children:n}),input:()=>null},children:a.content}),(0,j.jsxs)("div",{className:(0,F.default)("flex flex-row gap-spacing/gap/x px-spacing/padding/x py-spacing/padding/y-sm",{"shadow-[0px_0px_12px_-1px_rgba(0,0,0,0.25)]":"sm"===u}),children:[(0,j.jsx)(Z.default,{className:"w-full px-button/padding-regular-x text-colors/neutral-gray-700",styleType:"neutral-light-and-blue",variant:"outline",onClick:()=>{r?.({event:"form_step",lead_form_name:"pl-chc-approval-odds-consent-form",form_type:"consent form",action:"back",component_type:"footer",component_title:"CHC Approval Odds Consent Drawer/Footer CTAs_Not Now",component_index:"",vertical_code:"PL",form_field_value:"",step_number:"1",step_name:"consent",status:""}),t?.(),e.current?.close()},children:m.dismiss}),(0,j.jsx)(Z.default,{className:"w-full px-button/padding-regular-x text-text/on-dark",variant:"filled",styleType:"primary",disabled:!l||s,onClick:h,children:m.confirm})]})]})}):null};var sX=e.i(439189),sJ=e.i(468264);function s0({approvalOddsData:e,sendConsent:t,langPrefix:n,chcBaseUrl:a}){let r=(0,eC.useIdentity)(),l=(0,H.useRef)(null),{approvalOddsAgreement:i,hasApprovalOddsConsent:s}=(0,H.useMemo)(()=>{let t=(0,ep.languageCode)(n),a=e?.agreements.find(e=>e.locale&&(0,ep.languageCode)(e.locale)===t);return{approvalOddsAgreement:a?{...a,documentId:String(a?.documentId),name:String(a?.name),title:String(a?.title),version:Number(a?.version),content:String(a?.content),locale:String(a?.locale),createdBy:"",updatedBy:"",__v:0,_id:""}:void 0,hasApprovalOddsConsent:!!e?.consents.length}},[e,n]),o=(0,H.useCallback)(()=>
2{if(!a)throw Error("Missing CHC base URL in CMS config");let e=(0,ep.languageCode)(n);window.location.href=new URL(`${e}/auth?redirectAfterCreditReportRetrieval=${encodeURIComponent(window.location.href)}`,a).href},[n,a]),c=(0,H.useCallback)(()=>{if(!r){window.location.href=`${n}/login?redirect_uri=${encodeURIComponent(window.location.href)}`;return}if(!s){if(!i)throw Error("Missing approval odds agreement");l.current?.open();return}o()},[i,s,r,n,o]),d=(0,H.useCallback)(async()=>{if(!i)throw Error("Missing approval odds agreement");if(!s)try{await t([{agreementId:i.documentId,agreementVersion:i.version}])}catch(t){let e=t instanceof Error?t.message:String(t);console.error("Failed to send approval odds consent",t),window.alert(`Failed to update approval odds consent: ${e}`);return}l.current?.close(),(!e?.lastUpdated||((e,t=new Date)=>!!e&&(0,sJ.isAfter)(t,(0,sX.addDays)(new Date(e),30)))(e.lastUpdated))&&o()},[i,e?.lastUpdated,s,o,t]);return{onRetrieveApprovalOdds:c,oddsConsentModal:(0,j.jsx)(sZ,{slideUpModalRef:l,agreement:i,onClickAgree:d,pushDataLayer:eu.pushDataLayer})}}e.s(["useApprovalOddsRetrieval",()=>s0],191133),e.s([],25375);var s1=e.i(862119);let s2=e=>!!e?.productBlock?.product,s3=(e,t)=>{if(!t?.length)return e;let n=e.filter(s2);return e.map(e=>{let a=n.indexOf(e);if(-1===a)return e;let r=t[a],l=e.productBlock?.product?.attributes;return r&&l?{...e,productBlock:{...e.productBlock,displayApprovalOdds:e.productBlock?.displayApprovalOdds,product:{...e.productBlock?.product,attributes:ec(l,r)}}}:e})},s4=e=>{let t=e.productBlock?.attributes_list??[],n=e.productBlock?.product?.attributes??[];return t.every(e=>{let t=e.attribute?.name;if(!t)return!0;let a=n.find(e=>e.name?.name===t);return a&&(a.value||a.values)})},s5=e=>{let{metadata:t,vertical:n,tableConfig:a}=e,r=(0,H.useMemo)(()=>t?.product_card??[],[t?.product_card]),l=H.default.useRef(null),i=(0,U.useClientContext)(),{brand:s,langPrefix:o}=i,c="moneyhero"===s&&r.some(e=>e.productBlock?.displayApprovalOdds),{data:d,sendConsent:u}=eE((0,H.useMemo)(()=>c?r.filter(s2).map(e=>e.productBlock?.product).filter(e=>!!e?.title):[],[c,r]),c,o),p=(0,H.useMemo)(()=>{if(!c)return;let e=(0,en.getClientTranslations)(R.ApprovalOddsTranslations,i);return{sectionTitle:e.approval_odds,tooltip:e.approval_odds_tooltip,high:e.approval_odds_high,medium:e.approval_odds_medium,low:e.approval_odds_low,unlock:e.approval_odds_unlock}},[c,i]),{pageData:m,isPreview:h,publicCmsConfig:f}=(0,er.usePageDataContext)(),{onRetrieveApprovalOdds:g,oddsConsentModal:x}=s0({approvalOddsData:d,sendConsent:u,langPrefix:o,chcBaseUrl:f.chcBaseUrl}),[b,y]=(0,H.useState)(!!m.calculatedPersonalLoans?.hasError),[_,v]=(0,H.useState)(()=>s3(r,m.calculatedPersonalLoans?.data)),C=(0,H.useMemo)(()=>ed(s,void 0,{amount:a?.default_loan_amount?.toString(),tenure:a?.default_loan_tenure?.toString()}),[s,a?.default_loan_amount,a?.default_loan_tenure]),{loanSearchParams:T}=et(C),E=(0,H.useMemo)(()=>{let e=_.filter(s2);return b?e:e.filter(s4)},[_,b]),N=async({tenure:e,amount:t})=>{let n=r.filter(s2).map(e=>e.productBlock?.product?.title).filter(e=>!!e);try{let a=await s1.feApiFrontClient.calculatePersonalLoans({productIds:n,tenure:+e,amount:+t,isDraft:h});y(!1),a&&v(s3(r,a))}catch{y(!0)}},A=t?{...t,product_card:E}:void 0;return(0,j.jsxs)(es,{wrapperClassName:(0,F.default)({"hidden md:block":!e.cardPosition.visible_mobile}),onlyListen:!0,vertical:n,onFinishedEnterFilter:N,defaultParams:C,max_loan_amount:a?.max_loan_amount,min_loan_amount:a?.min_loan_amount,max_loan_tenure:a?.max_loan_tenure,min_loan_tenure:a?.min_loan_tenure,children:[(0,j.jsx)(O.CardListingPosition,{...e,metadata:A,calculateError:b,skeletonThreshold:0,travelQuotes:void 0,travelPremiumsData:void 0,initialLoanSearchParams:T,plFilterConfig:m.plFilterConfig,approvalOddsData:c?d:null,approvalOddsLabels:p,onApprovalOddsUnlockClick:c?g:void 0,onApprovalOddsRefreshClick:()=>l.current?.open()}),c&&(0,j.jsx)(B.ApprovalOddsDrawer,{slideUpModalRef:l,lastUpdated:d?.lastUpdated??void 0,isOutdated:d?.userState!=="fresh",onClickCTA:g,pushDataLayer:eu.pushDataLayer}),c?x:null]})},s6=e=>{let{metadata:t}=e,n=t?.product_card??[],{pageData:{travelQuotes:a}}=(0,er.usePageDataContext)(),r={...t};r.product_card=n;let l=JSON.parse(JSON.stringify(r)),i=s7(a);return(0,j.jsx)(O.CardListingPosition,{...e,metadata:l,travelPremiumsData:i,travelQuotes:a,skeletonThreshold:3*(a?.status==="inprogress")})},s7=e=>{let t=e?.premiums??[];if(e?.status==="inprogress"&&e.oldPremiumsIds){let n=new Map(t.map(e=>[e?.brokerProductCode,e])),a=new Set(e.oldPremiumsIds);t=[...e.oldPremiumsIds.map(e=>n.get(e)??{brokerProductCode:e,offeredPremium:"",originalPremium:"",currencySymbol:""}),...t.filter(e=>!a.has(e?.brokerProductCode??""))]}return t};
2e.s(["default",0,e=>{switch(e.vertical){case"CAR_INSURANCE":return(0,j.jsx)(M.CardListingWrapperCar,{...e});case"TRAVEL_INSURANCE":return(0,j.jsx)(s6,{...e});case"PERSONAL_LOANS":return(0,j.jsx)(s5,{...e});default:return(0,j.jsx)(P.CardListingWrapperBase,{...e})}}],878942);var s8=e.i(396805),s9=e.i(225336),oe=e.i(691905);e.i(201542);var ot=e.i(77719),on=e.i(831750),oa=e.i(366420),or=e.i(424135),ol=e.i(192766);e.s([],237922),e.i(804913);let oi=(e=[])=>{let t=`${ee.cmsQueryParamsPrefix}activeTab`,n=(0,s$.useBreakpoint)({_:{mobile:!0},md:{mobile:!1}}),a=(0,J.usePathname)(),r=(0,X.useSafeSearchParams)(),l=r?.get(t),i=(0,H.useMemo)(()=>e?.length?l?e.find((e,t)=>t+1===+l):e[0]:null,[l,e]);return{activeTab:l,activeTabInfo:i,onSetNewActiveTab:e=>{let n=new URLSearchParams(window.location.search);n.set(t,(e+1).toString());let r=`${a}?${n.toString()}`;window.history.pushState(null,"",r)},version:n}},os=({tabs:e})=>{var t;let n,a,{onSetNewActiveTab:r,activeTab:l,version:i}=oi(e),s=(0,H.useRef)(null),o=(0,H.useRef)(null),c=(0,H.useRef)(null),[d,u]=(0,H.useState)(e?.length??0),[p,m]=(0,H.useState)([]),[h,f]=(0,H.useState)(!1),g=(t=()=>{let t=s.current;if(!t)return;if(!e?.length)return null;let n=t.offsetWidth,a=Array.from(t.children),r=0,l=0;for(let e=0;e<a.length&&!((r+=a[e].offsetWidth+8)+40>n);e++)l++;if(l<e.length){let t=0;for(let e=0;e<l;e++)t+=a[e].offsetWidth;t+40>n&&l--,u(l),e?.length?m(e.slice(l)):m([])}},n=(0,H.useRef)(null),a=(0,H.useRef)(null),n.current=t,(0,H.useCallback)((...e)=>{null!==a.current&&window.clearTimeout(a.current),a.current=window.setTimeout(()=>{n.current?.(...e)},100)},[100]));return((0,H.useEffect)(()=>{let e=e=>{c.current&&!c.current.contains(e.target)&&o.current&&!o.current.contains(e.target)&&f(!1)};return h?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[h]),(0,H.useEffect)(()=>(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[e,g]),i.mobile)?null:(0,j.jsxs)("div",{ref:s,className:"flex flex-row gap-2 md:max-w-general/narrow-content-max-width-3",children:[e.slice(0,d).map((e,t)=>(0,j.jsx)(Z.default,{styleType:"neutral-light-and-blue",variant:"outline",selected:t+1===+(l??0)||!l&&0===t,className:"justify-start",title:e,onClick:()=>r(t),children:(0,j.jsx)("div",{className:"overflow-hidden text-ellipsis",children:e})},`${e}-${t}`)),p.length>0&&(0,j.jsx)("div",{className:"relative",children:(0,j.jsxs)(Z.default,{ref:o,onClick:()=>f(e=>!e),className:"w-10 px-0",selected:!!(l&&+l>d),styleType:"neutral-light-and-blue",variant:"outline",children:["...",h?(0,j.jsx)("div",{ref:c,className:"absolute right-0 top-full mt-1 rounded border shadow-lg bg-white",children:p.map((e,t)=>(0,j.jsx)("div",{className:(0,F.default)("cursor-pointer whitespace-nowrap px-4 py-2 text-right hover:bg-gray-100",{"mhg-alpha-btn-outline-neutral-light-and-blue mhg-alpha-btn-selected":!!l&&+l>=d&&l-d===t+1}),onClick:()=>r(d+t),children:e},`${e}-hidden`))}):null]})})]})},oo=({tabs:e})=>{let{activeTab:t,onSetNewActiveTab:n,version:a}=oi(e),r=(0,H.useCallback)(e=>{n((e??1)-1)},[n]),l=t?.toString()??"";return a.mobile?(0,j.jsx)(Y.Select,{className:"rounded-radius/button border border-borders/default bg-fill/primary-light",value:l,menuProps:{className:"p-0"},onChange:r,children:e.map((e,t)=>(0,j.jsx)(Y.Option,{className:"rounded-none bg-black/70 text-text-secondary",value:`${t+1}`,children:e},e))}):null},oc=({tabs:e})=>{let{activeTabInfo:t}=oi(e);return t&&e?.length?(0,j.jsxs)("div",{className:"flex flex-col gap-6 p-4 pl-0 md:px-0",children:[t?(0,j.jsx)("h3",{className:"mhg-alpha-typography-display-1",children:t}):null,(0,j.jsx)(os,{tabs:e}),(0,j.jsx)(oo,{tabs:e})]}):null},od=e=>(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(ei.PortalTo,{rootId:"comparison-table-tabs",children:(0,j.jsx)(oc,{tabs:e.tabs})}),e.children]});e.i(73430);var ou=e.i(478082);let op=function(e){let t=(0,H.useId)();return(0,j.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,j.jsx)("mask",{id:t,width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,j.jsx)("path",{fill:"#D9D9D9",d:"M0 0h24v24H0z"})}),(0,j.jsx)("g",{mask:`url(#${t})`,children:(0,j.jsx)("path",{fill:"currentColor",d:"M12.047 19c-2.03 0-3.758-.728-5.183-2.185-1.426-1.457-2.138-3.228-2.138-5.315v-.756l-1.737 1.79L2 11.516l3.43-3.536 3.43 3.536-.99 1.02-1.736-1.79v.755c0 1.681.573 3.11 1.721 4.285 1.149 1.176 2.546 1.763 4.192 1.763.389 0 .777-.043 1.165-.13a5.46 5.46 0 0 0 1.136-.394l1.056 1.088a7.16 7.16 0 0 1-1.636.664 6.676 6.676 0 0 1-1.721.224Zm6.523-3.979-3.43-3.536.99-1.02 1.736 1.79V11.5c0-1.681-.573-3.11-1.721-4.285-1.149-1.176-2.546-1.763-4.192-1.763-.389 0-.777.043-1.165.13a5.461 5.461 0 0 0-1.136.394L8.596 4.888a7.164 7.164 0 0 1 1.636-.664A6.676 6.676 0 0 1 11.953 4c2.03
20 3.758.728 5.183 2.185 1.426 1.457 2.138 3.228 2.138 5.315v.756l1.737-1.79.989 1.019-3.43 3.536Z"})})]})},om=({approvalOddsData:e,onRefresh:t})=>{let n=(0,U.useClientContext)(),a=(0,en.getClientTranslations)(Q.TRANSLATIONS,n);if(!(e?.userState&&["expired","fresh"].includes(e?.userState)&&e.lastUpdated&&Object.keys(e.odds).length>0))return null;let r=(0,G.tr)("approval_odds_date_format",a),l=(0,ou.formatData)(e.lastUpdated,r,n.lang),i=e?.userState==="fresh",s=(0,G.tr)("approval_odds_last_updated",a,{date:l});return(0,j.jsxs)("div",{className:"flex flex-row items-center justify-between gap-2 rounded-b-radius/table bg-colors/neutral-gray-200 px-1.5 py-3 md:px-4 md:py-2",children:[(0,j.jsx)("div",{className:"font-font-weight/table-cell-normal text-text/secondary-lighter text-font-size/table-cell leading-line-height/table-cell",children:s}),!i&&(0,j.jsxs)("button",{onClick:()=>{t?.()},type:"button",className:"flex flex-row items-center gap-1 text-text/primary mhg-alpha-typography-bullet-2",children:[(0,j.jsx)(op,{width:"18",height:"18"}),(0,G.tr)("approval_odds_refresh",a)]})]})};function oh(e){let{products:t,loanSearchParams:n,...a}=e,{pageData:r,isPreview:l,publicCmsConfig:i}=(0,er.usePageDataContext)(),s=H.default.useRef(null),{brand:o,langPrefix:c}=(0,U.useClientContext)(),{tabs:d,tableConfig:{min_loan_amount:u,max_loan_amount:p,min_loan_tenure:m,max_loan_tenure:h},vertical:f,slug:g,blockIndex:x}=a,b=n,y=JSON.parse(JSON.stringify(t)),_=(0,X.useSafeSearchParams)(),v=_?.get(`${ee.cmsQueryParamsPrefix}activeTab`)??1,C=`ComparisonTable_${x}`;"PERSONAL_LOANS"!==e.vertical||b||(b=ed(o,n,{amount:e.tableConfig?.default_loan_amount?e.tableConfig?.default_loan_amount.toString():void 0,tenure:e.tableConfig?.default_loan_tenure?e.tableConfig?.default_loan_tenure.toString():void 0}));let[T,E]=(0,H.useState)([]),{_calculateError:N,serverProducts:A}=(0,H.useMemo)(()=>{if("PERSONAL_LOANS"===e.vertical&&r.calculatedPersonalLoans){var t;let e=(t=r.calculatedPersonalLoans,!t.hasError&&t.data?{calculateError:!1,products:y.map((e,n)=>{let a={...e},r=t.data[n];return a.attributes=ec(a.attributes,r),a})}:{calculateError:!0,products:y});return{_calculateError:e.calculateError,serverProducts:e.products}}return{_calculateError:!1,serverProducts:y}},[t,r.calculatedPersonalLoans]),[k,w]=(0,H.useState)(A),{data:S,sendConsent:I}=eE(A,of(a.tableConfig),c),{onRetrieveApprovalOdds:D,oddsConsentModal:L}=s0({approvalOddsData:S,sendConsent:I,langPrefix:c,chcBaseUrl:i.chcBaseUrl}),[P,M]=(0,H.useState)(N),O=e=>{let t=e;if(d?.length&&(t=e.filter(e=>e.tab===+v)),w(t),d?.length&&t?.length){let e=t.find(e=>e.attributes?.length);if(!e)return;E(e.attributes_from_meta?.map(e=>e.attribute).filter(e=>!!e)??[])}},R=async({tenure:e,amount:t})=>{let n=k.map(e=>e.title);try{let a=await s1.feApiFrontClient.calculatePersonalLoans({productIds:n,tenure:+e,amount:+t,isDraft:l});if(M(!1),!a)return;let r=(A??[])?.map((e,t)=>{let n={...e},r=a[t];return n.attributes=ec(n.attributes,r),n});O(r)}catch(e){M(!0);return}};(0,H.useEffect)(()=>{O(A)},[v]);let{loanSearchParams:F}
2=et(b),{openModal:z}=(0,oa.default)(),{modalProductUrlAlias:G,openModal:V}=(0,ot.useProductBlockAsideModal)(),$=(e,t,n)=>(0,or.sendProductAnalytics)({action:or.UserActionEnum.CLICK,componentTitle:n,componentType:or.ComponentTypeEnum.TABLE,event:"product_interaction",index:t.toString(),product:e,url:g,pushDataLayer:eu.pushDataLayer,approvalDegree:e.title?S?.odds[e.title]:void 0,approvalDegreeState:S?.userState});return(0,j.jsx)(od,{tabs:d,children:(0,j.jsxs)(es,{vertical:f,defaultParams:n,onFinishedEnterFilter:R,max_loan_amount:p,max_loan_tenure:h,min_loan_amount:u,min_loan_tenure:m,children:[(0,j.jsx)(s8.ComparisonTable,{...a,loanSearchParams:F,products:k,calculateError:P,activeAttribute:T,onRewardColumnClick:(e,t,n,a)=>{(e.preventDefault(),e.stopPropagation(),$(t,n,(0,oe.getRewardColumnComponentTitle)(a)),"PERSONAL_LOANS"===f&&(t.welcome_offers?.length||t.exclusive_offers?.length||t.bundle_exclusive_offers?.length))?z(t.uid??"",C):t.url_alias&&V(t.url_alias,s9.SingSaverRewardsSectionId)},onRowClick:(e,t)=>{if("PERSONAL_LOANS"===f&&(e.welcome_offers?.length||e.exclusive_offers?.length||e.bundle_exclusive_offers?.length)){$(e,t,"Product List/Footer_See all Details"),z(e.uid??"",C);return}e.url_alias&&($(e,t,"Product List/Footer_See all Details"),V(e.url_alias,null))},isRowSelected:e=>!!e.url_alias&&e.url_alias===G,pushDataLayer:eu.pushDataLayer,approvalOddsData:S??void 0,onApprovalOddsUnlockClick:D,onApprovalOddsClick:()=>s.current?.open(),slug:g,footer:(0,j.jsx)(om,{approvalOddsData:S,onRefresh:()=>{(0,eu.pushDataLayer)({event:"product_interaction",action:or.UserActionEnum.CLICK,componentType:or.ComponentTypeEnum.TABLE,component_title:"Product List/Approval Odds Column_Refresh Live"}),D()}})}),(0,j.jsx)(B.ApprovalOddsDrawer,{slideUpModalRef:s,lastUpdated:S?.lastUpdated??void 0,isOutdated:S?.userState!=="fresh",onClickCTA:D,pushDataLayer:eu.pushDataLayer}),L,k.length?k.filter((e,t)=>k.findIndex(t=>t.uid===e.uid)===t).map(e=>{let t=(0,ol.filterOffersByAmountAndTenure)(e.welcome_offers??[],F?.amount,F?.tenure),n=(0,ol.filterOffersByAmountAndTenure)([...e.exclusive_offers??[],...e.bundle_exclusive_offers??[]],F?.amount,F?.tenure);return(0,j.jsx)("div",{children:(0,j.jsx)(on.default,{welcomeOffers:t,exclusiveOffers:n,loanSearchParams:F??{},product:e,keyFromComponent:C,vertical:f,pushDataLayer:eu.pushDataLayer,ctaLinkOverride:e.override_cta_link,carInsuranceCtaComponent:null,priceLine:null,approvalOdds:e.title?S?.odds[e.title]:void 0,approvalOddsState:S?.userState})},e.uid)}):null]})})}let of=e=>(e.baseColumnOrder?.some(e=>e.column?.keyColumn==="APPROVAL_ODDS")||e.personal_loan_order?.item?.some(e=>"APPROVAL_ODDS"===e.column))??!1;e.s(["ComparisonTableWrapper",()=>oh],69712),e.i(782316);var og=e.i(444101);e.i(397031);var ox=e.i(271159),ob=e.i(246215),oy=e.i(538194),o_=e.i(316832),ov=e.i(625408);let oC=e=>(0,or.sendProductAnalytics)({...e,pushDataLayer:eu.pushDataLayer});e.s(["sendProductAnalytics",0,oC],168247);var oT=e.i(278467);e.i(69618);var oE=e.i(440481),oN=e.i(336312),oA=e.i(501701),ok=e.i(715541),ow=e.i(215233);e.i(433793);var oS=e.i(334850);let oI=e=>{let{products:t,tableConfig:{attributes:n,titleReq:a,visible_mobile:r}}=e,l=(0,U.useClientContext)(),{brand:i,lang:s}=l,o=(0,ov.useRedirect)(),c=(0,en.getClientTranslations)(Q.TRANSLATIONS,l),d=(0,H.useMemo)(()=>n?.reduce((e,t)=>t?.attribute?.name&&t?.label?{...e,[t.attribute.name]:t.label}:e,{})??{},[n]),u=(0,H.useMemo)(()=>n?.reduce((e,t)=>t?.attribute?.name&&t?.additional_information?{...e,[t.attribute.name]:t.additional_information}:e,{})??{},[n]),[p,m]=(0,H.useState)(-1),h=(0,H.useRef)(null),[f,g]=(0,H.useState)(!1),x=(0,H.useMemo)(()=>h.current,[h]);(0,H.useEffect)(()=>{x&&g(x.scrollLeft+x.clientWidth>=x.scrollWidth)},[x]);let b=e=>{m(t=>t===e?-1:e)},y=()=>{m(-1)},_=(0,H.useMemo)(()=>[c.products,...Object.values(d),c.offers_rewards,c.apply],[c,d]),v=(0,H.useMemo)(()=>_.length,[_]),C=e=>{switch(e?.__typename){case"ComponentAttributesAttrRichTextEditor":case"ComponentAttributesAttrNumberRange":case"ComponentAttributesAttrNumber":case"ComponentAttributesAttrBoolean":case"ComponentAttributesAttrPlainText":case"ComponentAttributesAttrKeyValue":case"ComponentAttributesAttrJson":return e.name?.name??""}return e?.__typename??""},T=(e,t)=>
2{if(!e)return c.n_a;let n=e.find(e=>C(e)===t);return n?(0,o_.formatAttributeItemValue)(n)??c.n_a:c.n_a},E=(e,t)=>{let n=e.find(e=>C(e)===t);if(n)switch(n.__typename){case"ComponentAttributesAttrNumberRange":case"ComponentAttributesAttrNumber":return n.additional_information??null}return null},N=e=>{e&&o(e)};return(0,j.jsx)(oy.TheWrapper,{type:"full",title:a,extraClass:r?"":"hidden md:block",children:(0,j.jsx)("div",{className:(0,F.default)({"mr-[-1.5rem]":f,"mr-0":f},"mb-6","mt-6","card-radius","select-none","lg:mr-0","relative","product-comparison-table"),children:(0,j.jsxs)("div",{style:{"--header-length":v},ref:h,className:"table-container",children:[(0,j.jsxs)("table",{className:"hidden w-full bg-white lg:table",children:[(0,j.jsx)("thead",{className:"contents text-left bg-gray-100",children:(0,j.jsx)("tr",{className:"contents",children:_.map((e,t)=>(0,j.jsxs)("th",{className:`flex items-center p-4 bg-gray-100 alpha-overline xl:p-6 ${t>=_.length-2?"hidden lg:flex":""} ${t===_.length-2?"offers-rewards":""}`,children:[e,u&&u[e]&&(0,j.jsx)($.default,{content:u[e],holderClasses:["ml-1"]})]},e))})}),(0,j.jsxs)("tbody",{className:"contents",children:[!t?.filter(Boolean).length&&(0,j.jsx)("tr",{className:"contents",children:(0,j.jsx)("td",{children:c.n_a})}),t?.filter(Boolean).map((e,t)=>(0,j.jsxs)(H.default.Fragment,{children:[(0,j.jsxs)("tr",{className:"table-line contents lg:hover:bg-gray-50",children:[(0,j.jsx)("td",{className:"flex items-center border-t border-gray-300 p-4 bg-white xl:p-6",children:(0,j.jsxs)("div",{className:"flex flex-col sm:gap-4",children:[(0,j.jsx)("div",{className:"flex w-28 items-center justify-center",children:(0,j.jsx)(oE.FeLink,{href:"#",onClick:()=>N(e?.url_alias),children:(0,j.jsx)(ox.CmsImage,{unoptimized:!0,src:e?.product_image??"",alt:e?.product_name??"Product",height:75,width:112,className:"max-h-[75px] w-auto cursor-pointer object-contain"})})}),(0,j.jsx)(oE.FeLink,{href:e?.url_alias?e.url_alias:"#",className:"xs:max-w-50 !text-gray-900 alpha-body-2 hover:underline hover:!text-gray-800 sm:max-w-75 lg:max-w-full",children:e?.product_name})]})}),Object.keys(d).map(t=>(0,j.jsx)("td",{className:"flex items-center border-t border-gray-300 p-4 bg-white xl:p-6",children:(0,j.jsxs)("div",{className:"col flex items-center gap-1",children:[(0,j.jsx)("p",{className:"whitespace-nowrap alpha-body-1 lg:whitespace-normal",children:T(e?.attributes??[],t)}),E(e?.attributes??[],t)&&(0,j.jsx)($.default,{content:E(e?.attributes??[],t)??""})]})},t)),(0,j.jsx)("td",{className:"offers-rewards hidden items-center border-t border-gray-300 p-4 bg-white lg:inline-flex xl:p-6",children:(e?.exclusive_offers?.length??0)>0||(e?.welcome_offers?.length??0)>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("p",{onClick:()=>b(t),className:"hidden cursor-pointer text-nowrap !font-semibold underline !text-[--buttons-primary] alpha-body-2 lg:inline-block",children:[c.eligible_rewards," (",(e?.exclusive_offers?.length??0)+(e?.welcome_offers?.length??0),")"]}),(0,j.jsx)("div",{className:"inline-block alpha-body-2 lg:hidden",children:(0,j.jsx)(Z.default,{onClick:()=>b(t),title:`${c.eligible_rewards} (${(e?.exclusive_offers?.length??0)+(e?.welcome_offers?.length??0)})`,color:"text-[--buttons-primary]",children:`${c.eligible_rewards} (${(e?.exclusive_offers?.length??0)+(e?.welcome_offers?.length??0)})`})})]}):(0,j.jsx)("div",{children:c.n_a})}),(0,j.jsx)("td",{className:"hidden items-center border-t border-gray-300 p-4 bg-white lg:flex xl:p-6",children:e?.call_to_action?.links?.[0]?.redirected_url&&(0,j.jsxs)("div",{className:"flex flex-auto flex-col gap-2",children:[(0,j.jsx)(og.ApplyCtaLink,{product:e,target:"_blank",rel:"noopener noreferrer",children:(0,j.jsx)(Z.default,{title:e?.call_to_action?.links?.[0]?.label,endIcon:(0,j.jsx)(oA.default,{className:"size-5"}),className:"w-full sm:w-54",styleType:"cta",onClick:n=>{n.stopPropagation(),oS.sessionAttributionTracker.recordApplyClick(),oC({action:or.UserActionEnum.CLICK,componentTitle:`${a}_${e?.call_to_action?.links?.[0]?.label}`,componentType:or.ComponentTypeEnum.TABLE,event:"product_click_apply",index:t.toString(),product:e})},children:e?.call_to_action?.links?.[0]?.label})}),(0,j.jsx)("p",{className:"text-center font-medium text-gray-700 alpha-body-2 leading-none",children:(0,oT.generateButtonSubText)({btnLabel:e?.call_to_action?.links?.[0]?.label,appName:i,lang:s,providerName:e?.provider?.provider_name??""})})]})}),(0,j.jsx)("td",{colSpan:v,className:"flex p-4 bg-white lg:hidden xl:p-6",children:(0,j.jsxs)("div",{className:"flex flex-row-reverse gap-2",children:[((e?.exclusive_offers?.length??0)>0||(e?.welcome_offers?.length??0)>0)&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("p",{onClick:()=>b(t),className:"hidden cursor-pointer text-nowrap !font-semibold underline !text-[--buttons-primary] alpha-body-2 lg:inline-block",children:[c.eligible_rewards," (",(e?.exclusive_offers?.length??0)+(e?.welcome_offers?.length??0),")"]}),(0,j.jsx)("div",{className:"inline-block alpha-body-2 lg:hidden",children:(0,j.jsx)(Z.default,{onClick:()=>b(t),title:`${c.eligible_rewards} (${(e?.exclusive_offers?.length??0)+(e?.welcome_offers?.length??0)})`,className:"bg-white",endIcon:(0,j.jsx)(oA.default,{className:"size-5"}),children:`${c.eligible_rewards} (${(e?.exclusive_offers?.length??0)+(e?.welcome_offers?.length??0)})`})})]}),e?.call_to_action?.links?.[0]?.redirected_url&&(0,j.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,j.jsx)(og.ApplyCtaLink,{product:e,target:"_blank",rel:"noopener noreferrer",children:(0,j.jsx)(Z.default,{title:e?.call_to_action?.links?.[0]?.label,endIcon:(0,j.jsx)(oA.default,{className:"size-5"}),className:"w-39 sm:w-41",styleType:"cta",onClick:n=>{n.stopPropagation(),oS.sessionAttributionTracker.recordApplyClick(),oC({action:or.UserActionEnum.CLICK,componentTitle:`${a}_${e?.call_to_action?.links?.[0]?.label}`,componentType:or.ComponentTypeEnum.TABLE,event:"product_click_apply",index:t.toString(),product:e})},children:e?.call_to_action?.links?.[0]?.label})}),(0,j.jsx)("p",{className:"xs:max-w-[155px] text-center font-medium text-gray-700 alpha-body-2 leading-none sm:max-w-auto",children:(0,oT.generateButtonSubText)({btnLabel:e?.call_to_action?.links?.[0]?.label,appName:i,lang:s,providerName:e?.provider?.provider_name??""})})]})]})})]}),((e?.exclusive_offers?.length??0)>0||(e?.welcome_offers?.length??0)>0)&&p===t&&(0,j.jsx)("tr",{className:"contents",children:(0,j.jsx)("td",{colSpan:v,className:"relative flex p-4 bg-[--highlights-blue-light] xl:p-6",children:(0,j.jsxs)("div",{className:"flex w-full flex-col",children:[(0,j.jsxs)("div",{className:"flex cursor-pointer justify-between",onClick:()=>y(),children:[(0,j.jsxs)("p",{className:"mb-6 text-[--buttons-primary] alpha-subheading-2",children:[c.eligible_rewards," (",(e?.exclusive_offers?.length??0)+(e?.welcome_offers?.length??0),")"]}),p===t?(0,j.jsx)(ok.default,{className:"size-[--shapes-icon-size-lg]"}):(0,j.jsx)(oN.default,{className:"size-[--shapes-icon-size-lg]"})]}),(0,j.jsxs)("div",{className:"flex flex-col gap-4 alpha-body-2",children:[e?.exclusive_offers&&e?.exclusive_offers?.filter(Boolean)?.map(e=>(0,j.jsx)(ob.ProductCardOffer,{...e},e.uid)),e?.welcome_offers&&e?.welcome_offers?.filter(Boolean)?.map(e=>(0,j.jsx)(ob.ProductCardOffer,{...e},e.uid))]})]})})})]},e?.uid))]})]}),(0,j.jsxs)("div",{className:"mobile-table block border-b shadow lg:hidden",children:[!t?.filter(Boolean).length&&(0,j.jsx)("div",{children:c.n_a}),t?.filter(Boolean).map((e,n)=>(0,j.jsxs)("div",{className:`mobile-card ${n!==Object.keys(t).length-1?"border-b":""}`,children:[(0,j.jsx)("div",{className:"mobile-card-header",children:(0,j.jsxs)("div",{className:"flex items-center gap-2",children:[(0,j.jsx)("div",{className:"shrink-0",children:(0,j.jsx)(oE.FeLink,{href:"#",onClick:()=>N(e?.url_alias),children:(0,j.jsx)(ox.CmsImage,{unoptimized:!0,src:e?.product_image??"",alt:e?.product_name??"Product",height:80,width:100,className:"h-full max-h-20 w-25 cursor-pointer object-contain"})})}),(0,j.jsx)("div",{className:"grow",children:(0,j.jsx)(oE.FeLink,{href:e?.url_alias?e.url_alias:"#",className:"product-title text-gray-900 text-lg hover:underline hover:text-gray-800",children:e?.product_name})})]})}),(0,j.jsx)("div",{className:"mobile-card-buttons",children:(0,j.jsxs)("div",{className:"xs-sm:justify-start flex justify-between gap-2",children:[(0,j.jsx)("span",{className:"flex-1",children:(0,j.jsx)(Z.default,{title:"Read More",className:"w-full max-w-full",variant:"outline",styleType:"neutral",onClick:()=>N(e?.url_alias),children:"Read More"})}),e?.call_to_action?.links?.[0]?.redirected_url&&(0,j.jsx)(og.ApplyCtaLink,{product:e,className:"flex-1",target:"_blank",rel:"noopener noreferrer",children:(0,j.jsx)(Z.default,{title:e?.call_to_action?.links?.[0]?.label,className:"w-full max-w-full",styleType:"cta",endIcon:(0,j.jsx)(oA.default,{className:"size-5"}),onClick:t=>{t.stopPropagation(),oS.sessionAttributionTracker.recordApplyClick(),oC({action:or.UserActionEnum.CLICK,componentTitle:`${a}_${e?.call_to_action?.links?.[0]?.label}`,componentType:or.ComponentTypeEnum.TABLE,event:"product_click_apply",index:n.toString(),product:e})},children:e?.call_to_action?.links?.[0]?.label})})]})}),(0,j.jsx)("div",{className:"mobile-card-attributes",children:(0,j.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(80px,1fr))] gap-x-4",children:Object.keys(d).filter(e=>"MINIMUM_ANNUAL_INCOME"!==e).map(t=>{var n;let a;return(0,j.jsxs)("div",{className:"short-attribute flex flex-col lg:col-span-1",children:[(0,j.jsxs)("div",{className:"flex items-center justify-start",children:[(0,j.jsx)("span",{className:"attribute-title truncate whitespace-nowrap text-sm",children:d[t]}),((e,t,n,a=15)=>{let r=E(t,n);return((e,t=15)=>e.length>t)(e,a)||r})(d[t],e?.attributes??[],t)&&(0,j.jsx)($.default,{content:(n=d[t],(a=E(e?.attributes??[],t))?`${n}<br><br>${a}
2`:n)})]}),(0,j.jsx)("div",{className:"flex items-center gap-1",children:(0,j.jsx)("span",{className:"font-semibold lg:truncate",children:((e,t)=>{var n=T(e,t);if(!n)return n;let a=n;return[{pattern:/(\d+(\.\d+)?)\s*-\s*(\d+(\.\d+)?)\s+mile(?:s)?\s+per\s+dollar/gi,replacement:"$1-$3 miles/$"},{pattern:/(\d+(\.\d+)?)\s*-\s*(\d+(\.\d+)?)\s+point(?:s)?\s+per\s+dollar/gi,replacement:"$1-$3 points/$"},{pattern:/(\d+(\.\d+)?)\s*-\s*(\d+(\.\d+)?)%\s+cashback/gi,replacement:"$1-$3% cashback"},{pattern:/(\d+)\s*-\s*(\d+)\s+point(?:s)?\s+per\s+mile/gi,replacement:"$1-$2 points/mile"},{pattern:/(\d+)\s*-\s*(\d+)\s+visit(?:s)?\s+per\s+year/gi,replacement:"$1-$2 visits/yr"},{pattern:/(\d+(\.\d+)?)\s+point(?:s)?\s+per\s+dollar/gi,replacement:"$1 point/$"},{pattern:/(\d+(\.\d+)?)\s+mile(?:s)?\s+per\s+dollar/gi,replacement:"$1 miles/$"},{pattern:/(\d+(\.\d+)?)\s+point(?:s)?\s+per\s+mile/gi,replacement:"$1 point/mile"},{pattern:/(\d+(\.\d+)?)\s+visit(?:s)?\s+per\s+year/gi,replacement:"$1 visits/yr"}].forEach(({pattern:e,replacement:t})=>{a=a.replace(e,t)}),a})(e?.attributes??[],t)})})]},t)})})}),((e?.exclusive_offers?.length??0)>0||(e?.welcome_offers?.length??0)>0)&&(0,j.jsx)("div",{className:"mobile-card-rewards mb-4",children:(0,j.jsxs)("div",{className:"flex items-center justify-between",children:[(0,j.jsxs)("span",{onClick:e=>{e.preventDefault(),b(n)},className:"cursor-pointer font-semibold underline decoration-1 text-[--buttons-primary]",children:[c.eligible_rewards," (",(e?.exclusive_offers?.length??0)+(e?.welcome_offers?.length??0),")"]}),(0,j.jsx)("i",{onClick:()=>p===n?y():b(n),className:`cursor-pointer ${p===n?"mr-[-1.5px]":"mr-[-8.5px]"}`,children:p===n?(0,j.jsx)(ow.default,{className:"size-[--shapes-icon-size-lg]"}):(0,j.jsx)(ok.default,{className:"size-[--shapes-icon-size-lg] rotate-90"})})]})}),((e?.exclusive_offers?.length??0)>0||(e?.welcome_offers?.length??0)>0)&&p===n&&(0,j.jsx)("div",{className:"expanded-card-rewards -mx-4 p-4 bg-[--highlights-blue-light] xl:p-6",children:(0,j.jsx)("div",{className:"flex w-full flex-col",children:(0,j.jsxs)("div",{className:"flex flex-col gap-4 alpha-body-2",children:[e?.exclusive_offers&&e?.exclusive_offers?.filter(Boolean)?.map(e=>(0,j.jsx)(ob.ProductCardOffer,{...e},e.uid)),e?.welcome_offers&&e?.welcome_offers?.filter(Boolean)?.map(e=>(0,j.jsx)(ob.ProductCardOffer,{...e},e.uid))]})})})]},e?.uid))]})]})})})};e.s(["ProductComparisonTable",0,oI],871231),e.s(["default",0,({tableConfig:e,metadata:t,vertical:n,slug:a,brand:r,blockIndex:l})=>{let{pageType:i}=(0,er.usePageDataContext)(),s=t?.product_card?.flatMap(e=>e.productBlock?.product?[{...e.productBlock.product,tab:e.productBlock.tab,hot_reward:e.productBlock.hot_reward,override_cta_label:e.productBlock.override_cta_label_short,override_cta_link:e.productBlock.override_cta_link,attributes_from_meta:e.productBlock?.attributes_list,e2eToogleButton:e.productBlock.travelInsurance?.e2eToggleButton}]:[])??[],o=(0,F.default)({"hidden md:block":!e.visible_mobile}),c=ed(r,void 0,{amount:e.default_loan_amount?.toString(),tenure:e.default_loan_tenure?.toString()});switch(n){case"CREDIT_CARD":case"PERSONAL_LOANS":case"INVESTMENTS":case"BANKING":case"PERSONAL_FINANCE":case"TELCO":case"CAR_INSURANCE":case"TRAVEL_INSURANCE":return(0,j.jsx)("div",{className:o,children:(0,j.jsx)(oh,{tableConfig:e,vertical:n,products:s,tabs:(t?.tabs??[]).map(e=>e.label??""),slug:a,loanSearchParams:c,blockIndex:l,pageType:i,sortByApprovalOdds:t?.sortByApprovalOdds})});default:return(0,j.jsx)("div",{className:o,children:(0,j.jsx)(oI,{tableConfig:{titleReq:e.titleReq,visible_mobile:e.visible_mobile,attributes:e.attributes},products:s})})}}],272702),e.s(["CounterModule",0,({items:e})=>(0,j.jsx)("div",{className:"bg-gradient-to-b from-[#E0F4F8] to-[#EEE]",children:(0,j.jsx)("div",{className:"mx-auto max-w-[1536px] px-4 py-8 sm:px-6 md:px-8 md:py-10 lg:px-10 lg:py-12",children:(0,j.jsx)("div",{className:"grid grid-cols-2 gap-4 lg:grid-cols-4 lg:gap-6",children:e.map((e,t)=>(0,j.jsxs)("div",{children:[(0,j.jsx)("h3",{className:"font-bold text-fill/primary-dark text-4xl leading-[44px] lg:text-[56px] lg:leading-[56px]",children:e.title}),(0,j.jsx)("p",{className:"font-medium text-text/secondary text-sm leading-5 sm:text-base sm:leading-[22px] md:text-lg md:leading-6",children:e.description})]},t))})})})],557581),e.i(713222);var oD=e.i(178680);
2let oL={[oD.EnumCtaSectionBlockBackgroundTheme.PrimaryLight]:"bg-fill/primary-light",[oD.EnumCtaSectionBlockBackgroundTheme.SecondaryLight]:"bg-fill/secondary-light",[oD.EnumCtaSectionBlockBackgroundTheme.Alternative_1]:"bg-fill/alternative-1",[oD.EnumCtaSectionBlockBackgroundTheme.Alternative_2]:"bg-fill/alternative-2",[oD.EnumCtaSectionBlockBackgroundTheme.Alternative_3]:"bg-fill/alternative-3"};e.s(["backgroundClassMap",0,oL],917691);let oj={[oD.EnumCtaButtonStyleType.Primary]:"primary",[oD.EnumCtaButtonStyleType.Secondary]:"secondary",[oD.EnumCtaButtonStyleType.Neutral]:"neutral",[oD.EnumCtaButtonStyleType.NeutralLightAndBlue]:"neutral-light-and-blue",[oD.EnumCtaButtonStyleType.Cta]:"cta"},oP={[oD.EnumCtaButtonVariant.Filled]:"filled",[oD.EnumCtaButtonVariant.Outline]:"outline",[oD.EnumCtaButtonVariant.Text]:"text"};e.s(["CallToActionButton",0,e=>{let{cta:t,className:n,onClick:a,iconRight:r,index:l=0}=e,i=t.variant?t.variant?oP[t.variant]:0===l?"filled":"outline":"filled",s=t.styleType?t.styleType?oj[t.styleType]:0===l?"cta":"neutral":"cta",o=t.rel?t.rel?t.rel:t.target?.toLowerCase()==="_blank"?"noopener noreferrer":void 0:void 0,c=(0,F.default)("w-full",n);return t.link?(0,j.jsxs)(Z.default,{as:"a",href:t.link,target:t.target,rel:o,variant:i,styleType:s,className:c,onClick:a,children:[t.label,r]}):(0,j.jsxs)(Z.default,{variant:i,styleType:s,className:c,onClick:a,children:[t.label,r]})}],142202)},846086,e=>{"use strict";var t=e.i(843476),n=e.i(343794);e.s(["PageContentContainer",0,({children:e,className:a,...r})=>(0,t.jsx)("div",{className:(0,n.default)("w-full px-spacing/padding/section-x",a),...r,children:(0,t.jsx)("div",{className:(0,n.default)("max-w-[--breakpoints-content-narrow-3-lg] lg:mx-auto"),children:e})})])},561160,880723,680123,809656,914271,440711,854056,e=>{"use strict";let t,n,a,r,l;var i,s,o=e.i(843476),c=e.i(343794),d=e.i(917691);e.i(713222);var u=e.i(178680),p=e.i(142202),m=e.i(501701),h=e.i(846086);e.s(["CtaSectionBlock",0,({backgroundTheme:e=u.EnumCtaSectionBlockBackgroundTheme.PrimaryLight,textAlign:t=u.EnumCtaSectionBlockTextAlign.Left,ctaPrimary:n,ctaSecondary:a,headline:r,subtext:l})=>{let i=t===u.EnumCtaSectionBlockTextAlign.Center,s=e===u.EnumCtaSectionBlockBackgroundTheme.Alternative_3,f=[n,a].filter(e=>!!(e?.label&&e?.link&&e?.visible!==!1));return r||l||f.length?(0,o.jsx)("section",{className:(0,c.default)("w-full",d.backgroundClassMap[e],s?"text-text/on-dark":"text-text/primary"),children:(0,o.jsx)(h.PageContentContainer,{className:"py-spacing/padding/section-y",children:(0,o.jsxs)("div",{className:(0,c.default)("flex w-full max-w-general/narrow-content-max-width-3 flex-col gap-spacing/gap/y",{"items-center text-center":i,"items-start text-left":!i,"mx-auto":i}),children:[(r||l)&&(0,o.jsxs)("div",{className:"flex w-full flex-col gap-spacing/gap/soft-8px lg:max-w-general/narrow-content-max-width-1",children:[r&&(0,o.jsx)("h2",{className:(0,c.default)("mhg-alpha-typography-display-1",s?"text-text/on-dark":"text-text/primary"),children:r}),l&&(0,o.jsx)("p",{className:(0,c.default)("mhg-alpha-typography-body-1-relaxed",s?"text-text/on-dark":"text-text/secondary"),children:l})]}),f.length>0&&(0,o.jsx)("div",{className:(0,c.default)("flex w-full flex-col gap-spacing/gap/y md:flex-row md:flex-wrap md:gap-spacing/gap/x",{"md:justify-center md:text-center":i,"md:items-start":!i}),children:f.map((e,t)=>(0,o.jsx)(p.CallToActionButton,{cta:e,className:"w-full md:w-auto",iconRight:(0,o.jsx)(m.default,{className:"ml-1 size-shapes/icon-size-lg"})},e.id??`${e.label}-${t}`))})]})})}):null}],561160);var f=e.i(271645);e.i(627373),e.s([],880723);var g=e.i(396522);let x=function({className:e}){return(0,o.jsx)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,o.jsx)("path",{d:"M7.15716 15.3028L10 13.1114L12.8428 15.3028L11.7768 11.69L14.4419 9.79478H11.1253L10 6.12278L8.87471 9.79478H5.55806L8.22322 11.69L7.15716 15.3028ZM3.79046 20.0681L6.12307 12.4099L0 8.018H7.5901L10 0L12.4099 8.018H20L13.8769 12.4099L16.2095 20.0681L10 15.3437L3.79046 20.0681Z",fill:"currentColor"})})},b=function({className:e}){return(0,o.jsx)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,o.jsx)("path",{d:"M3.79046 20.0681L6.12307 12.4099L0 8.018H7.5901L10 0L12.4099 8.018H20L13.8769 12.4099L16.2095 20.0681L10 15.3437L3.79046 20.0681Z",fill:"currentColor"})})},y=({rating:e})=>(0,o.jsx)("div",{className:"flex items-center","aria-hidden":"true",children:Array.from({length:5}).map((t,n)=>{let a=void 0!==e&&n<Math.round(e);
2return(0,o.jsx)(a?b:x,{className:(0,c.default)("size-5 text-campaign/yellow-complimentary")},n)})}),_={singsaver:"SingSaver",moneyhero:"MoneyHero",money101:"Money101",moneymax:"Moneymax"},v={[u.EnumCustomerReviewsBlockBgColorVariant.PrimaryLight]:"bg-fill/primary-light",[u.EnumCustomerReviewsBlockBgColorVariant.SecondaryLight]:"bg-fill/secondary-light",[u.EnumCustomerReviewsBlockBgColorVariant.Alternative_1]:"bg-fill/alternative-1",[u.EnumCustomerReviewsBlockBgColorVariant.Alternative_2]:"bg-fill/alternative-2",[u.EnumCustomerReviewsBlockBgColorVariant.Alternative_3]:"bg-fill/alternative-3"},C={[u.EnumCustomerReviewsBlockReviewSource.GoogleReviews]:"Google"},T=e=>{if("number"==typeof e)return e<0?0:e>5?5:e};var E=e.i(295750);e.s(["CustomerReviewsBlock",0,e=>{var t,n;let{brand:a}=(0,E.useClientContext)(),r=(0,f.useMemo)(()=>e.reviewsSelection?.filter(e=>!!e&&!1!==e.visible)??[],[e.reviewsSelection]),l=e.align===u.EnumCustomerReviewsBlockAlign.Center||!e.align,i=(t=e.reviewsSource)?C[t]??"Google":C[u.EnumCustomerReviewsBlockReviewSource.GoogleReviews],s=((e,t)=>{if(t===u.EnumCustomerReviewsBlockReviewSource.GoogleReviews)switch(e){case"singsaver":return"https://www.google.com/maps/place/SingSaver/@1.2739122,103.8436426,17z/data=!3m1!5s0x31da196846e877a5:0x97e64648a963678!4m8!3m7!1s0x31da196d9bbc0325:0x277692c2612678fc!8m2!3d1.2739068!4d103.8462175!9m1!1b1!16s%2Fg%2F11bvvxkfrc?entry=ttu&g_ep=EgoyMDI1MTIwOS4wIKXMDSoASAFQAw%3D%3D";case"moneyhero":return"https://www.google.com/maps/place/MoneyHero+%7C+%E6%AF%94%E8%BC%83%E7%86%B1%E9%96%80%E4%BF%A1%E7%94%A8%E5%8D%A1%E3%80%81+%E7%A7%81%E4%BA%BA%E8%B2%B8%E6%AC%BE%EF%B9%91%E4%BF%9D%E9%9A%AA%E5%8F%8A%E5%85%B6%E4%BB%96%E9%87%91%E8%9E%8D%E7%94%A2%E5%93%81/data=!4m7!3m6!1s0x340400ffce2f559b:0xe8c7775f3218f28a!8m2!3d22.2776363!4d114.1837672!16s%2Fg%2F11bwfkys5h!19sChIJm1Uvzv8ABDQRivIYMl93x-g?authuser=0&hl=en&rclk=1";case"moneymax":return"https://www.google.com/maps/place/Moneymax/@14.561776,121.0200497,17z/data=!3m1!4b1!4m6!3m5!1s0x3397c908ce28ea27:0x70a8a38d54a78402!8m2!3d14.5617708!4d121.0226246!16s%2Fg%2F11b6rvb9lt?entry=ttu&g_ep=EgoyMDI1MTIwOS4wIKXMDSoASAFQAw%3D%3D";case"money101":return"https://www.google.com/maps/place/Money101/@23.4857501,80.4762125,4z/data=!4m6!3m5!1s0x3442abc983bcd4f1:0x2b83c66db037f4d5!8m2!3d23.4857501!4d119.49965!16s%2Fg%2F11b6fk4trr?entry=ttu&g_ep=EgoyMDI1MTIwOS4wIKXMDSoASAFQAw%3D%3D"}return"#"})(a,e.reviewsSource),d=r.map(e=>T(e.rating)).filter(e=>"number"==typeof e),p=d.length?Number((d.reduce((e,t)=>e+t,0)/d.length).toFixed(1)):void 0,m=(0,f.useMemo)(()=>{var e;return e=d.length,r.length?{"@context":"https://schema.org","@type":"Organization",name:_[a]??"SingSaver",aggregateRating:p&&e?{"@type":"AggregateRating",ratingValue:p,reviewCount:e,bestRating:5,worstRating:1}:void 0,review:r.map((e,t)=>({"@type":"Review",author:{"@type":"Person",name:e.reviewerName??"Verified Reviewer"},name:e.reviewTitle??`Customer review ${String(t+1).padStart(2,"0")}`,reviewBody:e.reviewBody,reviewRating:"number"==typeof e.rating?{"@type":"Rating",ratingValue:T(e.rating),bestRating:5,worstRating:1}:void 0,publisher:{"@type":"Organization",name:`${i} Reviews`}}))}:null},[p,a,d.length,r,i]),h=r.length>1;return(0,o.jsxs)("section",{className:(0,c.default)("px-spacing/padding/section-x py-spacing/padding/section-y",(n=e.bgColorVariant)?v[n]:"bg-fill/primary-light"),children:[(0,o.jsxs)("div",{className:"mx-auto flex w-full flex-col gap-spacing/gap/y md:w-general/narrow-content-max-width-3 md:max-w-general/narrow-content-max-width-3",children:[(0,o.jsxs)("div",{className:(0,c.default)("mx-auto flex w-full flex-col gap-spacing/gap/soft-8px",{"md:w-general/narrow-content-max-width-1 md:max-w-general/narrow-content-max-width-1":l}),children:[e.blockTitle&&(0,o.jsx)("div",{className:(0,c.default)("mhg-alpha-typography-display-1 text-text/primary",{"text-center":l,"text-left":!l}),children:e.blockTitle}),e.blockBody&&(0,o.jsx)("div",{className:(0,c.default)("mhg-alpha-typography-body-1 text-text/secondary",{"text-center":l,"text-left":!l}),children:e.blockBody})]}),r.length>0&&(0,o.jsx)("div",{className:"-mr-spacing/gap/x-sm",children:(0,o.jsx)(g.FeCarouselV2,{slidesPerView:1,slidesPerViewBreakpoints:[[Math.min(2,r.length),768],[Math.min(3,r.length),1280]],autoplay:!!h&&{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},pagination:{showOnMobile:!0,showOnDesktop:!0},slideClassName:"!h-auto !mr-0",children:r.map(e=>(0,o.jsx)("div",{className:"flex size-full flex-col pr-spacing/gap/x-sm",children:(0,o.jsxs)("article",{className:"flex h-full flex-col gap-spacing/gap/soft-12px rounded-radius
2/card border border-borders/default px-spacing/padding/x-sm py-spacing/padding/y bg-fill/card",children:[(0,o.jsx)("div",{className:"flex items-center gap-spacing/gap/soft-12px",children:(0,o.jsx)(y,{rating:T(e.rating)})}),e.reviewTitle&&(0,o.jsx)("h3",{className:"mhg-alpha-typography-subheading-2 text-text/primary",children:e.reviewTitle}),e.reviewBody&&(0,o.jsx)("div",{className:"mhg-alpha-typography-body-2-relaxed line-clamp-5 text-text/secondary",children:e.reviewBody}),(0,o.jsxs)("div",{className:"mt-auto flex items-center gap-gap/x-sm",children:[(0,o.jsx)("div",{className:"flex size-provider/asset-cell-asset-card-height shrink-0 items-center justify-center overflow-hidden rounded-full border border-borders/default bg-fill/base text-text/primary",children:e.avatarUrl?(0,o.jsx)("img",{src:e.avatarUrl,alt:e.reviewerName??"Reviewer avatar",loading:"lazy",className:"size-full object-cover"}):(0,o.jsx)("span",{className:"mhg-alpha-typography-bullet-1",children:e.reviewerName?.charAt(0)??"R"})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[e.reviewerName&&(0,o.jsx)("span",{className:"mhg-alpha-typography-bullet-2 text-text/primary",children:e.reviewerName}),(0,o.jsxs)("span",{className:"mhg-alpha-referral-history-wrapper-content-accordion-caption text-text/secondary",children:["Reviewed on"," ",(0,o.jsx)("a",{href:s,target:"_blank",className:"underline text-text/link",rel:"noreferrer",children:i})]})]})]})]})},e.id))})})]}),m&&(0,o.jsx)("script",{type:"application/ld+json",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify(m)}})]})}],680123);var N=e.i(469835),A=e.i(657688);let k={src:e.i(9339).default,width:512,height:512,blurWidth:0,blurHeight:0},w={src:e.i(615196).default,width:512,height:512,blurWidth:0,blurHeight:0},S={src:e.i(62229).default,width:1e3,height:1e3,blurWidth:0,blurHeight:0},I={moneyhero:k,singsaver:S,moneymax:w,money101:S},D={singsaver:"Singsaver logo",moneyhero:"MoneyHero logo",moneymax:"MoneyMax logo",money101:"Money101 logo"},L=({width:e=26,height:t=26,className:n})=>{let a=(0,E.useClientContext)().brand,r=I[a];return r?(0,o.jsx)(A.default,{src:r,width:e,height:t,alt:D[a],className:n}):null};e.i(843780);var j=e.i(892063),P=e.i(378058);let M=function({className:e}){return(0,o.jsx)("svg",{className:e,fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M7.39999 15.0387L6.34616 13.9849L12 8.33105L17.6538 13.9849L16.6 15.0387L12 10.4387L7.39999 15.0387Z",fill:"currentColor"})})},O=function({className:e}){return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"27",viewBox:"0 0 26 27",fill:"#04709B",className:e,children:(0,o.jsx)("path",{d:"M3.61328 13.1844C3.61328 13.1844 7.75895 17.3503 9.88926 22.6254C9.88926 22.6254 17.2 7.97018 22.3871 3.71631C22.3871 3.71631 18.2212 5.20415 9.88926 15.5987C9.88926 15.5987 6.1629 13.1844 3.61328 13.1844Z"})})};e.s(["ExpandableCard",0,({id:e,title:t,expanded_by_default:n,content:a,fancy_list:r,show_logo:l})=>{let[i,s]=(0,f.useState)(n);return(0,o.jsx)("div",{id:e,children:(0,o.jsxs)("div",{className:"max-w-4xl rounded-radius/button border border-borders/default bg-white",children:[(0,o.jsxs)("div",{className:`flex max-h-max items-center justify-between p-spacing/padding/soft-8px ${!i?"!mb-0":"border-b border-b-borders/default"}`,role:"button",tabIndex:0,onClick:()=>void((0,P.pushDataLayer)({event:"navigate",component_type:"accordion",component_title:`Header Section_${t}`,action:i?"collapse":"expand",index:""}),s(!i)),children:[(0,o.jsxs)("div",{className:"flex items-center space-x-2",children:[l&&(0,o.jsx)(L,{}),(0,o.jsx)("div",{className:"mhg-alpha-bullet-1 text-wrap",children:t})]}),(0,o.jsx)("div",{children:(0,o.jsx)(j.default,{variant:"text",color:"text-primary",className:"max-h-max !px-0","aria-label":i?"Collapse":"Expand",endIcon:(0,o.jsx)(M,{className:(0,c.default)("size-5 transition-transform text-gray-900 md:size-6",i?"rotate-0":"rotate-180")})})})]}),(0,o.jsxs)("div",{className:`p-spacing/padding/soft-8px alpha-body-2 sm:py-spacing/padding/soft-12px ${i?"block":"hidden"}`,children:[(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:a??""},className:"mhg-alpha-body-1 text-gray-800"}),r&&(0,o.jsx)("ul",{className:"mhg-alpha-body-1 flex flex-col gap-spacing/gap/soft-8px text-gray-900",children:r.map(e=>(0,o.jsxs)("li",{className:"flex items-center",children:[(0,o.jsx)("i",{className:"mr-2",children:(0,o.jsx)(O,{})}),(0,o.jsx)(N.RichText,{component:"span",children:e?.item??""})]},e?.id))})]})]})})}],809656);var R=e.i(679335),B=e.i(944625);let F={none:"",default:"px-4 sm:px-6 md:px-8 lg:px-10","padding-x-y-sm":"px-4 sm:px-6 md:px-8 lg:px-10 py-3 sm:py-3 md:py-4 lg:py-4","padding-y-sm":"py-3 sm:py-3 md:py-4 lg:py-4","padding-xy-sm":"px-3 sm:px-3 md:px-4 lg:px-4 py-3 sm:py-3 md:py-4 lg:py-4","padding-xy":"px-4 sm:px-4 md:px-6 lg:px-6 py-4 sm:py-4 md:py-6 lg:py-6","gap-xy":"px-4 sm:px-4 md:px-6 lg:px-6 py-4 sm:py-4 md:py-6 lg:py-6",sm:"px-3 sm:px-3 md:px-4 lg:px-4 py-3 sm:py-3 md:py-4 lg:py-4",xs:"px-1 sm:px-2 md:px-3 lg:px-3 py-1 sm:py-2 md:py-3 lg:py-3","padding-x-gap-y":"px-4 md:px-6 py-4 md:py-6","padding-x":"px-4 md:px-6","padding-y":"py-4 md:py-6","section-x-gap-y":"px-4 sm:px-6 md:px-8 lg:px-10 pt-4 pb-6 sm:pt-6 sm:pb-8 md:pt-7 md:pb-10 lg:pt-8 lg:pb-12","card-x":"px-4 md:px-6","card-y":"px-4 md:px-6","section-x":"px-4 sm:px-6 md:px-8 lg:px-10","section-y":"py-4 sm:py-6 md:py-7 lg:py-8","section-xy":"px-4 sm:px-6 md:px-8 lg:px-10 py-4 sm:py-6 md:py-7 lg:py-8","padding-td":"px-4 sm:px-6 py-6",section:"px-4 sm:px-6 md:px-8 lg:px-10 py-6 sm:py-8 md:py-10 lg:py-12"},H=({type:e="none",xType:t,yType:n,background:a="bg-transparent",full:r=!1,tag:l="section",children:i,className:s})=>{let d;return(0,o.jsx)(l,{className:(d=[a,t&&F[t],n&&F[n],e&&F[e],r&&"!px-0",s].filter(
2Boolean),(0,c.default)(d)),children:i})};e.s(["Container",0,H],914271);var U=e.i(443036);e.i(69618);var z=e.i(440481),G=e.i(806743);function V(){let e=[],t={addEventListener:(e,n,a,r)=>(e.addEventListener(n,a,r),t.add(()=>e.removeEventListener(n,a,r))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){var n;let a={current:!0};return n=()=>{a.current&&e[0]()},"function"==typeof queueMicrotask?queueMicrotask(n):Promise.resolve().then(n).catch(e=>setTimeout(()=>{throw e})),t.add(()=>{a.current=!1})},style(e,t,n){let a=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:a})})},group(e){let t=V();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function $(){let[e]=(0,f.useState)(V);return(0,f.useEffect)(()=>()=>e.dispose(),[e]),e}e.s(["FeedbackAndShare",0,({feedback_question:e,share_text:t,show_feedback_section:n,url:a})=>{let{lang:r}=(0,E.useClientContext)();U.CONTENT_MHG.get(r);let l=e=>{console.log(e)},i=[{name:"email",icon:(0,o.jsx)(R.EmailIcon,{}),link:a},{name:"facebook",icon:(0,o.jsx)(R.FacebookIcon,{}),link:`https://www.facebook.com/sharer/sharer.php?u=${a}`},{name:"whasapp",icon:(0,o.jsx)(B.WhatsappIcon,{color:"var(--colors-neutral-gray-800)"}),link:`https://wa.me/?text=${a}`},{name:"twitter",icon:(0,o.jsx)(R.TwitterIcon,{}),link:`https://twitter.com/share?url=${a}&text=Check%20this%20out`},{name:"linkedin",icon:(0,o.jsx)(R.LinkedinIcon,{}),link:`https://www.linkedin.com/shareArticle?mini=true&url=${a}`}];return(0,o.jsx)("div",{className:"sectionWrapper mx-auto max-w-screen-2xl gap-4 p-4 bg-transparent md:p-10",children:(0,o.jsx)("div",{className:"mx-auto max-w-[1000px]",children:(0,o.jsxs)(H,{className:`grid grid-cols-1 gap-6 md:gap-0 ${!n?"sm:grid-cols-1":"sm:grid-cols-2"}`,children:[n&&(0,o.jsxs)(H,{xType:"padding-x",yType:"padding-y",className:"flex flex-col items-center rounded-2xl shadow bg-white sm:rounded-3xl",children:[(0,o.jsx)("div",{className:"mb-4 text-gray-800 alpha-body-1",children:e}),(0,o.jsxs)("div",{className:"flex",children:[(0,o.jsx)(j.default,{onClick:()=>l("like"),variant:"text",className:"mr-2 p-4",disabled:!1,endIcon:(0,o.jsx)(G.default,{className:"text-secondary"})}),(0,o.jsx)(j.default,{onClick:()=>l("dislike"),className:"p-4",disabled:!1,variant:"text",endIcon:(0,o.jsx)(G.default,{className:"rotate-180 text-red-dark"})})]})]}),(0,o.jsxs)(H,{xType:"padding-x",yType:"padding-y",className:"flex flex-col items-center align-middle",children:[(0,o.jsx)("div",{className:"mb-4 text-center text-gray-800 alpha-body-1",children:t}),(0,o.jsx)("ul",{className:"flex items-center",children:i.map(e=>(0,o.jsx)("li",{className:"mr-6 last:mr-0",children:(0,o.jsx)(z.FeLink,{href:e.link,className:"flex w-4 cursor-pointer items-center justify-center text-gray-800",target:"_blank",rel:"noopener noreferrer",children:e.icon})},e.name))})]})]})})})}],440711);var Y=Object.defineProperty,W=(e,t,n)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?Y(e,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[a]=n,n};let q=new class{constructor(){W(this,"current",this.detect()),W(this,"handoffState","pending"),W(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},K=(e,t)=>{q.isServer?(0,f.useEffect)(e,t):(0,f.useLayoutEffect)(e,t)};function Q(e){let t=(0,f.useRef)(e);return K(()=>{t.current=e},[e]),t}let Z=function(e){let t=Q(e);return f.default.useCallback((...e)=>t.current(...e),[t])};function X(){let e,t=(e="u"<typeof document,"useSyncExternalStore"in f&&(0,f.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[n,a]=f.useState(q.isHandoffComplete);return n&&!1===q.isHandoffComplete&&a(!1),f.useEffect(()=>{!0!==n&&a(!0)},[n]),f.useEffect(()=>q.handoff(),[]),!t&&n}let J=Symbol();function ee(...e){let t=(0,f.useRef)(e);(0,f.useEffect)(()=>{t.current=e},[e]);let n=Z(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[J]))?void 0:n}var et=e.i(247167);void 0!==et.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(i=null==et.default?void 0:et.default.env)?void 0:i.NODE_ENV)==="test"&&void 0===(null==(s=null==Element?void 0:Element.prototype)?void 0:s.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(` 3`)),[]});var en=((t=en||{})[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t);let ea=(0,f.createContext)(null);ea.displayName="OpenClosedContext";var er=((n=er||{})[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n);function el(){return(0,f.useContext)(ea)}function ei({value:e,children:t}){return f.default.createElement(ea.Provider,{value:e},t)}function es(...e){return Array.from(new Set(e.flatMap(e=>
3"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}function eo(e,t,...n){if(e in t){let a=t[e];return"function"==typeof a?a(...n):a}let a=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,eo),a}var ec=((a=ec||{})[a.None=0]="None",a[a.RenderStrategy=1]="RenderStrategy",a[a.Static=2]="Static",a),ed=((r=ed||{})[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r);function eu(){let e,t,n=(e=(0,f.useRef)([]),t=(0,f.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),(...n)=>{if(!n.every(e=>null==e))return e.current=n,t});return(0,f.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:n,defaultTag:a,features:r,visible:l=!0,name:i,mergeRefs:s}){s=null!=s?s:em;let o=eh(t,e);if(l)return ep(o,n,a,i,s);let c=null!=r?r:0;if(2&c){let{static:e=!1,...t}=o;if(e)return ep(t,n,a,i,s)}if(1&c){let{unmount:e=!0,...t}=o;return eo(+!e,{0:()=>null,1:()=>ep({...t,hidden:!0,style:{display:"none"}},n,a,i,s)})}return ep(o,n,a,i,s)})({mergeRefs:n,...e}),[n])}function ep(e,t={},n,a,r){let{as:l=n,children:i,refName:s="ref",...o}=ex(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof i?i(t):i;"className"in o&&o.className&&"function"==typeof o.className&&(o.className=o.className(t)),o["aria-labelledby"]&&o["aria-labelledby"]===o.id&&(o["aria-labelledby"]=void 0);let u={};if(t){let e=!1,n=[];for(let[a,r]of Object.entries(t))"boolean"==typeof r&&(e=!0),!0===r&&n.push(a.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(u["data-headlessui-state"]=n.join(" "),n))u[`data-${e}`]=""}if(eb(l)&&(Object.keys(eg(o)).length>0||Object.keys(eg(u)).length>0))if(!(0,f.isValidElement)(d)||Array.isArray(d)&&d.length>1||eb(d.type)){if(Object.keys(eg(o)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(eg(o)).concat(Object.keys(eg(u))).map(e=>` - ${e}`).join(` 4`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` 5`)].join(` 6`))}else{var p;let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>es(t(...e),o.className):es(t,o.className),a=eh(d.props,eg(ex(o,["ref"])));for(let e in u)e in a&&delete u[e];return(0,f.cloneElement)(d,Object.assign({},a,u,c,{ref:r((p=d,f.default.version.split(".")[0]>="19"?p.props.ref:p.ref),c.ref)},n?{className:n}:{}))}return(0,f.createElement)(l,Object.assign({},ex(o,["ref"]),!eb(l)&&c,!eb(l)&&u),d)}function em(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function eh(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let a of e)for(let e in a)e.startsWith("on")&&"function"==typeof a[e]?(null!=n[e]||(n[e]=[]),n[e].push(a[e])):t[e]=a[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...a){for(let r of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...a)}}});return t}function ef(e){var t;return Object.assign((0,f.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function eg(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function ex(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function eb(e){return e===f.Fragment||e===Symbol.for("react.fragment")}function ey(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!eb(null!=(t=e.as)?t:eN)||1===f.default.Children.count(e.children)}let e_=(0,f.createContext)(null);e_.displayName="TransitionContext";var ev=((l=ev||{}).Visible="visible",l.Hidden="hidden",l);let eC=(0,f.createContext)(null);function eT(e){return"children"in e?eT(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function eE(e,t){let n,a=Q(e),r=(0,f.useRef)([]),l=(n=(0,f.useRef)(!1),K(()=>(n.current=!0,()=>{n.current=!1}),[]),n),i=$(),s=Z((e,t=ed.Hidden)=>{let n=r.current.findIndex(({el:t})=>t===e);-1!==n&&(eo(t,{[ed.Unmount](){r.current.splice(n,1)},[ed.Hidden](){r.current[n].state="hidden"}}),i.microTask(()=>{var e;!eT(r)&&l.current&&(null==(e=a.current)||e.call(a))}))}),o=Z(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,ed.Unmount)}),c=(0,f.useRef)([]),d=(0,f.useRef)(Promise.resolve()),u=(0,f.useRef)({enter:[],leave:[]}
6),p=Z((e,n,a)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{c.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(u.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?d.current=d.current.then(()=>null==t?void 0:t.wait.current).then(()=>a(n)):a(n)}),m=Z((e,t,n)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=c.current.shift())||e()}).then(()=>n(t))});return(0,f.useMemo)(()=>({children:r,register:o,unregister:s,onStart:p,onStop:m,wait:d,chains:u}),[o,s,r,p,m,u,d])}eC.displayName="NestingContext";let eN=f.Fragment,eA=ec.RenderStrategy,ek=ef(function(e,t){let{show:n,appear:a=!1,unmount:r=!0,...l}=e,i=(0,f.useRef)(null),s=ee(...ey(e)?[i,t]:null===t?[]:[t]);X();let o=el();if(void 0===n&&null!==o&&(n=(o&er.Open)===er.Open),void 0===n)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=(0,f.useState)(n?"visible":"hidden"),u=eE(()=>{n||d("hidden")}),[p,m]=(0,f.useState)(!0),h=(0,f.useRef)([n]);K(()=>{!1!==p&&h.current[h.current.length-1]!==n&&(h.current.push(n),m(!1))},[h,n]);let g=(0,f.useMemo)(()=>({show:n,appear:a,initial:p}),[n,a,p]);K(()=>{n?d("visible"):eT(u)||null===i.current||d("hidden")},[n,u]);let x={unmount:r},b=Z(()=>{var t;p&&m(!1),null==(t=e.beforeEnter)||t.call(e)}),y=Z(()=>{var t;p&&m(!1),null==(t=e.beforeLeave)||t.call(e)}),_=eu();return f.default.createElement(eC.Provider,{value:u},f.default.createElement(e_.Provider,{value:g},_({ourProps:{...x,as:f.Fragment,children:f.default.createElement(ew,{ref:s,...x,...l,beforeEnter:b,beforeLeave:y})},theirProps:{},defaultTag:f.Fragment,features:eA,visible:"visible"===c,name:"Transition"})))}),ew=ef(function(e,t){var n,a;let{transition:r=!0,beforeEnter:l,afterEnter:i,beforeLeave:s,afterLeave:o,enter:c,enterFrom:d,enterTo:u,entered:p,leave:m,leaveFrom:h,leaveTo:g,...x}=e,[b,y]=(0,f.useState)(null),_=(0,f.useRef)(null),v=ey(e),C=ee(...v?[_,t,y]:null===t?[]:[t]),T=null==(n=x.unmount)||n?ed.Unmount:ed.Hidden,{show:E,appear:N,initial:A}=function(){let e=(0,f.useContext)(e_);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[k,w]=(0,f.useState)(E?"visible":"hidden"),S=function(){let e=(0,f.useContext)(eC);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:I,unregister:D}=S;K(()=>I(_),[I,_]),K(()=>{if(T===ed.Hidden&&_.current)return E&&"visible"!==k?void w("visible"):eo(k,{hidden:()=>D(_),visible:()=>I(_)})},[k,_,I,D,E,T]);let L=X();K(()=>{if(v&&L&&"visible"===k&&null===_.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,k,L,v]);let j=A&&!N,P=N&&E&&A,M=(0,f.useRef)(!1),O=eE(()=>{M.current||(w("hidden"),D(_))},S),R=Z(e=>{M.current=!0,O.onStart(_,e?"enter":"leave",e=>{"enter"===e?null==l||l():"leave"===e&&(null==s||s())})}),B=Z(e=>{let t=e?"enter":"leave";M.current=!1,O.onStop(_,t,e=>{"enter"===e?null==i||i():"leave"===e&&(null==o||o())}),"leave"!==t||eT(O)||(w("hidden"),D(_))});(0,f.useEffect)(()=>{v&&r||(R(E),B(E))},[E,v,r]);let[,F]=function(e,t,n,a){let[r,l]=(0,f.useState)(n),{hasFlag:i,addFlag:s,removeFlag:o}=function(e=0){let[t,n]=(0,f.useState)(e),a=(0,f.useCallback)(e=>n(e),[]),r=(0,f.useCallback)(e=>n(t=>t|e),[]),l=(0,f.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:a,addFlag:r,hasFlag:l,removeFlag:(0,f.useCallback)(e=>n(t=>t&~e),[]),toggleFlag:(0,f.useCallback)(e=>n(t=>t^e),[])}}(e&&r?3:0),c=(0,f.useRef)(!1),d=(0,f.useRef)(!1);return K(()=>{var r;if(e){if(n&&l(!0),!t){n&&s(3);return}return null==(r=null==a?void 0:a.start)||r.call(a,n),function(e,{prepare:t,run:n,done:a,inFlight:r}){let l=V();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return n();let a=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=a}(e,{prepare:t,inFlight:r}),l.nextFrame(()=>{n(),l.requestAnimationFrame(()=>{l.add(function(e,t){var n,a;let r=V();if(!e)return r.dispose;let l=!1;r.add(()=>{l=!0});let i=null!=(a=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?a:[];return 0===i.length?t():Promise.allSettled(i.map(e=>e.finished)).then(()=>{l||t()}),r.dispose}(e,a))})}),l.dispose}(t,{inFlight:c,prepare(){d.current?d.current=!1:d.current=c.current,c.current=!0,d.current||(n?(s(3),o(4)):(s(4),o(2)))},run(){d.current?n?(o(3),s(4)):(o(4),s(3)):n?o(1):s(1)},done(){var e,r,i,s;d.current&&(null!=(s=null==(i=(r=t).getAnimations)?void 0:i.call(r))?s:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(c.current=!1,o(7),n||l(!1),null==(e=null==a?void 0:a.end)||e.call(a,n))}})}},[e,n,t,$()]),e?[r,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}
6]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}(!(!r||!v||!L||j),b,E,{start:R,end:B}),H=eg({ref:C,className:(null==(a=es(x.className,P&&c,P&&d,F.enter&&c,F.enter&&F.closed&&d,F.enter&&!F.closed&&u,F.leave&&m,F.leave&&!F.closed&&h,F.leave&&F.closed&&g,!F.transition&&E&&p))?void 0:a.trim())||void 0,...function(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}(F)}),U=0;"visible"===k&&(U|=er.Open),"hidden"===k&&(U|=er.Closed),E&&"hidden"===k&&(U|=er.Opening),E||"visible"!==k||(U|=er.Closing);let z=eu();return f.default.createElement(eC.Provider,{value:O},f.default.createElement(ei,{value:U},z({ourProps:H,theirProps:x,defaultTag:eN,features:eA,visible:"visible"===k,name:"Transition.Child"})))}),eS=ef(function(e,t){let n=null!==(0,f.useContext)(e_),a=null!==el();return f.default.createElement(f.default.Fragment,null,!n&&a?f.default.createElement(ek,{ref:t,...e}):f.default.createElement(ew,{ref:t,...e}))}),eI=Object.assign(ek,{Child:eS,Root:ek});e.s(["Transition",()=>eI],854056)},94245,e=>{"use strict";var t,n=e.i(843476),a=e.i(997751),r=e.i(666627),l=e.i(454305),i=e.i(574648),s=e.i(114592),o=e.i(435681),c=e.i(622947),d=e.i(492407);e.i(713222);var u=e.i(178680);(t={}).AmericanExpress="AmericanExpress",t.Visa="Visa",t.SamsungPay="SamsungPay",t.ApplePay="ApplePay",t.GooglePay="GooglePay",t.Mastercard="Mastercard",t.NetsPay="NetsPay";let p={[u.EnumIcon.Award]:l.default,[u.EnumIcon.Bag]:e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...e,children:[(0,n.jsx)("mask",{id:"a",width:32,height:32,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,n.jsx)("path",{d:"M0 0h32v32H0z"})}),(0,n.jsx)("g",{mask:"url(#a)",children:(0,n.jsx)("path",{d:"M9.846 28.001v-1.423c-.5 0-.933-.18-1.298-.542A1.769 1.769 0 0 1 8 24.732V11.181c0-.495.184-.926.552-1.294.368-.368.8-.552 1.294-.552h3.449V6.014c0-.243.09-.46.273-.65a.883.883 0 0 1 .663-.286h3.538c.26 0 .485.095.676.286.19.19.286.407.286.65v3.32h3.423c.494 0 .926.185 1.294.553.368.368.552.8.552 1.294v13.551c0 .508-.184.942-.552 1.304-.368.361-.8.542-1.294.542v1.423h-1.026v-1.423H10.872v1.423H9.846ZM14.32 9.335h3.385V6.104h-3.384v3.23Zm1.68 7.09c1.218 0 2.422-.145 3.61-.434a11.903 11.903 0 0 0 3.364-1.39v-3.42a.799.799 0 0 0-.23-.59.798.798 0 0 0-.59-.23H9.846a.798.798 0 0 0-.59.23.799.799 0 0 0-.23.59v3.42c1.054.638 2.176 1.101 3.364 1.39 1.188.289 2.392.433 3.61.433Zm-.513 2.448v-1.341c-1.15-.05-2.267-.22-3.351-.512a12.677 12.677 0 0 1-3.11-1.303v9.015c0 .24.077.436.23.59.154.154.35.23.59.23h12.308c.24 0 .436-.076.59-.23a.799.799 0 0 0 .23-.59v-9.015a12.678 12.678 0 0 1-3.11 1.303c-1.084.292-2.2.462-3.351.512v1.341h-1.026Z"})})]}),[u.EnumIcon.BigEqual]:e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,n.jsx)("mask",{id:"a",width:32,height:32,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,n.jsx)("path",{fill:"#D9D9D9",d:"M0 0h32v32H0z"})}),(0,n.jsx)("g",{mask:"url(#a)",children:(0,n.jsx)("path",{fill:"#004A68",d:"M7.178 13.98a1.78 1.78 0 0 1-1.307-.54 1.78 1.78 0 0 1-.539-1.307v-4.95c0-.513.18-.95.539-1.308a1.78 1.78 0 0 1 1.307-.54H24.82c.513 0 .948.18 1.308.54.359.359.538.795.538 1.307v4.951c0 .513-.18.949-.538 1.308a1.78 1.78 0 0 1-1.308.538H7.18Zm0-1.026H24.82a.8.8 0 0 0 .59-.23.799.799 0 0 0 .23-.59V7.181a.799.799 0 0 0-.23-.59.799.799 0 0 0-.59-.23H7.18a.799.799 0 0 0-.59.23.799.799 0 0 0-.231.59v4.951c0 .24.077.436.23.59.154.154.35.23.59.23Zm0 13.715a1.78 1.78 0 0 1-1.307-.538 1.78 1.78 0 0 1-.539-1.308V19.89c0-.513.18-.948.539-1.308a1.78 1.78 0 0 1 1.307-.538H24.82c.513 0 .948.18 1.308.538.359.36.538.795.538 1.308v4.933c0 .512-.18.948-.538 1.308a1.78 1.78 0 0 1-1.308.538H7.18Zm0-1.025H24.82c.24 0 .436-.077.59-.231a.799.799 0 0 0 .23-.59V19.89a.799.799 0 0 0-.23-.59.799.799 0 0 0-.59-.23H7.18a.799.799 0 0 0-.59.23.799.799 0 0 0-.231.59v4.933c0 .24.077.436.23.59.154.154.35.23.59.23Z"})})]}),[u.EnumIcon.Cart]:e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...e,children:[(0,n.jsx)("mask",{id:"a",width:32,height:32,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,n.jsx)("path",{d:"M0 0h32v32H0z"})}),(0,n.jsx)("g",{mask:"url(#a)",children:(0,n.jsx)("path",{d:"M7.842 26.668c-.427 0-.807-.12-1.14-.361a1.726 1.726 0 0 1-.665-.977L2.986 14.499a.86.86 0 0 1 .135-.803c.179-.24.43-.361.754-.361
6h6.457L15.237 6a.998.998 0 0 1 .354-.316.967.967 0 0 1 .428-.091c.16 0 .303.034.428.104.125.069.243.179.354.33l4.851 7.307h6.482c.324 0 .58.12.768.361a.841.841 0 0 1 .148.803l-3.136 10.83c-.111.41-.333.737-.666.978a1.853 1.853 0 0 1-1.114.361H7.842Zm-.102-1.026h16.523c.188 0 .35-.055.487-.166a.847.847 0 0 0 .282-.449l2.982-10.667H3.996L6.97 25.027a.847.847 0 0 0 .282.449c.137.11.3.166.488.166Zm8.271-4.615a.961.961 0 0 0 .714-.311c.201-.208.302-.45.302-.725a.961.961 0 0 0-.312-.714 1.01 1.01 0 0 0-.724-.301.961.961 0 0 0-.714.311 1.01 1.01 0 0 0-.302.725c0 .275.104.513.312.714.207.2.449.301.724.301Zm-4.43-7.692h8.817l-4.405-6.667-4.412 6.667Z"})})]}),[u.EnumIcon.Checklist]:e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,n.jsx)("mask",{id:"a",width:32,height:32,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,n.jsx)("path",{fill:"#D9D9D9",d:"M0 0h32v32H0z"})}),(0,n.jsx)("g",{mask:"url(#a)",children:(0,n.jsx)("path",{fill:"#004A68",d:"M5.733 26.67a1.78 1.78 0 0 1-1.308-.54 1.78 1.78 0 0 1-.538-1.307V7.182c0-.512.18-.948.538-1.307a1.78 1.78 0 0 1 1.308-.54h20.533c.513 0 .948.18 1.307.54.36.359.54.795.54 1.307v17.641c0 .512-.18.948-.54 1.308a1.78 1.78 0 0 1-1.307.538H5.733Zm0-1.026h20.533c.205 0 .393-.086.564-.257.171-.17.257-.359.257-.564V7.182c0-.205-.086-.393-.257-.564-.17-.171-.359-.256-.564-.256H5.733c-.205 0-.393.085-.564.256-.171.
617-.257.359-.257.564v17.641c0 .205.086.393.257.564.17.171.359.257.564.257Zm1.6-3.641h5.333v-1.334H7.333v1.334Zm12.066-2.95 5.652-5.65-.952-.952-4.7 4.734-1.9-1.9-.918.95 2.818 2.819ZM7.333 16.67h5.333v-1.333H7.333v1.333Zm0-5.333h5.333v-1.333H7.333v1.333Z"})})]}),[u.EnumIcon.CreditCard]:e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...e,children:[(0,n.jsx)("mask",{id:"a",width:32,height:32,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,n.jsx)("path",{d:"M0 0h32v32H0z"})}),(0,n.jsx)("g",{mask:"url(#a)",children:(0,n.jsx)("path",{d:"M28 8.51v14.975c0 .512-.18.948-.539 1.307a1.78 1.78 0 0 1-1.307.539H5.846a1.78 1.78 0 0 1-1.307-.539A1.78 1.78 0 0 1 4 23.485V8.51c0-.512.18-.948.539-1.307a1.78 1.78 0 0 1 1.307-.539h20.308c.512 0 .948.18 1.307.539.36.359.539.795.539 1.307ZM5.026 11.887h21.948V8.51c0-.205-.085-.393-.256-.564-.171-.17-.359-.256-.564-.256H5.846c-.205 0-.393.085-.564.256-.17.171-.256.36-.256.564v3.377Zm0 2.685v8.913c0 .205.085.393.256.564.171.17.359.256.564.256h20.308c.205 0 .393-.085.564-.256.17-.171.256-.36.256-.564v-8.913H5.026Z"})})]}),[u.EnumIcon.Money]:e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...e,children:[(0,n.jsx)("mask",{id:"a",width:32,height:32,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,n.jsx)("path",{d:"M0 0h32v32H0z"})}),(0,n.jsx)("g",{mask:"url(#a)",children:(0,n.jsx)("path",{d:"M17.692 16.874c-.752 0-1.384-.256-1.897-.77-.513-.512-.77-1.144-.77-1.897 0-.752.257-1.384.77-1.897.513-.513 1.145-.77 1.897-.77.753 0 1.385.257 1.898.77.513.513.77 1.145.77 1.897s-.257 1.385-.77 1.898c-.513.513-1.145.769-1.898.769Zm-8.871 4.564c-.495 0-.926-.184-1.294-.552-.368-.368-.552-.8-.552-1.294V8.822c0-.494.184-.925.552-1.293.368-.368.8-.552 1.294-.552h17.743c.495 0 .926.184 1.294.552.368.368.552.8.552 1.294v10.769c0 .494-.184.926-.552 1.294-.368.368-.8.552-1.294.552H8.821Zm1.64-1.025h14.462c0-.677.242-1.257.727-1.74a2.374 2.374 0 0 1 1.735-.722v-7.487a2.366 2.366 0 0 1-1.739-.726 2.374 2.374 0 0 1-.723-1.736H10.462c0 .677-.242 1.257-.726 1.739A2.373 2.373 0 0 1 8 10.464v7.487c.677 0 1.257.242 1.739.726.482.485.723 1.063.723 1.736Zm14 4.41H5.437c-.494 0-.926-.184-1.294-.552-.368-.369-.552-.8-.552-1.294V10.925h1.026v12.052c0 .205.085.393.256.564.171.17.36.256.564.256h19.026v1.026Zm-15.64-4.41H8V8.003h.82a.789.789 0 0 0-.577.243.789.789 0 0 0-.244.577v10.769c0 .222.081.415.244.577a.789.789 0 0 0 .577.244Z"})})]}),[u.EnumIcon.MoneyBox]:e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,n.jsx)("mask",{id:"a",width:32,height:32,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,n.jsx)("path",{fill:"#D9D9D9",d:"M0 0h32v32H0z"})}),(0,n.jsx)("g",{mask:"url(#a)",children:(0,n.jsx)("path",{fill:"#004A68",d:"M21.333 14.359a.985.985 0 0 0 .72-.306.985.985 0 0 0 .306-.72.985.985 0 0 0-.306-.719.985.985 0 0 0-.72-.306.985.985 0 0 0-.719.306.985.985 0 0 0-.306.72c0 .275.102.514.306.719a.985.985 0 0 0 .72.306Zm-10.666-3.333h6.666V10h-6.666v1.026ZM7 26.666a580.04 580.04 0 0 0-1.99-6.929A24.944 24.944 0 0 1 4 12.667c0-1.669.583-3.086 1.749-4.252C6.915 7.25 8.332 6.667 10 6.667h7.333a8.044 8.044 0 0 1 2.043-1.903A4.721 4.721 0 0 1 22 4a.64.64 0 0 1 .468.199.64.64 0 0 1 .199.468.446.446 0 0 1-.025.143c-.016.048-.03.093-.04.136a8.367 8.367 0 0 0-.378 1.224c-.095.418-.181.838-.26 1.258l3.905 3.905H28v6.993l-3.51 1.156-2.157 7.185h-5V24H12v2.667H7Zm.782-1.025h3.192v-2.667h7.385v2.667h3.218l2.074-6.923 3.323-1.141v-5.218h-1.528l-4.472-4.472c.006-.504.052-.987.14-1.45.088-.462.207-.917.358-1.365a5.662 5.662 0 0 0-1.99.957 5.225 5.225 0 0 0-1.451 1.663H10c-1.388 0-2.564.482-3.528 1.447-.964.964-1.446 2.14-1.446 3.528 0 2.233.309 4.416.928 6.547a612.001 612.001 0 0 1 1.828 6.427Z"})})]}),[u.EnumIcon.SearchShield]:e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,n.jsx)("mask",{id:"a",width:32,height:32,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,n.jsx)("path",{fill:"#D9D9D9",d:"M0 0h32v32H0z"})}),(0,n.jsx)("g",{mask:"url(#a)",children:(0,n.jsx)("path",{fill:"#004A68",d:"M16.001 27.948c-2.684-.795-4.91-2.43-6.68-4.904-1.768-2.474-2.653-5.255-2.653-8.342V7.589l9.333-3.487 9.334 3.487v7.113c0 1.425-.197 2.847-.589 4.265-.392 1.418-1.069 2.818-2.03 4.199l-4.307-4.21a4.453 4.453 0 0 1-1.142.612 3.7 3.7 0 0 1-1.266.22c-1.067 0-1.974-.372-2.72-1.118-.745-.746-1.118-1.65-1.118-2.716 0-1.065.372-1.972 1.117-2.72.745-.748 1.65-1.122 2.716-1.122 1.066 0 1.973.374 2.721 1.122.749.748 1.123 1.656 1.123 2.724 0 .423-.067.824-.2 1.2
6-.134.378-.31.73-.531 1.056l3.395 3.339a13.363 13.363 0 0 0 1.328-3.178 13.69 13.69 0 0 0 .477-3.673V8.239l-8.308-3.022-8.307 3.022v6.463c0 2.791.78 5.32 2.34 7.588 1.56 2.268 3.55 3.798 5.974 4.591.606-.178 1.263-.472 1.972-.882.708-.41 1.32-.837 1.837-1.28l.63.793c-.675.54-1.38 1.02-2.116 1.44-.736.42-1.513.751-2.33.996Zm.007-9.185c.767 0 1.426-.27 1.978-.812s.828-1.212.828-2.01c0-.765-.278-1.423-.835-1.975-.556-.552-1.218-.829-1.984-.829-.767 0-1.426.277-1.978.829-.553.552-.829 1.21-.829 1.975 0 .798.279 1.468.835 2.01a2.749 2.749 0 0 0 1.985.812Z"})})]}),[u.EnumIcon.Wheel]:e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,n.jsx)("mask",{id:"a",width:32,height:32,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,n.jsx)("path",{fill:"#D9D9D9",d:"M0 0h32v32H0z"})}),(0,n.jsx)("g",{mask:"url(#a)",children:(0,n.jsx)("path",{fill:"#004A68",d:"M16.004 28c-1.659 0-3.22-.315-4.68-.945a12.126 12.126 0 0 1-3.812-2.564 12.108 12.108 0 0 1-2.566-3.808c-.63-1.46-.946-3.02-.946-4.679 0-1.659.315-3.22.945-4.68a12.128 12.128 0 0 1 2.564-3.812 12.108 12.108 0 0 1 3.808-2.566c1.46-.63 3.02-.946 4.679-.946 1.659 0 3.22.315 4.68.945 1.46.63 2.731 1.484 3.812 2.564a12.108 12.108 0 0 1 2.566 3.808c.63 1.46.946 3.02.946 4.679 0 1.659-.315 3.22-.945 4.68a12.126 12.126 0 0 1-2.564 3.812 12.107 12.107 0 0 1-3.808 2.566c-1.46.63-3.02.946-4.679.946Zm-3.935-1.718 2.536-5.872a4.924 4.924 0 0 1-1.816-1.119 4.589 4.589 0 0 1-1.148-1.837l-5.974 2.41c.62 1.51 1.48 2.816 2.579 3.92a10.873 10.873 0 0 0 3.823 2.498Zm-.436-11.728a3.86 3.86 0 0 1 1.09-1.82 5.04 5.04 0 0 1 1.823-1.093l-2.41-5.974c-1.564.62-2.898 1.488-4.003 2.604a10.702 10.702 0 0 0-2.466 3.873l5.966 2.41Zm4.361 5.036c.996 0 1.844-.349 2.544-1.046.701-.696 1.052-1.542 1.052-2.538 0-.996-.349-1.844-1.046-2.544-.696-.701-1.542-1.052-2.538-1.052-.996 0-1.844.349-2.544 1.046-.701.696-1.052 1.542-1.052 2.538 0 .996.349 1.844 1.046 2.544.696.701 1.542 1.052 2.538 1.052Zm3.962 6.692a11.38 11.38 0 0 0 6.326-6.351l-5.872-2.528a4.385 4.385 0 0 1-1.124 1.85 4.732 4.732 0 0 1-1.814 1.106l2.484 5.923Zm.403-11.787 5.923-2.451A11.418 11.418 0 0 0 23.76 8.24a11.418 11.418 0 0 0-3.804-2.522l-2.443 5.923a5.16 5.16 0 0 1 1.7 1.101c.494.48.876 1.064 1.146 1.753Z"})})]}),AmericanExpress:a.AmexIcon,GooglePay:i.GooglePayIcon,Mastercard:s.MastercardIcon,NetsPay:o.NetsPayIcon,SamsungPay:c.SamsungPayIcon,Visa:d.VisaIcon,ApplePay:r.ApplePayIcon,[u.Enum_Componentpagescomponentheaderwithtabstab_Icon.CarInsurance]:function({className:e}){return(0,n.jsx)("svg",{width:"23",height:"31",viewBox:"0 0 23 31",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,n.jsx)("path",{d:"M11.5553 7.20991L8.84267 4.53024L9.55034 3.78924L11.5553 5.79457L16.4013 0.948242L17.1093 1.65591L11.5553 7.20991ZM1.40134 30.6662C1.25623 30.6662 1.13445 30.6171 1.03601 30.5189C0.937783 30.4205 0.888672 30.2987 0.888672 30.1536V20.3022L3.54267 12.5122C3.60245 12.3551 3.70623 12.2304 3.85401 12.1379C4.00201 12.0457 4.16223 11.9996 4.33467 11.9996H18.8783C19.0434 11.9996 19.1852 12.0438 19.3037 12.1322C19.4219 12.2207 19.51 12.3474 19.568 12.5122L22.222 20.3022V30.1536C22.222 30.2987 22.1729 30.4205 22.0747 30.5189C21.9762 30.6171 21.8544 30.6662 21.7093 30.6662H21.7013C21.5433 30.6662 21.4197 30.6171 21.3303 30.5189C21.241 30.4205 21.1963 30.2987 21.1963 30.1536V27.9432H1.91434V30.1536C1.91434 30.2987 1.86523 30.4205 1.76701 30.5189C1.66856 30.6171 1.54667 30.6662 1.40134 30.6662ZM2.32201 19.2766H20.7887L18.622 13.0252H4.48867L2.32201 19.2766ZM5.23634 25.0202C5.63189 25.0202 5.96345 24.8817 6.231 24.6046C6.49856 24.3275 6.63234 23.9965 6.63234 23.6116C6.63234 23.2082 6.49378 22.872 6.21667 22.6029C5.93956 22.334 5.61134 22.1996 5.232 22.1996C4.83423 22.1996 4.49801 22.3352 4.22334 22.6066C3.94889 22.8781 3.81167 23.2145 3.81167 23.6156C3.81167 24.0169 3.95023 24.3514 4.22734 24.6189C4.50423 24.8865 4.84056 25.0202 5.23634 25.0202ZM17.9047 25.0202C18.2973 25.0202 18.6292 24.8817 18.9003 24.6046C19.1712 24.3275 19.3067 23.9965 19.3067 23.6116C19.3067 23.2082 19.1699 22.872 18.8963 22.6029C18.623 22.334 18.291 22.1996 17.9003 22.1996C17.5097 22.1996 17.1763 22.3352 16.9003 22.6066C16.6241 22.8781 16.486 23.2145 16.486 23.6156C16.486 24.0169 16.6289 24.3514 16.9147 24.6189C17.2002 24.8865 17.5302 25.0202 17.9047 25.0202ZM1.91434 26.9176H21.1963V20.3022H1.91434V26.9176Z"})})},[u.Enum_Componentpagescomponentheaderwithtabstab_Icon.CreditCards]:function({className:e}){return(0,n.jsx)("svg",{width:"24",height:"21",viewBox:"0 0 24 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,n.jsx)("path",{d:"M1.02567 18.308V8.05166V8.79533V1.69266V18.308ZM19.3793 20.821L15.4307 16.872C15.176 16.6173 15.0004 16.3532 14.904 16.0797C14.8073 15.8063 14.759 15.5285 14.759 15.2463C14.759 14.6379 14.9718 14.0987 15.3973 13.6287C15.8231 13.1584
616.3761 12.9233 17.0563 12.9233C17.5932 12.9233 18.0138 13.0464 18.318 13.2927C18.6222 13.5389 18.976 13.8637 19.3793 14.267C19.7727 13.8739 20.1227 13.5517 20.4293 13.3003C20.7362 13.049 21.1607 12.9233 21.7027 12.9233C22.4051 12.9233 22.9637 13.1597 23.3783 13.6323C23.7928 14.105 24 14.6457 24 15.2543C24 15.5363 23.9461 15.8183 23.8383 16.1003C23.7308 16.3823 23.5608 16.6395 23.3283 16.872L19.3793 20.821ZM1.02567 5.88999H22.9743V2.51299C22.9743 2.30788 22.8889 2.11988 22.718 1.94899C22.5471 1.7781 22.3591 1.69266 22.154 1.69266H1.846C1.64089 1.69266 1.45289 1.7781 1.282 1.94899C1.11111 2.11988 1.02567 2.30788 1.02567 2.51299V5.88999ZM10.877 19.3337H1.846C1.33378 19.3337 0.898 19.1541 0.538667 18.795C0.179556 18.4357 0 17.9999 0 17.4877V2.51299C0 2.00077 0.179556 1.56499 0.538667 1.20566C0.898 0.846547 1.33378 0.666992 1.846 0.666992H22.154C22.6662 0.666992 23.102 0.846547 23.4613 1.20566C23.8204 1.56499 24 2.00077 24 2.51299V9.35666C23.3249 8.93799 22.5988 8.61577 21.8217 8.38999C21.0448 8.16444 20.2307 8.05166 19.3793 8.05166C18.8084 8.05166 18.2427 8.09433 17.682 8.17966C17.1213 8.26521 16.5734 8.39688 16.0383 8.57466H1.02567V17.4877C1.02567 17.6928 1.11111 17.8808 1.282 18.0517C1.45289 18.2225 1.64089 18.308 1.846 18.308H10.6883C10.7132 18.4889 10.7402 18.6658 10.7693 18.8387C10.7982 19.0113 10.8341 19.1763 10.877 19.3337Z"})})},[u.Enum_Componentpagescomponentheaderwithtabstab_Icon.HomeInsurance]:function({className:e}){return(0,n.jsx)("svg",{width:"28",height:"24",viewBox:"0 0 28 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,n.jsx)("path",{d:"M4.55566 21.3332V8.20485L1.166 10.7229L0.555664 9.91785L13.889 -0.0078125L27.248 9.91785L26.6377 10.7229L13.889 1.26919L5.58133 7.46652V20.3075H10.2633V21.3332H4.55566ZM17.6147 23.9999L13.1147 19.4999L13.848 18.7845L17.6147 22.5589L25.1813 15.0255L25.889 15.7332L17.6147 23.9999Z"})})},[u.Enum_Componentpagescomponentheaderwithtabstab_Icon.Investments]:function({className:e}){return(0,n.jsx)("svg",{width:"22",height:"24",viewBox:"0 0 22 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,n.jsx)("path",{d:"M3.93167 15.318V13.895H0.444336V12.8694H7.41867V8.49737H1.32367C1.10078 8.49737 0.898447 8.4097 0.716669 8.23437C0.535114 8.05881 0.444336 7.84481 0.444336 7.59237V2.9207C0.444336 2.66803 0.527669 2.45959 0.694336 2.29537C0.861003 2.13092 1.06822 2.0487 1.316 2.0487H3.93167V0.651367H4.957V2.0487H8.44434V3.07437H1.47V7.4717H7.565C7.81011 7.4717 8.018 7.55381 8.18867 7.71803C8.35911 7.88203 8.44434 8.09315 8.44434 8.35137V13.023C8.44434 13.271 8.36222 13.4784 8.198 13.645C8.03356 13.8117 7.82511 13.895 7.57267 13.895H4.957V15.318H3.93167ZM13.0443 23.0617L8.30067 18.318L9.034 17.5847L13.0443 21.595L20.8393 13.8L21.5727 14.5334L13.0443 23.0617Z"})})},[u.Enum_Componentpagescomponentheaderwithtabstab_Icon.MaidInsurance]:function({className:e}){return(0,n.jsx)("svg",{width:"28",height:"18",viewBox:"0 0 28 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,n.jsx)("path",{d:"M21.1777 7.84116L17.6367 4.26683L18.3443 3.55916L21.1777 6.39249L26.8443 0.725826L27.5777 1.46683L21.1777 7.84116ZM9.77767 8.17182C8.67767 8.17182 7.76167 7.80583 7.02967 7.07383C6.29767 6.34183 5.93167 5.42149 5.93167 4.31283C5.93167 3.20438 6.29767 2.28838 7.02967 1.56483C7.76167 0.84127 8.67767 0.479492 9.77767 0.479492C10.8777 0.479492 11.7937 0.84127 12.5257 1.56483C13.2577 2.28838 13.6237 3.20438 13.6237 4.31283C13.6237 5.42149 13.2577 6.34183 12.5257 7.07383C11.7937 7.80583 10.8777 8.17182 9.77767 8.17182ZM0.444336 17.8208V15.8925C0.444336 15.3369 0.604558 14.8194 0.925003 14.3398C1.24567 13.8605 1.69567 13.4908 2.275 13.2308C3.66834 12.6173 4.96567 12.169 6.167 11.8862C7.36834 11.6033 8.56956 11.4618 9.77067 11.4618C10.972 11.4618 12.1743 11.6033 13.3777 11.8862C14.581 12.169 15.8793 12.6173 17.2727 13.2308C17.852 13.513 18.3032 13.8883 18.6263 14.3565C18.9494 14.8249 19.111 15.3369 19.111 15.8925V17.8208H0.444336ZM1.47 16.7952H18.0853V15.8925C18.0853 15.554 17.9726 15.2279 17.747 14.9142C17.5212 14.6006 17.2076 14.3404 16.806 14.1335C15.5358 13.5368 14.3503 13.1133 13.2497 12.8628C12.1492 12.6126 10.9919 12.4875 9.77767 12.4875C8.56345 12.4875 7.40056 12.6126 6.289 12.8628C5.17723 13.1133 3.99478 13.5368 2.74167 14.1335C2.323 14.3404 2.00634 14.6006 1.79167 14.9142C1.57722 15.2279 1.47 15.554 1.47 15.8925V16.7952ZM9.77767 7.14616C10.5759 7.14616 11.2456 6.87571 11.7867 6.33482C12.3278 5.79371 12.5983 5.12405 12.5983 4.32583C12.5983 3.5276 12.3278 2.85794 11.7867 2.31683C11.2456 1.77571 10.5759 1.50516 9.77767 1.50516C8.97945 1.50516 8.30978 1.77571 7.76867 2.31683C7.22756 2.85794 6.957 3.5276 6.957 4.32583C6.957 5.12405 7.22756 5.79371 7.76867 6.33482C8.30978 6.87571 8.97945 7.14616 9.77767 7.14616Z"})})},[u.Enum_Componentpagescomponentheaderwithtabstab_Icon.PersonalLoans]:function({className:e}){return(0,n.jsx)("svg",{width:"20",height:"24",viewBox:"0 0 20 24",fill:"
6currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,n.jsx)("path",{d:"M10.1716 20.3257H11.1973V18.9923H13.505C13.6512 18.9923 13.7732 18.9434 13.871 18.8457C13.969 18.7477 14.018 18.6256 14.018 18.4793V14.3257C14.018 14.1794 13.969 14.0574 13.871 13.9597C13.7732 13.8617 13.6512 13.8127 13.505 13.8127H8.37698V10.6847H14.018V9.659H11.1973V8.32567H10.1716V9.659H7.86398C7.71776 9.659 7.59576 9.70789 7.49798 9.80567C7.4002 9.90367 7.35132 10.0257 7.35132 10.1717V14.3257C7.35132 14.4719 7.4002 14.5939 7.49798 14.6917C7.59576 14.7894 7.71776 14.8383 7.86398 14.8383H12.9923V17.9667H7.35132V18.9923H10.1716V20.3257ZM2.73565 24C2.22343 24 1.78765 23.8204 1.42832 23.4613C1.0692 23.102 0.889648 22.6662 0.889648 22.154V1.846C0.889648 1.33378 1.0692 0.897999 1.42832 0.538666C1.78765 0.179555 2.22343 0 2.73565 0H13.8716L19.5563 5.68467V22.154C19.5563 22.6662 19.3768 23.102 19.0177 23.4613C18.6583 23.8204 18.2225 24 17.7103 24H2.73565ZM13.0513 6.04367V1.02567H2.73565C2.53054 1.02567 2.34254 1.11111 2.17165 1.282C2.00076 1.45289 1.91532 1.64089 1.91532 1.846V22.154C1.91532 22.3591 2.00076 22.5471 2.17165 22.718C2.34254 22.8889 2.53054 22.9743 2.73565 22.9743H17.7103C17.9154 22.9743 18.1034 22.8889 18.2743 22.718C18.4452 22.5471 18.5306 22.3591 18.5306 22.154V6.04367H13.0513Z"})})},[u.Enum_Componentpagescomponentheaderwithtabstab_Icon.PriorityBanking]:function({className:e}){return(0,n.jsx)("svg",{width:"23",height:"25",viewBox:"0 0 23 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,n.jsx)("path",{d:"M4.52843 21.2742V9.69217H5.5541V21.2742H4.52843ZM11.2104 21.2742V9.69217H12.2361V21.2742H11.2104ZM0.384766 24.6588V23.6332H22.9488V24.6588H0.384766ZM17.7794 21.2742V9.69217H18.8051V21.2742H17.7794ZM0.384766 7.33317V6.61783L11.6668 0.8125L22.9488 6.61783V7.33317H0.384766ZM3.2361 6.3075H20.0974L11.6668 1.9845L3.2361 6.3075Z"})})},[u.Enum_Componentpagescomponentheaderwithtabstab_Icon.SavingAccounts]:function({className:e}){return(0,n.jsx)("svg",{width:"25",height:"23",viewBox:"0 0 25 23",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,n.jsx)("path",{d:"M17.6663 10.359C17.9415 10.359 18.1812 10.2569 18.3857 10.0527C18.5899 9.84822 18.692 9.60844 18.692 9.33333C18.692 9.05822 18.5899 8.81844 18.3857 8.614C18.1812 8.40978 17.9415 8.30767 17.6663 8.30767C17.3912 8.30767 17.1515 8.40978 16.947 8.614C16.7428 8.81844 16.6407 9.05822 16.6407 9.33333C16.6407 9.60844 16.7428 9.84822 16.947 10.0527C17.1515 10.2569 17.3912 10.359 17.6663 10.359ZM6.99967 7.02567H13.6663V6H6.99967V7.02567ZM3.33301 22.6667C2.68012 20.3384 2.0169 18.0287 1.34334 15.7373C0.669785 13.4458 0.333008 11.0889 0.333008 8.66667C0.333008 6.99822 0.915897 5.58111 2.08167 4.41533C3.24745 3.24956 4.66456 2.66667 6.33301 2.66667H13.6663C14.2423 1.90778 14.9231 1.27355 15.7087 0.763999C16.4942 0.254666 17.369 0 18.333 0C18.5126 0 18.6686 0.066223 18.801 0.198667C18.9335 0.331112 18.9997 0.487111 18.9997 0.666667C18.9997 0.714444 18.9916 0.762333 18.9753 0.810333C18.9591 0.858111 18.9459 0.903333 18.9357 0.946C18.7783 1.34444 18.6522 1.75267 18.5573 2.17067C18.4625 2.58844 18.3757 3.00767 18.297 3.42833L22.2023 7.33333H24.333V14.3257L20.8227 15.482L18.6663 22.6667H13.6663V20H8.33301V22.6667H3.33301ZM4.11501 21.641H7.30734V18.9743H14.692V21.641H17.91L19.9843 14.718L23.3073 13.577V8.359H21.779L17.3073 3.88733C17.3125 3.38289 17.359 2.89956 17.447 2.43733C17.535 1.97489 17.6542 1.51967 17.8047 1.07167C17.08 1.25989 16.4168 1.57911 15.815 2.02933C15.2132 2.47978 14.7295 3.03411 14.3637 3.69233H6.33301C4.94545 3.69233 3.76945 4.17444 2.80501 5.13867C1.84079 6.10311 1.35867 7.27911 1.35867 8.66667C1.35867 10.9002 1.66812 13.0826 2.28701 15.2137C2.90567 17.3448 3.51501 19.4872 4.11501 21.641Z"})})},[u.Enum_Componentpagescomponentheaderwithtabstab_Icon.TravelInsurance]:function({className:e}){return(0,n.jsx)("svg",{width:"25",height:"20",viewBox:"0 0 25 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,n.jsx)("path",{d:"M7.91633 14.7053L19.7217 11.5183C20.031 11.4243 20.2789 11.2722 20.4653 11.062C2
60.6516 10.8515 20.6977 10.5917 20.6037 10.2823C20.5268 9.97299 20.3567 9.76744 20.0933 9.66566C19.8302 9.56388 19.5573 9.55044 19.2747 9.62533L15.8343 10.5463L10.4037 5.35166L9.05499 5.64899L12.36 11.4517L8.48066 12.4593L6.77299 11.103L6.11399 11.3337L7.91633 14.7053ZM22.2653 19.3337H1.95733C1.45866 19.3337 1.02633 19.1507 0.660328 18.7847C0.294328 18.4187 0.111328 17.9863 0.111328 17.4877V14.1567C0.93355 13.7738 1.59977 13.2161 2.11 12.4837C2.62022 11.7512 2.87533 10.9234 2.87533 10.0003C2.87533 9.07721 2.62022 8.24388 2.11 7.50033C1.59977 6.75677 0.93355 6.20466 0.111328 5.84399V2.51299C0.111328 2.01433 0.294328 1.58199 0.660328 1.21599C1.02633 0.849991 1.45866 0.666992 1.95733 0.666992H22.2653C22.764 0.666992 23.1963 0.849991 23.5623 1.21599C23.9283 1.58199 24.1113 2.01433 24.1113 2.51299V17.4877C24.1113 17.9863 23.9283 18.4187 23.5623 18.7847C23.1963 19.1507 22.764 19.3337 22.2653 19.3337ZM22.2653 18.308C22.5044 18.308 22.701 18.2311 22.855 18.0773C23.0088 17.9233 23.0857 17.7268 23.0857 17.4877V2.51299C23.0857 2.27388 23.0088 2.07733 22.855 1.92333C22.701 1.76955 22.5044 1.69266 22.2653 1.69266H1.95733C1.71822 1.69266 1.52166 1.76955 1.36766 1.92333C1.21388 2.07733 1.13699 2.27388 1.13699 2.51299V5.19766C1.98655 5.72433 2.65966 6.4081 3.15633 7.24899C3.65277 8.0901 3.901 9.00721 3.901 10.0003C3.901 10.9934 3.65277 11.9105 3.15633 12.7517C2.65966 13.5925 1.98655 14.2763 1.13699 14.803V17.4877C1.13699 17.7268 1.21388 17.9233 1.36766 18.0773C1.52166 18.2311 1.71822 18.308 1.95733 18.308H22.2653Z"})})}};e.s(["Icon",0,({icon:e,...t})=>{let a=p[e];return a?(0,n.jsx)(a,{...t}):null}],94245)},862008,919503,717376,917692,477503,872574,345063,182097,160850,743043,717133,792042,104291,936739,161163,58391,598883,538789,243833,681019,659670,144297,732501,648326,899824,825766,861452,449907,140550,435005,734403,e=>{"use strict";var t=e.i(843476),n=e.i(854056),a=e.i(343794),r=e.i(271645),l=e.i(94245),i=e.i(274839),s=e.i(378058);e.i(843780);var o=e.i(892063);e.i(69618);var c=e.i(440481),d=e.i(501701),u=e.i(295750);e.s(["HeaderWithTabs",0,e=>{let{title:p,over_title:m}=e,{brand:h}=(0,u.useClientContext)(),[f,g]=(0,r.useState)(0),[x,b]=(0,r.useState)(!0);if(!e.tabs||!e.tabs.length)return null;let y=e.tabs.filter(e=>!!e),_=y[f],v=(e,t,n)=>{(0,s.pushDataLayer)({event:"navigate",component_type:"cta-button",component_title:`Vertical Tab/${e}_${t}`,action:"click",index:n})};return(0,t.jsx)("div",{className:"headerWithTabs",children:(0,t.jsx)("div",{className:`homeTabsImg ${"moneyhero"===h?"moneyheroHomeTabsImg":""}`,children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"relative mx-auto max-w-[1536px] px-4 py-8 pb-16 sm:px-6 md:min-h-[234px] md:p-10 md:px-8 md:pb-12 lg:px-10 lg:py-12 lg:pb-14",children:[m&&(0,t.jsx)("h3",{className:"mb-2 font-semibold text-text/on-dark-2 text-font-size/sm leading-line-height/sm sm:text-font-size/md sm:leading-line-height/md md:mb-4 md:text-font-size/xl md:leading-line-height/xl",children:m}),(0,t.jsx)("h1",{className:"mb-6 font-bold text-white text-font-size/4xl leading-line-height/4xl sm:text-font-size/4xl sm:leading-line-height/4xl md:mb-8 md:text-font-size/6xl md:leading-line-height/6xl",children:p}),(0,t.jsx)("div",{className:`no-scrollbar absolute left-0 mr-2 flex max-w-full overflow-x-scroll px-4 pb-4 sm:px-6 md:px-10 lg:px-10 ${y.length<10?"lg:overflow-x-hidden":""}`,children:(0,t.jsx)("div",{className:"relative z-1 flex rounded-lg drop-shadow-lg bg-white",children:y.map((e,n)=>(0,t.jsxs)(c.FeLink,{className:(0,a.default)("tab-click z-50 flex min-h-[88px] !min-w-[115px] flex-col break-words border-r border-gray-300 font-semibold bg-white text-gray-900","first:rounded-l-lg last:rounded-lg last:rounded-l-none last:border-0","sm:text-font-size/lg sm:leading-line-height/lg","h-[112px] p-spacing/padding/x-sm text-font-size/md leading-line-height/lg sm:w-[116px]","md:!h-[120px] md:!w-[136px] md:text-font-size/lg md:leading-line-height/lg-plus","lg:!h-[136px] lg:!w-[136px] lg:text-font-size/lg-plus lg:leading-line-height/lg","xl:!h-[136px] xl:!w-[152px]",{"!bg-fill/primary-light text-primary-dark":f===n}),href:"#",onClick:e=>{e.preventDefault(),(0,s.pushDataLayer)({event:"navigate",component_type:"tab",component_title:`Vertical Tab_${y?.[n]?.nameReq}`,action:"click",index:n}),n!==f&&(b(!1),setTimeout(()=>{g(n),b(!0)},200))},children:[!!e.icon&&(0,t.jsx)("i",{className:`overrideIcon mb-2 size-[40px] rounded-full sm:mb-3 md:size-[48px] ${f===n?"!bg-white !text-primary":"bg-gray-200 text-gray-700"}`,children:(0,t.jsx)(l.Icon,{icon:e.icon})}),(0,t.jsx)("span",{className:"alpha-button-1",children:e.nameReq})]},e.id))})})]}),(0,t.jsx)("div",{className:"homeTabsGradient relative z-0 bg-white",children:(0,t.jsx)("div",{className:"mx-auto max-w-[1536px] px-4 py-8 !pt-16 sm:px-6 sm:!pt-20 md:p-10 md:px-8 md:!pt-28 lg:px-10 lg:py-12",children:(0,t.jsxs)(n.Transition,{show:x,as:"div",enter:"transition-opacity duration-200 ease-in-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-200 ease-in-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:[(0,t.jsx)("h3",{className:"mb-2 font-bold text-gray-900 text-font-size/2xl leading-line-height/2xl sm:text-font-size/2xl sm:leading-line-height/3xl md:mb-4 md:text-font-size/4xl md:leading-line-height/4xl",children:_.headline}),!!_.description&&(0,t.jsx)("div",{className:"mb-8 font-medium text-gray-800 text-font-size/md leading-line-height/md sm:text-font-size/md sm:leading-line-height/lg md:text-font-size/xl md:leading-line-height/xl",dangerouslySetInnerHTML:{__html:_.description}}),_.p_cta_label&&_.p_cta_url&&(0,t.jsx)(c.FeLink,{href:_.p_cta_url,target:(0,i.getTabTarget)(_.p_cta_target),title:_.p_cta_label,children:(0,t.jsx)(o.default,{onClick:()=>v(_.nameReq,_.p_cta_label??void 0,f),styleType:"primary",variant:"filled",endIcon:(0,t.jsx)(d.default,{}),className:"mb-2 w-full md:max-w-[330px] lg:mb-4 lg:max-w-[350px] xl:max-w-[400px]",children:_.p_cta_label})}),_.s_cta_label&&_.s_cta_url&&(0,t.jsx)(c.FeLink,{href:_.s_cta_url,target:(0,i.getTabTarget)(_.s_cta_target),title:_.s_cta_label,children:(0,t.jsx)(o.default,{onClick:()=>v(_.nameReq,_.s_cta_label??void 0,f),styleType:"primary",variant:"outline",className:"w-full md:max-w-[330px] lg:max-w-[350px] xl:max-w-[400px]",children:_.s_cta_label})})]},f)})})]})})})}],862008);var p=e.i(935532),m=e.i(538194);e.s(["Heading",0,({contentText:e,level:n})=>e?(0,t.jsx)(m.TheWrapper,{type:"simple",children:(0,t.jsx)(p.Header,{level:n,children:e})}):null],919503),e.i(397031);var h=e.i(271159),f=e.i(278467);let g={1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3"},x=({children:e,containerClassName:n,showMoreButtonVisible:l,showMoreButtonText:i,clamp:s=2,characterBudget:o,wordBoundary:c=!0,collapsedSourceText:d})=>{let[u,p]=(0,r.useState)(!l),m=l&&!u;if(o&&o>0&&null!=d){let{text:r,isTruncated:s}=(0,f.truncateToBudget)(d,o,{wordBoundary:c}),m=l&&s&&!u;return(0,t.jsx)("div",{className:(0,a.default)("relative",n),children:m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{"aria-hidden":"true",children:[r," "]}),(0,t.jsx)("button",{type:"button",className:"inline whitespace-nowrap","aria-expanded":!1,onClick:()=>p(!0),children:(0,t.jsx)("u",{children:i})}),(0,t.jsx)("span",{className:"sr-only",children:e})]}):e})}return(0,t.jsxs)("div",{className:(0,a.default)("relative",n),children:[(0,t.jsx)("div",{className:(0,a.default)({[`${g[s]} absolute top-[1lh] overflow-hidden`]:m}),children:e}),m&&(0,t.jsxs)("div",{className:"-mt-[1lh] flex flex-col items-start justify-end overflow-hidden",style:{clipPath:`inset(${s+1}lh 0 0 0)`,maxHeight:`${s+2}lh`}
6,children:[(0,t.jsx)("div",{"aria-hidden":!0,children:e}),(0,t.jsx)("button",{type:"button",onClick:()=>p(!0),children:(0,t.jsx)("u",{children:i})})]})]})};e.s(["WrappedText",0,x],717376),e.s(["HeroCampaingFeature",0,({title:e,subtitle:n,image:a,alt_image:r})=>{let{lang:l}=(0,u.useClientContext)();return(0,t.jsxs)("div",{className:"flex w-full max-w-page-max gap-spacing/padding/x-sm rounded-radius/button border border-borders/default p-spacing/gap/soft-12px bg-fill/card",children:[(0,t.jsx)("div",{className:"flex size-20 shrink-0 items-center justify-center",children:(0,t.jsx)(h.CmsImage,{alt:r??"",src:a?.url??"",width:80,height:80,sizes:{_:80},className:"size-full rounded-radius/button object-contain object-center"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-4px text-text/primary",children:[(0,t.jsx)("div",{className:"alpha-title-2",children:e}),n&&(0,t.jsx)("div",{className:"mhg-alpha-body-2-relaxed text-left",children:(0,t.jsx)(x,{showMoreButtonVisible:!0,showMoreButtonText:(0,f.tr)("show_more",l).toLowerCase(),children:n})})]})]})}],917692),e.i(910881);var b=e.i(943032),y=e.i(846086);e.i(880723);var _=e.i(227082);e.i(501008);var v=e.i(279143);function C(e){return"string"==typeof e?e.replace(/<\/?[^>]+(>|$)/g,""):""}function T(e,t=60){return e&&e.length>t?`${e.substring(0,t)}...`:e}e.s(["ArticlesHPModule",0,({title:e,articles:n})=>{let[l,i]=(0,r.useState)(0),[o,d]=(0,r.useState)(0),p=(0,r.useRef)(null),{brand:m,lang:g,langPrefix:x}=(0,u.useClientContext)();(0,r.useEffect)(()=>{i(window.innerWidth);let e=()=>{i(window.innerWidth),p.current&&d(p.current.offsetHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let E=(0,r.useMemo)(()=>n?.length?n.length<3&&l>=1279?[...n,...Array(3-n.length).fill(null)]:n:[],[n,l]);(0,r.useEffect)(()=>{p.current&&d(p.current.offsetHeight)},[E,l]);let N=(0,r.useMemo)(()=>l<768||l>=1279,[l]),A=(0,r.useMemo)(()=>{let e=l<1279&&(E?.length??0)>=2,t=l>=1279&&(E?.length??0)>=4;return e||t},[E?.length,l]);return E?.length?(0,t.jsx)("div",{className:"relative",style:{height:o||"auto"},children:(0,t.jsx)("div",{ref:p,className:(0,a.default)("inset absolute left-[calc(-50vw+50%)] z-0 w-screen md:w-[calc(100vw-8px)]","bg-gradient-to-b from-[#E0F4F8] to-[#F5F5F5]","flex justify-center px-2 pb-0 pt-4 sm:px-4 md:px-7 md:pt-10 lg:px-8 lg:pb-4"),children:(0,t.jsx)("div",{className:(0,a.default)("max-w-screen "),children:(0,t.jsx)("div",{className:(0,a.default)("py-spacing/padding/soft-8px"),children:(0,t.jsxs)(y.PageContentContainer,{children:[(0,t.jsx)("h3",{className:"mb-4 text-left font-bold text-2xl sm:mb-6 sm:text-3xl md:mb-7 md:text-center md:text-4xl lg:mb-8",children:e}),N?(0,t.jsx)(_.FeCarousel,{swiperPropsOverride:{speed:500,enabled:A,centeredSlides:!1,autoplay:{delay:2500,disableOnInteraction:!1,pauseOnMouseEnter:!0},pagination:!!A&&{clickable:!0},loop:l<768,breakpoints:{360:{slidesPerView:1},767:{slidesPerView:1},1279:{slidesPerView:3,spaceBetween:24},1440:{slidesPerView:3,spaceBetween:24},1920:{slidesPerView:3,spaceBetween:24}}},slideClassNames:"flex flex-col",showNavigationButton:!0,navigationWrapperClassNames:"hidden",children:E.map((n,a)=>
6{if(!n)return(0,t.jsx)("div",{},`null-${a}`);let r=(0,v.getCmsPageLink)({brand:m,pageType:"article",langPrefix:x,slug:n.slug,vertical:n.section??"CREDIT_CARD",urlPrefix:n.urlPrefix}),l=n.image?.[0]?.url;return(0,t.jsx)("div",{className:"flex h-full justify-center rounded-2xl p-2 pb-8 sm:rounded-3xl md:pb-2",children:(0,t.jsxs)("div",{className:"w-full rounded-2xl border border-gray-300 shadow-md transition bg-white hover:shadow-lg sm:rounded-3xl",children:[(0,t.jsx)(c.FeLink,{href:r,target:n.id?"_self":"_blank",rel:"noreferrer",children:(0,t.jsx)(h.CmsImage,{unoptimized:!0,src:l,width:100,height:100,alt:n.title,className:"h-42 w-full rounded-t-2xl object-cover sm:h-[210px] md:h-60"})}),(0,t.jsxs)("div",{className:"flex min-h-[210px] flex-col px-6 py-4",children:[(0,t.jsx)("h3",{className:"mb-2 font-bold text-xl",children:(0,t.jsx)(c.FeLink,{href:r,target:n.id?"_self":"_blank",rel:"noreferrer",children:n.title})}),(0,t.jsx)("p",{className:"text-gray-600 text-base",children:T(C(n.subtitle),67)}),(0,t.jsxs)("a",{href:r,title:n.title,target:"_blank",className:"mt-auto flex w-full cursor-pointer items-center justify-center rounded-xl border border-primary py-2 transition text-primary hover:bg-primary-dark hover:text-white",onClick:()=>(0,s.pushDataLayer)({event:"navigate",component_type:"article-list",component_title:`${e}_${n.title}`,action:"click",index:a}),rel:"noreferrer",children:[(0,t.jsx)("span",{children:(0,f.tr)("read_more",g)}),(0,t.jsx)(b.MaterialIcon,{className:"ml-1",icon:"arrow_forward",px:18})]})]})]})},n.id)})}):(0,t.jsx)("div",{className:"space-y-4",children:E.map((n,a)=>{let r=(0,v.getCmsPageLink)({brand:m,pageType:"article",langPrefix:x,slug:n.slug,vertical:n.section??"CREDIT_CARD",urlPrefix:n.urlPrefix});return(0,t.jsxs)("div",{className:"flex overflow-hidden rounded-2xl border border-gray-300 bg-white",children:[(0,t.jsx)("div",{className:"w-1/3",children:(0,t.jsx)("a",{href:r,target:n.id?"_self":"_blank",rel:"noreferrer",children:(0,t.jsx)(h.CmsImage,{unoptimized:!0,src:n.image?.[0]?.url,width:100,height:100,alt:n.title,className:"size-full object-cover"})})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col justify-between p-6",children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold text-xl",children:(0,t.jsx)(c.FeLink,{href:r,target:n.id?"_self":"_blank",rel:"noreferrer",children:n.title})}),(0,t.jsx)("p",{className:"mb-4 text-gray-600",children:T(C(n.subtitle),75)}),(0,t.jsxs)(c.FeLink,{href:r,title:n.title,target:"_blank",className:"flex w-full items-center justify-center rounded-xl border border-primary py-2 transition text-primary hover:bg-primary-dark hover:text-white",onClick:()=>(0,s.pushDataLayer)({event:"navigate",component_type:"article-list",component_title:`${e}_${n.title}`,action:"click",index:a}),rel:"noreferrer",children:[(0,t.jsx)("span",{children:(0,f.tr)("read_more",g)}),(0,t.jsx)(b.MaterialIcon,{className:"ml-1",icon:"arrow_forward",px:18})]})]})]},n.id)})})]})})})})}):null}],477503);var E=e.i(450818),N=e.i(131894);let A=({bg_url:e})=>{let[n,a]=(0,r.useState)("100%");return(0,r.useEffect)(()=>{let e=()=>{a(`${window.visualViewport?.width??window.innerWidth}px`)};return window.addEventListener("resize",e),window.visualViewport&&window.visualViewport.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e),window.visualViewport&&window.visualViewport.removeEventListener("resize",e)}},[]),(0,t.jsx)("div",{className:"absolute inset-0 left-[calc(-50vw+50%)] z-0 bg-right bg-no-repeat bg-[#a8dbde] sm:bg-cover sm:bg-center",style:{width:n,backgroundImage:e}})};e.s(["NewsletterSubscription",0,({title:e,description:n,bg_image:a,notes:l})=>{let{lang:i}=(0,u.useClientContext)(),[o,c]=(0,r.useState)(""),[d,p]=(0,r.useState)(!1),[m,h]=(0,r.useState)(null),[g,x]=(0,r.useState)(null),b=async()=>{p(!0),h(null);let e=o.trim().toLowerCase();(0,s.pushDataLayer)({event:"form_submit",lead_form_name:"newsletterSubscriptionSS",form_type:"subscription form",action:"submit",marketing_consent:"yes",user_data:{email:e,email_hash_sha256:(0,N.sha256)(e)},user_identities:{email:e}});try{console.error("Newsletter subscription not implemented"),c("");
6let e=`${(0,f.tr)("subscription_successful",i)}!`;x(e)}catch(e){h(e.response?.data?.error||`${(0,f.tr)("error_form",i)}.`)}finally{p(!1)}};return(0,t.jsxs)("div",{className:"relative xl:min-h-100",children:[(0,t.jsx)(A,{bg_url:`url(${a?.url})`}),(0,t.jsxs)("div",{className:"relative mx-auto grid max-w-screen-2xl grid-cols-1 px-4 py-8 sm:py-11 md:grid-cols-2 md:px-8 md:py-16 lg:py-14",children:[(0,t.jsx)("div",{className:"hidden sm:block"}),(0,t.jsx)("div",{className:"flex justify-center md:justify-end",children:(0,t.jsxs)("div",{className:"!w-full lg:max-w-[530px] xl:max-w-[554px]",children:[(0,t.jsx)("h3",{className:"mhg-alpha-typography-display-1 mb-1 text-gray-900",children:e}),(0,t.jsx)("p",{className:"mhg-alpha-typography-body-1 mb-2 font-medium text-gray-600",children:n}),(0,t.jsxs)("div",{className:"flex flex-col justify-start",children:[(0,t.jsx)(E.Input,{onChange:e=>{c(e.target.value)},value:o,type:"email",placeholder:(0,f.tr)("enter_your_email",i)??"",containerProps:{className:"!min-w-[unset] md:!min-w-[200px]"},className:"newsletter-input w-full rounded-lg border border-gray-400 font-medium bg-white"}),(0,t.jsx)(E.Button,{disabled:d,onClick:b,className:"mt-2 w-full md:mt-4",children:d?`${(0,f.tr)("submitting",i)}... `:(0,f.tr)("subscribe",i)})]}),m&&(0,t.jsx)("p",{className:"mt-2 w-full text-center font-bold text-red",children:m}),g&&(0,t.jsx)("p",{className:"mt-2 w-full text-center font-bold text-primary",children:g}),l&&(0,t.jsx)("div",{className:"mt-2 flex text-left text-gray-600 text-font-size/badge md:mt-4 md:text-font-size/sm",dangerouslySetInnerHTML:{__html:l}})]})})]})]})}],872574),e.i(627373),e.i(804913);var k=e.i(674686),w=e.i(928441);e.i(713222);var S=e.i(178680),I=e.i(418081);e.s(["HPReviewCards",0,({backgroundColor:e,title:n,items:r})=>{let l=(0,u.useClientContext)(),i=(0,I.getClientTranslations)(w.TRANSLATIONS,l),s=(0,k.useBreakpoint)({_:!0,xxl:!1}),o=r?.length&&(s||r.length>3);return(0,t.jsx)("div",{className:(0,a.default)({"bg-colors/neutral-white":e===S.EnumTestimonialsBackgroundColor.White,"bg-colors/brand-default-secondary-light":e===S.EnumTestimonialsBackgroundColor.LightGreen,"bg-colors/brand-default-primary-50":e===S.EnumTestimonialsBackgroundColor.LightBlue,"bg-colors/neutral-gray-100":e===S.EnumTestimonialsBackgroundColor.LightGrey,"bg-gradient-to-l from-fill/base to-[#ECFFEF]":!e}),children:(0,t.jsxs)("div",{className:"mx-auto max-w-screen-2xl px-4 py-8 md:px-6 lg:px-8 lg:py-10 xl:px-9 xl:py-11",children:[(0,t.jsx)("h3",{className:"font-bold text-gray-900 text-2xl leading-[30px] md:mb-6 md:text-center md:text-3xl md:leading-[34px] lg:mb-7 lg:text-4xl lg:leading-[44px] xl:mb-8",children:n}),(0,t.jsx)(_.FeCarousel,{swiperPropsOverride:{pagination:!0,centeredSlides:!0,slidesPerView:"auto",spaceBetween:16,autoplay:!!o&&{delay:2e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},breakpoints:{1280:{centeredSlides:!1,slidesPerView:3,spaceBetween:36,autoplay:!!r&&r.length>3&&{delay:2e3,disableOnInteraction:!1,pauseOnMouseEnter:!0}}}},slideClassNames:"flex flex-col py-padding/y-sm !h-auto",navigationWrapperClassNames:"hidden 1280:block",swiperNestedClassNames:"!pb-4 overflow-visible",children:(r??[])?.map(e=>(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)("div",{className:"flex min-h-60 w-full max-w-screen-2sm flex-col rounded-radius/card border border-gray-300 p-4 bg-white md:p-6 lg:min-h-80 xl:min-h-[310px] ",children:[(0,t.jsx)("h3",{className:"mb-2 font-bold text-gray-900 text-lg md:text-xl md:leading-7 lg:text-2xl lg:leading-[30px]",children:e?.title}),(0,t.jsx)("p",{className:"grow font-medium text-gray-700 text-sm md:text-base md:leading-[22px] lg:text-lg lg:leading-6",children:e?.description}),(0,t.jsxs)("div",{className:"mt-4 flex items-center ",children:[e?.author_image&&(0,t.jsx)(h.CmsImage,{unoptimized:!0,width:40,height:40,src:e?.author_image?.url,alt:e?.author_image?.alternativeText,className:"mr-2 rounded-full"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-gray-900 text-xs md:text-sm md:leading-5 lg:text-base lg:leading-[22px]",children:e?.author_name}),e?.review_url&&(0,t.jsxs)("p",{className:"font-normal text-gray-700 text-xs md:text-sm md:leading-5 lg:text-base lg:leading-[22px]",children:[i.reviewed_on," ",(0,t.jsx)(c.FeLink,{target:"_blank",href:e?.review_url,className:"underline",children:e?.review_label})]})]})]})]})}
6,e.title))})]})})}],345063);let D={_:"100vw",lg:"1086px"};e.s(["ARTICLE_IMAGE_SIZES",0,D],182097),e.s(["ImageCmp",0,({image:e,caption:n,visible:r,width:l,alignment:i,pageType:s})=>{if(!1===r||!e?.url)return null;let o=l===S.EnumImageWidth.Width_100Percent,c="article"===s&&o,d=c?"":i===S.EnumImageAlignment.Center?"md:mx-auto":i===S.EnumImageAlignment.Right?"md:ml-auto":"md:mr-auto",u=c||i===S.EnumImageAlignment.Left?"text-left":i===S.EnumImageAlignment.Right?"text-right":"text-center";return(0,t.jsx)(m.TheWrapper,{type:"simple",children:(0,t.jsxs)("div",{className:(0,a.default)(`w-full max-w-full ${l===S.EnumImageWidth.Width_20Percent?"md:max-w-[20%]":l===S.EnumImageWidth.Width_50Percent?"md:max-w-[50%]":l===S.EnumImageWidth.Width_100Percent?"md:max-w-full":"md:max-w-[70%]"}`,d),children:[c?(0,t.jsx)("div",{className:"relative aspect-[5/2] w-full overflow-hidden rounded-2xl xl:rounded-3xl",children:(0,t.jsx)(h.CmsImage,{src:e.url,alt:e.alternativeText??"",fill:!0,sizes:D,className:"object-cover object-center",loading:"lazy",decoding:"async"})}):(0,t.jsx)(h.CmsImage,{alt:e?.alternativeText??"",src:e.url,width:e.width??100,height:e.height??100,sizes:(e=>{switch(e){case S.EnumImageWidth.Width_20Percent:return{_:"100vw",md:"20vw"};case S.EnumImageWidth.Width_50Percent:return{_:"100vw",md:"50vw"};case S.EnumImageWidth.Width_100Percent:return{_:"100vw"};default:return{_:"100vw",md:"70vw"}}})(l),className:"h-auto w-full",loading:"lazy",decoding:"async"}),n&&(0,t.jsx)("p",{className:(0,a.default)("mt-spacing/gap/y-sm font-font-weight/caption text-text/secondary-lighter text-font-size/caption leading-line-height/caption",u),children:n})]})})}],160850);var L=e.i(443036);let j=({title:e,description:n="",link:a="",type:r="normal"})=>{let{lang:l}=(0,u.useClientContext)(),i=L.CONTENT_MHG.get(l);return"normal"===r?(0,t.jsx)(c.FeLink,{href:a,className:"card-radius flex flex-col overflow-hidden shadow bg-white",children:(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsxs)("div",{className:"mb-1 flex items-center justify-between text-gray-900 alpha-body-1",children:[(0,t.jsx)("p",{className:"font-semibold",children:e}),(0,t.jsx)(d.default,{className:"scale-50"})]}),(0,t.jsx)("p",{className:"text-gray-700 alpha-body-2",children:n})]})}):"readmore"===r?(0,t.jsx)("div",{className:"card-radius flex flex-col overflow-hidden shadow bg-white",children:(0,t.jsxs)("div",{className:"flex h-full flex-col p-4",children:[(0,t.jsx)("div",{className:"mb-1 flex justify-between text-gray-900 alpha-body-1",children:(0,t.jsx)("p",{className:"font-semibold",children:e})}),(0,t.jsx)("p",{className:"grow text-gray-700 alpha-body-2",children:n}),(0,t.jsx)("div",{className:"mt-auto flex justify-end",children:a&&(0,t.jsxs)(c.FeLink,{href:a,title:e,className:"mt-4 flex items-center text-primary alpha-button-1",children:[i.read_more," ",(0,t.jsx)(d.default,{className:"scale-50"})]})})]})}):void 0};e.s(["InfoCards",0,({items:e,title:n})=>(0,t.jsx)("div",{className:"bg-[#F5F5F5]",children:(0,t.jsx)(m.TheWrapper,{type:"simple",children:(0,t.jsxs)("div",{className:"mx-auto max-w-screen-2xl gap-4 pt-10 2xl:gap-6",children:[(0,t.jsx)("h3",{className:"mb-4 alpha-display-2 md:text-center lg:mb-6",children:n}),(0,t.jsx)("div",{className:"mx-auto gap-4 lg:max-w-[70%]",children:(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:gap-6",children:e?.filter(e=>!!e).map(e=>(0,t.jsx)(j,{title:e.title??"",description:e.description??"",link:e.link??"",type:"normal"},e.id))})})]})})})],743043),e.s(["InfoCardsFAQ",0,({id:e,faqs:n,title:a})=>(0,t.jsx)(m.TheWrapper,{type:"simple",children:(0,t.jsxs)("div",{className:"mx-auto max-w-screen-2xl gap-4 2xl:gap-6",children:[(0,t.jsx)("h3",{className:"mb-4 alpha-display-2 lg:mb-6",children:a}),(0,t.jsx)("div",{className:"mx-auto w-full gap-4",children:(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3 lg:gap-6",children:n?.map(n=>(0,t.jsx)(j,{type:"readmore",title:n?.title??"",description:n?.description??"",link:n?.link??""},e))})})]})})],717133),e.s(["Paragraph",0,({contentText:e})=>(0,t.jsx)(m.TheWrapper,{type:"simple",children:(0,t.jsx)("p",{className:"pb-0 alpha-body-2",children:e})})],792042);var P=e.i(605122),M=e.i(679335),O=e.i(497245);let R=function({className:e}){return(0,t.jsxs)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"
6currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M9.00184 17.7083C7.7974 17.7083 6.66529 17.4798 5.6055 17.0226C4.54569 16.5655 3.62382 15.9452 2.83987 15.1616C2.0559 14.378 1.43527 13.4565 0.977957 12.3972C0.520647 11.3378 0.291992 10.206 0.291992 9.00153C0.291992 7.79709 0.520548 6.66498 0.977659 5.60519C1.43477 4.54539 2.05512 3.62351 2.83872 2.83956C3.62233 2.0556 4.54381 1.43496 5.60314 0.977653C6.66245 0.520343 7.79433 0.291687 8.99877 0.291687C10.2032 0.291687 11.3353 0.520244 12.3951 0.977355C13.4549 1.43447 14.3768 2.05482 15.1607 2.83842C15.9447 3.62203 16.5653 4.5435 17.0227 5.60283C17.48 6.66215 17.7086 7.79402 17.7086 8.99846C17.7086 10.2029 17.4801 11.335 17.0229 12.3948C16.5658 13.4546 15.9455 14.3765 15.1619 15.1604C14.3783 15.9444 13.4568 16.565 12.3975 17.0223C11.3382 17.4797 10.2063 17.7083 9.00184 17.7083ZM9.0003 16.3333C11.0475 16.3333 12.7816 15.6229 14.2024 14.2021C15.6232 12.7812 16.3336 11.0472 16.3336 9C16.3336 6.95278 15.6232 5.21875 14.2024 3.79791C12.7816 2.37708 11.0475 1.66666 9.0003 1.66666C6.95308 1.66666 5.21905 2.37708 3.79822 3.79791C2.37739 5.21875 1.66697 6.95278 1.66697 9C1.66697 11.0472 2.37739 12.7812 3.79822 14.2021C5.21905 15.6229 6.95308 16.3333 9.0003 16.3333Z",fill:"#004A68"}),(0,t.jsx)("path",{d:"M8.45031 13.8812V13.1343H6.2503V12.014H10.4247C10.4811 12.014 10.5328 11.99 10.5798 11.9422C10.6268 11.8943 10.6503 11.8416 10.6503 11.7841V9.62959C10.6503 9.57213 10.6268 9.51946 10.5798 9.47158C10.5328 9.42369 10.4811 9.39975 10.4247 9.39975H7.57594C7.2055 9.39975 6.89195 9.26904 6.63528 9.00762C6.37863 8.74621 6.2503 8.42686 6.2503 8.04957V5.89501C6.2503 5.51772 6.37863 5.19837 6.63528 4.93696C6.89195 4.67554 7.2055 4.54483 7.57594 4.54483H8.45031V3.79791H9.55028V4.54483H11.7503V5.66517H7.57594C7.51952 5.66517 7.4678 5.68911 7.4208 5.737C7.37378 5.78488 7.35027 5.83755 7.35027 5.89501V8.04957C7.35027 8.10703 7.37378 8.1597 7.4208 8.20758C7.4678 8.25547 7.51952 8.27941 7.57594 8.27941H10.4247C10.7951 8.27941 11.1086 8.41012 11.3653 8.67154C11.622 8.93295 11.7503 9.2523 11.7503 9.62959V11.7841C11.7503 12.1614 11.622 12.4808 11.3653 12.7422C11.1086 13.0036 10.7951 13.1343 10.4247 13.1343H9.55028V13.8812H8.45031Z",fill:"#004A68"})]})};function B(e){let{loanAmount:t,processingFee:n,annualInterestRate:a,repaymentPeriodMonths:r,startDate:l}=e,i=function(e,t,n,a){if(0===a)return 0;if(0===n)return(e+t)/a;let r=n/12/100;return(e+t)*r*Math.pow(1+r,a)/(Math.pow(1+r,a)-1)}(t,n,a,r),s=function(e,t,n,a,r,l){let i=[],s=n/12/100,o=e+t;for(let e=1;e<=a;e++){let t=o*s,n=l-t;o-=n;let a=new Date(r);a.setMonth(a.getMonth()+e),i.push({paymentNumber:e,paymentDate:a,principal:n,interest:t,totalPayment:l,remainingPrincipal:Math.max(0,o)})}return i}(t,n,a,r,l,i),o=i*r,c=o-(t+n),d=function(e,t,n,a){let r=[e-t];for(let e=0;e<a;e++)r.push(-n);return(Math.pow(1+function(e,t=.1){let n=t;for(let t=0;t<100;t++){let t=0,a=0;for(let r=0;r<e.length;r++){let l=Math.pow(1+n,r);t+=e[r]/l,a-=r*e[r]/(l*(1+n))}if(1e-4>Math.abs(a))break;let r=n-t/a;if(1e-4>Math.abs(r-n))return r;n=r}return n}(r,.01),12)-1)*100}(t,n,i,r);return{monthlyRepayment:i,totalRepayment:o,totalInterest:c,effectiveInterestRate:d,paymentSchedule:s,processingFee:n,annualInterestRate:a}}function F(e,t="$",n=2){let a=e.toFixed(n).replace(/\B(?=(\d{3})+(?!\d))/g,",");return`${t}${a}`}function H(e,t){let n=0;for(let a=0;a<t&&a<e.length;a++)/\d/.test(e[a])&&n++;return n}function U(e,t){if(0===t)return 0;let n=0;for(let a=0;a<e.length;a++)if(/\d/.test(e[a])&&n++,n===t)return a+1;return e.length}var z=e.i(299774);let G=e=>{let{value:n,id:l,currencySymbol:i,decimals:s,onChange:o,error:c,errorMessage:d,defaultValue:u=0}=e,[p,m]=(0,r.useState)(n.toString()),h=(0,r.useRef)(null),f=(0,r.useRef)(!1),g=(0,r.useRef)(null);(0,r.useEffect)(()=>{f.current||m(F(n,"",s))},[n,s]),(0,r.useLayoutEffect)(()=>{if(null!==g.current&&h.current){let e=g.current;g.current=null,h.current.setSelectionRange(e,e)}},[p]);let x="$"===i,b=x?"attach_money":i;return(0,t.jsx)(z.AlphaTextInput,{ref:h,id:l,autoComplete:"off",className:"!border-1 !mhg-alpha-form-input flex h-button/size items-center self-stretch [appearance:textfield] read-only:bg-[--highlights-gray-light] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",prefixClassName:(0,a.default)("font-font-we
6ight/normal text-gray-600",{"material-symbols-outlined text-font-size/display-1 !left-3":x}),icon:"",inputMode:0===s?"numeric":"decimal",type:"text",value:p,onFocus:()=>{f.current=!0},onBlur:()=>{f.current=!1;let e=p.replace(/,/g,""),t=Number(e);(!e||isNaN(t))&&(t=u),o(t),m(F(t,"",s))},onChange:e=>{let t,n=e.target.value,a=e.target.selectionStart??n.length,r=function(e,t){if(0===t){let t=e.replace(/\D/g,"");return t?t.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,","):""}let n=e.replace(/[^\d.]/g,""),a=n.indexOf(".");if(-1!==a){let e=n.substring(0,a),t=n.substring(a+1).replace(/\./g,"");n=`${e}.${t}`}if(!n)return"";let r=n.split("."),l=r[0].replace(/^0+(?=\d)/,"")||"0";return(l=l.replace(/\B(?=(\d{3})+(?!\d))/g,","),1===r.length)?l:`${l}.${r[1]}`}(n,s);if(s>0){let e=n.indexOf("."),l=r.indexOf(".");t=-1!==e&&-1!==l&&a>e?Math.min(Math.max(l+(a-e),0),r.length):U(r,H(n,a))}else t=U(r,H(n,a));g.current=t,m(r)},prefix:b,placeholder:u?F(u,i,s):"0",required:!0,error:c,hideValidation:!d,setCustomValidity:()=>d||""})};var V=e.i(105370);let $=({header:e,children:n,defaultOpen:a=!1})=>{let[l,i]=(0,r.useState)(a),s=(0,r.useCallback)(()=>{i(e=>!e)},[i]);return(0,t.jsxs)("div",{children:[(0,t.jsx)(V.default,{isOpen:l,showExpandIcon:!0,className:"flex w-full items-center text-center",iconClassName:"text-font-size/bullet-1 overflow-visible",toggleVisibility:s,children:e}),l&&n]})},Y=[6,12,18,24,30,36,48,60,72,84,96];var W=e.i(838622),q=e.i(494203),K=e.i(164924);let Q={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px",wordWrap:"normal"},Z=(e,t)=>!e&&!t||!!e&&!!t&&e.getTime()===t.getTime(),X=(e,t)=>{if("string"!=typeof e)return[...t];let n=e.split("|").map(e=>e.trim()).filter(Boolean);return n.length!==t.length?[...t]:n},J=(e,t)=>12*e.getYear(t)+e.getMonth(t),ee=(e,t)=>{let n=Math.floor(t/12);return e.startOfMonth(e.newDate(n,t%12,1))},et=(e,t)=>{let n=e.startMonth??e.fromMonth,a=e.endMonth??e.toMonth;n||void 0===e.fromYear||(n=t.newDate(e.fromYear,0,1)),a||void 0===e.toYear||(a=t.newDate(e.toYear,11,31));let r="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;if(n)n=t.startOfMonth(n);else if(r){let a=e.today??t.today();n=t.startOfYear(t.addYears(a,-100))}if(a)a=t.endOfMonth(a);else if(r){let n=e.today??t.today(),r=Math.max(0,(e.numberOfMonths??1)-1),l=t.startOfMonth(t.addYears(n,10)),i=t.addMonths(l,r);a=t.endOfMonth(i)}return[n?t.startOfDay(n):void 0,a?t.startOfDay(a):void 0]},en=(e,t,n,a)=>{let r=e.startOfMonth(a),l=t?e.startOfMonth(t):void 0,i=n?e.startOfMonth(n):void 0,s=l||(i?e.startOfMonth(e.addYears(i,-20)):e.startOfMonth(e.addYears(r,-10))),o=i||(l?e.startOfMonth(e.addYears(l,20)):e.startOfMonth(e.addYears(r,10)));if(!s||!o)return[];let c=l?J(e,l):void 0,d=i?J(e,i):void 0,u=[],p=e.startOfMonth(s);for(;e.isBefore(p,o)||e.isSameMonth(p,o);){let t=J(e,p),n=void 0!==c&&t<c||void 0!==d&&t>d;u.push({value:t,label:e.formatMonthYear(p),disabled:n}),p=e.addMonths(p,1)}return u};e.s(["areRangesEqual",0,(e,t)=>Z(e?.from,t?.from)&&Z(e?.to,t?.to),"buildMonthYearOptions",0,en,"createMonthBoundaryModifierClassNames",0,()=>({firstDayOfMonth:["first-day-of-month"].filter(Boolean).join(" "),lastDayOfMonth:["last-day-of-month"].filter(Boolean).join(" ")}),"dateFromMonthValue",0,ee,"getMonthKey",0,e=>12*e.getFullYear()+e.getMonth(),"getNavigationRange",0,et,"isLastDayOfMonth",0,e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate()===e.getDate(),"monthValueFromDate",0,J,"normalizeMonth",0,e=>new Date(e.getFullYear(),e.getMonth(),1),"parseTranslationList",0,X,"rangeFromProps",0,(e,t)=>{let n=e??void 0,a=t??void 0;if(n||a)return{from:n,to:a}},"visuallyHiddenStyles",0,Q],104291);var ea=e.i(697791),er=e.i(945919);let el="flex h-button/size w-full items-center gap-2 rounded-radius/button border border-gray-400 px-padding/x-inner-element opacity-100 text-text/primary alpha-form-input focus-within:border-2 focus-within:!border-black hover:border-border/form-hover hover:shadow-md disabled:text-gray-600 disabled:hover:shadow-none bg-buttons/base",ei="flex w-full items-center justify-start",es="z-[--z-index-dropdown] border border-gray-400 p-0 w-[--general-content-max-width] max-w-[--general-content-max-width] lg:w-auto lg:max-w-auto",eo=["January","February","March","April","May","June","July","August","September","October","November","December"],ec="pointer-events-auto flex h-[--button-size-regular] min-h-[--button-size-regular] w-[--button-size-regular] min-w-[--button-size-regular] items-center justify-center gap-[--button-gap] rounded-full border border-[--buttons-primary] bg-[--buttons-base] px-[--button-padding-regular-x] py-0 text-[--buttons-primary] shadow-md transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-800 disabled:cursor-not-allowed disabled:border-buttons/disable disabled:text-[--buttons-disable] disabled:shadow-none active:bg-buttons/primary-hover active:border-buttons/primary-hover active:text-text/on-dark !p-0 z-10";function ed({canGoToPreviousMonth:e,canGoToNextMonth:n,onPreviousMonthClick:r,onNextMonthClick:l}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:r,disabled:!e,className:(0,a.default)(ec,"absolute left-0 top-1/2 -translate-y-1/2 -translate-x-[calc(var(--button-size-regular)/2)]"),"aria-label":"Previous month",children:(0,t.jsx)(b.MaterialIcon,{icon:"arrow_left_alt"})}),(0,t.jsx)("button",{type:"button",onClick:l,disabled:!n,className:(0,a.default)(ec,"absolute right-0 top-1/2 -translate-y-1/2 translate-x-[calc(var(--button-size-regular)/2)]"),"aria-label":"Next month",children:(0,t.jsx)(b.MaterialIcon,{icon:"arrow_right_alt"})})]})}function eu({dayPickerProps:e,isMobileSingleMonth:n,canGoToPreviousMonth:r,canGoToNextMonth:l,onPreviousMonthClick:i,onNextMonthClick:s,onDoneClick:c,doneLabel:d}){return(0,t.jsxs)("div",{className:(0,a.default)("date-range-picker",{"relative date-range-picker--mobile":n}),children:[(0,t.jsxs)("div",{className:(0,a.default)("px-[--spacing-padding-x] py-[--spacing-padding-y-sm]",{"overflow-visible":n}),children:[n&&(0,t.jsx)(ed,{canGoToNextMonth:l,canGoToPreviousMonth:r,onNextMonthClick:s,onPreviousMonthClick:i}),(0,t.jsx)(ea.DayPicker,{...e})]}),(0,t.jsx)("div",{className:"flex justify-end border-t border-t-borders/default px-[--spacing-padding-x] py-[--spacing-padding-y-sm]",children:(0,t.jsx)(o.default,{onClick:c,styleType:"primary",type:"button",variant:"outline",children:d})})]})}e.s(["defaultContentClassName",0,es,"defaultDoneLabel",0,"Done","defaultFormatDate",0,e=>(0,er.format)(e,"MMM dd, yyyy"),"defaultMonthNames",0,eo,"defaultPlaceholder",0,"Select dates","defaultPlacement",0,"bottom-end","defaultTr
6iggerButtonClassName",0,ei,"defaultTriggerWrapperClassName",0,el,"defaultWeekdayNames",0,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"mobileNavigationButtonClassName",0,ec],936739);let ep=(0,e.i(275760).getDefaultClassNames)();function em(e){let t=(0,r.useMemo)(()=>({disabled:(0,a.default)(`${ep.disabled} [&>button]:!text-text/disabled`),caption_label:(0,a.default)(`${ep.caption_label} flex items-center gap-spacing/gap/soft-4px text-text/primary mhg-alpha-typography-subheading-2`),month_caption:(0,a.default)(`${ep.caption_label} flex justify-center items-center !h-[--button-size-regular]`),chevron:(0,a.default)(`${ep.chevron} !fill-text/primary`),month:(0,a.default)(`${ep.month} grid gap-y-spacing/gap/soft-8px`),months:(0,a.default)(`${ep.months} flex items-start flex-nowrap gap-spacing/padding/section-x-lg`),month_grid:(0,a.default)(`${ep.month_grid} grid gap-y-spacing/gap/soft-8px`),weekdays:(0,a.default)(`${ep.weekdays} grid grid-cols-7`),weekday:(0,a.default)(`${ep.weekday} flex justify-center`),day_button:(0,a.default)(`${ep.day_button} relative !size-[--button-size-regular] rounded-full p-0 text-center !text-text/primary !alpha-bullet-2 focus-within:relative hover:rounded-full hover:border-2 hover:border-primary-800 disabled:!cursor-not-allowed disabled:hover:border-0`),selected:(0,a.default)(`${ep.selected} !font-normal !font-sans !text-[14px] hover:[&>button]:!border-2`),weeks:(0,a.default)(`${ep.weeks} grid gap-y-spacing/gap/soft-8px`),week:(0,a.default)(`${ep.week} grid grid-cols-7`),day:(0,a.default)(`${ep.day} box-content flex items-center justify-center !h-[--button-size-regular] px-spacing/gap/soft-4px !alpha-form-input`),range_start:(0,a.default)(`${ep.range_start} disabled:!bg-white [&>button]:!border-primary-800 [&>button]:!bg-primary-800 [&>button]:!text-white disabled:[&>button]:!bg-gray-800`,"rdp-range-start"),range_end:(0,a.default)(`${ep.range_end} disabled:!bg-white [&>button]:!border [&>button]:!border-borders/form-default [&>button]:!bg-[--buttons-base] [&>button]:!text-text/primary hover:[&>button]:border-borders/form-hover disabled:[&>button]:!bg-gray-800`,"rdp-range-end"),range_middle:(0,a.default)("!bg-[--fill-primary-light] [&>button]:!border-0 [&>button]:!text-text/primary","rdp-range-middle")}),[]);return(0,r.useMemo)(()=>{if(!e)return t;let n={...t};return Object.entries(e).forEach(([e,r])=>{if(!r)return;let l=t[e];n[e]=l?(0,a.default)(l,r):r}),n},[t,e])}e.s(["useDateRangeClassNames",()=>em],161163),e.i(271210);var eh=e.i(686148);let ef=(0,eh.staticText)({placeholder:{_:"Select dates",zh:"é¸ææ¥æ"},done:{_:"Done",zh:"宿"},confirmReturnDate:{_:"Confirm return date",zh:"確èªåç¨æ¥æ"},confirmDepartureDate:{_:"Confirm departure date",zh:"確èªåºç¼æ¥æ"},guidanceStart:{_:"Pick your trip start date.",zh:"é¸æä½ çæ
ç¨éå§æ¥æã"},guidanceEnd:{_:"Now pick your return date.",zh:"é¸æä½ çåç¨æ¥æã"},guidanceAnnual:{_:"Pick your start date â annual cover runs a full year, so we set the end date for you.",zh:"é¸æä½ çéå§æ¥æ â å
¨å¹´ä¿éæ¶µè䏿´å¹´ï¼çµææ¥æå°ç±æåçºä½ è¨å®ã"},footerEmpty:{_:"Select travel dates",zh:"é¸æä½ çæ
鿥æ"},footerPickReturn:{_:"· pick your return date",zh:"· 鏿åç¨æ¥æ"},footerLocalTime:{_:"All dates are in local time",zh:"æææ¥æå以ç¶å°æéçºæº"},footerDayCountOne:{_:"({count} day{suffix})",zh:"ï¼å
±{count}天{suffix}ï¼"},footerDayCountOther:{_:"({count} days{suffix})",zh:"ï¼å
±{count}天{suffix}ï¼"},footerAnnualSuffix:{_:" · annual cover",zh:" · å
¨å¹´ä¿é"},reasonPast:{_:"Trips can't start before today.",zh:"è¡ç¨ä¸å¯æ©æ¼ä»å¤©éå§ã"},reasonAdvanceWindow:{_:"Purchase up to {count} days in advance.",zh:"ææ©å¯æå{count}天æä¿ã"},reasonBeforeStart:{_:"Your return date must be on or after your start date.",zh:"æ¨çåç¨æ¥æå¿
é 卿¨çèµ·ç¨æ¥æç¶å¤©æä¹å¾ã"},reasonMaxDuration:{_:"Single trips can last up to {count} days.",zh:"宿¬¡è¡ç¨æé· {count} 天ã"},dayLabelToday:{_:"Today",zh:"ä»å¤©"},dayLabelSelected:{_:"selected",zh:"已鏿"},previousMonthLabel:{_:"Previous month",zh:"ä¸åæ"},nextMonthLabel:{_:"Next month",zh:"ä¸åæ"},monthNames:{_:"January|February|March|April|May|June|July|August|September|October|November|December",zh:"1æ|2æ|3æ|4æ|5æ|6æ|7æ|8æ|9æ|10æ|11æ|12æ"},weekdayNames:{_:"S|M|T|W|T|F|S",zh:"æ¥|ä¸|äº|ä¸|å|äº|å
"},weekdayNamesShort:{_:"Sun|Mon|Tue|Wed|Thu|Fri|Sat",zh:"æ¥|ä¸|äº|ä¸|å|äº|å
"},sheetTitle:{_:"Select Dates",zh:"é¸ææ¥æ"},sheetClose:{_:"Close",zh:"éé"},sheetStartDateLabel:{_:"Start date",zh:"èµ·ç¨æ¥æ"},sheetReturnDateLabel:{_:"Return date",zh:"åç¨æ¥æ"},sheetEndDateLabel:{_:"End date",zh:"çµææ¥æ"},sheetEmptyDate:{_:"â",zh:"â"}});e.s(["DateRangePickerStaticText",0,ef],58391);let eg=function({className:e}){return(0,t.jsx)("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"
6currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M7.99998 13.9423C7.75511 13.9423 7.54646 13.8561 7.37403 13.6836C7.20159 13.5112 7.11538 13.3026 7.11538 13.0577C7.11538 12.8128 7.20159 12.6042 7.37403 12.4317C7.54646 12.2593 7.75511 12.1731 7.99998 12.1731C8.24484 12.1731 8.45349 12.2593 8.62593 12.4317C8.79836 12.6042 8.88458 12.8128 8.88458 13.0577C8.88458 13.3026 8.79836 13.5112 8.62593 13.6836C8.45349 13.8561 8.24484 13.9423 7.99998 13.9423ZM12 13.9423C11.7551 13.9423 11.5465 13.8561 11.374 13.6836C11.2016 13.5112 11.1154 13.3026 11.1154 13.0577C11.1154 12.8128 11.2016 12.6042 11.374 12.4317C11.5465 12.2593 11.7551 12.1731 12 12.1731C12.2448 12.1731 12.4535 12.2593 12.6259 12.4317C12.7984 12.6042 12.8846 12.8128 12.8846 13.0577C12.8846 13.3026 12.7984 13.5112 12.6259 13.6836C12.4535 13.8561 12.2448 13.9423 12 13.9423ZM16 13.9423C15.7551 13.9423 15.5465 13.8561 15.374 13.6836C15.2016 13.5112 15.1154 13.3026 15.1154 13.0577C15.1154 12.8128 15.2016 12.6042 15.374 12.4317C15.5465 12.2593 15.7551 12.1731 16 12.1731C16.2448 12.1731 16.4535 12.2593 16.6259 12.4317C16.7984 12.6042 16.8846 12.8128 16.8846 13.0577C16.8846 13.3026 16.7984 13.5112 16.6259 13.6836C16.4535 13.8561 16.2448 13.9423 16 13.9423ZM5.3077 21.5C4.80257 21.5 4.375 21.325 4.025 20.975C3.675 20.625 3.5 20.1974 3.5 19.6923V6.30772C3.5 5.80259 3.675 5.37502 4.025 5.02502C4.375 4.67502 4.80257 4.50002 5.3077 4.50002H6.69233V2.38464H8.23075V4.50002H15.8077V2.38464H17.3076V4.50002H18.6923C19.1974 4.50002 19.625 4.67502 19.975 5.02502C20.325 5.37502 20.5 5.80259 20.5 6.30772V19.6923C20.5 20.1974 20.325 20.625 19.975 20.975C19.625 21.325 19.1974 21.5 18.6923 21.5H5.3077ZM5.3077 20H18.6923C18.7692 20 18.8397 19.9679 18.9038 19.9038C18.9679 19.8397 19 19.7692 19 19.6923V10.3077H4.99997V19.6923C4.99997 19.7692 5.03202 19.8397 5.09612 19.9038C5.16024 19.9679 5.23077 20 5.3077 20ZM4.99997 8.80774H19V6.30772C19 6.23079 18.9679 6.16026 18.9038 6.09614C18.8397 6.03204 18.7692 5.99999 18.6923 5.99999H5.3077C5.23077 5.99999 5.16024 6.03204 5.09612 6.09614C5.03202 6.16026 4.99997 6.23079 4.99997 6.30772V8.80774Z"})})},ex=({id:e,value:n,minDate:l,maxDate:i,onChange:s,disabled:o=!1,className:c=""})=>{let d=(0,u.useClientContext)(),p=d.lang,m=(0,I.getClientTranslations)(ef,d),[h,f]=(0,r.useState)(!1),g=(0,k.useBreakpoint)({_:"_",sm:"sm",md:"md",lg:"lg"}),x="_"===g||"sm"===g,b=(0,r.useMemo)(()=>X(m.monthNames,eo),[m.monthNames]),y=em(),_=(0,r.useMemo)(()=>(e=>{let{BaseComponent:n,monthNames:a,localeCode:l}="function"==typeof e||void 0===e?{BaseComponent:e,monthNames:void 0,localeCode:void 0}:e??{},i=e=>{let{dayPickerProps:i,goToMonth:s,classNames:o,styles:c,components:d,labels:u,formatters:p}=(0,K.useDayPicker)(),{calendarMonth:m,children:h,displayIndex:f,...g}=e,x=(0,r.useMemo)(()=>new W.DateLib({locale:i.locale,weekStartsOn:i.broadcastCalendar?1:i.weekStartsOn,firstWeekContainsDate:i.firstWeekContainsDate,useAdditionalWeekYearTokens:i.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:i.useAdditionalDayOfYearTokens,timeZone:i.timeZone,numerals:i.numerals},i.dateLib),[i]),b=(0,r.useCallback)(e=>{let t=Number(e.target.value);Number.isNaN(t)||s(ee(x,t))},[x,s]);if("dropdown"!==i.captionLayout)return n?(0,t.jsx)(n,{...e}):(0,t.jsx)("div",{...g,children:h});let y=x.startOfMonth(m.date),[_,v]=et(i,x),C=(l??i.locale?.code??"").toLowerCase().startsWith("zh"),T=en(x,_,v,y).map(e=>{let t=ee(x,e.value),n=x.getMonth(t),r=a?.[n],l=x.getYear(t),s=x.getMonthYearOrder(),o=C?`${l}å¹´${n+1}æ`:void 0===r?e.label:"year-first"===s?`${l} ${r}`:`${r} ${l}`;return{...e,label:o,disabled:e.disabled||!!i.disableNavigation}});if(0===T.length)return n?(0,t.jsx)(n,{...e}):(0,t.jsx)("div",{...g,children:h});let E=p.formatCaption(y,x.options,x);return(0,t.jsxs)("div",{...g,children:[(0,t.jsx)(d.Dropdown,{"aria-label":u.labelMonthDropdown(),className:o[q.UI.MonthsDropdown],classNames:o,components:d,disabled:!!i.disableNavigation,onChange:b,options:T,style:c?.[q.UI.Dropdown],value:J(x,y)}),(0,t.jsx)("span",{"aria-live":"polite",role:"status",style:Q,children:E})]})};return i.displayName="DateRangePickerMonthCaption",i})({monthNames:b,localeCode:p}),[b,p]),v=(0,r.useCallback)(()=>f(!1),[]),C=(0,r.useCallback)(e=>{e&&(s(e),v())},[s,v]),T=(0,r.useMemo)(()=>n?function(e,t){if(!e)return"";if(t.startsWith("zh")){let t=e.getFullYear(),n=e.getMonth()+1,a=e.getDate();return`${t}å¹´${n}æ${a}æ¥`}return e.toLocaleDateString(t||"en-US",{year:"numeric",month:"long",day:"numeric"})}(n,p):"",[n,p]),N=`${el} ${c}`,[A,w]=(0,r.useState)(n??new Date),S=(0,r.useCallback)(e=>{w(e)},[]),D=(0,r.useMemo)(()=>({mode:"single",selected:n,onSelect:C,hideNavigation:!0,captionLayout:"dropdown",components:{MonthCaption:_},classNames:y,disabled:l&&i?[{before:l},{after:i}]:l?{before:l}:i?{after:i}:void 0,startMonth:l,endMonth:i,month:x?A:void 0,onMonthChange:x?S:void 0}),[n,C,_,y,l,i,x,A,S]),L=e=>12*e.getFullYear()+e.getMonth(),j=l?L(l):void 0,P=i?L(i):void 0,M=L(A),R=x&&(void 0===j||M>j),B=x&&(void 0===P||M<P),F=(0,t.jsx)(eu,{dayPickerProps:D,doneLabel:m.done,isMobileSingleMonth:x,canGoToNextMonth:B,c
6anGoToPreviousMonth:R,onNextMonthClick:()=>w(e=>{let t=(0,O.addMonths)(e,1);return i&&L(t)>L(i)?e:t}),onPreviousMonthClick:()=>w(e=>{let t=(0,O.addMonths)(e,-1);return l&&L(t)<L(l)?e:t}),onDoneClick:v}),H=x?(0,t.jsxs)("div",{className:"pointer-events-auto fixed inset-0 z-[--z-index-dropdown] flex items-center justify-center px-4",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 bg-black/30",onClick:v}),(0,t.jsx)("div",{className:"relative z-10 max-h-[calc(100vh-32px)] w-full max-w-general/content-max-width rounded-radius/button border border-borders/default bg-colors/neutral-white",children:F})]}):F,U=(0,a.default)(es,{"pointer-events-none border-0 bg-transparent shadow-none w-full max-w-full":x});return(0,t.jsxs)(E.Popover,{open:h,handler:f,placement:"bottom-start",children:[(0,t.jsx)(E.PopoverHandler,{children:(0,t.jsx)("div",{className:N,children:(0,t.jsxs)("button",{type:"button",id:e,onClick:()=>{o||f(!0)},disabled:o,className:ei,children:[(0,t.jsx)("span",{className:"mr-2 text-gray-600",children:(0,t.jsx)(eg,{})}),T?(0,t.jsx)("span",{className:"mhg-alpha-typography-form-input whitespace-nowrap text-text/primary",children:T}):null]})})}),(0,t.jsx)(E.PopoverContent,{className:U,children:H})]})};ex.displayName="DateInput";let eb=(0,eh.staticText)({loan_details:{_:"Loan details",zh:"貸款詳æ
"},loan_amount:{_:"Loan amount",zh:"貸款éé¡"},currency_note_sgd:{_:"All dollar values are in Singapore Dollars (S$).",zh:"ææéé¡å以æ°å å¡å
ï¼SGD$ï¼è¨ç®ã"},currency_note_hkd:{_:"All dollar values are in Hong Kong Dollars (HK$).",zh:"ææéé¡å以港å
ï¼HK$ï¼è¨ç®ã"},currency_note_ntd:{_:"All dollar values are in New Taiwan Dollars (NT$).",zh:"ææéé¡å以æ°å°å¹£ï¼NT$ï¼è¨ç®ã"},repayment_period:{_:"Repayment period",zh:"鿬¾æ"},annual_interest_rate:{_:"Annual interest rate (% p.a.)",zh:"å¹´å©ç (%)"},processing_fee:{_:"Processing fee",zh:"æçºè²»"},start_date:{_:"Start date",zh:"éå§æ¥æ"},calculate:{_:"Calculate",zh:"è¨ç®"},loan_estimate:{_:"Loan Estimate",zh:"貸款估ç®çµæ"},monthly_repayment:{_:"Monthly repayment",zh:"æ¯æä¾æ¬¾"},total_repayment:{_:"Total repayment",zh:"ç¸½éæ¬¾éé¡"},effective_interest_rate:{_:"EIR (% p.a.)",zh:"實éå¹´å©ç (%)"},apr:{_:"APR (% p.a.)",zh:"æä½å¯¦éå¹´å©ç (%)"},principal:{_:"Principal",zh:"æ¬é"},interest:{_:"Interest",zh:"婿¯"},principal_balance:{_:"Principal Balance",zh:"å©é¤æ¬é"},payment_schedule:{_:"Payment Schedule",zh:"鿬¾æé表"},show_all:{_:"Show All",zh:"顯示å
¨é¨"},interest_rate_error:{_:"Interest rate must be between 0 and 100",zh:"å©çå¿
é 仿¼ 0 è³ 100 ä¹é"},month:{_:"Month",zh:"æä»½"},month_singular:{_:"month",zh:"åæ"},months:{_:"months",zh:"åæ"},year:{_:"year",zh:"å¹´"},years:{_:"years",zh:"å¹´"}}),ey=(0,eh.brandSpecificStaticText)({_:eb});var e_=e.i(331680);e.s(["PersonalLoanCalculator",0,({defaultLoanAmount:e,defaultRepaymentPeriod:n,defaultInterestRate:a,defaultProcessingFee:l,currencyPrefix:i,eirDescription:s,showProcessingFeeField:c,interestRateLabelOverride:d,processingFeeLabelOverride:p})=>{let h=(0,u.useClientContext)(),f=(0,I.getClientTranslations)(ey,h),g="moneyhero"===h.brand,[x,b]=(0,r.useState)(e),[y,_]=(0,r.useState)(n),[v,C]=(0,r.useState)(a),[T,N]=(0,r.useState)(l),A=c?T:0,[k,w]=(0,r.useState)(()=>{let e=new Date;return e.setDate(e.getDate()+1),e}),[S,D]=(0,r.useState)(B({loanAmount:x,processingFee:A,annualInterestRate:v,repaymentPeriodMonths:y,startDate:k})),[L,j]=(0,r.useState)(!1),H=v<0||v>100?f.interest_rate_error:"",U=(e=>{switch(e){case"SGD$":case"HKD$":case"NT$":return"$";case"PHP":case"â±":return"â±";default:return""}})(i),z=(e=>{switch(e){case"SGD$":return"currency_note_sgd";case"HKD$":return"currency_note_hkd";case"NT$":return"currency_note_ntd";default:return""}})(i),V=""!==z?f[z]:"",W=(0,r.useMemo)(()=>x>0&&y>0&&v>=0&&v<=100&&T>=0,[x,y,v,T]);return(0,t.jsx)(m.TheWrapper,{type:"simple",children:(0,t.jsx)("div",{className:"w-full rounded-radius/card bg-fill/card",children:(0,t.jsx)("div",{className:"w-full md:max-w-[720px] lg:max-w-[896px]",children:(0,t.jsxs)("div",{className:"flex flex-col gap-gap/x p-padding/y-sm md:flex-row",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-spacing/gap/soft-12px md:w-[242px] md:shrink-0 lg:w-[302px] xl:w-[338px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",hidden:!V,children:[(0,t.jsx)("h2",{className:"font-bold text-text/primary text-[18px] leading-[22px]",children:f.loan_details}),(0,t.jsx)("p",{className:"font-medium text-text/secondary-lighter text-[12px] leading-[16
6px]",children:V})]}),(0,t.jsx)("div",{className:"flex flex-col gap-2",children:(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y-sm",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("label",{htmlFor:"loanAmount",className:"font-medium text-text/secondary text-[16px] leading-[20px]",children:f.loan_amount}),(0,t.jsx)(G,{id:"loanAmount",value:x,currencySymbol:U,decimals:0,onChange:b,defaultValue:e})]}),c&&(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("label",{htmlFor:"processingFee",className:"font-medium text-text/secondary text-[16px] leading-[20px]",children:p||f.processing_fee}),(0,t.jsx)(G,{id:"processingFee",value:T,onChange:N,currencySymbol:U,decimals:2,defaultValue:l})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("label",{htmlFor:"interestRate",className:"font-medium text-text/secondary text-[16px] leading-[20px]",children:d||f.annual_interest_rate}),(0,t.jsx)(G,{id:"interestRate",value:v,onChange:C,currencySymbol:"",decimals:2,error:!!H,errorMessage:H,defaultValue:a})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("label",{htmlFor:"repaymentPeriod",className:"font-medium text-text/secondary text-[16px] leading-[20px]",children:f.repayment_period}),(0,t.jsx)(e_.AlphaSelect,{id:"repaymentPeriod",value:y.toString(),onChange:e=>_(Number(e)),selected:e=>e?(0,t.jsx)("span",{className:"alpha-form-input",children:e.props.children}):"",required:!0,children:Y.map(e=>(0,t.jsx)(E.Option,{value:e.toString(),children:1===e?`1 ${f.month_singular}`:`${e} ${f.months}`},e))})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("label",{htmlFor:"startDate",className:"font-medium text-text/secondary text-[16px] leading-[20px]",children:f.start_date}),(0,t.jsx)(ex,{id:"startDate",value:k,onChange:w,minDate:new Date,maxDate:(0,O.addMonths)(new Date,12)})]}),(0,t.jsx)(o.default,{type:"button",variant:"filled",styleType:"primary",onClick:()=>{D(B({loanAmount:x,processingFee:A,annualInterestRate:v,repaymentPeriodMonths:y,startDate:k}))},disabled:!W,className:"w-full",children:f.calculate})]})})]}),S&&(0,t.jsxs)("div",{className:"flex w-full flex-col gap-spacing/gap/x-xs md:flex-1",children:[(0,t.jsx)($,{defaultOpen:!0,header:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(R,{}),(0,t.jsx)("p",{className:"font-semibold text-[16px] leading-[20px]",children:f.loan_estimate})]}),children:(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y-sm py-spacing/padding/y md:px-spacing/padding/x-sm",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"font-bold text-text/secondary text-[14px] leading-[18px]",children:f.monthly_repayment}),(0,t.jsx)("p",{className:"font-bold text-highlights/blue-dark text-[18px] leading-[22px]",children:F(S.monthlyRepayment,U)})]}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,t.jsx)("p",{className:"font-medium text-text/secondary-lighter text-[12px] leading-[16px]",children:f.total_repayment}),(0,t.jsx)("p",{className:"font-semibold text-text/primary text-[14px] leading-[18px]",children:F(S.totalRepayment,U)})]}),c&&(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,t.jsx)("p",{className:"font-medium text-text/secondary-lighter text-[12px] leading-[16px]",children:p||f.processing_fee}),(0,t.jsx)("p",{className:"font-semibold text-text/primary text-[14px] leading-[18px]",children:F(S.processingFee,U)})]})]}),g?(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,t.jsx)("p",{className:"font-medium text-text/secondary-lighter text-[12px] leading-[16px]",children:d||f.apr}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsxs)("p",{className:"font-semibold text-text/primary text-[14px] leading-[18px]",children:[S.annualInterestRate.toFixed(2),"%"]}),!!s&&(0,t.jsx)(P.default,{content:s,placement:"top",infoClass:"size-[--shapes-icon-size-sm]"})]})]}):(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,t.jsx)("p",{className:"font-medium text-text/secondary-lighter text-[12px] leading-[16
6px]",children:d||f.annual_interest_rate}),(0,t.jsxs)("p",{className:"font-semibold text-text/primary text-[14px] leading-[18px]",children:[S.annualInterestRate.toFixed(2),"%"]})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,t.jsx)("p",{className:"font-medium text-text/secondary-lighter text-[12px] leading-[16px]",children:f.effective_interest_rate}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsxs)("p",{className:"font-semibold text-text/primary text-[14px] leading-[18px]",children:[S.effectiveInterestRate.toFixed(2),"%"]}),!!s&&(0,t.jsx)(P.default,{content:s,placement:"top",infoClass:"size-[--shapes-icon-size-sm]"})]})]})]})]})}),(0,t.jsx)($,{defaultOpen:!1,header:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eg,{}),(0,t.jsx)("span",{className:"font-semibold text-[16px] leading-[20px]",children:f.payment_schedule})]}),children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsx)("div",{className:"flex flex-col gap-spacing/gap/y-sm py-spacing/padding/y md:px-spacing/padding/x-sm",children:(0,t.jsxs)("table",{className:"w-full border-collapse overflow-hidden rounded-lg shadow-sm text-sm",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"mhg-alpha-typography-table-cell-strong h-table/cell-min-height-small bg-gray-100 text-text/primary",children:[(0,t.jsx)("th",{className:"border-b border-gray-200",children:(0,t.jsx)("div",{className:"flex flex-1 items-center gap-2.5 p-spacing/gap/soft-6px",children:f.month})}),(0,t.jsx)("th",{className:"border-b border-gray-200",children:(0,t.jsx)("div",{className:"flex flex-1 items-center gap-2.5 p-spacing/gap/soft-6px",children:f.principal})}),(0,t.jsx)("th",{className:"border-b border-gray-200",children:(0,t.jsx)("div",{className:"flex flex-1 items-center gap-2.5 p-spacing/gap/soft-6px",children:f.interest})}),(0,t.jsx)("th",{className:"border-b border-gray-200",children:(0,t.jsx)("div",{className:"flex flex-1 items-center gap-2.5 p-spacing/gap/soft-6px",children:f.principal_balance})})]})}),(0,t.jsx)("tbody",{children:(L?S.paymentSchedule:S.paymentSchedule.slice(0,6)).map(e=>{var n,a;let r,l;return(0,t.jsxs)("tr",{className:"mhg-alpha-typography-table-cell-norm transition-colors text-text/primary hover:bg-gray-50",children:[(0,t.jsx)("td",{className:"border-b border-gray-100",children:(0,t.jsx)("div",{className:"flex flex-1 items-center gap-2.5 p-spacing/gap/soft-6px",children:(n=e.paymentDate,a=h.lang,r=n.toLocaleString(a,{month:"short"}),l=n.getFullYear(),`${r} ${l}`)})}),(0,t.jsx)("td",{className:"border-b border-gray-100",children:(0,t.jsx)("div",{className:"flex flex-1 items-center gap-2.5 p-spacing/gap/soft-6px",children:F(e.principal,U)})}),(0,t.jsx)("td",{className:"border-b border-gray-100",children:(0,t.jsx)("div",{className:"flex flex-1 items-center gap-2.5 p-spacing/gap/soft-6px",children:F(e.interest,U)})}),(0,t.jsx)("td",{className:"border-b border-gray-100",children:(0,t.jsx)("div",{className:"flex flex-1 items-center gap-2.5 p-spacing/gap/soft-6px",children:F(e.remainingPrincipal,U)})})]},e.paymentNumber)})}),S.paymentSchedule.length>6&&!L&&(0,t.jsx)("tfoot",{children:(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:4,className:"border-t border-gray-200",children:(0,t.jsx)("div",{className:"flex items-center gap-spacing/gap/soft-4px px-spacing/gap/soft-6px py-gap/y-sm",children:(0,t.jsxs)("button",{type:"button",onClick:()=>j(!0),className:"flex items-center gap-spacing/gap/soft-4px","aria-expanded":!1,children:[(0,t.jsx)("span",{children:(0,t.jsx)(M.ChevronRightIcon,{size:1.8})}),(0,t.jsx)("span",{className:"mhg-alpha-typography-bullet-2 text-buttons/neutral-dark",children:f.show_all})]})})})})})]})})})})})]})]})})})})}],598883),e.s([],538789),e.i(413990);var ev=e.i(709929),eC=e.i(378885),eT=e.i(564755),eE=e.i(789450);e.i(360967);var eN=e.i(110243),eA=e.i(902639);let ek={tripTypeNotAvailable:{_:"This trip type is not available for :provider_name","zh-hk":":provider_name 䏿便¤ä¿éé¡å"},noProducts:{_:"No products available","zh-hk":"æ«ç¡å¯ç¨ç¢å"},dismiss:{_:"Dismiss","zh-hk":"éé"},searchError:{_:"We couldnât load the results. Please refresh the page to try again.","zh-hk":"ç¡æ³è¼å
¥çµæï¼è«éæ°æ´çå¾å試ã"}};e.s(["default",0,ek],243833);var ew=e.i(215233),eS=e.i(894485);function eI({message:e,dismissible:n=!1,className:l}){let i=(0,u.useClientContext)(),s=(0,I.getClientTranslations)(ek,i),[o,c]=(0,r.useState)(!1);return o?null:(0,t.jsxs)("div",{role:"status",className:(0,a.default)(l,"flex items-center gap-spacing/gap/x-xs rounded-radius
6/button px-spacing/padding/x-sm py-spacing/padding/y-xs bg-highlights/red-light text-highlights/red-dark"),children:[(0,t.jsx)(eS.default,{"aria-hidden":!0,className:"size-shapes/icon-size-md shrink-0"}),(0,t.jsx)("span",{className:"mhg-alpha-typography-body-2 flex-1",children:e}),n&&(0,t.jsx)("button",{type:"button",onClick:()=>c(!0),"aria-label":s.dismiss,className:"flex size-shapes/icon-size-md shrink-0 items-center justify-center",children:(0,t.jsx)(ew.default,{className:"size-full"})})]})}e.s(["TISearchBanner",()=>eI],681019);var eD=e.i(594999),eL=e.i(565102);let ej=e=>(0,eD.getAttrFromProduct)("INSUREMO_PRODUCT_UID",e)?.value??void 0,eP=e=>{let t=Number(e?.offeredPremium),n=Number(e?.originalPremium);return e?.originalPremium&&Number.isFinite(t)&&Number.isFinite(n)&&n>t?Math.round((1-t/n)*100):0},eM=e=>{let t=(0,u.useClientContext)(),{pageData:{travelQuotes:n},setSelectedTier:a}=(0,eA.usePageDataContext)(),r=n?.params?.insuranceType,l="ANNUAL_PLAN"===r,i=eL.MAP_BRAND_TO_COUNTRY_CODE[t.brand],s=eL.Currency[i]??"",o=e?l?e.productsAnnual:e.productsSingle:[],c=n?.status==="inprogress",d=n?.status==="success",p=new Map((n?.premiums??[]).filter(e=>!!e).map(e=>[e.brokerProductCode,e])),m=l?e?.recommendedPlanAnnual:e?.recommendedPlanSingle,h=l?e?.recommendedBadgeLabelAnnual:e?.recommendedBadgeLabelSingle,f=m?ej(m):void 0,g=o.map(({product:e,displayNameOverride:t})=>{let n=ej(e);if(!n)return;let a=p.get(n),r=(e=>{if(e?.offeredPremium)return{offered:e.offeredPremium,original:e.originalPremium||void 0,currencySymbol:e.currencySymbol??"",discountPercent:eP(e)}})(a),l=r?Number(a?.offeredPremium):NaN;return{offeredNum:Number.isFinite(l)?l:void 0,discountPercent:eP(a),card:{id:n,name:t||e.product_name||e.title||"",description:e.description??void 0,product:e,isRecommended:!!f&&f===n,price:r,isPriceLoading:c&&!r}}}).filter(e=>void 0!==e);g.sort((e,t)=>void 0===e.offeredNum&&void 0===t.offeredNum?0:void 0===e.offeredNum?1:void 0===t.offeredNum?-1:e.offeredNum-t.offeredNum);let x=g.map(e=>e.card),b=n?.selectedTier,y=x.find(e=>e.id===b);return{tiers:x,builtTiers:g,selectedTierId:b,activeTier:y,activeProduct:y?.product,activeTierName:y?.name,recommendedBadgeLabel:h,setSelectedTier:a,activeTripType:r,isAnnual:l,currencyCode:s,isSearching:c,searchCompleted:d}};e.s(["useTiTiers",0,eM],659670);var eO=e.i(334286);let eR=e=>{let{brand:n}=(0,u.useClientContext)(),{pageData:{travelQuotes:a}}=(0,eA.usePageDataContext)();if("singsaver"!==n&&"moneyhero"!==n)return null;let r="ANNUAL_PLAN"===(a?.params?.insuranceType??"SINGLE_PLAN")?e.itemsAnnual:e.itemsSingle;return e.visible&&0!==r.length?e.inline?(0,t.jsx)(eO.TrustStrip,{items:r}):(0,t.jsx)("div",{className:"-mt-spacing/gap/y",children:(0,t.jsx)(eO.TrustStrip,{items:r})}):null};e.s(["TrustStripWrapper",0,eR],144297);let eB=(0,eN.brandSpecific)({_:"MoneyHero",singsaver:"SingSaver"});e.s(["PlanTierSelectorWrapper",0,({component:e})=>{let n,a=(0,u.useClientContext)(),{pageData:{travelQuotes:l,page:i}}=(0,eA.usePageDataContext)(),{tiers:o,builtTiers:c,selectedTierId:d,recommendedBadgeLabel:p,setSelectedTier:m,activeTripType:h,isAnnual:f,currencyCode:g,searchCompleted:x}=eM(e);if((0,r.useEffect)(()=>{m(void 0)},[h,m]),"singsaver"!==a.brand&&"moneyhero"!==a.brand)return null;if(x&&0===o.length){let e=(0,eT.getClientTranslations)(eC.CONTENT_TRANSLATIONS,a);return(0,t.jsx)(eI,{message:(0,eE.tr)("noProductsAvailable",e)})}let b=(()=>{let e=c.findIndex(e=>e.card.id===d);if(e>=0)return e;let t=c.findIndex(e=>e.card.isRecommended);return t>=0?t:0})(),y=c[b];if(y&&l){let{card:t,discountPercent:r}=y,{product:i}=t,{params:s}=l,o=l.countries??[],c=l.regions??[],d=(()=>{let e=(s.destinationIsoCodes??[]).map(e=>o.find(t=>t.iso===e)?.label).filter(e=>!!e);if(e.length>0)return e;let t=c.find(e=>e.value===s.region)?.label;return t?[t]:[]})();n={title:i.product_name||i.title||"",providerName:e.provider.providerName,providerLogoUrl:e.provider.providerImage||void 0,discountPercent:r,brandName:eB.get(a.brand),price:t.price,trip:{destinationLabels:d,startDate:s.startDate,endDate:s.endDate,noOfAdults:s.noOfAdults,noOfChildren:s.noOfChildren,travelAsFamily:s.travelAsFamily},product:i,index:b}}let _=i?.components?.find(e=>e?.__typename==="TrustStripComponent");return(0,t.jsx)(ev.PlanTierSelector,{tiers:o,selectedTierId:d,recommendedBadgeLabel:p,onSelectTier:m,isAnnual
6:f,currencyCode:g,summary:n,pushDataLayer:s.pushDataLayer,leadingSlot:_&&!1!==_.visible?(0,t.jsx)(eR,{..._,inline:!0}):void 0})}],732501);var eF=e.i(909418);let eH=(e,t,n)=>{let a=e.filter(e=>e.status===t),r=n?a.find(e=>e.providerCarrierCode===n):void 0,l=a.find(e=>!e.providerCarrierCode);return(r??l)?.note||void 0};e.s(["pickDeliveryNoteHtml",0,eH],648326);var eU=e.i(478082);let ez=e=>e.toLowerCase().startsWith("zh"),eG={singsaver:"S$",moneyhero:"HK$"},eV={adultOne:{en:"Adult",zh:"ä½æäºº"},adultMany:{en:"Adults",zh:"ä½æäºº"},childOne:{en:"Child",zh:"ä½å
ç«¥"},childMany:{en:"Children",zh:"ä½å
ç«¥"},listSeparator:{en:", ",zh:"ï¼"},chinaNetworkHospital:{en:"China Network Hospital Admission",zh:"ä¸å網絡é«é¢ä½é¢"},coverSingle:{en:"Single Trip",zh:"宿¬¡è¨å"},coverAnnual:{en:"Annual",zh:"å
¨å¹´æ
ç¨"}},e$=(e,t)=>ez(t)?eV[e].zh:eV[e].en,eY=(e,t)=>`${eG[t]} ${e.toFixed(2)}`,eW=(e,t)=>{let n=e-t;if(n>0&&e>0)return`${Math.round(n/e*100)}%`},eq=(e,t)=>(0,eU.formatData)(e,ez(t)?"yyyyå¹´Mædæ¥":"MMM d, yyyy",t),eK=(e,t,n)=>{let a=n?.[e];return a||("SGL"===e?e$("coverSingle",t):"ANL"===e?e$("coverAnnual",t):void 0)},eQ={BELOW_500:{en:"500 sq ft or below",zh:"500 å¹³æ¹åæä»¥ä¸"},FROM_501_TO_750:{en:"501 - 750 sq ft",zh:"501 - 750 å¹³æ¹å"},FROM_751_TO_1000:{en:"751 - 1,000 sq ft",zh:"751 - 1,000 å¹³æ¹å"},FROM_1001_TO_1500:{en:"1,001 - 1,500 sq ft",zh:"1,001 - 1,500 å¹³æ¹å"},FROM_1501_TO_2000:{en:"1,501 - 2,000 sq ft",zh:"1,501 - 2,000 å¹³æ¹å"},ABOVE_2000:{en:"Above 2,000 sq ft",zh:"2,000 å¹³æ¹å以ä¸"}},eZ={OWNER_OCCUPIED_RENTED:{en:"Owner Occupied/Rented",zh:"èªä½/ç§ä½"},FOR_RENT:{en:"For Rent",zh:"åºç§"}},eX=(e,t,n)=>{if(!e)return;let a=n?.[e];if(a)return a;let r=eQ[e];return r?ez(t)?r.zh:r.en:void 0},eJ=(e,t,n)=>{if(!e)return;let a=n?.[e];if(a)return a;let r=eZ[e];return r?ez(t)?r.zh:r.en:void 0},e0=(e,t,n,a)=>{let r=e$(1===e?t:n,a);return ez(a)?`${e}${r}`:`${e} ${r}`},e1=(e,t)=>{let n=[];return e.noOfAdults>0&&n.push(e0(e.noOfAdults,"adultOne","adultMany",t)),e.noOfChildren>0&&n.push(e0(e.noOfChildren,"childOne","childMany",t)),n.length?n.join(e$("listSeparator",t)):void 0},e2=(e,t)=>{let n=[...e.selectedAddOns??[]];return e.coverChinaNetworkHospitalAdmission&&n.push(e$("chinaNetworkHospital",t)),n.length?n.join(e$("listSeparator",t)):void 0},e3=(e,t,n)=>{let a=t&&t.length?t:e.destinations??[];return a.length?a.join(e$("listSeparator",n)):void 0};e.s(["formatAddOns",0,e2,"formatBuiltUpArea",0,eX,"formatCoverType",0,eK,"formatDestination",0,e3,"formatDiscountPct",0,eW,"formatPolicyDate",0,eq,"formatPremium",0,eY,"formatResidenceType",0,eJ,"formatTravellers",0,e1],899824);let e4={REF_NO:e=>e.quotationNumber||void 0,PREMIUM:(e,t)=>Number.isFinite(e.collectionAmount)?eY(e.collectionAmount,t.market):void 0,DISCOUNT_PCT:e=>eW(e.basePremium,e.collectionAmount),COVER_TYPE:(e,t,n)=>eK(e.planType,t.lang,n.values),START_DATE:(e,t)=>e.startDate?eq(e.startDate,t.lang):void 0,END_DATE:(e,t)=>e.endDate?eq(e.endDate,t.lang):void 0,ADD_ONS:(e,t)=>e2(e,t.lang),DESTINATION:(e,t)=>e3(e,t.destinationLabels,t.lang),TRAVELLERS:(e,t)=>e1(e,t.lang),BUILT_UP_AREA:null},e5={REF_NO:e=>e.quotationNumber||void 0,PREMIUM:(e,t)=>Number.isFinite(e.collectionAmount)?eY(e.collectionAmount,t.market):void 0,DISCOUNT_PCT:e=>eW(e.basePremium,e.collectionAmount),COVER_TYPE:(e,t,n)=>eJ(e.residenceType,t.lang,n.values),START_DATE:(e,t)=>e.startDate?eq(e.startDate,t.lang):void 0,END_DATE:(e,t)=>e.endDate?eq(e.endDate,t.lang):void 0,ADD_ONS:(e,t)=>e2(e,t.lang),DESTINATION:null,TRAVELLERS:null,BUILT_UP_AREA:(e,t,n)=>eX(e.grossArea,t.lang,n.values)};e.s(["PolicySummaryCardWrapper",0,e=>{let{brand:n,lang:a}=(0,u.useClientContext)(),{pageData:{policySummary:r,travelDestinations:l}}=(0,eA.usePageDataContext)(),i="singsaver"===n||"moneyhero"===n?n:void 0;if(!i||!r||"ready"!==r.status||!r.data)return(0,t.jsx)(eF.PolicySummaryCard,{summary:void 0});let{data:s,isPending:o}=r,c="TI"===s.vertical?((e,t)=>{if(!t)return;let n=e.destinations??[];return"SGL"===e.planType?n.map(e=>t.countries.find(t=>t.iso===e)?.label??e):"ANL"===e.planType?n.map(e=>t.regions.find(t=>t.value===e)?.label??e):void 0})(s,l):void 0,d=((e,t,n)=>{let a=[];for(let r of e.fields){let e;if("TI"===t.vertical){let a=e4[r.key];e=a?a(t,n,r):void 0}else{let a=e5[r.key];e=a?a(t,n,r):void 0}if(void 0===e||""===e)continue;let l=r.label.trim();l&&a.push({id:r.key,label:l,value:e})}return a})({fields:e.fields},s,{lang:a,market:i,destinationLabels:c}),p=eH(e.deliveryNotes,o?"manual_underwriting":"success",s.carrierCode),m={t
6itle:s.productName,providerName:s.carrierName,providerLogoUrl:"TI"===s.vertical&&s.productImage||void 0,rows:d,deliveryNoteHtml:p};return(0,t.jsx)(eF.PolicySummaryCard,{summary:m})}],825766),e.i(782316);var e6=e.i(71613);e.i(201542);var e7=e.i(77719);e.i(174345);var e8=e.i(774860),e9=e.i(396522);e.i(73430);var te=e.i(316832),tt=e.i(43185),tn=e.i(218646);let ta=(e,t,n)=>!!(e&&(t||n)),tr=e=>{if(e)return(0,tt.formatNumberWithSeparator)({value:e,thousandsSeparator:","})},tl=({product:e,highlightTextAttribute:t,highlightTextOverride:n})=>{if(n?.trim())return{metricPrefix:void 0,metricPrimary:n.trim(),metricSecondary:void 0};let a=e?.attributes?.find(e=>t?.uid?e.name?.uid===t.uid:!!t?.name&&e.name?.name===t.name);return a?{metricPrefix:(e=>{if("ComponentAttributesAttrNumber"===e.__typename||"ComponentAttributesAttrNumberRange"===e.__typename)return e.prefix?.trim()||void 0})(a),metricPrimary:(e=>{if("ComponentAttributesAttrNumber"!==e.__typename&&"ComponentAttributesAttrNumberRange"!==e.__typename)return(0,te.formatAttributeItemValue)(e)??void 0;if("ComponentAttributesAttrNumber"===e.__typename)return e.value?tr(e.value):e.empty_value_text?.trim()||void 0;if(!e.value_start)return;let t=tr(e.value_start),n=tr(e.value_end);return n?`${t} - ${n}`:t})(a),metricSecondary:(e=>{if("ComponentAttributesAttrNumber"===e.__typename||"ComponentAttributesAttrNumberRange"===e.__typename)return e.suffix?.trim()||void 0})(a)}:{metricPrefix:void 0,metricPrimary:void 0,metricSecondary:void 0}},ti=({product:e,orderByOffer:t=!1})=>{let n=[...e?.exclusive_offers??[],...e?.bundle_exclusive_offers??[],...e?.welcome_offers??[]].flatMap(e=>e.list_of_gifts??[]).filter(e=>e.gift);return(t?n:[...n].sort((e,t)=>e.main_gift!==t.main_gift?e.main_gift?-1:1:(t.gift?.gift_value?.price??t.gift?.gift_value?.topup_amount??0)-(e.gift?.gift_value?.price??e.gift?.gift_value?.topup_amount??0))).reduce((e,t)=>{let n=t.gift?.mobile_image||t.gift?.desktop_image,a=t.gift?.gift_title||void 0;if(!n&&!a||e.some(e=>e.imageUrl===n&&e.title===a))return e;let r=t.gift?.gift_value,l=r?.price&&r.prefix?`${(0,tt.currencyFormat)(r.prefix)}${tn.currencyFormatterNoDecimal.format(r.price)}`:void 0,i=r?.topup_amount??0,s=i>0&&r?.prefix?`+${(0,tt.currencyFormat)(r.prefix)}${tn.currencyFormatterNoDecimal.format(i)}`:void 0;return e.push({imageUrl:n,title:a,worthValueText:l,topupText:s}),e},[])},ts=e=>{if(e)return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`};e.s(["getProductGridCardMetrics",0,tl,"getProductGridCardPreviewItems",0,ti,"hasRenderableCta",0,ta,"mapProductToProductGridCardProps",0,({product:e,primaryCtaLabel:t,primaryCtaUrl:n,onPrimaryCtaClick:a,secondaryCtaLabel:r,secondaryCtaUrl:l,onSecondaryCtaClick:i})=>{let s=ts(l),o=ts(n);return{id:e.entryUID??e.uid??e.title,tagText:(0,te.resolveProductTag)({product:e}),imageUrl:e.product_image||e.provider?.provider_image,imageAlt:e.product_name||"Product image",title:e.product_name,previewItems:ti({product:e}),previewStyle:"icon",primaryCtaLabel:t,primaryCtaUrl:o,onPrimaryCtaClick:a,primaryCtaPosition:"afterImage",primaryCtaIcon:"arrow",secondaryCtaLabel:s||i?r:void 0,secondaryCtaUrl:s,onSecondaryCtaClick:i}}],861452);let to=({label:e,href:n,onClick:a,variant:r="filled",styleType:l="primary",icon:i="none"})=>{let s="arrow"===i?(0,t.jsx)(b.MaterialIcon,{icon:"arrow_forward",px:20,className:"!text-[18px] md:!text-[20px]"}):void 0,d=(0,t.jsx)(o.default,{size:"small",type:"button",variant:r,styleType:l,onClick:n?void 0:a,className:"w-full",endIcon:s,children:e});return n?(0,t.jsx)(c.FeLink,{href:n,className:"no-underline",onClick:a,children:d}):d},tc=({primaryCtaLabel:e,primaryCtaUrl:n,onPrimaryCtaClick:a,primaryCtaPosition:r,primaryCtaIcon:l,secondaryCtaLabel:i,secondaryCtaUrl:s,onSecondaryCtaClick:o,placement:c})=>{let d=r===c&&ta(e,n,a),u="footer"===c&&ta(i,s,o);return d||u?(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:gap-spacing/gap/soft-8px",children:[d&&e&&(0,t.jsx)(to,{label:e,href:n,onClick:a,icon:l}),u&&i&&(0,t.jsx)(to,{label:i,href:s,onClick:o,variant:"outline",styleType:"neutral-light-and-blue"})]}):null};e.s(["ProductGridCardActions",0,tc],449907);let td=({title:e,metricPrefix:n,metricPrimary:r,metricSecondary:l,badgeText:i,showBadgeInfoIcon:s})=>{let o=[n,r,l].map(e=>
6e?.trim()).filter(Boolean).join(" ");return e||o||i?(0,t.jsxs)("div",{className:"flex flex-col gap-1 md:gap-spacing/gap/soft-6px",children:[e&&(0,t.jsx)("h3",{className:(0,a.default)("line-clamp-2 text-text/primary",i?"mhg-alpha-typography-title-2":"mhg-alpha-typography-overline md:mhg-alpha-typography-title-2 md:h-14"),children:e}),o&&(0,t.jsx)("p",{className:"border-l border-borders/default pl-spacing/padding/soft-12px mhg-alpha-caption text-text/secondary-lighter [word-break:break-word] line-clamp-3",children:o}),i&&(0,t.jsx)("div",{className:"w-fit rounded-[4px] bg-fill/primary-light px-[6px] py-[2px] md:rounded-[6px] md:px-spacing/padding/soft-8px md:py-spacing/padding/soft-4px lg:rounded-radius/tooltip",children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("p",{className:"text-fill/primary-dark mhg-alpha-typography-table-cell-strong",children:i}),s&&(0,t.jsx)(b.MaterialIcon,{icon:"info",px:16,className:"text-fill/primary-dark opacity-50 !text-[16px] md:!text-[18px]","aria-label":"Additional info"})]})})]}):null},tu=({imageUrl:e,imageAlt:n,imageFrame:r,imageFit:l})=>(0,t.jsx)("div",{className:(0,a.default)("overflow-hidden rounded-[6px] md:rounded-radius/button","framed"===r&&"border border-borders/default bg-gradient-to-b from-fill/card to-fill/alternative-1 p-[6px] md:p-spacing/padding/soft-8px"),children:(0,t.jsx)(h.CmsImage,{src:e,alt:n,width:629,height:401,sizes:{_:"100vw",md:272},className:(0,a.default)("h-[90px] w-full md:h-auto md:aspect-[629/401]","contain"===l?"object-contain":"object-cover")})}),tp=({previewImageAlt:e,visiblePreviewItems:n,hiddenPreviewCount:r,isPreviewCard:l})=>(0,t.jsxs)("div",{className:(0,a.default)("relative flex items-center",l?"gap-1.5 md:gap-spacing/gap/soft-8px":"gap-0.5 md:gap-spacing/gap/soft-4px"),children:[n.map((n,r)=>(0,t.jsx)("div",{title:n.title,className:"h-7 w-6 shrink-0 md:size-10",children:(0,t.jsx)("div",{className:(0,a.default)("overflow-hidden border border-borders/default","flex h-7 w-6 items-center justify-center rounded-[6px] bg-gradient-to-b from-fill/card to-fill/alternative-1 p-[6px] md:size-10 md:rounded-radius/button md:p-spacing/padding/soft-8px"),children:n.imageUrl?(0,t.jsx)(h.CmsImage,{src:n.imageUrl,alt:e,width:40,height:40,sizes:{_:24,md:40},className:(0,a.default)("size-full","object-contain")}):(0,t.jsx)("div",{className:"flex size-full items-center justify-center bg-fill/card px-1 text-center text-[8px] leading-[1.1] text-text/secondary-lighter md:text-[9px]",children:n.title??e})})},`${n.imageUrl??"no-image"}-${n.title??r}`)),r>0&&(0,t.jsxs)("div",{className:(0,a.default)("flex items-center justify-center rounded-[4px] border border-borders/default bg-fill/card px-[6px] text-text/secondary-lighter mhg-alpha-bullet-2 md:mhg-alpha-body-2",l?"h-7 w-11 md:h-[50px] md:w-[78px]":"h-7 min-w-7 flex-1 md:h-10 md:min-w-10 md:px-spacing/padding/soft-8px"),children:["+",r]})]});var tm=e.i(974501);let th=({tagColor:e,tagText:n,isPreviewCard:r})=>{let l=!!n;return(0,t.jsx)("div",{className:(0,a.default)("flex w-full items-center rounded-[4px] px-[6px] py-[2px] md:rounded-[6px] md:px-spacing/padding/soft-8px md:py-spacing/padding/soft-4px lg:rounded-radius/tooltip",(0,tm.tagColor)(e?.toLowerCase()),{invisible:!l}),children:(0,t.jsx)("p",{className:(0,a.default)("truncate text-left",r?"mhg-alpha-caption":"mhg-alpha-caption text-[10px] leading-[16px] md:mhg-alpha-caption"),title:l?n:void 0,children:l?n:"Â "})})},tf={BLUE:"bg-fill/primary-light border-fill/primary-dark",YELLOW:"bg-highlights/yellow-light border-highlights/yellow-dark"},tg={BLUE:"bg-fill/primary-dark",YELLOW:"bg-highlights/yellow-dark"},tx=({item:e,previewImageAlt:n,worthLabel:a,showTopup:r=!0})=>(0,t.jsxs)("div",{className:"flex min-h-[38px] items-start gap-spacing/gap/soft-6px",children:[e.imageUrl&&(0,t.jsx)("div",{className:"size-[38px] shrink-0",children:(0,t.jsx)(h.CmsImage,{src:e.imageUrl,alt:e.title||n,width:38,height:38,sizes:{_:38},className:"size-full object-contain"})}),(0,t.jsxs)("div",{className:"flex min-w-0 grow flex-col",children:[e.title&&(0,t.jsx)("span",{className:"break-words font-bold text-[8px] leading-tight text-text/accent md:text-[12px]",children:e.title}),e.worthValueText&&(0,t.jsx)("span",{className:"break-words font-normal text-[8px] leading-tight text-text/accent md:text-[10px]",children:`${a} ${e.worthValueText}`})]}),r&&e.topupText&&(0,t.jsx)("span",{className:"shrink-0 self-start font-bold text-[8px] text-buttons/cta",children:e.topupText})]}),tb=({items:e,colour:n="BLUE",labels:l,previewImageAlt:i,expanded:s,onExpandedChange:o})=>{let[c,d]=(0,r.useState)(!1),u=s??c,p=(0,r.useId)(),m=(0,r.useRef)(null),h=(0,r.useRef)(!1);if((0,r.useEffect)(()=>{h.current&&(m.current?.focus(),h.current=!1)},[u]),(0,r.useEffect)(()=>
6{if(!u)return;let e=e=>{"Escape"===e.key&&document.activeElement===m.current&&(h.current=!0)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u]),!e.length)return null;let[f,...g]=e,x=g.length>0,y=x&&u,_=(0,t.jsxs)("button",{ref:m,type:"button","aria-expanded":y,"aria-controls":y?p:void 0,onClick:()=>{let e=!u;h.current=document.activeElement===m.current,void 0===s&&d(e),o?.(e)},className:"flex items-center justify-center gap-spacing/gap/soft-4px rounded-radius/button font-normal text-[10px] text-text/accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-primary focus-visible:ring-offset-2 md:text-[12px]",children:[y?l.viewLess:l.viewAll(e.length),(0,t.jsx)(b.MaterialIcon,{icon:y?"expand_less":"expand_more",className:"text-[16px] md:text-[18px]"})]});return(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-4px",children:[(0,t.jsxs)("div",{className:(0,a.default)("flex flex-col justify-center gap-spacing/gap/soft-6px rounded-radius/button border p-spacing/padding/soft-8px",!y&&"min-h-[50px]",tf[n]),children:[(0,t.jsx)(tx,{item:f,previewImageAlt:i,worthLabel:l.worth,showTopup:!1}),y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,a.default)("h-px w-full",tg[n])}),_,(0,t.jsx)("div",{id:p,className:"flex flex-col gap-spacing/gap/soft-6px",children:g.map((e,n)=>(0,t.jsx)(tx,{item:e,previewImageAlt:i,worthLabel:l.worth},`${e.imageUrl??"no-image"}-${e.title??n}`))})]})]}),x&&!y&&_]})},ty=({id:e,className:n,tagColor:r,tagText:l,imageUrl:i,imageAlt:s="Card image",imageFrame:o="plain",imageFit:c="contain",title:d,metricPrefix:u,metricPrimary:p,metricSecondary:m,badgeText:h,showBadgeInfoIcon:f=!1,previewItems:g=[],previewImageAlt:x="Preview",previewStyle:b="icon",rewardToggleColour:y="BLUE",rewardToggleLabels:_,rewardExpanded:v,onRewardExpandedChange:C,primaryCtaLabel:T,primaryCtaUrl:E,onPrimaryCtaClick:N,primaryCtaPosition:A="footer",primaryCtaIcon:k="arrow",secondaryCtaLabel:w,secondaryCtaUrl:S,onSecondaryCtaClick:I})=>{let{hasPreview:D,hiddenPreviewCount:L,isPreviewCard:j,visiblePreviewItems:P}=(({previewItems:e,previewStyle:t})=>{let n=Math.min(e.length,4),a=e.slice(0,n),r=Math.max(e.length-a.length,0);return{hasPreview:e.length>0,isPreviewCard:"card"===t,hiddenPreviewCount:r,visiblePreviewItems:a}})({previewItems:g,previewStyle:b}),M=!!_;return(0,t.jsx)("article",{className:(0,a.default)("bg-fill/card border border-borders/default flex h-full overflow-hidden rounded-[10px]","w-40 md:w-58 lg:w-68","md:rounded-radius/card",n),"data-product-id":e,children:(0,t.jsxs)("div",{className:"flex size-full flex-col gap-2 p-2 md:gap-[10px] md:p-[10px] lg:gap-spacing/gap/soft-12px lg:p-spacing/padding/soft-12px",children:[(0,t.jsx)(th,{tagColor:r,tagText:l,isPreviewCard:j}),i&&(0,t.jsx)(tu,{imageUrl:i,imageAlt:s,imageFrame:o,imageFit:c}),(0,t.jsx)(tc,{primaryCtaLabel:T,primaryCtaUrl:E,onPrimaryCtaClick:N,primaryCtaPosition:A,primaryCtaIcon:k,secondaryCtaLabel:w,secondaryCtaUrl:S,onSecondaryCtaClick:I,placement:"afterImage"}),(0,t.jsx)("div",{className:"flex grow flex-col",children:(0,t.jsx)(td,{title:d,metricPrefix:u,metricPrimary:p,metricSecondary:m,badgeText:h,showBadgeInfoIcon:f})}),(0,t.jsxs)("div",{className:"mt-auto",children:[D&&_&&(0,t.jsx)("div",{className:"pb-2 md:pb-[10px] lg:pb-spacing/gap/soft-12px",children:(0,t.jsx)(tb,{items:g,colour:y,labels:_,previewImageAlt:x,expanded:v,onExpandedChange:C})}),D&&!M&&(0,t.jsx)("div",{className:"pb-2 md:pb-[10px] lg:pb-spacing/gap/soft-12px",children:(0,t.jsx)(tp,{previewImageAlt:x,visiblePreviewItems:P,hiddenPreviewCount:L,isPreviewCard:j})}),(0,t.jsx)(tc,{primaryCtaLabel:T,primaryCtaUrl:E,onPrimaryCtaClick:N,primaryCtaPosition:A,primaryCtaIcon:k,secondaryCtaLabel:w,secondaryCtaUrl:S,onSecondaryCtaClick:I,placement:"footer"})]})]})})};e.s(["default",0,ty],140550);let t_=(0,eh.staticText)({}),tv=(0,eh.staticText)({}),tC=(0,eh.staticText)({}),tT=(0,eh.staticText)({product_card_grid_apply_now:{_:"Apply Now",zh:"ç«å³ç³è«"},product_card_grid_view_details:{_:"View Details",zh:"æ¥ç詳æ
"},product_card_grid_view_all_rewards:{_:"View all {count} rewards",zh:"æ¥ç {count} åçè³é¸æ"},product_card_grid_view_less:{_:"View less",zh:"æ¶èµ·"},product_card_grid_worth:{_:"Worth",zh:"å¹å¼"}}),tE=(0,eh.brandSpecificStaticText)({_:tT,money101:t_,moneyhero:tv,moneymax:tC}),tN=({icon:e})=>(0,t.jsx)("div",{className:"flex size-[30px] items-center justify-center rounded-[15p
6x] bg-fill/card shadow-md",children:(0,t.jsx)(b.MaterialIcon,{icon:e,px:20,className:"text-current"})}),tA=({item:e,cardId:n,expanded:l,onExpandedChange:i,canLift:s})=>{let o=(0,r.useRef)(null),[c,d]=(0,r.useState)(),u=s&&l;return(0,t.jsx)("div",{ref:o,"data-reward-card-id":n,className:(0,a.default)("relative size-full min-w-0",u&&"z-30"),style:u&&c?{minHeight:c}:void 0,children:(0,t.jsx)(ty,{...e,rewardExpanded:l,onRewardExpandedChange:e=>{s&&e&&o.current&&d(o.current.getBoundingClientRect().height),i(e)},className:(0,a.default)("!w-full sm:!w-full xl:!w-full",u?"absolute inset-x-0 top-0 !h-auto shadow-lg":"!h-full")})})},tk=(e,t)=>e.id??`product-card-grid-item-${t}`,tw=({items:e,expandedId:n,onCardExpandedChange:a})=>(0,t.jsx)("div",{className:"grid grid-cols-2 gap-x-3 gap-y-spacing/gap/y-sm md:grid-cols-3 lg:grid-cols-4 lg:gap-x-4",children:e.map((e,r)=>{let l=tk(e,r);return(0,t.jsx)(tA,{item:e,cardId:l,expanded:n===l,onExpandedChange:e=>a(l,e),canLift:!0},l)})}),tS=({items:e,showNavigation:n,shouldAutoplay:a,prevButtonClassName:r,nextButtonClassName:l,expandedId:i,onCardExpandedChange:s})=>(0,t.jsx)("div",{className:"relative ",children:(0,t.jsx)(e9.FeCarouselV2,{autoplay:!!a&&{delay:2500,disableOnInteraction:!1,pauseOnMouseEnter:!0},navigation:n?{showOnDesktop:!0,showOnMobile:!0,prevElClassName:`!left-[-22px] lg:!left-[-34px] ${r}`,nextElClassName:`!right-[-22px] lg:!right-[-34px] ${l}`,disabledClassName:"!text-text/disabled",prevElement:(0,t.jsx)(tN,{icon:"arrow_left_alt"}),nextElement:(0,t.jsx)(tN,{icon:"arrow_right_alt"})}:void 0,beforeInitSlideClassName:"mr-3 w-[calc((100%-24px)/2)] md:w-[calc((100%-36px)/3)] lg:mr-4 lg:w-[calc((100%-64px)/4)]",slideClassName:"!flex !h-auto",slidesPerView:2,slidesPerViewBreakpoints:[[3,768],[4,960]],spaceBetween:12,spaceBetweenBreakpoints:[[16,960]],children:e.map((e,n)=>{let a=tk(e,n);return(0,t.jsx)(tA,{item:e,cardId:a,expanded:i===a,onExpandedChange:e=>s(a,e),canLift:!1},a)})})}),tI=({items:e,layoutType:n="GRID",rewardToggleColour:l})=>{let i=(0,r.useId)().replace(/:/g,""),s=(0,e8.useCmsClientContext)(),o=(0,eT.getClientTranslations)(tE,s),c={viewAll:e=>o.product_card_grid_view_all_rewards.replace("{count}",String(e)),viewLess:o.product_card_grid_view_less,worth:o.product_card_grid_worth},d=(({items:e,defaultApplyCtaLabel:t,defaultViewDetailsCtaLabel:n,rewardToggleColour:a,rewardToggleLabels:r})=>e.map(e=>({...e,primaryCtaLabel:e.primaryCtaLabel??t,secondaryCtaLabel:e.secondaryCtaUrl||e.onSecondaryCtaClick?e.secondaryCtaLabel??n:e.secondaryCtaLabel,rewardToggleColour:a,rewardToggleLabels:r})))({items:e,defaultApplyCtaLabel:o.product_card_grid_apply_now,defaultViewDetailsCtaLabel:o.product_card_grid_view_details,rewardToggleColour:l,rewardToggleLabels:c}),u="CAROUSEL"===n,p=u&&d.length>2,m=d.some(e=>(e.previewItems?.length??0)>0),h=u&&d.length>2&&!m,[f,g]=(0,r.useState)(null),x=(e,t)=>g(t?e:null);return((0,r.useEffect)(()=>{if(null==f)return;let e=document.querySelector(`[data-reward-card-id="${CSS.escape(String(f))}"]`),t=t=>{e&&!e.contains(t.target)&&g(null)},n=e=>{"Escape"===e.key&&g(null)};return document.addEventListener("pointerdown",t),document.addEventListener("keydown",n),()=>{document.removeEventListener("pointerdown",t),document.removeEventListener("keydown",n)}},[f]),d.length)?(0,t.jsx)("section",{className:(0,a.default)("w-[calc(100%+var(--spacing-padding-section-x)*2)] px-spacing/padding/section-x -mx-spacing/padding/section-x",u&&"overflow-hidden"),"data-layout-type":n.toLowerCase(),children:u?(0,t.jsx)(tS,{items:d,showNavigation:p,shouldAutoplay:h,prevButtonClassName:`product-card-grid-prev-${i}`,nextButtonClassName:`product-card-grid-next-${i}`,expandedId:f,onCardExpandedChange:x}):(0,t.jsx)(tw,{items:d,expandedId:f,onCardExpandedChange:x})}):null};var tD=e.i(618566);e.i(328419);var tL=e.i(424135);let tj=({event:e,componentTitle:t,index:n,pathname:a,productId:r,productName:l,providerName:i,rewardCampaignId:s,rewardCampaignName:o})=>({event:e,action:"click",component_type:"product-card",component_title:t,item_list_name:a,items:[{item_id:r,item_name:l,item_brand:i,index:String(n)}],reward_campaign_name:o,reward_campaign_id:s}),tP=e=>{if(e)return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`};e.i(433793);var tM=e.i(334850);e.s(["ProductCardGridComponent",0,({items:e=[],layoutType:n="GRID",rewardToggleColour:a})=>{let l=(0,tD.usePathname)()??"",{openModal:i}=(0,e7.useProductBlockAsideModal)(),o=(({items:e,pathname:t,openProductAside:n})=>{let a=(0,e6.useCtaResolver)();return(0,r.useMemo)(()=>e.filter(e=>e.product).map((e,r)=>{let l,i=e.product,o=i?.uid??i?.title??"",c=i?.product_name??"",d=i?.provider?.provider_name??"",{rewardCampaignId:u,rewardCampaignName:p}=(l=[...e.product?.exclusive_offers??[],...e.product?.bundle_exclusive_offers??[]],{rewardCampaignName:(0,tL.getRewardCampaignName)(l),rewardCampaignId:(0,tL.getRewardCampaignId)(l)}),m=e.applyCtaUrl||a({product:i}),h=!!(!e.viewDetailsCtaUrl?.trim()&&i?.url_alias),f=!!(e.viewDetailsCtaUrl||h);return((e,t={},n={})=>{let{metricPrefix:a,metricPrimary:r,metricSecondary:l}=tl({product:e.product,highlightTextAttribute:e.highlightTextAttribute,highlightTextOverride:e.highlightTextOverride}),i=ti({product:e.product,orderByOffer:!0}),s=tP(n.viewDetailsCtaUrl),o=tP(n.applyCtaUrl);return{id:e.id,tagColor:e.colorTag,tagText:(0,te.resolveProductTag)({product:e.product,pageLevelTag:e.productTagOverride}),imageUrl:e.product?.product_image||e.product?.provider?.provider_image,imageAlt:e.product?.product_name||"Product image",title:e.product?.product_name,metricPrefix:a,metricPrimary:r,metricSecondary:l,previewItems:i,previewStyle:"card",primaryCtaLabel:e.applyCtaLabel||t.applyCtaLabel,primaryCtaUrl:o,onPrimaryCtaCl
6ick:n.onPrimaryCtaClick,primaryCtaPosition:"afterImage",primaryCtaIcon:"arrow",secondaryCtaLabel:s||n.onSecondaryCtaClick?e.viewDetailsCtaLabel||t.viewDetailsCtaLabel:void 0,secondaryCtaUrl:s,onSecondaryCtaClick:n.onSecondaryCtaClick}})(e,void 0,{applyCtaUrl:m,onPrimaryCtaClick:m?()=>{tM.sessionAttributionTracker.recordApplyClick(),(0,s.pushDataLayer)({...tj({event:"product_click_apply",componentTitle:"Product Card Grid/CTA_Apply Now",index:r,pathname:t,productId:o,productName:c,providerName:d,rewardCampaignId:u,rewardCampaignName:p})})}:void 0,viewDetailsCtaUrl:e.viewDetailsCtaUrl,onSecondaryCtaClick:f?()=>{(0,s.pushDataLayer)({...tj({event:"product_interaction",componentTitle:"Product Card Grid/Footer_View Details",index:r,pathname:t,productId:o,productName:c,providerName:d,rewardCampaignId:u,rewardCampaignName:p})}),h&&i?.url_alias&&n(i.url_alias,null)}:void 0})}),[e,t,n,a])})({items:e,pathname:l,openProductAside:i});return o.length?(0,t.jsx)(tI,{items:o,layoutType:n,rewardToggleColour:a}):null}],435005);let tO={1:[1],2:[2],3:[3],4:[2,2],5:[3,2],6:[3,3],7:[3,2,2],8:[3,3,2],9:[3,3,3],10:[3,3,2,2]},tR={1:[1],2:[2],3:[3],4:[4],5:[5],6:[5,1]};function tB(e,t){let n=e[t];return n||[]}let tF=({cols:e,auto:n=!1,children:a})=>{let r=n?"repeat(auto-fit, minmax(104px, 140px))":e?`repeat(${e}, minmax(104px, 1fr))`:"repeat(1, minmax(104px, 1fr))";return(0,t.jsx)("div",{className:"grid justify-start gap-spacing/gap/soft-12px",style:{gridTemplateColumns:r},children:a})},tH=({providersItems:e,providers:n=[],rowsPattern:a,auto:r=!1,wrapperClassName:l,imageClassName:i})=>{let s=e?.length?e.map(({id:e,altText:t,optionalLinkUrl:n,provider:a})=>({id:e,altText:t,imageUrl:a?.image.url??"",linkUrl:n})):n.map(({image:e,provider_name:t,documentId:n},a)=>({id:n??a,altText:t??"Provider",imageUrl:e?.url??""})),o=e=>(0,t.jsx)(t.Fragment,{children:e.map(e=>(({id:e,altText:n,imageUrl:a,linkUrl:r})=>a?(0,t.jsx)("div",{className:"flex h-15 w-full items-center justify-center rounded-radius/button border border-borders/default p-spacing/gap/soft-12px bg-fill/card lg:max-w-35",children:r?(0,t.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(h.CmsImage,{sizes:{_:150},src:a??"",alt:n??"Provider",width:80,height:36,className:i})}):(0,t.jsx)(h.CmsImage,{sizes:{_:150},src:a??"",alt:n??"Provider",width:80,height:36,className:i})},e):null)(e))});if(r)return(0,t.jsx)("div",{className:l,children:(0,t.jsx)(tF,{auto:!0,children:o(s)})});let c=0;return(0,t.jsx)("div",{className:l,children:a?.map((e,n)=>{let a=s.slice(c,c+e);return c+=e,(0,t.jsx)("div",{children:(0,t.jsx)(tF,{cols:e,children:o(a)})},`${e}-${n}`)})})};e.s(["ProviderList",0,e=>{let{title:n,subtitleAbove:r,subtitleBelow:l,providers:i=[],buttonText:s,callToAction:c,providerItem:u,displayCta:p,urlTarget:m}=e,h=(u?.length?u:i).length??0,f=c?.links?.[0]?.redirected_url,g=tB(tO,h),x=tB(tR,h),b=(0,a.default)("max-h-15 object-contain md:max-w-34 lg:max-w-35");return(0,t.jsx)("div",{className:"flex justify-start px-padding/section-x py-padding/section-y bg-fill/primary-light lg:justify-center",children:(0,t.jsx)("div",{className:"w-full lg:w-general/narrow-content-max-width-3 lg:max-w-general/narrow-content-max-width-3",children:(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y lg:max-w-general/narrow-content-max-width-1",children:[n&&(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 text-text/primary",children:n}),r&&(0,t.jsx)("div",{className:"mhg-alpha-typography-body-1-relaxed text-text/secondary",children:r}),(0,t.jsx)(tH,{providers:i,providersItems:u,rowsPattern:g,wrapperClassName:"flex flex-col gap-spacing/gap/soft-12px md:hidden",imageClassName:b}),(0,t.jsx)(tH,{providers:i,providersItems:u,rowsPattern:x,auto:0===x.length,wrapperClassName:"hidden md:flex md:flex-col md:gap-spacing/gap/soft-12px lg:hidden",imageClassName:b}),(0,t.jsx)(tH,{providers:i,providersItems:u,auto:!0,wrapperClassName:"hidden lg:block",imageClassName:b}),l&&(0,t.jsx)("div",{className:"mhg-alpha-typography-body-1-relaxed",children:l}),s&&f&&p&&(0,t.jsx)("a",{href:f,className:"w-full md:w-[275px]",target:"BLANK"===m?"_blank":"_self",rel:"noreferrer noopener",children:(0,t.jsx)(o.default,{className:"w-full",endIcon:(0,t.jsx)(d.default,{}),styleType:"primary",children:s})})]})})})}],734403)},350548,e=>{"use strict";var t=e.i(843476);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",...e,children:(0,t.jsx)("path",{fill:"#212121",d:"m14.18 17.651-1.055-1.084 3.82-3.82H4.833v-1.5h12.112l-3.82-3.819 1.054-1.084 5.654 5.654-5.654 5.653Z"})})])},14346,504997,659860,611198,551009,43489,631626,254098,129758,531569,429952,257187,126642,325031,57509,783822,297476,288392,793219,e=>{"use strict";var t=e.i(843476),n=e.i(94245),a=e.i(274839),r=e.i(350548),l=e.i(378058);e.i(69618);var i=e.i(440481);e.s(["RedirectTiles",0,({items:e,tilesTitle:s})=>(0,t.jsxs)("div",{className:"redirectTiles mx-auto pt-8 lg:pt-10 xl:pt-12",children:[(0,t.jsx)("h3",{className:"mb-4 text-gray-900 alpha-display-2 md:mb-6 md:text-center lg:mb-7 xl:mb-8",children:s}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 lg:gap-6",children:e?.map((e,s)=>(0,t.jsx)(i.FeLink,{target:(0,a.getTabTarget)(e?.link_target),href:e?.link_url,className:"flex flex-row rounded-lg p-3 shadow-md bg-white lg:p-4",onClick:t=>{t.stopPropagation(),(0,l.pushDataLayer)({event:"navigate",component_type:"tiles",component_title:`Category Entries_${e?.itemTitle}`,action:"click",index:s})},children:(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex h-full items-center justify-between xl:items-center",children:[e?.icon?(0,t.jsx)("i",{className:"mr-2 flex items-center justify-center rounded-full p-1 bg-blue-light text-blue-dark lg:p-2",children:(0,t.jsx)(n.Icon,{width:32,height:32,icon:e.icon})}):null,(0,t.jsx)("h3",{className:"redirect-tiles-item-title max-w-full text-gray-900 lg:max-w-3/4",children:e?.itemTitle})]}),(0,t.jsx)(r.default,{className:"size-shapes/icon-size-lg shrink-0"})]})},e?.itemTitle))})]})],14346),e.i(397031);var s=e.i(271159),o=e.i(345112),c=e.i(271645);e.i(843780);var d=e.i(892063),u=e.i(501701),p=e.i(343794);let m=({tabs:e,type:n="pills",activeTabKey:a,onTabChange:r,full:l=!1,headerClass:i="",bodyClass:s="",children:o})=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:(0,p.default)("no-scrollbar overflow-x-auto","pills"===n?"mb-4 rounded-2xl border border-gray-400":""),children:(0,t.jsx)("ul",{className:(0,p.default)("flex",l?"w-full":"",i,"pills"===n?"gap-1 p-1":""),children:e.map(e=>(0,t.jsx)("li",{className:(0,p.default)("pills"===n?"rounded-xl py-1 text-gray-600 hover:bg-gray-50":"border-b border-gray-200 py-padding/y-sm text-gray-800",l?"flex-1":"",a===e.ke
6y?"pills"===n?"!bg-primary !text-white":"!border-text/accent !text-text/accent":"","min-w-auto cursor-pointer pr-4 md:min-w-75 md:pr-0 md:text-center"),onClick:()=>r(e.key),children:(0,t.jsx)("h3",{className:"inline whitespace-nowrap alpha-button-1",children:e.label})},e.key))})}),e.map(e=>(0,t.jsx)("div",{className:s,style:{display:e.key===a?"block":"none"},children:o},e.key))]});var h=e.i(914271),f=e.i(278467),g=e.i(443036),x=e.i(295750);e.s(["ReviewCards",0,e=>{let n=e?.tabs?.map(e=>({label:e?.name??"",key:(0,f.slugify)(e?.name??""),items:e?.items?.filter(e=>!!e)??[]}))??[],{lang:a}=(0,x.useClientContext)(),r=g.CONTENT_MHG.get(a),[l,i]=(0,c.useState)(n[0]?.key);return(0,t.jsx)("div",{children:(0,t.jsxs)(h.Container,{className:"mx-auto max-w-screen-2xl gap-[--spacing-gap-section-y-lg]",children:[(0,t.jsx)("h3",{className:"mt-0 py-[--spacing-padding-y-xs] pt-0 alpha-display-1",children:e.title}),(0,t.jsx)("div",{className:"rounded-2xl p-4 shadow bg-white md:rounded-3xl md:px-6",children:(0,t.jsx)(m,{tabs:n,type:"underline",activeTabKey:l,onTabChange:i,children:n.find(e=>e.key===l)?.items.map(e=>(0,t.jsx)(h.Container,{xType:"padding-x",yType:"padding-y",className:"min-h-35 border-b border-gray-300 !px-0",children:(0,t.jsxs)("div",{className:"flex h-full flex-col md:flex-row",children:[(0,t.jsx)("div",{className:"mb-4 flex w-full items-start md:w-1/4",children:e.image?.[0]?.url&&(0,t.jsx)(s.CmsImage,{unoptimized:!0,src:e.image[0]?.url,alt:"Review",className:"inline h-[165px] object-contain pr-8 md:w-full",width:280,height:190})}),(0,t.jsxs)("div",{className:"flex w-full grow flex-col md:flex-row",children:[(0,t.jsxs)("div",{className:"flex grow flex-col",children:[(0,t.jsx)("h3",{className:"mb-4 alpha-title-2",children:e.title}),e.rating_score&&(0,t.jsx)(o.Rating,{score:e.rating_score,info:e.rating_additional_information??void 0,className:"mb-5"}),e.description&&(0,t.jsx)(h.Container,{children:(0,t.jsx)("h2",{className:"alpha-body-2",children:(0,t.jsx)("span",{className:"font-medium",dangerouslySetInnerHTML:{__html:e.description}})})})]}),(0,t.jsx)("div",{className:"ml-0 mt-4 flex items-end md:ml-auto md:justify-end",children:e.link&&(0,t.jsx)(d.default,{variant:"text",onClick:()=>{var t;(t=e.link??void 0)&&window.open(t,"_blank","noopener,noreferrer")},color:"text-primary",className:"mb-0 ml-3 p-0 md:ml-0",endIcon:(0,t.jsx)(u.default,{}),children:r.more_details})})]})]})},e.title))})})]})})}],504997),e.i(782316);var b=e.i(71613);e.i(201542);var y=e.i(77719);e.i(627373);var _=e.i(396522),v=e.i(943032),C=e.i(449907),T=e.i(974501),E=e.i(605122);let N=({id:e,className:n,tagColor:a,tagText:r,imageUrl:l,imageAlt:i="Reward image",title:o,rewardValueLabel:d,rewardValueText:u,rewardValueTooltip:m,previewItems:h=[],previewImageAlt:f="Eligible product preview",primaryCtaLabel:g,primaryCtaUrl:x,onPrimaryCtaClick:b,secondaryCtaLabel:y,secondaryCtaUrl:_,onSecondaryCtaClick:N})=>{let[A,k]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if(!window.matchMedia)return;let e=window.matchMedia("(max-width: 360px)"),t=e=>{k(e.matches)};return t(e),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let w=A?3:4,S=A?"w-[calc((100%-8px)/3)]":"w-[calc((100%-12px)/4)]",I=A?"calc((100vw-8px)/3)":"calc((100vw-12px)/4)",D=Math.min(h.length,w),L=h.length>w?Math.max(D-1,1):D,j=h.slice(0,L),P=Math.max(h.length-j.length,0);return(0,t.jsx)("article",{className:(0,p.default)("flex h-full w-40 overflow-hidden rounded-[10px] border border-borders/default bg-fill/card md:w-58 md:rounded-radius/card lg:w-68",n),"data-reward-id":e,children:(0,t.jsxs)("div",{className:"flex size-full flex-col gap-2 p-2 md:gap-[10px] md:p-[10px] lg:gap-spacing/gap/soft-12px lg:p-spacing/padding/soft-12px",children:[r&&(0,t.jsx)("div",{className:(0,p.default)("flex w-full items-center rounded-radius/tooltip px-spacing/padding/soft-8px py-spacing/padding/soft-4px",(0,T.tagColor)(a?.toLowerCase())),children:(0,t.jsx)("p",{className:"truncate text-left mhg-alpha-caption",title:r,children:r})}),l&&(0,t.jsx)("div",{className:"overflow-hidden rounded-radius/button border border-borders/default bg-gradient-to-b from-fill/card to-fill/alternative-1 p-spacing/padding/soft-8px",children:(0,t.jsx)(s.CmsImage,{src:l,alt:i,width:533,height:342,sizes:{_:"100vw",md:272},className:"h-[90px] w-full object-contain md:h-auto md:aspect-[533/342]"})}),(o||u)&&(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-6px",children:[o&&(0,t.jsx)("h3",{className:"line-clamp-2 text-text/primary mhg-alpha-typography-title-2",children:o}),u&&(0,t.jsxs)("div",{className:"flex w-fit items-center gap-1 rounded-radius
6/tooltip bg-fill/primary-light px-spacing/padding/soft-8px py-spacing/padding/soft-4px",children:[(0,t.jsx)("p",{className:"text-fill/primary-dark mhg-alpha-typography-table-cell-strong",children:d?`${d} ${u}`:u}),m&&(0,t.jsx)(E.default,{content:m,onOpenEvent:"click",tooltipClass:"max-w-[300px]",children:(0,t.jsx)(v.MaterialIcon,{icon:"info",px:18,className:"cursor-pointer text-fill/primary-dark opacity-50 !text-[16px] md:!text-[18px]","aria-label":"Additional info"})})]})]}),(0,t.jsxs)("div",{className:"mt-auto",children:[h.length>0&&(0,t.jsxs)("div",{className:"flex items-center pb-2 gap-spacing/gap/soft-8px md:pb-[10px] lg:pb-spacing/gap/soft-12px",children:[j.map((e,n)=>(0,t.jsx)("div",{className:(0,p.default)("aspect-[78/50] shrink-0 overflow-hidden rounded-[4px] border border-borders/default md:w-[calc((100%-24px)/4)]",S),title:e.title,children:e.imageUrl?(0,t.jsx)(s.CmsImage,{src:e.imageUrl,alt:e.title||f,width:78,height:50,sizes:{_:I,md:78},className:"size-full object-cover"}):(0,t.jsx)("div",{className:"flex size-full items-center justify-center bg-fill/card px-1 text-center text-[8px] leading-[1.1] text-text/secondary-lighter md:text-[9px]",children:e.title??f})},`${e.imageUrl??"no-image"}-${e.title??n}`)),P>0&&(0,t.jsxs)("div",{className:(0,p.default)("flex aspect-[78/50] shrink-0 items-center justify-center rounded-[4px] border border-borders/default bg-fill/card text-text/secondary-lighter mhg-alpha-bullet-2 md:w-[calc((100%-24px)/4)] md:mhg-alpha-body-2",S),children:["+",P]})]}),(0,t.jsx)(C.ProductGridCardActions,{primaryCtaLabel:g,primaryCtaUrl:x,onPrimaryCtaClick:b,primaryCtaPosition:"footer",primaryCtaIcon:A?"none":"arrow",secondaryCtaLabel:y,secondaryCtaUrl:_,onSecondaryCtaClick:N,placement:"footer"})]})]})})},A=({icon:e})=>(0,t.jsx)("div",{className:"flex size-[30px] items-center justify-center rounded-[15px] bg-fill/card shadow-md",children:(0,t.jsx)(v.MaterialIcon,{icon:e,px:20,className:"text-current"})}),k=({item:e})=>(0,t.jsx)(N,{...e,className:"!h-full !w-full sm:!w-full xl:!w-full"}),w=({items:e})=>(0,t.jsx)("div",{className:"grid grid-cols-2 gap-x-3 gap-y-spacing/gap/y-sm md:grid-cols-3 lg:grid-cols-4 lg:gap-x-4",children:e.map((e,n)=>(0,t.jsx)(k,{item:e},e.id??e.title??`reward-card-grid-item-${n}`))}),S=({items:e,showNavigation:n,shouldAutoplay:a})=>(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(_.FeCarouselV2,{autoplay:!!a&&{delay:2500,disableOnInteraction:!1,pauseOnMouseEnter:!0},navigation:n?{showOnDesktop:!0,showOnMobile:!0,prevElClassName:"!left-[-22px] lg:!left-[-34px]",nextElClassName:"!right-[-22px] lg:!right-[-34px]",disabledClassName:"!text-text/disabled",prevElement:(0,t.jsx)(A,{icon:"arrow_left_alt"}),nextElement:(0,t.jsx)(A,{icon:"arrow_right_alt"})}:void 0,beforeInitSlideClassName:"mr-3 w-[calc((100%-24px)/2)] md:w-[calc((100%-36px)/3)] lg:mr-4 lg:w-[calc((100%-64px)/4)]",slideClassName:"!flex !h-auto",slidesPerView:2,slidesPerViewBreakpoints:[[3,768],[4,960]],spaceBetween:12,spaceBetweenBreakpoints:[[16,960]],children:e.map((e,n)=>(0,t.jsx)(k,{item:e},e.id??e.title??`reward-card-grid-slide-${n}`))})}),I=({items:e,layoutType:n="GRID"})=>{let a="CAROUSEL"===n,r=a&&e.length>2,l=a&&e.length>2;return e.length?(0,t.jsx)("section",{className:"overflow-hidden w-[calc(100%+var(--spacing-padding-section-x)*2)] px-spacing/padding/section-x -mx-spacing/padding/section-x","data-layout-type":n.toLowerCase(),children:a?(0,t.jsx)(S,{items:e,showNavigation:r,shouldAutoplay:l}):(0,t.jsx)(w,{items:e})}):null};var D=e.i(618566),L=e.i(430569),j=e.i(140550);let P=({item:e,onClose:n})=>{if(!e)return null;let a=e.gift?.gift_title??"",r=e.gift?.desktop_image||e.gift?.mobile_image;return(0,t.jsx)(L.AsideModal,{isOpen:!!e,onClose:n,size:"small",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-4 md:gap-6 md:p-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:gap-4",children:[r&&(0,t.jsx)("div",{className:"overflow-hidden rounded-radius/button border border-borders/default bg-gradient-to-b from-fill/card to-fill/alternative-1 p-spacing/padding/soft-8px",children:(0,t.jsx)("img",{src:r,alt:a||"Reward image",className:"aspect-[533/342] w-full object-contain",loading:"lazy"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[a&&(0,t.jsx)("h3",{className:"mhg-alpha-typography-title-2 text-text/primary",children:a}),e.rewardValueText&&(0,t.jsx)("div",{className:"mhg-alpha-typography-table-cell-strong w-fit roun
6ded-radius/tooltip px-spacing/padding/soft-8px py-spacing/padding/soft-4px bg-fill/primary-light text-fill/primary-dark",children:e.rewardValueLabel?`${e.rewardValueLabel} ${e.rewardValueText}`:e.rewardValueText})]})]}),e.products.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 xl:grid-cols-2",children:e.products.map(e=>(0,c.createElement)(j.default,{...e,key:e.id,className:"!w-full sm:!w-full xl:!w-full"}))})]})})};e.i(271210);var M=e.i(686148);let O=(0,M.staticText)({seeEligibleCards:{_:"See Eligible Cards",zh:"鏿ç¢å","zh-hk":"鏿ç¢å","zh-tw":"鏿ç¢å"},rewardDetails:{_:"Reward Details",zh:"çè³è©³æ
","zh-hk":"çè³è©³æ
","zh-tw":"禮ç©è©³æ
"}});var R=e.i(861452),B=e.i(218646),F=e.i(43185),H=e.i(478082);e.s([],659860);let U=({componentTitle:e,componentIndex:t,index:n,rewardCampaignName:a,rewardCampaignId:r})=>({event:"navigate",component_type:"card",component_title:e,component_index:t,action:"click",index:n,reward_campaign_name:a,reward_campaign_id:r});var z=e.i(418081);e.s(["RewardCardGridComponent",0,({items:e=[],layoutType:n="GRID",componentIndex:a=""})=>{let r=(0,x.useClientContext)(),i=(0,D.usePathname)()??"",[s,o]=(0,c.useState)(null),d=(0,c.useRef)(!1),u=(0,c.useRef)(null),p=(0,z.getClientTranslations)(O,r),m=(0,c.useCallback)(e=>{o(e)},[]),h=(({items:e,pathname:t,componentIndex:n,labels:a,onOpenDetailsModal:r,layoutType:i})=>{let{openModal:s}=(0,y.useProductBlockAsideModal)(),o=(0,b.useCtaResolver)();return(0,c.useMemo)(()=>e.filter(e=>e.gift).map((e,c)=>{var d;let u,p=(d=e.products,u=new Map,(d??[]).forEach(e=>{if(!e)return;let t=e.entryUID?.trim()||e.uid?.trim()||e.title?.trim()||e.product_name?.trim();!t||u.has(t)||u.set(t,e)}),Array.from(u.values())),m=e.gift?.gift_title??"",h=e.gift?.uid?.trim()||void 0,f=m||void 0,g=(({index:e,layoutType:t,viewportWidth:n})=>{let a=(({layoutType:e,viewportWidth:t})=>"CAROUSEL"===e?t>=960?4:t>=768?3:2:t>=1024?4:t>=768?3:2)({layoutType:t,viewportWidth:n??window.innerWidth}),r=Math.floor(e/a);return`${e%a}.${r}`})({index:c,layoutType:i}),x=p.length>0?e.primaryCtaLabel||a.primaryCtaLabel:void 0,b=e.secondaryCtaLabel||a.secondaryCtaLabel,y=(({gift:e,formatCurrency:t,formatNumber:n})=>{let a=e?.gift_value;if(a?.price&&a.prefix)return`${t(a.prefix)}${n(a.price)}`})({gift:e.gift,formatCurrency:F.currencyFormat,formatNumber:B.currencyFormatterNoDecimal.format}),_=h||m.trim(),v=_?(({pathname:e,rewardId:t})=>{let n=new URLSearchParams({view:"cards",reward:t});return`${e}?${n.toString()}`})({pathname:t,rewardId:_}):void 0,C=p.map(e=>{let t=o({product:e}),n=!!e.url_alias;return(0,R.mapProductToProductGridCardProps)({product:e,primaryCtaUrl:t,secondaryCtaUrl:void 0,onSecondaryCtaClick:n?()=>{e.url_alias&&s(e.url_alias,null)}:void 0})});return{id:e.id,tagColor:e.colorTag,tagText:e.gift?.gift_value?.urgency_label??e.rewardValueLabel,imageUrl:e.gift?.desktop_image||e.gift?.mobile_image,imageAlt:m||"Reward image",title:m,rewardValueLabel:e.rewardValueLabel,rewardValueText:y,rewardValueTooltip:e.gift?.additional_information,previewItems:(({products:e})=>e.map(e=>{let t=e.product_image||e.provider?.provider_image;return t||e.product_name?{imageUrl:t||void 0,title:e.product_name??void 0}:null}).filter(e=>!!e))({products:p}),primaryCtaLabel:x,primaryCtaUrl:p.length>0?v:void 0,onPrimaryCtaClick:p.length>0&&v?()=>{x&&(0,l.pushDataLayer)(U({componentTitle:`Reward Card Grid/${m}_${x}`,componentIndex:n,index:g,rewardCampaignName:f,rewardCampaignId:h}))}:void 0,secondaryCtaLabel:b,onSecondaryCtaClick:()=>{(0,l.pushDataLayer)(U({componentTitle:`Reward Card Grid/${m}_${b}`,componentIndex:n,index:g,rewardCampaignName:f,rewardCampaignId:h})),r({gift:e.gift,rewardValueLabel:e.rewardValueLabel,rewardValueText:y,products:C})}}}),[e,t,n,a,r,i,s,o])})({items:e,pathname:i,componentIndex:a,labels:{primaryCtaLabel:p.seeEligibleCards,secondaryCtaLabel:p.rewardDetails},onOpenDetailsModal:m,layoutType:n});return((0,c.useEffect)(()=>{if(d.current||!h.length)return;let e=window.requestAnimationFrame(()=>{let e=u.current;if(!e||d.current)return;let t=e.getBoundingClientRect(),n=window.innerHeight,r=window.innerWidth;t.bottom>0&&t.right>0&&t.top<n&&t.left<r&&(d.current=!0,(0,l.pushDataLayer)((({componentIndex:e})=>({event:"element_impression",component_type:"card",component_title:"Reward Card Grid",component_index:e,index:""}))({componentIndex:a})))});return()=>window.cancelAnimationFrame(e)},[h.length,a]),h.length)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("section",{ref:u,className:"w-full","data-layout-type":n.toLowerCase(),children:(0,t.jsx)(I,{items:h,layoutType:n})}),(0,t.jsx)(P,{item:s,onClose:()=>o(null)})]}):null}],611198);var G=e.i(424135),V=e.i(168247),$=e.i(902639),Y=e.i(862119);let W=()=>new URLSearchParams(window.location.search).get("application-id"),q=e=>{if(e){try{let t=window.localStorage.getItem("successful-ti-purchases");if(t){let n=JSON.parse(t),a=Array.isArray(n)?n.find(t=>t?.applicationId===e):void 0;if(a)return{...a,vertical:"TI"}}}catch{}try{let t=window.localStorage.getItem("successful-hi-purchases");if(t){let n=JSON.parse(t),a=Array.isArray(n)?n.find(t=>t?.applicationId===e):void 0;if(a)return{...a,vertical:"HI"}}}catch{}}};e.s(["getApplicationIdFromUrl",0,W,"readPurchaseSnapshot",0,q,"usePolicySummary",0,()=>{let{setPolicySummary:e}=(0,$.usePageDataContext)(),{brand:t}=(0,x.useClientContext)(),n=(0,c.useRef)(!1);(0,c.useEffect)(()=>
6{if(n.current)return;n.current=!0;let a=W(),r=q(a);a&&r?(e({status:"loading",isPending:!1,firstName:r.firstName}),Y.feApiFrontClient.getPolicySummary({applicationId:a}).then(n=>{let i=((e,t,n)=>{if(!e||!t||!n)return{status:"invalid",isPending:!1};let a="HI"===t.vertical?{...n,vertical:"HI",grossArea:t.grossArea,residenceType:t.residenceType}:{...n,vertical:"TI"};return{status:"ready",isPending:!!n.isManualWriting,firstName:t.firstName,data:a}})(a,r,n);e(i);let s="singsaver"===t||"moneyhero"===t?t:void 0;"ready"===i.status&&i.data&&"TI"===i.data.vertical&&"TI"===r.vertical&&s&&(e=>{let{applicationId:t,snapshot:n,data:a,market:r}=e,i=`${t}_gaTracking`;if("u">typeof document&&document.cookie.split("; ").some(e=>e.startsWith(`${encodeURIComponent(i)}=`)))return;let s="singsaver"===r?"SGD":"HKD",o=a.basePremium-a.collectionAmount;(0,l.pushDataLayer)({event:"purchase_status",transaction_id:a.policyNo||t,status:"success",error_message:"",value:Number.isFinite(a.collectionAmount)?a.collectionAmount.toString():"",currency:s,marketing_consent:n.marketingConsent??"",coupon:"",search_result_parameter:n.searchResultParameters??"",vertical_code:"TI",items:[{item_id:a.productC
6ode??"",item_name:a.productName??"",item_brand:a.carrierName??"",deal_status:!0,promotion:"",price:Number.isFinite(a.collectionAmount)?a.collectionAmount:0,currency:s,discount:Number.isFinite(o)?o.toString():"",item_variant:"",product_details:""}],user_data:n.userData??{},userIdentities:n.userIdentities??{}}),"u"<typeof document||(document.cookie=`${encodeURIComponent(i)}=${encodeURIComponent("true")}; path=/; max-age=604800`)})({applicationId:a,snapshot:r,data:i.data,market:s})}).catch(()=>e({status:"invalid",isPending:!1}))):e({status:"invalid",isPending:!1})},[e,t])}],551009),e.i(433793);var K=e.i(334850);let Q=e=>`_${e?.toLocaleLowerCase()}`;e.s(["SecondaryCTA",0,({color_scheme:e,title:n,content:a,button_text:r,button_target:s,button_url:o,product:c})=>{let{pageData:{page:u}}=(0,$.usePageDataContext)(),m=(u.components??[]).some(e=>e?.__typename==="ComponentPagesComponentPolicySummaryCardComponent"),h=()=>{if(m&&"/login"===new URL(o??"",window.location.origin).pathname){let e=q(W());(0,l.pushDataLayer)({event:"login_signup_interact",intent:"Login CTA",login_method:"prelogin",step_number:"4",step_name:"purchase-confirmation",action:"click",component_type:"top-banner",component_title:"Button_login/sign-up",page_location_override:window.location.href,marketing_consent:e?.marketingConsent??""});return}(0,l.pushDataLayer)({event:"navigate",component_type:"card",component_title:`${n}_${r}`,action:"click",index:""}),c&&(K.sessionAttributionTracker.recordApplyClick(),(0,V.sendProductAnalytics)({action:G.UserActionEnum.CLICK,componentTitle:`${n}_${r}`,componentType:G.ComponentTypeEnum.CARD,event:"product_click_apply",index:"0",product:c}))},f=(e=>{switch(e){case"GREEN":return{block_fill:"bg-highlights/green-light",title:"text-highlights/green-dark",button:"!border-campaign/green-3 !text-campaign/green-3 hover:bg-campaign/green-3 hover:!text-white"};case"BLUE":return{block_fill:"bg-highlights/blue-light",title:"text-highlights/blue-dark",button:"!border-campaign/blue-3 !text-campaign/blue-3 hover:bg-campaign/blue-3 hover:!text-white"};case"YELLOW":return{block_fill:"bg-highlights/yellow-light",title:"text-highlights/yellow-dark",button:"!border-campaign/yellow-3 !text-campaign/yellow-3 hover:bg-campaign/yellow-3 hover:!text-white"};case"RED":return{block_fill:"bg-highlights/red-light",title:"text-highlights/red-dark",button:"!border-campaign/red-3 !text-campaign/red-3 hover:bg-campaign/red-3 hover:!text-white"};case"ORANGE":return{block_fill:"bg-highlights/orange-light",title:"text-highlights/orange-dark",button:"!border-campaign/orange-3 !text-campaign/orange-3 hover:bg-campaign/orange-3 hover:!text-white"};default:return{block_fill:"bg-white",title:"text-fill/primary-dark",button:"mhg-alpha-btn-outline-primary hover:bg-fill/primary-dark hover:!text-white"}}})(e);return(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:(0,p.default)("flex h-full flex-col rounded-radius/card border border-borders/default md:flex-row",f.block_fill),children:(0,t.jsx)("div",{className:"w-full px-spacing/padding/x py-spacing/padding/y bg-transparent",children:(0,t.jsxs)("div",{className:"flex flex-col justify-between gap-spacing/gap/y md:flex-row md:items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/x-xs",children:[(0,t.jsx)("h3",{className:(0,p.default)("mhg-alpha-typography-title-1",f.title),children:(0,t.jsx)(i.FeLink,{href:o,onClick:e=>{e.stopPropagation(),h()},target:Q(s),children:n})}),(0,t.jsx)("p",{className:"mhg-alpha-typography-body-2 text-text/secondary",children:a})]}),(0,t.jsx)("div",{className:"flex w-full md:w-auto",children:(0,t.jsx)(i.FeLink,{href:o,className:"w-full",children:(0,t.jsx)(d.default,{target:Q(s),variant:"outline",onClick:e=>{e.stopPropagation(),h()},className:(0,p.default)("w-full md:w-auto",f.button),children:r})})})]})})})})}],43489);var Z=e.i(69712),X=e.i(14928),J=e.i(462416),ee=e.i(349279),et=e.i(718942);let en=e=>{let[n,a]=(0,c.useState)(e.products),{loanSearchParams:r}=(0,et.useLoanSearchParams)(e.loanSearchParams),{pageType:i,pageData:{travelQuotes:s,plFilterConfig:o},isPreview:d}=(0,$.usePageDataContext)(),u=async({tenure:t,amount:n})=>{try{let r=e.products.map(e=>e.title),l=await Y.feApiFrontClient.calculatePersonalLoans({productIds:r,tenure:+t,amount:+n,isDraft:d});if(!l)return;let i=e.products.map((e,t)=>{let n={...e},a=l[t];return n.attributes=(0,ee.RecalculateProductAttributes)(n.attributes,a),n});a(i)}catch(e){console.error("Error updating loan products:",e)}};return(0,t.jsx)("div",{children:(0,t.jsx)(J.PersonalLoanFilterWrapper,{vertical:e.vertical,defaultParams:e.loanSearchParams,onFinishedEnterFilter:u,max_loan_amount:e.max_loan_amount,max_loan_tenure:e.max_loan_tenure,min_loan_amount:e.min_loan_amount,min_loan_tenure:e.min_loan_tenure,children:(0,t.jsxs)("div",{className:(0,p.default)(e.visible_mobile?"md:block":"hidden"),children:[e.titleReq&&(0,t.jsx)("h3",{className:"alpha-display-1",children:e.titleReq}),n.filter(e=>!!e).map((n,a)=>(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(X.ProductCard,{vertical:e.vertical,pageType:i,componentAttributes:e.attributes?.filter(e=>!!e)??[],index:`${e.index}.${a}`,loanSearchParams:r,view_rating:!0,highlightFirstAttribute:e.highlightFirstAttribute,product:n,carInsuranceQuote:void 0,carInsuranceSection:void 0,travelInsuranceQuotes:void 0,travelQuotes:s,plFilterConfig:o,pushDataLayer:l.pushDataLayer},n?.product_name)},n?.uid))]})})})};var ea=e.i(185775);e.i(713222);
6var er=e.i(178680),el=e.i(871231),ei=e.i(444101),es=e.i(246215),eo=e.i(538194);e.i(73430);var ec=e.i(316832),ed=e.i(336312),eu=e.i(715541);let ep=e=>{let{products:n,tableConfig:{attributes:a,titleReq:r}}=e,{lang:l,brand:o}=(0,x.useClientContext)(),m=g.CONTENT_MHG.get(l),h=(0,c.useMemo)(()=>a?.reduce((e,t)=>t?.attribute?.name&&t?.label?{...e,[t.attribute.name]:t.label}:e,{})??{},[a]),b=(0,c.useMemo)(()=>a?.reduce((e,t)=>t?.attribute?.name&&t?.additional_information?{...e,[t.attribute.name]:t.additional_information}:e,{})??{},[a]),[y,_]=(0,c.useState)(-1),v=(0,c.useRef)(null),[C,T]=(0,c.useState)(!1),N=(0,c.useRef)(!1),A=(0,c.useRef)(0),k=(0,c.useRef)(0);(0,c.useEffect)(()=>{let e=v.current;if(!e)return;let t=()=>{T(e.scrollLeft+e.clientWidth>=e.scrollWidth)},n=t=>{N.current=!0,A.current=t.pageX-e.offsetLeft,k.current=e.scrollLeft,e.style.cursor="grabbing"},a=()=>{N.current=!1,e.style.cursor="grab"},r=()=>{N.current=!1,e.style.cursor="grab"},l=n=>{if(!N.current)return;let a=n.pageX-e.offsetLeft-A.current;e.scrollLeft=k.current-a,t()},i=()=>{t()};return e.addEventListener("mousedown",n),e.addEventListener("mouseleave",a),e.addEventListener("mouseup",r),e.addEventListener("mousemove",l),e.addEventListener("scroll",i),t(),()=>{e.removeEventListener("scroll",i),e.removeEventListener("mousemove",l),e.removeEventListener("mouseup",r),e.removeEventListener("mouseleave",a),e.removeEventListener("mousedown",n)}},[v]);let w=e=>{_(t=>t===e?-1:e)},S=(0,c.useMemo)(()=>[m.provider,...Object.values(h),m.offers_rewards,m.apply],[m,h]),I=(0,c.useMemo)(()=>S.length,[S]),D=e=>{switch(e.__typename){case"ComponentAttributesAttrRichTextEditor":case"ComponentAttributesAttrNumberRange":case"ComponentAttributesAttrNumber":case"ComponentAttributesAttrBoolean":case"ComponentAttributesAttrPlainText":case"ComponentAttributesAttrKeyValue":case"ComponentAttributesAttrJson":return e.name?.name??""}return e?.__typename??""},L=(e,t)=>{let n=e.find(e=>D(e)===t);if(n)switch(n.__typename){case"ComponentAttributesAttrNumberRange":case"ComponentAttributesAttrNumber":return n.additional_information??null}return null},j=e=>e?.trim().toLowerCase().replace(/[:(),[\]\s+&$]+/g,"-"),P=e=>{let t=j(e);if("u"<typeof document)return;let n=document.querySelector(`#${t}`);n&&n.scrollIntoView({behavior:"smooth"})};return(0,t.jsx)(eo.TheWrapper,{type:"full",title:r,children:(0,t.jsxs)("div",{className:(0,p.default)({"mr-[-1.5rem]":C,"mr-0":C},"mb-6","mt-6","card-radius","select-none","lg:mr-0","relative","overflow-hidden","shadow","product-comparison-table-travel-insurance","scrollTable"),children:[(0,t.jsx)("div",{className:(0,p.default)("h-full","w-12","absolute","top-0","right-0","z-50",{hidden:C}),style:{background:"linear-gradient(90deg, rgba(255, 255, 255, 0) 30%, rgb(255, 255, 255) 60%)"}}),(0,t.jsx)("div",{style:{"--header-length":I},ref:v,className:"table-container",children:(0,t.jsxs)("table",{className:"w-full min-w-[1024px] bg-white",style:{display:I?"displayTable":""},children:[(0,t.jsx)("thead",{className:"contents text-left",children:(0,t.jsx)("tr",{className:"contents",children:S.map((e,n)=>(0,t.jsxs)("th",{className:`flex items-center p-4 bg-gray-100 alpha-overline xl:p-6 ${n>=S.length-2?"hidden lg:flex":""}`,children:[e,b&&b[e]&&(0,t.jsx)(E.default,{content:b[e],holderClasses:["ml-1"]})]},e))})}),(0,t.jsxs)("tbody",{className:"contents",children:[!n?.filter(Boolean).length&&(0,t.jsx)("tr",{className:"contents",children:(0,t.jsx)("td",{children:m.n_a})}),n?.filter(Boolean).map((e,n)=>{let a=(e?.exclusive_offers?.length??0)+(e?.welcome_offers?.length??0);return(0,t.jsxs)(c.default.Fragment,{children:[(0,t.jsxs)("tr",{className:"table-line contents lg:hover:bg-gray-50",children:[(0,t.jsx)("td",{className:"flex items-center border-t border-gray-300 p-4 bg-white xl:p-6",children:(0,t.jsxs)("div",{className:"flex flex-col sm:gap-4",children:[(0,t.jsx)("div",{className:"flex w-28 items-center justify-center",children:(0,t.jsx)(i.FeLink,{href:"#",onClick:()=>P(e.product_name),children:(0,t.jsx)(s.CmsImage,{unoptimized:!0,src:e?.product_image??"",alt:e?.product_name??"Product",height:75,width:112,className:"max-h-[75px] w-auto cursor-pointer object-contain"})})}),(0,t.jsx)(i.FeLink,{href:`#${j(e.product_name)}`,onClick:t=>{t.preventDefault(),P(e.product_name)},className:"xs:max-w-50 !text-gray-900 alpha-body-2 hover:underline hover:!text-gray-800 sm:max-w-75 lg:max-w-full",children:e?.product_name})]})}),Object.keys(h).map(n=>(0,t.jsx)("td",{className:"flex items-center border-t border-gray-300 p-4 bg-white xl:p-6",children:(0,t.jsxs)("div",{className:"col flex items-center gap-1",children:[(0,t.jsx)("p",{className:"whitespace-nowrap alpha-body-1 lg:whitespace-normal",children:((e,t)=>{if(!e)return m.n_a;let n=e.find(e=>D(e)===t);return n?(0,ec.formatAttributeItemValue)(n)??m.n_a:m.n_a}
6)(e?.attributes??[],n)}),L(e?.attributes??[],n)&&(0,t.jsx)(E.default,{content:L(e?.attributes??[],n)??""})]})},n)),(0,t.jsx)("td",{className:"offers-rewards hidden items-center border-t border-gray-300 p-4 bg-white lg:flex xl:p-6",children:a>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{onClick:()=>w(n),className:"hidden cursor-pointer text-nowrap !font-semibold underline !text-[--buttons-primary] alpha-body-2 lg:inline-block",children:[m.eligible_rewards," (",a,")"]}),(0,t.jsx)("div",{className:"inline-block alpha-body-2 lg:hidden",children:(0,t.jsx)(d.default,{onClick:()=>w(n),title:`${m.view_rewards} (${a})`,color:"text-[--buttons-primary]",children:`${m.eligible_rewards} (${a})`})})]}):(0,t.jsx)("div",{children:m.n_a})}),(0,t.jsx)("td",{className:"hidden items-center border-t border-gray-300 p-4 bg-white lg:flex xl:p-6",children:e?.call_to_action?.links?.[0]?.redirected_url&&(0,t.jsxs)("div",{className:"flex flex-auto flex-col gap-2",children:[(0,t.jsx)(ei.ApplyCtaLink,{product:e,e2eCTA:e.e2eToogleButton,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(d.default,{title:e?.call_to_action?.links?.[0]?.label,endIcon:(0,t.jsx)(u.default,{className:"size-5"}),className:"w-full sm:w-54",styleType:"cta",onClick:t=>{t.stopPropagation(),K.sessionAttributionTracker.recordApplyClick(),(0,V.sendProductAnalytics)({action:G.UserActionEnum.CLICK,componentTitle:`${r}_${e?.call_to_action?.links?.[0]?.label}`,componentType:G.ComponentTypeEnum.TABLE,event:"product_click_apply",index:n.toString(),product:e,url:r})},children:e?.call_to_action?.links?.[0]?.label})}),(0,t.jsx)("p",{className:"text-center font-medium text-gray-700 alpha-body-2 leading-none",children:(0,f.generateButtonSubText)({btnLabel:e?.call_to_action?.links?.[0]?.label,appName:o,lang:l,providerName:e?.provider?.provider_name??""})})]})}),(0,t.jsx)("td",{colSpan:I,className:"flex p-4 bg-white lg:hidden xl:p-6",children:(0,t.jsxs)("div",{className:"flex flex-row-reverse gap-2",children:[a>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{onClick:()=>w(n),className:"hidden cursor-pointer text-nowrap !font-semibold underline !text-[--buttons-primary] alpha-body-2 lg:inline-block",children:[m.eligible_rewards," (",a,")"]}),(0,t.jsx)("div",{className:"inline-block alpha-body-2 lg:hidden",children:(0,t.jsx)(d.default,{onClick:()=>w(n),title:`${m.view_rewards} (${a})`,variant:"text",styleType:"primary",className:"text-primary-800",endIcon:(0,t.jsx)(u.default,{className:"size-5"}),children:`${m.eligible_rewards} (${a})`})})]}),e?.call_to_action?.links?.[0]?.redirected_url&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(ei.ApplyCtaLink,{product:e,e2eCTA:e.e2eToogleButton,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(d.default,{title:e?.call_to_action?.links?.[0]?.label,endIcon:(0,t.jsx)(u.default,{className:"size-5"}),className:"w-39 sm:w-41",styleType:"cta",onClick:t=>{t.stopPropagation(),K.sessionAttributionTracker.recordApplyClick(),(0,V.sendProductAnalytics)({action:G.UserActionEnum.CLICK,componentTitle:`${r}_${e?.call_to_action?.links?.[0]?.label}`,componentType:G.ComponentTypeEnum.TABLE,event:"product_click_apply",index:n.toString(),product:e})},children:e?.call_to_action?.links?.[0]?.label})}),(0,t.jsx)("p",{className:"xs:max-w-[155px] text-center font-medium text-gray-700 alpha-body-2 leading-none sm:max-w-auto",children:(0,f.generateButtonSubText)({btnLabel:e?.call_to_action?.links?.[0]?.label,appName:o,lang:l,providerName:e?.provider?.provider_name??""})})]})]})})]}),((e?.exclusive_offers?.length??0)>0||(e?.welcome_offers?.length??0)>0)&&y===n&&(0,t.jsx)("tr",{className:"contents",children:(0,t.jsx)("td",{colSpan:I,className:"relative flex p-4 bg-[--highlights-blue-light] xl:p-6",children:(0,t.jsxs)("div",{className:"flex w-full flex-col",children:[(0,t.jsxs)("div",{className:"flex cursor-pointer justify-between",onClick:()=>void _(-1),children:[(0,t.jsxs)("p",{className:"mb-6 text-[--buttons-primary] alpha-subheading-2",children:[m.eligible_rewards," (",a,")"]}),y===n?(0,t.jsx)(eu.default,{className:"size-[--shapes-icon-size-lg]"}):(0,t.jsx)(ed.default,{className:"size-[--shapes-icon-size-lg]"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 alpha-body-2",children:[e?.exclusive_offers&&e?.exclusive_offers?.filter(Boolean)?.map(e=>(0,t.jsx)(es.ProductCardOffer,{...e},e.uid)),e?.welcome_offers&&e?.welcome_offers?.filter(Boolean)?.map(e=>(0,t.jsx)(es.ProductCardOffer,{...e},e.uid))]})]})})})]},e?.uid)})]})]})})]})})};e.s(["SelectedProducts",0,e=>{let{pageType:n}=(0,$.usePageDataContext)();switch(e.vertical){case"CREDIT_CARD":switch(e.display_type){case er.EnumDisplayType.ProductListing:return(0,t.jsx)(en,{...e});case er.EnumDisplayType.ComparisonTable:return(0,t.jsx)(Z.ComparisonTableWrapper,{tableConfig:{id:e.id,titleReq:e.titleReq,attributes:e.attributes,min_loan_amount:e.min_loan_amount,max_loan_amount:e.max_loan_amount,min_loan_tenure:e.min_loan_tenure,max_loan_tenure:e.max_loan_tenure,default_loan_amount:e.default_loan_amount,default_loan_tenure:e.default_loan_tenure,maxVisibleProducts:8,baseColumnOrder:void 0,visible:e.visible,visible_mobile:e.visible_mobile},products:e.products||[],vertical:e.vertical,slug:e.slug,pageType:n,tabs:void 0})}break;case"PERSONAL_LOANS":{let a=(0,ea.getLoanSearchParamsWithDefaultComponentParam)(e.brand,void 0,{amount:e.default_loan_amount?e.default_loan_amount.toString():void 0,tenure:e.default_loan_tenure?e.default_loan_tenure.toString():void 0});switch(e.display_type){case er.EnumDisplayType.ProductListing:return(0,t.jsx)(en,{...e,loanSearchParams:a});case er.EnumDisplayType.ComparisonTable:return(0,t.jsx)(Z.ComparisonTableWrapper,{tableConfig:{id:e.id,titleReq:e.titleReq,attributes:e.attributes,min_loan_amount:e.min_loan_amount,max_loan_amount:e.max_loan_amount,min_loan_tenure:e.min_loan_tenure,max_loan_tenure:e.max_loan_tenure,default_loan_amount:e.default_loan_amount,default_loan_tenure:e.default_loan_tenure,maxVisibleProducts:8,baseColumnOrder:void 0,visible:e.visible,visible_mobile:e.visible_mobile},products:e.products||[],vertical:e.vertical,slug:e.slug,loanSearchParams:a,pageType:n,tabs:void 0})}break}case"TRAVEL_INSURANCE":switch(e.display_type){case er.EnumDisplayType.ProductListing:return(0,t.jsx)(en,{...e});case er.EnumDisplayType.ComparisonTable:return(0,t.jsx)(ep,{tableConfig:{titleReq:e.titleReq,attributes:e.attributes},products:e.products||[]})}break;default:switch(e.display_type){case er.EnumDisplayType.ProductListing:return(0,t.jsx)(en,{...e});case er.EnumDisplayType.ComparisonTable:return(0,t.jsx)(el.ProductComparisonTable,{tableConfig:{titleReq:e.titleReq,attributes:e.attributes,visible_mobile:e.visible_mobile},products:e.products||[]})}}}],631626),e.i(247167);let em={rewardBadgePrefix:{_:"Up to",zh:"é«é","zh-hk":"é«é","zh-tw":"é«
6é"},rewardBadgeSuffix:{_:"in rewards",zh:"çè³","zh-hk":"çè³","zh-tw":"çè³"}},eh=(0,M.staticText)(em);e.s(["ProductRewardBadgeTranslations",0,eh,"productRewardBadgeTranslationConfig",0,em],254098);let ef=er.EnumStandoutTextBlockType.Tips,eg={[er.EnumStandoutTextBlockType.Tips]:{icon:"emoji_objects",headerBgClass:"bg-fill/primary",bodyGradient:"linear-gradient(180deg, var(--fill-primary-light) 0%, #FFFFFF 100%)",buttonHoverClass:"",buttonToneClass:""},[er.EnumStandoutTextBlockType.Takeaways]:{icon:"bookmark",headerBgClass:"bg-fill/primary",bodyGradient:"linear-gradient(180deg, var(--fill-primary-light) 0%, #FFFFFF 100%)",buttonHoverClass:"",buttonToneClass:""},[er.EnumStandoutTextBlockType.ExpertPerspective]:{icon:"neurology",headerBgClass:"bg-[--highlights-green-dark]",bodyGradient:"linear-gradient(180deg, var(--highlights-green-light) 0%, #FFFFFF 100%)",buttonHoverClass:"hover:!bg-[--highlights-green-dark] hover:!text-text/on-dark hover:!border-[--highlights-green-dark]",buttonToneClass:"!text-[--highlights-green-dark] !border-[--highlights-green-dark]"},[er.EnumStandoutTextBlockType.EditorsPick]:{icon:"stylus_fountain_pen",headerBgClass:"bg-fill/primary",bodyGradient:"linear-gradient(180deg, var(--fill-primary-light) 0%, #FFFFFF 100%)",buttonHoverClass:"",buttonToneClass:""}};var ex=e.i(469835);let eb=({applyLabel:e,applyUrl:n,buttonTarget:a,onApplyClick:r,onViewDetailsClick:l,showApply:i,showDetail
6s:s,viewDetailsLabel:o})=>s||i?(0,t.jsxs)("div",{className:(0,p.default)("grid gap-[6px] md:gap-spacing/gap/soft-8px",{"grid-cols-1":s!==i,"grid-cols-2":s&&i}),children:[s&&(0,t.jsx)(d.default,{size:"small",variant:"outline",styleType:"neutral-light-and-blue",className:"w-full",onClick:l,children:o}),i&&(0,t.jsx)(d.default,{as:"a",size:"small",variant:"outline",styleType:"cta",className:"w-full",href:n,target:a===er.EnumTabTarget.NewTab?"_blank":"_self",rel:a===er.EnumTabTarget.NewTab?"noopener noreferrer":void 0,onClick:r,children:e})]}):null,ey=e=>{let{alt:n,fallbackText:a,fallbackSrc:r,primarySrc:l}=e,[i,o]=(0,c.useState)(l||r);return i||a?(0,t.jsx)("div",{className:"flex h-16 w-[101px] shrink-0 items-center justify-center overflow-hidden rounded-radius/tooltip border border-borders/default p-spacing/padding/soft-12px bg-fill/card",children:i?(0,t.jsx)(s.CmsImage,{unoptimized:!0,src:i,alt:n,width:101,height:64,sizes:{_:101},loading:"lazy",className:"size-full object-contain",onError:()=>{r&&i!==r?o(r):o("")}}):(0,t.jsx)("span",{className:"mhg-alpha-typography-caption line-clamp-2 text-center text-text/secondary",children:a})}):null},e_=({buttonTarget:e,content:n,model:a,onApplyClick:r,onViewDetailsClick:l,viewDetailsLabel:i})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ex.RichText,{className:"whitespace-break-spaces text-text/primary",baseTextStyle:"Body2Relaxed",children:n}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)("article",{className:"flex h-full flex-col gap-spacing/gap/soft-12px",children:[a.badge&&(0,t.jsx)("div",{className:"rounded-radius/button px-spacing/padding/soft-8px py-spacing/padding/soft-4px bg-highlights/green-light",children:(0,t.jsx)("div",{className:"mhg-alpha-typography-bullet-2 text-highlights/green-dark",children:a.badge})}),(0,t.jsxs)("div",{className:"flex items-center gap-[--spacing-padding-soft-12px]",children:[(0,t.jsx)(ey,{alt:a.product?.product_name||"Product image",fallbackText:a.fallbackText,fallbackSrc:a.fallbackMediaSrc,primarySrc:a.primaryMediaSrc},`${a.primaryMediaSrc}|${a.fallbackMediaSrc}|${a.fallbackText}`),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"mhg-alpha-typography-caption line-clamp-1 text-text/secondary-lighter",children:a.product?.product_name}),a.attributeValue&&(0,t.jsxs)("div",{className:"mt-spacing/padding/soft-4px flex items-center gap-spacing/gap/x-xs",children:[(0,t.jsx)("p",{className:"mhg-alpha-typography-bullet-2 text-text/primary",children:a.attributeValue}),a.attributeTooltip&&(0,t.jsx)(E.default,{placement:"top",infoClass:"!size-[--shapes-icon-size-sm] text-text/disabled",content:a.attributeTooltip})]})]})]}),(0,t.jsx)(eb,{applyLabel:a.applyLabel,applyUrl:a.applyUrl,buttonTarget:e,onApplyClick:r,onViewDetailsClick:l,showApply:a.showApply,showDetails:a.showDetails,viewDetailsLabel:i})]})})]});e.i(910881),e.i(501008);var ev=e.i(279143);let eC=({index:e,author:n})=>{let{lang:a,brand:r,langPrefix:o}=(0,x.useClientContext)(),c=g.CONTENT_MHG.get(a),d=n.slug?(0,ev.getCmsPageLink)({brand:r,pageType:"author",slug:n.slug,langPrefix:o}):void 0,u=()=>{(0,l.pushDataLayer)({event:"navigate",component_type:"body",component_title:`Article Author_${n.name}`,action:"click",index:e})};return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[n.avatar?.url&&d&&(0,t.jsx)(i.FeLink,{href:d,className:"size-12 overflow-hidden rounded-full",onClick:u,children:(0,t.jsx)(s.CmsImage,{height:48,width:48,sizes:{_:48},className:"object-contain",src:n.avatar?.url,alt:n.name})}),n.avatar?.url&&!d&&(0,t.jsx)("div",{className:"size-12 overflow-hidden rounded-full",children:(0,t.jsx)(s.CmsImage,{height:48,width:48,sizes:{_:48},className:"object-contain",src:n.avatar?.url,alt:n.name})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("h4",{className:"font-semibold text-base",children:[c?.written_by??"",d?(0,t.jsx)(i.FeLink,{href:d,className:"ml-1 underline text-primary",onClick:u,children:n.name}):(0,t.jsx)("span",{className:"ml-1",children:n.name})]}),(0,t.jsx)("p",{className:"font-medium text-gray-700 text-sm ",children:n.position})]})]})};e.s(["AuthorSimple",0,eC],129758);let eT=e=>
6{let{author:n,buttonClasses:a,buttonTarget:r,buttonText:l,buttonUrl:i,content:s,includeCta:o,isPerspective:c}=e,u=o&&l&&i,p=c&&!!n?.name||!!u;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mhg-alpha-typography-body-2-relaxed whitespace-break-spaces text-text/primary md:flex-1",children:s}),p&&(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4 md:w-60",children:[c&&n?.name&&(0,t.jsx)("div",{children:(0,t.jsx)(eC,{author:n,index:0})}),u&&(0,t.jsx)(d.default,{as:"a",variant:"outline",styleType:"primary",className:a,href:i,endIcon:(0,t.jsx)(v.MaterialIcon,{icon:"arrow_right_alt"}),target:r===er.EnumTabTarget.NewTab?"_blank":"_self",rel:r===er.EnumTabTarget.NewTab?"noopener noreferrer":void 0,children:l})]})]})},eE=e=>{let{bodyClassName:n,bodyGradient:a,children:r,headerBgClass:l,icon:i,title:s}=e;return(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden rounded-radius/card border border-gray-300 bg-white",children:[(0,t.jsxs)("div",{className:(0,p.default)("flex items-center gap-1 border-b border-borders/default px-spacing/gap/x py-spacing/gap/y-sm text-text/on-dark",l),children:[(0,t.jsx)(v.MaterialIcon,{className:"font-light",icon:i}),(0,t.jsx)("h3",{className:"mhg-alpha-typography-title-2 text-text/on-dark",children:s})]}),(0,t.jsx)("div",{className:n,style:{background:a},children:r})]})};var eN=e.i(40232),eA=e.i(489635),ek=e.i(158189);let ew={value:"",tooltip:""},eS=(e,t)=>{if(!t)return ew;let n=e.attributes?.find(e=>(e=>{switch(e?.__typename){case"ComponentAttributesAttrRichTextEditor":case"ComponentAttributesAttrNumberRange":case"ComponentAttributesAttrNumber":case"ComponentAttributesAttrBoolean":case"ComponentAttributesAttrPlainText":case"ComponentAttributesAttrKeyValue":case"ComponentAttributesAttrJson":return e.name?.name??"";default:return e.__typename??""}})(e)===t);if(!n)return ew;let a=(0,ec.formatAttributeItemValue)(n).trim();return{value:"-"===a||"- -"===a?"":a,tooltip:(e=>{switch(e.__typename){case"ComponentAttributesAttrNumber":case"ComponentAttributesAttrNumberRange":return e.additional_information??"";default:return""}})(n)}},eI=e=>{let t,{product:n,staticText:a,vertical:r,overrideBadge:l}=e;if(l?.trim())return l.trim();let i=(0,ek.getHighersRewardExclusiveOffersAndWelcomeOffersGitsFromProduct)(n,void 0,"PERSONAL_LOANS"!==r);if(!i?.price)return"";let s=(t={prefix:i.prefix,price:i.price},`${(0,F.currencyFormat)(t.prefix)}${(0,F.formatNumberWithSeparator)({value:t.price,thousandsSeparator:","})}`);return`${a.rewardBadgePrefix} ${s} ${a.rewardBadgeSuffix}`};e.s(["getProductRewardBadgeCopy",0,eI,"getProductSharedAttributeData",0,eS],531569);var eD=e.i(928441);e.s(["StandoutTextBlock",0,e=>{let n,a=(0,x.useClientContext)(),{lang:r}=a,{openModal:l}=(0,y.useProductBlockAsideModal)(),i=(0,z.getClientTranslations)(eD.TRANSLATIONS,a),s=(0,z.getClientTranslations)(eh,a),o=e.type||ef,d=eg[o]??eg[ef],u=((e,t)=>{switch(e){case er.EnumStandoutTextBlockType.EditorsPick:return t.standout_editors_pick;case er.EnumStandoutTextBlockType.ExpertPerspective:return t.standout_perspective;case er.EnumStandoutTextBlockType.Takeaways:return t.standout_takeaways;default:return t.standout_tips}})(o,i),m=o===er.EnumStandoutTextBlockType.ExpertPerspective,h=o===er.EnumStandoutTextBlockType.EditorsPick,g=(0,p.default)("w-full !rounded-radius/button bg-buttons/base",d.buttonHoverClass,d.buttonToneClass),b=(e=>{let{item:t,lang:n,rewardBadgeStaticText:a}=e,r=t?.product,l=(0,eN.useCtaUrl)({product:r})??"",i=(0,c.useMemo)(()=>r?eS(r,t?.display_attribute?.name):{value:"",tooltip:""},[t?.display_attribute?.name,r]),s=(0,c.useMemo)(()=>r?eI({product:r,staticText:a}):"",[r,a]),o=(0,c.useMemo)(()=>r?(0,eA.getApplyButtonLabel)((0,f.tr)("apply_now",n),void 0,r.call_to_action):"",[n,r]);return{item:t,product:r,attributeValue:i.value,attributeTooltip:i.tooltip,badge:s,applyUrl:l,applyLabel:o,primaryMediaSrc:r?.product_image||"",fallbackMediaSrc:r?.provider?.provider_image||"",fallbackText:r?.provider?.provider_name||r?.product_name||"",showDetails:!!r?.url_alias,showApply:!!l}})({item:(n=e.editor_pick_product,n?.product?n:void 0),lang:r,rewardBadgeStaticText:s}),_=(0,c.useCallback)((e,t)=>{K.sessionAttributionTracker.recordApplyClick(),(0,V.sendProductAnalytics)({action:G.UserActionEnum.CLICK,componentTitle:`Editor's Pick/CTA_${t}`,componentType:G.ComponentTypeEnum.CARD,event:"product_click_apply",index:"0",product:e})},[]),v=(0,c.useCallback)((e,t)=>{(0,V.sendProductAnalytics)({action:G.UserActionEnum.CLICK,componentTitle:`Editor's Pick/Footer_${t}`,componentType:G.ComponentTypeEnum.CARD,event:"product_interaction",index:"0",product:e}),e.url_alias&&l(e.url_alias,null)},[l]);return h&&!b.product?null:(0,t.jsx)(eE,{headerBgClass:d.headerBgClass,icon:d.icon,title:u,bodyGradient:d.bodyGradient,bodyClassName:(0,p.default)("flex flex-col px-spacing/padding/x py-spacing/padding/y",{"gap-spacing/gap/y-sm":h,"gap-4 md:flex-row":!h}),children:h?(0,t.jsx)(e_,{buttonTarget:e.button_target,content:b.item?.content,model:b,onApplyClick:()=>{b.product&&_(b.product,b.applyLabel)},onViewDetailsClick:()=>{b.product&&v(b.product,(0,f.tr)("spotlight_details",r))},viewDetailsLabel:(0,f.tr)("spotlight_details",r)}
6):(0,t.jsx)(eT,{author:e.author,buttonClasses:g,buttonTarget:e.button_target,buttonText:e.button_text,buttonUrl:e.button_url,content:e.content,includeCta:e.include_cta,isPerspective:m})})}],429952);var eL=e.i(597120);e.s(["TheWhiteBoard",0,({id:e,content:n})=>(0,t.jsx)(eo.TheWrapper,{id:e,type:"full",children:(0,t.jsx)("div",{id:e,className:"p-3 bg-white xl:p-3",children:(0,t.jsx)(eL.RawHtml,{className:"prose prose-xl max-w-full",content:n})})})],257187),e.s(["TopPicksModule",0,({title:e,items:r})=>{let l=r?.find(e=>e.target),s=(0,a.getTabTarget)(l?.target);return(0,t.jsx)("div",{className:"bg-gradient-to-r from-fill/alternative-2 to-fill/base",children:(0,t.jsxs)("div",{className:"mx-auto max-w-screen-2xl p-4 lg:p-10",children:[(0,t.jsx)("h3",{className:"mhg-alpha-typography-display-2 mb-6 text-left text-text/primary md:mb-7 md:text-center lg:mb-8",children:e}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-spacing/gap/y md:grid-cols-2 lg:grid-cols-4",children:r?.map(e=>(0,t.jsxs)(i.FeLink,{href:e?.url,target:s,className:"group flex items-center gap-1 rounded-2xl px-spacing/padding/x-sm py-spacing/padding/y-sm shadow bg-white hover:bg-buttons/primary-hover hover:text-white lg:gap-4",children:[e?.icon&&(0,t.jsx)("div",{className:"flex size-10 min-w-10 items-center justify-center rounded-full bg-fill/primary-light text-fill/primary-dark",children:(0,t.jsx)(n.Icon,{icon:e.icon,className:"w-7"})}),(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsx)("h3",{className:"mhg-alpha-typography-button-1 font-[--font-weight-title-1] text-gray-900 group-hover:text-white",children:e.name}),(0,t.jsx)(u.default,{className:"size-6"})]})]},e?.name))})]})})}],126642);var ej=e.i(594999),eP=e.i(789450),eM=e.i(317220),eO=e.i(838640);e.i(375179);var eR=e.i(504883),eB=e.i(174080);let eF=({enabled:e,suspended:n=!1,onPinnedChange:a,offsetPx:r=0,className:l,pinnedClassName:i,children:s,...o})=>{let d=(0,c.useRef)(null),u=(0,c.useRef)(null),m=(0,c.useRef)(null),h=(0,c.useRef)(null),[f,g]=(0,c.useState)(!1),[x,b]=(0,c.useState)(null),[y,_]=(0,c.useState)(0);(0,c.useEffect)(()=>{if(!e)return void g(!1);let t=d.current;if(!t||!("IntersectionObserver"in window))return;let n=new IntersectionObserver(([e])=>{g(!e.isIntersecting&&e.boundingClientRect.top<=r)},{threshold:0,rootMargin:`${-r}px 0px 0px 0px`});return n.observe(t),()=>n.disconnect()},[e,r]),(0,c.useEffect)(()=>{if(!e)return;let t=d.current;if(!t)return;let n=()=>{let e=t.getBoundingClientRect();b({left:e.left,width:e.width,bodyWidth:document.body.clientWidth})};n(),window.addEventListener("resize",n);let a=null;return"ResizeObserver"in window&&(a=new ResizeObserver(n)).observe(t),()=>{window.removeEventListener("resize",n),a?.disconnect()}},[e]);let v=(0,c.useCallback)(e=>{if(m.current?.disconnect(),!e)return;if(!("ResizeObserver"in window))return void _(e.offsetHeight);let t=new ResizeObserver(()=>_(e.offsetHeight));t.observe(e),m.current=t,_(e.offsetHeight)},[]);(0,c.useEffect)(()=>()=>m.current?.disconnect(),[]);let C=f&&null!==x&&!n;if((0,c.useEffect)(()=>{a?.(C)},[C,a]),C&&!h.current&&(h.current=document.createElement("div")),(0,c.useLayoutEffect)(()=>{let e=h.current;if(!e)return;let t=C?document.body:u.current;if(t&&e.parentNode!==t){let{activeElement:n}=document,a=n instanceof HTMLElement&&e.contains(n);t.appendChild(e),a&&n.focus({preventScroll:!0})}},[C]),(0,c.useEffect)(()=>()=>{h.current?.remove()},[]),!e)return(0,t.jsx)("div",{className:l,...o,children:s});let T=(0,t.jsx)("div",{ref:v,...o,className:(0,p.default)(l,C&&i,C&&"fixed z-[var(--z-index-personal-filter)]"),style:C?{top:r,left:0,width:x.bodyWidth,paddingLeft:x.left,paddingRight:x.bodyWidth-x.left-x.width}:void 0,children:s});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:d,"aria-hidden":!0,className:"h-0"}),(0,t.jsx)("div",{"aria-hidden":!0,style:{height:C?y:0}}),(0,t.jsx)("div",{ref:u}),h.current?(0,eB.createPortal)(T,h.current):T]})};e.s(["GlobalStickyPanel",0,eF],325031);let eH=(0,c.createContext)({navPinned:!1,setNavPinned:()=>{}}),eU=()=>(0,c.useContext)(eH).navPinned;e.s(["StickyTopSlotProvider",0,({children:e})=>{let[n,a]=(0,c.useState)(!1),r=(0,c.useMemo)(()=>({navPinned:n,setNavPinned:a}),[n]);return(0,t.jsx)(eH.Provider,{value:r,children:e})},"useClaimStickyTopSlot",0,()=>{let{setNavPinned:e}=(0,c.useContext)(eH);return(0,c.useEffect)(()=>()=>e(!1),[e]),(0,c.useCallback)(t=>e(t),[e])},"useStickyTopSlotSuspended",0,eU],57509);let ez=function({className:e}){return(0,t.jsx)("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"
6currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M7.14808 16.8516L4.23656 15.2651L5.05578 14.4459L7.46923 14.7959L11.4942 10.7709L3.91541 6.65551L4.98846 5.57283L14.2885 7.9459L17.723 4.53248C17.9615 4.29403 18.2531 4.1748 18.598 4.1748C18.9429 4.1748 19.2345 4.29403 19.473 4.53248C19.7115 4.77095 19.8307 5.06421 19.8307 5.41228C19.8307 5.76035 19.7115 6.05361 19.473 6.29208L16.0634 9.72088L18.4269 19.0113L17.3538 20.0939L13.2288 12.5151L9.22306 16.5209L9.56343 18.9439L8.73461 19.7728L7.14808 16.8516Z"})})},eG={destinationLabel:{_:"Where will you travel?","zh-hk":"ä½ å°å»åªè£¡æ
è¡ï¼"},destinationTooltip:{_:"Select one or more destinations for your trip. Your premium will be calculated based on the destinations you choose.","zh-hk":"鏿ä¸åæå¤åæ
è¡ç®çå°ãæ¨çä¿è²»å°æ ¹ææ¨é¸æçç®çå°è¨ç®ã"},travelDatesLabel:{_:"Dates of travel","zh-hk":"æ
è¡æ¥æ"},travelDatesTooltip:{_:"Select your departure and return dates. The travel period must be within the policy limits.","zh-hk":"鏿æ¨çåºç¼åè¿åæ¥æãæ
è¡æéå¿
é å¨ä¿å®éå¶ç¯åå
§ã"},adultsLabel:{_:"Adults","zh-hk":"æäºº"},adultsTooltip:{_:"Number of adults traveling (18 years and above)","zh-hk":"æ
è¡çæäººæ¸éï¼18æ²å以ä¸ï¼"},childrenLabel:{_:"Children","zh-hk":"å
ç«¥"},childrenTooltip:{_:"Number of children traveling (under 18 years)","zh-hk":"æ
è¡çå
ç«¥æ¸éï¼18æ²ä»¥ä¸ï¼"},tripDetailsLabel:{_:"Your trip details","zh-hk":"æ¨çæ
è¡è©³æ
"},tripDetailsTooltip:{_:"Review your trip details","zh-hk":"æ¥çæ¨çæ
è¡è©³æ
"},editButtonLabel:{_:"Edit","zh-hk":"編輯"},modalTitle:{_:"Change your trip details","zh-hk":"æ´æ¹æ¨çæ
è¡è©³æ
"},findBestDealButton:{_:"Find Best Deal","zh-hk":"å°æ¾æä½³åªæ "},travelingAsFamilyLabel:{_:"We're traveling as a family","zh-hk":"æå以家åºèº«ä»½æ
è¡"},travelingAsFamilyTooltip:{_:"Family refers to at most 2 adults (insured person & legal spouse), and children below 18 years old.","zh-hk":"å®¶åºæçæ¯æå¤å
©åå®¶é·(åä¿äººåå
¶åæ³é
å¶)以åå
¶18æ²ä»¥ä¸å女ãæéå®¶åºçå
·é«å®ç¾©,è«åé±ä¿éªå
¬å¸çç¢åå°ååã"},familyModalHeadline:{_:"Traveling as a Family?","zh-hk":"以家åºèº«ä»½æ
è¡ï¼"},familyModalBody:{_:"A family plan covers up to 2 adults (you and your spouse) + children under 18.","zh-hk":"å®¶åºè¨åå
æ¬æå¤ 2 ä½æäººï¼æ¨åæ¨çé
å¶ï¼å 18 æ²ä»¥ä¸å女ã"},familyModalYes:{_:"Yes","zh-hk":"æ¯"},familyModalNo:{_:"No","zh-hk":"å¦"},close:{_:"Close","zh-hk":"éé"},SINGLE_PLAN:{_:"Single-Trip","zh-hk":"宿¬¡è¨å"},ANNUAL_PLAN:{_:"Annual","zh-hk":"å
¨å¹´æ
ç¨"}};var eV=e.i(450818),e$=e.i(384383);function eY({className:e,onClose:n}){return(0,t.jsx)("div",{"data-testid":"modal-overlay",className:(0,p.default)("fixed inset-0 z-40 size-full overflow-y-auto bg-black/50",e),onClick:()=>n(),role:"presentation"})}function eW({isScrollLockActive:e=!1,onClose:t}){(0,e$.useScrollLock)(e);let n=(0,c.useCallback)(e=>{"Escape"===e.key&&t()},[t]);(0,c.useEffect)(()=>(document.addEventListener("keydown",n,!1),()=>{document.removeEventListener("keydown",n,!1)}),[n])}var eq=e.i(521416);let eK={title:{_:"Cover Type","zh-hk":"ä¿éé¡å"},options:{_:{SINGLE_PLAN:"Single-Trip",ANNUAL_PLAN:"Annual"},"zh-hk":{SINGLE_PLAN:"宿¬¡è¨å",ANNUAL_PLAN:"å
¨å¹´æ
ç¨"}},optionsMobile:{_:{SINGLE_PLAN:"Single-Trip",ANNUAL_PLAN:"Annual Multi-trip"},"zh-hk":{SINGLE_PLAN:"宿¬¡è¨å",ANNUAL_PLAN:"å
¨å¹´æ
ç¨"}},coverageTypeTooltip:{_:{SINGLE_PLAN:"Covers one round trip back to Singapore",ANNUAL_PLAN:"Covers multiple round trips back to Singapore over a 12-month period from the coverage start date"},"en-hk":{SINGLE_PLAN:"Covers one round trip back to Hong Kong",ANNUAL_PLAN:"Covers multiple round trips back to Hong Kong over a 12-month period from the coverage start date"},"zh-hk":{SINGLE_PLAN:"æ¶µè䏿¬¡å¾è¿é¦æ¸¯çå®ç¨æ
è¡",ANNUAL_PLAN:"æ¶µè夿¬¡å¾è¿é¦æ¸¯çæ
è¡ï¼è¦èæçºå¾ä¿ééå§æ¥æèµ·è¨ç12åæ"}}};var eQ=e.i(894485);function eZ({id:e,label:n,optional:a,optionalLabel:r,tooltip:l,placement:i,onTooltipHover:s}){return n?(0,t.jsxs)("label",{htmlFor:e,className:"mhg-alpha-typography-caption inline-flex items-center text-highlights/gray-dark",children:[n,a&&` (${r})`,l&&(0,t.jsx)(eV.Tooltip,{content:(0,t.jsx)("div",{className:"max-w-[242px] md:max-w-65 lg:max-w-[286px] xl:max-w-[322px]",children:l}),placement:i,children:(0,t.jsx)("span",{className:"ml-1 inline-flex items-center",onMouseEnter:s,children:(0,t.jsx)(eQ.default,{className:"inline-block size-shapes/icon-size-md align-middle text-text/disabled"})})})]}):null}(0,c.forwardRef)((e,n)=>(0,t.jsx)("span",{ref:n,className:"ml-1 inline-flex items-center",children:(0,t.jsx)(eQ.default,{className:"inline-block size-[18px] align-middle text-secondary-lighter md:size-[22px]"})})).displayName="InfoIcon";let eX=e=>{let{options:n,label:a,labelTooltip:r,onTooltipHover:l,value:i,disabled:s=!1,onChange:o=eJ,containerClassNames:c}=e;return(0,t.jsxs)("div",{className:(0,p.default)(c,"flex flex-col gap-spacing/gap/soft-6px"),children:[!!a&&(0,t.jsx)(eZ,{label:a,tooltip:r,onTooltipHover:l}),(0,t.jsx)("input",{disabled:s,type:"text",hidden:!0,required:!0,name:e.name,value:i,onChange:e=>{!e.currentTarget.value||n.find(t=>t.value===e.currentTarget.value)?.disabled||o(e.currentTarget.value)}}
6),(0,t.jsx)("div",{role:"tablist",tabIndex:-1,className:(0,p.default)("flex h-button/size w-full items-center overflow-hidden rounded-radius/button p-button/padding-toggle transition-all duration-200 bg-fill/alternative-2"),children:n.map(n=>{let a=n.value===i,r=s||!!n.disabled;return(0,t.jsx)("div",{className:(0,p.default)("flex h-full flex-1 grow items-center"),children:(0,t.jsx)("div",{"data-testid":e.name,role:"button","aria-disabled":r||void 0,className:(0,p.default)("flex size-full select-none items-center justify-center text-nowrap rounded-radius/button text-center transition-all duration-200 alpha-form-input lg:px-button/padding-regular-x",a&&"shadow-2 bg-white",a&&!r&&"text-text/primary",a&&r&&"text-buttons/disable",!a&&!r&&"text-buttons/neutral hover:text-text/primary",!a&&r&&"text-buttons/disable",r&&"cursor-not-allowed"),...!r&&{onClick:()=>{i!==n.value&&o(n.value)},tabIndex:0},children:n.label})},n.value)})})]})},eJ=()=>{};function e0({value:e,availableTripTypes:n,onChange:a,onTooltipHover:r}){let l=(0,x.useClientContext)(),i=(0,z.getClientTranslations)(eK,l),[s,o]=(0,c.useMemo)(()=>[[{value:"SINGLE_PLAN",label:i.options.SINGLE_PLAN,disabled:!n.includes("SINGLE_PLAN")},{value:"ANNUAL_PLAN",label:i.options.ANNUAL_PLAN,disabled:!n.includes("ANNUAL_PLAN")}],[{value:"SINGLE_PLAN",label:i.optionsMobile.SINGLE_PLAN,disabled:!n.includes("SINGLE_PLAN")},{value:"ANNUAL_PLAN",label:i.optionsMobile.ANNUAL_PLAN,disabled:!n.includes("ANNUAL_PLAN")}]],[i,n]),d=i?.coverageTypeTooltip[e];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eX,{containerClassNames:"md:flex hidden",options:s,value:e,onChange:a,label:i.title,labelTooltip:d,onTooltipHover:r?()=>r(i.title):void 0}),(0,t.jsx)(eX,{containerClassNames:"flex md:hidden",options:o,value:e,onChange:a,label:i.title,labelTooltip:d,onTooltipHover:r?()=>r(i.title):void 0})]})}var e1=e.i(736736);function e2({action:e,componentTitle:t,componentType:n,formFieldValue:a}){(0,e1.track)({event:"form_interact",lead_form_name:"ti-search-module-summer",form_type:"search form",vertical_code:"TI",action:e,component_type:n,component_title:t,form_field_value:a??""})}let e3="Ti Search Module",e4="Ti Search Module Overlay",e5=`${e3}_Update`,e6=`${e4}_Update`;function e7(e){e2({action:"hover",componentTitle:`${e3}/Tooltip_${e}`,componentType:"tooltip"})}function e8(e,t={}){e2({action:"select",componentTitle:t.isOverlay?`${e4}_Cover type`:`${e3}_Cover Type`,componentType:"radio-button",formFieldValue:e})}function e9(e,t={}){e2({action:"select",componentTitle:`${t.isOverlay?e4:e3}_Destination`,componentType:"dropdown",formFieldValue:e})}function te(e,t={}){e2({action:"click",componentTitle:`${t.isOverlay?e4:e3}_Destination Remove`,componentType:"button",formFieldValue:e})}function tt(e,t,n={}){e2({action:"select",componentTitle:`${n.isOverlay?e4:e3}_${"start"===e?"Start":"End"} date`,componentType:"date-picker",formFieldValue:t})}function tn({travellerType:e,action:t,value:n,isOverlay:a}){e2({action:"click",componentTitle:`${a?e4:e3}_Number of ${"adult"===e?"Adult":"Children"}/${"plus"===t?"Plus":"Minus"}`,componentType:"button",formFieldValue:String(n)})}function ta(e){(0,e1.track)({event:"ti_date_selection_start",vertical:"TI",...e})}function tr(e){(0,e1.track)({event:"ti_date_selection_confirm",vertical:"TI",...e})}function tl(e){(0,e1.track)({event:"ti_date_unavailable_click",vertical:"TI",...e})}var ti=e.i(555613),ts=e.i(117837),to=e.i(507553);function tc({countryCode:e,countryName:n}){return(0,t.jsx)("img",{alt:n,className:"h-4 w-[22px] rounded border border-gray-300 object-cover",src:(0,to.getNationalityFlagImageSrc)("h20",e)})}var td=e.i(215233);let tu=function({className:e}){return(0,t.jsx)("svg",{className:e,fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M11.9995 15.0387L6.3457 9.38488L7.39953 8.33105L11.9995 12.9311L16.5995 8.33105L17.6534 9.38488L11.9995 15.0387Z",fill:"currentColor"})})};var tp=e.i(559782);let tm=({children:e,...n})=>{let a=n.data;return(0,t.jsxs)(ts.components.Option,{...n,children:[(0,t.jsx)(tc,{countryCode:a.value,countryName:a.label}),e]})},th=({children:e,...n})=>{let a=n.data;return(0,t.jsxs)(ts.components.MultiValueLabel,{...n,children:[(0,t.jsx)(tc,{countryCode:a.value,countryName:a.label}),(0,t.jsx)("span",{className:"overflow-hidden text-ellipsis max-w-full",children:e})]})},tf=({children:e,...n})=>(0,t.jsxs)(ts.components.Control,{...n,children:[n.isMulti&&(0,t.jsx)(tp.default,{className:"size-shapes/icon-size-lg text-buttons/neutral"}),e,!n.isMulti&&(0,t.jsx)(tu,{className:(0,p.default)("size-shapes/icon-size-lg text-buttons/neutral-dark")})]}),tg=e=>{let n={...e,"aria-activedescendant":void 0};return(0,t.jsx)(ts.components.Input,{...n})},tx=e=>(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(ts.components.MultiValueRemove,{...e,children:(0,t.jsx)(td.default,{className:"size-shapes/icon-size-md hover:text-red-700"})})}),tb=()=>null;function ty({mode:e,isMulti:n,options:a,components:r,placeholder:l,maxVisibleValues:i=2,instanceId:s,inputId:o,...d}){let u=(0,c.useRef)(null),m=s??("string"==typeof d.id?d.id:void 0)??("string"==typeof d.name?d.name:void 0),h=o??(m?`${m}-input`:void 0),f=(0,c.useCallback)(e=>{let{index:n,getValue:a,selectProps:{menuIsOpen:r}}=e,l=a().length;return!r&&n>i?null:r||n!==i?(0,t.jsx)(ts.components.MultiValue,{...e}):`+${l-i}`},[i]),g=(0,c.useMemo)(()=>({ClearIndicator:tb,Control:tf,DropdownIndicator:tb,IndicatorSeparator:tb,MultiValueRemove:tx,MultiValueLabel:th,Input:tg,Option:"countries"===e?tm:ts.components.Option,MultiValue:f,...r}),[e,f,r]),x=(0,c.useMemo)(()=>({container:()=>"z-20",control:({selectProps:{menuIsOpen:e}})=>(0,p.default)("!mhg-alpha-form-input !min-h-button/size gap-spacing/gap/x-xs !rounded-radius
6/button !border-borders/form-default !px-form/inner-element-padding !py-1 hover:!border-borders/form-hover hover:shadow-md focus:!border-borders/form-hover",{"!shadow-md":e,"!border-borders/form-hover":e}),dropdownIndicator:()=>(0,p.default)(""),input:()=>(0,p.default)("!rounded-radius/button"),menu:()=>(0,p.default)("!shadow-shadow/dropdown !mt-1 !flex !flex-col !items-end !overflow-hidden !rounded-radius/button !border-none !p-0 !bg-white"),menuList:()=>(0,p.default)("!flex !w-full !flex-col !items-stretch !gap-0 !rounded-radius-[inherit] !p-0"),multiValue:()=>(0,p.default)("!m-0 flex !min-h-form/chip-min-height items-center gap-[--button-gap] !rounded-radius/button !px-spacing/padding/x-xs !py-0 !bg-fill/alternative-2 hover:!bg-fill/alternative-3"),multiValueLabel:()=>(0,p.default)("mhg-alpha-button-2 flex items-center gap-[--button-gap] !p-0"),multiValueRemove:()=>(0,p.default)("self-center !p-0 hover:!bg-transparent"),option:({isFocused:e,isSelected:t})=>(0,p.default)("!flex !w-full !cursor-pointer !items-center gap-spacing/gap/soft-12px !py-0 px-spacing/gap/soft-12px !font-semibold !transition-colors !duration-150 text-text/primary !leading-line-height/sm first:!rounded-t-radius-[inherit] last:!rounded-b-radius-[inherit] hover:!bg-fill/alternative-1 hover:!text-[--fill-primary-dark] focus:!outline-none",{"!min-h-[--form-size]":n,"!min-h-[--button-size-small]":!n,"!mhg-alpha-typography-input-text":n,"!mhg-alpha-button-2":!n,"!bg-primary-50 !text-[--fill-primary-dark]":t,"!bg-fill/alternative-1 !text-[--fill-primary-dark]":e}),placeholder:()=>(0,p.default)(""),valueContainer:({selectProps:{menuIsOpen:e}})=>(0,p.default)("gap-[--button-gap] !p-0",{"!flex-nowrap":!e})}),[n]),b=(0,c.useMemo)(()=>({control:e=>({...e,boxShadow:"none"})}),[]);return(0,t.jsx)(ti.default,{...d,ref:u,instanceId:m,inputId:h,classNames:x,components:g,isMulti:n,options:a,isClearable:!n,placeholder:l,closeMenuOnSelect:!n,blurInputOnSelect:!1,openMenuOnFocus:!1,openMenuOnClick:!0,styles:b})}var t_=e.i(697791),tv=e.i(936739);function tC({canGoToPreviousMonth:e,canGoToNextMonth:n,onPreviousMonthClick:a,onNextMonthClick:r,previousMonthLabel:l,nextMonthLabel:i}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:a,disabled:!e,className:(0,p.default)(tv.mobileNavigationButtonClassName,"absolute left-0 top-0 disabled:opacity-50"),"aria-label":l,children:(0,t.jsx)(v.MaterialIcon,{icon:"chevron_left"})}),(0,t.jsx)("button",{type:"button",onClick:r,disabled:!n,className:(0,p.default)(tv.mobileNavigationButtonClassName,"absolute right-0 top-0 disabled:opacity-50"),"aria-label":i,children:(0,t.jsx)(v.MaterialIcon,{icon:"chevron_right"})})]})}function tT({dayPickerProps:e,desktopDayPickerProps:n,isRangeSelected:a,canGoToPreviousMonth:r,canGoToNextMonth:l,onPreviousMonthClick:i,onNextMonthClick:s,onConfirmClick:o,confirmLabel:c,isConfirmDisabled:u,guidanceText:m,footerState:h,unavailableReasonText:f,previousMonthLabel:g,nextMonthLabel:x}){return(0,t.jsxs)("div",{className:"date-range-picker",children:[m&&(0,t.jsx)("div",{"aria-live":"polite",className:"mx-[--spacing-padding-x] mt-[--spacing-padding-y-sm] rounded-[8px] px-3 py-2 font-semibold bg-fill/primary-light text-text/primary text-[0.9rem]",children:m}),(0,t.jsx)("div",{className:(0,p.default)("px-[--spacing-padding-x] py-[--spacing-padding-y-sm]",{"range-selected":a}),children:n?(0,t.jsxs)("div",{className:"relative flex flex-nowrap items-start gap-spacing/padding/section-x-lg",children:[(0,t.jsx)(tC,{canGoToNextMonth:l,canGoToPreviousMonth:r,nextMonthLabel:x,onNextMonthClick:s,onPreviousMonthClick:i,previousMonthLabel:g}),(0,t.jsx)(t_.DayPicker,{...n.left}),(0,t.jsx)(t_.DayPicker,{...n.right})]}):(0,t.jsx)(t_.DayPicker,{...e})}),f&&(0,t.jsxs)("div",{"aria-live":"polite",className:"mx-[--spacing-padding-x] mb-[--spacing-padding-y-sm] flex items-center gap-2 rounded-[8px] border border-fill/primary px-3 py-2 bg-fill/primary-light text-text/link text-[0.85rem]",children:[(0,t.jsx)(eQ.default,{"aria-hidden":!0,className:"size-4 shrink-0"}),(0,t.jsx)("span",{children:f})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-spacing/gap/x-sm border-t border-t-borders/default px-[--spacing-padding-x] py-[--spacing-padding-y-sm]",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-[2px]",children:[(0,t.jsxs)("span",{className:"truncate text-[1.05rem]",children:[(0,t.jsx)("span",{className:(0,p.default)(h.isEmpty?"text-text/disabled":"text-text/primary"),children:h.rangeText}),h.countText&&(0,t.jsx)("span",{className:"ml-1 font-extrabold text-text/primary",children:h.countText}),h.hintText&&(0,t.jsx)("span",{className:"ml-1 text-text/secondary-lighter",children:h.hintText})]}),(0,t.jsx)("span",{className:"text-text/secondary-lighter text-[0.8rem]",children:h.localTimeText})]}),(0,t.jsx)(d.default,{disabled:u,onClick:o,styleType:"primary",type:"button",variant:"outline",children:c})]})]})}
6let tE='a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])',tN=["sun","mon","tue","wed","thu","fri","sat"];function tA({dayPickerProps:e,weekdayNames:n,summary:a,isRangeSelected:r,onClose:l,onConfirmClick:i,confirmLabel:s,isConfirmDisabled:o,guidanceText:u,unavailableReasonText:p,title:m,closeLabel:h,scrollToMonthIndex:f}){let g=(0,c.useRef)(null),x=(0,c.useRef)(null),b=(0,c.useRef)(null);return(0,e$.useScrollLock)(!0),!function({containerRef:e,onClose:t}){let n=(0,c.useRef)(t);n.current=t,(0,c.useEffect)(()=>{let t=e.current,a=document.activeElement;t?.querySelector(tE)?.focus({preventScroll:!0});let r=e=>{if("Escape"===e.key){e.stopPropagation(),n.current();return}if("Tab"!==e.key||!t)return;let a=Array.from(t.querySelectorAll(tE)).filter(e=>e.tabIndex>=0),r=a[0],l=a[a.length-1];if(r&&l){if(!t.contains(document.activeElement)){e.preventDefault(),(e.shiftKey?l:r).focus();return}if(e.shiftKey&&document.activeElement===r){e.preventDefault(),l.focus();return}e.shiftKey||document.activeElement!==l||(e.preventDefault(),r.focus())}};return document.addEventListener("keydown",r,!0),()=>{document.removeEventListener("keydown",r,!0),a instanceof HTMLElement&&a.focus()}},[e])}({containerRef:g,onClose:l}),(0,c.useLayoutEffect)(()=>{let e=x.current;if(f<=0||!e)return;let t=e.querySelectorAll(".rdp-month")[f];if(!(t instanceof HTMLElement))return;let n=b.current?.offsetHeight??0,a=t.getBoundingClientRect().top-e.getBoundingClientRect().top;e.scrollTop+=a-n},[]),(0,t.jsxs)("div",{"aria-label":m,"aria-modal":!0,className:"date-range-picker date-range-picker--sheet fixed inset-0 z-[--z-index-modal] flex h-dvh flex-col bg-fill/card focus:outline-none","data-component":"date-range-sheet",ref:g,role:"dialog",tabIndex:-1,children:[(0,t.jsxs)("header",{className:"relative flex items-center justify-center border-b border-borders/default p-spacing/padding/y-sm pt-[calc(env(safe-area-inset-top)+var(--spacing-padding-y-sm))]",children:[(0,t.jsx)("button",{"aria-label":h,className:"absolute left-spacing/padding/x flex size-5 items-center justify-center text-text/primary",onClick:l,type:"button",children:(0,t.jsx)(td.default,{className:"size-full"})}),(0,t.jsx)("span",{className:"font-semibold text-text/primary text-font-size/subheading-1 leading-line-height/subheading-1",children:m})]}),u&&(0,t.jsx)("div",{"aria-live":"polite",className:"mx-[--spacing-padding-x] mt-[--spacing-padding-y-sm] rounded-[8px] px-3 py-2 font-semibold bg-fill/primary-light text-text/primary text-[0.9rem]",children:u}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto overscroll-contain px-[--spacing-padding-x]",ref:x,children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"sticky top-0 z-10 grid grid-cols-7 border-b border-borders/default py-spacing/gap/soft-8px bg-fill/card",ref:b,children:n.map((e,n)=>(0,t.jsx)("span",{className:"text-center font-semibold text-text/secondary-lighter text-[0.78rem]",children:e},tN[n]??e))}),(0,t.jsx)("div",{className:r?"range-selected":void 0,children:(0,t.jsx)(t_.DayPicker,{...e})})]}),(0,t.jsxs)("footer",{className:"border-t border-t-borders/default px-[--spacing-padding-x] py-spacing/padding/y-sm pb-[calc(env(safe-area-inset-bottom)+var(--spacing-padding-y-sm))] bg-fill/card",children:[p&&(0,t.jsxs)("div",{"aria-live":"polite",className:"mb-spacing/gap/soft-8px flex items-center gap-2 rounded-[8px] border border-fill/primary px-3 py-2 bg-fill/primary-light text-text/link text-[0.85rem]",children:[(0,t.jsx)(eQ.default,{"aria-hidden":!0,className:"size-4 shrink-0"}),(0,t.jsx)("span",{children:p})]}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-spacing/gap/x-sm",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block text-text/secondary-lighter text-[0.72rem]",children:a.startLabel}),(0,t.jsx)("strong",{className:"font-semibold text-text/primary text-[1.05rem]",children:a.startValue})]}),(0,t.jsxs)("div",{className:"min-w-0 text-right",children:[(0,t.jsx)("span",{className:"block text-text/secondary-lighter text-[0.72rem]",children:a.endLabel}),(0,t.jsx)("strong",{className:"font-semibold text-text/link text-[1.05rem]",children:a.endValue})]})]}),(0,t.jsx)(d.default,{className:"mt-spacing/gap/soft-12px w-full",disabled:o,onClick:i,styleType:"primary",type:"button",children:s})]})]})}var tk=e.i(439189),tw=e.i(497245),tS=e.i(737957),tI=e.i(435684);function tD(e,t){let n=(0,tI.toDate)(e),a=(0,tI.toDate)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}var tL=e.i(203037);e.i(804913);var tj=e.i(674686),tP=e.i(838622),tM=e.i(945919);let tO=(e,t)=>{if(t.startsWith("zh")){let t=e.getFullYear(),n=e.getMonth()+1,a=e.getDate();return`${t}å¹´${n}æ${a}æ¥`}return(0,tM.format)(e,"MMM d, yyyy")},tR=e=>e.startsWith("zh")?"è³":" - ",tB=(e,t,n)=>{let a=tO(e,n);return t?`${a}${tR(n)}${tO(t,n)}`:a};var tF=e.i(161163),tH=e.i(104291);let tU=(0,tH.createMonthBoundaryModifierClassNames)(),tz={_:"_",sm:"sm",md:"md",lg:"lg",xxl:"xxl"};var tG=e.i(58391),tV=e.i(876111),t$=e.i(104249);function tY(e){let{startDate:n,endDate:a,displayVariant:r,minDate:l,maxDate:i,placeholder:s,onSelect:o,onSelectionStart:d,onUnavailableClick:u,duration:p,size:m="full",mode:h="range"}=e,f=(0,x.useClientContext)(),g=(0,z.getClientTranslations)(tG.DateRangePickerStaticText,f),{isOpen:b,isSheetLayout:y,desktopDayPickerProps:_,resolvedPlaceholder:v,resolvedConfirmLabel:C,isSelectionValid:T,guidanceText:E,footerState:N,unavailableReasonText:A,hasSelectedDates:k,selectedDateLabel:w,startDateLabel:S,endDateLabel:I,rangeSeparator:D,isRangeSelected:L,handlePopoverHandler:j,handleTriggerClick:P,handleSheetClose:M,handleDoneClick:O,dayPickerProps:R,sheetDayPickerProps:B,sheetScrollToMonthIndex:F,sheetSummary:H,sheetWeekdayNames:U,canGoToPreviousMonth:G,canGoToNextMonth:V,handlePreviousMonthClick:$,handleNextMonthClick:Y}=function({startDate:e,endDate:n,displayVariant:a="default",minDate:r,maxDate:l,placeholder:i,onSelect:s,onSelectionStart:o,onUnavailableClick:d,duration:u,size:p="full",mode:m="range",lang:h,staticText:f}){let g,x,b,y=(0,c.useMemo)(()=>(0,tH.parseTranslationList)(f.monthNames,tv.defaultMonthNames),[f.monthNames]),_=(0,c.useMemo)(()=>(0,tH.parseTranslationList)(f.weekdayNames,tv.defaultWeekdayNames),[f.weekdayNames]),v=(0,c.useMemo)(()=>(0,tH.parseTranslationList)(f.weekdayNamesShort,tv.defaultWeekdayNames),[f.weekdayNamesShort]),C="xxl"!==(0,tj.useBreakp
6oint)(tz),T=C?1:"full"===p?2:1,E=!C&&T>1,[N,A]=(0,c.useState)(!1),[k,w]=(0,c.useState)(null),S="annual"===m,I=(0,c.useCallback)(e=>(0,tk.addDays)((0,tS.addYears)(e,1),-1),[]),D=(0,c.useMemo)(()=>S&&e?{from:e,to:I(e)}:e&&n?(0,tH.rangeFromProps)(e,n):void 0,[I,n,S,e]),[L,j]=(0,c.useState)(D),[P,M]=(0,c.useState)(D),O=P?.from,R=P?.to,B=!!O&&!R,F=(0,c.useMemo)(()=>{if(!S)return;let e=[l??void 0,P?.to??void 0,L?.to??void 0,D?.to??void 0].filter(Boolean);if(0!==e.length)return e.reduce((e,t)=>t>e?t:e)},[L?.to,P?.to,D?.to,S,l]),H=(0,c.useMemo)(()=>{if(u&&!(u<=0)&&O)return(0,tk.addDays)(O,u)},[O,u]),U=(0,c.useMemo)(()=>{let e=[l??void 0,H,P?.to??void 0,L?.to??void 0,D?.to??void 0].filter(Boolean);if(0!==e.length)return e.reduce((e,t)=>t>e?t:e)},[L?.to,P?.to,H,D?.to,l]),z=S?F??l??void 0:U,{resolvedDefaultMonth:G,resolvedEndMonth:V,resolvedStartMonth:$}=function(e){let{defaultMonth:t,endMonth:n,maxDate:a,minDate:r,numberOfMonths:l,selectedFrom:i,startMonth:s}=e,o=(0,c.useMemo)(()=>s??r??void 0,[s,r]),d=(0,c.useMemo)(()=>{if(n)return n;if(a)return a;let e=t??i??new Date,r=Math.max(0,l-1),s=new Date(e.getFullYear()+10,e.getMonth(),1);return new Date(s.getFullYear(),s.getMonth()+r+1,0)},[t,n,a,l,i]);return{resolvedDefaultMonth:(0,c.useMemo)(()=>new Date(t??i??new Date),[t,i]),resolvedEndMonth:d,resolvedStartMonth:o}}({endMonth:z,maxDate:z,minDate:r,numberOfMonths:T,selectedFrom:P?.from}),Y=(0,c.useCallback)(()=>{let e=(0,tH.normalizeMonth)($??r??G),t=[l??void 0,O?S?I(O):u&&u>0?(0,tk.addDays)(O,u):O:void 0,P?.to??void 0,D?.to,L?.to,l?void 0:V].filter(Boolean).reduce((e,t)=>!e||t>e?t:e,void 0),n=Math.min(Math.max(t?tD((0,tH.normalizeMonth)(t),e)+1:1,1),30);return{firstMonth:e,lastMonth:(0,tw.addMonths)(e,n-1),numberOfMonths:n}},[I,L?.to,O,P?.to,u,D?.to,S,r,G,V,$,l]),[W,q]=(0,c.useState)(Y);(0,c.useEffect)(()=>{if(!C||!N)return;let e=Y();q(t=>(0,tH.getMonthKey)(e.lastMonth)>(0,tH.getMonthKey)(t.lastMonth)?e:t)},[Y,N,C]);let K=(0,c.useCallback)(e=>{let t=(0,tH.normalizeMonth)(e);if($){let e=(0,tH.normalizeMonth)($);(0,tH.getMonthKey)(t)<(0,tH.getMonthKey)(e)&&(t=e)}if(V){let e=(0,tH.normalizeMonth)(V);(0,tH.getMonthKey)(t)>(0,tH.getMonthKey)(e)&&(t=e)}return t},[V,$]),Q=(0,c.useCallback)(e=>{let t=e?.from??e?.to??(0,tH.normalizeMonth)(G),n=(0,tw.addMonths)(t,1),a=K(t),r=K(n);if((0,tH.getMonthKey)(r)<=(0,tH.getMonthKey)(a)){let e=K((0,tw.addMonths)(a,1));if((0,tH.getMonthKey)(e)>(0,tH.getMonthKey)(a))r=e;else{let e=K((0,tw.addMonths)(r,-1));(0,tH.getMonthKey)(r)>(0,tH.getMonthKey)(e)&&(a=e)}}return{left:a,right:r}},[K,G]),[Z,X]=(0,c.useState)(()=>Q(D)),J=(0,c.useRef)(D),ee=(0,c.useRef)(!1),et=(0,c.useRef)(D),en=(0,c.useRef)(null),ea=(0,c.useRef)(null);(0,c.useEffect)(()=>{!(0,tH.areRangesEqual)(D,J.current)&&(J.current=D,(0,tH.areRangesEqual)(L,D)||j(D),(0,tH.areRangesEqual)(P,D)||M(D))},[L,P,D]),(0,c.useEffect)(()=>{let e=ee.current;if(!e&&N){let e=D??L??void 0;if(et.current=e,(0,tH.areRangesEqual)(P,e)||M(e),ea.current=null,w(null),C)q(Y());else if(E){let t=Q(e);X(e=>(0,tH.getMonthKey)(e.left)===(0,tH.getMonthKey)(t.left)&&(0,tH.getMonthKey)(e.right)===(0,tH.getMonthKey)(t.right)?e:t)}}if(e&&!N){if("done"!==en.current){let e=D??et.current;(0,tH.areRangesEqual)(P,e)||M(e),(0,tH.areRangesEqual)(L,e)||j(e)}en.current=null,w(null)}ee.current=N},[L,Y,P,D,N,C,Q,E]),(0,c.useEffect)(()=>{w(null)},[m]);let er=i??f.placeholder??tv.defaultPlaceholder,el=S?f.confirmDepartureDate??tv.defaultDoneLabel:f.confirmReturnDate??tv.defaultDoneLabel,ei=h.startsWith("zh"),es=tR(h),eo=(0,c.useCallback)(e=>e?ei?tO(e,h):(0,tv.defaultFormatDate)(e):"",[ei,h]),ec=void 0!==O&&void 0!==R&&0!==(0,eq.differenceInCalendarDays)(R,O),ed=!S&&B?"end":"start",eu=S?!!O:!!(O&&R);eu||(g=S?f.guidanceAnnual:"start"===ed?f.guidanceStart:f.guidanceEnd);let ep=O&&R?(0,eq.differenceInCalendarDays)(R,O)+1:void 0,em=(0,c.useMemo)(()=>{if(O&&R&&void 0!==ep){let e=1===ep?f.footerDayCountOne:f.footerDayCountOther,t=S?f.footerAnnualSuffix:"";return{rangeText:`${eo(O)}${es}${eo(R)}`,countText:e.replace("{count}",String(ep)).replace("{suffix}",t),localTimeText:f.footerLocalTime}}return O?{rangeText:eo(O),hintText:f.footerPickReturn,localTimeText:f.footerLocalTime}:{rangeText:f.footerEmpty,isEmpty:!0,localTimeText:f.footerLocalTime}},[O,R,eo,S,es,f.footerAnnualSuffix,f.footerDayCountOne,f.footerDayCountOther,f.footerEmpty,f.footerLocalTime,f.footerPickReturn,ep]),eh=(0,c.useMemo)(()=>({startLabel:f.sheetStartDateLabel,startValue:O?eo(O):f.sheetEmptyDate,endLabel:S?f.sheetEndDateLabel:f.sheetReturnDateLabel,endValue:R?eo(R):f.sheetEmptyDate}),[O,R,eo,S,f.sheetEmptyDate,f.sheetEndDateLabel,f.sheetReturnDateLabel,f.sheetStartDateLabel]),ef=B?void 0:l??void 0,eg=(0,c.useMemo)(()=>({minDate:r,maxStartDate:ef,phase:ed,start:O,duration:u,mode:m}),[O,u,ef,r,m,ed]),ex=(0,c.useCallback)(e=>(function(e,t){let{minDate:n,maxStartDate:a,phase:r,start:l,duration:i,mode:s}=t;if("start"===r||"annual"===s)return n&&0>(0,eq.differenceInCalendarDays)(e,n)?"PAST":a&&(0,eq.differenceInCalendarDays)(e,a)>0?"ADVANCE_WINDOW":null;if(l){if(0>(0,eq.differenceInCalendarDays)(e,l))return"BEFORE_START";if(i&&i>0&&(0,eq.differenceInCalendarDays)(e,l)>i)return"MAX_DURATION"}return null})(e,eg),[eg]),eb=l&&r?(0,eq.differenceInCalendarDays)(l,r):void 0,ey=(0,c.useCallback)(e=>{switch(e){case"PAST":return f.reasonPast;case"ADVANCE_WINDOW":return f.reasonAdvanceWindow.replace("{count}",String(eb??0));case"BEFORE_START":return f.reasonBeforeStart;case"MAX_DURATION":return f.reasonMaxDuration.replace("{count}",String(u??0))}},[eb,u,f.reasonAdvanceWindow,f.reasonBeforeStart,f.reasonMaxDuration,f.reasonPast]),e_=(0,c.useCallback)(e=>{let t=ex(e);return t?ey(t):void 0},[ex,ey]),ev=k?ey(k):void 0,eC=(0,tF.useDateRangeClassNames)(),eT=(0,c.useMemo)(()=>({formatCaption:(e,t,n)=>{if(!n)return"";let a=n.getMonth(e),r=n.getYear(e),l=y[a]??tv.defaultMonthNames[a];return ei?`${r}å¹´${a+1}æ`:"year-first"===n.getMonthYearOrder()?`${r} ${l}`:`${l} ${r}`},formatWeekdayName:e=>{let t=e.getDay();return _[t]??tv.defaultWeekdayNames[t]}}),[ei,y,_]),eE=(0,c.useMemo)(()=>({labelDayButton:(e,t,n,a)=>{let r=(a??new tP.DateLib(n)).format(e,"PPPP");return t.today&&(r=`${f.dayLabelToday}, ${r}`),t.selected&&(r=`${r}, ${f.dayLabelSelected}`),r},labelGrid:(e,t,n)=>eT.formatCaption?.(e,t,n)??""}),[eT,f.dayLabelSelected,f.dayLabelToday]),eN=(0,c.useMemo)(()=>({firstDayOfMonth:e=>1===e.getDate(),lastDayOfMonth:e=>(0,tH.isLastDayOfMonth)(e),unavailable:e=>null!==ex(e),draftStart:e=>!!(B&&O&&0===(0,eq.differenceInCalendarDays)(e,O))}),[ex,O,B]),eA=(0,c.useMemo)(()=>{let e={};
6return Object.entries(tU).forEach(([t,n])=>{e[t]=e[t]?`${e[t]} ${n}`:n}),e.unavailable="[&>button]:!text-text/disabled [&>button]:!cursor-not-allowed hover:[&>button]:!border-0",e.draftStart="[&>button]:!border-primary-800 [&>button]:!bg-primary-800 [&>button]:!text-white",e},[]),ek=(0,c.useRef)(e_);ek.current=e_;let ew=(0,c.useMemo)(()=>(function({getReasonText:e}){return function({day:n,modifiers:a,...r}){let l=(0,c.useRef)(null);(0,c.useEffect)(()=>{a.focused&&l.current?.focus()},[a.focused]);let i=a.unavailable?e(n.date):void 0,s=i?`${r["aria-label"]??n.date.toDateString()}, ${i}`:r["aria-label"];return(0,t.jsx)("button",{...r,ref:l,"aria-disabled":a.unavailable||void 0,"aria-label":s,title:i,type:"button"})}})({getReasonText:e=>ek.current(e)}),[]),eS=(0,c.useMemo)(()=>({DayButton:ew}),[ew]);(0,c.useEffect)(()=>{E&&X(e=>{let t=K(e.left),n=K(e.right);if((0,tH.getMonthKey)(n)<=(0,tH.getMonthKey)(t)){let e=K((0,tw.addMonths)(t,1));(0,tH.getMonthKey)(e)>(0,tH.getMonthKey)(t)&&(n=e)}return(0,tH.getMonthKey)(t)===(0,tH.getMonthKey)(e.left)&&(0,tH.getMonthKey)(n)===(0,tH.getMonthKey)(e.right)?e:{left:t,right:n}})},[K,E]);let eI=(0,c.useMemo)(()=>$?(0,tH.getMonthKey)((0,tH.normalizeMonth)($)):void 0,[$]),eD=(0,c.useMemo)(()=>V?(0,tH.getMonthKey)((0,tH.normalizeMonth)(V)):void 0,[V]),eL=E&&(void 0===eI||(0,tH.getMonthKey)(Z.left)>eI),ej=E&&(void 0===eD||(0,tH.getMonthKey)(Z.right)<eD),eP=(0,c.useCallback)(e=>{X(t=>{let n=K((0,tw.addMonths)(t.left,e)),a=K((0,tw.addMonths)(t.right,e));if((0,tH.getMonthKey)(a)<=(0,tH.getMonthKey)(n)){let e=K((0,tw.addMonths)(n,1));if(!((0,tH.getMonthKey)(e)>(0,tH.getMonthKey)(n)))return t;a=e}return(0,tH.getMonthKey)(n)===(0,tH.getMonthKey)(t.left)&&(0,tH.getMonthKey)(a)===(0,tH.getMonthKey)(t.right)?t:{left:n,right:a}})},[K]),eM=(0,c.useCallback)(()=>{E&&eP(-1)},[eP,E]),eO=(0,c.useCallback)(()=>{E&&eP(1)},[eP,E]),eR=(0,c.useCallback)(e=>{E&&X(t=>{let n=K(e);return(0,tH.getMonthKey)(n)===(0,tH.getMonthKey)(t.left)||(0,tH.getMonthKey)(n)>=(0,tH.getMonthKey)(t.right)?t:{...t,left:n}})},[K,E]),eB=(0,c.useCallback)(e=>{E&&X(t=>{let n=K(e);return(0,tH.getMonthKey)(n)===(0,tH.getMonthKey)(t.right)||(0,tH.getMonthKey)(n)<=(0,tH.getMonthKey)(t.left)?t:{...t,right:n}})},[K,E]),eF=(0,c.useCallback)(e=>{A(t=>!!("function"==typeof e?e(t):e))},[]),eH=(0,c.useCallback)(()=>{A(!0)},[]),eU=(0,c.useCallback)((e,t,n,a)=>{a&&"persist"in a&&"function"==typeof a.persist&&a.persist();let r=n??{},i=t??e?.to??e?.from??null;if(!i){M(void 0),ea.current=null;return}let s=a??{};if(r.unavailable){let e=ex(i);e&&(w(e),d?.(i,e));return}if(w(null),S){let e=I(i);M({from:i,to:e}),ea.current={date:e,modifiers:r,event:s},o?.(i);return}if(!O||R){if(l&&i>l)return;M({from:i,to:void 0}),ea.current={date:i,modifiers:r,event:s},o?.(i);return}if(0>(0,eq.differenceInCalendarDays)(i,O))return;let c=i;u&&u>0&&(0,eq.differenceInCalendarDays)(i,O)>u&&(c=(0,tk.addDays)(O,u));let p={from:O,to:c};M(p),ea.current={date:p.to??i,modifiers:r,event:s}},[I,ex,O,R,u,S,o,d,l]),ez=(0,c.useCallback)(()=>{if(eu){if(en.current="done",(0,tH.areRangesEqual)(L,P)||j(P),et.current=P,s){let e=P?.to??P?.from;s(P,ea.current?.date??e??new Date,ea.current?.modifiers??{},ea.current?.event??{})}ea.current=null,A(!1)}},[L,P,eu,s]),eG=(0,c.useCallback)(()=>{A(!1)},[]),eV={captionLayout:"label",components:eS,classNames:eC,formatters:eT,labels:eE,locale:ei?tL.zhHK:void 0,modifiers:eN,modifiersClassNames:eA,mode:"range",hideNavigation:!0,onSelect:eU,selected:P},e$={...eV,defaultMonth:G,endMonth:V,numberOfMonths:T,startMonth:$},eY={...eV,defaultMonth:W.firstMonth,endMonth:W.lastMonth,numberOfMonths:W.numberOfMonths,startMonth:W.firstMonth},eW=(b=L?.from??D?.from)?Math.min(Math.max(tD((0,tH.normalizeMonth)(b),W.firstMonth),0),W.numberOfMonths-1):0;if(E){let e=K(Z.left),t=K(Z.right),n=$?(0,tH.normalizeMonth)($):void 0,a=V?(0,tH.normalizeMonth)(V):void 0,r=(0,tH.normalizeMonth)((0,tw.addMonths)(t,-1)),l=(0,tH.normalizeMonth)((0,tw.addMonths)(e,1)),i=a&&(0,tH.getMonthKey)(a)<(0,tH.getMonthKey)(r)?a:r,s=n&&(0,tH.getMonthKey)(i)<(0,tH.getMonthKey)(n)?n:i,o=n&&(0,tH.getMonthKey)(n)>
6(0,tH.getMonthKey)(l)?n:l,c=a&&(0,tH.getMonthKey)(o)>(0,tH.getMonthKey)(a)?a:o;x={left:{...eV,defaultMonth:e,endMonth:s,month:e,numberOfMonths:1,onMonthChange:eR,startMonth:$},right:{...eV,defaultMonth:t,endMonth:V,month:t,numberOfMonths:1,onMonthChange:eB,startMonth:c}}}let eK=N&&(P?.from||P?.to)?P??L:L,eQ=(0,c.useMemo)(()=>{if("travel"===a&&eK?.from)return tB(eK.from,eK.to??null,h)},[eK,a,h]),eZ=eo(eK?.from),eX=eK?.to?eo(eK?.to):void 0;return{isOpen:N,isSheetLayout:C,numberOfMonths:T,desktopDayPickerProps:x,resolvedPlaceholder:er,resolvedConfirmLabel:el,selectionPhase:ed,isSelectionValid:eu,guidanceText:g,footerState:em,sheetSummary:eh,sheetWeekdayNames:v,unavailableReasonText:ev,hasSelectedDates:!!(eQ||eZ||eX),selectedDateLabel:eQ,startDateLabel:eZ,endDateLabel:eX,rangeSeparator:es,isRangeSelected:ec,handlePopoverHandler:eF,handleTriggerClick:eH,handleSheetClose:eG,handleDoneClick:ez,dayPickerProps:e$,sheetDayPickerProps:eY,sheetMonthSpan:W,sheetScrollToMonthIndex:eW,canGoToPreviousMonth:eL,canGoToNextMonth:ej,handlePreviousMonthClick:eM,handleNextMonthClick:eO}}({startDate:n,endDate:a,minDate:l,maxDate:i,placeholder:s,onSelect:o,onSelectionStart:d,onUnavailableClick:u,duration:p,size:m,mode:h,displayVariant:r,lang:f.lang,staticText:g}),W=tv.defaultTriggerWrapperClassName,q=tv.defaultTriggerButtonClassName,K=(0,t.jsx)(tV.default,{className:"mr-2 size-shapes/icon-size-lg text-gray-600"}),Q=(0,t.jsxs)(t.Fragment,{children:[K,k?(0,t.jsx)("div",{className:"max-w-full truncate",children:w?(0,t.jsx)("span",{className:"text-text/primary",children:w}):(0,t.jsxs)(t.Fragment,{children:[S&&(0,t.jsx)("span",{className:"whitespace-nowrap text-text/primary",children:S}),I&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-text/primary",children:D}),(0,t.jsx)("span",{className:"whitespace-nowrap text-text/primary",children:I})]})]})}):(0,t.jsx)("span",{className:"text-text/disabled",children:v})]});if(y)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:W,children:(0,t.jsx)("button",{"aria-expanded":b,className:q,type:"button",onClick:P,children:Q})}),b&&(0,t.jsx)(t$.Portal,{children:(0,t.jsx)(tA,{closeLabel:g.sheetClose,confirmLabel:C,dayPickerProps:B,guidanceText:E,isConfirmDisabled:!T,isRangeSelected:L,onClose:M,onConfirmClick:O,scrollToMonthIndex:F,summary:H,title:g.sheetTitle,unavailableReasonText:A,weekdayNames:U})})]});let Z=(0,t.jsx)(tT,{canGoToNextMonth:V,canGoToPreviousMonth:G,dayPickerProps:R,desktopDayPickerProps:_,confirmLabel:C,footerState:N,guidanceText:E,isConfirmDisabled:!T,isRangeSelected:L,nextMonthLabel:g.nextMonthLabel,onConfirmClick:O,onNextMonthClick:Y,onPreviousMonthClick:$,previousMonthLabel:g.previousMonthLabel,unavailableReasonText:A});return(0,t.jsxs)(eV.Popover,{open:b,handler:j,placement:tv.defaultPlacement,children:[(0,t.jsx)(eV.PopoverHandler,{children:(0,t.jsx)("div",{className:W,children:(0,t.jsx)("button",{className:q,type:"button",onClick:P,children:Q})})}),(0,t.jsx)(eV.PopoverContent,{className:tv.defaultContentClassName,children:Z})]})}var tW=e.i(207670),tq=e.i(189835),tK=e.i(854023);function tQ({value:e,onChange:n,minValue:a=0,maxValue:r=99,step:l=1,disabled:i,label:s,tooltip:o,tooltipPlacement:d="top",onTooltipHover:u,id:m,className:h,inputClassName:f,hideInput:g}){let x=(0,c.useCallback)(e=>Math.min(r,Math.max(a,e)),[r,a]),b=(0,c.useCallback)(t=>{i||n(x(e+t))},[x,i,n,e]);return(0,t.jsxs)("div",{className:(0,p.default)("flex flex-col gap-spacing/gap/soft-6px",h),children:[s&&(0,t.jsxs)("label",{htmlFor:m,className:"mhg-alpha-typography-caption inline-flex items-center text-highlights/gray-dark",children:[s,o&&(0,t.jsx)(eV.Tooltip,{content:(0,t.jsx)("div",{className:"max-w-[242px] md:max-w-65 lg:max-w-[286px] xl:max-w-[322px]",children:o}),placement:d,children:(0,t.jsx)("span",{className:"ml-1 inline-flex items-center",onMouseEnter:u,children:(0,t.jsx)(eQ.default,{className:"inline-block size-shapes/icon-size-md align-middle text-secondary-lighter"})})})]}),(0,t.jsxs)("div",{className:"relative w-full",children:[!g&&(0,t.jsx)(eV.Input,{id:m,disabled:i,min:a,max:r,type:"number",value:e,onCh
6ange:e=>{let t=Number(e.target.value);Number.isNaN(t)||n(x(t))},className:(0,tW.default)("h-9 appearance-none !bg-buttons/base rounded-radius/button !border-gray-400 px-9 text-center text-text/primary alpha-form-input [appearance:textfield] hover:!border-border/form-hover hover:shadow-md focus:!border md:h-10 md:px-10 lg:h-11 lg:px-10 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",f),labelProps:{className:"before:content-none after:content-none"},containerProps:{className:"!min-w-0 !h-9 md:!h-10 lg:!h-11"}}),g&&(0,t.jsx)("div",{className:"flex h-9 items-center justify-center rounded-radius/button border border-gray-400 px-9 text-center bg-buttons/base text-text/primary alpha-form-input md:h-10 md:px-10 lg:h-11","aria-live":"polite","data-testid":m?`${m}-value`:void 0,children:e}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eV.IconButton,{disabled:i||e<=a,size:"sm",variant:"text",className:(0,p.default)("!absolute left-[10px] top-[6px] rounded-full md:right-3 md:top-2","!md:!size-shapes/icon-size-lg !lg:!size-shapes/icon-size-lg !size-shapes/icon-size-lg"),onClick:()=>b(-l),"aria-label":"Decrease",children:(0,t.jsx)(tK.default,{className:"size-shapes/icon-size-lg text-brand-primary"})}),(0,t.jsx)(eV.IconButton,{disabled:i||!!r&&e>=r,size:"sm",variant:"text",className:"!absolute right-[10px] top-[6px] !size-shapes/icon-size-lg rounded-full md:right-3 md:top-2",onClick:()=>b(l),"aria-label":"Increase","data-testid":m?`${m}-increase`:void 0,children:(0,t.jsx)(tq.default,{className:"size-shapes/icon-size-lg text-brand-primary"})})]})]})]})}let tZ=e=>{let n=(0,x.useClientContext)(),a=(0,z.getClientTranslations)(eG,n),{isOpen:r,searchParams:l,onChangeParams:i,onClose:s,regions:o,values:u}=e,{countryMap:m,countryOptions:h,minDate:f,maxDate:g,maxDuration:b,minAdults:y,maxAdults:_,minChildren:v,maxChildren:C,normalizeParams:T,availableTripTypes:E}=u,[N,A]=(0,c.useState)({}),k=T({...l,...N},{skipDestination:!0}),w="SINGLE_PLAN"===k.insuranceType,S={value:k.region||o[0]?.value||"",label:o.find(e=>e.value===k.region)?.label||o[0]?.label||""},I=(0,c.useMemo)(()=>k.destinationIsoCodes?k.destinationIsoCodes.map(e=>({value:e,label:m.get(e)||e})).filter(e=>e.label!==e.value):[],[k.destinationIsoCodes,m]),D=(0,H.parseIsoDate)(k.startDate),L=(0,H.parseIsoDate)(k.endDate),j=!!k.noOfChildren&&k.noOfAdults>0&&k.noOfAdults<=2,P=w&&!k.destinationIsoCodes?.length,M=()=>{A({}),s()},O={market:n.lang.split("-")[1]?.toUpperCase()??"",brand:n.brand,tripType:k.insuranceType??"",viewport:"mobile"};if(eW({isScrollLockActive:r,onClose:M}),!r)return null;let R=(0,t.jsxs)("div",{className:"flex h-full flex-col bg-fill/card",children:[(0,t.jsxs)("div",{className:"flex items-center gap-spacing/gap/soft-12px border-b border-borders/default p-spacing/padding/y-sm bg-fill/card",children:[(0,t.jsx)("h2",{className:"flex-1 font-semibold text-text/primary text-font-size/subheading-1 leading-line-height/subheading-1",children:a.modalTitle}),(0,t.jsx)("button",{type:"button",onClick:M,className:"flex size-5 items-center justify-center text-text/primary","aria-label":a.close,children:(0,t.jsx)(td.default,{className:"size-full"})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-12px px-spacing/padding/x py-spacing/padding/y",children:[(0,t.jsx)("div",{className:"flex flex-col gap-spacing/gap/soft-6px",children:(0,t.jsx)(e0,{value:k.insuranceType,availableTripTypes:E,onChange:e=>{e8("SINGLE_PLAN"===e?"Single Trip":"Annual",{isOverlay:!0}),A(T({...k,insuranceType:e,endDate:""}))},onTooltipHover:e=>e7(e)})}),(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-6px",children:[(0,t.jsx)(eZ,{label:a.destinationLabel,tooltip:a.destinationTooltip,id:"ti-destination-modal",onTooltipHover:()=>e7(a.destinationLabel)}),w?(0,t.jsx)(ty,{instanceId:"ti-destination-modal",inputId:"ti-destination-modal",name:"ti-destination-modal",isMulti:!0,mode:"countries",maxVisibleValues:2,value:I,options:h,onChange:e=>{let t,n,a,r;return t=Array.isArray(e)?e.map(e=>e.value):[],(a=(n=I.filter(e=>!t.includes(e.value))).length>0)&&te(n.map(e=>e.label).join(", "),{isOverlay:!0}),r=t.map(e=>m.get(e)||e).join(", "),void(!a&&e9(r||"",{isOverlay:!0}),A({...k,destinationIsoCodes:t.length>0?t:void 0}))}}):(0,t.jsx)(ty,{instanceId:"ti-region-modal",inputId:"ti-destination-modal",name:"ti-destination-modal",mode:"select",value:S,options:o,onChange:e=>{e&&e9(e.label,{isOverlay:!0}),A({...k,region:e?.value})}})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-6px",children:[(0,t.jsx)(eZ,{label:a.travelDatesLabel,tooltip:a.travelDatesTooltip,onTooltipHover:()=>e7(a.travelDatesLabel)}),(0,t.jsx)(tY,{startDate:D,endDate:L,mode:w?"range":"annual",displayVariant:"travel",onSelect:e=>{let t={...k};e?.from&&(t.startDate=(0,H.formatLocalIsoDate)(e.from)),e?.to?t.endDate=(0,H.formatLocalIsoDate)(e.to):e?.from||(t.startDate="",t.endDate=""),t.startDate&&t.startDate!==k.startDate&&tt("start",t.startDate,{isOverlay:!0}),t.endDate&&t.endDate!==k.endDate&&tt("end",t.endDate,{isOverlay:!0}),e?.from&&e?.to&&tr({...O,startDate:(0,H.formatLocalIsoDate)(e.from),endDate:(0,H.formatLocalIsoDate)(e.to),tripDurationDays:(0,eq.differenceInCalendarDays)(e.to,e.from)+1,advanceDays:(0,eq.differenceInCalendarDays)(e.from,new Date)}),A(t)},onSelectionStart:()=>{ta(O)},onUnavailableClick:(e,t)=>{tl({...O,reason:t})},minDate:f,maxDate:g,duration:b})]}),(0,t.jsxs)("div",{className:"flex gap-spacing/gap/soft-12px",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(tQ,{value:k.noOfAdults,onChange:e=>{let t=k.noOfAdults??0;e!==t&&tn({travellerType:"adult",action:e>t?"plus":"minus",value:e,isOverlay:!0}),A({...k,noOfAdults:e})},minValue:y,maxValue:_,step:1,label:a.adultsLabel,tooltip:a.adultsTooltip,hideInput:!0,id:"ti-adults-modal",onTooltipHover:()=>e7(a.adultsLabel)})}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(tQ,{value:k.noOfChildren,onChange:e=>{let t=k.noOfChildren??0;e!==t&&tn({travellerType:"child",action:e>t?"plus":"minus",value:e,isOverlay:!0}),A({...k,noOfChildren:e})},minValue:v,maxValue:C,step:1,label:a.childrenLabel,tooltip:a.childrenTooltip,hideInput:!0,id:"ti-children-modal",onTooltipHover:()=>e7(a.childrenLabel)})})]}),j&&(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(eV.Checkbox,{className:"before:hidden checked:border-primary-800 checked:bg-primary-800 checked:before:bg-primary-800 hover:!border-border/form-hover hover:shadow-md",checked:k.travelAsFamily,containerProps:{className:"p-0 mr-2 rounded-md self-center"},labelProps:{className:"alpha-form-input text-base md:text-lg p-0 text-text/primary"},label:a.travelingAsFamilyLabel,onChange:()=>{A({...k,travelAsFamily:!k.travelAsFamily})},ripple:!1}),(0,t.jsx)(eV.Tooltip,{content:(0,t.jsx)("div",{className:"max-w-[242px] md:max-w-65 lg:max-w-[286px] xl:max-w-[322px]",children:a.travelingAsFamilyTooltip}),placement:"top",children:(0,t.jsx)("span",{className:"ml-1 inline-flex items-center",children:(0,t.jsx)(eQ.default,{className:"inline-block size-shapes/icon-size-md align-middle text-secondary-lighter"})})})]})]})}),(0,t.jsx)("div",{className:"border-t border-borders/default p-spacing/gap/y-sm bg-fill/card",children:(0,t.jsxs)(d.default,{"data-testid":"ti-search-submit",onClick:()=>{i(k),A({}),s()},disabled:P,styleType:"primary",className:"w-full",autoFocus:!0,children:[(0,t.jsx)(tp.default,{className:"size-shapes/icon-size-md"}),a.findBestDealButton]})})]});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eY,{onClose:M}),(0,t.jsx)("div",{className:(0,p.default)("fixed inset-x-0 bottom-0 z-50 max-h-[90vh] overflow-hidden rounded-t-lg shadow-xl","md:hidden"),children:R}),(0,t.jsx)("div",{className:(0,p.default)("fixed left-1/2 top-1/2 z-50 hidden w-full max-w-2xl overflow-hidden rounded-radius
6/card-inner shadow-xl","-translate-x-1/2 -translate-y-1/2","md:block"),children:R})]})};var tX=e.i(467615),tJ=e.i(881622),t0=e.i(745020);let t1="bg-[rgba(224,244,248,0.6)]",t2=e=>{let n=(0,x.useClientContext)(),a=(0,z.getClientTranslations)(eG,n),{searchParams:r,onChangeParams:l,countries:i,regions:s,boundaries:o,values:u}=e,[m,h]=(0,c.useState)(!1),f=()=>{e2({action:"click",componentTitle:e5,componentType:"overlay"}),h(!0)},{tripTypeLabel:g,destinationLabel:b,dateLabel:y,travelersLabel:_}=u;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex flex-col gap-spacing/gap/soft-8px lg:hidden",children:(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-6px",children:[(0,t.jsx)(eZ,{label:a.tripDetailsLabel,tooltip:a.tripDetailsTooltip,onTooltipHover:()=>{e7(a.tripDetailsLabel)}}),(0,t.jsxs)("div",{className:"flex gap-spacing/gap/soft-8px",children:[(0,t.jsx)("button",{type:"button",className:"flex min-h-button/size flex-1 items-center gap-spacing/gap/x-xs overflow-hidden rounded-radius/button border border-borders/form-default px-spacing/padding/soft-8px py-spacing/gap/soft-8px bg-buttons/base md:py-spacing/gap/soft-4px",onClick:f,children:(0,t.jsxs)("div",{className:"flex flex-1 flex-wrap items-center gap-spacing/gap/x-xs overflow-hidden",children:[(0,t.jsxs)("div",{className:(0,p.default)("flex items-center gap-spacing/gap/x-xs rounded-radius/tooltip p-spacing/padding/soft-4px pr-spacing/padding/x-xs text-text/accent",t1),children:[(0,t.jsx)(ez,{className:"size-shapes/icon-size-md shrink-0"}),(0,t.jsx)("span",{className:"truncate alpha-form-input",children:g})]}),b&&(0,t.jsxs)("div",{className:(0,p.default)("flex items-center gap-spacing/gap/x-xs rounded-radius/tooltip px-spacing/padding/soft-8px py-spacing/padding/soft-4px pr-spacing/padding/x-xs text-text/accent",t1),children:[(0,t.jsx)(tJ.default,{className:"size-shapes/icon-size-md shrink-0"}),(0,t.jsx)("span",{className:"truncate alpha-form-input",children:b})]}),y&&(0,t.jsxs)("div",{className:(0,p.default)("flex items-center gap-spacing/gap/x-xs rounded-radius/tooltip px-spacing/padding/soft-8px py-spacing/padding/soft-4px pr-spacing/padding/x-xs text-text/accent",t1),children:[(0,t.jsx)(tV.default,{className:"size-shapes/icon-size-md shrink-0"}),(0,t.jsx)("span",{className:"truncate alpha-form-input",children:y})]}),(0,t.jsxs)("div",{className:(0,p.default)("flex items-center gap-spacing/gap/x-xs rounded-radius/tooltip px-spacing/padding/soft-8px py-spacing/padding/soft-4px pr-spacing/padding/x-xs text-text/accent",t1),children:[(0,t.jsx)(t0.default,{className:"size-shapes/icon-size-md shrink-0"}),(0,t.jsx)("span",{className:"truncate alpha-form-input",children:_})]})]})}),(0,t.jsx)(d.default,{onClick:f,styleType:"primary",variant:"outline",className:"size-button/size !p-0","aria-label":a.editButtonLabel,children:(0,t.jsx)(tX.default,{className:"size-6"})})]})]})}),(0,t.jsx)(tZ,{isOpen:m,onClose:()=>{e2({action:"click",componentTitle:e6,componentType:"overlay"}),h(!1)},searchParams:r,onChangeParams:l,countries:i,regions:s,boundaries:o,values:u})]})};var t3=e.i(968673);let t4={src:e.i(532409).default,width:232,height:232,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAABE0lEQVR42gEIAff+AAECAgMnP0VhUoGIuBwvNU4IDhAZJTxCXRIfIzIAAQEBAAUKDBRbjZXJh8jM/016g7Y1WWKOe7q/+FuOlMYHDRAaAAIEBglDaG+VfLm96ThaYohKd4G4jc/Q/WymrugPGyAzABwvNEphlJnFca2z5FiKksRKfo3TX5ij41SKmNkRICU5AEZtcpub39z/ltrY/3q5wf9ysLr9ktXU/5HU0/owTlNyAElwdp+d4d3/mNvZ/369w/9/vsT/ltnX/5zh3f9LdHqiAClDSWeKysrykdTU/4XGyf+Excn/j9LS/47Qz/c0VVyAAAYMDxlQfIOwYJWb0GSZn9Blmp/QX5Sb0FmKkMANGR0tDziCnrS3PjIAAAAASUVORK5CYII="},t5=({isOpen:e,onConfirm:n,onCancel:a})=>{let r=(0,x.useClientContext)(),l=(0,z.getClientTranslations)(eG,r);return(eW({isScrollLockActive:e,onClose:a}),e)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eY,{onClose:a}),(0,t.jsx)("div",{className:(0,p.default)("fixed left-1/2 top-1/2 z-50 w-full max-w-[390px] overflow-hidden rounded-radius/card-inner shadow-xl","-translate-x-1/2 -translate-y-1/2","hidden lg:block"),children:(0,t.jsxs)("div",{className:"bg-fill/card",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-spacing/gap/soft-12px p-spacing/padding/y-sm",children:[(0,t.jsx)("div",{className:"flex size-25 items-center justify-center rounded-full bg-gradient-to-b from-[#e0f4f8] to-[#e8f5e9] p-s
6pacing/padding/soft-8px",children:(0,t.jsx)(s.CmsImage,{className:"size-[54px] object-cover object-top",src:t4,alt:"family pictogram","aria-hidden":!0,placeholder:"blur",priority:!0,unoptimized:!0})}),(0,t.jsx)("h2",{className:"text-center font-semibold text-text/primary text-font-size/subheading-1 leading-line-height/subheading-1",children:l.familyModalHeadline}),(0,t.jsx)("p",{className:"text-center font-medium text-text/secondary text-font-size/body-1 leading-line-height/body-1-relaxed",children:l.familyModalBody})]}),(0,t.jsxs)("div",{className:"flex gap-spacing/gap/soft-12px border-t border-borders/default px-spacing/padding/y-sm py-spacing/gap/soft-12px bg-fill/card",children:[(0,t.jsx)(d.default,{onClick:a,styleType:"primary",variant:"outline",className:"flex-1",children:l.familyModalNo}),(0,t.jsx)(d.default,{onClick:n,styleType:"primary",className:"flex-1",autoFocus:!0,children:l.familyModalYes})]})]})})]}):null};function t6(e){let t={...e,destinationIsoCodes:e.destinationIsoCodes?.slice().sort()};return JSON.stringify(t,Object.keys(t).sort())}let t7=e=>{let n=(0,x.useClientContext)(),[a,r]=(0,c.useState)(!1),l=(0,z.getClientTranslations)(eG,n),{regions:i,values:s,queryParamsReady:o,searchParams:d,onChangeParams:u}=e,[p,m]=(0,c.useState)({}),h=t6(d);(0,c.useEffect)(()=>{m({})},[h]);let{countryOptions:f,minDate:g,maxDuration:b,maxDate:y,minAdults:_,maxAdults:v,minChildren:C,maxChildren:T,countryMap:E,availableTripTypes:N,normalizeParams:A}=s,k=A({...d,...p},{skipDestination:!0}),w="SINGLE_PLAN"===k.insuranceType,S=(0,t3.useDebouncedCallback)(()=>{a||(!w||k.destinationIsoCodes?.length)&&u(k)},350),I=e=>{m(e),S()},D=()=>{r(!0)},L=(0,c.useCallback)(()=>{r(!1),S()},[S]),[j,P]=(0,c.useState)(!1),[M,O]=(0,c.useState)(!0),R=(0,c.useMemo)(()=>({value:k.region||i[0]?.value||"",label:i.find(e=>e.value===k.region)?.label||i[0]?.label||""}),[k.region,i]),B=(0,c.useMemo)(()=>k.destinationIsoCodes?k.destinationIsoCodes.map(e=>({value:e,label:E.get(e)||e})).filter(e=>e.label!==e.value):[],[k.destinationIsoCodes,E]),F=(0,H.parseIsoDate)(k.startDate),U=(0,H.parseIsoDate)(k.endDate),G=d.noOfChildren&&!d.travelAsFamily&&(1===d.noOfAdults||2===d.noOfAdults);!G&&M&&o&&O(!1),G&&!M&&o&&(P(!0),O(!0));let V=e=>{e7(e)},$={market:n.lang.split("-")[1]?.toUpperCase()??"",brand:n.brand,tripType:k.insuranceType??"",viewport:"desktop"};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"hidden flex-wrap items-start gap-spacing/gap/soft-6px lg:flex",children:[(0,t.jsx)(e0,{value:k.insuranceType,availableTripTypes:N,onChange:e=>{e8("SINGLE_PLAN"===e?"Single Trip":"Annual"),I(A({...k,insuranceType:e,endDate:""}))},onTooltipHover:V}),(0,t.jsxs)("div",{className:"flex min-w-75 flex-[1_0_0] flex-col gap-spacing/gap/soft-6px",children:[(0,t.jsx)(eZ,{label:l.destinationLabel,tooltip:l.destinationTooltip,onTooltipHover:()=>V(l.destinationLabel)}),w?(0,t.jsx)(ty,{instanceId:"ti-destination",isMulti:!0,mode:"countries",maxVisibleValues:2,value:B,onMenuOpen:D,onMenuClose:L,options:f,onChange:e=>{let t,n,a,r;return t=Array.isArray(e)?e.map(e=>e.value):[],(a=(n=B.filter(e=>!t.includes(e.value))).length>0)&&te(n.map(e=>e.label).join(", ")),r=t.map(e=>E.get(e)||e).join(", "),void(!a&&e9(r||""),I({...k,destinationIsoCodes:t.length>0?t:void 0}))}}):(0,t.jsx)(ty,{instanceId:"ti-region",mode:"select",value:R,options:i,onMenuOpen:D,onMenuClose:L,onChange:e=>{e&&e9(e.label),I({...k,region:e?.value})}})]}),(0,t.jsxs)("div",{className:"flex w-75 flex-col gap-spacing/gap/soft-6px",children:[(0,t.jsx)(eZ,{label:l.travelDatesLabel,tooltip:l.travelDatesTooltip,onTooltipHover:()=>V(l.travelDatesLabel)}),(0,t.jsx)(tY,{startDate:F,endDate:U,mode:w?"range":"annual",onSelect:e=>{let t={...k};e?.from&&(t.startDate=(0,H.formatLocalIsoDate)(e.from)),e?.to&&(t.endDate=(0,H.formatLocalIsoDate)(e.to)),e?.from&&e?.to||(t.startDate="",t.endDate=""),t.startDate&&t.startDate!==k.startDate&&tt("start",t.startDate),t.endDate&&t.endDate!==k.endDate&&tt("end",t.endDate),e?.from&&e?.to&&tr({...$,startDate:(0,H.formatLocalIsoDate)(e.from),endDate:(0,H.formatLocalIsoDate)(e.to),tripDurationDays:(0,eq.differenceInCalendarDays)(e.to,e.from)+1,advanceDays:(0,eq.differenceInCalendarDays)(e.from,new Date)}),I(t)},onSelectionStart:()=>{ta($)},onUnavailableClick:(e,t)=>{tl({...$,reason:t})},minDate:g,maxDate:y,duration:b})]}),(0,t.jsx)("div",{className:"w-25",children:(0,t.jsx)(tQ,{value:k.noOfAdults,onChange:e=>{let t=k.noOfAdults??0;e!==t&&tn({travellerType:"adult",action:e>t?"plus":"minus",value:e}),I({...k,noOfAdults:e})},minValue:_,maxValue:v,step:1,label:l.adultsLabel,tooltip:l.adultsTooltip,id:"ti-adults",onTooltipHover:()=>V(l.adultsLabel)})}),(0,t.jsx)("div",{className:"w-25",children:(0,t.jsx)(tQ,{value:k.noOfChildren,onChange:e=>{let t=k.noOfChildren??0;e!==t&&tn({travellerType:"child",action:e>t?"plus":"minus",value:e}),I({...k,noOfChildren:e})},minValue:C,maxValue:T,step:1,label:l.childrenLabel,tooltip:l.childrenTooltip,id:"ti-children",onTooltipHover:()=>V(l.childrenLabel)})})]}),(0,t.jsx)(t5,{isOpen:j,onConfirm:()=>{I({...d,travelAsFamily:!0}),P(!1)},onCancel:()=>{P(!1)}})]})},t8=e=>{let n,a,r,l,i,s,o,d,u,p,m,h,f,g,b,y,_,{searchParams:v,onChangeParams:C,tripTypes:T,countries:E,regions:N,boundaries:A,queryParamsReady:k,sticky:w=!1}=e,S=(0,c.useMemo)(()=>(function(e,t){let n=t?.map(e=>
6e.value).filter(Boolean);if(!n?.length)return e;let a=new Set(n);return e.filter(e=>a.has(e.value))})(N,A.annualVisibleRegions),[N,A.annualVisibleRegions]),I=(n=(0,x.useClientContext)(),a=(0,z.getClientTranslations)(eG,n),r=(0,c.useMemo)(()=>{let e=E.map(e=>({value:e.iso,label:e.label}));return A.excludeDestinations?.length&&(e=e.filter(e=>!A.excludeDestinations?.some(t=>t.iso===e.value))),A.popularDestinations?.length&&(e=e.sort((e,t)=>{let n=A.popularDestinations.findIndex(t=>t.iso===e.value),a=A.popularDestinations.findIndex(e=>e.iso===t.value);return -1===n&&-1===a?e.label.localeCompare(t.label):a-n})),e},[E,A]),l=(0,c.useMemo)(()=>{let e=new Map;return E.forEach(t=>{e.set(t.iso,t.label)}),e},[E]),i=(0,c.useMemo)(()=>{let e=new Map;return N.forEach(t=>{e.set(t.value,t.label)}),e},[N]),o=(s="SINGLE_PLAN"===v.insuranceType)?a.SINGLE_PLAN:a.ANNUAL_PLAN,d=(0,c.useMemo)(()=>T??["SINGLE_PLAN","ANNUAL_PLAN"],[T]),u=(0,c.useMemo)(()=>{if(s){if(!v.destinationIsoCodes?.length)return"";let e=v.destinationIsoCodes.slice(0,2).map(e=>l.get(e)||e).join(", "),t=v.destinationIsoCodes.length-2;return t>0?`${e} +${t}`:e}return i.get(v.region||"")||v.region||""},[s,v,l,i]),p=(0,c.useMemo)(()=>v.startDate?tB(new Date(v.startDate),v.endDate?new Date(v.endDate):null,n.lang):"",[v.startDate,v.endDate,n.lang]),m=`${v.noOfAdults||1}`,v.noOfChildren&&(m+=`+${v.noOfChildren}`),h=new Date,f=s?A.maxTripDuration:365,g=null!=A.advancePurchaseDuration?(0,tk.addDays)(new Date,A.advancePurchaseDuration):void 0,b=A.minAdult??eR.MIN_ADULTS,y=A.maxAdult??100,_=A.minChildren??eR.MIN_CHILDREN,{availableTripTypes:d,countryOptions:r,countryMap:l,regionMap:i,tripTypeLabel:o,destinationLabel:u,dateLabel:p,travelersLabel:m,minDate:h,maxDate:g,maxDuration:f,minAdults:b,maxAdults:y,minChildren:_,maxChildren:A.maxChildren??100,normalizeParams:(e,t)=>{let a=(0,eO.normalizeTravelParams)(e,A,n.brand);return t?.skipDestination&&"SINGLE_PLAN"===a.insuranceType?{...a,destinationIsoCodes:e.destinationIsoCodes}:a}}),D={searchParams:v,onChangeParams:C,countries:E,regions:S,boundaries:A,values:I,queryParamsReady:k},L=eU();return(0,t.jsxs)(eF,{enabled:w,suspended:L,className:w?"py-spacing/gap/y-sm":void 0,pinnedClassName:"bg-fill/alternative-1","data-component":"ti-options",children:[(0,t.jsx)(t7,{...D}),(0,t.jsx)(t2,{...D})]})};var t9=e.i(510062);let ne=(0,M.staticText)({errorMessage:{_:"No results found with your filters","zh-hk":"æ²æç¬¦åç¯©é¸æ¢ä»¶ççµæ"},helpText:{_:"Looks like the filters are too narrow. Adjust or clear filters to explore more options.","zh-hk":"ç¯©é¸æ¢ä»¶å¤ªå´æ ¼äº"},actionText:{_:"See All Results","zh-hk":"æ¥çææçµæ"}}),nt={background:"linear-gradient(180deg, var(--highlights-blue-light, #E0F4F8) 0%, var(--highlights-green-light, #E8F5E9) 100%)",borderRadius:"50%"},nn=({onClear:e})=>{let n=(0,x.useClientContext)(),a=(0,z.getClientTranslations)(ne,n);return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-spacing/gap/y rounded-radius/table border border-borders/default p-spacing/padding/section-y bg-fill/card",children:[(0,t.jsxs)("div",{className:"flex max-w-general/4-col-width flex-col items-center gap-spacing/gap/soft-12px",children:[(0,t.jsx)("div",{className:(0,p.default)("md:p-[24px]","p-spacing/gap/soft-12px"),style:nt,children:(0,t.jsx)(s.CmsImage,{className:"size-[58px] object-cover object-top",src:"https://mhgprod.blob.core.windows.net/fe-services/content/assets/ti-empty.png",alt:"Empty results image","aria-hidden":!0,priority:!0,unoptimized:!0,width:58,height:58})}),(0,t.jsx)("h2",{className:"mhg-alpha-typography-subheading-1",children:a.errorMessage}),(0,t.jsx)("div",{className:"mhg-alpha-typography-body-1-relaxed text-center text-colors/neutral-gray-800",children:a.helpText})]}),!!e&&(0,t.jsx)(d.default,{type:"button",onClick:e,children:a.actionText})]})},na=(0,M.staticText)({errorMessage:{_:"Something went wrong","zh-hk":"ç¼çé¯èª¤"},helpText:{_:"We couldnât load the results. Please refresh the page to try again.","zh-hk":"ç¡æ³è¼å
¥çµæï¼è«éæ°æ´çå¾å試ã"},actionText:{_:"Try Again","zh-hk":"åè©¦ä¸æ¬¡"}}),nr={background:"linear-gradient(180deg, var(--highlights-blue-light, #E0F4F8) 0%, var(--highlights-green-light, #E8F5E9) 100%)",borderRadius:"50%"},nl=({onRetry:e})=>{let n=(0,x.useClientContext)(),a=(0,z.getClientTranslations)(na,n);return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-spacing/gap/y rounded-radius
6/table border border-borders/default p-spacing/padding/section-y bg-fill/card",children:[(0,t.jsxs)("div",{className:"flex max-w-general/4-col-width flex-col items-center gap-spacing/gap/soft-12px",children:[(0,t.jsx)("div",{className:(0,p.default)("md:p-[24px]","p-spacing/gap/soft-12px"),style:nr,children:(0,t.jsx)(s.CmsImage,{className:"size-[58px] object-cover object-top",src:"https://mhgprod.blob.core.windows.net/fe-services/content/assets/triangle-attention.png",alt:"Attention image","aria-hidden":!0,width:58,height:58,priority:!0,unoptimized:!0})}),(0,t.jsx)("h2",{className:"mhg-alpha-typography-subheading-1",children:a.errorMessage}),(0,t.jsx)("div",{className:"mhg-alpha-typography-body-1-relaxed text-center text-colors/neutral-gray-800",children:a.helpText})]}),(0,t.jsx)(d.default,{type:"button",onClick:e,children:a.actionText})]})},ni=(0,M.staticText)({searching:{_:"Searching","zh-hk":"æå°ä¸"},stillSearching:{_:"Still searchingâ¦","zh-hk":"ç¹¼çºæå°ä¸â¦"},results:{_:"results","zh-hk":"åçµæ"},noResults:{_:"0 of :total results","zh-hk":"0/:total åçµæ"},error:{_:"0 results (error)","zh-hk":"æå°æç¼çé¯èª¤ãè«ç¨å¾å試ã"}}),ns=({className:e,inProgress:n,hasError:a,resultCount:r,onRetry:l})=>{let i=(0,x.useClientContext)(),s=(0,z.getClientTranslations)(ni,i),o=!n&&a,c=!n&&!a&&!r;return(0,t.jsxs)("div",{"data-testid":"ti-quote-count","data-count":r??0,className:(0,p.default)(e,"flex w-full flex-col gap-spacing/gap/y-sm"),children:[(0,t.jsxs)("div",{className:"mhg-alpha-typography-body-2 flex align-middle",children:[n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(t9.default,{className:"mr-spacing/gap/soft-6px size-[18px]"}),(0,t.jsx)("span",{children:r?s.stillSearching:s.searching})]}),!n&&!a&&(0,t.jsx)("span",{children:`${r} ${s.results}`}),o&&(0,t.jsx)("span",{children:s.error})]}),c&&(0,t.jsx)(nn,{}),o&&(0,t.jsx)(nl,{onRetry:l})]})};var no=e.i(243833),nc=e.i(681019);function nd(){}let nu=e=>null!=e;e.i(237922);var np=e.i(359747),nm=e.i(945936);let nh={destinations:"string[]",tripType:"string",region:"string",startDate:"string",endDate:"string",noOfAdults:"number",noOfChildren:"number",travelAsFamily:"boolean"};function nf(e,t){return{endDate:e.endDate,noOfAdults:e.noOfAdults,noOfChildren:e.noOfChildren,region:e.region,startDate:e.startDate,travelAsFamily:e.travelAsFamily,destinationIsoCodes:e.destinations?.map(e=>t.find(t=>t.value===e)?.iso).filter(nu),insuranceType:e.tripType}}function ng(e,t){return{endDate:e.endDate,noOfAdults:e.noOfAdults,noOfChildren:e.noOfChildren,region:e.region,startDate:e.startDate,travelAsFamily:e.travelAsFamily,destinations:e.destinationIsoCodes?.map(e=>t.find(t=>t.iso===e)?.value).filter(nu),tripType:e.insuranceType}}function nx({metaConfig:e,...n}){let a,{pageData:{travelQuotes:r}}=(0,$.usePageDataContext)(),{travelQueryParams:l,setTravelQueryParams:i,queryParamsReady:s}=(e=>{var t;let n,a,{pageData:{travelQuotes:r}}=(0,$.usePageDataContext)(),{brand:l}=(0,x.useClientContext)(),[i,s]=(t={skipCmsPrefix:!0},n=(0,np.useSafeSearchParams)(),[a=(0,c.useMemo)(()=>(0,nm.parseQueryParams)(nh,n),[n,nh]),e=>{var n,r,l;let i,s,o;n={...a,...e},r=nh,l=t,i=new URLSearchParams(window.location.search),s=window.location.hash,Object.entries(n).forEach(([e,t])=>{let n=nm.keyTransformer.transform(e,l);if(void 0!==r[e])if(null==t)i.delete(n);else if(Array.isArray(t))0===t.length?i.delete(n):i.set(n,t.join(","));else if(t instanceof Date){let e=(0,H.formatLocalIsoDate)(t);i.set(n,e)}else i.set(n,String(t))}),o=`${window.location.pathname}?${i.toString()}${s}`,window.history.pushState(null,"",o)}]),[o,d]=(0,c.useState)(!1),u=(0,np.useSafeSearchParamsExtended)();return(0,c.useEffect)(()=>{if(u?.searchParamsReady&&!o){let t={...r?.params,...nf(i,r?.countries||[])};s(ng(t=(0,eO.normalizeTravelParams)(t,e,l),r?.countries||[])),t6(t)===t6(nf(i,r?.countries||[]))&&d(!0)}},[o,i,u?.searchParamsReady,s,r,e,l]),{travelQueryParams:(0,c.useMemo)(()=>o?nf(i,r?.countries||[]):(0,eO.normalizeTravelParams)(r?.params??{},e,l),[o,i,r?.params,r?.countries,e,l]),setTravelQueryParams:(0,c.useCallback)(t=>
6{s(ng((0,eO.normalizeTravelParams)(t,e,l),r?.countries||[]))},[s,r,e,l]),queryParamsReady:o}})(n);!function({queryParamsReady:e,travelQueryParams:t}){let{pageData:{travelQuotes:n},setTravelQuotes:a}=(0,$.usePageDataContext)(),r=(0,c.useRef)(t6(t)),l=(0,c.useMemo)(()=>{let e=t6(t);return r.current=e,e},[t]),i=(0,c.useRef)([]),s=(0,c.useCallback)(async e=>{nd("requestQuotes:start",e);let t=await Y.feApiFrontClient.travelCompareQuotes(e),n=t6(e);if(r.current!==n){nd("requestQuotes:stale-response",n,r.current),i.current=i.current.filter(e=>e!==n);return}if(a({params:e,status:t.status,premiums:t.data}),nd("requestQuotes:response",n,t.status),"inprogress"!==t.status){i.current=i.current.filter(e=>e!==n),nd("requestQuotes:done",n);return}nd("requestQuotes:polling-next",n),await new Promise(e=>{setTimeout(e,1500)}),await s(e)},[a]),o=(0,c.useCallback)(async()=>{i.current.includes(l)?nd("startRequestQuotesProcess:skip-existing",l):(i.current.push(l),nd("startRequestQuotesProcess:start",l),a({params:t,status:"inprogress",premiums:[],oldPremiumsIds:n?.premiums?.map(e=>e?.brokerProductCode||"")}),await s(t))},[s,a,t,l,n?.premiums]);(0,c.useEffect)(()=>{(async()=>{let t=t6(n?.params??{});t!==l&&e&&(nd("useEffect:params-changed",t,l),await o())})()},[e,s,a,o,t,l,n]),(0,c.useEffect)(()=>{n?.status!=="success"&&n?.isBackendData&&e&&(nd("useEffect:ssr-retry"),o())},[e,o,n?.isBackendData,n?.status])}({queryParamsReady:s,travelQueryParams:l});let o=async e=>{i(e)},d=(0,eM.useBreakpoint)(),u=(0,x.useClientContext)(),p=(0,z.getClientTranslations)(no.default,u),m=r?.providerSettings,h=m?.providerName,f=!!h,g=(0,c.useMemo)(()=>(function(e){if(!e)return["SINGLE_PLAN","ANNUAL_PLAN"];let t=[];return e.productsSingle.length&&t.push("SINGLE_PLAN"),e.productsAnnual.length&&t.push("ANNUAL_PLAN"),t})(m),[m]),b=r?.status==="inprogress"||!s,y=(r?.status==="fail"||r?.status==="timeout")&&s,_=f&&0===g.length,v=g.length>0&&!g.includes(l.insuranceType),C="";if(y&&!b&&(C=(0,eP.tr)("searchError",p)),v&&h&&(C=(0,eP.tr)("tripTypeNotAvailable",p,{provider_name:h})),_)return(0,t.jsx)(nc.TISearchBanner,{message:p.noProducts});let T=t6(r?.params??{})===t6(l);return(0,t.jsxs)("div",{"data-component":"travel-policy-search","data-settled":!b&&T?"true":"false",children:[(0,t.jsx)(t8,{searchParams:l,onChangeParams:o,countries:r?.countries??[],regions:r?.regions??[],boundaries:n,queryParamsReady:s,tripTypes:g,sticky:!0}),!!C&&f&&(0,t.jsx)(nc.TISearchBanner,{className:"mt-spacing/gap/y-sm",dismissible:!0,message:C}),!f&&(0,t.jsx)(ns,{className:"mt-spacing/gap/y-sm",inProgress:b,hasError:y,resultCount:(a="sm"===d,e?.product_card?.filter(e=>!!r?.premiums?.some(t=>t?.brokerProductCode===(0,ej.getAttrFromProduct)("INSUREMO_PRODUCT_UID",e.productBlock?.product)?.value)&&!!e.visible&&(!a||!1!==e.visible_mobile)).length??0),onRetry:()=>{i({...l})}})]})}e.s(["default",()=>nx],783822);var nb=e.i(475275);e.s(["VerticalArticles",0,e=>{let{pageData:n}=(0,$.usePageDataContext)(),a=n.verticalArticlesData?.find(t=>t.componentId===e.id)?.data;return(0,t.jsx)(nb.VerticalArticlesClient,{...e,initialArticles:a?.data??[]})}],297476),e.s(["InstagramEmbed",0,({embedUrl:e,sectionTitle:n})=>(0,t.jsx)("div",{className:"w-full max-w-82 md:max-w-general/5-col-width lg:max-w-general/4-col-width",children:(0,t.jsx)("div",{className:"w-full overflow-hidden rounded-radius/table border border-borders/default bg-fill/card",children:(0,t.jsx)("iframe",{src:e,className:"h-[632px] w-full overflow-hidden border-0 md:h-[692px] md:w-full lg:h-[684px]",allowFullScreen:!0,loading:"lazy",scrolling:"no",style:{maxWidth:"100%",overflow:"hidden"},title:n||"Instagram embed"},e)})})],288392),e.s(["PlayButton",0,({onClick:e})=>(0,t.jsx)("button",{type:"button",onClick:e,className:"absolute left-1/2 top-1/2 z-[2] flex size-shapes/pictogram-md -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full p-spacing/padding/soft-12px shadow-[0_0_12px_rgba(0,0,0,0.15)] transition bg-fill/primary text-white hover:scale-105 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-fill/primary","aria-label":"Play video",children:(0,t.jsx)("svg",{className:"ml-2",width:"28",height:"35",viewBox:"0 0 28 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M0 34.615V0L27.1792 17.3075L0 34.615ZM2.56417 29.89
608L22.4808 17.3075L2.56417 4.72417V29.8908Z",fill:"currentColor"})})})],793219)},668470,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(278467),r=e.i(295750);e.s(["default",0,e=>{let{text:l,className:i,maxChars:s=100,maxCharsMobile:o=100,expanded:c}=e,{lang:d}=(0,r.useClientContext)(),[u,p]=(0,n.useState)(c),[m,h]=(0,n.useState)(0),f=()=>{h(window.innerWidth)},g=(0,n.useMemo)(()=>m<=768?o:s,[s,o,m]),x=(0,n.useMemo)(()=>l.replace(/<\/?[^>]+(>|$)/g,"").length>g,[l,g]);(0,n.useEffect)(()=>(f(),window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f)}),[]);let b=(0,n.useMemo)(()=>{let e=l.replace(/<\/?[^>]+(>|$)/g,""),t="";return t=u||!x?e:e?`${e.substring(0,g)}...`:" ",x&&(t+=u?` <span class="underline hover:cursor-pointer">${(0,a.tr)("see_less",d)}</span>`:` <span class="underline hover:cursor-pointer">${(0,a.tr)("see_more",d)}</span>`),t},[g,u,x,d,l]);return(0,t.jsx)("div",{className:i,children:(0,t.jsx)("p",{className:"inline-block",onClick:e=>{e.preventDefault(),p(e=>!e)},dangerouslySetInnerHTML:{__html:`${b} `}})})}])}
6,64141,962039,257731,445977,951353,315137,133558,999758,763302,971588,994088,953193,950966,107641,58129,69049,939746,375133,204263,277687,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(317220),r=e.i(288392);e.i(397031);var l=e.i(271159),i=e.i(793219),s=e.i(668470);let o=({aspectPadding:e,caption:n,iframeSrc:a,iframeRef:r,isPlaying:o,isPortrait:c,onPlay:d,placeholderImage:u,sectionTitle:p})=>(0,t.jsxs)("div",{className:`overflow-hidden rounded-radius/card border border-borders/default bg-fill/alternative-1 ${c?"max-w-general/4-col-width":""}`,children:[(0,t.jsx)("div",{className:"relative w-full bg-fill/alternative-1",style:{paddingTop:`${e}%`},children:o?(0,t.jsx)("iframe",{ref:r,src:a,title:p||"YouTube video",className:"absolute inset-0 size-full border-0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0,loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",className:"absolute inset-0 z-1 size-full",onClick:d,"aria-label":"Play video"}),(0,t.jsx)(l.CmsImage,{unoptimized:!0,alt:u?.alternativeText??"Video placeholder",src:u?.url??"",fill:!0,className:"object-cover",sizes:{_:"100vw",md:900},priority:!1}),(0,t.jsx)(i.PlayButton,{onClick:d})]})}),n&&(0,t.jsx)(s.default,{text:n,maxChars:168,maxCharsMobile:90,className:"mhg-alpha-typography-body-2-relaxed p-spacing/padding/soft-12px text-text/secondary"})]}),c={id:"youtube-iframe-api",src:"https://www.youtube.com/iframe_api"};e.i(713222);var d=e.i(178680);let u=new Set;e.s(["VideoBlock",0,e=>{let{embedType:l,aspectRatio:i,placeholderImage:s,caption:p,youtubeUrlOrId:m,instagramUrl:h,sectionTitle:f}=e,g=(0,n.useMemo)(()=>(e=>{if(!e)return"";let t=e.trim();if(/^[a-zA-Z0-9_-]{11}$/.test(t))return t;try{let e=new URL(t);if("youtu.be"===e.hostname)return e.pathname.replace("/","");if(e.searchParams.get("v"))return e.searchParams.get("v")??"";let n=e.pathname.match(/\/embed\/([^/?]+)/);if(n?.[1])return n[1]}catch(e){}return""})(m),[m]),x=(0,n.useMemo)(()=>{if(l!==d.EnumVideoBlockEmbedType.Instagram)return"";if(!h)return"";try{let e=new URL(h.trim()).pathname.split("/").filter(Boolean),t=e.findIndex(e=>["p","reel","tv"].includes(e));if(-1===t)return"";let n=e[t+1];if(!n)return"";return`https://www.instagram.com/${e[t]}/${n}/embed`}catch(e){return""}},[l,h]),[b,y]=(0,n.useState)(!1),_="sm"===(0,a.useBreakpoint)(),v=(0,n.useRef)(null),C=(0,n.useMemo)(()=>(l?i:void 0)===d.EnumVideoBlockAspectRatio.Ratio_9_16?177.78:56.25,[i,l]);(0,n.useEffect)(()=>{l===d.EnumVideoBlockEmbedType.Youtube&&b&&(({id:e,src:t})=>u.has(e)?Promise.resolve():document.getElementById(e)?(u.add(e),Promise.resolve()):new Promise((n,a)=>{let r=document.createElement("script");r.id=e,r.src=t,r.async=!0,r.onload=()=>{u.add(e),n()},r.onerror=()=>a(),document.body.appendChild(r)}))(c).catch(()=>void 0)},[l,b]);let T=(0,n.useMemo)(()=>{if(!b||!g)return"";let e=new URLSearchParams({autoplay:"1",rel:"0",modestbranding:"1",playsinline:_?"0":"1"});return`https://www.youtube.com/embed/${g}?${e.toString()}`},[_,b,g]),E=(0,n.useCallback)(()=>{l===d.EnumVideoBlockEmbedType.Youtube&&g&&y(!0)},[l,g]);if(!l||l===d.EnumVideoBlockEmbedType.Youtube&&(!g||!s)||l===d.EnumVideoBlockEmbedType.Instagram&&(!x||0===x.length))return null;let N=i===d.EnumVideoBlockAspectRatio.Ratio_9_16;return(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y",children:[f&&(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 text-text/primary",children:f}),l===d.EnumVideoBlockEmbedType.Youtube&&s&&(0,t.jsx)(o,{aspectPadding:C,caption:p,iframeSrc:T,iframeRef:v,isPlaying:b,isPortrait:N,onPlay:E,placeholderImage:s,sectionTitle:f}),l===d.EnumVideoBlockEmbedType.Instagram&&x&&(0,t.jsx)(r.InstagramEmbed,{embedUrl:x,sectionTitle:f})]})}],64141),e.s(["getBlockSkipKey",0,e=>`${e?.__typename??""}:${e?.id??""}`],962039),e.i(650687);var p=e.i(163137);
6e.s(["AudienceGate",0,({audience:e,children:n})=>{let a=!!(0,p.useIdentity)();return"LOGGED_IN"===e&&!a||"LOGGED_OUT"===e&&a?null:(0,t.jsx)(t.Fragment,{children:n})}],257731);var m=e.i(578197),h=e.i(597120),f=e.i(105370),g=e.i(343794);e.s(["CollapsibleContentTabbed",0,({visible:e,vertical:r,tab:l})=>{let[i,s]=(0,n.useState)(l[0]?.id??""),o="sm"===(0,a.useBreakpoint)(),c=l.find(e=>e.id===i),d=(0,g.default)("cms-rich-text mhg-alpha-typography-body-1 flex flex-col text-colors/neutral-gray-800 [&_ol]:list-decimal [&_ol]:pl-6 [&_ul]:list-disc [&_ul]:pl-6",o?"gap-spacing/gap/y-sm pt-spacing/gap/y":"gap-spacing/gap/x leading-line-height/body-1-relaxed");if(!e||!l.length)return null;let u=e=>{s(e===i&&o?"":e)};return(0,t.jsx)("div",{className:(0,g.default)("my-padding/section-y flex flex-col overflow-hidden rounded-radius/card border border-borders/default bg-fill/card",{"p-spacing/padding/y":o,"p-spacing/padding/x-sm":!o}),children:r?(0,t.jsxs)("div",{className:(0,g.default)("flex",{"flex-col":o,"gap-spacing/gap/y":!o}),children:[(0,t.jsx)("div",{role:"tablist","aria-orientation":r?"vertical":"horizontal",className:(0,g.default)({"w-full":o,"w-1/3":!o}),children:l.map(e=>(0,t.jsx)("div",{className:"pb-spacing/gap/soft-8px last:pb-0",children:o?(0,t.jsx)(m.CollapsibleSection,{id:e.id,isOpen:i===e.id,onToggle:()=>u(e.id),iconClassName:"text-font-size/bullet-1 overflow-visible",iconName:e.icon,content:(0,t.jsx)(h.RawHtml,{className:d,content:e.content}),children:e.title}):(0,t.jsx)(f.default,{isOpen:i===e.id,toggleVisibility:()=>u(e.id),showExpandIcon:!1,className:"flex w-full items-center text-center",iconName:e.icon,iconClassName:"text-font-size/bullet-1 overflow-visible",verticalAlign:!0,children:e.title})},e.id))}),!o&&(0,t.jsx)("div",{className:"w-2/3",children:c?.content&&(0,t.jsx)(h.RawHtml,{className:d,content:c.content})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`flex gap-spacing/gap/soft-12px ${o?"flex-col":"w-full"}`,children:l.map(e=>(0,t.jsx)("div",{className:o?"w-full":"w-1/2",children:o?(0,t.jsx)(m.CollapsibleSection,{id:e.id,isOpen:i===e.id,onToggle:()=>u(e.id),iconName:e.icon,iconClassName:"text-font-size/bullet-1 overflow-visible",content:(0,t.jsx)(h.RawHtml,{className:d,content:e.content}),children:e.title}):(0,t.jsx)(f.default,{isOpen:i===e.id,toggleVisibility:()=>u(e.id),showExpandIcon:!1,className:"flex w-full items-center text-center",iconName:e.icon,iconClassName:"text-font-size/bullet-1 overflow-visible",children:e.title})},e.id))}),!o&&(0,t.jsx)("div",{children:c?.content&&(0,t.jsx)(h.RawHtml,{className:(0,g.default)(d,"pt-spacing/padding/y"),content:c.content??""})})]})})}],445977);let x=function({className:e}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",className:e,children:[(0,t.jsx)("mask",{id:"mask0_31109_955",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"26",height:"26",children:(0,t.jsx)("rect",{width:"26",height:"26",fill:"#D9D9D9"})}),(0,t.jsx)("g",{mask:"url(#mask0_31109_955)",children:(0,t.jsx)("path",{d:"M9.09989 18.0417L12.9999 14.1417L16.8999 18.0417L18.0415 16.9L14.1415 13L18.0415 9.10002L16.8999 7.95837L12.9999 11.8584L9.09989 7.95837L7.95825 9.10002L11.8582 13L7.95825 16.9L9.09989 18.0417ZM13.0017 23.2917C11.5783 23.2917 10.2403 23.0215 8.98785 22.4813C7.73535 21.9411 6.64586 21.208 5.71938 20.2819C4.79287 19.3558 4.05939 18.2668 3.51894 17.0148C2.97848 15.7629 2.70825 14.4253 2.70825 13.0018C2.70825 11.5784 2.97836 10.2404 3.51859 8.98797C4.05881 7.73547 4.79195 6.64599 5.71802 5.7195C6.64411 4.793 7.73312 4.05952 8.98506 3.51906C10.237 2.9786 11.5746 2.70837 12.9981 2.70837C14.4215 2.70837 15.7595 2.97849 17.0119 3.51871C18.2644 4.05893 19.3539 4.79208 20.2804 5.71815C21.2069 6.64423 21.9404 7.73325 22.4808 8.98518C23.0213 10.2371 23.2915 11.5748 23.2915 12.9982C23.2915 14.4216 23.0214 15.7596 22.4812 17.0121C21.941 18.2646 21.2078 19.354 20.2818 20.2805C19.3557 21.207 18.2667 21.9405 17.0147 22.481C15.7628 23.0214 14.4251 23.2917 13.0017 23.2917Z",fill:"#B71C1C"})})]})};var b=e.i(318164);let y=({data:e,icon:n,bgClass:a,roundedClass:r})=>(0,t.jsxs)("div",{className:`flex flex-col gap-spacing/gap/y px-spacing/padding/x py-spacing/padding/y ${a} ${r}`,children:[e.list_title&&(0,t.jsx)("h3",{className:"mhg-alpha-title-1 text-text/primary",children:e.list_title}),(0,t.jsx)("ul",{className:"flex flex-col gap-spacing/gap/y-sm",children:e.point_list?.map(e=>(0,t.jsxs)("li",{className:"flex flex-col gap-spacing/gap/y-xs",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("span",{className:"size-6 shrink-0",children:n}),e.title&&(0,t.jsx)("h4",{className:"mhg-alpha-typography-subheading-2 text-text/primary",children:e.title})]}),e.content&&(0,t.jsx)("p",{className:"mhg-alpha-typography-body-1-relaxed pl-6 text-text/secondary",children:e.content})]},e.id))})]});e.s(["ProsAndCons",0,({section_title:e,intro_content:n,pros:a,cons:r})=>(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/section-y",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y",children:[e&&(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 text-text/primary",children:e}),n&&(0,t.jsx)("p",{className:"mhg-alpha-typography-body-2 text-text/secondary leading-line-height/body-2-relaxed",children:n})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-0 md:grid-cols-2",children:[a&&(0,t.jsx)(y,{data:a,icon:(0,t.jsx)(b.default,{className:"size-5"}),bgClass:"bg-highlights/green-light",roundedClass:"rounded-t-radius/card md:rounded-l-radius/card md:rounded-r-none"}),r&&(0,t.jsx)(y,{data:r,icon:(0,t.jsx)(x,{className:"size-5"}),bgClass:"bg-highlights/red-light",roundedClass:"rounded-b-radius/card md:rounded-r-radius/card md:rounded-l-none"})]})]})],951353);var _=t;
6let v={[d.EnumGridModuleBackgroundColor.PrimaryLight]:(0,g.default)("bg-fill/primary-light"),[d.EnumGridModuleBackgroundColor.Alternative_1]:(0,g.default)("bg-fill/alternative-1"),[d.EnumGridModuleBackgroundColor.Alternative_2]:(0,g.default)("bg-fill/alternative-2"),[d.EnumGridModuleBackgroundColor.Alternative_3]:(0,g.default)("bg-fill/alternative-3"),[d.EnumGridModuleBackgroundColor.SecondaryLight]:(0,g.default)("bg-fill/secondary-light")};e.s(["FeaturesGridModule",0,({align:e,description:t,headline:n,widthMode:a,bgColor:r,item:i,ContentContainer:s=e=>(0,_.jsx)("div",{...e})})=>{let o=r?v[r]:void 0,c=a===d.EnumGridModuleWidthMode.FullWidth,u=e===d.EnumGridModuleAlign.Center;return(0,_.jsx)("section",{className:(0,g.default)("flex justify-center py-spacing/padding/section-y",o),children:(0,_.jsx)(s,{children:(0,_.jsxs)("div",{className:(0,g.default)("flex flex-col gap-spacing/gap/y",{"md:w-general/narrow-content-max-width-1 md:max-w-general/narrow-content-max-width-1":!c,"w-full":c}),children:[n&&(0,_.jsx)("div",{className:(0,g.default)("mhg-alpha-typography-display-1 text-text/primary",{"text-center":u}),children:n}),t&&(0,_.jsx)("div",{className:(0,g.default)("mhg-alpha-typography-body-1-relaxed text-text/secondary [&_a]:underline [&_a]:text-[--text-link]",{"text-center":u}),dangerouslySetInnerHTML:{__html:t??""}}),i?.length&&(0,_.jsx)("div",{className:(0,g.default)("grid w-full grid-cols-1 gap-spacing/gap/x md:grid-cols-2",{"lg:grid-cols-3":c&&i.length%3==0}),children:i?.map((e,t)=>(0,_.jsxs)("div",{className:(0,g.default)("flex gap-spacing/gap/y rounded-radius/card border border-borders/default px-spacing/padding/x-sm py-spacing/padding/y bg-fill/card"),children:[e.image?.url&&(0,_.jsx)(l.CmsImage,{sizes:{_:96},src:e.image.url,alt:"Feature image",height:96,width:96,className:"size-shapes/pictogram-lg"}),(0,_.jsxs)("div",{className:"flex w-full flex-col gap-spacing/gap/soft-8px",children:[(0,_.jsx)("div",{className:"mhg-alpha-typography-title-2",children:e.title}),e.subtitle&&(0,_.jsx)("div",{className:"mhg-alpha-typography-body-1-relaxed [&_a]:underline [&_a]:text-[--text-link]",dangerouslySetInnerHTML:{__html:e.subtitle}})]})]},t))})]})})})}],315137),e.i(69618);var C=e.i(440481);e.s(["LogoCarousel",0,({title:e,items:a})=>{let r=n.default.useMemo(()=>a&&Array.isArray(a)?[...a,...a]:[],[a]);return(0,t.jsx)("div",{className:"bg-white",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-screen-2xl flex-col gap-spacing/gap/x px-0 py-8 sm:px-6 md:px-8 md:py-10 lg:px-10 lg:py-12",children:[(0,t.jsx)("h3",{className:"px-4 text-left font-bold text-gray-900 text-2xl leading-[30px] md:px-6 md:text-center md:text-[28px] md:leading-[34px] lg:px-8 lg:text-4xl lg:leading-[44px] xl:px-10",children:e}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{className:"absolute left-0 top-0 z-10 hidden h-full w-8 md:block"}),(0,t.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,t.jsx)("div",{className:"w-[1200px] animate-infinite-scroll",children:(0,t.jsx)("div",{className:"flex w-max gap-6 lg:gap-12",children:r?.map((e,n)=>{let a=e?.url?`${e.url}-${n}`:`logo-${n}`;return(0,t.jsx)("div",{children:e?.image&&(0,t.jsx)(C.FeLink,{href:e?.url,target:"_blank",className:"flex items-center justify-center",children:(0,t.jsx)(l.CmsImage,{unoptimized:!0,width:163,height:48,src:e?.image?.url,alt:e?.image?.alternativeText??"",className:"m-auto max-h-8 w-fit object-contain lg:max-h-12"})})},a)})})})}),(0,t.jsx)("div",{className:"absolute left-0 top-0 z-10 hidden h-full w-8 md:block"})]})})]})})}],133558),e.i(782316);var T=e.i(619827),E=e.i(510274),N=e.i(40232);e.i(201542);var A=e.i(77719),k=e.i(469835),w=e.i(605122);e.i(174345);var S=e.i(774860);e.i(73430);var I=e.i(316832),D=e.i(489635),L=e.i(564755);e.i(271210);var j=e.i(686148),P=e.i(630725);let M=({score:e,info:n="",max:a=5})=>(0,t.jsxs)("div",{className:"flex items-center gap-spacing/gap/soft-4px",children:[(0,t.jsxs)("div",{className:"flex items-center gap-spacing/gap/soft-6px",children:[(0,t.jsx)(P.default,{className:"h-[18px] w-[58px]"}),(0,t.jsx)("span",{className:"mhg-alpha-typography-body-2 text-text/secondary",children:"rating"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-spacing/gap/soft-6px",children:[(0,t.jsx)("span",{className:"mhg-alpha-typography-bullet-2 text-[#2955DE]",children:e}),(0,t.jsxs)("span",{className:"mhg-alpha-typography-body-2 text-text/secondary",children:["/ ",a]}),n&&(0,t.jsx)(w.default,{infoClass:"!size-[--shapes-icon-size-sm] text-text/disabled",content:n})]})]});e.i(843780);var O=e.i(892063),R=e.i(278467),B=e.i(168247),F=e.i(424135);e.i(433793);var H=e.i(334850);let U=(0,j.staticText)({view_details:{_:"View Details",zh:"æ¥ç詳æ
"}});e.s(["MiniProductHighlight",0,({section_title:e,content_after_highlight:a,content_before_highlight:r,content_with_highlight:i,product:s,attribute:o,mini_product_highlight_attribute_list:c,badge:u,badge_colour:p,highlight_first_attribute:m=!1,toggle_seedly_rating:h})=>{let{lang:f,brand:x}=(0,S.useCmsClientContext)(),b=(0,L.getClientTranslations)(U,{lang:f,brand:x}),{openModal:y}=(0,A.useProductBlockAsideModal)(),_=(0,n.useCallback)(e=>{s?.url_alias&&y(s.url_alias,e?"exclusiveOffers":null)},[s?.url_alias,y]),v=(0,n.useMemo)(()=>{let e=c?.map(e=>
6e?.attribute).filter(Boolean)??[];return e.length>0?e:o?[o]:[]},[c,o]),C=(0,n.useMemo)(()=>{let e=s?.attributes??[];return v.map(t=>{let n=e.find(e=>t?.uid?e?.name?.uid===t.uid:e?.name?.name===t?.name);if(!n)return null;let a=n.label||t?.label||t?.name||"",r=(0,I.formatAttributeItemValue)(n)??"",l=n.additional_information||"";return{id:t?.uid??t?.name??a,label:a,value:r,tooltip:l}}).filter(e=>!!e).slice(0,4)},[v,s?.attributes]),{open:j}=(0,E.useApplyV3Modal)(),P=(0,N.useCtaUrl)({product:s})??"",z=(0,n.useMemo)(()=>(0,D.getApplyButtonLabel)((0,R.tr)("apply_now",f),void 0,s?.call_to_action),[f,s?.call_to_action]),G=!!u?.trim(),V=!!s?.url_alias,$=(0,g.default)({"bg-highlights/blue-light text-highlights/blue-dark":!p||p===d.EnumMiniProductHighlightBadgeColor.Blue,"bg-highlights/red-light text-highlights/red-dark":p===d.EnumMiniProductHighlightBadgeColor.Red,"bg-highlights/green-light text-highlights/green-dark":p===d.EnumMiniProductHighlightBadgeColor.Green,"bg-highlights/yellow-light text-highlights/yellow-dark":p===d.EnumMiniProductHighlightBadgeColor.Yellow,"bg-highlights/orange-light text-highlights/orange-dark":p===d.EnumMiniProductHighlightBadgeColor.Orange}),Y=(0,n.useCallback)(()=>{if(!P)return;H.sessionAttributionTracker.recordApplyClick(),(0,B.sendProductAnalytics)({action:F.UserActionEnum.CLICK,componentTitle:"Product Card/CTA_Apply Now",componentType:F.ComponentTypeEnum.PRODUCT_CARD,event:"product_click_apply",index:"0",product:s});let e=(0,T.matchApplyV3ModalIntent)(P);e?j(e):window.open(P,"_blank")},[j,s,P]),W=(0,n.useCallback)(()=>{s?.url_alias&&((0,B.sendProductAnalytics)({action:F.UserActionEnum.CLICK,componentTitle:"Product Card/View Details",componentType:F.ComponentTypeEnum.PRODUCT_CARD,event:"click",index:"0",product:s}),_(!0))},[_,s]),q=s?.product_image||s?.provider?.provider_image||"";return(0,t.jsxs)("section",{className:"flex flex-col gap-4 sm:gap-6",children:[e&&(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 text-text/primary",children:e}),r&&(0,t.jsx)(k.RichText,{className:"text-text/secondary",baseTextStyle:"Body2Relaxed",children:r}),(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/padding/section-x md:flex-row",children:[(0,t.jsx)(k.RichText,{className:"text-text/secondary sm:flex-1",baseTextStyle:"Body2Relaxed",children:i}),s&&(0,t.jsxs)("div",{className:"order-first flex flex-col gap-spacing/gap/soft-12px overflow-hidden rounded-radius/card border border-borders/default p-spacing/padding/soft-12px bg-white sm:flex-1 md:order-none md:max-w-[--general-content-panel] md:self-start",children:[G&&(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)("div",{className:`w-full rounded-radius/button px-spacing/padding/soft-8px py-spacing/padding/soft-4px ${$}`,children:(0,t.jsx)("h4",{className:"mhg-alpha-typography-bullet-2",children:u})})}),(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-12px",children:[(0,t.jsxs)("div",{className:"flex items-center gap-spacing/gap/soft-12px",children:[q&&(0,t.jsx)("div",{className:"flex h-16 w-[101px] shrink-0 items-center justify-center rounded-[4px]",children:(0,t.jsx)(l.CmsImage,{unoptimized:!0,src:q,alt:s.product_name||"Product image",width:101,height:64,className:"size-full cursor-pointer object-contain",onClick:()=>_(!1)})}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-spacing/gap/soft-6px",children:[(0,t.jsx)("h3",{className:"mhg-alpha-typography-bullet-2 text-text/primary",children:s.product_name}),"singsaver"===x&&!0===h&&s?.rate_score&&(0,t.jsx)(M,{score:s?.rate_score,info:s?.rate_additional_information})]})]}),C.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-2 gap-spacing/gap/soft-12px",children:C.map((e,n)=>(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-4px",children:[(0,t.jsx)("p",{className:"mhg-alpha-typography-caption text-text/secondary-lighter",children:e.label}),(0,t.jsxs)("div",{className:"flex items-center gap-spacing/gap/soft-4px",children:[m&&0===n?(0,t.jsx)("span",{className:"mhg-alpha-typography-bullet-2 rounded-radius/tooltip px-spacing/padding/soft-8px py-spacing/padding/soft-4px bg-fill/primary-light text-text/accent",children:e.value}):(0,t.jsx)("p",{className:"mhg-alpha-typography-bullet-2 text-text/primary",children:e.value}),e.tooltip&&(0,t.jsx)(w.default,{infoClass:"!size-[--shapes-icon-size-sm] text-text/disabled",content:e.tooltip})]})]},e.id))}),(0,t.jsxs)("div",{className:"flex w-full gap-spacing/gap/soft-8px",children:[V&&(0,t.jsx)(O.default,{size:"small",variant:"outline",styleType:"neutral",className:"flex-1",onClick:W,children:b.view_details}),P&&(0,t.jsx)(O.default,{size:"small",variant:"outline",styleType:"cta",className:"flex-1",onClick:Y,children:z})]})]})]})]}),a&&(0,t.jsx)(k.RichText,{className:"text-text/secondary",baseTextStyle:"Body2Relaxed",children:a})]})}],999758);var z=e.i(444101);e.i(910881);var G=e.i(943032),V=e.i(531569),$=e.i(378058),Y=e.i(254098);let W=(0,j.staticText)({...Y.productRewardBadgeTranslationConfig,seeAll:{_:"See All",zh:"æ¥çææ","zh-hk":"æ¥çææ","zh-tw":"æ¥çææ"}}),q=({item:e,index:n,getBadgeCopy:a,getSharedAttributeData:r,renderApplyButton:i,renderViewDetailsButton:s})=>{let{product:o,override_badge:c}=e,d=a(o,c),u=r(o),p=s(o,n,!0),m=u.value?(0,t.jsxs)("div",{className:"flex items-center gap-spacing/gap/x-xs",children:[(0,t.jsx)("p",{className:"mhg-alpha-typography-bullet-2 text-text/primary",children:u.value}
6),u.tooltip&&(0,t.jsx)(w.default,{placement:"top",infoClass:"!size-[--shapes-icon-size-sm] text-text/disabled",content:u.tooltip})]}):null;return(0,t.jsxs)("article",{className:"flex h-full flex-col gap-spacing/gap/soft-12px","data-component":"multi-product-block-card","data-product-id":o.uid??o.entryUID,children:[d&&(0,t.jsx)("div",{className:"rounded-radius/button px-spacing/padding/soft-8px py-spacing/padding/soft-4px bg-fill/primary-light",children:(0,t.jsx)("div",{className:"mhg-alpha-typography-bullet-2 text-fill/primary-dark",children:d})}),(0,t.jsxs)("div",{className:"mt-auto flex items-center gap-spacing/gap/x-sm md:flex-col md:items-start lg:flex-row lg:items-center",children:[o.product_image&&(0,t.jsx)(l.CmsImage,{src:o.product_image,alt:o.product_name||"Product image",width:230,sizes:{_:230},height:127,loading:"lazy",className:"h-14 w-24 shrink-0 rounded-radius/button object-contain md:h-35 md:w-full lg:h-14 lg:w-24"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"mhg-alpha-typography-caption line-clamp-2 text-text/secondary-lighter",children:o.product_name}),u.value&&(0,t.jsx)("div",{className:"mt-spacing/padding/soft-4px md:mt-spacing/padding/soft-8px lg:mt-spacing/padding/soft-4px",children:m})]})]}),(0,t.jsxs)("div",{className:(0,g.default)("grid gap-spacing/gap/x-xs md:flex md:flex-col lg:grid",p?"grid-cols-2 lg:grid-cols-2":"grid-cols-1 lg:grid-cols-1"),children:[p&&(0,t.jsx)("div",{className:"md:order-2 lg:order-none",children:p}),(0,t.jsx)("div",{className:"md:order-1 lg:order-none",children:i(o,n,!0)})]})]})};var K=e.i(295750),Q=e.i(418081);let Z=({id:e,pageType:a,vertical:r,slug:l,title:i,products:s,see_all_copy:o,see_all_link:c,target:d,shared_product_attribute:u,placement:p="inline"})=>{let m=(0,K.useClientContext)(),{lang:h}
6=m,f=(0,Q.getClientTranslations)(W,m),{openModal:x}=(0,A.useProductBlockAsideModal)(),b=(0,n.useMemo)(()=>(s??[]).reduce((e,t)=>(!t?.product||e.length>=3||e.push({id:t.id??"",product:t.product,override_badge:t.override_badge}),e),[]),[s]);(0,n.useEffect)(()=>{b.length>0||"article"!==a||console.warn(`[MultiProductBlock:${e}] No published products found. Widget will not render.`)},[e,b.length,a]);let y=(0,n.useCallback)(e=>(0,V.getProductSharedAttributeData)(e,u?.name),[u?.name]),_=(0,n.useCallback)((e,t)=>(0,V.getProductRewardBadgeCopy)({product:e,staticText:f,vertical:r,overrideBadge:t}),[f,r]),v=(0,n.useCallback)((e,n,a=!0)=>{let r=(0,D.getApplyButtonLabel)((0,R.tr)("apply_now",h),void 0,e.call_to_action);return(0,t.jsx)(z.ApplyCtaLink,{product:e,target:"_blank",rel:"noopener noreferrer",className:a?"w-full":void 0,children:(0,t.jsx)(O.default,{size:"small",variant:"outline",styleType:"cta",className:a?"w-full":void 0,onClick:()=>{H.sessionAttributionTracker.recordApplyClick(),(0,F.sendProductAnalytics)({action:F.UserActionEnum.CLICK,componentTitle:"Product Card/CTA_Apply Now",componentType:F.ComponentTypeEnum.PRODUCT_CARD,event:"product_click_apply",index:n.toString(),url:l,product:e,pushDataLayer:$.pushDataLayer})},children:r})})},[h,l]),T=(0,n.useCallback)((e,n,a=!0)=>e.url_alias&&(e=>{if(!e)return!1;if(e.description?.trim()||e.long_description?.trim()||(e.rate_score??0)>=1||[...e.welcome_offers??[],...e.exclusive_offers??[],...e.bundle_exclusive_offers??[]].filter(Boolean).length)return!0;let{benefits:t,eligibility:n,fees:a,repayment:r}=(0,I.groupProductAttributes)(e);return!!t.length||!!n.length||!!a.length||!!r.length||(e.attributes??[]).some(e=>{if(e?.__typename==="ComponentAttributesAttrPaymentType"||e?.__typename==="ComponentAttributesAttrPaymentNetwork")return Array.isArray(e.value)&&e.value.length>0;if(e?.__typename==="ComponentAttributesAttrKeyValue")return e.name?.name!=="BUNDLE_PRODUCT_OPTIONS"&&(e.value??[]).some(e=>(e?.values??[]).some(e=>!!e?.value));return!1})})(e)?(0,t.jsx)(O.default,{size:"small",variant:"outline",styleType:"neutral-light-and-blue",className:a?"w-full":void 0,onClick:()=>{(0,F.sendProductAnalytics)({action:F.UserActionEnum.CLICK,componentTitle:"Product Card/Footer_View Details",componentType:F.ComponentTypeEnum.PRODUCT_CARD,event:"product_interaction",index:n.toString(),url:l,product:e,pushDataLayer:$.pushDataLayer}),e.url_alias&&x(e.url_alias,null)},children:(0,R.tr)("spotlight_details",h)}):null,[h,x,l]),E=(0,n.useMemo)(()=>o?.trim()?o.trim():f.seeAll,[o,f.seeAll]),N=(0,n.useCallback)(e=>c?.trim()&&E?(0,t.jsxs)(C.FeLink,{href:c,target:"NEW_TAB"===d?"_blank":"_self",rel:"NEW_TAB"===d?"noopener noreferrer":void 0,className:(0,g.default)("mhg-alpha-typography-button-small inline-flex items-center gap-1 underline text-text/link",e),children:[E,(0,t.jsx)(G.MaterialIcon,{icon:"arrow_right_alt",px:18,className:"size-4"})]}):null,[E,c,d]),k=(0,t.jsxs)("section",{className:"w-full","data-component":"multi-product-block",children:[(0,t.jsxs)("div",{className:"mb-spacing/gap/y flex items-start justify-between gap-spacing/gap/soft-12px",children:[(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 text-text/primary",children:i}),(0,t.jsx)("div",{className:"hidden md:block lg:hidden",children:N("whitespace-nowrap")})]}),(0,t.jsx)("div",{className:"rounded-radius/card border border-borders/default bg-fill/base md:bg-fill/card",children:(0,t.jsx)("div",{className:"flex flex-col md:grid md:grid-cols-3 lg:flex lg:flex-col",children:b.map((e,n)=>(0,t.jsx)("div",{className:(0,g.default)("border-b border-borders/default p-spacing/padding/soft-12px md:border-b-0 md:border-r lg:border-b lg:border-r-0",{"border-b-0 md:border-r-0 lg:border-b-0":n===b.length-1}),children:(0,t.jsx)(q,{item:e,index:n,getBadgeCopy:_,getSharedAttributeData:y,renderApplyButton:v,renderViewDetailsButton:T})},`${e.product.uid??e.id??e.product.title??n}`))})}),(0,t.jsx)("div",{className:"mt-spacing/gap/y md:hidden lg:block",children:N()})]});return"article"!==a||0===b.length?null:(0,t.jsx)("div",{className:{inline:"mb-spacing/gap/y lg:hidden","right-rail":"mb-spacing/gap/y hidden lg:block"}[p],children:k})},X=e=>"ComponentPagesComponentMultiProductBlockComponent"===e.__typename,J=e=>{let{block:t,pageType:n,placement:a}=e,r=t.visible,l=!1!==t.visibility_desktop,i=!1!==t.visibility_mobile;return!1!==r&&"article"===n&&("right-rail"===a?l:i)};e.s(["MultiProductBlockWrapper",0,e=>{if("single"===e.mode){let n=e.placement??"inline";return J({block:e.block,pageType:e.pageType,placement:n})?(0,t.jsx)(Z,{...e.block,pageType:e.pageType,vertical:e.vertical,slug:e.slug,placement:n}):null}let a=e.components.filter(X).filter(t=>J({block:t,pageType:e.pageType,placement:e.placement}));return(0,t.jsx)(t.Fragment,{children:a.map((a,r)=>
6(0,t.jsx)(n.Fragment,{children:(0,t.jsx)(Z,{...a,pageType:e.pageType,vertical:e.vertical,slug:e.slug,placement:e.placement})},`${a.id??r}`))})}],763302),e.s(["PortalPlace",0,({typename:e,vertical:a,baseComponents:r,extraStickyIds:l,id:i,zOffset:s=0,fullWide:o})=>{let c,d,u=(0,n.useRef)(null),[p,m]=(0,n.useState)(!1),[h,f]=(0,n.useState)(0),x=(c=["ComparisonTable","CardListingPosition"],r.forEach((e,t)=>{let n=e.__typename?.replace("ComponentPagesComponent","");n&&c.includes(n)&&(d=t.toString())}),d),b=p&&!s;return((0,n.useEffect)(()=>{let e,t=u.current,n=document.getElementById("top-page-sticky-content");if(!t)return;let r=e=>new IntersectionObserver(([n])=>{if(m(n.boundingClientRect.top<=e),!o){let e=b?`${document.body.clientWidth}px`:"auto",a=b?`${n.boundingClientRect.left}px`:"0";t.style.paddingLeft=a,t.style.marginLeft=`-${a}`,t.style.width=e}},{root:null,threshold:0,rootMargin:`${-e}px 0px -100% 0px`}),i=()=>{let e=0;return n&&"PERSONAL_LOANS"!==a&&(e+=n.offsetHeight),l&&l.length>0&&l.forEach(t=>{let n=document.getElementById(t);n&&(e+=n.offsetHeight)}),e},s=()=>{let n=i();n!==h&&(f(n),e?.disconnect(),e=r(n),t&&e.observe(t))},c=i();f(c),(e=r(c)).observe(t);let d=null,p=null,g=[n].filter(Boolean);return l&&l.length>0&&l.forEach(e=>{let t=document.getElementById(e);t&&g.push(t)}),g.length&&(d=new ResizeObserver(s),p=new MutationObserver(s),g.forEach(e=>{d?.observe(e),p?.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]})})),()=>{e?.disconnect(),d?.disconnect(),p?.disconnect()}},[h,a,l,b,o]),(0,n.useEffect)(()=>{if(!x)return;let e=u.current,t=document.getElementById(`content-${x}`);if(!t||!e)return;let n=window.scrollY,a=!1,r=()=>{let e=window.scrollY;a=e>n,n=e};window.addEventListener("scroll",r,{passive:!0});let l=new IntersectionObserver(t=>{t.forEach(t=>{let{bottom:n}=t.boundingClientRect;a&&n<=0?e.classList.add("hidden"):a||e.classList.remove("hidden")})},{threshold:[0,.1,.2,.5,.9,1]});return l.observe(t),()=>{window.removeEventListener("scroll",r),l.disconnect()}},[x]),"PERSONAL_LOANS"!==a||"ComponentPagesComponentComparisonTable"!==e&&"ComponentPagesComponentSelectedProducts"!==e&&"ComponentPagesComponentCardListingPosition"!==e)?null:(0,t.jsx)("div",{ref:u,id:i,style:{top:`${h}px`,paddingInline:o&&b?"max(var(--spacing-padding-section-x), var(--personal-loan-filter-offset))":"",...{"--personal-loan-filter-offset":"calc((100% - var(--breakpoints-content-narrow-3-lg)) / 2)"}},className:(0,g.default)({"shadow-md":b},{"z-[var(--z-index-personal-filter)]":0===s,"z-[calc(var(--z-index-personal-filter)_+_1)]":1===s,"px-spacing/padding/section-x max-w-[--breakpoints-content-narrow-3-lg] w-full mx-auto lg:px-0":!!o&&!b,"w-full":!!o&&b},"bg-fill/base","[&>*:first-child]:flex [&>*]:hidden","sticky -mb-spacing/gap/y","transition-shadow duration-300")})}],971588),e.s(["PrefilledBlock",()=>et],994088);var ee=e.i(679137);let et=({block:e,vertical:n,slug:a,pageType:r,ContentContainer:l,urlPrefix:i})=>(0,t.jsx)(ee.BlockMapper,{slug:a,pageType:r,vertical:n,components:e?.default_components?.filter(e=>!!e)??[],ContentContainer:l,urlPrefix:i});e.i(882578);var en=e.i(976728),ea=e.i(902639),er=e.i(648326),el=e.i(899824);let ei=["{First Name}","{Discount}","{Brand}"];e.s(["ProgressStepperWrapper",0,({completedSteps:e,greetings:n})=>{let a,{pageData:{policySummary:r}}=(0,ea.usePageDataContext)();return r?.status==="ready"&&r.data&&(a=((e,t)=>{if(!e)return e;let n={"{First Name}":t?.firstName??"","{Discount}":t?.data?(0,el.formatDiscountPct)(t.data.basePremium,t.data.collectionAmount)??"":"","{Brand}":t?.data?.carrierName??""};return ei.reduce((e,t)=>e.split(t).join(n[t]),e)})((0,er.pickDeliveryNoteHtml)(n,r.isPending?"manual_underwriting":"success",r.data.carrierCode),r)),(0,t.jsx)(en.PurchaseSuccessStepper,{completedSteps:e,greetingHtml:a})}],953193);var es=e.i(225336);e.i(4446);var eo=e.i(81476),ec=e.i(831750),ed=e.i(366420);e.i(739736);var eu=e.i(598237),ep=e.i(329344),em=e.i(192766),eh=e.i(862119);let ef=e=>new Promise(t=>setTimeout(t,e));function eg(e){let{pageData:{moduleTravelQuotes:t},setModuleTravelQuotes:a}=(0,ea.usePageDataContext)(),r=t?.[e],l=(0,n.useRef)({quotes:r,setModuleTravelQuotes:a});l.current={quotes:r,setModuleTravelQuotes:a},(0,n.useEffect)(()=>{let t=l.current.quotes,n=t?.params;if(!t?.isBackendData||"success"===t.status||!n)return;let a=!1;return(async()=>{let t="inprogress";for(;"inprogress"===t&&!a;){if(await ef(1500),a)return;try{let r=await eh.feApiFrontClient.travelCompareQuotes(n);if(a)return;t=r.status,l.current.setModuleTravelQuotes(e,{premiums:r.data,status:r.status,params:n})}catch{if(a)return;t="fail",l.current.setModuleTravelQuotes(e,{premiums:l.current.quotes?.premiums,status:"fail",params:n})}}})(),()=>{a=!0}},[e])}e.i(25375);var ex=e.i(784626),eb=e.i(191133);function ey(e){let{brand:a,langPrefix:r}=(0,K.useClientContext)(),{products:l,vertical:i,blockIndex:s,slug:o,baseColumnOrders:c,...d}=e,{openModal:u}=(0,A.useProductBlockAsideModal)(),{openModal:p}=(0,ed.default)(),{publicCmsConfig:m,pageData:h}=(0,ea.usePageDataContext)(),f=(0,ep.useCmsCalculationData)(),g=d.id??"";eg(g);let x=h.moduleTravelQuotes?.[g],b=(0,n.useMemo)(()=>({travelQuotesData:x??f.travelQuotesData}),[x,f.travelQuotesData]),y="singsaver"===a||"moneyhero"===a,_=!!c?.some(e=>"APPROVAL_ODDS"===e.keyColumn),{data:v,sendConsent:C}=(0,ex.useApprovalOdds)(l,y&&_,r),{onRetrieveApprovalOdds:T,oddsConsentModal:E}=(0,eb.useApprovalOddsRetrieval)({approvalOddsData:v,sendConsent:C,langPrefix:r,chcBaseUrl:m.chcBaseUrl});if(!y)return null;let N=`QuickAnswer_${s??0}`;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eu.CmsCalculationDataProvider,{value:b,children:(0,t.jsx)(eo.QuickAnswer,{...d,products:l,vertical:i,slug:o,baseColumnOrders:c,approvalOddsData:v??void 0,onApprovalOddsUnlockCl
6ick:T,onProductClick:(e,t)=>{e.url_alias&&((0,F.sendProductAnalytics)({action:F.UserActionEnum.CLICK,componentTitle:"Product List/Quick Answer_See all Details",componentType:F.ComponentTypeEnum.TABLE,event:"product_interaction",index:t.toString(),product:e,url:o,pushDataLayer:$.pushDataLayer}),u(e.url_alias,null))},onRewardCellClick:(e,t,n)=>{(e.preventDefault(),e.stopPropagation(),(0,F.sendProductAnalytics)({action:F.UserActionEnum.CLICK,componentTitle:"Product List/QuickAnswer_Reward",componentType:F.ComponentTypeEnum.TABLE,event:"sendAnalytics",index:n.toString(),product:t,url:o,pushDataLayer:$.pushDataLayer}),"PERSONAL_LOANS"===i&&(t.welcome_offers?.length||t.exclusive_offers?.length))?p(t.uid??"",N):t.url_alias&&u(t.url_alias,es.SingSaverRewardsSectionId)},pushDataLayer:$.pushDataLayer})}),_?E:null,"PERSONAL_LOANS"===i?l.filter((e,t)=>l.findIndex(t=>t.uid===e.uid)===t&&(e.welcome_offers?.length||e.exclusive_offers?.length)).map(e=>{let n=(0,em.filterOffersByAmountAndTenure)(e.welcome_offers??[]),a=(0,em.filterOffersByAmountAndTenure)(e.exclusive_offers??[]);return(0,t.jsx)("div",{children:(0,t.jsx)(ec.default,{welcomeOffers:n,exclusiveOffers:a,loanSearchParams:{},product:e,keyFromComponent:N,vertical:i,pushDataLayer:$.pushDataLayer,ctaLinkOverride:void 0,carInsuranceCtaComponent:null,priceLine:null})},e.uid)}):null]})}e.s(["QuickAnswerWrapper",()=>ey],950966),e.s(["SectionalHeader",0,({visible:e,title:r,subtitle:i,level:s="h2",image:o})=>{let c="sm"===(0,a.useBreakpoint)();if(!e)return null;let d=()=>n.default.createElement(s,{className:`mhg-alpha-typography-display-1 text-text/primary 7 ${c&&o?.url?"mb-spacing/gap/y-sm":""}`},r);return c?(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsxs)("div",{className:o?.url?"relative":"",children:[o?.url&&(0,t.jsx)("div",{className:"float-right ml-spacing/gap/x",style:{shapeOutside:"margin-box"},children:(0,t.jsx)(l.CmsImage,{unoptimized:!0,src:o.url,alt:"Sectional Header image",height:168,width:168,className:"size-32 object-cover"})}),d(),i&&(0,t.jsx)("p",{className:"mhg-alpha-typography-body-1 text-colors/neutral-gray-800 leading-relaxed",children:i})]})}):(0,t.jsxs)("div",{className:"flex flex-row items-start gap-spacing/gap/y",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/x",children:[d(),i&&(0,t.jsx)("span",{className:"mhg-alpha-typography-body-1 text-colors/neutral-gray-800 leading-line-height/body-1-relaxed",children:i})]}),o?.url&&(0,t.jsx)(l.CmsImage,{unoptimized:!0,src:o.url,alt:"Sectional Header image",height:168,width:168,className:"size-42 object-cover"})]})}],107641),e.i(477173);var e_=e.i(824146),ev=e.i(185775),eC=e.i(718942);function eT(e){let{vertical:n,loanSearchParams:a}=e,{brand:r}=(0,K.useClientContext)(),l="PERSONAL_LOANS"===n?(0,ev.getLoanSearchParamsWithDefaultComponentParam)(r,a):void 0,{loanSearchParams:i}=(0,eC.useLoanSearchParams)(l??{});return(0,t.jsx)(e_.SingleProductPromotion,{...e,loanSearchParams:i})}e.s(["SingleProductPromotionWrapper",()=>eT],58129);var eE=e.i(928441);let eN=function({className:e}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M11.25 12.75H5.5V11.25H11.25V5.5H12.75V11.25H18.5V12.75H12.75V18.5H11.25V12.75Z"})})},eA=function({className:e}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:e,children:[(0,t.jsx)("mask",{id:"mask0_16452_3927",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,t.jsx)("g",{mask:"url(#mask0_16452_3927)",children:(0,t.jsx)("path",{d:"M5.5 12.75V11.25H18.5V12.75H5.5Z",fill:"#1C1B1F"})})]})},ek=({title:e,collapsible:a=!1,collapsedDefault:r=!1,listType:l,items:i,index:s})=>{let[o,c]=(0,n.useState)(r),u=(0,K.useClientContext)(),p=(0,Q.getClientTranslations)(eE.TRANSLATIONS,u),m=l===d.EnumSummaryProductsListType.BulletList?"list-disc":"list-decimal";return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:`flex w-full items-center justify-between ${!o?"pb-spacing/gap/soft-12px":""}`,children:a&&(0,t.jsx)("button",{type:"button",className:"cursor-pointer",onClick:()=>{a&&((0,$.pushDataLayer)({event:"navigate",component_type:"accordion",component_title:e,action:o?"expand":"collapse",index:s}),c(!o))},children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-1",children:[o?(0,t.jsx)(eN,{
7className:"size-[--shapes-icon-size-md]"}):(0,t.jsx)(eA,{className:"size-[--shapes-icon-size-md]"}),(0,t.jsx)("h3",{className:"mhg-alpha-typography-bullet-1 underline text-gray-900",children:o?e:p.hide_summary})]})})}),(!a||!o)&&(0,t.jsx)("ul",{className:`flex list-outside pl-[22px] md:pl-6 ${m} flex-col gap-[--spacing-gap-soft-8px] px-[--spacing-gap-soft-8px] marker:font-semibold marker:text-gray-800`,children:i.map(({id:e,title:n,description:a,anchorId:r,visibleMobile:l})=>(0,t.jsxs)("li",{className:(0,g.default)("hover:underline",{"hidden md:block":!l}),children:[(0,t.jsx)(C.FeLink,{href:`#${r}`,onClick:()=>{let e;(e=document.getElementById(r))&&e.scrollIntoView({behavior:"smooth"})},className:"mhg-alpha-typography-bullet-1 mhg-alpha-how-it-work-text-link",children:n}),a&&(0,t.jsx)("span",{className:"mhg-alpha-typography-body-1 text-text/secondary",children:`: ${a}`})]},e??r))})]})};e.s(["default",0,({metadata:e,summaryConfig:n})=>{let a=e?.product_card??[],{titleReq:r,collapsible:l,collapsed_default:i,listType:s}=n,o=a.filter(e=>e.visible).map(e=>({id:e?.productBlock?.product?.uid,title:e?.productBlock?.product?.product_name,description:`${e?.productBlock?.text_tag}`,anchorId:`anchor-card-${e?.productBlock?.product?.uid}`,visibleMobile:e.visible_mobile}));return(0,t.jsx)(ek,{title:r??"",collapsible:l,collapsedDefault:i,listType:s,items:o})}],69049),e.s(["TableOfContents",0,({selected_blocks:e,titleReq:a,listType:r,collapsible:l,collapsed_default:i,components:s})=>{let o=n.default.useMemo(()=>new Set(s.filter(e=>"ComponentPagesComponentTableBuilderComponent"===e.__typename).map(e=>e.anchorId?.trim()).filter(e=>!!e)),[s]),c=e?.map(e=>({id:e?.index,title:e?.link_text,description:e?.description,anchorId:(({itemAnchor:e,index:t,tableBuilderAnchorIds:n})=>{let a=e?.trim();return a?n.has(a)?a:`anchor-${a}`:void 0===t?"content":`content-${t}`})({itemAnchor:e?.item_acnhor,index:e?.index,tableBuilderAnchorIds:o})}))??[];return(0,t.jsx)(ek,{title:a,collapsible:l,collapsedDefault:i,listType:r,items:c})}],939746),e.i(178457);var ew=e.i(318653);e.s(["TableBuilderWrapper",0,e=>{let{brand:a}=(0,K.useClientContext)(),r=(0,ep.useCmsCalculationData)(),{pageData:{moduleTravelQuotes:l,modulePersonalLoanCalculations:i}}=(0,ea.usePageDataContext)();eg(e.id);let s="PERSONAL_LOAN"===e.mode,{loanSearchParams:o}=(0,eC.useLoanSearchParams)((0,ev.getLoanSearchParamsWithDefaultComponentParam)(a)),c=(0,n.useMemo)(()=>(0,ev.getLoanSearchParamsWithDefaultComponentParam)(a,void 0,{amount:e.loanAmount?.toString(),tenure:e.loanTenure?.toString()}),[a,e.loanAmount,e.loanTenure]),d=l?.[e.id],u=i?.[e.id],p=(0,n.useMemo)(()=>({travelQuotesData:d??r.travelQuotesData,personalLoanCalculations:u}),[r.travelQuotesData,d,u]);return(0,t.jsx)(eu.CmsCalculationDataProvider,{value:p,children:(0,t.jsx)(ew.TableBuilder,{...e,loanSearchParams:s?c:o})})}],375133);var eS=e.i(553733),eI=e.i(400226);e.i(17710);var eD=e.i(902894);e.i(328419);var eL=e.i(789450);let ej=[{id:"faq",translationKey:"pd_nav_faq"},{id:"similar-plans",translationKey:"pd_nav_similar_plans"},{id:"reviews",translationKey:"pd_nav_reviews"}];var eP=e.i(325031),eM=e.i(57509),eO=e.i(659670);let eR=({tiers:e,selectedTierId:a,activeTierName:r,onSelect:l,staticText:i})=>{let[s,o]=(0,n.useState)(!1),c=(0,n.useRef)(null),d=(0,n.useRef)(null);if((0,n.useEffect)(()=>{if(!s)return;let e=e=>{c.current?.contains(e.target)||o(!1)},t=e=>{"Escape"===e.key&&(o(!1),d.current?.focus())};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[s]),!r)return null;let u=(0,eL.tr)("pd_nav_viewing_details",i,{"product-tier":r});return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 border-b border-borders/default py-spacing/padding/y-sm",children:[(0,t.jsx)("span",{className:"mhg-alpha-typography-body-2 min-w-0 truncate text-text/secondary-lighter",children:u}),e.length>1&&(0,t.jsxs)("div",{ref:c,className:"relative shrink-0",children:[(0,t.jsxs)("button",{ref:d,type:"button","aria-haspopup":"menu","aria-expanded":s,onClick:()=>o(e=>!e),className:"mhg-alpha-tag-font flex items-center gap-spacing/gap/soft-8px rounded-sm border border-borders/default px-spacing/padding/x py-spacing/padding/y-xs text-text/primary",children:[r,(0,t.jsx)(G.MaterialIcon,{icon:"expand_less",className:(0,g.default)("transition-transform",{"rotate-0":s,"rotate-180":!s})})]}),s&&(0,t.jsx)("ul",{role:"menu",className:"absolute right-0 top-full z-10 mt-1 min-w-max overflow-hidden rounded-sm border border-borders/default bg-fill/alternative-1",children:e.map(e=>(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",role:"menuitemradio","aria-checked":e.id===a,className:"mhg-alpha-tag-font w-full px-spacing/padding/x py-spacing/padding/y text-left",onClick:()=>{l(e.id),o(!1)},children:e.name})},e.id))})]})]})},eB=e=>{let{brand:a,lang:r}=(0,K.useClientContext)(),{pageData:l}=(0,ea.usePageDataContext)(),i=(0,L.getClientTranslations)(eI.BaseTranslations,{brand:a,lang:r}),s=l.page.components?.find(e=>e?.__typename==="ComponentPagesComponentPlanTierSelectorComponent"),{tiers:o,selectedTierId:c,activeProduct:d,activeTierName:u,setSelectedTier:p}=(0,eO.useTiTiers)(s),m=(()=>{let{brand:e,lang:t}=(0,K.useClientContext)(),a=(0,L.getClientTranslations)(eI.BaseTranslations,{brand:e,lang:t}
7),[r,l]=(0,n.useState)([]);return(0,n.useEffect)(()=>{let e=()=>{let e=ej.filter(e=>{let t;return null!==document.getElementById((t=e.id,`section-${t}`))}).map(e=>e.id);l(t=>t.length===e.length&&t.every((t,n)=>t===e[n])?t:e)};return e(),window.addEventListener("resize",e,{passive:!0}),()=>window.removeEventListener("resize",e)},[]),ej.filter(e=>r.includes(e.id)).map(e=>({id:e.id,label:(0,eL.tr)(e.translationKey,a)}))})(),h=(0,eM.useClaimStickyTopSlot)(),[f,g]=(0,n.useState)(!1),x=(0,n.useRef)(null),b=(0,n.useCallback)(e=>{h(e),g(e)},[h]),y=(0,n.useCallback)(({children:e})=>(0,t.jsx)(eP.GlobalStickyPanel,{enabled:!0,offsetPx:0,pinnedClassName:"bg-fill/alternative-1 product-details-shadow",onPinnedChange:b,children:e}),[b]),{pushDataLayer:_}=e,v=(0,n.useCallback)(e=>{p(e);let t=o.findIndex(t=>t.id===e),n=t>=0?o[t]:void 0;n&&_&&_({event:"navigate",component_type:F.ComponentTypeEnum.DROPDOWN,component_title:`Sticky Section Nav/Product Variant_${n.name}`,action:F.UserActionEnum.SELECT,index:t})},[p,o,_]);if("singsaver"!==a&&"moneyhero"!==a||!s)return null;let C=s.provider?.providerName??void 0,T=o.length>0?(0,t.jsx)(eR,{tiers:o.map(e=>({id:e.id,name:e.name})),selectedTierId:c,activeTierName:u,onSelect:v,staticText:i}):void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:x,children:(0,t.jsx)(eS.ProductDetails,{...e,product:d,vertical:"TRAVEL_INSURANCE",stickyOffset:96,tierSlot:T,siblingNavigationItems:m,navStickyContainer:y,navPinned:f})}),d&&(0,t.jsx)("div",{"aria-hidden":!0,className:"h-24 md:h-20"}),(0,t.jsx)(eD.StickyFooterCta,{product:d,tierName:u,providerName:C,footerRef:x,pushDataLayer:_})]})};e.s(["ProductDetailsBlock",0,e=>"TI_PROVIDER"===e.renderingMode?(0,t.jsx)(eB,{...e}):(0,t.jsx)(eS.ProductDetails,{...e})],204263),e.i(804913);var eF=e.i(674686);let eH=()=>{let e=Array.from(document.querySelectorAll("header, nav, .sticky, .fixed"));if(!e.length)return 0;let t=window.innerWidth/2,n=e.map(e=>({element:e,rect:e.getBoundingClientRect(),position:window.getComputedStyle(e).position})).filter(({rect:e,position:n})=>("fixed"===n||"sticky"===n)&&e.bottom>0&&e.top<window.innerHeight&&e.left<=t&&e.right>=t).sort((e,t)=>e.rect.top-t.rect.top);if(!n.length)return 0;let a=0;return n.forEach(({rect:e})=>{e.top<=a+1&&(a=Math.max(a,e.bottom))}),Math.max(0,a)};e.s(["AnchorStickyFooterComponent",0,({visible:e=!0,icon:a,items:r})=>{let{brand:l}=(0,K.useClientContext)(),i=(0,eF.useBreakpoint)({_:"_",sm:"sm",md:"md",lg:"lg",xl:"xl",xxl:"xxl"}),[s,o]=(0,n.useState)(null),[c,d]=(0,n.useState)(!1),[u,p]=(0,n.useState)(!1),[m,h]=(0,n.useState)(0),f=(0,n.useRef)(null),x=(0,n.useRef)(null),b=(0,n.useRef)(null),y=(0,n.useRef)(new Set),_=(0,n.useRef)(!1),v=(0,n.useRef)(null),C=!!a,T=(0,n.useMemo)(()=>(r??[]).filter(Boolean).map((e,t)=>({id:e?.id??`${t}`,anchorId:e?.anchor_to?.trim()??"",targetId:(e=>{let t=e.trim();if(!t)return"";if(/^content-\d+$/.test(t))return t;let n=t.match(/_(\d+)$/);return n?`content-${n[1]}`:t})(e?.anchor_to?.trim()??""),label:e?.label?.trim()??"",iconName:C?e?.material_icon:void 0,index:t})).filter(e=>e.anchorId&&e.targetId&&e.label),[C,r]);if((0,n.useEffect)(()=>{b.current=s},[s]),(0,n.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>p(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,n.useEffect)(()=>{let e=()=>{d((window.scrollY||document.documentElement.scrollTop)>10)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,n.useEffect)(()=>{let e=()=>{_.current&&(v.current&&window.clearTimeout(v.current),v.current=window.setTimeout(()=>{_.current=!1,v.current=null},150))};return window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e),v.current&&window.clearTimeout(v.current)}},[]),(0,n.useEffect)(()=>{let e=0,t=()=>{e||(e=window.requestAnimationFrame(()=>{e=0,h(eH())}))};return h(eH()),window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",t),window.removeEventListener("resize",t),e&&window.cancelAnimationFrame(e)}},[]),(0,n.useEffect)(()=>
7{if(!("IntersectionObserver"in window)||!T.length)return;let e=T.map(e=>{let t=document.getElementById(e.targetId);return t||(console.warn(`AnchorStickyFooter: missing anchor target for ${e.targetId}`),null)}).filter(Boolean);if(e.length)return f.current?.disconnect(),y.current.clear(),f.current=new IntersectionObserver(e=>{if(_.current)return;e.forEach(e=>{let t=e.target.id;t&&(e.isIntersecting?y.current.add(t):y.current.delete(t))});let t=e.filter(e=>e.isIntersecting).sort((e,t)=>{let n=Math.abs(e.boundingClientRect.top),a=Math.abs(t.boundingClientRect.top);return n===a?t.intersectionRatio-e.intersectionRatio:n-a});if(!t.length){!y.current.size&&b.current&&o(null);return}let n=t[0].target.id;n&&b.current!==n&&(x.current&&window.clearTimeout(x.current),x.current=window.setTimeout(()=>{let e=T.find(e=>e.targetId===n);e&&b.current!==n&&(o(n),(0,$.pushDataLayer)({event:"anchor-footer.autoselect",label:e.label,anchorId:e.anchorId,index:e.index}))},75))},{rootMargin:`${-m}px 0px 0px 0px`,threshold:[0,.25,.5,.75,1]}),e.forEach(e=>f.current?.observe(e)),()=>{f.current?.disconnect(),y.current?.clear(),x.current&&window.clearTimeout(x.current)}},[T,m]),!e||!T.length)return null;let E=c||!!s;return(0,t.jsx)("div",{className:(0,g.default)("group fixed bottom-0 left-0 z-[60] w-full shadow-[0px_0px_12px_0px_rgba(0,0,0,0.15)] backdrop-blur-sm transition-all duration-300 ease-out bg-white/80 lg:hover:bg-white",{"translate-y-0":E,"translate-y-full":!E}),"aria-hidden":!E,children:(0,t.jsx)("div",{className:"w-full px-4 pb-[calc(env(safe-area-inset-bottom)+12px)] pt-3 md:py-4 lg:px-6",children:(0,t.jsx)("div",{className:"mx-auto max-w-[--breakpoints-content-narrow-3-lg]",children:(0,t.jsx)("div",{className:(0,g.default)("flex w-full items-stretch rounded-[6px] border border-buttons/base p-[2px] transition-all bg-transparent md:rounded-[8px] md:p-1",{"lg:group-hover:border-borders/default":s}),children:T.map(e=>{let n=s===e.targetId;return(0,t.jsx)("button",{type:"button",className:(0,g.default)("group flex min-w-0 flex-1 items-center justify-center rounded-[6px] p-[2px] text-center transition-colors duration-150 md:rounded-[8px] md:px-1 md:py-[6px]","focus:outline-none focus-visible:outline-dashed focus-visible:outline-primary",n?"bg-fill/card lg:group-hover:bg-fill/primary-light":"bg-transparent lg:hover:bg-fill/alternative-2"),"aria-pressed":n,onClick:()=>(e=>{let t=document.getElementById(e.targetId);if(!t)return void console.warn(`AnchorStickyFooter: missing anchor target for ${e.targetId}`);_.current=!0;let n=m||eH(),a=t.getBoundingClientRect().top+window.scrollY-n;window.scrollTo({top:a,behavior:u?"auto":"smooth"}),o(e.targetId),(0,$.pushDataLayer)({event:"anchor-footer.click",page:window.location.pathname,brand:l,label:e.label,anchorId:e.anchorId,index:e.index,iconEnabled:C,viewportBreakpoint:i})})(e),children:(0,t.jsxs)("span",{className:(0,g.default)("flex min-w-0 items-center",{"flex-col gap-px md:gap-spacing/gap/soft-4px lg:flex-row lg:gap-spacing/gap/soft-4px":C,"justify-center":!C}),children:[C&&e.iconName&&(0,t.jsx)(G.MaterialIcon,{icon:e.iconName,className:"text-buttons/neutral-dark text-[18px] md:text-[24px]"}),(0,t.jsx)("span",{className:"md:mhg-alpha-typography-button-1 min-w-0 truncate text-center font-font-weight/button-1 text-buttons/neutral-dark text-[12px] leading-[16px]",children:e.label})]})},e.id)})})})})})}],277687)},863821,e=>{"use strict";e.s(["getFirstOrSecond",0,(e,t)=>e||(t??"")])},679137,58492,e=>{"use strict";e.s(["BlockMapper",()=>tS],679137);var t=e.i(843476);e.i(413990);var n=e.i(620069),a=e.i(576534),r=e.i(592603),l=e.i(396466),i=e.i(471054),s=e.i(752e3),o=e.i(878231);e.i(673827);var c=e.i(991879);e.i(555471);var d=e.i(530391),u=e.i(633499),p=e.i(343794),m=e.i(579672),h=e.i(271645),f=e.i(295750),g=e.i(587069),x=e.i(334037),b=e.i(617681),y=e.i(686672),_=e.i(878942),v=e.i(272702),C=e.i(557581),T=e.i(561160),E=e.i(680123),N=e.i(809656),A=e.i(440711),k=e.i(862008),w=e.i(919503),S=e.i(917692),I=e.i(477503),D=e.i(872574),L=e.i(345063),j=e.i(160850),P=e.i(743043),M=e.i(717133),O=e.i(792042);e.i(538789);var R=e.i(598883),B=e.i(732501),F=e.i(825766),H=e.i(435005),U=e.i(734403),z=e.i(14346),G=e.i(504997),V=e.i(611198),$=e.i(43489),Y=e.i(631626),W=e.i(429952),q=e.i(257187),K=e.i(126642),Q=e.i(783822),Z=e.i(144297),X=e.i(297476),J=e.i(64141),ee=e.i(962039),et=e.i(378058),en=e.i(257731),ea=e.i(445977),er=e.i(951353),el=e.i(315137),ei=e.i(133558),es=e.i(999758),eo=e.i(763302),ec=e.i(971588),ed=e.i(994088),eu=e.i(953193),ep=e.i(950966),em=e.i(107641),eh=e.i(58129),ef=e.i(69049),eg=e.i(939746),ex=e.i(375133),eb=e.i(501008),ey=e.i(204263),e_=e.i(277687),ev=e.i(770703),eC=e.i(278467),eT=e.i(192766),eE=e.i(185775),eN=e.i(718942),eA=e.i(928441),ek=e.i(758058),ew=e.i(863821),eS=e.i(22533
76);e.i(201542);var eI=e.i(77719),eD=e.i(811015),eL=e.i(366420),ej=e.i(478082),eP=e.i(218646),eM=e.i(981274);e.i(271210);var eO=e.i(686148);e.i(880723);var eR=e.i(227082),eB=e.i(904942);e.i(659860);var eF=e.i(43185),eH=e.i(443036);let eU=(0,eO.staticText)({apply:{_:"Apply by :formattedDate to claim your reward","zh-hk":":formattedDateåç³è«å¯äº«ä»¥ä¸åªæ :","zh-tw":"æ¼ :formattedDate åç³è¾¦åéæå®é檻享以ä¸åªæ ï¼"}}),ez=({gifts:e,untilDate:n,singleProduct:a,vertical:r,blockIndex:l})=>{let i=(0,eM.useLocaleSpecificClient)(eU.apply),{lang:s}=(0,f.useClientContext)(),o=eH.CONTENT_MHG.get(s),{openModal:c,closeModal:d}=(0,eI.useProductBlockAsideModal)(),{openModal:u}=(0,eL.default)(),m=`Campaign_${l??"undefined"}`,g=(0,ej.formatData)(n,"MMM dd, yyyy",s),x=(0,h.useCallback)(()=>{if(a){if("PERSONAL_LOANS"===r&&(a.welcome_offers?.length||a.exclusive_offers?.length))return void u(a.uid??"",m);a.url_alias?c(a.url_alias,eS.SingSaverRewardsSectionId):d()}},[d,c,u,m,a,r]),b=!!a,y=(0,h.useMemo)(()=>e??[],[e]),_=(0,h.useMemo)(()=>y.map((e,n)=>{let a;if(!e||!e)return null;let r=e.gift_value;if(!r)return null;let l=r?.topup_label&&r?.topup_amount?`${r.topup_label} ${(0,eF.currencyFormat)(r.prefix)}${eP.currencyFormatterNoDecimal.format(r.topup_amount)}`:"",i=r.price?`${o.worth} ${(0,eF.currencyFormat)(r.prefix)}${eP.currencyFormatterNoDecimal.format(r.price??0)}`:"",c=e.gift_title??e.uid??`gift-${n}`,d=(0,t.jsx)(eD.RewardThumbnail,{"data-gift-uid":e.uid,tooltip:e.gift_title,title:i,subtitle:l,image:e.mobile_image,rewardThumbnailSizeClasses:(0,p.default)("h-32 w-[105px] md:h-36 md:w-[138px] xl:h-36 xl:w-[141px]"),tagText:(a=r?.urgency_label)||(0,eB.getUrgencyPhase)(s,e.startDate,e.endDate)?.value,urgentTagText:!!r?.urgency_label});return b?(0,t.jsx)("button",{type:"button",onClick:x,className:"text-left","aria-label":e.gift_title||i||"View rewards",children:d},c):(0,t.jsx)(h.Fragment,{children:d},c)}),[y,x,b,o.worth,s]);return(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mhg-alpha-typography-bullet-2 md:mhg-alpha-typography-bullet-1 mt-padding/y-md mb-0 text-colors/neutral-gray-900 lg:mb-spacing/padding/soft-8px",children:(0,eC.tr)(i??"",s,{formattedDate:g??""})}),(0,t.jsx)("div",{className:"hidden gap-spacing/gap/soft-8px lg:grid lg:grid-cols-3",children:_}),(0,t.jsx)(eR.FeCarousel,{swiperPropsOverride:{pagination:!0,centeredSlides:!1,slidesPerView:"auto",spaceBetween:6,breakpoints:{768:{spaceBetween:8}}},swiperNestedClassNames:"!h-[142px] md:!h-[160px]",swiperWrapperClassNames:"items-start",swiperClassNames:"lg:hidden w-full relative mt-padding/y-sm",slideClassNames:"flex !h-auto !w-auto flex-col",navigationWrapperClassNames:"hidden 1280:block",children:_})]})};var eG=e.i(597120);let eV=(0,eO.staticText)({howTo:{_:"How to Qualify?","zh-hk":"å¦ä½åå ","zh-tw":"æ´»å詳æ
"}}),e$=e=>{let n=(0,eM.useLocaleSpecificClient)(eV.howTo);return(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-12px",children:[(0,t.jsx)("h4",{className:"mhg-alpha-typography-bullet-1",children:n}),(0,t.jsx)(eG.RawHtml,{className:"cms-rich-text max-w-full !text-font-size/body-1 !leading-line-height/body-1-relaxed",content:e.text})]})};e.i(397031);var eY=e.i(271159),eW=e.i(831750);let eq=(0,eO.staticText)({cards:{_:"Participating Products:","zh-
7hk":"æå®éèç¢å:","zh-tw":"é©ç¨ç¢åï¼"}}),eK=e=>{let n=(0,eM.useLocaleSpecificClient)(eq.cards),{openModal:a}=(0,eL.default)(),{openModal:r,closeModal:l}=(0,eI.useProductBlockAsideModal)(),{amount:i,tenure:s}=e.loanParams,o=(0,ek.getColorSchema)(e.activeCampaign.color??"Blue"),c=`Campaign_${e.blockIndex}`;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("h4",{className:"mhg-alpha-typography-bullet-1",children:[n," "]}),(0,t.jsx)("div",{className:"my-spacing/gap/soft-12px flex flex-col gap-spacing/gap/soft-12px",children:e.products.map(n=>{let d=n.product;if(!d)return null;let u=n.product?.attributes?.find(e=>e.name?.name==="WHY_APPLY_NOW"),m=(0,ew.getFirstOrSecond)(n.label,[u?.label??"",u?.empty_value_text??""].join(" ")),h=(0,eT.filterOffersByAmountAndTenure)(d.welcome_offers??[],i,s),f=(0,eT.filterOffersByAmountAndTenure)([...d.exclusive_offers??[],...d.bundle_exclusive_offers??[]],i,s);return(0,t.jsxs)("div",{onClick:()=>{"PERSONAL_LOANS"===e.vertical&&(d.welcome_offers?.length||d.exclusive_offers?.length||d.bundle_exclusive_offers?.length)?a(d.uid??"",c):d.url_alias?r(d.url_alias,null):l()},className:"flex cursor-pointer flex-row items-center gap-spacing/gap/soft-8px",children:[(0,t.jsx)(eY.CmsImage,{src:d?.product_image??"",alt:d.product_name,height:28,width:44,sizes:{_:44},className:"!h-7 !w-11 object-contain",style:{objectFit:"contain"},loading:"eager"}),(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center",children:[(0,t.jsx)("h5",{className:(0,p.default)("mhg-alpha-typography-bullet-2 md:mhg-alpha-typography-bullet-1",o.cardText),children:d.product_name}),m?(0,t.jsx)("h5",{className:"hidden lg:block",children:": "}):null,m?(0,t.jsxs)("h5",{className:"mhg-alpha-typography-bullet-2 md:mhg-alpha-typography-bullet-1",children:[" ",m]}):null]}),(0,t.jsx)(eW.default,{welcomeOffers:h,exclusiveOffers:f,loanSearchParams:e.loanParams,product:d,keyFromComponent:c,pushDataLayer:et.pushDataLayer,ctaLinkOverride:void 0,vertical:e.vertical,carInsuranceCtaComponent:null,priceLine:null})]},d.title)})})]})};e.i(843780);var eQ=e.i(892063);let eZ=({title:e,subtitle:n,isActive:a,index:r,onPress:l,color:i})=>{let s=(0,ek.getColorSchema)(i);return(0,t.jsx)(eQ.default,{variant:"text",className:(0,p.default)("h-auto w-full rounded-radius/button border p-spacing/gap/soft-12px bg-white md:p-[10px]",{"border-colors/neutral-gray-300":!a,[s.button.border]:a}),onClick:()=>l(r),children:(0,t.jsxs)("div",{style:{width:"100%"},className:"flex min-w-46 flex-col gap-spacing/padding/soft-4px md:min-w-[210px] lg:min-w-[250px]",children:[(0,t.jsx)("h3",{className:(0,p.default)(s.button.text,"mhg-alpha-typography-bullet-1",{"text-colors/neutral-gray-900":!a,[s.button.text]:a}),children:e}),(0,t.jsx)("span",{className:"mhg-alpha-typography-badge truncate px-2 text-colors/neutral-gray-800",children:n})]})})},eX=e=>{let n=(0,h.useMemo)(()=>e.campaigns?.length&&1!==e.campaigns.length?e.campaigns.map((n,a)=>{let r="{HighRewardValue}",l=n?.shortDescription?.includes(r),i=n?.shortDescription??"";if(l){let e=n?.exclusive_offer?.list_of_gifts??[],t=e?.sort((e,t)=>Number(t?.gift?.gift_value?.price??0)-Number(e?.gift?.gift_value?.price??0)),a=t?.[0]?.gift?.gift_value?.price??0,l=t?.[0]?.gift?.gift_value?.prefix??"SGD$";i=i.replace(r,`${(0,eF.currencyFormat)(l)}${eP.currencyFormatterNoDecimal.format(a)}`)}return(0,t.jsx)("div",{className:(0,p.default)({"pl-3 md:pl-0":0===a,"pr-3 md:pr-0":a===e.campaigns.length-1,"w-[calc(100%-6px)] md:w-[calc(100%-8px)]":a!==e.campaigns.length-1,"w-[calc(100%-6px)] md:w-full":a===e.campaigns.length-1}),children:(0,t.jsx)(eZ,{color:e.color,title:n?.name??"",subtitle:i,index:a,isActive:e.activePromotionIndex===a,onPress:()=>e.onCampaingPress(a)})},n.name)}):null,[e]);return n?(0,t.jsx)(eR.FeCarousel,{swiperPropsOverride:{centeredSlides:!1,slidesPerView:"auto",spaceBetween:0,breakpoints:{768:{spaceBetween:0}}},slideClassNames:(0,p.default)("flex !h-auto flex-col",{"!w-[calc(100%/3)]":3===e.campaigns.length,"!w-[calc(100%/2)]":2===e.campaigns.length,"!w-[calc(100%/4)]":4===e.campaigns.length},"min-w-50 md:min-w-58 lg:min-w-70"),swiperClassNames:"-mx-4 md:mx-0",
7navigationWrapperClassNames:"hidden 1280:block",children:n}):null};var eJ=e.i(902639),e0=e.i(418081);let e1=(0,ev.default)(()=>e.A(893033).then(e=>e.ProductsCampaignBackground),{loadableGenerated:{modules:[101118]},ssr:!1}),e2=({campaing:e,vertical:n,blockIndex:a,tableConfig:r,brand:l})=>{var i;let s=(0,f.useClientContext)(),o=(0,e0.getClientTranslations)(eA.TRANSLATIONS,s),c=h.default.useRef(null),{loanSearchParams:d}=(0,eN.useLoanSearchParams)({}),u=(0,eE.getLoanSearchParamsWithDefaultComponentParam)(l,d,{amount:r?.default_loan_amount?r?.default_loan_amount.toString():void 0,tenure:r?.default_loan_tenure?r?.default_loan_tenure.toString():void 0}),{setActivePromotionIndex:m,promotionCampaign:g,pageType:x}=(0,eJ.usePageDataContext)(),b=g?.activePromotionIndex??0,y=o.welcome_text_single,_=o.welcome_text,v=e?.length?e:[],C=v?.length?v[b]:null,T=1===v.length,E=C?.products.length===1?C?.products?.[0]?.product??null:null,N=(i={promotion_campaing_welcome:_,promotion_campaing_welcome_single:y},1===v.length?i.promotion_campaing_welcome_single:i.promotion_campaing_welcome),{gradient:A}=(0,ek.getColorSchema)(C?.color??"Blue");return(h.default.useEffect(()=>{let e=setTimeout(()=>{m(1===v.length?b:b===v.length-1?0:b+1)},(C?.timer??5)*1e3);return()=>clearTimeout(e)},[b,v,T]),C)?(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(e1,{gradient:A}),(0,t.jsx)("div",{ref:c,id:"promotion-campaing-content-block",className:"relative -mx-4 overflow-x-hidden md:mx-0",children:(0,t.jsx)("div",{className:"relative my-6 md:my-8 md:pl-0 lg:my-12",children:(0,t.jsxs)("div",{className:"flex flex-col px-4",children:[(0,t.jsx)("h2",{className:(0,p.default)("mhg-alpha-typography-bullet-1 mb-2 md:mb-[10px] lg:mb-3"),children:N}),(0,t.jsx)(eX,{color:C.color??"blue",campaigns:v,onCampaingPress:e=>{m(e)},activePromotionIndex:b}),(0,t.jsxs)("div",{className:"mt-4 flex flex-col-reverse md:mt-6 lg:flex-row lg:justify-between lg:gap-8",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:gap-5 lg:max-w-[690px] lg:flex-1 lg:gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-6px",children:[(0,t.jsx)("h4",{className:"mhg-alpha-typography-display-1 mb-1 text-colors/neutral-gray-900 md:mb-[6px]",children:(0,ew.getFirstOrSecond)(C?.title,C?.exclusive_offer?.offer_title)}),(0,t.jsx)("p",{className:"mhg-alpha-typography-body-2 lg:mhg-alpha-typography-body-1 text-colors/neutral-gray-900",children:(0,ew.getFirstOrSecond)(C?.description,C?.exclusive_offer?.introduction)})]}),(0,t.jsx)("div",{className:"block lg:hidden",children:(0,t.jsx)(ez,{vertical:n,blockIndex:a,singleProduct:E,gifts:(0,eT.mapOfferToPeriodGifts)([C.exclusive_offer]),untilDate:C?.untilDate??C?.exclusive_offer?.period?.end_date})}),(0,t.jsxs)("div",{className:"contents flex-col md:flex md:flex-row lg:contents lg:flex-col",children:[(0,t.jsx)("div",{className:"mt-0 w-full md:mt-0 md:w-2/4 lg:mt-6 lg:w-full",children:(0,t.jsx)(eK,{activeCampaign:C,products:C.products,vertical:n,pageType:x,loanParams:u,blockIndex:a,activePromotionIndex:b})}),(0,t.jsx)("div",{className:"w-full md:w-2/4 lg:w-full",children:(0,t.jsx)(e$,{text:(0,ew.getFirstOrSecond)(C?.howTo,C.exclusive_offer?.description)})})]})]}),(0,t.jsx)("div",{className:"hidden lg:block",children:(0,t.jsx)(ez,{vertical:n,gifts:(0,eT.mapOfferToPeriodGifts)([C.exclusive_offer]),untilDate:(0,ew.getFirstOrSecond)(C?.untilDate,C?.exclusive_offer?.period?.end_date),singleProduct:E,blockIndex:a})})]})]})})})]}):null};e.i(28295);var e3=e.i(665367),e4=e.i(440481),e5=e.i(943032),e6=e.i(538194),e7=e.i(564755);e.i(713222);var e8=e.i(178680),e9=e.i(279143);let te=(0,eO.staticText)({relevant_article_group_compare_products:{_:"Compare Products",zh:"峿æ¯è¼"},relevant_article_group_learn_more:{_:"Learn More",zh:"å¯¦ç¨æ»ç¥"},relevant_article_group_related_guides:{_:"Trending Now",zh:"è¿æç±é"},relevant_article_keep_exploring_title:{_:"Keep Exploring",zh:"延伸é±è®"}}),tt=[{type:e8.EnumRelevantArticleGroupType.CompareProducts,icon:"balance",labelKey:"relevant_article_group_compare_products"},{type:e8.EnumRelevantArticleGroupType.LearnMore,icon:"menu_book",labelKey:"relevant_article_group_learn_more"},{type:e8.EnumRelevantArticleGroupType.RelatedGuides,icon:"crown",labelKey:"relevant_article_group_related_guides"}],tn=({articles:e,title:n,id:a,componentIndex:r})=>{let{brand:l,langPrefix:i,lang:s}=(0,f.useClientContext)(),o=(0,e7.getClientTranslations)(te,{brand:l,lang:s}),c=n?.trim()||o.relevant_article_keep_exploring_title,d=tt.map(t=>{let n=(e??[]).filter(e=>e?.group_type===t.type).map(e=>(e=>{let t=e.link_label?.trim();if(e.article){let n=(0,e9.getCmsPageLink)({brand:l,pageType:"article",slug:e.article.slug??"",vertical:e.article.section,langPrefix:i,urlPrefix:e.article.urlPrefix}),a=t||e.article.title||"";return n&&a?{url:n,label:a}:void 0}if(e.page){let n=(0,e9.getCmsPageLink)({brand:l,pageType:"page",slug:e.page.slug,vertical:e.page.section,langPrefix:i,urlPrefix:e.page.urlPrefix}),a=t||e.page.title||"";return n&&a?{url:n,label:a}:void 0}})(e)).filter(e=>void 0!==e).slice(0,3);return{...t,links:n}}).filter(e=>e.links.length>0);return 0===d.length?null:(0,t.jsx)("div",{className:"mx-auto max-w-screen-2xl",children:(0,t.jsxs)(e6.TheWrapper,{type:"simple",id:a,children:[(0,t.jsx)("h3",{className:"mhg-alpha-display-1 pb-spacing/gap/y",children:c}),(0,t.jsx)("div",{className:"flex flex-col gap-8 rounded-radius
7/card border border-borders/default py-spacing/gap/x bg-fill/card",children:d.map((e,n)=>{let a=d.slice(0,n).reduce((e,t)=>e+t.links.length,0);return(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/padding/y-sm",children:[(0,t.jsxs)("div",{className:"flex items-center gap-spacing/gap/soft-12px px-spacing/padding/x",children:[(0,t.jsx)("span",{className:"flex size-10 shrink-0 items-center justify-center rounded-full bg-fill/primary-light text-text/accent",children:(0,t.jsx)(e5.MaterialIcon,{icon:e.icon})}),(0,t.jsx)("span",{className:"mhg-alpha-subheading-2 min-w-0 flex-1 truncate text-text/primary",children:o[e.labelKey]})]}),(0,t.jsx)("div",{className:"flex flex-col gap-spacing/gap/soft-12px px-spacing/padding/x",children:e.links.map((n,l)=>(0,t.jsxs)(e4.FeLink,{href:n.url,target:"_blank",rel:"noopener noreferrer",title:n.label,className:"flex items-center gap-spacing/gap/soft-12px rounded-radius/button p-spacing/gap/soft-12px bg-fill/alternative-1",onClick:()=>(0,et.pushDataLayer)({event:"navigate",component_type:"article-list",component_title:`${c}/${o[e.labelKey]}_${n.label}`,component_index:r??"",action:"click",index:String(a+l)}),children:[(0,t.jsx)("span",{className:"mhg-alpha-button-2 min-w-0 flex-1 truncate font-semibold text-black",children:n.label}),(0,t.jsx)(e5.MaterialIcon,{icon:"arrow_right_alt",className:"shrink-0"})]},[e.type,n.url,l].join("_")))})]},e.type)})})]})})},ta=({articles:e,title:n,id:a,type:r,mode:l,componentIndex:i})=>{let{brand:s,langPrefix:o}=(0,f.useClientContext)();if(!e||0===e.length)return null;if(l===e8.EnumRelevantArticleMode.GroupedNavigation)return(0,t.jsx)(tn,{articles:e,title:n,id:a,componentIndex:i});let c=e.map(e=>{if(e){if(e.external_article)return{url:e.external_article.url??"",title:e.external_article.subtitle??"",subtitle:e.external_article.description??null};if(e.article){let t=e.article.slug??"";return{url:(0,e9.getCmsPageLink)({brand:s,pageType:"article",slug:t,vertical:e.article.section,langPrefix:o,urlPrefix:e.article.urlPrefix}),title:e?.article?.title??"",subtitle:e?.article?.subtitle??null}}if(e.page)return{url:(0,e9.getCmsPageLink)({brand:s,pageType:"page",slug:e.page.slug,langPrefix:o,vertical:e.page.section,urlPrefix:e.page.urlPrefix}),title:e.page.title??"",subtitle:e.page.subtitle??null}}}).filter(e=>void 0!==e);return(0,t.jsx)("div",{className:"mx-auto max-w-screen-2xl",children:(0,t.jsx)(e6.TheWrapper,{type:"simple",title:n??"",id:a,children:r===e8.EnumTypeReleventArticle.Big?(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-2 lg:gap-6",children:[(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"mb-4 w-full rounded-2xl shadow bg-white md:rounded-3xl",children:(0,t.jsx)(e3.ArticleComponent,{...c?.[0],pushDataLayer:et.pushDataLayer})})}),(0,t.jsx)("div",{className:"items-start",children:c?.slice(1,4).map((e,n)=>{let a=["relevant-article",e.url??"",e.title??"",n].filter(Boolean).join("_");return(0,t.jsx)("div",{className:(0,p.default)("w-full rounded-2xl shadow bg-white md:rounded-3xl",{"mb-4 2xl:mb-4":n+1!==c.length}),children:(0,t.jsx)(e3.ArticleComponent,{subtitle:e.subtitle,title:e.title,url:e.url,pushDataLayer:et.pushDataLayer})},a)})})]}):(0,t.jsx)("div",{className:(0,p.default)("grid gap-spacing/gap/x",{"grid-cols-1 md:grid-cols-2":c?.length===1,"grid-cols-2":c?.length===2||(c?.length||0)>3,"grid-cols-2 md:grid-cols-3":c?.length===3}),children:c?.map((e,n)=>{let a=["relevant-article",e.url??"",e.title??"",n].filter(Boolean).join("_");return(0,t.jsx)("div",{className:"w-full rounded-radius/card border border-borders/default bg-fill/card",children:(0,t.jsx)(e3.ArticleComponent,{subtitle:e.subtitle,title:e.title,url:e.url,pushDataLayer:et.pushDataLayer})},a)})})})})};var tr=t;e.i(627373);var tl=e.i(396522),ti=e.i(618566),ts=e.i(501701);e.i(69618);let to=({links:e,ContentContainer:t=e=>(0,tr.jsx)("div",{...e})})=>{let{langPrefix:n,brand:a}=(0,f.useClientContext)(),r=(0,ti.usePathname)(),l=(0,h.useCallback)(e=>{let{slug:t}=e??{};return!!t&&(r?.endsWith(t)??!1)},[r]),i=(0,h.useMemo)(()=>e?.findIndex(e=>e?.page&&l(e.page))??-1,[e,l]),s=(0,h.useMemo)(()=>
7e?.length?i>0?[e[i],...e.slice(0,i),...e.slice(i+1)]:e:[],[e,i]);return(0,tr.jsx)("div",{className:"overflow-hidden",children:(0,tr.jsx)(t,{children:(0,tr.jsx)(tl.FeCarouselV2,{navigation:{showOnDesktop:!0,prevElClassName:(0,p.default)("left-0 -translate-x-1/2"),nextElClassName:(0,p.default)("right-0 translate-x-1/2"),prevElement:(0,tr.jsx)(tc,{orient:"left"}),nextElement:(0,tr.jsx)(tc,{orient:"right"}),disabledClassName:"!hidden"},fullscreenOnMobile:!0,children:s.map((e,t)=>{if(!e.page)return null;let r=l(e.page);if(e?.page?.section)return(0,tr.jsx)(e4.FeLink,{draggable:!1,href:(0,e9.getCmsPageLink)({pageType:"page",vertical:e.page.section,slug:e.page.slug,langPrefix:n,brand:a,urlPrefix:e.page.urlPrefix}),children:(0,tr.jsx)(eQ.default,{styleType:"neutral-light-and-blue",variant:"outline",selected:r,className:"justify-start",title:e.label,onClick:()=>{if(!r){var n,a;n=e.label,a=e.page,a&&(0,et.pushDataLayer)({event:"navigate",component_type:"tab",component_title:`Header Section/Tab_${n}`,action:"click",index:t})}},children:(0,tr.jsx)("div",{className:"overflow-hidden text-ellipsis",children:e.label})})},e.label)})})})})},tc=e=>(0,tr.jsxs)("div",{className:(0,p.default)("relative"),children:[(0,tr.jsx)("div",{className:(0,p.default)("absolute -z-1 size-[--button-size-regular]",{"left-1/2 -translate-x-full":"right"===e.orient},{"right-1/2 translate-x-full":"left"===e.orient},"top-1/2 -translate-y-1/2","bg-gradient-to-r from-[rgba(255,255,255,0)] to-[var(--fill-base)]",{"rotate-180":"left"===e.orient})}),(0,tr.jsx)("div",{className:(0,p.default)("size-[--button-size-small]","border border-solid border-[--borders-default]","rounded-[1000px]","shadow-md bg-buttons/base","flex items-center justify-center"),children:(0,tr.jsx)(ts.default,{className:(0,p.default)("size-5 shrink-0",{"rotate-180":"left"===e.orient})})})]});var td=e.i(469835);e.i(941983);var tu=e.i(872225),tp=e.i(579053),tm=e.i(186301),th=e.i(980401),tf=e.i(274839);let tg={BLUE:{light:"#CEFFF1",dark:"#04709B"},WHITE_BLUE:{light:"#FFFFFF",dark:"#04709B"},GREEN:{light:"#E3FFCE",dark:"#5D8433"},WHITE_GREEN:{light:"#FFFFFF",dark:"#5D8433"},RED:{light:"#FFDDDD",dark:"#C70000"},WHITE_RED:{light:"#FFFFFF",dark:"#C70000"},ORANGE:{light:"#FFEBCE",dark:"#DE4E00"},WHITE_ORANGE:{light:"#FFFFFF",dark:"#DE4E00"},YELLOW:{light:"#FFFCCE",dark:"#AF6A00"},WHITE_YELLOW:{light:"#FFFFFF",dark:"#AF6A00"}},tx={360:{slidesPerView:1},767:{slidesPerView:1},1279:{slidesPerView:1},1440:{slidesPerView:1},1920:{slidesPerView:1}},tb={delay:6e3,pauseOnMouseEnter:!0,disableOnInteraction:!1,stopOnLastSlide:!1,waitForTransition:!0,reverseDirection:!1},ty=e=>e?tg[e]:tg.BLUE,t_=({banners:e})=>(0,t.jsx)("div",{className:"bg-swiper-cards py-8 md:pb-8 lg:pb-10 xl:pb-12",children:(0,t.jsx)("div",{className:"mx-auto max-w-screen-2xl px-spacing/padding/section-x",children:(0,t.jsxs)(th.Swiper,{speed:1e4,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},autoplay:tb,loop:!0,cssMode:!0,pagination:{clickable:!0},breakpoints:tx,spaceBetween:10,centeredSlides:!0,modules:[tu.Autoplay,tp.Navigation,tm.Pagination],className:"group relative mx-auto max-w-screen-2xl",children:[(0,t.jsx)("div",{className:"swiper-button-prev invisible !left-2 opacity-0 transition-all duration-300 !text-black after:!size-8 lg:group-hover:visible lg:group-hover:opacity-20"}),(0,t.jsx)("div",{className:"swiper-button-next invisible !right-2 opacity-0 transition-all duration-300 !text-black after:!size-8 lg:group-hover:visible lg:group-hover:opacity-20"}),e?.map((e,n)=>(0,t.jsx)(th.SwiperSlide,{className:"relative flex overflow-hidden rounded-2xl pb-10 lg:rounded-3xl",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 rounded-2xl px-5 shadow-md lg:grid-cols-2 lg:rounded-3xl",style:{backgroundColor:ty(e?.color_scheme??void 0).light},children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start p-4 md:px-6 lg:justify-center lg:px-8 lg:py-9 xl:p-10",children:[e?.over_title&&(0,t.jsx)("p",{className:"mb-1 font-bold text-primary text-base leading-normal md:text-lg md:leading-line-height/lg lg:mb-2 lg:text-xl lg:leading-line-height/xl",style:{color:ty(e?.color_scheme??void 0).dark},children:e?.over_title}),e?.title&&(0,t.jsx)("h3",{className:"mb-2 font-bold text-gray-900 text-2xl leading-line-height/2xl md:text-3xl md:leading-line-height/3xl lg:mb-4 lg:text-4xl lg:leading-line-height/4xl",children:e?.title}),(0,t.jsx)(td.RichText,{className:"align-middle font-medium text-gray-900 leading-normal md:text-lg md:leading-line-height/lg lg:text-xl lg:leading-line-height/xl",children:e?.description??""}),e?.cta_label&&e?.cta_url&&(0,t.jsx)(e4.FeLink,{href:e?.cta_url,target:(0,tf.getTabTarget)(e?.cta_target)??"_blank",children:(0,t.jsx)(eQ.default,{title:e?.cta_label,type:"button",style:{backgroundColor:ty(e?.color_scheme??void 0).dark},className:"mt-4 w-full lg:mt-6 lg:max-w-75 lg:font-semibold lg:text-buttons/cta lg:leading-line-height/lg",onClick:()=>(0,et.pushDataLayer)({event:"navigate",component_type:"image-carousel",component_title:`${e?.title}_${e?.cta_label}`,action:"click",index:n}),children:(0,t.jsx)("span",{className:"text-white",children:e?.cta_label})})}),e?.caption&&(0,t.jsx)("p",{className:"mt-2 font-medium text-gray-700 text-sm leading-line-height/sm md:mt-4 md:text-lg md:leading-line-height/lg lg:mt-2 lg:text-base lg:leading-normal",children:e?.caption})]}),(0,t.jsx)("div",{className:`flex items-center justify-center ${e?.padding?"p-4 md:px-6 lg:px-8 lg:py-9 xl:p-10":""}`,children:e?.cta_label&&e?.cta_url?(0,t.jsx)(e4.FeLink,{href:e?.cta_url,target:(0,tf.getTabTarget)(e?.cta_target)??"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(eY.CmsImage,{unoptimized:!0,src:e?.image?.url??"",alt:e?.title??"",width:720,height:540,className:"size-full object-contain sm:h-[246px] sm:w-82 md:h-[540px] md:w-[720px] lg:h-114 lg:w-[608px] xl:h-[510px] xl:w-[680px]"})}):(0,t.jsx)(eY.CmsImage,{unoptimized:!0,src:e?.image?.url??"",alt:e?.title??"",width:720,height:540,className:"size-full object-contain sm:h-[246px] sm:w-82 md:h-[540px] md:w-[720px] lg:h-114 lg:w-[608px] xl:h-[510px] xl:w-[680px]"})})]})}
7,n))]})})});e.i(910881);let tv={moneyhero:"bg-white",singsaver:"bg-white",moneymax:"bg-fill/alternative-1",money101:"bg-white"},tC=({title:e,subtitle:n,button_text:a,step:r})=>{let{brand:l}=(0,f.useClientContext)(),i=tv[l];return(0,t.jsxs)("div",{className:(0,p.default)("g:gap-7 flex w-full flex-col items-start gap-4 px-padding/section-x py-padding/section-y md:items-center md:gap-6",i),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1 text-left md:text-center",children:[(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-2 text-gray-900",children:e}),(0,t.jsx)("p",{className:"mhg-alpha-typography-body-1 text-gray-700",children:n})]}),(0,t.jsx)("div",{className:"flex w-full flex-col gap-6 md:hidden",children:r?.map((e,n)=>(0,t.jsxs)("div",{className:"flex w-full gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-between gap-6",children:[(0,t.jsx)("div",{className:"flex size-10 min-h-10 min-w-10 flex-col items-center justify-center rounded-full bg-primary-800",children:e?.icon&&(0,t.jsx)(e5.MaterialIcon,{icon:e.icon,className:"text-font-size/2xl"})}),n!==r.length-1&&(0,t.jsx)("div",{className:(0,p.default)("max-h-8 min-h-8 w-0.5 min-w-0.5 bg-primary-200",{"!h-2.5 !min-h-2.5":0===n||!e?.step_subtitle})})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-1",children:[(0,t.jsx)("span",{className:"mhg-alpha-typography-title-2 text-left text-gray-900",children:e?.step_title}),e?.step_subtitle&&(0,t.jsx)("span",{className:"mhg-alpha-typography-body-2 text-left text-gray-600",children:e?.step_subtitle})]})]},`${e?.step_title}-${n}`))}),(0,t.jsxs)("div",{className:"hidden w-full min-w-82 md:flex md:max-w-[720px] md:flex-col lg:max-w-[1010px] xl:max-w-[1170px] 2xl:max-w-screen-lg",children:[(0,t.jsx)("div",{className:"flex w-full flex-row items-center justify-center gap-6 2xl:gap-8",children:r?.map((e,n)=>(0,t.jsxs)(h.default.Fragment,{children:[(0,t.jsx)("div",{className:"flex size-18 min-w-18 items-center justify-center rounded-full bg-primary-800 2xl:size-22 2xl:min-w-22",children:e?.icon&&(0,t.jsx)(e5.MaterialIcon,{icon:e.icon,className:"text-font-size/5xl"})}),n!==r.length-1&&(0,t.jsx)("div",{className:"size-0.5 h-4 min-h-4 w-[221.33px] min-w-0.5 bg-primary-200 md:ml-0 md:h-0.5 md:min-h-0.5 md:w-[66.67px] md:min-w-[66.67px] lg:w-[139.33px] lg:min-w-[139.33px] xl:w-[179.33px] xl:min-w-[179.33px] 2xl:w-[179.33px] 2xl:min-w-[179.33px]"})]},`icon-${n}`))}),(0,t.jsx)("div",{className:"mt-6 flex w-full flex-row justify-center gap-6",children:r?.map((e,n)=>(0,t.jsx)("div",{className:"flex flex-1 flex-col items-center justify-start",children:(0,t.jsxs)("div",{className:"max-w-48 sm:max-w-48 md:max-w-[162px] md:flex-row lg:max-w-[235px] xl:max-w-[275px] 2xl:max-w-[322px]",children:[(0,t.jsx)("h3",{className:"mhg-alpha-typography-title-2 text-center text-gray-900",children:e?.step_title}),e?.step_subtitle&&(0,t.jsx)("p",{className:"mhg-alpha-typography-body-2 text-center text-gray-600",children:e?.step_subtitle})]})},`text-${n}`))})]}),a&&(0,t.jsx)("div",{className:"mt-6 flex w-full justify-center",children:(0,t.jsx)(eQ.default,{styleType:"cta",endIcon:(0,t.jsx)(ts.default,{}),children:a})})]})};var tT=e.i(683498);let tE=function({className:e}){return(0,t.jsx)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})};var tN=e.i(789450),tA=e.i(908251);let tk=({title:e,brand:n})=>{let a=(0,eE.getLoanSearchParamsWithDefaultComponentParam)(n,void 0,void 0),[r,l]=(0,h.useState)({amount:a.amount,tenure:a.tenure}),i=(0,f.useClientContext)(),s=i.currencyDisplay,o={amount:a.amount.toString(),tenure:a.tenure.toString()},c="personal-loan",d=(0,e0.getClientTranslations)(eA.TRANSLATIONS,i),[u,m]=(0,h.useState)(null),[g,x]=(0,h.useState)(null),b=(e,t)=>{void 0!==e.amount&&(m(t?"Invalid amount":null),t||l(t=>({...t,amount:e.amount}))),void 0!==e.tenure&&(x(t?"Invalid tenure":null),t||l(t=>({...t,tenure:e.tenure})))},y=(0,h.useMemo)(()=>{let e=Number(r.amount);return!isNaN(e)&&e>=1e3&&!u},[r.amount,u]),_=(0,h.useMemo)(()=>{let e=Number(r.tenure);return!isNaN(e)&&e>=6&&!g},[r.tenure,g]),v=y&&_,C=(0,h.useCallback)(()=>
7{if(!v)return;let t=new URLSearchParams({amount:r.amount.toString(),tenure:r.tenure.toString()});(0,et.pushDataLayer)({event:"final_search",search_result_parameter:`amount-${r.amount}|tenure-${r.tenure}`,vertical_code:c,component_type:"bottom-sticky",component_title:`${e}/Search CTA_Compare Now`,action:"click"}),window.open(`/personal-loan?${t.toString()}#pl-input`,"_blank")},[v,r,e,c]);return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-spacing/gap/y",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-spacing/gap/x md:grid-cols-2",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(tA.FilterInput,{title:(0,tN.tr)("personal_loan_amount",d,{currency:i.currencyDisplay}),help:(0,tN.tr)("personal_loan_amount_help",d,{currency:i.currencyDisplay,min_amount:"1000",max_amount:("singsaver"===i.brand?1e5:6e5).toString()}),defaultValue:o,prefix:s,onFinished:b,searchParam:"amount",min:1e3})}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(tA.FilterInput,{defaultValue:o,title:d.personal_loan_tenure,help:(0,tN.tr)("personal_loan_tenure_help",d,{currency:i.currencyDisplay,min_tenure:"6",max_tenure:"84"}),min:6,searchParam:"tenure",onFinished:b})})]}),(0,t.jsxs)("div",{className:"flex w-full items-center justify-between pt-spacing/gap/y",children:[(0,t.jsxs)("p",{className:"mhg-alpha-typography-body-2 hidden text-text/secondary-lighter md:inline",children:[d.redirect_after_clicking,"."]}),(0,t.jsx)(eQ.default,{styleType:"primary",onClick:C,endIcon:(0,t.jsx)(ts.default,{className:"size-shapes/icon-size-md"}),disabled:!v,className:(0,p.default)("flex w-full items-center justify-center transition-colors duration-200 md:w-auto",{"cursor-not-allowed bg-gray-300 text-gray-500":!v}),children:(0,t.jsx)("span",{children:d.compare_now})})]})]})},tw=({brand:e,title:n,visible:a,content:r})=>{let[l,i]=(0,h.useState)(!1),[s,o]=(0,h.useState)(!0),[c,d]=(0,h.useState)(!1),u=(0,h.useRef)(null),m=()=>{o(e=>!e),(0,et.pushDataLayer)({event:"form_interact",lead_form_name:"sticky-policy-search-module",form_type:"search form",action:s?"expand":"collapse",component_type:"bottom-sticky",component_title:`${n} ${!s?"Toggle_Collapse":"Toggle_Expand"}`})};return(0,h.useEffect)(()=>{if(!a)return void i(!1);let e=()=>{c||i((window.scrollY||document.documentElement.scrollTop)>10)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[c,a]),(0,h.useEffect)(()=>{let e=document.querySelector("footer");if(e)return u.current=new IntersectionObserver(([e])=>{d(e.isIntersecting),e.isIntersecting&&i(!1)},{threshold:.1}),u.current.observe(e),()=>{u.current?.disconnect()}},[]),(0,t.jsx)("div",{className:(0,p.default)("fixed bottom-0 left-0 z-50 w-full shadow transition-transform duration-300 ease-out",{"translate-y-0":l,"translate-y-full":!l}),children:(0,t.jsx)("div",{className:"w-full overflow-hidden p-0",children:(0,t.jsxs)("div",{className:"h-full flex-col rounded-none bg-fill/card sm:flex-row",children:[(0,t.jsxs)("div",{role:"button",tabIndex:0,className:"relative w-full cursor-pointer border-b border-borders/default text-left",onClick:m,children:[(0,t.jsxs)("div",{className:"mx-auto flex w-full flex-col justify-center gap-spacing/gap/y-xs px-spacing/gap/x py-spacing/margin/y bg-transparent md:max-w-[990px]",children:[(0,t.jsxs)("h3",{className:"mhg-alpha-typography-title-1 flex text-fill/primary-dark",children:[n,(0,t.jsx)("div",{role:"button",tabIndex:0,className:"ml-auto md:hidden",onClick:e=>{e.stopPropagation(),m()},children:s?(0,t.jsx)(tE,{}):(0,t.jsx)(tT.default,{})})]}),(0,t.jsx)(td.RichText,{className:"mhg-alpha-typography-body-2 text-text/secondary",children:r})]}),(0,t.jsx)("div",{role:"button",tabIndex:0,className:"absolute right-8 top-1/2 hidden -translate-y-1/2 items-center justify-center md:flex",onClick:e=>{e.stopPropagation(),m()},children:s?(0,t.jsx)(tE,{}):(0,t.jsx)(tT.default,{})})]}),!s&&(0,t.jsx)("div",{className:"mx-auto flex w-full flex-col justify-center px-spacing/gap/x py-spacing/gap/y bg-transparent md:max-w-[990px]",children:(0,t.jsx)("div",{className:"flex flex-col justify-between md:flex-row md:items-center",children:(0,t.jsx)(tk,{title:"title",brand:e})})})]})})})},tS=e=>{let{brand:n,langPrefix:a,host:r}=(0,f.useClientContext)(),{components:l,vertical:i,pageType:s,slug:o,isHomePage:c,ContentContainer:d,urlPrefix:u,skipKeys:m}=e,g=new Set(m??[]),x=(0,eb.getCmsAbsPageLink)({brand:n,host:r,pageType:s,vertical:i,slug:o,langPrefix:a,urlPrefix:u}),b=l.filter(e=>"ComponentPagesComponentProductMetaConfig"!==e.__typename),y=l.find(e=>"ComponentPagesComponentProductMetaConfig"===e.__typename);if(!b.length)return;let _=l.flatMap(e=>"ProductDetailsComponent"===e.__typename&&"MODAL"===e.renderingMode&&e.visible&&e.product?.title?[e.product.title]:[]),v=b.filter(e=>e?.visible!==!1),C=v.filter(e=>g.has((0,ee.getBlockSkipKey)(e))).length,T=0,E=v.map(e=>g.has((0,ee.getBlockSkipKey)(e))?-1:C+T++);return(0,t.jsx)("div",{className:(0,p.default)({"flex flex-col":c,"flex flex-col gap-spacing/gap/y":!c}),children:v.map((a,r,l)=>{if(g.has((0,ee.getBlockSkipKey)(a)))return null;let o=(e=>{let{typename:t,ContentContainer:n}=e;if(!["ComponentPagesComponentInsuranceStepperComponent","ComponentPagesComponentRpCategories","ComponentPagesComponentPrefilledBlock","ComponentPagesComponentFlexibleHeroBlockComponent","ComponentPagesComponentGridModuleComponent","ComponentPagesComponentCustomerReviewsBlockComponent","ComponentPagesComponentCtaSectionBlockComponent","ComponentPagesComponentQuoteHighlightComponent","ComponentPagesProvi
7derList","ProductDetailsComponent","SingleProductPromotionsComponent"].includes(t))return n})({typename:a.__typename,ContentContainer:d})??(e=>(0,t.jsx)("div",{...e}));return(0,t.jsxs)(h.Fragment,{children:[(0,t.jsx)(ec.PortalPlace,{typename:a.__typename,vertical:"PERSONAL_LOANS",baseComponents:l,id:"comparison-table-tabs",zOffset:1,fullWide:"page"===s}),(0,t.jsx)(ec.PortalPlace,{id:"personal-loan-filter",extraStickyIds:["comparison-table-tabs"],typename:a.__typename,vertical:i,baseComponents:l,fullWide:"page"===s}),(0,t.jsx)(o,{id:`content-${r}`,"data-block-type":a?.__typename?.replace("ComponentPagesComponent",""),"data-block-id":a?.id,children:tI({...e,compProps:a,pathname:x,metadataProductCard:y,index:r,gaIndex:E[r],brand:n,productDetailsModalKeys:_})})]},`${a.__typename}_${a?.id}`)})})},tI=({metadataProductCard:e,compProps:p,index:h,gaIndex:f,brand:ee,productDetailsModalKeys:ec,...eb})=>{switch(p?.__typename){case"ComponentPagesComponentTextBlock":{let e=(0,t.jsx)(n.PieceOfContent,{...p,pushDataLayer:et.pushDataLayer});return p.audience&&"ALL"!==p.audience?(0,t.jsx)(en.AudienceGate,{audience:p.audience,children:e}):e}case"ComponentPagesComponentTableOfContents":return(0,t.jsx)(eg.TableOfContents,{...p,components:eb.components});case"ComponentPagesComponentReviewCards":return(0,t.jsx)(G.ReviewCards,{...p});case"ComponentPagesComponentCustomerReviewsBlockComponent":return(0,t.jsx)(E.CustomerReviewsBlock,{...p});case"ComponentPagesComponentQuoteHighlightComponent":return(0,t.jsx)(s.QuoteHighlight,{...p,pushDataLayer:et.pushDataLayer});case"ComponentPagesComponentPreComparisonChecklistComponent":return(0,t.jsx)(r.PreComparisonChecklist,{...p});case"ComponentPagesComponentScenarioAccordionComponent":return(0,t.jsx)(i.ScenarioAccordion,{...p,pushDataLayer:et.pushDataLayer,componentIndex:String(f??"")});case"ComponentPagesComponentImageCarousel":return(0,t.jsx)(o.ImageCarousel,{...p,slug:eb.slug,pushDataLayer:et.pushDataLayer,componentIndex:String(f??"")});case"ComponentPagesComponentBlueCta":return(0,t.jsx)(b.BlueCTA,{...p});case"ComponentPagesComponentSelectedProducts":return(0,t.jsx)(Y.SelectedProducts,{...p,vertical:eb.vertical,slug:eb.slug,pageType:eb.pageType,index:h,brand:ee});case"ComponentPagesComponentSimilarProducts":return(0,t.jsx)(l.SimilarProducts,{...p,slug:eb.slug,pushDataLayer:et.pushDataLayer});case"ComponentPagesComponentProductCardGridComponent":return(0,t.jsx)(H.ProductCardGridComponent,{...p});case"ComponentPagesComponentRewardCardGridComponent":return(0,t.jsx)(V.RewardCardGridComponent,{...p,componentIndex:String(h??"")});case"ComponentPagesComponentNestedContent":return(0,t.jsx)(a.FAQ,{...p,pushDataLayer:et.pushDataLayer});case"ComponentPagesComponentRelevantArticle":return(0,t.jsx)(ta,{...p,componentIndex:String(h??"")});case"ComponentPagesComponentInfoCards":return(0,t.jsx)(P.InfoCards,{...p});case"ComponentPagesComponentInfoCardsFaq":return(0,t.jsx)(M.InfoCardsFAQ,{...p});case"ComponentPagesComponentPrefilledBlock":return(0,t.jsx)(ed.PrefilledBlock,{...p,vertical:eb.vertical,pageType:eb.pageType,slug:eb.slug,ContentContainer:eb.ContentContainer,urlPrefix:eb.urlPrefix});case"ComponentPagesComponentParagraph":return(0,t.jsx)(O.Paragraph,{...p});case"ComponentPagesComponentDisclaimerComponent":return"singsaver"===ee?(0,t.jsx)(u.ShortDisclaimer,{...p}):null;case"ComponentPagesComponentWhiteTextBlock":return(0,t.jsx)(q.TheWhiteBoard,{...p});case"ComponentPagesComponentExpandableCard":return(0,t.jsx)(N.ExpandableCard,{...p});case"ComponentPagesComponentCallToAction":return(0,t.jsx)(y.CallToAction,{...p});case"ComponentPagesComponentCtaSectionBlockComponent":return(0,t.jsx)(T.CtaSectionBlock,{...p});case"ComponentPagesComponentRedirectTiles":return(0,t.jsx)(z.RedirectTiles,{...p});case"ComponentPagesComponentHeading":return(0,t.jsx)(w.Heading,{...p});case"ComponentPagesComponentFeedbackAndShare":return(0,t.jsx)(A.FeedbackAndShare,{...p,url:eb.pathname});case"ComponentPagesComponentHeaderWithTabs":return(0,t.jsx)(k.HeaderWithTabs,{...p});case"ComponentPagesComponentSwiperCards":return(0,t.jsx)(t_,{...p});case"ComponentPagesComponentRpCategories":return(0,t.jsx)(to,{...p,ContentContainer:eb.ContentContainer});case"ComponentPagesComponentPromotionCampaings":return(0,t.jsx)(e2,{...p,brand:ee,vertical:eb.vertical,blockIndex:h,tableConfig:eb.components.find(e=>"ComponentPagesComponentComparisonTable"===e.__typename)});case"SingleProductPromotionsComponent":return(0,t.jsx)(eh.SingleProductPromotionWrapper,{id:p.id,visible:p.visible,featureColor:p.featureColor,backgroundColor:p.backgroundColor,product:p.product,additionalCampaign:p.additionalCampaign,howToApply:p.howToApply,vertical:eb.vertical,pushDataLayer:et.pushDataLayer});case"ComponentPagesComponentHeroCampaingFeature":return(0,t.jsx)(S.HeroCampaingFeature,{...p});case"ComponentPagesComponentTabbedComponent":return(0,t.jsx)(ea.CollapsibleContentTabbed,{...p});case"SummaryProductsComponent":return(0,t.jsx)(ef.default,{metadata:e,summaryConfig:p});case"ComponentPagesComponentComparisonTable":return(0,t.jsx)(v.default,{tableConfig:p,brand:ee,metadata:e,vertical:eb.vertical,slug:eb.slug,blockIndex:h});case"ComponentPagesComponentCardListingPosition":return(0,t.jsx)(_.default,{metadata:e,tableConfig:eb.components.find(e=>"ComponentPagesComponentComparisonTable"===e.__typename),vertical:eb.vertical,pageType:eb.pageType,cardPosition:p,url:eb.slug??"",calculateError:!1,pushDataLayer:et.pushDataLayer,productDetailsModalKeys:ec});case"ComponentPagesComponentSearchStickyFooterComponent":return(0,t.jsx)(tw,{...p,brand:ee});case"ComponentPagesComponentAnchorStickyFooterComponent":return(0,t.jsx)(e_.AnchorStickyFooterComponent,{...p});case"ComponentPagesComponentGridModuleComponent":return(0,t.jsx)(el.FeaturesGridModule,{...p,ContentContainer:eb.ContentContainer});case"ComponentPagesComponentSectionalHeaderComponent":return(0,t.jsx)(em.SectionalHeader,{...p});
7case"ComponentPagesProviderList":return(0,t.jsx)(U.ProviderList,{...p});case"ComponentPagesComponentMiniProductHighlightComponent":return(0,t.jsx)(es.MiniProductHighlight,{...p});case"ComponentPagesComponentMultiProductBlockComponent":return(0,t.jsx)(eo.MultiProductBlockWrapper,{mode:"single",block:p,pageType:eb.pageType,vertical:eb.vertical,slug:eb.slug});case"ComponentPagesComponentVerticalArticlesComponent":return(0,t.jsx)(X.VerticalArticles,{...p});case"ComponentPagesComponentSecondaryCtaComponent":return p.audience&&"ALL"!==p.audience?(0,t.jsx)(en.AudienceGate,{audience:p.audience,children:(0,t.jsx)($.SecondaryCTA,{...p})}):(0,t.jsx)($.SecondaryCTA,{...p});case"ComponentPagesComponentProsAndConsComponent":return(0,t.jsx)(er.ProsAndCons,{...p});case"ComponentPagesComponentSimpleStickyFooterComponent":return(0,t.jsx)(m.SimpleStickyFooter,{...p});case"ComponentPagesComponentTestimonialsComponent":return(0,t.jsx)(L.HPReviewCards,{...p});case"ComponentPagesComponentFinancialProvidersComponent":return(0,t.jsx)(ei.LogoCarousel,{...p});case"ComponentPagesComponentTopPicksHpComponent":return(0,t.jsx)(K.TopPicksModule,{...p});case"ComponentPagesComponentEmbeddedScriptComponent":return(0,t.jsx)(d.EmbeddedScript,{...p});case"ComponentPagesComponentVideoBlockComponent":return(0,t.jsx)(J.VideoBlock,{...p});case"ComponentPagesComponentCompanyValuesComponent":return(0,t.jsx)(C.CounterModule,{...p});case"ComponentPagesComponentLicensedAndGroupComponent":return(0,t.jsx)(g.AboutModule,{...p});case"ComponentPagesComponentHPArticlesModule":return(0,t.jsx)(I.ArticlesHPModule,{...p});case"ComponentPagesComponentNewsletterSubscriptionHpComponent":return(0,t.jsx)(D.NewsletterSubscription,{...p});case"ComponentPagesComponentImage":return(0,t.jsx)(j.ImageCmp,{...p,pageType:eb.pageType});case"ComponentPagesComponentStandoutTextBlockComponent":return(0,t.jsx)(W.StandoutTextBlock,{...p});case"ComponentPagesComponentContactUsComponent":return(0,t.jsx)(c.WhatsappStickyModule,{...p,pushDataLayer:et.pushDataLayer,vertical:eb.vertical});case"ComponentPagesComponentInsuranceStepperComponent":return(0,t.jsx)(tC,{...p});case"ComponentPagesComponentFlexibleHeroBlockComponent":return null;case"TravelPolicySearchComponent":return(0,t.jsx)(Q.default,{...p,metaConfig:e});case"TrustStripComponent":return(0,t.jsx)(Z.TrustStripWrapper,{...p});case"ComponentPagesComponentPlanTierSelectorComponent":return(0,t.jsx)(B.PlanTierSelectorWrapper,{component:p});case"ComponentPagesComponentPolicySummaryCardComponent":return(0,t.jsx)(F.PolicySummaryCardWrapper,{...p});case"ComponentPagesComponentProgressStepperComponent":return(0,t.jsx)(eu.ProgressStepperWrapper,{...p});case"ComponentPagesComponentBenefitComparisonTableComponent":return(0,t.jsx)(x.BenefitComparisonTableWrapper,{component:p});case"ComponentPagesComponentPersonalLoanCalculator":return(0,t.jsx)(R.PersonalLoanCalculator,{...p});case"ComponentPagesComponentTableBuilderComponent":return(0,t.jsx)(ex.TableBuilderWrapper,{...p,pushDataLayer:et.pushDataLayer,pageType:eb.pageType,vertical:eb.vertical});case"ComponentPagesComponentQuickAnswerComponent":return(0,t.jsx)(ep.QuickAnswerWrapper,{...p,pageType:eb.pageType,vertical:eb.vertical,blockIndex:h,slug:eb.slug});case"ProductDetailsComponent":return(0,t.jsx)(ey.ProductDetailsBlock,{...p,vertical:eb.vertical,pushDataLayer:et.pushDataLayer,pageType:eb.pageType});default:return console.warn(`Unknown component type: ${p?.__typename}`),null}},tD=(0,eO.staticText)({breadcrumbs_home:{_:"Home",zh:"é¦é "},breadcrumbs_personal_loans:{_:"Personal Loans",zh:"ç§äººè²¸æ¬¾"},breadcrumbs_credit_cards:{_:"Credit Cards",zh:"ä¿¡ç¨å¡"},breadcrumbs_travel_insurance:{_:"Travel Insurance",zh:"æ
éä¿éª"},breadcrumbs_investment:{_:"Investments"},breadcrumbs_banking:{_:"Banking"},breadcrumbs_blog:{_:"Blog",zh:"é¨è½æ ¼"},breadcrumb_start:{_:"Start",zh:"éå§"}}),tL=(0,eO.brandSpecificStaticText)({_:tD,money101:(0,eO.staticText)({breadcrumbs_personal_loans:{_:"Personal Loans",zh:"貸款"},breadcrumbs_credit_cards:{_:"Credit Cards",zh:"ä¿¡ç¨å¡"},breadcrumbs_investment:{_:"Investments",zh:"èå¸éæ¶"},breadcrumbs_banking:{_:"Banking",zh:"éè¡å¸³æ¶"}})});var tj=e.i(12252);e.s(["Breadcrumb",0,({vertical:e,pageType:n,pageTitle:a,pageSlug:r,urlPrefix:l,isBlogLanding:i,isBlogVerticalLanding:s})=>{let o,c=(0,f.useClientContext)(),{brand:d,langPrefix:u,host:p}=c,m=(0,e0.getClientTranslations)(tL,c),g=(0,h.useMemo)(()=>{let t,o,c=[{link:"/",title:"product"===n?m.breadcrumb_start:m.breadcrumbs_home}];if(i)return c.push({link:`${u}/blog`,title:m.breadcrumbs_blog}),c;let p=(0,e9.getCmsPageLink)({pageType:n,vertical:e,langPrefix:u,brand:d,..."article"!==n&&{urlPrefix:l}});if(t={CREDIT_CARD:m.breadcrumbs_credit_cards,PERSONAL_LOANS:m.breadcrumbs_personal_loans,BANKING:m.breadcrumbs_banking,INVESTMENTS:m.breadcrumbs_investment,TRAVEL_INSURANCE:m.breadcrumbs_travel_insurance},(o=e?t[e]:void 0)&&c.push({link:p,title:o}),"article"===n){let e=(0,e9.getCmsPageLink)({pageType:"article",langPrefix:u,brand:d});if(c.push({link:e,title:m.breadcrumbs_blog}),s)return c}return c.push({title:a,link:(0,e9.getCmsPageLink)({brand:d,pageType:n,vertical:e,slug:r,langPrefix:u,urlPrefix:l})}),c},[r,a,n,e,i,s]);return(0,t.jsxs)("div",{className:"no-scrollbar overflow-x-auto",children:[(o={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:g.map((e,t)=>({"@type":"ListItem",position:t+1,item:{"@id":`https://${p}${e.link}`,name:e.title}}
7))},(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}})),(0,t.jsx)("div",{className:"flex flex-nowrap items-center gap-2",children:g.map((e,n)=>(0,t.jsxs)(h.Fragment,{children:[(0,t.jsx)(e4.FeLink,{href:e.link,className:`min-w-0 ${n===g.length-1?"max-w-fit":"shrink-0"} truncate font-medium opacity-80 text-gray-900 text-font-size/breadcrumb leading-line-height/breadcrumb`,"aria-label":0===n?e.title:void 0,onClick:t=>{t.stopPropagation(),n<g.length-1&&(0,et.pushDataLayer)({event:"navigate",component_type:"breadcrumb",component_title:e.title,action:"click",index:n})},children:0===n?(0,t.jsx)(tj.default,{className:"size-[--shapes-icon-size-sm] text-gray-900"}):e.title},`${e.link}_${e.title}`),n<g.length-1&&(0,t.jsx)("span",{className:"font-medium opacity-80 text-gray-900 text-font-size/breadcrumb leading-line-height/breadcrumb",children:"/"})]},`${e.link}_${e.title}`))})]})}],58492)},708291,168437,100755,e=>{"use strict";var t=e.i(594999),n=e.i(316832);e.s(["getMonthlyRepayment",0,(e,a)=>{let r=(0,t.getAttrFromProduct)(t.ATTR_NAMES.MONTHLY_REPAYMENT,e);if(r?.value&&0!==Number(r.value))return`${a}${(0,n.formatAttributeItemValue)(r,!1,!0,!1)}`},"hasUsableEmail",0,e=>e.includes("@")],708291);var a=e.i(843476);e.i(271210);var r=e.i(686148);let l=(e,t)=>(0,a.jsx)("a",{className:"font-semibold text-text/link hover:underline",href:e,rel:"noopener noreferrer",target:"_blank",children:t}),i=(0,r.staticText)({eyebrow:{_:"BEFORE YOU GO TO :provider","zh-hk":"åå¾ :provider ä¹å"},title:{_:"Want to receive more loan options?","zh-hk":"æ³æ¶å°æ´å¤è²¸æ¬¾é¸æï¼"}
7,summaryLabel:{_:"The loan product you selected","zh-hk":"ä½ æé¸å
貸款ç¢å"},summaryLine:{_:":amount · :tenure months · from :monthlyRepayment/month","zh-hk":":amount · :tenure åæ Â· æ¯æéæ¬¾ä½è³ :monthlyRepayment"},summaryLineWithoutRepayment:{_:":amount · :tenure months","zh-hk":":amount · :tenure åæ"},emailLabel:{_:"Email address","zh-hk":"é»éµå°å"},emailPlaceholder:{_:"[email protected]","zh-hk":"[email protected]"},consentAriaLabel:{_:"Marketing consent","zh-hk":"çé·åæ"},consentError:{_:"Please tick the box above to agree before continuing.","zh-hk":"è«å
åé¸ä¸æ¹æ¹æ ¼è¡¨ç¤ºåæï¼ç¶å¾ç¹¼çºã"},submit:{_:"Send my email & continue to :provider","zh-hk":"å¯åºé»éµä¸¦åå¾ :provider"},skip:{_:"No thanks, continue without email","zh-hk":"å使åï¼ç´æ¥åå¾"},assurance:{_:"It won't affect your application. Takes about 5 seconds.","zh-hk":"åæå½±é¿ä½ å
ç³è«ï¼å¤§ç´åªé 5 ç§"},confirmation:{_:"You're all set. Taking you to :providerâ¦","zh-hk":"ä¸åå°±ç·ï¼æ£å¸¶ä½ åå¾ :providerâ¦"}}),s=(0,r.staticText)({consent:{_:(0,a.jsxs)(a.Fragment,{children:["I agree that MoneyHero may use the email I provide on this page, together with the loan product I selected on MoneyHero, processed in accordance with the ",l("https://www.moneyhero.com.hk/en/page/moneyhero-privacy-policy","Privacy Policy"),", to send me personalised recommendations and marketing about other personal loan products or services. I understand this consent is voluntary and I can unsubscribe anytime."]}),"zh-hk":(0,a.jsxs)(a.Fragment,{children:["æåæ MoneyHero ä½¿ç¨æå¨æ¬é æä¾çé»éµï¼ä»¥åææ¼ MoneyHero 鏿ç貸款ç¢åï¼æ",l("https://www.moneyhero.com.hk/zh/page/moneyhero-privacy-policy","ç§é±æ¿ç"),"èçï¼ä¸¦å°±å
¶ä»ç§äººè²¸æ¬¾ç¢åææååæç¼éå人å建è°åå¸å ´æ¨å»£è³è¨ãææç½æ¤åæå±¬èªé¡ï¼ä¸¦å¯é¨æåæ¶è¨é±ã"]})}});e.s(["EmailCaptureConsentText",0,s,"EmailCaptureStaticText",0,i],168437);var o=e.i(7004),c=e.i(131894),d=e.i(48565),u=e.i(736736);let p="hk-pl-lead-form",m="lead form";e.s(["trackClose",0,()=>{(0,u.track)({event:"form_interact",lead_form_name:p,form_type:m,action:"close",component_type:"button",component_title:"Overlay/Header_Close",vertical_code:"PL",form_field_value:""})},"trackConsentToggle",0,e=>{(0,u.track)({event:"form_interact",lead_form_name:p,form_type:m,action:e?"check":"uncheck",component_type:"checkbox",component_title:"Overlay/Personal Information_Marketing Consent",vertical_code:"PL",form_field_value:""})},"trackEmailFieldFill",0,()=>{(0,u.track)({event:"form_interact",lead_form_name:p,form_type:m,action:"fill",component_type:"textbox",component_title:"Overlay/Personal Information_Email Address",vertical_code:"PL",form_field_value:"<<PII redacted>>"})},"trackFormSubmit",0,e=>{let{email:t,item:n}=e;(0,u.track)({event:"form_submit",lead_form_name:p,form_type:m,action:"click",vertical_code:"PL",marketing_consent:"yes",form_submission_id:(0,d.default)(),items:[{item_id:n.itemId,item_name:n.itemName,item_brand:n.itemBrand,index:n.index}],user_data:{email_hash_md5:(0,o.generateEmailHash)(t),email_hash_sha256:(0,c.sha256)(t.toLowerCase())}})},"trackSkip",0,e=>{(0,u.track)({event:"form_interact",lead_form_name:p,form_type:m,action:"click",component_type:"button",component_title:`Overlay/Footer_${e}`,vertical_code:"PL",form_field_value:""})}],100755)},585819,e=>{"use strict";var t=e.i(843476);e.i(782316);var n=e.i(71613);e.i(397031);var a=e.i(271159);e.i(17068);var r=e.i(289981);e.i(87209);var l=e.i(786031),i=e.i(218646),s=e.i(789450);e.i(910881);var o=e.i(943032),c=e.i(271645),d=e.i(708291),u=e.i(168437),p=e.i(100755),m=e.i(902639),h=e.i(862119);e.i(843780);var f=e.i(892063);e.i(882337);var g=e.i(163137),x=e.i(295750),b=e.i(418081),y=e.i(662660);e.s(["EmailCaptureModal",0,()=>{let e=(0,r.useEmailCapturePayload)(),_=(0,r.useEmailCaptureApi)(),v=(0,x.useClientContext)(),C=(0,b.getClientTranslations)(u.EmailCaptureStaticText,v),T=(0,b.getClientTranslations)(u.EmailCaptureConsentText,v),E=(0,g.useIdentity)(),{settings:N}=(0,m.usePageDataContext)(),A=(0,n.useCtaResolver)(),[k,w]=(0,c.useState)(""),[S,I]=(0,c.useState)(!1),[D,L]=(0,c.useState)(!1),[j,P]=(0,c.useState)(!1),M=(0,c.useRef)(!1),O=e?.product,R=e?.loanParams,B=null!=e,F=O?.provider?.provider_name??"";(0,c.useEffect)(()=>{e&&(w(E?.email??""),I(!1),L(!1),P(!1),M.current=!1)},[e,E?.email]);let H=(0,c.useCallback)(()=>{let e=O?A({product:O,loanParams:R}):void 0;e?window.open(e,"_blank","noopener,noreferrer"):_?.close()},[O,R,A,_]),U=(0,c.useCallback)(()=>{H(),_?.close()},[H,_]),z=(0,c.useCallback)(()=>{(0,p.trackClose)(),U()},[U]),G=(0,c.useCallback)(()=>{(0,p.trackSkip)(C.skip),U()},[U,C.skip]),V=(0,c.useCallback)(()=>
7{S?(0,d.hasUsableEmail)(k)?(P(!0),h.feApiFrontClient.submitEmailCaptureLead({email:k,rewardId:O?.reward_id,productUid:O?.entryUID??O?.uid,productName:O?.product_name??O?.title,providerName:O?.provider?.provider_name,loanAmount:R?.amount,loanTenure:R?.tenure,searchParams:window.location.search}).catch(()=>void 0),(0,p.trackFormSubmit)({email:k,item:{itemId:O?.title??"",itemName:O?.product_name??"",itemBrand:O?.provider?.provider_name??"",index:"0"}}),H()):U():L(!0)},[S,k,O,R,H,U]);if(!B)return null;let $=(0,d.getMonthlyRepayment)(O,v.currencyDisplay),Y=R&&(0,s.tr)($?"summaryLine":"summaryLineWithoutRepayment",C,{amount:`${v.currencyDisplay}${i.currencyFormatterNoDecimal.format(Number(R.amount))}`,tenure:R.tenure,monthlyRepayment:$??""});return(0,t.jsx)(l.Modal,{isOpen:!0,onClose:z,sheetOnMobile:!0,className:"md:!w-[560px] md:!min-w-0 md:!max-w-[560px] md:!rounded-2xl",children:(0,t.jsx)("div",{className:"flex flex-col gap-4 p-5 md:p-7",children:j?(0,t.jsxs)("div",{className:"flex min-h-60 flex-col items-center justify-center gap-5 text-center",children:[(0,t.jsx)(o.MaterialIcon,{icon:"check_circle",px:48,className:"text-highlights/green-dark"}),(0,t.jsx)("p",{className:"font-bold text-text/primary text-[19px] leading-[25px]",children:(0,s.tr)("confirmation",C,{provider:F})})]}):(0,t.jsxs)(t.Fragment,{children:[N?.site_logo?.url?(0,t.jsx)(a.CmsImage,{alt:N.site_logo.alternativeText||"MoneyHero",src:N.site_logo.url,width:140,height:24,sizes:{_:140},className:"h-6 w-auto self-start object-contain"}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"font-bold uppercase tracking-[0.04em] text-text/link text-[13px] leading-[22px]",children:(0,s.tr)("eyebrow",C,{provider:F.toUpperCase()})}),(0,t.jsx)("p",{className:"font-bold text-text/primary text-[19px] leading-[25px]",children:C.title})]}),Y?(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-xl px-4 py-3.5 bg-fill/primary-light",children:[(0,t.jsx)(o.MaterialIcon,{icon:"attach_money",px:20,className:"mt-px shrink-0 text-text/link"}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("p",{className:"font-semibold text-text/link text-[13px] leading-[22px]",children:C.summaryLabel}),(0,t.jsx)("p",{className:"font-normal text-text/secondary text-sm leading-[19.6px]",children:Y})]})]}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("label",{className:"font-semibold text-text/primary text-[13px] leading-[22px]",htmlFor:"pl-email-capture-email",children:C.emailLabel}),(0,t.jsx)("input",{autoComplete:"email",className:"w-full rounded-lg border border-borders/default px-3.5 py-3 bg-fill/card text-text/primary text-[15px] leading-5 placeholder:text-text/disabled focus:border-text/link focus:outline-none",id:"pl-email-capture-email",name:"email",onChange:e=>{M.current||(M.current=!0,(0,p.trackEmailFieldFill)()),w(e.target.value)},placeholder:C.emailPlaceholder,type:"email",value:k})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:D?"flex items-start gap-2.5 rounded-lg border border-highlights/red-dark p-3 bg-highlights/red-light":"flex items-start gap-2.5",children:[(0,t.jsx)(y.default,{checked:S,inputProps:{"aria-label":C.consentAriaLabel},onChange:e=>{(0,p.trackConsentToggle)(e),I(e),e&&L(!1)}}),(0,t.jsx)("span",{className:"text-text/secondary text-xs leading-[17px]",children:T.consent})]}),D?(0,t.jsxs)("p",{className:"flex items-center gap-1.5 font-semibold text-highlights/red-dark text-[13px] leading-4",children:[(0,t.jsx)(o.MaterialIcon,{icon:"warning",px:15}),C.consentError]}):null]}),(0,t.jsx)(f.default,{className:"h-auto min-h-12 w-full py-2.5",styleType:"cta",onClick:V,type:"button",children:(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2 whitespace-normal text-center font-bold text-base leading-5 md:text-xl",children:[(0,s.tr)("submit",C,{provider:F}),(0,t.jsx)(o.MaterialIcon,{icon:"open_in_new",px:18,className:"shrink-0"})]})}),(0,t.jsx)("button",{className:"w-full font-bold text-text/link text-[15px] leading-5",onClick:G,type:"button",children:C.skip}),(0,t.jsxs)("p",{className:"flex items-center justify-center gap-1.5 text-text/secondary-lighter text-xs leading-4",children:[(0,t.jsx)(o.MaterialIcon,{icon:"lock",px:13}),C.assurance]})]})})})}])},216829,943735,e=>{"use strict";var t=e.i(843476);let n=(0,e.i(770703).default)(()=>
7e.A(60743),{loadableGenerated:{modules:[917659]},ssr:!0});var a=e.i(761531),r=e.i(902639),l=e.i(378058);e.s(["GoogleReviewModalContainer",0,({slug:e})=>{let{pageData:i}=(0,r.usePageDataContext)(),{googleReviewProductId:s,closeModal:o}=(0,a.default)(),c=i.googleReviewProducts?.find(e=>e.uid===s);return c?(0,t.jsx)(n,{product:c,isOpen:!0,onClose:()=>o(),pushDataLayer:l.pushDataLayer,itemListName:e}):null}],216829);var i=e.i(962039);let s="ComponentPagesComponentFlexibleHeroBlockComponent";e.s(["getPdpFlushHeroSkipKeys",0,e=>{let t=e.filter(e=>!!e&&!1!==e.visible&&"ComponentPagesComponentProductMetaConfig"!==e.__typename),n=t.filter(e=>e.__typename===s).filter(e=>!!e.id).map(e=>(0,i.getBlockSkipKey)(e));if(0===n.length)return[];let a=t.find(e=>e.__typename!==s);return a?.__typename==="ProductDetailsComponent"&&"MODAL"!==a.renderingMode?n:[]}],943735)},642283,e=>{"use strict";var t=e.i(843476);e.i(397031);var n=e.i(271159);e.s(["GradientBackground",0,e=>{let{background_image:a,background:r}=e??{},l=a??r?.image;return(0,t.jsxs)("div",{className:"relative",children:[l?.url&&(0,t.jsx)("div",{className:"absolute inset-0 -z-1 h-63 overflow-hidden md:h-65 lg:h-70",children:(0,t.jsx)(n.CmsImage,{src:l.url,alt:l.alternativeText??"",fill:!0,loading:"eager",fetchPriority:"high",sizes:{_:"100vw"},className:"object-cover object-bottom"})}),(0,t.jsx)("div",{className:"absolute inset-0 -z-1 h-63 md:h-65 lg:h-70",style:{background:"linear-gradient(180deg, rgba(250, 250, 250, 0) 10%, #FAFAFA 100%)"}})]})}])},564348,244981,625678,e=>{"use strict";var t=e.i(843476);e.i(413990);var n=e.i(417903),a=e.i(642283),r=e.i(846086),l=e.i(295750);e.s(["TiProviderHeroWrapper",0,({hero:e,provider:i,headerBackground:s})=>{let{brand:o}=(0,l.useClientContext)();return("singsaver"===o||"moneyhero"===o)&&e&&i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.GradientBackground,{...s}),(0,t.jsx)(r.PageContentContainer,{className:"md:pt-spacing/padding/y",children:(0,t.jsx)(n.TiProviderHero,{provider:i,title:e.title,description:e.description,promoCode:e.promoCode,promoCodeEnabled:e.promoCodeEnabled})})]}):null}],564348);var i=e.i(962039);e.s(["getTrustStripSkipKeys",0,(e,t)=>("singsaver"===t||"moneyhero"===t)&&e.some(e=>e?.__typename==="ComponentPagesComponentPlanTierSelectorComponent"&&!1!==e.visible)?e.filter(e=>e?.__typename==="TrustStripComponent").filter(e=>!!e?.id).map(e=>(0,i.getBlockSkipKey)(e)):[]],244981),e.s(["resolveTiProviderHero",0,(e,t)=>{let n=e??[],a=n.find(e=>e?.__typename==="ComponentPagesComponentPlanTierSelectorComponent"),r=a?.provider,l=n.filter(e=>e?.__typename==="ComponentPagesComponentTiProviderHeroComponent"&&!!e.title?.trim()),i=("singsaver"===t||"moneyhero"===t)&&l.length>0&&!!r?.providerImage?.trim();return{provider:r,heroes:l,hero:l[0],hasVisibleTiProviderHero:i}}],625678)}]); 8 9//# debugId=deaa9a61-860c-323a-4145-23a8b53048db 10//# sourceMappingURL=4bbf94dcc3805349.js.map
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.