/*! For license information please see 83.97401b30.js.LICENSE.txt */ (self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[83],{37272:(e,t,n)=>{"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a(){for(var e=[],t=0;t0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t};function y(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var b,w,S=y((function(e,t){var n;n=function(){function e(){for(var e=0,t={};e-1&&(t=e.slice(0,e.indexOf("Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),r=n.indexOf(";");t=n.slice(0,r)}}catch(e){return t.trim()}return t.trim()},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),R={sg:"1fz22z22z1nz21z4mz4bz4bz21z1ez18z1jz1gz49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz18z1jz1gz24z18z49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k"},D={va:"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",in:"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},M={sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z21z1ez4az22z1gz1iz22z1mz1iz24z4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k",in:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z49z23z21z1cz18z21z22z4ez18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k"},j={sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az23z21z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az23z21z4az22z1gz1iz22z1mz1iz4az1az1mz1k"},P="5.0.35_oversea",I=function(){function e(e,t){this.collector=e,this.config=t,this.eventNameWhiteList=["__bav_page","__bav_beat","__bav_page_statistics","__bav_click","__bav_page_exposure"],this.paramsNameWhiteList=["$inactive","$inline","$target_uuid_list","$source_uuid","$is_spider","$source_id","$is_first_time","_staging_flag"],this.regStr=new RegExp("^[a-zA-Z0-9][a-z0-9A-Z_.-]{1,255}$")}return e.prototype.checkVerify=function(e){var t=this;if(!e||!e.length)return!1;var n=e[0];if(!n)return!1;var r=n.events,i=n.header;if(!r||!r.length)return!1;var o=!0;return r.forEach((function(e){if(!e)return o=!1,void(e.checkEvent="\u4e8b\u4ef6\u5f02\u5e38");t.checkEventName(e.event)||(o=!1,e.checkEvent="\u4e8b\u4ef6\u540d\u4e0d\u80fd\u4ee5 $ or __\u5f00\u5934"),t.checkEventParams(e.params)||(o=!1,e.checkParams="\u5c5e\u6027\u540d\u4e0d\u80fd\u4ee5 $ or __\u5f00\u5934")})),this.checkEventParams(i)||(o=!1),o},e.prototype.checkEventName=function(e){return!!e&&this.calculate(e,"event")},e.prototype.checkEventParams=function(e){var t=e;if("string"==typeof e&&(t=JSON.parse(t)),!Object.keys(t).length)return!0;for(var n in t)return!(!this.calculate(n,"params")||"string"==typeof t[n]&&t[n].length>1024&&(console.warn("params: "+n+" can not over 1024 byte, please check;"),1));return!0},e.prototype.calculate=function(e,t){return-1!==("event"===t?this.eventNameWhiteList:this.paramsNameWhiteList).indexOf(e)||!new RegExp("^\\$").test(e)&&!new RegExp("^__").test(e)||(console.warn(("event"===t?"event":"params")+" name: "+e+" can not start with $ or __, pleace check;"),!1)},e}();!function(e){e.Init="init",e.Config="config",e.Start="start",e.Ready="ready",e.TokenComplete="token-complete",e.TokenStorage="token-storage",e.TokenFetch="token-fetch",e.TokenError="token-error",e.ConfigUuid="config-uuid",e.ConfigWebId="config-webid",e.ConfigDomain="config-domain",e.CustomWebId="custom-webid",e.TokenChange="token-change",e.TokenReset="token-reset",e.ConfigTransform="config-transform",e.EnvTransform="env-transform",e.SessionReset="session-reset",e.SessionResetTime="session-reset-time",e.Event="event",e.Events="events",e.EventNow="event-now",e.CleanEvents="clean-events",e.BeconEvent="becon-event",e.SubmitBefore="submit-before",e.SubmitScuess="submit-scuess",e.SubmitAfter="submit-after",e.SubmitError="submit-error",e.SubmitVerify="submit-verify",e.Stay="stay",e.ResetStay="reset-stay",e.StayReady="stay-ready",e.SetStay="set-stay",e.RouteChange="route-change",e.RouteReady="route-ready",e.Ab="ab",e.AbVar="ab-var",e.AbAllVars="ab-all-vars",e.AbConfig="ab-config",e.AbExternalVersion="ab-external-version",e.AbVersionChangeOn="ab-version-change-on",e.AbVersionChangeOff="ab-version-change-off",e.AbOpenLayer="ab-open-layer",e.AbCloseLayer="ab-close-layer",e.AbReady="ab-ready",e.AbComplete="ab-complete",e.AbTimeout="ab-timeout",e.Profile="profile",e.ProfileSet="profile-set",e.ProfileSetOnce="profile-set-once",e.ProfileUnset="profile-unset",e.ProfileIncrement="profile-increment",e.ProfileAppend="profile-append",e.ProfileClear="profile-clear",e.Autotrack="autotrack",e.AutotrackReady="autotrack-ready",e.CepReady="cep-ready",e.TracerReady="tracer-ready",e.sessionRecord="session-record",e.SessionRecordStart="session-record-start",e.SessionRecordPause="session-record-pause",e.SessionRecordEnd="session-record-end",e.SessionRecordReport="session-record-report"}(b||(b={})),function(e){e.DEBUGGER_MESSAGE="debugger-message",e.DEBUGGER_MESSAGE_SDK="debugger-message-sdk",e.DEBUGGER_MESSAGE_FETCH="debugger-message-fetch",e.DEBUGGER_MESSAGE_FETCH_RESULT="debugger-message-fetch-result",e.DEBUGGER_MESSAGE_EVENT="debugger-message-event",e.DEVTOOL_WEB_READY="devtool-web-ready"}(w||(w={}));var z=b,N=void 0,L=(new Date).getTimezoneOffset(),G=parseInt(""+-L/60,10),B=60*L,U=function(){function e(e,t){this.is_first_time=!0,this.configPersist=!1,this.initConfig=t,this.collect=e;var n=new C(t.app_id,t.cookie_domain||"",t.cookie_expire||6048e5).init();this.eventCheck=new I(e,t);var r="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new T(!1,"session"),this.localStorage=new T(!1,"local"),this.channelUrl="tcpy"===t.channel_type||"ttp"===t.channel_type?{WEBID_URL:"/v1/user/webid",TOB_URL:"",REPORT_URL:"/v1/list"}:{WEBID_URL:"/webid",TOB_URL:"/tobid",REPORT_URL:"/list"},t.configPersist&&(this.configPersist=!0,this.storage=1===t.configPersist?this.sessionStorage:this.localStorage);var i=this.localStorage.getItem(r);i&&1==i?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(r,"1")),this.envInfo={user:{user_unique_id:N,user_type:N,user_id:N,user_is_auth:N,user_is_login:N,device_id:N,web_id:N,ip_addr_id:N,user_unique_id_type:N},header:{app_id:N,app_name:N,app_install_id:N,install_id:N,app_package:N,app_channel:N,app_version:N,ab_version:N,os_name:n.os_name,os_version:n.os_version,device_model:n.device_model,ab_client:N,traffic_type:N,client_ip:N,device_brand:N,os_api:N,access:N,language:n.language,region:N,app_language:N,app_region:N,creative_id:n.utm.creative_id,ad_id:n.utm.ad_id,campaign_id:n.utm.campaign_id,log_type:N,rnd:N,platform:n.platform,sdk_version:P,sdk_lib:"js",province:N,city:N,timezone:G,tz_offset:B,tz_name:N,sim_region:N,carrier:N,resolution:n.screen_width+"x"+n.screen_height,browser:n.browser,browser_version:n.browser_version,referrer:n.referrer,referrer_host:n.referrer_host,width:n.screen_width,height:n.screen_height,screen_width:n.screen_width,screen_height:n.screen_height,utm_term:n.utm.utm_term,utm_content:n.utm.utm_content,utm_source:n.utm.utm_source,utm_medium:n.utm.utm_medium,utm_campaign:n.utm.utm_campaign,tracer_data:JSON.stringify(n.utm.tracer_data),custom:{},wechat_unionid:N,wechat_openid:N}},this.ab_version="",this.evtParams={},this.reportErrorCallback=function(){},this.isLast=!1,this.setCustom(n),this.initDomain(),this.initABData()}return e.prototype.initDomain=function(e){var t=this.initConfig.channel_domain;if(t)this.domain=t;else{var n=e||this.initConfig.channel,r=this.initConfig&&this.initConfig.channel_type?"tcpy"===this.initConfig.channel_type?M[n]:j[n]:R[n];this.domain=f(r)}},e.prototype.setDomain=function(e){this.customDomain=!0,this.domain=e},e.prototype.getDomain=function(e){return this.customDomain||e&&this.initDomain(e),this.domain},e.prototype.initABData=function(){var e="__tea_sdk_ab_version_"+this.initConfig.app_id,t=null;if(this.initConfig.ab_cross){var n=this.localStorage.getCookie(e,this.initConfig.ab_cookie_domain);t=n?JSON.parse(n):null}else t=this.localStorage.getItem(e);this.setAbCache(t)},e.prototype.setAbCache=function(e){this.ab_cache=e},e.prototype.getAbCache=function(){return this.ab_cache},e.prototype.clearAbCache=function(){this.ab_cache={},this.ab_version=""},e.prototype.setAbVersion=function(e){this.ab_version=e},e.prototype.getAbVersion=function(){return this.ab_version},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.initConfig.report_url||this.channelUrl.REPORT_URL;break;case"webid":t=this.channelUrl.WEBID_URL;break;case"tobid":t=this.channelUrl.TOB_URL}var n="";return this.initConfig.caller&&(n="?sdk_version="+P+"&sdk_name=web&app_id="+this.initConfig.app_id+"&caller="+this.initConfig.caller),""+this.getDomain()+t+n},e.prototype.setCustom=function(e){if(e&&e.latest_data&&e.latest_data.isLast)for(var t in delete e.latest_data.isLast,this.isLast=!0,e.latest_data)this.envInfo.header.custom[t]=e.latest_data[t]},e.prototype.set=function(e){var t=this;Object.keys(e).forEach((function(n){void 0!==e[n]&&null!==e[n]||t.delete(n);try{t.eventCheck.calculate(n,"config")}catch(r){}if("traffic_type"===n&&t.isLast&&(t.envInfo.header.custom.$latest_traffic_source_type=e[n]),"evtParams"===n)t.evtParams=r({},t.evtParams||{},e.evtParams||{});else if("_staging_flag"===n)t.evtParams=r({},t.evtParams||{},{_staging_flag:e._staging_flag});else if("reportErrorCallback"===n&&"function"==typeof e[n])t.reportErrorCallback=e[n];else{var i="",o="";if(n.indexOf(".")>-1){var a=n.split(".");i=a[0],o=a[1]}i?"user"===i||"header"===i?t.envInfo[i][o]=e[n]:t.envInfo.header.custom[o]=e[n]:Object.hasOwnProperty.call(t.envInfo.user,n)?["user_type","ip_addr_id"].indexOf(n)>-1?t.envInfo.user[n]=e[n]?Number(e[n]):e[n]:["user_id","web_id","user_unique_id","user_unique_id_type"].indexOf(n)>-1?t.envInfo.user[n]=e[n]?String(e[n]):e[n]:["user_is_auth","user_is_login"].indexOf(n)>-1?t.envInfo.user[n]=Boolean(e[n]):"device_id"===n&&(t.envInfo.user[n]=e[n]):Object.hasOwnProperty.call(t.envInfo.header,n)?t.envInfo.header[n]=e[n]:t.envInfo.header.custom[n]=e[n]}}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(JSON.stringify(this.envInfo[e])):JSON.parse(JSON.stringify(this.envInfo))}catch(e){console.log("get config stringify error "),this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e.prototype.setStore=function(e){try{if(!this.configPersist)return;var t=this.storage.getItem(this.configKey)||{};if(t&&Object.keys(e).length){var n=Object.assign(e,t);this.storage.setItem(this.configKey,n)}}catch(e){console.log("setStore error"),this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e.prototype.getStore=function(){try{if(!this.configPersist)return null;var e=this.storage.getItem(this.configKey)||{};return e&&Object.keys(e).length?e:null}catch(e){return this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),null}},e.prototype.delete=function(e){try{if(!this.configPersist)return;var t=this.storage.getItem(this.configKey)||{};t&&Object.hasOwnProperty.call(t,e)&&(delete t[e],this.storage.setItem(this.configKey,t))}catch(e){this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),console.log("delete error")}},e}(),$=function(){function e(e,t){this.isLog=t||!1,this.name=e||""}return e.prototype.info=function(e){this.isLog&&console.log("%c %s","color: yellow; background-color: black;","[instance: "+this.name+"] "+e)},e.prototype.warn=function(e){this.isLog&&console.warn("[instance: "+this.name+"] "+e)},e.prototype.error=function(e){this.isLog&&console.error("[instance: "+this.name+"] "+e)},e.prototype.throw=function(e){throw this.error(this.name),new Error(e)},e}(),V=function(){function e(e,t){this.collect=e,this.native=t}var t=e.prototype;return t.bridgeInject=function(){try{return!!this.native&&(AppLogBridge?(console.log("AppLogBridge is injected"),!0):(console.log("AppLogBridge is not inject"),!1))}catch(e){return console.log("AppLogBridge is not inject"),!1}},t.bridgeReady=function(){var e=this;return new Promise((function(t,n){try{e.bridgeInject()?AppLogBridge.hasStarted((function(e){console.log("AppLogBridge is started? : "+e),e?t(!0):n(!1)})):n(!1)}catch(e){console.log("AppLogBridge, error:"+JSON.stringify(e.stack)),n(!1)}}))},t.setNativeAppId=function(e){try{AppLogBridge.setNativeAppId(JSON.stringify(e)),console.log("change bridge appid, event report with appid: "+e)}catch(e){console.error("setNativeAppId error")}},t.setConfig=function(e){var t=this;try{Object.keys(e).forEach((function(n){"user_unique_id"===n?t.setUserUniqueId(e[n]):e[n]?t.addHeaderInfo(n,e[n]):t.removeHeaderInfo(n)}))}catch(e){console.error("setConfig error")}},t.setUserUniqueId=function(e){try{AppLogBridge.setUserUniqueId(e)}catch(e){console.error("setUserUniqueId error")}},t.addHeaderInfo=function(e,t){try{AppLogBridge.addHeaderInfo(e,t)}catch(e){console.error("addHeaderInfo error")}},t.setHeaderInfo=function(e){try{AppLogBridge.setHeaderInfo(JSON.stringify(e))}catch(e){console.error("setHeaderInfo error")}},t.removeHeaderInfo=function(e){try{AppLogBridge.removeHeaderInfo(e)}catch(e){console.error("removeHeaderInfo error")}},t.reportPv=function(e){this.onEventV3("predefine_pageview",e)},t.onEventV3=function(e,t){try{AppLogBridge.onEventV3(e,t),this.collect.emit(DebuggerMesssge.DEBUGGER_MESSAGE,{type:DebuggerMesssge.DEBUGGER_MESSAGE_EVENT,info:"bridge\u57cb\u70b9\u4e0a\u62a5",time:Date.now(),data:[{events:[{event:e,params:t}]}],code:200,status:"success"})}catch(e){console.error("onEventV3 error")}},t.profileSet=function(e){try{AppLogBridge.profileSet(e)}catch(e){console.error("profileSet error")}},t.profileSetOnce=function(e){try{AppLogBridge.profileSetOnce(e)}catch(e){console.error("profileSetOnce error")}},t.profileIncrement=function(e){try{AppLogBridge.profileIncrement(e)}catch(e){console.error("profileIncrement error")}},t.profileUnset=function(e){try{AppLogBridge.profileUnset(e)}catch(e){console.error("profileUnset error")}},t.profileAppend=function(e){try{AppLogBridge.profileAppend(e)}catch(e){console.error("profileAppend error")}},e}(),q=500,H=5005;function K(e,t,n,r,i,o,a,s,c){try{var u=new XMLHttpRequest,l=s||"POST";u.open(l,""+e,!0),u.setRequestHeader("Content-Type","application/json; charset=utf-8"),a&&u.setRequestHeader("X-MCS-AppKey",""+a),r&&(u.withCredentials=!0),u.onload=function(){if(i){var e=null;if(u.responseText){try{e=JSON.parse(u.responseText)}catch(t){e={}}i(e,t)}}},n&&(u.timeout=n,u.ontimeout=function(){o&&o(t,H)}),u.onerror=function(){u.abort(),o&&o(t,q)},c?u.send(t):u.send(JSON.stringify(t))}catch(e){}}var F=function(e,t,n,r){try{var i,o=e.match(/\/v\d\//);i=o?o[0]:-1!==e.indexOf("/v1/")?"/v1/":"/v2/";var a=e.split(i)[0];if(!a)return void r(e,t,4001);t.forEach((function(i){var o=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&(t+="&"+n+"="+encodeURIComponent(JSON.stringify(e[n])));return"&"===t[0]?t.slice(1):t}(i),s=new Image(1,1);s.onload=function(){s=null,n&&n()},s.onerror=function(){s=null,r&&r(e,t,4e3)},s.src=a+"/gif?"+o}))}catch(n){r&&r(e,t,4002,n.message)}},W=function(e,t,n,r,i,o,a,s){var c=window.navigator.userAgent;if(-1===window.navigator.appName.indexOf("Microsoft Internet Explorer")||-1===c.indexOf("MSIE 8.0")&&-1===c.indexOf("MSIE 9.0")){if(a)return window.navigator&&window.navigator.sendBeacon?void(window.navigator.sendBeacon(e,JSON.stringify(t))?i():o(e,t,4003)):void F(e,t,i,o)}else F(e,t,i,o);K(e,t,n,r,i,o,"","",s)},J=function(){function e(){this.eventLimit=50,this.enable_ttwebid=!1,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var n=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.eventCheck=new I(e,t),this.cacheStorgae=new T(!0),this.localStorage=new T(!1),this.maxReport=t.max_report||10,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.enable_ttwebid=t.enable_ttwebid,this.reportUrl=this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.abKey="__tea_sdk_ab_version_"+this.configManager.get("app_id"),this.collect.on(z.Ready,(function(){n.reportAll(!1)})),this.collect.on(z.ConfigDomain,(function(){n.reportUrl=n.configManager.getUrl("event")})),this.collect.on(z.Event,(function(e){n.event(e)})),this.collect.on(z.BeconEvent,(function(e){n.beconEvent(e)})),this.collect.on(z.CleanEvents,(function(){n.reportAll(!1)})),this.linster()},e.prototype.linster=function(){var e=this;window.addEventListener("unload",(function(){e.reportAll(!0)}),!1),h((function(){e.reportAll(!0)})),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var n=a(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,n),this.reportTimeout&&clearTimeout(this.reportTimeout),n.length>=this.maxReport)this.report(!1);else{var r=this.reportTime;this.reportTimeout=setTimeout((function(){t.report(!1),t.reportTimeout=null}),r)}}catch(e){this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e.prototype.beconEvent=function(e){var t=a(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroyInstance||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))}},e.prototype.report=function(e){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var n=0;n>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}().replace(/-/g,"").slice(0,19)},X=function(){function e(){this.cacheToken={},this.enableCookie=!1,this.enable_ttwebid=!1,this.enableCustomWebid=!1}return e.prototype.apply=function(e,t){var n=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new T(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.enable_ttwebid=t.enable_ttwebid,this.enableCustomWebid=t.enable_custom_webid,this.collect.on(z.ConfigUuid,(function(e){n.setUuid(e)})),this.collect.on(z.ConfigWebId,(function(e){n.setWebId(e)})),this.enableCookie=t.cross_subdomain,this.expiresTime=t.cookie_expire||6048e5,this.cookieDomain=t.cookie_domain||"",this.checkStorage()},e.prototype.checkStorage=function(){var e=this;if(this.enableCookie){var t=this.storage.getCookie(this.tokenKey,this.cookieDomain);this.cacheToken=t&&"string"==typeof t?JSON.parse(t):{}}else this.cacheToken=this.storage.getItem(this.tokenKey)||{};this.tokenType=this.cacheToken&&this.cacheToken._type_?this.cacheToken._type_:"default","custom"!==this.tokenType||this.enableCustomWebid?this.enableCustomWebid?this.collect.on(z.CustomWebId,(function(){e.tokenReady=!0,e.collect.emit(z.TokenComplete)})):this.checkEnv()||(this.enable_ttwebid?this.completeTtWid(this.cacheToken):this.check()):this.remoteWebid()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.config.disable_webid?this.complete({web_id:Y(),user_unique_id:this.configManager.get("user_unique_id")||Y()}):this.remoteWebid()},e.prototype.checkEnv=function(){var e=window.navigator.userAgent;if(-1!==e.indexOf("miniProgram")||-1!==e.indexOf("MiniProgram")){var t=v(window.location.href);return!(!t||!t.Web_ID||(this.complete({web_id:""+t.Web_ID,user_unique_id:this.configManager.get("user_unique_id")||""+t.Web_ID}),0))}return!1},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),n={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""};this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"SDK \u53d1\u8d77WEBID\u8bf7\u6c42",logType:"fetch",level:"info",time:Date.now(),data:n});var r=Y();K(t,n,3e5,!1,(function(t){var n;t&&0===t.e?(n=t.web_id,e.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"WEBID\u8bf7\u6c42\u6210\u529f",logType:"fetch",level:"info",time:Date.now(),data:t})):(n=r,e.collect.configManager.set({localWebId:r}),e.collect.emit(z.TokenError),e.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"WEBID\u8bf7\u6c42\u8fd4\u56de\u503c\u5f02\u5e38",logType:"fetch",level:"warn",time:Date.now(),data:t}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n})}),(function(){e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r}),e.collect.configManager.set({localWebId:r}),e.collect.emit(z.TokenError),e.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"WEBID\u8bf7\u6c42\u7f51\u7edc\u5f02\u5e38",logType:"fetch",level:"error",time:Date.now(),data:null}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}))},e.prototype.complete=function(e){var t=e.web_id,n=e.user_unique_id;e.timestamp=Date.now(),this.collect.configManager.set({web_id:t,user_unique_id:n}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(z.TokenComplete)},e.prototype.completeTtWid=function(e){var t=e.user_unique_id||"",n=this.configManager.get("user_unique_id");(n||t)&&this.configManager.set({user_unique_id:n||t}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(z.TokenComplete)},e.prototype.setUuid=function(e){if(e&&-1===["null","undefined","Null","None"].indexOf(e)){var t=String(e),n=this.configManager.get("user_unique_id"),r=this.cacheToken&&this.cacheToken.user_unique_id;if(t===n&&t===r)return;this.configManager.set({user_unique_id:t}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=t,this.cacheToken.timestamp=Date.now(),this.setStorage(this.cacheToken),this.collect.emit(z.TokenChange,"uuid"),this.collect.emit(z.SessionReset)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=Date.now(),this.setStorage(this.cacheToken)),this.collect.emit(z.TokenReset))},e.prototype.setWebId=function(e){if(e&&!this.config.enable_ttwebid){this.cacheToken&&this.cacheToken.web_id?this.cacheToken.web_id!==e&&(this.cacheToken.user_unique_id=this.cacheToken.web_id===this.cacheToken.user_unique_id?e:this.cacheToken.user_unique_id,this.cacheToken.web_id=e):(this.cacheToken={},this.cacheToken.web_id=e,this.cacheToken.user_unique_id=e),this.cacheToken.timestamp=Date.now();var t=this.configManager.get("web_id"),n=this.configManager.get("user_unique_id");n&&n!==t||(this.configManager.set({user_unique_id:e}),this.collect.emit(z.TokenChange,"uuid")),t!==e&&(this.configManager.set({web_id:e}),this.collect.emit(z.TokenChange,"webid")),this.setStorage(this.cacheToken)}},e.prototype.setStorage=function(e){e._type_=this.enableCustomWebid?"custom":"default",delete e["diss".split("").reverse().join("")],this.enableCookie||this.enable_ttwebid?(this.storage.setCookie(this.tokenKey,e,this.expiresTime,this.cookieDomain),this.enable_ttwebid&&(delete e.web_id,this.storage.setItem(this.tokenKey,e))):this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e.prototype.getTobId=function(){var e=this,t=this.configManager.getUrl("tobid");return new Promise((function(n){K(t,{app_id:e.config.app_id,user_unique_id:e.configManager.get("user_unique_id"),web_id:e.configManager.get("web_id"),user_unique_id_type:e.configManager.get("user_unique_id_type")},3e4,e.enable_ttwebid,(function(e){e&&0===e.e?n(e.tobid):n("")}),(function(){n("")}))}))},e}(),Z=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},Q=function(){function e(){}return e.prototype.apply=function(e,t){var n=this;this.collect=e,this.storage=new T(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSession||(this.setSessionId(),this.collect.on(z.SessionReset,(function(){n.resetSessionId()})),this.collect.on(z.SessionResetTime,(function(){n.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;Date.now()-t>this.expireTime?e={sessionId:Z(),timestamp:Date.now()}:e.timestamp=Date.now(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=Date.now():t={sessionId:Z(),timestamp:Date.now()},this.storage.setItem(this.sessionKey,t),this.sessionExp=setInterval((function(){e.checkEXp()}),this.expireTime)},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=setInterval((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:Z(),timestamp:Date.now()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&Date.now()-e.timestamp+30>=this.expireTime&&(e={sessionId:Z(),timestamp:Date.now()},this.storage.setItem(this.sessionKey,e))},e}(),ee=function(){function e(e,t){this.devToolReady=!1,this.devToolOrigin="*",this.sendAlready=!1,this.collect=e,this.config=t,this.app_id=t.app_id,this.filterEvent=["__bav_page","__bav_beat","__bav_page_statistics","__bav_click","__bav_page_exposure","bav2b_page","bav2b_beat","bav2b_page_statistics","bav2b_click","bav2b_page_exposure","_be_active","predefine_pageview","__profile_set","__profile_set_once","__profile_increment","__profile_unset","__profile_append","predefine_page_alive","predefine_page_close","abtest_exposure"],t.enable_debug&&this.load()}return e.prototype.loadScript=function(e){try{var t=document.createElement("script");t.src=e,t.onerror=function(){console.log("load DevTool render fail")},t.onload=function(){console.log("load DevTool render success")},document.getElementsByTagName("body")[0].appendChild(t)}catch(e){console.log("devTool load fail, "+e.message)}},e.prototype.load=function(){try{this.loadBaseInfo(),this.loadHook();var e=v(window.location.href);if(!e.open_devtool_web||parseInt(e.app_id)!==this.app_id)return;this.addLintener(),this.loadDebuggerModule(),this.loadDevTool()}catch(e){console.log("debug fail, "+e.message)}},e.prototype.loadDevTool=function(){this.loadScript("https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/devtool/debug-web.js")},e.prototype.loadBaseInfo=function(){var e=this;this.info=[{title:"\u57fa\u672c\u4fe1\u606f",type:1,infoName:{app_id:this.config.app_id,channel:this.config.channel,\u4e0a\u62a5\u57df\u540d:this.collect.configManager.getDomain(),SDK\u7248\u672c:P,SDK\u5f15\u5165\u65b9\u5f0f:"npm"}},{title:"\u7528\u6237\u4fe1\u606f",type:2,infoName:{uuid:this.collect.configManager.get("user").user_unique_id||"",web_id:this.collect.configManager.get("user").web_id||"",ssid:"\u70b9\u51fb\u83b7\u53d6SSID"}},{title:"\u516c\u5171\u53c2\u6570\u4fe1\u606f",type:2,infoName:{\u6d4f\u89c8\u5668:this.collect.configManager.get("browser"),\u6d4f\u89c8\u5668\u7248\u672c:this.collect.configManager.get("browser_version"),\u5e73\u53f0:this.collect.configManager.get("platform"),\u8bbe\u5907\u578b\u53f7:this.collect.configManager.get("device_model"),\u64cd\u4f5c\u7cfb\u7edf:this.collect.configManager.get("os_name"),\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c:this.collect.configManager.get("os_version"),\u5c4f\u5e55\u5206\u8fa8\u7387:this.collect.configManager.get("os_version"),\u6765\u6e90:this.collect.configManager.get("referrer"),\u81ea\u5b9a\u4e49\u4fe1\u606f:""}},{title:"\u914d\u7f6e\u4fe1\u606f",type:3,infoName:{\u5168\u57cb\u70b9:!!this.config.autotrack,\u505c\u7559\u65f6\u957f:!!this.config.enable_stay_duration}},{title:"A/B\u914d\u7f6e\u4fe1\u606f",type:4,infoName:{"A/B\u5b9e\u9a8c":!!this.config.enable_ab_test}},{title:"\u5ba2\u6237\u7aef\u4fe1\u606f",type:3,infoName:{\u6253\u901a\u5f00\u5173:!!this.config.Native}}],this.log=[],this.event=[],this.collect.on(z.Ready,(function(){e.info[1].infoName.uuid=e.collect.configManager.get("user").user_unique_id,e.info[1].infoName.web_id=e.collect.configManager.get("user").web_id,e.info[2].infoName["\u81ea\u5b9a\u4e49\u4fe1\u606f"]=JSON.stringify(e.collect.configManager.get("custom")),e.config.enable_ab_test&&(e.info[4].infoName["\u5df2\u66dd\u5149VID"]=e.collect.configManager.getAbVersion(),e.info[4].infoName["A/B\u57df\u540d"]=e.config.ab_channel_domain||f(D[e.config.channel]),e.info[4].infoName["\u5168\u90e8\u914d\u7f6e"]=e.collect.configManager.getAbData()),e.config.Native&&(e.info[5].infoName["\u662f\u5426\u6253\u901a"]=!!e.collect.bridgeReport)}))},e.prototype.loadHook=function(){var e=this;this.collect.on(w.DEBUGGER_MESSAGE,(function(t){switch(t.type){case w.DEBUGGER_MESSAGE_SDK:var n={time:t.time,type:t.logType||"sdk",level:t.level,name:t.info,show:!0,levelShow:!0,needDesc:!!t.data};return t.data&&(n.desc={content:JSON.stringify(t.data)}),e.updateLog(n),t.secType&&"AB"===t.secType?(e.info[4].infoName["\u5df2\u66dd\u5149VID"]=e.collect.configManager.getAbVersion(),e.info[4].infoName["\u5168\u90e8\u914d\u7f6e"]=e.collect.configManager.getAbData()):"USER"===t.secType&&(e.info[1].infoName.uuid=e.collect.configManager.get("user").user_unique_id,e.info[1].infoName.web_id=e.collect.configManager.get("user").web_id),void e.updateInfo();case w.DEBUGGER_MESSAGE_EVENT:if(t.data&&t.data.length){var r=t.data[0],i=r.events;if(!i.length)return;i.forEach((function(n){n.checkShow=!0,n.searchShow=!0,n.success=t.status,n.type=-1!==e.filterEvent.indexOf(n.event)?"sdk":"cus",n.type=e.collect.bridgeReport?"bridge":n.type,n.info="","fail"===t.status&&(n.info={message:"code: "+t.code+"\uff0c msg: "+t.failType})})),e.updateEvent(r)}return}}))},e.prototype.addLintener=function(){var e=this;window.addEventListener("message",(function(t){if(t.origin===location.origin){if(t&&t.data&&"devtool:web:ready"===t.data.type){if(e.devToolOrigin=t.origin,e.devToolReady=!0,e.sendAlready)return;console.log("inittttt"),e.sendData("devtool:web:init",{info:e.info,log:e.log,event:e.event}),e.sendAlready=!0}t&&t.data&&"devtool:web:ssid"===t.data.type&&e.collect.getToken((function(t){e.info[1].infoName.ssid=t.tobid,e.updateInfo()}))}}))},e.prototype.sendData=function(e,t){try{var n={type:e,payload:t};(window.opener||window.parent).postMessage(n,this.devToolOrigin)}catch(e){}},e.prototype.updateInfo=function(){this.devToolReady&&this.sendData("devtool:web:info",this.info)},e.prototype.updateLog=function(e){this.devToolReady?this.sendData("devtool:web:log",e):this.log.push(e)},e.prototype.updateEvent=function(e){this.devToolReady?this.sendData("devtool:web:event",e):this.event.push(e)},e.prototype.loadDebuggerModule=function(){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.appendChild(document.createTextNode("#debugger-applog-web {\n position: absolute;\n width: 90px;\n height: 30px;\n background: #23c243;\n border-radius: 6px;\n color: #fff;\n font-size: 12px;\n bottom: 5%;\n right: 10%;\n text-align: center;\n line-height: 30px;\n cursor: pointer;\n z-index:100;\n }")),e.appendChild(t);var n=document.createElement("div");n.innerHTML='
AppLog\u8c03\u8bd5
';var r=document.createElement("div");r.innerHTML='
',document.getElementsByTagName("body")[0].appendChild(n),document.getElementsByTagName("body")[0].appendChild(r),document.getElementById("debugger-applog-web").addEventListener("click",(function(){(window.opener||window.parent).postMessage({type:"devtool:web:open-draw"},location.origin)}))},e}(),te=function(){function e(e){this.disableAutoPageView=!1,this.bridgeReport=!1,this.staging=!1,this.pluginInstances=[],this.sended=!1,this.started=!1,this.destroyInstance=!1,this.sdkReady=!1,this.adapters={},this.name=e,this.hook=new c,this.remotePlugin=new Map,this.Types=z,this.adapters.fetch=K,this.adapters.storage=T}return e.usePlugin=function(t,n,r){if(n){for(var i=!1,o=0,a=e.plugins.length;o-1}))){var t=e.data;if("string"==typeof e.data)try{t=JSON.parse(e.data)}catch(e){t=void 0}if(!t)return;var n=t.type,r=t.payload;re[n]&&re[n].forEach((function(t){"function"==typeof t&&t(e,r)}))}}function ue(e,t){var n=r({},e);delete n.filter,(window.opener||window.parent).postMessage({type:"tea:sdk:info",config:n,version:t},"*"),window.addEventListener("message",ce,!1)}var le,pe="",fe=!1;function he(e){var t=e.event,n=e.editorUrl;e.collectInstance,e.fromSession,fe||(fe=!0,d(n,(function(){ae(t,"abEditorScriptloadSuccess")}),(function(){t&&ae(t,"abEditorScriptloadError"),fe=!1})))}!function(e){e[e.Var=0]="Var",e[e.All=1]="All"}(le||(le={}));var de=function(){function e(){this.fetchStatus="no",this.refreshFetchStatus="complete",this.versions=[],this.extVersions=[],this.mulilinkVersions=[],this.enable_multilink=!1,this.enable_ab_visual=!1,this.editMode=!1,this.callbacks=[],this.data=null,this.changeListener=new Map,this.readyStatus=!1,this.exposureCache=[]}return e.prototype.apply=function(e,t){var n=this;if(this.collect=e,this.config=t,this.config.enable_ab_test){var r=t.enable_multilink,i=t.ab_channel_domain,o=t.enable_ab_visual,a=t.ab_cross,s=t.ab_cookie_domain,c=i||f(D[t.channel||"sg"]),u=e.adapters,l=u.storage,p=u.fetch;this.cacheStorgae=new l(!1),this.fetch=p,this.enable_multilink=r,this.enable_ab_visual=o,this.abKey="__tea_sdk_ab_version_"+t.app_id,this.ab_cross=a,this.ab_cookie_domain=s||"",this.fetchUrl=c+"/service/2/abtest_config/",this.reportUrl=""+e.configManager.getUrl("event"),this.exposureLimit=t.exposure_limit||20,this.ab_batch_time=t.ab_batch_time||500;var h=this.collect.Types;this.types=h,this.collect.on(h.TokenChange,(function(e){"uuid"===e&&n.readyStatus&&(n.clearCache(),n.fetchAB())})),this.collect.on(h.AbVar,(function(e){var t=e.name,r=e.defaultValue,i=e.callback;n.getVar(t,r,i)})),this.collect.on(h.AbAllVars,(function(e){n.getAllVars(e)})),this.collect.on(h.AbConfig,(function(e){var t=e.params,r=e.callback;n.getABconfig(t,r)})),this.collect.on(h.AbExternalVersion,(function(e){n.setExternalAbVersion(e)})),this.collect.on(h.AbOpenLayer,(function(){n.openOverlayer()})),this.collect.on(h.AbCloseLayer,(function(){n.closeOverlayer()})),this.collect.on(h.AbVersionChangeOn,(function(e){n.changeListener.set(e,e)})),this.collect.on(h.AbVersionChangeOff,(function(e){n.changeListener.get(e)&&n.changeListener.delete(e)})),this.loadMode(),(this.enable_ab_visual||this.enable_multilink)&&this.openOverlayer(this.config.multilink_timeout_ms||500),this.checkLocal(),this.ready("ab"),this.readyStatus||(this.fetchAB(),this.readyStatus=!0),this.collect.emit(h.AbReady)}},e.prototype.ready=function(e){var t=this;if(this.collect.set(e),this.collect.hook._hooksCache.hasOwnProperty(e)){var n=this.collect.hook._hooksCache[e];if(!Object.keys(n).length)return;var r=function(e){n[e].length&&n[e].forEach((function(n){t.collect.hook.emit(e,n)}))};for(var i in n)r(i)}},e.prototype.loadMode=function(){var e,t,n=function(){try{return JSON.parse(atob(window.name))||void 0}catch(e){return}}(),r="";if(n){var i=n.scenario,o=n.href;i?(this.editMode=!0,r=i):!o||-1===o.indexOf("datatester")&&-1===o.indexOf("visual-editor")||(this.editMode=!0,r="visual-editor")}this.enable_ab_visual&&(function(e,t){window.TEAVisualEditor=window.TEAVisualEditor||{},oe(["*"]);var n,r="";ue(t,P);var i="";try{var o=window.performance.getEntriesByType("resource");if(o&&o.length&&(o.forEach((function(e){"script"===e.initiatorType&&e.name&&-1!==e.name.indexOf("collect")&&(i=e.name)})),i||document.currentScript&&(i=document.currentScript.src),i&&(n=i.split("/"))&&n.length)){r="https:/";for(var a=2;a0&&this.changeListener.forEach((function(t){"function"==typeof t&&t(e)}))},e.prototype.configVersions=function(e){this.collect.configManager.setAbVersion(e)},e.prototype.getVar=function(e,t,n){if(!e)throw new Error("variable must not be empty");if(void 0===t)throw new Error("variable no default value");if("function"!=typeof n)throw new Error("callback must be a function");var r={name:e,defaultValue:t,callback:n,type:le.Var};"complete"===this.fetchStatus&&"complete"===this.refreshFetchStatus?this.getRealVar(r,e):this.callbacks.push(r)},e.prototype.getRealVar=function(e,t){var n=e.name,r=e.defaultValue,i=e.callback,o=this.data;if(o){if(u(o[n])){var a=o[n].vid;return"$ab_url"===t?this.mulilinkVersions.includes(a)||this.mulilinkVersions.push(a):this.versions.includes(a)||this.versions.push(a),this.updateVersions(),this.fechEvent(a,t,r),i(o[n].val),void this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,secType:"AB",info:"SDK \u66dd\u5149\u4e86\u5b9e\u9a8c"+n,level:"info",time:Date.now(),data:o[n]})}this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,secType:"AB",info:"SDK \u8c03\u7528getVar",level:"info",time:Date.now(),data:r}),i(r)}else i(r)},e.prototype.getAllVars=function(e){if("function"!=typeof e)throw new Error("callback must be a function");var t={callback:e,type:le.All};"complete"===this.fetchStatus&&"complete"===this.refreshFetchStatus?this.getRealAllVars(t):this.callbacks.push(t)},e.prototype.getRealAllVars=function(e){(0,e.callback)(this.data?JSON.parse(JSON.stringify(this.data)):{}),this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,secType:"AB",info:"SDK \u8c03\u7528getAllVars",level:"info",time:Date.now(),data:this.data})},e.prototype.fechEvent=function(e,t,n){try{if(this.config.disable_track_event)return;if(!e)return;var r=this.collect.configManager.get(),i=r.header,o=r.user,a=this.getABCache();if(a&&a.uuid&&a.uuid!==o.user_unique_id)return;var s={event:"abtest_exposure",ab_sdk_version:""+e,params:JSON.stringify({app_id:this.config.appId,ab_url:"$ab_url"===t?n:window.location.href}),local_time_ms:Date.now()};i.custom=JSON.stringify(i.custom);var c={events:[s],user:o,header:i};"$ab_url"===t&&window.navigator.sendBeacon?window.navigator.sendBeacon(this.reportUrl,JSON.stringify([c])):this.reportExposure(c)}catch(e){this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e.prototype.reportExposure=function(e){var t=this;this.exposureCache.push(e),this.reportTimeout&&clearTimeout(this.reportTimeout),this.exposureCache.length>=this.exposureLimit?this.report():this.reportTimeout=setTimeout((function(){t.report(),clearTimeout(t.reportTimeout)}),this.ab_batch_time)},e.prototype.report=function(){var e=this;this.fetch(this.reportUrl,this.exposureCache,2e4),this.exposureCache.forEach((function(t){e.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_EVENT,info:"\u57cb\u70b9\u4e0a\u62a5\u6210\u529f",time:Date.now(),data:[t],code:200,status:"success"})})),this.exposureCache=[]},e.prototype.setExternalAbVersion=function(e){this.extVersions=[e],this.updateVersions()},e.prototype.getABconfig=function(e,t){var n=Object.keys(e);n&&n.length&&this.collect.configManager.set(e),this.fetchAB(t)},e.prototype.get=function(e){if(this.ab_cross){var t=this.cacheStorgae.getCookie(e,this.ab_cookie_domain);return t?JSON.parse(t):null}return this.cacheStorgae.getItem(e)},e.prototype.set=function(e,t){this.ab_cross?this.cacheStorgae.setCookie(e,t,2592e6,this.ab_cookie_domain):this.cacheStorgae.setItem(e,t),this.collect.configManager.setAbCache(t)},e.prototype.getABCache=function(e){var t={ab_version:[],ab_ext_version:[],ab_version_multilink:[],data:null,timestamp:+new Date,uuid:""};return t=this.get(this.abKey)||t,Date.now()-t.timestamp>=2592e6?(this.cacheStorgae.removeItem(this.abKey),null):e?t[e]:t},e.prototype.updateABCache=function(){var e=this.getABCache();e.ab_version_multilink=this.mulilinkVersions,e.ab_ext_version=this.extVersions,e.ab_version=this.versions,e.timestamp=Date.now(),this.set(this.abKey,e)},e.prototype.setAbCache=function(e){var t=this.getABCache();t.data=this.data,t.uuid=e,t.timestamp=Date.now(),this.set(this.abKey,t)},e.prototype.clearCache=function(){this.refreshFetchStatus="ing",this.data={},this.extVersions=[],this.mulilinkVersions=[],this.versions=[],this.collect.configManager.clearAbCache()},e.prototype.openOverlayer=function(e){var t=this;if(function(){if(!document.getElementById(ne)){var e="body { opacity: 0 !important; }",t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id=ne,n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}}(),e)var n=setTimeout((function(){t.closeOverlayer(),clearTimeout(n)}),e)},e.prototype.closeOverlayer=function(){var e;(e=document.getElementById(ne))&&e.parentElement.removeChild(e)},e.prototype.fetchComplete=function(e,t){var n=this;if(e&&"[object Object]"==Object.prototype.toString.call(e)){this.data=e,this.setAbCache(t);var r=[];Object.keys(e).forEach((function(t){var n=e[t].vid;n&&r.push(n)})),this.versions=this.versions.filter((function(e){return r.includes(e)}));var i=e.$ab_url,o=e.$ab_modification;if(o&&o.val&&this.enable_ab_visual){if(this.collect.destroyInstance)return;this.getVar("$ab_modification",window.location.href,(function(){var e;e=o.val,window.TEAVisualEditor=window.TEAVisualEditor||{},window.TEAVisualEditor.__ab_config=e,d("https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/visual-ab-loader.js?query="+Date.now(),(function(){console.log("load visual render success")}),(function(){console.log("load visual render fail")})),n.closeOverlayer()}))}else if(i&&this.enable_multilink){this.mulilinkVersions=this.mulilinkVersions.filter((function(e){return r.includes(e)}));var a=i.val,s=i.vid;a&&s&&this.getVar("$ab_url",a,(function(){n.editMode||(a!==window.location.href?setTimeout((function(){if(!n.collect.destroyInstance){var e=""+a;e=-1===e.indexOf("http")?"https://"+e:e,m(e).host!==location.host?e=e+"&vid="+s:window.history.replaceState("","",e),window.location.href=e}}),100):n.closeOverlayer())}))}this.updateVersions()}else this.closeOverlayer();this.callbacks.forEach((function(e){return n[e.type===le.Var?"getRealVar":"getRealAllVars"](e,"")})),this.callbacks=[]},e.prototype.fetchAB=function(e){var t=this,n=this.collect.configManager.get(),i={header:r({aid:this.config.app_id},n.user||{},n.header||{},{ab_sdk_version:this.collect.configManager.getAbVersion(),ab_url:window.location.href})};this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"SDK \u53d1\u8d77AB\u5b9e\u9a8c\u8bf7\u6c42",level:"info",logType:"fetch",time:Date.now(),data:i}),this.fetch(this.fetchUrl,i,this.config.ab_timeout||3e3,!1,(function(r){t.fetchStatus="complete",t.refreshFetchStatus="complete";var i=r.data;"success"===r.message?(t.fetchComplete(i,n.user.user_unique_id),e&&e(i)):(t.fetchComplete(null,n.user.user_unique_id),e&&e(null)),t.collect.emit(t.types.AbComplete,i),t.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,secType:"AB",info:"AB\u5b9e\u9a8c\u8bf7\u6c42\u6210\u529f",level:"info",logType:"fetch",time:Date.now(),data:i})}),(function(){t.fetchStatus="complete",t.refreshFetchStatus="complete",t.fetchComplete(null,n.user.user_unique_id),t.collect.emit(t.types.AbTimeout),e&&e(null),t.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,secType:"AB",info:"AB\u5b9e\u9a8c\u8bf7\u6c42\u7f51\u7edc\u5f02\u5e38",level:"error",logType:"fetch",time:Date.now()})}))},e.prototype.filterUrl=function(e){try{var t="";-1!==e.indexOf("&multilink=true")?t="&multilink=true[\0-\xff]*":-1!==e.indexOf("?multilink=true")&&(t="\\?multilink=true[\0-\xff]*");var n=new RegExp(t,"g");e=e.replace(n,"")}catch(e){}return e},e}(),ge=function(){function e(){}return e.prototype.apply=function(e,t){var n=this,r=e.adapters.fetch;if(t.event_verify_url)if("string"==typeof t.event_verify_url){if(this.url=t.event_verify_url+"/v1/list_test",this.url){var i=e.Types;e.on(i.SubmitBefore,(function(e){r(n.url,e,3e4)}))}}else console.log("please use correct et_test url")},e}(),me=function(){function e(e,t){this.maxDuration=432e5,this.aliveDTime=6e4,this.options={aliveName:"predefine_page_alive",params:{}},this.collect=e,this.config=t,this.pageStartTime=Date.now(),this.sessionStartTime=this.pageStartTime,this.timerHandler=null,u(t.enable_stay_duration)&&(this.options=Object.assign(this.options,t.enable_stay_duration))}return e.prototype.setParams=function(e,t,n){this.set_path=e,this.set_url=n,this.set_title=t},e.prototype.enable=function(e,t,n){this.url_path=e,this.url=n,this.title=t,this.disableCallback=this.enablePageAlive()},e.prototype.disable=function(){this.disableCallback(),this.pageStartTime=Date.now()},e.prototype.sendEvent=function(e,t){void 0===t&&(t=!1);var n=t?this.aliveDTime:Date.now()-this.sessionStartTime;n<0||n>this.aliveDTime||Date.now()-this.pageStartTime>this.maxDuration||(this.collect.beconEvent(this.options.aliveName,r({url_path:this.getParams("url_path"),title:this.getParams("title"),url:this.getParams("url"),duration:n,is_support_visibility_change:g(),startTime:this.sessionStartTime,hidden:document.visibilityState,leave:e},this.options.params)),this.sessionStartTime=Date.now())},e.prototype.getParams=function(e){switch(e){case"url_path":return this.set_path||this.url_path||location.pathname;case"title":return this.set_title||this.title||document.title||location.pathname;case"url":return this.set_url||this.url||location.href}},e.prototype.setUpTimer=function(){var e=this;return this.timerHandler&&clearInterval(this.timerHandler),setInterval((function(){Date.now()-e.sessionStartTime>e.aliveDTime&&e.sendEvent(!1,!0)}),1e3)},e.prototype.visibilitychange=function(){"hidden"===document.visibilityState?this.timerHandler&&(clearInterval(this.timerHandler),this.sendEvent(!1)):"visible"===document.visibilityState&&(this.sessionStartTime=Date.now(),this.timerHandler=this.setUpTimer())},e.prototype.beforeunload=function(){document.hidden||this.sendEvent(!0)},e.prototype.enablePageAlive=function(){var e=this;this.timerHandler=this.setUpTimer();var t=this.visibilitychange.bind(this),n=this.beforeunload.bind(this);return document.addEventListener("visibilitychange",t),h(n),function(){e.beforeunload(),document.removeEventListener("visibilitychange",t),window.removeEventListener("beforeunload",n),window.removeEventListener("pagehide",n)}},e}(),ve=function(){function e(e,t){var n=this;this.maxDuration=432e5,this.aliveDTime=6e4,this.options={closeName:"predefine_page_close",params:{}},this.visibilitychange=function(){"hidden"===document.visibilityState?n.activeEndTime=Date.now():"visible"===document.visibilityState&&(n.activeEndTime&&(n.totalTime+=n.activeEndTime-n.activeStartTime,n.activeTimes+=1),n.activeEndTime=void 0,n.activeStartTime=Date.now())},this.beforeunload=function(){if(n.totalTime+=(n.activeEndTime||Date.now())-n.activeStartTime,n.config.autotrack)try{window.sessionStorage.setItem("_tea_cache_duration",JSON.stringify({duration:n.totalTime,page_title:document.title||location.pathname}))}catch(e){}n.sendEventPageClose()},this.collect=e,this.config=t,this.maxDuration=t.maxDuration||864e5,this.pageStartTime=Date.now(),u(t.enable_stay_duration)&&(this.options=Object.assign(this.options,t.enable_stay_duration)),this.resetData()}return e.prototype.setParams=function(e,t,n){this.set_path=e,this.set_url=n,this.set_title=t},e.prototype.resetParams=function(e,t,n){this.url_path=e,this.url=n,this.title=t},e.prototype.enable=function(e,t,n){this.url_path=e,this.url=n,this.title=t,this.disableCallback=this.enablePageClose()},e.prototype.disable=function(){this.disableCallback()},e.prototype.resetData=function(){this.activeStartTime=void 0===this.activeStartTime?this.pageStartTime:Date.now(),this.activeEndTime=void 0,this.activeTimes=1,this.totalTime=0,this.resetParams(location.pathname,location.href,document.title)},e.prototype.sendEventPageClose=function(){var e=Date.now()-this.pageStartTime;this.totalTime<0||e<0||this.totalTime>=this.maxDuration||(this.collect.beconEvent(this.options.closeName,r({url_path:this.getParams("url_path"),title:this.getParams("title"),url:this.getParams("url"),active_times:this.activeTimes,duration:this.totalTime,total_duration:e,is_support_visibility_change:g()},this.options.params)),this.pageStartTime=Date.now(),this.resetData())},e.prototype.getParams=function(e){switch(e){case"url_path":return this.set_path||this.url_path||location.pathname;case"title":return this.set_title||this.title||document.title||location.pathname;case"url":return this.set_url||this.url||location.href}},e.prototype.enablePageClose=function(){var e=this,t=this.visibilitychange.bind(this),n=this.beforeunload.bind(this);return document.addEventListener("visibilitychange",t),h(n),function(){e.beforeunload(),document.removeEventListener("visibilitychange",t),window.removeEventListener("beforeunload",n),window.removeEventListener("pagehide",n)}},e}(),_e=function(){function e(){}return e.prototype.apply=function(e,t){var n=this;if(this.collect=e,this.config=t,this.config.enable_stay_duration){this.title=document.title||location.pathname,this.url=location.href,this.url_path=location.pathname,this.pageAlive=new me(e,t),this.pageClose=new ve(e,t);var r=this.collect.Types;this.collect.on(r.ResetStay,(function(e){var t=e.url_path,r=e.title,i=e.url;n.resetStayDuration(t,r,i)})),this.collect.on(r.RouteChange,(function(e){e.init||t.disable_route_report||n.resetStayDuration()})),this.collect.on(r.SetStay,(function(e){var t=e.url_path,r=e.title,i=e.url;n.setStayParmas(t,r,i)})),this.enable(this.url_path,this.title,this.url),this.ready(r.Stay),this.collect.emit(r.StayReady)}},e.prototype.ready=function(e){var t=this;if(this.collect.set(e),this.collect.hook._hooksCache.hasOwnProperty(e)){var n=this.collect.hook._hooksCache[e];if(!Object.keys(n).length)return;var r=function(e){n[e].length&&n[e].forEach((function(n){t.collect.hook.emit(e,n)}))};for(var i in n)r(i)}},e.prototype.enable=function(e,t,n){this.pageAlive.enable(e,t,n),this.pageClose.enable(e,t,n)},e.prototype.disable=function(){this.pageAlive.disable(),this.pageClose.disable()},e.prototype.setStayParmas=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n=""),this.pageAlive.setParams(e,t,n),this.pageClose.setParams(e,t,n),this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"SDK \u6267\u884c resetStayParams",level:"info",time:Date.now(),data:{url_path:e,title:t,url:n}})},e.prototype.reset=function(e,t,n){this.disable(),this.enable(e,t,n)},e.prototype.resetStayDuration=function(e,t,n){this.reset(e,t,n),this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"SDK \u6267\u884c resetStayDuration",level:"info",time:Date.now(),data:{url_path:e,title:t,url:n}})},e}(),ye=function(){function e(){}return e.prototype.apply=function(e,t){var n=this;this.collect=e,this.config=t,this.duration=6e4,this.reportUrl=e.configManager.getDomain()+"/profile/list";var r=e.Types,i=e.adapters.fetch;this.eventCheck=new I(e,t),this.fetch=i,this.cache={},this.collect.on(r.ProfileSet,(function(e){n.setProfile(e)})),this.collect.on(r.ProfileSetOnce,(function(e){n.setOnceProfile(e)})),this.collect.on(r.ProfileUnset,(function(e){n.unsetProfile(e)})),this.collect.on(r.ProfileIncrement,(function(e){n.incrementProfile(e)})),this.collect.on(r.ProfileAppend,(function(e){n.appendProfile(e)})),this.collect.on(r.ProfileClear,(function(){n.cache={}})),this.ready(r.Profile)},e.prototype.ready=function(e){var t=this;if(this.collect.set(e),this.collect.hook._hooksCache.hasOwnProperty(e)){var n=this.collect.hook._hooksCache[e];if(!Object.keys(n).length)return;var r=function(e){n[e].length&&n[e].forEach((function(n){t.collect.hook.emit(e,n)}))};for(var i in n)r(i)}},e.prototype.report=function(e,t){void 0===t&&(t={});try{if(this.config.disable_track_event)return;var n=[];n.push(this.collect.processEvent(e,t));var r=this.collect.eventManager.merge(n);this.fetch(this.reportUrl,r),this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_EVENT,info:"\u57cb\u70b9\u4e0a\u62a5\u6210\u529f",time:Date.now(),data:r,code:200,status:"success"})}catch(e){this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e.prototype.setProfile=function(e){var t=this.formatParams(e);t&&Object.keys(t).length&&(this.pushCache(t),this.report("__profile_set",r({},t,{profile:!0})))},e.prototype.setOnceProfile=function(e){var t=this.formatParams(e,!0);t&&Object.keys(t).length&&(this.pushCache(t),this.report("__profile_set_once",r({},t,{profile:!0})))},e.prototype.incrementProfile=function(e){e?this.report("__profile_increment",r({},e,{profile:!0})):console.warn("please check the params, must be object!!!")},e.prototype.unsetProfile=function(e){if(e){var t={};t[e]="1",this.report("__profile_unset",r({},t,{profile:!0}))}else console.warn("please check the key, must be string!!!")},e.prototype.appendProfile=function(e){if(e){var t={};for(var n in e)"string"==typeof e[n]||"Array"===Object.prototype.toString.call(e[n]).slice(8,-1)?t[n]=e[n]:console.warn("please check the value of param: "+n+", must be string or array !!!");Object.keys(t).length&&this.report("__profile_append",r({},t,{profile:!0}))}else console.warn("please check the params, must be object!!!")},e.prototype.pushCache=function(e){var t=this;Object.keys(e).forEach((function(n){t.cache[n]={val:t.clone(e[n]),timestamp:Date.now()}}))},e.prototype.formatParams=function(e,t){var n=this;void 0===t&&(t=!1);try{if(!e||"[object Object]"!==Object.prototype.toString.call(e))return void console.warn("please check the params type, must be object !!!");var r={};for(var i in e)"string"==typeof e[i]||"number"==typeof e[i]||"Array"===Object.prototype.toString.call(e[i]).slice(8,-1)?r[i]=e[i]:console.warn("please check the value of params:"+i+", must be string,number,Array !!!");var o=Object.keys(r);if(!o.length)return;if(!this.eventCheck.checkEventParams(r))return;var a=Date.now();return o.filter((function(r){var i=n.cache[r];return t?!i:!(i&&n.compare(i.val,e[r])&&a-i.timestampthis.sessionInterval&&(this.clearInterval(),this.endCurrentSession(),this.setInterval())},e}(),we=function(){function e(){}return e.prototype.apply=function(e,t){var n=this;if(this.collect=e,this.config=t,!this.config.channel_domain&&!t.disable_track_event&&!t.disable_sdk_monitor){var r=e.adapters.fetch;this.fetch=r,this.url=e.configManager.getUrl("event");var i=this.collect.Types;this.collect.on(i.Ready,(function(){n.sdkOnload()})),this.collect.on(i.SubmitError,(function(e){var t=e.type,r=e.eventData,i=e.errorCode;"f_data"===t&&n.sdkError(r,i)}))}},e.prototype.sdkOnload=function(){var e=this;try{var t=this.collect.configManager.get(),n=t.header,r=t.user,i=n.app_id,o=n.app_name,a=n.sdk_version,s=r.web_id,c={events:[{event:"onload",params:JSON.stringify({app_id:i,app_name:o||"",sdk_version:a,sdk_type:"npm",sdk_config:this.config,sdk_desc:"TOC_OVERSEA"}),local_time_ms:Date.now()}],user:{user_unique_id:s},header:{}};setTimeout((function(){e.fetch(e.url,[c],3e4,!1,(function(){}),(function(){}),"566f58151b0ed37e")}),16)}catch(e){}},e.prototype.sdkError=function(e,t){var n=this;try{var r=e[0],i=r.user,o=r.header,a=[];e.forEach((function(e){e.events.forEach((function(e){a.push(e)}))}));var s={events:a.map((function(e){return{event:"on_error",params:JSON.stringify({error_code:t,app_id:o.app_id,app_name:o.app_name||"",error_event:e.event,sdk_version:o.sdk_version,local_time_ms:e.local_time_ms,tea_event_index:Date.now(),params:e.params,header:JSON.stringify(o),user:JSON.stringify(i)}),local_time_ms:Date.now()}})),user:{user_unique_id:i.user_unique_id},header:{}};setTimeout((function(){n.fetch(n.url,[s],3e4,!1,(function(){}),(function(){}),"566f58151b0ed37e")}),16)}catch(e){}},e}();function Se(e,t){if(void 0===t&&(t="list"),!e)return!1;if(t&&"list"===t){if(["LI","TR","DL"].includes(e.nodeName))return!0;if(e.dataset&&e.dataset.hasOwnProperty("teaIdx"))return!0;if(e.hasAttribute&&e.hasAttribute("data-tea-idx"))return!0}else{if(["A","BUTTON"].includes(e.nodeName))return!0;if(e.dataset&&e.dataset.hasOwnProperty("teaContainer"))return!0;if(e.hasAttribute&&e.hasAttribute("data-tea-container"))return!0}return!1}function Ee(e){for(var t=e;t&&!Se(t,"container");){if("HTML"===t.nodeName||"BODY"===t.nodeName)return e;t=t.parentElement}return t||e}function ke(e){var t="";return 3===e.nodeType?t=e.textContent.trim():e.dataset&&e.dataset.hasOwnProperty("teaTitle")||e.hasAttribute("ata-tea-title")?t=e.getAttribute("data-tea-title"):e.hasAttribute("title")?t=e.getAttribute("title"):"INPUT"===e.nodeName&&["button","submit"].includes(e.getAttribute("type"))?t=e.getAttribute("value"):"IMG"===e.nodeName&&e.getAttribute("alt")&&(t=e.getAttribute("alt")),t.slice(0,200)}var xe=function(e,t){return e.hasAttribute?e.hasAttribute(t):e.attributes?!(!e.attributes[t]||!e.attributes[t].specified):void 0},Ae=function(e,t){if("string"==typeof t)return xe(e,t);if(l(t)){for(var n=!1,r=0;r0}))}return!0}(n)&&!t.svg)})(e.target,i.options)&&i.eventHandel({eventType:"dom",eventName:"click"},e)},this.changeEvent=function(e){i.eventHandel({eventType:"dom",eventName:"change"},e)},this.submitEvent=function(e){i.eventHandel({eventType:"dom",eventName:"submit"},e)},this.getPageViewEvent=function(e,t){t&&"pushState"===t&&i.eventHandel({eventType:"dom",eventName:"beat"},r({beat_type:0},e)),i.eventHandel({eventType:"dom",eventName:"page_view"},e)},this.getPageLoadEvent=function(e){i.eventHandel({eventType:"dom",eventName:"page_statistics"},{lcp:e})},this.config=n.getConfig().eventConfig,this.collect=t,this.options=e,this.beatTime=e.beat,this.statistics=!1}return e.prototype.init=function(e){this.eventHandel=e;var t=this.config.mode;this.addListener(t)},e.prototype.addListener=function(e){var t=this;if("proxy-capturing"===e&&(this.config.click&&window.document.addEventListener("click",this.clickEvent,!0),this.config.change&&window.document.addEventListener("change",this.changeEvent,!0),this.config.submit&&window.document.addEventListener("submit",this.submitEvent,!0),this.config.pv&&this.collect.on("route-change",(function(e){var n=e.config,r=e.name;t.getPageViewEvent(n,r)})),this.config.beat)){try{"complete"===document.readyState?this.beatEvent(this.beatTime):window.addEventListener("load",(function(){t.beatEvent(t.beatTime)}));var n=0,r=null;window.addEventListener("scroll",(function(){clearTimeout(r),r=setTimeout(i,500),n=document.documentElement.scrollTop||document.body.scrollTop}));var i=function(){(document.documentElement.scrollTop||document.body.scrollTop)==n&&t.eventHandel({eventType:"dom",eventName:"beat"},{beat_type:1})}}catch(e){}try{var o=window.performance&&window.performance.getEntriesByType("paint");o&&o.length?(new PerformanceObserver((function(e){var n=e.getEntries(),r=n[n.length-1],i=r.renderTime||r.loadTime;t.statistics||(t.getPageLoadEvent(i),t.statistics=!0)})).observe({entryTypes:["largest-contentful-paint"]}),setTimeout((function(){t.statistics||(t.getPageLoadEvent(o[0].startTime||0),t.statistics=!0)}),2e3)):this.getPageLoadEvent(0)}catch(e){this.getPageLoadEvent(0)}}},e.prototype.removeListener=function(){window.document.removeEventListener("click",this.clickEvent,!0),window.document.removeEventListener("change",this.changeEvent,!0),window.document.removeEventListener("submit",this.submitEvent,!0)},e.prototype.beatEvent=function(e){var t=this;try{var n;this.eventHandel({eventType:"dom",eventName:"beat"},{beat_type:3}),this.beatTime&&(n=setInterval((function(){t.eventHandel({eventType:"dom",eventName:"beat"},{beat_type:2})}),e)),h((function(){t.eventHandel({eventType:"dom",eventName:"beat",eventSend:"becon"},{beat_type:0}),t.beatTime&&clearInterval(n)}))}catch(e){}},e}(),Ce={eventConfig:{mode:"proxy-capturing",submit:!1,click:!0,change:!1,pv:!0,beat:!0,hashTag:!1,impr:!1},scoutConfig:{mode:"xpath"}},Re=function(){function e(e,t){this.config=e,this.config.eventConfig=Object.assign(this.config.eventConfig,t)}return e.prototype.getConfig=function(){return this.config},e.prototype.setConfig=function(e){return this.config=e},e}();function De(e,t,n,r){var i={},o=function(e){if(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return{left:t.left,top:t.top,element_width:n,element_height:r}}}(t),a=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=e.clientX,r=e.clientY,i=t.left,o=t.top,a=n-i>=0?n-i:0,s=r-o>=0?r-o:0;return{touch_x:Math.floor(a),touch_y:Math.floor(s)}}(e,o),s=o.element_width,c=o.element_height,u=a.touch_x,l=a.touch_y,p=function(e){for(var t=[];null!==e.parentElement;)t.push(e),e=e.parentElement;var n=[],r=[];return t.forEach((function(e){var t=function(e){if(null===e)return{str:"",index:0};var t=0,n=e.parentElement;if(n)for(var r=n.children,i=0;i0)for(var i=t.childNodes,o=0;o0)for(var i=t.childNodes,o=0;o0?i:0)),t.page_start_ms=r.navigationStart}catch(e){console.log("page_statistics event error "+JSON.stringify(e))}return t},e.prototype.handleBeadtEvent=function(e){e.event=this.eventName.beat,e.page_key=window.location.href,e.is_html=1,e.page_title=document.title,e.page_manual_key=this.initConfig.autotrack.page_manual_key||"";try{e.page_viewport_width=window.innerWidth,e.page_viewport_height=window.innerHeight,e.page_total_width=document.documentElement.scrollWidth,e.page_total_height=document.documentElement.scrollHeight,e.scroll_width=document.documentElement.scrollLeft+window.innerWidth,e.scroll_height=document.documentElement.scrollTop+window.innerHeight,e.since_page_start_ms=Date.now()-window.performance.timing.navigationStart,e.page_start_ms=window.performance.timing.navigationStart}catch(e){console.log("beat event error "+JSON.stringify(e))}return e},e}(),Pe=function(){function e(e){this.collect=e,this.eventNameList=["report_click_event","report_change_event","report_submit_event","report_exposure_event","report_page_view_event","report_page_statistics_event","report_beat_event"]}return e.prototype.send=function(e,t){var n=e.eventSend,r=t.event;delete t.event,n&&"becon"===n?this.collect.beconEvent(r,t):this.collect.event(r,t)},e.prototype.get=function(e,t){var n=Object.assign({headers:{"content-type":"application/json"},method:"GET"},t);fetch(e,n)},e.prototype.post=function(e,t){var n=Object.assign({headers:{"content-type":"application/json"},method:"POST"},t);fetch(e,n)},e}(),Ie="_TEA_VE_OPEN",ze="_TEA_VE_APIHOST",Ne="lang",Le="_VISUAL_EDITOR_V",Ge="_VISUAL_EDITOR_U";function Be(){try{var e=window.TEAVisualEditor.lang=window.TEAVisualEditor.lang||S.get(Ne),t=window.TEAVisualEditor.__editor_ajax_domain=window.TEAVisualEditor.__editor_ajax_domain||S.get(ze),n=window.TEAVisualEditor.__editor_verison=window.TEAVisualEditor.__editor_verison||S.get(Le),r=window.TEAVisualEditor.__editor_url=window.TEAVisualEditor.__editor_url||S.get(Ge),i=+new Date,o=new Date(i+18e5);S.set(Ie,"1",{expires:o}),S.set(ze,t,{expires:o}),S.set(Ge,r,{expires:o}),S.set(Ne,e,{expires:o}),S.set(Le,n||"",{expires:o})}catch(e){console.log("set cookie err")}}var Ue=!1;function $e(e){var t=e.event,n=e.editorUrl,r=e.autoTrackInstance;Ue||(Ue=!0,d(n,(function(){ae(t,"editorScriptloadSuccess"),r.destroy()}),(function(){t&&ae(t,"editorScriptloadError"),Ue=!1})))}var Ve,qe=function(){function e(e){this._instance=null,this._intersection=e,this.init()}return e.prototype.init=function(){var e=this;this._instance=new MutationObserver((function(t){t.forEach((function(t){"attributes"===t.type&&e.attributeChangeObserve(t),"childList"===t.type&&e.modifyNodeObserve(t)}))})),this._instance.observe(document.body,{childList:!0,attributes:!0,subtree:!0,attributeOldValue:!1})},e.prototype.attributeChangeObserve=function(e){e.target.hasAttribute("data-exposure")?this.exposureAdd(e,"mutation"):this.exposureRemove(e)},e.prototype.modifyNodeObserve=function(e){var t=this;Array.prototype.forEach.call(e.addedNodes,(function(e){1===e.nodeType&&e.hasAttribute("data-exposure")&&t.exposureAdd(e,"intersect"),t.mapChild(e,t.exposureAdd)})),Array.prototype.forEach.call(e.removedNodes,(function(e){1===e.nodeType&&e.hasAttribute("data-exposure")&&t.exposureRemove(e),t.mapChild(e,t.exposureRemove)}))},e.prototype.mapChild=function(e,t){var n=this;1===e.nodeType&&e.children.length&&Array.prototype.forEach.call(e.children,(function(e){1===e.nodeType&&e.hasAttribute("data-exposure")&&t(e),n.mapChild(e,t)}))},e.prototype.exposureAdd=function(e,t){this._intersection.exposureAdd(e,t)},e.prototype.exposureRemove=function(e){this._intersection.exposureRemove(e)},e._exposure_observer=null,e}(),He=function(){function e(t,n){this.count=1,this.instance=this.buildObserver(),this.observeMap=e._observer_map,t.autotrack.exposure.ratio?this.Ratio=t.autotrack.exposure.ratio:0===t.autotrack.exposure.ratio?this.Ratio=0:this.Ratio=.5,this.EventHandle=n}return e.prototype.buildObserver=function(){var t=this;if(!e._observer_instance)return IntersectionObserver&&(e._observer_instance=new IntersectionObserver((function(e){e.forEach((function(e){t.observeMap.get(e.target._observeId)&&t.exposureEvent(e)}))}),{threshold:[.01,.25,.5,.75,1]})),e._observer_instance},e.prototype.exposureAdd=function(e,t){var n=e;"mutation"===t&&(n=e.target);var r=n._observeId;if(r||this.observeMap.has(r)){if(!1===n.visible){var i=n.getBoundingClientRect(),o=i.top,a=i.left,s=i.right,c=i.bottom;o>=0&&c<=window.innerHeight&&a>=0&&s<=window.innerWidth&&(n.visible=!0,this.EventHandle({eventType:"dom",eventName:"exposure"},e))}}else n._observeId=this.count,n.visible=!1,this.observeMap.set(this.count,n),this.observe(n),this.count++},e.prototype.exposureRemove=function(e){this.observeMap.has(e._observeId)&&(this.observeMap.delete(e._observeId),this.unobserve(e))},e.prototype.exposureEvent=function(e){if(e.intersectionRatio>=this.Ratio&&e.isIntersecting){if("0"===e.target.style.opacity||"hidden"===e.target.style.visibility)return;if(!0===e.target.visible)return;e.target.visible=!0,this.EventHandle({eventType:"dom",eventName:"exposure"},e)}else e.target.visible=!1},e.prototype.observe=function(e){this.instance.observe(e)},e.prototype.unobserve=function(e){this.instance.unobserve(e)},e._observer_instance=null,e._observer_map=new Map,e}(),Ke=function(){function e(e,t){e.autotrack&&e.autotrack.exposure&&(this._intersection=new He(e,t),this._observer=new qe(this._intersection),this.initObserver())}return e.prototype.initObserver=function(){var e=this;Array.prototype.forEach.call(document.querySelectorAll("[data-exposure]"),(function(t){e._intersection.exposureAdd(t,"intersect")}))},e}(),Fe={hashTag:!1,impr:!1},We=function(){function e(){}return e.prototype.apply=function(e,t){if(this.autoTrackStart=!1,this.collect=e,this.config=t,t.autotrack){var n=e.Types;t.autotrack&&t.autotrack.collect_url&&!t.autotrack.collect_url()||(this.ready(n.Autotrack),this.collect.emit(n.AutotrackReady))}},e.prototype.ready=function(e){this.collect.set(e);var t=this.config.autotrack;t="object"==typeof t?t:{},t=Object.assign(Fe,t),this.destroyed=!1,this.options=t,this.Config=new Re(Ce,this.options),this.Exposure=new Ke(this.config,this.handle.bind(this)),this.Listener=new Te(t,this.collect,this.Config),this.EventHandle=new je(this.config,t),this.Request=new Pe(this.collect),this.autoTrackStart=!0,this.init(),function(e,t){window.TEAVisualEditor=window.TEAVisualEditor||{};var n="",r="https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/visual-editor-rangers.js?query="+Date.now();window.TEAVisualEditor.appId=t.app_id;var i=t.channel_domain,o="";if(oe(["*"]),i){var a,s="";try{var c=window.performance.getEntriesByType("resource");if(c&&c.length&&(c.forEach((function(e){"script"===e.initiatorType&&e.name&&-1!==e.name.indexOf("collect")&&(s=e.name)})),s&&(a=s.split("/"))&&a.length)){o="https:/";for(var u=2;u=this.limit[e]&&this.report(!1)}catch(e){console.log(e)}},e.prototype.addErrorCount=function(e,t,n,r){var i=this;try{if(e&&e.length){var o=e[0].events;o&&o.length&&("f_data"===t?(r&&r.hasOwnProperty("sc")?this.addCount("log",t,o.length-r.sc):this.addCount("log",t,o.length),this.errorCode[t]=n):o.forEach((function(e){var r="log";for(var o in Je)if(-1!==Je[o].indexOf(e.event)){r=o;break}i.addCount(r,t,1),i.errorCode[t]=n})))}}catch(e){}},e.prototype.report=function(e){if(this.tracerCache){var t=[];this.tracerCache.forEach((function(e){console.log(e),e.forEach((function(e){t.push(e)}))})),t&&t.length&&this.sendTracer(t,e)}},e.prototype.sendTracer=function(e,t){try{var n=this.collect.eventManager.merge(e);t&&window.navigator.sendBeacon?window.navigator.sendBeacon(this.reportUrl,JSON.stringify(n)):this.fetch(this.reportUrl,n),this.tracerCache=null}catch(e){}},e.prototype.processTracer=function(e,t,n){try{var r={count:e,state:n,key:t,params_for_special:"applog_trace",aid:this.appid,platform:"web",_staging_flag:1,sdk_version:P};"f_net"!==n&&"f_data"!==n||(r.errorCode=this.errorCode[n]);var i=this.collect.processEvent("applog_trace",r);if(i&&i.event)return delete i.is_bav,i}catch(e){console.warn("something error")}},e.prototype.listener=function(){var e=this;document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e.leavePage()})),h((function(){e.leavePage()}))},e.prototype.leavePage=function(){this.report(!0)},e}(),Xe=y((function(e,t){e.exports=function(){var e="millisecond",t="second",n="minute",r="hour",i="day",o="week",a="month",s="quarter",c="year",u="date",l="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+d(r,2,"0")+":"+d(i,2,"0")},m:function e(t,n){if(t.date()1e3*r),t){var s=this.configManager.get(),c=s.header,u=s.user;this.fetch(this.url,{header:c,user:u,local_time:Date.now(),config_version:i},1e4,!1,(function(t){t&&0===t.code?(a.fetch_interval=t.fetch_interval,a.data=t.data,a.last_update_time=Date.now(),a.config_version=t.config_version,e.clearQuotas(),e.initState(t.data),e.storage.setItem(e.key,a),t.data.forEach((function(t){e.event("__cep_sdk_onboard",t.plan_id)}))):304!==t.code&&400!==t.code||!o?console.log("code: "+t.code+", request error\uff0cplease try leater"):(console.log("code: "+t.code+", use old rules~"),a.last_update_time=Date.now(),e.storage.setItem(e.key,a),e.initState(a.data))}),(function(){o?(e.planData=a.data,e.initState(a.data)):(e.support=!1,console.log("request error\uff0cplease try leater"))}))}else a.last_update_time=Date.now(),this.storage.setItem(this.key,a),console.log("rule still work, use cache"),this.initState(a.data)},e.prototype.initState=function(e){var t=this;e&&e.length&&(this.stateArray=new Map,this.waitArray=new Map,this.planData=e,e.forEach((function(e){var n=new Map;if(e.pattern&&e.pattern.events){var r=1===e.pattern.events.length;e.pattern.events.forEach((function(e){n.set(e.id,{id:e.id,isMatch:!1,event:null,after:e.after||null,connection:e.connection||null,window:e.window||null,matchTime:0,initTime:Date.now(),singleRule:r})})),t.stateArray.set(e.plan_id,{patternState:n,singleRule:r,pattern:{aid:e.aid,biz_id:e.biz_id,end_time:e.end_time,start_time:e.start_time,web_sdk_version:e.web_sdk_version,stage:e.stage},quotas:e.quotas})}})),this.cepReady=!0,this.dealCache(),this.collect.emit(this.types.CepReady))},e.prototype.check=function(e){var t=Date.now();return Date.now()>1e3*e.end_time?(console.log("event rules:"+e.plan_id+" is over"),!1):t<1e3*e.start_time||t>1e3*e.end_time?(console.log("rule:"+e.plan_id+" time error"),!1):(this.staing="testing"===e.staing,!(Pm.window?this.publish([p.get(m.after).event,m.event],u,g):this.startWait(u,g,m);break}m.isMatch?m.matchTime-p.get(m.after).matchTime<=m.window?this.publish([p.get(m.after).event,m.event],u,g):this.reset(u,g):Date.now()-p.get(m.after).matchTime>m.window?this.reset(u,g):this.startWait(u,g,m);break}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}}catch(i){e={error:i}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},e.prototype.startWait=function(e,t,n){var r=this;try{this.waitArray.get(e)||this.waitArray.set(e,new Map);var i=this.waitArray.get(e);if(!i.get(t)){var o=setTimeout((function(){var i=r.stateArray.get(e).patternState,o=i.get(t);if("NOT_FOLLOWED_BY"===o.connection)!o.isMatch&&i.get(o.after).isMatch||o.matchTime-i.get(o.after).matchTime>n.window?((a=r.waitArray.get(e).get(t)).triggerWait=!0,r.waitArray.set(e,r.waitArray.get(e).set(t,a)),r.publish([i.get(o.after).event],e,t)):r.reset(e,t);else if("FOLLOWED_BY"===o.connection){var a;o.isMatch&&i.get(o.after).isMatch?((a=r.waitArray.get(e).get(t)).triggerWait=!0,r.waitArray.set(e,r.waitArray.get(e).set(t,a)),r.publish([i.get(o.after).event],e,t)):r.reset(e,t)}}),n.window);i.set(t,{waitFn:o,triggerWait:!1}),this.waitArray.set(e,i)}}catch(e){this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),console.log(e.message,e.stack)}},e.prototype.rule=function(e,t,n,r){var i=this;try{var o=n.event,a=n.params;if(a=JSON.parse(a),-1!==et.indexOf(r.op)){if(r.conditions&&r.conditions.length){var s=r.conditions,c=0,u=new Map;u.set(c,{op:r.op,result:void 0,resultList:[],resultKey:[],resultLength:s.length}),function n(r,s){for(var l=0;l=i&&(console.log("plan:"+e+" limit"),1)):Date.now()-n[e].lastTime>=o?(n[e].value=0,n[e].lastTime=Date.now(),this.storage.setItem(this.quotasKey,n),!0):!(n[e].value>=i&&(console.log("plan:"+e+" limit"),1))}return!0},e.prototype.clearQuotas=function(){this.storage.setItem(this.quotasKey,null)},e.prototype.release=function(e){if("all"===e)return e;var t=Xe.duration(e);return t?t.asMilliseconds():"all"},e.prototype.reset=function(e,t){var n=this.stateArray.get(e);if(n.singleRule){var r=n.patternState.get(t);r.isMatch=!1,r.event=null,r.matchTime=0,r.initTime=Date.now(),n.patternState.set(t,r)}else n.patternState.forEach((function(e){e.isMatch=!1,e.event=null,e.matchTime=0,e.initTime=Date.now()}));this.stateArray.set(e,n);var i=this.waitArray.get(e);i&&i.get(t)&&(clearTimeout(i.get(t).waitFn),i.delete(t))},e.prototype.event=function(e,t){try{var n={event:e,params:JSON.stringify({plan_id:t||"",biz_id:this.stateArray.get(t).pattern.biz_id}),local_time_ms:Date.now()},r=this.configManager.get(),i=r.header,o=r.user;i.custom=JSON.stringify(i.custom);var a={events:[n],user:o,header:i};this.fetch(this.reportUrl,[a])}catch(e){return this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),void console.log(e.message)}},e.prototype.scope=function(e){var t="",n="";if(e.indexOf(".")>-1){var r=e.split(".");t=r[0],e=r[1],"header"===t&&"custom"===e&&(e=r[2],n=r[1])}return{scope:t,key:e,key2:n}},e.prototype.calculate=function(e,t,n){try{if("="===e)return t===n;if(-1!==["=","<",">",">=","<=","!="].indexOf(e))switch(e){case"=":return t===n;case"<":return t":return t>n;case">=":return t>=n;case"<=":return t<=n;case"!=":return t!==n}else{if(-1!==["in","contains"].indexOf(e))return-1!==n.indexOf(t);if(-1!==["is not null","is null"].indexOf(e))return"is null"===e?null==t:null!=t;if(-1!==["startswith","endswith"].indexOf(e)){if("startswith"===e)return 0===t.indexOf(n);var r=t.length-n.length;return t.substr(r,n.length)===n}}}catch(e){return this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),console.log(e.message),!1}},e}(),nt={autotrack:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/autotrack.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/autotrack.js"},object:"LogAutoTrack"},ab:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/ab.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/ab.js"},object:"LogAb"},stay:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/stay.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/stay.js"},object:"LogStay"},route:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/route.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/route.js"},object:"LogRoute"},cep:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/cep.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/cep.js"},object:"LogCep"},tracer:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/tracer.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/tracer.js"},object:"LogTracer"},visual:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/visual.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/visual.js"},object:"LogVisual"}},rt="undefined"!=typeof window?(window.LogPluginObject||(window.LogPluginObject={}),window.LogPluginObject):null,it=function(){function e(){}return e.prototype.apply=function(e,t){this._plugin={},this.config=t,this.collect=e,this.channel=t.channel||"cn",this.loadExtend()},e.prototype.loadExtend=function(){var e=this;try{this.collect.remotePlugin.forEach((function(t,n){if("sdk"===t)if(nt.hasOwnProperty(n)){var r=nt[n].object,i=""+nt[n].src[e.channel];e.exist(n,r,i)}else console.warn("your "+n+" is not exist\uff0cplease check plugin name");else"object"==typeof t&&(t.src?e.exist(n,t.call,t.src):e.process(n,t.instance,"INSTANCE"))}))}catch(e){this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),console.log("load extend error")}},e.prototype.exist=function(e,t,n){var r=this;rt[t]?(this.process(e,rt[t]),console.log("\u5df2\u6709"+e+"\u63d2\u4ef6\uff0c\u907f\u514d\u91cd\u590d\u52a0\u8f7d~")):this.loadPlugin(e,n,(function(){r.process(e,rt[t]),console.log(" %c %s %s %s","color: yellow; background-color: black;","\u2013","load plugin:"+e+" success","-")}),(function(){console.log(" %c %s %s %s","color: red; background-color: yellow;","\u2013","load plugin:"+e+" error","-")}))},e.prototype.process=function(e,t,n){try{if(n){var r=new t;r.apply&&r.apply(this.collect,this.config),console.log("excude "+e+" success")}else t&&t(this.collect,this.config)}catch(t){this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:t.message}),console.log("excude "+e+" error, message:"+t.message)}},e.prototype.loadPlugin=function(e,t,n,r){var i=this;try{var o=document.createElement("script");o.src=t,this._plugin[e]||(this._plugin[e]=[]),this._plugin[e].push(n),o.onerror=function(){r(t)},o.onload=function(){i._plugin[e].forEach((function(e){e()}))},document.getElementsByTagName("head")[0].appendChild(o)}catch(e){this.collect.emit(w.DEBUGGER_MESSAGE,{type:w.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e}(),ot=function(){function e(){this.autotrack=!1,this.spa=!1,this.cache={},this.allowHash=!1}return e.prototype.apply=function(e,t){if(t.spa||t.autotrack){var n=e.Types;this.collect=e,this.config=t,this.appid=t.app_id,this.allowHash=t.allow_hash,this.fncArray=new Map,this.setKey(),this.setLocation(),this.hack(),this.init(),this.listener(),e.emit(n.RouteReady)}},e.prototype.setKey=function(){var e=this.collect.adapters.storage;this.storage=new e(!1),this.cache_key="__tea_cache_refer_"+this.appid,this.cache={refer_key:location.href,refer_title:document.title||location.pathname,refer_manual_key:""},this.config.autotrack&&"object"==typeof this.config.autotrack&&this.config.autotrack.page_manual_key&&(this.cache.refer_manual_key=this.config.autotrack.page_manual_key),this.storage.setItem(this.cache_key,this.cache)},e.prototype.hack=function(){var e=this,t=window.history.pushState;history.pushState=function(n){for(var r=[],i=1;i{"use strict";n.d(t,{Ay:()=>r});var r=n(8153).Ay},82268:(e,t,n)=>{"use strict";n.d(t,{NP:()=>r.NP});var r=n(55264)},4940:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10520);function i(){return(0,r.NF)()}},57311:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.r(t),n.d(t,{default:()=>o});var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=r((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},27903:(e,t,n)=>{"use strict";n.r(t),t.default=function(e){function t(e,r,c,u,f){for(var h,d,g,m,b,S=0,E=0,k=0,x=0,A=0,M=0,P=g=h=0,z=0,N=0,L=0,G=0,B=c.length,U=B-1,$="",V="",q="",H="";zh)&&(G=($=$.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0{"use strict";n.r(t);t.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},8153:(e,t,n)=>{"use strict";n.d(t,{ai:()=>T});var r=n(11855),i=n(57644),o=n(29293),a=n(41832),s=n(97906),c=n(17020),u=n(4674),l=n.n(u);function p(e,t){if(!e){var n=new Error("loadable: "+t);throw n.framesToPop=1,n.name="Invariant Violation",n}}function f(e){console.warn("loadable: "+e)}var h=r.createContext(),d="__LOADABLE_REQUIRED_CHUNKS__";function g(e){return""+e+d}var m={initialChunks:{}},v="PENDING",_="REJECTED";var y=function(e){return e};function b(e){var t=e.defaultResolveComponent,n=void 0===t?y:t,u=e.render,f=e.onLoad;function d(e,t){void 0===t&&(t={});var d=function(e){return"function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),g={};function y(e){return t.cacheKey?t.cacheKey(e):d.resolve?d.resolve(e):"static"}function b(e,r,i){var o=t.resolveComponent?t.resolveComponent(e,r):n(e);if(t.resolveComponent&&!(0,c.isValidElementType)(o))throw new Error("resolveComponent returned something that is not a React component!");return l()(i,o,{preload:!0}),o}var w,S,E=function(e){var t=y(e),n=g[t];return n&&n.status!==_||((n=d.requireAsync(e)).status=v,g[t]=n,n.then((function(){n.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:d.resolve(e),chunkName:d.chunkName(e),error:t?t.message:t}),n.status=_}))),n},k=function(e){function n(n){var r;return(r=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:y(n)},p(!n.__chunkExtractor||d.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===t.ssr||(d.requireAsync(n).catch((function(){return null})),r.loadSync(),n.__chunkExtractor.addChunk(d.chunkName(n))),(0,a.A)(r)):(!1!==t.ssr&&(d.isReady&&d.isReady(n)||d.chunkName&&m.initialChunks[d.chunkName(n)])&&r.loadSync(),r)}(0,s.A)(n,e),n.getDerivedStateFromProps=function(e,t){var n=y(e);return(0,o.A)({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===_&&this.setCache(),this.state.loading&&this.loadAsync()},r.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},r.componentWillUnmount=function(){this.mounted=!1},r.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},r.getCacheKey=function(){return y(this.props)},r.getCache=function(){return g[this.getCacheKey()]},r.setCache=function(e){void 0===e&&(e=void 0),g[this.getCacheKey()]=e},r.triggerOnLoad=function(){var e=this;f&&setTimeout((function(){f(e.state.result,e.props)}))},r.loadSync=function(){if(this.state.loading)try{var e=b(d.requireSync(this.props),this.props,A);this.state.result=e,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:d.resolve(this.props),chunkName:d.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},r.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var n=b(t,e.props,A);e.safeSetState({result:n,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},r.resolveAsync=function(){var e=this.props,t=(e.__chunkExtractor,e.forwardedRef,(0,i.A)(e,["__chunkExtractor","forwardedRef"]));return E(t)},r.render=function(){var e=this.props,n=e.forwardedRef,r=e.fallback,a=(e.__chunkExtractor,(0,i.A)(e,["forwardedRef","fallback","__chunkExtractor"])),s=this.state,c=s.error,l=s.loading,p=s.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===v)throw this.loadAsync();if(c)throw c;var f=r||t.fallback||null;return l?f:u({fallback:f,result:p,options:t,props:(0,o.A)({},a,{ref:n})})},n}(r.Component),x=(S=function(e){return r.createElement(h.Consumer,null,(function(t){return r.createElement(w,Object.assign({__chunkExtractor:t},e))}))},(w=k).displayName&&(S.displayName=w.displayName+"WithChunkExtractor"),S),A=r.forwardRef((function(e,t){return r.createElement(x,Object.assign({forwardedRef:t},e))}));return A.displayName="Loadable",A.preload=function(e){A.load(e)},A.load=function(e){return E(e)},A}return{loadable:d,lazy:function(e,t){return d(e,(0,o.A)({},t,{suspense:!0}))}}}var w=b({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return r.createElement(t,n)}}),S=w.loadable,E=w.lazy,k=b({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),x=k.loadable,A=k.lazy,O="undefined"!=typeof window;function T(e,t){void 0===e&&(e=function(){});var n=void 0===t?{}:t,r=n.namespace,i=void 0===r?"":r,o=n.chunkLoadingGlobal,a=void 0===o?"__LOADABLE_LOADED_CHUNKS__":o;if(!O)return f("`loadableReady()` must be called in browser only"),e(),Promise.resolve();var s=null;if(O){var c=g(i),u=document.getElementById(c);if(u){s=JSON.parse(u.textContent);var l=document.getElementById(c+"_ext");if(!l)throw new Error("loadable-component: @loadable/server does not match @loadable/component");JSON.parse(l.textContent).namedChunks.forEach((function(e){m.initialChunks[e]=!0}))}}if(!s)return f("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var p=!1;return new Promise((function(e){window[a]=window[a]||[];var t=window[a],n=t.push.bind(t);function r(){s.every((function(e){return t.some((function(t){return t[0].indexOf(e)>-1}))}))&&(p||(p=!0,e()))}t.push=function(){n.apply(void 0,arguments),r()},r()})).then(e)}var C=S;C.lib=x,E.lib=A;t.Ay=C},5024:(e,t,n)=>{"use strict";n.d(t,{rP:()=>m,xH:()=>y});var r,i,o,a=n(11855),s=n(16118),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{WL:()=>x});var r=n(19162),i=n(92443);function o(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,o="[^".concat(s(t.delimiter||"/#?"),"]+?"),a=[],c=0,u=0,l="",p=function(e){if(u0)return[2,o.shift()];i.label=1;case 1:return a||0!==o.length?[3,3]:[4,t.read()];case 2:if((e=i.sent()).done)return a=!0,[3,3];n.push(e.value);try{if(r=c.decode(w.apply(void 0,(0,g._)(n))),(u=r.split("\n\n")).length>=2&&((l=o).push.apply(l,(0,g._)(u.slice(0,-1))),n=[s.encode(u.slice(-1).join("\n\n"))]),o.length>0)return[3,3]}catch(f){return[3,1]}return[3,1];case 3:return o.length>0||n.length>0&&(p=c.decode(w.apply(void 0,(0,g._)(n))),o=p.split("\n\n").filter((function(e){return e})),n=[]),[2,o.shift()]}}))})),u=function(){return h.apply(this,arguments)},[4,(0,p._)(u())];case 1:l=f.sent(),f.label=2;case 2:return l?[4,l]:[3,5];case 3:return f.sent(),[4,(0,p._)(u())];case 4:return l=f.sent(),[3,2];case 5:return[2]}var h}))})),b.apply(this,arguments)}function w(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"get";return function(){var n=(0,r._)((function(n){var r,o,a,s;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return r=n.params,o=n.request,a=E({params:r,request:o,routeId:e}),[4,fetch(a,{method:t,signal:o.signal})];case 1:if(!(s=i.sent()).ok)throw s;return s=function(e){var t=e.headers.get("X-Modernjs-Redirect");if(t)throw(0,u.V2)(t);return e}(s),[4,k(s)];case 2:return[2,s=i.sent()]}}))}));return function(e){return n.apply(this,arguments)}}()}},21814:(e,t,n)=>{"use strict";n.d(t,{H7:()=>l,i2:()=>D,pZ:()=>u,xs:()=>h});var r=n(18295),i=n(8289),o=n(46505),a=n(88268),s=Symbol.for("MODERN_PIPELINE"),c=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw new Error("".concat(e," is not a Middleware"))},u=function(){var e,t=[],n=function(e){return n=function(n,r,i){if(n>=t.length){if(e)return e(r);throw new Error("Expect returning a value, but all middlewares just calling next()")}return t[n](r,i)},r=function(e,t){return n(e,t,(function(){return r(e+1,arguments.length>0&&void 0!==arguments[0]?arguments[0]:t)}))},{start:function(e){return r(0,e)},dispatch:r};var n,r},i=n(),a=function(e,t){return function(e){return e?n(null==e?void 0:e.onLast):i}(t).start(e)},u=(e={},(0,r._)(e,s,!0),(0,r._)(e,"use",(function(){for(var e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:"name",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pre",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",o=function(t){var r=e.find((function(e){return"string"==typeof t?e[n]===t:e[n]===t[n]}));if(!r)throw new Error("plugin ".concat(t," not existed"));return r},a=[];e.forEach((function(t){var s,c;null===(s=t[r])||void 0===s||s.forEach((function(r){e.find((function(e){return e.name===r}))&&a.push([o(r)[n],o(t)[n]])})),null===(c=t[i])||void 0===c||c.forEach((function(r){e.find((function(e){return e.name===r}))&&a.push([o(t)[n],o(r)[n]])}))}));for(var s=e.filter((function(e){return!a.find((function(t){return t[1]===e[n]}))})),c=[];s.length;)t();if(a.length){var u={};throw a.forEach((function(e){u[e[0]]=!0,u[e[1]]=!0})),new Error("plugins dependencies has loop: ".concat(Object.keys(u).join(",")))}return c}(e.slice())}var A=function(e,t){return e.some((function(e){return e.name===t.name}))},O=function(e){return null!==e&&"object"==typeof e},T=function(e,t){return e.hasOwnProperty(t)},C="SYNC_PLUGIN_SYMBOL",R={name:"untitled",pre:[],post:[],rivals:[],required:[],usePlugins:[],registerHook:{}},D=function(e,t){var n,r=0,o=(0,i._)({},e),s=function(){return n},c=function(e){o=(0,i._)({},e,o)},u=function(e){return O(e)&&T(e,C)&&e[C]===C},l=(0,a._)((0,i._)({},t),{useHookRunners:s}),p=function(e){var t=[],f=function(e){A(t,e)||t.push((0,i._)({},e))},h=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(null===(e=n.usePlugins)||void 0===e?void 0:e.length)&&n.usePlugins.forEach((function(e){h(d(e.setup,e))})),n.registerHook&&c(n.registerHook),(0,a._)((0,i._)((0,a._)((0,i._)({},R),{name:"No.".concat(r++," plugin")}),n),{SYNC_PLUGIN_SYMBOL:C,setup:t})},g={createPlugin:d,isPlugin:u,usePlugin:h,init:function(){var r=x(t),a=(0,i._)({},l,e);k();var s=r.map((function(e){return e.setup(a)}));return n=M(s,o)},clear:function(){t=[]},run:function(e){return e()},registerHook:c,useRunner:s,clone:p};return g};return p()},M=function(e,t){var n={},r=P(t);if(t){var o=function(t){e.forEach((function(e){(null==e?void 0:e[t])&&r[t].use(e[t])})),n[t]=function(e,n){return r[t].run(e,(0,i._)({},n))}};for(var a in r)o(a)}return n},j=function(e){if(t=e,Boolean(null==t?void 0:t[p]))return h();var t,n,c;if(function(e){return Boolean(null==e?void 0:e[g])}(e))return n=l(),c=(0,a._)((0,i._)({},n),(0,r._)({use:function(){for(var e=arguments.length,t=new Array(e),r=0;r{"use strict";n.d(t,{Nw:()=>T,Ef:()=>O,NF:()=>C});var r,i,o=n(19162),a=n(78986),s=n(8289),c=n(45286),u=n(46505),l=n(92443),p=n(63159),f=n(11855),h=n(4674),d=n.n(h),g=n(49839),m=n(25633),v=n(21814),_={hoc:(0,v.pZ)(),provide:(0,v.pZ)(),client:(0,v.H7)(),server:(0,v.H7)(),init:(0,v.H7)(),pickContext:(0,v.pZ)()},y=(0,v.i2)(_),b=(y.createPlugin,n(2018)),w=n(69637),S=n.n(w);(i=r||(r={}))[i.idle=0]="idle",i[i.loading=1]="loading",i[i.fulfilled=2]="fulfilled",i[i.rejected=3]="rejected";var E=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.skipStatic,s=void 0!==i&&i,c=r.skipNonStatic,p=void 0!==c&&c,f=new Map,h=(t=new Map,function(e){var n=t.get(e);if(n)return n;var r=JSON.stringify(e);return S()(r,"params should be not null value"),t.set(e,r),r}),d=(n=(0,o._)((function(){var e,t,n,r,i,o,s,c,u,p;return(0,l.YH)(this,(function(l){switch(l.label){case 0:e=[],t=!0,n=!1,r=void 0;try{for(i=f[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)s=(0,b._)(o.value,2),c=s[0],u=s[1],p=u.promise,(0,a._)(p,Promise)&&e.push([c,u])}catch(h){n=!0,r=h}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}return[4,Promise.all(e.map((function(e){return e[1].promise})))];case 1:return l.sent(),[2,e.reduce((function(e,t){var n=(0,b._)(t,2),r=n[0],i=n[1];return e[r]=i.result,e}),{})]}}))})),function(){return n.apply(this,arguments)});return{hasPendingLoaders:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=f.values()[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var o=r.value.promise;if((0,a._)(o,Promise))return!0}}catch(s){t=!0,n=s}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}return!1},awaitPendingLoaders:d,add:function(t,n){var r=h(n.params),i=f.get(r),c=n._cache;if(!i||!1===c){var d=p&&!n.static,g=s&&n.static,m=d||g;i=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=0,p=r.data,f=r.error,h=!1,d=new Set,g=(n=(0,o._)((function(){return(0,l.YH)(this,(function(e){return s||1===c?[2,t]:(c=1,v(),[2,t=i().then((function(e){p=e,f=null,c=2})).catch((function(e){f=e,p=null,c=3})).finally((function(){t=null,h=!0,v()}))])}))})),function(){return n.apply(this,arguments)}),m=function(){return{loading:!h&&1===c,reloading:h&&1===c,data:p,error:(0,a._)(f,Error)?"".concat(f.message):f,_error:f}},v=function(){(0,u._)(d).forEach((function(e){e(c,m())}))};return{get result(){return m()},get promise(){return t},onChange:function(e){return d.add(e),function(){d.delete(e)}},load:g}}(r,void 0!==e[r]?e[r]:{data:n.initialData},t,m),f.set(r,i)}return r},get:function(e){return f.get(e)}}};var k,x=new WeakMap,A=function(e){return{loaderManager:E({}),runner:e,isBrowser:!0,routeManifest:"undefined"!=typeof window&&window[g.Ae]}},O=function(e){var t,n=e.plugins,r=e.props,i=y.clone();return(t=i).usePlugin.apply(t,(0,u._)(n)),function(e){var t=i.init(),n=function(n){var r,i=f.createElement(e||f.Fragment,e?(0,s._)({},n):null,e?n.children:f.cloneElement(n.children,(0,s._)({},null===(r=n.children)||void 0===r?void 0:r.props,n))),o=(0,f.useContext)(m.V);return t.provide({element:i,props:(0,s._)({},n),context:o},{onLast:function(e){return e.element}})};e&&d()(n,e);var o=t.hoc({App:n},{onLast:function(e){var n=e.App;return d()((function(e){var i=e.context,o=(0,c._)(e,["context"]),a=i;(null==a?void 0:a.runner)||(a=A(t),t.init({context:a},{onLast:function(e){var t,r=e.context;return null==n||null===(t=n.init)||void 0===t?void 0:t.call(n,r)}}));var u=(0,s._)({},o,r);return(0,p.jsx)(m.V.Provider,{value:a,children:(0,p.jsx)(n,(0,s._)({},u))})}),n)}});return x.set(o,t),o}},T=(k=(0,o._)((function(e,t,n,r){var i,o,c,u,p,h,d,g,m,v,_,y,b,w,S;return(0,l.YH)(this,(function(l){switch(l.label){case 0:return i=e,(o=x.get(i))||(i=O({plugins:[]})(i),o=x.get(i)),c=A(o),u=function(e){return o.init({context:e},{onLast:function(e){var t,n=e.context;return null==i||null===(t=i.init)||void 0===t?void 0:t.call(i,n)}})},t?"undefined"!=typeof window&&"nodejs"!==window.name?function(e){return"string"==typeof e||"undefined"!=typeof HTMLElement&&(0,a._)(e,HTMLElement)}(t)?(d=window._SSR_DATA,g=(null==d||null===(p=d.data)||void 0===p?void 0:p.loadersData)||{},m=Object.keys(g).reduce((function(e,t){var n=g[t];return!1!==n.loading||(e[t]=n),e}),{}),Object.assign(c,(0,s._)({loaderManager:E(m,{skipStatic:!0})},d?{ssrContext:null==d?void 0:d.context}:{})),c.initialData=null==d||null===(h=d.data)||void 0===h?void 0:h.initialData,[4,u(c)]):[3,2]:[3,4]:[2,f.createElement(i,{context:c})];case 1:if((v=l.sent())&&(c.initialData=v),_="string"!=typeof t?t:document.getElementById(t||"root"),!r)throw Error("The `bootstrap` need provide `ReactDOM` parameter");return y=function(e){if(n)n.render(e);else{if(!r.createRoot)throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `createRoot` method");r.createRoot(_).render(e)}},b=function(e,t){if(!r.hydrateRoot)throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `hydrateRoot` method");r.hydrateRoot(_,e)},[2,o.client({App:i,context:c,ModernRender:y,ModernHydrate:b},{onLast:function(e){var t=e.App;y(f.createElement(t,{context:c}))}})];case 2:throw Error("`bootstrap` needs id in browser environment, it needs to be string or element");case 3:return[3,6];case 4:return Object.assign(c,{ssrContext:t,isBrowser:!1,loaderManager:E({},{skipNonStatic:t.staticGenerate,skipStatic:!t.staticGenerate})}),w=function(e){if("undefined"!=typeof Response&&(0,a._)(e,Response)&&e.status>=300&&e.status<=399){var t=e.status,n=e.headers.get("Location")||"/",r=c.ssrContext;return r&&(r.res.statusCode=t,r.res.setHeader("Location",n),r.redirection=r.redirection||{},r.redirection.status=t,r.redirection.url=n),!0}return!1},[4,u(c)];case 5:if(S=l.sent(),!w(S))return c.initialData=S,[2,o.server({App:i,context:c})];l.label=6;case 6:return[2]}}))})),function(e,t,n,r){return k.apply(this,arguments)}),C=function(){var e=(0,f.useContext)(m.V);return(0,f.useMemo)((function(){return e.runner.pickContext({context:e,pickedContext:{}},{onLast:function(e){return e.pickedContext}})}),[e])}},13530:(e,t,n)=>{"use strict";n.d(t,{eM:()=>o,qF:()=>a,rl:()=>i});var r=n(49839),i=function(e){return function(t){var n,i,o=null===(i=window)||void 0===i||null===(n=i[r.Ql])||void 0===n?void 0:n[e];return o&&"function"==typeof o.shouldRevalidate?o.shouldRevalidate(t):t.defaultShouldRevalidate}},o=function(e,t){return"undefined"!=typeof document&&(window[r.Ql][t]=e),e},a=function(e){return console.error(e),null}},25633:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(11855),i=(0,r.createContext)({});(0,r.createContext)({})},49839:(e,t,n)=>{"use strict";n.d(t,{Ae:()=>r,IV:()=>o,Ql:()=>i});var r="_MODERNJS_ROUTE_MANIFEST",i="_routeModules",o="server-loader"},44927:(e,t)=>{"use strict";var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(M){i={error:M}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function i(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i=0){var r=e.slice();return r.splice(n,1),r}return e},E=function(e,t,n){for(var i,o=r(t.split(".")),a=o[0],s=o.slice(1);e&&s.length>0;)e=e[a],a=(i=r(s))[0],s=i.slice(1);if(e)return n(e,a)},k=function(e){return e.replace(/([a-z])([A-Z])/g,(function(e,t,n){return t+"-"+n.toLowerCase()}))};function x(e){return d(e)&&e.length?function(e){for(var t=[],n=e.length,r=0;r>>((3&n)<<3)&255;return e}();return e[6]=15&e[6]|64,e[8]=63&e[8]|128,function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);var r=0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}(e)}var G=function(e,t){var n=[];try{n=t.reduce((function(t,n){try{var r=n(e);"function"==typeof r&&t.push(r)}catch(or){}return t}),[])}catch(or){}return function(e){return G(e,n)}},B=function(e){void 0===e&&(e=3e5);var t,n=[],r=[],i=!1,o=function(e,t,n){var r=0;return-1===n?u:function(){if(e())return r&&clearTimeout(r),void(r=0);0===r&&(r=setTimeout(t,n))}}((function(){return!!n.length}),(function(){i=!0,t&&t[0](),r.forEach((function(e){return e()})),r.length=0,t=void 0}),e),a=function(e){n=S(n,e),!i&&o()};return{next:function(e){return G(e,n)},complete:function(e){r.push(e)},attach:function(e,n){t=[e,n]},subscribe:function(e){if(i)throw new Error("Observer is closed");return n.push(e),t&&t[1]&&t[1](e),o(),function(){return a(e)}},unsubscribe:a}},U=function(e,t,n){var r=B(n);try{e(r.next,r.attach),t&&r.complete(t)}catch(or){}return[r.subscribe,r.unsubscribe]},$=function(e,t){var n=r(e,1)[0];return function(e,r){var i=n((function(n){var r;return(r=t,function(e){for(var t=!0,n=0;n([\\d\\D]*?)<\\/script>[\\d\\D]*","i");o=s.replace(c,"$1").trim()}for(;e=J()?o:void 0}catch(s){return}var a},Ce=function(e,t,r){var i;if(!(r<=0))try{localStorage.setItem(e,(i=JSON.stringify(n(n({},t),{expires:J()+r})),Oe()?btoa(encodeURI(i)):i))}catch(o){}},Re=function(e){return!1===e?0:!0!==e&&void 0!==e&&m(e)?e:7776e6},De="xhr_0",Me=function(e){return function(){for(var t,n=[],i=0;i=400)&&(u.request.body=c?""+c:void 0,u.response.body=e.response?""+e.response:void 0)}catch(d){}return u};function ot(e,t,n){var r,i=null===(r=e.config())||void 0===r?void 0:r.plugins[t];return Ae(i,n)}var at="ajax",st={autoWrap:!0,setContextAtReq:function(){return l},ignoreUrls:[],collectBodyOnError:!1};var ct=function(e,t,n){var i=r(t,2),o=i[0],a=i[1],s=n.setTraceHeader,c=n.ignoreUrls,l=n.setContextAtReq,p=n.extractUrl,f=window.Headers,h=window.Request;h&&f&&e.push(o[0]((function(e){var t=r(e,2),i=t[0],o=t[1],d=ae(i instanceof h?i.url:i);if(!ut(d)||A(c,d))return u;s&&s(d,(function(e,t){return pt(e,t,i,o,h,f)}));var g=l(),m=J(),v=void 0,_=a()[0]((function(e){d===e.name&&!v&&(v=e)}));return function(e){var t,r,a=gt(i,o,e,h,f,n,m),s=(t=function(e){v&&(e.response.timing=v),nt(e,p),g&&g({ev_type:Ke,payload:e}),_()},r=!1,function(e){r||(r=!0,t(e))});setTimeout((function(){s(a)}),1e3)}})))},ut=function(e){if(!v(e))return!1;var t=r(e.split(":"),2),n=t[0];return!t[1]||"http"===n||"https"===n},lt=function(e,t){return e instanceof t},pt=function(e,t,r,i,o,a){var s;lt(r,o)?r.headers.set(e,t):i.headers instanceof a?i.headers.set(e,t):i.headers=n(n({},i.headers),((s={})[e]=t,s))},ft=function(e,t,n){var r=t&&t.method||"get";return lt(e,n)&&(r=e.method||r),r.toLowerCase()},ht=function(e){for(var t=[],n=1;n=400&&p()}catch(or){}else p();return s},mt="fetch",vt={autoWrap:!0,setContextAtReq:function(){return l},ignoreUrls:[],collectBodyOnError:!1};var _t=["name","message","stack","filename","lineno","colno"],yt=function(e){var t,n,r,i;return!function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMError]":case"[object DOMException]":return!0;default:return e instanceof Error}}(e)?(h(e)||(i=e,"undefined"!=typeof Event&&function(e,t){try{return e instanceof t}catch(n){return!1}}(i,Event))||v(e))&&(t={message:O(e)}):(r=_t,t=(n=e)&&p(n)?r.reduce((function(e,t){return e[t]=n[t],e}),{}):n),t},bt=function(e){return t=e,"[object ErrorEvent]"===Object.prototype.toString.call(t)?yt(e.error):function(e){return"[object PromiseRejectionEvent]"===Object.prototype.toString.call(e)}(e)?function(e){var t;try{var r=void 0;if("reason"in e?r=e.reason:"detail"in e&&"reason"in e.detail&&(r=e.detail.reason),r){var i=yt(r);return n(n({},i),{name:null!==(t=i&&i.name)&&void 0!==t?t:"UnhandledRejection"})}}catch(o){}}(e):yt(e);var t},wt="jsError",St=function(e){return"hidden"===e.visibilityState},Et=["hidden_3",function(e,t){var n=X(),r=Y();if(n&&r){var i=function(t){e("pagehide"===t.type||St(n))},o=Ee(n,"visibilitychange",i,!0),a=Se(r,"pagehide",i,!0);t((function(){o(),a()}),(function(e){e(St(n))}))}}],kt=function(e){return"complete"===e.readyState},xt=["load_1",function(e,t){var n=Y(),r=X();if(n&&r){var i=!1,o=u,a=function(){setTimeout((function(){e(),i=!0}),0)};kt(r)?a():o=Se(n,"load",a,!1),t((function(){o()}),(function(e){i&&e()}))}}],At=["unload_0",function(e,t){var n=Y();if(n){var i=r(ke(e),1)[0],o=function(){i()},a=[];["unload","beforeunload","pagehide"].forEach((function(e){a.push(Se(n,e,o,!1))})),t((function(){a.forEach((function(e){return e()}))}))}}],Ot=["activated_0",function(e,t){var n=X();if(n){var r=!1,i=u,o=function(){e(),r=!0};n&&n.prerendering?i=Ee(n,"prerenderingchange",o,!0):o(),t((function(){i()}),(function(e){r&&e()}))}}],Tt=["hash_0",function(e,t){var n=Y();if(n){var r=Se(n,"hashchange",(function(){return e(location.href)}),!0);t((function(){r()}))}}],Ct=["history_0",function(e,t){var n=Q(),r=Y();if(n&&r){var i=[],o=function(){return e(location.href)},a=function(e){return function(){for(var t=[],r=0;rt.frustrating_threshold?2:r>t.satisfying_threshold||0===n?0:1},Lt=function(e,t){return function(n,r){var i=n.payload;switch(n.ev_type){case We:var o=i.name;i.isSupport&&e(r[zt],o,i.value);break;case Je:e(r[zt],"action",i.duration||0);break;case He:t(r[Pt],0);break;case Ke:if(i.response.is_custom_error||i.response.status>=400)t(r[Pt],1);else{var a=i.response.timing;a&&e(r[It],0,a.duration)}break;case"resource_error":t(r[Pt],2);break;case"blank_screen":t(r[Pt],3);break;case"resource":e(r[It],1,i.duration);break;case"performance_longtask":i.longtasks.forEach((function(t){e(r[It],2,t.duration)}))}}},Gt=function(){var e,t,n=function(){e=[0,0,0],t=function(){var e;return(e={error_count:[0,0,0,0],duration_count:[0,0,0]})[zt]={},e}()};n();return[function(n,r,i){var o=n&&n[r];if(o&&!(i<=0)){var a=i<(o[0].threshold||0)?0:i>(o[1].threshold||0)?2:1;if(e[a]+=o[a].weight,"string"==typeof r){var s=Dt(r,a),c=t[zt][s];t[zt][s]=(c||0)+1}else 2===a&&(t.duration_count[r]+=1)}},function(n,r){n&&(e[2]+=n[r],t.error_count[r]+=1)},function(){return[e,t]},n]},Bt=function(e,t,n,i){var o,a,s=i.sendInit,c=i.initPid,u=i.routeMode,l=i.extractPid,p=i.onPidUpdate,f=jt(u)?function(){return""}:function(e){return function(t){var n;return"hash"===e?(null===(n=se(t).hash)||void 0===n?void 0:n.replace(/^#/,""))||"/":se(t).path}}(u),h=l||function(){},d=r(function(e,t,n,r){var i=n,o=t;return r&&r(t),[function(t,n,a){"user_set"!==t&&n!==i?(i=n,o=null!=a?a:i,r&&r(o),e(t,o)):"user_set"===t&&n!==o&&(o=n,r&&r(o),e(t,o))},function(){t&&e("init",t)}]}(Mt(e),c||function(e){var t;return null!==(t=h(e))&&void 0!==t?t:f(e)}(location.href),f(location.href),p),2),g=d[0],m=d[1];if(!jt(u)){var v=r((o=function(e,t){return g(e,f(t),h(t))},a="",[function(e,t){t!==a&&o(e,a=t)}]),1)[0];n.length&&n.forEach((function(e){return t.push(e[0]((function(e){return v(u,e)})))}))}return s&&m(),[g.bind(null,"user_set")]},Ut=function(e,t,n,i){var o,a,s,c=r(n,2),u=c[0],l=c[1],p=2===i.apdex,f=void 0,h=void 0,d=void 0,g=!1,m=r(Gt(),4),v=m[0],_=m[1],y=m[2],b=m[3],w=r(Gt(),4),S=w[0],E=w[1],k=w[2],x=w[3],A=r((o={start:J(),end:0,time_spent:0,is_bounced:!1,entry:"",exit:"",p_count:0,a_count:0},[function(e,t){var n=r(e,3),i=n[0],a=n[1],s=n[2];o.end=J(),o.time_spent+=t&&t.time_spent||0,o.last_page=t,o.p_count+=1,o.rank=i,o.apdex=a,o.apdex_detail=s;var c=X();c&&(o.is_bounced=!kt(c))},function(e,t){o.time_spent+=e.time_spent,o.p_count+=1,o.exit=t},function(){o.a_count+=1},function(e){o.entry=e,o.exit=e},function(){return o}]),5),O=A[0],T=A[1],C=A[2],R=A[3],D=A[4],M=r((a=0,s=void 0,[function(e){if(e){if(!s)return;a+=J()-s,s=void 0}else s=J()},function(){s&&(a+=J()-s);var e=a;return a=0,s=J(),e}]),2),j=M[0],P=M[1];t.push(u[0](j)),!p&&t.push(l[0]((function(){if(g){var t=r(k(),2),n=t[0],i=t[1],o=Nt(n,d);O([o,n,i],N()),e({ev_type:qe,payload:D()}),x()}})));var I=Lt(v,_),z=Lt(S,E),N=function(){var e=r(y(),2),t=e[0],n=e[1];return{start:f[0],pid:f[1],view_id:f[2],end:J(),time_spent:P(),apdex:t,rank:Nt(t,d),detail:n}};return t.push((function(){g=!1})),[function(e,t){if(!f)return f=[J(),e,t],R(e),void(g=!(!d||!f));g&&(h=N(),T(h,e)),f=[J(),e,t],b()},function(e){g&&(p||(z(e,d),e.ev_type===Je&&C()),e.common.pid===f[1]&&I(e,d))},function(t){g&&(t.payload.last=h),e(t)},function(e){if(!e)return t.forEach((function(e){return e()})),void(t.length=0);g=!(!(d=e)||!f)}]},$t="pageview",Vt={sendInit:!0,routeMode:"history",apdex:2};var qt={isSupport:!0,isPolyfill:!1,isBounced:!1,isCustom:!1,type:"perf"},Ht=function(e,t){return n({name:e,value:t},qt)},Kt=function(e,t,n){var r=!1;return function(i){n.length&&n.forEach((function(e){e()})),n.length=0,r||(r=!0,t&&t(e(i)))}},Ft=function(e,t){return{ev_type:We,payload:e,overrides:t}},Wt=function(){var e=function(){var e=ee();return(0,r(ye(e),3)[2])("navigation")[0]}();return e&&e.activationStart||0},Jt="first-paint",Yt=function(e,t,n,i,o){var a=r(o,3),s=a[0],c=a[1],u=a[2],l=re(),p=ee(),f=X(),h=Ht(t,0),d=Kt(Ft,n,i);if(!p||!l||!f)return h.isSupport=!1,void d(h);var g=function(){if(St(f))return h.isSupport=!1,void d(h);var t=function(e){var t=e.startTime,n=Wt();h.value=t2)return n();for(var i=[],o=0;o=0;o--){var s=r(i[o],2),c=s[0];switch(s[1]){case 0:a--;break;case 1:if(++a>2)return c}}return 0}(function(e){for(var t=Object.keys(e),n=[],r=0;ro||!t||(i(),r=window.setTimeout(t,o-e()),n=o)};return[function(e,n){t=e,o(n)},function(){i(),t=void 0},o]}(S),3),x=k[0],A=k[1],O=k[2],T=r(en(t,[a,s,c,u,ne()],v)(O,S),2),C=T[0],R=T[1];t.push(A);var D=function(e){var t=E("first-contentful-paint")[0],n=function(e,t,n,r,i){if(r-n-1)return 0;var i=e.children,o=void 0===i?[]:i,a=[].slice.call(o).reduceRight((function(e,n){return e+on(n,t+1,e>0,r)}),0);if(a<=0&&!n){if(!g(e.getBoundingClientRect))return 0;var s=e.getBoundingClientRect()||{},c=s.top,u=s.height;if(c>window.innerHeight||u<=0)return 0}return a+1+.5*t},an=function(e,t,n){var i=r(n,2),o=i[0],a=i[1],s=X(),c=ne(),l=ee(),p=l&&l.timing&&l.timing.navigationStart||void 0,f=Ht("fmp",0),h=Kt(Ft,e,t);if(!s||!c||!p)return f.isSupport=!1,void h(f);var d=J(),m=[],v=function(){return m.push({time:J()-d,score:on(s&&s.body,1,!1,rn)})},_=function(){if(Y()&&"requestAnimationFrame"in window)return window.requestAnimationFrame}(),y=function(){if(Y()&&"cancelAnimationFrame"in window)return window.cancelAnimationFrame}(),b=r(function(e,t,n,r){var i,o=!g(t)||r&&e&&e.hidden?function(e){return e(0),0}:t,a=g(n)?n:u;return[function(e){i&&a(i),i=o(e)},o,a]}(s,_,y,!0),1),w=b[0],S=r(_e(c,(function(){return w(v)})),2),E=S[0],k=S[1],x=function(e){void 0===e&&(e=0);var t=function(e){var t=r(void 0===e?[]:e),n=t[0],i=t.slice(1);return i&&i.reduce((function(e,t){var n=r(e,2),i=n[0],o=n[1],a=t.score-i.score;return[t,t.time>=i.time&&o.ratet[0];case"gte":return e>=t[0];case"lt":return e=c&&h.call(this),clearTimeout(f),f=setTimeout(h.bind(this),l)},flush:function(){clearTimeout(f),h.call(this)},getBatchData:function(){return p.length?s(p):""},clear:function(){clearTimeout(f),p=[]},fail:function(e){t=e}}}(e),n=t.send;return function(e){var t=Y();if(t){var n=r(ke(e),1)[0];["unload","beforeunload","pagehide"].forEach((function(e){Se(t,e,n,!1)}))}}((function(){if(e.transport.useBeacon){var r=function(){var e=Y();return e&&e.navigator.sendBeacon?{get:function(){},post:function(t,n){e.navigator.sendBeacon(t,n)}}:{get:u,post:u}}(),i=t.getBatchData();i&&(r.post(t.getEndpoint(),i),t.clear()),t.send=function(e){r.post(t.getEndpoint(),s([e]))},function(e){var t=X(),n=Y();if(t&&n){var r=u;r=Ee(t,"visibilitychange",(function(){"visible"===t.visibilityState&&(e(),r())}),!0)}}((function(){t.send=n}))}else t.flush()})),t}var yn="mon-va.byteoversea.com",bn=yn,wn="https://sf16-short-va.bytedapm.com/slardar/fe/sdk-web/plugins",Sn="1.12.6",En="SDK_SLARDAR_WEB",kn="/monitor_web/settings/browser-settings",xn="/monitor_browser/collect/batch/",An="SLARDAR",On=["/log/sentry/",xn,kn],Tn="session",Cn=["blankScreen","action"],Rn={sample_rate:1,include_users:[],sample_granularity:Tn,rules:{}},Dn="";function Mn(e,t,n){void 0===n&&(n=zn),function(e){var t=Y(),n=X();t&&n&&("complete"!==n.readyState?Se(t,"load",(function(){setTimeout((function(){e()}),0)}),!1):e())}((function(){e.on("init",(function(){n(e,t)}))}))}var jn=function(e,t,n,r){void 0===r&&(r=Nn);var i=t.config(),o=i.plugins,a=i.pluginBundle,s=e.filter((function(e){return o[e]&&!t.destroyAgent.has(e)})),c=function(){return s.forEach((function(e){return Ln(t,e,n)}))};s.every((function(e){return Bn(e,n)}))?c():r(t,{name:a.name},c)},Pn=function(e,t,n,r){void 0===r&&(r=Nn);var i=t.config().plugins;e.filter((function(e){return i[e]&&!t.destroyAgent.has(e)})).forEach((function(e){Bn(e,n)?Ln(t,e,n):r(t,{name:e,config:i[e]},(function(){return Ln(t,e,n)}))}))},In=function(e){return function(t,r){var i,o=e.config().pluginBundle;e.destroyAgent.has(t)&&e.destroyAgent.remove(t),void 0!==r&&e.set({plugins:n(n({},e.config().plugins),(i={},i[t]=r,i))}),o&&~o.plugins.indexOf(t)?jn([t],e):Pn([t],e)}};function zn(e,t,n){void 0===n&&(n=Nn);var r=e.config().pluginBundle,i=r?r.plugins:[];jn(i,e,t,n),Pn(Cn,e,t,n),e.provide("reloadPlugin",In(e))}function Nn(e,t,n,r){var i=t.name,o=t.config;void 0===r&&(r=xe);var a=function(e,t,n){var r;return null!==(r=null==n?void 0:n.path)&&void 0!==r?r:e.config().pluginPathPrefix+"/"+k(t)+"."+Sn+"."+Dn+"js"}(e,i,o);r(a,(function(){n()}))}function Ln(e,t,n){if(void 0===n&&(n=me(Y())),n){var r=Gn(n,t);if(r)try{if(e.destroyAgent.has(t))return;r.apply(e)}catch(i){ve(i),P("[loader].applyPlugin failed",t,i)}else P("[loader].applyPlugin not found",t)}}function Gn(e,t){return e.plugins.filter((function(e){return e.name===t&&e.version===Sn}))[0]}function Bn(e,t){return void 0===t&&(t=me(Y())),!(!t||!t.plugins)&&!!Gn(t,e)}function Un(e,t,n){void 0===n&&(n=me(Y())),n&&n.plugins&&(Gn(n,e)||n.plugins.push({name:e,version:Sn,apply:t}))}function $n(e){var t=e.plugins||{};for(var r in t)t[r]&&!p(t[r])&&(t[r]={});return n(n({},e),{plugins:t})}function Vn(e){return p(e)&&"bid"in e}function qn(e){return n({},e)}function Hn(e){var t;if(!e)return{};var n=e.sample,r=e.plugins,i=e.timestamp,o=e.quota_rate,a=void 0===o?1:o,s=e.apdex;if(!n)return{};var c=n.sample_rate,u=n.sample_granularity,l=void 0===u?Tn:u,p=n.include_users,f=n.rules;return{sample:{include_users:p,sample_rate:c*a,sample_granularity:l,rules:(void 0===f?[]:f).reduce((function(e,t){var n=t.name,r=t.enable,i=t.sample_rate,o=t.conditional_sample_rules;return e[n]={enable:r,sample_rate:i,conditional_sample_rules:o},e}),{})},plugins:{heatmap:null!==(t=null==r?void 0:r.heatmap)&&void 0!==t&&t},apdex:s,serverTimestamp:i}}var Kn=function(e,t){return void 0===t&&(t=xn),(e&&e.indexOf("//")>=0?"":"https://")+e+t},Fn=function(e,t){return void 0===t&&(t=kn),(e&&e.indexOf("//")>=0?"":"https://")+e+t},Wn=function(){return L()},Jn=function(e){var t=[];return e.observe=function(e){t.push(e)},e.push=function(){for(var n,o=[],a=0;a0||s<-6e5)&&e.on("beforeBuild",(function(e){var t;return n(n({},e),{extra:n(n({},null!==(t=e.extra)&&void 0!==t?t:{}),{sdk_offset:null!=s?s:0})})}))}}}))}))},yr=function(e,t){var r={};return r.bid=t.bid,r.user_id=t.userId,r.device_id=t.deviceId,r.session_id=t.sessionId,r.release=t.release,r.env=t.env,n(n({},e),{extra:n(n({},r),e.extra||{})})},br=function(e){e.on("beforeBuild",(function(t){return yr(t,e.config())}))},wr=function(e){e.on("start",(function(){var t=e.config().bid,n=e.getSender();n.setEndpoint(n.getEndpoint()+"?biz_id="+t)}))},Sr=function(e){var t=Re(e.storageExpires),n=Qn(e.bid,t);return{bid:"",pid:"",viewId:Rt("_"),userId:n.userId,deviceId:n.deviceId,storageExpires:t,sessionId:Wn(),domain:yn,pluginBundle:{name:"commonMonitors",plugins:["breadcrumb","jsError","performance","resourceError","resource"]},pluginPathPrefix:wn,plugins:{ajax:{ignoreUrls:On},fetch:{ignoreUrls:On},breadcrumb:{},pageview:{},jsError:{},resource:{},resourceError:{},performance:{},tti:{},fmp:{},blankScreen:!1,heatmap:!1},release:"",env:"production",sample:Rn,transport:vn()}},Er=function(e){var t=void 0===e?{}:e,o=t.createSender,a=void 0===o?function(e){return _n({size:20,endpoint:Kn(e.domain),transport:e.transport})}:o,s=t.builder,c=void 0===s?ar:s,u=t.createDefaultConfig,l=q({validateInitConfig:Vn,initConfigNormalizer:$n,userConfigNormalizer:qn,createSender:a,builder:c,createDefaultConfig:void 0===u?Sr:u,createConfigManager:nr});vr(l),H(l);var p=me(Y());!function(e,t){var n=t||{},i={};e.provide("setFilter",(function(e,t){i[e]||(i[e]=[]),i[e].push(t)})),e.provide("initSubject",(function(t){var o=r(t,2),a=o[0],s=o[1],c=function(e){return e.split("_")[0]}(a),u=!!c&&i[c];return n[a]||(n[a]=U(s,(function(){n[a]=void 0}))),u?W(e,[a,$(n[a],u)]):n[a]})),e.provide("getSubject",(function(e){return n[e]})),e.provide("privateSubject",{})}(l,p&&p.subject),_r(l),br(l),cr(l),function(e){var t=ie(),r=ln(t);t&&(t.onchange=function(){r=ln(t)}),e.on("report",(function(e){return n(n({},e),{extra:n(n({},e.extra||{}),{network_type:r})})}))}(l),wr(l);var f=K(l,be,(function(e,t,n){return we(e,t)((function(){var e=r(n),t=e[0],o=e.slice(1);l[t].apply(l,i([],r(o),!1))}))}));return function(e,t){e.on("init",(function(){var n=[],r=function(r){r.forEach((function(r){var i=r.name;w(n,i)||(n.push(i),r.setup(e),t&&t(i,r.setup),e.destroyAgent.set(i,i,[function(){n=S(n,i),r.tearDown&&r.tearDown()}]))}))};e.provide("applyIntegrations",r);var i=e.config();i&&i.integrations&&r(i.integrations)}))}(f,Un),f},kr=((or={})[$t]=function(e){e.on("init",(function(){var t,i=null===(t=e.config())||void 0===t?void 0:t.plugins[$t];!function(e,t){var i,o=Ae(t,Vt);if(o&&Z()){var a=o.routeMode,s=o.apdex,c=e.report.bind(e),l=u;if(s){var p=[],f=r(Ut(e.report.bind(e),p,[F(e,Et),F(e,At)],o),4),h=f[0],d=f[1],g=f[2],m=f[3];c=g,l=h,e.on("send",d),p.push((function(){return e.off("send",d)})),e.on("start",(function(){m(e.config().apdex)})),V(e,$t,qe,p)}var v=[],_=r(Bt(c,v,jt(a)?[]:[e.initSubject(Tt),e.initSubject(Ct)],n(n({},o),{initPid:null===(i=e.config())||void 0===i?void 0:i.pid,onPidUpdate:function(t){var n=Rt(t);l(t,n),e.set({pid:t,viewId:n,actionId:void 0})}})),1)[0];W(e,[de,ge(e)],-1);var y=function(){_(e.config().pid)};e.on("config",y),v.push((function(){return e.off("config",y)})),V(e,$t,Ve,v),e.provide("sendPageview",_)}}(e,i)}))},or[at]=function(e){e.on("init",(function(){var t=ot(e,at,st);if(t){var r=[],i=n(n({},t),{setContextAtReq:function(){return pe(e,!0)},setTraceHeader:Ze(t.trace)}),o=function(){return F(e,$e)};i.autoWrap&&rt(r,[F(e,[De,Ie(XMLHttpRequest&&XMLHttpRequest.prototype)]),o],i),V(e,at,Ke,r),e.provide("wrapXhr",(function(e){function t(){var t=new e;return rt(r,[U(Ie(t)),o],i),t}return t.prototype=new e,["DONE","HEADERS_RECIEVED","LOADING","OPENED","UNSENT"].forEach((function(n){t[n]=e[n]})),t}))}}))},or[mt]=function(e){e.on("init",(function(){var t=ot(e,mt,vt);if(t){var r=[],i=n(n({},t),{setContextAtReq:function(){return pe(e,!0)},setTraceHeader:Ze(t.trace)}),o=function(){return F(e,$e)};i.autoWrap&&ct(r,[F(e,Ne),o],i),V(e,mt,Ke,r),e.provide("wrapFetch",(function(e){var t=void 0;return ct(r,[U((function(n){t=ze(e,n)})),o],i),t}))}}))},or[nn]=function(e){e.on("init",(function(){ot(e,nn,{})&&function(e){var t=[];tn(pe(e),t,[F(e,[De,Ie(XMLHttpRequest&&XMLHttpRequest.prototype)]),F(e,Ne),F(e,Ue),F(e,$e),W(e,[fe,he(e)])],e.pp),V(e,nn,We,t)}(e)}))},or[sn]=function(e){e.on("init",(function(){var t=ot(e,sn,cn);t&&function(e,t){void 0===t&&(t=cn);var n=[];"SSR"===t.renderType?Yt(Jt,sn,pe(e),n,[F(e,Ot),function(){return F(e,Et)},function(){return F(e,At)}]):an(pe(e),n,[F(e,xt),W(e,[fe,he(e)])]),V(e,sn,We,n)}(e,t)}))},or),xr=function(e){void 0===e&&(e={});var t=Er(e);return function(e){e.on("start",(function(){var t=e.config(),n=t.userId,r=t.sample,i=gn(n,r,I,z,[function(){e.destroy()},function(t){e.destroyAgent.removeByEvType(t)}]);e.on("build",i)}))}(t),gr(t),un(t),Object.keys(kr).forEach((function(e){Un(e,kr[e]),kr[e](t)})),Mn(t),t.provide("create",xr),t},Ar="precollect",Or=3e5;var Tr=xr(),Cr=Y();Cr&&function(e,t){if("addEventListener"in e){t.pcErr=function(n){var r=(n=n||e.event).target||n.srcElement||{};r instanceof Element||r instanceof HTMLElement?t(Ar,"st",{tagName:r.tagName,url:r.getAttribute("href")||r.getAttribute("src")}):t(Ar,"err",n.error)},t.pcRej=function(n){n=n||e.event,t(Ar,"reject",n.reason||n.detail&&n.detail.reason)};var n=[];n.push(Se(e,"error",t.pcErr,!0)),n.push(Se(e,"unhandledrejection",t.pcRej,!0)),setTimeout((function(){n.forEach((function(e){return e()}))}),Or)}"PerformanceObserver"in e&&"PerformanceLongTaskTiming"in e&&(t.pp={entries:[]},t.pp.observer=new PerformanceObserver((function(e){t.pp.entries=t.pp.entries.concat(e.getEntries())})),t.pp.observer.observe({entryTypes:["longtask"]}),setTimeout((function(){t.pp.observer.disconnect()}),Or))}(Cr,Tr),t.kT=xr},94615:(e,t,n)=>{"use strict";n.d(t,{default:()=>Y});var r={};n.r(r),n.d(r,{loadCookieBanner:()=>H,setDisabled:()=>J,updateBannerLocale:()=>F});var i=n(65485),o=n.n(i);const a=345918,s="default",c=1988,u="https://www.tiktok.com",l=!0,p="en";function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function S(){var e;return e=function*(e){const{rawResponse:t=!1}=e,n=function(e){for(var t=1;t_("cookie_banner_cdn_load_failed",{resource_url:e}),document.body.appendChild(t)}(`${s}${c}`),z)return;z=document.createElement("tiktok-cookie-banner"),z.setAttribute("locale",N),z.setAttribute("user-config-ele-id",U),z.setAttribute("disabled",`${G}`),z.setAttribute("disabled-access-key",`${B}`),z.addEventListener("bannerEvents",(t=>{const{detail:n}=t;if(!n||"string"!=typeof n.type)return;let{type:r,payload:i}=n;Array.isArray(i)||(i=[i]);const o=`on${r.replace(/^\w/,(e=>e.toUpperCase()))}`;"function"==typeof e[o]&&e[o](...i)})),document.body.appendChild(z)}catch(o){console.error(o)}}))).apply(this,arguments)}function F(e){return W.apply(this,arguments)}function W(){return(W=M((function*(e){try{if(!L)return;N=e;const t=yield C({locale:e});if(!t||e!==N)return;let n=document.getElementById(U);n||(n=document.createElement("script"),n.id=U,n.setAttribute("type","application/json"),document.body.appendChild(n)),n.innerHTML=JSON.stringify(I(P({},t),{consentApiDomain:V,customTheme:q})),z&&z.setAttribute("locale",e)}catch(t){console.error(t)}}))).apply(this,arguments)}function J(e,t){_("cookie_banner_set_disabled",{disabled:e?1:0}),G=e,B=t,z&&(z.setAttribute("disabled",`${e}`),z.setAttribute("disabled-access-key",`${t}`))}var Y=r},80680:(e,t,n)=>{"use strict";n.d(t,{JR:()=>h});var r=Object.prototype.toString;function i(e){return"[object Array]"===r.call(e)}function o(e){return"[object Object]"===r.call(e)}function a(e){return"[object String]"===r.call(e)}function s(e){return"[object Function]"===r.call(e)}function c(e){return null==e||""===e}function u(e){return i(e)&&!e.length}var l=function(e,t){if("object"!=typeof e||"object"!=typeof t)return e===t;if(s(e)&&s(t))return e===t||e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!l(e[n],t[n]))return!1}return!0},p=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach((function(e){var r=n[e],i=null==t?void 0:t[e];n[e]=o(r)?Object.assign(Object.assign({},r),i):i||r})),n},f="#{field} is not a #{type} type",h={required:"#{field} is required",type:{ip:f,email:f,url:f,string:f,number:f,array:f,object:f,boolean:f},number:{min:"`#{value}` is not greater than `#{min}`",max:"`#{value}` is not less than `#{max}`",equal:"`#{value}` is not equal to `#{equal}`",range:"`#{value}` is not in range `#{min} ~ #{max}`",positive:"`#{value}` is not a positive number",negative:"`#{value}` is not a negative number"},string:{maxLength:"#{field} cannot be longer than #{maxLength} characters",minLength:"#{field} must be at least #{minLength} characters",length:"#{field} must be exactly #{length} characters",match:"`#{value}` does not match pattern #{pattern}",uppercase:"`#{value}` must be all uppercase",lowercase:"`#{value}` must be all lowercased"},array:{length:"#{field} must be exactly #{length} in length",minLength:"#{field} cannot be less than #{minLength} in length",maxLength:"#{field} cannot be greater than #{maxLength} in length",includes:"#{field} is not includes #{includes}",deepEqual:"#{field} is not deep equal with #{deepEqual}",empty:"#{field} is not an empty array"},object:{deepEqual:"#{field} is not deep equal to expected value",hasKeys:"#{field} does not contain required fields",empty:"#{field} is not an empty object"},boolean:{true:"Expect true but got `#{value}`",false:"Expect false but got `#{value}`"}},d=function(e,t){var n=this;this.getValidateMsg=function(e,t){void 0===t&&(t={});var r=Object.assign(Object.assign({},t),{value:n.obj,field:n.field,type:n.type}),c=function(e,t){for(var n=t.split("."),r=e,i=0;i=e,this.getValidateMsg("string.minLength",{minLength:e})):this},t.prototype.length=function(e){return this.obj?this.validate(this.obj.length===e,this.getValidateMsg("string.length",{length:e})):this},t.prototype.match=function(e){var t=e instanceof RegExp;return t&&(e.lastIndex=0),this.validate(void 0===this.obj||t&&e.test(this.obj),this.getValidateMsg("string.match",{pattern:e}))},n.uppercase.get=function(){return this.obj?this.validate(this.obj.toUpperCase()===this.obj,this.getValidateMsg("string.uppercase")):this},n.lowercase.get=function(){return this.obj?this.validate(this.obj.toLowerCase()===this.obj,this.getValidateMsg("string.lowercase")):this},Object.defineProperties(t.prototype,n),t}(d),v=function(e){function t(t,n){e.call(this,t,Object.assign(Object.assign({},n),{type:"number"})),this.validate(!n||!n.strict||function(e){return"[object Number]"===r.call(e)&&e==e}(this.obj),this.getValidateMsg("type.number"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={positive:{configurable:!0},negative:{configurable:!0}};return t.prototype.min=function(e){return c(this.obj)?this:this.validate(this.obj>=e,this.getValidateMsg("number.min",{min:e}))},t.prototype.max=function(e){return c(this.obj)?this:this.validate(this.obj<=e,this.getValidateMsg("number.max",{max:e}))},t.prototype.equal=function(e){return c(this.obj)?this:this.validate(this.obj===e,this.getValidateMsg("number.equal",{equal:e}))},t.prototype.range=function(e,t){return c(this.obj)?this:this.validate(this.obj>=e&&this.obj<=t,this.getValidateMsg("number.range",{min:e,max:t}))},n.positive.get=function(){return c(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return c(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t}(d),_=function(e){function t(t,n){e.call(this,t,Object.assign(Object.assign({},n),{type:"array"})),this.validate(!n||!n.strict||i(this.obj),this.getValidateMsg("type.array",{value:this.obj,type:this.type}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.length=function(e){return this.obj?this.validate(this.obj.length===e,this.getValidateMsg("array.length",{value:this.obj,length:e})):this},t.prototype.minLength=function(e){return this.obj?this.validate(this.obj.length>=e,this.getValidateMsg("array.minLength",{value:this.obj,minLength:e})):this},t.prototype.maxLength=function(e){return this.obj?this.validate(this.obj.length<=e,this.getValidateMsg("array.maxLength",{value:this.obj,maxLength:e})):this},t.prototype.includes=function(e){var t=this;return this.obj?this.validate(e.every((function(e){return-1!==t.obj.indexOf(e)})),this.getValidateMsg("array.includes",{value:this.obj,includes:e})):this},t.prototype.deepEqual=function(e){return this.obj?this.validate(l(this.obj,e),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:e})):this},n.empty.get=function(){return this.validate(u(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t}(d),y=function(e){function t(t,n){e.call(this,t,Object.assign(Object.assign({},n),{type:"object"})),this.validate(!n||!n.strict||o(this.obj),this.getValidateMsg("type.object"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.deepEqual=function(e){return this.obj?this.validate(l(this.obj,e),this.getValidateMsg("object.deepEqual",{deepEqual:e})):this},t.prototype.hasKeys=function(e){var t=this;return this.obj?this.validate(e.every((function(e){return t.obj[e]})),this.getValidateMsg("object.hasKeys",{keys:e})):this},n.empty.get=function(){return this.validate(o(e=this.obj)&&0===Object.keys(e).length,this.getValidateMsg("object.empty"));var e},Object.defineProperties(t.prototype,n),t}(d),b=function(e){function t(t,n){e.call(this,t,Object.assign(Object.assign({},n),{type:"boolean"})),this.validate(!n||!n.strict||function(e){return"[object Boolean]"===r.call(e)}(this.obj),this.getValidateMsg("type.boolean"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={true:{configurable:!0},false:{configurable:!0}};return n.true.get=function(){return this.validate(!0===this.obj,this.getValidateMsg("boolean.true"))},n.false.get=function(){return this.validate(!1===this.obj,this.getValidateMsg("boolean.false"))},Object.defineProperties(t.prototype,n),t}(d),w=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,S=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),E=/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/,k=function(e){function t(t,n){e.call(this,t,Object.assign(Object.assign({},n),{type:"type"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={email:{configurable:!0},url:{configurable:!0},ip:{configurable:!0}};return n.email.get=function(){return this.type="email",this.validate(void 0===this.obj||w.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(void 0===this.obj||S.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(void 0===this.obj||E.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t}(d),x=function(e){function t(t,n){e.call(this,t,Object.assign(Object.assign({},n),{type:"custom"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={validate:{configurable:!0}};return n.validate.get=function(){var e=this;return function(t,n){var r;if(t)return(r=t(e.obj,e.addError.bind(e)))&&r.then?(n&&r.then((function(){n&&n(e.error)}),(function(e){console.error(e)})),[r,e]):(n&&n(e.error),e.error)}},Object.defineProperties(t.prototype,n),t}(d),A=function(e,t){return new O(e,Object.assign({field:"value"},t))};A.globalConfig={},A.setGlobalConfig=function(e){A.globalConfig=e||{}};var O=function(e,t){var n=A.globalConfig,r=Object.assign(Object.assign(Object.assign({},n),t),{validateMessages:p(n.validateMessages,t.validateMessages)});this.string=new m(e,r),this.number=new v(e,r),this.array=new _(e,r),this.object=new y(e,r),this.boolean=new b(e,r),this.type=new k(e,r),this.custom=new x(e,r)},T=function(e,t){void 0===t&&(t={}),this.schema=e,this.options=t};T.prototype.messages=function(e){this.options=Object.assign(Object.assign({},this.options),{validateMessages:p(this.options.validateMessages,e)})},T.prototype.validate=function(e,t){var n=this;if(o(e)){var r=[],a=null;this.schema&&Object.keys(this.schema).forEach((function(t){if(i(n.schema[t]))for(var o=function(i){var o=n.schema[t][i],c=o.type,u=o.message;if(!c&&!o.validator)throw"You must specify a type to field "+t+"!";var l=Object.assign(Object.assign({},n.options),{message:u,field:t});"ignoreEmptyString"in o&&(l.ignoreEmptyString=o.ignoreEmptyString),"strict"in o&&(l.strict=o.strict);var p=new O(e[t],l),f=p.type[c]||null;if(!f){if(o.validator)return f=p.custom.validate(o.validator),void("[object Array]"===Object.prototype.toString.call(f)&&f[0].then?r.push({function:f[0],_this:f[1],key:t}):f&&s(t,f));f=p[c]}if(Object.keys(o).forEach((function(e){o.required&&(f=f.isRequired),"message"!==e&&f[e]&&o[e]&&"object"==typeof f[e]&&(f=f[e]),f[e]&&void 0!==o[e]&&"function"==typeof f[e]&&(f=f[e](o[e]))})),f.collect((function(e){e&&s(t,e)})),a)return"break"},c=0;c0?Promise.all(r.map((function(e){return e.function}))).then((function(){r.forEach((function(e){e._this.error&&s(e.key,e._this.error)})),t&&t(a)})):t&&t(a)}function s(e,t){a||(a={}),a[e]&&!t.requiredError||(a[e]=t)}}},78495:(e,t,n)=>{"use strict";var r=n(62614),i=n(75541),o=n(27927),a=n(91754),s=n(76899),c=n(10520);var u=n(59648),l=n(63159),p=n(4674),f=n.n(p);var h=n(96212),d=n(2062),g=n(92443),m=n(25633),v=n(11855);const _={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class y{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{let[t,r]=e;for(let i=0;i{let[r,i]=t;for(let o=0;o{e=n,t=r}));return n.resolve=e,n.reject=t,n}function E(e){return null==e?"":""+e}const k=/###/g;function x(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(k,"."):e}function i(){return!e||"string"==typeof e}const o="string"!=typeof t?t:t.split(".");let a=0;for(;a":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>R[e])):e}const M=[" ",",","?","!",";"],j=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&a0?e.replace("_","-"):e}class z extends w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&i?a.push(...n.split(i)):a.push(n)));const s=O(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),s||!o||"string"!=typeof n?s:P(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),A(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=O(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?T(s,n,i):s={...s,...n},A(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var N={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const L={};class G extends w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=b.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=M.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=j.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],c=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const l=this.resolve(e,t);let p=l&&l.res;const f=l&&l.usedKey||o,h=l&&l.exactUsedKey||o,d=Object.prototype.toString.apply(p),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&p&&("string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(d)<0&&("string"!=typeof g||"[object Array]"!==d)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,p,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(l.res=e,l.usedParams=this.getUsedParamsDetails(t),l):e}if(i){const e="[object Array]"===d,n=e?[]:{},r=e?h:f;for(const o in p)if(Object.prototype.hasOwnProperty.call(p,o)){const e=`${r}${i}${o}`;n[o]=this.translate(e,{...t,joinArrays:!1,ns:a}),n[o]===e&&(n[o]=p[o])}p=n}}else if(m&&"string"==typeof g&&"[object Array]"===d)p=p.join(g),p&&(p=this.extendTranslation(p,e,t,n));else{let r=!1,a=!1;const u=void 0!==t.count&&"string"!=typeof t.count,f=G.hasDefaultValue(t),h=u?this.pluralResolver.getSuffix(c,t.count,t):"",d=t.ordinal&&u?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",g=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${h}`]||t[`defaultValue${d}`]||t.defaultValue;!this.isValidLookup(p)&&f&&(r=!0,p=m),this.isValidLookup(p)||(a=!0,p=o);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:p,_=f&&m!==p&&this.options.updateMissing;if(a||r||_){if(this.logger.log(_?"updateKey":"missingKey",c,s,o,_?m:p),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{const i=f&&r!==p?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,_,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,_,t),this.emit("missingKey",e,s,n,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],o+n,t[`defaultValue${n}`]||m)}))})):r(e,o,m))}p=this.extendTranslation(p,e,t,l,n),a&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?p:void 0):this.options.parseMissingKeyHandler(p))}return r?(l.res=p,l.usedParams=this.getUsedParamsDetails(t),l):p}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),c=s.key;n=c;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const l=void 0!==a.count&&"string"!=typeof a.count,p=l&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach((e=>{this.isValidLookup(t)||(o=e,!L[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(L[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((n=>{if(this.isValidLookup(t))return;i=n;const o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,n,e,a);else{let e;l&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(o.push(c+e),a.ordinal&&0===e.indexOf(r)&&o.push(c+e.replace(r,this.options.pluralSeparator)),p&&o.push(c+t)),f){const n=`${c}${this.options.contextSeparator}${a.context}`;o.push(n),l&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),p&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function B(e){return e.charAt(0).toUpperCase()+e.slice(1)}class U{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=b.create("languageUtils")}getScriptPartFromCode(e){if(!(e=I(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=I(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=B(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=B(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=B(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let $=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],V={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const q=["v1","v2","v3"],H=["v4"],K={zero:0,one:1,two:2,few:3,many:4,other:5};class F{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=b.create("pluralResolver"),this.options.compatibilityJSON&&!H.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return $.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:V[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(I("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>K[e]-K[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!q.includes(this.options.compatibilityJSON)}}function W(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){const r=O(e,n);return void 0!==r?r:O(t,n)}(e,t,n);return!o&&i&&"string"==typeof n&&(o=P(e,n,r),void 0===o&&(o=P(t,n,r))),o}class J{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=b.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:D,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?C(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?C(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?C(t.nestingPrefix):t.nestingPrefixEscaped||C("$t("),this.nestingSuffix=t.nestingSuffix?C(t.nestingSuffix):t.nestingSuffixEscaped||C(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}const u=e=>{if(e.indexOf(this.formatSeparator)<0){const i=W(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(W(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=u(n),void 0===o)if("function"==typeof l){const t=l(e,i,r);o="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(p){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=E(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),p?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(He){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,He),`${e}${n}${o}`}return delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,c=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=E(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=s.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function Y(e){const t={};return function(n,r,i){const o=r+JSON.stringify(i);let a=t[o];return a||(a=e(I(r),i),t[o]=a),a(n)}}class X{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=b.create("formatter"),this.options=e,this.formats={number:Y(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:Y(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:Y(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:Y(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:Y(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Y(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=i),"false"===i&&(n[t.trim()]=!1),"true"===i&&(n[t.trim()]=!0),isNaN(i)||(n[t.trim()]=parseInt(i,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${i}`),e}),e);return i}}class Z extends w{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=b.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:i,k:o}=x(e,t,Object);i[o]=i[o]||[],r&&(i[o]=i[o].concat(n)),r||i[o].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(c){a(c)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const c={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let i;i=5===u.length?u(e,t,n,r,c):u(e,t,n,r),i&&"function"==typeof i.then?i.then((e=>a(null,e))).catch(a):a(null,i)}catch(s){a(s)}else u(e,t,n,r,a,c)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function Q(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ee(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function te(){}class ne extends w{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=ee(e),this.services={},this.logger=b,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Q();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...ee(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?b.init(i(this.modules.logger),this.options):b.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=X);const n=new U(this.options);this.store=new z(this.options.resources,this.options);const o=this.services;o.logger=b,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new F(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new J(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new Z(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=te),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const o=S(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=S();return e||(e=this.languages),t||(t=this.options.ns),n||(n=te),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&N.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=S();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),c=2;c`${o.keyPrefix}${u}${e}`)):o.keyPrefix?`${o.keyPrefix}${u}${e}`:e,r.t(l,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=S();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=S();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0));return i.length?(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new U(Q());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new ne(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new z(this.store.data,r),i.services.resourceStore=i.store),i.translator=new G(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=300||!o)return function(e,t,n,r){var i=(r||{}).message||"";i=i?", reason is: ".concat(i):"",t(new $e("Request failed with status code "+e.status+i,n,null,e,{data:{}},!0))}(i,r,e,n),void(i=null);var a={data:o,status:i.status,statusText:i.statusText,request:i};t(a),i=null}},i.onerror=function(){r(new $e("Network Error",e,null,i,{data:{}},!0)),i=null},i.timeout=n,i.ontimeout=function(){r(new $e("timeout of "+n+"ms exceeded",e,"ECONNABORTED",i,{data:{}},!0)),i=null},i.send()}))}var qe=function(e){function t(t){return t.store||(t.store=Ue),t.request||(t.request=Ve),e.call(this,t)||this}return ye(t,e),t}(Be),He=function(){return(He=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Fe(){for(var e=[],t=0;t-1&&(t=e.slice(0,e.indexOf("Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),r=n.indexOf(";");t=n.slice(0,r)}}catch(e){return t.trim()}return t.trim()},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),pt={sg:"1fz22z22z1nz21z4mz4bz4bz21z1ez18z1jz1gz49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz18z1jz1gz24z18z49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k"},ft={va:"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",in:"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},ht={sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z21z1ez4az22z1gz1iz22z1mz1iz24z4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k",in:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z49z23z21z1cz18z21z22z4ez18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k",ie2:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4ez4az22z1gz1iz22z1mz1iz25z4az1cz23"},dt={sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1gz1iz22z1mz1iz25z4az23z21",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1gz1iz22z1mz1iz24z4az23z21",ie:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4az22z1gz1iz22z1mz1iz25z4az1cz23",ie2:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4ez4az22z1gz1iz22z1mz1iz25z4az1cz23"};!function(e){e.Init="init",e.Config="config",e.Start="start",e.Ready="ready",e.TokenComplete="token-complete",e.TokenStorage="token-storage",e.TokenFetch="token-fetch",e.TokenError="token-error",e.ConfigUuid="config-uuid",e.ConfigWebId="config-webid",e.ConfigDomain="config-domain",e.CustomWebId="custom-webid",e.TokenChange="token-change",e.TokenReset="token-reset",e.ConfigTransform="config-transform",e.EnvTransform="env-transform",e.SessionReset="session-reset",e.SessionResetTime="session-reset-time",e.Event="event",e.Events="events",e.EventNow="event-now",e.CleanEvents="clean-events",e.BeconEvent="becon-event",e.SubmitBefore="submit-before",e.SubmitScuess="submit-scuess",e.SubmitAfter="submit-after",e.SubmitError="submit-error",e.SubmitVerify="submit-verify",e.DestoryInstance="destory-instance",e.Stay="stay",e.ResetStay="reset-stay",e.StayReady="stay-ready",e.SetStay="set-stay",e.RouteChange="route-change",e.RouteReady="route-ready",e.Ab="ab",e.AbVar="ab-var",e.AbAllVars="ab-all-vars",e.AbConfig="ab-config",e.AbExternalVersion="ab-external-version",e.AbVersionChangeOn="ab-version-change-on",e.AbVersionChangeOff="ab-version-change-off",e.AbOpenLayer="ab-open-layer",e.AbCloseLayer="ab-close-layer",e.AbReady="ab-ready",e.AbComplete="ab-complete",e.AbTimeout="ab-timeout",e.Profile="profile",e.ProfileSet="profile-set",e.ProfileSetOnce="profile-set-once",e.ProfileUnset="profile-unset",e.ProfileIncrement="profile-increment",e.ProfileAppend="profile-append",e.ProfileClear="profile-clear",e.Autotrack="autotrack",e.AutotrackReady="autotrack-ready",e.CepReady="cep-ready",e.TracerReady="tracer-ready",e.sessionRecord="session-record",e.SessionRecordStart="session-record-start",e.SessionRecordPause="session-record-pause",e.SessionRecordEnd="session-record-end",e.SessionRecordReport="session-record-report",e.VisualCollectReady="visual-collect-ready",e.VisualApiReady="visual-api-ready",e.VisualApiUpdate="visual-api-update"}(Je||(Je={})),function(e){e.DEBUGGER_MESSAGE="debugger-message",e.DEBUGGER_MESSAGE_SDK="debugger-message-sdk",e.DEBUGGER_MESSAGE_FETCH="debugger-message-fetch",e.DEBUGGER_MESSAGE_FETCH_RESULT="debugger-message-fetch-result",e.DEBUGGER_MESSAGE_EVENT="debugger-message-event",e.DEVTOOL_WEB_READY="devtool-web-ready"}(Ye||(Ye={}));var gt=Je,mt=void 0,vt=(new Date).getTimezoneOffset(),_t=parseInt(""+-vt/60,10),yt=60*vt,bt=function(){function e(e,t){this.is_first_time=!0,this.configPersist=!1,this.initConfig=t,this.collect=e;var n=new lt(t.app_id,t.cookie_domain||"",t.cookie_expire||6048e5).init(),r="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new ut(!1,"session"),this.localStorage=new ut(!1,"local"),this.channelUrl="tcpy"===t.channel_type||"ttp"===t.channel_type?{WEBID_URL:"/v1/user/webid",TOB_URL:"",REPORT_URL:"/v1/list"}:{WEBID_URL:"/webid",TOB_URL:"/tobid",REPORT_URL:"/list"},t.configPersist&&(this.configPersist=!0,this.storage=1===t.configPersist?this.sessionStorage:this.localStorage);var i=this.localStorage.getItem(r);i&&1==i?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(r,"1")),this.envInfo={user:{user_unique_id:mt,user_type:mt,user_id:mt,user_is_auth:mt,user_is_login:mt,device_id:mt,web_id:mt,ip_addr_id:mt,user_unique_id_type:mt},header:{app_id:mt,app_name:mt,app_install_id:mt,install_id:mt,app_package:mt,app_channel:mt,app_version:mt,ab_version:mt,os_name:n.os_name,os_version:n.os_version,device_model:n.device_model,ab_client:mt,traffic_type:mt,client_ip:mt,device_brand:mt,os_api:mt,access:mt,language:n.language,region:mt,app_language:mt,app_region:mt,creative_id:n.utm.creative_id,ad_id:n.utm.ad_id,campaign_id:n.utm.campaign_id,log_type:mt,rnd:mt,platform:n.platform,sdk_version:"5.2.3_oversea",sdk_lib:"js",province:mt,city:mt,timezone:_t,tz_offset:yt,tz_name:mt,sim_region:mt,carrier:mt,resolution:n.screen_width+"x"+n.screen_height,browser:n.browser,browser_version:n.browser_version,referrer:n.referrer,referrer_host:n.referrer_host,width:n.screen_width,height:n.screen_height,screen_width:n.screen_width,screen_height:n.screen_height,utm_term:n.utm.utm_term,utm_content:n.utm.utm_content,utm_source:n.utm.utm_source,utm_medium:n.utm.utm_medium,utm_campaign:n.utm.utm_campaign,tracer_data:JSON.stringify(n.utm.tracer_data),custom:{}}},this.ab_version="",this.ab_uuid_cache={},this.evtParams={},this.reportErrorCallback=function(){},this.isLast=!1,this.setCustom(n),this.initDomain(),this.initABData()}return e.prototype.initDomain=function(e){var t=this.initConfig.channel_domain;if(t)this.domain=t;else{var n=e||this.initConfig.channel,r=this.initConfig&&this.initConfig.channel_type?"tcpy"===this.initConfig.channel_type?ht[n]:dt[n]:pt[n];r||(console.warn("current channel: "+n+" is not exist, use va instead, please check!!!!"),r=pt.sg),this.domain=et(r)}},e.prototype.setDomain=function(e){this.customDomain=!0,this.domain=e},e.prototype.getDomain=function(e){return this.customDomain||e&&this.initDomain(e),this.domain},e.prototype.initABData=function(){var e,t="__tea_sdk_ab_version_"+this.initConfig.app_id;e=this.localStorage.getItem(t),this.setAbCache(e)},e.prototype.setAbCache=function(e){this.ab_cache=e},e.prototype.getAbCache=function(){return this.ab_cache},e.prototype.clearAbCache=function(){this.ab_cache={},this.ab_version=""},e.prototype.setAbVersion=function(e){this.ab_version=e},e.prototype.getAbVersion=function(){return this.ab_version},e.prototype.setAbUuidCache=function(e,t){var n=t||this.envInfo.user.user_unique_id;this.ab_uuid_cache[""+n]||(this.ab_uuid_cache[""+n]=[]),-1===this.ab_uuid_cache[""+n].indexOf(e)&&this.ab_uuid_cache[""+n].push(e)},e.prototype.getAbUuidCache=function(e){return this.ab_uuid_cache[""+e]},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.channelUrl.REPORT_URL;break;case"webid":t=this.channelUrl.WEBID_URL;break;case"tobid":t=this.channelUrl.TOB_URL}var n="";return this.initConfig.caller&&(n="?sdk_version=5.2.3_oversea&sdk_name=web&app_id="+this.initConfig.app_id+"&caller="+this.initConfig.caller),""+this.getDomain()+t+n},e.prototype.setCustom=function(e){if(e&&e.latest_data&&e.latest_data.isLast)for(var t in delete e.latest_data.isLast,this.isLast=!0,e.latest_data)this.envInfo.header.custom[t]=e.latest_data[t]},e.prototype.setAppid=function(e){this.envInfo.header.app_id=e},e.prototype.set=function(e){var t=this;Object.keys(e).forEach((function(n){if(void 0!==e[n]&&null!==e[n]||t.delete(n),"traffic_type"===n&&t.isLast&&(t.envInfo.header.custom.$latest_traffic_source_type=e[n]),"evtParams"===n)t.evtParams=He(He({},t.evtParams||{}),e.evtParams||{});else if("_staging_flag"===n)t.evtParams=He(He({},t.evtParams||{}),{_staging_flag:e._staging_flag});else if("reportErrorCallback"===n&&"function"==typeof e[n])t.reportErrorCallback=e[n];else{var r="",i="";if(n.indexOf(".")>-1){var o=n.split(".");r=o[0],i=o[1]}r?"user"===r||"header"===r?t.envInfo[r][i]=e[n]:t.envInfo.header.custom[i]=e[n]:Object.hasOwnProperty.call(t.envInfo.user,n)?["user_type","ip_addr_id"].indexOf(n)>-1?t.envInfo.user[n]=e[n]?Number(e[n]):e[n]:["user_id","web_id","user_unique_id","user_unique_id_type"].indexOf(n)>-1?t.envInfo.user[n]=e[n]?String(e[n]):e[n]:["user_is_auth","user_is_login"].indexOf(n)>-1?t.envInfo.user[n]=Boolean(e[n]):"device_id"===n&&(t.envInfo.user[n]=e[n]):Object.hasOwnProperty.call(t.envInfo.header,n)?t.envInfo.header[n]=e[n]:t.envInfo.header.custom[n]=e[n]}}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(JSON.stringify(this.envInfo[e])):JSON.parse(JSON.stringify(this.envInfo))}catch(e){console.log("get config stringify error "),this.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e.prototype.setStore=function(e){try{if(!this.configPersist)return;var t=this.storage.getItem(this.configKey)||{};if(t&&Object.keys(e).length){var n=Object.assign(e,t);this.storage.setItem(this.configKey,n)}}catch(e){console.log("setStore error"),this.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e.prototype.getStore=function(){try{if(!this.configPersist)return null;var e=this.storage.getItem(this.configKey)||{};return e&&Object.keys(e).length?e:null}catch(e){return this.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),null}},e.prototype.delete=function(e){try{if(!this.configPersist)return;var t=this.storage.getItem(this.configKey)||{};t&&Object.hasOwnProperty.call(t,e)&&(delete t[e],this.storage.setItem(this.configKey,t))}catch(e){this.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),console.log("delete error")}},e}(),wt=function(){function e(e,t){this.isLog=t||!1,this.name=e||""}return e.prototype.info=function(e){this.isLog&&console.log("%c %s","color: yellow; background-color: black;","[Tea instance: "+this.name+"] "+e)},e.prototype.warn=function(e){this.isLog&&console.warn("%c %s","color: #4D1B00; background-color: #FF7D00;","[Tea instance: "+this.name+"] "+e)},e.prototype.error=function(e){this.isLog&&console.error("%c %s","color: #FFF; background-color: #F53F3F;","[Tea instance: "+this.name+"] "+e)},e.prototype.throw=function(e){throw this.error(this.name),new Error(e)},e}(),St=function(){function e(){this.spiderBot=["Baiduspider","googlebot","360Spider","haosouspider","YoudaoBot","Yisouspider","Googlebot","Headless","Applebot","Bingbot","PetalBot"]}return e.prototype.checkSpider=function(e){if(!e.enable_spider)return!1;var t=window.navigator.userAgent;if(!t)return!0;var n=!1;return this.spiderBot.forEach((function(e){-1!==t.indexOf(e)&&(n=!0)})),n},e}(),Et=function(){function e(e,t){this.collect=e,this.native=t}var t=e.prototype;return t.bridgeInject=function(){try{return!!this.native&&(AppLogBridge?(console.log("AppLogBridge is injected"),!0):(console.log("AppLogBridge is not inject"),!1))}catch(e){return console.log("AppLogBridge is not inject"),!1}},t.bridgeReady=function(){var e=this;return new Promise((function(t,n){try{e.bridgeInject()?AppLogBridge.hasStarted((function(e){console.log("AppLogBridge is started? : "+e),e?t(!0):n(!1)})):n(!1)}catch(e){console.log("AppLogBridge, error:"+JSON.stringify(e.stack)),n(!1)}}))},t.setNativeAppId=function(e){try{AppLogBridge.setNativeAppId(JSON.stringify(e)),console.log("change bridge appid, event report with appid: "+e)}catch(e){console.error("setNativeAppId error")}},t.setConfig=function(e){var t=this;try{Object.keys(e).forEach((function(n){"user_unique_id"===n?t.setUserUniqueId(e[n]):e[n]?t.addHeaderInfo(n,e[n]):t.removeHeaderInfo(n)}))}catch(e){console.error("setConfig error")}},t.setUserUniqueId=function(e){try{AppLogBridge.setUserUniqueId(e)}catch(e){console.error("setUserUniqueId error")}},t.addHeaderInfo=function(e,t){try{AppLogBridge.addHeaderInfo(e,t)}catch(e){console.error("addHeaderInfo error")}},t.setHeaderInfo=function(e){try{AppLogBridge.setHeaderInfo(JSON.stringify(e))}catch(e){console.error("setHeaderInfo error")}},t.removeHeaderInfo=function(e){try{AppLogBridge.removeHeaderInfo(e)}catch(e){console.error("removeHeaderInfo error")}},t.reportPv=function(e){this.onEventV3("predefine_pageview",e)},t.onEventV3=function(e,t){try{AppLogBridge.onEventV3(e,t),this.collect.emit(DebuggerMesssge.DEBUGGER_MESSAGE,{type:DebuggerMesssge.DEBUGGER_MESSAGE_EVENT,info:"bridge\u57cb\u70b9\u4e0a\u62a5",time:Date.now(),data:[{events:[{event:e,params:t}]}],code:200,status:"success"})}catch(e){console.error("onEventV3 error")}},t.profileSet=function(e){try{AppLogBridge.profileSet(e)}catch(e){console.error("profileSet error")}},t.profileSetOnce=function(e){try{AppLogBridge.profileSetOnce(e)}catch(e){console.error("profileSetOnce error")}},t.profileIncrement=function(e){try{AppLogBridge.profileIncrement(e)}catch(e){console.error("profileIncrement error")}},t.profileUnset=function(e){try{AppLogBridge.profileUnset(e)}catch(e){console.error("profileUnset error")}},t.profileAppend=function(e){try{AppLogBridge.profileAppend(e)}catch(e){console.error("profileAppend error")}},e}(),kt=function(){function e(){this.eventLimit=50,this.enable_ttwebid=!1,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var n=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new ut(!0),this.localStorage=new ut(!1),this.maxReport=t.max_report||10,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.enable_ttwebid=t.enable_ttwebid,this.reportUrl=t.report_url||this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.abKey="__tea_sdk_ab_version_"+this.configManager.get("app_id"),this.refer_key="__tea_cache_refer_"+this.configManager.get("app_id"),this.collect.on(gt.Ready,(function(){n.reportAll(!1)})),this.collect.on(gt.ConfigDomain,(function(){n.reportUrl=n.configManager.getUrl("event")})),this.collect.on(gt.Event,(function(e){n.event(e)})),this.collect.on(gt.BeconEvent,(function(e){n.beconEvent(e)})),this.collect.on(gt.CleanEvents,(function(){n.reportAll(!1)})),this.linster()},e.prototype.linster=function(){var e,t=this;window.addEventListener("unload",(function(){t.reportAll(!0)}),!1),e=function(){t.reportAll(!0)},navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var n=Fe(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,n),this.reportTimeout&&clearTimeout(this.reportTimeout),n.length>=this.maxReport)this.report(!1);else{var r=this.reportTime;this.reportTimeout=setTimeout((function(){t.report(!1),t.reportTimeout=null}),r)}}catch(e){this.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e.prototype.beconEvent=function(e){var t=Fe(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroy||this.collect.sdkStop||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){if(!this.collect.destroy&&!this.collect.sdkStop&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))}},e.prototype.report=function(e){if(!this.collect.destroy&&!this.collect.sdkStop&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var n=0;n>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}().replace(/-/g,"").slice(0,19)},At=function(){function e(){this.cacheToken={},this.enableCookie=!1,this.enable_ttwebid=!1,this.enableCustomWebid=!1}return e.prototype.apply=function(e,t){var n=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new ut(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.enable_ttwebid=t.enable_ttwebid,this.enableCustomWebid=t.enable_custom_webid,this.collect.on(gt.ConfigUuid,(function(e){n.setUuid(e)})),this.collect.on(gt.ConfigWebId,(function(e){n.setWebId(e)})),this.enableCookie=t.cross_subdomain,this.expiresTime=t.cookie_expire||6048e5,this.cookieDomain=t.cookie_domain||"",this.checkStorage()},e.prototype.checkStorage=function(){var e=this;this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.tokenType=this.cacheToken&&this.cacheToken._type_?this.cacheToken._type_:"default","custom"!==this.tokenType||this.enableCustomWebid?this.enableCustomWebid?this.collect.on(gt.CustomWebId,(function(){e.tokenReady=!0,e.collect.emit(gt.TokenComplete)})):this.checkEnv()||(this.enable_ttwebid?this.completeTtWid(this.cacheToken):this.check()):this.remoteWebid()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.config.disable_webid?this.complete({web_id:xt(),user_unique_id:this.configManager.get("user_unique_id")||xt()}):this.remoteWebid()},e.prototype.checkEnv=function(){var e=window.navigator.userAgent;if(-1!==e.indexOf("miniProgram")||-1!==e.indexOf("MiniProgram")){var t=nt(window.location.href);return!(!t||!t.Web_ID||(this.complete({web_id:""+t.Web_ID,user_unique_id:this.configManager.get("user_unique_id")||""+t.Web_ID}),0))}return!1},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),n={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""};this.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"SDK \u53d1\u8d77WEBID\u8bf7\u6c42",logType:"fetch",level:"info",time:Date.now(),data:n});var r=xt();this.collect.requestManager.useRequest({url:t,data:n,success:function(t){var n;t&&0===t.e?(n=t.web_id,e.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"WEBID\u8bf7\u6c42\u6210\u529f",logType:"fetch",level:"info",time:Date.now(),data:t})):(n=r,e.collect.configManager.set({localWebId:r}),e.collect.emit(gt.TokenError),e.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"WEBID\u8bf7\u6c42\u8fd4\u56de\u503c\u5f02\u5e38",logType:"fetch",level:"warn",time:Date.now(),data:t}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n})},fail:function(){e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r}),e.collect.configManager.set({localWebId:r}),e.collect.emit(gt.TokenError),e.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"WEBID\u8bf7\u6c42\u7f51\u7edc\u5f02\u5e38",logType:"fetch",level:"error",time:Date.now(),data:null}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")},timeout:3e5})},e.prototype.complete=function(e){var t=e.web_id,n=e.user_unique_id;e.timestamp=Date.now(),this.collect.configManager.set({web_id:t,user_unique_id:n}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(gt.TokenComplete)},e.prototype.completeTtWid=function(e){var t=e.user_unique_id||"",n=this.configManager.get("user_unique_id");(n||t)&&this.configManager.set({user_unique_id:n||t}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(gt.TokenComplete)},e.prototype.setUuid=function(e){if(e&&-1===["null","undefined","Null","None"].indexOf(e)){var t=String(e),n=this.configManager.get("user_unique_id"),r=this.cacheToken&&this.cacheToken.user_unique_id;if(t===n&&t===r)return;this.configManager.set({user_unique_id:t}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=t,this.cacheToken.timestamp=Date.now(),this.setStorage(this.cacheToken),this.collect.emit(gt.TokenChange,"uuid"),this.collect.emit(gt.SessionReset)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=Date.now(),this.setStorage(this.cacheToken)),this.collect.emit(gt.TokenReset))},e.prototype.setWebId=function(e){if(e&&!this.config.enable_ttwebid){this.cacheToken&&this.cacheToken.web_id?this.cacheToken.web_id!==e&&(this.cacheToken.user_unique_id=this.cacheToken.web_id===this.cacheToken.user_unique_id?e:this.cacheToken.user_unique_id,this.cacheToken.web_id=e):(this.cacheToken={},this.cacheToken.web_id=e,this.cacheToken.user_unique_id=e),this.cacheToken.timestamp=Date.now();var t=this.configManager.get("web_id"),n=this.configManager.get("user_unique_id");n&&n!==t||(this.configManager.set({user_unique_id:e}),this.collect.emit(gt.TokenChange,"uuid")),t!==e&&(this.configManager.set({web_id:e}),this.collect.emit(gt.TokenChange,"webid")),this.setStorage(this.cacheToken)}},e.prototype.setStorage=function(e){e._type_=this.enableCustomWebid?"custom":"default",delete e["diss".split("").reverse().join("")],this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e.prototype.getTobId=function(){var e=this;return new Promise((function(t){"tcpy"!==e.config.channel_type&&"ttp"!==e.config.channel_type?e.collect.requestManager.useRequest({url:e.configManager.getUrl("tobid"),data:{app_id:e.config.app_id,user_unique_id:e.configManager.get("user_unique_id"),web_id:e.configManager.get("web_id"),user_unique_id_type:e.configManager.get("user_unique_id_type")},success:function(e){e&&0===e.e?t(e.tobid):t("")},fail:function(){t("")},time:3e4,withCredentials:e.enable_ttwebid}):t("")}))},e}(),Ot=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},Tt=function(){function e(){}return e.prototype.apply=function(e,t){var n=this;this.collect=e,this.storage=new ut(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSessionTimeCheck=t.disable_session_check,this.disableSession||(this.setSessionId(),this.collect.on(gt.SessionReset,(function(e){n.resetSessionId(e)})),this.collect.on(gt.SessionResetTime,(function(){n.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;Date.now()-t>this.expireTime?e={sessionId:Ot(),timestamp:Date.now()}:e.timestamp=Date.now(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=Date.now():t={sessionId:Ot(),timestamp:Date.now()},this.storage.setItem(this.sessionKey,t),this.disableSessionTimeCheck||(this.sessionExp=setInterval((function(){e.checkEXp()}),this.expireTime))},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=setInterval((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(e){var t={sessionId:e||Ot(),timestamp:Date.now()};this.storage.setItem(this.sessionKey,t)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&Date.now()-e.timestamp+30>=this.expireTime&&(e={sessionId:Ot(),timestamp:Date.now()},this.storage.setItem(this.sessionKey,e))},e}(),Ct=function(){function e(e,t){this.collector=e,this.config=t,this.requestType=t.request_type||"xhr",this.supportBeacon=!(!window.navigator||!window.navigator.sendBeacon),this.errorCode={NO_URL:4001,IMG_ON:4e3,IMG_CATCH:4002,BEACON_FALSE:4003,XHR_ON:500,RESPONSE:5001,TIMEOUT:5005},this.customHeader=t.custom_request_header||{}}return e.prototype.useFetch=function(e){var t=e.url,n=e.data,r=e.method,i=e.success,o=e.fail,a={"Content-Type":"application/json; charset=utf-8"};if(Object.keys(this.customHeader).length)for(var s in this.customHeader)a[s]=this.customHeader[s];window.fetch?fetch(t,{method:r||"POST",headers:a,body:JSON.stringify(n)}).then((function(e){return e.json()})).then((function(e){i&&i(e)})).catch((function(e){o&&o(n,e)})):(this.requestType="xhr",console.log("your brwoser not support fetch, use xhr"),this.useRequest({url:t,data:n,method:r,success:i,fail:o}))},e.prototype.useBeacon=function(e){var t=e.url,n=e.data,r=e.success,i=e.fail;window.navigator.sendBeacon(t,JSON.stringify(n))?r&&r():i&&i(n,this.errorCode.BEACON_FALSE)},e.prototype.useRequest=function(e){var t=this,n=e.url,r=e.data,i=e.method,o=e.success,a=e.fail,s=e.timeout,c=e.useBeacon,u=e.withCredentials,l=e.app_key,p=e.forceXhr;if(c&&this.supportBeacon)this.useBeacon({url:n,data:r,method:i,success:o,fail:a});else if("fetch"!==this.requestType||p)try{var f=new XMLHttpRequest,h=i||"POST";if(f.open(h,""+n,!0),f.setRequestHeader("Content-Type","application/json; charset=utf-8"),l&&f.setRequestHeader("X-MCS-AppKey",""+l),Object.keys(this.customHeader).length)for(var d in this.customHeader)f.setRequestHeader(d,this.customHeader[d]);u&&(f.withCredentials=!0),s&&(f.timeout=s,f.ontimeout=function(){a&&a(r,t.errorCode.TIMEOUT)}),f.onload=function(){if(o){var e=null;if(f.responseText){try{e=JSON.parse(f.responseText)}catch(t){e={}}o(e,r)}}},f.onerror=function(){f.abort(),a&&a(r,t.errorCode.XHR_ON)},f.send(JSON.stringify(r))}catch(e){}else this.useFetch({url:n,data:r,method:i,success:o,fail:a})},e}(),Rt=function(){function e(e,t){if(this.devToolReady=!1,this.devToolOrigin="*",this.sendAlready=!1,t.enable_debug){this.collect=e,this.config=t,this.app_id=t.app_id;var n=e.adapters.storage;this.cacheStorgae=new n(!1,"session"),this.filterEvent=["__bav_page","__bav_beat","__bav_page_statistics","__bav_click","__bav_page_exposure","bav2b_page","bav2b_beat","bav2b_page_statistics","bav2b_click","bav2b_page_exposure","_be_active","predefine_pageview","__profile_set","__profile_set_once","__profile_increment","__profile_unset","__profile_append","predefine_page_alive","predefine_page_close","abtest_exposure"],this.load()}}return e.prototype.loadScript=function(e){try{var t=document.createElement("script");t.src=e,t.onerror=function(){console.log("load DevTool render fail")},t.onload=function(){console.log("load DevTool render success")},document.getElementsByTagName("body")[0].appendChild(t)}catch(e){console.log("devTool load fail, "+e.message)}},e.prototype.parseUrl=function(){var e={};try{var t=window.location.href.split("?")[1].split("&");t.length&&t.forEach((function(t){var n=t.split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}))}catch(e){}return e},e.prototype.load=function(){try{var e=this.parseUrl();if(e.open_devtool_web&&e.app_id){if(parseInt(e.app_id)!==this.app_id)return}else if(!this.getStorage())return;this.loadBaseInfo(),this.loadHook(),this.setStorage(),this.addLintener(),this.loadDebuggerModule(),this.loadDevTool()}catch(e){console.log("debug fail, "+e.message)}},e.prototype.getStorage=function(){var e=this.cacheStorgae.getItem("__applog_devtool_web");return e&&parseInt(e)===this.app_id},e.prototype.setStorage=function(){this.cacheStorgae.setItem("__applog_devtool_web",this.app_id)},e.prototype.loadDevTool=function(){this.loadScript("https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/devtool/debug-web.js")},e.prototype.loadBaseInfo=function(){var e=this;this.info=[{title:"\u57fa\u672c\u4fe1\u606f",type:1,infoName:{app_id:this.config.app_id,channel:this.config.channel,\u4e0a\u62a5\u57df\u540d:this.collect.configManager.getDomain(),SDK\u7248\u672c:"5.2.3_oversea",SDK\u5f15\u5165\u65b9\u5f0f:"npm"}},{title:"\u7528\u6237\u4fe1\u606f",type:2,infoName:{uuid:this.collect.configManager.get("user").user_unique_id||"",web_id:this.collect.configManager.get("user").web_id||"",ssid:"\u70b9\u51fb\u83b7\u53d6SSID"}},{title:"\u516c\u5171\u53c2\u6570\u4fe1\u606f",type:2,infoName:{\u6d4f\u89c8\u5668:this.collect.configManager.get("browser"),\u6d4f\u89c8\u5668\u7248\u672c:this.collect.configManager.get("browser_version"),\u5e73\u53f0:this.collect.configManager.get("platform"),\u8bbe\u5907\u578b\u53f7:this.collect.configManager.get("device_model"),\u64cd\u4f5c\u7cfb\u7edf:this.collect.configManager.get("os_name"),\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c:this.collect.configManager.get("os_version"),\u5c4f\u5e55\u5206\u8fa8\u7387:this.collect.configManager.get("os_version"),\u6765\u6e90:this.collect.configManager.get("referrer"),\u81ea\u5b9a\u4e49\u4fe1\u606f:""}},{title:"\u914d\u7f6e\u4fe1\u606f",type:3,infoName:{\u5168\u57cb\u70b9:!!this.config.autotrack,\u505c\u7559\u65f6\u957f:!!this.config.enable_stay_duration}},{title:"A/B\u914d\u7f6e\u4fe1\u606f",type:4,infoName:{"A/B\u5b9e\u9a8c":!!this.config.enable_ab_test}},{title:"\u5ba2\u6237\u7aef\u4fe1\u606f",type:3,infoName:{\u6253\u901a\u5f00\u5173:!!this.config.Native}}],this.log=[],this.event=[],this.collect.on(gt.Ready,(function(){e.info[1].infoName.uuid=e.collect.configManager.get("user").user_unique_id,e.info[1].infoName.web_id=e.collect.configManager.get("user").web_id,e.info[2].infoName["\u81ea\u5b9a\u4e49\u4fe1\u606f"]=JSON.stringify(e.collect.configManager.get("custom")),e.config.enable_ab_test&&(e.info[4].infoName["\u5df2\u66dd\u5149VID"]=e.collect.configManager.getAbVersion(),e.info[4].infoName["A/B\u57df\u540d"]=e.config.ab_channel_domain||et(ft[e.config.channel]),e.info[4].infoName["\u5168\u90e8\u914d\u7f6e"]=e.collect.configManager.getAbData()),e.config.Native&&(e.info[5].infoName["\u662f\u5426\u6253\u901a"]=!!e.collect.bridgeReport)}))},e.prototype.loadHook=function(){var e=this;this.collect.on(Ye.DEBUGGER_MESSAGE,(function(t){switch(t.type){case Ye.DEBUGGER_MESSAGE_SDK:var n={time:t.time,type:t.logType||"sdk",level:t.level,name:t.info,show:!0,levelShow:!0,needDesc:!!t.data};return t.data&&(n.desc={content:JSON.stringify(t.data)}),e.updateLog(n),t.secType&&"AB"===t.secType?(e.info[4].infoName["\u5df2\u66dd\u5149VID"]=e.collect.configManager.getAbVersion(),e.info[4].infoName["\u5168\u90e8\u914d\u7f6e"]=e.collect.configManager.getAbData()):"USER"===t.secType&&(e.info[1].infoName.uuid=e.collect.configManager.get("user").user_unique_id,e.info[1].infoName.web_id=e.collect.configManager.get("user").web_id),void e.updateInfo();case Ye.DEBUGGER_MESSAGE_EVENT:if(t.data&&t.data.length){var r=t.data[0],i=r.events;if(!i.length)return;i.forEach((function(n){n.checkShow=!0,n.searchShow=!0,n.success=t.status,n.type=-1!==e.filterEvent.indexOf(n.event)?"sdk":"cus",n.type=e.collect.bridgeReport?"bridge":n.type,n.info="","fail"===t.status&&(n.info={message:"code: "+t.code+"\uff0c msg: "+t.failType})})),e.updateEvent(r)}return}}))},e.prototype.addLintener=function(){var e=this;window.addEventListener("message",(function(t){if(t.origin===location.origin){if(t&&t.data&&"devtool:web:ready"===t.data.type){if(e.devToolOrigin=t.origin,e.devToolReady=!0,e.sendAlready)return;console.log("inittttt"),e.sendData("devtool:web:init",{info:e.info,log:e.log,event:e.event}),e.sendAlready=!0}t&&t.data&&"devtool:web:ssid"===t.data.type&&e.collect.getToken((function(t){e.info[1].infoName.ssid=t.tobid,e.updateInfo()}))}}))},e.prototype.sendData=function(e,t){try{var n={type:e,payload:t};(window.opener||window.parent).postMessage(n,this.devToolOrigin)}catch(e){}},e.prototype.updateInfo=function(){this.devToolReady&&this.sendData("devtool:web:info",this.info)},e.prototype.updateLog=function(e){this.devToolReady?this.sendData("devtool:web:log",e):this.log.push(e)},e.prototype.updateEvent=function(e){this.devToolReady?this.sendData("devtool:web:event",e):this.event.push(e)},e.prototype.loadDebuggerModule=function(){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.appendChild(document.createTextNode("#debugger-applog-web {\n position: absolute;\n width: 90px;\n height: 30px;\n background: #23c243;\n border-radius: 6px;\n color: #fff;\n font-size: 12px;\n bottom: 5%;\n right: 10%;\n text-align: center;\n line-height: 30px;\n cursor: pointer;\n z-index:100;\n }")),e.appendChild(t);var n=document.createElement("div");n.innerHTML='
AppLog\u8c03\u8bd5
';var r=document.createElement("div");r.innerHTML='
',document.getElementsByTagName("body")[0].appendChild(n),document.getElementsByTagName("body")[0].appendChild(r),document.getElementById("debugger-applog-web").addEventListener("click",(function(){(window.opener||window.parent).postMessage({type:"devtool:web:open-draw"},location.origin)}))},e}(),Dt={autotrack:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/autotrack.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/autotrack.js"},object:"LogAutoTrack"},ab:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/ab.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/ab.js"},object:"LogAb"},stay:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/stay.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/stay.js"},object:"LogStay"},route:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/route.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/route.js"},object:"LogRoute"},tracer:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/tracer.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/tracer.js"},object:"LogTracer"},retry:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/retry.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/retry.js"},object:"LogRetry"},visual:{src:{sg:"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/visual.js",va:"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/visual.js"},object:"LogVisual"}},Mt=["et","profile","heartbeat","monitor"],jt=function(){function e(e){this.disableAutoPageView=!1,this.bridgeReport=!1,this.staging=!1,this.pluginInstances=[],this.sended=!1,this.started=!1,this.destroy=!1,this.sdkReady=!1,this.adapters={},this.loadType="base",this.sdkStop=!1,this.name=e,this.hook=new Xe,this.remotePlugin=new Map,this.Types=gt,this.adapters.storage=ut}return e.usePlugin=function(t,n,r){if(n){for(var i=!1,o=0,a=e.plugins.length;othis.sessionInterval&&(this.clearInterval(),this.endCurrentSession(),this.setInterval())},e}(),zt=function(){function e(){}return e.prototype.apply=function(e,t){var n=this;if(this.collect=e,this.config=t,!this.config.channel_domain&&!t.disable_track_event&&!t.disable_sdk_monitor){this.url=e.configManager.getUrl("event");var r=this.collect.Types;this.collect.on(r.Ready,(function(){n.sdkOnload()})),this.collect.on(r.SubmitError,(function(e){var t=e.type,r=e.eventData,i=e.errorCode;"f_data"===t&&n.sdkError(r,i)}))}},e.prototype.sdkOnload=function(){var e=this;try{var t=this.collect.configManager.get(),n=t.header,r=t.user,i=n.app_id,o=n.app_name,a=n.sdk_version,s=r.web_id,c={events:[{event:"onload",params:JSON.stringify({app_id:i,app_name:o||"",sdk_version:a,sdk_type:"npm",sdk_config:this.config,sdk_desc:"TOC_OVERSEA"}),local_time_ms:Date.now()}],user:{user_unique_id:s},header:{}};setTimeout((function(){e.collect.requestManager.useRequest({url:e.url,data:[c],timeout:3e4,app_key:"566f58151b0ed37e",forceXhr:!0})}),16)}catch(e){}},e.prototype.sdkError=function(e,t){var n=this;try{var r=e[0],i=r.user,o=r.header,a=[];e.forEach((function(e){e.events.forEach((function(e){a.push(e)}))}));var s={events:a.map((function(e){return{event:"on_error",params:JSON.stringify({error_code:t,app_id:o.app_id,app_name:o.app_name||"",error_event:e.event,sdk_version:o.sdk_version,local_time_ms:e.local_time_ms,tea_event_index:Date.now(),params:e.params,header:JSON.stringify(o),user:JSON.stringify(i)}),local_time_ms:Date.now()}})),user:{user_unique_id:i.user_unique_id},header:{}};setTimeout((function(){n.collect.requestManager.useRequest({url:n.url,data:[s],timeout:3e4,app_key:"566f58151b0ed37e",forceXhr:!0})}),16)}catch(e){}},e}(),Nt="undefined"!=typeof window?(window.LogPluginObject||(window.LogPluginObject={}),window.LogPluginObject):null,Lt=function(){function e(){}return e.prototype.apply=function(e,t){this._plugin={},this.config=t,this.collect=e,this.channel=t.channel||"cn",this.loadExtend()},e.prototype.loadExtend=function(){var e=this;try{this.collect.remotePlugin.forEach((function(t,n){if("sdk"===t)if(Dt.hasOwnProperty(n)){var r=Dt[n].object,i=""+Dt[n].src[e.channel];e.exist(n,r,i)}else console.warn("your "+n+" is not exist\uff0cplease check plugin name");else"object"==typeof t&&(t.src?e.exist(n,t.call,t.src):e.process(n,t.instance,"INSTANCE"))}))}catch(e){this.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),console.log("load extend error")}},e.prototype.exist=function(e,t,n){var r=this;Nt[t]?(this.process(e,Nt[t]),console.log("\u5df2\u6709"+e+"\u63d2\u4ef6\uff0c\u907f\u514d\u91cd\u590d\u52a0\u8f7d~")):this.loadPlugin(e,n,(function(){r.process(e,Nt[t]),console.log(" %c %s %s %s","color: yellow; background-color: black;","\u2013","load plugin:"+e+" success","-")}),(function(){console.log(" %c %s %s %s","color: red; background-color: yellow;","\u2013","load plugin:"+e+" error","-")}))},e.prototype.process=function(e,t,n){try{if(n){var r=new t;r.apply&&r.apply(this.collect,this.config),console.log("excude "+e+" success")}else t&&t(this.collect,this.config)}catch(t){this.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:t.message}),console.log("excude "+e+" error, message:"+t.message)}},e.prototype.loadPlugin=function(e,t,n,r){var i=this;try{var o=document.createElement("script");o.src=t,this._plugin[e]||(this._plugin[e]=[]),this._plugin[e].push(n),o.onerror=function(){r(t)},o.onload=function(){i._plugin[e].forEach((function(e){e()}))},document.getElementsByTagName("head")[0].appendChild(o)}catch(e){this.collect.emit(Ye.DEBUGGER_MESSAGE,{type:Ye.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e}();jt.usePlugin(Lt,"extend"),jt.usePlugin(Pt,"et"),jt.usePlugin(It,"heartbeat"),jt.usePlugin(zt,"monitor");var Gt=new jt("default"),Bt=3053,Ut=3297;var $t=function(e){function t(t){var n=t.test,r=t.TEAChannelDomain,i=void 0===r?"":r,o=t.mode,a=t.TEAChannel,s=t.TEAChannelType;return t.tracker=i||s||a?function(e){var t=e.isTest,n=e.channel_domain,r=e.channel_type,i=e.channel,o=/snssdk|zijieapi/g.test(n)&&/ttp|tcpy/g.test(r)&&/va|sg|in/g.test(i)?Bt:Ut;return Gt.init({app_id:o,channel_type:r,channel:i,channel_domain:n}),Gt.config({_staging_flag:t?1:0,enable_et_test:t}),Gt.start(),Gt.event.bind(Gt)}({isTest:n||"test"===o,channel_domain:i,channel_type:s,channel:a}):function(){},e.call(this,t)||this}return ye(t,e),t}(qe);function Vt(){for(var e=arguments.length,t=new Array(e),n=0;n1,l=[];return e.forEach((function(e){var p=e.projectName,f=e.namespace,h=e.apiKey;(f||[]).forEach((function(e){if(n.enableOptimizeResourceHandle&&s.hasResourceBundle(r,e)){var f=s.getResourceBundle(r,e);l.push(Promise.resolve((0,ve._)({},e,f)))}else l.push(i({locale:r,client:(0,a._)((0,o._)({},t),{apiKey:h,namespace:e,locale:r,projectName:p,zoneHost:null==t?void 0:t.zoneHost}),node:(0,a._)((0,o._)({},n),{projectName:p,namespace:e})},u,c))}))})),l}(e,t,n,r,Ht,i,s),[4,Kt(c)];case 1:return u=p.sent(),l=function(e){return"string"!=typeof e?e:e.replace(/([a-zA-Z]+)(_[a-zA_Z]+)?/,(function(e,t,n){return t.toLowerCase()+(n?n.toUpperCase():"")}))}(r),Object.keys(u||{}).forEach((function(e){i.addResourceBundle(l,e,u[e])})),[2,{resources:u,lng:l}]}}))}));return function(t,n,r,i,o,a){return e.apply(this,arguments)}}(),Wt=function(){var e=(0,h._)((function(e){var t,n,r,i,o,a,s,c,u,l,p=arguments;return(0,g.YH)(this,(function(f){switch(f.label){case 0:return t=p.length>1&&void 0!==p[1]?p[1]:"en",n=p.length>2?p[2]:void 0,r=p.length>3?p[3]:void 0,i=p.length>4?p[4]:void 0,(o=[]).push(Ft(e.projects,e.clientOptions,e.nodeOptions,t,r,i)),a=n.enableRequestFallbackLng,s=n.fallbackLangs,a&&("string"==typeof s||Array.isArray(s))&&(c=function(e){return Array.isArray(e)?e:[e]}(s),c.forEach((function(t){return o.push(Ft(e.projects,e.clientOptions,e.nodeOptions,t,r,i))}))),[4,Promise.all(o)];case 1:return u=f.sent(),l={},u.forEach((function(e){var t=e.lng,n=e.resources;l[t]=n})),[2,{resources:l}]}}))}));return function(t){return e.apply(this,arguments)}}(),Jt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t?e[t]:e;return!!n&&0!==Object.values(n).filter(Boolean).length};var Yt=function(){var e=(0,h._)((function(e,t,n){var r,i,o,a,s,c,u=arguments;return(0,g.YH)(this,(function(l){switch(l.label){case 0:return r=u.length>3&&void 0!==u[3]?u[3]:"en",o=u.length>5?u[5]:void 0,a=(i=u.length>4?u[4]:void 0).fallbackLangs,s=r||t.language||("string"==typeof a?a:"en")||"en",[4,Wt(n,r,i,{addResourceBundle:t.addResourceBundle,hasResourceBundle:t.hasResourceBundle,getResourceBundle:t.getResourceBundle},o)];case 1:return c=l.sent().resources,function(e,t,n,r,i){var o=null!=i?i:{},a=o.reporter,s=o.logger,c=Object.keys(t);null==a||a.reportInfo("[exportServerResourcesToWindow]",{locale:n,i18nLanguage:c.join(",")}),null==s||s.debug("[exportServerResourcesToWindow]",n,c.join(",")),t&&(e.__i18nData__={resources:!r&&Jt(t,n)?JSON.parse(JSON.stringify(t)):null,lng:n})}(e,c,s,n.disableExportResourceToWindow,o),[2]}}))}));return function(t,n,r){return e.apply(this,arguments)}}(),Xt=n(34056),Zt=n(92750),Qt=n(7544),en=[],tn=en.forEach,nn=en.slice;var rn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,on=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=function(e,t,n){var r=n||{};r.path=r.path||"/";var i=encodeURIComponent(t),o="".concat(e,"=").concat(i);if(r.maxAge>0){var a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(a))}if(r.domain){if(!rn.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(r.domain)}if(r.path){if(!rn.test(r.path))throw new TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o}(e,encodeURIComponent(t),i)},an=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),i=0;i0)r[i].substring(0,o)===e.lookupQuerystring&&(t=r[i].substring(o+1))}}return t}},un=null,ln=function(){if(null!==un)return un;try{un="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(He){un=!1}return un},pn={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&ln()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&ln()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},fn=null,hn=function(){if(null!==fn)return fn;try{fn="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(He){fn=!1}return fn},dn={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&hn()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&hn()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},gn={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},mn={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},vn={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},_n={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};var yn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Zt.A)(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return(0,Qt.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return tn.call(nn.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(sn),this.addDetector(cn),this.addDetector(pn),this.addDetector(dn),this.addDetector(gn),this.addDetector(mn),this.addDetector(vn),this.addDetector(_n)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}})),n=n.map((function(e){return t.options.convertDetectedLanguage(e)})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();yn.type="languageDetector";var bn={fallbackLng:"en",ns:["translation"],defaultNS:"translation",saveMissing:!0,debug:!1,react:{useSuspense:!1},interpolation:{escapeValue:!1},detection:{caches:["cookie","localStorage"],order:["querystring","cookie","localStorage","header","navigator","htmlTag","path","subdomain"],cookieMinutes:525600,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupHeader:"accept-language"}},wn=function(e,t){var n,r,i=null===(n=null===(r=window._SSR_DATA)||void 0===r?void 0:r.data)||void 0===n?void 0:n.i18nData,s=e||{},c=s.plugins,u=void 0===c?[]:c,l=(0,Xt._)(s,["plugins"]);return t||re.use(yn),u.filter((function(e){return Boolean(e)})).forEach((function(e){re.use(e)})),re.init((0,a._)((0,o._)({},bn,l),{resources:(null==i?void 0:i.resources)||(null==e?void 0:e.resources)||{},lng:(null==i?void 0:i.lng)||(null==e?void 0:e.lng)})),re},Sn=n(67918);function En(e){return Array.isArray(e)?e:[e]}function kn(e){var t,n,r,i,a,s,c,u,l,p,f,h,d;if(Array.isArray(e.starlingProjects)&&e.starlingProjects.forEach((function(e){e.namespace=En(e.namespace),e.apiKey=e.apiKey||e.api_key})),!e.starlingProjects){var g,m=e.starlingOptions||{},v=m.projectName,_=m.api_key,y=m.apiKey,b=m.namespace;e.starlingProjects=En({projectName:v,apiKey:y||_,namespace:En(b||(null===(g=e.i18nOptions)||void 0===g?void 0:g.ns))})}var w,S,E,k=!(null===(t=e.i18nOptions)||void 0===t?void 0:t.defaultNS);(e.i18nOptions=(0,o._)({},bn,e.i18nOptions),e.i18nOptions)&&(e.i18nOptions.ns=(E=e.starlingProjects)?1===E.length?E[0].namespace:E.reduce((function(e,t){return e.concat(En(t.namespace).map((function(e){return"".concat(t.projectName,"_").concat(e)})))}),[]):[],k&&(e.i18nOptions.defaultNS=null===(S=e.i18nOptions)||void 0===S||null===(w=S.ns)||void 0===w?void 0:w[0]));return{mode:e.mode,disableDefaultRequest:e.disableDefaultRequest,starling:{disableExportResourceToWindow:e.disableExportResourceToWindow,projects:e.starlingProjects,clientOptions:e.starlingOptions,nodeOptions:{projectName:null===(n=e.starlingOptions)||void 0===n?void 0:n.projectName,namespace:(0,Sn.first)(En(null===(r=e.starlingOptions)||void 0===r?void 0:r.namespace)),debug:null===(i=e.starlingOptions)||void 0===i?void 0:i.debug,options:{fetchOptions:null===(a=e.starlingOptions)||void 0===a?void 0:a.fetchOptions,fallbackLangs:(null===(s=e.starlingOptions)||void 0===s?void 0:s.fallbackLangs)||(null===(c=e.starlingOptions)||void 0===c?void 0:c.fallbackLang),condition:null===(u=e.starlingOptions)||void 0===u?void 0:u.condition,tccOptions:null===(l=e.starlingOptions)||void 0===l?void 0:l.tccOptions,scheduleRule:null===(p=e.starlingOptions)||void 0===p?void 0:p.scheduleRule,cacheOptions:null===(f=e.starlingOptions)||void 0===f?void 0:f.cacheOptions},enableOptimizeResourceHandle:e.enableOptimizeResourceHandle}},fallback:{enableRequestFallbackLng:e.enableRequestFallbackLng||!1,fallbackLangs:(null===(h=e.starlingOptions)||void 0===h?void 0:h.fallbackLangs)||(null===(d=e.starlingOptions)||void 0===d?void 0:d.fallbackLang)||[]},i18nOptions:e.i18nOptions}}var xn=new ie.EventEmitter,An="__EDENX_LANGUAGE_EVENT",On={i18n:re,withTranslation:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var i=r.forwardedRef,o=(0,se.A)(r,le),a=(0,ce.B)(e,fe(fe({},o),{},{keyPrefix:t.keyPrefix})),s=(0,ae.A)(a,3),c=s[0],u=s[1],l=s[2],p=fe(fe({},o),{},{t:c,i18n:u,tReady:l});return t.withRef&&i?p.ref=i:!t.withRef&&i&&(p.forwardedRef=i),(0,v.createElement)(n,p)}r.displayName="withI18nextTranslation(".concat((0,ue.Mn)(n),")"),r.WrappedComponent=n;return t.withRef?(0,v.forwardRef)((function(e,t){return(0,v.createElement)(r,Object.assign({},e,{forwardedRef:t}))})):r}},useTranslation:ce.B,changeLanguage:function(e){e.locale;return Promise.resolve()}},Tn=function(e){return function(t){var n,r,i=(0,v.useContext)(m.V),a=i.context,s=null===(r=null!==(n=null==a?void 0:a.isBrowser)&&void 0!==n?n:i.isBrowser)||void 0===r||r,c=null==a?void 0:a.i18n,u=(0,v.useMemo)((function(){return{_i18n:{loading:!1,error:null,resources:s?re.getDataByLanguage(re.language):c.getDataByLanguage(c.language),lng:s?re.language:c.language}}}),[]),p=(0,d._)((0,v.useState)(u),2),f=p[0],h=p[1];(0,v.useEffect)((function(){var e=function(e){h(e)};return xn.on(An,e),function(){xn.off(An,e)}}),[]),c&&(c.translator.language=c.language);var g=v.isValidElement(e);return(0,l.jsx)(de,{i18n:s?re:c,children:(0,l.jsx)(me,{value:f._i18n,children:g?(0,l.jsx)(e,(0,o._)({},t,f)):(0,l.jsx)(e,(0,o._)({},t))})})}},Cn=function(e){return{name:"@edenx/plugin-i18n",setup:function(){var t=kn(e||{}),n=t.mode,r=t.disableDefaultRequest,i=t.starling,s=t.fallback,c=t.i18nOptions,u=t.disableLanguageDetect;return{init:function(t,l){var p=t.context;return(0,h._)((function(){var t,f,d,m,v,_;return(0,g.YH)(this,(function(y){switch(y.label){case 0:return t=function(){var e=(0,h._)((function(e){var t,o,a,c,u,l,f;return(0,g.YH)(this,(function(h){switch(h.label){case 0:return r||"offline"===n?[2]:d?[3,2]:(a=p.ssrContext,c=a.reporter,u=a.logger,[4,Yt(p,e,i,e.language,s,{reporter:c,logger:u})]);case 1:case 3:return h.sent(),[2];case 2:return(null==(l=null===(t=null===(o=window._SSR_DATA)||void 0===o?void 0:o.data)||void 0===t?void 0:t.i18nData)?void 0:l.resources)&&Object.keys(null==l?void 0:l.resources).length?[2]:(f=e.language,[4,Wt(i,f,s,{addResourceBundle:e.addResourceBundle,getResourceBundle:e.getResourceBundle,hasResourceBundle:e.hasResourceBundle})])}}))}));return function(t){return e.apply(this,arguments)}}(),f=p.isBrowser,(d=void 0===f||f)?(wn(c,u),re.changeLanguage(),[4,t(re)]):[3,2];case 1:return y.sent(),[3,4];case 2:return m=p.ssrContext,v=wn(c,u),_=v.services.languageDetector.detect(m.request,{}),m.i18n=v,m.i18n.language=_,m.language=_,m.i18n.languages=v.services.languageUtils.toResolveHierarchy(_),v.changeLanguage(v.language),[4,t(v)];case 3:y.sent(),y.label=4;case 4:return On.changeLanguage=function(){var e=(0,h._)((function(e,t){var r,o,a,c,u,l,f,h,m,v,_,y;return(0,g.YH)(this,(function(g){switch(g.label){case 0:return r=e.locale,o=t||p,a=null,"offline"!==n?[3,5]:d?[4,re.changeLanguage(r)]:[3,2];case 1:return g.sent(),[3,4];case 2:return[4,o.ssrContext.i18n.changeLanguage(r)];case 3:g.sent(),g.label=4;case 4:return[3,13];case 5:return d?(l=null===(c=null===(u=window._SSR_DATA)||void 0===u?void 0:u.data)||void 0===c?void 0:c.i18nData,r&&(null==l?void 0:l.resources)&&(null==l?void 0:l.resources[r])?[4,re.changeLanguage(r)]:[3,7]):[3,10];case 6:return g.sent(),[2];case 7:return xn.emit(An,{_i18n:{loading:!0,error:null,resources:null,lng:r}}),[4,Wt(i,r,s,{addResourceBundle:re.addResourceBundle,getResourceBundle:re.getResourceBundle,hasResourceBundle:re.hasResourceBundle})];case 8:return f=g.sent(),h=f.resources,a=h,[4,re.changeLanguage(r)];case 9:return g.sent(),[3,13];case 10:return m=o.ssrContext.i18n,v=o.ssrContext,_=v.reporter,y=v.logger,[4,Yt(o,m,i,r,s,{reporter:_,logger:y})];case 11:return g.sent(),[4,m.changeLanguage(r)];case 12:g.sent(),g.label=13;case 13:return xn.emit(An,{_i18n:{loading:!1,error:null,resources:a?a[r]:null,lng:r}}),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}(),p.Plugins=(0,a._)((0,o._)({},(null==p?void 0:p.Plugins)||{}),{I18n:{config:e,i18n:re}}),[2,l({context:p})]}}))}))()},hoc:function(e,t){var n=e.App;return t({App:f()(Tn(n),n)})}}}}},Rn=n(8289),Dn=n(88268),Mn=n(46505),jn=n(56611),Pn=n(57605),In=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var n=t[t.length-1];if(n)try{return JSON.parse((null==n?void 0:n.textContent)||"")}catch(He){return void console.error("parse ".concat(e," error"),He)}}},zn=(0,n(21814).xs)(),Nn=n(45286),Ln=n(2018),Gn=n(46049),Bn=n(19162),Un=n(49839);function $n(e){var t=.001*(new Date).getTime(),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]}var Vn=function(){var e=$n();return function(){return function(e){var t=(0,Ln._)($n(e),2);return 1e3*t[0]+t[1]/1e6}(e)}},qn=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.children,i=e.index,o=e.id,a=e.component,s=e.isRoot,c=e.lazyImport,u=e.config,p=e.handle,f=a,h=n.parent,d=n.DeferredDataComponent,g=n.props,m=void 0===g?{}:g,_=n.reporter,y={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:Hn(e,_),action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,Rn._)({},p,"object"==typeof u?null==u?void 0:u.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error){var b=(0,l.jsx)(e.error,{});y.errorElement=b}if(f)if((null==h?void 0:h.loading)&&c){var w=h.loading;t=Kn(f)?(0,l.jsx)(f,{fallback:(0,l.jsx)(w,{})}):(0,l.jsx)(v.Suspense,{fallback:(0,l.jsx)(w,{}),children:(0,l.jsx)(f,{})})}else t=Kn(f)&&c?(0,l.jsx)(f,{}):s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f,(0,Rn._)({},m)),"undefined"==typeof document&&d&&(0,l.jsx)(d,{nonce:null==m?void 0:m.nonce})]}):c?(0,l.jsx)(v.Suspense,{fallback:null,children:(0,l.jsx)(f,{})}):(0,l.jsx)(f,{});else e.loading=null==h?void 0:h.loading,y.element=(0,l.jsx)(jn.sv,{});t&&(y.element=t);var S=null==r?void 0:r.map((function(t){return qn(t,{parent:e,reporter:_})}));return i?(0,l.jsx)(jn.qh,(0,Dn._)((0,Rn._)({},y),{index:!0}),o):(0,l.jsx)(jn.qh,(0,Dn._)((0,Rn._)({},y),{index:!1,children:S}),o)};function Hn(e,t){var n=e.loader;return n?function(){var r=(0,Bn._)((function(r){var i,o,a;return(0,g.YH)(this,(function(s){switch(s.label){case 0:return"function"==typeof e.lazyImport&&e.lazyImport(),i=Vn(),[4,n(r)];case 1:return o=s.sent(),a=i(),"undefined"==typeof document&&t&&(null==t||t.reportTiming("".concat(Un.IV,"-").concat(e.id),a)),[2,o]}}))}));return function(e){return r.apply(this,arguments)}}():function(){return"function"==typeof e.lazyImport&&e.lazyImport(),null}}function Kn(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}var Fn=function(){return(0,l.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})};function Wn(){return null}function Jn(e){var t=e.routesConfig,n=e.props,r=e.ssrMode,i=e.reporter;if(!t)return null;var o=t.routes,a=t.globalApp;if(!o)return null;var s=function(e,t){var n=t.globalApp,r=t.ssrMode,i=t.props,o=t.reporter,a=function(e){var t=e.Component,r=(0,Nn._)(e,["Component"]),i=n;return i?(0,l.jsx)(i,(0,Rn._)({Component:t},r)):(0,l.jsx)(t,(0,Rn._)({},r))},s=[],c=!0,u=!1,p=void 0;try{for(var f,h=e[Symbol.iterator]();!(c=(f=h.next()).done);c=!0){var d=f.value;if("nested"===d.type){var g=qn(d,{DeferredDataComponent:"stream"===r?Wn:void 0,props:i,reporter:o});s.push(g)}else{var m=(0,l.jsx)(jn.qh,{path:d.path,element:(0,l.jsx)(a,{Component:d.component})},d.path);s.push(m)}}}catch(v){u=!0,p=v}finally{try{c||null==h.return||h.return()}finally{if(u)throw p}}return s.push((0,l.jsx)(jn.qh,{path:"*",element:(0,l.jsx)(Fn,{})},"*")),s}(o,{globalApp:a,ssrMode:r,props:n,reporter:i});return s}function Yn(e){if(!e)return null;var t=Object.entries(e),n={},r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=(0,Ln._)(a.value,2),u=c[0],l=c[1];if(l&&"RouteErrorResponse"===l.__type)n[u]=new Gn.VV(l.status,l.statusText,l.data,!0===l.internal);else if(l&&"Error"===l.__type){var p=new Error(l.message);p.stack=l.stack,n[u]=p}else n[u]=l}}catch(f){i=!0,o=f}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}var Xn={routes:[]};var Zn=function(e){var t=e.serverBase,n=void 0===t?[]:t,r=e.supportHtml5History,i=void 0===r||r,o=e.basename,a=void 0===o?"":o,s=e.routesConfig,c=e.createRoutes,u=[];return Xn=s,window._SERVER_DATA=In("__MODERN_SERVER_DATA__"),{name:"@modern-js/plugin-router",registerHook:{modifyRoutes:zn},setup:function(e){return{init:function(e,t){var n=e.context;return n.router={useMatches:jn.FE,useLocation:jn.zy},Object.defineProperty(n,"routes",{get:function(){return u}}),t({context:n})},hoc:function(t,r){var o=t.App;if(!Xn&&!c)return r({App:o});var p,h=(p=function(t){var r,o,s=(null===(r=window._SERVER_DATA)||void 0===r?void 0:r.router.baseUrl)||(o=location.pathname,n.find((function(e){return 0===o.search(e)}))||"/"),l="/"===s?function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.slardarInstance,n=e.enableAsyncSetting,r=e.disableAutoInit,i=e.disableAutoStart,a=e.disableGarfishPlugin,s=e.globalName,c=void 0===s?"slardarWeb":s,u=e.garfishSlardarPlugin,l=e.inline,p=e.beforeInit,f=e.garfish,h=(0,Xt._)(e,["slardarInstance","enableAsyncSetting","disableAutoInit","disableAutoStart","disableGarfishPlugin","globalName","garfishSlardarPlugin","inline","beforeInit","garfish"]);return l||(tr()(t,"slardarInstance is required"),or()&&!window[c]&&(window[c]=t)),{name:"@edenx/plugin-slardar-web",setup:function(){return{init:function(e,t){var s=e.context,l=s.isBrowser;if(void 0!==l&&l&&h&&window[c]){var d,g,m,v=null===(m=window._SSR_DATA)||void 0===m||null===(g=m.context)||void 0===g||null===(d=g.reporter)||void 0===d?void 0:d.sessionId;!h.sessionId&&v&&(h.sessionId=v);var _=window[c];_.__edenx_global_name__=c,function(e){null==e||e("on","provide",(function(t){nr(t,e)}))}(_),!a&&"function"==typeof u&&or()&&window.__GARFISH__&&u((0,o._)({getSlardarInstance:function(){return _},config:h},f)),r?_.originConfig=h:(null==p||p(_),_("init",h),n||i||_("start"))}return t({context:s})}}}}},sr=n(8153);(ir=rr||(rr={}))[ir.CLIENT_RENDER=0]="CLIENT_RENDER",ir[ir.SERVER_PREFETCH=1]="SERVER_PREFETCH",ir[ir.SERVER_RENDER=2]="SERVER_RENDER";var cr=function(e){var t=e.callback,n=e.children,r=(0,v.useRef)(!1);return(0,v.useLayoutEffect)((function(){r.current||(r.current=!0,t())}),[t]),n},ur=n(83073),lr=function(e){var t;return{params:e.params||{},host:e.host||location.host,pathname:e.pathname||location.pathname,headers:e.headers||{},cookieMap:ur.parse(document.cookie||"")||{},cookie:document.cookie||"",userAgent:(null===(t=e.headers)||void 0===t?void 0:t["user-agent"])||navigator.userAgent,referer:e.referer||document.referrer,query:(0,Rn._)({},window.location.search.substring(1).split("&").reduce((function(e,t){var n=(0,Ln._)(t.split("="),2),r=n[0],i=n[1];return r&&(e[r]=i),e}),{}),e.query),url:location.href}},pr=function(e){return{name:"@modern-js/plugin-ssr",setup:function(){var t={setHeader:function(){console.warn("response.setHeader() can only be used in the server side")},status:function(){console.warn("response.status() can only be used in the server side")},get locals(){return console.warn("response.locals can only be used in the server side"),{}}};return!1===e.inlineScript&&(window._SSR_DATA=In("__MODERN_SSR_DATA__"),window._ROUTER_DATA=In("__MODERN_ROUTER_DATA__")),{client:function(){var t=(0,Bn._)((function(t){var n,r,i,o,a,s,c,u,p,h,d,m,v,_;function y(){if(_===rr.CLIENT_RENDER||_===rr.SERVER_PREFETCH)i((0,l.jsx)(n,{context:r}));else if(_===rr.SERVER_RENDER){var t={chunkLoadingGlobal:e.chunkLoadingGlobal};(0,sr.ai)((function(){var e=function(){return(0,l.jsx)(cr,{callback:v,children:(0,l.jsx)(n,{context:c})})};e=f()(e,n),o((0,l.jsx)(e,{}))}),t)}else console.warn("unknow render level: ".concat(_,", execute render()")),i((0,l.jsx)(n,{context:r}))}function b(){if(_===rr.SERVER_RENDER){var e=function(){return(0,l.jsx)(cr,{callback:v,children:(0,l.jsx)(n,{context:c})})};e=f()(e,n),o((0,l.jsx)(e,{}))}else i((0,l.jsx)(n,{context:r}))}return(0,g.YH)(this,(function(l){return n=t.App,r=t.context,i=t.ModernRender,o=t.ModernHydrate,c=(0,Dn._)((0,Rn._)({},r),{get routes(){return r.routes},_hydration:!0}),u=c.ssrContext,p=u.request,h=p.pathname,d=window.location.pathname,h!==d&&(m="The initial URL ".concat(h," and the URL ").concat(d," to be hydrated do not match, reload."),console.error(m),window.location.reload()),v=function(){delete c._hydration},_=(null===(s=window)||void 0===s||null===(a=s._SSR_DATA)||void 0===a?void 0:a.renderLevel)||rr.CLIENT_RENDER,"stream"===e.mode?[2,b()]:[2,y()]}))}));return function(e){return t.apply(this,arguments)}}(),init:function(e,n){var r,i,o,a=e.context,s=null===(o=window)||void 0===o||null===(i=o._SSR_DATA)||void 0===i||null===(r=i.context)||void 0===r?void 0:r.request;return s?(a.ssrContext.response=t,a.ssrContext.request=lr(s),n({context:a})):(a.ssrContext=(0,Dn._)((0,Rn._)({},a.ssrContext),{response:t,request:lr({})}),n({context:a}))},pickContext:function(e,n){var r,i,o,a=e.context,s=e.pickedContext,c=null===(o=window)||void 0===o||null===(i=o._SSR_DATA)||void 0===i||null===(r=i.context)||void 0===r?void 0:r.request,u=a.initialData;return n(c?{context:a,pickedContext:(0,Dn._)((0,Rn._)({},s),{initialData:u,request:c,response:t})}:{context:a,pickedContext:(0,Dn._)((0,Rn._)({},s),{initialData:u})})}}}}};function fr(e){var t=pr(e);return(0,a._)((0,o._)({},t),{name:"@edenx/plugin-ssr"})}const hr=(0,n(44927).kT)();var dr="undefined"!=typeof window?hr:{};const gr="undefined"!=typeof window&&"nodejs"!==window.name,mr=!1;let vr=null;vr=function(){var e,t,n,l;const p=(0,r.A)((0,r.A)({},mr.config),"function"==typeof config?config():{});var f,h,d,g,m,v;return vr=(f={plugins:[fr((0,r.A)((0,r.A)({},{disablePrerender:!0}),null==p?void 0:p.ssr)),Cn((0,r.A)((0,r.A)((0,r.A)({disableExportResourceToWindow:!0},null==p?void 0:p.i18n),p.i18next),{starlingOptions:(0,r.A)((0,r.A)({zoneHost:"https://starling-oversea.byteoversea.com",apiKey:"838439d00f6011eb878e89d52866df17",projectName:"i18n_ecom_shop",namespace:["portal"]},null===(e=p.i18n)||void 0===e?void 0:e.starlingOptions),null===(t=p.i18next)||void 0===t?void 0:t.starlingOptions),i18nOptions:(0,r.A)((0,r.A)({supportedLngs:["en","en-GB","id-ID","zh-CN"],fallbackLng:"en",resources:{en:{portal:{common_tooltip_title_source:"Source",common_button_sign_up:"Sign Up",common_tiktok_shopify_app:"TikTok for Shopify App",creator_agency_partner_banner_title:"%1$s your Creator Agency Business",creator_agency_partner_banner_title_highlight:"Grow",creator_agency_partner_banner_desc:"Apply to become a Creator Agency Partner to accelerate growth for your creators, build your TikTok Shop expertise, and get discovered by creators and sellers.",creator_agency_partner_banner_cta:"Apply now",creator_agency_partner_banner_footer:'*Select "Creator Management"',creator_agency_partner_uvp_title:"Creator Agency Partner program built for you",creator_agency_partner_uvp_tab_1:"Agency",creator_agency_partner_uvp_tab_2:"Seller",creator_agency_partner_uvp_tab_3:"Creator",creator_agency_partner_uvp_1_title:"Why join the Creator Agency Partner program?",creator_agency_partner_uvp_1_1:"Earn agency performance incentives",creator_agency_partner_uvp_1_2:"Collaborate with different brands",creator_agency_partner_uvp_1_3:"Get direct support from TikTok Shop",creator_agency_partner_uvp_1_4:"Ability to launch campaigns and invite sellers and creators to join",creator_agency_partner_uvp_1_5:"Access educational material including content best practices and agency-specific events",creator_agency_partner_uvp_2_title:"Why work with a Creator Agency Partner?",creator_agency_partner_uvp_2_1:"Amplify your brand's reach",creator_agency_partner_uvp_2_2:"Seamlessly collaborate with a network of skilled creators",creator_agency_partner_uvp_2_3:"Engage with a diverse audience and drive meaningful business results",creator_agency_partner_uvp_2_4:"Navigate the evolving social e-commerce landscape and unlock new opportunities for success",creator_agency_partner_uvp_3_title:"Why work with a Creator Agency Partner?",creator_agency_partner_uvp_3_1:"Connect with Creator Agency Partners to inspire your community and create authentic content around products you love. We have the perfect Creator Agency Partners just for you that unlock opportunities, education, and content development strategies that help you grow as a TikTok Shop creator.",creator_agency_partner_uvp_3_2:'"Connecting with Taboost has allowed me to connect with a community of inspiring creators, receive 1:1 support to resolve issues and unlocked access to amazing events and a creator suite in LA. The support and expertise has truly helped me thrive, and I am so proud to be part of an agency that genuinely cares about the success of their creators!"',creator_agency_partner_uvp_3_2_author:"- Victoria Prince, @vprincemusic",creator_agency_partner_partner_title:"Featured Partners",creator_agency_partner_service_title:"Exclusive services that support your success",creator_agency_partner_service_1_title:"TikTok Shop Expertise",creator_agency_partner_service_1_1:"Education on how to start leveraging TikTok Shop",creator_agency_partner_service_1_2:"Get tips & tricks to expand your reach and convert more customers",creator_agency_partner_service_1_3:"Benefit from trend, product and brand matchmaking",creator_agency_partner_service_2_title:"Creator Management for TikTok Shop",creator_agency_partner_service_2_1:"Keep up to speed with trends & policy training",creator_agency_partner_service_2_2:"Enjoy day-to-day management & support for violations",creator_agency_partner_service_2_3:"Connect with a built-in community of TikTok Shop creators",creator_agency_partner_service_3_title:"Content Production",creator_agency_partner_service_3_1:"Receive best practices for Shoppable Videos & LIVE Shopping",creator_agency_partner_service_3_2:"Real-time data analytics",creator_agency_partner_service_3_3:"Gain resource and editing support",creator_agency_partner_service_3_4:"Content & merchandising strategy personalized to your audience",creator_agency_partner_service_4_title:"E-commerce Operations",creator_agency_partner_service_4_1:"Sample management",creator_agency_partner_service_4_2:"Performance analysis",creator_agency_partner_service_5_title:"Merchant Collaboration",creator_agency_partner_service_5_1:"Acquire products, discounts and samples through incremental partnership opportunities with merchants",creator_agency_partner_qualification_title:"Become a Creator Agency Partner",creator_agency_partner_qualification_desc:"From talent management companies to traditional e-commerce service providers, all agencies who have a network of creators are invited to apply.",creator_agency_partner_qualification_cta:"Apply today",creator_agency_partner_qualification_list:"Agencies will be asked to provide:",creator_agency_partner_qualification_1:"U.S. Company Registration",creator_agency_partner_qualification_2:"U.S. business owner's name",creator_agency_partner_qualification_3:"Experience working with creators and servicing merchants/brands",creator_agency_partner_qualification_4:"Proof of livestreaming and/or short video content capabilities",creator_agency_partner_resource_title:"Resources to power your creators",creator_agency_partner_resource_1_title:"Upcoming Webinars",creator_agency_partner_resource_1_desc:"Leverage the Creator Agency Partner program to its fullest with our exclusive webinar series dedicated to equipping you with in-depth educational content.",creator_agency_partner_resource_1_cta:"Explore webinars",creator_agency_partner_resource_2_title:"Creative Agency Partner Onboarding Program",creator_agency_partner_resource_2_desc:"Check out the Creator Agency Partner Onboarding Program! These seven courses cover foundational topics you need to know in order to be successful as a Creator Agency Partner!",creator_agency_partner_resource_2_cta:"Start learning",creator_agency_partner_resource_3_title:"TikTok Shop Academy",creator_agency_partner_resource_3_desc:"Discover tools and best practices for maximizing your earning potential on TikTok Shop Academy, the central education hub for sellers, partners and creators.",creator_agency_partner_resource_3_cta:"Learn more",creator_agency_partner_cta_title:"Partner with us",creator_agency_partner_cta_cta:"Apply now",open_shop_banner_title:"%1$s your shop",open_shop_banner_title_highlight:"Open",open_shop_banner_desc:"Ready to launch your TikTok Shop? Easily upload your products and start selling.",open_shop_foundation_title:"Open your shop in %1$s",open_shop_foundation_title_highlight:"3 easy steps",open_shop_foundation_1:"1. Add your products",open_shop_foundation_2:"2. Set up shipping, returns and refunds",open_shop_foundation_3:"3. Start selling",open_shop_product_title:"Effortlessly upload your products to TikTok Shop",open_shop_product_1_title:"Product Builder",open_shop_product_1_desc:"Easily list individual products using a built-in template that displays everything shoppers need to know.",open_shop_product_2_title:"Bulk Uploader",open_shop_product_2_desc:"Quickly list hundreds of products at once using an Excel template.",open_shop_product_3_title:"Product Migrator",open_shop_product_3_desc:"Upload your entire product catalog from other online marketplaces.",open_shop_product_4_title:"Sync with Integrations",open_shop_product_4_desc:"Bulk upload and sync your product catalog from ecommerce platforms or marketplaces with connector apps in our %1$s.",open_shop_tool_title:"Tools to optimize your product strategy",open_shop_tool_1_title:"Product Optimizer",open_shop_tool_1_desc:"Enhance your listings with AI-powered recommendations to boost visibility and conversions.",open_shop_tool_1_footer:"Find product optimizer in %1$s or %2$s",open_shop_tool_1_footer_store:"TikTok for Shopify App",open_shop_tool_2_title:"Product Opportunities",open_shop_tool_2_desc:"Gain insights into products that shoppers are searching for and purchasing, then sell them in your shop.",open_shop_tool_2_footer:"Discover product opportunities in %1$s",open_shop_shipping_title:"Fulfillment and shipping options that fit your business needs",open_shop_shipping_1_title:"Fulfilled by TikTok",open_shop_shipping_1_desc:"Experience seamless order fulfillment and logistics that let you focus on growing your business. Our integrated solution handles it all-start small or scale big, no commitments required. %1$s",open_shop_shipping_uk_1_desc:"Streamline your TikTok Shop sales with Fulfillment by TikTok Shop (FBT). As the official order fulfillment service, FBT manages storage, picking, packing, and delivery, offering premium customer experiences with options for same-day and next-day delivery.",open_shop_shipping_2_title:"TikTok Shipping",open_shop_shipping_2_desc:"Choose from our negotiated carrier rates to buy and print shipping labels directly from Seller Center.",open_shop_shipping_3_title:"Seller Shipping",open_shop_shipping_3_desc:"Use your existing shipping carriers and rates via easy integrations within Seller Center.",open_shop_shipping_footer:"Find more shipping and fulfillment apps to match your business needs in the %1$s",open_shop_partner_title:"Our Partners",open_shop_partner_desc:"From order to checkout, build a strong TikTok Shop foundation with our partnerships and integrations.",open_shop_partner_1_title:"Technology Partners & Apps",open_shop_partner_1_desc:"Apps & Integrations to help streamline customer engagement and optimize the overall customer experience. %1$s",open_shop_partner_uk_1_desc:"Install apps and integrations to build your shop faster, manage less, and sell more. %1$s",open_shop_partner_2_title:"Service Partners",open_shop_partner_uk_2_title:"TikTok Shop Partners",open_shop_partner_2_desc:"Service Agencies to expand your workforce, help with onboarding, and support your shop operations. %1$s",open_shop_resource_title:"Additional resources",open_shop_resource_1:"Optimize Your Product Listing for Shop Tab",open_shop_resource_2:"Fulfillment by TikTok Shop Merchant Academy",open_shop_resource_3:"Top 4 Ways to Grow Sales on TikTok Shop",open_shop_resource_uk_3:"Grow Sales on TikTok Shop using Vouchers, Promotions and Campaigns",open_shop_cta_title:"Ready to grow your business with TikTok Shop?",manage_shop_banner_title:"%1$s your shop",manage_shop_banner_title_highlight:"Manage",manage_shop_banner_desc:"Optimize and grow your shop with metrics and automation.",manage_shop_management_title:"Scale order and customer management",manage_shop_management_footer:"Find the above customer and order management tools all in Seller Center or discover more service apps in the %1$s.",manage_shop_management_1_title:"Order management",manage_shop_management_1_desc:"Get full visibility into your orders from start to finish with customization options that let you streamline shipping, fulfillment, returns and refunds.",manage_shop_management_2_title:"Customer management",manage_shop_management_2_desc:"Drive customer engagement with real-time responses and support. Level up your processes with automation tools that increase efficiency and improve customer experience.",manage_shop_management_3_title:"Inventory Dashboard",manage_shop_management_3_desc:"Ensure popular products are always in stock with real-time visibility into inventory levels, sales performance, and more.",manage_shop_analytic_title:"Analytics",manage_shop_analytic_desc:"All the metrics you need to make smart decisions for your shop",manage_shop_analytic_cta:"Explore analytics",manage_shop_analytic_1_title:"Customer profiles",manage_shop_analytic_1_desc:"Understand your new and returning customers.",manage_shop_analytic_2_title:"Content performance",manage_shop_analytic_2_desc:"Learn what content best engages with shoppers.",manage_shop_analytic_3_title:"Traffic",manage_shop_analytic_3_desc:"Determine which sources of traffic are bringing you business.",manage_shop_analytic_4_title:"Shop performance",manage_shop_analytic_4_desc:"Identify the trends that can help you improve your business strategies.",manage_shop_partner_title:"Our Partners",manage_shop_partner_desc:"From order management to customer engagement, scale your shop with our partnerships and services",manage_shop_partner_1_title:"Technology Partners & Apps",manage_shop_partner_1_desc:"Apps & Integrations to help streamline customer engagement and optimize the overall customer experience. %1$s",manage_shop_partner_2_title:"Service Partners",manage_shop_partner_2_desc:"E-commerce experts that provide services across content strategy through operations. %1$s",manage_shop_partner_3_title:"Creator Agency Partners",manage_shop_partner_3_desc:"Agencies that connect you with Creators to amplify your brand's reach. %1$s",manage_shop_cta_title:"Ready to grow your business with TikTok Shop?",partner_with_creator_banner_title:"Partner with %1$s",partner_with_creator_banner_title_highlight:"creators",partner_with_creator_banner_desc:"Grow your shop faster with the power of TikTok Shop creators.",partner_with_creator_uvp_title:"The smartest way to tap into our creator community",partner_with_creator_uvp_1_title:"Sell more",partner_with_creator_uvp_1_desc:"Sellers who partner with creators see up to an 85% increase in sales.",partner_with_creator_uvp_2_title:"Grow your audience",partner_with_creator_uvp_2_desc:"Reach new shoppers where 4 in 5 users discover brands through creators' recommendations.",partner_with_creator_uvp_3_title:"Sell confidently",partner_with_creator_uvp_3_desc:"All sellers can participate, regardless of size or budget-plus, you only pay creators when products are sold.",partner_with_creator_uvp_tooltip_2:'TikTok Marketing Science NA TikTok Made Me "BLANK" It Research June 2022',partner_with_creator_start_title:"Collaborate with creators in %1$s",partner_with_creator_start_title_highlight:"3 simple steps",partner_with_creator_start_1:'1. Click on "Affiliate" within %1$s.',partner_with_creator_start_2:"2. Create your first collaboration",partner_with_creator_start_3:"3. Match with creators and watch your shop grow.",partner_with_creator_plan_title:"Ways to work with creators",partner_with_creator_plan_desc:"Choose a model that works best for your brand",partner_with_creator_plan_1_title:"Open Collaboration",partner_with_creator_plan_1_desc:"Let all TikTok Shop creators promote any of your products for maximum reach.",partner_with_creator_plan_2_title:"Target Collaboration",partner_with_creator_plan_2_desc:"Promote specific products by partnering with select creators who can help you reach your target audience.",partner_with_creator_plan_3_title:"Partner Campaigns",partner_with_creator_plan_3_desc:"Organize and manage your creator campaigns through TikTok Shop agencies.",partner_with_creator_tool_title:"Tools for creator success",partner_with_creator_tool_1_title:"Find Creators",partner_with_creator_tool_1_desc:"Discover the perfect creators for your brand, provide samples and easily manage your collaborations.",partner_with_creator_tool_2_title:"Sample Center",partner_with_creator_tool_2_desc:"Send samples to creators to encourage collaboration and help them promote your products.",partner_with_creator_tool_3_title:"Analytics",partner_with_creator_tool_3_desc:"Track the performance of your collaborations with a complete dashboard that helps you understand how your creators are driving sales. ",partner_with_creator_story_title:"Success Stories",partner_with_creator_story_desc:"Discover how TikTok Shop creator collaborations have achieved success for other brands.",partner_with_creator_story_1_title:"Power of TikTok Shop Affiliate",partner_with_creator_story_1_desc:"The Affiliate program offered through TikTok Shop is a highly effective tool that unites brands and creators to amplify their reach and influence. Discover the true impact of this program firsthand from our sellers.",partner_with_creator_story_2_title:"Impact of creators on seller success",partner_with_creator_story_2_desc:"The contributions of creators are invaluable and have a significant impact on the success of our sellers. Learn more about the incredible power and reach that these creators possess directly from our sellers.",partner_with_creator_partner_title:"Our Partners",partner_with_creator_resource_title:"Additional resources",partner_with_creator_resource_1:"Tips for pitch to creators",partner_with_creator_resource_uk_1:"How to collaborate with Creators",partner_with_creator_resource_2:"Strategies for Successful Partnerships",partner_with_creator_resource_uk_2:"Building Your Creator Pool and Product Promotion Plan",partner_with_creator_resource_3:"How to use Affiliate Data Compass to improve sales",partner_with_creator_cta_title:"Ready to grow your business with TikTok Shop?",start_selling_banner_title:"Start %1$s",start_selling_banner_title_highlight:"selling",start_selling_banner_desc:"TikTok Shop bridges the gap between entertainment and commerce.",start_selling_uvp_title:"TikTok Shop is shaping the future of e-commerce",start_selling_uvp_1_title:"Reach new shoppers",start_selling_uvp_1_desc:"82% of users say TikTok Shop helps them discover new brands.",start_selling_uvp_2_title:"Grow your business",start_selling_uvp_2_desc:"3 in 4 users say they are likely to buy from a brand they've seen on TikTok Shop",start_selling_uvp_3_title:"Connect with creators",start_selling_uvp_3_desc:"Tap into our community of over 100,000 influential creators to scale your business.",start_selling_uvp_tooltip:"TikTok Marketing Science Global TikTok Shop Research (US Results) 2024, conducted by Material",start_selling_format_title:"Selling is easy on TikTok",start_selling_format_1_title:"Shoppable Video",start_selling_format_1_desc:"Showcase and sell products through engaging, short-form video where 3 in 5 shoppers are likely to click on your product.",start_selling_format_tooltip:"Global TikTok Shop Research (US Results) 2024, conducted by Material",start_selling_format_2_title:"LIVE Shopping",start_selling_format_2_desc:"Engage with customers in real-time.",start_selling_format_3_title:"Shop Tab",start_selling_format_3_desc:"Get discovered on Shop Tab - accessible at the top of every TikTok - turning users into shoppers with just one tap. Shoppers can search, browse, and see personalized picks in a familiar eCommerce setting.",start_selling_tool_title:"Tools for creating shoppable content",start_selling_tool_1_title:"Shoppable Video Hub",start_selling_tool_1_desc:"Tap into top trending videos, best practices and tips from shops just like yours.",start_selling_tool_2_title:"LIVE Planner",start_selling_tool_2_desc:"Explore the ultimate guide to going LIVE on TikTok Shop.",start_selling_tool_3_title:"Creator Affiliate program",start_selling_tool_3_desc:"Partner with trusted TikTok Shop creators to reach shoppers and create shoppable content for your brand.",start_selling_resource_title:"Additional resources",start_selling_resource_1:"Best practices for creating content on TikTok Shop",start_selling_resource_2:"Step by step guide on how to create a shoppable video",start_selling_resource_3:"Guide to going LIVE on TikTok",start_selling_cta_title:"Ready to grow your business with TikTok Shop?",promote_products_banner_title:"%1$s your products",promote_products_banner_title_highlight:"Promote",promote_products_banner_desc:"Accelerate sales by reaching audiences ready to shop.",promote_products_uvp_title:"Why promote your products?",promote_products_uvp_1_title:"Find a more engaged audience",promote_products_uvp_1_desc:"Expand your reach via targeted paid and promotional tools that tap into a new traffic stream.",promote_products_uvp_2_title:"Accelerate sales and traffic",promote_products_uvp_2_desc:"Grow your sales faster with proven tools for boosting engagement and conversion.",promote_products_uvp_3_title:"Measure performance with accuracy",promote_products_uvp_3_desc:"Track performance without signal loss through in-platform conversions.",promote_products_tool_title:"Tools to optimize your product strategy",promote_products_tool_1_title:"Shop Ads",promote_products_tool_1_desc:"Harness powerful performance tracking and analysis capabilities to maximize your TikTok Shop strategy with smart, simple ad solutions that make viewers 74% more likely to purchase:",promote_products_tool_1_cta:"Create your ads",promote_products_tool_1_1_title:"Video Shopping Ads",promote_products_tool_1_1_desc:"Find viewers at their FYPs with hyper-relevant shoppable videos",promote_products_tool_1_2_title:"Product Listing Ads",promote_products_tool_1_2_desc:"Reach people who are ready to shop in the Shop Tab and from Search",promote_products_tool_1_3_title:"LIVE Shopping Ads",promote_products_tool_1_3_desc:"Drive LIVE Shopping engagement from the FYP",promote_products_tool_2_title:"Campaigns",promote_products_tool_2_desc:"Boost visibility and drive sales during peak periods with tailored TikTok Shop campaigns that tap into every retail shopping moment on TikTok, from New Year\u2019s Day through New Year\u2019s Eve.",promote_products_tool_2_cta:"Join a campaign",promote_products_tool_3_title:"Promotions",promote_products_tool_3_desc:"Drive sales and engagement with tools that incentivize purchases and increase order value. Whether you\u2019re clearing out excess inventory or offering discounts, TikTok Shop elevates your sales strategy with a variety of promotional options:",promote_products_tool_3_cta:"Create your promotion",promote_products_tool_3_1_title:"Buy More Save More",promote_products_tool_3_1_desc:"Increase spending per order with product combinations deals.",promote_products_tool_3_2_title:"Flash Deal",promote_products_tool_3_2_desc:"Clear stock or increase LIVE sales with limited-time promotions.",promote_products_tool_3_3_title:"Shipping Fee Discount",promote_products_tool_3_3_desc:"Reduce cart abandonment rates with shipping incentives shopwide or on specific products.",promote_products_story_title:"Seller Stories",promote_products_story_desc:"See how other brands have found TikTok Shop success.",promote_products_story_metric_desc_1:"in GMV",promote_products_story_metric_desc_2:"ROAS",promote_products_story_metric_desc_3:"decrease in CPA vs. BAU",promote_products_story_metric_desc_4:"video views",promote_products_story_metric_desc_5:"decrease in average CPA",promote_products_story_metric_desc_6:"total impressions",promote_products_story_metric_desc_7:"conversion increase QoQ",promote_products_story_metric_desc_8:"sales during first Livestreas",promote_products_story_metric_desc_9:"followers gained",promote_products_story_metric_desc_10:"sales (4 months)",promote_products_story_metric_desc_11:"incremental conversions",promote_products_story_metric_desc_12:"relative Lift (Conversions)",promote_products_story_metric_desc_13:"incremental GMV ($)",promote_products_story_1_title:"My Smile",promote_products_story_1_desc:"My Smile amplified affiliate content and Live Shopping events with Shop Ads to supercharge sales.",promote_products_story_uk_1_title:"Tatti Lashes",promote_products_story_uk_1_desc:"Using strong organic content via Spark Ads and boosted through affiliates, the brand leveraged Video Shopping Ads and Live Shopping Ads to expand their reach and drive purchases on TikTok Shop.",promote_products_story_2_title:"Queen Cosmetics",promote_products_story_2_desc:"Queen Costmetics utilizes Shop Ads to drive traffic to TikTok Shop and LIVE shopping events, reaching a wider audience and accelerating sales within the TikTok App.",promote_products_story_uk_2_title:"Pretty Perfect Products",promote_products_story_uk_2_desc:"Jacquelyn's PrettyPerfectProducts soared on TikTok Shop, hitting $170K in sales in four months, featuring a key live stream with 21K viewers and participating in the Summer Sale, becoming the #1 stationery brand.",promote_products_story_uk_3_title:"Zooki",promote_products_story_uk_3_desc:"Zooki boosted sales of collagen products on TikTok Shop by using Video and Live Shopping Ads, achieving a 125% uplift in 'Add to Cart' conversions and 66% incremental purchases through a targeted Conversion Lift Study.",promote_products_resource_title:"Additional resources",promote_products_resource_1:"A guide to all things Shop Ads",promote_products_resource_uk_1:"Using Vouchers, Promotions and Campaigns",promote_products_resource_2:"Participating in TikTok Shop Campaigns",promote_products_resource_uk_2:"How to join a Campaign",promote_products_resource_3:"Setting up a Promote Campaign guide",promote_products_resource_uk_3:"Advertise your products with Shop Ads",promote_products_cta_title:"Ready to promote your business with TikTok Shop?"}}}},null===(n=p.i18n)||void 0===n?void 0:n.i18nOptions),null===(l=p.i18next)||void 0===l?void 0:l.i18nOptions)})),Qn((0,r.A)((0,r.A)({},{serverBase:["/"],routesConfig:{routes:u.J,globalApp:mr}}),null==p?void 0:p.router)),ar((0,r.A)((0,r.A)({},{bid:"i18n_ecom_shop_seller_portal_page",env:"production",zone:"maliva",enableContentSecurityPolicy:!0,domain:"https://mon.tiktokv.com",pluginPathPrefix:"https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/slardar/fe/sdk-web/plugins",slardarInstance:dr}),null==p?void 0:p.slardar))]},h=f.plugins,d=void 0===h?[]:h,g=f.extra,m=void 0===g?{}:g,v=f.props,(0,c.Ef)({props:v,plugins:(0,s._)(d).concat([{name:"@edenx/plugin-ssr-compat",pre:["@edenx/plugin-ssr"],setup:function(){return{init:function(e,t){var n,r,i=e.context;return i.context=(0,o._)({getInitData:function(){return Object.freeze(i.initialData)},isBrowser:i.isBrowser},i.isBrowser?{request:(null===(n=i.ssrContext)||void 0===n?void 0:n.request)||{},response:(null===(r=i.ssrContext)||void 0===r?void 0:r.response)||{}}:i.ssrContext||{}),t({context:i})},pickContext:function(e,t){var n=e.context,r=e.pickedContext;return delete r.request,delete r.response,t({context:n,pickedContext:(0,a._)((0,o._)({},r),{context:n.context})})}}}},{name:"@edenx/plugin-context-compat",setup:function(){return{init:function(e,t){var n=e.context;return n.extra=(0,o._)({},(null==n?void 0:n.extra)||{},m),n.utils=n.utils||{},Object.defineProperty(n,"_context",{get:function(){return n.context}}),Object.defineProperty(n,"_utils",{get:function(){return n.utils}}),delete n.isBrowser,t({context:n})},pickContext:function(e,t){var n=e.context,r=e.pickedContext;return t({context:n,pickedContext:(0,a._)((0,o._)({},r),{utils:n.utils,context:n.context,extra:n.extra,Plugins:(0,o._)({},n.Plugins||{}),get _context(){return n.context},get _utils(){return n.utils}})})}}}}])}))(),vr.init||"undefined"==typeof appInit||(vr.init=appInit),gr&&(0,c.Nw)(vr,"root",null,i),vr}()},59648:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(88671),i=n(13530),o=n(22288),a=n(27069),s=n(59095),c=n(2728),u=n(368);"undefined"!=typeof document&&(window._routeModules={});const l=[{path:"/",children:[{_component:"@_edenx_src/routes/404/page.tsx",id:"404/page",type:"nested",path:"404",lazyImport:()=>n.e(793).then(n.bind(n,65502)).then((e=>(0,i.eM)(e,"404/page"))).catch(i.qF),component:(0,r.Ay)({resolved:{},chunkName:()=>"404/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(793).then(n.bind(n,65502)).then((e=>(0,i.eM)(e,"404/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 65502}})},{_component:"@_edenx_src/routes/[region]/blog/detail.[id]/page.tsx",id:"(region)/blog/detail.(id)/page",type:"nested",data:"@_edenx_src/routes/[region]/blog/detail.[id]/page.data.ts",path:":region/blog/detail/:id",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(427)]).then(n.bind(n,54042)).then((e=>(0,i.eM)(e,"(region)/blog/detail.(id)/page"))).catch(i.qF),loader:a.w,component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/blog/detail.(id)/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(427)]).then(n.bind(n,54042)).then((e=>(0,i.eM)(e,"(region)/blog/detail.(id)/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 54042}}),shouldRevalidate:(0,i.rl)("(region)/blog/detail.(id)/page")},{_component:"@_edenx_src/routes/[region]/blog/page.tsx",id:"(region)/blog/page",type:"nested",data:"@_edenx_src/routes/[region]/blog/page.data.ts",path:":region/blog",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(463),n.e(460),n.e(442),n.e(516),n.e(61),n.e(401)]).then(n.bind(n,53653)).then((e=>(0,i.eM)(e,"(region)/blog/page"))).catch(i.qF),loader:s.w,component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/blog/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(463),n.e(460),n.e(442),n.e(516),n.e(61),n.e(401)]).then(n.bind(n,53653)).then((e=>(0,i.eM)(e,"(region)/blog/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 53653}}),shouldRevalidate:(0,i.rl)("(region)/blog/page")},{_component:"@_edenx_src/routes/[region]/partner/creator-agency/page.tsx",id:"(region)/partner/creator-agency/page",type:"nested",path:":region/partner/creator-agency",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(102)]).then(n.bind(n,76871)).then((e=>(0,i.eM)(e,"(region)/partner/creator-agency/page"))).catch(i.qF),component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/partner/creator-agency/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(102)]).then(n.bind(n,76871)).then((e=>(0,i.eM)(e,"(region)/partner/creator-agency/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 76871}})},{_component:"@_edenx_src/routes/[region]/privacyPolicy/page.tsx",id:"(region)/privacyPolicy/page",type:"nested",path:":region/privacyPolicy",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(353),n.e(45)]).then(n.bind(n,21982)).then((e=>(0,i.eM)(e,"(region)/privacyPolicy/page"))).catch(i.qF),component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/privacyPolicy/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(353),n.e(45)]).then(n.bind(n,21982)).then((e=>(0,i.eM)(e,"(region)/privacyPolicy/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 21982}})},{_component:"@_edenx_src/routes/[region]/seller/create/page.tsx",id:"(region)/seller/create/page",type:"nested",path:":region/seller/create",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(783)]).then(n.bind(n,86645)).then((e=>(0,i.eM)(e,"(region)/seller/create/page"))).catch(i.qF),component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/seller/create/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(783)]).then(n.bind(n,86645)).then((e=>(0,i.eM)(e,"(region)/seller/create/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 86645}})},{_component:"@_edenx_src/routes/[region]/seller/creator/page.tsx",id:"(region)/seller/creator/page",type:"nested",path:":region/seller/creator",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(481)]).then(n.bind(n,22148)).then((e=>(0,i.eM)(e,"(region)/seller/creator/page"))).catch(i.qF),component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/seller/creator/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(481)]).then(n.bind(n,22148)).then((e=>(0,i.eM)(e,"(region)/seller/creator/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 22148}})},{_component:"@_edenx_src/routes/[region]/seller/manage/page.tsx",id:"(region)/seller/manage/page",type:"nested",path:":region/seller/manage",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(168)]).then(n.bind(n,14442)).then((e=>(0,i.eM)(e,"(region)/seller/manage/page"))).catch(i.qF),component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/seller/manage/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(168)]).then(n.bind(n,14442)).then((e=>(0,i.eM)(e,"(region)/seller/manage/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 14442}})},{_component:"@_edenx_src/routes/[region]/seller/page.tsx",id:"(region)/seller/page",type:"nested",data:"@_edenx_src/routes/[region]/seller/page.data.ts",path:":region/seller",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(463),n.e(353),n.e(460),n.e(838),n.e(570)]).then(n.bind(n,47839)).then((e=>(0,i.eM)(e,"(region)/seller/page"))).catch(i.qF),loader:c.w,component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/seller/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(463),n.e(353),n.e(460),n.e(838),n.e(570)]).then(n.bind(n,47839)).then((e=>(0,i.eM)(e,"(region)/seller/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 47839}}),shouldRevalidate:(0,i.rl)("(region)/seller/page")},{_component:"@_edenx_src/routes/[region]/seller/promote/page.tsx",id:"(region)/seller/promote/page",type:"nested",path:":region/seller/promote",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(5)]).then(n.bind(n,37673)).then((e=>(0,i.eM)(e,"(region)/seller/promote/page"))).catch(i.qF),component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/seller/promote/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(5)]).then(n.bind(n,37673)).then((e=>(0,i.eM)(e,"(region)/seller/promote/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 37673}})},{_component:"@_edenx_src/routes/[region]/seller/sell/page.tsx",id:"(region)/seller/sell/page",type:"nested",path:":region/seller/sell",lazyImport:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(823)]).then(n.bind(n,74557)).then((e=>(0,i.eM)(e,"(region)/seller/sell/page"))).catch(i.qF),component:(0,r.Ay)({resolved:{},chunkName:()=>"(region)/seller/sell/page",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(378),n.e(74),n.e(740),n.e(158),n.e(894),n.e(111),n.e(823)]).then(n.bind(n,74557)).then((e=>(0,i.eM)(e,"(region)/seller/sell/page"))).catch(i.qF),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve(){return 74557}})}],isRoot:!0,data:"@_edenx_src/routes/layout.data.ts",_component:"@_edenx_src/routes/layout.tsx",id:"layout",type:"nested",lazyImport:()=>Promise.resolve().then(n.bind(n,22288)).then((e=>(0,i.eM)(e,"layout"))).catch(i.qF),loader:u.w,component:o.default,shouldRevalidate:(0,i.rl)("layout")}]},83073:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var n={},r=(t||{}).decode||i,o=0;for(;o=t?e:""+Array(t+1-r.length).join(n)+e},_={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},x=_;x.l=E,x.i=S,x.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function m(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return x},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i{"use strict";var r=n(17020),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(d){var i=h(n);i&&i!==d&&e(t,i,r)}var a=l(n);p&&(a=a.concat(p(n)));for(var s=c(t),g=c(n),m=0;m{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},48436:()=>{},46084:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c{"use strict";var r=n(23034);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5821:(e,t,n)=>{e.exports=n(17265)()},23034:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98727:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,c,u,l;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(!o(e[c],a[c]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=e.entries();!(c=l.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(t&&e instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!e.$$typeof)&&!o(e[u[c]],a[u[c]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},69428:(e,t,n)=>{"use strict";n.d(t,{m:()=>he});var r,i,o,a,s=n(5821),c=n.n(s),u=n(83112),l=n.n(u),p=n(98727),f=n.n(p),h=n(11855),d=n(46084),g=n.n(d),m="bodyAttributes",v="htmlAttributes",_="titleAttributes",y={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},b=(Object.keys(y).map((function(e){return y[e]})),"charset"),w="cssText",S="href",E="http-equiv",k="innerHTML",x="itemprop",A="name",O="property",T="rel",C="src",R="target",D={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},M="defaultTitle",j="defer",P="encodeSpecialCharacters",I="onChangeClientState",z="titleTemplate",N=Object.keys(D).reduce((function(e,t){return e[D[t]]=t,e}),{}),L=[y.NOSCRIPT,y.SCRIPT,y.STYLE],G="data-react-helmet",B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},q=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},H=function(e){var t=Y(e,y.TITLE),n=Y(e,z);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Y(e,M);return t||r||void 0},K=function(e){return Y(e,I)||function(){}},F=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return $({},e,t)}),{})},W=function(e,t){return t.filter((function(e){return void 0!==e[y.BASE]})).map((function(e){return e[y.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},X=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){X(e)}),0)}),Z=function(e){return clearTimeout(e)},Q="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||X:n.g.requestAnimationFrame||X,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Z:n.g.cancelAnimationFrame||Z,te=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ne=null,re=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,p=e.title,f=e.titleAttributes;ae(y.BODY,r),ae(y.HTML,i),oe(p,f);var h={baseTag:se(y.BASE,n),linkTags:se(y.LINK,o),metaTags:se(y.META,a),noscriptTags:se(y.NOSCRIPT,s),scriptTags:se(y.SCRIPT,u),styleTags:se(y.STYLE,l)},d={},g={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(d[e]=n),r.length&&(g[e]=h[e].oldTags)})),t&&t(),c(e,d,g)},ie=function(e){return Array.isArray(e)?e.join(""):e},oe=function(e,t){void 0!==e&&document.title!==e&&(document.title=ie(e)),ae(y.TITLE,t)},ae=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(G),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s=0;p--)n.removeAttribute(o[p]);i.length===o.length?n.removeAttribute(G):n.getAttribute(G)!==a.join(",")&&n.setAttribute(G,a.join(","))}},se=function(e,t){var n=document.head||document.querySelector(y.HEAD),r=n.querySelectorAll(e+"["+G+"]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===k)n.innerHTML=t.innerHTML;else if(r===w)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(G,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},ce=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[D[n]||n]=e[n],t}),t)},le=function(e,t,n){switch(e){case y.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[G]=!0,i=ue(n,r),[h.createElement(y.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=ce(n),o=ie(t);return i?"<"+e+" "+G+'="true" '+i+">"+q(o,r)+"":"<"+e+" "+G+'="true">'+q(o,r)+""}(e,t.title,t.titleAttributes,n)}};case m:case v:return{toComponent:function(){return ue(t)},toString:function(){return ce(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})[G]=!0,r);return Object.keys(t).forEach((function(e){var n=D[e]||e;if(n===k||n===w){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),h.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===k||e===w)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+q(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===L.indexOf(e);return t+"<"+e+" "+G+'="true" '+i+(a?"/>":">"+o+"")}),"")}(e,t,n)}}}},pe=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,p=void 0===l?"":l,f=e.titleAttributes;return{base:le(y.BASE,t,r),bodyAttributes:le(m,n,r),htmlAttributes:le(v,i,r),link:le(y.LINK,o,r),meta:le(y.META,a,r),noscript:le(y.NOSCRIPT,s,r),script:le(y.SCRIPT,c,r),style:le(y.STYLE,u,r),title:le(y.TITLE,{title:p,titleAttributes:f},r)}},fe=l()((function(e){return{baseTag:W([S,R],e),bodyAttributes:F(m,e),defer:Y(e,j),encode:Y(e,P),htmlAttributes:F(v,e),linkTags:J(y.LINK,[T,S],e),metaTags:J(y.META,[A,b,E,O,x],e),noscriptTags:J(y.NOSCRIPT,[k],e),onChangeClientState:K(e),scriptTags:J(y.SCRIPT,[C,k],e),styleTags:J(y.STYLE,[w],e),title:H(e),titleAttributes:F(_,e)}}),(function(e){ne&&ee(ne),e.defer?ne=Q((function(){re(e,(function(){ne=null}))})):(re(e),ne=null)}),pe)((function(){return null})),he=(i=fe,a=o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!f()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case y.SCRIPT:case y.NOSCRIPT:return{innerHTML:t};case y.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return $({},r,((t={})[n.type]=[].concat(r[n.type]||[],[$({},i,this.mapNestedChildrenToProps(n,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case y.TITLE:return $({},i,((t={})[r.type]=a,t.titleAttributes=$({},o),t));case y.BODY:return $({},i,{bodyAttributes:$({},o)});case y.HTML:return $({},i,{htmlAttributes:$({},o)})}return $({},i,((n={})[r.type]=$({},o),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=$({},t);return Object.keys(e).forEach((function(t){var r;n=$({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return h.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[N[n]||n]=e[n],t}),t)}(V(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case y.LINK:case y.META:case y.NOSCRIPT:case y.SCRIPT:case y.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=V(e,["children"]),r=$({},n);return t&&(r=this.mapChildrenToProps(t,r)),h.createElement(i,r)},U(t,null,[{key:"canUseDOM",set:function(e){i.canUseDOM=e}}]),t}(h.Component),o.propTypes={base:c().object,bodyAttributes:c().object,children:c().oneOfType([c().arrayOf(c().node),c().node]),defaultTitle:c().string,defer:c().bool,encodeSpecialCharacters:c().bool,htmlAttributes:c().object,link:c().arrayOf(c().object),meta:c().arrayOf(c().object),noscript:c().arrayOf(c().object),onChangeClientState:c().func,script:c().arrayOf(c().object),style:c().arrayOf(c().object),title:c().string,titleAttributes:c().object,titleTemplate:c().string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=i.peek,o.rewind=function(){var e=i.rewind();return e||(e=pe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);he.renderStatic=he.rewind},69257:(e,t,n)=>{"use strict";n.d(t,{gJ:()=>p,hz:()=>h,rV:()=>f,TO:()=>d});var r=n(92750),i=n(7544),o=(n(53416),n(11855)),a=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,s={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},c=function(e){return s[e]};var u,l={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(a,c)}},p=(0,o.createContext)();function f(){return l}var h=function(){function e(){(0,r.A)(this,e),this.usedNamespaces={}}return(0,i.A)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function d(){return u}},4255:(e,t,n)=>{"use strict";n.d(t,{B:()=>p});var r=n(12479),i=n(53416),o=n(11855),a=n(69257),s=n(46088);function c(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 u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,i=(0,o.useContext)(a.gJ)||{},c=i.i18n,p=i.defaultNS,f=n||c||(0,a.TO)();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new a.hz),!f){(0,s.mc)("You will need to pass in an i18next instance by using initReactI18next");var h=function(e){return Array.isArray(e)?e[e.length-1]:e},d=[h,{},!1];return d.t=h,d.i18n={},d.ready=!1,d}f.options.react&&void 0!==f.options.react.wait&&(0,s.mc)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var g=u(u(u({},(0,a.rV)()),f.options.react),t),m=g.useSuspense,v=g.keyPrefix,_=e||p||f.options&&f.options.defaultNS;_="string"==typeof _?[_]:_||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(_);var y=(f.isInitialized||f.initializedStoreOnce)&&_.every((function(e){return(0,s.NM)(e,f,g)}));function b(){return f.getFixedT(null,"fallback"===g.nsMode?_:_[0],v)}var w=(0,o.useState)(b),S=(0,r.A)(w,2),E=S[0],k=S[1],x=_.join(),A=l(x),O=(0,o.useRef)(!0);(0,o.useEffect)((function(){var e=g.bindI18n,t=g.bindI18nStore;function n(){O.current&&k(b)}return O.current=!0,y||m||(0,s.dM)(f,_,(function(){O.current&&k(b)})),y&&A&&A!==x&&O.current&&k(b),e&&f&&f.on(e,n),t&&f&&f.store.on(t,n),function(){O.current=!1,e&&f&&e.split(" ").forEach((function(e){return f.off(e,n)})),t&&f&&t.split(" ").forEach((function(e){return f.store.off(e,n)}))}}),[f,x]);var T=(0,o.useRef)(!0);(0,o.useEffect)((function(){O.current&&!T.current&&k(b),T.current=!1}),[f,v]);var C=[E,f,y];if(C.t=E,C.i18n=f,C.ready=y,y)return C;if(!y&&!m)return C;throw new Promise((function(e){(0,s.dM)(f,_,(function(){e()}))}))}},46088:(e,t,n)=>{"use strict";function r(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;rc,NM:()=>s,dM:()=>a,mc:()=>o});var i={};function o(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||i&&!a(o,e)))}(e,t,n):(o("i18n.languages were undefined or empty",t.languages),!0)}function c(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},35360:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,_=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case p:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case c:return e;default:return t}}case i:return t}}}function S(e){return w(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||w(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===s||e===a||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===_||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v)},t.typeOf=w},17020:(e,t,n)=>{"use strict";e.exports=n(35360)},18385:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case l:case u:case p:case g:case d:case c:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=d,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===p},t.isFragment=function(e){return v(e)===o},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===d},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===f},t.isSuspenseList=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===f||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===d||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},8173:(e,t,n)=>{"use strict";e.exports=n(18385)},83112:(e,t,n)=>{"use strict";var r,i=n(11855),o=(r=i)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,u=[];function l(){c=e(u.map((function(e){return e.props}))),p.canUseDOM?t(c):n&&(c=n(c))}var p=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return c},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,u=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){u.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),l()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(p,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(p,"canUseDOM",s),p}}},13067:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(29293),i=n(57644),o=n(97906);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(11855),c=n(9388),u=!1,l=n(23913),p=function(e){return e.scrollTop},f="unmounted",h="exited",d="entering",g="entered",m="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=h,r.appearStatus=d):i=g:i=t.unmountOnExit||t.mountOnEnter?f:h,r.state={status:i},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:h}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==g&&(t=d):n!==d&&n!==g||(t=m)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:c.findDOMNode(this);n&&p(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===h&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[c.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||u?this.safeSetState({status:g},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:d},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:g},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c.findDOMNode(this);t&&!u?(this.props.onExit(r),this.safeSetState({status:m},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:h},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:h},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(l.A.Provider,{value:null},"function"==typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function _(){}v.contextType=l.A,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_,onEntering:_,onEntered:_,onExit:_,onExiting:_,onExited:_},v.UNMOUNTED=f,v.EXITED=h,v.ENTERING=d,v.ENTERED=g,v.EXITING=m;var y=v,b=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{"use strict";n.d(t,{A:()=>d});var r=n(57644),i=n(29293),o=n(41832),a=n(97906),s=n(11855),c=n(23913);function u(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function l(e,t,n){return null!=n[t]?n[t]:e.props[t]}function p(e,t,n){var r=u(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var c in t){if(i[c])for(r=0;r{"use strict";var r=n(11855);t.A=r.createContext(null)},60162:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(8173),o=n(11855),a=r(o),s=r(n(60162)),c=r(n(27903)),u=r(n(55355)),l=r(n(57311)),p=r(n(4674));function f(){return(f=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var x=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&k(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=T&&(T=t+1),A.set(e,t),O.set(t,e)},M="style["+b+'][data-styled-version="5.3.11"]',j=new RegExp("^"+b+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),P=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(b))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(b,"active"),r.setAttribute("data-styled-version","5.3.11");var a=z();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},L=function(){function e(e){var t=this.element=N(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),q=/(a)(d)/gi,H=function(e){return String.fromCharCode(e+(e>25?39:97))};function K(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=H(t%52)+n;return(H(t%52)+n).replace(q,"$1-$2")}var F=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=function(e){return F(5381,e)};function J(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=F(this.baseHash,n.hash),l="",p=0;p>>0);if(!t.hasNameForId(r,g)){var m=n(l,"."+g,void 0,r);t.insertRules(r,g,m)}i.push(g)}}return i.join(" ")},e}(),Z=/^\s*\/\/.*$/gm,Q=[":","[",".","#"];function ee(e){var t,n,r,i,o=void 0===e?m:e,a=o.options,s=void 0===a?m:a,u=o.plugins,l=void 0===u?g:u,p=new c(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,c,u,l,p){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),d=function(e,r,o){return 0===r&&-1!==Q.indexOf(o[n.length])||o.match(i)?e:"."+t};function v(e,o,a,s){void 0===s&&(s="&");var c=e.replace(Z,""),u=o&&a?a+" "+o+" { "+c+" }":c;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(a||!o?"":o,u)}return p.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,d))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),v.hash=l.length?l.reduce((function(e,t){return t.name||k(15),F(e,t.name)}),5381).toString():"",v}var te=a.createContext(),ne=te.Consumer,re=a.createContext(),ie=(re.Consumer,new V),oe=ee();function ae(){return o.useContext(te)||ie}function se(){return o.useContext(re)||oe}function ce(e){var t=o.useState(e.stylisPlugins),n=t[0],r=t[1],i=ae(),c=o.useMemo((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=o.useMemo((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return o.useEffect((function(){s(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),a.createElement(te.Provider,{value:c},a.createElement(re.Provider,{value:u},e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return k(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),le=/([A-Z])/,pe=/([A-Z])/g,fe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function de(e){return le.test(e)?e.replace(pe,he).replace(fe,"-ms-"):e}var ge=function(e){return null==e||!1===e||""===e};function me(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function Se(e){return e.replace(be,"-").replace(we,"")}var Ee=function(e){return K(W(e)>>>0)};function ke(e){return"string"==typeof e&&!0}var xe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ae=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Oe(e,t,n){var r=e[n];xe(t)&&xe(r)?Te(r,t):e[n]=t}function Te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(ke(e)?e:Se(_(e)));return Me(e,f({},i,{attrs:S,componentId:o}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Te({},e.defaultProps,t):t}}),Object.defineProperty(k,"toString",{value:function(){return"."+k.styledComponentId}}),i&&p(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var je=function(e){return function e(t,n,r){if(void 0===r&&(r=m),!i.isValidElementType(n))return k(1,String(n));var o=function(){return t(n,r,_e.apply(void 0,arguments))};return o.withConfig=function(i){return e(t,n,f({},r,{},i))},o.attrs=function(i){return e(t,n,f({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},o}(Me,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){je[e]=je(e)}));var Pe=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=J(e),V.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(me(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&V.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),Ie=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=z();return""},this.getStyleTags=function(){return e.sealed?k(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return k(2);var n=((t={})[b]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=z();return r&&(n.nonce=r),[a.createElement("style",f({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?k(2):a.createElement(ce,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return k(3)},e}(),ze={StyleSheet:V,masterSheet:ie};t.NP=function(e){var t=o.useContext(Ce),n=o.useMemo((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?k(8):t?f({},t,{},e):e:k(14)}(e.theme,t)}),[e.theme,t]);return e.children?a.createElement(Ce.Provider,{value:n},e.children):null},t.Ay=je},50709:(e,t,n)=>{"use strict";n.d(t,{S:()=>c});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]