"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7695],{VIdu:function(e,t,n){n.d(t,{Em:function(){return getCountryAdTag},Tm:function(){return setGlobalTargeting},WV:function(){return getLocaleCategoryAdTag},gV:function(){return getCategorySlugFromArticleSlug},nP:function(){return getCategoryAdTag},od:function(){return getAdTag}});var r=n("u6S6"),a=n.n(r),i=n("Kvfn"),o=n("rIrU"),l=n("tytH");let getAdTag=e=>{let{countryAdTag:t,contentAdTag:n,forceTag:r}=e;return r?"/21682272649/".concat(t,"/").concat(r):n?n.redundant?"/21682272649/".concat(t,"/").concat(t,"_").concat(n.result):"/21682272649/".concat(t,"/").concat(n.result):"/21682272649/".concat(t,"/ad")},getCountryAdTag=(e,t)=>{let{isMobile:n}=t,r=o.Ar.DESKTOP;return n&&(r=o.Ar.MOBILE),o.MW[e]+r},getCategoryAdTag=e=>e.split("/").filter(Boolean).map(e=>(0,l.f)(a()(e))).join("/"),getMappings=(e,t)=>{let n="tl-PH"===e?t.replace("fil/",""):t,r=decodeURI(n.split(/[?#]/)[0]),a=(0,i.FD)(e,r),o=(0,i.YP)(e,r);return{foundMapping:a,foundNonRedundantMapping:o}},getLocaleCategoryAdTag=(e,t,n)=>{let r=[t,...n||[]].find(t=>{let n=getMappings(e,t);return n.foundMapping||n.foundNonRedundantMapping}),{foundMapping:a,foundNonRedundantMapping:i}=getMappings(e,r||"");if(!a&&!i){let n="tl-PH"===e?t.replace("fil/",""):t,r=decodeURI(n.split(/[?#]/)[0]);return{result:getCategoryAdTag(r),redundant:!0}}return{result:a||i||"",redundant:!!a}},getCategorySlugFromArticleSlug=e=>{let t=e.split("/").filter(Boolean);return t.pop(),t.join("/")},setGlobalTargeting=e=>{let t=window.location.pathname.split(/[-/]/).filter(Boolean);t.length>0&&e.setTargeting("Keyword_URL",t)}},em2k:function(e,t,n){n.d(t,{F:function(){return ageGenerate}});var r=n("Wgwc"),a=n.n(r);let ageGenerate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=Math.ceil(a()(t).diff(e,"week",!0)),r=a()(t).diff(e,"month");return{year:Math.floor(r/12),month:r%12,week:n}}},KBam:function(e,t,n){n.d(t,{kO:function(){return getAuthorFromArticleApi}});var r=n("LL/B"),a=n("eosF"),i=n("Wgwc"),o=n.n(i),l=n("rIrU");let c={medical:{intlKey:{long:"articlePage.reviewed_by.expert.medical",short:"articlePage.reviewed_by.expert.medical.short"},indicator:"".concat(l.Nr,"/reviewer-medical.svg")},expert:{intlKey:{long:"articlePage.reviewed_by.expert",short:"articlePage.reviewed_by.expert.short"},indicator:"".concat(l.Nr,"/reviewer-expert.svg")},written_by:{intlKey:{long:"articlePage.written_by.author",short:"articlePage.written_by.author.short"},indicator:"".concat(l.Nr,"/reviewer-editor.svg")},fact_checked_by:{intlKey:{long:"articlePage.fact_checked_by.author",short:"articlePage.fact_checked_by.author.short"},indicator:"".concat(l.Nr,"/reviewer-fact-check.svg")}};function getAuthorFormatOptionsProps(e){return e?(null==e?void 0:e.profile_url)&&(null==e?void 0:e.turn_off_profile)?{children:(null==e?void 0:e.display_name)||(null==e?void 0:e.name)||""}:{href:e.profile_url||"",children:e.display_name||e.name||""}:{children:""}}function getAuthorFromArticleApi(e){let{article:t,locale:n=a.L.Vietnam,version:i="long"}=e,{reviewed:l,post_modified:u}=t||{},{expert:s,author:d,fact_check:g,is_author:m}=l||{},{avatar:p="",avatar_thumbnail:h="",display_name:y="",name:v="",profile_url:b="",turn_off_profile:T}=g||{},w=o()(u),C=c.fact_checked_by,E=h||p,_=y||v,L=T?"":b,I=w.isValid()?w.format(r.I[n].dateFormat):"",N={expert_display_name:getAuthorFormatOptionsProps(s),author_name:getAuthorFormatOptionsProps(d),fact_check_display_name:getAuthorFormatOptionsProps(g),post_modified:{children:I}};if(s){let{avatar:e="",avatar_thumbnail:t="",display_name:n="",name:r="",profile_url:a="",specialty:i="",organisation:o="",turn_off_profile:l}=s||{};N.specialty={children:i},N.organisation={children:o},E=t||e||E,_=n||r||_,L=l?"":a||L,C=m?c.written_by:c.expert}return{intlKey:C.intlKey[i],indicator:C.indicator,avatar:E,avatar_alt:_,avatar_permalink:L,formatOptions:N}}},Uu9E:function(e,t,n){n.d(t,{T:function(){return bmiCalculate}});let bmiCalculate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{if(e&&t)return t/Math.pow(e/100,2)}catch(e){}return 0}},"5nj8":function(e,t,n){function hexToRgb(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1,r=e.slice(e.startsWith("#")?1:0);3===r.length?r=[...r].map(e=>e+e).join(""):8===r.length&&(n=!0),r=parseInt(r,16);let a={r:r>>>(n?24:16),g:(r&(n?16711680:65280))>>>(n?16:8),b:(r&(n?65280:255))>>>(n?8:0)};return t?a:"rgb"+(n?"a":"")+"("+a.r+", "+a.g+", "+a.b+(n?", ".concat(255&r):"")+")"}function rgbToHsb(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),a=r-Math.min(e,t,n),i=0===a?0:a&&r===e?(t-n)/a:r===t?2+(n-e)/a:4+(e-t)/a;return[60*(i<0?i+6:i),r&&a/r*100,100*r]}function hsbToRgb(e,t,n){t/=100,n/=100;let k=t=>(t+e/60)%6,f=e=>n*(1-t*Math.max(0,Math.min(k(e),4-k(e),1)));return[255*f(5),255*f(3),255*f(1)]}n.d(t,{At:function(){return rgbToHsb},Nv:function(){return hsbToRgb},oo:function(){return hexToRgb}})},vnrr:function(e,t,n){n.d(t,{v:function(){return copyToClipboard}});let copyToClipboard=async(e,t,n)=>{try{var r,a,i;if(null===(r=navigator)||void 0===r?void 0:r.clipboard)await (null===(i=navigator)||void 0===i?void 0:null===(a=i.clipboard)||void 0===a?void 0:a.writeText(e));else{let t=document.createElement("textarea");t.style.display="none",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}catch(e){null==n||n(e)}finally{t()}}},"2vNa":function(e,t,n){n.d(t,{D:function(){return cycleCircularArray}});function cycleCircularArray(e,t){let n=e.indexOf(t);return n===e.length-1?e[0]:e[n+1]}},ifsH:function(e,t,n){n.d(t,{B:function(){return generateDateArray}});var r=n("Wgwc"),a=n.n(r);function generateDateArray(e,t){let n=[],r=a()(e),i=a()(t);for(;r<=i;)n.push(a()(r)),r=a()(r).add(1,"day");return n.map(e=>e.toDate())}},ZjzG:function(e,t,n){n.d(t,{l:function(){return showDebug}});let showDebug=()=>"undefined"==typeof localStorage||"true"===localStorage.getItem("hhg_debug")},iAbL:function(e,t,n){n.d(t,{$K:function(){return isDefined},OH:function(){return currencyFormat},QG:function(){return currencyFormatMalaysia}});var r=n("rEaw"),a=n("nxPU");function isDefined(e){return null!=e}function currencyFormat(e,t,n){return e&&t?new Intl.NumberFormat(t,{style:"currency",currency:n}).format(Number(e)):"0 ".concat(a.Z5["vi-VN"]||"")}function currencyFormatMalaysia(e,t){if(!e)return"".concat(a.qq[r.MV.Malaysia]||"","0");let n=new Intl.NumberFormat(r.MV.Malaysia,{minimumFractionDigits:0,maximumFractionDigits:0}).format(Number(e));return"".concat(t||a.qq[r.MV.Malaysia]).concat(n)}},aNTj:function(e,t,n){n.d(t,{E:function(){return l}});var r=n("Sn6X"),a=n.n(r),i=n("KYiY"),o=n.n(i);let l=a().extend(o())},"9L6u":function(e,t,n){n.d(t,{QX:function(){return formatGenderUrl},dm:function(){return abbreviateNumber},p6:function(){return formatDate},zn:function(){return formatGender}});let formatDate=e=>{if(!e)return"";let t=new Date(e),n=Math.floor((Date.now()-t.getTime())/1e3),r=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"min",seconds:60},{label:"second",seconds:0}].find(e=>e.seconds{let t=String(e);if(e>=1e3){let n;let r=Math.floor((""+e).length/3);for(let t=2;t>=1;t--){n=parseFloat((0!=r?e/Math.pow(1e3,r):e).toPrecision(t));let a=(n+"").replace(/[^a-zA-Z 0-9]+/g,"");if(a.length<=2)break}n&&n%1!=0&&(n=n.toFixed(1)),t=n+["","k","m","b","t"][r]}return t},formatGenderUrl=e=>"male"===e?"m":"f",formatGender=e=>"m"===e?"male":"female"},BqSI:function(e,t,n){n.d(t,{u:function(){return formatNumber}});function formatNumber(e){return Number.isInteger(e)?e.toString():e.toFixed(2)}},lMwY:function(e,t,n){n.d(t,{I:function(){return trackCustomEvent},R:function(){return sendCompleteFlowEvent}});let r=0;function trackCustomEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=window.fbq;n?n("trackCustom",e,t):r<3?(setTimeout(()=>trackCustomEvent(e,t),1e3),r++):console.log("Unable to load Facebook Pixel")}function sendCompleteFlowEvent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=window.location.search.includes("itemId"),n=window.location.search.includes("resultId");n||t||trackCustomEvent("CompleteFlow",{status:!0,...e})}},jZMZ:function(e,t,n){n.d(t,{x:function(){return generateSelectItem}});function generateSelectItem(e,t,n){var r;return null===(r=e||[])||void 0===r?void 0:r.map(e=>({...e,label:String(e[t]),value:String(e[n])}))}},"3h3t":function(e,t,n){n.d(t,{A:function(){return getAge}});var r=n("Wgwc"),a=n.n(r),i=n("QgiU"),o=n.n(i);a().extend(o());let getAge=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD/MM/YYYY";return(null===(t=a()(e,n).toNow(!0).match(/\d+/))||void 0===t?void 0:t[0])||"0"}},"3HKn":function(e,t,n){n.d(t,{b:function(){return getChildrenArray}});var r=n("q1tI");function getChildrenArray(e){if(!e)return[];if((0,r.isValidElement)(e)){var t;return r.Children.toArray(null===(t=e.props)||void 0===t?void 0:t.children)}return r.Children.toArray(e)}},Tk9B:function(e,t,n){n.d(t,{k:function(){return getLocation}});let getLocation=async function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(!("geolocation"in navigator))return{location:null,error:"NOT_SUPPORTED",message:"Geolocation not supported"};if(!e&&"permissions"in navigator)try{let e=await navigator.permissions.query({name:"geolocation"});if("granted"!==e.state)return{location:null,error:"NO_PERMISSION",message:"User has not granted geolocation permission"}}catch(e){return console.warn("Permission query failed:",e),{location:null,error:"UNKNOWN",message:"Permission check failed"}}return new Promise(e=>{navigator.geolocation.getCurrentPosition(t=>{e({location:{longitude:t.coords.longitude,latitude:t.coords.latitude},error:null})},t=>{let n="UNKNOWN";switch(t.code){case t.PERMISSION_DENIED:n="PERMISSION_DENIED";break;case t.POSITION_UNAVAILABLE:n="POSITION_UNAVAILABLE";break;case t.TIMEOUT:n="TIMEOUT"}e({location:null,error:n,message:t.message})},{timeout:3e4,maximumAge:0})})}},A8m1:function(e,t,n){n.d(t,{K:function(){return getEnumKeyByEnumValue}});function getEnumKeyByEnumValue(e,t){var n;return null===(n=Object.entries(e).find(e=>{let[,n]=e;return n===t}))||void 0===n?void 0:n[0]}},ru7g:function(e,t,n){n.d(t,{I:function(){return getGender}});let getGender=e=>void 0!==e?0===e?"female":"male":""},"92VQ":function(e,t,n){n.d(t,{X:function(){return handleDeepLink}});function handleDeepLink(e){if(e)try{let t=new URL(e);t&&window.open(e,"_blank")}catch(e){console.log("\uD83D\uDE80 ~ handleDeepLink ~ error:",e)}}},Sdnq:function(e,t,n){n.d(t,{b:function(){return hasProtocol}});function hasProtocol(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/^https?:\/\//i.test(e)}},"9O6x":function(e,t,n){n.d(t,{Ko:function(){return formartSSOGenderToHealthtoolForm},eZ:function(){return checkAndSaveUserInfo}});var r=n("Wgwc"),a=n.n(r),i=n("09QT"),o=n("oQBk"),l=n("rIrU");let formartGenderToSso=e=>"male"===e?1:0,formartSSOGenderToHealthtoolForm=e=>1===e?"male":"female",checkAndSaveUserInfo=async e=>{let{userInfo:t,data:n,forceSaveBirthday:r=!1}=e;try{await Promise.all([n.height||n.weight||n.activityLevel||(null==t?void 0:t.birthday)===null&&n.birthday||r?(0,i.d)(o.y.SSO.UPDATE_HEALTH_TOOL,{method:"POST",data:{...n.height&&{height:n.height},...n.weight&&{weight:n.weight},...n.activityLevel&&{activity_level:n.activityLevel},...((null==t?void 0:t.birthday)===null&&(null==n?void 0:n.birthday)||r)&&{birthday:a()(n.birthday).format(l.yJ)}}},"sso"):void 0,(null==t?void 0:t.gender)===-1&&n.gender?(0,i.d)(o.y.SSO.UPDATE_PROFILE,{method:"POST",data:{gender:formartGenderToSso(n.gender)}},"sso"):void 0])}catch(e){console.log(e)}}},"G/jr":function(e,t,n){n.d(t,{y:function(){return hiddenEmailChar}});var r=n("eosF");r.L.Vietnam,r.L.Cambodia,r.L.Indonesia,r.L.Malaysia,r.L.PhilippinesEnglish,r.L.PhilippinesTagalog,r.L.Taiwan,r.L.Thailand,r.L.Myanmar;let hiddenEmailChar=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("@"),n=e.substring(0,t),r=n.length>3?3:n.length;return e.replace(e.substring(r,t),e.slice(r,t).replace(/./g,"x"))}},Dmus:function(e,t,n){n.d(t,{Qu:function(){return cleanLink},bG:function(){return normalizeText},sp:function(){return preProcessArticleHtml}});var r=n("iv2E");function cleanLink(e){return e.split("?")[0].split("/").filter((e,t)=>0===t||!!e).join("/")+"/"}function normalizeText(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}let preProcessArticleHtml=e=>{var t;let n=e.replace(/style="([^"]*)"/gi,(e,t)=>{let n=t.split(";").map(e=>e.trim()).filter(e=>e.startsWith("padding")||e.startsWith("margin")).join("; ");return n?'style="'.concat(n,'"'):""});return(n=(n=(n=n.replace(/]*href="/([^"]*)")([^>]*)>(.*?)<\/a>/gi,(e,t,n,a,i)=>{let o=n.replace("http://","https://"),l=i.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">"),c="").concat(i,""),u=!o.startsWith("http")||Object.values(r.domainLocales).concat(["hellohealthgroup.com","localhost:[a-z0-9]+"]).some(e=>{let t=RegExp("^(https?:\\/\\/)?([a-z0-9]+[.])*".concat(e,"(/|$)"),"i");return t.test(o)});return u&&(c=c.replace(/\s*target="[^"]*"/i,"").replace(/\s*rel="[^"]*"/i,"")),c})).replace(/]*src="([^"]*)")([^>]*)>/gi,(e,t,n,r,a)=>{let i=!(a<400)&&!r.includes("loading="),o=n.replace("http://","https://"),l="");return l})).replace(/]*src="http:\/\//g,e=>e.replace("http://","https://").replace("]*class="[^"]*continue-reading-articles[^"]*"[^>]*>[\s\S]*?<\/div>/g,"").replace(/

\s*<\/p>/g,"").replace(/

 <\/p>/g,"").replace(/(<[^>]*id="mc4wp-form-1"[^>]*)>/g,'$1 style="display: none">')).replace(/]*src="([^"]*)"[^>]*>/g,(e,t)=>{let n=new URL(t,"http://example.com");return n.protocol="https:",n.searchParams.set("autoplay","1"),n.searchParams.set("mute","1"),e.replace(t,n.toString()).replace("await (0,o.Ov)("footer-data",()=>(0,l.t9)((0,c.vg)(i.y.COMMON.GET_FOOTER_INFO),"GET").then(e=>{var t,n,r,i,o;return(null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(t=n.general)||void 0===t?void 0:t.copyright)&&(e.data.general.copyright=null==e?void 0:null===(o=e.data)||void 0===o?void 0:null===(i=o.general)||void 0===i?void 0:null===(r=i.copyright)||void 0===r?void 0:r.replace(/{currentYear}/gi,a()().get("year"))),e}),e=>(null==e?void 0:e.status)===1,6e5)||{}},iVLN:function(e,t,n){n.d(t,{Ov:function(){return getDataWithCache}});var r=n("rIrU");let getCachedItem=e=>{{let t;try{t=JSON.parse(localStorage.getItem("iso-cache-"+e)||"{}")}catch(e){}return t||{}}},setCachedItem=(e,t)=>{try{localStorage.setItem("iso-cache-"+e,JSON.stringify({data:t,time:Date.now()}))}catch(e){}},getDataWithCache=async function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9e5,i=getCachedItem(e);if(i&&i.data&&i.time&&Date.now()-i.time<(r.Mw?a:12e4))return i.data;if(t){let r=await t();return(!n||n(r))&&setCachedItem(e,r),r}return null}},Mtck:function(e,t,n){n.d(t,{O:function(){return getNavMenuContentPersist}});var r=n("nsdv"),a=n("/tR3"),i=n("iVLN");let getNavMenuContentPersist=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-PH";return await (0,i.Ov)("nav-menu-content",()=>(0,r.g)(e).then(e=>{var t;return(null===(t=e.categories)||void 0===t?void 0:t.items)&&(e.categories.items=e.categories.items.map(e=>(delete e.childCates,delete e.catParent,delete e.metaTag,delete e.mobileCoverImage,delete e.reviewedDate,delete e.textColor,delete e.thumnailColor,(0,a.kd)(e)))),e}))||{}}},SGew:function(e,t,n){n.d(t,{Z:function(){return noop}});let noop=()=>{}},"GvV+":function(e,t,n){n.d(t,{Nw:function(){return sanitize},Tn:function(){return decodeMention},aD:function(){return i},rz:function(){return decodePostUrl}});var r=n("XiKa"),a=n.n(r);n("rIrU");let sanitize=(e,t)=>e?a()(e,{allowedTags:["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern","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","math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts","#text","mention"],disallowedTagsMode:"discard",allowedAttributes:{"*":["target","data-*","accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot","accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width",...t?["style"]:[],"surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan","accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns","xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]}}):"",getAnchorHtml=e=>{let{url:t,text:n,method:r}=e,a=n.indexOf(n.trimStart()),i=n.trimEnd().length,o=n.substring(0,a),l=n.substring(a,i),c=n.substring(i);return"edit"===r?"".concat(o,'').concat(l,"").concat(c):"display"===r&&(t.startsWith("http://")||t.startsWith("https://"))?"".concat(o,'').concat(l,"").concat(c):n},decodePostUrl=(e,t)=>e.replace(/\[a\+href="/([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,(e,n,r)=>{let a=r||n;return getAnchorHtml({text:a,url:n,method:t})}).replace(/]*href="/([^>"]+)"[^>]*>([^<]+)<\/a>/gim,(e,n,r)=>{let a=r||n;return getAnchorHtml({text:a,url:n,method:t})}),decodeMention=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.replace(/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,(e,n,r)=>{let a=t.find(e=>String(e.id)===n);if(!a){if(!r)return"";let e="";return r.replace(/\+name="([^<"]+)"/i,(t,n)=>(e=n,t)),'').concat(e,"")}return'').concat(a.name,"")})},i=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"]},tQmg:function(e,t,n){n.d(t,{m:function(){return renderDate}});var r=n("LL/B"),a=n("eosF"),i=n("Wgwc"),o=n.n(i),l=n("rIrU");function renderDate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.L.PhilippinesEnglish,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.Ze;return o()(e,n).isValid()?o()(e,n).format(r.I[t].dateFormat):e}},"6DcS":function(e,t,n){n.d(t,{f:function(){return startCase}});let startCase=e=>{if(!e)return"";let t=e.split("");return t[0].toUpperCase(),t.join("")}},tytH:function(e,t,n){n.d(t,{f:function(){return capitalizeFirstLetter}});function capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}},"81CV":function(e,t,n){n.d(t,{LN:function(){return ssoIntents},YR:function(){return checkUntilFinished},sk:function(){return overrideParamsByQuery}});var r=n("Q6jF"),a=n("UNYN");let i=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],o=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...i],overrideParamsByQuery=(e,t)=>{let n=Object.keys(t);return n.map(n=>{let r=t[n];if("source"===n){e.is_new="first_login"===r;return}if(o.includes(n)){if(i.includes(n)){try{e[n]=JSON.parse(r)}catch(e){}return}if("account_id"===n||"current_score"===n||"bot_id"===n){e[n]=parseInt(r);return}e[n]=r}}),e},ssoIntents=e=>[{id:(0,r.Z)(),label:JSON.stringify({title:"",description:""}),type:a.DE.SSO_INTENT,url:""},{id:(0,r.Z)(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:a.DE.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:(0,r.Z)(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:a.DE.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:(0,r.Z)(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:a.DE.SSO_INTENT,url:"/images/subot/shield.svg"}];function checkUntilFinished(e){let t=e.condition,n=e.finished,r=e.timeout||3e3,a=new Date().getTime(),i=setInterval(()=>{let e=new Date().getTime();(e-a>r||t())&&(clearInterval(i),n())},300)}},"6uPG":function(e,t,n){n.d(t,{Kj:function(){return r},_o:function(){return genPropTrack}});let genDataTrack=(e,t,n)=>{let r={...e};return(null==n?void 0:n.key)&&(r[n.key]=r[n.key].replace("{value}",n.value)),{...r,label:t||r.label}},genPropTrack=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/./g,e=>a[e]||e).toLowerCase().trim().replace(/[^a-z0-9\-]/g," ").replace(/-+/g,"-")}},jY7X:function(e,t,n){n.d(t,{Av:function(){return isCareLink},LV:function(){return configCdnImageSize},WD:function(){return getDetailPageUrl},js:function(){return formatUrlWithEncrypedGa}});var r=n("LL/B"),a=n("rIrU");function formatUrlWithEncrypedGa(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!n||!t.startsWith("http")||!n)return t;try{e=new URL(t)}catch(e){return t}return e.searchParams.set("hhgclid",n),e.toString()}function configCdnImageSize(e,t){if(function(e,t){try{return new URL(e,void 0),!0}catch(e){return!1}}(e)){let n=window.devicePixelRatio||1,r=new URL(e);r.searchParams.set("w",(t.width*n).toString());let a=RegExp("-\\d+x\\d+(?=\\.\\w+$)","g"),i=r.pathname.replace(a,"");return"".concat(r.origin).concat(i).concat(r.search)}return e}let i={[r.p.VACCINE]:"VACCINATIONS",[r.p.IVF]:"IVF",[r.p.EGG_FREEZING]:"EGG_FREEZING",[r.p.HEALTH_SCREENER]:"HEALTH_SCREENER"},getDetailPageUrl=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.vI;if(!t)return a.sb;let o=i[e],l=null===(n=a.a8[t])||void 0===n?void 0:n[o];return l?"/".concat(r).concat("vi-VN"===t?"/dich-vu":"","/").concat(l,"/"):a.sb};function isCareLink(e){if(!e)return!1;let t=function(e){if(!e)return"";try{let t=new URL(e);return t.pathname}catch(n){let[t]=e.split("?")[0].split("#");return t}}(e);return t.startsWith("/care/")}}}]);