/*! For license information please see 158.ed83d71c.js.LICENSE.txt */ (self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[158],{51434:(e,t,n)=>{"use strict";var r=n(11855);n(47635);function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3?arguments[3]:void 0,s=(0,r.useRef)(),c=i((0,r.useState)(!1),2),l=c[0],u=c[1],p=i((0,r.useState)(0),2),f=p[0],h=p[1],d=(0,r.useCallback)((function(e){u(e[0].isIntersecting),h(e[0].intersectionRatio),e[0].isIntersecting&&void 0!==a&&"function"==typeof a&&a()}),[a]);return(0,r.useEffect)((function(){var n=s.current;e&&(n="function"==typeof e?e():e);var r=new IntersectionObserver(d,t);return n&&r.observe(n),function(){return r.disconnect()}}),[s.current,e].concat(o(n),[a])),[s,l,f]}},8806:(e,t,n)=>{"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function i(){for(var e=[],t=0;t>e/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,z)}var T=function(){return z().replace(/-/g,"").slice(0,19)},I=function(e){return function(e,t,n){if("string"==typeof e&&"number"==typeof n){var r,o=[];n=n<=25?n:n%25;var i=String.fromCharCode(n+97);r=e.split(i);for(var a=0;a7344e6)return void this._requestWebId();if(r>432e7)return void this._updateWebId(e)}this.cfg.envInfo.user.user_unique_id=t,this.cfg.envInfo.user.web_id=e,this.storage.setItem(this.tokensKey,{user_unique_id:t,web_id:e,timestamp:Date.now()}),this.tokenReady=!0},e.prototype._requestWebId=function(){this.isNoWebid?this._setTokenId(T()):this._fetchWebId(this.fetchUrl,!1)},e.prototype._updateWebId=function(e){var t=""+this.domain+h+"/"+e+"/update";this._fetchWebId(t,!0)},e.prototype._fetchWebId=function(e,t){var n=this;A(e,3e3,{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.config.app_key,(function(e){e&&0===e.e?n._setTokenId(e.web_id):(n.hook.emit("token-error"),console.warn("[]appid: "+n.config.app_id+", "+(t?" update":"get")+" webid error, init error~"))}),(function(){n.hook.emit("token-error"),console.warn("[]appid: "+n.config.app_id+", get webid error, init error~")}),!0,!1,this.enable_ttwebid)},e.prototype._setTtWid=function(e,t){if(!t){var n={web_id:e.web_id||"",timestamp:Date.now()},r=e.user_unique_id||"";this.cfg.envInfo.user.user_unique_id=this.cfg.envInfo.user.user_unique_id||r,this.storage.setCookie(this.cookieKey,encodeURIComponent(JSON.stringify(n)),108e5,this.cookieDomain)}this.tokenReady=!0,this.hook.emit("token-ready")},e.prototype._setTokenId=function(e){var t=this.cfg.envInfo.user.web_id||e,n={web_id:t,user_unique_id:this.cfg.envInfo.user.user_unique_id||t,timestamp:Date.now()};this.enableCookie&&this.storage.setCookie(this.cookieKey,encodeURIComponent(JSON.stringify(n)),this.expiresTime,this.cookieDomain),this.storage.setItem(this.tokensKey,n),this.cfg.envInfo.user.web_id=this.cfg.envInfo.user.web_id||t,this.cfg.envInfo.user.user_unique_id=this.cfg.envInfo.user.user_unique_id||t,this.tokenReady=!0,this.hook.emit("token-ready")},e.prototype._setUuid=function(e){try{var t=this.storage.getItem(this.tokensKey);if(e){"string"!=typeof e&&console.warn("user_unique_id must be string!!! please check");var n=String(e);this.cfg.envInfo.user.user_unique_id=n,t&&t.user_unique_id?t.user_unique_id!==n&&(t.user_unique_id=n,this.hook.emit("uuid-change")):((t={}).user_unique_id=n,this.hook.emit("uuid-change")),t.timestamp=Date.now(),this.storage.setItem(this.tokensKey,t),this.session._resetSessionId()}else this._clearUuid(t)}catch(e){}},e.prototype._clearUuid=function(e){this.enable_ttwebid||e&&e.web_id&&(this.cfg.envInfo.user.user_unique_id=e.web_id,e.user_unique_id=e.web_id,e.timestamp=Date.now(),this.storage.setItem(this.tokensKey,e))},e.prototype._setWebid=function(e){if(!this.enable_ttwebid){var t=this.storage.getItem(this.tokensKey),n=!1;t&&t.web_id?t.web_id!==e&&(t.user_unique_id=t.web_id===t.user_unique_id?e:t.user_unique_id,t.web_id=e,this.cfg.envInfo.user.user_unique_id&&this.cfg.envInfo.user.user_unique_id!==this.cfg.envInfo.user.web_id||(this.cfg.envInfo.user.user_unique_id=e,n=!0)):(t={}).web_id=e,t.timestamp=Date.now(),this.cfg.envInfo.user.web_id=e,this.storage.setItem(this.tokensKey,t),n&&this.hook.emit("uuid-change")}},e.prototype.isTokenReady=function(){return this.tokenReady},e.prototype._getTobId=function(e){var t=this.domain+"/tobid";A(t,3e4,{app_id:this.config.app_id,user_unique_id:this.cfg.envInfo.user.user_unique_id,web_id:this.cfg.envInfo.user.web_id},this.config.app_key,(function(t){t&&0===t.e?e(t.tobid):e(null)}),(function(){e(null)}),!0,!1,this.enable_ttwebid)},e}(),j=function(e){navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1)},N=function(e,t,n){void 0===e&&(e=[]),void 0===t&&(t=function(e){return e}),void 0===n&&(n=20);var r,o=[],i=0;return e.forEach((function(e){var a=t(e);void 0===r?r=a:(a!==r||o[i].length>=n)&&(i+=1,r=a),o[i]=o[i]||[],o[i].push(e)})),o},M=function(){function e(e,t,n,r,o,i){this.collect=e,this.cfg=n,this.config=t,this._token=r,this.appInfo=t.app_key||t.app_id,this.debugMode=!!t.log,this.evtDataKey=k(this.appInfo,!1);var a=t.channel_domain||I(f[t.channel]);if(this.reportUrl=t.report_url?t.report_url:""+a+d,this.storage=new p(!0),this.EventStorage=new p(!1),this.maxStorage=t.max_storage_num||-1,this.maxReport=t.max_report||20,this.reportTime=t.reportTime||30,this.timeout=t.timeout||0,this.closeStorage=!0,this.session=i,this.plugin=o,this.withCredentials=t.enable_ttwebid,this.plugin){var s=t.enable_storage,c=t.disable_storage;(s||!1===c)&&(this.closeStorage=!1)}this.addListener()}return e.prototype.addListener=function(){var e=this;window.addEventListener("unload",(function(){e.report(!0)}),!1),j((function(){e.report(!0)})),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e.report(!0)}),!1)},e.prototype.setReady=function(){this.isReady=!0,this.closeStorage||this.checkStorageEvent(),this.report()},e.prototype.event=function(e){var t=this;void 0===e&&(e=[]);var n=i(e,this.storage.getItem(this.evtDataKey)||[]);this.storage.setItem(this.evtDataKey,n),this.reportTimer&&clearTimeout(this.reportTimer),n.length>=this.maxReport?this.report(!1):this.reportTimer=setTimeout((function(){t.report(!1),t.reportTimer=null}),this.reportTime)},e.prototype.beconEvent=function(e){void 0===e&&(e=[]);var t=this._mergeEvents(e);this._dealData(t,!0)},e.prototype.report=function(e){if(void 0===e&&(e=!1),!this.collect.destroyInstance&&this._token.isTokenReady()&&this.isReady){var t=this.storage.getItem(this.evtDataKey)||[],n=this._mergeEvents(t);this.storage.removeItem(this.evtDataKey),this._dealData(n,e)}},e.prototype._mergeEvents=function(e){var t=this;if(!e.length)return e;var n=this.cfg.get();return n.header.custom=JSON.stringify(n.header.custom),N(e,(function(e){return!t.closeStorage&&!!e.params.__disable_storage__}),this.maxReport).map((function(e){return r({events:e.map((function(e){var n=r({},t.cfg.get("evtParams"),e.params);delete n.__disable_storage__;var o=[];return t.plugin&&t.plugin.ab&&t.plugin.ab.versions&&t.plugin.ab.extVersions&&(o=-1!==window.location.href.indexOf("multilink=true")?t.plugin.ab.mulilinkVersions.concat(t.plugin.ab.extVersions):t.plugin.ab.versions.concat(t.plugin.ab.extVersions)),r({},e,{params:JSON.stringify(n),ab_sdk_version:o.join(","),session_id:t.session._getSessionId()})})),user:n.user,header:n.header},t.closeStorage?{}:{__disable_storage__:e[0].params.__disable_storage__},{verbose:t.debugMode?1:void 0,user_unique_type:t.config.enable_ttwebid?t.config.user_unique_type:void 0})}))},e.prototype._dealData=function(e,t){var n=this;if(!e.length)return e;var r=[];r=N(e,(function(e){return!!e.__disable_storage__}),this.maxReport),!this.closeStorage&&this.plugin.maxStorage&&this.plugin.maxStorage(r,this.maxStorage,this.evtDataKey,this.storage);var o={};r.forEach((function(e){var r=T();if(!n.closeStorage&&!e[0].__disable_storage__){var i=JSON.parse(JSON.stringify(e));i&&i[0]&&(i[0].header.__storage_index__=Date.now()),o[r]=i,n.EventStorage.setItem(n.evtDataKey,o)}n._send(r,e,t)}))},e.prototype._send=function(e,t,n){var r=this;this.isSending=!0;var o=function(){r.isSending=!1};if(!this.closeStorage)try{t&&t[0]&&t[0].header.__storage_index__&&delete(t=JSON.parse(JSON.stringify(t)))[0].header.__storage_index__}catch(e){}this.plugin&&this.plugin.et_test&&this.plugin.et_test.send(t),A(this.reportUrl,this.timeout,t,this.config.app_key,(function(){if(o(),r.plugin&&!r.closeStorage){var t=r.EventStorage.getItem(r.evtDataKey)||{};Object.keys(t).length?(delete t[e],r.EventStorage.setItem(r.evtDataKey,t)):r.EventStorage.removeItem(r.evtDataKey)}}),(function(e,t){o(),r.cfg.get("reportErrorCallback")(e,t),r.plugin&&r.plugin.monitor&&r.plugin.monitor.sdkError(r.config.app_key,r.reportUrl,e,t)}),!1,n,this.withCredentials,o),this.plugin&&this.plugin.monitor&&this.plugin.monitor.sdkOnload(this.config.app_key,this.reportUrl,t)},e.prototype.checkStorageEvent=function(){var e=this;try{var t=this.EventStorage.getItem(this.evtDataKey)||{},n=Object.keys(t);n.length>0&&setTimeout((function r(){for(var o=[],i=0;i0&&o.push(n.shift());o.length>0&&o.forEach((function(n){e._send(n,t[n],!1)})),setTimeout(r,5)}),5)}catch(e){}},e}(),P=void 0,D=(new Date).getTimezoneOffset(),R=parseInt(""+-D/60,10),L=60*D,U=function(){function e(e,t,n){this.cookieDomain=t.cookie_domain||"",this.initConfig=t;var r=function(e,t){var n,r,o=function(e){var t=document.createElement("a");return t.href=e,t},i=window.screen.width,a=window.screen.height,s=window.navigator.appVersion,c=window.navigator.userAgent,l=window.navigator.language,u=document.referrer,f=u?o(u).hostname:"",h=function(e){var t=o(e).search;t=t.slice(1);var n={};return t.split("&").forEach((function(e){var t,r,o=e.split("=");o.length&&(t=o[0],r=o[1]);try{n[t]=decodeURIComponent(void 0===r?"":r)}catch(e){n[t]=r}})),n}(window.location.href),d="",g="",m="",v=""+parseFloat(s);-1!==(n=c.indexOf("Opera"))&&(m="Opera",v=c.substring(n+6),-1!==(n=c.indexOf("Version"))&&(v=c.substring(n+8))),-1!==(n=c.indexOf("Edge"))?(m="Microsoft Edge",v=c.substring(n+5)):-1!==(n=c.indexOf("MSIE"))?(m="Microsoft Internet Explorer",v=c.substring(n+5)):-1!==c.indexOf("Chrome")?-1!==(n=c.indexOf("Chrome"))&&(m="Chrome",v=c.substring(n+7)):-1!==c.indexOf("Safari")?-1!==(n=c.indexOf("Safari"))&&(m="Safari",v=c.substring(n+7),-1!==(n=c.indexOf("Version"))&&(v=c.substring(n+8))):-1!==(n=c.indexOf("Firefox"))&&(m="Firefox",v=c.substring(n+8)),-1!==(r=v.indexOf(";"))&&(v=v.substring(0,r)),-1!==(r=v.indexOf(" "))&&(v=v.substring(0,r)),-1!==(r=v.indexOf(")"))&&(v=v.substring(0,r));for(var _,y,b=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(s)?"wap":"web",w=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],k=0;k-1&&(t=e.slice(0,e.indexOf("Build/")))}));else if("ios"===e||"mac"===e){var n=navigator.userAgent.replace("Mozilla/5.0 (",""),r=n.indexOf(";");t=n.slice(0,r)}}catch(e){}return t.trim()}(d),language:l,referrer:u,referrer_host:f,utm_source:O.utm_source,utm_medium:O.utm_medium,utm_campaign:O.utm_campaign,utm_term:O.utm_term,utm_content:O.utm_content}}(e,this.cookieDomain);this.configKey=function(e){return"__tea_cache_config_"+e}(""+e),this.sessionStorage=new p(!1,"session"),this.localStorage=new p(!1,"local"),n&&(this.storage=1===n?this.sessionStorage:this.localStorage),this.envInfo={user:{user_unique_id:P,user_type:P,user_id:P,user_is_auth:P,user_is_login:P,device_id:P,web_id:P,ip_addr_id:P},header:{app_id:P,app_name:P,app_install_id:P,install_id:P,app_package:P,app_channel:P,app_version:P,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:P,ab_version:P,ab_sdk_version:P,traffic_type:P,client_ip:P,device_brand:P,os_api:P,access:P,language:r.language,region:P,app_language:P,app_region:P,creative_id:P,ad_id:P,campaign_id:P,log_type:P,rnd:P,platform:r.platform,sdk_version:g,sdk_lib:"js",province:P,city:P,timezone:R,tz_offset:L,tz_name:P,sim_region:P,carrier:P,resolution:r.screen_width+"x"+r.screen_height,browser:r.browser,browser_version:r.browser_version,referrer:r.referrer,referrer_host:r.referrer_host,width:r.screen_width,height:r.screen_height,screen_width:r.screen_width,screen_height:r.screen_height,utm_term:r.utm_term,utm_content:r.utm_content,utm_source:r.utm_source,utm_medium:r.utm_medium,utm_campaign:r.utm_campaign,tracer_data:JSON.stringify(r.tracer_data),custom:{}}},this.evtParams={},this.reportErrorCallback=function(){}}return e.prototype.set=function(e,t){var n=this;if(t||(this.delete(e),t=void 0),"evtParams"===e||"_staging_flag"===e){var o;o="evtParams"===e?t:{_staging_flag:Number(t)};var i=r({},o);Object.keys(i).forEach((function(e){n.evtParams[e]=i[e]}))}else if("reportErrorCallback"===e&&"function"==typeof t)this.reportErrorCallback=t;else{var a="";if(e.indexOf(".")>-1){var s=e.split(".");a=s[0],e=s[1]}"os_version"===e&&(e=""+t),a?"user"===a||"header"===a?this.envInfo[a][e]=t:this.envInfo.header.custom[e]=t:this.envInfo.user.hasOwnProperty(e)?["user_type","ip_addr_id"].indexOf(e)>-1?this.envInfo.user[e]=t?Number(t):t:["user_id"].indexOf(e)>-1?this.envInfo.user[e]=t?String(t):t:["user_is_auth","user_is_login"].indexOf(e)>-1?this.envInfo.user[e]=Boolean(t):"device_id"===e&&(this.envInfo.user[e]=t):this.envInfo.header.hasOwnProperty(e)?this.envInfo.header[e]=t:this.envInfo.header.custom[e]=t}},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:JSON.parse(JSON.stringify(this.envInfo[e])):JSON.parse(JSON.stringify(this.envInfo))}catch(e){console.log("get config stringify error ")}},e.prototype.setStore=function(e){try{var t=this.storage.getItem(this.configKey);if(Object.keys(e).length){var n=Object.assign(e,t);this.storage.setItem(this.configKey,n)}}catch(e){}},e.prototype.getStore=function(){try{var e=this.storage.getItem(this.configKey);return Object.keys(e).length?e:null}catch(e){return null}},e.prototype.delete=function(e){try{var t=this.storage.getItem(this.configKey);t&&t.hasOwnProperty(e)&&(delete t[e],this.storage.setItem(this.configKey,t))}catch(e){}},e}(),G=function(){function e(e,t){this.isLog=t,this.name=e||""}var t=e.prototype;return t.info=function(e){this.isLog&&console.log("["+this.name+"] "+e)},t.warn=function(e){this.isLog&&console.warn("["+this.name+"] "+e)},t.error=function(e){this.isLog&&console.error("["+this.name+"] "+e)},t.throw=function(e){throw this.error(this.name),new Error(e)},e}(),B=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)}))},V=function(){function e(e,t){this.storage=new p(!1,"session"),this.sessionKey=function(e){return"__tea_session_id_"+e}(e),this.disableSession=t.disable_session,this.expireTime=t.expireTime||18e5,this.disableSession||this._setSessionId()}return e.prototype._updateSessionId=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;Date.now()-t>this.expireTime?e={sessionId:B(),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:B(),timestamp:Date.now()},this.storage.setItem(this.sessionKey,t),this.sessionExp=setInterval((function(){e._checkEXp()}),this.expireTime)},e.prototype._getSessionId=function(){if(this.disableSession)return"";var e=this.storage.getItem(this.sessionKey);return e&&e.sessionId?e.sessionId:null},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:B(),timestamp:Date.now()};this.storage.setItem(this.sessionKey,e)},e.prototype._checkEXp=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=Date.now()-e.timestamp;t+30>=this.expireTime&&(console.log(t),e={sessionId:B(),timestamp:Date.now()},this.storage.setItem(this.sessionKey,e))}},e}(),F=function(){function e(){this._hooks={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var n=this;e&&t&&"function"==typeof t&&this.on(e,(function r(o){t(o),n.off(e,r)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var n=this._hooks[e].indexOf(t);-1!==n&&this._hooks[e].splice(n,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t){e&&this._hooks[e]&&this._hooks[e].length&&i(this._hooks[e]).forEach((function(e){try{e(t)}catch(e){}}))},e}();function H(e,t,n){return{title:t||document.title||location.pathname,url:n||location.href,url_path:e||location.pathname}}function q(){return Date.now()}function K(){var e=function(){if("undefined"!=typeof window)return window.TeaAnalyticsObject}();return window[e]?window[e].l:q()}function W(){var e=!1;return["hidden","msHidden","webkitHidden"].forEach((function(t){void 0!==document[t]&&(e=!0)})),e}var X=function(){function e(e,t){var n=this;this._sendEvent=function(e){void 0===e&&(e=!1);var t=e?n.options.aliveDTime:q()-n.sessionStartTime;q()-n.pageStartTime>n.options.maxDuration||(n.event("predefine_page_alive",r({},H(n.url_path,n.title,n.url),{duration:t,is_support_visibility_change:n.options.sup_vis_change?1:0,startTime:n.sessionStartTime}),"sdk"),n.sessionStartTime=q())},this._setUpTimer=function(){return n.timerHandler&&clearInterval(n.timerHandler),setInterval((function(){q()-n.sessionStartTime>n.options.aliveDTime&&n._sendEvent(!0)}),1e3)},this._visibilitychange=function(){"hidden"===document.visibilityState?n.timerHandler&&(clearInterval(n.timerHandler),n._sendEvent()):"visible"===document.visibilityState&&(n.sessionStartTime=q(),n.timerHandler=n._setUpTimer())},this._beforeunload=function(){document.hidden||n._sendEvent()},this._wtest=function(){document.getElementById("wtest").innerHTML="visibilitychange"},this._dtest=function(){document.getElementById("dtest").innerHTML="dvisibilitychange"},this.event=e,this.config=t,this.isSupVisChange=W(),this.options={maxDuration:432e5,aliveDTime:6e4,sup_vis_change:W()},this.pageStartTime=K(),this.sessionStartTime=this.pageStartTime,this.timerHandler=null,this.disableCallback=function(){}}return 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._enablePageAlive=function(){var e=this;return this.timerHandler=this._setUpTimer(),document.addEventListener("visibilitychange",this._visibilitychange),j(this._beforeunload),function(){e._beforeunload(),document.removeEventListener("visibilitychange",e._visibilitychange),window.removeEventListener("beforeunload",e._beforeunload),window.removeEventListener("pagehide",e._beforeunload)}},e}(),Q=function(){function e(e,t){var n=this;this._visibilitychange=function(){"hidden"===document.visibilityState?n.activeEndTime=q():"visible"===document.visibilityState&&(n.activeEndTime&&(n.totalTime+=n.activeEndTime-n.activeStartTime,n.activeTimes+=1),n.activeEndTime=void 0,n.activeStartTime=q())},this._beforeunload=function(){if(n.totalTime+=(n.activeEndTime||q())-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.event=e,this.config=t,this.isSupVisChange=W(),this.options={sup_vis_change:this.isSupVisChange},this.maxDuration=t.maxDuration||864e5,this.disableCallback=function(){},this.pageStartTime=K(),this._resetData()}return 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?K():Date.now(),this.activeEndTime=void 0,this.activeTimes=1,this.totalTime=0},e.prototype._sendEventPageClose=function(){var e=q()-this.pageStartTime;this.totalTime>=this.maxDuration||(this.event("predefine_page_close",r({},H(this.url_path,this.title,this.url),{active_times:this.activeTimes,duration:this.totalTime,total_duration:e,is_support_visibility_change:this.options.sup_vis_change?1:0}),"sdk"),this.pageStartTime=Date.now(),this._resetData())},e.prototype._enablePageClose=function(){var e=this;return document.addEventListener("visibilitychange",this._visibilitychange),j(this._beforeunload),function(){e._beforeunload(),document.removeEventListener("visibilitychange",e._visibilitychange),window.removeEventListener("beforeunload",e._beforeunload),window.removeEventListener("pagehide",e._beforeunload)}},e}(),Y=function(){function e(e,t){this.pageAlive=new X(e,t),this.pageClose=new Q(e,t),this.title=document.title||location.pathname,this.url=location.href,this.url_path=location.pathname,this._enable(this.url_path,this.title,this.url)}return 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.reset=function(e,t,n){this._disable(),this._enable(e,t,n)},e}(),J=function(){function e(e){var t=this;this._setInterval=function(){t._clearIntervalFunc=function(e,t){void 0===e&&(e=function(){}),void 0===t&&(t=1e3);var n,r=Date.now()+t;return n=window.setTimeout((function o(){var i=Date.now()-r;e(),r+=t,n=window.setTimeout(o,Math.max(0,t-i))}),t),function(){window.clearTimeout(n)}}((function(){t._isSessionhasEvent&&t._endCurrentSession()}),t.sessionInterval)},this._clearInterval=function(){t._clearIntervalFunc&&t._clearIntervalFunc()},this.sessionInterval=6e4,this._eventSenderFunc=e,this._startTime=0,this._lastTime=0,this._setInterval()}return e.prototype._endCurrentSession=function(){this._eventSenderFunc("_be_active",{start_time:this._startTime,end_time:this._lastTime,url:window.location.href,referrer:window.document.referrer}),this._isSessionhasEvent=!1,this._startTime=0},e.prototype.process=function(){this._isSessionhasEvent||(this._isSessionhasEvent=!0,this._startTime=+new Date);var e=this._lastTime||+new Date;this._lastTime=+new Date,this._lastTime-e>this.sessionInterval&&(this._clearInterval(),this._endCurrentSession(),this._setInterval())},e}(),Z=function(){function e(e){this.event=e,this.cache={},this.duration=6e4,this.profileReady=!1,this.lastId=0,this.lastOnceId=0}return e.prototype.start=function(){this.profileReady=!0},e.prototype.setProfile=function(e){var t=this._formatParams(e);t&&Object.keys(t).length&&(this._pushCache(t),this.event("__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.event("__profile_set_once",r({},t,{profile:!0})))},e.prototype.incrementProfile=function(e){e?this.event("__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.event("__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.event("__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 o in e)"string"==typeof e[o]||"number"==typeof e[o]||"Array"===Object.prototype.toString.call(e[o]).slice(8,-1)?r[o]=e[o]:console.warn("please check the value of params:"+o+", must be string,number,Array !!!");var i=Object.keys(r);if(!i.length)return;var a=Date.now();return i.filter((function(r){var o=n.cache[r];return t?!o:!(o&&n._compare(o.val,e[r])&&a-o.timestamp-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;ie[n]&&ie[n].forEach((function(t){"function"==typeof t&&t(e,r)}))}}function pe(e,t){(window.opener||window.parent).postMessage("[tea-sdk]ready","*"),(window.opener||window.parent).postMessage({type:"tea:sdk:info",config:e,version:t},"*"),window.addEventListener("message",ue,!1)}function fe(e,t,n){var r=document.createElement("script");r.src=e,r.onerror=function(){n(e)},r.onload=function(){t()},document.getElementsByTagName("head")[0].appendChild(r)}window.TEAVisualEditor=window.TEAVisualEditor||{};var he="",de=!1;function ge(e){var t=e.event,n=e.editorUrl;e.collectInstance,e.fromSession,de||(de=!0,fe(n,(function(){ce(t,"abEditorScriptloadSuccess")}),(function(){t&&ce(t,"abEditorScriptloadError"),de=!1})))}var me,ve,_e=I("1fz22z22z1nz21z4mz4bz4bz21z1dz4dz4iz49z21z1az1kz1az1bz1lz49z24z18z4az1gz19z27z22z1cz1bz22z1mz21z4az1az1mz1kz4bz1mz19z1hz4bz21z22z18z22z1gz1az49z23z21z4bz1jz1mz1ez49z21z1bz1iz4bz1az1mz1jz1jz1cz1az22z4bz24z1gz21z23z18z1jz49z18z19z49z1jz1mz18z1bz1cz20z4az1hz21")+"?query="+Date.now();!function(e){e[e.No=0]="No",e[e.Ing=1]="Ing",e[e.Complete=2]="Complete"}(me||(me={})),function(e){e[e.Var=0]="Var",e[e.All=1]="All"}(ve||(ve={}));var ye=function(){function e(e,t,n){this.appId=0,this.user={},this.header={},this.domain="",this.protocal=location.protocol,this.fetchStatus=me.No,this.callbacks=[],this.data=null,this.versions=[],this.extVersions=[],this.mulilinkVersions=[],this.collector=e;var r=this.collector._initConfig,o=r.app_id,i=r.channel,a=r.enable_multilink,s=r.multilink_timeout_ms,c=r.ab_channel_domain,l=r.channel_domain,u=r.enable_ab_visual,p=r.ab_timeout;if(this.appId=o,this.timeout=p||3e3,this.domain=c||I(E[i||"cn"]),this.domain){this.needOverlay=a||u||!1,this.enable_ab_visual=u,this.enable_multilink=a,this.closeTime=s||500,this.Hook=t;var h=l||I(f[i]);if(this.reportUrl=""+h+d,u){!function(e,t,n,r){se(["*"]);var o="";pe(r,g);var i,a=window.performance.getEntriesByType("resource"),s="";try{if(a&&a.length&&(a.forEach((function(e){"script"===e.initiatorType&&e.name&&-1!==e.name.indexOf("collect")&&(s=e.name)})),s||document.currentScript&&(s=document.currentScript.src),s&&(i=s.split("/"))&&i.length)){o="https:/";for(var c=2;c=2592e6){try{ee.removeItem("__tea_sdk_ab_version")}catch(e){}return null}return t}(this.appId);if(t){var n=t.ab_version,r=t.data,o=t.ab_ext_version,i=t.ab_version_multilink;this.mulilinkVersions=i||[],this.extVersions=o,n&&n.length&&(this.versions=n,this.data=r,setTimeout((function(){e._configVersions()})))}},e.prototype.wait=function(){var e=this;this.needOverlay&&(this.isWait||(this.openOverlayer(),this.isWait=!0),setTimeout((function(){e.closeOverlayer()}),this.closeTime))},e.prototype.getAllVars=function(e){if("function"!=typeof e)throw new Error("callback must be a function");var t={callback:e,type:ve.All};this.fetchStatus===me.Complete?this._getAllVars(t):this.callbacks.push(t)},e.prototype._getAllVars=function(e){(0,e.callback)(this.data?JSON.parse(JSON.stringify(this.data)):{})},e.prototype.getVids=function(){try{var e=ne(this.appId).ab_version,t="";return e&&e.length&&(t=e.join(",")),t}catch(e){return""}},e.prototype.getAbSdkVersion=function(e){e(this.getVids())},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:ve.Var};if(this.fetchStatus===me.Complete){this._getVar(r,e);try{this.Hook.emit("onAbSdkVersionChange",this.getVids())}catch(e){}}else this.callbacks.push(r)},e.prototype._getVar=function(e,t){var n=e.name,r=e.defaultValue,o=e.callback,i=this.data;if(i){if("object"==typeof i[n]&&void 0!==i[n].val){var a=i[n].vid;return"$ab_url"===t?(-1===this.mulilinkVersions.indexOf(a)&&this.mulilinkVersions.push(a),this._updateMultilinkVersions()):(-1===this.versions.indexOf(a)&&this.versions.push(a),this._updateVersions()),this._abEvent(a,t,r),void o(i[n].val)}o(r)}else o(r)},e.prototype._abEvent=function(e,t,n){var r=this;try{if(e){var o={event:"abtest_exposure",ab_sdk_version:""+e,params:JSON.stringify({app_id:this.appId,ab_url:"$ab_url"===t?n:window.location.href}),local_time_ms:Date.now()},i=this.collector._config.get(),a=i.header,s=i.user;a.ab_sdk_version=""+e,a.custom=JSON.stringify(a.custom);var c={events:[o],user:s,header:a};"$ab_url"===t?window.navigator.sendBeacon?window.navigator.sendBeacon(this.reportUrl,JSON.stringify([c])):A(this.reportUrl,2e4,[c],""):setTimeout((function(){A(r.reportUrl,2e4,[c],"")}),16)}}catch(e){}},e.prototype.openOverlayer=function(){!function(){if(!document.getElementById(S)){var e="body { opacity: 0 !important; }",t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id=S,n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}}()},e.prototype.closeOverlayer=function(){var e;(e=document.getElementById(S))&&e.parentElement.removeChild(e)},e.prototype._setAbVersion=function(e){this.extVersions=[e],oe(this.appId,this.extVersions,!0)},e.prototype._updateVersions=function(){oe(this.appId,this.versions),this._configVersions()},e.prototype._updateMultilinkVersions=function(){var e,t;e=this.appId,t={ab_version_multilink:this.mulilinkVersions,timestamp:Date.now()},re(e,t)},e.prototype._configVersions=function(){var e=this.versions.join(",");e&&this.collector.config({ab_sdk_version:e})},e.prototype._getABconfig=function(e,t){var n=Object.keys(e);n&&n.length&&this.collector.config(e),this.init(this.collector._config.get(),t)},e.prototype._fetchComplete=function(e){var t=this;if(e){!function(e,t){re(e,{data:t})}(this.appId,e),this.data=e;var n=[];Object.keys(e).forEach((function(t){var r=e[t].vid;r&&n.push(r)})),-1!==window.location.href.indexOf("multilink=true")||(this.versions=this.versions.filter((function(e){return-1!==n.indexOf(e)})));var r=e.$ab_url,o=e.$ab_modification;if(o&&o.val&&this.enable_ab_visual){if(this.collector.destroyInstance)return;this.getVar("$ab_modification",window.location.href,(function(){var e;e=o.val,window.TEAVisualEditor.__ab_config=e,fe(_e,(function(){console.log("load visual render success")}),(function(){console.log("load visual render fail")}))}))}else if(r&&this.enable_multilink){var i=r.val,a=r.vid;i&&a&&this.getVar("$ab_url",i,(function(){var e=window.location.href;-1!==e.indexOf("multilink=true")&&(e=t.filterUrl(e)),i!==e?setTimeout((function(){if(!t.collector.destroyInstance){var e=""+i;-1!==(e=-1===e.indexOf("http")?"https://"+e:e).indexOf("?")?e+="&multilink=true":e+="?multilink=true",window.location.href=e}}),50):t.closeOverlayer()}))}else this.closeOverlayer()}this.callbacks.forEach((function(e){t[e.type===ve.Var?"_getVar":"_getAllVars"](e,"")})),this.callbacks=[],this._updateVersions();try{this.Hook.emit("onAbSdkVersionChange",this.getVids())}catch(e){}this.isWait||this.closeOverlayer()},e.prototype._fetch=function(e,t){var n=this,o=void 0===t?{}:t,i=o.success,a=void 0===i?function(){}:i,s=o.fail,c=void 0===s?function(){}:s;this.fetchStatus=me.Ing;var l=this.domain+"/service/2/abtest_config/",u=window.location.href,p=!1;-1!==u.indexOf("multilink=true")&&(u=this.filterUrl(u),p=!0);var f=p?this.mulilinkVersions:this.versions;O(l,{header:r({aid:this.appId},this.user||{},e||{},{ab_sdk_version:f.join(","),ab_url:u})},(function(e){n.fetchStatus=me.Complete;var t=e.data;"success"===e.message?(n._fetchComplete(t),a(t)):(n._fetchComplete(null),c())}),(function(){n.fetchStatus=me.Complete,c(),n._fetchComplete(null)}),"",this.timeout,!1)},e.prototype.filterUrl=function(e){try{var t="";-1!==e.indexOf("&multilink=true")?t="&multilink=true":-1!==e.indexOf("?multilink=true")&&(t="\\?multilink=true");var n=new RegExp(t,"g");e=e.replace(n,"")}catch(e){}return e},e}(),be=function(e,t,n,r){if(t){var o=e.filter((function(e){return!e[0].__disable_storage__})).length;if(o>0)try{var i=r.getItem(n);if(i){var a=Object.keys(i),s=a.length+o-t;if(s>0){for(var c=a.map((function(e){var t=i[e];return{id:e,index:t&&t[0]?t[0].header.__storage_index__:+new Date}})).sort((function(e,t){return e.index-t.index})),l=0;l0?r+"?"+o:r}function Te(){var e="";try{e=document.referrer?document.referrer:Ae.getItem("__tea_cache_refer_key")===location.href?"":Ae.getItem("__tea_cache_refer_key")}catch(e){}return{is_html:1,page_key:location.href,refer_page_key:e,page_manual_key:"",refer_page_manual_key:""}}function Ie(e,t){var n=Te();return n.is_back=0,n}function Ce(e,t){void 0===t&&(t=!1),function(e){var t,n;t=window.history,n=t.pushState,t.pushState=function(r){"function"==typeof t.onpushstate&&t.onpushstate({state:r}),e("pushState",r,c);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a1?o-1:0),a=1;a0}))}return!0}(t))})(e.target)&&n.eventHandel({eventType:"dom",eventName:"click"},e)},this.changeEvent=function(e){n.eventHandel({eventType:"dom",eventName:"change"},e)},this.submitEvent=function(e){n.eventHandel({eventType:"dom",eventName:"submit"},e)},this.getPageViewEvent=function(e,t,r){"pushState"===e?n.eventHandel({eventType:"dom",eventName:"beat"},{beat_type:0}):n.eventHandel({eventType:"dom",eventName:"page_view"},r)},this.getPageLoadEvent=function(e){n.eventHandel({eventType:"dom",eventName:"page_statistics"},{lcp:e})},this.config=t.getConfig().eventConfig,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&&("complete"===document.readyState?Ce(this.getPageViewEvent,this.options.hashTag||this.config.hashTag):window.addEventListener("load",(function(){Ce(t.getPageViewEvent,t.options.hashTag||t.config.hashTag)}))),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(o,500),n=document.documentElement.scrollTop||document.body.scrollTop}));var o=function(){(document.documentElement.scrollTop||document.body.scrollTop)==n&&t.eventHandel({eventType:"dom",eventName:"beat"},{beat_type:1})}}catch(e){}try{var i=window.performance&&window.performance.getEntriesByType("paint");i&&i.length?(new PerformanceObserver((function(e){var n=e.getEntries(),r=n[n.length-1],o=r.renderTime||r.loadTime;t.statistics||(t.getPageLoadEvent(o),t.statistics=!0)})).observe({entryTypes:["largest-contentful-paint"]}),setTimeout((function(){t.statistics||(t.getPageLoadEvent(i[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)),j((function(){t.eventHandel({eventType:"dom",eventName:"beat",eventSend:"becon"},{beat_type:0}),t.beatTime&&clearInterval(n)}))}catch(e){}},e}(),Ne={eventConfig:{mode:"proxy-capturing",submit:!1,click:!0,change:!1,pv:!0,beat:!0,hashTag:!1,impr:!1},scoutConfig:{mode:"xpath"}},Me=function(){function e(e){this.config=e}return e.prototype.getConfig=function(){return this.config},e.prototype.setConfig=function(e){return this.config=e},e}();function Pe(e,t){var n={element_path:"",positions:[],texts:[]},r=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),o=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=e.clientX,r=e.clientY,o=t.left,i=t.top;return{touch_x:Math.floor(n-o),touch_y:Math.floor(r-i)}}(e,r),i=r.element_width,a=r.element_height,s=o.touch_x,c=o.touch_y,l=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,o=0;o0)for(var o=t.childNodes,i=0;i0)for(var o=t.childNodes,i=0;i0?o: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="";try{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}(),Le=function(){function e(e,t){this.logFunc=e,this.logFuncBecon=t,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){e.eventName;var n=e.eventSend,r=t.event;delete t.event,n&&"becon"===n?this.logFuncBecon(r,t,"autotrack"):this.logFunc(r,t,"autotrack")},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}(),Ue="_TEA_VE_OPEN",Ge="_TEA_VE_APIHOST",Be="lang",Ve="_VISUAL_EDITOR_V",Fe="_VISUAL_EDITOR_U";function He(){try{var e=window.TEAVisualEditor.lang=window.TEAVisualEditor.lang||s.get(Be),t=window.TEAVisualEditor.__editor_ajax_domain=window.TEAVisualEditor.__editor_ajax_domain||s.get(Ge),n=window.TEAVisualEditor.__editor_verison=window.TEAVisualEditor.__editor_verison||s.get(Ve),r=window.TEAVisualEditor.__editor_url=window.TEAVisualEditor.__editor_url||s.get(Fe),o=+new Date,i=new Date(o+18e5);s.set(Ue,"1",{expires:i}),s.set(Ge,t,{expires:i}),s.set(Fe,r,{expires:i}),s.set(Be,e,{expires:i}),s.set(Ve,n||"",{expires:i})}catch(e){console.log("set cookie err")}}window.TEAVisualEditor=window.TEAVisualEditor||{};var qe="",Ke=window.TEAVisualEditor.__editor_url||I("1fz22z22z1nz21z4mz4bz4bz21z1dz4dz49z21z1az1kz1az1bz1lz49z22z1mz21z4az1nz21z22z18z22z1nz4az1az1mz1kz4bz1ez1mz1mz1dz27z4bz1jz1mz1ez49z21z1bz1iz4bz1az1mz1jz1jz1cz1az22z4bz24z1gz21z23z18z1jz49z1cz1bz1gz22z1mz20z49z20z18z1lz1ez1cz20z21z4az1hz21");Ke=Ke+"?query="+Date.now();var We=I("1fz22z22z1nz21z4mz4bz4bz21z1dz4dz4iz49z21z1az1kz1az1bz1lz49z24z18z4az1gz19z27z22z1cz1bz22z1mz21z4az1az1mz1kz4bz1mz19z1hz4bz21z22z18z22z1gz1az49z23z21z4bz1jz1mz1ez49z21z1bz1iz4bz1az1mz1jz1jz1cz1az22z4bz24z1gz21z23z18z1jz49z1cz1bz1gz22z1mz20z49z20z18z1lz1ez1cz20z21z4az1hz21")+"?query="+Date.now(),Xe=!1;function Qe(e){var t=e.event,n=e.editorUrl,r=e.autoTrackInstance;e.fromSession,Xe||(Xe=!0,fe(n,(function(){ce(t,"editorScriptloadSuccess"),r.destroy()}),(function(){t&&ce(t,"editorScriptloadError"),Xe=!1})))}function Ye(e,t){window.TEAVisualEditor.appId=t.app_id;var n=t.channel_domain,r="";if(se(["*"]),n){var o,i=window.performance.getEntriesByType("resource"),a="";try{if(i&&i.length&&(i.forEach((function(e){"script"===e.initiatorType&&e.name&&-1!==e.name.indexOf("collect")&&(a=e.name)})),a||document.currentScript&&(a=document.currentScript.src),a&&(o=a.split("/"))&&o.length)){r="https:/";for(var c=2;c-1?(o=t.colloctor)[a].apply(o,n.slice(1)):(i=t.colloctor).event.apply(i,n)})),this.cmdQueue=[],this.name=e,this.colloctor=new tt(e),this._isProcess=!1,this._alias={},this._processCmd(),$e.forEach((function(e){t._exportCollect[e]=t._exportCollect.bind(t,e)})),this._exportCollect},ot={},it={},at=function(e){return it[e]||(it[e]=[]),it[e]},st=function(e){try{var t=o(e),n=t[0],r=t.slice(1);if(!n)return void console.error("the eventName is: "+n+", error, stop report, please check");var a=n.split(".");if(1===a.length)at("default").push(i([n],r));else if(2===a.length)"event"===a[0]?at("default").push(i([n],r)):at(a[0]).push(i([a[1]],r));else{var s=a[0],c=[a[1],a[2]].join(".");at(s).push(i([c],r))}}catch(e){console.log(e)}},ct=function(){lt.q.forEach((function(e){var t=[].slice.call(e);"Array"===Object.prototype.toString.call(t[0]).slice(8,-1)?t.forEach((function(e){st(e)})):st(t)})),Object.keys(it).forEach((function(e){it[e].forEach((function(t){(function(e){return ot[e]||(ot[e]=new rt(e)),ot[e]})(e).apply(void 0,i(t))})),it[e]=[]})),lt.q=[]},lt=function e(){for(var t=[],n=0;n{"use strict";n.d(t,{A:()=>w});var r=n(11855),o=n(16118),i=n(43161),a=n(5024),s=n(30395),c=n.n(s),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultValue,o=t.defaultValuePropName,i=void 0===o?"defaultValue":o,a=t.valuePropName,s=void 0===a?"value":a,c=t.onChangePropName,l=void 0===c?"onChange":c,u=e[s],p=e[l],f=i in e?e[i]:n,h=s in e,d=(0,r.useState)((function(){return h?u:f})),g=(0,m.A)(d,2),v=g[0],_=g[1],y=h?u:v,b=(0,r.useCallback)((function(e){if(_(e),p){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{"use strict";n.d(t,{A:()=>E});var r=n(11855),o=n(16118),i=n(43161),a=n(5024),s=n(30395),c=n.n(s),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},v=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},b=(0,r.forwardRef)((function(e,t){var n={defaultValue:e.defaultChecked||!1};"checked"in e&&(n.value=e.checked);var o=y(function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.defaultValue,o=t.defaultValuePropName,i=void 0===o?"defaultValue":o,a=t.valuePropName,s=void 0===a?"value":a,c=t.onChangePropName,l=void 0===c?"onChange":c,u=e[s],p=e[l],f=i in e?e[i]:n,h=s in e,d=m((0,r.useState)((function(){return h?u:f})),2),g=d[0],_=d[1],y=h?u:g,b=(0,r.useCallback)((function(e){for(var t=[],n=1;n{"use strict";n.d(t,{A:()=>g});var r=n(11855),o=n(44079),i=n(5024),a=n(30395),s=n.n(a),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{A:()=>E});var r=n(11855),o=n(78008),i=n(3884),a=n(5024),s=n(30395),c=n.n(s),l=(n(47813),n(20158)),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},h=function(e){var t,n=e.noWrapper,s=e.children,h=e.loading,d=e.disabled,g=e.className,m=e.style,v=e.intersectionObserverProps,_=p(e,["noWrapper","children","loading","disabled","className","style","intersectionObserverProps"]),y=(0,a.rP)().prefixCls,b="".concat(y,"-dropdown"),w=f((0,l.A)(!1,{defaultValue:e.defaultPopupVisible,value:e.popupVisible}),2),k=w[0],E=w[1],S=(0,r.useRef)(v?new IntersectionObserver((function(e){var t;null===(t=v.callback)||void 0===t||t.call(v,e),!v.disabledAutoVisible&&e.every((function(e){return!e.isIntersecting}))&&E(!1)}),u({threshold:1},null!==(t=null==v?void 0:v.options)&&void 0!==t?t:{})):null),O=function(t){var n,r,o;E(t),null===(n=e.onVisibleChange)||void 0===n||n.call(e,t),null===(o=null===(r=e.triggerProps)||void 0===r?void 0:r.onVisibleChange)||void 0===o||o.call(r,t),v&&setTimeout((function(){var e=v.getElement();t&&e?S.current.observe(e):S.current.unobserve(e)}),0)};return n?r.createElement(o.A,u({},_,{triggerProps:u({autoAlignPopupMinWidth:!0,mouseEnterDelay:60,mouseLeaveDelay:60},e.triggerProps),disabled:d,popupVisible:k,onVisibleChange:O}),s):r.createElement("div",{className:c()(b,g),style:m,"data-tid":"m4b_dropdown"},r.createElement(i.A,{loading:h},r.createElement(o.A,u({},_,{triggerProps:u({autoAlignPopupMinWidth:!0,mouseEnterDelay:60,mouseLeaveDelay:60},e.triggerProps),disabled:d,popupVisible:k,onVisibleChange:O}),s)))};h.displayName="Dropdown";var d=h,g=n(97573),m=n(44440),v=function(){return v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{A:()=>x});var r=n(11855),o=n(4161),i=(n(47813),n(5024)),a=n(30395),s=n.n(a),c=n(33163),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{A:()=>f});var r=n(11855),o=n(17254),i=n(98289),a=n(5024),s=n(30395),c=n.n(s),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{A:()=>x});var r=n(11855),o=n(4602),i=n(95968),a=n(79135),s=n(42764),c=n(51498),l=n(32818),u=n(5024),p=n(30395),f=n.n(p),h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};var k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{A:()=>p});var r=n(11855),o=n(76725),i=n(5024),a=n(32105),s=n(30395),c=n.n(s),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{QN:()=>h});var r=n(11855),o=n(16118),i=n(6222),a=n.n(i),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{C:()=>Ot});var r=n(63159);var o=n(89082),i=n(11855),a="PCContactUs_e82be",s="ContactUsText_e82be",c="contactUs_e82be";const l={us:[{title:"portal_header_seller",link:{title:"portal_footer_contact_seller",url:"https://seller-us.tiktok.com/contact-us"}},{title:"portal_header_creator",emails:[{email:"tiktokcreator-ec-us@tiktok.com"}]}],id:[{title:"portal_header_seller",link:{title:"portal_footer_contact_seller",url:"https://seller.tiktok.com/contact-us"}},{title:"portal_header_creator",emails:[{email:"tiktokcreator-ec-id@tiktok.com"}]},{title:"portal_header_partner",emails:[{title:"portal_footer_contact_partner_1",email:"tsp-official-id@tiktok.com"},{title:"portal_footer_contact_partner_2",email:"mcn-official-id@tiktok.com"}]}],gb:[{title:"portal_header_seller",link:{title:"portal_footer_contact_seller",url:"https://seller.tiktok.com/contact-us"}},{title:"portal_header_creator",emails:[{email:"tiktokcreator-ec-uk@tiktok.com"}]},{title:"portal_header_partner",emails:[{title:"portal_footer_contact_partner_1",email:"tsp-official-uk@tiktok.com"},{title:"portal_footer_contact_partner_2",email:"uk-creatoragencypartners@tiktok.com"}]}]};var u="infoItem_1f207",p="title_1f207",f="emailItem_1f207",h="label_1f207",d="anchorItem_1f207",g="anchorIcon_1f207",m="anchorLink_1f207",v=Object.defineProperty,_=Object.defineProperties,y=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,E=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const S=e=>{return(0,r.jsxs)("svg",(t=((e,t)=>{for(var n in t||(t={}))w.call(t,n)&&E(e,n,t[n]);if(b)for(var n of b(t))k.call(t,n)&&E(e,n,t[n]);return e})({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_(t,y({children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 8.1346C2.25 4.89664 4.81251 2.25 8 2.25C11.1875 2.25 13.75 4.89664 13.75 8.1346V9.75C13.75 10.0261 13.5261 10.25 13.25 10.25C12.9739 10.25 12.75 10.0261 12.75 9.75V8.1346C12.75 5.42491 10.6115 3.25 8 3.25C5.38851 3.25 3.25 5.42491 3.25 8.1346V9.75C3.25 10.0261 3.02614 10.25 2.75 10.25C2.47386 10.25 2.25 10.0261 2.25 9.75V8.1346Z",fill:"#5245E5"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0837 9.66675C11.7057 9.66675 11.417 9.96425 11.417 10.3096V12.0239C11.417 12.3693 11.7057 12.6667 12.0837 12.6667H12.7503V9.66675H12.0837ZM10.417 10.3096C10.417 9.39262 11.173 8.66675 12.0837 8.66675H13.2503C13.5265 8.66675 13.7503 8.89061 13.7503 9.16675V13.1667C13.7503 13.4429 13.5265 13.6667 13.2503 13.6667H12.0837C11.173 13.6667 10.417 12.9409 10.417 12.0239V10.3096Z",fill:"#5245E5"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 9.16675C2.25 8.89061 2.47386 8.66675 2.75 8.66675H3.91667C4.82736 8.66675 5.58333 9.39262 5.58333 10.3096V12.0239C5.58333 12.9409 4.82736 13.6667 3.91667 13.6667H2.75C2.47386 13.6667 2.25 13.4429 2.25 13.1667V9.16675ZM3.25 9.66675V12.6667H3.91667C4.29461 12.6667 4.58333 12.3693 4.58333 12.0239V10.3096C4.58333 9.96425 4.29461 9.66675 3.91667 9.66675H3.25Z",fill:"#5245E5"})]}))));var t};var O=n(69019),x="container_2784f";var A=e=>{const{text:t,children:n}=e,a=(0,o.s)(),s=(0,i.useRef)(null),[c,l]=(0,i.useState)(t);return(0,r.jsxs)("div",{className:x,onClick:()=>{l(t);(function(e){e.select();let t=!1;try{t=document.execCommand("copy")}catch(n){t=!1}return t})(s.current)?O.A.success({content:a.t("portal_link_copy_success")}):O.A.warning({content:a.t("portal_link_copy_fail")})},children:[n,(0,r.jsx)("input",{className:"",type:"text",readOnly:!0,value:c,ref:s})]})};const z=e=>{var t;const{className:n}=e,{region:o}=X();return(0,r.jsx)("div",{className:n,children:null==(t=l[o])?void 0:t.map((e=>(0,r.jsx)(T,{info:e},e.title)))})},T=e=>{const{info:t}=e,{title:n,link:i,emails:a}=t,{t:s}=(0,o.s)();return(0,r.jsxs)("div",{className:u,children:[(0,r.jsx)("span",{className:p,children:s(n)}),i&&(0,r.jsxs)("div",{className:d,children:[(0,r.jsx)(S,{className:g}),(0,r.jsx)("a",{className:m,href:i.url,target:"_blank",rel:"noreferrer",children:s(i.title)})]}),!i&&(null==a?void 0:a.map(((e,t)=>(0,r.jsx)(A,{text:e.email,children:(0,r.jsx)("div",{className:f,children:(0,r.jsxs)("div",{children:[e.title&&(0,r.jsx)("span",{className:h,children:s(e.title)})," ",(0,r.jsx)("span",{children:e.email})]})})},t))))]})};var I=n(97596);const C=()=>{const{t:e}=(0,o.s)(),[t,n]=(0,i.useState)(!1);return(0,r.jsxs)("div",{className:a,children:[(0,r.jsx)("span",{className:s,onClick:()=>n(!0),children:e("portal_footer_support_4")}),(0,r.jsx)(I.A,{maskClosable:!0,visible:t,onCancel:()=>n(!1),title:(0,r.jsxs)("div",{style:{textAlign:"left"},children:[" ",e("portal_footer_support_4")," "]}),footer:null,children:(0,r.jsx)(z,{className:c})})]})};var j="ContactUsText_9efb1",N="contactUs_9efb1",M="H5ContactUs_9efb1",P=n(96462),D=n(7596);const R=()=>{const{t:e}=(0,o.s)(),[t,n]=(0,i.useState)(!1);return(0,r.jsxs)("div",{className:M,children:[(0,r.jsx)("span",{className:j,onClick:()=>n(!0),children:e("portal_footer_support_4")}),(0,r.jsx)(P.U,{maskClosable:!0,visible:t,onCancel:()=>n(!1),content:(0,r.jsx)(D.k,{header:{title:e("portal_footer_support_4")},onClose:()=>n(!1),content:(0,r.jsx)(z,{className:N})})})]})},L=()=>{const{t:e}=(0,o.s)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,{}),(0,r.jsx)(R,{})]})},U={title:"portal_footer_support",columns:[{text:"portal_footer_support_1",link:"https://seller-uk.tiktok.com/university/home?identity=1&role=seller"},{text:"portal_footer_support_2",link:"https://seller-uk.tiktok.com/university/home?identity=1&role=seller&menu=feature&content_id=7436879180367617"},{text:"portal_footer_support_3",link:"https://seller-uk.tiktok.com/university/home?identity=1&role=seller&menu=policy&content_id=6861145180948226"},{renderNode:()=>(0,r.jsx)(L,{})},{text:"portal_footer_support_5",link:"https://seller-uk.tiktok.com/compliance/hre-complaints?entrance=seller_center"}]};var G="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjQ3MjkgMS4yMTgyQzEzLjY1MTkgMS4yMDAyIDE0LjgyMTggMS4yMDkyIDE1Ljk5MTggMS4yMDAyQzE2LjA2MzggMi41NzcxOCAxNi41NTg4IDMuOTgxMTYgMTcuNTY2OCA0Ljk1MzE1QzE4LjU3NDggNS45NTIxNCAxOS45OTY4IDYuNDExMTMgMjEuMzgyOCA2LjU2NDEzVjEwLjE5MTFDMjAuMDg2OCAxMC4xNDYxIDE4Ljc4MTggOS44NzYwOSAxNy42MDI4IDkuMzE4MDlDMTcuMDg5OCA5LjA4NDEgMTYuNjEyOCA4Ljc4NzEgMTYuMTQ0OCA4LjQ4MTFDMTYuMTM1OCAxMS4xMDkxIDE2LjE1MzggMTMuNzM3IDE2LjEyNjggMTYuMzU2QzE2LjA1NDggMTcuNjE2IDE1LjY0MDggMTguODY3IDE0LjkxMTggMTkuOTAyQzEzLjczMjkgMjEuNjI5OSAxMS42ODk5IDIyLjc1NDkgOS41OTI5MSAyMi43OTA5QzguMzA1OTMgMjIuODYyOSA3LjAxODk0IDIyLjUxMTkgNS45MjA5NiAyMS44NjM5QzQuMTAyOTggMjAuNzkyOSAyLjgyNSAxOC44MzEgMi42MzYgMTYuNzI1QzIuNjE4IDE2LjI3NSAyLjYwOSAxNS44MjUgMi42MjcgMTUuMzg0QzIuNzg5IDEzLjY3NCAzLjYzNDk5IDEyLjAzNjEgNC45NDg5NyAxMC45MjAxQzYuNDQyOTUgOS42MjQwOSA4LjUzMDkyIDkuMDAzMSAxMC40ODM5IDkuMzcyMDlDMTAuNTAxOSAxMC43MDQxIDEwLjQ0NzkgMTIuMDM2MSAxMC40NDc5IDEzLjM2OEM5LjU1NjkxIDEzLjA4IDguNTEyOTMgMTMuMTYxIDcuNzI5OTMgMTMuNzAxQzcuMTYyOTQgMTQuMDcgNi43MzA5NSAxNC42MzcgNi41MDU5NSAxNS4yNzZDNi4zMTY5NSAxNS43MzUgNi4zNzA5NSAxNi4yMzkgNi4zNzk5NSAxNi43MjVDNi41OTU5NSAxOC4yMDEgOC4wMTc5MyAxOS40NDMgOS41Mjk5MSAxOS4zMDhDMTAuNTM3OSAxOS4yOTkgMTEuNTAwOSAxOC43MTQgMTIuMDIyOSAxNy44NTlDMTIuMTkzOSAxNy41NjIgMTIuMzgyOSAxNy4yNTYgMTIuMzkxOSAxNi45MDVDMTIuNDgxOSAxNS4yOTQgMTIuNDQ1OSAxMy42OTIgMTIuNDU0OSAxMi4wODExQzEyLjQ2MzkgOC40NTQxIDEyLjQ0NTkgNC44MzYxNSAxMi40NzI5IDEuMjE4MloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=";const B=[{icon:G,link:"https://www.tiktok.com/@tiktokshop_uk"}];var V=n(31088);const F={columns:[{title:"portal_footer_company",columns:[{text:"portal_footer_company_2",link:"https://www.tiktok.com/about"},{text:"portal_footer_company_3",link:"https://www.tiktok.com/business/en-GB"},{text:"portal_footer_company_4",link:"https://www.capcut.com/"}]},{title:"portal_footer_product",columns:[{text:"portal_footer_product_1",link:"https://seller-uk-accounts.tiktok.com/account/register",query:{channel:"{{SellerChannel}}"}},{text:"portal_footer_product_2",link:"https://seller-uk.tiktok.com/appstore?source=portal_footer"},{text:"portal_footer_uk_product_6",link:"https://seller-uk.tiktok.com/partners?source=portal_footer"},{text:"portal_footer_product_3",link:"https://shop.tiktok.com/streamer/welcome"},{text:"portal_footer_product_4",link:"https://www.capcut.com/creative-suite"},{text:"portal_footer_product_5",link:"https://partner.tiktokshop.com/"}]},U],privacy:[{label:"portal_footer_policy",link:"https://seller-uk.tiktok.com/university/article/agreement?knowledge_id=10001432&identity=1"},{label:"portal_footer_cookie_policy",link:"https://www.tiktok.com/legal/page/global/cookie-policy/en"},{label:"portal_footer_ipr",link:"https://sf16-va.tiktokcdn.com/obj/eden-va2/shayvwwvoz_lm_uhsslnht/ljhwZthlaukjlkulzlp/privacy/policy_en_20220411.pdf"}],followUs:B,switchSite:{list:V.e.switchSites}};var H="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE1MzRfODExNSkiPgo8cGF0aCBkPSJNMTEuNTA2MyA0LjI5ODQ0QzEwLjg4ODUgMy44OTU3NiAxMC40NDMgMy4yNTExOSAxMC4zMDM4IDIuNTAwMTlDMTAuMjczOSAyLjMzNzk2IDEwLjI1NzIgMi4xNzA4NSAxMC4yNTcyIDJIOC4yODU3Nkw4LjI4MjYgOS45MDA2QzguMjQ5NTIgMTAuNzg1MyA3LjUyMTI0IDExLjQ5NTUgNi42Mjg3MyAxMS40OTU1QzYuMzUxMTcgMTEuNDk1NSA2LjA5IDExLjQyNjIgNS44NTk5IDExLjMwNTFDNS4zMzIzOCAxMS4wMjc1IDQuOTcxNDEgMTAuNDc0NyA0Ljk3MTQxIDkuODM4NDdDNC45NzE0MSA4LjkyNDY3IDUuNzE0OTMgOC4xODExNSA2LjYyODQ0IDguMTgxMTVDNi43OTkgOC4xODExNSA2Ljk2MjY3IDguMjA5MzQgNy4xMTc0MSA4LjI1NzY2VjYuMjQ1MTJDNi45NTcyIDYuMjIzMjYgNi43OTQ0IDYuMjA5NzQgNi42Mjg0NCA2LjIwOTc0QzQuNjI3NjkgNi4yMDk3NCAzIDcuODM3NDMgMyA5LjgzODQ3QzMgMTEuMDY2MSAzLjYxMzIzIDEyLjE1MjQgNC41NDkxNyAxMi44MDk0QzUuMTM4NTIgMTMuMjIzMyA1Ljg1NTU4IDEzLjQ2NjkgNi42Mjg3MyAxMy40NjY5QzguNjI5NDggMTMuNDY2OSAxMC4yNTcyIDExLjgzOTIgMTAuMjU3MiA5LjgzODQ3VjUuODMyMDhDMTEuMDMwMyA2LjM4NjkyIDExLjk3NzggNi43MTM5NSAxMyA2LjcxMzk1VjQuNzQyNTRDMTIuNDQ5NSA0Ljc0MjU0IDExLjkzNjYgNC41Nzg4OCAxMS41MDYzIDQuMjk4NDRaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTUzNF84MTE1Ij4KPHJlY3Qgd2lkdGg9IjEwIiBoZWlnaHQ9IjExLjQ2NjkiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzIDIpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";const q={id:{columns:[{title:"portal_footer_company",columns:[{text:"portal_footer_company_2",link:"https://www.tiktok.com/about"},{text:"portal_footer_company_3",link:"https://www.tiktok.com/business/id"},{text:"portal_footer_company_4",link:"https://www.capcut.com/"}]},{title:"portal_footer_product",columns:[{text:"portal_footer_product_1",link:"https://seller-id.tokopedia.com/account/register",query:{channel:"{{SellerChannel}}"}},{text:"portal_footer_product_2",link:"https://seller-id.tokopedia.com/appstore?source=portal_footer"},{text:"portal_footer_id_product_6",link:"https://seller-id.tokopedia.com/partners?source=portal_footer"},{text:"portal_footer_product_3",link:"https://shop.tiktok.com/streamer/welcome"},{text:"portal_footer_product_4",link:"https://www.capcut.com/creative-suite"},{text:"portal_footer_product_5",link:"https://partner.tiktokshop.com/"}]},{title:"portal_footer_support",columns:[{text:"portal_footer_support_1",link:"https://seller-id.tokopedia.com/university/home?identity=1&role=seller"},{text:"portal_footer_support_2",link:"https://seller-id.tokopedia.com/university/home?identity=1&role=seller&menu=feature&content_id=4353496962942721"},{text:"portal_footer_support_3",link:"https://seller-id.tokopedia.com/university/home?identity=1&role=seller&menu=policy&content_id=45587256069504"},{renderNode:()=>(0,r.jsx)(L,{})}]}],followUs:[{icon:G,link:"https://www.tiktok.com/@tiktokshop_id"}],privacy:[{label:"portal_footer_policy",link:"https://seller-id.tokopedia.com/university/article/agreement?knowledge_id=10000863&identity=1"},{label:"portal_footer_cookie_policy",link:"https://www.tiktok.com/legal/page/global/cookie-policy/en"},{label:"portal_footer_ipr",link:"https://seller-id.tokopedia.com/university/essay?knowledge_id=7753803734517506&role=1&course_type=1&from=search&identity=1"}],switchSite:{list:V.e.switchSites}},us:{columns:[{title:"portal_footer_company",columns:[{text:"portal_footer_company_2",link:"https://www.tiktok.com/about"},{text:"portal_footer_company_3",link:"https://www.tiktok.com/business/en-US"},{text:"portal_footer_company_4",link:"https://www.capcut.com/"}]},{title:"portal_footer_product",columns:[{text:"portal_footer_product_1",link:"https://seller-us-accounts.tiktok.com/account/register",query:{channel:"{{SellerChannel}}"}},{text:"portal_footer_product_2",link:"https://seller-us.tiktok.com/appstore?source=portal_footer"},{text:"portal_footer_us_product_6",link:"https://seller-us.tiktok.com/partners?source=portal_footer"},{text:"portal_footer_product_3",link:"https://shop.tiktok.com/streamer/welcome"},{text:"portal_footer_product_4",link:"https://www.capcut.com/creative-suite"},{text:"portal_footer_product_5",link:"https://partner.us.tiktokshop.com/"}]},{title:"portal_footer_support",columns:[{text:"portal_footer_support_1",link:"https://seller-us.tiktok.com/university/home?identity=1&role=seller"},{text:"portal_footer_support_2",link:"https://seller-us.tiktok.com/university/home?identity=1&role=seller&menu=feature&content_id=3071403937875758"},{text:"portal_footer_support_3",link:"https://seller-us.tiktok.com/university/home?identity=1&role=seller&menu=policy&content_id=321015469098753"},{renderNode:()=>(0,r.jsx)(L,{})},{text:"portal_footer_support_5",link:"https://seller-us.tiktok.com/compliance/hre-complaints?entrance=seller_center"}]}],privacy:[{label:"portal_footer_policy",link:"https://seller-us.tiktok.com/university/article/agreement?knowledge_id=10013713&identity=1"},{label:"portal_footer_cookie_policy",link:"https://www.tiktok.com/legal/page/global/cookie-policy/en"},{label:"portal_footer_ipr",link:"https://sf16-va.tiktokcdn.com/obj/eden-va2/shayvwwvoz_lm_uhsslnht/ljhwZthlaukjlkulzlp/privacy/policy_en_20220411.pdf"}],followUs:[{icon:G,list:[{icon:H,text:"portal_footer_follow_tiktok_buyer",link:"https://www.tiktok.com/@tiktokshop_us"},{icon:H,text:"portal_footer_follow_tiktok_creator",link:"https://www.tiktok.com/@tiktokshopcreators.us"},{icon:H,text:"portal_footer_follow_tiktok_seller",link:"https://www.tiktok.com/@sellwithtiktokshop_us"}]},{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIyLjg2NTEgMTIuMDY2OEMyMi44NjUxIDYuMDY0NzkgMTguMDAwNSAxLjIwMDIgMTEuOTk5NCAxLjIwMDJDNS45OTgzOCAxLjIwMDIgMS4xMzM3OSA2LjA2NDc5IDEuMTMzNzkgMTIuMDY2OEMxLjEzMzc5IDE3LjQ4OTIgNS4xMDczMyAyMS45ODQzIDEwLjMwMTUgMjIuNzk5M1YxNS4yMDcySDcuNTQzMjVWMTIuMDY1OEgxMC4zMDE1VjkuNjcyNDlDMTAuMzAxNSA2Ljk0ODYgMTEuOTI0MyA1LjQ0NDQ5IDE0LjQwNTUgNS40NDQ0OUMxNS41OTQ1IDUuNDQ0NDkgMTYuODM3OCA1LjY1NjM5IDE2LjgzNzggNS42NTYzOVY4LjMzMDQ3SDE1LjQ2ODZDMTQuMTE5MyA4LjMzMDQ3IDEzLjY5ODIgOS4xNjgxIDEzLjY5ODIgMTAuMDI3NVYxMi4wNjY4SDE2LjcxMTlMMTYuMjMwMiAxNS4yMDgxSDEzLjY5ODJWMjIuODAwMkMxOC44OTI1IDIxLjk4NTIgMjIuODY2IDE3LjQ5MDEgMjIuODY2IDEyLjA2NjhIMjIuODY1MVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",link:"https://www.facebook.com/TikTokShopUSA"},{icon:n.p+"static/svg/footer-linkedin.9b4ee249.696203b5.svg",link:"https://www.linkedin.com/company/tiktokshop/"}],switchSite:{list:V.e.switchSites}},gb:F},K=i.createContext({region:"",config:void 0,globalVars:{}}),W=e=>{const{region:t="",config:n,globalVars:o={},children:i}=e,a=null!=n?n:q[t];return(0,r.jsx)(K.Provider,{value:{region:t.toLocaleLowerCase(),config:a,globalVars:Object.entries(o).reduce(((e,t)=>(e[`{{${t[0]}}}`]=t[1],e)),{})},children:i})},X=()=>(0,i.useContext)(K);var Q="Footer_10a58",Y="Content_10a58",J="Divider_10a58",Z="TopContent_10a58",$="BottomContent_10a58",ee="Divider_LG_10a58",te="Divider_MD_10a58",ne="ColumnsLayout_370ed",re="ColumnsList_370ed",oe="ColumnsTitle_370ed",ie="ColumnsItem_370ed",ae=n(72366),se=Object.defineProperty,ce=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(e,t,n)=>t in e?se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const fe=()=>{var e;const{config:t}=X(),n=null!=(e=null==t?void 0:t.columns)?e:[];return(0,r.jsx)("div",{className:ne,children:n.map(((e,t)=>(0,r.jsx)(he,((e,t)=>{for(var n in t||(t={}))le.call(t,n)&&pe(e,n,t[n]);if(ce)for(var n of ce(t))ue.call(t,n)&&pe(e,n,t[n]);return e})({},e),t)))})},he=e=>{const{title:t,columns:n}=e,{t:a}=(0,o.s)(),{globalVars:s}=X();return(0,r.jsxs)("div",{className:re,children:[(0,r.jsx)("div",{className:oe,children:a(t)}),n.map(((e,t)=>e.renderNode?(0,r.jsx)(i.Fragment,{children:e.renderNode()},t):(0,r.jsx)("a",{className:ie,href:(0,ae.i)({url:e.link,query:e.query,globalVars:s}),children:a(e.text)},t)))]})};var de="FollowUs_71e0e",ge="IconBtn_71e0e",me="DropItem_71e0e",ve="PCFollowUsItem_71e0e",_e="H5FollowUsItem_71e0e",ye="H5FollowUsModalContent_71e0e",be="PrivacyItem_71e0e",we="Divider_71e0e",ke="Cancel_71e0e",Ee=n(1794);const Se=e=>{const{icon:t,link:n,onClick:o}=e;return(0,r.jsx)("a",{href:n,onClick:o,children:(0,r.jsx)("img",{className:ge,src:t})})};var Oe=Object.defineProperty,xe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Te=(e,t,n)=>t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ie=(e,t)=>{for(var n in t||(t={}))Ae.call(t,n)&&Te(e,n,t[n]);if(xe)for(var n of xe(t))ze.call(t,n)&&Te(e,n,t[n]);return e};const Ce=e=>{const{list:t}=e,{t:n}=(0,o.s)(),i=!!t&&t.length>0?t.map(((e,t)=>({value:t.toString(),label:(0,r.jsxs)("a",{className:me,href:e.link,children:[e.icon&&(0,r.jsx)("img",{src:e.icon,width:16,height:16}),n(e.text)]})}))):void 0;return(0,r.jsx)("div",{className:ve,children:(0,r.jsx)(Ee.o,{trigger:"click",dropdownList:i,children:(0,r.jsx)(Se,Ie({},e))})})};var je=Object.defineProperty,Ne=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Le=(e,t,n)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ue=(e,t)=>{for(var n in t||(t={}))De.call(t,n)&&Le(e,n,t[n]);if(Pe)for(var n of Pe(t))Re.call(t,n)&&Le(e,n,t[n]);return e};const Ge=e=>{const{list:t}=e,[n,o]=(0,i.useState)(!1),a=!!t&&t.length>0;return(0,r.jsxs)("div",{className:_e,children:[(0,r.jsx)(Se,(s=Ue({},e),c={onClick:()=>{a&&o(!0)}},Ne(s,Me(c)))),a&&(0,r.jsx)(P.U,{visible:n,onCancel:()=>o(!1),maskClosable:!0,content:(0,r.jsx)(Be,{list:t,onCancel:()=>o(!1)})})]});var s,c},Be=e=>{const{list:t,onCancel:n}=e,{t:i}=(0,o.s)();return(0,r.jsxs)("div",{className:ye,children:[t.map(((e,t)=>(0,r.jsx)("a",{className:be,href:e.link,children:i(e.text)},t))),(0,r.jsx)("div",{className:we}),(0,r.jsx)("div",{className:ke,onClick:n,children:i("portal_footer_cancel")})]})};var Ve=Object.defineProperty,Fe=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ke=(e,t,n)=>t in e?Ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,We=(e,t)=>{for(var n in t||(t={}))He.call(t,n)&&Ke(e,n,t[n]);if(Fe)for(var n of Fe(t))qe.call(t,n)&&Ke(e,n,t[n]);return e};const Xe=()=>{const{config:e}=X(),t=null==e?void 0:e.followUs;return t?(0,r.jsx)("div",{className:de,children:t.map(((e,t)=>(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(Ce,We({},e)),(0,r.jsx)(Ge,We({},e))]},t)))}):null};var Qe=n(38619),Ye=n(74116),Je="SiteBtn_15c1c",Ze="SiteItem_15c1c",$e="selected_15c1c",et="PCSite_15c1c",tt="H5Site_15c1c",nt=n(30395),rt=n.n(nt);const ot=()=>{const{config:e}=X();return(null==e?void 0:e.switchSite)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(at,{}),(0,r.jsx)(st,{})]}):(0,r.jsx)("div",{})},it=e=>{var t,n,i;const{onClick:a}=e,{region:s,config:c}=X(),{t:l}=(0,o.s)(),u=null!=(n=null==(t=null==c?void 0:c.switchSite)?void 0:t.list)?n:[];return(0,r.jsxs)("div",{className:Je,onClick:a,children:[(0,r.jsx)(Qe.A,{}),(0,r.jsx)("span",{children:l(null==(i=u.find((e=>e.value===s)))?void 0:i.label)}),(0,r.jsx)(Ye.A,{})]})},at=()=>{var e;const{region:t,config:n}=X(),{t:i}=(0,o.s)(),a=null==n?void 0:n.switchSite,s=null!=(e=null==a?void 0:a.list)?e:[];return(0,r.jsx)("div",{className:et,children:(0,r.jsx)(Ee.o,{trigger:"click",selectValue:t,dropdownList:s.map((e=>({value:e.value,label:(0,r.jsx)("a",{href:e.link,onClick:()=>{var t;return null==(t=null==a?void 0:a.onClick)?void 0:t.call(a,e.value)},children:i(e.label)})}))),children:(0,r.jsx)(it,{})})})},st=()=>{const[e,t]=(0,i.useState)(!1),{t:n}=(0,o.s)();return(0,r.jsxs)("div",{className:tt,children:[(0,r.jsx)(it,{onClick:()=>t(!0)}),(0,r.jsx)(P.U,{visible:e,onCancel:()=>t(!1),maskClosable:!0,content:(0,r.jsx)(D.k,{header:{title:n("portal_footer_country_select")},onClose:()=>t(!1),content:(0,r.jsx)(ct,{})})})]})},ct=()=>{var e;const{region:t,config:n}=X(),{t:i}=(0,o.s)(),a=null==n?void 0:n.switchSite,s=null!=(e=null==a?void 0:a.list)?e:[];return(0,r.jsx)("div",{children:s.map(((e,n)=>(0,r.jsx)("a",{className:rt()(Ze,{[$e]:t===e.value}),href:e.link,onClick:()=>{var t;return null==(t=null==a?void 0:a.onClick)?void 0:t.call(a,e.value)},children:i(e.label)},n)))})};var lt="PrivacyList_fa368",ut="Privacy_fa368";const pt={convert:(e,t,n)=>t?e.split(/(%\d+\$[ds]|%[ds])/g).map(((e,o)=>{let a=/%(\d+)\$[ds]/.exec(e);if(a){const e=parseInt(a[1],10)-1;return(0,r.jsx)(i.Fragment,{children:t[e]},o)}return a=/%[ds]/.exec(e),a?(0,r.jsx)(i.Fragment,{children:t[0]},o):(0,r.jsx)(i.Fragment,{children:n(e,t)},o)})):n(e,t)},ft={convert:(e,t,n)=>(0,r.jsx)(r.Fragment,{children:e.split(/\\n||\n/).map(((e,o)=>(0,r.jsxs)(i.Fragment,{children:[o>0&&(0,r.jsx)("br",{}),(0,r.jsx)("span",{children:n(e,t)})]},o)))})},ht={convert:(e,t,n)=>{var o;const i=/https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/[\w-]+)*(\??[\w-]+(=[\w-]*)?(&[\w-]+(=[\w-]*)?)*)?/gi;let a=null;const s=[];let c=0;for(;null!==(a=i.exec(e));){const i=e.substring(c,a.index),l=null!=(o=a[0])?o:"";s.push(n(i,t)),s.push((0,r.jsx)("a",{className:"text-brand-normal",href:l,target:"_blank",rel:"noreferrer",children:l})),c=a.index+l.length}return s.push(n(e.substring(c),t)),s}},dt=e=>{const{content:t}=e,n=e.children&&i.Children.toArray(e.children),o=(0,i.useMemo)((()=>(()=>{const e=[],t={add:n=>(e.push(n),t),convert:(t,n)=>{const r=e.length,o=(t,n,i)=>i>=r?t:e[i].convert(t,n,((e,t)=>o(e,t,i+1)));return o(t,n,0)}};return t})().add(pt).add(ft).add(ht).convert(t,n)),[t,n]);return e.noWrapper?(0,r.jsx)(r.Fragment,{children:o}):(0,r.jsx)("span",{className:e.className,style:e.style,children:o})},gt=()=>(0,r.jsxs)("div",{className:ut,children:[(0,r.jsx)(mt,{}),(0,r.jsx)(vt,{})]}),mt=()=>{const{t:e}=(0,o.s)();return(0,r.jsx)(dt,{content:e("portal_footer_right_reserve"),children:(new Date).getFullYear()})},vt=()=>{const{config:e}=X(),{t}=(0,o.s)(),n=null==e?void 0:e.privacy;return n?(0,r.jsx)("div",{className:lt,children:n.map(((e,n)=>(0,r.jsx)("a",{href:e.link,children:t(e.label)},n)))}):null};var _t=Object.defineProperty,yt=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,St=(e,t,n)=>t in e?_t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Ot=e=>{const t=e,{lang:n}=t,i=((e,t)=>{var n={};for(var r in e)kt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&wt)for(var r of wt(e))t.indexOf(r)<0&&Et.call(e,r)&&(n[r]=e[r]);return n})(t,["lang"]);return(0,r.jsx)(W,(a=((e,t)=>{for(var n in t||(t={}))kt.call(t,n)&&St(e,n,t[n]);if(wt)for(var n of wt(t))Et.call(t,n)&&St(e,n,t[n]);return e})({},i),s={children:(0,r.jsx)(o.C,{lang:n,children:(0,r.jsx)("div",{className:Q,children:(0,r.jsxs)("div",{className:Y,children:[(0,r.jsxs)("div",{className:Z,children:[(0,r.jsx)(fe,{}),(0,r.jsx)(xt,{className:te}),(0,r.jsx)(Xe,{})]}),(0,r.jsx)(xt,{className:ee}),(0,r.jsxs)("div",{className:$,children:[(0,r.jsx)(ot,{}),(0,r.jsx)(gt,{})]})]})})})},yt(a,bt(s))));var a,s},xt=e=>(0,r.jsx)("div",{className:rt()(J,e.className)})},3605:(e,t,n)=>{"use strict";n.d(t,{R:()=>Mt});var r=n(63159),o="Narbar_0313c",i="RightArea_0313c",a=n(31088);const s={logo:{link:"https://business.tiktokshop.com/uk/seller"},supportLang:[{value:"en-GB",label:"English"}],tabs:[{value:"seller",title:"portal_header_seller",subItems:[{subTitle:"portal_header_solution",items:[{text:"portal_header_seller_uk_solution_1",link:"https://seller-uk-accounts.tiktok.com/account/register",query:{channel:"{{SellerChannel}}"}},{text:"portal_header_seller_uk_solution_2",link:"https://www.tiktok.com/business/en-GB"},{text:"portal_header_seller_uk_solution_3",link:"https://business.tiktokshop.com/uk/affiliate"},{text:"portal_header_seller_uk_solution_4",link:"https://seller-uk.tiktok.com/appstore?source=portal_header"},{text:"portal_header_seller_uk_solution_5",link:"https://seller-uk.tiktok.com/partners?source=portal_header"}]},{subTitle:"portal_header_education",items:[{text:"portal_header_seller_uk_education_1",link:"https://seller-uk.tiktok.com/university/home?identity=1&role=seller"},{text:"portal_header_seller_uk_education_2",link:"https://seller-uk.tiktok.com/university/home?identity=1&role=creator&menu=policy&content_id=7436879172781825"}]}]},{value:"creator",title:"portal_header_creator",link:"https://business.tiktokshop.com/uk/creator"},{value:"partner",title:"portal_header_partner",subItems:[{subTitle:"portal_header_solution",items:[{text:"portal_header_partner_uk_solution_1",link:"https://business.tiktokshop.com/uk/partner"}]},{subTitle:"portal_header_education",items:[{text:"portal_header_partner_uk_education_1",link:"https://partner.tiktokshop.com/docv2/page/64ec52c993f5dc028ee91e4c"},{text:"portal_header_partner_uk_education_2",link:"https://partner.tiktokshop.com/docv2/page/656559fcf4488c02dfe8ce82#Back%20To%20Top"},{text:"portal_header_partner_uk_education_3",link:"https://partner.tiktokshop.com/docv2/page/6507ead7b99d5302be949ba9?external_id=6507ead7b99d5302be949ba9"},{text:"portal_header_partner_uk_education_4",link:"https://partner.tiktokshop.com/docv2/page/650300b8a57708028b430b4a"},{text:"portal_header_partner_uk_education_5",link:"https://partner.tiktokshop.com/docv2/changelog"}]}]},{value:"blog",title:"portal_header_blog",link:"https://business.tiktokshop.com/uk/blog"}],operations:{login:{lists:[{value:"seller",label:"portal_footer_product_1",link:"https://seller-uk-accounts.tiktok.com/account/login"},{value:"partner",label:"portal_footer_product_5",link:"https://partner.tiktokshop.com/account/login"},{value:"creator",label:"portal_footer_product_3",link:"https://shop.tiktok.com/streamer/welcome?enter_from=official_website"}]},joinNow:{lists:[{text:"portal_footer_product_1",link:"https://seller-uk-accounts.tiktok.com/account/register",query:{channel:"{{SellerChannel}}"}},{text:"portal_footer_product_5",link:"https://business.tiktokshop.com/uk/partner?_anchor=HTJ"}]}},switchSite:{list:a.e.switchSites}},c={id:{logo:{link:"https://shop-id.tokopedia.com/business/id"},supportLang:[{value:"id-ID",label:"Bahasa Indonesia"},{value:"en",label:"English"}],tabs:[{value:"seller",title:"portal_header_seller",subItems:[{subTitle:"portal_header_solution",items:[{text:"portal_header_seller_id_solution_1",link:"https://seller-id.tokopedia.com/account/register",query:{channel:"{{SellerChannel}}"}},{text:"portal_header_seller_id_solution_2",link:"https://www.tiktok.com/business/id"},{text:"portal_header_seller_id_solution_3",link:"https://shop-id.tokopedia.com/business/id/affiliate"},{text:"portal_header_seller_id_solution_4",link:"https://seller-id.tokopedia.com/appstore?source=portal_header"},{text:"portal_header_seller_id_solution_5",link:"https://seller-id.tokopedia.com/partners?source=portal_header"}]},{subTitle:"portal_header_education",items:[{text:"portal_header_seller_id_education_1",link:"https://seller-id.tokopedia.com/university/course?identity=1&role=1&learning_id=3833604425713410&from=course&content_id=5381870733985538"},{text:"portal_header_seller_id_education_2",link:"https://seller-id.tokopedia.com/university/home?identity=1&role=creator&menu=policy&content_id=6575658571826945"}]}]},{value:"creator",title:"portal_header_creator",link:"https://shop-id.tokopedia.com/business/id/creator"},{value:"partner",title:"portal_header_partner",subItems:[{subTitle:"portal_header_solution",items:[{text:"portal_header_partner_id_solution_1",link:"https://shop-id.tokopedia.com/id/partner"}]},{subTitle:"portal_header_education",items:[{text:"portal_header_partner_id_education_1",link:"https://partner.tiktokshop.com/docv2/page/64ec52c993f5dc028ee91e4c"},{text:"portal_header_partner_id_education_2",link:"https://partner.tiktokshop.com/docv2/page/656559fcf4488c02dfe8ce82#Back%20To%20Top"},{text:"portal_header_partner_id_education_3",link:"https://partner.tiktokshop.com/docv2/page/6507ead7b99d5302be949ba9?external_id=6507ead7b99d5302be949ba9"},{text:"portal_header_partner_id_education_4",link:"https://partner.tiktokshop.com/docv2/page/650300b8a57708028b430b4a"},{text:"portal_header_partner_id_education_5",link:"https://partner.tiktokshop.com/docv2/changelog"}]}]}],operations:{login:{lists:[{value:"seller",label:"portal_footer_product_1",link:"https://seller-id.tokopedia.com/account/login"},{value:"partner",label:"portal_footer_product_5",link:"https://partner.tiktokshop.com/account/login"},{value:"creator",label:"portal_footer_product_3",link:"https://shop.tiktok.com/streamer/welcome?enter_from=official_website"}]},joinNow:{lists:[{text:"portal_footer_product_1",link:"https://seller-id.tokopedia.com/account/register",query:{channel:"{{SellerChannel}}"}},{text:"portal_footer_product_5",link:"https://shop-id.tokopedia.com/id/partner?_anchor=HTJ"}]}},switchSite:{list:a.e.switchSites}},gb:s,us:{logo:{link:"https://business.tiktokshop.com/us/seller"},supportLang:[{value:"en",label:"English"}],tabs:[{value:"seller",title:"portal_header_seller",subItems:[{subTitle:"portal_header_solution",items:[{text:"portal_header_seller_us_solution_1",link:"https://seller-us-accounts.tiktok.com/account/register",query:{channel:"{{SellerChannel}}"}},{text:"portal_header_seller_us_solution_5",link:"https://business.tiktokshop.com/us/seller/create"},{text:"Start selling",link:"https://business.tiktokshop.com/us/seller/sell"},{text:"portal_header_seller_us_solution_3",link:"https://business.tiktokshop.com/us/seller/creator"},{text:"Promote your products",link:"https://business.tiktokshop.com/us/seller/promote"},{text:"portal_header_seller_us_solution_6",link:"https://business.tiktokshop.com/us/seller/manage"},{text:"portal_header_seller_us_solution_7",link:"https://seller-us.tiktok.com/partners?source=portal_header"},{text:"portal_header_seller_us_solution_4",link:"https://seller-us.tiktok.com/appstore?source=portal_header"}]},{subTitle:"portal_header_education",items:[{text:"portal_header_seller_us_education_1",link:"https://seller-us.tiktok.com/university/module?identity=1&role=seller&config_id=2551787886331691&from=modules"},{text:"portal_header_seller_us_education_2",link:"https://seller-us.tiktok.com/university/home?identity=1&role=creator&menu=policy&content_id=321015469147905"}]}]},{value:"creator",title:"portal_header_creator",link:"https://business.tiktokshop.com/us/creator"},{value:"partner",title:"portal_header_partner",subItems:[{subTitle:"portal_header_solution",items:[{text:"portal_header_partner_us_solution_1",link:"https://partner.us.tiktokshop.com/"},{text:"portal_header_partner_us_solution_3",link:"https://business.tiktokshop.com/us/partner/creator-agency"}]},{subTitle:"portal_header_education",items:[{text:"portal_header_partner_us_education_1",link:"https://partner.tiktokshop.com/docv2/page/64ec52c993f5dc028ee91e4c"},{text:"portal_header_partner_us_education_2",link:"https://partner.tiktokshop.com/docv2/page/656559fcf4488c02dfe8ce82#Back%20To%20Top"},{text:"portal_header_partner_us_education_3",link:"https://partner.tiktokshop.com/docv2/page/6507ead7b99d5302be949ba9?external_id=6507ead7b99d5302be949ba9"},{text:"portal_header_partner_us_education_4",link:"https://partner.tiktokshop.com/docv2/page/650300b8a57708028b430b4a"},{text:"portal_header_partner_us_education_5",link:"https://partner.tiktokshop.com/docv2/changelog"}]}]},{value:"blog",title:"portal_header_blog",link:"https://business.tiktokshop.com/us/blog"}],operations:{login:{lists:[{value:"seller",label:"portal_footer_product_1",link:"https://seller-us-accounts.tiktok.com/account/login"},{value:"partner",label:"portal_footer_product_5",link:"https://partner.us.tiktokshop.com/account/login"},{value:"creator",label:"portal_footer_product_3",link:"https://shop.tiktok.com/streamer/welcome?enter_from=official_website"}]},joinNow:{lists:[{text:"tts_portal_join_botton_seller",link:"https://seller-us-accounts.tiktok.com/account/register",query:{channel:"{{SellerChannel}}"}},{text:"tts_portal_join_botton_creator",link:"https://business.tiktokshop.com/us/creator"},{text:"tts_portal_join_botton_partner",link:"https://partner.tiktokshop.com/account/sign-up"}]}},switchSite:{list:a.e.switchSites}}};var l=n(11855);const u=l.createContext({region:"",language:"",onClickLogo:void 0,onLanguageChange:e=>{},operationExtraNodes:void 0,currentTab:"",config:void 0,globalVars:{}}),p=e=>{const{region:t="",language:n,onLanguageChange:o=(()=>{}),onClickLogo:i,operationExtraNodes:a,currentTab:s="",globalVars:l={},children:p,config:f}=e,h=null!=f?f:c[t];return(0,r.jsx)(u.Provider,{value:{region:t.toLocaleLowerCase(),language:null!=n?n:h.supportLang[0].value,onClickLogo:i,onLanguageChange:o,operationExtraNodes:a,currentTab:s,globalVars:Object.entries(l).reduce(((e,t)=>(e[`{{${t[0]}}}`]=t[1],e)),{}),config:h},children:p})},f=()=>(0,l.useContext)(u);var h=Object.defineProperty,d=Object.defineProperties,g=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const b=(e={})=>{return(0,r.jsxs)("svg",(t=((e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(m)for(var n of m(t))_.call(t,n)&&y(e,n,t[n]);return e})({width:"160",height:"30",viewBox:"0 0 160 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),d(t,g({children:[(0,r.jsx)("path",{d:"M107.725 18.7113H109.91C109.983 20.1933 111.392 21.6993 113.627 21.6993C115.861 21.6993 117.003 20.2907 117.003 18.8087C117.003 17.182 115.521 16.4527 114.111 16.0887L111.95 15.5547C108.403 14.7047 107.845 12.6153 107.845 11.256C107.845 8.36599 110.444 6.42266 113.36 6.42266C116.276 6.42266 118.654 8.29266 118.654 11.28H116.469C116.469 9.60399 115.083 8.46266 113.286 8.46266C111.611 8.46266 110.057 9.57999 110.057 11.232C110.057 11.8147 110.251 12.9807 112.485 13.5633L114.671 14.146C117.513 14.8993 119.213 16.356 119.213 18.7367C119.213 21.3353 117.1 23.7393 113.627 23.7393C110.155 23.7393 107.749 21.3107 107.725 18.7113H107.725Z",fill:"white"}),(0,r.jsx)("path",{d:"M132.036 16.8893V23.4473H129.923V17.0107C129.923 15.1167 128.758 13.902 127.179 13.902C125.601 13.902 123.705 14.85 123.705 17.3027V23.4473H121.593V5.93599H123.705V13.8293C124.386 12.4447 126.231 11.8133 127.471 11.8133C130.288 11.8133 132.061 13.708 132.036 16.8893Z",fill:"white"}),(0,r.jsx)("path",{d:"M134.058 17.764C134.058 14.1693 136.755 11.8133 139.985 11.8133C143.215 11.8133 145.935 14.1693 145.935 17.764C145.935 21.3587 143.215 23.7387 139.985 23.7387C136.755 23.7387 134.058 21.3587 134.058 17.764ZM143.822 17.764C143.822 15.4327 142.073 13.8053 139.984 13.8053C137.895 13.8053 136.195 15.432 136.195 17.764C136.195 20.096 137.919 21.7473 139.984 21.7473C142.049 21.7473 143.822 20.12 143.822 17.764Z",fill:"white"}),(0,r.jsx)("path",{d:"M160 17.788C160 21.3827 157.449 23.7387 154.341 23.7387C152.64 23.7387 151.037 23.0107 150.284 21.674V28.9607H148.171V12.104H150.284V13.8773C151.037 12.59 152.689 11.8127 154.317 11.8127C157.425 11.8127 160 14.2173 160 17.7873V17.788ZM157.863 17.8127C157.863 15.5533 156.211 13.8053 154.122 13.8053C152.033 13.8053 150.284 15.384 150.284 17.8127C150.284 20.2413 152.276 21.7473 154.122 21.7473C156.211 21.7473 157.863 20.0953 157.863 17.8127Z",fill:"white"}),(0,r.jsx)("path",{d:"M25.3793 6.77066H37.816L36.674 10.3287L33.4473 10.3273V23.482H29.4273V10.3273L25.382 10.3347L25.3793 6.77066Z",fill:"white"}),(0,r.jsx)("path",{d:"M70.9127 6.77066L69.7707 10.3287L66.2627 10.3273V23.482H62.236V10.3273L58.1907 10.3347L58.188 6.77066H70.9127Z",fill:"white"}),(0,r.jsx)("path",{d:"M38.574 12.086H42.5613L42.5573 23.482H38.598L38.574 12.086Z",fill:"white"}),(0,r.jsx)("path",{d:"M44.1427 6.72333H48.1253V14.506L52.0727 10.6327H56.8273L51.834 15.478L57.4267 23.482H53.038L49.306 17.9313L48.1253 19.0787V23.4813H44.1427V6.72266V6.72333Z",fill:"white"}),(0,r.jsx)("path",{d:"M86.3447 6.72333H90.3273V14.506L94.2747 10.6327H99.0293L94.036 15.478L99.6287 23.482H95.24L91.508 17.9313L90.3273 19.0787V23.4813H86.3447V6.72266V6.72333Z",fill:"white"}),(0,r.jsx)("path",{d:"M40.5667 10.7847C41.6753 10.7847 42.574 9.88595 42.574 8.77733C42.574 7.66871 41.6753 6.76999 40.5667 6.76999C39.458 6.76999 38.5593 7.66871 38.5593 8.77733C38.5593 9.88595 39.458 10.7847 40.5667 10.7847Z",fill:"white"}),(0,r.jsx)("path",{d:"M70.4027 16.6607C70.4027 13.0733 73.1727 10.1347 76.69 9.86133C76.5133 9.84733 76.2727 9.83866 76.0927 9.83866C72.3253 9.83866 69.2707 12.8927 69.2707 16.6607C69.2707 20.4287 72.3247 23.4827 76.0927 23.4827C76.2727 23.4827 76.514 23.4733 76.69 23.46C73.1727 23.1873 70.4027 20.2487 70.4027 16.6607Z",fill:"#25F4EE"}),(0,r.jsx)("path",{d:"M78.2393 9.83866C78.058 9.83866 77.8153 9.84799 77.6373 9.86199C81.1527 10.1373 83.92 13.0747 83.92 16.6607C83.92 20.2467 81.1527 23.184 77.6373 23.4593C77.8153 23.4733 78.058 23.4827 78.2393 23.4827C82.0067 23.4827 85.0613 20.4287 85.0613 16.6607C85.0613 12.8927 82.0073 9.83866 78.2393 9.83866Z",fill:"#FE2C55"}),(0,r.jsx)("path",{d:"M77.1613 9.83866C73.394 9.83866 70.3393 12.8927 70.3393 16.6607C70.3393 20.4287 73.3933 23.4827 77.1613 23.4827C80.9293 23.4827 83.9833 20.4287 83.9833 16.6607C83.9833 12.8927 80.9293 9.83866 77.1613 9.83866ZM77.1613 19.9767C75.33 19.9767 73.8453 18.492 73.8453 16.66C73.8453 14.828 75.33 13.344 77.1613 13.344C78.9927 13.344 80.4773 14.8287 80.4773 16.66C80.4773 18.4913 78.9927 19.9767 77.1613 19.9767Z",fill:"white"}),(0,r.jsx)("path",{d:"M8.31333 9.88799V8.90466C7.99 8.86066 7.66133 8.83333 7.326 8.83333C3.28667 8.83333 0 12.12 0 16.1593C0 18.638 1.238 20.8313 3.12733 22.1573C3.09267 22.1207 3.05867 22.0833 3.02533 22.0453C1.86867 20.7493 1.204 19.0407 1.204 17.1687C1.204 13.1873 4.35333 9.97999 8.31267 9.88799H8.31333Z",fill:"#25F4EE"}),(0,r.jsx)("path",{d:"M8.486 20.542C10.288 20.542 11.788 19.0813 11.8547 17.2947L11.8627 1.37399L14.7527 1.37866L14.746 1.34333C14.6853 1.01533 14.652 0.678662 14.652 0.333328H10.672L10.6653 16.2847C10.5987 18.0707 9.128 19.5047 7.326 19.5047C6.766 19.5047 6.23867 19.3647 5.774 19.12C6.382 19.9627 7.37 20.542 8.486 20.542Z",fill:"#25F4EE"}),(0,r.jsx)("path",{d:"M20.1893 6.82066V5.87066C19.0773 5.87066 18.042 5.53999 17.174 4.97399C17.9473 5.86199 18.9973 6.56533 20.1893 6.82066Z",fill:"#25F4EE"}),(0,r.jsx)("path",{d:"M17.174 4.97399C16.3267 4.00133 15.812 2.73133 15.812 1.34333H14.7173C14.998 2.85999 15.9267 4.16066 17.1733 4.97399H17.174Z",fill:"#FE2C55"}),(0,r.jsx)("path",{d:"M7.326 12.7827C5.48133 12.7827 3.95 14.314 3.95 16.1587C3.95 17.4433 4.70933 18.5593 5.774 19.12C5.37733 18.57 5.14067 17.8973 5.14067 17.1687C5.14067 15.324 6.64133 13.8227 8.48667 13.8227C8.83133 13.8227 9.16133 13.8793 9.474 13.9773V9.91399C9.15067 9.86999 8.822 9.84266 8.48667 9.84266C8.42867 9.84266 8.37133 9.84599 8.314 9.84733L8.28667 9.85133L8.28333 12.92C7.97067 12.822 7.67067 12.7833 7.32667 12.7833L7.326 12.7827Z",fill:"#FE2C55"}),(0,r.jsx)("path",{d:"M20.1893 6.75733L20.1687 6.75333L20.1593 9.81666C18.0953 9.81666 16.1907 9.14466 14.6293 8.02466L14.6247 16.1587C14.6247 20.198 11.3653 23.4547 7.326 23.4547C5.76467 23.4547 4.31733 22.992 3.12733 22.1567C4.466 23.5933 6.372 24.4947 8.486 24.4947C12.5253 24.4947 15.812 21.208 15.812 17.1687V9.07999C17.3733 10.2007 19.2853 10.8607 21.3493 10.8607V6.88066C20.9513 6.88066 20.5633 6.83733 20.1893 6.75733Z",fill:"#FE2C55"}),(0,r.jsx)("path",{d:"M14.652 16.1587V8.06999C16.2133 9.19066 18.1253 9.85066 20.1893 9.85066V6.75733C18.9973 6.50199 17.9467 5.86199 17.174 4.97399C15.9267 4.16066 15.0267 2.85999 14.746 1.34333H11.832L11.8253 17.2947C11.7587 19.0807 10.288 20.5147 8.486 20.5147C7.37 20.5147 6.382 19.9633 5.774 19.12C4.70933 18.5593 3.98 17.4433 3.98 16.1587C3.98 14.314 5.48067 12.8127 7.326 12.8127C7.67067 12.8127 8.00067 12.8693 8.31333 12.9673V9.84666C4.35333 9.93933 1.16 13.1867 1.16 17.1687C1.16 19.0947 1.908 20.848 3.12733 22.1567C4.31733 22.992 5.76467 23.4847 7.326 23.4847C11.3653 23.4847 14.652 20.198 14.652 16.1587Z",fill:"white"})]}))));var t};var w="Logo_0ce24",k="ColorfulLogo_0ce24",E="black_0ce24",S=n(30395),O=n.n(S);const x=e=>{const{white:t}=e,{region:n,onClickLogo:o,config:i}=f();return(0,r.jsx)("a",{href:o||null==i?void 0:i.logo.link,children:"id"===n?(0,r.jsx)("img",{className:w,src:t?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfUAAAA+CAYAAAAyEILSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABx2SURBVHgB7Z1NjBzHdYDfLJe2LJvkEokDJAzMYiAGhJhEKyHOIQexqQDJIYC1FMgggILsUIAOVgBxKSDIQYl3KFiAoYO5a8B2oINmaF+SSOAuhRwEBOAMfZJiQbuEJUOBE04zkh1AhjUrSpRkcXdf6k1X7/T0VFVXVXfPD1kfUJxld3XXb9ern1ev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z39E+wEjn7pDiztE7TqFGNjrYzSgsfj8Xg8O5otQj3et291ba1xCJvJyeYP/hpffu4fsGf/fswizbl5nPjKwsCQ4mDSbWysHfKjdI/H4/Fcy+zJPyDBPvgI7+z3oy9859sLv/Odbzf/L/wrfPLCKcwKd33+i/jn3/8T3Pn5Jhpra10vzD0ej8fjUQh1SaY4F2MGeeuzyzjw3/8Kj8fj2WVcgMdTgjl4PB6PZ1aYnSlRz47EC3WPx+OZHWj581l4PI54oe7xeDyzA50eRxfXnITH44AX6h6PxzNbkGAPkV4X28XoqFiPp5D/B6RG8oKaefUxAAAAAElFTkSuQmCC",onClick:o}):(0,r.jsx)(b,{className:O()(k,{[E]:!t}),onClick:o})})};var A="Tabs_e58af",z="space_e58af",T=n(43718),I=n(85738),C="Text_24460",j="active_24460",N=n(74116);const M=e=>{const{text:t,showArrow:n,className:o,onClick:i,active:a}=e;return(0,r.jsxs)("span",{className:O()(C,{[j]:a},o),onClick:i,children:[t,n&&(0,r.jsx)(N.A,{})]})};var P="TabBtn_c2ca3",D="DropdownMenu_c2ca3",R="MenuGroup_c2ca3",L="subTitle_c2ca3",U="menuItem_c2ca3",G=n(89082),B=n(72366),V=Object.defineProperty,F=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,K=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const W=e=>{const{value:t,title:n,link:o,subItems:i}=e,{t:a}=(0,G.s)(),{currentTab:s}=f(),c=!!i&&i.length>0,l=c?(0,r.jsx)(T.A,{className:D,children:i.map(((e,t)=>(0,r.jsx)(X,((e,t)=>{for(var n in t||(t={}))H.call(t,n)&&K(e,n,t[n]);if(F)for(var n of F(t))q.call(t,n)&&K(e,n,t[n]);return e})({},e),t)))}):void 0;return(0,r.jsx)(I.A,{trigger:"hover",droplist:l,children:(0,r.jsx)("a",{href:o,children:(0,r.jsx)(M,{className:P,showArrow:c,text:a(n),active:s===t})})})},X=e=>{const{subTitle:t,items:n}=e,{t:o}=(0,G.s)(),{globalVars:i}=f();return(0,r.jsxs)("div",{className:R,children:[t&&(0,r.jsx)("div",{className:L,children:o(t)}),n.map(((e,t)=>(0,r.jsx)(l.Fragment,{children:(0,r.jsx)(T.A.Item,{className:U,children:(0,r.jsx)("a",{href:(0,B.i)({url:e.link,query:e.query,globalVars:i}),children:o(e.text)})},t.toString())},t.toString())))]})};var Q=Object.defineProperty,Y=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,$=(e,t,n)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t)=>{for(var n in t||(t={}))J.call(t,n)&&$(e,n,t[n]);if(Y)for(var n of Y(t))Z.call(t,n)&&$(e,n,t[n]);return e};const te=()=>{var e;const{config:t}=f(),n=null!=(e=null==t?void 0:t.tabs)?e:[];return(0,r.jsx)("div",{className:A,children:n.map(((e,t)=>(0,r.jsxs)(l.Fragment,{children:[t>0&&(0,r.jsx)("div",{className:z}),(0,r.jsx)(W,ee({},e))]},t)))})};n(83011);var ne=n(1794),re="Language_2db49";const oe=()=>{var e,t,n;const{config:o,language:i,onLanguageChange:a}=f(),{t:s}=(0,G.s)(),c=null!=(e=null==o?void 0:o.supportLang)?e:[];return(null==c?void 0:c.length)<=1?null:(0,r.jsx)(ne.o,{selectValue:i,onItemClick:a,dropdownList:null==c?void 0:c.map((e=>({value:e.value,label:e.label}))),children:(0,r.jsx)(M,{className:re,text:null!=(n=null==(t=null==c?void 0:c.find((e=>e.value===i)))?void 0:t.label)?n:"",showArrow:!0})})};var ie="Login_d9917";const ae=()=>{var e;const{t}=(0,G.s)(),{config:n,globalVars:o}=f(),i=null==n?void 0:n.operations.login,a=null!=(e=null==i?void 0:i.lists)?e:[];return(0,r.jsx)(ne.o,{dropdownList:null==a?void 0:a.map((e=>({value:e.value,label:(0,r.jsx)("a",{href:(0,B.i)({url:e.link,query:e.query,globalVars:o}),children:t(e.label)})}))),children:(0,r.jsx)(M,{className:ie,text:t("portal_header_login"),showArrow:!1,onClick:()=>{var e;return null==(e=null==i?void 0:i.onClick)?void 0:e.call(i)}})})};var se="OperationLayout_3bfd8",ce="H5Layout_3bfd8",le=n(71358),ue="RedButton_583e8",pe=Object.defineProperty,fe=Object.defineProperties,he=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,ve=(e,t,n)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const _e=e=>{const t=e,{children:n,className:o}=t,i=((e,t)=>{var n={};for(var r in e)ge.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&de)for(var r of de(e))t.indexOf(r)<0&&me.call(e,r)&&(n[r]=e[r]);return n})(t,["children","className"]);return(0,r.jsx)(le.A,(a=((e,t)=>{for(var n in t||(t={}))ge.call(t,n)&&ve(e,n,t[n]);if(de)for(var n of de(t))me.call(t,n)&&ve(e,n,t[n]);return e})({className:O()(ue,o)},i),fe(a,he({children:n}))));var a},ye=()=>{var e;const{t}=(0,G.s)(),{config:n,globalVars:o}=f(),i=null==n?void 0:n.operations.joinNow,a=null!=(e=null==i?void 0:i.lists)?e:[];return(0,r.jsx)(ne.o,{dropdownList:null==a?void 0:a.map(((e,n)=>({value:n.toString(),label:(0,r.jsx)("a",{href:(0,B.i)({url:e.link,query:e.query,globalVars:o}),children:t(e.text)})}))),children:(0,r.jsx)(_e,{type:"primary",onClick:()=>{var e;return null==(e=null==i?void 0:i.onClick)?void 0:e.call(i)},children:t("portal_header_join")})})};var be=n(27043),we="MenuBtn_24780",ke=n(97596),Ee="menuModal_eb86e",Se="menuPanel_eb86e",Oe="show_eb86e",xe="hide_eb86e",Ae="MenuLayout_eb86e",ze="Divider_eb86e",Te="BottomButton_eb86e",Ie="Header_02772",Ce="Close_02772",je=n(65388);const Ne=e=>{const{onClose:t}=e;return(0,r.jsxs)("div",{className:Ie,children:[(0,r.jsx)(x,{white:!1}),(0,r.jsx)(je.A,{className:Ce,onClick:t})]})};var Me="MenuItem_edc31",Pe="text_edc31",De="subLayout_edc31",Re="subText_edc31";const Le=e=>{const{text:t,subText:n,link:o,icon:i,onClick:a}=e;return(0,r.jsxs)("a",{className:Me,href:o,onClick:a,children:[(0,r.jsx)("span",{className:Pe,children:t}),(0,r.jsxs)("div",{className:De,children:[n&&(0,r.jsx)("span",{className:Re,children:n}),i]})]})};var Ue="IconReverse_4ad68",Ge="SubMenuItemList_4ad68",Be="show_4ad68",Ve="SubMenuItem_4ad68",Fe="subTitle_4ad68",He="menuItem_4ad68",qe=Object.defineProperty,Ke=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Qe=(e,t,n)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Ye=e=>{const{title:t,link:n,subItems:o}=e,[i,a]=(0,l.useState)(!1),{t:s}=(0,G.s)(),c=!!o&&o.length>0;return(0,r.jsxs)("div",{children:[(0,r.jsx)(Le,{text:s(t),link:n,icon:c?(0,r.jsx)(N.A,{className:O()({[Ue]:i})}):void 0,onClick:()=>{c&&a((e=>!e))}}),c&&(0,r.jsx)(Je,{show:i,subItems:o})]})},Je=e=>{const{show:t,subItems:n=[]}=e;return(0,r.jsx)("div",{className:O()(Ge,{[Be]:t}),children:n.map(((e,t)=>(0,r.jsx)(Ze,((e,t)=>{for(var n in t||(t={}))We.call(t,n)&&Qe(e,n,t[n]);if(Ke)for(var n of Ke(t))Xe.call(t,n)&&Qe(e,n,t[n]);return e})({},e),t)))})},Ze=e=>{const{subTitle:t,items:n}=e,{t:o}=(0,G.s)(),{globalVars:i}=f();return(0,r.jsxs)("div",{className:Ve,children:[t&&(0,r.jsx)("div",{className:Fe,children:o(t)}),n.map(((e,t)=>(0,r.jsx)("a",{className:He,href:(0,B.i)({url:e.link,query:e.query,globalVars:i}),children:o(e.text)},t)))]})};var $e=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,rt=(e,t,n)=>t in e?$e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const ot=()=>{const{config:e}=f(),t=null==e?void 0:e.tabs;return(0,r.jsx)("div",{children:null==t?void 0:t.map(((e,t)=>(0,r.jsx)(Ye,((e,t)=>{for(var n in t||(t={}))tt.call(t,n)&&rt(e,n,t[n]);if(et)for(var n of et(t))nt.call(t,n)&&rt(e,n,t[n]);return e})({},e),t)))})};var it="icon_f2e6c",at="LanguageItem_f2e6c",st="selected_f2e6c",ct=n(96462),lt=n(7596);const ut=()=>{var e,t,n;const{config:o,language:i}=f(),[a,s]=(0,l.useState)(!1),{t:c}=(0,G.s)(),u=null!=(e=null==o?void 0:o.supportLang)?e:[];return u.length<2?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Le,{text:c("portal_header_language"),subText:null!=(n=null==(t=u.find((e=>e.value===i)))?void 0:t.label)?n:"",icon:(0,r.jsx)(N.A,{className:it}),onClick:()=>s(!0)}),(0,r.jsx)(ct.U,{visible:a,onCancel:()=>s(!1),maskClosable:!0,content:(0,r.jsx)(lt.k,{header:{title:c("portal_header_language_select")},onClose:()=>s(!1),content:(0,r.jsx)(pt,{})})})]})},pt=()=>{var e;const{config:t,language:n,onLanguageChange:o}=f(),i=null!=(e=null==t?void 0:t.supportLang)?e:[];return(0,r.jsx)("div",{children:i.map(((e,t)=>(0,r.jsx)("div",{className:O()(at,{[st]:n===e.value}),onClick:()=>null==o?void 0:o(e.value),children:e.label},t)))})};var ft="icon_649bc",ht="SiteItem_649bc",dt="selected_649bc";const gt=()=>{var e,t;const{region:n,config:o}=f(),[i,a]=(0,l.useState)(!1),{t:s}=(0,G.s)(),c=null==o?void 0:o.switchSite,u=null!=(e=null==c?void 0:c.list)?e:[];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Le,{text:s("portal_footer_country"),subText:s(null==(t=u.find((e=>e.value===n)))?void 0:t.label),icon:(0,r.jsx)(N.A,{className:ft}),onClick:()=>a(!0)}),(0,r.jsx)(ct.U,{visible:i,onCancel:()=>a(!1),maskClosable:!0,content:(0,r.jsx)(lt.k,{header:{title:s("portal_footer_country_select")},onClose:()=>a(!1),content:(0,r.jsx)(mt,{})})})]})},mt=()=>{var e;const{region:t,config:n}=f(),{t:o}=(0,G.s)(),i=null==n?void 0:n.switchSite,a=null!=(e=null==i?void 0:i.list)?e:[];return(0,r.jsx)("div",{children:a.map(((e,n)=>(0,r.jsx)("a",{className:O()(ht,{[dt]:t===e.value}),href:e.link,onClick:()=>{var t;return null==(t=null==i?void 0:i.onClick)?void 0:t.call(i,e.value)},children:o(e.label)},n)))})};var vt="Item_0bc78",_t="selected_0bc78";const yt=e=>{const{list:t,selectedValue:n}=e;return(0,r.jsx)("div",{children:t.map(((e,t)=>(0,r.jsx)("a",{className:O()(vt,{[_t]:n===e.value}),href:e.link,children:e.text},t)))})},bt=e=>{var t;const{onClose:n}=e,{t:o}=(0,G.s)(),{config:i,globalVars:a}=f(),[s,c]=(0,l.useState)(!1),u=null==i?void 0:i.operations.joinNow,p=null!=(t=null==u?void 0:u.lists)?t:[];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_e,{onClick:()=>{var e;p.length>0&&c(!0),null==(e=null==u?void 0:u.onClick)||e.call(u,{close:()=>null==n?void 0:n()})},children:o("portal_header_join")}),(0,r.jsx)(ct.U,{visible:s,onCancel:()=>c(!1),maskClosable:!0,content:(0,r.jsx)(lt.k,{header:{title:o("portal_header_join")},onClose:()=>c(!1),content:(0,r.jsx)(yt,{list:p.map(((e,t)=>({value:t.toString(),text:o(e.text),link:(0,B.i)({url:e.link,query:e.query,globalVars:a})})))})})})]})},wt=e=>{var t;const{onClose:n}=e,{t:o}=(0,G.s)(),[i,a]=(0,l.useState)(!1),{config:s,globalVars:c}=f(),u=null==s?void 0:s.operations.login,p=null!=(t=null==u?void 0:u.lists)?t:[];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(le.A,{type:"default",onClick:()=>{var e;p.length>0&&a(!0),null==(e=null==u?void 0:u.onClick)||e.call(u,{close:()=>null==n?void 0:n()})},children:o("portal_header_login")}),(0,r.jsx)(ct.U,{visible:i,onCancel:()=>a(!1),maskClosable:!0,content:(0,r.jsx)(lt.k,{header:{title:o("portal_header_join")},onClose:()=>a(!1),content:(0,r.jsx)(yt,{list:p.map(((e,t)=>({value:t.toString(),text:o(e.label),link:(0,B.i)({url:e.link,query:e.query,globalVars:c})})))})})})]})},kt=e=>{const{visible:t,onClose:n}=e;return(0,r.jsx)(ke.A,{maskStyle:{transition:"none"},wrapClassName:Ee,visible:t,modalRender:()=>(0,r.jsx)("div",{className:O()(Se,{[Oe]:t,[xe]:!t}),children:(0,r.jsx)(Et,{onClose:n})})})},Et=e=>{const{onClose:t}=e;return(0,r.jsxs)("div",{className:Ae,children:[(0,r.jsx)(Ne,{onClose:t}),(0,r.jsx)(ot,{}),(0,r.jsx)(St,{}),(0,r.jsx)(ut,{}),(0,r.jsx)(gt,{}),(0,r.jsxs)("div",{className:Te,children:[(0,r.jsx)(bt,{onClose:t}),(0,r.jsx)(wt,{onClose:t})]})]})},St=()=>(0,r.jsx)("div",{className:ze}),Ot=()=>{const[e,t]=(0,l.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(be.A,{className:we,onClick:()=>{t(!0)}}),(0,r.jsx)(kt,{visible:e,onClose:()=>t(!1)})]})},xt=e=>{const{className:t}=e,{operationExtraNodes:n}=f();return(0,r.jsxs)("div",{className:t,children:[(0,r.jsxs)("div",{className:se,children:[n,(0,r.jsx)(oe,{}),(0,r.jsx)(ae,{}),(0,r.jsx)(ye,{})]}),(0,r.jsxs)("div",{className:ce,children:[n,(0,r.jsx)(Ot,{})]})]})};var At=Object.defineProperty,zt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Nt=(e,t,n)=>t in e?At(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Mt=e=>{const t=e,{lang:n}=t,a=((e,t)=>{var n={};for(var r in e)Ct.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&It)for(var r of It(e))t.indexOf(r)<0&&jt.call(e,r)&&(n[r]=e[r]);return n})(t,["lang"]);return(0,r.jsx)(p,(s=((e,t)=>{for(var n in t||(t={}))Ct.call(t,n)&&Nt(e,n,t[n]);if(It)for(var n of It(t))jt.call(t,n)&&Nt(e,n,t[n]);return e})({language:n},a),c={children:(0,r.jsx)(G.C,{lang:n,children:(0,r.jsxs)("div",{className:o,children:[(0,r.jsx)(x,{white:!0}),(0,r.jsx)(te,{}),(0,r.jsx)(xt,{className:i})]})})},zt(s,Tt(c))));var s,c}},31088:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});const r={switchSites:[{value:"us",label:"portal_footer_country_us",link:"https://business.tiktokshop.com/us/seller"},{value:"gb",label:"portal_footer_country_uk",link:"https://business.tiktokshop.com/uk/seller"},{value:"id",label:"portal_footer_country_id",link:"https://shop-id.tokopedia.com/business/id"}]}},4640:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var r=(e=>(e.SellerChannel="SellerChannel",e))(r||{})},7596:(e,t,n)=>{"use strict";n.d(t,{k:()=>v});var r=n(63159),o="H5ModalContent_8be13",i="Header_8be13",a="title_8be13",s="close_8be13",c=n(65388),l=Object.defineProperty,u=Object.defineProperties,p=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&g(e,n,t[n]);if(f)for(var n of f(t))d.call(t,n)&&g(e,n,t[n]);return e};const v=e=>{const{header:t,content:n,onClose:i}=e;return(0,r.jsxs)("div",{className:o,children:[t&&(0,r.jsx)(_,(a=m({},t),s={onClose:i},u(a,p(s)))),n]});var a,s},_=e=>{const{title:t,onClose:n}=e;return(0,r.jsxs)("div",{className:i,children:[t&&(0,r.jsx)("div",{className:a,children:t}),(0,r.jsx)(c.A,{className:s,onClick:n})]})}},89082:(e,t,n)=>{"use strict";n.d(t,{C:()=>jr,s:()=>Nr});var r=n(63159),o=n(13523),i=n(14142),a=n(92750),s=n(7544),c=n(2951),l=n(38125),u=n(41832),p=n(35334),f={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},h=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.A)(this,e),this.init(t,n)}return(0,s.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||f,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function _(e,t,n){var r=v(e,t,Object);r.obj[r.k]=n}function y(e,t){var n=v(e,t),r=n.obj,o=n.k;if(r)return r[o]}function b(e,t,n){var r=y(e,n);return void 0!==r?r:y(t,n)}function w(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):w(e[r],t[r],n):e[r]=t[r]);return e}function k(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var E={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function S(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return E[e]})):e}var O="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,x=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,a.A)(this,t),n=(0,c.A)(this,(0,l.A)(t).call(this)),O&&d.call((0,u.A)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return(0,p.A)(t,e),(0,s.A)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),y(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),_(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var c=y(this.data,s)||{};r?w(c,n,o):c=(0,i.A)({},c,n),_(this.data,s,c),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?(0,i.A)({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(d),A={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},z={},T=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.A)(this,t),n=(0,c.A)(this,(0,l.A)(t).call(this)),O&&d.call((0,u.A)(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,u.A)(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=h.create("translator"),n}return(0,p.A)(t,e),(0,s.A)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var a=this;if("object"!==(0,o.A)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],n),l=c.key,u=c.namespaces,p=u[u.length-1],f=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(h){var d=n.nsSeparator||this.options.nsSeparator;return p+d+l}return l}var g=this.resolve(e,n),m=g&&g.res,v=g&&g.usedKey||l,_=g&&g.exactUsedKey||l,y=Object.prototype.toString.apply(m),b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&m&&("string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,n):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(s){var k="[object Array]"===y,E=k?[]:{},S=k?_:v;for(var O in m)if(Object.prototype.hasOwnProperty.call(m,O)){var x="".concat(S).concat(s).concat(O);E[O]=this.translate(x,(0,i.A)({},n,{joinArrays:!1,ns:u})),E[O]===x&&(E[O]=m[O])}m=E}}else if(w&&"string"==typeof b&&"[object Array]"===y)(m=m.join(b))&&(m=this.extendTranslation(m,e,n,r));else{var A=!1,z=!1,T=void 0!==n.count&&"string"!=typeof n.count,I=t.hasDefaultValue(n),C=T?this.pluralResolver.getSuffix(f,n.count):"",j=n["defaultValue".concat(C)]||n.defaultValue;!this.isValidLookup(m)&&I&&(A=!0,m=j),this.isValidLookup(m)||(z=!0,m=l);var N=I&&j!==m&&this.options.updateMissing;if(z||A||N){if(this.logger.log(N?"updateKey":"missingKey",f,p,l,N?j:m),s){var M=this.resolve(l,(0,i.A)({},n,{keySeparator:!1}));M&&M.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.")}var P=[],D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&D&&D[0])for(var R=0;R1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),l=c.key;n=l;var u=c.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var p=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(i=e,!z["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(z["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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((function(n){if(!a.isValidLookup(t)){o=n;var i,c,u=l,h=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(h,l,n,e,s);else p&&(i=a.pluralResolver.getSuffix(n,s.count)),p&&f&&h.push(u+i),f&&h.push(u+="".concat(a.options.contextSeparator).concat(s.context)),p&&h.push(u+=i);for(;c=h.pop();)a.isValidLookup(t)||(r=c,t=a.getResource(n,e,c,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var 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)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),t}(d);function I(e){return e.charAt(0).toUpperCase()+e.slice(1)}var C=function(){function e(t){(0,a.A)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h.create("languageUtils")}return(0,s.A)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=I(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]=I(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=I(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(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||[];var 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||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&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)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),j=[{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","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","kk","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}],N={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)}};var M=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.A)(this,e),this.languageUtils=t,this.options=r,this.logger=h.create("pluralResolver"),this.rules=(n={},j.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:N[e.fc]}}))})),n)}return(0,s.A)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),P=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.A)(this,e),this.logger=h.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,s.A)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:S,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?k(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?k(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?k(t.nestingPrefix):t.nestingPrefixEscaped||k("$t("),this.nestingSuffix=t.nestingSuffix?k(t.nestingSuffix):t.nestingSuffixEscaped||k(")"),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()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var o=b(t,c,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),l=i.join(s.formatSeparator).trim();return s.format(b(t,c,a),l,n,r)};this.resetRegExp();var p=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=u(o[1].trim())))if("function"==typeof p){var n=p(e,o,r);i="string"==typeof n?n:""}else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=m(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=(0,i.A)({},a);function c(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,s)).replace(/'/g,'"');try{s=JSON.parse(o),t&&(s=(0,i.A)({},t,s))}catch(_n){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),_n),"".concat(e).concat(n).concat(o)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],u=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var p=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=p.shift(),l=p,u=!0}if((r=t(c.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=m(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce((function(e,t){return o.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var D=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,a.A)(this,t),o=(0,c.A)(this,(0,l.A)(t).call(this)),O&&d.call((0,u.A)(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=h.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return(0,p.A)(t,e),(0,s.A)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=v(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,c){s&&c&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=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."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,(0,i.A)({},a,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(d);function R(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.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function L(){}var U,G,B,V=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,a.A)(this,t),e=(0,c.A)(this,(0,l.A)(t).call(this)),O&&d.call((0,u.A)(e)),e.options=R(n),e.services={},e.logger=h,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),(0,c.A)(e,(0,u.A)(e));setTimeout((function(){e.init(n,r)}),0)}return e}return(0,p.A)(t,e),(0,s.A)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=(0,i.A)({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,o.A)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,o.A)(e[2])||"object"===(0,o.A)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,R(t)),this.format=this.options.interpolation.format,n||(n=L),!this.options.isClone){this.modules.logger?h.init(r(this.modules.logger),this.options):h.init(null,this.options);var a=new C(this.options);this.store=new x(this.options.resources,this.options);var s=this.services;s.logger=h,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new M(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new P(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new D(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o0&&"dev"!==c[0]&&(this.options.lng=c[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((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=g(),u=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=g();return e||(e=this.languages),t||(t=this.options.ns),n||(n=L),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(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&&A.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=g();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var a;if("object"!==(0,o.A)(r)){for(var s=arguments.length,c=new Array(s>2?s-2:0),l=2;l1&&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;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.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};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=g();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=g();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L,o=(0,i.A)({},this.options,n,{isClone:!0}),a=new t(o);return["store","services","language"].forEach((function(t){a[t]=e[t]})),a.services=(0,i.A)({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new T(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(le,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ue.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(se.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(se,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),o.options.length&&(t=(0,H.Cl)((0,H.Cl)({},t),pe(o.options[0])))}else if(ce.test(o.stem))t=(0,H.Cl)((0,H.Cl)({},t),pe(o.stem));else{var i=fe(o.stem);i&&(t=(0,H.Cl)((0,H.Cl)({},t),i));var a=he(o.stem);a&&(t=(0,H.Cl)((0,H.Cl)({},t),a))}}return t}var me=new RegExp("^"+ne.source+"*"),ve=new RegExp(ne.source+"*$");function _e(e,t){return{start:e,end:t}}var ye=!!String.prototype.startsWith,be=!!String.fromCodePoint,we=!!Object.fromEntries,ke=!!String.prototype.codePointAt,Ee=!!String.prototype.trimStart,Se=!!String.prototype.trimEnd,Oe=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xe=!0;try{xe="a"===(null===(ae=Me("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ae?void 0:ae[0])}catch(Mn){xe=!1}var Ae,ze=ye?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Te=be?String.fromCodePoint:function(){for(var e=[],t=0;ti;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Ie=we?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},je=Ee?function(e){return e.trimStart()}:function(e){return e.replace(me,"")},Ne=Se?function(e){return e.trimEnd()}:function(e){return e.replace(ve,"")};function Me(e,t){return new RegExp(e,t)}if(xe){var Pe=Me("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ae=function(e,t){var n;return Pe.lastIndex=t,null!==(n=Pe.exec(e)[1])&&void 0!==n?n:""}}else Ae=function(e,t){for(var n=[];;){var r=Ce(e,t);if(void 0===r||Ue(r)||Ge(r))break;n.push(r),t+=r>=65536?2:1}return Te.apply(void 0,n)};var De=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(U.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Re(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:G.pound,location:_e(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:G.literal,value:"<"+r+"/>",location:_e(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:G.tag,value:r,children:i,location:_e(n,this.clonePosition())},err:null}:this.error(U.INVALID_TAG,_e(a,this.clonePosition())))}return this.error(U.UNCLOSED_TAG,_e(n,this.clonePosition()))}return this.error(U.INVALID_TAG,_e(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Le(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=_e(n,this.clonePosition());return{val:{type:G.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Re(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Te.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Te(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,_e(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(U.EMPTY_ARGUMENT,_e(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(U.MALFORMED_ARGUMENT,_e(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,_e(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:G.argument,value:r,location:_e(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,_e(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(U.MALFORMED_ARGUMENT,_e(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Ae(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:_e(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(U.EXPECT_ARGUMENT_TYPE,_e(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(f=Ne(m.val)).length)return this.error(U.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));c={style:f,styleLocation:_e(l,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var u=_e(r,this.clonePosition());if(c&&ze(null==c?void 0:c.style,"::",0)){var p=je(c.style.slice(2));if("number"===a)return(m=this.parseNumberSkeletonFromString(p,c.styleLocation)).err?m:{val:{type:G.number,value:n,location:u,style:m.val},err:null};if(0===p.length)return this.error(U.EXPECT_DATE_TIME_SKELETON,u);var f={type:B.dateTime,pattern:p,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?oe(p):{}};return{val:{type:"date"===a?G.date:G.time,value:n,location:u,style:f},err:null}}return{val:{type:"number"===a?G.number:"date"===a?G.date:G.time,value:n,location:u,style:null!==(o=null==c?void 0:c.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(U.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(h,(0,H.Cl)({},h)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));var m;if(this.bumpSpace(),(m=this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=m.val}var v,_=this.tryParsePluralOrSelectOptions(e,a,t,d);if(_.err)return _;if((v=this.tryParseArgumentClose(r)).err)return v;var y=_e(r,this.clonePosition());return"select"===a?{val:{type:G.select,value:n,options:Ie(_.val),location:y},err:null}:{val:{type:G.plural,value:n,options:Ie(_.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:y},err:null};default:return this.error(U.INVALID_ARGUMENT_TYPE,_e(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,_e(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(U.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ie).filter((function(e){return e.length>0})),n=[],r=0,o=t;r=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=_e(r,this.clonePosition());return o?Oe(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ce(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ze(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ue(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Re(e){return e>=97&&e<=122||e>=65&&e<=90}function Le(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ue(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Ge(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Be(e){e.forEach((function(e){if(delete e.location,Y(e)||J(e))for(var t in e.options)delete e.options[t].location,Be(e.options[t].value);else W(e)&&ee(e.style)||(X(e)||Q(e))&&te(e.style)?delete e.style.location:$(e)&&Be(e.children)}))}function Ve(e,t){void 0===t&&(t={}),t=(0,H.Cl)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new De(e,t).parse();if(n.err){var r=SyntaxError(U[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Be(n.val),n.val}function Fe(e,t){var n=t&&t.cache?t.cache:Je,r=t&&t.serializer?t.serializer:Xe;return(t&&t.strategy?t.strategy:We)(e,{cache:n,serializer:r})}function He(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function qe(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function Ke(e,t,n,r,o){return n.bind(t,e,r,o)}function We(e,t){return Ke(e,this,1===e.length?He:qe,t.cache.create(),t.serializer)}var Xe=function(){return JSON.stringify(arguments)};function Qe(){this.cache=Object.create(null)}Qe.prototype.has=function(e){return e in this.cache},Qe.prototype.get=function(e){return this.cache[e]},Qe.prototype.set=function(e,t){this.cache[e]=t};var Ye,Je={create:function(){return new Qe}},Ze={variadic:function(e,t){return Ke(e,this,qe,t.cache.create(),t.serializer)},monadic:function(e,t){return Ke(e,this,He,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ye||(Ye={}));var $e,et=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return(0,H.C6)(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),tt=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',Ye.INVALID_VALUE,o)||this}return(0,H.C6)(t,e),t}(et),nt=function(e){function t(t,n,r){return e.call(this,'Value for "'+t+'" must be of type '+n,Ye.INVALID_VALUE,r)||this}return(0,H.C6)(t,e),t}(et),rt=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',Ye.MISSING_VALUE,n)||this}return(0,H.C6)(t,e),t}(et);function ot(e){return"function"==typeof e}function it(e,t,n,r,o,i,a){if(1===e.length&&q(e[0]))return[{type:$e.literal,value:e[0].value}];for(var s=[],c=0,l=e;c-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}void 0===n&&(n=null);for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}!function(e){e.keepRaw="keepRaw",e.replaceAnyway="replaceAnyway"}(ct||(ct={}));ct.replaceAnyway;var ht={memoize:!1,memoizeFallback:!1,bindI18n:!1,bindI18nStore:!1,onParseError:ct.replaceAnyway},dt=function(){function e(){this.mem={}}return e.staticInit=function(t){e._i18nextInstance=t},e.prototype.init=function(t,n){var r=this;void 0===t&&(t=e._i18nextInstance);var o={};if((null==t?void 0:t.options)&&(t.options.i18nFormat&&(o=t.options.i18nFormat),o.onParseError=t.options.onParseError,o.missingInterpolationHandler=t.options.missingInterpolationHandler,o.icuConfig=t.options.icuConfig,o.ignoreWarning=!!t.options.ignoreWarning),this.options=Object.assign(ht,n,o),this.formats=this.options.formats,t){var i=this.options,a=i.bindI18n,s=i.bindI18nStore,c=i.memoize;t.IntlMessageFormat=ut,this.IntlMessageFormat=ut,t.ICU=this,c&&(a&&t.on(a,(function(){return r.clearCache()})),s&&t.store.on(s,(function(){return r.clearCache()})))}this.options.localeData&&("[object Array]"===Object.prototype.toString.apply(this.options.localeData)?this.options.localeData.forEach((function(e){return r.addLocaleData(e)})):this.addLocaleData(this.options.localeData))},e.prototype.addLocaleData=function(e){("[object Array]"===Object.prototype.toString.apply(e)?e:[e]).forEach((function(e){e&&e.locale&&ut.__addLocaleData(e)}))},e.prototype.addUserDefinedFormats=function(e){this.formats=this.formats?pt(pt({},this.formats),e):e},e.prototype.checkMissingInterpolation=function(e,t,n,r,o){if(!1===(this.options.icuConfig||{}).strict)return n;for(var i={},a=0,s=e;a-1?(window.__STARLING_INCONTEXT_GLOBAL__HOOK__.payload[t][a].default=e,o=a):o=window.__STARLING_INCONTEXT_GLOBAL__HOOK__.payload[t].push({options:n,default:e})-1}else window.__STARLING_INCONTEXT_GLOBAL__HOOK__.payload[t]=[{options:n,default:e}],o=0;return"[[__starling_"+o+"_"+t+"__]]"}return e}};function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e._waitingToAddResourceBundle);try{for(a.s();!(i=a.n()).done;){var s,c=i.value;(s=e.instance).addResourceBundle.apply(s,wt(c))}}catch(r){a.e(r)}finally{a.f()}e._waitingToAddResourceBundle=[]}catch(r){}r||(e._updateLanguages(),t({t:o,err:r})),e.init=!0,n({t:o,err:r})}))}))}},{key:"_updateLanguages",value:function(){this.languages=this.instance?Array.from(new Set([this.instance.language].concat(wt(this.instance.languages)))):null}},{key:"getLanguages",value:function(){return this.languages}},{key:"changeLanguage",value:function(e,t){var n=this;this.config.lng=e,this.instance.changeLanguage(e,(function(e,r){e||n._updateLanguages(),t&&t(e,r)}))}},{key:"changeLanguageWithPromise",value:function(e){var t=this;return new Promise((function(n,r){t.config.lng=e,t.instance.changeLanguage(e,(function(e,o){e&&r({err:e,t:o}),t._updateLanguages(),n({err:e,t:o})}))}))}},{key:"getDir",value:function(e){return this.instance.dir(e)}},{key:"t",value:function(e,t,n){var r=Array.isArray(e)?Array.from(e).map((function(){return" "})).join(""):Array(e.length).fill(" "),o=Object.assign({keySeparator:r,nsSeparator:r},t);return"thirdParamFallback"in this.config&&this.config.thirdParamFallback&&(o.thirdParamFallback=!0),this.instance.t(e,n,o)}},{key:"addResourceBundle",value:function(e,t,n,r,o){return this.instance.isInitialized?this.instance.addResourceBundle(e,t,n,r,o):(this._waitingToAddResourceBundle.push([e,t,n,!!r,!!o]),this.instance)}},{key:"cloneInstance",value:function(t,n){var r=this.instance.cloneInstance(t,n),o=new e({copiedI18nextInstance:r});return o.t=this.t.bind(o),o.config=this.config,o.plugins=this.plugins,o.languages=this.languages,o.init=r.isInitialized||Boolean(this.init),o.userLng=this.userLng,r.on("initialized",(function(){o.init=!0})),o}}]),e}(),Pt="Starling_intl:",Dt=function(){for(var e,t="".concat(Pt," [WARNING]"),n=arguments.length,r=new Array(n),o=0;o0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=300||!i)return function(e,t,n,r){var o=(r||{}).message||"";o=o?", reason is: ".concat(o):"",t(new gn("Request failed with status code "+e.status+o,n,null,e,{data:{}},!0))}(o,r,e,n),void(o=null);var a={data:i,status:o.status,statusText:o.statusText,request:o};t(a),o=null}},o.onerror=function(){r(new gn("Network Error",e,null,o,{data:{}},!0)),o=null},o.timeout=n,o.ontimeout=function(){r(new gn("timeout of "+n+"ms exceeded",e,"ECONNABORTED",o,{data:{}},!0)),o=null},o.send()}))}var vn=function(e){function t(t){return t.store||(t.store=dn),t.request||(t.request=mn),e.call(this,t)||this}return qt(t,e),t}(hn),_n=function(){return(_n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function bn(){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}(),Ln={sg:"1fz22z22z1nz21z4mz4bz4bz21z1ez18z1jz1gz49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz18z1jz1gz24z18z49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k"},Un={va:"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",in:"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},Gn={sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z21z1ez4az22z1gz1iz22z1mz1iz24z4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k",in:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z49z23z21z1cz18z21z22z4ez18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k",ie2:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4ez4az22z1gz1iz22z1mz1iz25z4az1cz23"},Bn={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"}(kn||(kn={})),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"}(En||(En={}));var Vn=kn,Fn=void 0,Hn=(new Date).getTimezoneOffset(),qn=parseInt(""+-Hn/60,10),Kn=60*Hn,Wn=function(){function e(e,t){this.is_first_time=!0,this.configPersist=!1,this.initConfig=t,this.collect=e;var n=new Rn(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 Dn(!1,"session"),this.localStorage=new Dn(!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 o=this.localStorage.getItem(r);o&&1==o?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(r,"1")),this.envInfo={user:{user_unique_id:Fn,user_type:Fn,user_id:Fn,user_is_auth:Fn,user_is_login:Fn,device_id:Fn,web_id:Fn,ip_addr_id:Fn,user_unique_id_type:Fn},header:{app_id:Fn,app_name:Fn,app_install_id:Fn,install_id:Fn,app_package:Fn,app_channel:Fn,app_version:Fn,ab_version:Fn,os_name:n.os_name,os_version:n.os_version,device_model:n.device_model,ab_client:Fn,traffic_type:Fn,client_ip:Fn,device_brand:Fn,os_api:Fn,access:Fn,language:n.language,region:Fn,app_language:Fn,app_region:Fn,creative_id:n.utm.creative_id,ad_id:n.utm.ad_id,campaign_id:n.utm.campaign_id,log_type:Fn,rnd:Fn,platform:n.platform,sdk_version:"5.2.0_oversea",sdk_lib:"js",province:Fn,city:Fn,timezone:qn,tz_offset:Kn,tz_name:Fn,sim_region:Fn,carrier:Fn,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?Gn[n]:Bn[n]:Ln[n];r||(console.warn("current channel: "+n+" is not exist, use va instead, please check!!!!"),r=Ln.sg),this.domain=An(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.0_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=_n(_n({},t.evtParams||{}),e.evtParams||{});else if("_staging_flag"===n)t.evtParams=_n(_n({},t.evtParams||{}),{_staging_flag:e._staging_flag});else if("reportErrorCallback"===n&&"function"==typeof e[n])t.reportErrorCallback=e[n];else{var r="",o="";if(n.indexOf(".")>-1){var i=n.split(".");r=i[0],o=i[1]}r?"user"===r||"header"===r?t.envInfo[r][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(En.DEBUGGER_MESSAGE,{type:En.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(En.DEBUGGER_MESSAGE,{type:En.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(En.DEBUGGER_MESSAGE,{type:En.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(En.DEBUGGER_MESSAGE,{type:En.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message}),console.log("delete error")}},e}(),Xn=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}(),Qn=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}(),Yn=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}(),Jn=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 Dn(!0),this.localStorage=new Dn(!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(Vn.Ready,(function(){n.reportAll(!1)})),this.collect.on(Vn.ConfigDomain,(function(){n.reportUrl=n.configManager.getUrl("event")})),this.collect.on(Vn.Event,(function(e){n.event(e)})),this.collect.on(Vn.BeconEvent,(function(e){n.beconEvent(e)})),this.collect.on(Vn.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=bn(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(En.DEBUGGER_MESSAGE,{type:En.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e.prototype.beconEvent=function(e){var t=bn(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroy||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.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.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)},$n=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 Dn(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.enable_ttwebid=t.enable_ttwebid,this.enableCustomWebid=t.enable_custom_webid,this.collect.on(Vn.ConfigUuid,(function(e){n.setUuid(e)})),this.collect.on(Vn.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(Vn.CustomWebId,(function(){e.tokenReady=!0,e.collect.emit(Vn.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:Zn(),user_unique_id:this.configManager.get("user_unique_id")||Zn()}):this.remoteWebid()},e.prototype.checkEnv=function(){var e=window.navigator.userAgent;if(-1!==e.indexOf("miniProgram")||-1!==e.indexOf("MiniProgram")){var t=Tn(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(En.DEBUGGER_MESSAGE,{type:En.DEBUGGER_MESSAGE_SDK,info:"SDK \u53d1\u8d77WEBID\u8bf7\u6c42",logType:"fetch",level:"info",time:Date.now(),data:n});var r=Zn();this.collect.requestManager.useRequest({url:t,data:n,success:function(t){var n;t&&0===t.e?(n=t.web_id,e.collect.emit(En.DEBUGGER_MESSAGE,{type:En.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(Vn.TokenError),e.collect.emit(En.DEBUGGER_MESSAGE,{type:En.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(Vn.TokenError),e.collect.emit(En.DEBUGGER_MESSAGE,{type:En.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(Vn.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(Vn.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(Vn.TokenChange,"uuid"),this.collect.emit(Vn.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(Vn.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(Vn.TokenChange,"uuid")),t!==e&&(this.configManager.set({web_id:e}),this.collect.emit(Vn.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}(),er=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)}))},tr=function(){function e(){}return e.prototype.apply=function(e,t){var n=this;this.collect=e,this.storage=new Dn(!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(Vn.SessionReset,(function(e){n.resetSessionId(e)})),this.collect.on(Vn.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:er(),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:er(),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||er(),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:er(),timestamp:Date.now()},this.storage.setItem(this.sessionKey,e))},e}(),nr=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,o=e.success,i=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){o&&o(e)})).catch((function(e){i&&i(n,e)})):(this.requestType="xhr",console.log("your brwoser not support fetch, use xhr"),this.useRequest({url:t,data:n,method:r,success:o,fail:i}))},e.prototype.useBeacon=function(e){var t=e.url,n=e.data,r=e.success,o=e.fail;window.navigator.sendBeacon(t,JSON.stringify(n))?r&&r():o&&o(n,this.errorCode.BEACON_FALSE)},e.prototype.useRequest=function(e){var t=this,n=e.url,r=e.data,o=e.method,i=e.success,a=e.fail,s=e.timeout,c=e.useBeacon,l=e.withCredentials,u=e.app_key,p=e.forceXhr;if(c&&this.supportBeacon)this.useBeacon({url:n,data:r,method:o,success:i,fail:a});else if("fetch"!==this.requestType||p)try{var f=new XMLHttpRequest,h=o||"POST";if(f.open(h,""+n,!0),f.setRequestHeader("Content-Type","application/json; charset=utf-8"),u&&f.setRequestHeader("X-MCS-AppKey",""+u),Object.keys(this.customHeader).length)for(var d in this.customHeader)f.setRequestHeader(d,this.customHeader[d]);l&&(f.withCredentials=!0),s&&(f.timeout=s,f.ontimeout=function(){a&&a(r,t.errorCode.TIMEOUT)}),f.onload=function(){if(i){var e=null;if(f.responseText){try{e=JSON.parse(f.responseText)}catch(t){e={}}i(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:o,success:i,fail:a})},e}(),rr=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.0_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(Vn.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||An(Un[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(En.DEBUGGER_MESSAGE,(function(t){switch(t.type){case En.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 En.DEBUGGER_MESSAGE_EVENT:if(t.data&&t.data.length){var r=t.data[0],o=r.events;if(!o.length)return;o.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}(),or={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"}},ir=["et","profile","heartbeat","monitor"],ar=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.name=e,this.hook=new Sn,this.remotePlugin=new Map,this.Types=Vn,this.adapters.storage=Dn}return e.usePlugin=function(t,n,r){if(n){for(var o=!1,i=0,a=e.plugins.length;ithis.sessionInterval&&(this.clearInterval(),this.endCurrentSession(),this.setInterval())},e}(),lr=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,o=e.errorCode;"f_data"===t&&n.sdkError(r,o)}))}},e.prototype.sdkOnload=function(){var e=this;try{var t=this.collect.configManager.get(),n=t.header,r=t.user,o=n.app_id,i=n.app_name,a=n.sdk_version,s=r.web_id,c={events:[{event:"onload",params:JSON.stringify({app_id:o,app_name:i||"",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],o=r.user,i=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:i.app_id,app_name:i.app_name||"",error_event:e.event,sdk_version:i.sdk_version,local_time_ms:e.local_time_ms,tea_event_index:Date.now(),params:e.params,header:JSON.stringify(i),user:JSON.stringify(o)}),local_time_ms:Date.now()}})),user:{user_unique_id:o.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}(),ur="undefined"!=typeof window?(window.LogPluginObject||(window.LogPluginObject={}),window.LogPluginObject):null,pr=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(or.hasOwnProperty(n)){var r=or[n].object,o=""+or[n].src[e.channel];e.exist(n,r,o)}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(En.DEBUGGER_MESSAGE,{type:En.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;ur[t]?(this.process(e,ur[t]),console.log("\u5df2\u6709"+e+"\u63d2\u4ef6\uff0c\u907f\u514d\u91cd\u590d\u52a0\u8f7d~")):this.loadPlugin(e,n,(function(){r.process(e,ur[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(En.DEBUGGER_MESSAGE,{type:En.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 o=this;try{var i=document.createElement("script");i.src=t,this._plugin[e]||(this._plugin[e]=[]),this._plugin[e].push(n),i.onerror=function(){r(t)},i.onload=function(){o._plugin[e].forEach((function(e){e()}))},document.getElementsByTagName("head")[0].appendChild(i)}catch(e){this.collect.emit(En.DEBUGGER_MESSAGE,{type:En.DEBUGGER_MESSAGE_SDK,info:"\u53d1\u751f\u4e86\u5f02\u5e38",level:"error",time:Date.now(),data:e.message})}},e}();ar.usePlugin(pr,"extend"),ar.usePlugin(sr,"et"),ar.usePlugin(cr,"heartbeat"),ar.usePlugin(lr,"monitor");var fr=new ar("default"),hr=3053,dr=3297;var gr=function(e){function t(t){var n=t.test,r=t.TEAChannelDomain,o=void 0===r?"":r,i=t.mode,a=t.TEAChannel,s=t.TEAChannelType;return t.tracker=o||s||a?function(e){var t=e.isTest,n=e.channel_domain,r=e.channel_type,o=e.channel,i=/snssdk|zijieapi/g.test(n)&&/ttp|tcpy/g.test(r)&&/va|sg|in/g.test(o)?hr:dr;return fr.init({app_id:i,channel_type:r,channel:o,channel_domain:n}),fr.config({_staging_flag:t?1:0,enable_et_test:t}),fr.start(),fr.event.bind(fr)}({isTest:n||"test"===i,channel_domain:o,channel_type:s,channel:a}):function(){},e.call(this,t)||this}return qt(t,e),t}(vn),mr=JSON.parse('{"GNE_PH_COR_I2C_BILLING_ADDRESS_ENTER":"Billing Address","GNE_PH_COR_I2C_BIZ_DOC":"Upload Company Registration Document","GNE_PH_COR_I2C_BIZ_DOC_REMIND01":"1. Sole Proprietorships = DTI Cert; Corporations & OPCs =SEC Articles of Incorporation; Partnerships = Articles of Partnership.","GNE_PH_COR_I2C_BIZ_DOC_REMIND02":"2.Ensure that characters on the document are not deformed or flared","GNE_PH_COR_I2C_BIZ_DOC_REMIND03":"3. The uploaded file must be less than 10MB and in JPG/PNG/JPEGor PDF format.","GNE_PH_COR_I2C_BIZ_NAME":"Company Name","GNE_PH_COR_I2C_BIZ_NAME_EXPLAIN":"You will need to provide a valid payment account later in order to get paid, the name you enter here needs to be the same as the name on your payment account.","GNE_PH_COR_I2C_BIZ_NAME_PREFILL":"Enter the company name","GNE_PH_COR_I2C_BIZ_STYLE":"Business Style","GNE_PH_COR_I2C_BIZ_STYLE_EXPLAIN":"Your registered business name or trade name, apart from your registered company name","GNE_PH_COR_I2C_BIZ_STYLE_PREFILL":"Please enter","GNE_PH_COR_I2C_BOTTOM_REMIND":"By proceeding, you acknowledge and warrant that the information you provide is accurate and complete. TikTok Shop will not be responsible for any omissions or discrepancies that may result in incorrect tax documentation","GNE_PH_COR_I2C_DISPLAY_TITLE":"Revised Tax Invoice Details","GNE_PH_COR_I2C_DISPLAY_TITLE_EXPLAIN":"Based on your latest approved tax information, your invoices will be generated with the following details instead. Please ensure that further amendments (if any) should only be made via this page","GNE_PH_COR_I2C_DOC_MATCH_REMIND001":"Reminder: Please","GNE_PH_COR_I2C_DOC_MATCH_REMIND002":"update your sworn declaration and tax exemaption certificate","GNE_PH_COR_I2C_DOC_MATCH_REMIND003":"(if applicable) in accordance with your new company information provided here","GNE_PH_COR_I2C_MATCH_STATUS_CORP":"This COR matches my company name on my seller account.","GNE_PH_COR_I2C_MATCH_STATUS_EXPLIAN":"If \\"No\\" is selected, you will be required to provide additional details as proof of ownership.","GNE_PH_COR_I2C_MATCH_STATUS_INDI":"This COR matches my personal name on my seller account.","GNE_PH_COR_I2C_MATCH_STATUS_NO":"NO","GNE_PH_COR_I2C_MATCH_STATUS_REMIND":"Reminder: Please update your sworn declaration and tax exemption certificate (if applicable) in accordance with your new company information provided here.","GNE_PH_COR_I2C_MATCH_STATUS_YES":"YES","GNE_PH_COR_I2C_POSTCODE_ENTER":"Enter Postcode","GNE_PH_COR_I2C_TIN":"Taxpayer Identification Number (TIN)","GNE_PH_COR_I2C_TIN_DISPLAY":"TIN","GNE_PH_COR_I2C_TIN_EXPLAIN":"The unique number assigned to you by BIR for tax purposes.","GNE_PH_COR_I2C_TIN_PREFILL":"Please enter TIN","GNE_PH_COR_I2C_VAT_STATUS":"VAT Status","GNE_PH_COR_I2C_VAT_STATUS_NO":"No, I have not registered for VAT in Philippines.","GNE_PH_COR_I2C_VAT_STATUS_YES":"Yes,I have registered for VAT in Philippines.","landing_page_detail_blackFriday":"Grow your business with our timely insights, new feature updates, rewards and more.","landing_page_detail_general":"Don\u2019t miss out on growing your business with TikTok Shop\u2019s timely insights, new features, rewards, and more.","landing_page_form_button":"Subscribe","landing_page_form_other_store_link":"Enter your shop link from another platform (optional)","landing_page_form_phone_email":"Enter email or phone number","landing_page_form_policy_acknowladged":"You acknowledge that you have reviewed the {{policy_link}}.","landing_page_form_policy_name":"TikTok Shop Privacy Policy","landing_page_form_submission_detail":"Look out for the latest TikTok Shop news, webinars, and more from us.","landing_page_form_submission_failure":"Subscribe failed. Please try again","landing_page_form_submission_title":"Thanks for subscribing!","landing_page_title_blackFriday":"Get ready for {{highlight}} with the latest TikTok Shop updates!","landing_page_title_general":"Subscribe for {{highlight}}!","landing_page_title_highlight_blackFriday":"Black Friday","landing_page_title_highlight_general":"the latest TikTok Shop updates","portal_footer_cancel":"Cancel","portal_footer_company":"Company","portal_footer_company_1":"ByteDance","portal_footer_company_2":"TikTok","portal_footer_company_3":"TikTok for Business","portal_footer_company_4":"CapCut","portal_footer_contact_partner_1":"TikTok Shop Partners:","portal_footer_contact_partner_2":"Talent Agencies:","portal_footer_contact_seller":"Contact the seller support team","portal_footer_cookie_policy":"Cookie policy","portal_footer_country":"Region","portal_footer_country_de":"Germany","portal_footer_country_es":"Spain","portal_footer_country_fr":"France","portal_footer_country_gs":"Global Selling","portal_footer_country_id":"Indonesia","portal_footer_country_ie":"Ireland","portal_footer_country_it":"Italy","portal_footer_country_mx":"Mexico","portal_footer_country_my":"Malaysia","portal_footer_country_ph":"Philippines","portal_footer_country_sa":"Saudi Arabia","portal_footer_country_select":"Select region","portal_footer_country_sg":"Singapore","portal_footer_country_th":"Thailand","portal_footer_country_uk":"United Kingdom","portal_footer_country_us":"United States","portal_footer_country_vn":"Vietnam","portal_footer_follow_facebook":"Facebook","portal_footer_follow_ins":"Instagram","portal_footer_follow_tiktok_buyer":"TikTok for buyers","portal_footer_follow_tiktok_creator":"TikTok for creators","portal_footer_follow_tiktok_seller":"TikTok for sellers","portal_footer_id_product_6":"Shop Partner","portal_footer_ipr":"Intellectual property protection","portal_footer_policy":"Policy","portal_footer_product":"Product","portal_footer_product_1":"Seller Center","portal_footer_product_2":"App Store","portal_footer_product_3":"LIVE Manager","portal_footer_product_4":"CapCut creative suite","portal_footer_product_5":"Partner Desktop","portal_footer_right_reserve":"\xa9 %s TikTok. All rights reserved","portal_footer_support":"Support","portal_footer_support_1":"Academy","portal_footer_support_2":"Feature guide","portal_footer_support_3":"Policy Center","portal_footer_support_4":"Contact us","portal_footer_support_5":"File a complaint","portal_footer_terms":"Terms and policies","portal_footer_uk_product_6":"TikTok Shop Partner","portal_footer_us_product_6":"Agencies & services","portal_header_account_switch":"Switch account","portal_header_blog":"Blog","portal_header_creator":"Creator","portal_header_education":"Education","portal_header_join":"Join now","portal_header_language":"Language","portal_header_language_arabic":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","portal_header_language_bahasa":"Bahasa Indonesia","portal_header_language_cn":"\u7b80\u4f53\u4e2d\u6587","portal_header_language_french":"Fran\xe7ais","portal_header_language_german":"Deutsch","portal_header_language_italian":"Italiano","portal_header_language_melayu":"Bahasa Melayu","portal_header_language_portuguese":"Portugu\xeas","portal_header_language_select":"Select language","portal_header_language_spainish":"Espa\xf1ol","portal_header_language_thai":"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22","portal_header_language_uk":"UK English ","portal_header_language_us":"US English ","portal_header_language_vietnamese":"Ti\u1ebfng Vi\u1ec7t","portal_header_log_out":"Log out","portal_header_login":"Log in","portal_header_partner":"Partner","portal_header_partner_id_education_1":"Partner guide","portal_header_partner_id_education_2":"Developer guide","portal_header_partner_id_education_3":"API documentation","portal_header_partner_id_education_4":"Webhooks","portal_header_partner_id_education_5":"Change log","portal_header_partner_id_solution_1":"Become a partner","portal_header_partner_id_solution_2":"Become a service partner","portal_header_partner_uk_education_1":"Partner guide","portal_header_partner_uk_education_2":"Developer guide","portal_header_partner_uk_education_3":"API documentation","portal_header_partner_uk_education_4":"Webhooks","portal_header_partner_uk_education_5":"Change log","portal_header_partner_uk_solution_1":"Become a partner","portal_header_partner_uk_solution_2":"Become a service partner","portal_header_partner_us_education_1":"Partner guide","portal_header_partner_us_education_2":"Developer guide","portal_header_partner_us_education_3":"API documentation","portal_header_partner_us_education_4":"Webhooks","portal_header_partner_us_education_5":"Change log","portal_header_partner_us_solution_1":"Become a partner","portal_header_partner_us_solution_2":"Become a service partner","portal_header_partner_us_solution_3":"Become a creator agency partner","portal_header_seller":"Seller","portal_header_seller_id_education_1":"How to start selling ","portal_header_seller_id_education_2":"Understand policies","portal_header_seller_id_solution_1":"Open a shop","portal_header_seller_id_solution_2":"Advertise","portal_header_seller_id_solution_3":"Partner with creators","portal_header_seller_id_solution_4":"Explore apps","portal_header_seller_id_solution_5":"Find partners","portal_header_seller_uk_education_1":"How to start selling ","portal_header_seller_uk_education_2":"Understand policies","portal_header_seller_uk_solution_1":"Open a shop","portal_header_seller_uk_solution_2":"Advertise","portal_header_seller_uk_solution_3":"Partner with creators","portal_header_seller_uk_solution_4":"Explore apps","portal_header_seller_uk_solution_5":"Find partners","portal_header_seller_us_education_1":"How to start selling ","portal_header_seller_us_education_2":"Understand policies","portal_header_seller_us_solution_1":"Join TikTok Shop","portal_header_seller_us_solution_2":"Advertise","portal_header_seller_us_solution_3":"Partner with creators","portal_header_seller_us_solution_4":"Explore apps","portal_header_seller_us_solution_5":"Open your shop","portal_header_seller_us_solution_6":"Manage your shop","portal_header_seller_us_solution_7":"Find agencies and services","portal_header_solution":"Solution","portal_link_copy_fail":"There was an issue copying the link. Try copying manually.","portal_link_copy_success":"Link copied!","seller_onboard_us_mandatory_error_msg":"This field is required. ","seller_onboarding_ph_text_upload_cor":"All local online sellers must be registered with the BIR and have their COR. If you don\'t have a COR, you can apply for one at the %s.\\n\\nNote: Your COR details must match your TikTok Shop seller account details. Only PNG, JPG and BMP files under the 10 MB file size limit are supported. Please only upload your COR. By uploading your COR, you agree to have your COR displayed on your shop profile in accordance with local regulations.","signup_landing_page_button":"Subscribe","tts_portal_join_botton_creator":"Become a creator","tts_portal_join_botton_partner":"Become a partner","tts_portal_join_botton_seller":"Become a seller"}');let vr=!1;const _r=e=>{Ft.setLang(e)},yr=e=>{const t=new gr({api_key:"838439d00f6011eb878e89d52866df17",namespace:"Portal_guidance",zoneHost:"https://starling-oversea.byteoversea.com",locale:e,timeout:8e3});return new Promise(((e,n)=>{t.load(e,n)}))},br=(e,t)=>{Ft.addResourceBundle(e,"translation",t,!0,!0)};var wr=n(11855),kr=Object.defineProperty,Er=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,zr=(e,t,n)=>t in e?kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tr=(e,t)=>{for(var n in t||(t={}))xr.call(t,n)&&zr(e,n,t[n]);if(Or)for(var n of Or(t))Ar.call(t,n)&&zr(e,n,t[n]);return e},Ir=(e,t)=>Er(e,Sr(t));const Cr=wr.createContext({i18n:Ft,isInit:!1}),jr=e=>{const{lang:t,children:n}=e,[o,i]=(0,wr.useState)({i18n:Ft}),[a,s]=(0,wr.useState)(!1);return(0,wr.useMemo)((()=>{new Promise((e=>{vr?e():Ft.init({react:{useSuspense:!1},keySeparator:!1,fallbackLng:["en"],resources:{en:{translation:mr}}},(()=>{vr=!0,e()}))})).then((()=>s(!0))).then((()=>(e=>{const{lang:t}=e;return new Promise((e=>{Promise.resolve(_r(t)).then((()=>yr(t))).then((e=>br(t,e))).then(e).catch((()=>{e()}))}))})({lang:t}))).then((()=>i({i18n:Ft})))}),[t]),(0,r.jsx)(Cr.Provider,{value:Ir(Tr({},o),{isInit:a}),children:n})},Nr=()=>{const{i18n:e,isInit:t}=(0,wr.useContext)(Cr);return{t:n=>{var r;return n?t?e.t(n):null!=(r=mr[n])?r:n:""}}}},1794:(e,t,n)=>{"use strict";n.d(t,{o:()=>u});var r=n(63159),o=n(85738),i=n(43718),a="DropdownMenuItem_bf599",s="selected_bf599",c=n(30395),l=n.n(c);const u=e=>{const{dropdownList:t,selectValue:n,onItemClick:c,trigger:u="hover",children:p}=e;return(0,r.jsx)(o.A,{trigger:u,droplist:(0,r.jsx)(i.A,{onClickMenuItem:c,children:null==t?void 0:t.map((e=>(0,r.jsx)(i.A.Item,{className:l()(a,{[s]:n===e.value}),children:e.label},e.value)))}),children:(0,r.jsx)("div",{children:p})})}},96462:(e,t,n)=>{"use strict";n.d(t,{U:()=>_});var r=n(63159),o=n(97596),i="pullPanelModal_306c8",a="pullPanel_306c8",s="show_306c8",c="hide_306c8",l=n(30395),u=n.n(l),p=Object.defineProperty,f=Object.defineProperties,h=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const _=e=>{const t=e,{content:n,visible:l}=t,p=((e,t)=>{var n={};for(var r in e)g.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&d)for(var r of d(e))t.indexOf(r)<0&&m.call(e,r)&&(n[r]=e[r]);return n})(t,["content","visible"]);return(0,r.jsx)(o.A,(_=((e,t)=>{for(var n in t||(t={}))g.call(t,n)&&v(e,n,t[n]);if(d)for(var n of d(t))m.call(t,n)&&v(e,n,t[n]);return e})({maskStyle:{transition:"none"},wrapClassName:i},p),f(_,h({visible:l,modalRender:()=>(0,r.jsx)("div",{className:u()(a,{[s]:l,[c]:!l}),children:n})}))));var _}},72366:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});const r=e=>{const{url:t,query:n,globalVars:r}=e;if(!t||!n)return t;try{const e=new URL(t);return Object.entries(n).forEach((t=>{const n=t[0],o=((e,t={})=>e.split(/(\{\{.*?\}\})/g).map((e=>{var n;return/\{\{.*?\}\}/g.test(e)?null!=(n=t[e])?n:"":e})).join(""))(t[1],r);o&&e.searchParams.set(n,o)})),e.href}catch(o){return t}}},16640:(e,t,n)=>{"use strict";var r=n(10433),o=n(80684),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},80684:(e,t,n)=>{"use strict";var r=n(79524),o=n(10433),i=n(7755),a=n(71102),s=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(c,s),u=n(8821),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=l(r,c,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return l(r,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},20022:(e,t,n)=>{"use strict";var r=n(8821),o=n(63429),i=n(71102),a=n(902);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&p?p.configurable:!l,enumerable:null===s&&p?p.enumerable:!s,value:n,writable:null===c&&p?p.writable:!c});else{if(!u&&(s||c||l))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},8821:(e,t,n)=>{"use strict";var r=n(10433)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}e.exports=r},38004:e=>{"use strict";e.exports=EvalError},41488:e=>{"use strict";e.exports=Error},96469:e=>{"use strict";e.exports=RangeError},12557:e=>{"use strict";e.exports=ReferenceError},63429:e=>{"use strict";e.exports=SyntaxError},71102:e=>{"use strict";e.exports=TypeError},85966:e=>{"use strict";e.exports=URIError},69992:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r{"use strict";var r=n(69992);e.exports=Function.prototype.bind||r},10433:(e,t,n)=>{"use strict";var r,o=n(41488),i=n(38004),a=n(96469),s=n(12557),c=n(63429),l=n(71102),u=n(85966),p=Function,f=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(t){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(P){h=null}var d=function(){throw new l},g=h?function(){try{return d}catch(e){try{return h(arguments,"callee").get}catch(t){return d}}}():d,m=n(95048)(),v=n(25458)(),_=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),y={},b="undefined"!=typeof Uint8Array&&_?_(Uint8Array):r,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&_?_([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&_?_(_([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&_?_((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&_?_((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&_?_(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":g,"%TypedArray%":b,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(_)try{null.error}catch(P){var k=_(_(P));w["%Error.prototype%"]=k}var E=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&_&&(n=_(o.prototype))}return w[t]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=n(79524),x=n(75630),A=O.call(Function.call,Array.prototype.concat),z=O.call(Function.apply,Array.prototype.splice),T=O.call(Function.call,String.prototype.replace),I=O.call(Function.call,String.prototype.slice),C=O.call(Function.call,RegExp.prototype.exec),j=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,M=function(e,t){var n,r=e;if(x(S,r)&&(r="%"+(n=S[r])[0]+"%"),x(w,r)){var o=w[r];if(o===y&&(o=E(r)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=I(e,0,1),n=I(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return T(e,j,(function(e,t,n,o){r[r.length]=n?T(o,N,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=M("%"+r+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(r=u[0],z(n,A([0,1],u)));for(var p=1,f=!0;p=n.length){var v=h(a,d);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[d]}else f=x(a,d),a=a[d];f&&!s&&(w[i]=a)}}return a}},902:(e,t,n)=>{"use strict";var r=n(10433)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},491:(e,t,n)=>{"use strict";var r=n(8821),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},25458:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},95048:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(63674);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},63674:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},75630:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(79524);e.exports=i.call(r,o)},47635:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,i=a(o),s=this._rootContainsTarget(o),c=r.entry,l=e&&s&&this._computeTargetAndRootIntersection(o,t),u=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:t,intersectionRect:l});c?e&&s?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){for(var r,o,i,s,l,u,p,f,h=a(t),d=c(t),g=!1;!g;){var m=null,v=1==d.nodeType?window.getComputedStyle(d):{};if("none"==v.display)return;if(d==this.root||d==e?(g=!0,m=n):d!=e.body&&d!=e.documentElement&&"visible"!=v.overflow&&(m=a(d)),m&&(r=m,o=h,i=void 0,s=void 0,l=void 0,u=void 0,p=void 0,f=void 0,i=Math.max(r.top,o.top),s=Math.min(r.bottom,o.bottom),l=Math.max(r.left,o.left),u=Math.min(r.right,o.right),f=s-i,!(h=(p=u-l)>=0&&f>=0&&{top:i,bottom:s,left:l,right:u,width:p,height:f})))break;d=c(d)}return h}},r.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",l="[object Null]",u="[object Object]",p="[object Proxy]",f="[object Undefined]",h=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[i]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g[s]=g["[object Map]"]=g["[object Number]"]=g[u]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var m="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,v="object"==typeof self&&self&&self.Object===Object&&self,_=m||v||Function("return this")(),y=t&&!t.nodeType&&t,b=y&&e&&!e.nodeType&&e,w=b&&b.exports===y,k=w&&m.process,E=function(){try{var e=b&&b.require&&b.require("util").types;return e||k&&k.binding&&k.binding("util")}catch(t){}}(),S=E&&E.isTypedArray;var O,x,A,z=Array.prototype,T=Function.prototype,I=Object.prototype,C=_["__core-js_shared__"],j=T.toString,N=I.hasOwnProperty,M=(O=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",P=I.toString,D=j.call(Object),R=RegExp("^"+j.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=w?_.Buffer:void 0,U=_.Symbol,G=_.Uint8Array,B=L?L.allocUnsafe:void 0,V=(x=Object.getPrototypeOf,A=Object,function(e){return x(A(e))}),F=Object.create,H=I.propertyIsEnumerable,q=z.splice,K=U?U.toStringTag:void 0,W=function(){try{var e=ye(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),X=L?L.isBuffer:void 0,Q=Math.max,Y=Date.now,J=ye(_,"Map"),Z=ye(Object,"create"),$=function(){function e(){}return function(t){if(!Ce(t))return{};if(F)return F(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},te.prototype.set=function(e,t){var n=this.__data__,r=se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ne.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(J||te),string:new ee}},ne.prototype.delete=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t},ne.prototype.get=function(e){return _e(this,e).get(e)},ne.prototype.has=function(e){return _e(this,e).has(e)},ne.prototype.set=function(e,t){var n=_e(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},re.prototype.clear=function(){this.__data__=new te,this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var n=this.__data__;if(n instanceof te){var r=n.__data__;if(!J||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ne(r)}return n.set(e,t),this.size=n.size,this};var le,ue=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[le?a:++r];if(!1===t(o[s],s,o))break}return e};function pe(e){return null==e?void 0===e?f:l:K&&K in Object(e)?function(e){var t=N.call(e,K),n=e[K];try{e[K]=void 0;var r=!0}catch(i){}var o=P.call(e);r&&(t?e[K]=n:delete e[K]);return o}(e):function(e){return P.call(e)}(e)}function fe(e){return je(e)&&pe(e)==i}function he(e){return!(!Ce(e)||function(e){return!!M&&M in e}(e))&&(Te(e)?R:h).test(function(e){if(null!=e){try{return j.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function de(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=we(e),n=[];for(var r in e)("constructor"!=r||!t&&N.call(e,r))&&n.push(r);return n}function ge(e,t,n,r,o){e!==t&&ue(t,(function(i,a){if(o||(o=new re),Ce(i))!function(e,t,n,r,o,i,a){var s=ke(e,n),c=ke(t,n),l=a.get(c);if(l)return void ie(e,n,l);var p=i?i(s,c,n+"",e,t,a):void 0,f=void 0===p;if(f){var h=xe(c),d=!h&&ze(c),g=!h&&!d&&Ne(c);p=c,h||d||g?xe(s)?p=s:je(b=s)&&Ae(b)?p=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ve);function Se(e,t){return e===t||e!=e&&t!=t}var Oe=fe(function(){return arguments}())?fe:function(e){return je(e)&&N.call(e,"callee")&&!H.call(e,"callee")},xe=Array.isArray;function Ae(e){return null!=e&&Ie(e.length)&&!Te(e)}var ze=X||function(){return!1};function Te(e){if(!Ce(e))return!1;var t=pe(e);return t==s||t==c||t==a||t==p}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Ne=S?function(e){return function(t){return e(t)}}(S):function(e){return je(e)&&Ie(e.length)&&!!g[pe(e)]};function Me(e){return Ae(e)?oe(e,!0):de(e)}var Pe,De=(Pe=function(e,t,n){ge(e,t,n)},me((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Pe.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!Ce(n))return!1;var r=typeof t;return!!("number"==r?Ae(n)&&be(t,n.length):"string"==r&&t in n)&&Se(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n{},27760:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,v=String.prototype.match,_=String.prototype.slice,y=String.prototype.replace,b=String.prototype.toUpperCase,w=String.prototype.toLowerCase,k=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,O=Array.prototype.slice,x=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,z=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-x(-e):x(e);if(r!==e){var o=String(r),i=_.call(t,o.length+1);return y.call(o,n,"$&_")+"."+y.call(y.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,n,"$&_")}var P=n(24333),D=P.custom,R=V(D)?D:null;function L(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return y.call(String(e),/"/g,""")}function G(e){return!("[object Array]"!==q(e)||C&&"object"==typeof e&&C in e)}function B(e){return!("[object RegExp]"!==q(e)||C&&"object"==typeof e&&C in e)}function V(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,o,s){var c=r||{};if(H(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!H(c,"customInspect")||c.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return W(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var k=String(t);return b?M(t,k):k}if("bigint"==typeof t){var x=String(t)+"n";return b?M(t,x):x}var z=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=z&&z>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var D=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(c,o);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function F(t,n,r){if(n&&(s=O.call(s)).push(n),r){var i={depth:c.depth};return H(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!B(t)){var X=function(e){if(e.name)return e.name;var t=v.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=$(t,F);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ee.length>0?" { "+S.call(ee,", ")+" }":"")}if(V(t)){var te=I?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||I?te:Q(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+w.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe"}if(G(t)){if(0===t.length)return"[]";var ie=$(t,F);return D&&!function(e){for(var t=0;t=0)return!1;return!0}(ie)?"["+Z(ie,D)+"]":"[ "+S.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==q(e)||C&&"object"==typeof e&&C in e)}(t)){var ae=$(t,F);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+F(t.cause),ae),", ")+" }"}if("object"==typeof t&&g){if(R&&"function"==typeof t[R]&&P)return P(t,{depth:z-o});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,n){se.push(F(n,t,!0)+" => "+F(e,t))})),J("Map",i.call(t),se,D)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(F(e,t))})),J("Set",l.call(t),ce,D)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Y("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==q(e)||C&&"object"==typeof e&&C in e)}(t))return Q(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(t){}return!1}(t))return Q(F(A.call(t)));if(function(e){return!("[object Boolean]"!==q(e)||C&&"object"==typeof e&&C in e)}(t))return Q(d.call(t));if(function(e){return!("[object String]"!==q(e)||C&&"object"==typeof e&&C in e)}(t))return Q(F(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==q(e)||C&&"object"==typeof e&&C in e)}(t)&&!B(t)){var le=$(t,F),ue=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",fe=!ue&&C&&Object(t)===t&&C in t?_.call(q(t),8,-1):pe?"Object":"",he=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||pe?"["+S.call(E.call([],fe||[],pe||[]),": ")+"] ":"");return 0===le.length?he+"{}":D?he+"{"+Z(le,D)+"}":he+"{ "+S.call(le,", ")+" }"}return String(t)};var F=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return F.call(e,t)}function q(e){return g.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return W(_.call(e,0,t.maxStringLength),t)+r}return L(y.call(y.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function Q(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?Z(n,r):S.call(n,", "))+"}"}function Z(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function $(e,t){var n=G(e),r=[];if(n){r.length=e.length;for(var o=0;o{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},47324:(e,t,n)=>{"use strict";var r=n(59249),o=n(15055),i=n(85476);e.exports={formats:i,parse:o,stringify:r}},15055:(e,t,n)=>{"use strict";var r=n(84565),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var p=0;n.depth>0&&null!==(s=a.exec(i))&&p=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:"__proto__"!==l&&(a[l]=o):a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,p),h=-1,d=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(m=i(m)?[m]:m),o.call(l,g)?l[g]=r.combine(l[g],m):l[g]=m}return l}(e,n):e,p=n.plainObjects?Object.create(null):{},f=Object.keys(u),h=0;h{"use strict";var r=n(41167),o=n(84565),i=n(85476),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,n,i,a,s,l,p,f,g,m,v,_,y,b,w,k){for(var E,S=t,O=k,x=0,A=!1;void 0!==(O=O.get(d))&&!A;){var z=O.get(t);if(x+=1,void 0!==z){if(z===x)throw new RangeError("Cyclic object value");A=!0}void 0===O.get(d)&&(x=0)}if("function"==typeof f?S=f(n,S):S instanceof Date?S=v(S):"comma"===i&&c(S)&&(S=o.maybeMap(S,(function(e){return e instanceof Date?v(e):e}))),null===S){if(s)return p&&!b?p(n,h.encoder,w,"key",_):n;S=""}if("string"==typeof(E=S)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(S))return p?[y(b?n:p(n,h.encoder,w,"key",_))+"="+y(p(S,h.encoder,w,"value",_))]:[y(n)+"="+y(String(S))];var T,I=[];if(void 0===S)return I;if("comma"===i&&c(S))b&&p&&(S=o.maybeMap(S,p)),T=[{value:S.length>0?S.join(",")||null:void 0}];else if(c(f))T=f;else{var C=Object.keys(S);T=g?C.sort(g):C}for(var j=a&&c(S)&&1===S.length?n+"[]":n,N=0;N0?w+b:""}},84565:(e,t,n)=>{"use strict";var r=n(85476),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=a[u]:u<2048?c+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?c+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r{"use strict";n.d(t,{Ay:()=>Fe});var r=n(57644),o=n(29293),i=n(11855),a="data-focus-lock",s="data-focus-lock-disabled";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var l="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,u=new WeakMap;function p(e,t){var n,r,o,a=(n=t||null,r=function(t){return e.forEach((function(e){return c(e,t)}))},(o=(0,i.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return l((function(){var t=u.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach((function(e){r.has(e)||c(e,null)})),r.forEach((function(e){n.has(e)||c(e,o)}))}u.set(a,e)}),[e]),a}var f={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},h=function(e){var t=e.children,n=void 0===t?null:t;return i.createElement(i.Fragment,null,i.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:f}),n,n&&i.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:f}))};h.propTypes={};var d=n(92443);function g(e){return e}function m(e,t){void 0===t&&(t=g);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function v(e,t){return void 0===t&&(t=g),m(e,t)}var _=v({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),y=v(),b=v(),w=function(e){void 0===e&&(e={});var t=m(null);return t.options=(0,d.Cl)({async:!0,ssr:!1},e),t}({async:!0,ssr:"undefined"!=typeof document}),k=(0,i.createContext)(void 0),E=[],S=i.forwardRef((function(e,t){var n,r=i.useState(),c=r[0],l=r[1],u=i.useRef(),h=i.useRef(!1),d=i.useRef(null),g=i.useState({})[1],m=e.children,v=e.disabled,b=void 0!==v&&v,S=e.noFocusGuards,O=void 0!==S&&S,x=e.persistentFocus,A=void 0!==x&&x,z=e.crossFrame,T=void 0===z||z,I=e.autoFocus,C=void 0===I||I,j=(e.allowTextSelection,e.group),N=e.className,M=e.whiteList,P=e.hasPositiveIndices,D=e.shards,R=void 0===D?E:D,L=e.as,U=void 0===L?"div":L,G=e.lockProps,B=void 0===G?{}:G,V=e.sideCar,F=e.returnFocus,H=void 0!==F&&F,q=e.focusOptions,K=e.onActivation,W=e.onDeactivation,X=i.useState({})[0],Q=i.useCallback((function(e){var t=e.captureFocusRestore;if(!d.current){var n,r=null==(n=document)?void 0:n.activeElement;d.current=r,r!==document.body&&(d.current=t(r))}u.current&&K&&K(u.current),h.current=!0,g()}),[K]),Y=i.useCallback((function(){h.current=!1,W&&W(u.current),g()}),[W]),J=i.useCallback((function(e){var t=d.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof H?H(n):H;if(r){var o="object"==typeof r?r:void 0;d.current=null,e?Promise.resolve().then((function(){return n.focus(o)})):n.focus(o)}}}),[H]),Z=i.useCallback((function(e){h.current&&_.useMedium(e)}),[]),$=y.useMedium,ee=i.useCallback((function(e){u.current!==e&&(u.current=e,l(e))}),[]);var te=(0,o.A)(((n={})[s]=b&&"disabled",n[a]=j,n),B),ne=!0!==O,re=ne&&"tail"!==O,oe=p([t,ee]),ie=i.useMemo((function(){return{observed:u,shards:R,enabled:!b,active:h.current}}),[b,h.current,R,c]);return i.createElement(i.Fragment,null,ne&&[i.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:b?-1:0,style:f}),P?i.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:b?-1:1,style:f}):null],!b&&i.createElement(V,{id:X,sideCar:w,observed:c,disabled:b,persistentFocus:A,crossFrame:T,autoFocus:C,whiteList:M,shards:R,onActivation:Q,onDeactivation:Y,returnFocus:J,focusOptions:q}),i.createElement(U,(0,o.A)({ref:oe},te,{className:N,onBlur:$,onFocus:Z}),i.createElement(k.Provider,{value:ie},m)),re&&i.createElement("div",{"data-focus-guard":!0,tabIndex:b?-1:0,style:f}))}));S.propTypes={};var O=S,x=n(97906),A=n(53416);var z=function(e,t){return function(n){var r,o=[];function a(){r=e(o.map((function(e){return e.props}))),t(r)}var s=function(e){function t(){return e.apply(this,arguments)||this}(0,x.A)(t,e),t.peek=function(){return r};var s=t.prototype;return s.componentDidMount=function(){o.push(this),a()},s.componentDidUpdate=function(){a()},s.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),a()},s.render=function(){return i.createElement(n,this.props)},t}(i.PureComponent);return(0,A.A)(s,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),s}},T=function(e){for(var t=Array(e.length),n=0;n=0})).sort(H)},K=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),W="".concat(K,", [data-focus-guard]"),X=function(e,t){return T((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?W:K)?[n]:[],X(n))}),[])},Q=function(e,t){return e.reduce((function(e,n){var r,o=X(n,t),i=(r=[]).concat.apply(r,o.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?Q([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,n.parentNode?T(n.parentNode.querySelectorAll(K)).filter((function(e){return e===n})):[])}),[])},Y=function(e,t){return T(e).filter((function(e){return P(t,e)})).filter((function(e){return function(e){return!((L(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},J=function(e,t){return void 0===t&&(t=new Map),T(e).filter((function(e){return D(t,e)}))},Z=function(e,t,n){return q(Y(Q(e,n),t),!0,n)},$=function(e,t){return q(Y(Q(e),t),!1)},ee=function(e,t){return Y((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),T(n).map((function(e){return Q([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n},te=function(e,t){return e.shadowRoot?te(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||T(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&te(r,t)}return te(e,t)}))},ne=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?ne(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(t){return}}((function(){return t.contentWindow.document}))?ne(t.contentWindow.document):t}},re=function(e){return e.parentNode?re(e.parentNode):e},oe=function(e){return I(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(a);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(T(re(t).querySelectorAll("[".concat(a,'="').concat(n,'"]:not([').concat(s,'="disabled"])')))):[t]),e}),[])},ie=function(e,t){return void 0===t&&(t=ne(C(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&oe(e).some((function(e){return te(e,t)||function(e,t){return Boolean(T(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},ae=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},se=function(e,t){return U(e)&&e.name?function(e,t){return t.filter(U).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},ce=function(e){return e[0]&&e.length>1?se(e[0],e):e[0]},le=function(e,t){return e.indexOf(se(t,e))},ue="NEW_FOCUS",pe=function(e,t,n,r,o){var i=e.length,a=e[0],s=e[i-1],c=B(r);if(!(r&&e.indexOf(r)>=0)){var l=void 0!==r?n.indexOf(r):-1,u=o?n.indexOf(o):l,p=o?e.indexOf(o):-1;if(-1===l)return-1!==p?p:ue;if(-1===p)return ue;var f,h,d=l-u,g=n.indexOf(a),m=n.indexOf(s),v=(f=n,h=new Set,f.forEach((function(e){return h.add(se(e,f))})),f.filter((function(e){return h.has(e)}))),_=(void 0!==r?v.indexOf(r):-1)-(o?v.indexOf(o):l);if(!d&&p>=0)return p;if(0===t.length)return p;var y=le(e,t[0]),b=le(e,t[t.length-1]);return l<=g&&c&&Math.abs(d)>1?b:l>=m&&c&&Math.abs(d)>1?y:d&&Math.abs(_)>1?p:l<=g?b:l>m?y:d?Math.abs(d)>1?p:(i+p+d)%i:void 0}},fe=function(e,t,n){var r,o=e.map((function(e){return e.node})),i=J(o.filter((r=n,function(e){var t,n=null===(t=R(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?ce(i):ce(J(t))},he=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&he(e.parentNode.host||e.parentNode,t),t},de=function(e,t){for(var n=he(e),r=he(t),o=0;o=0)return i}return!1},ge=function(e,t,n){var r=I(e),o=I(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=de(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=de(i,e);t&&(a=!a||te(t,a)?t:de(t,a))}))})),a},me=function(e,t){return e.reduce((function(e,n){return e.concat(ee(n,t))}),[])},ve=function(e,t){var n=ne(I(e).length>0?document:C(e).ownerDocument),r=oe(e).filter(V),o=ge(n||e,e,r),i=new Map,a=$(r,i),s=a.filter((function(e){var t=e.node;return V(t)}));if(s[0]){var c,l,u,p=$([o],i).map((function(e){return e.node})),f=(c=p,l=s,u=new Map,l.forEach((function(e){return u.set(e.node,e)})),c.map((function(e){return u.get(e)})).filter(F)),h=f.map((function(e){return e.node})),d=f.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),g=pe(h,d,p,n,t);if(g===ue){var m=fe(a,d,me(r,i))||fe(a,h,me(r,i));return m?{node:m}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===g?g:f[g]}},_e=0,ye=!1,be=function(e,t,n){void 0===n&&(n={});var r=ve(e,t);if(!ye&&r){if(_e>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ye=!0,void setTimeout((function(){ye=!1}),1);_e++,ae(r.node,n.focusOptions),_e--}},we=function(e,t,n){void 0===t&&(t={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),o=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=I(t);if(r.every((function(t){return!te(t,e)})))return console.error("Active element is not contained in the scope"),{};var o=n?Z(r,new Map):$(r,new Map),i=o.findIndex((function(t){return t.node===e}));return-1!==i?{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(o){var i=n(o,r.cycle);i&&ae(i.node,r.focusOptions)}},ke=function(e,t,n){var r,o,i,a,s=(o=e,i=null===(r=t.onlyTabbable)||void 0===r||r,{first:(a=i?Z(I(o),new Map):$(I(o),new Map))[0],last:a[a.length-1]})[n];s&&ae(s.node,t.focusOptions)};function Ee(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}function Se(e){setTimeout(e,1)}var Oe=function(e){return e&&"current"in e?e.current:e},xe=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=ne(e);return!!t&&T(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return te(e,t)}))}()},Ae=null,ze=null,Te=null,Ie=!1,Ce=function(){return!0};function je(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var Ne=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Me=function(){var e,t,n,r,o,i,a=!1;if(Ae){var s=Ae,c=s.observed,l=s.persistentFocus,u=s.autoFocus,p=s.shards,f=s.crossFrame,h=s.focusOptions,d=c||Te&&Te.portaledElement,g=document&&document.activeElement;if(d){var m=[d].concat(p.map(Oe).filter(Boolean));if(g&&!function(e){return(Ae.whiteList||Ce)(e)}(g)||(l||(f?Boolean(Ie):"meanwhile"===Ie)||!xe()||!ze&&u)&&(d&&!(ie(m)||g&&function(e,t){return t.some((function(t){return Ne(e,t,t)}))}(g,m)||(i=g,Te&&Te.portaledElement===i))&&(document&&!ze&&g&&!u?(g.blur&&g.blur(),document.body.focus()):(a=be(m,ze,{focusOptions:h}),Te={})),Ie=!1,ze=document&&document.activeElement),document&&g!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var v=document&&document.activeElement,_=(t=oe(e=m).filter(V),n=ge(e,e,t),r=q(Q([n],!0),!0,!0),o=Q(t,!1),r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:B(t)}}))),y=_.map((function(e){return e.node})).indexOf(v);y>-1&&(_.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),je(y,_.length,1,_),je(y,-1,-1,_))}}}return a},Pe=function(e){Me()&&e&&(e.stopPropagation(),e.preventDefault())},De=function(){return Se(Me)},Re=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Te={observerNode:n,portaledElement:t})},Le=function(){Ie="just",Se((function(){Ie="meanwhile"}))};var Ue={moveFocusInside:be,focusInside:ie,focusNextElement:function(e,t){void 0===t&&(t={}),we(e,t,(function(e,t){var n=e.next,r=e.first;return n||t&&r}))},focusPrevElement:function(e,t){void 0===t&&(t={}),we(e,t,(function(e,t){var n=e.prev,r=e.last;return n||t&&r}))},focusFirstElement:function(e,t){void 0===t&&(t={}),ke(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),ke(e,t,"last")},captureFocusRestore:function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Ee(n),parent:Ee(n.parentElement),left:Ee(n.previousElementSibling),right:Ee(n.nextElementSibling)}),n=n.parentElement;return{element:Ee(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,n,r,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,c=new Map,l=0,u=a;l{"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new r,E=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new w(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));var S=void 0!==i.ResizeObserver?i.ResizeObserver:E;t.A=S},45334:(e,t,n)=>{"use strict";function r(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function o(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function i(e,t){if(e.clientHeightt||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0}n.d(t,{A:()=>l});var s=function(e,t){var n=t.scrollMode,o=t.block,s=t.inline,c=t.boundary,l=t.skipOverflowHiddenElements,u="function"==typeof c?c:function(e){return e!==c};if(!r(e))throw new TypeError("Invalid target");for(var p=document.scrollingElement||document.documentElement,f=[],h=e;r(h)&&u(h);){if((h=h.parentNode)===p){f.push(h);break}h===document.body&&i(h)&&!i(document.documentElement)||i(h,l)&&f.push(h)}for(var d=window.visualViewport?visualViewport.width:innerWidth,g=window.visualViewport?visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,_=e.getBoundingClientRect(),y=_.height,b=_.width,w=_.top,k=_.right,E=_.bottom,S=_.left,O="start"===o||"nearest"===o?w:"end"===o?E:w+y/2,x="center"===s?S+b/2:"end"===s?k:S,A=[],z=0;z=0&&S>=0&&E<=g&&k<=d&&w>=N&&E<=P&&S>=D&&k<=M)return A;var R=getComputedStyle(T),L=parseInt(R.borderLeftWidth,10),U=parseInt(R.borderTopWidth,10),G=parseInt(R.borderRightWidth,10),B=parseInt(R.borderBottomWidth,10),V=0,F=0,H="offsetWidth"in T?T.offsetWidth-T.clientWidth-L-G:0,q="offsetHeight"in T?T.offsetHeight-T.clientHeight-U-B:0;if(p===T)V="start"===o?O:"end"===o?O-g:"nearest"===o?a(v,v+g,g,U,B,v+O,v+O+y,y):O-g/2,F="start"===s?x:"center"===s?x-d/2:"end"===s?x-d:a(m,m+d,d,L,G,m+x,m+x+b,b),V=Math.max(0,V+v),F=Math.max(0,F+m);else{V="start"===o?O-N-U:"end"===o?O-P+B+q:"nearest"===o?a(N,P,C,U,B+q,O,O+y,y):O-(N+C/2)+q/2,F="start"===s?x-D-L:"center"===s?x-(D+j/2)+H/2:"end"===s?x-M+G+H:a(D,M,j,L,G+H,x,x+b,b);var K=T.scrollLeft,W=T.scrollTop;O+=W-(V=Math.max(0,Math.min(W+V,T.scrollHeight-C+q))),x+=K-(F=Math.max(0,Math.min(K+F,T.scrollWidth-j+H)))}A.push({el:T,top:V,left:F})}return A};function c(e){return e===Object(e)&&0!==Object.keys(e).length}var l=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(c(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:s(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:c(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(s(e,r),r.behavior)}}},7755:(e,t,n)=>{"use strict";var r=n(10433),o=n(20022),i=n(491)(),a=n(902),s=n(71102),c=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(l=!1)}return(r||l||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},41167:(e,t,n)=>{"use strict";var r=n(10433),o=n(16640),i=n(27760),a=n(71102),s=r("%WeakMap%",!0),c=r("%Map%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(c){if(t)return f(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(c){if(t)return d(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),u(e,r,o)):c?(t||(t=new c),h(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}}}]);