1import{f as u,dZ as g,d_ as _,eH as I,ld as b,$ as w,a7 as y,s_ as T,s$ as h,t0 as E,t1 as D,li as L,lh as S,m as B,t2 as U,t3 as p}from"./commonChunk.EMM8Cpbg.js";import{H as N,y as R}from"./vendorChunk.Ci2UuwNH.js";import"../vendors/vendor-stable.CeU5EqBW.js";import"../vendors/vendor-swiper.9T5ztYNS.js";const H=(o,n)=>{const{withToken:s=!0}=n!=null?n:{},{t}=u();g(_.LOBBY_SWITCH_DOMAIN,{title:()=>t("lobby.common.tips.title"),type:"info",showCancelButton:!0,message:()=>t("lobby.error.domainIsBaned"),confirmButtonText:()=>t("lobby.error.switchdomain"),cancelButtonText:()=>t("lobby.error.keepdomain"),className:"performance-dialog-switch-domain",onConfirm:()=>{const{isH5Pwa:r}=I(),{tokenInfos:a}=b(),{uuid:c}=w(),d=N(location.href),l=f=>{const e={...d,_ti:void 0,_et:void 0,[p]:void 0,[U]:void 0};return s&&a&&(e._ti=window.btoa(JSON.stringify(a)),e._et=window.btoa(String(Date.now())),Object.assign(e,L(c)),Object.assign(e,S(B().getFingerId))),R(f,e)},m=y.isActivated?`${new URL(o).origin}${location.pathname}${location.hash||""}`:o,i=l(m);r?T?(E(D.EVENT_UPDATE_LOBBY_ALIVE_DOMAIN).send({domain:o},{merge:!1,fireAndForget:!0}),setTimeout(()=>{location.href=i},100)):(h(i),setTimeout(()=>{location.reload()},100)):location.href=i}})};export{H as createSwitchDomain};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.