drill.define(async o=>{await o("components/p-selector -pack");const e=o=>{let e=o.ua.toLowerCase(),s="unkown",n="",i="unkown",l="browser-logo";e.includes("macintosh")?(s="Mac OS X",n="Mac-logo"):e.includes("windows")?(s="Windows",n="windows-logo"):e.includes("android")?e.includes("xiaomi")||e.includes("redmi")||e.includes(" mi ")?(s="MIUI",n="miui-logo"):e.includes("huawei")?(s="HUAWEI",n="huawei-logo"):e.includes("oppo")?(s="OPPO",n="oppo-logo"):e.includes("vivo")?(s="VIVO",n="vivo-logo"):e.includes("oneplus")?(s="oneplus",n="oneplus-logo"):e.includes("samsung")?(s="samsung",n="samsung-logo"):(s="Android",n="android-logo"):e.includes("linux")?(s="Linux",n="linux-logo"):e.includes("iphone")?(s="iPhone",n="apple-logo"):e.includes("ipad")&&(s="iPad",n="apple-logo"),e.includes("qqbrowser")?(i="QQ",l="QQBrowser-logo"):e.includes("qq")?(i="QQ内置",l="QQ-logo"):e.includes("micromessenger")?(i="WeChat",l="wechat-logo"):e.includes("firefox")?(i="Firefox",l="firefox-logo"):e.includes("edge")?(i="Edge",l="edge-logo"):e.includes("opera")?(i="Opera",l="opera-logo"):e.includes("360")?(i="360",l="_360-logo"):e.includes("chrome")?(i="Chrome",l="Chrome-logo"):e.includes("safari")?(i="Safari",l="safari-logo"):e.includes("quark")?(i="Quark",l="quark-logo"):e.includes("ucbrowser")&&(i="UC",l="uc-logo"),"main"===o.pannelType?"view"===o.showPannel?(l="app_logo",i="主预览面板"):(l="app_logo",i="主程序"):i+="浏览器",o.sysName=s,o.brosName=i+"",n&&o.$systemLogo.class.add(n),l&&o.$browserLogo.class.add(l)};$.register({tag:"splitblock",temp:'\n        <div class="size_info"> {{w}} x {{h}}</div>\n        <div class="splitBlock_title" style="display:none;">{{aid}}</div>\n        <p-input type="select" xv-ele class="splitSelector" xv-module="showPannel" xv-tar="pannelSelect">\n            <option value="main" optionType="main">主程序面板</option>\n            <option value="preview" optionType="split">视图</option>\n            <option value="layers" optionType="split main">图层</option>\n            <option value="selectedInfo" optionType="split main">属性</option>\n            <option value="view" optionType="split main outer">预览</option>\n        </p-input>\n        <div xv-content style="display:none;"></div>\n        <div class="runner_container" xv-tar="runnerLogo">\n            <div class="system_info s_info">\n                <div class="system_logo s_icon" xv-tar="systemLogo"></div>\n                <div class="system_text">{{sysName}}</div>\n            </div>\n            <div class="browser_info s_info">\n                <div class="browser_logo s_icon" xv-tar="browserLogo"></div>\n                <div class="browser_text">{{brosName}}</div>\n            </div>\n        </div>\n        <div class="splitBlock_bg" xv-tar="bgEle"></div>\n        ',data:{w:"",h:"",aid:"",shot:"",pannelType:"",showPannel:"",sysName:"",brosName:"",command:"",isHandle:!1,ua:"",isProcess:!1},watch:{isProcess(o,e){e&&this.class.add("process_pannel")},pannelType(o,s){this.$pannelSelect.queAll("[optionType]").forEach(o=>o.display="none"),this.$pannelSelect.queAll(`[optionType~="${s}"]`).forEach(o=>o.display=""),"main"==s?this.$pannelSelect.attr("disabled",""):this.$pannelSelect.removeAttr("disabled"),e(this)},showPannel(){e(this)},shot(o,e){this.$bgEle.style["background-image"]=e?`url(${e})`:""},ua(o,s){e(this)}}})});