(function(){"use strict";var t={857:function(t,e,n){var r=n(471),o=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{attrs:{id:"app"}},[e("Home")],1)},i=[],s=n(635),a=n(233),c=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"content"},[e("div",{staticClass:"left"},[e("div",{staticStyle:{padding:"20px"}},[e("h3",[t._v("功能演示:")]),e("ul",t._l(t.list,(function(n,r){return e("li",{key:r,on:{click:function(e){return t.onClick(n.cmd,n.type,n.param)}}},[t._v(" "+t._s(n.name)+" ")])})),0)])]),e("div",{attrs:{id:"myiframe"}})])},u=[],l=n(114);let d=class extends a.lD{constructor(...t){super(...t),(0,l.A)(this,"list",[{name:"长度测量",cmd:"BR_DimensionMeasurement",type:"sendStringToExecute"},{name:"面积测量",cmd:"BR_Area",type:"sendStringToExecute"},{name:"坐标测量",cmd:"BR_Coord",type:"sendStringToExecute"},{name:"保存图纸批注数据",cmd:"Mx_SaveAllMxEntity",type:"sendStringToExecute"},{name:"恢复图纸批注数据",cmd:"Mx_LoadAllMxEntity",type:"sendStringToExecute",param:"test"}]),(0,l.A)(this,"iframe",void 0)}onClick(t,e,n){this.iframe.contentWindow.postMessage({cmd:t,type:e,param:n},"*")}getQueryString(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(e);return null!=n?decodeURIComponent(n[2]):""}mounted(){var t=this.getQueryString("debug"),e=!1;void 0!=t&&"true"==t.toLowerCase()&&(e=!0);let n="http://localhost:3000/browse";e&&(n="http://localhost:8089/?wasmtype=st");const r=document.createElement("iframe");this.iframe=r;const o=document.getElementById("myiframe");this.$nextTick((()=>{r.src=n,r.id="MXCAD",r.style.width="100%",r.style.height="100%",o.append(r)})),r.onload=()=>{},window.addEventListener("message",(t=>{console.log(t.data)}),!1)}};d=(0,s.Cg)([(0,a.uA)({components:{Home:d}})],d);var f=d,m=f,p=n(656),v=(0,p.A)(m,c,u,!1,null,"178595d0",null),h=v.exports;let y=class extends a.lD{};y=(0,s.Cg)([(0,a.uA)({components:{Home:h}})],y);var g=y,x=g,w=(0,p.A)(x,o,i,!1,null,null,null),_=w.exports;r.Ay.config.productionTip=!1,new r.Ay({render:t=>t(_)}).$mount("#app")}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.m=t,function(){var t=[];n.O=function(e,r,o,i){if(!r){var s=1/0;for(l=0;l=i)&&Object.keys(n.O).every((function(t){return n.O[t](r[c])}))?r.splice(c--,1):(a=!1,i0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[r,o,i]}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={524:0};n.O.j=function(e){return 0===t[e]};var e=function(e,r){var o,i,s=r[0],a=r[1],c=r[2],u=0;if(s.some((function(e){return 0!==t[e]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var l=c(n)}for(e&&e(r);u