PageSourceSearch

https://www.beautyplus.com/_next/static/chunks/7179-736d3ed32a2fbb38.js

js beautyplus.com collected 2026-09-24 10:06:45 UTC 43,417 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f94cb694-93af-40fe-b72d-c9d7cfe6cf2e",e._sentryDebugIdIdentifier="sentry-dbid-f94cb694-93af-40fe-b72d-c9d7cfe6cf2e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7179],{24748:(e,n,t)=>{t.d(n,{DF:()=>a,Dk:()=>A,H8:()=>F,JJ:()=>B,LD:()=>D,Nk:()=>l,PH:()=>h,PN:()=>_,Qn:()=>K,TD:()=>H,Vg:()=>L,WQ:()=>x,X8:()=>R,Z_:()=>m,aN:()=>E,dU:()=>S,ec:()=>N,gt:()=>V,iB:()=>T,lr:()=>M,ml:()=>v,o:()=>f,od:()=>O,re:()=>U,t0:()=>b,wh:()=>w,y:()=>g,yo:()=>k,yy:()=>C});var r=t(17844),i=t(93629),o=t(45985),u=t(14355),c=t(75851),a=function(e){return e[e.Day=0]="Day",e[e.PerMonth=1]="PerMonth",e[e.PerQuarter=2]="PerQuarter",e[e.PerYear=3]="PerYear",e}({}),s=[1,3];function l(e){return(e.tier===c.T3.Pro||e.tier===c.T3.Max)&&(3===e.period||1===e.period)}function d(e){var n;return null!=(n=null==e?void 0:e.filter(l))?n:[]}function p(e){var n;return null!=(n=e.find(function(e){return e.isPreferred}))?n:e[0]}function f(e){return p(d(e))}function h(e,n){return d(e).filter(function(e){return e.tier===n})}function v(e,n,t){return h(e,n).filter(function(e){return e.period===t})}function b(e,n,t){return v(e,n,t)[0]}function m(e){var n=new Set(d(e).map(function(e){return e.period}));return s.filter(function(e){return n.has(e)})}function y(e,n){return"".concat(e).concat(n.toFixed(2))}function g(e){var n,t;return null!=(t=null==(n=e.promotion)?void 0:n.promotionPrice)?t:e.price}function P(e,n){return 3===n?e/12:2===n?e/3:e}function w(e){return P(g(e),e.period)}function S(e){var n,t;return P(null!=(t=null==(n=e.promotion)?void 0:n.basePrice)?t:e.price,e.period)}function _(e){return w(e)}function I(e){var n=e.promotion;if(n&&2!==n.promotionType&&!(n.basePrice<=0)&&!(n.promotionPrice>=n.basePrice))return(n.basePrice-n.promotionPrice)/n.basePrice}function T(e){var n=I(e);return void 0===n?void 0:Math.round(100*n)}function C(e){var n;return(null==(n=e.promotion)?void 0:n.promotionType)===1}function E(e){var n;return(null==(n=e.promotion)?void 0:n.promotionType)===2}function A(e){return d(e).find(E)}function k(e){if(E(e)){var n,t=null==(n=e.promotion)?void 0:n.duration;if((null==t?void 0:t.period)===0&&Number.isInteger(t.duration)&&!(t.duration<=0))return t.duration}}function L(e){var n,t=d(e),r=p(t);if(r&&(E(r)||void 0!==I(r)))return r;var i=0;return t.forEach(function(e){var t=I(e);if(void 0!==t){var r=C(e),o=!!n&&C(n);(!n||r&&!o||r===o&&t>i)&&(n=e,i=t)}}),n}function D(e){var n,t,r,i=0,o=0;return d(e).forEach(function(e){var u,c=I(e);if(void 0!==c){(!r||c>o)&&(r=e,o=c);var a=null==(u=e.promotion)?void 0:u.countdownEndsAt;void 0!==a&&(void 0===t||a<t||a===t&&c>i)&&(n=e,t=a,i=c)}}),null!=n?n:r}function x(e){var n,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g(e);return y(null!=(t=null==(n=e.promotion)?void 0:n.currency)?t:e.currency,r)}function B(e){var n,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g(e);return"".concat(null!=(t=null==(n=e.promotion)?void 0:n.currency)?t:e.currency).concat(Math.round(r))}function H(e){var n=e.promotion;if(n)return{promotionId:n.promotionId,promotionType:n.promotionType,basePrice:n.basePrice,effectivePrice:n.promotionPrice,monthlyPrice:w(e),discountPercent:T(e),basePriceLabel:y(n.currency,n.basePrice),effectivePriceLabel:y(n.currency,n.promotionPrice),currency:n.currency,currencyCode:n.currencyCode,duration:n.duration,countdownEndsAt:n.countdownEndsAt}}var Y={subscribeProducts:void 0,popupSubscribeProducts:void 0,creditProducts:void 0,currentPeriod:1,isLoading:!1,isPopupLoading:!1,error:null,popupError:null,showSuccessModal:!1,successType:"subscription"},R=(0,o.vt)()((0,u.lt)(function(e){return(0,i._)((0,r._)({},Y),{setSubscribeProducts:function(n){return e({subscribeProducts:n},!1,"pricing/setSubscribeProducts")},setPopupSubscribeProducts:function(n){return e({popupSubscribeProducts:n},!1,"pricing/setPopupSubscribeProducts")},invalidateSubscribeProducts:function(){return e({subscribeProducts:void 0,popupSubscribeProducts:void 0},!1,"pricing/invalidateSubscribeProducts")},setCreditProducts:function(n){return e({creditProducts:n},!1,"pricing/setCreditProducts")},setCurrentPeriod:function(n){return e({currentPeriod:n},!1,"pricing/setCurrentPeriod")},setIsLoading:function(n){return e({isLoading:n},!1,"pricing/setIsLoading")},setIsPopupLoading:function(n){return e({isPopupLoading:n},!1,"pricing/setIsPopupLoading")},setError:function(n){return e({error:n},!1,"pricing/setError")}
1,setPopupError:function(n){return e({popupError:n},!1,"pricing/setPopupError")},setShowSuccessModal:function(n,t){return e(function(e){return{showSuccessModal:n,successType:t||e.successType}},!1,"pricing/setShowSuccessModal")},reset:function(){return e(Y,!1,"pricing/reset")}})},{name:"PricingStore"})),U=function(e){return e.subscribeProducts},M=function(e){return e.popupSubscribeProducts},N=function(e){return e.creditProducts},F=function(e){return e.currentPeriod},K=function(e){return e.showSuccessModal},O=function(e){return e.successType},V=function(e){return b(e.subscribeProducts,c.T3.Pro,e.currentPeriod)}},36560:(e,n,t)=>{t.d(n,{Ke:()=>i,SD:()=>l,YY:()=>o,b0:()=>f,dd:()=>a,fl:()=>c,kO:()=>d,kW:()=>u,oX:()=>s,ob:()=>p,pK:()=>r}),t(84733);var r=function(e){return e.HAND="hand",e.ERASE="erase",e}({}),i=function(e){return e.PROMPT="prompt",e.REFERENCE="reference",e}({}),o=function(e){return e.INITIAL="initial",e.STROKE="stroke",e.RESULT="result",e.RESET="reset",e}({}),u="ai_replacer_local_key",c="ai_replacer_editor_session_v1",a="ai_replacer_cache_key",s="ai_replacer_pay_info_key",l="deviceId",d=100,p=10,f=35},43471:(e,n,t)=>{t.d(n,{p:()=>r});function r(e){if(!e)return!0;try{if(void 0===e.closed||!("location"in e)||void 0===e.location)return!0}catch(e){return!0}return!1}},44992:(e,n,t)=>{t.d(n,{f:()=>r});var r={env:0,clientId:"1300000019",googleClientId:"55808794844-f029b6mtmq536ku7hg0qejtg1ftf4iok.apps.googleusercontent.com",projectName:"beautyplus-web",storagePrefix:"bp-",authTokenKey:"bp_auth_token"}},57129:(e,n,t)=>{t.d(n,{Gf:()=>p,OL:()=>s,ch:()=>h});var r=t(29935),i=t(82643),o=t(73681),u=t(77241),c=t(93852),a=t(75851),s=function(e){return e.Monthly="monthly",e.Yearly="yearly",e}({});function l(e){return d.apply(this,arguments)}function d(){return(d=(0,r._)(function(e){var n;return(0,i.YH)(this,function(t){switch(t.label){case 0:return[4,(0,c.f)()];case 1:return n=t.sent(),(0,u.Gx)({uid:e,gid:n}),[2]}})})).apply(this,arguments)}function p(){return f.apply(this,arguments)}function f(){return(f=(0,r._)(function(){var e,n,t,r,u,c,s,d;return(0,i.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,o.usersApi.getCurrentUser()];case 1:if((e=i.sent()).data)return l(null!=(n=e.data.id)?n:""),t=e.data.vipInfo,r=(0,a.zC)(t),[2,{info:{id:null!=(u=e.data.id)?u:"",nickname:null!=(c=e.data.displayName)?c:"",avatar:null!=(s=e.data.avatar)?s:"",email:e.data.email,isVip:null!=(d=null==t?void 0:t.isVip)&&d,membershipTier:r},vipInfo:t?{isVip:t.isVip,tier:r,validTime:t.validTime,invalidTime:t.invalidTime,inTrialPeriod:t.inTrialPeriod}:void 0}];return l(""),[2,null];case 2:return i.sent(),l(""),[2,null];case 3:return[2]}})})).apply(this,arguments)}function h(){return v.apply(this,arguments)}function v(){return(v=(0,r._)(function(){var e;return(0,i.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,o.aigcApi.grantCredit()];case 1:if((e=n.sent()).data)return[2,e.data];return[2,null];case 2:return n.sent(),[2,null];case 3:return[2]}})})).apply(this,arguments)}},59717:(e,n,t)=>{t.d(n,{J:()=>o});var r=t(88026),i=r.env.NEXT_PUBLIC_SUBSCRIBE_POPUP_GROUP||"web_popup",o={env:"Release",appId:"7329803307042000000",subscriptionGroup:"web_common",upgradeSubscriptionGroup:r.env.NEXT_PUBLIC_SUBSCRIBE_UPGRADE_GROUP||"web_upgrade",popupSubscriptionGroup:i,vipGroup:r.env.NEXT_PUBLIC_SUBSCRIBE_VIP_GROUP||"group_beautyplus",creditsGroup:"web_meidou",meiyeEntityId:r.env.NEXT_PUBLIC_MEIYE_ENTITY_ID||"",meiyeBizTypes:r.env.NEXT_PUBLIC_MEIYE_BIZ_TYPES||"",tradeLoopTime:2500,tradeIdsKey:"bp_trade_ids"}},74811:(e,n,t)=>{t.r(n),t.d(n,{PayStatus:()=>J,SUBSCRIPTION_CONTEXT_CHANGED_EVENT:()=>M,assertSubscriptionPaymentContext:()=>O,exchangeRedeemCode:()=>eC,fetchConsumeRecords:()=>eY,fetchCreditsBalance:()=>eD,fetchRechargeRecords:()=>eB,getAllContracts:()=>ew,getAllSubscribeProducts:()=>ep,getCreditProducts:()=>em,getPopupSubscribeProducts:()=>eh,getSubscribeProducts:()=>er,getSubscriptionPaymentContext:()=>F,getSubscriptionUserContext:()=>ea,initSubscribe:()=>q,isSubscriptionPaymentContextCurrent:()=>K,pay:()=>eg,reinitSubscribe:()=>j,terminateContract:()=>e_});
1var r,i=t(29935),o=t(17844),u=t(93629),c=t(12694),a=t(86105),s=t(22531),l=t(82643),d=t(43471),p=function(){var e=navigator.userAgent;return/Android|HarmonyOS/.test(e)?/Mobile/.test(e):/iPhone/.test(e)},f=function(e,n){var t=(null!=n?n:{}).target,r=document.createElement("a");r.href=e,r.target=void 0===t?"_blank":t,r.rel="noopener noreferrer",(p()||/macintosh|mac os x/i.test(navigator.userAgent)&&window.screen.height>window.screen.width&&!navigator.userAgent.match(/(iPhone\sOS)\s([\d_]+)/)||navigator.userAgent.match(/(iPad).*OS\s([\d_]+)/))&&(r.target=""),document.body.appendChild(r),r.click(),document.body.removeChild(r)},h=t(21741),v=t(77889),b=t(57129),m=t(18439),y=t(66853),g=t(94117),P=t(59717),w=null,S=[29262,29263],_=new Set(S),I=new Set,T=S.join(","),C=t(24748),E=t(75851),A=t(63877),k=null,L=null,D=null,x=new Promise(function(e){D=e}),B=null,H=null,Y=0,R=null,U=[0,800,1600,3e3],M="beautyplus:subscription-context-changed";function N(){Y+=1,B=null,H=null,C.X8.getState().invalidateSubscribeProducts()}function F(){var e,n=m.nc.getState(),t=n.accessToken,r=n.isVip,i=n.user;return{accessToken:t,uid:null==i?void 0:i.uid,isVip:r,isInTrialPeriod:(null==i||null==(e=i.vipInfo)?void 0:e.inTrialPeriod)===!0,subscriptionRevision:Y}}function K(e){var n;return n=F(),e.accessToken===n.accessToken&&e.uid===n.uid&&e.isVip===n.isVip&&e.isInTrialPeriod===n.isInTrialPeriod&&e.subscriptionRevision===n.subscriptionRevision}function O(e){if(!K(e))throw Error("Subscription operation was invalidated by an account or subscription change")}var V=null,G=null,J=function(e){return e.Default="default",e.Success="success",e.Failed="failed",e.Processing="processing",e.Cancel="cancel",e}({});function z(){G&&(clearInterval(G),G=null)}function W(){V&&(V.close(),V=null)}function q(e){return X.apply(this,arguments)}function X(){return(X=(0,i._)(function(e){var n,r,i,o,u,c,a,s,d;return(0,l.YH)(this,function(l){switch(l.label){case 0:n=Y,l.label=1;case 1:if(l.trys.push([1,3,,4]),k)return[2];return[4,Promise.all([t.e(9810),t.e(6220),t.e(7069),t.e(7684),t.e(8218),t.e(2179)]).then(t.bind(t,31900))];case 2:var p,f,h,v;if(i=(r=l.sent()).MeiDou,o=r.Subscribe,u=r.SubscriptionPlatform,n!==Y)return[2];return a=new i(c={debug:!1,accessToken:e.accessToken,env:P.J.env,clientInfo:{language:e.language,appId:P.J.appId,platform:u.PCWeb,countryCode:e.countryCode,abCodes:T,meiyeEntityId:P.J.meiyeEntityId||void 0,meiyeBizTypes:P.J.meiyeBizTypes||void 0},requestOptions:{headers:(p=new URLSearchParams(window.location.search),f={},h=p.get("test_country_code"),v=p.get("test_ip"),h&&(f.test_country_code=h),v&&(f.test_ip=v),f)},cluster:"pixocial"}),s=new o(c),k=a,L=s,null==D||D(!0),[3,4];case 3:if(d=l.sent(),n!==Y)return[2];return console.error("Failed to initialize Subscribe SDK:",d),null==D||D(!1),D=null,[3,4];case 4:return[2]}})})).apply(this,arguments)}function j(e){return Q.apply(this,arguments)}function Q(){return(Q=(0,i._)(function(e){return(0,l.YH)(this,function(n){switch(n.label){case 0:return null==D||D(!1),N(),k=null,L=null,x=new Promise(function(e){D=e}),[4,q(e)];case 1:return n.sent(),[2]}})})).apply(this,arguments)}function Z(e){var n=Number(e);return Number.isFinite(n)?n:void 0}function $(e){var n=Z(e);return void 0===n?void 0:n/100}function ee(){window.dispatchEvent(new Event(M))}function en(e){return et.apply(this,arguments)}function et(){return(et=(0,i._)(function(e){var n,t,r,i,o,u,c,a,s,d=arguments;return(0,l.YH)(this,function(l){switch(l.label){case 0:var p,f;if(n=d.length>1&&void 0!==d[1]?d[1]:0,t=d.length>2&&void 0!==d[2]?d[2]:void 0!==e.period&&!(0,C.aN)(e)&&(null==(f=m.nc.getState().user)||null==(p=f.vipInfo)?void 0:p.inTrialPeriod)===!0,i=void 0!==e.period?e.tier:void 0,void 0===(o=U[n]))return[2];if(!o)return[3,2];return[4,new Promise(function(e){window.setTimeout(e,o)})];case 1:l.sent(),l.label=2;case 2:return[4,(0,v.fetchUserInfo)()];case 3:if(u=l.sent(),a=!i||(0,E.RU)(null!=(c=null==u?void 0:u.info.membershipTier)?c:E.T3.Free,i),s=!t||(null==u||null==(r=u.vipInfo)?void 0:r.inTrialPeriod)===!1,a&&s)return[2];return[4,en(e,n+1,t)];case 4:return l.sent(),[2]}})})).apply(this,arguments)}function er(e){return ei.apply(this,arguments)}function ei(){return(ei=(0,i._)(function(e){var n,r,o,u,a,s,d,p,f;return(0,l.YH)(this,function(v){switch(v.label){case 0:if(k)return[3,2];return[4,x];case 1:v.sent(),v.label=2;case 2:if(!k)throw Error("Subscribe SDK is not initialized");return n=k,r=Y,o=e||P.J.subscriptionGroup,[4,n.fetchEntrance({entranceBizCode:o},{headers:{language:null!=(u=n.options.clientInfo.language)?u:""}})];case 3:return a=v.sent(),s=Date.now(),[4,Promise.all([t.e(9810),t.e(6220),t.e(7069),t.e(7684),t.e(8218),t.e(2179)]).then(t.bind(t,31900))];case 4:if(p=(d=v.sent()).PayChannel,f=d.PromotionType,r!==Y)throw Error("Subscribe product request was invali
1dated by a subscription context change");return!function(e){if(e){var n=Number(e);if(!Number.isSafeInteger(n)||!_.has(n))return h.A.warn("Ignored invalid subscription AB code: ".concat(e));I.has(n)||(!w&&(w=(0,i._)(function(){var e,n,r,i,o,u;return(0,l.YH)(this,function(c){switch(c.label){case 0:return c.trys.push([0,4,,5]),[4,(0,g.EK)()];case 1:if(!(e=c.sent()))return[2,null];return[4,t.e(5432).then(t.bind(t,5432))];case 2:return r=(n=c.sent()).ABTest,i=n.ABTestEnv,[4,(o=new r({appKey:"E695B3E04EB5B956",cluster:n.ABTestCluster.Pixocial,env:i.Release})).init()];case 3:if(c.sent(),!o.initialize)return h.A.error("AB SDK initialization did not complete"),[2,null];return e.setABTesting(o.getABInfo()),[2,o];case 4:return u=c.sent(),h.A.error("Failed to initialize AB SDK: ".concat(u instanceof Error?u.message:String(u))),[2,null];case 5:return[2]}})})()),w).then(function(e){!e||I.has(n)||(e.reportABCodeEnterTest(n),I.add(n))}).catch(function(e){h.A.error("Failed to report subscription AB code ".concat(n,": ").concat(e instanceof Error?e.message:String(e)))})}}(a.hitAbCode),[2,a.productList.map(function(e){return function(e,n,t,r){var i,o,u,a=1===e.subCommodityBo.level?E.T3.Pro:E.T3.Max,s=e.promotions,l=e.productPrice,d=e.buttonExplain,p=e.checkBox,f=e.promotionBanner,h=e.productDesc,v=$(null==l?void 0:l.price);if(void 0===v)throw Error("Subscribe product ".concat(e.productId," has an invalid base price"));var b=function(e,n,t,r,i){var o,u,a,s=(0,c._)((null!=(a=e.promotions)?a:[]).flatMap(function(i){var o,u,c,a,s,l,d,p=i.promotionType===t.RecommendedFreeTrial,f=i.promotionType===t.RecommendedFirst||p||i.promotionType===t.SalesPayAnyTime||i.promotionType===t.SalesPrepayment,h=null!=(d=i.androidPayChannels)?d:[],v=0===h.length||h.some(function(e){return e.trim().toLowerCase()===r.toLowerCase()}),b=null==(o=i.promotionId)?void 0:o.trim(),m=$(null==(u=i.promotionPrice)?void 0:u.price),y=i.promotionType===t.RecommendedFirst||p?n:$(null==(c=i.promotionPrice)?void 0:c.originalPrice),g=function(e){var n,t,r=Z(null==(n=e.promotionDuration)?void 0:n.duration),i=Z(null==(t=e.promotionDuration)?void 0:t.period);if(void 0!==r&&void 0!==i)return{duration:r,period:i}}(i),P=!p||(null==g?void 0:g.period)===C.DF.Day&&Number.isInteger(g.duration)&&g.duration>0,w=null==(a=e.productPrice.moneyUnit)?void 0:a.trim().toUpperCase(),S=null==(l=i.promotionPrice)||null==(s=l.moneyUnit)?void 0:s.trim().toUpperCase();return f&&v&&b&&void 0!==m&&m>=0&&(!p||0===m)&&P&&void 0!==y&&y>m&&w&&S===w?[{comparisonPrice:y,duration:g,promotion:i,promotionId:b,promotionPrice:m}]:[]}),1)[0];if(s){var l=s.comparisonPrice,d=s.duration,p=s.promotion,f=s.promotionId,h=s.promotionPrice;return{promotionId:f,promotionType:p.promotionType,basePrice:l,promotionPrice:h,currency:(null==(o=p.promotionPrice)?void 0:o.moneySymbol)||e.productPrice.moneySymbol,currencyCode:(null==(u=p.promotionPrice)?void 0:u.moneyUnit)||e.productPrice.moneyUnit,duration:d,countdownEndsAt:function(e,n){if(1===Z(e.countdownFlag)){var t=Z(e.countdownEndTime);if(void 0!==t&&t>0)return t>n?t:void 0;var r=Z(e.countdownTime);return void 0!==r&&r>0?n+r:void 0}}(e,i)}}}(e,v,n,t,r),m=(void 0===s?[]:s).find(function(e){var n;return(null==(n=e.promotionGifts)?void 0:n.length)>0}),y=null==m||null==(u=m.promotionGifts)||null==(o=u[0])||null==(i=o.commodityConfig)?void 0:i.count;return{productId:e.productId,name:e.productName,price:v,currency:l.moneySymbol,currencyCode:l.moneyUnit,isPreferred:1===e.preferred,period:e.subPeriod,tier:a,promotion:b,explain:null==p?void 0:p.explain,buttonText:null==d?void 0:d.mainExplain,giftExplain:null==p?void 0:p.giftExplain,bannerText:f,productDesc:h,giftInfo:void 0!==y?{count:y}:void 0}}(e,f,p.Stripe,s)})]}})})).apply(this,arguments)}function eo(e){return eu.apply(this,arguments)}function eu(){return(eu=(0,i._)(function(e){return(0,l.YH)(this,function(n){switch(n.label){case 0:if(k)return[3,2];return[4,x];case 1:n.sent(),n.label=2;case 2:if(!k)throw Error("".concat(e,": Subscribe SDK is not initialized"));return[2,k]}})})).apply(this,arguments)}function ec(){return(ec=(0,i._)(function(e,n){var r,i,o,u,c;return(0,l.YH)(this,function(s){switch(s.label){case 0:if((i=null==(r=n.activeProductId)?void 0:r.trim())||!n.isVip)return[2,i||void 0];return[4,Promise.all([t.e(9810),t.e(6220),t.e(7069),t.e(7684),t.e(8218),t.e(2179)]).then(t.bind(t,31900))];case 1:return o=s.sent().SubscriptionPlatform,[4,e.getAllContracts({appId:P.J.appId,accountType:n.accountType,accountId:n.accountId,platform:o.PCWeb})];case 2:if(u=s.sent(),1===(c=(0,a._)(new Set(u.map(function(e){var n;return null==(n=e.productId)?void 0:n.trim()}).filter(function(e){return!!e})))).length)return[2,c[0]];throw Error(c.length?"Subscription context has multiple active products and no authoritative current SKU":"Subscription context is missing the current membership SKU")}})})).apply(this,arguments)}function ea(){return es.apply(this,arguments)}function es(){return(es=(0,i._)(function(){var e,n,r,i,o,u,c,d,p,f,h,v,b,y,g;return(0,l.YH)(this,function(l){switch(l.label){case 0:return[4,eo("getSubscriptionUserContext")];case 1:return i=l.sent(),o=Y,[4,i.getVipInfo({vipGroup:P.J.vipGroup})];case 2:if("boolean"!=typeof(u=l.sent()).isVip||"boolean"!=typeof u.haveValidContract)throw Error("Subscription context response is missing required membership fields");return d=null!=(c=null==(n=m.nc.getState().user)||null==(e=n.vipInfo)?void 0:e.inTrialPeriod)?c:1===u.activeSubStatus,[4,Promise.all([t.e(9810),t.e(6220),t.e(7069),t.e(7684),t.e(8218),t.e(2179)]).then(t.bind(t,31900))];case 3:if(p=l.sent().SubscriptionPlatform,f=function(e,n){if(void 0!==e.validContractInfo){if(!Array.isArray(e.validContractInfo))throw Error("Subscription context has invali
1d valid contract information");var t=(0,a._)(new Set(e.validContractInfo.flatMap(function(e){if((void 0===e?"undefined":(0,s._)(e))!=="object"||null===e||Array.isArray(e))throw Error("Subscription context contains an invalid valid contract");if(!("platform"in e)||e.platform!==n)return[];if(!("productId"in e)||"string"!=typeof e.productId)throw Error("Subscription context valid contract is missing its product SKU");var t=e.productId.trim();if(!t)throw Error("Subscription context valid contract has an empty product SKU");return[t]})));if(t.length>1)throw Error("Subscription context has multiple valid PC Web contract products");return t[0]}}(u,p.PCWeb),h=(null==(r=u.activeProductId)?void 0:r.trim())||void 0,v=!!(u.isVip&&u.haveValidContract&&d&&h&&f&&h!==f),!(u.isVip&&u.haveValidContract&&!d))return[3,5];return[4,function(e,n){return ec.apply(this,arguments)}(i,u)];case 4:return y=l.sent(),[3,6];case 5:y=h,l.label=6;case 6:if(b=y,g=u.haveValidContract&&f?f:b,i!==k||o!==Y)throw Error("Subscription context request was invalidated by a subscription change");return[2,{isVip:u.isVip,isRenewing:u.haveValidContract,isInTrialPeriod:d,activeProductId:b||void 0,validContractProductId:f,pricingProductId:g,hasUpgradedDuringTrial:v}]}})})).apply(this,arguments)}function el(){return(el=(0,i._)(function(){return(0,l.YH)(this,function(e){return[2,er(P.J.subscriptionGroup)]})})).apply(this,arguments)}function ed(){return(ed=(0,i._)(function(){return(0,l.YH)(this,function(e){return[2,er(P.J.popupSubscriptionGroup)]})})).apply(this,arguments)}function ep(){return ef.apply(this,arguments)}function ef(){return(ef=(0,i._)(function(){var e;return(0,l.YH)(this,function(n){switch(n.label){case 0:if(B)return[2,B];B=e=function(){return el.apply(this,arguments)}(),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,e];case 2:return[2,n.sent()];case 3:return B===e&&(B=null),[7];case 4:return[2]}})})).apply(this,arguments)}function eh(){return ev.apply(this,arguments)}function ev(){return(ev=(0,i._)(function(){var e;return(0,l.YH)(this,function(n){switch(n.label){case 0:if(H)return[2,H];H=e=function(){return ed.apply(this,arguments)}(),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,e];case 2:return[2,n.sent()];case 3:return H===e&&(H=null),[7];case 4:return[2]}})})).apply(this,arguments)}function eb(){return(eb=(0,i._)(function(){var e,n,t,r,i,o;return(0,l.YH)(this,function(u){switch(u.label){case 0:return N(),(e=C.X8.getState()).setIsLoading(!0),e.setIsPopupLoading(!0),e.setError(null),e.setPopupError(null),[4,Promise.allSettled([ep(),eh()])];case 1:return t=(n=c._.apply(void 0,[u.sent(),2]))[0],r=n[1],"fulfilled"===t.status?e.setSubscribeProducts(t.value):(i=t.reason instanceof Error?t.reason.message:String(t.reason),h.A.error("Failed to refresh subscription products after payment: ".concat(i)),e.setError("Failed to refresh products after payment")),"fulfilled"===r.status?e.setPopupSubscribeProducts(r.value):(o=r.reason instanceof Error?r.reason.message:String(r.reason),h.A.error("Failed to refresh popup subscription products after payment: ".concat(o)),e.setPopupError("Failed to refresh popup products after payment")),e.setIsLoading(!1),e.setIsPopupLoading(!1),[2]}})})).apply(this,arguments)}function em(){return ey.apply(this,arguments)}function ey(){return(ey=(0,i._)(function(){var e,n;return(0,l.YH)(this,function(t){switch(t.label){case 0:if(k)return[3,2];return[4,x];case 1:t.sent(),t.label=2;case 2:if(!k)return[2,[]];t.label=3;case 3:return t.trys.push([3,5,,6]),[4,k.fetchMeiDouEntrance({entranceBizCode:P.J.creditsGroup},{headers:{language:null!=(e=k.options.clientInfo.language)?e:""}})];case 4:return[2,((null==(n=t.sent())?void 0:n.productList)||[]).map(function(e){return{productId:e.productId,name:e.productName,price:e.productPrice.price?e.productPrice.price/100:0,currency:e.productPrice.moneySymbol,currencyCode:e.productPrice.moneyUnit,isPreferred:1===e.preferred,bannerText:e.promotionBanner}})];case 5:return console.error("Failed to fetch credits products:",t.sent()),[2,[]];case 6:return[2]}})})).apply(this,arguments)}function eg(e,n,t){return eP.apply(this,arguments)}function eP(){return(eP=(0,i._)(function(e,n,r){var c,a,s,p,b,w,S,_,I,T,E,L,D,x,B=arguments;return(0,l.YH)(this,function(n){switch(n.label){case 0:return c=B.length>
13&&void 0!==B[3]?B[3]:F(),[4,eo("pay").catch(function(e){h.A.error("Payment initialization failed: ".concat(e instanceof Error?e.message:String(e)))})];case 1:if(!(a=n.sent()))return[2,"failed"];s=function(){return a===k&&K(c)},n.label=2;case 2:if(n.trys.push([2,8,,9]),!s())throw Error("Payment was invalidated before checkout by an account or SDK context change");return W(),z(),[4,a.getTradeSessionId()];case 3:if(b=n.sent(),!s())throw Error("Payment was invalidated after creating the trade session by an account or SDK context change");return w=null==b?void 0:b.sessionId,[4,Promise.all([t.e(9810),t.e(6220),t.e(7069),t.e(7684),t.e(8218),t.e(2179)]).then(t.bind(t,31900))];case 4:return _=(S=n.sent()).getOperatingSystem,I=S.OrderDeviceType,[4,(0,g.Pl)().catch(function(e){return h.A.error(e),""})];case 5:if(E=null!=(T=n.sent())?T:"",!s())throw Error("Payment was invalidated while preparing checkout by an account or SDK context change");return L={baseData:JSON.stringify({oper_system:_(),device_type:I.Web}),bigData:JSON.stringify({first_source:r?(0,A.rQ)(r.source):void 0,second_source:null==r||null==(p=r.trackingParams)?void 0:p.source2,device_id:E,position:null==r?void 0:r.position,app_key:"E695B3E04EB5B956",country_code:a.options.clientInfo.countryCode}),businessData:"{}"},[4,a.trackSubscribeData(L)];case 6:if(D=n.sent().transferId,!s())throw Error("Payment was invali
1dated after tracking checkout by an account or SDK context change");return[4,a.createTradeUrl((0,o._)({transferId:D,productId:e.productId,returnUrl:window.location.href,tradeSessionId:w},e.promotion?{promotionId:e.promotion.promotionId}:{}))];case 7:var H;if(x=n.sent().url,!s())throw Error("Payment was invalidated before opening checkout by an account or SDK context change");return H=window.open(x,"bpPayWindow",["height=700","width=1000","top=".concat((window.screen.availHeight-700)/2),"left=".concat((window.screen.availWidth-1e3)/2),"toolbar=no","scrollbars=no","resizable=no","location=no","status=no"].join(",")),(0,d.p)(H)&&(h.A.warn("Payment popup blocked, downgrade to link click simulation"),f(x)),V=H,[2,new Promise(function(n){var t,c=!1,d=function(e){c||(c=!0,void 0!==t&&window.clearTimeout(t),W(),z(),n(e))};G=window.setInterval((0,i._)(function(){var i,p,f,b,g,P,S,_,I;return(0,l.YH)(this,function(l){switch(l.label){case 0:if(!s())return h.A.error("Payment polling stopped because the account or SDK context changed"),d("failed"),[2];l.label=1;case 1:return l.trys.push([1,10,,11]),[4,a.productTradeProgress({tradeSessionId:w})];case 2:if(i=l.sent().transactionList,!s())return h.A.error("Payment result was discarded because the account or SDK context changed"),d("failed"),[2];if(!(null==(p=null==i?void 0:i.filter(function(e){return 2===e.transactionStatus}))?void 0:p.length))return[3,9];if(c)return[2];c=!0,f=p[0].transactionId,r&&(b=m.nc.getState().user,g=void 0!==e.period,P={pay_id:r.pay_id,source1:r.source1,source:(0,A.rQ)(r.source),scene_id:r.scene_id,sku_id:e.productId,price:(0,C.y)(e),order_id:String(f),email:null==b?void 0:b.email},g?(S=(0,u._)((0,o._)({},r.trackingParams||{},P),{position:r.position,sku_duration:e.period,subpage_type:r.subpage_type}),(0,y.k1)("sub_success",S)):(_=(0,u._)((0,o._)({},r.trackingParams||{},P),{credit_unit:parseInt(e.name,10)||void 0}),(0,y.k1)("pay_success",_))),void 0!==t&&window.clearTimeout(t),W(),z(),l.label=3;case 3:return l.trys.push([3,7,,8]),[4,en(e)];case 4:if(l.sent(),void 0===e.period)return[3,6];return[4,function(){return eb.apply(this,arguments)}()];case 5:l.sent(),ee(),l.label=6;case 6:return[3,8];case 7:return I=l.sent(),h.A.error("Payment was delivered but local subscription refresh failed: ".concat(I instanceof Error?I.message:String(I))),[3,8];case 8:return(0,v.sendBroadcastMessage)({type:v.MessageType.PayComplete,params:"success"}),n("success"),[2];case 9:return(null==V?void 0:V.closed)&&d("cancel"),[3,11];case 10:return console.error("Trade progress error:",l.sent()),[3,11];case 11:return[2]}})}),P.J.tradeLoopTime),t=window.setTimeout(function(){d("cancel")},12e5)})];case 8:return console.error("Payment error:",n.sent()),[2,"failed"];case 9:return[2]}})})).apply(this,arguments)}function ew(){return eS.apply(this,arguments)}function eS(){return(eS=(0,i._)(function(){var e,n,r,i,o;return(0,l.YH)(this,function(u){switch(u.label){case 0:if(k)return[3,2];return[4,x];case 1:u.sent(),u.label=2;case 2:if(!k)return[2,[]];u.label=3;case 3:return u.trys.push([3,6,,7]),[4,Promise.all([t.e(9810),t.e(6220),t.e(7069),t.e(7684),t.e(8218),t.e(2179)]).then(t.bind(t,31900))];case 4:if(r=(n=u.sent()).AccountType,i=n.SubscriptionPlatform,!(o=null==(e=m.nc.getState().user)?void 0:e.uid))return[2,[]];return[4,k.getAllContracts({appId:P.J.appId,accountType:r.Uid,accountId:o,platform:i.PCWeb})];case 5:return[2,(u.sent()||[]).map(function(e){return{contractId:e.contractId,productId:e.productId||"",planType:3===e.subPeriod?b.OL.Yearly:b.OL.Monthly,status:"active",startDate:e.validTime?new Date(Number(e.validTime)).toISOString():"",endDate:e.invalidTime?new Date(Number(e.invalidTime)).toISOString():"",autoRenewal:!0,isTrialUsed:!1}})];case 6:return console.error("Failed to fetch contracts:",u.sent()),[2,[]];case 7:return[2]}})})).apply(this,arguments)}function e_(e){return eI.apply(this,arguments)}function eI(){return(eI=(0,i._)(function(e){return(0,l.YH)(this,function(n){switch(n.label){case 0:if(k)return[3,2];return[4,x];case 1:n.sent(),n.label=2;case 2:if(!k)return[2,!1];n.label=3;case 3:return n.trys.push([3,5,,6]),[4,k.terminateContract({contractId:e})];case 4:return n.sent(),N(),ee(),[2,!0];case 5:return console.error("Failed to terminate contract:",n.sent()),[2,!1];case 6:return[2]}})})).apply(this,arguments)}function eT(){return(eT=(0,i._)(function(e){return(0,l.YH)(this,function(n){switch(n.label){case 0:if(L)return[3,2];return[4,x];case 1:n.sent(),n.label=2;case 2:if(!L)throw Error("".concat(e,": Subscribe SDK is not initialized"));return[2,L]}})})).apply(this,arguments)}function eC(e){return eE.apply(this,arguments)}function eE(){return(eE=(0,i._)(function(e){var n,r,i;return(0,l.YH)(this,function(o){switch(o.label){case 0:return[4,function(e){return eT.apply(this,arguments)}("exchangeRedeemCode")];case 1:return n=o.sent(),[4,Promise.all([t.e(9810),t.e(6220),t.e(7069),t.e(7684),t.e(8218),t.e(2179)]).then(t.bind(t,31900))];case 2:return r=o.sent().ExchangeRedeemCodeDevice,[4,n.exchangeRedeemCode({redeemCode:e,device:r.Web})];case 3:return i=o.sent(),(0,v.fetchUserInfo)().catch(function(e){h.A.error("Failed to refresh account after redeeming a code: ".concat(String(e)))}),(0,v.sendBroadcastMessage)({type:v.MessageType.UpdateUserInfo}),[2,i]}})})).apply(this,arguments)}function eA(){return(eA=(0,i._)(function(e){return(0,l.YH)(this,function(n){return P.J.meiyeEntityId?[2,P.J.meiyeEntityId]:r?[2,r]:(R||(R=e.fetchBalance().then(function(e){return r=(null==e?void 0:e.meiyeEntityId)||void 0}).catch(function(e){h.A.warn("Failed to resolve Meiye entity id for credit records: ".concat(String(e)))}).finally(function(){R=null})),[2,R])})})).apply(this,arguments)}function ek(e,n){return eL.apply(this,arguments)}function eL(){return(eL=(0,i._)(function(e,n){var t,r,i;return(0,l.YH)(this,function(u){switch(u.label){case 0:if(r=null==n?void 0:n.meiyeEntityId)return[3,2];return[4,function(e){return eA.apply(this,arguments)}(e)];case 1:r=u.sent(),u.label=2;case 2:if(t=r,i=(null==n?void 0:n.bizTypes)||P.J.meiyeBizTypes||void 0,!t&&!i)return[2,n];return[2,(0,o._)({},n,t?{meiyeEntityId:t}:{},i?{bizTypes:i}:{})]}})})).apply(this,arguments)}function eD(){return ex.apply(this,arguments)}function ex(){return(ex=(0,i._)(function(){var e,n,t,r,i,o,u;return(0,l.YH)(this,function(c){switch(c.label){case 0:if(k)return[3,2];return[4,x];case 1:c.sent(),c.label=2;case 2:if(!k)return[2,null];c.label=3;case 3:return c.trys.push([3,5,,6]),[4,k.fetchBalance()];case 4:return[2,{totalAmount:null!=(n=null==(e=c.sent())?void 0:e.totalAmount)?n:0,availableAmou
1nt:null!=(t=null==e?void 0:e.availableAmount)?t:0,meidouAmount:null!=(r=null==e?void 0:e.meidouAmount)?r:0,meidouAvailableAmount:null!=(i=null==e?void 0:e.meidouAvailableAmount)?i:0,meiyeAmount:null!=(o=null==e?void 0:e.meiyeAmount)?o:0,meiyeAvailableAmount:null!=(u=null==e?void 0:e.meiyeAvailableAmount)?u:0,myCredits:null==e?void 0:e.myCredits}];case 5:return console.error("Failed to fetch credits balance:",c.sent()),[2,null];case 6:return[2]}})})).apply(this,arguments)}function eB(e){return eH.apply(this,arguments)}function eH(){return(eH=(0,i._)(function(e){var n,t;return(0,l.YH)(this,function(r){switch(r.label){case 0:return[4,eo("fetchRechargeRecords")];case 1:return[4,ek(n=r.sent(),e)];case 2:return t=r.sent(),[2,n.fetchRechargeRecords(t)]}})})).apply(this,arguments)}function eY(e){return eR.apply(this,arguments)}function eR(){return(eR=(0,i._)(function(e){var n,t;return(0,l.YH)(this,function(r){switch(r.label){case 0:return[4,eo("fetchConsumeRecords")];case 1:return[4,ek(n=r.sent(),e)];case 2:return t=r.sent(),[2,n.fetchConsumeRecords(t)]}})})).apply(this,arguments)}},77889:(e,n,t)=>{t.r(n),t.d(n,{LoginType:()=>P,MessageType:()=>w,addBroadcastListener:()=>T,fetchUserInfo:()=>C,getAccountSDK:()=>V,initAccount:()=>D,initBroadcastChannel:()=>_,isSignedIn:()=>N,openLoginPopup:()=>B,sendBroadcastMessage:()=>I,signIn:()=>Y,signOut:()=>U,updateAccountInfo:()=>K});var r,i=t(29935),o=t(17844),u=t(93629),c=t(17459),a=t(82643),s=t(24760),l=t(57129),d=t(74811),p=t(66853),f=t(94117),h=t(18439),v=t(44992),b=null,m=null,y=null,g=new Promise(function(e){m=e}),P=function(e){return e.Manual="manual",e.Auto="auto",e}({}),w=function(e){return e.SignIn="bp_sign_in",e.SignOut="bp_sign_out",e.PayComplete="bp_pay_complete",e.UpdateUserInfo="bp_update_user_info",e}({}),S=null;function _(){try{S=new BroadcastChannel("".concat(v.f.projectName,"_auth"))}catch(e){console.warn("BroadcastChannel not supported")}}function I(e){try{null==S||S.postMessage(e)}catch(e){}}function T(e,n){S&&S.addEventListener("message",function(t){var r;(null==(r=t.data)?void 0:r.type)===e&&n(t.data.params)})}function C(){return E.apply(this,arguments)}function E(){return(E=(0,i._)(function(){var e,n,r,i,o,u;return(0,a.YH)(this,function(c){switch(c.label){case 0:return c.trys.push([0,8,,9]),[4,(0,l.Gf)()];case 1:if(!(e=c.sent()))return[2];n=e.info,r=e.vipInfo,i="".concat(n.id),c.label=2;case 2:return c.trys.push([2,5,,6]),[4,Promise.resolve().then(t.bind(t,74811))];case 3:return[4,(0,c.sent().fetchCreditsBalance)()];case 4:return(u=c.sent())&&(o={balance:Number(u.availableAmount)}),[3,6];case 5:return console.warn("Failed to fetch credits balance:",c.sent()),[3,6];case 6:return h.nc.getState().setUserInfo({uid:i,isVip:n.isVip,membershipTier:n.membershipTier,userInfo:{nickname:n.nickname,avatar:n.avatar,email:n.email,membershipTier:n.membershipTier,balanceDetail:o,vipInfo:r}}),[4,(0,f.bo)(i)];case 7:return c.sent(),[2,e];case 8:return console.error("Failed to fetch user info:",c.sent()),(0,f.sq)(),[3,9];case 9:return[2]}})})).apply(this,arguments)}function A(){return(A=(0,i._)(function(){var e,n,t;return(0,a.YH)(this,function(i){switch(i.label){case 0:return n=(e=h.nc.getState()).locale,t=e.countryCode,I({type:"bp_sign_out"}),y=null,r=void 0,h.nc.getState().resetAuthStatus(),s.A.remove(v.f.authTokenKey),[4,(0,d.reinitSubscribe)({language:n,countryCode:t})];case 1:return i.sent(),(0,f.sq)(),[2]}})})).apply(this,arguments)}function k(){return(k=(0,i._)(function(e,n){var t,i,o;return(0,a.YH)(this,function(u){switch(u.label){case 0:if(s.A.set(v.f.authTokenKey,e.accessToken,{secure:!0,expires:new Date(1e3*e.expiresAt)}),!(null==e?void 0:e.uid))return[3,2];return[4,(0,f.bo)(String(e.uid))];case 1:u.sent(),u.label=2;case 2:return h.nc.getState().setAccessToken(e.accessToken),(0,p.k1)("sign_in_suc",null!=n?n:{}),r===n&&(r=void 0),I({type:"bp_sign_in",params:e.accessToken}),i=(t=h.nc.getState()).locale,o=t.countryCode,[4,(0,d.reinitSubscribe)({language:i,accessToken:e.accessToken,countryCode:o})];case 3:return u.sent(),[4,C()];case 4:return u.sent(),[2]}})})).apply(this,arguments)}function L(e,n){if((null==y?void 0:y.accessToken)===e.accessToken)return y.promise;var t=function(e,n){return k.apply(this,arguments)}
1(e,n);return y={accessToken:e.accessToken,promise:t},t.catch(function(){(null==y?void 0:y.promise)===t&&(y=null)}),t}function D(e){return x.apply(this,arguments)}function x(){return(x=(0,i._)(function(e){var n,o,u,c,s,l,d,p=arguments;return(0,a.YH)(this,function(f){switch(f.label){case 0:n=p.length>1&&void 0!==p[1]?p[1]:"default",f.label=1;case 1:if(f.trys.push([1,3,,4]),b)return[2];return[4,Promise.all([t.e(9963),t.e(6332),t.e(7069),t.e(7259),t.e(1316),t.e(7684),t.e(4340),t.e(5345),t.e(8251),t.e(3696),t.e(3936)]).then(t.bind(t,13696))];case 2:var h;return u=(o=f.sent()).MeituAccount,c=o.EmailLoginMethod,s=o.ApplicationAttribution,l=o.AppLoginStatus,b=u({clientLanguage:e,env:v.f.env,clientId:v.f.clientId,application:s.Pixocial,clientConfigs:{theme:n,emailLoginMethod:c.VerifyCode,googleClientId:v.f.googleClientId,useGoogleAutoSelect:!1,enableCrossClientLoginSync:!1},onLoginSuccess:(h=(0,i._)(function(e,n){var t,i;return(0,a.YH)(this,function(n){switch(n.label){case 0:var o,u,c,a,s;return(i=new URL(window.location.href)).searchParams.get("code")&&(i.search="",window.history.replaceState({},"",i.toString())),(null==(t=e.user)?void 0:t.statusRegisterApp)===l.Register&&(null==(o=(u=window).gtag)||o.call(u,"event","sign_up",{}),null==(c=(a=window).fbq)||c.call(a,"track","CompleteRegistration",{}),null==(s=window.ttq)||s.track("CompleteRegistration",{})),[4,L(e,r)];case 1:return n.sent(),[2]}})}),function(e,n){return h.apply(this,arguments)}),onLoginError:function(e){console.error("Login error:",e)}}),null==m||m(!0),[3,4];case 3:return console.error("Failed to initialize Account SDK:",d=f.sent()),null==m||m(!1),m=null,"ChunkLoadError"===d.name&&window.location.reload(),[3,4];case 4:return[2]}})})).apply(this,arguments)}function B(e){return H.apply(this,arguments)}function H(){return(H=(0,i._)(function(e){var n,s,l,d,f,h,v,m,y,P,w,S,_,I;return(0,a.YH)(this,function(T){switch(T.label){case 0:if(T.trys.push([0,4,,5]),l=void 0===(s=(n=e||{}).loginType)?"manual":s,d=n.onLoginCancel,f=n.onLoginSuccess,h=n.trackingParams,m=void 0!==(v=n.waitForAccountSync)&&v,y=(0,c._)(n,["loginType","onLoginCancel","onLoginSuccess","trackingParams","waitForAccountSync"]),b)return[3,2];return[4,g];case 1:T.sent(),T.label=2;case 2:return[4,Promise.all([t.e(8555),t.e(6962),t.e(2483),t.e(9963),t.e(878),t.e(6332),t.e(3739),t.e(7069),t.e(7259),t.e(1316),t.e(8251),t.e(5594),t.e(1555)]).then(t.bind(t,75594))];case 3:var C;return w=(P=T.sent()).ThirdPartyPlatform,S=P.openLoginPopup,_=P.LoginMethod,r=h,S((0,u._)((0,o._)({force:!0,containerClass:"bp-account-login-popup",thirdPartyAccounts:[w.Google,w.Email,w.Apple],useGoogleFedCM:!0,useLoginMethod:"manual"===l?_.ThirdPartyAccounts:_.GoogleOneTap},y),{onLoginSuccess:m&&f?(C=(0,i._)(function(e){return(0,a.YH)(this,function(n){switch(n.label){case 0:return[4,L(e,h)];case 1:return n.sent(),[4,f()];case 2:return n.sent(),[2]}})}),function(e){return C.apply(this,arguments)}):f,onShow:function(){(0,p.k1)("sign_in_popup_exposure",null!=h?h:{})},onClose:function(e){console.log("userClose",e),e&&(r=void 0,null==d||d())}})),[3,5];case 4:return console.error("Failed to open login popup:",I=T.sent()),"ChunkLoadError"===I.name&&window.location.reload(),[3,5];case 5:return[2]}})})).apply(this,arguments)}function Y(e,n,t){return R.apply(this,arguments)}function R(){return(R=(0,i._)(function(e,n,t){var r;return(0,a.YH)(this,function(i){switch(i.label){case 0:if(b)return[3,2];return[4,g];case 1:i.sent(),i.label=2;case 2:return[4,null==b||null==(r=b.isLogin)?void 0:r.call(b)];case 3:if(i.sent())return[3,5];return[4,B((0,u._)((0,o._)({},e),{onLoginSuccess:n,onLoginError:t}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})).apply(this,arguments)}function U(e){return M.apply(this,arguments)}function M(){return(M=(0,i._)(function(e){return(0,a.YH)(this,function(n){switch(n.label){case 0:if(b)return[3,2];return[4,g];case 1:n.sent(),n.label=2;case 2:return null==b||b.logout({silentSyncLogout:!0}),[4,function(){return A.apply(this,arguments)}()];case 3:return n.sent(),null==e||e(),[2]}})})).apply(this,arguments)}function N(){return F.apply(this,arguments)}function F(){return(F=(0,i._)(function(){var e,n;return(0,a.YH)(this,function(t){switch(t.label){case 0:if(b)return[3,2];return[4,g];case 1:t.sent(),t.label=2;case 2:return[2,null!=(n=null==b||null==(e=b.isLogin)?void 0:e.call(b))&&n]}})})).apply(this,arguments)}function K(e){return O.apply(this,arguments)}function O(){return(O=(0,i._)(function(e){return(0,a.YH)(this,function(n){switch(n.label){case 0:if(b)return[3,2];return[4,g];case 1:n.sent(),n.label=2;case 2:return null==b||b.setClientInfo({accessToken:e.accessToken}
1),h.nc.getState().setAccessToken(e.accessToken),s.A.set(v.f.authTokenKey,e.accessToken,{secure:!0,expires:new Date(1e3*e.expiresAt)}),[2]}})})).apply(this,arguments)}function V(){return G.apply(this,arguments)}function G(){return(G=(0,i._)(function(){return(0,a.YH)(this,function(e){switch(e.label){case 0:if(b)return[3,2];return[4,g];case 1:e.sent(),e.label=2;case 2:return[2,b]}})})).apply(this,arguments)}},84733:(e,n,t)=>{t.d(n,{A:()=>u});var r,i=t(50148);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}let u=function(e){return i.createElement("svg",o({width:"1em",height:"1em",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),r||(r=i.createElement("g",{id:"heroicons-solid/cloud-arrow-up"},i.createElement("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 2.5C5.29086 2.5 3.5 4.29086 3.5 6.5C3.5 6.61124 3.50455 6.7215 3.51349 6.8306C2.32418 7.38936 1.5 8.5979 1.5 10C1.5 11.933 3.067 13.5 5 13.5H12.5C14.1569 13.5 15.5 12.1569 15.5 10.5C15.5 9.37684 14.883 8.39876 13.9705 7.88466C13.9899 7.7591 14 7.63062 14 7.5C14 6.11929 12.8807 5 11.5 5C11.4039 5 11.309 5.00544 11.2155 5.01605C10.6262 3.54188 9.1853 2.5 7.5 2.5ZM8.85355 6.14645C8.65829 5.95118 8.34171 5.95118 8.14645 6.14645L6.14645 8.14645C5.95118 8.34171 5.95118 8.65829 6.14645 8.85355C6.34171 9.04882 6.65829 9.04882 6.85355 8.85355L8 7.70711L8 11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V7.70711L10.1464 8.85355C10.3417 9.04882 10.6583 9.04882 10.8536 8.85355C11.0488 8.65829 11.0488 8.34171 10.8536 8.14645L8.85355 6.14645Z"}))))}},91797:(e,n,t)=>{t.d(n,{H:()=>a,I:()=>s});var r=t(29935),i=t(82643),o=t(38457),u=t(36560),c=t(3958),a=function(){var e=(0,r._)(function(){var e,n,t,r;return(0,i.YH)(this,function(i){switch(i.label){case 0:return[4,o.Ay.load()];case 1:return[4,i.sent().get()];case 2:return e=i.sent(),n=o.Ay.hashComponents(e.components),t="".concat(c.b1.bplus,"-").concat(n).concat(""),(r=localStorage.getItem(u.SD))&&(!r||(null==r?void 0:r.startsWith(c.b1.bplus)))||localStorage.setItem(u.SD,t),[2,t]}})});return function(){return e.apply(this,arguments)}}(),s=function(){var e=localStorage.getItem(u.SD);return e||a()}},93852:(e,n,t)=>{t.d(n,{A:()=>d,f:()=>l});var r=t(29935),i=t(82643),o=t(50148),u=t(91797),c=t(36560).SD,a=function(){var e=localStorage.getItem(c);if(null!==e)return e},s=function(e){localStorage.setItem(c,e)},l=function(){var e=(0,r._)(function(){var e,n;return(0,i.YH)(this,function(t){switch(t.label){case 0:if(void 0!==(e=a()))return[2,e];return[4,(0,u.H)()];case 1:return s(n=t.sent()),[2,n]}})});return function(){return e.apply(this,arguments)}}();function d(){var e=(0,o.useRef)(a());return(0,o.useEffect)(function(){void 0===a()&&(0,u.H)().then(function(n){s(n),e.current=n})},[]),e}}}]);

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.