PageSourceSearch

https://beta.mewod.ai/assets/customize_avatar-4347d7a7.js

js mewod.ai collected 2026-10-05 15:39:46 UTC 2,182 bytes, 1 lines download raw bytes

1import{d as e,aZ as a,r,b as t,o as s,O as l,E as n,e as o,f as u,y as i,l as c,g as d,H as p,V as m,K as v,i as y,F as f,c4 as h}from"./index-b25171b5.js";import{_ as g}from"./lodash-c200b85d.js";import{L as w}from"./loading_purple_dot-7ea576c9.js";import{i as b}from"./router_controller-8f776b59.js";import{g as j}from"./controller-aa1def94.js";import"./plugin-vue_export-helper-1b428a4d.js";import"./aigc-2eb3aff5.js";const _={key:0,class:"w-screen h-screen flex justify-center items-center"},N={class:"w-full h-full md:pb-0"},x=["src"],q=e({__name:"customize_avatar",setup(e){a();const q=r(!1),I=t();null!=I.currentRoute.value.query.gender&&I.currentRoute.value.query.gender;var R=!1;const O=r((e=>{let a="https://mewod.readyplayer.me/";return"zhCn"===h()&&(a+="ch/"),a+="avatar?frameApi&bodyType=fullbody&clearCache",a})());let W=r(0),k=r();const z=e=>{const a=E(e);if("readyplayerme"===(null==a?void 0:a.source)){if("v1.frame.ready"===a.eventName&&(q.value=!0,clearInterval(k.value),frame.contentWindow.postMessage(JSON.stringify({target:"readyplayerme",type:"subscribe",eventName:"v1.**"}),"*")),"v1.avatar.exported"===a.eventName){if(R)return;R=!0;const e=a.data.url;if(!A(e))return;var r=g.split(e,"readyplayer.me/");const t=g.split(r[1],".")[0],s=I.currentRoute.value.query.step||"",l=I.currentRoute.value.query.id||"";I.push("/character-create?readyplayermeId="+t+(s?`&step=${s||""}&id=${l||""}`:"")),q.value=!1}a.eventName}},A=e=>{const a=g.startsWith(e,"https://"),r=g.endsWith(e,".glb");return a&&r},C=r(!1);s((()=>{"1"===l("history").edit?C.value=!0:b(I,!0),window.addEventListener("message",z),k.value=setInterval((()=>{W.value++,W.value>30&&(clearInterval(k.value),n({message:"The connection to the readyplayer.me server timed out, please try again later.",type:"warning"}),I.back())}),1e3)}));const E=e=>{try{return JSON.parse(e.data)}catch(a){return null}};return(e,a)=>(o(),u(f,null,[q.value?c("",!0):(o(),u("div",_,[i(w)])),d("div",{class:"w-screen h-screen",style:v(y(j))},[d("div",N,[p(d("iframe",{id:"frame",width:"100%",height:"100%",src:O.value,allow:"camera *; microphone *; clipboard-write"},null,8,x),[[m,q.value]])])],4)],64))}});export{q as default};

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.