earthsdk3-ue 3.0.8-beta.1 → 3.0.8-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -336,10 +336,10 @@ Msg: ${t}`;console.warn(o)}};x.verboseLogLevel=5,function(v){v.LIST_STREAMERS="l
336
336
  content: "" !important;
337
337
  display: none !important;
338
338
  }`,Wv=function(v){zv(v,"."+Fo+Gv+Eu+`
339
- .`+Qo+jv+Eu)},zv=function(v,e){var t=v.ownerDocument;if(t){var o=t.createElement("style");o.textContent=e,v.appendChild(o)}},Fu=function(){function v(){}return v.getOrigin=function(e){var t=v._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},v.isSameOrigin=function(e){return v.getOrigin(e)===v._origin},v.setContext=function(e){v._link=e.document.createElement("a"),v._origin=v.getOrigin(e.location.href)},v._origin="about:blank",v}(),Jv=function(){function v(e,t){this.context=e,this._options=t,this._cache={}}return v.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Uo(e)||Zv(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},v.prototype.match=function(e){return this._cache[e]},v.prototype.loadImage=function(e){return Re(this,void 0,void 0,function(){var t,o,y,B,A=this;return xe(this,function(h){switch(h.label){case 0:return t=Fu.isSameOrigin(e),o=!So(e)&&this._options.useCORS===!0&&Ie.SUPPORT_CORS_IMAGES&&!t,y=!So(e)&&!t&&!Uo(e)&&typeof this._options.proxy=="string"&&Ie.SUPPORT_CORS_XHR&&!o,!t&&this._options.allowTaint===!1&&!So(e)&&!Uo(e)&&!y&&!o?[2]:(B=e,y?[4,this.proxy(B)]:[3,2]);case 1:B=h.sent(),h.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(m,g){var w=new Image;w.onload=function(){return m(w)},w.onerror=g,(qv(B)||o)&&(w.crossOrigin="anonymous"),w.src=B,w.complete===!0&&setTimeout(function(){return m(w)},500),A._options.imageTimeout>0&&setTimeout(function(){return g("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,h.sent()]}})})},v.prototype.has=function(e){return typeof this._cache[e]<"u"},v.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},v.prototype.proxy=function(e){var t=this,o=this._options.proxy;if(!o)throw new Error("No proxy defined");var y=e.substring(0,256);return new Promise(function(B,A){var h=Ie.SUPPORT_RESPONSE_TYPE?"blob":"text",m=new XMLHttpRequest;m.onload=function(){if(m.status===200)if(h==="text")B(m.response);else{var p=new FileReader;p.addEventListener("load",function(){return B(p.result)},!1),p.addEventListener("error",function(u){return A(u)},!1),p.readAsDataURL(m.response)}else A("Failed to proxy resource "+y+" with status code "+m.status)},m.onerror=A;var g=o.indexOf("?")>-1?"&":"?";if(m.open("GET",""+o+g+"url="+encodeURIComponent(e)+"&responseType="+h),h!=="text"&&m instanceof XMLHttpRequest&&(m.responseType=h),t._options.imageTimeout){var w=t._options.imageTimeout;m.timeout=w,m.ontimeout=function(){return A("Timed out ("+w+"ms) proxying "+y)}}m.send()})},v}(),Xv=/^data:image\/svg\+xml/i,Yv=/^data:image\/.*;base64,/i,$v=/^data:image\/.*/i,Zv=function(v){return Ie.SUPPORT_SVG_DRAWING||!ey(v)},So=function(v){return $v.test(v)},qv=function(v){return Yv.test(v)},Uo=function(v){return v.substr(0,4)==="blob"},ey=function(v){return v.substr(-3).toLowerCase()==="svg"||Xv.test(v)},q=function(){function v(e,t){this.type=0,this.x=e,this.y=t}return v.prototype.add=function(e,t){return new v(this.x+e,this.y+t)},v}(),Yt=function(v,e,t){return new q(v.x+(e.x-v.x)*t,v.y+(e.y-v.y)*t)},Kn=function(){function v(e,t,o,y){this.type=1,this.start=e,this.startControl=t,this.endControl=o,this.end=y}return v.prototype.subdivide=function(e,t){var o=Yt(this.start,this.startControl,e),y=Yt(this.startControl,this.endControl,e),B=Yt(this.endControl,this.end,e),A=Yt(o,y,e),h=Yt(y,B,e),m=Yt(A,h,e);return t?new v(this.start,o,A,m):new v(m,h,B,this.end)},v.prototype.add=function(e,t){return new v(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},v.prototype.reverse=function(){return new v(this.end,this.endControl,this.startControl,this.start)},v}(),We=function(v){return v.type===1},ty=function(){function v(e){var t=e.styles,o=e.bounds,y=yr(t.borderTopLeftRadius,o.width,o.height),B=y[0],A=y[1],h=yr(t.borderTopRightRadius,o.width,o.height),m=h[0],g=h[1],w=yr(t.borderBottomRightRadius,o.width,o.height),p=w[0],u=w[1],f=yr(t.borderBottomLeftRadius,o.width,o.height),c=f[0],a=f[1],n=[];n.push((B+m)/o.width),n.push((c+p)/o.width),n.push((A+a)/o.height),n.push((g+u)/o.height);var s=Math.max.apply(Math,n);s>1&&(B/=s,A/=s,m/=s,g/=s,p/=s,u/=s,c/=s,a/=s);var r=o.width-m,i=o.height-u,l=o.width-p,d=o.height-a,C=t.borderTopWidth,_=t.borderRightWidth,b=t.borderBottomWidth,E=t.borderLeftWidth,F=pe(t.paddingTop,e.bounds.width),Q=pe(t.paddingRight,e.bounds.width),U=pe(t.paddingBottom,e.bounds.width),T=pe(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=B>0||A>0?ve(o.left+E/3,o.top+C/3,B-E/3,A-C/3,le.TOP_LEFT):new q(o.left+E/3,o.top+C/3),this.topRightBorderDoubleOuterBox=B>0||A>0?ve(o.left+r,o.top+C/3,m-_/3,g-C/3,le.TOP_RIGHT):new q(o.left+o.width-_/3,o.top+C/3),this.bottomRightBorderDoubleOuterBox=p>0||u>0?ve(o.left+l,o.top+i,p-_/3,u-b/3,le.BOTTOM_RIGHT):new q(o.left+o.width-_/3,o.top+o.height-b/3),this.bottomLeftBorderDoubleOuterBox=c>0||a>0?ve(o.left+E/3,o.top+d,c-E/3,a-b/3,le.BOTTOM_LEFT):new q(o.left+E/3,o.top+o.height-b/3),this.topLeftBorderDoubleInnerBox=B>0||A>0?ve(o.left+E*2/3,o.top+C*2/3,B-E*2/3,A-C*2/3,le.TOP_LEFT):new q(o.left+E*2/3,o.top+C*2/3),this.topRightBorderDoubleInnerBox=B>0||A>0?ve(o.left+r,o.top+C*2/3,m-_*2/3,g-C*2/3,le.TOP_RIGHT):new q(o.left+o.width-_*2/3,o.top+C*2/3),this.bottomRightBorderDoubleInnerBox=p>0||u>0?ve(o.left+l,o.top+i,p-_*2/3,u-b*2/3,le.BOTTOM_RIGHT):new q(o.left+o.width-_*2/3,o.top+o.height-b*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||a>0?ve(o.left+E*2/3,o.top+d,c-E*2/3,a-b*2/3,le.BOTTOM_LEFT):new q(o.left+E*2/3,o.top+o.height-b*2/3),this.topLeftBorderStroke=B>0||A>0?ve(o.left+E/2,o.top+C/2,B-E/2,A-C/2,le.TOP_LEFT):new q(o.left+E/2,o.top+C/2),this.topRightBorderStroke=B>0||A>0?ve(o.left+r,o.top+C/2,m-_/2,g-C/2,le.TOP_RIGHT):new q(o.left+o.width-_/2,o.top+C/2),this.bottomRightBorderStroke=p>0||u>0?ve(o.left+l,o.top+i,p-_/2,u-b/2,le.BOTTOM_RIGHT):new q(o.left+o.width-_/2,o.top+o.height-b/2),this.bottomLeftBorderStroke=c>0||a>0?ve(o.left+E/2,o.top+d,c-E/2,a-b/2,le.BOTTOM_LEFT):new q(o.left+E/2,o.top+o.height-b/2),this.topLeftBorderBox=B>0||A>0?ve(o.left,o.top,B,A,le.TOP_LEFT):new q(o.left,o.top),this.topRightBorderBox=m>0||g>0?ve(o.left+r,o.top,m,g,le.TOP_RIGHT):new q(o.left+o.width,o.top),this.bottomRightBorderBox=p>0||u>0?ve(o.left+l,o.top+i,p,u,le.BOTTOM_RIGHT):new q(o.left+o.width,o.top+o.height),this.bottomLeftBorderBox=c>0||a>0?ve(o.left,o.top+d,c,a,le.BOTTOM_LEFT):new q(o.left,o.top+o.height),this.topLeftPaddingBox=B>0||A>0?ve(o.left+E,o.top+C,Math.max(0,B-E),Math.max(0,A-C),le.TOP_LEFT):new q(o.left+E,o.top+C),this.topRightPaddingBox=m>0||g>0?ve(o.left+Math.min(r,o.width-_),o.top+C,r>o.width+_?0:Math.max(0,m-_),Math.max(0,g-C),le.TOP_RIGHT):new q(o.left+o.width-_,o.top+C),this.bottomRightPaddingBox=p>0||u>0?ve(o.left+Math.min(l,o.width-E),o.top+Math.min(i,o.height-b),Math.max(0,p-_),Math.max(0,u-b),le.BOTTOM_RIGHT):new q(o.left+o.width-_,o.top+o.height-b),this.bottomLeftPaddingBox=c>0||a>0?ve(o.left+E,o.top+Math.min(d,o.height-b),Math.max(0,c-E),Math.max(0,a-b),le.BOTTOM_LEFT):new q(o.left+E,o.top+o.height-b),this.topLeftContentBox=B>0||A>0?ve(o.left+E+T,o.top+C+F,Math.max(0,B-(E+T)),Math.max(0,A-(C+F)),le.TOP_LEFT):new q(o.left+E+T,o.top+C+F),this.topRightContentBox=m>0||g>0?ve(o.left+Math.min(r,o.width+E+T),o.top+C+F,r>o.width+E+T?0:m-E+T,g-(C+F),le.TOP_RIGHT):new q(o.left+o.width-(_+Q),o.top+C+F),this.bottomRightContentBox=p>0||u>0?ve(o.left+Math.min(l,o.width-(E+T)),o.top+Math.min(i,o.height+C+F),Math.max(0,p-(_+Q)),u-(b+U),le.BOTTOM_RIGHT):new q(o.left+o.width-(_+Q),o.top+o.height-(b+U)),this.bottomLeftContentBox=c>0||a>0?ve(o.left+E+T,o.top+d,Math.max(0,c-(E+T)),a-(b+U),le.BOTTOM_LEFT):new q(o.left+E+T,o.top+o.height-(b+U))}return v}(),le;(function(v){v[v.TOP_LEFT=0]="TOP_LEFT",v[v.TOP_RIGHT=1]="TOP_RIGHT",v[v.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",v[v.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(le||(le={}));var ve=function(v,e,t,o,y){var B=4*((Math.sqrt(2)-1)/3),A=t*B,h=o*B,m=v+t,g=e+o;switch(y){case le.TOP_LEFT:return new Kn(new q(v,g),new q(v,g-h),new q(m-A,e),new q(m,e));case le.TOP_RIGHT:return new Kn(new q(v,e),new q(v+A,e),new q(m,g-h),new q(m,g));case le.BOTTOM_RIGHT:return new Kn(new q(m,e),new q(m,e+h),new q(v+A,g),new q(v,g));case le.BOTTOM_LEFT:default:return new Kn(new q(m,g),new q(m-A,g),new q(v,e+h),new q(v,e))}},Nn=function(v){return[v.topLeftBorderBox,v.topRightBorderBox,v.bottomRightBorderBox,v.bottomLeftBorderBox]},ry=function(v){return[v.topLeftContentBox,v.topRightContentBox,v.bottomRightContentBox,v.bottomLeftContentBox]},Vn=function(v){return[v.topLeftPaddingBox,v.topRightPaddingBox,v.bottomRightPaddingBox,v.bottomLeftPaddingBox]},Ay=function(){function v(e,t,o){this.offsetX=e,this.offsetY=t,this.matrix=o,this.type=0,this.target=6}return v}(),Gn=function(){function v(e,t){this.path=e,this.target=t,this.type=1}return v}(),ny=function(){function v(e){this.opacity=e,this.type=2,this.target=6}return v}(),iy=function(v){return v.type===0},Qu=function(v){return v.type===1},oy=function(v){return v.type===2},Su=function(v,e){return v.length===e.length?v.some(function(t,o){return t===e[o]}):!1},sy=function(v,e,t,o,y){return v.map(function(B,A){switch(A){case 0:return B.add(e,t);case 1:return B.add(e+o,t);case 2:return B.add(e+o,t+y);case 3:return B.add(e,t+y)}return B})},Uu=function(){function v(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return v}(),Tu=function(){function v(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ty(this.container),this.container.styles.opacity<1&&this.effects.push(new ny(this.container.styles.opacity)),this.container.styles.transform!==null){var o=this.container.bounds.left+this.container.styles.transformOrigin[0].number,y=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform;this.effects.push(new Ay(o,y,B))}if(this.container.styles.overflowX!==0){var A=Nn(this.curves),h=Vn(this.curves);Su(A,h)?this.effects.push(new Gn(A,6)):(this.effects.push(new Gn(A,2)),this.effects.push(new Gn(h,4)))}}return v.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,o=this.parent,y=this.effects.slice(0);o;){var B=o.effects.filter(function(m){return!Qu(m)});if(t||o.container.styles.position!==0||!o.parent){if(y.unshift.apply(y,B),t=[2,3].indexOf(o.container.styles.position)===-1,o.container.styles.overflowX!==0){var A=Nn(o.curves),h=Vn(o.curves);Su(A,h)||y.unshift(new Gn(h,6))}}else y.unshift.apply(y,B);o=o.parent}return y.filter(function(m){return Qe(m.target,e)})},v}(),To=function(v,e,t,o){v.container.elements.forEach(function(y){var B=Qe(y.flags,4),A=Qe(y.flags,2),h=new Tu(y,v);Qe(y.styles.display,2048)&&o.push(h);var m=Qe(y.flags,8)?[]:o;if(B||A){var g=B||y.styles.isPositioned()?t:e,w=new Uu(h);if(y.styles.isPositioned()||y.styles.opacity<1||y.styles.isTransformed()){var p=y.styles.zIndex.order;if(p<0){var u=0;g.negativeZIndex.some(function(c,a){return p>c.element.container.styles.zIndex.order?(u=a,!1):u>0}),g.negativeZIndex.splice(u,0,w)}else if(p>0){var f=0;g.positiveZIndex.some(function(c,a){return p>=c.element.container.styles.zIndex.order?(f=a+1,!1):f>0}),g.positiveZIndex.splice(f,0,w)}else g.zeroOrAutoZIndexOrTransformedOrOpacity.push(w)}else y.styles.isFloating()?g.nonPositionedFloats.push(w):g.nonPositionedInlineLevel.push(w);To(h,w,B?w:t,m)}else y.styles.isInlineLevel()?e.inlineLevel.push(h):e.nonInlineLevel.push(h),To(h,e,t,m);Qe(y.flags,8)&&Iu(y,m)})},Iu=function(v,e){for(var t=v instanceof mo?v.start:1,o=v instanceof mo?v.reversed:!1,y=0;y<e.length;y++){var B=e[y];B.container instanceof ru&&typeof B.container.value=="number"&&B.container.value!==0&&(t=B.container.value),B.listValue=_r(t,B.container.styles.listStyleType,!0),t+=o?-1:1}},ay=function(v){var e=new Tu(v,null),t=new Uu(e),o=[];return To(e,t,t,o),Iu(e.container,o),t},Pu=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftPaddingBox,v.topRightBorderBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderBox,v.topRightPaddingBox,v.bottomRightBorderBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightPaddingBox,v.bottomLeftBorderBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftPaddingBox,v.topLeftBorderBox,v.topLeftPaddingBox)}},cy=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox,v.topRightBorderBox,v.topRightBorderDoubleOuterBox);case 1:return ze(v.topRightBorderBox,v.topRightBorderDoubleOuterBox,v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox,v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox,v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox)}},ly=function(v,e){switch(e){case 0:return ze(v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox,v.topRightBorderDoubleInnerBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderDoubleInnerBox,v.topRightPaddingBox,v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox,v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox,v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox)}},uy=function(v,e){switch(e){case 0:return jn(v.topLeftBorderStroke,v.topRightBorderStroke);case 1:return jn(v.topRightBorderStroke,v.bottomRightBorderStroke);case 2:return jn(v.bottomRightBorderStroke,v.bottomLeftBorderStroke);case 3:default:return jn(v.bottomLeftBorderStroke,v.topLeftBorderStroke)}},jn=function(v,e){var t=[];return We(v)?t.push(v.subdivide(.5,!1)):t.push(v),We(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},ze=function(v,e,t,o){var y=[];return We(v)?y.push(v.subdivide(.5,!1)):y.push(v),We(t)?y.push(t.subdivide(.5,!0)):y.push(t),We(o)?y.push(o.subdivide(.5,!0).reverse()):y.push(o),We(e)?y.push(e.subdivide(.5,!1).reverse()):y.push(e),y},xu=function(v){var e=v.bounds,t=v.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Wn=function(v){var e=v.styles,t=v.bounds,o=pe(e.paddingLeft,t.width),y=pe(e.paddingRight,t.width),B=pe(e.paddingTop,t.width),A=pe(e.paddingBottom,t.width);return t.add(o+e.borderLeftWidth,B+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+o+y),-(e.borderTopWidth+e.borderBottomWidth+B+A))},dy=function(v,e){return v===0?e.bounds:v===2?Wn(e):xu(e)},fy=function(v,e){return v===0?e.bounds:v===2?Wn(e):xu(e)},Io=function(v,e,t){var o=dy(Zt(v.styles.backgroundOrigin,e),v),y=fy(Zt(v.styles.backgroundClip,e),v),B=hy(Zt(v.styles.backgroundSize,e),t,o),A=B[0],h=B[1],m=yr(Zt(v.styles.backgroundPosition,e),o.width-A,o.height-h),g=py(Zt(v.styles.backgroundRepeat,e),m,B,o,y),w=Math.round(o.left+m[0]),p=Math.round(o.top+m[1]);return[g,w,p,A,h]},$t=function(v){return fe(v)&&v.value===Wt.AUTO},zn=function(v){return typeof v=="number"},hy=function(v,e,t){var o=e[0],y=e[1],B=e[2],A=v[0],h=v[1];if(!A)return[0,0];if(Ee(A)&&h&&Ee(h))return[pe(A,t.width),pe(h,t.height)];var m=zn(B);if(fe(A)&&(A.value===Wt.CONTAIN||A.value===Wt.COVER)){if(zn(B)){var g=t.width/t.height;return g<B!=(A.value===Wt.COVER)?[t.width,t.width/B]:[t.height*B,t.height]}return[t.width,t.height]}var w=zn(o),p=zn(y),u=w||p;if($t(A)&&(!h||$t(h))){if(w&&p)return[o,y];if(!m&&!u)return[t.width,t.height];if(u&&m){var f=w?o:y*B,c=p?y:o/B;return[f,c]}var a=w?o:t.width,n=p?y:t.height;return[a,n]}if(m){var s=0,r=0;return Ee(A)?s=pe(A,t.width):Ee(h)&&(r=pe(h,t.height)),$t(A)?s=r*B:(!h||$t(h))&&(r=s/B),[s,r]}var i=null,l=null;if(Ee(A)?i=pe(A,t.width):h&&Ee(h)&&(l=pe(h,t.height)),i!==null&&(!h||$t(h))&&(l=w&&p?i/o*y:t.height),l!==null&&$t(A)&&(i=w&&p?l/y*o:t.width),i!==null&&l!==null)return[i,l];throw new Error("Unable to calculate background-size for element")},Zt=function(v,e){var t=v[e];return typeof t>"u"?v[0]:t},py=function(v,e,t,o,y){var B=e[0],A=e[1],h=t[0],m=t[1];switch(v){case 2:return[new q(Math.round(o.left),Math.round(o.top+A)),new q(Math.round(o.left+o.width),Math.round(o.top+A)),new q(Math.round(o.left+o.width),Math.round(m+o.top+A)),new q(Math.round(o.left),Math.round(m+o.top+A))];case 3:return[new q(Math.round(o.left+B),Math.round(o.top)),new q(Math.round(o.left+B+h),Math.round(o.top)),new q(Math.round(o.left+B+h),Math.round(o.height+o.top)),new q(Math.round(o.left+B),Math.round(o.height+o.top))];case 1:return[new q(Math.round(o.left+B),Math.round(o.top+A)),new q(Math.round(o.left+B+h),Math.round(o.top+A)),new q(Math.round(o.left+B+h),Math.round(o.top+A+m)),new q(Math.round(o.left+B),Math.round(o.top+A+m))];default:return[new q(Math.round(y.left),Math.round(y.top)),new q(Math.round(y.left+y.width),Math.round(y.top)),new q(Math.round(y.left+y.width),Math.round(y.height+y.top)),new q(Math.round(y.left),Math.round(y.height+y.top))]}},gy="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ou="Hidden Text",vy=function(){function v(e){this._data={},this._document=e}return v.prototype.parseMetrics=function(e,t){var o=this._document.createElement("div"),y=this._document.createElement("img"),B=this._document.createElement("span"),A=this._document.body;o.style.visibility="hidden",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin="0",o.style.padding="0",o.style.whiteSpace="nowrap",A.appendChild(o),y.src=gy,y.width=1,y.height=1,y.style.margin="0",y.style.padding="0",y.style.verticalAlign="baseline",B.style.fontFamily=e,B.style.fontSize=t,B.style.margin="0",B.style.padding="0",B.appendChild(this._document.createTextNode(Ou)),o.appendChild(B),o.appendChild(y);var h=y.offsetTop-B.offsetTop+2;o.removeChild(B),o.appendChild(this._document.createTextNode(Ou)),o.style.lineHeight="normal",y.style.verticalAlign="super";var m=y.offsetTop-o.offsetTop+2;return A.removeChild(o),{baseline:h,middle:m}},v.prototype.getMetrics=function(e,t){var o=e+" "+t;return typeof this._data[o]>"u"&&(this._data[o]=this.parseMetrics(e,t)),this._data[o]},v}(),Mu=function(){function v(e,t){this.context=e,this.options=t}return v}(),yy=1e4,my=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y._activeEffects=[],y.canvas=o.canvas?o.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),o.canvas||(y.canvas.width=Math.floor(o.width*o.scale),y.canvas.height=Math.floor(o.height*o.scale),y.canvas.style.width=o.width+"px",y.canvas.style.height=o.height+"px"),y.fontMetrics=new vy(document),y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-o.x,-o.y),y.ctx.textBaseline="bottom",y._activeEffects=[],y.context.logger.debug("Canvas renderer initialized ("+o.width+"x"+o.height+") with scale "+o.scale),y}return e.prototype.applyEffects=function(t){for(var o=this;this._activeEffects.length;)this.popEffect();t.forEach(function(y){return o.applyEffect(y)})},e.prototype.applyEffect=function(t){this.ctx.save(),oy(t)&&(this.ctx.globalAlpha=t.opacity),iy(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Qu(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Re(this,void 0,void 0,function(){var o;return xe(this,function(y){switch(y.label){case 0:return o=t.element.container.styles,o.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:y.sent(),y.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Re(this,void 0,void 0,function(){return xe(this,function(o){switch(o.label){case 0:if(Qe(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return o.sent(),[4,this.renderNodeContent(t)];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,o,y){var B=this;if(o===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+y);else{var A=yo(t.text);A.reduce(function(h,m){return B.ctx.fillText(m,h,t.bounds.top+y),h+B.ctx.measureText(m).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var o=t.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),y=_y(t.fontFamily).join(", "),B=vr(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,o,t.fontWeight,B,y].join(" "),y,B]},e.prototype.renderTextNode=function(t,o){return Re(this,void 0,void 0,function(){var y,B,A,h,m,g,w,p,u=this;return xe(this,function(f){return y=this.createFontStyle(o),B=y[0],A=y[1],h=y[2],this.ctx.font=B,this.ctx.direction=o.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",m=this.fontMetrics.getMetrics(A,h),g=m.baseline,w=m.middle,p=o.paintOrder,t.textBounds.forEach(function(c){p.forEach(function(a){switch(a){case 0:u.ctx.fillStyle=Se(o.color),u.renderTextWithLetterSpacing(c,o.letterSpacing,g);var n=o.textShadow;n.length&&c.text.trim().length&&(n.slice(0).reverse().forEach(function(s){u.ctx.shadowColor=Se(s.color),u.ctx.shadowOffsetX=s.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=s.offsetY.number*u.options.scale,u.ctx.shadowBlur=s.blur.number,u.renderTextWithLetterSpacing(c,o.letterSpacing,g)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),o.textDecorationLine.length&&(u.ctx.fillStyle=Se(o.textDecorationColor||o.color),o.textDecorationLine.forEach(function(s){switch(s){case 1:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+g),c.bounds.width,1);break;case 2:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:u.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+w),c.bounds.width,1);break}}));break;case 1:o.webkitTextStrokeWidth&&c.text.trim().length&&(u.ctx.strokeStyle=Se(o.webkitTextStrokeColor),u.ctx.lineWidth=o.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+g)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,o,y){if(y&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var B=Wn(t),A=Vn(o);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(y,0,0,t.intrinsicWidth,t.intrinsicHeight,B.left,B.top,B.width,B.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m,r,r,g,w,p,u,l,f,c,d,a,n,s,r,i,l,d;return xe(this,function(C){switch(C.label){case 0:this.applyEffects(t.getEffects(4)),o=t.container,y=t.curves,B=o.styles,A=0,h=o.textNodes,C.label=1;case 1:return A<h.length?(m=h[A],[4,this.renderTextNode(m,B)]):[3,4];case 2:C.sent(),C.label=3;case 3:return A++,[3,1];case 4:if(!(o instanceof ql))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(o.src)];case 6:return r=C.sent(),this.renderReplacedElement(o,y,r),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+o.src),[3,8];case 8:if(o instanceof eu&&this.renderReplacedElement(o,y,o.canvas),!(o instanceof tu))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(o.svg)];case 10:return r=C.sent(),this.renderReplacedElement(o,y,r),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+o.svg.substring(0,255)),[3,12];case 12:return o instanceof ou&&o.tree?(g=new e(this.context,{scale:this.options.scale,backgroundColor:o.backgroundColor,x:0,y:0,width:o.width,height:o.height}),[4,g.render(o.tree)]):[3,14];case 13:w=C.sent(),o.width&&o.height&&this.ctx.drawImage(w,0,0,o.width,o.height,o.bounds.left,o.bounds.top,o.bounds.width,o.bounds.height),C.label=14;case 14:if(o instanceof wo&&(p=Math.min(o.bounds.width,o.bounds.height),o.type===Mn?o.checked&&(this.ctx.save(),this.path([new q(o.bounds.left+p*.39363,o.bounds.top+p*.79),new q(o.bounds.left+p*.16,o.bounds.top+p*.5549),new q(o.bounds.left+p*.27347,o.bounds.top+p*.44071),new q(o.bounds.left+p*.39694,o.bounds.top+p*.5649),new q(o.bounds.left+p*.72983,o.bounds.top+p*.23),new q(o.bounds.left+p*.84,o.bounds.top+p*.34085),new q(o.bounds.left+p*.39363,o.bounds.top+p*.79)]),this.ctx.fillStyle=Se(Au),this.ctx.fill(),this.ctx.restore()):o.type===Hn&&o.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(o.bounds.left+p/2,o.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=Se(Au),this.ctx.fill(),this.ctx.restore())),wy(o)&&o.value.length){switch(u=this.createFontStyle(B),l=u[0],f=u[1],c=this.fontMetrics.getMetrics(l,f).baseline,this.ctx.font=l,this.ctx.fillStyle=Se(B.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Cy(o.styles.textAlign),d=Wn(o),a=0,o.styles.textAlign){case 1:a+=d.width/2;break;case 2:a+=d.width;break}n=d.add(a,0,0,-d.height/2+1),this.ctx.save(),this.path([new q(d.left,d.top),new q(d.left+d.width,d.top),new q(d.left+d.width,d.top+d.height),new q(d.left,d.top+d.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Cr(o.value,n),B.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Qe(o.styles.display,2048))return[3,20];if(o.styles.listStyleImage===null)return[3,19];if(s=o.styles.listStyleImage,s.type!==0)return[3,18];r=void 0,i=s.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(i)];case 16:return r=C.sent(),this.ctx.drawImage(r,o.bounds.left-(r.width+10),o.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+i),[3,18];case 18:return[3,20];case 19:t.listValue&&o.styles.listStyleType!==-1&&(l=this.createFontStyle(B)[0],this.ctx.font=l,this.ctx.fillStyle=Se(B.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",d=new ot(o.bounds.left,o.bounds.top+pe(o.styles.paddingTop,o.bounds.width),o.bounds.width,Ol(B.lineHeight,B.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Cr(t.listValue,d),B.letterSpacing,Ol(B.lineHeight,B.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return Re(this,void 0,void 0,function(){var o,y,s,B,A,s,h,m,s,g,w,s,p,u,s,f,c,s,a,n,s;return xe(this,function(r){switch(r.label){case 0:if(Qe(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:r.sent(),o=0,y=t.negativeZIndex,r.label=2;case 2:return o<y.length?(s=y[o],[4,this.renderStack(s)]):[3,5];case 3:r.sent(),r.label=4;case 4:return o++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:r.sent(),B=0,A=t.nonInlineLevel,r.label=7;case 7:return B<A.length?(s=A[B],[4,this.renderNode(s)]):[3,10];case 8:r.sent(),r.label=9;case 9:return B++,[3,7];case 10:h=0,m=t.nonPositionedFloats,r.label=11;case 11:return h<m.length?(s=m[h],[4,this.renderStack(s)]):[3,14];case 12:r.sent(),r.label=13;case 13:return h++,[3,11];case 14:g=0,w=t.nonPositionedInlineLevel,r.label=15;case 15:return g<w.length?(s=w[g],[4,this.renderStack(s)]):[3,18];case 16:r.sent(),r.label=17;case 17:return g++,[3,15];case 18:p=0,u=t.inlineLevel,r.label=19;case 19:return p<u.length?(s=u[p],[4,this.renderNode(s)]):[3,22];case 20:r.sent(),r.label=21;case 21:return p++,[3,19];case 22:f=0,c=t.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return f<c.length?(s=c[f],[4,this.renderStack(s)]):[3,26];case 24:r.sent(),r.label=25;case 25:return f++,[3,23];case 26:a=0,n=t.positiveZIndex,r.label=27;case 27:return a<n.length?(s=n[a],[4,this.renderStack(s)]):[3,30];case 28:r.sent(),r.label=29;case 29:return a++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var o=this;t.forEach(function(y,B){var A=We(y)?y.start:y;B===0?o.ctx.moveTo(A.x,A.y):o.ctx.lineTo(A.x,A.y),We(y)&&o.ctx.bezierCurveTo(y.startControl.x,y.startControl.y,y.endControl.x,y.endControl.y,y.end.x,y.end.y)})},e.prototype.renderRepeat=function(t,o,y,B){this.path(t),this.ctx.fillStyle=o,this.ctx.translate(y,B),this.ctx.fill(),this.ctx.translate(-y,-B)},e.prototype.resizeImage=function(t,o,y){var B;if(t.width===o&&t.height===y)return t;var A=(B=this.canvas.ownerDocument)!==null&&B!==void 0?B:document,h=A.createElement("canvas");h.width=Math.max(1,o),h.height=Math.max(1,y);var m=h.getContext("2d");return m.drawImage(t,0,0,t.width,t.height,0,0,o,y),h},e.prototype.renderBackgroundImage=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m;return xe(this,function(g){switch(g.label){case 0:o=t.styles.backgroundImage.length-1,y=function(w){var p,u,f,F,I,M,T,S,b,c,F,I,M,T,S,a,n,s,r,i,l,d,C,_,b,E,F,Q,U,T,S,P,I,M,K,W,L,O,H,k,G,D;return xe(this,function(R){switch(R.label){case 0:if(w.type!==0)return[3,5];p=void 0,u=w.url,R.label=1;case 1:return R.trys.push([1,3,,4]),[4,B.context.cache.match(u)];case 2:return p=R.sent(),[3,4];case 3:return R.sent(),B.context.logger.error("Error loading background-image "+u),[3,4];case 4:return p&&(f=Io(t,o,[p.width,p.height,p.width/p.height]),F=f[0],I=f[1],M=f[2],T=f[3],S=f[4],b=B.ctx.createPattern(B.resizeImage(p,T,S),"repeat"),B.renderRepeat(F,b,I,M)),[3,6];case 5:ip(w)?(c=Io(t,o,[null,null,null]),F=c[0],I=c[1],M=c[2],T=c[3],S=c[4],a=ep(w.angle,T,S),n=a[0],s=a[1],r=a[2],i=a[3],l=a[4],d=document.createElement("canvas"),d.width=T,d.height=S,C=d.getContext("2d"),_=C.createLinearGradient(s,i,r,l),bl(w.stops,n).forEach(function(N){return _.addColorStop(N.stop,Se(N.color))}),C.fillStyle=_,C.fillRect(0,0,T,S),T>0&&S>0&&(b=B.ctx.createPattern(d,"repeat"),B.renderRepeat(F,b,I,M))):op(w)&&(E=Io(t,o,[null,null,null]),F=E[0],Q=E[1],U=E[2],T=E[3],S=E[4],P=w.position.length===0?[ro]:w.position,I=pe(P[0],T),M=pe(P[P.length-1],S),K=tp(w,I,M,T,S),W=K[0],L=K[1],W>0&&L>0&&(O=B.ctx.createRadialGradient(Q+I,U+M,0,Q+I,U+M,W),bl(w.stops,W*2).forEach(function(N){return O.addColorStop(N.stop,Se(N.color))}),B.path(F),B.ctx.fillStyle=O,W!==L?(H=t.bounds.left+.5*t.bounds.width,k=t.bounds.top+.5*t.bounds.height,G=L/W,D=1/G,B.ctx.save(),B.ctx.translate(H,k),B.ctx.transform(1,0,0,G,0,0),B.ctx.translate(-H,-k),B.ctx.fillRect(Q,D*(U-k)+k,T,S*D),B.ctx.restore()):B.ctx.fill())),R.label=6;case 6:return o--,[2]}})},B=this,A=0,h=t.styles.backgroundImage.slice(0).reverse(),g.label=1;case 1:return A<h.length?(m=h[A],[5,y(m)]):[3,4];case 2:g.sent(),g.label=3;case 3:return A++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,o,y){return Re(this,void 0,void 0,function(){return xe(this,function(B){return this.path(Pu(y,o)),this.ctx.fillStyle=Se(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,o,y,B){return Re(this,void 0,void 0,function(){var A,h;return xe(this,function(m){switch(m.label){case 0:return o<3?[4,this.renderSolidBorder(t,y,B)]:[3,2];case 1:return m.sent(),[2];case 2:return A=cy(B,y),this.path(A),this.ctx.fillStyle=Se(t),this.ctx.fill(),h=ly(B,y),this.path(h),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m,g,w,p=this;return xe(this,function(u){switch(u.label){case 0:return this.applyEffects(t.getEffects(2)),o=t.container.styles,y=!gt(o.backgroundColor)||o.backgroundImage.length,B=[{style:o.borderTopStyle,color:o.borderTopColor,width:o.borderTopWidth},{style:o.borderRightStyle,color:o.borderRightColor,width:o.borderRightWidth},{style:o.borderBottomStyle,color:o.borderBottomColor,width:o.borderBottomWidth},{style:o.borderLeftStyle,color:o.borderLeftColor,width:o.borderLeftWidth}],A=By(Zt(o.backgroundClip,0),t.curves),y||o.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),gt(o.backgroundColor)||(this.ctx.fillStyle=Se(o.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),o.boxShadow.slice(0).reverse().forEach(function(f){p.ctx.save();var c=Nn(t.curves),a=f.inset?0:yy,n=sy(c,-a+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(p.path(c),p.ctx.clip(),p.mask(n)):(p.mask(c),p.ctx.clip(),p.path(n)),p.ctx.shadowOffsetX=f.offsetX.number+a,p.ctx.shadowOffsetY=f.offsetY.number,p.ctx.shadowColor=Se(f.color),p.ctx.shadowBlur=f.blur.number,p.ctx.fillStyle=f.inset?Se(f.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),u.label=2;case 2:h=0,m=0,g=B,u.label=3;case 3:return m<g.length?(w=g[m],w.style!==0&&!gt(w.color)&&w.width>0?w.style!==2?[3,5]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return w.style!==3?[3,7]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,3)];case 6:return u.sent(),[3,11];case 7:return w.style!==4?[3,9]:[4,this.renderDoubleBorder(w.color,w.width,h,t.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(w.color,h,t.curves)];case 10:u.sent(),u.label=11;case 11:h++,u.label=12;case 12:return m++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,o,y,B,A){return Re(this,void 0,void 0,function(){var h,m,g,w,p,u,f,c,a,n,s,r,i,l,d,C,d,C;return xe(this,function(_){return this.ctx.save(),h=uy(B,y),m=Pu(B,y),A===2&&(this.path(m),this.ctx.clip()),We(m[0])?(g=m[0].start.x,w=m[0].start.y):(g=m[0].x,w=m[0].y),We(m[1])?(p=m[1].end.x,u=m[1].end.y):(p=m[1].x,u=m[1].y),y===0||y===2?f=Math.abs(g-p):f=Math.abs(w-u),this.ctx.beginPath(),A===3?this.formatPath(h):this.formatPath(m.slice(0,2)),c=o<3?o*3:o*2,a=o<3?o*2:o,A===3&&(c=o,a=o),n=!0,f<=c*2?n=!1:f<=c*2+a?(s=f/(2*c+a),c*=s,a*=s):(r=Math.floor((f+a)/(c+a)),i=(f-r*c)/(r-1),l=(f-(r+1)*c)/r,a=l<=0||Math.abs(a-i)<Math.abs(a-l)?i:l),n&&(A===3?this.ctx.setLineDash([0,c+a]):this.ctx.setLineDash([c,a])),A===3?(this.ctx.lineCap="round",this.ctx.lineWidth=o):this.ctx.lineWidth=o*2+1.1,this.ctx.strokeStyle=Se(t),this.ctx.stroke(),this.ctx.setLineDash([]),A===2&&(We(m[0])&&(d=m[3],C=m[0],this.ctx.beginPath(),this.formatPath([new q(d.end.x,d.end.y),new q(C.start.x,C.start.y)]),this.ctx.stroke()),We(m[1])&&(d=m[1],C=m[2],this.ctx.beginPath(),this.formatPath([new q(d.end.x,d.end.y),new q(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return Re(this,void 0,void 0,function(){var o;return xe(this,function(y){switch(y.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Se(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),o=ay(t),[4,this.renderStack(o)];case 1:return y.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(Mu),wy=function(v){return v instanceof iu||v instanceof nu?!0:v instanceof wo&&v.type!==Hn&&v.type!==Mn},By=function(v,e){switch(v){case 0:return Nn(e);case 2:return ry(e);case 1:default:return Vn(e)}},Cy=function(v){switch(v){case 1:return"center";case 2:return"right";case 0:default:return"left"}},by=["-apple-system","system-ui"],_y=function(v){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?v.filter(function(e){return by.indexOf(e)===-1}):v},Ey=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.canvas=o.canvas?o.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),y.options=o,y.canvas.width=Math.floor(o.width*o.scale),y.canvas.height=Math.floor(o.height*o.scale),y.canvas.style.width=o.width+"px",y.canvas.style.height=o.height+"px",y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-o.x,-o.y),y.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+o.width+"x"+o.height+" at "+o.x+","+o.y+") with scale "+o.scale),y}return e.prototype.render=function(t){return Re(this,void 0,void 0,function(){var o,y;return xe(this,function(B){switch(B.label){case 0:return o=vo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Fy(o)];case 1:return y=B.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Se(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(y,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(Mu),Fy=function(v){return new Promise(function(e,t){var o=new Image;o.onload=function(){e(o)},o.onerror=t,o.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(v))})},Qy=function(){function v(e){var t=e.id,o=e.enabled;this.id=t,this.enabled=o,this.start=Date.now()}return v.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.getTime=function(){return Date.now()-this.start},v.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,en([this.id,this.getTime()+"ms"],e))},v.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.instances={},v}(),Sy=function(){function v(e,t){var o;this.windowBounds=t,this.instanceName="#"+v.instanceCount++,this.logger=new Qy({id:this.instanceName,enabled:e.logging}),this.cache=(o=e.cache)!==null&&o!==void 0?o:new Jv(this,e)}return v.instanceCount=1,v}(),Uy=function(v,e){return e===void 0&&(e={}),Ty(v,e)};typeof window<"u"&&Fu.setContext(window);var Ty=function(v,e){return Re(void 0,void 0,void 0,function(){var t,o,y,B,A,h,m,g,w,p,u,f,c,a,n,s,r,i,l,d,_,C,_,b,E,F,Q,U,T,S,P,I,M,K,W,L,O,H,k,G;return xe(this,function(D){switch(D.label){case 0:if(!v||typeof v!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=v.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(o=t.defaultView,!o)throw new Error("Document is not attached to a Window");return y={allowTaint:(b=e.allowTaint)!==null&&b!==void 0?b:!1,imageTimeout:(E=e.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:e.proxy,useCORS:(F=e.useCORS)!==null&&F!==void 0?F:!1},B=Mi({logging:(Q=e.logging)!==null&&Q!==void 0?Q:!0,cache:e.cache},y),A={windowWidth:(U=e.windowWidth)!==null&&U!==void 0?U:o.innerWidth,windowHeight:(T=e.windowHeight)!==null&&T!==void 0?T:o.innerHeight,scrollX:(S=e.scrollX)!==null&&S!==void 0?S:o.pageXOffset,scrollY:(P=e.scrollY)!==null&&P!==void 0?P:o.pageYOffset},h=new ot(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),m=new Sy(B,h),g=(I=e.foreignObjectRendering)!==null&&I!==void 0?I:!1,w={allowTaint:(M=e.allowTaint)!==null&&M!==void 0?M:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:g,copyStyles:g},m.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),p=new _u(m,v,w),u=p.clonedReferenceElement,u?[4,p.toIFrame(t,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=D.sent(),c=Co(u)||Iv(u)?sf(u.ownerDocument):tn(m,u),a=c.width,n=c.height,s=c.left,r=c.top,i=Iy(m,u,e.backgroundColor),l={canvas:e.canvas,backgroundColor:i,scale:(W=(K=e.scale)!==null&&K!==void 0?K:o.devicePixelRatio)!==null&&W!==void 0?W:1,x:((L=e.x)!==null&&L!==void 0?L:0)+s,y:((O=e.y)!==null&&O!==void 0?O:0)+r,width:(H=e.width)!==null&&H!==void 0?H:Math.ceil(a),height:(k=e.height)!==null&&k!==void 0?k:Math.ceil(n)},g?(m.logger.debug("Document cloned, using foreign object rendering"),_=new Ey(m,l),[4,_.render(u)]):[3,3];case 2:return d=D.sent(),[3,5];case 3:return m.logger.debug("Document cloned, element located at "+s+","+r+" with size "+a+"x"+n+" using computed rendering"),m.logger.debug("Starting DOM parsing"),C=au(m,u),i===C.styles.backgroundColor&&(C.styles.backgroundColor=at.TRANSPARENT),m.logger.debug("Starting renderer for element at "+l.x+","+l.y+" with size "+l.width+"x"+l.height),_=new my(m,l),[4,_.render(C)];case 4:d=D.sent(),D.label=5;case 5:return(!((G=e.removeContainer)!==null&&G!==void 0)||G)&&(_u.destroy(f)||m.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),m.logger.debug("Finished rendering"),[2,d]}})})},Iy=function(v,e,t){var o=e.ownerDocument,y=o.documentElement?mr(v,getComputedStyle(o.documentElement).backgroundColor):at.TRANSPARENT,B=o.body?mr(v,getComputedStyle(o.body).backgroundColor):at.TRANSPARENT,A=typeof t=="string"?mr(v,t):t===null?at.TRANSPARENT:4294967295;return e===o.documentElement?gt(y)?gt(B)?A:B:y:A};const Xr=class Xr extends j.EngineObject{constructor(t,o){super(t,o);z(this,"_imageLabel",this.dv(new j.ESImageLabel(`${this.sceneObject.id}_ESImageLabel`)));z(this,"_hasClassDivAndPos",{});const y=o.viewer;if(!y){console.warn("viewer is undefined!");return}t.mainClass=this._imageLabel;const B=this._imageLabel;o.add(B),this.d(()=>o.delete(B));{const A=()=>{if(!y)return;if(!t.instanceClass)throw new Error("!sceneObject.instanceClass");const g=document.createElement("div"),w=this.dv(new t.instanceClass(g,t,o))._container;if(w.style.opacity=t.opacity.toString()??j.ESGeoDiv.defaults.opacity,w.style.position="fixed",w.style.zIndex="-1",w.style.top="0px",!document.body.contains(w)){document.body.appendChild(w);let u=w?w.querySelectorAll("*[class]"):[];for(let f=0;f<u.length;f++){const c=u[f];var p=c.getBoundingClientRect();this._hasClassDivAndPos[c.className]=[c.offsetLeft,c.offsetTop,c.offsetLeft+p.width,c.offsetTop+p.height]}}Uy(w,{backgroundColor:null,allowTaint:!0,useCORS:!0,width:w.offsetWidth,height:w.offsetHeight,scale:1}).then(u=>{document.body.contains(w)&&document.body.removeChild(w),B.url=u.toDataURL(),B.show=t.show}).catch(()=>{document.body.contains(w)&&document.body.removeChild(w)})},h=()=>{try{t.instanceClass?A():(B.url="",B.show=!1)}catch(g){console.error(g)}};h();const m=this.dv(V.createNextAnimateFrameEvent(t.instanceClassChanged,t.opacityChanged));this.d(m.don(h))}{const A=()=>{B.show=t.show};B.show=!1,this.ad(t.showChanged.don(A))}this.d(V.track([B,"anchor"],[t,"anchor"])),this.d(V.bind([B,"position"],[t,"position"])),this.d(V.bind([B,"rotation"],[t,"rotation"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([B,"flyInParam"],[t,"flyInParam"])),this.d(V.bind([B,"allowPicking"],[t,"allowPicking"])),this.d(V.bind([B,"scale"],[t,"scale"])),this.d(V.track([B,"minVisibleDistance"],[t,"minVisibleDistance"])),this.d(V.track([B,"maxVisibleDistance"],[t,"maxVisibleDistance"])),this.ad(t.automaticLandingEvent.don(()=>{B.automaticLanding()})),this.d(B.pickedEvent.don(A=>{(t.allowPicking??!1)&&t.pickedEvent.emit(A)})),this.d(o.widgetEvent.don(A=>{if(A.objId!==this._imageLabel.id)return;const{type:h,add:m}=A;if(h==="leftClick"&&m){const g=(m==null?void 0:m.classNames)??[],w=Object.keys(this._hasClassDivAndPos);for(let p=0;p<w.length;p++){const u=w[p];let f=this._hasClassDivAndPos[u];m&&m.mouseRelativePos&&m.mouseRelativePos[0]>=f[0]&&m.mouseRelativePos[0]<=f[2]&&m.mouseRelativePos[1]>=f[1]&&m.mouseRelativePos[1]<=f[3]&&g.push(u)}m.classNames=g}t.widgetEvent.emit({type:h,add:m})})),this.d(t.calcFlyToParamEvent.don(()=>{Lt(y,B.id)})),this.d(t.calcFlyInParamEvent.don(()=>{const A=o.getCurrentCameraInfo();if(!A)return;const{position:h,rotation:m}=A;t.flyInParam={position:h,rotation:m,flyDuration:1}})),this.d(t.smoothMoveEvent.don((A,h)=>{zA(y,B.id,A,h)})),this.d(t.smoothMoveWithRotationEvent.don((A,h,m)=>{GA(y,B.id,A,h,m)})),this.d(t.smoothMoveOnGroundEvent.don((A,h,m,g)=>{jA(y,B.id,A,h,g,m)})),this.d(t.smoothMoveWithRotationOnGroundEvent.don((A,h,m,g,w)=>{WA(y,B.id,A,h,m,g,w)})),this.d(t.flyToEvent.don((A,h)=>{B.flyTo(A)})),this.d(t.flyInEvent.don(A=>{B.flyIn(A)}))}};z(Xr,"type",Xr.register("ESUeViewer",j.ESGeoDiv.type,Xr));let Po=Xr;const Yr=class Yr extends De{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.flyToFeatureIndexEvent.don((y,B)=>{o.callUeFunc({f:"flyToFeatureIndex",p:{id:e.id,index:y,duration:B}})})),this.d(e.flyToFeatureEvent.don((y,B,A)=>{o.callUeFunc({f:"flyToFeature",p:{id:e.id,key:y,value:B,duration:A}})}))}};z(Yr,"type",Yr.register("ESUeViewer",j.ESGeoJson.type,Yr));let xo=Yr;const $r=class $r extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z($r,"type",$r.register("ESUeViewer",j.ESGeoLineString.type,$r));let Jn=$r;const Zr=class Zr extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Zr,"type",Zr.register("ESUeViewer",j.ESGeoRectangle.type,Zr));let Oo=Zr;const qr=class qr extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(qr,"type",qr.register("ESUeViewer",j.ESGeoWater.type,qr));let Mo=qr;const Pt=class Pt extends de{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.setNodePositionEvent.don((y,B)=>{Rs(o,e.id,y,B)})),this.d(e.setNodeRotationEvent.don((y,B)=>{ks(o,e.id,y,B)})),this.d(e.setNodeScaleEvent.don((y,B)=>{Ks(o,e.id,y,B)}))}};z(Pt,"forceUeUpdateProps",[...de.forceUeUpdateProps,"url"]),z(Pt,"propValFuncs",{...de.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e),czmMaximumScale:null,czmMinimumPixelSize:null,czmNativeScale:null,czmColor:null}),z(Pt,"type",Pt.register("ESUeViewer",j.ESGltfModel.type,Pt));let Ho=Pt;const eA=class eA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(eA,"type",eA.register("ESUeViewer",j.ESHeightMeasurement.type,eA));let Lo=eA;const tA=class tA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=async(A,h,m,g)=>{const{viewer:w}=A;if(!w){console.error("AIMoveTo: ueViewer.viewer is undefined");return}const p=await w.callUeFunc({f:"AIMoveTo",p:{id:h,Destination:m,Time:g}});return p.error&&console.error("AIMoveTo:",p.error),p};this.d(e.aiMoveToEvent.don((A,h)=>{y(t,e.id,A,h)}));const B=async(A,h)=>{const{viewer:m}=A;if(!m){console.error("StopAIMove: ueViewer.viewer is undefined");return}const g=await m.callUeFunc({f:"StopAIMove",p:{id:h}});return g.error&&console.error("StopAIMove:",g.error),g};this.d(e.stopAIMoveEvent.don(()=>{B(t,e.id)}))}};z(tA,"type",tA.register("ESUeViewer",j.ESHuman.type,tA));let Do=tA;const xt=class xt extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.anchor=[.5,1]}};z(xt,"type",xt.register("ESUeViewer",j.ESImageLabel.type,xt)),z(xt,"forceUeUpdateProps",[...$e.forceUeUpdateProps,"url"]),z(xt,"propValFuncs",{...$e.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e)});let Ro=xt;const rA=class rA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(rA,"type",rA.register("ESUeViewer",j.ESLevelRuntimeModel.type,rA));let ko=rA;const AA=class AA extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(AA,"type",AA.register("ESUeViewer",j.ESLocalCircle.type,AA));let Ko=AA;const nA=class nA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(nA,"type",nA.register("ESUeViewer",j.ESLocalPolygonZ.type,nA));let No=nA;const iA=class iA extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(iA,"type",iA.register("ESUeViewer",j.ESLocalRectangle.type,iA));let Vo=iA;const oA=class oA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(oA,"type",oA.register("ESUeViewer",j.ESLocalSkyBox.type,oA));let Go=oA;const sA=class sA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(sA,"type",sA.register("ESUeViewer",j.ESLocationMeasurement.type,sA));let jo=sA;const aA=class aA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(aA,"type",aA.register("ESUeViewer",j.ESPipeFence.type,aA));let Wo=aA;const cA=class cA extends Jn{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(cA,"type",cA.register("ESUeViewer",j.ESPipeline.type,cA));let zo=cA;const lA=class lA extends ZA{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.highlightFeatureEvent.don(y=>{const B=typeof y=="number"?y.toString():y;Ms(o,e.id,B)})),this.d(e.highlightFeatureAndFlyToEvent.don((y,B,A,h)=>{const m=typeof y=="number"?y.toString():y;Hs(o,e.id,m,h??1)})),this.d(e.setLayerVisibleEvent.don((y,B)=>{let A="";typeof B!="string"?A=JSON.stringify(B):A=B,Ls(o,e.id,A)})),this.d(e.setLayerColorEvent.don((y,B)=>{let A="";typeof B!="string"?A=JSON.stringify(B):A=B,Ds(o,e.id,A)}))}};z(lA,"type",lA.register("ESUeViewer",j.ESPipeserTileset.type,lA));let Jo=lA;const uA=class uA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(uA,"type",uA.register("ESUeViewer",j.ESPit.type,uA));let Xo=uA;const dA=class dA extends $e{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.ad(e.getInitialStyleEvent.don(async()=>{try{const y=await o.callUeFunc({f:"GetInitialStyle",p:{id:e.id}});y.error!=""&&console.error("getInitialStyleEvent:",y.error),e.initialStyle.value=structuredClone(y.re)}catch(y){console.error("getInitialStyleEvent:",y),e.initialStyle.value=void 0}}))}};z(dA,"type",dA.register("ESUeViewer",j.ESPoi2D.type,dA));let Yo=dA;const fA=class fA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(fA,"type",fA.register("ESUeViewer",j.ESPoi3D.type,fA));let $o=fA;const Ot=class Ot extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Ot,"type",Ot.register("ESUeViewer",j.ESPoiTileset.type,Ot)),z(Ot,"forceUeUpdateProps",[...De.forceUeUpdateProps,"url"]),z(Ot,"propValFuncs",{...De.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(e):(e.url=j.ESSceneObject.context.getStrFromEnv(e.url),e)});let Zo=Ot;const hA=class hA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(hA,"type",hA.register("ESUeViewer",j.ESPolygonFence.type,hA));let qo=hA;const pA=class pA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(pA,"type",pA.register("ESUeViewer",j.ESPolygonFlattenedPlane.type,pA));let es=pA;const gA=class gA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(gA,"type",gA.register("ESUeViewer",j.ESPolygonWithHole.type,gA));let ts=gA;const vA=class vA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(()=>{e.ids=[]}),this.d(e.highlightInner3DtilesetEvent.don(y=>{y.highlight=!0})),this.d(e.removeHighlightInner3DtilesetEvent.don(y=>{y.highlight=!1}));{const y=h=>{h=h.toLocaleLowerCase();let m=[255,255,255,1];if(h.startsWith("#")){if(h.length===4){let g=parseInt(h[1]+h[1],16),w=parseInt(h[2]+h[2],16),p=parseInt(h[3]+h[3],16);m=[g,w,p,1]}else if(h.length===7){let g=parseInt(h.substring(1,3),16),w=parseInt(h.substring(3,5),16),p=parseInt(h.substring(5,7),16);m=[g,w,p,1]}}else if(h.startsWith("rgba")){let g=h.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]),f=parseFloat(g[4]);m=[w,p,u,f]}}else if(h.startsWith("rgb")){let g=h.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]);m=[w,p,u,1]}}else console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");return[m[0]/255,m[1]/255,m[2]/255,m[3]]},B=()=>{const h=e.layerConfig;if(!h)return;const m=[];h.forEach(g=>{m.push({condition:[{field:"layer",op:"==",value:g.layer},{field:"dataset",op:"==",value:g.dataset}],color:y(g.value.color??"rgb(255,255,255)"),show:g.value.visible})}),e.setFeatureStyle(m)};B();const A=this.dv(V.createNextAnimateFrameEvent(e.layerConfigChanged));this.d(A.don(()=>{B()}))}}};z(vA,"type",vA.register("ESUeViewer",j.ESRtsTileset.type,vA));let rs=vA;const yA=class yA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(e.addTreesEvent.don(y=>{j.addTreesCallFunc(t,e.id,y)})),this.d(e.removeAllTreesEvent.don(()=>{j.removeAllTreesCallFunc(t,e.id)})),this.d(e.updateTreeParamsEvent.don(y=>{j.updateTreeParamsCallFunc(t,e.id,y)})),this.d(e.cutDownTreesEvent.don((y,B)=>{j.cutDownTreesCallFunc(t,e.id,y,B)})),this.d(e.growthSimulationEvent.don((y,B,A)=>{j.growthSimulationCallFunc(t,e.id,y,B,A)}))}};z(yA,"type",yA.register("ESUeViewer",j.ESSeparateFoliage.type,yA));let As=yA;const mA=class mA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(mA,"type",mA.register("ESUeViewer",j.ESSubmergingAnalysis.type,mA));let ns=mA;const wA=class wA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.stopEvent.don(()=>{o.callUeFunc({f:"Stop",p:{id:e.id}})}))}};z(wA,"type",wA.register("ESUeViewer",j.ESSunshineAnalysis.type,wA));let is=wA;const BA=class BA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})}))}};z(BA,"type",BA.register("ESUeViewer",j.ESSurfaceAreaMeasurement.type,BA));let os=BA;const CA=class CA extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(CA,"type",CA.register("ESUeViewer",j.ESTextLabel.type,CA));let ss=CA;const qt=class qt extends $e{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.callFunctionEvent.don(async(y,B)=>{const A=await ti(o,e.id,y,B);e.__callFunctionResultEvent.emit(A)}))}};z(qt,"type",qt.register("ESUeViewer",j.ESUEWidget.type,qt)),z(qt,"propValFuncs",{...$e.propValFuncs,info:e=>JSON.stringify(e??{})});let as=qt;const Hu=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"未搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是场景原有的,而是新建的,无法绑定";case 4:return"搜索到ActorTag对应的Actor是地形或3DTileset,无法绑定";default:return"未知错误"}},Py=v=>{switch(v){case 0:return"创建成功";case 1:return"未找到对应的资源,无法创建";case 2:return"Id与场景中现有的ActorTag重复,创建后可能出现问题,创建失败";default:return"未知错误"}},bA=class bA extends j.EngineObject{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn(`${e.id} UeESUnrealActor viewer is undefined!`);return}this.d(()=>{qn(o,e.id)});const y=async()=>{g()||await o.callUeFunc({f:"update",p:{id:e.id,name:e.name,show:e.show,rotation:e.rotation,flyToParam:e.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:e.flyInParam??j.ESVisualObject.defaults.flyInParam,highlight:e.highlight,collision:e.collision,scale:e.scale,minVisibleDistance:e.minVisibleDistance,maxVisibleDistance:e.maxVisibleDistance}})},B=this.dv(V.createNextAnimateFrameEvent(e.showChanged,e.nameChanged,e.rotationChanged,e.flyToParamChanged,e.flyInParamChanged,e.highlightChanged,e.collisionChanged,e.scaleChanged,e.minVisibleDistanceChanged,e.maxVisibleDistanceChanged));this.d(B.don(y)),this.d(e.flushEvent.don(()=>B.flush()));let A,h;const m=async()=>{g()||(await o.callUeFunc({f:"update",p:{id:e.id,position:e.position}}),(t.debug??!1)&&console.log(`updatePostion:${e.position},actorTag:${e.actorTag},actorClass:${e.actorClass}`))},g=()=>!A&&!h?(console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`),!0):!1,w=async()=>{const{id:u}=e,f=await t.unBindActorByID(u);f&&f.error!==""&&console.warn(`${e.id} UeESUnrealActor UnBindActorByID: ${f.error}`),A=void 0;const c=await o.callUeFunc({f:"destroy",p:{id:u}});if(c&&c.error!==""){console.warn(`${e.id} UeESUnrealActor DestroyActorByID: ${c.error}`);return}h=void 0},p=this.dv(V.react({type:"ActorClass",actorClass:"default"}));{const u=this.dv(V.createNextAnimateFrameEvent(e.actorClassChanged,e.actorTagChanged)),f=async()=>{e.actorTag!==""?p.value={type:"ActorTag",actorTag:e.actorTag}:p.value={type:"ActorClass",actorClass:e.actorClass===""?"default":e.actorClass}};f(),this.d(u.don(f)),this.d(e.flushEvent.don(()=>u.flush()))}{const u=this.dv(V.createProcessingFromAsyncFunc(async c=>{if(await c.promise(w()),p.value.type==="ActorTag"){const{actorTag:a}=p.value;await c.promise(w());try{e.lastActorStatus="null";const n=await c.promise(t.bindActorByTag(e.id,a));if(!n)return;if(n.error!==""){console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${n.error}`);return}if(n.re.type===0)e.lastActorStatus="bound",A=a;else if(n.re.type===1)e.lastActorStatus="bound",A=a,console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${Hu(n.re.type)}`);else{A=void 0,console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${a}, ${Hu(n.re.type)}`);return}}catch(n){console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${a}, ${n}`);return}}else if(p.value.type==="ActorClass"){const{actorClass:a}=p.value;try{const n=await c.promise(t.createActorByClass(e.id,a));if(!n)return;if(n.error!==""){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${a}, ${n.error}`);return}if(n.re.type===0)e.lastActorStatus="created",h=a;else{console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${a},${Py(n.re.type)}`);return}}catch(n){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${a}, ${JSON.stringify(n)}`);return}}await c.promise(y()),await c.promise(m())})),f=async()=>{u.restart()};f(),this.d(p.changed.don(f))}this.d(e.positionChanged.don(m)),this.d(e.callFunctionEvent.don(async(u,f)=>{if(g()){e.__callFunctionResultEvent.emit(void 0);return}const c=await ti(o,e.id,u,f);e.__callFunctionResultEvent.emit(c)})),this.d(e.smoothMoveEvent.don((u,f)=>{g()||zA(o,e.id,u,f)})),this.d(e.smoothMoveWithRotationEvent.don((u,f,c)=>{g()||GA(o,e.id,u,f,c)})),this.d(e.smoothMoveOnGroundEvent.don((u,f,c,a)=>{g()||jA(o,e.id,u,f,a,c)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((u,f,c,a,n)=>{g()||WA(o,e.id,u,f,c,a,n)})),this.d(e.automaticLandingEvent.don(u=>{if(g())return;const f=[e.position[0],e.position[1]];t.getHeightByLonLat(e.position[0],e.position[1],"Visibility").then(c=>{c!==null&&(e.position=[...f,c],e.collision=u)})})),this.d(e.flyToEvent.don(async(u,f)=>{if(g())return;const c=await Ht(o,e.id,u);let a="over";c===void 0?a="error":c.endType===0?a="over":c.endType===1&&(a="cancelled"),e.flyOverEvent.emit(f,a,t)})),this.d(e.calcFlyToParamEvent.don(()=>{g()||Lt(o,e.id)})),this.d(e.calcFlyInParamEvent.don(async()=>{if(!t.actived)return;const u=await t.getCurrentCameraInfo();if(!u)return;const{position:f,rotation:c}=u;e.flyInParam={position:f,rotation:c,flyDuration:1}})),this.d(t.propChanged.don(u=>{g()||u.objId===e.id&&Object.keys(u.props).forEach(f=>{const c=u.props[f]===null?void 0:u.props[f];e[f]=c})}))}};z(bA,"type",bA.register("ESUeViewer",j.ESUnrealActor.type,bA));let cs=bA;const _A=class _A extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(_A,"type",_A.register("ESUeViewer",j.ESVideoFusion.type,_A));let ls=_A;const EA=class EA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(EA,"type",EA.register("ESUeViewer",j.ESViewShed.type,EA));let us=EA;const FA=class FA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};z(FA,"type",FA.register("ESUeViewer",j.ESVisibilityAnalysis.type,FA));let ds=FA;const QA=class QA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.ad(V.track([e,"volume"],[e,"cutAndFillVolume"])),this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.clearEvent.don(()=>{o.callUeFunc({f:"Clear",p:{id:e.id}})}))}};z(QA,"type",QA.register("ESUeViewer",j.ESVolumeMeasurement.type,QA));let fs=QA;const er=class er extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(er,"type",er.register("ESUeViewer",j.ESWidget.type,er)),z(er,"propValFuncs",{...$e.propValFuncs,info:e=>JSON.stringify(e??{})});let hs=er;const SA=class SA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.poi.actorTag=e.human.id,e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8],this.d(e.poiOffsetHeightChanged.don(()=>{e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8]})),this.d(()=>{e.poi.actorTag=""})}};z(SA,"type",SA.register("ESUeViewer",j.ESHumanPoi.type,SA));let ps=SA;j.ESSceneObject.context.getStrFromEnv(j.ESNavigator.defaults.imgUrl);const UA=class UA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),this.dispose(V.track([y,"show"],[e,"show"])),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){super(),this._subContainer=A;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g));{const u=async()=>{const f=await t.getCurrentCameraInfo(),c=f==null?void 0:f.position,n=[...f==null?void 0:f.rotation];n[0]=360,t.flyIn(c,n)};g.addEventListener("click",u),g.style.cursor="pointer",this.dispose(()=>g.removeEventListener("click",u))}{const u=()=>{g.style.width=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`,g.style.height=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`};u(),e.dispose(e.cssSizeChanged.disposableOn(u))}g.style.position="fixed";{const u=()=>{g.style.top=`${e.cssPosition?e.cssPosition[0]:j.ESNavigator.defaults.cssPosition[0]}px`,g.style.right=`${e.cssPosition?e.cssPosition[1]:j.ESNavigator.defaults.cssPosition[1]}px`};u(),e.dispose(e.cssPositionChanged.disposableOn(u))}g.style.transition=" right 0.4s linear",g.style.cursor="pointer";const w=document.createElement("div");g.appendChild(w),this.dispose(()=>g.removeChild(w)),w.style.width="100%",w.style.height="100%",w.style.position="relative";const p=document.createElement("img");w.appendChild(p),this.dispose(()=>w.removeChild(p)),p.style.width="100%",p.style.height="100%",p.style.border="none";{const u=()=>p.src=e.imgUrl;u(),e.dispose(e.imgUrlChanged.disposableOn(u))}{const u=()=>{const n=-t.getCurrentCameraInfo().rotation[0];p.style.transform=`rotate(${n}deg)`};let f;const c=async()=>{u(),e.show?(g.style.display="block",f=setInterval(()=>{u()},1e3)):(g.style.display="none",clearInterval(f))};this.dispose(e.showChanged.disposableOn(c)),c(),this.dispose(()=>clearInterval(f))}p.style.transformOrigin="50% 50%"}}}};z(UA,"type",UA.register("ESUeViewer",j.ESNavigator.type,UA));let gs=UA;const Mt=class Mt extends Pe{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}{const y=()=>{let B=e.materialMode==="blue"?"multipleArrows":e.materialMode==="purple"?"singleArrow":e.materialMode;o.callUeFunc({f:"update",p:{id:e.id,materialMode:B}})};this.dispose(e.materialModeChanged.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}}};z(Mt,"type",Mt.register("ESUeViewer",j.ESPath.type,Mt)),z(Mt,"forceUeUpdateProps",[...Pe.forceUeUpdateProps]),z(Mt,"propValFuncs",{...Pe.propValFuncs,materialMode:null});let vs=Mt;async function xy(v){navigator.clipboard.writeText(v).then(function(){console.log("复制成功")},function(e){console.log("复制失败")})}const TA=class TA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){if(super(),this._subContainer=A,!m||!(m instanceof it))return;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g)),g.style.width="100%",g.style.position="absolute",g.style.height=`${j.ESViewerStatusBar.defaults.height}px`,g.style.left="0",g.style.bottom="0",g.style.color="#fff",g.style.padding="0 20px 0 0",g.style.boxSizing="border-box",g.style.lineHeight=`${j.ESViewerStatusBar.defaults.height}px`,g.style.zIndex="100",g.style.alignContent="center",g.style.justifyContent="space-between";const w=document.createElement("span");g.appendChild(w),this.dispose(()=>g.removeChild(w));const p=document.createElement("span");w.appendChild(p),this.dispose(()=>w.removeChild(p));const u=document.createElement("span");w.appendChild(u),u.addEventListener("dblclick",function(){let c=u.innerHTML;c.startsWith("鼠标位置")&&(c=c.slice(5)),xy(c)}),u.style.cursor="pointer",this.dispose(()=>w.removeChild(u));const f=document.createElement("span");g.appendChild(f),this.dispose(()=>g.removeChild(f));{const c=()=>{g.style.height=(e.height??j.ESViewerStatusBar.defaults.height)+"px",g.style.lineHeight=(e.height??j.ESViewerStatusBar.defaults.height)+"px"};this.dispose(e.heightChanged.disposableOn(c)),c()}{const c=()=>{g.style.fontSize=(e.fontSize??j.ESViewerStatusBar.defaults.fontSize)+"px"};this.dispose(e.fontSizeChanged.disposableOn(c)),c()}{const c=()=>{e.bgColor?g.style.background=`rgba(${e.bgColor[0]*255},${e.bgColor[1]*255},${e.bgColor[2]*255},${e.bgColor[3]})`:g.style.background=`rgba(${j.ESViewerStatusBar.defaults.bgColor[0]},${j.ESViewerStatusBar.defaults.bgColor[1]},${j.ESViewerStatusBar.defaults.bgColor[2]},${j.ESViewerStatusBar.defaults.bgColor[3]})`};this.dispose(e.bgColorChanged.disposableOn(c)),c()}m.getVersion().then(c=>{c&&(f.innerText=`Ue 版本 : ${c[0]} `)}).catch(c=>{console.log(c)});{const c=()=>{let s="",r="";s+=`帧率:${m.getFPS().toFixed(0)}FPS`,p.innerText=s;const i=t.getCurrentCameraInfo();s+=` 经度: ${i.position[0].toFixed(5)}° 纬度: ${i.position[1].toFixed(5)}° 高度: ${i.position[2].toFixed(2)}米 偏航角: ${i.rotation[0].toFixed(2)}° 俯仰角: ${i.rotation[1].toFixed(2)}° 翻滚角:${i.rotation[2].toFixed(2)}° `,p.innerText=s,t.pick().then(l=>{if(l){const{pickResult:d}=l;if(d&&d.position){const{position:C}=d;r+=`鼠标位置:${C[0].toFixed(5)}° ${C[1].toFixed(5)}° ${C[2].toFixed(2)}m`}else r+="暂时无法获取鼠标位置...";u.innerText=r}}).catch(l=>{console.log(l)})};let a;const n=async()=>{c(),e.show?(g.style.display="flex",a=setInterval(()=>{c()},1e3)):(g.style.display="none",clearInterval(a))};this.dispose(e.showChanged.disposableOn(n)),n(),this.dispose(()=>clearInterval(a))}}}}};z(TA,"type",TA.register("ESUeViewer",j.ESViewerStatusBar.type,TA));let ys=TA;const IA=class IA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(IA,"type",IA.register("ESUeViewer",j.ESGaussianSplatting.type,IA));let ms=IA;const PA=class PA extends _t{constructor(t,o){super(t,o);z(this,"_es3DTileset",this.dv(new j.ES3DTileset(`${this.sceneObject.id}_ES3DTileset`)));if(!o.viewer){console.warn("viewer is undefined!");return}t.mainClass=this._es3DTileset;{const B=this._es3DTileset;o.add(B),this.dispose(()=>o.delete(B)),this.d(V.track([B,"allowPicking"],[t,"allowPicking"])),this.d(V.track([B,"collision"],[t,"collision"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.track([B,"url"],[t,"url"])),this.d(V.track([B,"actorTag"],[t,"actorTag"])),this.d(V.track([B,"materialMode"],[t,"materialMode"])),this.d(V.track([B,"highlight"],[t,"highlight"])),this.d(V.track([B,"maximumScreenSpaceError"],[t,"maximumScreenSpaceError"])),this.d(V.track([B,"highlightID"],[t,"highlightID"])),this.d(V.track([B,"highlightColor"],[t,"highlightColor"])),this.d(V.bind([B,"offset"],[t,"offset"])),this.d(V.bind([B,"rotation"],[t,"rotation"])),this.d(V.track([B,"czmImageBasedLightingFactor"],[t,"czmImageBasedLightingFactor"])),this.d(V.track([B,"czmLuminanceAtZenith"],[t,"czmLuminanceAtZenith"])),this.d(V.track([B,"czmMaximumMemoryUsage"],[t,"czmMaximumMemoryUsage"])),this.d(V.track([B,"czmClassificationType"],[t,"czmClassificationType"])),this.d(V.track([B,"czmStyleJson"],[t,"czmStyleJson"])),this.d(V.track([B,"czmBackFaceCulling"],[t,"czmBackFaceCulling"])),this.d(V.track([B,"czmDebugShowBoundingVolume"],[t,"czmDebugShowBoundingVolume"])),this.d(V.track([B,"czmDebugShowContentBoundingVolume"],[t,"czmDebugShowContentBoundingVolume"])),this.d(V.track([B,"colorBlendMode"],[t,"colorBlendMode"])),this.d(V.track([B,"cacheBytes"],[t,"cacheBytes"])),this.d(V.track([B,"clippingPlaneEnabled"],[t,"clippingPlaneEnabled"])),this.d(V.track([B,"unionClippingRegions"],[t,"unionClippingRegions"])),this.d(V.track([B,"clippingPlaneEdgeColor"],[t,"clippingPlaneEdgeColor"])),this.d(V.track([B,"clippingPlaneEdgeWidth"],[t,"clippingPlaneEdgeWidth"])),this.d(V.track([B,"materialParams"],[t,"materialParams"])),this.d(V.bind([B,"supportEdit"],[t,"supportEdit"])),this.d(V.bind([B,"clippingPlanesId"],[t,"clippingPlanesId"])),this.d(V.bind([B,"clippingPlaneIds"],[t,"clippingPlaneIds"])),this.d(V.bind([B,"flattenedPlaneId"],[t,"flattenedPlaneId"])),this.d(V.bind([B,"flattenedPlaneEnabled"],[t,"flattenedPlaneEnabled"])),this.d(V.bind([B,"clippingPlaneId"],[t,"clippingPlaneId"])),this.d(V.bind([B,"excavateId"],[t,"excavateId"]))}{const B=this._es3DTileset;this.d(t.refreshTilesetEvent.don(()=>{B.refreshTileset()})),this.d(t.highlightFeatureEvent.don((...A)=>{B.highlightFeature(...A)})),this.d(t.highlightFeatureAndFlyToEvent.don((...A)=>{B.highlightFeatureAndFlyTo(...A)})),this.d(t.setFeatureColorEvent.don((...A)=>{B.setFeatureColor(...A)})),this.d(t.setFeatureVisableEvent.don((...A)=>{B.setFeatureVisable(...A)})),this.d(t.resetFeatureStyleEvent.don((...A)=>{B.resetFeatureStyle(...A)})),this.d(t.flyInEvent.don((...A)=>{B.flyIn(A[0])})),this.d(t.flyToEvent.don((...A)=>{B.flyTo(A[0])})),this.d(t.calcFlyToParamEvent.don((...A)=>{B.calcFlyToParam(...A)})),this.d(t.calcFlyInParamEvent.don((...A)=>{B.calcFlyInParam(...A)}))}{const B=this._es3DTileset;this.d(B.tilesetReady.don(A=>{t.tilesetReady.emit(A)})),this.d(B.pickedEvent.don(A=>{A.assign({sceneObject:t}),t.pickedEvent.emit(A)}))}{const B=()=>{this.es3DTileset.show=t.show};B(),this.d(t.showChanged.don(()=>{B()}))}}get es3DTileset(){return this._es3DTileset}};z(PA,"type",PA.register("ESUeViewer",j.ESRtsFeatureEditing.type,PA));let ws=PA;const xA=class xA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(xA,"type",xA.register("ESUeViewer",j.ESMsTileset.type,xA));let Bs=xA;const OA=class OA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{o.callUeFunc({f:"update",p:{id:e.id,height:e.height??j.ESGeoExtrudedPolygon.defaults.height,extrudedHeight:e.extrudedHeight??j.ESGeoExtrudedPolygon.defaults.extrudedHeight,perPositionHeight:e.perPositionHeight??j.ESGeoExtrudedPolygon.defaults.perPositionHeight}})},B=this.disposeVar(V.createNextAnimateFrameEvent(e.heightChanged,e.extrudedHeightChanged,e.perPositionHeightChanged));this.dispose(B.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}};z(OA,"type",OA.register("ESUeViewer",j.ESGeoExtrudedPolygon.type,OA));let Cs=OA;const MA=class MA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(MA,"type",MA.register("ESUeViewer",j.ESStaticMesh.type,MA));let bs=MA;const HA=class HA extends Pe{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.clearEvent.don(()=>{o.callUeFunc({f:"Clear",p:{id:e.id}})}))}};z(HA,"type",HA.register("ESUeViewer",j.ESSkylineAnalysis.type,HA));let _s=HA;J.copyright=void 0;try{const v="earthsdk3-ue",e="3.0.8-beta.1",t="2025-06-12T03:13:53.000Z",o="北京西部世界科技有限公司",y="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",B="2c16adee48b619a92f127aabca6fc7c39430d81d",h=((Date.now()-1749698033e3)/36e5).toFixed(1),m=`%c🌏 ${v}%c ${e}.${B.slice(0,8)}.${t} (距今${h}个小时)
339
+ .`+Qo+jv+Eu)},zv=function(v,e){var t=v.ownerDocument;if(t){var o=t.createElement("style");o.textContent=e,v.appendChild(o)}},Fu=function(){function v(){}return v.getOrigin=function(e){var t=v._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},v.isSameOrigin=function(e){return v.getOrigin(e)===v._origin},v.setContext=function(e){v._link=e.document.createElement("a"),v._origin=v.getOrigin(e.location.href)},v._origin="about:blank",v}(),Jv=function(){function v(e,t){this.context=e,this._options=t,this._cache={}}return v.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Uo(e)||Zv(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},v.prototype.match=function(e){return this._cache[e]},v.prototype.loadImage=function(e){return Re(this,void 0,void 0,function(){var t,o,y,B,A=this;return xe(this,function(h){switch(h.label){case 0:return t=Fu.isSameOrigin(e),o=!So(e)&&this._options.useCORS===!0&&Ie.SUPPORT_CORS_IMAGES&&!t,y=!So(e)&&!t&&!Uo(e)&&typeof this._options.proxy=="string"&&Ie.SUPPORT_CORS_XHR&&!o,!t&&this._options.allowTaint===!1&&!So(e)&&!Uo(e)&&!y&&!o?[2]:(B=e,y?[4,this.proxy(B)]:[3,2]);case 1:B=h.sent(),h.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(m,g){var w=new Image;w.onload=function(){return m(w)},w.onerror=g,(qv(B)||o)&&(w.crossOrigin="anonymous"),w.src=B,w.complete===!0&&setTimeout(function(){return m(w)},500),A._options.imageTimeout>0&&setTimeout(function(){return g("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,h.sent()]}})})},v.prototype.has=function(e){return typeof this._cache[e]<"u"},v.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},v.prototype.proxy=function(e){var t=this,o=this._options.proxy;if(!o)throw new Error("No proxy defined");var y=e.substring(0,256);return new Promise(function(B,A){var h=Ie.SUPPORT_RESPONSE_TYPE?"blob":"text",m=new XMLHttpRequest;m.onload=function(){if(m.status===200)if(h==="text")B(m.response);else{var p=new FileReader;p.addEventListener("load",function(){return B(p.result)},!1),p.addEventListener("error",function(u){return A(u)},!1),p.readAsDataURL(m.response)}else A("Failed to proxy resource "+y+" with status code "+m.status)},m.onerror=A;var g=o.indexOf("?")>-1?"&":"?";if(m.open("GET",""+o+g+"url="+encodeURIComponent(e)+"&responseType="+h),h!=="text"&&m instanceof XMLHttpRequest&&(m.responseType=h),t._options.imageTimeout){var w=t._options.imageTimeout;m.timeout=w,m.ontimeout=function(){return A("Timed out ("+w+"ms) proxying "+y)}}m.send()})},v}(),Xv=/^data:image\/svg\+xml/i,Yv=/^data:image\/.*;base64,/i,$v=/^data:image\/.*/i,Zv=function(v){return Ie.SUPPORT_SVG_DRAWING||!ey(v)},So=function(v){return $v.test(v)},qv=function(v){return Yv.test(v)},Uo=function(v){return v.substr(0,4)==="blob"},ey=function(v){return v.substr(-3).toLowerCase()==="svg"||Xv.test(v)},q=function(){function v(e,t){this.type=0,this.x=e,this.y=t}return v.prototype.add=function(e,t){return new v(this.x+e,this.y+t)},v}(),Yt=function(v,e,t){return new q(v.x+(e.x-v.x)*t,v.y+(e.y-v.y)*t)},Kn=function(){function v(e,t,o,y){this.type=1,this.start=e,this.startControl=t,this.endControl=o,this.end=y}return v.prototype.subdivide=function(e,t){var o=Yt(this.start,this.startControl,e),y=Yt(this.startControl,this.endControl,e),B=Yt(this.endControl,this.end,e),A=Yt(o,y,e),h=Yt(y,B,e),m=Yt(A,h,e);return t?new v(this.start,o,A,m):new v(m,h,B,this.end)},v.prototype.add=function(e,t){return new v(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},v.prototype.reverse=function(){return new v(this.end,this.endControl,this.startControl,this.start)},v}(),We=function(v){return v.type===1},ty=function(){function v(e){var t=e.styles,o=e.bounds,y=yr(t.borderTopLeftRadius,o.width,o.height),B=y[0],A=y[1],h=yr(t.borderTopRightRadius,o.width,o.height),m=h[0],g=h[1],w=yr(t.borderBottomRightRadius,o.width,o.height),p=w[0],u=w[1],f=yr(t.borderBottomLeftRadius,o.width,o.height),c=f[0],a=f[1],n=[];n.push((B+m)/o.width),n.push((c+p)/o.width),n.push((A+a)/o.height),n.push((g+u)/o.height);var s=Math.max.apply(Math,n);s>1&&(B/=s,A/=s,m/=s,g/=s,p/=s,u/=s,c/=s,a/=s);var r=o.width-m,i=o.height-u,l=o.width-p,d=o.height-a,C=t.borderTopWidth,_=t.borderRightWidth,b=t.borderBottomWidth,E=t.borderLeftWidth,F=pe(t.paddingTop,e.bounds.width),Q=pe(t.paddingRight,e.bounds.width),U=pe(t.paddingBottom,e.bounds.width),T=pe(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=B>0||A>0?ve(o.left+E/3,o.top+C/3,B-E/3,A-C/3,le.TOP_LEFT):new q(o.left+E/3,o.top+C/3),this.topRightBorderDoubleOuterBox=B>0||A>0?ve(o.left+r,o.top+C/3,m-_/3,g-C/3,le.TOP_RIGHT):new q(o.left+o.width-_/3,o.top+C/3),this.bottomRightBorderDoubleOuterBox=p>0||u>0?ve(o.left+l,o.top+i,p-_/3,u-b/3,le.BOTTOM_RIGHT):new q(o.left+o.width-_/3,o.top+o.height-b/3),this.bottomLeftBorderDoubleOuterBox=c>0||a>0?ve(o.left+E/3,o.top+d,c-E/3,a-b/3,le.BOTTOM_LEFT):new q(o.left+E/3,o.top+o.height-b/3),this.topLeftBorderDoubleInnerBox=B>0||A>0?ve(o.left+E*2/3,o.top+C*2/3,B-E*2/3,A-C*2/3,le.TOP_LEFT):new q(o.left+E*2/3,o.top+C*2/3),this.topRightBorderDoubleInnerBox=B>0||A>0?ve(o.left+r,o.top+C*2/3,m-_*2/3,g-C*2/3,le.TOP_RIGHT):new q(o.left+o.width-_*2/3,o.top+C*2/3),this.bottomRightBorderDoubleInnerBox=p>0||u>0?ve(o.left+l,o.top+i,p-_*2/3,u-b*2/3,le.BOTTOM_RIGHT):new q(o.left+o.width-_*2/3,o.top+o.height-b*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||a>0?ve(o.left+E*2/3,o.top+d,c-E*2/3,a-b*2/3,le.BOTTOM_LEFT):new q(o.left+E*2/3,o.top+o.height-b*2/3),this.topLeftBorderStroke=B>0||A>0?ve(o.left+E/2,o.top+C/2,B-E/2,A-C/2,le.TOP_LEFT):new q(o.left+E/2,o.top+C/2),this.topRightBorderStroke=B>0||A>0?ve(o.left+r,o.top+C/2,m-_/2,g-C/2,le.TOP_RIGHT):new q(o.left+o.width-_/2,o.top+C/2),this.bottomRightBorderStroke=p>0||u>0?ve(o.left+l,o.top+i,p-_/2,u-b/2,le.BOTTOM_RIGHT):new q(o.left+o.width-_/2,o.top+o.height-b/2),this.bottomLeftBorderStroke=c>0||a>0?ve(o.left+E/2,o.top+d,c-E/2,a-b/2,le.BOTTOM_LEFT):new q(o.left+E/2,o.top+o.height-b/2),this.topLeftBorderBox=B>0||A>0?ve(o.left,o.top,B,A,le.TOP_LEFT):new q(o.left,o.top),this.topRightBorderBox=m>0||g>0?ve(o.left+r,o.top,m,g,le.TOP_RIGHT):new q(o.left+o.width,o.top),this.bottomRightBorderBox=p>0||u>0?ve(o.left+l,o.top+i,p,u,le.BOTTOM_RIGHT):new q(o.left+o.width,o.top+o.height),this.bottomLeftBorderBox=c>0||a>0?ve(o.left,o.top+d,c,a,le.BOTTOM_LEFT):new q(o.left,o.top+o.height),this.topLeftPaddingBox=B>0||A>0?ve(o.left+E,o.top+C,Math.max(0,B-E),Math.max(0,A-C),le.TOP_LEFT):new q(o.left+E,o.top+C),this.topRightPaddingBox=m>0||g>0?ve(o.left+Math.min(r,o.width-_),o.top+C,r>o.width+_?0:Math.max(0,m-_),Math.max(0,g-C),le.TOP_RIGHT):new q(o.left+o.width-_,o.top+C),this.bottomRightPaddingBox=p>0||u>0?ve(o.left+Math.min(l,o.width-E),o.top+Math.min(i,o.height-b),Math.max(0,p-_),Math.max(0,u-b),le.BOTTOM_RIGHT):new q(o.left+o.width-_,o.top+o.height-b),this.bottomLeftPaddingBox=c>0||a>0?ve(o.left+E,o.top+Math.min(d,o.height-b),Math.max(0,c-E),Math.max(0,a-b),le.BOTTOM_LEFT):new q(o.left+E,o.top+o.height-b),this.topLeftContentBox=B>0||A>0?ve(o.left+E+T,o.top+C+F,Math.max(0,B-(E+T)),Math.max(0,A-(C+F)),le.TOP_LEFT):new q(o.left+E+T,o.top+C+F),this.topRightContentBox=m>0||g>0?ve(o.left+Math.min(r,o.width+E+T),o.top+C+F,r>o.width+E+T?0:m-E+T,g-(C+F),le.TOP_RIGHT):new q(o.left+o.width-(_+Q),o.top+C+F),this.bottomRightContentBox=p>0||u>0?ve(o.left+Math.min(l,o.width-(E+T)),o.top+Math.min(i,o.height+C+F),Math.max(0,p-(_+Q)),u-(b+U),le.BOTTOM_RIGHT):new q(o.left+o.width-(_+Q),o.top+o.height-(b+U)),this.bottomLeftContentBox=c>0||a>0?ve(o.left+E+T,o.top+d,Math.max(0,c-(E+T)),a-(b+U),le.BOTTOM_LEFT):new q(o.left+E+T,o.top+o.height-(b+U))}return v}(),le;(function(v){v[v.TOP_LEFT=0]="TOP_LEFT",v[v.TOP_RIGHT=1]="TOP_RIGHT",v[v.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",v[v.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(le||(le={}));var ve=function(v,e,t,o,y){var B=4*((Math.sqrt(2)-1)/3),A=t*B,h=o*B,m=v+t,g=e+o;switch(y){case le.TOP_LEFT:return new Kn(new q(v,g),new q(v,g-h),new q(m-A,e),new q(m,e));case le.TOP_RIGHT:return new Kn(new q(v,e),new q(v+A,e),new q(m,g-h),new q(m,g));case le.BOTTOM_RIGHT:return new Kn(new q(m,e),new q(m,e+h),new q(v+A,g),new q(v,g));case le.BOTTOM_LEFT:default:return new Kn(new q(m,g),new q(m-A,g),new q(v,e+h),new q(v,e))}},Nn=function(v){return[v.topLeftBorderBox,v.topRightBorderBox,v.bottomRightBorderBox,v.bottomLeftBorderBox]},ry=function(v){return[v.topLeftContentBox,v.topRightContentBox,v.bottomRightContentBox,v.bottomLeftContentBox]},Vn=function(v){return[v.topLeftPaddingBox,v.topRightPaddingBox,v.bottomRightPaddingBox,v.bottomLeftPaddingBox]},Ay=function(){function v(e,t,o){this.offsetX=e,this.offsetY=t,this.matrix=o,this.type=0,this.target=6}return v}(),Gn=function(){function v(e,t){this.path=e,this.target=t,this.type=1}return v}(),ny=function(){function v(e){this.opacity=e,this.type=2,this.target=6}return v}(),iy=function(v){return v.type===0},Qu=function(v){return v.type===1},oy=function(v){return v.type===2},Su=function(v,e){return v.length===e.length?v.some(function(t,o){return t===e[o]}):!1},sy=function(v,e,t,o,y){return v.map(function(B,A){switch(A){case 0:return B.add(e,t);case 1:return B.add(e+o,t);case 2:return B.add(e+o,t+y);case 3:return B.add(e,t+y)}return B})},Uu=function(){function v(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return v}(),Tu=function(){function v(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ty(this.container),this.container.styles.opacity<1&&this.effects.push(new ny(this.container.styles.opacity)),this.container.styles.transform!==null){var o=this.container.bounds.left+this.container.styles.transformOrigin[0].number,y=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform;this.effects.push(new Ay(o,y,B))}if(this.container.styles.overflowX!==0){var A=Nn(this.curves),h=Vn(this.curves);Su(A,h)?this.effects.push(new Gn(A,6)):(this.effects.push(new Gn(A,2)),this.effects.push(new Gn(h,4)))}}return v.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,o=this.parent,y=this.effects.slice(0);o;){var B=o.effects.filter(function(m){return!Qu(m)});if(t||o.container.styles.position!==0||!o.parent){if(y.unshift.apply(y,B),t=[2,3].indexOf(o.container.styles.position)===-1,o.container.styles.overflowX!==0){var A=Nn(o.curves),h=Vn(o.curves);Su(A,h)||y.unshift(new Gn(h,6))}}else y.unshift.apply(y,B);o=o.parent}return y.filter(function(m){return Qe(m.target,e)})},v}(),To=function(v,e,t,o){v.container.elements.forEach(function(y){var B=Qe(y.flags,4),A=Qe(y.flags,2),h=new Tu(y,v);Qe(y.styles.display,2048)&&o.push(h);var m=Qe(y.flags,8)?[]:o;if(B||A){var g=B||y.styles.isPositioned()?t:e,w=new Uu(h);if(y.styles.isPositioned()||y.styles.opacity<1||y.styles.isTransformed()){var p=y.styles.zIndex.order;if(p<0){var u=0;g.negativeZIndex.some(function(c,a){return p>c.element.container.styles.zIndex.order?(u=a,!1):u>0}),g.negativeZIndex.splice(u,0,w)}else if(p>0){var f=0;g.positiveZIndex.some(function(c,a){return p>=c.element.container.styles.zIndex.order?(f=a+1,!1):f>0}),g.positiveZIndex.splice(f,0,w)}else g.zeroOrAutoZIndexOrTransformedOrOpacity.push(w)}else y.styles.isFloating()?g.nonPositionedFloats.push(w):g.nonPositionedInlineLevel.push(w);To(h,w,B?w:t,m)}else y.styles.isInlineLevel()?e.inlineLevel.push(h):e.nonInlineLevel.push(h),To(h,e,t,m);Qe(y.flags,8)&&Iu(y,m)})},Iu=function(v,e){for(var t=v instanceof mo?v.start:1,o=v instanceof mo?v.reversed:!1,y=0;y<e.length;y++){var B=e[y];B.container instanceof ru&&typeof B.container.value=="number"&&B.container.value!==0&&(t=B.container.value),B.listValue=_r(t,B.container.styles.listStyleType,!0),t+=o?-1:1}},ay=function(v){var e=new Tu(v,null),t=new Uu(e),o=[];return To(e,t,t,o),Iu(e.container,o),t},Pu=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftPaddingBox,v.topRightBorderBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderBox,v.topRightPaddingBox,v.bottomRightBorderBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightPaddingBox,v.bottomLeftBorderBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftPaddingBox,v.topLeftBorderBox,v.topLeftPaddingBox)}},cy=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox,v.topRightBorderBox,v.topRightBorderDoubleOuterBox);case 1:return ze(v.topRightBorderBox,v.topRightBorderDoubleOuterBox,v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox,v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox,v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox)}},ly=function(v,e){switch(e){case 0:return ze(v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox,v.topRightBorderDoubleInnerBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderDoubleInnerBox,v.topRightPaddingBox,v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox,v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox,v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox)}},uy=function(v,e){switch(e){case 0:return jn(v.topLeftBorderStroke,v.topRightBorderStroke);case 1:return jn(v.topRightBorderStroke,v.bottomRightBorderStroke);case 2:return jn(v.bottomRightBorderStroke,v.bottomLeftBorderStroke);case 3:default:return jn(v.bottomLeftBorderStroke,v.topLeftBorderStroke)}},jn=function(v,e){var t=[];return We(v)?t.push(v.subdivide(.5,!1)):t.push(v),We(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},ze=function(v,e,t,o){var y=[];return We(v)?y.push(v.subdivide(.5,!1)):y.push(v),We(t)?y.push(t.subdivide(.5,!0)):y.push(t),We(o)?y.push(o.subdivide(.5,!0).reverse()):y.push(o),We(e)?y.push(e.subdivide(.5,!1).reverse()):y.push(e),y},xu=function(v){var e=v.bounds,t=v.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Wn=function(v){var e=v.styles,t=v.bounds,o=pe(e.paddingLeft,t.width),y=pe(e.paddingRight,t.width),B=pe(e.paddingTop,t.width),A=pe(e.paddingBottom,t.width);return t.add(o+e.borderLeftWidth,B+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+o+y),-(e.borderTopWidth+e.borderBottomWidth+B+A))},dy=function(v,e){return v===0?e.bounds:v===2?Wn(e):xu(e)},fy=function(v,e){return v===0?e.bounds:v===2?Wn(e):xu(e)},Io=function(v,e,t){var o=dy(Zt(v.styles.backgroundOrigin,e),v),y=fy(Zt(v.styles.backgroundClip,e),v),B=hy(Zt(v.styles.backgroundSize,e),t,o),A=B[0],h=B[1],m=yr(Zt(v.styles.backgroundPosition,e),o.width-A,o.height-h),g=py(Zt(v.styles.backgroundRepeat,e),m,B,o,y),w=Math.round(o.left+m[0]),p=Math.round(o.top+m[1]);return[g,w,p,A,h]},$t=function(v){return fe(v)&&v.value===Wt.AUTO},zn=function(v){return typeof v=="number"},hy=function(v,e,t){var o=e[0],y=e[1],B=e[2],A=v[0],h=v[1];if(!A)return[0,0];if(Ee(A)&&h&&Ee(h))return[pe(A,t.width),pe(h,t.height)];var m=zn(B);if(fe(A)&&(A.value===Wt.CONTAIN||A.value===Wt.COVER)){if(zn(B)){var g=t.width/t.height;return g<B!=(A.value===Wt.COVER)?[t.width,t.width/B]:[t.height*B,t.height]}return[t.width,t.height]}var w=zn(o),p=zn(y),u=w||p;if($t(A)&&(!h||$t(h))){if(w&&p)return[o,y];if(!m&&!u)return[t.width,t.height];if(u&&m){var f=w?o:y*B,c=p?y:o/B;return[f,c]}var a=w?o:t.width,n=p?y:t.height;return[a,n]}if(m){var s=0,r=0;return Ee(A)?s=pe(A,t.width):Ee(h)&&(r=pe(h,t.height)),$t(A)?s=r*B:(!h||$t(h))&&(r=s/B),[s,r]}var i=null,l=null;if(Ee(A)?i=pe(A,t.width):h&&Ee(h)&&(l=pe(h,t.height)),i!==null&&(!h||$t(h))&&(l=w&&p?i/o*y:t.height),l!==null&&$t(A)&&(i=w&&p?l/y*o:t.width),i!==null&&l!==null)return[i,l];throw new Error("Unable to calculate background-size for element")},Zt=function(v,e){var t=v[e];return typeof t>"u"?v[0]:t},py=function(v,e,t,o,y){var B=e[0],A=e[1],h=t[0],m=t[1];switch(v){case 2:return[new q(Math.round(o.left),Math.round(o.top+A)),new q(Math.round(o.left+o.width),Math.round(o.top+A)),new q(Math.round(o.left+o.width),Math.round(m+o.top+A)),new q(Math.round(o.left),Math.round(m+o.top+A))];case 3:return[new q(Math.round(o.left+B),Math.round(o.top)),new q(Math.round(o.left+B+h),Math.round(o.top)),new q(Math.round(o.left+B+h),Math.round(o.height+o.top)),new q(Math.round(o.left+B),Math.round(o.height+o.top))];case 1:return[new q(Math.round(o.left+B),Math.round(o.top+A)),new q(Math.round(o.left+B+h),Math.round(o.top+A)),new q(Math.round(o.left+B+h),Math.round(o.top+A+m)),new q(Math.round(o.left+B),Math.round(o.top+A+m))];default:return[new q(Math.round(y.left),Math.round(y.top)),new q(Math.round(y.left+y.width),Math.round(y.top)),new q(Math.round(y.left+y.width),Math.round(y.height+y.top)),new q(Math.round(y.left),Math.round(y.height+y.top))]}},gy="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ou="Hidden Text",vy=function(){function v(e){this._data={},this._document=e}return v.prototype.parseMetrics=function(e,t){var o=this._document.createElement("div"),y=this._document.createElement("img"),B=this._document.createElement("span"),A=this._document.body;o.style.visibility="hidden",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin="0",o.style.padding="0",o.style.whiteSpace="nowrap",A.appendChild(o),y.src=gy,y.width=1,y.height=1,y.style.margin="0",y.style.padding="0",y.style.verticalAlign="baseline",B.style.fontFamily=e,B.style.fontSize=t,B.style.margin="0",B.style.padding="0",B.appendChild(this._document.createTextNode(Ou)),o.appendChild(B),o.appendChild(y);var h=y.offsetTop-B.offsetTop+2;o.removeChild(B),o.appendChild(this._document.createTextNode(Ou)),o.style.lineHeight="normal",y.style.verticalAlign="super";var m=y.offsetTop-o.offsetTop+2;return A.removeChild(o),{baseline:h,middle:m}},v.prototype.getMetrics=function(e,t){var o=e+" "+t;return typeof this._data[o]>"u"&&(this._data[o]=this.parseMetrics(e,t)),this._data[o]},v}(),Mu=function(){function v(e,t){this.context=e,this.options=t}return v}(),yy=1e4,my=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y._activeEffects=[],y.canvas=o.canvas?o.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),o.canvas||(y.canvas.width=Math.floor(o.width*o.scale),y.canvas.height=Math.floor(o.height*o.scale),y.canvas.style.width=o.width+"px",y.canvas.style.height=o.height+"px"),y.fontMetrics=new vy(document),y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-o.x,-o.y),y.ctx.textBaseline="bottom",y._activeEffects=[],y.context.logger.debug("Canvas renderer initialized ("+o.width+"x"+o.height+") with scale "+o.scale),y}return e.prototype.applyEffects=function(t){for(var o=this;this._activeEffects.length;)this.popEffect();t.forEach(function(y){return o.applyEffect(y)})},e.prototype.applyEffect=function(t){this.ctx.save(),oy(t)&&(this.ctx.globalAlpha=t.opacity),iy(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Qu(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Re(this,void 0,void 0,function(){var o;return xe(this,function(y){switch(y.label){case 0:return o=t.element.container.styles,o.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:y.sent(),y.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Re(this,void 0,void 0,function(){return xe(this,function(o){switch(o.label){case 0:if(Qe(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return o.sent(),[4,this.renderNodeContent(t)];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,o,y){var B=this;if(o===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+y);else{var A=yo(t.text);A.reduce(function(h,m){return B.ctx.fillText(m,h,t.bounds.top+y),h+B.ctx.measureText(m).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var o=t.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),y=_y(t.fontFamily).join(", "),B=vr(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,o,t.fontWeight,B,y].join(" "),y,B]},e.prototype.renderTextNode=function(t,o){return Re(this,void 0,void 0,function(){var y,B,A,h,m,g,w,p,u=this;return xe(this,function(f){return y=this.createFontStyle(o),B=y[0],A=y[1],h=y[2],this.ctx.font=B,this.ctx.direction=o.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",m=this.fontMetrics.getMetrics(A,h),g=m.baseline,w=m.middle,p=o.paintOrder,t.textBounds.forEach(function(c){p.forEach(function(a){switch(a){case 0:u.ctx.fillStyle=Se(o.color),u.renderTextWithLetterSpacing(c,o.letterSpacing,g);var n=o.textShadow;n.length&&c.text.trim().length&&(n.slice(0).reverse().forEach(function(s){u.ctx.shadowColor=Se(s.color),u.ctx.shadowOffsetX=s.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=s.offsetY.number*u.options.scale,u.ctx.shadowBlur=s.blur.number,u.renderTextWithLetterSpacing(c,o.letterSpacing,g)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),o.textDecorationLine.length&&(u.ctx.fillStyle=Se(o.textDecorationColor||o.color),o.textDecorationLine.forEach(function(s){switch(s){case 1:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+g),c.bounds.width,1);break;case 2:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:u.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+w),c.bounds.width,1);break}}));break;case 1:o.webkitTextStrokeWidth&&c.text.trim().length&&(u.ctx.strokeStyle=Se(o.webkitTextStrokeColor),u.ctx.lineWidth=o.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+g)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,o,y){if(y&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var B=Wn(t),A=Vn(o);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(y,0,0,t.intrinsicWidth,t.intrinsicHeight,B.left,B.top,B.width,B.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m,r,r,g,w,p,u,l,f,c,d,a,n,s,r,i,l,d;return xe(this,function(C){switch(C.label){case 0:this.applyEffects(t.getEffects(4)),o=t.container,y=t.curves,B=o.styles,A=0,h=o.textNodes,C.label=1;case 1:return A<h.length?(m=h[A],[4,this.renderTextNode(m,B)]):[3,4];case 2:C.sent(),C.label=3;case 3:return A++,[3,1];case 4:if(!(o instanceof ql))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(o.src)];case 6:return r=C.sent(),this.renderReplacedElement(o,y,r),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+o.src),[3,8];case 8:if(o instanceof eu&&this.renderReplacedElement(o,y,o.canvas),!(o instanceof tu))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(o.svg)];case 10:return r=C.sent(),this.renderReplacedElement(o,y,r),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+o.svg.substring(0,255)),[3,12];case 12:return o instanceof ou&&o.tree?(g=new e(this.context,{scale:this.options.scale,backgroundColor:o.backgroundColor,x:0,y:0,width:o.width,height:o.height}),[4,g.render(o.tree)]):[3,14];case 13:w=C.sent(),o.width&&o.height&&this.ctx.drawImage(w,0,0,o.width,o.height,o.bounds.left,o.bounds.top,o.bounds.width,o.bounds.height),C.label=14;case 14:if(o instanceof wo&&(p=Math.min(o.bounds.width,o.bounds.height),o.type===Mn?o.checked&&(this.ctx.save(),this.path([new q(o.bounds.left+p*.39363,o.bounds.top+p*.79),new q(o.bounds.left+p*.16,o.bounds.top+p*.5549),new q(o.bounds.left+p*.27347,o.bounds.top+p*.44071),new q(o.bounds.left+p*.39694,o.bounds.top+p*.5649),new q(o.bounds.left+p*.72983,o.bounds.top+p*.23),new q(o.bounds.left+p*.84,o.bounds.top+p*.34085),new q(o.bounds.left+p*.39363,o.bounds.top+p*.79)]),this.ctx.fillStyle=Se(Au),this.ctx.fill(),this.ctx.restore()):o.type===Hn&&o.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(o.bounds.left+p/2,o.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=Se(Au),this.ctx.fill(),this.ctx.restore())),wy(o)&&o.value.length){switch(u=this.createFontStyle(B),l=u[0],f=u[1],c=this.fontMetrics.getMetrics(l,f).baseline,this.ctx.font=l,this.ctx.fillStyle=Se(B.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Cy(o.styles.textAlign),d=Wn(o),a=0,o.styles.textAlign){case 1:a+=d.width/2;break;case 2:a+=d.width;break}n=d.add(a,0,0,-d.height/2+1),this.ctx.save(),this.path([new q(d.left,d.top),new q(d.left+d.width,d.top),new q(d.left+d.width,d.top+d.height),new q(d.left,d.top+d.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Cr(o.value,n),B.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Qe(o.styles.display,2048))return[3,20];if(o.styles.listStyleImage===null)return[3,19];if(s=o.styles.listStyleImage,s.type!==0)return[3,18];r=void 0,i=s.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(i)];case 16:return r=C.sent(),this.ctx.drawImage(r,o.bounds.left-(r.width+10),o.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+i),[3,18];case 18:return[3,20];case 19:t.listValue&&o.styles.listStyleType!==-1&&(l=this.createFontStyle(B)[0],this.ctx.font=l,this.ctx.fillStyle=Se(B.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",d=new ot(o.bounds.left,o.bounds.top+pe(o.styles.paddingTop,o.bounds.width),o.bounds.width,Ol(B.lineHeight,B.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Cr(t.listValue,d),B.letterSpacing,Ol(B.lineHeight,B.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return Re(this,void 0,void 0,function(){var o,y,s,B,A,s,h,m,s,g,w,s,p,u,s,f,c,s,a,n,s;return xe(this,function(r){switch(r.label){case 0:if(Qe(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:r.sent(),o=0,y=t.negativeZIndex,r.label=2;case 2:return o<y.length?(s=y[o],[4,this.renderStack(s)]):[3,5];case 3:r.sent(),r.label=4;case 4:return o++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:r.sent(),B=0,A=t.nonInlineLevel,r.label=7;case 7:return B<A.length?(s=A[B],[4,this.renderNode(s)]):[3,10];case 8:r.sent(),r.label=9;case 9:return B++,[3,7];case 10:h=0,m=t.nonPositionedFloats,r.label=11;case 11:return h<m.length?(s=m[h],[4,this.renderStack(s)]):[3,14];case 12:r.sent(),r.label=13;case 13:return h++,[3,11];case 14:g=0,w=t.nonPositionedInlineLevel,r.label=15;case 15:return g<w.length?(s=w[g],[4,this.renderStack(s)]):[3,18];case 16:r.sent(),r.label=17;case 17:return g++,[3,15];case 18:p=0,u=t.inlineLevel,r.label=19;case 19:return p<u.length?(s=u[p],[4,this.renderNode(s)]):[3,22];case 20:r.sent(),r.label=21;case 21:return p++,[3,19];case 22:f=0,c=t.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return f<c.length?(s=c[f],[4,this.renderStack(s)]):[3,26];case 24:r.sent(),r.label=25;case 25:return f++,[3,23];case 26:a=0,n=t.positiveZIndex,r.label=27;case 27:return a<n.length?(s=n[a],[4,this.renderStack(s)]):[3,30];case 28:r.sent(),r.label=29;case 29:return a++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var o=this;t.forEach(function(y,B){var A=We(y)?y.start:y;B===0?o.ctx.moveTo(A.x,A.y):o.ctx.lineTo(A.x,A.y),We(y)&&o.ctx.bezierCurveTo(y.startControl.x,y.startControl.y,y.endControl.x,y.endControl.y,y.end.x,y.end.y)})},e.prototype.renderRepeat=function(t,o,y,B){this.path(t),this.ctx.fillStyle=o,this.ctx.translate(y,B),this.ctx.fill(),this.ctx.translate(-y,-B)},e.prototype.resizeImage=function(t,o,y){var B;if(t.width===o&&t.height===y)return t;var A=(B=this.canvas.ownerDocument)!==null&&B!==void 0?B:document,h=A.createElement("canvas");h.width=Math.max(1,o),h.height=Math.max(1,y);var m=h.getContext("2d");return m.drawImage(t,0,0,t.width,t.height,0,0,o,y),h},e.prototype.renderBackgroundImage=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m;return xe(this,function(g){switch(g.label){case 0:o=t.styles.backgroundImage.length-1,y=function(w){var p,u,f,F,I,M,T,S,b,c,F,I,M,T,S,a,n,s,r,i,l,d,C,_,b,E,F,Q,U,T,S,P,I,M,K,W,L,O,H,k,G,D;return xe(this,function(R){switch(R.label){case 0:if(w.type!==0)return[3,5];p=void 0,u=w.url,R.label=1;case 1:return R.trys.push([1,3,,4]),[4,B.context.cache.match(u)];case 2:return p=R.sent(),[3,4];case 3:return R.sent(),B.context.logger.error("Error loading background-image "+u),[3,4];case 4:return p&&(f=Io(t,o,[p.width,p.height,p.width/p.height]),F=f[0],I=f[1],M=f[2],T=f[3],S=f[4],b=B.ctx.createPattern(B.resizeImage(p,T,S),"repeat"),B.renderRepeat(F,b,I,M)),[3,6];case 5:ip(w)?(c=Io(t,o,[null,null,null]),F=c[0],I=c[1],M=c[2],T=c[3],S=c[4],a=ep(w.angle,T,S),n=a[0],s=a[1],r=a[2],i=a[3],l=a[4],d=document.createElement("canvas"),d.width=T,d.height=S,C=d.getContext("2d"),_=C.createLinearGradient(s,i,r,l),bl(w.stops,n).forEach(function(N){return _.addColorStop(N.stop,Se(N.color))}),C.fillStyle=_,C.fillRect(0,0,T,S),T>0&&S>0&&(b=B.ctx.createPattern(d,"repeat"),B.renderRepeat(F,b,I,M))):op(w)&&(E=Io(t,o,[null,null,null]),F=E[0],Q=E[1],U=E[2],T=E[3],S=E[4],P=w.position.length===0?[ro]:w.position,I=pe(P[0],T),M=pe(P[P.length-1],S),K=tp(w,I,M,T,S),W=K[0],L=K[1],W>0&&L>0&&(O=B.ctx.createRadialGradient(Q+I,U+M,0,Q+I,U+M,W),bl(w.stops,W*2).forEach(function(N){return O.addColorStop(N.stop,Se(N.color))}),B.path(F),B.ctx.fillStyle=O,W!==L?(H=t.bounds.left+.5*t.bounds.width,k=t.bounds.top+.5*t.bounds.height,G=L/W,D=1/G,B.ctx.save(),B.ctx.translate(H,k),B.ctx.transform(1,0,0,G,0,0),B.ctx.translate(-H,-k),B.ctx.fillRect(Q,D*(U-k)+k,T,S*D),B.ctx.restore()):B.ctx.fill())),R.label=6;case 6:return o--,[2]}})},B=this,A=0,h=t.styles.backgroundImage.slice(0).reverse(),g.label=1;case 1:return A<h.length?(m=h[A],[5,y(m)]):[3,4];case 2:g.sent(),g.label=3;case 3:return A++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,o,y){return Re(this,void 0,void 0,function(){return xe(this,function(B){return this.path(Pu(y,o)),this.ctx.fillStyle=Se(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,o,y,B){return Re(this,void 0,void 0,function(){var A,h;return xe(this,function(m){switch(m.label){case 0:return o<3?[4,this.renderSolidBorder(t,y,B)]:[3,2];case 1:return m.sent(),[2];case 2:return A=cy(B,y),this.path(A),this.ctx.fillStyle=Se(t),this.ctx.fill(),h=ly(B,y),this.path(h),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m,g,w,p=this;return xe(this,function(u){switch(u.label){case 0:return this.applyEffects(t.getEffects(2)),o=t.container.styles,y=!gt(o.backgroundColor)||o.backgroundImage.length,B=[{style:o.borderTopStyle,color:o.borderTopColor,width:o.borderTopWidth},{style:o.borderRightStyle,color:o.borderRightColor,width:o.borderRightWidth},{style:o.borderBottomStyle,color:o.borderBottomColor,width:o.borderBottomWidth},{style:o.borderLeftStyle,color:o.borderLeftColor,width:o.borderLeftWidth}],A=By(Zt(o.backgroundClip,0),t.curves),y||o.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),gt(o.backgroundColor)||(this.ctx.fillStyle=Se(o.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),o.boxShadow.slice(0).reverse().forEach(function(f){p.ctx.save();var c=Nn(t.curves),a=f.inset?0:yy,n=sy(c,-a+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(p.path(c),p.ctx.clip(),p.mask(n)):(p.mask(c),p.ctx.clip(),p.path(n)),p.ctx.shadowOffsetX=f.offsetX.number+a,p.ctx.shadowOffsetY=f.offsetY.number,p.ctx.shadowColor=Se(f.color),p.ctx.shadowBlur=f.blur.number,p.ctx.fillStyle=f.inset?Se(f.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),u.label=2;case 2:h=0,m=0,g=B,u.label=3;case 3:return m<g.length?(w=g[m],w.style!==0&&!gt(w.color)&&w.width>0?w.style!==2?[3,5]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return w.style!==3?[3,7]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,3)];case 6:return u.sent(),[3,11];case 7:return w.style!==4?[3,9]:[4,this.renderDoubleBorder(w.color,w.width,h,t.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(w.color,h,t.curves)];case 10:u.sent(),u.label=11;case 11:h++,u.label=12;case 12:return m++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,o,y,B,A){return Re(this,void 0,void 0,function(){var h,m,g,w,p,u,f,c,a,n,s,r,i,l,d,C,d,C;return xe(this,function(_){return this.ctx.save(),h=uy(B,y),m=Pu(B,y),A===2&&(this.path(m),this.ctx.clip()),We(m[0])?(g=m[0].start.x,w=m[0].start.y):(g=m[0].x,w=m[0].y),We(m[1])?(p=m[1].end.x,u=m[1].end.y):(p=m[1].x,u=m[1].y),y===0||y===2?f=Math.abs(g-p):f=Math.abs(w-u),this.ctx.beginPath(),A===3?this.formatPath(h):this.formatPath(m.slice(0,2)),c=o<3?o*3:o*2,a=o<3?o*2:o,A===3&&(c=o,a=o),n=!0,f<=c*2?n=!1:f<=c*2+a?(s=f/(2*c+a),c*=s,a*=s):(r=Math.floor((f+a)/(c+a)),i=(f-r*c)/(r-1),l=(f-(r+1)*c)/r,a=l<=0||Math.abs(a-i)<Math.abs(a-l)?i:l),n&&(A===3?this.ctx.setLineDash([0,c+a]):this.ctx.setLineDash([c,a])),A===3?(this.ctx.lineCap="round",this.ctx.lineWidth=o):this.ctx.lineWidth=o*2+1.1,this.ctx.strokeStyle=Se(t),this.ctx.stroke(),this.ctx.setLineDash([]),A===2&&(We(m[0])&&(d=m[3],C=m[0],this.ctx.beginPath(),this.formatPath([new q(d.end.x,d.end.y),new q(C.start.x,C.start.y)]),this.ctx.stroke()),We(m[1])&&(d=m[1],C=m[2],this.ctx.beginPath(),this.formatPath([new q(d.end.x,d.end.y),new q(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return Re(this,void 0,void 0,function(){var o;return xe(this,function(y){switch(y.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Se(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),o=ay(t),[4,this.renderStack(o)];case 1:return y.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(Mu),wy=function(v){return v instanceof iu||v instanceof nu?!0:v instanceof wo&&v.type!==Hn&&v.type!==Mn},By=function(v,e){switch(v){case 0:return Nn(e);case 2:return ry(e);case 1:default:return Vn(e)}},Cy=function(v){switch(v){case 1:return"center";case 2:return"right";case 0:default:return"left"}},by=["-apple-system","system-ui"],_y=function(v){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?v.filter(function(e){return by.indexOf(e)===-1}):v},Ey=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.canvas=o.canvas?o.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),y.options=o,y.canvas.width=Math.floor(o.width*o.scale),y.canvas.height=Math.floor(o.height*o.scale),y.canvas.style.width=o.width+"px",y.canvas.style.height=o.height+"px",y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-o.x,-o.y),y.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+o.width+"x"+o.height+" at "+o.x+","+o.y+") with scale "+o.scale),y}return e.prototype.render=function(t){return Re(this,void 0,void 0,function(){var o,y;return xe(this,function(B){switch(B.label){case 0:return o=vo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Fy(o)];case 1:return y=B.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Se(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(y,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(Mu),Fy=function(v){return new Promise(function(e,t){var o=new Image;o.onload=function(){e(o)},o.onerror=t,o.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(v))})},Qy=function(){function v(e){var t=e.id,o=e.enabled;this.id=t,this.enabled=o,this.start=Date.now()}return v.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.getTime=function(){return Date.now()-this.start},v.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,en([this.id,this.getTime()+"ms"],e))},v.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.instances={},v}(),Sy=function(){function v(e,t){var o;this.windowBounds=t,this.instanceName="#"+v.instanceCount++,this.logger=new Qy({id:this.instanceName,enabled:e.logging}),this.cache=(o=e.cache)!==null&&o!==void 0?o:new Jv(this,e)}return v.instanceCount=1,v}(),Uy=function(v,e){return e===void 0&&(e={}),Ty(v,e)};typeof window<"u"&&Fu.setContext(window);var Ty=function(v,e){return Re(void 0,void 0,void 0,function(){var t,o,y,B,A,h,m,g,w,p,u,f,c,a,n,s,r,i,l,d,_,C,_,b,E,F,Q,U,T,S,P,I,M,K,W,L,O,H,k,G;return xe(this,function(D){switch(D.label){case 0:if(!v||typeof v!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=v.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(o=t.defaultView,!o)throw new Error("Document is not attached to a Window");return y={allowTaint:(b=e.allowTaint)!==null&&b!==void 0?b:!1,imageTimeout:(E=e.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:e.proxy,useCORS:(F=e.useCORS)!==null&&F!==void 0?F:!1},B=Mi({logging:(Q=e.logging)!==null&&Q!==void 0?Q:!0,cache:e.cache},y),A={windowWidth:(U=e.windowWidth)!==null&&U!==void 0?U:o.innerWidth,windowHeight:(T=e.windowHeight)!==null&&T!==void 0?T:o.innerHeight,scrollX:(S=e.scrollX)!==null&&S!==void 0?S:o.pageXOffset,scrollY:(P=e.scrollY)!==null&&P!==void 0?P:o.pageYOffset},h=new ot(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),m=new Sy(B,h),g=(I=e.foreignObjectRendering)!==null&&I!==void 0?I:!1,w={allowTaint:(M=e.allowTaint)!==null&&M!==void 0?M:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:g,copyStyles:g},m.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),p=new _u(m,v,w),u=p.clonedReferenceElement,u?[4,p.toIFrame(t,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=D.sent(),c=Co(u)||Iv(u)?sf(u.ownerDocument):tn(m,u),a=c.width,n=c.height,s=c.left,r=c.top,i=Iy(m,u,e.backgroundColor),l={canvas:e.canvas,backgroundColor:i,scale:(W=(K=e.scale)!==null&&K!==void 0?K:o.devicePixelRatio)!==null&&W!==void 0?W:1,x:((L=e.x)!==null&&L!==void 0?L:0)+s,y:((O=e.y)!==null&&O!==void 0?O:0)+r,width:(H=e.width)!==null&&H!==void 0?H:Math.ceil(a),height:(k=e.height)!==null&&k!==void 0?k:Math.ceil(n)},g?(m.logger.debug("Document cloned, using foreign object rendering"),_=new Ey(m,l),[4,_.render(u)]):[3,3];case 2:return d=D.sent(),[3,5];case 3:return m.logger.debug("Document cloned, element located at "+s+","+r+" with size "+a+"x"+n+" using computed rendering"),m.logger.debug("Starting DOM parsing"),C=au(m,u),i===C.styles.backgroundColor&&(C.styles.backgroundColor=at.TRANSPARENT),m.logger.debug("Starting renderer for element at "+l.x+","+l.y+" with size "+l.width+"x"+l.height),_=new my(m,l),[4,_.render(C)];case 4:d=D.sent(),D.label=5;case 5:return(!((G=e.removeContainer)!==null&&G!==void 0)||G)&&(_u.destroy(f)||m.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),m.logger.debug("Finished rendering"),[2,d]}})})},Iy=function(v,e,t){var o=e.ownerDocument,y=o.documentElement?mr(v,getComputedStyle(o.documentElement).backgroundColor):at.TRANSPARENT,B=o.body?mr(v,getComputedStyle(o.body).backgroundColor):at.TRANSPARENT,A=typeof t=="string"?mr(v,t):t===null?at.TRANSPARENT:4294967295;return e===o.documentElement?gt(y)?gt(B)?A:B:y:A};const Xr=class Xr extends j.EngineObject{constructor(t,o){super(t,o);z(this,"_imageLabel",this.dv(new j.ESImageLabel(`${this.sceneObject.id}_ESImageLabel`)));z(this,"_hasClassDivAndPos",{});const y=o.viewer;if(!y){console.warn("viewer is undefined!");return}t.mainClass=this._imageLabel;const B=this._imageLabel;o.add(B),this.d(()=>o.delete(B));{const A=()=>{if(!y)return;if(!t.instanceClass)throw new Error("!sceneObject.instanceClass");const g=document.createElement("div"),w=this.dv(new t.instanceClass(g,t,o))._container;if(w.style.opacity=t.opacity.toString()??j.ESGeoDiv.defaults.opacity,w.style.position="fixed",w.style.zIndex="-1",w.style.top="0px",!document.body.contains(w)){document.body.appendChild(w);let u=w?w.querySelectorAll("*[class]"):[];for(let f=0;f<u.length;f++){const c=u[f];var p=c.getBoundingClientRect();this._hasClassDivAndPos[c.className]=[c.offsetLeft,c.offsetTop,c.offsetLeft+p.width,c.offsetTop+p.height]}}Uy(w,{backgroundColor:null,allowTaint:!0,useCORS:!0,width:w.offsetWidth,height:w.offsetHeight,scale:1}).then(u=>{document.body.contains(w)&&document.body.removeChild(w),B.url=u.toDataURL(),B.show=t.show}).catch(()=>{document.body.contains(w)&&document.body.removeChild(w)})},h=()=>{try{t.instanceClass?A():(B.url="",B.show=!1)}catch(g){console.error(g)}};h();const m=this.dv(V.createNextAnimateFrameEvent(t.instanceClassChanged,t.opacityChanged));this.d(m.don(h))}{const A=()=>{B.show=t.show};B.show=!1,this.ad(t.showChanged.don(A))}this.d(V.track([B,"anchor"],[t,"anchor"])),this.d(V.bind([B,"position"],[t,"position"])),this.d(V.bind([B,"rotation"],[t,"rotation"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([B,"flyInParam"],[t,"flyInParam"])),this.d(V.bind([B,"allowPicking"],[t,"allowPicking"])),this.d(V.bind([B,"scale"],[t,"scale"])),this.d(V.track([B,"minVisibleDistance"],[t,"minVisibleDistance"])),this.d(V.track([B,"maxVisibleDistance"],[t,"maxVisibleDistance"])),this.ad(t.automaticLandingEvent.don(()=>{B.automaticLanding()})),this.d(B.pickedEvent.don(A=>{(t.allowPicking??!1)&&t.pickedEvent.emit(A)})),this.d(o.widgetEvent.don(A=>{if(A.objId!==this._imageLabel.id)return;const{type:h,add:m}=A;if(h==="leftClick"&&m){const g=(m==null?void 0:m.classNames)??[],w=Object.keys(this._hasClassDivAndPos);for(let p=0;p<w.length;p++){const u=w[p];let f=this._hasClassDivAndPos[u];m&&m.mouseRelativePos&&m.mouseRelativePos[0]>=f[0]&&m.mouseRelativePos[0]<=f[2]&&m.mouseRelativePos[1]>=f[1]&&m.mouseRelativePos[1]<=f[3]&&g.push(u)}m.classNames=g}t.widgetEvent.emit({type:h,add:m})})),this.d(t.calcFlyToParamEvent.don(()=>{Lt(y,B.id)})),this.d(t.calcFlyInParamEvent.don(()=>{const A=o.getCurrentCameraInfo();if(!A)return;const{position:h,rotation:m}=A;t.flyInParam={position:h,rotation:m,flyDuration:1}})),this.d(t.smoothMoveEvent.don((A,h)=>{zA(y,B.id,A,h)})),this.d(t.smoothMoveWithRotationEvent.don((A,h,m)=>{GA(y,B.id,A,h,m)})),this.d(t.smoothMoveOnGroundEvent.don((A,h,m,g)=>{jA(y,B.id,A,h,g,m)})),this.d(t.smoothMoveWithRotationOnGroundEvent.don((A,h,m,g,w)=>{WA(y,B.id,A,h,m,g,w)})),this.d(t.flyToEvent.don((A,h)=>{B.flyTo(A)})),this.d(t.flyInEvent.don(A=>{B.flyIn(A)}))}};z(Xr,"type",Xr.register("ESUeViewer",j.ESGeoDiv.type,Xr));let Po=Xr;const Yr=class Yr extends De{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.flyToFeatureIndexEvent.don((y,B)=>{o.callUeFunc({f:"flyToFeatureIndex",p:{id:e.id,index:y,duration:B}})})),this.d(e.flyToFeatureEvent.don((y,B,A)=>{o.callUeFunc({f:"flyToFeature",p:{id:e.id,key:y,value:B,duration:A}})}))}};z(Yr,"type",Yr.register("ESUeViewer",j.ESGeoJson.type,Yr));let xo=Yr;const $r=class $r extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z($r,"type",$r.register("ESUeViewer",j.ESGeoLineString.type,$r));let Jn=$r;const Zr=class Zr extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Zr,"type",Zr.register("ESUeViewer",j.ESGeoRectangle.type,Zr));let Oo=Zr;const qr=class qr extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(qr,"type",qr.register("ESUeViewer",j.ESGeoWater.type,qr));let Mo=qr;const Pt=class Pt extends de{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.setNodePositionEvent.don((y,B)=>{Rs(o,e.id,y,B)})),this.d(e.setNodeRotationEvent.don((y,B)=>{ks(o,e.id,y,B)})),this.d(e.setNodeScaleEvent.don((y,B)=>{Ks(o,e.id,y,B)}))}};z(Pt,"forceUeUpdateProps",[...de.forceUeUpdateProps,"url"]),z(Pt,"propValFuncs",{...de.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e),czmMaximumScale:null,czmMinimumPixelSize:null,czmNativeScale:null,czmColor:null}),z(Pt,"type",Pt.register("ESUeViewer",j.ESGltfModel.type,Pt));let Ho=Pt;const eA=class eA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(eA,"type",eA.register("ESUeViewer",j.ESHeightMeasurement.type,eA));let Lo=eA;const tA=class tA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=async(A,h,m,g)=>{const{viewer:w}=A;if(!w){console.error("AIMoveTo: ueViewer.viewer is undefined");return}const p=await w.callUeFunc({f:"AIMoveTo",p:{id:h,Destination:m,Time:g}});return p.error&&console.error("AIMoveTo:",p.error),p};this.d(e.aiMoveToEvent.don((A,h)=>{y(t,e.id,A,h)}));const B=async(A,h)=>{const{viewer:m}=A;if(!m){console.error("StopAIMove: ueViewer.viewer is undefined");return}const g=await m.callUeFunc({f:"StopAIMove",p:{id:h}});return g.error&&console.error("StopAIMove:",g.error),g};this.d(e.stopAIMoveEvent.don(()=>{B(t,e.id)}))}};z(tA,"type",tA.register("ESUeViewer",j.ESHuman.type,tA));let Do=tA;const xt=class xt extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.anchor=[.5,1]}};z(xt,"type",xt.register("ESUeViewer",j.ESImageLabel.type,xt)),z(xt,"forceUeUpdateProps",[...$e.forceUeUpdateProps,"url"]),z(xt,"propValFuncs",{...$e.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e)});let Ro=xt;const rA=class rA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(rA,"type",rA.register("ESUeViewer",j.ESLevelRuntimeModel.type,rA));let ko=rA;const AA=class AA extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(AA,"type",AA.register("ESUeViewer",j.ESLocalCircle.type,AA));let Ko=AA;const nA=class nA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(nA,"type",nA.register("ESUeViewer",j.ESLocalPolygonZ.type,nA));let No=nA;const iA=class iA extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(iA,"type",iA.register("ESUeViewer",j.ESLocalRectangle.type,iA));let Vo=iA;const oA=class oA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(oA,"type",oA.register("ESUeViewer",j.ESLocalSkyBox.type,oA));let Go=oA;const sA=class sA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(sA,"type",sA.register("ESUeViewer",j.ESLocationMeasurement.type,sA));let jo=sA;const aA=class aA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(aA,"type",aA.register("ESUeViewer",j.ESPipeFence.type,aA));let Wo=aA;const cA=class cA extends Jn{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(cA,"type",cA.register("ESUeViewer",j.ESPipeline.type,cA));let zo=cA;const lA=class lA extends ZA{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.highlightFeatureEvent.don(y=>{const B=typeof y=="number"?y.toString():y;Ms(o,e.id,B)})),this.d(e.highlightFeatureAndFlyToEvent.don((y,B,A,h)=>{const m=typeof y=="number"?y.toString():y;Hs(o,e.id,m,h??1)})),this.d(e.setLayerVisibleEvent.don((y,B)=>{let A="";typeof B!="string"?A=JSON.stringify(B):A=B,Ls(o,e.id,A)})),this.d(e.setLayerColorEvent.don((y,B)=>{let A="";typeof B!="string"?A=JSON.stringify(B):A=B,Ds(o,e.id,A)}))}};z(lA,"type",lA.register("ESUeViewer",j.ESPipeserTileset.type,lA));let Jo=lA;const uA=class uA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(uA,"type",uA.register("ESUeViewer",j.ESPit.type,uA));let Xo=uA;const dA=class dA extends $e{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.ad(e.getInitialStyleEvent.don(async()=>{try{const y=await o.callUeFunc({f:"GetInitialStyle",p:{id:e.id}});y.error!=""&&console.error("getInitialStyleEvent:",y.error),e.initialStyle.value=structuredClone(y.re)}catch(y){console.error("getInitialStyleEvent:",y),e.initialStyle.value=void 0}}))}};z(dA,"type",dA.register("ESUeViewer",j.ESPoi2D.type,dA));let Yo=dA;const fA=class fA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(fA,"type",fA.register("ESUeViewer",j.ESPoi3D.type,fA));let $o=fA;const Ot=class Ot extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Ot,"type",Ot.register("ESUeViewer",j.ESPoiTileset.type,Ot)),z(Ot,"forceUeUpdateProps",[...De.forceUeUpdateProps,"url"]),z(Ot,"propValFuncs",{...De.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(e):(e.url=j.ESSceneObject.context.getStrFromEnv(e.url),e)});let Zo=Ot;const hA=class hA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(hA,"type",hA.register("ESUeViewer",j.ESPolygonFence.type,hA));let qo=hA;const pA=class pA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(pA,"type",pA.register("ESUeViewer",j.ESPolygonFlattenedPlane.type,pA));let es=pA;const gA=class gA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(gA,"type",gA.register("ESUeViewer",j.ESPolygonWithHole.type,gA));let ts=gA;const vA=class vA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(()=>{e.ids=[]}),this.d(e.highlightInner3DtilesetEvent.don(y=>{y.highlight=!0})),this.d(e.removeHighlightInner3DtilesetEvent.don(y=>{y.highlight=!1}));{const y=h=>{h=h.toLocaleLowerCase();let m=[255,255,255,1];if(h.startsWith("#")){if(h.length===4){let g=parseInt(h[1]+h[1],16),w=parseInt(h[2]+h[2],16),p=parseInt(h[3]+h[3],16);m=[g,w,p,1]}else if(h.length===7){let g=parseInt(h.substring(1,3),16),w=parseInt(h.substring(3,5),16),p=parseInt(h.substring(5,7),16);m=[g,w,p,1]}}else if(h.startsWith("rgba")){let g=h.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]),f=parseFloat(g[4]);m=[w,p,u,f]}}else if(h.startsWith("rgb")){let g=h.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]);m=[w,p,u,1]}}else console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");return[m[0]/255,m[1]/255,m[2]/255,m[3]]},B=()=>{const h=e.layerConfig;if(!h)return;const m=[];h.forEach(g=>{m.push({condition:[{field:"layer",op:"==",value:g.layer},{field:"dataset",op:"==",value:g.dataset}],color:y(g.value.color??"rgb(255,255,255)"),show:g.value.visible})}),e.setFeatureStyle(m)};B();const A=this.dv(V.createNextAnimateFrameEvent(e.layerConfigChanged));this.d(A.don(()=>{B()}))}}};z(vA,"type",vA.register("ESUeViewer",j.ESRtsTileset.type,vA));let rs=vA;const yA=class yA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(e.addTreesEvent.don(y=>{j.addTreesCallFunc(t,e.id,y)})),this.d(e.removeAllTreesEvent.don(()=>{j.removeAllTreesCallFunc(t,e.id)})),this.d(e.updateTreeParamsEvent.don(y=>{j.updateTreeParamsCallFunc(t,e.id,y)})),this.d(e.cutDownTreesEvent.don((y,B)=>{j.cutDownTreesCallFunc(t,e.id,y,B)})),this.d(e.growthSimulationEvent.don((y,B,A)=>{j.growthSimulationCallFunc(t,e.id,y,B,A)}))}};z(yA,"type",yA.register("ESUeViewer",j.ESSeparateFoliage.type,yA));let As=yA;const mA=class mA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(mA,"type",mA.register("ESUeViewer",j.ESSubmergingAnalysis.type,mA));let ns=mA;const wA=class wA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.stopEvent.don(()=>{o.callUeFunc({f:"Stop",p:{id:e.id}})}))}};z(wA,"type",wA.register("ESUeViewer",j.ESSunshineAnalysis.type,wA));let is=wA;const BA=class BA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})}))}};z(BA,"type",BA.register("ESUeViewer",j.ESSurfaceAreaMeasurement.type,BA));let os=BA;const CA=class CA extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(CA,"type",CA.register("ESUeViewer",j.ESTextLabel.type,CA));let ss=CA;const qt=class qt extends $e{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.callFunctionEvent.don(async(y,B)=>{const A=await ti(o,e.id,y,B);e.__callFunctionResultEvent.emit(A)}))}};z(qt,"type",qt.register("ESUeViewer",j.ESUEWidget.type,qt)),z(qt,"propValFuncs",{...$e.propValFuncs,info:e=>JSON.stringify(e??{})});let as=qt;const Hu=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"未搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是场景原有的,而是新建的,无法绑定";case 4:return"搜索到ActorTag对应的Actor是地形或3DTileset,无法绑定";default:return"未知错误"}},Py=v=>{switch(v){case 0:return"创建成功";case 1:return"未找到对应的资源,无法创建";case 2:return"Id与场景中现有的ActorTag重复,创建后可能出现问题,创建失败";default:return"未知错误"}},bA=class bA extends j.EngineObject{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn(`${e.id} UeESUnrealActor viewer is undefined!`);return}this.d(()=>{qn(o,e.id)});const y=async()=>{g()||await o.callUeFunc({f:"update",p:{id:e.id,name:e.name,show:e.show,rotation:e.rotation,flyToParam:e.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:e.flyInParam??j.ESVisualObject.defaults.flyInParam,highlight:e.highlight,collision:e.collision,scale:e.scale,minVisibleDistance:e.minVisibleDistance,maxVisibleDistance:e.maxVisibleDistance}})},B=this.dv(V.createNextAnimateFrameEvent(e.showChanged,e.nameChanged,e.rotationChanged,e.flyToParamChanged,e.flyInParamChanged,e.highlightChanged,e.collisionChanged,e.scaleChanged,e.minVisibleDistanceChanged,e.maxVisibleDistanceChanged));this.d(B.don(y)),this.d(e.flushEvent.don(()=>B.flush()));let A,h;const m=async()=>{g()||(await o.callUeFunc({f:"update",p:{id:e.id,position:e.position}}),(t.debug??!1)&&console.log(`updatePostion:${e.position},actorTag:${e.actorTag},actorClass:${e.actorClass}`))},g=()=>!A&&!h?(console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`),!0):!1,w=async()=>{const{id:u}=e,f=await t.unBindActorByID(u);f&&f.error!==""&&console.warn(`${e.id} UeESUnrealActor UnBindActorByID: ${f.error}`),A=void 0;const c=await o.callUeFunc({f:"destroy",p:{id:u}});if(c&&c.error!==""){console.warn(`${e.id} UeESUnrealActor DestroyActorByID: ${c.error}`);return}h=void 0},p=this.dv(V.react({type:"ActorClass",actorClass:"default"}));{const u=this.dv(V.createNextAnimateFrameEvent(e.actorClassChanged,e.actorTagChanged)),f=async()=>{e.actorTag!==""?p.value={type:"ActorTag",actorTag:e.actorTag}:p.value={type:"ActorClass",actorClass:e.actorClass===""?"default":e.actorClass}};f(),this.d(u.don(f)),this.d(e.flushEvent.don(()=>u.flush()))}{const u=this.dv(V.createProcessingFromAsyncFunc(async c=>{if(await c.promise(w()),p.value.type==="ActorTag"){const{actorTag:a}=p.value;await c.promise(w());try{e.lastActorStatus="null";const n=await c.promise(t.bindActorByTag(e.id,a));if(!n)return;if(n.error!==""){console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${n.error}`);return}if(n.re.type===0)e.lastActorStatus="bound",A=a;else if(n.re.type===1)e.lastActorStatus="bound",A=a,console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${Hu(n.re.type)}`);else{A=void 0,console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${a}, ${Hu(n.re.type)}`);return}}catch(n){console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${a}, ${n}`);return}}else if(p.value.type==="ActorClass"){const{actorClass:a}=p.value;try{const n=await c.promise(t.createActorByClass(e.id,a));if(!n)return;if(n.error!==""){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${a}, ${n.error}`);return}if(n.re.type===0)e.lastActorStatus="created",h=a;else{console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${a},${Py(n.re.type)}`);return}}catch(n){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${a}, ${JSON.stringify(n)}`);return}}await c.promise(y()),await c.promise(m())})),f=async()=>{u.restart()};f(),this.d(p.changed.don(f))}this.d(e.positionChanged.don(m)),this.d(e.callFunctionEvent.don(async(u,f)=>{if(g()){e.__callFunctionResultEvent.emit(void 0);return}const c=await ti(o,e.id,u,f);e.__callFunctionResultEvent.emit(c)})),this.d(e.smoothMoveEvent.don((u,f)=>{g()||zA(o,e.id,u,f)})),this.d(e.smoothMoveWithRotationEvent.don((u,f,c)=>{g()||GA(o,e.id,u,f,c)})),this.d(e.smoothMoveOnGroundEvent.don((u,f,c,a)=>{g()||jA(o,e.id,u,f,a,c)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((u,f,c,a,n)=>{g()||WA(o,e.id,u,f,c,a,n)})),this.d(e.automaticLandingEvent.don(u=>{if(g())return;const f=[e.position[0],e.position[1]];t.getHeightByLonLat(e.position[0],e.position[1],"Visibility").then(c=>{c!==null&&(e.position=[...f,c],e.collision=u)})})),this.d(e.flyToEvent.don(async(u,f)=>{if(g())return;const c=await Ht(o,e.id,u);let a="over";c===void 0?a="error":c.endType===0?a="over":c.endType===1&&(a="cancelled"),e.flyOverEvent.emit(f,a,t)})),this.d(e.calcFlyToParamEvent.don(()=>{g()||Lt(o,e.id)})),this.d(e.calcFlyInParamEvent.don(async()=>{if(!t.actived)return;const u=await t.getCurrentCameraInfo();if(!u)return;const{position:f,rotation:c}=u;e.flyInParam={position:f,rotation:c,flyDuration:1}})),this.d(t.propChanged.don(u=>{g()||u.objId===e.id&&Object.keys(u.props).forEach(f=>{const c=u.props[f]===null?void 0:u.props[f];e[f]=c})}))}};z(bA,"type",bA.register("ESUeViewer",j.ESUnrealActor.type,bA));let cs=bA;const _A=class _A extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(_A,"type",_A.register("ESUeViewer",j.ESVideoFusion.type,_A));let ls=_A;const EA=class EA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(EA,"type",EA.register("ESUeViewer",j.ESViewShed.type,EA));let us=EA;const FA=class FA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};z(FA,"type",FA.register("ESUeViewer",j.ESVisibilityAnalysis.type,FA));let ds=FA;const QA=class QA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.ad(V.track([e,"volume"],[e,"cutAndFillVolume"])),this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.clearEvent.don(()=>{o.callUeFunc({f:"Clear",p:{id:e.id}})}))}};z(QA,"type",QA.register("ESUeViewer",j.ESVolumeMeasurement.type,QA));let fs=QA;const er=class er extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(er,"type",er.register("ESUeViewer",j.ESWidget.type,er)),z(er,"propValFuncs",{...$e.propValFuncs,info:e=>JSON.stringify(e??{})});let hs=er;const SA=class SA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.poi.actorTag=e.human.id,e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8],this.d(e.poiOffsetHeightChanged.don(()=>{e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8]})),this.d(()=>{e.poi.actorTag=""})}};z(SA,"type",SA.register("ESUeViewer",j.ESHumanPoi.type,SA));let ps=SA;j.ESSceneObject.context.getStrFromEnv(j.ESNavigator.defaults.imgUrl);const UA=class UA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),this.dispose(V.track([y,"show"],[e,"show"])),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){super(),this._subContainer=A;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g));{const u=async()=>{const f=await t.getCurrentCameraInfo(),c=f==null?void 0:f.position,n=[...f==null?void 0:f.rotation];n[0]=360,t.flyIn(c,n)};g.addEventListener("click",u),g.style.cursor="pointer",this.dispose(()=>g.removeEventListener("click",u))}{const u=()=>{g.style.width=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`,g.style.height=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`};u(),e.dispose(e.cssSizeChanged.disposableOn(u))}g.style.position="fixed";{const u=()=>{g.style.top=`${e.cssPosition?e.cssPosition[0]:j.ESNavigator.defaults.cssPosition[0]}px`,g.style.right=`${e.cssPosition?e.cssPosition[1]:j.ESNavigator.defaults.cssPosition[1]}px`};u(),e.dispose(e.cssPositionChanged.disposableOn(u))}g.style.transition=" right 0.4s linear",g.style.cursor="pointer";const w=document.createElement("div");g.appendChild(w),this.dispose(()=>g.removeChild(w)),w.style.width="100%",w.style.height="100%",w.style.position="relative";const p=document.createElement("img");w.appendChild(p),this.dispose(()=>w.removeChild(p)),p.style.width="100%",p.style.height="100%",p.style.border="none";{const u=()=>p.src=e.imgUrl;u(),e.dispose(e.imgUrlChanged.disposableOn(u))}{const u=()=>{const n=-t.getCurrentCameraInfo().rotation[0];p.style.transform=`rotate(${n}deg)`};let f;const c=async()=>{u(),e.show?(g.style.display="block",f=setInterval(()=>{u()},1e3)):(g.style.display="none",clearInterval(f))};this.dispose(e.showChanged.disposableOn(c)),c(),this.dispose(()=>clearInterval(f))}p.style.transformOrigin="50% 50%"}}}};z(UA,"type",UA.register("ESUeViewer",j.ESNavigator.type,UA));let gs=UA;const Mt=class Mt extends Pe{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}{const y=()=>{let B=e.materialMode==="blue"?"multipleArrows":e.materialMode==="purple"?"singleArrow":e.materialMode;o.callUeFunc({f:"update",p:{id:e.id,materialMode:B}})};this.dispose(e.materialModeChanged.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}}};z(Mt,"type",Mt.register("ESUeViewer",j.ESPath.type,Mt)),z(Mt,"forceUeUpdateProps",[...Pe.forceUeUpdateProps]),z(Mt,"propValFuncs",{...Pe.propValFuncs,materialMode:null});let vs=Mt;async function xy(v){navigator.clipboard.writeText(v).then(function(){console.log("复制成功")},function(e){console.log("复制失败")})}const TA=class TA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){if(super(),this._subContainer=A,!m||!(m instanceof it))return;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g)),g.style.width="100%",g.style.position="absolute",g.style.height=`${j.ESViewerStatusBar.defaults.height}px`,g.style.left="0",g.style.bottom="0",g.style.color="#fff",g.style.padding="0 20px 0 0",g.style.boxSizing="border-box",g.style.lineHeight=`${j.ESViewerStatusBar.defaults.height}px`,g.style.zIndex="100",g.style.alignContent="center",g.style.justifyContent="space-between";const w=document.createElement("span");g.appendChild(w),this.dispose(()=>g.removeChild(w));const p=document.createElement("span");w.appendChild(p),this.dispose(()=>w.removeChild(p));const u=document.createElement("span");w.appendChild(u),u.addEventListener("dblclick",function(){let c=u.innerHTML;c.startsWith("鼠标位置")&&(c=c.slice(5)),xy(c)}),u.style.cursor="pointer",this.dispose(()=>w.removeChild(u));const f=document.createElement("span");g.appendChild(f),this.dispose(()=>g.removeChild(f));{const c=()=>{g.style.height=(e.height??j.ESViewerStatusBar.defaults.height)+"px",g.style.lineHeight=(e.height??j.ESViewerStatusBar.defaults.height)+"px"};this.dispose(e.heightChanged.disposableOn(c)),c()}{const c=()=>{g.style.fontSize=(e.fontSize??j.ESViewerStatusBar.defaults.fontSize)+"px"};this.dispose(e.fontSizeChanged.disposableOn(c)),c()}{const c=()=>{e.bgColor?g.style.background=`rgba(${e.bgColor[0]*255},${e.bgColor[1]*255},${e.bgColor[2]*255},${e.bgColor[3]})`:g.style.background=`rgba(${j.ESViewerStatusBar.defaults.bgColor[0]},${j.ESViewerStatusBar.defaults.bgColor[1]},${j.ESViewerStatusBar.defaults.bgColor[2]},${j.ESViewerStatusBar.defaults.bgColor[3]})`};this.dispose(e.bgColorChanged.disposableOn(c)),c()}m.getVersion().then(c=>{c&&(f.innerText=`Ue 版本 : ${c[0]} `)}).catch(c=>{console.log(c)});{const c=()=>{let s="",r="";s+=`帧率:${m.getFPS().toFixed(0)}FPS`,p.innerText=s;const i=t.getCurrentCameraInfo();s+=` 经度: ${i.position[0].toFixed(5)}° 纬度: ${i.position[1].toFixed(5)}° 高度: ${i.position[2].toFixed(2)}米 偏航角: ${i.rotation[0].toFixed(2)}° 俯仰角: ${i.rotation[1].toFixed(2)}° 翻滚角:${i.rotation[2].toFixed(2)}° `,p.innerText=s,t.pick().then(l=>{if(l){const{pickResult:d}=l;if(d&&d.position){const{position:C}=d;r+=`鼠标位置:${C[0].toFixed(5)}° ${C[1].toFixed(5)}° ${C[2].toFixed(2)}m`}else r+="暂时无法获取鼠标位置...";u.innerText=r}}).catch(l=>{console.log(l)})};let a;const n=async()=>{c(),e.show?(g.style.display="flex",a=setInterval(()=>{c()},1e3)):(g.style.display="none",clearInterval(a))};this.dispose(e.showChanged.disposableOn(n)),n(),this.dispose(()=>clearInterval(a))}}}}};z(TA,"type",TA.register("ESUeViewer",j.ESViewerStatusBar.type,TA));let ys=TA;const IA=class IA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(IA,"type",IA.register("ESUeViewer",j.ESGaussianSplatting.type,IA));let ms=IA;const PA=class PA extends _t{constructor(t,o){super(t,o);z(this,"_es3DTileset",this.dv(new j.ES3DTileset(`${this.sceneObject.id}_ES3DTileset`)));if(!o.viewer){console.warn("viewer is undefined!");return}t.mainClass=this._es3DTileset;{const B=this._es3DTileset;o.add(B),this.dispose(()=>o.delete(B)),this.d(V.track([B,"allowPicking"],[t,"allowPicking"])),this.d(V.track([B,"collision"],[t,"collision"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.track([B,"url"],[t,"url"])),this.d(V.track([B,"actorTag"],[t,"actorTag"])),this.d(V.track([B,"materialMode"],[t,"materialMode"])),this.d(V.track([B,"highlight"],[t,"highlight"])),this.d(V.track([B,"maximumScreenSpaceError"],[t,"maximumScreenSpaceError"])),this.d(V.track([B,"highlightID"],[t,"highlightID"])),this.d(V.track([B,"highlightColor"],[t,"highlightColor"])),this.d(V.bind([B,"offset"],[t,"offset"])),this.d(V.bind([B,"rotation"],[t,"rotation"])),this.d(V.track([B,"czmImageBasedLightingFactor"],[t,"czmImageBasedLightingFactor"])),this.d(V.track([B,"czmLuminanceAtZenith"],[t,"czmLuminanceAtZenith"])),this.d(V.track([B,"czmMaximumMemoryUsage"],[t,"czmMaximumMemoryUsage"])),this.d(V.track([B,"czmClassificationType"],[t,"czmClassificationType"])),this.d(V.track([B,"czmStyleJson"],[t,"czmStyleJson"])),this.d(V.track([B,"czmBackFaceCulling"],[t,"czmBackFaceCulling"])),this.d(V.track([B,"czmDebugShowBoundingVolume"],[t,"czmDebugShowBoundingVolume"])),this.d(V.track([B,"czmDebugShowContentBoundingVolume"],[t,"czmDebugShowContentBoundingVolume"])),this.d(V.track([B,"colorBlendMode"],[t,"colorBlendMode"])),this.d(V.track([B,"cacheBytes"],[t,"cacheBytes"])),this.d(V.track([B,"clippingPlaneEnabled"],[t,"clippingPlaneEnabled"])),this.d(V.track([B,"unionClippingRegions"],[t,"unionClippingRegions"])),this.d(V.track([B,"clippingPlaneEdgeColor"],[t,"clippingPlaneEdgeColor"])),this.d(V.track([B,"clippingPlaneEdgeWidth"],[t,"clippingPlaneEdgeWidth"])),this.d(V.track([B,"materialParams"],[t,"materialParams"])),this.d(V.bind([B,"supportEdit"],[t,"supportEdit"])),this.d(V.bind([B,"clippingPlanesId"],[t,"clippingPlanesId"])),this.d(V.bind([B,"clippingPlaneIds"],[t,"clippingPlaneIds"])),this.d(V.bind([B,"flattenedPlaneId"],[t,"flattenedPlaneId"])),this.d(V.bind([B,"flattenedPlaneEnabled"],[t,"flattenedPlaneEnabled"])),this.d(V.bind([B,"clippingPlaneId"],[t,"clippingPlaneId"])),this.d(V.bind([B,"excavateId"],[t,"excavateId"]))}{const B=this._es3DTileset;this.d(t.refreshTilesetEvent.don(()=>{B.refreshTileset()})),this.d(t.highlightFeatureEvent.don((...A)=>{B.highlightFeature(...A)})),this.d(t.highlightFeatureAndFlyToEvent.don((...A)=>{B.highlightFeatureAndFlyTo(...A)})),this.d(t.setFeatureColorEvent.don((...A)=>{B.setFeatureColor(...A)})),this.d(t.setFeatureVisableEvent.don((...A)=>{B.setFeatureVisable(...A)})),this.d(t.resetFeatureStyleEvent.don((...A)=>{B.resetFeatureStyle(...A)})),this.d(t.flyInEvent.don((...A)=>{B.flyIn(A[0])})),this.d(t.flyToEvent.don((...A)=>{B.flyTo(A[0])})),this.d(t.calcFlyToParamEvent.don((...A)=>{B.calcFlyToParam(...A)})),this.d(t.calcFlyInParamEvent.don((...A)=>{B.calcFlyInParam(...A)}))}{const B=this._es3DTileset;this.d(B.tilesetReady.don(A=>{t.tilesetReady.emit(A)})),this.d(B.pickedEvent.don(A=>{A.assign({sceneObject:t}),t.pickedEvent.emit(A)}))}{const B=()=>{this.es3DTileset.show=t.show};B(),this.d(t.showChanged.don(()=>{B()}))}}get es3DTileset(){return this._es3DTileset}};z(PA,"type",PA.register("ESUeViewer",j.ESRtsFeatureEditing.type,PA));let ws=PA;const xA=class xA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(xA,"type",xA.register("ESUeViewer",j.ESMsTileset.type,xA));let Bs=xA;const OA=class OA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{o.callUeFunc({f:"update",p:{id:e.id,height:e.height??j.ESGeoExtrudedPolygon.defaults.height,extrudedHeight:e.extrudedHeight??j.ESGeoExtrudedPolygon.defaults.extrudedHeight,perPositionHeight:e.perPositionHeight??j.ESGeoExtrudedPolygon.defaults.perPositionHeight}})},B=this.disposeVar(V.createNextAnimateFrameEvent(e.heightChanged,e.extrudedHeightChanged,e.perPositionHeightChanged));this.dispose(B.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}};z(OA,"type",OA.register("ESUeViewer",j.ESGeoExtrudedPolygon.type,OA));let Cs=OA;const MA=class MA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(MA,"type",MA.register("ESUeViewer",j.ESStaticMesh.type,MA));let bs=MA;const HA=class HA extends Pe{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.clearEvent.don(()=>{o.callUeFunc({f:"Clear",p:{id:e.id}})}))}};z(HA,"type",HA.register("ESUeViewer",j.ESSkylineAnalysis.type,HA));let _s=HA;J.copyright=void 0;try{const v="earthsdk3-ue",e="3.0.8-beta.2",t="2025-06-16T01:35:09.000Z",o="北京西部世界科技有限公司",y="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",B="bb8010020199b408171f0ba5e38ed63dd6584fbc",h=((Date.now()-1750037709e3)/36e5).toFixed(1),m=`%c🌏 ${v}%c ${e}.${B.slice(0,8)}.${t} (距今${h}个小时)
340
340
  %c${y?y+`
341
341
  `:""}当前网站正在使用${v},此软件版权归${o}所有
342
- `;J.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","2c16adee48b619a92f127aabca6fc7c39430d81d")},get info(){return m},get date(){return"2025-06-12T03:13:53.000Z"},get author(){return"suplyang"},get version(){return"3.0.8-beta.1"},get name(){return"earthsdk3-ue"},get commitId(){return"2c16adee48b619a92f127aabca6fc7c39430d81d"},print(g=!1){!g&&window._xe2_no_copy_print||console.info(this.info,`
342
+ `;J.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","bb8010020199b408171f0ba5e38ed63dd6584fbc")},get info(){return m},get date(){return"2025-06-16T01:35:09.000Z"},get author(){return"suplyang"},get version(){return"3.0.8-beta.2"},get name(){return"earthsdk3-ue"},get commitId(){return"bb8010020199b408171f0ba5e38ed63dd6584fbc"},print(g=!1){!g&&window._xe2_no_copy_print||console.info(this.info,`
343
343
  font-size: 18px;
344
344
  font-weight: 1000;
345
345
  line-height: 1;