(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3951,1420],{67148:function(e,t,n){"use strict";n.d(t,{c:function(){return p},u:function(){return c}});var r=n(22470),o=n(67294),i=n(9465),a=n(58499),s=n(86315);function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=e=>{const t=(0,o.useRef)("");(0,o.useEffect)((()=>((0,r.a)(void 0,void 0,void 0,(function*(){var n,r,o,a,s;if(!t.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),t.current=e}if(null===(r=null===(n=window.localStorage)||void 0===n?void 0:n.setItem)||void 0===r||r.call(n,"fbClientIp",JSON.stringify({client_ip_address:(null===(o=t.current)||void 0===o?void 0:o.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null===e||void 0===e?void 0:e.id){const[t,n,r,o,c,u]=yield Promise.all([e.email?l(e.email):null,e.phone?l(e.phone):null,e.birthday?l(e.birthday.split("-").join("")):null,e.gender?"m":"f",e.city_name?l(e.city_name).then((e=>e.replace(/\s/g,""))):null,e.name?l(e.name):null]);(0,i.ej)("_fbc"),(0,i.ej)("_fbp");const d={user_id:e.id};u&&(d.fn=u),t&&(d.em=t),n&&(d.ph=n),r&&(d.db=r),c&&(d.ct=c),null===(s=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===s||s.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[e])},u={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"\u1796\u1796\u17c4\u17c7","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e23\u0e23\u0e20\u0e4c","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy","zh-SG":"pregnancy"},d={[s.L.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[s.L.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.Singapore]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[s.L.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};const p=e=>{const{locale:t}=(0,a.u)();return{isPregnancy:(0,o.useMemo)((()=>decodeURI(e.replace(/\//gi,"")).includes(u[t])),[]),isParenting:(0,o.useMemo)((()=>{var n;return decodeURI(e.replace(/\//gi,"")).includes(null===(n=d[t])||void 0===n?void 0:n.parenting)}),[]),type:(0,o.useMemo)((()=>function(e,t){const n=e.split("/");for(const r in t){const e=t[r];if(n.includes(e))return r}return null}(e,d[t])),[e,t])}}},44020:function(e){"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r0?a[0].toUpperCase():"A"})})}},55795:function(e,t,n){"use strict";n.d(t,{V:function(){return j}});var r,o,i=n(85893),a=n(67294),s=n(10917),l=n(22398),c=n(67128),u=n(38831),d=n(86896),p=n(4266);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t p *{vertical-align:middle;}*{pointer-events:none;}}}}.articles-wrapper{margin:0 -1rem;-ms-overflow-style:none;overflow-x:auto;scrollbar-width:none;user-select:none;&::-webkit-scrollbar{display:none;}&.sliding{cursor:grabbing;> *{pointer-events:none;}}.articles-wrapper-inner{display:inline-flex;padding:0 1rem;.article-card{display:flex;width:300px;flex-direction:column;padding:1rem;border:1px solid #e4e8ec;border-radius:6px;.content{flex:1;justify-content:space-between;}}.article-card:not(:last-child){margin-right:1rem;}}}.see-all-button{width:100%;border-color:#f1f3f5;margin-top:1rem;background:#f1f3f5;color:",";*{pointer-events:none;}}",""],A.M.mbDown,(function(e){var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.gray800}),m.fn?(0,C.iv)(["border:1px solid #f3f3f3;border-radius:1rem;box-shadow:0px 1px 3px rgb(0 0 0 / 8%);"]):""),M=(0,n(44036).k)((function(){return{root:{marginBottom:24}}}));function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t div{box-shadow:none;}}.lp--affiliate-product{.arrow-left{left:-20px;}.arrow-right{right:-16px;}}.bullet-nav{bottom:-10px;}"],(function(e){var t,n=e.theme;return(null===n||void 0===n||null===(t=n.colors)||void 0===t?void 0:t.blue50)||""})),C.ZP.div.withConfig({displayName:"subotIntentstyled__SubotInlineIntentFinalRow",componentId:"sc-vkw5h2-10"})(["display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;margin:-8px;"]),C.ZP.div.withConfig({displayName:"subotIntentstyled__SubotInlineIntentCol",componentId:"sc-vkw5h2-11"})(["width:",";padding:4px;","{width:100%;}"],(function(e){return e.width||"100%"}),_.M.mbDown)),B=C.ZP.div.withConfig({displayName:"subotIntentstyled__SubotInlineIntentRow",componentId:"sc-vkw5h2-12"})(["display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;margin:-4px;"]),H=C.ZP.div.withConfig({displayName:"subotIntentstyled__SubotInlineIntentList",componentId:"sc-vkw5h2-13"})(["margin:20px 0;"]);!function(e){e.BOT_TEXT="bot-text",e.BOT_IMAGE="bot-image",e.BOT_BUTTON="bot-button",e.BOT_URL="bot-url",e.SSO_INTENT="sso-intent"}(o||(o={}));var R=function(e){var t=e.intent;if(!t.url)return(0,a.jsx)(a.Fragment,{});var n=function(){try{return Boolean(JSON.parse((null===t||void 0===t?void 0:t.label)||""))}catch(e){return!1}}();return(0,a.jsx)(L,{width:"50%",children:(0,a.jsxs)(M,{children:[(0,a.jsx)("img",{src:t.url,alt:t.label,className:"intent-img ".concat(t.label&&"has-label")}),n&&(0,a.jsx)("h4",{className:"intent-img-label",children:t.label})]})})},U=function(e){var t=e.intent,n=![o.SSO_INTENT].includes(null===t||void 0===t?void 0:t.type);return(0,a.jsxs)(A,{children:[(0,a.jsx)(N,{children:n&&t&&[o.BOT_TEXT,o.BOT_BUTTON].includes(null===t||void 0===t?void 0:t.type)&&(0,a.jsx)("div",{className:"title",children:t.label})}),t&&[o.BOT_IMAGE].includes(null===t||void 0===t?void 0:t.type)&&(0,a.jsx)(T,{children:(0,a.jsx)(R,{intent:t})})]})},F=(r={},(0,i.Z)(r,o.BOT_TEXT,(function(e){var t=e.intent;return null!==t&&void 0!==t&&t.label?(0,a.jsx)(L,{children:(0,a.jsx)(D,{children:null===t||void 0===t?void 0:t.label})}):(0,a.jsx)(a.Fragment,{})})),(0,i.Z)(r,o.BOT_IMAGE,R),(0,i.Z)(r,o.BOT_BUTTON,(function(e){var t=e.intent;return null!==t&&void 0!==t&&t.label?(0,a.jsx)(L,{width:"60%",children:(0,a.jsx)(I,{size:"lg",color:"primary",onClick:function(){window.location.href=t.url},isBlock:!0,children:null===t||void 0===t?void 0:t.label})}):(0,a.jsx)(a.Fragment,{})})),(0,i.Z)(r,o.BOT_URL,(function(e){var t=e.intent,n=(0,u.useMemo)((function(){return t.label.includes("{")?JSON.parse(t.label):{}}),[t.label]);return(0,a.jsx)(a.Fragment,{children:!!Object.keys(n).length&&(0,a.jsx)(L,{children:(0,a.jsxs)(Z,{children:[(0,a.jsx)("div",{className:"feature",children:(0,a.jsx)("a",{href:null===n||void 0===n?void 0:n.url,className:"feature-wrapper",children:(0,a.jsx)("img",{src:null===n||void 0===n?void 0:n.thumbnail,alt:null===n||void 0===n?void 0:n.title,className:"feature-img"})})}),(0,a.jsx)("div",{className:"body",children:(0,a.jsx)("a",{href:null===n||void 0===n?void 0:n.url,children:(0,a.jsx)("h5",{className:"title",children:null===n||void 0===n?void 0:n.title})})})]})})})})),(0,i.Z)(r,o.SSO_INTENT,(function(e){var t=e.intent,n=function(){try{return null!==t&&void 0!==t&&t.label?JSON.parse(null===t||void 0===t?void 0:t.label):{}}catch(e){return{}}}();return n||null!==n&&void 0!==n&&n.title?(0,a.jsx)(L,{children:(0,a.jsxs)(E,{children:[t.url&&(0,a.jsx)("img",{src:t.url,className:"icon",alt:""}),(0,a.jsxs)("div",{className:"content",children:[(0,a.jsx)("h3",{className:"title",children:n.title}),(0,a.jsx)("div",{className:"description",children:null===n||void 0===n?void 0:n.description})]})]})}):(0,a.jsx)(a.Fragment,{})})),r);function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t *{text-align:center;}}.survey-thankyou-result{margin-top:1rem;}}.survey-question-text-wrapper{margin-bottom:24px;.survey-question-title{margin-bottom:4px;}}.survey-result-total-votes{margin-top:20px;color:",";}"],(function(e){var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral100}),(function(e){var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.white}),(function(e){var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.gray500})),he=C.ZP.div.withConfig({displayName:"indexstyled__SubotActionPollChoiceResult",componentId:"sc-19e5lcv-1"})(["position:relative;z-index:0;display:flex;overflow:hidden;align-items:center;padding:16px 20px;border-radius:6px;margin-bottom:8px;.number{width:32px;margin-right:14px;font-weight:600;}.content{flex:1;}.icon{width:16px;margin-left:8px;}&:before{position:absolute;z-index:-1;top:0;right:",";bottom:0;left:0;background-color:",";content:'';transition:0.3s all linear;}&:after{position:absolute;z-index:-2;top:0;right:0;bottom:0;left:0;background-color:",";content:'';}","{padding:6px 16px;}"],(function(e){var t=e.percent;return t?"".concat(100-t,"%"):"100%"}),(function(e){var t,n,r=e.theme;return e.is_chosen?(null===r||void 0===r||null===(t=r.colors)||void 0===t?void 0:t.blue50)||"#E3F2FF":(null===r||void 0===r||null===(n=r.colors)||void 0===n?void 0:n.neutral100)||"#E4E8EC"}),(function(e){var t,n=e.theme;return(null===n||void 0===n||null===(t=n.colors)||void 0===t?void 0:t.neutral50)||"#F7F9FC"}),_.M.mbDown);var be=function(e){var t,n,r,o=e.subotData,i=e.url,s=e.chatBotId,d=e.accountId,p=e.onScrollIntoView,f=e.resultSubot,v=e.onChangeResult,g=o.node,y=(0,h.Z)().formatMessage,x=(0,u.useContext)(m.I).pushNotifications,w=(0,u.useState)(),O=w[0],k=w[1],S=(null===(t=g.intents.find((function(e){return"thank-you-image"===e.type})))||void 0===t?void 0:t.url)||"",_=(null===(n=g.intents.find((function(e){return"thank-you-title"===e.type})))||void 0===n?void 0:n.label)||"Thank you !",C=(null===(r=g.intents.find((function(e){return"thank-you-body"===e.type})))||void 0===r?void 0:r.label)||"We appreaciate your time",I=g.actions.find((function(e){return"result-button"===e.type})),E=function(){var e=(0,c.Z)(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}return e.abrupt("return");case 2:if(!f){e.next=5;break}return k(f),e.abrupt("return");case 5:return e.prev=5,e.next=8,(0,b.t9)((0,b.jX)(j.SD.TOGETHER.SURVEY.CHAT_WITH_BOT),"POST",{data:{current_score:o.current_score||0,current_selected:o.current_selected||[],current_polls:o.current_polls||{},bot_id:s,cookie_id:(0,b.fj)()||"",window_id:(0,b.ZY)()||"",url:i,title_url:document.title,ga_client_id:(0,b.gP)()||"",account_id:d,mode:"inline",node_id:g.id,action_id:I.id,action_value:I.key,form_submit_meta:[],selected_actions:{}}});case 8:if(!((t=e.sent)&&t._data&&t._data.node)){e.next=14;break}return v(t._data),k(t._data),p&&p(),e.abrupt("return");case 14:throw new Error("Something went wrong");case 17:e.prev=17,e.t0=e.catch(5),x({message:y({id:"notification.comment.somethingWrong"}),type:"danger"});case 20:case"end":return e.stop()}}),e,null,[[5,17]])})));return function(){return e.apply(this,arguments)}}();if(O){var N,T=0,A=(null===(N=O.node.intents.filter((function(e){return"bot-text"===e.type}))[0])||void 0===N?void 0:N.label)||"",D=O.node.actions.filter((function(e){return"poll-choice"===e.type})),M=O.node.actions.find((function(e){return"poll-result"===e.type})),Z=y({id:"survey.totalVotes",defaultMessage:"Total votes"});if(M){var L=M.label.split(":");L&&2===L.length&&(T=parseInt(L[1]))}return(0,a.jsx)(ge,{children:(0,a.jsxs)("div",{className:"survey-inner-wrapper",children:[(0,a.jsx)("div",{className:"survey-question-text-wrapper",children:(0,a.jsx)(pe.H,{className:"survey-question-title",tag:"h4",children:A})}),D.map((function(e){return(0,a.jsxs)(he,{percent:(null===e||void 0===e?void 0:e.percent)||0,is_chosen:null===e||void 0===e?void 0:e.is_chosen,children:[(0,a.jsxs)("div",{className:"number",children:[null===e||void 0===e?void 0:e.percent,"%"]}),(0,a.jsx)("div",{className:"content",children:null===e||void 0===e?void 0:e.label}),(0,a.jsx)("div",{className:"icon",children:(null===e||void 0===e?void 0:e.is_chosen)&&(0,a.jsx)(ve,{viewBox:"0 0 16 16"})})]},e.id)})),M&&(0,a.jsxs)(fe.T,{size:"c1",type:"semiBold",className:"survey-result-total-votes",children:[Z,": ",T]})]})})}return(0,a.jsx)(ge,{children:(0,a.jsx)("div",{className:"survey-inner-wrapper",children:(0,a.jsxs)("div",{className:"survey-thankyou-wrapper-inner",children:[S?(0,a.jsx)("img",{src:S,alt:"",className:"survey-thankyou-image"}):(0,a.jsxs)("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"survey-thankyou-icon",children:[(0,a.jsx)("path",{d:"M61.5 122C94.6371 122 121.5 95.1371 121.5 62C121.5 28.8629 94.6371 2 61.5 2C28.3629 2 1.5 28.8629 1.5 62C1.5 95.1371 28.3629 122 61.5 122Z",fill:"#E3F2FF"}),(0,a.jsx)("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),(0,a.jsx)("path",{d:"M82.9048 72.6663H101.5L87.597 40H35.403L21.5 72.6663H40.0952V91H83.0786L82.9048 72.6663Z",fill:"#2C74DF"}),(0,a.jsx)("path",{d:"M74.4004 15.0005H39.863C36.9017 15.0005 34.5 17.4022 34.5 20.3635V72.5769C34.5 75.5383 36.9017 77.9399 39.863 77.9399H83.1357C86.097 77.9399 88.4987 75.5383 88.4987 72.5769V29.0988L88.4987 21.0005C88.4987 17.6868 85.8124 15.0005 82.4987 15.0005H74.4004Z",fill:"white"}),(0,a.jsx)("path",{d:"M88.8529 80.1077H34.1469C31.8699 80.1077 30.06 78.3036 30.06 76.0338V65.3837C30.06 63.1139 31.8699 61.3098 34.1469 61.3098H88.8529C91.1299 61.3098 92.9398 63.1139 92.9398 65.3837V76.0338C92.9398 78.3036 91.1299 80.1077 88.8529 80.1077Z",fill:"#E4E8EC"}),(0,a.jsx)("path",{d:"M90.838 85.4512H32.1618C29.8849 85.4512 28.075 83.6471 28.075 81.3774V70.7272C28.075 68.4575 29.8849 66.6533 32.1618 66.6533H90.7796C93.0566 66.6533 94.8665 68.4575 94.8665 70.7272V81.3774C94.9249 83.6471 93.0566 85.4512 90.838 85.4512Z",fill:"white"}),(0,a.jsx)("path",{d:"M103.748 75.4919V105.755C103.748 107.675 102.172 109.247 100.245 109.247H23.0031C21.0764 109.247 19.5 107.675 19.5 105.755V75.4919C19.5 73.5713 21.0764 72 23.0031 72H42.3866C44.3133 72 45.8897 73.5713 45.8897 75.4919V80.8461C45.8897 81.1952 46.1232 81.428 46.4735 81.428H76.7749C77.1253 81.428 77.3588 81.1952 77.3588 80.8461V75.4919C77.3588 73.5713 78.9352 72 80.8618 72H100.245C102.172 72 103.748 73.5713 103.748 75.4919Z",fill:"#45A4FF"}),(0,a.jsx)("path",{d:"M51.9541 91.3767V94.4612C51.9541 96.0907 53.2386 97.3711 54.8733 97.3711H67.7179C69.3526 97.3711 70.6371 96.0907 70.6371 94.4612V91.3767",stroke:"#2C74DF",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M120.5 38.0251C118.5 37.7793 117.25 39.3768 118.125 41.22L118.375 41.9573C119.125 43.8006 118 45.398 116 45.1523L115.25 45.0294C113.25 44.7836 112 46.3811 112.875 48.2244L113.25 48.9616C114 50.8049 112.875 52.4025 110.875 52.1567L110.125 52.0337C108.625 51.9109 107.5 52.7712 107.5 54",stroke:"#FE921D",strokeWidth:"1.9096",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M1.53299 62C1.2644 63.413 2.6745 64.337 4.35323 63.8478L5.02472 63.6304C6.70346 63.087 8.11356 64.0109 7.84496 65.4783L7.7107 66.0217C7.4421 67.4348 8.8522 68.3587 10.5309 67.8696L11.2024 67.6522C12.8812 67.1087 14.2913 68.0326 14.0227 69.5L13.8884 70.0435C13.687 71.1304 14.4256 71.8913 15.5 72",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M118 92C119.381 92 120.5 90.8807 120.5 89.5C120.5 88.1193 119.381 87 118 87C116.619 87 115.5 88.1193 115.5 89.5C115.5 90.8807 116.619 92 118 92Z",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M82.0001 3.18747L83.1875 7.53467L87.5347 6.34727L86.3473 2.00007L82.0001 3.18747Z",stroke:"#00B16A",strokeWidth:"2.1628",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M17.0001 28C18.1046 28 19 27.1045 19 25.9999C19 24.8954 18.1046 24 17.0001 24C15.8955 24 15 24.8954 15 25.9999C15 27.1045 15.8955 28 17.0001 28Z",stroke:"#FE921D",strokeWidth:"2.3278",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M61.5 26.6667C54.136 26.6667 48.1667 32.6361 48.1667 40.0001C48.1667 47.3641 54.136 53.3334 61.5 53.3334C68.864 53.3334 74.8334 47.3641 74.8334 40.0001C74.8334 32.6361 68.864 26.6667 61.5 26.6667ZM69.1094 36.9427L59.776 46.2761C59.516 46.5361 59.1747 46.6667 58.8334 46.6667C58.492 46.6667 58.1507 46.5361 57.8907 46.2761L53.8907 42.2761C53.3694 41.7547 53.3694 40.9121 53.8907 40.3907C54.412 39.8694 55.2547 39.8694 55.776 40.3907L58.8334 43.4481L67.224 35.0574C67.7454 34.5361 68.588 34.5361 69.1094 35.0574C69.6307 35.5787 69.6307 36.4214 69.1094 36.9427Z",fill:"#00CB8A"})]}),_&&(0,a.jsx)(pe.H,{className:"survey-thankyou-title",tag:"h3",children:_}),C&&(0,a.jsx)(fe.T,{className:"survey-thankyou-subtitle",size:"p3",children:C}),I&&(0,a.jsx)(P.B,{className:"survey-thankyou-result",size:"md",onClick:E,children:I.label})]})})})},ye=C.ZP.div.withConfig({displayName:"indexstyled__StyledCardSubot",componentId:"sc-18yx6q7-0"})([".card-subor-survey{input{line-height:1.3;}}"]);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t0)){n.next=15;break}return r={questions:N,resultSubot:L,headerText:D},o={cookie_id:(0,b.fj)(),account_id:(null===P||void 0===P?void 0:P.id)||(0,b.ld)()||K||null,bot_id:Number(t),flow_uuid:W,data:JSON.stringify(r),status:L?"complete":"in_progress",type:"inline_together",market:y.domainLocales[C]},n.prev=5,n.next=8,(0,b.t9)((0,b.jX)(j.SD.TOGETHER.SURVEY.POST_SUBOT_CREATE_LOG),"POST",{data:o});case 8:if(n.sent.data._data){n.next=11;break}throw new Error;case 11:n.next=15;break;case 13:n.prev=13,n.t0=n.catch(5);case 15:case"end":return n.stop()}}),n,null,[[5,13]])})))(),function(){e=!0}}),[N,R,null===P||void 0===P?void 0:P.id]),(0,u.useEffect)((function(){(0,c.Z)(l().mark((function e(){var n,r,o,i,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.t9)((0,b.jX)(j.SD.TOGETHER.SURVEY.GET_SUBOT_LOG,{botId:t,cookieId:(0,b.fj)(),accountId:(null===P||void 0===P?void 0:P.id)||""}),"GET");case 2:if(null===(o=e.sent)||void 0===o||null===(n=o._data)||void 0===n||!n.data){e.next=17;break}if(e.prev=4,!(i=JSON.parse(o._data.data)).questions){e.next=13;break}return Y(o._data.flow_uuid),T(i.questions),B(i.resultSubot),M(i.headerText),ie(o._data.account_id),e.abrupt("return");case 13:e.next=17;break;case 15:e.prev=15,e.t0=e.catch(4);case 17:return e.next=19,(0,b.t9)((0,b.jX)(j.SD.TOGETHER.SURVEY.GET_FIRST_NODE,{botId:t}),"GET");case 19:null!==(a=e.sent)&&void 0!==a&&null!==(r=a._data)&&void 0!==r&&r.first_node&&(T([{current_score:a._data.current_score,current_selected:a._data.current_selected,current_polls:a._data.current_polls,node:a._data.first_node}]),Y(a._data.flow_uuid),a._data.inline_headline&&M(a._data.inline_headline));case 21:case"end":return e.stop()}}),e,null,[[4,15]])})))()}),[t]),(0,u.useEffect)((function(){(0,c.Z)(l().mark((function e(){var t,n,r,o,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(W&&null!==P&&void 0!==P&&P.id&&"string"===typeof se&&"string"===typeof le&&se)){e.next=12;break}return n=JSON.parse(decodeURIComponent(se)),r=n.questionParams,o=n.currentPolls,e.next=5,(0,b.t9)((0,b.jX)(j.SD.TOGETHER.SURVEY.CHAT_WITH_BOT),"POST",{data:we(we({},r),{},{form_submit_meta:[],account_id:P.id})});case 5:if(null===(i=e.sent)||void 0===i||null===(t=i._data)||void 0===t||!t.node){e.next=11;break}return T((function(e){var t={current_score:i._data.current_score,current_selected:i._data.current_selected,current_polls:o,node:i._data.node};return e[e.length-1].node.actions.find((function(e){return"action-sso-redirect"===e.type}))?(e[e.length-1]=t,(0,v.Z)(e)):e.concat(t)})),oe(s.current),Pe(),e.abrupt("return");case 11:throw new Error("Something went wrong");case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),k({message:d({id:"notification.comment.somethingWrong"}),type:"danger"});case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))()}),[null===P||void 0===P?void 0:P.id,W]);var ce=N[N.length-1],ue="https://".concat(ke?x.fn?"fe.":"discover.":"").concat(y.domainLocales[C]).concat(x.GW).concat(I),pe=(0,u.useMemo)((function(){return ce&&function(e){var t,n,r,o,s,u,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",f=arguments.length>2?arguments[2]:void 0,m=e.node,v=m.is_multi_select,g=m.multi_select_option,h=m.from,y=m.to,x=null===m||void 0===m?void 0:m.actions.some((function(e){return z.includes(e.type)})),j=null===m||void 0===m||null===(t=m.actions.find((function(e){return"user-submit-terms"===e.type})))||void 0===t?void 0:t.label.trim().replace(/\[([^\]]+)\]\(([^\)]+)\)/gim,'$1'),O=!(!x||!j),k=(null===m||void 0===m?void 0:m.type)===w.Jq.FINAL_THANK_YOU,P=!(null!==m&&void 0!==m&&m.actions.length)&&!k,S=!(null===m||void 0===m||!m.actions.find((function(e){return"poll-choice"===e.type}))),_=null===m||void 0===m?void 0:m.actions.filter((function(e){return q.includes(e.type)}))[0],C=null===(n=m.intents)||void 0===n?void 0:n.filter((function(e){return"bot-text"===e.type||"bot-button"===e.type})),I="bot-text"===(null===C||void 0===C||null===(r=C[0])||void 0===r?void 0:r.type)?C[0].label:"",E=I?C.slice(1):C,N=null===(o=m.intents)||void 0===o||null===(s=o.filter((function(e){return"bot-image"===e.type})))||void 0===s||null===(u=s[0])||void 0===u?void 0:u.url,T=x?"textbox":m.is_multi_select||S?"checkbox":"radio",A=m.actions.filter((function(e){return V.includes(e.type)})),D=m.actions.filter((function(e){return z.includes(e.type)})),M=!1;return x||m.is_multi_select||1!==A.length||_||(_=A[0],M=!0),{thankyouFinalProps:k?{subotData:e}:null,thankyouProps:P?{thankyou:I||"Thank you !",thankyouSubtitle:null!==E&&void 0!==E&&E.length?(0,a.jsx)(J,{intents:E}):"We appreaciate your time"}:null,questionProps:P||k?null:{nextText:null===(d=_)||void 0===d?void 0:d.label,isContactForm:O,termAndPolicyText:j?(0,a.jsx)("p",{style:{fontSize:12,lineHeight:"18px"},dangerouslySetInnerHTML:{__html:j}}):void 0,onNextClick:function(){var t=(0,c.Z)(l().mark((function t(n){var r,o,a,s,c,u,d,v,g;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(r=_)&&void 0!==r&&r.url&&window.open(null===(s=_)||void 0===s?void 0:s.url,"_blank"),n){t.next=3;break}return t.abrupt("return");case 3:return c={},u=_,d={},v=[],"textbox"===T?v=te(n,m.actions):S?v=re(n,m.actions):(g=ee(n,m.actions),d=ne(n,m.actions),"radio"===T&&(u||(u=g[0]))),0===n.length&&u&&(d=(0,i.Z)({},u.id,u.key)),t.abrupt("return",G({current_score:e.current_score||0,current_selected:e.current_selected||[],cookie_id:(0,b.fj)()||"",window_id:(0,b.ZY)()||"",url:p,title_url:document.title,ga_client_id:(0,b.gP)()||"",account_id:(null===f||void 0===f?void 0:f.id)||null,selected_actions:d,action_id:(null===(o=u)||void 0===o?void 0:o.id)||"",action_value:(null===(a=u)||void 0===a?void 0:a.key)||"",form_submit_meta:v},c));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),question:G({image:N,type:T,title:I,is_multi_select:v,multi_select_option:g,from:h,to:y,subtitle:(0,a.jsx)(J,{intents:E})},x?{textOptions:X(D,f)}:{options:M?[]:$(A)})}}}(ce,ue,P||void 0)}),[ce,null===P||void 0===P?void 0:P.id]),fe=(0,u.useMemo)((function(){if(ce&&ce.node){var e=ce.node,t=d({id:"multiSelectError.required",defaultMessage:"You must choose one options"});return(null===e||void 0===e?void 0:e.multi_select_option)===x.bL.UNLIMITED&&(t=d({id:"multiSelectError.unlimited",defaultMessage:"You must choose at least one options"})),(null===e||void 0===e?void 0:e.multi_select_option)===x.bL.RANGE&&(t=d({id:"multiSelectError.range",defaultMessage:"You must choose from {from} to {to} options"},{from:e.from,to:e.to})),(null===e||void 0===e?void 0:e.multi_select_option)===x.bL.EXACT_NUMBER&&(t=d({id:"multiSelectError.exactNumber",defaultMessage:"You must choose {from} options"},{from:e.from})),t}return""}),[d,ce]);return t?(0,a.jsxs)(ye,{className:"no-replace-click ".concat(n),style:r,ref:s,"data-post-id":o,children:[function(){if(ce&&pe.questionProps){var e=ce.node;return e.position===w.Ff.SSO?(0,a.jsx)(de,{node:e,onPrevClick:function(){return T((function(e){return e.pop(),e.slice()}))}}):(0,a.jsx)(g.S,we(we({className:"card-subor-survey",headerText:D,descriptionText:fe,prevText:N.length>1?"Back":"",onPrevClick:function(){return T((function(e){return e.pop(),e.slice()}))}},pe.questionProps),{},{nextText:pe.questionProps.nextText||"Next",onNextClick:function(){var e=(0,c.Z)(l().mark((function e(t){var n,r,i,a,c,u,d,p;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===pe||void 0===pe||null===(n=pe.questionProps)||void 0===n||null===(r=n.onNextClick)||void 0===r?void 0:r.call(n,t);case 2:return a=e.sent,e.next=5,(0,b.t9)((0,b.jX)(j.SD.TOGETHER.SURVEY.CHAT_WITH_BOT),"POST",{data:a});case 5:null!==(c=e.sent)&&void 0!==c&&null!==(i=c._data)&&void 0!==i&&i.node&&(T((function(e){return e.concat({current_score:c._data.current_score,current_selected:c._data.current_selected,current_polls:c._data.current_polls,node:c._data.node})})),U(1),oe(s.current),(null===c||void 0===c||null===(u=c._data)||void 0===u?void 0:u.node.position)===w.Ff.SSO&&(d={questionParams:a||{},currentPolls:c._data.current_polls||{}},null!==P&&void 0!==P&&P.id||((p=new URL(window.location.href)).searchParams.set(je,encodeURIComponent(JSON.stringify(d))),p.searchParams.set(Oe,String(o)),window.history.pushState({},"",p.toString()))));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),ce.node.id)}return null}(),ce&&pe.thankyouProps&&(0,a.jsx)(g.a,we({},pe.thankyouProps)),ce&&pe.thankyouFinalProps&&(0,a.jsx)(be,{subotData:pe.thankyouFinalProps.subotData,url:ue,chatBotId:t,accountId:null===P||void 0===P?void 0:P.id,onScrollIntoView:function(){return oe(s.current)},resultSubot:L,onChangeResult:function(e){B(e),U(2)}})]}):null},_e=n(16592);n(86706);function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t @hhgtech/hhg-components/subot"]}}),Ne=C.ZP.div.withConfig({displayName:"container__StyledWrapper",componentId:"sc-p4cty5-0"})(["margin-bottom:8px;","{margin-bottom:24px;}"],_.M.mbUp),Te=function(e){var t,r,o=(0,f.useRouter)(),i=(0,u.useContext)(m.I).state,s=(0,u.useState)(null),p=s[0],v=s[1];return(0,u.useEffect)((function(){(0,c.Z)(l().mark((function t(){var r,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then(n.bind(n,76804)).then((function(e){return e.subotInlineFirstNode}));case 2:return r=t.sent,t.next=5,r(e.chatBotId);case 5:o=t.sent,v(null===o||void 0===o?void 0:o._data);case 7:case"end":return t.stop()}}),t)})))()}),[e.chatBotId]),p?(null===(t=p.extra_settings)||void 0===t?void 0:t.subot_type)===d.h.FRU||(null===(r=p.extra_settings)||void 0===r?void 0:r.subot_type)===d.h.ristScreener?(0,a.jsx)(Ne,{children:(0,a.jsx)(Ee,{id:p.id,articleLink:o.asPath,userInfo:i.userInfo})}):(0,a.jsx)(_e.u,{children:(0,a.jsx)(Se,Ie({},e))}):null},Ae=(0,u.memo)(Te)},58649:function(e,t,n){"use strict";n.d(t,{F:function(){return Se}});var r=n(85893),o=n(26265),i=n(67294),a=n(11163),s=(n(68558),n(95983)),l=n(809),c=n.n(l),u=n(92447),d=n(91229),p=n(65148),f=n(70309),m=n(22046),v=n(25559),g=n(2810),h=n(24169),b=n(21124),y=n(35079),x=n(26381);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var j=function(e){var t=(0,d.Z)({},e),n=(0,y.U)(),a=(0,x.h)().locale,l=(0,i.useState)(),j=l[0],O=l[1],k=(0,p.u)(a).getHealthToolLink,P=(0,i.useMemo)((function(){return k(s.QO.BABY_POOP)}),[k]),S=(0,b.h0)().authActionWrapper;(0,i.useEffect)((function(){(0,u.Z)(c().mark((function e(){var t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.t9)((0,h.R4)(g.D9.GET_HEALTH_TOOL_BABY_POOP),"GET");case 2:t=e.sent,O((0,v.Ff)(null===t||void 0===t?void 0:t.data));case 4:case"end":return e.stop()}}),e)})))()}),[]);return P&&j?(0,r.jsx)(f.f,function(e){for(var t=1;t *{margin-bottom:1rem;}.right-block-container{min-height:300px;display:flex;align-items:center;justify-content:center;}}"],r.M.mbDown,r.M.mbDown,r.M.mbDown,r.M.mbDown,r.M.mbDown,r.M.mbUp),c=o.ZP.div.withConfig({displayName:"indexstyled__StyledLoadingWrapper",componentId:"sc-1g8gool-3"})(["display:flex;height:0;align-items:center;justify-content:center;opacity:0;transition:opacity 3s ease 0s,max-height 1.5s ease;&[data-show='true']{height:unset;opacity:1;transition:opacity 0.3s ease,max-height 0.3s ease;}"]),u=o.ZP.div.withConfig({displayName:"indexstyled__StyledMainBody",componentId:"sc-1g8gool-4"})(["display:flex;","{flex-direction:column;}","{padding-top:16px;}"],r.M.mbDown,r.M.mbUp)},167:function(e,t,n){"use strict";n.d(t,{Y:function(){return h}});var r,o=n(809),i=n.n(o),a=n(26265),s=n(92447),l=n(67294),c=n(11163),u=n(25559),d=n(2810),p=n(24169),f=n(31474),m=n(18833);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t-1?t[n]=e:t.unshift(e),t.slice()}))},refetch:L,handleDeletePost:function(e){y((function(t){var n=t.findIndex((function(t){return t.id===e}));return n>-1&&t.splice(n,1),t.slice()}))}}}},19842:function(e,t,n){"use strict";n.d(t,{W:function(){return m},b:function(){return v}});var r=n(26265),o=n(809),i=n.n(o),a=n(92447),s=n(67294),l=n(11163),c=n(25559),u=n(2810),d=n(24169);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&(s=a.data.map(c.It),g((function(e){return e.concat(s)})),y(a.data[0].frequency||1),j(1===a.data[0].is_pin),P({current_page:1,last_page:1}));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),_=Math.floor(r/b),C=(0,s.useRef)(S);C.current=S,(0,s.useEffect)((function(){(w&&3*(_+1)>v.length||3*_>v.length)&&null!==k&&void 0!==k&&k.last_page&&k.current_pageNumber(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function v(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"===typeof n&&n.includes(e.arrayFormatSeparator),i="string"===typeof n&&!o&&u(n,e).includes(e.arrayFormatSeparator);n=i?u(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?u(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const o of Object.keys(r)){const e=r[o];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=m(e[n],t);else r[o]=m(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=f,t.parse=v,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",o,"]"].join("")]:[...n,[c(t,e),"[",c(o,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[c(n,e),t,c(o,e)].join("")]:[[r,c(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),o={};for(const a of Object.keys(e))n(a)||(o[a]=e[a]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?c(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":o.reduce(r(n),[]).join("&"):c(n,t)+"="+c(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:v(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=p(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let l=t.stringify(a,n);l&&(l=`?${l}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${l}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:o,query:i,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},15536:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(62994);function i(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=[]),r.Children.toArray(e).reduce((function(e,a,s){return(0,o.isFragment)(a)?e.push.apply(e,i(a.props.children,t+1,n.concat(a.key||s))):(0,r.isValidElement)(a)?e.push((0,r.cloneElement)(a,{key:n.concat(String(a.key)).join(".")})):"string"!==typeof a&&"number"!==typeof a||e.push(a),e}),[])}},74726:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function h(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case v:case m:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isFragment=function(e){return h(e)===i}},62994:function(e,t,n){"use strict";e.exports=n(74726)},80500:function(e){"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},70610:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}}]);