const panel=Editor.require("packages://hot-update-tools/panel/main.js");function loadCss(e,a){e&&(Array.isArray(a)||(a=[a]),a.forEach((a=>{const t=CSS.escape(a);if(!e.querySelector(`#${t}`)){const o=document.createElement("link");o.rel="stylesheet",o.href=a,o.id=t,e.appendChild(o)}})))}Editor.Panel.extend({template:'
main
',messages:{},ready(...e){loadCss(this.shadowRoot,"packages://hot-update-tools/panel/main.css"),loadCss(document.head,"packages://hot-update-tools/panel/main.css");let a=panel;panel&&panel.default&&(a=panel.default);let t=a;if("function"==typeof a&&(t=new a),t.hasOwnProperty("ready")&&"function"==typeof t.ready){const a=this.shadowRoot.getElementById("app");t.ready(a||this.shadowRoot,e)}}});