drill.init(async e=>{let t,[a,o]=await e("common/data","common/urlData"),n=a.project;try{let e,{remote:a}=require("electron"),{BrowserWindow:o}=a;t=(t=>{let{w:a,h:i}=n.mainPage;(e=new o({width:parseInt(a),height:parseInt(i),title:"预览",frame:!0})).loadURL(t),e.setMenu(null),e.on("closed",()=>{e=null})})}catch(e){t=(e=>{window.open(e)})}let i=$("o-frame").queShadow("#topPlayBtn");i.on("click",e=>{i.class.contains("active")||t(`${location.origin}/pageCreator/split.html?type=view&kid=debug&i=${o.i}`)}),a.watch("splits",(e,t)=>{t.find(e=>"main"===e.pannelType&&"view"===e.showPannel)?i.class.add("active"):i.class.remove("active")},!0);let l=$("o-frame").queShadow("#topProjectSelector");n.mainPage.type||(n.mainPage.type="h5"),topProjectSelector&&n.mainPage.sync(l,{type:"value"},!0)});