earthsdk3-cesium 3.5.0-beta.15 → 3.5.0-beta.16

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.
Files changed (20) hide show
  1. package/dist/earthsdk3-cesium.iife.js +5 -5
  2. package/dist/earthsdk3-cesium.js +9 -9
  3. package/dist/earthsdk3-cesium.umd.cjs +5 -5
  4. package/dist/types/CzmObjects/general/CzmESPolygonWithHole/index.d.ts.map +1 -1
  5. package/dist/types/CzmObjects/general/CzmESSignalTransmission/XbsjPolyline/XbsjPolylineGeometry.d.ts +3 -0
  6. package/dist/types/CzmObjects/general/CzmESSignalTransmission/XbsjPolyline/xbsjCreateODLinesPrimitive.d.ts +29 -0
  7. package/dist/types/CzmObjects/general/CzmESVideoFusion/XbsjCameraVideo/XbsjCameraVideo.d.ts +18 -0
  8. package/dist/types/CzmObjects/general/CzmESViewShed/XbsjViewshed/XbsjViewshed.d.ts +16 -0
  9. package/dist/types/ESCesiumViewer/BackGroundImage/BackGroundImage.d.ts +5 -0
  10. package/dist/types/ESCesiumViewer/LocalSkyBox/SkyAtmosphere.d.ts +14 -0
  11. package/dist/types/ESCesiumViewer/initCesiumViewer/GaussianSplattingExtend/GaussianSplatPipelineStage.d.ts +12 -0
  12. package/dist/types/ESCesiumViewer/initCesiumViewer/GaussianSplattingExtend/GaussianSplatTexturePipelineStage.d.ts +11 -0
  13. package/dist/types/ESCesiumViewer/initCesiumViewer/fixGoogleEarth/cesiumFixGoogleEarth.d.ts +1 -0
  14. package/dist/types/ESObjects/ESGeHistoryImagery/index.d.ts +1 -0
  15. package/dist/types/ESObjects/ESGeHistoryImagery/index.d.ts.map +1 -1
  16. package/dist/types/__declares/cesium.d.ts +417 -0
  17. package/dist/types/utils/czmUtils/todo/generateCartesianArc/czm/generateCartesianArc.d.ts +8 -0
  18. package/dist/types/utils/generalUtils/geoPolylineToBezierSpline/bezierSpline/index.d.ts +37 -0
  19. package/dist/types/utils/generalUtils/geoPolylineToBezierSpline/bezierSpline/lib/spline.d.ts +62 -0
  20. package/package.json +1 -1
@@ -2590,7 +2590,7 @@ ${Px}
2590
2590
  // out_FragColor = vec4(texture(u_gradientMap, vec2(a, .5)).rgb, (a + .1)*4.);
2591
2591
  out_FragColor = vec4(texture(u_gradientMap, vec2(a, .5)).rgb, a);
2592
2592
  }
2593
- `,r.uniformMap={u_gradientMap:{type:"texture",id:"5d45a4a4-4f5d-4424-aea5-181de75bd13b"},u_stripMinMaxValue:[0,1],u_ratio:0};let s=this.disposeVar(c.react(void 0));{const l=this.disposeVar(c.createProcessingFromAsyncFunc(async A=>{s.value=void 0;const h=e.url??c.ESDataMesh.defaults.url;if(!h)return;await A.promise(c.sleep(200));const f=(e.maxTime??23)|0;s.value=await A.promise(WU(c.ESSceneObject.context.getStrFromEnv(typeof h=="string"?h:h.url),f+1))}));l.start();const u=this.disposeVar(c.createNextAnimateFrameEvent(e.urlChanged,e.maxTimeChanged));this.dispose(u.disposableOn(()=>l.restart()))}{class l{constructor(h){this._buffer=h}[Symbol.iterator](){return jU(this._buffer)}}const u=()=>{if(!s.value)return;const{vertexBuffer:A,propBuffers:h,indexBuffer:f}=s.value,{minPos:d,maxPos:p}=c.getMinMaxCorner(new l(A));r.setLocalAxisedBoundingBox(d,p);const g=(e.maxTime??23)|0;let v=(e.currentTime??c.ESDataMesh.defaults.currentTime)/g;v=v<0?0:v>1?1:v;const y=v*g;let m=v*g|0,b=y-m;if(m>=g&&(m=g-1,b=1),!Number.isFinite(b)){console.error("!Number.isFinite(rr)");debugger;return}if(r.indexTypedArray=f,!h[m]||!h[m+1]){console.error("!propBuffers[i] || !propBuffers[i + 1]");debugger}r.attributes={a_position:{typedArray:A,componentsPerAttribute:3},a_prop:{typedArray:h[m],componentsPerAttribute:3},a_prop2:{typedArray:h[m+1],componentsPerAttribute:3}},r.uniformMap={u_gradientMap:{type:"texture",id:`${a.id}`},u_stripMinMaxValue:[e.minPropValue??c.ESDataMesh.defaults.minPropValue,e.maxPropValue??c.ESDataMesh.defaults.maxPropValue],u_ratio:b}};u(),this.dispose(e.maxTimeChanged.disposableOn(u)),this.dispose(e.currentTimeChanged.disposableOn(u)),this.dispose(e.minPropValueChanged.disposableOn(u)),this.dispose(e.maxPropValueChanged.disposableOn(u)),this.dispose(s.changed.disposableOn(u))}}get czmCustomPrimitive(){return this._czmCustomPrimitive}get czmTexture(){return this._czmTexture}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmCustomPrimitive:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):(wn(r,o,i,e,a,!0),!0):!1}};L(Gu,"type",Gu.register("ESCesiumViewer",c.ESDataMesh.type,Gu));let Jm=Gu;const ls=class ls extends c.Destroyable{constructor(e,i){super();L(this,"_pickedEvent",this.disposeVar(new c.Event));L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_heading",this.disposeVar(c.react(0)));L(this,"_textFunc",this.disposeVar(c.react(void 0)));const o=this;{const s=()=>{if(this.positions&&this.positions.length>=2){let u=0;this.arcType===void 0||this.arcType==="GEODESIC"?u=c.geoHeading(this.positions[0],this.positions[1]):this.arcType==="RHUMB"?u=c.geoRhumbHeading(this.positions[0],this.positions[1]):this.arcType==="NONE"?u=c.geoHeading(this.positions[0],this.positions[1]):console.warn(`未知的arcType: ${this.arcType},导致距离无法计算!`),this._heading.value=this.angleMode==="-180~180"?c.clampN180_180(u):c.clamp0_360(u)}};s();const l=this.disposeVar(c.createNextAnimateFrameEvent(this.positionsChanged,this.arcTypeChanged,this.angleModeChanged));this.dispose(l.disposableOn(s))}const r=this.disposeVar(new Ye(e,i));r.loop=!1,this.dispose(c.track([r,"allowPicking"],[o,"allowPicking"])),this.dispose(c.bind([r,"arcType"],[o,"arcType"])),this.dispose(c.bind([r,"color"],[o,"color"])),this.dispose(c.bind([r,"dashLength"],[o,"dashLength"])),this.dispose(c.bind([r,"dashPattern"],[o,"dashPattern"])),this.dispose(c.bind([r,"gapColor"],[o,"gapColor"])),this.dispose(c.bind([r,"hasArrow"],[o,"hasArrow"])),this.dispose(c.bind([r,"hasDash"],[o,"hasDash"])),this.dispose(c.bind([r,"positions"],[o,"positions"])),this.dispose(c.bind([r,"show"],[o,"show"])),this.dispose(c.bind([r,"width"],[o,"width"])),this.dispose(c.bind([r,"depthTest"],[o,"depthTest"])),this.dispose(c.bind([r,"ground"],[o,"strokeGround"])),this.dispose(o.flyToEvent.disposableOn(s=>{e.actived&&r.flyTo(s)}));const a=this.disposeVar(new wt(e,i));this.dispose(c.bind([a,"shadowDom"],[o,"shadowDom"])),this.dispose(c.bind([a,"cssAllInitial"],[o,"cssAllInitial"])),this.dispose(c.bind([a,"show"],[o,"show"]));{const s=()=>{o.positions&&o.positions.length>=2?a.position=o.positions[1]:a.position=void 0};s(),this.dispose(o.positionsChanged.disposableOn(s))}{const s=()=>{const{heading:u}=o,A=(o.textFunc??ls.defaultTextFunc_度格式)(u);a.innerHTML=xo(`方向: ${A}`,24)};s();const l=this.disposeVar(c.createNextAnimateFrameEvent(o.headingChanged,o.textFuncChanged));this.dispose(l.disposableOn(s))}this.ad(a.pickedEvent.don(s=>{Gi(s)===0&&this.pickedEvent.emit(s)}))}get pickedEvent(){return this._pickedEvent}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get heading(){return this._heading.value}get headingChanged(){return this._heading.changed}get textFunc(){return this._textFunc.value}set textFunc(e){this._textFunc.value=e}get textFuncChanged(){return this._textFunc.changed}};L(ls,"defaultTextFunc_度格式",e=>`${e.toFixed(5)}°`),L(ls,"defaultTextFunc_度分格式",e=>`${nl(e,!0)}`),L(ls,"defaultTextFunc_度分秒格式",e=>`${nl(e,!1)}`),L(ls,"defaults",{positions:[]});let jo=ls;(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,positions:c.reactPositions(void 0),width:8,color:c.reactArray([1,1,1,1]),hasDash:!1,gapColor:c.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!0,arcType:"GEODESIC",depthTest:!1,shadowDom:!1,cssAllInitial:!1,angleMode:"-180~180",strokeGround:!1})})(jo||(jo={})),c.extendClassProps(jo.prototype,jo.createDefaultProps);const Wu=class Wu extends on{constructor(e,i){super(e,i);L(this,"_czmDirectionMeasurement");if(this._czmDirectionMeasurement=this.disposeVar(new jo(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}const r=this._czmDirectionMeasurement;r.angleMode="0~360",this.dispose(c.track([r,"show"],[e,"show"])),this.dispose(c.track([r,"allowPicking"],[e,"allowPicking"])),this.dispose(c.bind([r,"positions"],[e,"points"])),this.dispose(c.bind([r,"strokeGround"],[e,"strokeGround"]));{const a=()=>{if(e.stroked)r.width=e.strokeWidth;else{r.width=0;return}r.width=e.strokeWidth,r.color=e.strokeColor;const u=e.strokeMaterial??"normal";u==="hasDash"?(r.hasDash=!0,r.hasArrow=!1):u==="hasArrow"?(r.hasDash=!1,r.hasArrow=!0):u==="normal"?(r.hasDash=!1,r.hasArrow=!1):(r.hasDash=!1,r.hasArrow=!0);const A=e.strokeStyle;if(A.material==="hasDash"&&A.materialParams)try{const h=A.materialParams;Reflect.has(h,"gapColor")&&(r.gapColor=h.gapColor??[0,0,0,0]),Reflect.has(h,"dashLength")&&(r.dashLength=h.dashLength),Reflect.has(h,"dashPattern")&&(r.dashPattern=h.dashPattern)}catch(h){console.error(h)}else r.gapColor=[0,0,0,0],r.dashLength=0,r.dashPattern=0};a();const s=this.disposeVar(c.createNextAnimateFrameEvent(e.strokeStyleChanged,e.strokedChanged));this.dispose(s.disposableOn(a))}this.dispose(r.pickedEvent.disposableOn(a=>{Gi(a)===0&&(e.allowPicking??!1)&&e.pickedEvent.emit(a)}))}get czmDirectionMeasurement(){return this._czmDirectionMeasurement}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmDirectionMeasurement:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}flyIn(e,i){const{sceneObject:o,czmViewer:r,czmDirectionMeasurement:a}=this;return r.actived?o.flyInParam?super.flyIn(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(Wu,"type",Wu.register("ESCesiumViewer",c.ESDirectionMeasurement.type,Wu));let eg=Wu;class Aa extends c.Destroyable{constructor(e,i){super();L(this,"_pickedEvent",this.disposeVar(new c.Event));L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_distances",this.disposeVar(c.reactArray([])));const o=async()=>{this.strokeGround&&e.viewer?this._distances.value=await B0(e.viewer,this.positions??[]):this._distances.value=c.getDistancesFromPositions(this.positions??[],this.arcType)};o();const r=this.disposeVar(c.createNextAnimateFrameEvent(this.positionsChanged,this.arcTypeChanged,this.strokeGroundChanged));this.dispose(r.disposableOn(o));const a=this.disposeVar(new Ye(e,i));a.loop=!1,this.dispose(c.track([a,"allowPicking"],[this,"allowPicking"])),this.dispose(c.bind([a,"arcType"],[this,"arcType"])),this.dispose(c.bind([a,"color"],[this,"color"])),this.dispose(c.bind([a,"dashLength"],[this,"dashLength"])),this.dispose(c.bind([a,"dashPattern"],[this,"dashPattern"])),this.dispose(c.bind([a,"gapColor"],[this,"gapColor"])),this.dispose(c.bind([a,"hasArrow"],[this,"hasArrow"])),this.dispose(c.bind([a,"hasDash"],[this,"hasDash"])),this.dispose(c.bind([a,"positions"],[this,"positions"])),this.dispose(c.bind([a,"show"],[this,"show"])),this.dispose(c.bind([a,"width"],[this,"width"])),this.dispose(c.bind([a,"depthTest"],[this,"depthTest"])),this.dispose(c.bind([a,"ground"],[this,"strokeGround"])),this.dispose(this.flyToEvent.disposableOn(s=>{e.actived&&a.flyTo(s)}));{const s=[],l=()=>{for(let A of s)A.destroy();s.length=0};this.dispose(l);const u=()=>{if(l(),!this.positions)return;if(this.positions.length>0&&this.distances.length>0){const h=Bp("起点",this.positions[0],e,i);h.dispose(c.track([h,"show"],[this,"show"])),h.dispose(c.track([h,"shadowDom"],[this,"shadowDom"])),h.dispose(c.track([h,"cssAllInitial"],[this,"cssAllInitial"])),s.push(h)}const A=this.distances.length;for(let h=0;h<A;++h){const f=this.distances[h],d=this.positions[h+1],p=Bp(`长度: ${Ih(f)}`,d,e,i);p.dispose(c.track([p,"show"],[this,"show"])),p.dispose(c.track([p,"shadowDom"],[this,"shadowDom"])),p.dispose(c.track([p,"cssAllInitial"],[this,"cssAllInitial"])),this.ad(p.pickedEvent.don(g=>{Gi(g)===0&&this.pickedEvent.emit(g)})),s.push(p)}};u(),this.dispose(this.distancesChanged.disposableOn(()=>c.inOrderRunning(u)))}}get pickedEvent(){return this._pickedEvent}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get distances(){return this._distances.value}get distancesChanged(){return this._distances.changed}}L(Aa,"defaults",{positions:[]}),(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,positions:c.reactPositions(void 0),width:1,color:c.reactArray([1,1,1,1]),hasDash:!1,gapColor:c.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!1,arcType:"GEODESIC",depthTest:!1,shadowDom:!1,cssAllInitial:!1,strokeGround:!1})})(Aa||(Aa={})),c.extendClassProps(Aa.prototype,Aa.createDefaultProps);const ju=class ju extends on{constructor(e,i){super(e,i);L(this,"_geoPolyline");if(this._geoPolyline=this.disposeVar(new Ye(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}const r=this._geoPolyline;this.dispose(c.track([r,"allowPicking"],[e,"allowPicking"])),this.dispose(c.bind([r,"positions"],[e,"points"])),this.dispose(c.track([r,"width"],[e,"strokeWidth"])),this.dispose(c.track([r,"color"],[e,"strokeColor"])),this.dispose(c.track([r,"ground"],[e,"strokeGround"]));{const a=()=>{r.show=e.show&&e.stroked};a();const s=this.disposeVar(c.createNextAnimateFrameEvent(e.showChanged,e.strokedChanged));this.dispose(s.disposableOn(a))}}get geoPolyline(){return this._geoPolyline}flyTo(e,i){const{sceneObject:o,czmViewer:r,geoPolyline:a}=this;return r.actived?o.flyToParam||o.flyInParam?(super.flyTo(e,i),!0):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}flyIn(e,i){const{sceneObject:o,czmViewer:r,geoPolyline:a}=this;return r.actived?o.flyInParam?(super.flyIn(e,i),!0):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(ju,"type",ju.register("ESCesiumViewer",c.ESGeoLineString.type,ju));let fa=ju;const qu=class qu extends fa{constructor(e,i){super(e,i);L(this,"_czmDistanceMeasurement");if(this._czmDistanceMeasurement=this.disposeVar(new Aa(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}const{czmDistanceMeasurement:r}=this;this.dispose(c.track([r,"show"],[e,"show"])),this.dispose(c.track([r,"allowPicking"],[e,"allowPicking"])),this.dispose(c.bind([r,"positions"],[e,"points"])),this.dispose(c.bind([r,"strokeGround"],[e,"strokeGround"]));{const a=()=>{if(e.stroked)r.width=e.strokeWidth;else{r.width=0;return}r.width=e.strokeWidth,r.color=e.strokeColor;const u=e.strokeMaterial??"normal";u==="hasDash"?(r.hasDash=!0,r.hasArrow=!1):u==="hasArrow"?(r.hasDash=!1,r.hasArrow=!0):(r.hasDash=!1,r.hasArrow=!1);const A=e.strokeStyle;if(A.material==="hasDash"&&A.materialParams)try{const h=A.materialParams;Reflect.has(h,"gapColor")&&(r.gapColor=h.gapColor??[0,0,0,0]),Reflect.has(h,"dashLength")&&(r.dashLength=h.dashLength),Reflect.has(h,"dashPattern")&&(r.dashPattern=h.dashPattern)}catch(h){console.error(h)}else r.gapColor=[0,0,0,0],r.dashLength=0,r.dashPattern=0};a();const s=this.disposeVar(c.createNextAnimateFrameEvent(e.strokeStyleChanged,e.strokedChanged));this.dispose(s.disposableOn(a))}this.dispose(r.pickedEvent.disposableOn(a=>{Gi(a)===0&&(e.allowPicking??!1)&&e.pickedEvent.emit(a)}))}get czmDistanceMeasurement(){return this._czmDistanceMeasurement}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmDistanceMeasurement:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}flyIn(e,i){const{sceneObject:o,czmViewer:r,czmDistanceMeasurement:a}=this;return r.actived?o.flyInParam?super.flyIn(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(qu,"type",qu.register("ESCesiumViewer",c.ESDistanceMeasurement.type,qu));let tg=qu;class pa extends c.Destroyable{constructor(e,i){super();L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_id",this.disposeVar(c.react(c.createGuid())));i&&(this.id=i)}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get id(){return this._id.value}set id(e){this._id.value=e}get idChanged(){return this._id.changed}}(t=>{t.createDefaultProps=()=>({enabled:!0,showHelper:!0,allowPicking:!1,positions:c.reactPositions(void 0),reverse:!1,edgeColor:c.reactArray([1,1,1,1]),edgeWidth:2})})(pa||(pa={})),c.extendClassProps(pa.prototype,pa.createDefaultProps);class qU extends c.Destroyable{constructor(n,e){super(),this._czmESExcavate=n,this._eS3DTileset=e;for(let i=0;i<this._eS3DTileset.excavateId.length;i++){const o=this._eS3DTileset.excavateId[i];c.ESSceneObject.getSceneObjById(o)||this._eS3DTileset.excavateId.splice(i,1)}this._eS3DTileset.excavateId=[...this._eS3DTileset.excavateId,this._czmESExcavate.czmPolygonClipping.id],this.dispose(()=>{this._eS3DTileset.excavateId=[...this._eS3DTileset.excavateId.filter(i=>i!==this._czmESExcavate.czmPolygonClipping.id)]})}}class KU extends c.Destroyable{constructor(n){if(super(),this._czmESExcavate=n,!!this._czmESExcavate.viewer){for(let e=0;e<this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId.length;e++){const i=this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId[e];c.ESSceneObject.getSceneObjById(i)||this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId.splice(e,1)}this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId=[...this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId,this._czmESExcavate.czmPolygonClipping.id],this.dispose(()=>{this._czmESExcavate.viewer&&(this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId=[...this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId.filter(e=>e!==this._czmESExcavate.czmPolygonClipping.id)])})}}}const Ku=class Ku extends Un{constructor(e,i){super(e,i);L(this,"_czmPolygonClipping");L(this,"_tilesSceneObjectWithId");this._czmPolygonClipping=this.ad(new pa(i,e.id)),this._tilesSceneObjectWithId=this.disposeVar(new c.ESSceneObjectWithId);const o=this.ad(c.react(this.sceneObject.targetID));if(this.ad(e.targetIDChanged.don(()=>{const s=c.ESSceneObject.getSceneObject(e.targetID);o.value=s?(s.components.main??s).id:""})),this.dispose(c.track([this._tilesSceneObjectWithId,"id"],o)),this.disposeVar(c.createNextAnimateFrameEvent(this.tilesSceneObjectWithId.sceneObjectChanged,this.sceneObject.showChanged)),!i.viewer)return;const a=this._czmPolygonClipping;a.showHelper=!1,this.dispose(c.bind([a,"positions"],[e,"points"])),this.dispose(c.track([a,"allowPicking"],[e,"allowPicking"]));{const s=()=>{a.reverse=e.mode!=="in"};s(),this.dispose(e.modeChanged.disposableOn(s))}c.registerCreatedEventUpdate(this,e,()=>{const s=this.disposeVar(c.createNextAnimateFrameEvent(this.tilesSceneObjectWithId.sceneObjectChanged,this.sceneObject.showChanged));this.disposeVar(new c.ObjResettingWithEvent(s,()=>{const{sceneObject:l,id:u}=this.tilesSceneObjectWithId;if(this.sceneObject.show)return u===""?new KU(this):!l||!(l instanceof c.ES3DTileset)?void 0:new qU(this,l)}))})}get czmPolygonClipping(){return this._czmPolygonClipping}get tilesSceneObjectWithId(){return this._tilesSceneObjectWithId}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmPolygonClipping:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(Ku,"type",Ku.register("ESCesiumViewer",c.ESExcavate.type,Ku));let ng=Ku;const Zu=class Zu extends He{constructor(e,i){super(e,i);L(this,"_czmFireParticleSystem");if(this._czmFireParticleSystem=this.disposeVar(new wi(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}const r=this._czmFireParticleSystem;r.endColor=[1,1,0,.4],r.startColor=[1,0,0,.5],r.particleLife=1,r.emissionRate=30,r.lifetime=1,r.imageSize=[1,1],r.emitter={type:"CircleEmitter",radius:.1},r.sizeInMeters=!0;{const a=()=>{r.startScale=10*(e.scale[0]>0?e.scale[0]:1),r.endScale=5*(e.scale[0]>0?e.scale[0]:1),r.minimumSpeed=10*(e.scale[0]>0?e.scale[0]:1),r.maximumSpeed=15*(e.scale[0]>0?e.scale[0]:1)};a(),this.ad(e.scaleChanged.don(a))}this.dispose(c.bind([r,"position"],[e,"position"])),this.dispose(c.track([r,"translation"],[e,"translation"])),this.dispose(Mt([r,"rotation"],[e,"rotation"])),this.dispose(c.track([r,"show"],[e,"show"])),this.dispose(c.track([r,"image"],[e,"image"]))}get czmFireParticleSystem(){return this._czmFireParticleSystem}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmFireParticleSystem:a}=this;if(!r.actived)return!1;if(o.flyToParam||o.flyInParam)return super.flyTo(e,i);{const s=a.position;return Fe(r.viewer,s,100,Hn,e),o.flyOverEvent.emit(i,"over",r),!0}}};L(Zu,"type",Zu.register("ESCesiumViewer",c.ESFireParticleSystem.type,Zu));let ig=Zu;class da extends c.Destroyable{constructor(e,i){super();L(this,"_geoPath");L(this,"_geoPolyline");L(this,"_geoCanvasPointPoi");L(this,"_player");L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_currentDistance",this.disposeVar(c.react(0)));L(this,"_ratio",this.disposeVar(c.PlayerProperty.createPlayingRatio([this,"currentTime"],[this,"duration"])));this._geoPath=this.disposeVar(new c.ESPathImpl),this._geoPolyline=this.disposeVar(new Ye(e,i)),this._geoCanvasPointPoi=this.disposeVar(new Er(e,i)),this._player=this.disposeVar(new c.Player),this.dispose(c.bind([this._geoPolyline,"positions"],[this,"positions"])),this.dispose(c.track([this._geoPolyline,"width"],[this,"width"])),this.dispose(c.track([this._geoPolyline,"ground"],[this,"ground"])),this.dispose(c.track([this._geoPolyline,"color"],[this,"color"])),this.dispose(c.track([this._geoPolyline,"hasDash"],[this,"hasDash"])),this.dispose(c.track([this._geoPolyline,"gapColor"],[this,"gapColor"])),this.dispose(c.track([this._geoPolyline,"dashLength"],[this,"dashLength"])),this.dispose(c.track([this._geoPolyline,"dashPattern"],[this,"dashPattern"])),this.dispose(c.track([this._geoPolyline,"hasArrow"],[this,"hasArrow"])),this.dispose(c.track([this._geoPolyline,"depthTest"],[this,"depthTest"])),this.dispose(c.track([this._geoPolyline,"arcType"],[this,"arcType"])),this.dispose(c.track([this._geoPolyline,"show"],[this,"show"])),this.dispose(c.track([this._geoPolyline,"show"],[this,"polylineShow"])),this.dispose(c.track([this._geoPolyline,"allowPicking"],[this,"allowPicking"])),this.dispose(c.track([this._geoPath,"currentTime"],[this,"currentDistance"])),this.dispose(c.track([this._geoPath,"leadTime"],[this,"leadTime"])),this.dispose(c.track([this._geoPath,"trailTime"],[this,"trailTime"])),this.dispose(c.track([this._geoPath,"show"],[this,"show"])),this.dispose(c.track([this._geoPath,"currentPoiShow"],[this,"currentPoiShow"]));{const o=()=>{this._geoCanvasPointPoi.show=(this.show??!0)&&(this.currentPoiShow??!0)};o(),this.dispose(this.showChanged.disposableOn(o)),this.dispose(this.currentPoiShowChanged.disposableOn(o))}this.dispose(c.track([this._geoCanvasPointPoi,"position"],[this,"currentPosition"]));{const o=()=>{if(this.positions){const a=this.granularity*Math.PI/180,s=mp(this.positions,this.arcType??"GEODESIC",a);if(s){this._geoPath.timePosRots=s.timePosRots,this.rotationRadius.some(l=>l>0)?(this._geoPath.addAroundPoints(this.rotationRadius,!0),this._geoPath.computeRotIfUndefinedUsingLerp(!0),this._geoPath.rotLerpMode="Lerp"):(this._geoPath.computeRotIfUndefinedUsingPrevLine(!0),this._geoPath.rotLerpMode=this.rotLerpMode);return}}this._geoPath.timePosRots=[]};o();const r=this.disposeVar(c.createNextAnimateFrameEvent(this.positionsChanged,this.arcTypeChanged,this.granularityChanged,this.rotationRadiusChanged,this.rotLerpModeChanged));this.dispose(r.disposableOn(o))}{const o=()=>{if((this._player.duration??3e3)<=0){this.currentDistance=0;return}const r=this.totalDistance*((this._player.currentTime??0)/(this._player.duration??3e3));Math.abs(r-this.currentDistance)>.01&&(this.currentDistance=r)};o(),this.dispose(this._player.currentTimeChanged.disposableOn(o))}{const o=()=>{if(this.totalDistance<=0){this._player.currentTime=0;return}const r=this.currentDistance/this.totalDistance*(this.duration??3e3);Math.abs(r-(this._player.currentTime??0))>.01&&(this._player.currentTime=r)};o(),this.dispose(this.currentDistanceChanged.disposableOn(o))}this.dispose(c.bind([this._player,"loop"],[this,"loop"])),this.dispose(c.bind([this._player,"currentTime"],[this,"currentTime"])),this.dispose(c.bind([this._player,"duration"],[this,"duration"])),this.dispose(c.bind([this._player,"playing"],[this,"playing"])),this.dispose(c.bind([this._player,"speed"],[this,"speed"])),this.dispose(this._flyToEvent.disposableOn(o=>{this._geoPolyline.flyTo(o)}))}get geoPath(){return this._geoPath}get geoPolyline(){return this._geoPolyline}get geoCanvasPointPoi(){return this._geoCanvasPointPoi}get player(){return this._player}get currentInfo(){return this._geoPath.currentInfo}get currentInfoChanged(){return this._geoPath.currentInfoChanged}get currentIndex(){return this._geoPath.currentIndex}get currentIndexChanged(){return this._geoPath.currentIndexChanged}get currentPosition(){return this._geoPath.currentPosition}get currentPositionChanged(){return this._geoPath.currentPositionChanged}get currentRotation(){return this._geoPath.currentRotation}get currentRotationChanged(){return this._geoPath.currentRotationChanged}get accumDistances(){return this._geoPath.accumDistances}get accumDistancesChanged(){return this._geoPath.accumDistancesChanged}get totalDistance(){return this._geoPath.totalDistance}get totalDistanceChanged(){return this._geoPath.totalDistanceChanged}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}subPath(e,i){const o=this._geoPath.subPath(e,i);if(o)return o.map(r=>r[1])}get currentDistance(){return this._currentDistance.value}set currentDistance(e){this._currentDistance.value=e}get currentDistanceChanged(){return this._currentDistance.changed}get ratio(){return this._ratio.value}set ratio(e){this._ratio.value=e}get ratioChanged(){return this._ratio.changed}get timePosRots(){return this.geoPath.timePosRots}}(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,currentPoiShow:!0,polylineShow:!0,positions:c.reactPositions(void 0),width:1,ground:!1,color:c.reactArray([1,1,1,1]),hasDash:!1,gapColor:c.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!1,arcType:"GEODESIC",granularity:1,loop:!1,currentTime:0,duration:3e3,speed:1,playing:!1,depthTest:!1,leadTime:0,trailTime:0,rotationRadius:[0],rotLerpMode:"Next"})})(da||(da={})),c.extendClassProps(da.prototype,da.createDefaultProps);class jl extends c.Destroyable{constructor(e,i){super();L(this,"_geoPolylinePath");L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_currentDistance",this.disposeVar(c.react(0)));this._geoPolylinePath=this.disposeVar(new da(e,i)),this._geoPolylinePath.rotLerpMode="Lerp",this.dispose(c.bind([this._geoPolylinePath,"show"],[this,"show"])),this.dispose(c.bind([this._geoPolylinePath,"currentPoiShow"],[this,"currentPoiShow"])),this.dispose(c.bind([this._geoPolylinePath,"polylineShow"],[this,"polylineShow"])),this.dispose(c.bind([this._geoPolylinePath,"width"],[this,"width"])),this.dispose(c.bind([this._geoPolylinePath,"ground"],[this,"ground"])),this.dispose(c.bind([this._geoPolylinePath,"color"],[this,"color"])),this.dispose(c.bind([this._geoPolylinePath,"hasDash"],[this,"hasDash"])),this.dispose(c.bind([this._geoPolylinePath,"gapColor"],[this,"gapColor"])),this.dispose(c.bind([this._geoPolylinePath,"dashLength"],[this,"dashLength"])),this.dispose(c.bind([this._geoPolylinePath,"dashPattern"],[this,"dashPattern"])),this.dispose(c.bind([this._geoPolylinePath,"hasArrow"],[this,"hasArrow"])),this.dispose(c.bind([this._geoPolylinePath,"arcType"],[this,"arcType"])),this.dispose(c.bind([this._geoPolylinePath,"currentDistance"],[this,"currentDistance"])),this.dispose(c.bind([this._geoPolylinePath,"loop"],[this,"loop"])),this.dispose(c.bind([this._geoPolylinePath,"currentTime"],[this,"currentTime"])),this.dispose(c.bind([this._geoPolylinePath,"duration"],[this,"duration"])),this.dispose(c.bind([this._geoPolylinePath,"playing"],[this,"playing"])),this.dispose(c.bind([this._geoPolylinePath,"speed"],[this,"speed"])),this.dispose(c.bind([this._geoPolylinePath,"depthTest"],[this,"depthTest"])),this.dispose(c.track([this._geoPolylinePath,"leadTime"],[this,"leadTime"])),this.dispose(c.track([this._geoPolylinePath,"trailTime"],[this,"trailTime"])),this.dispose(c.track([this._geoPolylinePath,"allowPicking"],[this,"allowPicking"]));const o=this.disposeVar(c.createNextAnimateFrameEvent(this.positionsChanged,this.resolutionChanged,this.sharpnessChanged)),r=()=>{try{if(this.positions&&this.positions.length>=2){const a=Tp(this.positions,this.resolution,this.sharpness);this._geoPolylinePath.positions=a}else this._geoPolylinePath.positions=void 0}catch(a){console.error(a),this._geoPolylinePath.positions=void 0}};r(),this.dispose(o.disposableOn(r)),this.dispose(this._flyToEvent.disposableOn(a=>{this._geoPolylinePath.flyTo(a)}))}get geoPolylinePath(){return this._geoPolylinePath}get geoPath(){return this._geoPolylinePath.geoPath}get ratio(){return this._geoPolylinePath.ratio}set ratio(e){this._geoPolylinePath.ratio=e}get ratioChanged(){return this._geoPolylinePath.ratioChanged}get player(){return this._geoPolylinePath.player}get currentInfo(){return this._geoPolylinePath.currentInfo}get currentInfoChanged(){return this._geoPolylinePath.currentInfoChanged}get currentIndex(){return this._geoPolylinePath.currentIndex}get currentIndexChanged(){return this._geoPolylinePath.currentIndexChanged}get currentPosition(){return this._geoPolylinePath.currentPosition}get currentPositionChanged(){return this._geoPolylinePath.currentPositionChanged}get currentRotation(){return this._geoPolylinePath.currentRotation}get currentRotationChanged(){return this._geoPolylinePath.currentRotationChanged}get accumDistances(){return this._geoPolylinePath.accumDistances}get accumDistancesChanged(){return this._geoPolylinePath.accumDistances}get totalDistance(){return this._geoPolylinePath.totalDistance}get totalDistanceChanged(){return this._geoPolylinePath.totalDistanceChanged}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get currentDistance(){return this._currentDistance.value}set currentDistance(e){this._currentDistance.value=e}get currentDistanceChanged(){return this._currentDistance.changed}get timePosRots(){return this.geoPath.timePosRots}}(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,currentPoiShow:!0,polylineShow:!0,positions:c.reactPositions(void 0),width:1,ground:!1,color:c.reactArray([1,1,1,1]),hasDash:!1,gapColor:c.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!1,arcType:"GEODESIC",loop:!1,currentTime:0,duration:3e3,speed:1,playing:!1,resolution:1e3,sharpness:.85,depthTest:!1,leadTime:0,trailTime:0})})(jl||(jl={})),c.extendClassProps(jl.prototype,jl.createDefaultProps);const ZU=[["256",256],["512",512],["1024",1024]],$U=[["LEFT","LEFT"],["NONE","NONE"],["RIGHT","RIGHT"]],Tn=class Tn extends c.ESVisualObject{constructor(e){super(e);L(this,"_pickFeaturesEvent",this.dv(new c.Event));this.ad(c.bind([this,"czmSplitDirection"],[this,"splitDirection"])),this.ad(c.bind([this,"czmAlpha"],[this,"opacity"]))}get pickFeaturesEvent(){return this._pickFeaturesEvent}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new c.StringProperty([this,"accessToken"],"令牌",Tn.defaults.accessToken),new c.Number4Property([this,"rectangle"],"矩形范围",Tn.defaults.rectangle),new c.JsonProperty([this,"url"],"服务地址",Tn.defaults.url),new c.JsonProperty([this,"style"],"样式配置",Tn.defaults.style),new c.NumberProperty([this,"zIndex"],"层级序号",Tn.defaults.zIndex),new c.EnumProperty([this,"tileSize"],ZU,"瓦片大小",256),new c.NumberSliderProperty([this,"maximumLevel"],1,[1,24],"最大层级",Tn.defaults.maximumLevel),new c.NumberSliderProperty([this,"minimumLevel"],1,[0,24],"最小层级",Tn.defaults.minimumLevel),new c.EnumProperty([this,"scheme"],[["tms","tms"],["xyz","xyz"]],"影像类型",Tn.defaults.scheme)],more:[...e.more,new c.GroupProperty([],"通用","通用"),new c.EnumProperty([this,"splitDirection"],$U,"splitDirection","NONE"),new c.GroupProperty([],"czm","czm"),new c.NumberProperty([this,"czmAlpha"],"透明度"),new c.NumberProperty([this,"czmBrightness"],"亮度"),new c.NumberProperty([this,"czmContrast"],"对比度"),new c.NumberProperty([this,"czmHue"],"色相"),new c.NumberProperty([this,"czmSaturation"],"饱和度"),new c.NumberProperty([this,"czmGamma"],"伽马值")]}}};L(Tn,"createDefaultProps",()=>({...c.ESVisualObject.createDefaultProps(),rectangle:c.reactJsonWithUndefined([-180,-90,180,90]),url:c.reactJson(""),zIndex:0,accessToken:"",tileSize:256,maximumLevel:18,minimumLevel:0,style:c.reactArrayWithUndefined([]),scheme:c.react("tms"),czmSplitDirection:"NONE",czmAlpha:1,opacity:1,splitDirection:"NONE",czmBrightness:1,czmContrast:1,czmHue:0,czmSaturation:1,czmGamma:1})),L(Tn,"type",Tn.register("ESMVTLayer",Tn,{chsName:"矢量瓦片图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"用于加载矢量瓦片图层。"}));let ff=Tn;const XU=t=>{const n=[{maxAlt:25e7,level:0},{maxAlt:25e6,level:1},{maxAlt:9e6,level:2},{maxAlt:7e6,level:3},{maxAlt:44e5,level:4},{maxAlt:2e6,level:5},{maxAlt:1e6,level:6},{maxAlt:493977,level:7},{maxAlt:218047,level:8},{maxAlt:124961,level:9},{maxAlt:56110,level:10},{maxAlt:4e4,level:11},{maxAlt:13222,level:12},{maxAlt:7e3,level:13},{maxAlt:4e3,level:14},{maxAlt:2500,level:15},{maxAlt:1500,level:16},{maxAlt:600,level:17},{maxAlt:250,level:18},{maxAlt:150,level:19},{maxAlt:50,level:20}];for(const{maxAlt:e,level:i}of n)if(t>=e)return i;return 20},YU=async(t,n,e)=>(await fetch(`http://abc.gggis.com:13001/xyzinfo/${e}/${t}/${n}`)).json(),JU=async t=>{var u;const n=(u=t.getCurrentCameraInfo())==null?void 0:u.position;if(!n)return;const e=n[0],i=n[1],o=n[2],r=XU(o);let a=Math.floor((e+180)/360*Math.pow(2,r+1)),s=Math.floor((90-i)/180*Math.pow(2,r));return await YU(a,s,r)};class eO extends c.Destroyable{constructor(n,e,i){super();const o=async()=>{const a=await JU(n);e.datesEvent.emit(a,n)};o();let r;r=setInterval(()=>{o()},3e3),this.d(()=>r&&clearInterval(r));{const a=()=>{const s=e.currentDate?e.currentDate:0;i.url=`http://abc.gggis.com:13001/timetile/tms/${s}/tilemapresource.xml`};a(),this.d(e.currentDateChanged.don(a))}}}const Wa=class Wa extends c.ESVisualObject{constructor(e){super(e);L(this,"_esImageryLayer",this.dv(new c.ESImageryLayer));L(this,"_datesEvent",this.dv(new c.Event));const i=this._esImageryLayer;this.d(this.components.disposableAdd(i)),i.zIndex=1,i.minimumLevel=1,i.maximumLevel=18,this.d(c.track([i,"show"],[this,"show"])),this.d(c.track([i,"zIndex"],[this,"zIndex"])),this.d(c.track([i,"rectangle"],[this,"rectangle"])),this.d(c.bind([i,"flyInParam"],[this,"flyInParam"])),this.d(c.bind([i,"flyToParam"],[this,"flyToParam"])),this.registerAttachedObjectForContainer(o=>new eO(o,this,i)),this.d(this.flyInEvent.don(o=>{i.flyIn(o)})),this.d(this.flyToEvent.don(o=>{i.flyTo(o)})),this.d(this.calcFlyToParamEvent.don(()=>{i.calcFlyToParam()})),this.d(this.calcFlyInParamEvent.don(()=>{i.calcFlyInParam()}))}get esImageryLayer(){return this._esImageryLayer}get datesEvent(){return this._datesEvent}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new c.StringProperty([this,"currentDate"],"时间","0"),new c.NumberProperty([this,"zIndex"],"层级",0),new c.Number4Property([this,"rectangle"],"矩形范围",[-180,-90,180,90])]}}};L(Wa,"createDefaultProps",()=>({...c.ESVisualObject.createDefaultProps(),currentDate:"",zIndex:0,rectangle:c.reactArray([-180,-90,180,90])})),L(Wa,"type",Wa.register("ESGeHistoryImagery",Wa,{chsName:"谷歌历史影像",tags:["ESObjects","_ES_Impl_UE"],description:"ESGeHistoryImagery"}));let pf=Wa;const Tx=`async (dataSource, viewer) => {
2593
+ `,r.uniformMap={u_gradientMap:{type:"texture",id:"5d45a4a4-4f5d-4424-aea5-181de75bd13b"},u_stripMinMaxValue:[0,1],u_ratio:0};let s=this.disposeVar(c.react(void 0));{const l=this.disposeVar(c.createProcessingFromAsyncFunc(async A=>{s.value=void 0;const h=e.url??c.ESDataMesh.defaults.url;if(!h)return;await A.promise(c.sleep(200));const f=(e.maxTime??23)|0;s.value=await A.promise(WU(c.ESSceneObject.context.getStrFromEnv(typeof h=="string"?h:h.url),f+1))}));l.start();const u=this.disposeVar(c.createNextAnimateFrameEvent(e.urlChanged,e.maxTimeChanged));this.dispose(u.disposableOn(()=>l.restart()))}{class l{constructor(h){this._buffer=h}[Symbol.iterator](){return jU(this._buffer)}}const u=()=>{if(!s.value)return;const{vertexBuffer:A,propBuffers:h,indexBuffer:f}=s.value,{minPos:d,maxPos:p}=c.getMinMaxCorner(new l(A));r.setLocalAxisedBoundingBox(d,p);const g=(e.maxTime??23)|0;let v=(e.currentTime??c.ESDataMesh.defaults.currentTime)/g;v=v<0?0:v>1?1:v;const y=v*g;let m=v*g|0,b=y-m;if(m>=g&&(m=g-1,b=1),!Number.isFinite(b)){console.error("!Number.isFinite(rr)");debugger;return}if(r.indexTypedArray=f,!h[m]||!h[m+1]){console.error("!propBuffers[i] || !propBuffers[i + 1]");debugger}r.attributes={a_position:{typedArray:A,componentsPerAttribute:3},a_prop:{typedArray:h[m],componentsPerAttribute:3},a_prop2:{typedArray:h[m+1],componentsPerAttribute:3}},r.uniformMap={u_gradientMap:{type:"texture",id:`${a.id}`},u_stripMinMaxValue:[e.minPropValue??c.ESDataMesh.defaults.minPropValue,e.maxPropValue??c.ESDataMesh.defaults.maxPropValue],u_ratio:b}};u(),this.dispose(e.maxTimeChanged.disposableOn(u)),this.dispose(e.currentTimeChanged.disposableOn(u)),this.dispose(e.minPropValueChanged.disposableOn(u)),this.dispose(e.maxPropValueChanged.disposableOn(u)),this.dispose(s.changed.disposableOn(u))}}get czmCustomPrimitive(){return this._czmCustomPrimitive}get czmTexture(){return this._czmTexture}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmCustomPrimitive:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):(wn(r,o,i,e,a,!0),!0):!1}};L(Gu,"type",Gu.register("ESCesiumViewer",c.ESDataMesh.type,Gu));let Jm=Gu;const ls=class ls extends c.Destroyable{constructor(e,i){super();L(this,"_pickedEvent",this.disposeVar(new c.Event));L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_heading",this.disposeVar(c.react(0)));L(this,"_textFunc",this.disposeVar(c.react(void 0)));const o=this;{const s=()=>{if(this.positions&&this.positions.length>=2){let u=0;this.arcType===void 0||this.arcType==="GEODESIC"?u=c.geoHeading(this.positions[0],this.positions[1]):this.arcType==="RHUMB"?u=c.geoRhumbHeading(this.positions[0],this.positions[1]):this.arcType==="NONE"?u=c.geoHeading(this.positions[0],this.positions[1]):console.warn(`未知的arcType: ${this.arcType},导致距离无法计算!`),this._heading.value=this.angleMode==="-180~180"?c.clampN180_180(u):c.clamp0_360(u)}};s();const l=this.disposeVar(c.createNextAnimateFrameEvent(this.positionsChanged,this.arcTypeChanged,this.angleModeChanged));this.dispose(l.disposableOn(s))}const r=this.disposeVar(new Ye(e,i));r.loop=!1,this.dispose(c.track([r,"allowPicking"],[o,"allowPicking"])),this.dispose(c.bind([r,"arcType"],[o,"arcType"])),this.dispose(c.bind([r,"color"],[o,"color"])),this.dispose(c.bind([r,"dashLength"],[o,"dashLength"])),this.dispose(c.bind([r,"dashPattern"],[o,"dashPattern"])),this.dispose(c.bind([r,"gapColor"],[o,"gapColor"])),this.dispose(c.bind([r,"hasArrow"],[o,"hasArrow"])),this.dispose(c.bind([r,"hasDash"],[o,"hasDash"])),this.dispose(c.bind([r,"positions"],[o,"positions"])),this.dispose(c.bind([r,"show"],[o,"show"])),this.dispose(c.bind([r,"width"],[o,"width"])),this.dispose(c.bind([r,"depthTest"],[o,"depthTest"])),this.dispose(c.bind([r,"ground"],[o,"strokeGround"])),this.dispose(o.flyToEvent.disposableOn(s=>{e.actived&&r.flyTo(s)}));const a=this.disposeVar(new wt(e,i));this.dispose(c.bind([a,"shadowDom"],[o,"shadowDom"])),this.dispose(c.bind([a,"cssAllInitial"],[o,"cssAllInitial"])),this.dispose(c.bind([a,"show"],[o,"show"]));{const s=()=>{o.positions&&o.positions.length>=2?a.position=o.positions[1]:a.position=void 0};s(),this.dispose(o.positionsChanged.disposableOn(s))}{const s=()=>{const{heading:u}=o,A=(o.textFunc??ls.defaultTextFunc_度格式)(u);a.innerHTML=xo(`方向: ${A}`,24)};s();const l=this.disposeVar(c.createNextAnimateFrameEvent(o.headingChanged,o.textFuncChanged));this.dispose(l.disposableOn(s))}this.ad(a.pickedEvent.don(s=>{Gi(s)===0&&this.pickedEvent.emit(s)}))}get pickedEvent(){return this._pickedEvent}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get heading(){return this._heading.value}get headingChanged(){return this._heading.changed}get textFunc(){return this._textFunc.value}set textFunc(e){this._textFunc.value=e}get textFuncChanged(){return this._textFunc.changed}};L(ls,"defaultTextFunc_度格式",e=>`${e.toFixed(5)}°`),L(ls,"defaultTextFunc_度分格式",e=>`${nl(e,!0)}`),L(ls,"defaultTextFunc_度分秒格式",e=>`${nl(e,!1)}`),L(ls,"defaults",{positions:[]});let jo=ls;(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,positions:c.reactPositions(void 0),width:8,color:c.reactArray([1,1,1,1]),hasDash:!1,gapColor:c.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!0,arcType:"GEODESIC",depthTest:!1,shadowDom:!1,cssAllInitial:!1,angleMode:"-180~180",strokeGround:!1})})(jo||(jo={})),c.extendClassProps(jo.prototype,jo.createDefaultProps);const Wu=class Wu extends on{constructor(e,i){super(e,i);L(this,"_czmDirectionMeasurement");if(this._czmDirectionMeasurement=this.disposeVar(new jo(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}const r=this._czmDirectionMeasurement;r.angleMode="0~360",this.dispose(c.track([r,"show"],[e,"show"])),this.dispose(c.track([r,"allowPicking"],[e,"allowPicking"])),this.dispose(c.bind([r,"positions"],[e,"points"])),this.dispose(c.bind([r,"strokeGround"],[e,"strokeGround"]));{const a=()=>{if(e.stroked)r.width=e.strokeWidth;else{r.width=0;return}r.width=e.strokeWidth,r.color=e.strokeColor;const u=e.strokeMaterial??"normal";u==="hasDash"?(r.hasDash=!0,r.hasArrow=!1):u==="hasArrow"?(r.hasDash=!1,r.hasArrow=!0):u==="normal"?(r.hasDash=!1,r.hasArrow=!1):(r.hasDash=!1,r.hasArrow=!0);const A=e.strokeStyle;if(A.material==="hasDash"&&A.materialParams)try{const h=A.materialParams;Reflect.has(h,"gapColor")&&(r.gapColor=h.gapColor??[0,0,0,0]),Reflect.has(h,"dashLength")&&(r.dashLength=h.dashLength),Reflect.has(h,"dashPattern")&&(r.dashPattern=h.dashPattern)}catch(h){console.error(h)}else r.gapColor=[0,0,0,0],r.dashLength=0,r.dashPattern=0};a();const s=this.disposeVar(c.createNextAnimateFrameEvent(e.strokeStyleChanged,e.strokedChanged));this.dispose(s.disposableOn(a))}this.dispose(r.pickedEvent.disposableOn(a=>{Gi(a)===0&&(e.allowPicking??!1)&&e.pickedEvent.emit(a)}))}get czmDirectionMeasurement(){return this._czmDirectionMeasurement}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmDirectionMeasurement:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}flyIn(e,i){const{sceneObject:o,czmViewer:r,czmDirectionMeasurement:a}=this;return r.actived?o.flyInParam?super.flyIn(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(Wu,"type",Wu.register("ESCesiumViewer",c.ESDirectionMeasurement.type,Wu));let eg=Wu;class Aa extends c.Destroyable{constructor(e,i){super();L(this,"_pickedEvent",this.disposeVar(new c.Event));L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_distances",this.disposeVar(c.reactArray([])));const o=async()=>{this.strokeGround&&e.viewer?this._distances.value=await B0(e.viewer,this.positions??[]):this._distances.value=c.getDistancesFromPositions(this.positions??[],this.arcType)};o();const r=this.disposeVar(c.createNextAnimateFrameEvent(this.positionsChanged,this.arcTypeChanged,this.strokeGroundChanged));this.dispose(r.disposableOn(o));const a=this.disposeVar(new Ye(e,i));a.loop=!1,this.dispose(c.track([a,"allowPicking"],[this,"allowPicking"])),this.dispose(c.bind([a,"arcType"],[this,"arcType"])),this.dispose(c.bind([a,"color"],[this,"color"])),this.dispose(c.bind([a,"dashLength"],[this,"dashLength"])),this.dispose(c.bind([a,"dashPattern"],[this,"dashPattern"])),this.dispose(c.bind([a,"gapColor"],[this,"gapColor"])),this.dispose(c.bind([a,"hasArrow"],[this,"hasArrow"])),this.dispose(c.bind([a,"hasDash"],[this,"hasDash"])),this.dispose(c.bind([a,"positions"],[this,"positions"])),this.dispose(c.bind([a,"show"],[this,"show"])),this.dispose(c.bind([a,"width"],[this,"width"])),this.dispose(c.bind([a,"depthTest"],[this,"depthTest"])),this.dispose(c.bind([a,"ground"],[this,"strokeGround"])),this.dispose(this.flyToEvent.disposableOn(s=>{e.actived&&a.flyTo(s)}));{const s=[],l=()=>{for(let A of s)A.destroy();s.length=0};this.dispose(l);const u=()=>{if(l(),!this.positions)return;if(this.positions.length>0&&this.distances.length>0){const h=Bp("起点",this.positions[0],e,i);h.dispose(c.track([h,"show"],[this,"show"])),h.dispose(c.track([h,"shadowDom"],[this,"shadowDom"])),h.dispose(c.track([h,"cssAllInitial"],[this,"cssAllInitial"])),s.push(h)}const A=this.distances.length;for(let h=0;h<A;++h){const f=this.distances[h],d=this.positions[h+1],p=Bp(`长度: ${Ih(f)}`,d,e,i);p.dispose(c.track([p,"show"],[this,"show"])),p.dispose(c.track([p,"shadowDom"],[this,"shadowDom"])),p.dispose(c.track([p,"cssAllInitial"],[this,"cssAllInitial"])),this.ad(p.pickedEvent.don(g=>{Gi(g)===0&&this.pickedEvent.emit(g)})),s.push(p)}};u(),this.dispose(this.distancesChanged.disposableOn(()=>c.inOrderRunning(u)))}}get pickedEvent(){return this._pickedEvent}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get distances(){return this._distances.value}get distancesChanged(){return this._distances.changed}}L(Aa,"defaults",{positions:[]}),(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,positions:c.reactPositions(void 0),width:1,color:c.reactArray([1,1,1,1]),hasDash:!1,gapColor:c.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!1,arcType:"GEODESIC",depthTest:!1,shadowDom:!1,cssAllInitial:!1,strokeGround:!1})})(Aa||(Aa={})),c.extendClassProps(Aa.prototype,Aa.createDefaultProps);const ju=class ju extends on{constructor(e,i){super(e,i);L(this,"_geoPolyline");if(this._geoPolyline=this.disposeVar(new Ye(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}const r=this._geoPolyline;this.dispose(c.track([r,"allowPicking"],[e,"allowPicking"])),this.dispose(c.bind([r,"positions"],[e,"points"])),this.dispose(c.track([r,"width"],[e,"strokeWidth"])),this.dispose(c.track([r,"color"],[e,"strokeColor"])),this.dispose(c.track([r,"ground"],[e,"strokeGround"]));{const a=()=>{r.show=e.show&&e.stroked};a();const s=this.disposeVar(c.createNextAnimateFrameEvent(e.showChanged,e.strokedChanged));this.dispose(s.disposableOn(a))}}get geoPolyline(){return this._geoPolyline}flyTo(e,i){const{sceneObject:o,czmViewer:r,geoPolyline:a}=this;return r.actived?o.flyToParam||o.flyInParam?(super.flyTo(e,i),!0):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}flyIn(e,i){const{sceneObject:o,czmViewer:r,geoPolyline:a}=this;return r.actived?o.flyInParam?(super.flyIn(e,i),!0):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(ju,"type",ju.register("ESCesiumViewer",c.ESGeoLineString.type,ju));let fa=ju;const qu=class qu extends fa{constructor(e,i){super(e,i);L(this,"_czmDistanceMeasurement");if(this._czmDistanceMeasurement=this.disposeVar(new Aa(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}const{czmDistanceMeasurement:r}=this;this.dispose(c.track([r,"show"],[e,"show"])),this.dispose(c.track([r,"allowPicking"],[e,"allowPicking"])),this.dispose(c.bind([r,"positions"],[e,"points"])),this.dispose(c.bind([r,"strokeGround"],[e,"strokeGround"]));{const a=()=>{if(e.stroked)r.width=e.strokeWidth;else{r.width=0;return}r.width=e.strokeWidth,r.color=e.strokeColor;const u=e.strokeMaterial??"normal";u==="hasDash"?(r.hasDash=!0,r.hasArrow=!1):u==="hasArrow"?(r.hasDash=!1,r.hasArrow=!0):(r.hasDash=!1,r.hasArrow=!1);const A=e.strokeStyle;if(A.material==="hasDash"&&A.materialParams)try{const h=A.materialParams;Reflect.has(h,"gapColor")&&(r.gapColor=h.gapColor??[0,0,0,0]),Reflect.has(h,"dashLength")&&(r.dashLength=h.dashLength),Reflect.has(h,"dashPattern")&&(r.dashPattern=h.dashPattern)}catch(h){console.error(h)}else r.gapColor=[0,0,0,0],r.dashLength=0,r.dashPattern=0};a();const s=this.disposeVar(c.createNextAnimateFrameEvent(e.strokeStyleChanged,e.strokedChanged));this.dispose(s.disposableOn(a))}this.dispose(r.pickedEvent.disposableOn(a=>{Gi(a)===0&&(e.allowPicking??!1)&&e.pickedEvent.emit(a)}))}get czmDistanceMeasurement(){return this._czmDistanceMeasurement}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmDistanceMeasurement:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}flyIn(e,i){const{sceneObject:o,czmViewer:r,czmDistanceMeasurement:a}=this;return r.actived?o.flyInParam?super.flyIn(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(qu,"type",qu.register("ESCesiumViewer",c.ESDistanceMeasurement.type,qu));let tg=qu;class pa extends c.Destroyable{constructor(e,i){super();L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_id",this.disposeVar(c.react(c.createGuid())));i&&(this.id=i)}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get id(){return this._id.value}set id(e){this._id.value=e}get idChanged(){return this._id.changed}}(t=>{t.createDefaultProps=()=>({enabled:!0,showHelper:!0,allowPicking:!1,positions:c.reactPositions(void 0),reverse:!1,edgeColor:c.reactArray([1,1,1,1]),edgeWidth:2})})(pa||(pa={})),c.extendClassProps(pa.prototype,pa.createDefaultProps);class qU extends c.Destroyable{constructor(n,e){super(),this._czmESExcavate=n,this._eS3DTileset=e;for(let i=0;i<this._eS3DTileset.excavateId.length;i++){const o=this._eS3DTileset.excavateId[i];c.ESSceneObject.getSceneObjById(o)||this._eS3DTileset.excavateId.splice(i,1)}this._eS3DTileset.excavateId=[...this._eS3DTileset.excavateId,this._czmESExcavate.czmPolygonClipping.id],this.dispose(()=>{this._eS3DTileset.excavateId=[...this._eS3DTileset.excavateId.filter(i=>i!==this._czmESExcavate.czmPolygonClipping.id)]})}}class KU extends c.Destroyable{constructor(n){if(super(),this._czmESExcavate=n,!!this._czmESExcavate.viewer){for(let e=0;e<this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId.length;e++){const i=this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId[e];c.ESSceneObject.getSceneObjById(i)||this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId.splice(e,1)}this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId=[...this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId,this._czmESExcavate.czmPolygonClipping.id],this.dispose(()=>{this._czmESExcavate.viewer&&(this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId=[...this._czmESExcavate.viewer.sceneGlobeClippingPolygonsId.filter(e=>e!==this._czmESExcavate.czmPolygonClipping.id)])})}}}const Ku=class Ku extends Un{constructor(e,i){super(e,i);L(this,"_czmPolygonClipping");L(this,"_tilesSceneObjectWithId");this._czmPolygonClipping=this.ad(new pa(i,e.id)),this._tilesSceneObjectWithId=this.disposeVar(new c.ESSceneObjectWithId);const o=this.ad(c.react(this.sceneObject.targetID));if(this.ad(e.targetIDChanged.don(()=>{const s=c.ESSceneObject.getSceneObject(e.targetID);o.value=s?(s.components.main??s).id:""})),this.dispose(c.track([this._tilesSceneObjectWithId,"id"],o)),this.disposeVar(c.createNextAnimateFrameEvent(this.tilesSceneObjectWithId.sceneObjectChanged,this.sceneObject.showChanged)),!i.viewer)return;const a=this._czmPolygonClipping;a.showHelper=!1,this.dispose(c.bind([a,"positions"],[e,"points"])),this.dispose(c.track([a,"allowPicking"],[e,"allowPicking"]));{const s=()=>{a.reverse=e.mode!=="in"};s(),this.dispose(e.modeChanged.disposableOn(s))}c.registerCreatedEventUpdate(this,e,()=>{const s=this.disposeVar(c.createNextAnimateFrameEvent(this.tilesSceneObjectWithId.sceneObjectChanged,this.sceneObject.showChanged));this.disposeVar(new c.ObjResettingWithEvent(s,()=>{const{sceneObject:l,id:u}=this.tilesSceneObjectWithId;if(this.sceneObject.show)return u===""?new KU(this):!l||!(l instanceof c.ES3DTileset)?void 0:new qU(this,l)}))})}get czmPolygonClipping(){return this._czmPolygonClipping}get tilesSceneObjectWithId(){return this._tilesSceneObjectWithId}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmPolygonClipping:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(Ku,"type",Ku.register("ESCesiumViewer",c.ESExcavate.type,Ku));let ng=Ku;const Zu=class Zu extends He{constructor(e,i){super(e,i);L(this,"_czmFireParticleSystem");if(this._czmFireParticleSystem=this.disposeVar(new wi(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}const r=this._czmFireParticleSystem;r.endColor=[1,1,0,.4],r.startColor=[1,0,0,.5],r.particleLife=1,r.emissionRate=30,r.lifetime=1,r.imageSize=[1,1],r.emitter={type:"CircleEmitter",radius:.1},r.sizeInMeters=!0;{const a=()=>{r.startScale=10*(e.scale[0]>0?e.scale[0]:1),r.endScale=5*(e.scale[0]>0?e.scale[0]:1),r.minimumSpeed=10*(e.scale[0]>0?e.scale[0]:1),r.maximumSpeed=15*(e.scale[0]>0?e.scale[0]:1)};a(),this.ad(e.scaleChanged.don(a))}this.dispose(c.bind([r,"position"],[e,"position"])),this.dispose(c.track([r,"translation"],[e,"translation"])),this.dispose(Mt([r,"rotation"],[e,"rotation"])),this.dispose(c.track([r,"show"],[e,"show"])),this.dispose(c.track([r,"image"],[e,"image"]))}get czmFireParticleSystem(){return this._czmFireParticleSystem}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmFireParticleSystem:a}=this;if(!r.actived)return!1;if(o.flyToParam||o.flyInParam)return super.flyTo(e,i);{const s=a.position;return Fe(r.viewer,s,100,Hn,e),o.flyOverEvent.emit(i,"over",r),!0}}};L(Zu,"type",Zu.register("ESCesiumViewer",c.ESFireParticleSystem.type,Zu));let ig=Zu;class da extends c.Destroyable{constructor(e,i){super();L(this,"_geoPath");L(this,"_geoPolyline");L(this,"_geoCanvasPointPoi");L(this,"_player");L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_currentDistance",this.disposeVar(c.react(0)));L(this,"_ratio",this.disposeVar(c.PlayerProperty.createPlayingRatio([this,"currentTime"],[this,"duration"])));this._geoPath=this.disposeVar(new c.ESPathImpl),this._geoPolyline=this.disposeVar(new Ye(e,i)),this._geoCanvasPointPoi=this.disposeVar(new Er(e,i)),this._player=this.disposeVar(new c.Player),this.dispose(c.bind([this._geoPolyline,"positions"],[this,"positions"])),this.dispose(c.track([this._geoPolyline,"width"],[this,"width"])),this.dispose(c.track([this._geoPolyline,"ground"],[this,"ground"])),this.dispose(c.track([this._geoPolyline,"color"],[this,"color"])),this.dispose(c.track([this._geoPolyline,"hasDash"],[this,"hasDash"])),this.dispose(c.track([this._geoPolyline,"gapColor"],[this,"gapColor"])),this.dispose(c.track([this._geoPolyline,"dashLength"],[this,"dashLength"])),this.dispose(c.track([this._geoPolyline,"dashPattern"],[this,"dashPattern"])),this.dispose(c.track([this._geoPolyline,"hasArrow"],[this,"hasArrow"])),this.dispose(c.track([this._geoPolyline,"depthTest"],[this,"depthTest"])),this.dispose(c.track([this._geoPolyline,"arcType"],[this,"arcType"])),this.dispose(c.track([this._geoPolyline,"show"],[this,"show"])),this.dispose(c.track([this._geoPolyline,"show"],[this,"polylineShow"])),this.dispose(c.track([this._geoPolyline,"allowPicking"],[this,"allowPicking"])),this.dispose(c.track([this._geoPath,"currentTime"],[this,"currentDistance"])),this.dispose(c.track([this._geoPath,"leadTime"],[this,"leadTime"])),this.dispose(c.track([this._geoPath,"trailTime"],[this,"trailTime"])),this.dispose(c.track([this._geoPath,"show"],[this,"show"])),this.dispose(c.track([this._geoPath,"currentPoiShow"],[this,"currentPoiShow"]));{const o=()=>{this._geoCanvasPointPoi.show=(this.show??!0)&&(this.currentPoiShow??!0)};o(),this.dispose(this.showChanged.disposableOn(o)),this.dispose(this.currentPoiShowChanged.disposableOn(o))}this.dispose(c.track([this._geoCanvasPointPoi,"position"],[this,"currentPosition"]));{const o=()=>{if(this.positions){const a=this.granularity*Math.PI/180,s=mp(this.positions,this.arcType??"GEODESIC",a);if(s){this._geoPath.timePosRots=s.timePosRots,this.rotationRadius.some(l=>l>0)?(this._geoPath.addAroundPoints(this.rotationRadius,!0),this._geoPath.computeRotIfUndefinedUsingLerp(!0),this._geoPath.rotLerpMode="Lerp"):(this._geoPath.computeRotIfUndefinedUsingPrevLine(!0),this._geoPath.rotLerpMode=this.rotLerpMode);return}}this._geoPath.timePosRots=[]};o();const r=this.disposeVar(c.createNextAnimateFrameEvent(this.positionsChanged,this.arcTypeChanged,this.granularityChanged,this.rotationRadiusChanged,this.rotLerpModeChanged));this.dispose(r.disposableOn(o))}{const o=()=>{if((this._player.duration??3e3)<=0){this.currentDistance=0;return}const r=this.totalDistance*((this._player.currentTime??0)/(this._player.duration??3e3));Math.abs(r-this.currentDistance)>.01&&(this.currentDistance=r)};o(),this.dispose(this._player.currentTimeChanged.disposableOn(o))}{const o=()=>{if(this.totalDistance<=0){this._player.currentTime=0;return}const r=this.currentDistance/this.totalDistance*(this.duration??3e3);Math.abs(r-(this._player.currentTime??0))>.01&&(this._player.currentTime=r)};o(),this.dispose(this.currentDistanceChanged.disposableOn(o))}this.dispose(c.bind([this._player,"loop"],[this,"loop"])),this.dispose(c.bind([this._player,"currentTime"],[this,"currentTime"])),this.dispose(c.bind([this._player,"duration"],[this,"duration"])),this.dispose(c.bind([this._player,"playing"],[this,"playing"])),this.dispose(c.bind([this._player,"speed"],[this,"speed"])),this.dispose(this._flyToEvent.disposableOn(o=>{this._geoPolyline.flyTo(o)}))}get geoPath(){return this._geoPath}get geoPolyline(){return this._geoPolyline}get geoCanvasPointPoi(){return this._geoCanvasPointPoi}get player(){return this._player}get currentInfo(){return this._geoPath.currentInfo}get currentInfoChanged(){return this._geoPath.currentInfoChanged}get currentIndex(){return this._geoPath.currentIndex}get currentIndexChanged(){return this._geoPath.currentIndexChanged}get currentPosition(){return this._geoPath.currentPosition}get currentPositionChanged(){return this._geoPath.currentPositionChanged}get currentRotation(){return this._geoPath.currentRotation}get currentRotationChanged(){return this._geoPath.currentRotationChanged}get accumDistances(){return this._geoPath.accumDistances}get accumDistancesChanged(){return this._geoPath.accumDistancesChanged}get totalDistance(){return this._geoPath.totalDistance}get totalDistanceChanged(){return this._geoPath.totalDistanceChanged}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}subPath(e,i){const o=this._geoPath.subPath(e,i);if(o)return o.map(r=>r[1])}get currentDistance(){return this._currentDistance.value}set currentDistance(e){this._currentDistance.value=e}get currentDistanceChanged(){return this._currentDistance.changed}get ratio(){return this._ratio.value}set ratio(e){this._ratio.value=e}get ratioChanged(){return this._ratio.changed}get timePosRots(){return this.geoPath.timePosRots}}(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,currentPoiShow:!0,polylineShow:!0,positions:c.reactPositions(void 0),width:1,ground:!1,color:c.reactArray([1,1,1,1]),hasDash:!1,gapColor:c.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!1,arcType:"GEODESIC",granularity:1,loop:!1,currentTime:0,duration:3e3,speed:1,playing:!1,depthTest:!1,leadTime:0,trailTime:0,rotationRadius:[0],rotLerpMode:"Next"})})(da||(da={})),c.extendClassProps(da.prototype,da.createDefaultProps);class jl extends c.Destroyable{constructor(e,i){super();L(this,"_geoPolylinePath");L(this,"_flyToEvent",this.disposeVar(new c.Event));L(this,"_currentDistance",this.disposeVar(c.react(0)));this._geoPolylinePath=this.disposeVar(new da(e,i)),this._geoPolylinePath.rotLerpMode="Lerp",this.dispose(c.bind([this._geoPolylinePath,"show"],[this,"show"])),this.dispose(c.bind([this._geoPolylinePath,"currentPoiShow"],[this,"currentPoiShow"])),this.dispose(c.bind([this._geoPolylinePath,"polylineShow"],[this,"polylineShow"])),this.dispose(c.bind([this._geoPolylinePath,"width"],[this,"width"])),this.dispose(c.bind([this._geoPolylinePath,"ground"],[this,"ground"])),this.dispose(c.bind([this._geoPolylinePath,"color"],[this,"color"])),this.dispose(c.bind([this._geoPolylinePath,"hasDash"],[this,"hasDash"])),this.dispose(c.bind([this._geoPolylinePath,"gapColor"],[this,"gapColor"])),this.dispose(c.bind([this._geoPolylinePath,"dashLength"],[this,"dashLength"])),this.dispose(c.bind([this._geoPolylinePath,"dashPattern"],[this,"dashPattern"])),this.dispose(c.bind([this._geoPolylinePath,"hasArrow"],[this,"hasArrow"])),this.dispose(c.bind([this._geoPolylinePath,"arcType"],[this,"arcType"])),this.dispose(c.bind([this._geoPolylinePath,"currentDistance"],[this,"currentDistance"])),this.dispose(c.bind([this._geoPolylinePath,"loop"],[this,"loop"])),this.dispose(c.bind([this._geoPolylinePath,"currentTime"],[this,"currentTime"])),this.dispose(c.bind([this._geoPolylinePath,"duration"],[this,"duration"])),this.dispose(c.bind([this._geoPolylinePath,"playing"],[this,"playing"])),this.dispose(c.bind([this._geoPolylinePath,"speed"],[this,"speed"])),this.dispose(c.bind([this._geoPolylinePath,"depthTest"],[this,"depthTest"])),this.dispose(c.track([this._geoPolylinePath,"leadTime"],[this,"leadTime"])),this.dispose(c.track([this._geoPolylinePath,"trailTime"],[this,"trailTime"])),this.dispose(c.track([this._geoPolylinePath,"allowPicking"],[this,"allowPicking"]));const o=this.disposeVar(c.createNextAnimateFrameEvent(this.positionsChanged,this.resolutionChanged,this.sharpnessChanged)),r=()=>{try{if(this.positions&&this.positions.length>=2){const a=Tp(this.positions,this.resolution,this.sharpness);this._geoPolylinePath.positions=a}else this._geoPolylinePath.positions=void 0}catch(a){console.error(a),this._geoPolylinePath.positions=void 0}};r(),this.dispose(o.disposableOn(r)),this.dispose(this._flyToEvent.disposableOn(a=>{this._geoPolylinePath.flyTo(a)}))}get geoPolylinePath(){return this._geoPolylinePath}get geoPath(){return this._geoPolylinePath.geoPath}get ratio(){return this._geoPolylinePath.ratio}set ratio(e){this._geoPolylinePath.ratio=e}get ratioChanged(){return this._geoPolylinePath.ratioChanged}get player(){return this._geoPolylinePath.player}get currentInfo(){return this._geoPolylinePath.currentInfo}get currentInfoChanged(){return this._geoPolylinePath.currentInfoChanged}get currentIndex(){return this._geoPolylinePath.currentIndex}get currentIndexChanged(){return this._geoPolylinePath.currentIndexChanged}get currentPosition(){return this._geoPolylinePath.currentPosition}get currentPositionChanged(){return this._geoPolylinePath.currentPositionChanged}get currentRotation(){return this._geoPolylinePath.currentRotation}get currentRotationChanged(){return this._geoPolylinePath.currentRotationChanged}get accumDistances(){return this._geoPolylinePath.accumDistances}get accumDistancesChanged(){return this._geoPolylinePath.accumDistances}get totalDistance(){return this._geoPolylinePath.totalDistance}get totalDistanceChanged(){return this._geoPolylinePath.totalDistanceChanged}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get currentDistance(){return this._currentDistance.value}set currentDistance(e){this._currentDistance.value=e}get currentDistanceChanged(){return this._currentDistance.changed}get timePosRots(){return this.geoPath.timePosRots}}(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,currentPoiShow:!0,polylineShow:!0,positions:c.reactPositions(void 0),width:1,ground:!1,color:c.reactArray([1,1,1,1]),hasDash:!1,gapColor:c.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!1,arcType:"GEODESIC",loop:!1,currentTime:0,duration:3e3,speed:1,playing:!1,resolution:1e3,sharpness:.85,depthTest:!1,leadTime:0,trailTime:0})})(jl||(jl={})),c.extendClassProps(jl.prototype,jl.createDefaultProps);const ZU=[["256",256],["512",512],["1024",1024]],$U=[["LEFT","LEFT"],["NONE","NONE"],["RIGHT","RIGHT"]],Tn=class Tn extends c.ESVisualObject{constructor(e){super(e);L(this,"_pickFeaturesEvent",this.dv(new c.Event));this.ad(c.bind([this,"czmSplitDirection"],[this,"splitDirection"])),this.ad(c.bind([this,"czmAlpha"],[this,"opacity"]))}get pickFeaturesEvent(){return this._pickFeaturesEvent}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new c.StringProperty([this,"accessToken"],"令牌",Tn.defaults.accessToken),new c.Number4Property([this,"rectangle"],"矩形范围",Tn.defaults.rectangle),new c.JsonProperty([this,"url"],"服务地址",Tn.defaults.url),new c.JsonProperty([this,"style"],"样式配置",Tn.defaults.style),new c.NumberProperty([this,"zIndex"],"层级序号",Tn.defaults.zIndex),new c.EnumProperty([this,"tileSize"],ZU,"瓦片大小",256),new c.NumberSliderProperty([this,"maximumLevel"],1,[1,24],"最大层级",Tn.defaults.maximumLevel),new c.NumberSliderProperty([this,"minimumLevel"],1,[0,24],"最小层级",Tn.defaults.minimumLevel),new c.EnumProperty([this,"scheme"],[["tms","tms"],["xyz","xyz"]],"影像类型",Tn.defaults.scheme)],more:[...e.more,new c.GroupProperty([],"通用","通用"),new c.EnumProperty([this,"splitDirection"],$U,"splitDirection","NONE"),new c.GroupProperty([],"czm","czm"),new c.NumberProperty([this,"czmAlpha"],"透明度"),new c.NumberProperty([this,"czmBrightness"],"亮度"),new c.NumberProperty([this,"czmContrast"],"对比度"),new c.NumberProperty([this,"czmHue"],"色相"),new c.NumberProperty([this,"czmSaturation"],"饱和度"),new c.NumberProperty([this,"czmGamma"],"伽马值")]}}};L(Tn,"createDefaultProps",()=>({...c.ESVisualObject.createDefaultProps(),rectangle:c.reactJsonWithUndefined([-180,-90,180,90]),url:c.reactJson(""),zIndex:0,accessToken:"",tileSize:256,maximumLevel:18,minimumLevel:0,style:c.reactArrayWithUndefined([]),scheme:c.react("tms"),czmSplitDirection:"NONE",czmAlpha:1,opacity:1,splitDirection:"NONE",czmBrightness:1,czmContrast:1,czmHue:0,czmSaturation:1,czmGamma:1})),L(Tn,"type",Tn.register("ESMVTLayer",Tn,{chsName:"矢量瓦片图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"用于加载矢量瓦片图层。"}));let ff=Tn;const XU=t=>{const n=[{maxAlt:25e7,level:0},{maxAlt:25e6,level:1},{maxAlt:9e6,level:2},{maxAlt:7e6,level:3},{maxAlt:44e5,level:4},{maxAlt:2e6,level:5},{maxAlt:1e6,level:6},{maxAlt:493977,level:7},{maxAlt:218047,level:8},{maxAlt:124961,level:9},{maxAlt:56110,level:10},{maxAlt:4e4,level:11},{maxAlt:13222,level:12},{maxAlt:7e3,level:13},{maxAlt:4e3,level:14},{maxAlt:2500,level:15},{maxAlt:1500,level:16},{maxAlt:600,level:17},{maxAlt:250,level:18},{maxAlt:150,level:19},{maxAlt:50,level:20}];for(const{maxAlt:e,level:i}of n)if(t>=e)return i;return 20},YU=async(t,n,e)=>(await fetch(`http://tileser.giiiis.com/xyzinfo/${e}/${t}/${n}`)).json(),JU=async t=>{var u;const n=(u=t.getCurrentCameraInfo())==null?void 0:u.position;if(!n)return;const e=n[0],i=n[1],o=n[2],r=XU(o);let a=Math.floor((e+180)/360*Math.pow(2,r+1)),s=Math.floor((90-i)/180*Math.pow(2,r));return await YU(a,s,r)};class eO extends c.Destroyable{constructor(n,e,i){super();const o=async()=>{const a=await JU(n);e.datesEvent.emit(a,n)};o();let r;r=setInterval(()=>{o()},3e3),this.d(()=>r&&clearInterval(r));{const a=()=>{const s=e.currentDate?e.currentDate:0;i.url=`http://tileser.giiiis.com/timetile/tms/${s}/tilemapresource.xml`};a(),this.d(e.currentDateChanged.don(a))}}}const Wa=class Wa extends c.ESVisualObject{constructor(e){super(e);L(this,"_esImageryLayer",this.dv(new c.ESImageryLayer));L(this,"_datesEvent",this.dv(new c.Event));const i=this._esImageryLayer;this.d(this.components.disposableAdd(i)),i.zIndex=1,i.minimumLevel=1,i.maximumLevel=18,this.d(c.track([i,"show"],[this,"show"])),this.d(c.track([i,"zIndex"],[this,"zIndex"])),this.d(c.track([i,"rectangle"],[this,"rectangle"])),this.d(c.bind([i,"flyInParam"],[this,"flyInParam"])),this.d(c.bind([i,"flyToParam"],[this,"flyToParam"])),this.registerAttachedObjectForContainer(o=>new eO(o,this,i)),this.d(this.flyInEvent.don(o=>{i.flyIn(o)})),this.d(this.flyToEvent.don(o=>{i.flyTo(o)})),this.d(this.calcFlyToParamEvent.don(()=>{i.calcFlyToParam()})),this.d(this.calcFlyInParamEvent.don(()=>{i.calcFlyInParam()}))}get esImageryLayer(){return this._esImageryLayer}get datesEvent(){return this._datesEvent}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new c.StringProperty([this,"currentDate"],"时间","0"),new c.NumberProperty([this,"zIndex"],"层级",0),new c.Number4Property([this,"rectangle"],"矩形范围",[-180,-90,180,90])]}}};L(Wa,"createDefaultProps",()=>({...c.ESVisualObject.createDefaultProps(),currentDate:"",zIndex:0,rectangle:c.reactArray([-180,-90,180,90])})),L(Wa,"type",Wa.register("ESGeHistoryImagery",Wa,{chsName:"谷歌历史影像",tags:["ESObjects","_ES_Impl_UE"],description:"ESGeHistoryImagery"}));let pf=Wa;const Tx=`async (dataSource, viewer) => {
2594
2594
  viewer.clock.shouldAnimate = false;
2595
2595
  const rider = dataSource.entities.getById("tour");
2596
2596
  await viewer.flyTo(rider)
@@ -3665,7 +3665,7 @@ ${Xx}
3665
3665
  vec4 imageColor = texture(u_image, st);
3666
3666
  out_FragColor = imageColor * u_color;
3667
3667
  }
3668
- `;const S=f.computeLocalAxisedBoundingBoxFromAttribute("position");if(!S)return;const{min:T,max:w}=S;f.setLocalAxisedBoundingBox(T,w)},A=async()=>{if(e.points&&e.points.length>2){const{minPos:f,center:d}=c.getMinMaxCorner(e.points),p=f[2]-e.depth;if(!c.equalsN3(e.points[e.points.length-1],e.points[e.points.length-2])){const x=vn({originPosition:d},e.points.map((E,B)=>{let P=[...E];return P[2]=p,P}));u(s,d,x[0],"bottom",!0)}const g=this._interpolationAlongPolygon(e.points.map((x,E)=>_.Cartesian3.fromArray(c.lbhToXyz(x))),e.interpolation),v=await i.getHeightsByLonLats(g.map(x=>[x[0],x[1]]));let y=[];for(let x=0;x<g.length;x++){const E=g[x];y.push([E[0],E[1],v[x]??E[2]],[E[0],E[1],p])}const m=vn({originPosition:d},y);let b=this._isClockwise(e.points,i);u(r,d,m[0],"side",b)}else r.attributes=void 0,s.attributes=void 0};A();const h=this.dv(c.createNextAnimateFrameEvent(e.depthChanged,e.interpolationChanged,e.pointsChanged,e.bottomImageChanged,e.sideImageChanged));this.ad(h.don(A))}{const u=()=>{a.uri=e.sideImage.url,l.uri=e.bottomImage.url,r.uniformMap={u_image:{type:"texture",id:a.id},u_color:[1,1,1,e.opacity]},s.uniformMap={u_image:{type:"texture",id:l.id},u_color:[1,1,1,e.opacity]}};u();const A=this.ad(c.createNextAnimateFrameEvent(e.opacityChanged,e.bottomImageChanged,e.sideImageChanged));this.d(A.don(u))}}flyTo(e,i){const{sceneObject:o,czmViewer:r}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):o.points?(Me(r,o,i,o.points,e),!0):!1:!1}_interpolationAlongPolygon(e,i){var o=[];for(let l=0;l<e.length;++l){var r=e[l],a=e[(l+1)%e.length],s=this._interpolationAlongLine(r,a,i);o.push(...s)}return o.push(o[0]),o}_interpolationAlongLine(e,i,o){var r=[],a=_.Cartesian3.distance(e,i),s=_.Cartesian3.subtract(i,e,new _.Cartesian3);s.equals(_.Cartesian3.ZERO)||_.Cartesian3.normalize(s,s);for(var l=0;l<a;){var u=new _.Cartesian3(s.x*l,s.y*l,s.z*l),A=_.Cartesian3.add(e,u,new _.Cartesian3);const h=Ue(A);h&&r.push(h),l+=o}return r}_isClockwise(e,i){if(i.viewer)for(let o=0;o<e.length;o++){let r=_.Cartesian3.fromDegrees(...e[o]),a=_.Cartesian3.fromDegrees(...e[(o+1)%e.length]),s=_.Cartesian3.fromDegrees(...e[(o+2)%e.length]),l=_.Cartesian3.subtract(a,r,new _.Cartesian3),u=_.Cartesian3.subtract(s,a,new _.Cartesian3);if(l.equals(_.Cartesian3.ZERO)||u.equals(_.Cartesian3.ZERO))return!0;if(_.Cartesian3.normalize(l,l),_.Cartesian3.normalize(u,u),Math.abs(_.Cartesian3.dot(l,u))==1){if(o==e.length-1)return!0;continue}let A=_.Cartesian3.cross(l,u,new _.Cartesian3);return _.Cartesian3.dot(A,i.viewer.camera.directionWC)>0}}_triangleIndices(e){let i=new Uint32Array(e*3);for(let o=0;o<e;++o)i[o*3+0]=o,i[o*3+1]=o%2?(o+2)%e:(o+1)%e,i[o*3+2]=o%2?(o+1)%e:(o+2)%e;return i}_getDistance(e,i){return Math.sqrt(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2))}};L(kc,"type",kc.register("ESCesiumViewer",c.ESPit.type,kc));let iy=kc;const Qc=class Qc extends Un{constructor(e,i){super(e,i);L(this,"_czmPolygonPrimitive");L(this,"_geoPolylines");if(this._czmPolygonPrimitive=this.disposeVar(new Lr(i,e.id)),console.log(this.czmPolygonPrimitive),this._geoPolylines=this.disposeVar(new ai(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}{const s=()=>{this.geoPolygon&&(this.geoPolygon.show=!1)};s(),this.ad(this.sceneObject.showChanged.don(s))}const r=this._geoPolylines;r.arcType="RHUMB";const a=this._czmPolygonPrimitive;this.dispose(c.track([a,"allowPicking"],[e,"allowPicking"])),this.dispose(c.track([r,"allowPicking"],[e,"allowPicking"])),this.dispose(c.track([r,"color"],[e,"strokeColor"])),this.dispose(c.track([r,"width"],[e,"strokeWidth"]));{a.perPositionHeight=!0;const s=()=>{r.show=e.show&&e.stroked,a.show=e.show&&e.filled,a.material={type:"Color",color:e.fillColor}};s();const l=this.disposeVar(c.createNextAnimateFrameEvent(e.showChanged,e.strokedChanged,e.filledChanged,e.fillColorChanged));this.dispose(l.don(s))}{const s=()=>{const u={positions:[],holes:[]};if(e.points&&e.points.length>=3){if(r.positions=[[...e.points,e.points[0]]],u.positions=e.points,e.innerRings&&e.innerRings.length>0)for(let A=0;A<e.innerRings.length;A++){const h=e.innerRings[A];u.holes.push({positions:h}),r.positions.push([...h,h[0]])}a.polygonHierarchy=u}else a.polygonHierarchy=u};s();const l=this.disposeVar(c.createNextAnimateFrameEvent(e.pointsChanged,e.innerRingsChanged));this.dispose(l.disposableOn(()=>s()))}}get czmPolygonPrimitive(){return this._czmPolygonPrimitive}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmPolygonPrimitive:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}flyIn(e,i){const{sceneObject:o,czmViewer:r,czmPolygonPrimitive:a}=this;return r.actived?o.flyInParam?super.flyIn(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(Qc,"type",Qc.register("ESCesiumViewer",c.ESPolygonWithHole.type,Qc));let ry=Qc;var sn=63710088e-1,oy={centimeters:sn*100,centimetres:sn*100,degrees:sn/111325,feet:sn*3.28084,inches:sn*39.37,kilometers:sn/1e3,kilometres:sn/1e3,meters:sn,metres:sn,miles:sn/1609.344,millimeters:sn*1e3,millimetres:sn*1e3,nauticalmiles:sn/1852,radians:1,yards:sn*1.0936},EL={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/sn,yards:1.0936133},sy={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function On(t,n,e){e===void 0&&(e={});var i={type:"Feature"};return(e.id===0||e.id)&&(i.id=e.id),e.bbox&&(i.bbox=e.bbox),i.properties=n||{},i.geometry=t,i}function PL(t,n,e){switch(t){case"Point":return Zt(n).geometry;case"LineString":return Yn(n).geometry;case"Polygon":return kt(n).geometry;case"MultiPoint":return n_(n).geometry;case"MultiLineString":return ay(n).geometry;case"MultiPolygon":return ly(n).geometry;default:throw new Error(t+" is invalid")}}function Zt(t,n,e){if(e===void 0&&(e={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Ef(t[0])||!Ef(t[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:t};return On(i,n,e)}function BL(t,n,e){return e===void 0&&(e={}),En(t.map(function(i){return Zt(i,n)}),e)}function kt(t,n,e){e===void 0&&(e={});for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<r[r.length-1].length;a++)if(r[r.length-1][a]!==r[0][a])throw new Error("First and last Position are not equivalent.")}var s={type:"Polygon",coordinates:t};return On(s,n,e)}function TL(t,n,e){return e===void 0&&(e={}),En(t.map(function(i){return kt(i,n)}),e)}function Yn(t,n,e){if(e===void 0&&(e={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var i={type:"LineString",coordinates:t};return On(i,n,e)}function IL(t,n,e){return e===void 0&&(e={}),En(t.map(function(i){return Yn(i,n)}),e)}function En(t,n){n===void 0&&(n={});var e={type:"FeatureCollection"};return n.id&&(e.id=n.id),n.bbox&&(e.bbox=n.bbox),e.features=t,e}function ay(t,n,e){e===void 0&&(e={});var i={type:"MultiLineString",coordinates:t};return On(i,n,e)}function n_(t,n,e){e===void 0&&(e={});var i={type:"MultiPoint",coordinates:t};return On(i,n,e)}function ly(t,n,e){e===void 0&&(e={});var i={type:"MultiPolygon",coordinates:t};return On(i,n,e)}function FL(t,n,e){e===void 0&&(e={});var i={type:"GeometryCollection",geometries:t};return On(i,n,e)}function ML(t,n){if(n===void 0&&(n=0),n&&!(n>=0))throw new Error("precision must be a positive number");var e=Math.pow(10,n||0);return Math.round(t*e)/e}function uy(t,n){n===void 0&&(n="kilometers");var e=oy[n];if(!e)throw new Error(n+" units is invalid");return t*e}function cy(t,n){n===void 0&&(n="kilometers");var e=oy[n];if(!e)throw new Error(n+" units is invalid");return t/e}function DL(t,n){return i_(cy(t,n))}function RL(t){var n=t%360;return n<0&&(n+=360),n}function i_(t){var n=t%(2*Math.PI);return n*180/Math.PI}function tu(t){var n=t%360;return n*Math.PI/180}function UL(t,n,e){if(n===void 0&&(n="kilometers"),e===void 0&&(e="kilometers"),!(t>=0))throw new Error("length must be a positive number");return uy(cy(t,n),e)}function OL(t,n,e){if(n===void 0&&(n="meters"),e===void 0&&(e="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=sy[n];if(!i)throw new Error("invalid original units");var o=sy[e];if(!o)throw new Error("invalid final units");return t/i*o}function Ef(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function hy(t){return!!t&&t.constructor===Object}function LL(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(t.length!==4&&t.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(function(n){if(!Ef(n))throw new Error("bbox must only contain numbers")})}function zL(t){if(!t)throw new Error("id is required");if(["string","number"].indexOf(typeof t)===-1)throw new Error("id must be a number or a string")}const kL=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:sy,bearingToAzimuth:RL,convertArea:OL,convertLength:UL,degreesToRadians:tu,earthRadius:sn,factors:oy,feature:On,featureCollection:En,geometry:PL,geometryCollection:FL,isNumber:Ef,isObject:hy,lengthToDegrees:DL,lengthToRadians:cy,lineString:Yn,lineStrings:IL,multiLineString:ay,multiPoint:n_,multiPolygon:ly,point:Zt,points:BL,polygon:kt,polygons:TL,radiansToDegrees:i_,radiansToLength:uy,round:ML,unitsFactors:EL,validateBBox:LL,validateId:zL},Symbol.toStringTag,{value:"Module"}));function Pf(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return t.geometry.coordinates;if(t.type==="Point")return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Ii(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function QL(t,n,e){if(!t)throw new Error("No featureCollection passed");if(!t||t.type!=="FeatureCollection")throw new Error("Invalid input to "+e+", FeatureCollection required");for(var i=0,o=t.features;i<o.length;i++){var r=o[i];if(!r||r.type!=="Feature"||!r.geometry)throw new Error("Invalid input to "+e+", Feature with geometry required");if(!r.geometry||r.geometry.type!==n)throw new Error("Invalid input to "+e+": must be a "+n+", given "+r.geometry.type)}}function Fi(t){return t.type==="Feature"?t.geometry:t}function VL(t,n){return t.type==="FeatureCollection"?"FeatureCollection":t.type==="GeometryCollection"?"GeometryCollection":t.type==="Feature"&&t.geometry!==null?t.geometry.type:t.type}function Mi(t,n,e){e===void 0&&(e={});var i=Pf(t),o=Pf(n),r=tu(o[1]-i[1]),a=tu(o[0]-i[0]),s=tu(i[1]),l=tu(o[1]),u=Math.pow(Math.sin(r/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(l);return uy(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),e.units)}function Yo(t,n,e){if(t!==null)for(var i,o,r,a,s,l,u,A=0,h=0,f,d=t.type,p=d==="FeatureCollection",g=d==="Feature",v=p?t.features.length:1,y=0;y<v;y++){u=p?t.features[y].geometry:g?t.geometry:t,f=u?u.type==="GeometryCollection":!1,s=f?u.geometries.length:1;for(var m=0;m<s;m++){var b=0,x=0;if(a=f?u.geometries[m]:u,a!==null){l=a.coordinates;var E=a.type;switch(A=e&&(E==="Polygon"||E==="MultiPolygon")?1:0,E){case null:break;case"Point":if(n(l,h,y,b,x)===!1)return!1;h++,b++;break;case"LineString":case"MultiPoint":for(i=0;i<l.length;i++){if(n(l[i],h,y,b,x)===!1)return!1;h++,E==="MultiPoint"&&b++}E==="LineString"&&b++;break;case"Polygon":case"MultiLineString":for(i=0;i<l.length;i++){for(o=0;o<l[i].length-A;o++){if(n(l[i][o],h,y,b,x)===!1)return!1;h++}E==="MultiLineString"&&b++,E==="Polygon"&&x++}E==="Polygon"&&b++;break;case"MultiPolygon":for(i=0;i<l.length;i++){for(x=0,o=0;o<l[i].length;o++){for(r=0;r<l[i][o].length-A;r++){if(n(l[i][o][r],h,y,b,x)===!1)return!1;h++}x++}b++}break;case"GeometryCollection":for(i=0;i<a.geometries.length;i++)if(Yo(a.geometries[i],n,e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function NL(t,n,e,i){var o=e;return Yo(t,function(r,a,s,l,u){a===0&&e===void 0?o=r:o=n(o,r,a,s,l,u)},i),o}function r_(t,n){var e;switch(t.type){case"FeatureCollection":for(e=0;e<t.features.length&&n(t.features[e].properties,e)!==!1;e++);break;case"Feature":n(t.properties,0);break}}function HL(t,n,e){var i=e;return r_(t,function(o,r){r===0&&e===void 0?i=o:i=n(i,o,r)}),i}function ya(t,n){if(t.type==="Feature")n(t,0);else if(t.type==="FeatureCollection")for(var e=0;e<t.features.length&&n(t.features[e],e)!==!1;e++);}function GL(t,n,e){var i=e;return ya(t,function(o,r){r===0&&e===void 0?i=o:i=n(i,o,r)}),i}function WL(t){var n=[];return Yo(t,function(e){n.push(e)}),n}function Ay(t,n){var e,i,o,r,a,s,l,u,A,h,f=0,d=t.type==="FeatureCollection",p=t.type==="Feature",g=d?t.features.length:1;for(e=0;e<g;e++){for(s=d?t.features[e].geometry:p?t.geometry:t,u=d?t.features[e].properties:p?t.properties:{},A=d?t.features[e].bbox:p?t.bbox:void 0,h=d?t.features[e].id:p?t.id:void 0,l=s?s.type==="GeometryCollection":!1,a=l?s.geometries.length:1,o=0;o<a;o++){if(r=l?s.geometries[o]:s,r===null){if(n(null,f,u,A,h)===!1)return!1;continue}switch(r.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(n(r,f,u,A,h)===!1)return!1;break}case"GeometryCollection":{for(i=0;i<r.geometries.length;i++)if(n(r.geometries[i],f,u,A,h)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}f++}}function jL(t,n,e){var i=e;return Ay(t,function(o,r,a,s,l){r===0&&e===void 0?i=o:i=n(i,o,r,a,s,l)}),i}function rr(t,n){Ay(t,function(e,i,o,r,a){var s=e===null?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return n(On(e,o,{bbox:r,id:a}),i,0)===!1?!1:void 0}var l;switch(s){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon";break}for(var u=0;u<e.coordinates.length;u++){var A=e.coordinates[u],h={type:l,coordinates:A};if(n(On(h,o),i,u)===!1)return!1}})}function qL(t,n,e){var i=e;return rr(t,function(o,r,a){r===0&&a===0&&e===void 0?i=o:i=n(i,o,r,a)}),i}function o_(t,n){rr(t,function(e,i,o){var r=0;if(e.geometry){var a=e.geometry.type;if(!(a==="Point"||a==="MultiPoint")){var s,l=0,u=0,A=0;if(Yo(e,function(h,f,d,p,g){if(s===void 0||i>l||p>u||g>A){s=h,l=i,u=p,A=g,r=0;return}var v=Yn([s,h],e.properties);if(n(v,i,o,g,r)===!1)return!1;r++,s=h})===!1)return!1}}})}function s_(t,n,e){var i=e,o=!1;return o_(t,function(r,a,s,l,u){o===!1&&e===void 0?i=r:i=n(i,r,a,s,l,u),o=!0}),i}function a_(t,n){if(!t)throw new Error("geojson is required");rr(t,function(e,i,o){if(e.geometry!==null){var r=e.geometry.type,a=e.geometry.coordinates;switch(r){case"LineString":if(n(e,i,o,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(n(Yn(a[s],e.properties),i,o,s)===!1)return!1;break}}})}function KL(t,n,e){var i=e;return a_(t,function(o,r,a,s){r===0&&e===void 0?i=o:i=n(i,o,r,a,s)}),i}function ZL(t,n){if(n=n||{},!hy(n))throw new Error("options is invalid");var e=n.featureIndex||0,i=n.multiFeatureIndex||0,o=n.geometryIndex||0,r=n.segmentIndex||0,a=n.properties,s;switch(t.type){case"FeatureCollection":e<0&&(e=t.features.length+e),a=a||t.features[e].properties,s=t.features[e].geometry;break;case"Feature":a=a||t.properties,s=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=t;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var l=s.coordinates;switch(s.type){case"Point":case"MultiPoint":return null;case"LineString":return r<0&&(r=l.length+r-1),Yn([l[r],l[r+1]],a,n);case"Polygon":return o<0&&(o=l.length+o),r<0&&(r=l[o].length+r-1),Yn([l[o][r],l[o][r+1]],a,n);case"MultiLineString":return i<0&&(i=l.length+i),r<0&&(r=l[i].length+r-1),Yn([l[i][r],l[i][r+1]],a,n);case"MultiPolygon":return i<0&&(i=l.length+i),o<0&&(o=l[i].length+o),r<0&&(r=l[i][o].length-r-1),Yn([l[i][o][r],l[i][o][r+1]],a,n)}throw new Error("geojson is invalid")}function $L(t,n){if(n=n||{},!hy(n))throw new Error("options is invalid");var e=n.featureIndex||0,i=n.multiFeatureIndex||0,o=n.geometryIndex||0,r=n.coordIndex||0,a=n.properties,s;switch(t.type){case"FeatureCollection":e<0&&(e=t.features.length+e),a=a||t.features[e].properties,s=t.features[e].geometry;break;case"Feature":a=a||t.properties,s=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=t;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var l=s.coordinates;switch(s.type){case"Point":return Zt(l,a,n);case"MultiPoint":return i<0&&(i=l.length+i),Zt(l[i],a,n);case"LineString":return r<0&&(r=l.length+r),Zt(l[r],a,n);case"Polygon":return o<0&&(o=l.length+o),r<0&&(r=l[o].length+r),Zt(l[o][r],a,n);case"MultiLineString":return i<0&&(i=l.length+i),r<0&&(r=l[i].length+r),Zt(l[i][r],a,n);case"MultiPolygon":return i<0&&(i=l.length+i),o<0&&(o=l[i].length+o),r<0&&(r=l[i][o].length-r),Zt(l[i][o][r],a,n)}throw new Error("geojson is invalid")}const XL=Object.freeze(Object.defineProperty({__proto__:null,coordAll:WL,coordEach:Yo,coordReduce:NL,featureEach:ya,featureReduce:GL,findPoint:$L,findSegment:ZL,flattenEach:rr,flattenReduce:qL,geomEach:Ay,geomReduce:jL,lineEach:a_,lineReduce:KL,propEach:r_,propReduce:HL,segmentEach:o_,segmentReduce:s_},Symbol.toStringTag,{value:"Module"}));function YL(t,n){return n===void 0&&(n={}),s_(t,function(e,i){var o=i.geometry.coordinates;return e+Mi(o[0],o[1],n)},0)}function JL(t){var n=Yn(t),e=YL(n,{units:"meters"});return e}function*ez(t){t.type==="FeatureCollection"?yield*t.features.map(n=>[n.geometry,n]):t.type==="Feature"&&(yield[t.geometry,t])}function*tz(t){for(const[n,e]of ez(t))if(n.type==="LineString")yield[n.coordinates,e];else if(n.type==="MultiLineString")for(let i of n.coordinates)yield[i,e]}function nz(t,n,e){return[...tz(t)].map(([i,o])=>{if(i.length<2)return;const r=i.map(l=>[l[0],l[1],l[2]??0]),s=JL(r)/e;return{positions:r,repeat:s,width:n,extra:{geojson:{feature:o}}}}).filter(i=>!!i)}const nu=_.ArcType,iz=_.arrayRemoveDuplicates,rz=_.BoundingSphere,It=_.Cartesian3,Pn=_.Color,va=_.ComponentDatatype,oz=_.Frozen,Ln=_.defined,wa=_.DeveloperError,Di=_.Ellipsoid,sz=_.Geometry,ba=_.GeometryAttribute,az=_.GeometryAttributes,lz=_.GeometryType,uz=_.IndexDatatype,l_=_.Math,iu=_.PolylinePipeline,cz=_.PrimitiveType,or=_.VertexFormat;var u_=[];function hz(t,n,e,i,o){var r=u_;r.length=o;var a,s=e.red,l=e.green,u=e.blue,A=e.alpha,h=i.red,f=i.green,d=i.blue,p=i.alpha;if(Pn.equals(e,i)){for(a=0;a<o;a++)r[a]=Pn.clone(e);return r}var g=(h-s)/o,v=(f-l)/o,y=(d-u)/o,m=(p-A)/o;for(a=0;a<o;a++)r[a]=new Pn(s+a*g,l+a*v,u+a*y,A+a*m);return r}function xa(t){t=t??oz.EMPTY_OBJECT;var n=t.positions,e=t.colors,i=t.width??1,o=t.colorsPerVertex??!1;if(!Ln(n)||n.length<2)throw new wa("At least two positions are required.");if(typeof i!="number")throw new wa("width must be a number");if(Ln(e)&&(o&&e.length<n.length||!o&&e.length<n.length-1))throw new wa("colors has an invalid length.");this._positions=n,this._colors=e,this._width=i,this._colorsPerVertex=o,this._vertexFormat=or.clone(t.vertexFormat??or.DEFAULT),this._arcType=t.arcType??nu.GEODESIC,this._granularity=t.granularity??l_.RADIANS_PER_DEGREE,this._ellipsoid=Di.clone(t.ellipsoid??Di.WGS84),this._workerName="createPolylineGeometry";var r=1+n.length*It.packedLength;r+=Ln(e)?1+e.length*Pn.packedLength:1,this.packedLength=r+Di.packedLength+or.packedLength+4}xa.pack=function(t,n,e){if(!Ln(t))throw new wa("value is required");if(!Ln(n))throw new wa("array is required");e=e??0;var i,o=t._positions,r=o.length;for(n[e++]=r,i=0;i<r;++i,e+=It.packedLength)It.pack(o[i],n,e);var a=t._colors;for(r=Ln(a)?a.length:0,n[e++]=r,i=0;i<r;++i,e+=Pn.packedLength)Pn.pack(a[i],n,e);return Di.pack(t._ellipsoid,n,e),e+=Di.packedLength,or.pack(t._vertexFormat,n,e),e+=or.packedLength,n[e++]=t._width,n[e++]=t._colorsPerVertex?1:0,n[e++]=t._arcType,n[e]=t._granularity,n};var c_=Di.clone(Di.UNIT_SPHERE),h_=new or,Jo={positions:void 0,colors:void 0,ellipsoid:c_,vertexFormat:h_,width:void 0,colorsPerVertex:void 0,arcType:void 0,granularity:void 0};xa.unpack=function(t,n,e){if(!Ln(t))throw new wa("array is required");n=n??0;var i,o=t[n++],r=new Array(o);for(i=0;i<o;++i,n+=It.packedLength)r[i]=It.unpack(t,n);o=t[n++];var a=o>0?new Array(o):void 0;for(i=0;i<o;++i,n+=Pn.packedLength)a[i]=Pn.unpack(t,n);var s=Di.unpack(t,n,c_);n+=Di.packedLength;var l=or.unpack(t,n,h_);n+=or.packedLength;var u=t[n++],A=t[n++]===1,h=t[n++],f=t[n];return Ln(e)?(e._positions=r,e._colors=a,e._ellipsoid=Di.clone(s,e._ellipsoid),e._vertexFormat=or.clone(l,e._vertexFormat),e._width=u,e._colorsPerVertex=A,e._arcType=h,e._granularity=f,e):(Jo.positions=r,Jo.colors=a,Jo.width=u,Jo.colorsPerVertex=A,Jo.arcType=h,Jo.granularity=f,new xa(Jo))};var A_=new It,f_=new It,p_=new It,d_=new It;xa.createGeometry=function(t){var n=t._width,e=t._vertexFormat,i=t._colors,o=t._colorsPerVertex,r=t._arcType,a=t._granularity,s=t._ellipsoid,l,u,A,h=iz(t._positions,It.equalsEpsilon),f=h.length;if(f<2||n<=0)return;if(r===nu.GEODESIC||r===nu.RHUMB){var d,p;r===nu.GEODESIC?(d=l_.chordLength(a,s.maximumRadius),p=iu.numberOfPoints):(d=a,p=iu.numberOfPointsRhumbLine);var g=iu.extractHeights(h,s);if(Ln(i)){var v=1;for(l=0;l<f-1;++l)v+=p(h[l],h[l+1],d);var y=new Array(v),m=0;for(l=0;l<f-1;++l){var b=h[l],x=h[l+1],E=i[l],B=p(b,x,d);if(o&&l<v){var P=i[l+1],I=hz(b,x,E,P,B),M=I.length;for(u=0;u<M;++u)y[m++]=I[u]}else for(u=0;u<B;++u)y[m++]=Pn.clone(E)}y[m]=Pn.clone(i[i.length-1]),i=y,u_.length=0}r===nu.GEODESIC?h=iu.generateCartesianArc({positions:h,minDistance:d,ellipsoid:s,height:g}):h=iu.generateCartesianRhumbArc({positions:h,granularity:d,ellipsoid:s,height:g})}f=h.length;var F=f*4-4,S=new Float64Array(F*3),T=new Float64Array(F*3),w=new Float64Array(F*3),C=new Float32Array(F*2),D=e.st?new Float32Array(F*2):void 0,R=Ln(i)?new Uint8Array(F*4):void 0,U=0,O=0,z=0,k=0,Q;let N=[0];{for(l=0;l<f-1;l++){const G=_.Cartesian3.distance(h[l],h[l+1]);N.push(N[N.length-1]+G)}N=N.map(G=>G/N[N.length-1])}for(u=0;u<f;++u){u===0?(Q=A_,It.subtract(h[0],h[1],Q),It.add(h[0],Q,Q)):Q=h[u-1],It.clone(Q,p_),It.clone(h[u],f_),u===f-1?(Q=A_,It.subtract(h[f-1],h[f-2],Q),It.add(h[f-1],Q,Q)):Q=h[u+1],It.clone(Q,d_);var j,J;Ln(R)&&(u!==0&&!o?j=i[u-1]:j=i[u],u!==f-1&&(J=i[u]));var ee=u===0?2:0,ie=u===f-1?2:4;for(A=ee;A<ie;++A){It.pack(f_,S,U),It.pack(p_,T,U),It.pack(d_,w,U),U+=3;var oe=A-2<0?-1:1;if(C[O++]=2*(A%2)-1,C[O++]=oe*n,e.st&&(D[z++]=N[u],D[z++]=Math.max(C[O-2],0)),Ln(R)){var ue=A<2?j:J;R[k++]=Pn.floatToByte(ue.red),R[k++]=Pn.floatToByte(ue.green),R[k++]=Pn.floatToByte(ue.blue),R[k++]=Pn.floatToByte(ue.alpha)}}}var le=new az;le.position=new ba({componentDatatype:va.DOUBLE,componentsPerAttribute:3,values:S}),le.prevPosition=new ba({componentDatatype:va.DOUBLE,componentsPerAttribute:3,values:T}),le.nextPosition=new ba({componentDatatype:va.DOUBLE,componentsPerAttribute:3,values:w}),le.expandAndWidth=new ba({componentDatatype:va.FLOAT,componentsPerAttribute:2,values:C}),e.st&&(le.st=new ba({componentDatatype:va.FLOAT,componentsPerAttribute:2,values:D})),Ln(R)&&(le.color=new ba({componentDatatype:va.UNSIGNED_BYTE,componentsPerAttribute:4,values:R,normalize:!0}));var ne=uz.createTypedArray(F,f*6-6),ce=0,$=0,q=f-1;for(u=0;u<q;++u)ne[$++]=ce,ne[$++]=ce+2,ne[$++]=ce+1,ne[$++]=ce+1,ne[$++]=ce+2,ne[$++]=ce+3,ce+=4;return new sz({attributes:le,indices:ne,primitiveType:cz.TRIANGLES,boundingSphere:rz.fromPoints(h),geometryType:lz.POLYLINES})};var fy;function Az(){return typeof fy>"u"&&(fy=new _.EllipsoidGeodesic),fy}function fz(t,n){var e=n/3e7;return e=Math.min(1,e),e=1-Math.pow(1-e,2),Math.sin(Math.PI*t)*1e6*e}function pz(t,n,e,i=1){var o=Az(),r=_.Cartesian3.fromDegreesArray([t[0],t[1],n[0],n[1]]),a=[0,0];t.length>=3&&n.length>=3&&(a=[t[2],n[2]]);var s=_.Cartographic.fromDegrees(t[0],t[1]),l=_.Cartographic.fromDegrees(n[0],n[1]);o.setEndPoints(s,l);var u=o.surfaceDistance,A=_.PolylinePipeline.generateCartesianArc({positions:r,height:a,minDistance:u/36}),h=A.length;return A.forEach(function(f,d){var p=d/(h-1),g=fz(p,u*i),v=_.Cartographic.fromCartesian(f);v.height+=g,_.Cartesian3.fromRadians(v.longitude,v.latitude,v.height,_.Ellipsoid.WGS84,A[d])}),A}function dz(t=[.8,.8,0,1],n=!0,e=!0,i){var o;const r=i?{type:"Image",uniforms:{color:new _.Color(...t)}}:{type:"Color",uniforms:{color:new _.Color(...t)}};n?(o=new _.PolylineMaterialAppearance({material:new _.Material({fabric:r,translucent:!1}),translucent:!1}),o.renderState.blending=_.BlendingState.ADDITIVE_BLEND,o.renderState.depthMask=!1,o.renderState.depthTest={enabled:!0},o.getRenderState=function(){const A=_.Appearance.prototype.getRenderState.call(this);return A.depthTest={enabled:e},A.depthMask=!1,A},o.material.type==="Image"&&(o.material._uniforms.image_1=i)):(o=new _.PolylineMaterialAppearance({material:new _.Material({fabric:r,translucent:!0})}),o.getRenderState=function(){const A=_.Appearance.prototype.getRenderState.call(this);return A.depthTest={enabled:e},A.depthMask=!1,A},o.material.type==="Image"&&(o.material._uniforms.image_1=i));var a=_.ShaderSource.replaceMain(o._vertexShaderSource,"czm_twp_main"),s=`out vec4 v_twp;
3668
+ `;const S=f.computeLocalAxisedBoundingBoxFromAttribute("position");if(!S)return;const{min:T,max:w}=S;f.setLocalAxisedBoundingBox(T,w)},A=async()=>{if(e.points&&e.points.length>2){const{minPos:f,center:d}=c.getMinMaxCorner(e.points),p=f[2]-e.depth;if(!c.equalsN3(e.points[e.points.length-1],e.points[e.points.length-2])){const x=vn({originPosition:d},e.points.map((E,B)=>{let P=[...E];return P[2]=p,P}));u(s,d,x[0],"bottom",!0)}const g=this._interpolationAlongPolygon(e.points.map((x,E)=>_.Cartesian3.fromArray(c.lbhToXyz(x))),e.interpolation),v=await i.getHeightsByLonLats(g.map(x=>[x[0],x[1]]));let y=[];for(let x=0;x<g.length;x++){const E=g[x];y.push([E[0],E[1],v[x]??E[2]],[E[0],E[1],p])}const m=vn({originPosition:d},y);let b=this._isClockwise(e.points,i);u(r,d,m[0],"side",b)}else r.attributes=void 0,s.attributes=void 0};A();const h=this.dv(c.createNextAnimateFrameEvent(e.depthChanged,e.interpolationChanged,e.pointsChanged,e.bottomImageChanged,e.sideImageChanged));this.ad(h.don(A))}{const u=()=>{a.uri=e.sideImage.url,l.uri=e.bottomImage.url,r.uniformMap={u_image:{type:"texture",id:a.id},u_color:[1,1,1,e.opacity]},s.uniformMap={u_image:{type:"texture",id:l.id},u_color:[1,1,1,e.opacity]}};u();const A=this.ad(c.createNextAnimateFrameEvent(e.opacityChanged,e.bottomImageChanged,e.sideImageChanged));this.d(A.don(u))}}flyTo(e,i){const{sceneObject:o,czmViewer:r}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):o.points?(Me(r,o,i,o.points,e),!0):!1:!1}_interpolationAlongPolygon(e,i){var o=[];for(let l=0;l<e.length;++l){var r=e[l],a=e[(l+1)%e.length],s=this._interpolationAlongLine(r,a,i);o.push(...s)}return o.push(o[0]),o}_interpolationAlongLine(e,i,o){var r=[],a=_.Cartesian3.distance(e,i),s=_.Cartesian3.subtract(i,e,new _.Cartesian3);s.equals(_.Cartesian3.ZERO)||_.Cartesian3.normalize(s,s);for(var l=0;l<a;){var u=new _.Cartesian3(s.x*l,s.y*l,s.z*l),A=_.Cartesian3.add(e,u,new _.Cartesian3);const h=Ue(A);h&&r.push(h),l+=o}return r}_isClockwise(e,i){if(i.viewer)for(let o=0;o<e.length;o++){let r=_.Cartesian3.fromDegrees(...e[o]),a=_.Cartesian3.fromDegrees(...e[(o+1)%e.length]),s=_.Cartesian3.fromDegrees(...e[(o+2)%e.length]),l=_.Cartesian3.subtract(a,r,new _.Cartesian3),u=_.Cartesian3.subtract(s,a,new _.Cartesian3);if(l.equals(_.Cartesian3.ZERO)||u.equals(_.Cartesian3.ZERO))return!0;if(_.Cartesian3.normalize(l,l),_.Cartesian3.normalize(u,u),Math.abs(_.Cartesian3.dot(l,u))==1){if(o==e.length-1)return!0;continue}let A=_.Cartesian3.cross(l,u,new _.Cartesian3);return _.Cartesian3.dot(A,i.viewer.camera.directionWC)>0}}_triangleIndices(e){let i=new Uint32Array(e*3);for(let o=0;o<e;++o)i[o*3+0]=o,i[o*3+1]=o%2?(o+2)%e:(o+1)%e,i[o*3+2]=o%2?(o+1)%e:(o+2)%e;return i}_getDistance(e,i){return Math.sqrt(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2))}};L(kc,"type",kc.register("ESCesiumViewer",c.ESPit.type,kc));let iy=kc;const Qc=class Qc extends Un{constructor(e,i){super(e,i);L(this,"_czmPolygonPrimitive");L(this,"_geoPolylines");if(this._czmPolygonPrimitive=this.disposeVar(new Lr(i,e.id)),this._geoPolylines=this.disposeVar(new ai(i,e.id)),!i.viewer){console.warn("viewer is undefined!");return}{const s=()=>{this.geoPolygon&&(this.geoPolygon.show=!1)};s(),this.ad(this.sceneObject.showChanged.don(s))}const r=this._geoPolylines;r.arcType="RHUMB";const a=this._czmPolygonPrimitive;this.dispose(c.track([a,"allowPicking"],[e,"allowPicking"])),this.dispose(c.track([r,"allowPicking"],[e,"allowPicking"])),this.dispose(c.track([r,"color"],[e,"strokeColor"])),this.dispose(c.track([r,"width"],[e,"strokeWidth"]));{a.perPositionHeight=!0;const s=()=>{r.show=e.show&&e.stroked,a.show=e.show&&e.filled,a.material={type:"Color",color:e.fillColor}};s();const l=this.disposeVar(c.createNextAnimateFrameEvent(e.showChanged,e.strokedChanged,e.filledChanged,e.fillColorChanged));this.dispose(l.don(s))}{const s=()=>{const u={positions:[],holes:[]};if(e.points&&e.points.length>=3){if(r.positions=[[...e.points,e.points[0]]],u.positions=e.points,e.innerRings&&e.innerRings.length>0)for(let A=0;A<e.innerRings.length;A++){const h=e.innerRings[A];u.holes.push({positions:h}),r.positions.push([...h,h[0]])}a.polygonHierarchy=u}else a.polygonHierarchy=u};s();const l=this.disposeVar(c.createNextAnimateFrameEvent(e.pointsChanged,e.innerRingsChanged));this.dispose(l.disposableOn(()=>s()))}}get czmPolygonPrimitive(){return this._czmPolygonPrimitive}flyTo(e,i){const{sceneObject:o,czmViewer:r,czmPolygonPrimitive:a}=this;return r.actived?o.flyToParam||o.flyInParam?super.flyTo(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}flyIn(e,i){const{sceneObject:o,czmViewer:r,czmPolygonPrimitive:a}=this;return r.actived?o.flyInParam?super.flyIn(e,i):a.positions?(Me(r,o,i,a.positions,e),!0):!1:!1}};L(Qc,"type",Qc.register("ESCesiumViewer",c.ESPolygonWithHole.type,Qc));let ry=Qc;var sn=63710088e-1,oy={centimeters:sn*100,centimetres:sn*100,degrees:sn/111325,feet:sn*3.28084,inches:sn*39.37,kilometers:sn/1e3,kilometres:sn/1e3,meters:sn,metres:sn,miles:sn/1609.344,millimeters:sn*1e3,millimetres:sn*1e3,nauticalmiles:sn/1852,radians:1,yards:sn*1.0936},EL={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/sn,yards:1.0936133},sy={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function On(t,n,e){e===void 0&&(e={});var i={type:"Feature"};return(e.id===0||e.id)&&(i.id=e.id),e.bbox&&(i.bbox=e.bbox),i.properties=n||{},i.geometry=t,i}function PL(t,n,e){switch(t){case"Point":return Zt(n).geometry;case"LineString":return Yn(n).geometry;case"Polygon":return kt(n).geometry;case"MultiPoint":return n_(n).geometry;case"MultiLineString":return ay(n).geometry;case"MultiPolygon":return ly(n).geometry;default:throw new Error(t+" is invalid")}}function Zt(t,n,e){if(e===void 0&&(e={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Ef(t[0])||!Ef(t[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:t};return On(i,n,e)}function BL(t,n,e){return e===void 0&&(e={}),En(t.map(function(i){return Zt(i,n)}),e)}function kt(t,n,e){e===void 0&&(e={});for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<r[r.length-1].length;a++)if(r[r.length-1][a]!==r[0][a])throw new Error("First and last Position are not equivalent.")}var s={type:"Polygon",coordinates:t};return On(s,n,e)}function TL(t,n,e){return e===void 0&&(e={}),En(t.map(function(i){return kt(i,n)}),e)}function Yn(t,n,e){if(e===void 0&&(e={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var i={type:"LineString",coordinates:t};return On(i,n,e)}function IL(t,n,e){return e===void 0&&(e={}),En(t.map(function(i){return Yn(i,n)}),e)}function En(t,n){n===void 0&&(n={});var e={type:"FeatureCollection"};return n.id&&(e.id=n.id),n.bbox&&(e.bbox=n.bbox),e.features=t,e}function ay(t,n,e){e===void 0&&(e={});var i={type:"MultiLineString",coordinates:t};return On(i,n,e)}function n_(t,n,e){e===void 0&&(e={});var i={type:"MultiPoint",coordinates:t};return On(i,n,e)}function ly(t,n,e){e===void 0&&(e={});var i={type:"MultiPolygon",coordinates:t};return On(i,n,e)}function FL(t,n,e){e===void 0&&(e={});var i={type:"GeometryCollection",geometries:t};return On(i,n,e)}function ML(t,n){if(n===void 0&&(n=0),n&&!(n>=0))throw new Error("precision must be a positive number");var e=Math.pow(10,n||0);return Math.round(t*e)/e}function uy(t,n){n===void 0&&(n="kilometers");var e=oy[n];if(!e)throw new Error(n+" units is invalid");return t*e}function cy(t,n){n===void 0&&(n="kilometers");var e=oy[n];if(!e)throw new Error(n+" units is invalid");return t/e}function DL(t,n){return i_(cy(t,n))}function RL(t){var n=t%360;return n<0&&(n+=360),n}function i_(t){var n=t%(2*Math.PI);return n*180/Math.PI}function tu(t){var n=t%360;return n*Math.PI/180}function UL(t,n,e){if(n===void 0&&(n="kilometers"),e===void 0&&(e="kilometers"),!(t>=0))throw new Error("length must be a positive number");return uy(cy(t,n),e)}function OL(t,n,e){if(n===void 0&&(n="meters"),e===void 0&&(e="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=sy[n];if(!i)throw new Error("invalid original units");var o=sy[e];if(!o)throw new Error("invalid final units");return t/i*o}function Ef(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function hy(t){return!!t&&t.constructor===Object}function LL(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(t.length!==4&&t.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(function(n){if(!Ef(n))throw new Error("bbox must only contain numbers")})}function zL(t){if(!t)throw new Error("id is required");if(["string","number"].indexOf(typeof t)===-1)throw new Error("id must be a number or a string")}const kL=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:sy,bearingToAzimuth:RL,convertArea:OL,convertLength:UL,degreesToRadians:tu,earthRadius:sn,factors:oy,feature:On,featureCollection:En,geometry:PL,geometryCollection:FL,isNumber:Ef,isObject:hy,lengthToDegrees:DL,lengthToRadians:cy,lineString:Yn,lineStrings:IL,multiLineString:ay,multiPoint:n_,multiPolygon:ly,point:Zt,points:BL,polygon:kt,polygons:TL,radiansToDegrees:i_,radiansToLength:uy,round:ML,unitsFactors:EL,validateBBox:LL,validateId:zL},Symbol.toStringTag,{value:"Module"}));function Pf(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return t.geometry.coordinates;if(t.type==="Point")return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Ii(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function QL(t,n,e){if(!t)throw new Error("No featureCollection passed");if(!t||t.type!=="FeatureCollection")throw new Error("Invalid input to "+e+", FeatureCollection required");for(var i=0,o=t.features;i<o.length;i++){var r=o[i];if(!r||r.type!=="Feature"||!r.geometry)throw new Error("Invalid input to "+e+", Feature with geometry required");if(!r.geometry||r.geometry.type!==n)throw new Error("Invalid input to "+e+": must be a "+n+", given "+r.geometry.type)}}function Fi(t){return t.type==="Feature"?t.geometry:t}function VL(t,n){return t.type==="FeatureCollection"?"FeatureCollection":t.type==="GeometryCollection"?"GeometryCollection":t.type==="Feature"&&t.geometry!==null?t.geometry.type:t.type}function Mi(t,n,e){e===void 0&&(e={});var i=Pf(t),o=Pf(n),r=tu(o[1]-i[1]),a=tu(o[0]-i[0]),s=tu(i[1]),l=tu(o[1]),u=Math.pow(Math.sin(r/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(l);return uy(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),e.units)}function Yo(t,n,e){if(t!==null)for(var i,o,r,a,s,l,u,A=0,h=0,f,d=t.type,p=d==="FeatureCollection",g=d==="Feature",v=p?t.features.length:1,y=0;y<v;y++){u=p?t.features[y].geometry:g?t.geometry:t,f=u?u.type==="GeometryCollection":!1,s=f?u.geometries.length:1;for(var m=0;m<s;m++){var b=0,x=0;if(a=f?u.geometries[m]:u,a!==null){l=a.coordinates;var E=a.type;switch(A=e&&(E==="Polygon"||E==="MultiPolygon")?1:0,E){case null:break;case"Point":if(n(l,h,y,b,x)===!1)return!1;h++,b++;break;case"LineString":case"MultiPoint":for(i=0;i<l.length;i++){if(n(l[i],h,y,b,x)===!1)return!1;h++,E==="MultiPoint"&&b++}E==="LineString"&&b++;break;case"Polygon":case"MultiLineString":for(i=0;i<l.length;i++){for(o=0;o<l[i].length-A;o++){if(n(l[i][o],h,y,b,x)===!1)return!1;h++}E==="MultiLineString"&&b++,E==="Polygon"&&x++}E==="Polygon"&&b++;break;case"MultiPolygon":for(i=0;i<l.length;i++){for(x=0,o=0;o<l[i].length;o++){for(r=0;r<l[i][o].length-A;r++){if(n(l[i][o][r],h,y,b,x)===!1)return!1;h++}x++}b++}break;case"GeometryCollection":for(i=0;i<a.geometries.length;i++)if(Yo(a.geometries[i],n,e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function NL(t,n,e,i){var o=e;return Yo(t,function(r,a,s,l,u){a===0&&e===void 0?o=r:o=n(o,r,a,s,l,u)},i),o}function r_(t,n){var e;switch(t.type){case"FeatureCollection":for(e=0;e<t.features.length&&n(t.features[e].properties,e)!==!1;e++);break;case"Feature":n(t.properties,0);break}}function HL(t,n,e){var i=e;return r_(t,function(o,r){r===0&&e===void 0?i=o:i=n(i,o,r)}),i}function ya(t,n){if(t.type==="Feature")n(t,0);else if(t.type==="FeatureCollection")for(var e=0;e<t.features.length&&n(t.features[e],e)!==!1;e++);}function GL(t,n,e){var i=e;return ya(t,function(o,r){r===0&&e===void 0?i=o:i=n(i,o,r)}),i}function WL(t){var n=[];return Yo(t,function(e){n.push(e)}),n}function Ay(t,n){var e,i,o,r,a,s,l,u,A,h,f=0,d=t.type==="FeatureCollection",p=t.type==="Feature",g=d?t.features.length:1;for(e=0;e<g;e++){for(s=d?t.features[e].geometry:p?t.geometry:t,u=d?t.features[e].properties:p?t.properties:{},A=d?t.features[e].bbox:p?t.bbox:void 0,h=d?t.features[e].id:p?t.id:void 0,l=s?s.type==="GeometryCollection":!1,a=l?s.geometries.length:1,o=0;o<a;o++){if(r=l?s.geometries[o]:s,r===null){if(n(null,f,u,A,h)===!1)return!1;continue}switch(r.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(n(r,f,u,A,h)===!1)return!1;break}case"GeometryCollection":{for(i=0;i<r.geometries.length;i++)if(n(r.geometries[i],f,u,A,h)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}f++}}function jL(t,n,e){var i=e;return Ay(t,function(o,r,a,s,l){r===0&&e===void 0?i=o:i=n(i,o,r,a,s,l)}),i}function rr(t,n){Ay(t,function(e,i,o,r,a){var s=e===null?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return n(On(e,o,{bbox:r,id:a}),i,0)===!1?!1:void 0}var l;switch(s){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon";break}for(var u=0;u<e.coordinates.length;u++){var A=e.coordinates[u],h={type:l,coordinates:A};if(n(On(h,o),i,u)===!1)return!1}})}function qL(t,n,e){var i=e;return rr(t,function(o,r,a){r===0&&a===0&&e===void 0?i=o:i=n(i,o,r,a)}),i}function o_(t,n){rr(t,function(e,i,o){var r=0;if(e.geometry){var a=e.geometry.type;if(!(a==="Point"||a==="MultiPoint")){var s,l=0,u=0,A=0;if(Yo(e,function(h,f,d,p,g){if(s===void 0||i>l||p>u||g>A){s=h,l=i,u=p,A=g,r=0;return}var v=Yn([s,h],e.properties);if(n(v,i,o,g,r)===!1)return!1;r++,s=h})===!1)return!1}}})}function s_(t,n,e){var i=e,o=!1;return o_(t,function(r,a,s,l,u){o===!1&&e===void 0?i=r:i=n(i,r,a,s,l,u),o=!0}),i}function a_(t,n){if(!t)throw new Error("geojson is required");rr(t,function(e,i,o){if(e.geometry!==null){var r=e.geometry.type,a=e.geometry.coordinates;switch(r){case"LineString":if(n(e,i,o,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(n(Yn(a[s],e.properties),i,o,s)===!1)return!1;break}}})}function KL(t,n,e){var i=e;return a_(t,function(o,r,a,s){r===0&&e===void 0?i=o:i=n(i,o,r,a,s)}),i}function ZL(t,n){if(n=n||{},!hy(n))throw new Error("options is invalid");var e=n.featureIndex||0,i=n.multiFeatureIndex||0,o=n.geometryIndex||0,r=n.segmentIndex||0,a=n.properties,s;switch(t.type){case"FeatureCollection":e<0&&(e=t.features.length+e),a=a||t.features[e].properties,s=t.features[e].geometry;break;case"Feature":a=a||t.properties,s=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=t;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var l=s.coordinates;switch(s.type){case"Point":case"MultiPoint":return null;case"LineString":return r<0&&(r=l.length+r-1),Yn([l[r],l[r+1]],a,n);case"Polygon":return o<0&&(o=l.length+o),r<0&&(r=l[o].length+r-1),Yn([l[o][r],l[o][r+1]],a,n);case"MultiLineString":return i<0&&(i=l.length+i),r<0&&(r=l[i].length+r-1),Yn([l[i][r],l[i][r+1]],a,n);case"MultiPolygon":return i<0&&(i=l.length+i),o<0&&(o=l[i].length+o),r<0&&(r=l[i][o].length-r-1),Yn([l[i][o][r],l[i][o][r+1]],a,n)}throw new Error("geojson is invalid")}function $L(t,n){if(n=n||{},!hy(n))throw new Error("options is invalid");var e=n.featureIndex||0,i=n.multiFeatureIndex||0,o=n.geometryIndex||0,r=n.coordIndex||0,a=n.properties,s;switch(t.type){case"FeatureCollection":e<0&&(e=t.features.length+e),a=a||t.features[e].properties,s=t.features[e].geometry;break;case"Feature":a=a||t.properties,s=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=t;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var l=s.coordinates;switch(s.type){case"Point":return Zt(l,a,n);case"MultiPoint":return i<0&&(i=l.length+i),Zt(l[i],a,n);case"LineString":return r<0&&(r=l.length+r),Zt(l[r],a,n);case"Polygon":return o<0&&(o=l.length+o),r<0&&(r=l[o].length+r),Zt(l[o][r],a,n);case"MultiLineString":return i<0&&(i=l.length+i),r<0&&(r=l[i].length+r),Zt(l[i][r],a,n);case"MultiPolygon":return i<0&&(i=l.length+i),o<0&&(o=l[i].length+o),r<0&&(r=l[i][o].length-r),Zt(l[i][o][r],a,n)}throw new Error("geojson is invalid")}const XL=Object.freeze(Object.defineProperty({__proto__:null,coordAll:WL,coordEach:Yo,coordReduce:NL,featureEach:ya,featureReduce:GL,findPoint:$L,findSegment:ZL,flattenEach:rr,flattenReduce:qL,geomEach:Ay,geomReduce:jL,lineEach:a_,lineReduce:KL,propEach:r_,propReduce:HL,segmentEach:o_,segmentReduce:s_},Symbol.toStringTag,{value:"Module"}));function YL(t,n){return n===void 0&&(n={}),s_(t,function(e,i){var o=i.geometry.coordinates;return e+Mi(o[0],o[1],n)},0)}function JL(t){var n=Yn(t),e=YL(n,{units:"meters"});return e}function*ez(t){t.type==="FeatureCollection"?yield*t.features.map(n=>[n.geometry,n]):t.type==="Feature"&&(yield[t.geometry,t])}function*tz(t){for(const[n,e]of ez(t))if(n.type==="LineString")yield[n.coordinates,e];else if(n.type==="MultiLineString")for(let i of n.coordinates)yield[i,e]}function nz(t,n,e){return[...tz(t)].map(([i,o])=>{if(i.length<2)return;const r=i.map(l=>[l[0],l[1],l[2]??0]),s=JL(r)/e;return{positions:r,repeat:s,width:n,extra:{geojson:{feature:o}}}}).filter(i=>!!i)}const nu=_.ArcType,iz=_.arrayRemoveDuplicates,rz=_.BoundingSphere,It=_.Cartesian3,Pn=_.Color,va=_.ComponentDatatype,oz=_.Frozen,Ln=_.defined,wa=_.DeveloperError,Di=_.Ellipsoid,sz=_.Geometry,ba=_.GeometryAttribute,az=_.GeometryAttributes,lz=_.GeometryType,uz=_.IndexDatatype,l_=_.Math,iu=_.PolylinePipeline,cz=_.PrimitiveType,or=_.VertexFormat;var u_=[];function hz(t,n,e,i,o){var r=u_;r.length=o;var a,s=e.red,l=e.green,u=e.blue,A=e.alpha,h=i.red,f=i.green,d=i.blue,p=i.alpha;if(Pn.equals(e,i)){for(a=0;a<o;a++)r[a]=Pn.clone(e);return r}var g=(h-s)/o,v=(f-l)/o,y=(d-u)/o,m=(p-A)/o;for(a=0;a<o;a++)r[a]=new Pn(s+a*g,l+a*v,u+a*y,A+a*m);return r}function xa(t){t=t??oz.EMPTY_OBJECT;var n=t.positions,e=t.colors,i=t.width??1,o=t.colorsPerVertex??!1;if(!Ln(n)||n.length<2)throw new wa("At least two positions are required.");if(typeof i!="number")throw new wa("width must be a number");if(Ln(e)&&(o&&e.length<n.length||!o&&e.length<n.length-1))throw new wa("colors has an invalid length.");this._positions=n,this._colors=e,this._width=i,this._colorsPerVertex=o,this._vertexFormat=or.clone(t.vertexFormat??or.DEFAULT),this._arcType=t.arcType??nu.GEODESIC,this._granularity=t.granularity??l_.RADIANS_PER_DEGREE,this._ellipsoid=Di.clone(t.ellipsoid??Di.WGS84),this._workerName="createPolylineGeometry";var r=1+n.length*It.packedLength;r+=Ln(e)?1+e.length*Pn.packedLength:1,this.packedLength=r+Di.packedLength+or.packedLength+4}xa.pack=function(t,n,e){if(!Ln(t))throw new wa("value is required");if(!Ln(n))throw new wa("array is required");e=e??0;var i,o=t._positions,r=o.length;for(n[e++]=r,i=0;i<r;++i,e+=It.packedLength)It.pack(o[i],n,e);var a=t._colors;for(r=Ln(a)?a.length:0,n[e++]=r,i=0;i<r;++i,e+=Pn.packedLength)Pn.pack(a[i],n,e);return Di.pack(t._ellipsoid,n,e),e+=Di.packedLength,or.pack(t._vertexFormat,n,e),e+=or.packedLength,n[e++]=t._width,n[e++]=t._colorsPerVertex?1:0,n[e++]=t._arcType,n[e]=t._granularity,n};var c_=Di.clone(Di.UNIT_SPHERE),h_=new or,Jo={positions:void 0,colors:void 0,ellipsoid:c_,vertexFormat:h_,width:void 0,colorsPerVertex:void 0,arcType:void 0,granularity:void 0};xa.unpack=function(t,n,e){if(!Ln(t))throw new wa("array is required");n=n??0;var i,o=t[n++],r=new Array(o);for(i=0;i<o;++i,n+=It.packedLength)r[i]=It.unpack(t,n);o=t[n++];var a=o>0?new Array(o):void 0;for(i=0;i<o;++i,n+=Pn.packedLength)a[i]=Pn.unpack(t,n);var s=Di.unpack(t,n,c_);n+=Di.packedLength;var l=or.unpack(t,n,h_);n+=or.packedLength;var u=t[n++],A=t[n++]===1,h=t[n++],f=t[n];return Ln(e)?(e._positions=r,e._colors=a,e._ellipsoid=Di.clone(s,e._ellipsoid),e._vertexFormat=or.clone(l,e._vertexFormat),e._width=u,e._colorsPerVertex=A,e._arcType=h,e._granularity=f,e):(Jo.positions=r,Jo.colors=a,Jo.width=u,Jo.colorsPerVertex=A,Jo.arcType=h,Jo.granularity=f,new xa(Jo))};var A_=new It,f_=new It,p_=new It,d_=new It;xa.createGeometry=function(t){var n=t._width,e=t._vertexFormat,i=t._colors,o=t._colorsPerVertex,r=t._arcType,a=t._granularity,s=t._ellipsoid,l,u,A,h=iz(t._positions,It.equalsEpsilon),f=h.length;if(f<2||n<=0)return;if(r===nu.GEODESIC||r===nu.RHUMB){var d,p;r===nu.GEODESIC?(d=l_.chordLength(a,s.maximumRadius),p=iu.numberOfPoints):(d=a,p=iu.numberOfPointsRhumbLine);var g=iu.extractHeights(h,s);if(Ln(i)){var v=1;for(l=0;l<f-1;++l)v+=p(h[l],h[l+1],d);var y=new Array(v),m=0;for(l=0;l<f-1;++l){var b=h[l],x=h[l+1],E=i[l],B=p(b,x,d);if(o&&l<v){var P=i[l+1],I=hz(b,x,E,P,B),M=I.length;for(u=0;u<M;++u)y[m++]=I[u]}else for(u=0;u<B;++u)y[m++]=Pn.clone(E)}y[m]=Pn.clone(i[i.length-1]),i=y,u_.length=0}r===nu.GEODESIC?h=iu.generateCartesianArc({positions:h,minDistance:d,ellipsoid:s,height:g}):h=iu.generateCartesianRhumbArc({positions:h,granularity:d,ellipsoid:s,height:g})}f=h.length;var F=f*4-4,S=new Float64Array(F*3),T=new Float64Array(F*3),w=new Float64Array(F*3),C=new Float32Array(F*2),D=e.st?new Float32Array(F*2):void 0,R=Ln(i)?new Uint8Array(F*4):void 0,U=0,O=0,z=0,k=0,Q;let N=[0];{for(l=0;l<f-1;l++){const G=_.Cartesian3.distance(h[l],h[l+1]);N.push(N[N.length-1]+G)}N=N.map(G=>G/N[N.length-1])}for(u=0;u<f;++u){u===0?(Q=A_,It.subtract(h[0],h[1],Q),It.add(h[0],Q,Q)):Q=h[u-1],It.clone(Q,p_),It.clone(h[u],f_),u===f-1?(Q=A_,It.subtract(h[f-1],h[f-2],Q),It.add(h[f-1],Q,Q)):Q=h[u+1],It.clone(Q,d_);var j,J;Ln(R)&&(u!==0&&!o?j=i[u-1]:j=i[u],u!==f-1&&(J=i[u]));var ee=u===0?2:0,ie=u===f-1?2:4;for(A=ee;A<ie;++A){It.pack(f_,S,U),It.pack(p_,T,U),It.pack(d_,w,U),U+=3;var oe=A-2<0?-1:1;if(C[O++]=2*(A%2)-1,C[O++]=oe*n,e.st&&(D[z++]=N[u],D[z++]=Math.max(C[O-2],0)),Ln(R)){var ue=A<2?j:J;R[k++]=Pn.floatToByte(ue.red),R[k++]=Pn.floatToByte(ue.green),R[k++]=Pn.floatToByte(ue.blue),R[k++]=Pn.floatToByte(ue.alpha)}}}var le=new az;le.position=new ba({componentDatatype:va.DOUBLE,componentsPerAttribute:3,values:S}),le.prevPosition=new ba({componentDatatype:va.DOUBLE,componentsPerAttribute:3,values:T}),le.nextPosition=new ba({componentDatatype:va.DOUBLE,componentsPerAttribute:3,values:w}),le.expandAndWidth=new ba({componentDatatype:va.FLOAT,componentsPerAttribute:2,values:C}),e.st&&(le.st=new ba({componentDatatype:va.FLOAT,componentsPerAttribute:2,values:D})),Ln(R)&&(le.color=new ba({componentDatatype:va.UNSIGNED_BYTE,componentsPerAttribute:4,values:R,normalize:!0}));var ne=uz.createTypedArray(F,f*6-6),ce=0,$=0,q=f-1;for(u=0;u<q;++u)ne[$++]=ce,ne[$++]=ce+2,ne[$++]=ce+1,ne[$++]=ce+1,ne[$++]=ce+2,ne[$++]=ce+3,ce+=4;return new sz({attributes:le,indices:ne,primitiveType:cz.TRIANGLES,boundingSphere:rz.fromPoints(h),geometryType:lz.POLYLINES})};var fy;function Az(){return typeof fy>"u"&&(fy=new _.EllipsoidGeodesic),fy}function fz(t,n){var e=n/3e7;return e=Math.min(1,e),e=1-Math.pow(1-e,2),Math.sin(Math.PI*t)*1e6*e}function pz(t,n,e,i=1){var o=Az(),r=_.Cartesian3.fromDegreesArray([t[0],t[1],n[0],n[1]]),a=[0,0];t.length>=3&&n.length>=3&&(a=[t[2],n[2]]);var s=_.Cartographic.fromDegrees(t[0],t[1]),l=_.Cartographic.fromDegrees(n[0],n[1]);o.setEndPoints(s,l);var u=o.surfaceDistance,A=_.PolylinePipeline.generateCartesianArc({positions:r,height:a,minDistance:u/36}),h=A.length;return A.forEach(function(f,d){var p=d/(h-1),g=fz(p,u*i),v=_.Cartographic.fromCartesian(f);v.height+=g,_.Cartesian3.fromRadians(v.longitude,v.latitude,v.height,_.Ellipsoid.WGS84,A[d])}),A}function dz(t=[.8,.8,0,1],n=!0,e=!0,i){var o;const r=i?{type:"Image",uniforms:{color:new _.Color(...t)}}:{type:"Color",uniforms:{color:new _.Color(...t)}};n?(o=new _.PolylineMaterialAppearance({material:new _.Material({fabric:r,translucent:!1}),translucent:!1}),o.renderState.blending=_.BlendingState.ADDITIVE_BLEND,o.renderState.depthMask=!1,o.renderState.depthTest={enabled:!0},o.getRenderState=function(){const A=_.Appearance.prototype.getRenderState.call(this);return A.depthTest={enabled:e},A.depthMask=!1,A},o.material.type==="Image"&&(o.material._uniforms.image_1=i)):(o=new _.PolylineMaterialAppearance({material:new _.Material({fabric:r,translucent:!0})}),o.getRenderState=function(){const A=_.Appearance.prototype.getRenderState.call(this);return A.depthTest={enabled:e},A.depthMask=!1,A},o.material.type==="Image"&&(o.material._uniforms.image_1=i));var a=_.ShaderSource.replaceMain(o._vertexShaderSource,"czm_twp_main"),s=`out vec4 v_twp;
3669
3669
  out vec4 v_color;
3670
3670
  out vec4 v_bgColor;
3671
3671
  out float v_expand;
@@ -3835,7 +3835,7 @@ return material;
3835
3835
  float arrowRepeat = pos.x / (repeat * czm_pixelRatio);
3836
3836
  float u = fract(arrowRepeat - speed / 10.0 * czm_frameNumber / 60.0);
3837
3837
  vec4 colorImage = texture(image, vec2(u, materialInput.st.t));
3838
- vec4 fragColor = vec4(arrowColor.rgb*colorImage.a + color.rgb*(1.0-colorImage.a), color.a);
3838
+ vec4 fragColor = colorImage.a * arrowColor + (1.0 - colorImage.a) * color;
3839
3839
 
3840
3840
  fragColor = czm_gammaCorrect(fragColor);
3841
3841
  material.emission = fragColor.rgb;
@@ -4142,10 +4142,10 @@ async function initCesiumViewer(container, czmViewer) {
4142
4142
  `;function RH(){const t="https://gitee.com/mirrors/CesiumJS/blob/main/packages/engine/Source/Core/Ion.js#L7",e=` 因浏览器同源策略限制,需要用户自行打开网址获取最新的token,点击确定自动打开网址,请不要拦截!
4143
4143
  github地址:https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L7
4144
4144
  gitee地址:${t}
4145
- `;console.log(e);const i=window.prompt(e,t);i&&window.open(i,"_blank")}const Nt=class Nt extends c.ESViewer{constructor(e){super(e);L(this,"_disabledInputStack",this.disposeVar(c.react(0)));L(this,"_viewer",this.dv(c.react(void 0)));L(this,"_viewerInstance");L(this,"_viewerLegend");L(this,"pickCustomAttachedInfo");L(this,"_fps",this.dv(c.react(0)));L(this,"_notSupportEditingCount",this.disposeVar(c.react(0)));L(this,"_editingSystem",Wf);L(this,"_moveObjectsProcess",this.ad(RS()));if(e.type!=="ESCesiumViewer")throw new Error("option.type must be ESCesiumViewer");this.ad(new dV(this)),this.ad(new mV(this)),this.dv(new c.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new wV(this)})),this._viewerLegend=this.dv(new BH(this)),this._viewerInstance=this.dv(new c.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new kv(this,this.viewer)})),this.d(this.viewerChanged.don(o=>{this.viewer&&(this.viewer.scene.globe.baseColor=Be([1,1,1,1]))}));const i=e;this.d(this._viewer.changed.don(o=>{this.viewerChanged.emit(o)})),this.dv(new c.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new yN(this.subContainer,this,o=>this._viewer.value=o,i.options)}))}get disabledInputStack(){return this._disabledInputStack.value}get disabledInputStackChanged(){return this._disabledInputStack.changed}incrementDisabledInputStack(){++this._disabledInputStack.value}decrementDisabledInputStack(){--this._disabledInputStack.value}get viewer(){return this._viewer.value}get extensions(){return this.viewer&&Qn(this.viewer)}get viewerInstance(){return this._viewerInstance}get viewerLegend(){return this._viewerLegend}async pick(e,i,o){if(!this.extensions)return;const{pickingManager:r}=this.extensions;return await r.pick(e,void 0,i)}async pickPosition(e){if(!this.extensions)return;const{pickingManager:i}=this.extensions;return await i.pickPosition(e)}async quickPickPosition(e){if(!this.extensions)return;const{pickingManager:i}=this.extensions;return await i.quickPickPosition(e)}async getTerrainHeight(e){const{viewer:i}=this;if(!i)return;const o=_.Cartographic.fromDegrees(e[0],e[1],e[2],Nt.getHeightsScartchCarto);return i.scene.globe.getHeight(o)}getCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Fn(e),rotation:ms(e)}}calcFlyToParam(e){if(!this.viewer)return;const{camera:i}=this.viewer;if(!i||!e)return;const o=_.Cartesian3.fromDegrees(...e),r=_.Transforms.eastNorthUpToFixedFrame(o),a=_.Matrix4.inverse(r,new _.Matrix4),s=_.Matrix4.multiplyByPoint(a,i.positionWC,new _.Cartesian3),l=_.Cartesian3.magnitude(s);let u=-Math.asin(s.z/l);u=_.Math.toDegrees(u);let A=_.Math.PI_OVER_TWO-Math.atan(s.y/s.x);s.x>0&&(A+=s.y<0?-_.Math.PI:_.Math.PI),A=_.Math.toDegrees(A);const h=ms(i),f=h[0]-A,d=h[1]-u;return{distance:l,heading:A,pitch:u,flyDuration:1,hDelta:f,pDelta:d}}flyIn(e,i,o,r="default"){var l;if(!i)return;const a={position:e,rotation:i,duration:(o??1)*1e3},s=(l=this.viewer)==null?void 0:l.camera;return s&&rl(s,a,r)}flyTo(e,i,o="default"){var d;const{distance:r,heading:a,pitch:s,flyDuration:l,hDelta:u,pDelta:A}=e,h={position:i,viewDistance:r,rotation:[a,s,0],duration:l*1e3,hdelta:u,pdelta:A},f=(d=this.viewer)==null?void 0:d.camera;return f&&rl(f,h,o)}flyToBoundingSphere(e,i,o=1){var h;const r=[[e[0],e[1],0],[e[0],e[3],0],[e[2],e[3],0],[e[2],e[1],0]],a=c.getGeoBoundingSphereFromPositions(r);if(!a)return;const{center:s,radius:l}=a,u={position:s,viewDistance:i??l,rotation:[0,-90,0],duration:o*1e3},A=(h=this.viewer)==null?void 0:h.camera;return A&&rl(A,u)}getCurrentCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Fn(e),rotation:ms(e)}}getLengthInPixel(){return this._viewerLegend.length}changeToWalk(e,i=4.2,o=1.6){var r,a;(a=(r=this._viewerInstance)==null?void 0:r.obj)==null||a.navigationManager.changeToWalk(e,i,o),this._navigationMode.value="Walk"}changeToMap(){var e,i;(i=(e=this._viewerInstance)==null?void 0:e.obj)==null||i.navigationManager.changeToMap(),this._navigationMode.value="Map"}changeToRotateGlobe(e,i,o){var r,a;(a=(r=this._viewerInstance)==null?void 0:r.obj)==null||a.navigationManager.changeToRotateGlobe(e,i,o),this._navigationMode.value="RotateGlobe"}changeToLine(e,i,o,r,a,s){var l,u;(u=(l=this._viewerInstance)==null?void 0:l.obj)==null||u.navigationManager.changeToLine(e,i,o,r,a,s),this._navigationMode.value="Line"}changeToUserDefined(e){this.changeToMap(),console.warn("Cesium引擎暂不支持自定义漫游,已切换为Map模式")}changeToRotatePoint(e,i,o,r,a){var s,l;(l=(s=this._viewerInstance)==null?void 0:s.obj)==null||l.navigationManager.changeToRotatePoint(e,i,o,r,a),this._navigationMode.value="RotatePoint"}changeToFollow(e,i,o,r,a){var s,l;(l=(s=this._viewerInstance)==null?void 0:s.obj)==null||l.navigationManager.changeToFollow(e,i,o,r,a),this._navigationMode.value="Follow"}getFPS(){return this._fps.value}async getBoundSphere(e){return Promise.resolve(void 0)}async getVersion(){const e=window.g_XE3CopyRights??{};return e.cesium=_.VERSION,e}async getHeightByLonLat(e,i,o){if(!this.viewer)return null;const r=_.Cartographic.fromDegrees(e,i,void 0,Nt.getHeightsScartchCarto);return this.viewer.scene.sampleHeight(r)??null}async getHeightsByLonLats(e,i){const o=e.map(a=>this.getHeightByLonLat(...a));return await Promise.all(o)}async capture(e,i){if(this.viewer)return await P0(this.viewer.scene,e,i)}async lonLatAltToScreenPosition(e){if(!this.viewer||!this.isPointVisible(e))return;const i=this.viewer.scene.cartesianToCanvasCoordinates(ft(e));if(i)return[i.x,i.y]}get notSupportEditingCount(){return this._notSupportEditingCount.value}set notSupportEditingCount(e){this._notSupportEditingCount.value=e}get notSupportEditingCountChanged(){return this._notSupportEditingCount.changed}startEditing(e,i,o){o=Object.assign({useKeyToSwitch:!0,callSource:"outer"},o);const r=e.components.main??e;r&&i!=null&&(r.editingID=`${o.callSource}_${c.createGuid()}`,this._editingSystem.create(this,r,i,o.useKeyToSwitch))}stopEditing(){this._editingSystem.stop()}moveObjects(e){const i=[],o=c.createGuid();for(let r=0;r<e.length;r++){const a=e[r],s=a.components.main??a;s.editingID=o,s&&i.push(s)}this._moveObjectsProcess.restart(void 0,this,i,o)}getCzmObject(e){return this.sceneObjectsMap.get(e)}setCurrentDefaultAccessToken(){this.ionAccessToken=Nt.currentDefaultAccessToken}setLatestDefaultAccessToken(){if(!Nt.latestDefaultAccessToken){alert("Cesium最新的iontoken无法获取!"),console.error("Cesium最新的iontoken无法获取!");return}this.ionAccessToken=Nt.latestDefaultAccessToken}positionsToLocalPositions(e,i){return vn(e,i)}localPositionsToPositions(e,i){return _r(e,i)}isPointVisible(e){if(!this.viewer)return!1;const i=ft(e),o=new _.EllipsoidalOccluder(this.viewer.scene.globe.ellipsoid,this.viewer.scene.camera.positionWC);if(o.cameraPosition=this.viewer.scene.camera.positionWC,!o.isPointVisible(i))return!1;const r=this.viewer.scene.cartesianToCanvasCoordinates(i);return!(!r||r.x<0||r.y<0)}getESProperties(){const e={...super.getESProperties()},i=Nt.defaults;return{...e,more:[...e.more,new c.GroupProperty([],"通用","通用"),new c.EvalStringProperty([this,"createCesiumViewerFuncStr"],"CesiumViewer创建函数",DH,MH,!0),new c.FunctionProperty([],()=>Nt.getCesiumIonToken(),[],"获取官方token"),new c.FunctionProperty([],()=>this.setCurrentDefaultAccessToken(),[],"重置为当前使用的Cesium版本的token"),new c.FunctionProperty([],()=>this.setLatestDefaultAccessToken(),[],"最新token","重置为当前Cesium官方的最新token"),new c.BooleanProperty([this,"flashLighting"],"头顶灯",i.flashLighting,!0),new c.BooleanProperty([this,"particleGlobalControl"],"粒子全局控制播放",i.particleGlobalControl,!0),new c.GroupProperty([],"Viewer","Viewer"),new c.NumberProperty([this,"resolutionScale"],"分辨率比率",i.resolutionScale,!0),new c.NumberProperty([this,"msaaSamples"],"msaaSamples",i.msaaSamples,!0),new c.BooleanProperty([this,"shadows"]),new c.GroupProperty([],"比例尺","比例尺(Legend)"),new c.NumberProperty([this.viewerLegend,"resolution"],"resolution",void 0,!0,!0),new c.NumberProperty([this.viewerLegend,"zoom"],"zoom",void 0,!0,!0),new c.Number3Property([this.viewerLegend,"center"],"center",void 0,!0,!0),new c.NumberProperty([this.viewerLegend.legend,"lengthInPixels"],"lengthInPixels",100,!0,!1),new c.NumberProperty([this.viewerLegend.legend,"computedLengthInPixels"],"computedLengthInPixels",void 0,!0,!0),new c.NumberProperty([this.viewerLegend.legend,"computedLengthInMeters"],"computedLengthInMeters",void 0,!0,!0),new c.StringProperty([this.viewerLegend.legend,"computedLengthInStr"],"computedLengthInStr",void 0,!0,!0),new c.GroupProperty([],"场景","场景(Scene)"),new c.NumberProperty([this,"sceneSplitPosition"],"内部视口分割比例",i.sceneSplitPosition,!0),new c.GroupProperty([],"Globe","Globe"),new c.EnumProperty([this,"sceneGlobeShadows"],[["禁用","DISABLED"],["启用","ENABLED"],["仅投射","CAST_ONLY"],["仅接收","RECEIVE_ONLY"]],"sceneGlobeShadows",i.sceneGlobeShadows,!0),new c.NumberProperty([this,"sceneGlobeTerrainExaggeration"]),new c.NumberProperty([this,"sceneGlobeTerrainExaggerationRelativeHeight"]),new c.NumberProperty([this,"sceneGlobeVerticalExaggeration"]),new c.NumberProperty([this,"sceneGlobeVerticalExaggerationRelativeHeight"]),new c.BooleanProperty([this,"sceneGlobeBackFaceCulling"]),new c.BooleanProperty([this,"sceneGlobeShowSkirts"]),new c.BooleanProperty([this,"sceneGlobeShowWaterEffect"]),new c.ColorProperty([this,"sceneGlobeBaseColor"]),new c.Number4Property([this,"sceneGlobeCartographicLimitRectangle"]),new c.JsonProperty([this,"sceneGlobeClippingPlanes"]),new c.StringProperty([this,"sceneGlobeClippingPlanesId"]),new c.JsonProperty([this,"sceneGlobeClippingPolygons"]),new c.StringsProperty([this,"sceneGlobeClippingPolygonsId"]),new c.GroupProperty([],"underground","underground"),new c.ColorProperty([this,"sceneGlobeUndergroundColor"],"sceneGlobeUndergroundColor",i.sceneGlobeUndergroundColor,!0),new c.Number4Property([this,"sceneGlobeUndergroundColorAlphaByDistance"],"sceneGlobeUndergroundColorAlphaByDistance",i.sceneGlobeUndergroundColorAlphaByDistance,!0),new c.GroupProperty([],"Translucency","Translucency"),new c.Number4Property([this,"sceneGlobeTranslucencyBackFaceAlphaByDistance"],"背面渐变透明度",i.sceneGlobeTranslucencyBackFaceAlphaByDistance,!0),new c.Number4Property([this,"sceneGlobeTranslucencyFrontFaceAlphaByDistance"],"正面渐变透明度",i.sceneGlobeTranslucencyFrontFaceAlphaByDistance,!0),new c.Number4Property([this,"sceneGlobeTranslucencyRectangle"],"矩形范围",i.sceneGlobeTranslucencyRectangle,!0),new c.GroupProperty([],"Sun","Sun"),new c.BooleanProperty([this,"sun"],"sun",i.sun,!0),new c.NumberProperty([this,"sceneSunGlowFactor"],"sceneSunGlowFactor",i.sceneSunGlowFactor,!0),new c.GroupProperty([],"Moon","Moon"),new c.BooleanProperty([this,"moon"],"moon",i.moon,!0),new c.StringProperty([this,"sceneMoonTextureUrl"],"sceneMoonTextureUrl",i.sceneMoonTextureUrl,!0),new c.BooleanProperty([this,"sceneMoonOnlySunLighting"],"sceneMoonOnlySunLighting",i.sceneMoonOnlySunLighting,!0),new c.GroupProperty([],"SkyBox","SkyBox"),new c.BooleanProperty([this,"sceneSkyBoxShow"]),new c.JsonProperty([this,"sceneSkyBoxSources"],"sceneSkyBoxSources",i.sceneSkyBoxSources,void 0,!0),new c.GroupProperty([],"Background","Background"),new c.BooleanProperty([this,"xbsjUseBackground"]),new c.StringProperty([this,"xbsjBackgroundImageUri"]),new c.ColorProperty([this,"xbsjBackgroundColor"]),new c.GroupProperty([],"SkyAtmosphere","SkyAtmosphere"),new c.JsonProperty([this,"xbsjLocalBoxSources"],"xbsjLocalBoxSources",i.xbsjLocalBoxSources,void 0,!0),new c.ColorProperty([this,"sceneBackgroundColor"]),new c.GroupProperty([],"Fog","Fog"),new c.BooleanProperty([this,"sceneFogEnabled"],"sceneFogEnabled",i.sceneFogEnabled,!0),new c.NumberProperty([this,"sceneFogDensity"],"sceneFogDensity",i.sceneFogDensity,!0),new c.NumberProperty([this,"sceneFogScreenSpaceErrorFactor"],"sceneFogScreenSpaceErrorFactor",i.sceneFogScreenSpaceErrorFactor,!0),new c.NumberProperty([this,"sceneFogMinimumBrightness"],"sceneFogMinimumBrightness",i.sceneFogMinimumBrightness,!0),new c.GroupProperty([],"Sscc","Sscc"),new c.BooleanProperty([this,"sceneSsccEnableInputs"],"sceneSsccEnableInputs",i.sceneSsccEnableInputs,!0),new c.BooleanProperty([this,"sceneSsccEnableCollisionDetection"],"sceneSsccEnableCollisionDetection",i.sceneSsccEnableCollisionDetection,!0),new c.NumberProperty([this,"sceneSsccZoomFactor"],"sceneSsccZoomFactor",i.sceneSsccZoomFactor,!0),new c.NumberProperty([this,"sceneCameraFrustumFov"],"相机广角"),new c.GroupProperty([],"后处理","后处理"),new c.BooleanProperty([this,"scenePpsfxaaEnabled"],"开启FXAA",i.scenePpsfxaaEnabled,!0),new c.GroupProperty([],"环境遮蔽","环境遮蔽"),new c.BooleanProperty([this,"scenePpsAmbientOcclusionEnabled"]),new c.BooleanProperty([this,"scenePpsAmbientOcclusionAmbientOcclusionOnly"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionIntensity"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionBias"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionLengthCap"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionStepSize"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionBlurStepSize"]),new c.GroupProperty([],"Bloom","Bloom"),new c.BooleanProperty([this,"scenePpsBloomEnabled"]),new c.BooleanProperty([this,"scenePpsBloomGlowOnly"]),new c.NumberProperty([this,"scenePpsBloomContrast"]),new c.NumberProperty([this,"scenePpsBloomBrightness"]),new c.NumberProperty([this,"scenePpsBloomDelta"]),new c.NumberProperty([this,"scenePpsBloomSigma"]),new c.NumberProperty([this,"scenePpsBloomStepSize"]),new c.GroupProperty([],"调试","调试"),new c.BooleanProperty([this,"sceneDebugShowFramesPerSecond"],"sceneDebugShowFramesPerSecond",i.sceneDebugShowFramesPerSecond,!0),new c.BooleanProperty([this,"sceneDebugShowCommands"],"sceneDebugShowCommands",i.sceneDebugShowCommands,!0),new c.BooleanProperty([this,"sceneDebugShowFrustums"],"sceneDebugShowFrustums",i.sceneDebugShowFrustums,!0),new c.BooleanProperty([this,"sceneDebugShowFrustumPlanes"],"sceneDebugShowFrustumPlanes",i.sceneDebugShowFrustumPlanes,!0),new c.NumberProperty([this,"sceneDebugShowDepthFrustum"],"sceneDebugShowDepthFrustum",i.sceneDebugShowDepthFrustum,!0),new c.GroupProperty([],"Inspector","Inspector"),new c.BooleanProperty([this,"showCesiumInspector"],"showCesiumInspector",i.showCesiumInspector,!0),new c.BooleanProperty([this,"cesiumInspectorWireframe"],"cesiumInspectorWireframe",i.cesiumInspectorWireframe,!0),new c.BooleanProperty([this,"showCesium3DTilesInspector"],"showCesium3DTilesInspector",i.showCesium3DTilesInspector,!0)]}}};L(Nt,"type",Nt.register("ESCesiumViewer",Nt)),L(Nt,"getCesiumIonToken",RH),L(Nt,"currentDefaultAccessToken",_.Ion.defaultAccessToken),L(Nt,"latestDefaultAccessToken"),L(Nt,"ObjectsToExcludeWrapper",vV),L(Nt,"defaults",{...c.ESViewer.defaults,flashLighting:!1,resolutionScale:1,msaaSamples:4,sceneSplitPosition:0,sceneGlobeShadows:"RECEIVE_ONLY",sceneGlobeUndergroundColor:[0,0,0,1],sceneGlobeUndergroundColorAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyBackFaceAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyFrontFaceAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyRectangle:[-3.141592653589793,-1.5707963267948966,3.141592653589793,1.5707963267948966].map(e=>180*e/Math.PI),sun:!0,sceneSunGlowFactor:1,moon:!0,sceneMoonTextureUrl:_.buildModuleUrl("Assets/Textures/moonSmall.jpg"),sceneMoonOnlySunLighting:!0,sceneSkyBoxSources:{positiveX:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_px.jpg"),negativeX:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mx.jpg"),positiveY:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_py.jpg"),negativeY:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_my.jpg"),positiveZ:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_pz.jpg"),negativeZ:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mz.jpg")},xbsjLocalBoxSources:{positiveX:"${earthsdk3-assets-script-dir}/assets/img/skybox/east.jpg",negativeX:"${earthsdk3-assets-script-dir}/assets/img/skybox/west.jpg",positiveY:"${earthsdk3-assets-script-dir}/assets/img/skybox/bottom.jpg",negativeY:"${earthsdk3-assets-script-dir}/assets/img/skybox/top.jpg",positiveZ:"${earthsdk3-assets-script-dir}/assets/img/skybox/north.jpg",negativeZ:"${earthsdk3-assets-script-dir}/assets/img/skybox/south.jpg"},sceneFogEnabled:!0,sceneFogDensity:2e-4,sceneFogScreenSpaceErrorFactor:2,sceneFogMinimumBrightness:.03,sceneSsccEnableInputs:!0,sceneSsccEnableCollisionDetection:!0,sceneSsccZoomFactor:5,scenePpsfxaaEnabled:!0,sceneDebugShowFramesPerSecond:!1,sceneDebugShowCommands:!1,sceneDebugShowFrustums:!1,sceneDebugShowFrustumPlanes:!1,sceneDebugShowDepthFrustum:1,showCesiumInspector:!1,cesiumInspectorWireframe:!1,showCesium3DTilesInspector:!1,particleGlobalControl:!1}),L(Nt,"getHeightsScartchCarto",new _.Cartographic);let ot=Nt;(t=>{t.createDefaultProps=()=>({...c.ESViewer.createDefaultProps(),...FH()})})(ot||(ot={})),c.extendClassProps(ot.prototype,ot.createDefaultProps),re.copyright=void 0;try{const t="earthsdk3-cesium",n="3.5.0-beta.15",e="2025-10-17T09:37:17.000Z",i="北京西部世界科技有限公司",o="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",r="1d92544757525a67472147b6dd3aca525c1d2508",s=((Date.now()-1760693837e3)/36e5).toFixed(1),l=`%c🌏 ${t}%c ${n}.${r.slice(0,8)}.${e} (距今${s}个小时)
4145
+ `;console.log(e);const i=window.prompt(e,t);i&&window.open(i,"_blank")}const Nt=class Nt extends c.ESViewer{constructor(e){super(e);L(this,"_disabledInputStack",this.disposeVar(c.react(0)));L(this,"_viewer",this.dv(c.react(void 0)));L(this,"_viewerInstance");L(this,"_viewerLegend");L(this,"pickCustomAttachedInfo");L(this,"_fps",this.dv(c.react(0)));L(this,"_notSupportEditingCount",this.disposeVar(c.react(0)));L(this,"_editingSystem",Wf);L(this,"_moveObjectsProcess",this.ad(RS()));if(e.type!=="ESCesiumViewer")throw new Error("option.type must be ESCesiumViewer");this.ad(new dV(this)),this.ad(new mV(this)),this.dv(new c.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new wV(this)})),this._viewerLegend=this.dv(new BH(this)),this._viewerInstance=this.dv(new c.ObjResettingWithEvent(this.viewerChanged,()=>{if(this.viewer)return new kv(this,this.viewer)})),this.d(this.viewerChanged.don(o=>{this.viewer&&(this.viewer.scene.globe.baseColor=Be([1,1,1,1]))}));const i=e;this.d(this._viewer.changed.don(o=>{this.viewerChanged.emit(o)})),this.dv(new c.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new yN(this.subContainer,this,o=>this._viewer.value=o,i.options)}))}get disabledInputStack(){return this._disabledInputStack.value}get disabledInputStackChanged(){return this._disabledInputStack.changed}incrementDisabledInputStack(){++this._disabledInputStack.value}decrementDisabledInputStack(){--this._disabledInputStack.value}get viewer(){return this._viewer.value}get extensions(){return this.viewer&&Qn(this.viewer)}get viewerInstance(){return this._viewerInstance}get viewerLegend(){return this._viewerLegend}async pick(e,i,o){if(!this.extensions)return;const{pickingManager:r}=this.extensions;return await r.pick(e,void 0,i)}async pickPosition(e){if(!this.extensions)return;const{pickingManager:i}=this.extensions;return await i.pickPosition(e)}async quickPickPosition(e){if(!this.extensions)return;const{pickingManager:i}=this.extensions;return await i.quickPickPosition(e)}async getTerrainHeight(e){const{viewer:i}=this;if(!i)return;const o=_.Cartographic.fromDegrees(e[0],e[1],e[2],Nt.getHeightsScartchCarto);return i.scene.globe.getHeight(o)}getCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Fn(e),rotation:ms(e)}}calcFlyToParam(e){if(!this.viewer)return;const{camera:i}=this.viewer;if(!i||!e)return;const o=_.Cartesian3.fromDegrees(...e),r=_.Transforms.eastNorthUpToFixedFrame(o),a=_.Matrix4.inverse(r,new _.Matrix4),s=_.Matrix4.multiplyByPoint(a,i.positionWC,new _.Cartesian3),l=_.Cartesian3.magnitude(s);let u=-Math.asin(s.z/l);u=_.Math.toDegrees(u);let A=_.Math.PI_OVER_TWO-Math.atan(s.y/s.x);s.x>0&&(A+=s.y<0?-_.Math.PI:_.Math.PI),A=_.Math.toDegrees(A);const h=ms(i),f=h[0]-A,d=h[1]-u;return{distance:l,heading:A,pitch:u,flyDuration:1,hDelta:f,pDelta:d}}flyIn(e,i,o,r="default"){var l;if(!i)return;const a={position:e,rotation:i,duration:(o??1)*1e3},s=(l=this.viewer)==null?void 0:l.camera;return s&&rl(s,a,r)}flyTo(e,i,o="default"){var d;const{distance:r,heading:a,pitch:s,flyDuration:l,hDelta:u,pDelta:A}=e,h={position:i,viewDistance:r,rotation:[a,s,0],duration:l*1e3,hdelta:u,pdelta:A},f=(d=this.viewer)==null?void 0:d.camera;return f&&rl(f,h,o)}flyToBoundingSphere(e,i,o=1){var h;const r=[[e[0],e[1],0],[e[0],e[3],0],[e[2],e[3],0],[e[2],e[1],0]],a=c.getGeoBoundingSphereFromPositions(r);if(!a)return;const{center:s,radius:l}=a,u={position:s,viewDistance:i??l,rotation:[0,-90,0],duration:o*1e3},A=(h=this.viewer)==null?void 0:h.camera;return A&&rl(A,u)}getCurrentCameraInfo(){if(!this.viewer)return;const{camera:e}=this.viewer;return{position:Fn(e),rotation:ms(e)}}getLengthInPixel(){return this._viewerLegend.length}changeToWalk(e,i=4.2,o=1.6){var r,a;(a=(r=this._viewerInstance)==null?void 0:r.obj)==null||a.navigationManager.changeToWalk(e,i,o),this._navigationMode.value="Walk"}changeToMap(){var e,i;(i=(e=this._viewerInstance)==null?void 0:e.obj)==null||i.navigationManager.changeToMap(),this._navigationMode.value="Map"}changeToRotateGlobe(e,i,o){var r,a;(a=(r=this._viewerInstance)==null?void 0:r.obj)==null||a.navigationManager.changeToRotateGlobe(e,i,o),this._navigationMode.value="RotateGlobe"}changeToLine(e,i,o,r,a,s){var l,u;(u=(l=this._viewerInstance)==null?void 0:l.obj)==null||u.navigationManager.changeToLine(e,i,o,r,a,s),this._navigationMode.value="Line"}changeToUserDefined(e){this.changeToMap(),console.warn("Cesium引擎暂不支持自定义漫游,已切换为Map模式")}changeToRotatePoint(e,i,o,r,a){var s,l;(l=(s=this._viewerInstance)==null?void 0:s.obj)==null||l.navigationManager.changeToRotatePoint(e,i,o,r,a),this._navigationMode.value="RotatePoint"}changeToFollow(e,i,o,r,a){var s,l;(l=(s=this._viewerInstance)==null?void 0:s.obj)==null||l.navigationManager.changeToFollow(e,i,o,r,a),this._navigationMode.value="Follow"}getFPS(){return this._fps.value}async getBoundSphere(e){return Promise.resolve(void 0)}async getVersion(){const e=window.g_XE3CopyRights??{};return e.cesium=_.VERSION,e}async getHeightByLonLat(e,i,o){if(!this.viewer)return null;const r=_.Cartographic.fromDegrees(e,i,void 0,Nt.getHeightsScartchCarto);return this.viewer.scene.sampleHeight(r)??null}async getHeightsByLonLats(e,i){const o=e.map(a=>this.getHeightByLonLat(...a));return await Promise.all(o)}async capture(e,i){if(this.viewer)return await P0(this.viewer.scene,e,i)}async lonLatAltToScreenPosition(e){if(!this.viewer||!this.isPointVisible(e))return;const i=this.viewer.scene.cartesianToCanvasCoordinates(ft(e));if(i)return[i.x,i.y]}get notSupportEditingCount(){return this._notSupportEditingCount.value}set notSupportEditingCount(e){this._notSupportEditingCount.value=e}get notSupportEditingCountChanged(){return this._notSupportEditingCount.changed}startEditing(e,i,o){o=Object.assign({useKeyToSwitch:!0,callSource:"outer"},o);const r=e.components.main??e;r&&i!=null&&(r.editingID=`${o.callSource}_${c.createGuid()}`,this._editingSystem.create(this,r,i,o.useKeyToSwitch))}stopEditing(){this._editingSystem.stop()}moveObjects(e){const i=[],o=c.createGuid();for(let r=0;r<e.length;r++){const a=e[r],s=a.components.main??a;s.editingID=o,s&&i.push(s)}this._moveObjectsProcess.restart(void 0,this,i,o)}getCzmObject(e){return this.sceneObjectsMap.get(e)}setCurrentDefaultAccessToken(){this.ionAccessToken=Nt.currentDefaultAccessToken}setLatestDefaultAccessToken(){if(!Nt.latestDefaultAccessToken){alert("Cesium最新的iontoken无法获取!"),console.error("Cesium最新的iontoken无法获取!");return}this.ionAccessToken=Nt.latestDefaultAccessToken}positionsToLocalPositions(e,i){return vn(e,i)}localPositionsToPositions(e,i){return _r(e,i)}isPointVisible(e){if(!this.viewer)return!1;const i=ft(e),o=new _.EllipsoidalOccluder(this.viewer.scene.globe.ellipsoid,this.viewer.scene.camera.positionWC);if(o.cameraPosition=this.viewer.scene.camera.positionWC,!o.isPointVisible(i))return!1;const r=this.viewer.scene.cartesianToCanvasCoordinates(i);return!(!r||r.x<0||r.y<0)}getESProperties(){const e={...super.getESProperties()},i=Nt.defaults;return{...e,more:[...e.more,new c.GroupProperty([],"通用","通用"),new c.EvalStringProperty([this,"createCesiumViewerFuncStr"],"CesiumViewer创建函数",DH,MH,!0),new c.FunctionProperty([],()=>Nt.getCesiumIonToken(),[],"获取官方token"),new c.FunctionProperty([],()=>this.setCurrentDefaultAccessToken(),[],"重置为当前使用的Cesium版本的token"),new c.FunctionProperty([],()=>this.setLatestDefaultAccessToken(),[],"最新token","重置为当前Cesium官方的最新token"),new c.BooleanProperty([this,"flashLighting"],"头顶灯",i.flashLighting,!0),new c.BooleanProperty([this,"particleGlobalControl"],"粒子全局控制播放",i.particleGlobalControl,!0),new c.GroupProperty([],"Viewer","Viewer"),new c.NumberProperty([this,"resolutionScale"],"分辨率比率",i.resolutionScale,!0),new c.NumberProperty([this,"msaaSamples"],"msaaSamples",i.msaaSamples,!0),new c.BooleanProperty([this,"shadows"]),new c.GroupProperty([],"比例尺","比例尺(Legend)"),new c.NumberProperty([this.viewerLegend,"resolution"],"resolution",void 0,!0,!0),new c.NumberProperty([this.viewerLegend,"zoom"],"zoom",void 0,!0,!0),new c.Number3Property([this.viewerLegend,"center"],"center",void 0,!0,!0),new c.NumberProperty([this.viewerLegend.legend,"lengthInPixels"],"lengthInPixels",100,!0,!1),new c.NumberProperty([this.viewerLegend.legend,"computedLengthInPixels"],"computedLengthInPixels",void 0,!0,!0),new c.NumberProperty([this.viewerLegend.legend,"computedLengthInMeters"],"computedLengthInMeters",void 0,!0,!0),new c.StringProperty([this.viewerLegend.legend,"computedLengthInStr"],"computedLengthInStr",void 0,!0,!0),new c.GroupProperty([],"场景","场景(Scene)"),new c.NumberProperty([this,"sceneSplitPosition"],"内部视口分割比例",i.sceneSplitPosition,!0),new c.GroupProperty([],"Globe","Globe"),new c.EnumProperty([this,"sceneGlobeShadows"],[["禁用","DISABLED"],["启用","ENABLED"],["仅投射","CAST_ONLY"],["仅接收","RECEIVE_ONLY"]],"sceneGlobeShadows",i.sceneGlobeShadows,!0),new c.NumberProperty([this,"sceneGlobeTerrainExaggeration"]),new c.NumberProperty([this,"sceneGlobeTerrainExaggerationRelativeHeight"]),new c.NumberProperty([this,"sceneGlobeVerticalExaggeration"]),new c.NumberProperty([this,"sceneGlobeVerticalExaggerationRelativeHeight"]),new c.BooleanProperty([this,"sceneGlobeBackFaceCulling"]),new c.BooleanProperty([this,"sceneGlobeShowSkirts"]),new c.BooleanProperty([this,"sceneGlobeShowWaterEffect"]),new c.ColorProperty([this,"sceneGlobeBaseColor"]),new c.Number4Property([this,"sceneGlobeCartographicLimitRectangle"]),new c.JsonProperty([this,"sceneGlobeClippingPlanes"]),new c.StringProperty([this,"sceneGlobeClippingPlanesId"]),new c.JsonProperty([this,"sceneGlobeClippingPolygons"]),new c.StringsProperty([this,"sceneGlobeClippingPolygonsId"]),new c.GroupProperty([],"underground","underground"),new c.ColorProperty([this,"sceneGlobeUndergroundColor"],"sceneGlobeUndergroundColor",i.sceneGlobeUndergroundColor,!0),new c.Number4Property([this,"sceneGlobeUndergroundColorAlphaByDistance"],"sceneGlobeUndergroundColorAlphaByDistance",i.sceneGlobeUndergroundColorAlphaByDistance,!0),new c.GroupProperty([],"Translucency","Translucency"),new c.Number4Property([this,"sceneGlobeTranslucencyBackFaceAlphaByDistance"],"背面渐变透明度",i.sceneGlobeTranslucencyBackFaceAlphaByDistance,!0),new c.Number4Property([this,"sceneGlobeTranslucencyFrontFaceAlphaByDistance"],"正面渐变透明度",i.sceneGlobeTranslucencyFrontFaceAlphaByDistance,!0),new c.Number4Property([this,"sceneGlobeTranslucencyRectangle"],"矩形范围",i.sceneGlobeTranslucencyRectangle,!0),new c.GroupProperty([],"Sun","Sun"),new c.BooleanProperty([this,"sun"],"sun",i.sun,!0),new c.NumberProperty([this,"sceneSunGlowFactor"],"sceneSunGlowFactor",i.sceneSunGlowFactor,!0),new c.GroupProperty([],"Moon","Moon"),new c.BooleanProperty([this,"moon"],"moon",i.moon,!0),new c.StringProperty([this,"sceneMoonTextureUrl"],"sceneMoonTextureUrl",i.sceneMoonTextureUrl,!0),new c.BooleanProperty([this,"sceneMoonOnlySunLighting"],"sceneMoonOnlySunLighting",i.sceneMoonOnlySunLighting,!0),new c.GroupProperty([],"SkyBox","SkyBox"),new c.BooleanProperty([this,"sceneSkyBoxShow"]),new c.JsonProperty([this,"sceneSkyBoxSources"],"sceneSkyBoxSources",i.sceneSkyBoxSources,void 0,!0),new c.GroupProperty([],"Background","Background"),new c.BooleanProperty([this,"xbsjUseBackground"]),new c.StringProperty([this,"xbsjBackgroundImageUri"]),new c.ColorProperty([this,"xbsjBackgroundColor"]),new c.GroupProperty([],"SkyAtmosphere","SkyAtmosphere"),new c.JsonProperty([this,"xbsjLocalBoxSources"],"xbsjLocalBoxSources",i.xbsjLocalBoxSources,void 0,!0),new c.ColorProperty([this,"sceneBackgroundColor"]),new c.GroupProperty([],"Fog","Fog"),new c.BooleanProperty([this,"sceneFogEnabled"],"sceneFogEnabled",i.sceneFogEnabled,!0),new c.NumberProperty([this,"sceneFogDensity"],"sceneFogDensity",i.sceneFogDensity,!0),new c.NumberProperty([this,"sceneFogScreenSpaceErrorFactor"],"sceneFogScreenSpaceErrorFactor",i.sceneFogScreenSpaceErrorFactor,!0),new c.NumberProperty([this,"sceneFogMinimumBrightness"],"sceneFogMinimumBrightness",i.sceneFogMinimumBrightness,!0),new c.GroupProperty([],"Sscc","Sscc"),new c.BooleanProperty([this,"sceneSsccEnableInputs"],"sceneSsccEnableInputs",i.sceneSsccEnableInputs,!0),new c.BooleanProperty([this,"sceneSsccEnableCollisionDetection"],"sceneSsccEnableCollisionDetection",i.sceneSsccEnableCollisionDetection,!0),new c.NumberProperty([this,"sceneSsccZoomFactor"],"sceneSsccZoomFactor",i.sceneSsccZoomFactor,!0),new c.NumberProperty([this,"sceneCameraFrustumFov"],"相机广角"),new c.GroupProperty([],"后处理","后处理"),new c.BooleanProperty([this,"scenePpsfxaaEnabled"],"开启FXAA",i.scenePpsfxaaEnabled,!0),new c.GroupProperty([],"环境遮蔽","环境遮蔽"),new c.BooleanProperty([this,"scenePpsAmbientOcclusionEnabled"]),new c.BooleanProperty([this,"scenePpsAmbientOcclusionAmbientOcclusionOnly"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionIntensity"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionBias"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionLengthCap"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionStepSize"]),new c.NumberProperty([this,"scenePpsAmbientOcclusionBlurStepSize"]),new c.GroupProperty([],"Bloom","Bloom"),new c.BooleanProperty([this,"scenePpsBloomEnabled"]),new c.BooleanProperty([this,"scenePpsBloomGlowOnly"]),new c.NumberProperty([this,"scenePpsBloomContrast"]),new c.NumberProperty([this,"scenePpsBloomBrightness"]),new c.NumberProperty([this,"scenePpsBloomDelta"]),new c.NumberProperty([this,"scenePpsBloomSigma"]),new c.NumberProperty([this,"scenePpsBloomStepSize"]),new c.GroupProperty([],"调试","调试"),new c.BooleanProperty([this,"sceneDebugShowFramesPerSecond"],"sceneDebugShowFramesPerSecond",i.sceneDebugShowFramesPerSecond,!0),new c.BooleanProperty([this,"sceneDebugShowCommands"],"sceneDebugShowCommands",i.sceneDebugShowCommands,!0),new c.BooleanProperty([this,"sceneDebugShowFrustums"],"sceneDebugShowFrustums",i.sceneDebugShowFrustums,!0),new c.BooleanProperty([this,"sceneDebugShowFrustumPlanes"],"sceneDebugShowFrustumPlanes",i.sceneDebugShowFrustumPlanes,!0),new c.NumberProperty([this,"sceneDebugShowDepthFrustum"],"sceneDebugShowDepthFrustum",i.sceneDebugShowDepthFrustum,!0),new c.GroupProperty([],"Inspector","Inspector"),new c.BooleanProperty([this,"showCesiumInspector"],"showCesiumInspector",i.showCesiumInspector,!0),new c.BooleanProperty([this,"cesiumInspectorWireframe"],"cesiumInspectorWireframe",i.cesiumInspectorWireframe,!0),new c.BooleanProperty([this,"showCesium3DTilesInspector"],"showCesium3DTilesInspector",i.showCesium3DTilesInspector,!0)]}}};L(Nt,"type",Nt.register("ESCesiumViewer",Nt)),L(Nt,"getCesiumIonToken",RH),L(Nt,"currentDefaultAccessToken",_.Ion.defaultAccessToken),L(Nt,"latestDefaultAccessToken"),L(Nt,"ObjectsToExcludeWrapper",vV),L(Nt,"defaults",{...c.ESViewer.defaults,flashLighting:!1,resolutionScale:1,msaaSamples:4,sceneSplitPosition:0,sceneGlobeShadows:"RECEIVE_ONLY",sceneGlobeUndergroundColor:[0,0,0,1],sceneGlobeUndergroundColorAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyBackFaceAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyFrontFaceAlphaByDistance:[6378.137,0,12756274e-1,1],sceneGlobeTranslucencyRectangle:[-3.141592653589793,-1.5707963267948966,3.141592653589793,1.5707963267948966].map(e=>180*e/Math.PI),sun:!0,sceneSunGlowFactor:1,moon:!0,sceneMoonTextureUrl:_.buildModuleUrl("Assets/Textures/moonSmall.jpg"),sceneMoonOnlySunLighting:!0,sceneSkyBoxSources:{positiveX:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_px.jpg"),negativeX:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mx.jpg"),positiveY:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_py.jpg"),negativeY:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_my.jpg"),positiveZ:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_pz.jpg"),negativeZ:_.buildModuleUrl("Assets/Textures/SkyBox/tycho2t3_80_mz.jpg")},xbsjLocalBoxSources:{positiveX:"${earthsdk3-assets-script-dir}/assets/img/skybox/east.jpg",negativeX:"${earthsdk3-assets-script-dir}/assets/img/skybox/west.jpg",positiveY:"${earthsdk3-assets-script-dir}/assets/img/skybox/bottom.jpg",negativeY:"${earthsdk3-assets-script-dir}/assets/img/skybox/top.jpg",positiveZ:"${earthsdk3-assets-script-dir}/assets/img/skybox/north.jpg",negativeZ:"${earthsdk3-assets-script-dir}/assets/img/skybox/south.jpg"},sceneFogEnabled:!0,sceneFogDensity:2e-4,sceneFogScreenSpaceErrorFactor:2,sceneFogMinimumBrightness:.03,sceneSsccEnableInputs:!0,sceneSsccEnableCollisionDetection:!0,sceneSsccZoomFactor:5,scenePpsfxaaEnabled:!0,sceneDebugShowFramesPerSecond:!1,sceneDebugShowCommands:!1,sceneDebugShowFrustums:!1,sceneDebugShowFrustumPlanes:!1,sceneDebugShowDepthFrustum:1,showCesiumInspector:!1,cesiumInspectorWireframe:!1,showCesium3DTilesInspector:!1,particleGlobalControl:!1}),L(Nt,"getHeightsScartchCarto",new _.Cartographic);let ot=Nt;(t=>{t.createDefaultProps=()=>({...c.ESViewer.createDefaultProps(),...FH()})})(ot||(ot={})),c.extendClassProps(ot.prototype,ot.createDefaultProps),re.copyright=void 0;try{const t="earthsdk3-cesium",n="3.5.0-beta.16",e="2025-10-20T09:27:34.000Z",i="北京西部世界科技有限公司",o="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",r="68004f61674859e08549dce3fafcc248077970e5",s=((Date.now()-1760952454e3)/36e5).toFixed(1),l=`%c🌏 ${t}%c ${n}.${r.slice(0,8)}.${e} (距今${s}个小时)
4146
4146
  %c${o?o+`
4147
4147
  `:""}当前网站正在使用${t},此软件版权归${i}所有
4148
- `;re.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","1d92544757525a67472147b6dd3aca525c1d2508")},get info(){return l},get date(){return"2025-10-17T09:37:17.000Z"},get author(){return"suplyang"},get version(){return"3.5.0-beta.15"},get name(){return"earthsdk3-cesium"},get commitId(){return"1d92544757525a67472147b6dd3aca525c1d2508"},print(){console.info(this.info,`
4148
+ `;re.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","68004f61674859e08549dce3fafcc248077970e5")},get info(){return l},get date(){return"2025-10-20T09:27:34.000Z"},get author(){return"suplyang"},get version(){return"3.5.0-beta.16"},get name(){return"earthsdk3-cesium"},get commitId(){return"68004f61674859e08549dce3fafcc248077970e5"},print(){console.info(this.info,`
4149
4149
  font-size: 18px;
4150
4150
  font-weight: 1000;
4151
4151
  line-height: 1;
@@ -25924,7 +25924,7 @@ const EI = (t) => {
25924
25924
  if (t >= e)
25925
25925
  return o;
25926
25926
  return 20;
25927
- }, MI = async (t, i, e) => (await fetch(`http://abc.gggis.com:13001/xyzinfo/${e}/${t}/${i}`)).json(), II = async (t) => {
25927
+ }, MI = async (t, i, e) => (await fetch(`http://tileser.giiiis.com/xyzinfo/${e}/${t}/${i}`)).json(), II = async (t) => {
25928
25928
  var c;
25929
25929
  const i = (c = t.getCurrentCameraInfo()) == null ? void 0 : c.position;
25930
25930
  if (!i) return;
@@ -25947,7 +25947,7 @@ class RI extends L {
25947
25947
  {
25948
25948
  const r = () => {
25949
25949
  const a = e.currentDate ? e.currentDate : 0;
25950
- o.url = `http://abc.gggis.com:13001/timetile/tms/${a}/tilemapresource.xml`;
25950
+ o.url = `http://tileser.giiiis.com/timetile/tms/${a}/tilemapresource.xml`;
25951
25951
  };
25952
25952
  r(), this.d(e.currentDateChanged.don(r));
25953
25953
  }
@@ -33892,7 +33892,7 @@ const Ul = class Ul extends Li {
33892
33892
  super(e, o);
33893
33893
  m(this, "_czmPolygonPrimitive");
33894
33894
  m(this, "_geoPolylines");
33895
- if (this._czmPolygonPrimitive = this.disposeVar(new tn(o, e.id)), console.log(this.czmPolygonPrimitive), this._geoPolylines = this.disposeVar(new co(o, e.id)), !o.viewer) {
33895
+ if (this._czmPolygonPrimitive = this.disposeVar(new tn(o, e.id)), this._geoPolylines = this.disposeVar(new co(o, e.id)), !o.viewer) {
33896
33896
  console.warn("viewer is undefined!");
33897
33897
  return;
33898
33898
  }
@@ -45563,7 +45563,7 @@ h.Material._materialCache.addMaterial(h.Material.XbsjPolylineArrow, {
45563
45563
  float arrowRepeat = pos.x / (repeat * czm_pixelRatio);
45564
45564
  float u = fract(arrowRepeat - speed / 10.0 * czm_frameNumber / 60.0);
45565
45565
  vec4 colorImage = texture(image, vec2(u, materialInput.st.t));
45566
- vec4 fragColor = vec4(arrowColor.rgb*colorImage.a + color.rgb*(1.0-colorImage.a), color.a);
45566
+ vec4 fragColor = colorImage.a * arrowColor + (1.0 - colorImage.a) * color;
45567
45567
 
45568
45568
  fragColor = czm_gammaCorrect(fragColor);
45569
45569
  material.emission = fragColor.rgb;
@@ -49983,7 +49983,7 @@ let We = wt;
49983
49983
  ae(We.prototype, We.createDefaultProps);
49984
49984
  let np;
49985
49985
  try {
49986
- const t = "earthsdk3-cesium", i = "3.5.0-beta.15", e = "2025-10-17T09:37:17.000Z", o = "北京西部世界科技有限公司", s = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "1d92544757525a67472147b6dd3aca525c1d2508", a = ((Date.now() - 1760693837e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
49986
+ const t = "earthsdk3-cesium", i = "3.5.0-beta.16", e = "2025-10-20T09:27:34.000Z", o = "北京西部世界科技有限公司", s = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "68004f61674859e08549dce3fafcc248077970e5", a = ((Date.now() - 1760952454e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
49987
49987
  %c${s ? s + `
49988
49988
  ` : ""}当前网站正在使用${t},此软件版权归${o}所有
49989
49989
  `;
@@ -49997,7 +49997,7 @@ try {
49997
49997
  },
49998
49998
  // @ts-ignore
49999
49999
  get gituri() {
50000
- return GITURI_ && GITURI_.replace("${commitId}", "1d92544757525a67472147b6dd3aca525c1d2508");
50000
+ return GITURI_ && GITURI_.replace("${commitId}", "68004f61674859e08549dce3fafcc248077970e5");
50001
50001
  },
50002
50002
  // @ts-ignore
50003
50003
  get info() {
@@ -50005,7 +50005,7 @@ try {
50005
50005
  },
50006
50006
  // @ts-ignore
50007
50007
  get date() {
50008
- return "2025-10-17T09:37:17.000Z";
50008
+ return "2025-10-20T09:27:34.000Z";
50009
50009
  },
50010
50010
  // @ts-ignore
50011
50011
  get author() {
@@ -50013,7 +50013,7 @@ try {
50013
50013
  },
50014
50014
  // @ts-ignore
50015
50015
  get version() {
50016
- return "3.5.0-beta.15";
50016
+ return "3.5.0-beta.16";
50017
50017
  },
50018
50018
  // @ts-ignore
50019
50019
  get name() {
@@ -50021,7 +50021,7 @@ try {
50021
50021
  },
50022
50022
  // @ts-ignore
50023
50023
  get commitId() {
50024
- return "1d92544757525a67472147b6dd3aca525c1d2508";
50024
+ return "68004f61674859e08549dce3fafcc248077970e5";
50025
50025
  },
50026
50026
  print() {
50027
50027
  console.info(