(window["webpackJsonp-ae-fe/cosmos-2"]=window["webpackJsonp-ae-fe/cosmos-2"]||[]).push([[24],{1054:function(e,t,n){"use strict";n.r(t);var o,a,r,i,c,s=n(20),l=n(1),u=n.n(l),p=n(4),d=n(24),m=(null===(o=p.a.get("config"))||void 0===o?void 0:o.page)||{},f={mtop:(r=u()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.a.load();case 2:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)}),react:(a=u()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",p.a.get("Global"));case 1:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},g=[{name:"aplus",pages:[m.home,m.best,m.category,m.search,m.seoSearch,m.detail,m.seoDetail,m.searchBar,m.account],component:function(){var e,t,n;if(-1!==(null===(e=window.navigator)||void 0===e||null===(t=e.userAgent)||void 0===t?void 0:t.indexOf("AliApp"))){var o=document.createElement("meta");o.setAttribute("name","aplus-toUT"),o.setAttribute("content","2");var a=document.querySelector("head");null==a||a.appendChild(o),n="//assets.alicdn.com/g/alilog/??aplus_plugin_aefront/index.js,mlog/aplus_wap.js"}else n="//assets.alicdn.com/g/alilog/??aplus_plugin_aefront/index.js,mlog/aplus_int.js";Object(s.a)({type:"script",url:n,attrs:{crossOrigin:"anonymous",id:"beacon-aplus",exparams:"aplus&sidx=aplusSidx&ckx=aplusCkx"}})}}],h=[{name:"gep",component:function(){return n.e(19).then(n.bind(null,1080))}}],_=n(9),w=n.n(_),v=(i={},w()(i,m.best,"Msite_Pop_Best_Page"),w()(i,m.home,"Msite_Pop_Home_Page"),w()(i,m.detail,"Msite_Product_Detail_Page"),w()(i,m.seoDetail,"Msite_SEO_Product_Aggregation_Page"),w()(i,m.seoSearch,"Msite_SEO_Search_Ui_Product_List"),w()(i,m.search,"Msite_Search_Ui_Product_List"),i),x=[{name:"popLayer",pages:[m.best,m.detail,m.seoDetail,m.seoSearch,m.search],component:(c=u()(regeneratorRuntime.mark((function e(t){var o,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.page,a=t.options,!(r=(void 0===a?{}:a).positionSign||v[o])){e.next=8;break}return e.next=5,n.e(33).then(n.bind(null,1086));case 5:(0,e.sent.default)({positionSign:r},null);case 8:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)}),deps:[f.mtop]}];window.lib=window.lib||{};var b,y=[{pages:[m.best,m.home,m.shopcart],component:function(){var e=u()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([n.e(2),n.e(5),n.e(29)]).then(n.bind(null,1090));case 2:t=e.sent,t.default.runAutoLogin(!0);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{pages:[m.detail,m.search],component:(b=u()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([n.e(2),n.e(5),n.e(29)]).then(n.bind(null,1090));case 2:e.sent.default.runAutoLogin();case 5:case"end":return e.stop()}}),e)}))),function(){return b.apply(this,arguments)})}],k=[{name:"smart-banner",pages:[m.home,m.best,m.detail,m.seoDetail,m.campaign,m.account,m.shopcart,m.category,"payresult",m.search],component:function(){return Promise.all([n.e(0),n.e(6),n.e(39)]).then(n.t.bind(null,1076,7))},deps:[f.react]}],C=[{name:"gdpr",component:function(e){var t=e.options;if(!1!==(void 0===t?{}:t).enable)return n.e(18).then(n.bind(null,1102))}}],A=n(134),R=[{site:"glo",domain:"www.aliexpress.com",local:"en_US"},{site:"rus",domain:"www.aliexpress.ru",local:"ru_RU"},{site:"esp",domain:"es.aliexpress.com",local:"es_ES"},{site:"fra",domain:"fr.aliexpress.com",local:"fr_FR"},{site:"bra",domain:"pt.aliexpress.com",local:"pt_BR"},{site:"idn",domain:"www.aliexpress.com",local:"in_ID"},{site:"ita",domain:"it.aliexpress.com",local:"it_IT"},{site:"deu",domain:"de.aliexpress.com",local:"de_DE"},{site:"nld",domain:"nl.aliexpress.com",local:"nl_NL"},{site:"tur",domain:"tr.aliexpress.com",local:"tr_TR"},{site:"jpn",domain:"ja.aliexpress.com",local:"ja_JP"},{site:"ara",domain:"ar.aliexpress.com",local:"ar_MA"},{site:"isr",domain:"he.aliexpress.com",local:"iw_IL"},{site:"tha",domain:"th.aliexpress.com",local:"th_TH"},{site:"vnm",domain:"vi.aliexpress.com",local:"vi_VN"},{site:"kor",domain:"ko.aliexpress.com",local:"ko_KR"},{site:"pol",domain:"pl.aliexpress.com",local:"pl_PL"}],S=[{site:"usa",domain:"www.aliexpress.us",local:"en_US",type:""},{site:"idn",domain:"id.aliexpress.com",local:"in_ID",type:""}],j=[{site:"glo",domain:"m.aliexpress.com",local:"en_US"},{site:"rus",domain:"m.aliexpress.ru",local:"ru_RU"},{site:"esp",domain:"m.es.aliexpress.com",local:"es_ES"},{site:"fra",domain:"m.fr.aliexpress.com",local:"fr_FR"},{site:"bra",domain:"m.pt.aliexpress.com",local:"pt_BR"},{site:"idn",domain:"m.aliexpress.com",local:"in_ID"},{site:"ita",domain:"m.it.aliexpress.com",local:"it_IT"},{site:"deu",domain:"m.de.aliexpress.com",local:"de_DE"},{site:"nld",domain:"m.nl.aliexpress.com",local:"nl_NL"},{site:"tur",domain:"m.tr.aliexpress.com",local:"tr_TR"},{site:"jpn",domain:"m.ja.aliexpress.com",local:"ja_JP"},{site:"ara",domain:"m.ar.aliexpress.com",local:"ar_MA"},{site:"isr",domain:"m.aliexpress.com",local:"iw_IL"},{site:"tha",domain:"m.th.aliexpress.com",local:"th_TH"},{site:"vnm",domain:"m.vi.aliexpress.com",local:"vi_VN"},{site:"kor",domain:"m.ko.aliexpress.com",local:"ko_KR"},{site:"pol",domain:"m.pl.aliexpress.com",local:"pl_PL"}],P=function(e,t){return function(n){var o,a;return(Object(A.h)()?j:R).forEach((function(e){e[t]===n&&(a=e)})),null===(o=a)||void 0===o?void 0:o[e]}},E=(P("domain","site"),P("domain","local"),P("site","local"),[{pages:[m.home,m.search,m.seoSearch,m.detail,m.seoDetail],component:function(){if("serviceWorker"in navigator)try{e=window.location.host,R.concat(S).forEach((function(n){n.domain===e&&(t=n)})),t?navigator.serviceWorker.register("/sw.js?version=0.0.59",{scope:"/"}):navigator.serviceWorker.register("/sw-amp.js")}catch(e){console.error(e)}var e,t}}]),T=n(137),O=n.n(T),L=n(61);n(736);var U=function(){var e;return{ups_d:null===(e=L.cookie.get("aep_usuc_f","ups_d"))||void 0===e?void 0:e.split("|"),t:L.cookie.get("aep_usuc_f","ups_u_t"),ups:L.cookie.get("aep_usuc_f","ae_u_p_s")}},B=function(){var e=U();return null==e?void 0:e.ups},D=n(6),M=[{name:"google",pages:[m.home,m.detail,m.seoDetail],component:function(){if("1"!=B()){var e,t,n,o,a,r;e=window,t=document,n="script",o="ga",e.GoogleAnalyticsObject=o,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,a=t.createElement(n),r=t.getElementsByTagName(n)[0],a.async=1,a.src="//www.google-analytics.com/analytics.js",r.parentNode.insertBefore(a,r),function(e,t,n,o,a,r,i){e[a]=e[a]||[],e.gtag=function(){e[a].push(arguments)},e.gtag("js",new Date),r=t.createElement(n),i=t.getElementsByTagName(n)[0],r.async=1,r.src="//www.googletagmanager.com/gtag/js?id=AW-1053145292",i.parentNode.insertBefore(r,i)}(window,document,"script",0,"dataLayer"),window.ga("create","UA-17640202-1","auto"),window.ga("require","ec"),ga((function(){var e,t=null===(e=ga.getByName("t0"))||void 0===e?void 0:e.get("clientId");t&&ga("set","dimension6",t)}));D.a.isLoggedIn()&&function(){var e;try{e=parseInt(window.localStorage.getItem("_dmp_tag_time_"))}catch(e){console.error(e)}return!e||!!(e&&e+864e5<(new Date).getTime())}()&&d.a.request({api:"mtop.aliexpress.adlink.google.queryDMPUserTag",v:"1.0"}).then((function(e){var t;if(null!=e&&null!==(t=e.data)&&void 0!==t&&t.result){var n=e.data.result,o=n.algoTag,a=n.bTag;ga("set",{dimension7:a,dimension8:o}),ga("send",{hitType:"event",eventCategory:"UserTag",eventAction:"Update",nonInteraction:!0}),gtag("event","group_id",{send_to:"AW-1053145292",value:a}),window.localStorage.setItem("_dmp_tag_time_",(new Date).getTime())}})),window.ga("send","pageview"),function(e,t,n,o,a){e[o]=e[o]||[],e[o].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var r=t.getElementsByTagName(n)[0],i=t.createElement(n);i.async=!0,i.src="https://www.googletagmanager.com/gtm.js?id=GTM-5VJNN2G",r.parentNode.insertBefore(i,r)}(window,document,"script","dataLayer");var i=function(e){var t;(t=window).ga.apply(t,O()(e))};window._gaCache&&window._gaCache.length&&window._gaCache.forEach(i),window._gaCache={push:i}}}}],I=[{name:"facebook",pages:[m.detail,m.seoDetail],component:function(){if("1"!=B()){var e,t,n,o,a,r;e=window,t=document,n="script",e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],(a=t.createElement(n)).async=!0,a.src="https://connect.facebook.net/en_US/fbevents.js",(r=t.getElementsByTagName(n)[0]).parentNode.insertBefore(a,r)),window.fbq("init","1650958108523345"),window.fbq("track","PageView");var i=function(e){window.fbq(O()(e))};window._fbCache&&window._fbCache.length&&window._fbCache.forEach(i),window._fbCache={push:i}}},deps:[]}],q=[{pages:[m.home,m.best,m.detail,m.seoDetail],component:function(){return Promise.all([n.e(2),n.e(4),n.e(7),n.e(37)]).then(n.bind(null,1083))}}],N=[{name:"rtb",pages:[m.home,m.detail,m.search,m.category,m.campaign,m.shopcart],component:function(){var e,t,n=function(e){if("1"!=B()&&!Object(A.f)()){e=e||"other";try{!function(){var t="Ss52YF3IAd5cEVfrVcQ0",n=[];n.push("pr_"+t+"_"+e),n.push("pr_"+t+"_uid_unknown");var o="__rtbhouse.lid",a=window.localStorage.getItem(o);if(!a){a="";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<20;i++)a+=r.charAt(Math.floor(Math.random()*r.length));window.localStorage.setItem(o,a)}n.push("pr_"+t+"_lid_"+a);var c=document.createElement("iframe"),s=encodeURIComponent(document.referrer?document.referrer:""),l=encodeURIComponent(document.location.href?document.location.href:""),u="https://us.creativecdn.com/tags?type=iframe",p=encodeURIComponent(""+Date.now());for(i=0;i<n.length;i++)u+="&id="+encodeURIComponent(n[i]);u+="&su="+l+"&sr="+s+"&ts="+p,c.setAttribute("src",u),c.setAttribute("width","1"),c.setAttribute("height","1"),c.setAttribute("scrolling","no"),c.setAttribute("frameBorder","0"),c.setAttribute("style","display:none"),c.setAttribute("referrerpolicy","no-referrer-when-downgrade"),document.body?document.body.appendChild(c):window.addEventListener("DOMContentLoaded",(function(){document.body.appendChild(c)}))}()}catch(e){}}},o=window.location.href.split(/[\?#]/);if(o&&o[0]){var a,r=o[0];/^https:\/\/(m\.)?(\w+\.)?aliexpress\.com(\/|\/index\.html)?$/.test(r)?t="home":(a=r.match(/^https:\/\/(m\.)?(\w+\.)?aliexpress\.com\/category\/([0-9]*)\/(.*)\.html$/))?t="category2_"+a[3]:/^https:\/\/(m\.)?(\w+\.)?aliexpress\.com\/wholesale(\/(.*)\.html)?$/.test(r)||(a=r.match(/^https:\/\/(m\.)?(\w+\.)?aliexpress\.com\/(item|i)\/(\d+)\.(html|htm)$/))&&(t="offer_"+a[4]),t&&n(t)}window.__RTBCache=window.__RTBCache||{},window.__RTBCache&&null!==(e=window.__RTBCache)&&void 0!==e&&e.length&&window.__RTBCache.forEach((function(e){n.apply(void 0,O()(e))})),window.__RTBCache={push:function(e){n.apply(void 0,O()(e))}}}}],J=[{name:"local-data",pages:[m.home,m.best,m.detail,m.seoDetail,m.campaign,m.account,m.shopcart,m.category],component:function(){return n.e(25).then(n.bind(null,1103))}}],F=n(5);var W,G=[{name:"languageLog",component:function(){var e;return e=function(e){return e&&-1!==e.indexOf("-")?e.split("-")[0]:e&&-1!==e.indexOf("_")?e.split("_")[0]:e},null===F.util||void 0===F.util||F.util.tracker.clk({ae_button_type:"sys_platform_language",ae_object_value:"sysLang=".concat(e(navigator.language),";appLang=").concat(e(D.a.getLocale()||"en_US"))}),null}}],V=[{name:"affiliate-tracker",pages:[m.home,m.search,m.best,m.detail,m.seoDetail,m.campaign,m.account,m.shopcart,m.category],component:function(){var e=u()(regeneratorRuntime.mark((function e(){var t,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(10).then(n.bind(null,1077));case 2:t=e.sent,o=t.default,setTimeout((function(){o()}),1e3);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}],H=[{name:"criteo",pages:[m.home,m.category,m.placeorder||"placeorder","createOrder",m.search,m.detail,m.shopcart],component:function(){var e,t,n;if("1"!=B()&&!Object(A.f)()){Object(s.a)({type:"script",url:"//static.criteo.net/js/ld/ld.js",attrs:{async:"true"}}).then((function(){var e=function(e){var t;(t=window.criteo_q).push.apply(t,O()(e))};window._criteoCache&&window._criteoCache.length&&window._criteoCache.forEach(e),window._criteoCache={push:e}}));var o=D.a.getRegion()||"",a=null===(e=document.querySelector("body"))||void 0===e?void 0:e.getAttribute("data-spm"),r="m.aliexpress.com",i=(null===(t=D.a.getLocale())||void 0===t||null===(n=t.split("_"))||void 0===n?void 0:n[0])||"",c={UK:"GB"}[o]||o;if(window._criteoCache=window._criteoCache||[],"home"===a&&window._criteoCache.push([{event:"setAccount",account:{an:r,cn:c,ln:i}},{event:"setSiteType",type:"m"},{event:"viewHome"}]),"detail"===a){var l,u=(null===(l=window.location.pathname.match(/\/item\/(\d*)\.html/))||void 0===l?void 0:l[1])||"";window._criteoCache.push([{event:"setAccount",account:{an:r,cn:c,ln:i}},{event:"setSiteType",type:"m"},{event:"viewItem",item:u}])}}}}],K=n(26),Q=n.n(K),$=n(18),z=n(56),Z={site:"glo",domain:"m.aliexpress.com",local:"en_US"},X=(W={},w()(W,m.home,50),w()(W,m.detail,10),w()(W,"shopcart",50),w()(W,"createOrder",50),w()(W,"secpay",50),w()(W,"payresult",50),w()(W,"refund-amount",50),w()(W,"refund_spm",50),w()(W,"refund_cancel_spm",50),w()(W,"order_list",50),w()(W,m.campaign,50),W),Y={rate:1,depth:8,open:!0,loopCount:50,interval:1e4,oneTimeLangNO:50,parseCount:10,maxLang:100};window.gloal_page_collect_config=Y;var ee=!!Object($.b)("_f_collect_"),te=Object($.b)("_f_locale_"),ne=D.a.getLocale(),oe=[{name:"page-collect",pages:[m.home,m.detail,"shopcart","createOrder","secpay","payresult","refund-amount","refund_spm","refund_cancel_spm","order_list",m.campaign],component:function(e){var t=e.page;window.gloal_page_collect_config.rate=function(e){return X[e]||1}(t),setTimeout((function(){if(te&&/[a-zA-Z]{2}_[a-zA-Z]{2}/.test(te)){var e=te.split("_"),t=Q()(e,2),n=t[0],o=t[1],a=(s=n,j.find((function(e){var t=null==e?void 0:e.local;if(t){var n=t.split("_")||[],o=Q()(n,1)[0];return(null==o?void 0:o.toLowerCase())===(null==s?void 0:s.toLowerCase())}return!1}))||Z),r=a.domain,i=a.local,c=a.site;ne!==i&&(D.a.setSite(c),D.a.setRegion(o.toUpperCase()),D.a.setLocale(i),Object(z.syncCookieFunc)().then((function(){var e=window.location.host,t=r||e;window.location.href=window.location.href.replace(e,t)})))}var s}),500);var o=D.a.get("cna"),a=1e3;return a=o?function(e){var t,n=0;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n<0?(1+~n)%1e3:n%1e3}(o+(new Date).getDate()):1e3*Math.random()%1e3,Y.rate>a||ee?n.e(30).then(n.bind(null,1088)):null}}];t.default=[g,h,x,y,k,E,C,M,I,q,N,J,G,V,H,oe]},1100:function(e,t,n){"use strict";n.r(t);var o,a=n(1),r=n.n(a),i=n(4),c=n(21),s=n(1054).default,l=(null===(o=i.a.get("config"))||void 0===o?void 0:o.env)||{},u=l.page,p=l.path,d=!1,m=function(){var e=r()(regeneratorRuntime.mark((function e(){var t,n,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!d){e.next=2;break}return e.abrupt("return");case 2:t=window._page_config_||{},n=t.loader,o=void 0===n?{}:n,d=!0,a=[],s.forEach((function(e){Array.isArray(e)||(e=[e]),e.forEach((function(e){e.name&&o[e.name]?a.push(e):e.filter&&!e.filter({page:u,path:p})||e.pages&&-1===e.pages.indexOf(u)||a.push(e)}))})),i=Object(c.a)("_disableJsPlugin_"),a.forEach(function(){var e=r()(regeneratorRuntime.mark((function e(t){var n,a,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.name,a=t.component,r=t.deps,"all"!==i&&i!==n){e.next=3;break}return e.abrupt("return");case 3:if(!n||!1!==o[n]){e.next=5;break}return e.abrupt("return");case 5:if(!r){e.next=8;break}return e.next=8,Promise.all(r.map((function(e){return e()})));case 8:c={page:u,path:p},n&&o[n]&&Object.assign(c,{options:o[n]}),a(c);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t.default=m},134:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"e",(function(){return p}));var o=n(10);n.d(t,"i",(function(){return o.g}));var a=function(){return o.g?Object(o.c)():location.href},r=function(){return o.g?Object(o.e)():navigator.userAgent},i=/(phone|pad|pod|iPhone|iPod|iPad|ios|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i,c=function(){var e=r();return i.test(e)};function s(){var e=r();return/AliApp\(AE/.test(e)}var l=s;function u(){var e=r();return/iPhone/.test(e)||/\(i[^;]+;( U;)? CPU.+Mac OS X/.test(e)}function p(){var e=r();return/Android/.test(e)||/Adr/.test(e)}},137:function(e,t,n){var o=n(243),a=n(244),r=n(44),i=n(245);e.exports=function(e){return o(e)||a(e)||r(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},243:function(e,t,n){var o=n(45);e.exports=function(e){if(Array.isArray(e))return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},244:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},245:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},56:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syncCookieFunc=t.init=void 0;var o=n(5),a=function(){if(window.headerConfig&&window.headerConfig.disableSyncCookie)return Promise.resolve([!0,!0]);/(iPhone|Android)/.test(navigator.userAgent);var e={fromApp:!1,currency:o.cookie.getCurrency(),region:o.cookie.getRegion(),bLocale:o.cookie.getLocale(),site:o.cookie.getSite(),province:o.cookie.getProvince(),city:o.cookie.getCity()},t=window.location.host,n=!1,a=[{regex:/(.*\.)?aliexpress\.com/,requestUrl:"//login.aliexpress.com/setCommonCookie.htm"},{regex:/(.*\.)?aliexpress\.ru/,requestUrl:"//login.aliexpress.ru/setCommonCookie.htm"},{regex:/(.*\.)?aliexpress\.us/,requestUrl:"//login.aliexpress.us/setCommonCookie.htm"}].slice(0);a.forEach((function(e,o){e.regex.test(t)&&(n=!0,a.splice(o,1))}));var r=[];return n&&a.forEach((function(t){var n,a,i;r.push((n=t.requestUrl,a=e,(i=function(){return new Promise((function(e){(0,o.request)({url:n,data:a,timeout:5e3,withCredentials:!0}).then((function(t){"success"===t.message?e(!0):e(!1)})).catch((function(){e(!1)}))}))})().then((function(e){return e||i()})).then((function(e){return e||console.error("sync cookie twice fail: "+n+" "+JSON.stringify(a)),e})).catch((function(e){return console.error(e),!1}))))})),Promise.all(r).then((function(e){return e&&2===e.length&&!0===e[0]&&!0===e[1]&&o.cookie.set("0","xman_us_f","x_c_chg"),e}))};t.init=function(){var e=o.cookie.get("xman_us_f","x_c_chg");"1"===o.cookie.get("xman_us_f","x_c_synced")?(o.cookie.set("0","xman_us_f","x_c_chg"),o.cookie.set("0","xman_us_f","x_c_synced")):"1"===e&&a().then((function(e){console.log("get finally result:",e)})).catch((function(e){console.error("catch error:",e)}))},t.syncCookieFunc=a},736:function(e,t){},9:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}}]);