wangjuncheng
2 天以前 8adbf886a8062a0c96feadfe701a266601acd134
public/CimSDK/index.cjs
@@ -1,7 +1,7 @@
/**
 *
 * SmartEarth WebSDK - https://websdk.terra-it.cn
 * Version 5.4.1
 * Version 5.4.1.2
 *
 **/
@@ -227,13 +227,13 @@
`)},f=function(){return new oe.PromiseInspection(this._target())},m=function(ue){return oe.reject(new O(ue))};function x(){}var v={},y=a0();y.setReflectHandler(f);var C=function(){var ue=process.domain;return ue===void 0?null:ue},w=function(){return null},T=function(){return{domain:C(),async:null}},E=y.isNode&&y.nodeSupportsAsyncResource?require("async_hooks").AsyncResource:null,A=function(){return{domain:C(),async:new E("Bluebird::Promise")}},S=y.isNode?T:w;y.notEnumerableProp(oe,"_getContext",S);var M=function(){S=A,y.notEnumerableProp(oe,"_getContext",A)},I=function(){S=T,y.notEnumerableProp(oe,"_getContext",T)},P=A4(),D=yFt(),R=new D;P.defineProperty(oe,"_async",{value:R});var L=IO(),O=oe.TypeError=L.TypeError;oe.RangeError=L.RangeError;var F=oe.CancellationError=L.CancellationError;oe.TimeoutError=L.TimeoutError,oe.OperationalError=L.OperationalError,oe.RejectionError=L.OperationalError,oe.AggregateError=L.AggregateError;var B=function(){},H={},G={},W=EFt()(oe,B),Y=SFt()(oe,B,W,m,x),K=IFt()(oe),X=K.create,q=DFt()(oe,K,M,I),J=q.CapturedTrace,Z=OFt()(oe,W,G),z=OWe()(G),te=NWe(),ie=y.errorObj,re=y.tryCatch;function ee(ue,ce){if(ue==null||ue.constructor!==oe)throw new O(`the promise constructor cannot be invoked directly
    See http://goo.gl/MqrFmX
`);if(typeof ce!="function")throw new O("expecting a function but got "+y.classString(ce))}function oe(ue){ue!==B&&ee(this,ue),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(ue),this._promiseCreated(),this._fireEvent("promiseCreated",this)}oe.prototype.toString=function(){return"[object Promise]"},oe.prototype.caught=oe.prototype.catch=function(ue){var ce=arguments.length;if(ce>1){var de=new Array(ce-1),fe=0,we;for(we=0;we<ce-1;++we){var Te=arguments[we];if(y.isObject(Te))de[fe++]=Te;else return m("Catch statement predicate: expecting an object but got "+y.classString(Te))}if(de.length=fe,ue=arguments[we],typeof ue!="function")throw new O("The last argument to .catch() must be a function, got "+y.toString(ue));return this.then(void 0,z(de,ue,this))}return this.then(void 0,ue)},oe.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},oe.prototype.then=function(ue,ce){if(q.warnings()&&arguments.length>0&&typeof ue!="function"&&typeof ce!="function"){var de=".then() only accepts functions but was passed: "+y.classString(ue);arguments.length>1&&(de+=", "+y.classString(ce)),this._warn(de)}return this._then(ue,ce,void 0,void 0,void 0)},oe.prototype.done=function(ue,ce){var de=this._then(ue,ce,void 0,void 0,void 0);de._setIsFinal()},oe.prototype.spread=function(ue){return typeof ue!="function"?m("expecting a function but got "+y.classString(ue)):this.all()._then(ue,void 0,void 0,H,void 0)},oe.prototype.toJSON=function(){var ue={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(ue.fulfillmentValue=this.value(),ue.isFulfilled=!0):this.isRejected()&&(ue.rejectionReason=this.reason(),ue.isRejected=!0),ue},oe.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new Y(this).promise()},oe.prototype.error=function(ue){return this.caught(y.originatesFromRejection,ue)},oe.getNewLibraryCopy=VWe.exports,oe.is=function(ue){return ue instanceof oe},oe.fromNode=oe.fromCallback=function(ue){var ce=new oe(B);ce._captureStackTrace();var de=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,fe=re(ue)(te(ce,de));return fe===ie&&ce._rejectCallback(fe.e,!0),ce._isFateSealed()||ce._setAsyncGuaranteed(),ce},oe.all=function(ue){return new Y(ue).promise()},oe.cast=function(ue){var ce=W(ue);return ce instanceof oe||(ce=new oe(B),ce._captureStackTrace(),ce._setFulfilled(),ce._rejectionHandler0=ue),ce},oe.resolve=oe.fulfilled=oe.cast,oe.reject=oe.rejected=function(ue){var ce=new oe(B);return ce._captureStackTrace(),ce._rejectCallback(ue,!0),ce},oe.setScheduler=function(ue){if(typeof ue!="function")throw new O("expecting a function but got "+y.classString(ue));return R.setScheduler(ue)},oe.prototype._then=function(ue,ce,de,fe,we){var Te=we!==void 0,Ae=Te?we:new oe(B),Fe=this._target(),Ue=Fe._bitField;Te||(Ae._propagateFrom(this,3),Ae._captureStackTrace(),fe===void 0&&(this._bitField&2097152)!==0&&((Ue&50397184)!==0?fe=this._boundValue():fe=Fe===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,Ae));var it=S();if((Ue&50397184)!==0){var lt,ft,vt=Fe._settlePromiseCtx;(Ue&33554432)!==0?(ft=Fe._rejectionHandler0,lt=ue):(Ue&16777216)!==0?(ft=Fe._fulfillmentHandler0,lt=ce,Fe._unsetRejectionIsUnhandled()):(vt=Fe._settlePromiseLateCancellationObserver,ft=new F("late cancellation observer"),Fe._attachExtraTrace(ft),lt=ce),R.invoke(vt,Fe,{handler:y.contextBind(it,lt),promise:Ae,receiver:fe,value:ft})}else Fe._addCallbacks(ue,ce,Ae,fe,it);return Ae},oe.prototype._length=function(){return this._bitField&65535},oe.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},oe.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},oe.prototype._setLength=function(ue){this._bitField=this._bitField&-65536|ue&65535},oe.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},oe.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},oe.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},oe.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},oe.prototype._isFinal=function(){return(this._bitField&4194304)>0},oe.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},oe.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},oe.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},oe.prototype._setAsyncGuaranteed=function(){if(!R.hasCustomScheduler()){var ue=this._bitField;this._bitField=ue|(ue&536870912)>>2^134217728}},oe.prototype._setNoAsyncGuarantee=function(){this._bitField=(this._bitField|536870912)&-134217729},oe.prototype._receiverAt=function(ue){var ce=ue===0?this._receiver0:this[ue*4-4+3];if(ce!==v)return ce===void 0&&this._isBound()?this._boundValue():ce},oe.prototype._promiseAt=function(ue){return this[ue*4-4+2]},oe.prototype._fulfillmentHandlerAt=function(ue){return this[ue*4-4+0]},oe.prototype._rejectionHandlerAt=function(ue){return this[ue*4-4+1]},oe.prototype._boundValue=function(){},oe.prototype._migrateCallback0=function(ue){var ce=ue._bitField,de=ue._fulfillmentHandler0,fe=ue._rejectionHandler0,we=ue._promise0,Te=ue._receiverAt(0);Te===void 0&&(Te=v),this._addCallbacks(de,fe,we,Te,null)},oe.prototype._migrateCallbackAt=function(ue,ce){var de=ue._fulfillmentHandlerAt(ce),fe=ue._rejectionHandlerAt(ce),we=ue._promiseAt(ce),Te=ue._receiverAt(ce);Te===void 0&&(Te=v),this._addCallbacks(de,fe,we,Te,null)},oe.prototype._addCallbacks=function(ue,ce,de,fe,we){var Te=this._length();if(Te>=65535-4&&(Te=0,this._setLength(0)),Te===0)this._promise0=de,this._receiver0=fe,typeof ue=="function"&&(this._fulfillmentHandler0=y.contextBind(we,ue)),typeof ce=="function"&&(this._rejectionHandler0=y.contextBind(we,ce));else{var Ae=Te*4-4;this[Ae+2]=de,this[Ae+3]=fe,typeof ue=="function"&&(this[Ae+0]=y.contextBind(we,ue)),typeof ce=="function"&&(this[Ae+1]=y.contextBind(we,ce))}return this._setLength(Te+1),Te},oe.prototype._proxy=function(ue,ce){this._addCallbacks(void 0,void 0,ce,ue,null)},oe.prototype._resolveCallback=function(ue,ce){if((this._bitField&117506048)===0){if(ue===this)return this._rejectCallback(o(),!1);var de=W(ue,this);if(!(de instanceof oe))return this._fulfill(ue);ce&&this._propagateFrom(de,2);var fe=de._target();if(fe===this){this._reject(o());return}var we=fe._bitField;if((we&50397184)===0){var Te=this._length();Te>0&&fe._migrateCallback0(this);for(var Ae=1;Ae<Te;++Ae)fe._migrateCallbackAt(this,Ae);this._setFollowing(),this._setLength(0),this._setFollowee(de)}else if((we&33554432)!==0)this._fulfill(fe._value());else if((we&16777216)!==0)this._reject(fe._reason());else{var Fe=new F("late cancellation observer");fe._attachExtraTrace(Fe),this._reject(Fe)}}},oe.prototype._rejectCallback=function(ue,ce,de){var fe=y.ensureErrorObject(ue),we=fe===ue;if(!we&&!de&&q.warnings()){var Te="a promise was rejected with a non-error: "+y.classString(ue);this._warn(Te,!0)}this._attachExtraTrace(fe,ce?we:!1),this._reject(ue)},oe.prototype._resolveFromExecutor=function(ue){if(ue!==B){var ce=this;this._captureStackTrace(),this._pushContext();var de=!0,fe=this._execute(ue,function(we){ce._resolveCallback(we)},function(we){ce._rejectCallback(we,de)});de=!1,this._popContext(),fe!==void 0&&ce._rejectCallback(fe,!0)}},oe.prototype._settlePromiseFromHandler=function(ue,ce,de,fe){var we=fe._bitField;if((we&65536)===0){fe._pushContext();var Te;ce===H?!de||typeof de.length!="number"?(Te=ie,Te.e=new O("cannot .spread() a non-array: "+y.classString(de))):Te=re(ue).apply(this._boundValue(),de):Te=re(ue).call(ce,de);var Ae=fe._popContext();we=fe._bitField,(we&65536)===0&&(Te===G?fe._reject(de):Te===ie?fe._rejectCallback(Te.e,!1):(q.checkForgottenReturns(Te,Ae,"",fe,this),fe._resolveCallback(Te)))}},oe.prototype._target=function(){for(var ue=this;ue._isFollowing();)ue=ue._followee();return ue},oe.prototype._followee=function(){return this._rejectionHandler0},oe.prototype._setFollowee=function(ue){this._rejectionHandler0=ue},oe.prototype._settlePromise=function(ue,ce,de,fe){var we=ue instanceof oe,Te=this._bitField,Ae=(Te&134217728)!==0;(Te&65536)!==0?(we&&ue._invokeInternalOnCancel(),de instanceof Z&&de.isFinallyHandler()?(de.cancelPromise=ue,re(ce).call(de,fe)===ie&&ue._reject(ie.e)):ce===f?ue._fulfill(f.call(de)):de instanceof x?de._promiseCancelled(ue):we||ue instanceof Y?ue._cancel():de.cancel()):typeof ce=="function"?we?(Ae&&ue._setAsyncGuaranteed(),this._settlePromiseFromHandler(ce,de,fe,ue)):ce.call(de,fe,ue):de instanceof x?de._isResolved()||((Te&33554432)!==0?de._promiseFulfilled(fe,ue):de._promiseRejected(fe,ue)):we&&(Ae&&ue._setAsyncGuaranteed(),(Te&33554432)!==0?ue._fulfill(fe):ue._reject(fe))},oe.prototype._settlePromiseLateCancellationObserver=function(ue){var ce=ue.handler,de=ue.promise,fe=ue.receiver,we=ue.value;typeof ce=="function"?de instanceof oe?this._settlePromiseFromHandler(ce,fe,we,de):ce.call(fe,we,de):de instanceof oe&&de._reject(we)},oe.prototype._settlePromiseCtx=function(ue){this._settlePromise(ue.promise,ue.handler,ue.receiver,ue.value)},oe.prototype._settlePromise0=function(ue,ce,de){var fe=this._promise0,we=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(fe,ue,we,ce)},oe.prototype._clearCallbackDataAtIndex=function(ue){var ce=ue*4-4;this[ce+2]=this[ce+3]=this[ce+0]=this[ce+1]=void 0},oe.prototype._fulfill=function(ue){var ce=this._bitField;if(!((ce&117506048)>>>16)){if(ue===this){var de=o();return this._attachExtraTrace(de),this._reject(de)}this._setFulfilled(),this._rejectionHandler0=ue,(ce&65535)>0&&((ce&134217728)!==0?this._settlePromises():R.settlePromises(this),this._dereferenceTrace())}},oe.prototype._reject=function(ue){var ce=this._bitField;if(!((ce&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=ue,this._isFinal())return R.fatalError(ue,y.isNode);(ce&65535)>0?R.settlePromises(this):this._ensurePossibleRejectionHandled()}},oe.prototype._fulfillPromises=function(ue,ce){for(var de=1;de<ue;de++){var fe=this._fulfillmentHandlerAt(de),we=this._promiseAt(de),Te=this._receiverAt(de);this._clearCallbackDataAtIndex(de),this._settlePromise(we,fe,Te,ce)}},oe.prototype._rejectPromises=function(ue,ce){for(var de=1;de<ue;de++){var fe=this._rejectionHandlerAt(de),we=this._promiseAt(de),Te=this._receiverAt(de);this._clearCallbackDataAtIndex(de),this._settlePromise(we,fe,Te,ce)}},oe.prototype._settlePromises=function(){var ue=this._bitField,ce=ue&65535;if(ce>0){if((ue&16842752)!==0){var de=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,de,ue),this._rejectPromises(ce,de)}else{var fe=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,fe,ue),this._fulfillPromises(ce,fe)}this._setLength(0)}this._clearCancellationData()},oe.prototype._settledValue=function(){var ue=this._bitField;if((ue&33554432)!==0)return this._rejectionHandler0;if((ue&16777216)!==0)return this._fulfillmentHandler0},typeof Symbol<"u"&&Symbol.toStringTag&&P.defineProperty(oe.prototype,Symbol.toStringTag,{get:function(){return"Object"}});function ae(ue){this.promise._resolveCallback(ue)}function he(ue){this.promise._rejectCallback(ue,!1)}oe.defer=oe.pending=function(){q.deprecated("Promise.defer","new Promise");var ue=new oe(B);return{promise:ue,resolve:ae,reject:he}},y.notEnumerableProp(oe,"_makeSelfResolutionError",o),VFt()(oe,B,W,m,q),UFt()(oe,B,W,q),GFt()(oe,Y,m,q),jFt()(oe),YFt()(oe),KFt()(oe,Y,W,B,R),oe.Promise=oe,oe.version="3.7.2",JFt()(oe),ZFt()(oe,m,B,W,x,q),t5t()(oe,Y,m,W,B,q),r5t()(oe),o5t()(oe,B),s5t()(oe,Y,W,m),u5t()(oe,B,W,m),h5t()(oe,Y,m,W,B,q),f5t()(oe,Y,q),m5t()(oe,Y,m),g5t()(oe,B,q),v5t()(oe,m,W,X,B,q),C5t()(oe),w5t()(oe,B),E5t()(oe,B),y.toFastProperties(oe),y.toFastProperties(oe.prototype);function me(ue){var ce=new oe(B);ce._fulfillmentHandler0=ue,ce._rejectionHandler0=ue,ce._promise0=ue,ce._receiver0=ue}return me({a:1}),me({b:2}),me({c:3}),me(1),me(function(){}),me(void 0),me(!1),me(new oe(B)),q.setBounds(D.firstLineError,y.lastLineError),oe}});var I5t=ur((Jsn,P5t)=>{"use strict";var S5t;typeof Promise<"u"&&(S5t=Promise);function BMr(){try{Promise===Zve&&(Promise=S5t)}catch{}return Zve}var Zve=A5t()();Zve.noConflict=BMr;P5t.exports=Zve});var PRr={};fne(PRr,{Analysis:()=>bye,BaseObject:()=>bm,Billboard:()=>dme,Box:()=>Eme,BwMode:()=>qpe,Camera:()=>bpe,Cesium:()=>GVe,ClusterLayer:()=>twt,ColorAdjustment:()=>jpe,Core:()=>AC,Cylinder:()=>Sme,Degrees:()=>iwt,DoubleClickObjectTool:()=>Rpe,DoubleScreen:()=>rwt,DynamicEyeOffset:()=>Hze,EarthCtrl:()=>okt,Edit:()=>$ve,EditTool:()=>Upe,ElevationTool:()=>nwt,Ellipse:()=>Lme,Ellipsoid:()=>Ime,Environment:()=>Xpe,EventHandler:()=>EB,Explosion:()=>ome,FeatureLayer:()=>Mxe,Fire:()=>tme,Fireworks:()=>sme,FisheyeVideoProjection:()=>Qpe,Fog:()=>Hpe,Hawkeye:()=>Nxe,HorizontalDistanceTool:()=>Spe,HoverObjectTool:()=>Dpe,ImageryLayer:()=>Txe,Label:()=>gme,Languages:()=>M0,LineOfSightTool:()=>skt,Measure:()=>kpe,MeasureAreaTool:()=>Pj,MeasureHeightTool:()=>Epe,MeasureLineLengthTool:()=>Tpe,MeasurePathLengthTool:()=>ete,MeasureSlopeTool:()=>Ape,MeasureSurfaceAreaTool:()=>Ppe,MilitaryPlotting:()=>qye,Model:()=>pme,ModelClipping:()=>lye,ModelEdit:()=>aj,ModelLayer:()=>Pxe,NightMode:()=>Ype,Node:()=>tH,ObjectFactory:()=>nR,PerspectiveVideoProjection:()=>Jpe,PickObjectTool:()=>Ipe,PickPositionTool:()=>Mpe,Point:()=>wme,Polygon:()=>Cme,Polyline:()=>vme,PolylineVolume:()=>Nme,Profile:()=>rye,QueryMode:()=>lR,QueryType:()=>dT,RClickObjectTool:()=>Lpe,RadarScan:()=>ume,Rain:()=>Gpe,Rectangle:()=>Dme,RestrictHeight:()=>sye,SampleRenderedDataFlags:()=>uj,Scene:()=>Hve,SceneManager:()=>akt,SelectSet:()=>$pe,Skyline:()=>oye,Smoke:()=>rme,Snow:()=>Wpe,SpatialObject:()=>Rc,SpatialQuery:()=>Cye,SpatialTransform:()=>fj,SpotLight:()=>Bxe,Submergence:()=>iye,TerrainExcavation:()=>dye,TerrainLayer:()=>Axe,TerrainModifier:()=>uye,TitleBar:()=>dkt,Tool:()=>Ya,ToolManager:()=>spe,VERSIONINFO:()=>hje,ViewShed:()=>eye,Volumetric:()=>tye,WFSTool:()=>cj,Waters:()=>Oxe,WorkChart:()=>Rxe,ZBiasGeometryInstanceAttribute:()=>$or,czmlPathAnimation:()=>Xze,loadArrayBuffer:()=>iar,loadBlob:()=>tar,loadImage:()=>rar,loadJson:()=>ear,loadLayui:()=>Kze,loadText:()=>Zor,sampleRenderedData:()=>Z0e,sampleRenderedMesh:()=>Jor,sampleRenderedTerrain:()=>Qor,viewerNavigationCubeMixin:()=>hkt});module.exports=Rkt(PRr);var aje="CIM SDK v5.4.1",sje="Cesium v1.129",lje="BIM V20241204",uje="SER V20250613",cje="2025.7.4",Lkt="WebSDK V5.4",Okt={VERSION:aje,CesiumVERSION:sje,BIMVERSION:lje,SERVERSION:uje,CompileTime:cje},Nkt=typeof window<"u"?window:typeof self<"u"?self:{};Nkt.logSmartEarth=()=>{let o=`
`);if(typeof ce!="function")throw new O("expecting a function but got "+y.classString(ce))}function oe(ue){ue!==B&&ee(this,ue),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(ue),this._promiseCreated(),this._fireEvent("promiseCreated",this)}oe.prototype.toString=function(){return"[object Promise]"},oe.prototype.caught=oe.prototype.catch=function(ue){var ce=arguments.length;if(ce>1){var de=new Array(ce-1),fe=0,we;for(we=0;we<ce-1;++we){var Te=arguments[we];if(y.isObject(Te))de[fe++]=Te;else return m("Catch statement predicate: expecting an object but got "+y.classString(Te))}if(de.length=fe,ue=arguments[we],typeof ue!="function")throw new O("The last argument to .catch() must be a function, got "+y.toString(ue));return this.then(void 0,z(de,ue,this))}return this.then(void 0,ue)},oe.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},oe.prototype.then=function(ue,ce){if(q.warnings()&&arguments.length>0&&typeof ue!="function"&&typeof ce!="function"){var de=".then() only accepts functions but was passed: "+y.classString(ue);arguments.length>1&&(de+=", "+y.classString(ce)),this._warn(de)}return this._then(ue,ce,void 0,void 0,void 0)},oe.prototype.done=function(ue,ce){var de=this._then(ue,ce,void 0,void 0,void 0);de._setIsFinal()},oe.prototype.spread=function(ue){return typeof ue!="function"?m("expecting a function but got "+y.classString(ue)):this.all()._then(ue,void 0,void 0,H,void 0)},oe.prototype.toJSON=function(){var ue={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(ue.fulfillmentValue=this.value(),ue.isFulfilled=!0):this.isRejected()&&(ue.rejectionReason=this.reason(),ue.isRejected=!0),ue},oe.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new Y(this).promise()},oe.prototype.error=function(ue){return this.caught(y.originatesFromRejection,ue)},oe.getNewLibraryCopy=VWe.exports,oe.is=function(ue){return ue instanceof oe},oe.fromNode=oe.fromCallback=function(ue){var ce=new oe(B);ce._captureStackTrace();var de=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,fe=re(ue)(te(ce,de));return fe===ie&&ce._rejectCallback(fe.e,!0),ce._isFateSealed()||ce._setAsyncGuaranteed(),ce},oe.all=function(ue){return new Y(ue).promise()},oe.cast=function(ue){var ce=W(ue);return ce instanceof oe||(ce=new oe(B),ce._captureStackTrace(),ce._setFulfilled(),ce._rejectionHandler0=ue),ce},oe.resolve=oe.fulfilled=oe.cast,oe.reject=oe.rejected=function(ue){var ce=new oe(B);return ce._captureStackTrace(),ce._rejectCallback(ue,!0),ce},oe.setScheduler=function(ue){if(typeof ue!="function")throw new O("expecting a function but got "+y.classString(ue));return R.setScheduler(ue)},oe.prototype._then=function(ue,ce,de,fe,we){var Te=we!==void 0,Ae=Te?we:new oe(B),Fe=this._target(),Ue=Fe._bitField;Te||(Ae._propagateFrom(this,3),Ae._captureStackTrace(),fe===void 0&&(this._bitField&2097152)!==0&&((Ue&50397184)!==0?fe=this._boundValue():fe=Fe===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,Ae));var it=S();if((Ue&50397184)!==0){var lt,ft,vt=Fe._settlePromiseCtx;(Ue&33554432)!==0?(ft=Fe._rejectionHandler0,lt=ue):(Ue&16777216)!==0?(ft=Fe._fulfillmentHandler0,lt=ce,Fe._unsetRejectionIsUnhandled()):(vt=Fe._settlePromiseLateCancellationObserver,ft=new F("late cancellation observer"),Fe._attachExtraTrace(ft),lt=ce),R.invoke(vt,Fe,{handler:y.contextBind(it,lt),promise:Ae,receiver:fe,value:ft})}else Fe._addCallbacks(ue,ce,Ae,fe,it);return Ae},oe.prototype._length=function(){return this._bitField&65535},oe.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},oe.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},oe.prototype._setLength=function(ue){this._bitField=this._bitField&-65536|ue&65535},oe.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},oe.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},oe.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},oe.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},oe.prototype._isFinal=function(){return(this._bitField&4194304)>0},oe.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},oe.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},oe.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},oe.prototype._setAsyncGuaranteed=function(){if(!R.hasCustomScheduler()){var ue=this._bitField;this._bitField=ue|(ue&536870912)>>2^134217728}},oe.prototype._setNoAsyncGuarantee=function(){this._bitField=(this._bitField|536870912)&-134217729},oe.prototype._receiverAt=function(ue){var ce=ue===0?this._receiver0:this[ue*4-4+3];if(ce!==v)return ce===void 0&&this._isBound()?this._boundValue():ce},oe.prototype._promiseAt=function(ue){return this[ue*4-4+2]},oe.prototype._fulfillmentHandlerAt=function(ue){return this[ue*4-4+0]},oe.prototype._rejectionHandlerAt=function(ue){return this[ue*4-4+1]},oe.prototype._boundValue=function(){},oe.prototype._migrateCallback0=function(ue){var ce=ue._bitField,de=ue._fulfillmentHandler0,fe=ue._rejectionHandler0,we=ue._promise0,Te=ue._receiverAt(0);Te===void 0&&(Te=v),this._addCallbacks(de,fe,we,Te,null)},oe.prototype._migrateCallbackAt=function(ue,ce){var de=ue._fulfillmentHandlerAt(ce),fe=ue._rejectionHandlerAt(ce),we=ue._promiseAt(ce),Te=ue._receiverAt(ce);Te===void 0&&(Te=v),this._addCallbacks(de,fe,we,Te,null)},oe.prototype._addCallbacks=function(ue,ce,de,fe,we){var Te=this._length();if(Te>=65535-4&&(Te=0,this._setLength(0)),Te===0)this._promise0=de,this._receiver0=fe,typeof ue=="function"&&(this._fulfillmentHandler0=y.contextBind(we,ue)),typeof ce=="function"&&(this._rejectionHandler0=y.contextBind(we,ce));else{var Ae=Te*4-4;this[Ae+2]=de,this[Ae+3]=fe,typeof ue=="function"&&(this[Ae+0]=y.contextBind(we,ue)),typeof ce=="function"&&(this[Ae+1]=y.contextBind(we,ce))}return this._setLength(Te+1),Te},oe.prototype._proxy=function(ue,ce){this._addCallbacks(void 0,void 0,ce,ue,null)},oe.prototype._resolveCallback=function(ue,ce){if((this._bitField&117506048)===0){if(ue===this)return this._rejectCallback(o(),!1);var de=W(ue,this);if(!(de instanceof oe))return this._fulfill(ue);ce&&this._propagateFrom(de,2);var fe=de._target();if(fe===this){this._reject(o());return}var we=fe._bitField;if((we&50397184)===0){var Te=this._length();Te>0&&fe._migrateCallback0(this);for(var Ae=1;Ae<Te;++Ae)fe._migrateCallbackAt(this,Ae);this._setFollowing(),this._setLength(0),this._setFollowee(de)}else if((we&33554432)!==0)this._fulfill(fe._value());else if((we&16777216)!==0)this._reject(fe._reason());else{var Fe=new F("late cancellation observer");fe._attachExtraTrace(Fe),this._reject(Fe)}}},oe.prototype._rejectCallback=function(ue,ce,de){var fe=y.ensureErrorObject(ue),we=fe===ue;if(!we&&!de&&q.warnings()){var Te="a promise was rejected with a non-error: "+y.classString(ue);this._warn(Te,!0)}this._attachExtraTrace(fe,ce?we:!1),this._reject(ue)},oe.prototype._resolveFromExecutor=function(ue){if(ue!==B){var ce=this;this._captureStackTrace(),this._pushContext();var de=!0,fe=this._execute(ue,function(we){ce._resolveCallback(we)},function(we){ce._rejectCallback(we,de)});de=!1,this._popContext(),fe!==void 0&&ce._rejectCallback(fe,!0)}},oe.prototype._settlePromiseFromHandler=function(ue,ce,de,fe){var we=fe._bitField;if((we&65536)===0){fe._pushContext();var Te;ce===H?!de||typeof de.length!="number"?(Te=ie,Te.e=new O("cannot .spread() a non-array: "+y.classString(de))):Te=re(ue).apply(this._boundValue(),de):Te=re(ue).call(ce,de);var Ae=fe._popContext();we=fe._bitField,(we&65536)===0&&(Te===G?fe._reject(de):Te===ie?fe._rejectCallback(Te.e,!1):(q.checkForgottenReturns(Te,Ae,"",fe,this),fe._resolveCallback(Te)))}},oe.prototype._target=function(){for(var ue=this;ue._isFollowing();)ue=ue._followee();return ue},oe.prototype._followee=function(){return this._rejectionHandler0},oe.prototype._setFollowee=function(ue){this._rejectionHandler0=ue},oe.prototype._settlePromise=function(ue,ce,de,fe){var we=ue instanceof oe,Te=this._bitField,Ae=(Te&134217728)!==0;(Te&65536)!==0?(we&&ue._invokeInternalOnCancel(),de instanceof Z&&de.isFinallyHandler()?(de.cancelPromise=ue,re(ce).call(de,fe)===ie&&ue._reject(ie.e)):ce===f?ue._fulfill(f.call(de)):de instanceof x?de._promiseCancelled(ue):we||ue instanceof Y?ue._cancel():de.cancel()):typeof ce=="function"?we?(Ae&&ue._setAsyncGuaranteed(),this._settlePromiseFromHandler(ce,de,fe,ue)):ce.call(de,fe,ue):de instanceof x?de._isResolved()||((Te&33554432)!==0?de._promiseFulfilled(fe,ue):de._promiseRejected(fe,ue)):we&&(Ae&&ue._setAsyncGuaranteed(),(Te&33554432)!==0?ue._fulfill(fe):ue._reject(fe))},oe.prototype._settlePromiseLateCancellationObserver=function(ue){var ce=ue.handler,de=ue.promise,fe=ue.receiver,we=ue.value;typeof ce=="function"?de instanceof oe?this._settlePromiseFromHandler(ce,fe,we,de):ce.call(fe,we,de):de instanceof oe&&de._reject(we)},oe.prototype._settlePromiseCtx=function(ue){this._settlePromise(ue.promise,ue.handler,ue.receiver,ue.value)},oe.prototype._settlePromise0=function(ue,ce,de){var fe=this._promise0,we=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(fe,ue,we,ce)},oe.prototype._clearCallbackDataAtIndex=function(ue){var ce=ue*4-4;this[ce+2]=this[ce+3]=this[ce+0]=this[ce+1]=void 0},oe.prototype._fulfill=function(ue){var ce=this._bitField;if(!((ce&117506048)>>>16)){if(ue===this){var de=o();return this._attachExtraTrace(de),this._reject(de)}this._setFulfilled(),this._rejectionHandler0=ue,(ce&65535)>0&&((ce&134217728)!==0?this._settlePromises():R.settlePromises(this),this._dereferenceTrace())}},oe.prototype._reject=function(ue){var ce=this._bitField;if(!((ce&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=ue,this._isFinal())return R.fatalError(ue,y.isNode);(ce&65535)>0?R.settlePromises(this):this._ensurePossibleRejectionHandled()}},oe.prototype._fulfillPromises=function(ue,ce){for(var de=1;de<ue;de++){var fe=this._fulfillmentHandlerAt(de),we=this._promiseAt(de),Te=this._receiverAt(de);this._clearCallbackDataAtIndex(de),this._settlePromise(we,fe,Te,ce)}},oe.prototype._rejectPromises=function(ue,ce){for(var de=1;de<ue;de++){var fe=this._rejectionHandlerAt(de),we=this._promiseAt(de),Te=this._receiverAt(de);this._clearCallbackDataAtIndex(de),this._settlePromise(we,fe,Te,ce)}},oe.prototype._settlePromises=function(){var ue=this._bitField,ce=ue&65535;if(ce>0){if((ue&16842752)!==0){var de=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,de,ue),this._rejectPromises(ce,de)}else{var fe=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,fe,ue),this._fulfillPromises(ce,fe)}this._setLength(0)}this._clearCancellationData()},oe.prototype._settledValue=function(){var ue=this._bitField;if((ue&33554432)!==0)return this._rejectionHandler0;if((ue&16777216)!==0)return this._fulfillmentHandler0},typeof Symbol<"u"&&Symbol.toStringTag&&P.defineProperty(oe.prototype,Symbol.toStringTag,{get:function(){return"Object"}});function ae(ue){this.promise._resolveCallback(ue)}function he(ue){this.promise._rejectCallback(ue,!1)}oe.defer=oe.pending=function(){q.deprecated("Promise.defer","new Promise");var ue=new oe(B);return{promise:ue,resolve:ae,reject:he}},y.notEnumerableProp(oe,"_makeSelfResolutionError",o),VFt()(oe,B,W,m,q),UFt()(oe,B,W,q),GFt()(oe,Y,m,q),jFt()(oe),YFt()(oe),KFt()(oe,Y,W,B,R),oe.Promise=oe,oe.version="3.7.2",JFt()(oe),ZFt()(oe,m,B,W,x,q),t5t()(oe,Y,m,W,B,q),r5t()(oe),o5t()(oe,B),s5t()(oe,Y,W,m),u5t()(oe,B,W,m),h5t()(oe,Y,m,W,B,q),f5t()(oe,Y,q),m5t()(oe,Y,m),g5t()(oe,B,q),v5t()(oe,m,W,X,B,q),C5t()(oe),w5t()(oe,B),E5t()(oe,B),y.toFastProperties(oe),y.toFastProperties(oe.prototype);function me(ue){var ce=new oe(B);ce._fulfillmentHandler0=ue,ce._rejectionHandler0=ue,ce._promise0=ue,ce._receiver0=ue}return me({a:1}),me({b:2}),me({c:3}),me(1),me(function(){}),me(void 0),me(!1),me(new oe(B)),q.setBounds(D.firstLineError,y.lastLineError),oe}});var I5t=ur((Jsn,P5t)=>{"use strict";var S5t;typeof Promise<"u"&&(S5t=Promise);function BMr(){try{Promise===Zve&&(Promise=S5t)}catch{}return Zve}var Zve=A5t()();Zve.noConflict=BMr;P5t.exports=Zve});var PRr={};fne(PRr,{Analysis:()=>bye,BaseObject:()=>bm,Billboard:()=>dme,Box:()=>Eme,BwMode:()=>qpe,Camera:()=>bpe,Cesium:()=>GVe,ClusterLayer:()=>twt,ColorAdjustment:()=>jpe,Core:()=>AC,Cylinder:()=>Sme,Degrees:()=>iwt,DoubleClickObjectTool:()=>Rpe,DoubleScreen:()=>rwt,DynamicEyeOffset:()=>Hze,EarthCtrl:()=>okt,Edit:()=>$ve,EditTool:()=>Upe,ElevationTool:()=>nwt,Ellipse:()=>Lme,Ellipsoid:()=>Ime,Environment:()=>Xpe,EventHandler:()=>EB,Explosion:()=>ome,FeatureLayer:()=>Mxe,Fire:()=>tme,Fireworks:()=>sme,FisheyeVideoProjection:()=>Qpe,Fog:()=>Hpe,Hawkeye:()=>Nxe,HorizontalDistanceTool:()=>Spe,HoverObjectTool:()=>Dpe,ImageryLayer:()=>Txe,Label:()=>gme,Languages:()=>M0,LineOfSightTool:()=>skt,Measure:()=>kpe,MeasureAreaTool:()=>Pj,MeasureHeightTool:()=>Epe,MeasureLineLengthTool:()=>Tpe,MeasurePathLengthTool:()=>ete,MeasureSlopeTool:()=>Ape,MeasureSurfaceAreaTool:()=>Ppe,MilitaryPlotting:()=>qye,Model:()=>pme,ModelClipping:()=>lye,ModelEdit:()=>aj,ModelLayer:()=>Pxe,NightMode:()=>Ype,Node:()=>tH,ObjectFactory:()=>nR,PerspectiveVideoProjection:()=>Jpe,PickObjectTool:()=>Ipe,PickPositionTool:()=>Mpe,Point:()=>wme,Polygon:()=>Cme,Polyline:()=>vme,PolylineVolume:()=>Nme,Profile:()=>rye,QueryMode:()=>lR,QueryType:()=>dT,RClickObjectTool:()=>Lpe,RadarScan:()=>ume,Rain:()=>Gpe,Rectangle:()=>Dme,RestrictHeight:()=>sye,SampleRenderedDataFlags:()=>uj,Scene:()=>Hve,SceneManager:()=>akt,SelectSet:()=>$pe,Skyline:()=>oye,Smoke:()=>rme,Snow:()=>Wpe,SpatialObject:()=>Rc,SpatialQuery:()=>Cye,SpatialTransform:()=>fj,SpotLight:()=>Bxe,Submergence:()=>iye,TerrainExcavation:()=>dye,TerrainLayer:()=>Axe,TerrainModifier:()=>uye,TitleBar:()=>dkt,Tool:()=>Ya,ToolManager:()=>spe,VERSIONINFO:()=>hje,ViewShed:()=>eye,Volumetric:()=>tye,WFSTool:()=>cj,Waters:()=>Oxe,WorkChart:()=>Rxe,ZBiasGeometryInstanceAttribute:()=>$or,czmlPathAnimation:()=>Xze,loadArrayBuffer:()=>iar,loadBlob:()=>tar,loadImage:()=>rar,loadJson:()=>ear,loadLayui:()=>Kze,loadText:()=>Zor,sampleRenderedData:()=>Z0e,sampleRenderedMesh:()=>Jor,sampleRenderedTerrain:()=>Qor,viewerNavigationCubeMixin:()=>hkt});module.exports=Rkt(PRr);var aje="CIM SDK v5.4.1.2",sje="Cesium v1.129",lje="BIM V20241204",uje="SER V20250613",cje="2025.7.21",Lkt="WebSDK V5.4",Okt={VERSION:aje,CesiumVERSION:sje,BIMVERSION:lje,SERVERSION:uje,CompileTime:cje},Nkt=typeof window<"u"?window:typeof self<"u"?self:{};Nkt.logSmartEarth=()=>{let o=`
%c${Lkt}
%c
\u7248 \u672C \u53F7\uFF1A${aje}    ${sje} ${lje} ${uje}
\u7F16\u8BD1\u65F6\u95F4\uFF1A${cje}
    `;setTimeout(console.log.bind(console,o,"color:#018aff;font-size:30px;font-wight:bold;font-family:\u5FAE\u8F6F\u96C5\u9ED1","color:#018aff;font-size:13px;font-family:\u5FAE\u8F6F\u96C5\u9ED1"),0)};var hje=Okt;var GVe={};fne(GVe,{AlphaMode:()=>m9,AlphaPipelineStage:()=>vOe,AnchorPointDirect:()=>y3e,AnchorPointIndirect:()=>C3e,Animation:()=>iVe,AnimationViewModel:()=>rVe,Appearance:()=>of,ApproximateTerrainHeights:()=>Sd,ArcGISTiledElevationTerrainProvider:()=>Bfe,ArcGisBaseMapType:()=>kF,ArcGisMapServerImageryProvider:()=>bw,ArcGisMapService:()=>IS,ArcType:()=>xs,ArticulationStageType:()=>rw,AssociativeArray:()=>oa,Atmosphere:()=>Hhe,AtmospherePipelineStage:()=>Q3e,AttributeCompression:()=>nc,AttributeType:()=>rl,AutoExposure:()=>$5e,AutomaticUniforms:()=>sG,Axis:()=>v0,AxisAlignedBoundingBox:()=>gQ,B3dmLoader:()=>L3e,B3dmParser:()=>R3e,Base64Encoder:()=>Wse,BaseLayerPicker:()=>oVe,BaseLayerPickerViewModel:()=>nVe,BatchTable:()=>uW,BatchTableHierarchy:()=>ade,BatchTexture:()=>$T,BatchTexturePipelineStage:()=>yOe,Billboard:()=>nf,BillboardCollection:()=>ZS,BillboardGraphics:()=>u3,BillboardLoadState:()=>Dx,BillboardTexture:()=>tW,BillboardVisualizer:()=>iLe,BingMapsGeocoderService:()=>Cyt,BingMapsImageryProvider:()=>TU,BingMapsStyle:()=>Fde,BlendEquation:()=>Dy,BlendFunction:()=>Ed,BlendOption:()=>_0,BlendTexture:()=>Q9,BlendingState:()=>Ou,BoundingRectangle:()=>Br,BoundingSphere:()=>Li,BoundingSphereState:()=>ia,BoundingVolumeSemantics:()=>wde,BoxEmitter:()=>Xfe,BoxGeometry:()=>Sw,BoxGeometryUpdater:()=>rLe,BoxGraphics:()=>qce,BoxOutlineGeometry:()=>jE,BrdfLutGenerator:()=>i5e,Buffer:()=>Do,BufferLoader:()=>QQ,BufferUsage:()=>xn,CPUStylingPipelineStage:()=>TOe,CallbackPositionProperty:()=>fFe,CallbackProperty:()=>Yr,Camera:()=>Ks,CameraEventAggregator:()=>sBe,CameraEventType:()=>vh,CameraFlightPath:()=>BRe,Cartesian2:()=>at,Cartesian3:()=>V,Cartesian4:()=>Xt,Cartographic:()=>kt,CartographicGeocoderService:()=>byt,CatmullRomSpline:()=>wyt,Cesium3DContentGroup:()=>_de,Cesium3DTile:()=>Yb,Cesium3DTileBatchTable:()=>pZ,Cesium3DTileColorBlendMode:()=>xM,Cesium3DTileContent:()=>m2t,Cesium3DTileContentFactory:()=>Ade,Cesium3DTileContentState:()=>Zd,Cesium3DTileContentType:()=>Ly,Cesium3DTileFeature:()=>$s,Cesium3DTileFeatureTable:()=>WW,Cesium3DTileOptimizationHint:()=>gF,Cesium3DTileOptimizations:()=>Mde,Cesium3DTilePass:()=>Lh,Cesium3DTilePassState:()=>Gx,Cesium3DTilePointFeature:()=>EV,Cesium3DTileRefine:()=>Vx,Cesium3DTileStyle:()=>zE,Cesium3DTileStyleEngine:()=>sFe,Cesium3DTilesInspector:()=>uVe,Cesium3DTilesInspectorViewModel:()=>lVe,Cesium3DTilesVoxelProvider:()=>x2t,Cesium3DTileset:()=>t0,Cesium3DTilesetBaseTraversal:()=>uFe,Cesium3DTilesetCache:()=>oFe,Cesium3DTilesetGraphics:()=>Jce,Cesium3DTilesetHeatmap:()=>aFe,Cesium3DTilesetMetadata:()=>Ide,Cesium3DTilesetMostDetailedTraversal:()=>lFe,Cesium3DTilesetSkipTraversal:()=>cFe,Cesium3DTilesetStatistics:()=>BF,Cesium3DTilesetTraversal:()=>hC,Cesium3DTilesetVisualizer:()=>dFe,CesiumInspector:()=>hVe,CesiumInspectorViewModel:()=>cVe,CesiumNavigation:()=>Oke,CesiumRenderPass:()=>Gke,CesiumTerrainProvider:()=>T7,CesiumWidget:()=>_7,Check:()=>Za,CheckerboardMaterialProperty:()=>wue,CircleEmitter:()=>lke,CircleGeometry:()=>Myt,CircleOutlineGeometry:()=>Dyt,CircleWaveMaterialProperty:()=>eW,ClassificationModelDrawCommand:()=>yNe,ClassificationPipelineStage:()=>COe,ClassificationPrimitive:()=>cW,ClassificationType:()=>Uc,ClearCommand:()=>gc,ClippingPlane:()=>Op,ClippingPlaneCollection:()=>Og,ClippingPolygon:()=>Jb,ClippingPolygonCollection:()=>Mv,Clock:()=>_W,ClockRange:()=>Pg,ClockStep:()=>Ef,ClockViewModel:()=>tVe,CloudCollection:()=>w2t,CloudType:()=>Oue,CollectionSource:()=>zst,Color:()=>ze,ColorBlendMode:()=>IM,ColorGeometryInstanceAttribute:()=>Oo,ColorMaterialProperty:()=>as,Command:()=>NCt,CommandLoader:()=>Nke,ComponentDatatype:()=>ti,Composite3DTileContent:()=>LNe,CompositeEntityCollection:()=>Qvt,CompositeMaterialProperty:()=>Eue,CompositePositionProperty:()=>dw,CompositeProperty:()=>oE,CompressedTextureBuffer:()=>BE,ComputeCommand:()=>p3,ComputeEngine:()=>YFe,ComputeRegionBox:()=>f2t,ConditionsExpression:()=>SDe,ConeEmitter:()=>P7,ConicArcSensor:()=>Wue,ConicArcSensorCollection:()=>PCt,ConicArcSensorGeometry:()=>que,ConicArcSensorGraphics:()=>Gue,ConicArcSensorOutlineGeometry:()=>Yue,ConstantPositionProperty:()=>hM,ConstantProperty:()=>Ch,ConstantSpline:()=>V3e,ConstructionWorker:()=>Hst,ContentMetadata:()=>KNe,Context:()=>e5e,ContextLimits:()=>So,CoplanarPolygonGeometry:()=>dU,CoplanarPolygonGeometryLibrary:()=>wG,CoplanarPolygonOutlineGeometry:()=>oL,CornerType:()=>Fd,CorrelationGroup:()=>b3e,CorridorGeometry:()=>VQ,CorridorGeometryLibrary:()=>Dh,CorridorGeometryUpdater:()=>aLe,CorridorGraphics:()=>Yce,CorridorOutlineGeometry:()=>oLe,Credit:()=>rs,CreditDisplay:()=>r5e,CubeMap:()=>S_,CubeMapFace:()=>rPe,CubicRealPolynomial:()=>oQ,CullFace:()=>Yh,CullingVolume:()=>Zm,CumulusCloud:()=>PP,CustomDataSource:()=>ehe,CustomHeightmapTerrainProvider:()=>Ryt,CustomMercatorProjection:()=>rW,CustomShader:()=>kw,CustomShaderManagerEx:()=>Uce,CustomShaderMode:()=>fQ,CustomShaderPipelineStage:()=>DOe,CustomShaderTranslucencyMode:()=>KF,CustomTilingScheme:()=>wlt,CylinderGeometry:()=>zQ,CylinderGeometryLibrary:()=>Fhe,CylinderGeometryUpdater:()=>sLe,CylinderGraphics:()=>Xce,CylinderOutlineGeometry:()=>UQ,CzmlDataSource:()=>eee,DataSource:()=>Tv,DataSourceClock:()=>sz,DataSourceCollection:()=>eLe,DataSourceDisplay:()=>TZ,DebugAppearance:()=>I2t,DebugCameraPrimitive:()=>Ip,DebugInspector:()=>gBe,DebugModelMatrixPrimitive:()=>dke,DefaultProxy:()=>Oyt,DepthFunction:()=>Ev,DepthPlane:()=>a5e,DequantizationPipelineStage:()=>ROe,DerivedCommand:()=>bv,DeveloperError:()=>At,DeviceOrientationCameraController:()=>s5e,DirectionalLight:()=>I7,DiscardEmptyTileImagePolicy:()=>Bde,DiscardMissingTileImagePolicy:()=>AFe,DistanceDisplayCondition:()=>Go,DistanceDisplayConditionGeometryInstanceAttribute:()=>Nh,DistanceLegendViewModel:()=>Eke,DoubleEndedPriorityQueue:()=>pfe,DoublyLinkedList:()=>vZ,DracoLoader:()=>ZQ,DrawCommand:()=>Vn,DynamicAtmosphereLightingType:()=>WQ,DynamicEnvironmentMapManager:()=>p9,DynamicGeometryBatch:()=>Lhe,DynamicGeometryUpdater:()=>ld,ECharts:()=>mQ,EarthOrientationParameters:()=>OSe,EarthOrientationParametersSample:()=>nQ,EasingFunction:()=>jy,EllipseGeometry:()=>EE,EllipseGeometryLibrary:()=>Lw,EllipseGeometryUpdater:()=>lLe,EllipseGraphics:()=>Kce,EllipseOutlineGeometry:()=>SM,Ellipsoid:()=>Ei,EllipsoidGeodesic:()=>Vg,EllipsoidGeometry:()=>zx,EllipsoidGeometryUpdater:()=>dLe,EllipsoidGraphics:()=>fW,EllipsoidOutlineGeometry:()=>Wb,EllipsoidPrimitive:()=>jFe,EllipsoidRhumbLine:()=>cE,EllipsoidSurfaceAppearance:()=>aU,EllipsoidTangentPlane:()=>mC,EllipsoidTerrainProvider:()=>DE,EllipsoidalOccluder:()=>qz,Empty3DTileContent:()=>_J,EncodedCartesian3:()=>Ic,Entity:()=>tf,EntityCluster:()=>R5,EntityCollection:()=>GE,EntityView:()=>vFe,Event:()=>Or,EventHelper:()=>xC,ExpandBySmartEarth:()=>Tb,ExpandByTerra:()=>Tlt,Expression:()=>$F,ExpressionNodeType:()=>yo,ExternalParameter:()=>wv,ExtrapolationType:()=>nM,FBXLoader:()=>Vke,FBXPrimitive:()=>e0e,FBXTreeParser:()=>kke,FeatureDataProvider:()=>ghe,FeatureDetection:()=>ma,FeatureIdPipelineStage:()=>dZ,FeatureJsonData:()=>CW,FisheyeProjectionMap:()=>NQ,FisheyeProjectionMapShader:()=>qK,FlattenVS:()=>wCt,FlowEcharts:()=>Yfe,Fog:()=>u5e,ForEach:()=>Qr,FrameRateMonitor:()=>fke,FrameState:()=>c5e,Framebuffer:()=>Mp,FramebufferManager:()=>ih,Frozen:()=>pi,FrustumCommands:()=>ife,FrustumGeometry:()=>bW,FrustumOutlineGeometry:()=>OQ,Fullscreen:()=>Lx,FullscreenButton:()=>fVe,FullscreenButtonViewModel:()=>dVe,GWBaiduImageryProvider:()=>TW,GeoJsonDataSource:()=>iz,GeoJsonLoader:()=>F3e,GeocodeType:()=>iee,Geocoder:()=>gVe,GeocoderService:()=>Hfe,GeocoderViewModel:()=>xVe,GeographicProjection:()=>e0,GeographicTilingScheme:()=>Xh,Geometry:()=>Ma,Geometry3DTileContent:()=>ONe,GeometryAttribute:()=>Zr,GeometryAttributes:()=>ph,GeometryFactory:()=>kyt,GeometryInstance:()=>eo,GeometryInstanceAttribute:()=>hw,GeometryOffsetAttribute:()=>Ql,GeometryPipeline:()=>Pc,GeometryPipelineStage:()=>NOe,GeometryType:()=>sF,GeometryUpdater:()=>zd,GeometryUpdaterSet:()=>GQ,GeometryVisualizer:()=>RLe,GetFeatureInfoFormat:()=>a$,GifImageProperty:()=>pdt,Globe:()=>zFe,GlobeDepth:()=>x5e,GlobeSurfaceShaderSet:()=>TFe,GlobeSurfaceTile:()=>jL,GlobeSurfaceTileProvider:()=>BFe,GlobeTranslucency:()=>RZ,GlobeTranslucencyFramebuffer:()=>g5e,GlobeTranslucencyState:()=>d5e,GltfBufferViewLoader:()=>jhe,GltfDracoLoader:()=>qhe,GltfGpmLoader:()=>T3e,GltfGpmLocal:()=>ode,GltfImageLoader:()=>Yhe,GltfIndexBufferLoader:()=>Xhe,GltfInstanceLoader:()=>sde,GltfJsonLoader:()=>Jhe,GltfLoader:()=>_U,GltfLoaderUtil:()=>HL,GltfMeshPrimitiveGpmLoader:()=>P3e,GltfStructuralMetadataLoader:()=>_3e,GltfTextureLoader:()=>Qhe,GltfVertexBufferLoader:()=>Zhe,GoogleEarthEnterpriseImageryProvider:()=>M2t,GoogleEarthEnterpriseMapsProvider:()=>IFe,GoogleEarthEnterpriseMetadata:()=>A7,GoogleEarthEnterpriseTerrainData:()=>Lue,GoogleEarthEnterpriseTerrainProvider:()=>Wyt,GoogleEarthEnterpriseTileInformation:()=>Q4e,GoogleGeocoderService:()=>qyt,GoogleMaps:()=>f$,GpxDataSource:()=>F4e,Graticules:()=>She,GregorianDate:()=>Z9,GridImageryProvider:()=>D2t,GridMaterialProperty:()=>Aue,GroundGeometryUpdater:()=>Ru,GroundPolylineGeometry:()=>sW,GroundPolylinePrimitive:()=>F5,GroundPrimitive:()=>HE,GroupMetadata:()=>Kle,GwBufferAnalysis:()=>Phe,HeadingPitchRange:()=>zw,HeadingPitchRoll:()=>ws,Heap:()=>ASe,HeightMap:()=>_Ct,HeightReference:()=>qn,HeightmapEncoding:()=>f5,HeightmapTerrainData:()=>CP,HeightmapTessellator:()=>Nde,HermitePolynomialApproximation:()=>b4e,HermiteSpline:()=>mJ,HilbertOrder:()=>Wle,HomeButton:()=>vVe,HomeButtonViewModel:()=>_Ve,HorizontalOrigin:()=>Mc,HugeAdapter:()=>fZ,I3SBuildingSceneLayerExplorer:()=>$Ct,I3SBuildingSceneLayerExplorerViewModel:()=>yVe,I3SDataProvider:()=>gD,I3SDecoder:()=>u4e,I3SFeature:()=>h4e,I3SField:()=>d4e,I3SGeometry:()=>gue,I3SLayer:()=>Cfe,I3SNode:()=>_ue,I3SStatistics:()=>p4e,I3SSublayer:()=>m4e,I3SSymbology:()=>f4e,I3dmLoader:()=>k3e,I3dmParser:()=>B3e,ITwinData:()=>R2t,ITwinPlatform:()=>w_,Iau2000Orientation:()=>HFe,Iau2006XysData:()=>FSe,Iau2006XysSample:()=>Ace,IauOrientationAxes:()=>GFe,IauOrientationParameters:()=>UFe,ImageBasedLighting:()=>lZ,ImageBasedLightingPipelineStage:()=>eOe,ImageCombine:()=>kce,ImageMaterialProperty:()=>w0,Imagery:()=>Hde,ImageryLayer:()=>Pp,ImageryLayerCollection:()=>kFe,ImageryLayerFeatureInfo:()=>$5,ImageryProvider:()=>JM,ImageryState:()=>$l,Implicit3DTileContent:()=>Xle,ImplicitAvailabilityBitstream:()=>qle,ImplicitMetadataView:()=>yde,ImplicitSubdivisionScheme:()=>P_,ImplicitSubtree:()=>Cde,ImplicitSubtreeCache:()=>ake,ImplicitSubtreeMetadata:()=>kNe,ImplicitTileCoordinates:()=>Lde,ImplicitTileset:()=>Rde,IndexDatatype:()=>Jn,InfoBox:()=>wVe,InfoBoxViewModel:()=>bVe,InspectorShared:()=>sM,InstanceAttributeSemantic:()=>Fx,InstancingPipelineStage:()=>pOe,InterpolationAlgorithm:()=>Yyt,InterpolationType:()=>TF,Intersect:()=>ua,IntersectionTests:()=>Wc,Intersections2D:()=>w7,Interval:()=>NS,InvertClassification:()=>efe,Ion:()=>NF,IonGeocodeProviderType:()=>jV,IonGeocoderService:()=>jfe,IonImageryProvider:()=>VF,IonResource:()=>FF,IonWorldImageryStyle:()=>RG,Iso8601:()=>kn,JobScheduler:()=>f5e,JobType:()=>My,JsonMetadataTable:()=>YQ,JulianDate:()=>si,KTX2Transcoder:()=>ISe,KeyboardEventModifier:()=>rC,KeyframeNode:()=>Jd,KmlCamera:()=>aRe,KmlDataSource:()=>DQ,KmlLookAt:()=>sRe,KmlTour:()=>lRe,KmlTourFlyTo:()=>uRe,KmlTourWait:()=>hRe,Label:()=>w$,LabelCollection:()=>o3,LabelGraphics:()=>pW,LabelStyle:()=>$f,LabelVisualizer:()=>LLe,LagrangePolynomialApproximation:()=>T4e,LeapSecond:()=>jh,Light:()=>O2t,LightingModel:()=>nC,LightingPipelineStage:()=>BOe,LinearApproximation:()=>dhe,LinearSampler:()=>QM,LinearSpline:()=>hZ,MTLLoader:()=>zke,ManagedArray:()=>MM,MapMode2D:()=>EM,MapProjection:()=>$yt,MapboxImageryProvider:()=>EU,MapboxStyleImageryProvider:()=>F2t,Material:()=>zo,MaterialAppearance:()=>y0,MaterialPipelineStage:()=>VOe,MaterialProperty:()=>E_,Math:()=>Ce,Matrix2:()=>b0,Matrix3:()=>Yt,Matrix4:()=>Ee,Megatexture:()=>mfe,MeshParser:()=>Bke,MeshPhongMaterial:()=>x$,MeshPrimitiveGpmLocal:()=>S3e,MetadataClass:()=>kW,MetadataClassProperty:()=>NW,MetadataComponentType:()=>da,MetadataEntity:()=>Wu,MetadataEnum:()=>m3e,MetadataEnumValue:()=>p3e,MetadataPicking:()=>p5e,MetadataPickingPipelineStage:()=>YI,MetadataPipelineStage:()=>ML,MetadataSchema:()=>q5,MetadataSchemaLoader:()=>ede,MetadataSemantic:()=>bde,MetadataTable:()=>xU,MetadataTableProperty:()=>jLe,MetadataType:()=>Mo,MipmapHint:()=>Gz,Model:()=>Dv,Model3DTileContent:()=>$I,ModelAlphaOptions:()=>oNe,ModelAnimation:()=>j3e,ModelAnimationChannel:()=>G3e,ModelAnimationCollection:()=>q3e,ModelAnimationLoop:()=>BS,ModelAnimationState:()=>oF,ModelArticulation:()=>rOe,ModelArticulationStage:()=>iOe,ModelClippingPlanesPipelineStage:()=>aOe,ModelClippingPolygonsPipelineStage:()=>uOe,ModelColorPipelineStage:()=>xJ,ModelComponents:()=>Jl,ModelDrawCommand:()=>CNe,ModelDrawCommands:()=>TNe,ModelFeature:()=>Y3e,ModelFeatureTable:()=>X3e,ModelFlattenPipelineStage:()=>SNe,ModelGraphics:()=>_Q,ModelLightingOptions:()=>gNe,ModelMatrixUpdateStage:()=>xOe,ModelNode:()=>cOe,ModelRenderResources:()=>cNe,ModelRuntimeNode:()=>_Oe,ModelRuntimePrimitive:()=>iNe,ModelSceneGraph:()=>PNe,ModelSilhouettePipelineStage:()=>fNe,ModelSkin:()=>nNe,ModelSplitterPipelineStage:()=>mNe,ModelStatistics:()=>INe,ModelType:()=>Np,ModelUtility:()=>Ll,ModelVisualizer:()=>RNe,Moon:()=>qFe,MorphTargetsPipelineStage:()=>UOe,MorphWeightSpline:()=>Jyt,MortonOrder:()=>_9,MultiResourceImageryProvider:()=>EW,MultiResourceTerrainProvider:()=>Ihe,Multiple3DTileContent:()=>eFe,MultisampleFramebuffer:()=>M3e,NavigationControl:()=>F7,NavigationHelpButton:()=>EVe,NavigationHelpButtonViewModel:()=>TVe,NavigationUtils:()=>B7,NavigationViewModel:()=>p$,NearFarScalar:()=>fa,NeverTileDiscardPolicy:()=>B2t,NodeRenderResources:()=>xNe,NodeStatisticsPipelineStage:()=>gOe,NodeTransformationProperty:()=>$ce,OBJLoader:()=>Hke,OBJPrimitive:()=>t0e,OIT:()=>C5e,Occluder:()=>Ahe,OffsetGeometryInstanceAttribute:()=>xm,OlMVTImageryProvider:()=>AW,OpenCageGeocoderService:()=>Qyt,OpenStreetMapImageryProvider:()=>OS,OrderedGroundPrimitiveCollection:()=>tLe,OrientedBoundingBox:()=>Ju,OrthographicFrustum:()=>gs,OrthographicOffCenterFrustum:()=>ix,Packable:()=>Zyt,PackableForInterpolation:()=>e2t,Particle:()=>$fe,ParticleBurst:()=>D7,ParticleEmitter:()=>z2t,ParticleSystem:()=>QE,Pass:()=>Sr,PassState:()=>kp,PathGraphics:()=>vQ,PathVisualizer:()=>pFe,PeliasGeocoderService:()=>tke,PerInstanceColorAppearance:()=>Da,PerformanceDisplay:()=>BZ,PerformanceWatchdog:()=>MVe,PerformanceWatchdogViewModel:()=>IVe,PerspectiveFrustum:()=>jc,PerspectiveOffCenterFrustum:()=>KM,PerspectiveProjectionMap:()=>FQ,PerspectiveProjectionMapShader:()=>YK,PerspectiveProjectionMapWithDepth:()=>BQ,PerspectiveProjectionMapWithDepthShader:()=>wF,PickDepth:()=>m5e,PickDepthFramebuffer:()=>b5e,PickFramebuffer:()=>w5e,PickGlobeSlope:()=>Ovt,PickedMetadataInfo:()=>jBe,Picking:()=>M5e,PickingPipelineStage:()=>HOe,PinBuilder:()=>wQ,PixelDatatype:()=>bn,PixelFormat:()=>an,Plane:()=>Ea,PlaneGeometry:()=>fLe,PlaneGeometryUpdater:()=>xLe,PlaneGraphics:()=>UDe,PlaneOutlineGeometry:()=>pLe,PntsLoader:()=>MNe,PntsParser:()=>xde,PointCloud:()=>s4e,PointCloudEyeDomeLighting:()=>uZ,PointCloudShading:()=>GW,PointCloudStylingPipelineStage:()=>WOe,PointGraphics:()=>Qce,PointLight:()=>wfe,PointPrimitive:()=>Pv,PointPrimitiveCollection:()=>a3,PointVisualizer:()=>mFe,PolygonDepth:()=>Ez,PolygonDepthFS:()=>fde,PolygonDepthVS:()=>pde,PolygonGeometry:()=>_c,PolygonGeometryLibrary:()=>Tu,PolygonGeometryUpdater:()=>_Le,PolygonGraphics:()=>eu,PolygonHierarchy:()=>to,PolygonOutlineGeometry:()=>gLe,PolygonPipeline:()=>ad,Polyline:()=>YM,PolylineArrowMaterialProperty:()=>gm,PolylineCollection:()=>V5,PolylineColorAppearance:()=>jm,PolylineDashMaterialProperty:()=>Eu,PolylineGeometry:()=>zy,PolylineGeometryUpdater:()=>xFe,PolylineGlowMaterialProperty:()=>Sue,PolylineGraphics:()=>CM,PolylineMaterialAppearance:()=>T_,PolylineOutlineMaterialProperty:()=>QL,PolylinePipeline:()=>Nd,PolylineTrailLinkMaterialProperty:()=>Nvt,PolylineVisualizer:()=>_Fe,PolylineVolumeGeometry:()=>vLe,PolylineVolumeGeometryLibrary:()=>fz,PolylineVolumeGeometryUpdater:()=>CLe,PolylineVolumeGraphics:()=>Zce,PolylineVolumeOutlineGeometry:()=>yLe,PositionProperty:()=>dW,PositionPropertyArray:()=>ZG,PostProcessStage:()=>Ua,PostProcessStageCollection:()=>eBe,PostProcessStageComposite:()=>_m,PostProcessStageLibrary:()=>X2,PostProcessStageSampleMode:()=>J2,PostProcessStageTextureCache:()=>ufe,PpeMetadata:()=>A3e,PpeSource:()=>MCt,PpeTexture:()=>E3e,Primitive:()=>pa,PrimitiveCollection:()=>I_,PrimitiveLoadPlan:()=>nZ,PrimitiveOutlineGenerator:()=>rde,PrimitiveOutlinePipelineStage:()=>YOe,PrimitivePipeline:()=>ez,PrimitiveRenderResources:()=>_Ne,PrimitiveState:()=>dm,PrimitiveStatisticsPipelineStage:()=>XOe,PrimitiveType:()=>An,ProjectionPicker:()=>SVe,ProjectionPickerViewModel:()=>AVe,Property:()=>Ut,PropertyArray:()=>Lfe,PropertyAttribute:()=>Whe,PropertyAttributeProperty:()=>HLe,PropertyBag:()=>tP,PropertyTable:()=>G5,PropertyTexture:()=>KQ,PropertyTextureProperty:()=>zLe,ProviderViewModel:()=>hm,Proxy:()=>r2t,QuadraticRealPolynomial:()=>zS,QuadtreeOccluders:()=>Yde,QuadtreePrimitive:()=>Ww,QuadtreePrimitivezh:()=>kvt,QuadtreeTile:()=>LZ,QuadtreeTileLoadState:()=>sd,QuadtreeTileProvider:()=>WU,QuantizedMeshTerrainData:()=>Vfe,QuarticRealPolynomial:()=>QSe,Quaternion:()=>Er,QuaternionSpline:()=>U3e,Queue:()=>c3,RasterizeHtml:()=>v7,Ray:()=>qa,Rectangle:()=>Si,RectangleCollisionChecker:()=>Uhe,RectangleGeometry:()=>fU,RectangleGeometryLibrary:()=>Cv,RectangleGeometryUpdater:()=>SLe,RectangleGraphics:()=>mW,RectangleOutlineGeometry:()=>khe,RectangularSensor:()=>NJ,RectangularSensorFS:()=>kue,RectangularSensorGraphics:()=>ICt,RectangularSensorPrimitive:()=>Kke,RectangularSensorScanPlaneFS:()=>Xke,RectangularSensorVS:()=>r0e,RectangularSensorVisualizer:()=>$ke,ReferenceFrame:()=>Q0,ReferenceProperty:()=>IQ,RegionPolygonTexture:()=>Cke,RegionTexture:()=>bke,RegionWeather:()=>i0e,RenderObjectFactory:()=>Dc,RenderState:()=>wn,Renderbuffer:()=>fw,RenderbufferFormat:()=>Bb,Request:()=>Jm,RequestErrorEvent:()=>$V,RequestScheduler:()=>Aw,RequestState:()=>Gc,RequestType:()=>e2,ResetViewNavigationControl:()=>Pke,Resource:()=>Wr,ResourceCache:()=>Id,ResourceCacheKey:()=>YE,ResourceCacheStatistics:()=>g3e,ResourceLoader:()=>zg,ResourceLoaderState:()=>ea,Rotation:()=>NM,RuntimeError:()=>Xi,S2Cell:()=>IG,S3MDataSource:()=>Hvt,SDFSettings:()=>K2,SampledPositionProperty:()=>aE,SampledProperty:()=>fL,Sampler:()=>aa,ScaledPositionProperty:()=>vW,Scene:()=>BU,SceneFramebuffer:()=>rfe,SceneHeightMap:()=>Yke,SceneHeightWaterPostProcessing:()=>GT,SceneHeightWaterPrimitive:()=>fCt,SceneMode:()=>Ti,SceneMode2DPipelineStage:()=>KOe,SceneModePicker:()=>RVe,SceneModePickerViewModel:()=>DVe,SceneTransforms:()=>Va,SceneTransitioner:()=>aBe,ScreenSpaceCameraController:()=>fBe,ScreenSpaceEventHandler:()=>kr,ScreenSpaceEventType:()=>Di,SelectedFeatureIdPipelineStage:()=>gJ,SelectionIndicator:()=>OVe,SelectionIndicatorViewModel:()=>LVe,Sensor:()=>mCt,SensorVolumePortionToDisplay:()=>Iue,ShaderBuilder:()=>hde,ShaderCache:()=>KFe,ShaderDestination:()=>nr,ShaderFunction:()=>uNe,ShaderProgram:()=>Us,ShaderSource:()=>$r,ShaderStruct:()=>sNe,ShadowMap:()=>R3,ShadowMapShader:()=>UF,ShadowMode:()=>Zl,ShadowVolumeAppearance:()=>CL,ShowGeometryInstanceAttribute:()=>Ol,Simon1994PlanetaryPositions:()=>bJ,SimplePolylineGeometry:()=>n2t,SingleTileImageryProvider:()=>Gw,SkinningPipelineStage:()=>JOe,SkyAtmosphere:()=>XZ,SkyBox:()=>kU,SlopeArrow:()=>o0e,SpatialNode:()=>UBe,Spdcf:()=>w3e,SpecularEnvironmentCubeMap:()=>wz,SphereEmitter:()=>R7,SphereGeometry:()=>o2t,SphereOutlineGeometry:()=>h3,Spherical:()=>E4e,Spline:()=>S0,SplitDirection:()=>Bw,Splitter:()=>gfe,SpotLight:()=>Wvt,StaticGeometryColorBatch:()=>mL,StaticGeometryPerMaterialBatch:()=>xL,StaticGroundGeometryColorBatch:()=>Rle,StaticGroundGeometryPerMaterialBatch:()=>DLe,StaticGroundPolylinePerMaterialBatch:()=>gFe,StaticOutlineGeometryBatch:()=>Lle,StencilConstants:()=>Ia,StencilFunction:()=>Nu,StencilOperation:()=>lo,SteppedSpline:()=>z3e,Stereographic:()=>Fb,StorageType:()=>x9,StripeMaterialProperty:()=>Pue,StripeOrientation:()=>g5,StructuralMetadata:()=>nD,StyleCommandsNeeded:()=>Tz,StyleExpression:()=>U2t,Sun:()=>o4e,SunLight:()=>u7,SunPostProcess:()=>xBe,SupportedImageFormats:()=>v3e,SvgPathBindingHandler:()=>eVe,TaskProcessor:()=>ep,Terrain:()=>_ke,TerrainData:()=>bU,TerrainEncoding:()=>ME,TerrainFillMesh:()=>jde,TerrainFlatten:()=>qU,TerrainFlattenPolygonTexture:()=>wke,TerrainMesh:()=>wU,TerrainOffsetProperty:()=>Nhe,TerrainProvider:()=>Uy,TerrainQuantization:()=>iC,TerrainRegionWeather:()=>qke,TerrainState:()=>Ns,Texture:()=>Wn,Texture3D:()=>B4e,TextureAtlas:()=>Ice,TextureCache:()=>$Fe,TextureMagnificationFilter:()=>pl,TextureManager:()=>EDe,TextureMinificationFilter:()=>na,TexturePacker:()=>Pce,TextureUniform:()=>Lce,TextureWrap:()=>io,TileAvailability:()=>GF,TileBoundingRegion:()=>IE,TileBoundingS2Cell:()=>tFe,TileBoundingSphere:()=>E3,TileBoundingVolume:()=>H2t,TileCoordinatesImageryProvider:()=>cee,TileDiscardPolicy:()=>G2t,TileEdge:()=>Os,TileImagery:()=>Gde,TileMapServiceImageryProvider:()=>bP,TileMetadata:()=>JNe,TileOrientedBoundingBox:()=>$y,TileProviderError:()=>qm,TileReplacementQueue:()=>Kde,TileSelectionResult:()=>Pa,TileState:()=>W2t,Tileset3DTileContent:()=>VNe,TilesetMetadata:()=>nFe,TilesetPipelineStage:()=>K3e,TilesetRegionWeather:()=>jke,TilingScheme:()=>a2t,TimeConstants:()=>zc,TimeDynamicImagery:()=>Ude,TimeDynamicPointCloud:()=>_fe,TimeInterval:()=>Rl,TimeIntervalCollection:()=>ky,TimeIntervalCollectionPositionProperty:()=>v9,TimeIntervalCollectionProperty:()=>e9,TimeStandard:()=>zu,Timeline:()=>BVe,TimelineHighlightRange:()=>NVe,TimelineTrack:()=>FVe,Tipsify:()=>ePe,ToggleButtonViewModel:()=>nG,Tonemapper:()=>PV,TrackingReferenceFrame:()=>dG,Transforms:()=>Mr,TranslationRotationScale:()=>Vw,TranslucentTileClassification:()=>P5e,TridiagonalSystemSolver:()=>lde,TrustedServers:()=>Cce,TweenCollection:()=>dfe,UniformState:()=>JFe,UniformType:()=>ba,UrlTemplateGeojsonProvider:()=>Yvt,UrlTemplateImageryProvider:()=>e1,UserInterfaceControl:()=>Zfe,Utils:()=>AP,VERSION:()=>P0e,VRButton:()=>UVe,VRButtonViewModel:()=>zVe,VRTheWorldTerrainProvider:()=>c2t,VaryingType:()=>Gy,Vector3DTileBatch:()=>g9,Vector3DTileClampedPolylines:()=>jNe,Vector3DTileContent:()=>XNe,Vector3DTileGeometry:()=>xV,Vector3DTilePoints:()=>zNe,Vector3DTilePolygons:()=>UNe,Vector3DTilePolylines:()=>Ede,Vector3DTilePrimitive:()=>vde,VelocityOrientationProperty:()=>A4e,VelocityVectorProperty:()=>EZ,VertexArray:()=>$u,VertexArrayFacade:()=>sQ,VertexAttributeSemantic:()=>sa,VertexFormat:()=>sn,VerticalExaggeration:()=>Vy,VerticalExaggerationPipelineStage:()=>ZOe,VerticalOrigin:()=>co,VideoSynchronizer:()=>s2t,View:()=>Yw,ViewShed:()=>ACt,ViewShedMap:()=>x7,ViewShedMapShader:()=>HF,Viewer:()=>S0e,ViewportQuad:()=>O7,Visibility:()=>wu,Visualizer:()=>gyt,VolumeCloud:()=>a0e,VoxelBoxShape:()=>GZ,VoxelCell:()=>_Be,VoxelContent:()=>ffe,VoxelCylinderShape:()=>WZ,VoxelEllipsoidShape:()=>jZ,VoxelInspector:()=>VVe,VoxelInspectorViewModel:()=>kVe,VoxelMetadataOrder:()=>Iz,VoxelPrimitive:()=>YZ,VoxelProvider:()=>j2t,VoxelRenderResources:()=>LBe,VoxelShape:()=>q2t,VoxelShapeType:()=>Hb,VoxelTraversal:()=>HBe,VulkanConstants:()=>h2t,WallGeometry:()=>PLe,WallGeometryLibrary:()=>Vhe,WallGeometryUpdater:()=>MLe,WallGraphics:()=>yQ,WallOutlineGeometry:()=>ILe,WaterFS:()=>NRe,WaterHeightMap:()=>vCt,WaterMaterialProperty:()=>Xvt,WaterPipelinePrimitive:()=>Ife,WaterPostProcessing:()=>Uue,WaterPostProcessingEx:()=>Hue,WaterPrimitive:()=>s0e,WaterPrimitiveEx:()=>hB,WaterReflectImage:()=>Jke,WaterReflectImageEx:()=>Qke,WebGLConstants:()=>Pi,WebMapServiceImageryProvider:()=>AU,WebMapTileServiceImageryProvider:()=>I3,WebMercatorProjection:()=>ef,WebMercatorTilingScheme:()=>tp,WindingOrder:()=>Iw,WireframeIndexGenerator:()=>cde,WireframePipelineStage:()=>tNe,ZoomNavigationControl:()=>Nue,_shadersAcesTonemappingStage:()=>D5e,_shadersAdditiveBlend:()=>pBe,_shadersAdjustTranslucentFS:()=>sue,_shadersAllMaterialAppearanceFS:()=>TRe,_shadersAllMaterialAppearanceVS:()=>ERe,_shadersAmbientOcclusionGenerate:()=>R5e,_shadersAmbientOcclusionModulate:()=>L5e,_shadersAspectRampMaterial:()=>oPe,_shadersAtmosphereCommon:()=>Cz,_shadersAtmosphereStageFS:()=>$3e,_shadersAtmosphereStageVS:()=>J3e,_shadersBasicMaterialAppearanceFS:()=>ARe,_shadersBasicMaterialAppearanceVS:()=>SRe,_shadersBillboardCollectionFS:()=>aDe,_shadersBillboardCollectionVS:()=>sDe,_shadersBlackAndWhite:()=>O5e,_shadersBloomComposite:()=>N5e,_shadersBrdfLutGeneratorFS:()=>t5e,_shadersBrightPass:()=>mBe,_shadersBrightness:()=>F5e,_shadersBumpMapMaterial:()=>aPe,_shadersCPUStylingStageFS:()=>wOe,_shadersCPUStylingStageVS:()=>bOe,_shadersCheckerboardMaterial:()=>sPe,_shadersCloudCollectionFS:()=>k4e,_shadersCloudCollectionVS:()=>V4e,_shadersCloudNoiseFS:()=>z4e,_shadersCloudNoiseVS:()=>U4e,_shadersCompareAndPackTranslucentDepth:()=>S5e,_shadersCompositeOITFS:()=>_5e,_shadersCompositeTranslucentClassification:()=>s$,_shadersComputeIrradianceFS:()=>NLe,_shadersComputeRadianceMapFS:()=>FLe,_shadersContrastBias:()=>B5e,_shadersConvolveSpecularMapFS:()=>BLe,_shadersConvolveSpecularMapVS:()=>kLe,_shadersCustomShaderStageFS:()=>AOe,_shadersCustomShaderStageVS:()=>EOe,_shadersCzmBuiltins:()=>DK,_shadersDepthOfField:()=>k5e,_shadersDepthPlaneFS:()=>n5e,_shadersDepthPlaneVS:()=>o5e,_shadersDepthView:()=>V5e,_shadersDepthViewPacked:()=>yCt,_shadersDotMaterial:()=>lPe,_shadersEdgeDetection:()=>z5e,_shadersElevationBandMaterial:()=>uPe,_shadersElevationContourMaterial:()=>cPe,_shadersElevationRampMaterial:()=>hPe,_shadersEllipsoidFS:()=>oue,_shadersEllipsoidSurfaceAppearanceFS:()=>MRe,_shadersEllipsoidSurfaceAppearanceVS:()=>DRe,_shadersEllipsoidVS:()=>aue,_shadersFXAA:()=>G5e,_shadersFXAA3_11:()=>K5e,_shadersFadeMaterial:()=>dPe,_shadersFeatureIdStageFS:()=>SOe,_shadersFeatureIdStageVS:()=>POe,_shadersFilmicTonemapping:()=>U5e,_shadersGaussianBlur1D:()=>EJ,_shadersGeometryStageFS:()=>LOe,_shadersGeometryStageVS:()=>OOe,_shadersGlobeFS:()=>CFe,_shadersGlobeVS:()=>bFe,_shadersGridMaterial:()=>fPe,_shadersGroundAtmosphere:()=>Qle,_shadersHSBToRGB:()=>nMe,_shadersHSLToRGB:()=>oMe,_shadersImageBasedLightingStageFS:()=>Z3e,_shadersInstancingStageCommon:()=>hOe,_shadersInstancingStageVS:()=>dOe,_shadersIntersectBox:()=>EBe,_shadersIntersectClippingPlanes:()=>TBe,_shadersIntersectCylinder:()=>ABe,_shadersIntersectDepth:()=>wBe,_shadersIntersectEllipsoid:()=>SBe,_shadersIntersectLongitude:()=>cue,_shadersIntersection:()=>c$,_shadersIntersectionUtils:()=>bBe,_shadersLegacyInstancingStageVS:()=>fOe,_shadersLensFlare:()=>W5e,_shadersLightingStageFS:()=>FOe,_shadersMaterialStageFS:()=>kOe,_shadersMegatexture:()=>RBe,_shadersMetadataStageFS:()=>IOe,_shadersMetadataStageVS:()=>MOe,_shadersModelClippingPlanesStageFS:()=>oOe,_shadersModelClippingPolygonsStageFS:()=>lOe,_shadersModelClippingPolygonsStageVS:()=>sOe,_shadersModelColorStageFS:()=>nOe,_shadersModelFS:()=>wNe,_shadersModelFlattenStageFS:()=>ANe,_shadersModelFlattenStageVS:()=>ENe,_shadersModelSilhouetteStageFS:()=>hNe,_shadersModelSilhouetteStageVS:()=>dNe,_shadersModelSplitterStageFS:()=>pNe,_shadersModelVS:()=>bNe,_shadersModifiedReinhardTonemapping:()=>j5e,_shadersMorphTargetsStageVS:()=>zOe,_shadersNightVision:()=>q5e,_shadersNormalMapMaterial:()=>pPe,_shadersOctree:()=>DBe,_shadersPassThrough:()=>qL,_shadersPassThroughDepth:()=>TJ,_shadersPbrNeutralTonemapping:()=>H5e,_shadersPerInstanceColorAppearanceFS:()=>kDe,_shadersPerInstanceColorAppearanceVS:()=>VDe,_shadersPerInstanceFlatColorAppearanceFS:()=>Gce,_shadersPerInstanceFlatColorAppearanceVS:()=>zDe,_shadersPointCloudEyeDomeLighting:()=>D3e,_shadersPointCloudStylingStageVS:()=>GOe,_shadersPointPrimitiveCollectionFS:()=>j6,_shadersPointPrimitiveCollectionVS:()=>dDe,_shadersPolygonSignedDistanceFS:()=>OLe,_shadersPolylineArrowMaterial:()=>mPe,_shadersPolylineColorAppearanceVS:()=>ODe,_shadersPolylineCommon:()=>Qz,_shadersPolylineDashMaterial:()=>xPe,_shadersPolylineFS:()=>Wce,_shadersPolylineGlowMaterial:()=>gPe,_shadersPolylineMaterialAppearanceVS:()=>NDe,_shadersPolylineOutlineMaterial:()=>_Pe,_shadersPolylineShadowVolumeFS:()=>MDe,_shadersPolylineShadowVolumeMorphFS:()=>DDe,_shadersPolylineShadowVolumeMorphVS:()=>RDe,_shadersPolylineShadowVolumeVS:()=>LDe,_shadersPolylineVS:()=>RRe,_shadersPostProcessRain:()=>CCt,_shadersPostProcessSnow:()=>bCt,_shadersPrimitiveOutlineStageFS:()=>qOe,_shadersPrimitiveOutlineStageVS:()=>jOe,_shadersRGBToHSB:()=>DMe,_shadersRGBToHSL:()=>RMe,_shadersRGBToXYZ:()=>LMe,_shadersReinhardTonemapping:()=>Y5e,_shadersReprojectWebMercatorFS:()=>RFe,_shadersReprojectWebMercatorVS:()=>LFe,_shadersRimLightingMaterial:()=>vPe,_shadersSelectedFeatureIdStageCommon:()=>Ule,_shadersShadowVolumeAppearanceFS:()=>jce,_shadersShadowVolumeAppearanceVS:()=>BDe,_shadersShadowVolumeFS:()=>M$,_shadersSilhouette:()=>X5e,_shadersSkinningStageVS:()=>$Oe,_shadersSkyAtmosphereCommon:()=>pue,_shadersSkyAtmosphereFS:()=>JBe,_shadersSkyAtmosphereVS:()=>QBe,_shadersSkyBoxFS:()=>e4e,_shadersSkyBoxVS:()=>t4e,_shadersSlopeRampMaterial:()=>yPe,_shadersStripeMaterial:()=>CPe,_shadersSunFS:()=>i4e,_shadersSunTextureFS:()=>r4e,_shadersSunVS:()=>n4e,_shadersTexturedMaterialAppearanceFS:()=>PRe,_shadersTexturedMaterialAppearanceVS:()=>IRe,_shadersVector3DTileClampedPolylinesFS:()=>WNe,_shadersVector3DTileClampedPolylinesVS:()=>GNe,_shadersVector3DTilePolylinesVS:()=>HNe,_shadersVectorTileVS:()=>Gle,_shadersVerticalExaggerationStageVS:()=>QOe,_shadersViewportQuadFS:()=>H4e,_shadersViewportQuadVS:()=>Jde,_shadersVoxelFS:()=>yBe,_shadersVoxelUtils:()=>vBe,_shadersVoxelVS:()=>CBe,_shadersWater:()=>wPe,_shadersWaterMaskMaterial:()=>bPe,_shadersXYZToRGB:()=>rDe,_shadersacesTonemapping:()=>bIe,_shadersalphaWeight:()=>wIe,_shadersantialias:()=>TIe,_shadersapplyHSBShift:()=>EIe,_shadersapproximateSphericalCoordinates:()=>AIe,_shadersapproximateTanh:()=>SIe,_shadersbackFacing:()=>PIe,_shadersbranchFreeTernary:()=>IIe,_shaderscascadeColor:()=>MIe,_shaderscascadeDistance:()=>DIe,_shaderscascadeMatrix:()=>RIe,_shaderscascadeWeights:()=>LIe,_shadersclipPolygons:()=>OIe,_shaderscolumbusViewMorph:()=>NIe,_shaderscomputeAtmosphereColor:()=>FIe,_shaderscomputeGroundAtmosphereScattering:()=>BIe,_shaderscomputePosition:()=>kIe,_shaderscomputeScattering:()=>VIe,_shadersconvertUvToBox:()=>PBe,_shadersconvertUvToCylinder:()=>IBe,_shadersconvertUvToEllipsoid:()=>MBe,_shaderscosineAndSine:()=>zIe,_shadersdecompressTextureCoordinates:()=>UIe,_shadersdegreesPerRadian:()=>MPe,_shadersdepthClamp:()=>HIe,_shadersdepthRange:()=>DPe,_shadersdepthRangeStruct:()=>pIe,_shaderseastNorthUpToEyeCoordinates:()=>GIe,_shadersellipsoidContainsPoint:()=>WIe,_shadersellipsoidTextureCoordinates:()=>jIe,_shadersepsilon1:()=>RPe,_shadersepsilon2:()=>LPe,_shadersepsilon3:()=>OPe,_shadersepsilon4:()=>NPe,_shadersepsilon5:()=>FPe,_shadersepsilon6:()=>BPe,_shadersepsilon7:()=>kPe,_shadersequalsEpsilon:()=>qIe,_shaderseyeOffset:()=>YIe,_shaderseyeToWindowCoordinates:()=>XIe,_shadersfastApproximateAtan:()=>KIe,_shadersfog:()=>$Ie,_shadersgammaCorrect:()=>JIe,_shadersgeodeticSurfaceNormal:()=>QIe,_shadersgetDefaultMaterial:()=>ZIe,_shadersgetDynamicAtmosphereLightDirection:()=>eMe,_shadersgetLambertDiffuse:()=>tMe,_shadersgetSpecular:()=>iMe,_shadersgetWaterNoise:()=>rMe,_shadershue:()=>aMe,_shadersinfinity:()=>VPe,_shadersinverseGamma:()=>sMe,_shadersisEmpty:()=>lMe,_shadersisFull:()=>uMe,_shaderslatitudeToWebMercatorFraction:()=>cMe,_shaderslineDistance:()=>dMe,_shaderslinearToSrgb:()=>hMe,_shadersluminance:()=>fMe,_shadersmaterial:()=>mIe,_shadersmaterialInput:()=>xIe,_shadersmaximumComponent:()=>pMe,_shadersmetersPerPixel:()=>mMe,_shadersmodelMaterial:()=>gIe,_shadersmodelToWindowCoordinates:()=>xMe,_shadersmodelVertexOutput:()=>_Ie,_shadersmultiplyWithColorBalance:()=>gMe,_shadersnearFarScalar:()=>_Me,_shadersoctDecode:()=>vMe,_shadersoneOverPi:()=>zPe,_shadersoneOverTwoPi:()=>UPe,_shaderspackDepth:()=>yMe,_shaderspassCesium3DTile:()=>HPe,_shaderspassCesium3DTileClassification:()=>GPe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>WPe,_shaderspassClassification:()=>jPe,_shaderspassCompute:()=>qPe,_shaderspassEnvironment:()=>YPe,_shaderspassGlobe:()=>XPe,_shaderspassOpaque:()=>KPe,_shaderspassOverlay:()=>$Pe,_shaderspassTerrainClassification:()=>JPe,_shaderspassTranslucent:()=>QPe,_shaderspassVoxels:()=>ZPe,_shaderspbrLighting:()=>CMe,_shaderspbrNeutralTonemapping:()=>bMe,_shadersphong:()=>wMe,_shaderspi:()=>eIe,_shaderspiOverFour:()=>tIe,_shaderspiOverSix:()=>iIe,_shaderspiOverThree:()=>rIe,_shaderspiOverTwo:()=>nIe,_shadersplaneDistance:()=>TMe,_shaderspointAlongRay:()=>EMe,_shadersradiansPerDegree:()=>oIe,_shadersray:()=>vIe,_shadersrayEllipsoidIntersectionInterval:()=>AMe,_shadersraySegment:()=>yIe,_shadersraySphereIntersectionInterval:()=>SMe,_shadersreadDepth:()=>PMe,_shadersreadNonPerspective:()=>IMe,_shadersreverseLogDepth:()=>MMe,_shadersround:()=>OMe,_shaderssaturation:()=>NMe,_shaderssceneMode2D:()=>aIe,_shaderssceneMode3D:()=>sIe,_shaderssceneModeColumbusView:()=>lIe,_shaderssceneModeMorphing:()=>uIe,_shadersshadowDepthCompare:()=>FMe,_shadersshadowParameters:()=>CIe,_shadersshadowVisibility:()=>BMe,_shaderssignNotZero:()=>kMe,_shaderssolarRadius:()=>cIe,_shaderssphericalHarmonics:()=>VMe,_shaderssrgbToLinear:()=>zMe,_shaderstangentToEyeSpaceMatrix:()=>UMe,_shaderstextureCube:()=>HMe,_shadersthreePiOver2:()=>hIe,_shaderstransformPlane:()=>GMe,_shaderstranslateRelativeToEye:()=>WMe,_shaderstranslucentPhong:()=>jMe,_shaderstranspose:()=>qMe,_shaderstwoPi:()=>dIe,_shadersunpackClippingExtents:()=>YMe,_shadersunpackDepth:()=>XMe,_shadersunpackFloat:()=>KMe,_shadersunpackUint:()=>$Me,_shadersvalueTransform:()=>JMe,_shadersvertexLogDepth:()=>QMe,_shaderswebMercatorMaxLatitude:()=>fIe,_shaderswindowToEyeCoordinates:()=>ZMe,_shaderswriteDepthClamp:()=>eDe,_shaderswriteLogDepth:()=>tDe,_shaderswriteNonPerspective:()=>iDe,addBuffer:()=>n3e,addDefaults:()=>$Le,addExtensionsRequired:()=>t3e,addExtensionsUsed:()=>gU,addPipelineExtras:()=>eZ,addToArray:()=>pw,appendForwardSlash:()=>CSe,arrayRemoveDuplicates:()=>M_,barycentricCoordinates:()=>Sce,binarySearch:()=>Dg,buildModuleUrl:()=>va,buildVoxelDrawCommands:()=>NBe,clipper2lib:()=>nF,clone:()=>so,combine:()=>Fa,computeFlyToLocationForRectangle:()=>Ode,createBillboardPointCallback:()=>Tde,createBlurStage:()=>Bue,createCommand:()=>bu,createDefaultImageryProviderViewModels:()=>aVe,createDefaultTerrainProviderViewModels:()=>sVe,createEdgeStage:()=>k7,createElevationBandMaterial:()=>E2t,createFragmentFromTemplate:()=>Tke,createGooglePhotorealistic3DTileset:()=>A2t,createGuid:()=>Hu,createMaterialPropertyDescriptor:()=>Av,createOsmBuildingsAsync:()=>S2t,createPropertyDescriptor:()=>Fi,createRawPropertyDescriptor:()=>Ib,createTangentSpaceDebugPrimitive:()=>P2t,createTaskProcessorWorker:()=>DCt,createUniform:()=>SPe,createUniformArray:()=>IPe,createWorldBathymetryAsync:()=>K4e,createWorldImageryAsync:()=>LG,createWorldTerrainAsync:()=>zfe,decodeGoogleEarthEnterpriseData:()=>J4e,decodeVectorPolylinePositions:()=>qNe,defaultValue:()=>Fyt,defer:()=>Z0,defined:()=>N,demodernizeShader:()=>nDe,deprecationWarning:()=>xP,destroyObject:()=>Ir,exportKml:()=>hyt,fflate_module:()=>Fke,findAccessorMinMax:()=>tZ,findContentMetadata:()=>Sde,findGroupMetadata:()=>Pde,findTileMetadata:()=>ZNe,forEachTextureInMaterial:()=>$he,formatError:()=>a9,fragment:()=>TCt,freezeRenderState:()=>aat,getAbsoluteUri:()=>zG,getAccessorByteStride:()=>H5,getBaseUri:()=>wSe,getBinaryAccessor:()=>AL,getClipAndStyleCode:()=>a4e,getClippingFunction:()=>SZ,getComponentReader:()=>jQ,getElement:()=>Pd,getExtensionFromUri:()=>I5,getFilenameFromUri:()=>bQ,getImageFromTypedArray:()=>TDe,getImagePixels:()=>XV,getJsonFromTypedArray:()=>Yy,getMagic:()=>BW,getMetadataClassProperty:()=>WBe,getMetadataProperty:()=>qBe,getStringFromTypedArray:()=>W5,getTimestamp:()=>Oh,hasExtension:()=>kd,heightReferenceOnEntityPropertyChanged:()=>kQ,isBitSet:()=>Ew,isBlobUri:()=>gce,isCrossOriginUrl:()=>KV,isDataUri:()=>iQ,isLeapYear:()=>JV,knockout:()=>vr,knockout_3_5_1:()=>B3,knockout_es5:()=>Zke,libgif:()=>WRe,loadAndExecuteScript:()=>_ce,loadCRN:()=>Kyt,loadCubeMap:()=>ZBe,loadDDS:()=>bce,loadImageFromTypedArray:()=>FW,loadKTX2:()=>M5,loadView:()=>Qfe,mergeSort:()=>l7,moveTechniqueRenderStates:()=>e3e,moveTechniquesToExtension:()=>i3e,numberOfComponentsForType:()=>mU,objFS:()=>Uke,objectToQuery:()=>vce,oneTimeWarning:()=>ya,packer:()=>PDe,parseBatchTable:()=>zW,parseDefines:()=>Wke,parseFeatureMetadataLegacy:()=>YLe,parseGlb:()=>QLe,parseResponseHeaders:()=>TSe,parseStructuralMetadata:()=>qLe,pickModel:()=>DNe,pointInsideTriangle:()=>t2t,preprocess3DTileContent:()=>xZ,processVoxelProperties:()=>OBe,queryToObject:()=>lM,rasterizeHTML_allinone:()=>_4e,readAccessorPacked:()=>o3e,removeExtension:()=>fJ,removeExtensionsRequired:()=>JLe,removeExtensionsUsed:()=>Khe,removePipelineExtras:()=>ZLe,removeUnusedElements:()=>r3e,remove_primitive:()=>OJ,resizeImageToNextPowerOfTwo:()=>P$,sampleTerrain:()=>AZ,sampleTerrainMostDetailed:()=>cD,scaleToGeodeticSurface:()=>wce,srgbToLinear:()=>vfe,subdivideArray:()=>FDe,subscribeAndEvaluate:()=>Nb,svgCompassGyro:()=>Mke,svgCompassOuterRing:()=>Ike,svgCompassRotationMarker:()=>Dke,svgReset:()=>Ake,turf:()=>qo,updateAccessorComponentTypes:()=>a3e,updateVersion:()=>u3e,usesExtension:()=>Km,vertex:()=>ECt,viewerCesium3DTilesInspectorMixin:()=>ibt,viewerCesiumInspectorMixin:()=>rbt,viewerCesiumNavigationMixin:()=>Z2t,viewerDragDropMixin:()=>nbt,viewerPerformanceWatchdogMixin:()=>obt,viewerVoxelInspectorMixin:()=>abt,webGLConstantToGlslType:()=>d2t,wrapFunction:()=>nke,writeTextToCanvas:()=>Kz});var NAe={},Fkt=Object.create,grt=Object.defineProperty,Bkt=Object.getOwnPropertyDescriptor,kkt=Object.getOwnPropertyNames,Vkt=Object.getPrototypeOf,zkt=Object.prototype.hasOwnProperty,bV=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(f,m)=>(typeof require<"u"?require:f)[m]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')}),Ht=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),Ukt=(o,f,m,x)=>{if(f&&typeof f=="object"||typeof f=="function")for(let v of kkt(f))!zkt.call(o,v)&&v!==m&&grt(o,v,{get:()=>f[v],enumerable:!(x=Bkt(f,v))||x.enumerable});return o},E0=(o,f,m)=>(m=o!=null?Fkt(Vkt(o)):{},Ukt(f||!o||!o.__esModule?grt(m,"default",{value:o,enumerable:!0}):m,o)),FAe=Ht((o,f)=>{var m=function(x){x==null&&(x=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,x.constructor==Array?this.init_by_array(x,x.length):this.init_seed(x)};m.prototype.init_seed=function(x){for(this.mt[0]=x>>>0,this.mti=1;this.mti<this.N;this.mti++){var x=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(((x&4294901760)>>>16)*1812433253<<16)+(x&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}},m.prototype.init_by_array=function(x,v){var y,C,w;for(this.init_seed(19650218),y=1,C=0,w=this.N>v?this.N:v;w;w--){var T=this.mt[y-1]^this.mt[y-1]>>>30;this.mt[y]=(this.mt[y]^(((T&4294901760)>>>16)*1664525<<16)+(T&65535)*1664525)+x[C]+C,this.mt[y]>>>=0,y++,C++,y>=this.N&&(this.mt[0]=this.mt[this.N-1],y=1),C>=v&&(C=0)}for(w=this.N-1;w;w--){var T=this.mt[y-1]^this.mt[y-1]>>>30;this.mt[y]=(this.mt[y]^(((T&4294901760)>>>16)*1566083941<<16)+(T&65535)*1566083941)-y,this.mt[y]>>>=0,y++,y>=this.N&&(this.mt[0]=this.mt[this.N-1],y=1)}this.mt[0]=2147483648},m.prototype.random_int=function(){var x,v=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var y;for(this.mti==this.N+1&&this.init_seed(5489),y=0;y<this.N-this.M;y++)x=this.mt[y]&this.UPPER_MASK|this.mt[y+1]&this.LOWER_MASK,this.mt[y]=this.mt[y+this.M]^x>>>1^v[x&1];for(;y<this.N-1;y++)x=this.mt[y]&this.UPPER_MASK|this.mt[y+1]&this.LOWER_MASK,this.mt[y]=this.mt[y+(this.M-this.N)]^x>>>1^v[x&1];x=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^x>>>1^v[x&1],this.mti=0}return x=this.mt[this.mti++],x^=x>>>11,x^=x<<7&2636928640,x^=x<<15&4022730752,x^=x>>>18,x>>>0},m.prototype.random_int31=function(){return this.random_int()>>>1},m.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},m.prototype.random=function(){return this.random_int()*(1/4294967296)},m.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},m.prototype.random_long=function(){var x=this.random_int()>>>5,v=this.random_int()>>>6;return(x*67108864+v)*(1/9007199254740992)},f.exports=m}),Hkt=Ht((o,f)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(m){var x=typeof o=="object"&&o&&!o.nodeType&&o,v=typeof f=="object"&&f&&!f.nodeType&&f,y=typeof global=="object"&&global;(y.global===y||y.window===y||y.self===y)&&(m=y);var C,w=2147483647,T=36,E=1,A=26,S=38,M=700,I=72,P=128,D="-",R=/^xn--/,L=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,F={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=T-E,H=Math.floor,G=String.fromCharCode,W;function Y(ae){throw new RangeError(F[ae])}function K(ae,he){for(var me=ae.length,ue=[];me--;)ue[me]=he(ae[me]);return ue}function X(ae,he){var me=ae.split("@"),ue="";me.length>1&&(ue=me[0]+"@",ae=me[1]),ae=ae.replace(O,".");var ce=ae.split("."),de=K(ce,he).join(".");return ue+de}function q(ae){for(var he=[],me=0,ue=ae.length,ce,de;me<ue;)ce=ae.charCodeAt(me++),ce>=55296&&ce<=56319&&me<ue?(de=ae.charCodeAt(me++),(de&64512)==56320?he.push(((ce&1023)<<10)+(de&1023)+65536):(he.push(ce),me--)):he.push(ce);return he}function J(ae){return K(ae,function(he){var me="";return he>65535&&(he-=65536,me+=G(he>>>10&1023|55296),he=56320|he&1023),me+=G(he),me}).join("")}function Z(ae){return ae-48<10?ae-22:ae-65<26?ae-65:ae-97<26?ae-97:T}function z(ae,he){return ae+22+75*(ae<26)-((he!=0)<<5)}function te(ae,he,me){var ue=0;for(ae=me?H(ae/M):ae>>1,ae+=H(ae/he);ae>B*A>>1;ue+=T)ae=H(ae/B);return H(ue+(B+1)*ae/(ae+S))}function ie(ae){var he=[],me=ae.length,ue,ce=0,de=P,fe=I,we,Te,Ae,Fe,Ue,it,lt,ft,vt;for(we=ae.lastIndexOf(D),we<0&&(we=0),Te=0;Te<we;++Te)ae.charCodeAt(Te)>=128&&Y("not-basic"),he.push(ae.charCodeAt(Te));for(Ae=we>0?we+1:0;Ae<me;){for(Fe=ce,Ue=1,it=T;Ae>=me&&Y("invalid-input"),lt=Z(ae.charCodeAt(Ae++)),(lt>=T||lt>H((w-ce)/Ue))&&Y("overflow"),ce+=lt*Ue,ft=it<=fe?E:it>=fe+A?A:it-fe,!(lt<ft);it+=T)vt=T-ft,Ue>H(w/vt)&&Y("overflow"),Ue*=vt;ue=he.length+1,fe=te(ce-Fe,ue,Fe==0),H(ce/ue)>w-de&&Y("overflow"),de+=H(ce/ue),ce%=ue,he.splice(ce++,0,de)}return J(he)}function re(ae){var he,me,ue,ce,de,fe,we,Te,Ae,Fe,Ue,it=[],lt,ft,vt,Pt;for(ae=q(ae),lt=ae.length,he=P,me=0,de=I,fe=0;fe<lt;++fe)Ue=ae[fe],Ue<128&&it.push(G(Ue));for(ue=ce=it.length,ce&&it.push(D);ue<lt;){for(we=w,fe=0;fe<lt;++fe)Ue=ae[fe],Ue>=he&&Ue<we&&(we=Ue);for(ft=ue+1,we-he>H((w-me)/ft)&&Y("overflow"),me+=(we-he)*ft,he=we,fe=0;fe<lt;++fe)if(Ue=ae[fe],Ue<he&&++me>w&&Y("overflow"),Ue==he){for(Te=me,Ae=T;Fe=Ae<=de?E:Ae>=de+A?A:Ae-de,!(Te<Fe);Ae+=T)Pt=Te-Fe,vt=T-Fe,it.push(G(z(Fe+Pt%vt,0))),Te=H(Pt/vt);it.push(G(z(Te,0))),de=te(me,ft,ue==ce),me=0,++ue}++me,++he}return it.join("")}function ee(ae){return X(ae,function(he){return R.test(he)?ie(he.slice(4).toLowerCase()):he})}function oe(ae){return X(ae,function(he){return L.test(he)?"xn--"+re(he):he})}if(C={version:"1.3.2",ucs2:{decode:q,encode:J},decode:ie,encode:re,toASCII:oe,toUnicode:ee},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(x&&v)if(f.exports==x)v.exports=C;else for(W in C)C.hasOwnProperty(W)&&(x[W]=C[W]);else m.punycode=C})(o)}),Gkt=Ht((o,f)=>{/*!
    `;setTimeout(console.log.bind(console,o,"color:#018aff;font-size:30px;font-wight:bold;font-family:\u5FAE\u8F6F\u96C5\u9ED1","color:#018aff;font-size:13px;font-family:\u5FAE\u8F6F\u96C5\u9ED1"),0)};var hje=Okt;var GVe={};fne(GVe,{AlphaMode:()=>m9,AlphaPipelineStage:()=>vOe,AnchorPointDirect:()=>y3e,AnchorPointIndirect:()=>C3e,Animation:()=>iVe,AnimationViewModel:()=>rVe,Appearance:()=>of,ApproximateTerrainHeights:()=>Sd,ArcGISTiledElevationTerrainProvider:()=>Bfe,ArcGisBaseMapType:()=>kF,ArcGisMapServerImageryProvider:()=>bw,ArcGisMapService:()=>IS,ArcType:()=>xs,ArticulationStageType:()=>rw,AssociativeArray:()=>oa,Atmosphere:()=>Hhe,AtmospherePipelineStage:()=>Q3e,AttributeCompression:()=>nc,AttributeType:()=>rl,AutoExposure:()=>$5e,AutomaticUniforms:()=>sG,Axis:()=>v0,AxisAlignedBoundingBox:()=>gQ,B3dmLoader:()=>L3e,B3dmParser:()=>R3e,Base64Encoder:()=>Wse,BaseLayerPicker:()=>oVe,BaseLayerPickerViewModel:()=>nVe,BatchTable:()=>uW,BatchTableHierarchy:()=>ade,BatchTexture:()=>$T,BatchTexturePipelineStage:()=>yOe,Billboard:()=>nf,BillboardCollection:()=>ZS,BillboardGraphics:()=>u3,BillboardLoadState:()=>Dx,BillboardTexture:()=>tW,BillboardVisualizer:()=>iLe,BingMapsGeocoderService:()=>Cyt,BingMapsImageryProvider:()=>TU,BingMapsStyle:()=>Fde,BlendEquation:()=>Dy,BlendFunction:()=>Ed,BlendOption:()=>_0,BlendTexture:()=>Q9,BlendingState:()=>Ou,BoundingRectangle:()=>Br,BoundingSphere:()=>Li,BoundingSphereState:()=>ia,BoundingVolumeSemantics:()=>wde,BoxEmitter:()=>Yfe,BoxGeometry:()=>Sw,BoxGeometryUpdater:()=>rLe,BoxGraphics:()=>qce,BoxOutlineGeometry:()=>jE,BrdfLutGenerator:()=>i5e,Buffer:()=>Do,BufferLoader:()=>QQ,BufferUsage:()=>xn,CPUStylingPipelineStage:()=>TOe,CallbackPositionProperty:()=>fFe,CallbackProperty:()=>Yr,Camera:()=>Ks,CameraEventAggregator:()=>sBe,CameraEventType:()=>vh,CameraFlightPath:()=>BRe,Cartesian2:()=>at,Cartesian3:()=>V,Cartesian4:()=>Xt,Cartographic:()=>kt,CartographicGeocoderService:()=>byt,CatmullRomSpline:()=>wyt,Cesium3DContentGroup:()=>_de,Cesium3DTile:()=>Yb,Cesium3DTileBatchTable:()=>pZ,Cesium3DTileColorBlendMode:()=>xM,Cesium3DTileContent:()=>f2t,Cesium3DTileContentFactory:()=>Ade,Cesium3DTileContentState:()=>Zd,Cesium3DTileContentType:()=>Ly,Cesium3DTileFeature:()=>$s,Cesium3DTileFeatureTable:()=>WW,Cesium3DTileOptimizationHint:()=>gF,Cesium3DTileOptimizations:()=>Mde,Cesium3DTilePass:()=>Lh,Cesium3DTilePassState:()=>Gx,Cesium3DTilePointFeature:()=>EV,Cesium3DTileRefine:()=>Vx,Cesium3DTileStyle:()=>zE,Cesium3DTileStyleEngine:()=>sFe,Cesium3DTilesInspector:()=>uVe,Cesium3DTilesInspectorViewModel:()=>lVe,Cesium3DTilesVoxelProvider:()=>p2t,Cesium3DTileset:()=>t0,Cesium3DTilesetBaseTraversal:()=>uFe,Cesium3DTilesetCache:()=>oFe,Cesium3DTilesetGraphics:()=>Jce,Cesium3DTilesetHeatmap:()=>aFe,Cesium3DTilesetMetadata:()=>Ide,Cesium3DTilesetMostDetailedTraversal:()=>lFe,Cesium3DTilesetSkipTraversal:()=>cFe,Cesium3DTilesetStatistics:()=>BF,Cesium3DTilesetTraversal:()=>hC,Cesium3DTilesetVisualizer:()=>dFe,CesiumInspector:()=>hVe,CesiumInspectorViewModel:()=>cVe,CesiumNavigation:()=>Oke,CesiumRenderPass:()=>Gke,CesiumTerrainProvider:()=>T7,CesiumWidget:()=>_7,Check:()=>Za,CheckerboardMaterialProperty:()=>wue,CircleEmitter:()=>lke,CircleGeometry:()=>Myt,CircleOutlineGeometry:()=>Dyt,CircleWaveMaterialProperty:()=>eW,ClassificationModelDrawCommand:()=>yNe,ClassificationPipelineStage:()=>COe,ClassificationPrimitive:()=>cW,ClassificationType:()=>Uc,ClearCommand:()=>gc,ClippingPlane:()=>Op,ClippingPlaneCollection:()=>Og,ClippingPolygon:()=>Jb,ClippingPolygonCollection:()=>Mv,Clock:()=>_W,ClockRange:()=>Pg,ClockStep:()=>Ef,ClockViewModel:()=>tVe,CloudCollection:()=>C2t,CloudType:()=>Oue,CollectionSource:()=>zst,Color:()=>ze,ColorBlendMode:()=>IM,ColorGeometryInstanceAttribute:()=>Oo,ColorMaterialProperty:()=>as,Command:()=>NCt,CommandLoader:()=>Nke,ComponentDatatype:()=>ti,Composite3DTileContent:()=>LNe,CompositeEntityCollection:()=>Qvt,CompositeMaterialProperty:()=>Eue,CompositePositionProperty:()=>dw,CompositeProperty:()=>oE,CompressedTextureBuffer:()=>BE,ComputeCommand:()=>p3,ComputeEngine:()=>YFe,ComputeRegionBox:()=>j2t,ConditionsExpression:()=>SDe,ConeEmitter:()=>P7,ConicArcSensor:()=>Wue,ConicArcSensorCollection:()=>PCt,ConicArcSensorGeometry:()=>que,ConicArcSensorGraphics:()=>Gue,ConicArcSensorOutlineGeometry:()=>Yue,ConstantPositionProperty:()=>hM,ConstantProperty:()=>Ch,ConstantSpline:()=>V3e,ConstructionWorker:()=>Hst,ContentMetadata:()=>KNe,Context:()=>e5e,ContextLimits:()=>So,CoplanarPolygonGeometry:()=>dU,CoplanarPolygonGeometryLibrary:()=>wG,CoplanarPolygonOutlineGeometry:()=>oL,CornerType:()=>Fd,CorrelationGroup:()=>b3e,CorridorGeometry:()=>VQ,CorridorGeometryLibrary:()=>Dh,CorridorGeometryUpdater:()=>aLe,CorridorGraphics:()=>Yce,CorridorOutlineGeometry:()=>oLe,Credit:()=>rs,CreditDisplay:()=>r5e,CubeMap:()=>S_,CubeMapFace:()=>rPe,CubicRealPolynomial:()=>oQ,CullFace:()=>Yh,CullingVolume:()=>Zm,CumulusCloud:()=>PP,CustomDataSource:()=>ehe,CustomHeightmapTerrainProvider:()=>Ryt,CustomMercatorProjection:()=>rW,CustomShader:()=>kw,CustomShaderManagerEx:()=>Uce,CustomShaderMode:()=>fQ,CustomShaderPipelineStage:()=>DOe,CustomShaderTranslucencyMode:()=>KF,CustomTilingScheme:()=>wlt,CylinderGeometry:()=>zQ,CylinderGeometryLibrary:()=>Fhe,CylinderGeometryUpdater:()=>sLe,CylinderGraphics:()=>Xce,CylinderOutlineGeometry:()=>UQ,CzmlDataSource:()=>eee,DataSource:()=>Tv,DataSourceClock:()=>sz,DataSourceCollection:()=>eLe,DataSourceDisplay:()=>TZ,DebugAppearance:()=>S2t,DebugCameraPrimitive:()=>Ip,DebugInspector:()=>gBe,DebugModelMatrixPrimitive:()=>dke,DefaultProxy:()=>Oyt,DepthFunction:()=>Ev,DepthPlane:()=>a5e,DequantizationPipelineStage:()=>ROe,DerivedCommand:()=>bv,DeveloperError:()=>At,DeviceOrientationCameraController:()=>s5e,DirectionalLight:()=>I7,DiscardEmptyTileImagePolicy:()=>Bde,DiscardMissingTileImagePolicy:()=>AFe,DistanceDisplayCondition:()=>Go,DistanceDisplayConditionGeometryInstanceAttribute:()=>Nh,DistanceLegendViewModel:()=>Eke,DoubleEndedPriorityQueue:()=>pfe,DoublyLinkedList:()=>vZ,DracoLoader:()=>ZQ,DrawCommand:()=>Vn,DynamicAtmosphereLightingType:()=>WQ,DynamicEnvironmentMapManager:()=>p9,DynamicGeometryBatch:()=>Lhe,DynamicGeometryUpdater:()=>ld,ECharts:()=>mQ,EarthOrientationParameters:()=>OSe,EarthOrientationParametersSample:()=>nQ,EasingFunction:()=>jy,EllipseGeometry:()=>EE,EllipseGeometryLibrary:()=>Lw,EllipseGeometryUpdater:()=>lLe,EllipseGraphics:()=>Kce,EllipseOutlineGeometry:()=>SM,Ellipsoid:()=>Ei,EllipsoidGeodesic:()=>Vg,EllipsoidGeometry:()=>zx,EllipsoidGeometryUpdater:()=>dLe,EllipsoidGraphics:()=>fW,EllipsoidOutlineGeometry:()=>Wb,EllipsoidPrimitive:()=>jFe,EllipsoidRhumbLine:()=>cE,EllipsoidSurfaceAppearance:()=>aU,EllipsoidTangentPlane:()=>mC,EllipsoidTerrainProvider:()=>DE,EllipsoidalOccluder:()=>qz,Empty3DTileContent:()=>_J,EncodedCartesian3:()=>Ic,Entity:()=>tf,EntityCluster:()=>R5,EntityCollection:()=>GE,EntityView:()=>vFe,Event:()=>Or,EventHelper:()=>xC,ExpandBySmartEarth:()=>Tb,ExpandByTerra:()=>Tlt,Expression:()=>$F,ExpressionNodeType:()=>yo,ExternalParameter:()=>wv,ExtrapolationType:()=>nM,FBXLoader:()=>Vke,FBXPrimitive:()=>e0e,FBXTreeParser:()=>kke,FeatureDataProvider:()=>ghe,FeatureDetection:()=>ma,FeatureIdPipelineStage:()=>dZ,FeatureJsonData:()=>CW,FisheyeProjectionMap:()=>NQ,FisheyeProjectionMapShader:()=>qK,FlattenVS:()=>wCt,FlowEcharts:()=>Jfe,Fog:()=>u5e,ForEach:()=>Qr,FrameRateMonitor:()=>fke,FrameState:()=>c5e,Framebuffer:()=>Mp,FramebufferManager:()=>ih,Frozen:()=>pi,FrustumCommands:()=>ife,FrustumGeometry:()=>bW,FrustumOutlineGeometry:()=>OQ,Fullscreen:()=>Lx,FullscreenButton:()=>BVe,FullscreenButtonViewModel:()=>FVe,GWBaiduImageryProvider:()=>TW,GeoJsonDataSource:()=>iz,GeoJsonLoader:()=>F3e,GeocodeType:()=>iee,Geocoder:()=>mVe,GeocoderService:()=>Hfe,GeocoderViewModel:()=>pVe,GeographicProjection:()=>e0,GeographicTilingScheme:()=>Xh,Geometry:()=>Ma,Geometry3DTileContent:()=>ONe,GeometryAttribute:()=>Zr,GeometryAttributes:()=>ph,GeometryFactory:()=>kyt,GeometryInstance:()=>eo,GeometryInstanceAttribute:()=>hw,GeometryOffsetAttribute:()=>Ql,GeometryPipeline:()=>Pc,GeometryPipelineStage:()=>NOe,GeometryType:()=>sF,GeometryUpdater:()=>zd,GeometryUpdaterSet:()=>GQ,GeometryVisualizer:()=>RLe,GetFeatureInfoFormat:()=>a$,GifImageProperty:()=>pdt,Globe:()=>zFe,GlobeDepth:()=>x5e,GlobeSurfaceShaderSet:()=>TFe,GlobeSurfaceTile:()=>jL,GlobeSurfaceTileProvider:()=>BFe,GlobeTranslucency:()=>RZ,GlobeTranslucencyFramebuffer:()=>g5e,GlobeTranslucencyState:()=>d5e,GltfBufferViewLoader:()=>jhe,GltfDracoLoader:()=>qhe,GltfGpmLoader:()=>T3e,GltfGpmLocal:()=>ode,GltfImageLoader:()=>Yhe,GltfIndexBufferLoader:()=>Xhe,GltfInstanceLoader:()=>sde,GltfJsonLoader:()=>Jhe,GltfLoader:()=>_U,GltfLoaderUtil:()=>HL,GltfMeshPrimitiveGpmLoader:()=>P3e,GltfStructuralMetadataLoader:()=>_3e,GltfTextureLoader:()=>Qhe,GltfVertexBufferLoader:()=>Zhe,GoogleEarthEnterpriseImageryProvider:()=>P2t,GoogleEarthEnterpriseMapsProvider:()=>IFe,GoogleEarthEnterpriseMetadata:()=>A7,GoogleEarthEnterpriseTerrainData:()=>Lue,GoogleEarthEnterpriseTerrainProvider:()=>Wyt,GoogleEarthEnterpriseTileInformation:()=>q4e,GoogleGeocoderService:()=>qyt,GoogleMaps:()=>f$,GpxDataSource:()=>F4e,Graticules:()=>She,GregorianDate:()=>Z9,GridImageryProvider:()=>I2t,GridMaterialProperty:()=>Aue,GroundGeometryUpdater:()=>Ru,GroundPolylineGeometry:()=>sW,GroundPolylinePrimitive:()=>F5,GroundPrimitive:()=>HE,GroupMetadata:()=>Kle,GwBufferAnalysis:()=>Phe,HeadingPitchRange:()=>zw,HeadingPitchRoll:()=>ws,Heap:()=>ASe,HeightMap:()=>_Ct,HeightReference:()=>qn,HeightmapEncoding:()=>f5,HeightmapTerrainData:()=>CP,HeightmapTessellator:()=>Nde,HermitePolynomialApproximation:()=>b4e,HermiteSpline:()=>mJ,HilbertOrder:()=>Wle,HomeButton:()=>gVe,HomeButtonViewModel:()=>xVe,HorizontalOrigin:()=>Mc,HugeAdapter:()=>fZ,I3SBuildingSceneLayerExplorer:()=>$Ct,I3SBuildingSceneLayerExplorerViewModel:()=>_Ve,I3SDataProvider:()=>gD,I3SDecoder:()=>u4e,I3SFeature:()=>h4e,I3SField:()=>d4e,I3SGeometry:()=>gue,I3SLayer:()=>Cfe,I3SNode:()=>_ue,I3SStatistics:()=>p4e,I3SSublayer:()=>m4e,I3SSymbology:()=>f4e,I3dmLoader:()=>k3e,I3dmParser:()=>B3e,ITwinData:()=>M2t,ITwinPlatform:()=>w_,Iau2000Orientation:()=>HFe,Iau2006XysData:()=>FSe,Iau2006XysSample:()=>Ace,IauOrientationAxes:()=>GFe,IauOrientationParameters:()=>UFe,ImageBasedLighting:()=>lZ,ImageBasedLightingPipelineStage:()=>eOe,ImageCombine:()=>kce,ImageMaterialProperty:()=>w0,Imagery:()=>Hde,ImageryLayer:()=>Pp,ImageryLayerCollection:()=>kFe,ImageryLayerFeatureInfo:()=>$5,ImageryProvider:()=>JM,ImageryState:()=>$l,Implicit3DTileContent:()=>Xle,ImplicitAvailabilityBitstream:()=>qle,ImplicitMetadataView:()=>yde,ImplicitSubdivisionScheme:()=>P_,ImplicitSubtree:()=>Cde,ImplicitSubtreeCache:()=>ake,ImplicitSubtreeMetadata:()=>kNe,ImplicitTileCoordinates:()=>Lde,ImplicitTileset:()=>Rde,IndexDatatype:()=>Jn,InfoBox:()=>CVe,InfoBoxViewModel:()=>yVe,InspectorShared:()=>sM,InstanceAttributeSemantic:()=>Fx,InstancingPipelineStage:()=>pOe,InterpolationAlgorithm:()=>Yyt,InterpolationType:()=>TF,Intersect:()=>ua,IntersectionTests:()=>Wc,Intersections2D:()=>w7,Interval:()=>NS,InvertClassification:()=>efe,Ion:()=>NF,IonGeocodeProviderType:()=>jV,IonGeocoderService:()=>jfe,IonImageryProvider:()=>VF,IonResource:()=>FF,IonWorldImageryStyle:()=>RG,Iso8601:()=>kn,JobScheduler:()=>f5e,JobType:()=>My,JsonMetadataTable:()=>YQ,JulianDate:()=>si,KTX2Transcoder:()=>ISe,KeyboardEventModifier:()=>rC,KeyframeNode:()=>Jd,KmlCamera:()=>aRe,KmlDataSource:()=>DQ,KmlLookAt:()=>sRe,KmlTour:()=>lRe,KmlTourFlyTo:()=>uRe,KmlTourWait:()=>hRe,Label:()=>w$,LabelCollection:()=>o3,LabelGraphics:()=>pW,LabelStyle:()=>$f,LabelVisualizer:()=>LLe,LagrangePolynomialApproximation:()=>T4e,LeapSecond:()=>jh,Light:()=>R2t,LightingModel:()=>nC,LightingPipelineStage:()=>BOe,LinearApproximation:()=>dhe,LinearSampler:()=>QM,LinearSpline:()=>hZ,MTLLoader:()=>zke,ManagedArray:()=>MM,MapMode2D:()=>EM,MapProjection:()=>$yt,MapboxImageryProvider:()=>EU,MapboxStyleImageryProvider:()=>O2t,Material:()=>zo,MaterialAppearance:()=>y0,MaterialPipelineStage:()=>VOe,MaterialProperty:()=>E_,Math:()=>Ce,Matrix2:()=>b0,Matrix3:()=>Yt,Matrix4:()=>Ee,Megatexture:()=>mfe,MeshParser:()=>Bke,MeshPhongMaterial:()=>x$,MeshPrimitiveGpmLocal:()=>S3e,MetadataClass:()=>kW,MetadataClassProperty:()=>NW,MetadataComponentType:()=>da,MetadataEntity:()=>Wu,MetadataEnum:()=>m3e,MetadataEnumValue:()=>p3e,MetadataPicking:()=>p5e,MetadataPickingPipelineStage:()=>YI,MetadataPipelineStage:()=>ML,MetadataSchema:()=>q5,MetadataSchemaLoader:()=>ede,MetadataSemantic:()=>bde,MetadataTable:()=>xU,MetadataTableProperty:()=>jLe,MetadataType:()=>Mo,MipmapHint:()=>Gz,Model:()=>Dv,Model3DTileContent:()=>$I,ModelAlphaOptions:()=>oNe,ModelAnimation:()=>j3e,ModelAnimationChannel:()=>G3e,ModelAnimationCollection:()=>q3e,ModelAnimationLoop:()=>BS,ModelAnimationState:()=>oF,ModelArticulation:()=>rOe,ModelArticulationStage:()=>iOe,ModelClippingPlanesPipelineStage:()=>aOe,ModelClippingPolygonsPipelineStage:()=>uOe,ModelColorPipelineStage:()=>xJ,ModelComponents:()=>Jl,ModelDrawCommand:()=>CNe,ModelDrawCommands:()=>TNe,ModelFeature:()=>Y3e,ModelFeatureTable:()=>X3e,ModelFlattenPipelineStage:()=>SNe,ModelGraphics:()=>_Q,ModelLightingOptions:()=>gNe,ModelMatrixUpdateStage:()=>xOe,ModelNode:()=>cOe,ModelRenderResources:()=>cNe,ModelRuntimeNode:()=>_Oe,ModelRuntimePrimitive:()=>iNe,ModelSceneGraph:()=>PNe,ModelSilhouettePipelineStage:()=>fNe,ModelSkin:()=>nNe,ModelSplitterPipelineStage:()=>mNe,ModelStatistics:()=>INe,ModelType:()=>Np,ModelUtility:()=>Ll,ModelVisualizer:()=>RNe,Moon:()=>qFe,MorphTargetsPipelineStage:()=>UOe,MorphWeightSpline:()=>Jyt,MortonOrder:()=>_9,MultiResourceImageryProvider:()=>EW,MultiResourceTerrainProvider:()=>Ihe,Multiple3DTileContent:()=>eFe,MultisampleFramebuffer:()=>M3e,NavigationControl:()=>F7,NavigationHelpButton:()=>wVe,NavigationHelpButtonViewModel:()=>bVe,NavigationUtils:()=>B7,NavigationViewModel:()=>p$,NearFarScalar:()=>fa,NeverTileDiscardPolicy:()=>N2t,NodeRenderResources:()=>xNe,NodeStatisticsPipelineStage:()=>gOe,NodeTransformationProperty:()=>$ce,OBJLoader:()=>Hke,OBJPrimitive:()=>t0e,OIT:()=>C5e,Occluder:()=>Ahe,OffsetGeometryInstanceAttribute:()=>xm,OlMVTImageryProvider:()=>AW,OpenCageGeocoderService:()=>Qyt,OpenStreetMapImageryProvider:()=>OS,OrderedGroundPrimitiveCollection:()=>tLe,OrientedBoundingBox:()=>Ju,OrthographicFrustum:()=>gs,OrthographicOffCenterFrustum:()=>ix,Packable:()=>Zyt,PackableForInterpolation:()=>e2t,Particle:()=>Kfe,ParticleBurst:()=>D7,ParticleEmitter:()=>k2t,ParticleSystem:()=>QE,Pass:()=>Sr,PassState:()=>kp,PathGraphics:()=>vQ,PathVisualizer:()=>pFe,PeliasGeocoderService:()=>K4e,PerInstanceColorAppearance:()=>Da,PerformanceDisplay:()=>BZ,PerformanceWatchdog:()=>AVe,PerformanceWatchdogViewModel:()=>EVe,PerspectiveFrustum:()=>jc,PerspectiveOffCenterFrustum:()=>KM,PerspectiveProjectionMap:()=>FQ,PerspectiveProjectionMapShader:()=>YK,PerspectiveProjectionMapWithDepth:()=>BQ,PerspectiveProjectionMapWithDepthShader:()=>wF,PickDepth:()=>m5e,PickDepthFramebuffer:()=>b5e,PickFramebuffer:()=>w5e,PickGlobeSlope:()=>Ovt,PickedMetadataInfo:()=>jBe,Picking:()=>M5e,PickingPipelineStage:()=>HOe,PinBuilder:()=>wQ,PixelDatatype:()=>bn,PixelFormat:()=>an,Plane:()=>Ea,PlaneGeometry:()=>fLe,PlaneGeometryUpdater:()=>xLe,PlaneGraphics:()=>UDe,PlaneOutlineGeometry:()=>pLe,PntsLoader:()=>MNe,PntsParser:()=>xde,PointCloud:()=>s4e,PointCloudEyeDomeLighting:()=>uZ,PointCloudShading:()=>GW,PointCloudStylingPipelineStage:()=>WOe,PointGraphics:()=>Qce,PointLight:()=>wfe,PointPrimitive:()=>Pv,PointPrimitiveCollection:()=>a3,PointVisualizer:()=>mFe,PolygonDepth:()=>Ez,PolygonDepthFS:()=>fde,PolygonDepthVS:()=>pde,PolygonGeometry:()=>_c,PolygonGeometryLibrary:()=>Tu,PolygonGeometryUpdater:()=>_Le,PolygonGraphics:()=>eu,PolygonHierarchy:()=>to,PolygonOutlineGeometry:()=>gLe,PolygonPipeline:()=>ad,Polyline:()=>YM,PolylineArrowMaterialProperty:()=>gm,PolylineCollection:()=>V5,PolylineColorAppearance:()=>jm,PolylineDashMaterialProperty:()=>Eu,PolylineGeometry:()=>zy,PolylineGeometryUpdater:()=>xFe,PolylineGlowMaterialProperty:()=>Sue,PolylineGraphics:()=>CM,PolylineMaterialAppearance:()=>T_,PolylineOutlineMaterialProperty:()=>QL,PolylinePipeline:()=>Nd,PolylineTrailLinkMaterialProperty:()=>Nvt,PolylineVisualizer:()=>_Fe,PolylineVolumeGeometry:()=>vLe,PolylineVolumeGeometryLibrary:()=>fz,PolylineVolumeGeometryUpdater:()=>CLe,PolylineVolumeGraphics:()=>Zce,PolylineVolumeOutlineGeometry:()=>yLe,PositionProperty:()=>dW,PositionPropertyArray:()=>ZG,PostProcessStage:()=>Ua,PostProcessStageCollection:()=>eBe,PostProcessStageComposite:()=>_m,PostProcessStageLibrary:()=>X2,PostProcessStageSampleMode:()=>J2,PostProcessStageTextureCache:()=>ufe,PpeMetadata:()=>A3e,PpeSource:()=>MCt,PpeTexture:()=>E3e,Primitive:()=>pa,PrimitiveCollection:()=>I_,PrimitiveLoadPlan:()=>nZ,PrimitiveOutlineGenerator:()=>rde,PrimitiveOutlinePipelineStage:()=>YOe,PrimitivePipeline:()=>ez,PrimitiveRenderResources:()=>_Ne,PrimitiveState:()=>dm,PrimitiveStatisticsPipelineStage:()=>XOe,PrimitiveType:()=>An,ProjectionPicker:()=>PVe,ProjectionPickerViewModel:()=>SVe,Property:()=>Ut,PropertyArray:()=>Lfe,PropertyAttribute:()=>Whe,PropertyAttributeProperty:()=>HLe,PropertyBag:()=>tP,PropertyTable:()=>G5,PropertyTexture:()=>KQ,PropertyTextureProperty:()=>zLe,ProviderViewModel:()=>hm,Proxy:()=>r2t,QuadraticRealPolynomial:()=>zS,QuadtreeOccluders:()=>Yde,QuadtreePrimitive:()=>Ww,QuadtreePrimitivezh:()=>kvt,QuadtreeTile:()=>LZ,QuadtreeTileLoadState:()=>sd,QuadtreeTileProvider:()=>WU,QuantizedMeshTerrainData:()=>Vfe,QuarticRealPolynomial:()=>QSe,Quaternion:()=>Er,QuaternionSpline:()=>U3e,Queue:()=>c3,RasterizeHtml:()=>v7,Ray:()=>qa,Rectangle:()=>Si,RectangleCollisionChecker:()=>Uhe,RectangleGeometry:()=>fU,RectangleGeometryLibrary:()=>Cv,RectangleGeometryUpdater:()=>SLe,RectangleGraphics:()=>mW,RectangleOutlineGeometry:()=>khe,RectangularSensor:()=>NJ,RectangularSensorFS:()=>kue,RectangularSensorGraphics:()=>ICt,RectangularSensorPrimitive:()=>Kke,RectangularSensorScanPlaneFS:()=>Xke,RectangularSensorVS:()=>r0e,RectangularSensorVisualizer:()=>$ke,ReferenceFrame:()=>Q0,ReferenceProperty:()=>IQ,RegionPolygonTexture:()=>Cke,RegionTexture:()=>bke,RegionWeather:()=>i0e,RenderObjectFactory:()=>Dc,RenderState:()=>wn,Renderbuffer:()=>fw,RenderbufferFormat:()=>Bb,Request:()=>Jm,RequestErrorEvent:()=>$V,RequestScheduler:()=>Aw,RequestState:()=>Gc,RequestType:()=>e2,ResetViewNavigationControl:()=>Pke,Resource:()=>Wr,ResourceCache:()=>Id,ResourceCacheKey:()=>YE,ResourceCacheStatistics:()=>g3e,ResourceLoader:()=>zg,ResourceLoaderState:()=>ea,Rotation:()=>NM,RuntimeError:()=>Xi,S2Cell:()=>IG,S3MDataSource:()=>Hvt,SDFSettings:()=>K2,SampledPositionProperty:()=>aE,SampledProperty:()=>fL,Sampler:()=>aa,ScaledPositionProperty:()=>vW,Scene:()=>BU,SceneFramebuffer:()=>rfe,SceneHeightMap:()=>Yke,SceneHeightWaterPostProcessing:()=>GT,SceneHeightWaterPrimitive:()=>fCt,SceneMode:()=>Ti,SceneMode2DPipelineStage:()=>KOe,SceneModePicker:()=>MVe,SceneModePickerViewModel:()=>IVe,SceneTransforms:()=>Va,SceneTransitioner:()=>aBe,ScreenSpaceCameraController:()=>fBe,ScreenSpaceEventHandler:()=>kr,ScreenSpaceEventType:()=>Di,SelectedFeatureIdPipelineStage:()=>gJ,SelectionIndicator:()=>RVe,SelectionIndicatorViewModel:()=>DVe,Sensor:()=>mCt,SensorVolumePortionToDisplay:()=>Iue,ShaderBuilder:()=>hde,ShaderCache:()=>KFe,ShaderDestination:()=>nr,ShaderFunction:()=>uNe,ShaderProgram:()=>Us,ShaderSource:()=>$r,ShaderStruct:()=>sNe,ShadowMap:()=>R3,ShadowMapShader:()=>UF,ShadowMode:()=>Zl,ShadowVolumeAppearance:()=>CL,ShowGeometryInstanceAttribute:()=>Ol,Simon1994PlanetaryPositions:()=>bJ,SimplePolylineGeometry:()=>n2t,SingleTileImageryProvider:()=>Gw,SkinningPipelineStage:()=>JOe,SkyAtmosphere:()=>XZ,SkyBox:()=>kU,SlopeArrow:()=>o0e,SpatialNode:()=>UBe,Spdcf:()=>w3e,SpecularEnvironmentCubeMap:()=>wz,SphereEmitter:()=>R7,SphereGeometry:()=>o2t,SphereOutlineGeometry:()=>h3,Spherical:()=>E4e,Spline:()=>S0,SplitDirection:()=>Bw,Splitter:()=>gfe,SpotLight:()=>Wvt,StaticGeometryColorBatch:()=>mL,StaticGeometryPerMaterialBatch:()=>xL,StaticGroundGeometryColorBatch:()=>Rle,StaticGroundGeometryPerMaterialBatch:()=>DLe,StaticGroundPolylinePerMaterialBatch:()=>gFe,StaticOutlineGeometryBatch:()=>Lle,StencilConstants:()=>Ia,StencilFunction:()=>Nu,StencilOperation:()=>lo,SteppedSpline:()=>z3e,Stereographic:()=>Fb,StorageType:()=>x9,StripeMaterialProperty:()=>Pue,StripeOrientation:()=>g5,StructuralMetadata:()=>nD,StyleCommandsNeeded:()=>Tz,StyleExpression:()=>V2t,Sun:()=>o4e,SunLight:()=>u7,SunPostProcess:()=>xBe,SupportedImageFormats:()=>v3e,SvgPathBindingHandler:()=>eVe,TaskProcessor:()=>ep,Terrain:()=>_ke,TerrainData:()=>bU,TerrainEncoding:()=>ME,TerrainFillMesh:()=>jde,TerrainFlatten:()=>qU,TerrainFlattenPolygonTexture:()=>wke,TerrainMesh:()=>wU,TerrainOffsetProperty:()=>Nhe,TerrainProvider:()=>Uy,TerrainQuantization:()=>iC,TerrainRegionWeather:()=>qke,TerrainState:()=>Ns,Texture:()=>Wn,Texture3D:()=>Z4e,TextureAtlas:()=>Ice,TextureCache:()=>$Fe,TextureMagnificationFilter:()=>pl,TextureManager:()=>EDe,TextureMinificationFilter:()=>na,TexturePacker:()=>Pce,TextureUniform:()=>Lce,TextureWrap:()=>io,TileAvailability:()=>GF,TileBoundingRegion:()=>IE,TileBoundingS2Cell:()=>tFe,TileBoundingSphere:()=>E3,TileBoundingVolume:()=>z2t,TileCoordinatesImageryProvider:()=>cee,TileDiscardPolicy:()=>U2t,TileEdge:()=>Os,TileImagery:()=>Gde,TileMapServiceImageryProvider:()=>bP,TileMetadata:()=>JNe,TileOrientedBoundingBox:()=>$y,TileProviderError:()=>qm,TileReplacementQueue:()=>Kde,TileSelectionResult:()=>Pa,TileState:()=>H2t,Tileset3DTileContent:()=>VNe,TilesetMetadata:()=>nFe,TilesetPipelineStage:()=>K3e,TilesetRegionWeather:()=>jke,TilingScheme:()=>a2t,TimeConstants:()=>zc,TimeDynamicImagery:()=>Ude,TimeDynamicPointCloud:()=>_fe,TimeInterval:()=>Rl,TimeIntervalCollection:()=>ky,TimeIntervalCollectionPositionProperty:()=>v9,TimeIntervalCollectionProperty:()=>e9,TimeStandard:()=>zu,Timeline:()=>NVe,TimelineHighlightRange:()=>LVe,TimelineTrack:()=>OVe,Tipsify:()=>ePe,ToggleButtonViewModel:()=>nG,Tonemapper:()=>PV,TrackingReferenceFrame:()=>dG,Transforms:()=>Mr,TranslationRotationScale:()=>Vw,TranslucentTileClassification:()=>P5e,TridiagonalSystemSolver:()=>lde,TrustedServers:()=>Cce,TweenCollection:()=>dfe,UniformState:()=>JFe,UniformType:()=>ba,UrlTemplateGeojsonProvider:()=>Yvt,UrlTemplateImageryProvider:()=>e1,UserInterfaceControl:()=>Zfe,Utils:()=>AP,VERSION:()=>P0e,VRButton:()=>VVe,VRButtonViewModel:()=>kVe,VRTheWorldTerrainProvider:()=>c2t,VaryingType:()=>Gy,Vector3DTileBatch:()=>g9,Vector3DTileClampedPolylines:()=>jNe,Vector3DTileContent:()=>XNe,Vector3DTileGeometry:()=>xV,Vector3DTilePoints:()=>zNe,Vector3DTilePolygons:()=>UNe,Vector3DTilePolylines:()=>Ede,Vector3DTilePrimitive:()=>vde,VelocityOrientationProperty:()=>A4e,VelocityVectorProperty:()=>EZ,VertexArray:()=>$u,VertexArrayFacade:()=>sQ,VertexAttributeSemantic:()=>sa,VertexFormat:()=>sn,VerticalExaggeration:()=>Vy,VerticalExaggerationPipelineStage:()=>ZOe,VerticalOrigin:()=>co,VideoSynchronizer:()=>s2t,View:()=>Yw,ViewShed:()=>ACt,ViewShedMap:()=>x7,ViewShedMapShader:()=>HF,Viewer:()=>A0e,ViewportQuad:()=>O7,Visibility:()=>wu,Visualizer:()=>gyt,VolumeCloud:()=>a0e,VoxelBoxShape:()=>GZ,VoxelCell:()=>_Be,VoxelContent:()=>ffe,VoxelCylinderShape:()=>WZ,VoxelEllipsoidShape:()=>jZ,VoxelInspector:()=>HVe,VoxelInspectorViewModel:()=>UVe,VoxelMetadataOrder:()=>Iz,VoxelPrimitive:()=>YZ,VoxelProvider:()=>G2t,VoxelRenderResources:()=>LBe,VoxelShape:()=>W2t,VoxelShapeType:()=>Hb,VoxelTraversal:()=>HBe,VulkanConstants:()=>h2t,WallGeometry:()=>PLe,WallGeometryLibrary:()=>Vhe,WallGeometryUpdater:()=>MLe,WallGraphics:()=>yQ,WallOutlineGeometry:()=>ILe,WaterFS:()=>NRe,WaterHeightMap:()=>vCt,WaterMaterialProperty:()=>Xvt,WaterPipelinePrimitive:()=>Ife,WaterPostProcessing:()=>Uue,WaterPostProcessingEx:()=>Hue,WaterPrimitive:()=>s0e,WaterPrimitiveEx:()=>hB,WaterReflectImage:()=>Jke,WaterReflectImageEx:()=>Qke,WebGLConstants:()=>Pi,WebMapServiceImageryProvider:()=>AU,WebMapTileServiceImageryProvider:()=>I3,WebMercatorProjection:()=>ef,WebMercatorTilingScheme:()=>tp,WindingOrder:()=>Iw,WireframeIndexGenerator:()=>cde,WireframePipelineStage:()=>tNe,ZoomNavigationControl:()=>Nue,_shadersAcesTonemappingStage:()=>D5e,_shadersAdditiveBlend:()=>pBe,_shadersAdjustTranslucentFS:()=>sue,_shadersAllMaterialAppearanceFS:()=>TRe,_shadersAllMaterialAppearanceVS:()=>ERe,_shadersAmbientOcclusionGenerate:()=>R5e,_shadersAmbientOcclusionModulate:()=>L5e,_shadersAspectRampMaterial:()=>oPe,_shadersAtmosphereCommon:()=>Cz,_shadersAtmosphereStageFS:()=>$3e,_shadersAtmosphereStageVS:()=>J3e,_shadersBasicMaterialAppearanceFS:()=>ARe,_shadersBasicMaterialAppearanceVS:()=>SRe,_shadersBillboardCollectionFS:()=>aDe,_shadersBillboardCollectionVS:()=>sDe,_shadersBlackAndWhite:()=>O5e,_shadersBloomComposite:()=>N5e,_shadersBrdfLutGeneratorFS:()=>t5e,_shadersBrightPass:()=>mBe,_shadersBrightness:()=>F5e,_shadersBumpMapMaterial:()=>aPe,_shadersCPUStylingStageFS:()=>wOe,_shadersCPUStylingStageVS:()=>bOe,_shadersCheckerboardMaterial:()=>sPe,_shadersCloudCollectionFS:()=>eke,_shadersCloudCollectionVS:()=>tke,_shadersCloudNoiseFS:()=>ike,_shadersCloudNoiseVS:()=>rke,_shadersCompareAndPackTranslucentDepth:()=>S5e,_shadersCompositeOITFS:()=>_5e,_shadersCompositeTranslucentClassification:()=>s$,_shadersComputeIrradianceFS:()=>NLe,_shadersComputeRadianceMapFS:()=>FLe,_shadersContrastBias:()=>B5e,_shadersConvolveSpecularMapFS:()=>BLe,_shadersConvolveSpecularMapVS:()=>kLe,_shadersCustomShaderStageFS:()=>AOe,_shadersCustomShaderStageVS:()=>EOe,_shadersCzmBuiltins:()=>DK,_shadersDepthOfField:()=>k5e,_shadersDepthPlaneFS:()=>n5e,_shadersDepthPlaneVS:()=>o5e,_shadersDepthView:()=>V5e,_shadersDepthViewPacked:()=>yCt,_shadersDotMaterial:()=>lPe,_shadersEdgeDetection:()=>z5e,_shadersElevationBandMaterial:()=>uPe,_shadersElevationContourMaterial:()=>cPe,_shadersElevationRampMaterial:()=>hPe,_shadersEllipsoidFS:()=>oue,_shadersEllipsoidSurfaceAppearanceFS:()=>MRe,_shadersEllipsoidSurfaceAppearanceVS:()=>DRe,_shadersEllipsoidVS:()=>aue,_shadersFXAA:()=>G5e,_shadersFXAA3_11:()=>K5e,_shadersFadeMaterial:()=>dPe,_shadersFeatureIdStageFS:()=>SOe,_shadersFeatureIdStageVS:()=>POe,_shadersFilmicTonemapping:()=>U5e,_shadersGaussianBlur1D:()=>EJ,_shadersGeometryStageFS:()=>LOe,_shadersGeometryStageVS:()=>OOe,_shadersGlobeFS:()=>CFe,_shadersGlobeVS:()=>bFe,_shadersGridMaterial:()=>fPe,_shadersGroundAtmosphere:()=>Qle,_shadersHSBToRGB:()=>nMe,_shadersHSLToRGB:()=>oMe,_shadersImageBasedLightingStageFS:()=>Z3e,_shadersInstancingStageCommon:()=>hOe,_shadersInstancingStageVS:()=>dOe,_shadersIntersectBox:()=>EBe,_shadersIntersectClippingPlanes:()=>TBe,_shadersIntersectCylinder:()=>ABe,_shadersIntersectDepth:()=>wBe,_shadersIntersectEllipsoid:()=>SBe,_shadersIntersectLongitude:()=>cue,_shadersIntersection:()=>c$,_shadersIntersectionUtils:()=>bBe,_shadersLegacyInstancingStageVS:()=>fOe,_shadersLensFlare:()=>W5e,_shadersLightingStageFS:()=>FOe,_shadersMaterialStageFS:()=>kOe,_shadersMegatexture:()=>RBe,_shadersMetadataStageFS:()=>IOe,_shadersMetadataStageVS:()=>MOe,_shadersModelClippingPlanesStageFS:()=>oOe,_shadersModelClippingPolygonsStageFS:()=>lOe,_shadersModelClippingPolygonsStageVS:()=>sOe,_shadersModelColorStageFS:()=>nOe,_shadersModelFS:()=>wNe,_shadersModelFlattenStageFS:()=>ANe,_shadersModelFlattenStageVS:()=>ENe,_shadersModelSilhouetteStageFS:()=>hNe,_shadersModelSilhouetteStageVS:()=>dNe,_shadersModelSplitterStageFS:()=>pNe,_shadersModelVS:()=>bNe,_shadersModifiedReinhardTonemapping:()=>j5e,_shadersMorphTargetsStageVS:()=>zOe,_shadersNightVision:()=>q5e,_shadersNormalMapMaterial:()=>pPe,_shadersOctree:()=>DBe,_shadersPassThrough:()=>qL,_shadersPassThroughDepth:()=>TJ,_shadersPbrNeutralTonemapping:()=>H5e,_shadersPerInstanceColorAppearanceFS:()=>kDe,_shadersPerInstanceColorAppearanceVS:()=>VDe,_shadersPerInstanceFlatColorAppearanceFS:()=>Gce,_shadersPerInstanceFlatColorAppearanceVS:()=>zDe,_shadersPointCloudEyeDomeLighting:()=>D3e,_shadersPointCloudStylingStageVS:()=>GOe,_shadersPointPrimitiveCollectionFS:()=>j6,_shadersPointPrimitiveCollectionVS:()=>dDe,_shadersPolygonSignedDistanceFS:()=>OLe,_shadersPolylineArrowMaterial:()=>mPe,_shadersPolylineColorAppearanceVS:()=>ODe,_shadersPolylineCommon:()=>Qz,_shadersPolylineDashMaterial:()=>xPe,_shadersPolylineFS:()=>Wce,_shadersPolylineGlowMaterial:()=>gPe,_shadersPolylineMaterialAppearanceVS:()=>NDe,_shadersPolylineOutlineMaterial:()=>_Pe,_shadersPolylineShadowVolumeFS:()=>MDe,_shadersPolylineShadowVolumeMorphFS:()=>DDe,_shadersPolylineShadowVolumeMorphVS:()=>RDe,_shadersPolylineShadowVolumeVS:()=>LDe,_shadersPolylineVS:()=>RRe,_shadersPostProcessRain:()=>CCt,_shadersPostProcessSnow:()=>bCt,_shadersPrimitiveOutlineStageFS:()=>qOe,_shadersPrimitiveOutlineStageVS:()=>jOe,_shadersRGBToHSB:()=>DMe,_shadersRGBToHSL:()=>RMe,_shadersRGBToXYZ:()=>LMe,_shadersReinhardTonemapping:()=>Y5e,_shadersReprojectWebMercatorFS:()=>RFe,_shadersReprojectWebMercatorVS:()=>LFe,_shadersRimLightingMaterial:()=>vPe,_shadersSelectedFeatureIdStageCommon:()=>Ule,_shadersShadowVolumeAppearanceFS:()=>jce,_shadersShadowVolumeAppearanceVS:()=>BDe,_shadersShadowVolumeFS:()=>M$,_shadersSilhouette:()=>X5e,_shadersSkinningStageVS:()=>$Oe,_shadersSkyAtmosphereCommon:()=>pue,_shadersSkyAtmosphereFS:()=>JBe,_shadersSkyAtmosphereVS:()=>QBe,_shadersSkyBoxFS:()=>e4e,_shadersSkyBoxVS:()=>t4e,_shadersSlopeRampMaterial:()=>yPe,_shadersStripeMaterial:()=>CPe,_shadersSunFS:()=>i4e,_shadersSunTextureFS:()=>r4e,_shadersSunVS:()=>n4e,_shadersTexturedMaterialAppearanceFS:()=>PRe,_shadersTexturedMaterialAppearanceVS:()=>IRe,_shadersVector3DTileClampedPolylinesFS:()=>WNe,_shadersVector3DTileClampedPolylinesVS:()=>GNe,_shadersVector3DTilePolylinesVS:()=>HNe,_shadersVectorTileVS:()=>Gle,_shadersVerticalExaggerationStageVS:()=>QOe,_shadersViewportQuadFS:()=>nke,_shadersViewportQuadVS:()=>Jde,_shadersVoxelFS:()=>yBe,_shadersVoxelUtils:()=>vBe,_shadersVoxelVS:()=>CBe,_shadersWater:()=>wPe,_shadersWaterMaskMaterial:()=>bPe,_shadersXYZToRGB:()=>rDe,_shadersacesTonemapping:()=>bIe,_shadersalphaWeight:()=>wIe,_shadersantialias:()=>TIe,_shadersapplyHSBShift:()=>EIe,_shadersapproximateSphericalCoordinates:()=>AIe,_shadersapproximateTanh:()=>SIe,_shadersbackFacing:()=>PIe,_shadersbranchFreeTernary:()=>IIe,_shaderscascadeColor:()=>MIe,_shaderscascadeDistance:()=>DIe,_shaderscascadeMatrix:()=>RIe,_shaderscascadeWeights:()=>LIe,_shadersclipPolygons:()=>OIe,_shaderscolumbusViewMorph:()=>NIe,_shaderscomputeAtmosphereColor:()=>FIe,_shaderscomputeGroundAtmosphereScattering:()=>BIe,_shaderscomputePosition:()=>kIe,_shaderscomputeScattering:()=>VIe,_shadersconvertUvToBox:()=>PBe,_shadersconvertUvToCylinder:()=>IBe,_shadersconvertUvToEllipsoid:()=>MBe,_shaderscosineAndSine:()=>zIe,_shadersdecompressTextureCoordinates:()=>UIe,_shadersdegreesPerRadian:()=>MPe,_shadersdepthClamp:()=>HIe,_shadersdepthRange:()=>DPe,_shadersdepthRangeStruct:()=>pIe,_shaderseastNorthUpToEyeCoordinates:()=>GIe,_shadersellipsoidContainsPoint:()=>WIe,_shadersellipsoidTextureCoordinates:()=>jIe,_shadersepsilon1:()=>RPe,_shadersepsilon2:()=>LPe,_shadersepsilon3:()=>OPe,_shadersepsilon4:()=>NPe,_shadersepsilon5:()=>FPe,_shadersepsilon6:()=>BPe,_shadersepsilon7:()=>kPe,_shadersequalsEpsilon:()=>qIe,_shaderseyeOffset:()=>YIe,_shaderseyeToWindowCoordinates:()=>XIe,_shadersfastApproximateAtan:()=>KIe,_shadersfog:()=>$Ie,_shadersgammaCorrect:()=>JIe,_shadersgeodeticSurfaceNormal:()=>QIe,_shadersgetDefaultMaterial:()=>ZIe,_shadersgetDynamicAtmosphereLightDirection:()=>eMe,_shadersgetLambertDiffuse:()=>tMe,_shadersgetSpecular:()=>iMe,_shadersgetWaterNoise:()=>rMe,_shadershue:()=>aMe,_shadersinfinity:()=>VPe,_shadersinverseGamma:()=>sMe,_shadersisEmpty:()=>lMe,_shadersisFull:()=>uMe,_shaderslatitudeToWebMercatorFraction:()=>cMe,_shaderslineDistance:()=>dMe,_shaderslinearToSrgb:()=>hMe,_shadersluminance:()=>fMe,_shadersmaterial:()=>mIe,_shadersmaterialInput:()=>xIe,_shadersmaximumComponent:()=>pMe,_shadersmetersPerPixel:()=>mMe,_shadersmodelMaterial:()=>gIe,_shadersmodelToWindowCoordinates:()=>xMe,_shadersmodelVertexOutput:()=>_Ie,_shadersmultiplyWithColorBalance:()=>gMe,_shadersnearFarScalar:()=>_Me,_shadersoctDecode:()=>vMe,_shadersoneOverPi:()=>zPe,_shadersoneOverTwoPi:()=>UPe,_shaderspackDepth:()=>yMe,_shaderspassCesium3DTile:()=>HPe,_shaderspassCesium3DTileClassification:()=>GPe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>WPe,_shaderspassClassification:()=>jPe,_shaderspassCompute:()=>qPe,_shaderspassEnvironment:()=>YPe,_shaderspassGlobe:()=>XPe,_shaderspassOpaque:()=>KPe,_shaderspassOverlay:()=>$Pe,_shaderspassTerrainClassification:()=>JPe,_shaderspassTranslucent:()=>QPe,_shaderspassVoxels:()=>ZPe,_shaderspbrLighting:()=>CMe,_shaderspbrNeutralTonemapping:()=>bMe,_shadersphong:()=>wMe,_shaderspi:()=>eIe,_shaderspiOverFour:()=>tIe,_shaderspiOverSix:()=>iIe,_shaderspiOverThree:()=>rIe,_shaderspiOverTwo:()=>nIe,_shadersplaneDistance:()=>TMe,_shaderspointAlongRay:()=>EMe,_shadersradiansPerDegree:()=>oIe,_shadersray:()=>vIe,_shadersrayEllipsoidIntersectionInterval:()=>AMe,_shadersraySegment:()=>yIe,_shadersraySphereIntersectionInterval:()=>SMe,_shadersreadDepth:()=>PMe,_shadersreadNonPerspective:()=>IMe,_shadersreverseLogDepth:()=>MMe,_shadersround:()=>OMe,_shaderssaturation:()=>NMe,_shaderssceneMode2D:()=>aIe,_shaderssceneMode3D:()=>sIe,_shaderssceneModeColumbusView:()=>lIe,_shaderssceneModeMorphing:()=>uIe,_shadersshadowDepthCompare:()=>FMe,_shadersshadowParameters:()=>CIe,_shadersshadowVisibility:()=>BMe,_shaderssignNotZero:()=>kMe,_shaderssolarRadius:()=>cIe,_shaderssphericalHarmonics:()=>VMe,_shaderssrgbToLinear:()=>zMe,_shaderstangentToEyeSpaceMatrix:()=>UMe,_shaderstextureCube:()=>HMe,_shadersthreePiOver2:()=>hIe,_shaderstransformPlane:()=>GMe,_shaderstranslateRelativeToEye:()=>WMe,_shaderstranslucentPhong:()=>jMe,_shaderstranspose:()=>qMe,_shaderstwoPi:()=>dIe,_shadersunpackClippingExtents:()=>YMe,_shadersunpackDepth:()=>XMe,_shadersunpackFloat:()=>KMe,_shadersunpackUint:()=>$Me,_shadersvalueTransform:()=>JMe,_shadersvertexLogDepth:()=>QMe,_shaderswebMercatorMaxLatitude:()=>fIe,_shaderswindowToEyeCoordinates:()=>ZMe,_shaderswriteDepthClamp:()=>eDe,_shaderswriteLogDepth:()=>tDe,_shaderswriteNonPerspective:()=>iDe,addBuffer:()=>n3e,addDefaults:()=>$Le,addExtensionsRequired:()=>t3e,addExtensionsUsed:()=>gU,addPipelineExtras:()=>eZ,addToArray:()=>pw,appendForwardSlash:()=>CSe,arrayRemoveDuplicates:()=>M_,barycentricCoordinates:()=>Sce,binarySearch:()=>Dg,buildModuleUrl:()=>va,buildVoxelDrawCommands:()=>NBe,clipper2lib:()=>nF,clone:()=>so,combine:()=>Fa,computeFlyToLocationForRectangle:()=>Ode,createBillboardPointCallback:()=>Tde,createBlurStage:()=>Bue,createCommand:()=>bu,createDefaultImageryProviderViewModels:()=>aVe,createDefaultTerrainProviderViewModels:()=>sVe,createEdgeStage:()=>k7,createElevationBandMaterial:()=>w2t,createFragmentFromTemplate:()=>Tke,createGooglePhotorealistic3DTileset:()=>T2t,createGuid:()=>Hu,createMaterialPropertyDescriptor:()=>Av,createOsmBuildingsAsync:()=>E2t,createPropertyDescriptor:()=>Fi,createRawPropertyDescriptor:()=>Ib,createTangentSpaceDebugPrimitive:()=>A2t,createTaskProcessorWorker:()=>DCt,createUniform:()=>SPe,createUniformArray:()=>IPe,createWorldBathymetryAsync:()=>G4e,createWorldImageryAsync:()=>LG,createWorldTerrainAsync:()=>zfe,decodeGoogleEarthEnterpriseData:()=>j4e,decodeVectorPolylinePositions:()=>qNe,defaultValue:()=>Fyt,defer:()=>Z0,defined:()=>N,demodernizeShader:()=>nDe,deprecationWarning:()=>xP,destroyObject:()=>Ir,exportKml:()=>hyt,fflate_module:()=>Fke,findAccessorMinMax:()=>tZ,findContentMetadata:()=>Sde,findGroupMetadata:()=>Pde,findTileMetadata:()=>ZNe,forEachTextureInMaterial:()=>$he,formatError:()=>a9,fragment:()=>TCt,freezeRenderState:()=>aat,getAbsoluteUri:()=>zG,getAccessorByteStride:()=>H5,getBaseUri:()=>wSe,getBinaryAccessor:()=>AL,getClipAndStyleCode:()=>a4e,getClippingFunction:()=>SZ,getComponentReader:()=>jQ,getElement:()=>Pd,getExtensionFromUri:()=>I5,getFilenameFromUri:()=>bQ,getImageFromTypedArray:()=>TDe,getImagePixels:()=>XV,getJsonFromTypedArray:()=>Yy,getMagic:()=>BW,getMetadataClassProperty:()=>WBe,getMetadataProperty:()=>qBe,getStringFromTypedArray:()=>W5,getTimestamp:()=>Oh,hasExtension:()=>kd,heightReferenceOnEntityPropertyChanged:()=>kQ,isBitSet:()=>Ew,isBlobUri:()=>gce,isCrossOriginUrl:()=>KV,isDataUri:()=>iQ,isLeapYear:()=>JV,knockout:()=>vr,knockout_3_5_1:()=>B3,knockout_es5:()=>Zke,libgif:()=>WRe,loadAndExecuteScript:()=>_ce,loadCRN:()=>Kyt,loadCubeMap:()=>ZBe,loadDDS:()=>bce,loadImageFromTypedArray:()=>FW,loadKTX2:()=>M5,loadView:()=>Qfe,mergeSort:()=>l7,moveTechniqueRenderStates:()=>e3e,moveTechniquesToExtension:()=>i3e,numberOfComponentsForType:()=>mU,objFS:()=>Uke,objectToQuery:()=>vce,oneTimeWarning:()=>ya,packer:()=>PDe,parseBatchTable:()=>zW,parseDefines:()=>Wke,parseFeatureMetadataLegacy:()=>YLe,parseGlb:()=>QLe,parseResponseHeaders:()=>TSe,parseStructuralMetadata:()=>qLe,pickModel:()=>DNe,pointInsideTriangle:()=>t2t,preprocess3DTileContent:()=>xZ,processVoxelProperties:()=>OBe,queryToObject:()=>lM,rasterizeHTML_allinone:()=>_4e,readAccessorPacked:()=>o3e,removeExtension:()=>fJ,removeExtensionsRequired:()=>JLe,removeExtensionsUsed:()=>Khe,removePipelineExtras:()=>ZLe,removeUnusedElements:()=>r3e,remove_primitive:()=>OJ,resizeImageToNextPowerOfTwo:()=>P$,sampleTerrain:()=>AZ,sampleTerrainMostDetailed:()=>cD,scaleToGeodeticSurface:()=>wce,srgbToLinear:()=>vfe,subdivideArray:()=>FDe,subscribeAndEvaluate:()=>Nb,svgCompassGyro:()=>Mke,svgCompassOuterRing:()=>Ike,svgCompassRotationMarker:()=>Dke,svgReset:()=>Ake,turf:()=>qo,updateAccessorComponentTypes:()=>a3e,updateVersion:()=>u3e,usesExtension:()=>Km,vertex:()=>ECt,viewerCesium3DTilesInspectorMixin:()=>tbt,viewerCesiumInspectorMixin:()=>ibt,viewerCesiumNavigationMixin:()=>Z2t,viewerDragDropMixin:()=>rbt,viewerPerformanceWatchdogMixin:()=>nbt,viewerVoxelInspectorMixin:()=>abt,webGLConstantToGlslType:()=>d2t,wrapFunction:()=>Q4e,writeTextToCanvas:()=>Kz});var NAe={},Fkt=Object.create,grt=Object.defineProperty,Bkt=Object.getOwnPropertyDescriptor,kkt=Object.getOwnPropertyNames,Vkt=Object.getPrototypeOf,zkt=Object.prototype.hasOwnProperty,bV=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(f,m)=>(typeof require<"u"?require:f)[m]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')}),Ht=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),Ukt=(o,f,m,x)=>{if(f&&typeof f=="object"||typeof f=="function")for(let v of kkt(f))!zkt.call(o,v)&&v!==m&&grt(o,v,{get:()=>f[v],enumerable:!(x=Bkt(f,v))||x.enumerable});return o},E0=(o,f,m)=>(m=o!=null?Fkt(Vkt(o)):{},Ukt(f||!o||!o.__esModule?grt(m,"default",{value:o,enumerable:!0}):m,o)),FAe=Ht((o,f)=>{var m=function(x){x==null&&(x=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,x.constructor==Array?this.init_by_array(x,x.length):this.init_seed(x)};m.prototype.init_seed=function(x){for(this.mt[0]=x>>>0,this.mti=1;this.mti<this.N;this.mti++){var x=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(((x&4294901760)>>>16)*1812433253<<16)+(x&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}},m.prototype.init_by_array=function(x,v){var y,C,w;for(this.init_seed(19650218),y=1,C=0,w=this.N>v?this.N:v;w;w--){var T=this.mt[y-1]^this.mt[y-1]>>>30;this.mt[y]=(this.mt[y]^(((T&4294901760)>>>16)*1664525<<16)+(T&65535)*1664525)+x[C]+C,this.mt[y]>>>=0,y++,C++,y>=this.N&&(this.mt[0]=this.mt[this.N-1],y=1),C>=v&&(C=0)}for(w=this.N-1;w;w--){var T=this.mt[y-1]^this.mt[y-1]>>>30;this.mt[y]=(this.mt[y]^(((T&4294901760)>>>16)*1566083941<<16)+(T&65535)*1566083941)-y,this.mt[y]>>>=0,y++,y>=this.N&&(this.mt[0]=this.mt[this.N-1],y=1)}this.mt[0]=2147483648},m.prototype.random_int=function(){var x,v=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var y;for(this.mti==this.N+1&&this.init_seed(5489),y=0;y<this.N-this.M;y++)x=this.mt[y]&this.UPPER_MASK|this.mt[y+1]&this.LOWER_MASK,this.mt[y]=this.mt[y+this.M]^x>>>1^v[x&1];for(;y<this.N-1;y++)x=this.mt[y]&this.UPPER_MASK|this.mt[y+1]&this.LOWER_MASK,this.mt[y]=this.mt[y+(this.M-this.N)]^x>>>1^v[x&1];x=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^x>>>1^v[x&1],this.mti=0}return x=this.mt[this.mti++],x^=x>>>11,x^=x<<7&2636928640,x^=x<<15&4022730752,x^=x>>>18,x>>>0},m.prototype.random_int31=function(){return this.random_int()>>>1},m.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},m.prototype.random=function(){return this.random_int()*(1/4294967296)},m.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},m.prototype.random_long=function(){var x=this.random_int()>>>5,v=this.random_int()>>>6;return(x*67108864+v)*(1/9007199254740992)},f.exports=m}),Hkt=Ht((o,f)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(m){var x=typeof o=="object"&&o&&!o.nodeType&&o,v=typeof f=="object"&&f&&!f.nodeType&&f,y=typeof global=="object"&&global;(y.global===y||y.window===y||y.self===y)&&(m=y);var C,w=2147483647,T=36,E=1,A=26,S=38,M=700,I=72,P=128,D="-",R=/^xn--/,L=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,F={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=T-E,H=Math.floor,G=String.fromCharCode,W;function Y(ae){throw new RangeError(F[ae])}function K(ae,he){for(var me=ae.length,ue=[];me--;)ue[me]=he(ae[me]);return ue}function X(ae,he){var me=ae.split("@"),ue="";me.length>1&&(ue=me[0]+"@",ae=me[1]),ae=ae.replace(O,".");var ce=ae.split("."),de=K(ce,he).join(".");return ue+de}function q(ae){for(var he=[],me=0,ue=ae.length,ce,de;me<ue;)ce=ae.charCodeAt(me++),ce>=55296&&ce<=56319&&me<ue?(de=ae.charCodeAt(me++),(de&64512)==56320?he.push(((ce&1023)<<10)+(de&1023)+65536):(he.push(ce),me--)):he.push(ce);return he}function J(ae){return K(ae,function(he){var me="";return he>65535&&(he-=65536,me+=G(he>>>10&1023|55296),he=56320|he&1023),me+=G(he),me}).join("")}function Z(ae){return ae-48<10?ae-22:ae-65<26?ae-65:ae-97<26?ae-97:T}function z(ae,he){return ae+22+75*(ae<26)-((he!=0)<<5)}function te(ae,he,me){var ue=0;for(ae=me?H(ae/M):ae>>1,ae+=H(ae/he);ae>B*A>>1;ue+=T)ae=H(ae/B);return H(ue+(B+1)*ae/(ae+S))}function ie(ae){var he=[],me=ae.length,ue,ce=0,de=P,fe=I,we,Te,Ae,Fe,Ue,it,lt,ft,vt;for(we=ae.lastIndexOf(D),we<0&&(we=0),Te=0;Te<we;++Te)ae.charCodeAt(Te)>=128&&Y("not-basic"),he.push(ae.charCodeAt(Te));for(Ae=we>0?we+1:0;Ae<me;){for(Fe=ce,Ue=1,it=T;Ae>=me&&Y("invalid-input"),lt=Z(ae.charCodeAt(Ae++)),(lt>=T||lt>H((w-ce)/Ue))&&Y("overflow"),ce+=lt*Ue,ft=it<=fe?E:it>=fe+A?A:it-fe,!(lt<ft);it+=T)vt=T-ft,Ue>H(w/vt)&&Y("overflow"),Ue*=vt;ue=he.length+1,fe=te(ce-Fe,ue,Fe==0),H(ce/ue)>w-de&&Y("overflow"),de+=H(ce/ue),ce%=ue,he.splice(ce++,0,de)}return J(he)}function re(ae){var he,me,ue,ce,de,fe,we,Te,Ae,Fe,Ue,it=[],lt,ft,vt,Pt;for(ae=q(ae),lt=ae.length,he=P,me=0,de=I,fe=0;fe<lt;++fe)Ue=ae[fe],Ue<128&&it.push(G(Ue));for(ue=ce=it.length,ce&&it.push(D);ue<lt;){for(we=w,fe=0;fe<lt;++fe)Ue=ae[fe],Ue>=he&&Ue<we&&(we=Ue);for(ft=ue+1,we-he>H((w-me)/ft)&&Y("overflow"),me+=(we-he)*ft,he=we,fe=0;fe<lt;++fe)if(Ue=ae[fe],Ue<he&&++me>w&&Y("overflow"),Ue==he){for(Te=me,Ae=T;Fe=Ae<=de?E:Ae>=de+A?A:Ae-de,!(Te<Fe);Ae+=T)Pt=Te-Fe,vt=T-Fe,it.push(G(z(Fe+Pt%vt,0))),Te=H(Pt/vt);it.push(G(z(Te,0))),de=te(me,ft,ue==ce),me=0,++ue}++me,++he}return it.join("")}function ee(ae){return X(ae,function(he){return R.test(he)?ie(he.slice(4).toLowerCase()):he})}function oe(ae){return X(ae,function(he){return L.test(he)?"xn--"+re(he):he})}if(C={version:"1.3.2",ucs2:{decode:q,encode:J},decode:ie,encode:re,toASCII:oe,toUnicode:ee},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(x&&v)if(f.exports==x)v.exports=C;else for(W in C)C.hasOwnProperty(W)&&(x[W]=C[W]);else m.punycode=C})(o)}),Gkt=Ht((o,f)=>{/*!
* URI.js - Mutating URLs
* IPv6 Support
*
@@ -20126,7 +20126,14 @@
          //material.diffuse = vec3(1.0,0.0,0.0);
        }
      }
    `}),o.textureUniformShader.andStyle=!0}function aXi(o){let f=Math.floor(o/256/256),m=Math.floor((o-f*256*256)/255),x=o-f*256*256-m*256,v=f.toString(16).padStart(2,"0"),y=m.toString(16).padStart(2,"0"),C=x.toString(16).padStart(2,"0");return"color('#"+v+y+C+"')"}function sXi(o){return"${id} === '"+o+"'"}function lXi(o){let f=o.pipelineIds,m=f.length,x=[];for(let v=0;v<m;v++){let y=f[v];x.push([sXi(y),aXi(v)])}x.push(["true","color('white')"]),o.style=new zE({color:{conditions:x}})}function uXi(o){let f=o.flowLevels;if(f instanceof Array&&f.length===16){o.flowLevelMatrix=Ee.fromArray(f);return}o.flowLevelMatrix=new Ee}I9.prototype.init=function(o){let f=Math.sqrt(this.pipelineIds.length);f=Math.floor(f+1),this.width=f,this.height=f,uXi(this),nXi(this),oXi(this),lXi(this),this.oldCustomShader=this.tileset.customShader,this.tileset.customShader=this.textureUniformShader,this.oldStyle=this.tileset.style,this.tileset.style=this.style};function cXi(o){let f=o.pipelineTexture,m=o.serverDatas,x=o.textureData,v=0,y=Object.keys(m);y.length>0&&(y.forEach(C=>{let w=m[C];x[v++]=w}),f.copyFrom({source:{width:o.width,height:o.height,arrayBufferView:x}}))}function hXi(o,f){new Wr({url:o.pipelineUrl,queryParameters:{timestamp:o.currentTimestamp}}).fetchJson().then(function(m){m&&m.data&&m.data instanceof Array?f(m.data,m.time):console.log("download fail!")}).catch(function(m){})}I9.prototype.update=function(){let o=performance.now(),f=(o-this.startTime)/1e3;if(this.startTime=o,this.currentTime>this.nextRequestTime){let m=this;hXi(this,function(x,v){x.forEach(y=>{m.serverDatas[y.id]=y.flow}),m.nextRequestTime=(Number(m.currentTimestamp)-Number(v))/1e3,m.currentTimestamp=v,cXi(m)})}this.currentTime+=f,this.textureUniformShader.setUniform("u_time",this.currentTime)};I9.prototype.destroy=function(){this.tileset.customShader=this.oldCustomShader,this.tileset.style=this.oldStyle,this.pipelineTexture&&this.pipelineTexture.destroy(),this.textureData&&(this.textureData=null)};I9.fromUrl=async function(o){let{context:f,tileset:m,pipelineUrl:x,flowLevels:v,startTimestamp:y,imageWidth:C,imageHeight:w}=o,T=[],E=await new Wr({url:x,queryParameters:{timestamp:y}}).fetchJson();return E&&E.data&&E.data instanceof Array&&E.data.forEach(A=>{T.push(A.id)}),new I9(f,m,T,x,y,v,C,w)};var Ife=I9,dXi=ze.WHITE,fXi=ze.BLACK,pXi=new at(2,2);function M9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.evenColor=o.evenColor,this.oddColor=o.oddColor,this.repeat=o.repeat}Object.defineProperties(M9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._evenColor)&&Ut.isConstant(this._oddColor)&&Ut.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},evenColor:Fi("evenColor"),oddColor:Fi("oddColor"),repeat:Fi("repeat")});M9.prototype.getType=function(o){return"Checkerboard"};var mXi=new si;M9.prototype.getValue=function(o,f){return N(o)||(o=si.now(mXi)),N(f)||(f={}),f.lightColor=Ut.getValueOrClonedDefault(this._evenColor,o,dXi,f.lightColor),f.darkColor=Ut.getValueOrClonedDefault(this._oddColor,o,fXi,f.darkColor),f.repeat=Ut.getValueOrDefault(this._repeat,o,pXi),f};M9.prototype.equals=function(o){return this===o||o instanceof M9&&Ut.equals(this._evenColor,o._evenColor)&&Ut.equals(this._oddColor,o._oddColor)&&Ut.equals(this._repeat,o._repeat)};var wue=M9,Tue={id:void 0},kG=new Array(2);function CAe(o){let f=o.propertyNames,m=f.length;for(let x=0;x<m;x++)o[f[x]]=void 0;o._name=void 0,o._availability=void 0}function Kvt(o,f,m,x){kG[0]=m,kG[1]=x.id,f[JSON.stringify(kG)]=x.definitionChanged.addEventListener(Bp.prototype._onDefinitionChanged,o)}function $vt(o,f,m,x){kG[0]=m,kG[1]=x.id;let v=JSON.stringify(kG);f[v](),f[v]=void 0}function iB(o){if(o._shouldRecomposite=!0,o._suspendCount!==0)return;let f=o._collections,m=f.length,x=o._collectionsCopy,v=x.length,y,C,w,T,E,A=o._composite,S=new GE(o),M=o._eventHash,I;for(y=0;y<v;y++)for(E=x[y],E.collectionChanged.removeEventListener(Bp.prototype._onCollectionChanged,o),w=E.values,I=E.id,T=w.length-1;T>-1;T--)C=w[T],$vt(o,M,I,C);for(y=m-1;y>=0;y--)for(E=f[y],E.collectionChanged.addEventListener(Bp.prototype._onCollectionChanged,o),w=E.values,I=E.id,T=w.length-1;T>-1;T--){C=w[T],Kvt(o,M,I,C);let D=S.getById(C.id);N(D)||(D=A.getById(C.id),N(D)?CAe(D):(Tue.id=C.id,D=new tf(Tue)),S.add(D)),D.merge(C)}o._collectionsCopy=f.slice(0),A.suspendEvents(),A.removeAll();let P=S.values;for(y=0;y<P.length;y++)A.add(P[y]);A.resumeEvents()}function Bp(o,f){this._owner=f,this._composite=new GE(this),this._suspendCount=0,this._collections=N(o)?o.slice():[],this._collectionsCopy=[],this._id=Hu(),this._eventHash={},iB(this),this._shouldRecomposite=!1}Object.defineProperties(Bp.prototype,{collectionChanged:{get:function(){return this._composite._collectionChanged}},id:{get:function(){return this._id}},values:{get:function(){return this._composite.values}},owner:{get:function(){return this._owner}}});Bp.prototype.addCollection=function(o,f){N(f)?this._collections.splice(f,0,o):(f=this._collections.length,this._collections.push(o)),iB(this)};Bp.prototype.removeCollection=function(o){let f=this._collections.indexOf(o);return f!==-1?(this._collections.splice(f,1),iB(this),!0):!1};Bp.prototype.removeAllCollections=function(){this._collections.length=0,iB(this)};Bp.prototype.containsCollection=function(o){return this._collections.indexOf(o)!==-1};Bp.prototype.contains=function(o){return this._composite.contains(o)};Bp.prototype.indexOfCollection=function(o){return this._collections.indexOf(o)};Bp.prototype.getCollection=function(o){return this._collections[o]};Bp.prototype.getCollectionsLength=function(){return this._collections.length};function Mfe(o,f){return o.indexOf(f)}function Jvt(o,f,m){let x=o._collections;if(f=Ce.clamp(f,0,x.length-1),m=Ce.clamp(m,0,x.length-1),f===m)return;let v=x[f];x[f]=x[m],x[m]=v,iB(o)}Bp.prototype.raiseCollection=function(o){let f=Mfe(this._collections,o);Jvt(this,f,f+1)};Bp.prototype.lowerCollection=function(o){let f=Mfe(this._collections,o);Jvt(this,f,f-1)};Bp.prototype.raiseCollectionToTop=function(o){let f=Mfe(this._collections,o);f!==this._collections.length-1&&(this._collections.splice(f,1),this._collections.push(o),iB(this))};Bp.prototype.lowerCollectionToBottom=function(o){let f=Mfe(this._collections,o);f!==0&&(this._collections.splice(f,1),this._collections.splice(0,0,o),iB(this))};Bp.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()};Bp.prototype.resumeEvents=function(){this._suspendCount--,this._shouldRecomposite&&this._suspendCount===0&&(iB(this),this._shouldRecomposite=!1),this._composite.resumeEvents()};Bp.prototype.computeAvailability=function(){return this._composite.computeAvailability()};Bp.prototype.getById=function(o){return this._composite.getById(o)};Bp.prototype._onCollectionChanged=function(o,f,m){let x=this._collectionsCopy,v=x.length,y=this._composite;y.suspendEvents();let C,w,T,E,A=m.length,S=this._eventHash,M=o.id;for(C=0;C<A;C++){let P=m[C];$vt(this,S,M,P);let D=P.id;for(w=v-1;w>=0;w--)T=x[w].getById(D),N(T)&&(N(E)||(E=y.getById(D),CAe(E)),E.merge(T));N(E)||y.removeById(D),E=void 0}let I=f.length;for(C=0;C<I;C++){let P=f[C];Kvt(this,S,M,P);let D=P.id;for(w=v-1;w>=0;w--)T=x[w].getById(D),N(T)&&(N(E)||(E=y.getById(D),N(E)?CAe(E):(Tue.id=D,E=new tf(Tue),y.add(E))),E.merge(T));E=void 0}y.resumeEvents()};Bp.prototype._onDefinitionChanged=function(o,f,m,x){let v=this._collections,y=this._composite,C=v.length,w=o.id,T=y.getById(w),E=T[f],A=!N(E),S=!0;for(let M=C-1;M>=0;M--){let I=v[M].getById(o.id);if(N(I)){let P=I[f];if(N(P)){if(S)if(S=!1,N(P.merge)&&N(P.clone))E=P.clone(E);else{E=P;break}E.merge(P)}}}A&&T.propertyNames.indexOf(f)===-1&&T.addProperty(f),T[f]=E};var Qvt=Bp;function m5(){this._definitionChanged=new Or,this._composite=new oE,this._composite.definitionChanged.addEventListener(m5.prototype._raiseDefinitionChanged,this)}Object.defineProperties(m5.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite._intervals}}});m5.prototype.getType=function(o){let f=this._composite._intervals.findDataForIntervalContainingDate(o);if(N(f))return f.getType(o)};var xXi=new si;m5.prototype.getValue=function(o,f){N(o)||(o=si.now(xXi));let m=this._composite._intervals.findDataForIntervalContainingDate(o);if(N(m))return m.getValue(o,f)};m5.prototype.equals=function(o){return this===o||o instanceof m5&&this._composite.equals(o._composite,Ut.equals)};m5.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var Eue=m5,gXi=Ce.factorial;function C4e(o,f,m,x,v,y){let C=0,w,T,E;if(x>0){for(T=0;T<v;T++){for(w=!1,E=0;E<y.length&&!w;E++)T===y[E]&&(w=!0);w||(y.push(T),C+=C4e(o,f,m,x-1,v,y),y.splice(y.length-1,1))}return C}for(C=1,T=0;T<v;T++){for(w=!1,E=0;E<y.length&&!w;E++)T===y[E]&&(w=!0);w||(C*=o-m[f[T]])}return C}var Dfe={type:"Hermite"};Dfe.getRequiredDataPoints=function(o,f){return f=f??0,Math.max(Math.floor((o+1)/(f+1)),2)};Dfe.interpolateOrderZero=function(o,f,m,x,v){N(v)||(v=new Array(x));let y,C,w,T,E,A,S=f.length,M=new Array(x);for(y=0;y<x;y++){v[y]=0;let R=new Array(S);for(M[y]=R,C=0;C<S;C++)R[C]=[]}let I=S,P=new Array(I);for(y=0;y<I;y++)P[y]=y;let D=S-1;for(T=0;T<x;T++){for(C=0;C<I;C++)A=P[C]*x+T,M[T][0].push(m[A]);for(y=1;y<I;y++){let R=!1;for(C=0;C<I-y;C++){let L=f[P[C]],O=f[P[C+y]],F;O-L<=0?(A=P[C]*x+x*y+T,F=m[A],M[T][y].push(F/gXi(y))):(F=M[T][y-1][C+1]-M[T][y-1][C],M[T][y].push(F/(O-L))),R=R||F!==0}R||(D=y-1)}}for(w=0,E=0;w<=E;w++)for(y=w;y<=D;y++){let R=C4e(o,P,f,w,y,[]);for(T=0;T<x;T++){let L=M[T][y][0];v[T+w*x]+=L*R}}return v};var _Xi=[];Dfe.interpolate=function(o,f,m,x,v,y,C){let w=x*(y+1);N(C)||(C=new Array(w));for(let L=0;L<w;L++)C[L]=0;let T=f.length,E=new Array(T*(v+1)),A;for(A=0;A<T;A++)for(let L=0;L<v+1;L++)E[A*(v+1)+L]=A;let S=E.length,M=_Xi,I=vXi(M,E,f,m,x,v),P=[],D=S*(S+1)/2,R=Math.min(I,y);for(let L=0;L<=R;L++)for(A=L;A<=I;A++){P.length=0;let O=C4e(o,E,f,L,A,P),F=Math.floor(A*(1-A)/2)+S*A;for(let B=0;B<x;B++){let H=Math.floor(B*D),G=M[H+F];C[B+L*x]+=G*O}}return C};function vXi(o,f,m,x,v,y){let C,w,T=-1,E=f.length,A=E*(E+1)/2;for(let S=0;S<v;S++){let M=Math.floor(S*A);for(C=0;C<E;C++)w=f[C]*v*(y+1)+S,o[M+C]=x[w];for(let I=1;I<E;I++){let P=0,D=Math.floor(I*(1-I)/2)+E*I,R=!1;for(C=0;C<E-I;C++){let L=m[f[C]],O=m[f[C+I]],F,B;if(O-L<=0)w=f[C]*v*(y+1)+v*I+S,F=x[w],B=F/Ce.factorial(I),o[M+D+P]=B,P++;else{let H=Math.floor((I-1)*(2-I)/2)+E*(I-1);F=o[M+H+C+1]-o[M+H+C],B=F/(O-L),o[M+D+P]=B,P++}R=R||F!==0}R&&(T=Math.max(T,I))}}return T}var b4e=Dfe,w4e={type:"Lagrange"};w4e.getRequiredDataPoints=function(o){return Math.max(o+1,2)};w4e.interpolateOrderZero=function(o,f,m,x,v){N(v)||(v=new Array(x));let y,C,w=f.length;for(y=0;y<x;y++)v[y]=0;for(y=0;y<w;y++){let T=1;for(C=0;C<w;C++)if(C!==y){let E=f[y]-f[C];T*=(o-f[C])/E}for(C=0;C<x;C++)v[C]+=T*m[y*x+C]}return v};var T4e=w4e;function Zy(o,f,m){this.clock=o??0,this.cone=f??0,this.magnitude=m??1}Zy.fromCartesian3=function(o,f){let m=o.x,x=o.y,v=o.z,y=m*m+x*x;return N(f)||(f=new Zy),f.clock=Math.atan2(x,m),f.cone=Math.atan2(Math.sqrt(y),v),f.magnitude=Math.sqrt(y+v*v),f};Zy.clone=function(o,f){if(N(o))return N(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=o.magnitude,f):new Zy(o.clock,o.cone,o.magnitude)};Zy.normalize=function(o,f){return N(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=1,f):new Zy(o.clock,o.cone,1)};Zy.equals=function(o,f){return o===f||N(o)&&N(f)&&o.clock===f.clock&&o.cone===f.cone&&o.magnitude===f.magnitude};Zy.equalsEpsilon=function(o,f,m){return m=m??0,o===f||N(o)&&N(f)&&Math.abs(o.clock-f.clock)<=m&&Math.abs(o.cone-f.cone)<=m&&Math.abs(o.magnitude-f.magnitude)<=m};Zy.prototype.equals=function(o){return Zy.equals(this,o)};Zy.prototype.clone=function(o){return Zy.clone(this,o)};Zy.prototype.equalsEpsilon=function(o,f){return Zy.equalsEpsilon(this,o,f)};Zy.prototype.toString=function(){return`(${this.clock}, ${this.cone}, ${this.magnitude})`};var E4e=Zy,Rfe=E0(OE(),1),yXi=ze.WHITE,CXi=.1,bXi=new at(8,8),wXi=new at(0,0),TXi=new at(1,1);function D9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._color=void 0,this._colorSubscription=void 0,this._cellAlpha=void 0,this._cellAlphaSubscription=void 0,this._lineCount=void 0,this._lineCountSubscription=void 0,this._lineThickness=void 0,this._lineThicknessSubscription=void 0,this._lineOffset=void 0,this._lineOffsetSubscription=void 0,this.color=o.color,this.cellAlpha=o.cellAlpha,this.lineCount=o.lineCount,this.lineThickness=o.lineThickness,this.lineOffset=o.lineOffset}Object.defineProperties(D9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._color)&&Ut.isConstant(this._cellAlpha)&&Ut.isConstant(this._lineCount)&&Ut.isConstant(this._lineThickness)&&Ut.isConstant(this._lineOffset)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Fi("color"),cellAlpha:Fi("cellAlpha"),lineCount:Fi("lineCount"),lineThickness:Fi("lineThickness"),lineOffset:Fi("lineOffset")});D9.prototype.getType=function(o){return"Grid"};var EXi=new si;D9.prototype.getValue=function(o,f){return N(o)||(o=si.now(EXi)),N(f)||(f={}),f.color=Ut.getValueOrClonedDefault(this._color,o,yXi,f.color),f.cellAlpha=Ut.getValueOrDefault(this._cellAlpha,o,CXi),f.lineCount=Ut.getValueOrClonedDefault(this._lineCount,o,bXi,f.lineCount),f.lineThickness=Ut.getValueOrClonedDefault(this._lineThickness,o,TXi,f.lineThickness),f.lineOffset=Ut.getValueOrClonedDefault(this._lineOffset,o,wXi,f.lineOffset),f};D9.prototype.equals=function(o){return this===o||o instanceof D9&&Ut.equals(this._color,o._color)&&Ut.equals(this._cellAlpha,o._cellAlpha)&&Ut.equals(this._lineCount,o._lineCount)&&Ut.equals(this._lineThickness,o._lineThickness)&&Ut.equals(this._lineOffset,o._lineOffset)};var Aue=D9,AXi=ze.WHITE,SXi=ze.TRANSPARENT,PXi=16,IXi=255;function R9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._color=void 0,this._colorSubscription=void 0,this._gapColor=void 0,this._gapColorSubscription=void 0,this._dashLength=void 0,this._dashLengthSubscription=void 0,this._dashPattern=void 0,this._dashPatternSubscription=void 0,this.color=o.color,this.gapColor=o.gapColor,this.dashLength=o.dashLength,this.dashPattern=o.dashPattern}Object.defineProperties(R9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._color)&&Ut.isConstant(this._gapColor)&&Ut.isConstant(this._dashLength)&&Ut.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Fi("color"),gapColor:Fi("gapColor"),dashLength:Fi("dashLength"),dashPattern:Fi("dashPattern")});R9.prototype.getType=function(o){return"PolylineDash"};var MXi=new si;R9.prototype.getValue=function(o,f){return N(o)||(o=si.now(MXi)),N(f)||(f={}),f.color=Ut.getValueOrClonedDefault(this._color,o,AXi,f.color),f.gapColor=Ut.getValueOrClonedDefault(this._gapColor,o,SXi,f.gapColor),f.dashLength=Ut.getValueOrDefault(this._dashLength,o,PXi,f.dashLength),f.dashPattern=Ut.getValueOrDefault(this._dashPattern,o,IXi,f.dashPattern),f};R9.prototype.equals=function(o){return this===o||o instanceof R9&&Ut.equals(this._color,o._color)&&Ut.equals(this._gapColor,o._gapColor)&&Ut.equals(this._dashLength,o._dashLength)&&Ut.equals(this._dashPattern,o._dashPattern)};var Eu=R9,DXi=ze.WHITE,RXi=.25,LXi=1;function L9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._color=void 0,this._colorSubscription=void 0,this._glowPower=void 0,this._glowPowerSubscription=void 0,this._taperPower=void 0,this._taperPowerSubscription=void 0,this.color=o.color,this.glowPower=o.glowPower,this.taperPower=o.taperPower}Object.defineProperties(L9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._color)&&Ut.isConstant(this._glow)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Fi("color"),glowPower:Fi("glowPower"),taperPower:Fi("taperPower")});L9.prototype.getType=function(o){return"PolylineGlow"};var OXi=new si;L9.prototype.getValue=function(o,f){return N(o)||(o=si.now(OXi)),N(f)||(f={}),f.color=Ut.getValueOrClonedDefault(this._color,o,DXi,f.color),f.glowPower=Ut.getValueOrDefault(this._glowPower,o,RXi,f.glowPower),f.taperPower=Ut.getValueOrDefault(this._taperPower,o,LXi,f.taperPower),f};L9.prototype.equals=function(o){return this===o||o instanceof L9&&Ut.equals(this._color,o._color)&&Ut.equals(this._glowPower,o._glowPower)&&Ut.equals(this._taperPower,o._taperPower)};var Sue=L9,NXi=ze.WHITE,FXi=ze.BLACK,BXi=1;function O9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._color=void 0,this._colorSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this.color=o.color,this.outlineColor=o.outlineColor,this.outlineWidth=o.outlineWidth}Object.defineProperties(O9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._color)&&Ut.isConstant(this._outlineColor)&&Ut.isConstant(this._outlineWidth)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Fi("color"),outlineColor:Fi("outlineColor"),outlineWidth:Fi("outlineWidth")});O9.prototype.getType=function(o){return"PolylineOutline"};var kXi=new si;O9.prototype.getValue=function(o,f){return N(o)||(o=si.now(kXi)),N(f)||(f={}),f.color=Ut.getValueOrClonedDefault(this._color,o,NXi,f.color),f.outlineColor=Ut.getValueOrClonedDefault(this._outlineColor,o,FXi,f.outlineColor),f.outlineWidth=Ut.getValueOrDefault(this._outlineWidth,o,BXi),f};O9.prototype.equals=function(o){return this===o||o instanceof O9&&Ut.equals(this._color,o._color)&&Ut.equals(this._outlineColor,o._outlineColor)&&Ut.equals(this._outlineWidth,o._outlineWidth)};var QL=O9;function x5(o){this._value=void 0,this._definitionChanged=new Or,this._eventHelper=new xC,this.setValue(o)}Object.defineProperties(x5.prototype,{isConstant:{get:function(){let o=this._value;if(!N(o))return!0;let f=o.length;for(let m=0;m<f;m++)if(!Ut.isConstant(o[m]))return!1;return!0}},definitionChanged:{get:function(){return this._definitionChanged}}});var VXi=new si;x5.prototype.getValue=function(o,f){N(o)||(o=si.now(VXi));let m=this._value;if(!N(m))return;let x=m.length;N(f)||(f=new Array(x));let v=0,y=0;for(;v<x;){let C=this._value[v].getValue(o,f[v]);N(C)&&(f[y]=C,y++),v++}return f.length=y,f};x5.prototype.setValue=function(o){let f=this._eventHelper;if(f.removeAll(),N(o)){this._value=o.slice();let m=o.length;for(let x=0;x<m;x++){let v=o[x];N(v)&&f.add(v.definitionChanged,x5.prototype._raiseDefinitionChanged,this)}}else this._value=void 0;this._definitionChanged.raiseEvent(this)};x5.prototype.equals=function(o){return this===o||o instanceof x5&&Ut.arrayEquals(this._value,o._value)};x5.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var Lfe=x5,zXi={packedLength:1,pack:function(o,f,m){return m=m??0,f[m]=o,f},unpack:function(o,f,m){return f=f??0,o[f]},convertPackedArrayForInterpolation:function(o,f,m,x){N(x)||(x=[]),f=f??0,m=m??o.length;let v;for(let y=0,C=m-f+1;y<C;y++){let w=o[f+y];y===0||Math.abs(v-w)<Math.PI?x[y]=w:x[y]=w-Ce.TWO_PI,v=w}},unpackInterpolationResult:function(o,f,m,x,v){return v=o[0],v<0?v+Ce.TWO_PI:v}},NM=zXi,UXi={HORIZONTAL:0,VERTICAL:1},g5=Object.freeze(UXi),HXi=g5.HORIZONTAL,GXi=ze.WHITE,WXi=ze.BLACK,jXi=0,qXi=1;function N9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._orientation=void 0,this._orientationSubscription=void 0,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._offset=void 0,this._offsetSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.orientation=o.orientation,this.evenColor=o.evenColor,this.oddColor=o.oddColor,this.offset=o.offset,this.repeat=o.repeat}Object.defineProperties(N9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._orientation)&&Ut.isConstant(this._evenColor)&&Ut.isConstant(this._oddColor)&&Ut.isConstant(this._offset)&&Ut.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},orientation:Fi("orientation"),evenColor:Fi("evenColor"),oddColor:Fi("oddColor"),offset:Fi("offset"),repeat:Fi("repeat")});N9.prototype.getType=function(o){return"Stripe"};var YXi=new si;N9.prototype.getValue=function(o,f){return N(o)||(o=si.now(YXi)),N(f)||(f={}),f.horizontal=Ut.getValueOrDefault(this._orientation,o,HXi)===g5.HORIZONTAL,f.evenColor=Ut.getValueOrClonedDefault(this._evenColor,o,GXi,f.evenColor),f.oddColor=Ut.getValueOrClonedDefault(this._oddColor,o,WXi,f.oddColor),f.offset=Ut.getValueOrDefault(this._offset,o,jXi),f.repeat=Ut.getValueOrDefault(this._repeat,o,qXi),f};N9.prototype.equals=function(o){return this===o||o instanceof N9&&Ut.equals(this._orientation,o._orientation)&&Ut.equals(this._evenColor,o._evenColor)&&Ut.equals(this._oddColor,o._oddColor)&&Ut.equals(this._offset,o._offset)&&Ut.equals(this._repeat,o._repeat)};var Pue=N9;function SJ(o,f){this._velocityVectorProperty=new EZ(o,!0),this._subscription=void 0,this._ellipsoid=void 0,this._definitionChanged=new Or,this.ellipsoid=f??Ei.default;let m=this;this._velocityVectorProperty.definitionChanged.addEventListener(function(){m._definitionChanged.raiseEvent(m)})}Object.defineProperties(SJ.prototype,{isConstant:{get:function(){return Ut.isConstant(this._velocityVectorProperty)}},definitionChanged:{get:function(){return this._definitionChanged}},position:{get:function(){return this._velocityVectorProperty.position},set:function(o){this._velocityVectorProperty.position=o}},ellipsoid:{get:function(){return this._ellipsoid},set:function(o){this._ellipsoid!==o&&(this._ellipsoid=o,this._definitionChanged.raiseEvent(this))}}});var ztt=new V,XXi=new V,Utt=new Yt,KXi=new si;SJ.prototype.getValue=function(o,f){N(o)||(o=si.now(KXi));let m=this._velocityVectorProperty._getValue(o,XXi,ztt);if(N(m))return Mr.rotationMatrixFromPositionVelocity(ztt,m,this._ellipsoid,Utt),Er.fromRotationMatrix(Utt,f)};SJ.prototype.equals=function(o){return this===o||o instanceof SJ&&Ut.equals(this._velocityVectorProperty,o._velocityVectorProperty)&&(this._ellipsoid===o._ellipsoid||this._ellipsoid.equals(o._ellipsoid))};var A4e=SJ,gL={COMPLETE:0,BELOW_ELLIPSOID_HORIZON:1,ABOVE_ELLIPSOID_HORIZON:2};gL.validate=function(o){return o===gL.COMPLETE||o===gL.BELOW_ELLIPSOID_HORIZON||o===gL.ABOVE_ELLIPSOID_HORIZON};gL.toString=function(o){switch(o){case gL.COMPLETE:return"COMPLETE";case gL.BELOW_ELLIPSOID_HORIZON:return"BELOW_ELLIPSOID_HORIZON";case gL.ABOVE_ELLIPSOID_HORIZON:return"ABOVE_ELLIPSOID_HORIZON";default:throw new At("SensorVolumePortionToDisplay value is not valid and cannot be converted to a String.")}};var Iue=gL;function _5(){}_5.packedLength=V.packedLength;_5.unpack=V.unpack;_5.pack=V.pack;var bAe;function PJ(o,f){return f[0]==="#"&&(f=bAe+f),IQ.fromString(o,f)}function Htt(o,f,m){if(N(m.reference))return PJ(f,m.reference);if(N(m.velocityReference)){let x=PJ(f,m.velocityReference);switch(o){case V:case _5:return new EZ(x,o===_5);case Er:return new A4e(x)}}throw new Xi(`${JSON.stringify(m)} is not valid CZML.`)}function $Xi(o,f){return new Yr(function(m,x){return f(o.getValue(m,x))},o.isConstant)}var th=new V,W2=new E4e,Iy=new kt,UU=new Rl,Rae=new Er;function JXi(o){let f=o.rgbaf;if(N(f))return f;let m=o.rgba;if(!N(m))return;let x=m.length;if(x===ze.packedLength)return[ze.byteToFloat(m[0]),ze.byteToFloat(m[1]),ze.byteToFloat(m[2]),ze.byteToFloat(m[3])];f=new Array(x);for(let v=0;v<x;v+=5)f[v]=m[v],f[v+1]=ze.byteToFloat(m[v+1]),f[v+2]=ze.byteToFloat(m[v+2]),f[v+3]=ze.byteToFloat(m[v+3]),f[v+4]=ze.byteToFloat(m[v+4]);return f}function Gtt(o,f){let m=o.uri??o;return N(f)?f.getDerivedResource({url:m}):Wr.createIfNeeded(m)}function QXi(o){let f=o.wsen;if(N(f))return f;let m=o.wsenDegrees;if(!N(m))return;let x=m.length;if(x===Si.packedLength)return[Ce.toRadians(m[0]),Ce.toRadians(m[1]),Ce.toRadians(m[2]),Ce.toRadians(m[3])];f=new Array(x);for(let v=0;v<x;v+=5)f[v]=m[v],f[v+1]=Ce.toRadians(m[v+1]),f[v+2]=Ce.toRadians(m[v+2]),f[v+3]=Ce.toRadians(m[v+3]),f[v+4]=Ce.toRadians(m[v+4]);return f}function ZXi(o){let f=o.length;if(W2.magnitude=1,f===2)return W2.clock=o[0],W2.cone=o[1],V.fromSpherical(W2,th),[th.x,th.y,th.z];let m=new Array(f/3*4);for(let x=0,v=0;x<f;x+=3,v+=4)m[v]=o[x],W2.clock=o[x+1],W2.cone=o[x+2],V.fromSpherical(W2,th),m[v+1]=th.x,m[v+2]=th.y,m[v+3]=th.z;return m}function eKi(o){let f=o.length;if(f===3)return W2.clock=o[0],W2.cone=o[1],W2.magnitude=o[2],V.fromSpherical(W2,th),[th.x,th.y,th.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],W2.clock=o[x+1],W2.cone=o[x+2],W2.magnitude=o[x+3],V.fromSpherical(W2,th),m[x+1]=th.x,m[x+2]=th.y,m[x+3]=th.z;return m}function tKi(o){let f=o.length;if(f===3)return Iy.longitude=o[0],Iy.latitude=o[1],Iy.height=o[2],Ei.default.cartographicToCartesian(Iy,th),[th.x,th.y,th.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],Iy.longitude=o[x+1],Iy.latitude=o[x+2],Iy.height=o[x+3],Ei.default.cartographicToCartesian(Iy,th),m[x+1]=th.x,m[x+2]=th.y,m[x+3]=th.z;return m}function iKi(o){let f=o.length;if(f===3)return Iy.longitude=Ce.toRadians(o[0]),Iy.latitude=Ce.toRadians(o[1]),Iy.height=o[2],Ei.default.cartographicToCartesian(Iy,th),[th.x,th.y,th.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],Iy.longitude=Ce.toRadians(o[x+1]),Iy.latitude=Ce.toRadians(o[x+2]),Iy.height=o[x+3],Ei.default.cartographicToCartesian(Iy,th),m[x+1]=th.x,m[x+2]=th.y,m[x+3]=th.z;return m}function S4e(o){let f=o.cartesian;if(N(f))return f;let m=o.cartesianVelocity;if(N(m))return m;let x=o.unitCartesian;if(N(x))return x;let v=o.unitSpherical;if(N(v))return ZXi(v);let y=o.spherical;if(N(y))return eKi(y);let C=o.cartographicRadians;if(N(C))return tKi(C);let w=o.cartographicDegrees;if(N(w))return iKi(w);throw new Xi(`${JSON.stringify(o)} is not a valid CZML interval.`)}function Wtt(o,f){V.unpack(o,f,th),V.normalize(th,th),V.pack(th,o,f)}function rKi(o){let f=S4e(o);if(f.length===3)return Wtt(f,0),f;for(let m=1;m<f.length;m+=4)Wtt(f,m);return f}function jtt(o,f){Er.unpack(o,f,Rae),Er.normalize(Rae,Rae),Er.pack(Rae,o,f)}function nKi(o){let f=o.unitQuaternion;if(N(f)){if(f.length===4)return jtt(f,0),f;for(let m=1;m<f.length;m+=5)jtt(f,m)}return f}function qtt(o){return typeof o=="boolean"?Boolean:typeof o=="number"?Number:typeof o=="string"?String:o.hasOwnProperty("array")?Array:o.hasOwnProperty("boolean")?Boolean:o.hasOwnProperty("boundingRectangle")?Br:o.hasOwnProperty("cartesian2")?at:o.hasOwnProperty("cartesian")||o.hasOwnProperty("spherical")||o.hasOwnProperty("cartographicRadians")||o.hasOwnProperty("cartographicDegrees")?V:o.hasOwnProperty("unitCartesian")||o.hasOwnProperty("unitSpherical")?_5:o.hasOwnProperty("rgba")||o.hasOwnProperty("rgbaf")?ze:o.hasOwnProperty("arcType")?xs:o.hasOwnProperty("classificationType")?Uc:o.hasOwnProperty("colorBlendMode")?IM:o.hasOwnProperty("cornerType")?Fd:o.hasOwnProperty("heightReference")?qn:o.hasOwnProperty("horizontalOrigin")?Mc:o.hasOwnProperty("date")?si:o.hasOwnProperty("labelStyle")?$f:o.hasOwnProperty("number")?Number:o.hasOwnProperty("nearFarScalar")?fa:o.hasOwnProperty("distanceDisplayCondition")?Go:o.hasOwnProperty("object")||o.hasOwnProperty("value")?Object:o.hasOwnProperty("unitQuaternion")?Er:o.hasOwnProperty("shadowMode")?Zl:o.hasOwnProperty("string")?String:o.hasOwnProperty("stripeOrientation")?g5:o.hasOwnProperty("wsen")||o.hasOwnProperty("wsenDegrees")?Si:o.hasOwnProperty("uri")?Rfe.default:o.hasOwnProperty("verticalOrigin")?co:Object}function oKi(o,f,m){switch(o){case xs:return xs[f.arcType??f];case Array:return f.array;case Boolean:return f.boolean??f;case Br:return f.boundingRectangle;case at:return f.cartesian2;case V:return S4e(f);case _5:return rKi(f);case ze:return JXi(f);case Uc:return Uc[f.classificationType??f];case IM:return IM[f.colorBlendMode??f];case Fd:return Fd[f.cornerType??f];case qn:return qn[f.heightReference??f];case Mc:return Mc[f.horizontalOrigin??f];case Image:return Gtt(f,m);case si:return si.fromIso8601(f.date??f);case $f:return $f[f.labelStyle??f];case Number:return f.number??f;case fa:return f.nearFarScalar;case Go:return f.distanceDisplayCondition;case Object:return f.object??f.value??f;case Er:return nKi(f);case NM:return f.number??f;case Iue:return Iue[f.portionToDisplay??f];case Zl:return Zl[f.shadowMode??f.shadows??f];case String:return f.string??f;case g5:return g5[f.stripeOrientation??f];case Si:return QXi(f);case Rfe.default:return Gtt(f,m);case co:return co[f.verticalOrigin??f];default:throw new Xi(`Unknown CzmlDataSource interval type: ${o}`)}}var aKi={HERMITE:b4e,LAGRANGE:T4e,LINEAR:dhe};function Mue(o,f){let m=o.interpolationAlgorithm,x=o.interpolationDegree;(N(m)||N(x))&&f.setInterpolationOptions({interpolationAlgorithm:aKi[m],interpolationDegree:x});let v=o.forwardExtrapolationType;N(v)&&(f.forwardExtrapolationType=nM[v]);let y=o.forwardExtrapolationDuration;N(y)&&(f.forwardExtrapolationDuration=y);let C=o.backwardExtrapolationType;N(C)&&(f.backwardExtrapolationType=nM[C]);let w=o.backwardExtrapolationDuration;N(w)&&(f.backwardExtrapolationDuration=w)}var Ytt={iso8601:void 0};function T0(o){if(N(o))return Ytt.iso8601=o,Rl.fromIso8601(Ytt)}function P4e(o){let f=kn.MAXIMUM_INTERVAL.clone();return f.data=o,f}function Xtt(o){let f=new oE;return f.intervals.addInterval(P4e(o)),f}function Ktt(o){let f=new dw(o.referenceFrame);return f.intervals.addInterval(P4e(o)),f}function Due(o,f,m,x,v,y,C){let w=T0(x.interval);N(v)&&(N(w)?w=Rl.intersect(w,v,UU):w=v);let T,E,A,S=!N(x.reference)&&!N(x.velocityReference),M=N(w)&&!w.equals(kn.MAXIMUM_INTERVAL);if(x.delete===!0){if(!M){f[m]=void 0;return}return Zvt(f[m],w)}let I=!1;if(S){if(E=oKi(o,x,y),!N(E))return;T=o.packedLength??1,A=E.length??1,I=!N(x.array)&&typeof E!="string"&&A>T&&o!==Object}let P=typeof o.unpack=="function"&&o!==NM;if(!I&&!M){S?f[m]=new Ch(P?o.unpack(E,0):E):f[m]=Htt(o,C,x);return}let D=f[m],R,L=x.epoch;if(N(L)&&(R=si.fromIso8601(L)),I&&!M){D instanceof fL||(f[m]=D=new fL(o)),D.addSamplesPackedArray(E,R),Mue(x,D);return}let O;if(!I&&M){w=w.clone(),S?w.data=P?o.unpack(E,0):E:w.data=Htt(o,C,x),N(D)||(f[m]=D=S?new e9:new oE),S&&D instanceof e9?D.intervals.addInterval(w):D instanceof oE?(S&&(w.data=new Ch(w.data)),D.intervals.addInterval(w)):(f[m]=D=Xtt(D),S&&(w.data=new Ch(w.data)),D.intervals.addInterval(w));return}N(D)||(f[m]=D=new oE),D instanceof oE||(f[m]=D=Xtt(D));let F=D.intervals;O=F.findInterval(w),(!N(O)||!(O.data instanceof fL))&&(O=w.clone(),O.data=new fL(o),F.addInterval(O)),O.data.addSamplesPackedArray(E,R),Mue(x,O.data)}function Zvt(o,f){if(o instanceof fL){o.removeSamples(f);return}else if(o instanceof e9){o.intervals.removeInterval(f);return}else if(o instanceof oE){let m=o.intervals;for(let x=0;x<m.length;++x){let v=Rl.intersect(m.get(x),f,UU);v.isEmpty||Zvt(v.data,f)}m.removeInterval(f);return}}function Zi(o,f,m,x,v,y,C){if(N(x))if(Array.isArray(x))for(let w=0,T=x.length;w<T;++w)Due(o,f,m,x[w],v,y,C);else Due(o,f,m,x,v,y,C)}function $tt(o,f,m,x,v,y){let C=T0(m.interval);N(x)&&(N(C)?C=Rl.intersect(C,x,UU):C=x);let w=N(m.cartesianVelocity)?1:0,T=V.packedLength*(w+1),E,A,S=!N(m.reference),M=N(C)&&!C.equals(kn.MAXIMUM_INTERVAL);if(m.delete===!0){if(!M){o[f]=void 0;return}return eyt(o[f],C)}let I,P=!1;if(S&&(N(m.referenceFrame)&&(I=Q0[m.referenceFrame]),I=I??Q0.FIXED,E=S4e(m),A=E.length??1,P=A>T),!P&&!M){S?o[f]=new hM(V.unpack(E),I):o[f]=PJ(y,m.reference);return}let D=o[f],R,L=m.epoch;if(N(L)&&(R=si.fromIso8601(L)),P&&!M){(!(D instanceof aE)||N(I)&&D.referenceFrame!==I)&&(o[f]=D=new aE(I,w)),D.addSamplesPackedArray(E,R),Mue(m,D);return}let O;if(!P&&M){C=C.clone(),S?C.data=V.unpack(E):C.data=PJ(y,m.reference),N(D)||(S?D=new v9(I):D=new dw(I),o[f]=D),S&&D instanceof v9&&N(I)&&D.referenceFrame===I?D.intervals.addInterval(C):D instanceof dw?(S&&(C.data=new hM(C.data,I)),D.intervals.addInterval(C)):(o[f]=D=Ktt(D),S&&(C.data=new hM(C.data,I)),D.intervals.addInterval(C));return}N(D)?D instanceof dw||(o[f]=D=Ktt(D)):o[f]=D=new dw(I);let F=D.intervals;O=F.findInterval(C),(!N(O)||!(O.data instanceof aE)||N(I)&&O.data.referenceFrame!==I)&&(O=C.clone(),O.data=new aE(I,w),F.addInterval(O)),O.data.addSamplesPackedArray(E,R),Mue(m,O.data)}function eyt(o,f){if(o instanceof aE){o.removeSamples(f);return}else if(o instanceof v9){o.intervals.removeInterval(f);return}else if(o instanceof dw){let m=o.intervals;for(let x=0;x<m.length;++x){let v=Rl.intersect(m.get(x),f,UU);v.isEmpty||eyt(v.data,f)}m.removeInterval(f);return}}function tyt(o,f,m,x,v,y){if(N(m))if(Array.isArray(m))for(let C=0,w=m.length;C<w;++C)$tt(o,f,m[C],x,v,y);else $tt(o,f,m,x,v,y)}function Jtt(o,f,m,x){N(m.references)?Ofe(o,f,m.references,m.interval,x,Lfe,oE):(N(m.cartesian2)?m.array=at.unpackArray(m.cartesian2):N(m.cartesian)&&(m.array=at.unpackArray(m.cartesian)),N(m.array)&&Zi(Array,o,f,m,void 0,void 0,x))}function Qtt(o,f,m,x,v,y){let C=T0(m.interval);N(x)&&(N(C)?C=Rl.intersect(C,x,UU):C=x);let w=o[f],T,E;if(N(C)){w instanceof Eue||(w=new Eue,o[f]=w);let S=w.intervals;E=S.findInterval({start:C.start,stop:C.stop}),N(E)?T=E.data:(E=C.clone(),S.addInterval(E))}else T=w;let A;N(m.solidColor)?(T instanceof as||(T=new as),A=m.solidColor,Zi(ze,T,"color",A.color,void 0,void 0,y)):N(m.grid)?(T instanceof Aue||(T=new Aue),A=m.grid,Zi(ze,T,"color",A.color,void 0,v,y),Zi(Number,T,"cellAlpha",A.cellAlpha,void 0,v,y),Zi(at,T,"lineCount",A.lineCount,void 0,v,y),Zi(at,T,"lineThickness",A.lineThickness,void 0,v,y),Zi(at,T,"lineOffset",A.lineOffset,void 0,v,y)):N(m.image)?(T instanceof w0||(T=new w0),A=m.image,Zi(Image,T,"image",A.image,void 0,v,y),Zi(at,T,"repeat",A.repeat,void 0,v,y),Zi(ze,T,"color",A.color,void 0,v,y),Zi(Boolean,T,"transparent",A.transparent,void 0,v,y)):N(m.stripe)?(T instanceof Pue||(T=new Pue),A=m.stripe,Zi(g5,T,"orientation",A.orientation,void 0,v,y),Zi(ze,T,"evenColor",A.evenColor,void 0,v,y),Zi(ze,T,"oddColor",A.oddColor,void 0,v,y),Zi(Number,T,"offset",A.offset,void 0,v,y),Zi(Number,T,"repeat",A.repeat,void 0,v,y)):N(m.polylineOutline)?(T instanceof QL||(T=new QL),A=m.polylineOutline,Zi(ze,T,"color",A.color,void 0,v,y),Zi(ze,T,"outlineColor",A.outlineColor,void 0,v,y),Zi(Number,T,"outlineWidth",A.outlineWidth,void 0,v,y)):N(m.polylineGlow)?(T instanceof Sue||(T=new Sue),A=m.polylineGlow,Zi(ze,T,"color",A.color,void 0,v,y),Zi(Number,T,"glowPower",A.glowPower,void 0,v,y),Zi(Number,T,"taperPower",A.taperPower,void 0,v,y)):N(m.polylineArrow)?(T instanceof gm||(T=new gm),A=m.polylineArrow,Zi(ze,T,"color",A.color,void 0,void 0,y)):N(m.polylineDash)?(T instanceof Eu||(T=new Eu),A=m.polylineDash,Zi(ze,T,"color",A.color,void 0,void 0,y),Zi(ze,T,"gapColor",A.gapColor,void 0,void 0,y),Zi(Number,T,"dashLength",A.dashLength,void 0,v,y),Zi(Number,T,"dashPattern",A.dashPattern,void 0,v,y)):N(m.checkerboard)&&(T instanceof wue||(T=new wue),A=m.checkerboard,Zi(ze,T,"evenColor",A.evenColor,void 0,v,y),Zi(ze,T,"oddColor",A.oddColor,void 0,v,y),Zi(at,T,"repeat",A.repeat,void 0,v,y)),N(E)?E.data=T:o[f]=T}function Ow(o,f,m,x,v,y){if(N(m))if(Array.isArray(m))for(let C=0,w=m.length;C<w;++C)Qtt(o,f,m[C],x,v,y);else Qtt(o,f,m,x,v,y)}function sKi(o,f,m,x){let v=f.name;N(v)&&(o.name=f.name)}function lKi(o,f,m,x){let v=f.description;N(v)&&Zi(String,o,"description",v,void 0,x,m)}function uKi(o,f,m,x){let v=f.position;N(v)&&tyt(o,"position",v,void 0,x,m)}function cKi(o,f,m,x){let v=f.viewFrom;N(v)&&Zi(V,o,"viewFrom",v,void 0,x,m)}function hKi(o,f,m,x){let v=f.orientation;N(v)&&Zi(Er,o,"orientation",v,void 0,x,m)}function dKi(o,f,m,x){let v=f.properties;if(N(v)){N(o.properties)||(o.properties=new tP);for(let y in v)if(v.hasOwnProperty(y)){o.properties.hasProperty(y)||o.properties.addProperty(y);let C=v[y];if(Array.isArray(C))for(let w=0,T=C.length;w<T;++w)Due(qtt(C[w]),o.properties,y,C[w],void 0,x,m);else Due(qtt(C),o.properties,y,C,void 0,x,m)}}}function Ofe(o,f,m,x,v,y,C){let w=m.map(function(T){return PJ(v,T)});if(N(x)){x=T0(x);let T=o[f];if(!(T instanceof C)){let E=new C;E.intervals.addInterval(P4e(T)),o[f]=T=E}x.data=new y(w),T.intervals.addInterval(x)}else o[f]=new y(w)}function Ztt(o,f,m,x){let v=m.references;N(v)?Ofe(o,f,v,m.interval,x,Lfe,oE):Zi(Array,o,f,m,void 0,void 0,x)}function eit(o,f,m,x){if(N(m))if(Array.isArray(m))for(let v=0,y=m.length;v<y;++v)Ztt(o,f,m[v],x);else Ztt(o,f,m,x)}function tit(o,f,m,x){let v=m.references;N(v)?Ofe(o,f,v,m.interval,x,ZG,dw):(N(m.cartesian)?m.array=V.unpackArray(m.cartesian):N(m.cartographicRadians)?m.array=V.fromRadiansArrayHeights(m.cartographicRadians,Ei.default):N(m.cartographicDegrees)&&(m.array=V.fromDegreesArrayHeights(m.cartographicDegrees,Ei.default)),N(m.array)&&Zi(Array,o,f,m,void 0,void 0,x))}function ZZ(o,f,m,x){if(N(m))if(Array.isArray(m))for(let v=0,y=m.length;v<y;++v)tit(o,f,m[v],x);else tit(o,f,m,x)}function fKi(o){return V.unpackArray(o)}function pKi(o){return V.fromRadiansArrayHeights(o,Ei.default)}function mKi(o){return V.fromDegreesArrayHeights(o,Ei.default)}function iit(o,f,m,x){let v=m.references;if(N(v)){let y=v.map(function(C){let w={};return Ofe(w,"positions",C,m.interval,x,ZG,dw),w.positions});o[f]=new ZG(y)}else N(m.cartesian)?m.array=m.cartesian.map(fKi):N(m.cartographicRadians)?m.array=m.cartographicRadians.map(pKi):N(m.cartographicDegrees)&&(m.array=m.cartographicDegrees.map(mKi)),N(m.array)&&Zi(Array,o,f,m,void 0,void 0,x)}function xKi(o,f,m,x){if(N(m))if(Array.isArray(m))for(let v=0,y=m.length;v<y;++v)iit(o,f,m[v],x);else iit(o,f,m,x)}function gKi(o,f,m,x){if(N(m))if(Array.isArray(m))for(let v=0,y=m.length;v<y;v++)Jtt(o,f,m[v],x);else Jtt(o,f,m,x)}function _Ki(o,f,m,x){let v=f.availability;if(!N(v))return;let y;if(Array.isArray(v))for(let C=0,w=v.length;C<w;++C)N(y)||(y=new ky),y.addInterval(T0(v[C]));else y=new ky,y.addInterval(T0(v));o.availability=y}function vKi(o,f,m,x,v){N(f)&&Zi(_5,o,"alignedAxis",f,m,x,v)}function yKi(o,f,m,x){let v=f.billboard;if(!N(v))return;let y=T0(v.interval),C=o.billboard;N(C)||(o.billboard=C=new u3),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Image,C,"image",v.image,y,x,m),Zi(Number,C,"scale",v.scale,y,x,m),Zi(at,C,"pixelOffset",v.pixelOffset,y,x,m),Zi(V,C,"eyeOffset",v.eyeOffset,y,x,m),Zi(Mc,C,"horizontalOrigin",v.horizontalOrigin,y,x,m),Zi(co,C,"verticalOrigin",v.verticalOrigin,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(ze,C,"color",v.color,y,x,m),Zi(NM,C,"rotation",v.rotation,y,x,m),vKi(C,v.alignedAxis,y,x,m),Zi(Boolean,C,"sizeInMeters",v.sizeInMeters,y,x,m),Zi(Number,C,"width",v.width,y,x,m),Zi(Number,C,"height",v.height,y,x,m),Zi(fa,C,"scaleByDistance",v.scaleByDistance,y,x,m),Zi(fa,C,"translucencyByDistance",v.translucencyByDistance,y,x,m),Zi(fa,C,"pixelOffsetScaleByDistance",v.pixelOffsetScaleByDistance,y,x,m),Zi(Br,C,"imageSubRegion",v.imageSubRegion,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Number,C,"disableDepthTestDistance",v.disableDepthTestDistance,y,x,m)}function CKi(o,f,m,x){let v=f.box;if(!N(v))return;let y=T0(v.interval),C=o.box;N(C)||(o.box=C=new qce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(V,C,"dimensions",v.dimensions,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function bKi(o,f,m,x){let v=f.corridor;if(!N(v))return;let y=T0(v.interval),C=o.corridor;N(C)||(o.corridor=C=new Yce),Zi(Boolean,C,"show",v.show,y,x,m),ZZ(C,"positions",v.positions,m),Zi(Number,C,"width",v.width,y,x,m),Zi(Number,C,"height",v.height,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Number,C,"extrudedHeight",v.extrudedHeight,y,x,m),Zi(qn,C,"extrudedHeightReference",v.extrudedHeightReference,y,x,m),Zi(Fd,C,"cornerType",v.cornerType,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m)}function wKi(o,f,m,x){let v=f.cylinder;if(!N(v))return;let y=T0(v.interval),C=o.cylinder;N(C)||(o.cylinder=C=new Xce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Number,C,"length",v.length,y,x,m),Zi(Number,C,"topRadius",v.topRadius,y,x,m),Zi(Number,C,"bottomRadius",v.bottomRadius,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Number,C,"numberOfVerticalLines",v.numberOfVerticalLines,y,x,m),Zi(Number,C,"slices",v.slices,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function TKi(o,f){let m=o.version;if(N(m)&&typeof m=="string"){let y=m.split(".");if(y.length===2){if(y[0]!=="1")throw new Xi("Cesium only supports CZML version 1.");f._version=m}}if(!N(f._version))throw new Xi("CZML version information invalid.  It is expected to be a property on the document object in the <Major>.<Minor> version format.");let x=f._documentPacket;N(o.name)&&(x.name=o.name);let v=o.clock;if(N(v)){let y=x.clock;N(y)?(y.interval=v.interval??y.interval,y.currentTime=v.currentTime??y.currentTime,y.range=v.range??y.range,y.step=v.step??y.step,y.multiplier=v.multiplier??y.multiplier):x.clock={interval:v.interval,currentTime:v.currentTime,range:v.range,step:v.step,multiplier:v.multiplier}}}function EKi(o,f,m,x){let v=f.ellipse;if(!N(v))return;let y=T0(v.interval),C=o.ellipse;N(C)||(o.ellipse=C=new Kce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Number,C,"semiMajorAxis",v.semiMajorAxis,y,x,m),Zi(Number,C,"semiMinorAxis",v.semiMinorAxis,y,x,m),Zi(Number,C,"height",v.height,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Number,C,"extrudedHeight",v.extrudedHeight,y,x,m),Zi(qn,C,"extrudedHeightReference",v.extrudedHeightReference,y,x,m),Zi(NM,C,"rotation",v.rotation,y,x,m),Zi(NM,C,"stRotation",v.stRotation,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Number,C,"numberOfVerticalLines",v.numberOfVerticalLines,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m)}function AKi(o,f,m,x){let v=f.ellipsoid;if(!N(v))return;let y=T0(v.interval),C=o.ellipsoid;N(C)||(o.ellipsoid=C=new fW),Zi(Boolean,C,"show",v.show,y,x,m),Zi(V,C,"radii",v.radii,y,x,m),Zi(V,C,"innerRadii",v.innerRadii,y,x,m),Zi(Number,C,"minimumClock",v.minimumClock,y,x,m),Zi(Number,C,"maximumClock",v.maximumClock,y,x,m),Zi(Number,C,"minimumCone",v.minimumCone,y,x,m),Zi(Number,C,"maximumCone",v.maximumCone,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Number,C,"stackPartitions",v.stackPartitions,y,x,m),Zi(Number,C,"slicePartitions",v.slicePartitions,y,x,m),Zi(Number,C,"subdivisions",v.subdivisions,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function SKi(o,f,m,x){let v=f.label;if(!N(v))return;let y=T0(v.interval),C=o.label;N(C)||(o.label=C=new pW),Zi(Boolean,C,"show",v.show,y,x,m),Zi(String,C,"text",v.text,y,x,m),Zi(String,C,"font",v.font,y,x,m),Zi($f,C,"style",v.style,y,x,m),Zi(Number,C,"scale",v.scale,y,x,m),Zi(Boolean,C,"showBackground",v.showBackground,y,x,m),Zi(ze,C,"backgroundColor",v.backgroundColor,y,x,m),Zi(at,C,"backgroundPadding",v.backgroundPadding,y,x,m),Zi(at,C,"pixelOffset",v.pixelOffset,y,x,m),Zi(V,C,"eyeOffset",v.eyeOffset,y,x,m),Zi(Mc,C,"horizontalOrigin",v.horizontalOrigin,y,x,m),Zi(co,C,"verticalOrigin",v.verticalOrigin,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(ze,C,"fillColor",v.fillColor,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(fa,C,"translucencyByDistance",v.translucencyByDistance,y,x,m),Zi(fa,C,"pixelOffsetScaleByDistance",v.pixelOffsetScaleByDistance,y,x,m),Zi(fa,C,"scaleByDistance",v.scaleByDistance,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Number,C,"disableDepthTestDistance",v.disableDepthTestDistance,y,x,m)}function PKi(o,f,m,x){let v=f.model;if(!N(v))return;let y=T0(v.interval),C=o.model;N(C)||(o.model=C=new _Q),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Rfe.default,C,"uri",v.gltf,y,x,m),Zi(Number,C,"scale",v.scale,y,x,m),Zi(Number,C,"minimumPixelSize",v.minimumPixelSize,y,x,m),Zi(Number,C,"maximumScale",v.maximumScale,y,x,m),Zi(Boolean,C,"incrementallyLoadTextures",v.incrementallyLoadTextures,y,x,m),Zi(Boolean,C,"runAnimations",v.runAnimations,y,x,m),Zi(Boolean,C,"clampAnimations",v.clampAnimations,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(ze,C,"silhouetteColor",v.silhouetteColor,y,x,m),Zi(Number,C,"silhouetteSize",v.silhouetteSize,y,x,m),Zi(ze,C,"color",v.color,y,x,m),Zi(IM,C,"colorBlendMode",v.colorBlendMode,y,x,m),Zi(Number,C,"colorBlendAmount",v.colorBlendAmount,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m);let w,T,E=v.nodeTransformations;if(N(E))if(Array.isArray(E))for(w=0,T=E.length;w<T;++w)rit(C,E[w],y,x,m);else rit(C,E,y,x,m);let A=v.articulations;if(N(A))if(Array.isArray(A))for(w=0,T=A.length;w<T;++w)nit(C,A[w],y,x,m);else nit(C,A,y,x,m)}function rit(o,f,m,x,v){let y=T0(f.interval);N(m)&&(N(y)?y=Rl.intersect(y,m,UU):y=m);let C=o.nodeTransformations,w=Object.keys(f);for(let T=0,E=w.length;T<E;++T){let A=w[T];if(A==="interval")continue;let S=f[A];if(!N(S))continue;N(C)||(o.nodeTransformations=C=new tP),C.hasProperty(A)||C.addProperty(A);let M=C[A];N(M)||(C[A]=M=new $ce),Zi(V,M,"translation",S.translation,y,x,v),Zi(Er,M,"rotation",S.rotation,y,x,v),Zi(V,M,"scale",S.scale,y,x,v)}}function nit(o,f,m,x,v){let y=T0(f.interval);N(m)&&(N(y)?y=Rl.intersect(y,m,UU):y=m);let C=o.articulations,w=Object.keys(f);for(let T=0,E=w.length;T<E;++T){let A=w[T];if(A==="interval")continue;let S=f[A];N(S)&&(N(C)||(o.articulations=C=new tP),C.hasProperty(A)||C.addProperty(A),Zi(Number,C,A,S,y,x,v))}}function IKi(o,f,m,x){let v=f.path;if(!N(v))return;let y=T0(v.interval),C=o.path;N(C)||(o.path=C=new vQ),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Number,C,"leadTime",v.leadTime,y,x,m),Zi(Number,C,"trailTime",v.trailTime,y,x,m),Zi(Number,C,"width",v.width,y,x,m),Zi(Number,C,"resolution",v.resolution,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function MKi(o,f,m,x){let v=f.point;if(!N(v))return;let y=T0(v.interval),C=o.point;N(C)||(o.point=C=new Qce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Number,C,"pixelSize",v.pixelSize,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(ze,C,"color",v.color,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(fa,C,"scaleByDistance",v.scaleByDistance,y,x,m),Zi(fa,C,"translucencyByDistance",v.translucencyByDistance,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Number,C,"disableDepthTestDistance",v.disableDepthTestDistance,y,x,m)}function IJ(o){this.polygon=o,this._definitionChanged=new Or}Object.defineProperties(IJ.prototype,{isConstant:{get:function(){let o=this.polygon._positions,f=this.polygon._holes;return(!N(o)||o.isConstant)&&(!N(f)||f.isConstant)}},definitionChanged:{get:function(){return this._definitionChanged}}});IJ.prototype.getValue=function(o,f){let m;N(this.polygon._positions)&&(m=this.polygon._positions.getValue(o));let x;return N(this.polygon._holes)&&(x=this.polygon._holes.getValue(o),N(x)&&(x=x.map(function(v){return new to(v)}))),N(f)?(f.positions=m,f.holes=x,f):new to(m,x)};IJ.prototype.equals=function(o){return this===o||o instanceof IJ&&Ut.equals(this.polygon._positions,o.polygon._positions)&&Ut.equals(this.polygon._holes,o.polygon._holes)};function DKi(o,f,m,x){let v=f.polygon;if(!N(v))return;let y=T0(v.interval),C=o.polygon;N(C)||(o.polygon=C=new eu),Zi(Boolean,C,"show",v.show,y,x,m),ZZ(C,"_positions",v.positions,m),xKi(C,"_holes",v.holes,m),(N(C._positions)||N(C._holes))&&(C.hierarchy=new IJ(C)),Zi(Number,C,"height",v.height,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Number,C,"extrudedHeight",v.extrudedHeight,y,x,m),Zi(qn,C,"extrudedHeightReference",v.extrudedHeightReference,y,x,m),Zi(NM,C,"stRotation",v.stRotation,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Boolean,C,"perPositionHeight",v.perPositionHeight,y,x,m),Zi(Boolean,C,"closeTop",v.closeTop,y,x,m),Zi(Boolean,C,"closeBottom",v.closeBottom,y,x,m),Zi(xs,C,"arcType",v.arcType,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m)}function RKi(o){return o?xs.GEODESIC:xs.NONE}function LKi(o,f,m,x){let v=f.polyline;if(!N(v))return;let y=T0(v.interval),C=o.polyline;if(N(C)||(o.polyline=C=new CM),Zi(Boolean,C,"show",v.show,y,x,m),ZZ(C,"positions",v.positions,m),Zi(Number,C,"width",v.width,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Ow(C,"material",v.material,y,x,m),Ow(C,"depthFailMaterial",v.depthFailMaterial,y,x,m),Zi(xs,C,"arcType",v.arcType,y,x,m),Zi(Boolean,C,"clampToGround",v.clampToGround,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m),N(v.followSurface)&&!N(v.arcType)){let w={};Zi(Boolean,w,"followSurface",v.followSurface,y,x,m),C.arcType=$Xi(w.followSurface,RKi)}}function OKi(o,f,m,x){let v=f.polylineVolume;if(!N(v))return;let y=T0(v.interval),C=o.polylineVolume;N(C)||(o.polylineVolume=C=new Zce),ZZ(C,"positions",v.positions,m),gKi(C,"shape",v.shape,m),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Fd,C,"cornerType",v.cornerType,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function NKi(o,f,m,x){let v=f.rectangle;if(!N(v))return;let y=T0(v.interval),C=o.rectangle;N(C)||(o.rectangle=C=new mW),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Si,C,"coordinates",v.coordinates,y,x,m),Zi(Number,C,"height",v.height,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Number,C,"extrudedHeight",v.extrudedHeight,y,x,m),Zi(qn,C,"extrudedHeightReference",v.extrudedHeightReference,y,x,m),Zi(NM,C,"rotation",v.rotation,y,x,m),Zi(NM,C,"stRotation",v.stRotation,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m)}function FKi(o,f,m,x){let v=f.tileset;if(!N(v))return;let y=T0(v.interval),C=o.tileset;N(C)||(o.tileset=C=new Jce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Rfe.default,C,"uri",v.uri,y,x,m),Zi(Number,C,"maximumScreenSpaceError",v.maximumScreenSpaceError,y,x,m)}function BKi(o,f,m,x){let v=f.wall;if(!N(v))return;let y=T0(v.interval),C=o.wall;N(C)||(o.wall=C=new yQ),Zi(Boolean,C,"show",v.show,y,x,m),ZZ(C,"positions",v.positions,m),eit(C,"minimumHeights",v.minimumHeights,m),eit(C,"maximumHeights",v.maximumHeights,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function oit(o,f,m,x,v){let y=o.id;if(N(y)||(y=Hu()),bAe=y,!N(v._version)&&y!=="document")throw new Xi("The first CZML packet is required to be the document object.");if(o.delete===!0)f.removeById(y);else if(y==="document")TKi(o,v);else{let C=f.getOrCreateEntity(y),w=o.parent;N(w)&&(C.parent=f.getOrCreateEntity(w));for(let T=m.length-1;T>-1;T--)m[T](C,o,f,x)}bAe=void 0}function kKi(o){let f,m=o._documentPacket.clock;if(!N(m)){if(!N(o._clock)){let v=o._entityCollection.computeAvailability();if(!v.start.equals(kn.MINIMUM_VALUE)){let y=v.start,C=v.stop,w=si.secondsDifference(C,y),T=Math.round(w/120);return f=new sz,f.startTime=si.clone(y),f.stopTime=si.clone(C),f.clockRange=Pg.LOOP_STOP,f.multiplier=T,f.currentTime=si.clone(y),f.clockStep=Ef.SYSTEM_CLOCK_MULTIPLIER,o._clock=f,!0}}return!1}N(o._clock)?f=o._clock.clone():(f=new sz,f.startTime=kn.MINIMUM_VALUE.clone(),f.stopTime=kn.MAXIMUM_VALUE.clone(),f.currentTime=kn.MINIMUM_VALUE.clone(),f.clockRange=Pg.LOOP_STOP,f.clockStep=Ef.SYSTEM_CLOCK_MULTIPLIER,f.multiplier=1);let x=T0(m.interval);return N(x)&&(f.startTime=x.start,f.stopTime=x.stop),N(m.currentTime)&&(f.currentTime=si.fromIso8601(m.currentTime)),N(m.range)&&(f.clockRange=Pg[m.range]??Pg.LOOP_STOP),N(m.step)&&(f.clockStep=Ef[m.step]??Ef.SYSTEM_CLOCK_MULTIPLIER),N(m.multiplier)&&(f.multiplier=m.multiplier),f.equals(o._clock)?!1:(o._clock=f.clone(o._clock),!0)}function iyt(o,f,m,x){m=m??pi.EMPTY_OBJECT;let v=f,y=m.sourceUri,C=m.credit;if(typeof C=="string"&&(C=new rs(C)),o._credit=C,typeof f=="string"||f instanceof Wr){f=Wr.createIfNeeded(f),v=f.fetchJson(),y=y??f.clone();let w=o._resourceCredits,T=f.credits;if(N(T)){let E=T.length;for(let A=0;A<E;A++)w.push(T[A])}}return y=Wr.createIfNeeded(y),Tv.setLoading(o,!0),Promise.resolve(v).then(function(w){return VKi(o,w,y,x)}).catch(function(w){return Tv.setLoading(o,!1),o._error.raiseEvent(o,w),console.log(w),Promise.reject(w)})}function VKi(o,f,m,x){Tv.setLoading(o,!0);let v=o._entityCollection;x&&(o._version=void 0,o._documentPacket=new ryt,v.removeAll()),Ym._processCzml(f,v,m,void 0,o);let y=kKi(o),C=o._documentPacket;return N(C.name)&&o._name!==C.name?(o._name=C.name,y=!0):!N(o._name)&&N(m)&&(o._name=bQ(m.getUrlComponent()),y=!0),Tv.setLoading(o,!1),y&&o._changed.raiseEvent(o),o}function ryt(){this.name=void 0,this.clock=void 0}function Ym(o){this._name=o,this._changed=new Or,this._error=new Or,this._isLoading=!1,this._loading=new Or,this._clock=void 0,this._documentPacket=new ryt,this._version=void 0,this._entityCollection=new GE(this),this._entityCluster=new R5,this._credit=void 0,this._resourceCredits=[]}Ym.load=function(o,f){return new Ym().load(o,f)};Object.defineProperties(Ym.prototype,{name:{get:function(){return this._name}},clock:{get:function(){return this._clock}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(o){this._entityCollection.show=o}},clustering:{get:function(){return this._entityCluster},set:function(o){this._entityCluster=o}},credit:{get:function(){return this._credit}}});Ym.updaters=[yKi,CKi,bKi,wKi,EKi,AKi,SKi,PKi,sKi,lKi,IKi,MKi,DKi,LKi,OKi,dKi,NKi,uKi,FKi,cKi,BKi,hKi,_Ki];Ym.registerUpdater=function(o){Ym.updaters.includes(o)||Ym.updaters.push(o)};Ym.unregisterUpdater=function(o){if(Ym.updaters.includes(o)){let f=Ym.updaters.indexOf(o);Ym.updaters.splice(f,1)}};Ym.prototype.process=function(o,f){return iyt(this,o,f,!1)};Ym.prototype.load=function(o,f){return iyt(this,o,f,!0)};Ym.prototype.update=function(o){return!0};Ym.processPacketData=Zi;Ym.processPositionPacketData=tyt;Ym.processMaterialPacketData=Ow;Ym._processCzml=function(o,f,m,x,v){if(x=x??Ym.updaters,Array.isArray(o))for(let y=0,C=o.length;y<C;++y)oit(o[y],f,x,m,v);else oit(o,f,x,m,v)};var eee=Ym,wAe=32,zKi="http://www.opengis.net/kml/2.2",VS="http://www.google.com/kml/ext/2.2",UKi="http://www.w3.org/2000/xmlns/";function Nfe(o){this._files={},this._promises=[],this._count=0,this._modelCallback=o}var HKi=/^data:image\/([^,;]+)/;Nfe.prototype.texture=function(o){let f=this,m;if(typeof o=="string"||o instanceof Wr){if(o=Wr.createIfNeeded(o),!o.isDataUri)return o.url;let x=o.url.match(HKi);m=`texture_${++this._count}`,N(x)&&(m+=`.${x[1]}`);let v=o.fetchBlob().then(function(y){f._files[m]=y});return this._promises.push(v),m}if(o instanceof HTMLCanvasElement){m=`texture_${++this._count}.png`;let x=new Promise(v=>{o.toBlob(function(y){f._files[m]=y,v()})});return this._promises.push(x),m}return""};function GKi(o,f){return function(m){o._files[f]=m}}Nfe.prototype.model=function(o,f){let m=this._modelCallback;if(!N(m))throw new Xi("Encountered a model entity while exporting to KML, but no model callback was supplied.");let x={},v=m(o,f,x);for(let y in x)if(x.hasOwnProperty(y)){let C=Promise.resolve(x[y]);this._promises.push(C),C.then(GKi(this,y))}return v};Object.defineProperties(Nfe.prototype,{promise:{get:function(){return Promise.all(this._promises)}},files:{get:function(){return this._files}}});function Ffe(o){this._time=o}Ffe.prototype.get=function(o,f,m){let x;return N(o)&&(x=N(o.getValue)?o.getValue(this._time,m):o),x??f};Ffe.prototype.getColor=function(o,f){let m=this.get(o,f);if(N(m))return CV(m)};Ffe.prototype.getMaterialType=function(o){if(N(o))return o.getType(this._time)};function I4e(){this._ids={},this._styles={},this._count=0}I4e.prototype.get=function(o){let f=this._ids,m=o.innerHTML;if(N(f[m]))return f[m];let x=`style-${++this._count}`;return o.setAttribute("id",x),x=`#${x}`,f[m]=x,this._styles[m]=o,x};I4e.prototype.save=function(o){let f=this._styles,m=o.childNodes[0];for(let x in f)f.hasOwnProperty(x)&&o.insertBefore(f[x],m)};function nyt(){this._ids={}}nyt.prototype.get=function(o){if(!N(o))return this.get(Hu());let f=this._ids;return N(f[o])?`${o.toString()}-${++f[o]}`:(f[o]=0,o)};function M4e(o){o=o??pi.EMPTY_OBJECT;let f=o.entities,m=o.kmz??!1,x=M4e._createState(o),v=f.values.filter(function(E){return!N(E.parent)}),y=x.kmlDoc,C=y.documentElement;C.setAttributeNS(UKi,"xmlns:gx",VS);let w=y.createElement("Document");C.appendChild(w),ayt(x,w,v),x.styleCache.save(w);let T=x.externalFileHandler;return T.promise.then(function(){let E=new XMLSerializer().serializeToString(x.kmlDoc);return m?WKi(E,T.files):{kml:E,externalFiles:T.files}})}function WKi(o,f){let m=va("ThirdParty/Workers/z-worker-pako.js");KDe({workerScripts:{deflate:[m,"./pako_deflate.min.js"],inflate:[m,"./pako_inflate.min.js"]}});let x=new vct,v=new wci(x);return v.add("doc.kml",new Gui(o)).then(function(){let y=Object.keys(f);return oyt(v,y,f,0)}).then(function(){return v.close()}).then(function(y){return{kmz:y}})}function oyt(o,f,m,x){if(f.length===x)return;let v=f[x];return o.add(v,new uhe(m[v])).then(function(){return oyt(o,f,m,x+1)})}M4e._createState=function(o){let f=o.entities,m=new I4e,x=f.computeAvailability(),v=N(o.time)?o.time:x.start,y=o.defaultAvailability??x,C=o.sampleDuration??60;y.start===kn.MINIMUM_VALUE?y.stop===kn.MAXIMUM_VALUE?y=new Rl:si.addSeconds(y.stop,-10*C,y.start):y.stop===kn.MAXIMUM_VALUE&&si.addSeconds(y.start,10*C,y.stop);let w=new Nfe(o.modelCallback);return{kmlDoc:document.implementation.createDocument(zKi,"kml"),ellipsoid:o.ellipsoid??Ei.default,idManager:new nyt,styleCache:m,externalFileHandler:w,time:v,valueGetter:new Ffe(v),sampleDuration:C,defaultAvailability:new ky([y])}};function ayt(o,f,m){let x=o.kmlDoc,v=o.styleCache,y=o.valueGetter,C=o.idManager,w=m.length,T,E,A;for(let S=0;S<w;++S){let M=m[S];T=[],E=[],A=[],jKi(o,M,E,A),qKi(o,M.polyline,E,A),sit(o,M.rectangle,E,A,T),sit(o,M.polygon,E,A,T),$Ki(o,M,M.model,E,A);let I,P=M.availability;N(P)&&(I=x.createElement("TimeSpan"),si.equals(P.start,kn.MINIMUM_VALUE)||I.appendChild(os(x,"begin",si.toIso8601(P.start))),si.equals(P.stop,kn.MAXIMUM_VALUE)||I.appendChild(os(x,"end",si.toIso8601(P.stop))));for(let L=0;L<T.length;++L){let O=T[L];O.setAttribute("id",C.get(M.id)),O.appendChild(os(x,"name",M.name)),O.appendChild(os(x,"visibility",M.show)),O.appendChild(os(x,"description",M.description)),N(I)&&O.appendChild(I),f.appendChild(O)}let D=E.length;if(D>0){let L=x.createElement("Placemark");L.setAttribute("id",C.get(M.id));let O=M.name,F=M.label;if(N(F)){let H=x.createElement("LabelStyle"),G=y.get(F.text);O=N(G)&&G.length>0?G:O;let W=y.getColor(F.fillColor);N(W)&&(H.appendChild(os(x,"color",W)),H.appendChild(os(x,"colorMode","normal")));let Y=y.get(F.scale);N(Y)&&H.appendChild(os(x,"scale",Y)),A.push(H)}L.appendChild(os(x,"name",O)),L.appendChild(os(x,"visibility",M.show)),L.appendChild(os(x,"description",M.description)),N(I)&&L.appendChild(I),f.appendChild(L);let B=A.length;if(B>0){let H=x.createElement("Style");for(let G=0;G<B;++G)H.appendChild(A[G]);L.appendChild(os(x,"styleUrl",v.get(H)))}if(E.length===1)L.appendChild(E[0]);else if(E.length>1){let H=x.createElement("MultiGeometry");for(let G=0;G<D;++G)H.appendChild(E[G]);L.appendChild(H)}}let R=M._children;if(R.length>0){let L=x.createElement("Folder");L.setAttribute("id",C.get(M.id)),L.appendChild(os(x,"name",M.name)),L.appendChild(os(x,"visibility",M.show)),L.appendChild(os(x,"description",M.description)),f.appendChild(L),ayt(o,L,R)}}}var Eb=new V,Q2=new kt,ES=new si;function jKi(o,f,m,x){let v=o.kmlDoc,y=o.ellipsoid,C=o.valueGetter,w=f.billboard??f.point;if(!N(w)&&!N(f.path))return;let T=f.position;if(!T.isConstant){syt(o,f,w,m,x);return}C.get(T,void 0,Eb);let E=os(v,"coordinates",yV(Eb,y)),A=v.createElement("Point"),S=v.createElement("altitudeMode");S.appendChild(WV(o,w.heightReference)),A.appendChild(S),A.appendChild(E),m.push(A);let M=w instanceof u3?uyt(o,w):lyt(o,w);x.push(M)}function syt(o,f,m,x,v){let y=o.kmlDoc,C=o.ellipsoid,w=o.valueGetter,T,E=f.position,A=!0;E instanceof dw?(T=E.intervals,A=!1):T=f.availability??o.defaultAvailability;let S=m instanceof _Q,M,I,P,D=[];for(M=0;M<T.length;++M){let L=T.get(M),O=A?E:L.data,F=y.createElement("altitudeMode");O instanceof vW?(O=O._value,F.appendChild(WV(o,qn.CLAMP_TO_GROUND))):N(m)?F.appendChild(WV(o,m.heightReference)):F.appendChild(WV(o,qn.NONE));let B=[],H=[];if(O.isConstant){w.get(O,void 0,Eb);let W=os(y,"coordinates",yV(Eb,C));B.push(si.toIso8601(L.start)),H.push(W),B.push(si.toIso8601(L.stop)),H.push(W)}else if(O instanceof aE)for(P=O._property._times,I=0;I<P.length;++I)B.push(si.toIso8601(P[I])),O.getValueInReferenceFrame(P[I],Q0.FIXED,Eb),H.push(yV(Eb,C));else if(O instanceof fL){P=O._times;let W=O._values;for(I=0;I<P.length;++I)B.push(si.toIso8601(P[I])),V.fromArray(W,I*3,Eb),H.push(yV(Eb,C))}else{let W=o.sampleDuration;L.start.clone(ES),L.isStartIncluded||si.addSeconds(ES,W,ES);let Y=L.stop;for(;si.lessThan(ES,Y);)O.getValue(ES,Eb),B.push(si.toIso8601(ES)),H.push(yV(Eb,C)),si.addSeconds(ES,W,ES);L.isStopIncluded&&si.equals(ES,Y)&&(O.getValue(ES,Eb),B.push(si.toIso8601(ES)),H.push(yV(Eb,C)))}let G=y.createElementNS(VS,"Track");G.appendChild(F);for(let W=0;W<B.length;++W){let Y=os(y,"when",B[W]),K=os(y,"coord",H[W],VS);G.appendChild(Y),G.appendChild(K)}S&&G.appendChild(cyt(o,m)),D.push(G)}if(D.length===1)x.push(D[0]);else if(D.length>1){let L=y.createElementNS(VS,"MultiTrack");for(M=0;M<D.length;++M)L.appendChild(D[M]);x.push(L)}if(N(m)&&!S){let L=m instanceof u3?uyt(o,m):lyt(o,m);v.push(L)}let R=f.path;if(N(R)){let L=w.get(R.width),O=R.material;if(N(O)||N(L)){let F=y.createElement("LineStyle");N(L)&&F.appendChild(os(y,"width",L)),D4e(o,O,F),v.push(F)}}}function lyt(o,f){let m=o.kmlDoc,x=o.valueGetter,v=m.createElement("IconStyle"),y=x.getColor(f.color);N(y)&&(v.appendChild(os(m,"color",y)),v.appendChild(os(m,"colorMode","normal")));let C=x.get(f.pixelSize);return N(C)&&v.appendChild(os(m,"scale",C/wAe)),v}function uyt(o,f){let m=o.kmlDoc,x=o.valueGetter,v=o.externalFileHandler,y=m.createElement("IconStyle"),C=x.get(f.image);if(N(C)){C=v.texture(C);let M=m.createElement("Icon");M.appendChild(os(m,"href",C));let I=x.get(f.imageSubRegion);N(I)&&(M.appendChild(os(m,"x",I.x,VS)),M.appendChild(os(m,"y",I.y,VS)),M.appendChild(os(m,"w",I.width,VS)),M.appendChild(os(m,"h",I.height,VS))),y.appendChild(M)}let w=x.getColor(f.color);N(w)&&(y.appendChild(os(m,"color",w)),y.appendChild(os(m,"colorMode","normal")));let T=x.get(f.scale);N(T)&&y.appendChild(os(m,"scale",T));let E=x.get(f.pixelOffset);if(N(E)){T=T??1,at.divideByScalar(E,T,E);let M=x.get(f.width,wAe),I=x.get(f.height,wAe),P=x.get(f.horizontalOrigin,Mc.CENTER);P===Mc.CENTER?E.x-=M*.5:P===Mc.RIGHT&&(E.x-=M);let D=x.get(f.verticalOrigin,co.CENTER);D===co.TOP?E.y+=I:D===co.CENTER&&(E.y+=I*.5);let R=m.createElement("hotSpot");R.setAttribute("x",-E.x),R.setAttribute("y",E.y),R.setAttribute("xunits","pixels"),R.setAttribute("yunits","pixels"),y.appendChild(R)}let A=x.get(f.rotation),S=x.get(f.alignedAxis);return N(A)&&V.equals(V.UNIT_Z,S)&&(A=Ce.toDegrees(-A),A===0&&(A=360),y.appendChild(os(m,"heading",A))),y}function qKi(o,f,m,x){let v=o.kmlDoc,y=o.ellipsoid,C=o.valueGetter;if(!N(f))return;let w=v.createElement("LineString"),T=v.createElement("altitudeMode"),E=C.get(f.clampToGround,!1),A;E?(w.appendChild(os(v,"tessellate",!0)),A=v.createTextNode("clampToGround")):A=v.createTextNode("absolute"),T.appendChild(A),w.appendChild(T);let S=f.positions,M=C.get(S),I=os(v,"coordinates",yV(M,y));w.appendChild(I);let P=C.get(f.zIndex);E&&N(P)&&w.appendChild(os(v,"drawOrder",P,VS)),m.push(w);let D=v.createElement("LineStyle"),R=C.get(f.width);N(R)&&D.appendChild(os(v,"width",R)),D4e(o,f.material,D),x.push(D)}function YKi(o,f,m){let x=o.kmlDoc,v=o.valueGetter,y=v.get(f.height,0);m>0&&(y=m);let C=f.coordinates,w=v.get(C),T=[],E=[Si.northeast,Si.southeast,Si.southwest,Si.northwest];for(let I=0;I<4;++I)E[I](w,Q2),T.push(`${Ce.toDegrees(Q2.longitude)},${Ce.toDegrees(Q2.latitude)},${y}`);let A=os(x,"coordinates",T.join(" ")),S=x.createElement("outerBoundaryIs"),M=x.createElement("LinearRing");return M.appendChild(A),S.appendChild(M),[S]}function ait(o,f,m,x){let v=o.kmlDoc,y=o.ellipsoid,C=[],w=f.length;for(let A=0;A<w;++A)kt.fromCartesian(f[A],y,Q2),C.push(`${Ce.toDegrees(Q2.longitude)},${Ce.toDegrees(Q2.latitude)},${x?Q2.height:m}`);let T=os(v,"coordinates",C.join(" ")),E=v.createElement("LinearRing");return E.appendChild(T),E}function XKi(o,f,m){let x=o.kmlDoc,v=o.valueGetter,y=v.get(f.height,0),C=v.get(f.perPositionHeight,!1);!C&&m>0&&(y=m);let w=[],T=f.hierarchy,E=v.get(T),A=Array.isArray(E)?E:E.positions,S=x.createElement("outerBoundaryIs");S.appendChild(ait(o,A,y,C)),w.push(S);let M=E.holes;if(N(M)){let I=M.length;for(let P=0;P<I;++P){let D=x.createElement("innerBoundaryIs");D.appendChild(ait(o,M[P].positions,y,C)),w.push(D)}}return w}function sit(o,f,m,x,v){let y=o.kmlDoc,C=o.valueGetter;if(!N(f))return;let w=f instanceof mW;if(w&&C.getMaterialType(f.material)==="Image"){KKi(o,f,v);return}let T=y.createElement("Polygon"),E=C.get(f.extrudedHeight,0);E>0&&T.appendChild(os(y,"extrude",!0));let A=w?YKi(o,f,E):XKi(o,f,E),S=A.length;for(let R=0;R<S;++R)T.appendChild(A[R]);let M=y.createElement("altitudeMode");M.appendChild(WV(o,f.heightReference)),T.appendChild(M),m.push(T);let I=y.createElement("PolyStyle"),P=C.get(f.fill,!1);P&&I.appendChild(os(y,"fill",P)),D4e(o,f.material,I);let D=C.get(f.outline,!1);if(D){I.appendChild(os(y,"outline",D));let R=y.createElement("LineStyle"),L=C.get(f.outlineWidth,1);R.appendChild(os(y,"width",L));let O=C.getColor(f.outlineColor,ze.BLACK);R.appendChild(os(y,"color",O)),R.appendChild(os(y,"colorMode","normal")),x.push(R)}x.push(I)}function KKi(o,f,m){let x=o.kmlDoc,v=o.valueGetter,y=o.externalFileHandler,C=x.createElement("GroundOverlay"),w=x.createElement("altitudeMode");w.appendChild(WV(o,f.heightReference)),C.appendChild(w);let T=v.get(f.height);N(T)&&C.appendChild(os(x,"altitude",T));let E=v.get(f.coordinates),A=x.createElement("LatLonBox");A.appendChild(os(x,"north",Ce.toDegrees(E.north))),A.appendChild(os(x,"south",Ce.toDegrees(E.south))),A.appendChild(os(x,"east",Ce.toDegrees(E.east))),A.appendChild(os(x,"west",Ce.toDegrees(E.west))),C.appendChild(A);let S=v.get(f.material),M=y.texture(S.image),I=x.createElement("Icon");I.appendChild(os(x,"href",M)),C.appendChild(I);let P=S.color;N(P)&&C.appendChild(os(x,"color",CV(S.color))),m.push(C)}function cyt(o,f){let m=o.kmlDoc,x=o.valueGetter,v=o.externalFileHandler,y=m.createElement("Model"),C=x.get(f.scale);if(N(C)){let E=m.createElement("scale");E.appendChild(os(m,"x",C)),E.appendChild(os(m,"y",C)),E.appendChild(os(m,"z",C)),y.appendChild(E)}let w=m.createElement("Link"),T=v.model(f,o.time);return w.appendChild(os(m,"href",T)),y.appendChild(w),y}function $Ki(o,f,m,x,v){let y=o.kmlDoc,C=o.ellipsoid,w=o.valueGetter;if(!N(m))return;let T=f.position;if(!T.isConstant){syt(o,f,m,x,v);return}let E=cyt(o,m),A=y.createElement("altitudeMode");A.appendChild(WV(o,m.heightReference)),E.appendChild(A),w.get(T,void 0,Eb),kt.fromCartesian(Eb,C,Q2);let S=y.createElement("Location");S.appendChild(os(y,"longitude",Ce.toDegrees(Q2.longitude))),S.appendChild(os(y,"latitude",Ce.toDegrees(Q2.latitude))),S.appendChild(os(y,"altitude",Q2.height)),E.appendChild(S),x.push(E)}function D4e(o,f,m){let x=o.kmlDoc,v=o.valueGetter;if(!N(f))return;let y=v.get(f);if(!N(y))return;let C,w=v.getMaterialType(f),T,E;switch(w){case"Image":C=CV(ze.WHITE);break;case"Color":case"Grid":case"PolylineGlow":case"PolylineArrow":case"PolylineDash":C=CV(y.color);break;case"PolylineOutline":C=CV(y.color),T=CV(y.outlineColor),E=y.outlineWidth,m.appendChild(os(x,"outerColor",T,VS)),m.appendChild(os(x,"outerWidth",E,VS));break;case"Stripe":C=CV(y.oddColor);break}N(C)&&(m.appendChild(os(x,"color",C)),m.appendChild(os(x,"colorMode","normal")))}function WV(o,f){let m=o.kmlDoc,x=o.valueGetter.get(f,qn.NONE),v;switch(x){case qn.NONE:v=m.createTextNode("absolute");break;case qn.CLAMP_TO_GROUND:v=m.createTextNode("clampToGround");break;case qn.RELATIVE_TO_GROUND:v=m.createTextNode("relativeToGround");break}return v}function yV(o,f){Array.isArray(o)||(o=[o]);let m=o.length,x=[];for(let v=0;v<m;++v)kt.fromCartesian(o[v],f,Q2),x.push(`${Ce.toDegrees(Q2.longitude)},${Ce.toDegrees(Q2.latitude)},${Q2.height}`);return x.join(" ")}function os(o,f,m,x){m=m??"",typeof m=="boolean"&&(m=m?"1":"0");let v=N(x)?o.createElementNS(x,f):o.createElement(f),y=m==="string"&&m.indexOf("<")!==-1?o.createCDATASection(m):o.createTextNode(m);return v.appendChild(y),v}function CV(o){let f="",m=o.toBytes();for(let x=3;x>=0;--x)f+=m[x]<16?`0${m[x].toString(16)}`:m[x].toString(16);return f}var hyt=M4e,dyt;typeof DOMParser<"u"&&(dyt=new DOMParser);var JKi=new zut({stripPrefix:!1,email:!1,replaceFn:function(o,f){return f.urlMatchType==="scheme"||f.urlMatchType==="www"}}),Rue=32,lit=2414016,uit=1,cit=16093e3,hit=.1,QKi=[null,void 0,"http://www.topografix.com/GPX/1/1"],Bd={gpx:QKi};function ZKi(o){return new Promise((f,m)=>{let x=new FileReader;x.addEventListener("load",function(){f(x.result)}),x.addEventListener("error",function(){m(x.error)}),x.readAsText(o)})}function R4e(o,f){let m=MJ(o,"id");return m=N(m)?m:Hu(),f.getOrCreateEntity(m)}function L4e(o){let f=dit(o,"lon"),m=dit(o,"lat"),x=wK(o,"ele",Bd.gpx);return V.fromDegrees(f,m,x)}function dit(o,f){if(!N(o))return;let m=o.getAttribute(f);if(m!==null){let x=parseFloat(m);return isNaN(x)?void 0:x}}function MJ(o,f){if(!N(o))return;let m=o.getAttribute(f);return m!==null?m:void 0}function rB(o,f,m){if(!N(o))return;let x=o.childNodes,v=x.length;for(let y=0;y<v;y++){let C=x[y];if(C.localName===f&&m.indexOf(C.namespaceURI)!==-1)return C}}function O4e(o,f,m){if(!N(o))return;let x=[],v=o.getElementsByTagName(f),y=v.length;for(let C=0;C<y;C++){let w=v[C];w.localName===f&&m.indexOf(w.namespaceURI)!==-1&&x.push(w)}return x}function wK(o,f,m){let x=rB(o,f,m);if(N(x)){let v=parseFloat(x.textContent);return isNaN(v)?void 0:v}}function kb(o,f,m){let x=rB(o,f,m);if(N(x))return x.textContent.trim()}function fyt(o){let f=new u3;return f.width=Rue,f.height=Rue,f.scaleByDistance=new fa(lit,uit,cit,hit),f.pixelOffsetScaleByDistance=new fa(lit,uit,cit,hit),f.verticalOrigin=new Ch(co.BOTTOM),f.image=o,f}function e$i(){let o=new pW;return o.translucencyByDistance=new fa(3e6,1,5e6,0),o.pixelOffset=new at(17,0),o.horizontalOrigin=Mc.LEFT,o.font="16px sans-serif",o.style=$f.FILL_AND_OUTLINE,o}function pyt(o){let f=new CM;return f.width=4,f.material=new QL,f.material.color=N(o)?o:ze.RED,f.material.outlineWidth=2,f.material.outlineColor=ze.BLACK,f}var fit={time:{text:"Time",tag:"time"},comment:{text:"Comment",tag:"cmt"},description:{text:"Description",tag:"desc"},source:{text:"Source",tag:"src"},number:{text:"GPS track/route number",tag:"number"},type:{text:"Type",tag:"type"}},TK;typeof document<"u"&&(TK=document.createElement("div"));function N4e(o,f){let m,x="",v=Object.keys(fit),y=v.length;for(m=0;m<y;m++){let A=v[m],S=fit[A];S.value=kb(o,S.tag,Bd.gpx)??"",N(S.value)&&S.value!==""&&(x=`${x}<p>${S.text}: ${S.value}</p>`)}if(!N(x)||x==="")return;x=JKi.link(x),TK.innerHTML=x;let C=TK.querySelectorAll("a");for(m=0;m<C.length;m++)C[m].setAttribute("target","_blank");let w=ze.WHITE,T=ze.BLACK,E='<div class="cesium-infoBox-description-lighter" style="';return E+="overflow:auto;",E+="word-wrap:break-word;",E+=`background-color:${w.toCssColorString()};`,E+=`color:${T.toCssColorString()};`,E+='">',E+=`${TK.innerHTML}</div>`,TK.innerHTML="",E}function myt(o,f,m,x){let v=L4e(f),y=R4e(f,m);y.position=v;let C=N(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",ze.RED,Rue);y.billboard=fyt(C);let w=kb(f,"name",Bd.gpx);y.name=w,y.label=e$i(),y.label.text=w,y.description=N4e(f,y),x.clampToGround&&(y.billboard.heightReference=qn.CLAMP_TO_GROUND,y.label.heightReference=qn.CLAMP_TO_GROUND)}function t$i(o,f,m,x){let v=R4e(f,m);v.description=N4e(f,v);let y=O4e(f,"rtept",Bd.gpx),C=new Array(y.length);for(let w=0;w<y.length;w++)myt(o,y[w],m,x),C[w]=L4e(y[w]);v.polyline=pyt(x.routeColor),x.clampToGround&&(v.polyline.clampToGround=!0),v.polyline.positions=C}function i$i(o,f,m,x){let v=R4e(f,m);v.description=N4e(f,v);let y=O4e(f,"trkseg",Bd.gpx),C=[],w=[],T,E=!0,A=new aE;for(let S=0;S<y.length;S++)T=r$i(y[S]),C=C.concat(T.positions),T.times.length>0?(w=w.concat(T.times),A.addSamples(w,C),E=E&&!0):E=!1;if(E){let S=N(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",ze.RED,Rue);v.billboard=fyt(S),v.position=A,x.clampToGround&&(v.billboard.heightReference=qn.CLAMP_TO_GROUND),v.availability=new ky,v.availability.addInterval(new Rl({start:w[0],stop:w[w.length-1]}))}v.polyline=pyt(x.trackColor),v.polyline.positions=C,x.clampToGround&&(v.polyline.clampToGround=!0)}function r$i(o){let f={positions:[],times:[]},m=O4e(o,"trkpt",Bd.gpx),x;for(let v=0;v<m.length;v++){let y=L4e(m[v]);f.positions.push(y),x=kb(m[v],"time",Bd.gpx),N(x)&&f.times.push(si.fromIso8601(x))}return f}function n$i(o){let f=rB(o,"metadata",Bd.gpx);if(N(f)){let m={name:kb(f,"name",Bd.gpx),desc:kb(f,"desc",Bd.gpx),author:o$i(f),copyright:s$i(f),link:xyt(f),time:kb(f,"time",Bd.gpx),keywords:kb(f,"keywords",Bd.gpx),bounds:l$i(f)};if(N(m.name)||N(m.desc)||N(m.author)||N(m.copyright)||N(m.link)||N(m.time)||N(m.keywords)||N(m.bounds))return m}}function o$i(o){let f=rB(o,"author",Bd.gpx);if(N(f)){let m={name:kb(f,"name",Bd.gpx),email:a$i(f),link:xyt(f)};if(N(m.name)||N(m.email)||N(m.link))return m}}function a$i(o){let f=rB(o,"email",Bd.gpx);if(N(f)){let m=kb(f,"id",Bd.gpx),x=kb(f,"domain",Bd.gpx);return`${m}@${x}`}}function xyt(o){let f=rB(o,"link",Bd.gpx);if(N(f)){let m={href:MJ(f,"href"),text:kb(f,"text",Bd.gpx),mimeType:kb(f,"type",Bd.gpx)};if(N(m.href)||N(m.text)||N(m.mimeType))return m}}function s$i(o){let f=rB(o,"copyright",Bd.gpx);if(N(f)){let m={author:MJ(f,"author"),year:kb(f,"year",Bd.gpx),license:kb(f,"license",Bd.gpx)};if(N(m.author)||N(m.year)||N(m.license))return m}}function l$i(o){let f=rB(o,"bounds",Bd.gpx);if(N(f)){let m={minLat:wK(f,"minlat",Bd.gpx),maxLat:wK(f,"maxlat",Bd.gpx),minLon:wK(f,"minlon",Bd.gpx),maxLon:wK(f,"maxlon",Bd.gpx)};if(N(m.minLat)||N(m.maxLat)||N(m.minLon)||N(m.maxLon))return m}}var pit={wpt:myt,rte:t$i,trk:i$i};function u$i(o,f,m,x){let v=Object.keys(pit),y=v.length;for(let C=0;C<y;C++){let w=v[C],T=pit[w],E=f.childNodes,A=E.length;for(let S=0;S<A;S++){let M=E[S];M.localName===w&&Bd.gpx.indexOf(M.namespaceURI)!==-1&&T(o,M,m,x)}}}function mit(o,f,m){let x=o._entityCollection;x.removeAll();let v=f.documentElement,y=MJ(v,"version"),C=MJ(v,"creator"),w,T=n$i(v);N(T)&&(w=T.name),v.localName==="gpx"?u$i(o,v,x,m):console.log(`GPX - Unsupported node: ${v.localName}`);let E,A=x.computeAvailability(),S=A.start,M=A.stop,I=si.equals(S,kn.MINIMUM_VALUE),P=si.equals(M,kn.MAXIMUM_VALUE);if(!I||!P){let R;I&&(R=new Date,R.setHours(0,0,0,0),S=si.fromDate(R)),P&&(R=new Date,R.setHours(24,0,0,0),M=si.fromDate(R)),E=new sz,E.startTime=S,E.stopTime=M,E.currentTime=si.clone(S),E.clockRange=Pg.LOOP_STOP,E.clockStep=Ef.SYSTEM_CLOCK_MULTIPLIER,E.multiplier=Math.round(Math.min(Math.max(si.secondsDifference(M,S)/60,1),31556900))}let D=!1;return o._name!==w&&(o._name=w,D=!0),o._creator!==C&&(o._creator=C,D=!0),c$i(o._metadata,T)&&(o._metadata=T,D=!0),o._version!==y&&(o._version=y,D=!0),E!==o._clock&&(D=!0,o._clock=E),D&&o._changed.raiseEvent(o),Tv.setLoading(o,!1),o}function c$i(o,f){return!N(o)&&!N(f)?!1:N(o)&&N(f)?o.name!==f.name||o.dec!==f.desc||o.src!==f.src||o.author!==f.author||o.copyright!==f.copyright||o.link!==f.link||o.time!==f.time||o.bounds!==f.bounds:!0}function h$i(o,f,m,x){x=x??pi.EMPTY_OBJECT;let v=m;if(typeof m=="string"||m instanceof Wr){m=Wr.createIfNeeded(m),v=m.fetchBlob();let y=o._resourceCredits,C=m.credits;if(N(C)){let w=C.length;for(let T=0;T<w;T++)y.push(C[T])}}return Promise.resolve(v).then(function(y){return y instanceof Blob?ZKi(y).then(function(C){let w,T;try{w=dyt.parseFromString(C,"application/xml")}catch(E){T=E.toString()}if(N(T)||w.body||w.documentElement.tagName==="parsererror"){let E=N(T)?T:w.documentElement.firstChild.nodeValue;throw E||(E=w.body.innerText),new Xi(E)}return mit(o,w,x)}):mit(o,y,x)}).catch(function(y){return o._error.raiseEvent(o,y),console.log(y),Promise.reject(y)})}function F9(){this._changed=new Or,this._error=new Or,this._loading=new Or,this._clock=void 0,this._entityCollection=new GE(this),this._entityCluster=new R5,this._name=void 0,this._version=void 0,this._creator=void 0,this._metadata=void 0,this._isLoading=!1,this._pinBuilder=new wQ}F9.load=function(o,f){return new F9().load(o,f)};Object.defineProperties(F9.prototype,{name:{get:function(){return this._name}},version:{get:function(){return this._version}},creator:{get:function(){return this._creator}},metadata:{get:function(){return this._metadata}},clock:{get:function(){return this._clock}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(o){this._entityCollection.show=o}},clustering:{get:function(){return this._entityCluster},set:function(o){this._entityCluster=o}}});F9.prototype.update=function(o){return!0};F9.prototype.load=function(o,f){if(!N(o))throw new At("data is required.");f=f??pi.EMPTY_OBJECT,Tv.setLoading(this,!0);let m=this._name,x=this;return h$i(this,this._entityCollection,o,f).then(function(){let v,y=x._entityCollection.computeAvailability(),C=y.start,w=y.stop,T=si.equals(C,kn.MINIMUM_VALUE),E=si.equals(w,kn.MAXIMUM_VALUE);if(!T||!E){let S;T&&(S=new Date,S.setHours(0,0,0,0),C=si.fromDate(S)),E&&(S=new Date,S.setHours(24,0,0,0),w=si.fromDate(S)),v=new sz,v.startTime=C,v.stopTime=w,v.currentTime=si.clone(C),v.clockRange=Pg.LOOP_STOP,v.clockStep=Ef.SYSTEM_CLOCK_MULTIPLIER,v.multiplier=Math.round(Math.min(Math.max(si.secondsDifference(w,C)/60,1),31556900))}let A=!1;return v!==x._clock&&(x._clock=v,A=!0),m!==x._name&&(A=!0),A&&x._changed.raiseEvent(x),Tv.setLoading(x,!1),x}).catch(function(v){return Tv.setLoading(x,!1),x._error.raiseEvent(x,v),console.log(v),Promise.reject(v)})};var F4e=F9;function tee(){At.throwInstantiationError()}tee.prototype.update=At.throwInstantiationError;tee.prototype.getBoundingSphere=At.throwInstantiationError;tee.prototype.isDestroyed=At.throwInstantiationError;tee.prototype.destroy=At.throwInstantiationError;var gyt=tee;function B9(o){o=o??pi.EMPTY_OBJECT,Za.defined("options.context",o.context);let f=o.context,m=o.width,x=o.height,v=o.depth,y=o.source,C=o.pixelFormat??an.RGBA,w=o.pixelDataType??bn.UNSIGNED_BYTE,T=an.toInternalFormat(C,w,f);if(!N(m)||!N(x)||!N(v))throw new At("options requires a source field to create an 3d texture. width or height or dimension fileds");if(Za.typeOf.number.greaterThan("width",m,0),m>So.maximumTextureSize)throw new At("width must be less than or equal to the maximum texture size");if(Za.typeOf.number.greaterThan("height",x,0),x>So.maximumTextureSize)throw new At("height must be less than or equal to the maximum texture size");if(Za.typeOf.number.greaterThan("dimensions",v,0),v>So.maximumTextureSize)throw new At("dimension must be less than or equal to the maximum texture size");if(!an.validate(C))throw new At("Invalid options.pixelFormat.");if(!bn.validate(w))throw new At("Invalid options.pixelDatatype.");let E=!0,A=f._gl,S=A.TEXTURE_3D,M=A.createTexture();A.activeTexture(A.TEXTURE0),A.bindTexture(S,M);let I=4;if(N(y)&&N(y.arrayBufferView)&&(I=an.alignmentInBytes(C,w,m)),A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),A.pixelStorei(A.UNPACK_FLIP_Y_WEBGL,!1),A.pixelStorei(A.UNPACK_ALIGNMENT,I),A.pixelStorei(A.UNPACK_COLORSPACE_CONVERSION_WEBGL,A.BROWSER_DEFAULT_WEBGL),N(y)&&N(y.arrayBufferView)){let P=y.arrayBufferView;A.texImage3D(S,0,T,m,x,v,0,C,bn.toWebGLConstant(w,f),P),E=!0}A.bindTexture(S,null),this._id=Hu(),this._context=f,this._textureFilterAnisotropic=f._textureFilterAnisotropic,this._textureTarget=S,this._texture=M,this._internalFormat=T,this._pixelFormat=C,this._pixelDatatype=w,this._width=m,this._height=x,this._depth=v,this._dimensions=new V(m,x,v),this._hasMinmap=!1,this._sizeInBytes=4,this._preMultiplyAlpha=!1,this._flipY=!1,this._initialized=E,this._sampler=void 0,this.sampler=N(o.sampler)?o.sampler:new aa}B9.fromFramebuffer=function(o){o=o??pi.EMPTY_OBJECT,Za.defined("options.context",o.context);let f=o.context,m=f._gl,x=o.pixelFormat??an.RGB,v=o.width??m.drawingBufferWidth,y=o.height??m.drawingBufferHeight,C=o.depth??128,w=o.framebuffer;return new B9({context:f,width:v,height:y,pixelFormat:x,source:{framebuffer:N(w)?w:f.defaultFramebuffer,width:v,height:y,depth:C}})};Object.defineProperties(B9.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(o){let f=o.minificationFilter,m=o.magnificationFilter,x=this._context._gl,v=this._textureTarget;x.activeTexture(x.TEXTURE0),x.bindTexture(v,this._texture),x.texParameteri(v,x.TEXTURE_MIN_FILTER,f),x.texParameteri(v,x.TEXTURE_MAG_FILTER,m),x.texParameteri(v,x.TEXTURE_WRAP_R,o.wrapR),x.texParameteri(v,x.TEXTURE_WRAP_S,o.wrapS),x.texParameteri(v,x.TEXTURE_WRAP_T,o.wrapT),x.bindTexture(v,null),this._sampler=o}},dimensions:{get:function(){return this._dimensions}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},depth:{get:function(){return this._depth}},_target:{get:function(){return this._textureTarget}}});B9.prototype.isDestroyed=function(){return!1};B9.prototype.destory=function(){return this._context._gl.deleteTexture(this._texture),Ir(this)};var B4e=B9,k4e=`uniform sampler2D u_noiseTexture;
    `}),o.textureUniformShader.andStyle=!0}function aXi(o){let f=Math.floor(o/256/256),m=Math.floor((o-f*256*256)/255),x=o-f*256*256-m*256,v=f.toString(16).padStart(2,"0"),y=m.toString(16).padStart(2,"0"),C=x.toString(16).padStart(2,"0");return"color('#"+v+y+C+"')"}function sXi(o){return"${id} === '"+o+"'"}function lXi(o){let f=o.pipelineIds,m=f.length,x=[];for(let v=0;v<m;v++){let y=f[v];x.push([sXi(y),aXi(v)])}x.push(["true","color('white')"]),o.style=new zE({color:{conditions:x}})}function uXi(o){let f=o.flowLevels;if(f instanceof Array&&f.length===16){o.flowLevelMatrix=Ee.fromArray(f);return}o.flowLevelMatrix=new Ee}I9.prototype.init=function(o){let f=Math.sqrt(this.pipelineIds.length);f=Math.floor(f+1),this.width=f,this.height=f,uXi(this),nXi(this),oXi(this),lXi(this),this.oldCustomShader=this.tileset.customShader,this.tileset.customShader=this.textureUniformShader,this.oldStyle=this.tileset.style,this.tileset.style=this.style};function cXi(o){let f=o.pipelineTexture,m=o.serverDatas,x=o.textureData,v=0,y=Object.keys(m);y.length>0&&(y.forEach(C=>{let w=m[C];x[v++]=w}),f.copyFrom({source:{width:o.width,height:o.height,arrayBufferView:x}}))}function hXi(o,f){new Wr({url:o.pipelineUrl,queryParameters:{timestamp:o.currentTimestamp}}).fetchJson().then(function(m){m&&m.data&&m.data instanceof Array?f(m.data,m.time):console.log("download fail!")}).catch(function(m){})}I9.prototype.update=function(){let o=performance.now(),f=(o-this.startTime)/1e3;if(this.startTime=o,this.currentTime>this.nextRequestTime){let m=this;hXi(this,function(x,v){x.forEach(y=>{m.serverDatas[y.id]=y.flow}),m.nextRequestTime=(Number(m.currentTimestamp)-Number(v))/1e3,m.currentTimestamp=v,cXi(m)})}this.currentTime+=f,this.textureUniformShader.setUniform("u_time",this.currentTime)};I9.prototype.destroy=function(){this.tileset.customShader=this.oldCustomShader,this.tileset.style=this.oldStyle,this.pipelineTexture&&this.pipelineTexture.destroy(),this.textureData&&(this.textureData=null)};I9.fromUrl=async function(o){let{context:f,tileset:m,pipelineUrl:x,flowLevels:v,startTimestamp:y,imageWidth:C,imageHeight:w}=o,T=[],E=await new Wr({url:x,queryParameters:{timestamp:y}}).fetchJson();return E&&E.data&&E.data instanceof Array&&E.data.forEach(A=>{T.push(A.id)}),new I9(f,m,T,x,y,v,C,w)};var Ife=I9,dXi=ze.WHITE,fXi=ze.BLACK,pXi=new at(2,2);function M9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.evenColor=o.evenColor,this.oddColor=o.oddColor,this.repeat=o.repeat}Object.defineProperties(M9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._evenColor)&&Ut.isConstant(this._oddColor)&&Ut.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},evenColor:Fi("evenColor"),oddColor:Fi("oddColor"),repeat:Fi("repeat")});M9.prototype.getType=function(o){return"Checkerboard"};var mXi=new si;M9.prototype.getValue=function(o,f){return N(o)||(o=si.now(mXi)),N(f)||(f={}),f.lightColor=Ut.getValueOrClonedDefault(this._evenColor,o,dXi,f.lightColor),f.darkColor=Ut.getValueOrClonedDefault(this._oddColor,o,fXi,f.darkColor),f.repeat=Ut.getValueOrDefault(this._repeat,o,pXi),f};M9.prototype.equals=function(o){return this===o||o instanceof M9&&Ut.equals(this._evenColor,o._evenColor)&&Ut.equals(this._oddColor,o._oddColor)&&Ut.equals(this._repeat,o._repeat)};var wue=M9,Tue={id:void 0},kG=new Array(2);function CAe(o){let f=o.propertyNames,m=f.length;for(let x=0;x<m;x++)o[f[x]]=void 0;o._name=void 0,o._availability=void 0}function Kvt(o,f,m,x){kG[0]=m,kG[1]=x.id,f[JSON.stringify(kG)]=x.definitionChanged.addEventListener(Bp.prototype._onDefinitionChanged,o)}function $vt(o,f,m,x){kG[0]=m,kG[1]=x.id;let v=JSON.stringify(kG);f[v](),f[v]=void 0}function iB(o){if(o._shouldRecomposite=!0,o._suspendCount!==0)return;let f=o._collections,m=f.length,x=o._collectionsCopy,v=x.length,y,C,w,T,E,A=o._composite,S=new GE(o),M=o._eventHash,I;for(y=0;y<v;y++)for(E=x[y],E.collectionChanged.removeEventListener(Bp.prototype._onCollectionChanged,o),w=E.values,I=E.id,T=w.length-1;T>-1;T--)C=w[T],$vt(o,M,I,C);for(y=m-1;y>=0;y--)for(E=f[y],E.collectionChanged.addEventListener(Bp.prototype._onCollectionChanged,o),w=E.values,I=E.id,T=w.length-1;T>-1;T--){C=w[T],Kvt(o,M,I,C);let D=S.getById(C.id);N(D)||(D=A.getById(C.id),N(D)?CAe(D):(Tue.id=C.id,D=new tf(Tue)),S.add(D)),D.merge(C)}o._collectionsCopy=f.slice(0),A.suspendEvents(),A.removeAll();let P=S.values;for(y=0;y<P.length;y++)A.add(P[y]);A.resumeEvents()}function Bp(o,f){this._owner=f,this._composite=new GE(this),this._suspendCount=0,this._collections=N(o)?o.slice():[],this._collectionsCopy=[],this._id=Hu(),this._eventHash={},iB(this),this._shouldRecomposite=!1}Object.defineProperties(Bp.prototype,{collectionChanged:{get:function(){return this._composite._collectionChanged}},id:{get:function(){return this._id}},values:{get:function(){return this._composite.values}},owner:{get:function(){return this._owner}}});Bp.prototype.addCollection=function(o,f){N(f)?this._collections.splice(f,0,o):(f=this._collections.length,this._collections.push(o)),iB(this)};Bp.prototype.removeCollection=function(o){let f=this._collections.indexOf(o);return f!==-1?(this._collections.splice(f,1),iB(this),!0):!1};Bp.prototype.removeAllCollections=function(){this._collections.length=0,iB(this)};Bp.prototype.containsCollection=function(o){return this._collections.indexOf(o)!==-1};Bp.prototype.contains=function(o){return this._composite.contains(o)};Bp.prototype.indexOfCollection=function(o){return this._collections.indexOf(o)};Bp.prototype.getCollection=function(o){return this._collections[o]};Bp.prototype.getCollectionsLength=function(){return this._collections.length};function Mfe(o,f){return o.indexOf(f)}function Jvt(o,f,m){let x=o._collections;if(f=Ce.clamp(f,0,x.length-1),m=Ce.clamp(m,0,x.length-1),f===m)return;let v=x[f];x[f]=x[m],x[m]=v,iB(o)}Bp.prototype.raiseCollection=function(o){let f=Mfe(this._collections,o);Jvt(this,f,f+1)};Bp.prototype.lowerCollection=function(o){let f=Mfe(this._collections,o);Jvt(this,f,f-1)};Bp.prototype.raiseCollectionToTop=function(o){let f=Mfe(this._collections,o);f!==this._collections.length-1&&(this._collections.splice(f,1),this._collections.push(o),iB(this))};Bp.prototype.lowerCollectionToBottom=function(o){let f=Mfe(this._collections,o);f!==0&&(this._collections.splice(f,1),this._collections.splice(0,0,o),iB(this))};Bp.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()};Bp.prototype.resumeEvents=function(){this._suspendCount--,this._shouldRecomposite&&this._suspendCount===0&&(iB(this),this._shouldRecomposite=!1),this._composite.resumeEvents()};Bp.prototype.computeAvailability=function(){return this._composite.computeAvailability()};Bp.prototype.getById=function(o){return this._composite.getById(o)};Bp.prototype._onCollectionChanged=function(o,f,m){let x=this._collectionsCopy,v=x.length,y=this._composite;y.suspendEvents();let C,w,T,E,A=m.length,S=this._eventHash,M=o.id;for(C=0;C<A;C++){let P=m[C];$vt(this,S,M,P);let D=P.id;for(w=v-1;w>=0;w--)T=x[w].getById(D),N(T)&&(N(E)||(E=y.getById(D),CAe(E)),E.merge(T));N(E)||y.removeById(D),E=void 0}let I=f.length;for(C=0;C<I;C++){let P=f[C];Kvt(this,S,M,P);let D=P.id;for(w=v-1;w>=0;w--)T=x[w].getById(D),N(T)&&(N(E)||(E=y.getById(D),N(E)?CAe(E):(Tue.id=D,E=new tf(Tue),y.add(E))),E.merge(T));E=void 0}y.resumeEvents()};Bp.prototype._onDefinitionChanged=function(o,f,m,x){let v=this._collections,y=this._composite,C=v.length,w=o.id,T=y.getById(w),E=T[f],A=!N(E),S=!0;for(let M=C-1;M>=0;M--){let I=v[M].getById(o.id);if(N(I)){let P=I[f];if(N(P)){if(S)if(S=!1,N(P.merge)&&N(P.clone))E=P.clone(E);else{E=P;break}E.merge(P)}}}A&&T.propertyNames.indexOf(f)===-1&&T.addProperty(f),T[f]=E};var Qvt=Bp;function m5(){this._definitionChanged=new Or,this._composite=new oE,this._composite.definitionChanged.addEventListener(m5.prototype._raiseDefinitionChanged,this)}Object.defineProperties(m5.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite._intervals}}});m5.prototype.getType=function(o){let f=this._composite._intervals.findDataForIntervalContainingDate(o);if(N(f))return f.getType(o)};var xXi=new si;m5.prototype.getValue=function(o,f){N(o)||(o=si.now(xXi));let m=this._composite._intervals.findDataForIntervalContainingDate(o);if(N(m))return m.getValue(o,f)};m5.prototype.equals=function(o){return this===o||o instanceof m5&&this._composite.equals(o._composite,Ut.equals)};m5.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var Eue=m5,gXi=Ce.factorial;function C4e(o,f,m,x,v,y){let C=0,w,T,E;if(x>0){for(T=0;T<v;T++){for(w=!1,E=0;E<y.length&&!w;E++)T===y[E]&&(w=!0);w||(y.push(T),C+=C4e(o,f,m,x-1,v,y),y.splice(y.length-1,1))}return C}for(C=1,T=0;T<v;T++){for(w=!1,E=0;E<y.length&&!w;E++)T===y[E]&&(w=!0);w||(C*=o-m[f[T]])}return C}var Dfe={type:"Hermite"};Dfe.getRequiredDataPoints=function(o,f){return f=f??0,Math.max(Math.floor((o+1)/(f+1)),2)};Dfe.interpolateOrderZero=function(o,f,m,x,v){N(v)||(v=new Array(x));let y,C,w,T,E,A,S=f.length,M=new Array(x);for(y=0;y<x;y++){v[y]=0;let R=new Array(S);for(M[y]=R,C=0;C<S;C++)R[C]=[]}let I=S,P=new Array(I);for(y=0;y<I;y++)P[y]=y;let D=S-1;for(T=0;T<x;T++){for(C=0;C<I;C++)A=P[C]*x+T,M[T][0].push(m[A]);for(y=1;y<I;y++){let R=!1;for(C=0;C<I-y;C++){let L=f[P[C]],O=f[P[C+y]],F;O-L<=0?(A=P[C]*x+x*y+T,F=m[A],M[T][y].push(F/gXi(y))):(F=M[T][y-1][C+1]-M[T][y-1][C],M[T][y].push(F/(O-L))),R=R||F!==0}R||(D=y-1)}}for(w=0,E=0;w<=E;w++)for(y=w;y<=D;y++){let R=C4e(o,P,f,w,y,[]);for(T=0;T<x;T++){let L=M[T][y][0];v[T+w*x]+=L*R}}return v};var _Xi=[];Dfe.interpolate=function(o,f,m,x,v,y,C){let w=x*(y+1);N(C)||(C=new Array(w));for(let L=0;L<w;L++)C[L]=0;let T=f.length,E=new Array(T*(v+1)),A;for(A=0;A<T;A++)for(let L=0;L<v+1;L++)E[A*(v+1)+L]=A;let S=E.length,M=_Xi,I=vXi(M,E,f,m,x,v),P=[],D=S*(S+1)/2,R=Math.min(I,y);for(let L=0;L<=R;L++)for(A=L;A<=I;A++){P.length=0;let O=C4e(o,E,f,L,A,P),F=Math.floor(A*(1-A)/2)+S*A;for(let B=0;B<x;B++){let H=Math.floor(B*D),G=M[H+F];C[B+L*x]+=G*O}}return C};function vXi(o,f,m,x,v,y){let C,w,T=-1,E=f.length,A=E*(E+1)/2;for(let S=0;S<v;S++){let M=Math.floor(S*A);for(C=0;C<E;C++)w=f[C]*v*(y+1)+S,o[M+C]=x[w];for(let I=1;I<E;I++){let P=0,D=Math.floor(I*(1-I)/2)+E*I,R=!1;for(C=0;C<E-I;C++){let L=m[f[C]],O=m[f[C+I]],F,B;if(O-L<=0)w=f[C]*v*(y+1)+v*I+S,F=x[w],B=F/Ce.factorial(I),o[M+D+P]=B,P++;else{let H=Math.floor((I-1)*(2-I)/2)+E*(I-1);F=o[M+H+C+1]-o[M+H+C],B=F/(O-L),o[M+D+P]=B,P++}R=R||F!==0}R&&(T=Math.max(T,I))}}return T}var b4e=Dfe,w4e={type:"Lagrange"};w4e.getRequiredDataPoints=function(o){return Math.max(o+1,2)};w4e.interpolateOrderZero=function(o,f,m,x,v){N(v)||(v=new Array(x));let y,C,w=f.length;for(y=0;y<x;y++)v[y]=0;for(y=0;y<w;y++){let T=1;for(C=0;C<w;C++)if(C!==y){let E=f[y]-f[C];T*=(o-f[C])/E}for(C=0;C<x;C++)v[C]+=T*m[y*x+C]}return v};var T4e=w4e;function Zy(o,f,m){this.clock=o??0,this.cone=f??0,this.magnitude=m??1}Zy.fromCartesian3=function(o,f){let m=o.x,x=o.y,v=o.z,y=m*m+x*x;return N(f)||(f=new Zy),f.clock=Math.atan2(x,m),f.cone=Math.atan2(Math.sqrt(y),v),f.magnitude=Math.sqrt(y+v*v),f};Zy.clone=function(o,f){if(N(o))return N(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=o.magnitude,f):new Zy(o.clock,o.cone,o.magnitude)};Zy.normalize=function(o,f){return N(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=1,f):new Zy(o.clock,o.cone,1)};Zy.equals=function(o,f){return o===f||N(o)&&N(f)&&o.clock===f.clock&&o.cone===f.cone&&o.magnitude===f.magnitude};Zy.equalsEpsilon=function(o,f,m){return m=m??0,o===f||N(o)&&N(f)&&Math.abs(o.clock-f.clock)<=m&&Math.abs(o.cone-f.cone)<=m&&Math.abs(o.magnitude-f.magnitude)<=m};Zy.prototype.equals=function(o){return Zy.equals(this,o)};Zy.prototype.clone=function(o){return Zy.clone(this,o)};Zy.prototype.equalsEpsilon=function(o,f){return Zy.equalsEpsilon(this,o,f)};Zy.prototype.toString=function(){return`(${this.clock}, ${this.cone}, ${this.magnitude})`};var E4e=Zy,Rfe=E0(OE(),1),yXi=ze.WHITE,CXi=.1,bXi=new at(8,8),wXi=new at(0,0),TXi=new at(1,1);function D9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._color=void 0,this._colorSubscription=void 0,this._cellAlpha=void 0,this._cellAlphaSubscription=void 0,this._lineCount=void 0,this._lineCountSubscription=void 0,this._lineThickness=void 0,this._lineThicknessSubscription=void 0,this._lineOffset=void 0,this._lineOffsetSubscription=void 0,this.color=o.color,this.cellAlpha=o.cellAlpha,this.lineCount=o.lineCount,this.lineThickness=o.lineThickness,this.lineOffset=o.lineOffset}Object.defineProperties(D9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._color)&&Ut.isConstant(this._cellAlpha)&&Ut.isConstant(this._lineCount)&&Ut.isConstant(this._lineThickness)&&Ut.isConstant(this._lineOffset)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Fi("color"),cellAlpha:Fi("cellAlpha"),lineCount:Fi("lineCount"),lineThickness:Fi("lineThickness"),lineOffset:Fi("lineOffset")});D9.prototype.getType=function(o){return"Grid"};var EXi=new si;D9.prototype.getValue=function(o,f){return N(o)||(o=si.now(EXi)),N(f)||(f={}),f.color=Ut.getValueOrClonedDefault(this._color,o,yXi,f.color),f.cellAlpha=Ut.getValueOrDefault(this._cellAlpha,o,CXi),f.lineCount=Ut.getValueOrClonedDefault(this._lineCount,o,bXi,f.lineCount),f.lineThickness=Ut.getValueOrClonedDefault(this._lineThickness,o,TXi,f.lineThickness),f.lineOffset=Ut.getValueOrClonedDefault(this._lineOffset,o,wXi,f.lineOffset),f};D9.prototype.equals=function(o){return this===o||o instanceof D9&&Ut.equals(this._color,o._color)&&Ut.equals(this._cellAlpha,o._cellAlpha)&&Ut.equals(this._lineCount,o._lineCount)&&Ut.equals(this._lineThickness,o._lineThickness)&&Ut.equals(this._lineOffset,o._lineOffset)};var Aue=D9,AXi=ze.WHITE,SXi=ze.TRANSPARENT,PXi=16,IXi=255;function R9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._color=void 0,this._colorSubscription=void 0,this._gapColor=void 0,this._gapColorSubscription=void 0,this._dashLength=void 0,this._dashLengthSubscription=void 0,this._dashPattern=void 0,this._dashPatternSubscription=void 0,this.color=o.color,this.gapColor=o.gapColor,this.dashLength=o.dashLength,this.dashPattern=o.dashPattern}Object.defineProperties(R9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._color)&&Ut.isConstant(this._gapColor)&&Ut.isConstant(this._dashLength)&&Ut.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Fi("color"),gapColor:Fi("gapColor"),dashLength:Fi("dashLength"),dashPattern:Fi("dashPattern")});R9.prototype.getType=function(o){return"PolylineDash"};var MXi=new si;R9.prototype.getValue=function(o,f){return N(o)||(o=si.now(MXi)),N(f)||(f={}),f.color=Ut.getValueOrClonedDefault(this._color,o,AXi,f.color),f.gapColor=Ut.getValueOrClonedDefault(this._gapColor,o,SXi,f.gapColor),f.dashLength=Ut.getValueOrDefault(this._dashLength,o,PXi,f.dashLength),f.dashPattern=Ut.getValueOrDefault(this._dashPattern,o,IXi,f.dashPattern),f};R9.prototype.equals=function(o){return this===o||o instanceof R9&&Ut.equals(this._color,o._color)&&Ut.equals(this._gapColor,o._gapColor)&&Ut.equals(this._dashLength,o._dashLength)&&Ut.equals(this._dashPattern,o._dashPattern)};var Eu=R9,DXi=ze.WHITE,RXi=.25,LXi=1;function L9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._color=void 0,this._colorSubscription=void 0,this._glowPower=void 0,this._glowPowerSubscription=void 0,this._taperPower=void 0,this._taperPowerSubscription=void 0,this.color=o.color,this.glowPower=o.glowPower,this.taperPower=o.taperPower}Object.defineProperties(L9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._color)&&Ut.isConstant(this._glow)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Fi("color"),glowPower:Fi("glowPower"),taperPower:Fi("taperPower")});L9.prototype.getType=function(o){return"PolylineGlow"};var OXi=new si;L9.prototype.getValue=function(o,f){return N(o)||(o=si.now(OXi)),N(f)||(f={}),f.color=Ut.getValueOrClonedDefault(this._color,o,DXi,f.color),f.glowPower=Ut.getValueOrDefault(this._glowPower,o,RXi,f.glowPower),f.taperPower=Ut.getValueOrDefault(this._taperPower,o,LXi,f.taperPower),f};L9.prototype.equals=function(o){return this===o||o instanceof L9&&Ut.equals(this._color,o._color)&&Ut.equals(this._glowPower,o._glowPower)&&Ut.equals(this._taperPower,o._taperPower)};var Sue=L9,NXi=ze.WHITE,FXi=ze.BLACK,BXi=1;function O9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._color=void 0,this._colorSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this.color=o.color,this.outlineColor=o.outlineColor,this.outlineWidth=o.outlineWidth}Object.defineProperties(O9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._color)&&Ut.isConstant(this._outlineColor)&&Ut.isConstant(this._outlineWidth)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Fi("color"),outlineColor:Fi("outlineColor"),outlineWidth:Fi("outlineWidth")});O9.prototype.getType=function(o){return"PolylineOutline"};var kXi=new si;O9.prototype.getValue=function(o,f){return N(o)||(o=si.now(kXi)),N(f)||(f={}),f.color=Ut.getValueOrClonedDefault(this._color,o,NXi,f.color),f.outlineColor=Ut.getValueOrClonedDefault(this._outlineColor,o,FXi,f.outlineColor),f.outlineWidth=Ut.getValueOrDefault(this._outlineWidth,o,BXi),f};O9.prototype.equals=function(o){return this===o||o instanceof O9&&Ut.equals(this._color,o._color)&&Ut.equals(this._outlineColor,o._outlineColor)&&Ut.equals(this._outlineWidth,o._outlineWidth)};var QL=O9;function x5(o){this._value=void 0,this._definitionChanged=new Or,this._eventHelper=new xC,this.setValue(o)}Object.defineProperties(x5.prototype,{isConstant:{get:function(){let o=this._value;if(!N(o))return!0;let f=o.length;for(let m=0;m<f;m++)if(!Ut.isConstant(o[m]))return!1;return!0}},definitionChanged:{get:function(){return this._definitionChanged}}});var VXi=new si;x5.prototype.getValue=function(o,f){N(o)||(o=si.now(VXi));let m=this._value;if(!N(m))return;let x=m.length;N(f)||(f=new Array(x));let v=0,y=0;for(;v<x;){let C=this._value[v].getValue(o,f[v]);N(C)&&(f[y]=C,y++),v++}return f.length=y,f};x5.prototype.setValue=function(o){let f=this._eventHelper;if(f.removeAll(),N(o)){this._value=o.slice();let m=o.length;for(let x=0;x<m;x++){let v=o[x];N(v)&&f.add(v.definitionChanged,x5.prototype._raiseDefinitionChanged,this)}}else this._value=void 0;this._definitionChanged.raiseEvent(this)};x5.prototype.equals=function(o){return this===o||o instanceof x5&&Ut.arrayEquals(this._value,o._value)};x5.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var Lfe=x5,zXi={packedLength:1,pack:function(o,f,m){return m=m??0,f[m]=o,f},unpack:function(o,f,m){return f=f??0,o[f]},convertPackedArrayForInterpolation:function(o,f,m,x){N(x)||(x=[]),f=f??0,m=m??o.length;let v;for(let y=0,C=m-f+1;y<C;y++){let w=o[f+y];y===0||Math.abs(v-w)<Math.PI?x[y]=w:x[y]=w-Ce.TWO_PI,v=w}},unpackInterpolationResult:function(o,f,m,x,v){return v=o[0],v<0?v+Ce.TWO_PI:v}},NM=zXi,UXi={HORIZONTAL:0,VERTICAL:1},g5=Object.freeze(UXi),HXi=g5.HORIZONTAL,GXi=ze.WHITE,WXi=ze.BLACK,jXi=0,qXi=1;function N9(o){o=o??pi.EMPTY_OBJECT,this._definitionChanged=new Or,this._orientation=void 0,this._orientationSubscription=void 0,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._offset=void 0,this._offsetSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.orientation=o.orientation,this.evenColor=o.evenColor,this.oddColor=o.oddColor,this.offset=o.offset,this.repeat=o.repeat}Object.defineProperties(N9.prototype,{isConstant:{get:function(){return Ut.isConstant(this._orientation)&&Ut.isConstant(this._evenColor)&&Ut.isConstant(this._oddColor)&&Ut.isConstant(this._offset)&&Ut.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},orientation:Fi("orientation"),evenColor:Fi("evenColor"),oddColor:Fi("oddColor"),offset:Fi("offset"),repeat:Fi("repeat")});N9.prototype.getType=function(o){return"Stripe"};var YXi=new si;N9.prototype.getValue=function(o,f){return N(o)||(o=si.now(YXi)),N(f)||(f={}),f.horizontal=Ut.getValueOrDefault(this._orientation,o,HXi)===g5.HORIZONTAL,f.evenColor=Ut.getValueOrClonedDefault(this._evenColor,o,GXi,f.evenColor),f.oddColor=Ut.getValueOrClonedDefault(this._oddColor,o,WXi,f.oddColor),f.offset=Ut.getValueOrDefault(this._offset,o,jXi),f.repeat=Ut.getValueOrDefault(this._repeat,o,qXi),f};N9.prototype.equals=function(o){return this===o||o instanceof N9&&Ut.equals(this._orientation,o._orientation)&&Ut.equals(this._evenColor,o._evenColor)&&Ut.equals(this._oddColor,o._oddColor)&&Ut.equals(this._offset,o._offset)&&Ut.equals(this._repeat,o._repeat)};var Pue=N9;function SJ(o,f){this._velocityVectorProperty=new EZ(o,!0),this._subscription=void 0,this._ellipsoid=void 0,this._definitionChanged=new Or,this.ellipsoid=f??Ei.default;let m=this;this._velocityVectorProperty.definitionChanged.addEventListener(function(){m._definitionChanged.raiseEvent(m)})}Object.defineProperties(SJ.prototype,{isConstant:{get:function(){return Ut.isConstant(this._velocityVectorProperty)}},definitionChanged:{get:function(){return this._definitionChanged}},position:{get:function(){return this._velocityVectorProperty.position},set:function(o){this._velocityVectorProperty.position=o}},ellipsoid:{get:function(){return this._ellipsoid},set:function(o){this._ellipsoid!==o&&(this._ellipsoid=o,this._definitionChanged.raiseEvent(this))}}});var ztt=new V,XXi=new V,Utt=new Yt,KXi=new si;SJ.prototype.getValue=function(o,f){N(o)||(o=si.now(KXi));let m=this._velocityVectorProperty._getValue(o,XXi,ztt);if(N(m))return Mr.rotationMatrixFromPositionVelocity(ztt,m,this._ellipsoid,Utt),Er.fromRotationMatrix(Utt,f)};SJ.prototype.equals=function(o){return this===o||o instanceof SJ&&Ut.equals(this._velocityVectorProperty,o._velocityVectorProperty)&&(this._ellipsoid===o._ellipsoid||this._ellipsoid.equals(o._ellipsoid))};var A4e=SJ,gL={COMPLETE:0,BELOW_ELLIPSOID_HORIZON:1,ABOVE_ELLIPSOID_HORIZON:2};gL.validate=function(o){return o===gL.COMPLETE||o===gL.BELOW_ELLIPSOID_HORIZON||o===gL.ABOVE_ELLIPSOID_HORIZON};gL.toString=function(o){switch(o){case gL.COMPLETE:return"COMPLETE";case gL.BELOW_ELLIPSOID_HORIZON:return"BELOW_ELLIPSOID_HORIZON";case gL.ABOVE_ELLIPSOID_HORIZON:return"ABOVE_ELLIPSOID_HORIZON";default:throw new At("SensorVolumePortionToDisplay value is not valid and cannot be converted to a String.")}};var Iue=gL;function _5(){}_5.packedLength=V.packedLength;_5.unpack=V.unpack;_5.pack=V.pack;var bAe;function PJ(o,f){return f[0]==="#"&&(f=bAe+f),IQ.fromString(o,f)}function Htt(o,f,m){if(N(m.reference))return PJ(f,m.reference);if(N(m.velocityReference)){let x=PJ(f,m.velocityReference);switch(o){case V:case _5:return new EZ(x,o===_5);case Er:return new A4e(x)}}throw new Xi(`${JSON.stringify(m)} is not valid CZML.`)}function $Xi(o,f){return new Yr(function(m,x){return f(o.getValue(m,x))},o.isConstant)}var th=new V,W2=new E4e,Iy=new kt,UU=new Rl,Rae=new Er;function JXi(o){let f=o.rgbaf;if(N(f))return f;let m=o.rgba;if(!N(m))return;let x=m.length;if(x===ze.packedLength)return[ze.byteToFloat(m[0]),ze.byteToFloat(m[1]),ze.byteToFloat(m[2]),ze.byteToFloat(m[3])];f=new Array(x);for(let v=0;v<x;v+=5)f[v]=m[v],f[v+1]=ze.byteToFloat(m[v+1]),f[v+2]=ze.byteToFloat(m[v+2]),f[v+3]=ze.byteToFloat(m[v+3]),f[v+4]=ze.byteToFloat(m[v+4]);return f}function Gtt(o,f){let m=o.uri??o;return N(f)?f.getDerivedResource({url:m}):Wr.createIfNeeded(m)}function QXi(o){let f=o.wsen;if(N(f))return f;let m=o.wsenDegrees;if(!N(m))return;let x=m.length;if(x===Si.packedLength)return[Ce.toRadians(m[0]),Ce.toRadians(m[1]),Ce.toRadians(m[2]),Ce.toRadians(m[3])];f=new Array(x);for(let v=0;v<x;v+=5)f[v]=m[v],f[v+1]=Ce.toRadians(m[v+1]),f[v+2]=Ce.toRadians(m[v+2]),f[v+3]=Ce.toRadians(m[v+3]),f[v+4]=Ce.toRadians(m[v+4]);return f}function ZXi(o){let f=o.length;if(W2.magnitude=1,f===2)return W2.clock=o[0],W2.cone=o[1],V.fromSpherical(W2,th),[th.x,th.y,th.z];let m=new Array(f/3*4);for(let x=0,v=0;x<f;x+=3,v+=4)m[v]=o[x],W2.clock=o[x+1],W2.cone=o[x+2],V.fromSpherical(W2,th),m[v+1]=th.x,m[v+2]=th.y,m[v+3]=th.z;return m}function eKi(o){let f=o.length;if(f===3)return W2.clock=o[0],W2.cone=o[1],W2.magnitude=o[2],V.fromSpherical(W2,th),[th.x,th.y,th.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],W2.clock=o[x+1],W2.cone=o[x+2],W2.magnitude=o[x+3],V.fromSpherical(W2,th),m[x+1]=th.x,m[x+2]=th.y,m[x+3]=th.z;return m}function tKi(o){let f=o.length;if(f===3)return Iy.longitude=o[0],Iy.latitude=o[1],Iy.height=o[2],Ei.default.cartographicToCartesian(Iy,th),[th.x,th.y,th.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],Iy.longitude=o[x+1],Iy.latitude=o[x+2],Iy.height=o[x+3],Ei.default.cartographicToCartesian(Iy,th),m[x+1]=th.x,m[x+2]=th.y,m[x+3]=th.z;return m}function iKi(o){let f=o.length;if(f===3)return Iy.longitude=Ce.toRadians(o[0]),Iy.latitude=Ce.toRadians(o[1]),Iy.height=o[2],Ei.default.cartographicToCartesian(Iy,th),[th.x,th.y,th.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],Iy.longitude=Ce.toRadians(o[x+1]),Iy.latitude=Ce.toRadians(o[x+2]),Iy.height=o[x+3],Ei.default.cartographicToCartesian(Iy,th),m[x+1]=th.x,m[x+2]=th.y,m[x+3]=th.z;return m}function S4e(o){let f=o.cartesian;if(N(f))return f;let m=o.cartesianVelocity;if(N(m))return m;let x=o.unitCartesian;if(N(x))return x;let v=o.unitSpherical;if(N(v))return ZXi(v);let y=o.spherical;if(N(y))return eKi(y);let C=o.cartographicRadians;if(N(C))return tKi(C);let w=o.cartographicDegrees;if(N(w))return iKi(w);throw new Xi(`${JSON.stringify(o)} is not a valid CZML interval.`)}function Wtt(o,f){V.unpack(o,f,th),V.normalize(th,th),V.pack(th,o,f)}function rKi(o){let f=S4e(o);if(f.length===3)return Wtt(f,0),f;for(let m=1;m<f.length;m+=4)Wtt(f,m);return f}function jtt(o,f){Er.unpack(o,f,Rae),Er.normalize(Rae,Rae),Er.pack(Rae,o,f)}function nKi(o){let f=o.unitQuaternion;if(N(f)){if(f.length===4)return jtt(f,0),f;for(let m=1;m<f.length;m+=5)jtt(f,m)}return f}function qtt(o){return typeof o=="boolean"?Boolean:typeof o=="number"?Number:typeof o=="string"?String:o.hasOwnProperty("array")?Array:o.hasOwnProperty("boolean")?Boolean:o.hasOwnProperty("boundingRectangle")?Br:o.hasOwnProperty("cartesian2")?at:o.hasOwnProperty("cartesian")||o.hasOwnProperty("spherical")||o.hasOwnProperty("cartographicRadians")||o.hasOwnProperty("cartographicDegrees")?V:o.hasOwnProperty("unitCartesian")||o.hasOwnProperty("unitSpherical")?_5:o.hasOwnProperty("rgba")||o.hasOwnProperty("rgbaf")?ze:o.hasOwnProperty("arcType")?xs:o.hasOwnProperty("classificationType")?Uc:o.hasOwnProperty("colorBlendMode")?IM:o.hasOwnProperty("cornerType")?Fd:o.hasOwnProperty("heightReference")?qn:o.hasOwnProperty("horizontalOrigin")?Mc:o.hasOwnProperty("date")?si:o.hasOwnProperty("labelStyle")?$f:o.hasOwnProperty("number")?Number:o.hasOwnProperty("nearFarScalar")?fa:o.hasOwnProperty("distanceDisplayCondition")?Go:o.hasOwnProperty("object")||o.hasOwnProperty("value")?Object:o.hasOwnProperty("unitQuaternion")?Er:o.hasOwnProperty("shadowMode")?Zl:o.hasOwnProperty("string")?String:o.hasOwnProperty("stripeOrientation")?g5:o.hasOwnProperty("wsen")||o.hasOwnProperty("wsenDegrees")?Si:o.hasOwnProperty("uri")?Rfe.default:o.hasOwnProperty("verticalOrigin")?co:Object}function oKi(o,f,m){switch(o){case xs:return xs[f.arcType??f];case Array:return f.array;case Boolean:return f.boolean??f;case Br:return f.boundingRectangle;case at:return f.cartesian2;case V:return S4e(f);case _5:return rKi(f);case ze:return JXi(f);case Uc:return Uc[f.classificationType??f];case IM:return IM[f.colorBlendMode??f];case Fd:return Fd[f.cornerType??f];case qn:return qn[f.heightReference??f];case Mc:return Mc[f.horizontalOrigin??f];case Image:return Gtt(f,m);case si:return si.fromIso8601(f.date??f);case $f:return $f[f.labelStyle??f];case Number:return f.number??f;case fa:return f.nearFarScalar;case Go:return f.distanceDisplayCondition;case Object:return f.object??f.value??f;case Er:return nKi(f);case NM:return f.number??f;case Iue:return Iue[f.portionToDisplay??f];case Zl:return Zl[f.shadowMode??f.shadows??f];case String:return f.string??f;case g5:return g5[f.stripeOrientation??f];case Si:return QXi(f);case Rfe.default:return Gtt(f,m);case co:return co[f.verticalOrigin??f];default:throw new Xi(`Unknown CzmlDataSource interval type: ${o}`)}}var aKi={HERMITE:b4e,LAGRANGE:T4e,LINEAR:dhe};function Mue(o,f){let m=o.interpolationAlgorithm,x=o.interpolationDegree;(N(m)||N(x))&&f.setInterpolationOptions({interpolationAlgorithm:aKi[m],interpolationDegree:x});let v=o.forwardExtrapolationType;N(v)&&(f.forwardExtrapolationType=nM[v]);let y=o.forwardExtrapolationDuration;N(y)&&(f.forwardExtrapolationDuration=y);let C=o.backwardExtrapolationType;N(C)&&(f.backwardExtrapolationType=nM[C]);let w=o.backwardExtrapolationDuration;N(w)&&(f.backwardExtrapolationDuration=w)}var Ytt={iso8601:void 0};function T0(o){if(N(o))return Ytt.iso8601=o,Rl.fromIso8601(Ytt)}function P4e(o){let f=kn.MAXIMUM_INTERVAL.clone();return f.data=o,f}function Xtt(o){let f=new oE;return f.intervals.addInterval(P4e(o)),f}function Ktt(o){let f=new dw(o.referenceFrame);return f.intervals.addInterval(P4e(o)),f}function Due(o,f,m,x,v,y,C){let w=T0(x.interval);N(v)&&(N(w)?w=Rl.intersect(w,v,UU):w=v);let T,E,A,S=!N(x.reference)&&!N(x.velocityReference),M=N(w)&&!w.equals(kn.MAXIMUM_INTERVAL);if(x.delete===!0){if(!M){f[m]=void 0;return}return Zvt(f[m],w)}let I=!1;if(S){if(E=oKi(o,x,y),!N(E))return;T=o.packedLength??1,A=E.length??1,I=!N(x.array)&&typeof E!="string"&&A>T&&o!==Object}let P=typeof o.unpack=="function"&&o!==NM;if(!I&&!M){S?f[m]=new Ch(P?o.unpack(E,0):E):f[m]=Htt(o,C,x);return}let D=f[m],R,L=x.epoch;if(N(L)&&(R=si.fromIso8601(L)),I&&!M){D instanceof fL||(f[m]=D=new fL(o)),D.addSamplesPackedArray(E,R),Mue(x,D);return}let O;if(!I&&M){w=w.clone(),S?w.data=P?o.unpack(E,0):E:w.data=Htt(o,C,x),N(D)||(f[m]=D=S?new e9:new oE),S&&D instanceof e9?D.intervals.addInterval(w):D instanceof oE?(S&&(w.data=new Ch(w.data)),D.intervals.addInterval(w)):(f[m]=D=Xtt(D),S&&(w.data=new Ch(w.data)),D.intervals.addInterval(w));return}N(D)||(f[m]=D=new oE),D instanceof oE||(f[m]=D=Xtt(D));let F=D.intervals;O=F.findInterval(w),(!N(O)||!(O.data instanceof fL))&&(O=w.clone(),O.data=new fL(o),F.addInterval(O)),O.data.addSamplesPackedArray(E,R),Mue(x,O.data)}function Zvt(o,f){if(o instanceof fL){o.removeSamples(f);return}else if(o instanceof e9){o.intervals.removeInterval(f);return}else if(o instanceof oE){let m=o.intervals;for(let x=0;x<m.length;++x){let v=Rl.intersect(m.get(x),f,UU);v.isEmpty||Zvt(v.data,f)}m.removeInterval(f);return}}function Zi(o,f,m,x,v,y,C){if(N(x))if(Array.isArray(x))for(let w=0,T=x.length;w<T;++w)Due(o,f,m,x[w],v,y,C);else Due(o,f,m,x,v,y,C)}function $tt(o,f,m,x,v,y){let C=T0(m.interval);N(x)&&(N(C)?C=Rl.intersect(C,x,UU):C=x);let w=N(m.cartesianVelocity)?1:0,T=V.packedLength*(w+1),E,A,S=!N(m.reference),M=N(C)&&!C.equals(kn.MAXIMUM_INTERVAL);if(m.delete===!0){if(!M){o[f]=void 0;return}return eyt(o[f],C)}let I,P=!1;if(S&&(N(m.referenceFrame)&&(I=Q0[m.referenceFrame]),I=I??Q0.FIXED,E=S4e(m),A=E.length??1,P=A>T),!P&&!M){S?o[f]=new hM(V.unpack(E),I):o[f]=PJ(y,m.reference);return}let D=o[f],R,L=m.epoch;if(N(L)&&(R=si.fromIso8601(L)),P&&!M){(!(D instanceof aE)||N(I)&&D.referenceFrame!==I)&&(o[f]=D=new aE(I,w)),D.addSamplesPackedArray(E,R),Mue(m,D);return}let O;if(!P&&M){C=C.clone(),S?C.data=V.unpack(E):C.data=PJ(y,m.reference),N(D)||(S?D=new v9(I):D=new dw(I),o[f]=D),S&&D instanceof v9&&N(I)&&D.referenceFrame===I?D.intervals.addInterval(C):D instanceof dw?(S&&(C.data=new hM(C.data,I)),D.intervals.addInterval(C)):(o[f]=D=Ktt(D),S&&(C.data=new hM(C.data,I)),D.intervals.addInterval(C));return}N(D)?D instanceof dw||(o[f]=D=Ktt(D)):o[f]=D=new dw(I);let F=D.intervals;O=F.findInterval(C),(!N(O)||!(O.data instanceof aE)||N(I)&&O.data.referenceFrame!==I)&&(O=C.clone(),O.data=new aE(I,w),F.addInterval(O)),O.data.addSamplesPackedArray(E,R),Mue(m,O.data)}function eyt(o,f){if(o instanceof aE){o.removeSamples(f);return}else if(o instanceof v9){o.intervals.removeInterval(f);return}else if(o instanceof dw){let m=o.intervals;for(let x=0;x<m.length;++x){let v=Rl.intersect(m.get(x),f,UU);v.isEmpty||eyt(v.data,f)}m.removeInterval(f);return}}function tyt(o,f,m,x,v,y){if(N(m))if(Array.isArray(m))for(let C=0,w=m.length;C<w;++C)$tt(o,f,m[C],x,v,y);else $tt(o,f,m,x,v,y)}function Jtt(o,f,m,x){N(m.references)?Ofe(o,f,m.references,m.interval,x,Lfe,oE):(N(m.cartesian2)?m.array=at.unpackArray(m.cartesian2):N(m.cartesian)&&(m.array=at.unpackArray(m.cartesian)),N(m.array)&&Zi(Array,o,f,m,void 0,void 0,x))}function Qtt(o,f,m,x,v,y){let C=T0(m.interval);N(x)&&(N(C)?C=Rl.intersect(C,x,UU):C=x);let w=o[f],T,E;if(N(C)){w instanceof Eue||(w=new Eue,o[f]=w);let S=w.intervals;E=S.findInterval({start:C.start,stop:C.stop}),N(E)?T=E.data:(E=C.clone(),S.addInterval(E))}else T=w;let A;N(m.solidColor)?(T instanceof as||(T=new as),A=m.solidColor,Zi(ze,T,"color",A.color,void 0,void 0,y)):N(m.grid)?(T instanceof Aue||(T=new Aue),A=m.grid,Zi(ze,T,"color",A.color,void 0,v,y),Zi(Number,T,"cellAlpha",A.cellAlpha,void 0,v,y),Zi(at,T,"lineCount",A.lineCount,void 0,v,y),Zi(at,T,"lineThickness",A.lineThickness,void 0,v,y),Zi(at,T,"lineOffset",A.lineOffset,void 0,v,y)):N(m.image)?(T instanceof w0||(T=new w0),A=m.image,Zi(Image,T,"image",A.image,void 0,v,y),Zi(at,T,"repeat",A.repeat,void 0,v,y),Zi(ze,T,"color",A.color,void 0,v,y),Zi(Boolean,T,"transparent",A.transparent,void 0,v,y)):N(m.stripe)?(T instanceof Pue||(T=new Pue),A=m.stripe,Zi(g5,T,"orientation",A.orientation,void 0,v,y),Zi(ze,T,"evenColor",A.evenColor,void 0,v,y),Zi(ze,T,"oddColor",A.oddColor,void 0,v,y),Zi(Number,T,"offset",A.offset,void 0,v,y),Zi(Number,T,"repeat",A.repeat,void 0,v,y)):N(m.polylineOutline)?(T instanceof QL||(T=new QL),A=m.polylineOutline,Zi(ze,T,"color",A.color,void 0,v,y),Zi(ze,T,"outlineColor",A.outlineColor,void 0,v,y),Zi(Number,T,"outlineWidth",A.outlineWidth,void 0,v,y)):N(m.polylineGlow)?(T instanceof Sue||(T=new Sue),A=m.polylineGlow,Zi(ze,T,"color",A.color,void 0,v,y),Zi(Number,T,"glowPower",A.glowPower,void 0,v,y),Zi(Number,T,"taperPower",A.taperPower,void 0,v,y)):N(m.polylineArrow)?(T instanceof gm||(T=new gm),A=m.polylineArrow,Zi(ze,T,"color",A.color,void 0,void 0,y)):N(m.polylineDash)?(T instanceof Eu||(T=new Eu),A=m.polylineDash,Zi(ze,T,"color",A.color,void 0,void 0,y),Zi(ze,T,"gapColor",A.gapColor,void 0,void 0,y),Zi(Number,T,"dashLength",A.dashLength,void 0,v,y),Zi(Number,T,"dashPattern",A.dashPattern,void 0,v,y)):N(m.checkerboard)&&(T instanceof wue||(T=new wue),A=m.checkerboard,Zi(ze,T,"evenColor",A.evenColor,void 0,v,y),Zi(ze,T,"oddColor",A.oddColor,void 0,v,y),Zi(at,T,"repeat",A.repeat,void 0,v,y)),N(E)?E.data=T:o[f]=T}function Ow(o,f,m,x,v,y){if(N(m))if(Array.isArray(m))for(let C=0,w=m.length;C<w;++C)Qtt(o,f,m[C],x,v,y);else Qtt(o,f,m,x,v,y)}function sKi(o,f,m,x){let v=f.name;N(v)&&(o.name=f.name)}function lKi(o,f,m,x){let v=f.description;N(v)&&Zi(String,o,"description",v,void 0,x,m)}function uKi(o,f,m,x){let v=f.position;N(v)&&tyt(o,"position",v,void 0,x,m)}function cKi(o,f,m,x){let v=f.viewFrom;N(v)&&Zi(V,o,"viewFrom",v,void 0,x,m)}function hKi(o,f,m,x){let v=f.orientation;N(v)&&Zi(Er,o,"orientation",v,void 0,x,m)}function dKi(o,f,m,x){let v=f.properties;if(N(v)){N(o.properties)||(o.properties=new tP);for(let y in v)if(v.hasOwnProperty(y)){o.properties.hasProperty(y)||o.properties.addProperty(y);let C=v[y];if(Array.isArray(C))for(let w=0,T=C.length;w<T;++w)Due(qtt(C[w]),o.properties,y,C[w],void 0,x,m);else Due(qtt(C),o.properties,y,C,void 0,x,m)}}}function Ofe(o,f,m,x,v,y,C){let w=m.map(function(T){return PJ(v,T)});if(N(x)){x=T0(x);let T=o[f];if(!(T instanceof C)){let E=new C;E.intervals.addInterval(P4e(T)),o[f]=T=E}x.data=new y(w),T.intervals.addInterval(x)}else o[f]=new y(w)}function Ztt(o,f,m,x){let v=m.references;N(v)?Ofe(o,f,v,m.interval,x,Lfe,oE):Zi(Array,o,f,m,void 0,void 0,x)}function eit(o,f,m,x){if(N(m))if(Array.isArray(m))for(let v=0,y=m.length;v<y;++v)Ztt(o,f,m[v],x);else Ztt(o,f,m,x)}function tit(o,f,m,x){let v=m.references;N(v)?Ofe(o,f,v,m.interval,x,ZG,dw):(N(m.cartesian)?m.array=V.unpackArray(m.cartesian):N(m.cartographicRadians)?m.array=V.fromRadiansArrayHeights(m.cartographicRadians,Ei.default):N(m.cartographicDegrees)&&(m.array=V.fromDegreesArrayHeights(m.cartographicDegrees,Ei.default)),N(m.array)&&Zi(Array,o,f,m,void 0,void 0,x))}function ZZ(o,f,m,x){if(N(m))if(Array.isArray(m))for(let v=0,y=m.length;v<y;++v)tit(o,f,m[v],x);else tit(o,f,m,x)}function fKi(o){return V.unpackArray(o)}function pKi(o){return V.fromRadiansArrayHeights(o,Ei.default)}function mKi(o){return V.fromDegreesArrayHeights(o,Ei.default)}function iit(o,f,m,x){let v=m.references;if(N(v)){let y=v.map(function(C){let w={};return Ofe(w,"positions",C,m.interval,x,ZG,dw),w.positions});o[f]=new ZG(y)}else N(m.cartesian)?m.array=m.cartesian.map(fKi):N(m.cartographicRadians)?m.array=m.cartographicRadians.map(pKi):N(m.cartographicDegrees)&&(m.array=m.cartographicDegrees.map(mKi)),N(m.array)&&Zi(Array,o,f,m,void 0,void 0,x)}function xKi(o,f,m,x){if(N(m))if(Array.isArray(m))for(let v=0,y=m.length;v<y;++v)iit(o,f,m[v],x);else iit(o,f,m,x)}function gKi(o,f,m,x){if(N(m))if(Array.isArray(m))for(let v=0,y=m.length;v<y;v++)Jtt(o,f,m[v],x);else Jtt(o,f,m,x)}function _Ki(o,f,m,x){let v=f.availability;if(!N(v))return;let y;if(Array.isArray(v))for(let C=0,w=v.length;C<w;++C)N(y)||(y=new ky),y.addInterval(T0(v[C]));else y=new ky,y.addInterval(T0(v));o.availability=y}function vKi(o,f,m,x,v){N(f)&&Zi(_5,o,"alignedAxis",f,m,x,v)}function yKi(o,f,m,x){let v=f.billboard;if(!N(v))return;let y=T0(v.interval),C=o.billboard;N(C)||(o.billboard=C=new u3),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Image,C,"image",v.image,y,x,m),Zi(Number,C,"scale",v.scale,y,x,m),Zi(at,C,"pixelOffset",v.pixelOffset,y,x,m),Zi(V,C,"eyeOffset",v.eyeOffset,y,x,m),Zi(Mc,C,"horizontalOrigin",v.horizontalOrigin,y,x,m),Zi(co,C,"verticalOrigin",v.verticalOrigin,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(ze,C,"color",v.color,y,x,m),Zi(NM,C,"rotation",v.rotation,y,x,m),vKi(C,v.alignedAxis,y,x,m),Zi(Boolean,C,"sizeInMeters",v.sizeInMeters,y,x,m),Zi(Number,C,"width",v.width,y,x,m),Zi(Number,C,"height",v.height,y,x,m),Zi(fa,C,"scaleByDistance",v.scaleByDistance,y,x,m),Zi(fa,C,"translucencyByDistance",v.translucencyByDistance,y,x,m),Zi(fa,C,"pixelOffsetScaleByDistance",v.pixelOffsetScaleByDistance,y,x,m),Zi(Br,C,"imageSubRegion",v.imageSubRegion,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Number,C,"disableDepthTestDistance",v.disableDepthTestDistance,y,x,m)}function CKi(o,f,m,x){let v=f.box;if(!N(v))return;let y=T0(v.interval),C=o.box;N(C)||(o.box=C=new qce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(V,C,"dimensions",v.dimensions,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function bKi(o,f,m,x){let v=f.corridor;if(!N(v))return;let y=T0(v.interval),C=o.corridor;N(C)||(o.corridor=C=new Yce),Zi(Boolean,C,"show",v.show,y,x,m),ZZ(C,"positions",v.positions,m),Zi(Number,C,"width",v.width,y,x,m),Zi(Number,C,"height",v.height,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Number,C,"extrudedHeight",v.extrudedHeight,y,x,m),Zi(qn,C,"extrudedHeightReference",v.extrudedHeightReference,y,x,m),Zi(Fd,C,"cornerType",v.cornerType,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m)}function wKi(o,f,m,x){let v=f.cylinder;if(!N(v))return;let y=T0(v.interval),C=o.cylinder;N(C)||(o.cylinder=C=new Xce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Number,C,"length",v.length,y,x,m),Zi(Number,C,"topRadius",v.topRadius,y,x,m),Zi(Number,C,"bottomRadius",v.bottomRadius,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Number,C,"numberOfVerticalLines",v.numberOfVerticalLines,y,x,m),Zi(Number,C,"slices",v.slices,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function TKi(o,f){let m=o.version;if(N(m)&&typeof m=="string"){let y=m.split(".");if(y.length===2){if(y[0]!=="1")throw new Xi("Cesium only supports CZML version 1.");f._version=m}}if(!N(f._version))throw new Xi("CZML version information invalid.  It is expected to be a property on the document object in the <Major>.<Minor> version format.");let x=f._documentPacket;N(o.name)&&(x.name=o.name);let v=o.clock;if(N(v)){let y=x.clock;N(y)?(y.interval=v.interval??y.interval,y.currentTime=v.currentTime??y.currentTime,y.range=v.range??y.range,y.step=v.step??y.step,y.multiplier=v.multiplier??y.multiplier):x.clock={interval:v.interval,currentTime:v.currentTime,range:v.range,step:v.step,multiplier:v.multiplier}}}function EKi(o,f,m,x){let v=f.ellipse;if(!N(v))return;let y=T0(v.interval),C=o.ellipse;N(C)||(o.ellipse=C=new Kce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Number,C,"semiMajorAxis",v.semiMajorAxis,y,x,m),Zi(Number,C,"semiMinorAxis",v.semiMinorAxis,y,x,m),Zi(Number,C,"height",v.height,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Number,C,"extrudedHeight",v.extrudedHeight,y,x,m),Zi(qn,C,"extrudedHeightReference",v.extrudedHeightReference,y,x,m),Zi(NM,C,"rotation",v.rotation,y,x,m),Zi(NM,C,"stRotation",v.stRotation,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Number,C,"numberOfVerticalLines",v.numberOfVerticalLines,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m)}function AKi(o,f,m,x){let v=f.ellipsoid;if(!N(v))return;let y=T0(v.interval),C=o.ellipsoid;N(C)||(o.ellipsoid=C=new fW),Zi(Boolean,C,"show",v.show,y,x,m),Zi(V,C,"radii",v.radii,y,x,m),Zi(V,C,"innerRadii",v.innerRadii,y,x,m),Zi(Number,C,"minimumClock",v.minimumClock,y,x,m),Zi(Number,C,"maximumClock",v.maximumClock,y,x,m),Zi(Number,C,"minimumCone",v.minimumCone,y,x,m),Zi(Number,C,"maximumCone",v.maximumCone,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Number,C,"stackPartitions",v.stackPartitions,y,x,m),Zi(Number,C,"slicePartitions",v.slicePartitions,y,x,m),Zi(Number,C,"subdivisions",v.subdivisions,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function SKi(o,f,m,x){let v=f.label;if(!N(v))return;let y=T0(v.interval),C=o.label;N(C)||(o.label=C=new pW),Zi(Boolean,C,"show",v.show,y,x,m),Zi(String,C,"text",v.text,y,x,m),Zi(String,C,"font",v.font,y,x,m),Zi($f,C,"style",v.style,y,x,m),Zi(Number,C,"scale",v.scale,y,x,m),Zi(Boolean,C,"showBackground",v.showBackground,y,x,m),Zi(ze,C,"backgroundColor",v.backgroundColor,y,x,m),Zi(at,C,"backgroundPadding",v.backgroundPadding,y,x,m),Zi(at,C,"pixelOffset",v.pixelOffset,y,x,m),Zi(V,C,"eyeOffset",v.eyeOffset,y,x,m),Zi(Mc,C,"horizontalOrigin",v.horizontalOrigin,y,x,m),Zi(co,C,"verticalOrigin",v.verticalOrigin,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(ze,C,"fillColor",v.fillColor,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(fa,C,"translucencyByDistance",v.translucencyByDistance,y,x,m),Zi(fa,C,"pixelOffsetScaleByDistance",v.pixelOffsetScaleByDistance,y,x,m),Zi(fa,C,"scaleByDistance",v.scaleByDistance,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Number,C,"disableDepthTestDistance",v.disableDepthTestDistance,y,x,m)}function PKi(o,f,m,x){let v=f.model;if(!N(v))return;let y=T0(v.interval),C=o.model;N(C)||(o.model=C=new _Q),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Rfe.default,C,"uri",v.gltf,y,x,m),Zi(Number,C,"scale",v.scale,y,x,m),Zi(Number,C,"minimumPixelSize",v.minimumPixelSize,y,x,m),Zi(Number,C,"maximumScale",v.maximumScale,y,x,m),Zi(Boolean,C,"incrementallyLoadTextures",v.incrementallyLoadTextures,y,x,m),Zi(Boolean,C,"runAnimations",v.runAnimations,y,x,m),Zi(Boolean,C,"clampAnimations",v.clampAnimations,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(ze,C,"silhouetteColor",v.silhouetteColor,y,x,m),Zi(Number,C,"silhouetteSize",v.silhouetteSize,y,x,m),Zi(ze,C,"color",v.color,y,x,m),Zi(IM,C,"colorBlendMode",v.colorBlendMode,y,x,m),Zi(Number,C,"colorBlendAmount",v.colorBlendAmount,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m);let w,T,E=v.nodeTransformations;if(N(E))if(Array.isArray(E))for(w=0,T=E.length;w<T;++w)rit(C,E[w],y,x,m);else rit(C,E,y,x,m);let A=v.articulations;if(N(A))if(Array.isArray(A))for(w=0,T=A.length;w<T;++w)nit(C,A[w],y,x,m);else nit(C,A,y,x,m)}function rit(o,f,m,x,v){let y=T0(f.interval);N(m)&&(N(y)?y=Rl.intersect(y,m,UU):y=m);let C=o.nodeTransformations,w=Object.keys(f);for(let T=0,E=w.length;T<E;++T){let A=w[T];if(A==="interval")continue;let S=f[A];if(!N(S))continue;N(C)||(o.nodeTransformations=C=new tP),C.hasProperty(A)||C.addProperty(A);let M=C[A];N(M)||(C[A]=M=new $ce),Zi(V,M,"translation",S.translation,y,x,v),Zi(Er,M,"rotation",S.rotation,y,x,v),Zi(V,M,"scale",S.scale,y,x,v)}}function nit(o,f,m,x,v){let y=T0(f.interval);N(m)&&(N(y)?y=Rl.intersect(y,m,UU):y=m);let C=o.articulations,w=Object.keys(f);for(let T=0,E=w.length;T<E;++T){let A=w[T];if(A==="interval")continue;let S=f[A];N(S)&&(N(C)||(o.articulations=C=new tP),C.hasProperty(A)||C.addProperty(A),Zi(Number,C,A,S,y,x,v))}}function IKi(o,f,m,x){let v=f.path;if(!N(v))return;let y=T0(v.interval),C=o.path;N(C)||(o.path=C=new vQ),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Number,C,"leadTime",v.leadTime,y,x,m),Zi(Number,C,"trailTime",v.trailTime,y,x,m),Zi(Number,C,"width",v.width,y,x,m),Zi(Number,C,"resolution",v.resolution,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function MKi(o,f,m,x){let v=f.point;if(!N(v))return;let y=T0(v.interval),C=o.point;N(C)||(o.point=C=new Qce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Number,C,"pixelSize",v.pixelSize,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(ze,C,"color",v.color,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(fa,C,"scaleByDistance",v.scaleByDistance,y,x,m),Zi(fa,C,"translucencyByDistance",v.translucencyByDistance,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Number,C,"disableDepthTestDistance",v.disableDepthTestDistance,y,x,m)}function IJ(o){this.polygon=o,this._definitionChanged=new Or}Object.defineProperties(IJ.prototype,{isConstant:{get:function(){let o=this.polygon._positions,f=this.polygon._holes;return(!N(o)||o.isConstant)&&(!N(f)||f.isConstant)}},definitionChanged:{get:function(){return this._definitionChanged}}});IJ.prototype.getValue=function(o,f){let m;N(this.polygon._positions)&&(m=this.polygon._positions.getValue(o));let x;return N(this.polygon._holes)&&(x=this.polygon._holes.getValue(o),N(x)&&(x=x.map(function(v){return new to(v)}))),N(f)?(f.positions=m,f.holes=x,f):new to(m,x)};IJ.prototype.equals=function(o){return this===o||o instanceof IJ&&Ut.equals(this.polygon._positions,o.polygon._positions)&&Ut.equals(this.polygon._holes,o.polygon._holes)};function DKi(o,f,m,x){let v=f.polygon;if(!N(v))return;let y=T0(v.interval),C=o.polygon;N(C)||(o.polygon=C=new eu),Zi(Boolean,C,"show",v.show,y,x,m),ZZ(C,"_positions",v.positions,m),xKi(C,"_holes",v.holes,m),(N(C._positions)||N(C._holes))&&(C.hierarchy=new IJ(C)),Zi(Number,C,"height",v.height,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Number,C,"extrudedHeight",v.extrudedHeight,y,x,m),Zi(qn,C,"extrudedHeightReference",v.extrudedHeightReference,y,x,m),Zi(NM,C,"stRotation",v.stRotation,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Boolean,C,"perPositionHeight",v.perPositionHeight,y,x,m),Zi(Boolean,C,"closeTop",v.closeTop,y,x,m),Zi(Boolean,C,"closeBottom",v.closeBottom,y,x,m),Zi(xs,C,"arcType",v.arcType,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m)}function RKi(o){return o?xs.GEODESIC:xs.NONE}function LKi(o,f,m,x){let v=f.polyline;if(!N(v))return;let y=T0(v.interval),C=o.polyline;if(N(C)||(o.polyline=C=new CM),Zi(Boolean,C,"show",v.show,y,x,m),ZZ(C,"positions",v.positions,m),Zi(Number,C,"width",v.width,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Ow(C,"material",v.material,y,x,m),Ow(C,"depthFailMaterial",v.depthFailMaterial,y,x,m),Zi(xs,C,"arcType",v.arcType,y,x,m),Zi(Boolean,C,"clampToGround",v.clampToGround,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m),N(v.followSurface)&&!N(v.arcType)){let w={};Zi(Boolean,w,"followSurface",v.followSurface,y,x,m),C.arcType=$Xi(w.followSurface,RKi)}}function OKi(o,f,m,x){let v=f.polylineVolume;if(!N(v))return;let y=T0(v.interval),C=o.polylineVolume;N(C)||(o.polylineVolume=C=new Zce),ZZ(C,"positions",v.positions,m),gKi(C,"shape",v.shape,m),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Fd,C,"cornerType",v.cornerType,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function NKi(o,f,m,x){let v=f.rectangle;if(!N(v))return;let y=T0(v.interval),C=o.rectangle;N(C)||(o.rectangle=C=new mW),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Si,C,"coordinates",v.coordinates,y,x,m),Zi(Number,C,"height",v.height,y,x,m),Zi(qn,C,"heightReference",v.heightReference,y,x,m),Zi(Number,C,"extrudedHeight",v.extrudedHeight,y,x,m),Zi(qn,C,"extrudedHeightReference",v.extrudedHeightReference,y,x,m),Zi(NM,C,"rotation",v.rotation,y,x,m),Zi(NM,C,"stRotation",v.stRotation,y,x,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m),Zi(Uc,C,"classificationType",v.classificationType,y,x,m),Zi(Number,C,"zIndex",v.zIndex,y,x,m)}function FKi(o,f,m,x){let v=f.tileset;if(!N(v))return;let y=T0(v.interval),C=o.tileset;N(C)||(o.tileset=C=new Jce),Zi(Boolean,C,"show",v.show,y,x,m),Zi(Rfe.default,C,"uri",v.uri,y,x,m),Zi(Number,C,"maximumScreenSpaceError",v.maximumScreenSpaceError,y,x,m)}function BKi(o,f,m,x){let v=f.wall;if(!N(v))return;let y=T0(v.interval),C=o.wall;N(C)||(o.wall=C=new yQ),Zi(Boolean,C,"show",v.show,y,x,m),ZZ(C,"positions",v.positions,m),eit(C,"minimumHeights",v.minimumHeights,m),eit(C,"maximumHeights",v.maximumHeights,m),Zi(Number,C,"granularity",v.granularity,y,x,m),Zi(Boolean,C,"fill",v.fill,y,x,m),Ow(C,"material",v.material,y,x,m),Zi(Boolean,C,"outline",v.outline,y,x,m),Zi(ze,C,"outlineColor",v.outlineColor,y,x,m),Zi(Number,C,"outlineWidth",v.outlineWidth,y,x,m),Zi(Zl,C,"shadows",v.shadows,y,x,m),Zi(Go,C,"distanceDisplayCondition",v.distanceDisplayCondition,y,x,m)}function oit(o,f,m,x,v){let y=o.id;if(N(y)||(y=Hu()),bAe=y,!N(v._version)&&y!=="document")throw new Xi("The first CZML packet is required to be the document object.");if(o.delete===!0)f.removeById(y);else if(y==="document")TKi(o,v);else{let C=f.getOrCreateEntity(y),w=o.parent;N(w)&&(C.parent=f.getOrCreateEntity(w));for(let T=m.length-1;T>-1;T--)m[T](C,o,f,x)}bAe=void 0}function kKi(o){let f,m=o._documentPacket.clock;if(!N(m)){if(!N(o._clock)){let v=o._entityCollection.computeAvailability();if(!v.start.equals(kn.MINIMUM_VALUE)){let y=v.start,C=v.stop,w=si.secondsDifference(C,y),T=Math.round(w/120);return f=new sz,f.startTime=si.clone(y),f.stopTime=si.clone(C),f.clockRange=Pg.LOOP_STOP,f.multiplier=T,f.currentTime=si.clone(y),f.clockStep=Ef.SYSTEM_CLOCK_MULTIPLIER,o._clock=f,!0}}return!1}N(o._clock)?f=o._clock.clone():(f=new sz,f.startTime=kn.MINIMUM_VALUE.clone(),f.stopTime=kn.MAXIMUM_VALUE.clone(),f.currentTime=kn.MINIMUM_VALUE.clone(),f.clockRange=Pg.LOOP_STOP,f.clockStep=Ef.SYSTEM_CLOCK_MULTIPLIER,f.multiplier=1);let x=T0(m.interval);return N(x)&&(f.startTime=x.start,f.stopTime=x.stop),N(m.currentTime)&&(f.currentTime=si.fromIso8601(m.currentTime)),N(m.range)&&(f.clockRange=Pg[m.range]??Pg.LOOP_STOP),N(m.step)&&(f.clockStep=Ef[m.step]??Ef.SYSTEM_CLOCK_MULTIPLIER),N(m.multiplier)&&(f.multiplier=m.multiplier),f.equals(o._clock)?!1:(o._clock=f.clone(o._clock),!0)}function iyt(o,f,m,x){m=m??pi.EMPTY_OBJECT;let v=f,y=m.sourceUri,C=m.credit;if(typeof C=="string"&&(C=new rs(C)),o._credit=C,typeof f=="string"||f instanceof Wr){f=Wr.createIfNeeded(f),v=f.fetchJson(),y=y??f.clone();let w=o._resourceCredits,T=f.credits;if(N(T)){let E=T.length;for(let A=0;A<E;A++)w.push(T[A])}}return y=Wr.createIfNeeded(y),Tv.setLoading(o,!0),Promise.resolve(v).then(function(w){return VKi(o,w,y,x)}).catch(function(w){return Tv.setLoading(o,!1),o._error.raiseEvent(o,w),console.log(w),Promise.reject(w)})}function VKi(o,f,m,x){Tv.setLoading(o,!0);let v=o._entityCollection;x&&(o._version=void 0,o._documentPacket=new ryt,v.removeAll()),Ym._processCzml(f,v,m,void 0,o);let y=kKi(o),C=o._documentPacket;return N(C.name)&&o._name!==C.name?(o._name=C.name,y=!0):!N(o._name)&&N(m)&&(o._name=bQ(m.getUrlComponent()),y=!0),Tv.setLoading(o,!1),y&&o._changed.raiseEvent(o),o}function ryt(){this.name=void 0,this.clock=void 0}function Ym(o){this._name=o,this._changed=new Or,this._error=new Or,this._isLoading=!1,this._loading=new Or,this._clock=void 0,this._documentPacket=new ryt,this._version=void 0,this._entityCollection=new GE(this),this._entityCluster=new R5,this._credit=void 0,this._resourceCredits=[]}Ym.load=function(o,f){return new Ym().load(o,f)};Object.defineProperties(Ym.prototype,{name:{get:function(){return this._name}},clock:{get:function(){return this._clock}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(o){this._entityCollection.show=o}},clustering:{get:function(){return this._entityCluster},set:function(o){this._entityCluster=o}},credit:{get:function(){return this._credit}}});Ym.updaters=[yKi,CKi,bKi,wKi,EKi,AKi,SKi,PKi,sKi,lKi,IKi,MKi,DKi,LKi,OKi,dKi,NKi,uKi,FKi,cKi,BKi,hKi,_Ki];Ym.registerUpdater=function(o){Ym.updaters.includes(o)||Ym.updaters.push(o)};Ym.unregisterUpdater=function(o){if(Ym.updaters.includes(o)){let f=Ym.updaters.indexOf(o);Ym.updaters.splice(f,1)}};Ym.prototype.process=function(o,f){return iyt(this,o,f,!1)};Ym.prototype.load=function(o,f){return iyt(this,o,f,!0)};Ym.prototype.update=function(o){return!0};Ym.processPacketData=Zi;Ym.processPositionPacketData=tyt;Ym.processMaterialPacketData=Ow;Ym._processCzml=function(o,f,m,x,v){if(x=x??Ym.updaters,Array.isArray(o))for(let y=0,C=o.length;y<C;++y)oit(o[y],f,x,m,v);else oit(o,f,x,m,v)};var eee=Ym,wAe=32,zKi="http://www.opengis.net/kml/2.2",VS="http://www.google.com/kml/ext/2.2",UKi="http://www.w3.org/2000/xmlns/";function Nfe(o){this._files={},this._promises=[],this._count=0,this._modelCallback=o}var HKi=/^data:image\/([^,;]+)/;Nfe.prototype.texture=function(o){let f=this,m;if(typeof o=="string"||o instanceof Wr){if(o=Wr.createIfNeeded(o),!o.isDataUri)return o.url;let x=o.url.match(HKi);m=`texture_${++this._count}`,N(x)&&(m+=`.${x[1]}`);let v=o.fetchBlob().then(function(y){f._files[m]=y});return this._promises.push(v),m}if(o instanceof HTMLCanvasElement){m=`texture_${++this._count}.png`;let x=new Promise(v=>{o.toBlob(function(y){f._files[m]=y,v()})});return this._promises.push(x),m}return""};function GKi(o,f){return function(m){o._files[f]=m}}Nfe.prototype.model=function(o,f){let m=this._modelCallback;if(!N(m))throw new Xi("Encountered a model entity while exporting to KML, but no model callback was supplied.");let x={},v=m(o,f,x);for(let y in x)if(x.hasOwnProperty(y)){let C=Promise.resolve(x[y]);this._promises.push(C),C.then(GKi(this,y))}return v};Object.defineProperties(Nfe.prototype,{promise:{get:function(){return Promise.all(this._promises)}},files:{get:function(){return this._files}}});function Ffe(o){this._time=o}Ffe.prototype.get=function(o,f,m){let x;return N(o)&&(x=N(o.getValue)?o.getValue(this._time,m):o),x??f};Ffe.prototype.getColor=function(o,f){let m=this.get(o,f);if(N(m))return CV(m)};Ffe.prototype.getMaterialType=function(o){if(N(o))return o.getType(this._time)};function I4e(){this._ids={},this._styles={},this._count=0}I4e.prototype.get=function(o){let f=this._ids,m=o.innerHTML;if(N(f[m]))return f[m];let x=`style-${++this._count}`;return o.setAttribute("id",x),x=`#${x}`,f[m]=x,this._styles[m]=o,x};I4e.prototype.save=function(o){let f=this._styles,m=o.childNodes[0];for(let x in f)f.hasOwnProperty(x)&&o.insertBefore(f[x],m)};function nyt(){this._ids={}}nyt.prototype.get=function(o){if(!N(o))return this.get(Hu());let f=this._ids;return N(f[o])?`${o.toString()}-${++f[o]}`:(f[o]=0,o)};function M4e(o){o=o??pi.EMPTY_OBJECT;let f=o.entities,m=o.kmz??!1,x=M4e._createState(o),v=f.values.filter(function(E){return!N(E.parent)}),y=x.kmlDoc,C=y.documentElement;C.setAttributeNS(UKi,"xmlns:gx",VS);let w=y.createElement("Document");C.appendChild(w),ayt(x,w,v),x.styleCache.save(w);let T=x.externalFileHandler;return T.promise.then(function(){let E=new XMLSerializer().serializeToString(x.kmlDoc);return m?WKi(E,T.files):{kml:E,externalFiles:T.files}})}function WKi(o,f){let m=va("ThirdParty/Workers/z-worker-pako.js");KDe({workerScripts:{deflate:[m,"./pako_deflate.min.js"],inflate:[m,"./pako_inflate.min.js"]}});let x=new vct,v=new wci(x);return v.add("doc.kml",new Gui(o)).then(function(){let y=Object.keys(f);return oyt(v,y,f,0)}).then(function(){return v.close()}).then(function(y){return{kmz:y}})}function oyt(o,f,m,x){if(f.length===x)return;let v=f[x];return o.add(v,new uhe(m[v])).then(function(){return oyt(o,f,m,x+1)})}M4e._createState=function(o){let f=o.entities,m=new I4e,x=f.computeAvailability(),v=N(o.time)?o.time:x.start,y=o.defaultAvailability??x,C=o.sampleDuration??60;y.start===kn.MINIMUM_VALUE?y.stop===kn.MAXIMUM_VALUE?y=new Rl:si.addSeconds(y.stop,-10*C,y.start):y.stop===kn.MAXIMUM_VALUE&&si.addSeconds(y.start,10*C,y.stop);let w=new Nfe(o.modelCallback);return{kmlDoc:document.implementation.createDocument(zKi,"kml"),ellipsoid:o.ellipsoid??Ei.default,idManager:new nyt,styleCache:m,externalFileHandler:w,time:v,valueGetter:new Ffe(v),sampleDuration:C,defaultAvailability:new ky([y])}};function ayt(o,f,m){let x=o.kmlDoc,v=o.styleCache,y=o.valueGetter,C=o.idManager,w=m.length,T,E,A;for(let S=0;S<w;++S){let M=m[S];T=[],E=[],A=[],jKi(o,M,E,A),qKi(o,M.polyline,E,A),sit(o,M.rectangle,E,A,T),sit(o,M.polygon,E,A,T),$Ki(o,M,M.model,E,A);let I,P=M.availability;N(P)&&(I=x.createElement("TimeSpan"),si.equals(P.start,kn.MINIMUM_VALUE)||I.appendChild(os(x,"begin",si.toIso8601(P.start))),si.equals(P.stop,kn.MAXIMUM_VALUE)||I.appendChild(os(x,"end",si.toIso8601(P.stop))));for(let L=0;L<T.length;++L){let O=T[L];O.setAttribute("id",C.get(M.id)),O.appendChild(os(x,"name",M.name)),O.appendChild(os(x,"visibility",M.show)),O.appendChild(os(x,"description",M.description)),N(I)&&O.appendChild(I),f.appendChild(O)}let D=E.length;if(D>0){let L=x.createElement("Placemark");L.setAttribute("id",C.get(M.id));let O=M.name,F=M.label;if(N(F)){let H=x.createElement("LabelStyle"),G=y.get(F.text);O=N(G)&&G.length>0?G:O;let W=y.getColor(F.fillColor);N(W)&&(H.appendChild(os(x,"color",W)),H.appendChild(os(x,"colorMode","normal")));let Y=y.get(F.scale);N(Y)&&H.appendChild(os(x,"scale",Y)),A.push(H)}L.appendChild(os(x,"name",O)),L.appendChild(os(x,"visibility",M.show)),L.appendChild(os(x,"description",M.description)),N(I)&&L.appendChild(I),f.appendChild(L);let B=A.length;if(B>0){let H=x.createElement("Style");for(let G=0;G<B;++G)H.appendChild(A[G]);L.appendChild(os(x,"styleUrl",v.get(H)))}if(E.length===1)L.appendChild(E[0]);else if(E.length>1){let H=x.createElement("MultiGeometry");for(let G=0;G<D;++G)H.appendChild(E[G]);L.appendChild(H)}}let R=M._children;if(R.length>0){let L=x.createElement("Folder");L.setAttribute("id",C.get(M.id)),L.appendChild(os(x,"name",M.name)),L.appendChild(os(x,"visibility",M.show)),L.appendChild(os(x,"description",M.description)),f.appendChild(L),ayt(o,L,R)}}}var Eb=new V,Q2=new kt,ES=new si;function jKi(o,f,m,x){let v=o.kmlDoc,y=o.ellipsoid,C=o.valueGetter,w=f.billboard??f.point;if(!N(w)&&!N(f.path))return;let T=f.position;if(!T.isConstant){syt(o,f,w,m,x);return}C.get(T,void 0,Eb);let E=os(v,"coordinates",yV(Eb,y)),A=v.createElement("Point"),S=v.createElement("altitudeMode");S.appendChild(WV(o,w.heightReference)),A.appendChild(S),A.appendChild(E),m.push(A);let M=w instanceof u3?uyt(o,w):lyt(o,w);x.push(M)}function syt(o,f,m,x,v){let y=o.kmlDoc,C=o.ellipsoid,w=o.valueGetter,T,E=f.position,A=!0;E instanceof dw?(T=E.intervals,A=!1):T=f.availability??o.defaultAvailability;let S=m instanceof _Q,M,I,P,D=[];for(M=0;M<T.length;++M){let L=T.get(M),O=A?E:L.data,F=y.createElement("altitudeMode");O instanceof vW?(O=O._value,F.appendChild(WV(o,qn.CLAMP_TO_GROUND))):N(m)?F.appendChild(WV(o,m.heightReference)):F.appendChild(WV(o,qn.NONE));let B=[],H=[];if(O.isConstant){w.get(O,void 0,Eb);let W=os(y,"coordinates",yV(Eb,C));B.push(si.toIso8601(L.start)),H.push(W),B.push(si.toIso8601(L.stop)),H.push(W)}else if(O instanceof aE)for(P=O._property._times,I=0;I<P.length;++I)B.push(si.toIso8601(P[I])),O.getValueInReferenceFrame(P[I],Q0.FIXED,Eb),H.push(yV(Eb,C));else if(O instanceof fL){P=O._times;let W=O._values;for(I=0;I<P.length;++I)B.push(si.toIso8601(P[I])),V.fromArray(W,I*3,Eb),H.push(yV(Eb,C))}else{let W=o.sampleDuration;L.start.clone(ES),L.isStartIncluded||si.addSeconds(ES,W,ES);let Y=L.stop;for(;si.lessThan(ES,Y);)O.getValue(ES,Eb),B.push(si.toIso8601(ES)),H.push(yV(Eb,C)),si.addSeconds(ES,W,ES);L.isStopIncluded&&si.equals(ES,Y)&&(O.getValue(ES,Eb),B.push(si.toIso8601(ES)),H.push(yV(Eb,C)))}let G=y.createElementNS(VS,"Track");G.appendChild(F);for(let W=0;W<B.length;++W){let Y=os(y,"when",B[W]),K=os(y,"coord",H[W],VS);G.appendChild(Y),G.appendChild(K)}S&&G.appendChild(cyt(o,m)),D.push(G)}if(D.length===1)x.push(D[0]);else if(D.length>1){let L=y.createElementNS(VS,"MultiTrack");for(M=0;M<D.length;++M)L.appendChild(D[M]);x.push(L)}if(N(m)&&!S){let L=m instanceof u3?uyt(o,m):lyt(o,m);v.push(L)}let R=f.path;if(N(R)){let L=w.get(R.width),O=R.material;if(N(O)||N(L)){let F=y.createElement("LineStyle");N(L)&&F.appendChild(os(y,"width",L)),D4e(o,O,F),v.push(F)}}}function lyt(o,f){let m=o.kmlDoc,x=o.valueGetter,v=m.createElement("IconStyle"),y=x.getColor(f.color);N(y)&&(v.appendChild(os(m,"color",y)),v.appendChild(os(m,"colorMode","normal")));let C=x.get(f.pixelSize);return N(C)&&v.appendChild(os(m,"scale",C/wAe)),v}function uyt(o,f){let m=o.kmlDoc,x=o.valueGetter,v=o.externalFileHandler,y=m.createElement("IconStyle"),C=x.get(f.image);if(N(C)){C=v.texture(C);let M=m.createElement("Icon");M.appendChild(os(m,"href",C));let I=x.get(f.imageSubRegion);N(I)&&(M.appendChild(os(m,"x",I.x,VS)),M.appendChild(os(m,"y",I.y,VS)),M.appendChild(os(m,"w",I.width,VS)),M.appendChild(os(m,"h",I.height,VS))),y.appendChild(M)}let w=x.getColor(f.color);N(w)&&(y.appendChild(os(m,"color",w)),y.appendChild(os(m,"colorMode","normal")));let T=x.get(f.scale);N(T)&&y.appendChild(os(m,"scale",T));let E=x.get(f.pixelOffset);if(N(E)){T=T??1,at.divideByScalar(E,T,E);let M=x.get(f.width,wAe),I=x.get(f.height,wAe),P=x.get(f.horizontalOrigin,Mc.CENTER);P===Mc.CENTER?E.x-=M*.5:P===Mc.RIGHT&&(E.x-=M);let D=x.get(f.verticalOrigin,co.CENTER);D===co.TOP?E.y+=I:D===co.CENTER&&(E.y+=I*.5);let R=m.createElement("hotSpot");R.setAttribute("x",-E.x),R.setAttribute("y",E.y),R.setAttribute("xunits","pixels"),R.setAttribute("yunits","pixels"),y.appendChild(R)}let A=x.get(f.rotation),S=x.get(f.alignedAxis);return N(A)&&V.equals(V.UNIT_Z,S)&&(A=Ce.toDegrees(-A),A===0&&(A=360),y.appendChild(os(m,"heading",A))),y}function qKi(o,f,m,x){let v=o.kmlDoc,y=o.ellipsoid,C=o.valueGetter;if(!N(f))return;let w=v.createElement("LineString"),T=v.createElement("altitudeMode"),E=C.get(f.clampToGround,!1),A;E?(w.appendChild(os(v,"tessellate",!0)),A=v.createTextNode("clampToGround")):A=v.createTextNode("absolute"),T.appendChild(A),w.appendChild(T);let S=f.positions,M=C.get(S),I=os(v,"coordinates",yV(M,y));w.appendChild(I);let P=C.get(f.zIndex);E&&N(P)&&w.appendChild(os(v,"drawOrder",P,VS)),m.push(w);let D=v.createElement("LineStyle"),R=C.get(f.width);N(R)&&D.appendChild(os(v,"width",R)),D4e(o,f.material,D),x.push(D)}function YKi(o,f,m){let x=o.kmlDoc,v=o.valueGetter,y=v.get(f.height,0);m>0&&(y=m);let C=f.coordinates,w=v.get(C),T=[],E=[Si.northeast,Si.southeast,Si.southwest,Si.northwest];for(let I=0;I<4;++I)E[I](w,Q2),T.push(`${Ce.toDegrees(Q2.longitude)},${Ce.toDegrees(Q2.latitude)},${y}`);let A=os(x,"coordinates",T.join(" ")),S=x.createElement("outerBoundaryIs"),M=x.createElement("LinearRing");return M.appendChild(A),S.appendChild(M),[S]}function ait(o,f,m,x){let v=o.kmlDoc,y=o.ellipsoid,C=[],w=f.length;for(let A=0;A<w;++A)kt.fromCartesian(f[A],y,Q2),C.push(`${Ce.toDegrees(Q2.longitude)},${Ce.toDegrees(Q2.latitude)},${x?Q2.height:m}`);let T=os(v,"coordinates",C.join(" ")),E=v.createElement("LinearRing");return E.appendChild(T),E}function XKi(o,f,m){let x=o.kmlDoc,v=o.valueGetter,y=v.get(f.height,0),C=v.get(f.perPositionHeight,!1);!C&&m>0&&(y=m);let w=[],T=f.hierarchy,E=v.get(T),A=Array.isArray(E)?E:E.positions,S=x.createElement("outerBoundaryIs");S.appendChild(ait(o,A,y,C)),w.push(S);let M=E.holes;if(N(M)){let I=M.length;for(let P=0;P<I;++P){let D=x.createElement("innerBoundaryIs");D.appendChild(ait(o,M[P].positions,y,C)),w.push(D)}}return w}function sit(o,f,m,x,v){let y=o.kmlDoc,C=o.valueGetter;if(!N(f))return;let w=f instanceof mW;if(w&&C.getMaterialType(f.material)==="Image"){KKi(o,f,v);return}let T=y.createElement("Polygon"),E=C.get(f.extrudedHeight,0);E>0&&T.appendChild(os(y,"extrude",!0));let A=w?YKi(o,f,E):XKi(o,f,E),S=A.length;for(let R=0;R<S;++R)T.appendChild(A[R]);let M=y.createElement("altitudeMode");M.appendChild(WV(o,f.heightReference)),T.appendChild(M),m.push(T);let I=y.createElement("PolyStyle"),P=C.get(f.fill,!1);P&&I.appendChild(os(y,"fill",P)),D4e(o,f.material,I);let D=C.get(f.outline,!1);if(D){I.appendChild(os(y,"outline",D));let R=y.createElement("LineStyle"),L=C.get(f.outlineWidth,1);R.appendChild(os(y,"width",L));let O=C.getColor(f.outlineColor,ze.BLACK);R.appendChild(os(y,"color",O)),R.appendChild(os(y,"colorMode","normal")),x.push(R)}x.push(I)}function KKi(o,f,m){let x=o.kmlDoc,v=o.valueGetter,y=o.externalFileHandler,C=x.createElement("GroundOverlay"),w=x.createElement("altitudeMode");w.appendChild(WV(o,f.heightReference)),C.appendChild(w);let T=v.get(f.height);N(T)&&C.appendChild(os(x,"altitude",T));let E=v.get(f.coordinates),A=x.createElement("LatLonBox");A.appendChild(os(x,"north",Ce.toDegrees(E.north))),A.appendChild(os(x,"south",Ce.toDegrees(E.south))),A.appendChild(os(x,"east",Ce.toDegrees(E.east))),A.appendChild(os(x,"west",Ce.toDegrees(E.west))),C.appendChild(A);let S=v.get(f.material),M=y.texture(S.image),I=x.createElement("Icon");I.appendChild(os(x,"href",M)),C.appendChild(I);let P=S.color;N(P)&&C.appendChild(os(x,"color",CV(S.color))),m.push(C)}function cyt(o,f){let m=o.kmlDoc,x=o.valueGetter,v=o.externalFileHandler,y=m.createElement("Model"),C=x.get(f.scale);if(N(C)){let E=m.createElement("scale");E.appendChild(os(m,"x",C)),E.appendChild(os(m,"y",C)),E.appendChild(os(m,"z",C)),y.appendChild(E)}let w=m.createElement("Link"),T=v.model(f,o.time);return w.appendChild(os(m,"href",T)),y.appendChild(w),y}function $Ki(o,f,m,x,v){let y=o.kmlDoc,C=o.ellipsoid,w=o.valueGetter;if(!N(m))return;let T=f.position;if(!T.isConstant){syt(o,f,m,x,v);return}let E=cyt(o,m),A=y.createElement("altitudeMode");A.appendChild(WV(o,m.heightReference)),E.appendChild(A),w.get(T,void 0,Eb),kt.fromCartesian(Eb,C,Q2);let S=y.createElement("Location");S.appendChild(os(y,"longitude",Ce.toDegrees(Q2.longitude))),S.appendChild(os(y,"latitude",Ce.toDegrees(Q2.latitude))),S.appendChild(os(y,"altitude",Q2.height)),E.appendChild(S),x.push(E)}function D4e(o,f,m){let x=o.kmlDoc,v=o.valueGetter;if(!N(f))return;let y=v.get(f);if(!N(y))return;let C,w=v.getMaterialType(f),T,E;switch(w){case"Image":C=CV(ze.WHITE);break;case"Color":case"Grid":case"PolylineGlow":case"PolylineArrow":case"PolylineDash":C=CV(y.color);break;case"PolylineOutline":C=CV(y.color),T=CV(y.outlineColor),E=y.outlineWidth,m.appendChild(os(x,"outerColor",T,VS)),m.appendChild(os(x,"outerWidth",E,VS));break;case"Stripe":C=CV(y.oddColor);break}N(C)&&(m.appendChild(os(x,"color",C)),m.appendChild(os(x,"colorMode","normal")))}function WV(o,f){let m=o.kmlDoc,x=o.valueGetter.get(f,qn.NONE),v;switch(x){case qn.NONE:v=m.createTextNode("absolute");break;case qn.CLAMP_TO_GROUND:v=m.createTextNode("clampToGround");break;case qn.RELATIVE_TO_GROUND:v=m.createTextNode("relativeToGround");break}return v}function yV(o,f){Array.isArray(o)||(o=[o]);let m=o.length,x=[];for(let v=0;v<m;++v)kt.fromCartesian(o[v],f,Q2),x.push(`${Ce.toDegrees(Q2.longitude)},${Ce.toDegrees(Q2.latitude)},${Q2.height}`);return x.join(" ")}function os(o,f,m,x){m=m??"",typeof m=="boolean"&&(m=m?"1":"0");let v=N(x)?o.createElementNS(x,f):o.createElement(f),y=m==="string"&&m.indexOf("<")!==-1?o.createCDATASection(m):o.createTextNode(m);return v.appendChild(y),v}function CV(o){let f="",m=o.toBytes();for(let x=3;x>=0;--x)f+=m[x]<16?`0${m[x].toString(16)}`:m[x].toString(16);return f}var hyt=M4e,dyt;typeof DOMParser<"u"&&(dyt=new DOMParser);var JKi=new zut({stripPrefix:!1,email:!1,replaceFn:function(o,f){return f.urlMatchType==="scheme"||f.urlMatchType==="www"}}),Rue=32,lit=2414016,uit=1,cit=16093e3,hit=.1,QKi=[null,void 0,"http://www.topografix.com/GPX/1/1"],Bd={gpx:QKi};function ZKi(o){return new Promise((f,m)=>{let x=new FileReader;x.addEventListener("load",function(){f(x.result)}),x.addEventListener("error",function(){m(x.error)}),x.readAsText(o)})}function R4e(o,f){let m=MJ(o,"id");return m=N(m)?m:Hu(),f.getOrCreateEntity(m)}function L4e(o){let f=dit(o,"lon"),m=dit(o,"lat"),x=wK(o,"ele",Bd.gpx);return V.fromDegrees(f,m,x)}function dit(o,f){if(!N(o))return;let m=o.getAttribute(f);if(m!==null){let x=parseFloat(m);return isNaN(x)?void 0:x}}function MJ(o,f){if(!N(o))return;let m=o.getAttribute(f);return m!==null?m:void 0}function rB(o,f,m){if(!N(o))return;let x=o.childNodes,v=x.length;for(let y=0;y<v;y++){let C=x[y];if(C.localName===f&&m.indexOf(C.namespaceURI)!==-1)return C}}function O4e(o,f,m){if(!N(o))return;let x=[],v=o.getElementsByTagName(f),y=v.length;for(let C=0;C<y;C++){let w=v[C];w.localName===f&&m.indexOf(w.namespaceURI)!==-1&&x.push(w)}return x}function wK(o,f,m){let x=rB(o,f,m);if(N(x)){let v=parseFloat(x.textContent);return isNaN(v)?void 0:v}}function kb(o,f,m){let x=rB(o,f,m);if(N(x))return x.textContent.trim()}function fyt(o){let f=new u3;return f.width=Rue,f.height=Rue,f.scaleByDistance=new fa(lit,uit,cit,hit),f.pixelOffsetScaleByDistance=new fa(lit,uit,cit,hit),f.verticalOrigin=new Ch(co.BOTTOM),f.image=o,f}function e$i(){let o=new pW;return o.translucencyByDistance=new fa(3e6,1,5e6,0),o.pixelOffset=new at(17,0),o.horizontalOrigin=Mc.LEFT,o.font="16px sans-serif",o.style=$f.FILL_AND_OUTLINE,o}function pyt(o){let f=new CM;return f.width=4,f.material=new QL,f.material.color=N(o)?o:ze.RED,f.material.outlineWidth=2,f.material.outlineColor=ze.BLACK,f}var fit={time:{text:"Time",tag:"time"},comment:{text:"Comment",tag:"cmt"},description:{text:"Description",tag:"desc"},source:{text:"Source",tag:"src"},number:{text:"GPS track/route number",tag:"number"},type:{text:"Type",tag:"type"}},TK;typeof document<"u"&&(TK=document.createElement("div"));function N4e(o,f){let m,x="",v=Object.keys(fit),y=v.length;for(m=0;m<y;m++){let A=v[m],S=fit[A];S.value=kb(o,S.tag,Bd.gpx)??"",N(S.value)&&S.value!==""&&(x=`${x}<p>${S.text}: ${S.value}</p>`)}if(!N(x)||x==="")return;x=JKi.link(x),TK.innerHTML=x;let C=TK.querySelectorAll("a");for(m=0;m<C.length;m++)C[m].setAttribute("target","_blank");let w=ze.WHITE,T=ze.BLACK,E='<div class="cesium-infoBox-description-lighter" style="';return E+="overflow:auto;",E+="word-wrap:break-word;",E+=`background-color:${w.toCssColorString()};`,E+=`color:${T.toCssColorString()};`,E+='">',E+=`${TK.innerHTML}</div>`,TK.innerHTML="",E}function myt(o,f,m,x){let v=L4e(f),y=R4e(f,m);y.position=v;let C=N(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",ze.RED,Rue);y.billboard=fyt(C);let w=kb(f,"name",Bd.gpx);y.name=w,y.label=e$i(),y.label.text=w,y.description=N4e(f,y),x.clampToGround&&(y.billboard.heightReference=qn.CLAMP_TO_GROUND,y.label.heightReference=qn.CLAMP_TO_GROUND)}function t$i(o,f,m,x){let v=R4e(f,m);v.description=N4e(f,v);let y=O4e(f,"rtept",Bd.gpx),C=new Array(y.length);for(let w=0;w<y.length;w++)myt(o,y[w],m,x),C[w]=L4e(y[w]);v.polyline=pyt(x.routeColor),x.clampToGround&&(v.polyline.clampToGround=!0),v.polyline.positions=C}function i$i(o,f,m,x){let v=R4e(f,m);v.description=N4e(f,v);let y=O4e(f,"trkseg",Bd.gpx),C=[],w=[],T,E=!0,A=new aE;for(let S=0;S<y.length;S++)T=r$i(y[S]),C=C.concat(T.positions),T.times.length>0?(w=w.concat(T.times),A.addSamples(w,C),E=E&&!0):E=!1;if(E){let S=N(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",ze.RED,Rue);v.billboard=fyt(S),v.position=A,x.clampToGround&&(v.billboard.heightReference=qn.CLAMP_TO_GROUND),v.availability=new ky,v.availability.addInterval(new Rl({start:w[0],stop:w[w.length-1]}))}v.polyline=pyt(x.trackColor),v.polyline.positions=C,x.clampToGround&&(v.polyline.clampToGround=!0)}function r$i(o){let f={positions:[],times:[]},m=O4e(o,"trkpt",Bd.gpx),x;for(let v=0;v<m.length;v++){let y=L4e(m[v]);f.positions.push(y),x=kb(m[v],"time",Bd.gpx),N(x)&&f.times.push(si.fromIso8601(x))}return f}function n$i(o){let f=rB(o,"metadata",Bd.gpx);if(N(f)){let m={name:kb(f,"name",Bd.gpx),desc:kb(f,"desc",Bd.gpx),author:o$i(f),copyright:s$i(f),link:xyt(f),time:kb(f,"time",Bd.gpx),keywords:kb(f,"keywords",Bd.gpx),bounds:l$i(f)};if(N(m.name)||N(m.desc)||N(m.author)||N(m.copyright)||N(m.link)||N(m.time)||N(m.keywords)||N(m.bounds))return m}}function o$i(o){let f=rB(o,"author",Bd.gpx);if(N(f)){let m={name:kb(f,"name",Bd.gpx),email:a$i(f),link:xyt(f)};if(N(m.name)||N(m.email)||N(m.link))return m}}function a$i(o){let f=rB(o,"email",Bd.gpx);if(N(f)){let m=kb(f,"id",Bd.gpx),x=kb(f,"domain",Bd.gpx);return`${m}@${x}`}}function xyt(o){let f=rB(o,"link",Bd.gpx);if(N(f)){let m={href:MJ(f,"href"),text:kb(f,"text",Bd.gpx),mimeType:kb(f,"type",Bd.gpx)};if(N(m.href)||N(m.text)||N(m.mimeType))return m}}function s$i(o){let f=rB(o,"copyright",Bd.gpx);if(N(f)){let m={author:MJ(f,"author"),year:kb(f,"year",Bd.gpx),license:kb(f,"license",Bd.gpx)};if(N(m.author)||N(m.year)||N(m.license))return m}}function l$i(o){let f=rB(o,"bounds",Bd.gpx);if(N(f)){let m={minLat:wK(f,"minlat",Bd.gpx),maxLat:wK(f,"maxlat",Bd.gpx),minLon:wK(f,"minlon",Bd.gpx),maxLon:wK(f,"maxlon",Bd.gpx)};if(N(m.minLat)||N(m.maxLat)||N(m.minLon)||N(m.maxLon))return m}}var pit={wpt:myt,rte:t$i,trk:i$i};function u$i(o,f,m,x){let v=Object.keys(pit),y=v.length;for(let C=0;C<y;C++){let w=v[C],T=pit[w],E=f.childNodes,A=E.length;for(let S=0;S<A;S++){let M=E[S];M.localName===w&&Bd.gpx.indexOf(M.namespaceURI)!==-1&&T(o,M,m,x)}}}function mit(o,f,m){let x=o._entityCollection;x.removeAll();let v=f.documentElement,y=MJ(v,"version"),C=MJ(v,"creator"),w,T=n$i(v);N(T)&&(w=T.name),v.localName==="gpx"?u$i(o,v,x,m):console.log(`GPX - Unsupported node: ${v.localName}`);let E,A=x.computeAvailability(),S=A.start,M=A.stop,I=si.equals(S,kn.MINIMUM_VALUE),P=si.equals(M,kn.MAXIMUM_VALUE);if(!I||!P){let R;I&&(R=new Date,R.setHours(0,0,0,0),S=si.fromDate(R)),P&&(R=new Date,R.setHours(24,0,0,0),M=si.fromDate(R)),E=new sz,E.startTime=S,E.stopTime=M,E.currentTime=si.clone(S),E.clockRange=Pg.LOOP_STOP,E.clockStep=Ef.SYSTEM_CLOCK_MULTIPLIER,E.multiplier=Math.round(Math.min(Math.max(si.secondsDifference(M,S)/60,1),31556900))}let D=!1;return o._name!==w&&(o._name=w,D=!0),o._creator!==C&&(o._creator=C,D=!0),c$i(o._metadata,T)&&(o._metadata=T,D=!0),o._version!==y&&(o._version=y,D=!0),E!==o._clock&&(D=!0,o._clock=E),D&&o._changed.raiseEvent(o),Tv.setLoading(o,!1),o}function c$i(o,f){return!N(o)&&!N(f)?!1:N(o)&&N(f)?o.name!==f.name||o.dec!==f.desc||o.src!==f.src||o.author!==f.author||o.copyright!==f.copyright||o.link!==f.link||o.time!==f.time||o.bounds!==f.bounds:!0}function h$i(o,f,m,x){x=x??pi.EMPTY_OBJECT;let v=m;if(typeof m=="string"||m instanceof Wr){m=Wr.createIfNeeded(m),v=m.fetchBlob();let y=o._resourceCredits,C=m.credits;if(N(C)){let w=C.length;for(let T=0;T<w;T++)y.push(C[T])}}return Promise.resolve(v).then(function(y){return y instanceof Blob?ZKi(y).then(function(C){let w,T;try{w=dyt.parseFromString(C,"application/xml")}catch(E){T=E.toString()}if(N(T)||w.body||w.documentElement.tagName==="parsererror"){let E=N(T)?T:w.documentElement.firstChild.nodeValue;throw E||(E=w.body.innerText),new Xi(E)}return mit(o,w,x)}):mit(o,y,x)}).catch(function(y){return o._error.raiseEvent(o,y),console.log(y),Promise.reject(y)})}function F9(){this._changed=new Or,this._error=new Or,this._loading=new Or,this._clock=void 0,this._entityCollection=new GE(this),this._entityCluster=new R5,this._name=void 0,this._version=void 0,this._creator=void 0,this._metadata=void 0,this._isLoading=!1,this._pinBuilder=new wQ}F9.load=function(o,f){return new F9().load(o,f)};Object.defineProperties(F9.prototype,{name:{get:function(){return this._name}},version:{get:function(){return this._version}},creator:{get:function(){return this._creator}},metadata:{get:function(){return this._metadata}},clock:{get:function(){return this._clock}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(o){this._entityCollection.show=o}},clustering:{get:function(){return this._entityCluster},set:function(o){this._entityCluster=o}}});F9.prototype.update=function(o){return!0};F9.prototype.load=function(o,f){if(!N(o))throw new At("data is required.");f=f??pi.EMPTY_OBJECT,Tv.setLoading(this,!0);let m=this._name,x=this;return h$i(this,this._entityCollection,o,f).then(function(){let v,y=x._entityCollection.computeAvailability(),C=y.start,w=y.stop,T=si.equals(C,kn.MINIMUM_VALUE),E=si.equals(w,kn.MAXIMUM_VALUE);if(!T||!E){let S;T&&(S=new Date,S.setHours(0,0,0,0),C=si.fromDate(S)),E&&(S=new Date,S.setHours(24,0,0,0),w=si.fromDate(S)),v=new sz,v.startTime=C,v.stopTime=w,v.currentTime=si.clone(C),v.clockRange=Pg.LOOP_STOP,v.clockStep=Ef.SYSTEM_CLOCK_MULTIPLIER,v.multiplier=Math.round(Math.min(Math.max(si.secondsDifference(w,C)/60,1),31556900))}let A=!1;return v!==x._clock&&(x._clock=v,A=!0),m!==x._name&&(A=!0),A&&x._changed.raiseEvent(x),Tv.setLoading(x,!1),x}).catch(function(v){return Tv.setLoading(x,!1),x._error.raiseEvent(x,v),console.log(v),Promise.reject(v)})};var F4e=F9;function tee(){At.throwInstantiationError()}tee.prototype.update=At.throwInstantiationError;tee.prototype.getBoundingSphere=At.throwInstantiationError;tee.prototype.isDestroyed=At.throwInstantiationError;tee.prototype.destroy=At.throwInstantiationError;var gyt=tee;function b7(o,f){this._tilingScheme=o,this._maximumLevel=f,this._rootNodes=[]}var dV=new Si;function d$i(o,f,m,x){let v=x.length;for(let y=0;y<v;++y){let C=x[y];if(C.x===f&&C.y===m&&C.level===o)return!0}return!1}b7.prototype.addAvailableTileRange=function(o,f,m,x,v){let y=this._tilingScheme,C=this._rootNodes;if(o===0)for(let M=m;M<=v;++M)for(let I=f;I<=x;++I)d$i(o,I,M,C)||C.push(new H6(y,void 0,0,I,M));y.tileXYToRectangle(f,m,o,dV);let w=dV.west,T=dV.north;y.tileXYToRectangle(x,v,o,dV);let E=dV.east,A=dV.south,S=new g$i(o,w,A,E,T);for(let M=0;M<C.length;++M){let I=C[M];B4e(I.extent,S)&&_$i(this._maximumLevel,I,S)}};b7.prototype.computeMaximumLevelAtPosition=function(o){let f;for(let m=0;m<this._rootNodes.length;++m){let x=this._rootNodes[m];if(G6(x.extent,o)){f=x;break}}return N(f)?EK(void 0,f,o):-1};var f$i=[],p$i=[],m$i=new Si,x$i=new Si;b7.prototype.computeBestAvailableLevelOverRectangle=function(o){let f=f$i;f.length=0,o.east<o.west?(f.push(Si.fromRadians(-Math.PI,o.south,o.east,o.north,m$i)),f.push(Si.fromRadians(o.west,o.south,Math.PI,o.north,x$i))):f.push(o);let m=p$i;m.length=0;let x;for(x=0;x<this._rootNodes.length;++x)AK(m,this._rootNodes[x],f);for(x=m.length-1;x>=0;--x)if(N(m[x])&&m[x].length===0)return x;return 0};var xit=new kt;b7.prototype.isTileAvailable=function(o,f,m){let x=this._tilingScheme.tileXYToRectangle(f,m,o,dV);return Si.center(x,xit),this.computeMaximumLevelAtPosition(xit)>=o};b7.prototype.computeChildMaskForTile=function(o,f,m){let x=o+1;if(x>=this._maximumLevel)return 0;let v=0;return v|=this.isTileAvailable(x,2*f,2*m+1)?1:0,v|=this.isTileAvailable(x,2*f+1,2*m+1)?2:0,v|=this.isTileAvailable(x,2*f,2*m)?4:0,v|=this.isTileAvailable(x,2*f+1,2*m)?8:0,v};function H6(o,f,m,x,v){this.tilingScheme=o,this.parent=f,this.level=m,this.x=x,this.y=v,this.extent=o.tileXYToRectangle(x,v,m),this.rectangles=[],this._sw=void 0,this._se=void 0,this._nw=void 0,this._ne=void 0}Object.defineProperties(H6.prototype,{nw:{get:function(){return this._nw||(this._nw=new H6(this.tilingScheme,this,this.level+1,this.x*2,this.y*2)),this._nw}},ne:{get:function(){return this._ne||(this._ne=new H6(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2)),this._ne}},sw:{get:function(){return this._sw||(this._sw=new H6(this.tilingScheme,this,this.level+1,this.x*2,this.y*2+1)),this._sw}},se:{get:function(){return this._se||(this._se=new H6(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2+1)),this._se}}});function g$i(o,f,m,x,v){this.level=o,this.west=f,this.south=m,this.east=x,this.north=v}function B4e(o,f){let m=Math.max(o.west,f.west),x=Math.max(o.south,f.south),v=Math.min(o.east,f.east),y=Math.min(o.north,f.north);return x<y&&m<v}function _$i(o,f,m){for(;f.level<o;)if(Lae(f.nw.extent,m))f=f.nw;else if(Lae(f.ne.extent,m))f=f.ne;else if(Lae(f.sw.extent,m))f=f.sw;else if(Lae(f.se.extent,m))f=f.se;else break;if(f.rectangles.length===0||f.rectangles[f.rectangles.length-1].level<=m.level)f.rectangles.push(m);else{let x=Dg(f.rectangles,m.level,v$i);x<0&&(x=~x),f.rectangles.splice(x,0,m)}}function v$i(o,f){return o.level-f}function Lae(o,f){return f.west>=o.west&&f.east<=o.east&&f.south>=o.south&&f.north<=o.north}function G6(o,f){return f.longitude>=o.west&&f.longitude<=o.east&&f.latitude>=o.south&&f.latitude<=o.north}function EK(o,f,m){let x=0,v=!1;for(;!v;){let y=f._nw&&G6(f._nw.extent,m),C=f._ne&&G6(f._ne.extent,m),w=f._sw&&G6(f._sw.extent,m),T=f._se&&G6(f._se.extent,m);if(y+C+w+T>1){y&&(x=Math.max(x,EK(f,f._nw,m))),C&&(x=Math.max(x,EK(f,f._ne,m))),w&&(x=Math.max(x,EK(f,f._sw,m))),T&&(x=Math.max(x,EK(f,f._se,m)));break}else y?f=f._nw:C?f=f._ne:w?f=f._sw:T?f=f._se:v=!0}for(;f!==o;){let y=f.rectangles;for(let C=y.length-1;C>=0&&y[C].level>x;--C){let w=y[C];G6(w,m)&&(x=w.level)}f=f.parent}return x}function AK(o,f,m){if(!f)return;let x,v=!1;for(x=0;x<m.length;++x)v=v||B4e(f.extent,m[x]);if(!v)return;let y=f.rectangles;for(x=0;x<y.length;++x){let C=y[x];o[C.level]||(o[C.level]=m),o[C.level]=y$i(o[C.level],C)}AK(o,f._nw,m),AK(o,f._ne,m),AK(o,f._sw,m),AK(o,f._se,m)}function y$i(o,f){let m=[];for(let x=0;x<o.length;++x){let v=o[x];B4e(v,f)?(v.west<f.west&&m.push(new Si(v.west,v.south,f.west,v.north)),v.east>f.east&&m.push(new Si(f.east,v.south,v.east,v.north)),v.south<f.south&&m.push(new Si(Math.max(f.west,v.west),v.south,Math.min(f.east,v.east),f.south)),v.north>f.north&&m.push(new Si(Math.max(f.west,v.west),f.north,Math.min(f.east,v.east),v.north))):m.push(v)}return m}var GF=b7,C$i=15;function _yt(o){this.ellipsoid=o.ellipsoid??Ei.default,this.credit=void 0,this.tilingScheme=void 0,this.height=void 0,this.width=void 0,this.encoding=void 0,this.lodCount=void 0,this.hasAvailability=!1,this.tilesAvailable=void 0,this.tilesAvailabilityLoaded=void 0,this.levelZeroMaximumGeometricError=void 0,this.terrainDataStructure=void 0}_yt.prototype.build=function(o){o._credit=this.credit,o._tilingScheme=this.tilingScheme,o._height=this.height,o._width=this.width,o._encoding=this.encoding,o._lodCount=this.lodCount,o._hasAvailability=this.hasAvailability,o._tilesAvailable=this.tilesAvailable,o._tilesAvailabilityLoaded=this.tilesAvailabilityLoaded,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._terrainDataStructure=this.terrainDataStructure};function b$i(o,f){let m=f.copyrightText;N(m)&&(o.credit=new rs(m));let x=f.spatialReference,v=x.latestWkid??x.wkid,y=f.extent,C={ellipsoid:o.ellipsoid};if(v===4326||v===4490)C.rectangle=Si.fromDegrees(y.xmin,y.ymin,y.xmax,y.ymax),o.tilingScheme=new Xh(C);else if(v===3857){let T=Math.PI*o.ellipsoid.maximumRadius;f.extent.xmax>T&&(f.extent.xmax=T),f.extent.ymax>T&&(f.extent.ymax=T),f.extent.xmin<-T&&(f.extent.xmin=-T),f.extent.ymin<-T&&(f.extent.ymin=-T),C.rectangleSouthwestInMeters=new at(y.xmin,y.ymin),C.rectangleNortheastInMeters=new at(y.xmax,y.ymax),o.tilingScheme=new tp(C)}else throw new Xi("Invalid spatial reference");let w=f.tileInfo;if(!N(w))throw new Xi("tileInfo is required");o.width=w.rows+1,o.height=w.cols+1,o.encoding=w.format==="LERC"?f5.LERC:f5.NONE,o.lodCount=w.lods.length-1,(o.hasAvailability=f.capabilities.indexOf("Tilemap")!==-1)&&(o.tilesAvailable=new GF(o.tilingScheme,o.lodCount),o.tilesAvailable.addAvailableTileRange(0,0,0,o.tilingScheme.getNumberOfXTilesAtLevel(0),o.tilingScheme.getNumberOfYTilesAtLevel(0)),o.tilesAvailabilityLoaded=new GF(o.tilingScheme,o.lodCount)),o.levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.width,o.tilingScheme.getNumberOfXTilesAtLevel(0)),f.bandCount>1&&console.log("ArcGISTiledElevationTerrainProvider: Terrain data has more than 1 band. Using the first one."),N(f.minValues)&&N(f.maxValues)?o.terrainDataStructure={elementMultiplier:1,lowestEncodedHeight:f.minValues[0],highestEncodedHeight:f.maxValues[0]}:o.terrainDataStructure={elementMultiplier:1}}async function w$i(o,f,m){try{let x=await f.fetchJson();b$i(o,x)}catch(x){let v=`An error occurred while accessing ${f}.`;throw qm.reportError(void 0,m,N(m)?m._errorEvent:void 0,v),x}}function v5(o){o=o??pi.EMPTY_OBJECT,this._resource=void 0,this._credit=void 0,this._tilingScheme=void 0,this._levelZeroMaximumGeometricError=void 0,this._maxLevel=void 0,this._terrainDataStructure=void 0,this._width=void 0,this._height=void 0,this._encoding=void 0,this._lodCount=void 0,this._hasAvailability=!1,this._tilesAvailable=void 0,this._tilesAvailabilityLoaded=void 0,this._availableCache={},this._errorEvent=new Or}Object.defineProperties(v5.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){return this._tilesAvailable}}});v5.fromUrl=async function(o,f){f=f??pi.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Wr.createIfNeeded(o);m.appendForwardSlash(),N(f.token)&&(m=m.getDerivedResource({queryParameters:{token:f.token}}));let x=m.getDerivedResource({queryParameters:{f:"pjson"}}),v=new _yt(f);await w$i(v,x);let y=new v5(f);return v.build(y),y._resource=m,y};v5.prototype.requestTileGeometry=function(o,f,m,x){let v=this._resource.getDerivedResource({url:`tile/${m}/${f}/${o}`,request:x}),y=this._hasAvailability,C=Promise.resolve(!0),w;if(y&&!N(k4e(this,m+1,o*2,f*2))){let S=vyt(this,m+1,o*2,f*2);C=S.promise,w=S.request}let T=v.fetchArrayBuffer();if(!N(T)||!N(C))return;let E=this,A=this._tilesAvailable;return Promise.all([T,C]).then(function(S){return new CP({buffer:S[0],width:E._width,height:E._height,childTileMask:y?A.computeChildMaskForTile(m,o,f):C$i,structure:E._terrainDataStructure,encoding:E._encoding})}).catch(async function(S){if(N(w)&&w.state===Gc.CANCELLED){x.cancel();try{await x.deferred?.promise}catch{}return x.state=Gc.CANCELLED,Promise.reject(S)}return Promise.reject(S)})};function k4e(o,f,m,x){if(!o._hasAvailability)return;let v=o._tilesAvailabilityLoaded,y=o._tilesAvailable;if(f>o._lodCount)return!1;if(y.isTileAvailable(f,m,x))return!0;if(v.isTileAvailable(f,m,x))return!1}v5.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};v5.prototype.getTileDataAvailable=function(o,f,m){if(!this._hasAvailability)return;let x=k4e(this,m,o,f);if(N(x))return x;vyt(this,m,o,f)};v5.prototype.loadTileDataAvailability=function(o,f,m){};function T$i(o,f,m,x){let v=f-1,y=m-1,C=x[o.y*f+o.x],w=[],T={startX:o.x,startY:o.y,endX:0,endY:0},E=new at(o.x+1,o.y+1),A=!1,S=!1;for(;!(A&&S);){let M=E.x,I=S?E.y+1:E.y;if(!A){for(let P=o.y;P<I;++P)if(x[P*f+E.x]!==C){A=!0;break}A?(w.push(new at(E.x,o.y)),--E.x,--M,T.endX=E.x):E.x===v?(T.endX=E.x,A=!0):++E.x}if(!S){let P=E.y*f;for(let D=o.x;D<=M;++D)if(x[P+D]!==C){S=!0;break}S?(w.push(new at(o.x,E.y)),--E.y,T.endY=E.y):E.y===y?(T.endY=E.y,S=!0):++E.y}}return{endingIndices:w,range:T,value:C}}function E$i(o,f,m,x,v){let y=[];if(v.every(function(w){return w===v[0]}))return v[0]===1&&y.push({startX:o,startY:f,endX:o+m-1,endY:f+x-1}),y;let C=[new at(0,0)];for(;C.length>0;){let w=C.pop(),T=T$i(w,m,x,v);if(T.value===1){let A=T.range;A.startX+=o,A.endX+=o,A.startY+=f,A.endY+=f,y.push(A)}let E=T.endingIndices;E.length>0&&(C=C.concat(E))}return y}function vyt(o,f,m,x){if(!o._hasAvailability)return{};let v=Math.floor(m/128)*128,y=Math.floor(x/128)*128,C=Math.min(1<<f,128),w=`tilemap/${f}/${y}/${v}/${C}/${C}`,T=o._availableCache;if(N(T[w]))return T[w];let E=new Jm({throttle:!1,throttleByServer:!0,type:e2.TERRAIN}),A=o._resource.getDerivedResource({url:w,request:E}).fetchJson();return N(A)?(A=A.then(function(S){let M=E$i(v,y,C,C,S.data);o._tilesAvailabilityLoaded.addAvailableTileRange(f,v,y,v+C,y+C);let I=o._tilesAvailable;for(let P=0;P<M.length;++P){let D=M[P];I.addAvailableTileRange(f,D.startX,D.startY,D.endX,D.endY)}return k4e(o,f,m,x)}),T[w]={promise:A,request:E},A=A.finally(function(S){return delete T[w],S}),{promise:A,request:E}):{}}var Bfe=v5,yyt="https://dev.virtualearth.net/REST/v1/Locations";function V4e(o){o=o??pi.EMPTY_OBJECT;let f=o.key;this._key=f;let m={key:f};N(o.culture)&&(m.culture=o.culture),this._resource=new Wr({url:yyt,queryParameters:m}),this._credit=new rs('<img src="http://dev.virtualearth.net/Branding/logo_powered_by.png"/>',!1)}Object.defineProperties(V4e.prototype,{url:{get:function(){return yyt}},key:{get:function(){return this._key}},credit:{get:function(){return this._credit}}});V4e.prototype.geocode=async function(o){return this._resource.getDerivedResource({queryParameters:{query:o}}).fetchJsonp("jsonp").then(function(f){return f.resourceSets.length===0?[]:f.resourceSets[0].resources.map(function(m){let x=m.bbox,v=x[0],y=x[1],C=x[2],w=x[3];return{displayName:m.name,destination:Si.fromDegrees(y,v,w,C)}})})};var Cyt=V4e;function z4e(){}Object.defineProperties(z4e.prototype,{credit:{get:function(){}}});z4e.prototype.geocode=function(o){let f=o.match(/[^\s,\n]+/g);if(f.length===2||f.length===3){let m=+f[0],x=+f[1],v=f.length===3?+f[2]:300;if(isNaN(m)&&isNaN(x)){let y=/^(\d+.?\d*)([nsew])/i;for(let C=0;C<f.length;++C){let w=f[C].match(y);y.test(f[C])&&w.length===3&&(/^[ns]/i.test(w[2])?x=/^[n]/i.test(w[2])?+w[1]:-w[1]:/^[ew]/i.test(w[2])&&(m=/^[e]/i.test(w[2])?+w[1]:-w[1]))}}if(!isNaN(m)&&!isNaN(x)&&!isNaN(v)){let y={displayName:o,destination:V.fromDegrees(m,x,v)};return Promise.resolve([y])}}return Promise.resolve([])};var byt=z4e,A$i=new Xt,git=new V,R6=new V;function S$i(o){let f=o.points,m=o.times;if(f.length<3){let x=m[0],v=1/(m[1]-x),y=f[0],C=f[1];return function(w,T){N(T)||(T=new V);let E=(w-x)*v;return V.lerp(y,C,E,T)}}return function(x,v){N(v)||(v=new V);let y=o._lastTimeIndex=o.findTimeInterval(x,o._lastTimeIndex),C=(x-m[y])/(m[y+1]-m[y]),w=A$i;w.z=C,w.y=C*C,w.x=w.y*C,w.w=1;let T,E,A,S,M;return y===0?(T=f[0],E=f[1],A=o.firstTangent,S=V.subtract(f[2],T,git),V.multiplyByScalar(S,.5,S),M=Ee.multiplyByVector(mJ.hermiteCoefficientMatrix,w,w)):y===f.length-2?(T=f[y],E=f[y+1],S=o.lastTangent,A=V.subtract(E,f[y-1],git),V.multiplyByScalar(A,.5,A),M=Ee.multiplyByVector(mJ.hermiteCoefficientMatrix,w,w)):(T=f[y-1],E=f[y],A=f[y+1],S=f[y+2],M=Ee.multiplyByVector(nB.catmullRomCoefficientMatrix,w,w)),v=V.multiplyByScalar(T,M.x,v),V.multiplyByScalar(E,M.y,R6),V.add(v,R6,v),V.multiplyByScalar(A,M.z,R6),V.add(v,R6,v),V.multiplyByScalar(S,M.w,R6),V.add(v,R6,v)}}var P$i=new V,I$i=new V;function nB(o){o=o??pi.EMPTY_OBJECT;let f=o.points,m=o.times,x=o.firstTangent,v=o.lastTangent;if(f.length>2&&(N(x)||(x=P$i,V.multiplyByScalar(f[1],2,x),V.subtract(x,f[2],x),V.subtract(x,f[0],x),V.multiplyByScalar(x,.5,x)),!N(v))){let y=f.length-1;v=I$i,V.multiplyByScalar(f[y-1],2,v),V.subtract(f[y],v,v),V.add(v,f[y-2],v),V.multiplyByScalar(v,.5,v)}this._times=m,this._points=f,this._firstTangent=V.clone(x),this._lastTangent=V.clone(v),this._evaluateFunction=S$i(this),this._lastTimeIndex=0}Object.defineProperties(nB.prototype,{times:{get:function(){return this._times}},points:{get:function(){return this._points}},firstTangent:{get:function(){return this._firstTangent}},lastTangent:{get:function(){return this._lastTangent}}});nB.catmullRomCoefficientMatrix=new Ee(-.5,1,-.5,0,1.5,-2.5,0,1,-1.5,2,.5,0,.5,-.5,0,0);nB.prototype.findTimeInterval=S0.prototype.findTimeInterval;nB.prototype.wrapTime=S0.prototype.wrapTime;nB.prototype.clampTime=S0.prototype.clampTime;nB.prototype.evaluate=function(o,f){return this._evaluateFunction(o,f)};var wyt=nB,kfe={};kfe.clipTriangleAtAxisAlignedThreshold=function(o,f,m,x,v,y){N(y)?y.length=0:y=[];let C,w,T;f?(C=m<o,w=x<o,T=v<o):(C=m>o,w=x>o,T=v>o);let E=C+w+T,A,S,M,I,P,D;return E===1?C?(A=(o-m)/(x-m),S=(o-m)/(v-m),y.push(1),y.push(2),S!==1&&(y.push(-1),y.push(0),y.push(2),y.push(S)),A!==1&&(y.push(-1),y.push(0),y.push(1),y.push(A))):w?(M=(o-x)/(v-x),I=(o-x)/(m-x),y.push(2),y.push(0),I!==1&&(y.push(-1),y.push(1),y.push(0),y.push(I)),M!==1&&(y.push(-1),y.push(1),y.push(2),y.push(M))):T&&(P=(o-v)/(m-v),D=(o-v)/(x-v),y.push(0),y.push(1),D!==1&&(y.push(-1),y.push(2),y.push(1),y.push(D)),P!==1&&(y.push(-1),y.push(2),y.push(0),y.push(P))):E===2?!C&&m!==o?(I=(o-x)/(m-x),P=(o-v)/(m-v),y.push(0),y.push(-1),y.push(1),y.push(0),y.push(I),y.push(-1),y.push(2),y.push(0),y.push(P)):!w&&x!==o?(D=(o-v)/(x-v),A=(o-m)/(x-m),y.push(1),y.push(-1),y.push(2),y.push(1),y.push(D),y.push(-1),y.push(0),y.push(1),y.push(A)):!T&&v!==o&&(S=(o-m)/(v-m),M=(o-x)/(v-x),y.push(2),y.push(-1),y.push(0),y.push(2),y.push(S),y.push(-1),y.push(1),y.push(2),y.push(M)):E!==3&&(y.push(0),y.push(1),y.push(2)),y};kfe.computeBarycentricCoordinates=function(o,f,m,x,v,y,C,w,T){let E=m-C,A=C-v,S=y-w,M=x-w,I=1/(S*E+A*M),P=f-w,D=o-C,R=(S*D+A*P)*I,L=(-M*D+E*P)*I,O=1-R-L;return N(T)?(T.x=R,T.y=L,T.z=O,T):new V(R,L,O)};kfe.computeLineSegmentLineSegmentIntersection=function(o,f,m,x,v,y,C,w,T){let E=(C-v)*(f-y)-(w-y)*(o-v),A=(m-o)*(f-y)-(x-f)*(o-v),S=(w-y)*(m-o)-(C-v)*(x-f);if(S===0)return;let M=E/S,I=A/S;if(M>=0&&M<=1&&I>=0&&I<=1)return N(T)||(T=new at),T.x=o+M*(m-o),T.y=f+M*(x-f),T};var w7=kfe;function y5(o){this._flattenPolygonHeight=o.flattenPolygonHeight||[1],this._flattenPolygon=o.flattenPolygon||[],this._flattenRectangle=o.flattenRectangle,this._quantizedVertices=o.quantizedVertices,this._encodedNormals=o.encodedNormals,this._indices=o.indices,this._minimumHeight=o.minimumHeight,this._maximumHeight=o.maximumHeight,this._boundingSphere=o.boundingSphere,this._orientedBoundingBox=o.orientedBoundingBox,this._horizonOcclusionPoint=o.horizonOcclusionPoint,this._credits=o.credits;let f=this._quantizedVertices.length/3,m=this._uValues=this._quantizedVertices.subarray(0,f),x=this._vValues=this._quantizedVertices.subarray(f,2*f);this._heightValues=this._quantizedVertices.subarray(2*f,3*f);function v(C,w){return x[C]-x[w]}function y(C,w){return m[C]-m[w]}this._westIndices=Nae(o.westIndices,v,f),this._southIndices=Nae(o.southIndices,y,f),this._eastIndices=Nae(o.eastIndices,v,f),this._northIndices=Nae(o.northIndices,y,f),this._westSkirtHeight=o.westSkirtHeight,this._southSkirtHeight=o.southSkirtHeight,this._eastSkirtHeight=o.eastSkirtHeight,this._northSkirtHeight=o.northSkirtHeight,this._childTileMask=o.childTileMask??15,this._createdByUpsampling=o.createdByUpsampling??!1,this._waterMask=o.waterMask,this._mesh=void 0}Object.defineProperties(y5.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}},canUpsample:{get:function(){return N(this._mesh)}}});var Oae=[];function Nae(o,f,m){Oae.length=o.length;let x=!1;for(let v=0,y=o.length;v<y;++v)Oae[v]=o[v],x=x||v>0&&f(o[v-1],o[v])>0;return x?(Oae.sort(f),Jn.createTypedArray(m,Oae)):o}var Tyt="createVerticesFromQuantizedTerrainMesh",M$i=new ep(Tyt),D$i=new ep(Tyt,bU.maximumAsynchronousTasks);y5.prototype.createMesh=function(o){o=o??pi.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,v=o.level,y=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,w=o.throttle??!0,T=f.ellipsoid,E=f.tileXYToRectangle(m,x,v),A=(w?D$i:M$i).scheduleTask({minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,quantizedVertices:this._quantizedVertices,octEncodedNormals:this._encodedNormals,includeWebMercatorT:!0,indices:this._indices,westIndices:this._westIndices,southIndices:this._southIndices,eastIndices:this._eastIndices,northIndices:this._northIndices,westSkirtHeight:this._westSkirtHeight,southSkirtHeight:this._southSkirtHeight,eastSkirtHeight:this._eastSkirtHeight,northSkirtHeight:this._northSkirtHeight,rectangle:E,relativeToCenter:this._boundingSphere.center,ellipsoid:T,exaggeration:y,exaggerationRelativeHeight:C,flattenPolygonHeight:this._flattenPolygonHeight,flattenPolygon:this._flattenPolygon});if(!N(A))return;let S=this;return Promise.resolve(A).then(function(M){let I=S._quantizedVertices.length/3,P=I+S._westIndices.length+S._southIndices.length+S._eastIndices.length+S._northIndices.length,D=Jn.createTypedArray(P,M.indices),R=new Float32Array(M.vertices),L=M.center,O=M.minimumHeight,F=M.maximumHeight,B=S._boundingSphere,H=S._orientedBoundingBox,G=V.clone(M.occludeePointInScaledSpace)??S._horizonOcclusionPoint,W=M.vertexStride,Y=ME.clone(M.encoding);return S._mesh=new wU(L,R,D,M.indexCountWithoutSkirts,I,O,F,B,G,W,H,Y,M.westIndicesSouthToNorth,M.southIndicesEastToWest,M.eastIndicesNorthToSouth,M.northIndicesWestToEast),S._quantizedVertices=void 0,S._encodedNormals=void 0,S._indices=void 0,S._uValues=void 0,S._vValues=void 0,S._heightValues=void 0,S._westIndices=void 0,S._southIndices=void 0,S._eastIndices=void 0,S._northIndices=void 0,S._mesh})};var R$i=new ep("upsampleQuantizedTerrainMesh",bU.maximumAsynchronousTasks);y5.prototype.upsample=function(o,f,m,x,v,y,C){let w=this._mesh;if(!N(this._mesh))return;let T=f*2!==v,E=m*2===y,A=o.ellipsoid,S=o.tileXYToRectangle(v,y,C),M=R$i.scheduleTask({vertices:w.vertices,vertexCountWithoutSkirts:w.vertexCountWithoutSkirts,indices:w.indices,indexCountWithoutSkirts:w.indexCountWithoutSkirts,encoding:w.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:T,isNorthChild:E,childRectangle:S,ellipsoid:A});if(!N(M))return;let I=Math.min(this._westSkirtHeight,this._eastSkirtHeight);I=Math.min(I,this._southSkirtHeight),I=Math.min(I,this._northSkirtHeight);let P=T?I*.5:this._westSkirtHeight,D=E?I*.5:this._southSkirtHeight,R=T?this._eastSkirtHeight:I*.5,L=E?this._northSkirtHeight:I*.5,O=this._credits,F=this;return Promise.resolve(M).then(function(B){let H=new Uint16Array(B.vertices),G=Jn.createTypedArray(H.length/3,B.indices),W;return N(B.encodedNormals)&&(W=new Uint8Array(B.encodedNormals)),new y5({quantizedVertices:H,indices:G,encodedNormals:W,minimumHeight:B.minimumHeight,maximumHeight:B.maximumHeight,boundingSphere:Li.clone(B.boundingSphere),orientedBoundingBox:Ju.clone(B.orientedBoundingBox),horizonOcclusionPoint:V.clone(B.horizonOcclusionPoint),westIndices:B.westIndices,southIndices:B.southIndices,eastIndices:B.eastIndices,northIndices:B.northIndices,westSkirtHeight:P,southSkirtHeight:D,eastSkirtHeight:R,northSkirtHeight:L,childTileMask:0,credits:O,createdByUpsampling:!0,flattenPolygonHeight:F._flattenPolygonHeight,flattenPolygon:F._flattenPolygon,flattenRectangle:F._flattenRectangle})})};var TAe=32767,Eyt=new V;y5.prototype.interpolateHeight=function(o,f,m){let x=Ce.clamp((f-o.west)/o.width,0,1);x*=TAe;let v=Ce.clamp((m-o.south)/o.height,0,1);return v*=TAe,N(this._mesh)?F$i(this,x,v):B$i(this,x,v)};function Ayt(o,f,m,x,v,y,C,w){let T=Math.min(m,v,C),E=Math.max(m,v,C),A=Math.min(x,y,w),S=Math.max(x,y,w);return o>=T&&o<=E&&f>=A&&f<=S}var L$i=new at,O$i=new at,N$i=new at;function F$i(o,f,m){let x=o._mesh,v=x.vertices,y=x.encoding,C=x.indices;for(let w=0,T=C.length;w<T;w+=3){let E=C[w],A=C[w+1],S=C[w+2],M=y.decodeTextureCoordinates(v,E,L$i),I=y.decodeTextureCoordinates(v,A,O$i),P=y.decodeTextureCoordinates(v,S,N$i);if(Ayt(f,m,M.x,M.y,I.x,I.y,P.x,P.y)){let D=w7.computeBarycentricCoordinates(f,m,M.x,M.y,I.x,I.y,P.x,P.y,Eyt);if(D.x>=-1e-15&&D.y>=-1e-15&&D.z>=-1e-15){let R=y.decodeHeight(v,E),L=y.decodeHeight(v,A),O=y.decodeHeight(v,S);return D.x*R+D.y*L+D.z*O}}}}function B$i(o,f,m){let x=o._uValues,v=o._vValues,y=o._heightValues,C=o._indices;for(let w=0,T=C.length;w<T;w+=3){let E=C[w],A=C[w+1],S=C[w+2],M=x[E],I=x[A],P=x[S],D=v[E],R=v[A],L=v[S];if(Ayt(f,m,M,D,I,R,P,L)){let O=w7.computeBarycentricCoordinates(f,m,M,D,I,R,P,L,Eyt);if(O.x>=-1e-15&&O.y>=-1e-15&&O.z>=-1e-15){let F=O.x*y[E]+O.y*y[A]+O.z*y[S];return Ce.lerp(o._minimumHeight,o._maximumHeight,F/TAe)}}}}y5.prototype.isChildAvailable=function(o,f,m,x){let v=2;return m!==o*2&&++v,x!==f*2&&(v-=2),(this._childTileMask&1<<v)!==0};y5.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var Vfe=y5;function k$i(o){this.resource=o.resource,this.version=o.version,this.isHeightmap=o.isHeightmap,this.tileUrlTemplates=o.tileUrlTemplates,this.availability=o.availability,this.hasVertexNormals=o.hasVertexNormals,this.hasWaterMask=o.hasWaterMask,this.hasMetadata=o.hasMetadata,this.availabilityLevels=o.availabilityLevels,this.availabilityTilesLoaded=o.availabilityTilesLoaded,this.littleEndianExtensionSize=o.littleEndianExtensionSize,this.availabilityPromiseCache={}}function Syt(o){this.requestVertexNormals=o.requestVertexNormals??!1,this.requestWaterMask=o.requestWaterMask??!1,this.requestMetadata=o.requestMetadata??!0,this.ellipsoid=o.ellipsoid??Ei.default,this.heightmapWidth=65,this.heightmapStructure=void 0,this.hasWaterMask=!1,this.hasMetadata=!1,this.hasVertexNormals=!1,this.scheme=void 0,this._flattenPolygonHeight=o.flattenPolygonHeight,this._flattenPolygon=o.flattenPolygon,this.lastResource=void 0,this.layerJsonResource=void 0,this.previousError=void 0,this.availability=void 0,this.tilingScheme=void 0,this.levelZeroMaximumGeometricError=void 0,this.heightmapStructure=void 0,this.layers=[],this.attribution="",this.overallAvailability=[],this.overallMaxZoom=0,this.tileCredits=[]}Syt.prototype.build=function(o){o._heightmapWidth=this.heightmapWidth,o._scheme=this.scheme;let f=N(this.lastResource.credits)?this.lastResource.credits:[];o._tileCredits=f.concat(this.tileCredits),o._availability=this.availability,o._tilingScheme=this.tilingScheme,o._requestWaterMask=this.requestWaterMask,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._heightmapStructure=this.heightmapStructure,o._layers=this.layers,o._hasWaterMask=this.hasWaterMask,o._hasVertexNormals=this.hasVertexNormals,o._hasMetadata=this.hasMetadata};async function Pyt(o,f,m){if(!f.format){let R="The tile format is not specified in the layer.json file.";throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}if(!f.tiles||f.tiles.length===0){let R="The layer.json file does not specify any tile URL templates.";throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}let x=!1,v=!1,y=!1,C=!0,w=!1;if(f.format==="heightmap-1.0")w=!0,N(o.heightmapStructure)||(o.heightmapStructure={heightScale:1/5,heightOffset:-1e3,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1,lowestEncodedHeight:0,highestEncodedHeight:256*256-1}),v=!0,o.requestWaterMask=!0;else if(f.format.indexOf("quantized-mesh-1.")!==0){let R=`The tile format "${f.format}" is invalid or not supported.`;throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}let T=f.tiles,E=f.maxzoom;o.overallMaxZoom=Math.max(o.overallMaxZoom,E);let A=[];if(N(f.valid_bounds)?A=f.valid_bounds:A=f.bounds,!f.projection||f.projection==="EPSG:4326")o.tilingScheme=new Xh({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:A.length?A:[]});else if(f.projection==="EPSG:3857"){let R=Math.PI*o.ellipsoid.maximumRadius;A[0]<-R&&(A[0]=-R),A[1]<-R&&(A[1]=-R),A[2]>R&&(A[2]=R),A[3]>R&&(A[3]=R),o.tilingScheme=new tp({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:A.length?A:[]})}else{let R=`The projection "${f.projection}" is invalid or not supported.`;throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}if(o.levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.heightmapWidth,o.tilingScheme.getNumberOfXTilesAtLevel(0)),!f.scheme||f.scheme==="tms"||f.scheme==="slippyMap")o.scheme=f.scheme;else{let R=`The scheme "${f.scheme}" is invalid or not supported.`;throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}let S;N(f.extensions)&&f.extensions.indexOf("octvertexnormals")!==-1?x=!0:N(f.extensions)&&f.extensions.indexOf("vertexnormals")!==-1&&(x=!0,C=!1),N(f.extensions)&&f.extensions.indexOf("watermask")!==-1&&(v=!0),N(f.extensions)&&f.extensions.indexOf("metadata")!==-1&&(y=!0);let M=f.metadataAvailability,I=f.available,P;if(N(I)&&!N(M)){P=new GF(o.tilingScheme,I.length);for(let R=0;R<I.length;++R){let L=I[R],O=o.tilingScheme.getNumberOfYTilesAtLevel(R);N(o.overallAvailability[R])||(o.overallAvailability[R]=[]);for(let F=0;F<L.length;++F){let B=L[F],H=O-B.endY-1,G=O-B.startY-1;o.overallAvailability[R].push([B.startX,H,B.endX,G]),P.addAvailableTileRange(R,B.startX,H,B.endX,G)}}}else N(M)&&(S=new GF(o.tilingScheme,E),P=new GF(o.tilingScheme,E),o.overallAvailability[0]=[[0,0,1,0]],P.addAvailableTileRange(0,0,0,1,0));o.hasWaterMask=o.hasWaterMask||v,o.hasVertexNormals=o.hasVertexNormals||x,o.hasMetadata=o.hasMetadata||y,N(f.attribution)&&(o.attribution.length>0&&(o.attribution+=" "),o.attribution+=f.attribution),o.layers.push(new k$i({resource:o.lastResource,version:f.version,isHeightmap:w,tileUrlTemplates:T,availability:P,hasVertexNormals:x,hasWaterMask:v,hasMetadata:y,availabilityLevels:M,availabilityTilesLoaded:S,littleEndianExtensionSize:C}));let D=f.parentUrl;return N(D)?N(P)?(o.lastResource=o.lastResource.getDerivedResource({url:D}),o.lastResource.appendForwardSlash(),o.layerJsonResource=o.lastResource.getDerivedResource({url:"layer.json"}),await U4e(o),!0):(console.log("A layer.json can't have a parentUrl if it does't have an available array."),!0):!0}function V$i(o,f,m){let x=`An error occurred while accessing ${o.layerJsonResource.url}.`;if(N(f)&&(x+=`
${f.message}`),o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,x),o.previousError.retry)return U4e(o,m);throw new Xi(x)}async function z$i(o,f,m){await Pyt(o,f,m);let x=o.overallAvailability.length;if(x>0){let v=o.availability=new GF(o.tilingScheme,o.overallMaxZoom);for(let y=0;y<x;++y){let C=o.overallAvailability[y];for(let w=0;w<C.length;++w){let T=C[w];v.addAvailableTileRange(y,T[0],T[1],T[2],T[3])}}}if(o.attribution.length>0){let v=new rs(o.attribution);o.tileCredits.push(v)}return!0}async function U4e(o,f){try{let m=await o.layerJsonResource.fetchJson();return z$i(o,m,f)}catch(m){return N(m)&&m.statusCode===404?(await Pyt(o,{tilejson:"2.1.0",format:"heightmap-1.0",version:"1.0.0",scheme:"tms",tiles:["{z}/{x}/{y}.terrain?v={version}"]},f),!0):V$i(o,m,f)}}function oP(o){o=o??pi.EMPTY_OBJECT,this._heightmapWidth=void 0,this._heightmapStructure=void 0,this._hasWaterMask=!1,this._hasVertexNormals=!1,this._hasMetadata=!1,this._scheme=void 0,this._ellipsoid=o.ellipsoid,this._requestVertexNormals=o.requestVertexNormals??!1,this._requestWaterMask=o.requestWaterMask??!1,this._requestMetadata=o.requestMetadata??!0,this._errorEvent=new Or;let f=o.credit;typeof f=="string"&&(f=new rs(f)),this._credit=f,this._availability=void 0,this._tilingScheme=void 0,this._levelZeroMaximumGeometricError=void 0,this._layers=void 0,this._tileCredits=void 0}var Cwe={OCT_VERTEX_NORMALS:1,WATER_MASK:2,METADATA:4};function _it(o){return!N(o)||o.length===0?{Accept:"application/vnd.quantized-mesh,application/octet-stream;q=0.9,*/*;q=0.01"}:{Accept:`application/vnd.quantized-mesh;extensions=${o.join("-")},application/octet-stream;q=0.9,*/*;q=0.01`}}function U$i(o,f,m,x,v){let y=new Uint16Array(f,0,o._heightmapWidth*o._heightmapWidth);return new CP({buffer:y,childTileMask:new Uint8Array(f,y.byteLength,1)[0],waterMask:new Uint8Array(f,y.byteLength+1,f.byteLength-y.byteLength-1),width:o._heightmapWidth,height:o._heightmapWidth,structure:o._heightmapStructure,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon})}function H$i(o,f,m,x,v,y){let C=y.littleEndianExtensionSize,w=0,T=3,E=T+1,A=Float64Array.BYTES_PER_ELEMENT*T,S=Float64Array.BYTES_PER_ELEMENT*E,M=Uint16Array.BYTES_PER_ELEMENT*3,I=3,P=Uint16Array.BYTES_PER_ELEMENT,D=P*I,R=new DataView(f),L=new V(R.getFloat64(w,!0),R.getFloat64(w+8,!0),R.getFloat64(w+16,!0));w+=A;let O=R.getFloat32(w,!0);w+=Float32Array.BYTES_PER_ELEMENT;let F=R.getFloat32(w,!0);w+=Float32Array.BYTES_PER_ELEMENT;let B=new Li(new V(R.getFloat64(w,!0),R.getFloat64(w+8,!0),R.getFloat64(w+16,!0)),R.getFloat64(w+A,!0));w+=S;let H=new V(R.getFloat64(w,!0),R.getFloat64(w+8,!0),R.getFloat64(w+16,!0));w+=A;let G=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let W=new Uint16Array(f,w,G*3);w+=G*M,G>64*1024&&(P=Uint32Array.BYTES_PER_ELEMENT,D=P*I);let Y=W.subarray(0,G),K=W.subarray(G,2*G),X=W.subarray(G*2,3*G);nc.zigZagDeltaDecode(Y,K,X),w%P!==0&&(w+=P-w%P);let q=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let J=Jn.createTypedArrayFromArrayBuffer(G,f,w,q*I);w+=q*D;let Z=0,z=J.length;for(let Te=0;Te<z;++Te){let Ae=J[Te];J[Te]=Z-Ae,Ae===0&&++Z}let te=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let ie=Jn.createTypedArrayFromArrayBuffer(G,f,w,te);w+=te*P;let re=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let ee=Jn.createTypedArrayFromArrayBuffer(G,f,w,re);w+=re*P;let oe=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let ae=Jn.createTypedArrayFromArrayBuffer(G,f,w,oe);w+=oe*P;let he=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let me=Jn.createTypedArrayFromArrayBuffer(G,f,w,he);w+=he*P;let ue,ce;for(;w<R.byteLength;){let Te=R.getUint8(w,!0);w+=Uint8Array.BYTES_PER_ELEMENT;let Ae=R.getUint32(w,C);if(w+=Uint32Array.BYTES_PER_ELEMENT,Te===Cwe.OCT_VERTEX_NORMALS&&o._requestVertexNormals)ue=new Uint8Array(f,w,G*2);else if(Te===Cwe.WATER_MASK&&o._requestWaterMask)ce=new Uint8Array(f,w,Ae);else if(Te===Cwe.METADATA&&o._requestMetadata){let Fe=R.getUint32(w,!0);if(Fe>0){let Ue=Yy(new Uint8Array(f),w+Uint32Array.BYTES_PER_ELEMENT,Fe).available;if(N(Ue))for(let it=0;it<Ue.length;++it){let lt=m+it+1,ft=Ue[it],vt=o._tilingScheme.getNumberOfYTilesAtLevel(lt);for(let Pt=0;Pt<ft.length;++Pt){let rt=ft[Pt],yt=vt-rt.endY-1,Dt=vt-rt.startY-1;o.availability.addAvailableTileRange(lt,rt.startX,yt,rt.endX,Dt),y.availability.addAvailableTileRange(lt,rt.startX,yt,rt.endX,Dt)}}}y.availabilityTilesLoaded.addAvailableTileRange(m,x,v,x,v)}w+=Ae}let de=o.getLevelMaximumGeometricError(m)*5,fe=o._tilingScheme.tileXYToRectangle(x,v,m),we=Ju.fromRectangle(fe,O,F,o._tilingScheme.ellipsoid);return new Vfe({center:L,minimumHeight:O,maximumHeight:F,boundingSphere:B,orientedBoundingBox:we,horizonOcclusionPoint:H,quantizedVertices:W,encodedNormals:ue,indices:J,westIndices:ie,southIndices:ee,eastIndices:ae,northIndices:me,westSkirtHeight:de,southSkirtHeight:de,eastSkirtHeight:de,northSkirtHeight:de,childTileMask:o.availability.computeChildMaskForTile(m,x,v),waterMask:ce,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon,flattenRectangle:{rectangle:fe,minimumHeight:O,maximumHeight:F,ellipsoid:o._tilingScheme.ellipsoid}})}oP.prototype.requestTileGeometry=function(o,f,m,x){let v=this._layers,y,C=v.length,w=!1,T=Promise.resolve();if(C===1)y=v[0];else for(let E=0;E<C;++E){let A=v[E];if(!N(A.availability)||A.availability.isTileAvailable(m,o,f)){y=A;break}let S=H4e(this,o,f,m,A,E===0);S.result&&(w=!0,T=T.then(()=>S.promise))}return!N(y)&&w?T.then(()=>new Promise(E=>{setTimeout(()=>{let A=this.requestTileGeometry(o,f,m,x);E(A)},0)})):Iyt(this,o,f,m,y,x)};function Iyt(o,f,m,x,v,y){if(!N(v))return Promise.reject(new Xi("Terrain tile doesn't exist"));let C=v.tileUrlTemplates;if(C.length===0)return;let w;!o._scheme||o._scheme==="tms"?w=o._tilingScheme.getNumberOfYTilesAtLevel(x)-m-1:w=m;let T=[];o._requestVertexNormals&&v.hasVertexNormals&&T.push(v.littleEndianExtensionSize?"octvertexnormals":"vertexnormals"),o._requestWaterMask&&v.hasWaterMask&&T.push("watermask"),o._requestMetadata&&v.hasMetadata&&T.push("metadata");let E,A,S=C[(f+w+x)%C.length],M=v.resource;N(M._ionEndpoint)&&!N(M._ionEndpoint.externalType)?(T.length!==0&&(A={extensions:T.join("-")}),E=_it(void 0)):E=_it(T);let I=M.getDerivedResource({url:S,templateValues:{version:v.version,z:x,x:f,y:w},queryParameters:A,headers:E,request:y}).fetchArrayBuffer();if(N(I))return I.then(function(P){return N(P)?N(o._heightmapStructure)?U$i(o,P,x,f,m):H$i(o,P,x,f,m,v):Promise.reject(new Xi("Mesh buffer doesn't exist."))})}Object.defineProperties(oP.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return this._hasWaterMask&&this._requestWaterMask}},hasVertexNormals:{get:function(){return this._hasVertexNormals&&this._requestVertexNormals}},hasMetadata:{get:function(){return this._hasMetadata&&this._requestMetadata}},requestVertexNormals:{get:function(){return this._requestVertexNormals}},requestWaterMask:{get:function(){return this._requestWaterMask}},requestMetadata:{get:function(){return this._requestMetadata}},availability:{get:function(){return this._availability}}});oP.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};oP.fromIonAssetId=async function(o,f){let m=await FF.fromAssetId(o);return oP.fromUrl(m,f)};oP.fromUrl=async function(o,f){f=f??pi.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Wr.createIfNeeded(o);m.appendForwardSlash();let x=new Syt(f);x.lastResource=m,x.layerJsonResource=x.lastResource.getDerivedResource({url:"layer.json"}),await U4e(x);let v=new oP(f);return x.build(v),v};oP.prototype.getTileDataAvailable=function(o,f,m){if(!N(this._availability))return;if(m>this._availability._maximumLevel)return!1;if(this._availability.isTileAvailable(m,o,f))return!0;if(!this._hasMetadata)return!1;let x=this._layers,v=x.length;for(let y=0;y<v;++y)if(H4e(this,o,f,m,x[y],y===0).result)return;return!1};oP.prototype.loadTileDataAvailability=function(o,f,m){if(!N(this._availability)||m>this._availability._maximumLevel||this._availability.isTileAvailable(m,o,f)||!this._hasMetadata)return;let x=this._layers,v=x.length;for(let y=0;y<v;++y){let C=H4e(this,o,f,m,x[y],y===0);if(N(C.promise))return C.promise}};function EAe(o,f,m,x){if(x===0)return;let v=o.availabilityLevels,y=x%v===0?x-v:(x/v|0)*v,C=1<<x-y,w=f/C|0,T=m/C|0;return{level:y,x:w,y:T}}function H4e(o,f,m,x,v,y){if(!N(v.availabilityLevels))return{result:!1};let C,w=function(){delete v.availabilityPromiseCache[C]},T=v.availabilityTilesLoaded,E=v.availability,A=EAe(v,f,m,x);for(;N(A);){if(E.isTileAvailable(A.level,A.x,A.y)&&!T.isTileAvailable(A.level,A.x,A.y)){let S;if(!y&&(C=`${A.level}-${A.x}-${A.y}`,S=v.availabilityPromiseCache[C],!N(S))){let M=new Jm({throttle:!1,throttleByServer:!0,type:e2.TERRAIN});S=Iyt(o,A.x,A.y,A.level,v,M),N(S)&&(v.availabilityPromiseCache[C]=S,S.then(w))}return{result:!0,promise:S}}A=EAe(v,A.x,A.y,A.level)}return{result:!1}}oP._getAvailabilityTile=EAe;var T7=oP;function ZL(o){o=o??pi.EMPTY_OBJECT;let f=o.radius,m={center:o.center,semiMajorAxis:f,semiMinorAxis:f,ellipsoid:o.ellipsoid,height:o.height,extrudedHeight:o.extrudedHeight,granularity:o.granularity,vertexFormat:o.vertexFormat,stRotation:o.stRotation,shadowVolume:o.shadowVolume};this._ellipseGeometry=new EE(m),this._workerName="createCircleGeometry"}ZL.packedLength=EE.packedLength;ZL.pack=function(o,f,m){return EE.pack(o._ellipseGeometry,f,m)};var vit=new EE({center:new V,semiMajorAxis:1,semiMinorAxis:1}),dv={center:new V,radius:void 0,ellipsoid:Ei.clone(Ei.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new sn,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};ZL.unpack=function(o,f,m){let x=EE.unpack(o,f,vit);return dv.center=V.clone(x._center,dv.center),dv.ellipsoid=Ei.clone(x._ellipsoid,dv.ellipsoid),dv.ellipsoid=Ei.clone(x._ellipsoid,vit._ellipsoid),dv.height=x._height,dv.extrudedHeight=x._extrudedHeight,dv.granularity=x._granularity,dv.vertexFormat=sn.clone(x._vertexFormat,dv.vertexFormat),dv.stRotation=x._stRotation,dv.shadowVolume=x._shadowVolume,N(m)?(dv.semiMajorAxis=x._semiMajorAxis,dv.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new EE(dv),m):(dv.radius=x._semiMajorAxis,new ZL(dv))};ZL.createGeometry=function(o){return EE.createGeometry(o._ellipseGeometry)};ZL.createShadowVolume=function(o,f,m){let x=o._ellipseGeometry._granularity,v=o._ellipseGeometry._ellipsoid,y=f(x,v),C=m(x,v);return new ZL({center:o._ellipseGeometry._center,radius:o._ellipseGeometry._semiMajorAxis,ellipsoid:v,stRotation:o._ellipseGeometry._stRotation,granularity:x,extrudedHeight:y,height:C,vertexFormat:sn.POSITION_ONLY,shadowVolume:!0})};Object.defineProperties(ZL.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var Myt=ZL;function B9(o){o=o??pi.EMPTY_OBJECT;let f=o.radius,m={center:o.center,semiMajorAxis:f,semiMinorAxis:f,ellipsoid:o.ellipsoid,height:o.height,extrudedHeight:o.extrudedHeight,granularity:o.granularity,numberOfVerticalLines:o.numberOfVerticalLines};this._ellipseGeometry=new SM(m),this._workerName="createCircleOutlineGeometry"}B9.packedLength=SM.packedLength;B9.pack=function(o,f,m){return SM.pack(o._ellipseGeometry,f,m)};var G$i=new SM({center:new V,semiMajorAxis:1,semiMinorAxis:1}),ew={center:new V,radius:void 0,ellipsoid:Ei.clone(Ei.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};B9.unpack=function(o,f,m){let x=SM.unpack(o,f,G$i);return ew.center=V.clone(x._center,ew.center),ew.ellipsoid=Ei.clone(x._ellipsoid,ew.ellipsoid),ew.height=x._height,ew.extrudedHeight=x._extrudedHeight,ew.granularity=x._granularity,ew.numberOfVerticalLines=x._numberOfVerticalLines,N(m)?(ew.semiMajorAxis=x._semiMajorAxis,ew.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new SM(ew),m):(ew.radius=x._semiMajorAxis,new B9(ew))};B9.createGeometry=function(o){return SM.createGeometry(o._ellipseGeometry)};var Dyt=B9;function W$i(o){return o=o??pi.EMPTY_OBJECT,T7.fromIonAssetId(2426648,{requestVertexNormals:o.requestVertexNormals??!1})}var G4e=W$i;function j$i(o){return o=o??pi.EMPTY_OBJECT,T7.fromIonAssetId(1,{requestVertexNormals:o.requestVertexNormals??!1,requestWaterMask:o.requestWaterMask??!1,ellipsoid:Ei.WGS84})}var zfe=j$i;function E7(o){o=o??pi.EMPTY_OBJECT,this._callback=o.callback,this._tilingScheme=o.tilingScheme,N(this._tilingScheme)||(this._tilingScheme=new Xh({ellipsoid:o.ellipsoid??Ei.default})),this._width=o.width,this._height=o.height;let f=Math.max(this._width,this._height);this._levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new Or;let m=o.credit;typeof m=="string"&&(m=new rs(m)),this._credit=m}Object.defineProperties(E7.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});E7.prototype.requestTileGeometry=function(o,f,m,x){let v=this._callback(o,f,m);if(!N(v))return;let y=this._width,C=this._height;return Promise.resolve(v).then(function(w){let T=w;return Array.isArray(T)&&(T=new Float64Array(T)),new CP({buffer:T,width:y,height:C})})};E7.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};E7.prototype.getTileDataAvailable=function(o,f,m){};E7.prototype.loadTileDataAvailability=function(o,f,m){};var Ryt=E7,q$i=1953029805,Y$i=2917034100;function W4e(o,f){if(W4e.passThroughDataForTesting)return f;let m=o.byteLength;if(m===0||m%4!==0)throw new Xi("The length of key must be greater than 0 and a multiple of 4.");let x=new DataView(f),v=x.getUint32(0,!0);if(v===q$i||v===Y$i)return f;let y=new DataView(o),C=0,w=f.byteLength,T=w-w%8,E=m,A,S=8;for(;C<T;)for(S=(S+8)%24,A=S;C<T&&A<E;)x.setUint32(C,x.getUint32(C,!0)^y.getUint32(A,!0),!0),x.setUint32(C+4,x.getUint32(C+4,!0)^y.getUint32(A+4,!0),!0),C+=8,A+=24;if(C<w)for(A>=E&&(S=(S+8)%24,A=S);C<w;)x.setUint8(C,x.getUint8(C)^y.getUint8(A)),C++,A++}W4e.passThroughDataForTesting=!1;var j4e=W4e;function Lyt(o){this.proxy=o}Lyt.prototype.getURL=function(o){let f=this.proxy.indexOf("?")===-1?"?":"";return this.proxy+f+encodeURIComponent(o)};var Oyt=Lyt;function Nyt(o,f){return xP("defaultValue","defaultValue has been deprecated and will be removed in Cesium 1.134. Use the nullish coalescing operator instead: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing"),o??f}Object.defineProperty(Nyt,"EMPTY_OBJECT",{get:function(){return xP("defaultValue.EMPTY_OBJECT","defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead"),pi.EMPTY_OBJECT}});var Fyt=Nyt;function Ufe(){At.throwInstantiationError()}Object.defineProperties(Ufe.prototype,{credit:{get:At.throwInstantiationError}});Ufe.getCreditsFromResult=function(o){if(N(o.attributions))return o.attributions.map(rs.getIonCredit)};Ufe.prototype.geocode=At.throwInstantiationError;var Hfe=Ufe,X$i={SEARCH:0,AUTOCOMPLETE:1},iee=Object.freeze(X$i);function Byt(){At.throwInstantiationError()}Byt.createGeometry=function(o){At.throwInstantiationError()};var kyt=Byt,K$i=E0($nt(),1);function $$i(o,f){return(o&f)!==0}var Ew=$$i,J$i=[1,2,4,8],Vyt=15,Q$i=16,Z$i=64,eJi=128;function FM(o,f,m,x,v,y){this._bits=o,this.cnodeVersion=f,this.imageryVersion=m,this.terrainVersion=x,this.imageryProvider=v,this.terrainProvider=y,this.ancestorHasTerrain=!1,this.terrainState=void 0}FM.clone=function(o,f){return N(f)?(f._bits=o._bits,f.cnodeVersion=o.cnodeVersion,f.imageryVersion=o.imageryVersion,f.terrainVersion=o.terrainVersion,f.imageryProvider=o.imageryProvider,f.terrainProvider=o.terrainProvider):f=new FM(o._bits,o.cnodeVersion,o.imageryVersion,o.terrainVersion,o.imageryProvider,o.terrainProvider),f.ancestorHasTerrain=o.ancestorHasTerrain,f.terrainState=o.terrainState,f};FM.prototype.setParent=function(o){this.ancestorHasTerrain=o.ancestorHasTerrain||this.hasTerrain()};FM.prototype.hasSubtree=function(){return Ew(this._bits,Q$i)};FM.prototype.hasImagery=function(){return Ew(this._bits,Z$i)};FM.prototype.hasTerrain=function(){return Ew(this._bits,eJi)};FM.prototype.hasChildren=function(){return Ew(this._bits,Vyt)};FM.prototype.hasChild=function(o){return Ew(this._bits,J$i[o])};FM.prototype.getChildBitmask=function(){return this._bits&Vyt};var q4e=FM;function tJi(o){let f=o.length,m=new ArrayBuffer(f),x=new Uint8Array(m);for(let v=0;v<f;++v)x[v]=o.charCodeAt(v);return m}var iJi=tJi(`E\xF4\xBD\vy\xE2jE"\x92,\xCDq\xF8IFgQ\0B%\xC6\xE8a,f)\b\xC64\xDCjb%y
wmi\xD6\xF0\x9Ck\x93\xA1\xBDNu\xE0A[\xDF@V\f\xD9\xBBr\x9B\x81|3S\xEEOl\xD4q\xB0{\xC0\x7FEVZ\xADwUe\v3\x92*\xACl5\xC50s\xF83>mF8J\xB4\xDD\xF0.\xDDu\xDA\x8CDt"\xFAa"\f3"So\xAF9D\v\x8C9\xD99L\xB9\xBF\x7F\xAB\\\x8CP_\x9F"ux\xE9\x07q\x91h;\xC1\xC4\x9B\x7F\xF0<VqH\x82'UfYNe\x98u\xA3aF}a?A\0\x9F\xD7\xB44M\xCE\x87F\xB0\xD5\xB8\x8A'{\x8B\xDC+\xBBMg0\xC8\xD1\xF6\\\x8FP\xFA[/F\x9Bn5/'C.\xEB
\f^\xA5s\x1Be4\xE5l.jC'c#U\xA9?q{gC}:\xAF\xCD\xE2TU\x9C\xFDK\xC6\xE2\x9F/(\xED\xCB\\\xC6-f\x07\x88\xA7;/*"N\xB0k.\xDD\r\x95}}G\xBAC\xB2\xB2+>M\xAA>}\xE6\xCEI\x89\xC6\xE6x\fa1-\xA4O\xA5~q \x88\xEC\r1\xE8N\v\0nPh}=\b\r\x95\xA6n\xA3h\x97$[k\xF3#\xF3\xB6s\xB3\r\v@\xC0\x9F\xD8Q]\xFA".j\xDFI\0\xB9\xA0wU\xC6\xEFj\xBF{GL\x7F\x83\xEE\xDC\xDCF\x85\xA9\xADS\x07+S4\x07\xFF\x94Y\xE48\xE81\x83N\xB9XFk\xCB-#\x86\x92p\x005\x88"\xCF1\xB2&/\xE7\xC3u-6,rt\xB0#G\xB7\xD3\xD1&\x857r\xE2\0\x8CD\xCF\xDA3-\xDE\`\x86i#i*|\xCDKQ\r\x95T9w.)\xEA\x1B\xA6P\xA2j\x8FoP\x99\\>T\xFB\xEFP[\v\x07E\x89m(w7\xDB\x8EJfJo\x99 \xE5p\xE2\xB9q~\fmI-z\xFEr\xC7\xF2Y0\x8F\xBB]s\xE5\xC9 \xEAx\xEC \x90\xF0\x8A\x7FB|G\`\xB0\xBD&\xB7q\xB6\xC7\x9F\xD13\x82=\xD3\xAB\xEEc\x99\xC8+S\xA0D\\q\xC6\xCCD2O<\xCA\xC0)=R\xD3aX\xA9}e\xB4\xDC\xCF\r\xF4=\xF1\b\xA9B\xDA#   \xD8\xBF^PI\xF8M\xC0\xCBGLO\xF7{+\xD8\xC51\x92;\xB5o\xDCl\r\x92\x88\xD1\x9E\xDB?\xE2\xE9\xDA_\xD4\x84\xE2FaZ\xDEU\xCF\xA4\0\xBE\xFD\xCEg\xF1Ji\x97\xE6 H\xD8]\x7F~\xAEq N\xAE\xC0V\xA9\x91<\x82r\xE7v\xEC)I\xD6]-\x83\xE3\xDB6\xA9;f\x97\x87j\xD5\xB6=P^R\xB9K\xC7sWx\xC9\xF4.Y\x07\x95\x93o\xD0KW>''\xC7\`\xDB;\xED\x9ASD>?\x8D\x92mw\xA2
\xEB?R\xA8\xC6U^1I7\x85\xF4\xC5&-\xA9\xBF\x8B'T\xDA\xC3j \xE5*x\xB0\xD6\x90pr\xAA\x8Bh\xBD\x88\xF7_H\xB1~\xC0XL?f\xF9>\xE1e\xC0p\xA7\xCF8i\xAF\xF0VldI\x9C'\xADxtO\xC2\x87\xDEV9\0\xDAw\v\xCB-\x1B\x89\xFB5O\xF5\bQ\`\xC1
ZGM&30x\xDA\xC0\x9CFG\xE2[y\`In7gS
>\xE9\xECF9\xB2\xF14\r\xC6\x84Sun\xE1\fY\xD9\xDE)\x85{II\xA5wy\xBEIV.6\xE7\v:\xBBOb{\xD2M1\x95/\xBD8{\xA8O!\xE1\xECFpv\x95})"x\x88
\x90\xDD\x9D\\\xDA\xDEQ\xCF\xF0\xFCYRe|3\xDF\xF3H\xDA\xBB*u\xDB\`\xB2\xD4\xFC\xED\x1B\xEC\x7F5\xA8\xFF(1\x07-\xC8\xDC\x88F|\x8A["`);function Nw(o){this.imageryPresent=!0,this.protoImagery=void 0,this.terrainPresent=!0,this.negativeAltitudeExponentBias=32,this.negativeAltitudeThreshold=Ce.EPSILON12,this.providers={},this.key=void 0,this._resource=void 0,this._quadPacketVersion=1,this._tileInfo={},this._subtreePromises={}}Object.defineProperties(Nw.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},resource:{get:function(){return this._resource}}});Nw.fromUrl=async function(o){let f=o;typeof f!="string"&&!(f instanceof Wr)&&(f=o.url);let m=Wr.createIfNeeded(f);m.appendForwardSlash();let x=new Nw;x._resource=m;try{await rJi(x),await x.getQuadTreePacket("",x._quadPacketVersion)}catch(v){let y=`An error occurred while accessing ${Uyt(x,"",1).url}: ${v}`;throw new Xi(y)}return x};Nw.tileXYToQuadKey=function(o,f,m){let x="";for(let v=m;v>=0;--v){let y=1<<v,C=0;Ew(f,y)?Ew(o,y)&&(C|=1):(C|=2,Ew(o,y)||(C|=1)),x+=C}return x};Nw.quadKeyToTileXY=function(o){let f=0,m=0,x=o.length-1;for(let v=x;v>=0;--v){let y=1<<v,C=+o[x-v];Ew(C,2)?Ew(C,1)||(f|=y):(m|=y,Ew(C,1)&&(f|=y))}return{x:f,y:m,level:x}};Nw.prototype.isValid=function(o){let f=this.getTileInformationFromQuadKey(o);if(N(f))return f!==null;let m=!0,x=o,v;for(;x.length>1;)if(v=x.substring(x.length-1),x=x.substring(0,x.length-1),f=this.getTileInformationFromQuadKey(x),N(f)){!f.hasSubtree()&&!f.hasChild(parseInt(v))&&(m=!1);break}else if(f===null){m=!1;break}return m};var zyt=new ep("decodeGoogleEarthEnterprisePacket");Nw.prototype.getQuadTreePacket=function(o,f,m){f=f??1,o=o??"";let x=Uyt(this,o,f,m).fetchArrayBuffer();if(!N(x))return;let v=this._tileInfo,y=this.key;return x.then(function(C){return zyt.scheduleTask({buffer:C,quadKey:o,type:"Metadata",key:y},[C]).then(function(w){let T,E=-1;if(o!==""){E=o.length+1;let M=w[o];T=v[o],T._bits|=M._bits,delete w[o]}let A=Object.keys(w);A.sort(function(M,I){return M.length-I.length});let S=A.length;for(let M=0;M<S;++M){let I=A[M];if(w[I]!==null){let P=q4e.clone(w[I]),D=I.length;if(D===E)P.setParent(T);else if(D>1){let R=v[I.substring(0,I.length-1)];P.setParent(R)}v[I]=P}else v[I]=null}})})};Nw.prototype.populateSubtree=function(o,f,m,x){let v=Nw.tileXYToQuadKey(o,f,m);return AAe(this,v,x)};function AAe(o,f,m){let x=o._tileInfo,v=f,y=x[v];if(N(y)&&(!y.hasSubtree()||y.hasChildren()))return y;for(;y===void 0&&v.length>1;)v=v.substring(0,v.length-1),y=x[v];let C,w=o._subtreePromises,T=w[v];if(N(T))return T.then(function(){return C=new Jm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),AAe(o,f,C)});if(!N(y)||!y.hasSubtree())return Promise.reject(new Xi(`Couldn't load metadata for tile ${f}`));if(T=o.getQuadTreePacket(v,y.cnodeVersion,m),!!N(T))return w[v]=T,T.then(function(){return C=new Jm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),AAe(o,f,C)}).finally(function(){delete w[v]})}Nw.prototype.getTileInformation=function(o,f,m){let x=Nw.tileXYToQuadKey(o,f,m);return this._tileInfo[x]};Nw.prototype.getTileInformationFromQuadKey=function(o){return this._tileInfo[o]};function Uyt(o,f,m,x){return o._resource.getDerivedResource({url:`flatfile?q2-0${f}-q.${m.toString()}`,request:x})}var bwe,wwe;function rJi(o){let f=o._resource.getDerivedResource({url:"dbRoot.v5",queryParameters:{output:"proto"}});if(!N(wwe)){let m=va("ThirdParty/google-earth-dbroot-parser.js"),x=window.cesiumGoogleEarthDbRootParser;wwe=_ce(m).then(function(){bwe=window.cesiumGoogleEarthDbRootParser(K$i),N(x)?window.cesiumGoogleEarthDbRootParser=x:delete window.cesiumGoogleEarthDbRootParser})}return wwe.then(function(){return f.fetchArrayBuffer()}).then(function(m){let x=bwe.EncryptedDbRootProto.decode(new Uint8Array(m)),v=x.encryptionData,y=v.byteOffset,C=y+v.byteLength,w=o.key=v.buffer.slice(y,C);v=x.dbrootData,y=v.byteOffset,C=y+v.byteLength;let T=v.buffer.slice(y,C);return zyt.scheduleTask({buffer:T,type:"DbRoot",key:w},[T])}).then(function(m){let x=bwe.DbRootProto.decode(new Uint8Array(m.buffer));if(o.imageryPresent=x.imageryPresent??o.imageryPresent,o.protoImagery=x.protoImagery,o.terrainPresent=x.terrainPresent??o.terrainPresent,N(x.endSnippet)&&N(x.endSnippet.model)){let w=x.endSnippet.model;o.negativeAltitudeExponentBias=w.negativeAltitudeExponentBias??o.negativeAltitudeExponentBias,o.negativeAltitudeThreshold=w.compressedNegativeAltitudeThreshold??o.negativeAltitudeThreshold}N(x.databaseVersion)&&(o._quadPacketVersion=x.databaseVersion.quadtreeVersion??o._quadPacketVersion);let v=o.providers,y=x.providerInfo??[],C=y.length;for(let w=0;w<C;++w){let T=y[w],E=T.copyrightString;N(E)&&(v[T.providerId]=new rs(E.value))}}).catch(function(){console.log(`Failed to retrieve ${f.url}. Using defaults.`),o.key=iJi})}var A7=Nw;function HU(o){o=o??pi.EMPTY_OBJECT,this._buffer=o.buffer,this._credits=o.credits,this._negativeAltitudeExponentBias=o.negativeAltitudeExponentBias,this._negativeElevationThreshold=o.negativeElevationThreshold;let f=o.childTileMask??15,m=f&3;m|=f&4?8:0,m|=f&8?4:0,this._childTileMask=m,this._createdByUpsampling=o.createdByUpsampling??!1,this._skirtHeight=void 0,this._bufferType=this._buffer.constructor,this._mesh=void 0,this._minimumHeight=void 0,this._maximumHeight=void 0}Object.defineProperties(HU.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){}}});var Hyt="createVerticesFromGoogleEarthEnterpriseBuffer",nJi=new ep(Hyt),oJi=new ep(Hyt,bU.maximumAsynchronousTasks),yit=new Si,Twe=new Si;HU.prototype.createMesh=function(o){o=o??pi.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,v=o.level,y=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,w=o.throttle??!0,T=f.ellipsoid;f.tileXYToNativeRectangle(m,x,v,yit),f.tileXYToRectangle(m,x,v,Twe);let E=T.cartographicToCartesian(Si.center(Twe)),A=40075.16/(1<<v);this._skirtHeight=Math.min(A*8,1e3);let S=(w?oJi:nJi).scheduleTask({buffer:this._buffer,nativeRectangle:yit,rectangle:Twe,relativeToCenter:E,ellipsoid:T,skirtHeight:this._skirtHeight,exaggeration:y,exaggerationRelativeHeight:C,includeWebMercatorT:!0,negativeAltitudeExponentBias:this._negativeAltitudeExponentBias,negativeElevationThreshold:this._negativeElevationThreshold});if(!N(S))return;let M=this;return S.then(function(I){return M._mesh=new wU(E,new Float32Array(I.vertices),new Uint16Array(I.indices),I.indexCountWithoutSkirts,I.vertexCountWithoutSkirts,I.minimumHeight,I.maximumHeight,Li.clone(I.boundingSphere3D),V.clone(I.occludeePointInScaledSpace),I.numberOfAttributes,Ju.clone(I.orientedBoundingBox),ME.clone(I.encoding),I.westIndicesSouthToNorth,I.southIndicesEastToWest,I.eastIndicesNorthToSouth,I.northIndicesWestToEast),M._minimumHeight=I.minimumHeight,M._maximumHeight=I.maximumHeight,M._buffer=void 0,M._mesh})};HU.prototype.interpolateHeight=function(o,f,m){let x=Ce.clamp((f-o.west)/o.width,0,1),v=Ce.clamp((m-o.south)/o.height,0,1);return N(this._mesh)?cJi(this,x,v):fJi(this,x,v,o)};var aJi=new ep("upsampleQuantizedTerrainMesh",bU.maximumAsynchronousTasks);HU.prototype.upsample=function(o,f,m,x,v,y,C){let w=this._mesh;if(!N(this._mesh))return;let T=f*2!==v,E=m*2===y,A=o.ellipsoid,S=o.tileXYToRectangle(v,y,C),M=aJi.scheduleTask({vertices:w.vertices,indices:w.indices,indexCountWithoutSkirts:w.indexCountWithoutSkirts,vertexCountWithoutSkirts:w.vertexCountWithoutSkirts,encoding:w.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:T,isNorthChild:E,childRectangle:S,ellipsoid:A});if(!N(M))return;let I=this;return M.then(function(P){let D=new Uint16Array(P.vertices),R=Jn.createTypedArray(D.length/3,P.indices),L=I._skirtHeight;return new Vfe({quantizedVertices:D,indices:R,minimumHeight:P.minimumHeight,maximumHeight:P.maximumHeight,boundingSphere:Li.clone(P.boundingSphere),orientedBoundingBox:Ju.clone(P.orientedBoundingBox),horizonOcclusionPoint:V.clone(P.horizonOcclusionPoint),westIndices:P.westIndices,southIndices:P.southIndices,eastIndices:P.eastIndices,northIndices:P.northIndices,westSkirtHeight:L,southSkirtHeight:L,eastSkirtHeight:L,northSkirtHeight:L,childTileMask:0,createdByUpsampling:!0,credits:I._credits})})};HU.prototype.isChildAvailable=function(o,f,m,x){let v=2;return m!==o*2&&++v,x!==f*2&&(v-=2),(this._childTileMask&1<<v)!==0};HU.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var sJi=new at,lJi=new at,uJi=new at,Gyt=new V;function cJi(o,f,m){let x=o._mesh,v=x.vertices,y=x.encoding,C=x.indices;for(let w=0,T=C.length;w<T;w+=3){let E=C[w],A=C[w+1],S=C[w+2],M=y.decodeTextureCoordinates(v,E,sJi),I=y.decodeTextureCoordinates(v,A,lJi),P=y.decodeTextureCoordinates(v,S,uJi),D=w7.computeBarycentricCoordinates(f,m,M.x,M.y,I.x,I.y,P.x,P.y,Gyt);if(D.x>=-1e-15&&D.y>=-1e-15&&D.z>=-1e-15){let R=y.decodeHeight(v,E),L=y.decodeHeight(v,A),O=y.decodeHeight(v,S);return D.x*R+D.y*L+D.z*O}}}var hJi=Uint16Array.BYTES_PER_ELEMENT,Cit=Uint32Array.BYTES_PER_ELEMENT,Ewe=Int32Array.BYTES_PER_ELEMENT,dJi=Float32Array.BYTES_PER_ELEMENT,Awe=Float64Array.BYTES_PER_ELEMENT;function fJi(o,f,m,x){let v=o._buffer,y=0,C=0,w=0;m>.5?(f>.5?(y=2,C=.5):y=3,w=.5):f>.5&&(y=1,C=.5);let T=new DataView(v),E=0;for(let H=0;H<y;++H)E+=T.getUint32(E,!0),E+=Cit;E+=Cit,E+=2*Awe;let A=Ce.toRadians(T.getFloat64(E,!0)*180);E+=Awe;let S=Ce.toRadians(T.getFloat64(E,!0)*180);E+=Awe;let M=x.width/A/2,I=x.height/S/2,P=T.getInt32(E,!0);E+=Ewe;let D=T.getInt32(E,!0)*3;E+=Ewe,E+=Ewe;let R=new Array(P),L=new Array(P),O=new Array(P),F;for(F=0;F<P;++F)R[F]=C+T.getUint8(E++)*M,L[F]=w+T.getUint8(E++)*I,O[F]=T.getFloat32(E,!0)*6371010,E+=dJi;let B=new Array(D);for(F=0;F<D;++F)B[F]=T.getUint16(E,!0),E+=hJi;for(F=0;F<D;F+=3){let H=B[F],G=B[F+1],W=B[F+2],Y=R[H],K=R[G],X=R[W],q=L[H],J=L[G],Z=L[W],z=w7.computeBarycentricCoordinates(f,m,Y,q,K,J,X,Z,Gyt);if(z.x>=-1e-15&&z.y>=-1e-15&&z.z>=-1e-15)return z.x*O[H]+z.y*O[G]+z.z*O[W]}}var Lue=HU,qT={UNKNOWN:0,NONE:1,SELF:2,PARENT:3},Fae=new si;function Gfe(){this._terrainCache={},this._lastTidy=si.now()}Gfe.prototype.add=function(o,f){this._terrainCache[o]={buffer:f,timestamp:si.now()}};Gfe.prototype.get=function(o){let f=this._terrainCache[o];if(N(f))return delete this._terrainCache[o],f.buffer};Gfe.prototype.tidy=function(){if(si.now(Fae),si.secondsDifference(Fae,this._lastTidy)>10){let o=this._terrainCache,f=Object.keys(o),m=f.length;for(let x=0;x<m;++x){let v=f[x],y=o[v];si.secondsDifference(Fae,y.timestamp)>10&&delete o[v]}si.clone(Fae,this._lastTidy)}};function C5(o){o=o??pi.EMPTY_OBJECT,this._tilingScheme=new Xh({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new Si(-Ce.PI,-Ce.PI,Ce.PI,Ce.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new rs(f)),this._credit=f,this._levelZeroMaximumGeometricError=40075.16,this._terrainCache=new Gfe,this._terrainPromises={},this._terrainRequests={},this._errorEvent=new Or}Object.defineProperties(C5.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tilingScheme:{get:function(){return this._tilingScheme}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}});C5.fromMetadata=function(o,f){if(!o.terrainPresent)throw new Xi(`The server ${o.url} doesn't have terrain`);let m=new C5(f);return m._metadata=o,m};var pJi=new ep("decodeGoogleEarthEnterprisePacket");function bit(o,f,m){let x=f.getChildBitmask();if(f.terrainState===qT.PARENT){x=0;for(let v=0;v<4;++v){let y=m.getTileInformationFromQuadKey(o+v.toString());N(y)&&y.hasTerrain()&&(x|=1<<v)}}return x}C5.prototype.requestTileGeometry=function(o,f,m,x){let v=A7.tileXYToQuadKey(o,f,m),y=this._terrainCache,C=this._metadata,w=C.getTileInformationFromQuadKey(v);if(!N(w))return Promise.reject(new Xi("Terrain tile doesn't exist"));let T=w.terrainState;N(T)||(T=w.terrainState=qT.UNKNOWN);let E=y.get(v);if(N(E)){let L=C.providers[w.terrainProvider];return Promise.resolve(new Lue({buffer:E,childTileMask:bit(v,w,C),credits:N(L)?[L]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold}))}if(y.tidy(),w.ancestorHasTerrain){if(T===qT.NONE)return Promise.reject(new Xi("Terrain tile doesn't exist"))}else return Promise.resolve(new CP({buffer:new Uint8Array(16*16),width:16,height:16}));let A,S=v,M=-1;switch(T){case qT.SELF:M=w.terrainVersion;break;case qT.PARENT:S=S.substring(0,S.length-1),A=C.getTileInformationFromQuadKey(S),M=A.terrainVersion;break;case qT.UNKNOWN:w.hasTerrain()?M=w.terrainVersion:(S=S.substring(0,S.length-1),A=C.getTileInformationFromQuadKey(S),N(A)&&A.hasTerrain()&&(M=A.terrainVersion));break}if(M<0)return Promise.reject(new Xi("Terrain tile doesn't exist"));let I=this._terrainPromises,P=this._terrainRequests,D,R;if(N(I[S]))D=I[S],R=P[S];else{R=x;let L=mJi(this,S,M,R).fetchArrayBuffer();if(!N(L))return;D=L.then(function(O){return N(O)?pJi.scheduleTask({buffer:O,type:"Terrain",key:C.key},[O]).then(function(F){let B=C.getTileInformationFromQuadKey(S);B.terrainState=qT.SELF,y.add(S,F[0]);let H=B.terrainProvider,G=F.length-1;for(let W=0;W<G;++W){let Y=S+W.toString(),K=C.getTileInformationFromQuadKey(Y);N(K)&&(y.add(Y,F[W+1]),K.terrainState=qT.PARENT,K.terrainProvider===0&&(K.terrainProvider=H))}}):Promise.reject(new Xi("Failed to load terrain."))}),I[S]=D,P[S]=R,D=D.finally(function(){delete I[S],delete P[S]})}return D.then(function(){let L=y.get(v);if(N(L)){let O=C.providers[w.terrainProvider];return new Lue({buffer:L,childTileMask:bit(v,w,C),credits:N(O)?[O]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold})}return Promise.reject(new Xi("Failed to load terrain."))}).catch(function(L){return R.state===Gc.CANCELLED?(x.state=R.state,Promise.reject(L)):(w.terrainState=qT.NONE,Promise.reject(L))})};C5.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};C5.prototype.getTileDataAvailable=function(o,f,m){let x=this._metadata,v=A7.tileXYToQuadKey(o,f,m),y=x.getTileInformation(o,f,m);if(y===null)return!1;if(N(y)){if(!y.ancestorHasTerrain)return!0;let C=y.terrainState;if(C===qT.NONE)return!1;if((!N(C)||C===qT.UNKNOWN)&&(y.terrainState=qT.UNKNOWN,!y.hasTerrain())){v=v.substring(0,v.length-1);let w=x.getTileInformationFromQuadKey(v);if(!N(w)||!w.hasTerrain())return!1}return!0}if(x.isValid(v)){let C=new Jm({throttle:!1,throttleByServer:!0,type:e2.TERRAIN});x.populateSubtree(o,f,m,C)}return!1};C5.prototype.loadTileDataAvailability=function(o,f,m){};function mJi(o,f,m,x){return m=N(m)&&m>0?m:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1c-0${f}-t.${m.toString()}`,request:x})}var Wyt=C5,xJi="https://maps.googleapis.com/maps/api/geocode/json",jyt='<img alt="Google" src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align:-5px">';function Y4e(o){o=o??pi.EMPTY_OBJECT;let f=o.key;this._resource=new Wr({url:xJi,queryParameters:{key:f}}),this._credit=new rs(jyt,!0)}Object.defineProperties(Y4e.prototype,{credit:{get:function(){return this._credit}}});Y4e.prototype.geocode=async function(o){let f=await this._resource.getDerivedResource({queryParameters:{address:o}}).fetchJson();if(f.status==="ZERO_RESULTS")return[];if(f.status!=="OK")throw new Xi(`GoogleGeocoderService got a bad response ${f.status}: ${f.error_message}`);return f.results.map(m=>{let x=m.geometry.viewport.southwest,v=m.geometry.viewport.northeast;return{displayName:m.formatted_address,destination:Si.fromDegrees(x.lng,x.lat,v.lng,v.lat),attribution:{html:jyt,collapsible:!1}}})};var qyt=Y4e,Wfe={};Wfe.defaultApiKey=void 0;Wfe.mapTilesApiEndpoint=new Wr({url:"https://tile.googleapis.com/v1/"});Wfe.getDefaultCredit=function(){return new rs('<img src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align: -5px" alt="Google">',!0)};var f$=Wfe,ree={};ree.type=void 0;ree.getRequiredDataPoints=At.throwInstantiationError;ree.interpolateOrderZero=At.throwInstantiationError;ree.interpolate=At.throwInstantiationError;var Yyt=ree,gJi={GOOGLE:"GOOGLE",BING:"BING",DEFAULT:"DEFAULT"},jV=Object.freeze(gJi);function X4e(o){this._url=Wr.createIfNeeded(o),this._url.appendForwardSlash()}Object.defineProperties(X4e.prototype,{url:{get:function(){return this._url}},credit:{get:function(){}}});X4e.prototype.geocode=async function(o,f){return this._url.getDerivedResource({url:f===iee.AUTOCOMPLETE?"autocomplete":"search",queryParameters:{text:o}}).fetchJson().then(function(m){return m.features.map(function(x){let v,y=x.bbox;if(N(y))v=Si.fromDegrees(y[0],y[1],y[2],y[3]);else{let C=x.geometry.coordinates[0],w=x.geometry.coordinates[1];v=V.fromDegrees(C,w)}return{displayName:x.properties.label,destination:v,attributions:m.attributions}})})};var K4e=X4e;function _Ji(o){if(!Object.values(jV).some(f=>f===o))throw new At(`Invalid geocodeProviderType: "${o}"`)}var Xyt=Object.freeze({[jV.GOOGLE]:"google",[jV.BING]:"bing",[jV.DEFAULT]:void 0});function vJi(o){return Xyt[o]}function yJi(o){return Object.entries(Xyt).find(f=>f[1]===o)[0]}function $4e(o){o=o??pi.EMPTY_OBJECT;let f=o.geocodeProviderType??jV.DEFAULT,m=o.accessToken??NF.defaultAccessToken,x=Wr.createIfNeeded(o.server??NF.defaultServer);x.appendForwardSlash();let v=NF.getDefaultTokenCredit(m);N(v)&&o.scene.frameState.creditDisplay.addStaticCredit(rs.clone(v));let y=x.getDerivedResource({url:"v1/geocode"});N(m)&&y.appendQueryParameters({access_token:m}),this._accessToken=m,this._server=x,this._pelias=new K4e(y),this.geocodeProviderType=f}Object.defineProperties($4e.prototype,{credit:{get:function(){}},geocodeProviderType:{get:function(){return yJi(this._pelias.url.queryParameters.geocoder)},set:function(o){_Ji(o);let f={...this._pelias.url.queryParameters,geocoder:vJi(o)};N(f.geocoder)||delete f.geocoder,this._pelias.url.setQueryParameters(f)}}});$4e.prototype.geocode=async function(o,f){return this._pelias.geocode(o,f)};var jfe=$4e,Xm={};Xm.ExportStatus=Object.freeze({NotStarted:"NotStarted",InProgress:"InProgress",Complete:"Complete",Invalid:"Invalid"});Xm.ExportType=Object.freeze({IMODEL:"IMODEL",CESIUM:"CESIUM","3DTILES":"3DTILES"});Xm.RealityDataType=Object.freeze({Cesium3DTiles:"Cesium3DTiles",PNTS:"PNTS",RealityMesh3DTiles:"RealityMesh3DTiles",Terrain3DTiles:"Terrain3DTiles",KML:"KML",GeoJSON:"GeoJSON",Unstructured:"Unstructured"});Xm.defaultAccessToken=void 0;Xm.defaultShareKey=void 0;Xm._getAuthorizationHeader=function(){return N(Xm.defaultShareKey)?`Basic ${Xm.defaultShareKey}`:`Bearer ${Xm.defaultAccessToken}`};Xm.apiEndpoint=new Wr({url:"https://api.bentley.com"});Xm.getExports=async function(o){let f=new Wr({url:`${Xm.apiEndpoint}mesh-export`,headers:{Authorization:Xm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json",Prefer:"return=representation"},queryParameters:{iModelId:o,exportType:Xm.ExportType["3DTILES"],$top:"5",client:"CesiumJS"}});typeof CESIUM_VERSION<"u"&&f.appendQueryParameters({clientVersion:CESIUM_VERSION});try{return await f.fetchJson()}catch(m){let x=JSON.parse(m.response);if(m.statusCode===401){let v=x.error.details?.[0].code??"";throw new Xi(`Unauthorized, bad token, wrong scopes or headers bad. ${v}`)}else{if(m.statusCode===403)throw console.error(x.error.code,x.error.message),new Xi("Not allowed, forbidden");if(m.statusCode===422)throw new Xi(`Unprocessable Entity:${x.error.code} ${x.error.message}`);if(m.statusCode===429)throw new Xi("Too many requests")}throw new Xi(`Unknown request failure ${m.statusCode}`)}};Xm.getRealityDataMetadata=async function(o,f){let m=new Wr({url:`${Xm.apiEndpoint}reality-management/reality-data/${f}`,headers:{Authorization:Xm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{return(await m.fetchJson()).realityData}catch(x){let v=JSON.parse(x.response);if(x.statusCode===401){let y=v.error.details?.[0].code??"";throw new Xi(`Unauthorized, bad token, wrong scopes or headers bad. ${y}`)}else{if(x.statusCode===403)throw console.error(v.error.code,v.error.message),new Xi("Not allowed, forbidden");if(x.statusCode===404)throw new Xi(`Reality data not found: ${o}, ${f}`);if(x.statusCode===422)throw new Xi(`Unprocessable Entity:${v.error.code} ${v.error.message}`);if(x.statusCode===429)throw new Xi("Too many requests")}throw new Xi(`Unknown request failure ${x.statusCode}`)}};Xm.getRealityDataURL=async function(o,f,m){let x=new Wr({url:`${Xm.apiEndpoint}reality-management/reality-data/${f}/readaccess`,headers:{Authorization:Xm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{let v=(await x.fetchJson())._links.containerUrl.href,y=new URL(v);return y.pathname=`${y.pathname}/${m}`,y.toString()}catch(v){let y=JSON.parse(v.response);if(v.statusCode===401){let C=y.error.details?.[0].code??"";throw new Xi(`Unauthorized, bad token, wrong scopes or headers bad. ${C}`)}else{if(v.statusCode===403)throw console.error(y.error.code,y.error.message),new Xi("Not allowed, forbidden");if(v.statusCode===404)throw new Xi(`Reality data not found: ${o}, ${f}`);if(v.statusCode===422)throw new Xi(`Unprocessable Entity:${y.error.code} ${y.error.message}`);if(v.statusCode===429)throw new Xi("Too many requests")}throw new Xi(`Unknown request failure ${v.statusCode}`)}};var w_=Xm,CJi=new ep("transcodeCRNToDXT",Number.POSITIVE_INFINITY);function bJi(o){let f;if(o instanceof ArrayBuffer||ArrayBuffer.isView(o)?f=Promise.resolve(o):f=Wr.createIfNeeded(o).fetchArrayBuffer(),!!N(f))return f.then(function(m){if(!N(m))return;let x=[];return m instanceof ArrayBuffer?x.push(m):(m.byteOffset===0&&m.byteLength===m.buffer.byteLength||(m=m.slice(0,m.length)),x.push(m.buffer)),CJi.scheduleTask(m,x)}).then(function(m){return BE.clone(m)})}var Kyt=bJi;function qfe(){At.throwInstantiationError()}Object.defineProperties(qfe.prototype,{ellipsoid:{get:At.throwInstantiationError}});qfe.prototype.project=At.throwInstantiationError;qfe.prototype.unproject=At.throwInstantiationError;var $yt=qfe;function S7(o){o=o??pi.EMPTY_OBJECT;let f=o.weights,m=o.times;this._times=m,this._weights=f,this._count=f.length/m.length,this._lastTimeIndex=0}Object.defineProperties(S7.prototype,{times:{get:function(){return this._times}},weights:{get:function(){return this._weights}}});S7.prototype.findTimeInterval=S0.prototype.findTimeInterval;S7.prototype.wrapTime=S0.prototype.wrapTime;S7.prototype.clampTime=S0.prototype.clampTime;S7.prototype.evaluate=function(o,f){let m=this.weights,x=this.times,v=this._lastTimeIndex=this.findTimeInterval(o,this._lastTimeIndex),y=(o-x[v])/(x[v+1]-x[v]);N(f)||(f=new Array(this._count));for(let C=0;C<this._count;C++){let w=v*this._count+C;f[C]=m[w]*(1-y)+m[w+this._count]*y}return f};var Jyt=S7;function J4e(o,f,m){o=Wr.createIfNeeded(o),o.appendForwardSlash(),o.setQueryParameters({key:f}),this._url=o,this._params=m??{},this._credit=new rs('Geodata copyright <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',!1)}Object.defineProperties(J4e.prototype,{url:{get:function(){return this._url}},params:{get:function(){return this._params}},credit:{get:function(){return this._credit}}});J4e.prototype.geocode=async function(o){return this._url.getDerivedResource({url:"json",queryParameters:Fa(this._params,{q:o})}).fetchJson().then(function(f){return f.results.map(function(m){let x,v=m.bounds;if(N(v))x=Si.fromDegrees(v.southwest.lng,v.southwest.lat,v.northeast.lng,v.northeast.lat);else{let y=m.geometry.lat,C=m.geometry.lng;x=V.fromDegrees(y,C)}return{displayName:m.formatted,destination:x}})})};var Qyt=J4e,wJi={packedLength:void 0,pack:At.throwInstantiationError,unpack:At.throwInstantiationError},Zyt=wJi,TJi={packedInterpolationLength:void 0,convertPackedArrayForInterpolation:At.throwInstantiationError,unpackInterpolationResult:At.throwInstantiationError},e2t=TJi,EJi=new V;function AJi(o,f,m,x){let v=Sce(o,f,m,x,EJi);return N(v)?v.x>0&&v.y>0&&v.z>0:!1}var t2t=AJi;function i2t(){At.throwInstantiationError()}i2t.prototype.getURL=At.throwInstantiationError;var r2t=i2t;function SJi(o,f,m,x,v,y,C){let w=Nd.numberOfPoints(o,f,v),T,E=m.red,A=m.green,S=m.blue,M=m.alpha,I=x.red,P=x.green,D=x.blue,R=x.alpha;if(ze.equals(m,x)){for(T=0;T<w;T++)y[C++]=ze.floatToByte(E),y[C++]=ze.floatToByte(A),y[C++]=ze.floatToByte(S),y[C++]=ze.floatToByte(M);return C}let L=(I-E)/w,O=(P-A)/w,F=(D-S)/w,B=(R-M)/w,H=C;for(T=0;T<w;T++)y[H++]=ze.floatToByte(E+T*L),y[H++]=ze.floatToByte(A+T*O),y[H++]=ze.floatToByte(S+T*F),y[H++]=ze.floatToByte(M+T*B);return H}function DJ(o){o=o??pi.EMPTY_OBJECT;let f=o.positions,m=o.colors,x=o.colorsPerVertex??!1;this._positions=f,this._colors=m,this._colorsPerVertex=x,this._arcType=o.arcType??xs.GEODESIC,this._granularity=o.granularity??Ce.RADIANS_PER_DEGREE,this._ellipsoid=o.ellipsoid??Ei.default,this._workerName="createSimplePolylineGeometry";let v=1+f.length*V.packedLength;v+=N(m)?1+m.length*ze.packedLength:1,this.packedLength=v+Ei.packedLength+3}DJ.pack=function(o,f,m){m=m??0;let x,v=o._positions,y=v.length;for(f[m++]=y,x=0;x<y;++x,m+=V.packedLength)V.pack(v[x],f,m);let C=o._colors;for(y=N(C)?C.length:0,f[m++]=y,x=0;x<y;++x,m+=ze.packedLength)ze.pack(C[x],f,m);return Ei.pack(o._ellipsoid,f,m),m+=Ei.packedLength,f[m++]=o._colorsPerVertex?1:0,f[m++]=o._arcType,f[m]=o._granularity,f};DJ.unpack=function(o,f,m){f=f??0;let x,v=o[f++],y=new Array(v);for(x=0;x<v;++x,f+=V.packedLength)y[x]=V.unpack(o,f);v=o[f++];let C=v>0?new Array(v):void 0;for(x=0;x<v;++x,f+=ze.packedLength)C[x]=ze.unpack(o,f);let w=Ei.unpack(o,f);f+=Ei.packedLength;let T=o[f++]===1,E=o[f++],A=o[f];return N(m)?(m._positions=y,m._colors=C,m._ellipsoid=w,m._colorsPerVertex=T,m._arcType=E,m._granularity=A,m):new DJ({positions:y,colors:C,ellipsoid:w,colorsPerVertex:T,arcType:E,granularity:A})};var Vse=new Array(2),zse=new Array(2),PJi={positions:Vse,height:zse,ellipsoid:void 0,minDistance:void 0,granularity:void 0};DJ.createGeometry=function(o){let f=o._positions,m=o._colors,x=o._colorsPerVertex,v=o._arcType,y=o._granularity,C=o._ellipsoid,w=Ce.chordLength(y,C.maximumRadius),T=N(m)&&!x,E,A=f.length,S,M,I,P,D=0;if(v===xs.GEODESIC||v===xs.RHUMB){let B,H,G;v===xs.GEODESIC?(B=Ce.chordLength(y,C.maximumRadius),H=Nd.numberOfPoints,G=Nd.generateArc):(B=y,H=Nd.numberOfPointsRhumbLine,G=Nd.generateRhumbArc);let W=Nd.extractHeights(f,C),Y=PJi;if(v===xs.GEODESIC?Y.minDistance=w:Y.granularity=y,Y.ellipsoid=C,T){let K=0;for(E=0;E<A-1;E++)K+=H(f[E],f[E+1],B)+1;S=new Float64Array(K*3),I=new Uint8Array(K*4),Y.positions=Vse,Y.height=zse;let X=0;for(E=0;E<A-1;++E){Vse[0]=f[E],Vse[1]=f[E+1],zse[0]=W[E],zse[1]=W[E+1];let q=G(Y);if(N(m)){let J=q.length/3;P=m[E];for(let Z=0;Z<J;++Z)I[X++]=ze.floatToByte(P.red),I[X++]=ze.floatToByte(P.green),I[X++]=ze.floatToByte(P.blue),I[X++]=ze.floatToByte(P.alpha)}S.set(q,D),D+=q.length}}else if(Y.positions=f,Y.height=W,S=new Float64Array(G(Y)),N(m)){for(I=new Uint8Array(S.length/3*4),E=0;E<A-1;++E){let X=f[E],q=f[E+1],J=m[E],Z=m[E+1];D=SJi(X,q,J,Z,w,I,D)}let K=m[A-1];I[D++]=ze.floatToByte(K.red),I[D++]=ze.floatToByte(K.green),I[D++]=ze.floatToByte(K.blue),I[D++]=ze.floatToByte(K.alpha)}}else{M=T?A*2-2:A,S=new Float64Array(M*3),I=N(m)?new Uint8Array(M*4):void 0;let B=0,H=0;for(E=0;E<A;++E){let G=f[E];if(T&&E>0&&(V.pack(G,S,B),B+=3,P=m[E-1],I[H++]=ze.floatToByte(P.red),I[H++]=ze.floatToByte(P.green),I[H++]=ze.floatToByte(P.blue),I[H++]=ze.floatToByte(P.alpha)),T&&E===A-1)break;V.pack(G,S,B),B+=3,N(m)&&(P=m[E],I[H++]=ze.floatToByte(P.red),I[H++]=ze.floatToByte(P.green),I[H++]=ze.floatToByte(P.blue),I[H++]=ze.floatToByte(P.alpha))}}let R=new ph;R.position=new Zr({componentDatatype:ti.DOUBLE,componentsPerAttribute:3,values:S}),N(m)&&(R.color=new Zr({componentDatatype:ti.UNSIGNED_BYTE,componentsPerAttribute:4,values:I,normalize:!0})),M=S.length/3;let L=(M-1)*2,O=Jn.createTypedArray(M,L),F=0;for(E=0;E<M-1;++E)O[F++]=E,O[F++]=E+1;return new Ma({attributes:R,indices:O,primitiveType:An.LINES,boundingSphere:Li.fromPoints(f)})};var n2t=DJ;function k9(o){let f=o.radius??1,m={radii:new V(f,f,f),stackPartitions:o.stackPartitions,slicePartitions:o.slicePartitions,vertexFormat:o.vertexFormat};this._ellipsoidGeometry=new zx(m),this._workerName="createSphereGeometry"}k9.packedLength=zx.packedLength;k9.pack=function(o,f,m){return zx.pack(o._ellipsoidGeometry,f,m)};var IJi=new zx,UN={radius:void 0,radii:new V,vertexFormat:new sn,stackPartitions:void 0,slicePartitions:void 0};k9.unpack=function(o,f,m){let x=zx.unpack(o,f,IJi);return UN.vertexFormat=sn.clone(x._vertexFormat,UN.vertexFormat),UN.stackPartitions=x._stackPartitions,UN.slicePartitions=x._slicePartitions,N(m)?(V.clone(x._radii,UN.radii),m._ellipsoidGeometry=new zx(UN),m):(UN.radius=x._radii.x,new k9(UN))};k9.createGeometry=function(o){return zx.createGeometry(o._ellipsoidGeometry)};var o2t=k9;function oB(o){}Object.defineProperties(oB.prototype,{ellipsoid:{get:At.throwInstantiationError},rectangle:{get:At.throwInstantiationError},projection:{get:At.throwInstantiationError}});oB.prototype.getNumberOfXTilesAtLevel=At.throwInstantiationError;oB.prototype.getNumberOfYTilesAtLevel=At.throwInstantiationError;oB.prototype.rectangleToNativeRectangle=At.throwInstantiationError;oB.prototype.tileXYToNativeRectangle=At.throwInstantiationError;oB.prototype.tileXYToRectangle=At.throwInstantiationError;oB.prototype.positionToTileXY=At.throwInstantiationError;var a2t=oB;function Dz(o){o=o??pi.EMPTY_OBJECT,this._clock=void 0,this._element=void 0,this._clockSubscription=void 0,this._seekFunction=void 0,this._lastPlaybackRate=void 0,this.clock=o.clock,this.element=o.element,this.epoch=o.epoch??kn.MINIMUM_VALUE,this.tolerance=o.tolerance??1,this._seeking=!1,this._seekFunction=void 0,this._firstTickAfterSeek=!1}Object.defineProperties(Dz.prototype,{clock:{get:function(){return this._clock},set:function(o){let f=this._clock;f!==o&&(N(f)&&(this._clockSubscription(),this._clockSubscription=void 0),N(o)&&(this._clockSubscription=o.onTick.addEventListener(Dz.prototype._onTick,this)),this._clock=o)}},element:{get:function(){return this._element},set:function(o){let f=this._element;f!==o&&(N(f)&&f.removeEventListener("seeked",this._seekFunction,!1),N(o)&&(this._seeking=!1,this._seekFunction=MJi(this),o.addEventListener("seeked",this._seekFunction,!1)),this._element=o,this._seeking=!1,this._firstTickAfterSeek=!1)}}});Dz.prototype.destroy=function(){return this.element=void 0,this.clock=void 0,Ir(this)};Dz.prototype.isDestroyed=function(){return!1};Dz.prototype._trySetPlaybackRate=function(o){if(this._lastPlaybackRate===o.multiplier)return;let f=this._element;try{f.playbackRate=o.multiplier}catch{f.playbackRate=0}this._lastPlaybackRate=o.multiplier};Dz.prototype._onTick=function(o){let f=this._element;if(!N(f)||f.readyState<2)return;let m=f.paused,x=o.shouldAnimate;if(x===m&&(x?f.play():f.pause()),this._seeking||this._firstTickAfterSeek){this._firstTickAfterSeek=!1;return}this._trySetPlaybackRate(o);let v=o.currentTime,y=this.epoch??kn.MINIMUM_VALUE,C=si.secondsDifference(v,y),w=f.duration,T,E=f.currentTime;f.loop?(C=C%w,C<0&&(C=w-C),T=C):C>w?T=w:C<0?T=0:T=C;let A=x?this.tolerance??1:.001;Math.abs(T-E)>A&&(this._seeking=!0,f.currentTime=T)};function MJi(o){return function(){o._seeking=!1,o._firstTickAfterSeek=!0}}var s2t=Dz;function DJi(o,f){this.rectangle=o,this.maxLevel=f}function l2t(o){this.ellipsoid=o.ellipsoid??Ei.default,this.tilingScheme=void 0,this.heightmapWidth=void 0,this.heightmapHeight=void 0,this.levelZeroMaximumGeometricError=void 0,this.rectangles=[]}l2t.prototype.build=function(o){o._tilingScheme=this.tilingScheme,o._heightmapWidth=this.heightmapWidth,o._heightmapHeight=this.heightmapHeight,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._rectangles=this.rectangles};function RJi(o,f){let m=f.getElementsByTagName("SRS")[0].textContent;if(m==="EPSG:4326")o.tilingScheme=new Xh({ellipsoid:o.ellipsoid});else throw new Xi(`SRS ${m} is not supported`);let x=f.getElementsByTagName("TileFormat")[0];o.heightmapWidth=parseInt(x.getAttribute("width"),10),o.heightmapHeight=parseInt(x.getAttribute("height"),10),o.levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.ellipsoid,Math.min(o.heightmapWidth,o.heightmapHeight),o.tilingScheme.getNumberOfXTilesAtLevel(0));let v=f.getElementsByTagName("DataExtent");for(let y=0;y<v.length;++y){let C=v[y],w=Ce.toRadians(parseFloat(C.getAttribute("minx"))),T=Ce.toRadians(parseFloat(C.getAttribute("miny"))),E=Ce.toRadians(parseFloat(C.getAttribute("maxx"))),A=Ce.toRadians(parseFloat(C.getAttribute("maxy"))),S=parseInt(C.getAttribute("maxlevel"),10);o.rectangles.push(new DJi(new Si(w,T,E,A),S))}}function LJi(o,f,m){let x=`An error occurred while accessing ${o.url}`;throw N(f)&&N(f.message)&&(x=`${x}: ${f.message}`),qm.reportError(void 0,m,N(m)?m._errorEvent:void 0,x),new Xi(x)}async function OJi(o,f,m){try{let x=await f.fetchXML();RJi(o,x)}catch(x){LJi(f,x,m)}}function b5(o){o=o??pi.EMPTY_OBJECT,this._errorEvent=new Or,this._terrainDataStructure={heightScale:1/1e3,heightOffset:-1e3,elementsPerHeight:3,stride:4,elementMultiplier:256,isBigEndian:!0,lowestEncodedHeight:0,highestEncodedHeight:256*256*256-1};let f=o.credit;typeof f=="string"&&(f=new rs(f)),this._credit=f,this._tilingScheme=void 0,this._rectangles=[]}Object.defineProperties(b5.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}});b5.fromUrl=async function(o,f){f=f??pi.EMPTY_OBJECT;let m=new l2t(f),x=Wr.createIfNeeded(o);await OJi(m,x);let v=new b5(f);return m.build(v),v._resource=x,v};b5.prototype.requestTileGeometry=function(o,f,m,x){let v=this._tilingScheme.getNumberOfYTilesAtLevel(m),y=this._resource.getDerivedResource({url:`${m}/${o}/${v-f-1}.tif`,queryParameters:{cesium:!0},request:x}).fetchImage({preferImageBitmap:!0});if(!N(y))return;let C=this;return Promise.resolve(y).then(function(w){return new CP({buffer:XV(w),width:C._heightmapWidth,height:C._heightmapHeight,childTileMask:NJi(C,o,f,m),structure:C._terrainDataStructure})})};b5.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};var u2t=new Si;function NJi(o,f,m,x){let v=o._tilingScheme,y=o._rectangles,C=v.tileXYToRectangle(f,m,x),w=0;for(let T=0;T<y.length&&w!==15;++T){let E=y[T];if(E.maxLevel<=x)continue;let A=E.rectangle,S=Si.intersection(A,C,u2t);N(S)&&(Bae(v,A,f*2,m*2,x+1)&&(w|=4),Bae(v,A,f*2+1,m*2,x+1)&&(w|=8),Bae(v,A,f*2,m*2+1,x+1)&&(w|=1),Bae(v,A,f*2+1,m*2+1,x+1)&&(w|=2))}return w}function Bae(o,f,m,x,v){let y=o.tileXYToRectangle(m,x,v);return N(Si.intersection(y,f,u2t))}b5.prototype.getTileDataAvailable=function(o,f,m){};b5.prototype.loadTileDataAvailability=function(o,f,m){};var c2t=b5,FJi={VK_FORMAT_UNDEFINED:0,VK_FORMAT_R4G4_UNORM_PACK8:1,VK_FORMAT_R4G4B4A4_UNORM_PACK16:2,VK_FORMAT_B4G4R4A4_UNORM_PACK16:3,VK_FORMAT_R5G6B5_UNORM_PACK16:4,VK_FORMAT_B5G6R5_UNORM_PACK16:5,VK_FORMAT_R5G5B5A1_UNORM_PACK16:6,VK_FORMAT_B5G5R5A1_UNORM_PACK16:7,VK_FORMAT_A1R5G5B5_UNORM_PACK16:8,VK_FORMAT_R8_UNORM:9,VK_FORMAT_R8_SNORM:10,VK_FORMAT_R8_USCALED:11,VK_FORMAT_R8_SSCALED:12,VK_FORMAT_R8_UINT:13,VK_FORMAT_R8_SINT:14,VK_FORMAT_R8_SRGB:15,VK_FORMAT_R8G8_UNORM:16,VK_FORMAT_R8G8_SNORM:17,VK_FORMAT_R8G8_USCALED:18,VK_FORMAT_R8G8_SSCALED:19,VK_FORMAT_R8G8_UINT:20,VK_FORMAT_R8G8_SINT:21,VK_FORMAT_R8G8_SRGB:22,VK_FORMAT_R8G8B8_UNORM:23,VK_FORMAT_R8G8B8_SNORM:24,VK_FORMAT_R8G8B8_USCALED:25,VK_FORMAT_R8G8B8_SSCALED:26,VK_FORMAT_R8G8B8_UINT:27,VK_FORMAT_R8G8B8_SINT:28,VK_FORMAT_R8G8B8_SRGB:29,VK_FORMAT_B8G8R8_UNORM:30,VK_FORMAT_B8G8R8_SNORM:31,VK_FORMAT_B8G8R8_USCALED:32,VK_FORMAT_B8G8R8_SSCALED:33,VK_FORMAT_B8G8R8_UINT:34,VK_FORMAT_B8G8R8_SINT:35,VK_FORMAT_B8G8R8_SRGB:36,VK_FORMAT_R8G8B8A8_UNORM:37,VK_FORMAT_R8G8B8A8_SNORM:38,VK_FORMAT_R8G8B8A8_USCALED:39,VK_FORMAT_R8G8B8A8_SSCALED:40,VK_FORMAT_R8G8B8A8_UINT:41,VK_FORMAT_R8G8B8A8_SINT:42,VK_FORMAT_R8G8B8A8_SRGB:43,VK_FORMAT_B8G8R8A8_UNORM:44,VK_FORMAT_B8G8R8A8_SNORM:45,VK_FORMAT_B8G8R8A8_USCALED:46,VK_FORMAT_B8G8R8A8_SSCALED:47,VK_FORMAT_B8G8R8A8_UINT:48,VK_FORMAT_B8G8R8A8_SINT:49,VK_FORMAT_B8G8R8A8_SRGB:50,VK_FORMAT_A8B8G8R8_UNORM_PACK32:51,VK_FORMAT_A8B8G8R8_SNORM_PACK32:52,VK_FORMAT_A8B8G8R8_USCALED_PACK32:53,VK_FORMAT_A8B8G8R8_SSCALED_PACK32:54,VK_FORMAT_A8B8G8R8_UINT_PACK32:55,VK_FORMAT_A8B8G8R8_SINT_PACK32:56,VK_FORMAT_A8B8G8R8_SRGB_PACK32:57,VK_FORMAT_A2R10G10B10_UNORM_PACK32:58,VK_FORMAT_A2R10G10B10_SNORM_PACK32:59,VK_FORMAT_A2R10G10B10_USCALED_PACK32:60,VK_FORMAT_A2R10G10B10_SSCALED_PACK32:61,VK_FORMAT_A2R10G10B10_UINT_PACK32:62,VK_FORMAT_A2R10G10B10_SINT_PACK32:63,VK_FORMAT_A2B10G10R10_UNORM_PACK32:64,VK_FORMAT_A2B10G10R10_SNORM_PACK32:65,VK_FORMAT_A2B10G10R10_USCALED_PACK32:66,VK_FORMAT_A2B10G10R10_SSCALED_PACK32:67,VK_FORMAT_A2B10G10R10_UINT_PACK32:68,VK_FORMAT_A2B10G10R10_SINT_PACK32:69,VK_FORMAT_R16_UNORM:70,VK_FORMAT_R16_SNORM:71,VK_FORMAT_R16_USCALED:72,VK_FORMAT_R16_SSCALED:73,VK_FORMAT_R16_UINT:74,VK_FORMAT_R16_SINT:75,VK_FORMAT_R16_SFLOAT:76,VK_FORMAT_R16G16_UNORM:77,VK_FORMAT_R16G16_SNORM:78,VK_FORMAT_R16G16_USCALED:79,VK_FORMAT_R16G16_SSCALED:80,VK_FORMAT_R16G16_UINT:81,VK_FORMAT_R16G16_SINT:82,VK_FORMAT_R16G16_SFLOAT:83,VK_FORMAT_R16G16B16_UNORM:84,VK_FORMAT_R16G16B16_SNORM:85,VK_FORMAT_R16G16B16_USCALED:86,VK_FORMAT_R16G16B16_SSCALED:87,VK_FORMAT_R16G16B16_UINT:88,VK_FORMAT_R16G16B16_SINT:89,VK_FORMAT_R16G16B16_SFLOAT:90,VK_FORMAT_R16G16B16A16_UNORM:91,VK_FORMAT_R16G16B16A16_SNORM:92,VK_FORMAT_R16G16B16A16_USCALED:93,VK_FORMAT_R16G16B16A16_SSCALED:94,VK_FORMAT_R16G16B16A16_UINT:95,VK_FORMAT_R16G16B16A16_SINT:96,VK_FORMAT_R16G16B16A16_SFLOAT:97,VK_FORMAT_R32_UINT:98,VK_FORMAT_R32_SINT:99,VK_FORMAT_R32_SFLOAT:100,VK_FORMAT_R32G32_UINT:101,VK_FORMAT_R32G32_SINT:102,VK_FORMAT_R32G32_SFLOAT:103,VK_FORMAT_R32G32B32_UINT:104,VK_FORMAT_R32G32B32_SINT:105,VK_FORMAT_R32G32B32_SFLOAT:106,VK_FORMAT_R32G32B32A32_UINT:107,VK_FORMAT_R32G32B32A32_SINT:108,VK_FORMAT_R32G32B32A32_SFLOAT:109,VK_FORMAT_R64_UINT:110,VK_FORMAT_R64_SINT:111,VK_FORMAT_R64_SFLOAT:112,VK_FORMAT_R64G64_UINT:113,VK_FORMAT_R64G64_SINT:114,VK_FORMAT_R64G64_SFLOAT:115,VK_FORMAT_R64G64B64_UINT:116,VK_FORMAT_R64G64B64_SINT:117,VK_FORMAT_R64G64B64_SFLOAT:118,VK_FORMAT_R64G64B64A64_UINT:119,VK_FORMAT_R64G64B64A64_SINT:120,VK_FORMAT_R64G64B64A64_SFLOAT:121,VK_FORMAT_B10G11R11_UFLOAT_PACK32:122,VK_FORMAT_E5B9G9R9_UFLOAT_PACK32:123,VK_FORMAT_D16_UNORM:124,VK_FORMAT_X8_D24_UNORM_PACK32:125,VK_FORMAT_D32_SFLOAT:126,VK_FORMAT_S8_UINT:127,VK_FORMAT_D16_UNORM_S8_UINT:128,VK_FORMAT_D24_UNORM_S8_UINT:129,VK_FORMAT_D32_SFLOAT_S8_UINT:130,VK_FORMAT_BC1_RGB_UNORM_BLOCK:131,VK_FORMAT_BC1_RGB_SRGB_BLOCK:132,VK_FORMAT_BC1_RGBA_UNORM_BLOCK:133,VK_FORMAT_BC1_RGBA_SRGB_BLOCK:134,VK_FORMAT_BC2_UNORM_BLOCK:135,VK_FORMAT_BC2_SRGB_BLOCK:136,VK_FORMAT_BC3_UNORM_BLOCK:137,VK_FORMAT_BC3_SRGB_BLOCK:138,VK_FORMAT_BC4_UNORM_BLOCK:139,VK_FORMAT_BC4_SNORM_BLOCK:140,VK_FORMAT_BC5_UNORM_BLOCK:141,VK_FORMAT_BC5_SNORM_BLOCK:142,VK_FORMAT_BC6H_UFLOAT_BLOCK:143,VK_FORMAT_BC6H_SFLOAT_BLOCK:144,VK_FORMAT_BC7_UNORM_BLOCK:145,VK_FORMAT_BC7_SRGB_BLOCK:146,VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK:147,VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK:148,VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK:149,VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK:150,VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK:151,VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK:152,VK_FORMAT_EAC_R11_UNORM_BLOCK:153,VK_FORMAT_EAC_R11_SNORM_BLOCK:154,VK_FORMAT_EAC_R11G11_UNORM_BLOCK:155,VK_FORMAT_EAC_R11G11_SNORM_BLOCK:156,VK_FORMAT_ASTC_4x4_UNORM_BLOCK:157,VK_FORMAT_ASTC_4x4_SRGB_BLOCK:158,VK_FORMAT_ASTC_5x4_UNORM_BLOCK:159,VK_FORMAT_ASTC_5x4_SRGB_BLOCK:160,VK_FORMAT_ASTC_5x5_UNORM_BLOCK:161,VK_FORMAT_ASTC_5x5_SRGB_BLOCK:162,VK_FORMAT_ASTC_6x5_UNORM_BLOCK:163,VK_FORMAT_ASTC_6x5_SRGB_BLOCK:164,VK_FORMAT_ASTC_6x6_UNORM_BLOCK:165,VK_FORMAT_ASTC_6x6_SRGB_BLOCK:166,VK_FORMAT_ASTC_8x5_UNORM_BLOCK:167,VK_FORMAT_ASTC_8x5_SRGB_BLOCK:168,VK_FORMAT_ASTC_8x6_UNORM_BLOCK:169,VK_FORMAT_ASTC_8x6_SRGB_BLOCK:170,VK_FORMAT_ASTC_8x8_UNORM_BLOCK:171,VK_FORMAT_ASTC_8x8_SRGB_BLOCK:172,VK_FORMAT_ASTC_10x5_UNORM_BLOCK:173,VK_FORMAT_ASTC_10x5_SRGB_BLOCK:174,VK_FORMAT_ASTC_10x6_UNORM_BLOCK:175,VK_FORMAT_ASTC_10x6_SRGB_BLOCK:176,VK_FORMAT_ASTC_10x8_UNORM_BLOCK:177,VK_FORMAT_ASTC_10x8_SRGB_BLOCK:178,VK_FORMAT_ASTC_10x10_UNORM_BLOCK:179,VK_FORMAT_ASTC_10x10_SRGB_BLOCK:180,VK_FORMAT_ASTC_12x10_UNORM_BLOCK:181,VK_FORMAT_ASTC_12x10_SRGB_BLOCK:182,VK_FORMAT_ASTC_12x12_UNORM_BLOCK:183,VK_FORMAT_ASTC_12x12_SRGB_BLOCK:184,VK_FORMAT_G8B8G8R8_422_UNORM:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM:1000156006,VK_FORMAT_R10X6_UNORM_PACK16:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16:1000156016,VK_FORMAT_R12X4_UNORM_PACK16:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM:1000156033,VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG:1000054e3,VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG:1000054001,VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG:1000054002,VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG:1000054003,VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG:1000054004,VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG:1000054005,VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG:1000054006,VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG:1000054007,VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT:1000066e3,VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT:1000066001,VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT:1000066002,VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT:1000066003,VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT:1000066004,VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT:1000066005,VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT:1000066006,VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT:1000066007,VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT:1000066008,VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT:1000066009,VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT:1000066010,VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT:1000066011,VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT:1000066012,VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT:1000066013,VK_FORMAT_G8B8G8R8_422_UNORM_KHR:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM_KHR:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR:1000156006,VK_FORMAT_R10X6_UNORM_PACK16_KHR:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR:1000156016,VK_FORMAT_R12X4_UNORM_PACK16_KHR:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM_KHR:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM_KHR:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_KHR:1000156033},h2t=Object.freeze(FJi);function BJi(o){switch(o){case Pi.FLOAT:return"float";case Pi.FLOAT_VEC2:return"vec2";case Pi.FLOAT_VEC3:return"vec3";case Pi.FLOAT_VEC4:return"vec4";case Pi.FLOAT_MAT2:return"mat2";case Pi.FLOAT_MAT3:return"mat3";case Pi.FLOAT_MAT4:return"mat4";case Pi.SAMPLER_2D:return"sampler2D";case Pi.BOOL:return"bool"}}var d2t=BJi;function kJi(o,f,m){return function(){m.apply(o,arguments),f.apply(o,arguments)}}var Q4e=kJi;function V9(o){o=o??pi.EMPTY_OBJECT,Za.defined("options.context",o.context);let f=o.context,m=o.width,x=o.height,v=o.depth,y=o.source,C=o.pixelFormat??an.RGBA,w=o.pixelDataType??bn.UNSIGNED_BYTE,T=an.toInternalFormat(C,w,f);if(!N(m)||!N(x)||!N(v))throw new At("options requires a source field to create an 3d texture. width or height or dimension fileds");if(Za.typeOf.number.greaterThan("width",m,0),m>So.maximumTextureSize)throw new At("width must be less than or equal to the maximum texture size");if(Za.typeOf.number.greaterThan("height",x,0),x>So.maximumTextureSize)throw new At("height must be less than or equal to the maximum texture size");if(Za.typeOf.number.greaterThan("dimensions",v,0),v>So.maximumTextureSize)throw new At("dimension must be less than or equal to the maximum texture size");if(!an.validate(C))throw new At("Invalid options.pixelFormat.");if(!bn.validate(w))throw new At("Invalid options.pixelDatatype.");let E=!0,A=f._gl,S=A.TEXTURE_3D,M=A.createTexture();A.activeTexture(A.TEXTURE0),A.bindTexture(S,M);let I=4;if(N(y)&&N(y.arrayBufferView)&&(I=an.alignmentInBytes(C,w,m)),A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),A.pixelStorei(A.UNPACK_FLIP_Y_WEBGL,!1),A.pixelStorei(A.UNPACK_ALIGNMENT,I),A.pixelStorei(A.UNPACK_COLORSPACE_CONVERSION_WEBGL,A.BROWSER_DEFAULT_WEBGL),N(y)&&N(y.arrayBufferView)){let P=y.arrayBufferView;A.texImage3D(S,0,T,m,x,v,0,C,bn.toWebGLConstant(w,f),P),E=!0}A.bindTexture(S,null),this._id=Hu(),this._context=f,this._textureFilterAnisotropic=f._textureFilterAnisotropic,this._textureTarget=S,this._texture=M,this._internalFormat=T,this._pixelFormat=C,this._pixelDatatype=w,this._width=m,this._height=x,this._depth=v,this._dimensions=new V(m,x,v),this._hasMinmap=!1,this._sizeInBytes=4,this._preMultiplyAlpha=!1,this._flipY=!1,this._initialized=E,this._sampler=void 0,this.sampler=N(o.sampler)?o.sampler:new aa}V9.fromFramebuffer=function(o){o=o??pi.EMPTY_OBJECT,Za.defined("options.context",o.context);let f=o.context,m=f._gl,x=o.pixelFormat??an.RGB,v=o.width??m.drawingBufferWidth,y=o.height??m.drawingBufferHeight,C=o.depth??128,w=o.framebuffer;return new V9({context:f,width:v,height:y,pixelFormat:x,source:{framebuffer:N(w)?w:f.defaultFramebuffer,width:v,height:y,depth:C}})};Object.defineProperties(V9.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(o){let f=o.minificationFilter,m=o.magnificationFilter,x=this._context._gl,v=this._textureTarget;x.activeTexture(x.TEXTURE0),x.bindTexture(v,this._texture),x.texParameteri(v,x.TEXTURE_MIN_FILTER,f),x.texParameteri(v,x.TEXTURE_MAG_FILTER,m),x.texParameteri(v,x.TEXTURE_WRAP_R,o.wrapR),x.texParameteri(v,x.TEXTURE_WRAP_S,o.wrapS),x.texParameteri(v,x.TEXTURE_WRAP_T,o.wrapT),x.bindTexture(v,null),this._sampler=o}},dimensions:{get:function(){return this._dimensions}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},depth:{get:function(){return this._depth}},_target:{get:function(){return this._textureTarget}}});V9.prototype.isDestroyed=function(){return!1};V9.prototype.destory=function(){return this._context._gl.deleteTexture(this._texture),Ir(this)};var Z4e=V9,eke=`uniform sampler2D u_noiseTexture;
uniform vec3 u_noiseTextureDimensions;
uniform float u_noiseDetail;
in vec2 v_offset;
@@ -20389,7 +20396,7 @@
#endif
#endif
}
`,V4e=`#ifdef INSTANCED
`,tke=`#ifdef INSTANCED
in vec2 direction;
#endif
in vec4 positionHighAndScaleX;
@@ -20437,7 +20444,7 @@
    v_slice = slice;
    v_brightness = brightness;
}
`,z4e=`uniform vec3 u_noiseTextureDimensions;
`,ike=`uniform vec3 u_noiseTextureDimensions;
uniform float u_noiseDetail;
uniform vec3 u_noiseOffset;
in vec2 v_position;
@@ -20529,7 +20536,7 @@
    float worley2 = clamp(worleyFBMNoise(position, 3.0, 3.0), 0.0, 1.0);
    out_FragColor = vec4(worley0, worley1, worley2, 1.0);
}
`,U4e=`uniform vec3 u_noiseTextureDimensions;
`,rke=`uniform vec3 u_noiseTextureDimensions;
in vec2 position;
out vec2 v_position;
@@ -20547,7 +20554,7 @@
    transformedPos.y *= noiseTextureRows;
    v_position = transformedPos;
}
`,H4e=`
`,nke=`
in vec2 v_textureCoordinates;
void main()
@@ -20563,14 +20570,7 @@
    out_FragColor = vec4(material.diffuse + material.emission, material.alpha);
}
`;function b7(o,f){this._tilingScheme=o,this._maximumLevel=f,this._rootNodes=[]}var dV=new Si;function d$i(o,f,m,x){let v=x.length;for(let y=0;y<v;++y){let C=x[y];if(C.x===f&&C.y===m&&C.level===o)return!0}return!1}b7.prototype.addAvailableTileRange=function(o,f,m,x,v){let y=this._tilingScheme,C=this._rootNodes;if(o===0)for(let M=m;M<=v;++M)for(let I=f;I<=x;++I)d$i(o,I,M,C)||C.push(new H6(y,void 0,0,I,M));y.tileXYToRectangle(f,m,o,dV);let w=dV.west,T=dV.north;y.tileXYToRectangle(x,v,o,dV);let E=dV.east,A=dV.south,S=new g$i(o,w,A,E,T);for(let M=0;M<C.length;++M){let I=C[M];G4e(I.extent,S)&&_$i(this._maximumLevel,I,S)}};b7.prototype.computeMaximumLevelAtPosition=function(o){let f;for(let m=0;m<this._rootNodes.length;++m){let x=this._rootNodes[m];if(G6(x.extent,o)){f=x;break}}return N(f)?EK(void 0,f,o):-1};var f$i=[],p$i=[],m$i=new Si,x$i=new Si;b7.prototype.computeBestAvailableLevelOverRectangle=function(o){let f=f$i;f.length=0,o.east<o.west?(f.push(Si.fromRadians(-Math.PI,o.south,o.east,o.north,m$i)),f.push(Si.fromRadians(o.west,o.south,Math.PI,o.north,x$i))):f.push(o);let m=p$i;m.length=0;let x;for(x=0;x<this._rootNodes.length;++x)AK(m,this._rootNodes[x],f);for(x=m.length-1;x>=0;--x)if(N(m[x])&&m[x].length===0)return x;return 0};var xit=new kt;b7.prototype.isTileAvailable=function(o,f,m){let x=this._tilingScheme.tileXYToRectangle(f,m,o,dV);return Si.center(x,xit),this.computeMaximumLevelAtPosition(xit)>=o};b7.prototype.computeChildMaskForTile=function(o,f,m){let x=o+1;if(x>=this._maximumLevel)return 0;let v=0;return v|=this.isTileAvailable(x,2*f,2*m+1)?1:0,v|=this.isTileAvailable(x,2*f+1,2*m+1)?2:0,v|=this.isTileAvailable(x,2*f,2*m)?4:0,v|=this.isTileAvailable(x,2*f+1,2*m)?8:0,v};function H6(o,f,m,x,v){this.tilingScheme=o,this.parent=f,this.level=m,this.x=x,this.y=v,this.extent=o.tileXYToRectangle(x,v,m),this.rectangles=[],this._sw=void 0,this._se=void 0,this._nw=void 0,this._ne=void 0}Object.defineProperties(H6.prototype,{nw:{get:function(){return this._nw||(this._nw=new H6(this.tilingScheme,this,this.level+1,this.x*2,this.y*2)),this._nw}},ne:{get:function(){return this._ne||(this._ne=new H6(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2)),this._ne}},sw:{get:function(){return this._sw||(this._sw=new H6(this.tilingScheme,this,this.level+1,this.x*2,this.y*2+1)),this._sw}},se:{get:function(){return this._se||(this._se=new H6(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2+1)),this._se}}});function g$i(o,f,m,x,v){this.level=o,this.west=f,this.south=m,this.east=x,this.north=v}function G4e(o,f){let m=Math.max(o.west,f.west),x=Math.max(o.south,f.south),v=Math.min(o.east,f.east),y=Math.min(o.north,f.north);return x<y&&m<v}function _$i(o,f,m){for(;f.level<o;)if(Lae(f.nw.extent,m))f=f.nw;else if(Lae(f.ne.extent,m))f=f.ne;else if(Lae(f.sw.extent,m))f=f.sw;else if(Lae(f.se.extent,m))f=f.se;else break;if(f.rectangles.length===0||f.rectangles[f.rectangles.length-1].level<=m.level)f.rectangles.push(m);else{let x=Dg(f.rectangles,m.level,v$i);x<0&&(x=~x),f.rectangles.splice(x,0,m)}}function v$i(o,f){return o.level-f}function Lae(o,f){return f.west>=o.west&&f.east<=o.east&&f.south>=o.south&&f.north<=o.north}function G6(o,f){return f.longitude>=o.west&&f.longitude<=o.east&&f.latitude>=o.south&&f.latitude<=o.north}function EK(o,f,m){let x=0,v=!1;for(;!v;){let y=f._nw&&G6(f._nw.extent,m),C=f._ne&&G6(f._ne.extent,m),w=f._sw&&G6(f._sw.extent,m),T=f._se&&G6(f._se.extent,m);if(y+C+w+T>1){y&&(x=Math.max(x,EK(f,f._nw,m))),C&&(x=Math.max(x,EK(f,f._ne,m))),w&&(x=Math.max(x,EK(f,f._sw,m))),T&&(x=Math.max(x,EK(f,f._se,m)));break}else y?f=f._nw:C?f=f._ne:w?f=f._sw:T?f=f._se:v=!0}for(;f!==o;){let y=f.rectangles;for(let C=y.length-1;C>=0&&y[C].level>x;--C){let w=y[C];G6(w,m)&&(x=w.level)}f=f.parent}return x}function AK(o,f,m){if(!f)return;let x,v=!1;for(x=0;x<m.length;++x)v=v||G4e(f.extent,m[x]);if(!v)return;let y=f.rectangles;for(x=0;x<y.length;++x){let C=y[x];o[C.level]||(o[C.level]=m),o[C.level]=y$i(o[C.level],C)}AK(o,f._nw,m),AK(o,f._ne,m),AK(o,f._sw,m),AK(o,f._se,m)}function y$i(o,f){let m=[];for(let x=0;x<o.length;++x){let v=o[x];G4e(v,f)?(v.west<f.west&&m.push(new Si(v.west,v.south,f.west,v.north)),v.east>f.east&&m.push(new Si(f.east,v.south,v.east,v.north)),v.south<f.south&&m.push(new Si(Math.max(f.west,v.west),v.south,Math.min(f.east,v.east),f.south)),v.north>f.north&&m.push(new Si(Math.max(f.west,v.west),f.north,Math.min(f.east,v.east),v.north))):m.push(v)}return m}var GF=b7,C$i=15;function _yt(o){this.ellipsoid=o.ellipsoid??Ei.default,this.credit=void 0,this.tilingScheme=void 0,this.height=void 0,this.width=void 0,this.encoding=void 0,this.lodCount=void 0,this.hasAvailability=!1,this.tilesAvailable=void 0,this.tilesAvailabilityLoaded=void 0,this.levelZeroMaximumGeometricError=void 0,this.terrainDataStructure=void 0}_yt.prototype.build=function(o){o._credit=this.credit,o._tilingScheme=this.tilingScheme,o._height=this.height,o._width=this.width,o._encoding=this.encoding,o._lodCount=this.lodCount,o._hasAvailability=this.hasAvailability,o._tilesAvailable=this.tilesAvailable,o._tilesAvailabilityLoaded=this.tilesAvailabilityLoaded,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._terrainDataStructure=this.terrainDataStructure};function b$i(o,f){let m=f.copyrightText;N(m)&&(o.credit=new rs(m));let x=f.spatialReference,v=x.latestWkid??x.wkid,y=f.extent,C={ellipsoid:o.ellipsoid};if(v===4326||v===4490)C.rectangle=Si.fromDegrees(y.xmin,y.ymin,y.xmax,y.ymax),o.tilingScheme=new Xh(C);else if(v===3857){let T=Math.PI*o.ellipsoid.maximumRadius;f.extent.xmax>T&&(f.extent.xmax=T),f.extent.ymax>T&&(f.extent.ymax=T),f.extent.xmin<-T&&(f.extent.xmin=-T),f.extent.ymin<-T&&(f.extent.ymin=-T),C.rectangleSouthwestInMeters=new at(y.xmin,y.ymin),C.rectangleNortheastInMeters=new at(y.xmax,y.ymax),o.tilingScheme=new tp(C)}else throw new Xi("Invalid spatial reference");let w=f.tileInfo;if(!N(w))throw new Xi("tileInfo is required");o.width=w.rows+1,o.height=w.cols+1,o.encoding=w.format==="LERC"?f5.LERC:f5.NONE,o.lodCount=w.lods.length-1,(o.hasAvailability=f.capabilities.indexOf("Tilemap")!==-1)&&(o.tilesAvailable=new GF(o.tilingScheme,o.lodCount),o.tilesAvailable.addAvailableTileRange(0,0,0,o.tilingScheme.getNumberOfXTilesAtLevel(0),o.tilingScheme.getNumberOfYTilesAtLevel(0)),o.tilesAvailabilityLoaded=new GF(o.tilingScheme,o.lodCount)),o.levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.width,o.tilingScheme.getNumberOfXTilesAtLevel(0)),f.bandCount>1&&console.log("ArcGISTiledElevationTerrainProvider: Terrain data has more than 1 band. Using the first one."),N(f.minValues)&&N(f.maxValues)?o.terrainDataStructure={elementMultiplier:1,lowestEncodedHeight:f.minValues[0],highestEncodedHeight:f.maxValues[0]}:o.terrainDataStructure={elementMultiplier:1}}async function w$i(o,f,m){try{let x=await f.fetchJson();b$i(o,x)}catch(x){let v=`An error occurred while accessing ${f}.`;throw qm.reportError(void 0,m,N(m)?m._errorEvent:void 0,v),x}}function v5(o){o=o??pi.EMPTY_OBJECT,this._resource=void 0,this._credit=void 0,this._tilingScheme=void 0,this._levelZeroMaximumGeometricError=void 0,this._maxLevel=void 0,this._terrainDataStructure=void 0,this._width=void 0,this._height=void 0,this._encoding=void 0,this._lodCount=void 0,this._hasAvailability=!1,this._tilesAvailable=void 0,this._tilesAvailabilityLoaded=void 0,this._availableCache={},this._errorEvent=new Or}Object.defineProperties(v5.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){return this._tilesAvailable}}});v5.fromUrl=async function(o,f){f=f??pi.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Wr.createIfNeeded(o);m.appendForwardSlash(),N(f.token)&&(m=m.getDerivedResource({queryParameters:{token:f.token}}));let x=m.getDerivedResource({queryParameters:{f:"pjson"}}),v=new _yt(f);await w$i(v,x);let y=new v5(f);return v.build(y),y._resource=m,y};v5.prototype.requestTileGeometry=function(o,f,m,x){let v=this._resource.getDerivedResource({url:`tile/${m}/${f}/${o}`,request:x}),y=this._hasAvailability,C=Promise.resolve(!0),w;if(y&&!N(W4e(this,m+1,o*2,f*2))){let S=vyt(this,m+1,o*2,f*2);C=S.promise,w=S.request}let T=v.fetchArrayBuffer();if(!N(T)||!N(C))return;let E=this,A=this._tilesAvailable;return Promise.all([T,C]).then(function(S){return new CP({buffer:S[0],width:E._width,height:E._height,childTileMask:y?A.computeChildMaskForTile(m,o,f):C$i,structure:E._terrainDataStructure,encoding:E._encoding})}).catch(async function(S){if(N(w)&&w.state===Gc.CANCELLED){x.cancel();try{await x.deferred?.promise}catch{}return x.state=Gc.CANCELLED,Promise.reject(S)}return Promise.reject(S)})};function W4e(o,f,m,x){if(!o._hasAvailability)return;let v=o._tilesAvailabilityLoaded,y=o._tilesAvailable;if(f>o._lodCount)return!1;if(y.isTileAvailable(f,m,x))return!0;if(v.isTileAvailable(f,m,x))return!1}v5.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};v5.prototype.getTileDataAvailable=function(o,f,m){if(!this._hasAvailability)return;let x=W4e(this,m,o,f);if(N(x))return x;vyt(this,m,o,f)};v5.prototype.loadTileDataAvailability=function(o,f,m){};function T$i(o,f,m,x){let v=f-1,y=m-1,C=x[o.y*f+o.x],w=[],T={startX:o.x,startY:o.y,endX:0,endY:0},E=new at(o.x+1,o.y+1),A=!1,S=!1;for(;!(A&&S);){let M=E.x,I=S?E.y+1:E.y;if(!A){for(let P=o.y;P<I;++P)if(x[P*f+E.x]!==C){A=!0;break}A?(w.push(new at(E.x,o.y)),--E.x,--M,T.endX=E.x):E.x===v?(T.endX=E.x,A=!0):++E.x}if(!S){let P=E.y*f;for(let D=o.x;D<=M;++D)if(x[P+D]!==C){S=!0;break}S?(w.push(new at(o.x,E.y)),--E.y,T.endY=E.y):E.y===y?(T.endY=E.y,S=!0):++E.y}}return{endingIndices:w,range:T,value:C}}function E$i(o,f,m,x,v){let y=[];if(v.every(function(w){return w===v[0]}))return v[0]===1&&y.push({startX:o,startY:f,endX:o+m-1,endY:f+x-1}),y;let C=[new at(0,0)];for(;C.length>0;){let w=C.pop(),T=T$i(w,m,x,v);if(T.value===1){let A=T.range;A.startX+=o,A.endX+=o,A.startY+=f,A.endY+=f,y.push(A)}let E=T.endingIndices;E.length>0&&(C=C.concat(E))}return y}function vyt(o,f,m,x){if(!o._hasAvailability)return{};let v=Math.floor(m/128)*128,y=Math.floor(x/128)*128,C=Math.min(1<<f,128),w=`tilemap/${f}/${y}/${v}/${C}/${C}`,T=o._availableCache;if(N(T[w]))return T[w];let E=new Jm({throttle:!1,throttleByServer:!0,type:e2.TERRAIN}),A=o._resource.getDerivedResource({url:w,request:E}).fetchJson();return N(A)?(A=A.then(function(S){let M=E$i(v,y,C,C,S.data);o._tilesAvailabilityLoaded.addAvailableTileRange(f,v,y,v+C,y+C);let I=o._tilesAvailable;for(let P=0;P<M.length;++P){let D=M[P];I.addAvailableTileRange(f,D.startX,D.startY,D.endX,D.endY)}return W4e(o,f,m,x)}),T[w]={promise:A,request:E},A=A.finally(function(S){return delete T[w],S}),{promise:A,request:E}):{}}var Bfe=v5,yyt="https://dev.virtualearth.net/REST/v1/Locations";function j4e(o){o=o??pi.EMPTY_OBJECT;let f=o.key;this._key=f;let m={key:f};N(o.culture)&&(m.culture=o.culture),this._resource=new Wr({url:yyt,queryParameters:m}),this._credit=new rs('<img src="http://dev.virtualearth.net/Branding/logo_powered_by.png"/>',!1)}Object.defineProperties(j4e.prototype,{url:{get:function(){return yyt}},key:{get:function(){return this._key}},credit:{get:function(){return this._credit}}});j4e.prototype.geocode=async function(o){return this._resource.getDerivedResource({queryParameters:{query:o}}).fetchJsonp("jsonp").then(function(f){return f.resourceSets.length===0?[]:f.resourceSets[0].resources.map(function(m){let x=m.bbox,v=x[0],y=x[1],C=x[2],w=x[3];return{displayName:m.name,destination:Si.fromDegrees(y,v,w,C)}})})};var Cyt=j4e;function q4e(){}Object.defineProperties(q4e.prototype,{credit:{get:function(){}}});q4e.prototype.geocode=function(o){let f=o.match(/[^\s,\n]+/g);if(f.length===2||f.length===3){let m=+f[0],x=+f[1],v=f.length===3?+f[2]:300;if(isNaN(m)&&isNaN(x)){let y=/^(\d+.?\d*)([nsew])/i;for(let C=0;C<f.length;++C){let w=f[C].match(y);y.test(f[C])&&w.length===3&&(/^[ns]/i.test(w[2])?x=/^[n]/i.test(w[2])?+w[1]:-w[1]:/^[ew]/i.test(w[2])&&(m=/^[e]/i.test(w[2])?+w[1]:-w[1]))}}if(!isNaN(m)&&!isNaN(x)&&!isNaN(v)){let y={displayName:o,destination:V.fromDegrees(m,x,v)};return Promise.resolve([y])}}return Promise.resolve([])};var byt=q4e,A$i=new Xt,git=new V,R6=new V;function S$i(o){let f=o.points,m=o.times;if(f.length<3){let x=m[0],v=1/(m[1]-x),y=f[0],C=f[1];return function(w,T){N(T)||(T=new V);let E=(w-x)*v;return V.lerp(y,C,E,T)}}return function(x,v){N(v)||(v=new V);let y=o._lastTimeIndex=o.findTimeInterval(x,o._lastTimeIndex),C=(x-m[y])/(m[y+1]-m[y]),w=A$i;w.z=C,w.y=C*C,w.x=w.y*C,w.w=1;let T,E,A,S,M;return y===0?(T=f[0],E=f[1],A=o.firstTangent,S=V.subtract(f[2],T,git),V.multiplyByScalar(S,.5,S),M=Ee.multiplyByVector(mJ.hermiteCoefficientMatrix,w,w)):y===f.length-2?(T=f[y],E=f[y+1],S=o.lastTangent,A=V.subtract(E,f[y-1],git),V.multiplyByScalar(A,.5,A),M=Ee.multiplyByVector(mJ.hermiteCoefficientMatrix,w,w)):(T=f[y-1],E=f[y],A=f[y+1],S=f[y+2],M=Ee.multiplyByVector(nB.catmullRomCoefficientMatrix,w,w)),v=V.multiplyByScalar(T,M.x,v),V.multiplyByScalar(E,M.y,R6),V.add(v,R6,v),V.multiplyByScalar(A,M.z,R6),V.add(v,R6,v),V.multiplyByScalar(S,M.w,R6),V.add(v,R6,v)}}var P$i=new V,I$i=new V;function nB(o){o=o??pi.EMPTY_OBJECT;let f=o.points,m=o.times,x=o.firstTangent,v=o.lastTangent;if(f.length>2&&(N(x)||(x=P$i,V.multiplyByScalar(f[1],2,x),V.subtract(x,f[2],x),V.subtract(x,f[0],x),V.multiplyByScalar(x,.5,x)),!N(v))){let y=f.length-1;v=I$i,V.multiplyByScalar(f[y-1],2,v),V.subtract(f[y],v,v),V.add(v,f[y-2],v),V.multiplyByScalar(v,.5,v)}this._times=m,this._points=f,this._firstTangent=V.clone(x),this._lastTangent=V.clone(v),this._evaluateFunction=S$i(this),this._lastTimeIndex=0}Object.defineProperties(nB.prototype,{times:{get:function(){return this._times}},points:{get:function(){return this._points}},firstTangent:{get:function(){return this._firstTangent}},lastTangent:{get:function(){return this._lastTangent}}});nB.catmullRomCoefficientMatrix=new Ee(-.5,1,-.5,0,1.5,-2.5,0,1,-1.5,2,.5,0,.5,-.5,0,0);nB.prototype.findTimeInterval=S0.prototype.findTimeInterval;nB.prototype.wrapTime=S0.prototype.wrapTime;nB.prototype.clampTime=S0.prototype.clampTime;nB.prototype.evaluate=function(o,f){return this._evaluateFunction(o,f)};var wyt=nB,kfe={};kfe.clipTriangleAtAxisAlignedThreshold=function(o,f,m,x,v,y){N(y)?y.length=0:y=[];let C,w,T;f?(C=m<o,w=x<o,T=v<o):(C=m>o,w=x>o,T=v>o);let E=C+w+T,A,S,M,I,P,D;return E===1?C?(A=(o-m)/(x-m),S=(o-m)/(v-m),y.push(1),y.push(2),S!==1&&(y.push(-1),y.push(0),y.push(2),y.push(S)),A!==1&&(y.push(-1),y.push(0),y.push(1),y.push(A))):w?(M=(o-x)/(v-x),I=(o-x)/(m-x),y.push(2),y.push(0),I!==1&&(y.push(-1),y.push(1),y.push(0),y.push(I)),M!==1&&(y.push(-1),y.push(1),y.push(2),y.push(M))):T&&(P=(o-v)/(m-v),D=(o-v)/(x-v),y.push(0),y.push(1),D!==1&&(y.push(-1),y.push(2),y.push(1),y.push(D)),P!==1&&(y.push(-1),y.push(2),y.push(0),y.push(P))):E===2?!C&&m!==o?(I=(o-x)/(m-x),P=(o-v)/(m-v),y.push(0),y.push(-1),y.push(1),y.push(0),y.push(I),y.push(-1),y.push(2),y.push(0),y.push(P)):!w&&x!==o?(D=(o-v)/(x-v),A=(o-m)/(x-m),y.push(1),y.push(-1),y.push(2),y.push(1),y.push(D),y.push(-1),y.push(0),y.push(1),y.push(A)):!T&&v!==o&&(S=(o-m)/(v-m),M=(o-x)/(v-x),y.push(2),y.push(-1),y.push(0),y.push(2),y.push(S),y.push(-1),y.push(1),y.push(2),y.push(M)):E!==3&&(y.push(0),y.push(1),y.push(2)),y};kfe.computeBarycentricCoordinates=function(o,f,m,x,v,y,C,w,T){let E=m-C,A=C-v,S=y-w,M=x-w,I=1/(S*E+A*M),P=f-w,D=o-C,R=(S*D+A*P)*I,L=(-M*D+E*P)*I,O=1-R-L;return N(T)?(T.x=R,T.y=L,T.z=O,T):new V(R,L,O)};kfe.computeLineSegmentLineSegmentIntersection=function(o,f,m,x,v,y,C,w,T){let E=(C-v)*(f-y)-(w-y)*(o-v),A=(m-o)*(f-y)-(x-f)*(o-v),S=(w-y)*(m-o)-(C-v)*(x-f);if(S===0)return;let M=E/S,I=A/S;if(M>=0&&M<=1&&I>=0&&I<=1)return N(T)||(T=new at),T.x=o+M*(m-o),T.y=f+M*(x-f),T};var w7=kfe;function y5(o){this._flattenPolygonHeight=o.flattenPolygonHeight||[1],this._flattenPolygon=o.flattenPolygon||[],this._flattenRectangle=o.flattenRectangle,this._quantizedVertices=o.quantizedVertices,this._encodedNormals=o.encodedNormals,this._indices=o.indices,this._minimumHeight=o.minimumHeight,this._maximumHeight=o.maximumHeight,this._boundingSphere=o.boundingSphere,this._orientedBoundingBox=o.orientedBoundingBox,this._horizonOcclusionPoint=o.horizonOcclusionPoint,this._credits=o.credits;let f=this._quantizedVertices.length/3,m=this._uValues=this._quantizedVertices.subarray(0,f),x=this._vValues=this._quantizedVertices.subarray(f,2*f);this._heightValues=this._quantizedVertices.subarray(2*f,3*f);function v(C,w){return x[C]-x[w]}function y(C,w){return m[C]-m[w]}this._westIndices=Nae(o.westIndices,v,f),this._southIndices=Nae(o.southIndices,y,f),this._eastIndices=Nae(o.eastIndices,v,f),this._northIndices=Nae(o.northIndices,y,f),this._westSkirtHeight=o.westSkirtHeight,this._southSkirtHeight=o.southSkirtHeight,this._eastSkirtHeight=o.eastSkirtHeight,this._northSkirtHeight=o.northSkirtHeight,this._childTileMask=o.childTileMask??15,this._createdByUpsampling=o.createdByUpsampling??!1,this._waterMask=o.waterMask,this._mesh=void 0}Object.defineProperties(y5.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}},canUpsample:{get:function(){return N(this._mesh)}}});var Oae=[];function Nae(o,f,m){Oae.length=o.length;let x=!1;for(let v=0,y=o.length;v<y;++v)Oae[v]=o[v],x=x||v>0&&f(o[v-1],o[v])>0;return x?(Oae.sort(f),Jn.createTypedArray(m,Oae)):o}var Tyt="createVerticesFromQuantizedTerrainMesh",M$i=new ep(Tyt),D$i=new ep(Tyt,bU.maximumAsynchronousTasks);y5.prototype.createMesh=function(o){o=o??pi.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,v=o.level,y=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,w=o.throttle??!0,T=f.ellipsoid,E=f.tileXYToRectangle(m,x,v),A=(w?D$i:M$i).scheduleTask({minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,quantizedVertices:this._quantizedVertices,octEncodedNormals:this._encodedNormals,includeWebMercatorT:!0,indices:this._indices,westIndices:this._westIndices,southIndices:this._southIndices,eastIndices:this._eastIndices,northIndices:this._northIndices,westSkirtHeight:this._westSkirtHeight,southSkirtHeight:this._southSkirtHeight,eastSkirtHeight:this._eastSkirtHeight,northSkirtHeight:this._northSkirtHeight,rectangle:E,relativeToCenter:this._boundingSphere.center,ellipsoid:T,exaggeration:y,exaggerationRelativeHeight:C,flattenPolygonHeight:this._flattenPolygonHeight,flattenPolygon:this._flattenPolygon});if(!N(A))return;let S=this;return Promise.resolve(A).then(function(M){let I=S._quantizedVertices.length/3,P=I+S._westIndices.length+S._southIndices.length+S._eastIndices.length+S._northIndices.length,D=Jn.createTypedArray(P,M.indices),R=new Float32Array(M.vertices),L=M.center,O=M.minimumHeight,F=M.maximumHeight,B=S._boundingSphere,H=S._orientedBoundingBox,G=V.clone(M.occludeePointInScaledSpace)??S._horizonOcclusionPoint,W=M.vertexStride,Y=ME.clone(M.encoding);return S._mesh=new wU(L,R,D,M.indexCountWithoutSkirts,I,O,F,B,G,W,H,Y,M.westIndicesSouthToNorth,M.southIndicesEastToWest,M.eastIndicesNorthToSouth,M.northIndicesWestToEast),S._quantizedVertices=void 0,S._encodedNormals=void 0,S._indices=void 0,S._uValues=void 0,S._vValues=void 0,S._heightValues=void 0,S._westIndices=void 0,S._southIndices=void 0,S._eastIndices=void 0,S._northIndices=void 0,S._mesh})};var R$i=new ep("upsampleQuantizedTerrainMesh",bU.maximumAsynchronousTasks);y5.prototype.upsample=function(o,f,m,x,v,y,C){let w=this._mesh;if(!N(this._mesh))return;let T=f*2!==v,E=m*2===y,A=o.ellipsoid,S=o.tileXYToRectangle(v,y,C),M=R$i.scheduleTask({vertices:w.vertices,vertexCountWithoutSkirts:w.vertexCountWithoutSkirts,indices:w.indices,indexCountWithoutSkirts:w.indexCountWithoutSkirts,encoding:w.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:T,isNorthChild:E,childRectangle:S,ellipsoid:A});if(!N(M))return;let I=Math.min(this._westSkirtHeight,this._eastSkirtHeight);I=Math.min(I,this._southSkirtHeight),I=Math.min(I,this._northSkirtHeight);let P=T?I*.5:this._westSkirtHeight,D=E?I*.5:this._southSkirtHeight,R=T?this._eastSkirtHeight:I*.5,L=E?this._northSkirtHeight:I*.5,O=this._credits,F=this;return Promise.resolve(M).then(function(B){let H=new Uint16Array(B.vertices),G=Jn.createTypedArray(H.length/3,B.indices),W;return N(B.encodedNormals)&&(W=new Uint8Array(B.encodedNormals)),new y5({quantizedVertices:H,indices:G,encodedNormals:W,minimumHeight:B.minimumHeight,maximumHeight:B.maximumHeight,boundingSphere:Li.clone(B.boundingSphere),orientedBoundingBox:Ju.clone(B.orientedBoundingBox),horizonOcclusionPoint:V.clone(B.horizonOcclusionPoint),westIndices:B.westIndices,southIndices:B.southIndices,eastIndices:B.eastIndices,northIndices:B.northIndices,westSkirtHeight:P,southSkirtHeight:D,eastSkirtHeight:R,northSkirtHeight:L,childTileMask:0,credits:O,createdByUpsampling:!0,flattenPolygonHeight:F._flattenPolygonHeight,flattenPolygon:F._flattenPolygon,flattenRectangle:F._flattenRectangle})})};var TAe=32767,Eyt=new V;y5.prototype.interpolateHeight=function(o,f,m){let x=Ce.clamp((f-o.west)/o.width,0,1);x*=TAe;let v=Ce.clamp((m-o.south)/o.height,0,1);return v*=TAe,N(this._mesh)?F$i(this,x,v):B$i(this,x,v)};function Ayt(o,f,m,x,v,y,C,w){let T=Math.min(m,v,C),E=Math.max(m,v,C),A=Math.min(x,y,w),S=Math.max(x,y,w);return o>=T&&o<=E&&f>=A&&f<=S}var L$i=new at,O$i=new at,N$i=new at;function F$i(o,f,m){let x=o._mesh,v=x.vertices,y=x.encoding,C=x.indices;for(let w=0,T=C.length;w<T;w+=3){let E=C[w],A=C[w+1],S=C[w+2],M=y.decodeTextureCoordinates(v,E,L$i),I=y.decodeTextureCoordinates(v,A,O$i),P=y.decodeTextureCoordinates(v,S,N$i);if(Ayt(f,m,M.x,M.y,I.x,I.y,P.x,P.y)){let D=w7.computeBarycentricCoordinates(f,m,M.x,M.y,I.x,I.y,P.x,P.y,Eyt);if(D.x>=-1e-15&&D.y>=-1e-15&&D.z>=-1e-15){let R=y.decodeHeight(v,E),L=y.decodeHeight(v,A),O=y.decodeHeight(v,S);return D.x*R+D.y*L+D.z*O}}}}function B$i(o,f,m){let x=o._uValues,v=o._vValues,y=o._heightValues,C=o._indices;for(let w=0,T=C.length;w<T;w+=3){let E=C[w],A=C[w+1],S=C[w+2],M=x[E],I=x[A],P=x[S],D=v[E],R=v[A],L=v[S];if(Ayt(f,m,M,D,I,R,P,L)){let O=w7.computeBarycentricCoordinates(f,m,M,D,I,R,P,L,Eyt);if(O.x>=-1e-15&&O.y>=-1e-15&&O.z>=-1e-15){let F=O.x*y[E]+O.y*y[A]+O.z*y[S];return Ce.lerp(o._minimumHeight,o._maximumHeight,F/TAe)}}}}y5.prototype.isChildAvailable=function(o,f,m,x){let v=2;return m!==o*2&&++v,x!==f*2&&(v-=2),(this._childTileMask&1<<v)!==0};y5.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var Vfe=y5;function k$i(o){this.resource=o.resource,this.version=o.version,this.isHeightmap=o.isHeightmap,this.tileUrlTemplates=o.tileUrlTemplates,this.availability=o.availability,this.hasVertexNormals=o.hasVertexNormals,this.hasWaterMask=o.hasWaterMask,this.hasMetadata=o.hasMetadata,this.availabilityLevels=o.availabilityLevels,this.availabilityTilesLoaded=o.availabilityTilesLoaded,this.littleEndianExtensionSize=o.littleEndianExtensionSize,this.availabilityPromiseCache={}}function Syt(o){this.requestVertexNormals=o.requestVertexNormals??!1,this.requestWaterMask=o.requestWaterMask??!1,this.requestMetadata=o.requestMetadata??!0,this.ellipsoid=o.ellipsoid??Ei.default,this.heightmapWidth=65,this.heightmapStructure=void 0,this.hasWaterMask=!1,this.hasMetadata=!1,this.hasVertexNormals=!1,this.scheme=void 0,this._flattenPolygonHeight=o.flattenPolygonHeight,this._flattenPolygon=o.flattenPolygon,this.lastResource=void 0,this.layerJsonResource=void 0,this.previousError=void 0,this.availability=void 0,this.tilingScheme=void 0,this.levelZeroMaximumGeometricError=void 0,this.heightmapStructure=void 0,this.layers=[],this.attribution="",this.overallAvailability=[],this.overallMaxZoom=0,this.tileCredits=[]}Syt.prototype.build=function(o){o._heightmapWidth=this.heightmapWidth,o._scheme=this.scheme;let f=N(this.lastResource.credits)?this.lastResource.credits:[];o._tileCredits=f.concat(this.tileCredits),o._availability=this.availability,o._tilingScheme=this.tilingScheme,o._requestWaterMask=this.requestWaterMask,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._heightmapStructure=this.heightmapStructure,o._layers=this.layers,o._hasWaterMask=this.hasWaterMask,o._hasVertexNormals=this.hasVertexNormals,o._hasMetadata=this.hasMetadata};async function Pyt(o,f,m){if(!f.format){let R="The tile format is not specified in the layer.json file.";throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}if(!f.tiles||f.tiles.length===0){let R="The layer.json file does not specify any tile URL templates.";throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}let x=!1,v=!1,y=!1,C=!0,w=!1;if(f.format==="heightmap-1.0")w=!0,N(o.heightmapStructure)||(o.heightmapStructure={heightScale:1/5,heightOffset:-1e3,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1,lowestEncodedHeight:0,highestEncodedHeight:256*256-1}),v=!0,o.requestWaterMask=!0;else if(f.format.indexOf("quantized-mesh-1.")!==0){let R=`The tile format "${f.format}" is invalid or not supported.`;throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}let T=f.tiles,E=f.maxzoom;o.overallMaxZoom=Math.max(o.overallMaxZoom,E);let A=[];if(N(f.valid_bounds)?A=f.valid_bounds:A=f.bounds,!f.projection||f.projection==="EPSG:4326")o.tilingScheme=new Xh({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:A.length?A:[]});else if(f.projection==="EPSG:3857"){let R=Math.PI*o.ellipsoid.maximumRadius;A[0]<-R&&(A[0]=-R),A[1]<-R&&(A[1]=-R),A[2]>R&&(A[2]=R),A[3]>R&&(A[3]=R),o.tilingScheme=new tp({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:A.length?A:[]})}else{let R=`The projection "${f.projection}" is invalid or not supported.`;throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}if(o.levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.heightmapWidth,o.tilingScheme.getNumberOfXTilesAtLevel(0)),!f.scheme||f.scheme==="tms"||f.scheme==="slippyMap")o.scheme=f.scheme;else{let R=`The scheme "${f.scheme}" is invalid or not supported.`;throw o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,R),new Xi(R)}let S;N(f.extensions)&&f.extensions.indexOf("octvertexnormals")!==-1?x=!0:N(f.extensions)&&f.extensions.indexOf("vertexnormals")!==-1&&(x=!0,C=!1),N(f.extensions)&&f.extensions.indexOf("watermask")!==-1&&(v=!0),N(f.extensions)&&f.extensions.indexOf("metadata")!==-1&&(y=!0);let M=f.metadataAvailability,I=f.available,P;if(N(I)&&!N(M)){P=new GF(o.tilingScheme,I.length);for(let R=0;R<I.length;++R){let L=I[R],O=o.tilingScheme.getNumberOfYTilesAtLevel(R);N(o.overallAvailability[R])||(o.overallAvailability[R]=[]);for(let F=0;F<L.length;++F){let B=L[F],H=O-B.endY-1,G=O-B.startY-1;o.overallAvailability[R].push([B.startX,H,B.endX,G]),P.addAvailableTileRange(R,B.startX,H,B.endX,G)}}}else N(M)&&(S=new GF(o.tilingScheme,E),P=new GF(o.tilingScheme,E),o.overallAvailability[0]=[[0,0,1,0]],P.addAvailableTileRange(0,0,0,1,0));o.hasWaterMask=o.hasWaterMask||v,o.hasVertexNormals=o.hasVertexNormals||x,o.hasMetadata=o.hasMetadata||y,N(f.attribution)&&(o.attribution.length>0&&(o.attribution+=" "),o.attribution+=f.attribution),o.layers.push(new k$i({resource:o.lastResource,version:f.version,isHeightmap:w,tileUrlTemplates:T,availability:P,hasVertexNormals:x,hasWaterMask:v,hasMetadata:y,availabilityLevels:M,availabilityTilesLoaded:S,littleEndianExtensionSize:C}));let D=f.parentUrl;return N(D)?N(P)?(o.lastResource=o.lastResource.getDerivedResource({url:D}),o.lastResource.appendForwardSlash(),o.layerJsonResource=o.lastResource.getDerivedResource({url:"layer.json"}),await Y4e(o),!0):(console.log("A layer.json can't have a parentUrl if it does't have an available array."),!0):!0}function V$i(o,f,m){let x=`An error occurred while accessing ${o.layerJsonResource.url}.`;if(N(f)&&(x+=`
${f.message}`),o.previousError=qm.reportError(o.previousError,m,N(m)?m._errorEvent:void 0,x),o.previousError.retry)return Y4e(o,m);throw new Xi(x)}async function z$i(o,f,m){await Pyt(o,f,m);let x=o.overallAvailability.length;if(x>0){let v=o.availability=new GF(o.tilingScheme,o.overallMaxZoom);for(let y=0;y<x;++y){let C=o.overallAvailability[y];for(let w=0;w<C.length;++w){let T=C[w];v.addAvailableTileRange(y,T[0],T[1],T[2],T[3])}}}if(o.attribution.length>0){let v=new rs(o.attribution);o.tileCredits.push(v)}return!0}async function Y4e(o,f){try{let m=await o.layerJsonResource.fetchJson();return z$i(o,m,f)}catch(m){return N(m)&&m.statusCode===404?(await Pyt(o,{tilejson:"2.1.0",format:"heightmap-1.0",version:"1.0.0",scheme:"tms",tiles:["{z}/{x}/{y}.terrain?v={version}"]},f),!0):V$i(o,m,f)}}function oP(o){o=o??pi.EMPTY_OBJECT,this._heightmapWidth=void 0,this._heightmapStructure=void 0,this._hasWaterMask=!1,this._hasVertexNormals=!1,this._hasMetadata=!1,this._scheme=void 0,this._ellipsoid=o.ellipsoid,this._requestVertexNormals=o.requestVertexNormals??!1,this._requestWaterMask=o.requestWaterMask??!1,this._requestMetadata=o.requestMetadata??!0,this._errorEvent=new Or;let f=o.credit;typeof f=="string"&&(f=new rs(f)),this._credit=f,this._availability=void 0,this._tilingScheme=void 0,this._levelZeroMaximumGeometricError=void 0,this._layers=void 0,this._tileCredits=void 0}var Cwe={OCT_VERTEX_NORMALS:1,WATER_MASK:2,METADATA:4};function _it(o){return!N(o)||o.length===0?{Accept:"application/vnd.quantized-mesh,application/octet-stream;q=0.9,*/*;q=0.01"}:{Accept:`application/vnd.quantized-mesh;extensions=${o.join("-")},application/octet-stream;q=0.9,*/*;q=0.01`}}function U$i(o,f,m,x,v){let y=new Uint16Array(f,0,o._heightmapWidth*o._heightmapWidth);return new CP({buffer:y,childTileMask:new Uint8Array(f,y.byteLength,1)[0],waterMask:new Uint8Array(f,y.byteLength+1,f.byteLength-y.byteLength-1),width:o._heightmapWidth,height:o._heightmapWidth,structure:o._heightmapStructure,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon})}function H$i(o,f,m,x,v,y){let C=y.littleEndianExtensionSize,w=0,T=3,E=T+1,A=Float64Array.BYTES_PER_ELEMENT*T,S=Float64Array.BYTES_PER_ELEMENT*E,M=Uint16Array.BYTES_PER_ELEMENT*3,I=3,P=Uint16Array.BYTES_PER_ELEMENT,D=P*I,R=new DataView(f),L=new V(R.getFloat64(w,!0),R.getFloat64(w+8,!0),R.getFloat64(w+16,!0));w+=A;let O=R.getFloat32(w,!0);w+=Float32Array.BYTES_PER_ELEMENT;let F=R.getFloat32(w,!0);w+=Float32Array.BYTES_PER_ELEMENT;let B=new Li(new V(R.getFloat64(w,!0),R.getFloat64(w+8,!0),R.getFloat64(w+16,!0)),R.getFloat64(w+A,!0));w+=S;let H=new V(R.getFloat64(w,!0),R.getFloat64(w+8,!0),R.getFloat64(w+16,!0));w+=A;let G=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let W=new Uint16Array(f,w,G*3);w+=G*M,G>64*1024&&(P=Uint32Array.BYTES_PER_ELEMENT,D=P*I);let Y=W.subarray(0,G),K=W.subarray(G,2*G),X=W.subarray(G*2,3*G);nc.zigZagDeltaDecode(Y,K,X),w%P!==0&&(w+=P-w%P);let q=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let J=Jn.createTypedArrayFromArrayBuffer(G,f,w,q*I);w+=q*D;let Z=0,z=J.length;for(let Te=0;Te<z;++Te){let Ae=J[Te];J[Te]=Z-Ae,Ae===0&&++Z}let te=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let ie=Jn.createTypedArrayFromArrayBuffer(G,f,w,te);w+=te*P;let re=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let ee=Jn.createTypedArrayFromArrayBuffer(G,f,w,re);w+=re*P;let oe=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let ae=Jn.createTypedArrayFromArrayBuffer(G,f,w,oe);w+=oe*P;let he=R.getUint32(w,!0);w+=Uint32Array.BYTES_PER_ELEMENT;let me=Jn.createTypedArrayFromArrayBuffer(G,f,w,he);w+=he*P;let ue,ce;for(;w<R.byteLength;){let Te=R.getUint8(w,!0);w+=Uint8Array.BYTES_PER_ELEMENT;let Ae=R.getUint32(w,C);if(w+=Uint32Array.BYTES_PER_ELEMENT,Te===Cwe.OCT_VERTEX_NORMALS&&o._requestVertexNormals)ue=new Uint8Array(f,w,G*2);else if(Te===Cwe.WATER_MASK&&o._requestWaterMask)ce=new Uint8Array(f,w,Ae);else if(Te===Cwe.METADATA&&o._requestMetadata){let Fe=R.getUint32(w,!0);if(Fe>0){let Ue=Yy(new Uint8Array(f),w+Uint32Array.BYTES_PER_ELEMENT,Fe).available;if(N(Ue))for(let it=0;it<Ue.length;++it){let lt=m+it+1,ft=Ue[it],vt=o._tilingScheme.getNumberOfYTilesAtLevel(lt);for(let Pt=0;Pt<ft.length;++Pt){let rt=ft[Pt],yt=vt-rt.endY-1,Dt=vt-rt.startY-1;o.availability.addAvailableTileRange(lt,rt.startX,yt,rt.endX,Dt),y.availability.addAvailableTileRange(lt,rt.startX,yt,rt.endX,Dt)}}}y.availabilityTilesLoaded.addAvailableTileRange(m,x,v,x,v)}w+=Ae}let de=o.getLevelMaximumGeometricError(m)*5,fe=o._tilingScheme.tileXYToRectangle(x,v,m),we=Ju.fromRectangle(fe,O,F,o._tilingScheme.ellipsoid);return new Vfe({center:L,minimumHeight:O,maximumHeight:F,boundingSphere:B,orientedBoundingBox:we,horizonOcclusionPoint:H,quantizedVertices:W,encodedNormals:ue,indices:J,westIndices:ie,southIndices:ee,eastIndices:ae,northIndices:me,westSkirtHeight:de,southSkirtHeight:de,eastSkirtHeight:de,northSkirtHeight:de,childTileMask:o.availability.computeChildMaskForTile(m,x,v),waterMask:ce,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon,flattenRectangle:{rectangle:fe,minimumHeight:O,maximumHeight:F,ellipsoid:o._tilingScheme.ellipsoid}})}oP.prototype.requestTileGeometry=function(o,f,m,x){let v=this._layers,y,C=v.length,w=!1,T=Promise.resolve();if(C===1)y=v[0];else for(let E=0;E<C;++E){let A=v[E];if(!N(A.availability)||A.availability.isTileAvailable(m,o,f)){y=A;break}let S=X4e(this,o,f,m,A,E===0);S.result&&(w=!0,T=T.then(()=>S.promise))}return!N(y)&&w?T.then(()=>new Promise(E=>{setTimeout(()=>{let A=this.requestTileGeometry(o,f,m,x);E(A)},0)})):Iyt(this,o,f,m,y,x)};function Iyt(o,f,m,x,v,y){if(!N(v))return Promise.reject(new Xi("Terrain tile doesn't exist"));let C=v.tileUrlTemplates;if(C.length===0)return;let w;!o._scheme||o._scheme==="tms"?w=o._tilingScheme.getNumberOfYTilesAtLevel(x)-m-1:w=m;let T=[];o._requestVertexNormals&&v.hasVertexNormals&&T.push(v.littleEndianExtensionSize?"octvertexnormals":"vertexnormals"),o._requestWaterMask&&v.hasWaterMask&&T.push("watermask"),o._requestMetadata&&v.hasMetadata&&T.push("metadata");let E,A,S=C[(f+w+x)%C.length],M=v.resource;N(M._ionEndpoint)&&!N(M._ionEndpoint.externalType)?(T.length!==0&&(A={extensions:T.join("-")}),E=_it(void 0)):E=_it(T);let I=M.getDerivedResource({url:S,templateValues:{version:v.version,z:x,x:f,y:w},queryParameters:A,headers:E,request:y}).fetchArrayBuffer();if(N(I))return I.then(function(P){return N(P)?N(o._heightmapStructure)?U$i(o,P,x,f,m):H$i(o,P,x,f,m,v):Promise.reject(new Xi("Mesh buffer doesn't exist."))})}Object.defineProperties(oP.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return this._hasWaterMask&&this._requestWaterMask}},hasVertexNormals:{get:function(){return this._hasVertexNormals&&this._requestVertexNormals}},hasMetadata:{get:function(){return this._hasMetadata&&this._requestMetadata}},requestVertexNormals:{get:function(){return this._requestVertexNormals}},requestWaterMask:{get:function(){return this._requestWaterMask}},requestMetadata:{get:function(){return this._requestMetadata}},availability:{get:function(){return this._availability}}});oP.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};oP.fromIonAssetId=async function(o,f){let m=await FF.fromAssetId(o);return oP.fromUrl(m,f)};oP.fromUrl=async function(o,f){f=f??pi.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Wr.createIfNeeded(o);m.appendForwardSlash();let x=new Syt(f);x.lastResource=m,x.layerJsonResource=x.lastResource.getDerivedResource({url:"layer.json"}),await Y4e(x);let v=new oP(f);return x.build(v),v};oP.prototype.getTileDataAvailable=function(o,f,m){if(!N(this._availability))return;if(m>this._availability._maximumLevel)return!1;if(this._availability.isTileAvailable(m,o,f))return!0;if(!this._hasMetadata)return!1;let x=this._layers,v=x.length;for(let y=0;y<v;++y)if(X4e(this,o,f,m,x[y],y===0).result)return;return!1};oP.prototype.loadTileDataAvailability=function(o,f,m){if(!N(this._availability)||m>this._availability._maximumLevel||this._availability.isTileAvailable(m,o,f)||!this._hasMetadata)return;let x=this._layers,v=x.length;for(let y=0;y<v;++y){let C=X4e(this,o,f,m,x[y],y===0);if(N(C.promise))return C.promise}};function EAe(o,f,m,x){if(x===0)return;let v=o.availabilityLevels,y=x%v===0?x-v:(x/v|0)*v,C=1<<x-y,w=f/C|0,T=m/C|0;return{level:y,x:w,y:T}}function X4e(o,f,m,x,v,y){if(!N(v.availabilityLevels))return{result:!1};let C,w=function(){delete v.availabilityPromiseCache[C]},T=v.availabilityTilesLoaded,E=v.availability,A=EAe(v,f,m,x);for(;N(A);){if(E.isTileAvailable(A.level,A.x,A.y)&&!T.isTileAvailable(A.level,A.x,A.y)){let S;if(!y&&(C=`${A.level}-${A.x}-${A.y}`,S=v.availabilityPromiseCache[C],!N(S))){let M=new Jm({throttle:!1,throttleByServer:!0,type:e2.TERRAIN});S=Iyt(o,A.x,A.y,A.level,v,M),N(S)&&(v.availabilityPromiseCache[C]=S,S.then(w))}return{result:!0,promise:S}}A=EAe(v,A.x,A.y,A.level)}return{result:!1}}oP._getAvailabilityTile=EAe;var T7=oP;function ZL(o){o=o??pi.EMPTY_OBJECT;let f=o.radius,m={center:o.center,semiMajorAxis:f,semiMinorAxis:f,ellipsoid:o.ellipsoid,height:o.height,extrudedHeight:o.extrudedHeight,granularity:o.granularity,vertexFormat:o.vertexFormat,stRotation:o.stRotation,shadowVolume:o.shadowVolume};this._ellipseGeometry=new EE(m),this._workerName="createCircleGeometry"}ZL.packedLength=EE.packedLength;ZL.pack=function(o,f,m){return EE.pack(o._ellipseGeometry,f,m)};var vit=new EE({center:new V,semiMajorAxis:1,semiMinorAxis:1}),dv={center:new V,radius:void 0,ellipsoid:Ei.clone(Ei.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new sn,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};ZL.unpack=function(o,f,m){let x=EE.unpack(o,f,vit);return dv.center=V.clone(x._center,dv.center),dv.ellipsoid=Ei.clone(x._ellipsoid,dv.ellipsoid),dv.ellipsoid=Ei.clone(x._ellipsoid,vit._ellipsoid),dv.height=x._height,dv.extrudedHeight=x._extrudedHeight,dv.granularity=x._granularity,dv.vertexFormat=sn.clone(x._vertexFormat,dv.vertexFormat),dv.stRotation=x._stRotation,dv.shadowVolume=x._shadowVolume,N(m)?(dv.semiMajorAxis=x._semiMajorAxis,dv.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new EE(dv),m):(dv.radius=x._semiMajorAxis,new ZL(dv))};ZL.createGeometry=function(o){return EE.createGeometry(o._ellipseGeometry)};ZL.createShadowVolume=function(o,f,m){let x=o._ellipseGeometry._granularity,v=o._ellipseGeometry._ellipsoid,y=f(x,v),C=m(x,v);return new ZL({center:o._ellipseGeometry._center,radius:o._ellipseGeometry._semiMajorAxis,ellipsoid:v,stRotation:o._ellipseGeometry._stRotation,granularity:x,extrudedHeight:y,height:C,vertexFormat:sn.POSITION_ONLY,shadowVolume:!0})};Object.defineProperties(ZL.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var Myt=ZL;function k9(o){o=o??pi.EMPTY_OBJECT;let f=o.radius,m={center:o.center,semiMajorAxis:f,semiMinorAxis:f,ellipsoid:o.ellipsoid,height:o.height,extrudedHeight:o.extrudedHeight,granularity:o.granularity,numberOfVerticalLines:o.numberOfVerticalLines};this._ellipseGeometry=new SM(m),this._workerName="createCircleOutlineGeometry"}k9.packedLength=SM.packedLength;k9.pack=function(o,f,m){return SM.pack(o._ellipseGeometry,f,m)};var G$i=new SM({center:new V,semiMajorAxis:1,semiMinorAxis:1}),ew={center:new V,radius:void 0,ellipsoid:Ei.clone(Ei.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};k9.unpack=function(o,f,m){let x=SM.unpack(o,f,G$i);return ew.center=V.clone(x._center,ew.center),ew.ellipsoid=Ei.clone(x._ellipsoid,ew.ellipsoid),ew.height=x._height,ew.extrudedHeight=x._extrudedHeight,ew.granularity=x._granularity,ew.numberOfVerticalLines=x._numberOfVerticalLines,N(m)?(ew.semiMajorAxis=x._semiMajorAxis,ew.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new SM(ew),m):(ew.radius=x._semiMajorAxis,new k9(ew))};k9.createGeometry=function(o){return SM.createGeometry(o._ellipseGeometry)};var Dyt=k9;function W$i(o){return o=o??pi.EMPTY_OBJECT,T7.fromIonAssetId(2426648,{requestVertexNormals:o.requestVertexNormals??!1})}var K4e=W$i;function j$i(o){return o=o??pi.EMPTY_OBJECT,T7.fromIonAssetId(1,{requestVertexNormals:o.requestVertexNormals??!1,requestWaterMask:o.requestWaterMask??!1,ellipsoid:Ei.WGS84})}var zfe=j$i;function E7(o){o=o??pi.EMPTY_OBJECT,this._callback=o.callback,this._tilingScheme=o.tilingScheme,N(this._tilingScheme)||(this._tilingScheme=new Xh({ellipsoid:o.ellipsoid??Ei.default})),this._width=o.width,this._height=o.height;let f=Math.max(this._width,this._height);this._levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new Or;let m=o.credit;typeof m=="string"&&(m=new rs(m)),this._credit=m}Object.defineProperties(E7.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});E7.prototype.requestTileGeometry=function(o,f,m,x){let v=this._callback(o,f,m);if(!N(v))return;let y=this._width,C=this._height;return Promise.resolve(v).then(function(w){let T=w;return Array.isArray(T)&&(T=new Float64Array(T)),new CP({buffer:T,width:y,height:C})})};E7.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};E7.prototype.getTileDataAvailable=function(o,f,m){};E7.prototype.loadTileDataAvailability=function(o,f,m){};var Ryt=E7,q$i=1953029805,Y$i=2917034100;function $4e(o,f){if($4e.passThroughDataForTesting)return f;let m=o.byteLength;if(m===0||m%4!==0)throw new Xi("The length of key must be greater than 0 and a multiple of 4.");let x=new DataView(f),v=x.getUint32(0,!0);if(v===q$i||v===Y$i)return f;let y=new DataView(o),C=0,w=f.byteLength,T=w-w%8,E=m,A,S=8;for(;C<T;)for(S=(S+8)%24,A=S;C<T&&A<E;)x.setUint32(C,x.getUint32(C,!0)^y.getUint32(A,!0),!0),x.setUint32(C+4,x.getUint32(C+4,!0)^y.getUint32(A+4,!0),!0),C+=8,A+=24;if(C<w)for(A>=E&&(S=(S+8)%24,A=S);C<w;)x.setUint8(C,x.getUint8(C)^y.getUint8(A)),C++,A++}$4e.passThroughDataForTesting=!1;var J4e=$4e;function Lyt(o){this.proxy=o}Lyt.prototype.getURL=function(o){let f=this.proxy.indexOf("?")===-1?"?":"";return this.proxy+f+encodeURIComponent(o)};var Oyt=Lyt;function Nyt(o,f){return xP("defaultValue","defaultValue has been deprecated and will be removed in Cesium 1.134. Use the nullish coalescing operator instead: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing"),o??f}Object.defineProperty(Nyt,"EMPTY_OBJECT",{get:function(){return xP("defaultValue.EMPTY_OBJECT","defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead"),pi.EMPTY_OBJECT}});var Fyt=Nyt;function Ufe(){At.throwInstantiationError()}Object.defineProperties(Ufe.prototype,{credit:{get:At.throwInstantiationError}});Ufe.getCreditsFromResult=function(o){if(N(o.attributions))return o.attributions.map(rs.getIonCredit)};Ufe.prototype.geocode=At.throwInstantiationError;var Hfe=Ufe,X$i={SEARCH:0,AUTOCOMPLETE:1},iee=Object.freeze(X$i);function Byt(){At.throwInstantiationError()}Byt.createGeometry=function(o){At.throwInstantiationError()};var kyt=Byt,K$i=E0($nt(),1);function $$i(o,f){return(o&f)!==0}var Ew=$$i,J$i=[1,2,4,8],Vyt=15,Q$i=16,Z$i=64,eJi=128;function FM(o,f,m,x,v,y){this._bits=o,this.cnodeVersion=f,this.imageryVersion=m,this.terrainVersion=x,this.imageryProvider=v,this.terrainProvider=y,this.ancestorHasTerrain=!1,this.terrainState=void 0}FM.clone=function(o,f){return N(f)?(f._bits=o._bits,f.cnodeVersion=o.cnodeVersion,f.imageryVersion=o.imageryVersion,f.terrainVersion=o.terrainVersion,f.imageryProvider=o.imageryProvider,f.terrainProvider=o.terrainProvider):f=new FM(o._bits,o.cnodeVersion,o.imageryVersion,o.terrainVersion,o.imageryProvider,o.terrainProvider),f.ancestorHasTerrain=o.ancestorHasTerrain,f.terrainState=o.terrainState,f};FM.prototype.setParent=function(o){this.ancestorHasTerrain=o.ancestorHasTerrain||this.hasTerrain()};FM.prototype.hasSubtree=function(){return Ew(this._bits,Q$i)};FM.prototype.hasImagery=function(){return Ew(this._bits,Z$i)};FM.prototype.hasTerrain=function(){return Ew(this._bits,eJi)};FM.prototype.hasChildren=function(){return Ew(this._bits,Vyt)};FM.prototype.hasChild=function(o){return Ew(this._bits,J$i[o])};FM.prototype.getChildBitmask=function(){return this._bits&Vyt};var Q4e=FM;function tJi(o){let f=o.length,m=new ArrayBuffer(f),x=new Uint8Array(m);for(let v=0;v<f;++v)x[v]=o.charCodeAt(v);return m}var iJi=tJi(`E\xF4\xBD\vy\xE2jE"\x92,\xCDq\xF8IFgQ\0B%\xC6\xE8a,f)\b\xC64\xDCjb%y
wmi\xD6\xF0\x9Ck\x93\xA1\xBDNu\xE0A[\xDF@V\f\xD9\xBBr\x9B\x81|3S\xEEOl\xD4q\xB0{\xC0\x7FEVZ\xADwUe\v3\x92*\xACl5\xC50s\xF83>mF8J\xB4\xDD\xF0.\xDDu\xDA\x8CDt"\xFAa"\f3"So\xAF9D\v\x8C9\xD99L\xB9\xBF\x7F\xAB\\\x8CP_\x9F"ux\xE9\x07q\x91h;\xC1\xC4\x9B\x7F\xF0<VqH\x82'UfYNe\x98u\xA3aF}a?A\0\x9F\xD7\xB44M\xCE\x87F\xB0\xD5\xB8\x8A'{\x8B\xDC+\xBBMg0\xC8\xD1\xF6\\\x8FP\xFA[/F\x9Bn5/'C.\xEB
\f^\xA5s\x1Be4\xE5l.jC'c#U\xA9?q{gC}:\xAF\xCD\xE2TU\x9C\xFDK\xC6\xE2\x9F/(\xED\xCB\\\xC6-f\x07\x88\xA7;/*"N\xB0k.\xDD\r\x95}}G\xBAC\xB2\xB2+>M\xAA>}\xE6\xCEI\x89\xC6\xE6x\fa1-\xA4O\xA5~q \x88\xEC\r1\xE8N\v\0nPh}=\b\r\x95\xA6n\xA3h\x97$[k\xF3#\xF3\xB6s\xB3\r\v@\xC0\x9F\xD8Q]\xFA".j\xDFI\0\xB9\xA0wU\xC6\xEFj\xBF{GL\x7F\x83\xEE\xDC\xDCF\x85\xA9\xADS\x07+S4\x07\xFF\x94Y\xE48\xE81\x83N\xB9XFk\xCB-#\x86\x92p\x005\x88"\xCF1\xB2&/\xE7\xC3u-6,rt\xB0#G\xB7\xD3\xD1&\x857r\xE2\0\x8CD\xCF\xDA3-\xDE\`\x86i#i*|\xCDKQ\r\x95T9w.)\xEA\x1B\xA6P\xA2j\x8FoP\x99\\>T\xFB\xEFP[\v\x07E\x89m(w7\xDB\x8EJfJo\x99 \xE5p\xE2\xB9q~\fmI-z\xFEr\xC7\xF2Y0\x8F\xBB]s\xE5\xC9 \xEAx\xEC \x90\xF0\x8A\x7FB|G\`\xB0\xBD&\xB7q\xB6\xC7\x9F\xD13\x82=\xD3\xAB\xEEc\x99\xC8+S\xA0D\\q\xC6\xCCD2O<\xCA\xC0)=R\xD3aX\xA9}e\xB4\xDC\xCF\r\xF4=\xF1\b\xA9B\xDA#   \xD8\xBF^PI\xF8M\xC0\xCBGLO\xF7{+\xD8\xC51\x92;\xB5o\xDCl\r\x92\x88\xD1\x9E\xDB?\xE2\xE9\xDA_\xD4\x84\xE2FaZ\xDEU\xCF\xA4\0\xBE\xFD\xCEg\xF1Ji\x97\xE6 H\xD8]\x7F~\xAEq N\xAE\xC0V\xA9\x91<\x82r\xE7v\xEC)I\xD6]-\x83\xE3\xDB6\xA9;f\x97\x87j\xD5\xB6=P^R\xB9K\xC7sWx\xC9\xF4.Y\x07\x95\x93o\xD0KW>''\xC7\`\xDB;\xED\x9ASD>?\x8D\x92mw\xA2
\xEB?R\xA8\xC6U^1I7\x85\xF4\xC5&-\xA9\xBF\x8B'T\xDA\xC3j \xE5*x\xB0\xD6\x90pr\xAA\x8Bh\xBD\x88\xF7_H\xB1~\xC0XL?f\xF9>\xE1e\xC0p\xA7\xCF8i\xAF\xF0VldI\x9C'\xADxtO\xC2\x87\xDEV9\0\xDAw\v\xCB-\x1B\x89\xFB5O\xF5\bQ\`\xC1
ZGM&30x\xDA\xC0\x9CFG\xE2[y\`In7gS
>\xE9\xECF9\xB2\xF14\r\xC6\x84Sun\xE1\fY\xD9\xDE)\x85{II\xA5wy\xBEIV.6\xE7\v:\xBBOb{\xD2M1\x95/\xBD8{\xA8O!\xE1\xECFpv\x95})"x\x88
\x90\xDD\x9D\\\xDA\xDEQ\xCF\xF0\xFCYRe|3\xDF\xF3H\xDA\xBB*u\xDB\`\xB2\xD4\xFC\xED\x1B\xEC\x7F5\xA8\xFF(1\x07-\xC8\xDC\x88F|\x8A["`);function Nw(o){this.imageryPresent=!0,this.protoImagery=void 0,this.terrainPresent=!0,this.negativeAltitudeExponentBias=32,this.negativeAltitudeThreshold=Ce.EPSILON12,this.providers={},this.key=void 0,this._resource=void 0,this._quadPacketVersion=1,this._tileInfo={},this._subtreePromises={}}Object.defineProperties(Nw.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},resource:{get:function(){return this._resource}}});Nw.fromUrl=async function(o){let f=o;typeof f!="string"&&!(f instanceof Wr)&&(f=o.url);let m=Wr.createIfNeeded(f);m.appendForwardSlash();let x=new Nw;x._resource=m;try{await rJi(x),await x.getQuadTreePacket("",x._quadPacketVersion)}catch(v){let y=`An error occurred while accessing ${Uyt(x,"",1).url}: ${v}`;throw new Xi(y)}return x};Nw.tileXYToQuadKey=function(o,f,m){let x="";for(let v=m;v>=0;--v){let y=1<<v,C=0;Ew(f,y)?Ew(o,y)&&(C|=1):(C|=2,Ew(o,y)||(C|=1)),x+=C}return x};Nw.quadKeyToTileXY=function(o){let f=0,m=0,x=o.length-1;for(let v=x;v>=0;--v){let y=1<<v,C=+o[x-v];Ew(C,2)?Ew(C,1)||(f|=y):(m|=y,Ew(C,1)&&(f|=y))}return{x:f,y:m,level:x}};Nw.prototype.isValid=function(o){let f=this.getTileInformationFromQuadKey(o);if(N(f))return f!==null;let m=!0,x=o,v;for(;x.length>1;)if(v=x.substring(x.length-1),x=x.substring(0,x.length-1),f=this.getTileInformationFromQuadKey(x),N(f)){!f.hasSubtree()&&!f.hasChild(parseInt(v))&&(m=!1);break}else if(f===null){m=!1;break}return m};var zyt=new ep("decodeGoogleEarthEnterprisePacket");Nw.prototype.getQuadTreePacket=function(o,f,m){f=f??1,o=o??"";let x=Uyt(this,o,f,m).fetchArrayBuffer();if(!N(x))return;let v=this._tileInfo,y=this.key;return x.then(function(C){return zyt.scheduleTask({buffer:C,quadKey:o,type:"Metadata",key:y},[C]).then(function(w){let T,E=-1;if(o!==""){E=o.length+1;let M=w[o];T=v[o],T._bits|=M._bits,delete w[o]}let A=Object.keys(w);A.sort(function(M,I){return M.length-I.length});let S=A.length;for(let M=0;M<S;++M){let I=A[M];if(w[I]!==null){let P=Q4e.clone(w[I]),D=I.length;if(D===E)P.setParent(T);else if(D>1){let R=v[I.substring(0,I.length-1)];P.setParent(R)}v[I]=P}else v[I]=null}})})};Nw.prototype.populateSubtree=function(o,f,m,x){let v=Nw.tileXYToQuadKey(o,f,m);return AAe(this,v,x)};function AAe(o,f,m){let x=o._tileInfo,v=f,y=x[v];if(N(y)&&(!y.hasSubtree()||y.hasChildren()))return y;for(;y===void 0&&v.length>1;)v=v.substring(0,v.length-1),y=x[v];let C,w=o._subtreePromises,T=w[v];if(N(T))return T.then(function(){return C=new Jm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),AAe(o,f,C)});if(!N(y)||!y.hasSubtree())return Promise.reject(new Xi(`Couldn't load metadata for tile ${f}`));if(T=o.getQuadTreePacket(v,y.cnodeVersion,m),!!N(T))return w[v]=T,T.then(function(){return C=new Jm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),AAe(o,f,C)}).finally(function(){delete w[v]})}Nw.prototype.getTileInformation=function(o,f,m){let x=Nw.tileXYToQuadKey(o,f,m);return this._tileInfo[x]};Nw.prototype.getTileInformationFromQuadKey=function(o){return this._tileInfo[o]};function Uyt(o,f,m,x){return o._resource.getDerivedResource({url:`flatfile?q2-0${f}-q.${m.toString()}`,request:x})}var bwe,wwe;function rJi(o){let f=o._resource.getDerivedResource({url:"dbRoot.v5",queryParameters:{output:"proto"}});if(!N(wwe)){let m=va("ThirdParty/google-earth-dbroot-parser.js"),x=window.cesiumGoogleEarthDbRootParser;wwe=_ce(m).then(function(){bwe=window.cesiumGoogleEarthDbRootParser(K$i),N(x)?window.cesiumGoogleEarthDbRootParser=x:delete window.cesiumGoogleEarthDbRootParser})}return wwe.then(function(){return f.fetchArrayBuffer()}).then(function(m){let x=bwe.EncryptedDbRootProto.decode(new Uint8Array(m)),v=x.encryptionData,y=v.byteOffset,C=y+v.byteLength,w=o.key=v.buffer.slice(y,C);v=x.dbrootData,y=v.byteOffset,C=y+v.byteLength;let T=v.buffer.slice(y,C);return zyt.scheduleTask({buffer:T,type:"DbRoot",key:w},[T])}).then(function(m){let x=bwe.DbRootProto.decode(new Uint8Array(m.buffer));if(o.imageryPresent=x.imageryPresent??o.imageryPresent,o.protoImagery=x.protoImagery,o.terrainPresent=x.terrainPresent??o.terrainPresent,N(x.endSnippet)&&N(x.endSnippet.model)){let w=x.endSnippet.model;o.negativeAltitudeExponentBias=w.negativeAltitudeExponentBias??o.negativeAltitudeExponentBias,o.negativeAltitudeThreshold=w.compressedNegativeAltitudeThreshold??o.negativeAltitudeThreshold}N(x.databaseVersion)&&(o._quadPacketVersion=x.databaseVersion.quadtreeVersion??o._quadPacketVersion);let v=o.providers,y=x.providerInfo??[],C=y.length;for(let w=0;w<C;++w){let T=y[w],E=T.copyrightString;N(E)&&(v[T.providerId]=new rs(E.value))}}).catch(function(){console.log(`Failed to retrieve ${f.url}. Using defaults.`),o.key=iJi})}var A7=Nw;function HU(o){o=o??pi.EMPTY_OBJECT,this._buffer=o.buffer,this._credits=o.credits,this._negativeAltitudeExponentBias=o.negativeAltitudeExponentBias,this._negativeElevationThreshold=o.negativeElevationThreshold;let f=o.childTileMask??15,m=f&3;m|=f&4?8:0,m|=f&8?4:0,this._childTileMask=m,this._createdByUpsampling=o.createdByUpsampling??!1,this._skirtHeight=void 0,this._bufferType=this._buffer.constructor,this._mesh=void 0,this._minimumHeight=void 0,this._maximumHeight=void 0}Object.defineProperties(HU.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){}}});var Hyt="createVerticesFromGoogleEarthEnterpriseBuffer",nJi=new ep(Hyt),oJi=new ep(Hyt,bU.maximumAsynchronousTasks),yit=new Si,Twe=new Si;HU.prototype.createMesh=function(o){o=o??pi.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,v=o.level,y=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,w=o.throttle??!0,T=f.ellipsoid;f.tileXYToNativeRectangle(m,x,v,yit),f.tileXYToRectangle(m,x,v,Twe);let E=T.cartographicToCartesian(Si.center(Twe)),A=40075.16/(1<<v);this._skirtHeight=Math.min(A*8,1e3);let S=(w?oJi:nJi).scheduleTask({buffer:this._buffer,nativeRectangle:yit,rectangle:Twe,relativeToCenter:E,ellipsoid:T,skirtHeight:this._skirtHeight,exaggeration:y,exaggerationRelativeHeight:C,includeWebMercatorT:!0,negativeAltitudeExponentBias:this._negativeAltitudeExponentBias,negativeElevationThreshold:this._negativeElevationThreshold});if(!N(S))return;let M=this;return S.then(function(I){return M._mesh=new wU(E,new Float32Array(I.vertices),new Uint16Array(I.indices),I.indexCountWithoutSkirts,I.vertexCountWithoutSkirts,I.minimumHeight,I.maximumHeight,Li.clone(I.boundingSphere3D),V.clone(I.occludeePointInScaledSpace),I.numberOfAttributes,Ju.clone(I.orientedBoundingBox),ME.clone(I.encoding),I.westIndicesSouthToNorth,I.southIndicesEastToWest,I.eastIndicesNorthToSouth,I.northIndicesWestToEast),M._minimumHeight=I.minimumHeight,M._maximumHeight=I.maximumHeight,M._buffer=void 0,M._mesh})};HU.prototype.interpolateHeight=function(o,f,m){let x=Ce.clamp((f-o.west)/o.width,0,1),v=Ce.clamp((m-o.south)/o.height,0,1);return N(this._mesh)?cJi(this,x,v):fJi(this,x,v,o)};var aJi=new ep("upsampleQuantizedTerrainMesh",bU.maximumAsynchronousTasks);HU.prototype.upsample=function(o,f,m,x,v,y,C){let w=this._mesh;if(!N(this._mesh))return;let T=f*2!==v,E=m*2===y,A=o.ellipsoid,S=o.tileXYToRectangle(v,y,C),M=aJi.scheduleTask({vertices:w.vertices,indices:w.indices,indexCountWithoutSkirts:w.indexCountWithoutSkirts,vertexCountWithoutSkirts:w.vertexCountWithoutSkirts,encoding:w.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:T,isNorthChild:E,childRectangle:S,ellipsoid:A});if(!N(M))return;let I=this;return M.then(function(P){let D=new Uint16Array(P.vertices),R=Jn.createTypedArray(D.length/3,P.indices),L=I._skirtHeight;return new Vfe({quantizedVertices:D,indices:R,minimumHeight:P.minimumHeight,maximumHeight:P.maximumHeight,boundingSphere:Li.clone(P.boundingSphere),orientedBoundingBox:Ju.clone(P.orientedBoundingBox),horizonOcclusionPoint:V.clone(P.horizonOcclusionPoint),westIndices:P.westIndices,southIndices:P.southIndices,eastIndices:P.eastIndices,northIndices:P.northIndices,westSkirtHeight:L,southSkirtHeight:L,eastSkirtHeight:L,northSkirtHeight:L,childTileMask:0,createdByUpsampling:!0,credits:I._credits})})};HU.prototype.isChildAvailable=function(o,f,m,x){let v=2;return m!==o*2&&++v,x!==f*2&&(v-=2),(this._childTileMask&1<<v)!==0};HU.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var sJi=new at,lJi=new at,uJi=new at,Gyt=new V;function cJi(o,f,m){let x=o._mesh,v=x.vertices,y=x.encoding,C=x.indices;for(let w=0,T=C.length;w<T;w+=3){let E=C[w],A=C[w+1],S=C[w+2],M=y.decodeTextureCoordinates(v,E,sJi),I=y.decodeTextureCoordinates(v,A,lJi),P=y.decodeTextureCoordinates(v,S,uJi),D=w7.computeBarycentricCoordinates(f,m,M.x,M.y,I.x,I.y,P.x,P.y,Gyt);if(D.x>=-1e-15&&D.y>=-1e-15&&D.z>=-1e-15){let R=y.decodeHeight(v,E),L=y.decodeHeight(v,A),O=y.decodeHeight(v,S);return D.x*R+D.y*L+D.z*O}}}var hJi=Uint16Array.BYTES_PER_ELEMENT,Cit=Uint32Array.BYTES_PER_ELEMENT,Ewe=Int32Array.BYTES_PER_ELEMENT,dJi=Float32Array.BYTES_PER_ELEMENT,Awe=Float64Array.BYTES_PER_ELEMENT;function fJi(o,f,m,x){let v=o._buffer,y=0,C=0,w=0;m>.5?(f>.5?(y=2,C=.5):y=3,w=.5):f>.5&&(y=1,C=.5);let T=new DataView(v),E=0;for(let H=0;H<y;++H)E+=T.getUint32(E,!0),E+=Cit;E+=Cit,E+=2*Awe;let A=Ce.toRadians(T.getFloat64(E,!0)*180);E+=Awe;let S=Ce.toRadians(T.getFloat64(E,!0)*180);E+=Awe;let M=x.width/A/2,I=x.height/S/2,P=T.getInt32(E,!0);E+=Ewe;let D=T.getInt32(E,!0)*3;E+=Ewe,E+=Ewe;let R=new Array(P),L=new Array(P),O=new Array(P),F;for(F=0;F<P;++F)R[F]=C+T.getUint8(E++)*M,L[F]=w+T.getUint8(E++)*I,O[F]=T.getFloat32(E,!0)*6371010,E+=dJi;let B=new Array(D);for(F=0;F<D;++F)B[F]=T.getUint16(E,!0),E+=hJi;for(F=0;F<D;F+=3){let H=B[F],G=B[F+1],W=B[F+2],Y=R[H],K=R[G],X=R[W],q=L[H],J=L[G],Z=L[W],z=w7.computeBarycentricCoordinates(f,m,Y,q,K,J,X,Z,Gyt);if(z.x>=-1e-15&&z.y>=-1e-15&&z.z>=-1e-15)return z.x*O[H]+z.y*O[G]+z.z*O[W]}}var Lue=HU,qT={UNKNOWN:0,NONE:1,SELF:2,PARENT:3},Fae=new si;function Gfe(){this._terrainCache={},this._lastTidy=si.now()}Gfe.prototype.add=function(o,f){this._terrainCache[o]={buffer:f,timestamp:si.now()}};Gfe.prototype.get=function(o){let f=this._terrainCache[o];if(N(f))return delete this._terrainCache[o],f.buffer};Gfe.prototype.tidy=function(){if(si.now(Fae),si.secondsDifference(Fae,this._lastTidy)>10){let o=this._terrainCache,f=Object.keys(o),m=f.length;for(let x=0;x<m;++x){let v=f[x],y=o[v];si.secondsDifference(Fae,y.timestamp)>10&&delete o[v]}si.clone(Fae,this._lastTidy)}};function C5(o){o=o??pi.EMPTY_OBJECT,this._tilingScheme=new Xh({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new Si(-Ce.PI,-Ce.PI,Ce.PI,Ce.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new rs(f)),this._credit=f,this._levelZeroMaximumGeometricError=40075.16,this._terrainCache=new Gfe,this._terrainPromises={},this._terrainRequests={},this._errorEvent=new Or}Object.defineProperties(C5.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tilingScheme:{get:function(){return this._tilingScheme}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}});C5.fromMetadata=function(o,f){if(!o.terrainPresent)throw new Xi(`The server ${o.url} doesn't have terrain`);let m=new C5(f);return m._metadata=o,m};var pJi=new ep("decodeGoogleEarthEnterprisePacket");function bit(o,f,m){let x=f.getChildBitmask();if(f.terrainState===qT.PARENT){x=0;for(let v=0;v<4;++v){let y=m.getTileInformationFromQuadKey(o+v.toString());N(y)&&y.hasTerrain()&&(x|=1<<v)}}return x}C5.prototype.requestTileGeometry=function(o,f,m,x){let v=A7.tileXYToQuadKey(o,f,m),y=this._terrainCache,C=this._metadata,w=C.getTileInformationFromQuadKey(v);if(!N(w))return Promise.reject(new Xi("Terrain tile doesn't exist"));let T=w.terrainState;N(T)||(T=w.terrainState=qT.UNKNOWN);let E=y.get(v);if(N(E)){let L=C.providers[w.terrainProvider];return Promise.resolve(new Lue({buffer:E,childTileMask:bit(v,w,C),credits:N(L)?[L]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold}))}if(y.tidy(),w.ancestorHasTerrain){if(T===qT.NONE)return Promise.reject(new Xi("Terrain tile doesn't exist"))}else return Promise.resolve(new CP({buffer:new Uint8Array(16*16),width:16,height:16}));let A,S=v,M=-1;switch(T){case qT.SELF:M=w.terrainVersion;break;case qT.PARENT:S=S.substring(0,S.length-1),A=C.getTileInformationFromQuadKey(S),M=A.terrainVersion;break;case qT.UNKNOWN:w.hasTerrain()?M=w.terrainVersion:(S=S.substring(0,S.length-1),A=C.getTileInformationFromQuadKey(S),N(A)&&A.hasTerrain()&&(M=A.terrainVersion));break}if(M<0)return Promise.reject(new Xi("Terrain tile doesn't exist"));let I=this._terrainPromises,P=this._terrainRequests,D,R;if(N(I[S]))D=I[S],R=P[S];else{R=x;let L=mJi(this,S,M,R).fetchArrayBuffer();if(!N(L))return;D=L.then(function(O){return N(O)?pJi.scheduleTask({buffer:O,type:"Terrain",key:C.key},[O]).then(function(F){let B=C.getTileInformationFromQuadKey(S);B.terrainState=qT.SELF,y.add(S,F[0]);let H=B.terrainProvider,G=F.length-1;for(let W=0;W<G;++W){let Y=S+W.toString(),K=C.getTileInformationFromQuadKey(Y);N(K)&&(y.add(Y,F[W+1]),K.terrainState=qT.PARENT,K.terrainProvider===0&&(K.terrainProvider=H))}}):Promise.reject(new Xi("Failed to load terrain."))}),I[S]=D,P[S]=R,D=D.finally(function(){delete I[S],delete P[S]})}return D.then(function(){let L=y.get(v);if(N(L)){let O=C.providers[w.terrainProvider];return new Lue({buffer:L,childTileMask:bit(v,w,C),credits:N(O)?[O]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold})}return Promise.reject(new Xi("Failed to load terrain."))}).catch(function(L){return R.state===Gc.CANCELLED?(x.state=R.state,Promise.reject(L)):(w.terrainState=qT.NONE,Promise.reject(L))})};C5.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};C5.prototype.getTileDataAvailable=function(o,f,m){let x=this._metadata,v=A7.tileXYToQuadKey(o,f,m),y=x.getTileInformation(o,f,m);if(y===null)return!1;if(N(y)){if(!y.ancestorHasTerrain)return!0;let C=y.terrainState;if(C===qT.NONE)return!1;if((!N(C)||C===qT.UNKNOWN)&&(y.terrainState=qT.UNKNOWN,!y.hasTerrain())){v=v.substring(0,v.length-1);let w=x.getTileInformationFromQuadKey(v);if(!N(w)||!w.hasTerrain())return!1}return!0}if(x.isValid(v)){let C=new Jm({throttle:!1,throttleByServer:!0,type:e2.TERRAIN});x.populateSubtree(o,f,m,C)}return!1};C5.prototype.loadTileDataAvailability=function(o,f,m){};function mJi(o,f,m,x){return m=N(m)&&m>0?m:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1c-0${f}-t.${m.toString()}`,request:x})}var Wyt=C5,xJi="https://maps.googleapis.com/maps/api/geocode/json",jyt='<img alt="Google" src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align:-5px">';function Z4e(o){o=o??pi.EMPTY_OBJECT;let f=o.key;this._resource=new Wr({url:xJi,queryParameters:{key:f}}),this._credit=new rs(jyt,!0)}Object.defineProperties(Z4e.prototype,{credit:{get:function(){return this._credit}}});Z4e.prototype.geocode=async function(o){let f=await this._resource.getDerivedResource({queryParameters:{address:o}}).fetchJson();if(f.status==="ZERO_RESULTS")return[];if(f.status!=="OK")throw new Xi(`GoogleGeocoderService got a bad response ${f.status}: ${f.error_message}`);return f.results.map(m=>{let x=m.geometry.viewport.southwest,v=m.geometry.viewport.northeast;return{displayName:m.formatted_address,destination:Si.fromDegrees(x.lng,x.lat,v.lng,v.lat),attribution:{html:jyt,collapsible:!1}}})};var qyt=Z4e,Wfe={};Wfe.defaultApiKey=void 0;Wfe.mapTilesApiEndpoint=new Wr({url:"https://tile.googleapis.com/v1/"});Wfe.getDefaultCredit=function(){return new rs('<img src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align: -5px" alt="Google">',!0)};var f$=Wfe,ree={};ree.type=void 0;ree.getRequiredDataPoints=At.throwInstantiationError;ree.interpolateOrderZero=At.throwInstantiationError;ree.interpolate=At.throwInstantiationError;var Yyt=ree,gJi={GOOGLE:"GOOGLE",BING:"BING",DEFAULT:"DEFAULT"},jV=Object.freeze(gJi);function eke(o){this._url=Wr.createIfNeeded(o),this._url.appendForwardSlash()}Object.defineProperties(eke.prototype,{url:{get:function(){return this._url}},credit:{get:function(){}}});eke.prototype.geocode=async function(o,f){return this._url.getDerivedResource({url:f===iee.AUTOCOMPLETE?"autocomplete":"search",queryParameters:{text:o}}).fetchJson().then(function(m){return m.features.map(function(x){let v,y=x.bbox;if(N(y))v=Si.fromDegrees(y[0],y[1],y[2],y[3]);else{let C=x.geometry.coordinates[0],w=x.geometry.coordinates[1];v=V.fromDegrees(C,w)}return{displayName:x.properties.label,destination:v,attributions:m.attributions}})})};var tke=eke;function _Ji(o){if(!Object.values(jV).some(f=>f===o))throw new At(`Invalid geocodeProviderType: "${o}"`)}var Xyt=Object.freeze({[jV.GOOGLE]:"google",[jV.BING]:"bing",[jV.DEFAULT]:void 0});function vJi(o){return Xyt[o]}function yJi(o){return Object.entries(Xyt).find(f=>f[1]===o)[0]}function ike(o){o=o??pi.EMPTY_OBJECT;let f=o.geocodeProviderType??jV.DEFAULT,m=o.accessToken??NF.defaultAccessToken,x=Wr.createIfNeeded(o.server??NF.defaultServer);x.appendForwardSlash();let v=NF.getDefaultTokenCredit(m);N(v)&&o.scene.frameState.creditDisplay.addStaticCredit(rs.clone(v));let y=x.getDerivedResource({url:"v1/geocode"});N(m)&&y.appendQueryParameters({access_token:m}),this._accessToken=m,this._server=x,this._pelias=new tke(y),this.geocodeProviderType=f}Object.defineProperties(ike.prototype,{credit:{get:function(){}},geocodeProviderType:{get:function(){return yJi(this._pelias.url.queryParameters.geocoder)},set:function(o){_Ji(o);let f={...this._pelias.url.queryParameters,geocoder:vJi(o)};N(f.geocoder)||delete f.geocoder,this._pelias.url.setQueryParameters(f)}}});ike.prototype.geocode=async function(o,f){return this._pelias.geocode(o,f)};var jfe=ike,Xm={};Xm.ExportStatus=Object.freeze({NotStarted:"NotStarted",InProgress:"InProgress",Complete:"Complete",Invalid:"Invalid"});Xm.ExportType=Object.freeze({IMODEL:"IMODEL",CESIUM:"CESIUM","3DTILES":"3DTILES"});Xm.RealityDataType=Object.freeze({Cesium3DTiles:"Cesium3DTiles",PNTS:"PNTS",RealityMesh3DTiles:"RealityMesh3DTiles",Terrain3DTiles:"Terrain3DTiles",KML:"KML",GeoJSON:"GeoJSON",Unstructured:"Unstructured"});Xm.defaultAccessToken=void 0;Xm.defaultShareKey=void 0;Xm._getAuthorizationHeader=function(){return N(Xm.defaultShareKey)?`Basic ${Xm.defaultShareKey}`:`Bearer ${Xm.defaultAccessToken}`};Xm.apiEndpoint=new Wr({url:"https://api.bentley.com"});Xm.getExports=async function(o){let f=new Wr({url:`${Xm.apiEndpoint}mesh-export`,headers:{Authorization:Xm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json",Prefer:"return=representation"},queryParameters:{iModelId:o,exportType:Xm.ExportType["3DTILES"],$top:"5",client:"CesiumJS"}});typeof CESIUM_VERSION<"u"&&f.appendQueryParameters({clientVersion:CESIUM_VERSION});try{return await f.fetchJson()}catch(m){let x=JSON.parse(m.response);if(m.statusCode===401){let v=x.error.details?.[0].code??"";throw new Xi(`Unauthorized, bad token, wrong scopes or headers bad. ${v}`)}else{if(m.statusCode===403)throw console.error(x.error.code,x.error.message),new Xi("Not allowed, forbidden");if(m.statusCode===422)throw new Xi(`Unprocessable Entity:${x.error.code} ${x.error.message}`);if(m.statusCode===429)throw new Xi("Too many requests")}throw new Xi(`Unknown request failure ${m.statusCode}`)}};Xm.getRealityDataMetadata=async function(o,f){let m=new Wr({url:`${Xm.apiEndpoint}reality-management/reality-data/${f}`,headers:{Authorization:Xm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{return(await m.fetchJson()).realityData}catch(x){let v=JSON.parse(x.response);if(x.statusCode===401){let y=v.error.details?.[0].code??"";throw new Xi(`Unauthorized, bad token, wrong scopes or headers bad. ${y}`)}else{if(x.statusCode===403)throw console.error(v.error.code,v.error.message),new Xi("Not allowed, forbidden");if(x.statusCode===404)throw new Xi(`Reality data not found: ${o}, ${f}`);if(x.statusCode===422)throw new Xi(`Unprocessable Entity:${v.error.code} ${v.error.message}`);if(x.statusCode===429)throw new Xi("Too many requests")}throw new Xi(`Unknown request failure ${x.statusCode}`)}};Xm.getRealityDataURL=async function(o,f,m){let x=new Wr({url:`${Xm.apiEndpoint}reality-management/reality-data/${f}/readaccess`,headers:{Authorization:Xm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{let v=(await x.fetchJson())._links.containerUrl.href,y=new URL(v);return y.pathname=`${y.pathname}/${m}`,y.toString()}catch(v){let y=JSON.parse(v.response);if(v.statusCode===401){let C=y.error.details?.[0].code??"";throw new Xi(`Unauthorized, bad token, wrong scopes or headers bad. ${C}`)}else{if(v.statusCode===403)throw console.error(y.error.code,y.error.message),new Xi("Not allowed, forbidden");if(v.statusCode===404)throw new Xi(`Reality data not found: ${o}, ${f}`);if(v.statusCode===422)throw new Xi(`Unprocessable Entity:${y.error.code} ${y.error.message}`);if(v.statusCode===429)throw new Xi("Too many requests")}throw new Xi(`Unknown request failure ${v.statusCode}`)}};var w_=Xm,CJi=new ep("transcodeCRNToDXT",Number.POSITIVE_INFINITY);function bJi(o){let f;if(o instanceof ArrayBuffer||ArrayBuffer.isView(o)?f=Promise.resolve(o):f=Wr.createIfNeeded(o).fetchArrayBuffer(),!!N(f))return f.then(function(m){if(!N(m))return;let x=[];return m instanceof ArrayBuffer?x.push(m):(m.byteOffset===0&&m.byteLength===m.buffer.byteLength||(m=m.slice(0,m.length)),x.push(m.buffer)),CJi.scheduleTask(m,x)}).then(function(m){return BE.clone(m)})}var Kyt=bJi;function qfe(){At.throwInstantiationError()}Object.defineProperties(qfe.prototype,{ellipsoid:{get:At.throwInstantiationError}});qfe.prototype.project=At.throwInstantiationError;qfe.prototype.unproject=At.throwInstantiationError;var $yt=qfe;function S7(o){o=o??pi.EMPTY_OBJECT;let f=o.weights,m=o.times;this._times=m,this._weights=f,this._count=f.length/m.length,this._lastTimeIndex=0}Object.defineProperties(S7.prototype,{times:{get:function(){return this._times}},weights:{get:function(){return this._weights}}});S7.prototype.findTimeInterval=S0.prototype.findTimeInterval;S7.prototype.wrapTime=S0.prototype.wrapTime;S7.prototype.clampTime=S0.prototype.clampTime;S7.prototype.evaluate=function(o,f){let m=this.weights,x=this.times,v=this._lastTimeIndex=this.findTimeInterval(o,this._lastTimeIndex),y=(o-x[v])/(x[v+1]-x[v]);N(f)||(f=new Array(this._count));for(let C=0;C<this._count;C++){let w=v*this._count+C;f[C]=m[w]*(1-y)+m[w+this._count]*y}return f};var Jyt=S7;function rke(o,f,m){o=Wr.createIfNeeded(o),o.appendForwardSlash(),o.setQueryParameters({key:f}),this._url=o,this._params=m??{},this._credit=new rs('Geodata copyright <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',!1)}Object.defineProperties(rke.prototype,{url:{get:function(){return this._url}},params:{get:function(){return this._params}},credit:{get:function(){return this._credit}}});rke.prototype.geocode=async function(o){return this._url.getDerivedResource({url:"json",queryParameters:Fa(this._params,{q:o})}).fetchJson().then(function(f){return f.results.map(function(m){let x,v=m.bounds;if(N(v))x=Si.fromDegrees(v.southwest.lng,v.southwest.lat,v.northeast.lng,v.northeast.lat);else{let y=m.geometry.lat,C=m.geometry.lng;x=V.fromDegrees(y,C)}return{displayName:m.formatted,destination:x}})})};var Qyt=rke,wJi={packedLength:void 0,pack:At.throwInstantiationError,unpack:At.throwInstantiationError},Zyt=wJi,TJi={packedInterpolationLength:void 0,convertPackedArrayForInterpolation:At.throwInstantiationError,unpackInterpolationResult:At.throwInstantiationError},e2t=TJi,EJi=new V;function AJi(o,f,m,x){let v=Sce(o,f,m,x,EJi);return N(v)?v.x>0&&v.y>0&&v.z>0:!1}var t2t=AJi;function i2t(){At.throwInstantiationError()}i2t.prototype.getURL=At.throwInstantiationError;var r2t=i2t;function SJi(o,f,m,x,v,y,C){let w=Nd.numberOfPoints(o,f,v),T,E=m.red,A=m.green,S=m.blue,M=m.alpha,I=x.red,P=x.green,D=x.blue,R=x.alpha;if(ze.equals(m,x)){for(T=0;T<w;T++)y[C++]=ze.floatToByte(E),y[C++]=ze.floatToByte(A),y[C++]=ze.floatToByte(S),y[C++]=ze.floatToByte(M);return C}let L=(I-E)/w,O=(P-A)/w,F=(D-S)/w,B=(R-M)/w,H=C;for(T=0;T<w;T++)y[H++]=ze.floatToByte(E+T*L),y[H++]=ze.floatToByte(A+T*O),y[H++]=ze.floatToByte(S+T*F),y[H++]=ze.floatToByte(M+T*B);return H}function DJ(o){o=o??pi.EMPTY_OBJECT;let f=o.positions,m=o.colors,x=o.colorsPerVertex??!1;this._positions=f,this._colors=m,this._colorsPerVertex=x,this._arcType=o.arcType??xs.GEODESIC,this._granularity=o.granularity??Ce.RADIANS_PER_DEGREE,this._ellipsoid=o.ellipsoid??Ei.default,this._workerName="createSimplePolylineGeometry";let v=1+f.length*V.packedLength;v+=N(m)?1+m.length*ze.packedLength:1,this.packedLength=v+Ei.packedLength+3}DJ.pack=function(o,f,m){m=m??0;let x,v=o._positions,y=v.length;for(f[m++]=y,x=0;x<y;++x,m+=V.packedLength)V.pack(v[x],f,m);let C=o._colors;for(y=N(C)?C.length:0,f[m++]=y,x=0;x<y;++x,m+=ze.packedLength)ze.pack(C[x],f,m);return Ei.pack(o._ellipsoid,f,m),m+=Ei.packedLength,f[m++]=o._colorsPerVertex?1:0,f[m++]=o._arcType,f[m]=o._granularity,f};DJ.unpack=function(o,f,m){f=f??0;let x,v=o[f++],y=new Array(v);for(x=0;x<v;++x,f+=V.packedLength)y[x]=V.unpack(o,f);v=o[f++];let C=v>0?new Array(v):void 0;for(x=0;x<v;++x,f+=ze.packedLength)C[x]=ze.unpack(o,f);let w=Ei.unpack(o,f);f+=Ei.packedLength;let T=o[f++]===1,E=o[f++],A=o[f];return N(m)?(m._positions=y,m._colors=C,m._ellipsoid=w,m._colorsPerVertex=T,m._arcType=E,m._granularity=A,m):new DJ({positions:y,colors:C,ellipsoid:w,colorsPerVertex:T,arcType:E,granularity:A})};var Vse=new Array(2),zse=new Array(2),PJi={positions:Vse,height:zse,ellipsoid:void 0,minDistance:void 0,granularity:void 0};DJ.createGeometry=function(o){let f=o._positions,m=o._colors,x=o._colorsPerVertex,v=o._arcType,y=o._granularity,C=o._ellipsoid,w=Ce.chordLength(y,C.maximumRadius),T=N(m)&&!x,E,A=f.length,S,M,I,P,D=0;if(v===xs.GEODESIC||v===xs.RHUMB){let B,H,G;v===xs.GEODESIC?(B=Ce.chordLength(y,C.maximumRadius),H=Nd.numberOfPoints,G=Nd.generateArc):(B=y,H=Nd.numberOfPointsRhumbLine,G=Nd.generateRhumbArc);let W=Nd.extractHeights(f,C),Y=PJi;if(v===xs.GEODESIC?Y.minDistance=w:Y.granularity=y,Y.ellipsoid=C,T){let K=0;for(E=0;E<A-1;E++)K+=H(f[E],f[E+1],B)+1;S=new Float64Array(K*3),I=new Uint8Array(K*4),Y.positions=Vse,Y.height=zse;let X=0;for(E=0;E<A-1;++E){Vse[0]=f[E],Vse[1]=f[E+1],zse[0]=W[E],zse[1]=W[E+1];let q=G(Y);if(N(m)){let J=q.length/3;P=m[E];for(let Z=0;Z<J;++Z)I[X++]=ze.floatToByte(P.red),I[X++]=ze.floatToByte(P.green),I[X++]=ze.floatToByte(P.blue),I[X++]=ze.floatToByte(P.alpha)}S.set(q,D),D+=q.length}}else if(Y.positions=f,Y.height=W,S=new Float64Array(G(Y)),N(m)){for(I=new Uint8Array(S.length/3*4),E=0;E<A-1;++E){let X=f[E],q=f[E+1],J=m[E],Z=m[E+1];D=SJi(X,q,J,Z,w,I,D)}let K=m[A-1];I[D++]=ze.floatToByte(K.red),I[D++]=ze.floatToByte(K.green),I[D++]=ze.floatToByte(K.blue),I[D++]=ze.floatToByte(K.alpha)}}else{M=T?A*2-2:A,S=new Float64Array(M*3),I=N(m)?new Uint8Array(M*4):void 0;let B=0,H=0;for(E=0;E<A;++E){let G=f[E];if(T&&E>0&&(V.pack(G,S,B),B+=3,P=m[E-1],I[H++]=ze.floatToByte(P.red),I[H++]=ze.floatToByte(P.green),I[H++]=ze.floatToByte(P.blue),I[H++]=ze.floatToByte(P.alpha)),T&&E===A-1)break;V.pack(G,S,B),B+=3,N(m)&&(P=m[E],I[H++]=ze.floatToByte(P.red),I[H++]=ze.floatToByte(P.green),I[H++]=ze.floatToByte(P.blue),I[H++]=ze.floatToByte(P.alpha))}}let R=new ph;R.position=new Zr({componentDatatype:ti.DOUBLE,componentsPerAttribute:3,values:S}),N(m)&&(R.color=new Zr({componentDatatype:ti.UNSIGNED_BYTE,componentsPerAttribute:4,values:I,normalize:!0})),M=S.length/3;let L=(M-1)*2,O=Jn.createTypedArray(M,L),F=0;for(E=0;E<M-1;++E)O[F++]=E,O[F++]=E+1;return new Ma({attributes:R,indices:O,primitiveType:An.LINES,boundingSphere:Li.fromPoints(f)})};var n2t=DJ;function V9(o){let f=o.radius??1,m={radii:new V(f,f,f),stackPartitions:o.stackPartitions,slicePartitions:o.slicePartitions,vertexFormat:o.vertexFormat};this._ellipsoidGeometry=new zx(m),this._workerName="createSphereGeometry"}V9.packedLength=zx.packedLength;V9.pack=function(o,f,m){return zx.pack(o._ellipsoidGeometry,f,m)};var IJi=new zx,UN={radius:void 0,radii:new V,vertexFormat:new sn,stackPartitions:void 0,slicePartitions:void 0};V9.unpack=function(o,f,m){let x=zx.unpack(o,f,IJi);return UN.vertexFormat=sn.clone(x._vertexFormat,UN.vertexFormat),UN.stackPartitions=x._stackPartitions,UN.slicePartitions=x._slicePartitions,N(m)?(V.clone(x._radii,UN.radii),m._ellipsoidGeometry=new zx(UN),m):(UN.radius=x._radii.x,new V9(UN))};V9.createGeometry=function(o){return zx.createGeometry(o._ellipsoidGeometry)};var o2t=V9;function oB(o){}Object.defineProperties(oB.prototype,{ellipsoid:{get:At.throwInstantiationError},rectangle:{get:At.throwInstantiationError},projection:{get:At.throwInstantiationError}});oB.prototype.getNumberOfXTilesAtLevel=At.throwInstantiationError;oB.prototype.getNumberOfYTilesAtLevel=At.throwInstantiationError;oB.prototype.rectangleToNativeRectangle=At.throwInstantiationError;oB.prototype.tileXYToNativeRectangle=At.throwInstantiationError;oB.prototype.tileXYToRectangle=At.throwInstantiationError;oB.prototype.positionToTileXY=At.throwInstantiationError;var a2t=oB;function Dz(o){o=o??pi.EMPTY_OBJECT,this._clock=void 0,this._element=void 0,this._clockSubscription=void 0,this._seekFunction=void 0,this._lastPlaybackRate=void 0,this.clock=o.clock,this.element=o.element,this.epoch=o.epoch??kn.MINIMUM_VALUE,this.tolerance=o.tolerance??1,this._seeking=!1,this._seekFunction=void 0,this._firstTickAfterSeek=!1}Object.defineProperties(Dz.prototype,{clock:{get:function(){return this._clock},set:function(o){let f=this._clock;f!==o&&(N(f)&&(this._clockSubscription(),this._clockSubscription=void 0),N(o)&&(this._clockSubscription=o.onTick.addEventListener(Dz.prototype._onTick,this)),this._clock=o)}},element:{get:function(){return this._element},set:function(o){let f=this._element;f!==o&&(N(f)&&f.removeEventListener("seeked",this._seekFunction,!1),N(o)&&(this._seeking=!1,this._seekFunction=MJi(this),o.addEventListener("seeked",this._seekFunction,!1)),this._element=o,this._seeking=!1,this._firstTickAfterSeek=!1)}}});Dz.prototype.destroy=function(){return this.element=void 0,this.clock=void 0,Ir(this)};Dz.prototype.isDestroyed=function(){return!1};Dz.prototype._trySetPlaybackRate=function(o){if(this._lastPlaybackRate===o.multiplier)return;let f=this._element;try{f.playbackRate=o.multiplier}catch{f.playbackRate=0}this._lastPlaybackRate=o.multiplier};Dz.prototype._onTick=function(o){let f=this._element;if(!N(f)||f.readyState<2)return;let m=f.paused,x=o.shouldAnimate;if(x===m&&(x?f.play():f.pause()),this._seeking||this._firstTickAfterSeek){this._firstTickAfterSeek=!1;return}this._trySetPlaybackRate(o);let v=o.currentTime,y=this.epoch??kn.MINIMUM_VALUE,C=si.secondsDifference(v,y),w=f.duration,T,E=f.currentTime;f.loop?(C=C%w,C<0&&(C=w-C),T=C):C>w?T=w:C<0?T=0:T=C;let A=x?this.tolerance??1:.001;Math.abs(T-E)>A&&(this._seeking=!0,f.currentTime=T)};function MJi(o){return function(){o._seeking=!1,o._firstTickAfterSeek=!0}}var s2t=Dz;function DJi(o,f){this.rectangle=o,this.maxLevel=f}function l2t(o){this.ellipsoid=o.ellipsoid??Ei.default,this.tilingScheme=void 0,this.heightmapWidth=void 0,this.heightmapHeight=void 0,this.levelZeroMaximumGeometricError=void 0,this.rectangles=[]}l2t.prototype.build=function(o){o._tilingScheme=this.tilingScheme,o._heightmapWidth=this.heightmapWidth,o._heightmapHeight=this.heightmapHeight,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._rectangles=this.rectangles};function RJi(o,f){let m=f.getElementsByTagName("SRS")[0].textContent;if(m==="EPSG:4326")o.tilingScheme=new Xh({ellipsoid:o.ellipsoid});else throw new Xi(`SRS ${m} is not supported`);let x=f.getElementsByTagName("TileFormat")[0];o.heightmapWidth=parseInt(x.getAttribute("width"),10),o.heightmapHeight=parseInt(x.getAttribute("height"),10),o.levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.ellipsoid,Math.min(o.heightmapWidth,o.heightmapHeight),o.tilingScheme.getNumberOfXTilesAtLevel(0));let v=f.getElementsByTagName("DataExtent");for(let y=0;y<v.length;++y){let C=v[y],w=Ce.toRadians(parseFloat(C.getAttribute("minx"))),T=Ce.toRadians(parseFloat(C.getAttribute("miny"))),E=Ce.toRadians(parseFloat(C.getAttribute("maxx"))),A=Ce.toRadians(parseFloat(C.getAttribute("maxy"))),S=parseInt(C.getAttribute("maxlevel"),10);o.rectangles.push(new DJi(new Si(w,T,E,A),S))}}function LJi(o,f,m){let x=`An error occurred while accessing ${o.url}`;throw N(f)&&N(f.message)&&(x=`${x}: ${f.message}`),qm.reportError(void 0,m,N(m)?m._errorEvent:void 0,x),new Xi(x)}async function OJi(o,f,m){try{let x=await f.fetchXML();RJi(o,x)}catch(x){LJi(f,x,m)}}function b5(o){o=o??pi.EMPTY_OBJECT,this._errorEvent=new Or,this._terrainDataStructure={heightScale:1/1e3,heightOffset:-1e3,elementsPerHeight:3,stride:4,elementMultiplier:256,isBigEndian:!0,lowestEncodedHeight:0,highestEncodedHeight:256*256*256-1};let f=o.credit;typeof f=="string"&&(f=new rs(f)),this._credit=f,this._tilingScheme=void 0,this._rectangles=[]}Object.defineProperties(b5.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}});b5.fromUrl=async function(o,f){f=f??pi.EMPTY_OBJECT;let m=new l2t(f),x=Wr.createIfNeeded(o);await OJi(m,x);let v=new b5(f);return m.build(v),v._resource=x,v};b5.prototype.requestTileGeometry=function(o,f,m,x){let v=this._tilingScheme.getNumberOfYTilesAtLevel(m),y=this._resource.getDerivedResource({url:`${m}/${o}/${v-f-1}.tif`,queryParameters:{cesium:!0},request:x}).fetchImage({preferImageBitmap:!0});if(!N(y))return;let C=this;return Promise.resolve(y).then(function(w){return new CP({buffer:XV(w),width:C._heightmapWidth,height:C._heightmapHeight,childTileMask:NJi(C,o,f,m),structure:C._terrainDataStructure})})};b5.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};var u2t=new Si;function NJi(o,f,m,x){let v=o._tilingScheme,y=o._rectangles,C=v.tileXYToRectangle(f,m,x),w=0;for(let T=0;T<y.length&&w!==15;++T){let E=y[T];if(E.maxLevel<=x)continue;let A=E.rectangle,S=Si.intersection(A,C,u2t);N(S)&&(Bae(v,A,f*2,m*2,x+1)&&(w|=4),Bae(v,A,f*2+1,m*2,x+1)&&(w|=8),Bae(v,A,f*2,m*2+1,x+1)&&(w|=1),Bae(v,A,f*2+1,m*2+1,x+1)&&(w|=2))}return w}function Bae(o,f,m,x,v){let y=o.tileXYToRectangle(m,x,v);return N(Si.intersection(y,f,u2t))}b5.prototype.getTileDataAvailable=function(o,f,m){};b5.prototype.loadTileDataAvailability=function(o,f,m){};var c2t=b5,FJi={VK_FORMAT_UNDEFINED:0,VK_FORMAT_R4G4_UNORM_PACK8:1,VK_FORMAT_R4G4B4A4_UNORM_PACK16:2,VK_FORMAT_B4G4R4A4_UNORM_PACK16:3,VK_FORMAT_R5G6B5_UNORM_PACK16:4,VK_FORMAT_B5G6R5_UNORM_PACK16:5,VK_FORMAT_R5G5B5A1_UNORM_PACK16:6,VK_FORMAT_B5G5R5A1_UNORM_PACK16:7,VK_FORMAT_A1R5G5B5_UNORM_PACK16:8,VK_FORMAT_R8_UNORM:9,VK_FORMAT_R8_SNORM:10,VK_FORMAT_R8_USCALED:11,VK_FORMAT_R8_SSCALED:12,VK_FORMAT_R8_UINT:13,VK_FORMAT_R8_SINT:14,VK_FORMAT_R8_SRGB:15,VK_FORMAT_R8G8_UNORM:16,VK_FORMAT_R8G8_SNORM:17,VK_FORMAT_R8G8_USCALED:18,VK_FORMAT_R8G8_SSCALED:19,VK_FORMAT_R8G8_UINT:20,VK_FORMAT_R8G8_SINT:21,VK_FORMAT_R8G8_SRGB:22,VK_FORMAT_R8G8B8_UNORM:23,VK_FORMAT_R8G8B8_SNORM:24,VK_FORMAT_R8G8B8_USCALED:25,VK_FORMAT_R8G8B8_SSCALED:26,VK_FORMAT_R8G8B8_UINT:27,VK_FORMAT_R8G8B8_SINT:28,VK_FORMAT_R8G8B8_SRGB:29,VK_FORMAT_B8G8R8_UNORM:30,VK_FORMAT_B8G8R8_SNORM:31,VK_FORMAT_B8G8R8_USCALED:32,VK_FORMAT_B8G8R8_SSCALED:33,VK_FORMAT_B8G8R8_UINT:34,VK_FORMAT_B8G8R8_SINT:35,VK_FORMAT_B8G8R8_SRGB:36,VK_FORMAT_R8G8B8A8_UNORM:37,VK_FORMAT_R8G8B8A8_SNORM:38,VK_FORMAT_R8G8B8A8_USCALED:39,VK_FORMAT_R8G8B8A8_SSCALED:40,VK_FORMAT_R8G8B8A8_UINT:41,VK_FORMAT_R8G8B8A8_SINT:42,VK_FORMAT_R8G8B8A8_SRGB:43,VK_FORMAT_B8G8R8A8_UNORM:44,VK_FORMAT_B8G8R8A8_SNORM:45,VK_FORMAT_B8G8R8A8_USCALED:46,VK_FORMAT_B8G8R8A8_SSCALED:47,VK_FORMAT_B8G8R8A8_UINT:48,VK_FORMAT_B8G8R8A8_SINT:49,VK_FORMAT_B8G8R8A8_SRGB:50,VK_FORMAT_A8B8G8R8_UNORM_PACK32:51,VK_FORMAT_A8B8G8R8_SNORM_PACK32:52,VK_FORMAT_A8B8G8R8_USCALED_PACK32:53,VK_FORMAT_A8B8G8R8_SSCALED_PACK32:54,VK_FORMAT_A8B8G8R8_UINT_PACK32:55,VK_FORMAT_A8B8G8R8_SINT_PACK32:56,VK_FORMAT_A8B8G8R8_SRGB_PACK32:57,VK_FORMAT_A2R10G10B10_UNORM_PACK32:58,VK_FORMAT_A2R10G10B10_SNORM_PACK32:59,VK_FORMAT_A2R10G10B10_USCALED_PACK32:60,VK_FORMAT_A2R10G10B10_SSCALED_PACK32:61,VK_FORMAT_A2R10G10B10_UINT_PACK32:62,VK_FORMAT_A2R10G10B10_SINT_PACK32:63,VK_FORMAT_A2B10G10R10_UNORM_PACK32:64,VK_FORMAT_A2B10G10R10_SNORM_PACK32:65,VK_FORMAT_A2B10G10R10_USCALED_PACK32:66,VK_FORMAT_A2B10G10R10_SSCALED_PACK32:67,VK_FORMAT_A2B10G10R10_UINT_PACK32:68,VK_FORMAT_A2B10G10R10_SINT_PACK32:69,VK_FORMAT_R16_UNORM:70,VK_FORMAT_R16_SNORM:71,VK_FORMAT_R16_USCALED:72,VK_FORMAT_R16_SSCALED:73,VK_FORMAT_R16_UINT:74,VK_FORMAT_R16_SINT:75,VK_FORMAT_R16_SFLOAT:76,VK_FORMAT_R16G16_UNORM:77,VK_FORMAT_R16G16_SNORM:78,VK_FORMAT_R16G16_USCALED:79,VK_FORMAT_R16G16_SSCALED:80,VK_FORMAT_R16G16_UINT:81,VK_FORMAT_R16G16_SINT:82,VK_FORMAT_R16G16_SFLOAT:83,VK_FORMAT_R16G16B16_UNORM:84,VK_FORMAT_R16G16B16_SNORM:85,VK_FORMAT_R16G16B16_USCALED:86,VK_FORMAT_R16G16B16_SSCALED:87,VK_FORMAT_R16G16B16_UINT:88,VK_FORMAT_R16G16B16_SINT:89,VK_FORMAT_R16G16B16_SFLOAT:90,VK_FORMAT_R16G16B16A16_UNORM:91,VK_FORMAT_R16G16B16A16_SNORM:92,VK_FORMAT_R16G16B16A16_USCALED:93,VK_FORMAT_R16G16B16A16_SSCALED:94,VK_FORMAT_R16G16B16A16_UINT:95,VK_FORMAT_R16G16B16A16_SINT:96,VK_FORMAT_R16G16B16A16_SFLOAT:97,VK_FORMAT_R32_UINT:98,VK_FORMAT_R32_SINT:99,VK_FORMAT_R32_SFLOAT:100,VK_FORMAT_R32G32_UINT:101,VK_FORMAT_R32G32_SINT:102,VK_FORMAT_R32G32_SFLOAT:103,VK_FORMAT_R32G32B32_UINT:104,VK_FORMAT_R32G32B32_SINT:105,VK_FORMAT_R32G32B32_SFLOAT:106,VK_FORMAT_R32G32B32A32_UINT:107,VK_FORMAT_R32G32B32A32_SINT:108,VK_FORMAT_R32G32B32A32_SFLOAT:109,VK_FORMAT_R64_UINT:110,VK_FORMAT_R64_SINT:111,VK_FORMAT_R64_SFLOAT:112,VK_FORMAT_R64G64_UINT:113,VK_FORMAT_R64G64_SINT:114,VK_FORMAT_R64G64_SFLOAT:115,VK_FORMAT_R64G64B64_UINT:116,VK_FORMAT_R64G64B64_SINT:117,VK_FORMAT_R64G64B64_SFLOAT:118,VK_FORMAT_R64G64B64A64_UINT:119,VK_FORMAT_R64G64B64A64_SINT:120,VK_FORMAT_R64G64B64A64_SFLOAT:121,VK_FORMAT_B10G11R11_UFLOAT_PACK32:122,VK_FORMAT_E5B9G9R9_UFLOAT_PACK32:123,VK_FORMAT_D16_UNORM:124,VK_FORMAT_X8_D24_UNORM_PACK32:125,VK_FORMAT_D32_SFLOAT:126,VK_FORMAT_S8_UINT:127,VK_FORMAT_D16_UNORM_S8_UINT:128,VK_FORMAT_D24_UNORM_S8_UINT:129,VK_FORMAT_D32_SFLOAT_S8_UINT:130,VK_FORMAT_BC1_RGB_UNORM_BLOCK:131,VK_FORMAT_BC1_RGB_SRGB_BLOCK:132,VK_FORMAT_BC1_RGBA_UNORM_BLOCK:133,VK_FORMAT_BC1_RGBA_SRGB_BLOCK:134,VK_FORMAT_BC2_UNORM_BLOCK:135,VK_FORMAT_BC2_SRGB_BLOCK:136,VK_FORMAT_BC3_UNORM_BLOCK:137,VK_FORMAT_BC3_SRGB_BLOCK:138,VK_FORMAT_BC4_UNORM_BLOCK:139,VK_FORMAT_BC4_SNORM_BLOCK:140,VK_FORMAT_BC5_UNORM_BLOCK:141,VK_FORMAT_BC5_SNORM_BLOCK:142,VK_FORMAT_BC6H_UFLOAT_BLOCK:143,VK_FORMAT_BC6H_SFLOAT_BLOCK:144,VK_FORMAT_BC7_UNORM_BLOCK:145,VK_FORMAT_BC7_SRGB_BLOCK:146,VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK:147,VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK:148,VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK:149,VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK:150,VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK:151,VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK:152,VK_FORMAT_EAC_R11_UNORM_BLOCK:153,VK_FORMAT_EAC_R11_SNORM_BLOCK:154,VK_FORMAT_EAC_R11G11_UNORM_BLOCK:155,VK_FORMAT_EAC_R11G11_SNORM_BLOCK:156,VK_FORMAT_ASTC_4x4_UNORM_BLOCK:157,VK_FORMAT_ASTC_4x4_SRGB_BLOCK:158,VK_FORMAT_ASTC_5x4_UNORM_BLOCK:159,VK_FORMAT_ASTC_5x4_SRGB_BLOCK:160,VK_FORMAT_ASTC_5x5_UNORM_BLOCK:161,VK_FORMAT_ASTC_5x5_SRGB_BLOCK:162,VK_FORMAT_ASTC_6x5_UNORM_BLOCK:163,VK_FORMAT_ASTC_6x5_SRGB_BLOCK:164,VK_FORMAT_ASTC_6x6_UNORM_BLOCK:165,VK_FORMAT_ASTC_6x6_SRGB_BLOCK:166,VK_FORMAT_ASTC_8x5_UNORM_BLOCK:167,VK_FORMAT_ASTC_8x5_SRGB_BLOCK:168,VK_FORMAT_ASTC_8x6_UNORM_BLOCK:169,VK_FORMAT_ASTC_8x6_SRGB_BLOCK:170,VK_FORMAT_ASTC_8x8_UNORM_BLOCK:171,VK_FORMAT_ASTC_8x8_SRGB_BLOCK:172,VK_FORMAT_ASTC_10x5_UNORM_BLOCK:173,VK_FORMAT_ASTC_10x5_SRGB_BLOCK:174,VK_FORMAT_ASTC_10x6_UNORM_BLOCK:175,VK_FORMAT_ASTC_10x6_SRGB_BLOCK:176,VK_FORMAT_ASTC_10x8_UNORM_BLOCK:177,VK_FORMAT_ASTC_10x8_SRGB_BLOCK:178,VK_FORMAT_ASTC_10x10_UNORM_BLOCK:179,VK_FORMAT_ASTC_10x10_SRGB_BLOCK:180,VK_FORMAT_ASTC_12x10_UNORM_BLOCK:181,VK_FORMAT_ASTC_12x10_SRGB_BLOCK:182,VK_FORMAT_ASTC_12x12_UNORM_BLOCK:183,VK_FORMAT_ASTC_12x12_SRGB_BLOCK:184,VK_FORMAT_G8B8G8R8_422_UNORM:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM:1000156006,VK_FORMAT_R10X6_UNORM_PACK16:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16:1000156016,VK_FORMAT_R12X4_UNORM_PACK16:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM:1000156033,VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG:1000054e3,VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG:1000054001,VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG:1000054002,VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG:1000054003,VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG:1000054004,VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG:1000054005,VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG:1000054006,VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG:1000054007,VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT:1000066e3,VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT:1000066001,VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT:1000066002,VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT:1000066003,VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT:1000066004,VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT:1000066005,VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT:1000066006,VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT:1000066007,VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT:1000066008,VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT:1000066009,VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT:1000066010,VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT:1000066011,VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT:1000066012,VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT:1000066013,VK_FORMAT_G8B8G8R8_422_UNORM_KHR:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM_KHR:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR:1000156006,VK_FORMAT_R10X6_UNORM_PACK16_KHR:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR:1000156016,VK_FORMAT_R12X4_UNORM_PACK16_KHR:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM_KHR:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM_KHR:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_KHR:1000156033},h2t=Object.freeze(FJi);function BJi(o){switch(o){case Pi.FLOAT:return"float";case Pi.FLOAT_VEC2:return"vec2";case Pi.FLOAT_VEC3:return"vec3";case Pi.FLOAT_VEC4:return"vec4";case Pi.FLOAT_MAT2:return"mat2";case Pi.FLOAT_MAT3:return"mat3";case Pi.FLOAT_MAT4:return"mat4";case Pi.SAMPLER_2D:return"sampler2D";case Pi.BOOL:return"bool"}}var d2t=BJi;function kJi(o,f,m){return function(){m.apply(o,arguments),f.apply(o,arguments)}}var nke=kJi,VJi=function(){var o=NAe.url;return function(f){return f=f||{},f.ready}}(),Use={};Use.onRuntimeInitialized||(Use.onRuntimeInitialized=function(){},VJi(Use));var f2t=Use,QX=E0(Knt(),1),p2t={};(function(o,f){o.FlowEcharts=f(QX.default,o.Geoworld)})(p2t,function(o,f){return function(m){var x={};function v(y){if(x[y])return x[y].exports;var C=x[y]={i:y,l:!1,exports:{}};return m[y].call(C.exports,C,C.exports,v),C.l=!0,C.exports}return v.m=m,v.c=x,v.d=function(y,C,w){v.o(y,C)||Object.defineProperty(y,C,{enumerable:!0,get:w})},v.r=function(y){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},v.t=function(y,C){if(C&1&&(y=v(y)),C&8||C&4&&typeof y=="object"&&y&&y.__esModule)return y;var w=Object.create(null);if(v.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:y}),C&2&&typeof y!="string")for(var T in y)v.d(w,T,function(E){return y[E]}.bind(null,T));return w},v.n=function(y){var C=y&&y.__esModule?function(){return y.default}:function(){return y};return v.d(C,"a",C),C},v.o=function(y,C){return Object.prototype.hasOwnProperty.call(y,C)},v.p="",v(v.s=0)}([function(m,x,v){v(1);var y=v(7);m.exports=y},function(m,x,v){var y;y=function(C){return v(2).registerCoordinateSystem("GLMap",v(3)),v(5),v(6),v(2).registerAction({type:"GLMapRoam",event:"GLMapRoam",update:"updateLayout"},function(w,T){}),{version:"1.0.0"}}.call(x,v,x,m),y!==void 0&&(m.exports=y)},function(m,x){m.exports=o},function(m,x,v){var y;y=function(C){var w=v(2);function T(E,A){this._GLMap=E,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=A}return T.prototype.dimensions=["lng","lat"],T.prototype.setMapOffset=function(E){this._mapOffset=E},T.prototype.getBMap=function(){return this._GLMap},T.prototype.dataToPoint=function(E){var A=Ce.toRadians(80),S=[99999,99999],M=V.fromDegrees(E[0],E[1]);if(!M)return S;var I=this._GLMap.cartesianToCanvasCoordinates(M);if(!I)return S;var P=this._GLMap;return P.mode===Ti.SCENE3D&&V.angleBetween(P.camera.position,M)>A?!1:[I.x-this._mapOffset[0],I.y-this._mapOffset[1]]},T.prototype.pointToData=function(S){var A=this._mapOffset,S=this._bmap.project([S[0]+A[0],S[1]+A[1]]);return[S.lng,S.lat]},T.prototype.getViewRect=function(){var E=this._api;return new w.graphic.BoundingRect(0,0,E.getWidth(),E.getHeight())},T.prototype.getRoamTransform=function(){return w.matrix.create()},T.dimensions=T.prototype.dimensions,T.create=function(E,A){var S;E.eachComponent("GLMap",function(M){var I=A.getZr().painter.getViewportRoot(),P=w.glMap;S=new T(P,A),S.setMapOffset(M.__mapOffset||[0,0]),M.coordinateSystem=S}),E.eachSeries(function(M){M.get("coordinateSystem")==="GLMap"&&(M.coordinateSystem=S)})},T}.call(x,v,x,m),y!==void 0&&(m.exports=y)},function(m,x){m.exports=f},function(m,x,v){var y;y=function(C){return v(2).extendComponentModel({type:"GLMap",getBMap:function(){return this.__GLMap},defaultOption:{roam:!1}})}.call(x,v,x,m),y!==void 0&&(m.exports=y)},function(m,x,v){var y;y=function(C){return v(2).extendComponentView({type:"GLMap",init:function(w,T){this.api=T,QX.default.glMap.postRender.addEventListener(this.moveHandler,this)},moveHandler:function(){this.api.dispatchAction({type:"GLMapRoam"})},render:function(w,T,E){},dispose:function(w,T){QX.default.glMap.postRender.removeEventListener(this.moveHandler,this)}})}.call(x,v,x,m),y!==void 0&&(m.exports=y)},function(m,x){function v(y,C){this._mapContainer=y,this._overlay=this._createChartOverlay(),this._overlay.setOption(C)}v.prototype._createChartOverlay=function(){var y=this._mapContainer.scene;y.canvas.setAttribute("tabIndex",0);var C=document.createElement("div");return C.style.position="absolute",C.style.top=this._mapContainer.container.getBoundingClientRect().top+"px",C.style.left="0px",C.style.width=y.canvas.width+"px",C.style.height=y.canvas.height+"px",C.style.pointerEvents="none",C.setAttribute("id","echarts"),C.setAttribute("class","echartMap"),this._mapContainer.container.appendChild(C),this._echartsContainer=C,QX.default.glMap=y,QX.default.init(C)},v.prototype.dispose=function(){this._echartsContainer&&(this._mapContainer.container.removeChild(this._echartsContainer),this._echartsContainer=null),this._overlay&&(this._overlay.dispose(),this._overlay=null)},v.prototype.destroy=function(){this.dispose()},v.prototype.updateOverlay=function(y){this._overlay&&this._overlay.setOption(y)},v.prototype.getMap=function(){return this._mapContainer},v.prototype.getOverlay=function(){return this._overlay},m.exports=v}])});var Yfe=p2t.FlowEcharts,zJi=new V(1,1,1);function oke(o){o=o??zJi,this._dimensions=V.clone(o)}Object.defineProperties(oke.prototype,{dimensions:{get:function(){return this._dimensions},set:function(o){V.clone(o,this._dimensions)}}});var UJi=new V;oke.prototype.emit=function(o){let f=this._dimensions,m=V.multiplyByScalar(f,.5,UJi),x=Ce.randomBetween(-m.x,m.x),v=Ce.randomBetween(-m.y,m.y),y=Ce.randomBetween(-m.z,m.z);o.position=V.fromElements(x,v,y,o.position),o.velocity=V.normalize(o.position,o.velocity)};var Xfe=oke;function _D(){this.featurePropertiesDirty=!1}Object.defineProperties(_D.prototype,{featuresLength:{get:function(){At.throwInstantiationError()}},pointsLength:{get:function(){At.throwInstantiationError()}},trianglesLength:{get:function(){At.throwInstantiationError()}},geometryByteLength:{get:function(){At.throwInstantiationError()}},texturesByteLength:{get:function(){At.throwInstantiationError()}},batchTableByteLength:{get:function(){At.throwInstantiationError()}},innerContents:{get:function(){At.throwInstantiationError()}},ready:{get:function(){At.throwInstantiationError()}},tileset:{get:function(){At.throwInstantiationError()}},tile:{get:function(){At.throwInstantiationError()}},url:{get:function(){At.throwInstantiationError()}},batchTable:{get:function(){At.throwInstantiationError()}},metadata:{get:function(){At.throwInstantiationError()},set:function(o){At.throwInstantiationError()}},group:{get:function(){At.throwInstantiationError()},set:function(o){At.throwInstantiationError()}}});_D.prototype.hasProperty=function(o,f){At.throwInstantiationError()};_D.prototype.getFeature=function(o){At.throwInstantiationError()};_D.prototype.applyDebugSettings=function(o,f){At.throwInstantiationError()};_D.prototype.applyStyle=function(o){At.throwInstantiationError()};_D.prototype.update=function(o,f){At.throwInstantiationError()};_D.prototype.pick=function(o,f,m){At.throwInstantiationError()};_D.prototype.isDestroyed=function(){At.throwInstantiationError()};_D.prototype.destroy=function(){At.throwInstantiationError()};var m2t=_D;function nee(o){o=o??pi.EMPTY_OBJECT,this._maximumSubtreeCount=o.maximumSubtreeCount??0,this._subtreeRequestCounter=0,this._queue=new pfe({comparator:nee.comparator})}nee.prototype.addSubtree=function(o){let f=new HJi(o,this._subtreeRequestCounter);this._subtreeRequestCounter++,this._queue.insert(f);let m=o.implicitCoordinates;if(m.level>0){let x=m.getParentSubtreeCoordinates(),v=this.find(x)}if(this._maximumSubtreeCount>0)for(;this._queue.length>this._maximumSubtreeCount&&this._queue.getMinimum()!==f;)this._queue.removeMinimum()};nee.prototype.find=function(o){let f=this._queue,m=f.internalArray,x=f.length;for(let v=0;v<x;v++){let y=m[v],C=y.subtree.implicitCoordinates;if(o.isEqual(C))return y.subtree}};nee.comparator=function(o,f){let m=o.subtree.implicitCoordinates,x=f.subtree.implicitCoordinates;return m.isAncestor(x)?1:x.isAncestor(m)?-1:o.stamp-f.stamp};function HJi(o,f){this.subtree=o,this.stamp=f}var ake=nee;function RJ(o){o=o??pi.EMPTY_OBJECT;let{className:f,names:m,types:x,componentTypes:v,shape:y,dimensions:C,paddingBefore:w=V.ZERO.clone(),paddingAfter:T=V.ZERO.clone(),globalTransform:E=Ee.IDENTITY.clone(),shapeTransform:A=Ee.IDENTITY.clone(),minBounds:S,maxBounds:M,minimumValues:I,maximumValues:P,maximumTileCount:D}=o;this._shapeTransform=A,this._globalTransform=E,this._shape=y,this._minBounds=S,this._maxBounds=M,this._dimensions=C,this._paddingBefore=w,this._paddingAfter=T,this._className=f,this._names=m,this._types=x,this._componentTypes=v,this._metadataOrder=y===Hb.ELLIPSOID?Iz.Z_UP:Iz.Y_UP,this._minimumValues=I,this._maximumValues=P,this._maximumTileCount=D,this._availableLevels=void 0,this._implicitTileset=void 0,this._subtreeCache=new ake}Object.defineProperties(RJ.prototype,{globalTransform:{get:function(){return this._globalTransform}},shapeTransform:{get:function(){return this._shapeTransform}},shape:{get:function(){return this._shape}},minBounds:{get:function(){return this._minBounds}},maxBounds:{get:function(){return this._maxBounds}},dimensions:{get:function(){return this._dimensions}},paddingBefore:{get:function(){return this._paddingBefore}},paddingAfter:{get:function(){return this._paddingAfter}},className:{get:function(){return this._className}},names:{get:function(){return this._names}},types:{get:function(){return this._types}},componentTypes:{get:function(){return this._componentTypes}},metadataOrder:{get:function(){return this._metadataOrder}},minimumValues:{get:function(){return this._minimumValues}},maximumValues:{get:function(){return this._maximumValues}},maximumTileCount:{get:function(){return this._maximumTileCount}},availableLevels:{get:function(){return this._availableLevels}}});RJ.fromUrl=async function(o){let f=Wr.createIfNeeded(o),m=await f.fetchJson();WJi(m);let x=JJi(m,f);await x.load();let{root:v}=m,y=kd(m,"3DTILES_metadata")?m.extensions["3DTILES_metadata"]:m,C=new Ide({metadataJson:y,schema:x.schema}),w=v.content.extensions["3DTILES_content_voxels"],T=w.class,E=QJi(C,T);Object.assign(E,jJi(v)),N(v.transform)?E.globalTransform=Ee.unpack(v.transform):E.globalTransform=Ee.clone(Ee.IDENTITY),E.dimensions=V.unpack(w.dimensions),E.maximumTileCount=GJi(C),N(w.padding)&&(E.paddingBefore=V.unpack(w.padding.before),E.paddingAfter=V.unpack(w.padding.after));let A=new RJ(E),S=new Rde(f,v,x.schema);return A._implicitTileset=S,A._availableLevels=S.availableLevels,Id.unload(x),A};function GJi(o){if(N(o.tileset))return o.tileset.getPropertyBySemantic(bde.TILESET_TILE_COUNT)}function WJi(o){let f=o.root;if(!N(f.content))throw new Xi("Root must have content");if(!kd(f.content,"3DTILES_content_voxels"))throw new Xi("Root tile content must have 3DTILES_content_voxels extension");if(!kd(f,"3DTILES_implicit_tiling")&&!N(f.implicitTiling))throw new Xi("Root tile must have implicit tiling");if(!N(o.schema)&&!N(o.schemaUri)&&!kd(o,"3DTILES_metadata"))throw new Xi("Tileset must have a metadata schema")}function jJi(o){let f=o.boundingVolume;if(N(f.box))return KJi(f.box);if(N(f.region))return qJi(f.region);if(kd(f,"3DTILES_bounding_volume_cylinder"))return $Ji(f.extensions["3DTILES_bounding_volume_cylinder"]);throw new Xi("Only box, region and 3DTILES_bounding_volume_cylinder are supported in Cesium3DTilesVoxelProvider")}function qJi(o){let f=o[0],m=o[1],x=o[2],v=o[3],y=o[4],C=o[5],w=Ee.fromScale(Ei.WGS84.radii),T=new V(f,m,y),E=new V(x,v,C);return{shape:Hb.ELLIPSOID,minBounds:T,maxBounds:E,shapeTransform:w}}var YJi=new V,XJi=new Yt;function KJi(o){let f=Ju.unpack(o),m=Yt.getScale(f.halfAxes,YJi),x=Yt.getRotation(f.halfAxes,XJi);return{shape:Hb.BOX,minBounds:V.negate(m,new V),maxBounds:V.clone(m),shapeTransform:Ee.fromRotationTranslation(x,f.center)}}function $Ji(o){let{minRadius:f,maxRadius:m,height:x,minAngle:v=-Ce.PI,maxAngle:y=Ce.PI,translation:C=[0,0,0],rotation:w=[0,0,0,1]}=o,T=-.5*x+C[2],E=.5*x+C[2],A=Ee.fromTranslationQuaternionRotationScale(V.unpack(C),Er.unpack(w),V.ONE);return{shape:Hb.CYLINDER,minBounds:V.fromElements(f,v,T),maxBounds:V.fromElements(m,y,E),shapeTransform:A}}function JJi(o,f){let{schemaUri:m,schema:x}=o;return N(m)?Id.getSchemaLoader({resource:f.getDerivedResource({url:m})}):Id.getSchemaLoader({schema:x})}function QJi(o,f){let{schema:m,statistics:x}=o,v=x?.classes[f],y=m.classes[f].properties,C=Object.entries(y).map(([I,P])=>{let{type:D,componentType:R}=P,L=v?.properties[I].min,O=v?.properties[I].max,F=Mo.getComponentCount(D),B=wit(L,F),H=wit(O,F);return{id:I,type:D,componentType:R,minValue:B,maxValue:H}}),w=C.map(I=>I.id),T=C.map(I=>I.type),E=C.map(I=>I.componentType),A=C.map(I=>I.minValue),S=C.map(I=>I.maxValue),M=A.some(N);return{className:f,names:w,types:T,componentTypes:E,minimumValues:M?A:void 0,maximumValues:M?S:void 0}}function wit(o,f){if(!N(o))return;let m=Array.isArray(o)?o:[o];return Array.from({length:f},(x,v)=>m[v])}async function ZJi(o,f){let m=o._implicitTileset,x=o._subtreeCache,v=x.find(f);if(N(v))return v;let y=m.subtreeUriTemplate.getDerivedResource({templateValues:f.getTemplateValues()}),C=m.baseResource.getDerivedResource({url:y.url}),w=await C.fetchArrayBuffer();if(v=x.find(f),N(v))return v;let T=xZ(w);return v=await Cde.fromSubtreeJson(C,T.jsonPayload,T.binaryPayload,m,f),x.addSubtree(v),v}RJ.prototype.requestData=async function(o){o=o??pi.EMPTY_OBJECT;let{tileLevel:f=0,tileX:m=0,tileY:x=0,tileZ:v=0,keyframe:y=0}=o;if(y!==0)return Promise.reject("3D Tiles currently doesn't support time-dynamic data.");let C=this._implicitTileset,w=new Lde({subdivisionScheme:C.subdivisionScheme,subtreeLevels:C.subtreeLevels,level:f,x:m,y:x,z:v}),T=w.isSubtreeRoot()&&w.level>0,E=T?w.getParentSubtreeCoordinates():w.getSubtreeCoordinates(),A=await ZJi(this,E);if(!(T?A.childSubtreeIsAvailableAtCoordinates:A.tileIsAvailableAtCoordinates).call(A,w))return Promise.reject(`Tile is not available at level ${f}, x ${m}, y ${x}, z ${v}.`);let{contentUriTemplates:S,baseResource:M}=C,I=S[0].getDerivedResource({templateValues:w.getTemplateValues()}),P=M.getDerivedResource({url:I.url});return ffe.fromGltf(P)};var x2t=RJ;function ske(o){o=o??1,this._radius=o??1}Object.defineProperties(ske.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});ske.prototype.emit=function(o){let f=Ce.randomBetween(0,Ce.TWO_PI),m=Ce.randomBetween(0,this._radius),x=m*Math.cos(f),v=m*Math.sin(f),y=0;o.position=V.fromElements(x,v,y,o.position),o.velocity=V.clone(V.UNIT_Z,o.velocity)};var lke=ske,SAe={CUMULUS:0};SAe.validate=function(o){return o===SAe.CUMULUS};var Oue=Object.freeze(SAe);function SP(o,f){if(o=o??pi.EMPTY_OBJECT,this._show=o.show??!0,this._position=V.clone(o.position??V.ZERO),!N(o.scale)&&N(o.maximumSize))this._maximumSize=V.clone(o.maximumSize),this._scale=new at(this._maximumSize.x,this._maximumSize.y);else{this._scale=at.clone(o.scale??new at(20,12));let m=new V(this._scale.x,this._scale.y,Math.min(this._scale.x,this._scale.y)/1.5);this._maximumSize=V.clone(o.maximumSize??m)}this._slice=o.slice??-1,this._color=ze.clone(o.color??ze.WHITE),this._brightness=o.brightness??1,this._cloudCollection=f,this._index=-1}var eQi=SP.SHOW_INDEX=0,tQi=SP.POSITION_INDEX=1,iQi=SP.SCALE_INDEX=2,rQi=SP.MAXIMUM_SIZE_INDEX=3,nQi=SP.SLICE_INDEX=4,oQi=SP.BRIGHTNESS_INDEX=5,aQi=SP.COLOR_INDEX=6;SP.NUMBER_OF_PROPERTIES=7;function nV(o,f){let m=o._cloudCollection;N(m)&&(m._updateCloud(o,f),o._dirty=!0)}Object.defineProperties(SP.prototype,{show:{get:function(){return this._show},set:function(o){this._show!==o&&(this._show=o,nV(this,eQi))}},position:{get:function(){return this._position},set:function(o){let f=this._position;V.equals(f,o)||(V.clone(o,f),nV(this,tQi))}},scale:{get:function(){return this._scale},set:function(o){let f=this._scale;at.equals(f,o)||(at.clone(o,f),nV(this,iQi))}},maximumSize:{get:function(){return this._maximumSize},set:function(o){let f=this._maximumSize;V.equals(f,o)||(V.clone(o,f),nV(this,rQi))}},color:{get:function(){return this._color},set:function(o){let f=this._color;ze.equals(f,o)||(ze.clone(o,f),nV(this,aQi))}},slice:{get:function(){return this._slice},set:function(o){this._slice!==o&&(this._slice=o,nV(this,nQi))}},brightness:{get:function(){return this._brightness},set:function(o){this._brightness!==o&&(this._brightness=o,nV(this,oQi))}}});SP.prototype._destroy=function(){this._cloudCollection=void 0};var PP=SP,uw,kae=new V,sQi={positionHighAndScaleX:0,positionLowAndScaleY:1,packedAttribute0:2,packedAttribute1:3,color:4},lQi={direction:0,positionHighAndScaleX:1,positionLowAndScaleY:2,packedAttribute0:3,packedAttribute1:4,color:5},uQi=PP.SHOW_INDEX,cQi=PP.POSITION_INDEX,hQi=PP.SCALE_INDEX,dQi=PP.MAXIMUM_SIZE_INDEX,fQi=PP.SLICE_INDEX,pQi=PP.BRIGHTNESS_INDEX,mQi=PP.NUMBER_OF_PROPERTIES,xQi=PP.COLOR_INDEX;function IP(o){o=o??pi.EMPTY_OBJECT,this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(mQi),this._noiseTexture=void 0,this._textureSliceWidth=128,this._noiseTextureRows=4,this.noiseDetail=o.noiseDetail??16,this.noiseOffset=V.clone(o.noiseOffset??V.ZERO),this._loading=!1,this._ready=!1;let f=this;this._uniforms={u_noiseTexture:function(){return f._noiseTexture},u_noiseTextureDimensions:g2t(f),u_noiseDetail:function(){return f.noiseDetail}},this._vaNoise=void 0,this._spNoise=void 0,this._spCreated=!1,this._sp=void 0,this._rs=void 0,this.show=o.show??!0,this._colorCommands=[],this.debugBillboards=o.debugBillboards??!1,this._compiledDebugBillboards=!1,this.debugEllipsoids=o.debugEllipsoids??!1,this._compiledDebugEllipsoids=!1}function g2t(o){return function(){return kae.x=o._textureSliceWidth,kae.y=o._noiseTextureRows,kae.z=1/o._noiseTextureRows,kae}}Object.defineProperties(IP.prototype,{length:{get:function(){return uke(this),this._clouds.length}}});function _2t(o){let f=o.length;for(let m=0;m<f;++m)o[m]&&o[m]._destroy()}IP.prototype.add=function(o){o=o??pi.EMPTY_OBJECT;let f=o.cloudType??Oue.CUMULUS,m;return f===Oue.CUMULUS&&(m=new PP(o,this),m._index=this._clouds.length,this._clouds.push(m),this._createVertexArray=!0),m};IP.prototype.remove=function(o){return this.contains(o)?(this._clouds[o._index]=void 0,this._cloudsRemoved=!0,this._createVertexArray=!0,o._destroy(),!0):!1};IP.prototype.removeAll=function(){_2t(this._clouds),this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!0};function uke(o){if(o._cloudsRemoved){o._cloudsRemoved=!1;let f=[],m=o._clouds,x=m.length;for(let v=0,y=0;v<x;++v){let C=m[v];N(C)&&(m._index=y++,f.push(C))}o._clouds=f}}IP.prototype._updateCloud=function(o,f){o._dirty||(this._cloudsToUpdate[this._cloudsToUpdateIndex++]=o),++this._propertiesChanged[f]};IP.prototype.contains=function(o){return N(o)&&o._cloudCollection===this};IP.prototype.get=function(o){return uke(this),this._clouds[o]};var gQi=new Float32Array([-1,-1,1,-1,1,1,-1,1]),_Qi=new Uint16Array([0,1,2,0,2,3]);function vQi(o){let f=Do.createVertexBuffer({context:o,typedArray:gQi,usage:xn.STATIC_DRAW}),m=Do.createIndexBuffer({context:o,typedArray:_Qi,usage:xn.STATIC_DRAW,indexDatatype:Jn.UNSIGNED_SHORT}),x=[{index:0,vertexBuffer:f,componentsPerAttribute:2,componentDatatype:ti.FLOAT}];return new $u({context:o,attributes:x,indexBuffer:m})}var cke;function yQi(o){let f=o.cache.cloudCollection_indexBufferBatched;if(N(f))return f;let m=16384*6-6,x=new Uint16Array(m);for(let v=0,y=0;v<m;v+=6,y+=4)x[v]=y,x[v+1]=y+1,x[v+2]=y+2,x[v+3]=y,x[v+4]=y+2,x[v+5]=y+3;return f=Do.createIndexBuffer({context:o,typedArray:x,usage:xn.STATIC_DRAW,indexDatatype:Jn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferBatched=f,f}function CQi(o){let f=o.cache.cloudCollection_indexBufferInstanced;return N(f)||(f=Do.createIndexBuffer({context:o,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:xn.STATIC_DRAW,indexDatatype:Jn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferInstanced=f),f}function bQi(o){let f=o.cache.cloudCollection_vertexBufferInstanced;return N(f)||(f=Do.createVertexBuffer({context:o,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:xn.STATIC_DRAW}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_vertexBufferInstanced=f),f}function wQi(o,f,m){let x=[{index:uw.positionHighAndScaleX,componentsPerAttribute:4,componentDatatype:ti.FLOAT,usage:xn.STATIC_DRAW},{index:uw.positionLowAndScaleY,componentsPerAttribute:4,componentDatatype:ti.FLOAT,usage:xn.STATIC_DRAW},{index:uw.packedAttribute0,componentsPerAttribute:4,componentDatatype:ti.FLOAT,usage:xn.STATIC_DRAW},{index:uw.packedAttribute1,componentsPerAttribute:4,componentDatatype:ti.FLOAT,usage:xn.STATIC_DRAW},{index:uw.color,componentsPerAttribute:4,componentDatatype:ti.UNSIGNED_BYTE,normalize:!0,usage:xn.STATIC_DRAW}];m&&x.push({index:uw.direction,componentsPerAttribute:2,componentDatatype:ti.FLOAT,vertexBuffer:bQi(o)});let v=m?f:4*f;return new sQ(o,x,v,m)}var Swe=new Ic;function v2t(o,f,m,x){let v,y=m[uw.positionHighAndScaleX],C=m[uw.positionLowAndScaleY],w=x.position;Ic.fromCartesian(w,Swe);let T=x.scale,E=Swe.high,A=Swe.low;o._instanced?(v=x._index,y(v,E.x,E.y,E.z,T.x),C(v,A.x,A.y,A.z,T.y)):(v=x._index*4,y(v+0,E.x,E.y,E.z,T.x),y(v+1,E.x,E.y,E.z,T.x),y(v+2,E.x,E.y,E.z,T.x),y(v+3,E.x,E.y,E.z,T.x),C(v+0,A.x,A.y,A.z,T.y),C(v+1,A.x,A.y,A.z,T.y),C(v+2,A.x,A.y,A.z,T.y),C(v+3,A.x,A.y,A.z,T.y))}function y2t(o,f,m,x){let v,y=m[uw.packedAttribute0],C=x.show,w=x.brightness;o._instanced?(v=x._index,y(v,C,w,0,0)):(v=x._index*4,y(v+0,C,w,0,0),y(v+1,C,w,1,0),y(v+2,C,w,1,1),y(v+3,C,w,0,1))}function C2t(o,f,m,x){let v,y=m[uw.packedAttribute1],C=x.maximumSize,w=x.slice;o._instanced?(v=x._index,y(v,C.x,C.y,C.z,w)):(v=x._index*4,y(v+0,C.x,C.y,C.z,w),y(v+1,C.x,C.y,C.z,w),y(v+2,C.x,C.y,C.z,w),y(v+3,C.x,C.y,C.z,w))}function b2t(o,f,m,x){let v,y=m[uw.color],C=x.color,w=ze.floatToByte(C.red),T=ze.floatToByte(C.green),E=ze.floatToByte(C.blue),A=ze.floatToByte(C.alpha);o._instanced?(v=x._index,y(v,w,T,E,A)):(v=x._index*4,y(v+0,w,T,E,A),y(v+1,w,T,E,A),y(v+2,w,T,E,A),y(v+3,w,T,E,A))}function TQi(o,f,m,x){v2t(o,f,m,x),y2t(o,f,m,x),C2t(o,f,m,x),b2t(o,f,m,x)}function EQi(o,f,m,x){let v=o,y=v._textureSliceWidth,C=v._noiseTextureRows,w=f.context;v._vaNoise=vQi(w),v._spNoise=Us.fromCache({context:w,vertexShaderSource:m,fragmentShaderSource:x,attributeLocations:{position:0}});let T=v.noiseDetail,E=v.noiseOffset;v._noiseTexture=new Wn({context:w,width:y*y/C,height:y*C,pixelDatatype:bn.UNSIGNED_BYTE,pixelFormat:an.RGBA,sampler:new aa({wrapS:io.REPEAT,wrapT:io.REPEAT,minificationFilter:na.NEAREST,magnificationFilter:pl.NEAREST})});let A=new p3({vertexArray:v._vaNoise,shaderProgram:v._spNoise,outputTexture:v._noiseTexture,uniformMap:{u_noiseTextureDimensions:g2t(v),u_noiseDetail:function(){return T},u_noiseOffset:function(){return E}},persists:!1,owner:o,postExecute:function(S){v._ready=!0,v._loading=!1}});f.commandList.push(A),v._loading=!0}function AQi(o,f){let m=o,x=f.context;m._createVertexArray=!1,m._vaf=m._vaf&&m._vaf.destroy();let v=o._clouds,y=v.length;if(y>0){m._vaf=wQi(x,y,m._instanced);let C=m._vaf.writers,w;for(w=0;w<y;++w){let T=v[w];TQi(o,f,C,T)}m._vaf.commit(cke(x))}}var SQi=[];function PQi(o,f){let m=f.context,x=o,v=x._clouds.length,y=x._cloudsToUpdate,C=x._cloudsToUpdateIndex,w=x._propertiesChanged,T=SQi;T.length=0,(w[cQi]||w[hQi])&&T.push(v2t),(w[uQi]||w[pQi])&&T.push(y2t),(w[dQi]||w[fQi])&&T.push(C2t),w[xQi]&&T.push(b2t);let E=T.length,A=x._vaf.writers,S,M,I;if(C/v>.1){for(S=0;S<C;++S)for(M=y[S],M._dirty=!1,I=0;I<E;++I)T[I](o,f,A,M);x._vaf.commit(cke(m))}else{for(S=0;S<C;++S){for(M=y[S],M._dirty=!1,I=0;I<E;++I)T[I](o,f,A,M);x._instanced?x._vaf.subCommit(M._index,1):x._vaf.subCommit(M._index*4,4)}x._vaf.endSubCommits()}x._cloudsToUpdateIndex=0}function IQi(o,f,m,x){let v=f.context,y=o,C=new $r({defines:[],sources:[m]});y._instanced&&C.defines.push("INSTANCED");let w=new $r({defines:[],sources:[x]});y.debugBillboards&&w.defines.push("DEBUG_BILLBOARDS"),y.debugEllipsoids&&w.defines.push("DEBUG_ELLIPSOIDS"),y._sp=Us.replaceCache({context:v,shaderProgram:y._sp,vertexShaderSource:C,fragmentShaderSource:w,attributeLocations:uw}),y._rs=wn.fromCache({depthTest:{enabled:!0,func:Pi.LESS},depthMask:!1,blending:Ou.ALPHA_BLEND}),y._spCreated=!0,y._compiledDebugBillboards=y.debugBillboards,y._compiledDebugEllipsoids=y.debugEllipsoids}function MQi(o,f){let m=o,x=f.passes,v=m._uniforms,y=f.commandList;if(x.render){let C=m._colorCommands,w=m._vaf.va,T=w.length;C.length=T;for(let E=0;E<T;E++){let A=C[E];N(A)||(A=C[E]=new Vn),A.pass=Sr.TRANSLUCENT,A.owner=o,A.uniformMap=v,A.count=w[E].indicesCount,A.vertexArray=w[E].va,A.shaderProgram=m._sp,A.renderState=m._rs,m._instanced&&(A.count=6,A.instanceCount=m._clouds.length),y.push(A)}}}IP.prototype.update=function(o){if(uke(this),!this.show)return;let f=this.debugBillboards||this.debugEllipsoids;this._ready=f?!0:N(this._noiseTexture),!this._ready&&!this._loading&&!f&&EQi(this,o,U4e,z4e),this._instanced=o.context.instancedArrays,uw=this._instanced?lQi:sQi,cke=this._instanced?CQi:yQi;let m=this._clouds.length,x=this._cloudsToUpdate,v=this._cloudsToUpdateIndex;this._createVertexArray?AQi(this,o):v>0&&PQi(this,o),v>m*1.5&&(x.length=m),!(!N(this._vaf)||!N(this._vaf.va)||!this._ready&!f)&&((!this._spCreated||this.debugBillboards!==this._compiledDebugBillboards||this.debugEllipsoids!==this._compiledDebugEllipsoids)&&IQi(this,o,V4e,k4e),MQi(this,o))};IP.prototype.isDestroyed=function(){return!1};IP.prototype.destroy=function(){return this._noiseTexture=this._noiseTexture&&this._noiseTexture.destroy(),this._sp=this._sp&&this._sp.destroy(),this._vaf=this._vaf&&this._vaf.destroy(),_2t(this._clouds),Ir(this)};var w2t=IP,DQi=Ce.toRadians(30);function hke(o){this._angle=o??DQi}Object.defineProperties(hke.prototype,{angle:{get:function(){return this._angle},set:function(o){this._angle=o}}});hke.prototype.emit=function(o){let f=Math.tan(this._angle),m=Ce.randomBetween(0,Ce.TWO_PI),x=Ce.randomBetween(0,f),v=x*Math.cos(m),y=x*Math.sin(m),C=1;o.velocity=V.fromElements(v,y,C,o.velocity),V.normalize(o.velocity,o.velocity),o.position=V.clone(V.ZERO,o.position)};var P7=hke,RQi=new ze,LQi=new ze,OQi=new ze,NQi=new ze,Tit=new Xt,ZX=new Uint8Array(4);function Eit(o,f,m,x){let v=f.height===m.height?0:(o-f.height)/(m.height-f.height);return ze.lerp(f.color,m.color,v,x)}function Hse(o,f){return{height:o,color:ze.clone(f)}}function T2t(o){return o=o.filter(function(f,m,x){let v=m>0,y=m<x.length-1,C=v?f.height===x[m-1].height:!0,w=y?f.height===x[m+1].height:!0;return!C||!w}),o=o.filter(function(f,m,x){let v=m>0,y=m<x.length-1,C=v?ze.equals(f.color,x[m-1].color):!1,w=y?ze.equals(f.color,x[m+1].color):!1;return!C||!w}),o=o.filter(function(f,m,x){let v=m>0,y=v?ze.equals(f.color,x[m-1].color):!1,C=v?f.height===x[m-1].height:!0;return!y||!C}),o}function FQi(o){let f,m,x=[],v=o.length;for(f=0;f<v;f++){let y=o[f],C=y.entries,w=C.length,T=[];for(m=0;m<w;m++){let I=C[m],P=Ce.clamp(I.height,Vb._minimumHeight,Vb._maximumHeight),D=ze.clone(I.color,RQi);D.red*=D.alpha,D.green*=D.alpha,D.blue*=D.alpha,T.push(Hse(P,D))}let E=!0,A=!0;for(m=0;m<w-1;m++){let I=T[m+0],P=T[m+1];E=E&&I.height<=P.height,A=A&&I.height>=P.height}A?T=T.reverse():E||l7(T,function(I,P){return Ce.sign(I.height-P.height)});let S=y.extendDownwards??!1,M=y.extendUpwards??!1;T.length===1&&!S&&!M&&(S=!0,M=!0),S&&T.splice(0,0,Hse(Vb._minimumHeight,T[0].color)),M&&T.splice(T.length,0,Hse(Vb._maximumHeight,T[T.length-1].color)),T=T2t(T),x.push(T)}return x}function BQi(o){let f=FQi(o),m=[],x=[],v;function y(T,E){m.push(Hse(T,E))}function C(T,E,A){let S=ze.multiplyByScalar(A,1-E.alpha,NQi);S=ze.add(S,E,S),y(T,S)}let w=f.length;for(v=0;v<w;v++){let T=f[v],E=0,A=0;x=m,m=[];let S=T.length,M=x.length;for(;E<S||A<M;){let I=E<S?T[E]:void 0,P=E>0?T[E-1]:void 0,D=E<S-1?T[E+1]:void 0,R=A<M?x[A]:void 0,L=A>0?x[A-1]:void 0,O=A<M-1?x[A+1]:void 0;if(N(I)&&N(R)&&I.height===R.height){let F=N(O)&&R.height===O.height,B=!N(L),H=!N(O),G=N(D)&&I.height===D.height,W=!N(P),Y=!N(D);F?G?(C(I.height,I.color,R.color),C(I.height,D.color,O.color)):W?(y(I.height,R.color),C(I.height,I.color,O.color)):Y?(C(I.height,I.color,R.color),y(I.height,O.color)):(C(I.height,I.color,R.color),C(I.height,I.color,O.color)):B?G?(y(I.height,I.color),C(I.height,D.color,R.color)):Y?(y(I.height,I.color),y(I.height,R.color)):(W||y(I.height,I.color),C(I.height,I.color,R.color)):H?G?(C(I.height,I.color,R.color),y(I.height,D.color)):W?(y(I.height,R.color),y(I.height,I.color)):Y?C(I.height,I.color,R.color):(C(I.height,I.color,R.color),y(I.height,I.color)):G?(C(I.height,I.color,R.color),C(I.height,D.color,R.color)):W?(y(I.height,R.color),C(I.height,I.color,R.color)):Y?(C(I.height,I.color,R.color),y(I.height,R.color)):C(I.height,I.color,R.color),E+=G?2:1,A+=F?2:1}else if(N(I)&&N(R)&&N(L)&&I.height<R.height){let F=Eit(I.height,L,R,OQi);N(P)?N(D)?C(I.height,I.color,F):(C(I.height,I.color,F),y(I.height,F)):(y(I.height,F),C(I.height,I.color,F)),E++}else if(N(R)&&N(I)&&N(P)&&R.height<I.height){let F=Eit(R.height,P,I,LQi);N(L)?N(O)?C(R.height,F,R.color):(C(R.height,F,R.color),y(R.height,F)):(y(R.height,F),C(R.height,F,R.color)),A++}else N(I)&&(!N(R)||I.height<R.height)?(N(R)&&!N(L)&&!N(D)?(y(I.height,I.color),y(I.height,Vb._emptyColor),y(R.height,Vb._emptyColor)):(!N(R)&&N(L)&&!N(P)&&(y(L.height,Vb._emptyColor),y(I.height,Vb._emptyColor)),y(I.height,I.color)),E++):N(R)&&(!N(I)||R.height<I.height)&&(y(R.height,R.color),A++)}}return T2t(m)}function Vb(o){let{scene:f,layers:m}=o??pi.EMPTY_OBJECT,{context:x}=f,v=BQi(m),y=v.length,C,w,T;if(Vb._useFloatTexture(x)){w=bn.FLOAT,T=x.webgl2?an.RED:an.LUMINANCE,C=new Float32Array(y);for(let M=0;M<y;M++)C[M]=v[M].height}else{w=bn.UNSIGNED_BYTE,T=an.RGBA,C=new Uint8Array(y*4);for(let M=0;M<y;M++)Xt.packFloat(v[M].height,Tit),Xt.pack(Tit,C,M*4)}let E=Wn.create({context:x,pixelFormat:T,pixelDatatype:w,source:{arrayBufferView:C,width:y,height:1},sampler:new aa({wrapS:io.CLAMP_TO_EDGE,wrapT:io.CLAMP_TO_EDGE,minificationFilter:na.NEAREST,magnificationFilter:pl.NEAREST})}),A=new Uint8Array(y*4);for(let M=0;M<y;M++)v[M].color.toBytes(ZX),A[M*4+0]=ZX[0],A[M*4+1]=ZX[1],A[M*4+2]=ZX[2],A[M*4+3]=ZX[3];let S=Wn.create({context:x,pixelFormat:an.RGBA,pixelDatatype:bn.UNSIGNED_BYTE,source:{arrayBufferView:A,width:y,height:1},sampler:new aa({wrapS:io.CLAMP_TO_EDGE,wrapT:io.CLAMP_TO_EDGE,minificationFilter:na.LINEAR,magnificationFilter:pl.LINEAR})});return zo.fromType("ElevationBand",{heights:E,colors:S})}Vb._useFloatTexture=function(o){return o.floatingPointTexture};Vb._maximumHeight=5906376425472;Vb._minimumHeight=-5906376425472;Vb._emptyColor=new ze(0,0,0,0);var E2t=Vb;async function kQi(o,f){f=f??{},f.cacheBytes=f.cacheBytes??1536*1024*1024,f.maximumCacheOverflowBytes=f.maximumCacheOverflowBytes??1024*1024*1024,f.enableCollision=f.enableCollision??!0,o=o??pi.EMPTY_OBJECT,o.onlyUsingWithGoogleGeocoder||ya("google-tiles-with-google-geocoder","Only the Google geocoder can be used with Google Photorealistic 3D Tiles.  Set the `geocode` property of Viewer constructor options.  You can set additionalOptions.onlyUsingWithGoogleGeocoder to hide this warning once you have configured the geocoder.");let m=o.key??f$.defaultApiKey;if(!N(m))return VQi(f);let x,v=f$.getDefaultCredit();N(v)&&(x=[v]);let y=new Wr({url:`${f$.mapTilesApiEndpoint}3dtiles/root.json`,queryParameters:{key:m},credits:x});return t0.fromUrl(y,f)}var Ait={};async function VQi(o){let f=Ait[2275207];N(f)||(f=FF.fromAssetId(2275207),Ait[2275207]=f);let m=await f;return t0.fromUrl(m,o)}var A2t=kQi;async function zQi(o){let f=await t0.fromIonAssetId(96188,o);o=o??pi.EMPTY_OBJECT;let m=o.style;if(!N(m)){let x=(o.defaultColor??ze.WHITE).toCssColorString();m=new zE({color:`Boolean(\${feature['cesium#color']}) ? color(\${feature['cesium#color']}) : ${x}`})}return f.style=m,f}var S2t=zQi;function UQi(o){o=o??pi.EMPTY_OBJECT;let f=[],m=o.geometry;(!N(m.attributes)||!N(m.primitiveType))&&(m=m.constructor.createGeometry(m));let x=m.attributes,v=Ee.clone(o.modelMatrix??Ee.IDENTITY),y=o.length??1e4;if(N(x.normal)&&f.push(new eo({geometry:Pc.createLineSegmentsForVectors(m,"normal",y),attributes:{color:new Oo(1,0,0,1)},modelMatrix:v})),N(x.tangent)&&f.push(new eo({geometry:Pc.createLineSegmentsForVectors(m,"tangent",y),attributes:{color:new Oo(0,1,0,1)},modelMatrix:v})),N(x.bitangent)&&f.push(new eo({geometry:Pc.createLineSegmentsForVectors(m,"bitangent",y),attributes:{color:new Oo(0,0,1,1)},modelMatrix:v})),f.length>0)return new pa({asynchronous:!1,geometryInstances:f,appearance:new Da({flat:!0,translucent:!1})})}var P2t=UQi;function oee(o){o=o??pi.EMPTY_OBJECT;let f=o.attributeName,m=o.perInstanceAttribute;N(m)||(m=!1);let x=o.glslDatatype??"vec3",v=`v_${f}`,y;if(f==="normal"||f==="tangent"||f==="bitangent")y=`vec4 getColor() { return vec4((${v} + vec3(1.0)) * 0.5, 1.0); }
`,VJi=new V(1,1,1);function oke(o){o=o??VJi,this._dimensions=V.clone(o)}Object.defineProperties(oke.prototype,{dimensions:{get:function(){return this._dimensions},set:function(o){V.clone(o,this._dimensions)}}});var zJi=new V;oke.prototype.emit=function(o){let f=this._dimensions,m=V.multiplyByScalar(f,.5,zJi),x=Ce.randomBetween(-m.x,m.x),v=Ce.randomBetween(-m.y,m.y),y=Ce.randomBetween(-m.z,m.z);o.position=V.fromElements(x,v,y,o.position),o.velocity=V.normalize(o.position,o.velocity)};var Yfe=oke;function _D(){this.featurePropertiesDirty=!1}Object.defineProperties(_D.prototype,{featuresLength:{get:function(){At.throwInstantiationError()}},pointsLength:{get:function(){At.throwInstantiationError()}},trianglesLength:{get:function(){At.throwInstantiationError()}},geometryByteLength:{get:function(){At.throwInstantiationError()}},texturesByteLength:{get:function(){At.throwInstantiationError()}},batchTableByteLength:{get:function(){At.throwInstantiationError()}},innerContents:{get:function(){At.throwInstantiationError()}},ready:{get:function(){At.throwInstantiationError()}},tileset:{get:function(){At.throwInstantiationError()}},tile:{get:function(){At.throwInstantiationError()}},url:{get:function(){At.throwInstantiationError()}},batchTable:{get:function(){At.throwInstantiationError()}},metadata:{get:function(){At.throwInstantiationError()},set:function(o){At.throwInstantiationError()}},group:{get:function(){At.throwInstantiationError()},set:function(o){At.throwInstantiationError()}}});_D.prototype.hasProperty=function(o,f){At.throwInstantiationError()};_D.prototype.getFeature=function(o){At.throwInstantiationError()};_D.prototype.applyDebugSettings=function(o,f){At.throwInstantiationError()};_D.prototype.applyStyle=function(o){At.throwInstantiationError()};_D.prototype.update=function(o,f){At.throwInstantiationError()};_D.prototype.pick=function(o,f,m){At.throwInstantiationError()};_D.prototype.isDestroyed=function(){At.throwInstantiationError()};_D.prototype.destroy=function(){At.throwInstantiationError()};var f2t=_D;function nee(o){o=o??pi.EMPTY_OBJECT,this._maximumSubtreeCount=o.maximumSubtreeCount??0,this._subtreeRequestCounter=0,this._queue=new pfe({comparator:nee.comparator})}nee.prototype.addSubtree=function(o){let f=new UJi(o,this._subtreeRequestCounter);this._subtreeRequestCounter++,this._queue.insert(f);let m=o.implicitCoordinates;if(m.level>0){let x=m.getParentSubtreeCoordinates(),v=this.find(x)}if(this._maximumSubtreeCount>0)for(;this._queue.length>this._maximumSubtreeCount&&this._queue.getMinimum()!==f;)this._queue.removeMinimum()};nee.prototype.find=function(o){let f=this._queue,m=f.internalArray,x=f.length;for(let v=0;v<x;v++){let y=m[v],C=y.subtree.implicitCoordinates;if(o.isEqual(C))return y.subtree}};nee.comparator=function(o,f){let m=o.subtree.implicitCoordinates,x=f.subtree.implicitCoordinates;return m.isAncestor(x)?1:x.isAncestor(m)?-1:o.stamp-f.stamp};function UJi(o,f){this.subtree=o,this.stamp=f}var ake=nee;function RJ(o){o=o??pi.EMPTY_OBJECT;let{className:f,names:m,types:x,componentTypes:v,shape:y,dimensions:C,paddingBefore:w=V.ZERO.clone(),paddingAfter:T=V.ZERO.clone(),globalTransform:E=Ee.IDENTITY.clone(),shapeTransform:A=Ee.IDENTITY.clone(),minBounds:S,maxBounds:M,minimumValues:I,maximumValues:P,maximumTileCount:D}=o;this._shapeTransform=A,this._globalTransform=E,this._shape=y,this._minBounds=S,this._maxBounds=M,this._dimensions=C,this._paddingBefore=w,this._paddingAfter=T,this._className=f,this._names=m,this._types=x,this._componentTypes=v,this._metadataOrder=y===Hb.ELLIPSOID?Iz.Z_UP:Iz.Y_UP,this._minimumValues=I,this._maximumValues=P,this._maximumTileCount=D,this._availableLevels=void 0,this._implicitTileset=void 0,this._subtreeCache=new ake}Object.defineProperties(RJ.prototype,{globalTransform:{get:function(){return this._globalTransform}},shapeTransform:{get:function(){return this._shapeTransform}},shape:{get:function(){return this._shape}},minBounds:{get:function(){return this._minBounds}},maxBounds:{get:function(){return this._maxBounds}},dimensions:{get:function(){return this._dimensions}},paddingBefore:{get:function(){return this._paddingBefore}},paddingAfter:{get:function(){return this._paddingAfter}},className:{get:function(){return this._className}},names:{get:function(){return this._names}},types:{get:function(){return this._types}},componentTypes:{get:function(){return this._componentTypes}},metadataOrder:{get:function(){return this._metadataOrder}},minimumValues:{get:function(){return this._minimumValues}},maximumValues:{get:function(){return this._maximumValues}},maximumTileCount:{get:function(){return this._maximumTileCount}},availableLevels:{get:function(){return this._availableLevels}}});RJ.fromUrl=async function(o){let f=Wr.createIfNeeded(o),m=await f.fetchJson();GJi(m);let x=$Ji(m,f);await x.load();let{root:v}=m,y=kd(m,"3DTILES_metadata")?m.extensions["3DTILES_metadata"]:m,C=new Ide({metadataJson:y,schema:x.schema}),w=v.content.extensions["3DTILES_content_voxels"],T=w.class,E=JJi(C,T);Object.assign(E,WJi(v)),N(v.transform)?E.globalTransform=Ee.unpack(v.transform):E.globalTransform=Ee.clone(Ee.IDENTITY),E.dimensions=V.unpack(w.dimensions),E.maximumTileCount=HJi(C),N(w.padding)&&(E.paddingBefore=V.unpack(w.padding.before),E.paddingAfter=V.unpack(w.padding.after));let A=new RJ(E),S=new Rde(f,v,x.schema);return A._implicitTileset=S,A._availableLevels=S.availableLevels,Id.unload(x),A};function HJi(o){if(N(o.tileset))return o.tileset.getPropertyBySemantic(bde.TILESET_TILE_COUNT)}function GJi(o){let f=o.root;if(!N(f.content))throw new Xi("Root must have content");if(!kd(f.content,"3DTILES_content_voxels"))throw new Xi("Root tile content must have 3DTILES_content_voxels extension");if(!kd(f,"3DTILES_implicit_tiling")&&!N(f.implicitTiling))throw new Xi("Root tile must have implicit tiling");if(!N(o.schema)&&!N(o.schemaUri)&&!kd(o,"3DTILES_metadata"))throw new Xi("Tileset must have a metadata schema")}function WJi(o){let f=o.boundingVolume;if(N(f.box))return XJi(f.box);if(N(f.region))return jJi(f.region);if(kd(f,"3DTILES_bounding_volume_cylinder"))return KJi(f.extensions["3DTILES_bounding_volume_cylinder"]);throw new Xi("Only box, region and 3DTILES_bounding_volume_cylinder are supported in Cesium3DTilesVoxelProvider")}function jJi(o){let f=o[0],m=o[1],x=o[2],v=o[3],y=o[4],C=o[5],w=Ee.fromScale(Ei.WGS84.radii),T=new V(f,m,y),E=new V(x,v,C);return{shape:Hb.ELLIPSOID,minBounds:T,maxBounds:E,shapeTransform:w}}var qJi=new V,YJi=new Yt;function XJi(o){let f=Ju.unpack(o),m=Yt.getScale(f.halfAxes,qJi),x=Yt.getRotation(f.halfAxes,YJi);return{shape:Hb.BOX,minBounds:V.negate(m,new V),maxBounds:V.clone(m),shapeTransform:Ee.fromRotationTranslation(x,f.center)}}function KJi(o){let{minRadius:f,maxRadius:m,height:x,minAngle:v=-Ce.PI,maxAngle:y=Ce.PI,translation:C=[0,0,0],rotation:w=[0,0,0,1]}=o,T=-.5*x+C[2],E=.5*x+C[2],A=Ee.fromTranslationQuaternionRotationScale(V.unpack(C),Er.unpack(w),V.ONE);return{shape:Hb.CYLINDER,minBounds:V.fromElements(f,v,T),maxBounds:V.fromElements(m,y,E),shapeTransform:A}}function $Ji(o,f){let{schemaUri:m,schema:x}=o;return N(m)?Id.getSchemaLoader({resource:f.getDerivedResource({url:m})}):Id.getSchemaLoader({schema:x})}function JJi(o,f){let{schema:m,statistics:x}=o,v=x?.classes[f],y=m.classes[f].properties,C=Object.entries(y).map(([I,P])=>{let{type:D,componentType:R}=P,L=v?.properties[I].min,O=v?.properties[I].max,F=Mo.getComponentCount(D),B=wit(L,F),H=wit(O,F);return{id:I,type:D,componentType:R,minValue:B,maxValue:H}}),w=C.map(I=>I.id),T=C.map(I=>I.type),E=C.map(I=>I.componentType),A=C.map(I=>I.minValue),S=C.map(I=>I.maxValue),M=A.some(N);return{className:f,names:w,types:T,componentTypes:E,minimumValues:M?A:void 0,maximumValues:M?S:void 0}}function wit(o,f){if(!N(o))return;let m=Array.isArray(o)?o:[o];return Array.from({length:f},(x,v)=>m[v])}async function QJi(o,f){let m=o._implicitTileset,x=o._subtreeCache,v=x.find(f);if(N(v))return v;let y=m.subtreeUriTemplate.getDerivedResource({templateValues:f.getTemplateValues()}),C=m.baseResource.getDerivedResource({url:y.url}),w=await C.fetchArrayBuffer();if(v=x.find(f),N(v))return v;let T=xZ(w);return v=await Cde.fromSubtreeJson(C,T.jsonPayload,T.binaryPayload,m,f),x.addSubtree(v),v}RJ.prototype.requestData=async function(o){o=o??pi.EMPTY_OBJECT;let{tileLevel:f=0,tileX:m=0,tileY:x=0,tileZ:v=0,keyframe:y=0}=o;if(y!==0)return Promise.reject("3D Tiles currently doesn't support time-dynamic data.");let C=this._implicitTileset,w=new Lde({subdivisionScheme:C.subdivisionScheme,subtreeLevels:C.subtreeLevels,level:f,x:m,y:x,z:v}),T=w.isSubtreeRoot()&&w.level>0,E=T?w.getParentSubtreeCoordinates():w.getSubtreeCoordinates(),A=await QJi(this,E);if(!(T?A.childSubtreeIsAvailableAtCoordinates:A.tileIsAvailableAtCoordinates).call(A,w))return Promise.reject(`Tile is not available at level ${f}, x ${m}, y ${x}, z ${v}.`);let{contentUriTemplates:S,baseResource:M}=C,I=S[0].getDerivedResource({templateValues:w.getTemplateValues()}),P=M.getDerivedResource({url:I.url});return ffe.fromGltf(P)};var p2t=RJ;function ske(o){o=o??1,this._radius=o??1}Object.defineProperties(ske.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});ske.prototype.emit=function(o){let f=Ce.randomBetween(0,Ce.TWO_PI),m=Ce.randomBetween(0,this._radius),x=m*Math.cos(f),v=m*Math.sin(f),y=0;o.position=V.fromElements(x,v,y,o.position),o.velocity=V.clone(V.UNIT_Z,o.velocity)};var lke=ske,SAe={CUMULUS:0};SAe.validate=function(o){return o===SAe.CUMULUS};var Oue=Object.freeze(SAe);function SP(o,f){if(o=o??pi.EMPTY_OBJECT,this._show=o.show??!0,this._position=V.clone(o.position??V.ZERO),!N(o.scale)&&N(o.maximumSize))this._maximumSize=V.clone(o.maximumSize),this._scale=new at(this._maximumSize.x,this._maximumSize.y);else{this._scale=at.clone(o.scale??new at(20,12));let m=new V(this._scale.x,this._scale.y,Math.min(this._scale.x,this._scale.y)/1.5);this._maximumSize=V.clone(o.maximumSize??m)}this._slice=o.slice??-1,this._color=ze.clone(o.color??ze.WHITE),this._brightness=o.brightness??1,this._cloudCollection=f,this._index=-1}var ZJi=SP.SHOW_INDEX=0,eQi=SP.POSITION_INDEX=1,tQi=SP.SCALE_INDEX=2,iQi=SP.MAXIMUM_SIZE_INDEX=3,rQi=SP.SLICE_INDEX=4,nQi=SP.BRIGHTNESS_INDEX=5,oQi=SP.COLOR_INDEX=6;SP.NUMBER_OF_PROPERTIES=7;function nV(o,f){let m=o._cloudCollection;N(m)&&(m._updateCloud(o,f),o._dirty=!0)}Object.defineProperties(SP.prototype,{show:{get:function(){return this._show},set:function(o){this._show!==o&&(this._show=o,nV(this,ZJi))}},position:{get:function(){return this._position},set:function(o){let f=this._position;V.equals(f,o)||(V.clone(o,f),nV(this,eQi))}},scale:{get:function(){return this._scale},set:function(o){let f=this._scale;at.equals(f,o)||(at.clone(o,f),nV(this,tQi))}},maximumSize:{get:function(){return this._maximumSize},set:function(o){let f=this._maximumSize;V.equals(f,o)||(V.clone(o,f),nV(this,iQi))}},color:{get:function(){return this._color},set:function(o){let f=this._color;ze.equals(f,o)||(ze.clone(o,f),nV(this,oQi))}},slice:{get:function(){return this._slice},set:function(o){this._slice!==o&&(this._slice=o,nV(this,rQi))}},brightness:{get:function(){return this._brightness},set:function(o){this._brightness!==o&&(this._brightness=o,nV(this,nQi))}}});SP.prototype._destroy=function(){this._cloudCollection=void 0};var PP=SP,uw,kae=new V,aQi={positionHighAndScaleX:0,positionLowAndScaleY:1,packedAttribute0:2,packedAttribute1:3,color:4},sQi={direction:0,positionHighAndScaleX:1,positionLowAndScaleY:2,packedAttribute0:3,packedAttribute1:4,color:5},lQi=PP.SHOW_INDEX,uQi=PP.POSITION_INDEX,cQi=PP.SCALE_INDEX,hQi=PP.MAXIMUM_SIZE_INDEX,dQi=PP.SLICE_INDEX,fQi=PP.BRIGHTNESS_INDEX,pQi=PP.NUMBER_OF_PROPERTIES,mQi=PP.COLOR_INDEX;function IP(o){o=o??pi.EMPTY_OBJECT,this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(pQi),this._noiseTexture=void 0,this._textureSliceWidth=128,this._noiseTextureRows=4,this.noiseDetail=o.noiseDetail??16,this.noiseOffset=V.clone(o.noiseOffset??V.ZERO),this._loading=!1,this._ready=!1;let f=this;this._uniforms={u_noiseTexture:function(){return f._noiseTexture},u_noiseTextureDimensions:m2t(f),u_noiseDetail:function(){return f.noiseDetail}},this._vaNoise=void 0,this._spNoise=void 0,this._spCreated=!1,this._sp=void 0,this._rs=void 0,this.show=o.show??!0,this._colorCommands=[],this.debugBillboards=o.debugBillboards??!1,this._compiledDebugBillboards=!1,this.debugEllipsoids=o.debugEllipsoids??!1,this._compiledDebugEllipsoids=!1}function m2t(o){return function(){return kae.x=o._textureSliceWidth,kae.y=o._noiseTextureRows,kae.z=1/o._noiseTextureRows,kae}}Object.defineProperties(IP.prototype,{length:{get:function(){return uke(this),this._clouds.length}}});function x2t(o){let f=o.length;for(let m=0;m<f;++m)o[m]&&o[m]._destroy()}IP.prototype.add=function(o){o=o??pi.EMPTY_OBJECT;let f=o.cloudType??Oue.CUMULUS,m;return f===Oue.CUMULUS&&(m=new PP(o,this),m._index=this._clouds.length,this._clouds.push(m),this._createVertexArray=!0),m};IP.prototype.remove=function(o){return this.contains(o)?(this._clouds[o._index]=void 0,this._cloudsRemoved=!0,this._createVertexArray=!0,o._destroy(),!0):!1};IP.prototype.removeAll=function(){x2t(this._clouds),this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!0};function uke(o){if(o._cloudsRemoved){o._cloudsRemoved=!1;let f=[],m=o._clouds,x=m.length;for(let v=0,y=0;v<x;++v){let C=m[v];N(C)&&(m._index=y++,f.push(C))}o._clouds=f}}IP.prototype._updateCloud=function(o,f){o._dirty||(this._cloudsToUpdate[this._cloudsToUpdateIndex++]=o),++this._propertiesChanged[f]};IP.prototype.contains=function(o){return N(o)&&o._cloudCollection===this};IP.prototype.get=function(o){return uke(this),this._clouds[o]};var xQi=new Float32Array([-1,-1,1,-1,1,1,-1,1]),gQi=new Uint16Array([0,1,2,0,2,3]);function _Qi(o){let f=Do.createVertexBuffer({context:o,typedArray:xQi,usage:xn.STATIC_DRAW}),m=Do.createIndexBuffer({context:o,typedArray:gQi,usage:xn.STATIC_DRAW,indexDatatype:Jn.UNSIGNED_SHORT}),x=[{index:0,vertexBuffer:f,componentsPerAttribute:2,componentDatatype:ti.FLOAT}];return new $u({context:o,attributes:x,indexBuffer:m})}var cke;function vQi(o){let f=o.cache.cloudCollection_indexBufferBatched;if(N(f))return f;let m=16384*6-6,x=new Uint16Array(m);for(let v=0,y=0;v<m;v+=6,y+=4)x[v]=y,x[v+1]=y+1,x[v+2]=y+2,x[v+3]=y,x[v+4]=y+2,x[v+5]=y+3;return f=Do.createIndexBuffer({context:o,typedArray:x,usage:xn.STATIC_DRAW,indexDatatype:Jn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferBatched=f,f}function yQi(o){let f=o.cache.cloudCollection_indexBufferInstanced;return N(f)||(f=Do.createIndexBuffer({context:o,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:xn.STATIC_DRAW,indexDatatype:Jn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferInstanced=f),f}function CQi(o){let f=o.cache.cloudCollection_vertexBufferInstanced;return N(f)||(f=Do.createVertexBuffer({context:o,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:xn.STATIC_DRAW}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_vertexBufferInstanced=f),f}function bQi(o,f,m){let x=[{index:uw.positionHighAndScaleX,componentsPerAttribute:4,componentDatatype:ti.FLOAT,usage:xn.STATIC_DRAW},{index:uw.positionLowAndScaleY,componentsPerAttribute:4,componentDatatype:ti.FLOAT,usage:xn.STATIC_DRAW},{index:uw.packedAttribute0,componentsPerAttribute:4,componentDatatype:ti.FLOAT,usage:xn.STATIC_DRAW},{index:uw.packedAttribute1,componentsPerAttribute:4,componentDatatype:ti.FLOAT,usage:xn.STATIC_DRAW},{index:uw.color,componentsPerAttribute:4,componentDatatype:ti.UNSIGNED_BYTE,normalize:!0,usage:xn.STATIC_DRAW}];m&&x.push({index:uw.direction,componentsPerAttribute:2,componentDatatype:ti.FLOAT,vertexBuffer:CQi(o)});let v=m?f:4*f;return new sQ(o,x,v,m)}var Swe=new Ic;function g2t(o,f,m,x){let v,y=m[uw.positionHighAndScaleX],C=m[uw.positionLowAndScaleY],w=x.position;Ic.fromCartesian(w,Swe);let T=x.scale,E=Swe.high,A=Swe.low;o._instanced?(v=x._index,y(v,E.x,E.y,E.z,T.x),C(v,A.x,A.y,A.z,T.y)):(v=x._index*4,y(v+0,E.x,E.y,E.z,T.x),y(v+1,E.x,E.y,E.z,T.x),y(v+2,E.x,E.y,E.z,T.x),y(v+3,E.x,E.y,E.z,T.x),C(v+0,A.x,A.y,A.z,T.y),C(v+1,A.x,A.y,A.z,T.y),C(v+2,A.x,A.y,A.z,T.y),C(v+3,A.x,A.y,A.z,T.y))}function _2t(o,f,m,x){let v,y=m[uw.packedAttribute0],C=x.show,w=x.brightness;o._instanced?(v=x._index,y(v,C,w,0,0)):(v=x._index*4,y(v+0,C,w,0,0),y(v+1,C,w,1,0),y(v+2,C,w,1,1),y(v+3,C,w,0,1))}function v2t(o,f,m,x){let v,y=m[uw.packedAttribute1],C=x.maximumSize,w=x.slice;o._instanced?(v=x._index,y(v,C.x,C.y,C.z,w)):(v=x._index*4,y(v+0,C.x,C.y,C.z,w),y(v+1,C.x,C.y,C.z,w),y(v+2,C.x,C.y,C.z,w),y(v+3,C.x,C.y,C.z,w))}function y2t(o,f,m,x){let v,y=m[uw.color],C=x.color,w=ze.floatToByte(C.red),T=ze.floatToByte(C.green),E=ze.floatToByte(C.blue),A=ze.floatToByte(C.alpha);o._instanced?(v=x._index,y(v,w,T,E,A)):(v=x._index*4,y(v+0,w,T,E,A),y(v+1,w,T,E,A),y(v+2,w,T,E,A),y(v+3,w,T,E,A))}function wQi(o,f,m,x){g2t(o,f,m,x),_2t(o,f,m,x),v2t(o,f,m,x),y2t(o,f,m,x)}function TQi(o,f,m,x){let v=o,y=v._textureSliceWidth,C=v._noiseTextureRows,w=f.context;v._vaNoise=_Qi(w),v._spNoise=Us.fromCache({context:w,vertexShaderSource:m,fragmentShaderSource:x,attributeLocations:{position:0}});let T=v.noiseDetail,E=v.noiseOffset;v._noiseTexture=new Wn({context:w,width:y*y/C,height:y*C,pixelDatatype:bn.UNSIGNED_BYTE,pixelFormat:an.RGBA,sampler:new aa({wrapS:io.REPEAT,wrapT:io.REPEAT,minificationFilter:na.NEAREST,magnificationFilter:pl.NEAREST})});let A=new p3({vertexArray:v._vaNoise,shaderProgram:v._spNoise,outputTexture:v._noiseTexture,uniformMap:{u_noiseTextureDimensions:m2t(v),u_noiseDetail:function(){return T},u_noiseOffset:function(){return E}},persists:!1,owner:o,postExecute:function(S){v._ready=!0,v._loading=!1}});f.commandList.push(A),v._loading=!0}function EQi(o,f){let m=o,x=f.context;m._createVertexArray=!1,m._vaf=m._vaf&&m._vaf.destroy();let v=o._clouds,y=v.length;if(y>0){m._vaf=bQi(x,y,m._instanced);let C=m._vaf.writers,w;for(w=0;w<y;++w){let T=v[w];wQi(o,f,C,T)}m._vaf.commit(cke(x))}}var AQi=[];function SQi(o,f){let m=f.context,x=o,v=x._clouds.length,y=x._cloudsToUpdate,C=x._cloudsToUpdateIndex,w=x._propertiesChanged,T=AQi;T.length=0,(w[uQi]||w[cQi])&&T.push(g2t),(w[lQi]||w[fQi])&&T.push(_2t),(w[hQi]||w[dQi])&&T.push(v2t),w[mQi]&&T.push(y2t);let E=T.length,A=x._vaf.writers,S,M,I;if(C/v>.1){for(S=0;S<C;++S)for(M=y[S],M._dirty=!1,I=0;I<E;++I)T[I](o,f,A,M);x._vaf.commit(cke(m))}else{for(S=0;S<C;++S){for(M=y[S],M._dirty=!1,I=0;I<E;++I)T[I](o,f,A,M);x._instanced?x._vaf.subCommit(M._index,1):x._vaf.subCommit(M._index*4,4)}x._vaf.endSubCommits()}x._cloudsToUpdateIndex=0}function PQi(o,f,m,x){let v=f.context,y=o,C=new $r({defines:[],sources:[m]});y._instanced&&C.defines.push("INSTANCED");let w=new $r({defines:[],sources:[x]});y.debugBillboards&&w.defines.push("DEBUG_BILLBOARDS"),y.debugEllipsoids&&w.defines.push("DEBUG_ELLIPSOIDS"),y._sp=Us.replaceCache({context:v,shaderProgram:y._sp,vertexShaderSource:C,fragmentShaderSource:w,attributeLocations:uw}),y._rs=wn.fromCache({depthTest:{enabled:!0,func:Pi.LESS},depthMask:!1,blending:Ou.ALPHA_BLEND}),y._spCreated=!0,y._compiledDebugBillboards=y.debugBillboards,y._compiledDebugEllipsoids=y.debugEllipsoids}function IQi(o,f){let m=o,x=f.passes,v=m._uniforms,y=f.commandList;if(x.render){let C=m._colorCommands,w=m._vaf.va,T=w.length;C.length=T;for(let E=0;E<T;E++){let A=C[E];N(A)||(A=C[E]=new Vn),A.pass=Sr.TRANSLUCENT,A.owner=o,A.uniformMap=v,A.count=w[E].indicesCount,A.vertexArray=w[E].va,A.shaderProgram=m._sp,A.renderState=m._rs,m._instanced&&(A.count=6,A.instanceCount=m._clouds.length),y.push(A)}}}IP.prototype.update=function(o){if(uke(this),!this.show)return;let f=this.debugBillboards||this.debugEllipsoids;this._ready=f?!0:N(this._noiseTexture),!this._ready&&!this._loading&&!f&&TQi(this,o,rke,ike),this._instanced=o.context.instancedArrays,uw=this._instanced?sQi:aQi,cke=this._instanced?yQi:vQi;let m=this._clouds.length,x=this._cloudsToUpdate,v=this._cloudsToUpdateIndex;this._createVertexArray?EQi(this,o):v>0&&SQi(this,o),v>m*1.5&&(x.length=m),!(!N(this._vaf)||!N(this._vaf.va)||!this._ready&!f)&&((!this._spCreated||this.debugBillboards!==this._compiledDebugBillboards||this.debugEllipsoids!==this._compiledDebugEllipsoids)&&PQi(this,o,tke,eke),IQi(this,o))};IP.prototype.isDestroyed=function(){return!1};IP.prototype.destroy=function(){return this._noiseTexture=this._noiseTexture&&this._noiseTexture.destroy(),this._sp=this._sp&&this._sp.destroy(),this._vaf=this._vaf&&this._vaf.destroy(),x2t(this._clouds),Ir(this)};var C2t=IP,MQi=Ce.toRadians(30);function hke(o){this._angle=o??MQi}Object.defineProperties(hke.prototype,{angle:{get:function(){return this._angle},set:function(o){this._angle=o}}});hke.prototype.emit=function(o){let f=Math.tan(this._angle),m=Ce.randomBetween(0,Ce.TWO_PI),x=Ce.randomBetween(0,f),v=x*Math.cos(m),y=x*Math.sin(m),C=1;o.velocity=V.fromElements(v,y,C,o.velocity),V.normalize(o.velocity,o.velocity),o.position=V.clone(V.ZERO,o.position)};var P7=hke,DQi=new ze,RQi=new ze,LQi=new ze,OQi=new ze,Tit=new Xt,QX=new Uint8Array(4);function Eit(o,f,m,x){let v=f.height===m.height?0:(o-f.height)/(m.height-f.height);return ze.lerp(f.color,m.color,v,x)}function Use(o,f){return{height:o,color:ze.clone(f)}}function b2t(o){return o=o.filter(function(f,m,x){let v=m>0,y=m<x.length-1,C=v?f.height===x[m-1].height:!0,w=y?f.height===x[m+1].height:!0;return!C||!w}),o=o.filter(function(f,m,x){let v=m>0,y=m<x.length-1,C=v?ze.equals(f.color,x[m-1].color):!1,w=y?ze.equals(f.color,x[m+1].color):!1;return!C||!w}),o=o.filter(function(f,m,x){let v=m>0,y=v?ze.equals(f.color,x[m-1].color):!1,C=v?f.height===x[m-1].height:!0;return!y||!C}),o}function NQi(o){let f,m,x=[],v=o.length;for(f=0;f<v;f++){let y=o[f],C=y.entries,w=C.length,T=[];for(m=0;m<w;m++){let I=C[m],P=Ce.clamp(I.height,Vb._minimumHeight,Vb._maximumHeight),D=ze.clone(I.color,DQi);D.red*=D.alpha,D.green*=D.alpha,D.blue*=D.alpha,T.push(Use(P,D))}let E=!0,A=!0;for(m=0;m<w-1;m++){let I=T[m+0],P=T[m+1];E=E&&I.height<=P.height,A=A&&I.height>=P.height}A?T=T.reverse():E||l7(T,function(I,P){return Ce.sign(I.height-P.height)});let S=y.extendDownwards??!1,M=y.extendUpwards??!1;T.length===1&&!S&&!M&&(S=!0,M=!0),S&&T.splice(0,0,Use(Vb._minimumHeight,T[0].color)),M&&T.splice(T.length,0,Use(Vb._maximumHeight,T[T.length-1].color)),T=b2t(T),x.push(T)}return x}function FQi(o){let f=NQi(o),m=[],x=[],v;function y(T,E){m.push(Use(T,E))}function C(T,E,A){let S=ze.multiplyByScalar(A,1-E.alpha,OQi);S=ze.add(S,E,S),y(T,S)}let w=f.length;for(v=0;v<w;v++){let T=f[v],E=0,A=0;x=m,m=[];let S=T.length,M=x.length;for(;E<S||A<M;){let I=E<S?T[E]:void 0,P=E>0?T[E-1]:void 0,D=E<S-1?T[E+1]:void 0,R=A<M?x[A]:void 0,L=A>0?x[A-1]:void 0,O=A<M-1?x[A+1]:void 0;if(N(I)&&N(R)&&I.height===R.height){let F=N(O)&&R.height===O.height,B=!N(L),H=!N(O),G=N(D)&&I.height===D.height,W=!N(P),Y=!N(D);F?G?(C(I.height,I.color,R.color),C(I.height,D.color,O.color)):W?(y(I.height,R.color),C(I.height,I.color,O.color)):Y?(C(I.height,I.color,R.color),y(I.height,O.color)):(C(I.height,I.color,R.color),C(I.height,I.color,O.color)):B?G?(y(I.height,I.color),C(I.height,D.color,R.color)):Y?(y(I.height,I.color),y(I.height,R.color)):(W||y(I.height,I.color),C(I.height,I.color,R.color)):H?G?(C(I.height,I.color,R.color),y(I.height,D.color)):W?(y(I.height,R.color),y(I.height,I.color)):Y?C(I.height,I.color,R.color):(C(I.height,I.color,R.color),y(I.height,I.color)):G?(C(I.height,I.color,R.color),C(I.height,D.color,R.color)):W?(y(I.height,R.color),C(I.height,I.color,R.color)):Y?(C(I.height,I.color,R.color),y(I.height,R.color)):C(I.height,I.color,R.color),E+=G?2:1,A+=F?2:1}else if(N(I)&&N(R)&&N(L)&&I.height<R.height){let F=Eit(I.height,L,R,LQi);N(P)?N(D)?C(I.height,I.color,F):(C(I.height,I.color,F),y(I.height,F)):(y(I.height,F),C(I.height,I.color,F)),E++}else if(N(R)&&N(I)&&N(P)&&R.height<I.height){let F=Eit(R.height,P,I,RQi);N(L)?N(O)?C(R.height,F,R.color):(C(R.height,F,R.color),y(R.height,F)):(y(R.height,F),C(R.height,F,R.color)),A++}else N(I)&&(!N(R)||I.height<R.height)?(N(R)&&!N(L)&&!N(D)?(y(I.height,I.color),y(I.height,Vb._emptyColor),y(R.height,Vb._emptyColor)):(!N(R)&&N(L)&&!N(P)&&(y(L.height,Vb._emptyColor),y(I.height,Vb._emptyColor)),y(I.height,I.color)),E++):N(R)&&(!N(I)||R.height<I.height)&&(y(R.height,R.color),A++)}}return b2t(m)}function Vb(o){let{scene:f,layers:m}=o??pi.EMPTY_OBJECT,{context:x}=f,v=FQi(m),y=v.length,C,w,T;if(Vb._useFloatTexture(x)){w=bn.FLOAT,T=x.webgl2?an.RED:an.LUMINANCE,C=new Float32Array(y);for(let M=0;M<y;M++)C[M]=v[M].height}else{w=bn.UNSIGNED_BYTE,T=an.RGBA,C=new Uint8Array(y*4);for(let M=0;M<y;M++)Xt.packFloat(v[M].height,Tit),Xt.pack(Tit,C,M*4)}let E=Wn.create({context:x,pixelFormat:T,pixelDatatype:w,source:{arrayBufferView:C,width:y,height:1},sampler:new aa({wrapS:io.CLAMP_TO_EDGE,wrapT:io.CLAMP_TO_EDGE,minificationFilter:na.NEAREST,magnificationFilter:pl.NEAREST})}),A=new Uint8Array(y*4);for(let M=0;M<y;M++)v[M].color.toBytes(QX),A[M*4+0]=QX[0],A[M*4+1]=QX[1],A[M*4+2]=QX[2],A[M*4+3]=QX[3];let S=Wn.create({context:x,pixelFormat:an.RGBA,pixelDatatype:bn.UNSIGNED_BYTE,source:{arrayBufferView:A,width:y,height:1},sampler:new aa({wrapS:io.CLAMP_TO_EDGE,wrapT:io.CLAMP_TO_EDGE,minificationFilter:na.LINEAR,magnificationFilter:pl.LINEAR})});return zo.fromType("ElevationBand",{heights:E,colors:S})}Vb._useFloatTexture=function(o){return o.floatingPointTexture};Vb._maximumHeight=5906376425472;Vb._minimumHeight=-5906376425472;Vb._emptyColor=new ze(0,0,0,0);var w2t=Vb;async function BQi(o,f){f=f??{},f.cacheBytes=f.cacheBytes??1536*1024*1024,f.maximumCacheOverflowBytes=f.maximumCacheOverflowBytes??1024*1024*1024,f.enableCollision=f.enableCollision??!0,o=o??pi.EMPTY_OBJECT,o.onlyUsingWithGoogleGeocoder||ya("google-tiles-with-google-geocoder","Only the Google geocoder can be used with Google Photorealistic 3D Tiles.  Set the `geocode` property of Viewer constructor options.  You can set additionalOptions.onlyUsingWithGoogleGeocoder to hide this warning once you have configured the geocoder.");let m=o.key??f$.defaultApiKey;if(!N(m))return kQi(f);let x,v=f$.getDefaultCredit();N(v)&&(x=[v]);let y=new Wr({url:`${f$.mapTilesApiEndpoint}3dtiles/root.json`,queryParameters:{key:m},credits:x});return t0.fromUrl(y,f)}var Ait={};async function kQi(o){let f=Ait[2275207];N(f)||(f=FF.fromAssetId(2275207),Ait[2275207]=f);let m=await f;return t0.fromUrl(m,o)}var T2t=BQi;async function VQi(o){let f=await t0.fromIonAssetId(96188,o);o=o??pi.EMPTY_OBJECT;let m=o.style;if(!N(m)){let x=(o.defaultColor??ze.WHITE).toCssColorString();m=new zE({color:`Boolean(\${feature['cesium#color']}) ? color(\${feature['cesium#color']}) : ${x}`})}return f.style=m,f}var E2t=VQi;function zQi(o){o=o??pi.EMPTY_OBJECT;let f=[],m=o.geometry;(!N(m.attributes)||!N(m.primitiveType))&&(m=m.constructor.createGeometry(m));let x=m.attributes,v=Ee.clone(o.modelMatrix??Ee.IDENTITY),y=o.length??1e4;if(N(x.normal)&&f.push(new eo({geometry:Pc.createLineSegmentsForVectors(m,"normal",y),attributes:{color:new Oo(1,0,0,1)},modelMatrix:v})),N(x.tangent)&&f.push(new eo({geometry:Pc.createLineSegmentsForVectors(m,"tangent",y),attributes:{color:new Oo(0,1,0,1)},modelMatrix:v})),N(x.bitangent)&&f.push(new eo({geometry:Pc.createLineSegmentsForVectors(m,"bitangent",y),attributes:{color:new Oo(0,0,1,1)},modelMatrix:v})),f.length>0)return new pa({asynchronous:!1,geometryInstances:f,appearance:new Da({flat:!0,translucent:!1})})}var A2t=zQi;function oee(o){o=o??pi.EMPTY_OBJECT;let f=o.attributeName,m=o.perInstanceAttribute;N(m)||(m=!1);let x=o.glslDatatype??"vec3",v=`v_${f}`,y;if(f==="normal"||f==="tangent"||f==="bitangent")y=`vec4 getColor() { return vec4((${v} + vec3(1.0)) * 0.5, 1.0); }
`;else switch(f==="st"&&(x="vec2"),x){case"float":y=`vec4 getColor() { return vec4(vec3(${v}), 1.0); }
`;break;case"vec2":y=`vec4 getColor() { return vec4(${v}, 0.0, 1.0); }
`;break;case"vec3":y=`vec4 getColor() { return vec4(${v}, 1.0); }
@@ -20591,7 +20591,7 @@
void main()
{
out_FragColor = getColor();
}`;this.material=void 0,this.translucent=o.translucent??!1,this._vertexShaderSource=o.vertexShaderSource??C,this._fragmentShaderSource=o.fragmentShaderSource??w,this._renderState=of.getDefaultRenderState(!1,!1,o.renderState),this._closed=o.closed??!1,this._attributeName=f,this._glslDatatype=x}Object.defineProperties(oee.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},attributeName:{get:function(){return this._attributeName}},glslDatatype:{get:function(){return this._glslDatatype}}});oee.prototype.getFragmentShaderSource=of.prototype.getFragmentShaderSource;oee.prototype.isTranslucent=of.prototype.isTranslucent;oee.prototype.getRenderState=of.prototype.getRenderState;var I2t=oee;function Kfe(o){o=o??pi.EMPTY_OBJECT,this.length=o.length??1e7,this._length=void 0,this.width=o.width??2,this._width=void 0,this.show=o.show??!0,this.modelMatrix=Ee.clone(o.modelMatrix??Ee.IDENTITY),this._modelMatrix=new Ee,this.id=o.id,this._id=void 0,this._primitive=void 0}Kfe.prototype.update=function(o){if(this.show){if(!N(this._primitive)||!Ee.equals(this._modelMatrix,this.modelMatrix)||this._length!==this.length||this._width!==this.width||this._id!==this.id){this._modelMatrix=Ee.clone(this.modelMatrix,this._modelMatrix),this._length=this.length,this._width=this.width,this._id=this.id,N(this._primitive)&&this._primitive.destroy(),this.modelMatrix[12]===0&&this.modelMatrix[13]===0&&this.modelMatrix[14]===0&&(this.modelMatrix[14]=.01);let f=new eo({geometry:new zy({positions:[V.ZERO,V.UNIT_X],width:this.width,vertexFormat:jm.VERTEX_FORMAT,colors:[ze.RED,ze.RED],arcType:xs.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),m=new eo({geometry:new zy({positions:[V.ZERO,V.UNIT_Y],width:this.width,vertexFormat:jm.VERTEX_FORMAT,colors:[ze.GREEN,ze.GREEN],arcType:xs.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),x=new eo({geometry:new zy({positions:[V.ZERO,V.UNIT_Z],width:this.width,vertexFormat:jm.VERTEX_FORMAT,colors:[ze.BLUE,ze.BLUE],arcType:xs.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this});this._primitive=new pa({geometryInstances:[f,m,x],appearance:new jm,asynchronous:!1})}this._primitive.update(o)}};Kfe.prototype.isDestroyed=function(){return!1};Kfe.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),Ir(this)};var dke=Kfe;function HQi(o){this.direction=V.clone(o.direction),this.color=ze.clone(o.color??ze.WHITE),this.intensity=o.intensity??1}var I7=HQi;function Ob(o){this._scene=o.scene,this.samplingWindow=o.samplingWindow??Ob.defaultSettings.samplingWindow,this.quietPeriod=o.quietPeriod??Ob.defaultSettings.quietPeriod,this.warmupPeriod=o.warmupPeriod??Ob.defaultSettings.warmupPeriod,this.minimumFrameRateDuringWarmup=o.minimumFrameRateDuringWarmup??Ob.defaultSettings.minimumFrameRateDuringWarmup,this.minimumFrameRateAfterWarmup=o.minimumFrameRateAfterWarmup??Ob.defaultSettings.minimumFrameRateAfterWarmup,this._lowFrameRate=new Or,this._nominalFrameRate=new Or,this._frameTimes=[],this._needsQuietPeriod=!0,this._quietPeriodEndTime=0,this._warmupPeriodEndTime=0,this._frameRateIsLow=!1,this._lastFramesPerSecond=void 0,this._pauseCount=0;let f=this;this._preUpdateRemoveListener=this._scene.preUpdate.addEventListener(function(v,y){GQi(f,y)}),this._hiddenPropertyName=document.hidden!==void 0?"hidden":document.mozHidden!==void 0?"mozHidden":document.msHidden!==void 0?"msHidden":document.webkitHidden!==void 0?"webkitHidden":void 0;let m=document.hidden!==void 0?"visibilitychange":document.mozHidden!==void 0?"mozvisibilitychange":document.msHidden!==void 0?"msvisibilitychange":document.webkitHidden!==void 0?"webkitvisibilitychange":void 0;function x(){WQi(f)}this._visibilityChangeRemoveListener=void 0,N(m)&&(document.addEventListener(m,x,!1),this._visibilityChangeRemoveListener=function(){document.removeEventListener(m,x,!1)})}Ob.defaultSettings={samplingWindow:5,quietPeriod:2,warmupPeriod:5,minimumFrameRateDuringWarmup:4,minimumFrameRateAfterWarmup:8};Ob.fromScene=function(o){return(!N(o._frameRateMonitor)||o._frameRateMonitor.isDestroyed())&&(o._frameRateMonitor=new Ob({scene:o})),o._frameRateMonitor};Object.defineProperties(Ob.prototype,{scene:{get:function(){return this._scene}},lowFrameRate:{get:function(){return this._lowFrameRate}},nominalFrameRate:{get:function(){return this._nominalFrameRate}},lastFramesPerSecond:{get:function(){return this._lastFramesPerSecond}}});Ob.prototype.pause=function(){++this._pauseCount,this._pauseCount===1&&(this._frameTimes.length=0,this._lastFramesPerSecond=void 0)};Ob.prototype.unpause=function(){--this._pauseCount,this._pauseCount<=0&&(this._pauseCount=0,this._needsQuietPeriod=!0)};Ob.prototype.isDestroyed=function(){return!1};Ob.prototype.destroy=function(){return this._preUpdateRemoveListener(),N(this._visibilityChangeRemoveListener)&&this._visibilityChangeRemoveListener(),Ir(this)};function GQi(o,f){if(o._pauseCount>0)return;let m=Oh();if(o._needsQuietPeriod)o._needsQuietPeriod=!1,o._frameTimes.length=0,o._quietPeriodEndTime=m+o.quietPeriod/zc.SECONDS_PER_MILLISECOND,o._warmupPeriodEndTime=o._quietPeriodEndTime+(o.warmupPeriod+o.samplingWindow)/zc.SECONDS_PER_MILLISECOND;else if(m>=o._quietPeriodEndTime){o._frameTimes.push(m);let x=m-o.samplingWindow/zc.SECONDS_PER_MILLISECOND;if(o._frameTimes.length>=2&&o._frameTimes[0]<=x){for(;o._frameTimes.length>=2&&o._frameTimes[1]<x;)o._frameTimes.shift();let v=(m-o._frameTimes[0])/(o._frameTimes.length-1);o._lastFramesPerSecond=1e3/v;let y=1e3/(m>o._warmupPeriodEndTime?o.minimumFrameRateAfterWarmup:o.minimumFrameRateDuringWarmup);v>y?o._frameRateIsLow||(o._frameRateIsLow=!0,o._needsQuietPeriod=!0,o.lowFrameRate.raiseEvent(o.scene,o._lastFramesPerSecond)):o._frameRateIsLow&&(o._frameRateIsLow=!1,o._needsQuietPeriod=!0,o.nominalFrameRate.raiseEvent(o.scene,o._lastFramesPerSecond))}}}function WQi(o){document[o._hiddenPropertyName]?o.pause():o.unpause()}var fke=Ob,jQi=E0($nt(),1);function pke(){this._image=new Image}pke.prototype.isReady=function(){return!0};pke.prototype.shouldDiscardImage=function(o){return o===this._image};function Rz(o){o=o??pi.EMPTY_OBJECT,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0,this._tileDiscardPolicy=o.tileDiscardPolicy,this._tilingScheme=new Xh({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new Si(-Ce.PI,-Ce.PI,Ce.PI,Ce.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new rs(f)),this._credit=f,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=23,N(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new pke),this._errorEvent=new Or}Object.defineProperties(Rz.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){return this._maximumLevel}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){return this._tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!1}}});Rz.fromMetadata=function(o,f){if(!o.imageryPresent)throw new Xi(`The server ${o.url} doesn't have imagery`);let m=new Rz(f);return m._metadata=o,m};Rz.prototype.getTileCredits=function(o,f,m){let x=this._metadata,v=x.getTileInformation(o,f,m);if(N(v)){let y=x.providers[v.imageryProvider];if(N(y))return[y]}};Rz.prototype.requestImage=function(o,f,m,x){let v=this._tileDiscardPolicy._image,y=this._metadata,C=A7.tileXYToQuadKey(o,f,m),w=y.getTileInformation(o,f,m);if(!N(w)){if(y.isValid(C)){let E=new Jm({throttle:x.throttle,throttleByServer:x.throttleByServer,type:x.type,priorityFunction:x.priorityFunction});y.populateSubtree(o,f,m,E);return}return Promise.resolve(v)}if(!w.hasImagery())return Promise.resolve(v);let T=qQi(this,w,o,f,m,x).fetchArrayBuffer();if(N(T))return T.then(function(E){J4e(y.key,E);let A=new Uint8Array(E),S,M=y.protoImagery;if((!N(M)||!M)&&(S=YQi(A)),!N(S)&&(!N(M)||M)){let I=XQi(A);S=I.imageType,A=I.imageData}return!N(S)||!N(A)?v:FW({uint8Array:A,format:S,flipY:!0})})};Rz.prototype.pickFeatures=function(o,f,m,x,v){};function qQi(o,f,m,x,v,y){let C=A7.tileXYToQuadKey(m,x,v),w=f.imageryVersion;return w=N(w)&&w>0?w:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1-0${C}-i.${w.toString()}`,request:y})}function YQi(o){let f="JFIF";if(o[6]===f.charCodeAt(0)&&o[7]===f.charCodeAt(1)&&o[8]===f.charCodeAt(2)&&o[9]===f.charCodeAt(3))return"image/jpeg";let m="PNG";if(o[1]===m.charCodeAt(0)&&o[2]===m.charCodeAt(1)&&o[3]===m.charCodeAt(2))return"image/png"}function XQi(o){let f=jQi.Reader.create(o),m=f.len,x={};for(;f.pos<m;){let C=f.uint32(),w;switch(C>>>3){case 1:x.imageType=f.uint32();break;case 2:x.imageData=f.bytes();break;case 3:x.alphaType=f.uint32();break;case 4:x.imageAlpha=f.bytes();break;case 5:if(w=x.copyrightIds,N(w)||(w=x.copyrightIds=[]),(C&7)===2){let T=f.uint32()+f.pos;for(;f.pos<T;)w.push(f.uint32())}else w.push(f.uint32());break;default:f.skipType(C&7);break}}let v=x.imageType;if(N(v))switch(v){case 0:x.imageType="image/jpeg";break;case 4:x.imageType="image/png";break;default:throw new Xi("GoogleEarthEnterpriseImageryProvider: Unsupported image type.")}let y=x.alphaType;return N(y)&&y!==0&&(console.log("GoogleEarthEnterpriseImageryProvider: External alpha not supported."),delete x.alphaType,delete x.imageAlpha),x}var M2t=Rz,KQi=new ze(1,1,1,.4),$Qi=new ze(0,1,0,.05),JQi=new ze(0,.5,0,.2);function GU(o){o=o??pi.EMPTY_OBJECT,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0,this._tilingScheme=N(o.tilingScheme)?o.tilingScheme:new Xh({ellipsoid:o.ellipsoid}),this._cells=o.cells??8,this._color=o.color??KQi,this._glowColor=o.glowColor??$Qi,this._glowWidth=o.glowWidth??6,this._backgroundColor=o.backgroundColor??JQi,this._errorEvent=new Or,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._canvasSize=o.canvasSize??256,this._canvas=this._createGridCanvas()}Object.defineProperties(GU.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}});GU.prototype._drawGrid=function(o){let f=this._canvasSize;for(let m=0;m<=this._cells;++m){let x=1+m/this._cells*(f-1);o.moveTo(x,0),o.lineTo(x,f),o.moveTo(0,x),o.lineTo(f,x)}o.stroke()};GU.prototype._createGridCanvas=function(){let o=document.createElement("canvas");o.width=this._canvasSize,o.height=this._canvasSize;let f=0,m=this._canvasSize,x=o.getContext("2d"),v=this._backgroundColor.toCssColorString();x.fillStyle=v,x.fillRect(f,f,m,m);let y=this._glowColor.toCssColorString();x.strokeStyle=y,x.lineWidth=this._glowWidth,x.strokeRect(f,f,m,m),this._drawGrid(x),x.lineWidth=this._glowWidth*.5,x.strokeRect(f,f,m,m),this._drawGrid(x);let C=this._color.toCssColorString();return x.strokeStyle=C,x.lineWidth=2,x.strokeRect(f,f,m,m),x.lineWidth=1,this._drawGrid(x),o};GU.prototype.getTileCredits=function(o,f,m){};GU.prototype.requestImage=function(o,f,m,x){return Promise.resolve(this._canvas)};GU.prototype.pickFeatures=function(o,f,m,x,v){};var D2t=GU,aee={};aee.createTilesetFromIModelId=async function(o,f){let{exports:m}=await w_.getExports(o);if(m.length>0&&m.every(w=>w.status===w_.ExportStatus.Invalid))throw new Xi(`All exports for this iModel are Invalid: ${o}`);let x=m.find(w=>w.status===w_.ExportStatus.Complete);if(!N(x))return;let v=new URL(x._links.mesh.href);v.pathname=`${v.pathname}/tileset.json`;let y=v.toString(),C=new Wr({url:y});return t0.fromUrl(C,f)};aee.createTilesetForRealityDataId=async function(o,f,m,x){if(!N(m)||!N(x)){let y=await w_.getRealityDataMetadata(o,f);x=y.rootDocument,m=y.type}if(![w_.RealityDataType.Cesium3DTiles,w_.RealityDataType.PNTS,w_.RealityDataType.RealityMesh3DTiles,w_.RealityDataType.Terrain3DTiles].includes(m))throw new Xi(`Reality data type is not a mesh type: ${m}`);let v=await w_.getRealityDataURL(o,f,x);return t0.fromUrl(v,{maximumScreenSpaceError:4})};aee.createDataSourceForRealityDataId=async function(o,f,m,x){if(!N(m)||!N(x)){let y=await w_.getRealityDataMetadata(o,f);x=y.rootDocument,m=y.type}if(![w_.RealityDataType.KML,w_.RealityDataType.GeoJSON].includes(m))throw new Xi(`Reality data type is not a data source type: ${m}`);let v=await w_.getRealityDataURL(o,f,x);return m===w_.RealityDataType.GeoJSON?iz.load(v):DQ.load(v)};aee.loadGeospatialFeatures=async function(o,f,m){let x=m??1e4,v=`${w_.apiEndpoint}geospatial-features/itwins/${o}/ogc/collections/${f}/items`,y=new Wr({url:v,headers:{Authorization:w_._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{limit:x,client:"CesiumJS"}});return iz.load(y)};var R2t=aee;function L2t(){}Object.defineProperties(L2t.prototype,{color:{get:At.throwInstantiationError},intensity:{get:At.throwInstantiationError}});var O2t=L2t,QQi=/\/$/,N2t=new rs('&copy; <a href="https://www.mapbox.com/about/maps/">Mapbox</a> &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function M7(o){o=o??pi.EMPTY_OBJECT;let f=o.styleId,m=o.accessToken;this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0;let x=Wr.createIfNeeded(o.url??"https://api.mapbox.com/styles/v1/");this._styleId=f,this._accessToken=m;let v=o.tilesize??512;this._tilesize=v;let y=o.username??"mapbox";this._username=y;let C=N(o.scaleFactor)?"@2x":"",w=x.getUrlComponent();QQi.test(w)||(w+="/"),w+=`${this._username}/${f}/tiles/${this._tilesize}/{z}/{x}/{y}${C}`,x.url=w,x.setQueryParameters({access_token:m});let T;N(o.credit)?(T=o.credit,typeof T=="string"&&(T=new rs(T))):T=N2t,this._resource=x,this._imageryProvider=new e1({url:x,credit:T,ellipsoid:o.ellipsoid,minimumLevel:o.minimumLevel,maximumLevel:o.maximumLevel,rectangle:o.rectangle})}Object.defineProperties(M7.prototype,{url:{get:function(){return this._imageryProvider.url}},rectangle:{get:function(){return this._imageryProvider.rectangle}},tileWidth:{get:function(){return this._imageryProvider.tileWidth}},tileHeight:{get:function(){return this._imageryProvider.tileHeight}},maximumLevel:{get:function(){return this._imageryProvider.maximumLevel}},minimumLevel:{get:function(){return this._imageryProvider.minimumLevel}},tilingScheme:{get:function(){return this._imageryProvider.tilingScheme}},tileDiscardPolicy:{get:function(){return this._imageryProvider.tileDiscardPolicy}},errorEvent:{get:function(){return this._imageryProvider.errorEvent}},credit:{get:function(){return this._imageryProvider.credit}},proxy:{get:function(){return this._imageryProvider.proxy}},hasAlphaChannel:{get:function(){return this._imageryProvider.hasAlphaChannel}}});M7.prototype.getTileCredits=function(o,f,m){};M7.prototype.requestImage=function(o,f,m,x){return this._imageryProvider.requestImage(o,f,m,x)};M7.prototype.pickFeatures=function(o,f,m,x,v){return this._imageryProvider.pickFeatures(o,f,m,x,v)};M7._defaultCredit=N2t;var F2t=M7;function mke(o){}mke.prototype.isReady=function(){return!0};mke.prototype.shouldDiscardImage=function(o){return!1};var B2t=mke,ZQi=new rs("MapQuest, Open Street Map and contributors, CC-BY-SA");function Gse(o){o=o??pi.EMPTY_OBJECT;let f=Wr.createIfNeeded(o.url??"https://tile.openstreetmap.org/");f.appendForwardSlash(),f.url+=`{z}/{x}/{y}${o.retinaTiles?"@2x":""}.${o.fileExtension??"png"}`;let m=new tp({ellipsoid:o.ellipsoid}),x=256,v=256,y=o.minimumLevel??0,C=o.maximumLevel,w=o.rectangle??m.rectangle,T=m.positionToTileXY(Si.southwest(w),y),E=m.positionToTileXY(Si.northeast(w),y),A=(Math.abs(E.x-T.x)+1)*(Math.abs(E.y-T.y)+1),S=o.credit??ZQi;typeof S=="string"&&(S=new rs(S)),e1.call(this,{url:f,credit:S,tilingScheme:m,tileWidth:x,tileHeight:v,minimumLevel:y,maximumLevel:C,rectangle:w})}N(Object.create)&&(Gse.prototype=Object.create(e1.prototype),Gse.prototype.constructor=Gse);var OS=Gse,eZi=new at(1,1);function xke(o){o=o??pi.EMPTY_OBJECT,this.mass=o.mass??1,this.position=V.clone(o.position??V.ZERO),this.velocity=V.clone(o.velocity??V.ZERO),this.life=o.life??Number.MAX_VALUE,this.image=o.image,this.startColor=ze.clone(o.startColor??ze.WHITE),this.endColor=ze.clone(o.endColor??ze.WHITE),this.startScale=o.startScale??1,this.endScale=o.endScale??1,this.imageSize=at.clone(o.imageSize??eZi),this._age=0,this._normalizedAge=0,this._billboard=void 0}Object.defineProperties(xke.prototype,{age:{get:function(){return this._age}},normalizedAge:{get:function(){return this._normalizedAge}}});var Sit=new V;xke.prototype.update=function(o,f){return V.multiplyByScalar(this.velocity,o,Sit),V.add(this.position,Sit,this.position),N(f)&&f(this,o),this._age+=o,this.life===Number.MAX_VALUE?this._normalizedAge=0:this._normalizedAge=this._age/this.life,this._age<=this.life};var $fe=xke;function k2t(o){o=o??pi.EMPTY_OBJECT,this.time=o.time??0,this.minimum=o.minimum??0,this.maximum=o.maximum??50,this._complete=!1}Object.defineProperties(k2t.prototype,{complete:{get:function(){return this._complete}}});var D7=k2t;function V2t(o){}V2t.prototype.emit=function(o){At.throwInstantiationError()};var z2t=V2t,Pit=new at(1,1);function see(o){o=o??pi.EMPTY_OBJECT,this.show=o.show??!0,this.updateCallback=o.updateCallback,this.loop=o.loop??!0,this.image=o.image??void 0;let f=o.emitter;N(f)||(f=new lke(.5)),this._emitter=f,this._bursts=o.bursts,this._modelMatrix=Ee.clone(o.modelMatrix??Ee.IDENTITY),this._emitterModelMatrix=Ee.clone(o.emitterModelMatrix??Ee.IDENTITY),this._matrixDirty=!0,this._combinedMatrix=new Ee,this._startColor=ze.clone(o.color??o.startColor??ze.WHITE),this._endColor=ze.clone(o.color??o.endColor??ze.WHITE),this._startScale=o.scale??o.startScale??1,this._endScale=o.scale??o.endScale??1,this._emissionRate=o.emissionRate??5,this._minimumSpeed=o.speed??o.minimumSpeed??1,this._maximumSpeed=o.speed??o.maximumSpeed??1,this._minimumParticleLife=o.particleLife??o.minimumParticleLife??5,this._maximumParticleLife=o.particleLife??o.maximumParticleLife??5,this._minimumMass=o.mass??o.minimumMass??1,this._maximumMass=o.mass??o.maximumMass??1,this._minimumImageSize=at.clone(o.imageSize??o.minimumImageSize??Pit),this._maximumImageSize=at.clone(o.imageSize??o.maximumImageSize??Pit),this._sizeInMeters=o.sizeInMeters??!1,this._lifetime=o.lifetime??Number.MAX_VALUE,this._billboardCollection=void 0,this._particles=[],this._particlePool=[],this._previousTime=void 0,this._currentTime=0,this._carryOver=0,this._complete=new Or,this._isComplete=!1,this._updateParticlePool=!0,this._particleEstimate=0}Object.defineProperties(see.prototype,{emitter:{get:function(){return this._emitter},set:function(o){this._emitter=o}},bursts:{get:function(){return this._bursts},set:function(o){this._bursts=o,this._updateParticlePool=!0}},modelMatrix:{get:function(){return this._modelMatrix},set:function(o){this._matrixDirty=this._matrixDirty||!Ee.equals(this._modelMatrix,o),Ee.clone(o,this._modelMatrix)}},emitterModelMatrix:{get:function(){return this._emitterModelMatrix},set:function(o){this._matrixDirty=this._matrixDirty||!Ee.equals(this._emitterModelMatrix,o),Ee.clone(o,this._emitterModelMatrix)}},startColor:{get:function(){return this._startColor},set:function(o){ze.clone(o,this._startColor)}},endColor:{get:function(){return this._endColor},set:function(o){ze.clone(o,this._endColor)}},startScale:{get:function(){return this._startScale},set:function(o){this._startScale=o}},endScale:{get:function(){return this._endScale},set:function(o){this._endScale=o}},emissionRate:{get:function(){return this._emissionRate},set:function(o){this._emissionRate=o,this._updateParticlePool=!0}},minimumSpeed:{get:function(){return this._minimumSpeed},set:function(o){this._minimumSpeed=o}},maximumSpeed:{get:function(){return this._maximumSpeed},set:function(o){this._maximumSpeed=o}},minimumParticleLife:{get:function(){return this._minimumParticleLife},set:function(o){this._minimumParticleLife=o}},maximumParticleLife:{get:function(){return this._maximumParticleLife},set:function(o){this._maximumParticleLife=o,this._updateParticlePool=!0}},minimumMass:{get:function(){return this._minimumMass},set:function(o){this._minimumMass=o}},maximumMass:{get:function(){return this._maximumMass},set:function(o){this._maximumMass=o}},minimumImageSize:{get:function(){return this._minimumImageSize},set:function(o){this._minimumImageSize=o}},maximumImageSize:{get:function(){return this._maximumImageSize},set:function(o){this._maximumImageSize=o}},sizeInMeters:{get:function(){return this._sizeInMeters},set:function(o){this._sizeInMeters=o}},lifetime:{get:function(){return this._lifetime},set:function(o){this._lifetime=o}},complete:{get:function(){return this._complete}},isComplete:{get:function(){return this._isComplete}}});function tZi(o){let f=o._emissionRate,m=o._maximumParticleLife,x=0,v=o._bursts;if(N(v)){let S=v.length;for(let M=0;M<S;++M)x+=v[M].maximum}let y=o._billboardCollection,C=o.image,w=Math.ceil(f*m+x),T=o._particles,E=o._particlePool,A=Math.max(w-T.length-E.length,0);for(let S=0;S<A;++S){let M=new $fe;M._billboard=y.add({image:C,show:!1}),E.push(M)}o._particleEstimate=w}function iZi(o){let f=o._particlePool.pop();return N(f)||(f=new $fe),f}function rZi(o,f){o._particlePool.push(f)}function nZi(o){let f=o._particles,m=o._particlePool,x=o._billboardCollection,v=f.length,y=m.length,C=o._particleEstimate,w=y-Math.max(C-v-y,0);for(let T=w;T<y;++T){let E=m[T];x.remove(E._billboard)}m.length=w}function oZi(o){N(o._billboard)&&(o._billboard.show=!1)}function Iit(o,f){let m=f._billboard;N(m)||(m=f._billboard=o._billboardCollection.add({image:f.image})),m.width=f.imageSize.x,m.height=f.imageSize.y,m.position=f.position,m.sizeInMeters=o.sizeInMeters,m.show=!0;let x=Ce.lerp(f.startColor.red,f.endColor.red,f.normalizedAge),v=Ce.lerp(f.startColor.green,f.endColor.green,f.normalizedAge),y=Ce.lerp(f.startColor.blue,f.endColor.blue,f.normalizedAge),C=Ce.lerp(f.startColor.alpha,f.endColor.alpha,f.normalizedAge);m.color=new ze(x,v,y,C),m.scale=Ce.lerp(f.startScale,f.endScale,f.normalizedAge)}function aZi(o,f){f.startColor=ze.clone(o._startColor,f.startColor),f.endColor=ze.clone(o._endColor,f.endColor),f.startScale=o._startScale,f.endScale=o._endScale,f.image=o.image,f.life=Ce.randomBetween(o._minimumParticleLife,o._maximumParticleLife),f.mass=Ce.randomBetween(o._minimumMass,o._maximumMass),f.imageSize.x=Ce.randomBetween(o._minimumImageSize.x,o._maximumImageSize.x),f.imageSize.y=Ce.randomBetween(o._minimumImageSize.y,o._maximumImageSize.y),f._normalizedAge=0,f._age=0;let m=Ce.randomBetween(o._minimumSpeed,o._maximumSpeed);V.multiplyByScalar(f.velocity,m,f.velocity),o._particles.push(f)}function sZi(o,f){if(o._isComplete)return 0;f=Ce.mod(f,o._lifetime);let m=f*o._emissionRate,x=Math.floor(m);if(o._carryOver+=m-x,o._carryOver>1&&(x++,o._carryOver-=1),N(o.bursts)){let v=o.bursts.length;for(let y=0;y<v;y++){let C=o.bursts[y],w=o._currentTime;N(C)&&!C._complete&&w>C.time&&(x+=Ce.randomBetween(C.minimum,C.maximum),C._complete=!0)}}return x}var Vae=new V;see.prototype.update=function(o){if(!this.show)return;N(this._billboardCollection)||(this._billboardCollection=new ZS),this._updateParticlePool&&(tZi(this),this._updateParticlePool=!1);let f=0;this._previousTime&&(f=si.secondsDifference(o.time,this._previousTime)),f<0&&(f=0);let m=this._particles,x=this._emitter,v=this.updateCallback,y,C,w=m.length;for(y=0;y<w;++y)C=m[y],C.update(f,v)?Iit(this,C):(oZi(C),rZi(this,C),m[y]=m[w-1],--y,--w);m.length=w;let T=sZi(this,f);if(T>0&&N(x)){this._matrixDirty&&(this._combinedMatrix=Ee.multiply(this.modelMatrix,this.emitterModelMatrix,this._combinedMatrix),this._matrixDirty=!1);let E=this._combinedMatrix;for(y=0;y<T;y++)C=iZi(this),this._emitter.emit(C),V.add(C.position,C.velocity,Vae),Ee.multiplyByPoint(E,Vae,Vae),C.position=Ee.multiplyByPoint(E,C.position,C.position),V.subtract(Vae,C.position,C.velocity),V.normalize(C.velocity,C.velocity),aZi(this,C),Iit(this,C)}if(this._billboardCollection.update(o),this._previousTime=si.clone(o.time,this._previousTime),this._currentTime+=f,this._lifetime!==Number.MAX_VALUE&&this._currentTime>this._lifetime)if(this.loop){if(this._currentTime=Ce.mod(this._currentTime,this._lifetime),this.bursts){let E=this.bursts.length;for(y=0;y<E;y++)this.bursts[y]._complete=!1}}else this._isComplete=!0,this._complete.raiseEvent(this);o.frameNumber%120===0&&nZi(this)};see.prototype.isDestroyed=function(){return!1};see.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),Ir(this)};var QE=see;function Xw(){At.throwInstantiationError()}Xw.computeDefaultLevelZeroMaximumGeometricError=function(o){return o.ellipsoid.maximumRadius*2*Math.PI*.25/(65*o.getNumberOfXTilesAtLevel(0))};Object.defineProperties(Xw.prototype,{quadtree:{get:At.throwInstantiationError,set:At.throwInstantiationError},tilingScheme:{get:At.throwInstantiationError},errorEvent:{get:At.throwInstantiationError}});Xw.prototype.update=At.throwInstantiationError;Xw.prototype.beginUpdate=At.throwInstantiationError;Xw.prototype.endUpdate=At.throwInstantiationError;Xw.prototype.getLevelMaximumGeometricError=At.throwInstantiationError;Xw.prototype.loadTile=At.throwInstantiationError;Xw.prototype.computeTileVisibility=At.throwInstantiationError;Xw.prototype.showTileThisFrame=At.throwInstantiationError;Xw.prototype.computeDistanceToTile=At.throwInstantiationError;Xw.prototype.isDestroyed=At.throwInstantiationError;Xw.prototype.destroy=At.throwInstantiationError;var WU=Xw;function gke(o){o=o??1,this._radius=o??1}Object.defineProperties(gke.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});gke.prototype.emit=function(o){let f=Ce.randomBetween(0,Ce.TWO_PI),m=Ce.randomBetween(0,Ce.PI),x=Ce.randomBetween(0,this._radius),v=x*Math.cos(f)*Math.sin(m),y=x*Math.sin(f)*Math.sin(m),C=x*Math.cos(m);o.position=V.fromElements(v,y,C,o.position),o.velocity=V.normalize(o.position,o.velocity)};var R7=gke;function lee(){}lee.prototype.evaluate=function(o,f){At.throwInstantiationError()};lee.prototype.evaluateColor=function(o,f){At.throwInstantiationError()};lee.prototype.getShaderFunction=function(o,f,m,x){At.throwInstantiationError()};lee.prototype.getVariables=function(){At.throwInstantiationError()};var U2t=lee;function z9(o){this._ready=!1,this._provider=void 0,this._errorEvent=new Or,this._readyEvent=new Or,uZi(this,o)}Object.defineProperties(z9.prototype,{errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},ready:{get:function(){return this._ready}},provider:{get:function(){return this._provider}}});z9.fromWorldTerrain=function(o){return new z9(zfe(o))};z9.fromWorldBathymetry=function(o){return new z9(K4e(o))};function lZi(o,f){o.numberOfListeners>0?o.raiseEvent(f):console.error(f)}async function uZi(o,f){let m;try{m=await Promise.resolve(f),o._provider=m,o._ready=!0,o._readyEvent.raiseEvent(m)}catch(x){lZi(o._errorEvent,x)}}var _ke=z9;function L7(){}L7.prototype.boundingVolume=void 0;L7.prototype.boundingSphere=void 0;L7.prototype.distanceToCamera=function(o){At.throwInstantiationError()};L7.prototype.intersectPlane=function(o){At.throwInstantiationError()};L7.prototype.createDebugVolume=function(o){At.throwInstantiationError()};var H2t=L7;function uee(o){o=o??pi.EMPTY_OBJECT,this._tilingScheme=N(o.tilingScheme)?o.tilingScheme:new Xh({ellipsoid:o.ellipsoid}),this._color=o.color??ze.YELLOW,this._errorEvent=new Or,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0}Object.defineProperties(uee.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}});uee.prototype.getTileCredits=function(o,f,m){};uee.prototype.requestImage=function(o,f,m,x){let v=document.createElement("canvas");v.width=256,v.height=256;let y=v.getContext("2d"),C=this._color.toCssColorString();return y.strokeStyle=C,y.lineWidth=2,y.strokeRect(1,1,255,255),y.font="bold 25px Arial",y.textAlign="center",y.fillStyle=C,y.fillText(`L: ${m}`,124,86),y.fillText(`X: ${o}`,124,136),y.fillText(`Y: ${f}`,124,186),Promise.resolve(v)};uee.prototype.pickFeatures=function(o,f,m,x,v){};var cee=uee;function vke(o){At.throwInstantiationError()}vke.prototype.isReady=At.throwInstantiationError;vke.prototype.shouldDiscardImage=At.throwInstantiationError;var G2t=vke,cZi={START:0,LOADING:1,READY:2,UPSAMPLED_ONLY:3},W2t=Object.freeze(cZi);function Jfe(o,f){this.show=!0,N(o)||(o=new Br),this.rectangle=Br.clone(o),N(f)||(f=zo.fromType(zo.ColorType,{color:new ze(1,1,1,1)})),this.material=f,this._material=void 0,this._overlayCommand=void 0,this._rs=void 0}Jfe.prototype.update=function(o){if(!this.show)return;let f=this._rs;if((!N(f)||!Br.equals(f.viewport,this.rectangle))&&(this._rs=wn.fromCache({blending:Ou.ALPHA_BLEND,viewport:this.rectangle})),o.passes.render){let m=o.context;if(this._material!==this.material||!N(this._overlayCommand)){this._material=this.material,N(this._overlayCommand)&&this._overlayCommand.shaderProgram.destroy();let x=new $r({sources:[this._material.shaderSource,H4e]});this._overlayCommand=m.createViewportQuadCommand(x,{renderState:this._rs,uniformMap:this._material._uniforms,owner:this}),this._overlayCommand.pass=Sr.OVERLAY}this._material.update(m),this._overlayCommand.renderState=this._rs,this._overlayCommand.uniformMap=this._material._uniforms,o.commandList.push(this._overlayCommand)}};Jfe.prototype.isDestroyed=function(){return!1};Jfe.prototype.destroy=function(){return N(this._overlayCommand)&&(this._overlayCommand.shaderProgram=this._overlayCommand.shaderProgram&&this._overlayCommand.shaderProgram.destroy()),Ir(this)};var O7=Jfe;function yke(){At.throwInstantiationError()}Object.defineProperties(yke.prototype,{globalTransform:{get:At.throwInstantiationError},shapeTransform:{get:At.throwInstantiationError},shape:{get:At.throwInstantiationError},minBounds:{get:At.throwInstantiationError},maxBounds:{get:At.throwInstantiationError},dimensions:{get:At.throwInstantiationError},paddingBefore:{get:At.throwInstantiationError},paddingAfter:{get:At.throwInstantiationError},names:{get:At.throwInstantiationError},types:{get:At.throwInstantiationError},componentTypes:{get:At.throwInstantiationError},minimumValues:{get:At.throwInstantiationError},maximumValues:{get:At.throwInstantiationError},maximumTileCount:{get:At.throwInstantiationError},availableLevels:{get:At.throwInstantiationError},keyframeCount:{get:At.throwInstantiationError},timeIntervalCollection:{get:At.throwInstantiationError}});yke.prototype.requestData=function(o){At.throwInstantiationError()};var j2t=yke;function jU(){At.throwInstantiationError()}Object.defineProperties(jU.prototype,{orientedBoundingBox:{get:At.throwInstantiationError},boundingSphere:{get:At.throwInstantiationError},boundTransform:{get:At.throwInstantiationError},shapeTransform:{get:At.throwInstantiationError},shaderUniforms:{get:At.throwInstantiationError},shaderDefines:{get:At.throwInstantiationError},shaderMaximumIntersectionsLength:{get:At.throwInstantiationError}});jU.prototype.update=At.throwInstantiationError;jU.prototype.computeOrientedBoundingBoxForTile=At.throwInstantiationError;jU.prototype.computeOrientedBoundingBoxForSample=At.throwInstantiationError;jU.DefaultMinBounds=At.throwInstantiationError;jU.DefaultMaxBounds=At.throwInstantiationError;var q2t=jU,hZi=`in vec2 depth;
}`;this.material=void 0,this.translucent=o.translucent??!1,this._vertexShaderSource=o.vertexShaderSource??C,this._fragmentShaderSource=o.fragmentShaderSource??w,this._renderState=of.getDefaultRenderState(!1,!1,o.renderState),this._closed=o.closed??!1,this._attributeName=f,this._glslDatatype=x}Object.defineProperties(oee.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},attributeName:{get:function(){return this._attributeName}},glslDatatype:{get:function(){return this._glslDatatype}}});oee.prototype.getFragmentShaderSource=of.prototype.getFragmentShaderSource;oee.prototype.isTranslucent=of.prototype.isTranslucent;oee.prototype.getRenderState=of.prototype.getRenderState;var S2t=oee;function Xfe(o){o=o??pi.EMPTY_OBJECT,this.length=o.length??1e7,this._length=void 0,this.width=o.width??2,this._width=void 0,this.show=o.show??!0,this.modelMatrix=Ee.clone(o.modelMatrix??Ee.IDENTITY),this._modelMatrix=new Ee,this.id=o.id,this._id=void 0,this._primitive=void 0}Xfe.prototype.update=function(o){if(this.show){if(!N(this._primitive)||!Ee.equals(this._modelMatrix,this.modelMatrix)||this._length!==this.length||this._width!==this.width||this._id!==this.id){this._modelMatrix=Ee.clone(this.modelMatrix,this._modelMatrix),this._length=this.length,this._width=this.width,this._id=this.id,N(this._primitive)&&this._primitive.destroy(),this.modelMatrix[12]===0&&this.modelMatrix[13]===0&&this.modelMatrix[14]===0&&(this.modelMatrix[14]=.01);let f=new eo({geometry:new zy({positions:[V.ZERO,V.UNIT_X],width:this.width,vertexFormat:jm.VERTEX_FORMAT,colors:[ze.RED,ze.RED],arcType:xs.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),m=new eo({geometry:new zy({positions:[V.ZERO,V.UNIT_Y],width:this.width,vertexFormat:jm.VERTEX_FORMAT,colors:[ze.GREEN,ze.GREEN],arcType:xs.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),x=new eo({geometry:new zy({positions:[V.ZERO,V.UNIT_Z],width:this.width,vertexFormat:jm.VERTEX_FORMAT,colors:[ze.BLUE,ze.BLUE],arcType:xs.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this});this._primitive=new pa({geometryInstances:[f,m,x],appearance:new jm,asynchronous:!1})}this._primitive.update(o)}};Xfe.prototype.isDestroyed=function(){return!1};Xfe.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),Ir(this)};var dke=Xfe;function UQi(o){this.direction=V.clone(o.direction),this.color=ze.clone(o.color??ze.WHITE),this.intensity=o.intensity??1}var I7=UQi;function Ob(o){this._scene=o.scene,this.samplingWindow=o.samplingWindow??Ob.defaultSettings.samplingWindow,this.quietPeriod=o.quietPeriod??Ob.defaultSettings.quietPeriod,this.warmupPeriod=o.warmupPeriod??Ob.defaultSettings.warmupPeriod,this.minimumFrameRateDuringWarmup=o.minimumFrameRateDuringWarmup??Ob.defaultSettings.minimumFrameRateDuringWarmup,this.minimumFrameRateAfterWarmup=o.minimumFrameRateAfterWarmup??Ob.defaultSettings.minimumFrameRateAfterWarmup,this._lowFrameRate=new Or,this._nominalFrameRate=new Or,this._frameTimes=[],this._needsQuietPeriod=!0,this._quietPeriodEndTime=0,this._warmupPeriodEndTime=0,this._frameRateIsLow=!1,this._lastFramesPerSecond=void 0,this._pauseCount=0;let f=this;this._preUpdateRemoveListener=this._scene.preUpdate.addEventListener(function(v,y){HQi(f,y)}),this._hiddenPropertyName=document.hidden!==void 0?"hidden":document.mozHidden!==void 0?"mozHidden":document.msHidden!==void 0?"msHidden":document.webkitHidden!==void 0?"webkitHidden":void 0;let m=document.hidden!==void 0?"visibilitychange":document.mozHidden!==void 0?"mozvisibilitychange":document.msHidden!==void 0?"msvisibilitychange":document.webkitHidden!==void 0?"webkitvisibilitychange":void 0;function x(){GQi(f)}this._visibilityChangeRemoveListener=void 0,N(m)&&(document.addEventListener(m,x,!1),this._visibilityChangeRemoveListener=function(){document.removeEventListener(m,x,!1)})}Ob.defaultSettings={samplingWindow:5,quietPeriod:2,warmupPeriod:5,minimumFrameRateDuringWarmup:4,minimumFrameRateAfterWarmup:8};Ob.fromScene=function(o){return(!N(o._frameRateMonitor)||o._frameRateMonitor.isDestroyed())&&(o._frameRateMonitor=new Ob({scene:o})),o._frameRateMonitor};Object.defineProperties(Ob.prototype,{scene:{get:function(){return this._scene}},lowFrameRate:{get:function(){return this._lowFrameRate}},nominalFrameRate:{get:function(){return this._nominalFrameRate}},lastFramesPerSecond:{get:function(){return this._lastFramesPerSecond}}});Ob.prototype.pause=function(){++this._pauseCount,this._pauseCount===1&&(this._frameTimes.length=0,this._lastFramesPerSecond=void 0)};Ob.prototype.unpause=function(){--this._pauseCount,this._pauseCount<=0&&(this._pauseCount=0,this._needsQuietPeriod=!0)};Ob.prototype.isDestroyed=function(){return!1};Ob.prototype.destroy=function(){return this._preUpdateRemoveListener(),N(this._visibilityChangeRemoveListener)&&this._visibilityChangeRemoveListener(),Ir(this)};function HQi(o,f){if(o._pauseCount>0)return;let m=Oh();if(o._needsQuietPeriod)o._needsQuietPeriod=!1,o._frameTimes.length=0,o._quietPeriodEndTime=m+o.quietPeriod/zc.SECONDS_PER_MILLISECOND,o._warmupPeriodEndTime=o._quietPeriodEndTime+(o.warmupPeriod+o.samplingWindow)/zc.SECONDS_PER_MILLISECOND;else if(m>=o._quietPeriodEndTime){o._frameTimes.push(m);let x=m-o.samplingWindow/zc.SECONDS_PER_MILLISECOND;if(o._frameTimes.length>=2&&o._frameTimes[0]<=x){for(;o._frameTimes.length>=2&&o._frameTimes[1]<x;)o._frameTimes.shift();let v=(m-o._frameTimes[0])/(o._frameTimes.length-1);o._lastFramesPerSecond=1e3/v;let y=1e3/(m>o._warmupPeriodEndTime?o.minimumFrameRateAfterWarmup:o.minimumFrameRateDuringWarmup);v>y?o._frameRateIsLow||(o._frameRateIsLow=!0,o._needsQuietPeriod=!0,o.lowFrameRate.raiseEvent(o.scene,o._lastFramesPerSecond)):o._frameRateIsLow&&(o._frameRateIsLow=!1,o._needsQuietPeriod=!0,o.nominalFrameRate.raiseEvent(o.scene,o._lastFramesPerSecond))}}}function GQi(o){document[o._hiddenPropertyName]?o.pause():o.unpause()}var fke=Ob,WQi=E0($nt(),1);function pke(){this._image=new Image}pke.prototype.isReady=function(){return!0};pke.prototype.shouldDiscardImage=function(o){return o===this._image};function Rz(o){o=o??pi.EMPTY_OBJECT,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0,this._tileDiscardPolicy=o.tileDiscardPolicy,this._tilingScheme=new Xh({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new Si(-Ce.PI,-Ce.PI,Ce.PI,Ce.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new rs(f)),this._credit=f,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=23,N(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new pke),this._errorEvent=new Or}Object.defineProperties(Rz.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){return this._maximumLevel}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){return this._tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!1}}});Rz.fromMetadata=function(o,f){if(!o.imageryPresent)throw new Xi(`The server ${o.url} doesn't have imagery`);let m=new Rz(f);return m._metadata=o,m};Rz.prototype.getTileCredits=function(o,f,m){let x=this._metadata,v=x.getTileInformation(o,f,m);if(N(v)){let y=x.providers[v.imageryProvider];if(N(y))return[y]}};Rz.prototype.requestImage=function(o,f,m,x){let v=this._tileDiscardPolicy._image,y=this._metadata,C=A7.tileXYToQuadKey(o,f,m),w=y.getTileInformation(o,f,m);if(!N(w)){if(y.isValid(C)){let E=new Jm({throttle:x.throttle,throttleByServer:x.throttleByServer,type:x.type,priorityFunction:x.priorityFunction});y.populateSubtree(o,f,m,E);return}return Promise.resolve(v)}if(!w.hasImagery())return Promise.resolve(v);let T=jQi(this,w,o,f,m,x).fetchArrayBuffer();if(N(T))return T.then(function(E){j4e(y.key,E);let A=new Uint8Array(E),S,M=y.protoImagery;if((!N(M)||!M)&&(S=qQi(A)),!N(S)&&(!N(M)||M)){let I=YQi(A);S=I.imageType,A=I.imageData}return!N(S)||!N(A)?v:FW({uint8Array:A,format:S,flipY:!0})})};Rz.prototype.pickFeatures=function(o,f,m,x,v){};function jQi(o,f,m,x,v,y){let C=A7.tileXYToQuadKey(m,x,v),w=f.imageryVersion;return w=N(w)&&w>0?w:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1-0${C}-i.${w.toString()}`,request:y})}function qQi(o){let f="JFIF";if(o[6]===f.charCodeAt(0)&&o[7]===f.charCodeAt(1)&&o[8]===f.charCodeAt(2)&&o[9]===f.charCodeAt(3))return"image/jpeg";let m="PNG";if(o[1]===m.charCodeAt(0)&&o[2]===m.charCodeAt(1)&&o[3]===m.charCodeAt(2))return"image/png"}function YQi(o){let f=WQi.Reader.create(o),m=f.len,x={};for(;f.pos<m;){let C=f.uint32(),w;switch(C>>>3){case 1:x.imageType=f.uint32();break;case 2:x.imageData=f.bytes();break;case 3:x.alphaType=f.uint32();break;case 4:x.imageAlpha=f.bytes();break;case 5:if(w=x.copyrightIds,N(w)||(w=x.copyrightIds=[]),(C&7)===2){let T=f.uint32()+f.pos;for(;f.pos<T;)w.push(f.uint32())}else w.push(f.uint32());break;default:f.skipType(C&7);break}}let v=x.imageType;if(N(v))switch(v){case 0:x.imageType="image/jpeg";break;case 4:x.imageType="image/png";break;default:throw new Xi("GoogleEarthEnterpriseImageryProvider: Unsupported image type.")}let y=x.alphaType;return N(y)&&y!==0&&(console.log("GoogleEarthEnterpriseImageryProvider: External alpha not supported."),delete x.alphaType,delete x.imageAlpha),x}var P2t=Rz,XQi=new ze(1,1,1,.4),KQi=new ze(0,1,0,.05),$Qi=new ze(0,.5,0,.2);function GU(o){o=o??pi.EMPTY_OBJECT,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0,this._tilingScheme=N(o.tilingScheme)?o.tilingScheme:new Xh({ellipsoid:o.ellipsoid}),this._cells=o.cells??8,this._color=o.color??XQi,this._glowColor=o.glowColor??KQi,this._glowWidth=o.glowWidth??6,this._backgroundColor=o.backgroundColor??$Qi,this._errorEvent=new Or,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._canvasSize=o.canvasSize??256,this._canvas=this._createGridCanvas()}Object.defineProperties(GU.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}});GU.prototype._drawGrid=function(o){let f=this._canvasSize;for(let m=0;m<=this._cells;++m){let x=1+m/this._cells*(f-1);o.moveTo(x,0),o.lineTo(x,f),o.moveTo(0,x),o.lineTo(f,x)}o.stroke()};GU.prototype._createGridCanvas=function(){let o=document.createElement("canvas");o.width=this._canvasSize,o.height=this._canvasSize;let f=0,m=this._canvasSize,x=o.getContext("2d"),v=this._backgroundColor.toCssColorString();x.fillStyle=v,x.fillRect(f,f,m,m);let y=this._glowColor.toCssColorString();x.strokeStyle=y,x.lineWidth=this._glowWidth,x.strokeRect(f,f,m,m),this._drawGrid(x),x.lineWidth=this._glowWidth*.5,x.strokeRect(f,f,m,m),this._drawGrid(x);let C=this._color.toCssColorString();return x.strokeStyle=C,x.lineWidth=2,x.strokeRect(f,f,m,m),x.lineWidth=1,this._drawGrid(x),o};GU.prototype.getTileCredits=function(o,f,m){};GU.prototype.requestImage=function(o,f,m,x){return Promise.resolve(this._canvas)};GU.prototype.pickFeatures=function(o,f,m,x,v){};var I2t=GU,aee={};aee.createTilesetFromIModelId=async function(o,f){let{exports:m}=await w_.getExports(o);if(m.length>0&&m.every(w=>w.status===w_.ExportStatus.Invalid))throw new Xi(`All exports for this iModel are Invalid: ${o}`);let x=m.find(w=>w.status===w_.ExportStatus.Complete);if(!N(x))return;let v=new URL(x._links.mesh.href);v.pathname=`${v.pathname}/tileset.json`;let y=v.toString(),C=new Wr({url:y});return t0.fromUrl(C,f)};aee.createTilesetForRealityDataId=async function(o,f,m,x){if(!N(m)||!N(x)){let y=await w_.getRealityDataMetadata(o,f);x=y.rootDocument,m=y.type}if(![w_.RealityDataType.Cesium3DTiles,w_.RealityDataType.PNTS,w_.RealityDataType.RealityMesh3DTiles,w_.RealityDataType.Terrain3DTiles].includes(m))throw new Xi(`Reality data type is not a mesh type: ${m}`);let v=await w_.getRealityDataURL(o,f,x);return t0.fromUrl(v,{maximumScreenSpaceError:4})};aee.createDataSourceForRealityDataId=async function(o,f,m,x){if(!N(m)||!N(x)){let y=await w_.getRealityDataMetadata(o,f);x=y.rootDocument,m=y.type}if(![w_.RealityDataType.KML,w_.RealityDataType.GeoJSON].includes(m))throw new Xi(`Reality data type is not a data source type: ${m}`);let v=await w_.getRealityDataURL(o,f,x);return m===w_.RealityDataType.GeoJSON?iz.load(v):DQ.load(v)};aee.loadGeospatialFeatures=async function(o,f,m){let x=m??1e4,v=`${w_.apiEndpoint}geospatial-features/itwins/${o}/ogc/collections/${f}/items`,y=new Wr({url:v,headers:{Authorization:w_._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{limit:x,client:"CesiumJS"}});return iz.load(y)};var M2t=aee;function D2t(){}Object.defineProperties(D2t.prototype,{color:{get:At.throwInstantiationError},intensity:{get:At.throwInstantiationError}});var R2t=D2t,JQi=/\/$/,L2t=new rs('&copy; <a href="https://www.mapbox.com/about/maps/">Mapbox</a> &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function M7(o){o=o??pi.EMPTY_OBJECT;let f=o.styleId,m=o.accessToken;this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0;let x=Wr.createIfNeeded(o.url??"https://api.mapbox.com/styles/v1/");this._styleId=f,this._accessToken=m;let v=o.tilesize??512;this._tilesize=v;let y=o.username??"mapbox";this._username=y;let C=N(o.scaleFactor)?"@2x":"",w=x.getUrlComponent();JQi.test(w)||(w+="/"),w+=`${this._username}/${f}/tiles/${this._tilesize}/{z}/{x}/{y}${C}`,x.url=w,x.setQueryParameters({access_token:m});let T;N(o.credit)?(T=o.credit,typeof T=="string"&&(T=new rs(T))):T=L2t,this._resource=x,this._imageryProvider=new e1({url:x,credit:T,ellipsoid:o.ellipsoid,minimumLevel:o.minimumLevel,maximumLevel:o.maximumLevel,rectangle:o.rectangle})}Object.defineProperties(M7.prototype,{url:{get:function(){return this._imageryProvider.url}},rectangle:{get:function(){return this._imageryProvider.rectangle}},tileWidth:{get:function(){return this._imageryProvider.tileWidth}},tileHeight:{get:function(){return this._imageryProvider.tileHeight}},maximumLevel:{get:function(){return this._imageryProvider.maximumLevel}},minimumLevel:{get:function(){return this._imageryProvider.minimumLevel}},tilingScheme:{get:function(){return this._imageryProvider.tilingScheme}},tileDiscardPolicy:{get:function(){return this._imageryProvider.tileDiscardPolicy}},errorEvent:{get:function(){return this._imageryProvider.errorEvent}},credit:{get:function(){return this._imageryProvider.credit}},proxy:{get:function(){return this._imageryProvider.proxy}},hasAlphaChannel:{get:function(){return this._imageryProvider.hasAlphaChannel}}});M7.prototype.getTileCredits=function(o,f,m){};M7.prototype.requestImage=function(o,f,m,x){return this._imageryProvider.requestImage(o,f,m,x)};M7.prototype.pickFeatures=function(o,f,m,x,v){return this._imageryProvider.pickFeatures(o,f,m,x,v)};M7._defaultCredit=L2t;var O2t=M7;function mke(o){}mke.prototype.isReady=function(){return!0};mke.prototype.shouldDiscardImage=function(o){return!1};var N2t=mke,QQi=new rs("MapQuest, Open Street Map and contributors, CC-BY-SA");function Hse(o){o=o??pi.EMPTY_OBJECT;let f=Wr.createIfNeeded(o.url??"https://tile.openstreetmap.org/");f.appendForwardSlash(),f.url+=`{z}/{x}/{y}${o.retinaTiles?"@2x":""}.${o.fileExtension??"png"}`;let m=new tp({ellipsoid:o.ellipsoid}),x=256,v=256,y=o.minimumLevel??0,C=o.maximumLevel,w=o.rectangle??m.rectangle,T=m.positionToTileXY(Si.southwest(w),y),E=m.positionToTileXY(Si.northeast(w),y),A=(Math.abs(E.x-T.x)+1)*(Math.abs(E.y-T.y)+1),S=o.credit??QQi;typeof S=="string"&&(S=new rs(S)),e1.call(this,{url:f,credit:S,tilingScheme:m,tileWidth:x,tileHeight:v,minimumLevel:y,maximumLevel:C,rectangle:w})}N(Object.create)&&(Hse.prototype=Object.create(e1.prototype),Hse.prototype.constructor=Hse);var OS=Hse,ZQi=new at(1,1);function xke(o){o=o??pi.EMPTY_OBJECT,this.mass=o.mass??1,this.position=V.clone(o.position??V.ZERO),this.velocity=V.clone(o.velocity??V.ZERO),this.life=o.life??Number.MAX_VALUE,this.image=o.image,this.startColor=ze.clone(o.startColor??ze.WHITE),this.endColor=ze.clone(o.endColor??ze.WHITE),this.startScale=o.startScale??1,this.endScale=o.endScale??1,this.imageSize=at.clone(o.imageSize??ZQi),this._age=0,this._normalizedAge=0,this._billboard=void 0}Object.defineProperties(xke.prototype,{age:{get:function(){return this._age}},normalizedAge:{get:function(){return this._normalizedAge}}});var Sit=new V;xke.prototype.update=function(o,f){return V.multiplyByScalar(this.velocity,o,Sit),V.add(this.position,Sit,this.position),N(f)&&f(this,o),this._age+=o,this.life===Number.MAX_VALUE?this._normalizedAge=0:this._normalizedAge=this._age/this.life,this._age<=this.life};var Kfe=xke;function F2t(o){o=o??pi.EMPTY_OBJECT,this.time=o.time??0,this.minimum=o.minimum??0,this.maximum=o.maximum??50,this._complete=!1}Object.defineProperties(F2t.prototype,{complete:{get:function(){return this._complete}}});var D7=F2t;function B2t(o){}B2t.prototype.emit=function(o){At.throwInstantiationError()};var k2t=B2t,Pit=new at(1,1);function see(o){o=o??pi.EMPTY_OBJECT,this.show=o.show??!0,this.updateCallback=o.updateCallback,this.loop=o.loop??!0,this.image=o.image??void 0;let f=o.emitter;N(f)||(f=new lke(.5)),this._emitter=f,this._bursts=o.bursts,this._modelMatrix=Ee.clone(o.modelMatrix??Ee.IDENTITY),this._emitterModelMatrix=Ee.clone(o.emitterModelMatrix??Ee.IDENTITY),this._matrixDirty=!0,this._combinedMatrix=new Ee,this._startColor=ze.clone(o.color??o.startColor??ze.WHITE),this._endColor=ze.clone(o.color??o.endColor??ze.WHITE),this._startScale=o.scale??o.startScale??1,this._endScale=o.scale??o.endScale??1,this._emissionRate=o.emissionRate??5,this._minimumSpeed=o.speed??o.minimumSpeed??1,this._maximumSpeed=o.speed??o.maximumSpeed??1,this._minimumParticleLife=o.particleLife??o.minimumParticleLife??5,this._maximumParticleLife=o.particleLife??o.maximumParticleLife??5,this._minimumMass=o.mass??o.minimumMass??1,this._maximumMass=o.mass??o.maximumMass??1,this._minimumImageSize=at.clone(o.imageSize??o.minimumImageSize??Pit),this._maximumImageSize=at.clone(o.imageSize??o.maximumImageSize??Pit),this._sizeInMeters=o.sizeInMeters??!1,this._lifetime=o.lifetime??Number.MAX_VALUE,this._billboardCollection=void 0,this._particles=[],this._particlePool=[],this._previousTime=void 0,this._currentTime=0,this._carryOver=0,this._complete=new Or,this._isComplete=!1,this._updateParticlePool=!0,this._particleEstimate=0}Object.defineProperties(see.prototype,{emitter:{get:function(){return this._emitter},set:function(o){this._emitter=o}},bursts:{get:function(){return this._bursts},set:function(o){this._bursts=o,this._updateParticlePool=!0}},modelMatrix:{get:function(){return this._modelMatrix},set:function(o){this._matrixDirty=this._matrixDirty||!Ee.equals(this._modelMatrix,o),Ee.clone(o,this._modelMatrix)}},emitterModelMatrix:{get:function(){return this._emitterModelMatrix},set:function(o){this._matrixDirty=this._matrixDirty||!Ee.equals(this._emitterModelMatrix,o),Ee.clone(o,this._emitterModelMatrix)}},startColor:{get:function(){return this._startColor},set:function(o){ze.clone(o,this._startColor)}},endColor:{get:function(){return this._endColor},set:function(o){ze.clone(o,this._endColor)}},startScale:{get:function(){return this._startScale},set:function(o){this._startScale=o}},endScale:{get:function(){return this._endScale},set:function(o){this._endScale=o}},emissionRate:{get:function(){return this._emissionRate},set:function(o){this._emissionRate=o,this._updateParticlePool=!0}},minimumSpeed:{get:function(){return this._minimumSpeed},set:function(o){this._minimumSpeed=o}},maximumSpeed:{get:function(){return this._maximumSpeed},set:function(o){this._maximumSpeed=o}},minimumParticleLife:{get:function(){return this._minimumParticleLife},set:function(o){this._minimumParticleLife=o}},maximumParticleLife:{get:function(){return this._maximumParticleLife},set:function(o){this._maximumParticleLife=o,this._updateParticlePool=!0}},minimumMass:{get:function(){return this._minimumMass},set:function(o){this._minimumMass=o}},maximumMass:{get:function(){return this._maximumMass},set:function(o){this._maximumMass=o}},minimumImageSize:{get:function(){return this._minimumImageSize},set:function(o){this._minimumImageSize=o}},maximumImageSize:{get:function(){return this._maximumImageSize},set:function(o){this._maximumImageSize=o}},sizeInMeters:{get:function(){return this._sizeInMeters},set:function(o){this._sizeInMeters=o}},lifetime:{get:function(){return this._lifetime},set:function(o){this._lifetime=o}},complete:{get:function(){return this._complete}},isComplete:{get:function(){return this._isComplete}}});function eZi(o){let f=o._emissionRate,m=o._maximumParticleLife,x=0,v=o._bursts;if(N(v)){let S=v.length;for(let M=0;M<S;++M)x+=v[M].maximum}let y=o._billboardCollection,C=o.image,w=Math.ceil(f*m+x),T=o._particles,E=o._particlePool,A=Math.max(w-T.length-E.length,0);for(let S=0;S<A;++S){let M=new Kfe;M._billboard=y.add({image:C,show:!1}),E.push(M)}o._particleEstimate=w}function tZi(o){let f=o._particlePool.pop();return N(f)||(f=new Kfe),f}function iZi(o,f){o._particlePool.push(f)}function rZi(o){let f=o._particles,m=o._particlePool,x=o._billboardCollection,v=f.length,y=m.length,C=o._particleEstimate,w=y-Math.max(C-v-y,0);for(let T=w;T<y;++T){let E=m[T];x.remove(E._billboard)}m.length=w}function nZi(o){N(o._billboard)&&(o._billboard.show=!1)}function Iit(o,f){let m=f._billboard;N(m)||(m=f._billboard=o._billboardCollection.add({image:f.image})),m.width=f.imageSize.x,m.height=f.imageSize.y,m.position=f.position,m.sizeInMeters=o.sizeInMeters,m.show=!0;let x=Ce.lerp(f.startColor.red,f.endColor.red,f.normalizedAge),v=Ce.lerp(f.startColor.green,f.endColor.green,f.normalizedAge),y=Ce.lerp(f.startColor.blue,f.endColor.blue,f.normalizedAge),C=Ce.lerp(f.startColor.alpha,f.endColor.alpha,f.normalizedAge);m.color=new ze(x,v,y,C),m.scale=Ce.lerp(f.startScale,f.endScale,f.normalizedAge)}function oZi(o,f){f.startColor=ze.clone(o._startColor,f.startColor),f.endColor=ze.clone(o._endColor,f.endColor),f.startScale=o._startScale,f.endScale=o._endScale,f.image=o.image,f.life=Ce.randomBetween(o._minimumParticleLife,o._maximumParticleLife),f.mass=Ce.randomBetween(o._minimumMass,o._maximumMass),f.imageSize.x=Ce.randomBetween(o._minimumImageSize.x,o._maximumImageSize.x),f.imageSize.y=Ce.randomBetween(o._minimumImageSize.y,o._maximumImageSize.y),f._normalizedAge=0,f._age=0;let m=Ce.randomBetween(o._minimumSpeed,o._maximumSpeed);V.multiplyByScalar(f.velocity,m,f.velocity),o._particles.push(f)}function aZi(o,f){if(o._isComplete)return 0;f=Ce.mod(f,o._lifetime);let m=f*o._emissionRate,x=Math.floor(m);if(o._carryOver+=m-x,o._carryOver>1&&(x++,o._carryOver-=1),N(o.bursts)){let v=o.bursts.length;for(let y=0;y<v;y++){let C=o.bursts[y],w=o._currentTime;N(C)&&!C._complete&&w>C.time&&(x+=Ce.randomBetween(C.minimum,C.maximum),C._complete=!0)}}return x}var Vae=new V;see.prototype.update=function(o){if(!this.show)return;N(this._billboardCollection)||(this._billboardCollection=new ZS),this._updateParticlePool&&(eZi(this),this._updateParticlePool=!1);let f=0;this._previousTime&&(f=si.secondsDifference(o.time,this._previousTime)),f<0&&(f=0);let m=this._particles,x=this._emitter,v=this.updateCallback,y,C,w=m.length;for(y=0;y<w;++y)C=m[y],C.update(f,v)?Iit(this,C):(nZi(C),iZi(this,C),m[y]=m[w-1],--y,--w);m.length=w;let T=aZi(this,f);if(T>0&&N(x)){this._matrixDirty&&(this._combinedMatrix=Ee.multiply(this.modelMatrix,this.emitterModelMatrix,this._combinedMatrix),this._matrixDirty=!1);let E=this._combinedMatrix;for(y=0;y<T;y++)C=tZi(this),this._emitter.emit(C),V.add(C.position,C.velocity,Vae),Ee.multiplyByPoint(E,Vae,Vae),C.position=Ee.multiplyByPoint(E,C.position,C.position),V.subtract(Vae,C.position,C.velocity),V.normalize(C.velocity,C.velocity),oZi(this,C),Iit(this,C)}if(this._billboardCollection.update(o),this._previousTime=si.clone(o.time,this._previousTime),this._currentTime+=f,this._lifetime!==Number.MAX_VALUE&&this._currentTime>this._lifetime)if(this.loop){if(this._currentTime=Ce.mod(this._currentTime,this._lifetime),this.bursts){let E=this.bursts.length;for(y=0;y<E;y++)this.bursts[y]._complete=!1}}else this._isComplete=!0,this._complete.raiseEvent(this);o.frameNumber%120===0&&rZi(this)};see.prototype.isDestroyed=function(){return!1};see.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),Ir(this)};var QE=see;function Xw(){At.throwInstantiationError()}Xw.computeDefaultLevelZeroMaximumGeometricError=function(o){return o.ellipsoid.maximumRadius*2*Math.PI*.25/(65*o.getNumberOfXTilesAtLevel(0))};Object.defineProperties(Xw.prototype,{quadtree:{get:At.throwInstantiationError,set:At.throwInstantiationError},tilingScheme:{get:At.throwInstantiationError},errorEvent:{get:At.throwInstantiationError}});Xw.prototype.update=At.throwInstantiationError;Xw.prototype.beginUpdate=At.throwInstantiationError;Xw.prototype.endUpdate=At.throwInstantiationError;Xw.prototype.getLevelMaximumGeometricError=At.throwInstantiationError;Xw.prototype.loadTile=At.throwInstantiationError;Xw.prototype.computeTileVisibility=At.throwInstantiationError;Xw.prototype.showTileThisFrame=At.throwInstantiationError;Xw.prototype.computeDistanceToTile=At.throwInstantiationError;Xw.prototype.isDestroyed=At.throwInstantiationError;Xw.prototype.destroy=At.throwInstantiationError;var WU=Xw;function gke(o){o=o??1,this._radius=o??1}Object.defineProperties(gke.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});gke.prototype.emit=function(o){let f=Ce.randomBetween(0,Ce.TWO_PI),m=Ce.randomBetween(0,Ce.PI),x=Ce.randomBetween(0,this._radius),v=x*Math.cos(f)*Math.sin(m),y=x*Math.sin(f)*Math.sin(m),C=x*Math.cos(m);o.position=V.fromElements(v,y,C,o.position),o.velocity=V.normalize(o.position,o.velocity)};var R7=gke;function lee(){}lee.prototype.evaluate=function(o,f){At.throwInstantiationError()};lee.prototype.evaluateColor=function(o,f){At.throwInstantiationError()};lee.prototype.getShaderFunction=function(o,f,m,x){At.throwInstantiationError()};lee.prototype.getVariables=function(){At.throwInstantiationError()};var V2t=lee;function z9(o){this._ready=!1,this._provider=void 0,this._errorEvent=new Or,this._readyEvent=new Or,lZi(this,o)}Object.defineProperties(z9.prototype,{errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},ready:{get:function(){return this._ready}},provider:{get:function(){return this._provider}}});z9.fromWorldTerrain=function(o){return new z9(zfe(o))};z9.fromWorldBathymetry=function(o){return new z9(G4e(o))};function sZi(o,f){o.numberOfListeners>0?o.raiseEvent(f):console.error(f)}async function lZi(o,f){let m;try{m=await Promise.resolve(f),o._provider=m,o._ready=!0,o._readyEvent.raiseEvent(m)}catch(x){sZi(o._errorEvent,x)}}var _ke=z9;function L7(){}L7.prototype.boundingVolume=void 0;L7.prototype.boundingSphere=void 0;L7.prototype.distanceToCamera=function(o){At.throwInstantiationError()};L7.prototype.intersectPlane=function(o){At.throwInstantiationError()};L7.prototype.createDebugVolume=function(o){At.throwInstantiationError()};var z2t=L7;function uee(o){o=o??pi.EMPTY_OBJECT,this._tilingScheme=N(o.tilingScheme)?o.tilingScheme:new Xh({ellipsoid:o.ellipsoid}),this._color=o.color??ze.YELLOW,this._errorEvent=new Or,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0}Object.defineProperties(uee.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}});uee.prototype.getTileCredits=function(o,f,m){};uee.prototype.requestImage=function(o,f,m,x){let v=document.createElement("canvas");v.width=256,v.height=256;let y=v.getContext("2d"),C=this._color.toCssColorString();return y.strokeStyle=C,y.lineWidth=2,y.strokeRect(1,1,255,255),y.font="bold 25px Arial",y.textAlign="center",y.fillStyle=C,y.fillText(`L: ${m}`,124,86),y.fillText(`X: ${o}`,124,136),y.fillText(`Y: ${f}`,124,186),Promise.resolve(v)};uee.prototype.pickFeatures=function(o,f,m,x,v){};var cee=uee;function vke(o){At.throwInstantiationError()}vke.prototype.isReady=At.throwInstantiationError;vke.prototype.shouldDiscardImage=At.throwInstantiationError;var U2t=vke,uZi={START:0,LOADING:1,READY:2,UPSAMPLED_ONLY:3},H2t=Object.freeze(uZi);function $fe(o,f){this.show=!0,N(o)||(o=new Br),this.rectangle=Br.clone(o),N(f)||(f=zo.fromType(zo.ColorType,{color:new ze(1,1,1,1)})),this.material=f,this._material=void 0,this._overlayCommand=void 0,this._rs=void 0}$fe.prototype.update=function(o){if(!this.show)return;let f=this._rs;if((!N(f)||!Br.equals(f.viewport,this.rectangle))&&(this._rs=wn.fromCache({blending:Ou.ALPHA_BLEND,viewport:this.rectangle})),o.passes.render){let m=o.context;if(this._material!==this.material||!N(this._overlayCommand)){this._material=this.material,N(this._overlayCommand)&&this._overlayCommand.shaderProgram.destroy();let x=new $r({sources:[this._material.shaderSource,nke]});this._overlayCommand=m.createViewportQuadCommand(x,{renderState:this._rs,uniformMap:this._material._uniforms,owner:this}),this._overlayCommand.pass=Sr.OVERLAY}this._material.update(m),this._overlayCommand.renderState=this._rs,this._overlayCommand.uniformMap=this._material._uniforms,o.commandList.push(this._overlayCommand)}};$fe.prototype.isDestroyed=function(){return!1};$fe.prototype.destroy=function(){return N(this._overlayCommand)&&(this._overlayCommand.shaderProgram=this._overlayCommand.shaderProgram&&this._overlayCommand.shaderProgram.destroy()),Ir(this)};var O7=$fe;function yke(){At.throwInstantiationError()}Object.defineProperties(yke.prototype,{globalTransform:{get:At.throwInstantiationError},shapeTransform:{get:At.throwInstantiationError},shape:{get:At.throwInstantiationError},minBounds:{get:At.throwInstantiationError},maxBounds:{get:At.throwInstantiationError},dimensions:{get:At.throwInstantiationError},paddingBefore:{get:At.throwInstantiationError},paddingAfter:{get:At.throwInstantiationError},names:{get:At.throwInstantiationError},types:{get:At.throwInstantiationError},componentTypes:{get:At.throwInstantiationError},minimumValues:{get:At.throwInstantiationError},maximumValues:{get:At.throwInstantiationError},maximumTileCount:{get:At.throwInstantiationError},availableLevels:{get:At.throwInstantiationError},keyframeCount:{get:At.throwInstantiationError},timeIntervalCollection:{get:At.throwInstantiationError}});yke.prototype.requestData=function(o){At.throwInstantiationError()};var G2t=yke;function jU(){At.throwInstantiationError()}Object.defineProperties(jU.prototype,{orientedBoundingBox:{get:At.throwInstantiationError},boundingSphere:{get:At.throwInstantiationError},boundTransform:{get:At.throwInstantiationError},shapeTransform:{get:At.throwInstantiationError},shaderUniforms:{get:At.throwInstantiationError},shaderDefines:{get:At.throwInstantiationError},shaderMaximumIntersectionsLength:{get:At.throwInstantiationError}});jU.prototype.update=At.throwInstantiationError;jU.prototype.computeOrientedBoundingBoxForTile=At.throwInstantiationError;jU.prototype.computeOrientedBoundingBoxForSample=At.throwInstantiationError;jU.DefaultMinBounds=At.throwInstantiationError;jU.DefaultMaxBounds=At.throwInstantiationError;var W2t=jU,cZi=function(){var o=NAe.url;return function(f){return f=f||{},f.ready}}(),Gse={};Gse.onRuntimeInitialized||(Gse.onRuntimeInitialized=function(){},cZi(Gse));var j2t=Gse,ZX=E0(Knt(),1),q2t={};(function(o,f){o.FlowEcharts=f(ZX.default,o.Geoworld)})(q2t,function(o,f){return function(m){var x={};function v(y){if(x[y])return x[y].exports;var C=x[y]={i:y,l:!1,exports:{}};return m[y].call(C.exports,C,C.exports,v),C.l=!0,C.exports}return v.m=m,v.c=x,v.d=function(y,C,w){v.o(y,C)||Object.defineProperty(y,C,{enumerable:!0,get:w})},v.r=function(y){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},v.t=function(y,C){if(C&1&&(y=v(y)),C&8||C&4&&typeof y=="object"&&y&&y.__esModule)return y;var w=Object.create(null);if(v.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:y}),C&2&&typeof y!="string")for(var T in y)v.d(w,T,function(E){return y[E]}.bind(null,T));return w},v.n=function(y){var C=y&&y.__esModule?function(){return y.default}:function(){return y};return v.d(C,"a",C),C},v.o=function(y,C){return Object.prototype.hasOwnProperty.call(y,C)},v.p="",v(v.s=0)}([function(m,x,v){v(1);var y=v(7);m.exports=y},function(m,x,v){var y;y=function(C){return v(2).registerCoordinateSystem("GLMap",v(3)),v(5),v(6),v(2).registerAction({type:"GLMapRoam",event:"GLMapRoam",update:"updateLayout"},function(w,T){}),{version:"1.0.0"}}.call(x,v,x,m),y!==void 0&&(m.exports=y)},function(m,x){m.exports=o},function(m,x,v){var y;y=function(C){var w=v(2);function T(E,A){this._GLMap=E,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=A}return T.prototype.dimensions=["lng","lat"],T.prototype.setMapOffset=function(E){this._mapOffset=E},T.prototype.getBMap=function(){return this._GLMap},T.prototype.dataToPoint=function(E){var A=Ce.toRadians(80),S=[99999,99999],M=V.fromDegrees(E[0],E[1]);if(!M)return S;var I=this._GLMap.cartesianToCanvasCoordinates(M);if(!I)return S;var P=this._GLMap;return P.mode===Ti.SCENE3D&&V.angleBetween(P.camera.position,M)>A?!1:[I.x-this._mapOffset[0],I.y-this._mapOffset[1]]},T.prototype.pointToData=function(S){var A=this._mapOffset,S=this._bmap.project([S[0]+A[0],S[1]+A[1]]);return[S.lng,S.lat]},T.prototype.getViewRect=function(){var E=this._api;return new w.graphic.BoundingRect(0,0,E.getWidth(),E.getHeight())},T.prototype.getRoamTransform=function(){return w.matrix.create()},T.dimensions=T.prototype.dimensions,T.create=function(E,A){var S;E.eachComponent("GLMap",function(M){var I=A.getZr().painter.getViewportRoot(),P=w.glMap;S=new T(P,A),S.setMapOffset(M.__mapOffset||[0,0]),M.coordinateSystem=S}),E.eachSeries(function(M){M.get("coordinateSystem")==="GLMap"&&(M.coordinateSystem=S)})},T}.call(x,v,x,m),y!==void 0&&(m.exports=y)},function(m,x){m.exports=f},function(m,x,v){var y;y=function(C){return v(2).extendComponentModel({type:"GLMap",getBMap:function(){return this.__GLMap},defaultOption:{roam:!1}})}.call(x,v,x,m),y!==void 0&&(m.exports=y)},function(m,x,v){var y;y=function(C){return v(2).extendComponentView({type:"GLMap",init:function(w,T){this.api=T,ZX.default.glMap.postRender.addEventListener(this.moveHandler,this)},moveHandler:function(){this.api.dispatchAction({type:"GLMapRoam"})},render:function(w,T,E){},dispose:function(w,T){ZX.default.glMap.postRender.removeEventListener(this.moveHandler,this)}})}.call(x,v,x,m),y!==void 0&&(m.exports=y)},function(m,x){function v(y,C){this._mapContainer=y,this._overlay=this._createChartOverlay(),this._overlay.setOption(C)}v.prototype._createChartOverlay=function(){var y=this._mapContainer.scene;y.canvas.setAttribute("tabIndex",0);var C=document.createElement("div");return C.style.position="absolute",C.style.top=this._mapContainer.container.getBoundingClientRect().top+"px",C.style.left="0px",C.style.width=y.canvas.width+"px",C.style.height=y.canvas.height+"px",C.style.pointerEvents="none",C.setAttribute("id","echarts"),C.setAttribute("class","echartMap"),this._mapContainer.container.appendChild(C),this._echartsContainer=C,ZX.default.glMap=y,ZX.default.init(C)},v.prototype.dispose=function(){this._echartsContainer&&(this._mapContainer.container.removeChild(this._echartsContainer),this._echartsContainer=null),this._overlay&&(this._overlay.dispose(),this._overlay=null)},v.prototype.destroy=function(){this.dispose()},v.prototype.updateOverlay=function(y){this._overlay&&this._overlay.setOption(y)},v.prototype.getMap=function(){return this._mapContainer},v.prototype.getOverlay=function(){return this._overlay},m.exports=v}])});var Jfe=q2t.FlowEcharts,hZi=`in vec2 depth;
vec4 packDepth(float depth)
{
  const vec4 bias = vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);
@@ -21215,7 +21215,7 @@
              }
            }
        }
        `}),F=new _m({name:`${f}Composite`,stages:[L,O],inputPreviousStageTexture:!1});function B(H){Object.defineProperties(H,{showGlow:{get(){return T},set(G){T=G}},edgeGlow:{get(){return E},set(G){E=G}},edgeStrength:{get(){return A},set(G){A=G}},thresholdAngle:{get(){return x},set(G){x=G}},showOutlineOnly:{get(){return y},set(G){y=G}},edgeOnly:{get(){return S},set(G){S=G}},useSingleColor:{get(){return v},set(G){v=G}},outlineWidth:{get(){return m},set(G){m=G}},visibleEdgeColor:{get(){return C},set(G){C=G}},hiddenEdgeColor:{get(){return w},set(G){w=G}}})}return B(F),F._uniforms=F._uniforms||{},B(F._uniforms),F}function pee(o){this._primitive=o,this._primitive.ripple=!1,this._primitive.snow=!1,this._primitive.heightFog=!1,this._primitive.fogHeight=100,this._primitive.regionAlpha=1,this._primitive.regionGradientDistance=1,this._primitive.fogGradientDistance=100,this._ripple=!1,this._snow=!1,this._heightFog=!1}Object.defineProperties(pee.prototype,{ripple:{set:function(o){this._ripple!==o&&(this._primitive.snow=!1,this._primitive.heightFog=!1),this._primitive.ripple=o,this._ripple=o}},snow:{set:function(o){this._snow!==o&&(this._primitive.ripple=!1,this._primitive.heightFog=!1),this._primitive.snow=o,this._snow=o}},heightFog:{set:function(o){this._heightFog!==o&&(this._primitive.snow=!1,this._primitive.ripple=!1),this._primitive.heightFog=o,this._heightFog=o}},fogHeight:{set:function(o){this._primitive.fogHeight=o}},fogGradientDistance:{set:function(o){this._primitive.fogGradientDistance=o}},regionAlpha:{set:function(o){this._primitive.regionAlpha=o}},regionGradientDistance:{set:function(o){this._primitive.regionGradientDistance=o}},disabled:{set:function(o){this.ripple=o,this.snow=o,this.heightFog=o,this._primitive.ripple=!1,this._primitive.snow=!1,this._primitive.heightFog=!1}}});pee.prototype.addPolygon=function(o){this._primitive.addFlattenPolygon(o)};pee.prototype.clearPolygon=function(){this._primitive.clearFlattenPolygon()};pee.prototype.update=function(){this._primitive.update()};var jke=pee;function mee(o){this._terrainFlatten=new qU(o,!1,!0),this._terrainFlatten.ripple=!1,this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1,this._terrainFlatten.fogHeight=100,this._terrainFlatten.regionAlpha=1,this._terrainFlatten.regionGradientDistance=10,this._terrainFlatten.fogGradientDistance=100,this._ripple=!1,this._snow=!1,this._heightFog=!1}Object.defineProperties(mee.prototype,{ripple:{set:function(o){this._ripple!==o&&(this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1),this._terrainFlatten.ripple=o,this._ripple=o}},snow:{set:function(o){this._snow!==o&&(this._terrainFlatten.ripple=!1,this._terrainFlatten.heightFog=!1),this._terrainFlatten.snow=o,this._snow=o}},heightFog:{set:function(o){this._heightFog!==o&&(this._terrainFlatten.snow=!1,this._terrainFlatten.ripple=!1),this._terrainFlatten.heightFog=o,this._heightFog=o}},fogHeight:{set:function(o){this._terrainFlatten.fogHeight=o}},fogGradientDistance:{set:function(o){this._terrainFlatten.fogGradientDistance=o}},regionAlpha:{set:function(o){this._terrainFlatten.regionAlpha=o}},regionGradientDistance:{set:function(o){this._terrainFlatten.regionGradientDistance=o}},disabled:{set:function(o){this.ripple=o,this.snow=o,this.heightFog=o,this._terrainFlatten.ripple=!1,this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1}}});mee.prototype.addPolygon=function(o){this._terrainFlatten.addPolygon(o)};mee.prototype.clearPolygon=function(){this._terrainFlatten.clearPolygon()};mee.prototype.update=function(){this._terrainFlatten.update()};var qke=mee;function wer(o,f,m){let x=new at(15,30),v=new V,y=function(C,w){v=V.normalize(C.position,v),v=V.multiplyByScalar(v,-1050,v),C.position=V.add(C.position,v,C.position);let T=V.distance(o.camera.position,C.position),E=1;m<1e5&&(E=.1/(m/1e5));let A=m*E;T>A?C.endColor.alpha=0:C.endColor.alpha=ze.BLUE.alpha/(T/A+.1)};return new QE({modelMatrix:new Ee.fromTranslation(f),speed:-1,lifetime:15,emitter:new Xfe(new V(m,m,m)),startScale:5,endScale:0,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/littleRain.png`,emissionRate:9e3,startColor:new ze(.8,.8,.8,0),endColor:new ze(.8,.8,.8,.9),imageSize:x,updateCallback:y})}function Ter(o,f,m){let x=new at(12,12),v=new at(12*2,12*2),y=new V,C=function(w,T){y=V.normalize(w.position,y),V.multiplyByScalar(y,Ce.randomBetween(-30,-300),y),w.velocity=V.add(w.velocity,y,w.velocity);let E=V.distance(o.camera.position,w.position);E>m?w.endColor.alpha=0:w.endColor.alpha=1/(E/m+.1)};return new QE({modelMatrix:new Ee.fromTranslation(f),minimumSpeed:-1,maximumSpeed:0,lifetime:15,emitter:new Xfe(new V(m,m,m)),startScale:.5,endScale:1,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/snow.png`,emissionRate:7e3,startColor:ze.WHITE.withAlpha(0),endColor:ze.WHITE.withAlpha(1),minimumImageSize:x,maximumImageSize:v,updateCallback:C})}function Eer(o,f){let m=Mr.eastNorthUpToFixedFrame(o),x=Ee.multiplyByPoint(m,new V(f*.5,f*.5,0),new V),v=Ee.multiplyByPoint(m,new V(f*.5,-f*.5,0),new V),y=Ee.multiplyByPoint(m,new V(-f*.5,-f*.5,0),new V),C=Ee.multiplyByPoint(m,new V(-f*.5,f*.5,0),new V),w=kt.fromCartesian(x),T=kt.fromCartesian(v),E=kt.fromCartesian(y),A=kt.fromCartesian(C);return[Ce.toDegrees(w.longitude),Ce.toDegrees(w.latitude),-1e4,Ce.toDegrees(T.longitude),Ce.toDegrees(T.latitude),-1e4,Ce.toDegrees(E.longitude),Ce.toDegrees(E.latitude),-1e4,Ce.toDegrees(A.longitude),Ce.toDegrees(A.latitude),-1e4]}function Sc(o,f,m,x){this._scene=o,this._primitive=f,this._position=m,this._radius=x,f&&(this._tilesetWeather=new jke(f)),o&&(this._terrainWeather=new qke(o)),this._enableWeatherType=Sc.TYPE_NONE,this._region=Eer(m,x),this._skyAtmosphereHueShift=o.skyAtmosphere.hueShift,this._skyAtmosphereSaturationShift=o.skyAtmosphere.saturationShift,this._skyAtmosphereBrightnessShift=o.skyAtmosphere.brightnessShift,this._fogDensity=o.fog.density,this._fogMinimumBrightness=o.fog.minimumBrightness}Object.defineProperties(Sc.prototype,{enableWeatherType:{get:function(){return this._enableWeatherType},set:function(o){this._enableWeatherType!==o&&(this._enableWeatherType!==Sc.TYPE_RAIN&&this._enableWeatherType!==Sc.TYPE_SNOW&&this._enableWeatherType!==Sc.TYPE_HEIGHT_FOG&&(o===Sc.TYPE_RAIN||o===Sc.TYPE_SNOW||o===Sc.TYPE_HEIGHT_FOG)&&(this.addPolygon(this._region),this.update()),(this._enableWeatherType===Sc.TYPE_RAIN||this._enableWeatherType===Sc.TYPE_SNOW||this._enableWeatherType===Sc.TYPE_HEIGHT_FOG)&&o!==Sc.TYPE_RAIN&&o!==Sc.TYPE_SNOW&&o!==Sc.TYPE_HEIGHT_FOG&&this.clearPolygon(),o===Sc.TYPE_RAIN?this.enableRainSnowFog(o):o===Sc.TYPE_SNOW?this.enableRainSnowFog(o):o===Sc.TYPE_HEIGHT_FOG?this.enableRainSnowFog(o):o===Sc.TYPE_NONE&&this.disableRainSnowFog(),this._enableWeatherType=o)}},fogHeight:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.fogHeight=o),this._terrainWeather&&(this._terrainWeather.fogHeight=o)}},regionAlpha:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.regionAlpha=o),this._terrainWeather&&(this._terrainWeather.regionAlpha=o)}},fogGradientDistance:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.fogGradientDistance=o),this._terrainWeather&&(this._terrainWeather.fogGradientDistance=o)}},regionGradientDistance:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.regionGradientDistance=o),this._terrainWeather&&(this._terrainWeather.regionGradientDistance=o)}}});Sc.prototype.enableRainSnowFog=function(o){let f=this._scene,m=this._position,x=this._radius;f.skyAtmosphere.hueShift=-.97,f.skyAtmosphere.saturationShift=.25,f.skyAtmosphere.brightnessShift=-.4,f.fog.density=25e-5,f.fog.minimumBrightness=.005,this._weatherParticle&&f.primitives.remove(this._weatherParticle),o===Sc.TYPE_RAIN?(this._weatherParticle=wer(f,m,x),f.primitives.add(this._weatherParticle)):o===Sc.TYPE_SNOW&&(this._weatherParticle=Ter(f,m,x),f.primitives.add(this._weatherParticle)),this._terrainWeather&&(this._terrainWeather.disabled=!0,o===Sc.TYPE_RAIN?this._terrainWeather.ripple=!0:o===Sc.TYPE_SNOW?this._terrainWeather.snow=!0:o===Sc.TYPE_HEIGHT_FOG?this._terrainWeather.heightFog=!0:o===Sc.TYPE_NONE&&(this._terrainWeather.disabled=!0)),this._tilesetWeather&&(this._tilesetWeather.disabled=!0,o===Sc.TYPE_RAIN?this._tilesetWeather.ripple=!0:o===Sc.TYPE_SNOW?this._tilesetWeather.snow=!0:o===Sc.TYPE_HEIGHT_FOG?this._tilesetWeather.heightFog=!0:o===Sc.TYPE_NONE&&(this._tilesetWeather.disabled=!0))};Sc.prototype.disableRainSnowFog=function(){let o=this._scene;o.skyAtmosphere.hueShift=this._skyAtmosphereHueShift,o.skyAtmosphere.saturationShift=this._skyAtmosphereSaturationShift,o.skyAtmosphere.brightnessShift=this._skyAtmosphereBrightnessShift,o.fog.density=this._fogDensity,o.fog.minimumBrightness=this._fogMinimumBrightness,this._weatherParticle&&o.primitives.remove(this._weatherParticle)};Sc.prototype.addPolygon=function(){if(this._terrainWeather&&this._terrainWeather.addPolygon(this._region),this._tilesetWeather){let o=_c.fromPositions({positions:V.fromDegreesArrayHeights(this._region),perPositionHeight:!0});this._tilesetWeather.addPolygon(o)}};Sc.prototype.clearPolygon=function(){this._terrainWeather&&this._terrainWeather.clearPolygon(),this._tilesetWeather&&this._tilesetWeather.clearPolygon()};Sc.prototype.update=function(){this._terrainWeather&&this._terrainWeather.update(),this._tilesetWeather};Sc.TYPE_RAIN=0;Sc.TYPE_SNOW=1;Sc.TYPE_HEIGHT_FOG=2;Sc.TYPE_NONE=3;var i0e=Sc,URr=new Gx({pass:Lh.PICK}),Aer=new Gx({pass:Lh.RENDER}),Ser=new ze(0,0,0,0);function YU(o){this.scene=o.scene;let f=this.scene.context;this.boxHeight=o.boxHeight,this.centerPosition=kt.clone(o.centerPosition,new kt(0,0,0)),this.size=o.size,this.viewPort=new Br(0,0,f.drawingBufferWidth,f.drawingBufferHeight),this.rect=this.calcRect(this.centerPosition,this.boxHeight,this.size),this.depthTexture=null,this.colorTexture=null,this.init()}YU.prototype.calcRect=function(o,f,m){o.height+=f;let x=kt.toCartesian(o,Ei.WGS84,new V),v={heading:0,pitch:-90*3.1415926/180,roll:0};return{position:x,orientation:v,size:m}};YU.prototype.createPassState=function(o){let f=new kp(o);return f.blendingEnabled=!1,f.scissorTest={enabled:!1,rectangle:new Br},f.viewport=new Br,f};function Per(o,f,m,x){let{width:v,height:y}=f;return Br.clone(f,x.scissorTest.rectangle),m.update(o,v,y),x.framebuffer=m.framebuffer,x.viewport.width=v,x.viewport.height=y,x}function Ier(o,f,m,x){let{context:v,frameState:y}=o,C=v.uniformState,w=f;o.view=w,Per(v,w.viewport,m,x),o.jobScheduler.disableThisFrame(),o.updateFrameState(),y.invertClassification=!1,y.passes.pick=!1,y.passes.render=!0,y.tilesetPassState=Aer,y.passes.offscreen=!0,y.passes.heightField=!0,C.update(y),o.updateEnvironment(),o.updateAndExecuteCommands(x,Ser);let T=w.frustumCommandsList.length;if(console.log("numFrustums:",T),o.resolveFramebuffers(x),o.context.depthTexture){let E=w.frustumCommandsList.length;for(let A=0;A<E;++A){let S=o.picking.getPickDepth(o,A).getDepth(v,10,10);if(S&&S>0&&S<1){let M=w.frustumCommandsList[A],I=M.near*(A!==0?o.opaqueFrustumNearOffset:1),P=M.far,D=I+S*(P-I);console.log("depth",S),console.log("near",I),console.log("far",P),console.log("distance",D);break}}}return w.globeDepth.executeCopyDepth(v,x),o.view=o.defaultView,v.endFrame(),w.globeDepth._copyDepthFramebuffer.getColorTexture()}YU.prototype.init=function(){let o=this.scene,f=o.context,m=this.rect,x=this.boxHeight,v=this.viewPort,y=new Ks(o);y.frustum=new gs({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x}),y.setView({destination:m.position,orientation:m.orientation,endTransform:Ee.IDENTITY}),y.frustum=new gs({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x});let C=new Yw(o,y,v),w=new ih({name:"yes"}),T=this.createPassState(f),E=this;E.depthTexture=Ier(o,C,w,T),E.colorTexture=w.getColorTexture(0)};YU.prototype.getDepthTexture=function(){return this.depthTexture};YU.prototype.getColorTexture=function(){return this.colorTexture};YU.prototype.destroy=function(){};var Yke=YU,L6={baseShader:{shader:`
        `}),F=new _m({name:`${f}Composite`,stages:[L,O],inputPreviousStageTexture:!1});function B(H){Object.defineProperties(H,{showGlow:{get(){return T},set(G){T=G}},edgeGlow:{get(){return E},set(G){E=G}},edgeStrength:{get(){return A},set(G){A=G}},thresholdAngle:{get(){return x},set(G){x=G}},showOutlineOnly:{get(){return y},set(G){y=G}},edgeOnly:{get(){return S},set(G){S=G}},useSingleColor:{get(){return v},set(G){v=G}},outlineWidth:{get(){return m},set(G){m=G}},visibleEdgeColor:{get(){return C},set(G){C=G}},hiddenEdgeColor:{get(){return w},set(G){w=G}}})}return B(F),F._uniforms=F._uniforms||{},B(F._uniforms),F}function pee(o){this._primitive=o,this._primitive.ripple=!1,this._primitive.snow=!1,this._primitive.heightFog=!1,this._primitive.fogHeight=100,this._primitive.regionAlpha=1,this._primitive.regionGradientDistance=1,this._primitive.fogGradientDistance=100,this._ripple=!1,this._snow=!1,this._heightFog=!1}Object.defineProperties(pee.prototype,{ripple:{set:function(o){this._ripple!==o&&(this._primitive.snow=!1,this._primitive.heightFog=!1),this._primitive.ripple=o,this._ripple=o}},snow:{set:function(o){this._snow!==o&&(this._primitive.ripple=!1,this._primitive.heightFog=!1),this._primitive.snow=o,this._snow=o}},heightFog:{set:function(o){this._heightFog!==o&&(this._primitive.snow=!1,this._primitive.ripple=!1),this._primitive.heightFog=o,this._heightFog=o}},fogHeight:{set:function(o){this._primitive.fogHeight=o}},fogGradientDistance:{set:function(o){this._primitive.fogGradientDistance=o}},regionAlpha:{set:function(o){this._primitive.regionAlpha=o}},regionGradientDistance:{set:function(o){this._primitive.regionGradientDistance=o}},disabled:{set:function(o){this.ripple=o,this.snow=o,this.heightFog=o,this._primitive.ripple=!1,this._primitive.snow=!1,this._primitive.heightFog=!1}}});pee.prototype.addPolygon=function(o){this._primitive.addFlattenPolygon(o)};pee.prototype.clearPolygon=function(){this._primitive.clearFlattenPolygon()};pee.prototype.update=function(){this._primitive.update()};var jke=pee;function mee(o){this._terrainFlatten=new qU(o,!1,!0),this._terrainFlatten.ripple=!1,this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1,this._terrainFlatten.fogHeight=100,this._terrainFlatten.regionAlpha=1,this._terrainFlatten.regionGradientDistance=10,this._terrainFlatten.fogGradientDistance=100,this._ripple=!1,this._snow=!1,this._heightFog=!1}Object.defineProperties(mee.prototype,{ripple:{set:function(o){this._ripple!==o&&(this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1),this._terrainFlatten.ripple=o,this._ripple=o}},snow:{set:function(o){this._snow!==o&&(this._terrainFlatten.ripple=!1,this._terrainFlatten.heightFog=!1),this._terrainFlatten.snow=o,this._snow=o}},heightFog:{set:function(o){this._heightFog!==o&&(this._terrainFlatten.snow=!1,this._terrainFlatten.ripple=!1),this._terrainFlatten.heightFog=o,this._heightFog=o}},fogHeight:{set:function(o){this._terrainFlatten.fogHeight=o}},fogGradientDistance:{set:function(o){this._terrainFlatten.fogGradientDistance=o}},regionAlpha:{set:function(o){this._terrainFlatten.regionAlpha=o}},regionGradientDistance:{set:function(o){this._terrainFlatten.regionGradientDistance=o}},disabled:{set:function(o){this.ripple=o,this.snow=o,this.heightFog=o,this._terrainFlatten.ripple=!1,this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1}}});mee.prototype.addPolygon=function(o){this._terrainFlatten.addPolygon(o)};mee.prototype.clearPolygon=function(){this._terrainFlatten.clearPolygon()};mee.prototype.update=function(){this._terrainFlatten.update()};var qke=mee;function wer(o,f,m){let x=new at(15,30),v=new V,y=function(C,w){v=V.normalize(C.position,v),v=V.multiplyByScalar(v,-1050,v),C.position=V.add(C.position,v,C.position);let T=V.distance(o.camera.position,C.position),E=1;m<1e5&&(E=.1/(m/1e5));let A=m*E;T>A?C.endColor.alpha=0:C.endColor.alpha=ze.BLUE.alpha/(T/A+.1)};return new QE({modelMatrix:new Ee.fromTranslation(f),speed:-1,lifetime:15,emitter:new Yfe(new V(m,m,m)),startScale:5,endScale:0,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/littleRain.png`,emissionRate:9e3,startColor:new ze(.8,.8,.8,0),endColor:new ze(.8,.8,.8,.9),imageSize:x,updateCallback:y})}function Ter(o,f,m){let x=new at(12,12),v=new at(12*2,12*2),y=new V,C=function(w,T){y=V.normalize(w.position,y),V.multiplyByScalar(y,Ce.randomBetween(-30,-300),y),w.velocity=V.add(w.velocity,y,w.velocity);let E=V.distance(o.camera.position,w.position);E>m?w.endColor.alpha=0:w.endColor.alpha=1/(E/m+.1)};return new QE({modelMatrix:new Ee.fromTranslation(f),minimumSpeed:-1,maximumSpeed:0,lifetime:15,emitter:new Yfe(new V(m,m,m)),startScale:.5,endScale:1,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/snow.png`,emissionRate:7e3,startColor:ze.WHITE.withAlpha(0),endColor:ze.WHITE.withAlpha(1),minimumImageSize:x,maximumImageSize:v,updateCallback:C})}function Eer(o,f){let m=Mr.eastNorthUpToFixedFrame(o),x=Ee.multiplyByPoint(m,new V(f*.5,f*.5,0),new V),v=Ee.multiplyByPoint(m,new V(f*.5,-f*.5,0),new V),y=Ee.multiplyByPoint(m,new V(-f*.5,-f*.5,0),new V),C=Ee.multiplyByPoint(m,new V(-f*.5,f*.5,0),new V),w=kt.fromCartesian(x),T=kt.fromCartesian(v),E=kt.fromCartesian(y),A=kt.fromCartesian(C);return[Ce.toDegrees(w.longitude),Ce.toDegrees(w.latitude),-1e4,Ce.toDegrees(T.longitude),Ce.toDegrees(T.latitude),-1e4,Ce.toDegrees(E.longitude),Ce.toDegrees(E.latitude),-1e4,Ce.toDegrees(A.longitude),Ce.toDegrees(A.latitude),-1e4]}function Sc(o,f,m,x){this._scene=o,this._primitive=f,this._position=m,this._radius=x,f&&(this._tilesetWeather=new jke(f)),o&&(this._terrainWeather=new qke(o)),this._enableWeatherType=Sc.TYPE_NONE,this._region=Eer(m,x),this._skyAtmosphereHueShift=o.skyAtmosphere.hueShift,this._skyAtmosphereSaturationShift=o.skyAtmosphere.saturationShift,this._skyAtmosphereBrightnessShift=o.skyAtmosphere.brightnessShift,this._fogDensity=o.fog.density,this._fogMinimumBrightness=o.fog.minimumBrightness}Object.defineProperties(Sc.prototype,{enableWeatherType:{get:function(){return this._enableWeatherType},set:function(o){this._enableWeatherType!==o&&(this._enableWeatherType!==Sc.TYPE_RAIN&&this._enableWeatherType!==Sc.TYPE_SNOW&&this._enableWeatherType!==Sc.TYPE_HEIGHT_FOG&&(o===Sc.TYPE_RAIN||o===Sc.TYPE_SNOW||o===Sc.TYPE_HEIGHT_FOG)&&(this.addPolygon(this._region),this.update()),(this._enableWeatherType===Sc.TYPE_RAIN||this._enableWeatherType===Sc.TYPE_SNOW||this._enableWeatherType===Sc.TYPE_HEIGHT_FOG)&&o!==Sc.TYPE_RAIN&&o!==Sc.TYPE_SNOW&&o!==Sc.TYPE_HEIGHT_FOG&&this.clearPolygon(),o===Sc.TYPE_RAIN?this.enableRainSnowFog(o):o===Sc.TYPE_SNOW?this.enableRainSnowFog(o):o===Sc.TYPE_HEIGHT_FOG?this.enableRainSnowFog(o):o===Sc.TYPE_NONE&&this.disableRainSnowFog(),this._enableWeatherType=o)}},fogHeight:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.fogHeight=o),this._terrainWeather&&(this._terrainWeather.fogHeight=o)}},regionAlpha:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.regionAlpha=o),this._terrainWeather&&(this._terrainWeather.regionAlpha=o)}},fogGradientDistance:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.fogGradientDistance=o),this._terrainWeather&&(this._terrainWeather.fogGradientDistance=o)}},regionGradientDistance:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.regionGradientDistance=o),this._terrainWeather&&(this._terrainWeather.regionGradientDistance=o)}}});Sc.prototype.enableRainSnowFog=function(o){let f=this._scene,m=this._position,x=this._radius;f.skyAtmosphere.hueShift=-.97,f.skyAtmosphere.saturationShift=.25,f.skyAtmosphere.brightnessShift=-.4,f.fog.density=25e-5,f.fog.minimumBrightness=.005,this._weatherParticle&&f.primitives.remove(this._weatherParticle),o===Sc.TYPE_RAIN?(this._weatherParticle=wer(f,m,x),f.primitives.add(this._weatherParticle)):o===Sc.TYPE_SNOW&&(this._weatherParticle=Ter(f,m,x),f.primitives.add(this._weatherParticle)),this._terrainWeather&&(this._terrainWeather.disabled=!0,o===Sc.TYPE_RAIN?this._terrainWeather.ripple=!0:o===Sc.TYPE_SNOW?this._terrainWeather.snow=!0:o===Sc.TYPE_HEIGHT_FOG?this._terrainWeather.heightFog=!0:o===Sc.TYPE_NONE&&(this._terrainWeather.disabled=!0)),this._tilesetWeather&&(this._tilesetWeather.disabled=!0,o===Sc.TYPE_RAIN?this._tilesetWeather.ripple=!0:o===Sc.TYPE_SNOW?this._tilesetWeather.snow=!0:o===Sc.TYPE_HEIGHT_FOG?this._tilesetWeather.heightFog=!0:o===Sc.TYPE_NONE&&(this._tilesetWeather.disabled=!0))};Sc.prototype.disableRainSnowFog=function(){let o=this._scene;o.skyAtmosphere.hueShift=this._skyAtmosphereHueShift,o.skyAtmosphere.saturationShift=this._skyAtmosphereSaturationShift,o.skyAtmosphere.brightnessShift=this._skyAtmosphereBrightnessShift,o.fog.density=this._fogDensity,o.fog.minimumBrightness=this._fogMinimumBrightness,this._weatherParticle&&o.primitives.remove(this._weatherParticle)};Sc.prototype.addPolygon=function(){if(this._terrainWeather&&this._terrainWeather.addPolygon(this._region),this._tilesetWeather){let o=_c.fromPositions({positions:V.fromDegreesArrayHeights(this._region),perPositionHeight:!0});this._tilesetWeather.addPolygon(o)}};Sc.prototype.clearPolygon=function(){this._terrainWeather&&this._terrainWeather.clearPolygon(),this._tilesetWeather&&this._tilesetWeather.clearPolygon()};Sc.prototype.update=function(){this._terrainWeather&&this._terrainWeather.update(),this._tilesetWeather};Sc.TYPE_RAIN=0;Sc.TYPE_SNOW=1;Sc.TYPE_HEIGHT_FOG=2;Sc.TYPE_NONE=3;var i0e=Sc,URr=new Gx({pass:Lh.PICK}),Aer=new Gx({pass:Lh.RENDER}),Ser=new ze(0,0,0,0);function YU(o){this.scene=o.scene;let f=this.scene.context;this.boxHeight=o.boxHeight,this.centerPosition=kt.clone(o.centerPosition,new kt(0,0,0)),this.size=o.size,this.viewPort=new Br(0,0,f.drawingBufferWidth,f.drawingBufferHeight),this.rect=this.calcRect(this.centerPosition,this.boxHeight,this.size),this.depthTexture=null,this.colorTexture=null,this.init()}YU.prototype.calcRect=function(o,f,m){o.height+=f;let x=kt.toCartesian(o,Ei.WGS84,new V),v={heading:0,pitch:-90*3.1415926/180,roll:0};return{position:x,orientation:v,size:m}};YU.prototype.createPassState=function(o){let f=new kp(o);return f.blendingEnabled=!1,f.scissorTest={enabled:!1,rectangle:new Br},f.viewport=new Br,f};function Per(o,f,m,x){let{width:v,height:y}=f;return Br.clone(f,x.scissorTest.rectangle),m.update(o,v,y),x.framebuffer=m.framebuffer,x.viewport.width=v,x.viewport.height=y,x}function Ier(o,f,m,x){let{context:v,frameState:y}=o,C=v.uniformState,w=f;o.view=w,Per(v,w.viewport,m,x),o.jobScheduler.disableThisFrame(),o.updateFrameState(),y.invertClassification=!1,y.passes.pick=!1,y.passes.render=!0,y.tilesetPassState=Aer,y.passes.offscreen=!0,y.passes.heightField=!0,C.update(y),o.updateEnvironment(),o.updateAndExecuteCommands(x,Ser);let T=w.frustumCommandsList.length;if(console.log("numFrustums:",T),o.resolveFramebuffers(x),o.context.depthTexture){let E=w.frustumCommandsList.length;for(let A=0;A<E;++A){let S=o.picking.getPickDepth(o,A).getDepth(v,10,10);if(S&&S>0&&S<1){let M=w.frustumCommandsList[A],I=M.near*(A!==0?o.opaqueFrustumNearOffset:1),P=M.far,D=I+S*(P-I);console.log("depth",S),console.log("near",I),console.log("far",P),console.log("distance",D);break}}}return w.globeDepth.executeCopyDepth(v,x),o.view=o.defaultView,v.endFrame(),w.globeDepth._copyDepthFramebuffer.getColorTexture()}YU.prototype.init=function(){let o=this.scene,f=o.context,m=this.rect,x=this.boxHeight,v=this.viewPort,y=new Ks(o);y.frustum=new gs({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x}),y.setView({destination:m.position,orientation:m.orientation,endTransform:Ee.IDENTITY}),y.frustum=new gs({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x});let C=new Yw(o,y,v),w=new ih({name:"yes"}),T=this.createPassState(f),E=this;E.depthTexture=Ier(o,C,w,T),E.colorTexture=w.getColorTexture(0)};YU.prototype.getDepthTexture=function(){return this.depthTexture};YU.prototype.getColorTexture=function(){return this.colorTexture};YU.prototype.destroy=function(){};var Yke=YU,L6={baseShader:{shader:`
     const int textureSize = 512;
    // Render
    //const vec3 backgroundColor = vec3(0.2);
@@ -22415,7 +22415,7 @@
  void main() {
    getColor();
  }
  `;function Yit(o,f,m,x){let v=new Uint8Array(f),y=Math.ceil(Math.sqrt(v.length));return new B4e({width:m,height:m,depth:m,context:o,pixelFormat:x?an.RGBA:an.RGB,pixelDataType:bn.UNSIGNED_BYTE,source:{width:y,height:y,arrayBufferView:v},sampler:new aa({wrapR:io.MIRRORED_REPEAT,wrapS:io.MIRRORED_REPEAT,wrapT:io.MIRRORED_REPEAT,minificationFilter:na.LINEAR,magnificationFilter:pl.LINEAR})})}function Xit(o,f,m){let x=f;return new Wn({context:o,source:x,sampler:new aa({wrapS:io.MIRRORED_REPEAT,wrapT:io.MIRRORED_REPEAT,minificationFilter:na.LINEAR,magnificationFilter:pl.LINEAR})})}function Jer(o){let f=[],m=o.detail_noise_high,x=new Wr({url:m,queryParameters:{format:"bin"}});f.push(x.fetchArrayBuffer());let v=o.detail_noise,y=new Wr({url:v,queryParameters:{format:"bin"}});f.push(y.fetchArrayBuffer());let C=o.weather,w=new Wr({url:C,queryParameters:{format:"png"}});f.push(w.fetchImage());let T=o.mark_noise,E=new Wr({url:T,queryParameters:{format:"png"}});return f.push(E.fetchImage()),Promise.all(f)}function xee(o){this._coordinate=o.coordinate,this._modelMatrix=null,this._modelMatrixDirty=!0,this._cloudParam=o.cloudParam;let f=o.urls,m=o.viewer;this._viewer=m;let x=m.scene.camera.viewMatrix;this._enable=!0,this._postProcess=null;let v=this;Jer(f).then(function(y){let C=v.getUniforms(x,m.scene.context,y);v._postProcess=m.scene.postProcessStages.add(new Ua({fragmentShader:$er,uniforms:C}))}).catch(function(y){console.log(y)})}xee.prototype.getModelMatrix=function(o){if(this._modelMatrixDirty){let f=o.cartographicPosition,m=o.height,x=o.size,v=Ee.fromScale(x),y=Mr.eastNorthUpToFixedFrame(V.fromDegrees(f.x,f.y));Ee.multiply(y,v,v);let C=Ee.fromTranslation(new V(0,0,m));Ee.multiply(C,v,v),this._modelMatrixDirty=!1,this._modelMatrix=v}return this._modelMatrix};xee.prototype.getUniforms=function(o,f,m){let x=new Ee,v=new Ee,y=new Ee,C=0,w=null,T=null,E=null,A=null,S=this;return{u_inversModelView:function(){let M=S.getModelMatrix(S._coordinate);return Ee.multiply(o,M,x),Ee.inverse(x,v),v},u_inversModelMatrix:function(){let M=S.getModelMatrix(S._coordinate);return Ee.inverse(M,y),y},u_time:function(){return C+=.001,C},detail_map_high:function(){return T||(T=Yit(f,m[0],32,!1)),T},detail_map:function(){return w||(w=Yit(f,m[1],128,!0)),w},weather_map:function(){return E||(E=Xit(f,m[2],512)),E},mark_noise:function(){return A||(A=Xit(f,m[3],512)),A},wind_speed:function(){return S._cloudParam.wind_speed},wind_direction:function(){let M=new at;return M.x=S._cloudParam.wind_direction_x,M.z=S._cloudParam.wind_direction_z,M},global_coverage:function(){return S._cloudParam.global_coverage},global_density:function(){return S._cloudParam.global_density},global_lightAbsorption:function(){return S._cloudParam.global_lightAbsorption},cloud_in_scatter:function(){return S._cloudParam.cloud_in_scatter},cloud_out_scatter:function(){return S._cloudParam.cloud_out_scatter},cloud_scatter_ratio:function(){return S._cloudParam.cloud_scatter_ratio},cloud_silver_intensity:function(){return S._cloudParam.cloud_silver_intensity},cloud_silver_exponent:function(){return S._cloudParam.cloud_silver_exponent},cloud_out_scatter_ambient:function(){return S._cloudParam.cloud_out_scatter_ambient},wind_animation:function(){return S._cloudParam.wind_animation},use_blue_noise:function(){return S._cloudParam.use_blue_noise},use_quarter_update:function(){return S._cloudParam.use_quarter_update},highlightScale:function(){return S._cloudParam.highlightScale},backScale:function(){return S._cloudParam.backScale},attenuationScale:function(){return S._cloudParam.attenuationScale}}};Object.defineProperties(xee.prototype,{enable:{set:function(o){this._enable=o,this._postProcess.enabled=o},get:function(){return this._enable}},coordinate:{get:function(){return this._coordinate}},cloudParam:{get:function(){return this._cloudParam}}});xee.prototype.update=function(){N(this._postProcess)&&this._enable&&(this._viewer.camera.positionCartographic.height>5e5?this._postProcess.enabled=!1:this._postProcess.enabled=!0)};var a0e=xee,Kit={baseShader:{shader:`
  `;function Yit(o,f,m,x){let v=new Uint8Array(f),y=Math.ceil(Math.sqrt(v.length));return new Z4e({width:m,height:m,depth:m,context:o,pixelFormat:x?an.RGBA:an.RGB,pixelDataType:bn.UNSIGNED_BYTE,source:{width:y,height:y,arrayBufferView:v},sampler:new aa({wrapR:io.MIRRORED_REPEAT,wrapS:io.MIRRORED_REPEAT,wrapT:io.MIRRORED_REPEAT,minificationFilter:na.LINEAR,magnificationFilter:pl.LINEAR})})}function Xit(o,f,m){let x=f;return new Wn({context:o,source:x,sampler:new aa({wrapS:io.MIRRORED_REPEAT,wrapT:io.MIRRORED_REPEAT,minificationFilter:na.LINEAR,magnificationFilter:pl.LINEAR})})}function Jer(o){let f=[],m=o.detail_noise_high,x=new Wr({url:m,queryParameters:{format:"bin"}});f.push(x.fetchArrayBuffer());let v=o.detail_noise,y=new Wr({url:v,queryParameters:{format:"bin"}});f.push(y.fetchArrayBuffer());let C=o.weather,w=new Wr({url:C,queryParameters:{format:"png"}});f.push(w.fetchImage());let T=o.mark_noise,E=new Wr({url:T,queryParameters:{format:"png"}});return f.push(E.fetchImage()),Promise.all(f)}function xee(o){this._coordinate=o.coordinate,this._modelMatrix=null,this._modelMatrixDirty=!0,this._cloudParam=o.cloudParam;let f=o.urls,m=o.viewer;this._viewer=m;let x=m.scene.camera.viewMatrix;this._enable=!0,this._postProcess=null;let v=this;Jer(f).then(function(y){let C=v.getUniforms(x,m.scene.context,y);v._postProcess=m.scene.postProcessStages.add(new Ua({fragmentShader:$er,uniforms:C}))}).catch(function(y){console.log(y)})}xee.prototype.getModelMatrix=function(o){if(this._modelMatrixDirty){let f=o.cartographicPosition,m=o.height,x=o.size,v=Ee.fromScale(x),y=Mr.eastNorthUpToFixedFrame(V.fromDegrees(f.x,f.y));Ee.multiply(y,v,v);let C=Ee.fromTranslation(new V(0,0,m));Ee.multiply(C,v,v),this._modelMatrixDirty=!1,this._modelMatrix=v}return this._modelMatrix};xee.prototype.getUniforms=function(o,f,m){let x=new Ee,v=new Ee,y=new Ee,C=0,w=null,T=null,E=null,A=null,S=this;return{u_inversModelView:function(){let M=S.getModelMatrix(S._coordinate);return Ee.multiply(o,M,x),Ee.inverse(x,v),v},u_inversModelMatrix:function(){let M=S.getModelMatrix(S._coordinate);return Ee.inverse(M,y),y},u_time:function(){return C+=.001,C},detail_map_high:function(){return T||(T=Yit(f,m[0],32,!1)),T},detail_map:function(){return w||(w=Yit(f,m[1],128,!0)),w},weather_map:function(){return E||(E=Xit(f,m[2],512)),E},mark_noise:function(){return A||(A=Xit(f,m[3],512)),A},wind_speed:function(){return S._cloudParam.wind_speed},wind_direction:function(){let M=new at;return M.x=S._cloudParam.wind_direction_x,M.z=S._cloudParam.wind_direction_z,M},global_coverage:function(){return S._cloudParam.global_coverage},global_density:function(){return S._cloudParam.global_density},global_lightAbsorption:function(){return S._cloudParam.global_lightAbsorption},cloud_in_scatter:function(){return S._cloudParam.cloud_in_scatter},cloud_out_scatter:function(){return S._cloudParam.cloud_out_scatter},cloud_scatter_ratio:function(){return S._cloudParam.cloud_scatter_ratio},cloud_silver_intensity:function(){return S._cloudParam.cloud_silver_intensity},cloud_silver_exponent:function(){return S._cloudParam.cloud_silver_exponent},cloud_out_scatter_ambient:function(){return S._cloudParam.cloud_out_scatter_ambient},wind_animation:function(){return S._cloudParam.wind_animation},use_blue_noise:function(){return S._cloudParam.use_blue_noise},use_quarter_update:function(){return S._cloudParam.use_quarter_update},highlightScale:function(){return S._cloudParam.highlightScale},backScale:function(){return S._cloudParam.backScale},attenuationScale:function(){return S._cloudParam.attenuationScale}}};Object.defineProperties(xee.prototype,{enable:{set:function(o){this._enable=o,this._postProcess.enabled=o},get:function(){return this._enable}},coordinate:{get:function(){return this._coordinate}},cloudParam:{get:function(){return this._cloudParam}}});xee.prototype.update=function(){N(this._postProcess)&&this._enable&&(this._viewer.camera.positionCartographic.height>5e5?this._postProcess.enabled=!1:this._postProcess.enabled=!0)};var a0e=xee,Kit={baseShader:{shader:`
    const int textureSize = 512;
    // Render
    //const vec3 backgroundColor = vec3(0.0);
@@ -23124,6 +23124,36 @@
      return normalize( normal );
    }
    float noise( const in vec3 x ) {
      vec3 p = floor(x);
      vec3 f = fract(x);
      f = f*f*(3.0-2.0*f);
      vec2 uv = (p.xy+vec2(37.0,17.0)*p.z) + f.xy;
      vec2 rg = textureLod( iNormalWater, (uv+ 0.5)/256.0, 0.0 ).yx;
      return mix( rg.x, rg.y, f.z );
    }
    const mat3 m3 = mat3( 0.00,  0.80,  0.60,
                        -0.80,  0.36, -0.48,
                        -0.60, -0.48,  0.64 );
    float fbm( in vec3 p ) {
        float f = 0.0;
      // \u591A\u7EA7\u566A\u58F0\u53E0\u52A0
        f += 0.5000*noise( p ); p = m3*p*2.02;
        f += 0.2500*noise( p ); p = m3*p*2.03;
        f += 0.1250*noise( p ); p = m3*p*2.01;
        f += 0.0625*noise( p );
        return f/0.9375;
    }
    float waterMap( vec2 pos ) {
      vec2 posm = pos;
      return abs( fbm( vec3( 8.*posm, iTime ))-0.5 )* 0.1;
    }
    float decodeHeight(vec3 height){
      float tempH = height.r * 255.0 * 256.0 * 256.0 + height.g * 255.0 * 256.0 + height.b * 255.0;
      return (tempH  / 65535.0) * fHeight;
@@ -23307,15 +23337,16 @@
    }
    vec4 getNoise( vec2 uv ) {
        vec2 uv0 = ( uv / 103.0 ) + vec2(iTime / 17.0, iTime / 29.0);
        vec2 uv1 = uv / 107.0-vec2( iTime / -19.0, iTime / 31.0 );
        vec2 uv2 = uv / vec2( 8907.0, 9803.0 ) + vec2( iTime / 101.0, iTime / 97.0 );
        vec2 uv3 = uv / vec2( 1091.0, 1027.0 ) - vec2( iTime / 109.0, iTime / -113.0 );
        vec4 noise = texture( iNormalWater, uv0 ) +
        vec2 uv0 = ( uv / 100.0 ) + vec2(iTime / 100.0, iTime / 100.0);
        vec2 uv1 = uv / 100.0-vec2( iTime / -100.0, iTime / 100.0 );
        vec2 uv2 = uv / vec2( 100.0, 100.0 ) + vec2( iTime / 100.0, iTime / 100.0 );
        vec2 uv3 = uv / vec2( 100.0, 100.0 ) - vec2( iTime / 100.0, iTime / -100.0 );
        vec4 noise =
        texture( iNormalWater, uv0 ) +
        texture( iNormalWater, uv1 ) +
        texture( iNormalWater, uv2 ) +
        texture( iNormalWater, uv3 );
        return noise * 0.5 - 1.0;
        return noise*0.5 - 1.0;
    }
    vec4 toColor(float fColor){
@@ -23343,6 +23374,39 @@
      }
      float fColor = u_waterLevelColors[3][3];
      return toColor(fColor);
    }
    vec3 getFlowMormal(vec2 vUv, vec2 flow){
      // \u534A\u4E2A\u5468\u671F\u7684\u957F\u5EA6
         float halfCycle = 0.5;
         // 1\u4E2A\u5468\u671F\u7684\u957F\u5EA6
         float scale = halfCycle * 2.0;
         // \u534A\u4E2A\u5468\u671F\u7684\u504F\u79FB\u91CF
         float flowMapOffset0 = 0.0;
         float flowMapOffset1 = 0.0;
      float speed = 10.0;
         flowMapOffset0 = fract(iTime * speed);
         flowMapOffset1 = flowMapOffset0 + halfCycle;
         if(flowMapOffset1 > (halfCycle * 2.0)){
            flowMapOffset1 = flowMapOffset1 - (halfCycle * 2.0);
         }
      // sample normal maps (distort uvs with flowdata)
         vec4 normalColor0 = texture( iNormalWater, ( vUv * scale ) + flow * flowMapOffset0 );
         vec4 normalColor1 = texture( iNormalWater1, ( vUv * scale ) + flow * flowMapOffset1 );
         // linear interpolate to get the final normal color
         float flowLerp = abs( halfCycle - flowMapOffset0 ) / halfCycle;
         vec4 normalColor = mix( normalColor0, normalColor1, flowLerp );
         // calculate normal vector
         // \u8BA1\u7B97\u6CD5\u7EBF\u5411\u91CF
         vec3 normal = normalize( vec3( normalColor.r * 2.0 - 1.0, normalColor.g * 2.0 - 1.0,  normalColor.b * 2.0 - 1.0 ) );
      return normal;
    }
    vec3 Render(in vec3 ro, in vec3 rd, vec3 backgroundColor)
@@ -23409,33 +23473,52 @@
        vec4 arrowTexture = vec4(0.0);
        vec2 uv = vec2(0.0);
        if(iFlowEnabled){
          uv = getFlowUv(finalPoint);
          //uv = getFlowUv(finalPoint);
          // \u6D41\u901F\u6D41\u5411
          vec2 flowUv = finalPoint.xy / (u_size);
          flowUv = flowUv + 0.5;
          vec3 flowVec3 = texture(iFlowImageTexture, flowUv).xyz;
          vec2 flowVec2 = flowVec3.yz * 2.0 - 1.0;
          flowVec2.y = -flowVec2.y;
          //vec2 flowVec2 = vec2(1.0,0.0);
          flowVec2 = normalize(flowVec2);
          uv = flowVec2 * max(flowVec3.r, 0.1) * 1.0;
        if(iFlowEnabled){
          // \u6D41\u5411\u7BAD\u5934
          mat2 flowRot = mat2(flowVec2.x, flowVec2.y, -flowVec2.y, flowVec2.x);
          mat2 flowRot = mat2(flowVec2.x, flowVec2.y, flowVec2.y, -flowVec2.x);
          flowRot = inverse(flowRot);
          //vec2 sc = vec2(564.0, 1024.0) / max(floor(addHeight * 0.1), 1.0);
          vec2 sc = vec2(564.0, 1024.0);
          vec2 ff = flowUv * sc - vec2(float(int(flowUv.x * sc.x)),float(int(flowUv.y * sc.y)));
          ff.y = 1.0 - ff.y;
          vec2 ff = flowUv * sc;
          ff = fract(ff);
          ff -= vec2(0.5);
          vec2 nw = (flowRot * ff) + vec2(float(int(flowUv.x * sc.x)),float(int(flowUv.y * sc.y))) + vec2(0.5);
          vec2 nw = (flowRot * ff) + vec2(0.5);
          arrowTexture = texture(iArrowTexture, nw);
        } else {
          uv = getFlow(finalPoint, 1);
        }
        //else {
        //  uv = getFlow(finalPoint, 1);
        //}
        vec4 noise = getNoise( finalPoint.xy + uv );
        vec3 surfaceNormal = normalize( noise.xyz );
        //vec4 noise = getNoise( finalPoint.xy + uv );
        //vec3 noise = WaterNormalFBM(finalPoint.xyx - uv, 0.1);
        //vec3 surfaceNormal = normalize( noise.xyz );
        vec3 surfaceNormal = getFlowMormal(finalPoint.xy * 0.1 , -uv);
        /*float EPSILON = 0.1;
        float bumpfactor = 1.0;
        vec2 dx = vec2( EPSILON, 0. );
        vec2 dz = vec2( 0., EPSILON );
        vec3 surfaceNormal = vec3( 0., 0. , 1. );
        surfaceNormal.x = -bumpfactor * (waterMap(finalPoint.xy + dx) - waterMap(finalPoint.xy-dx) ) / (2. * EPSILON);
        surfaceNormal.y = -bumpfactor * (waterMap(finalPoint.xy + dz) - waterMap(finalPoint.xy-dz) ) / (2. * EPSILON);
        surfaceNormal = normalize( surfaceNormal );*/
        vec3 waterNormal = surfaceNormal.xyz;
@@ -23492,7 +23575,7 @@
      vec4 backgroundColor = texture(colorTexture, v_textureCoordinates);
      vec3 col = Render(ro, rd, backgroundColor.rgb);
      out_FragColor = vec4(col, 1.0);
    }`,uniforms:{iWaterTexture:function(){return A.waterVideoTexture?(A.waterVideoTexture.sampler=tL,A.waterVideoTexture):y},iWaterImageTexture:function(){return A.waterImageTexture?(A.waterImageTexture.sampler=tL,A.waterImageTexture):y},iFlowImageTexture:function(){return A.flowImageTexture?(A.flowImageTexture.sampler=tL,A.flowImageTexture):y},iArrowTexture:function(){return A.arrowTexture?(A.arrowTexture.sampler=tL,A.arrowTexture):y},iFlowEnabled:function(){return A.flowEnabled},iTerrainTexture:function(){return A.terrainTexture?(A.terrainTexture.sampler=tL,A.terrainTexture):y},iWaterReflectTexture:function(){return D&&D.reflexImage?(D.reflexImage.sampler=tL,D.reflexImage):y},iWaterColorTexture:function(){return R?(R.sampler=tL,R):y},iNormalWater:function(){return T||y},iNormalWater1:function(){return E||y},iEnabelTerrainTexture:function(){return!0},u_size:function(){return P},u_height:function(){return x},iTime:function(){return L++,L*.03},u_transformDirectionViewToModel:function(){let B=m.uniformState.inverseView;return Ee.multiplyTransformation(w,B,new Ee)},u_cameraPositionUv:function(){let B=f.frameState.camera.positionWC;return Ee.multiplyByPoint(w,B,new V)},u_cameraDirection:function(){return f.frameState.camera.directionWC},u_sunPositionUv:function(){let B=m.uniformState.sunPositionWC;return Ee.multiplyByPoint(w,B,new V)},u_waterColor:function(){return A.waterColor},u_debug:function(){return A.debug},u_waterHeightLevelEnabled:function(){return A.waterHeightLevelEnabled},u_waterLevelHeights:function(){return M},u_waterLevelColors:function(){return I},u_alphaByDepth:function(){return A.alphaByDepth},u_bottomHeight:function(){return A._bottomHeight},u_topHeight:function(){return A._topHeight},u_offsetBottomHeight:function(){return A._offsetBottomHeight},u_offsetTopHeight:function(){return A._offsetTopHeight}}});let F=new _m({inputPreviousStageTexture:!1,stages:[O],name:`${o}watereffect`});f.postProcessStages.add(F),this.waterProcess=F};e3.prototype.calcWaterRectSize=function(o,f){let m=o.west,x=o.east,v=o.south,y=o.north,C=Ywe(m,v,0,f),w=Ywe(x,v,0,f),T=Ywe(m,y,0,f),E=V.magnitude(V.subtract(w,C,new V)),A=V.magnitude(V.subtract(T,C,new V));return new at(E,A)};e3.prototype.generateWaterReflectMap=function(){let o=this.scene,f=kt.clone(this.centerPosition,new kt);f.height=10;let m=kt.toCartesian(f,Ei.WGS84,new V),x=Mr.eastNorthUpToFixedFrame(m,Ei.WGS84,new Ee);return new Qke({scene:o,waterCenter:m,waterMatrix:x})};e3.prototype.update=function(){if(!this.enabled)return;let o=this.scene.context;this.currentIndex++;let f=this.currentIndex;this.currentIndex>this.imageCount&&(this.currentIndex=0);let m=this.imageList[this.currentIndex];if(m){let x=`${this.waterUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,v=`${this.flowUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,y=this;Ttr([x,v]).then(C=>{y.waterImageTexture?f===y.currentIndex?(y.waterImageTexture.copyFrom({source:C[0]}),y.flowImageTexture.copyFrom({source:C[1]})):console.log("-------lost-----"):(y.waterImageTexture=new Wn({context:o,source:C[0],sampler:tL}),y.flowImageTexture=new Wn({context:o,source:C[1],sampler:Ctr}))})}};e3.prototype.destroy=function(){this.scene.postProcessStages.remove(this.waterProcess),this.scene.disabledPostProcessClear=this.oldDisabledPostProcessClear,this.waterReflectTexture&&(this.waterReflectTexture.destroy(),this.waterReflectTexture=void 0),this.waterColorTexure&&(this.waterColorTexure.destroy(),this.waterColorTexure=void 0),this.normalWaterTexture&&(this.normalWaterTexture.destroy(),this.normalWaterTexture=void 0),this.normalWaterTexture1&&(this.normalWaterTexture1.destroy(),this.normalWaterTexture1=void 0),this.terrainTexture&&(this.terrainTexture.destroy(),this.terrainTexture=void 0),this.waterImageTexture&&(this.waterImageTexture.destroy(),this.waterImageTexture=void 0),this.flowImageTexture&&(this.flowImageTexture.destroy(),this.flowImageTexture=void 0)};e3.fromUrl=async function(o,f){let m=o.context,x=[va("Assets/Textures/water/caustics.png"),va("Assets/Textures/water/Water_1_M_Normal.jpg"),va("Assets/Textures/water/Water_2_M_Normal.jpg"),va("Assets/Textures/water/arrow.png"),f.terrainUrl],[v,y,C,w,T]=await wtr(x,m);return new e3({name:`${f.baseName}WaterPrimitiveEx`,rectangle:f.rectangle,height:f.height,boxHeight:f.boxHeight,waterVideo:f.waterVideo,imageList:f.imageList,waterUrl:f.waterUrl,flowUrl:f.flowUrl,waterImageWidth:f.imageWidth,waterImageHeight:f.imageHeight,terrainTexture:T,waterColorTexure:v,normalWaterTexture:y,normalWaterTexture1:C,arrowTexture:w,show:!0,waterHeightLevels:f.waterHeightLevels,alphaByDepth:f.alphaByDepth},o)};Object.defineProperties(e3.prototype,{enabled:{get:function(){return this._enabled},set:function(o){this._enabled!==o&&(this._enabled=o,this.waterProcess.enabled=o)}},color:{get:function(){return this._color},set:function(o){this._color=o}},waterColor:{get:function(){return this._waterColor},set:function(o){this._waterColor=o}},debug:{get:function(){return this._debug},set:function(o){this._debug=o}},flowEnabled:{get:function(){return this._flowEnabled},set:function(o){this._flowEnabled=o}},waterHeightLevelEnabled:{get:function(){return this._waterHeightLevelEnabled},set:function(o){this._waterHeightLevelEnabled=o}},alphaByDepth:{get:function(){return this._alphaByDepth},set:function(o){this._alphaByDepth=o}},clampMinHeight:{get:function(){return this._bottomHeight},set:function(o){this._bottomHeight=o}},clampMaxHeight:{get:function(){return this._topHeight},set:function(o){this._topHeight=o}},offsetMinHeight:{get:function(){return this._offsetBottomHeight},set:function(o){this._offsetBottomHeight=o}},offsetMaxHeight:{get:function(){return this._offsetTopHeight},set:function(o){this._offsetTopHeight=o}}});var hB=e3,yCt=`uniform sampler2D u_depthTexture;
    }`,uniforms:{iWaterTexture:function(){return A.waterVideoTexture?(A.waterVideoTexture.sampler=tL,A.waterVideoTexture):y},iWaterImageTexture:function(){return A.waterImageTexture?(A.waterImageTexture.sampler=tL,A.waterImageTexture):y},iFlowImageTexture:function(){return A.flowImageTexture?(A.flowImageTexture.sampler=tL,A.flowImageTexture):y},iArrowTexture:function(){return A.arrowTexture?(A.arrowTexture.sampler=tL,A.arrowTexture):y},iFlowEnabled:function(){return A.flowEnabled},iTerrainTexture:function(){return A.terrainTexture?(A.terrainTexture.sampler=tL,A.terrainTexture):y},iWaterReflectTexture:function(){return D&&D.reflexImage?(D.reflexImage.sampler=tL,D.reflexImage):y},iWaterColorTexture:function(){return R?(R.sampler=tL,R):y},iNormalWater:function(){return T||y},iNormalWater1:function(){return E||y},iEnabelTerrainTexture:function(){return!0},u_size:function(){return P},u_height:function(){return x},iTime:function(){return L+=.01,L},u_transformDirectionViewToModel:function(){let B=m.uniformState.inverseView;return Ee.multiplyTransformation(w,B,new Ee)},u_cameraPositionUv:function(){let B=f.frameState.camera.positionWC;return Ee.multiplyByPoint(w,B,new V)},u_cameraDirection:function(){return f.frameState.camera.directionWC},u_sunPositionUv:function(){let B=m.uniformState.sunPositionWC;return Ee.multiplyByPoint(w,B,new V)},u_waterColor:function(){return A.waterColor},u_debug:function(){return A.debug},u_waterHeightLevelEnabled:function(){return A.waterHeightLevelEnabled},u_waterLevelHeights:function(){return M},u_waterLevelColors:function(){return I},u_alphaByDepth:function(){return A.alphaByDepth},u_bottomHeight:function(){return A._bottomHeight},u_topHeight:function(){return A._topHeight},u_offsetBottomHeight:function(){return A._offsetBottomHeight},u_offsetTopHeight:function(){return A._offsetTopHeight}}});let F=new _m({inputPreviousStageTexture:!1,stages:[O],name:`${o}watereffect`});f.postProcessStages.add(F),this.waterProcess=F};e3.prototype.calcWaterRectSize=function(o,f){let m=o.west,x=o.east,v=o.south,y=o.north,C=Ywe(m,v,0,f),w=Ywe(x,v,0,f),T=Ywe(m,y,0,f),E=V.magnitude(V.subtract(w,C,new V)),A=V.magnitude(V.subtract(T,C,new V));return new at(E,A)};e3.prototype.generateWaterReflectMap=function(){let o=this.scene,f=kt.clone(this.centerPosition,new kt);f.height=10;let m=kt.toCartesian(f,Ei.WGS84,new V),x=Mr.eastNorthUpToFixedFrame(m,Ei.WGS84,new Ee);return new Qke({scene:o,waterCenter:m,waterMatrix:x})};e3.prototype.update=function(){if(!this.enabled)return;let o=this.scene.context;this.currentIndex++;let f=this.currentIndex;this.currentIndex>this.imageCount&&(this.currentIndex=0);let m=this.imageList[this.currentIndex];if(m){let x=`${this.waterUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,v=`${this.flowUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,y=this;Ttr([x,v]).then(C=>{y.waterImageTexture?f===y.currentIndex?(y.waterImageTexture.copyFrom({source:C[0]}),y.flowImageTexture.copyFrom({source:C[1]})):console.log("-------lost-----"):(y.waterImageTexture=new Wn({context:o,source:C[0],sampler:tL}),y.flowImageTexture=new Wn({context:o,source:C[1],sampler:Ctr}))})}};e3.prototype.destroy=function(){this.scene.postProcessStages.remove(this.waterProcess),this.scene.disabledPostProcessClear=this.oldDisabledPostProcessClear,this.waterReflectTexture&&(this.waterReflectTexture.destroy(),this.waterReflectTexture=void 0),this.waterColorTexure&&(this.waterColorTexure.destroy(),this.waterColorTexure=void 0),this.normalWaterTexture&&(this.normalWaterTexture.destroy(),this.normalWaterTexture=void 0),this.normalWaterTexture1&&(this.normalWaterTexture1.destroy(),this.normalWaterTexture1=void 0),this.terrainTexture&&(this.terrainTexture.destroy(),this.terrainTexture=void 0),this.waterImageTexture&&(this.waterImageTexture.destroy(),this.waterImageTexture=void 0),this.flowImageTexture&&(this.flowImageTexture.destroy(),this.flowImageTexture=void 0)};e3.fromUrl=async function(o,f){let m=o.context,x=[va("Assets/Textures/water/caustics.png"),va("Assets/Textures/water/Water_1_M_Normal.jpg"),va("Assets/Textures/water/Water_2_M_Normal.jpg"),va("Assets/Textures/water/arrow.png"),f.terrainUrl],[v,y,C,w,T]=await wtr(x,m);return new e3({name:`${f.baseName}WaterPrimitiveEx`,rectangle:f.rectangle,height:f.height,boxHeight:f.boxHeight,waterVideo:f.waterVideo,imageList:f.imageList,waterUrl:f.waterUrl,flowUrl:f.flowUrl,waterImageWidth:f.imageWidth,waterImageHeight:f.imageHeight,terrainTexture:T,waterColorTexure:v,normalWaterTexture:y,normalWaterTexture1:C,arrowTexture:w,show:!0,waterHeightLevels:f.waterHeightLevels,alphaByDepth:f.alphaByDepth},o)};Object.defineProperties(e3.prototype,{enabled:{get:function(){return this._enabled},set:function(o){this._enabled!==o&&(this._enabled=o,this.waterProcess.enabled=o)}},color:{get:function(){return this._color},set:function(o){this._color=o}},waterColor:{get:function(){return this._waterColor},set:function(o){this._waterColor=o}},debug:{get:function(){return this._debug},set:function(o){this._debug=o}},flowEnabled:{get:function(){return this._flowEnabled},set:function(o){this._flowEnabled=o}},waterHeightLevelEnabled:{get:function(){return this._waterHeightLevelEnabled},set:function(o){this._waterHeightLevelEnabled=o}},alphaByDepth:{get:function(){return this._alphaByDepth},set:function(o){this._alphaByDepth=o}},clampMinHeight:{get:function(){return this._bottomHeight},set:function(o){this._bottomHeight=o}},clampMaxHeight:{get:function(){return this._topHeight},set:function(o){this._topHeight=o}},offsetMinHeight:{get:function(){return this._offsetBottomHeight},set:function(o){this._offsetBottomHeight=o}},offsetMaxHeight:{get:function(){return this._offsetTopHeight},set:function(o){this._offsetTopHeight=o}}});var hB=e3,yCt=`uniform sampler2D u_depthTexture;
in vec2 v_textureCoordinates;
@@ -23799,7 +23882,7 @@
  </ul>
  `}var oir=[{text:"Highlight",value:xM.HIGHLIGHT},{text:"Replace",value:xM.REPLACE},{text:"Mix",value:xM.MIX}],lrt=new ze(1,1,0,.4),air=new ze,Xae=new ze;function N_(o,f){let m=this,x=o.canvas;this._eventHandler=new kr(x),this._scene=o,this._performanceContainer=f,this._canvas=x,this._performanceDisplay=new BZ({container:f}),this._statisticsText="",this._pickStatisticsText="",this._resourceCacheStatisticsText="",this._editorError="",this.performance=!1,this.showStatistics=!0,this.showPickStatistics=!0,this.showResourceCacheStatistics=!1,this.inspectorVisible=!0,this.tilesetVisible=!1,this.displayVisible=!1,this.updateVisible=!1,this.loggingVisible=!1,this.styleVisible=!1,this.tileDebugLabelsVisible=!1,this.optimizationVisible=!1,this.styleString="{}",this.hasEnabledWireframe=!1,this._tileset=void 0,this._feature=void 0,this._tile=void 0,vr.track(this,["performance","inspectorVisible","_statisticsText","_pickStatisticsText","_resourceCacheStatisticsText","_editorError","showPickStatistics","showStatistics","showResourceCacheStatistics","tilesetVisible","displayVisible","updateVisible","loggingVisible","styleVisible","optimizationVisible","tileDebugLabelsVisible","styleString","_feature","_tile","_tileset","hasEnabledWireframe"]),this._properties=vr.observable({}),this.properties=[],vr.defineProperty(this,"properties",function(){let ae=[],he=m._properties();for(let me in he)he.hasOwnProperty(me)&&ae.push(me);return ae});let v=vr.observable();vr.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return v()},set:function(ae){v(ae),N(m._tileset)&&(m._tileset.dynamicScreenSpaceError=ae)}}),this.dynamicScreenSpaceError=!1;let y=vr.observable();vr.defineProperty(this,"colorBlendMode",{get:function(){return y()},set:function(ae){y(ae),N(m._tileset)&&(m._tileset.colorBlendMode=ae,m._scene.requestRender())}}),this.colorBlendMode=xM.HIGHLIGHT;let C=vr.observable(),w=vr.observable();vr.defineProperty(this,"picking",{get:function(){return w()},set:function(ae){w(ae),ae?m._eventHandler.setInputAction(function(he){let me=o.pick(he.endPosition);if(me instanceof $s?(m.feature=me,m.tile=me.content.tile):N(me)&&N(me.content)?(m.feature=void 0,m.tile=me.content.tile):(m.feature=void 0,m.tile=void 0),!!N(m._tileset)){if(C&&N(me)&&N(me.content)){let ue;o.pickPositionSupported&&(ue=o.pickPosition(he.endPosition),N(ue)&&(m._tileset.debugPickPosition=ue)),m._tileset.debugPickedTile=me.content.tile}else m._tileset.debugPickedTile=void 0;m._scene.requestRender()}},Di.MOUSE_MOVE):(m.feature=void 0,m.tile=void 0,m._eventHandler.removeInputAction(Di.MOUSE_MOVE))}}),this.picking=!0;let T=vr.observable();vr.defineProperty(this,"colorize",{get:function(){return T()},set:function(ae){T(ae),N(m._tileset)&&(m._tileset.debugColorizeTiles=ae,m._scene.requestRender())}}),this.colorize=!1;let E=vr.observable();vr.defineProperty(this,"wireframe",{get:function(){return E()},set:function(ae){E(ae),N(m._tileset)&&(m._tileset.debugWireframe=ae,m._scene.requestRender())}}),this.wireframe=!1;let A=vr.observable();vr.defineProperty(this,"showBoundingVolumes",{get:function(){return A()},set:function(ae){A(ae),N(m._tileset)&&(m._tileset.debugShowBoundingVolume=ae,m._scene.requestRender())}}),this.showBoundingVolumes=!1;let S=vr.observable();vr.defineProperty(this,"showContentBoundingVolumes",{get:function(){return S()},set:function(ae){S(ae),N(m._tileset)&&(m._tileset.debugShowContentBoundingVolume=ae,m._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let M=vr.observable();vr.defineProperty(this,"showRequestVolumes",{get:function(){return M()},set:function(ae){M(ae),N(m._tileset)&&(m._tileset.debugShowViewerRequestVolume=ae,m._scene.requestRender())}}),this.showRequestVolumes=!1;let I=vr.observable();vr.defineProperty(this,"freezeFrame",{get:function(){return I()},set:function(ae){I(ae),N(m._tileset)&&(m._tileset.debugFreezeFrame=ae,m._scene.debugShowFrustumPlanes=ae,m._scene.requestRender())}}),this.freezeFrame=!1,vr.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return C()},set:function(ae){C(ae),N(m._tileset)&&(m._tileset.debugPickedTileLabelOnly=ae,m._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let P=vr.observable();vr.defineProperty(this,"showGeometricError",{get:function(){return P()},set:function(ae){P(ae),N(m._tileset)&&(m._tileset.debugShowGeometricError=ae,m._scene.requestRender())}}),this.showGeometricError=!1;let D=vr.observable();vr.defineProperty(this,"showRenderingStatistics",{get:function(){return D()},set:function(ae){D(ae),N(m._tileset)&&(m._tileset.debugShowRenderingStatistics=ae,m._scene.requestRender())}}),this.showRenderingStatistics=!1;let R=vr.observable();vr.defineProperty(this,"showMemoryUsage",{get:function(){return R()},set:function(ae){R(ae),N(m._tileset)&&(m._tileset.debugShowMemoryUsage=ae,m._scene.requestRender())}}),this.showMemoryUsage=!1;let L=vr.observable();vr.defineProperty(this,"showUrl",{get:function(){return L()},set:function(ae){L(ae),N(m._tileset)&&(m._tileset.debugShowUrl=ae,m._scene.requestRender())}}),this.showUrl=!1;let O=vr.observable();vr.defineProperty(this,"maximumScreenSpaceError",{get:function(){return O()},set:function(ae){ae=Number(ae),isNaN(ae)||(O(ae),N(m._tileset)&&(m._tileset.maximumScreenSpaceError=ae))}}),this.maximumScreenSpaceError=16;let F=vr.observable();vr.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return F()},set:function(ae){ae=Number(ae),isNaN(ae)||(F(ae),N(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorDensity=ae))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,vr.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(F(),1/6)},set:function(ae){let he=Math.pow(ae,6);F(he),N(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorDensity=he)}});let B=vr.observable();vr.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return B()},set:function(ae){ae=Number(ae),isNaN(ae)||(B(ae),N(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorFactor=ae))}}),this.dynamicScreenSpaceErrorFactor=24;let H=rir(this),G=vr.observable();vr.defineProperty(this,"pickActive",{get:function(){return G()},set:function(ae){G(ae),ae?m._eventHandler.setInputAction(H,Di.LEFT_CLICK):m._eventHandler.removeInputAction(Di.LEFT_CLICK)}});let W=vr.observable();vr.defineProperty(this,"pointCloudShading",{get:function(){return W()},set:function(ae){W(ae),N(m._tileset)&&(m._tileset.pointCloudShading.attenuation=ae)}}),this.pointCloudShading=!1;let Y=vr.observable();vr.defineProperty(this,"geometricErrorScale",{get:function(){return Y()},set:function(ae){ae=Number(ae),isNaN(ae)||(Y(ae),N(m._tileset)&&(m._tileset.pointCloudShading.geometricErrorScale=ae))}}),this.geometricErrorScale=1;let K=vr.observable();vr.defineProperty(this,"maximumAttenuation",{get:function(){return K()},set:function(ae){ae=Number(ae),isNaN(ae)||(K(ae),N(m._tileset)&&(m._tileset.pointCloudShading.maximumAttenuation=ae===0?void 0:ae))}}),this.maximumAttenuation=0;let X=vr.observable();vr.defineProperty(this,"baseResolution",{get:function(){return X()},set:function(ae){ae=Number(ae),isNaN(ae)||(X(ae),N(m._tileset)&&(m._tileset.pointCloudShading.baseResolution=ae===0?void 0:ae))}}),this.baseResolution=0;let q=vr.observable();vr.defineProperty(this,"eyeDomeLighting",{get:function(){return q()},set:function(ae){q(ae),N(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLighting=ae)}}),this.eyeDomeLighting=!1;let J=vr.observable();vr.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return J()},set:function(ae){ae=Number(ae),isNaN(ae)||(J(ae),N(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLightingStrength=ae))}}),this.eyeDomeLightingStrength=1;let Z=vr.observable();vr.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return Z()},set:function(ae){ae=Number(ae),isNaN(ae)||(Z(ae),N(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLightingRadius=ae))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let z=vr.observable();vr.defineProperty(this,"skipLevelOfDetail",{get:function(){return z()},set:function(ae){z(ae),N(m._tileset)&&(m._tileset.skipLevelOfDetail=ae)}}),this.skipLevelOfDetail=!0;let te=vr.observable();vr.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return te()},set:function(ae){ae=Number(ae),isNaN(ae)||(te(ae),N(m._tileset)&&(m._tileset.skipScreenSpaceErrorFactor=ae))}}),this.skipScreenSpaceErrorFactor=16;let ie=vr.observable();vr.defineProperty(this,"baseScreenSpaceError",{get:function(){return ie()},set:function(ae){ae=Number(ae),isNaN(ae)||(ie(ae),N(m._tileset)&&(m._tileset.baseScreenSpaceError=ae))}}),this.baseScreenSpaceError=1024;let re=vr.observable();vr.defineProperty(this,"skipLevels",{get:function(){return re()},set:function(ae){ae=Number(ae),isNaN(ae)||(re(ae),N(m._tileset)&&(m._tileset.skipLevels=ae))}}),this.skipLevels=1;let ee=vr.observable();vr.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return ee()},set:function(ae){ee(ae),N(m._tileset)&&(m._tileset.immediatelyLoadDesiredLevelOfDetail=ae)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let oe=vr.observable();vr.defineProperty(this,"loadSiblings",{get:function(){return oe()},set:function(ae){oe(ae),N(m._tileset)&&(m._tileset.loadSiblings=ae)}}),this.loadSiblings=!1,this._style=void 0,this._shouldStyle=!1,this._definedProperties=["properties","dynamicScreenSpaceError","colorBlendMode","picking","colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","maximumScreenSpaceError","dynamicScreenSpaceErrorDensity","baseScreenSpaceError","skipScreenSpaceErrorFactor","skipLevelOfDetail","skipLevels","immediatelyLoadDesiredLevelOfDetail","loadSiblings","dynamicScreenSpaceErrorDensitySliderValue","dynamicScreenSpaceErrorFactor","pickActive","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl","pointCloudShading","geometricErrorScale","maximumAttenuation","baseResolution","eyeDomeLighting","eyeDomeLightingStrength","eyeDomeLightingRadius"],this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()}),N(this._tileset)||UCt(this,!0)}Object.defineProperties(N_.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},statisticsText:{get:function(){return this._statisticsText}},pickStatisticsText:{get:function(){return this._pickStatisticsText}},resourceCacheStatisticsText:{get:function(){return this._resourceCacheStatisticsText}},colorBlendModes:{get:function(){return oir}},editorError:{get:function(){return this._editorError}},tileset:{get:function(){return this._tileset},set:function(o){if(this._tileset=o,this._style=void 0,this.styleString="{}",this.feature=void 0,this.tile=void 0,N(o)){this._properties(o.properties);let f=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],m=f.length;for(let v=0;v<m;++v){let y=f[v];this[y]=this[y]}this.maximumScreenSpaceError=o.maximumScreenSpaceError,this.dynamicScreenSpaceError=o.dynamicScreenSpaceError,this.dynamicScreenSpaceErrorDensity=o.dynamicScreenSpaceErrorDensity,this.dynamicScreenSpaceErrorFactor=o.dynamicScreenSpaceErrorFactor,this.colorBlendMode=o.colorBlendMode,this.skipLevelOfDetail=o.skipLevelOfDetail,this.skipScreenSpaceErrorFactor=o.skipScreenSpaceErrorFactor,this.baseScreenSpaceError=o.baseScreenSpaceError,this.skipLevels=o.skipLevels,this.immediatelyLoadDesiredLevelOfDetail=o.immediatelyLoadDesiredLevelOfDetail,this.loadSiblings=o.loadSiblings,this.hasEnabledWireframe=o._enableDebugWireframe;let x=o.pointCloudShading;this.pointCloudShading=x.attenuation,this.geometricErrorScale=x.geometricErrorScale,this.maximumAttenuation=x.maximumAttenuation?x.maximumAttenuation:0,this.baseResolution=x.baseResolution?x.baseResolution:0,this.eyeDomeLighting=x.eyeDomeLighting,this.eyeDomeLightingStrength=x.eyeDomeLightingStrength,this.eyeDomeLightingRadius=x.eyeDomeLightingRadius,this._scene.requestRender()}else this._properties({});this._statisticsText=VJ(o,!1),this._pickStatisticsText=VJ(o,!0),this._resourceCacheStatisticsText=HCt(),UCt(this,!1)}},feature:{get:function(){return this._feature},set:function(o){if(this._feature===o)return;let f=this._feature;N(f)&&!f.content.isDestroyed()&&(!this.colorize&&N(this._style)?f.color=N(this._style.color)?this._style.color.evaluateColor(f,air):ze.WHITE:f.color=Xae,this._scene.requestRender()),N(o)&&(ze.clone(o.color,Xae),o.color=lrt,this._scene.requestRender()),this._feature=o}},tile:{get:function(){return this._tile},set:function(o){if(this._tile===o)return;let f=this._tile;N(f)&&!f.isDestroyed()&&!LAe(f.content)&&(f.color=Xae,this._scene.requestRender()),N(o)&&!LAe(o.content)&&(ze.clone(o.color,Xae),o.color=lrt,this._scene.requestRender()),this._tile=o}}});function LAe(o){if(!N(o))return!1;if(o.featuresLength>0)return!0;let f=o.innerContents;if(N(f)){let m=f.length;for(let x=0;x<m;++x)if(!LAe(f[x]))return!1;return!0}return!1}N_.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};N_.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};N_.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};N_.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};N_.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};N_.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};N_.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};N_.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};N_.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};N_.prototype.trimTilesCache=function(){N(this._tileset)&&this._tileset.trimLoadedTiles()};N_.prototype.compileStyle=function(){let o=this._tileset;if(!(!N(o)||this.styleString===JSON.stringify(o.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new zE(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(f){this._editorError=f.toString()}this.feature=this._feature,this.tile=this._tile}};N_.prototype.styleEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,v=m.selectionEnd,y=v,C=m.value.slice(x,v).split(`
`),w=C.length,T;if(f.shiftKey)for(T=0;T<w;++T)C[T][0]===" "&&(C[T][1]===" "?(C[T]=C[T].substr(2),y-=2):(C[T]=C[T].substr(1),y-=1));else for(T=0;T<w;++T)C[T]=`  ${C[T]}`,y+=2;let E=C.join(`
`);m.value=m.value.slice(0,x)+E+m.value.slice(v),m.selectionStart=x!==v?x:y,m.selectionEnd=y}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileStyle();return!0};N_.prototype._update=function(){let o=this._tileset;if(this.performance&&this._performanceDisplay.update(),N(o)){if(o.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let f=o.style;this._style!==o.style&&(this._shouldStyle?(o.style=this._style,this._shouldStyle=!1):(this._style=f,this.styleString=JSON.stringify(f.style,null,"  ")))}this.showStatistics&&(this._statisticsText=VJ(o,!1),this._pickStatisticsText=VJ(o,!0),this._resourceCacheStatisticsText=HCt())};N_.prototype.isDestroyed=function(){return!1};N_.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let o=this;return this._definedProperties.forEach(function(f){vr.getObservable(o,f).dispose()}),Ir(this)};N_.getStatistics=VJ;var lVe=N_;function c0e(o,f){o=Pd(o);let m=document.createElement("div"),x=document.createElement("div");x.setAttribute("data-bind","visible: performance");let v=new lVe(f,x);this._viewModel=v,this._container=o,this._element=m;let y=document.createElement("div");y.textContent="3D Tiles Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleInspector"),m.appendChild(y),m.className="cesium-cesiumInspector cesium-3DTilesInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let C=document.createElement("div");C.className="cesium-cesiumInspector-dropDown",m.appendChild(C);let w=sM.createSection,T=sM.createCheckbox,E=sM.createRangeInput,A=sM.createButton,S=w(C,"Tileset","tilesetVisible","toggleTileset"),M=w(C,"Display","displayVisible","toggleDisplay"),I=w(C,"Update","updateVisible","toggleUpdate"),P=w(C,"Logging","loggingVisible","toggleLogging"),D=w(C,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),R=w(C,"Style","styleVisible","toggleStyle"),L=w(C,"Optimization","optimizationVisible","toggleOptimization"),O=document.createElement("div");O.className="field-group";let F=document.createElement("label");F.className="field-label",F.appendChild(document.createTextNode("Properties: "));let B=document.createElement("div");B.setAttribute("data-bind","text: properties"),O.appendChild(F),O.appendChild(B),S.appendChild(O),S.appendChild(A("Pick Tileset","togglePickTileset","pickActive")),S.appendChild(A("Trim Tiles Cache","trimTilesCache")),S.appendChild(T("Enable Picking","picking")),M.appendChild(T("Colorize","colorize"));let H=M.appendChild(T("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),G=document.createElement("p");G.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),G.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),G.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",H.appendChild(G),M.appendChild(T("Bounding Volumes","showBoundingVolumes")),M.appendChild(T("Content Volumes","showContentBoundingVolumes")),M.appendChild(T("Request Volumes","showRequestVolumes")),M.appendChild(T("Point Cloud Shading","pointCloudShading"));let W=document.createElement("div");W.setAttribute("data-bind","visible: pointCloudShading"),W.appendChild(E("Geometric Error Scale","geometricErrorScale",0,2,.01)),W.appendChild(E("Maximum Attenuation","maximumAttenuation",0,32,1)),W.appendChild(E("Base Resolution","baseResolution",0,1,.01)),W.appendChild(T("Eye Dome Lighting (EDL)","eyeDomeLighting")),M.appendChild(W);let Y=document.createElement("div");Y.setAttribute("data-bind","visible: eyeDomeLighting"),Y.appendChild(E("EDL Strength","eyeDomeLightingStrength",0,2,.1)),Y.appendChild(E("EDL Radius","eyeDomeLightingRadius",0,4,.1)),W.appendChild(Y),I.appendChild(T("Freeze Frame","freezeFrame")),I.appendChild(T("Dynamic Screen Space Error","dynamicScreenSpaceError"));let K=document.createElement("div");K.appendChild(E("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),I.appendChild(K);let X=document.createElement("div");X.setAttribute("data-bind","visible: dynamicScreenSpaceError"),X.appendChild(E("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),X.appendChild(E("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),I.appendChild(X),P.appendChild(T("Performance","performance")),P.appendChild(x),P.appendChild(T("Statistics","showStatistics"));let q=document.createElement("div");q.className="cesium-3dTilesInspector-statistics",q.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),P.appendChild(q),P.appendChild(T("Pick Statistics","showPickStatistics"));let J=document.createElement("div");J.className="cesium-3dTilesInspector-statistics",J.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),P.appendChild(J),P.appendChild(T("Resource Cache Statistics","showResourceCacheStatistics"));let Z=document.createElement("div");Z.className="cesium-3dTilesInspector-statistics",Z.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),P.appendChild(Z);let z=document.createElement("div");R.appendChild(z),z.appendChild(document.createTextNode("Color Blend Mode: "));let te=document.createElement("select");te.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),z.appendChild(te);let ie=document.createElement("textarea");ie.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),z.className="cesium-cesiumInspector-styleEditor",z.appendChild(ie);let re=A("Compile (Ctrl+Enter)","compileStyle");z.appendChild(re);let ee=document.createElement("div");ee.className="cesium-cesiumInspector-error",ee.setAttribute("data-bind","text: editorError"),z.appendChild(ee),D.appendChild(T("Show Picked Only","showOnlyPickedTileDebugLabel")),D.appendChild(T("Geometric Error","showGeometricError")),D.appendChild(T("Rendering Statistics","showRenderingStatistics")),D.appendChild(T("Memory Usage (MB)","showMemoryUsage")),D.appendChild(T("Url","showUrl")),L.appendChild(T("Skip Tile LODs","skipLevelOfDetail"));let oe=document.createElement("div");oe.appendChild(E("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),L.appendChild(oe);let ae=document.createElement("div");ae.appendChild(E("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),L.appendChild(ae);let he=document.createElement("div");he.appendChild(E("Min. levels to skip","skipLevels",0,10,1)),L.appendChild(he),L.appendChild(T("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),L.appendChild(T("Load siblings of visible tiles","loadSiblings")),vr.applyBindings(v,m)}Object.defineProperties(c0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});c0e.prototype.isDestroyed=function(){return!1};c0e.prototype.destroy=function(){return vr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Ir(this)};var uVe=c0e;function sir(o){let f;if(N(o)){f="Command Statistics";let m=o.commandsInFrustums;for(let x in m)if(m.hasOwnProperty(x)){let v=parseInt(x,10),y;if(v===7)y="1, 2 and 3";else{let C=[];for(let w=2;w>=0;w--){let T=Math.pow(2,w);v>=T&&(C.push(w+1),v-=T)}y=C.reverse().join(" and ")}f+=`<br>&nbsp;&nbsp;&nbsp;&nbsp;${m[x]} in frustum ${y}`}f+=`<br>Total: ${o.totalCommands}`}return f}function OAe(o,f,m){let x=Math.min(m,f);return x=Math.max(x,o),x}var lir=new qa,uir=new V;function vee(o,f){let m=this,x=o.canvas,v=new kr(x);this._eventHandler=v,this._scene=o,this._canvas=x,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=f;let y=this._scene.globe;y.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",vr.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=bu(function(){m.dropDownVisible=!m.dropDownVisible}),this._toggleGeneral=bu(function(){m.generalVisible=!m.generalVisible}),this._togglePrimitives=bu(function(){m.primitivesVisible=!m.primitivesVisible}),this._toggleTerrain=bu(function(){m.terrainVisible=!m.terrainVisible}),this._frustumsSubscription=vr.getObservable(this,"frustums").subscribe(function(E){m._scene.debugShowFrustums=E,m._scene.requestRender()}),this._frustumPlanesSubscription=vr.getObservable(this,"frustumPlanes").subscribe(function(E){m._scene.debugShowFrustumPlanes=E,m._scene.requestRender()}),this._performanceSubscription=vr.getObservable(this,"performance").subscribe(function(E){E?m._performanceDisplay=new BZ({container:m._performanceContainer}):m._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=bu(function(){return m._primitive.debugShowBoundingVolume=m.primitiveBoundingSphere,m._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=vr.getObservable(this,"primitiveBoundingSphere").subscribe(function(){m._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=bu(function(){if(m.primitiveReferenceFrame){let E=m._primitive.modelMatrix;m._modelMatrixPrimitive=new dke({modelMatrix:E}),m._scene.primitives.add(m._modelMatrixPrimitive)}else N(m._modelMatrixPrimitive)&&(m._scene.primitives.remove(m._modelMatrixPrimitive),m._modelMatrixPrimitive=void 0);return m._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=vr.getObservable(this,"primitiveReferenceFrame").subscribe(function(){m._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=bu(function(){return m.filterPrimitive?m._scene.debugCommandFilter=function(E){return N(m._modelMatrixPrimitive)&&E.owner===m._modelMatrixPrimitive._primitive?!0:N(m._primitive)?E.owner===m._primitive||E.owner===m._primitive._billboardCollection||E.owner.primitive===m._primitive:!1}:m._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=vr.getObservable(this,"filterPrimitive").subscribe(function(){m._doFilterPrimitive(),m._scene.requestRender()}),this._wireframeSubscription=vr.getObservable(this,"wireframe").subscribe(function(E){y._surface.tileProvider._debug.wireframe=E,m._scene.requestRender()}),this._depthFrustumSubscription=vr.getObservable(this,"depthFrustum").subscribe(function(E){m._scene.debugShowDepthFrustum=E,m._scene.requestRender()}),this._incrementDepthFrustum=bu(function(){let E=m.depthFrustum+1;return m.depthFrustum=OAe(1,m._numberOfFrustums,E),m._scene.requestRender(),!0}),this._decrementDepthFrustum=bu(function(){let E=m.depthFrustum-1;return m.depthFrustum=OAe(1,m._numberOfFrustums,E),m._scene.requestRender(),!0}),this._suspendUpdatesSubscription=vr.getObservable(this,"suspendUpdates").subscribe(function(E){y._surface._debug.suspendLodUpdate=E,E||(m.filterTile=!1)});let C;this._showTileCoordinates=bu(function(){return m.tileCoordinates&&!N(C)?C=o.imageryLayers.addImageryProvider(new cee({tilingScheme:o.terrainProvider.tilingScheme})):!m.tileCoordinates&&N(C)&&(o.imageryLayers.remove(C),C=void 0),!0}),this._tileCoordinatesSubscription=vr.getObservable(this,"tileCoordinates").subscribe(function(){m._showTileCoordinates(),m._scene.requestRender()}),this._tileBoundingSphereSubscription=vr.getObservable(this,"tileBoundingSphere").subscribe(function(){m._showTileBoundingSphere(),m._scene.requestRender()}),this._showTileBoundingSphere=bu(function(){return m.tileBoundingSphere?y._surface.tileProvider._debug.boundingSphereTile=m._tile:y._surface.tileProvider._debug.boundingSphereTile=void 0,m._scene.requestRender(),!0}),this._doFilterTile=bu(function(){return m.filterTile?(m.suspendUpdates=!0,y._surface._tilesToRender=[],N(m._tile)&&m._tile.renderable&&y._surface._tilesToRender.push(m._tile)):m.suspendUpdates=!1,!0}),this._filterTileSubscription=vr.getObservable(this,"filterTile").subscribe(function(){m.doFilterTile(),m._scene.requestRender()});function w(E){let A=m._scene.pick({x:E.position.x,y:E.position.y});N(A)&&(m.primitive=N(A.collection)?A.collection:A.primitive),m._scene.requestRender(),m.pickPrimitiveActive=!1}this._pickPrimitive=bu(function(){m.pickPrimitiveActive=!m.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=vr.getObservable(this,"pickPrimitiveActive").subscribe(function(E){E?v.setInputAction(w,Di.LEFT_CLICK):v.removeInputAction(Di.LEFT_CLICK)});function T(E){let A,S=y.ellipsoid,M=m._scene.camera.getPickRay(E.position,lir),I=y.pick(M,m._scene,uir);if(N(I)){let P=S.cartesianToCartographic(I),D=y._surface.tileProvider._tilesToRenderByTextureCount;for(let R=0;!A&&R<D.length;++R){let L=D[R];if(N(L))for(let O=0;!A&&O<L.length;++O){let F=L[O];Si.contains(F.rectangle,P)&&(A=F)}}}m.tile=A,m.pickTileActive=!1}this._pickTile=bu(function(){m.pickTileActive=!m.pickTileActive}),this._pickTileActiveSubscription=vr.getObservable(this,"pickTileActive").subscribe(function(E){E?v.setInputAction(T,Di.LEFT_CLICK):v.removeInputAction(Di.LEFT_CLICK)}),this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()})}Object.defineProperties(vee.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let o=this;return bu(function(){o.tile=o.tile.parent})}},selectNW:{get:function(){let o=this;return bu(function(){o.tile=o.tile.northwestChild})}},selectNE:{get:function(){let o=this;return bu(function(){o.tile=o.tile.northeastChild})}},selectSW:{get:function(){let o=this;return bu(function(){o.tile=o.tile.southwestChild})}},selectSE:{get:function(){let o=this;return bu(function(){o.tile=o.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(o){let f=this._primitive;o!==f&&(this.hasPickedPrimitive=!0,N(f)&&(f.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,N(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=o,o.show=!1,setTimeout(function(){o.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(o){if(N(o)){this.hasPickedTile=!0;let f=this._tile;if(o!==f){this.tileText=`L: ${o.level} X: ${o.x} Y: ${o.y}`,this.tileText+=`<br>SW corner: ${o.rectangle.west}, ${o.rectangle.south}`,this.tileText+=`<br>NE corner: ${o.rectangle.east}, ${o.rectangle.north}`;let m=o.data;N(m)&&N(m.tileBoundingRegion)?this.tileText+=`<br>Min: ${m.tileBoundingRegion.minimumHeight} Max: ${m.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=o,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});vee.prototype._update=function(){this.frustums&&(this.frustumStatisticText=sir(this._scene.debugFrustumStatistics));let o=this._scene.numberOfFrustums;this._numberOfFrustums=o,this.depthFrustum=OAe(1,o,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${o}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};vee.prototype.isDestroyed=function(){return!1};vee.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),Ir(this)};var cVe=vee;function h0e(o,f){o=Pd(o);let m=document.createElement("div"),x=new cVe(f,m);this._viewModel=x,this._container=o;let v=document.createElement("div");this._element=v;let y=document.createElement("div");y.textContent="Cesium Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleDropDown"),v.appendChild(y),v.className="cesium-cesiumInspector",v.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),o.appendChild(this._element);let C=document.createElement("div");C.className="cesium-cesiumInspector-dropDown",v.appendChild(C);let w=sM.createSection,T=sM.createCheckbox,E=w(C,"General","generalVisible","toggleGeneral"),A=T("Show Frustums","frustums"),S=document.createElement("div");S.className="cesium-cesiumInspector-frustumStatistics",S.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),A.appendChild(S),E.appendChild(A),E.appendChild(T("Show Frustum Planes","frustumPlanes")),E.appendChild(T("Performance Display","performance")),m.className="cesium-cesiumInspector-performanceDisplay",E.appendChild(m);let M=document.createElement("div");M.className="cesium-cesiumInspector-shaderCache",M.setAttribute("data-bind","html: shaderCacheText"),E.appendChild(M);let I=document.createElement("div");E.appendChild(I);let P=document.createElement("span");P.setAttribute("data-bind",'html: "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Frustum:"'),I.appendChild(P);let D=document.createElement("span");D.setAttribute("data-bind","text: depthFrustumText"),I.appendChild(D);let R=document.createElement("input");R.type="button",R.value="-",R.className="cesium-cesiumInspector-pickButton",R.setAttribute("data-bind","click: decrementDepthFrustum"),I.appendChild(R);let L=document.createElement("input");L.type="button",L.value="+",L.className="cesium-cesiumInspector-pickButton",L.setAttribute("data-bind","click: incrementDepthFrustum"),I.appendChild(L);let O=w(C,"Primitives","primitivesVisible","togglePrimitives"),F=document.createElement("div");F.className="cesium-cesiumInspector-pickSection",O.appendChild(F);let B=document.createElement("input");B.type="button",B.value="Pick a primitive",B.className="cesium-cesiumInspector-pickButton",B.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let H=document.createElement("div");H.className="cesium-cesiumInspector-center",H.appendChild(B),F.appendChild(H),F.appendChild(T("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),F.appendChild(T("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=T("Show only selected","filterPrimitive","hasPickedPrimitive"),F.appendChild(this._primitiveOnly);let G=w(C,"Terrain","terrainVisible","toggleTerrain"),W=document.createElement("div");W.className="cesium-cesiumInspector-pickSection",G.appendChild(W);let Y=document.createElement("input");Y.type="button",Y.value="Pick a tile",Y.className="cesium-cesiumInspector-pickButton",Y.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),H=document.createElement("div"),H.appendChild(Y),H.className="cesium-cesiumInspector-center",W.appendChild(H);let K=document.createElement("div");W.appendChild(K);let X=document.createElement("input");X.type="button",X.value="Parent",X.className="cesium-cesiumInspector-pickButton",X.setAttribute("data-bind","click: selectParent");let q=document.createElement("input");q.type="button",q.value="NW",q.className="cesium-cesiumInspector-pickButton",q.setAttribute("data-bind","click: selectNW");let J=document.createElement("input");J.type="button",J.value="NE",J.className="cesium-cesiumInspector-pickButton",J.setAttribute("data-bind","click: selectNE");let Z=document.createElement("input");Z.type="button",Z.value="SW",Z.className="cesium-cesiumInspector-pickButton",Z.setAttribute("data-bind","click: selectSW");let z=document.createElement("input");z.type="button",z.value="SE",z.className="cesium-cesiumInspector-pickButton",z.setAttribute("data-bind","click: selectSE");let te=document.createElement("div");te.className="cesium-cesiumInspector-tileText",K.className="cesium-cesiumInspector-frustumStatistics",K.appendChild(te),K.setAttribute("data-bind","visible: hasPickedTile"),te.setAttribute("data-bind","html: tileText");let ie=document.createElement("div");ie.className="cesium-cesiumInspector-relativeText",ie.textContent="Select relative:",K.appendChild(ie);let re=document.createElement("table"),ee=document.createElement("tr"),oe=document.createElement("tr"),ae=document.createElement("td");ae.appendChild(X);let he=document.createElement("td");he.appendChild(q);let me=document.createElement("td");me.appendChild(J),ee.appendChild(ae),ee.appendChild(he),ee.appendChild(me);let ue=document.createElement("td"),ce=document.createElement("td");ce.appendChild(Z);let de=document.createElement("td");de.appendChild(z),oe.appendChild(ue),oe.appendChild(ce),oe.appendChild(de),re.appendChild(ee),re.appendChild(oe),K.appendChild(re),W.appendChild(T("Show bounding volume","tileBoundingSphere","hasPickedTile")),W.appendChild(T("Show only selected","filterTile","hasPickedTile")),G.appendChild(T("Wireframe","wireframe")),G.appendChild(T("Suspend LOD update","suspendUpdates")),G.appendChild(T("Show tile coordinates","tileCoordinates")),vr.applyBindings(x,this._element)}Object.defineProperties(h0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});h0e.prototype.isDestroyed=function(){return!1};h0e.prototype.destroy=function(){return vr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Ir(this)};var hVe=h0e;function d0e(o,f){N(f)||(f=document.body),f=Pd(f);let m=this,x=vr.observable(Lx.fullscreen),v=vr.observable(Lx.enabled),y=f.ownerDocument;this.isFullscreen=void 0,vr.defineProperty(this,"isFullscreen",{get:function(){return x()}}),this.isFullscreenEnabled=void 0,vr.defineProperty(this,"isFullscreenEnabled",{get:function(){return v()},set:function(C){v(C&&Lx.enabled)}}),this.tooltip=void 0,vr.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?x()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=bu(function(){Lx.fullscreen?Lx.exitFullscreen():Lx.requestFullscreen(m._fullscreenElement)},vr.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=Pd(o)??y.body,this._callback=function(){x(Lx.fullscreen)},y.addEventListener(Lx.changeEventName,this._callback)}Object.defineProperties(d0e.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(o){this._fullscreenElement=o}},command:{get:function(){return this._command}}});d0e.prototype.isDestroyed=function(){return!1};d0e.prototype.destroy=function(){document.removeEventListener(Lx.changeEventName,this._callback),Ir(this)};var dVe=d0e,cir="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",hir="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function f0e(o,f){o=Pd(o);let m=new dVe(f,o);m._exitFullScreenPath=hir,m._enterFullScreenPath=cir;let x=document.createElement("button");x.type="button",x.className="cesium-button cesium-fullscreenButton",x.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),o.appendChild(x),vr.applyBindings(m,x),this._container=o,this._viewModel=m,this._element=x}Object.defineProperties(f0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});f0e.prototype.isDestroyed=function(){return!1};f0e.prototype.destroy=function(){return this._viewModel.destroy(),vr.cleanNode(this._element),this._container.removeChild(this._element),Ir(this)};var fVe=f0e,urt=1e3;function LE(o){N(o.geocoderServices)?this._geocoderServices=o.geocoderServices:this._geocoderServices=[new jfe({scene:o.scene})],this._viewContainer=o.container,this._scene=o.scene,this._flightDuration=o.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new Or,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=hrt,this._handleArrowUp=crt;let f=this;this._suggestionsVisible=vr.pureComputed(function(){let x=vr.getObservable(f,"_suggestions")().length>0,v=vr.getObservable(f,"_showSuggestions")();return x&&v}),this._searchCommand=bu(function(x){if(x=x??iee.SEARCH,f._focusTextbox=!1,N(f._selectedSuggestion))return f.activateSuggestion(f._selectedSuggestion),!1;if(f.hideSuggestions(),f.isSearchInProgress)gir(f);else return mir(f,f._geocoderServices,x)}),this.deselectSuggestion=function(){f._selectedSuggestion=void 0},this.handleKeyDown=function(x,v){let y=v.key==="ArrowDown"||v.key==="Down"||v.keyCode===40,C=v.key==="ArrowUp"||v.key==="Up"||v.keyCode===38;return(y||C)&&v.preventDefault(),!0},this.handleKeyUp=function(x,v){let y=v.key==="ArrowDown"||v.key==="Down"||v.keyCode===40,C=v.key==="ArrowUp"||v.key==="Up"||v.keyCode===38,w=v.key==="Enter"||v.keyCode===13;return C?crt(f):y?hrt(f):w&&f._searchCommand(),!0},this.activateSuggestion=function(x){f.hideSuggestions(),f._searchText=x.displayName;let v=x.destination;jCt(f),f.destinationFound(f,v)},this.hideSuggestions=function(){f._showSuggestions=!1,f._selectedSuggestion=void 0},this.showSuggestions=function(){f._showSuggestions=!0},this.handleMouseover=function(x,v){x!==f._selectedSuggestion&&(f._selectedSuggestion=x)},this.keepExpanded=!1,this.autoComplete=o.autocomplete??!0,this.destinationFound=o.destinationFound??LE.flyToDestination,this._focusTextbox=!1,vr.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let m=vr.getObservable(this,"_searchText");m.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=m.subscribe(function(){LE._updateSearchSuggestions(f)}),this.isSearchInProgress=void 0,vr.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,vr.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(x){this._searchText=x}}),this.flightDuration=void 0,vr.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(x){this._flightDuration=x}})}Object.defineProperties(LE.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});LE.prototype.destroy=function(){this._suggestionSubscription.dispose()};function crt(o){if(o._suggestions.length===0)return;let f=o._suggestions.indexOf(o._selectedSuggestion);if(f===-1||f===0){o._selectedSuggestion=void 0;return}let m=f-1;o._selectedSuggestion=o._suggestions[m],LE._adjustSuggestionsScroll(o,m)}function hrt(o){if(o._suggestions.length===0)return;let f=o._suggestions.length,m=(o._suggestions.indexOf(o._selectedSuggestion)+1)%f;o._selectedSuggestion=o._suggestions[m],LE._adjustSuggestionsScroll(o,m)}function dir(o,f){let m=N(f)?f.availability:void 0;return N(m)?cD(f,[o]).then(function(x){return o=x[0],o.height+=urt,o}):(o.height+=urt,Promise.resolve(o))}function fir(o,f){let m=o._scene,x=m.ellipsoid,v=m.camera,y=m.terrainProvider,C=f,w;return f instanceof Si?Ce.equalsEpsilon(f.south,f.north,Ce.EPSILON7)&&Ce.equalsEpsilon(f.east,f.west,Ce.EPSILON7)?f=Si.center(f):w=Ode(f,m):f=x.cartesianToCartographic(f),N(w)||(w=dir(f,y)),w.then(function(T){C=x.cartographicToCartesian(T)}).finally(function(){v.flyTo({destination:C,complete:function(){o._complete.raiseEvent()},duration:o._flightDuration,endTransform:Ee.IDENTITY})})}async function pir(o,f,m){try{return{state:"fulfilled",value:await o.geocode(f,m),credits:o.credit}}catch(x){return{state:"rejected",reason:x}}}async function mir(o,f,m){let x=o._searchText;if(WCt(x)){o.showSuggestions();return}o._isSearchInProgress=!0,o._wasGeocodeCancelled=!1;let v,y;for(v=0;v<f.length;v++){if(o._wasGeocodeCancelled)return;if(y=await pir(f[v],x,m),N(y)&&y.state==="fulfilled"&&y.value.length>0)break}if(o._wasGeocodeCancelled)return;o._isSearchInProgress=!1,mVe(o);let C=y.value;if(y.state==="fulfilled"&&N(C)&&C.length>0){o._searchText=C[0].displayName,o.destinationFound(o,C[0].destination);let w=GCt(o,Hfe.getCreditsFromResult(C[0]));N(w)||pVe(o,f[v].credit);return}o._searchText=`${x} (not found)`}function pVe(o,f){N(f)&&!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&(o._scene.frameState.creditDisplay.addStaticCredit(f),o._previousCredits.push(f))}function GCt(o,f){return N(f)&&f.forEach(m=>pVe(o,m)),f}function mVe(o){!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&o._previousCredits.forEach(f=>{o._scene.frameState.creditDisplay.removeStaticCredit(f)}),o._previousCredits.length=0}function xir(o,f){let m=Pd(o._viewContainer),x=m.getElementsByClassName("search-results")[0],v=m.getElementsByTagName("li")[f];if(f===0){x.scrollTop=0;return}let y=v.offsetTop;y+v.clientHeight>x.clientHeight?x.scrollTop=y+v.clientHeight:y<x.scrollTop&&(x.scrollTop=y)}function gir(o){o._isSearchInProgress&&(o._isSearchInProgress=!1,o._wasGeocodeCancelled=!0)}function WCt(o){return/^\s*$/.test(o)}function jCt(o){vr.getObservable(o,"_suggestions").removeAll()}async function _ir(o){if(!o.autoComplete)return;let f=o._searchText;if(jCt(o),mVe(o),!WCt(f))for(let m of o._geocoderServices){let x=await m.geocode(f,iee.AUTOCOMPLETE);if(o._suggestions=o._suggestions.concat(x),x.length>0){let v=!0;x.forEach(y=>{let C=Hfe.getCreditsFromResult(y);v=v&&!N(C),GCt(o,C)}),v&&pVe(o,m.credit)}if(o._suggestions.length>=5)return}}LE.flyToDestination=fir;LE._updateSearchSuggestions=_ir;LE._adjustSuggestionsScroll=xir;LE.prototype.isDestroyed=function(){return!1};LE.prototype.destroy=function(){return mVe(this),Ir(this)};var xVe=LE,vir="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",yir="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function p0e(o){let f=Pd(o.container),m=new xVe(o);m._startSearchPath=vir,m._stopSearchPath=yir;let x=document.createElement("form");x.setAttribute("data-bind","submit: search");let v=document.createElement("input");v.type="search",v.className="cesium-geocoder-input",v.setAttribute("placeholder","Enter an address or landmark..."),v.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){v.select()},0)},v.addEventListener("focus",this._onTextBoxFocus,!1),x.appendChild(v),this._textBox=v;let y=document.createElement("span");y.className="cesium-geocoder-searchButton",y.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),x.appendChild(y),f.appendChild(x);let C=document.createElement("div");C.className="search-results",C.setAttribute("data-bind","visible: _suggestionsVisible");let w=document.createElement("ul");w.setAttribute("data-bind","foreach: _suggestions");let T=document.createElement("li");w.appendChild(T),T.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),C.appendChild(w),f.appendChild(C),vr.applyBindings(m,x),vr.applyBindings(m,C),this._container=f,this._searchSuggestionsContainer=C,this._viewModel=m,this._form=x,this._onInputBegin=function(E){let A=E.target;typeof E.composedPath=="function"&&(A=E.composedPath()[0]),f.contains(A)||(m._focusTextbox=!1,m.hideSuggestions())},this._onInputEnd=function(E){m._focusTextbox=!0,m.showSuggestions()},ma.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),f.addEventListener("pointerup",this._onInputEnd,!0),f.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),f.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),f.addEventListener("touchend",this._onInputEnd,!0),f.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(p0e.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});p0e.prototype.isDestroyed=function(){return!1};p0e.prototype.destroy=function(){let o=this._container;return ma.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),o.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),o.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),o.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),vr.cleanNode(this._form),vr.cleanNode(this._searchSuggestionsContainer),o.removeChild(this._form),o.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),Ir(this)};var gVe=p0e;function qCt(o,f){this._scene=o,this._duration=f;let m=this;this._command=bu(function(){m._scene.camera.flyHome(m._duration)}),this.tooltip="View Home",vr.track(this,["tooltip"])}Object.defineProperties(qCt.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(o){this._duration=o}}});var _Ve=qCt;function m0e(o,f,m){o=Pd(o);let x=new _Ve(f,m);x._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-home-button",v.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),o.appendChild(v),vr.applyBindings(x,v),this._container=o,this._viewModel=x,this._element=v}Object.defineProperties(m0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});m0e.prototype.isDestroyed=function(){return!1};m0e.prototype.destroy=function(){return vr.cleanNode(this._element),this._container.removeChild(this._element),Ir(this)};var vVe=m0e;function Cir(o,f){f.currentTarget.parentElement.parentElement.querySelector(`#${o.name}-expander`).classList.toggle("active"),f.currentTarget.textContent=f.currentTarget.textContent==="+"?"-":"+"}function YCt(o,f){vr.track(o);for(let m=0;m<o.sublayers.length;m++)YCt(o.sublayers[m],f)}function Xue(o){return o.modelName==="FullModel"}function XCt(o){return o.modelName==="Overview"}function KCt(o){return XCt(o)||Xue(o)}function drt(o,f){if(KCt(o)){o.visibility=!1;for(let x=0;x<o.sublayers.length;x++)o.sublayers[x].visibility=!0;let m={name:o.name,modelName:o.modelName,disable:vr.observable(!1),index:f.sublayers.length};return f.topLayers.push(m),f.sublayers.push(o),m}}function bir(o,f){if(KCt(o)){f.sublayers.forEach(x=>x.visibility=!1),f.sublayers[o.index].visibility=!0;let m=document.getElementById("bsl-wrapper");Xue(o)?(f.currentLevel=f.selectedLevel,m.style.display="block"):(f.selectedLevel=f.currentLevel,f.currentLevel="All",m.style.display="none")}}async function wir(o,f){try{let m=o.getAttributeNames();for(let x=0;x<m.length;x++)if(m[x]==="BldgLevel"){let v=o.getAttributeValues(m[x]);for(let y=0;y<v.length;y++)f.push(v[y])}f.sort((x,v)=>x-v),f.unshift("All")}catch(m){console.log(`There was an error getting attributes: ${m}`)}}function Tir(o){let f=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:vr.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:vr.observable(!0),index:-1}],currentLayer:vr.observable(),expandClickHandler:Cir,setOptionDisable:function(x,v){vr.applyBindingsToNode(x,{disable:v.disable},v)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(x){bir(x,f.viewModel)});let m=o.sublayers;for(let x=0;x<m.length;x++){YCt(m[x],this.viewModel);let v=drt(m[x],this.viewModel);N(v)&&(XCt(v)||!N(this.viewModel.defaultLayer)&&Xue(v))&&(this.viewModel.defaultLayer=v)}if(this.viewModel.topLayers.length===1&&m.length>0){o.show=!1;let x={name:"Full Model",modelName:"FullModel",visibility:o.show,sublayers:o.sublayers};this.viewModel.defaultLayer=drt(x,this.viewModel),this.viewModel.currentLayer.subscribe(function(v){o.show=Xue(v)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return wir(o,this.levels),this.viewModel.currentLevel.subscribe(function(x){x!=="All"?o.filterByAttributes([{name:"BldgLevel",values:[x]}]):o.filterByAttributes()}),this.viewModel}var yVe=Tir;function Eir(o,f){let m=document.getElementById(o),x=document.createElement("div");x.classList.add("cesium-viewer-i3s-explorer"),x.innerHTML=`
`);m.value=m.value.slice(0,x)+E+m.value.slice(v),m.selectionStart=x!==v?x:y,m.selectionEnd=y}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileStyle();return!0};N_.prototype._update=function(){let o=this._tileset;if(this.performance&&this._performanceDisplay.update(),N(o)){if(o.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let f=o.style;this._style!==o.style&&(this._shouldStyle?(o.style=this._style,this._shouldStyle=!1):(this._style=f,this.styleString=JSON.stringify(f.style,null,"  ")))}this.showStatistics&&(this._statisticsText=VJ(o,!1),this._pickStatisticsText=VJ(o,!0),this._resourceCacheStatisticsText=HCt())};N_.prototype.isDestroyed=function(){return!1};N_.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let o=this;return this._definedProperties.forEach(function(f){vr.getObservable(o,f).dispose()}),Ir(this)};N_.getStatistics=VJ;var lVe=N_;function c0e(o,f){o=Pd(o);let m=document.createElement("div"),x=document.createElement("div");x.setAttribute("data-bind","visible: performance");let v=new lVe(f,x);this._viewModel=v,this._container=o,this._element=m;let y=document.createElement("div");y.textContent="3D Tiles Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleInspector"),m.appendChild(y),m.className="cesium-cesiumInspector cesium-3DTilesInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let C=document.createElement("div");C.className="cesium-cesiumInspector-dropDown",m.appendChild(C);let w=sM.createSection,T=sM.createCheckbox,E=sM.createRangeInput,A=sM.createButton,S=w(C,"Tileset","tilesetVisible","toggleTileset"),M=w(C,"Display","displayVisible","toggleDisplay"),I=w(C,"Update","updateVisible","toggleUpdate"),P=w(C,"Logging","loggingVisible","toggleLogging"),D=w(C,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),R=w(C,"Style","styleVisible","toggleStyle"),L=w(C,"Optimization","optimizationVisible","toggleOptimization"),O=document.createElement("div");O.className="field-group";let F=document.createElement("label");F.className="field-label",F.appendChild(document.createTextNode("Properties: "));let B=document.createElement("div");B.setAttribute("data-bind","text: properties"),O.appendChild(F),O.appendChild(B),S.appendChild(O),S.appendChild(A("Pick Tileset","togglePickTileset","pickActive")),S.appendChild(A("Trim Tiles Cache","trimTilesCache")),S.appendChild(T("Enable Picking","picking")),M.appendChild(T("Colorize","colorize"));let H=M.appendChild(T("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),G=document.createElement("p");G.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),G.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),G.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",H.appendChild(G),M.appendChild(T("Bounding Volumes","showBoundingVolumes")),M.appendChild(T("Content Volumes","showContentBoundingVolumes")),M.appendChild(T("Request Volumes","showRequestVolumes")),M.appendChild(T("Point Cloud Shading","pointCloudShading"));let W=document.createElement("div");W.setAttribute("data-bind","visible: pointCloudShading"),W.appendChild(E("Geometric Error Scale","geometricErrorScale",0,2,.01)),W.appendChild(E("Maximum Attenuation","maximumAttenuation",0,32,1)),W.appendChild(E("Base Resolution","baseResolution",0,1,.01)),W.appendChild(T("Eye Dome Lighting (EDL)","eyeDomeLighting")),M.appendChild(W);let Y=document.createElement("div");Y.setAttribute("data-bind","visible: eyeDomeLighting"),Y.appendChild(E("EDL Strength","eyeDomeLightingStrength",0,2,.1)),Y.appendChild(E("EDL Radius","eyeDomeLightingRadius",0,4,.1)),W.appendChild(Y),I.appendChild(T("Freeze Frame","freezeFrame")),I.appendChild(T("Dynamic Screen Space Error","dynamicScreenSpaceError"));let K=document.createElement("div");K.appendChild(E("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),I.appendChild(K);let X=document.createElement("div");X.setAttribute("data-bind","visible: dynamicScreenSpaceError"),X.appendChild(E("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),X.appendChild(E("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),I.appendChild(X),P.appendChild(T("Performance","performance")),P.appendChild(x),P.appendChild(T("Statistics","showStatistics"));let q=document.createElement("div");q.className="cesium-3dTilesInspector-statistics",q.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),P.appendChild(q),P.appendChild(T("Pick Statistics","showPickStatistics"));let J=document.createElement("div");J.className="cesium-3dTilesInspector-statistics",J.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),P.appendChild(J),P.appendChild(T("Resource Cache Statistics","showResourceCacheStatistics"));let Z=document.createElement("div");Z.className="cesium-3dTilesInspector-statistics",Z.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),P.appendChild(Z);let z=document.createElement("div");R.appendChild(z),z.appendChild(document.createTextNode("Color Blend Mode: "));let te=document.createElement("select");te.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),z.appendChild(te);let ie=document.createElement("textarea");ie.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),z.className="cesium-cesiumInspector-styleEditor",z.appendChild(ie);let re=A("Compile (Ctrl+Enter)","compileStyle");z.appendChild(re);let ee=document.createElement("div");ee.className="cesium-cesiumInspector-error",ee.setAttribute("data-bind","text: editorError"),z.appendChild(ee),D.appendChild(T("Show Picked Only","showOnlyPickedTileDebugLabel")),D.appendChild(T("Geometric Error","showGeometricError")),D.appendChild(T("Rendering Statistics","showRenderingStatistics")),D.appendChild(T("Memory Usage (MB)","showMemoryUsage")),D.appendChild(T("Url","showUrl")),L.appendChild(T("Skip Tile LODs","skipLevelOfDetail"));let oe=document.createElement("div");oe.appendChild(E("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),L.appendChild(oe);let ae=document.createElement("div");ae.appendChild(E("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),L.appendChild(ae);let he=document.createElement("div");he.appendChild(E("Min. levels to skip","skipLevels",0,10,1)),L.appendChild(he),L.appendChild(T("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),L.appendChild(T("Load siblings of visible tiles","loadSiblings")),vr.applyBindings(v,m)}Object.defineProperties(c0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});c0e.prototype.isDestroyed=function(){return!1};c0e.prototype.destroy=function(){return vr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Ir(this)};var uVe=c0e;function sir(o){let f;if(N(o)){f="Command Statistics";let m=o.commandsInFrustums;for(let x in m)if(m.hasOwnProperty(x)){let v=parseInt(x,10),y;if(v===7)y="1, 2 and 3";else{let C=[];for(let w=2;w>=0;w--){let T=Math.pow(2,w);v>=T&&(C.push(w+1),v-=T)}y=C.reverse().join(" and ")}f+=`<br>&nbsp;&nbsp;&nbsp;&nbsp;${m[x]} in frustum ${y}`}f+=`<br>Total: ${o.totalCommands}`}return f}function OAe(o,f,m){let x=Math.min(m,f);return x=Math.max(x,o),x}var lir=new qa,uir=new V;function vee(o,f){let m=this,x=o.canvas,v=new kr(x);this._eventHandler=v,this._scene=o,this._canvas=x,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=f;let y=this._scene.globe;y.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",vr.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=bu(function(){m.dropDownVisible=!m.dropDownVisible}),this._toggleGeneral=bu(function(){m.generalVisible=!m.generalVisible}),this._togglePrimitives=bu(function(){m.primitivesVisible=!m.primitivesVisible}),this._toggleTerrain=bu(function(){m.terrainVisible=!m.terrainVisible}),this._frustumsSubscription=vr.getObservable(this,"frustums").subscribe(function(E){m._scene.debugShowFrustums=E,m._scene.requestRender()}),this._frustumPlanesSubscription=vr.getObservable(this,"frustumPlanes").subscribe(function(E){m._scene.debugShowFrustumPlanes=E,m._scene.requestRender()}),this._performanceSubscription=vr.getObservable(this,"performance").subscribe(function(E){E?m._performanceDisplay=new BZ({container:m._performanceContainer}):m._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=bu(function(){return m._primitive.debugShowBoundingVolume=m.primitiveBoundingSphere,m._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=vr.getObservable(this,"primitiveBoundingSphere").subscribe(function(){m._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=bu(function(){if(m.primitiveReferenceFrame){let E=m._primitive.modelMatrix;m._modelMatrixPrimitive=new dke({modelMatrix:E}),m._scene.primitives.add(m._modelMatrixPrimitive)}else N(m._modelMatrixPrimitive)&&(m._scene.primitives.remove(m._modelMatrixPrimitive),m._modelMatrixPrimitive=void 0);return m._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=vr.getObservable(this,"primitiveReferenceFrame").subscribe(function(){m._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=bu(function(){return m.filterPrimitive?m._scene.debugCommandFilter=function(E){return N(m._modelMatrixPrimitive)&&E.owner===m._modelMatrixPrimitive._primitive?!0:N(m._primitive)?E.owner===m._primitive||E.owner===m._primitive._billboardCollection||E.owner.primitive===m._primitive:!1}:m._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=vr.getObservable(this,"filterPrimitive").subscribe(function(){m._doFilterPrimitive(),m._scene.requestRender()}),this._wireframeSubscription=vr.getObservable(this,"wireframe").subscribe(function(E){y._surface.tileProvider._debug.wireframe=E,m._scene.requestRender()}),this._depthFrustumSubscription=vr.getObservable(this,"depthFrustum").subscribe(function(E){m._scene.debugShowDepthFrustum=E,m._scene.requestRender()}),this._incrementDepthFrustum=bu(function(){let E=m.depthFrustum+1;return m.depthFrustum=OAe(1,m._numberOfFrustums,E),m._scene.requestRender(),!0}),this._decrementDepthFrustum=bu(function(){let E=m.depthFrustum-1;return m.depthFrustum=OAe(1,m._numberOfFrustums,E),m._scene.requestRender(),!0}),this._suspendUpdatesSubscription=vr.getObservable(this,"suspendUpdates").subscribe(function(E){y._surface._debug.suspendLodUpdate=E,E||(m.filterTile=!1)});let C;this._showTileCoordinates=bu(function(){return m.tileCoordinates&&!N(C)?C=o.imageryLayers.addImageryProvider(new cee({tilingScheme:o.terrainProvider.tilingScheme})):!m.tileCoordinates&&N(C)&&(o.imageryLayers.remove(C),C=void 0),!0}),this._tileCoordinatesSubscription=vr.getObservable(this,"tileCoordinates").subscribe(function(){m._showTileCoordinates(),m._scene.requestRender()}),this._tileBoundingSphereSubscription=vr.getObservable(this,"tileBoundingSphere").subscribe(function(){m._showTileBoundingSphere(),m._scene.requestRender()}),this._showTileBoundingSphere=bu(function(){return m.tileBoundingSphere?y._surface.tileProvider._debug.boundingSphereTile=m._tile:y._surface.tileProvider._debug.boundingSphereTile=void 0,m._scene.requestRender(),!0}),this._doFilterTile=bu(function(){return m.filterTile?(m.suspendUpdates=!0,y._surface._tilesToRender=[],N(m._tile)&&m._tile.renderable&&y._surface._tilesToRender.push(m._tile)):m.suspendUpdates=!1,!0}),this._filterTileSubscription=vr.getObservable(this,"filterTile").subscribe(function(){m.doFilterTile(),m._scene.requestRender()});function w(E){let A=m._scene.pick({x:E.position.x,y:E.position.y});N(A)&&(m.primitive=N(A.collection)?A.collection:A.primitive),m._scene.requestRender(),m.pickPrimitiveActive=!1}this._pickPrimitive=bu(function(){m.pickPrimitiveActive=!m.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=vr.getObservable(this,"pickPrimitiveActive").subscribe(function(E){E?v.setInputAction(w,Di.LEFT_CLICK):v.removeInputAction(Di.LEFT_CLICK)});function T(E){let A,S=y.ellipsoid,M=m._scene.camera.getPickRay(E.position,lir),I=y.pick(M,m._scene,uir);if(N(I)){let P=S.cartesianToCartographic(I),D=y._surface.tileProvider._tilesToRenderByTextureCount;for(let R=0;!A&&R<D.length;++R){let L=D[R];if(N(L))for(let O=0;!A&&O<L.length;++O){let F=L[O];Si.contains(F.rectangle,P)&&(A=F)}}}m.tile=A,m.pickTileActive=!1}this._pickTile=bu(function(){m.pickTileActive=!m.pickTileActive}),this._pickTileActiveSubscription=vr.getObservable(this,"pickTileActive").subscribe(function(E){E?v.setInputAction(T,Di.LEFT_CLICK):v.removeInputAction(Di.LEFT_CLICK)}),this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()})}Object.defineProperties(vee.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let o=this;return bu(function(){o.tile=o.tile.parent})}},selectNW:{get:function(){let o=this;return bu(function(){o.tile=o.tile.northwestChild})}},selectNE:{get:function(){let o=this;return bu(function(){o.tile=o.tile.northeastChild})}},selectSW:{get:function(){let o=this;return bu(function(){o.tile=o.tile.southwestChild})}},selectSE:{get:function(){let o=this;return bu(function(){o.tile=o.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(o){let f=this._primitive;o!==f&&(this.hasPickedPrimitive=!0,N(f)&&(f.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,N(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=o,o.show=!1,setTimeout(function(){o.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(o){if(N(o)){this.hasPickedTile=!0;let f=this._tile;if(o!==f){this.tileText=`L: ${o.level} X: ${o.x} Y: ${o.y}`,this.tileText+=`<br>SW corner: ${o.rectangle.west}, ${o.rectangle.south}`,this.tileText+=`<br>NE corner: ${o.rectangle.east}, ${o.rectangle.north}`;let m=o.data;N(m)&&N(m.tileBoundingRegion)?this.tileText+=`<br>Min: ${m.tileBoundingRegion.minimumHeight} Max: ${m.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=o,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});vee.prototype._update=function(){this.frustums&&(this.frustumStatisticText=sir(this._scene.debugFrustumStatistics));let o=this._scene.numberOfFrustums;this._numberOfFrustums=o,this.depthFrustum=OAe(1,o,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${o}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};vee.prototype.isDestroyed=function(){return!1};vee.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),Ir(this)};var cVe=vee;function h0e(o,f){o=Pd(o);let m=document.createElement("div"),x=new cVe(f,m);this._viewModel=x,this._container=o;let v=document.createElement("div");this._element=v;let y=document.createElement("div");y.textContent="Cesium Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleDropDown"),v.appendChild(y),v.className="cesium-cesiumInspector",v.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),o.appendChild(this._element);let C=document.createElement("div");C.className="cesium-cesiumInspector-dropDown",v.appendChild(C);let w=sM.createSection,T=sM.createCheckbox,E=w(C,"General","generalVisible","toggleGeneral"),A=T("Show Frustums","frustums"),S=document.createElement("div");S.className="cesium-cesiumInspector-frustumStatistics",S.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),A.appendChild(S),E.appendChild(A),E.appendChild(T("Show Frustum Planes","frustumPlanes")),E.appendChild(T("Performance Display","performance")),m.className="cesium-cesiumInspector-performanceDisplay",E.appendChild(m);let M=document.createElement("div");M.className="cesium-cesiumInspector-shaderCache",M.setAttribute("data-bind","html: shaderCacheText"),E.appendChild(M);let I=document.createElement("div");E.appendChild(I);let P=document.createElement("span");P.setAttribute("data-bind",'html: "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Frustum:"'),I.appendChild(P);let D=document.createElement("span");D.setAttribute("data-bind","text: depthFrustumText"),I.appendChild(D);let R=document.createElement("input");R.type="button",R.value="-",R.className="cesium-cesiumInspector-pickButton",R.setAttribute("data-bind","click: decrementDepthFrustum"),I.appendChild(R);let L=document.createElement("input");L.type="button",L.value="+",L.className="cesium-cesiumInspector-pickButton",L.setAttribute("data-bind","click: incrementDepthFrustum"),I.appendChild(L);let O=w(C,"Primitives","primitivesVisible","togglePrimitives"),F=document.createElement("div");F.className="cesium-cesiumInspector-pickSection",O.appendChild(F);let B=document.createElement("input");B.type="button",B.value="Pick a primitive",B.className="cesium-cesiumInspector-pickButton",B.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let H=document.createElement("div");H.className="cesium-cesiumInspector-center",H.appendChild(B),F.appendChild(H),F.appendChild(T("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),F.appendChild(T("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=T("Show only selected","filterPrimitive","hasPickedPrimitive"),F.appendChild(this._primitiveOnly);let G=w(C,"Terrain","terrainVisible","toggleTerrain"),W=document.createElement("div");W.className="cesium-cesiumInspector-pickSection",G.appendChild(W);let Y=document.createElement("input");Y.type="button",Y.value="Pick a tile",Y.className="cesium-cesiumInspector-pickButton",Y.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),H=document.createElement("div"),H.appendChild(Y),H.className="cesium-cesiumInspector-center",W.appendChild(H);let K=document.createElement("div");W.appendChild(K);let X=document.createElement("input");X.type="button",X.value="Parent",X.className="cesium-cesiumInspector-pickButton",X.setAttribute("data-bind","click: selectParent");let q=document.createElement("input");q.type="button",q.value="NW",q.className="cesium-cesiumInspector-pickButton",q.setAttribute("data-bind","click: selectNW");let J=document.createElement("input");J.type="button",J.value="NE",J.className="cesium-cesiumInspector-pickButton",J.setAttribute("data-bind","click: selectNE");let Z=document.createElement("input");Z.type="button",Z.value="SW",Z.className="cesium-cesiumInspector-pickButton",Z.setAttribute("data-bind","click: selectSW");let z=document.createElement("input");z.type="button",z.value="SE",z.className="cesium-cesiumInspector-pickButton",z.setAttribute("data-bind","click: selectSE");let te=document.createElement("div");te.className="cesium-cesiumInspector-tileText",K.className="cesium-cesiumInspector-frustumStatistics",K.appendChild(te),K.setAttribute("data-bind","visible: hasPickedTile"),te.setAttribute("data-bind","html: tileText");let ie=document.createElement("div");ie.className="cesium-cesiumInspector-relativeText",ie.textContent="Select relative:",K.appendChild(ie);let re=document.createElement("table"),ee=document.createElement("tr"),oe=document.createElement("tr"),ae=document.createElement("td");ae.appendChild(X);let he=document.createElement("td");he.appendChild(q);let me=document.createElement("td");me.appendChild(J),ee.appendChild(ae),ee.appendChild(he),ee.appendChild(me);let ue=document.createElement("td"),ce=document.createElement("td");ce.appendChild(Z);let de=document.createElement("td");de.appendChild(z),oe.appendChild(ue),oe.appendChild(ce),oe.appendChild(de),re.appendChild(ee),re.appendChild(oe),K.appendChild(re),W.appendChild(T("Show bounding volume","tileBoundingSphere","hasPickedTile")),W.appendChild(T("Show only selected","filterTile","hasPickedTile")),G.appendChild(T("Wireframe","wireframe")),G.appendChild(T("Suspend LOD update","suspendUpdates")),G.appendChild(T("Show tile coordinates","tileCoordinates")),vr.applyBindings(x,this._element)}Object.defineProperties(h0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});h0e.prototype.isDestroyed=function(){return!1};h0e.prototype.destroy=function(){return vr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Ir(this)};var hVe=h0e,urt=1e3;function LE(o){N(o.geocoderServices)?this._geocoderServices=o.geocoderServices:this._geocoderServices=[new jfe({scene:o.scene})],this._viewContainer=o.container,this._scene=o.scene,this._flightDuration=o.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new Or,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=hrt,this._handleArrowUp=crt;let f=this;this._suggestionsVisible=vr.pureComputed(function(){let x=vr.getObservable(f,"_suggestions")().length>0,v=vr.getObservable(f,"_showSuggestions")();return x&&v}),this._searchCommand=bu(function(x){if(x=x??iee.SEARCH,f._focusTextbox=!1,N(f._selectedSuggestion))return f.activateSuggestion(f._selectedSuggestion),!1;if(f.hideSuggestions(),f.isSearchInProgress)mir(f);else return fir(f,f._geocoderServices,x)}),this.deselectSuggestion=function(){f._selectedSuggestion=void 0},this.handleKeyDown=function(x,v){let y=v.key==="ArrowDown"||v.key==="Down"||v.keyCode===40,C=v.key==="ArrowUp"||v.key==="Up"||v.keyCode===38;return(y||C)&&v.preventDefault(),!0},this.handleKeyUp=function(x,v){let y=v.key==="ArrowDown"||v.key==="Down"||v.keyCode===40,C=v.key==="ArrowUp"||v.key==="Up"||v.keyCode===38,w=v.key==="Enter"||v.keyCode===13;return C?crt(f):y?hrt(f):w&&f._searchCommand(),!0},this.activateSuggestion=function(x){f.hideSuggestions(),f._searchText=x.displayName;let v=x.destination;jCt(f),f.destinationFound(f,v)},this.hideSuggestions=function(){f._showSuggestions=!1,f._selectedSuggestion=void 0},this.showSuggestions=function(){f._showSuggestions=!0},this.handleMouseover=function(x,v){x!==f._selectedSuggestion&&(f._selectedSuggestion=x)},this.keepExpanded=!1,this.autoComplete=o.autocomplete??!0,this.destinationFound=o.destinationFound??LE.flyToDestination,this._focusTextbox=!1,vr.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let m=vr.getObservable(this,"_searchText");m.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=m.subscribe(function(){LE._updateSearchSuggestions(f)}),this.isSearchInProgress=void 0,vr.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,vr.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(x){this._searchText=x}}),this.flightDuration=void 0,vr.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(x){this._flightDuration=x}})}Object.defineProperties(LE.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});LE.prototype.destroy=function(){this._suggestionSubscription.dispose()};function crt(o){if(o._suggestions.length===0)return;let f=o._suggestions.indexOf(o._selectedSuggestion);if(f===-1||f===0){o._selectedSuggestion=void 0;return}let m=f-1;o._selectedSuggestion=o._suggestions[m],LE._adjustSuggestionsScroll(o,m)}function hrt(o){if(o._suggestions.length===0)return;let f=o._suggestions.length,m=(o._suggestions.indexOf(o._selectedSuggestion)+1)%f;o._selectedSuggestion=o._suggestions[m],LE._adjustSuggestionsScroll(o,m)}function cir(o,f){let m=N(f)?f.availability:void 0;return N(m)?cD(f,[o]).then(function(x){return o=x[0],o.height+=urt,o}):(o.height+=urt,Promise.resolve(o))}function hir(o,f){let m=o._scene,x=m.ellipsoid,v=m.camera,y=m.terrainProvider,C=f,w;return f instanceof Si?Ce.equalsEpsilon(f.south,f.north,Ce.EPSILON7)&&Ce.equalsEpsilon(f.east,f.west,Ce.EPSILON7)?f=Si.center(f):w=Ode(f,m):f=x.cartesianToCartographic(f),N(w)||(w=cir(f,y)),w.then(function(T){C=x.cartographicToCartesian(T)}).finally(function(){v.flyTo({destination:C,complete:function(){o._complete.raiseEvent()},duration:o._flightDuration,endTransform:Ee.IDENTITY})})}async function dir(o,f,m){try{return{state:"fulfilled",value:await o.geocode(f,m),credits:o.credit}}catch(x){return{state:"rejected",reason:x}}}async function fir(o,f,m){let x=o._searchText;if(WCt(x)){o.showSuggestions();return}o._isSearchInProgress=!0,o._wasGeocodeCancelled=!1;let v,y;for(v=0;v<f.length;v++){if(o._wasGeocodeCancelled)return;if(y=await dir(f[v],x,m),N(y)&&y.state==="fulfilled"&&y.value.length>0)break}if(o._wasGeocodeCancelled)return;o._isSearchInProgress=!1,fVe(o);let C=y.value;if(y.state==="fulfilled"&&N(C)&&C.length>0){o._searchText=C[0].displayName,o.destinationFound(o,C[0].destination);let w=GCt(o,Hfe.getCreditsFromResult(C[0]));N(w)||dVe(o,f[v].credit);return}o._searchText=`${x} (not found)`}function dVe(o,f){N(f)&&!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&(o._scene.frameState.creditDisplay.addStaticCredit(f),o._previousCredits.push(f))}function GCt(o,f){return N(f)&&f.forEach(m=>dVe(o,m)),f}function fVe(o){!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&o._previousCredits.forEach(f=>{o._scene.frameState.creditDisplay.removeStaticCredit(f)}),o._previousCredits.length=0}function pir(o,f){let m=Pd(o._viewContainer),x=m.getElementsByClassName("search-results")[0],v=m.getElementsByTagName("li")[f];if(f===0){x.scrollTop=0;return}let y=v.offsetTop;y+v.clientHeight>x.clientHeight?x.scrollTop=y+v.clientHeight:y<x.scrollTop&&(x.scrollTop=y)}function mir(o){o._isSearchInProgress&&(o._isSearchInProgress=!1,o._wasGeocodeCancelled=!0)}function WCt(o){return/^\s*$/.test(o)}function jCt(o){vr.getObservable(o,"_suggestions").removeAll()}async function xir(o){if(!o.autoComplete)return;let f=o._searchText;if(jCt(o),fVe(o),!WCt(f))for(let m of o._geocoderServices){let x=await m.geocode(f,iee.AUTOCOMPLETE);if(o._suggestions=o._suggestions.concat(x),x.length>0){let v=!0;x.forEach(y=>{let C=Hfe.getCreditsFromResult(y);v=v&&!N(C),GCt(o,C)}),v&&dVe(o,m.credit)}if(o._suggestions.length>=5)return}}LE.flyToDestination=hir;LE._updateSearchSuggestions=xir;LE._adjustSuggestionsScroll=pir;LE.prototype.isDestroyed=function(){return!1};LE.prototype.destroy=function(){return fVe(this),Ir(this)};var pVe=LE,gir="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",_ir="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function d0e(o){let f=Pd(o.container),m=new pVe(o);m._startSearchPath=gir,m._stopSearchPath=_ir;let x=document.createElement("form");x.setAttribute("data-bind","submit: search");let v=document.createElement("input");v.type="search",v.className="cesium-geocoder-input",v.setAttribute("placeholder","Enter an address or landmark..."),v.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){v.select()},0)},v.addEventListener("focus",this._onTextBoxFocus,!1),x.appendChild(v),this._textBox=v;let y=document.createElement("span");y.className="cesium-geocoder-searchButton",y.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),x.appendChild(y),f.appendChild(x);let C=document.createElement("div");C.className="search-results",C.setAttribute("data-bind","visible: _suggestionsVisible");let w=document.createElement("ul");w.setAttribute("data-bind","foreach: _suggestions");let T=document.createElement("li");w.appendChild(T),T.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),C.appendChild(w),f.appendChild(C),vr.applyBindings(m,x),vr.applyBindings(m,C),this._container=f,this._searchSuggestionsContainer=C,this._viewModel=m,this._form=x,this._onInputBegin=function(E){let A=E.target;typeof E.composedPath=="function"&&(A=E.composedPath()[0]),f.contains(A)||(m._focusTextbox=!1,m.hideSuggestions())},this._onInputEnd=function(E){m._focusTextbox=!0,m.showSuggestions()},ma.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),f.addEventListener("pointerup",this._onInputEnd,!0),f.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),f.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),f.addEventListener("touchend",this._onInputEnd,!0),f.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(d0e.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});d0e.prototype.isDestroyed=function(){return!1};d0e.prototype.destroy=function(){let o=this._container;return ma.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),o.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),o.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),o.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),vr.cleanNode(this._form),vr.cleanNode(this._searchSuggestionsContainer),o.removeChild(this._form),o.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),Ir(this)};var mVe=d0e;function qCt(o,f){this._scene=o,this._duration=f;let m=this;this._command=bu(function(){m._scene.camera.flyHome(m._duration)}),this.tooltip="View Home",vr.track(this,["tooltip"])}Object.defineProperties(qCt.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(o){this._duration=o}}});var xVe=qCt;function f0e(o,f,m){o=Pd(o);let x=new xVe(f,m);x._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-home-button",v.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),o.appendChild(v),vr.applyBindings(x,v),this._container=o,this._viewModel=x,this._element=v}Object.defineProperties(f0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});f0e.prototype.isDestroyed=function(){return!1};f0e.prototype.destroy=function(){return vr.cleanNode(this._element),this._container.removeChild(this._element),Ir(this)};var gVe=f0e;function vir(o,f){f.currentTarget.parentElement.parentElement.querySelector(`#${o.name}-expander`).classList.toggle("active"),f.currentTarget.textContent=f.currentTarget.textContent==="+"?"-":"+"}function YCt(o,f){vr.track(o);for(let m=0;m<o.sublayers.length;m++)YCt(o.sublayers[m],f)}function Xue(o){return o.modelName==="FullModel"}function XCt(o){return o.modelName==="Overview"}function KCt(o){return XCt(o)||Xue(o)}function drt(o,f){if(KCt(o)){o.visibility=!1;for(let x=0;x<o.sublayers.length;x++)o.sublayers[x].visibility=!0;let m={name:o.name,modelName:o.modelName,disable:vr.observable(!1),index:f.sublayers.length};return f.topLayers.push(m),f.sublayers.push(o),m}}function yir(o,f){if(KCt(o)){f.sublayers.forEach(x=>x.visibility=!1),f.sublayers[o.index].visibility=!0;let m=document.getElementById("bsl-wrapper");Xue(o)?(f.currentLevel=f.selectedLevel,m.style.display="block"):(f.selectedLevel=f.currentLevel,f.currentLevel="All",m.style.display="none")}}async function Cir(o,f){try{let m=o.getAttributeNames();for(let x=0;x<m.length;x++)if(m[x]==="BldgLevel"){let v=o.getAttributeValues(m[x]);for(let y=0;y<v.length;y++)f.push(v[y])}f.sort((x,v)=>x-v),f.unshift("All")}catch(m){console.log(`There was an error getting attributes: ${m}`)}}function bir(o){let f=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:vr.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:vr.observable(!0),index:-1}],currentLayer:vr.observable(),expandClickHandler:vir,setOptionDisable:function(x,v){vr.applyBindingsToNode(x,{disable:v.disable},v)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(x){yir(x,f.viewModel)});let m=o.sublayers;for(let x=0;x<m.length;x++){YCt(m[x],this.viewModel);let v=drt(m[x],this.viewModel);N(v)&&(XCt(v)||!N(this.viewModel.defaultLayer)&&Xue(v))&&(this.viewModel.defaultLayer=v)}if(this.viewModel.topLayers.length===1&&m.length>0){o.show=!1;let x={name:"Full Model",modelName:"FullModel",visibility:o.show,sublayers:o.sublayers};this.viewModel.defaultLayer=drt(x,this.viewModel),this.viewModel.currentLayer.subscribe(function(v){o.show=Xue(v)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return Cir(o,this.levels),this.viewModel.currentLevel.subscribe(function(x){x!=="All"?o.filterByAttributes([{name:"BldgLevel",values:[x]}]):o.filterByAttributes()}),this.viewModel}var _Ve=bir;function wir(o,f){let m=document.getElementById(o),x=document.createElement("div");x.classList.add("cesium-viewer-i3s-explorer"),x.innerHTML=`
        <h3>Building explorer</h3>
        <select
          data-bind="options: topLayers, optionsText: 'name', optionsAfterRender: setOptionDisable, value: currentLayer"
@@ -23841,11 +23924,11 @@
              </li>
            </ul>
          </ul>
        </div>`,m.appendChild(x);let v=new yVe(f);vr.track(v),vr.applyBindings(v,m),N(v.defaultLayer)&&(v.currentLayer=v.defaultLayer)}var $Ct=Eir,Air="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",Sir="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function CVe(){this._cameraClicked=new Or,this._closeClicked=new Or,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",vr.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,vr.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?Sir:Air}}),vr.defineProperty(this,"_bodyless",{get:function(){return!N(this.description)||this.description.length===0}})}CVe.prototype.maxHeightOffset=function(o){return`${this.maxHeight-o}px`};Object.defineProperties(CVe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var bVe=CVe;function x0e(o){o=Pd(o);let f=document.createElement("div");f.className="cesium-infoBox",f.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),o.appendChild(f);let m=document.createElement("div");m.className="cesium-infoBox-title",m.setAttribute("data-bind","text: titleText"),f.appendChild(m);let x=document.createElement("button");x.type="button",x.className="cesium-button cesium-infoBox-camera",x.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),f.appendChild(x);let v=document.createElement("button");v.type="button",v.className="cesium-infoBox-close",v.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),v.innerHTML="&times;",f.appendChild(v);let y=document.createElement("iframe");y.className="cesium-infoBox-iframe",y.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),y.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),y.setAttribute("allowfullscreen",!0),f.appendChild(y);let C=new bVe;vr.applyBindings(C,f),this._container=o,this._element=f,this._frame=y,this._viewModel=C,this._descriptionSubscription=void 0;let w=this;y.addEventListener("load",function(){let T=y.contentDocument,E=T.createElement("link");E.href=va("Widgets/InfoBox/InfoBoxDescription.css"),E.rel="stylesheet",E.type="text/css";let A=T.createElement("div");A.className="cesium-infoBox-description",T.head.appendChild(E),T.body.appendChild(A),w._descriptionSubscription=Nb(C,"description",function(S){y.style.height="5px",A.innerHTML=S;let M=null,I=A.firstElementChild;if(I!==null&&A.childNodes.length===1){let D=window.getComputedStyle(I);if(D!==null){let R=D["background-color"],L=ze.fromCssColorString(R);N(L)&&L.alpha!==0&&(M=D["background-color"])}}f.style["background-color"]=M;let P=A.getBoundingClientRect().height;y.style.height=`${P}px`})}),y.setAttribute("src","about:blank")}Object.defineProperties(x0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});x0e.prototype.isDestroyed=function(){return!1};x0e.prototype.destroy=function(){let o=this._container;return vr.cleanNode(this._element),o.removeChild(this._element),N(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),Ir(this)};var wVe=x0e;function JCt(){this.showInstructions=!1;let o=this;this._command=bu(function(){o.showInstructions=!o.showInstructions}),this._showClick=bu(function(){o._touch=!1}),this._showTouch=bu(function(){o._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",vr.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(JCt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var TVe=JCt;function g0e(o){let f=Pd(o.container),m=new TVe,x=o.instructionsInitiallyVisible??!1;m.showInstructions=x,m._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let v=document.createElement("span");v.className="cesium-navigationHelpButton-wrapper",f.appendChild(v);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",y.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),v.appendChild(y);let C=document.createElement("div");C.className="cesium-navigation-help",C.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),v.appendChild(C);let w=document.createElement("button");w.type="button",w.className="cesium-navigation-button cesium-navigation-button-left",w.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let T=document.createElement("img");T.src=va("Widgets/Images/NavigationHelp/Mouse.svg"),T.className="cesium-navigation-button-icon",T.style.width="25px",T.style.height="25px",w.appendChild(T),w.appendChild(document.createTextNode("Mouse"));let E=document.createElement("button");E.type="button",E.className="cesium-navigation-button cesium-navigation-button-right",E.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let A=document.createElement("img");A.src=va("Widgets/Images/NavigationHelp/Touch.svg"),A.className="cesium-navigation-button-icon",A.style.width="25px",A.style.height="25px",E.appendChild(A),E.appendChild(document.createTextNode("Touch")),C.appendChild(w),C.appendChild(E);let S=document.createElement("div");S.className="cesium-click-navigation-help cesium-navigation-help-instructions",S.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),S.innerHTML=`            <table>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-pan">Pan view</div>                        <div class="cesium-navigation-help-details">Left click + drag</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-zoom">Zoom view</div>                        <div class="cesium-navigation-help-details">Right click + drag, or</div>                        <div class="cesium-navigation-help-details">Mouse wheel scroll</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-rotate">Rotate view</div>                        <div class="cesium-navigation-help-details">Middle click + drag, or</div>                        <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div>                    </td>                </tr>            </table>`,C.appendChild(S);let M=document.createElement("div");M.className="cesium-touch-navigation-help cesium-navigation-help-instructions",M.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),M.innerHTML=`            <table>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-pan">Pan view</div>                        <div class="cesium-navigation-help-details">One finger drag</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-zoom">Zoom view</div>                        <div class="cesium-navigation-help-details">Two finger pinch</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-rotate">Tilt view</div>                        <div class="cesium-navigation-help-details">Two finger drag, same direction</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-tilt">Rotate view</div>                        <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div>                    </td>                </tr>            </table>`,C.appendChild(M),vr.applyBindings(m,v),this._container=f,this._viewModel=m,this._wrapper=v,this._closeInstructions=function(I){v.contains(I.target)||(m.showInstructions=!1)},ma.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(g0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});g0e.prototype.isDestroyed=function(){return!1};g0e.prototype.destroy=function(){return ma.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),vr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Ir(this)};var EVe=g0e;function _0e(o){this._scene=o,this._orthographic=o.camera.frustum instanceof gs,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=o.mode,vr.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let f=this;vr.defineProperty(this,"selectedTooltip",function(){return f._orthographic?f.tooltipOrthographic:f.tooltipPerspective}),this._toggleDropDown=bu(function(){f.sceneMode===Ti.SCENE2D||f._flightInProgress||(f.dropDownVisible=!f.dropDownVisible)}),this._eventHelper=new xC,this._eventHelper.add(o.morphComplete,function(m,x,v,y){f.sceneMode=v,f._orthographic=v===Ti.SCENE2D||f._scene.camera.frustum instanceof gs}),this._eventHelper.add(o.preRender,function(){f._flightInProgress=N(o.camera._currentFlight)}),this._switchToPerspective=bu(function(){f.sceneMode!==Ti.SCENE2D&&(f._scene.camera.switchToPerspectiveFrustum(),f._orthographic=!1,f.dropDownVisible=!1)}),this._switchToOrthographic=bu(function(){f.sceneMode!==Ti.SCENE2D&&(f._scene.camera.switchToOrthographicFrustum(),f._orthographic=!0,f.dropDownVisible=!1)}),this._sceneMode=Ti}Object.defineProperties(_0e.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});_0e.prototype.isDestroyed=function(){return!1};_0e.prototype.destroy=function(){this._eventHelper.removeAll(),Ir(this)};var AVe=_0e,Pir="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",Iir="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function v0e(o,f){o=Pd(o);let m=new AVe(f);m._perspectivePath=Pir,m._orthographicPath=Iir;let x=document.createElement("span");x.className="cesium-projectionPicker-wrapper cesium-toolbar-button",o.appendChild(x);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button",v.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic,       "cesium-projectionPicker-buttonOrthographic": _orthographic,       "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress,        "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),v.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',x.appendChild(v);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",y.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic),       "cesium-projectionPicker-none" : !_orthographic,       "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),x.appendChild(y);let C=document.createElement("button");C.type="button",C.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",C.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic),       "cesium-projectionPicker-none" : _orthographic,       "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),x.appendChild(C),vr.applyBindings(m,x),this._viewModel=m,this._container=o,this._wrapper=x,this._closeDropDown=function(w){x.contains(w.target)||(m.dropDownVisible=!1)},ma.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(v0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});v0e.prototype.isDestroyed=function(){return!1};v0e.prototype.destroy=function(){return this._viewModel.destroy(),ma.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),vr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Ir(this)};var SVe=v0e;function PVe(o){this._scene=o.scene,this.lowFrameRateMessage=o.lowFrameRateMessage??"This application appears to be performing poorly on your system.  Please try using a different web browser or updating your video drivers.",this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,vr.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let f=this;this._dismissMessage=bu(function(){f.showingLowFrameRateMessage=!1,f.lowFrameRateMessageDismissed=!0});let m=fke.fromScene(o.scene);this._unsubscribeLowFrameRate=m.lowFrameRate.addEventListener(function(){f.lowFrameRateMessageDismissed||(f.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=m.nominalFrameRate.addEventListener(function(){f.showingLowFrameRateMessage=!1})}Object.defineProperties(PVe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});PVe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),Ir(this)};var IVe=PVe;function y0e(o){let f=Pd(o.container),m=new IVe(o),x=document.createElement("div");x.className="cesium-performance-watchdog-message-area",x.setAttribute("data-bind","visible: showingLowFrameRateMessage");let v=document.createElement("button");v.setAttribute("type","button"),v.className="cesium-performance-watchdog-message-dismiss",v.innerHTML="&times;",v.setAttribute("data-bind","click: dismissMessage"),x.appendChild(v);let y=document.createElement("div");y.className="cesium-performance-watchdog-message",y.setAttribute("data-bind","html: lowFrameRateMessage"),x.appendChild(y),f.appendChild(x),vr.applyBindings(m,x),this._container=f,this._viewModel=m,this._element=x}Object.defineProperties(y0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});y0e.prototype.isDestroyed=function(){return!1};y0e.prototype.destroy=function(){return this._viewModel.destroy(),vr.cleanNode(this._element),this._container.removeChild(this._element),Ir(this)};var MVe=y0e;function C0e(o,f){this._scene=o;let m=this,x=function(v,y,C,w){m.sceneMode=C,m.dropDownVisible=!1};this._eventHelper=new xC,this._eventHelper.add(o.morphStart,x),this._duration=f??2,this.sceneMode=o.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",vr.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,vr.defineProperty(this,"selectedTooltip",function(){let v=m.sceneMode;return v===Ti.SCENE2D?m.tooltip2D:v===Ti.SCENE3D?m.tooltip3D:m.tooltipColumbusView}),this._toggleDropDown=bu(function(){m.dropDownVisible=!m.dropDownVisible}),this._morphTo2D=bu(function(){o.morphTo2D(m._duration)}),this._morphTo3D=bu(function(){o.morphTo3D(m._duration)}),this._morphToColumbusView=bu(function(){o.morphToColumbusView(m._duration)}),this._sceneMode=Ti}Object.defineProperties(C0e.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(o){this._duration=o}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});C0e.prototype.isDestroyed=function(){return!1};C0e.prototype.destroy=function(){this._eventHelper.removeAll(),Ir(this)};var DVe=C0e,Mir="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878         -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132         -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285         11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z         M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201         5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461         -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",Dir="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",Rir="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function b0e(o,f,m){o=Pd(o);let x=new DVe(f,m);x._globePath=Mir,x._flatMapPath=Dir,x._columbusViewPath=Rir;let v=document.createElement("span");v.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",o.appendChild(v);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button",y.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D,       "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D,       "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW,       "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),y.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',v.appendChild(y);let C=document.createElement("button");C.type="button",C.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",C.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D,       "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),v.appendChild(C);let w=document.createElement("button");w.type="button",w.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",w.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D,       "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),v.appendChild(w);let T=document.createElement("button");T.type="button",T.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",T.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW,       "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),v.appendChild(T),vr.applyBindings(x,v),this._viewModel=x,this._container=o,this._wrapper=v,this._closeDropDown=function(E){v.contains(E.target)||(x.dropDownVisible=!1)},ma.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(b0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});b0e.prototype.isDestroyed=function(){return!1};b0e.prototype.destroy=function(){return this._viewModel.destroy(),ma.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),vr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Ir(this)};var RVe=b0e,Lir=new at,Kue="-1000px";function yee(o,f,m){this._scene=o,this._screenPositionX=Kue,this._screenPositionY=Kue,this._tweens=o.tweens,this._container=m??document.body,this._selectionIndicatorElement=f,this._scale=1,this.position=void 0,this.showSelection=!1,vr.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,vr.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&N(this.position)}}),vr.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(x,v){return Va.worldToWindowCoordinates(o,x,v)}}yee.prototype.update=function(){if(this.showSelection&&N(this.position)){let o=this.computeScreenSpacePosition(this.position,Lir);if(!N(o))this._screenPositionX=Kue,this._screenPositionY=Kue;else{let f=this._container,m=f.parentNode.clientWidth,x=f.parentNode.clientHeight,v=this._selectionIndicatorElement.clientWidth,y=v*.5;o.x=Math.min(Math.max(o.x,-v),m+v)-y,o.y=Math.min(Math.max(o.y,-v),x+v)-y,this._screenPositionX=`${Math.floor(o.x+.25)}px`,this._screenPositionY=`${Math.floor(o.y+.25)}px`}}};yee.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:jy.EXPONENTIAL_OUT})};yee.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:jy.EXPONENTIAL_OUT})};Object.defineProperties(yee.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var LVe=yee;function w0e(o,f){o=Pd(o),this._container=o;let m=document.createElement("div");m.className="cesium-selection-wrapper",m.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),o.appendChild(m),this._element=m;let x="http://www.w3.org/2000/svg",v="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",y=document.createElementNS(x,"svg:svg");y.setAttribute("width",160),y.setAttribute("height",160),y.setAttribute("viewBox","0 0 160 160");let C=document.createElementNS(x,"g");C.setAttribute("transform","translate(80,80)"),y.appendChild(C);let w=document.createElementNS(x,"path");w.setAttribute("data-bind","attr: { transform: _transform }"),w.setAttribute("d",v),C.appendChild(w),m.appendChild(y);let T=new LVe(f,this._element,this._container);this._viewModel=T,vr.applyBindings(this._viewModel,this._element)}Object.defineProperties(w0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});w0e.prototype.isDestroyed=function(){return!1};w0e.prototype.destroy=function(){let o=this._container;return vr.cleanNode(this._element),o.removeChild(this._element),Ir(this)};var OVe=w0e;function XU(o,f,m){this._color=o,this._height=f,this._base=m??0}XU.prototype.getHeight=function(){return this._height};XU.prototype.getBase=function(){return this._base};XU.prototype.getStartTime=function(){return this._start};XU.prototype.getStopTime=function(){return this._stop};XU.prototype.setRange=function(o,f){this._start=o,this._stop=f};XU.prototype.render=function(o){let f="";if(this._start&&this._stop&&this._color){let m=si.secondsDifference(this._start,o.epochJulian),x=Math.round(o.timeBarWidth*o.getAlpha(m)),v=si.secondsDifference(this._stop,o.epochJulian),y=Math.round(o.timeBarWidth*o.getAlpha(v))-x;x<0&&(y+=x,x=0),x+y>o.timeBarWidth&&(y=o.timeBarWidth-x),y>0&&(f=`<span class="cesium-timeline-highlight" style="left: ${x.toString()}px; width: ${y.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return f};var NVe=XU;function QCt(o,f,m,x){this.interval=o,this.height=f,this.color=m||new ze(.5,.5,.5,1),this.backgroundColor=x||new ze(0,0,0,0)}QCt.prototype.render=function(o,f){let m=this.interval.start,x=this.interval.stop,v=f.startJulian,y=si.addSeconds(f.startJulian,f.duration,new si);if(si.lessThan(m,v)&&si.greaterThan(x,y))o.fillStyle=this.color.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height);else if(si.lessThanOrEquals(m,y)&&si.greaterThanOrEquals(x,v)){let C,w,T;for(C=0;C<f.timeBarWidth;++C){let E=si.addSeconds(f.startJulian,C/f.timeBarWidth*f.duration,new si);!N(w)&&si.greaterThanOrEquals(E,m)?w=C:!N(T)&&si.greaterThanOrEquals(E,x)&&(T=C)}o.fillStyle=this.backgroundColor.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height),N(w)&&(N(T)||(T=f.timeBarWidth),o.fillStyle=this.color.toCssColorString(),o.fillRect(w,f.y,Math.max(T-w,1),this.height))}};var FVe=QCt,eTe=1e12,sE={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},Y2={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},qN=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6];function bC(o,f){o=Pd(o);let m=o.ownerDocument;this.container=o;let x=m.createElement("div");x.className="cesium-timeline-main",o.appendChild(x),this._topDiv=x,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=f,this._scrubJulian=f.currentTime,this._mainTicSpan=-1,this._mouseMode=sE.none,this._touchMode=Y2.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(f.startTime,f.stopTime),this._onMouseDown=Oir(this),this._onMouseUp=Nir(this),this._onMouseMove=Fir(this),this._onMouseWheel=Bir(this),this._onTouchStart=kir(this),this._onTouchMove=zir(this),this._onTouchEnd=Vir(this);let v=this._timeBarEle;m.addEventListener("mouseup",this._onMouseUp,!1),m.addEventListener("mousemove",this._onMouseMove,!1),v.addEventListener("mousedown",this._onMouseDown,!1),v.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),v.addEventListener("mousewheel",this._onMouseWheel,!1),v.addEventListener("touchstart",this._onTouchStart,!1),v.addEventListener("touchmove",this._onTouchMove,!1),v.addEventListener("touchend",this._onTouchEnd,!1),v.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},f.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}bC.prototype.addEventListener=function(o,f,m){this._topDiv.addEventListener(o,f,m)};bC.prototype.removeEventListener=function(o,f,m){this._topDiv.removeEventListener(o,f,m)};bC.prototype.isDestroyed=function(){return!1};bC.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let o=this.container.ownerDocument;o.removeEventListener("mouseup",this._onMouseUp,!1),o.removeEventListener("mousemove",this._onMouseMove,!1);let f=this._timeBarEle;f.removeEventListener("mousedown",this._onMouseDown,!1),f.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),f.removeEventListener("mousewheel",this._onMouseWheel,!1),f.removeEventListener("touchstart",this._onTouchStart,!1),f.removeEventListener("touchmove",this._onTouchMove,!1),f.removeEventListener("touchend",this._onTouchEnd,!1),f.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),Ir(this)};bC.prototype.addHighlightRange=function(o,f,m){let x=new NVe(o,f,m);return this._highlightRanges.push(x),this.resize(),x};bC.prototype.addTrack=function(o,f,m,x){let v=new FVe(o,f,m,x);return this._trackList.push(v),this._lastHeight=void 0,this.resize(),v};bC.prototype.zoomTo=function(o,f){if(this._startJulian=o,this._endJulian=f,this._timeBarSecondsSpan=si.secondsDifference(f,o),this._clock&&this._clock.clockRange!==Pg.UNBOUNDED){let x=this._clock.startTime,v=this._clock.stopTime,y=si.secondsDifference(v,x),C=si.secondsDifference(x,this._startJulian),w=si.secondsDifference(v,this._endJulian);this._timeBarSecondsSpan>=y?(this._timeBarSecondsSpan=y,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):C>0?(this._endJulian=si.addSeconds(this._endJulian,C,new si),this._startJulian=x,this._timeBarSecondsSpan=si.secondsDifference(this._endJulian,this._startJulian)):w<0&&(this._startJulian=si.addSeconds(this._startJulian,w,new si),this._endJulian=v,this._timeBarSecondsSpan=si.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let m=document.createEvent("Event");m.initEvent("setzoom",!0,!0),m.startJulian=this._startJulian,m.endJulian=this._endJulian,m.epochJulian=this._epochJulian,m.totalSpan=this._timeBarSecondsSpan,m.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(m)};bC.prototype.zoomFrom=function(o){let f=si.secondsDifference(this._scrubJulian,this._startJulian);o>1||f<0||f>this._timeBarSecondsSpan?f=this._timeBarSecondsSpan*.5:f+=f-this._timeBarSecondsSpan*.5;let m=this._timeBarSecondsSpan-f;this.zoomTo(si.addSeconds(this._startJulian,f-f*o,new si),si.addSeconds(this._endJulian,m*o-m,new si))};bC.prototype.makeLabel=function(o){let f=new Date(o);return`${f.getFullYear()} ${f.getMonth()+1} ${f.getDate()-1} ${f.getHours()}:${f.getMinutes()}:${f.getSeconds()}`};bC.prototype.smallestTicInPixels=7;bC.prototype._makeTics=function(){let o=this._timeBarEle,f=si.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan),x=m-8,v,y=this;this._needleEle.style.left=`${m.toString()}px`;let C="",w=.01,T=31536e6,E=1e-10,A=0,S=this._timeBarSecondsSpan;S<w?(S=w,this._timeBarSecondsSpan=w,this._endJulian=si.addSeconds(this._startJulian,w,new si)):S>T&&(S=T,this._timeBarSecondsSpan=T,this._endJulian=si.addSeconds(this._startJulian,T,new si));let M=this._timeBarEle.clientWidth;M<10&&(M=10);let I=this._startJulian,P=Math.min(S/M*1e-5,.4),D,R=si.toGregorianDate(I);S>31536e4?D=si.fromDate(new Date(Date.UTC(Math.floor(R.year/100)*100,0))):S>31536e3?D=si.fromDate(new Date(Date.UTC(Math.floor(R.year/10)*10,0))):S>86400?D=si.fromDate(new Date(Date.UTC(R.year,0))):D=si.fromDate(new Date(Date.UTC(R.year,R.month,R.day)));let L=si.secondsDifference(this._startJulian,si.addSeconds(D,P,new si)),O=L+S;this._epochJulian=D;function F(ae){return Math.floor(L/ae)*ae}function B(ae,he){return Math.ceil(ae/he+.5)*he}function H(ae){return(ae-L)/S}function G(ae,he){return ae-he*Math.round(ae/he)}this._rulerEle.innerHTML=this.makeLabel(si.addSeconds(this._endJulian,-w,new si));let W=this._rulerEle.offsetWidth+20;W<30&&(W=180);let Y=A;A-=E;let K={startTime:L,startJulian:I,epochJulian:D,duration:S,timeBarWidth:M,getAlpha:H};this._highlightRanges.forEach(function(ae){C+=ae.render(K)});let X=0,q=0,J=0,Z=W/M;Z>1&&(Z=1),Z*=this._timeBarSecondsSpan;let z=-1,te=-1,ie=qN.length,re;for(re=0;re<ie;++re){let ae=qN[re];if(++z,X=ae,ae>Z&&ae>A)break;te<0&&M*(ae/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(te=z)}if(z>0){for(;z>0;)if(--z,Math.abs(G(X,qN[z]))<1e-5){qN[z]>=A&&(q=qN[z]);break}if(te>=0)for(;te<z;){if(Math.abs(G(q,qN[te]))<1e-5&&qN[te]>=A){J=qN[te];break}++te}}A=Y,A>E&&J<1e-5&&Math.abs(A-X)>E&&(J=A,A<=X+E&&(q=0));let ee=-999999,oe;if(M*(J/this._timeBarSecondsSpan)>=3)for(v=F(J);v<=O;v=B(v,J))C+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(M*H(v)).toString()}px;"></span>`;if(M*(q/this._timeBarSecondsSpan)>=3)for(v=F(q);v<=O;v=B(v,q))C+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(M*H(v)).toString()}px;"></span>`;if(M*(X/this._timeBarSecondsSpan)>=2){this._mainTicSpan=X,O+=X,v=F(X);let ae=si.computeTaiMinusUtc(D);for(;v<=O;){let he=si.addSeconds(I,v-L,new si);if(X>2.1){let de=si.computeTaiMinusUtc(he);Math.abs(de-ae)>.1&&(v+=de-ae,he=si.addSeconds(I,v-L,new si))}let me=Math.round(M*H(v)),ue=this.makeLabel(he);this._rulerEle.innerHTML=ue,oe=this._rulerEle.offsetWidth,oe<10&&(oe=W);let ce=me-(oe/2-1);ce>ee?(ee=ce+oe+5,C+=`<span class="cesium-timeline-ticMain" style="left: ${me.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${ce.toString()}px;">${ue}</span>`):C+=`<span class="cesium-timeline-ticSub" style="left: ${me.toString()}px;"></span>`,v=B(v,X)}}else this._mainTicSpan=-1;C+=`<span class="cesium-timeline-icon16" style="left:${x}px;bottom:0;background-position: 0 0;"></span>`,o.innerHTML=C,this._scrubElement=o.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),K.y=0,this._trackList.forEach(function(ae){ae.render(y._context,K),K.y+=ae.height})};bC.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let o=this._scrubElement;if(N(this._scrubElement)){let f=si.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==m&&(this._lastXPos=m,o.style.left=`${m-8}px`,this._needleEle.style.left=`${m}px`)}N(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(si.addSeconds(this._startJulian,this._timelineDrag,new si),si.addSeconds(this._endJulian,this._timelineDrag,new si)))};bC.prototype._setTimeBarTime=function(o,f){if(o=Math.round(o),this._scrubJulian=si.addSeconds(this._startJulian,f,new si),this._scrubElement){let x=o-8;this._scrubElement.style.left=`${x.toString()}px`,this._needleEle.style.left=`${o.toString()}px`}let m=document.createEvent("Event");m.initEvent("settime",!0,!0),m.clientX=o,m.timeSeconds=f,m.timeJulian=this._scrubJulian,m.clock=this._clock,this._topDiv.dispatchEvent(m)};function Oir(o){return function(f){o._mouseMode!==sE.touchOnly&&(f.button===0?(o._mouseMode=sE.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition="-16px 0"),o._onMouseMove(f)):(o._mouseX=f.clientX,f.button===2?o._mouseMode=sE.zoom:o._mouseMode=sE.slide)),f.preventDefault()}}function Nir(o){return function(f){o._mouseMode=sE.none,o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0"),o._timelineDrag=0,o._timelineDragLocation=void 0}}function Fir(o){return function(f){let m;if(o._mouseMode===sE.scrub){f.preventDefault();let x=f.clientX-o._topDiv.getBoundingClientRect().left;x<0?(o._timelineDragLocation=0,o._timelineDrag=-.01*o._timeBarSecondsSpan):x>o._topDiv.clientWidth?(o._timelineDragLocation=o._topDiv.clientWidth,o._timelineDrag=.01*o._timeBarSecondsSpan):(o._timelineDragLocation=void 0,o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))}else if(o._mouseMode===sE.slide){if(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0){let x=m*o._timeBarSecondsSpan/o._topDiv.clientWidth;o.zoomTo(si.addSeconds(o._startJulian,x,new si),si.addSeconds(o._endJulian,x,new si))}}else o._mouseMode===sE.zoom&&(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0&&o.zoomFrom(Math.pow(1.01,m)))}}function Bir(o){return function(f){let m=f.wheelDeltaY||f.wheelDelta||-f.detail;eTe=Math.max(Math.min(Math.abs(m),eTe),1),m/=eTe,o.zoomFrom(Math.pow(1.05,-m))}}function kir(o){return function(f){let m=f.touches.length,x,v,y=o._topDiv.getBoundingClientRect().left;f.preventDefault(),o._mouseMode=sE.touchOnly,m===1?(x=si.secondsDifference(o._scrubJulian,o._startJulian),v=Math.round(x*o._topDiv.clientWidth/o._timeBarSecondsSpan+y),Math.abs(f.touches[0].clientX-v)<50?(o._touchMode=Y2.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition=m===1?"-16px 0":"0 0")):(o._touchMode=Y2.singleTap,o._touchState.centerX=f.touches[0].clientX-y)):m===2?(o._touchMode=Y2.slideZoom,o._touchState.centerX=(f.touches[0].clientX+f.touches[1].clientX)*.5-y,o._touchState.spanX=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):o._touchMode=Y2.ignore}}function Vir(o){return function(f){let m=f.touches.length,x=o._topDiv.getBoundingClientRect().left;o._touchMode===Y2.singleTap?(o._touchMode=Y2.scrub,o._onTouchMove(f)):o._touchMode===Y2.scrub&&o._onTouchMove(f),o._mouseMode=sE.touchOnly,m!==1?o._touchMode=m>0?Y2.ignore:Y2.none:o._touchMode===Y2.slideZoom&&(o._touchState.centerX=f.touches[0].clientX-x),o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0")}}function zir(o){return function(f){let m,x,v,y,C,w,T=1,E=o._topDiv.getBoundingClientRect().left;o._touchMode===Y2.singleTap&&(o._touchMode=Y2.slideZoom),o._mouseMode=sE.touchOnly,o._touchMode===Y2.scrub?(f.preventDefault(),f.changedTouches.length===1&&(x=f.changedTouches[0].clientX-E,x>=0&&x<=o._topDiv.clientWidth&&o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))):o._touchMode===Y2.slideZoom&&(v=f.touches.length,v===2?(y=(f.touches[0].clientX+f.touches[1].clientX)*.5-E,C=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):v===1&&(y=f.touches[0].clientX-E,C=0),N(y)&&(C>0&&o._touchState.spanX>0?(T=o._touchState.spanX/C,w=si.addSeconds(o._startJulian,(o._touchState.centerX*o._timeBarSecondsSpan-y*o._timeBarSecondsSpan*T)/o._topDiv.clientWidth,new si)):(m=o._touchState.centerX-y,w=si.addSeconds(o._startJulian,m*o._timeBarSecondsSpan/o._topDiv.clientWidth,new si)),o.zoomTo(w,si.addSeconds(w,o._timeBarSecondsSpan*T,new si)),o._touchState.centerX=y,o._touchState.spanX=C))}}bC.prototype.resize=function(){let o=this.container.clientWidth,f=this.container.clientHeight;if(o===this._lastWidth&&f===this._lastHeight)return;this._trackContainer.style.height=`${f}px`;let m=1;this._trackList.forEach(function(x){m+=x.height}),this._trackListEle.style.height=`${m.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=m,this._makeTics(),this._lastXPos=void 0,this._lastWidth=o,this._lastHeight=f};var BVe=bC;function ZCt(o){let f=o.split(`
        </div>`,m.appendChild(x);let v=new _Ve(f);vr.track(v),vr.applyBindings(v,m),N(v.defaultLayer)&&(v.currentLayer=v.defaultLayer)}var $Ct=wir,Tir="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",Eir="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function vVe(){this._cameraClicked=new Or,this._closeClicked=new Or,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",vr.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,vr.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?Eir:Tir}}),vr.defineProperty(this,"_bodyless",{get:function(){return!N(this.description)||this.description.length===0}})}vVe.prototype.maxHeightOffset=function(o){return`${this.maxHeight-o}px`};Object.defineProperties(vVe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var yVe=vVe;function p0e(o){o=Pd(o);let f=document.createElement("div");f.className="cesium-infoBox",f.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),o.appendChild(f);let m=document.createElement("div");m.className="cesium-infoBox-title",m.setAttribute("data-bind","text: titleText"),f.appendChild(m);let x=document.createElement("button");x.type="button",x.className="cesium-button cesium-infoBox-camera",x.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),f.appendChild(x);let v=document.createElement("button");v.type="button",v.className="cesium-infoBox-close",v.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),v.innerHTML="&times;",f.appendChild(v);let y=document.createElement("iframe");y.className="cesium-infoBox-iframe",y.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),y.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),y.setAttribute("allowfullscreen",!0),f.appendChild(y);let C=new yVe;vr.applyBindings(C,f),this._container=o,this._element=f,this._frame=y,this._viewModel=C,this._descriptionSubscription=void 0;let w=this;y.addEventListener("load",function(){let T=y.contentDocument,E=T.createElement("link");E.href=va("Widgets/InfoBox/InfoBoxDescription.css"),E.rel="stylesheet",E.type="text/css";let A=T.createElement("div");A.className="cesium-infoBox-description",T.head.appendChild(E),T.body.appendChild(A),w._descriptionSubscription=Nb(C,"description",function(S){y.style.height="5px",A.innerHTML=S;let M=null,I=A.firstElementChild;if(I!==null&&A.childNodes.length===1){let D=window.getComputedStyle(I);if(D!==null){let R=D["background-color"],L=ze.fromCssColorString(R);N(L)&&L.alpha!==0&&(M=D["background-color"])}}f.style["background-color"]=M;let P=A.getBoundingClientRect().height;y.style.height=`${P}px`})}),y.setAttribute("src","about:blank")}Object.defineProperties(p0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});p0e.prototype.isDestroyed=function(){return!1};p0e.prototype.destroy=function(){let o=this._container;return vr.cleanNode(this._element),o.removeChild(this._element),N(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),Ir(this)};var CVe=p0e;function JCt(){this.showInstructions=!1;let o=this;this._command=bu(function(){o.showInstructions=!o.showInstructions}),this._showClick=bu(function(){o._touch=!1}),this._showTouch=bu(function(){o._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",vr.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(JCt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var bVe=JCt;function m0e(o){let f=Pd(o.container),m=new bVe,x=o.instructionsInitiallyVisible??!1;m.showInstructions=x,m._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let v=document.createElement("span");v.className="cesium-navigationHelpButton-wrapper",f.appendChild(v);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",y.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),v.appendChild(y);let C=document.createElement("div");C.className="cesium-navigation-help",C.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),v.appendChild(C);let w=document.createElement("button");w.type="button",w.className="cesium-navigation-button cesium-navigation-button-left",w.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let T=document.createElement("img");T.src=va("Widgets/Images/NavigationHelp/Mouse.svg"),T.className="cesium-navigation-button-icon",T.style.width="25px",T.style.height="25px",w.appendChild(T),w.appendChild(document.createTextNode("Mouse"));let E=document.createElement("button");E.type="button",E.className="cesium-navigation-button cesium-navigation-button-right",E.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let A=document.createElement("img");A.src=va("Widgets/Images/NavigationHelp/Touch.svg"),A.className="cesium-navigation-button-icon",A.style.width="25px",A.style.height="25px",E.appendChild(A),E.appendChild(document.createTextNode("Touch")),C.appendChild(w),C.appendChild(E);let S=document.createElement("div");S.className="cesium-click-navigation-help cesium-navigation-help-instructions",S.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),S.innerHTML=`            <table>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-pan">Pan view</div>                        <div class="cesium-navigation-help-details">Left click + drag</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-zoom">Zoom view</div>                        <div class="cesium-navigation-help-details">Right click + drag, or</div>                        <div class="cesium-navigation-help-details">Mouse wheel scroll</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-rotate">Rotate view</div>                        <div class="cesium-navigation-help-details">Middle click + drag, or</div>                        <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div>                    </td>                </tr>            </table>`,C.appendChild(S);let M=document.createElement("div");M.className="cesium-touch-navigation-help cesium-navigation-help-instructions",M.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),M.innerHTML=`            <table>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-pan">Pan view</div>                        <div class="cesium-navigation-help-details">One finger drag</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-zoom">Zoom view</div>                        <div class="cesium-navigation-help-details">Two finger pinch</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-rotate">Tilt view</div>                        <div class="cesium-navigation-help-details">Two finger drag, same direction</div>                    </td>                </tr>                <tr>                    <td><img src="${va("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-tilt">Rotate view</div>                        <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div>                    </td>                </tr>            </table>`,C.appendChild(M),vr.applyBindings(m,v),this._container=f,this._viewModel=m,this._wrapper=v,this._closeInstructions=function(I){v.contains(I.target)||(m.showInstructions=!1)},ma.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(m0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});m0e.prototype.isDestroyed=function(){return!1};m0e.prototype.destroy=function(){return ma.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),vr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Ir(this)};var wVe=m0e;function TVe(o){this._scene=o.scene,this.lowFrameRateMessage=o.lowFrameRateMessage??"This application appears to be performing poorly on your system.  Please try using a different web browser or updating your video drivers.",this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,vr.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let f=this;this._dismissMessage=bu(function(){f.showingLowFrameRateMessage=!1,f.lowFrameRateMessageDismissed=!0});let m=fke.fromScene(o.scene);this._unsubscribeLowFrameRate=m.lowFrameRate.addEventListener(function(){f.lowFrameRateMessageDismissed||(f.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=m.nominalFrameRate.addEventListener(function(){f.showingLowFrameRateMessage=!1})}Object.defineProperties(TVe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});TVe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),Ir(this)};var EVe=TVe;function x0e(o){let f=Pd(o.container),m=new EVe(o),x=document.createElement("div");x.className="cesium-performance-watchdog-message-area",x.setAttribute("data-bind","visible: showingLowFrameRateMessage");let v=document.createElement("button");v.setAttribute("type","button"),v.className="cesium-performance-watchdog-message-dismiss",v.innerHTML="&times;",v.setAttribute("data-bind","click: dismissMessage"),x.appendChild(v);let y=document.createElement("div");y.className="cesium-performance-watchdog-message",y.setAttribute("data-bind","html: lowFrameRateMessage"),x.appendChild(y),f.appendChild(x),vr.applyBindings(m,x),this._container=f,this._viewModel=m,this._element=x}Object.defineProperties(x0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});x0e.prototype.isDestroyed=function(){return!1};x0e.prototype.destroy=function(){return this._viewModel.destroy(),vr.cleanNode(this._element),this._container.removeChild(this._element),Ir(this)};var AVe=x0e;function g0e(o){this._scene=o,this._orthographic=o.camera.frustum instanceof gs,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=o.mode,vr.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let f=this;vr.defineProperty(this,"selectedTooltip",function(){return f._orthographic?f.tooltipOrthographic:f.tooltipPerspective}),this._toggleDropDown=bu(function(){f.sceneMode===Ti.SCENE2D||f._flightInProgress||(f.dropDownVisible=!f.dropDownVisible)}),this._eventHelper=new xC,this._eventHelper.add(o.morphComplete,function(m,x,v,y){f.sceneMode=v,f._orthographic=v===Ti.SCENE2D||f._scene.camera.frustum instanceof gs}),this._eventHelper.add(o.preRender,function(){f._flightInProgress=N(o.camera._currentFlight)}),this._switchToPerspective=bu(function(){f.sceneMode!==Ti.SCENE2D&&(f._scene.camera.switchToPerspectiveFrustum(),f._orthographic=!1,f.dropDownVisible=!1)}),this._switchToOrthographic=bu(function(){f.sceneMode!==Ti.SCENE2D&&(f._scene.camera.switchToOrthographicFrustum(),f._orthographic=!0,f.dropDownVisible=!1)}),this._sceneMode=Ti}Object.defineProperties(g0e.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});g0e.prototype.isDestroyed=function(){return!1};g0e.prototype.destroy=function(){this._eventHelper.removeAll(),Ir(this)};var SVe=g0e,Air="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",Sir="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function _0e(o,f){o=Pd(o);let m=new SVe(f);m._perspectivePath=Air,m._orthographicPath=Sir;let x=document.createElement("span");x.className="cesium-projectionPicker-wrapper cesium-toolbar-button",o.appendChild(x);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button",v.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic,       "cesium-projectionPicker-buttonOrthographic": _orthographic,       "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress,        "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),v.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',x.appendChild(v);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",y.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic),       "cesium-projectionPicker-none" : !_orthographic,       "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),x.appendChild(y);let C=document.createElement("button");C.type="button",C.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",C.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic),       "cesium-projectionPicker-none" : _orthographic,       "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),x.appendChild(C),vr.applyBindings(m,x),this._viewModel=m,this._container=o,this._wrapper=x,this._closeDropDown=function(w){x.contains(w.target)||(m.dropDownVisible=!1)},ma.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(_0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});_0e.prototype.isDestroyed=function(){return!1};_0e.prototype.destroy=function(){return this._viewModel.destroy(),ma.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),vr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Ir(this)};var PVe=_0e;function v0e(o,f){this._scene=o;let m=this,x=function(v,y,C,w){m.sceneMode=C,m.dropDownVisible=!1};this._eventHelper=new xC,this._eventHelper.add(o.morphStart,x),this._duration=f??2,this.sceneMode=o.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",vr.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,vr.defineProperty(this,"selectedTooltip",function(){let v=m.sceneMode;return v===Ti.SCENE2D?m.tooltip2D:v===Ti.SCENE3D?m.tooltip3D:m.tooltipColumbusView}),this._toggleDropDown=bu(function(){m.dropDownVisible=!m.dropDownVisible}),this._morphTo2D=bu(function(){o.morphTo2D(m._duration)}),this._morphTo3D=bu(function(){o.morphTo3D(m._duration)}),this._morphToColumbusView=bu(function(){o.morphToColumbusView(m._duration)}),this._sceneMode=Ti}Object.defineProperties(v0e.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(o){this._duration=o}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});v0e.prototype.isDestroyed=function(){return!1};v0e.prototype.destroy=function(){this._eventHelper.removeAll(),Ir(this)};var IVe=v0e,Pir="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878         -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132         -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285         11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z         M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201         5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461         -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",Iir="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",Mir="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function y0e(o,f,m){o=Pd(o);let x=new IVe(f,m);x._globePath=Pir,x._flatMapPath=Iir,x._columbusViewPath=Mir;let v=document.createElement("span");v.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",o.appendChild(v);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button",y.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D,       "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D,       "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW,       "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),y.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',v.appendChild(y);let C=document.createElement("button");C.type="button",C.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",C.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D,       "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),v.appendChild(C);let w=document.createElement("button");w.type="button",w.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",w.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D,       "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),v.appendChild(w);let T=document.createElement("button");T.type="button",T.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",T.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW,       "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),v.appendChild(T),vr.applyBindings(x,v),this._viewModel=x,this._container=o,this._wrapper=v,this._closeDropDown=function(E){v.contains(E.target)||(x.dropDownVisible=!1)},ma.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(y0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});y0e.prototype.isDestroyed=function(){return!1};y0e.prototype.destroy=function(){return this._viewModel.destroy(),ma.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),vr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Ir(this)};var MVe=y0e,Dir=new at,Kue="-1000px";function yee(o,f,m){this._scene=o,this._screenPositionX=Kue,this._screenPositionY=Kue,this._tweens=o.tweens,this._container=m??document.body,this._selectionIndicatorElement=f,this._scale=1,this.position=void 0,this.showSelection=!1,vr.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,vr.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&N(this.position)}}),vr.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(x,v){return Va.worldToWindowCoordinates(o,x,v)}}yee.prototype.update=function(){if(this.showSelection&&N(this.position)){let o=this.computeScreenSpacePosition(this.position,Dir);if(!N(o))this._screenPositionX=Kue,this._screenPositionY=Kue;else{let f=this._container,m=f.parentNode.clientWidth,x=f.parentNode.clientHeight,v=this._selectionIndicatorElement.clientWidth,y=v*.5;o.x=Math.min(Math.max(o.x,-v),m+v)-y,o.y=Math.min(Math.max(o.y,-v),x+v)-y,this._screenPositionX=`${Math.floor(o.x+.25)}px`,this._screenPositionY=`${Math.floor(o.y+.25)}px`}}};yee.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:jy.EXPONENTIAL_OUT})};yee.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:jy.EXPONENTIAL_OUT})};Object.defineProperties(yee.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var DVe=yee;function C0e(o,f){o=Pd(o),this._container=o;let m=document.createElement("div");m.className="cesium-selection-wrapper",m.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),o.appendChild(m),this._element=m;let x="http://www.w3.org/2000/svg",v="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",y=document.createElementNS(x,"svg:svg");y.setAttribute("width",160),y.setAttribute("height",160),y.setAttribute("viewBox","0 0 160 160");let C=document.createElementNS(x,"g");C.setAttribute("transform","translate(80,80)"),y.appendChild(C);let w=document.createElementNS(x,"path");w.setAttribute("data-bind","attr: { transform: _transform }"),w.setAttribute("d",v),C.appendChild(w),m.appendChild(y);let T=new DVe(f,this._element,this._container);this._viewModel=T,vr.applyBindings(this._viewModel,this._element)}Object.defineProperties(C0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});C0e.prototype.isDestroyed=function(){return!1};C0e.prototype.destroy=function(){let o=this._container;return vr.cleanNode(this._element),o.removeChild(this._element),Ir(this)};var RVe=C0e;function XU(o,f,m){this._color=o,this._height=f,this._base=m??0}XU.prototype.getHeight=function(){return this._height};XU.prototype.getBase=function(){return this._base};XU.prototype.getStartTime=function(){return this._start};XU.prototype.getStopTime=function(){return this._stop};XU.prototype.setRange=function(o,f){this._start=o,this._stop=f};XU.prototype.render=function(o){let f="";if(this._start&&this._stop&&this._color){let m=si.secondsDifference(this._start,o.epochJulian),x=Math.round(o.timeBarWidth*o.getAlpha(m)),v=si.secondsDifference(this._stop,o.epochJulian),y=Math.round(o.timeBarWidth*o.getAlpha(v))-x;x<0&&(y+=x,x=0),x+y>o.timeBarWidth&&(y=o.timeBarWidth-x),y>0&&(f=`<span class="cesium-timeline-highlight" style="left: ${x.toString()}px; width: ${y.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return f};var LVe=XU;function QCt(o,f,m,x){this.interval=o,this.height=f,this.color=m||new ze(.5,.5,.5,1),this.backgroundColor=x||new ze(0,0,0,0)}QCt.prototype.render=function(o,f){let m=this.interval.start,x=this.interval.stop,v=f.startJulian,y=si.addSeconds(f.startJulian,f.duration,new si);if(si.lessThan(m,v)&&si.greaterThan(x,y))o.fillStyle=this.color.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height);else if(si.lessThanOrEquals(m,y)&&si.greaterThanOrEquals(x,v)){let C,w,T;for(C=0;C<f.timeBarWidth;++C){let E=si.addSeconds(f.startJulian,C/f.timeBarWidth*f.duration,new si);!N(w)&&si.greaterThanOrEquals(E,m)?w=C:!N(T)&&si.greaterThanOrEquals(E,x)&&(T=C)}o.fillStyle=this.backgroundColor.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height),N(w)&&(N(T)||(T=f.timeBarWidth),o.fillStyle=this.color.toCssColorString(),o.fillRect(w,f.y,Math.max(T-w,1),this.height))}};var OVe=QCt,eTe=1e12,sE={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},Y2={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},qN=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6];function bC(o,f){o=Pd(o);let m=o.ownerDocument;this.container=o;let x=m.createElement("div");x.className="cesium-timeline-main",o.appendChild(x),this._topDiv=x,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=f,this._scrubJulian=f.currentTime,this._mainTicSpan=-1,this._mouseMode=sE.none,this._touchMode=Y2.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(f.startTime,f.stopTime),this._onMouseDown=Rir(this),this._onMouseUp=Lir(this),this._onMouseMove=Oir(this),this._onMouseWheel=Nir(this),this._onTouchStart=Fir(this),this._onTouchMove=kir(this),this._onTouchEnd=Bir(this);let v=this._timeBarEle;m.addEventListener("mouseup",this._onMouseUp,!1),m.addEventListener("mousemove",this._onMouseMove,!1),v.addEventListener("mousedown",this._onMouseDown,!1),v.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),v.addEventListener("mousewheel",this._onMouseWheel,!1),v.addEventListener("touchstart",this._onTouchStart,!1),v.addEventListener("touchmove",this._onTouchMove,!1),v.addEventListener("touchend",this._onTouchEnd,!1),v.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},f.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}bC.prototype.addEventListener=function(o,f,m){this._topDiv.addEventListener(o,f,m)};bC.prototype.removeEventListener=function(o,f,m){this._topDiv.removeEventListener(o,f,m)};bC.prototype.isDestroyed=function(){return!1};bC.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let o=this.container.ownerDocument;o.removeEventListener("mouseup",this._onMouseUp,!1),o.removeEventListener("mousemove",this._onMouseMove,!1);let f=this._timeBarEle;f.removeEventListener("mousedown",this._onMouseDown,!1),f.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),f.removeEventListener("mousewheel",this._onMouseWheel,!1),f.removeEventListener("touchstart",this._onTouchStart,!1),f.removeEventListener("touchmove",this._onTouchMove,!1),f.removeEventListener("touchend",this._onTouchEnd,!1),f.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),Ir(this)};bC.prototype.addHighlightRange=function(o,f,m){let x=new LVe(o,f,m);return this._highlightRanges.push(x),this.resize(),x};bC.prototype.addTrack=function(o,f,m,x){let v=new OVe(o,f,m,x);return this._trackList.push(v),this._lastHeight=void 0,this.resize(),v};bC.prototype.zoomTo=function(o,f){if(this._startJulian=o,this._endJulian=f,this._timeBarSecondsSpan=si.secondsDifference(f,o),this._clock&&this._clock.clockRange!==Pg.UNBOUNDED){let x=this._clock.startTime,v=this._clock.stopTime,y=si.secondsDifference(v,x),C=si.secondsDifference(x,this._startJulian),w=si.secondsDifference(v,this._endJulian);this._timeBarSecondsSpan>=y?(this._timeBarSecondsSpan=y,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):C>0?(this._endJulian=si.addSeconds(this._endJulian,C,new si),this._startJulian=x,this._timeBarSecondsSpan=si.secondsDifference(this._endJulian,this._startJulian)):w<0&&(this._startJulian=si.addSeconds(this._startJulian,w,new si),this._endJulian=v,this._timeBarSecondsSpan=si.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let m=document.createEvent("Event");m.initEvent("setzoom",!0,!0),m.startJulian=this._startJulian,m.endJulian=this._endJulian,m.epochJulian=this._epochJulian,m.totalSpan=this._timeBarSecondsSpan,m.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(m)};bC.prototype.zoomFrom=function(o){let f=si.secondsDifference(this._scrubJulian,this._startJulian);o>1||f<0||f>this._timeBarSecondsSpan?f=this._timeBarSecondsSpan*.5:f+=f-this._timeBarSecondsSpan*.5;let m=this._timeBarSecondsSpan-f;this.zoomTo(si.addSeconds(this._startJulian,f-f*o,new si),si.addSeconds(this._endJulian,m*o-m,new si))};bC.prototype.makeLabel=function(o){let f=new Date(o);return`${f.getFullYear()} ${f.getMonth()+1} ${f.getDate()-1} ${f.getHours()}:${f.getMinutes()}:${f.getSeconds()}`};bC.prototype.smallestTicInPixels=7;bC.prototype._makeTics=function(){let o=this._timeBarEle,f=si.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan),x=m-8,v,y=this;this._needleEle.style.left=`${m.toString()}px`;let C="",w=.01,T=31536e6,E=1e-10,A=0,S=this._timeBarSecondsSpan;S<w?(S=w,this._timeBarSecondsSpan=w,this._endJulian=si.addSeconds(this._startJulian,w,new si)):S>T&&(S=T,this._timeBarSecondsSpan=T,this._endJulian=si.addSeconds(this._startJulian,T,new si));let M=this._timeBarEle.clientWidth;M<10&&(M=10);let I=this._startJulian,P=Math.min(S/M*1e-5,.4),D,R=si.toGregorianDate(I);S>31536e4?D=si.fromDate(new Date(Date.UTC(Math.floor(R.year/100)*100,0))):S>31536e3?D=si.fromDate(new Date(Date.UTC(Math.floor(R.year/10)*10,0))):S>86400?D=si.fromDate(new Date(Date.UTC(R.year,0))):D=si.fromDate(new Date(Date.UTC(R.year,R.month,R.day)));let L=si.secondsDifference(this._startJulian,si.addSeconds(D,P,new si)),O=L+S;this._epochJulian=D;function F(ae){return Math.floor(L/ae)*ae}function B(ae,he){return Math.ceil(ae/he+.5)*he}function H(ae){return(ae-L)/S}function G(ae,he){return ae-he*Math.round(ae/he)}this._rulerEle.innerHTML=this.makeLabel(si.addSeconds(this._endJulian,-w,new si));let W=this._rulerEle.offsetWidth+20;W<30&&(W=180);let Y=A;A-=E;let K={startTime:L,startJulian:I,epochJulian:D,duration:S,timeBarWidth:M,getAlpha:H};this._highlightRanges.forEach(function(ae){C+=ae.render(K)});let X=0,q=0,J=0,Z=W/M;Z>1&&(Z=1),Z*=this._timeBarSecondsSpan;let z=-1,te=-1,ie=qN.length,re;for(re=0;re<ie;++re){let ae=qN[re];if(++z,X=ae,ae>Z&&ae>A)break;te<0&&M*(ae/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(te=z)}if(z>0){for(;z>0;)if(--z,Math.abs(G(X,qN[z]))<1e-5){qN[z]>=A&&(q=qN[z]);break}if(te>=0)for(;te<z;){if(Math.abs(G(q,qN[te]))<1e-5&&qN[te]>=A){J=qN[te];break}++te}}A=Y,A>E&&J<1e-5&&Math.abs(A-X)>E&&(J=A,A<=X+E&&(q=0));let ee=-999999,oe;if(M*(J/this._timeBarSecondsSpan)>=3)for(v=F(J);v<=O;v=B(v,J))C+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(M*H(v)).toString()}px;"></span>`;if(M*(q/this._timeBarSecondsSpan)>=3)for(v=F(q);v<=O;v=B(v,q))C+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(M*H(v)).toString()}px;"></span>`;if(M*(X/this._timeBarSecondsSpan)>=2){this._mainTicSpan=X,O+=X,v=F(X);let ae=si.computeTaiMinusUtc(D);for(;v<=O;){let he=si.addSeconds(I,v-L,new si);if(X>2.1){let de=si.computeTaiMinusUtc(he);Math.abs(de-ae)>.1&&(v+=de-ae,he=si.addSeconds(I,v-L,new si))}let me=Math.round(M*H(v)),ue=this.makeLabel(he);this._rulerEle.innerHTML=ue,oe=this._rulerEle.offsetWidth,oe<10&&(oe=W);let ce=me-(oe/2-1);ce>ee?(ee=ce+oe+5,C+=`<span class="cesium-timeline-ticMain" style="left: ${me.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${ce.toString()}px;">${ue}</span>`):C+=`<span class="cesium-timeline-ticSub" style="left: ${me.toString()}px;"></span>`,v=B(v,X)}}else this._mainTicSpan=-1;C+=`<span class="cesium-timeline-icon16" style="left:${x}px;bottom:0;background-position: 0 0;"></span>`,o.innerHTML=C,this._scrubElement=o.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),K.y=0,this._trackList.forEach(function(ae){ae.render(y._context,K),K.y+=ae.height})};bC.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let o=this._scrubElement;if(N(this._scrubElement)){let f=si.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==m&&(this._lastXPos=m,o.style.left=`${m-8}px`,this._needleEle.style.left=`${m}px`)}N(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(si.addSeconds(this._startJulian,this._timelineDrag,new si),si.addSeconds(this._endJulian,this._timelineDrag,new si)))};bC.prototype._setTimeBarTime=function(o,f){if(o=Math.round(o),this._scrubJulian=si.addSeconds(this._startJulian,f,new si),this._scrubElement){let x=o-8;this._scrubElement.style.left=`${x.toString()}px`,this._needleEle.style.left=`${o.toString()}px`}let m=document.createEvent("Event");m.initEvent("settime",!0,!0),m.clientX=o,m.timeSeconds=f,m.timeJulian=this._scrubJulian,m.clock=this._clock,this._topDiv.dispatchEvent(m)};function Rir(o){return function(f){o._mouseMode!==sE.touchOnly&&(f.button===0?(o._mouseMode=sE.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition="-16px 0"),o._onMouseMove(f)):(o._mouseX=f.clientX,f.button===2?o._mouseMode=sE.zoom:o._mouseMode=sE.slide)),f.preventDefault()}}function Lir(o){return function(f){o._mouseMode=sE.none,o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0"),o._timelineDrag=0,o._timelineDragLocation=void 0}}function Oir(o){return function(f){let m;if(o._mouseMode===sE.scrub){f.preventDefault();let x=f.clientX-o._topDiv.getBoundingClientRect().left;x<0?(o._timelineDragLocation=0,o._timelineDrag=-.01*o._timeBarSecondsSpan):x>o._topDiv.clientWidth?(o._timelineDragLocation=o._topDiv.clientWidth,o._timelineDrag=.01*o._timeBarSecondsSpan):(o._timelineDragLocation=void 0,o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))}else if(o._mouseMode===sE.slide){if(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0){let x=m*o._timeBarSecondsSpan/o._topDiv.clientWidth;o.zoomTo(si.addSeconds(o._startJulian,x,new si),si.addSeconds(o._endJulian,x,new si))}}else o._mouseMode===sE.zoom&&(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0&&o.zoomFrom(Math.pow(1.01,m)))}}function Nir(o){return function(f){let m=f.wheelDeltaY||f.wheelDelta||-f.detail;eTe=Math.max(Math.min(Math.abs(m),eTe),1),m/=eTe,o.zoomFrom(Math.pow(1.05,-m))}}function Fir(o){return function(f){let m=f.touches.length,x,v,y=o._topDiv.getBoundingClientRect().left;f.preventDefault(),o._mouseMode=sE.touchOnly,m===1?(x=si.secondsDifference(o._scrubJulian,o._startJulian),v=Math.round(x*o._topDiv.clientWidth/o._timeBarSecondsSpan+y),Math.abs(f.touches[0].clientX-v)<50?(o._touchMode=Y2.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition=m===1?"-16px 0":"0 0")):(o._touchMode=Y2.singleTap,o._touchState.centerX=f.touches[0].clientX-y)):m===2?(o._touchMode=Y2.slideZoom,o._touchState.centerX=(f.touches[0].clientX+f.touches[1].clientX)*.5-y,o._touchState.spanX=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):o._touchMode=Y2.ignore}}function Bir(o){return function(f){let m=f.touches.length,x=o._topDiv.getBoundingClientRect().left;o._touchMode===Y2.singleTap?(o._touchMode=Y2.scrub,o._onTouchMove(f)):o._touchMode===Y2.scrub&&o._onTouchMove(f),o._mouseMode=sE.touchOnly,m!==1?o._touchMode=m>0?Y2.ignore:Y2.none:o._touchMode===Y2.slideZoom&&(o._touchState.centerX=f.touches[0].clientX-x),o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0")}}function kir(o){return function(f){let m,x,v,y,C,w,T=1,E=o._topDiv.getBoundingClientRect().left;o._touchMode===Y2.singleTap&&(o._touchMode=Y2.slideZoom),o._mouseMode=sE.touchOnly,o._touchMode===Y2.scrub?(f.preventDefault(),f.changedTouches.length===1&&(x=f.changedTouches[0].clientX-E,x>=0&&x<=o._topDiv.clientWidth&&o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))):o._touchMode===Y2.slideZoom&&(v=f.touches.length,v===2?(y=(f.touches[0].clientX+f.touches[1].clientX)*.5-E,C=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):v===1&&(y=f.touches[0].clientX-E,C=0),N(y)&&(C>0&&o._touchState.spanX>0?(T=o._touchState.spanX/C,w=si.addSeconds(o._startJulian,(o._touchState.centerX*o._timeBarSecondsSpan-y*o._timeBarSecondsSpan*T)/o._topDiv.clientWidth,new si)):(m=o._touchState.centerX-y,w=si.addSeconds(o._startJulian,m*o._timeBarSecondsSpan/o._topDiv.clientWidth,new si)),o.zoomTo(w,si.addSeconds(w,o._timeBarSecondsSpan*T,new si)),o._touchState.centerX=y,o._touchState.spanX=C))}}bC.prototype.resize=function(){let o=this.container.clientWidth,f=this.container.clientHeight;if(o===this._lastWidth&&f===this._lastHeight)return;this._trackContainer.style.height=`${f}px`;let m=1;this._trackList.forEach(function(x){m+=x.height}),this._trackListEle.style.height=`${m.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=m,this._makeTics(),this._lastXPos=void 0,this._lastWidth=o,this._lastHeight=f};var NVe=bC;function b0e(o,f){N(f)||(f=document.body),f=Pd(f);let m=this,x=vr.observable(Lx.fullscreen),v=vr.observable(Lx.enabled),y=f.ownerDocument;this.isFullscreen=void 0,vr.defineProperty(this,"isFullscreen",{get:function(){return x()}}),this.isFullscreenEnabled=void 0,vr.defineProperty(this,"isFullscreenEnabled",{get:function(){return v()},set:function(C){v(C&&Lx.enabled)}}),this.tooltip=void 0,vr.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?x()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=bu(function(){Lx.fullscreen?Lx.exitFullscreen():Lx.requestFullscreen(m._fullscreenElement)},vr.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=Pd(o)??y.body,this._callback=function(){x(Lx.fullscreen)},y.addEventListener(Lx.changeEventName,this._callback)}Object.defineProperties(b0e.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(o){this._fullscreenElement=o}},command:{get:function(){return this._command}}});b0e.prototype.isDestroyed=function(){return!1};b0e.prototype.destroy=function(){document.removeEventListener(Lx.changeEventName,this._callback),Ir(this)};var FVe=b0e,Vir="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",zir="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function w0e(o,f){o=Pd(o);let m=new FVe(f,o);m._exitFullScreenPath=zir,m._enterFullScreenPath=Vir;let x=document.createElement("button");x.type="button",x.className="cesium-button cesium-fullscreenButton",x.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),o.appendChild(x),vr.applyBindings(m,x),this._container=o,this._viewModel=m,this._element=x}Object.defineProperties(w0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});w0e.prototype.isDestroyed=function(){return!1};w0e.prototype.destroy=function(){return this._viewModel.destroy(),vr.cleanNode(this._element),this._container.removeChild(this._element),Ir(this)};var BVe=w0e,Uir=E0(D6t(),1);function Hir(o){let f=!1,m=window.screen;return N(m)&&(N(m.lockOrientation)?f=m.lockOrientation(o):N(m.mozLockOrientation)?f=m.mozLockOrientation(o):N(m.msLockOrientation)?f=m.msLockOrientation(o):N(m.orientation&&m.orientation.lock)&&(f=m.orientation.lock(o))),f}function ZCt(){let o=window.screen;N(o)&&(N(o.unlockOrientation)?o.unlockOrientation():N(o.mozUnlockOrientation)?o.mozUnlockOrientation():N(o.msUnlockOrientation)?o.msUnlockOrientation():N(o.orientation&&o.orientation.unlock)&&o.orientation.unlock())}function Gir(o,f,m,x){x()||(m()?(f.useWebVR=!1,o._locked&&(ZCt(),o._locked=!1),o._noSleep.disable(),Lx.exitFullscreen(),m(!1)):(Lx.fullscreen||Lx.requestFullscreen(o._vrElement),o._noSleep.enable(),o._locked||(o._locked=Hir("landscape")),f.useWebVR=!0,m(!0)))}function T0e(o,f){let m=this,x=vr.observable(Lx.enabled),v=vr.observable(!1);this.isVRMode=void 0,vr.defineProperty(this,"isVRMode",{get:function(){return v()}}),this.isVREnabled=void 0,vr.defineProperty(this,"isVREnabled",{get:function(){return x()},set:function(C){x(C&&Lx.enabled)}}),this.tooltip=void 0,vr.defineProperty(this,"tooltip",function(){return x()?v()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let y=vr.observable(!1);this._isOrthographic=void 0,vr.defineProperty(this,"_isOrthographic",{get:function(){return y()}}),this._eventHelper=new xC,this._eventHelper.add(o.preRender,function(){y(o.camera.frustum instanceof gs)}),this._locked=!1,this._noSleep=new Uir.default,this._command=bu(function(){Gir(m,o,v,y)},vr.getObservable(this,"isVREnabled")),this._vrElement=Pd(f)??document.body,this._callback=function(){!Lx.fullscreen&&v()&&(o.useWebVR=!1,m._locked&&(ZCt(),m._locked=!1),m._noSleep.disable(),v(!1))},document.addEventListener(Lx.changeEventName,this._callback)}Object.defineProperties(T0e.prototype,{vrElement:{get:function(){return this._vrElement},set:function(o){this._vrElement=o}},command:{get:function(){return this._command}}});T0e.prototype.isDestroyed=function(){return!1};T0e.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(Lx.changeEventName,this._callback),Ir(this)};var kVe=T0e,Wir="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",jir="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function E0e(o,f,m){o=Pd(o);let x=new kVe(f,m);x._exitVRPath=jir,x._enterVRPath=Wir;let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-vrButton",v.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),o.appendChild(v),vr.applyBindings(x,v),this._container=o,this._viewModel=x,this._element=v}Object.defineProperties(E0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});E0e.prototype.isDestroyed=function(){return!1};E0e.prototype.destroy=function(){return this._viewModel.destroy(),vr.cleanNode(this._element),this._container.removeChild(this._element),Ir(this)};var VVe=E0e,frt=new Li;function ebt(o){let f=o.clock;f.currentTime=o.timeJulian,f.shouldAnimate=!1}function qir(o){let f=o.getPropertyIds(),m="";return f.forEach(function(x){let v=o.getProperty(x);N(v)&&(m+=`<tr><th>${x}</th><td>${v}</td></tr>`)}),m.length>0&&(m=`<table class="cesium-infoBox-defaultTable"><tbody>${m}</tbody></table>`),m}function Yir(o){let f,m=[],x=o.getPropertyIds();for(f=0;f<x.length;f++){let y=x[f];/^name$/i.test(y)?m[0]=o.getProperty(y):/name/i.test(y)?m[1]=o.getProperty(y):/^title$/i.test(y)?m[2]=o.getProperty(y):/^(id|identifier)$/i.test(y)?m[3]=o.getProperty(y):/element/i.test(y)?m[4]=o.getProperty(y):/(id|identifier)$/i.test(y)&&(m[5]=o.getProperty(y))}let v=m.length;for(f=0;f<v;f++){let y=m[f];if(N(y)&&y!=="")return y}return"Unnamed Feature"}function prt(o,f){let m=o.scene.pick(f.position);if(N(m)){let x=m.id??m.primitive.id;if(x instanceof tf)return x;if(m instanceof $s)return new tf({name:Yir(m),description:qir(m),feature:m})}if(N(o.scene.globe))return $ir(o,f.position)}var Xir=new si;function zVe(o,f){if(N(f)){let m=f.clock;if(N(m)&&N(o)){let x=m.startTime,v=m.stopTime;si.equals(x,v)&&(v=si.addSeconds(x,Ce.EPSILON2,Xir)),o.updateFromClock(),o.zoomTo(x,v)}}}var Kir=new V;function $ir(o,f){let m=o.scene,x=m.camera.getPickRay(f),v=m.imageryLayers.pickImageryLayerFeatures(x,m);if(!N(v))return;let y=new tf({id:"Loading...",description:"Loading feature information..."});return v.then(function(C){if(o.selectedEntity!==y)return;if(!N(C)||C.length===0){o.selectedEntity=mrt();return}let w=C[0],T=new tf({id:w.name,description:w.description});if(N(w.position)){let E=o.scene.ellipsoid.cartographicToCartesian(w.position,Kir);T.position=new hM(E)}o.selectedEntity=T},function(){o.selectedEntity===y&&(o.selectedEntity=mrt())}),y}function mrt(){return new tf({id:"None",description:"No features found."})}function Jir(o,f){let m=o._geocoder,x=o._homeButton,v=o._sceneModePicker,y=o._projectionPicker,C=o._baseLayerPicker,w=o._animation,T=o._timeline,E=o._fullscreenButton,A=o._infoBox,S=o._selectionIndicator,M=f?"hidden":"visible";if(N(m)&&(m.container.style.visibility=M),N(x)&&(x.container.style.visibility=M),N(v)&&(v.container.style.visibility=M),N(y)&&(y.container.style.visibility=M),N(C)&&(C.container.style.visibility=M),N(w)&&(w.container.style.visibility=M),N(T)&&(T.container.style.visibility=M),N(E)&&E.viewModel.isFullscreenEnabled&&(E.container.style.visibility=M),N(A)&&(A.container.style.visibility=M),N(S)&&(S.container.style.visibility=M),o._container){let I=f||!N(E)?0:E.container.clientWidth;o._vrButton.container.style.right=`${I}px`,o.forceResize()}}function fh(o,f){o=Pd(o),f=f??pi.EMPTY_OBJECT;let m=(!N(f.globe)||f.globe!==!1)&&(!N(f.baseLayerPicker)||f.baseLayerPicker!==!1),x=this,v=document.createElement("div");v.className="cesium-viewer",o.appendChild(v);let y=document.createElement("div");y.className="cesium-viewer-cesiumWidgetContainer",v.appendChild(y);let C=document.createElement("div");C.className="cesium-viewer-bottom",v.appendChild(C);let w=f.scene3DOnly??!1,T,E,A=!1;N(f.clockViewModel)?(E=f.clockViewModel,T=E.clock):(T=new _W,E=new tVe(T),A=!0);let S=new _7(y,{baseLayer:m&&N(f.selectedImageryProviderViewModel)||N(f.baseLayer)||N(f.imageryProvider)?!1:void 0,clock:T,shouldAnimate:f.shouldAnimate,skyBox:f.skyBox,skyAtmosphere:f.skyAtmosphere,sceneMode:f.sceneMode,ellipsoid:f.ellipsoid,mapProjection:f.mapProjection,globe:f.globe,orderIndependentTranslucency:f.orderIndependentTranslucency,automaticallyTrackDataSourceClocks:f.automaticallyTrackDataSourceClocks,contextOptions:f.contextOptions,useDefaultRenderLoop:f.useDefaultRenderLoop,targetFrameRate:f.targetFrameRate,showRenderLoopErrors:f.showRenderLoopErrors,useBrowserRecommendedResolution:f.useBrowserRecommendedResolution,creditContainer:N(f.creditContainer)?f.creditContainer:C,creditViewport:f.creditViewport,dataSources:f.dataSources,scene3DOnly:w,shadows:f.shadows,terrainShadows:f.terrainShadows,mapMode2D:f.mapMode2D,blurActiveElementOnCanvasFocus:f.blurActiveElementOnCanvasFocus,requestRenderMode:f.requestRenderMode,maximumRenderTimeChange:f.maximumRenderTimeChange,depthPlaneEllipsoidOffset:f.depthPlaneEllipsoidOffset,msaaSamples:f.msaaSamples}),M=S.scene,I=new xC;I.add(T.onTick,fh.prototype._onTick,this);let P;if(!N(f.selectionIndicator)||f.selectionIndicator!==!1){let he=document.createElement("div");he.className="cesium-viewer-selectionIndicatorContainer",v.appendChild(he),P=new RVe(he,M)}let D;if(!N(f.infoBox)||f.infoBox!==!1){let he=document.createElement("div");he.className="cesium-viewer-infoBoxContainer",v.appendChild(he),D=new CVe(he);let me=D.viewModel;I.add(me.cameraClicked,fh.prototype._onInfoBoxCameraClicked,this),I.add(me.closeClicked,fh.prototype._onInfoBoxClockClicked,this)}let R=document.createElement("div");R.className="cesium-viewer-toolbar",v.appendChild(R);let L;if(!N(f.geocoder)||f.geocoder!==!1){let he=document.createElement("div");he.className="cesium-viewer-geocoderContainer",R.appendChild(he);let me;typeof f.geocoder=="string"?me=[new jfe({scene:M,geocodeProviderType:f.geocoder})]:N(f.geocoder)&&typeof f.geocoder!="boolean"&&(me=Array.isArray(f.geocoder)?f.geocoder:[f.geocoder]),L=new mVe({container:he,geocoderServices:me,scene:M}),I.add(L.viewModel.search.beforeExecute,fh.prototype._clearObjects,this)}let O;(!N(f.homeButton)||f.homeButton!==!1)&&(O=new gVe(R,M),N(L)&&I.add(O.viewModel.command.afterExecute,function(){let he=L.viewModel;he.searchText="",he.isSearchInProgress&&he.search()}),I.add(O.viewModel.command.beforeExecute,fh.prototype._clearTrackedObject,this));let F;!w&&(!N(f.sceneModePicker)||f.sceneModePicker!==!1)&&(F=new MVe(R,M));let B;f.projectionPicker&&(B=new PVe(R,M));let H,G;if(m){let he=f.imageryProviderViewModels??aVe(),me=f.terrainProviderViewModels??sVe();H=new oVe(R,{globe:M.globe,imageryProviderViewModels:he,selectedImageryProviderViewModel:f.selectedImageryProviderViewModel,terrainProviderViewModels:me,selectedTerrainProviderViewModel:f.selectedTerrainProviderViewModel}),G=R.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}N(f.baseLayer)&&f.baseLayer!==!1&&(m&&(H.viewModel.selectedImagery=void 0),M.imageryLayers.removeAll(),M.imageryLayers.add(f.baseLayer)),N(f.terrainProvider)&&(m&&(H.viewModel.selectedTerrain=void 0),M.terrainProvider=f.terrainProvider),N(f.terrain)&&(m&&(M.globe.depthTestAgainstTerrain=!0),M.setTerrain(f.terrain));let W;if(!N(f.navigationHelpButton)||f.navigationHelpButton!==!1){let he=!0;try{if(N(window.localStorage)){let me=window.localStorage.getItem("cesium-hasSeenNavHelp");N(me)&&me?he=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}W=new wVe({container:R,instructionsInitiallyVisible:f.navigationInstructionsInitiallyVisible??he})}let Y;if(!N(f.animation)||f.animation!==!1){let he=document.createElement("div");he.className="cesium-viewer-animationContainer",v.appendChild(he),Y=new iVe(he,new rVe(E))}let K;if(!N(f.timeline)||f.timeline!==!1){let he=document.createElement("div");he.className="cesium-viewer-timelineContainer",v.appendChild(he),K=new NVe(he,T),K.addEventListener("settime",ebt,!1),K.zoomTo(T.startTime,T.stopTime)}let X,q,J;(!N(f.fullscreenButton)||f.fullscreenButton!==!1)&&(J=document.createElement("div"),J.className="cesium-viewer-fullscreenContainer",v.appendChild(J),X=new BVe(J,f.fullscreenElement),q=Nb(X.viewModel,"isFullscreenEnabled",function(he){J.style.display=he?"block":"none",N(K)&&(K.container.style.right=`${J.clientWidth}px`,K.resize())}));let Z,z,te;if(f.vrButton){let he=document.createElement("div");he.className="cesium-viewer-vrContainer",v.appendChild(he),Z=new VVe(he,M,f.fullScreenElement),z=Nb(Z.viewModel,"isVREnabled",function(me){he.style.display=me?"block":"none",N(X)&&(he.style.right=`${J.clientWidth}px`),N(K)&&(K.container.style.right=`${he.clientWidth}px`,K.resize())}),te=Nb(Z.viewModel,"isVRMode",function(me){Jir(x,me)})}this._baseLayerPickerDropDown=G,this._fullscreenSubscription=q,this._vrSubscription=z,this._vrModeSubscription=te,this._dataSourceChangedListeners={},this._container=o,this._bottomContainer=C,this._element=v,this._cesiumWidget=S,this._selectionIndicator=P,this._infoBox=D,this._clockViewModel=E,this._destroyClockViewModel=A,this._toolbar=R,this._homeButton=O,this._sceneModePicker=F,this._projectionPicker=B,this._baseLayerPicker=H,this._navigationHelpButton=W,this._animation=Y,this._timeline=K,this._fullscreenButton=X,this._vrButton=Z,this._geocoder=L,this._eventHelper=I,this._lastWidth=0,this._lastHeight=0,this._enableInfoOrSelection=N(D)||N(P),this._selectedEntity=void 0,this._selectedEntityChanged=new Or;let ie=this._cesiumWidget.dataSources,re=this._cesiumWidget.dataSourceDisplay;I.add(ie.dataSourceAdded,fh.prototype._onDataSourceAdded,this),I.add(ie.dataSourceRemoved,fh.prototype._onDataSourceRemoved,this),I.add(M.postUpdate,fh.prototype.resize,this);let ee=ie.length;for(let he=0;he<ee;he++)this._dataSourceAdded(ie,ie.get(he));this._dataSourceAdded(void 0,re.defaultDataSource),I.add(ie.dataSourceAdded,fh.prototype._dataSourceAdded,this),I.add(ie.dataSourceRemoved,fh.prototype._dataSourceRemoved,this);function oe(he){let me=prt(x,he);N(me)?Ut.getValueOrUndefined(me.position,x.clock.currentTime)?x.trackedEntity=me:x.zoomTo(me):N(x.trackedEntity)&&(x.trackedEntity=void 0)}function ae(he){x.selectedEntity=prt(x,he)}S.screenSpaceEventHandler.setInputAction(ae,Di.LEFT_CLICK),S.screenSpaceEventHandler.setInputAction(oe,Di.LEFT_DOUBLE_CLICK),S._canAnimateUpdateCallback=this._updateCanAnimate(this)}Object.defineProperties(fh.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._cesiumWidget.dataSourceDisplay}},entities:{get:function(){return this._cesiumWidget.entities}},dataSources:{get:function(){return this._cesiumWidget.dataSources}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(o){this.scene.shadowMap.enabled=o}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(o){this.scene.globe.shadows=o}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(o){this.scene.terrainProvider=o}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(o){this._cesiumWidget.targetFrameRate=o}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(o){this._cesiumWidget.useDefaultRenderLoop=o}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(o){this._cesiumWidget.resolutionScale=o}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(o){this._cesiumWidget.useBrowserRecommendedResolution=o}},allowDataSourcesToSuspendAnimation:{get:function(){return this._cesiumWidget.allowDataSourcesToSuspendAnimation},set:function(o){this._cesiumWidget.allowDataSourcesToSuspendAnimation=o}},trackedEntity:{get:function(){return this._cesiumWidget.trackedEntity},set:function(o){this._cesiumWidget.trackedEntity=o}},selectedEntity:{get:function(){return this._selectedEntity},set:function(o){if(this._selectedEntity!==o){this._selectedEntity=o;let f=N(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;N(o)?N(f)&&f.animateAppear():N(f)&&f.animateDepart(),this._selectedEntityChanged.raiseEvent(o)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._cesiumWidget.trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._cesiumWidget.clockTrackedDataSource},set:function(o){this._cesiumWidget.clockTrackedDataSource!==o&&(this._cesiumWidget.clockTrackedDataSource=o,zVe(this._timeline,o))}}});fh.prototype.extend=function(o,f){o(this,f)};fh.prototype.resize=function(){let o=this._cesiumWidget,f=this._container,m=f.clientWidth,x=f.clientHeight,v=N(this._animation),y=N(this._timeline);if(o.resize(),m===this._lastWidth&&x===this._lastHeight)return;let C=x-125,w=this._baseLayerPickerDropDown;if(N(w)&&(w.style.maxHeight=`${C}px`),N(this._geocoder)){let P=this._geocoder.searchSuggestionsContainer;P.style.maxHeight=`${C}px`}N(this._infoBox)&&(this._infoBox.viewModel.maxHeight=C);let T=this._timeline,E,A=0,S=5,M=3,I=0;if(v&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let P=this._lastWidth;E=this._animation.container,m>900?(A=169,P<=900&&(E.style.width="169px",E.style.height="112px",this._animation.resize())):m>=600?(A=136,(P<600||P>900)&&(E.style.width="136px",E.style.height="90px",this._animation.resize())):(A=106,(P>600||P===0)&&(E.style.width="106px",E.style.height="70px",this._animation.resize())),S=A+5}if(y&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let P=this._fullscreenButton,D=this._vrButton,R=T.container,L=R.style;M=R.clientHeight+3,L.left=`${A}px`;let O=0;N(P)&&(O+=P.container.clientWidth),N(D)&&(O+=D.container.clientWidth),L.right=`${O}px`,T.resize()}!y&&N(this._fullscreenButton)&&(I=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${S}px`,this._bottomContainer.style.bottom=`${M}px`,this._bottomContainer.style.right=`${I}px`,this._lastWidth=m,this._lastHeight=x};fh.prototype.forceResize=function(){this._lastWidth=0,this.resize()};fh.prototype.render=function(){this._cesiumWidget.render()};fh.prototype.isDestroyed=function(){return!1};fh.prototype.destroy=function(){return N(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Di.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Di.LEFT_DOUBLE_CLICK)),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),N(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),N(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),N(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),N(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),N(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),N(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),N(this._timeline)&&(this._timeline.removeEventListener("settime",ebt,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),N(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),N(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),N(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),N(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._cesiumWidget=this._cesiumWidget.destroy(),Ir(this)};fh.prototype._dataSourceAdded=function(o,f){f.entities.collectionChanged.addEventListener(fh.prototype._onEntityCollectionChanged,this)};fh.prototype._dataSourceRemoved=function(o,f){let m=f.entities;m.collectionChanged.removeEventListener(fh.prototype._onEntityCollectionChanged,this),N(this.selectedEntity)&&m.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};fh.prototype._updateCanAnimate=function(o){return function(f){o._clockViewModel.canAnimate=f}};fh.prototype._onTick=function(o){let f=o.currentTime,m,x=!1,v=this.selectedEntity,y=N(v)&&this._enableInfoOrSelection;y&&v.isShowing&&v.isAvailable(f)&&(this._cesiumWidget.dataSourceDisplay.getBoundingSphere(v,!0,frt)!==ia.FAILED?m=frt.center:N(v.position)&&(m=v.position.getValue(f,m)),x=N(m));let C=N(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;N(C)&&(C.position=V.clone(m,C.position),C.showSelection=y&&x,C.update());let w=N(this._infoBox)?this._infoBox.viewModel:void 0;N(w)&&(w.showInfo=y,w.enableCamera=x,w.isCameraTracking=this.trackedEntity===this.selectedEntity,y?(w.titleText=v.name??v.id,w.description=Ut.getValueOrDefault(v.description,f,"")):(w.titleText="",w.description=""))};fh.prototype._onEntityCollectionChanged=function(o,f,m){let x=m.length;for(let v=0;v<x;v++){let y=m[v];this.selectedEntity===y&&(this.selectedEntity=void 0)}};fh.prototype._onInfoBoxCameraClicked=function(o){if(o.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let f=this.selectedEntity.position;N(f)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};fh.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};fh.prototype._onInfoBoxClockClicked=function(o){this.selectedEntity=void 0};fh.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};fh.prototype._onDataSourceChanged=function(o){this.clockTrackedDataSource===o&&zVe(this.timeline,o)};fh.prototype._onDataSourceAdded=function(o,f){this._cesiumWidget._automaticallyTrackDataSourceClocks&&f===this.clockTrackedDataSource&&zVe(this._timeline,f);let m=f.entities.id,x=this._eventHelper.add(f.changedEvent,fh.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[m]=x};fh.prototype._onDataSourceRemoved=function(o,f){let m=f.entities.id;this._dataSourceChangedListeners[m](),this._dataSourceChangedListeners[m]=void 0};fh.prototype.zoomTo=function(o,f){return this._cesiumWidget.zoomTo(o,f)};fh.prototype.flyTo=function(o,f){return this._cesiumWidget.flyTo(o,f)};var A0e=fh;function Qir(o){let f=document.createElement("div");f.className="cesium-viewer-cesium3DTilesInspectorContainer",o.container.appendChild(f);let m=new uVe(f,o.scene);Object.defineProperties(o,{cesium3DTilesInspector:{get:function(){return m}}})}var tbt=Qir;function Zir(o){let f=document.createElement("div");f.className="cesium-viewer-cesiumInspectorContainer",o.container.appendChild(f);let m=new hVe(f,o.scene);Object.defineProperties(o,{cesiumInspector:{get:function(){return m}}})}var ibt=Zir;function err(o,f){f=f??pi.EMPTY_OBJECT;let m=!0,x=f.flyToOnDrop??!0,v=new Or,y=f.clearOnDrop??!0,C=f.dropTarget??o.container,w=f.clampToGround??!0,T=f.proxy;C=Pd(C),Object.defineProperties(o,{dropTarget:{get:function(){return C},set:function(A){xrt(C,E),C=A,tTe(C,E)}},dropEnabled:{get:function(){return m},set:function(A){A!==m&&(A?tTe(C,E):xrt(C,E),m=A)}},dropError:{get:function(){return v}},clearOnDrop:{get:function(){return y},set:function(A){y=A}},flyToOnDrop:{get:function(){return x},set:function(A){x=A}},proxy:{get:function(){return T},set:function(A){T=A}},clampToGround:{get:function(){return w},set:function(A){w=A}}});function E(A){qV(A),y&&(o.entities.removeAll(),o.dataSources.removeAll());let S=A.dataTransfer.files,M=S.length;for(let I=0;I<M;I++){let P=S[I],D=new FileReader;D.onload=trr(o,P,T,w),D.onerror=irr(o,P),D.readAsText(P)}}tTe(C,E),o.destroy=Q4e(o,o.destroy,function(){o.dropEnabled=!1}),o._handleDrop=E}function qV(o){o.stopPropagation(),o.preventDefault()}function xrt(o,f){let m=o;N(m)&&(m.removeEventListener("drop",f,!1),m.removeEventListener("dragenter",qV,!1),m.removeEventListener("dragover",qV,!1),m.removeEventListener("dragexit",qV,!1))}function tTe(o,f){o.addEventListener("drop",f,!1),o.addEventListener("dragenter",qV,!1),o.addEventListener("dragover",qV,!1),o.addEventListener("dragexit",qV,!1)}function trr(o,f,m,x){let v=o.scene;return function(y){let C=f.name;try{let w;if(/\.czml$/i.test(C))w=eee.load(JSON.parse(y.target.result),{sourceUri:C});else if(/\.geojson$/i.test(C)||/\.json$/i.test(C)||/\.topojson$/i.test(C))w=iz.load(JSON.parse(y.target.result),{sourceUri:C,clampToGround:x});else if(/\.(kml|kmz)$/i.test(C))w=DQ.load(f,{sourceUri:C,proxy:m,camera:v.camera,canvas:v.canvas,clampToGround:x,screenOverlayContainer:o.container});else if(/\.gpx$/i.test(C))w=F4e.load(f,{sourceUri:C,proxy:m});else{o.dropError.raiseEvent(o,C,`Unrecognized file: ${C}`);return}N(w)&&o.dataSources.add(w).then(function(T){o.flyToOnDrop&&o.flyTo(T)}).catch(function(T){o.dropError.raiseEvent(o,C,T)})}catch(w){o.dropError.raiseEvent(o,C,w)}}}function irr(o,f){return function(m){o.dropError.raiseEvent(o,f.name,m.target.error)}}var rbt=err;function rrr(o,f){f=f??pi.EMPTY_OBJECT;let m=new AVe({scene:o.scene,container:o.bottomContainer,lowFrameRateMessage:f.lowFrameRateMessage});Object.defineProperties(o,{performanceWatchdog:{get:function(){return m}}})}var nbt=rrr;function obt(o){let f=o.split(`
`),m;for(m=0;m<f.length&&!f[m].match(/\S/);m++);if(m===f.length)return"";let x="",v=/^\s*/,y=f[m].match(v)[0].length;for(let C=m;C<f.length;C++){let w=f[C];w.match(v)[0].length>=y&&(w=w.slice(y)),x+=`${w}
`}return x}function ZE(o){this._scene=o,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let f=this;function m(v){let{name:y,initialValue:C}=v;f._definedProperties.push(y);let w=v.setPrimitiveFunction;w===!0&&(w=function(A){f._voxelPrimitive[y]=A});let T=v.getPrimitiveFunction;T===!0&&(T=function(){f[y]=f._voxelPrimitive[y]}),N(T)&&f._getPrimitiveFunctions.push(T);let E=vr.observable();return vr.defineProperty(f,y,{get:function(){return E()},set:function(A){typeof C=="number"&&typeof A=="string"&&(A=Number(A),isNaN(A)&&(A=C)),typeof C=="boolean"&&typeof A=="number"&&(A=A===1),E(A),N(w)&&N(f._voxelPrimitive)&&(w(A),o.requestRender())}}),f[y]=C,E}function x(v,y){return function(C){let w=f._voxelPrimitive[v].clone();w[y]=C,f._voxelPrimitive[v]=w}}m({name:"inspectorVisible",initialValue:!0}),m({name:"displayVisible",initialValue:!1}),m({name:"transformVisible",initialValue:!1}),m({name:"boundsVisible",initialValue:!1}),m({name:"clippingVisible",initialValue:!1}),m({name:"shaderVisible",initialValue:!1}),m({name:"shaderString",initialValue:"",getPrimitiveFunction:function(){let v=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=ZCt(v)}}),m({name:"shaderCompilationMessage",initialValue:""}),m({name:"shaderCompilationSuccess",initialValue:!0}),m({name:"depthTest",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"show",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"disableUpdate",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"debugDraw",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"jitter",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"nearestSampling",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"screenSpaceError",initialValue:4,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"stepSize",initialValue:1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"shapeIsBox",getPrimitiveFunction:function(){let v=f._voxelPrimitive.shape;f.shapeIsBox=v===Hb.BOX}}),m({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let v=f._voxelPrimitive.shape;f.shapeIsEllipsoid=v===Hb.ELLIPSOID}}),m({name:"shapeIsCylinder",getPrimitiveFunction:function(){let v=f._voxelPrimitive.shape;f.shapeIsCylinder=v===Hb.CYLINDER}}),m({name:"clippingBoxMaxXMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxXMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingBoxMaxXMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxXMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingBoxMaxX",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingBoxMaxX=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingBoxMinXMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinXMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingBoxMinXMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinXMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingBoxMinX",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingBoxMinX=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingBoxMaxYMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxYMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingBoxMaxYMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxYMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingBoxMaxY",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingBoxMaxY=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingBoxMinYMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinYMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingBoxMinYMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinYMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingBoxMinY",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingBoxMinY=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingBoxMaxZMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxZMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingBoxMaxZMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxZMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingBoxMaxZ",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingBoxMaxZ=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingBoxMinZMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinZMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingBoxMinZMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinZMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingBoxMinZ",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingBoxMinZ=f._voxelPrimitive.minClippingBounds.z}}),m({name:"clippingEllipsoidMaxLongitudeMin",initialValue:-Ce.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMaxLongitudeMax",initialValue:Ce.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitude=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMin",initialValue:-Ce.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMax",initialValue:Ce.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitude=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingEllipsoidMaxLatitudeMin",initialValue:-Ce.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMaxLatitudeMax",initialValue:Ce.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitude=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMin",initialValue:-Ce.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMax",initialValue:Ce.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitude=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingEllipsoidMaxHeightMin",initialValue:0,getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingEllipsoidMaxHeightMax",initialValue:1e5,getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeight=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingEllipsoidMinHeightMin",initialValue:-1e5,getPrimitiveFunction:function(){f.clippingEllipsoidMinHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingEllipsoidMinHeightMax",initialValue:0,getPrimitiveFunction:function(){f.clippingEllipsoidMinHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingEllipsoidMinHeight=f._voxelPrimitive.minClippingBounds.z}}),m({name:"clippingCylinderMaxRadiusMin",initialValue:0,getPrimitiveFunction:function(){f.clippingCylinderMaxRadiusMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingCylinderMaxRadiusMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMaxRadiusMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingCylinderMaxRadius",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingCylinderMaxRadius=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingCylinderMinRadiusMin",initialValue:0,getPrimitiveFunction:function(){f.clippingCylinderMinRadiusMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingCylinderMinRadiusMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMinRadiusMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingCylinderMinRadius",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingCylinderMinRadius=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingCylinderMaxAngleMin",initialValue:-Ce.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingCylinderMaxAngleMax",initialValue:Ce.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingCylinderMaxAngle",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingCylinderMaxAngle=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingCylinderMinAngleMin",initialValue:-Ce.PI}),m({name:"clippingCylinderMinAngleMax",initialValue:Ce.PI}),m({name:"clippingCylinderMinAngle",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingCylinderMinAngle=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingCylinderMaxHeightMin",initialValue:-1,getPrimitiveFunction:function(){f.clippingCylinderMaxHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingCylinderMaxHeightMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMaxHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingCylinderMaxHeight",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingCylinderMaxHeight=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingCylinderMinHeightMin",initialValue:-1,getPrimitiveFunction:function(){f.clippingCylinderMinHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingCylinderMinHeightMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMinHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingCylinderMinHeight",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingCylinderMinHeight=f._voxelPrimitive.minClippingBounds.z}}),m({name:"translationX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.translationX=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new V).x}}),m({name:"translationY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.translationY=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new V).y}}),m({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.translationZ=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new V).z}}),m({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.scaleX=Ee.getScale(f._voxelPrimitive.modelMatrix,new V).x}}),m({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.scaleY=Ee.getScale(f._voxelPrimitive.modelMatrix,new V).y}}),m({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.scaleZ=Ee.getScale(f._voxelPrimitive.modelMatrix,new V).z}}),m({name:"angleX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)}}),m({name:"angleY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)}}),m({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)}})}var Uir=new V,Hir=new V,Gir=new ws,Wir=new Yt;function jI(o){let f=V.fromElements(o.translationX,o.translationY,o.translationZ,Uir),m=V.fromElements(o.scaleX,o.scaleY,o.scaleZ,Hir),x=Gir;x.heading=o.angleX,x.pitch=o.angleY,x.roll=o.angleZ;let v=Yt.fromHeadingPitchRoll(x,Wir),y=Yt.multiplyByScale(v,m,v);o._voxelPrimitive.modelMatrix=Ee.fromRotationTranslation(y,f,o._voxelPrimitive.modelMatrix)}Object.defineProperties(ZE.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(o){if(N(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),!N(o))return;this._voxelPrimitive=o;let f=this;f._customShaderCompilationRemoveCallback=f._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(m){let x=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=ZCt(x),N(m)?(f.shaderCompilationMessage=m.message,f.shaderCompilationSuccess=!1):(f.shaderCompilationMessage="Shader compiled successfully!",f.shaderCompilationSuccess=!0)}),f._modelMatrixReady=!1;for(let m=0;m<f._getPrimitiveFunctions.length;m++)f._getPrimitiveFunctions[m]();f._modelMatrixReady=!0,jI(f)}}});ZE.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};ZE.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};ZE.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};ZE.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};ZE.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};ZE.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};ZE.prototype.compileShader=function(){N(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new kw({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};ZE.prototype.shaderEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,v=m.selectionEnd,y=v,C=m.value.slice(x,v).split(`
`}return x}function ZE(o){this._scene=o,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let f=this;function m(v){let{name:y,initialValue:C}=v;f._definedProperties.push(y);let w=v.setPrimitiveFunction;w===!0&&(w=function(A){f._voxelPrimitive[y]=A});let T=v.getPrimitiveFunction;T===!0&&(T=function(){f[y]=f._voxelPrimitive[y]}),N(T)&&f._getPrimitiveFunctions.push(T);let E=vr.observable();return vr.defineProperty(f,y,{get:function(){return E()},set:function(A){typeof C=="number"&&typeof A=="string"&&(A=Number(A),isNaN(A)&&(A=C)),typeof C=="boolean"&&typeof A=="number"&&(A=A===1),E(A),N(w)&&N(f._voxelPrimitive)&&(w(A),o.requestRender())}}),f[y]=C,E}function x(v,y){return function(C){let w=f._voxelPrimitive[v].clone();w[y]=C,f._voxelPrimitive[v]=w}}m({name:"inspectorVisible",initialValue:!0}),m({name:"displayVisible",initialValue:!1}),m({name:"transformVisible",initialValue:!1}),m({name:"boundsVisible",initialValue:!1}),m({name:"clippingVisible",initialValue:!1}),m({name:"shaderVisible",initialValue:!1}),m({name:"shaderString",initialValue:"",getPrimitiveFunction:function(){let v=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=obt(v)}}),m({name:"shaderCompilationMessage",initialValue:""}),m({name:"shaderCompilationSuccess",initialValue:!0}),m({name:"depthTest",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"show",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"disableUpdate",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"debugDraw",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"jitter",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"nearestSampling",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"screenSpaceError",initialValue:4,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"stepSize",initialValue:1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"shapeIsBox",getPrimitiveFunction:function(){let v=f._voxelPrimitive.shape;f.shapeIsBox=v===Hb.BOX}}),m({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let v=f._voxelPrimitive.shape;f.shapeIsEllipsoid=v===Hb.ELLIPSOID}}),m({name:"shapeIsCylinder",getPrimitiveFunction:function(){let v=f._voxelPrimitive.shape;f.shapeIsCylinder=v===Hb.CYLINDER}}),m({name:"clippingBoxMaxXMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxXMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingBoxMaxXMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxXMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingBoxMaxX",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingBoxMaxX=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingBoxMinXMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinXMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingBoxMinXMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinXMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingBoxMinX",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingBoxMinX=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingBoxMaxYMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxYMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingBoxMaxYMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxYMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingBoxMaxY",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingBoxMaxY=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingBoxMinYMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinYMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingBoxMinYMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinYMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingBoxMinY",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingBoxMinY=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingBoxMaxZMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxZMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingBoxMaxZMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxZMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingBoxMaxZ",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingBoxMaxZ=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingBoxMinZMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinZMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingBoxMinZMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinZMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingBoxMinZ",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingBoxMinZ=f._voxelPrimitive.minClippingBounds.z}}),m({name:"clippingEllipsoidMaxLongitudeMin",initialValue:-Ce.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMaxLongitudeMax",initialValue:Ce.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitude=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMin",initialValue:-Ce.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMax",initialValue:Ce.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitude=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingEllipsoidMaxLatitudeMin",initialValue:-Ce.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMaxLatitudeMax",initialValue:Ce.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitude=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMin",initialValue:-Ce.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMax",initialValue:Ce.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitude=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingEllipsoidMaxHeightMin",initialValue:0,getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingEllipsoidMaxHeightMax",initialValue:1e5,getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeight=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingEllipsoidMinHeightMin",initialValue:-1e5,getPrimitiveFunction:function(){f.clippingEllipsoidMinHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingEllipsoidMinHeightMax",initialValue:0,getPrimitiveFunction:function(){f.clippingEllipsoidMinHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingEllipsoidMinHeight=f._voxelPrimitive.minClippingBounds.z}}),m({name:"clippingCylinderMaxRadiusMin",initialValue:0,getPrimitiveFunction:function(){f.clippingCylinderMaxRadiusMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingCylinderMaxRadiusMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMaxRadiusMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingCylinderMaxRadius",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingCylinderMaxRadius=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingCylinderMinRadiusMin",initialValue:0,getPrimitiveFunction:function(){f.clippingCylinderMinRadiusMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingCylinderMinRadiusMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMinRadiusMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingCylinderMinRadius",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingCylinderMinRadius=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingCylinderMaxAngleMin",initialValue:-Ce.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingCylinderMaxAngleMax",initialValue:Ce.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingCylinderMaxAngle",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingCylinderMaxAngle=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingCylinderMinAngleMin",initialValue:-Ce.PI}),m({name:"clippingCylinderMinAngleMax",initialValue:Ce.PI}),m({name:"clippingCylinderMinAngle",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingCylinderMinAngle=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingCylinderMaxHeightMin",initialValue:-1,getPrimitiveFunction:function(){f.clippingCylinderMaxHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingCylinderMaxHeightMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMaxHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingCylinderMaxHeight",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingCylinderMaxHeight=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingCylinderMinHeightMin",initialValue:-1,getPrimitiveFunction:function(){f.clippingCylinderMinHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingCylinderMinHeightMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMinHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingCylinderMinHeight",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingCylinderMinHeight=f._voxelPrimitive.minClippingBounds.z}}),m({name:"translationX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.translationX=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new V).x}}),m({name:"translationY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.translationY=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new V).y}}),m({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.translationZ=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new V).z}}),m({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.scaleX=Ee.getScale(f._voxelPrimitive.modelMatrix,new V).x}}),m({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.scaleY=Ee.getScale(f._voxelPrimitive.modelMatrix,new V).y}}),m({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)},getPrimitiveFunction:function(){f.scaleZ=Ee.getScale(f._voxelPrimitive.modelMatrix,new V).z}}),m({name:"angleX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)}}),m({name:"angleY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)}}),m({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&jI(f)}})}var nrr=new V,orr=new V,arr=new ws,srr=new Yt;function jI(o){let f=V.fromElements(o.translationX,o.translationY,o.translationZ,nrr),m=V.fromElements(o.scaleX,o.scaleY,o.scaleZ,orr),x=arr;x.heading=o.angleX,x.pitch=o.angleY,x.roll=o.angleZ;let v=Yt.fromHeadingPitchRoll(x,srr),y=Yt.multiplyByScale(v,m,v);o._voxelPrimitive.modelMatrix=Ee.fromRotationTranslation(y,f,o._voxelPrimitive.modelMatrix)}Object.defineProperties(ZE.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(o){if(N(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),!N(o))return;this._voxelPrimitive=o;let f=this;f._customShaderCompilationRemoveCallback=f._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(m){let x=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=obt(x),N(m)?(f.shaderCompilationMessage=m.message,f.shaderCompilationSuccess=!1):(f.shaderCompilationMessage="Shader compiled successfully!",f.shaderCompilationSuccess=!0)}),f._modelMatrixReady=!1;for(let m=0;m<f._getPrimitiveFunctions.length;m++)f._getPrimitiveFunctions[m]();f._modelMatrixReady=!0,jI(f)}}});ZE.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};ZE.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};ZE.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};ZE.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};ZE.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};ZE.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};ZE.prototype.compileShader=function(){N(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new kw({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};ZE.prototype.shaderEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,v=m.selectionEnd,y=v,C=m.value.slice(x,v).split(`
`),w=C.length,T;if(f.shiftKey)for(T=0;T<w;++T)C[T][0]===" "&&(C[T][1]===" "?(C[T]=C[T].substr(2),y-=2):(C[T]=C[T].substr(1),y-=1));else for(T=0;T<w;++T)C[T]=`  ${C[T]}`,y+=2;let E=C.join(`
`);m.value=m.value.slice(0,x)+E+m.value.slice(v),m.selectionStart=x!==v?x:y,m.selectionEnd=y}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileShader();return!0};ZE.prototype.isDestroyed=function(){return!1};ZE.prototype.destroy=function(){let o=this;return this._definedProperties.forEach(function(f){vr.getObservable(o,f).dispose()}),Ir(this)};var kVe=ZE;function T0e(o,f){o=Pd(o);let m=document.createElement("div"),x=new kVe(f);this._viewModel=x,this._container=o,this._element=m;let v=document.createElement("div");v.textContent="Voxel Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleInspector"),m.appendChild(v),m.className="cesium-cesiumInspector cesium-VoxelInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let y=document.createElement("div");y.className="cesium-cesiumInspector-dropDown",m.appendChild(y);let{createSection:C,createCheckbox:w,createRangeInput:T,createButton:E}=sM,A=C(y,"Display","displayVisible","toggleDisplay"),S=C(y,"Transform","transformVisible","toggleTransform"),M=C(y,"Clipping","clippingVisible","toggleClipping"),I=C(y,"Shader","shaderVisible","toggleShader");A.appendChild(w("Depth Test","depthTest")),A.appendChild(w("Show","show")),A.appendChild(w("Disable Update","disableUpdate")),A.appendChild(w("Debug Draw","debugDraw")),A.appendChild(w("Jitter","jitter")),A.appendChild(w("Nearest Sampling","nearestSampling")),A.appendChild(T("Screen Space Error","screenSpaceError",0,128)),A.appendChild(T("Step Size","stepSize",0,2));let P=10,D=10,R=Ce.PI;S.appendChild(T("Translation X","translationX",-P,+P)),S.appendChild(T("Translation Y","translationY",-P,+P)),S.appendChild(T("Translation Z","translationZ",-P,+P)),S.appendChild(T("Scale X","scaleX",0,+D)),S.appendChild(T("Scale Y","scaleY",0,+D)),S.appendChild(T("Scale Z","scaleZ",0,+D)),S.appendChild(T("Heading","angleX",-R,+R)),S.appendChild(T("Pitch","angleY",-R,+R)),S.appendChild(T("Roll","angleZ",-R,+R)),tTe("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ","shapeIsBox",M),tTe("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight","shapeIsEllipsoid",M),tTe("Max Radius","Min Radius","Max Angle","Min Angle","Max Height","Min Height","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxAngle","clippingCylinderMinAngle","clippingCylinderMaxHeight","clippingCylinderMinHeight","shapeIsCylinder",M);let L=document.createElement("div");I.appendChild(L);let O=document.createElement("textarea");O.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),L.className="cesium-cesiumInspector-styleEditor",L.appendChild(O);let F=E("Compile (Ctrl+Enter)","compileShader");L.appendChild(F);let B=document.createElement("label");B.style.display="block",B.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),L.appendChild(B),vr.applyBindings(x,m)}Object.defineProperties(T0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});T0e.prototype.isDestroyed=function(){return!1};T0e.prototype.destroy=function(){return vr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Ir(this)};function tTe(o,f,m,x,v,y,C,w,T,E,A,S,M,I){let P=sM.createRangeInputWithDynamicMinMax,D=I.appendChild(document.createElement("div"));D.setAttribute("data-bind",`if: ${M}`),D.appendChild(P(o,C)),D.appendChild(P(f,w)),D.appendChild(P(m,T)),D.appendChild(P(x,E)),D.appendChild(P(v,A)),D.appendChild(P(y,S))}var VVe=T0e,jir=E0(D6t(),1);function qir(o){let f=!1,m=window.screen;return N(m)&&(N(m.lockOrientation)?f=m.lockOrientation(o):N(m.mozLockOrientation)?f=m.mozLockOrientation(o):N(m.msLockOrientation)?f=m.msLockOrientation(o):N(m.orientation&&m.orientation.lock)&&(f=m.orientation.lock(o))),f}function ebt(){let o=window.screen;N(o)&&(N(o.unlockOrientation)?o.unlockOrientation():N(o.mozUnlockOrientation)?o.mozUnlockOrientation():N(o.msUnlockOrientation)?o.msUnlockOrientation():N(o.orientation&&o.orientation.unlock)&&o.orientation.unlock())}function Yir(o,f,m,x){x()||(m()?(f.useWebVR=!1,o._locked&&(ebt(),o._locked=!1),o._noSleep.disable(),Lx.exitFullscreen(),m(!1)):(Lx.fullscreen||Lx.requestFullscreen(o._vrElement),o._noSleep.enable(),o._locked||(o._locked=qir("landscape")),f.useWebVR=!0,m(!0)))}function E0e(o,f){let m=this,x=vr.observable(Lx.enabled),v=vr.observable(!1);this.isVRMode=void 0,vr.defineProperty(this,"isVRMode",{get:function(){return v()}}),this.isVREnabled=void 0,vr.defineProperty(this,"isVREnabled",{get:function(){return x()},set:function(C){x(C&&Lx.enabled)}}),this.tooltip=void 0,vr.defineProperty(this,"tooltip",function(){return x()?v()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let y=vr.observable(!1);this._isOrthographic=void 0,vr.defineProperty(this,"_isOrthographic",{get:function(){return y()}}),this._eventHelper=new xC,this._eventHelper.add(o.preRender,function(){y(o.camera.frustum instanceof gs)}),this._locked=!1,this._noSleep=new jir.default,this._command=bu(function(){Yir(m,o,v,y)},vr.getObservable(this,"isVREnabled")),this._vrElement=Pd(f)??document.body,this._callback=function(){!Lx.fullscreen&&v()&&(o.useWebVR=!1,m._locked&&(ebt(),m._locked=!1),m._noSleep.disable(),v(!1))},document.addEventListener(Lx.changeEventName,this._callback)}Object.defineProperties(E0e.prototype,{vrElement:{get:function(){return this._vrElement},set:function(o){this._vrElement=o}},command:{get:function(){return this._command}}});E0e.prototype.isDestroyed=function(){return!1};E0e.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(Lx.changeEventName,this._callback),Ir(this)};var zVe=E0e,Xir="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",Kir="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function A0e(o,f,m){o=Pd(o);let x=new zVe(f,m);x._exitVRPath=Kir,x._enterVRPath=Xir;let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-vrButton",v.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),o.appendChild(v),vr.applyBindings(x,v),this._container=o,this._viewModel=x,this._element=v}Object.defineProperties(A0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});A0e.prototype.isDestroyed=function(){return!1};A0e.prototype.destroy=function(){return this._viewModel.destroy(),vr.cleanNode(this._element),this._container.removeChild(this._element),Ir(this)};var UVe=A0e,frt=new Li;function tbt(o){let f=o.clock;f.currentTime=o.timeJulian,f.shouldAnimate=!1}function $ir(o){let f=o.getPropertyIds(),m="";return f.forEach(function(x){let v=o.getProperty(x);N(v)&&(m+=`<tr><th>${x}</th><td>${v}</td></tr>`)}),m.length>0&&(m=`<table class="cesium-infoBox-defaultTable"><tbody>${m}</tbody></table>`),m}function Jir(o){let f,m=[],x=o.getPropertyIds();for(f=0;f<x.length;f++){let y=x[f];/^name$/i.test(y)?m[0]=o.getProperty(y):/name/i.test(y)?m[1]=o.getProperty(y):/^title$/i.test(y)?m[2]=o.getProperty(y):/^(id|identifier)$/i.test(y)?m[3]=o.getProperty(y):/element/i.test(y)?m[4]=o.getProperty(y):/(id|identifier)$/i.test(y)&&(m[5]=o.getProperty(y))}let v=m.length;for(f=0;f<v;f++){let y=m[f];if(N(y)&&y!=="")return y}return"Unnamed Feature"}function prt(o,f){let m=o.scene.pick(f.position);if(N(m)){let x=m.id??m.primitive.id;if(x instanceof tf)return x;if(m instanceof $s)return new tf({name:Jir(m),description:$ir(m),feature:m})}if(N(o.scene.globe))return err(o,f.position)}var Qir=new si;function HVe(o,f){if(N(f)){let m=f.clock;if(N(m)&&N(o)){let x=m.startTime,v=m.stopTime;si.equals(x,v)&&(v=si.addSeconds(x,Ce.EPSILON2,Qir)),o.updateFromClock(),o.zoomTo(x,v)}}}var Zir=new V;function err(o,f){let m=o.scene,x=m.camera.getPickRay(f),v=m.imageryLayers.pickImageryLayerFeatures(x,m);if(!N(v))return;let y=new tf({id:"Loading...",description:"Loading feature information..."});return v.then(function(C){if(o.selectedEntity!==y)return;if(!N(C)||C.length===0){o.selectedEntity=mrt();return}let w=C[0],T=new tf({id:w.name,description:w.description});if(N(w.position)){let E=o.scene.ellipsoid.cartographicToCartesian(w.position,Zir);T.position=new hM(E)}o.selectedEntity=T},function(){o.selectedEntity===y&&(o.selectedEntity=mrt())}),y}function mrt(){return new tf({id:"None",description:"No features found."})}function trr(o,f){let m=o._geocoder,x=o._homeButton,v=o._sceneModePicker,y=o._projectionPicker,C=o._baseLayerPicker,w=o._animation,T=o._timeline,E=o._fullscreenButton,A=o._infoBox,S=o._selectionIndicator,M=f?"hidden":"visible";if(N(m)&&(m.container.style.visibility=M),N(x)&&(x.container.style.visibility=M),N(v)&&(v.container.style.visibility=M),N(y)&&(y.container.style.visibility=M),N(C)&&(C.container.style.visibility=M),N(w)&&(w.container.style.visibility=M),N(T)&&(T.container.style.visibility=M),N(E)&&E.viewModel.isFullscreenEnabled&&(E.container.style.visibility=M),N(A)&&(A.container.style.visibility=M),N(S)&&(S.container.style.visibility=M),o._container){let I=f||!N(E)?0:E.container.clientWidth;o._vrButton.container.style.right=`${I}px`,o.forceResize()}}function fh(o,f){o=Pd(o),f=f??pi.EMPTY_OBJECT;let m=(!N(f.globe)||f.globe!==!1)&&(!N(f.baseLayerPicker)||f.baseLayerPicker!==!1),x=this,v=document.createElement("div");v.className="cesium-viewer",o.appendChild(v);let y=document.createElement("div");y.className="cesium-viewer-cesiumWidgetContainer",v.appendChild(y);let C=document.createElement("div");C.className="cesium-viewer-bottom",v.appendChild(C);let w=f.scene3DOnly??!1,T,E,A=!1;N(f.clockViewModel)?(E=f.clockViewModel,T=E.clock):(T=new _W,E=new tVe(T),A=!0);let S=new _7(y,{baseLayer:m&&N(f.selectedImageryProviderViewModel)||N(f.baseLayer)||N(f.imageryProvider)?!1:void 0,clock:T,shouldAnimate:f.shouldAnimate,skyBox:f.skyBox,skyAtmosphere:f.skyAtmosphere,sceneMode:f.sceneMode,ellipsoid:f.ellipsoid,mapProjection:f.mapProjection,globe:f.globe,orderIndependentTranslucency:f.orderIndependentTranslucency,automaticallyTrackDataSourceClocks:f.automaticallyTrackDataSourceClocks,contextOptions:f.contextOptions,useDefaultRenderLoop:f.useDefaultRenderLoop,targetFrameRate:f.targetFrameRate,showRenderLoopErrors:f.showRenderLoopErrors,useBrowserRecommendedResolution:f.useBrowserRecommendedResolution,creditContainer:N(f.creditContainer)?f.creditContainer:C,creditViewport:f.creditViewport,dataSources:f.dataSources,scene3DOnly:w,shadows:f.shadows,terrainShadows:f.terrainShadows,mapMode2D:f.mapMode2D,blurActiveElementOnCanvasFocus:f.blurActiveElementOnCanvasFocus,requestRenderMode:f.requestRenderMode,maximumRenderTimeChange:f.maximumRenderTimeChange,depthPlaneEllipsoidOffset:f.depthPlaneEllipsoidOffset,msaaSamples:f.msaaSamples}),M=S.scene,I=new xC;I.add(T.onTick,fh.prototype._onTick,this);let P;if(!N(f.selectionIndicator)||f.selectionIndicator!==!1){let he=document.createElement("div");he.className="cesium-viewer-selectionIndicatorContainer",v.appendChild(he),P=new OVe(he,M)}let D;if(!N(f.infoBox)||f.infoBox!==!1){let he=document.createElement("div");he.className="cesium-viewer-infoBoxContainer",v.appendChild(he),D=new wVe(he);let me=D.viewModel;I.add(me.cameraClicked,fh.prototype._onInfoBoxCameraClicked,this),I.add(me.closeClicked,fh.prototype._onInfoBoxClockClicked,this)}let R=document.createElement("div");R.className="cesium-viewer-toolbar",v.appendChild(R);let L;if(!N(f.geocoder)||f.geocoder!==!1){let he=document.createElement("div");he.className="cesium-viewer-geocoderContainer",R.appendChild(he);let me;typeof f.geocoder=="string"?me=[new jfe({scene:M,geocodeProviderType:f.geocoder})]:N(f.geocoder)&&typeof f.geocoder!="boolean"&&(me=Array.isArray(f.geocoder)?f.geocoder:[f.geocoder]),L=new gVe({container:he,geocoderServices:me,scene:M}),I.add(L.viewModel.search.beforeExecute,fh.prototype._clearObjects,this)}let O;(!N(f.homeButton)||f.homeButton!==!1)&&(O=new vVe(R,M),N(L)&&I.add(O.viewModel.command.afterExecute,function(){let he=L.viewModel;he.searchText="",he.isSearchInProgress&&he.search()}),I.add(O.viewModel.command.beforeExecute,fh.prototype._clearTrackedObject,this));let F;!w&&(!N(f.sceneModePicker)||f.sceneModePicker!==!1)&&(F=new RVe(R,M));let B;f.projectionPicker&&(B=new SVe(R,M));let H,G;if(m){let he=f.imageryProviderViewModels??aVe(),me=f.terrainProviderViewModels??sVe();H=new oVe(R,{globe:M.globe,imageryProviderViewModels:he,selectedImageryProviderViewModel:f.selectedImageryProviderViewModel,terrainProviderViewModels:me,selectedTerrainProviderViewModel:f.selectedTerrainProviderViewModel}),G=R.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}N(f.baseLayer)&&f.baseLayer!==!1&&(m&&(H.viewModel.selectedImagery=void 0),M.imageryLayers.removeAll(),M.imageryLayers.add(f.baseLayer)),N(f.terrainProvider)&&(m&&(H.viewModel.selectedTerrain=void 0),M.terrainProvider=f.terrainProvider),N(f.terrain)&&(m&&(M.globe.depthTestAgainstTerrain=!0),M.setTerrain(f.terrain));let W;if(!N(f.navigationHelpButton)||f.navigationHelpButton!==!1){let he=!0;try{if(N(window.localStorage)){let me=window.localStorage.getItem("cesium-hasSeenNavHelp");N(me)&&me?he=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}W=new EVe({container:R,instructionsInitiallyVisible:f.navigationInstructionsInitiallyVisible??he})}let Y;if(!N(f.animation)||f.animation!==!1){let he=document.createElement("div");he.className="cesium-viewer-animationContainer",v.appendChild(he),Y=new iVe(he,new rVe(E))}let K;if(!N(f.timeline)||f.timeline!==!1){let he=document.createElement("div");he.className="cesium-viewer-timelineContainer",v.appendChild(he),K=new BVe(he,T),K.addEventListener("settime",tbt,!1),K.zoomTo(T.startTime,T.stopTime)}let X,q,J;(!N(f.fullscreenButton)||f.fullscreenButton!==!1)&&(J=document.createElement("div"),J.className="cesium-viewer-fullscreenContainer",v.appendChild(J),X=new fVe(J,f.fullscreenElement),q=Nb(X.viewModel,"isFullscreenEnabled",function(he){J.style.display=he?"block":"none",N(K)&&(K.container.style.right=`${J.clientWidth}px`,K.resize())}));let Z,z,te;if(f.vrButton){let he=document.createElement("div");he.className="cesium-viewer-vrContainer",v.appendChild(he),Z=new UVe(he,M,f.fullScreenElement),z=Nb(Z.viewModel,"isVREnabled",function(me){he.style.display=me?"block":"none",N(X)&&(he.style.right=`${J.clientWidth}px`),N(K)&&(K.container.style.right=`${he.clientWidth}px`,K.resize())}),te=Nb(Z.viewModel,"isVRMode",function(me){trr(x,me)})}this._baseLayerPickerDropDown=G,this._fullscreenSubscription=q,this._vrSubscription=z,this._vrModeSubscription=te,this._dataSourceChangedListeners={},this._container=o,this._bottomContainer=C,this._element=v,this._cesiumWidget=S,this._selectionIndicator=P,this._infoBox=D,this._clockViewModel=E,this._destroyClockViewModel=A,this._toolbar=R,this._homeButton=O,this._sceneModePicker=F,this._projectionPicker=B,this._baseLayerPicker=H,this._navigationHelpButton=W,this._animation=Y,this._timeline=K,this._fullscreenButton=X,this._vrButton=Z,this._geocoder=L,this._eventHelper=I,this._lastWidth=0,this._lastHeight=0,this._enableInfoOrSelection=N(D)||N(P),this._selectedEntity=void 0,this._selectedEntityChanged=new Or;let ie=this._cesiumWidget.dataSources,re=this._cesiumWidget.dataSourceDisplay;I.add(ie.dataSourceAdded,fh.prototype._onDataSourceAdded,this),I.add(ie.dataSourceRemoved,fh.prototype._onDataSourceRemoved,this),I.add(M.postUpdate,fh.prototype.resize,this);let ee=ie.length;for(let he=0;he<ee;he++)this._dataSourceAdded(ie,ie.get(he));this._dataSourceAdded(void 0,re.defaultDataSource),I.add(ie.dataSourceAdded,fh.prototype._dataSourceAdded,this),I.add(ie.dataSourceRemoved,fh.prototype._dataSourceRemoved,this);function oe(he){let me=prt(x,he);N(me)?Ut.getValueOrUndefined(me.position,x.clock.currentTime)?x.trackedEntity=me:x.zoomTo(me):N(x.trackedEntity)&&(x.trackedEntity=void 0)}function ae(he){x.selectedEntity=prt(x,he)}S.screenSpaceEventHandler.setInputAction(ae,Di.LEFT_CLICK),S.screenSpaceEventHandler.setInputAction(oe,Di.LEFT_DOUBLE_CLICK),S._canAnimateUpdateCallback=this._updateCanAnimate(this)}Object.defineProperties(fh.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._cesiumWidget.dataSourceDisplay}},entities:{get:function(){return this._cesiumWidget.entities}},dataSources:{get:function(){return this._cesiumWidget.dataSources}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(o){this.scene.shadowMap.enabled=o}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(o){this.scene.globe.shadows=o}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(o){this.scene.terrainProvider=o}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(o){this._cesiumWidget.targetFrameRate=o}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(o){this._cesiumWidget.useDefaultRenderLoop=o}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(o){this._cesiumWidget.resolutionScale=o}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(o){this._cesiumWidget.useBrowserRecommendedResolution=o}},allowDataSourcesToSuspendAnimation:{get:function(){return this._cesiumWidget.allowDataSourcesToSuspendAnimation},set:function(o){this._cesiumWidget.allowDataSourcesToSuspendAnimation=o}},trackedEntity:{get:function(){return this._cesiumWidget.trackedEntity},set:function(o){this._cesiumWidget.trackedEntity=o}},selectedEntity:{get:function(){return this._selectedEntity},set:function(o){if(this._selectedEntity!==o){this._selectedEntity=o;let f=N(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;N(o)?N(f)&&f.animateAppear():N(f)&&f.animateDepart(),this._selectedEntityChanged.raiseEvent(o)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._cesiumWidget.trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._cesiumWidget.clockTrackedDataSource},set:function(o){this._cesiumWidget.clockTrackedDataSource!==o&&(this._cesiumWidget.clockTrackedDataSource=o,HVe(this._timeline,o))}}});fh.prototype.extend=function(o,f){o(this,f)};fh.prototype.resize=function(){let o=this._cesiumWidget,f=this._container,m=f.clientWidth,x=f.clientHeight,v=N(this._animation),y=N(this._timeline);if(o.resize(),m===this._lastWidth&&x===this._lastHeight)return;let C=x-125,w=this._baseLayerPickerDropDown;if(N(w)&&(w.style.maxHeight=`${C}px`),N(this._geocoder)){let P=this._geocoder.searchSuggestionsContainer;P.style.maxHeight=`${C}px`}N(this._infoBox)&&(this._infoBox.viewModel.maxHeight=C);let T=this._timeline,E,A=0,S=5,M=3,I=0;if(v&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let P=this._lastWidth;E=this._animation.container,m>900?(A=169,P<=900&&(E.style.width="169px",E.style.height="112px",this._animation.resize())):m>=600?(A=136,(P<600||P>900)&&(E.style.width="136px",E.style.height="90px",this._animation.resize())):(A=106,(P>600||P===0)&&(E.style.width="106px",E.style.height="70px",this._animation.resize())),S=A+5}if(y&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let P=this._fullscreenButton,D=this._vrButton,R=T.container,L=R.style;M=R.clientHeight+3,L.left=`${A}px`;let O=0;N(P)&&(O+=P.container.clientWidth),N(D)&&(O+=D.container.clientWidth),L.right=`${O}px`,T.resize()}!y&&N(this._fullscreenButton)&&(I=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${S}px`,this._bottomContainer.style.bottom=`${M}px`,this._bottomContainer.style.right=`${I}px`,this._lastWidth=m,this._lastHeight=x};fh.prototype.forceResize=function(){this._lastWidth=0,this.resize()};fh.prototype.render=function(){this._cesiumWidget.render()};fh.prototype.isDestroyed=function(){return!1};fh.prototype.destroy=function(){return N(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Di.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Di.LEFT_DOUBLE_CLICK)),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),N(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),N(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),N(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),N(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),N(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),N(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),N(this._timeline)&&(this._timeline.removeEventListener("settime",tbt,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),N(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),N(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),N(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),N(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._cesiumWidget=this._cesiumWidget.destroy(),Ir(this)};fh.prototype._dataSourceAdded=function(o,f){f.entities.collectionChanged.addEventListener(fh.prototype._onEntityCollectionChanged,this)};fh.prototype._dataSourceRemoved=function(o,f){let m=f.entities;m.collectionChanged.removeEventListener(fh.prototype._onEntityCollectionChanged,this),N(this.selectedEntity)&&m.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};fh.prototype._updateCanAnimate=function(o){return function(f){o._clockViewModel.canAnimate=f}};fh.prototype._onTick=function(o){let f=o.currentTime,m,x=!1,v=this.selectedEntity,y=N(v)&&this._enableInfoOrSelection;y&&v.isShowing&&v.isAvailable(f)&&(this._cesiumWidget.dataSourceDisplay.getBoundingSphere(v,!0,frt)!==ia.FAILED?m=frt.center:N(v.position)&&(m=v.position.getValue(f,m)),x=N(m));let C=N(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;N(C)&&(C.position=V.clone(m,C.position),C.showSelection=y&&x,C.update());let w=N(this._infoBox)?this._infoBox.viewModel:void 0;N(w)&&(w.showInfo=y,w.enableCamera=x,w.isCameraTracking=this.trackedEntity===this.selectedEntity,y?(w.titleText=v.name??v.id,w.description=Ut.getValueOrDefault(v.description,f,"")):(w.titleText="",w.description=""))};fh.prototype._onEntityCollectionChanged=function(o,f,m){let x=m.length;for(let v=0;v<x;v++){let y=m[v];this.selectedEntity===y&&(this.selectedEntity=void 0)}};fh.prototype._onInfoBoxCameraClicked=function(o){if(o.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let f=this.selectedEntity.position;N(f)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};fh.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};fh.prototype._onInfoBoxClockClicked=function(o){this.selectedEntity=void 0};fh.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};fh.prototype._onDataSourceChanged=function(o){this.clockTrackedDataSource===o&&HVe(this.timeline,o)};fh.prototype._onDataSourceAdded=function(o,f){this._cesiumWidget._automaticallyTrackDataSourceClocks&&f===this.clockTrackedDataSource&&HVe(this._timeline,f);let m=f.entities.id,x=this._eventHelper.add(f.changedEvent,fh.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[m]=x};fh.prototype._onDataSourceRemoved=function(o,f){let m=f.entities.id;this._dataSourceChangedListeners[m](),this._dataSourceChangedListeners[m]=void 0};fh.prototype.zoomTo=function(o,f){return this._cesiumWidget.zoomTo(o,f)};fh.prototype.flyTo=function(o,f){return this._cesiumWidget.flyTo(o,f)};var S0e=fh;function irr(o){let f=document.createElement("div");f.className="cesium-viewer-cesium3DTilesInspectorContainer",o.container.appendChild(f);let m=new uVe(f,o.scene);Object.defineProperties(o,{cesium3DTilesInspector:{get:function(){return m}}})}var ibt=irr;function rrr(o){let f=document.createElement("div");f.className="cesium-viewer-cesiumInspectorContainer",o.container.appendChild(f);let m=new hVe(f,o.scene);Object.defineProperties(o,{cesiumInspector:{get:function(){return m}}})}var rbt=rrr;function nrr(o,f){f=f??pi.EMPTY_OBJECT;let m=!0,x=f.flyToOnDrop??!0,v=new Or,y=f.clearOnDrop??!0,C=f.dropTarget??o.container,w=f.clampToGround??!0,T=f.proxy;C=Pd(C),Object.defineProperties(o,{dropTarget:{get:function(){return C},set:function(A){xrt(C,E),C=A,iTe(C,E)}},dropEnabled:{get:function(){return m},set:function(A){A!==m&&(A?iTe(C,E):xrt(C,E),m=A)}},dropError:{get:function(){return v}},clearOnDrop:{get:function(){return y},set:function(A){y=A}},flyToOnDrop:{get:function(){return x},set:function(A){x=A}},proxy:{get:function(){return T},set:function(A){T=A}},clampToGround:{get:function(){return w},set:function(A){w=A}}});function E(A){qV(A),y&&(o.entities.removeAll(),o.dataSources.removeAll());let S=A.dataTransfer.files,M=S.length;for(let I=0;I<M;I++){let P=S[I],D=new FileReader;D.onload=orr(o,P,T,w),D.onerror=arr(o,P),D.readAsText(P)}}iTe(C,E),o.destroy=nke(o,o.destroy,function(){o.dropEnabled=!1}),o._handleDrop=E}function qV(o){o.stopPropagation(),o.preventDefault()}function xrt(o,f){let m=o;N(m)&&(m.removeEventListener("drop",f,!1),m.removeEventListener("dragenter",qV,!1),m.removeEventListener("dragover",qV,!1),m.removeEventListener("dragexit",qV,!1))}function iTe(o,f){o.addEventListener("drop",f,!1),o.addEventListener("dragenter",qV,!1),o.addEventListener("dragover",qV,!1),o.addEventListener("dragexit",qV,!1)}function orr(o,f,m,x){let v=o.scene;return function(y){let C=f.name;try{let w;if(/\.czml$/i.test(C))w=eee.load(JSON.parse(y.target.result),{sourceUri:C});else if(/\.geojson$/i.test(C)||/\.json$/i.test(C)||/\.topojson$/i.test(C))w=iz.load(JSON.parse(y.target.result),{sourceUri:C,clampToGround:x});else if(/\.(kml|kmz)$/i.test(C))w=DQ.load(f,{sourceUri:C,proxy:m,camera:v.camera,canvas:v.canvas,clampToGround:x,screenOverlayContainer:o.container});else if(/\.gpx$/i.test(C))w=F4e.load(f,{sourceUri:C,proxy:m});else{o.dropError.raiseEvent(o,C,`Unrecognized file: ${C}`);return}N(w)&&o.dataSources.add(w).then(function(T){o.flyToOnDrop&&o.flyTo(T)}).catch(function(T){o.dropError.raiseEvent(o,C,T)})}catch(w){o.dropError.raiseEvent(o,C,w)}}}function arr(o,f){return function(m){o.dropError.raiseEvent(o,f.name,m.target.error)}}var nbt=nrr;function srr(o,f){f=f??pi.EMPTY_OBJECT;let m=new MVe({scene:o.scene,container:o.bottomContainer,lowFrameRateMessage:f.lowFrameRateMessage});Object.defineProperties(o,{performanceWatchdog:{get:function(){return m}}})}var obt=srr;function lrr(o){let f=document.createElement("div");f.className="cesium-viewer-voxelInspectorContainer",o.container.appendChild(f);let m=new VVe(f,o.scene);Object.defineProperties(o,{voxelInspector:{get:function(){return m}}})}var abt=lrr;globalThis.CESIUM_VERSION="1.129";var P0e="1.129";var Ui={};fne(Ui,{AlphaMode:()=>m9,AlphaPipelineStage:()=>vOe,AnchorPointDirect:()=>y3e,AnchorPointIndirect:()=>C3e,Animation:()=>iVe,AnimationViewModel:()=>rVe,Appearance:()=>of,ApproximateTerrainHeights:()=>Sd,ArcGISTiledElevationTerrainProvider:()=>Bfe,ArcGisBaseMapType:()=>kF,ArcGisMapServerImageryProvider:()=>bw,ArcGisMapService:()=>IS,ArcType:()=>xs,ArticulationStageType:()=>rw,AssociativeArray:()=>oa,Atmosphere:()=>Hhe,AtmospherePipelineStage:()=>Q3e,AttributeCompression:()=>nc,AttributeType:()=>rl,AutoExposure:()=>$5e,AutomaticUniforms:()=>sG,Axis:()=>v0,AxisAlignedBoundingBox:()=>gQ,B3dmLoader:()=>L3e,B3dmParser:()=>R3e,Base64Encoder:()=>Wse,BaseLayerPicker:()=>oVe,BaseLayerPickerViewModel:()=>nVe,BatchTable:()=>uW,BatchTableHierarchy:()=>ade,BatchTexture:()=>$T,BatchTexturePipelineStage:()=>yOe,Billboard:()=>nf,BillboardCollection:()=>ZS,BillboardGraphics:()=>u3,BillboardLoadState:()=>Dx,BillboardTexture:()=>tW,BillboardVisualizer:()=>iLe,BingMapsGeocoderService:()=>Cyt,BingMapsImageryProvider:()=>TU,BingMapsStyle:()=>Fde,BlendEquation:()=>Dy,BlendFunction:()=>Ed,BlendOption:()=>_0,BlendTexture:()=>Q9,BlendingState:()=>Ou,BoundingRectangle:()=>Br,BoundingSphere:()=>Li,BoundingSphereState:()=>ia,BoundingVolumeSemantics:()=>wde,BoxEmitter:()=>Xfe,BoxGeometry:()=>Sw,BoxGeometryUpdater:()=>rLe,BoxGraphics:()=>qce,BoxOutlineGeometry:()=>jE,BrdfLutGenerator:()=>i5e,Buffer:()=>Do,BufferLoader:()=>QQ,BufferUsage:()=>xn,CPUStylingPipelineStage:()=>TOe,CallbackPositionProperty:()=>fFe,CallbackProperty:()=>Yr,Camera:()=>Ks,CameraEventAggregator:()=>sBe,CameraEventType:()=>vh,CameraFlightPath:()=>BRe,Cartesian2:()=>at,Cartesian3:()=>V,Cartesian4:()=>Xt,Cartographic:()=>kt,CartographicGeocoderService:()=>byt,CatmullRomSpline:()=>wyt,Cesium3DContentGroup:()=>_de,Cesium3DTile:()=>Yb,Cesium3DTileBatchTable:()=>pZ,Cesium3DTileColorBlendMode:()=>xM,Cesium3DTileContent:()=>m2t,Cesium3DTileContentFactory:()=>Ade,Cesium3DTileContentState:()=>Zd,Cesium3DTileContentType:()=>Ly,Cesium3DTileFeature:()=>$s,Cesium3DTileFeatureTable:()=>WW,Cesium3DTileOptimizationHint:()=>gF,Cesium3DTileOptimizations:()=>Mde,Cesium3DTilePass:()=>Lh,Cesium3DTilePassState:()=>Gx,Cesium3DTilePointFeature:()=>EV,Cesium3DTileRefine:()=>Vx,Cesium3DTileStyle:()=>zE,Cesium3DTileStyleEngine:()=>sFe,Cesium3DTilesInspector:()=>uVe,Cesium3DTilesInspectorViewModel:()=>lVe,Cesium3DTilesVoxelProvider:()=>x2t,Cesium3DTileset:()=>t0,Cesium3DTilesetBaseTraversal:()=>uFe,Cesium3DTilesetCache:()=>oFe,Cesium3DTilesetGraphics:()=>Jce,Cesium3DTilesetHeatmap:()=>aFe,Cesium3DTilesetMetadata:()=>Ide,Cesium3DTilesetMostDetailedTraversal:()=>lFe,Cesium3DTilesetSkipTraversal:()=>cFe,Cesium3DTilesetStatistics:()=>BF,Cesium3DTilesetTraversal:()=>hC,Cesium3DTilesetVisualizer:()=>dFe,CesiumInspector:()=>hVe,CesiumInspectorViewModel:()=>cVe,CesiumNavigation:()=>Oke,CesiumRenderPass:()=>Gke,CesiumTerrainProvider:()=>T7,CesiumWidget:()=>_7,Check:()=>Za,CheckerboardMaterialProperty:()=>wue,CircleEmitter:()=>lke,CircleGeometry:()=>Myt,CircleOutlineGeometry:()=>Dyt,CircleWaveMaterialProperty:()=>eW,ClassificationModelDrawCommand:()=>yNe,ClassificationPipelineStage:()=>COe,ClassificationPrimitive:()=>cW,ClassificationType:()=>Uc,ClearCommand:()=>gc,ClippingPlane:()=>Op,ClippingPlaneCollection:()=>Og,ClippingPolygon:()=>Jb,ClippingPolygonCollection:()=>Mv,Clock:()=>_W,ClockRange:()=>Pg,ClockStep:()=>Ef,ClockViewModel:()=>tVe,CloudCollection:()=>w2t,CloudType:()=>Oue,CollectionSource:()=>zst,Color:()=>ze,ColorBlendMode:()=>IM,ColorGeometryInstanceAttribute:()=>Oo,ColorMaterialProperty:()=>as,Command:()=>NCt,CommandLoader:()=>Nke,ComponentDatatype:()=>ti,Composite3DTileContent:()=>LNe,CompositeEntityCollection:()=>Qvt,CompositeMaterialProperty:()=>Eue,CompositePositionProperty:()=>dw,CompositeProperty:()=>oE,CompressedTextureBuffer:()=>BE,ComputeCommand:()=>p3,ComputeEngine:()=>YFe,ComputeRegionBox:()=>f2t,ConditionsExpression:()=>SDe,ConeEmitter:()=>P7,ConicArcSensor:()=>Wue,ConicArcSensorCollection:()=>PCt,ConicArcSensorGeometry:()=>que,ConicArcSensorGraphics:()=>Gue,ConicArcSensorOutlineGeometry:()=>Yue,ConstantPositionProperty:()=>hM,ConstantProperty:()=>Ch,ConstantSpline:()=>V3e,ConstructionWorker:()=>Hst,ContentMetadata:()=>KNe,Context:()=>e5e,ContextLimits:()=>So,CoplanarPolygonGeometry:()=>dU,CoplanarPolygonGeometryLibrary:()=>wG,CoplanarPolygonOutlineGeometry:()=>oL,CornerType:()=>Fd,CorrelationGroup:()=>b3e,CorridorGeometry:()=>VQ,CorridorGeometryLibrary:()=>Dh,CorridorGeometryUpdater:()=>aLe,CorridorGraphics:()=>Yce,CorridorOutlineGeometry:()=>oLe,Credit:()=>rs,CreditDisplay:()=>r5e,CubeMap:()=>S_,CubeMapFace:()=>rPe,CubicRealPolynomial:()=>oQ,CullFace:()=>Yh,CullingVolume:()=>Zm,CumulusCloud:()=>PP,CustomDataSource:()=>ehe,CustomHeightmapTerrainProvider:()=>Ryt,CustomMercatorProjection:()=>rW,CustomShader:()=>kw,CustomShaderManagerEx:()=>Uce,CustomShaderMode:()=>fQ,CustomShaderPipelineStage:()=>DOe,CustomShaderTranslucencyMode:()=>KF,CustomTilingScheme:()=>wlt,CylinderGeometry:()=>zQ,CylinderGeometryLibrary:()=>Fhe,CylinderGeometryUpdater:()=>sLe,CylinderGraphics:()=>Xce,CylinderOutlineGeometry:()=>UQ,CzmlDataSource:()=>eee,DataSource:()=>Tv,DataSourceClock:()=>sz,DataSourceCollection:()=>eLe,DataSourceDisplay:()=>TZ,DebugAppearance:()=>I2t,DebugCameraPrimitive:()=>Ip,DebugInspector:()=>gBe,DebugModelMatrixPrimitive:()=>dke,DefaultProxy:()=>Oyt,DepthFunction:()=>Ev,DepthPlane:()=>a5e,DequantizationPipelineStage:()=>ROe,DerivedCommand:()=>bv,DeveloperError:()=>At,DeviceOrientationCameraController:()=>s5e,DirectionalLight:()=>I7,DiscardEmptyTileImagePolicy:()=>Bde,DiscardMissingTileImagePolicy:()=>AFe,DistanceDisplayCondition:()=>Go,DistanceDisplayConditionGeometryInstanceAttribute:()=>Nh,DistanceLegendViewModel:()=>Eke,DoubleEndedPriorityQueue:()=>pfe,DoublyLinkedList:()=>vZ,DracoLoader:()=>ZQ,DrawCommand:()=>Vn,DynamicAtmosphereLightingType:()=>WQ,DynamicEnvironmentMapManager:()=>p9,DynamicGeometryBatch:()=>Lhe,DynamicGeometryUpdater:()=>ld,ECharts:()=>mQ,EarthOrientationParameters:()=>OSe,EarthOrientationParametersSample:()=>nQ,EasingFunction:()=>jy,EllipseGeometry:()=>EE,EllipseGeometryLibrary:()=>Lw,EllipseGeometryUpdater:()=>lLe,EllipseGraphics:()=>Kce,EllipseOutlineGeometry:()=>SM,Ellipsoid:()=>Ei,EllipsoidGeodesic:()=>Vg,EllipsoidGeometry:()=>zx,EllipsoidGeometryUpdater:()=>dLe,EllipsoidGraphics:()=>fW,EllipsoidOutlineGeometry:()=>Wb,EllipsoidPrimitive:()=>jFe,EllipsoidRhumbLine:()=>cE,EllipsoidSurfaceAppearance:()=>aU,EllipsoidTangentPlane:()=>mC,EllipsoidTerrainProvider:()=>DE,EllipsoidalOccluder:()=>qz,Empty3DTileContent:()=>_J,EncodedCartesian3:()=>Ic,Entity:()=>tf,EntityCluster:()=>R5,EntityCollection:()=>GE,EntityView:()=>vFe,Event:()=>Or,EventHelper:()=>xC,ExpandBySmartEarth:()=>Tb,ExpandByTerra:()=>Tlt,Expression:()=>$F,ExpressionNodeType:()=>yo,ExternalParameter:()=>wv,ExtrapolationType:()=>nM,FBXLoader:()=>Vke,FBXPrimitive:()=>e0e,FBXTreeParser:()=>kke,FeatureDataProvider:()=>ghe,FeatureDetection:()=>ma,FeatureIdPipelineStage:()=>dZ,FeatureJsonData:()=>CW,FisheyeProjectionMap:()=>NQ,FisheyeProjectionMapShader:()=>qK,FlattenVS:()=>wCt,FlowEcharts:()=>Yfe,Fog:()=>u5e,ForEach:()=>Qr,FrameRateMonitor:()=>fke,FrameState:()=>c5e,Framebuffer:()=>Mp,FramebufferManager:()=>ih,Frozen:()=>pi,FrustumCommands:()=>ife,FrustumGeometry:()=>bW,FrustumOutlineGeometry:()=>OQ,Fullscreen:()=>Lx,FullscreenButton:()=>fVe,FullscreenButtonViewModel:()=>dVe,GWBaiduImageryProvider:()=>TW,GeoJsonDataSource:()=>iz,GeoJsonLoader:()=>F3e,GeocodeType:()=>iee,Geocoder:()=>gVe,GeocoderService:()=>Hfe,GeocoderViewModel:()=>xVe,GeographicProjection:()=>e0,GeographicTilingScheme:()=>Xh,Geometry:()=>Ma,Geometry3DTileContent:()=>ONe,GeometryAttribute:()=>Zr,GeometryAttributes:()=>ph,GeometryFactory:()=>kyt,GeometryInstance:()=>eo,GeometryInstanceAttribute:()=>hw,GeometryOffsetAttribute:()=>Ql,GeometryPipeline:()=>Pc,GeometryPipelineStage:()=>NOe,GeometryType:()=>sF,GeometryUpdater:()=>zd,GeometryUpdaterSet:()=>GQ,GeometryVisualizer:()=>RLe,GetFeatureInfoFormat:()=>a$,GifImageProperty:()=>pdt,Globe:()=>zFe,GlobeDepth:()=>x5e,GlobeSurfaceShaderSet:()=>TFe,GlobeSurfaceTile:()=>jL,GlobeSurfaceTileProvider:()=>BFe,GlobeTranslucency:()=>RZ,GlobeTranslucencyFramebuffer:()=>g5e,GlobeTranslucencyState:()=>d5e,GltfBufferViewLoader:()=>jhe,GltfDracoLoader:()=>qhe,GltfGpmLoader:()=>T3e,GltfGpmLocal:()=>ode,GltfImageLoader:()=>Yhe,GltfIndexBufferLoader:()=>Xhe,GltfInstanceLoader:()=>sde,GltfJsonLoader:()=>Jhe,GltfLoader:()=>_U,GltfLoaderUtil:()=>HL,GltfMeshPrimitiveGpmLoader:()=>P3e,GltfStructuralMetadataLoader:()=>_3e,GltfTextureLoader:()=>Qhe,GltfVertexBufferLoader:()=>Zhe,GoogleEarthEnterpriseImageryProvider:()=>M2t,GoogleEarthEnterpriseMapsProvider:()=>IFe,GoogleEarthEnterpriseMetadata:()=>A7,GoogleEarthEnterpriseTerrainData:()=>Lue,GoogleEarthEnterpriseTerrainProvider:()=>Wyt,GoogleEarthEnterpriseTileInformation:()=>Q4e,GoogleGeocoderService:()=>qyt,GoogleMaps:()=>f$,GpxDataSource:()=>F4e,Graticules:()=>She,GregorianDate:()=>Z9,GridImageryProvider:()=>D2t,GridMaterialProperty:()=>Aue,GroundGeometryUpdater:()=>Ru,GroundPolylineGeometry:()=>sW,GroundPolylinePrimitive:()=>F5,GroundPrimitive:()=>HE,GroupMetadata:()=>Kle,GwBufferAnalysis:()=>Phe,HeadingPitchRange:()=>zw,HeadingPitchRoll:()=>ws,Heap:()=>ASe,HeightMap:()=>_Ct,HeightReference:()=>qn,HeightmapEncoding:()=>f5,HeightmapTerrainData:()=>CP,HeightmapTessellator:()=>Nde,HermitePolynomialApproximation:()=>b4e,HermiteSpline:()=>mJ,HilbertOrder:()=>Wle,HomeButton:()=>vVe,HomeButtonViewModel:()=>_Ve,HorizontalOrigin:()=>Mc,HugeAdapter:()=>fZ,I3SBuildingSceneLayerExplorer:()=>$Ct,I3SBuildingSceneLayerExplorerViewModel:()=>yVe,I3SDataProvider:()=>gD,I3SDecoder:()=>u4e,I3SFeature:()=>h4e,I3SField:()=>d4e,I3SGeometry:()=>gue,I3SLayer:()=>Cfe,I3SNode:()=>_ue,I3SStatistics:()=>p4e,I3SSublayer:()=>m4e,I3SSymbology:()=>f4e,I3dmLoader:()=>k3e,I3dmParser:()=>B3e,ITwinData:()=>R2t,ITwinPlatform:()=>w_,Iau2000Orientation:()=>HFe,Iau2006XysData:()=>FSe,Iau2006XysSample:()=>Ace,IauOrientationAxes:()=>GFe,IauOrientationParameters:()=>UFe,ImageBasedLighting:()=>lZ,ImageBasedLightingPipelineStage:()=>eOe,ImageCombine:()=>kce,ImageMaterialProperty:()=>w0,Imagery:()=>Hde,ImageryLayer:()=>Pp,ImageryLayerCollection:()=>kFe,ImageryLayerFeatureInfo:()=>$5,ImageryProvider:()=>JM,ImageryState:()=>$l,Implicit3DTileContent:()=>Xle,ImplicitAvailabilityBitstream:()=>qle,ImplicitMetadataView:()=>yde,ImplicitSubdivisionScheme:()=>P_,ImplicitSubtree:()=>Cde,ImplicitSubtreeCache:()=>ake,ImplicitSubtreeMetadata:()=>kNe,ImplicitTileCoordinates:()=>Lde,ImplicitTileset:()=>Rde,IndexDatatype:()=>Jn,InfoBox:()=>wVe,InfoBoxViewModel:()=>bVe,InspectorShared:()=>sM,InstanceAttributeSemantic:()=>Fx,InstancingPipelineStage:()=>pOe,InterpolationAlgorithm:()=>Yyt,InterpolationType:()=>TF,Intersect:()=>ua,IntersectionTests:()=>Wc,Intersections2D:()=>w7,Interval:()=>NS,InvertClassification:()=>efe,Ion:()=>NF,IonGeocodeProviderType:()=>jV,IonGeocoderService:()=>jfe,IonImageryProvider:()=>VF,IonResource:()=>FF,IonWorldImageryStyle:()=>RG,Iso8601:()=>kn,JobScheduler:()=>f5e,JobType:()=>My,JsonMetadataTable:()=>YQ,JulianDate:()=>si,KTX2Transcoder:()=>ISe,KeyboardEventModifier:()=>rC,KeyframeNode:()=>Jd,KmlCamera:()=>aRe,KmlDataSource:()=>DQ,KmlLookAt:()=>sRe,KmlTour:()=>lRe,KmlTourFlyTo:()=>uRe,KmlTourWait:()=>hRe,Label:()=>w$,LabelCollection:()=>o3,LabelGraphics:()=>pW,LabelStyle:()=>$f,LabelVisualizer:()=>LLe,LagrangePolynomialApproximation:()=>T4e,LeapSecond:()=>jh,Light:()=>O2t,LightingModel:()=>nC,LightingPipelineStage:()=>BOe,LinearApproximation:()=>dhe,LinearSampler:()=>QM,LinearSpline:()=>hZ,MTLLoader:()=>zke,ManagedArray:()=>MM,MapMode2D:()=>EM,MapProjection:()=>$yt,MapboxImageryProvider:()=>EU,MapboxStyleImageryProvider:()=>F2t,Material:()=>zo,MaterialAppearance:()=>y0,MaterialPipelineStage:()=>VOe,MaterialProperty:()=>E_,Math:()=>Ce,Matrix2:()=>b0,Matrix3:()=>Yt,Matrix4:()=>Ee,Megatexture:()=>mfe,MeshParser:()=>Bke,MeshPhongMaterial:()=>x$,MeshPrimitiveGpmLocal:()=>S3e,MetadataClass:()=>kW,MetadataClassProperty:()=>NW,MetadataComponentType:()=>da,MetadataEntity:()=>Wu,MetadataEnum:()=>m3e,MetadataEnumValue:()=>p3e,MetadataPicking:()=>p5e,MetadataPickingPipelineStage:()=>YI,MetadataPipelineStage:()=>ML,MetadataSchema:()=>q5,MetadataSchemaLoader:()=>ede,MetadataSemantic:()=>bde,MetadataTable:()=>xU,MetadataTableProperty:()=>jLe,MetadataType:()=>Mo,MipmapHint:()=>Gz,Model:()=>Dv,Model3DTileContent:()=>$I,ModelAlphaOptions:()=>oNe,ModelAnimation:()=>j3e,ModelAnimationChannel:()=>G3e,ModelAnimationCollection:()=>q3e,ModelAnimationLoop:()=>BS,ModelAnimationState:()=>oF,ModelArticulation:()=>rOe,ModelArticulationStage:()=>iOe,ModelClippingPlanesPipelineStage:()=>aOe,ModelClippingPolygonsPipelineStage:()=>uOe,ModelColorPipelineStage:()=>xJ,ModelComponents:()=>Jl,ModelDrawCommand:()=>CNe,ModelDrawCommands:()=>TNe,ModelFeature:()=>Y3e,ModelFeatureTable:()=>X3e,ModelFlattenPipelineStage:()=>SNe,ModelGraphics:()=>_Q,ModelLightingOptions:()=>gNe,ModelMatrixUpdateStage:()=>xOe,ModelNode:()=>cOe,ModelRenderResources:()=>cNe,ModelRuntimeNode:()=>_Oe,ModelRuntimePrimitive:()=>iNe,ModelSceneGraph:()=>PNe,ModelSilhouettePipelineStage:()=>fNe,ModelSkin:()=>nNe,ModelSplitterPipelineStage:()=>mNe,ModelStatistics:()=>INe,ModelType:()=>Np,ModelUtility:()=>Ll,ModelVisualizer:()=>RNe,Moon:()=>qFe,MorphTargetsPipelineStage:()=>UOe,MorphWeightSpline:()=>Jyt,MortonOrder:()=>_9,MultiResourceImageryProvider:()=>EW,MultiResourceTerrainProvider:()=>Ihe,Multiple3DTileContent:()=>eFe,MultisampleFramebuffer:()=>M3e,NavigationControl:()=>F7,NavigationHelpButton:()=>EVe,NavigationHelpButtonViewModel:()=>TVe,NavigationUtils:()=>B7,NavigationViewModel:()=>p$,NearFarScalar:()=>fa,NeverTileDiscardPolicy:()=>B2t,NodeRenderResources:()=>xNe,NodeStatisticsPipelineStage:()=>gOe,NodeTransformationProperty:()=>$ce,OBJLoader:()=>Hke,OBJPrimitive:()=>t0e,OIT:()=>C5e,Occluder:()=>Ahe,OffsetGeometryInstanceAttribute:()=>xm,OlMVTImageryProvider:()=>AW,OpenCageGeocoderService:()=>Qyt,OpenStreetMapImageryProvider:()=>OS,OrderedGroundPrimitiveCollection:()=>tLe,OrientedBoundingBox:()=>Ju,OrthographicFrustum:()=>gs,OrthographicOffCenterFrustum:()=>ix,Packable:()=>Zyt,PackableForInterpolation:()=>e2t,Particle:()=>$fe,ParticleBurst:()=>D7,ParticleEmitter:()=>z2t,ParticleSystem:()=>QE,Pass:()=>Sr,PassState:()=>kp,PathGraphics:()=>vQ,PathVisualizer:()=>pFe,PeliasGeocoderService:()=>tke,PerInstanceColorAppearance:()=>Da,PerformanceDisplay:()=>BZ,PerformanceWatchdog:()=>MVe,PerformanceWatchdogViewModel:()=>IVe,PerspectiveFrustum:()=>jc,PerspectiveOffCenterFrustum:()=>KM,PerspectiveProjectionMap:()=>FQ,PerspectiveProjectionMapShader:()=>YK,PerspectiveProjectionMapWithDepth:()=>BQ,PerspectiveProjectionMapWithDepthShader:()=>wF,PickDepth:()=>m5e,PickDepthFramebuffer:()=>b5e,PickFramebuffer:()=>w5e,PickGlobeSlope:()=>Ovt,PickedMetadataInfo:()=>jBe,Picking:()=>M5e,PickingPipelineStage:()=>HOe,PinBuilder:()=>wQ,PixelDatatype:()=>bn,PixelFormat:()=>an,Plane:()=>Ea,PlaneGeometry:()=>fLe,PlaneGeometryUpdater:()=>xLe,PlaneGraphics:()=>UDe,PlaneOutlineGeometry:()=>pLe,PntsLoader:()=>MNe,PntsParser:()=>xde,PointCloud:()=>s4e,PointCloudEyeDomeLighting:()=>uZ,PointCloudShading:()=>GW,PointCloudStylingPipelineStage:()=>WOe,PointGraphics:()=>Qce,PointLight:()=>wfe,PointPrimitive:()=>Pv,PointPrimitiveCollection:()=>a3,PointVisualizer:()=>mFe,PolygonDepth:()=>Ez,PolygonDepthFS:()=>fde,PolygonDepthVS:()=>pde,PolygonGeometry:()=>_c,PolygonGeometryLibrary:()=>Tu,PolygonGeometryUpdater:()=>_Le,PolygonGraphics:()=>eu,PolygonHierarchy:()=>to,PolygonOutlineGeometry:()=>gLe,PolygonPipeline:()=>ad,Polyline:()=>YM,PolylineArrowMaterialProperty:()=>gm,PolylineCollection:()=>V5,PolylineColorAppearance:()=>jm,PolylineDashMaterialProperty:()=>Eu,PolylineGeometry:()=>zy,PolylineGeometryUpdater:()=>xFe,PolylineGlowMaterialProperty:()=>Sue,PolylineGraphics:()=>CM,PolylineMaterialAppearance:()=>T_,PolylineOutlineMaterialProperty:()=>QL,PolylinePipeline:()=>Nd,PolylineTrailLinkMaterialProperty:()=>Nvt,PolylineVisualizer:()=>_Fe,PolylineVolumeGeometry:()=>vLe,PolylineVolumeGeometryLibrary:()=>fz,PolylineVolumeGeometryUpdater:()=>CLe,PolylineVolumeGraphics:()=>Zce,PolylineVolumeOutlineGeometry:()=>yLe,PositionProperty:()=>dW,PositionPropertyArray:()=>ZG,PostProcessStage:()=>Ua,PostProcessStageCollection:()=>eBe,PostProcessStageComposite:()=>_m,PostProcessStageLibrary:()=>X2,PostProcessStageSampleMode:()=>J2,PostProcessStageTextureCache:()=>ufe,PpeMetadata:()=>A3e,PpeSource:()=>MCt,PpeTexture:()=>E3e,Primitive:()=>pa,PrimitiveCollection:()=>I_,PrimitiveLoadPlan:()=>nZ,PrimitiveOutlineGenerator:()=>rde,PrimitiveOutlinePipelineStage:()=>YOe,PrimitivePipeline:()=>ez,PrimitiveRenderResources:()=>_Ne,PrimitiveState:()=>dm,PrimitiveStatisticsPipelineStage:()=>XOe,PrimitiveType:()=>An,ProjectionPicker:()=>SVe,ProjectionPickerViewModel:()=>AVe,Property:()=>Ut,PropertyArray:()=>Lfe,PropertyAttribute:()=>Whe,PropertyAttributeProperty:()=>HLe,PropertyBag:()=>tP,PropertyTable:()=>G5,PropertyTexture:()=>KQ,PropertyTextureProperty:()=>zLe,ProviderViewModel:()=>hm,Proxy:()=>r2t,QuadraticRealPolynomial:()=>zS,QuadtreeOccluders:()=>Yde,QuadtreePrimitive:()=>Ww,QuadtreePrimitivezh:()=>kvt,QuadtreeTile:()=>LZ,QuadtreeTileLoadState:()=>sd,QuadtreeTileProvider:()=>WU,QuantizedMeshTerrainData:()=>Vfe,QuarticRealPolynomial:()=>QSe,Quaternion:()=>Er,QuaternionSpline:()=>U3e,Queue:()=>c3,RasterizeHtml:()=>v7,Ray:()=>qa,Rectangle:()=>Si,RectangleCollisionChecker:()=>Uhe,RectangleGeometry:()=>fU,RectangleGeometryLibrary:()=>Cv,RectangleGeometryUpdater:()=>SLe,RectangleGraphics:()=>mW,RectangleOutlineGeometry:()=>khe,RectangularSensor:()=>NJ,RectangularSensorFS:()=>kue,RectangularSensorGraphics:()=>ICt,RectangularSensorPrimitive:()=>Kke,RectangularSensorScanPlaneFS:()=>Xke,RectangularSensorVS:()=>r0e,RectangularSensorVisualizer:()=>$ke,ReferenceFrame:()=>Q0,ReferenceProperty:()=>IQ,RegionPolygonTexture:()=>Cke,RegionTexture:()=>bke,RegionWeather:()=>i0e,RenderObjectFactory:()=>Dc,RenderState:()=>wn,Renderbuffer:()=>fw,RenderbufferFormat:()=>Bb,Request:()=>Jm,RequestErrorEvent:()=>$V,RequestScheduler:()=>Aw,RequestState:()=>Gc,RequestType:()=>e2,ResetViewNavigationControl:()=>Pke,Resource:()=>Wr,ResourceCache:()=>Id,ResourceCacheKey:()=>YE,ResourceCacheStatistics:()=>g3e,ResourceLoader:()=>zg,ResourceLoaderState:()=>ea,Rotation:()=>NM,RuntimeError:()=>Xi,S2Cell:()=>IG,S3MDataSource:()=>Hvt,SDFSettings:()=>K2,SampledPositionProperty:()=>aE,SampledProperty:()=>fL,Sampler:()=>aa,ScaledPositionProperty:()=>vW,Scene:()=>BU,SceneFramebuffer:()=>rfe,SceneHeightMap:()=>Yke,SceneHeightWaterPostProcessing:()=>GT,SceneHeightWaterPrimitive:()=>fCt,SceneMode:()=>Ti,SceneMode2DPipelineStage:()=>KOe,SceneModePicker:()=>RVe,SceneModePickerViewModel:()=>DVe,SceneTransforms:()=>Va,SceneTransitioner:()=>aBe,ScreenSpaceCameraController:()=>fBe,ScreenSpaceEventHandler:()=>kr,ScreenSpaceEventType:()=>Di,SelectedFeatureIdPipelineStage:()=>gJ,SelectionIndicator:()=>OVe,SelectionIndicatorViewModel:()=>LVe,Sensor:()=>mCt,SensorVolumePortionToDisplay:()=>Iue,ShaderBuilder:()=>hde,ShaderCache:()=>KFe,ShaderDestination:()=>nr,ShaderFunction:()=>uNe,ShaderProgram:()=>Us,ShaderSource:()=>$r,ShaderStruct:()=>sNe,ShadowMap:()=>R3,ShadowMapShader:()=>UF,ShadowMode:()=>Zl,ShadowVolumeAppearance:()=>CL,ShowGeometryInstanceAttribute:()=>Ol,Simon1994PlanetaryPositions:()=>bJ,SimplePolylineGeometry:()=>n2t,SingleTileImageryProvider:()=>Gw,SkinningPipelineStage:()=>JOe,SkyAtmosphere:()=>XZ,SkyBox:()=>kU,SlopeArrow:()=>o0e,SpatialNode:()=>UBe,Spdcf:()=>w3e,SpecularEnvironmentCubeMap:()=>wz,SphereEmitter:()=>R7,SphereGeometry:()=>o2t,SphereOutlineGeometry:()=>h3,Spherical:()=>E4e,Spline:()=>S0,SplitDirection:()=>Bw,Splitter:()=>gfe,SpotLight:()=>Wvt,StaticGeometryColorBatch:()=>mL,StaticGeometryPerMaterialBatch:()=>xL,StaticGroundGeometryColorBatch:()=>Rle,StaticGroundGeometryPerMaterialBatch:()=>DLe,StaticGroundPolylinePerMaterialBatch:()=>gFe,StaticOutlineGeometryBatch:()=>Lle,StencilConstants:()=>Ia,StencilFunction:()=>Nu,StencilOperation:()=>lo,SteppedSpline:()=>z3e,Stereographic:()=>Fb,StorageType:()=>x9,StripeMaterialProperty:()=>Pue,StripeOrientation:()=>g5,StructuralMetadata:()=>nD,StyleCommandsNeeded:()=>Tz,StyleExpression:()=>U2t,Sun:()=>o4e,SunLight:()=>u7,SunPostProcess:()=>xBe,SupportedImageFormats:()=>v3e,SvgPathBindingHandler:()=>eVe,TaskProcessor:()=>ep,Terrain:()=>_ke,TerrainData:()=>bU,TerrainEncoding:()=>ME,TerrainFillMesh:()=>jde,TerrainFlatten:()=>qU,TerrainFlattenPolygonTexture:()=>wke,TerrainMesh:()=>wU,TerrainOffsetProperty:()=>Nhe,TerrainProvider:()=>Uy,TerrainQuantization:()=>iC,TerrainRegionWeather:()=>qke,TerrainState:()=>Ns,Texture:()=>Wn,Texture3D:()=>B4e,TextureAtlas:()=>Ice,TextureCache:()=>$Fe,TextureMagnificationFilter:()=>pl,TextureManager:()=>EDe,TextureMinificationFilter:()=>na,TexturePacker:()=>Pce,TextureUniform:()=>Lce,TextureWrap:()=>io,TileAvailability:()=>GF,TileBoundingRegion:()=>IE,TileBoundingS2Cell:()=>tFe,TileBoundingSphere:()=>E3,TileBoundingVolume:()=>H2t,TileCoordinatesImageryProvider:()=>cee,TileDiscardPolicy:()=>G2t,TileEdge:()=>Os,TileImagery:()=>Gde,TileMapServiceImageryProvider:()=>bP,TileMetadata:()=>JNe,TileOrientedBoundingBox:()=>$y,TileProviderError:()=>qm,TileReplacementQueue:()=>Kde,TileSelectionResult:()=>Pa,TileState:()=>W2t,Tileset3DTileContent:()=>VNe,TilesetMetadata:()=>nFe,TilesetPipelineStage:()=>K3e,TilesetRegionWeather:()=>jke,TilingScheme:()=>a2t,TimeConstants:()=>zc,TimeDynamicImagery:()=>Ude,TimeDynamicPointCloud:()=>_fe,TimeInterval:()=>Rl,TimeIntervalCollection:()=>ky,TimeIntervalCollectionPositionProperty:()=>v9,TimeIntervalCollectionProperty:()=>e9,TimeStandard:()=>zu,Timeline:()=>BVe,TimelineHighlightRange:()=>NVe,TimelineTrack:()=>FVe,Tipsify:()=>ePe,ToggleButtonViewModel:()=>nG,Tonemapper:()=>PV,TrackingReferenceFrame:()=>dG,Transforms:()=>Mr,TranslationRotationScale:()=>Vw,TranslucentTileClassification:()=>P5e,TridiagonalSystemSolver:()=>lde,TrustedServers:()=>Cce,TweenCollection:()=>dfe,UniformState:()=>JFe,UniformType:()=>ba,UrlTemplateGeojsonProvider:()=>Yvt,UrlTemplateImageryProvider:()=>e1,UserInterfaceControl:()=>Zfe,Utils:()=>AP,VERSION:()=>P0e,VRButton:()=>UVe,VRButtonViewModel:()=>zVe,VRTheWorldTerrainProvider:()=>c2t,VaryingType:()=>Gy,Vector3DTileBatch:()=>g9,Vector3DTileClampedPolylines:()=>jNe,Vector3DTileContent:()=>XNe,Vector3DTileGeometry:()=>xV,Vector3DTilePoints:()=>zNe,Vector3DTilePolygons:()=>UNe,Vector3DTilePolylines:()=>Ede,Vector3DTilePrimitive:()=>vde,VelocityOrientationProperty:()=>A4e,VelocityVectorProperty:()=>EZ,VertexArray:()=>$u,VertexArrayFacade:()=>sQ,VertexAttributeSemantic:()=>sa,VertexFormat:()=>sn,VerticalExaggeration:()=>Vy,VerticalExaggerationPipelineStage:()=>ZOe,VerticalOrigin:()=>co,VideoSynchronizer:()=>s2t,View:()=>Yw,ViewShed:()=>ACt,ViewShedMap:()=>x7,ViewShedMapShader:()=>HF,Viewer:()=>S0e,ViewportQuad:()=>O7,Visibility:()=>wu,Visualizer:()=>gyt,VolumeCloud:()=>a0e,VoxelBoxShape:()=>GZ,VoxelCell:()=>_Be,VoxelContent:()=>ffe,VoxelCylinderShape:()=>WZ,VoxelEllipsoidShape:()=>jZ,VoxelInspector:()=>VVe,VoxelInspectorViewModel:()=>kVe,VoxelMetadataOrder:()=>Iz,VoxelPrimitive:()=>YZ,VoxelProvider:()=>j2t,VoxelRenderResources:()=>LBe,VoxelShape:()=>q2t,VoxelShapeType:()=>Hb,VoxelTraversal:()=>HBe,VulkanConstants:()=>h2t,WallGeometry:()=>PLe,WallGeometryLibrary:()=>Vhe,WallGeometryUpdater:()=>MLe,WallGraphics:()=>yQ,WallOutlineGeometry:()=>ILe,WaterFS:()=>NRe,WaterHeightMap:()=>vCt,WaterMaterialProperty:()=>Xvt,WaterPipelinePrimitive:()=>Ife,WaterPostProcessing:()=>Uue,WaterPostProcessingEx:()=>Hue,WaterPrimitive:()=>s0e,WaterPrimitiveEx:()=>hB,WaterReflectImage:()=>Jke,WaterReflectImageEx:()=>Qke,WebGLConstants:()=>Pi,WebMapServiceImageryProvider:()=>AU,WebMapTileServiceImageryProvider:()=>I3,WebMercatorProjection:()=>ef,WebMercatorTilingScheme:()=>tp,WindingOrder:()=>Iw,WireframeIndexGenerator:()=>cde,WireframePipelineStage:()=>tNe,ZoomNavigationControl:()=>Nue,_shadersAcesTonemappingStage:()=>D5e,_shadersAdditiveBlend:()=>pBe,_shadersAdjustTranslucentFS:()=>sue,_shadersAllMaterialAppearanceFS:()=>TRe,_shadersAllMaterialAppearanceVS:()=>ERe,_shadersAmbientOcclusionGenerate:()=>R5e,_shadersAmbientOcclusionModulate:()=>L5e,_shadersAspectRampMaterial:()=>oPe,_shadersAtmosphereCommon:()=>Cz,_shadersAtmosphereStageFS:()=>$3e,_shadersAtmosphereStageVS:()=>J3e,_shadersBasicMaterialAppearanceFS:()=>ARe,_shadersBasicMaterialAppearanceVS:()=>SRe,_shadersBillboardCollectionFS:()=>aDe,_shadersBillboardCollectionVS:()=>sDe,_shadersBlackAndWhite:()=>O5e,_shadersBloomComposite:()=>N5e,_shadersBrdfLutGeneratorFS:()=>t5e,_shadersBrightPass:()=>mBe,_shadersBrightness:()=>F5e,_shadersBumpMapMaterial:()=>aPe,_shadersCPUStylingStageFS:()=>wOe,_shadersCPUStylingStageVS:()=>bOe,_shadersCheckerboardMaterial:()=>sPe,_shadersCloudCollectionFS:()=>k4e,_shadersCloudCollectionVS:()=>V4e,_shadersCloudNoiseFS:()=>z4e,_shadersCloudNoiseVS:()=>U4e,_shadersCompareAndPackTranslucentDepth:()=>S5e,_shadersCompositeOITFS:()=>_5e,_shadersCompositeTranslucentClassification:()=>s$,_shadersComputeIrradianceFS:()=>NLe,_shadersComputeRadianceMapFS:()=>FLe,_shadersContrastBias:()=>B5e,_shadersConvolveSpecularMapFS:()=>BLe,_shadersConvolveSpecularMapVS:()=>kLe,_shadersCustomShaderStageFS:()=>AOe,_shadersCustomShaderStageVS:()=>EOe,_shadersCzmBuiltins:()=>DK,_shadersDepthOfField:()=>k5e,_shadersDepthPlaneFS:()=>n5e,_shadersDepthPlaneVS:()=>o5e,_shadersDepthView:()=>V5e,_shadersDepthViewPacked:()=>yCt,_shadersDotMaterial:()=>lPe,_shadersEdgeDetection:()=>z5e,_shadersElevationBandMaterial:()=>uPe,_shadersElevationContourMaterial:()=>cPe,_shadersElevationRampMaterial:()=>hPe,_shadersEllipsoidFS:()=>oue,_shadersEllipsoidSurfaceAppearanceFS:()=>MRe,_shadersEllipsoidSurfaceAppearanceVS:()=>DRe,_shadersEllipsoidVS:()=>aue,_shadersFXAA:()=>G5e,_shadersFXAA3_11:()=>K5e,_shadersFadeMaterial:()=>dPe,_shadersFeatureIdStageFS:()=>SOe,_shadersFeatureIdStageVS:()=>POe,_shadersFilmicTonemapping:()=>U5e,_shadersGaussianBlur1D:()=>EJ,_shadersGeometryStageFS:()=>LOe,_shadersGeometryStageVS:()=>OOe,_shadersGlobeFS:()=>CFe,_shadersGlobeVS:()=>bFe,_shadersGridMaterial:()=>fPe,_shadersGroundAtmosphere:()=>Qle,_shadersHSBToRGB:()=>nMe,_shadersHSLToRGB:()=>oMe,_shadersImageBasedLightingStageFS:()=>Z3e,_shadersInstancingStageCommon:()=>hOe,_shadersInstancingStageVS:()=>dOe,_shadersIntersectBox:()=>EBe,_shadersIntersectClippingPlanes:()=>TBe,_shadersIntersectCylinder:()=>ABe,_shadersIntersectDepth:()=>wBe,_shadersIntersectEllipsoid:()=>SBe,_shadersIntersectLongitude:()=>cue,_shadersIntersection:()=>c$,_shadersIntersectionUtils:()=>bBe,_shadersLegacyInstancingStageVS:()=>fOe,_shadersLensFlare:()=>W5e,_shadersLightingStageFS:()=>FOe,_shadersMaterialStageFS:()=>kOe,_shadersMegatexture:()=>RBe,_shadersMetadataStageFS:()=>IOe,_shadersMetadataStageVS:()=>MOe,_shadersModelClippingPlanesStageFS:()=>oOe,_shadersModelClippingPolygonsStageFS:()=>lOe,_shadersModelClippingPolygonsStageVS:()=>sOe,_shadersModelColorStageFS:()=>nOe,_shadersModelFS:()=>wNe,_shadersModelFlattenStageFS:()=>ANe,_shadersModelFlattenStageVS:()=>ENe,_shadersModelSilhouetteStageFS:()=>hNe,_shadersModelSilhouetteStageVS:()=>dNe,_shadersModelSplitterStageFS:()=>pNe,_shadersModelVS:()=>bNe,_shadersModifiedReinhardTonemapping:()=>j5e,_shadersMorphTargetsStageVS:()=>zOe,_shadersNightVision:()=>q5e,_shadersNormalMapMaterial:()=>pPe,_shadersOctree:()=>DBe,_shadersPassThrough:()=>qL,_shadersPassThroughDepth:()=>TJ,_shadersPbrNeutralTonemapping:()=>H5e,_shadersPerInstanceColorAppearanceFS:()=>kDe,_shadersPerInstanceColorAppearanceVS:()=>VDe,_shadersPerInstanceFlatColorAppearanceFS:()=>Gce,_shadersPerInstanceFlatColorAppearanceVS:()=>zDe,_shadersPointCloudEyeDomeLighting:()=>D3e,_shadersPointCloudStylingStageVS:()=>GOe,_shadersPointPrimitiveCollectionFS:()=>j6,_shadersPointPrimitiveCollectionVS:()=>dDe,_shadersPolygonSignedDistanceFS:()=>OLe,_shadersPolylineArrowMaterial:()=>mPe,_shadersPolylineColorAppearanceVS:()=>ODe,_shadersPolylineCommon:()=>Qz,_shadersPolylineDashMaterial:()=>xPe,_shadersPolylineFS:()=>Wce,_shadersPolylineGlowMaterial:()=>gPe,_shadersPolylineMaterialAppearanceVS:()=>NDe,_shadersPolylineOutlineMaterial:()=>_Pe,_shadersPolylineShadowVolumeFS:()=>MDe,_shadersPolylineShadowVolumeMorphFS:()=>DDe,_shadersPolylineShadowVolumeMorphVS:()=>RDe,_shadersPolylineShadowVolumeVS:()=>LDe,_shadersPolylineVS:()=>RRe,_shadersPostProcessRain:()=>CCt,_shadersPostProcessSnow:()=>bCt,_shadersPrimitiveOutlineStageFS:()=>qOe,_shadersPrimitiveOutlineStageVS:()=>jOe,_shadersRGBToHSB:()=>DMe,_shadersRGBToHSL:()=>RMe,_shadersRGBToXYZ:()=>LMe,_shadersReinhardTonemapping:()=>Y5e,_shadersReprojectWebMercatorFS:()=>RFe,_shadersReprojectWebMercatorVS:()=>LFe,_shadersRimLightingMaterial:()=>vPe,_shadersSelectedFeatureIdStageCommon:()=>Ule,_shadersShadowVolumeAppearanceFS:()=>jce,_shadersShadowVolumeAppearanceVS:()=>BDe,_shadersShadowVolumeFS:()=>M$,_shadersSilhouette:()=>X5e,_shadersSkinningStageVS:()=>$Oe,_shadersSkyAtmosphereCommon:()=>pue,_shadersSkyAtmosphereFS:()=>JBe,_shadersSkyAtmosphereVS:()=>QBe,_shadersSkyBoxFS:()=>e4e,_shadersSkyBoxVS:()=>t4e,_shadersSlopeRampMaterial:()=>yPe,_shadersStripeMaterial:()=>CPe,_shadersSunFS:()=>i4e,_shadersSunTextureFS:()=>r4e,_shadersSunVS:()=>n4e,_shadersTexturedMaterialAppearanceFS:()=>PRe,_shadersTexturedMaterialAppearanceVS:()=>IRe,_shadersVector3DTileClampedPolylinesFS:()=>WNe,_shadersVector3DTileClampedPolylinesVS:()=>GNe,_shadersVector3DTilePolylinesVS:()=>HNe,_shadersVectorTileVS:()=>Gle,_shadersVerticalExaggerationStageVS:()=>QOe,_shadersViewportQuadFS:()=>H4e,_shadersViewportQuadVS:()=>Jde,_shadersVoxelFS:()=>yBe,_shadersVoxelUtils:()=>vBe,_shadersVoxelVS:()=>CBe,_shadersWater:()=>wPe,_shadersWaterMaskMaterial:()=>bPe,_shadersXYZToRGB:()=>rDe,_shadersacesTonemapping:()=>bIe,_shadersalphaWeight:()=>wIe,_shadersantialias:()=>TIe,_shadersapplyHSBShift:()=>EIe,_shadersapproximateSphericalCoordinates:()=>AIe,_shadersapproximateTanh:()=>SIe,_shadersbackFacing:()=>PIe,_shadersbranchFreeTernary:()=>IIe,_shaderscascadeColor:()=>MIe,_shaderscascadeDistance:()=>DIe,_shaderscascadeMatrix:()=>RIe,_shaderscascadeWeights:()=>LIe,_shadersclipPolygons:()=>OIe,_shaderscolumbusViewMorph:()=>NIe,_shaderscomputeAtmosphereColor:()=>FIe,_shaderscomputeGroundAtmosphereScattering:()=>BIe,_shaderscomputePosition:()=>kIe,_shaderscomputeScattering:()=>VIe,_shadersconvertUvToBox:()=>PBe,_shadersconvertUvToCylinder:()=>IBe,_shadersconvertUvToEllipsoid:()=>MBe,_shaderscosineAndSine:()=>zIe,_shadersdecompressTextureCoordinates:()=>UIe,_shadersdegreesPerRadian:()=>MPe,_shadersdepthClamp:()=>HIe,_shadersdepthRange:()=>DPe,_shadersdepthRangeStruct:()=>pIe,_shaderseastNorthUpToEyeCoordinates:()=>GIe,_shadersellipsoidContainsPoint:()=>WIe,_shadersellipsoidTextureCoordinates:()=>jIe,_shadersepsilon1:()=>RPe,_shadersepsilon2:()=>LPe,_shadersepsilon3:()=>OPe,_shadersepsilon4:()=>NPe,_shadersepsilon5:()=>FPe,_shadersepsilon6:()=>BPe,_shadersepsilon7:()=>kPe,_shadersequalsEpsilon:()=>qIe,_shaderseyeOffset:()=>YIe,_shaderseyeToWindowCoordinates:()=>XIe,_shadersfastApproximateAtan:()=>KIe,_shadersfog:()=>$Ie,_shadersgammaCorrect:()=>JIe,_shadersgeodeticSurfaceNormal:()=>QIe,_shadersgetDefaultMaterial:()=>ZIe,_shadersgetDynamicAtmosphereLightDirection:()=>eMe,_shadersgetLambertDiffuse:()=>tMe,_shadersgetSpecular:()=>iMe,_shadersgetWaterNoise:()=>rMe,_shadershue:()=>aMe,_shadersinfinity:()=>VPe,_shadersinverseGamma:()=>sMe,_shadersisEmpty:()=>lMe,_shadersisFull:()=>uMe,_shaderslatitudeToWebMercatorFraction:()=>cMe,_shaderslineDistance:()=>dMe,_shaderslinearToSrgb:()=>hMe,_shadersluminance:()=>fMe,_shadersmaterial:()=>mIe,_shadersmaterialInput:()=>xIe,_shadersmaximumComponent:()=>pMe,_shadersmetersPerPixel:()=>mMe,_shadersmodelMaterial:()=>gIe,_shadersmodelToWindowCoordinates:()=>xMe,_shadersmodelVertexOutput:()=>_Ie,_shadersmultiplyWithColorBalance:()=>gMe,_shadersnearFarScalar:()=>_Me,_shadersoctDecode:()=>vMe,_shadersoneOverPi:()=>zPe,_shadersoneOverTwoPi:()=>UPe,_shaderspackDepth:()=>yMe,_shaderspassCesium3DTile:()=>HPe,_shaderspassCesium3DTileClassification:()=>GPe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>WPe,_shaderspassClassification:()=>jPe,_shaderspassCompute:()=>qPe,_shaderspassEnvironment:()=>YPe,_shaderspassGlobe:()=>XPe,_shaderspassOpaque:()=>KPe,_shaderspassOverlay:()=>$Pe,_shaderspassTerrainClassification:()=>JPe,_shaderspassTranslucent:()=>QPe,_shaderspassVoxels:()=>ZPe,_shaderspbrLighting:()=>CMe,_shaderspbrNeutralTonemapping:()=>bMe,_shadersphong:()=>wMe,_shaderspi:()=>eIe,_shaderspiOverFour:()=>tIe,_shaderspiOverSix:()=>iIe,_shaderspiOverThree:()=>rIe,_shaderspiOverTwo:()=>nIe,_shadersplaneDistance:()=>TMe,_shaderspointAlongRay:()=>EMe,_shadersradiansPerDegree:()=>oIe,_shadersray:()=>vIe,_shadersrayEllipsoidIntersectionInterval:()=>AMe,_shadersraySegment:()=>yIe,_shadersraySphereIntersectionInterval:()=>SMe,_shadersreadDepth:()=>PMe,_shadersreadNonPerspective:()=>IMe,_shadersreverseLogDepth:()=>MMe,_shadersround:()=>OMe,_shaderssaturation:()=>NMe,_shaderssceneMode2D:()=>aIe,_shaderssceneMode3D:()=>sIe,_shaderssceneModeColumbusView:()=>lIe,_shaderssceneModeMorphing:()=>uIe,_shadersshadowDepthCompare:()=>FMe,_shadersshadowParameters:()=>CIe,_shadersshadowVisibility:()=>BMe,_shaderssignNotZero:()=>kMe,_shaderssolarRadius:()=>cIe,_shaderssphericalHarmonics:()=>VMe,_shaderssrgbToLinear:()=>zMe,_shaderstangentToEyeSpaceMatrix:()=>UMe,_shaderstextureCube:()=>HMe,_shadersthreePiOver2:()=>hIe,_shaderstransformPlane:()=>GMe,_shaderstranslateRelativeToEye:()=>WMe,_shaderstranslucentPhong:()=>jMe,_shaderstranspose:()=>qMe,_shaderstwoPi:()=>dIe,_shadersunpackClippingExtents:()=>YMe,_shadersunpackDepth:()=>XMe,_shadersunpackFloat:()=>KMe,_shadersunpackUint:()=>$Me,_shadersvalueTransform:()=>JMe,_shadersvertexLogDepth:()=>QMe,_shaderswebMercatorMaxLatitude:()=>fIe,_shaderswindowToEyeCoordinates:()=>ZMe,_shaderswriteDepthClamp:()=>eDe,_shaderswriteLogDepth:()=>tDe,_shaderswriteNonPerspective:()=>iDe,addBuffer:()=>n3e,addDefaults:()=>$Le,addExtensionsRequired:()=>t3e,addExtensionsUsed:()=>gU,addPipelineExtras:()=>eZ,addToArray:()=>pw,appendForwardSlash:()=>CSe,arrayRemoveDuplicates:()=>M_,barycentricCoordinates:()=>Sce,binarySearch:()=>Dg,buildModuleUrl:()=>va,buildVoxelDrawCommands:()=>NBe,clipper2lib:()=>nF,clone:()=>so,combine:()=>Fa,computeFlyToLocationForRectangle:()=>Ode,createBillboardPointCallback:()=>Tde,createBlurStage:()=>Bue,createCommand:()=>bu,createDefaultImageryProviderViewModels:()=>aVe,createDefaultTerrainProviderViewModels:()=>sVe,createEdgeStage:()=>k7,createElevationBandMaterial:()=>E2t,createFragmentFromTemplate:()=>Tke,createGooglePhotorealistic3DTileset:()=>A2t,createGuid:()=>Hu,createMaterialPropertyDescriptor:()=>Av,createOsmBuildingsAsync:()=>S2t,createPropertyDescriptor:()=>Fi,createRawPropertyDescriptor:()=>Ib,createTangentSpaceDebugPrimitive:()=>P2t,createTaskProcessorWorker:()=>DCt,createUniform:()=>SPe,createUniformArray:()=>IPe,createWorldBathymetryAsync:()=>K4e,createWorldImageryAsync:()=>LG,createWorldTerrainAsync:()=>zfe,decodeGoogleEarthEnterpriseData:()=>J4e,decodeVectorPolylinePositions:()=>qNe,defaultValue:()=>Fyt,defer:()=>Z0,defined:()=>N,demodernizeShader:()=>nDe,deprecationWarning:()=>xP,destroyObject:()=>Ir,exportKml:()=>hyt,fflate_module:()=>Fke,findAccessorMinMax:()=>tZ,findContentMetadata:()=>Sde,findGroupMetadata:()=>Pde,findTileMetadata:()=>ZNe,forEachTextureInMaterial:()=>$he,formatError:()=>a9,fragment:()=>TCt,freezeRenderState:()=>aat,getAbsoluteUri:()=>zG,getAccessorByteStride:()=>H5,getBaseUri:()=>wSe,getBinaryAccessor:()=>AL,getClipAndStyleCode:()=>a4e,getClippingFunction:()=>SZ,getComponentReader:()=>jQ,getElement:()=>Pd,getExtensionFromUri:()=>I5,getFilenameFromUri:()=>bQ,getImageFromTypedArray:()=>TDe,getImagePixels:()=>XV,getJsonFromTypedArray:()=>Yy,getMagic:()=>BW,getMetadataClassProperty:()=>WBe,getMetadataProperty:()=>qBe,getStringFromTypedArray:()=>W5,getTimestamp:()=>Oh,hasExtension:()=>kd,heightReferenceOnEntityPropertyChanged:()=>kQ,isBitSet:()=>Ew,isBlobUri:()=>gce,isCrossOriginUrl:()=>KV,isDataUri:()=>iQ,isLeapYear:()=>JV,knockout:()=>vr,knockout_3_5_1:()=>B3,knockout_es5:()=>Zke,libgif:()=>WRe,loadAndExecuteScript:()=>_ce,loadCRN:()=>Kyt,loadCubeMap:()=>ZBe,loadDDS:()=>bce,loadImageFromTypedArray:()=>FW,loadKTX2:()=>M5,loadView:()=>Qfe,mergeSort:()=>l7,moveTechniqueRenderStates:()=>e3e,moveTechniquesToExtension:()=>i3e,numberOfComponentsForType:()=>mU,objFS:()=>Uke,objectToQuery:()=>vce,oneTimeWarning:()=>ya,packer:()=>PDe,parseBatchTable:()=>zW,parseDefines:()=>Wke,parseFeatureMetadataLegacy:()=>YLe,parseGlb:()=>QLe,parseResponseHeaders:()=>TSe,parseStructuralMetadata:()=>qLe,pickModel:()=>DNe,pointInsideTriangle:()=>t2t,preprocess3DTileContent:()=>xZ,processVoxelProperties:()=>OBe,queryToObject:()=>lM,rasterizeHTML_allinone:()=>_4e,readAccessorPacked:()=>o3e,removeExtension:()=>fJ,removeExtensionsRequired:()=>JLe,removeExtensionsUsed:()=>Khe,removePipelineExtras:()=>ZLe,removeUnusedElements:()=>r3e,remove_primitive:()=>OJ,resizeImageToNextPowerOfTwo:()=>P$,sampleTerrain:()=>AZ,sampleTerrainMostDetailed:()=>cD,scaleToGeodeticSurface:()=>wce,srgbToLinear:()=>vfe,subdivideArray:()=>FDe,subscribeAndEvaluate:()=>Nb,svgCompassGyro:()=>Mke,svgCompassOuterRing:()=>Ike,svgCompassRotationMarker:()=>Dke,svgReset:()=>Ake,turf:()=>qo,updateAccessorComponentTypes:()=>a3e,updateVersion:()=>u3e,usesExtension:()=>Km,vertex:()=>ECt,viewerCesium3DTilesInspectorMixin:()=>ibt,viewerCesiumInspectorMixin:()=>rbt,viewerCesiumNavigationMixin:()=>Z2t,viewerDragDropMixin:()=>nbt,viewerPerformanceWatchdogMixin:()=>obt,viewerVoxelInspectorMixin:()=>abt,webGLConstantToGlslType:()=>d2t,wrapFunction:()=>nke,writeTextToCanvas:()=>Kz});function Cee(o=!0){this.async=o}Cee.prototype.getXmlHttpRequest=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("MsXml2.XmlHttp")};Cee.prototype.includeJsText=function(o,f){if(o!=null){var m=document.createElement("script");m.type="text/javascript",m.text=f,o.appendChild(m)}};Cee.prototype.includeJsSrc=function(o,f,m){if(o!=null){var x=document.createElement("script");x.type="text/javascript",x.src=f,m&&typeof m=="function"&&(x.onload=m),o.appendChild(x)}};Cee.prototype.addJs=function(o,f,m){var x=this.getXmlHttpRequest(),v=this;x.onreadystatechange=function(){x.readyState===4&&(x.status===200||x.status===304?v.includeJsSrc(o,f,m):console.log("XML request error: "+x.statusText+" ("+x.status+")"))},x.open("GET",f,v.async),x.send(null),x.status===404?console.log(f+" is not found"):v.includeJsText(o,x.responseText)};var jx=Cee;var urr={testModel:"Workers/Model/xiaoche.glb",modelAxis:"Workers/Model/axis.gltf",flyModel:"Workers/Model/fly.glb",divpoint:"Workers/image/divpoint.png",divpoint1:"Workers/image/divpoint1.png",richtextpoint:"Workers/image/richtextpoint1.png",mark:"Workers/image/mark.png",mark1:"Workers/image/mark1.png",TrailLine:"Workers/image/TrailLine.png",road:"Workers/image/road.jpg",colors3:"Workers/image/colors3.png",loading:"Workers/image/loading.gif",smog:"Workers/image/smog.png",penquan:"Workers/image/penquan.png",fire:"Workers/image/fire.png",fire2:"Workers/image/fire2.png",bottomplane:"Workers/image/bottomplane.jpg",MTY0001:"Workers/image/MTY0001.jpg",MTY0002:"Workers/image/MTY0002.jpg",wall:"Workers/image/ggy.jpg",rotate:"Workers/image/rotate.png",move:"Workers/image/move.png",draw:"Workers/image/cursor/draw.cur",water:"Workers/image/waterNormals.jpg",movingRiver:"Workers/image/movingRiver.png",effectCircle:"Workers/image/circle.png",scanCircle:"Workers/image/scan.png",particles:"Workers/image/particles.png",trafficLight:{l_go:"Workers/image/trafficLights/l-go.png",l_wait:"Workers/image/trafficLights/l-wait.png",l_stop:"Workers/image/trafficLights/l-stop.png",l_null:"Workers/image/trafficLights/l-null.png",go:"Workers/image/trafficLights/go.png",wait:"Workers/image/trafficLights/wait.png",stop:"Workers/image/trafficLights/stop.png",null:"Workers/image/trafficLights/null.png",r_go:"Workers/image/trafficLights/r-go.png",r_wait:"Workers/image/trafficLights/r-wait.png",r_stop:"Workers/image/trafficLights/r-stop.png",r_null:"Workers/image/trafficLights/r-null.png",bg:"Workers/image/trafficLights/bg.png"}},dn=Object.freeze(urr);function crr(o,f){return o??f}var ym=crr;var sbt=`// author: \u5F20\u4E39\u948A
`);m.value=m.value.slice(0,x)+E+m.value.slice(v),m.selectionStart=x!==v?x:y,m.selectionEnd=y}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileShader();return!0};ZE.prototype.isDestroyed=function(){return!1};ZE.prototype.destroy=function(){let o=this;return this._definedProperties.forEach(function(f){vr.getObservable(o,f).dispose()}),Ir(this)};var UVe=ZE;function S0e(o,f){o=Pd(o);let m=document.createElement("div"),x=new UVe(f);this._viewModel=x,this._container=o,this._element=m;let v=document.createElement("div");v.textContent="Voxel Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleInspector"),m.appendChild(v),m.className="cesium-cesiumInspector cesium-VoxelInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let y=document.createElement("div");y.className="cesium-cesiumInspector-dropDown",m.appendChild(y);let{createSection:C,createCheckbox:w,createRangeInput:T,createButton:E}=sM,A=C(y,"Display","displayVisible","toggleDisplay"),S=C(y,"Transform","transformVisible","toggleTransform"),M=C(y,"Clipping","clippingVisible","toggleClipping"),I=C(y,"Shader","shaderVisible","toggleShader");A.appendChild(w("Depth Test","depthTest")),A.appendChild(w("Show","show")),A.appendChild(w("Disable Update","disableUpdate")),A.appendChild(w("Debug Draw","debugDraw")),A.appendChild(w("Jitter","jitter")),A.appendChild(w("Nearest Sampling","nearestSampling")),A.appendChild(T("Screen Space Error","screenSpaceError",0,128)),A.appendChild(T("Step Size","stepSize",0,2));let P=10,D=10,R=Ce.PI;S.appendChild(T("Translation X","translationX",-P,+P)),S.appendChild(T("Translation Y","translationY",-P,+P)),S.appendChild(T("Translation Z","translationZ",-P,+P)),S.appendChild(T("Scale X","scaleX",0,+D)),S.appendChild(T("Scale Y","scaleY",0,+D)),S.appendChild(T("Scale Z","scaleZ",0,+D)),S.appendChild(T("Heading","angleX",-R,+R)),S.appendChild(T("Pitch","angleY",-R,+R)),S.appendChild(T("Roll","angleZ",-R,+R)),iTe("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ","shapeIsBox",M),iTe("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight","shapeIsEllipsoid",M),iTe("Max Radius","Min Radius","Max Angle","Min Angle","Max Height","Min Height","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxAngle","clippingCylinderMinAngle","clippingCylinderMaxHeight","clippingCylinderMinHeight","shapeIsCylinder",M);let L=document.createElement("div");I.appendChild(L);let O=document.createElement("textarea");O.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),L.className="cesium-cesiumInspector-styleEditor",L.appendChild(O);let F=E("Compile (Ctrl+Enter)","compileShader");L.appendChild(F);let B=document.createElement("label");B.style.display="block",B.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),L.appendChild(B),vr.applyBindings(x,m)}Object.defineProperties(S0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});S0e.prototype.isDestroyed=function(){return!1};S0e.prototype.destroy=function(){return vr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Ir(this)};function iTe(o,f,m,x,v,y,C,w,T,E,A,S,M,I){let P=sM.createRangeInputWithDynamicMinMax,D=I.appendChild(document.createElement("div"));D.setAttribute("data-bind",`if: ${M}`),D.appendChild(P(o,C)),D.appendChild(P(f,w)),D.appendChild(P(m,T)),D.appendChild(P(x,E)),D.appendChild(P(v,A)),D.appendChild(P(y,S))}var HVe=S0e;function lrr(o){let f=document.createElement("div");f.className="cesium-viewer-voxelInspectorContainer",o.container.appendChild(f);let m=new HVe(f,o.scene);Object.defineProperties(o,{voxelInspector:{get:function(){return m}}})}var abt=lrr;globalThis.CESIUM_VERSION="1.129";var P0e="1.129";var Ui={};fne(Ui,{AlphaMode:()=>m9,AlphaPipelineStage:()=>vOe,AnchorPointDirect:()=>y3e,AnchorPointIndirect:()=>C3e,Animation:()=>iVe,AnimationViewModel:()=>rVe,Appearance:()=>of,ApproximateTerrainHeights:()=>Sd,ArcGISTiledElevationTerrainProvider:()=>Bfe,ArcGisBaseMapType:()=>kF,ArcGisMapServerImageryProvider:()=>bw,ArcGisMapService:()=>IS,ArcType:()=>xs,ArticulationStageType:()=>rw,AssociativeArray:()=>oa,Atmosphere:()=>Hhe,AtmospherePipelineStage:()=>Q3e,AttributeCompression:()=>nc,AttributeType:()=>rl,AutoExposure:()=>$5e,AutomaticUniforms:()=>sG,Axis:()=>v0,AxisAlignedBoundingBox:()=>gQ,B3dmLoader:()=>L3e,B3dmParser:()=>R3e,Base64Encoder:()=>Wse,BaseLayerPicker:()=>oVe,BaseLayerPickerViewModel:()=>nVe,BatchTable:()=>uW,BatchTableHierarchy:()=>ade,BatchTexture:()=>$T,BatchTexturePipelineStage:()=>yOe,Billboard:()=>nf,BillboardCollection:()=>ZS,BillboardGraphics:()=>u3,BillboardLoadState:()=>Dx,BillboardTexture:()=>tW,BillboardVisualizer:()=>iLe,BingMapsGeocoderService:()=>Cyt,BingMapsImageryProvider:()=>TU,BingMapsStyle:()=>Fde,BlendEquation:()=>Dy,BlendFunction:()=>Ed,BlendOption:()=>_0,BlendTexture:()=>Q9,BlendingState:()=>Ou,BoundingRectangle:()=>Br,BoundingSphere:()=>Li,BoundingSphereState:()=>ia,BoundingVolumeSemantics:()=>wde,BoxEmitter:()=>Yfe,BoxGeometry:()=>Sw,BoxGeometryUpdater:()=>rLe,BoxGraphics:()=>qce,BoxOutlineGeometry:()=>jE,BrdfLutGenerator:()=>i5e,Buffer:()=>Do,BufferLoader:()=>QQ,BufferUsage:()=>xn,CPUStylingPipelineStage:()=>TOe,CallbackPositionProperty:()=>fFe,CallbackProperty:()=>Yr,Camera:()=>Ks,CameraEventAggregator:()=>sBe,CameraEventType:()=>vh,CameraFlightPath:()=>BRe,Cartesian2:()=>at,Cartesian3:()=>V,Cartesian4:()=>Xt,Cartographic:()=>kt,CartographicGeocoderService:()=>byt,CatmullRomSpline:()=>wyt,Cesium3DContentGroup:()=>_de,Cesium3DTile:()=>Yb,Cesium3DTileBatchTable:()=>pZ,Cesium3DTileColorBlendMode:()=>xM,Cesium3DTileContent:()=>f2t,Cesium3DTileContentFactory:()=>Ade,Cesium3DTileContentState:()=>Zd,Cesium3DTileContentType:()=>Ly,Cesium3DTileFeature:()=>$s,Cesium3DTileFeatureTable:()=>WW,Cesium3DTileOptimizationHint:()=>gF,Cesium3DTileOptimizations:()=>Mde,Cesium3DTilePass:()=>Lh,Cesium3DTilePassState:()=>Gx,Cesium3DTilePointFeature:()=>EV,Cesium3DTileRefine:()=>Vx,Cesium3DTileStyle:()=>zE,Cesium3DTileStyleEngine:()=>sFe,Cesium3DTilesInspector:()=>uVe,Cesium3DTilesInspectorViewModel:()=>lVe,Cesium3DTilesVoxelProvider:()=>p2t,Cesium3DTileset:()=>t0,Cesium3DTilesetBaseTraversal:()=>uFe,Cesium3DTilesetCache:()=>oFe,Cesium3DTilesetGraphics:()=>Jce,Cesium3DTilesetHeatmap:()=>aFe,Cesium3DTilesetMetadata:()=>Ide,Cesium3DTilesetMostDetailedTraversal:()=>lFe,Cesium3DTilesetSkipTraversal:()=>cFe,Cesium3DTilesetStatistics:()=>BF,Cesium3DTilesetTraversal:()=>hC,Cesium3DTilesetVisualizer:()=>dFe,CesiumInspector:()=>hVe,CesiumInspectorViewModel:()=>cVe,CesiumNavigation:()=>Oke,CesiumRenderPass:()=>Gke,CesiumTerrainProvider:()=>T7,CesiumWidget:()=>_7,Check:()=>Za,CheckerboardMaterialProperty:()=>wue,CircleEmitter:()=>lke,CircleGeometry:()=>Myt,CircleOutlineGeometry:()=>Dyt,CircleWaveMaterialProperty:()=>eW,ClassificationModelDrawCommand:()=>yNe,ClassificationPipelineStage:()=>COe,ClassificationPrimitive:()=>cW,ClassificationType:()=>Uc,ClearCommand:()=>gc,ClippingPlane:()=>Op,ClippingPlaneCollection:()=>Og,ClippingPolygon:()=>Jb,ClippingPolygonCollection:()=>Mv,Clock:()=>_W,ClockRange:()=>Pg,ClockStep:()=>Ef,ClockViewModel:()=>tVe,CloudCollection:()=>C2t,CloudType:()=>Oue,CollectionSource:()=>zst,Color:()=>ze,ColorBlendMode:()=>IM,ColorGeometryInstanceAttribute:()=>Oo,ColorMaterialProperty:()=>as,Command:()=>NCt,CommandLoader:()=>Nke,ComponentDatatype:()=>ti,Composite3DTileContent:()=>LNe,CompositeEntityCollection:()=>Qvt,CompositeMaterialProperty:()=>Eue,CompositePositionProperty:()=>dw,CompositeProperty:()=>oE,CompressedTextureBuffer:()=>BE,ComputeCommand:()=>p3,ComputeEngine:()=>YFe,ComputeRegionBox:()=>j2t,ConditionsExpression:()=>SDe,ConeEmitter:()=>P7,ConicArcSensor:()=>Wue,ConicArcSensorCollection:()=>PCt,ConicArcSensorGeometry:()=>que,ConicArcSensorGraphics:()=>Gue,ConicArcSensorOutlineGeometry:()=>Yue,ConstantPositionProperty:()=>hM,ConstantProperty:()=>Ch,ConstantSpline:()=>V3e,ConstructionWorker:()=>Hst,ContentMetadata:()=>KNe,Context:()=>e5e,ContextLimits:()=>So,CoplanarPolygonGeometry:()=>dU,CoplanarPolygonGeometryLibrary:()=>wG,CoplanarPolygonOutlineGeometry:()=>oL,CornerType:()=>Fd,CorrelationGroup:()=>b3e,CorridorGeometry:()=>VQ,CorridorGeometryLibrary:()=>Dh,CorridorGeometryUpdater:()=>aLe,CorridorGraphics:()=>Yce,CorridorOutlineGeometry:()=>oLe,Credit:()=>rs,CreditDisplay:()=>r5e,CubeMap:()=>S_,CubeMapFace:()=>rPe,CubicRealPolynomial:()=>oQ,CullFace:()=>Yh,CullingVolume:()=>Zm,CumulusCloud:()=>PP,CustomDataSource:()=>ehe,CustomHeightmapTerrainProvider:()=>Ryt,CustomMercatorProjection:()=>rW,CustomShader:()=>kw,CustomShaderManagerEx:()=>Uce,CustomShaderMode:()=>fQ,CustomShaderPipelineStage:()=>DOe,CustomShaderTranslucencyMode:()=>KF,CustomTilingScheme:()=>wlt,CylinderGeometry:()=>zQ,CylinderGeometryLibrary:()=>Fhe,CylinderGeometryUpdater:()=>sLe,CylinderGraphics:()=>Xce,CylinderOutlineGeometry:()=>UQ,CzmlDataSource:()=>eee,DataSource:()=>Tv,DataSourceClock:()=>sz,DataSourceCollection:()=>eLe,DataSourceDisplay:()=>TZ,DebugAppearance:()=>S2t,DebugCameraPrimitive:()=>Ip,DebugInspector:()=>gBe,DebugModelMatrixPrimitive:()=>dke,DefaultProxy:()=>Oyt,DepthFunction:()=>Ev,DepthPlane:()=>a5e,DequantizationPipelineStage:()=>ROe,DerivedCommand:()=>bv,DeveloperError:()=>At,DeviceOrientationCameraController:()=>s5e,DirectionalLight:()=>I7,DiscardEmptyTileImagePolicy:()=>Bde,DiscardMissingTileImagePolicy:()=>AFe,DistanceDisplayCondition:()=>Go,DistanceDisplayConditionGeometryInstanceAttribute:()=>Nh,DistanceLegendViewModel:()=>Eke,DoubleEndedPriorityQueue:()=>pfe,DoublyLinkedList:()=>vZ,DracoLoader:()=>ZQ,DrawCommand:()=>Vn,DynamicAtmosphereLightingType:()=>WQ,DynamicEnvironmentMapManager:()=>p9,DynamicGeometryBatch:()=>Lhe,DynamicGeometryUpdater:()=>ld,ECharts:()=>mQ,EarthOrientationParameters:()=>OSe,EarthOrientationParametersSample:()=>nQ,EasingFunction:()=>jy,EllipseGeometry:()=>EE,EllipseGeometryLibrary:()=>Lw,EllipseGeometryUpdater:()=>lLe,EllipseGraphics:()=>Kce,EllipseOutlineGeometry:()=>SM,Ellipsoid:()=>Ei,EllipsoidGeodesic:()=>Vg,EllipsoidGeometry:()=>zx,EllipsoidGeometryUpdater:()=>dLe,EllipsoidGraphics:()=>fW,EllipsoidOutlineGeometry:()=>Wb,EllipsoidPrimitive:()=>jFe,EllipsoidRhumbLine:()=>cE,EllipsoidSurfaceAppearance:()=>aU,EllipsoidTangentPlane:()=>mC,EllipsoidTerrainProvider:()=>DE,EllipsoidalOccluder:()=>qz,Empty3DTileContent:()=>_J,EncodedCartesian3:()=>Ic,Entity:()=>tf,EntityCluster:()=>R5,EntityCollection:()=>GE,EntityView:()=>vFe,Event:()=>Or,EventHelper:()=>xC,ExpandBySmartEarth:()=>Tb,ExpandByTerra:()=>Tlt,Expression:()=>$F,ExpressionNodeType:()=>yo,ExternalParameter:()=>wv,ExtrapolationType:()=>nM,FBXLoader:()=>Vke,FBXPrimitive:()=>e0e,FBXTreeParser:()=>kke,FeatureDataProvider:()=>ghe,FeatureDetection:()=>ma,FeatureIdPipelineStage:()=>dZ,FeatureJsonData:()=>CW,FisheyeProjectionMap:()=>NQ,FisheyeProjectionMapShader:()=>qK,FlattenVS:()=>wCt,FlowEcharts:()=>Jfe,Fog:()=>u5e,ForEach:()=>Qr,FrameRateMonitor:()=>fke,FrameState:()=>c5e,Framebuffer:()=>Mp,FramebufferManager:()=>ih,Frozen:()=>pi,FrustumCommands:()=>ife,FrustumGeometry:()=>bW,FrustumOutlineGeometry:()=>OQ,Fullscreen:()=>Lx,FullscreenButton:()=>BVe,FullscreenButtonViewModel:()=>FVe,GWBaiduImageryProvider:()=>TW,GeoJsonDataSource:()=>iz,GeoJsonLoader:()=>F3e,GeocodeType:()=>iee,Geocoder:()=>mVe,GeocoderService:()=>Hfe,GeocoderViewModel:()=>pVe,GeographicProjection:()=>e0,GeographicTilingScheme:()=>Xh,Geometry:()=>Ma,Geometry3DTileContent:()=>ONe,GeometryAttribute:()=>Zr,GeometryAttributes:()=>ph,GeometryFactory:()=>kyt,GeometryInstance:()=>eo,GeometryInstanceAttribute:()=>hw,GeometryOffsetAttribute:()=>Ql,GeometryPipeline:()=>Pc,GeometryPipelineStage:()=>NOe,GeometryType:()=>sF,GeometryUpdater:()=>zd,GeometryUpdaterSet:()=>GQ,GeometryVisualizer:()=>RLe,GetFeatureInfoFormat:()=>a$,GifImageProperty:()=>pdt,Globe:()=>zFe,GlobeDepth:()=>x5e,GlobeSurfaceShaderSet:()=>TFe,GlobeSurfaceTile:()=>jL,GlobeSurfaceTileProvider:()=>BFe,GlobeTranslucency:()=>RZ,GlobeTranslucencyFramebuffer:()=>g5e,GlobeTranslucencyState:()=>d5e,GltfBufferViewLoader:()=>jhe,GltfDracoLoader:()=>qhe,GltfGpmLoader:()=>T3e,GltfGpmLocal:()=>ode,GltfImageLoader:()=>Yhe,GltfIndexBufferLoader:()=>Xhe,GltfInstanceLoader:()=>sde,GltfJsonLoader:()=>Jhe,GltfLoader:()=>_U,GltfLoaderUtil:()=>HL,GltfMeshPrimitiveGpmLoader:()=>P3e,GltfStructuralMetadataLoader:()=>_3e,GltfTextureLoader:()=>Qhe,GltfVertexBufferLoader:()=>Zhe,GoogleEarthEnterpriseImageryProvider:()=>P2t,GoogleEarthEnterpriseMapsProvider:()=>IFe,GoogleEarthEnterpriseMetadata:()=>A7,GoogleEarthEnterpriseTerrainData:()=>Lue,GoogleEarthEnterpriseTerrainProvider:()=>Wyt,GoogleEarthEnterpriseTileInformation:()=>q4e,GoogleGeocoderService:()=>qyt,GoogleMaps:()=>f$,GpxDataSource:()=>F4e,Graticules:()=>She,GregorianDate:()=>Z9,GridImageryProvider:()=>I2t,GridMaterialProperty:()=>Aue,GroundGeometryUpdater:()=>Ru,GroundPolylineGeometry:()=>sW,GroundPolylinePrimitive:()=>F5,GroundPrimitive:()=>HE,GroupMetadata:()=>Kle,GwBufferAnalysis:()=>Phe,HeadingPitchRange:()=>zw,HeadingPitchRoll:()=>ws,Heap:()=>ASe,HeightMap:()=>_Ct,HeightReference:()=>qn,HeightmapEncoding:()=>f5,HeightmapTerrainData:()=>CP,HeightmapTessellator:()=>Nde,HermitePolynomialApproximation:()=>b4e,HermiteSpline:()=>mJ,HilbertOrder:()=>Wle,HomeButton:()=>gVe,HomeButtonViewModel:()=>xVe,HorizontalOrigin:()=>Mc,HugeAdapter:()=>fZ,I3SBuildingSceneLayerExplorer:()=>$Ct,I3SBuildingSceneLayerExplorerViewModel:()=>_Ve,I3SDataProvider:()=>gD,I3SDecoder:()=>u4e,I3SFeature:()=>h4e,I3SField:()=>d4e,I3SGeometry:()=>gue,I3SLayer:()=>Cfe,I3SNode:()=>_ue,I3SStatistics:()=>p4e,I3SSublayer:()=>m4e,I3SSymbology:()=>f4e,I3dmLoader:()=>k3e,I3dmParser:()=>B3e,ITwinData:()=>M2t,ITwinPlatform:()=>w_,Iau2000Orientation:()=>HFe,Iau2006XysData:()=>FSe,Iau2006XysSample:()=>Ace,IauOrientationAxes:()=>GFe,IauOrientationParameters:()=>UFe,ImageBasedLighting:()=>lZ,ImageBasedLightingPipelineStage:()=>eOe,ImageCombine:()=>kce,ImageMaterialProperty:()=>w0,Imagery:()=>Hde,ImageryLayer:()=>Pp,ImageryLayerCollection:()=>kFe,ImageryLayerFeatureInfo:()=>$5,ImageryProvider:()=>JM,ImageryState:()=>$l,Implicit3DTileContent:()=>Xle,ImplicitAvailabilityBitstream:()=>qle,ImplicitMetadataView:()=>yde,ImplicitSubdivisionScheme:()=>P_,ImplicitSubtree:()=>Cde,ImplicitSubtreeCache:()=>ake,ImplicitSubtreeMetadata:()=>kNe,ImplicitTileCoordinates:()=>Lde,ImplicitTileset:()=>Rde,IndexDatatype:()=>Jn,InfoBox:()=>CVe,InfoBoxViewModel:()=>yVe,InspectorShared:()=>sM,InstanceAttributeSemantic:()=>Fx,InstancingPipelineStage:()=>pOe,InterpolationAlgorithm:()=>Yyt,InterpolationType:()=>TF,Intersect:()=>ua,IntersectionTests:()=>Wc,Intersections2D:()=>w7,Interval:()=>NS,InvertClassification:()=>efe,Ion:()=>NF,IonGeocodeProviderType:()=>jV,IonGeocoderService:()=>jfe,IonImageryProvider:()=>VF,IonResource:()=>FF,IonWorldImageryStyle:()=>RG,Iso8601:()=>kn,JobScheduler:()=>f5e,JobType:()=>My,JsonMetadataTable:()=>YQ,JulianDate:()=>si,KTX2Transcoder:()=>ISe,KeyboardEventModifier:()=>rC,KeyframeNode:()=>Jd,KmlCamera:()=>aRe,KmlDataSource:()=>DQ,KmlLookAt:()=>sRe,KmlTour:()=>lRe,KmlTourFlyTo:()=>uRe,KmlTourWait:()=>hRe,Label:()=>w$,LabelCollection:()=>o3,LabelGraphics:()=>pW,LabelStyle:()=>$f,LabelVisualizer:()=>LLe,LagrangePolynomialApproximation:()=>T4e,LeapSecond:()=>jh,Light:()=>R2t,LightingModel:()=>nC,LightingPipelineStage:()=>BOe,LinearApproximation:()=>dhe,LinearSampler:()=>QM,LinearSpline:()=>hZ,MTLLoader:()=>zke,ManagedArray:()=>MM,MapMode2D:()=>EM,MapProjection:()=>$yt,MapboxImageryProvider:()=>EU,MapboxStyleImageryProvider:()=>O2t,Material:()=>zo,MaterialAppearance:()=>y0,MaterialPipelineStage:()=>VOe,MaterialProperty:()=>E_,Math:()=>Ce,Matrix2:()=>b0,Matrix3:()=>Yt,Matrix4:()=>Ee,Megatexture:()=>mfe,MeshParser:()=>Bke,MeshPhongMaterial:()=>x$,MeshPrimitiveGpmLocal:()=>S3e,MetadataClass:()=>kW,MetadataClassProperty:()=>NW,MetadataComponentType:()=>da,MetadataEntity:()=>Wu,MetadataEnum:()=>m3e,MetadataEnumValue:()=>p3e,MetadataPicking:()=>p5e,MetadataPickingPipelineStage:()=>YI,MetadataPipelineStage:()=>ML,MetadataSchema:()=>q5,MetadataSchemaLoader:()=>ede,MetadataSemantic:()=>bde,MetadataTable:()=>xU,MetadataTableProperty:()=>jLe,MetadataType:()=>Mo,MipmapHint:()=>Gz,Model:()=>Dv,Model3DTileContent:()=>$I,ModelAlphaOptions:()=>oNe,ModelAnimation:()=>j3e,ModelAnimationChannel:()=>G3e,ModelAnimationCollection:()=>q3e,ModelAnimationLoop:()=>BS,ModelAnimationState:()=>oF,ModelArticulation:()=>rOe,ModelArticulationStage:()=>iOe,ModelClippingPlanesPipelineStage:()=>aOe,ModelClippingPolygonsPipelineStage:()=>uOe,ModelColorPipelineStage:()=>xJ,ModelComponents:()=>Jl,ModelDrawCommand:()=>CNe,ModelDrawCommands:()=>TNe,ModelFeature:()=>Y3e,ModelFeatureTable:()=>X3e,ModelFlattenPipelineStage:()=>SNe,ModelGraphics:()=>_Q,ModelLightingOptions:()=>gNe,ModelMatrixUpdateStage:()=>xOe,ModelNode:()=>cOe,ModelRenderResources:()=>cNe,ModelRuntimeNode:()=>_Oe,ModelRuntimePrimitive:()=>iNe,ModelSceneGraph:()=>PNe,ModelSilhouettePipelineStage:()=>fNe,ModelSkin:()=>nNe,ModelSplitterPipelineStage:()=>mNe,ModelStatistics:()=>INe,ModelType:()=>Np,ModelUtility:()=>Ll,ModelVisualizer:()=>RNe,Moon:()=>qFe,MorphTargetsPipelineStage:()=>UOe,MorphWeightSpline:()=>Jyt,MortonOrder:()=>_9,MultiResourceImageryProvider:()=>EW,MultiResourceTerrainProvider:()=>Ihe,Multiple3DTileContent:()=>eFe,MultisampleFramebuffer:()=>M3e,NavigationControl:()=>F7,NavigationHelpButton:()=>wVe,NavigationHelpButtonViewModel:()=>bVe,NavigationUtils:()=>B7,NavigationViewModel:()=>p$,NearFarScalar:()=>fa,NeverTileDiscardPolicy:()=>N2t,NodeRenderResources:()=>xNe,NodeStatisticsPipelineStage:()=>gOe,NodeTransformationProperty:()=>$ce,OBJLoader:()=>Hke,OBJPrimitive:()=>t0e,OIT:()=>C5e,Occluder:()=>Ahe,OffsetGeometryInstanceAttribute:()=>xm,OlMVTImageryProvider:()=>AW,OpenCageGeocoderService:()=>Qyt,OpenStreetMapImageryProvider:()=>OS,OrderedGroundPrimitiveCollection:()=>tLe,OrientedBoundingBox:()=>Ju,OrthographicFrustum:()=>gs,OrthographicOffCenterFrustum:()=>ix,Packable:()=>Zyt,PackableForInterpolation:()=>e2t,Particle:()=>Kfe,ParticleBurst:()=>D7,ParticleEmitter:()=>k2t,ParticleSystem:()=>QE,Pass:()=>Sr,PassState:()=>kp,PathGraphics:()=>vQ,PathVisualizer:()=>pFe,PeliasGeocoderService:()=>K4e,PerInstanceColorAppearance:()=>Da,PerformanceDisplay:()=>BZ,PerformanceWatchdog:()=>AVe,PerformanceWatchdogViewModel:()=>EVe,PerspectiveFrustum:()=>jc,PerspectiveOffCenterFrustum:()=>KM,PerspectiveProjectionMap:()=>FQ,PerspectiveProjectionMapShader:()=>YK,PerspectiveProjectionMapWithDepth:()=>BQ,PerspectiveProjectionMapWithDepthShader:()=>wF,PickDepth:()=>m5e,PickDepthFramebuffer:()=>b5e,PickFramebuffer:()=>w5e,PickGlobeSlope:()=>Ovt,PickedMetadataInfo:()=>jBe,Picking:()=>M5e,PickingPipelineStage:()=>HOe,PinBuilder:()=>wQ,PixelDatatype:()=>bn,PixelFormat:()=>an,Plane:()=>Ea,PlaneGeometry:()=>fLe,PlaneGeometryUpdater:()=>xLe,PlaneGraphics:()=>UDe,PlaneOutlineGeometry:()=>pLe,PntsLoader:()=>MNe,PntsParser:()=>xde,PointCloud:()=>s4e,PointCloudEyeDomeLighting:()=>uZ,PointCloudShading:()=>GW,PointCloudStylingPipelineStage:()=>WOe,PointGraphics:()=>Qce,PointLight:()=>wfe,PointPrimitive:()=>Pv,PointPrimitiveCollection:()=>a3,PointVisualizer:()=>mFe,PolygonDepth:()=>Ez,PolygonDepthFS:()=>fde,PolygonDepthVS:()=>pde,PolygonGeometry:()=>_c,PolygonGeometryLibrary:()=>Tu,PolygonGeometryUpdater:()=>_Le,PolygonGraphics:()=>eu,PolygonHierarchy:()=>to,PolygonOutlineGeometry:()=>gLe,PolygonPipeline:()=>ad,Polyline:()=>YM,PolylineArrowMaterialProperty:()=>gm,PolylineCollection:()=>V5,PolylineColorAppearance:()=>jm,PolylineDashMaterialProperty:()=>Eu,PolylineGeometry:()=>zy,PolylineGeometryUpdater:()=>xFe,PolylineGlowMaterialProperty:()=>Sue,PolylineGraphics:()=>CM,PolylineMaterialAppearance:()=>T_,PolylineOutlineMaterialProperty:()=>QL,PolylinePipeline:()=>Nd,PolylineTrailLinkMaterialProperty:()=>Nvt,PolylineVisualizer:()=>_Fe,PolylineVolumeGeometry:()=>vLe,PolylineVolumeGeometryLibrary:()=>fz,PolylineVolumeGeometryUpdater:()=>CLe,PolylineVolumeGraphics:()=>Zce,PolylineVolumeOutlineGeometry:()=>yLe,PositionProperty:()=>dW,PositionPropertyArray:()=>ZG,PostProcessStage:()=>Ua,PostProcessStageCollection:()=>eBe,PostProcessStageComposite:()=>_m,PostProcessStageLibrary:()=>X2,PostProcessStageSampleMode:()=>J2,PostProcessStageTextureCache:()=>ufe,PpeMetadata:()=>A3e,PpeSource:()=>MCt,PpeTexture:()=>E3e,Primitive:()=>pa,PrimitiveCollection:()=>I_,PrimitiveLoadPlan:()=>nZ,PrimitiveOutlineGenerator:()=>rde,PrimitiveOutlinePipelineStage:()=>YOe,PrimitivePipeline:()=>ez,PrimitiveRenderResources:()=>_Ne,PrimitiveState:()=>dm,PrimitiveStatisticsPipelineStage:()=>XOe,PrimitiveType:()=>An,ProjectionPicker:()=>PVe,ProjectionPickerViewModel:()=>SVe,Property:()=>Ut,PropertyArray:()=>Lfe,PropertyAttribute:()=>Whe,PropertyAttributeProperty:()=>HLe,PropertyBag:()=>tP,PropertyTable:()=>G5,PropertyTexture:()=>KQ,PropertyTextureProperty:()=>zLe,ProviderViewModel:()=>hm,Proxy:()=>r2t,QuadraticRealPolynomial:()=>zS,QuadtreeOccluders:()=>Yde,QuadtreePrimitive:()=>Ww,QuadtreePrimitivezh:()=>kvt,QuadtreeTile:()=>LZ,QuadtreeTileLoadState:()=>sd,QuadtreeTileProvider:()=>WU,QuantizedMeshTerrainData:()=>Vfe,QuarticRealPolynomial:()=>QSe,Quaternion:()=>Er,QuaternionSpline:()=>U3e,Queue:()=>c3,RasterizeHtml:()=>v7,Ray:()=>qa,Rectangle:()=>Si,RectangleCollisionChecker:()=>Uhe,RectangleGeometry:()=>fU,RectangleGeometryLibrary:()=>Cv,RectangleGeometryUpdater:()=>SLe,RectangleGraphics:()=>mW,RectangleOutlineGeometry:()=>khe,RectangularSensor:()=>NJ,RectangularSensorFS:()=>kue,RectangularSensorGraphics:()=>ICt,RectangularSensorPrimitive:()=>Kke,RectangularSensorScanPlaneFS:()=>Xke,RectangularSensorVS:()=>r0e,RectangularSensorVisualizer:()=>$ke,ReferenceFrame:()=>Q0,ReferenceProperty:()=>IQ,RegionPolygonTexture:()=>Cke,RegionTexture:()=>bke,RegionWeather:()=>i0e,RenderObjectFactory:()=>Dc,RenderState:()=>wn,Renderbuffer:()=>fw,RenderbufferFormat:()=>Bb,Request:()=>Jm,RequestErrorEvent:()=>$V,RequestScheduler:()=>Aw,RequestState:()=>Gc,RequestType:()=>e2,ResetViewNavigationControl:()=>Pke,Resource:()=>Wr,ResourceCache:()=>Id,ResourceCacheKey:()=>YE,ResourceCacheStatistics:()=>g3e,ResourceLoader:()=>zg,ResourceLoaderState:()=>ea,Rotation:()=>NM,RuntimeError:()=>Xi,S2Cell:()=>IG,S3MDataSource:()=>Hvt,SDFSettings:()=>K2,SampledPositionProperty:()=>aE,SampledProperty:()=>fL,Sampler:()=>aa,ScaledPositionProperty:()=>vW,Scene:()=>BU,SceneFramebuffer:()=>rfe,SceneHeightMap:()=>Yke,SceneHeightWaterPostProcessing:()=>GT,SceneHeightWaterPrimitive:()=>fCt,SceneMode:()=>Ti,SceneMode2DPipelineStage:()=>KOe,SceneModePicker:()=>MVe,SceneModePickerViewModel:()=>IVe,SceneTransforms:()=>Va,SceneTransitioner:()=>aBe,ScreenSpaceCameraController:()=>fBe,ScreenSpaceEventHandler:()=>kr,ScreenSpaceEventType:()=>Di,SelectedFeatureIdPipelineStage:()=>gJ,SelectionIndicator:()=>RVe,SelectionIndicatorViewModel:()=>DVe,Sensor:()=>mCt,SensorVolumePortionToDisplay:()=>Iue,ShaderBuilder:()=>hde,ShaderCache:()=>KFe,ShaderDestination:()=>nr,ShaderFunction:()=>uNe,ShaderProgram:()=>Us,ShaderSource:()=>$r,ShaderStruct:()=>sNe,ShadowMap:()=>R3,ShadowMapShader:()=>UF,ShadowMode:()=>Zl,ShadowVolumeAppearance:()=>CL,ShowGeometryInstanceAttribute:()=>Ol,Simon1994PlanetaryPositions:()=>bJ,SimplePolylineGeometry:()=>n2t,SingleTileImageryProvider:()=>Gw,SkinningPipelineStage:()=>JOe,SkyAtmosphere:()=>XZ,SkyBox:()=>kU,SlopeArrow:()=>o0e,SpatialNode:()=>UBe,Spdcf:()=>w3e,SpecularEnvironmentCubeMap:()=>wz,SphereEmitter:()=>R7,SphereGeometry:()=>o2t,SphereOutlineGeometry:()=>h3,Spherical:()=>E4e,Spline:()=>S0,SplitDirection:()=>Bw,Splitter:()=>gfe,SpotLight:()=>Wvt,StaticGeometryColorBatch:()=>mL,StaticGeometryPerMaterialBatch:()=>xL,StaticGroundGeometryColorBatch:()=>Rle,StaticGroundGeometryPerMaterialBatch:()=>DLe,StaticGroundPolylinePerMaterialBatch:()=>gFe,StaticOutlineGeometryBatch:()=>Lle,StencilConstants:()=>Ia,StencilFunction:()=>Nu,StencilOperation:()=>lo,SteppedSpline:()=>z3e,Stereographic:()=>Fb,StorageType:()=>x9,StripeMaterialProperty:()=>Pue,StripeOrientation:()=>g5,StructuralMetadata:()=>nD,StyleCommandsNeeded:()=>Tz,StyleExpression:()=>V2t,Sun:()=>o4e,SunLight:()=>u7,SunPostProcess:()=>xBe,SupportedImageFormats:()=>v3e,SvgPathBindingHandler:()=>eVe,TaskProcessor:()=>ep,Terrain:()=>_ke,TerrainData:()=>bU,TerrainEncoding:()=>ME,TerrainFillMesh:()=>jde,TerrainFlatten:()=>qU,TerrainFlattenPolygonTexture:()=>wke,TerrainMesh:()=>wU,TerrainOffsetProperty:()=>Nhe,TerrainProvider:()=>Uy,TerrainQuantization:()=>iC,TerrainRegionWeather:()=>qke,TerrainState:()=>Ns,Texture:()=>Wn,Texture3D:()=>Z4e,TextureAtlas:()=>Ice,TextureCache:()=>$Fe,TextureMagnificationFilter:()=>pl,TextureManager:()=>EDe,TextureMinificationFilter:()=>na,TexturePacker:()=>Pce,TextureUniform:()=>Lce,TextureWrap:()=>io,TileAvailability:()=>GF,TileBoundingRegion:()=>IE,TileBoundingS2Cell:()=>tFe,TileBoundingSphere:()=>E3,TileBoundingVolume:()=>z2t,TileCoordinatesImageryProvider:()=>cee,TileDiscardPolicy:()=>U2t,TileEdge:()=>Os,TileImagery:()=>Gde,TileMapServiceImageryProvider:()=>bP,TileMetadata:()=>JNe,TileOrientedBoundingBox:()=>$y,TileProviderError:()=>qm,TileReplacementQueue:()=>Kde,TileSelectionResult:()=>Pa,TileState:()=>H2t,Tileset3DTileContent:()=>VNe,TilesetMetadata:()=>nFe,TilesetPipelineStage:()=>K3e,TilesetRegionWeather:()=>jke,TilingScheme:()=>a2t,TimeConstants:()=>zc,TimeDynamicImagery:()=>Ude,TimeDynamicPointCloud:()=>_fe,TimeInterval:()=>Rl,TimeIntervalCollection:()=>ky,TimeIntervalCollectionPositionProperty:()=>v9,TimeIntervalCollectionProperty:()=>e9,TimeStandard:()=>zu,Timeline:()=>NVe,TimelineHighlightRange:()=>LVe,TimelineTrack:()=>OVe,Tipsify:()=>ePe,ToggleButtonViewModel:()=>nG,Tonemapper:()=>PV,TrackingReferenceFrame:()=>dG,Transforms:()=>Mr,TranslationRotationScale:()=>Vw,TranslucentTileClassification:()=>P5e,TridiagonalSystemSolver:()=>lde,TrustedServers:()=>Cce,TweenCollection:()=>dfe,UniformState:()=>JFe,UniformType:()=>ba,UrlTemplateGeojsonProvider:()=>Yvt,UrlTemplateImageryProvider:()=>e1,UserInterfaceControl:()=>Zfe,Utils:()=>AP,VERSION:()=>P0e,VRButton:()=>VVe,VRButtonViewModel:()=>kVe,VRTheWorldTerrainProvider:()=>c2t,VaryingType:()=>Gy,Vector3DTileBatch:()=>g9,Vector3DTileClampedPolylines:()=>jNe,Vector3DTileContent:()=>XNe,Vector3DTileGeometry:()=>xV,Vector3DTilePoints:()=>zNe,Vector3DTilePolygons:()=>UNe,Vector3DTilePolylines:()=>Ede,Vector3DTilePrimitive:()=>vde,VelocityOrientationProperty:()=>A4e,VelocityVectorProperty:()=>EZ,VertexArray:()=>$u,VertexArrayFacade:()=>sQ,VertexAttributeSemantic:()=>sa,VertexFormat:()=>sn,VerticalExaggeration:()=>Vy,VerticalExaggerationPipelineStage:()=>ZOe,VerticalOrigin:()=>co,VideoSynchronizer:()=>s2t,View:()=>Yw,ViewShed:()=>ACt,ViewShedMap:()=>x7,ViewShedMapShader:()=>HF,Viewer:()=>A0e,ViewportQuad:()=>O7,Visibility:()=>wu,Visualizer:()=>gyt,VolumeCloud:()=>a0e,VoxelBoxShape:()=>GZ,VoxelCell:()=>_Be,VoxelContent:()=>ffe,VoxelCylinderShape:()=>WZ,VoxelEllipsoidShape:()=>jZ,VoxelInspector:()=>HVe,VoxelInspectorViewModel:()=>UVe,VoxelMetadataOrder:()=>Iz,VoxelPrimitive:()=>YZ,VoxelProvider:()=>G2t,VoxelRenderResources:()=>LBe,VoxelShape:()=>W2t,VoxelShapeType:()=>Hb,VoxelTraversal:()=>HBe,VulkanConstants:()=>h2t,WallGeometry:()=>PLe,WallGeometryLibrary:()=>Vhe,WallGeometryUpdater:()=>MLe,WallGraphics:()=>yQ,WallOutlineGeometry:()=>ILe,WaterFS:()=>NRe,WaterHeightMap:()=>vCt,WaterMaterialProperty:()=>Xvt,WaterPipelinePrimitive:()=>Ife,WaterPostProcessing:()=>Uue,WaterPostProcessingEx:()=>Hue,WaterPrimitive:()=>s0e,WaterPrimitiveEx:()=>hB,WaterReflectImage:()=>Jke,WaterReflectImageEx:()=>Qke,WebGLConstants:()=>Pi,WebMapServiceImageryProvider:()=>AU,WebMapTileServiceImageryProvider:()=>I3,WebMercatorProjection:()=>ef,WebMercatorTilingScheme:()=>tp,WindingOrder:()=>Iw,WireframeIndexGenerator:()=>cde,WireframePipelineStage:()=>tNe,ZoomNavigationControl:()=>Nue,_shadersAcesTonemappingStage:()=>D5e,_shadersAdditiveBlend:()=>pBe,_shadersAdjustTranslucentFS:()=>sue,_shadersAllMaterialAppearanceFS:()=>TRe,_shadersAllMaterialAppearanceVS:()=>ERe,_shadersAmbientOcclusionGenerate:()=>R5e,_shadersAmbientOcclusionModulate:()=>L5e,_shadersAspectRampMaterial:()=>oPe,_shadersAtmosphereCommon:()=>Cz,_shadersAtmosphereStageFS:()=>$3e,_shadersAtmosphereStageVS:()=>J3e,_shadersBasicMaterialAppearanceFS:()=>ARe,_shadersBasicMaterialAppearanceVS:()=>SRe,_shadersBillboardCollectionFS:()=>aDe,_shadersBillboardCollectionVS:()=>sDe,_shadersBlackAndWhite:()=>O5e,_shadersBloomComposite:()=>N5e,_shadersBrdfLutGeneratorFS:()=>t5e,_shadersBrightPass:()=>mBe,_shadersBrightness:()=>F5e,_shadersBumpMapMaterial:()=>aPe,_shadersCPUStylingStageFS:()=>wOe,_shadersCPUStylingStageVS:()=>bOe,_shadersCheckerboardMaterial:()=>sPe,_shadersCloudCollectionFS:()=>eke,_shadersCloudCollectionVS:()=>tke,_shadersCloudNoiseFS:()=>ike,_shadersCloudNoiseVS:()=>rke,_shadersCompareAndPackTranslucentDepth:()=>S5e,_shadersCompositeOITFS:()=>_5e,_shadersCompositeTranslucentClassification:()=>s$,_shadersComputeIrradianceFS:()=>NLe,_shadersComputeRadianceMapFS:()=>FLe,_shadersContrastBias:()=>B5e,_shadersConvolveSpecularMapFS:()=>BLe,_shadersConvolveSpecularMapVS:()=>kLe,_shadersCustomShaderStageFS:()=>AOe,_shadersCustomShaderStageVS:()=>EOe,_shadersCzmBuiltins:()=>DK,_shadersDepthOfField:()=>k5e,_shadersDepthPlaneFS:()=>n5e,_shadersDepthPlaneVS:()=>o5e,_shadersDepthView:()=>V5e,_shadersDepthViewPacked:()=>yCt,_shadersDotMaterial:()=>lPe,_shadersEdgeDetection:()=>z5e,_shadersElevationBandMaterial:()=>uPe,_shadersElevationContourMaterial:()=>cPe,_shadersElevationRampMaterial:()=>hPe,_shadersEllipsoidFS:()=>oue,_shadersEllipsoidSurfaceAppearanceFS:()=>MRe,_shadersEllipsoidSurfaceAppearanceVS:()=>DRe,_shadersEllipsoidVS:()=>aue,_shadersFXAA:()=>G5e,_shadersFXAA3_11:()=>K5e,_shadersFadeMaterial:()=>dPe,_shadersFeatureIdStageFS:()=>SOe,_shadersFeatureIdStageVS:()=>POe,_shadersFilmicTonemapping:()=>U5e,_shadersGaussianBlur1D:()=>EJ,_shadersGeometryStageFS:()=>LOe,_shadersGeometryStageVS:()=>OOe,_shadersGlobeFS:()=>CFe,_shadersGlobeVS:()=>bFe,_shadersGridMaterial:()=>fPe,_shadersGroundAtmosphere:()=>Qle,_shadersHSBToRGB:()=>nMe,_shadersHSLToRGB:()=>oMe,_shadersImageBasedLightingStageFS:()=>Z3e,_shadersInstancingStageCommon:()=>hOe,_shadersInstancingStageVS:()=>dOe,_shadersIntersectBox:()=>EBe,_shadersIntersectClippingPlanes:()=>TBe,_shadersIntersectCylinder:()=>ABe,_shadersIntersectDepth:()=>wBe,_shadersIntersectEllipsoid:()=>SBe,_shadersIntersectLongitude:()=>cue,_shadersIntersection:()=>c$,_shadersIntersectionUtils:()=>bBe,_shadersLegacyInstancingStageVS:()=>fOe,_shadersLensFlare:()=>W5e,_shadersLightingStageFS:()=>FOe,_shadersMaterialStageFS:()=>kOe,_shadersMegatexture:()=>RBe,_shadersMetadataStageFS:()=>IOe,_shadersMetadataStageVS:()=>MOe,_shadersModelClippingPlanesStageFS:()=>oOe,_shadersModelClippingPolygonsStageFS:()=>lOe,_shadersModelClippingPolygonsStageVS:()=>sOe,_shadersModelColorStageFS:()=>nOe,_shadersModelFS:()=>wNe,_shadersModelFlattenStageFS:()=>ANe,_shadersModelFlattenStageVS:()=>ENe,_shadersModelSilhouetteStageFS:()=>hNe,_shadersModelSilhouetteStageVS:()=>dNe,_shadersModelSplitterStageFS:()=>pNe,_shadersModelVS:()=>bNe,_shadersModifiedReinhardTonemapping:()=>j5e,_shadersMorphTargetsStageVS:()=>zOe,_shadersNightVision:()=>q5e,_shadersNormalMapMaterial:()=>pPe,_shadersOctree:()=>DBe,_shadersPassThrough:()=>qL,_shadersPassThroughDepth:()=>TJ,_shadersPbrNeutralTonemapping:()=>H5e,_shadersPerInstanceColorAppearanceFS:()=>kDe,_shadersPerInstanceColorAppearanceVS:()=>VDe,_shadersPerInstanceFlatColorAppearanceFS:()=>Gce,_shadersPerInstanceFlatColorAppearanceVS:()=>zDe,_shadersPointCloudEyeDomeLighting:()=>D3e,_shadersPointCloudStylingStageVS:()=>GOe,_shadersPointPrimitiveCollectionFS:()=>j6,_shadersPointPrimitiveCollectionVS:()=>dDe,_shadersPolygonSignedDistanceFS:()=>OLe,_shadersPolylineArrowMaterial:()=>mPe,_shadersPolylineColorAppearanceVS:()=>ODe,_shadersPolylineCommon:()=>Qz,_shadersPolylineDashMaterial:()=>xPe,_shadersPolylineFS:()=>Wce,_shadersPolylineGlowMaterial:()=>gPe,_shadersPolylineMaterialAppearanceVS:()=>NDe,_shadersPolylineOutlineMaterial:()=>_Pe,_shadersPolylineShadowVolumeFS:()=>MDe,_shadersPolylineShadowVolumeMorphFS:()=>DDe,_shadersPolylineShadowVolumeMorphVS:()=>RDe,_shadersPolylineShadowVolumeVS:()=>LDe,_shadersPolylineVS:()=>RRe,_shadersPostProcessRain:()=>CCt,_shadersPostProcessSnow:()=>bCt,_shadersPrimitiveOutlineStageFS:()=>qOe,_shadersPrimitiveOutlineStageVS:()=>jOe,_shadersRGBToHSB:()=>DMe,_shadersRGBToHSL:()=>RMe,_shadersRGBToXYZ:()=>LMe,_shadersReinhardTonemapping:()=>Y5e,_shadersReprojectWebMercatorFS:()=>RFe,_shadersReprojectWebMercatorVS:()=>LFe,_shadersRimLightingMaterial:()=>vPe,_shadersSelectedFeatureIdStageCommon:()=>Ule,_shadersShadowVolumeAppearanceFS:()=>jce,_shadersShadowVolumeAppearanceVS:()=>BDe,_shadersShadowVolumeFS:()=>M$,_shadersSilhouette:()=>X5e,_shadersSkinningStageVS:()=>$Oe,_shadersSkyAtmosphereCommon:()=>pue,_shadersSkyAtmosphereFS:()=>JBe,_shadersSkyAtmosphereVS:()=>QBe,_shadersSkyBoxFS:()=>e4e,_shadersSkyBoxVS:()=>t4e,_shadersSlopeRampMaterial:()=>yPe,_shadersStripeMaterial:()=>CPe,_shadersSunFS:()=>i4e,_shadersSunTextureFS:()=>r4e,_shadersSunVS:()=>n4e,_shadersTexturedMaterialAppearanceFS:()=>PRe,_shadersTexturedMaterialAppearanceVS:()=>IRe,_shadersVector3DTileClampedPolylinesFS:()=>WNe,_shadersVector3DTileClampedPolylinesVS:()=>GNe,_shadersVector3DTilePolylinesVS:()=>HNe,_shadersVectorTileVS:()=>Gle,_shadersVerticalExaggerationStageVS:()=>QOe,_shadersViewportQuadFS:()=>nke,_shadersViewportQuadVS:()=>Jde,_shadersVoxelFS:()=>yBe,_shadersVoxelUtils:()=>vBe,_shadersVoxelVS:()=>CBe,_shadersWater:()=>wPe,_shadersWaterMaskMaterial:()=>bPe,_shadersXYZToRGB:()=>rDe,_shadersacesTonemapping:()=>bIe,_shadersalphaWeight:()=>wIe,_shadersantialias:()=>TIe,_shadersapplyHSBShift:()=>EIe,_shadersapproximateSphericalCoordinates:()=>AIe,_shadersapproximateTanh:()=>SIe,_shadersbackFacing:()=>PIe,_shadersbranchFreeTernary:()=>IIe,_shaderscascadeColor:()=>MIe,_shaderscascadeDistance:()=>DIe,_shaderscascadeMatrix:()=>RIe,_shaderscascadeWeights:()=>LIe,_shadersclipPolygons:()=>OIe,_shaderscolumbusViewMorph:()=>NIe,_shaderscomputeAtmosphereColor:()=>FIe,_shaderscomputeGroundAtmosphereScattering:()=>BIe,_shaderscomputePosition:()=>kIe,_shaderscomputeScattering:()=>VIe,_shadersconvertUvToBox:()=>PBe,_shadersconvertUvToCylinder:()=>IBe,_shadersconvertUvToEllipsoid:()=>MBe,_shaderscosineAndSine:()=>zIe,_shadersdecompressTextureCoordinates:()=>UIe,_shadersdegreesPerRadian:()=>MPe,_shadersdepthClamp:()=>HIe,_shadersdepthRange:()=>DPe,_shadersdepthRangeStruct:()=>pIe,_shaderseastNorthUpToEyeCoordinates:()=>GIe,_shadersellipsoidContainsPoint:()=>WIe,_shadersellipsoidTextureCoordinates:()=>jIe,_shadersepsilon1:()=>RPe,_shadersepsilon2:()=>LPe,_shadersepsilon3:()=>OPe,_shadersepsilon4:()=>NPe,_shadersepsilon5:()=>FPe,_shadersepsilon6:()=>BPe,_shadersepsilon7:()=>kPe,_shadersequalsEpsilon:()=>qIe,_shaderseyeOffset:()=>YIe,_shaderseyeToWindowCoordinates:()=>XIe,_shadersfastApproximateAtan:()=>KIe,_shadersfog:()=>$Ie,_shadersgammaCorrect:()=>JIe,_shadersgeodeticSurfaceNormal:()=>QIe,_shadersgetDefaultMaterial:()=>ZIe,_shadersgetDynamicAtmosphereLightDirection:()=>eMe,_shadersgetLambertDiffuse:()=>tMe,_shadersgetSpecular:()=>iMe,_shadersgetWaterNoise:()=>rMe,_shadershue:()=>aMe,_shadersinfinity:()=>VPe,_shadersinverseGamma:()=>sMe,_shadersisEmpty:()=>lMe,_shadersisFull:()=>uMe,_shaderslatitudeToWebMercatorFraction:()=>cMe,_shaderslineDistance:()=>dMe,_shaderslinearToSrgb:()=>hMe,_shadersluminance:()=>fMe,_shadersmaterial:()=>mIe,_shadersmaterialInput:()=>xIe,_shadersmaximumComponent:()=>pMe,_shadersmetersPerPixel:()=>mMe,_shadersmodelMaterial:()=>gIe,_shadersmodelToWindowCoordinates:()=>xMe,_shadersmodelVertexOutput:()=>_Ie,_shadersmultiplyWithColorBalance:()=>gMe,_shadersnearFarScalar:()=>_Me,_shadersoctDecode:()=>vMe,_shadersoneOverPi:()=>zPe,_shadersoneOverTwoPi:()=>UPe,_shaderspackDepth:()=>yMe,_shaderspassCesium3DTile:()=>HPe,_shaderspassCesium3DTileClassification:()=>GPe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>WPe,_shaderspassClassification:()=>jPe,_shaderspassCompute:()=>qPe,_shaderspassEnvironment:()=>YPe,_shaderspassGlobe:()=>XPe,_shaderspassOpaque:()=>KPe,_shaderspassOverlay:()=>$Pe,_shaderspassTerrainClassification:()=>JPe,_shaderspassTranslucent:()=>QPe,_shaderspassVoxels:()=>ZPe,_shaderspbrLighting:()=>CMe,_shaderspbrNeutralTonemapping:()=>bMe,_shadersphong:()=>wMe,_shaderspi:()=>eIe,_shaderspiOverFour:()=>tIe,_shaderspiOverSix:()=>iIe,_shaderspiOverThree:()=>rIe,_shaderspiOverTwo:()=>nIe,_shadersplaneDistance:()=>TMe,_shaderspointAlongRay:()=>EMe,_shadersradiansPerDegree:()=>oIe,_shadersray:()=>vIe,_shadersrayEllipsoidIntersectionInterval:()=>AMe,_shadersraySegment:()=>yIe,_shadersraySphereIntersectionInterval:()=>SMe,_shadersreadDepth:()=>PMe,_shadersreadNonPerspective:()=>IMe,_shadersreverseLogDepth:()=>MMe,_shadersround:()=>OMe,_shaderssaturation:()=>NMe,_shaderssceneMode2D:()=>aIe,_shaderssceneMode3D:()=>sIe,_shaderssceneModeColumbusView:()=>lIe,_shaderssceneModeMorphing:()=>uIe,_shadersshadowDepthCompare:()=>FMe,_shadersshadowParameters:()=>CIe,_shadersshadowVisibility:()=>BMe,_shaderssignNotZero:()=>kMe,_shaderssolarRadius:()=>cIe,_shaderssphericalHarmonics:()=>VMe,_shaderssrgbToLinear:()=>zMe,_shaderstangentToEyeSpaceMatrix:()=>UMe,_shaderstextureCube:()=>HMe,_shadersthreePiOver2:()=>hIe,_shaderstransformPlane:()=>GMe,_shaderstranslateRelativeToEye:()=>WMe,_shaderstranslucentPhong:()=>jMe,_shaderstranspose:()=>qMe,_shaderstwoPi:()=>dIe,_shadersunpackClippingExtents:()=>YMe,_shadersunpackDepth:()=>XMe,_shadersunpackFloat:()=>KMe,_shadersunpackUint:()=>$Me,_shadersvalueTransform:()=>JMe,_shadersvertexLogDepth:()=>QMe,_shaderswebMercatorMaxLatitude:()=>fIe,_shaderswindowToEyeCoordinates:()=>ZMe,_shaderswriteDepthClamp:()=>eDe,_shaderswriteLogDepth:()=>tDe,_shaderswriteNonPerspective:()=>iDe,addBuffer:()=>n3e,addDefaults:()=>$Le,addExtensionsRequired:()=>t3e,addExtensionsUsed:()=>gU,addPipelineExtras:()=>eZ,addToArray:()=>pw,appendForwardSlash:()=>CSe,arrayRemoveDuplicates:()=>M_,barycentricCoordinates:()=>Sce,binarySearch:()=>Dg,buildModuleUrl:()=>va,buildVoxelDrawCommands:()=>NBe,clipper2lib:()=>nF,clone:()=>so,combine:()=>Fa,computeFlyToLocationForRectangle:()=>Ode,createBillboardPointCallback:()=>Tde,createBlurStage:()=>Bue,createCommand:()=>bu,createDefaultImageryProviderViewModels:()=>aVe,createDefaultTerrainProviderViewModels:()=>sVe,createEdgeStage:()=>k7,createElevationBandMaterial:()=>w2t,createFragmentFromTemplate:()=>Tke,createGooglePhotorealistic3DTileset:()=>T2t,createGuid:()=>Hu,createMaterialPropertyDescriptor:()=>Av,createOsmBuildingsAsync:()=>E2t,createPropertyDescriptor:()=>Fi,createRawPropertyDescriptor:()=>Ib,createTangentSpaceDebugPrimitive:()=>A2t,createTaskProcessorWorker:()=>DCt,createUniform:()=>SPe,createUniformArray:()=>IPe,createWorldBathymetryAsync:()=>G4e,createWorldImageryAsync:()=>LG,createWorldTerrainAsync:()=>zfe,decodeGoogleEarthEnterpriseData:()=>j4e,decodeVectorPolylinePositions:()=>qNe,defaultValue:()=>Fyt,defer:()=>Z0,defined:()=>N,demodernizeShader:()=>nDe,deprecationWarning:()=>xP,destroyObject:()=>Ir,exportKml:()=>hyt,fflate_module:()=>Fke,findAccessorMinMax:()=>tZ,findContentMetadata:()=>Sde,findGroupMetadata:()=>Pde,findTileMetadata:()=>ZNe,forEachTextureInMaterial:()=>$he,formatError:()=>a9,fragment:()=>TCt,freezeRenderState:()=>aat,getAbsoluteUri:()=>zG,getAccessorByteStride:()=>H5,getBaseUri:()=>wSe,getBinaryAccessor:()=>AL,getClipAndStyleCode:()=>a4e,getClippingFunction:()=>SZ,getComponentReader:()=>jQ,getElement:()=>Pd,getExtensionFromUri:()=>I5,getFilenameFromUri:()=>bQ,getImageFromTypedArray:()=>TDe,getImagePixels:()=>XV,getJsonFromTypedArray:()=>Yy,getMagic:()=>BW,getMetadataClassProperty:()=>WBe,getMetadataProperty:()=>qBe,getStringFromTypedArray:()=>W5,getTimestamp:()=>Oh,hasExtension:()=>kd,heightReferenceOnEntityPropertyChanged:()=>kQ,isBitSet:()=>Ew,isBlobUri:()=>gce,isCrossOriginUrl:()=>KV,isDataUri:()=>iQ,isLeapYear:()=>JV,knockout:()=>vr,knockout_3_5_1:()=>B3,knockout_es5:()=>Zke,libgif:()=>WRe,loadAndExecuteScript:()=>_ce,loadCRN:()=>Kyt,loadCubeMap:()=>ZBe,loadDDS:()=>bce,loadImageFromTypedArray:()=>FW,loadKTX2:()=>M5,loadView:()=>Qfe,mergeSort:()=>l7,moveTechniqueRenderStates:()=>e3e,moveTechniquesToExtension:()=>i3e,numberOfComponentsForType:()=>mU,objFS:()=>Uke,objectToQuery:()=>vce,oneTimeWarning:()=>ya,packer:()=>PDe,parseBatchTable:()=>zW,parseDefines:()=>Wke,parseFeatureMetadataLegacy:()=>YLe,parseGlb:()=>QLe,parseResponseHeaders:()=>TSe,parseStructuralMetadata:()=>qLe,pickModel:()=>DNe,pointInsideTriangle:()=>t2t,preprocess3DTileContent:()=>xZ,processVoxelProperties:()=>OBe,queryToObject:()=>lM,rasterizeHTML_allinone:()=>_4e,readAccessorPacked:()=>o3e,removeExtension:()=>fJ,removeExtensionsRequired:()=>JLe,removeExtensionsUsed:()=>Khe,removePipelineExtras:()=>ZLe,removeUnusedElements:()=>r3e,remove_primitive:()=>OJ,resizeImageToNextPowerOfTwo:()=>P$,sampleTerrain:()=>AZ,sampleTerrainMostDetailed:()=>cD,scaleToGeodeticSurface:()=>wce,srgbToLinear:()=>vfe,subdivideArray:()=>FDe,subscribeAndEvaluate:()=>Nb,svgCompassGyro:()=>Mke,svgCompassOuterRing:()=>Ike,svgCompassRotationMarker:()=>Dke,svgReset:()=>Ake,turf:()=>qo,updateAccessorComponentTypes:()=>a3e,updateVersion:()=>u3e,usesExtension:()=>Km,vertex:()=>ECt,viewerCesium3DTilesInspectorMixin:()=>tbt,viewerCesiumInspectorMixin:()=>ibt,viewerCesiumNavigationMixin:()=>Z2t,viewerDragDropMixin:()=>rbt,viewerPerformanceWatchdogMixin:()=>nbt,viewerVoxelInspectorMixin:()=>abt,webGLConstantToGlslType:()=>d2t,wrapFunction:()=>Q4e,writeTextToCanvas:()=>Kz});function Cee(o=!0){this.async=o}Cee.prototype.getXmlHttpRequest=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("MsXml2.XmlHttp")};Cee.prototype.includeJsText=function(o,f){if(o!=null){var m=document.createElement("script");m.type="text/javascript",m.text=f,o.appendChild(m)}};Cee.prototype.includeJsSrc=function(o,f,m){if(o!=null){var x=document.createElement("script");x.type="text/javascript",x.src=f,m&&typeof m=="function"&&(x.onload=m),o.appendChild(x)}};Cee.prototype.addJs=function(o,f,m){var x=this.getXmlHttpRequest(),v=this;x.onreadystatechange=function(){x.readyState===4&&(x.status===200||x.status===304?v.includeJsSrc(o,f,m):console.log("XML request error: "+x.statusText+" ("+x.status+")"))},x.open("GET",f,v.async),x.send(null),x.status===404?console.log(f+" is not found"):v.includeJsText(o,x.responseText)};var jx=Cee;var urr={testModel:"Workers/Model/xiaoche.glb",modelAxis:"Workers/Model/axis.gltf",flyModel:"Workers/Model/fly.glb",divpoint:"Workers/image/divpoint.png",divpoint1:"Workers/image/divpoint1.png",richtextpoint:"Workers/image/richtextpoint1.png",mark:"Workers/image/mark.png",mark1:"Workers/image/mark1.png",TrailLine:"Workers/image/TrailLine.png",road:"Workers/image/road.jpg",colors3:"Workers/image/colors3.png",loading:"Workers/image/loading.gif",smog:"Workers/image/smog.png",penquan:"Workers/image/penquan.png",fire:"Workers/image/fire.png",fire2:"Workers/image/fire2.png",bottomplane:"Workers/image/bottomplane.jpg",MTY0001:"Workers/image/MTY0001.jpg",MTY0002:"Workers/image/MTY0002.jpg",wall:"Workers/image/ggy.jpg",rotate:"Workers/image/rotate.png",move:"Workers/image/move.png",draw:"Workers/image/cursor/draw.cur",water:"Workers/image/waterNormals.jpg",movingRiver:"Workers/image/movingRiver.png",effectCircle:"Workers/image/circle.png",scanCircle:"Workers/image/scan.png",particles:"Workers/image/particles.png",trafficLight:{l_go:"Workers/image/trafficLights/l-go.png",l_wait:"Workers/image/trafficLights/l-wait.png",l_stop:"Workers/image/trafficLights/l-stop.png",l_null:"Workers/image/trafficLights/l-null.png",go:"Workers/image/trafficLights/go.png",wait:"Workers/image/trafficLights/wait.png",stop:"Workers/image/trafficLights/stop.png",null:"Workers/image/trafficLights/null.png",r_go:"Workers/image/trafficLights/r-go.png",r_wait:"Workers/image/trafficLights/r-wait.png",r_stop:"Workers/image/trafficLights/r-stop.png",r_null:"Workers/image/trafficLights/r-null.png",bg:"Workers/image/trafficLights/bg.png"}},dn=Object.freeze(urr);function crr(o,f){return o??f}var ym=crr;var sbt=`// author: \u5F20\u4E39\u948A
czm_material czm_getMaterial(czm_materialInput materialInput)
{
    czm_material material = czm_getDefaultMaterial(materialInput);
@@ -25489,7 +25572,7 @@
`||E===A){y=Math.max(y,C),v.push(C),C=0,w+=T;continue}var M=f[E+1]||o.font,I=_xe(M,S);m.push(I),C+=I;var P=chr(M);x.push(P),T=Math.max(T,P)}return{width:y,height:w,widths:m,heights:x,lineWidths:v}}function WAt(o,f,m,x,v,y,C,w,T,E,A){o.save(),m!==1&&(o.globalAlpha*=m),f&&o.setTransform.apply(o,f),x.contextInstructions?(o.translate(T,E),o.scale(A[0],A[1]),hhr(x,o)):A[0]<0||A[1]<0?(o.translate(T,E),o.scale(A[0],A[1]),o.drawImage(x,v,y,C,w,0,0,C,w)):o.drawImage(x,v,y,C,w,T,E,C*A[0],w*A[1]),o.restore()}function hhr(o,f){for(var m=o.contextInstructions,x=0,v=m.length;x<v;x+=2)Array.isArray(m[x+1])?f[m[x]].apply(f,m[x+1]):f[m[x]]=m[x+1]}var dhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),fhr=function(o){dhr(f,o);function f(m){var x=this,v=m.rotateWithView!==void 0?m.rotateWithView:!1;return x=o.call(this,{opacity:1,rotateWithView:v,rotation:m.rotation!==void 0?m.rotation:0,scale:m.scale!==void 0?m.scale:1,displacement:m.displacement!==void 0?m.displacement:[0,0],declutterMode:m.declutterMode})||this,x.canvas_=void 0,x.hitDetectionCanvas_=null,x.fill_=m.fill!==void 0?m.fill:null,x.origin_=[0,0],x.points_=m.points,x.radius_=m.radius!==void 0?m.radius:m.radius1,x.radius2_=m.radius2,x.angle_=m.angle!==void 0?m.angle:0,x.stroke_=m.stroke!==void 0?m.stroke:null,x.size_=null,x.renderOptions_=null,x.render(),x}return f.prototype.clone=function(){var m=this.getScale(),x=new f({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(m)?m.slice():m,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return x.setOpacity(this.getOpacity()),x},f.prototype.getAnchor=function(){var m=this.size_;if(!m)return null;var x=this.getDisplacement();return[m[0]/2-x[0],m[1]/2+x[1]]},f.prototype.getAngle=function(){return this.angle_},f.prototype.getFill=function(){return this.fill_},f.prototype.setFill=function(m){this.fill_=m,this.render()},f.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},f.prototype.getImage=function(m){var x=this.canvas_[m];if(!x){var v=this.renderOptions_,y=Tm(v.size*m,v.size*m);this.draw_(v,y,m),x=y.canvas,this.canvas_[m]=x}return x},f.prototype.getPixelRatio=function(m){return m},f.prototype.getImageSize=function(){return this.size_},f.prototype.getImageState=function(){return Kh.LOADED},f.prototype.getOrigin=function(){return this.origin_},f.prototype.getPoints=function(){return this.points_},f.prototype.getRadius=function(){return this.radius_},f.prototype.getRadius2=function(){return this.radius2_},f.prototype.getSize=function(){return this.size_},f.prototype.getStroke=function(){return this.stroke_},f.prototype.setStroke=function(m){this.stroke_=m,this.render()},f.prototype.listenImageChange=function(m){},f.prototype.load=function(){},f.prototype.unlistenImageChange=function(m){},f.prototype.calculateLineJoinSize_=function(m,x,v){if(x===0||this.points_===1/0||m!=="bevel"&&m!=="miter")return x;var y=this.radius_,C=this.radius2_===void 0?y:this.radius2_;if(y<C){var w=y;y=C,C=w}var T=this.radius2_===void 0?this.points_:this.points_*2,E=2*Math.PI/T,A=C*Math.sin(E),S=Math.sqrt(C*C-A*A),M=y-S,I=Math.sqrt(A*A+M*M),P=I/A;if(m==="miter"&&P<=v)return P*x;var D=x/2/P,R=x/2*(M/I),L=Math.sqrt((y+D)*(y+D)+R*R),O=L-y;if(this.radius2_===void 0||m==="bevel")return O*2;var F=y*Math.sin(E),B=Math.sqrt(y*y-F*F),H=C-B,G=Math.sqrt(F*F+H*H),W=G/F;if(W<=v){var Y=W*x/2-C-y;return 2*Math.max(O,Y)}return O*2},f.prototype.createRenderOptions=function(){var m=RD,x=0,v=null,y=0,C,w=0;this.stroke_&&(C=this.stroke_.getColor(),C===null&&(C=tO),C=s1(C),w=this.stroke_.getWidth(),w===void 0&&(w=rO),v=this.stroke_.getLineDash(),y=this.stroke_.getLineDashOffset(),m=this.stroke_.getLineJoin(),m===void 0&&(m=RD),x=this.stroke_.getMiterLimit(),x===void 0&&(x=eO));var T=this.calculateLineJoinSize_(m,w,x),E=Math.max(this.radius_,this.radius2_||0),A=Math.ceil(2*E+T);return{strokeStyle:C,strokeWidth:w,size:A,lineDash:v,lineDashOffset:y,lineJoin:m,miterLimit:x}},f.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var m=this.renderOptions_.size;this.canvas_={},this.size_=[m,m]},f.prototype.draw_=function(m,x,v){if(x.scale(v,v),x.translate(m.size/2,m.size/2),this.createPath_(x),this.fill_){var y=this.fill_.getColor();y===null&&(y=l1),x.fillStyle=s1(y),x.fill()}this.stroke_&&(x.strokeStyle=m.strokeStyle,x.lineWidth=m.strokeWidth,x.setLineDash&&m.lineDash&&(x.setLineDash(m.lineDash),x.lineDashOffset=m.lineDashOffset),x.lineJoin=m.lineJoin,x.miterLimit=m.miterLimit,x.stroke())},f.prototype.createHitDetectionCanvas_=function(m){if(this.fill_){var x=this.fill_.getColor(),v=0;if(typeof x=="string"&&(x=xH(x)),x===null?v=1:Array.isArray(x)&&(v=x.length===4?x[3]:1),v===0){var y=Tm(m.size,m.size);this.hitDetectionCanvas_=y.canvas,this.drawHitDetectionCanvas_(m,y)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},f.prototype.createPath_=function(m){var x=this.points_,v=this.radius_;if(x===1/0)m.arc(0,0,v,0,2*Math.PI);else{var y=this.radius2_===void 0?v:this.radius2_;this.radius2_!==void 0&&(x*=2);for(var C=this.angle_-Math.PI/2,w=2*Math.PI/x,T=0;T<x;T++){var E=C+T*w,A=T%2===0?v:y;m.lineTo(A*Math.cos(E),A*Math.sin(E))}m.closePath()}},f.prototype.drawHitDetectionCanvas_=function(m,x){x.translate(m.size/2,m.size/2),this.createPath_(x),x.fillStyle=l1,x.fill(),this.stroke_&&(x.strokeStyle=m.strokeStyle,x.lineWidth=m.strokeWidth,m.lineDash&&(x.setLineDash(m.lineDash),x.lineDashOffset=m.lineDashOffset),x.lineJoin=m.lineJoin,x.miterLimit=m.miterLimit,x.stroke())},f}(xxe),jAt=fhr;var phr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),mhr=function(o){phr(f,o);function f(m){var x=m||{};return o.call(this,{points:1/0,fill:x.fill,radius:x.radius,stroke:x.stroke,scale:x.scale!==void 0?x.scale:1,rotation:x.rotation!==void 0?x.rotation:0,rotateWithView:x.rotateWithView!==void 0?x.rotateWithView:!1,displacement:x.displacement!==void 0?x.displacement:[0,0],declutterMode:x.declutterMode})||this}return f.prototype.clone=function(){var m=this.getScale(),x=new f({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(m)?m.slice():m,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return x.setOpacity(this.getOpacity()),x},f.prototype.setRadius=function(m){this.radius_=m,this.render()},f}(jAt),qAt=mhr;var xhr=function(){function o(f){var m=f||{};this.color_=m.color!==void 0?m.color:null}return o.prototype.clone=function(){var f=this.getColor();return new o({color:Array.isArray(f)?f.slice():f||void 0})},o.prototype.getColor=function(){return this.color_},o.prototype.setColor=function(f){this.color_=f},o}(),vH=xhr;var ghr=function(){function o(f){var m=f||{};this.color_=m.color!==void 0?m.color:null,this.lineCap_=m.lineCap,this.lineDash_=m.lineDash!==void 0?m.lineDash:null,this.lineDashOffset_=m.lineDashOffset,this.lineJoin_=m.lineJoin,this.miterLimit_=m.miterLimit,this.width_=m.width}return o.prototype.clone=function(){var f=this.getColor();return new o({color:Array.isArray(f)?f.slice():f||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},o.prototype.getColor=function(){return this.color_},o.prototype.getLineCap=function(){return this.lineCap_},o.prototype.getLineDash=function(){return this.lineDash_},o.prototype.getLineDashOffset=function(){return this.lineDashOffset_},o.prototype.getLineJoin=function(){return this.lineJoin_},o.prototype.getMiterLimit=function(){return this.miterLimit_},o.prototype.getWidth=function(){return this.width_},o.prototype.setColor=function(f){this.color_=f},o.prototype.setLineCap=function(f){this.lineCap_=f},o.prototype.setLineDash=function(f){this.lineDash_=f},o.prototype.setLineDashOffset=function(f){this.lineDashOffset_=f},o.prototype.setLineJoin=function(f){this.lineJoin_=f},o.prototype.setMiterLimit=function(f){this.miterLimit_=f},o.prototype.setWidth=function(f){this.width_=f},o}(),Ite=ghr;var XAt=function(){function o(f){var m=f||{};this.geometry_=null,this.geometryFunction_=YAt,m.geometry!==void 0&&this.setGeometry(m.geometry),this.fill_=m.fill!==void 0?m.fill:null,this.image_=m.image!==void 0?m.image:null,this.renderer_=m.renderer!==void 0?m.renderer:null,this.hitDetectionRenderer_=m.hitDetectionRenderer!==void 0?m.hitDetectionRenderer:null,this.stroke_=m.stroke!==void 0?m.stroke:null,this.text_=m.text!==void 0?m.text:null,this.zIndex_=m.zIndex}return o.prototype.clone=function(){var f=this.getGeometry();return f&&typeof f=="object"&&(f=f.clone()),new o({geometry:f,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},o.prototype.getRenderer=function(){return this.renderer_},o.prototype.setRenderer=function(f){this.renderer_=f},o.prototype.setHitDetectionRenderer=function(f){this.hitDetectionRenderer_=f},o.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},o.prototype.getGeometry=function(){return this.geometry_},o.prototype.getGeometryFunction=function(){return this.geometryFunction_},o.prototype.getFill=function(){return this.fill_},o.prototype.setFill=function(f){this.fill_=f},o.prototype.getImage=function(){return this.image_},o.prototype.setImage=function(f){this.image_=f},o.prototype.getStroke=function(){return this.stroke_},o.prototype.setStroke=function(f){this.stroke_=f},o.prototype.getText=function(){return this.text_},o.prototype.setText=function(f){this.text_=f},o.prototype.getZIndex=function(){return this.zIndex_},o.prototype.setGeometry=function(f){typeof f=="function"?this.geometryFunction_=f:typeof f=="string"?this.geometryFunction_=function(m){return m.get(f)}:f?f!==void 0&&(this.geometryFunction_=function(){return f}):this.geometryFunction_=YAt,this.geometry_=f},o.prototype.setZIndex=function(f){this.zIndex_=f},o}();function KAt(o){var f;if(typeof o=="function")f=o;else{var m;if(Array.isArray(o))m=o;else{Qu(typeof o.getZIndex=="function",41);var x=o;m=[x]}f=function(){return m}}return f}var MHe=null;function $At(o,f){if(!MHe){var m=new vH({color:"rgba(255,255,255,0.4)"}),x=new Ite({color:"#3399CC",width:1.25});MHe=[new XAt({image:new qAt({fill:m,stroke:x,radius:5}),fill:m,stroke:x})]}return MHe}function YAt(o){return o.getGeometry()}var JAt=XAt;var yxe={POINT:"point",LINE:"line"};var _hr="#333",vhr=function(){function o(f){var m=f||{};this.font_=m.font,this.rotation_=m.rotation,this.rotateWithView_=m.rotateWithView,this.scale_=m.scale,this.scaleArray_=jp(m.scale!==void 0?m.scale:1),this.text_=m.text,this.textAlign_=m.textAlign,this.justify_=m.justify,this.textBaseline_=m.textBaseline,this.fill_=m.fill!==void 0?m.fill:new vH({color:_hr}),this.maxAngle_=m.maxAngle!==void 0?m.maxAngle:Math.PI/4,this.placement_=m.placement!==void 0?m.placement:yxe.POINT,this.overflow_=!!m.overflow,this.stroke_=m.stroke!==void 0?m.stroke:null,this.offsetX_=m.offsetX!==void 0?m.offsetX:0,this.offsetY_=m.offsetY!==void 0?m.offsetY:0,this.backgroundFill_=m.backgroundFill?m.backgroundFill:null,this.backgroundStroke_=m.backgroundStroke?m.backgroundStroke:null,this.padding_=m.padding===void 0?null:m.padding}return o.prototype.clone=function(){var f=this.getScale();return new o({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(f)?f.slice():f,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},o.prototype.getOverflow=function(){return this.overflow_},o.prototype.getFont=function(){return this.font_},o.prototype.getMaxAngle=function(){return this.maxAngle_},o.prototype.getPlacement=function(){return this.placement_},o.prototype.getOffsetX=function(){return this.offsetX_},o.prototype.getOffsetY=function(){return this.offsetY_},o.prototype.getFill=function(){return this.fill_},o.prototype.getRotateWithView=function(){return this.rotateWithView_},o.prototype.getRotation=function(){return this.rotation_},o.prototype.getScale=function(){return this.scale_},o.prototype.getScaleArray=function(){return this.scaleArray_},o.prototype.getStroke=function(){return this.stroke_},o.prototype.getText=function(){return this.text_},o.prototype.getTextAlign=function(){return this.textAlign_},o.prototype.getJustify=function(){return this.justify_},o.prototype.getTextBaseline=function(){return this.textBaseline_},o.prototype.getBackgroundFill=function(){return this.backgroundFill_},o.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},o.prototype.getPadding=function(){return this.padding_},o.prototype.setOverflow=function(f){this.overflow_=f},o.prototype.setFont=function(f){this.font_=f},o.prototype.setMaxAngle=function(f){this.maxAngle_=f},o.prototype.setOffsetX=function(f){this.offsetX_=f},o.prototype.setOffsetY=function(f){this.offsetY_=f},o.prototype.setPlacement=function(f){this.placement_=f},o.prototype.setRotateWithView=function(f){this.rotateWithView_=f},o.prototype.setFill=function(f){this.fill_=f},o.prototype.setRotation=function(f){this.rotation_=f},o.prototype.setScale=function(f){this.scale_=f,this.scaleArray_=jp(f!==void 0?f:1)},o.prototype.setStroke=function(f){this.stroke_=f},o.prototype.setText=function(f){this.text_=f},o.prototype.setTextAlign=function(f){this.textAlign_=f},o.prototype.setJustify=function(f){this.justify_=f},o.prototype.setTextBaseline=function(f){this.textBaseline_=f},o.prototype.setBackgroundFill=function(f){this.backgroundFill_=f},o.prototype.setBackgroundStroke=function(f){this.backgroundStroke_=f},o.prototype.setPadding=function(f){this.padding_=f},o}(),QAt=vhr;var dd={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};var yhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Chr=function(o){yhr(f,o);function f(m){var x=o.call(this)||this;x.on,x.once,x.un,x.background_=m.background;var v=$x({},m);return typeof m.properties=="object"&&(delete v.properties,$x(v,m.properties)),v[dd.OPACITY]=m.opacity!==void 0?m.opacity:1,Qu(typeof v[dd.OPACITY]=="number",64),v[dd.VISIBLE]=m.visible!==void 0?m.visible:!0,v[dd.Z_INDEX]=m.zIndex,v[dd.MAX_RESOLUTION]=m.maxResolution!==void 0?m.maxResolution:1/0,v[dd.MIN_RESOLUTION]=m.minResolution!==void 0?m.minResolution:0,v[dd.MIN_ZOOM]=m.minZoom!==void 0?m.minZoom:-1/0,v[dd.MAX_ZOOM]=m.maxZoom!==void 0?m.maxZoom:1/0,x.className_=v.className!==void 0?v.className:"ol-layer",delete v.className,x.setProperties(v),x.state_=null,x}return f.prototype.getBackground=function(){return this.background_},f.prototype.getClassName=function(){return this.className_},f.prototype.getLayerState=function(m){var x=this.state_||{layer:this,managed:m===void 0?!0:m},v=this.getZIndex();return x.opacity=PC(Math.round(this.getOpacity()*100)/100,0,1),x.visible=this.getVisible(),x.extent=this.getExtent(),x.zIndex=v===void 0&&!x.managed?1/0:v,x.maxResolution=this.getMaxResolution(),x.minResolution=Math.max(this.getMinResolution(),0),x.minZoom=this.getMinZoom(),x.maxZoom=this.getMaxZoom(),this.state_=x,x},f.prototype.getLayersArray=function(m){return xl()},f.prototype.getLayerStatesArray=function(m){return xl()},f.prototype.getExtent=function(){return this.get(dd.EXTENT)},f.prototype.getMaxResolution=function(){return this.get(dd.MAX_RESOLUTION)},f.prototype.getMinResolution=function(){return this.get(dd.MIN_RESOLUTION)},f.prototype.getMinZoom=function(){return this.get(dd.MIN_ZOOM)},f.prototype.getMaxZoom=function(){return this.get(dd.MAX_ZOOM)},f.prototype.getOpacity=function(){return this.get(dd.OPACITY)},f.prototype.getSourceState=function(){return xl()},f.prototype.getVisible=function(){return this.get(dd.VISIBLE)},f.prototype.getZIndex=function(){return this.get(dd.Z_INDEX)},f.prototype.setBackground=function(m){this.background_=m,this.changed()},f.prototype.setExtent=function(m){this.set(dd.EXTENT,m)},f.prototype.setMaxResolution=function(m){this.set(dd.MAX_RESOLUTION,m)},f.prototype.setMinResolution=function(m){this.set(dd.MIN_RESOLUTION,m)},f.prototype.setMaxZoom=function(m){this.set(dd.MAX_ZOOM,m)},f.prototype.setMinZoom=function(m){this.set(dd.MIN_ZOOM,m)},f.prototype.setOpacity=function(m){Qu(typeof m=="number",64),this.set(dd.OPACITY,m)},f.prototype.setVisible=function(m){this.set(dd.VISIBLE,m)},f.prototype.setZIndex=function(m){this.set(dd.Z_INDEX,m)},f.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),o.prototype.disposeInternal.call(this)},f}(pA),ZAt=Chr;var Mte={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var bhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),whr=function(o){bhr(f,o);function f(m){var x=this,v=$x({},m);delete v.source,x=o.call(this,v)||this,x.on,x.once,x.un,x.mapPrecomposeKey_=null,x.mapRenderKey_=null,x.sourceChangeKey_=null,x.renderer_=null,x.rendered=!1,m.render&&(x.render=m.render),m.map&&x.setMap(m.map),x.addChangeListener(dd.SOURCE,x.handleSourcePropertyChange_);var y=m.source?m.source:null;return x.setSource(y),x}return f.prototype.getLayersArray=function(m){var x=m||[];return x.push(this),x},f.prototype.getLayerStatesArray=function(m){var x=m||[];return x.push(this.getLayerState()),x},f.prototype.getSource=function(){return this.get(dd.SOURCE)||null},f.prototype.getRenderSource=function(){return this.getSource()},f.prototype.getSourceState=function(){var m=this.getSource();return m?m.getState():"undefined"},f.prototype.handleSourceChange_=function(){this.changed()},f.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Fv(this.sourceChangeKey_),this.sourceChangeKey_=null);var m=this.getSource();m&&(this.sourceChangeKey_=IC(m,af.CHANGE,this.handleSourceChange_,this)),this.changed()},f.prototype.getFeatures=function(m){return this.renderer_?this.renderer_.getFeatures(m):new Promise(function(x){return x([])})},f.prototype.getData=function(m){return!this.renderer_||!this.rendered?null:this.renderer_.getData(m)},f.prototype.render=function(m,x){var v=this.getRenderer();if(v.prepareFrame(m))return this.rendered=!0,v.renderFrame(m,x)},f.prototype.unrender=function(){this.rendered=!1},f.prototype.setMapInternal=function(m){m||this.unrender(),this.set(dd.MAP,m)},f.prototype.getMapInternal=function(){return this.get(dd.MAP)},f.prototype.setMap=function(m){this.mapPrecomposeKey_&&(Fv(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),m||this.changed(),this.mapRenderKey_&&(Fv(this.mapRenderKey_),this.mapRenderKey_=null),m&&(this.mapPrecomposeKey_=IC(m,Mte.PRECOMPOSE,function(x){var v=x,y=v.frameState.layerStatesArray,C=this.getLayerState(!1);Qu(!y.some(function(w){return w.layer===C.layer}),67),y.push(C)},this),this.mapRenderKey_=IC(this,af.CHANGE,m.render,m),this.changed())},f.prototype.setSource=function(m){this.set(dd.SOURCE,m)},f.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},f.prototype.hasRenderer=function(){return!!this.renderer_},f.prototype.createRenderer=function(){return null},f.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),o.prototype.disposeInternal.call(this)},f}(ZAt);var eSt=whr;var iSt=gS(LHe(),1);var Thr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),tSt={RENDER_ORDER:"renderOrder"},Ehr=function(o){Thr(f,o);function f(m){var x=this,v=m||{},y=$x({},v);return delete y.style,delete y.renderBuffer,delete y.updateWhileAnimating,delete y.updateWhileInteracting,x=o.call(this,y)||this,x.declutter_=v.declutter!==void 0?v.declutter:!1,x.renderBuffer_=v.renderBuffer!==void 0?v.renderBuffer:100,x.style_=null,x.styleFunction_=void 0,x.setStyle(v.style),x.updateWhileAnimating_=v.updateWhileAnimating!==void 0?v.updateWhileAnimating:!1,x.updateWhileInteracting_=v.updateWhileInteracting!==void 0?v.updateWhileInteracting:!1,x}return f.prototype.getDeclutter=function(){return this.declutter_},f.prototype.getFeatures=function(m){return o.prototype.getFeatures.call(this,m)},f.prototype.getRenderBuffer=function(){return this.renderBuffer_},f.prototype.getRenderOrder=function(){return this.get(tSt.RENDER_ORDER)},f.prototype.getStyle=function(){return this.style_},f.prototype.getStyleFunction=function(){return this.styleFunction_},f.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},f.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},f.prototype.renderDeclutter=function(m){m.declutterTree||(m.declutterTree=new iSt.default(9)),this.getRenderer().renderDeclutter(m)},f.prototype.setRenderOrder=function(m){this.set(tSt.RENDER_ORDER,m)},f.prototype.setStyle=function(m){this.style_=m!==void 0?m:$At,this.styleFunction_=m===null?void 0:KAt(this.style_),this.changed()},f}(eSt),rSt=Ehr;var Dte={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},Rte=[Dte.FILL],LD=[Dte.STROKE],nO=[Dte.BEGIN_PATH],OHe=[Dte.CLOSE_PATH],Qs=Dte;var Ahr=function(){function o(){}return o.prototype.drawCustom=function(f,m,x,v){},o.prototype.drawGeometry=function(f){},o.prototype.setStyle=function(f){},o.prototype.drawCircle=function(f,m){},o.prototype.drawFeature=function(f,m){},o.prototype.drawGeometryCollection=function(f,m){},o.prototype.drawLineString=function(f,m){},o.prototype.drawMultiLineString=function(f,m){},o.prototype.drawMultiPoint=function(f,m){},o.prototype.drawMultiPolygon=function(f,m){},o.prototype.drawPoint=function(f,m){},o.prototype.drawPolygon=function(f,m){},o.prototype.drawText=function(f,m){},o.prototype.setFillStrokeStyle=function(f,m){},o.prototype.setImageStyle=function(f,m){},o.prototype.setTextStyle=function(f,m){},o}(),Cxe=Ahr;var Shr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Phr=function(o){Shr(f,o);function f(m,x,v,y){var C=o.call(this)||this;return C.tolerance=m,C.maxExtent=x,C.pixelRatio=y,C.maxLineWidth=0,C.resolution=v,C.beginGeometryInstruction1_=null,C.beginGeometryInstruction2_=null,C.bufferedMaxExtent_=null,C.instructions=[],C.coordinates=[],C.tmpCoordinate_=[],C.hitDetectionInstructions=[],C.state={},C}return f.prototype.applyPixelRatio=function(m){var x=this.pixelRatio;return x==1?m:m.map(function(v){return v*x})},f.prototype.appendFlatPointCoordinates=function(m,x){for(var v=this.getBufferedMaxExtent(),y=this.tmpCoordinate_,C=this.coordinates,w=C.length,T=0,E=m.length;T<E;T+=x)y[0]=m[T],y[1]=m[T+1],ID(v,y)&&(C[w++]=y[0],C[w++]=y[1]);return w},f.prototype.appendFlatLineCoordinates=function(m,x,v,y,C,w){var T=this.coordinates,E=T.length,A=this.getBufferedMaxExtent();w&&(x+=y);var S=m[x],M=m[x+1],I=this.tmpCoordinate_,P=!0,D,R,L;for(D=x+y;D<v;D+=y)I[0]=m[D],I[1]=m[D+1],L=Wme(A,I),L!==R?(P&&(T[E++]=S,T[E++]=M,P=!1),T[E++]=I[0],T[E++]=I[1]):L===Jx.INTERSECTING?(T[E++]=I[0],T[E++]=I[1],P=!1):P=!0,S=I[0],M=I[1],R=L;return(C&&P||D===x+y)&&(T[E++]=S,T[E++]=M),E},f.prototype.drawCustomCoordinates_=function(m,x,v,y,C){for(var w=0,T=v.length;w<T;++w){var E=v[w],A=this.appendFlatLineCoordinates(m,x,E,y,!1,!1);C.push(A),x=E}return x},f.prototype.drawCustom=function(m,x,v,y){this.beginGeometry(m,x);var C=m.getType(),w=m.getStride(),T=this.coordinates.length,E,A,S,M,I;switch(C){case"MultiPolygon":E=m.getOrientedFlatCoordinates(),M=[];var P=m.getEndss();I=0;for(var D=0,R=P.length;D<R;++D){var L=[];I=this.drawCustomCoordinates_(E,I,P[D],w,L),M.push(L)}this.instructions.push([Qs.CUSTOM,T,M,m,v,Tte]),this.hitDetectionInstructions.push([Qs.CUSTOM,T,M,m,y||v,Tte]);break;case"Polygon":case"MultiLineString":S=[],E=C=="Polygon"?m.getOrientedFlatCoordinates():m.getFlatCoordinates(),I=this.drawCustomCoordinates_(E,0,m.getEnds(),w,S),this.instructions.push([Qs.CUSTOM,T,S,m,v,YB]),this.hitDetectionInstructions.push([Qs.CUSTOM,T,S,m,y||v,YB]);break;case"LineString":case"Circle":E=m.getFlatCoordinates(),A=this.appendFlatLineCoordinates(E,0,E.length,w,!1,!1),this.instructions.push([Qs.CUSTOM,T,A,m,v,xA]),this.hitDetectionInstructions.push([Qs.CUSTOM,T,A,m,y||v,xA]);break;case"MultiPoint":E=m.getFlatCoordinates(),A=this.appendFlatPointCoordinates(E,w),A>T&&(this.instructions.push([Qs.CUSTOM,T,A,m,v,xA]),this.hitDetectionInstructions.push([Qs.CUSTOM,T,A,m,y||v,xA]));break;case"Point":E=m.getFlatCoordinates(),this.coordinates.push(E[0],E[1]),A=this.coordinates.length,this.instructions.push([Qs.CUSTOM,T,A,m,v]),this.hitDetectionInstructions.push([Qs.CUSTOM,T,A,m,y||v]);break;default:}this.endGeometry(x)},f.prototype.beginGeometry=function(m,x){this.beginGeometryInstruction1_=[Qs.BEGIN_GEOMETRY,x,0,m],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Qs.BEGIN_GEOMETRY,x,0,m],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},f.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},f.prototype.reverseHitDetectionInstructions=function(){var m=this.hitDetectionInstructions;m.reverse();var x,v=m.length,y,C,w=-1;for(x=0;x<v;++x)y=m[x],C=y[0],C==Qs.END_GEOMETRY?w=x:C==Qs.BEGIN_GEOMETRY&&(y[2]=x,QTt(this.hitDetectionInstructions,w,x),w=-1)},f.prototype.setFillStrokeStyle=function(m,x){var v=this.state;if(m){var y=m.getColor();v.fillStyle=s1(y||l1)}else v.fillStyle=void 0;if(x){var C=x.getColor();v.strokeStyle=s1(C||tO);var w=x.getLineCap();v.lineCap=w!==void 0?w:gH;var T=x.getLineDash();v.lineDash=T?T.slice():Q3;var E=x.getLineDashOffset();v.lineDashOffset=E||Z3;var A=x.getLineJoin();v.lineJoin=A!==void 0?A:RD;var S=x.getWidth();v.lineWidth=S!==void 0?S:rO;var M=x.getMiterLimit();v.miterLimit=M!==void 0?M:eO,v.lineWidth>this.maxLineWidth&&(this.maxLineWidth=v.lineWidth,this.bufferedMaxExtent_=null)}else v.strokeStyle=void 0,v.lineCap=void 0,v.lineDash=null,v.lineDashOffset=void 0,v.lineJoin=void 0,v.lineWidth=void 0,v.miterLimit=void 0},f.prototype.createFill=function(m){var x=m.fillStyle,v=[Qs.SET_FILL_STYLE,x];return typeof x!="string"&&v.push(!0),v},f.prototype.applyStroke=function(m){this.instructions.push(this.createStroke(m))},f.prototype.createStroke=function(m){return[Qs.SET_STROKE_STYLE,m.strokeStyle,m.lineWidth*this.pixelRatio,m.lineCap,m.lineJoin,m.miterLimit,this.applyPixelRatio(m.lineDash),m.lineDashOffset*this.pixelRatio]},f.prototype.updateFillStyle=function(m,x){var v=m.fillStyle;(typeof v!="string"||m.currentFillStyle!=v)&&(v!==void 0&&this.instructions.push(x.call(this,m)),m.currentFillStyle=v)},f.prototype.updateStrokeStyle=function(m,x){var v=m.strokeStyle,y=m.lineCap,C=m.lineDash,w=m.lineDashOffset,T=m.lineJoin,E=m.lineWidth,A=m.miterLimit;(m.currentStrokeStyle!=v||m.currentLineCap!=y||C!=m.currentLineDash&&!SD(m.currentLineDash,C)||m.currentLineDashOffset!=w||m.currentLineJoin!=T||m.currentLineWidth!=E||m.currentMiterLimit!=A)&&(v!==void 0&&x.call(this,m),m.currentStrokeStyle=v,m.currentLineCap=y,m.currentLineDash=C,m.currentLineDashOffset=w,m.currentLineJoin=T,m.currentLineWidth=E,m.currentMiterLimit=A)},f.prototype.endGeometry=function(m){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var x=[Qs.END_GEOMETRY,m];this.instructions.push(x),this.hitDetectionInstructions.push(x)},f.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=xEt(this.maxExtent),this.maxLineWidth>0)){var m=this.resolution*(this.maxLineWidth+1)/2;UP(this.bufferedMaxExtent_,m,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},f}(Cxe),OD=Phr;var Ihr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Mhr=function(o){Ihr(f,o);function f(m,x,v,y){var C=o.call(this,m,x,v,y)||this;return C.hitDetectionImage_=null,C.image_=null,C.imagePixelRatio_=void 0,C.anchorX_=void 0,C.anchorY_=void 0,C.height_=void 0,C.opacity_=void 0,C.originX_=void 0,C.originY_=void 0,C.rotateWithView_=void 0,C.rotation_=void 0,C.scale_=void 0,C.width_=void 0,C.declutterMode_=void 0,C.declutterImageWithText_=void 0,C}return f.prototype.drawPoint=function(m,x){if(!!this.image_){this.beginGeometry(m,x);var v=m.getFlatCoordinates(),y=m.getStride(),C=this.coordinates.length,w=this.appendFlatPointCoordinates(v,y);this.instructions.push([Qs.DRAW_IMAGE,C,w,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qs.DRAW_IMAGE,C,w,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(x)}},f.prototype.drawMultiPoint=function(m,x){if(!!this.image_){this.beginGeometry(m,x);var v=m.getFlatCoordinates(),y=m.getStride(),C=this.coordinates.length,w=this.appendFlatPointCoordinates(v,y);this.instructions.push([Qs.DRAW_IMAGE,C,w,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qs.DRAW_IMAGE,C,w,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(x)}},f.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,o.prototype.finish.call(this)},f.prototype.setImageStyle=function(m,x){var v=m.getAnchor(),y=m.getSize(),C=m.getOrigin();this.imagePixelRatio_=m.getPixelRatio(this.pixelRatio),this.anchorX_=v[0],this.anchorY_=v[1],this.hitDetectionImage_=m.getHitDetectionImage(),this.image_=m.getImage(this.pixelRatio),this.height_=y[1],this.opacity_=m.getOpacity(),this.originX_=C[0],this.originY_=C[1],this.rotateWithView_=m.getRotateWithView(),this.rotation_=m.getRotation(),this.scale_=m.getScaleArray(),this.width_=y[0],this.declutterMode_=m.getDeclutterMode(),this.declutterImageWithText_=x},f}(OD),nSt=Mhr;var Dhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Rhr=function(o){Dhr(f,o);function f(m,x,v,y){return o.call(this,m,x,v,y)||this}return f.prototype.drawFlatCoordinates_=function(m,x,v,y){var C=this.coordinates.length,w=this.appendFlatLineCoordinates(m,x,v,y,!1,!1),T=[Qs.MOVE_TO_LINE_TO,C,w];return this.instructions.push(T),this.hitDetectionInstructions.push(T),v},f.prototype.drawLineString=function(m,x){var v=this.state,y=v.strokeStyle,C=v.lineWidth;if(!(y===void 0||C===void 0)){this.updateStrokeStyle(v,this.applyStroke),this.beginGeometry(m,x),this.hitDetectionInstructions.push([Qs.SET_STROKE_STYLE,v.strokeStyle,v.lineWidth,v.lineCap,v.lineJoin,v.miterLimit,Q3,Z3],nO);var w=m.getFlatCoordinates(),T=m.getStride();this.drawFlatCoordinates_(w,0,w.length,T),this.hitDetectionInstructions.push(LD),this.endGeometry(x)}},f.prototype.drawMultiLineString=function(m,x){var v=this.state,y=v.strokeStyle,C=v.lineWidth;if(!(y===void 0||C===void 0)){this.updateStrokeStyle(v,this.applyStroke),this.beginGeometry(m,x),this.hitDetectionInstructions.push([Qs.SET_STROKE_STYLE,v.strokeStyle,v.lineWidth,v.lineCap,v.lineJoin,v.miterLimit,v.lineDash,v.lineDashOffset],nO);for(var w=m.getEnds(),T=m.getFlatCoordinates(),E=m.getStride(),A=0,S=0,M=w.length;S<M;++S)A=this.drawFlatCoordinates_(T,A,w[S],E);this.hitDetectionInstructions.push(LD),this.endGeometry(x)}},f.prototype.finish=function(){var m=this.state;return m.lastStroke!=null&&m.lastStroke!=this.coordinates.length&&this.instructions.push(LD),this.reverseHitDetectionInstructions(),this.state=null,o.prototype.finish.call(this)},f.prototype.applyStroke=function(m){m.lastStroke!=null&&m.lastStroke!=this.coordinates.length&&(this.instructions.push(LD),m.lastStroke=this.coordinates.length),m.lastStroke=0,o.prototype.applyStroke.call(this,m),this.instructions.push(nO)},f}(OD),oSt=Rhr;var Lhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Ohr=function(o){Lhr(f,o);function f(m,x,v,y){return o.call(this,m,x,v,y)||this}return f.prototype.drawFlatCoordinatess_=function(m,x,v,y){var C=this.state,w=C.fillStyle!==void 0,T=C.strokeStyle!==void 0,E=v.length;this.instructions.push(nO),this.hitDetectionInstructions.push(nO);for(var A=0;A<E;++A){var S=v[A],M=this.coordinates.length,I=this.appendFlatLineCoordinates(m,x,S,y,!0,!T),P=[Qs.MOVE_TO_LINE_TO,M,I];this.instructions.push(P),this.hitDetectionInstructions.push(P),T&&(this.instructions.push(OHe),this.hitDetectionInstructions.push(OHe)),x=S}return w&&(this.instructions.push(Rte),this.hitDetectionInstructions.push(Rte)),T&&(this.instructions.push(LD),this.hitDetectionInstructions.push(LD)),x},f.prototype.drawCircle=function(m,x){var v=this.state,y=v.fillStyle,C=v.strokeStyle;if(!(y===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),v.fillStyle!==void 0&&this.hitDetectionInstructions.push([Qs.SET_FILL_STYLE,l1]),v.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Qs.SET_STROKE_STYLE,v.strokeStyle,v.lineWidth,v.lineCap,v.lineJoin,v.miterLimit,v.lineDash,v.lineDashOffset]);var w=m.getFlatCoordinates(),T=m.getStride(),E=this.coordinates.length;this.appendFlatLineCoordinates(w,0,w.length,T,!1,!1);var A=[Qs.CIRCLE,E];this.instructions.push(nO,A),this.hitDetectionInstructions.push(nO,A),v.fillStyle!==void 0&&(this.instructions.push(Rte),this.hitDetectionInstructions.push(Rte)),v.strokeStyle!==void 0&&(this.instructions.push(LD),this.hitDetectionInstructions.push(LD)),this.endGeometry(x)}},f.prototype.drawPolygon=function(m,x){var v=this.state,y=v.fillStyle,C=v.strokeStyle;if(!(y===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),v.fillStyle!==void 0&&this.hitDetectionInstructions.push([Qs.SET_FILL_STYLE,l1]),v.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Qs.SET_STROKE_STYLE,v.strokeStyle,v.lineWidth,v.lineCap,v.lineJoin,v.miterLimit,v.lineDash,v.lineDashOffset]);var w=m.getEnds(),T=m.getOrientedFlatCoordinates(),E=m.getStride();this.drawFlatCoordinatess_(T,0,w,E),this.endGeometry(x)}},f.prototype.drawMultiPolygon=function(m,x){var v=this.state,y=v.fillStyle,C=v.strokeStyle;if(!(y===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),v.fillStyle!==void 0&&this.hitDetectionInstructions.push([Qs.SET_FILL_STYLE,l1]),v.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Qs.SET_STROKE_STYLE,v.strokeStyle,v.lineWidth,v.lineCap,v.lineJoin,v.miterLimit,v.lineDash,v.lineDashOffset]);for(var w=m.getEndss(),T=m.getOrientedFlatCoordinates(),E=m.getStride(),A=0,S=0,M=w.length;S<M;++S)A=this.drawFlatCoordinatess_(T,A,w[S],E);this.endGeometry(x)}},f.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var m=this.tolerance;if(m!==0)for(var x=this.coordinates,v=0,y=x.length;v<y;++v)x[v]=qB(x[v],m);return o.prototype.finish.call(this)},f.prototype.setFillStrokeStyles_=function(){var m=this.state,x=m.fillStyle;x!==void 0&&this.updateFillStyle(m,this.createFill),m.strokeStyle!==void 0&&this.updateStrokeStyle(m,this.applyStroke)},f}(OD),NHe=Ohr;function aSt(o,f,m,x,v){var y=m,C=m,w=0,T=0,E=m,A,S,M,I,P,D,R,L,O,F;for(S=m;S<x;S+=v){var B=f[S],H=f[S+1];P!==void 0&&(O=B-P,F=H-D,I=Math.sqrt(O*O+F*F),R!==void 0&&(T+=M,A=Math.acos((R*O+L*F)/(M*I)),A>o&&(T>w&&(w=T,y=E,C=S),T=0,E=S-v)),M=I,R=O,L=F),P=B,D=H}return T+=I,T>w?[E,S]:[y,C]}var Nhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Yj={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Fhr=function(o){Nhr(f,o);function f(m,x,v,y){var C=o.call(this,m,x,v,y)||this;return C.labels_=null,C.text_="",C.textOffsetX_=0,C.textOffsetY_=0,C.textRotateWithView_=void 0,C.textRotation_=0,C.textFillState_=null,C.fillStates={},C.textStrokeState_=null,C.strokeStates={},C.textState_={},C.textStates={},C.textKey_="",C.fillKey_="",C.strokeKey_="",C.declutterImageWithText_=void 0,C}return f.prototype.finish=function(){var m=o.prototype.finish.call(this);return m.textStates=this.textStates,m.fillStates=this.fillStates,m.strokeStates=this.strokeStates,m},f.prototype.drawText=function(m,x){var v=this.textFillState_,y=this.textStrokeState_,C=this.textState_;if(!(this.text_===""||!C||!v&&!y)){var w=this.coordinates,T=w.length,E=m.getType(),A=null,S=m.getStride();if(C.placement===yxe.LINE&&(E=="LineString"||E=="MultiLineString"||E=="Polygon"||E=="MultiPolygon")){if(!sf(this.getBufferedMaxExtent(),m.getExtent()))return;var M=void 0;if(A=m.getFlatCoordinates(),E=="LineString")M=[A.length];else if(E=="MultiLineString")M=m.getEnds();else if(E=="Polygon")M=m.getEnds().slice(0,1);else if(E=="MultiPolygon"){var I=m.getEndss();M=[];for(var P=0,D=I.length;P<D;++P)M.push(I[P][0])}this.beginGeometry(m,x);for(var R=C.textAlign,L=0,O=void 0,F=0,B=M.length;F<B;++F){if(R==null){var H=aSt(C.maxAngle,A,L,M[F],S);L=H[0],O=H[1]}else O=M[F];for(var P=L;P<O;P+=S)w.push(A[P],A[P+1]);var G=w.length;L=M[F],this.drawChars_(T,G),T=G}this.endGeometry(x)}else{var W=C.overflow?null:[];switch(E){case"Point":case"MultiPoint":A=m.getFlatCoordinates();break;case"LineString":A=m.getFlatMidpoint();break;case"Circle":A=m.getCenter();break;case"MultiLineString":A=m.getFlatMidpoints(),S=2;break;case"Polygon":A=m.getFlatInteriorPoint(),C.overflow||W.push(A[2]/this.resolution),S=3;break;case"MultiPolygon":var Y=m.getFlatInteriorPoints();A=[];for(var P=0,D=Y.length;P<D;P+=3)C.overflow||W.push(Y[P+2]/this.resolution),A.push(Y[P],Y[P+1]);if(A.length===0)return;S=2;break;default:}var G=this.appendFlatPointCoordinates(A,S);if(G===T)return;if(W&&(G-T)/2!==A.length/S){var K=T/2;W=W.filter(function(ee,oe){var ae=w[(K+oe)*2]===A[oe*S]&&w[(K+oe)*2+1]===A[oe*S+1];return ae||--K,ae})}this.saveTextStates_(),(C.backgroundFill||C.backgroundStroke)&&(this.setFillStrokeStyle(C.backgroundFill,C.backgroundStroke),C.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),C.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(m,x);var X=C.padding;if(X!=iO&&(C.scale[0]<0||C.scale[1]<0)){var q=C.padding[0],J=C.padding[1],Z=C.padding[2],z=C.padding[3];C.scale[0]<0&&(J=-J,z=-z),C.scale[1]<0&&(q=-q,Z=-Z),X=[q,J,Z,z]}var te=this.pixelRatio;this.instructions.push([Qs.DRAW_IMAGE,T,G,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,X==iO?iO:X.map(function(ee){return ee*te}),!!C.backgroundFill,!!C.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,W]);var ie=1/te;this.hitDetectionInstructions.push([Qs.DRAW_IMAGE,T,G,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[ie,ie],NaN,void 0,this.declutterImageWithText_,X,!!C.backgroundFill,!!C.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,W]),this.endGeometry(x)}}},f.prototype.saveTextStates_=function(){var m=this.textStrokeState_,x=this.textState_,v=this.textFillState_,y=this.strokeKey_;m&&(y in this.strokeStates||(this.strokeStates[y]={strokeStyle:m.strokeStyle,lineCap:m.lineCap,lineDashOffset:m.lineDashOffset,lineWidth:m.lineWidth,lineJoin:m.lineJoin,miterLimit:m.miterLimit,lineDash:m.lineDash}));var C=this.textKey_;C in this.textStates||(this.textStates[C]={font:x.font,textAlign:x.textAlign||JB,justify:x.justify,textBaseline:x.textBaseline||_H,scale:x.scale});var w=this.fillKey_;v&&(w in this.fillStates||(this.fillStates[w]={fillStyle:v.fillStyle}))},f.prototype.drawChars_=function(m,x){var v=this.textStrokeState_,y=this.textState_,C=this.strokeKey_,w=this.textKey_,T=this.fillKey_;this.saveTextStates_();var E=this.pixelRatio,A=Yj[y.textBaseline],S=this.textOffsetY_*E,M=this.text_,I=v?v.lineWidth*Math.abs(y.scale[0])/2:0;this.instructions.push([Qs.DRAW_CHARS,m,x,A,y.overflow,T,y.maxAngle,E,S,C,I*E,M,w,1]),this.hitDetectionInstructions.push([Qs.DRAW_CHARS,m,x,A,y.overflow,T,y.maxAngle,1,S,C,I,M,w,1/E])},f.prototype.setTextStyle=function(m,x){var v,y,C;if(!m)this.text_="";else{var w=m.getFill();w?(y=this.textFillState_,y||(y={},this.textFillState_=y),y.fillStyle=s1(w.getColor()||l1)):(y=null,this.textFillState_=y);var T=m.getStroke();if(!T)C=null,this.textStrokeState_=C;else{C=this.textStrokeState_,C||(C={},this.textStrokeState_=C);var E=T.getLineDash(),A=T.getLineDashOffset(),S=T.getWidth(),M=T.getMiterLimit();C.lineCap=T.getLineCap()||gH,C.lineDash=E?E.slice():Q3,C.lineDashOffset=A===void 0?Z3:A,C.lineJoin=T.getLineJoin()||RD,C.lineWidth=S===void 0?rO:S,C.miterLimit=M===void 0?eO:M,C.strokeStyle=s1(T.getColor()||tO)}v=this.textState_;var I=m.getFont()||vxe;UAt(I);var P=m.getScaleArray();v.overflow=m.getOverflow(),v.font=I,v.maxAngle=m.getMaxAngle(),v.placement=m.getPlacement(),v.textAlign=m.getTextAlign(),v.justify=m.getJustify(),v.textBaseline=m.getTextBaseline()||_H,v.backgroundFill=m.getBackgroundFill(),v.backgroundStroke=m.getBackgroundStroke(),v.padding=m.getPadding()||iO,v.scale=P===void 0?[1,1]:P;var D=m.getOffsetX(),R=m.getOffsetY(),L=m.getRotateWithView(),O=m.getRotation();this.text_=m.getText()||"",this.textOffsetX_=D===void 0?0:D,this.textOffsetY_=R===void 0?0:R,this.textRotateWithView_=L===void 0?!1:L,this.textRotation_=O===void 0?0:O,this.strokeKey_=C?(typeof C.strokeStyle=="string"?C.strokeStyle:ju(C.strokeStyle))+C.lineCap+C.lineDashOffset+"|"+C.lineWidth+C.lineJoin+C.miterLimit+"["+C.lineDash.join()+"]":"",this.textKey_=v.font+v.scale+(v.textAlign||"?")+(v.justify||"?")+(v.textBaseline||"?"),this.fillKey_=y?typeof y.fillStyle=="string"?y.fillStyle:"|"+ju(y.fillStyle):""}this.declutterImageWithText_=x},f}(OD),sSt=Fhr;var Bhr={Circle:NHe,Default:OD,Image:nSt,LineString:oSt,Polygon:NHe,Text:sSt},khr=function(){function o(f,m,x,v){this.tolerance_=f,this.maxExtent_=m,this.pixelRatio_=v,this.resolution_=x,this.buildersByZIndex_={}}return o.prototype.finish=function(){var f={};for(var m in this.buildersByZIndex_){f[m]=f[m]||{};var x=this.buildersByZIndex_[m];for(var v in x){var y=x[v].finish();f[m][v]=y}}return f},o.prototype.getBuilder=function(f,m){var x=f!==void 0?f.toString():"0",v=this.buildersByZIndex_[x];v===void 0&&(v={},this.buildersByZIndex_[x]=v);var y=v[m];if(y===void 0){var C=Bhr[m];y=new C(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),v[m]=y}return y},o}(),FHe=khr;function lSt(o,f,m,x,v,y,C,w,T,E,A,S){var M=o[f],I=o[f+1],P=0,D=0,R=0,L=0;function O(){P=M,D=I,f+=x,M=o[f],I=o[f+1],L+=R,R=Math.sqrt((M-P)*(M-P)+(I-D)*(I-D))}do O();while(f<m-x&&L+R<y);for(var F=R===0?0:(y-L)/R,B=dA(P,M,F),H=dA(D,I,F),G=f-x,W=L,Y=y+w*T(E,v,A);f<m-x&&L+R<Y;)O();F=R===0?0:(Y-L)/R;var K=dA(P,M,F),X=dA(D,I,F),q;if(S){var J=[B,H,K,X];sxe(J,0,4,2,S,J,J),q=J[0]>J[2]}else q=B>K;var Z=Math.PI,z=[],te=G+x===f;f=G,R=0,L=W,M=o[f],I=o[f+1];var ie;if(te){O(),ie=Math.atan2(I-D,M-P),q&&(ie+=ie>0?-Z:Z);var re=(K+B)/2,ee=(X+H)/2;return z[0]=[re,ee,(Y-y)/2,ie,v],z}v=v.replace(/\n/g," ");for(var oe=0,ae=v.length;oe<ae;){O();var he=Math.atan2(I-D,M-P);if(q&&(he+=he>0?-Z:Z),ie!==void 0){var me=he-ie;if(me+=me>Z?-2*Z:me<-Z?2*Z:0,Math.abs(me)>C)return null}ie=he;for(var ue=oe,ce=0;oe<ae;++oe){var de=q?ae-oe-1:oe,fe=w*T(E,v[de],A);if(f+x<m&&L+R<y+ce+fe/2)break;ce+=fe}if(oe!==ue){var we=q?v.substring(ae-ue,ae-oe):v.substring(ue,oe);F=R===0?0:(y+ce/2-L)/R;var re=dA(P,M,F),ee=dA(D,I,F);z.push([re,ee,ce/2,he,we]),y+=ce}}return z}var Xj=F_(),QB=[],oO=[],aO=[],ZB=[];function uSt(o){return o[3].declutterBox}var Vhr=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function cSt(o,f){return(f==="start"||f==="end")&&!Vhr.test(o)&&(f=f==="start"?"left":"right"),Yj[f]}function zhr(o,f,m){return m>0&&o.push(`
`,""),o.push(f,""),o}var Uhr=function(){function o(f,m,x,v){this.overlaps=x,this.pixelRatio=m,this.resolution=f,this.alignFill_,this.instructions=v.instructions,this.coordinates=v.coordinates,this.coordinateCache_={},this.renderedTransform_=Bv(),this.hitDetectionInstructions=v.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=v.fillStates||{},this.strokeStates=v.strokeStates||{},this.textStates=v.textStates||{},this.widths_={},this.labels_={}}return o.prototype.createLabel=function(f,m,x,v){var y=f+m+x+v;if(this.labels_[y])return this.labels_[y];var C=v?this.strokeStates[v]:null,w=x?this.fillStates[x]:null,T=this.textStates[m],E=this.pixelRatio,A=[T.scale[0]*E,T.scale[1]*E],S=Array.isArray(f),M=T.justify?Yj[T.justify]:cSt(Array.isArray(f)?f[0]:f,T.textAlign||JB),I=v&&C.lineWidth?C.lineWidth:0,P=S?f:f.split(`
`).reduce(zhr,[]),D=GAt(T,P),R=D.width,L=D.height,O=D.widths,F=D.heights,B=D.lineWidths,H=R+I,G=[],W=(H+2)*A[0],Y=(L+I)*A[1],K={width:W<0?Math.floor(W):Math.ceil(W),height:Y<0?Math.floor(Y):Math.ceil(Y),contextInstructions:G};if((A[0]!=1||A[1]!=1)&&G.push("scale",A),v){G.push("strokeStyle",C.strokeStyle),G.push("lineWidth",I),G.push("lineCap",C.lineCap),G.push("lineJoin",C.lineJoin),G.push("miterLimit",C.miterLimit);var X=jB?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;X.prototype.setLineDash&&(G.push("setLineDash",[C.lineDash]),G.push("lineDashOffset",C.lineDashOffset))}x&&G.push("fillStyle",w.fillStyle),G.push("textBaseline","middle"),G.push("textAlign","center");for(var q=.5-M,J=M*H+q*I,Z=[],z=[],te=0,ie=0,re=0,ee=0,oe,ae=0,he=P.length;ae<he;ae+=2){var me=P[ae];if(me===`
`){ie+=te,te=0,J=M*H+q*I,++ee;continue}var ue=P[ae+1]||T.font;ue!==oe&&(v&&Z.push("font",ue),x&&z.push("font",ue),oe=ue),te=Math.max(te,F[re]);var ce=[me,J+q*O[re]+M*(O[re]-B[ee]),.5*(I+te)+ie];J+=O[re],v&&Z.push("strokeText",ce),x&&z.push("fillText",ce),++re}return Array.prototype.push.apply(G,Z),Array.prototype.push.apply(G,z),this.labels_[y]=K,K},o.prototype.replayTextBackground_=function(f,m,x,v,y,C,w){f.beginPath(),f.moveTo.apply(f,m),f.lineTo.apply(f,x),f.lineTo.apply(f,v),f.lineTo.apply(f,y),f.lineTo.apply(f,m),C&&(this.alignFill_=C[2],this.fill_(f)),w&&(this.setStrokeStyle_(f,w),f.stroke())},o.prototype.calculateImageOrLabelDimensions_=function(f,m,x,v,y,C,w,T,E,A,S,M,I,P,D,R){w*=M[0],T*=M[1];var L=x-w,O=v-T,F=y+E>f?f-E:y,B=C+A>m?m-A:C,H=P[3]+F*M[0]+P[1],G=P[0]+B*M[1]+P[2],W=L-P[3],Y=O-P[0];(D||S!==0)&&(QB[0]=W,ZB[0]=W,QB[1]=Y,oO[1]=Y,oO[0]=W+H,aO[0]=oO[0],aO[1]=Y+G,ZB[1]=aO[1]);var K;return S!==0?(K=l2(Bv(),x,v,1,1,S,-x,-v),Em(K,QB),Em(K,oO),Em(K,aO),Em(K,ZB),nT(Math.min(QB[0],oO[0],aO[0],ZB[0]),Math.min(QB[1],oO[1],aO[1],ZB[1]),Math.max(QB[0],oO[0],aO[0],ZB[0]),Math.max(QB[1],oO[1],aO[1],ZB[1]),Xj)):nT(Math.min(W,W+H),Math.min(Y,Y+G),Math.max(W,W+H),Math.max(Y,Y+G),Xj),I&&(L=Math.round(L),O=Math.round(O)),{drawImageX:L,drawImageY:O,drawImageW:F,drawImageH:B,originX:E,originY:A,declutterBox:{minX:Xj[0],minY:Xj[1],maxX:Xj[2],maxY:Xj[3],value:R},canvasTransform:K,scale:M}},o.prototype.replayImageOrLabel_=function(f,m,x,v,y,C,w){var T=!!(C||w),E=v.declutterBox,A=f.canvas,S=w?w[2]*v.scale[0]/2:0,M=E.minX-S<=A.width/m&&E.maxX+S>=0&&E.minY-S<=A.height/m&&E.maxY+S>=0;return M&&(T&&this.replayTextBackground_(f,QB,oO,aO,ZB,C,w),WAt(f,v.canvasTransform,y,x,v.originX,v.originY,v.drawImageW,v.drawImageH,v.drawImageX,v.drawImageY,v.scale)),!0},o.prototype.fill_=function(f){if(this.alignFill_){var m=Em(this.renderedTransform_,[0,0]),x=512*this.pixelRatio;f.save(),f.translate(m[0]%x,m[1]%x),f.rotate(this.viewRotation_)}f.fill(),this.alignFill_&&f.restore()},o.prototype.setStrokeStyle_=function(f,m){f.strokeStyle=m[1],f.lineWidth=m[2],f.lineCap=m[3],f.lineJoin=m[4],f.miterLimit=m[5],f.setLineDash&&(f.lineDashOffset=m[7],f.setLineDash(m[6]))},o.prototype.drawLabelWithPointPlacement_=function(f,m,x,v){var y=this.textStates[m],C=this.createLabel(f,m,v,x),w=this.strokeStates[x],T=this.pixelRatio,E=cSt(Array.isArray(f)?f[0]:f,y.textAlign||JB),A=Yj[y.textBaseline||_H],S=w&&w.lineWidth?w.lineWidth:0,M=C.width/T-2*y.scale[0],I=E*M+2*(.5-E)*S,P=A*C.height/T+2*(.5-A)*S;return{label:C,anchorX:I,anchorY:P}},o.prototype.execute_=function(f,m,x,v,y,C,w,T){var E;this.pixelCoordinates_&&SD(x,this.renderedTransform_)?E=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),E=o1(this.coordinates,0,this.coordinates.length,2,x,this.pixelCoordinates_),sAt(this.renderedTransform_,x));for(var A=0,S=v.length,M=0,I,P,D,R,L,O,F,B,H,G,W,Y,K=0,X=0,q=null,J=null,Z=this.coordinateCache_,z=this.viewRotation_,te=Math.round(Math.atan2(-x[1],x[0])*1e12)/1e12,ie={context:f,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:z},re=this.instructions!=v||this.overlaps?0:200,ee,oe,ae,he;A<S;){var me=v[A],ue=me[0];switch(ue){case Qs.BEGIN_GEOMETRY:ee=me[1],he=me[3],ee.getGeometry()?w!==void 0&&!sf(w,he.getExtent())?A=me[2]+1:++A:A=me[2];break;case Qs.BEGIN_PATH:K>re&&(this.fill_(f),K=0),X>re&&(f.stroke(),X=0),!K&&!X&&(f.beginPath(),R=NaN,L=NaN),++A;break;case Qs.CIRCLE:M=me[1];var ce=E[M],de=E[M+1],fe=E[M+2],we=E[M+3],Te=fe-ce,Ae=we-de,Fe=Math.sqrt(Te*Te+Ae*Ae);f.moveTo(ce+Fe,de),f.arc(ce,de,Fe,0,2*Math.PI,!0),++A;break;case Qs.CLOSE_PATH:f.closePath(),++A;break;case Qs.CUSTOM:M=me[1],I=me[2];var Ue=me[3],it=me[4],lt=me.length==6?me[5]:void 0;ie.geometry=Ue,ie.feature=ee,A in Z||(Z[A]=[]);var ft=Z[A];lt?lt(E,M,I,2,ft):(ft[0]=E[M],ft[1]=E[M+1],ft.length=2),it(ft,ie),++A;break;case Qs.DRAW_IMAGE:M=me[1],I=me[2],B=me[3],P=me[4],D=me[5];var vt=me[6],Pt=me[7],rt=me[8],yt=me[9],Dt=me[10],Lt=me[11],Ct=me[12],se=me[13],ye=me[14],Je=me[15];if(!B&&me.length>=20){H=me[19],G=me[20],W=me[21],Y=me[22];var Ft=this.drawLabelWithPointPlacement_(H,G,W,Y);B=Ft.label,me[3]=B;var jt=me[23];P=(Ft.anchorX-jt)*this.pixelRatio,me[4]=P;var gt=me[24];D=(Ft.anchorY-gt)*this.pixelRatio,me[5]=D,vt=B.height,me[6]=vt,se=B.width,me[13]=se}var nt=void 0;me.length>25&&(nt=me[25]);var Ze=void 0,tt=void 0,Ye=void 0;me.length>17?(Ze=me[16],tt=me[17],Ye=me[18]):(Ze=iO,tt=!1,Ye=!1),Dt&&te?Lt+=z:!Dt&&!te&&(Lt-=z);for(var Et=0;M<I;M+=2)if(!(nt&&nt[Et++]<se/this.pixelRatio)){var Qt=this.calculateImageOrLabelDimensions_(B.width,B.height,E[M],E[M+1],se,vt,P,D,rt,yt,Lt,Ct,y,Ze,tt||Ye,ee),Bt=[f,m,B,Qt,Pt,tt?q:null,Ye?J:null];if(T){if(ye==="none")continue;if(ye==="obstacle"){T.insert(Qt.declutterBox);continue}else{var Kt=void 0,Mi=void 0;if(Je){var $t=I-M;if(!Je[$t]){Je[$t]=Bt;continue}if(Kt=Je[$t],delete Je[$t],Mi=uSt(Kt),T.collides(Mi))continue}if(T.collides(Qt.declutterBox))continue;Kt&&(T.insert(Mi),this.replayImageOrLabel_.apply(this,Kt)),T.insert(Qt.declutterBox)}}this.replayImageOrLabel_.apply(this,Bt)}++A;break;case Qs.DRAW_CHARS:var yi=me[1],Be=me[2],Ve=me[3],Ne=me[4];Y=me[5];var je=me[6],Ge=me[7],mt=me[8];W=me[9];var bt=me[10];H=me[11],G=me[12];var We=[me[13],me[13]],ct=this.textStates[G],Ot=ct.font,Nt=[ct.scale[0]*Ge,ct.scale[1]*Ge],Mt=void 0;Ot in this.widths_?Mt=this.widths_[Ot]:(Mt={},this.widths_[Ot]=Mt);var fi=uxe(E,yi,Be,2),Vi=Math.abs(Nt[0])*IHe(Ot,H,Mt);if(Ne||Vi<=fi){var Ri=this.textStates[G].textAlign,Qi=(fi-Vi)*Yj[Ri],Bi=lSt(E,yi,Be,2,H,Qi,je,Math.abs(Nt[0]),IHe,Ot,Mt,te?0:this.viewRotation_);e:if(Bi){var Gt=[],Jt=void 0,ui=void 0,oi=void 0,xi=void 0,zi=void 0;if(W)for(Jt=0,ui=Bi.length;Jt<ui;++Jt){zi=Bi[Jt],oi=zi[4],xi=this.createLabel(oi,G,"",W),P=zi[2]+(Nt[0]<0?-bt:bt),D=Ve*xi.height+(.5-Ve)*2*bt*Nt[1]/Nt[0]-mt;var Qt=this.calculateImageOrLabelDimensions_(xi.width,xi.height,zi[0],zi[1],xi.width,xi.height,P,D,0,0,zi[3],We,!1,iO,!1,ee);if(T&&T.collides(Qt.declutterBox))break e;Gt.push([f,m,xi,Qt,1,null,null])}if(Y)for(Jt=0,ui=Bi.length;Jt<ui;++Jt){zi=Bi[Jt],oi=zi[4],xi=this.createLabel(oi,G,Y,""),P=zi[2],D=Ve*xi.height-mt;var Qt=this.calculateImageOrLabelDimensions_(xi.width,xi.height,zi[0],zi[1],xi.width,xi.height,P,D,0,0,zi[3],We,!1,iO,!1,ee);if(T&&T.collides(Qt.declutterBox))break e;Gt.push([f,m,xi,Qt,1,null,null])}T&&T.load(Gt.map(uSt));for(var tr=0,xr=Gt.length;tr<xr;++tr)this.replayImageOrLabel_.apply(this,Gt[tr])}}++A;break;case Qs.END_GEOMETRY:if(C!==void 0){ee=me[1];var Vr=C(ee,he);if(Vr)return Vr}++A;break;case Qs.FILL:re?K++:this.fill_(f),++A;break;case Qs.MOVE_TO_LINE_TO:for(M=me[1],I=me[2],oe=E[M],ae=E[M+1],O=oe+.5|0,F=ae+.5|0,(O!==R||F!==L)&&(f.moveTo(oe,ae),R=O,L=F),M+=2;M<I;M+=2)oe=E[M],ae=E[M+1],O=oe+.5|0,F=ae+.5|0,(M==I-2||O!==R||F!==L)&&(f.lineTo(oe,ae),R=O,L=F);++A;break;case Qs.SET_FILL_STYLE:q=me,this.alignFill_=me[2],K&&(this.fill_(f),K=0,X&&(f.stroke(),X=0)),f.fillStyle=me[1],++A;break;case Qs.SET_STROKE_STYLE:J=me,X&&(f.stroke(),X=0),this.setStrokeStyle_(f,me),++A;break;case Qs.STROKE:re?X++:f.stroke(),++A;break;default:++A;break}}K&&this.fill_(f),X&&f.stroke()},o.prototype.execute=function(f,m,x,v,y,C){this.viewRotation_=v,this.execute_(f,m,x,this.instructions,y,void 0,void 0,C)},o.prototype.executeHitDetection=function(f,m,x,v,y){return this.viewRotation_=x,this.execute_(f,1,m,this.hitDetectionInstructions,!0,v,y)},o}(),hSt=Uhr;var BHe=["Polygon","Circle","LineString","Image","Text","Default"],Hhr=function(){function o(f,m,x,v,y,C){this.maxExtent_=f,this.overlaps_=v,this.pixelRatio_=x,this.resolution_=m,this.renderBuffer_=C,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Bv(),this.createExecutors_(y)}return o.prototype.clip=function(f,m){var x=this.getClipCoords(m);f.beginPath(),f.moveTo(x[0],x[1]),f.lineTo(x[2],x[3]),f.lineTo(x[4],x[5]),f.lineTo(x[6],x[7]),f.clip()},o.prototype.createExecutors_=function(f){for(var m in f){var x=this.executorsByZIndex_[m];x===void 0&&(x={},this.executorsByZIndex_[m]=x);var v=f[m];for(var y in v){var C=v[y];x[y]=new hSt(this.resolution_,this.pixelRatio_,this.overlaps_,C)}}},o.prototype.hasExecutors=function(f){for(var m in this.executorsByZIndex_)for(var x=this.executorsByZIndex_[m],v=0,y=f.length;v<y;++v)if(f[v]in x)return!0;return!1},o.prototype.forEachFeatureAtCoordinate=function(f,m,x,v,y,C){v=Math.round(v);var w=v*2+1,T=l2(this.hitDetectionTransform_,v+.5,v+.5,1/m,-1/m,-x,-f[0],-f[1]),E=!this.hitDetectionContext_;E&&(this.hitDetectionContext_=Tm(w,w));var A=this.hitDetectionContext_;A.canvas.width!==w||A.canvas.height!==w?(A.canvas.width=w,A.canvas.height=w):E||A.clearRect(0,0,w,w);var S;this.renderBuffer_!==void 0&&(S=F_(),cH(S,f),UP(S,m*(this.renderBuffer_+v),S));var M=Ghr(v),I;function P(G,W){for(var Y=A.getImageData(0,0,w,w).data,K=0,X=M.length;K<X;K++)if(Y[M[K]]>0){if(!C||I!=="Image"&&I!=="Text"||C.indexOf(G)!==-1){var q=(M[K]-3)/4,J=v-q%w,Z=v-(q/w|0),z=y(G,W,J*J+Z*Z);if(z)return z}A.clearRect(0,0,w,w);break}}var D=Object.keys(this.executorsByZIndex_).map(Number);D.sort(kP);var R,L,O,F,B;for(R=D.length-1;R>=0;--R){var H=D[R].toString();for(O=this.executorsByZIndex_[H],L=BHe.length-1;L>=0;--L)if(I=BHe[L],F=O[I],F!==void 0&&(B=F.executeHitDetection(A,T,x,P,S),B))return B}},o.prototype.getClipCoords=function(f){var m=this.maxExtent_;if(!m)return null;var x=m[0],v=m[1],y=m[2],C=m[3],w=[x,v,x,C,y,C,y,v];return o1(w,0,8,2,f,w),w},o.prototype.isEmpty=function(){return VP(this.executorsByZIndex_)},o.prototype.execute=function(f,m,x,v,y,C,w){var T=Object.keys(this.executorsByZIndex_).map(Number);T.sort(kP),this.maxExtent_&&(f.save(),this.clip(f,x));var E=C||BHe,A,S,M,I,P,D;for(w&&T.reverse(),A=0,S=T.length;A<S;++A){var R=T[A].toString();for(P=this.executorsByZIndex_[R],M=0,I=E.length;M<I;++M){var L=E[M];D=P[L],D!==void 0&&D.execute(f,m,x,v,y,w)}}this.maxExtent_&&f.restore()},o}(),kHe={};function Ghr(o){if(kHe[o]!==void 0)return kHe[o];for(var f=o*2+1,m=o*o,x=new Array(m+1),v=0;v<=o;++v)for(var y=0;y<=o;++y){var C=v*v+y*y;if(C>m)break;var w=x[C];w||(w=[],x[C]=w),w.push(((o+v)*f+(o+y))*4+3),v>0&&w.push(((o-v)*f+(o+y))*4+3),y>0&&(w.push(((o+v)*f+(o-y))*4+3),v>0&&w.push(((o-v)*f+(o-y))*4+3))}for(var T=[],v=0,E=x.length;v<E;++v)x[v]&&T.push.apply(T,x[v]);return kHe[o]=T,T}var VHe=Hhr;var Whr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),jhr=function(o){Whr(f,o);function f(m){var x=o.call(this)||this;return x.ready=!0,x.boundHandleImageChange_=x.handleImageChange_.bind(x),x.layer_=m,x.declutterExecutorGroup=null,x}return f.prototype.getFeatures=function(m){return xl()},f.prototype.getData=function(m){return null},f.prototype.prepareFrame=function(m){return xl()},f.prototype.renderFrame=function(m,x){return xl()},f.prototype.loadedTileCallback=function(m,x,v){m[x]||(m[x]={}),m[x][v.tileCoord.toString()]=v},f.prototype.createLoadedTileFinder=function(m,x,v){return function(y,C){var w=this.loadedTileCallback.bind(this,v,y);return m.forEachLoadedTile(x,y,C,w)}.bind(this)},f.prototype.forEachFeatureAtCoordinate=function(m,x,v,y,C){},f.prototype.getDataAtPixel=function(m,x,v){return null},f.prototype.getLayer=function(){return this.layer_},f.prototype.handleFontsChanged=function(){},f.prototype.handleImageChange_=function(m){var x=m.target;x.getState()===Kh.LOADED&&this.renderIfReadyAndVisible()},f.prototype.loadImage=function(m){var x=m.getState();return x!=Kh.LOADED&&x!=Kh.ERROR&&m.addEventListener(af.CHANGE,this.boundHandleImageChange_),x==Kh.IDLE&&(m.load(),x=m.getState()),x==Kh.LOADED},f.prototype.renderIfReadyAndVisible=function(){var m=this.getLayer();m&&m.getVisible()&&m.getSourceState()==="ready"&&m.changed()},f.prototype.disposeInternal=function(){delete this.layer_,o.prototype.disposeInternal.call(this)},f}(Qme),dSt=jhr;var qhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Yhr=function(o){qhr(f,o);function f(m,x,v,y){var C=o.call(this,m)||this;return C.inversePixelTransform=x,C.frameState=v,C.context=y,C}return f}(hA),fSt=Yhr;var Xhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}();var Kj=null;function Khr(){var o=document.createElement("canvas");o.width=1,o.height=1,Kj=o.getContext("2d")}var $hr=function(o){Xhr(f,o);function f(m){var x=o.call(this,m)||this;return x.container=null,x.renderedResolution,x.tempTransform=Bv(),x.pixelTransform=Bv(),x.inversePixelTransform=Bv(),x.context=null,x.containerReused=!1,x.pixelContext_=null,x.frameState=null,x}return f.prototype.getImageData=function(m,x,v){Kj||Khr(),Kj.clearRect(0,0,1,1);var y;try{Kj.drawImage(m,x,v,1,1,0,0,1,1),y=Kj.getImageData(0,0,1,1).data}catch{return Kj=null,null}return y},f.prototype.getBackground=function(m){var x=this.getLayer(),v=x.getBackground();return typeof v=="function"&&(v=v(m.viewState.resolution)),v||void 0},f.prototype.useContainer=function(m,x,v){var y=this.getLayer().getClassName(),C,w;if(m&&m.className===y&&(!v||m&&m.style.backgroundColor&&SD(xH(m.style.backgroundColor),xH(v)))){var T=m.firstElementChild;T instanceof HTMLCanvasElement&&(w=T.getContext("2d"))}if(w&&w.canvas.style.transform===x?(this.container=m,this.context=w,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){C=document.createElement("div"),C.className=y;var E=C.style;E.position="absolute",E.width="100%",E.height="100%",w=Tm();var T=w.canvas;C.appendChild(T),E=T.style,E.position="absolute",E.left="0",E.transformOrigin="top left",this.container=C,this.context=w}!this.containerReused&&v&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=v)},f.prototype.clipUnrotated=function(m,x,v){var y=n1(v),C=kj(v),w=Bj(v),T=Fj(v);Em(x.coordinateToPixelTransform,y),Em(x.coordinateToPixelTransform,C),Em(x.coordinateToPixelTransform,w),Em(x.coordinateToPixelTransform,T);var E=this.inversePixelTransform;Em(E,y),Em(E,C),Em(E,w),Em(E,T),m.save(),m.beginPath(),m.moveTo(Math.round(y[0]),Math.round(y[1])),m.lineTo(Math.round(C[0]),Math.round(C[1])),m.lineTo(Math.round(w[0]),Math.round(w[1])),m.lineTo(Math.round(T[0]),Math.round(T[1])),m.clip()},f.prototype.dispatchRenderEvent_=function(m,x,v){var y=this.getLayer();if(y.hasListener(m)){var C=new fSt(m,this.inversePixelTransform,v,x);y.dispatchEvent(C)}},f.prototype.preRender=function(m,x){this.frameState=x,this.dispatchRenderEvent_(Mte.PRERENDER,m,x)},f.prototype.postRender=function(m,x){this.dispatchRenderEvent_(Mte.POSTRENDER,m,x)},f.prototype.getRenderTransform=function(m,x,v,y,C,w,T){var E=C/2,A=w/2,S=y/x,M=-S,I=-m[0]+T,P=-m[1];return l2(this.tempTransform,E,A,S,M,-v,I,P)},f.prototype.getDataAtPixel=function(m,x,v){var y=Em(this.inversePixelTransform,m.slice()),C=this.context,w=this.getLayer(),T=w.getExtent();if(T){var E=Em(x.pixelToCoordinateTransform,m.slice());if(!ID(T,E))return null}var A=Math.round(y[0]),S=Math.round(y[1]),M=this.pixelContext_;if(!M){var I=document.createElement("canvas");I.width=1,I.height=1,M=I.getContext("2d"),this.pixelContext_=M}M.clearRect(0,0,1,1);var P;try{M.drawImage(C.canvas,A,S,1,1,0,0,1,1),P=M.getImageData(0,0,1,1).data}catch(D){return D.name==="SecurityError"?(this.pixelContext_=null,new Uint8Array):P}return P[3]===0?null:P},f.prototype.disposeInternal=function(){delete this.frameState,o.prototype.disposeInternal.call(this)},f}(dSt),pSt=$hr;var Jhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Qhr=function(o){Jhr(f,o);function f(m,x,v,y){var C=o.call(this)||this;return C.extent=m,C.pixelRatio_=v,C.resolution=x,C.state=y,C}return f.prototype.changed=function(){this.dispatchEvent(af.CHANGE)},f.prototype.getExtent=function(){return this.extent},f.prototype.getImage=function(){return xl()},f.prototype.getPixelRatio=function(){return this.pixelRatio_},f.prototype.getResolution=function(){return this.resolution},f.prototype.getState=function(){return this.state},f.prototype.load=function(){xl()},f}(PD),mSt=Qhr;var Zhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),VWr=function(o){Zhr(f,o);function f(m,x,v,y,C,w){var T=o.call(this,m,x,v,Kh.IDLE)||this;return T.src_=y,T.image_=new Image,C!==null&&(T.image_.crossOrigin=C),T.unlisten_=null,T.state=Kh.IDLE,T.imageLoadFunction_=w,T}return f.prototype.getImage=function(){return this.image_},f.prototype.handleImageError_=function(){this.state=Kh.ERROR,this.unlistenImage_(),this.changed()},f.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=Nv(this.extent)/this.image_.height),this.state=Kh.LOADED,this.unlistenImage_(),this.changed()},f.prototype.load=function(){(this.state==Kh.IDLE||this.state==Kh.ERROR)&&(this.state=Kh.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Lte(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.setImage=function(m){this.image_=m,this.resolution=Nv(this.extent)/this.image_.height},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(mSt);function Lte(o,f,m){var x=o,v=!0,y=!1,C=!1,w=[Vj(x,af.LOAD,function(){C=!0,y||f()})];return x.src&&ZEt?(y=!0,x.decode().then(function(){v&&f()}).catch(function(T){v&&(C?f():m())})):w.push(Vj(x,af.ERROR,m)),function(){v=!1,w.forEach(Fv)}}var edr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),tdr=function(o){edr(f,o);function f(m,x,v,y,C,w){var T=o.call(this,m,x,w)||this;return T.crossOrigin_=y,T.src_=v,T.key=v,T.image_=new Image,y!==null&&(T.image_.crossOrigin=y),T.unlisten_=null,T.tileLoadFunction_=C,T}return f.prototype.getImage=function(){return this.image_},f.prototype.setImage=function(m){this.image_=m,this.state=ca.LOADED,this.unlistenImage_(),this.changed()},f.prototype.handleImageError_=function(){this.state=ca.ERROR,this.unlistenImage_(),this.image_=idr(),this.changed()},f.prototype.handleImageLoad_=function(){var m=this.image_;m.naturalWidth&&m.naturalHeight?this.state=ca.LOADED:this.state=ca.EMPTY,this.unlistenImage_(),this.changed()},f.prototype.load=function(){this.state==ca.ERROR&&(this.state=ca.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==ca.IDLE&&(this.state=ca.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Lte(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(VB);function idr(){var o=Tm(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var xSt=tdr;var gSt=.5;var rdr=10,_St=.25,ndr=function(){function o(f,m,x,v,y,C){this.sourceProj_=f,this.targetProj_=m;var w={},T=dH(this.targetProj_,this.sourceProj_);this.transformInv_=function(F){var B=F[0]+"/"+F[1];return w[B]||(w[B]=T(F)),w[B]},this.maxSourceExtent_=v,this.errorThresholdSquared_=y*y,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!v&&!!this.sourceProj_.getExtent()&&Wp(v)==Wp(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Wp(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Wp(this.targetProj_.getExtent()):null;var E=n1(x),A=kj(x),S=Bj(x),M=Fj(x),I=this.transformInv_(E),P=this.transformInv_(A),D=this.transformInv_(S),R=this.transformInv_(M),L=rdr+(C?Math.max(0,Math.ceil(dEt(hte(x)/(C*C*256*256)))):0);if(this.addQuad_(E,A,S,M,I,P,D,R,L),this.wrapsXInSource_){var O=1/0;this.triangles_.forEach(function(F,B,H){O=Math.min(O,F.source[0][0],F.source[1][0],F.source[2][0])}),this.triangles_.forEach(function(F){if(Math.max(F.source[0][0],F.source[1][0],F.source[2][0])-O>this.sourceWorldWidth_/2){var B=[[F.source[0][0],F.source[0][1]],[F.source[1][0],F.source[1][1]],[F.source[2][0],F.source[2][1]]];B[0][0]-O>this.sourceWorldWidth_/2&&(B[0][0]-=this.sourceWorldWidth_),B[1][0]-O>this.sourceWorldWidth_/2&&(B[1][0]-=this.sourceWorldWidth_),B[2][0]-O>this.sourceWorldWidth_/2&&(B[2][0]-=this.sourceWorldWidth_);var H=Math.min(B[0][0],B[1][0],B[2][0]),G=Math.max(B[0][0],B[1][0],B[2][0]);G-H<this.sourceWorldWidth_/2&&(F.source=B)}}.bind(this))}w={}}return o.prototype.addTriangle_=function(f,m,x,v,y,C){this.triangles_.push({source:[v,y,C],target:[f,m,x]})},o.prototype.addQuad_=function(f,m,x,v,y,C,w,T,E){var A=ute([y,C,w,T]),S=this.sourceWorldWidth_?Wp(A)/this.sourceWorldWidth_:null,M=this.sourceWorldWidth_,I=this.sourceProj_.canWrapX()&&S>.5&&S<1,P=!1;if(E>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var D=ute([f,m,x,v]),R=Wp(D)/this.targetWorldWidth_;P=R>_St||P}!I&&this.sourceProj_.isGlobal()&&S&&(P=S>_St||P)}if(!(!P&&this.maxSourceExtent_&&isFinite(A[0])&&isFinite(A[1])&&isFinite(A[2])&&isFinite(A[3])&&!sf(A,this.maxSourceExtent_))){var L=0;if(!P&&(!isFinite(y[0])||!isFinite(y[1])||!isFinite(C[0])||!isFinite(C[1])||!isFinite(w[0])||!isFinite(w[1])||!isFinite(T[0])||!isFinite(T[1]))){if(E>0)P=!0;else if(L=(!isFinite(y[0])||!isFinite(y[1])?8:0)+(!isFinite(C[0])||!isFinite(C[1])?4:0)+(!isFinite(w[0])||!isFinite(w[1])?2:0)+(!isFinite(T[0])||!isFinite(T[1])?1:0),L!=1&&L!=2&&L!=4&&L!=8)return}if(E>0){if(!P){var O=[(f[0]+x[0])/2,(f[1]+x[1])/2],F=this.transformInv_(O),B=void 0;if(I){var H=(Lj(y[0],M)+Lj(w[0],M))/2;B=H-Lj(F[0],M)}else B=(y[0]+w[0])/2-F[0];var G=(y[1]+w[1])/2-F[1],W=B*B+G*G;P=W>this.errorThresholdSquared_}if(P){if(Math.abs(f[0]-x[0])<=Math.abs(f[1]-x[1])){var Y=[(m[0]+x[0])/2,(m[1]+x[1])/2],K=this.transformInv_(Y),X=[(v[0]+f[0])/2,(v[1]+f[1])/2],q=this.transformInv_(X);this.addQuad_(f,m,Y,X,y,C,K,q,E-1),this.addQuad_(X,Y,x,v,q,K,w,T,E-1)}else{var J=[(f[0]+m[0])/2,(f[1]+m[1])/2],Z=this.transformInv_(J),z=[(x[0]+v[0])/2,(x[1]+v[1])/2],te=this.transformInv_(z);this.addQuad_(f,J,z,v,y,Z,te,T,E-1),this.addQuad_(J,m,x,z,Z,C,w,te,E-1)}return}}if(I){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(L&11)==0&&this.addTriangle_(f,x,v,y,w,T),(L&14)==0&&this.addTriangle_(f,x,m,y,w,C),L&&((L&13)==0&&this.addTriangle_(m,v,f,C,T,y),(L&7)==0&&this.addTriangle_(m,v,x,C,T,w))}},o.prototype.calculateSourceExtent=function(){var f=F_();return this.triangles_.forEach(function(m,x,v){var y=m.source;cH(f,y[0]),cH(f,y[1]),cH(f,y[2])}),f},o.prototype.getTriangles=function(){return this.triangles_},o}(),vSt=ndr;var Ote={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},ySt={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0};var zHe,HHe=[];function CSt(o,f,m,x,v){o.beginPath(),o.moveTo(0,0),o.lineTo(f,m),o.lineTo(x,v),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(f,x)+1,Math.max(m,v)),o.restore()}function UHe(o,f){return Math.abs(o[f*4]-210)>2||Math.abs(o[f*4+3]-.75*255)>2}function odr(){if(zHe===void 0){var o=document.createElement("canvas").getContext("2d");o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",CSt(o,4,5,4,0),CSt(o,4,5,0,5);var f=o.getImageData(0,0,3,3).data;zHe=UHe(f,0)||UHe(f,4)||UHe(f,8)}return zHe}function bSt(o,f,m,x){var v=txe(m,f,o),y=lHe(f,x,m),C=f.getMetersPerUnit();C!==void 0&&(y*=C);var w=o.getMetersPerUnit();w!==void 0&&(y/=w);var T=o.getExtent();if(!T||ID(T,v)){var E=lHe(o,y,v)/y;isFinite(E)&&E>0&&(y/=E)}return y}function wSt(o,f,m,x){var v=$3(m),y=bSt(o,f,v,x);return(!isFinite(y)||y<=0)&&Yme(m,function(C){return y=bSt(o,f,C,x),isFinite(y)&&y>0}),y}function TSt(o,f,m,x,v,y,C,w,T,E,A,S){var M=Tm(Math.round(m*o),Math.round(m*f),HHe);if(S||$x(M,Ote),T.length===0)return M.canvas;M.scale(m,m);function I(B){return Math.round(B*m)/m}M.globalCompositeOperation="lighter";var P=F_();T.forEach(function(B,H,G){gEt(P,B.extent)});var D=Wp(P),R=Nv(P),L=Tm(Math.round(m*D/x),Math.round(m*R/x));S||$x(L,Ote);var O=m/x;T.forEach(function(B,H,G){var W=B.extent[0]-P[0],Y=-(B.extent[3]-P[3]),K=Wp(B.extent),X=Nv(B.extent);B.image.width>0&&B.image.height>0&&L.drawImage(B.image,E,E,B.image.width-2*E,B.image.height-2*E,W*O,Y*O,K*O,X*O)});var F=n1(C);return w.getTriangles().forEach(function(B,H,G){var W=B.source,Y=B.target,K=W[0][0],X=W[0][1],q=W[1][0],J=W[1][1],Z=W[2][0],z=W[2][1],te=I((Y[0][0]-F[0])/y),ie=I(-(Y[0][1]-F[1])/y),re=I((Y[1][0]-F[0])/y),ee=I(-(Y[1][1]-F[1])/y),oe=I((Y[2][0]-F[0])/y),ae=I(-(Y[2][1]-F[1])/y),he=K,me=X;K=0,X=0,q-=he,J-=me,Z-=he,z-=me;var ue=[[q,J,0,0,re-te],[Z,z,0,0,oe-te],[0,0,q,J,ee-ie],[0,0,Z,z,ae-ie]],ce=pEt(ue);if(!!ce){if(M.save(),M.beginPath(),odr()||!S){M.moveTo(re,ee);for(var de=4,fe=te-re,we=ie-ee,Te=0;Te<de;Te++)M.lineTo(re+I((Te+1)*fe/de),ee+I(Te*we/(de-1))),Te!=de-1&&M.lineTo(re+I((Te+1)*fe/de),ee+I((Te+1)*we/(de-1)));M.lineTo(oe,ae)}else M.moveTo(re,ee),M.lineTo(te,ie),M.lineTo(oe,ae);M.clip(),M.transform(ce[0],ce[2],ce[1],ce[3],te,ie),M.translate(P[0]-he,P[3]-me),M.scale(x/m,-x/m),M.drawImage(L.canvas,0,0),M.restore()}}),A&&(M.save(),M.globalCompositeOperation="source-over",M.strokeStyle="black",M.lineWidth=1,w.getTriangles().forEach(function(B,H,G){var W=B.target,Y=(W[0][0]-F[0])/y,K=-(W[0][1]-F[1])/y,X=(W[1][0]-F[0])/y,q=-(W[1][1]-F[1])/y,J=(W[2][0]-F[0])/y,Z=-(W[2][1]-F[1])/y;M.beginPath(),M.moveTo(X,q),M.lineTo(Y,K),M.lineTo(J,Z),M.closePath(),M.stroke()}),M.restore()),M.canvas}var adr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),sdr=function(o){adr(f,o);function f(m,x,v,y,C,w,T,E,A,S,M,I){var P=o.call(this,C,ca.IDLE,{interpolate:!!I})||this;P.renderEdges_=M!==void 0?M:!1,P.pixelRatio_=T,P.gutter_=E,P.canvas_=null,P.sourceTileGrid_=x,P.targetTileGrid_=y,P.wrappedTileCoord_=w||C,P.sourceTiles_=[],P.sourcesListenerKeys_=null,P.sourceZ_=0;var D=y.getTileCoordExtent(P.wrappedTileCoord_),R=P.targetTileGrid_.getExtent(),L=P.sourceTileGrid_.getExtent(),O=R?MD(D,R):D;if(hte(O)===0)return P.state=ca.EMPTY,P;var F=m.getExtent();F&&(L?L=MD(L,F):L=F);var B=y.getResolution(P.wrappedTileCoord_[0]),H=wSt(m,v,O,B);if(!isFinite(H)||H<=0)return P.state=ca.EMPTY,P;var G=S!==void 0?S:gSt;if(P.triangulation_=new vSt(m,v,O,L,H*G,B),P.triangulation_.getTriangles().length===0)return P.state=ca.EMPTY,P;P.sourceZ_=x.getZForResolution(H);var W=P.triangulation_.calculateSourceExtent();if(L&&(m.canWrapX()?(W[1]=PC(W[1],L[1],L[3]),W[3]=PC(W[3],L[1],L[3])):W=MD(W,L)),!hte(W))P.state=ca.EMPTY;else{for(var Y=x.getTileRangeForExtentAndZ(W,P.sourceZ_),K=Y.minX;K<=Y.maxX;K++)for(var X=Y.minY;X<=Y.maxY;X++){var q=A(P.sourceZ_,K,X,T);q&&P.sourceTiles_.push(q)}P.sourceTiles_.length===0&&(P.state=ca.EMPTY)}return P}return f.prototype.getImage=function(){return this.canvas_},f.prototype.reproject_=function(){var m=[];if(this.sourceTiles_.forEach(function(A,S,M){A&&A.getState()==ca.LOADED&&m.push({extent:this.sourceTileGrid_.getTileCoordExtent(A.tileCoord),image:A.getImage()})}.bind(this)),this.sourceTiles_.length=0,m.length===0)this.state=ca.ERROR;else{var x=this.wrappedTileCoord_[0],v=this.targetTileGrid_.getTileSize(x),y=typeof v=="number"?v:v[0],C=typeof v=="number"?v:v[1],w=this.targetTileGrid_.getResolution(x),T=this.sourceTileGrid_.getResolution(this.sourceZ_),E=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=TSt(y,C,this.pixelRatio_,T,this.sourceTileGrid_.getExtent(),w,E,this.triangulation_,m,this.gutter_,this.renderEdges_,this.interpolate),this.state=ca.LOADED}this.changed()},f.prototype.load=function(){if(this.state==ca.IDLE){this.state=ca.LOADING,this.changed();var m=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(x,v,y){var C=x.getState();if(C==ca.IDLE||C==ca.LOADING){m++;var w=IC(x,af.CHANGE,function(T){var E=x.getState();(E==ca.LOADED||E==ca.ERROR||E==ca.EMPTY)&&(Fv(w),m--,m===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(w)}}.bind(this)),m===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(x,v,y){var C=x.getState();C==ca.IDLE&&x.load()})}},f.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Fv),this.sourcesListenerKeys_=null},f.prototype.release=function(){this.canvas_&&(oxe(this.canvas_.getContext("2d")),HHe.push(this.canvas_),this.canvas_=null),o.prototype.release.call(this)},f}(VB),ESt=sdr;var ldr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),udr=function(o){ldr(f,o);function f(m){var x=o.call(this,m)||this;return x.extentChanged=!0,x.renderedExtent_=null,x.renderedPixelRatio,x.renderedProjection=null,x.renderedRevision,x.renderedTiles=[],x.newTiles_=!1,x.tmpExtent=F_(),x.tmpTileRange_=new zme(0,0,0,0),x}return f.prototype.isDrawableTile=function(m){var x=this.getLayer(),v=m.getState(),y=x.getUseInterimTilesOnError();return v==ca.LOADED||v==ca.EMPTY||v==ca.ERROR&&!y},f.prototype.getTile=function(m,x,v,y){var C=y.pixelRatio,w=y.viewState.projection,T=this.getLayer(),E=T.getSource(),A=E.getTile(m,x,v,C,w);return A.getState()==ca.ERROR&&(T.getUseInterimTilesOnError()?T.getPreload()>0&&(this.newTiles_=!0):A.setState(ca.LOADED)),this.isDrawableTile(A)||(A=A.getInterimTile()),A},f.prototype.getData=function(m){var x=this.frameState;if(!x)return null;var v=this.getLayer(),y=Em(x.pixelToCoordinateTransform,m.slice()),C=v.getExtent();if(C&&!ID(C,y))return null;for(var w=x.pixelRatio,T=x.viewState.projection,E=x.viewState,A=v.getRenderSource(),S=A.getTileGridForProjection(E.projection),M=A.getTilePixelRatio(x.pixelRatio),I=S.getZForResolution(E.resolution);I>=S.getMinZoom();--I){var P=S.getTileCoordForCoordAndZ(y,I),D=A.getTile(I,P[1],P[2],w,T);if(!(D instanceof xSt||D instanceof ESt))return null;if(D.getState()===ca.LOADED){var R=S.getOrigin(I),L=jp(S.getTileSize(I)),O=S.getResolution(I),F=Math.floor(M*((y[0]-R[0])/O-P[1]*L[0])),B=Math.floor(M*((R[1]-y[1])/O-P[2]*L[1])),H=Math.round(M*A.getGutterForProjection(E.projection));return this.getImageData(D.getImage(),F+H,B+H)}}return null},f.prototype.loadedTileCallback=function(m,x,v){return this.isDrawableTile(v)?o.prototype.loadedTileCallback.call(this,m,x,v):!1},f.prototype.prepareFrame=function(m){return!!this.getLayer().getSource()},f.prototype.renderFrame=function(m,x){var v=m.layerStatesArray[m.layerIndex],y=m.viewState,C=y.projection,w=y.resolution,T=y.center,E=y.rotation,A=m.pixelRatio,S=this.getLayer(),M=S.getSource(),I=M.getRevision(),P=M.getTileGridForProjection(C),D=P.getZForResolution(w,M.zDirection),R=P.getResolution(D),L=m.extent,O=m.viewState.resolution,F=M.getTilePixelRatio(A),B=Math.round(Wp(L)/O*A),H=Math.round(Nv(L)/O*A),G=v.extent&&ixe(v.extent,C);G&&(L=MD(L,ixe(v.extent,C)));var W=R*B/2/F,Y=R*H/2/F,K=[T[0]-W,T[1]-Y,T[0]+W,T[1]+Y],X=P.getTileRangeForExtentAndZ(L,D),q={};q[D]={};var J=this.createLoadedTileFinder(M,C,q),Z=this.tmpExtent,z=this.tmpTileRange_;this.newTiles_=!1;for(var te=E?eHe(y.center,O,E,m.size):void 0,ie=X.minX;ie<=X.maxX;++ie)for(var re=X.minY;re<=X.maxY;++re)if(!(E&&!P.tileCoordIntersectsViewport([D,ie,re],te))){var ee=this.getTile(D,ie,re,m);if(this.isDrawableTile(ee)){var oe=ju(this);if(ee.getState()==ca.LOADED){q[D][ee.tileCoord.toString()]=ee;var ae=ee.inTransition(oe);ae&&v.opacity!==1&&(ee.endTransition(oe),ae=!1),!this.newTiles_&&(ae||this.renderedTiles.indexOf(ee)===-1)&&(this.newTiles_=!0)}if(ee.getAlpha(oe,m.time)===1)continue}var he=P.getTileCoordChildTileRange(ee.tileCoord,z,Z),me=!1;he&&(me=J(D+1,he)),me||P.forEachTileCoordParentTileRange(ee.tileCoord,J,z,Z)}var ue=R/w*A/F;l2(this.pixelTransform,m.size[0]/2,m.size[1]/2,1/A,1/A,E,-B/2,-H/2);var ce=cAt(this.pixelTransform);this.useContainer(x,ce,this.getBackground(m));var de=this.context,fe=de.canvas;uAt(this.inversePixelTransform,this.pixelTransform),l2(this.tempTransform,B/2,H/2,ue,ue,0,-B/2,-H/2),fe.width!=B||fe.height!=H?(fe.width=B,fe.height=H):this.containerReused||de.clearRect(0,0,B,H),G&&this.clipUnrotated(de,m,G),M.getInterpolate()||$x(de,Ote),this.preRender(de,m),this.renderedTiles.length=0;var we=Object.keys(q).map(Number);we.sort(kP);var Te,Ae,Fe;v.opacity===1&&(!this.containerReused||M.getOpaque(m.viewState.projection))?we=we.reverse():(Te=[],Ae=[]);for(var Ue=we.length-1;Ue>=0;--Ue){var it=we[Ue],lt=M.getTilePixelSize(it,A,C),ft=P.getResolution(it),vt=ft/R,Pt=lt[0]*vt*ue,rt=lt[1]*vt*ue,yt=P.getTileCoordForCoordAndZ(n1(K),it),Dt=P.getTileCoordExtent(yt),Lt=Em(this.tempTransform,[F*(Dt[0]-K[0])/R,F*(K[3]-Dt[3])/R]),Ct=F*M.getGutterForProjection(C),se=q[it];for(var ye in se){var ee=se[ye],Je=ee.tileCoord,Ft=yt[1]-Je[1],jt=Math.round(Lt[0]-(Ft-1)*Pt),gt=yt[2]-Je[2],nt=Math.round(Lt[1]-(gt-1)*rt),ie=Math.round(Lt[0]-Ft*Pt),re=Math.round(Lt[1]-gt*rt),Ze=jt-ie,tt=nt-re,Ye=D===it,ae=Ye&&ee.getAlpha(ju(this),m.time)!==1,Et=!1;if(!ae)if(Te){Fe=[ie,re,ie+Ze,re,ie+Ze,re+tt,ie,re+tt];for(var Qt=0,Bt=Te.length;Qt<Bt;++Qt)if(D!==it&&it<Ae[Qt]){var Kt=Te[Qt];sf([ie,re,ie+Ze,re+tt],[Kt[0],Kt[3],Kt[4],Kt[7]])&&(Et||(de.save(),Et=!0),de.beginPath(),de.moveTo(Fe[0],Fe[1]),de.lineTo(Fe[2],Fe[3]),de.lineTo(Fe[4],Fe[5]),de.lineTo(Fe[6],Fe[7]),de.moveTo(Kt[6],Kt[7]),de.lineTo(Kt[4],Kt[5]),de.lineTo(Kt[2],Kt[3]),de.lineTo(Kt[0],Kt[1]),de.clip())}Te.push(Fe),Ae.push(it)}else de.clearRect(ie,re,Ze,tt);this.drawTileImage(ee,m,ie,re,Ze,tt,Ct,Ye),Te&&!ae?(Et&&de.restore(),this.renderedTiles.unshift(ee)):this.renderedTiles.push(ee),this.updateUsedTiles(m.usedTiles,M,ee)}}return this.renderedRevision=I,this.renderedResolution=R,this.extentChanged=!this.renderedExtent_||!UB(this.renderedExtent_,K),this.renderedExtent_=K,this.renderedPixelRatio=A,this.renderedProjection=C,this.manageTilePyramid(m,M,P,A,C,L,D,S.getPreload()),this.scheduleExpireCache(m,M),this.postRender(de,m),v.extent&&de.restore(),$x(de,ySt),ce!==fe.style.transform&&(fe.style.transform=ce),this.container},f.prototype.drawTileImage=function(m,x,v,y,C,w,T,E){var A=this.getTileImage(m);if(!!A){var S=ju(this),M=x.layerStatesArray[x.layerIndex],I=M.opacity*(E?m.getAlpha(S,x.time):1),P=I!==this.context.globalAlpha;P&&(this.context.save(),this.context.globalAlpha=I),this.context.drawImage(A,T,T,A.width-2*T,A.height-2*T,v,y,C,w),P&&this.context.restore(),I!==M.opacity?x.animate=!0:E&&m.endTransition(S)}},f.prototype.getImage=function(){var m=this.context;return m?m.canvas:null},f.prototype.getTileImage=function(m){return m.getImage()},f.prototype.scheduleExpireCache=function(m,x){if(x.canExpireCache()){var v=function(y,C,w){var T=ju(y);T in w.usedTiles&&y.expireCache(w.viewState.projection,w.usedTiles[T])}.bind(null,x);m.postRenderFunctions.push(v)}},f.prototype.updateUsedTiles=function(m,x,v){var y=ju(x);y in m||(m[y]={}),m[y][v.getKey()]=!0},f.prototype.manageTilePyramid=function(m,x,v,y,C,w,T,E,A){var S=ju(x);S in m.wantedTiles||(m.wantedTiles[S]={});var M=m.wantedTiles[S],I=m.tileQueue,P=v.getMinZoom(),D=m.viewState.rotation,R=D?eHe(m.viewState.center,m.viewState.resolution,D,m.size):void 0,L=0,O,F,B,H,G,W;for(W=P;W<=T;++W)for(F=v.getTileRangeForExtentAndZ(w,W,F),B=v.getResolution(W),H=F.minX;H<=F.maxX;++H)for(G=F.minY;G<=F.maxY;++G)D&&!v.tileCoordIntersectsViewport([W,H,G],R)||(T-W<=E?(++L,O=x.getTile(W,H,G,y,C),O.getState()==ca.IDLE&&(M[O.getKey()]=!0,I.isKeyQueued(O.getKey())||I.enqueue([O,S,v.getTileCoordCenter(O.tileCoord),B])),A!==void 0&&A(O)):x.useTile(W,H,G,C));x.updateCacheSize(L,C)},f}(pSt),ASt=udr;var ND={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};var yH={ANIMATING:0,INTERACTING:1};var cdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),hdr=function(o){cdr(f,o);function f(m,x,v,y,C,w,T){var E=o.call(this)||this;return E.context_=m,E.pixelRatio_=x,E.extent_=v,E.transform_=y,E.viewRotation_=C,E.squaredTolerance_=w,E.userTransform_=T,E.contextFillState_=null,E.contextStrokeState_=null,E.contextTextState_=null,E.fillState_=null,E.strokeState_=null,E.image_=null,E.imageAnchorX_=0,E.imageAnchorY_=0,E.imageHeight_=0,E.imageOpacity_=0,E.imageOriginX_=0,E.imageOriginY_=0,E.imageRotateWithView_=!1,E.imageRotation_=0,E.imageScale_=[0,0],E.imageWidth_=0,E.text_="",E.textOffsetX_=0,E.textOffsetY_=0,E.textRotateWithView_=!1,E.textRotation_=0,E.textScale_=[0,0],E.textFillState_=null,E.textStrokeState_=null,E.textState_=null,E.pixelCoordinates_=[],E.tmpLocalTransform_=Bv(),E}return f.prototype.drawImages_=function(m,x,v,y){if(!!this.image_){var C=o1(m,x,v,y,this.transform_,this.pixelCoordinates_),w=this.context_,T=this.tmpLocalTransform_,E=w.globalAlpha;this.imageOpacity_!=1&&(w.globalAlpha=E*this.imageOpacity_);var A=this.imageRotation_;this.imageRotateWithView_&&(A+=this.viewRotation_);for(var S=0,M=C.length;S<M;S+=2){var I=C[S]-this.imageAnchorX_,P=C[S+1]-this.imageAnchorY_;if(A!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){var D=I+this.imageAnchorX_,R=P+this.imageAnchorY_;l2(T,D,R,1,1,A,-D,-R),w.setTransform.apply(w,T),w.translate(D,R),w.scale(this.imageScale_[0],this.imageScale_[1]),w.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),w.setTransform(1,0,0,1,0,0)}else w.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,I,P,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(w.globalAlpha=E)}},f.prototype.drawText_=function(m,x,v,y){if(!(!this.textState_||this.text_==="")){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var C=o1(m,x,v,y,this.transform_,this.pixelCoordinates_),w=this.context_,T=this.textRotation_;for(this.textRotateWithView_&&(T+=this.viewRotation_);x<v;x+=y){var E=C[x]+this.textOffsetX_,A=C[x+1]+this.textOffsetY_;if(T!==0||this.textScale_[0]!=1||this.textScale_[1]!=1){var S=l2(this.tmpLocalTransform_,E,A,1,1,T,-E,-A);w.setTransform.apply(w,S),w.translate(E,A),w.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&w.strokeText(this.text_,0,0),this.textFillState_&&w.fillText(this.text_,0,0),w.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&w.strokeText(this.text_,E,A),this.textFillState_&&w.fillText(this.text_,E,A)}}},f.prototype.moveToLineTo_=function(m,x,v,y,C){var w=this.context_,T=o1(m,x,v,y,this.transform_,this.pixelCoordinates_);w.moveTo(T[0],T[1]);var E=T.length;C&&(E-=2);for(var A=2;A<E;A+=2)w.lineTo(T[A],T[A+1]);return C&&w.closePath(),v},f.prototype.drawRings_=function(m,x,v,y){for(var C=0,w=v.length;C<w;++C)x=this.moveToLineTo_(m,x,v[C],y,!0);return x},f.prototype.drawCircle=function(m){if(!!sf(this.extent_,m.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=xAt(m,this.transform_,this.pixelCoordinates_),v=x[2]-x[0],y=x[3]-x[1],C=Math.sqrt(v*v+y*y),w=this.context_;w.beginPath(),w.arc(x[0],x[1],C,0,2*Math.PI),this.fillState_&&w.fill(),this.strokeState_&&w.stroke()}this.text_!==""&&this.drawText_(m.getCenter(),0,2,2)}},f.prototype.setStyle=function(m){this.setFillStrokeStyle(m.getFill(),m.getStroke()),this.setImageStyle(m.getImage()),this.setTextStyle(m.getText())},f.prototype.setTransform=function(m){this.transform_=m},f.prototype.drawGeometry=function(m){var x=m.getType();switch(x){case"Point":this.drawPoint(m);break;case"LineString":this.drawLineString(m);break;case"Polygon":this.drawPolygon(m);break;case"MultiPoint":this.drawMultiPoint(m);break;case"MultiLineString":this.drawMultiLineString(m);break;case"MultiPolygon":this.drawMultiPolygon(m);break;case"GeometryCollection":this.drawGeometryCollection(m);break;case"Circle":this.drawCircle(m);break;default:}},f.prototype.drawFeature=function(m,x){var v=x.getGeometryFunction()(m);!v||!sf(this.extent_,v.getExtent())||(this.setStyle(x),this.drawGeometry(v))},f.prototype.drawGeometryCollection=function(m){for(var x=m.getGeometriesArray(),v=0,y=x.length;v<y;++v)this.drawGeometry(x[v])},f.prototype.drawPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),v=m.getStride();this.image_&&this.drawImages_(x,0,x.length,v),this.text_!==""&&this.drawText_(x,0,x.length,v)},f.prototype.drawMultiPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),v=m.getStride();this.image_&&this.drawImages_(x,0,x.length,v),this.text_!==""&&this.drawText_(x,0,x.length,v)},f.prototype.drawLineString=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!sf(this.extent_,m.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var x=this.context_,v=m.getFlatCoordinates();x.beginPath(),this.moveToLineTo_(v,0,v.length,m.getStride(),!1),x.stroke()}if(this.text_!==""){var y=m.getFlatMidpoint();this.drawText_(y,0,2,2)}}},f.prototype.drawMultiLineString=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getExtent();if(!!sf(this.extent_,x)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var v=this.context_,y=m.getFlatCoordinates(),C=0,w=m.getEnds(),T=m.getStride();v.beginPath();for(var E=0,A=w.length;E<A;++E)C=this.moveToLineTo_(y,C,w[E],T,!1);v.stroke()}if(this.text_!==""){var S=m.getFlatMidpoints();this.drawText_(S,0,S.length,2)}}},f.prototype.drawPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!sf(this.extent_,m.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=this.context_;x.beginPath(),this.drawRings_(m.getOrientedFlatCoordinates(),0,m.getEnds(),m.getStride()),this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var v=m.getFlatInteriorPoint();this.drawText_(v,0,2,2)}}},f.prototype.drawMultiPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!sf(this.extent_,m.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=this.context_,v=m.getOrientedFlatCoordinates(),y=0,C=m.getEndss(),w=m.getStride();x.beginPath();for(var T=0,E=C.length;T<E;++T){var A=C[T];y=this.drawRings_(v,y,A,w)}this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var S=m.getFlatInteriorPoints();this.drawText_(S,0,S.length,2)}}},f.prototype.setContextFillState_=function(m){var x=this.context_,v=this.contextFillState_;v?v.fillStyle!=m.fillStyle&&(v.fillStyle=m.fillStyle,x.fillStyle=m.fillStyle):(x.fillStyle=m.fillStyle,this.contextFillState_={fillStyle:m.fillStyle})},f.prototype.setContextStrokeState_=function(m){var x=this.context_,v=this.contextStrokeState_;v?(v.lineCap!=m.lineCap&&(v.lineCap=m.lineCap,x.lineCap=m.lineCap),x.setLineDash&&(SD(v.lineDash,m.lineDash)||x.setLineDash(v.lineDash=m.lineDash),v.lineDashOffset!=m.lineDashOffset&&(v.lineDashOffset=m.lineDashOffset,x.lineDashOffset=m.lineDashOffset)),v.lineJoin!=m.lineJoin&&(v.lineJoin=m.lineJoin,x.lineJoin=m.lineJoin),v.lineWidth!=m.lineWidth&&(v.lineWidth=m.lineWidth,x.lineWidth=m.lineWidth),v.miterLimit!=m.miterLimit&&(v.miterLimit=m.miterLimit,x.miterLimit=m.miterLimit),v.strokeStyle!=m.strokeStyle&&(v.strokeStyle=m.strokeStyle,x.strokeStyle=m.strokeStyle)):(x.lineCap=m.lineCap,x.setLineDash&&(x.setLineDash(m.lineDash),x.lineDashOffset=m.lineDashOffset),x.lineJoin=m.lineJoin,x.lineWidth=m.lineWidth,x.miterLimit=m.miterLimit,x.strokeStyle=m.strokeStyle,this.contextStrokeState_={lineCap:m.lineCap,lineDash:m.lineDash,lineDashOffset:m.lineDashOffset,lineJoin:m.lineJoin,lineWidth:m.lineWidth,miterLimit:m.miterLimit,strokeStyle:m.strokeStyle})},f.prototype.setContextTextState_=function(m){var x=this.context_,v=this.contextTextState_,y=m.textAlign?m.textAlign:JB;v?(v.font!=m.font&&(v.font=m.font,x.font=m.font),v.textAlign!=y&&(v.textAlign=y,x.textAlign=y),v.textBaseline!=m.textBaseline&&(v.textBaseline=m.textBaseline,x.textBaseline=m.textBaseline)):(x.font=m.font,x.textAlign=y,x.textBaseline=m.textBaseline,this.contextTextState_={font:m.font,textAlign:y,textBaseline:m.textBaseline})},f.prototype.setFillStrokeStyle=function(m,x){var v=this;if(!m)this.fillState_=null;else{var y=m.getColor();this.fillState_={fillStyle:s1(y||l1)}}if(!x)this.strokeState_=null;else{var C=x.getColor(),w=x.getLineCap(),T=x.getLineDash(),E=x.getLineDashOffset(),A=x.getLineJoin(),S=x.getWidth(),M=x.getMiterLimit(),I=T||Q3;this.strokeState_={lineCap:w!==void 0?w:gH,lineDash:this.pixelRatio_===1?I:I.map(function(P){return P*v.pixelRatio_}),lineDashOffset:(E||Z3)*this.pixelRatio_,lineJoin:A!==void 0?A:RD,lineWidth:(S!==void 0?S:rO)*this.pixelRatio_,miterLimit:M!==void 0?M:eO,strokeStyle:s1(C||tO)}}},f.prototype.setImageStyle=function(m){var x;if(!m||!(x=m.getSize())){this.image_=null;return}var v=m.getAnchor(),y=m.getOrigin();this.image_=m.getImage(this.pixelRatio_),this.imageAnchorX_=v[0]*this.pixelRatio_,this.imageAnchorY_=v[1]*this.pixelRatio_,this.imageHeight_=x[1]*this.pixelRatio_,this.imageOpacity_=m.getOpacity(),this.imageOriginX_=y[0],this.imageOriginY_=y[1],this.imageRotateWithView_=m.getRotateWithView(),this.imageRotation_=m.getRotation(),this.imageScale_=m.getScaleArray(),this.imageWidth_=x[0]*this.pixelRatio_},f.prototype.setTextStyle=function(m){if(!m)this.text_="";else{var x=m.getFill();if(!x)this.textFillState_=null;else{var v=x.getColor();this.textFillState_={fillStyle:s1(v||l1)}}var y=m.getStroke();if(!y)this.textStrokeState_=null;else{var C=y.getColor(),w=y.getLineCap(),T=y.getLineDash(),E=y.getLineDashOffset(),A=y.getLineJoin(),S=y.getWidth(),M=y.getMiterLimit();this.textStrokeState_={lineCap:w!==void 0?w:gH,lineDash:T||Q3,lineDashOffset:E||Z3,lineJoin:A!==void 0?A:RD,lineWidth:S!==void 0?S:rO,miterLimit:M!==void 0?M:eO,strokeStyle:s1(C||tO)}}var I=m.getFont(),P=m.getOffsetX(),D=m.getOffsetY(),R=m.getRotateWithView(),L=m.getRotation(),O=m.getScaleArray(),F=m.getText(),B=m.getTextAlign(),H=m.getTextBaseline();this.textState_={font:I!==void 0?I:vxe,textAlign:B!==void 0?B:JB,textBaseline:H!==void 0?H:_H},this.text_=F!==void 0?Array.isArray(F)?F.reduce(function(G,W,Y){return G+=Y%2?" ":W},""):F:"",this.textOffsetX_=P!==void 0?this.pixelRatio_*P:0,this.textOffsetY_=D!==void 0?this.pixelRatio_*D:0,this.textRotateWithView_=R!==void 0?R:!1,this.textRotation_=L!==void 0?L:0,this.textScale_=[this.pixelRatio_*O[0],this.pixelRatio_*O[1]]}},f}(Cxe),SSt=hdr;var FD={FRACTION:"fraction",PIXELS:"pixels"};var oT={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};var ddr=function(){function o(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return o.prototype.clear=function(){this.cache_={},this.cacheSize_=0},o.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},o.prototype.expire=function(){if(this.canExpireCache()){var f=0;for(var m in this.cache_){var x=this.cache_[m];(f++&3)===0&&!x.hasListener()&&(delete this.cache_[m],--this.cacheSize_)}}},o.prototype.get=function(f,m,x){var v=PSt(f,m,x);return v in this.cache_?this.cache_[v]:null},o.prototype.set=function(f,m,x,v){var y=PSt(f,m,x);this.cache_[y]=v,++this.cacheSize_},o.prototype.setSize=function(f){this.maxCacheSize_=f,this.expire()},o}();function PSt(o,f,m){var x=m?gxe(m):"null";return f+":"+o+":"+x}var GHe=new ddr;var fdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Nte=null,pdr=function(o){fdr(f,o);function f(m,x,v,y,C,w){var T=o.call(this)||this;return T.hitDetectionImage_=null,T.image_=m||new Image,y!==null&&(T.image_.crossOrigin=y),T.canvas_={},T.color_=w,T.unlisten_=null,T.imageState_=C,T.size_=v,T.src_=x,T.tainted_,T}return f.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===Kh.LOADED){Nte||(Nte=Tm(1,1)),Nte.drawImage(this.image_,0,0);try{Nte.getImageData(0,0,1,1),this.tainted_=!1}catch{Nte=null,this.tainted_=!0}}return this.tainted_===!0},f.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(af.CHANGE)},f.prototype.handleImageError_=function(){this.imageState_=Kh.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.handleImageLoad_=function(){this.imageState_=Kh.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.getImage=function(m){return this.replaceColor_(m),this.canvas_[m]?this.canvas_[m]:this.image_},f.prototype.getPixelRatio=function(m){return this.replaceColor_(m),this.canvas_[m]?m:1},f.prototype.getImageState=function(){return this.imageState_},f.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var m=this.size_[0],x=this.size_[1],v=Tm(m,x);v.fillRect(0,0,m,x),this.hitDetectionImage_=v.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},f.prototype.getSize=function(){return this.size_},f.prototype.getSrc=function(){return this.src_},f.prototype.load=function(){if(this.imageState_==Kh.IDLE){this.imageState_=Kh.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=Lte(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},f.prototype.replaceColor_=function(m){if(!(!this.color_||this.canvas_[m]||this.imageState_!==Kh.LOADED)){var x=document.createElement("canvas");this.canvas_[m]=x,x.width=Math.ceil(this.image_.width*m),x.height=Math.ceil(this.image_.height*m);var v=x.getContext("2d");if(v.scale(m,m),v.drawImage(this.image_,0,0),v.globalCompositeOperation="multiply",v.globalCompositeOperation==="multiply"||this.isTainted_())v.fillStyle=gxe(this.color_),v.fillRect(0,0,x.width/m,x.height/m),v.globalCompositeOperation="destination-in",v.drawImage(this.image_,0,0);else{for(var y=v.getImageData(0,0,x.width,x.height),C=y.data,w=this.color_[0]/255,T=this.color_[1]/255,E=this.color_[2]/255,A=this.color_[3],S=0,M=C.length;S<M;S+=4)C[S]*=w,C[S+1]*=T,C[S+2]*=E,C[S+3]*=A;v.putImageData(y,0,0)}}},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(PD);function ISt(o,f,m,x,v,y){var C=GHe.get(f,x,y);return C||(C=new pdr(o,f,m,x,v,y),GHe.set(f,x,y,C)),C}var mdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),xdr=function(o){mdr(f,o);function f(m){var x=this,v=m||{},y=v.opacity!==void 0?v.opacity:1,C=v.rotation!==void 0?v.rotation:0,w=v.scale!==void 0?v.scale:1,T=v.rotateWithView!==void 0?v.rotateWithView:!1;x=o.call(this,{opacity:y,rotation:C,scale:w,displacement:v.displacement!==void 0?v.displacement:[0,0],rotateWithView:T,declutterMode:v.declutterMode})||this,x.anchor_=v.anchor!==void 0?v.anchor:[.5,.5],x.normalizedAnchor_=null,x.anchorOrigin_=v.anchorOrigin!==void 0?v.anchorOrigin:oT.TOP_LEFT,x.anchorXUnits_=v.anchorXUnits!==void 0?v.anchorXUnits:FD.FRACTION,x.anchorYUnits_=v.anchorYUnits!==void 0?v.anchorYUnits:FD.FRACTION,x.crossOrigin_=v.crossOrigin!==void 0?v.crossOrigin:null;var E=v.img!==void 0?v.img:null;x.imgSize_=v.imgSize;var A=v.src;Qu(!(A!==void 0&&E),4),Qu(!E||E&&x.imgSize_,5),(A===void 0||A.length===0)&&E&&(A=E.src||ju(E)),Qu(A!==void 0&&A.length>0,6);var S=v.src!==void 0?Kh.IDLE:Kh.LOADED;return x.color_=v.color!==void 0?xH(v.color):null,x.iconImage_=ISt(E,A,x.imgSize_!==void 0?x.imgSize_:null,x.crossOrigin_,S,x.color_),x.offset_=v.offset!==void 0?v.offset:[0,0],x.offsetOrigin_=v.offsetOrigin!==void 0?v.offsetOrigin:oT.TOP_LEFT,x.origin_=null,x.size_=v.size!==void 0?v.size:null,x}return f.prototype.clone=function(){var m=this.getScale();return new f({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(m)?m.slice():m,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},f.prototype.getAnchor=function(){var m=this.normalizedAnchor_;if(!m){m=this.anchor_;var x=this.getSize();if(this.anchorXUnits_==FD.FRACTION||this.anchorYUnits_==FD.FRACTION){if(!x)return null;m=this.anchor_.slice(),this.anchorXUnits_==FD.FRACTION&&(m[0]*=x[0]),this.anchorYUnits_==FD.FRACTION&&(m[1]*=x[1])}if(this.anchorOrigin_!=oT.TOP_LEFT){if(!x)return null;m===this.anchor_&&(m=this.anchor_.slice()),(this.anchorOrigin_==oT.TOP_RIGHT||this.anchorOrigin_==oT.BOTTOM_RIGHT)&&(m[0]=-m[0]+x[0]),(this.anchorOrigin_==oT.BOTTOM_LEFT||this.anchorOrigin_==oT.BOTTOM_RIGHT)&&(m[1]=-m[1]+x[1])}this.normalizedAnchor_=m}var v=this.getDisplacement();return[m[0]-v[0],m[1]+v[1]]},f.prototype.setAnchor=function(m){this.anchor_=m,this.normalizedAnchor_=null},f.prototype.getColor=function(){return this.color_},f.prototype.getImage=function(m){return this.iconImage_.getImage(m)},f.prototype.getPixelRatio=function(m){return this.iconImage_.getPixelRatio(m)},f.prototype.getImageSize=function(){return this.iconImage_.getSize()},f.prototype.getImageState=function(){return this.iconImage_.getImageState()},f.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},f.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var m=this.offset_;if(this.offsetOrigin_!=oT.TOP_LEFT){var x=this.getSize(),v=this.iconImage_.getSize();if(!x||!v)return null;m=m.slice(),(this.offsetOrigin_==oT.TOP_RIGHT||this.offsetOrigin_==oT.BOTTOM_RIGHT)&&(m[0]=v[0]-x[0]-m[0]),(this.offsetOrigin_==oT.BOTTOM_LEFT||this.offsetOrigin_==oT.BOTTOM_RIGHT)&&(m[1]=v[1]-x[1]-m[1])}return this.origin_=m,this.origin_},f.prototype.getSrc=function(){return this.iconImage_.getSrc()},f.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},f.prototype.listenImageChange=function(m){this.iconImage_.addEventListener(af.CHANGE,m)},f.prototype.load=function(){this.iconImage_.load()},f.prototype.unlistenImageChange=function(m){this.iconImage_.removeEventListener(af.CHANGE,m)},f}(xxe),WHe=xdr;var sO=.5;function MSt(o,f,m,x,v,y,C){var w=o[0]*sO,T=o[1]*sO,E=Tm(w,T);E.imageSmoothingEnabled=!1;for(var A=E.canvas,S=new SSt(E,sO,v,null,C),M=m.length,I=Math.floor((256*256*256-1)/M),P={},D=1;D<=M;++D){var R=m[D-1],L=R.getStyleFunction()||x;if(!!x){var O=L(R,y);if(!!O){Array.isArray(O)||(O=[O]);for(var F=D*I,B="#"+("000000"+F.toString(16)).slice(-6),H=0,G=O.length;H<G;++H){var W=O[H],Y=W.getGeometryFunction()(R);if(!(!Y||!sf(v,Y.getExtent()))){var K=W.clone(),X=K.getFill();X&&X.setColor(B);var q=K.getStroke();q&&(q.setColor(B),q.setLineDash(null)),K.setText(void 0);var J=W.getImage();if(J&&J.getOpacity()!==0){var Z=J.getImageSize();if(!Z)continue;var z=Tm(Z[0],Z[1],void 0,{alpha:!1}),te=z.canvas;z.fillStyle=B,z.fillRect(0,0,te.width,te.height),K.setImage(new WHe({img:te,imgSize:Z,anchor:J.getAnchor(),anchorXUnits:FD.PIXELS,anchorYUnits:FD.PIXELS,offset:J.getOrigin(),opacity:1,size:J.getSize(),scale:J.getScale(),rotation:J.getRotation(),rotateWithView:J.getRotateWithView()}))}var ie=K.getZIndex()||0,re=P[ie];re||(re={},P[ie]=re,re.Polygon=[],re.Circle=[],re.LineString=[],re.Point=[]),re[Y.getType().replace("Multi","")].push(Y,K)}}}}}for(var ee=Object.keys(P).map(Number).sort(kP),D=0,oe=ee.length;D<oe;++D){var re=P[ee[D]];for(var ae in re)for(var he=re[ae],H=0,G=he.length;H<G;H+=2){S.setStyle(he[H+1]);for(var me=0,ue=f.length;me<ue;++me)S.setTransform(f[me]),S.drawGeometry(he[H])}}return E.getImageData(0,0,A.width,A.height)}function DSt(o,f,m){var x=[];if(m){var v=Math.floor(Math.round(o[0])*sO),y=Math.floor(Math.round(o[1])*sO),C=(PC(v,0,m.width-1)+PC(y,0,m.height-1)*m.width)*4,w=m.data[C],T=m.data[C+1],E=m.data[C+2],A=E+256*(T+256*w),S=Math.floor((256*256*256-1)/f.length);A&&A%S===0&&x.push(f[A/S-1])}return x}var gdr=.5,RSt={Point:Edr,LineString:bdr,Polygon:Sdr,MultiPoint:Adr,MultiLineString:wdr,MultiPolygon:Tdr,GeometryCollection:Cdr,Circle:vdr};function LSt(o,f){var m=_dr(o,f);return m*m}function _dr(o,f){return gdr*o/f}function vdr(o,f,m,x,v){var y=m.getFill(),C=m.getStroke();if(y||C){var w=o.getBuilder(m.getZIndex(),"Circle");w.setFillStrokeStyle(y,C),w.drawCircle(f,x)}var T=m.getText();if(T&&T.getText()){var E=(v||o).getBuilder(m.getZIndex(),"Text");E.setTextStyle(T),E.drawText(f,x)}}function jHe(o,f,m,x,v,y,C){var w=!1,T=m.getImage();if(T){var E=T.getImageState();E==Kh.LOADED||E==Kh.ERROR?T.unlistenImageChange(v):(E==Kh.IDLE&&T.load(),T.listenImageChange(v),w=!0)}return ydr(o,f,m,x,y,C),w}function ydr(o,f,m,x,v,y){var C=m.getGeometryFunction()(f);if(!!C){var w=C.simplifyTransformed(x,v),T=m.getRenderer();if(T)OSt(o,w,m,f);else{var E=RSt[w.getType()];E(o,w,m,f,y)}}}function OSt(o,f,m,x){if(f.getType()=="GeometryCollection"){for(var v=f.getGeometries(),y=0,C=v.length;y<C;++y)OSt(o,v[y],m,x);return}var w=o.getBuilder(m.getZIndex(),"Default");w.drawCustom(f,x,m.getRenderer(),m.getHitDetectionRenderer())}function Cdr(o,f,m,x,v){var y=f.getGeometriesArray(),C,w;for(C=0,w=y.length;C<w;++C){var T=RSt[y[C].getType()];T(o,y[C],m,x,v)}}function bdr(o,f,m,x,v){var y=m.getStroke();if(y){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,y),C.drawLineString(f,x)}var w=m.getText();if(w&&w.getText()){var T=(v||o).getBuilder(m.getZIndex(),"Text");T.setTextStyle(w),T.drawText(f,x)}}function wdr(o,f,m,x,v){var y=m.getStroke();if(y){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,y),C.drawMultiLineString(f,x)}var w=m.getText();if(w&&w.getText()){var T=(v||o).getBuilder(m.getZIndex(),"Text");T.setTextStyle(w),T.drawText(f,x)}}function Tdr(o,f,m,x,v){var y=m.getFill(),C=m.getStroke();if(C||y){var w=o.getBuilder(m.getZIndex(),"Polygon");w.setFillStrokeStyle(y,C),w.drawMultiPolygon(f,x)}var T=m.getText();if(T&&T.getText()){var E=(v||o).getBuilder(m.getZIndex(),"Text");E.setTextStyle(T),E.drawText(f,x)}}function Edr(o,f,m,x,v){var y=m.getImage(),C=m.getText(),w;if(y){if(y.getImageState()!=Kh.LOADED)return;var T=o;if(v){var E=y.getDeclutterMode();if(E!=="none")if(T=v,E==="obstacle"){var A=o.getBuilder(m.getZIndex(),"Image");A.setImageStyle(y,w),A.drawPoint(f,x)}else C&&C.getText()&&(w={})}var S=T.getBuilder(m.getZIndex(),"Image");S.setImageStyle(y,w),S.drawPoint(f,x)}if(C&&C.getText()){var M=o;v&&(M=v);var I=M.getBuilder(m.getZIndex(),"Text");I.setTextStyle(C,w),I.drawText(f,x)}}function Adr(o,f,m,x,v){var y=m.getImage(),C=m.getText(),w;if(y){if(y.getImageState()!=Kh.LOADED)return;var T=o;if(v){var E=y.getDeclutterMode();if(E!=="none")if(T=v,E==="obstacle"){var A=o.getBuilder(m.getZIndex(),"Image");A.setImageStyle(y,w),A.drawMultiPoint(f,x)}else C&&C.getText()&&(w={})}var S=T.getBuilder(m.getZIndex(),"Image");S.setImageStyle(y,w),S.drawMultiPoint(f,x)}if(C&&C.getText()){var M=o;v&&(M=v);var I=M.getBuilder(m.getZIndex(),"Text");I.setTextStyle(C,w),I.drawText(f,x)}}function Sdr(o,f,m,x,v){var y=m.getFill(),C=m.getStroke();if(y||C){var w=o.getBuilder(m.getZIndex(),"Polygon");w.setFillStrokeStyle(y,C),w.drawPolygon(f,x)}var T=m.getText();if(T&&T.getText()){var E=(v||o).getBuilder(m.getZIndex(),"Text");E.setTextStyle(T),E.drawText(f,x)}}var Pdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Idr={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Mdr={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},Ddr=function(o){Pdr(f,o);function f(m){var x=o.call(this,m)||this;return x.boundHandleStyleImageChange_=x.handleStyleImageChange_.bind(x),x.renderedLayerRevision_,x.renderedPixelToCoordinateTransform_=null,x.renderedRotation_,x.tmpTransform_=Bv(),x}return f.prototype.prepareTile=function(m,x,v){var y,C=m.getState();return(C===ca.LOADED||C===ca.ERROR)&&(this.updateExecutorGroup_(m,x,v),this.tileImageNeedsRender_(m)&&(y=!0)),y},f.prototype.getTile=function(m,x,v,y){var C=y.pixelRatio,w=y.viewState,T=w.resolution,E=w.projection,A=this.getLayer(),S=A.getSource().getTile(m,x,v,C,E),M=y.viewHints,I=!(M[yH.ANIMATING]||M[yH.INTERACTING]);(I||!S.wantedResolution)&&(S.wantedResolution=T);var P=this.prepareTile(S,C,E);return P&&(I||Date.now()-y.time<8)&&A.getRenderMode()!==ND.VECTOR&&this.renderTileImage_(S,y),o.prototype.getTile.call(this,m,x,v,y)},f.prototype.isDrawableTile=function(m){var x=this.getLayer();return o.prototype.isDrawableTile.call(this,m)&&(x.getRenderMode()===ND.VECTOR?ju(x)in m.executorGroups:m.hasContext(x))},f.prototype.getTileImage=function(m){return m.getImage(this.getLayer())},f.prototype.prepareFrame=function(m){var x=this.getLayer().getRevision();return this.renderedLayerRevision_!==x&&(this.renderedLayerRevision_=x,this.renderedTiles.length=0),o.prototype.prepareFrame.call(this,m)},f.prototype.updateExecutorGroup_=function(m,x,v){var y=this.getLayer(),C=y.getRevision(),w=y.getRenderOrder()||null,T=m.wantedResolution,E=m.getReplayState(y);if(!(!E.dirty&&E.renderedResolution===T&&E.renderedRevision==C&&E.renderedRenderOrder==w)){var A=y.getSource(),S=y.getDeclutter(),M=A.getTileGrid(),I=A.getTileGridForProjection(v),P=I.getTileCoordExtent(m.wrappedTileCoord),D=A.getSourceTiles(x,v,m),R=ju(y);delete m.hitDetectionImageData[R],m.executorGroups[R]=[],S&&(m.declutterExecutorGroups[R]=[]),E.dirty=!1;for(var L=function(H,G){var W=D[H];if(W.getState()!=ca.LOADED)return"continue";var Y=W.tileCoord,K=M.getTileCoordExtent(Y),X=MD(P,K),q=UP(X,y.getRenderBuffer()*T,O.tmpExtent),J=UB(K,X)?null:q,Z=new FHe(0,q,T,x),z=S?new FHe(0,X,T,x):void 0,te=LSt(T,x),ie=function(de){var fe,we=de.getStyleFunction()||y.getStyleFunction();if(we&&(fe=we(de,T)),fe){var Te=this.renderFeature(de,te,fe,Z,z);E.dirty=E.dirty||Te}},re=W.getFeatures();w&&w!==E.renderedRenderOrder&&re.sort(w);for(var ee=0,oe=re.length;ee<oe;++ee){var ae=re[ee];(!J||sf(J,ae.getGeometry().getExtent()))&&ie.call(O,ae)}var he=Z.finish(),me=y.getRenderMode()!==ND.VECTOR&&S&&D.length===1?null:X,ue=new VHe(me,T,x,A.getOverlaps(),he,y.getRenderBuffer());if(m.executorGroups[R].push(ue),z){var ce=new VHe(null,T,x,A.getOverlaps(),z.finish(),y.getRenderBuffer());m.declutterExecutorGroups[R].push(ce)}},O=this,F=0,B=D.length;F<B;++F)L(F,B);E.renderedRevision=C,E.renderedRenderOrder=w,E.renderedResolution=T}},f.prototype.forEachFeatureAtCoordinate=function(m,x,v,y,C){var w=x.viewState.resolution,T=x.viewState.rotation;v=v??0;var E=this.getLayer(),A=E.getSource(),S=A.getTileGridForProjection(x.viewState.projection),M=ute([m]);UP(M,w*v,M);for(var I={},P=function(B,H,G){var W=B.getId();W===void 0&&(W=ju(B));var Y=I[W];if(Y){if(Y!==!0&&G<Y.distanceSq){if(G===0)return I[W]=!0,C.splice(C.lastIndexOf(Y),1),y(B,E,H);Y.geometry=H,Y.distanceSq=G}}else{if(G===0)return I[W]=!0,y(B,E,H);C.push(I[W]={feature:B,layer:E,geometry:H,distanceSq:G,callback:y})}},D=this.renderedTiles,R,L=function(B,H){var G=D[B],W=S.getTileCoordExtent(G.wrappedTileCoord);if(!sf(W,M))return"continue";var Y=ju(E),K=[G.executorGroups[Y]],X=G.declutterExecutorGroups[Y];X&&K.push(X),K.some(function(q){for(var J=q===X?x.declutterTree.all().map(function(ie){return ie.value}):null,Z=0,z=q.length;Z<z;++Z){var te=q[Z];if(R=te.forEachFeatureAtCoordinate(m,w,T,v,P,J),R)return!0}})},O=0,F=D.length;!R&&O<F;++O)L(O,F);return R},f.prototype.getFeatures=function(m){return new Promise(function(x,v){for(var y=this.getLayer(),C=ju(y),w=y.getSource(),T=this.renderedProjection,E=T.getExtent(),A=this.renderedResolution,S=w.getTileGridForProjection(T),M=Em(this.renderedPixelToCoordinateTransform_,m.slice()),I=S.getTileCoordForCoordAndResolution(M,A),P,D=0,R=this.renderedTiles.length;D<R;++D)if(I.toString()===this.renderedTiles[D].tileCoord.toString()){if(P=this.renderedTiles[D],P.getState()===ca.LOADED){var L=S.getTileCoordExtent(P.tileCoord);w.getWrapX()&&T.canWrapX()&&!Oj(E,L)&&FEt(M,T);break}P=void 0}if(!P||P.loadingSourceTiles>0){x([]);return}var O=S.getTileCoordExtent(P.wrappedTileCoord),F=n1(O),B=[(M[0]-F[0])/A,(F[1]-M[1])/A],H=P.getSourceTiles().reduce(function(X,q){return X.concat(q.getFeatures())},[]),G=P.hitDetectionImageData[C];if(!G&&!this.animatingOrInteracting_){var W=jp(S.getTileSize(S.getZForResolution(A,w.zDirection))),Y=this.renderedRotation_,K=[this.getRenderTransform(S.getTileCoordCenter(P.wrappedTileCoord),A,0,sO,W[0]*sO,W[1]*sO,0)];G=MSt(W,K,H,y.getStyleFunction(),S.getTileCoordExtent(P.wrappedTileCoord),P.getReplayState(y).renderedResolution,Y),P.hitDetectionImageData[C]=G}x(DSt(B,H,G))}.bind(this))},f.prototype.handleFontsChanged=function(){var m=this.getLayer();m.getVisible()&&this.renderedLayerRevision_!==void 0&&m.changed()},f.prototype.handleStyleImageChange_=function(m){this.renderIfReadyAndVisible()},f.prototype.renderDeclutter=function(m){var x=this.context,v=x.globalAlpha;x.globalAlpha=this.getLayer().getOpacity();for(var y=m.viewHints,C=!(y[yH.ANIMATING]||y[yH.INTERACTING]),w=this.renderedTiles,T=0,E=w.length;T<E;++T){var A=w[T],S=A.declutterExecutorGroups[ju(this.getLayer())];if(S)for(var M=S.length-1;M>=0;--M)S[M].execute(this.context,1,this.getTileRenderTransform(A,m),m.viewState.rotation,C,void 0,m.declutterTree)}x.globalAlpha=v},f.prototype.getTileRenderTransform=function(m,x){var v=x.pixelRatio,y=x.viewState,C=y.center,w=y.resolution,T=y.rotation,E=x.size,A=Math.round(E[0]*v),S=Math.round(E[1]*v),M=this.getLayer().getSource(),I=M.getTileGridForProjection(x.viewState.projection),P=m.tileCoord,D=I.getTileCoordExtent(m.wrappedTileCoord),R=I.getTileCoordExtent(P,this.tmpExtent)[0]-D[0],L=axe(gte(this.inversePixelTransform.slice(),1/v,1/v),this.getRenderTransform(C,w,T,v,A,S,R));return L},f.prototype.renderFrame=function(m,x){var v=m.viewHints,y=!(v[yH.ANIMATING]||v[yH.INTERACTING]);o.prototype.renderFrame.call(this,m,x),this.renderedPixelToCoordinateTransform_=m.pixelToCoordinateTransform.slice(),this.renderedRotation_=m.viewState.rotation;var C=this.getLayer(),w=C.getRenderMode(),T=this.context,E=T.globalAlpha;T.globalAlpha=C.getOpacity();for(var A=Mdr[w],S=m.viewState,M=S.rotation,I=C.getSource(),P=I.getTileGridForProjection(S.projection),D=P.getZForResolution(S.resolution,I.zDirection),R=this.renderedTiles,L=[],O=[],F=!0,B=R.length-1;B>=0;--B){var H=R[B];F=F&&!H.getReplayState(C).dirty;var G=H.executorGroups[ju(C)].filter(function(re){return re.hasExecutors(A)});if(G.length!==0){var W=this.getTileRenderTransform(H,m),Y=H.tileCoord[0],K=!1,X=G[0].getClipCoords(W);if(X){for(var q=0,J=L.length;q<J;++q)if(D!==Y&&Y<O[q]){var Z=L[q];sf([X[0],X[3],X[4],X[7]],[Z[0],Z[3],Z[4],Z[7]])&&(K||(T.save(),K=!0),T.beginPath(),T.moveTo(X[0],X[1]),T.lineTo(X[2],X[3]),T.lineTo(X[4],X[5]),T.lineTo(X[6],X[7]),T.moveTo(Z[6],Z[7]),T.lineTo(Z[4],Z[5]),T.lineTo(Z[2],Z[3]),T.lineTo(Z[0],Z[1]),T.clip())}L.push(X),O.push(Y)}for(var z=0,te=G.length;z<te;++z){var ie=G[z];ie.execute(T,1,W,M,y,A)}K&&T.restore()}}return T.globalAlpha=E,this.ready=F,this.container},f.prototype.renderFeature=function(m,x,v,y,C){if(!v)return!1;var w=!1;if(Array.isArray(v))for(var T=0,E=v.length;T<E;++T)w=jHe(y,m,v[T],x,this.boundHandleStyleImageChange_,void 0,C)||w;else w=jHe(y,m,v,x,this.boundHandleStyleImageChange_,void 0,C);return w},f.prototype.tileImageNeedsRender_=function(m){var x=this.getLayer();if(x.getRenderMode()===ND.VECTOR)return!1;var v=m.getReplayState(x),y=x.getRevision(),C=m.wantedResolution;return v.renderedTileResolution!==C||v.renderedTileRevision!==y},f.prototype.renderTileImage_=function(m,x){var v=this.getLayer(),y=m.getReplayState(v),C=v.getRevision(),w=m.executorGroups[ju(v)];y.renderedTileRevision=C;var T=m.wrappedTileCoord,E=T[0],A=v.getSource(),S=x.pixelRatio,M=x.viewState,I=M.projection,P=A.getTileGridForProjection(I),D=P.getResolution(m.tileCoord[0]),R=x.pixelRatio/m.wantedResolution*D,L=P.getResolution(E),O=m.getContext(v);S=Math.round(Math.max(S,R/S));var F=A.getTilePixelSize(E,S,I);O.canvas.width=F[0],O.canvas.height=F[1];var B=S/R;if(B!==1){var H=dHe(this.tmpTransform_);gte(H,B,B),O.setTransform.apply(O,H)}var G=P.getTileCoordExtent(T,this.tmpExtent),W=R/L,Y=dHe(this.tmpTransform_);gte(Y,W,-W),lAt(Y,-G[0],-G[3]);for(var K=0,X=w.length;K<X;++K){var q=w[K];q.execute(O,B,Y,0,!0,Idr[v.getRenderMode()])}y.renderedTileResolution=m.wantedResolution},f}(ASt),NSt=Ddr;var Fte={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var Rdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Ldr=function(o){Rdr(f,o);function f(m){var x=this,v=m||{},y=$x({},v);delete y.preload,delete y.useInterimTilesOnError,x=o.call(this,y)||this,x.on,x.once,x.un,v.renderMode===ND.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),v.renderMode=void 0);var C=v.renderMode||ND.HYBRID;return Qu(C==ND.HYBRID||C==ND.VECTOR,28),x.renderMode_=C,x.setPreload(v.preload?v.preload:0),x.setUseInterimTilesOnError(v.useInterimTilesOnError!==void 0?v.useInterimTilesOnError:!0),x.getBackground,x.setBackground,x}return f.prototype.createRenderer=function(){return new NSt(this)},f.prototype.getFeatures=function(m){return o.prototype.getFeatures.call(this,m)},f.prototype.getRenderMode=function(){return this.renderMode_},f.prototype.getPreload=function(){return this.get(Fte.PRELOAD)},f.prototype.getUseInterimTilesOnError=function(){return this.get(Fte.USE_INTERIM_TILES_ON_ERROR)},f.prototype.setPreload=function(m){this.set(Fte.PRELOAD,m)},f.prototype.setUseInterimTilesOnError=function(m){this.set(Fte.USE_INTERIM_TILES_ON_ERROR,m)},f}(rSt),FSt=Ldr;var e4={ADD:"add",REMOVE:"remove"};var kSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),BSt={LENGTH:"length"},bxe=function(o){kSt(f,o);function f(m,x,v){var y=o.call(this,m)||this;return y.element=x,y.index=v,y}return f}(hA);var Odr=function(o){kSt(f,o);function f(m,x){var v=o.call(this)||this;v.on,v.once,v.un;var y=x||{};if(v.unique_=!!y.unique,v.array_=m||[],v.unique_)for(var C=0,w=v.array_.length;C<w;++C)v.assertUnique_(v.array_[C],C);return v.updateLength_(),v}return f.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},f.prototype.extend=function(m){for(var x=0,v=m.length;x<v;++x)this.push(m[x]);return this},f.prototype.forEach=function(m){for(var x=this.array_,v=0,y=x.length;v<y;++v)m(x[v],v,x)},f.prototype.getArray=function(){return this.array_},f.prototype.item=function(m){return this.array_[m]},f.prototype.getLength=function(){return this.get(BSt.LENGTH)},f.prototype.insertAt=function(m,x){this.unique_&&this.assertUnique_(x),this.array_.splice(m,0,x),this.updateLength_(),this.dispatchEvent(new bxe(e4.ADD,x,m))},f.prototype.pop=function(){return this.removeAt(this.getLength()-1)},f.prototype.push=function(m){this.unique_&&this.assertUnique_(m);var x=this.getLength();return this.insertAt(x,m),this.getLength()},f.prototype.remove=function(m){for(var x=this.array_,v=0,y=x.length;v<y;++v)if(x[v]===m)return this.removeAt(v)},f.prototype.removeAt=function(m){var x=this.array_[m];return this.array_.splice(m,1),this.updateLength_(),this.dispatchEvent(new bxe(e4.REMOVE,x,m)),x},f.prototype.setAt=function(m,x){var v=this.getLength();if(m<v){this.unique_&&this.assertUnique_(x,m);var y=this.array_[m];this.array_[m]=x,this.dispatchEvent(new bxe(e4.REMOVE,y,m)),this.dispatchEvent(new bxe(e4.ADD,x,m))}else{for(var C=v;C<m;++C)this.insertAt(C,void 0);this.insertAt(m,x)}},f.prototype.updateLength_=function(){this.set(BSt.LENGTH,this.array_.length)},f.prototype.assertUnique_=function(m,x){for(var v=0,y=this.array_.length;v<y;++v)if(this.array_[v]===m&&v!==x)throw new Bme(58)},f}(pA),VSt=Odr;var zSt=gS(LHe(),1);var Ndr=function(){function o(f){this.rbush_=new zSt.default(f),this.items_={}}return o.prototype.insert=function(f,m){var x={minX:f[0],minY:f[1],maxX:f[2],maxY:f[3],value:m};this.rbush_.insert(x),this.items_[ju(m)]=x},o.prototype.load=function(f,m){for(var x=new Array(m.length),v=0,y=m.length;v<y;v++){var C=f[v],w=m[v],T={minX:C[0],minY:C[1],maxX:C[2],maxY:C[3],value:w};x[v]=T,this.items_[ju(w)]=T}this.rbush_.load(x)},o.prototype.remove=function(f){var m=ju(f),x=this.items_[m];return delete this.items_[m],this.rbush_.remove(x)!==null},o.prototype.update=function(f,m){var x=this.items_[ju(m)],v=[x.minX,x.minY,x.maxX,x.maxY];UB(v,f)||(this.remove(m),this.insert(f,m))},o.prototype.getAll=function(){var f=this.rbush_.all();return f.map(function(m){return m.value})},o.prototype.getInExtent=function(f){var m={minX:f[0],minY:f[1],maxX:f[2],maxY:f[3]},x=this.rbush_.search(m);return x.map(function(v){return v.value})},o.prototype.forEach=function(f){return this.forEach_(this.getAll(),f)},o.prototype.forEachInExtent=function(f,m){return this.forEach_(this.getInExtent(f),m)},o.prototype.forEach_=function(f,m){for(var x,v=0,y=f.length;v<y;v++)if(x=m(f[v]),x)return x;return x},o.prototype.isEmpty=function(){return VP(this.items_)},o.prototype.clear=function(){this.rbush_.clear(),this.items_={}},o.prototype.getExtent=function(f){var m=this.rbush_.toJSON();return nT(m.minX,m.minY,m.maxX,m.maxY,f)},o.prototype.concat=function(f){this.rbush_.load(f.rbush_.all());for(var m in f.items_)this.items_[m]=f.items_[m]},o}(),qHe=Ndr;var gA={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function USt(o,f){return[[-1/0,-1/0,1/0,1/0]]}var HSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),t4=function(o){HSt(f,o);function f(m,x,v){var y=o.call(this,m)||this;return y.feature=x,y.features=v,y}return f}(hA);var Fdr=function(o){HSt(f,o);function f(m){var x=this,v=m||{};x=o.call(this,{attributions:v.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:v.wrapX!==void 0?v.wrapX:!0})||this,x.on,x.once,x.un,x.loader_=lH,x.format_=v.format,x.overlaps_=v.overlaps===void 0?!0:v.overlaps,x.url_=v.url,v.loader!==void 0?x.loader_=v.loader:x.url_!==void 0&&(Qu(x.format_,7),x.loader_=hHe(x.url_,x.format_)),x.strategy_=v.strategy!==void 0?v.strategy:USt;var y=v.useSpatialIndex!==void 0?v.useSpatialIndex:!0;x.featuresRtree_=y?new qHe:null,x.loadedExtentsRtree_=new qHe,x.loadingExtentsCount_=0,x.nullGeometryFeatures_={},x.idIndex_={},x.uidIndex_={},x.featureChangeKeys_={},x.featuresCollection_=null;var C,w;return Array.isArray(v.features)?w=v.features:v.features&&(C=v.features,w=C.getArray()),!y&&C===void 0&&(C=new VSt(w)),w!==void 0&&x.addFeaturesInternal(w),C!==void 0&&x.bindFeaturesCollection_(C),x}return f.prototype.addFeature=function(m){this.addFeatureInternal(m),this.changed()},f.prototype.addFeatureInternal=function(m){var x=ju(m);if(!this.addToIndex_(x,m)){this.featuresCollection_&&this.featuresCollection_.remove(m);return}this.setupChangeEvents_(x,m);var v=m.getGeometry();if(v){var y=v.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(y,m)}else this.nullGeometryFeatures_[x]=m;this.dispatchEvent(new t4(gA.ADDFEATURE,m))},f.prototype.setupChangeEvents_=function(m,x){this.featureChangeKeys_[m]=[IC(x,af.CHANGE,this.handleFeatureChange_,this),IC(x,$me.PROPERTYCHANGE,this.handleFeatureChange_,this)]},f.prototype.addToIndex_=function(m,x){var v=!0,y=x.getId();return y!==void 0&&(y.toString()in this.idIndex_?v=!1:this.idIndex_[y.toString()]=x),v&&(Qu(!(m in this.uidIndex_),30),this.uidIndex_[m]=x),v},f.prototype.addFeatures=function(m){this.addFeaturesInternal(m),this.changed()},f.prototype.addFeaturesInternal=function(m){for(var x=[],v=[],y=[],C=0,w=m.length;C<w;C++){var T=m[C],E=ju(T);this.addToIndex_(E,T)&&v.push(T)}for(var C=0,A=v.length;C<A;C++){var T=v[C],E=ju(T);this.setupChangeEvents_(E,T);var S=T.getGeometry();if(S){var M=S.getExtent();x.push(M),y.push(T)}else this.nullGeometryFeatures_[E]=T}if(this.featuresRtree_&&this.featuresRtree_.load(x,y),this.hasListener(gA.ADDFEATURE))for(var C=0,I=v.length;C<I;C++)this.dispatchEvent(new t4(gA.ADDFEATURE,v[C]))},f.prototype.bindFeaturesCollection_=function(m){var x=!1;this.addEventListener(gA.ADDFEATURE,function(v){x||(x=!0,m.push(v.feature),x=!1)}),this.addEventListener(gA.REMOVEFEATURE,function(v){x||(x=!0,m.remove(v.feature),x=!1)}),m.addEventListener(e4.ADD,function(v){x||(x=!0,this.addFeature(v.element),x=!1)}.bind(this)),m.addEventListener(e4.REMOVE,function(v){x||(x=!0,this.removeFeature(v.element),x=!1)}.bind(this)),this.featuresCollection_=m},f.prototype.clear=function(m){if(m){for(var x in this.featureChangeKeys_){var v=this.featureChangeKeys_[x];v.forEach(Fv)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var y=function(T){this.removeFeatureInternal(T)}.bind(this);this.featuresRtree_.forEach(y);for(var C in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[C])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var w=new t4(gA.CLEAR);this.dispatchEvent(w),this.changed()},f.prototype.forEachFeature=function(m){if(this.featuresRtree_)return this.featuresRtree_.forEach(m);this.featuresCollection_&&this.featuresCollection_.forEach(m)},f.prototype.forEachFeatureAtCoordinateDirect=function(m,x){var v=[m[0],m[1],m[0],m[1]];return this.forEachFeatureInExtent(v,function(y){var C=y.getGeometry();if(C.intersectsCoordinate(m))return x(y)})},f.prototype.forEachFeatureInExtent=function(m,x){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(m,x);this.featuresCollection_&&this.featuresCollection_.forEach(x)},f.prototype.forEachFeatureIntersectingExtent=function(m,x){return this.forEachFeatureInExtent(m,function(v){var y=v.getGeometry();if(y.intersectsExtent(m)){var C=x(v);if(C)return C}})},f.prototype.getFeaturesCollection=function(){return this.featuresCollection_},f.prototype.getFeatures=function(){var m;return this.featuresCollection_?m=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(m=this.featuresRtree_.getAll(),VP(this.nullGeometryFeatures_)||Ov(m,iEt(this.nullGeometryFeatures_))),m},f.prototype.getFeaturesAtCoordinate=function(m){var x=[];return this.forEachFeatureAtCoordinateDirect(m,function(v){x.push(v)}),x},f.prototype.getFeaturesInExtent=function(m,x){var v=this;if(this.featuresRtree_){var y=x&&x.canWrapX()&&this.getWrapX();if(!y)return this.featuresRtree_.getInExtent(m);var C=bEt(m,x);return[].concat.apply([],C.map(function(w){return v.featuresRtree_.getInExtent(w)}))}else return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},f.prototype.getClosestFeatureToCoordinate=function(m,x){var v=m[0],y=m[1],C=null,w=[NaN,NaN],T=1/0,E=[-1/0,-1/0,1/0,1/0],A=x||eEt;return this.featuresRtree_.forEachInExtent(E,function(S){if(A(S)){var M=S.getGeometry(),I=T;if(T=M.closestPointXY(v,y,w,T),T<I){C=S;var P=Math.sqrt(T);E[0]=v-P,E[1]=y-P,E[2]=v+P,E[3]=y+P}}}),C},f.prototype.getExtent=function(m){return this.featuresRtree_.getExtent(m)},f.prototype.getFeatureById=function(m){var x=this.idIndex_[m.toString()];return x!==void 0?x:null},f.prototype.getFeatureByUid=function(m){var x=this.uidIndex_[m];return x!==void 0?x:null},f.prototype.getFormat=function(){return this.format_},f.prototype.getOverlaps=function(){return this.overlaps_},f.prototype.getUrl=function(){return this.url_},f.prototype.handleFeatureChange_=function(m){var x=m.target,v=ju(x),y=x.getGeometry();if(!y)v in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(x),this.nullGeometryFeatures_[v]=x);else{var C=y.getExtent();v in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[v],this.featuresRtree_&&this.featuresRtree_.insert(C,x)):this.featuresRtree_&&this.featuresRtree_.update(C,x)}var w=x.getId();if(w!==void 0){var T=w.toString();this.idIndex_[T]!==x&&(this.removeFromIdIndex_(x),this.idIndex_[T]=x)}else this.removeFromIdIndex_(x),this.uidIndex_[v]=x;this.changed(),this.dispatchEvent(new t4(gA.CHANGEFEATURE,x))},f.prototype.hasFeature=function(m){var x=m.getId();return x!==void 0?x in this.idIndex_:ju(m)in this.uidIndex_},f.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&VP(this.nullGeometryFeatures_):this.featuresCollection_?this.featuresCollection_.getLength()===0:!0},f.prototype.loadFeatures=function(m,x,v){for(var y=this.loadedExtentsRtree_,C=this.strategy_(m,x,v),w=function(S,M){var I=C[S],P=y.forEachInExtent(I,function(D){return Oj(D.extent,I)});P||(++T.loadingExtentsCount_,T.dispatchEvent(new t4(gA.FEATURESLOADSTART)),T.loader_.call(T,I,x,v,function(D){--this.loadingExtentsCount_,this.dispatchEvent(new t4(gA.FEATURESLOADEND,void 0,D))}.bind(T),function(){--this.loadingExtentsCount_,this.dispatchEvent(new t4(gA.FEATURESLOADERROR))}.bind(T)),y.insert(I,{extent:I.slice()}))},T=this,E=0,A=C.length;E<A;++E)w(E,A);this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0},f.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),o.prototype.refresh.call(this)},f.prototype.removeLoadedExtent=function(m){var x=this.loadedExtentsRtree_,v;x.forEachInExtent(m,function(y){if(UB(y.extent,m))return v=y,!0}),v&&x.remove(v)},f.prototype.removeFeature=function(m){if(!!m){var x=ju(m);x in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[x]:this.featuresRtree_&&this.featuresRtree_.remove(m);var v=this.removeFeatureInternal(m);v&&this.changed()}},f.prototype.removeFeatureInternal=function(m){var x=ju(m),v=this.featureChangeKeys_[x];if(!!v){v.forEach(Fv),delete this.featureChangeKeys_[x];var y=m.getId();return y!==void 0&&delete this.idIndex_[y.toString()],delete this.uidIndex_[x],this.dispatchEvent(new t4(gA.REMOVEFEATURE,m)),m}},f.prototype.removeFromIdIndex_=function(m){var x=!1;for(var v in this.idIndex_)if(this.idIndex_[v]===m){delete this.idIndex_[v],x=!0;break}return x},f.prototype.setLoader=function(m){this.loader_=m},f.prototype.setUrl=function(m){Qu(this.format_,7),this.url_=m,this.setLoader(hHe(m,this.format_))},f}(rxe),GSt=Fdr;var Bdr={toDegrees:QUe,toFeature:FAt,transform:txe,VectorSource:GSt},wxe=class extends bm{constructor(f,m){super(f),this._primitive=null,this._parameter=null,this._wModels=[],this._instance=[],this.instanceId=new Map,this._parameter=m}async addToMap(){let f=this._parameter,m=f.sourceType??"wmts",x=null;if(m==="wmts")x=new I3(f);else if(m==="mapbox")x=new EU(f);else if(m==="arcgis")x=await bw.fromUrl(f.url,f);else if(m==="wms")x=new AU(f);else if(m==="multi")x=new EW(f);else if(m==="single")x=await Gw.fromUrl(f.url,f);else if(m==="tms"){let y=f.west??void 0,C=f.south??void 0,w=f.east??void 0,T=f.north??void 0;N(y)&&N(C)&&N(w)&&N(T)&&(f.rectangle=new Si(Ce.toRadians(y),Ce.toRadians(C),Ce.toRadians(w),Ce.toRadians(T))),N(f.fileExtension)&&f.fileExtension==="json"&&(f.callback=this.processGeoJson()),x=await bP.fromUrl(f.url,f)}else if(m==="baidu")x=new TW(f);else if(m==="gaode"||m==="geovis"||m==="qqmap")x=new e1(f);else if(m==="mapworld")x=new I3(f);else if(m==="osm")x=new OS(f);else if(m==="bingmap")x=await TU.fromUrl(f.url,f);else if(m==="mvt"){if(N(f.coreMap)||(f.coreMap=this._earthCtrl.coreMap),f.mvtConfig){let y=this.getVectorTileLayer(f.mvtConfig),C=f.projection?f.projection:"EPSG:3857";f.vectorTileLayer=y,f.projection=zEt(C)}x=new AW(f,Bdr)}x!==null&&(this._primitive=this._earthCtrl.imageryLayers.addImageryProvider(x,f.zIndex),this._primitive._layerIndex=f.zIndex),m==="ion"&&(this._primitive=Pp.fromProviderAsync(VF.fromAssetId(f.assetId),f),this._earthCtrl.imageryLayers.add(this._primitive),this._primitive._layerIndex=f.zIndex);let v=f.groupName||this._earthCtrl.language.GROUP_NWE_IMAGERY_LAYER;f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(v,{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name||m,sourceType:"ImageryProvider",item:this._primitive,feature:f,checked:this._primitive.show}))}getVectorTileLayer(f){let m=f.url?f.url:"",x=f.tileSize?f.tileSize:256,v=f.fillColor?f.fillColor:"rgba(68,197,19,0.5)",y=f.strokeColor?f.strokeColor:"rgba(0,31,255,1)",C=f.strokeWidth?f.strokeWidth:1,w=f.textColor?f.textColor:"#000",T=f.textStrokeColor?f.textStrokeColor:"#ff7d00",E=f.selectColor?f.selectColor:"#ff0000",A=f.selectGe_Id?f.selectGe_Id:[],S=f.geId?f.geId:"",M=new iAt({format:new kAt,tileSize:x,url:m}),I=function(D,R){let L=new JAt({fill:new vH({color:v}),stroke:new Ite({color:y,width:C}),text:new QAt({font:"80px Arial",textBaseline:"middle",text:D.get("name")||D.get("id")||"",fill:new vH({color:w}),stroke:new Ite({color:T,width:3})})});return A.includes(D.get(S))&&L.getFill().setColor(E),L};return new FSt({source:M,style:I})}checkWModels(f){return N(this._wModels[f])}removeInstance(f,m){let v=this._wModels[f];if(N(v)){let y=v.geometryInstances;if(N(y))for(let C=0;C<y.length;C++)y[C].id}}removeWModels(f){if(N(this._parameter.retain)&&this._parameter.retain)return;let m=this,x=m._wModels[f];if(N(x)){for(let v=0;v<m._instance[f].length;v++)m.instanceId.has(m._instance[f][v])&&m.instanceId.delete(m._instance[f][v]);m._instance[f]=[],m._wModels[f]=void 0}}convertCoordinates(f){let m=[];for(let x=0;x<f.length;x++){let v=f[x];for(let y=0;y<v.length;y++)Array.prototype.push.apply(m,v[y])}return m}processGeoJson(){let f=this,m=f._parameter.modelHeightKey??"\u5C42\u9AD8",x=f._parameter.modelColor??ze.BLUE;function v(C){f.removeWModels(C)}function y(C,w){if(!N(w)||f.checkWModels(w))return;let T=[],E=Oo.fromColor(x);f._instance[w]||(f._instance[w]=[]);let A;for(let S=0;S<C.features.length;S++){let M=C.features[S];if(M.geometry.type==="Polygon"){let I=M.id;if(!f.instanceId.has(I)){let P=f.convertCoordinates(M.geometry.coordinates),D=V.fromDegreesArray(P);A=M.properties[m],N(A)||(A=0),T.push(new eo({geometry:new _c({polygonHierarchy:new to(D),extrudedHeight:A}),id:I,releaseGeometryInstances:!1,attributes:{color:E}})),f.instanceId.set(I,w),f._instance[w].push(I)}}else if(M.geometry.type==="MultiPolygon"){let I=M.geometry.coordinates;for(let P=0;P<I.length;P++){let D=M.id+S;if(!f.instanceId.has(D)){let R=I[P],L=f.convertCoordinates(R),O=V.fromDegreesArray(L);A=M.properties[m],N(A)||(A=0),T.push(new eo({geometry:new _c({polygonHierarchy:new to(O),extrudedHeight:A}),id:D,releaseGeometryInstances:!1,attributes:{color:E}})),f.instanceId.set(D,w),f._instance[w].push(D)}}}else console.info(M.geometry.type)}if(T.length>0){let S=f._earthCtrl.primitives.add(new pa({geometryInstances:T,allowPicking:!1,appearance:new Da({flat:!1,faceForward:!1,translucent:!1})}));f._wModels[w]=S}}return{callback:y,removePrimitive:v}}removeFromMap(){this._primitive!==null&&this._earthCtrl.imageryLayers.remove(this._primitive)}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive.imageryProvider.readyPromise]).then(function(v){let y=ol.export(f);console.log("imageobj",y),m(y)})})}async flyTo(f={}){let m=f;function x(v,y){let w=Math.PI*6378137,T=v/w*180,E=180/Math.PI*(2*Math.atan(Math.exp(y/w*Math.PI))-Math.PI/2);return{lon:T,lat:E}}if(this._parameter.sourceType==="wms"){let v=await this._primitive.imageryProvider.capabilitiesRes;if(!v.length)return;if(v[0]<180&&v[0]>-180)m.destination=f.destination??Si.fromDegrees(v[0],v[1],v[2],v[3]);else{let y=x(v[0],v[1]),C=x(v[2],v[3]);m.destination=f.destination??Si.fromDegrees(y.lon,y.lat,C.lon,C.lat)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(wxe.prototype,{parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o),console.info(o);let f=this;for(let m=0;m<f._wModels.length;m++){let x=f._wModels[m],v=f.mEarthCtrl.entities.getById(x);v.show=o}}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}},imagery:{get:function(){return this._primitive}}});var Txe=wxe;var kdr=function(o,f,m,x){let v=m,y=x;var C=f.west,w=f.east,T=f.south,E=f.north,A=w-C,S=E-T,M=o.longitude*180/Math.PI,I=o.latitude*180/Math.PI;return o.normalizedLongitude=(M-C)/A*m,o.normalizedLatitude=(I-T)/S*x,o},Vdr=function(o,f,m,x){var v=[],y=o[0].longitude!==void 0;return o.forEach(function(C){var w=[],T=y?C:i4.scene.globe.ellipsoid.cartesianToCartographic(C);T=kdr(T,f,m,x),w.push(T.normalizedLongitude),w.push(T.normalizedLatitude),v.push(w)}),v},zdr=function(o,f,m){var x=32,v=f.west*Ce.DEGREES_PER_RADIAN,y=f.east*Ce.DEGREES_PER_RADIAN,C=f.south*Ce.DEGREES_PER_RADIAN,w=f.north*Ce.DEGREES_PER_RADIAN,T=new Si(v,C,y,w),E=Vdr(o,T,x,x),A=Udr(E,"#FF0000",x,x);return A},Udr=function(o,f,m,x,v){if(v===void 0){var v=document.createElement("canvas");v.width=m,v.height=x}var y=v.getContext("2d");if(!(o.length<=0)){y.moveTo(o[0][0],o[0][1]);for(var C=0;C<o.length;C++)y.lineTo(o[C][0],o[C][1]);return f!=null&&f!=null&&(y.fillStyle=f,y.fill()),v}};function BD(o,f){return Math.floor(Math.random()*(f-o+1))+o}function Hdr(){return globalThis.GEOWORLD_BASE_URL+"Workers/ParseElevationWorker.js"}function Gdr(o,f){var m=Z0();return BD=zdr(o.vertices,f,o.heights[0]),BD.timeStamp=o.timeStamp,BD.mtHeight=o.heights,BD.mtType=o.mtType,BD.fromKML=o.fromKML,BD.rect=o.rectangle,BD.level=o.level,m.resolve(BD),m.promise}function Wdr(o,f){return Math.floor(Math.random()*(f-o+1))+o}function jdr(o,f){var m=Z0(),x=[];return o.forEach(function(v){x.push(Gdr(v,f))}),Promise.all(x).then(function(v){var y=v[0].lenght,C=function(E,A){return A.timeStamp-E.timeStamp};if(v.length===1)m.resolve(v[0]);else{var w=v.sort(C),T=w.shift();w.forEach(function(E){T.forEach(function(A,S){A===BD&&E[S]!==BD&&(T[S]=E[S])})}),m.resolve(T)}}),m.promise}var i4,WSt=!1;function If(o,f){if(i4=o,!N(f))throw new At("options is required.");this._errorEvent=new Or,this._modelFloorMasks={},this._credit=f.credit,typeof this._credit=="string"&&(this._credit=new rs(this._credit)),f.heightMapWidth=f.heightMapWidth??32,f.heightMapHeight=f.heightMapHeight??32,this._options=f,this.readyPromise=Promise.resolve(!0),this._subdomains=f.subdomains,f.firstRequestUrl=f.url.replace("{s}",this.sTag(0,0,0)),this._firstRequest=f.firstRequestUrl+"?request=GetMap&Version=1.3.0&Service=WMS&CRS=EPSG:4326&bbox=-90,-180,90,180&height=32&width=32&optimizedOnly=0&v=1&layers="+f.layerName+"&Styles=&Format=image/mpt";var m=this,x=f.pngOnly;f.maxTerrainLevel!==void 0&&isNaN(f.maxTerrainLevel)&&(f.maxTerrainLevel=void 0),this._maxTerrainLevel=f.maxTerrainLevel??30,x?m.setFormatMPT(!1):function(){var y=new XMLHttpRequest;y.open("GET",f.cacheUrl?f.cacheUrl+"/0/0/0.mpt":m._firstRequest,!1),y.onload=function(){var C=new DOMParser,w=C.parseFromString(y.responseText,"text/xml"),T=N(w.childNodes)&&w.childNodes.length>0;m.setFormatMPT(!T)},y.onerror=function(){m.setFormatMPT(!1)},y.send()}(),f.cacheUrl&&(this.isCache=!0,this.cacheLevel=f.cacheLevel||16,this._cacheUrl=f.cacheUrl+"/{z}/{x}/{y}.mpt");let v=this._maxTerrainLevel;this._availability={computeMaximumLevelAtPosition:function(y){return Math.min(v,16)}},this._urlTemplate=f.url+"?request=GetMap&Version=1.3.0&Service=WMS&v=1&CRS=EPSG:4326&bbox={south},{west},{north},{east}&height={height}&width={width}&optimizedOnly={optimizedOnly}&layers="+f.layerName+"&Styles=&Format=image/"+this._format,this._allElevationLayers=null,this._tilingScheme=new Xh,this._levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f.heightMapWidth*4,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._workerPool=new tA({workerPath:Hdr()},Ui),this._pendingRequests=0,this._requestGridSize=8,this._requestsCache={},this._requestsCacheKeys=[],this.errorEvent.addEventListener(function(y){},this)}If._geometricErrorFactor=2;Object.defineProperties(If.prototype,{errorEvent:{get:function(){return this._errorEvent}},availability:{get:function(){return this._availability}},credit:{get:function(){return this._credit}},hasVertexNormals:{get:function(){return!1}},tilingScheme:{get:function(){return this._tilingScheme}},ready:{get:function(){return!0}},hasWaterMask:{get:function(){return!1}},heightMapHeight:{get:function(){return this._options.heightMapHeight}},heightMapWidth:{get:function(){return this._options.heightMapWidth}},pendingRequests:{get:function(){return this._pendingRequests}}});If.prototype.setFormatMPT=function(o){if(!(o&&this.pngOnly)){var f=this._format;this._format=o?"mpt":"png",f!==this._format&&(this._isMPT=o,this._urlTemplate!==void 0&&(this._urlTemplate=this._urlTemplate.replace("image/"+f,"image/"+this._format)))}};If.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)*If._geometricErrorFactor};If.prototype.createKeyFromTile=function(o,f,m){return o+"_"+f+"_"+m};If.prototype.getTileDataAvailable=function(o,f,m){var x=Math.min(this._maxTerrainLevel,25);return this._isMPT?!0:m<x};If.prototype.requestFactorForLevel=function(o){var f=Math.log(this._requestGridSize)/Math.log(2);return f=Math.min(f,o),Math.pow(2,f)};If.prototype.getRequestBaseTerrainUrl=function(o,f,m,x){return this.getRequestUrl(o,f,m,x)};If.prototype.getRequestElevationLayer=function(o,f,m){return this.getRequestUrl(o,f,m,!1,!0)};If.prototype.getRequestUrl=function(w,T,E,x,v){var y=E,C=x!=null?this.requestFactorForLevel(E):1,w=x!=null?(w-w%C)/C:w,T=x!=null?(T-T%C)/C:T,E=x!=null?E-Math.log(C)/Math.log(2):E;if(this.isCache&&E!==0&&E<=this.cacheLevel)return this._cacheUrl.replace("{x}",w).replace("{y}",T).replace("{z}",E);var A=this.tilingScheme.tileXYToNativeRectangle(w,T,E),S=this.heightMapWidth*C===256&&x?1:0;v&&(S=0);var M=this._urlTemplate.replace("{south}",A.south).replace("{north}",A.north).replace("{west}",A.west).replace("{east}",A.east).replace("{optimizedOnly}",S).replace("{width}",this.heightMapWidth*C).replace("{height}",this.heightMapHeight*C).replace("{s}",this.sTag(w,T,E));return M+"&level="+E+"&origLevel="+y};If.prototype.isT_Inside_E=function(o,f){return o.west>=f.west*Ce.DEGREES_PER_RADIAN&&o.east<=f.east*Ce.DEGREES_PER_RADIAN&&o.south>=f.south*Ce.DEGREES_PER_RADIAN&&o.north<=f.north*Ce.DEGREES_PER_RADIAN};If.prototype.isT_Intersects_E=function(o,f){var m=o.west*Ce.RADIANS_PER_DEGREE,x=o.east*Ce.RADIANS_PER_DEGREE,v=o.south*Ce.RADIANS_PER_DEGREE,y=o.north*Ce.RADIANS_PER_DEGREE,C=new Si(m,v,x,y),w=Si.intersection(C,f,new Si);return w};If.prototype.sTag=function(o,f,m){if(this._subdomains==null)return"";var x=(o+f+m)%this._subdomains.length;return this._subdomains[x]};If.prototype.refreshElevationLayer=function(o){if(o.rectangle&&i4.scene.globe._surface._levelZeroTiles!==void 0){var f=this.findDirectParent(o.rectangle,!0);f.freeResources()}};If.prototype.findDirectParent=function(o,f){var m=function(y,C,w){var T=w?4.1:2.1;if(y._rectangle.width<=C.width*T&&Si.contains(y._rectangle,Si.center(C)))return y;for(var E=y.children.length,A=0;A<E;A++){var S=y.children[A];if(Si.contains(S._rectangle,Si.center(C)))return m(S,C,w)}return null};if(o.width==Math.PI)return null;for(var x=0;x<i4.scene.globe._surface._levelZeroTiles.length;x++){var v=m(i4.scene.globe._surface._levelZeroTiles[x],o,f);if(v)return v}return null};If.prototype.isTileAvailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new Si),v=this.findDirectParent(x);if(v&&v.data&&v.data.terrainData){if(!(v.data.terrainData._childTileMask>0))return!1;for(var y=v.children.length,C=0;C<y;C++){var w=v.children[C];if(Si.equals(w._rectangle,x))return v.data.terrainData._childTileMask&1<<C}}return!0};If.prototype.markTileAsUnavailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new Si),v=this.findDirectParent(x);v&&v.data&&v.data.terrainData&&v.data.terrainData._childTileMask>0&&v.children.some(function(y,C){if(Si.equals(y._rectangle,x)){switch(C){case 0:v.data.terrainData._childTileMask&=-5;break;case 1:v.data.terrainData._childTileMask&=-9;break;case 2:v.data.terrainData._childTileMask&=-2;break;case 3:v.data.terrainData._childTileMask&=-3;break;default:}return!0}return!1})};If.prototype.requestBaseTerrainTileGeometry=function(o,f,m,x){return this.requestTileGeometryBuffers(o,f,m,x)};If.prototype.requestElevationLayerTileGeometry=function(o,f,m,x,v){return this.requestTileGeometryBuffers(o,f,m,x,v)};If.prototype.requestTileGeometryBuffers=function(o,f,m,x,v){var y=this,C=15,w={};w.requestedRectangle=this.tilingScheme.tileXYToNativeRectangle(o,f,m),w.layer=v;var M,T,E,A,S=Z0(),M=this.requestTileHeightBuffer(o,f,m,x,void 0,v);return M===void 0?void 0:(T=this.requestTileHeightBuffer(o+1,f,m,x,!0,v),E=this.requestTileHeightBuffer(o,f+1,m,x,!0,v),A=this.requestTileHeightBuffer(o+1,f+1,m,x,!0,v),Promise.all([M,T,E,A]).then(function(I){if(WSt==0){if(I[0].myReject!=null&&I[0].myReject){S.reject();return}for(var P=y.heightMapWidth+1,D=y.heightMapHeight+1,R=new Float32Array(P*D),L=I[0].isFloor,O=0;O<P;O++)for(var F=0;F<D;F++){var B=O,H=F,G=0;F===P-1&&(H=0,G=1,L&&(G=0,H=P-2)),O===D-1&&(B=0,G=2);var W=O*P+F,Y=B*y.heightMapWidth+H;I[G]!==null&&(I[G].myReject==null||!I[G].myReject)&&(R[W]=I[G][Y])}(I[3].myReject==null||!I[3].myReject)&&(R[P*D-1]=I[3][0]);var K=y.arrayToHeightmapTerrainData(R,P,D,C);w.buffer=K,S.resolve(w)}else{var K=y.arrayToHeightmapTerrainData(I[0],y.heightMapWidth,y.heightMapHeight);w.buffer=K,S.resolve(w)}}).catch(function(){S.reject()}),S.promise)};If.prototype.requestTileGeometry=function(o,f,m,x){var v=this,y=[],C=v.tilingScheme.tileXYToNativeRectangle(o,f,m);this._allElevationLayers!=null&&this._allElevationLayers.length>0&&m>7?this._allElevationLayers.forEach(function(T,E){var A=E.show;if(A){var S=E.rectangle;v.isT_Inside_E(C,S)?(v.setFormatMPT(!1),y.push(v.requestElevationLayerTileGeometry(o,f,m,x,E))):v.isT_Intersects_E(C,S)!=null?(v.setFormatMPT(!1),y.push(v.requestElevationLayerTileGeometry(o,f,m,x,E)),y.push(v.requestBaseTerrainTileGeometry(o,f,m,x))):(v.setFormatMPT(!0),y.push(v.requestBaseTerrainTileGeometry(o,f,m,x)))}else v.setFormatMPT(!0),y.push(v.requestBaseTerrainTileGeometry(o,f,m,x))}):(v.setFormatMPT(!0),y.push(v.requestBaseTerrainTileGeometry(o,f,m,x)));var w=Z0();return Promise.all(y).then(function(T){if(T.length===1)T.layer!==void 0&&console.log("missing scale and offset"),w.resolve(T[0].buffer);else if(T.length>1){var E=T.filter(function(P){return P.layer!==void 0}),A=T.filter(function(P){return P.layer===void 0});if(E.length===0)w.resolve(T[0].buffer);else{var S=E[E.length-1],M=A[A.length-1],I={tolerance:S.layer.nullTolerance,nullValueNumber:S.layer.nullValueNumber,verticesX:S.layer.polygonVerticesX,verticesY:S.layer.polygonVerticesY,scale:S.layer.scale??1,offset:S.layer.offset??0};w.resolve(v.mergeBuffers(M.buffer,S.buffer,I,M.requestedRectangle))}}else w.reject()}).catch(function(){w.reject()}),w.promise};If.prototype.mergeBuffers=function(o,f,m,x){var v,y,C,w,T,E=33,A=33,S=x.west,M=x.north,I=x.east,P=x.south,D=x.width/E,R=x.height/A,L=m.scale,O=m.offset,F=m.nullValueNumber,B=m.tolerance,H=F!==void 0&&B!==void 0;if(H)var G=m.nullValueNumber??0,W=Number(m.tolerance)??0;var Y=new Float32Array(E*A);for(v=0,T=M;v<A;v++,T+=R)for(y=0,w=S;y<E;y++,w+=D)C=v*E+y,H?Y[C]=!f._buffer[C]||f._buffer[C]>=G-W&&f._buffer[C]<=G+W?o._buffer[C]:f._buffer[C]*L+O:Y[C]=f._buffer[C]?f._buffer[C]*L+O:o._buffer[C];return this.arrayToHeightmapTerrainData(Y,E,A,15)};If.prototype.requestTileHeightBuffer=function(o,f,m,x,v,y){var C=this;if(!isNaN(o+f+m)){(!N(x)||x===!1)&&(x=new Jm({defer:!0}));var w=x.defer==0;v=w??!1;var T=Z0();if(WSt==0){var E;if(y!==void 0)y.getUrlFromSTag=function(J,Z,z){return y.subdomains===void 0?y.url:y.subdomains[0]+"/SG"},E=this.getRequestElevationLayer(o,f,m).replace(this._options.url,y.getUrlFromSTag(o,f,m)+"/Elevation").replace(this._options.layerName,y.name),y.format==="mpt"&&(E=E.replace("image/png","image/mpt"));else{E=this.getRequestBaseTerrainUrl(o,f,m,w||v);var A=i4.terrainProvider.tilingScheme.tileXYToRectangle(o,f,m),S=i4.terrainProvider._modifyTerrainObjects,M=Z0();if(S!==void 0){var I=[];if(S.forEach(function(J){J.show&&Si.intersection(A,J.rectangle,new Si)!=null&&I.push(J)}),I.length>0)if(I.length===1&&I[0].modelFloorBestLevel&&m>I[0].modelFloorBestLevel)M.resolve("NoMerge");else{var P=jdr(I,A,m);Promise.resolve(P).then(function(J){M.resolve(J)}).catch(function(J){console.log(J)})}else M.resolve("NoMerge")}else M.resolve("NoMerge");var D=Z0(),R=[].filter(function(J){return J._selectedTiles.length>0});if(R.length===1&&R[0].level&&m>R[0].level)D.resolve("NoFloor");else{var L=!1,O=32,F=65535;R.forEach(function(J){if(J.ready&&J.show&&J.rootFloorRectangle!==void 0&&Si.intersection(A,J.rootFloorRectangle)!==void 0){for(var Z=new Uint16Array(O*O),z=A.west,te=A.south,ie=(A.east-A.west)/32,re=(A.north-A.south)/32,ee,oe=0;oe<O;oe++)for(var ae=0;ae<O;ae++){var he=z+ie*ae+ie/2,me=A.north-re*oe-re/2,ue=new kt(he,me);ee=F;var ce=J.getHRMTFP(J,ue,!0);ce!=null&&ce.content&&ce.content._model&&ce.content._model.floor&&(ee=ce.content._model.floor.getHeight(ue.longitude,ue.latitude)),ee!==F&&(ee+=1.5),Z[oe*O+ae]=ee}L=!0,D.resolve(Z)}}),L||D.resolve("NoFloor")}var B=i4.scene.globe.ellipsoid}if(this._requestsCache.hasOwnProperty(E)===!1){if(this._requestsCache[E]={},this._requestsCacheKeys.push(E),this._requestsCacheKeys.length>100){for(var H=0;H<50;H++)delete this._requestsCache[this._requestsCacheKeys[H]];this._requestsCacheKeys.splice(0,50)}}else{var G=this._requestsCacheKeys.indexOf(E);this._requestsCacheKeys.splice(G,1),this._requestsCacheKeys.push(E)}var W=this._requestsCache[E];if(W.dataLoaded===void 0&&(w?W.dataLoaded=Wr.fetchArrayBuffer(E):W.dataLoaded=Wr.fetchArrayBuffer(E),!N(W.dataLoaded)))return;var Y=this;this._pendingRequests++,Promise.resolve(W.dataLoaded).then(function(J){W.workerFinished===void 0&&(W.workerFinished=Y._workerPool.queueWorkItem({buffer:J,isElevation:y!==void 0,level:m})),Promise.all([W.workerFinished,M.promise,D.promise]).then(function(Z){var z=Z[1]!==void 0&&Z[1]!=="NoMerge",te=Z[2]!==void 0&&Z[2]!=="NoFloor";if(Z[0].rejected){for(var ie=Y.heightMapWidth*Y.heightMapHeight,re=new Int16Array(ie),ee=0,oe=0;oe<ie;oe++)re[oe]=300;return m>2&&(re.myReject=!0),T.resolve(re),T.promise}var ae=Y.extractTileHeightBuffer(Z[0].buffer,o,f,m);if(Y._pendingRequests--,z)for(var oe=0;oe<32;oe++)for(var he=0;he<32;he++){var me=oe*32+he;ae[me]=Z[1].mtHeight[0]}if(te){for(var oe=0;oe<32;oe++)for(var he=0;he<32;he++){var me=oe*32+he;ae[me]=Z[2][me]===65535||Z[2][me]>10500?ae[me]:Z[2][me]}ae.isFloor=!0}T.resolve(ae)}).catch(function(){for(var Z=Y.heightMapWidth*Y.heightMapHeight,z=new Int16Array(Z),te=0,ie=0;ie<Z;ie++)z[ie]=300;return m>2&&(z.myReject=!0),T.resolve(z),T.promise})}).catch(function(){Y._pendingRequests--,T.reject()})}else{for(var K=this.heightMapWidth*this.heightMapHeight,X=new Int16Array(K),q=Wdr(0,1500),H=0;H<K;H++)X[H]=q;T.resolve(X)}return T.promise}};If.prototype.extractTileHeightBuffer=function(o,f,m,x){try{for(var v=this.requestFactorForLevel(x),y=f%v,C=m%v,w=new Float32Array(this.heightMapWidth*this.heightMapHeight),T=1e6,E=-1e5,A=0;A<this.heightMapHeight;A++)for(var S=0;S<this.heightMapWidth;S++){var M=A+C*this.heightMapHeight,I=S+y*this.heightMapWidth,P=A*this.heightMapWidth+S,D=M*this.heightMapWidth*v+I;o[D]>E&&(E=o[D]),o[D]<T&&(T=o[D]),w[P]=o[D]}}catch(R){console.log(R.message)}return w};If.prototype.arrayToHeightmapTerrainData=function(o,f,m,x){N(o)===!1&&(o=new Int16Array(f*m));var v={buffer:o,width:f,height:m,childTileMask:x};return new CP(v)};var jSt=If;var Exe=class extends bm{constructor(f,m){super(f),this._earthCtrl=f,this._primitive=null,this._parameter=m}async addToMap(f){let m=this._parameter;f||(f=m.requestVertexNormals??!1);let x=null,v=m.sourceType??"ctb";try{if(v!=="ude"){if(v==="ctb")x=await T7.fromUrl(m.url,m);else if(v==="multi")x=new Ihe(this._earthCtrl);else if(v==="sgs")f&&(wv.hasVertexNormals=!0),x=new jSt(this._earthCtrl.coreMap,m);else if(v==="arcgis")x=await Bfe.fromUrl(m.url,m);else if(v==="mapworld"){let C=m.cesium;C.GeoTerrainProvider||new jx(!1).addJs(document.body,`${window.SmartEarthRootUrl}Workers/cesiumTdt.js`);let w=[],T=m.subdomains;for(let E=0;E<T.length;E++){let A=`${m.url.replace("{s}",T[E])}mapservice/swdx?T=elv_c&tk=3ec79cf7a9dcc6bb18411a5414b148cb`;w.push(A)}x=new C.GeoTerrainProvider({urls:w})}}x!==null&&(this._primitive=x,this._coreMap.terrainProvider=x);let y=m.groupName||this._earthCtrl.language.GROUP_NWE_TERRAIN_LAYER;m.addTree&&(m.addTree=void 0,m.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(y,{id:m.id||this._earthCtrl.factory.createUUID(),name:m.name||v,sourceType:"TerrainProvider",item:this,feature:m,checked:this._primitive.show}))}catch(y){console.error(y)}}removeFromMap(){this._primitive!==null&&(this._coreMap.terrainProvider=new DE)}setVisibility(f){f?this._coreMap.terrainProvider=this._primitive:this.removeFromMap()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([this._primitive.readyPromise]).then(function(v){let y=ol.export(f);console.log("terraobj",y),m(y)})})}flyTo(f={}){let m=f;m.orientation=f.orientation??{heading:Ce.toRadians(0),pitch:Ce.toRadians(-60),roll:Ce.toRadians(0)};function x(v,y){let w=Math.PI*6378137,T=v/w*180,E=180/Math.PI*(2*Math.atan(Math.exp(y/w*Math.PI))-Math.PI/2);return{lon:T,lat:E}}if(this._parameter.sourceType==="ctb"||this._parameter.sourceType==="arcgis"){if(this._primitive._tilingScheme.bounds[0]<180&&this._primitive._tilingScheme.bounds[0]>-180){let v=this._primitive._tilingScheme.bounds,y=(v[0]+v[2])/2,C=(v[1]+v[3])/2,w=f.height||1e4;m.destination=f.destination??V.fromDegrees(y,C,w)}else{let v=this._primitive._tilingScheme.bounds,y=x(v[0],v[1]),C=x(v[2],v[3]),w=(y.lon+C.lon)/2,T=(y.lat+C.lat)/2,E=f.height||1e4;m.destination=f.destination??V.fromDegrees(w,T,E)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Exe.prototype,{parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o)}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var Axe=Exe;var Sxe=class extends bm{constructor(f,m){super(f),this._earthCtrl=f,this._parameter=m}async addToMap(){let f=this._parameter,m=null;try{f.sourceType==="b3dm"||f.sourceType==="3DTiles"?(m=await t0.fromUrl(f.url,f),N(f.transform)&&this.transform(f.transform,m)):f.sourceType==="osgb"?m=await t0.fromUrl(f.url,f):f.sourceType==="i3s"?m=await gD.fromUrl(f.url,f):f.sourceType==="s3m"?(N(f.context)||(f.context=this._earthCtrl.viewer.scene.context),m=new $0e(f),await m.readyPromise):(f.sourceType==="ude_block"||f.sourceType==="ude_model")&&(f.skipLevelOfDetail=!0,m=await t0.fromUrl(f.url,f)),this._primitive=this._coreMap.scene.primitives.add(m),f.success&&typeof f.success=="function"&&f.success(m),f.addTree&&this._earthCtrl.factory.layerTree.addTreeData("s3m\u6A21\u578B",{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name,sourceType:"s3m",item:this._primitive,feature:f,checked:this._primitive.show})}catch(x){f.failed&&typeof f.failed=="function"&&f.failed(x)}return this}removeFromMap(){N(this._primitive)&&this._coreMap.scene.primitives.remove(this._primitive)}toJSON(){let f=this;return new Promise(function(m,x){Promise.all([f._primitive]).then(function(v){let y=ol.export(f);console.log("modellayerobj",y),m(y)})})}transform(f,m){let x=m._primitive,v=Yt.fromRotationX(Ce.toRadians(f.pitch)),y=Yt.fromRotationY(Ce.toRadians(f.roll)),C=Yt.fromRotationZ(Ce.toRadians(f.heading)),w=Ee.fromRotationTranslation(v),T=Ee.fromRotationTranslation(y),E=Ee.fromRotationTranslation(C),A=V.fromDegrees(f.lon,f.lat,f.alt),S=Mr.eastNorthUpToFixedFrame(A);Ee.multiply(S,w,S),Ee.multiply(S,T,S),Ee.multiply(S,E,S),x._root.transform=S}setHeight(f){if(f=Number(f),!isNaN(f)&&this._primitive!==void 0&&this._primitive.boundingSphere!==void 0){let m=this._primitive.boundingSphere.center,x=kt.fromCartesian(m),v=V.fromRadians(x.longitude,x.latitude,0),y=V.fromRadians(x.longitude,x.latitude,f),C=V.subtract(y,v,new V);this._primitive.modelMatrix=Ee.fromTranslation(C)}}};Object.defineProperties(Sxe.prototype,{parameter:{get:function(){return this._parameter}},readyPromise:{get:function(){return this._primitive.readyPromise}},show:{get:function(){return N(this._primitive)?this._primitive.show:!1},set:function(o){N(this._primitive)&&(this._primitive.show=o)}},sourceType:{get:function(){return N(this._parameter)?this._parameter.sourceType:!1}},dataUrl:{get:function(){return N(this._parameter)?this._parameter.url:!1}},boundingSphere:{get:function(){return N(this._primitive)&&this._primitive.boundingSphere?this._primitive.boundingSphere:null}},modelMatrix:{get:function(){return N(this._primitive)?this._primitive.modelMatrix:!1},set:function(o){N(this._primitive)&&(this._primitive.modelMatrix=o)}},name:{get:function(){return N(this._parameter)?this._parameter.name:!1},set:function(o){N(this._parameter)&&(this._parameter.name=o)}}});var Pxe=Sxe;var Ixe=class extends bm{constructor(f,m){super(f),this._rtti="FeatureLayer",this._primitive=null,this._parameter=m}finalize(){}addToMap(){let f=this._parameter;this._primitive=new ghe(this._earthCtrl,f);let m=f.groupName||"FeatureData";f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(m,{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name||f.sourceType,sourceType:"FeatureDataProvider",item:this._primitive,feature:f,checked:this._primitive.show}))}updateStyle(f){if(!this._primitive)return;let m=this._primitive.entities.values;for(let x=0;x<m.length;x++){let v=m[x];for(let y=0;y<v.propertyNames.length;y++){let C=v.propertyNames[y];if(!!v[C]){typeof f.near<"u"&&typeof f.far<"u"&&(v[C].distanceDisplayCondition=new Go(f.near,f.far));for(let w in f)if(Object.hasOwnProperty.call(f,w)){let T=f[w];v[C][w]&&(v[C][w]=T)}if(f.pointHeight){let w=kt.fromCartesian(v.position._value),T=Math.toDegrees(w.longitude),E=Math.toDegrees(w.latitude);v.position=V.fromDegrees(T,E,f.pointheight)}}}}}removeFromMap(){this._primitive!==null&&this._primitive.destory()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive]).then(function(v){let y=ol.export(f);console.log("fireObj",y),m(y)})})}};Object.defineProperties(Ixe.prototype,{entities:{get:function(){return this._primitive.entities}},dataSource:{get:function(){return this._primitive.dataSource}},parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o)}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var Mxe=Ixe;function Dxe(o){this._earthCtrl=o,this._path="",this._layerWork=null}Object.defineProperties(Dxe.prototype,{});Dxe.prototype.addToMap=function(o){N(this._layerWork)?this._layerWork.updateOverlay(o):this._layerWork=new Yfe(this._earthCtrl.coreMap,o)};Dxe.prototype.removeFromMap=function(){this._layerWork.dispose()};var Rxe=Dxe;var qdr={IMAGERYPROVIDERS:"imageryProviders",TERRAINPROVIDERS:"terrainProviders",MODELLAYERS:"modelLayers",FEATURELAYERS:"featureLayers",USERSCENE:"userScene"},al=Object.freeze(qdr);var Lxe=class extends bm{constructor(f,m){super(f),this._parameter=m,this._parameter.type=m.type??"water",this._parameter.version=m.version??"1.3.0",this._parameter.baseWaterColor=m.color??ze.fromCssColorString("#0374ff"),this._parameter.waterFrequency=m.waterFrequency??3e3,this._parameter.animationSpeed=m.animationSpeed??.01,this._parameter.amplitude=m.amplitude??5e3}addToMap(){let f=this._parameter;this._primitive=new CW(this._earthCtrl,f),this._primitive&&(this._parameter.color=this._primitive.baseWaterColor,this._parameter.params=this._primitive._params)}removeFromMap(){this._primitive!==null&&this._primitive.destory()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive]).then(function(v){let y=ol.export(f);console.log("waterObj",y),m(y)})})}};Object.defineProperties(Lxe.prototype,{type:{get:function(){return this._primitive.type}},version:{get:function(){return this._primitive._version}},params:{get:function(){return this._primitive._params},set:function(o){this._primitive!==null&&(this._primitive._params=o)}},show:{get:function(){return this._parameter!==null?this._parameter.show:!1},set:function(o){if(this._primitive!==null&&this._primitive._primitive&&this._primitive._primitive.length!==0){for(let f=0;f<this._primitive._primitive.length;f++)this._primitive._primitive[f].show=o;this._parameter.show=o}}},url:{get:function(){return this._primitive!==null?this._primitive.url:!1},set:function(o){this._primitive!==null&&(this._primitive.url=o)}},color:{get:function(){return this._primitive!==null?this._primitive.baseWaterColor:!1},set:function(o){this._primitive!==null&&(this._primitive.baseWaterColor=o)}},waterFrequency:{get:function(){return this._primitive!==null?this._primitive.waterFrequency:!1},set:function(o){this._primitive!==null&&(this._primitive.waterFrequency=o)}},animationSpeed:{get:function(){return this._primitive!==null?this._primitive.animationSpeed:!1},set:function(o){this._primitive!==null&&(this._primitive.animationSpeed=o)}},amplitude:{get:function(){return this._primitive!==null?this._primitive.amplitude:!1},set:function(o){this._primitive!==null&&(this._primitive.amplitude=o)}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var Oxe=Lxe;var YHe=class extends bm{constructor(f,m){super(f),this._parameter=m,this._viewer=f.coreMap,this._cesium=Ui}addToMap(){let f=this._parameter,m,x;N(f.div)?(m=document.getElementById(f.div),x=f.div):(m=document.createElement("div"),m.id="Hawkeye",m.style.position="absolute",m.style.width="15%",m.style.height="20%",m.style.bottom="20px",m.style.right="0",m.style.pointerEvents="none",this._viewer.container.appendChild(m),x="Hawkeye"),f.style&&(f.style.width&&(m.style.width=f.style.width),f.style.height&&(m.style.height=f.style.height),f.style.bottom&&(m.style.bottom=f.style.bottom),f.style.right&&(m.style.right=f.style.right),f.style.top&&(m.style.top=f.style.top,m.style.bottom="unset"),f.style.left&&(m.style.left=f.style.left,m.style.right="unset"));let v;f.url?v=new this._cesium.SingleTileImageryProvider({url:f.url}):f.imageryProvider?v=f.imageryProvider:v=new bP({url:"http://103.25.37.71:4020/gisserver/tmsserver/earth_tms"});let y=new _7(x,{baseLayer:Pp.fromProviderAsync(v),baseLayerPicker:!1,shadows:!1,shouldAnimate:!1,animation:!1,scene3DOnly:!0,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,contextOptions:{requestWebgl2:!0,licenseServer:window.licenseServer}});y._innerCreditContainer.style.display="none",y.scene.screenSpaceCameraController.enableRotate=!1,y.scene.screenSpaceCameraController.enableZoom=!1,y.scene.screenSpaceCameraController.enableTilt=!1;let C=this;function w(){let T=C._viewer.camera.position,E=kt.fromCartesian(T);y.camera.setView({destination:kt.toCartesian(E),orientation:{heading:C._viewer.camera.heading,pitch:C._viewer.camera.pitch,roll:C._viewer.camera.roll}})}return C._viewer.scene.preRender.addEventListener(w),this.close=function(){C._viewer.scene.preRender.removeEventListener(w),y.destroy(),m.remove(),C.close=void 0},this}removeFromMap(){this.close&&this.close()}},Nxe=YHe;var qSt=new Xt;function Ydr(o,f,m){let x=o.length,v,y,C;if(m){v=an.LUMINANCE,y=bn.FLOAT,C=new Float32Array(x);for(let w=0;w<x;w++)C[w]=o[w]}else{v=an.RGBA,y=bn.UNSIGNED_BYTE,C=new Uint8Array(x*4);for(let w=0;w<x;w++)Xt.packFloat(o[w],qSt),Xt.pack(qSt,C,w*4)}return new Wn.create({context:f,pixelFormat:v,pixelDatatype:y,source:{width:x,height:1,arrayBufferView:C},flipY:!1,sampler:new aa({wrapS:io.CLAMP_TO_EDGE,wrapT:io.CLAMP_TO_EDGE,minificationFilter:na.NEAREST,magnificationFilter:pl.NEAREST})})}var Fxe=[];function Xdr(o,f,m,x){Ee.toArray(Ee.IDENTITY,Fxe);let v=new zo({fabric:{type:"spotMaterial",source:`
`){ie+=te,te=0,J=M*H+q*I,++ee;continue}var ue=P[ae+1]||T.font;ue!==oe&&(v&&Z.push("font",ue),x&&z.push("font",ue),oe=ue),te=Math.max(te,F[re]);var ce=[me,J+q*O[re]+M*(O[re]-B[ee]),.5*(I+te)+ie];J+=O[re],v&&Z.push("strokeText",ce),x&&z.push("fillText",ce),++re}return Array.prototype.push.apply(G,Z),Array.prototype.push.apply(G,z),this.labels_[y]=K,K},o.prototype.replayTextBackground_=function(f,m,x,v,y,C,w){f.beginPath(),f.moveTo.apply(f,m),f.lineTo.apply(f,x),f.lineTo.apply(f,v),f.lineTo.apply(f,y),f.lineTo.apply(f,m),C&&(this.alignFill_=C[2],this.fill_(f)),w&&(this.setStrokeStyle_(f,w),f.stroke())},o.prototype.calculateImageOrLabelDimensions_=function(f,m,x,v,y,C,w,T,E,A,S,M,I,P,D,R){w*=M[0],T*=M[1];var L=x-w,O=v-T,F=y+E>f?f-E:y,B=C+A>m?m-A:C,H=P[3]+F*M[0]+P[1],G=P[0]+B*M[1]+P[2],W=L-P[3],Y=O-P[0];(D||S!==0)&&(QB[0]=W,ZB[0]=W,QB[1]=Y,oO[1]=Y,oO[0]=W+H,aO[0]=oO[0],aO[1]=Y+G,ZB[1]=aO[1]);var K;return S!==0?(K=l2(Bv(),x,v,1,1,S,-x,-v),Em(K,QB),Em(K,oO),Em(K,aO),Em(K,ZB),nT(Math.min(QB[0],oO[0],aO[0],ZB[0]),Math.min(QB[1],oO[1],aO[1],ZB[1]),Math.max(QB[0],oO[0],aO[0],ZB[0]),Math.max(QB[1],oO[1],aO[1],ZB[1]),Xj)):nT(Math.min(W,W+H),Math.min(Y,Y+G),Math.max(W,W+H),Math.max(Y,Y+G),Xj),I&&(L=Math.round(L),O=Math.round(O)),{drawImageX:L,drawImageY:O,drawImageW:F,drawImageH:B,originX:E,originY:A,declutterBox:{minX:Xj[0],minY:Xj[1],maxX:Xj[2],maxY:Xj[3],value:R},canvasTransform:K,scale:M}},o.prototype.replayImageOrLabel_=function(f,m,x,v,y,C,w){var T=!!(C||w),E=v.declutterBox,A=f.canvas,S=w?w[2]*v.scale[0]/2:0,M=E.minX-S<=A.width/m&&E.maxX+S>=0&&E.minY-S<=A.height/m&&E.maxY+S>=0;return M&&(T&&this.replayTextBackground_(f,QB,oO,aO,ZB,C,w),WAt(f,v.canvasTransform,y,x,v.originX,v.originY,v.drawImageW,v.drawImageH,v.drawImageX,v.drawImageY,v.scale)),!0},o.prototype.fill_=function(f){if(this.alignFill_){var m=Em(this.renderedTransform_,[0,0]),x=512*this.pixelRatio;f.save(),f.translate(m[0]%x,m[1]%x),f.rotate(this.viewRotation_)}f.fill(),this.alignFill_&&f.restore()},o.prototype.setStrokeStyle_=function(f,m){f.strokeStyle=m[1],f.lineWidth=m[2],f.lineCap=m[3],f.lineJoin=m[4],f.miterLimit=m[5],f.setLineDash&&(f.lineDashOffset=m[7],f.setLineDash(m[6]))},o.prototype.drawLabelWithPointPlacement_=function(f,m,x,v){var y=this.textStates[m],C=this.createLabel(f,m,v,x),w=this.strokeStates[x],T=this.pixelRatio,E=cSt(Array.isArray(f)?f[0]:f,y.textAlign||JB),A=Yj[y.textBaseline||_H],S=w&&w.lineWidth?w.lineWidth:0,M=C.width/T-2*y.scale[0],I=E*M+2*(.5-E)*S,P=A*C.height/T+2*(.5-A)*S;return{label:C,anchorX:I,anchorY:P}},o.prototype.execute_=function(f,m,x,v,y,C,w,T){var E;this.pixelCoordinates_&&SD(x,this.renderedTransform_)?E=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),E=o1(this.coordinates,0,this.coordinates.length,2,x,this.pixelCoordinates_),sAt(this.renderedTransform_,x));for(var A=0,S=v.length,M=0,I,P,D,R,L,O,F,B,H,G,W,Y,K=0,X=0,q=null,J=null,Z=this.coordinateCache_,z=this.viewRotation_,te=Math.round(Math.atan2(-x[1],x[0])*1e12)/1e12,ie={context:f,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:z},re=this.instructions!=v||this.overlaps?0:200,ee,oe,ae,he;A<S;){var me=v[A],ue=me[0];switch(ue){case Qs.BEGIN_GEOMETRY:ee=me[1],he=me[3],ee.getGeometry()?w!==void 0&&!sf(w,he.getExtent())?A=me[2]+1:++A:A=me[2];break;case Qs.BEGIN_PATH:K>re&&(this.fill_(f),K=0),X>re&&(f.stroke(),X=0),!K&&!X&&(f.beginPath(),R=NaN,L=NaN),++A;break;case Qs.CIRCLE:M=me[1];var ce=E[M],de=E[M+1],fe=E[M+2],we=E[M+3],Te=fe-ce,Ae=we-de,Fe=Math.sqrt(Te*Te+Ae*Ae);f.moveTo(ce+Fe,de),f.arc(ce,de,Fe,0,2*Math.PI,!0),++A;break;case Qs.CLOSE_PATH:f.closePath(),++A;break;case Qs.CUSTOM:M=me[1],I=me[2];var Ue=me[3],it=me[4],lt=me.length==6?me[5]:void 0;ie.geometry=Ue,ie.feature=ee,A in Z||(Z[A]=[]);var ft=Z[A];lt?lt(E,M,I,2,ft):(ft[0]=E[M],ft[1]=E[M+1],ft.length=2),it(ft,ie),++A;break;case Qs.DRAW_IMAGE:M=me[1],I=me[2],B=me[3],P=me[4],D=me[5];var vt=me[6],Pt=me[7],rt=me[8],yt=me[9],Dt=me[10],Lt=me[11],Ct=me[12],se=me[13],ye=me[14],Je=me[15];if(!B&&me.length>=20){H=me[19],G=me[20],W=me[21],Y=me[22];var Ft=this.drawLabelWithPointPlacement_(H,G,W,Y);B=Ft.label,me[3]=B;var jt=me[23];P=(Ft.anchorX-jt)*this.pixelRatio,me[4]=P;var gt=me[24];D=(Ft.anchorY-gt)*this.pixelRatio,me[5]=D,vt=B.height,me[6]=vt,se=B.width,me[13]=se}var nt=void 0;me.length>25&&(nt=me[25]);var Ze=void 0,tt=void 0,Ye=void 0;me.length>17?(Ze=me[16],tt=me[17],Ye=me[18]):(Ze=iO,tt=!1,Ye=!1),Dt&&te?Lt+=z:!Dt&&!te&&(Lt-=z);for(var Et=0;M<I;M+=2)if(!(nt&&nt[Et++]<se/this.pixelRatio)){var Qt=this.calculateImageOrLabelDimensions_(B.width,B.height,E[M],E[M+1],se,vt,P,D,rt,yt,Lt,Ct,y,Ze,tt||Ye,ee),Bt=[f,m,B,Qt,Pt,tt?q:null,Ye?J:null];if(T){if(ye==="none")continue;if(ye==="obstacle"){T.insert(Qt.declutterBox);continue}else{var Kt=void 0,Mi=void 0;if(Je){var $t=I-M;if(!Je[$t]){Je[$t]=Bt;continue}if(Kt=Je[$t],delete Je[$t],Mi=uSt(Kt),T.collides(Mi))continue}if(T.collides(Qt.declutterBox))continue;Kt&&(T.insert(Mi),this.replayImageOrLabel_.apply(this,Kt)),T.insert(Qt.declutterBox)}}this.replayImageOrLabel_.apply(this,Bt)}++A;break;case Qs.DRAW_CHARS:var yi=me[1],Be=me[2],Ve=me[3],Ne=me[4];Y=me[5];var je=me[6],Ge=me[7],mt=me[8];W=me[9];var bt=me[10];H=me[11],G=me[12];var We=[me[13],me[13]],ct=this.textStates[G],Ot=ct.font,Nt=[ct.scale[0]*Ge,ct.scale[1]*Ge],Mt=void 0;Ot in this.widths_?Mt=this.widths_[Ot]:(Mt={},this.widths_[Ot]=Mt);var fi=uxe(E,yi,Be,2),Vi=Math.abs(Nt[0])*IHe(Ot,H,Mt);if(Ne||Vi<=fi){var Ri=this.textStates[G].textAlign,Qi=(fi-Vi)*Yj[Ri],Bi=lSt(E,yi,Be,2,H,Qi,je,Math.abs(Nt[0]),IHe,Ot,Mt,te?0:this.viewRotation_);e:if(Bi){var Gt=[],Jt=void 0,ui=void 0,oi=void 0,xi=void 0,zi=void 0;if(W)for(Jt=0,ui=Bi.length;Jt<ui;++Jt){zi=Bi[Jt],oi=zi[4],xi=this.createLabel(oi,G,"",W),P=zi[2]+(Nt[0]<0?-bt:bt),D=Ve*xi.height+(.5-Ve)*2*bt*Nt[1]/Nt[0]-mt;var Qt=this.calculateImageOrLabelDimensions_(xi.width,xi.height,zi[0],zi[1],xi.width,xi.height,P,D,0,0,zi[3],We,!1,iO,!1,ee);if(T&&T.collides(Qt.declutterBox))break e;Gt.push([f,m,xi,Qt,1,null,null])}if(Y)for(Jt=0,ui=Bi.length;Jt<ui;++Jt){zi=Bi[Jt],oi=zi[4],xi=this.createLabel(oi,G,Y,""),P=zi[2],D=Ve*xi.height-mt;var Qt=this.calculateImageOrLabelDimensions_(xi.width,xi.height,zi[0],zi[1],xi.width,xi.height,P,D,0,0,zi[3],We,!1,iO,!1,ee);if(T&&T.collides(Qt.declutterBox))break e;Gt.push([f,m,xi,Qt,1,null,null])}T&&T.load(Gt.map(uSt));for(var tr=0,xr=Gt.length;tr<xr;++tr)this.replayImageOrLabel_.apply(this,Gt[tr])}}++A;break;case Qs.END_GEOMETRY:if(C!==void 0){ee=me[1];var Vr=C(ee,he);if(Vr)return Vr}++A;break;case Qs.FILL:re?K++:this.fill_(f),++A;break;case Qs.MOVE_TO_LINE_TO:for(M=me[1],I=me[2],oe=E[M],ae=E[M+1],O=oe+.5|0,F=ae+.5|0,(O!==R||F!==L)&&(f.moveTo(oe,ae),R=O,L=F),M+=2;M<I;M+=2)oe=E[M],ae=E[M+1],O=oe+.5|0,F=ae+.5|0,(M==I-2||O!==R||F!==L)&&(f.lineTo(oe,ae),R=O,L=F);++A;break;case Qs.SET_FILL_STYLE:q=me,this.alignFill_=me[2],K&&(this.fill_(f),K=0,X&&(f.stroke(),X=0)),f.fillStyle=me[1],++A;break;case Qs.SET_STROKE_STYLE:J=me,X&&(f.stroke(),X=0),this.setStrokeStyle_(f,me),++A;break;case Qs.STROKE:re?X++:f.stroke(),++A;break;default:++A;break}}K&&this.fill_(f),X&&f.stroke()},o.prototype.execute=function(f,m,x,v,y,C){this.viewRotation_=v,this.execute_(f,m,x,this.instructions,y,void 0,void 0,C)},o.prototype.executeHitDetection=function(f,m,x,v,y){return this.viewRotation_=x,this.execute_(f,1,m,this.hitDetectionInstructions,!0,v,y)},o}(),hSt=Uhr;var BHe=["Polygon","Circle","LineString","Image","Text","Default"],Hhr=function(){function o(f,m,x,v,y,C){this.maxExtent_=f,this.overlaps_=v,this.pixelRatio_=x,this.resolution_=m,this.renderBuffer_=C,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Bv(),this.createExecutors_(y)}return o.prototype.clip=function(f,m){var x=this.getClipCoords(m);f.beginPath(),f.moveTo(x[0],x[1]),f.lineTo(x[2],x[3]),f.lineTo(x[4],x[5]),f.lineTo(x[6],x[7]),f.clip()},o.prototype.createExecutors_=function(f){for(var m in f){var x=this.executorsByZIndex_[m];x===void 0&&(x={},this.executorsByZIndex_[m]=x);var v=f[m];for(var y in v){var C=v[y];x[y]=new hSt(this.resolution_,this.pixelRatio_,this.overlaps_,C)}}},o.prototype.hasExecutors=function(f){for(var m in this.executorsByZIndex_)for(var x=this.executorsByZIndex_[m],v=0,y=f.length;v<y;++v)if(f[v]in x)return!0;return!1},o.prototype.forEachFeatureAtCoordinate=function(f,m,x,v,y,C){v=Math.round(v);var w=v*2+1,T=l2(this.hitDetectionTransform_,v+.5,v+.5,1/m,-1/m,-x,-f[0],-f[1]),E=!this.hitDetectionContext_;E&&(this.hitDetectionContext_=Tm(w,w));var A=this.hitDetectionContext_;A.canvas.width!==w||A.canvas.height!==w?(A.canvas.width=w,A.canvas.height=w):E||A.clearRect(0,0,w,w);var S;this.renderBuffer_!==void 0&&(S=F_(),cH(S,f),UP(S,m*(this.renderBuffer_+v),S));var M=Ghr(v),I;function P(G,W){for(var Y=A.getImageData(0,0,w,w).data,K=0,X=M.length;K<X;K++)if(Y[M[K]]>0){if(!C||I!=="Image"&&I!=="Text"||C.indexOf(G)!==-1){var q=(M[K]-3)/4,J=v-q%w,Z=v-(q/w|0),z=y(G,W,J*J+Z*Z);if(z)return z}A.clearRect(0,0,w,w);break}}var D=Object.keys(this.executorsByZIndex_).map(Number);D.sort(kP);var R,L,O,F,B;for(R=D.length-1;R>=0;--R){var H=D[R].toString();for(O=this.executorsByZIndex_[H],L=BHe.length-1;L>=0;--L)if(I=BHe[L],F=O[I],F!==void 0&&(B=F.executeHitDetection(A,T,x,P,S),B))return B}},o.prototype.getClipCoords=function(f){var m=this.maxExtent_;if(!m)return null;var x=m[0],v=m[1],y=m[2],C=m[3],w=[x,v,x,C,y,C,y,v];return o1(w,0,8,2,f,w),w},o.prototype.isEmpty=function(){return VP(this.executorsByZIndex_)},o.prototype.execute=function(f,m,x,v,y,C,w){var T=Object.keys(this.executorsByZIndex_).map(Number);T.sort(kP),this.maxExtent_&&(f.save(),this.clip(f,x));var E=C||BHe,A,S,M,I,P,D;for(w&&T.reverse(),A=0,S=T.length;A<S;++A){var R=T[A].toString();for(P=this.executorsByZIndex_[R],M=0,I=E.length;M<I;++M){var L=E[M];D=P[L],D!==void 0&&D.execute(f,m,x,v,y,w)}}this.maxExtent_&&f.restore()},o}(),kHe={};function Ghr(o){if(kHe[o]!==void 0)return kHe[o];for(var f=o*2+1,m=o*o,x=new Array(m+1),v=0;v<=o;++v)for(var y=0;y<=o;++y){var C=v*v+y*y;if(C>m)break;var w=x[C];w||(w=[],x[C]=w),w.push(((o+v)*f+(o+y))*4+3),v>0&&w.push(((o-v)*f+(o+y))*4+3),y>0&&(w.push(((o+v)*f+(o-y))*4+3),v>0&&w.push(((o-v)*f+(o-y))*4+3))}for(var T=[],v=0,E=x.length;v<E;++v)x[v]&&T.push.apply(T,x[v]);return kHe[o]=T,T}var VHe=Hhr;var Whr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),jhr=function(o){Whr(f,o);function f(m){var x=o.call(this)||this;return x.ready=!0,x.boundHandleImageChange_=x.handleImageChange_.bind(x),x.layer_=m,x.declutterExecutorGroup=null,x}return f.prototype.getFeatures=function(m){return xl()},f.prototype.getData=function(m){return null},f.prototype.prepareFrame=function(m){return xl()},f.prototype.renderFrame=function(m,x){return xl()},f.prototype.loadedTileCallback=function(m,x,v){m[x]||(m[x]={}),m[x][v.tileCoord.toString()]=v},f.prototype.createLoadedTileFinder=function(m,x,v){return function(y,C){var w=this.loadedTileCallback.bind(this,v,y);return m.forEachLoadedTile(x,y,C,w)}.bind(this)},f.prototype.forEachFeatureAtCoordinate=function(m,x,v,y,C){},f.prototype.getDataAtPixel=function(m,x,v){return null},f.prototype.getLayer=function(){return this.layer_},f.prototype.handleFontsChanged=function(){},f.prototype.handleImageChange_=function(m){var x=m.target;x.getState()===Kh.LOADED&&this.renderIfReadyAndVisible()},f.prototype.loadImage=function(m){var x=m.getState();return x!=Kh.LOADED&&x!=Kh.ERROR&&m.addEventListener(af.CHANGE,this.boundHandleImageChange_),x==Kh.IDLE&&(m.load(),x=m.getState()),x==Kh.LOADED},f.prototype.renderIfReadyAndVisible=function(){var m=this.getLayer();m&&m.getVisible()&&m.getSourceState()==="ready"&&m.changed()},f.prototype.disposeInternal=function(){delete this.layer_,o.prototype.disposeInternal.call(this)},f}(Qme),dSt=jhr;var qhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Yhr=function(o){qhr(f,o);function f(m,x,v,y){var C=o.call(this,m)||this;return C.inversePixelTransform=x,C.frameState=v,C.context=y,C}return f}(hA),fSt=Yhr;var Xhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}();var Kj=null;function Khr(){var o=document.createElement("canvas");o.width=1,o.height=1,Kj=o.getContext("2d")}var $hr=function(o){Xhr(f,o);function f(m){var x=o.call(this,m)||this;return x.container=null,x.renderedResolution,x.tempTransform=Bv(),x.pixelTransform=Bv(),x.inversePixelTransform=Bv(),x.context=null,x.containerReused=!1,x.pixelContext_=null,x.frameState=null,x}return f.prototype.getImageData=function(m,x,v){Kj||Khr(),Kj.clearRect(0,0,1,1);var y;try{Kj.drawImage(m,x,v,1,1,0,0,1,1),y=Kj.getImageData(0,0,1,1).data}catch{return Kj=null,null}return y},f.prototype.getBackground=function(m){var x=this.getLayer(),v=x.getBackground();return typeof v=="function"&&(v=v(m.viewState.resolution)),v||void 0},f.prototype.useContainer=function(m,x,v){var y=this.getLayer().getClassName(),C,w;if(m&&m.className===y&&(!v||m&&m.style.backgroundColor&&SD(xH(m.style.backgroundColor),xH(v)))){var T=m.firstElementChild;T instanceof HTMLCanvasElement&&(w=T.getContext("2d"))}if(w&&w.canvas.style.transform===x?(this.container=m,this.context=w,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){C=document.createElement("div"),C.className=y;var E=C.style;E.position="absolute",E.width="100%",E.height="100%",w=Tm();var T=w.canvas;C.appendChild(T),E=T.style,E.position="absolute",E.left="0",E.transformOrigin="top left",this.container=C,this.context=w}!this.containerReused&&v&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=v)},f.prototype.clipUnrotated=function(m,x,v){var y=n1(v),C=kj(v),w=Bj(v),T=Fj(v);Em(x.coordinateToPixelTransform,y),Em(x.coordinateToPixelTransform,C),Em(x.coordinateToPixelTransform,w),Em(x.coordinateToPixelTransform,T);var E=this.inversePixelTransform;Em(E,y),Em(E,C),Em(E,w),Em(E,T),m.save(),m.beginPath(),m.moveTo(Math.round(y[0]),Math.round(y[1])),m.lineTo(Math.round(C[0]),Math.round(C[1])),m.lineTo(Math.round(w[0]),Math.round(w[1])),m.lineTo(Math.round(T[0]),Math.round(T[1])),m.clip()},f.prototype.dispatchRenderEvent_=function(m,x,v){var y=this.getLayer();if(y.hasListener(m)){var C=new fSt(m,this.inversePixelTransform,v,x);y.dispatchEvent(C)}},f.prototype.preRender=function(m,x){this.frameState=x,this.dispatchRenderEvent_(Mte.PRERENDER,m,x)},f.prototype.postRender=function(m,x){this.dispatchRenderEvent_(Mte.POSTRENDER,m,x)},f.prototype.getRenderTransform=function(m,x,v,y,C,w,T){var E=C/2,A=w/2,S=y/x,M=-S,I=-m[0]+T,P=-m[1];return l2(this.tempTransform,E,A,S,M,-v,I,P)},f.prototype.getDataAtPixel=function(m,x,v){var y=Em(this.inversePixelTransform,m.slice()),C=this.context,w=this.getLayer(),T=w.getExtent();if(T){var E=Em(x.pixelToCoordinateTransform,m.slice());if(!ID(T,E))return null}var A=Math.round(y[0]),S=Math.round(y[1]),M=this.pixelContext_;if(!M){var I=document.createElement("canvas");I.width=1,I.height=1,M=I.getContext("2d"),this.pixelContext_=M}M.clearRect(0,0,1,1);var P;try{M.drawImage(C.canvas,A,S,1,1,0,0,1,1),P=M.getImageData(0,0,1,1).data}catch(D){return D.name==="SecurityError"?(this.pixelContext_=null,new Uint8Array):P}return P[3]===0?null:P},f.prototype.disposeInternal=function(){delete this.frameState,o.prototype.disposeInternal.call(this)},f}(dSt),pSt=$hr;var Jhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Qhr=function(o){Jhr(f,o);function f(m,x,v,y){var C=o.call(this)||this;return C.extent=m,C.pixelRatio_=v,C.resolution=x,C.state=y,C}return f.prototype.changed=function(){this.dispatchEvent(af.CHANGE)},f.prototype.getExtent=function(){return this.extent},f.prototype.getImage=function(){return xl()},f.prototype.getPixelRatio=function(){return this.pixelRatio_},f.prototype.getResolution=function(){return this.resolution},f.prototype.getState=function(){return this.state},f.prototype.load=function(){xl()},f}(PD),mSt=Qhr;var Zhr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),VWr=function(o){Zhr(f,o);function f(m,x,v,y,C,w){var T=o.call(this,m,x,v,Kh.IDLE)||this;return T.src_=y,T.image_=new Image,C!==null&&(T.image_.crossOrigin=C),T.unlisten_=null,T.state=Kh.IDLE,T.imageLoadFunction_=w,T}return f.prototype.getImage=function(){return this.image_},f.prototype.handleImageError_=function(){this.state=Kh.ERROR,this.unlistenImage_(),this.changed()},f.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=Nv(this.extent)/this.image_.height),this.state=Kh.LOADED,this.unlistenImage_(),this.changed()},f.prototype.load=function(){(this.state==Kh.IDLE||this.state==Kh.ERROR)&&(this.state=Kh.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Lte(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.setImage=function(m){this.image_=m,this.resolution=Nv(this.extent)/this.image_.height},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(mSt);function Lte(o,f,m){var x=o,v=!0,y=!1,C=!1,w=[Vj(x,af.LOAD,function(){C=!0,y||f()})];return x.src&&ZEt?(y=!0,x.decode().then(function(){v&&f()}).catch(function(T){v&&(C?f():m())})):w.push(Vj(x,af.ERROR,m)),function(){v=!1,w.forEach(Fv)}}var edr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),tdr=function(o){edr(f,o);function f(m,x,v,y,C,w){var T=o.call(this,m,x,w)||this;return T.crossOrigin_=y,T.src_=v,T.key=v,T.image_=new Image,y!==null&&(T.image_.crossOrigin=y),T.unlisten_=null,T.tileLoadFunction_=C,T}return f.prototype.getImage=function(){return this.image_},f.prototype.setImage=function(m){this.image_=m,this.state=ca.LOADED,this.unlistenImage_(),this.changed()},f.prototype.handleImageError_=function(){this.state=ca.ERROR,this.unlistenImage_(),this.image_=idr(),this.changed()},f.prototype.handleImageLoad_=function(){var m=this.image_;m.naturalWidth&&m.naturalHeight?this.state=ca.LOADED:this.state=ca.EMPTY,this.unlistenImage_(),this.changed()},f.prototype.load=function(){this.state==ca.ERROR&&(this.state=ca.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==ca.IDLE&&(this.state=ca.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Lte(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(VB);function idr(){var o=Tm(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var xSt=tdr;var gSt=.5;var rdr=10,_St=.25,ndr=function(){function o(f,m,x,v,y,C){this.sourceProj_=f,this.targetProj_=m;var w={},T=dH(this.targetProj_,this.sourceProj_);this.transformInv_=function(F){var B=F[0]+"/"+F[1];return w[B]||(w[B]=T(F)),w[B]},this.maxSourceExtent_=v,this.errorThresholdSquared_=y*y,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!v&&!!this.sourceProj_.getExtent()&&Wp(v)==Wp(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Wp(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Wp(this.targetProj_.getExtent()):null;var E=n1(x),A=kj(x),S=Bj(x),M=Fj(x),I=this.transformInv_(E),P=this.transformInv_(A),D=this.transformInv_(S),R=this.transformInv_(M),L=rdr+(C?Math.max(0,Math.ceil(dEt(hte(x)/(C*C*256*256)))):0);if(this.addQuad_(E,A,S,M,I,P,D,R,L),this.wrapsXInSource_){var O=1/0;this.triangles_.forEach(function(F,B,H){O=Math.min(O,F.source[0][0],F.source[1][0],F.source[2][0])}),this.triangles_.forEach(function(F){if(Math.max(F.source[0][0],F.source[1][0],F.source[2][0])-O>this.sourceWorldWidth_/2){var B=[[F.source[0][0],F.source[0][1]],[F.source[1][0],F.source[1][1]],[F.source[2][0],F.source[2][1]]];B[0][0]-O>this.sourceWorldWidth_/2&&(B[0][0]-=this.sourceWorldWidth_),B[1][0]-O>this.sourceWorldWidth_/2&&(B[1][0]-=this.sourceWorldWidth_),B[2][0]-O>this.sourceWorldWidth_/2&&(B[2][0]-=this.sourceWorldWidth_);var H=Math.min(B[0][0],B[1][0],B[2][0]),G=Math.max(B[0][0],B[1][0],B[2][0]);G-H<this.sourceWorldWidth_/2&&(F.source=B)}}.bind(this))}w={}}return o.prototype.addTriangle_=function(f,m,x,v,y,C){this.triangles_.push({source:[v,y,C],target:[f,m,x]})},o.prototype.addQuad_=function(f,m,x,v,y,C,w,T,E){var A=ute([y,C,w,T]),S=this.sourceWorldWidth_?Wp(A)/this.sourceWorldWidth_:null,M=this.sourceWorldWidth_,I=this.sourceProj_.canWrapX()&&S>.5&&S<1,P=!1;if(E>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var D=ute([f,m,x,v]),R=Wp(D)/this.targetWorldWidth_;P=R>_St||P}!I&&this.sourceProj_.isGlobal()&&S&&(P=S>_St||P)}if(!(!P&&this.maxSourceExtent_&&isFinite(A[0])&&isFinite(A[1])&&isFinite(A[2])&&isFinite(A[3])&&!sf(A,this.maxSourceExtent_))){var L=0;if(!P&&(!isFinite(y[0])||!isFinite(y[1])||!isFinite(C[0])||!isFinite(C[1])||!isFinite(w[0])||!isFinite(w[1])||!isFinite(T[0])||!isFinite(T[1]))){if(E>0)P=!0;else if(L=(!isFinite(y[0])||!isFinite(y[1])?8:0)+(!isFinite(C[0])||!isFinite(C[1])?4:0)+(!isFinite(w[0])||!isFinite(w[1])?2:0)+(!isFinite(T[0])||!isFinite(T[1])?1:0),L!=1&&L!=2&&L!=4&&L!=8)return}if(E>0){if(!P){var O=[(f[0]+x[0])/2,(f[1]+x[1])/2],F=this.transformInv_(O),B=void 0;if(I){var H=(Lj(y[0],M)+Lj(w[0],M))/2;B=H-Lj(F[0],M)}else B=(y[0]+w[0])/2-F[0];var G=(y[1]+w[1])/2-F[1],W=B*B+G*G;P=W>this.errorThresholdSquared_}if(P){if(Math.abs(f[0]-x[0])<=Math.abs(f[1]-x[1])){var Y=[(m[0]+x[0])/2,(m[1]+x[1])/2],K=this.transformInv_(Y),X=[(v[0]+f[0])/2,(v[1]+f[1])/2],q=this.transformInv_(X);this.addQuad_(f,m,Y,X,y,C,K,q,E-1),this.addQuad_(X,Y,x,v,q,K,w,T,E-1)}else{var J=[(f[0]+m[0])/2,(f[1]+m[1])/2],Z=this.transformInv_(J),z=[(x[0]+v[0])/2,(x[1]+v[1])/2],te=this.transformInv_(z);this.addQuad_(f,J,z,v,y,Z,te,T,E-1),this.addQuad_(J,m,x,z,Z,C,w,te,E-1)}return}}if(I){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(L&11)==0&&this.addTriangle_(f,x,v,y,w,T),(L&14)==0&&this.addTriangle_(f,x,m,y,w,C),L&&((L&13)==0&&this.addTriangle_(m,v,f,C,T,y),(L&7)==0&&this.addTriangle_(m,v,x,C,T,w))}},o.prototype.calculateSourceExtent=function(){var f=F_();return this.triangles_.forEach(function(m,x,v){var y=m.source;cH(f,y[0]),cH(f,y[1]),cH(f,y[2])}),f},o.prototype.getTriangles=function(){return this.triangles_},o}(),vSt=ndr;var Ote={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},ySt={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0};var zHe,HHe=[];function CSt(o,f,m,x,v){o.beginPath(),o.moveTo(0,0),o.lineTo(f,m),o.lineTo(x,v),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(f,x)+1,Math.max(m,v)),o.restore()}function UHe(o,f){return Math.abs(o[f*4]-210)>2||Math.abs(o[f*4+3]-.75*255)>2}function odr(){if(zHe===void 0){var o=document.createElement("canvas").getContext("2d");o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",CSt(o,4,5,4,0),CSt(o,4,5,0,5);var f=o.getImageData(0,0,3,3).data;zHe=UHe(f,0)||UHe(f,4)||UHe(f,8)}return zHe}function bSt(o,f,m,x){var v=txe(m,f,o),y=lHe(f,x,m),C=f.getMetersPerUnit();C!==void 0&&(y*=C);var w=o.getMetersPerUnit();w!==void 0&&(y/=w);var T=o.getExtent();if(!T||ID(T,v)){var E=lHe(o,y,v)/y;isFinite(E)&&E>0&&(y/=E)}return y}function wSt(o,f,m,x){var v=$3(m),y=bSt(o,f,v,x);return(!isFinite(y)||y<=0)&&Yme(m,function(C){return y=bSt(o,f,C,x),isFinite(y)&&y>0}),y}function TSt(o,f,m,x,v,y,C,w,T,E,A,S){var M=Tm(Math.round(m*o),Math.round(m*f),HHe);if(S||$x(M,Ote),T.length===0)return M.canvas;M.scale(m,m);function I(B){return Math.round(B*m)/m}M.globalCompositeOperation="lighter";var P=F_();T.forEach(function(B,H,G){gEt(P,B.extent)});var D=Wp(P),R=Nv(P),L=Tm(Math.round(m*D/x),Math.round(m*R/x));S||$x(L,Ote);var O=m/x;T.forEach(function(B,H,G){var W=B.extent[0]-P[0],Y=-(B.extent[3]-P[3]),K=Wp(B.extent),X=Nv(B.extent);B.image.width>0&&B.image.height>0&&L.drawImage(B.image,E,E,B.image.width-2*E,B.image.height-2*E,W*O,Y*O,K*O,X*O)});var F=n1(C);return w.getTriangles().forEach(function(B,H,G){var W=B.source,Y=B.target,K=W[0][0],X=W[0][1],q=W[1][0],J=W[1][1],Z=W[2][0],z=W[2][1],te=I((Y[0][0]-F[0])/y),ie=I(-(Y[0][1]-F[1])/y),re=I((Y[1][0]-F[0])/y),ee=I(-(Y[1][1]-F[1])/y),oe=I((Y[2][0]-F[0])/y),ae=I(-(Y[2][1]-F[1])/y),he=K,me=X;K=0,X=0,q-=he,J-=me,Z-=he,z-=me;var ue=[[q,J,0,0,re-te],[Z,z,0,0,oe-te],[0,0,q,J,ee-ie],[0,0,Z,z,ae-ie]],ce=pEt(ue);if(!!ce){if(M.save(),M.beginPath(),odr()||!S){M.moveTo(re,ee);for(var de=4,fe=te-re,we=ie-ee,Te=0;Te<de;Te++)M.lineTo(re+I((Te+1)*fe/de),ee+I(Te*we/(de-1))),Te!=de-1&&M.lineTo(re+I((Te+1)*fe/de),ee+I((Te+1)*we/(de-1)));M.lineTo(oe,ae)}else M.moveTo(re,ee),M.lineTo(te,ie),M.lineTo(oe,ae);M.clip(),M.transform(ce[0],ce[2],ce[1],ce[3],te,ie),M.translate(P[0]-he,P[3]-me),M.scale(x/m,-x/m),M.drawImage(L.canvas,0,0),M.restore()}}),A&&(M.save(),M.globalCompositeOperation="source-over",M.strokeStyle="black",M.lineWidth=1,w.getTriangles().forEach(function(B,H,G){var W=B.target,Y=(W[0][0]-F[0])/y,K=-(W[0][1]-F[1])/y,X=(W[1][0]-F[0])/y,q=-(W[1][1]-F[1])/y,J=(W[2][0]-F[0])/y,Z=-(W[2][1]-F[1])/y;M.beginPath(),M.moveTo(X,q),M.lineTo(Y,K),M.lineTo(J,Z),M.closePath(),M.stroke()}),M.restore()),M.canvas}var adr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),sdr=function(o){adr(f,o);function f(m,x,v,y,C,w,T,E,A,S,M,I){var P=o.call(this,C,ca.IDLE,{interpolate:!!I})||this;P.renderEdges_=M!==void 0?M:!1,P.pixelRatio_=T,P.gutter_=E,P.canvas_=null,P.sourceTileGrid_=x,P.targetTileGrid_=y,P.wrappedTileCoord_=w||C,P.sourceTiles_=[],P.sourcesListenerKeys_=null,P.sourceZ_=0;var D=y.getTileCoordExtent(P.wrappedTileCoord_),R=P.targetTileGrid_.getExtent(),L=P.sourceTileGrid_.getExtent(),O=R?MD(D,R):D;if(hte(O)===0)return P.state=ca.EMPTY,P;var F=m.getExtent();F&&(L?L=MD(L,F):L=F);var B=y.getResolution(P.wrappedTileCoord_[0]),H=wSt(m,v,O,B);if(!isFinite(H)||H<=0)return P.state=ca.EMPTY,P;var G=S!==void 0?S:gSt;if(P.triangulation_=new vSt(m,v,O,L,H*G,B),P.triangulation_.getTriangles().length===0)return P.state=ca.EMPTY,P;P.sourceZ_=x.getZForResolution(H);var W=P.triangulation_.calculateSourceExtent();if(L&&(m.canWrapX()?(W[1]=PC(W[1],L[1],L[3]),W[3]=PC(W[3],L[1],L[3])):W=MD(W,L)),!hte(W))P.state=ca.EMPTY;else{for(var Y=x.getTileRangeForExtentAndZ(W,P.sourceZ_),K=Y.minX;K<=Y.maxX;K++)for(var X=Y.minY;X<=Y.maxY;X++){var q=A(P.sourceZ_,K,X,T);q&&P.sourceTiles_.push(q)}P.sourceTiles_.length===0&&(P.state=ca.EMPTY)}return P}return f.prototype.getImage=function(){return this.canvas_},f.prototype.reproject_=function(){var m=[];if(this.sourceTiles_.forEach(function(A,S,M){A&&A.getState()==ca.LOADED&&m.push({extent:this.sourceTileGrid_.getTileCoordExtent(A.tileCoord),image:A.getImage()})}.bind(this)),this.sourceTiles_.length=0,m.length===0)this.state=ca.ERROR;else{var x=this.wrappedTileCoord_[0],v=this.targetTileGrid_.getTileSize(x),y=typeof v=="number"?v:v[0],C=typeof v=="number"?v:v[1],w=this.targetTileGrid_.getResolution(x),T=this.sourceTileGrid_.getResolution(this.sourceZ_),E=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=TSt(y,C,this.pixelRatio_,T,this.sourceTileGrid_.getExtent(),w,E,this.triangulation_,m,this.gutter_,this.renderEdges_,this.interpolate),this.state=ca.LOADED}this.changed()},f.prototype.load=function(){if(this.state==ca.IDLE){this.state=ca.LOADING,this.changed();var m=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(x,v,y){var C=x.getState();if(C==ca.IDLE||C==ca.LOADING){m++;var w=IC(x,af.CHANGE,function(T){var E=x.getState();(E==ca.LOADED||E==ca.ERROR||E==ca.EMPTY)&&(Fv(w),m--,m===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(w)}}.bind(this)),m===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(x,v,y){var C=x.getState();C==ca.IDLE&&x.load()})}},f.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Fv),this.sourcesListenerKeys_=null},f.prototype.release=function(){this.canvas_&&(oxe(this.canvas_.getContext("2d")),HHe.push(this.canvas_),this.canvas_=null),o.prototype.release.call(this)},f}(VB),ESt=sdr;var ldr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),udr=function(o){ldr(f,o);function f(m){var x=o.call(this,m)||this;return x.extentChanged=!0,x.renderedExtent_=null,x.renderedPixelRatio,x.renderedProjection=null,x.renderedRevision,x.renderedTiles=[],x.newTiles_=!1,x.tmpExtent=F_(),x.tmpTileRange_=new zme(0,0,0,0),x}return f.prototype.isDrawableTile=function(m){var x=this.getLayer(),v=m.getState(),y=x.getUseInterimTilesOnError();return v==ca.LOADED||v==ca.EMPTY||v==ca.ERROR&&!y},f.prototype.getTile=function(m,x,v,y){var C=y.pixelRatio,w=y.viewState.projection,T=this.getLayer(),E=T.getSource(),A=E.getTile(m,x,v,C,w);return A.getState()==ca.ERROR&&(T.getUseInterimTilesOnError()?T.getPreload()>0&&(this.newTiles_=!0):A.setState(ca.LOADED)),this.isDrawableTile(A)||(A=A.getInterimTile()),A},f.prototype.getData=function(m){var x=this.frameState;if(!x)return null;var v=this.getLayer(),y=Em(x.pixelToCoordinateTransform,m.slice()),C=v.getExtent();if(C&&!ID(C,y))return null;for(var w=x.pixelRatio,T=x.viewState.projection,E=x.viewState,A=v.getRenderSource(),S=A.getTileGridForProjection(E.projection),M=A.getTilePixelRatio(x.pixelRatio),I=S.getZForResolution(E.resolution);I>=S.getMinZoom();--I){var P=S.getTileCoordForCoordAndZ(y,I),D=A.getTile(I,P[1],P[2],w,T);if(!(D instanceof xSt||D instanceof ESt))return null;if(D.getState()===ca.LOADED){var R=S.getOrigin(I),L=jp(S.getTileSize(I)),O=S.getResolution(I),F=Math.floor(M*((y[0]-R[0])/O-P[1]*L[0])),B=Math.floor(M*((R[1]-y[1])/O-P[2]*L[1])),H=Math.round(M*A.getGutterForProjection(E.projection));return this.getImageData(D.getImage(),F+H,B+H)}}return null},f.prototype.loadedTileCallback=function(m,x,v){return this.isDrawableTile(v)?o.prototype.loadedTileCallback.call(this,m,x,v):!1},f.prototype.prepareFrame=function(m){return!!this.getLayer().getSource()},f.prototype.renderFrame=function(m,x){var v=m.layerStatesArray[m.layerIndex],y=m.viewState,C=y.projection,w=y.resolution,T=y.center,E=y.rotation,A=m.pixelRatio,S=this.getLayer(),M=S.getSource(),I=M.getRevision(),P=M.getTileGridForProjection(C),D=P.getZForResolution(w,M.zDirection),R=P.getResolution(D),L=m.extent,O=m.viewState.resolution,F=M.getTilePixelRatio(A),B=Math.round(Wp(L)/O*A),H=Math.round(Nv(L)/O*A),G=v.extent&&ixe(v.extent,C);G&&(L=MD(L,ixe(v.extent,C)));var W=R*B/2/F,Y=R*H/2/F,K=[T[0]-W,T[1]-Y,T[0]+W,T[1]+Y],X=P.getTileRangeForExtentAndZ(L,D),q={};q[D]={};var J=this.createLoadedTileFinder(M,C,q),Z=this.tmpExtent,z=this.tmpTileRange_;this.newTiles_=!1;for(var te=E?eHe(y.center,O,E,m.size):void 0,ie=X.minX;ie<=X.maxX;++ie)for(var re=X.minY;re<=X.maxY;++re)if(!(E&&!P.tileCoordIntersectsViewport([D,ie,re],te))){var ee=this.getTile(D,ie,re,m);if(this.isDrawableTile(ee)){var oe=ju(this);if(ee.getState()==ca.LOADED){q[D][ee.tileCoord.toString()]=ee;var ae=ee.inTransition(oe);ae&&v.opacity!==1&&(ee.endTransition(oe),ae=!1),!this.newTiles_&&(ae||this.renderedTiles.indexOf(ee)===-1)&&(this.newTiles_=!0)}if(ee.getAlpha(oe,m.time)===1)continue}var he=P.getTileCoordChildTileRange(ee.tileCoord,z,Z),me=!1;he&&(me=J(D+1,he)),me||P.forEachTileCoordParentTileRange(ee.tileCoord,J,z,Z)}var ue=R/w*A/F;l2(this.pixelTransform,m.size[0]/2,m.size[1]/2,1/A,1/A,E,-B/2,-H/2);var ce=cAt(this.pixelTransform);this.useContainer(x,ce,this.getBackground(m));var de=this.context,fe=de.canvas;uAt(this.inversePixelTransform,this.pixelTransform),l2(this.tempTransform,B/2,H/2,ue,ue,0,-B/2,-H/2),fe.width!=B||fe.height!=H?(fe.width=B,fe.height=H):this.containerReused||de.clearRect(0,0,B,H),G&&this.clipUnrotated(de,m,G),M.getInterpolate()||$x(de,Ote),this.preRender(de,m),this.renderedTiles.length=0;var we=Object.keys(q).map(Number);we.sort(kP);var Te,Ae,Fe;v.opacity===1&&(!this.containerReused||M.getOpaque(m.viewState.projection))?we=we.reverse():(Te=[],Ae=[]);for(var Ue=we.length-1;Ue>=0;--Ue){var it=we[Ue],lt=M.getTilePixelSize(it,A,C),ft=P.getResolution(it),vt=ft/R,Pt=lt[0]*vt*ue,rt=lt[1]*vt*ue,yt=P.getTileCoordForCoordAndZ(n1(K),it),Dt=P.getTileCoordExtent(yt),Lt=Em(this.tempTransform,[F*(Dt[0]-K[0])/R,F*(K[3]-Dt[3])/R]),Ct=F*M.getGutterForProjection(C),se=q[it];for(var ye in se){var ee=se[ye],Je=ee.tileCoord,Ft=yt[1]-Je[1],jt=Math.round(Lt[0]-(Ft-1)*Pt),gt=yt[2]-Je[2],nt=Math.round(Lt[1]-(gt-1)*rt),ie=Math.round(Lt[0]-Ft*Pt),re=Math.round(Lt[1]-gt*rt),Ze=jt-ie,tt=nt-re,Ye=D===it,ae=Ye&&ee.getAlpha(ju(this),m.time)!==1,Et=!1;if(!ae)if(Te){Fe=[ie,re,ie+Ze,re,ie+Ze,re+tt,ie,re+tt];for(var Qt=0,Bt=Te.length;Qt<Bt;++Qt)if(D!==it&&it<Ae[Qt]){var Kt=Te[Qt];sf([ie,re,ie+Ze,re+tt],[Kt[0],Kt[3],Kt[4],Kt[7]])&&(Et||(de.save(),Et=!0),de.beginPath(),de.moveTo(Fe[0],Fe[1]),de.lineTo(Fe[2],Fe[3]),de.lineTo(Fe[4],Fe[5]),de.lineTo(Fe[6],Fe[7]),de.moveTo(Kt[6],Kt[7]),de.lineTo(Kt[4],Kt[5]),de.lineTo(Kt[2],Kt[3]),de.lineTo(Kt[0],Kt[1]),de.clip())}Te.push(Fe),Ae.push(it)}else de.clearRect(ie,re,Ze,tt);this.drawTileImage(ee,m,ie,re,Ze,tt,Ct,Ye),Te&&!ae?(Et&&de.restore(),this.renderedTiles.unshift(ee)):this.renderedTiles.push(ee),this.updateUsedTiles(m.usedTiles,M,ee)}}return this.renderedRevision=I,this.renderedResolution=R,this.extentChanged=!this.renderedExtent_||!UB(this.renderedExtent_,K),this.renderedExtent_=K,this.renderedPixelRatio=A,this.renderedProjection=C,this.manageTilePyramid(m,M,P,A,C,L,D,S.getPreload()),this.scheduleExpireCache(m,M),this.postRender(de,m),v.extent&&de.restore(),$x(de,ySt),ce!==fe.style.transform&&(fe.style.transform=ce),this.container},f.prototype.drawTileImage=function(m,x,v,y,C,w,T,E){var A=this.getTileImage(m);if(!!A){var S=ju(this),M=x.layerStatesArray[x.layerIndex],I=M.opacity*(E?m.getAlpha(S,x.time):1),P=I!==this.context.globalAlpha;P&&(this.context.save(),this.context.globalAlpha=I),this.context.drawImage(A,T,T,A.width-2*T,A.height-2*T,v,y,C,w),P&&this.context.restore(),I!==M.opacity?x.animate=!0:E&&m.endTransition(S)}},f.prototype.getImage=function(){var m=this.context;return m?m.canvas:null},f.prototype.getTileImage=function(m){return m.getImage()},f.prototype.scheduleExpireCache=function(m,x){if(x.canExpireCache()){var v=function(y,C,w){var T=ju(y);T in w.usedTiles&&y.expireCache(w.viewState.projection,w.usedTiles[T])}.bind(null,x);m.postRenderFunctions.push(v)}},f.prototype.updateUsedTiles=function(m,x,v){var y=ju(x);y in m||(m[y]={}),m[y][v.getKey()]=!0},f.prototype.manageTilePyramid=function(m,x,v,y,C,w,T,E,A){var S=ju(x);S in m.wantedTiles||(m.wantedTiles[S]={});var M=m.wantedTiles[S],I=m.tileQueue,P=v.getMinZoom(),D=m.viewState.rotation,R=D?eHe(m.viewState.center,m.viewState.resolution,D,m.size):void 0,L=0,O,F,B,H,G,W;for(W=P;W<=T;++W)for(F=v.getTileRangeForExtentAndZ(w,W,F),B=v.getResolution(W),H=F.minX;H<=F.maxX;++H)for(G=F.minY;G<=F.maxY;++G)D&&!v.tileCoordIntersectsViewport([W,H,G],R)||(T-W<=E?(++L,O=x.getTile(W,H,G,y,C),O.getState()==ca.IDLE&&(M[O.getKey()]=!0,I.isKeyQueued(O.getKey())||I.enqueue([O,S,v.getTileCoordCenter(O.tileCoord),B])),A!==void 0&&A(O)):x.useTile(W,H,G,C));x.updateCacheSize(L,C)},f}(pSt),ASt=udr;var ND={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};var yH={ANIMATING:0,INTERACTING:1};var cdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),hdr=function(o){cdr(f,o);function f(m,x,v,y,C,w,T){var E=o.call(this)||this;return E.context_=m,E.pixelRatio_=x,E.extent_=v,E.transform_=y,E.viewRotation_=C,E.squaredTolerance_=w,E.userTransform_=T,E.contextFillState_=null,E.contextStrokeState_=null,E.contextTextState_=null,E.fillState_=null,E.strokeState_=null,E.image_=null,E.imageAnchorX_=0,E.imageAnchorY_=0,E.imageHeight_=0,E.imageOpacity_=0,E.imageOriginX_=0,E.imageOriginY_=0,E.imageRotateWithView_=!1,E.imageRotation_=0,E.imageScale_=[0,0],E.imageWidth_=0,E.text_="",E.textOffsetX_=0,E.textOffsetY_=0,E.textRotateWithView_=!1,E.textRotation_=0,E.textScale_=[0,0],E.textFillState_=null,E.textStrokeState_=null,E.textState_=null,E.pixelCoordinates_=[],E.tmpLocalTransform_=Bv(),E}return f.prototype.drawImages_=function(m,x,v,y){if(!!this.image_){var C=o1(m,x,v,y,this.transform_,this.pixelCoordinates_),w=this.context_,T=this.tmpLocalTransform_,E=w.globalAlpha;this.imageOpacity_!=1&&(w.globalAlpha=E*this.imageOpacity_);var A=this.imageRotation_;this.imageRotateWithView_&&(A+=this.viewRotation_);for(var S=0,M=C.length;S<M;S+=2){var I=C[S]-this.imageAnchorX_,P=C[S+1]-this.imageAnchorY_;if(A!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){var D=I+this.imageAnchorX_,R=P+this.imageAnchorY_;l2(T,D,R,1,1,A,-D,-R),w.setTransform.apply(w,T),w.translate(D,R),w.scale(this.imageScale_[0],this.imageScale_[1]),w.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),w.setTransform(1,0,0,1,0,0)}else w.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,I,P,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(w.globalAlpha=E)}},f.prototype.drawText_=function(m,x,v,y){if(!(!this.textState_||this.text_==="")){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var C=o1(m,x,v,y,this.transform_,this.pixelCoordinates_),w=this.context_,T=this.textRotation_;for(this.textRotateWithView_&&(T+=this.viewRotation_);x<v;x+=y){var E=C[x]+this.textOffsetX_,A=C[x+1]+this.textOffsetY_;if(T!==0||this.textScale_[0]!=1||this.textScale_[1]!=1){var S=l2(this.tmpLocalTransform_,E,A,1,1,T,-E,-A);w.setTransform.apply(w,S),w.translate(E,A),w.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&w.strokeText(this.text_,0,0),this.textFillState_&&w.fillText(this.text_,0,0),w.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&w.strokeText(this.text_,E,A),this.textFillState_&&w.fillText(this.text_,E,A)}}},f.prototype.moveToLineTo_=function(m,x,v,y,C){var w=this.context_,T=o1(m,x,v,y,this.transform_,this.pixelCoordinates_);w.moveTo(T[0],T[1]);var E=T.length;C&&(E-=2);for(var A=2;A<E;A+=2)w.lineTo(T[A],T[A+1]);return C&&w.closePath(),v},f.prototype.drawRings_=function(m,x,v,y){for(var C=0,w=v.length;C<w;++C)x=this.moveToLineTo_(m,x,v[C],y,!0);return x},f.prototype.drawCircle=function(m){if(!!sf(this.extent_,m.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=xAt(m,this.transform_,this.pixelCoordinates_),v=x[2]-x[0],y=x[3]-x[1],C=Math.sqrt(v*v+y*y),w=this.context_;w.beginPath(),w.arc(x[0],x[1],C,0,2*Math.PI),this.fillState_&&w.fill(),this.strokeState_&&w.stroke()}this.text_!==""&&this.drawText_(m.getCenter(),0,2,2)}},f.prototype.setStyle=function(m){this.setFillStrokeStyle(m.getFill(),m.getStroke()),this.setImageStyle(m.getImage()),this.setTextStyle(m.getText())},f.prototype.setTransform=function(m){this.transform_=m},f.prototype.drawGeometry=function(m){var x=m.getType();switch(x){case"Point":this.drawPoint(m);break;case"LineString":this.drawLineString(m);break;case"Polygon":this.drawPolygon(m);break;case"MultiPoint":this.drawMultiPoint(m);break;case"MultiLineString":this.drawMultiLineString(m);break;case"MultiPolygon":this.drawMultiPolygon(m);break;case"GeometryCollection":this.drawGeometryCollection(m);break;case"Circle":this.drawCircle(m);break;default:}},f.prototype.drawFeature=function(m,x){var v=x.getGeometryFunction()(m);!v||!sf(this.extent_,v.getExtent())||(this.setStyle(x),this.drawGeometry(v))},f.prototype.drawGeometryCollection=function(m){for(var x=m.getGeometriesArray(),v=0,y=x.length;v<y;++v)this.drawGeometry(x[v])},f.prototype.drawPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),v=m.getStride();this.image_&&this.drawImages_(x,0,x.length,v),this.text_!==""&&this.drawText_(x,0,x.length,v)},f.prototype.drawMultiPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),v=m.getStride();this.image_&&this.drawImages_(x,0,x.length,v),this.text_!==""&&this.drawText_(x,0,x.length,v)},f.prototype.drawLineString=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!sf(this.extent_,m.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var x=this.context_,v=m.getFlatCoordinates();x.beginPath(),this.moveToLineTo_(v,0,v.length,m.getStride(),!1),x.stroke()}if(this.text_!==""){var y=m.getFlatMidpoint();this.drawText_(y,0,2,2)}}},f.prototype.drawMultiLineString=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getExtent();if(!!sf(this.extent_,x)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var v=this.context_,y=m.getFlatCoordinates(),C=0,w=m.getEnds(),T=m.getStride();v.beginPath();for(var E=0,A=w.length;E<A;++E)C=this.moveToLineTo_(y,C,w[E],T,!1);v.stroke()}if(this.text_!==""){var S=m.getFlatMidpoints();this.drawText_(S,0,S.length,2)}}},f.prototype.drawPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!sf(this.extent_,m.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=this.context_;x.beginPath(),this.drawRings_(m.getOrientedFlatCoordinates(),0,m.getEnds(),m.getStride()),this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var v=m.getFlatInteriorPoint();this.drawText_(v,0,2,2)}}},f.prototype.drawMultiPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!sf(this.extent_,m.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=this.context_,v=m.getOrientedFlatCoordinates(),y=0,C=m.getEndss(),w=m.getStride();x.beginPath();for(var T=0,E=C.length;T<E;++T){var A=C[T];y=this.drawRings_(v,y,A,w)}this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var S=m.getFlatInteriorPoints();this.drawText_(S,0,S.length,2)}}},f.prototype.setContextFillState_=function(m){var x=this.context_,v=this.contextFillState_;v?v.fillStyle!=m.fillStyle&&(v.fillStyle=m.fillStyle,x.fillStyle=m.fillStyle):(x.fillStyle=m.fillStyle,this.contextFillState_={fillStyle:m.fillStyle})},f.prototype.setContextStrokeState_=function(m){var x=this.context_,v=this.contextStrokeState_;v?(v.lineCap!=m.lineCap&&(v.lineCap=m.lineCap,x.lineCap=m.lineCap),x.setLineDash&&(SD(v.lineDash,m.lineDash)||x.setLineDash(v.lineDash=m.lineDash),v.lineDashOffset!=m.lineDashOffset&&(v.lineDashOffset=m.lineDashOffset,x.lineDashOffset=m.lineDashOffset)),v.lineJoin!=m.lineJoin&&(v.lineJoin=m.lineJoin,x.lineJoin=m.lineJoin),v.lineWidth!=m.lineWidth&&(v.lineWidth=m.lineWidth,x.lineWidth=m.lineWidth),v.miterLimit!=m.miterLimit&&(v.miterLimit=m.miterLimit,x.miterLimit=m.miterLimit),v.strokeStyle!=m.strokeStyle&&(v.strokeStyle=m.strokeStyle,x.strokeStyle=m.strokeStyle)):(x.lineCap=m.lineCap,x.setLineDash&&(x.setLineDash(m.lineDash),x.lineDashOffset=m.lineDashOffset),x.lineJoin=m.lineJoin,x.lineWidth=m.lineWidth,x.miterLimit=m.miterLimit,x.strokeStyle=m.strokeStyle,this.contextStrokeState_={lineCap:m.lineCap,lineDash:m.lineDash,lineDashOffset:m.lineDashOffset,lineJoin:m.lineJoin,lineWidth:m.lineWidth,miterLimit:m.miterLimit,strokeStyle:m.strokeStyle})},f.prototype.setContextTextState_=function(m){var x=this.context_,v=this.contextTextState_,y=m.textAlign?m.textAlign:JB;v?(v.font!=m.font&&(v.font=m.font,x.font=m.font),v.textAlign!=y&&(v.textAlign=y,x.textAlign=y),v.textBaseline!=m.textBaseline&&(v.textBaseline=m.textBaseline,x.textBaseline=m.textBaseline)):(x.font=m.font,x.textAlign=y,x.textBaseline=m.textBaseline,this.contextTextState_={font:m.font,textAlign:y,textBaseline:m.textBaseline})},f.prototype.setFillStrokeStyle=function(m,x){var v=this;if(!m)this.fillState_=null;else{var y=m.getColor();this.fillState_={fillStyle:s1(y||l1)}}if(!x)this.strokeState_=null;else{var C=x.getColor(),w=x.getLineCap(),T=x.getLineDash(),E=x.getLineDashOffset(),A=x.getLineJoin(),S=x.getWidth(),M=x.getMiterLimit(),I=T||Q3;this.strokeState_={lineCap:w!==void 0?w:gH,lineDash:this.pixelRatio_===1?I:I.map(function(P){return P*v.pixelRatio_}),lineDashOffset:(E||Z3)*this.pixelRatio_,lineJoin:A!==void 0?A:RD,lineWidth:(S!==void 0?S:rO)*this.pixelRatio_,miterLimit:M!==void 0?M:eO,strokeStyle:s1(C||tO)}}},f.prototype.setImageStyle=function(m){var x;if(!m||!(x=m.getSize())){this.image_=null;return}var v=m.getAnchor(),y=m.getOrigin();this.image_=m.getImage(this.pixelRatio_),this.imageAnchorX_=v[0]*this.pixelRatio_,this.imageAnchorY_=v[1]*this.pixelRatio_,this.imageHeight_=x[1]*this.pixelRatio_,this.imageOpacity_=m.getOpacity(),this.imageOriginX_=y[0],this.imageOriginY_=y[1],this.imageRotateWithView_=m.getRotateWithView(),this.imageRotation_=m.getRotation(),this.imageScale_=m.getScaleArray(),this.imageWidth_=x[0]*this.pixelRatio_},f.prototype.setTextStyle=function(m){if(!m)this.text_="";else{var x=m.getFill();if(!x)this.textFillState_=null;else{var v=x.getColor();this.textFillState_={fillStyle:s1(v||l1)}}var y=m.getStroke();if(!y)this.textStrokeState_=null;else{var C=y.getColor(),w=y.getLineCap(),T=y.getLineDash(),E=y.getLineDashOffset(),A=y.getLineJoin(),S=y.getWidth(),M=y.getMiterLimit();this.textStrokeState_={lineCap:w!==void 0?w:gH,lineDash:T||Q3,lineDashOffset:E||Z3,lineJoin:A!==void 0?A:RD,lineWidth:S!==void 0?S:rO,miterLimit:M!==void 0?M:eO,strokeStyle:s1(C||tO)}}var I=m.getFont(),P=m.getOffsetX(),D=m.getOffsetY(),R=m.getRotateWithView(),L=m.getRotation(),O=m.getScaleArray(),F=m.getText(),B=m.getTextAlign(),H=m.getTextBaseline();this.textState_={font:I!==void 0?I:vxe,textAlign:B!==void 0?B:JB,textBaseline:H!==void 0?H:_H},this.text_=F!==void 0?Array.isArray(F)?F.reduce(function(G,W,Y){return G+=Y%2?" ":W},""):F:"",this.textOffsetX_=P!==void 0?this.pixelRatio_*P:0,this.textOffsetY_=D!==void 0?this.pixelRatio_*D:0,this.textRotateWithView_=R!==void 0?R:!1,this.textRotation_=L!==void 0?L:0,this.textScale_=[this.pixelRatio_*O[0],this.pixelRatio_*O[1]]}},f}(Cxe),SSt=hdr;var FD={FRACTION:"fraction",PIXELS:"pixels"};var oT={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};var ddr=function(){function o(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return o.prototype.clear=function(){this.cache_={},this.cacheSize_=0},o.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},o.prototype.expire=function(){if(this.canExpireCache()){var f=0;for(var m in this.cache_){var x=this.cache_[m];(f++&3)===0&&!x.hasListener()&&(delete this.cache_[m],--this.cacheSize_)}}},o.prototype.get=function(f,m,x){var v=PSt(f,m,x);return v in this.cache_?this.cache_[v]:null},o.prototype.set=function(f,m,x,v){var y=PSt(f,m,x);this.cache_[y]=v,++this.cacheSize_},o.prototype.setSize=function(f){this.maxCacheSize_=f,this.expire()},o}();function PSt(o,f,m){var x=m?gxe(m):"null";return f+":"+o+":"+x}var GHe=new ddr;var fdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Nte=null,pdr=function(o){fdr(f,o);function f(m,x,v,y,C,w){var T=o.call(this)||this;return T.hitDetectionImage_=null,T.image_=m||new Image,y!==null&&(T.image_.crossOrigin=y),T.canvas_={},T.color_=w,T.unlisten_=null,T.imageState_=C,T.size_=v,T.src_=x,T.tainted_,T}return f.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===Kh.LOADED){Nte||(Nte=Tm(1,1)),Nte.drawImage(this.image_,0,0);try{Nte.getImageData(0,0,1,1),this.tainted_=!1}catch{Nte=null,this.tainted_=!0}}return this.tainted_===!0},f.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(af.CHANGE)},f.prototype.handleImageError_=function(){this.imageState_=Kh.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.handleImageLoad_=function(){this.imageState_=Kh.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.getImage=function(m){return this.replaceColor_(m),this.canvas_[m]?this.canvas_[m]:this.image_},f.prototype.getPixelRatio=function(m){return this.replaceColor_(m),this.canvas_[m]?m:1},f.prototype.getImageState=function(){return this.imageState_},f.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var m=this.size_[0],x=this.size_[1],v=Tm(m,x);v.fillRect(0,0,m,x),this.hitDetectionImage_=v.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},f.prototype.getSize=function(){return this.size_},f.prototype.getSrc=function(){return this.src_},f.prototype.load=function(){if(this.imageState_==Kh.IDLE){this.imageState_=Kh.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=Lte(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},f.prototype.replaceColor_=function(m){if(!(!this.color_||this.canvas_[m]||this.imageState_!==Kh.LOADED)){var x=document.createElement("canvas");this.canvas_[m]=x,x.width=Math.ceil(this.image_.width*m),x.height=Math.ceil(this.image_.height*m);var v=x.getContext("2d");if(v.scale(m,m),v.drawImage(this.image_,0,0),v.globalCompositeOperation="multiply",v.globalCompositeOperation==="multiply"||this.isTainted_())v.fillStyle=gxe(this.color_),v.fillRect(0,0,x.width/m,x.height/m),v.globalCompositeOperation="destination-in",v.drawImage(this.image_,0,0);else{for(var y=v.getImageData(0,0,x.width,x.height),C=y.data,w=this.color_[0]/255,T=this.color_[1]/255,E=this.color_[2]/255,A=this.color_[3],S=0,M=C.length;S<M;S+=4)C[S]*=w,C[S+1]*=T,C[S+2]*=E,C[S+3]*=A;v.putImageData(y,0,0)}}},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(PD);function ISt(o,f,m,x,v,y){var C=GHe.get(f,x,y);return C||(C=new pdr(o,f,m,x,v,y),GHe.set(f,x,y,C)),C}var mdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),xdr=function(o){mdr(f,o);function f(m){var x=this,v=m||{},y=v.opacity!==void 0?v.opacity:1,C=v.rotation!==void 0?v.rotation:0,w=v.scale!==void 0?v.scale:1,T=v.rotateWithView!==void 0?v.rotateWithView:!1;x=o.call(this,{opacity:y,rotation:C,scale:w,displacement:v.displacement!==void 0?v.displacement:[0,0],rotateWithView:T,declutterMode:v.declutterMode})||this,x.anchor_=v.anchor!==void 0?v.anchor:[.5,.5],x.normalizedAnchor_=null,x.anchorOrigin_=v.anchorOrigin!==void 0?v.anchorOrigin:oT.TOP_LEFT,x.anchorXUnits_=v.anchorXUnits!==void 0?v.anchorXUnits:FD.FRACTION,x.anchorYUnits_=v.anchorYUnits!==void 0?v.anchorYUnits:FD.FRACTION,x.crossOrigin_=v.crossOrigin!==void 0?v.crossOrigin:null;var E=v.img!==void 0?v.img:null;x.imgSize_=v.imgSize;var A=v.src;Qu(!(A!==void 0&&E),4),Qu(!E||E&&x.imgSize_,5),(A===void 0||A.length===0)&&E&&(A=E.src||ju(E)),Qu(A!==void 0&&A.length>0,6);var S=v.src!==void 0?Kh.IDLE:Kh.LOADED;return x.color_=v.color!==void 0?xH(v.color):null,x.iconImage_=ISt(E,A,x.imgSize_!==void 0?x.imgSize_:null,x.crossOrigin_,S,x.color_),x.offset_=v.offset!==void 0?v.offset:[0,0],x.offsetOrigin_=v.offsetOrigin!==void 0?v.offsetOrigin:oT.TOP_LEFT,x.origin_=null,x.size_=v.size!==void 0?v.size:null,x}return f.prototype.clone=function(){var m=this.getScale();return new f({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(m)?m.slice():m,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},f.prototype.getAnchor=function(){var m=this.normalizedAnchor_;if(!m){m=this.anchor_;var x=this.getSize();if(this.anchorXUnits_==FD.FRACTION||this.anchorYUnits_==FD.FRACTION){if(!x)return null;m=this.anchor_.slice(),this.anchorXUnits_==FD.FRACTION&&(m[0]*=x[0]),this.anchorYUnits_==FD.FRACTION&&(m[1]*=x[1])}if(this.anchorOrigin_!=oT.TOP_LEFT){if(!x)return null;m===this.anchor_&&(m=this.anchor_.slice()),(this.anchorOrigin_==oT.TOP_RIGHT||this.anchorOrigin_==oT.BOTTOM_RIGHT)&&(m[0]=-m[0]+x[0]),(this.anchorOrigin_==oT.BOTTOM_LEFT||this.anchorOrigin_==oT.BOTTOM_RIGHT)&&(m[1]=-m[1]+x[1])}this.normalizedAnchor_=m}var v=this.getDisplacement();return[m[0]-v[0],m[1]+v[1]]},f.prototype.setAnchor=function(m){this.anchor_=m,this.normalizedAnchor_=null},f.prototype.getColor=function(){return this.color_},f.prototype.getImage=function(m){return this.iconImage_.getImage(m)},f.prototype.getPixelRatio=function(m){return this.iconImage_.getPixelRatio(m)},f.prototype.getImageSize=function(){return this.iconImage_.getSize()},f.prototype.getImageState=function(){return this.iconImage_.getImageState()},f.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},f.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var m=this.offset_;if(this.offsetOrigin_!=oT.TOP_LEFT){var x=this.getSize(),v=this.iconImage_.getSize();if(!x||!v)return null;m=m.slice(),(this.offsetOrigin_==oT.TOP_RIGHT||this.offsetOrigin_==oT.BOTTOM_RIGHT)&&(m[0]=v[0]-x[0]-m[0]),(this.offsetOrigin_==oT.BOTTOM_LEFT||this.offsetOrigin_==oT.BOTTOM_RIGHT)&&(m[1]=v[1]-x[1]-m[1])}return this.origin_=m,this.origin_},f.prototype.getSrc=function(){return this.iconImage_.getSrc()},f.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},f.prototype.listenImageChange=function(m){this.iconImage_.addEventListener(af.CHANGE,m)},f.prototype.load=function(){this.iconImage_.load()},f.prototype.unlistenImageChange=function(m){this.iconImage_.removeEventListener(af.CHANGE,m)},f}(xxe),WHe=xdr;var sO=.5;function MSt(o,f,m,x,v,y,C){var w=o[0]*sO,T=o[1]*sO,E=Tm(w,T);E.imageSmoothingEnabled=!1;for(var A=E.canvas,S=new SSt(E,sO,v,null,C),M=m.length,I=Math.floor((256*256*256-1)/M),P={},D=1;D<=M;++D){var R=m[D-1],L=R.getStyleFunction()||x;if(!!x){var O=L(R,y);if(!!O){Array.isArray(O)||(O=[O]);for(var F=D*I,B="#"+("000000"+F.toString(16)).slice(-6),H=0,G=O.length;H<G;++H){var W=O[H],Y=W.getGeometryFunction()(R);if(!(!Y||!sf(v,Y.getExtent()))){var K=W.clone(),X=K.getFill();X&&X.setColor(B);var q=K.getStroke();q&&(q.setColor(B),q.setLineDash(null)),K.setText(void 0);var J=W.getImage();if(J&&J.getOpacity()!==0){var Z=J.getImageSize();if(!Z)continue;var z=Tm(Z[0],Z[1],void 0,{alpha:!1}),te=z.canvas;z.fillStyle=B,z.fillRect(0,0,te.width,te.height),K.setImage(new WHe({img:te,imgSize:Z,anchor:J.getAnchor(),anchorXUnits:FD.PIXELS,anchorYUnits:FD.PIXELS,offset:J.getOrigin(),opacity:1,size:J.getSize(),scale:J.getScale(),rotation:J.getRotation(),rotateWithView:J.getRotateWithView()}))}var ie=K.getZIndex()||0,re=P[ie];re||(re={},P[ie]=re,re.Polygon=[],re.Circle=[],re.LineString=[],re.Point=[]),re[Y.getType().replace("Multi","")].push(Y,K)}}}}}for(var ee=Object.keys(P).map(Number).sort(kP),D=0,oe=ee.length;D<oe;++D){var re=P[ee[D]];for(var ae in re)for(var he=re[ae],H=0,G=he.length;H<G;H+=2){S.setStyle(he[H+1]);for(var me=0,ue=f.length;me<ue;++me)S.setTransform(f[me]),S.drawGeometry(he[H])}}return E.getImageData(0,0,A.width,A.height)}function DSt(o,f,m){var x=[];if(m){var v=Math.floor(Math.round(o[0])*sO),y=Math.floor(Math.round(o[1])*sO),C=(PC(v,0,m.width-1)+PC(y,0,m.height-1)*m.width)*4,w=m.data[C],T=m.data[C+1],E=m.data[C+2],A=E+256*(T+256*w),S=Math.floor((256*256*256-1)/f.length);A&&A%S===0&&x.push(f[A/S-1])}return x}var gdr=.5,RSt={Point:Edr,LineString:bdr,Polygon:Sdr,MultiPoint:Adr,MultiLineString:wdr,MultiPolygon:Tdr,GeometryCollection:Cdr,Circle:vdr};function LSt(o,f){var m=_dr(o,f);return m*m}function _dr(o,f){return gdr*o/f}function vdr(o,f,m,x,v){var y=m.getFill(),C=m.getStroke();if(y||C){var w=o.getBuilder(m.getZIndex(),"Circle");w.setFillStrokeStyle(y,C),w.drawCircle(f,x)}var T=m.getText();if(T&&T.getText()){var E=(v||o).getBuilder(m.getZIndex(),"Text");E.setTextStyle(T),E.drawText(f,x)}}function jHe(o,f,m,x,v,y,C){var w=!1,T=m.getImage();if(T){var E=T.getImageState();E==Kh.LOADED||E==Kh.ERROR?T.unlistenImageChange(v):(E==Kh.IDLE&&T.load(),T.listenImageChange(v),w=!0)}return ydr(o,f,m,x,y,C),w}function ydr(o,f,m,x,v,y){var C=m.getGeometryFunction()(f);if(!!C){var w=C.simplifyTransformed(x,v),T=m.getRenderer();if(T)OSt(o,w,m,f);else{var E=RSt[w.getType()];E(o,w,m,f,y)}}}function OSt(o,f,m,x){if(f.getType()=="GeometryCollection"){for(var v=f.getGeometries(),y=0,C=v.length;y<C;++y)OSt(o,v[y],m,x);return}var w=o.getBuilder(m.getZIndex(),"Default");w.drawCustom(f,x,m.getRenderer(),m.getHitDetectionRenderer())}function Cdr(o,f,m,x,v){var y=f.getGeometriesArray(),C,w;for(C=0,w=y.length;C<w;++C){var T=RSt[y[C].getType()];T(o,y[C],m,x,v)}}function bdr(o,f,m,x,v){var y=m.getStroke();if(y){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,y),C.drawLineString(f,x)}var w=m.getText();if(w&&w.getText()){var T=(v||o).getBuilder(m.getZIndex(),"Text");T.setTextStyle(w),T.drawText(f,x)}}function wdr(o,f,m,x,v){var y=m.getStroke();if(y){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,y),C.drawMultiLineString(f,x)}var w=m.getText();if(w&&w.getText()){var T=(v||o).getBuilder(m.getZIndex(),"Text");T.setTextStyle(w),T.drawText(f,x)}}function Tdr(o,f,m,x,v){var y=m.getFill(),C=m.getStroke();if(C||y){var w=o.getBuilder(m.getZIndex(),"Polygon");w.setFillStrokeStyle(y,C),w.drawMultiPolygon(f,x)}var T=m.getText();if(T&&T.getText()){var E=(v||o).getBuilder(m.getZIndex(),"Text");E.setTextStyle(T),E.drawText(f,x)}}function Edr(o,f,m,x,v){var y=m.getImage(),C=m.getText(),w;if(y){if(y.getImageState()!=Kh.LOADED)return;var T=o;if(v){var E=y.getDeclutterMode();if(E!=="none")if(T=v,E==="obstacle"){var A=o.getBuilder(m.getZIndex(),"Image");A.setImageStyle(y,w),A.drawPoint(f,x)}else C&&C.getText()&&(w={})}var S=T.getBuilder(m.getZIndex(),"Image");S.setImageStyle(y,w),S.drawPoint(f,x)}if(C&&C.getText()){var M=o;v&&(M=v);var I=M.getBuilder(m.getZIndex(),"Text");I.setTextStyle(C,w),I.drawText(f,x)}}function Adr(o,f,m,x,v){var y=m.getImage(),C=m.getText(),w;if(y){if(y.getImageState()!=Kh.LOADED)return;var T=o;if(v){var E=y.getDeclutterMode();if(E!=="none")if(T=v,E==="obstacle"){var A=o.getBuilder(m.getZIndex(),"Image");A.setImageStyle(y,w),A.drawMultiPoint(f,x)}else C&&C.getText()&&(w={})}var S=T.getBuilder(m.getZIndex(),"Image");S.setImageStyle(y,w),S.drawMultiPoint(f,x)}if(C&&C.getText()){var M=o;v&&(M=v);var I=M.getBuilder(m.getZIndex(),"Text");I.setTextStyle(C,w),I.drawText(f,x)}}function Sdr(o,f,m,x,v){var y=m.getFill(),C=m.getStroke();if(y||C){var w=o.getBuilder(m.getZIndex(),"Polygon");w.setFillStrokeStyle(y,C),w.drawPolygon(f,x)}var T=m.getText();if(T&&T.getText()){var E=(v||o).getBuilder(m.getZIndex(),"Text");E.setTextStyle(T),E.drawText(f,x)}}var Pdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Idr={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Mdr={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},Ddr=function(o){Pdr(f,o);function f(m){var x=o.call(this,m)||this;return x.boundHandleStyleImageChange_=x.handleStyleImageChange_.bind(x),x.renderedLayerRevision_,x.renderedPixelToCoordinateTransform_=null,x.renderedRotation_,x.tmpTransform_=Bv(),x}return f.prototype.prepareTile=function(m,x,v){var y,C=m.getState();return(C===ca.LOADED||C===ca.ERROR)&&(this.updateExecutorGroup_(m,x,v),this.tileImageNeedsRender_(m)&&(y=!0)),y},f.prototype.getTile=function(m,x,v,y){var C=y.pixelRatio,w=y.viewState,T=w.resolution,E=w.projection,A=this.getLayer(),S=A.getSource().getTile(m,x,v,C,E),M=y.viewHints,I=!(M[yH.ANIMATING]||M[yH.INTERACTING]);(I||!S.wantedResolution)&&(S.wantedResolution=T);var P=this.prepareTile(S,C,E);return P&&(I||Date.now()-y.time<8)&&A.getRenderMode()!==ND.VECTOR&&this.renderTileImage_(S,y),o.prototype.getTile.call(this,m,x,v,y)},f.prototype.isDrawableTile=function(m){var x=this.getLayer();return o.prototype.isDrawableTile.call(this,m)&&(x.getRenderMode()===ND.VECTOR?ju(x)in m.executorGroups:m.hasContext(x))},f.prototype.getTileImage=function(m){return m.getImage(this.getLayer())},f.prototype.prepareFrame=function(m){var x=this.getLayer().getRevision();return this.renderedLayerRevision_!==x&&(this.renderedLayerRevision_=x,this.renderedTiles.length=0),o.prototype.prepareFrame.call(this,m)},f.prototype.updateExecutorGroup_=function(m,x,v){var y=this.getLayer(),C=y.getRevision(),w=y.getRenderOrder()||null,T=m.wantedResolution,E=m.getReplayState(y);if(!(!E.dirty&&E.renderedResolution===T&&E.renderedRevision==C&&E.renderedRenderOrder==w)){var A=y.getSource(),S=y.getDeclutter(),M=A.getTileGrid(),I=A.getTileGridForProjection(v),P=I.getTileCoordExtent(m.wrappedTileCoord),D=A.getSourceTiles(x,v,m),R=ju(y);delete m.hitDetectionImageData[R],m.executorGroups[R]=[],S&&(m.declutterExecutorGroups[R]=[]),E.dirty=!1;for(var L=function(H,G){var W=D[H];if(W.getState()!=ca.LOADED)return"continue";var Y=W.tileCoord,K=M.getTileCoordExtent(Y),X=MD(P,K),q=UP(X,y.getRenderBuffer()*T,O.tmpExtent),J=UB(K,X)?null:q,Z=new FHe(0,q,T,x),z=S?new FHe(0,X,T,x):void 0,te=LSt(T,x),ie=function(de){var fe,we=de.getStyleFunction()||y.getStyleFunction();if(we&&(fe=we(de,T)),fe){var Te=this.renderFeature(de,te,fe,Z,z);E.dirty=E.dirty||Te}},re=W.getFeatures();w&&w!==E.renderedRenderOrder&&re.sort(w);for(var ee=0,oe=re.length;ee<oe;++ee){var ae=re[ee];(!J||sf(J,ae.getGeometry().getExtent()))&&ie.call(O,ae)}var he=Z.finish(),me=y.getRenderMode()!==ND.VECTOR&&S&&D.length===1?null:X,ue=new VHe(me,T,x,A.getOverlaps(),he,y.getRenderBuffer());if(m.executorGroups[R].push(ue),z){var ce=new VHe(null,T,x,A.getOverlaps(),z.finish(),y.getRenderBuffer());m.declutterExecutorGroups[R].push(ce)}},O=this,F=0,B=D.length;F<B;++F)L(F,B);E.renderedRevision=C,E.renderedRenderOrder=w,E.renderedResolution=T}},f.prototype.forEachFeatureAtCoordinate=function(m,x,v,y,C){var w=x.viewState.resolution,T=x.viewState.rotation;v=v??0;var E=this.getLayer(),A=E.getSource(),S=A.getTileGridForProjection(x.viewState.projection),M=ute([m]);UP(M,w*v,M);for(var I={},P=function(B,H,G){var W=B.getId();W===void 0&&(W=ju(B));var Y=I[W];if(Y){if(Y!==!0&&G<Y.distanceSq){if(G===0)return I[W]=!0,C.splice(C.lastIndexOf(Y),1),y(B,E,H);Y.geometry=H,Y.distanceSq=G}}else{if(G===0)return I[W]=!0,y(B,E,H);C.push(I[W]={feature:B,layer:E,geometry:H,distanceSq:G,callback:y})}},D=this.renderedTiles,R,L=function(B,H){var G=D[B],W=S.getTileCoordExtent(G.wrappedTileCoord);if(!sf(W,M))return"continue";var Y=ju(E),K=[G.executorGroups[Y]],X=G.declutterExecutorGroups[Y];X&&K.push(X),K.some(function(q){for(var J=q===X?x.declutterTree.all().map(function(ie){return ie.value}):null,Z=0,z=q.length;Z<z;++Z){var te=q[Z];if(R=te.forEachFeatureAtCoordinate(m,w,T,v,P,J),R)return!0}})},O=0,F=D.length;!R&&O<F;++O)L(O,F);return R},f.prototype.getFeatures=function(m){return new Promise(function(x,v){for(var y=this.getLayer(),C=ju(y),w=y.getSource(),T=this.renderedProjection,E=T.getExtent(),A=this.renderedResolution,S=w.getTileGridForProjection(T),M=Em(this.renderedPixelToCoordinateTransform_,m.slice()),I=S.getTileCoordForCoordAndResolution(M,A),P,D=0,R=this.renderedTiles.length;D<R;++D)if(I.toString()===this.renderedTiles[D].tileCoord.toString()){if(P=this.renderedTiles[D],P.getState()===ca.LOADED){var L=S.getTileCoordExtent(P.tileCoord);w.getWrapX()&&T.canWrapX()&&!Oj(E,L)&&FEt(M,T);break}P=void 0}if(!P||P.loadingSourceTiles>0){x([]);return}var O=S.getTileCoordExtent(P.wrappedTileCoord),F=n1(O),B=[(M[0]-F[0])/A,(F[1]-M[1])/A],H=P.getSourceTiles().reduce(function(X,q){return X.concat(q.getFeatures())},[]),G=P.hitDetectionImageData[C];if(!G&&!this.animatingOrInteracting_){var W=jp(S.getTileSize(S.getZForResolution(A,w.zDirection))),Y=this.renderedRotation_,K=[this.getRenderTransform(S.getTileCoordCenter(P.wrappedTileCoord),A,0,sO,W[0]*sO,W[1]*sO,0)];G=MSt(W,K,H,y.getStyleFunction(),S.getTileCoordExtent(P.wrappedTileCoord),P.getReplayState(y).renderedResolution,Y),P.hitDetectionImageData[C]=G}x(DSt(B,H,G))}.bind(this))},f.prototype.handleFontsChanged=function(){var m=this.getLayer();m.getVisible()&&this.renderedLayerRevision_!==void 0&&m.changed()},f.prototype.handleStyleImageChange_=function(m){this.renderIfReadyAndVisible()},f.prototype.renderDeclutter=function(m){var x=this.context,v=x.globalAlpha;x.globalAlpha=this.getLayer().getOpacity();for(var y=m.viewHints,C=!(y[yH.ANIMATING]||y[yH.INTERACTING]),w=this.renderedTiles,T=0,E=w.length;T<E;++T){var A=w[T],S=A.declutterExecutorGroups[ju(this.getLayer())];if(S)for(var M=S.length-1;M>=0;--M)S[M].execute(this.context,1,this.getTileRenderTransform(A,m),m.viewState.rotation,C,void 0,m.declutterTree)}x.globalAlpha=v},f.prototype.getTileRenderTransform=function(m,x){var v=x.pixelRatio,y=x.viewState,C=y.center,w=y.resolution,T=y.rotation,E=x.size,A=Math.round(E[0]*v),S=Math.round(E[1]*v),M=this.getLayer().getSource(),I=M.getTileGridForProjection(x.viewState.projection),P=m.tileCoord,D=I.getTileCoordExtent(m.wrappedTileCoord),R=I.getTileCoordExtent(P,this.tmpExtent)[0]-D[0],L=axe(gte(this.inversePixelTransform.slice(),1/v,1/v),this.getRenderTransform(C,w,T,v,A,S,R));return L},f.prototype.renderFrame=function(m,x){var v=m.viewHints,y=!(v[yH.ANIMATING]||v[yH.INTERACTING]);o.prototype.renderFrame.call(this,m,x),this.renderedPixelToCoordinateTransform_=m.pixelToCoordinateTransform.slice(),this.renderedRotation_=m.viewState.rotation;var C=this.getLayer(),w=C.getRenderMode(),T=this.context,E=T.globalAlpha;T.globalAlpha=C.getOpacity();for(var A=Mdr[w],S=m.viewState,M=S.rotation,I=C.getSource(),P=I.getTileGridForProjection(S.projection),D=P.getZForResolution(S.resolution,I.zDirection),R=this.renderedTiles,L=[],O=[],F=!0,B=R.length-1;B>=0;--B){var H=R[B];F=F&&!H.getReplayState(C).dirty;var G=H.executorGroups[ju(C)].filter(function(re){return re.hasExecutors(A)});if(G.length!==0){var W=this.getTileRenderTransform(H,m),Y=H.tileCoord[0],K=!1,X=G[0].getClipCoords(W);if(X){for(var q=0,J=L.length;q<J;++q)if(D!==Y&&Y<O[q]){var Z=L[q];sf([X[0],X[3],X[4],X[7]],[Z[0],Z[3],Z[4],Z[7]])&&(K||(T.save(),K=!0),T.beginPath(),T.moveTo(X[0],X[1]),T.lineTo(X[2],X[3]),T.lineTo(X[4],X[5]),T.lineTo(X[6],X[7]),T.moveTo(Z[6],Z[7]),T.lineTo(Z[4],Z[5]),T.lineTo(Z[2],Z[3]),T.lineTo(Z[0],Z[1]),T.clip())}L.push(X),O.push(Y)}for(var z=0,te=G.length;z<te;++z){var ie=G[z];ie.execute(T,1,W,M,y,A)}K&&T.restore()}}return T.globalAlpha=E,this.ready=F,this.container},f.prototype.renderFeature=function(m,x,v,y,C){if(!v)return!1;var w=!1;if(Array.isArray(v))for(var T=0,E=v.length;T<E;++T)w=jHe(y,m,v[T],x,this.boundHandleStyleImageChange_,void 0,C)||w;else w=jHe(y,m,v,x,this.boundHandleStyleImageChange_,void 0,C);return w},f.prototype.tileImageNeedsRender_=function(m){var x=this.getLayer();if(x.getRenderMode()===ND.VECTOR)return!1;var v=m.getReplayState(x),y=x.getRevision(),C=m.wantedResolution;return v.renderedTileResolution!==C||v.renderedTileRevision!==y},f.prototype.renderTileImage_=function(m,x){var v=this.getLayer(),y=m.getReplayState(v),C=v.getRevision(),w=m.executorGroups[ju(v)];y.renderedTileRevision=C;var T=m.wrappedTileCoord,E=T[0],A=v.getSource(),S=x.pixelRatio,M=x.viewState,I=M.projection,P=A.getTileGridForProjection(I),D=P.getResolution(m.tileCoord[0]),R=x.pixelRatio/m.wantedResolution*D,L=P.getResolution(E),O=m.getContext(v);S=Math.round(Math.max(S,R/S));var F=A.getTilePixelSize(E,S,I);O.canvas.width=F[0],O.canvas.height=F[1];var B=S/R;if(B!==1){var H=dHe(this.tmpTransform_);gte(H,B,B),O.setTransform.apply(O,H)}var G=P.getTileCoordExtent(T,this.tmpExtent),W=R/L,Y=dHe(this.tmpTransform_);gte(Y,W,-W),lAt(Y,-G[0],-G[3]);for(var K=0,X=w.length;K<X;++K){var q=w[K];q.execute(O,B,Y,0,!0,Idr[v.getRenderMode()])}y.renderedTileResolution=m.wantedResolution},f}(ASt),NSt=Ddr;var Fte={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var Rdr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Ldr=function(o){Rdr(f,o);function f(m){var x=this,v=m||{},y=$x({},v);delete y.preload,delete y.useInterimTilesOnError,x=o.call(this,y)||this,x.on,x.once,x.un,v.renderMode===ND.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),v.renderMode=void 0);var C=v.renderMode||ND.HYBRID;return Qu(C==ND.HYBRID||C==ND.VECTOR,28),x.renderMode_=C,x.setPreload(v.preload?v.preload:0),x.setUseInterimTilesOnError(v.useInterimTilesOnError!==void 0?v.useInterimTilesOnError:!0),x.getBackground,x.setBackground,x}return f.prototype.createRenderer=function(){return new NSt(this)},f.prototype.getFeatures=function(m){return o.prototype.getFeatures.call(this,m)},f.prototype.getRenderMode=function(){return this.renderMode_},f.prototype.getPreload=function(){return this.get(Fte.PRELOAD)},f.prototype.getUseInterimTilesOnError=function(){return this.get(Fte.USE_INTERIM_TILES_ON_ERROR)},f.prototype.setPreload=function(m){this.set(Fte.PRELOAD,m)},f.prototype.setUseInterimTilesOnError=function(m){this.set(Fte.USE_INTERIM_TILES_ON_ERROR,m)},f}(rSt),FSt=Ldr;var e4={ADD:"add",REMOVE:"remove"};var kSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),BSt={LENGTH:"length"},bxe=function(o){kSt(f,o);function f(m,x,v){var y=o.call(this,m)||this;return y.element=x,y.index=v,y}return f}(hA);var Odr=function(o){kSt(f,o);function f(m,x){var v=o.call(this)||this;v.on,v.once,v.un;var y=x||{};if(v.unique_=!!y.unique,v.array_=m||[],v.unique_)for(var C=0,w=v.array_.length;C<w;++C)v.assertUnique_(v.array_[C],C);return v.updateLength_(),v}return f.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},f.prototype.extend=function(m){for(var x=0,v=m.length;x<v;++x)this.push(m[x]);return this},f.prototype.forEach=function(m){for(var x=this.array_,v=0,y=x.length;v<y;++v)m(x[v],v,x)},f.prototype.getArray=function(){return this.array_},f.prototype.item=function(m){return this.array_[m]},f.prototype.getLength=function(){return this.get(BSt.LENGTH)},f.prototype.insertAt=function(m,x){this.unique_&&this.assertUnique_(x),this.array_.splice(m,0,x),this.updateLength_(),this.dispatchEvent(new bxe(e4.ADD,x,m))},f.prototype.pop=function(){return this.removeAt(this.getLength()-1)},f.prototype.push=function(m){this.unique_&&this.assertUnique_(m);var x=this.getLength();return this.insertAt(x,m),this.getLength()},f.prototype.remove=function(m){for(var x=this.array_,v=0,y=x.length;v<y;++v)if(x[v]===m)return this.removeAt(v)},f.prototype.removeAt=function(m){var x=this.array_[m];return this.array_.splice(m,1),this.updateLength_(),this.dispatchEvent(new bxe(e4.REMOVE,x,m)),x},f.prototype.setAt=function(m,x){var v=this.getLength();if(m<v){this.unique_&&this.assertUnique_(x,m);var y=this.array_[m];this.array_[m]=x,this.dispatchEvent(new bxe(e4.REMOVE,y,m)),this.dispatchEvent(new bxe(e4.ADD,x,m))}else{for(var C=v;C<m;++C)this.insertAt(C,void 0);this.insertAt(m,x)}},f.prototype.updateLength_=function(){this.set(BSt.LENGTH,this.array_.length)},f.prototype.assertUnique_=function(m,x){for(var v=0,y=this.array_.length;v<y;++v)if(this.array_[v]===m&&v!==x)throw new Bme(58)},f}(pA),VSt=Odr;var zSt=gS(LHe(),1);var Ndr=function(){function o(f){this.rbush_=new zSt.default(f),this.items_={}}return o.prototype.insert=function(f,m){var x={minX:f[0],minY:f[1],maxX:f[2],maxY:f[3],value:m};this.rbush_.insert(x),this.items_[ju(m)]=x},o.prototype.load=function(f,m){for(var x=new Array(m.length),v=0,y=m.length;v<y;v++){var C=f[v],w=m[v],T={minX:C[0],minY:C[1],maxX:C[2],maxY:C[3],value:w};x[v]=T,this.items_[ju(w)]=T}this.rbush_.load(x)},o.prototype.remove=function(f){var m=ju(f),x=this.items_[m];return delete this.items_[m],this.rbush_.remove(x)!==null},o.prototype.update=function(f,m){var x=this.items_[ju(m)],v=[x.minX,x.minY,x.maxX,x.maxY];UB(v,f)||(this.remove(m),this.insert(f,m))},o.prototype.getAll=function(){var f=this.rbush_.all();return f.map(function(m){return m.value})},o.prototype.getInExtent=function(f){var m={minX:f[0],minY:f[1],maxX:f[2],maxY:f[3]},x=this.rbush_.search(m);return x.map(function(v){return v.value})},o.prototype.forEach=function(f){return this.forEach_(this.getAll(),f)},o.prototype.forEachInExtent=function(f,m){return this.forEach_(this.getInExtent(f),m)},o.prototype.forEach_=function(f,m){for(var x,v=0,y=f.length;v<y;v++)if(x=m(f[v]),x)return x;return x},o.prototype.isEmpty=function(){return VP(this.items_)},o.prototype.clear=function(){this.rbush_.clear(),this.items_={}},o.prototype.getExtent=function(f){var m=this.rbush_.toJSON();return nT(m.minX,m.minY,m.maxX,m.maxY,f)},o.prototype.concat=function(f){this.rbush_.load(f.rbush_.all());for(var m in f.items_)this.items_[m]=f.items_[m]},o}(),qHe=Ndr;var gA={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function USt(o,f){return[[-1/0,-1/0,1/0,1/0]]}var HSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(x[y]=v[y])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),t4=function(o){HSt(f,o);function f(m,x,v){var y=o.call(this,m)||this;return y.feature=x,y.features=v,y}return f}(hA);var Fdr=function(o){HSt(f,o);function f(m){var x=this,v=m||{};x=o.call(this,{attributions:v.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:v.wrapX!==void 0?v.wrapX:!0})||this,x.on,x.once,x.un,x.loader_=lH,x.format_=v.format,x.overlaps_=v.overlaps===void 0?!0:v.overlaps,x.url_=v.url,v.loader!==void 0?x.loader_=v.loader:x.url_!==void 0&&(Qu(x.format_,7),x.loader_=hHe(x.url_,x.format_)),x.strategy_=v.strategy!==void 0?v.strategy:USt;var y=v.useSpatialIndex!==void 0?v.useSpatialIndex:!0;x.featuresRtree_=y?new qHe:null,x.loadedExtentsRtree_=new qHe,x.loadingExtentsCount_=0,x.nullGeometryFeatures_={},x.idIndex_={},x.uidIndex_={},x.featureChangeKeys_={},x.featuresCollection_=null;var C,w;return Array.isArray(v.features)?w=v.features:v.features&&(C=v.features,w=C.getArray()),!y&&C===void 0&&(C=new VSt(w)),w!==void 0&&x.addFeaturesInternal(w),C!==void 0&&x.bindFeaturesCollection_(C),x}return f.prototype.addFeature=function(m){this.addFeatureInternal(m),this.changed()},f.prototype.addFeatureInternal=function(m){var x=ju(m);if(!this.addToIndex_(x,m)){this.featuresCollection_&&this.featuresCollection_.remove(m);return}this.setupChangeEvents_(x,m);var v=m.getGeometry();if(v){var y=v.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(y,m)}else this.nullGeometryFeatures_[x]=m;this.dispatchEvent(new t4(gA.ADDFEATURE,m))},f.prototype.setupChangeEvents_=function(m,x){this.featureChangeKeys_[m]=[IC(x,af.CHANGE,this.handleFeatureChange_,this),IC(x,$me.PROPERTYCHANGE,this.handleFeatureChange_,this)]},f.prototype.addToIndex_=function(m,x){var v=!0,y=x.getId();return y!==void 0&&(y.toString()in this.idIndex_?v=!1:this.idIndex_[y.toString()]=x),v&&(Qu(!(m in this.uidIndex_),30),this.uidIndex_[m]=x),v},f.prototype.addFeatures=function(m){this.addFeaturesInternal(m),this.changed()},f.prototype.addFeaturesInternal=function(m){for(var x=[],v=[],y=[],C=0,w=m.length;C<w;C++){var T=m[C],E=ju(T);this.addToIndex_(E,T)&&v.push(T)}for(var C=0,A=v.length;C<A;C++){var T=v[C],E=ju(T);this.setupChangeEvents_(E,T);var S=T.getGeometry();if(S){var M=S.getExtent();x.push(M),y.push(T)}else this.nullGeometryFeatures_[E]=T}if(this.featuresRtree_&&this.featuresRtree_.load(x,y),this.hasListener(gA.ADDFEATURE))for(var C=0,I=v.length;C<I;C++)this.dispatchEvent(new t4(gA.ADDFEATURE,v[C]))},f.prototype.bindFeaturesCollection_=function(m){var x=!1;this.addEventListener(gA.ADDFEATURE,function(v){x||(x=!0,m.push(v.feature),x=!1)}),this.addEventListener(gA.REMOVEFEATURE,function(v){x||(x=!0,m.remove(v.feature),x=!1)}),m.addEventListener(e4.ADD,function(v){x||(x=!0,this.addFeature(v.element),x=!1)}.bind(this)),m.addEventListener(e4.REMOVE,function(v){x||(x=!0,this.removeFeature(v.element),x=!1)}.bind(this)),this.featuresCollection_=m},f.prototype.clear=function(m){if(m){for(var x in this.featureChangeKeys_){var v=this.featureChangeKeys_[x];v.forEach(Fv)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var y=function(T){this.removeFeatureInternal(T)}.bind(this);this.featuresRtree_.forEach(y);for(var C in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[C])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var w=new t4(gA.CLEAR);this.dispatchEvent(w),this.changed()},f.prototype.forEachFeature=function(m){if(this.featuresRtree_)return this.featuresRtree_.forEach(m);this.featuresCollection_&&this.featuresCollection_.forEach(m)},f.prototype.forEachFeatureAtCoordinateDirect=function(m,x){var v=[m[0],m[1],m[0],m[1]];return this.forEachFeatureInExtent(v,function(y){var C=y.getGeometry();if(C.intersectsCoordinate(m))return x(y)})},f.prototype.forEachFeatureInExtent=function(m,x){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(m,x);this.featuresCollection_&&this.featuresCollection_.forEach(x)},f.prototype.forEachFeatureIntersectingExtent=function(m,x){return this.forEachFeatureInExtent(m,function(v){var y=v.getGeometry();if(y.intersectsExtent(m)){var C=x(v);if(C)return C}})},f.prototype.getFeaturesCollection=function(){return this.featuresCollection_},f.prototype.getFeatures=function(){var m;return this.featuresCollection_?m=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(m=this.featuresRtree_.getAll(),VP(this.nullGeometryFeatures_)||Ov(m,iEt(this.nullGeometryFeatures_))),m},f.prototype.getFeaturesAtCoordinate=function(m){var x=[];return this.forEachFeatureAtCoordinateDirect(m,function(v){x.push(v)}),x},f.prototype.getFeaturesInExtent=function(m,x){var v=this;if(this.featuresRtree_){var y=x&&x.canWrapX()&&this.getWrapX();if(!y)return this.featuresRtree_.getInExtent(m);var C=bEt(m,x);return[].concat.apply([],C.map(function(w){return v.featuresRtree_.getInExtent(w)}))}else return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},f.prototype.getClosestFeatureToCoordinate=function(m,x){var v=m[0],y=m[1],C=null,w=[NaN,NaN],T=1/0,E=[-1/0,-1/0,1/0,1/0],A=x||eEt;return this.featuresRtree_.forEachInExtent(E,function(S){if(A(S)){var M=S.getGeometry(),I=T;if(T=M.closestPointXY(v,y,w,T),T<I){C=S;var P=Math.sqrt(T);E[0]=v-P,E[1]=y-P,E[2]=v+P,E[3]=y+P}}}),C},f.prototype.getExtent=function(m){return this.featuresRtree_.getExtent(m)},f.prototype.getFeatureById=function(m){var x=this.idIndex_[m.toString()];return x!==void 0?x:null},f.prototype.getFeatureByUid=function(m){var x=this.uidIndex_[m];return x!==void 0?x:null},f.prototype.getFormat=function(){return this.format_},f.prototype.getOverlaps=function(){return this.overlaps_},f.prototype.getUrl=function(){return this.url_},f.prototype.handleFeatureChange_=function(m){var x=m.target,v=ju(x),y=x.getGeometry();if(!y)v in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(x),this.nullGeometryFeatures_[v]=x);else{var C=y.getExtent();v in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[v],this.featuresRtree_&&this.featuresRtree_.insert(C,x)):this.featuresRtree_&&this.featuresRtree_.update(C,x)}var w=x.getId();if(w!==void 0){var T=w.toString();this.idIndex_[T]!==x&&(this.removeFromIdIndex_(x),this.idIndex_[T]=x)}else this.removeFromIdIndex_(x),this.uidIndex_[v]=x;this.changed(),this.dispatchEvent(new t4(gA.CHANGEFEATURE,x))},f.prototype.hasFeature=function(m){var x=m.getId();return x!==void 0?x in this.idIndex_:ju(m)in this.uidIndex_},f.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&VP(this.nullGeometryFeatures_):this.featuresCollection_?this.featuresCollection_.getLength()===0:!0},f.prototype.loadFeatures=function(m,x,v){for(var y=this.loadedExtentsRtree_,C=this.strategy_(m,x,v),w=function(S,M){var I=C[S],P=y.forEachInExtent(I,function(D){return Oj(D.extent,I)});P||(++T.loadingExtentsCount_,T.dispatchEvent(new t4(gA.FEATURESLOADSTART)),T.loader_.call(T,I,x,v,function(D){--this.loadingExtentsCount_,this.dispatchEvent(new t4(gA.FEATURESLOADEND,void 0,D))}.bind(T),function(){--this.loadingExtentsCount_,this.dispatchEvent(new t4(gA.FEATURESLOADERROR))}.bind(T)),y.insert(I,{extent:I.slice()}))},T=this,E=0,A=C.length;E<A;++E)w(E,A);this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0},f.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),o.prototype.refresh.call(this)},f.prototype.removeLoadedExtent=function(m){var x=this.loadedExtentsRtree_,v;x.forEachInExtent(m,function(y){if(UB(y.extent,m))return v=y,!0}),v&&x.remove(v)},f.prototype.removeFeature=function(m){if(!!m){var x=ju(m);x in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[x]:this.featuresRtree_&&this.featuresRtree_.remove(m);var v=this.removeFeatureInternal(m);v&&this.changed()}},f.prototype.removeFeatureInternal=function(m){var x=ju(m),v=this.featureChangeKeys_[x];if(!!v){v.forEach(Fv),delete this.featureChangeKeys_[x];var y=m.getId();return y!==void 0&&delete this.idIndex_[y.toString()],delete this.uidIndex_[x],this.dispatchEvent(new t4(gA.REMOVEFEATURE,m)),m}},f.prototype.removeFromIdIndex_=function(m){var x=!1;for(var v in this.idIndex_)if(this.idIndex_[v]===m){delete this.idIndex_[v],x=!0;break}return x},f.prototype.setLoader=function(m){this.loader_=m},f.prototype.setUrl=function(m){Qu(this.format_,7),this.url_=m,this.setLoader(hHe(m,this.format_))},f}(rxe),GSt=Fdr;var Bdr={toDegrees:QUe,toFeature:FAt,transform:txe,VectorSource:GSt},wxe=class extends bm{constructor(f,m){super(f),this._primitive=null,this._parameter=null,this._wModels=[],this._instance=[],this.instanceId=new Map,this._parameter=m}async addToMap(){let f=this._parameter,m=f.sourceType??"wmts",x=null;if(m==="wmts")x=new I3(f);else if(m==="mapbox")x=new EU(f);else if(m==="arcgis")x=await bw.fromUrl(f.url,f);else if(m==="wms")x=new AU(f);else if(m==="multi")x=new EW(f);else if(m==="single")x=await Gw.fromUrl(f.url,f);else if(m==="tms"){let y=f.west??void 0,C=f.south??void 0,w=f.east??void 0,T=f.north??void 0;N(y)&&N(C)&&N(w)&&N(T)&&(f.rectangle=new Si(Ce.toRadians(y),Ce.toRadians(C),Ce.toRadians(w),Ce.toRadians(T))),N(f.fileExtension)&&f.fileExtension==="json"&&(f.callback=this.processGeoJson()),x=await bP.fromUrl(f.url,f)}else if(m==="baidu")x=new TW(f);else if(m==="gaode"||m==="geovis"||m==="qqmap")x=new e1(f);else if(m==="mapworld")x=new I3(f);else if(m==="osm")x=new OS(f);else if(m==="bingmap")x=await TU.fromUrl(f.url,f);else if(m==="mvt"){if(N(f.coreMap)||(f.coreMap=this._earthCtrl.coreMap),f.mvtConfig){let y=this.getVectorTileLayer(f.mvtConfig),C=f.projection?f.projection:"EPSG:3857";f.vectorTileLayer=y,f.projection=zEt(C)}x=new AW(f,Bdr)}x!==null&&(this._primitive=this._earthCtrl.imageryLayers.addImageryProvider(x,f.zIndex),this._primitive._layerIndex=f.zIndex),m==="ion"&&(this._primitive=Pp.fromProviderAsync(VF.fromAssetId(f.assetId),f),this._earthCtrl.imageryLayers.add(this._primitive),this._primitive._layerIndex=f.zIndex);let v=f.groupName||this._earthCtrl.language.GROUP_NWE_IMAGERY_LAYER;f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(v,{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name||m,sourceType:"ImageryProvider",item:this._primitive,feature:f,checked:this._primitive.show}))}getVectorTileLayer(f){let m=f.url?f.url:"",x=f.tileSize?f.tileSize:256,v=f.fillColor?f.fillColor:"rgba(68,197,19,0.5)",y=f.strokeColor?f.strokeColor:"rgba(0,31,255,1)",C=f.strokeWidth?f.strokeWidth:1,w=f.textColor?f.textColor:"#000",T=f.textStrokeColor?f.textStrokeColor:"#ff7d00",E=f.selectColor?f.selectColor:"#ff0000",A=f.selectGe_Id?f.selectGe_Id:[],S=f.geId?f.geId:"",M=new iAt({format:new kAt,tileSize:x,url:m}),I=function(D,R){let L=new JAt({fill:new vH({color:v}),stroke:new Ite({color:y,width:C}),text:new QAt({font:"80px Arial",textBaseline:"middle",text:D.get("name")||D.get("id")||"",fill:new vH({color:w}),stroke:new Ite({color:T,width:3})})});return A.includes(D.get(S))&&L.getFill().setColor(E),L};return new FSt({source:M,style:I})}checkWModels(f){return N(this._wModels[f])}removeInstance(f,m){let v=this._wModels[f];if(N(v)){let y=v.geometryInstances;if(N(y))for(let C=0;C<y.length;C++)y[C].id}}removeWModels(f){if(N(this._parameter.retain)&&this._parameter.retain)return;let m=this,x=m._wModels[f];if(N(x)){for(let v=0;v<m._instance[f].length;v++)m.instanceId.has(m._instance[f][v])&&m.instanceId.delete(m._instance[f][v]);m._instance[f]=[],m._wModels[f]=void 0}}convertCoordinates(f){let m=[];for(let x=0;x<f.length;x++){let v=f[x];for(let y=0;y<v.length;y++)Array.prototype.push.apply(m,v[y])}return m}processGeoJson(){let f=this,m=f._parameter.modelHeightKey??"\u5C42\u9AD8",x=f._parameter.modelColor??ze.BLUE;function v(C){f.removeWModels(C)}function y(C,w){if(!N(w)||f.checkWModels(w))return;let T=[],E=Oo.fromColor(x);f._instance[w]||(f._instance[w]=[]);let A;for(let S=0;S<C.features.length;S++){let M=C.features[S];if(M.geometry.type==="Polygon"){let I=M.id;if(!f.instanceId.has(I)){let P=f.convertCoordinates(M.geometry.coordinates),D=V.fromDegreesArray(P);A=M.properties[m],N(A)||(A=0),T.push(new eo({geometry:new _c({polygonHierarchy:new to(D),extrudedHeight:A}),id:I,releaseGeometryInstances:!1,attributes:{color:E}})),f.instanceId.set(I,w),f._instance[w].push(I)}}else if(M.geometry.type==="MultiPolygon"){let I=M.geometry.coordinates;for(let P=0;P<I.length;P++){let D=M.id+S;if(!f.instanceId.has(D)){let R=I[P],L=f.convertCoordinates(R),O=V.fromDegreesArray(L);A=M.properties[m],N(A)||(A=0),T.push(new eo({geometry:new _c({polygonHierarchy:new to(O),extrudedHeight:A}),id:D,releaseGeometryInstances:!1,attributes:{color:E}})),f.instanceId.set(D,w),f._instance[w].push(D)}}}else console.info(M.geometry.type)}if(T.length>0){let S=f._earthCtrl.primitives.add(new pa({geometryInstances:T,allowPicking:!1,appearance:new Da({flat:!1,faceForward:!1,translucent:!1})}));f._wModels[w]=S}}return{callback:y,removePrimitive:v}}removeFromMap(){this._primitive!==null&&this._earthCtrl.imageryLayers.remove(this._primitive)}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive.imageryProvider.readyPromise]).then(function(v){let y=ol.export(f);console.log("imageobj",y),m(y)})})}async flyTo(f={}){let m=f;function x(v,y){let w=Math.PI*6378137,T=v/w*180,E=180/Math.PI*(2*Math.atan(Math.exp(y/w*Math.PI))-Math.PI/2);return{lon:T,lat:E}}if(this._parameter.sourceType==="wms"){let v=await this._primitive.imageryProvider.capabilitiesRes;if(!v.length)return;if(v[0]<180&&v[0]>-180)m.destination=f.destination??Si.fromDegrees(v[0],v[1],v[2],v[3]);else{let y=x(v[0],v[1]),C=x(v[2],v[3]);m.destination=f.destination??Si.fromDegrees(y.lon,y.lat,C.lon,C.lat)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(wxe.prototype,{parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o),console.info(o);let f=this;for(let m=0;m<f._wModels.length;m++){let x=f._wModels[m],v=f.mEarthCtrl.entities.getById(x);v.show=o}}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}},imagery:{get:function(){return this._primitive}}});var Txe=wxe;var kdr=function(o,f,m,x){let v=m,y=x;var C=f.west,w=f.east,T=f.south,E=f.north,A=w-C,S=E-T,M=o.longitude*180/Math.PI,I=o.latitude*180/Math.PI;return o.normalizedLongitude=(M-C)/A*m,o.normalizedLatitude=(I-T)/S*x,o},Vdr=function(o,f,m,x){var v=[],y=o[0].longitude!==void 0;return o.forEach(function(C){var w=[],T=y?C:i4.scene.globe.ellipsoid.cartesianToCartographic(C);T=kdr(T,f,m,x),w.push(T.normalizedLongitude),w.push(T.normalizedLatitude),v.push(w)}),v},zdr=function(o,f,m){var x=32,v=f.west*Ce.DEGREES_PER_RADIAN,y=f.east*Ce.DEGREES_PER_RADIAN,C=f.south*Ce.DEGREES_PER_RADIAN,w=f.north*Ce.DEGREES_PER_RADIAN,T=new Si(v,C,y,w),E=Vdr(o,T,x,x),A=Udr(E,"#FF0000",x,x);return A},Udr=function(o,f,m,x,v){if(v===void 0){var v=document.createElement("canvas");v.width=m,v.height=x}var y=v.getContext("2d");if(!(o.length<=0)){y.moveTo(o[0][0],o[0][1]);for(var C=0;C<o.length;C++)y.lineTo(o[C][0],o[C][1]);return f!=null&&f!=null&&(y.fillStyle=f,y.fill()),v}};function BD(o,f){return Math.floor(Math.random()*(f-o+1))+o}function Hdr(){return globalThis.GEOWORLD_BASE_URL+"Workers/ParseElevationWorker.js"}function Gdr(o,f){var m=Z0();return BD=zdr(o.vertices,f,o.heights[0]),BD.timeStamp=o.timeStamp,BD.mtHeight=o.heights,BD.mtType=o.mtType,BD.fromKML=o.fromKML,BD.rect=o.rectangle,BD.level=o.level,m.resolve(BD),m.promise}function Wdr(o,f){return Math.floor(Math.random()*(f-o+1))+o}function jdr(o,f){var m=Z0(),x=[];return o.forEach(function(v){x.push(Gdr(v,f))}),Promise.all(x).then(function(v){var y=v[0].lenght,C=function(E,A){return A.timeStamp-E.timeStamp};if(v.length===1)m.resolve(v[0]);else{var w=v.sort(C),T=w.shift();w.forEach(function(E){T.forEach(function(A,S){A===BD&&E[S]!==BD&&(T[S]=E[S])})}),m.resolve(T)}}),m.promise}var i4,WSt=!1;function If(o,f){if(i4=o,!N(f))throw new At("options is required.");this._errorEvent=new Or,this._modelFloorMasks={},this._credit=f.credit,typeof this._credit=="string"&&(this._credit=new rs(this._credit)),f.heightMapWidth=f.heightMapWidth??32,f.heightMapHeight=f.heightMapHeight??32,this._options=f,this.readyPromise=Promise.resolve(!0),this._subdomains=f.subdomains,f.firstRequestUrl=f.url.replace("{s}",this.sTag(0,0,0)),this._firstRequest=f.firstRequestUrl+"?request=GetMap&Version=1.3.0&Service=WMS&CRS=EPSG:4326&bbox=-90,-180,90,180&height=32&width=32&optimizedOnly=0&v=1&layers="+f.layerName+"&Styles=&Format=image/mpt";var m=this,x=f.pngOnly;f.maxTerrainLevel!==void 0&&isNaN(f.maxTerrainLevel)&&(f.maxTerrainLevel=void 0),this._maxTerrainLevel=f.maxTerrainLevel??30,x?m.setFormatMPT(!1):function(){var y=new XMLHttpRequest;y.open("GET",f.cacheUrl?f.cacheUrl+"/0/0/0.mpt":m._firstRequest,!1),y.onload=function(){var C=new DOMParser,w=C.parseFromString(y.responseText,"text/xml"),T=N(w.childNodes)&&w.childNodes.length>0;m.setFormatMPT(!T)},y.onerror=function(){m.setFormatMPT(!1)},y.send()}(),f.cacheUrl&&(this.isCache=!0,this.cacheLevel=f.cacheLevel||16,this._cacheUrl=f.cacheUrl+"/{z}/{x}/{y}.mpt");let v=this._maxTerrainLevel;this._availability={computeMaximumLevelAtPosition:function(y){return Math.min(v,16)}},this._urlTemplate=f.url+"?request=GetMap&Version=1.3.0&Service=WMS&v=1&CRS=EPSG:4326&bbox={south},{west},{north},{east}&height={height}&width={width}&optimizedOnly={optimizedOnly}&layers="+f.layerName+"&Styles=&Format=image/"+this._format,this._allElevationLayers=null,this._tilingScheme=new Xh,this._levelZeroMaximumGeometricError=Uy.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f.heightMapWidth*4,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._workerPool=new tA({workerPath:Hdr()},Ui),this._pendingRequests=0,this._requestGridSize=8,this._requestsCache={},this._requestsCacheKeys=[],this.errorEvent.addEventListener(function(y){},this)}If._geometricErrorFactor=2;Object.defineProperties(If.prototype,{errorEvent:{get:function(){return this._errorEvent}},availability:{get:function(){return this._availability}},credit:{get:function(){return this._credit}},hasVertexNormals:{get:function(){return!1}},tilingScheme:{get:function(){return this._tilingScheme}},ready:{get:function(){return!0}},hasWaterMask:{get:function(){return!1}},heightMapHeight:{get:function(){return this._options.heightMapHeight}},heightMapWidth:{get:function(){return this._options.heightMapWidth}},pendingRequests:{get:function(){return this._pendingRequests}}});If.prototype.setFormatMPT=function(o){if(!(o&&this.pngOnly)){var f=this._format;this._format=o?"mpt":"png",f!==this._format&&(this._isMPT=o,this._urlTemplate!==void 0&&(this._urlTemplate=this._urlTemplate.replace("image/"+f,"image/"+this._format)))}};If.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)*If._geometricErrorFactor};If.prototype.createKeyFromTile=function(o,f,m){return o+"_"+f+"_"+m};If.prototype.getTileDataAvailable=function(o,f,m){var x=Math.min(this._maxTerrainLevel,25);return this._isMPT?!0:m<x};If.prototype.requestFactorForLevel=function(o){var f=Math.log(this._requestGridSize)/Math.log(2);return f=Math.min(f,o),Math.pow(2,f)};If.prototype.getRequestBaseTerrainUrl=function(o,f,m,x){return this.getRequestUrl(o,f,m,x)};If.prototype.getRequestElevationLayer=function(o,f,m){return this.getRequestUrl(o,f,m,!1,!0)};If.prototype.getRequestUrl=function(w,T,E,x,v){var y=E,C=x!=null?this.requestFactorForLevel(E):1,w=x!=null?(w-w%C)/C:w,T=x!=null?(T-T%C)/C:T,E=x!=null?E-Math.log(C)/Math.log(2):E;if(this.isCache&&E!==0&&E<=this.cacheLevel)return this._cacheUrl.replace("{x}",w).replace("{y}",T).replace("{z}",E);var A=this.tilingScheme.tileXYToNativeRectangle(w,T,E),S=this.heightMapWidth*C===256&&x?1:0;v&&(S=0);var M=this._urlTemplate.replace("{south}",A.south).replace("{north}",A.north).replace("{west}",A.west).replace("{east}",A.east).replace("{optimizedOnly}",S).replace("{width}",this.heightMapWidth*C).replace("{height}",this.heightMapHeight*C).replace("{s}",this.sTag(w,T,E));return M+"&level="+E+"&origLevel="+y};If.prototype.isT_Inside_E=function(o,f){return o.west>=f.west*Ce.DEGREES_PER_RADIAN&&o.east<=f.east*Ce.DEGREES_PER_RADIAN&&o.south>=f.south*Ce.DEGREES_PER_RADIAN&&o.north<=f.north*Ce.DEGREES_PER_RADIAN};If.prototype.isT_Intersects_E=function(o,f){var m=o.west*Ce.RADIANS_PER_DEGREE,x=o.east*Ce.RADIANS_PER_DEGREE,v=o.south*Ce.RADIANS_PER_DEGREE,y=o.north*Ce.RADIANS_PER_DEGREE,C=new Si(m,v,x,y),w=Si.intersection(C,f,new Si);return w};If.prototype.sTag=function(o,f,m){if(this._subdomains==null)return"";var x=(o+f+m)%this._subdomains.length;return this._subdomains[x]};If.prototype.refreshElevationLayer=function(o){if(o.rectangle&&i4.scene.globe._surface._levelZeroTiles!==void 0){var f=this.findDirectParent(o.rectangle,!0);f.freeResources()}};If.prototype.findDirectParent=function(o,f){var m=function(y,C,w){var T=w?4.1:2.1;if(y._rectangle.width<=C.width*T&&Si.contains(y._rectangle,Si.center(C)))return y;for(var E=y.children.length,A=0;A<E;A++){var S=y.children[A];if(Si.contains(S._rectangle,Si.center(C)))return m(S,C,w)}return null};if(o.width==Math.PI)return null;for(var x=0;x<i4.scene.globe._surface._levelZeroTiles.length;x++){var v=m(i4.scene.globe._surface._levelZeroTiles[x],o,f);if(v)return v}return null};If.prototype.isTileAvailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new Si),v=this.findDirectParent(x);if(v&&v.data&&v.data.terrainData){if(!(v.data.terrainData._childTileMask>0))return!1;for(var y=v.children.length,C=0;C<y;C++){var w=v.children[C];if(Si.equals(w._rectangle,x))return v.data.terrainData._childTileMask&1<<C}}return!0};If.prototype.markTileAsUnavailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new Si),v=this.findDirectParent(x);v&&v.data&&v.data.terrainData&&v.data.terrainData._childTileMask>0&&v.children.some(function(y,C){if(Si.equals(y._rectangle,x)){switch(C){case 0:v.data.terrainData._childTileMask&=-5;break;case 1:v.data.terrainData._childTileMask&=-9;break;case 2:v.data.terrainData._childTileMask&=-2;break;case 3:v.data.terrainData._childTileMask&=-3;break;default:}return!0}return!1})};If.prototype.requestBaseTerrainTileGeometry=function(o,f,m,x){return this.requestTileGeometryBuffers(o,f,m,x)};If.prototype.requestElevationLayerTileGeometry=function(o,f,m,x,v){return this.requestTileGeometryBuffers(o,f,m,x,v)};If.prototype.requestTileGeometryBuffers=function(o,f,m,x,v){var y=this,C=15,w={};w.requestedRectangle=this.tilingScheme.tileXYToNativeRectangle(o,f,m),w.layer=v;var M,T,E,A,S=Z0(),M=this.requestTileHeightBuffer(o,f,m,x,void 0,v);return M===void 0?void 0:(T=this.requestTileHeightBuffer(o+1,f,m,x,!0,v),E=this.requestTileHeightBuffer(o,f+1,m,x,!0,v),A=this.requestTileHeightBuffer(o+1,f+1,m,x,!0,v),Promise.all([M,T,E,A]).then(function(I){if(WSt==0){if(I[0].myReject!=null&&I[0].myReject){S.reject();return}for(var P=y.heightMapWidth+1,D=y.heightMapHeight+1,R=new Float32Array(P*D),L=I[0].isFloor,O=0;O<P;O++)for(var F=0;F<D;F++){var B=O,H=F,G=0;F===P-1&&(H=0,G=1,L&&(G=0,H=P-2)),O===D-1&&(B=0,G=2);var W=O*P+F,Y=B*y.heightMapWidth+H;I[G]!==null&&(I[G].myReject==null||!I[G].myReject)&&(R[W]=I[G][Y])}(I[3].myReject==null||!I[3].myReject)&&(R[P*D-1]=I[3][0]);var K=y.arrayToHeightmapTerrainData(R,P,D,C);w.buffer=K,S.resolve(w)}else{var K=y.arrayToHeightmapTerrainData(I[0],y.heightMapWidth,y.heightMapHeight);w.buffer=K,S.resolve(w)}}).catch(function(){S.reject()}),S.promise)};If.prototype.requestTileGeometry=function(o,f,m,x){var v=this,y=[],C=v.tilingScheme.tileXYToNativeRectangle(o,f,m);this._allElevationLayers!=null&&this._allElevationLayers.length>0&&m>7?this._allElevationLayers.forEach(function(T,E){var A=E.show;if(A){var S=E.rectangle;v.isT_Inside_E(C,S)?(v.setFormatMPT(!1),y.push(v.requestElevationLayerTileGeometry(o,f,m,x,E))):v.isT_Intersects_E(C,S)!=null?(v.setFormatMPT(!1),y.push(v.requestElevationLayerTileGeometry(o,f,m,x,E)),y.push(v.requestBaseTerrainTileGeometry(o,f,m,x))):(v.setFormatMPT(!0),y.push(v.requestBaseTerrainTileGeometry(o,f,m,x)))}else v.setFormatMPT(!0),y.push(v.requestBaseTerrainTileGeometry(o,f,m,x))}):(v.setFormatMPT(!0),y.push(v.requestBaseTerrainTileGeometry(o,f,m,x)));var w=Z0();return Promise.all(y).then(function(T){if(T.length===1)T.layer!==void 0&&console.log("missing scale and offset"),w.resolve(T[0].buffer);else if(T.length>1){var E=T.filter(function(P){return P.layer!==void 0}),A=T.filter(function(P){return P.layer===void 0});if(E.length===0)w.resolve(T[0].buffer);else{var S=E[E.length-1],M=A[A.length-1],I={tolerance:S.layer.nullTolerance,nullValueNumber:S.layer.nullValueNumber,verticesX:S.layer.polygonVerticesX,verticesY:S.layer.polygonVerticesY,scale:S.layer.scale??1,offset:S.layer.offset??0};w.resolve(v.mergeBuffers(M.buffer,S.buffer,I,M.requestedRectangle))}}else w.reject()}).catch(function(){w.reject()}),w.promise};If.prototype.mergeBuffers=function(o,f,m,x){var v,y,C,w,T,E=33,A=33,S=x.west,M=x.north,I=x.east,P=x.south,D=x.width/E,R=x.height/A,L=m.scale,O=m.offset,F=m.nullValueNumber,B=m.tolerance,H=F!==void 0&&B!==void 0;if(H)var G=m.nullValueNumber??0,W=Number(m.tolerance)??0;var Y=new Float32Array(E*A);for(v=0,T=M;v<A;v++,T+=R)for(y=0,w=S;y<E;y++,w+=D)C=v*E+y,H?Y[C]=!f._buffer[C]||f._buffer[C]>=G-W&&f._buffer[C]<=G+W?o._buffer[C]:f._buffer[C]*L+O:Y[C]=f._buffer[C]?f._buffer[C]*L+O:o._buffer[C];return this.arrayToHeightmapTerrainData(Y,E,A,15)};If.prototype.requestTileHeightBuffer=function(o,f,m,x,v,y){var C=this;if(!isNaN(o+f+m)){(!N(x)||x===!1)&&(x=new Jm({defer:!0}));var w=x.defer==0;v=w??!1;var T=Z0();if(WSt==0){var E;if(y!==void 0)y.getUrlFromSTag=function(J,Z,z){return y.subdomains===void 0?y.url:y.subdomains[0]+"/SG"},E=this.getRequestElevationLayer(o,f,m).replace(this._options.url,y.getUrlFromSTag(o,f,m)+"/Elevation").replace(this._options.layerName,y.name),y.format==="mpt"&&(E=E.replace("image/png","image/mpt"));else{E=this.getRequestBaseTerrainUrl(o,f,m,w||v);var A=i4.terrainProvider.tilingScheme.tileXYToRectangle(o,f,m),S=i4.terrainProvider._modifyTerrainObjects,M=Z0();if(S!==void 0){var I=[];if(S.forEach(function(J){J.show&&Si.intersection(A,J.rectangle,new Si)!=null&&I.push(J)}),I.length>0)if(I.length===1&&I[0].modelFloorBestLevel&&m>I[0].modelFloorBestLevel)M.resolve("NoMerge");else{var P=jdr(I,A,m);Promise.resolve(P).then(function(J){M.resolve(J)}).catch(function(J){console.log(J)})}else M.resolve("NoMerge")}else M.resolve("NoMerge");var D=Z0(),R=[].filter(function(J){return J._selectedTiles.length>0});if(R.length===1&&R[0].level&&m>R[0].level)D.resolve("NoFloor");else{var L=!1,O=32,F=65535;R.forEach(function(J){if(J.ready&&J.show&&J.rootFloorRectangle!==void 0&&Si.intersection(A,J.rootFloorRectangle)!==void 0){for(var Z=new Uint16Array(O*O),z=A.west,te=A.south,ie=(A.east-A.west)/32,re=(A.north-A.south)/32,ee,oe=0;oe<O;oe++)for(var ae=0;ae<O;ae++){var he=z+ie*ae+ie/2,me=A.north-re*oe-re/2,ue=new kt(he,me);ee=F;var ce=J.getHRMTFP(J,ue,!0);ce!=null&&ce.content&&ce.content._model&&ce.content._model.floor&&(ee=ce.content._model.floor.getHeight(ue.longitude,ue.latitude)),ee!==F&&(ee+=1.5),Z[oe*O+ae]=ee}L=!0,D.resolve(Z)}}),L||D.resolve("NoFloor")}var B=i4.scene.globe.ellipsoid}if(this._requestsCache.hasOwnProperty(E)===!1){if(this._requestsCache[E]={},this._requestsCacheKeys.push(E),this._requestsCacheKeys.length>100){for(var H=0;H<50;H++)delete this._requestsCache[this._requestsCacheKeys[H]];this._requestsCacheKeys.splice(0,50)}}else{var G=this._requestsCacheKeys.indexOf(E);this._requestsCacheKeys.splice(G,1),this._requestsCacheKeys.push(E)}var W=this._requestsCache[E];if(W.dataLoaded===void 0&&(w?W.dataLoaded=Wr.fetchArrayBuffer(E):W.dataLoaded=Wr.fetchArrayBuffer(E),!N(W.dataLoaded)))return;var Y=this;this._pendingRequests++,Promise.resolve(W.dataLoaded).then(function(J){W.workerFinished===void 0&&(W.workerFinished=Y._workerPool.queueWorkItem({buffer:J,isElevation:y!==void 0,level:m})),Promise.all([W.workerFinished,M.promise,D.promise]).then(function(Z){var z=Z[1]!==void 0&&Z[1]!=="NoMerge",te=Z[2]!==void 0&&Z[2]!=="NoFloor";if(Z[0].rejected){for(var ie=Y.heightMapWidth*Y.heightMapHeight,re=new Int16Array(ie),ee=0,oe=0;oe<ie;oe++)re[oe]=300;return m>2&&(re.myReject=!0),T.resolve(re),T.promise}var ae=Y.extractTileHeightBuffer(Z[0].buffer,o,f,m);if(Y._pendingRequests--,z)for(var oe=0;oe<32;oe++)for(var he=0;he<32;he++){var me=oe*32+he;ae[me]=Z[1].mtHeight[0]}if(te){for(var oe=0;oe<32;oe++)for(var he=0;he<32;he++){var me=oe*32+he;ae[me]=Z[2][me]===65535||Z[2][me]>10500?ae[me]:Z[2][me]}ae.isFloor=!0}T.resolve(ae)}).catch(function(){for(var Z=Y.heightMapWidth*Y.heightMapHeight,z=new Int16Array(Z),te=0,ie=0;ie<Z;ie++)z[ie]=300;return m>2&&(z.myReject=!0),T.resolve(z),T.promise})}).catch(function(){Y._pendingRequests--,T.reject()})}else{for(var K=this.heightMapWidth*this.heightMapHeight,X=new Int16Array(K),q=Wdr(0,1500),H=0;H<K;H++)X[H]=q;T.resolve(X)}return T.promise}};If.prototype.extractTileHeightBuffer=function(o,f,m,x){try{for(var v=this.requestFactorForLevel(x),y=f%v,C=m%v,w=new Float32Array(this.heightMapWidth*this.heightMapHeight),T=1e6,E=-1e5,A=0;A<this.heightMapHeight;A++)for(var S=0;S<this.heightMapWidth;S++){var M=A+C*this.heightMapHeight,I=S+y*this.heightMapWidth,P=A*this.heightMapWidth+S,D=M*this.heightMapWidth*v+I;o[D]>E&&(E=o[D]),o[D]<T&&(T=o[D]),w[P]=o[D]}}catch(R){console.log(R.message)}return w};If.prototype.arrayToHeightmapTerrainData=function(o,f,m,x){N(o)===!1&&(o=new Int16Array(f*m));var v={buffer:o,width:f,height:m,childTileMask:x};return new CP(v)};var jSt=If;var Exe=class extends bm{constructor(f,m){super(f),this._earthCtrl=f,this._primitive=null,this._parameter=m}async addToMap(f){let m=this._parameter;f||(f=m.requestVertexNormals??!1);let x=null,v=m.sourceType??"ctb";try{if(v!=="ude"){if(v==="ctb")x=await T7.fromUrl(m.url,m);else if(v==="multi")x=new Ihe(this._earthCtrl);else if(v==="sgs")f&&(wv.hasVertexNormals=!0),x=new jSt(this._earthCtrl.coreMap,m);else if(v==="arcgis")x=await Bfe.fromUrl(m.url,m);else if(v==="mapworld"){let C=m.cesium;C.GeoTerrainProvider||new jx(!1).addJs(document.body,`${window.SmartEarthRootUrl}Workers/cesiumTdt.js`);let w=[],T=m.subdomains;for(let E=0;E<T.length;E++){let A=`${m.url.replace("{s}",T[E])}mapservice/swdx?T=elv_c&tk=3ec79cf7a9dcc6bb18411a5414b148cb`;w.push(A)}x=new C.GeoTerrainProvider({urls:w})}}x!==null&&(this._primitive=x,this._coreMap.terrainProvider=x);let y=m.groupName||this._earthCtrl.language.GROUP_NWE_TERRAIN_LAYER;m.addTree&&(m.addTree=void 0,m.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(y,{id:m.id||this._earthCtrl.factory.createUUID(),name:m.name||v,sourceType:"TerrainProvider",item:this,feature:m,checked:this._primitive.show}))}catch(y){console.error(y)}}removeFromMap(){this._primitive!==null&&(this._coreMap.terrainProvider=new DE)}setVisibility(f){f?this._coreMap.terrainProvider=this._primitive:this.removeFromMap()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([this._primitive.readyPromise]).then(function(v){let y=ol.export(f);console.log("terraobj",y),m(y)})})}flyTo(f={}){let m=f;m.orientation=f.orientation??{heading:Ce.toRadians(0),pitch:Ce.toRadians(-60),roll:Ce.toRadians(0)};function x(v,y){let w=Math.PI*6378137,T=v/w*180,E=180/Math.PI*(2*Math.atan(Math.exp(y/w*Math.PI))-Math.PI/2);return{lon:T,lat:E}}if(this._parameter.sourceType==="ctb"||this._parameter.sourceType==="arcgis"){if(this._primitive._tilingScheme.bounds[0]<180&&this._primitive._tilingScheme.bounds[0]>-180){let v=this._primitive._tilingScheme.bounds,y=(v[0]+v[2])/2,C=(v[1]+v[3])/2,w=f.height||1e4;m.destination=f.destination??V.fromDegrees(y,C,w)}else{let v=this._primitive._tilingScheme.bounds,y=x(v[0],v[1]),C=x(v[2],v[3]),w=(y.lon+C.lon)/2,T=(y.lat+C.lat)/2,E=f.height||1e4;m.destination=f.destination??V.fromDegrees(w,T,E)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Exe.prototype,{parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o)}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var Axe=Exe;var Sxe=class extends bm{constructor(f,m){super(f),this._earthCtrl=f,this._parameter=m}async addToMap(){let f=this._parameter,m=null;try{f.sourceType==="b3dm"||f.sourceType==="3DTiles"?(m=await t0.fromUrl(f.url,f),N(f.transform)&&this.transform(f.transform,m)):f.sourceType==="osgb"?m=await t0.fromUrl(f.url,f):f.sourceType==="i3s"?m=await gD.fromUrl(f.url,f):f.sourceType==="s3m"?(N(f.context)||(f.context=this._earthCtrl.viewer.scene.context),m=new $0e(f),await m.readyPromise):(f.sourceType==="ude_block"||f.sourceType==="ude_model")&&(f.skipLevelOfDetail=!0,m=await t0.fromUrl(f.url,f)),this._primitive=this._coreMap.scene.primitives.add(m),f.success&&typeof f.success=="function"&&f.success(m),f.addTree&&this._earthCtrl.factory.layerTree.addTreeData("s3m\u6A21\u578B",{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name,sourceType:"s3m",item:this._primitive,feature:f,checked:this._primitive.show})}catch(x){f.failed&&typeof f.failed=="function"&&f.failed(x)}return this}removeFromMap(){N(this._primitive)&&this._coreMap.scene.primitives.remove(this._primitive)}toJSON(){let f=this;return new Promise(function(m,x){Promise.all([f._primitive]).then(function(v){let y=ol.export(f);console.log("modellayerobj",y),m(y)})})}transform(f,m){let x=m._primitive,v=Yt.fromRotationX(Ce.toRadians(f.pitch)),y=Yt.fromRotationY(Ce.toRadians(f.roll)),C=Yt.fromRotationZ(Ce.toRadians(f.heading)),w=Ee.fromRotationTranslation(v),T=Ee.fromRotationTranslation(y),E=Ee.fromRotationTranslation(C),A=V.fromDegrees(f.lon,f.lat,f.alt),S=Mr.eastNorthUpToFixedFrame(A);Ee.multiply(S,w,S),Ee.multiply(S,T,S),Ee.multiply(S,E,S),x._root.transform=S}setHeight(f){if(f=Number(f),!isNaN(f)&&this._primitive!==void 0&&this._primitive.boundingSphere!==void 0){let m=this._primitive.boundingSphere.center,x=kt.fromCartesian(m),v=V.fromRadians(x.longitude,x.latitude,0),y=V.fromRadians(x.longitude,x.latitude,f),C=V.subtract(y,v,new V);this._primitive.modelMatrix=Ee.fromTranslation(C)}}};Object.defineProperties(Sxe.prototype,{parameter:{get:function(){return this._parameter}},readyPromise:{get:function(){return this._primitive.readyPromise}},show:{get:function(){return N(this._primitive)?this._primitive.show:!1},set:function(o){N(this._primitive)&&(this._primitive.show=o)}},sourceType:{get:function(){return N(this._parameter)?this._parameter.sourceType:!1}},dataUrl:{get:function(){return N(this._parameter)?this._parameter.url:!1}},boundingSphere:{get:function(){return N(this._primitive)&&this._primitive.boundingSphere?this._primitive.boundingSphere:null}},modelMatrix:{get:function(){return N(this._primitive)?this._primitive.modelMatrix:!1},set:function(o){N(this._primitive)&&(this._primitive.modelMatrix=o)}},name:{get:function(){return N(this._parameter)?this._parameter.name:!1},set:function(o){N(this._parameter)&&(this._parameter.name=o)}}});var Pxe=Sxe;var Ixe=class extends bm{constructor(f,m){super(f),this._rtti="FeatureLayer",this._primitive=null,this._parameter=m}finalize(){}addToMap(){let f=this._parameter;this._primitive=new ghe(this._earthCtrl,f);let m=f.groupName||"FeatureData";f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(m,{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name||f.sourceType,sourceType:"FeatureDataProvider",item:this._primitive,feature:f,checked:this._primitive.show}))}updateStyle(f){if(!this._primitive)return;let m=this._primitive.entities.values;for(let x=0;x<m.length;x++){let v=m[x];for(let y=0;y<v.propertyNames.length;y++){let C=v.propertyNames[y];if(!!v[C]){typeof f.near<"u"&&typeof f.far<"u"&&(v[C].distanceDisplayCondition=new Go(f.near,f.far));for(let w in f)if(Object.hasOwnProperty.call(f,w)){let T=f[w];v[C][w]&&(v[C][w]=T)}if(f.pointHeight){let w=kt.fromCartesian(v.position._value),T=Math.toDegrees(w.longitude),E=Math.toDegrees(w.latitude);v.position=V.fromDegrees(T,E,f.pointheight)}}}}}removeFromMap(){this._primitive!==null&&this._primitive.destory()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive]).then(function(v){let y=ol.export(f);console.log("fireObj",y),m(y)})})}};Object.defineProperties(Ixe.prototype,{entities:{get:function(){return this._primitive.entities}},dataSource:{get:function(){return this._primitive.dataSource}},parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o)}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var Mxe=Ixe;function Dxe(o){this._earthCtrl=o,this._path="",this._layerWork=null}Object.defineProperties(Dxe.prototype,{});Dxe.prototype.addToMap=function(o){N(this._layerWork)?this._layerWork.updateOverlay(o):this._layerWork=new Jfe(this._earthCtrl.coreMap,o)};Dxe.prototype.removeFromMap=function(){this._layerWork.dispose()};var Rxe=Dxe;var qdr={IMAGERYPROVIDERS:"imageryProviders",TERRAINPROVIDERS:"terrainProviders",MODELLAYERS:"modelLayers",FEATURELAYERS:"featureLayers",USERSCENE:"userScene"},al=Object.freeze(qdr);var Lxe=class extends bm{constructor(f,m){super(f),this._parameter=m,this._parameter.type=m.type??"water",this._parameter.version=m.version??"1.3.0",this._parameter.baseWaterColor=m.color??ze.fromCssColorString("#0374ff"),this._parameter.waterFrequency=m.waterFrequency??3e3,this._parameter.animationSpeed=m.animationSpeed??.01,this._parameter.amplitude=m.amplitude??5e3}addToMap(){let f=this._parameter;this._primitive=new CW(this._earthCtrl,f),this._primitive&&(this._parameter.color=this._primitive.baseWaterColor,this._parameter.params=this._primitive._params)}removeFromMap(){this._primitive!==null&&this._primitive.destory()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive]).then(function(v){let y=ol.export(f);console.log("waterObj",y),m(y)})})}};Object.defineProperties(Lxe.prototype,{type:{get:function(){return this._primitive.type}},version:{get:function(){return this._primitive._version}},params:{get:function(){return this._primitive._params},set:function(o){this._primitive!==null&&(this._primitive._params=o)}},show:{get:function(){return this._parameter!==null?this._parameter.show:!1},set:function(o){if(this._primitive!==null&&this._primitive._primitive&&this._primitive._primitive.length!==0){for(let f=0;f<this._primitive._primitive.length;f++)this._primitive._primitive[f].show=o;this._parameter.show=o}}},url:{get:function(){return this._primitive!==null?this._primitive.url:!1},set:function(o){this._primitive!==null&&(this._primitive.url=o)}},color:{get:function(){return this._primitive!==null?this._primitive.baseWaterColor:!1},set:function(o){this._primitive!==null&&(this._primitive.baseWaterColor=o)}},waterFrequency:{get:function(){return this._primitive!==null?this._primitive.waterFrequency:!1},set:function(o){this._primitive!==null&&(this._primitive.waterFrequency=o)}},animationSpeed:{get:function(){return this._primitive!==null?this._primitive.animationSpeed:!1},set:function(o){this._primitive!==null&&(this._primitive.animationSpeed=o)}},amplitude:{get:function(){return this._primitive!==null?this._primitive.amplitude:!1},set:function(o){this._primitive!==null&&(this._primitive.amplitude=o)}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var Oxe=Lxe;var YHe=class extends bm{constructor(f,m){super(f),this._parameter=m,this._viewer=f.coreMap,this._cesium=Ui}addToMap(){let f=this._parameter,m,x;N(f.div)?(m=document.getElementById(f.div),x=f.div):(m=document.createElement("div"),m.id="Hawkeye",m.style.position="absolute",m.style.width="15%",m.style.height="20%",m.style.bottom="20px",m.style.right="0",m.style.pointerEvents="none",this._viewer.container.appendChild(m),x="Hawkeye"),f.style&&(f.style.width&&(m.style.width=f.style.width),f.style.height&&(m.style.height=f.style.height),f.style.bottom&&(m.style.bottom=f.style.bottom),f.style.right&&(m.style.right=f.style.right),f.style.top&&(m.style.top=f.style.top,m.style.bottom="unset"),f.style.left&&(m.style.left=f.style.left,m.style.right="unset"));let v;f.url?v=new this._cesium.SingleTileImageryProvider({url:f.url}):f.imageryProvider?v=f.imageryProvider:v=new bP({url:"http://103.25.37.71:4020/gisserver/tmsserver/earth_tms"});let y=new _7(x,{baseLayer:Pp.fromProviderAsync(v),baseLayerPicker:!1,shadows:!1,shouldAnimate:!1,animation:!1,scene3DOnly:!0,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,contextOptions:{requestWebgl2:!0,licenseServer:window.licenseServer}});y._innerCreditContainer.style.display="none",y.scene.screenSpaceCameraController.enableRotate=!1,y.scene.screenSpaceCameraController.enableZoom=!1,y.scene.screenSpaceCameraController.enableTilt=!1;let C=this;function w(){let T=C._viewer.camera.position,E=kt.fromCartesian(T);y.camera.setView({destination:kt.toCartesian(E),orientation:{heading:C._viewer.camera.heading,pitch:C._viewer.camera.pitch,roll:C._viewer.camera.roll}})}return C._viewer.scene.preRender.addEventListener(w),this.close=function(){C._viewer.scene.preRender.removeEventListener(w),y.destroy(),m.remove(),C.close=void 0},this}removeFromMap(){this.close&&this.close()}},Nxe=YHe;var qSt=new Xt;function Ydr(o,f,m){let x=o.length,v,y,C;if(m){v=an.LUMINANCE,y=bn.FLOAT,C=new Float32Array(x);for(let w=0;w<x;w++)C[w]=o[w]}else{v=an.RGBA,y=bn.UNSIGNED_BYTE,C=new Uint8Array(x*4);for(let w=0;w<x;w++)Xt.packFloat(o[w],qSt),Xt.pack(qSt,C,w*4)}return new Wn.create({context:f,pixelFormat:v,pixelDatatype:y,source:{width:x,height:1,arrayBufferView:C},flipY:!1,sampler:new aa({wrapS:io.CLAMP_TO_EDGE,wrapT:io.CLAMP_TO_EDGE,minificationFilter:na.NEAREST,magnificationFilter:pl.NEAREST})})}var Fxe=[];function Xdr(o,f,m,x){Ee.toArray(Ee.IDENTITY,Fxe);let v=new zo({fabric:{type:"spotMaterial",source:`
            # define Spot_Texture_Width ${f.length}
            ${m?"#define use_texture_float":""}
            float getPointComponent(int idx, float invTexSize)
@@ -33789,7 +33872,7 @@
\r
}\r
\r
`};class vt{constructor(se,ye){var Je=o;this[Je(1081)]=1,this[Je(491)]=[.3,.8,.3,.5],this.outlineColor=[1,1,1,.8],this.alpha_Uniform_DataView=new Float32Array(16),this[Je(1033)]=new Uint32Array(this[Je(1020)].buffer),this[Je(1031)]=se,this[Je(702)]=ye,this[Je(1099)]=ye[Je(1099)],this[Je(525)]=this.device[Je(690)]({size:4*this[Je(1020)][Je(800)],usage:GPUBufferUsage[Je(844)]|GPUBufferUsage[Je(526)]}),this[Je(1020)].set(this.overlayColor),this.alpha_Uniform_DataView[Je(895)](this[Je(1014)],4),this[Je(1099)][Je(704)].writeBuffer(this.alpha_Uniform_VmBuffer,0,this[Je(1020)]),this[Je(1017)]=this[Je(1099)][Je(656)]({size:[this[Je(702)][Je(504)][Je(1088)].width,this[Je(702)].context[Je(1088)][Je(864)],1],format:Je(637),usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage[Je(736)]|GPUTextureUsage[Je(467)]|GPUTextureUsage[Je(1013)]}),this[Je(813)]=this.device[Je(656)]({size:[this[Je(702)][Je(504)][Je(1088)].width,this[Je(702)][Je(504)].canvas[Je(864)],1],format:Je(435),usage:GPUTextureUsage[Je(448)]|GPUTextureUsage[Je(736)]|GPUTextureUsage[Je(467)]});let Ft=this[Je(1099)][Je(648)]({entries:[{binding:0,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(1053)}},{binding:1,visibility:GPUShaderStage.VERTEX,buffer:{type:"read-only-storage"}},{binding:2,visibility:GPUShaderStage.VERTEX,buffer:{type:Je(629)}},{binding:3,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:4,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:5,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(1053)}},{binding:6,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}}]}),jt=(this.alpha_BingGroup=this[Je(1099)][Je(866)]({layout:Ft,entries:[{binding:0,resource:{buffer:this[Je(702)][Je(1068)]}},{binding:1,resource:{buffer:this[Je(702)][Je(680)]}},{binding:2,resource:{buffer:this.renderEngine[Je(666)]}},{binding:3,resource:{buffer:this.renderEngine[Je(1092)]}},{binding:4,resource:{buffer:this[Je(702)][Je(580)]}},{binding:5,resource:{buffer:this[Je(525)]}},{binding:6,resource:{buffer:this.renderEngine.operateVmBuffer}}]}),this[Je(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[Je(539)]|GPUShaderStage[Je(625)],buffer:{type:Je(629)}}]})),gt=(this[Je(933)]=this[Je(1099)][Je(866)]({layout:jt,entries:[{binding:0,resource:{buffer:this.renderEngine[Je(688)]}}]}),this.device[Je(917)]({bindGroupLayouts:this[Je(702)].multiDrawIndirect?[Ft]:[Ft,jt]})),nt=lt[Je(1022)];this[Je(702)][Je(1035)]?nt=nt[Je(926)](Je(904),""):(nt=nt[Je(926)](Je(929),Je(1009)),nt+=Je(1093)),se=this[Je(1099)][Je(720)]({code:Z[Je(1022)]+nt}),this[Je(955)]=this[Je(1099)][Je(950)]({layout:gt,vertex:{module:se,entryPoint:"vert_main",buffers:[],constants:{}},fragment:{module:se,entryPoint:Je(1048),targets:[{format:this[Je(1017)][Je(980)]}],constants:{}},primitive:{topology:Je(1062),frontFace:"ccw",cullMode:Je(590)},depthStencil:{format:this[Je(813)][Je(980)],depthCompare:Je(753),depthWriteEnabled:!0}}),this[Je(1028)]={colorAttachments:[{view:this[Je(1017)][Je(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:Je(971),storeOp:Je(600)}],depthStencilAttachment:{view:this[Je(813)][Je(1045)](),depthClearValue:0,depthLoadOp:Je(971),depthStoreOp:Je(600),depthReadOnly:!1}},this[Je(702)][Je(1035)]||((ye=this.device[Je(968)]({colorFormats:[this[Je(1017)].format],depthStencilFormat:this.alpha_depth_Texture[Je(980)]}))[Je(689)](0,this.alpha_BingGroup),ye[Je(501)](this[Je(955)]),ye[Je(689)](1,this[Je(933)]),ye.drawIndirect(this.renderEngine[Je(812)],0),this.alpha_RenderBundle=ye[Je(1091)]()),this[Je(546)]()}[o(991)](se){var ye=o,Je=se.beginRenderPass(this[ye(1028)]);this.renderEngine[ye(1035)]?(Je[ye(689)](0,this.alpha_BingGroup),Je[ye(501)](this[ye(955)]),Je.multiDrawIndirect(this[ye(688)],0,393216,this[ye(812)],0)):Je.executeBundles([this[ye(1083)]]),Je[ye(482)](),this[ye(585)](se)}EdgeMergeIntend(){var se=o;this.edgeMerge_color_Texture=this[se(1099)][se(656)]({size:[this.renderEngine.context.canvas[se(412)],this[se(702)].context[se(1088)].height,1],format:"rgba8unorm",usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]});var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(893)][se(980)],access:"read-only"}},{binding:3,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(893)][se(980)],access:se(633)}},{binding:4,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this.edgeMerge_color_Texture.format,access:se(714)}}]});this[se(924)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(525)]}},{binding:1,resource:this[se(702)][se(636)]},{binding:2,resource:this.renderEngine[se(502)][se(1045)]()},{binding:3,resource:this.alpha_color_Texture.createView()},{binding:4,resource:this.edgeMerge_color_Texture[se(1045)]()}]}),this.edgeMergeComputePipeline=this[se(1099)][se(1101)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this.device[se(720)]({code:ft[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(585)](se){var ye=o,Je=se[ye(911)]();Je[ye(689)](0,this[ye(924)]),Je.setPipeline(this.edgeMergeComputePipeline),Je[ye(624)](this[ye(702)][ye(752)],this[ye(702)][ye(899)]),Je[ye(482)](),se.copyTextureToTexture({texture:this[ye(893)]},{texture:this.renderEngine[ye(502)]},{width:this.edgeMerge_color_Texture[ye(412)],height:this[ye(893)][ye(864)]})}}let Pt={code:o(664)};class rt{constructor(se,ye){var Je=o;this[Je(1081)]=1,this.overlayColor=[.3,.8,.3,.5],this.outlineColor=[1,1,1,.8],this[Je(1020)]=new Float32Array(16),this.alpha_Uniform_DataViewU32=new Uint32Array(this[Je(1020)].buffer),this[Je(1031)]=se,this[Je(702)]=ye,this[Je(1099)]=ye.device,this[Je(525)]=this.device.createBuffer({size:4*this[Je(1020)].length,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[Je(526)]}),this[Je(1020)].set(this.overlayColor),this[Je(1020)][Je(895)](this[Je(1014)],4),this[Je(1099)][Je(704)][Je(1039)](this.alpha_Uniform_VmBuffer,0,this[Je(1020)]),this.alpha_color_Texture=this.device[Je(656)]({size:[this[Je(702)][Je(504)][Je(1088)][Je(412)],this[Je(702)][Je(504)][Je(1088)][Je(864)],1],format:Je(637),usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage[Je(467)]|GPUTextureUsage[Je(1013)]}),this[Je(813)]=this[Je(1099)][Je(656)]({size:[this[Je(702)][Je(504)][Je(1088)].width,this[Je(702)][Je(504)].canvas[Je(864)],1],format:"depth32float",usage:GPUTextureUsage[Je(448)]|GPUTextureUsage[Je(736)]|GPUTextureUsage.TEXTURE_BINDING}),se=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[Je(539)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:2,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:3,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:4,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:5,visibility:GPUShaderStage.VERTEX,buffer:{type:Je(1053)}}]}),this[Je(1054)]=this[Je(1099)][Je(866)]({layout:se,entries:[{binding:0,resource:{buffer:this.renderEngine[Je(1068)]}},{binding:1,resource:{buffer:this[Je(702)].modelVmBuffer}},{binding:2,resource:{buffer:this[Je(702)][Je(666)]}},{binding:3,resource:{buffer:this[Je(702)].meshVmBuffer}},{binding:4,resource:{buffer:this[Je(702)].meshLodVmBuffer}},{binding:5,resource:{buffer:this[Je(525)]}}]}),ye=this[Je(1099)][Je(917)]({bindGroupLayouts:[se]}),se=this[Je(1099)][Je(720)]({code:Z[Je(1022)]+Pt.code}),this.alpha_Pipeline=this[Je(1099)][Je(950)]({layout:ye,vertex:{module:se,entryPoint:Je(744),buffers:[],constants:{}},fragment:{module:se,entryPoint:Je(1048),targets:[{format:this[Je(1017)].format}],constants:{}},primitive:{topology:Je(956),frontFace:Je(905),cullMode:"back"},depthStencil:{format:this[Je(813)][Je(980)],depthCompare:Je(753),depthWriteEnabled:!0}}),this[Je(1028)]={colorAttachments:[{view:this.alpha_color_Texture[Je(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:Je(971),storeOp:Je(600)}],depthStencilAttachment:{view:this[Je(813)][Je(1045)](),depthClearValue:0,depthLoadOp:"clear",depthStoreOp:"store",depthReadOnly:!1}}}[o(991)](se){var ye=o;this[ye(1031)].instancesCount!==0&&((se=se[ye(675)](this[ye(1028)]))[ye(689)](0,this[ye(1054)]),se.setPipeline(this[ye(955)]),se.draw(8*this[ye(1031)][ye(1069)]),se[ye(482)]())}}class yt{constructor(se){var ye=o;this.fig=se,this[ye(778)]=0,this[ye(700)]=0,this[ye(1035)]=!1,this[ye(710)]=!0,this.readTemp_noLocking=!0,this[ye(1e3)]=!0,this[ye(983)]=!0,this[ye(837)]=!0,this[ye(425)]=1,this[ye(628)]=2,this[ye(767)]=3,this.vm_target_meshLod=4,this[ye(934)]=5,this[ye(561)]=6,this[ye(903)]=7,this[ye(1025)]=32,this[ye(804)]=new Float32Array(9),this[ye(795)]=20,this.spaceTotalCount=0,this[ye(598)]=10,this[ye(775)]=1e6,this[ye(858)]=new ArrayBuffer(64),this[ye(653)]=new Uint32Array([10,0,0,0]),this[ye(786)]=1e5,this[ye(915)]=Math.ceil(this.lightBodiesAssociateCount/1024),this[ye(764)]=1e6,this[ye(540)]=4096,this[ye(944)]=new Float32Array(128),this[ye(697)]=new Uint32Array(this[ye(944)][ye(877)]),this[ye(819)]=128,this[ye(1047)]=32,this[ye(881)]=this[ye(819)]-(this.blur_filterSize-1),this.blur_batch=[4,4],this[ye(630)]=0,this[ye(518)]=new Float32Array(4),this[ye(541)]=new Float32Array(128),this.volumeRender_Uniform_DataView=new Float32Array(128),this[ye(667)]=new Float32Array(128),this[ye(719)]=new Uint32Array(this[ye(667)].buffer),this.renderToCanvas_Uniform_DataView=new Float32Array([1,1,.1]),this[ye(681)]=new Uint32Array([27,0,0,0]),this.lastPickPositionValue=F[ye(807)](),this[ye(872)]=!0,this.allow_read_renderMaterial=!0,this[ye(954)]=!1,navigator[ye(437)].requestAdapter({powerPreference:"high-performance"}).then(Je=>{var Ft=ye;if(Je!==null){this[Ft(947)]=Je;var jt,gt=Array[Ft(1050)](Je[Ft(840)]||[]),nt={};for(jt in Je[Ft(608)])nt[jt]=Je[Ft(608)][jt];Je[Ft(935)]({requiredFeatures:gt,requiredLimits:nt})[Ft(442)](Ye=>{var tt=Ft;this[tt(1099)]=Ye,this[tt(778)]=Ye.limits.maxTextureDimension1D,this[tt(1019)]=tt(637),this.context=this[tt(1031)][tt(1088)][tt(678)]("webgpu"),this[tt(504)][tt(750)]({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493),toneMapping:{mode:tt(422)}}),this.fig[tt(515)]&&(this[tt(506)]=this[tt(1031)][tt(515)][tt(678)](tt(986)),this[tt(506)][tt(750)]({device:this[tt(1099)],format:this.presentationFormat,alphaMode:"premultiplied",toneMapping:{mode:tt(422)}})),this[tt(700)]=this[tt(504)].canvas[tt(864)]*this[tt(504)].canvas[tt(412)],globalThis.__ser_isDev__&&((Ye=document.createElement(tt(1088))).style=tt(558),document[tt(455)].appendChild(Ye),this[tt(797)]=Ye[tt(678)](tt(986)),this[tt(797)][tt(1088)].width=300,this.context1[tt(1088)].height=300,this.context1[tt(750)]({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493)}),(Ye=document[tt(602)](tt(1088)))[tt(887)]="position: absolute;top: 0;right: 0;z-index: 1;border: 1px solid white;pointer-events: none;",document[tt(455)][tt(621)](Ye),this[tt(733)]=Ye[tt(678)](tt(986)),this.context2.canvas[tt(412)]=this[tt(504)][tt(1088)][tt(412)]/5,this[tt(733)][tt(1088)][tt(864)]=this[tt(504)][tt(1088)].height/5,this.context2.configure({device:this.device,format:this[tt(1019)],alphaMode:tt(493)}),(Ye=document[tt(602)](tt(1088)))[tt(887)]="position: absolute;bottom: 0;right: 0;z-index: 1;border: 1px solid white;pointer-events: none;",document.body[tt(621)](Ye),this.context3=Ye[tt(678)](tt(986)),this[tt(976)][tt(1088)][tt(412)]=this[tt(504)].canvas[tt(412)]/5,this[tt(976)].canvas[tt(864)]=this[tt(504)][tt(1088)].height/5,this[tt(976)].configure({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493)}),(Ye=document.createElement(tt(1088))).style=tt(716),document[tt(455)][tt(621)](Ye),this[tt(657)]=Ye[tt(678)]("webgpu"),this[tt(657)][tt(1088)][tt(412)]=this[tt(504)][tt(1088)].width/5,this.context4[tt(1088)][tt(864)]=this.context[tt(1088)][tt(864)]/5,this[tt(657)][tt(750)]({device:this[tt(1099)],format:this.presentationFormat,alphaMode:tt(493)}));var Ye=this[tt(1099)].createCommandEncoder(),Et=Ye[tt(675)]({colorAttachments:[null]});this[tt(1035)]=!!Et.multiDrawIndirect,Et.end(),Ye[tt(1091)](),this[tt(900)](),this[tt(510)](),this[tt(1031)][tt(661)]()})}})}[o(900)](){var se=o;this[se(854)]=this.device[se(741)]({magFilter:"nearest",minFilter:se(919)}),this[se(636)]=this.device[se(741)]({magFilter:se(865),minFilter:se(865)}),this.samplerDepth=this[se(1099)].createSampler({compare:se(753),minFilter:se(865),magFilter:se(865)}),this[se(962)]=this[se(1099)][se(656)]({size:[this.maxTextureSize,this.maxTextureSize,1],format:se(618),usage:GPUTextureUsage[se(467)]|GPUTextureUsage[se(526)]}),this[se(978)]=this.device[se(656)]({size:[this.maxTextureSize,this[se(778)],1],format:"bc7-rgba-unorm",usage:GPUTextureUsage[se(467)]|GPUTextureUsage.COPY_DST}),this[se(777)]=this[se(1099)].createTexture({size:[this[se(778)],this[se(778)],1],format:se(618),usage:GPUTextureUsage[se(467)]|GPUTextureUsage.COPY_DST}),this[se(459)]=this[se(1099)].createBuffer({size:52428800,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this[se(959)]=this[se(1099)][se(690)]({size:52428800,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.readPickId_VmBuffer=this.device.createBuffer({size:4,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this[se(774)]=this.device[se(690)]({size:16,usage:GPUBufferUsage[se(683)]|GPUBufferUsage.COPY_DST}),this.zeroVmBuffer=this.device[se(690)]({size:52428800,usage:GPUBufferUsage[se(448)]}),this.scene_VmBuffer=this.device[se(690)]({size:this[se(1031)][se(735)][se(829)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this[se(449)]=this[se(1099)][se(690)]({size:336,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(873)]=this[se(1099)][se(690)]({size:this[se(1031)][se(547)].byteLength,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(522)]|GPUBufferUsage[se(448)]}),this[se(883)]=this[se(1099)][se(825)]({type:se(931),count:10}),this[se(692)]=this[se(1099)][se(690)]({size:10*BigUint64Array.BYTES_PER_ELEMENT,usage:GPUBufferUsage[se(415)]|GPUBufferUsage[se(448)]}),this[se(627)]=this[se(1099)][se(690)]({size:10*BigUint64Array[se(730)],usage:GPUBufferUsage[se(526)]|GPUBufferUsage[se(683)]}),this[se(556)]=this[se(1099)][se(690)]({size:6291456,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.renderMaterial_read_VmBuffer=this.device[se(690)]({size:6291456,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.modelVmBuffer=this[se(1099)].createBuffer({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST}),this[se(666)]=this[se(1099)][se(690)]({size:134217728,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(580)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage.STORAGE|GPUBufferUsage[se(526)]}),this.meshVmBuffer=this[se(1099)][se(690)]({size:524288e3,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST}),this.copyVmBuffer=this.device[se(690)]({size:8388608,usage:GPUBufferUsage[se(448)]|GPUBufferUsage[se(526)]}),this[se(792)]=this[se(1099)].createBuffer({size:8388608,usage:GPUBufferUsage.STORAGE|GPUBufferUsage[se(526)]}),this[se(1105)]=this.device[se(656)]({size:[this.context.canvas.width,this[se(504)][se(1088)].height,1],format:se(1018),usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]}),this[se(571)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)].canvas.height,1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(695)]=this.device[se(690)]({size:24,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC})}[o(510)](){var se=o;this[se(619)](),this[se(831)](),this.MakeCommandIntend(),this[se(909)](),this[se(411)](),this[se(480)](),this.LightBodiesAssociateIntend(),this[se(612)](),this.LightBodiesBounceOneIntend(),this[se(818)](),this[se(882)](),this[se(488)](),this[se(1106)](),this[se(822)](),this[se(1032)](),this[se(451)](),this[se(1031)].cesiumWidget&&this.RenderToCanvasIntend(),this.selectRender=new vt(this[se(1031)],this),this[se(869)]=new rt(this.fig,this),globalThis.__ser_isDev__&&this[se(1010)]()}[o(560)](se){var ye=o,Je=performance.now();switch(se.target){case this[ye(425)]:if(se[ye(1016)]&&se[ye(563)])this[ye(680)][ye(605)],se[ye(1016)],se.buf[ye(829)],this[ye(1099)][ye(704)][ye(1039)](this[ye(680)],se[ye(1016)],se[ye(563)]);else if(se[ye(413)])for(var Ft in se[ye(413)])this[ye(1099)].queue[ye(1039)](this.modelVmBuffer,~~Ft,se[ye(413)][Ft]);else se[ye(1089)]&&this[ye(1099)].queue[ye(1039)](this[ye(680)],se[ye(1016)],new ArrayBuffer(se[ye(1089)]));break;case this[ye(628)]:this.instanceVmBuffer[ye(605)],se.vmOffset,se[ye(563)].byteLength,this[ye(1099)][ye(704)][ye(1039)](this.instanceVmBuffer,se[ye(1016)],se[ye(563)]);break;case this[ye(767)]:this[ye(1092)][ye(605)],se[ye(1016)],se[ye(563)].byteLength,this[ye(1099)].queue.writeBuffer(this.meshVmBuffer,se[ye(1016)],se[ye(563)]);break;case this[ye(419)]:this[ye(580)][ye(605)],se[ye(1016)],se[ye(563)][ye(829)],this[ye(1099)][ye(704)][ye(1039)](this[ye(580)],se.vmOffset,se[ye(563)]);break;case this.vm_target_meshLod_up:this.updateMeshOffset_VmBuffer[ye(605)],se[ye(563)][ye(829)],this.device[ye(704)][ye(1039)](this[ye(711)],0,se.buf);var jt=this[ye(1099)][ye(981)]();this[ye(421)](jt,se[ye(815)]),this[ye(1099)][ye(704)][ye(635)]([jt[ye(1091)]()]);break;case this[ye(561)]:this[ye(1099)][ye(704)].writeTexture({texture:this[ye(962)],origin:se[ye(534)]},se.albedo_buf,se[ye(743)],se.size),se[ye(671)]&&this[ye(1099)].queue[ye(458)]({texture:this.normal_Texture,origin:se.origin},se[ye(671)],se[ye(743)],se[ye(605)]),se[ye(423)]&&this[ye(1099)][ye(704)][ye(458)]({texture:this[ye(777)],origin:se[ye(534)]},se[ye(423)],se[ye(743)],se[ye(605)]);break;case this[ye(903)]:this[ye(792)].size,se[ye(1016)],se.buf[ye(829)],this.device[ye(704)][ye(1039)](this.operateVmBuffer,se[ye(1016)],se[ye(563)])}Je<performance[ye(495)]()-5&&console.log(ye(927),performance.now()-Je,se[ye(723)])}OrganizeMeshVmData(se){var ye=o,Je,Ft=this[ye(1099)][ye(981)]();for(Je of se[ye(937)])this[ye(711)][ye(605)],Je[ye(563)][ye(829)],this.device[ye(704)][ye(1039)](this[ye(711)],0,Je[ye(563)]),this[ye(421)](Ft,Je[ye(815)]);for(let gt=0;gt<se[ye(652)][ye(800)];gt+=3){let nt=se[ye(652)][gt],Ze=se[ye(652)][gt+1],tt=se.copyList[gt+2];for(;;){if(!(tt>this[ye(647)][ye(605)])){Ft.copyBufferToBuffer(this[ye(1092)],Ze,this[ye(647)],0,tt),Ft.copyBufferToBuffer(this.copyVmBuffer,0,this.meshVmBuffer,nt,tt);break}var jt=this[ye(647)][ye(605)];Ft[ye(913)](this[ye(1092)],Ze,this[ye(647)],0,jt),Ft.copyBufferToBuffer(this[ye(647)],0,this[ye(1092)],nt,jt),Ze+=jt,nt+=jt,tt-=jt}}this[ye(1099)][ye(704)].submit([Ft[ye(1091)]()])}[o(619)](){var se=o;this[se(701)]=this[se(1099)][se(690)]({size:10*Math.ceil(262144)*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(1107)]=this[se(701)].size/4-100,this[se(1099)][se(704)][se(1039)](this.lightBodiesSpace_VmBuffer,0,new Uint32Array([10*this.lightBodiesSize,this[se(795)]<<1,2*this[se(795)]<<1,3*this[se(795)]<<1,4*this[se(795)]<<1,5*this[se(795)]<<1,6*this.lightBodiesSize<<1,7*this[se(795)]<<1,8*this.lightBodiesSize<<1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0])),this[se(907)]=this[se(1099)].createBuffer({size:8388608,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(975)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this[se(551)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(551)],0,new Uint32Array([1e4,1,1,0])),this[se(604)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(1002)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]})}[o(831)](){var se=o;this[se(985)]=this[se(1099)][se(690)]({size:this[se(556)].size-4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]}),this[se(788)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage.COPY_SRC});var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:6,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ye=(this[se(960)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(788)]}},{binding:2,resource:{buffer:this[se(985)]}},{binding:3,resource:{buffer:this[se(666)]}},{binding:4,resource:{buffer:this.meshVmBuffer}},{binding:5,resource:{buffer:this[se(680)]}},{binding:6,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ye]}));this[se(1097)]=this[se(1099)][se(1101)]({layout:ye,compute:{module:this.device[se(720)]({code:Z.code+H[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],instanceItemVmSize:this.instanceItemVmSize}}})}[o(1117)](se){var ye=o;se=se[ye(911)](),se[ye(501)](this[ye(1097)]),se.setBindGroup(0,this[ye(960)]),se[ye(624)](Math.ceil(this[ye(1031)].instancesCount/this[ye(1099)][ye(608)][ye(963)])),se.end()}[o(749)](){var se=o;this[se(812)]=this[se(1099)][se(690)]({size:32,usage:GPUBufferUsage.INDIRECT|GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST}),this[se(688)]=this.device[se(690)]({size:6291456,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(724)]}),this[se(920)]=this.device[se(690)]({size:this.renderMaterial_read_VmBuffer.size,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_SRC});var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:6,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:9,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this[se(544)]=this[se(1099)].createBindGroup({layout:ye,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:2,resource:{buffer:this[se(666)]}},{binding:3,resource:{buffer:this[se(1092)]}},{binding:4,resource:{buffer:this[se(680)]}},{binding:5,resource:{buffer:this[se(812)]}},{binding:6,resource:{buffer:this.renderIndex_VmBuffer}},{binding:8,resource:{buffer:this.renderMaterial_VmBuffer}},{binding:9,resource:{buffer:this.meshLodVmBuffer}}]}),this.device[se(917)]({bindGroupLayouts:[ye]})),ye=(this[se(668)]=this[se(1099)][se(1101)]({layout:ye,compute:{module:this[se(1099)].createShaderModule({code:Z[se(1022)]+G.code}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],maxRenderInstance:2*this.maxRenderInstance,multiDrawIndirect:this[se(1035)]?1:0,instanceItemVmSize:this[se(1025)]}}}),this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:6,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:7,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:9,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}));this[se(734)]=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(688)]}},{binding:1,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:2,resource:{buffer:this.indirect_render_VmBuffer}},{binding:3,resource:{buffer:this[se(920)]}},{binding:4,resource:{buffer:this[se(666)]}},{binding:5,resource:{buffer:this[se(1068)]}},{binding:6,resource:{buffer:this[se(604)]}},{binding:7,resource:{buffer:this[se(551)]}},{binding:8,resource:{buffer:this.readMesh_atomic_VmBuffer}},{binding:9,resource:{buffer:this[se(873)]}}]}),this[se(565)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this[se(1099)].createShaderModule({code:Z[se(1022)]+W[se(1022)]+z[se(1022)]}),entryPoint:se(817),constants:{multiDrawIndirect:this.multiDrawIndirect?1:0}}})}[o(462)](se){var ye=o;this.fig[ye(1069)]!==1&&(se.copyBufferToBuffer(this[ye(1056)],0,this[ye(812)],0,this[ye(812)][ye(605)]),(se=se.beginComputePass()).setPipeline(this[ye(668)]),se[ye(689)](0,this.MakeCommandComputeBingGroup),se[ye(624)](Math.ceil(this[ye(1031)][ye(1069)]/this[ye(1099)][ye(608)][ye(963)])),se.setPipeline(this[ye(565)]),se.setBindGroup(0,this[ye(734)]),se.dispatchWorkgroups(1),se[ye(482)]())}[o(612)](){var se=o;this.updateMeshOffset_VmBuffer=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST});var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:"read-only-storage"}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this[se(1041)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this.updateMeshOffset_VmBuffer}},{binding:1,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ye]}));this.updateMeshOffsetComputePipeline=this[se(1099)][se(1101)]({layout:ye,compute:{module:this[se(1099)][se(720)]({code:X[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)].maxComputeInvocationsPerWorkgroup}}})}[o(421)](se,ye){var Je=o;se=se[Je(911)]({timestampWrites:{querySet:this[Je(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}}),se[Je(501)](this.updateMeshOffsetComputePipeline),se.setBindGroup(0,this.updateMeshOffsetComputeBingGroup),se[Je(624)](Math[Je(552)](ye/this[Je(1099)][Je(608)][Je(963)])),se[Je(482)]()}[o(488)](){var se=o;this[se(912)]=new Uint32Array(this[se(858)]),this[se(912)][0]=1,this[se(846)]=new Float32Array(this.readMesh_Uniform_dataBuffer),this[se(502)]=this[se(1099)][se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:this.presentationFormat,usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage.COPY_DST|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]});var Je=2147483647,ye=-2147483648,Je=(this[se(1099)][se(704)][se(1039)](this.readMesh_atomic_VmBuffer,0,new Int32Array([Je,Je,Je,ye,ye,ye])),this[se(443)]=this.device.createBuffer({size:64,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this[se(498)]=16,this[se(752)]=Math.ceil(this[se(1102)][se(412)]/this[se(498)]),this[se(899)]=Math[se(552)](this[se(1102)][se(864)]/this[se(498)]),this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:"uniform"}},{binding:3,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this.meshRenderPositionTexture[se(980)],access:se(633)}},{binding:4,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(632)][se(980)],access:se(633)}},{binding:5,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(793)][se(980)],access:se(633)}},{binding:6,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:7,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:9,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this[se(502)][se(980)],access:se(714)}},{binding:10,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:11,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this[se(1105)][se(980)],access:"read-only"}},{binding:12,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(500)].format,access:se(633)}},{binding:13,visibility:GPUShaderStage[se(528)],sampler:{type:se(967)}},{binding:14,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(649),viewDimension:"2d-array"}},{binding:15,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}));this.readMeshComputeBingGroup=this[se(1099)][se(866)]({layout:Je,entries:[{binding:0,resource:{buffer:this[se(443)]}},{binding:1,resource:{buffer:this.lightInfo_VmBuffer}},{binding:2,resource:{buffer:this[se(1068)]}},{binding:3,resource:this[se(1102)][se(1045)]()},{binding:4,resource:this[se(632)][se(1045)]()},{binding:5,resource:this.meshRenderInstancePtrTexture[se(1045)]()},{binding:6,resource:{buffer:this[se(666)]}},{binding:7,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:8,resource:{buffer:this[se(604)]}},{binding:9,resource:this[se(502)][se(1045)]()},{binding:10,resource:{buffer:this[se(569)]}},{binding:11,resource:this[se(1105)][se(1045)]()},{binding:12,resource:this[se(500)][se(1045)]()},{binding:13,resource:this[se(875)]},{binding:14,resource:this.renderShadowDepthView1},{binding:15,resource:{buffer:this.readMesh_atomic_VmBuffer}}]}),this[se(492)]=this[se(1099)][se(1101)]({label:se(492),layout:this.device[se(917)]({bindGroupLayouts:[Je]}),compute:{module:this[se(1099)].createShaderModule({code:Z.code+q.code+oe[se(1022)]+z[se(1022)]+ae.code}),entryPoint:se(817),constants:{spaceUnit:this.spaceUnit}}})}[o(725)](se){var ye=o;this[ye(1099)].queue[ye(1039)](this[ye(443)],0,this[ye(858)]),se=se.beginComputePass({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ye(501)](this[ye(492)]),se.setBindGroup(0,this.readMeshComputeBingGroup),se.dispatchWorkgroups(this[ye(752)],this[ye(899)]),se[ye(482)]()}[o(769)](){var se=o;this[se(906)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(1099)][se(704)].writeBuffer(this[se(906)],0,this[se(653)]);var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]});this.lightBodiesAssociate_ComputeBingGroup=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(906)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this[se(779)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[ye]}),compute:{module:this[se(1099)][se(720)]({code:ie.code+ae[se(1022)]}),entryPoint:se(817),constants:{lightBodiesSize:this[se(795)],spaceTotalCount:this[se(1107)]}}})}LightBodiesAssociate(se){var ye=o;this[ye(653)][0]+=this[ye(786)],this[ye(653)][0]*this.lightBodiesSize>this[ye(1107)]&&(this[ye(653)][0]=10),this[ye(1099)][ye(704)][ye(1039)](this[ye(906)],0,this[ye(653)]),se=se[ye(911)]({timestampWrites:{querySet:this[ye(883)],beginningOfPassWriteIndex:6,endOfPassWriteIndex:7}}),se[ye(689)](0,this[ye(998)]),se.setPipeline(this[ye(779)]),se.dispatchWorkgroups(this[ye(915)]),se.end()}[o(823)](){var se=o,ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this[se(1015)]=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(975)]}},{binding:1,resource:{buffer:this[se(873)]}},{binding:2,resource:{buffer:this[se(701)]}},{binding:3,resource:{buffer:this[se(604)]}},{binding:4,resource:{buffer:this[se(1002)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ye]}));this[se(676)]=this[se(1099)][se(1101)]({layout:ye,compute:{module:this[se(1099)][se(720)]({code:z.code+te.code+ae.code}),entryPoint:"main",constants:{}}}),this[se(1040)]=this[se(1099)].createComputePipeline({layout:ye,compute:{module:this[se(1099)].createShaderModule({code:z.code+re[se(1022)]+ae[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(718)](se){var ye=o,Je=se[ye(911)]({timestampWrites:{querySet:this[ye(883)],beginningOfPassWriteIndex:2,endOfPassWriteIndex:3}});Je[ye(689)](0,this[ye(1015)]),Je.setPipeline(this[ye(676)]),Je[ye(624)](Math[ye(552)](this[ye(764)]/128)),Je.end(),this.LightBodiesRemoveDuplicatesIndirect(se)}[o(818)](){var se=o,ye=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this.LightBodiesRemoveDuplicatesComputeBingGroup=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(701)]}},{binding:1,resource:{buffer:this[se(604)]}},{binding:2,resource:{buffer:this.lightBodiesBounceTwo_VmBuffer}}]}),this.device[se(917)]({bindGroupLayouts:[ye]}));this.LightBodiesRemoveDuplicatesComputePipeline=this[se(1099)][se(1101)]({layout:ye,compute:{module:this.device[se(720)]({code:ee[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(694)](se){var ye=o;se=se[ye(911)](),se.setBindGroup(0,this[ye(713)]),se.setPipeline(this[ye(1055)]),se.dispatchWorkgroupsIndirect(this[ye(551)],0),se.end()}LightBodiesRemoveDuplicatesIndirectIntend(){var se=o,ye=this[se(1099)][se(648)]({entries:[{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this[se(1078)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:2,resource:{buffer:this[se(1002)]}},{binding:3,resource:{buffer:this[se(551)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ye]}));this[se(1077)]=this.device[se(1101)]({layout:ye,compute:{module:this[se(1099)][se(720)]({code:se(433)}),entryPoint:"main",constants:{lightBodiesBounceCount:this[se(764)]}}})}LightBodiesRemoveDuplicatesIndirect(se){var ye=o;se=se[ye(911)](),se[ye(689)](0,this[ye(1078)]),se[ye(501)](this[ye(1077)]),se.dispatchWorkgroups(1),se[ye(482)]()}MeshRenderIntend(){var se=o;this[se(717)]=this[se(1099)].createBuffer({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]}),this[se(762)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(526)]|GPUBufferUsage.COPY_SRC}),this[se(1099)][se(704)][se(1039)](this[se(762)],0,new Uint32Array([2,0,0,0])),this[se(472)]=this.device[se(656)]({size:[this[se(504)][se(1088)].width,this[se(504)][se(1088)][se(864)],1],format:se(435),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]}),this[se(1102)]=this[se(1099)][se(656)]({size:[this[se(504)].canvas.width,this.context[se(1088)][se(864)],1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(631)]=this[se(1099)][se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(632)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)].canvas[se(864)],1],format:"rgba32uint",usage:GPUTextureUsage[se(448)]|GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]}),this[se(793)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:se(958),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(569)]=this[se(1099)][se(690)]({size:this.context[se(1088)][se(412)]*this[se(504)][se(1088)][se(864)]*4*2,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC});let ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:"read-only-storage"}},{binding:2,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:3,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:4,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:5,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:6,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:8,visibility:GPUShaderStage[se(625)],texture:{sampleType:"float",viewDimension:"2d"}},{binding:9,visibility:GPUShaderStage[se(625)],buffer:{type:"storage"}},{binding:10,visibility:GPUShaderStage[se(625)],buffer:{type:se(742)}},{binding:11,visibility:GPUShaderStage.FRAGMENT,buffer:{type:se(742)}},{binding:12,visibility:GPUShaderStage.FRAGMENT,buffer:{type:se(742)}},{binding:13,visibility:GPUShaderStage[se(539)],buffer:{type:"read-only-storage"}},{binding:14,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}}]}),Je=(this[se(789)]=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(680)]}},{binding:2,resource:{buffer:this[se(666)]}},{binding:3,resource:{buffer:this.meshVmBuffer}},{binding:4,resource:this.samplerNearest},{binding:5,resource:{buffer:this[se(449)]}},{binding:6,resource:this.albedo_Texture[se(1045)]()},{binding:7,resource:this[se(978)].createView()},{binding:8,resource:this[se(777)][se(1045)]()},{binding:9,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:10,resource:{buffer:this.lightBodiesSpaceAdd_VmBuffer}},{binding:11,resource:{buffer:this[se(717)]}},{binding:12,resource:{buffer:this[se(569)]}},{binding:13,resource:{buffer:this[se(580)]}},{binding:14,resource:{buffer:this[se(792)]}}]}),this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage.VERTEX|GPUShaderStage[se(625)],buffer:{type:"read-only-storage"}}]})),Ft=(this.meshRenderBindGroup_renderIndex=this[se(1099)][se(866)]({layout:Je,entries:[{binding:0,resource:{buffer:this[se(688)]}}]}),this[se(1099)].createPipelineLayout({bindGroupLayouts:this[se(1035)]?[ye]:[ye,Je]})),jt=Y[se(1022)];this.multiDrawIndirect?jt=jt[se(926)]("@group(1) @binding(0) var<storage,read> renderIndex: array<u32>;",""):(jt=jt[se(926)]("let ri = vec2<u32>(input.instanceIndex,input.vertexIndex);",se(1009)),jt+=se(1093));var gt=this[se(1099)][se(720)]({code:Z[se(1022)]+jt});this.meshRenderPipeline=this[se(1099)][se(950)]({layout:Ft,vertex:{module:gt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:gt,entryPoint:se(1048),targets:[{format:this[se(1102)][se(980)]},{format:this[se(632)][se(980)]},{format:this[se(793)][se(980)]},{format:this.meshRender_prev_SSP_Texture[se(980)]}],constants:{spaceTotalCount:this[se(1107)],spaceUnit:this[se(598)]}},primitive:{topology:"triangle-list",frontFace:se(905),cullMode:se(590)},depthStencil:{format:this[se(472)][se(980)],depthCompare:se(753),depthWriteEnabled:!0}}),this[se(974)]={colorAttachments:[{view:this[se(1102)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this[se(632)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this.meshRenderInstancePtrTexture[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this[se(631)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}],depthStencilAttachment:{view:this.meshRenderDepthTexture[se(1045)](),depthClearValue:0,depthLoadOp:"clear",depthStoreOp:se(600),depthReadOnly:!1},timestampWrites:{querySet:this[se(883)],beginningOfPassWriteIndex:4,endOfPassWriteIndex:5}},this[se(1035)]||((gt=this[se(1099)][se(968)]({colorFormats:[this.meshRenderPositionTexture.format,this[se(632)][se(980)],this[se(793)][se(980)],this[se(631)][se(980)]],depthStencilFormat:this[se(472)][se(980)]})).setBindGroup(0,this[se(789)]),gt[se(501)](this[se(1087)]),gt[se(689)](1,this[se(481)]),gt[se(1044)](this[se(812)],0),this[se(874)]=gt.finish())}[o(939)](se){var ye=o;se[ye(913)](this.meshRenderAtomic_InitData_VmBuffer,0,this[ye(717)],0,16),se[ye(913)](this[ye(1056)],0,this[ye(907)],0,this[ye(907)].size),se=se[ye(675)](this[ye(974)]),this[ye(1035)]?(se.setBindGroup(0,this[ye(789)]),se[ye(501)](this[ye(1087)]),se[ye(1035)](this[ye(688)],0,393216,this.indirect_render_VmBuffer,0)):se[ye(834)]([this[ye(874)]]),se[ye(482)]()}[o(411)](){var se=o;this[se(500)]=this[se(1099)][se(656)]({size:[this[se(540)],this[se(540)],1],format:se(958),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.STORAGE_BINDING}),this.renderShadowDepthTexture=this[se(1099)].createTexture({size:[this[se(540)],this[se(540)],1],usage:GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)],format:se(435)}),this[se(707)]=this.renderShadowDepthTexture[se(1045)]({dimension:se(429),baseArrayLayer:0,arrayLayerCount:1});let ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:se(629)}},{binding:3,visibility:GPUShaderStage.VERTEX,buffer:{type:se(629)}},{binding:4,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:5,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}}]}),Je=(this[se(414)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(873)]}},{binding:2,resource:{buffer:this[se(680)]}},{binding:3,resource:{buffer:this.instanceVmBuffer}},{binding:4,resource:{buffer:this[se(1092)]}},{binding:5,resource:{buffer:this[se(580)]}}]}),this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(539)]|GPUShaderStage.FRAGMENT,buffer:{type:se(629)}}]})),Ft=(this.renderShadowBindGroup_renderIndex=this[se(1099)][se(866)]({layout:Je,entries:[{binding:0,resource:{buffer:this[se(688)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:this[se(1035)]?[ye]:[ye,Je]})),jt=K[se(1022)];this[se(1035)]?jt=jt[se(926)](se(904),""):(jt=jt[se(926)](se(929),se(1009)),jt+=se(1093));var gt=this[se(1099)][se(720)]({code:Z[se(1022)]+jt+z.code});this[se(1104)]=this[se(1099)].createRenderPipeline({label:se(1104),layout:Ft,vertex:{module:gt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:gt,entryPoint:"frag_main",targets:[{format:this[se(500)][se(980)]}],constants:{}},primitive:{topology:se(1062),frontFace:se(905),cullMode:se(590)},depthStencil:{format:this[se(559)][se(980)],depthCompare:se(753),depthWriteEnabled:!0}}),this.renderShadowRenderPassDescriptor={colorAttachments:[{view:this.renderShadowInstancePtrTexture.createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}],depthStencilAttachment:{view:this.renderShadowDepthView1,depthClearValue:0,depthLoadOp:se(971),depthStoreOp:"store",depthReadOnly:!1}},this[se(1035)]||((gt=this[se(1099)][se(968)]({colorFormats:[this[se(500)][se(980)]],depthStencilFormat:this[se(559)][se(980)]}))[se(689)](0,this[se(414)]),gt[se(501)](this.renderShadowPipeline),gt[se(689)](1,this.renderShadowBindGroup_renderIndex),gt[se(1044)](this[se(812)],0),this[se(496)]=gt[se(1091)]())}[o(537)](se){var ye=o;this.renderShadowRenderPassDescriptor[ye(1052)][ye(703)]=this[ye(707)],se=se[ye(675)](this[ye(1049)]),this[ye(1035)]?(se.setBindGroup(0,this[ye(414)]),se.setPipeline(this.renderShadowPipeline),se[ye(1035)](this[ye(688)],0,393216,this[ye(812)],0)):se[ye(834)]([this[ye(496)]]),se[ye(482)]()}[o(480)](){var se=o;this.dynamicSpaceIndirect_VmBuffer=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(526)]|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(596)],0,new Uint32Array([1,1,1,0]));var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ye=(this[se(691)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(907)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this.device[se(917)]({bindGroupLayouts:[ye]}));this[se(1007)]=this.device.createComputePipeline({layout:ye,compute:{module:this[se(1099)][se(720)]({code:J[se(1022)]}),entryPoint:se(817),constants:{spaceTotalCount:this[se(1107)],lightBodiesSize:this.lightBodiesSize}}})}DynamicSpace(se){var ye=o;se[ye(913)](this[ye(907)],4,this[ye(596)],0,4),se=se[ye(911)](),se[ye(689)](0,this.dynamicSpaceComputeBingGroup),se[ye(501)](this.dynamicSpaceComputePipeline),se[ye(538)](this.dynamicSpaceIndirect_VmBuffer,0),se[ye(482)]()}[o(1106)](){var se=o;this[se(620)]=this[se(1099)][se(690)]({size:4*this[se(944)].length,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this.device[se(704)][se(1039)](this[se(620)],0,this.ssrReflections_Uniform_DataView);var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(631)][se(980)],access:se(633)}},{binding:3,visibility:GPUShaderStage[se(528)],storageTexture:{format:this.meshRender_packData_Texture[se(980)],access:"read-only"}},{binding:4,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(649)}},{binding:5,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}},{binding:6,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:8,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(571)][se(980)],access:"write-only"}}]});this[se(961)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(620)]}},{binding:2,resource:this[se(631)][se(1045)]()},{binding:3,resource:this[se(632)].createView()},{binding:4,resource:this[se(472)][se(1045)]()},{binding:5,resource:this[se(636)]},{binding:6,resource:this.finalColor_Texture[se(1045)]()},{binding:7,resource:this[se(1105)].createView()},{binding:8,resource:this.ssr_color_accumulated_Texture[se(1045)]()}]}),this[se(1095)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this.device.createShaderModule({code:oe[se(1022)]+Te.code}),entryPoint:se(817),constants:{}}})}[o(428)](se){var ye=o;this[ye(944)][ye(895)](this[ye(1031)][ye(1008)]),this[ye(944)][ye(895)](this.fig[ye(838)],16),this[ye(944)][ye(895)](this[ye(1031)][ye(640)],32),this[ye(944)][ye(895)](this[ye(1031)][ye(1024)],48),this.ssrReflections_Uniform_DataView[64]=this.fig[ye(509)][ye(1108)],this.ssrReflections_Uniform_DataView[65]=this[ye(1031)].cameraParameter.far,this[ye(944)][66]=5,this[ye(944)][67]=2e3,this.ssrReflections_Uniform_DataView[68]=.5,this[ye(944)][69]=.2,this[ye(944)][70]=.95,this.ssrReflections_Uniform_DataView[71]=20,this[ye(944)][72]=1,this.ssrReflections_Uniform_DataView[73]=.9,this[ye(697)][74]=4294967295*Math.random(),this[ye(697)][75]=4294967295*Math[ye(1080)](),this.ssrReflections_Uniform_DataViewU32[76]=4294967295*Math[ye(1080)](),this[ye(1099)].queue[ye(1039)](this.ssrReflections_Uniform_VmBuffer,0,this.ssrReflections_Uniform_DataView);var Je=se[ye(911)]({timestampWrites:{querySet:this[ye(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}});Je[ye(689)](0,this[ye(961)]),Je[ye(501)](this.ssrReflectionsComputePipeline),Je.dispatchWorkgroups(this[ye(752)],this[ye(899)]),Je.end(),se[ye(603)]({texture:this.ssr_color_accumulated_Texture},{texture:this.ssr_color_Texture},{width:this[ye(1105)][ye(412)],height:this.ssr_color_Texture[ye(864)]})}ImageBlurIntend(){var se=o;this[se(891)]=this[se(1099)].createComputePipeline({layout:se(772),compute:{module:this.device[se(720)]({code:he.code})}});var ye,Je,Ft=this[se(1099)][se(656)]({size:{width:this[se(504)].canvas.width,height:this.context[se(1088)].height},format:this[se(1019)],usage:GPUTextureUsage.COPY_DST|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]}),jt=Ft,gt=(ye=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage[se(844)]}),new Uint32Array(ye.getMappedRange())[0]=0,ye[se(484)](),Je=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage.UNIFORM}),new Uint32Array(Je[se(827)]())[0]=1,Je[se(484)](),this[se(1099)].createBuffer({size:8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage[se(844)]}));this[se(1099)][se(704)][se(1039)](gt,0,new Uint32Array([this[se(630)],this[se(881)]])),this.blur_computeConstants_ComputeBingGroup=this[se(1099)][se(866)]({layout:this[se(891)][se(763)](0),entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:{buffer:gt}}]}),this[se(591)]=this.device.createBindGroup({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:jt[se(1045)]()},{binding:2,resource:Ft[se(1045)]()},{binding:3,resource:{buffer:ye}}]}),this[se(418)]=this[se(1099)][se(866)]({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:Ft[se(1045)]()},{binding:2,resource:jt.createView()},{binding:3,resource:{buffer:Je}}]})}[o(529)](se){var ye=o;if(0<this[ye(630)]){var Je=se[ye(911)]();Je.setPipeline(this.blurComputePipeline),Je[ye(689)](0,this[ye(1027)]);for(let Ft=0;Ft<this[ye(630)];++Ft)Je[ye(689)](1,this[ye(591)]),Je[ye(624)](Math[ye(552)](this[ye(504)][ye(1088)][ye(412)]/this.blur_blockDim),Math[ye(552)](this[ye(504)].canvas[ye(864)]/this[ye(533)][1])),Je[ye(689)](1,this[ye(418)]),Je[ye(624)](Math[ye(552)](this[ye(504)][ye(1088)][ye(412)]/this.blur_blockDim),Math[ye(552)](this[ye(504)][ye(1088)].height/this[ye(533)][1]));Je[ye(482)]()}}[o(1032)](){var se=o;this[se(982)]=this[se(1099)][se(690)]({size:4*this[se(518)][se(800)],usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]});var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.FRAGMENT,sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage.FRAGMENT,sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:4,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:5,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(445),viewDimension:"2d"}},{binding:6,visibility:GPUShaderStage[se(625)],texture:{sampleType:"uint",viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}}]}),Je=(this[se(851)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this.samplerLinear},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(502)][se(1045)]()},{binding:4,resource:this[se(966)][se(1045)]()},{binding:5,resource:this[se(632)].createView()},{binding:6,resource:this[se(793)][se(1045)]()},{binding:7,resource:{buffer:this[se(982)]}}]}),this[se(1099)].createShaderModule({code:me.code}));this[se(841)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this.presentationFormat}]},primitive:{topology:se(1062),frontFace:se(905),cullMode:se(590)}}),this[se(791)]={colorAttachments:[{view:this[se(504)][se(696)]()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}[o(686)](se){var ye=o;!this[ye(1031)][ye(835)][ye(953)][ye(450)][ye(995)]||this[ye(1031)][ye(835)][ye(953)].mouse.downLeftX==this.fig[ye(835)][ye(953)].mouse[ye(507)]&&this.fig[ye(835)].status[ye(450)][ye(679)]==this[ye(1031)][ye(835)][ye(953)][ye(450)].clientY?this[ye(518)][ye(895)]([0,0,0,0]):this[ye(518)][ye(895)]([(this[ye(1031)][ye(835)][ye(953)][ye(450)][ye(507)]-this[ye(1031)][ye(835)][ye(953)][ye(450)][ye(715)])/this.finalColor_Texture[ye(412)],(this[ye(1031)][ye(835)].status[ye(450)][ye(783)]-this[ye(1031)][ye(835)][ye(953)][ye(450)][ye(679)])/this[ye(502)][ye(864)],1]),this[ye(1099)][ye(704)][ye(1039)](this[ye(982)],0,this[ye(518)]),this[ye(791)][ye(566)][0][ye(703)]=this.context[ye(696)]()[ye(1045)](),se=se[ye(675)](this[ye(791)]),se.setPipeline(this.finalDisplayPipeline),se[ye(689)](0,this[ye(851)]),se[ye(729)](6),se[ye(482)]()}[o(822)](){var se=o;this.edgeStrength_finalColor_Texture=this[se(1099)].createTexture({dimension:"2d",size:[this.finalColor_Texture[se(412)],this[se(502)][se(864)],1],format:this.presentationFormat,usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]}),this.edgeStrength_Uniform_VmBuffer=this[se(1099)][se(690)]({size:4*this.edgeStrength_Uniform_DataView[se(800)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]});var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(966)][se(980)],access:se(714)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(632)][se(980)],access:se(633)}}]});this.edgeStrengthComputeBingGroup=this[se(1099)].createBindGroup({layout:ye,entries:[{binding:0,resource:{buffer:this[se(426)]}},{binding:1,resource:this.edgeStrength_finalColor_Texture.createView()},{binding:2,resource:this[se(632)][se(1045)]()}]}),this[se(862)]=this[se(1099)][se(1101)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this[se(1099)].createShaderModule({code:Z.code+Ue[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(444)](se){var ye=o;se=se[ye(911)](),se[ye(501)](this[ye(862)]),se[ye(689)](0,this[ye(996)]),se.dispatchWorkgroups(this[ye(752)],this[ye(899)]),se[ye(482)]()}[o(1001)](){var se=o;this[se(876)]=this[se(1099)][se(656)]({dimension:"2d",size:[3600,1800,50],format:se(833),usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(467)]}),fetch(se(936))[se(442)](Ft=>{var jt=se;Ft[jt(871)]()[jt(442)](gt=>{var nt=jt;gt=new Float32Array(gt),this[nt(1099)][nt(704)].writeTexture({texture:this.volumeRender_3dData_Texture},gt,{bytesPerRow:7200,rowsPerImage:1800},[3600,1800,50])})});var ye=this[se(1099)][se(741)]({magFilter:se(865),minFilter:se(865),mipmapFilter:"linear",maxAnisotropy:1}),Je=(this[se(856)]=this[se(1099)][se(690)]({size:4*this[se(543)][se(800)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(502)][se(980)],access:se(714)}},{binding:3,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:se(429)}},{binding:4,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}}]}));this[se(582)]=this[se(1099)][se(866)]({layout:Je,entries:[{binding:0,resource:{buffer:this.volumeRender_Uniform_VmBuffer}},{binding:1,resource:{buffer:this[se(1068)]}},{binding:2,resource:this[se(502)][se(1045)]()},{binding:3,resource:this[se(876)].createView()},{binding:4,resource:ye}]}),this[se(615)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[Je]}),compute:{module:this[se(1099)].createShaderModule({code:Ae[se(1022)]+Z[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(440)](se){var ye=o;this[ye(543)][ye(895)](this[ye(1031)][ye(640)]),this.volumeRender_Uniform_DataView[ye(895)](this[ye(1031)][ye(587)],16),this[ye(1099)].queue[ye(1039)](this[ye(856)],0,this.volumeRender_Uniform_DataView),se=se[ye(911)]({timestampWrites:{querySet:this[ye(883)],beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se.setPipeline(this[ye(615)]),se[ye(689)](0,this.volumeRenderComputeBingGroup),se[ye(624)](this.readMesh_dispatchWorkgroupsX,this[ye(899)]),se[ye(482)]()}[o(889)](){var se=o;this.streamRender_Uniform_DataView[se(895)]([3600,1800,50],38),this[se(945)]=this[se(1099)][se(690)]({size:1296e6,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]}),fetch(se(1073)).then(Je=>{var Ft=se;Je[Ft(871)]()[Ft(442)](jt=>{var gt=Ft;this[gt(945)].size,jt[gt(829)],this[gt(1099)][gt(704)][gt(1039)](this[gt(945)],0,jt)})}),this.streamRender_Uniform_VmBuffer=this[se(1099)].createBuffer({size:4*this[se(667)].length,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(946)]=this.device[se(690)]({size:this[se(793)].width*this[se(793)][se(864)]*4*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]}),this[se(780)]=this[se(1099)].createBuffer({size:this[se(793)].width*this[se(793)][se(864)]*4*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]});var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:"read-only-storage"}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:5,visibility:GPUShaderStage[se(528)],storageTexture:{format:this.finalColor_Texture[se(980)],access:se(714)}}]});this[se(494)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(843)]}},{binding:1,resource:{buffer:this.scene_VmBuffer}},{binding:2,resource:{buffer:this.streamRender_3dData_VmBuffer}},{binding:3,resource:{buffer:this[se(946)]}},{binding:4,resource:{buffer:this[se(780)]}},{binding:5,resource:this[se(502)].createView()}]}),this[se(570)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this[se(1099)][se(720)]({code:Fe.code+Z.code+oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(949)](se){var ye=o;this.streamRender_Uniform_DataView.set(this.fig.projectToPixelMatrix),this[ye(667)][ye(895)](this[ye(1031)].viewMatrix,16),this[ye(667)][ye(895)]([.4,5,.95],32),this[ye(719)][ye(895)]([4294967295*Math.random(),4294967295*Math[ye(1080)](),4294967295*Math[ye(1080)]()],35),this[ye(1099)][ye(704)].writeBuffer(this[ye(843)],0,this.streamRender_Uniform_DataView),se=se[ye(911)]({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ye(501)](this[ye(570)]),se[ye(689)](0,this[ye(494)]),se[ye(624)](this[ye(752)],this[ye(899)]),se[ye(482)]()}[o(1010)](){var se=o,ye=this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:"depth",viewDimension:se(429)}}]}),Je=(this[se(957)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(707)]}]}),this[se(1099)][se(720)]({code:ue[se(1022)]})),ye=(this[se(852)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:se(1062),frontFace:se(905),cullMode:"back"}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),Je=(this[se(727)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this.samplerNearest},{binding:2,resource:this.finalColor_Texture[se(1045)]()}]}),this[se(1099)][se(720)]({code:ce[se(1022)]})),ye=(this[se(916)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this.presentationFormat}]},primitive:{topology:se(1062),frontFace:"ccw",cullMode:"back"}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:"non-filtering"}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),Je=(this[se(830)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(486)][se(1017)].createView()}]}),this[se(1099)].createShaderModule({code:de[se(1022)]})),ye=(this[se(641)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:"frag_main",targets:[{format:this[se(1019)]}]},primitive:{topology:"triangle-list",frontFace:se(905),cullMode:se(590)}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),Je=(this.renderDebugTest4BindGroup=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:this.samplerLinear},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(869)].alpha_color_Texture.createView()}]}),this[se(1099)][se(720)]({code:fe[se(1022)]}));this.renderDebugTest4Pipeline=this[se(1099)].createRenderPipeline({layout:this.device[se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:"triangle-list",frontFace:"ccw",cullMode:se(590)}}),this[se(430)]={colorAttachments:[{view:this.context1[se(696)]().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}RenderDebugTest(se){var ye=o;this.renderDebugTestRenderPassDescriptor[ye(566)][0].view=this.context1[ye(696)]()[ye(1045)]();var Je=se[ye(675)](this[ye(430)]),Je=(Je[ye(501)](this[ye(852)]),Je[ye(689)](0,this.renderDebugTest1BindGroup),Je[ye(729)](6),Je[ye(482)](),this[ye(430)][ye(566)][0][ye(703)]=this[ye(733)][ye(696)]().createView(),se.beginRenderPass(this[ye(430)])),Je=(Je[ye(501)](this[ye(916)]),Je.setBindGroup(0,this[ye(727)]),Je[ye(729)](6),Je[ye(482)](),this[ye(430)][ye(566)][0][ye(703)]=this.context3[ye(696)]()[ye(1045)](),se[ye(675)](this.renderDebugTestRenderPassDescriptor)),Je=(Je[ye(501)](this[ye(641)]),Je.setBindGroup(0,this.renderDebugTest3BindGroup),Je.draw(6),Je[ye(482)](),this[ye(430)].colorAttachments[0][ye(703)]=this[ye(657)][ye(696)]()[ye(1045)](),se.beginRenderPass(this[ye(430)]));Je[ye(501)](this[ye(989)]),Je[ye(689)](0,this.renderDebugTest4BindGroup),Je[ye(729)](6),Je.end()}RenderToCanvasIntend(){var se=o;this[se(659)]=this[se(1099)][se(690)]({size:12,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]});var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:"non-filtering"}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:3,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:4,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:5,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}}]}),ye=(this[se(928)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this.finalColor_Texture[se(1045)]()},{binding:3,resource:this[se(1102)][se(1045)]()},{binding:4,resource:{buffer:this[se(659)]}},{binding:5,resource:{buffer:this[se(1068)]}}]}),this.device[se(917)]({bindGroupLayouts:[ye]})),Je=this[se(1099)][se(720)]({code:Z[se(1022)]+it.code});this[se(805)]=this[se(1099)].createRenderPipeline({label:se(781),layout:ye,vertex:{module:Je,entryPoint:"vert_main",buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this.presentationFormat},{format:this[se(1019)]}],constants:{canvasSizeWidth:this[se(472)][se(412)],canvasSizeHeight:this[se(472)][se(864)]}},primitive:{topology:se(1062),frontFace:"ccw",cullMode:"back"}}),this[se(660)]={label:se(1098),colorAttachments:[{view:this[se(504)].getCurrentTexture()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:"store"},{view:this[se(506)].getCurrentTexture()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:"store"}]}}RenderToCanvas(se){var ye=o;this[ye(1004)][0]=this[ye(1031)][ye(672)][ye(859)].frameState.useLogDepth?1:0,this[ye(1004)][1]=this[ye(1031)][ye(672)].scene.context[ye(420)][ye(1003)].x,this[ye(1004)][2]=this.fig[ye(672)][ye(859)][ye(504)][ye(420)][ye(794)],this[ye(1099)][ye(704)][ye(1039)](this[ye(659)],0,this[ye(1004)]),this[ye(660)][ye(566)][0][ye(703)]=this[ye(504)][ye(696)]()[ye(1045)](),this.renderToCanvasRenderPassDescriptor.colorAttachments[1].view=this[ye(506)][ye(696)]()[ye(1045)](),se=se.beginRenderPass(this[ye(660)]),se.setPipeline(this.renderToCanvasPipeline),se[ye(689)](0,this[ye(928)]),se.draw(6),se[ye(482)]()}[o(451)](){var se=o;this[se(888)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this.voxelRender_Indirect_VmBuffer=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(951)],0,new Uint32Array([this.spaceTotalCount/10-200,1,100,0]));var Je=this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)]|GPUShaderStage[se(539)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(625)]|GPUShaderStage[se(539)],buffer:{type:"uniform"}},{binding:2,visibility:GPUShaderStage[se(625)]|GPUShaderStage.VERTEX,buffer:{type:se(629)}}]}),Je=(this[se(684)]=this.device.createBindGroup({layout:Je,entries:[{binding:0,resource:{buffer:this.voxelRender_Uniform_VmBuffer}},{binding:1,resource:{buffer:this.scene_VmBuffer}},{binding:2,resource:{buffer:this[se(701)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[Je]})),ye=this[se(1099)][se(720)]({code:Z[se(1022)]+we[se(1022)]}),Je={layout:Je,vertex:{module:ye,entryPoint:"vert_main",buffers:[],constants:{spaceUnit:this[se(598)],lightBodiesSize:this[se(795)]}},fragment:{module:ye,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:"point-list",frontFace:se(905),cullMode:se(863)}};this[se(588)]=this[se(1099)][se(950)](Je),this[se(1051)]={colorAttachments:[{view:this[se(504)][se(696)]().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}[o(814)](se){var ye=o;this[ye(1099)][ye(704)][ye(1039)](this[ye(888)],0,this[ye(681)]),this[ye(1051)].colorAttachments[0].view=this.context[ye(696)]()[ye(1045)](),se=se.beginRenderPass(this[ye(1051)]),se.setPipeline(this.voxelRenderPipeline),se.setBindGroup(0,this[ye(684)]),se[ye(1044)](this[ye(951)],0),se[ye(482)]()}[o(806)](se,ye){return new Promise((Je,Ft)=>{var jt=Zh,gt;this[jt(983)]?(this[jt(983)]=!1,(gt=this.device[jt(981)]())[jt(809)]({texture:this[jt(793)],mipLevel:0,origin:{x:se,y:ye},aspect:jt(768)},{buffer:this[jt(497)],offset:0,bytesPerRow:256*Math[jt(552)](4*this[jt(793)][jt(412)]/256),rowsPerImage:1},{width:1,height:1}),this.device.queue.submit([gt[jt(1091)]()]),this[jt(497)][jt(705)](GPUMapMode[jt(470)]).then(()=>{var nt=jt,Ze=this[nt(497)][nt(827)](0,4),Ze=new Uint32Array(Ze)[0];this[nt(497)].unmap(),this.readPickId_noLocking=!0,Je(Ze)})):Ft()})}[o(669)](se,ye){let Je=(Ft,jt)=>{var gt=Zh,nt=this[gt(1099)][gt(981)]();nt[gt(809)]({texture:this[gt(1102)],mipLevel:0,origin:{x:se,y:ye},aspect:gt(768)},{buffer:this.readPickPosition_VmBuffer,offset:0,bytesPerRow:256*Math[gt(552)](4*this[gt(1102)][gt(412)]*4/256),rowsPerImage:1},{width:1,height:1}),this.device[gt(704)][gt(635)]([nt[gt(1091)]()]),this.readPickPosition_VmBuffer[gt(705)](GPUMapMode[gt(470)])[gt(442)](()=>{var Ze=gt,tt=this[Ze(774)][Ze(827)](0,16),tt=Array[Ze(1050)](new Float32Array(tt));this[Ze(774)][Ze(484)](),this.readPickPosition_noLocking=!0,tt[3]!=0&&F[Ze(987)](tt,this[Ze(1031)][Ze(910)],this[Ze(979)]),Ft(this.lastPickPositionValue)})};return new Promise((Ft,jt)=>{var gt=Zh;this[gt(837)]?(this[gt(837)]=!1,Je(Ft)):setTimeout(()=>{Je(Ft)},10)})}[o(771)](){var se=o,ye;this[se(872)]&&this.fig.directData_Heartbeat&&(this[se(872)]=!1,this[se(1031)][se(606)]=!1,(ye=this.device[se(981)]())[se(913)](this[se(1056)],0,this[se(788)],0,4),this[se(1117)](ye),ye[se(913)](this.instancesArea_atomicData_VmBuffer,0,this[se(556)],0,4),ye[se(913)](this[se(985)],0,this[se(556)],4,this[se(985)][se(605)]),this.device.queue[se(635)]([ye[se(1091)]()]),this.pendingRequest_mesh_read_VmBuffer[se(705)](GPUMapMode.READ)[se(442)](()=>{var Je=se,Ft=this[Je(556)][Je(827)](0,this[Je(556)].size)[Je(712)](0);this.fig[Je(1067)].postMessage({msgType:Je(1071),buf:Ft},[Ft]),this[Je(556)].unmap(),this[Je(872)]=!0,setTimeout(()=>{this.need_read_renderMaterial=!0},500)}))}[o(756)](){var se=o,ye=this[se(1099)][se(981)]();ye.copyBufferToBuffer(this.zeroVmBuffer,0,this.meshRender_transparentColorData_VmBuffer,0,this[se(569)][se(605)]),this[se(1099)][se(704)][se(635)]([ye[se(1091)]()])}[o(991)](){var se=o;this[se(771)]();var ye=this[se(1099)][se(981)]();this[se(462)](ye),this[se(939)](ye),this[se(537)](ye),this[se(1031)].gi&&this[se(824)](ye),ye.copyBufferToBuffer(this[se(1056)],0,this[se(604)],0,this[se(604)][se(605)]),this[se(725)](ye),this[se(965)]&&this[se(1031)].kj&&ye[se(913)](this[se(946)],0,this[se(459)],0,128),this[se(1e3)]&&this[se(1031)][se(642)]&&ye[se(913)](this.lightInfo_VmBuffer,32,this.readTemp_VmBuffer2,0,64),this[se(808)]&&this[se(954)]&&ye[se(913)](this[se(920)],0,this.renderMaterial_read_VmBuffer,0,this[se(920)][se(605)]),this[se(486)].Render(ye),this[se(869)][se(991)](ye),globalThis[se(589)]&&this[se(973)](ye),this.fig[se(672)]?this[se(465)](ye):this[se(686)](ye),this[se(1031)].ksh&&this[se(814)](ye),this[se(710)]&&this.fig.xn&&(ye[se(803)](this[se(883)],0,10,this[se(692)],0),ye.copyBufferToBuffer(this[se(692)],0,this.timestampQueryResultBuffer,0,this.timestampQueryResultBuffer.size)),this[se(1099)][se(704)][se(635)]([ye[se(1091)]()]),this[se(808)]&&this.need_read_renderMaterial&&(this[se(808)]=!1,this[se(954)]=!1,this[se(1066)].mapAsync(GPUMapMode[se(470)])[se(442)](()=>{var Je=se,Ft=this[Je(1066)][Je(827)](0,this[Je(920)][Je(605)]).slice(0);this[Je(1066)][Je(484)](),this[Je(1031)][Je(1067)][Je(564)]({msgType:Je(1115),buf:Ft},[Ft]),this.allow_read_renderMaterial=!0})),this[se(965)]&&this[se(1031)].kj&&(this[se(1031)].kj=!1,this[se(965)]=!1,this.readTemp_VmBuffer[se(705)](GPUMapMode[se(470)])[se(442)](()=>{var Je=se,Ft=this[Je(459)][Je(827)](0,128),Ft=new Float32Array(Ft);console[Je(826)](Ft),this[Je(459)][Je(484)](),this[Je(965)]=!0})),this[se(1e3)]&&this[se(1031)][se(642)]&&(this.readTemp_noLocking2=!1,this[se(959)].mapAsync(GPUMapMode[se(470)]).then(()=>{var Je=se,Ft=this[Je(959)][Je(827)](0,10485760),Ft=(new Uint32Array(Ft),new Float32Array(Ft));console[Je(826)](Ft),this.readTemp_VmBuffer2[Je(484)](),this[Je(1e3)]=!0})),this[se(710)]&&this[se(1031)].xn&&(this[se(710)]=!1,this[se(627)][se(705)](GPUMapMode[se(470)])[se(442)](()=>{var Je=se,Ft=new BigUint64Array(this[Je(627)][Je(827)]());console[Je(826)](Je(421),(Number(Ft[1]-Ft[0])/1e3/1e3)[Je(942)](2),Je(646),(Number(Ft[3]-Ft[2])/1e3/1e3)[Je(942)](2),"    MeshRender",(Number(Ft[5]-Ft[4])/1e3/1e3)[Je(942)](2),Je(990),(Number(Ft[7]-Ft[6])/1e3/1e3)[Je(942)](2),Je(1065),(Number(Ft[9]-Ft[8])/1e3/1e3)[Je(942)](2)),this[Je(627)][Je(484)](),this[Je(710)]=!0}))}}class Dt{get[o(1046)](){var se=o;return this[se(845)]}set[o(1046)](se){var ye=o;this[ye(845)]=F[ye(760)](se)}get[o(723)](){return this._target}set[o(723)](se){var ye=o;this[ye(562)]=F[ye(760)](se)}get[o(796)](){var se=o,ye=F[se(665)](0,0,-1);return F[se(802)](ye,this[se(1116)])}constructor(se,ye){var Je=o;if(this[Je(845)]=F[Je(807)](0,0,0),this[Je(562)]=F[Je(807)](1,1,1),this[Je(1116)]=L[Je(626)](),this.worldMatrix=R[Je(626)](),this[Je(948)]=.2,this.zoomSpeed=3,this[Je(476)]=.1,this[Je(953)]={keyboard:{forward:!1,backward:!1,left:!1,right:!1,up:!1,down:!1,leftRoll:!1,rightRoll:!1,leftHeading:!1,rightHeading:!1,upPitch:!1,downPitch:!1,controlLeft:!1,shiftLeft:!1,speedUp:!1,speedDown:!1},mouse:{movementX:0,movementY:0,scroll:0,left:!1,right:!1,wheel:!1,button:0,downLeftX:0,downLeftY:0,upLeftX:0,upLeftY:0,downRightX:0,downRightY:0,upRightX:0,upRightY:0,clientX:0,clientY:0},downLeft_position:F[Je(807)](),upLeft_position:F[Je(807)]()},se){let Ft=(gt,nt)=>{var Ze=Je;switch(gt[Ze(1022)]){case"KeyW":this.status[Ze(521)][Ze(848)]=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(816):this[Ze(953)].keyboard[Ze(1057)]=nt,gt[Ze(1096)](),gt.stopPropagation();break;case Ze(1090):this[Ze(953)][Ze(521)].left=nt,gt[Ze(1096)](),gt.stopPropagation();break;case"KeyD":this[Ze(953)][Ze(521)][Ze(1034)]=nt,gt.preventDefault(),gt[Ze(517)]();break;case Ze(755):this[Ze(953)][Ze(521)].up=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(855):this.status[Ze(521)].down=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(901):this[Ze(953)][Ze(521)][Ze(1058)]=nt,gt.preventDefault(),gt.stopPropagation();break;case"KeyO":this[Ze(953)][Ze(521)][Ze(693)]=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(446):case Ze(1023):this[Ze(953)][Ze(521)][Ze(427)]=nt,gt.preventDefault(),gt[Ze(517)]();break;case"KeyK":case Ze(594):this[Ze(953)][Ze(521)][Ze(1061)]=nt,gt[Ze(1096)](),gt.stopPropagation();break;case Ze(1086):case Ze(532):this[Ze(953)][Ze(521)][Ze(773)]=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(434):case Ze(519):this[Ze(953)][Ze(521)][Ze(861)]=nt,gt.preventDefault(),gt.stopPropagation();break;case"ControlLeft":this[Ze(953)].keyboard[Ze(511)]=nt;break;case Ze(970):this.status[Ze(521)][Ze(478)]=nt;break;case"KeyC":this[Ze(953)][Ze(521)][Ze(651)]=nt;break;case Ze(464):this.status.keyboard[Ze(1030)]=nt}},jt=(window[Je(801)](Je(499),gt=>Ft(gt,!0)),window[Je(801)]("keyup",gt=>Ft(gt,!1)),se[Je(801)]("contextmenu",function(gt){var nt=Je;gt[nt(1096)]()}),(gt,nt)=>{var Ze=Je;switch(this.status[Ze(450)][Ze(988)]=gt[Ze(988)],gt.button){case 0:(this[Ze(953)][Ze(450)][Ze(995)]=nt)?(this[Ze(953)][Ze(450)][Ze(715)]=gt.clientX,this[Ze(953)][Ze(450)][Ze(679)]=gt.clientY,ye[Ze(577)](gt[Ze(507)],gt[Ze(783)])[Ze(442)](tt=>{var Ye=Ze,Et;this[Ye(953)][Ye(416)]=F[Ye(807)](tt[0],tt[1],tt[2]),tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&this.status.keyboard[Ye(511)]&&(tt=this[Ye(953)][Ye(416)],Et=F.subtract(this.position,tt),F.normalize(Et,Et),Et=F.add(tt,F[Ye(708)](Et,20)),this.setTargetAndPosition(tt,Et))})):(this.status[Ze(450)][Ze(424)]=gt.clientX,this.status[Ze(450)][Ze(880)]=gt.clientY,ye[Ze(577)](gt[Ze(507)],gt.clientY).then(tt=>{var Ye=Ze;this[Ye(953)][Ye(436)]=F[Ye(807)](tt[0],tt[1],tt[2]),this[Ye(953)].downLeft_position[0]!=0&&this[Ye(953)][Ye(416)][1]!=0&&this[Ye(953)][Ye(416)][2]!=0&&this[Ye(953)].upLeft_position[0]!=0&&this[Ye(953)][Ye(436)][1]!=0&&this[Ye(953)].upLeft_position[2]!=0&&(F[Ye(601)](this[Ye(845)],F[Ye(601)](this[Ye(953)].upLeft_position,this[Ye(953)].downLeft_position),this[Ye(845)]),this.computeMatrix())}));break;case 1:this[Ze(953)][Ze(450)][Ze(460)]=nt;break;case 2:(this.status[Ze(450)].right=nt)?(this[Ze(953)][Ze(450)].downRightX=gt.clientX,this[Ze(953)][Ze(450)][Ze(524)]=gt[Ze(783)],ye[Ze(577)](gt[Ze(507)],gt[Ze(783)])[Ze(442)](tt=>{var Ye=Ze;tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&(this[Ye(723)]=F.create(tt[0],tt[1],tt[2]))})):(this[Ze(953)][Ze(450)].upRightX=gt[Ze(507)],this[Ze(953)][Ze(450)][Ze(798)]=gt[Ze(783)])}});se[Je(887)][Je(595)]=Je(536),se[Je(801)](Je(1006),gt=>jt(gt,!0)),se.addEventListener(Je(994),gt=>jt(gt,!1)),se[Je(801)](Je(972),gt=>{var nt=Je;this[nt(953)][nt(450)][nt(507)]=gt.clientX,this[nt(953)].mouse[nt(783)]=gt[nt(783)],(this[nt(953)][nt(450)][nt(995)]||this[nt(953)][nt(450)].right)&&(this[nt(953)][nt(450)][nt(884)]-=gt[nt(884)],this[nt(953)][nt(450)][nt(757)]-=gt[nt(757)])}),se[Je(801)](Je(460),gt=>{var nt=Je;this[nt(953)][nt(450)].scroll+=Math[nt(469)](gt.deltaY),gt[nt(1096)](),gt[nt(517)]()},{passive:!1})}}[o(1079)](jt,gt,Je=F.create(0,1,0)){var Ft=o;F[Ft(760)](jt,this[Ft(562)]),F[Ft(760)](gt,this[Ft(845)]);var gt=F.normalize(F[Ft(601)](gt,jt)),jt=F[Ft(665)](0,0,1),jt=(this[Ft(1116)]=L.rotationTo(jt,gt),F[Ft(802)](F[Ft(665)](0,1,0),this[Ft(1116)])),gt=F[Ft(542)](jt,Je);1e-7<F.length(gt)&&(jt=Math[Ft(785)](F.dot(jt,Je)),Je=L.fromAxisAngle(F[Ft(1085)](gt),jt),this[Ft(1116)]=L[Ft(645)](Je,this[Ft(1116)])),this[Ft(568)]()}update(se){var ye=o,Je,Ft=F[ye(802)](F[ye(665)](1,0,0),this.orientation),jt=F[ye(802)](F[ye(665)](0,1,0),this[ye(1116)]),gt=F[ye(802)](F[ye(665)](0,0,1),this[ye(1116)]);this[ye(953)][ye(450)][ye(884)]===0&&this[ye(953)][ye(450)][ye(757)]===0||(this[ye(953)].mouse[ye(988)]===2?(Je=this[ye(953)].mouse.movementX*this[ye(948)]*se,se=this[ye(953)][ye(450)][ye(757)]*this.rotationSpeed*se,se=L.fromAxisAngle(Ft,se),Je=L[ye(997)](jt,Je),se=L[ye(645)](se,Je),Je=F[ye(601)](this._position,this[ye(562)]),Je=F.transformQuat(Je,se),F.add(this[ye(562)],Je,this[ye(845)]),this[ye(1116)]=L[ye(645)](se,this[ye(1116)])):this[ye(953)].mouse[ye(988)]),this.status[ye(450)][ye(576)]!==0&&(Je=this.status[ye(450)][ye(576)]*this[ye(670)],F[ye(987)](this[ye(845)],F[ye(708)](gt,Je),this[ye(845)])),this[ye(953)][ye(521)].up&&F[ye(987)](this[ye(845)],F[ye(708)](jt,this[ye(953)][ye(521)].shiftLeft?4*this[ye(476)]:this[ye(476)]),this[ye(845)]),this[ye(953)].keyboard[ye(1064)]&&F.add(this[ye(845)],F.scale(jt,-(this[ye(953)][ye(521)][ye(478)]?4*this[ye(476)]:this[ye(476)])),this._position),this[ye(953)][ye(521)][ye(995)]&&F[ye(987)](this._position,F[ye(708)](Ft,-(this.status.keyboard[ye(478)]?4*this[ye(476)]:this[ye(476)])),this[ye(845)]),this[ye(953)][ye(521)][ye(1034)]&&F[ye(987)](this[ye(845)],F[ye(708)](Ft,this[ye(953)].keyboard[ye(478)]?4*this[ye(476)]:this[ye(476)]),this[ye(845)]),this[ye(953)].keyboard[ye(848)]&&F.add(this._position,F[ye(708)](gt,-(this[ye(953)][ye(521)][ye(478)]?4*this[ye(476)]:this[ye(476)])),this[ye(845)]),this.status[ye(521)][ye(1057)]&&F[ye(987)](this[ye(845)],F[ye(708)](gt,this[ye(953)][ye(521)].shiftLeft?4*this.keyboardSpeed:this[ye(476)]),this[ye(845)]),this[ye(953)][ye(521)][ye(1058)]&&(se=L[ye(997)](gt,-.01),this[ye(1116)]=L.multiply(se,this[ye(1116)])),this[ye(953)][ye(521)][ye(693)]&&(Je=L[ye(997)](gt,.01),this.orientation=L.multiply(Je,this.orientation)),this[ye(953)][ye(521)][ye(773)]&&(se=L[ye(997)](jt,.01),this.orientation=L[ye(645)](se,this[ye(1116)])),this.status[ye(521)].rightHeading&&(gt=L[ye(997)](jt,-.01),this[ye(1116)]=L[ye(645)](gt,this[ye(1116)])),this[ye(953)][ye(521)][ye(427)]&&(Je=L[ye(997)](Ft,.01),this.orientation=L[ye(645)](Je,this[ye(1116)])),this.status[ye(521)][ye(1061)]&&(se=L[ye(997)](Ft,-.01),this[ye(1116)]=L[ye(645)](se,this[ye(1116)])),this.status.keyboard[ye(651)]&&(this[ye(476)]-=.01*this[ye(476)],this.keyboardSpeed<.01)&&(this[ye(476)]=.01),this[ye(953)][ye(521)].speedUp&&(this.keyboardSpeed*=1.01),this[ye(568)](),this.status[ye(450)][ye(884)]=0,this.status[ye(450)][ye(757)]=0,this.status[ye(450)][ye(576)]=0}[o(568)](){var se=o;R[se(1094)](this[se(1116)],this[se(761)]),this[se(761)][12]=this[se(845)][0],this[se(761)][13]=this[se(845)][1],this[se(761)][14]=this._position[2]}}globalThis.__ser_isDev__=!1;class Lt{constructor(se){var ye=o;if(this[ye(1114)]=R,this[ye(930)]=B,this[ye(923)]=F,this[ye(754)]=O,this[ye(520)]=L,this[ye(677)]=1,this.dataCallBack={},this.modelData={},this[ye(606)]=!0,this.spaceIndex_Heartbeat=!0,this.xn=!1,this[ye(654)]=!1,this.kj=!1,this.kj2=!1,this.gi=!1,this[ye(922)]={type:1,direction:F[ye(1085)](F.create(-.378604181697245,.8191225954117374,.4309258025313624)),color:F[ye(807)](1,1,1)},this[ye(509)]={fov:2*Math.PI/5,aspect:1,near:.1,far:1e3},this[ye(1069)]=0,this[ye(910)]=F.create(),this.OnInitialized=()=>{},this[ye(886)]=(jt,gt)=>{},this[ye(573)]=jt=>{},this[ye(984)]="",this[ye(1005)]="",this[ye(737)]=Date[ye(495)](),this[ye(553)]=0,this.tempRL=!0,this[ye(479)]=!1,this[ye(745)]=new Float64Array(84),console[ye(826)]("ser_V20250613"),se&&se[ye(1074)]&&se[ye(993)]){if(this[ye(993)]=se[ye(993)],this[ye(672)]=se[ye(1074)],se.Widget.scene.ser)return void console[ye(505)](ye(1059));this.cesiumWidget[ye(859)][ye(555)]=this}this.cesiumWidget?(this[ye(1088)]=new OffscreenCanvas(this[ye(672)][ye(859)][ye(1088)].width,this[ye(672)].scene.canvas[ye(864)]),this.depthCanvas=new OffscreenCanvas(this[ye(672)][ye(859)].canvas[ye(412)],this[ye(672)][ye(859)][ye(1088)][ye(864)]),this[ye(835)]=new Dt(null,this)):(this[ye(1088)]=document[ye(602)](ye(1088)),this.canvas[ye(412)]=1920,this[ye(1088)][ye(864)]=970,document[ye(455)].appendChild(this[ye(1088)]),this[ye(835)]=new Dt(this[ye(1088)],this),this.camera[ye(1079)](F[ye(807)](0,0,0),F[ye(807)](0,100,0),F[ye(807)](0,1,0))),this[ye(1084)]=[],this[ye(735)]=new ArrayBuffer(512),this[ye(439)]=new Float32Array(this[ye(735)]),this[ye(952)]=new Uint32Array(this.scene_dataBuffer),this[ye(547)]=new ArrayBuffer(96),this[ye(1075)]=new Float32Array(this[ye(547)]),this.lightInfo_dataViewF32[0]=this[ye(922)][ye(468)],this[ye(1075)][ye(895)](this.lightInfo.direction,1),this[ye(1075)].set(this[ye(922)][ye(431)],4),this[ye(1008)]=R[ye(626)](),this[ye(587)]=R[ye(626)](),this[ye(838)]=R.identity(),this[ye(640)]=R[ye(626)](),this.projectionViewMatrix=R[ye(626)](),this[ye(1024)]=R[ye(626)]();let Je=!1,Ft=(jt,gt)=>{var nt=ye;switch(jt[nt(1022)]){case nt(650):Je=gt,jt[nt(1096)](),jt[nt(517)]();break;case nt(638):gt||(this[nt(479)]=!this[nt(479)])}};window[ye(801)](ye(499),jt=>Ft(jt,!0)),window[ye(801)](ye(575),jt=>Ft(jt,!1)),this[ye(702)]=new yt(this),se=new y(new URL(f.p+f.u(671),f.b)),this[ye(1067)]=se[ye(759)](),this[ye(1067)][ye(801)](ye(622),jt=>{var gt=ye;if(jt[gt(836)])switch(jt[gt(836)][gt(999)]){case gt(925):this[gt(925)][jt.data.cbId]?(jt[gt(836)][gt(832)](gt(914))?this.dataCallBack[jt[gt(836)][gt(941)]].resolve(jt[gt(836)][gt(914)]):jt[gt(836)][gt(832)](gt(593))&&this[gt(925)][jt.data[gt(941)]][gt(593)](jt[gt(836)][gt(593)]),delete this.dataCallBack[jt[gt(836)][gt(941)]]):globalThis[gt(564)](jt.data);break;case gt(617):for(var nt in jt[gt(836)][gt(512)])this.modelData[gt(832)](nt)?Object[gt(726)](this.modelData[nt],jt[gt(836)].modelData[nt]):this[gt(512)][nt]=jt[gt(836)][gt(512)][nt];this[gt(432)](),this.OnModelServer(jt.data[gt(512)],jt[gt(836)][gt(1109)]);break;case gt(573):this[gt(573)](jt[gt(836)][gt(839)]);break;case gt(560):if(jt[gt(836)].targets)for(var Ze of jt.data.targets)this[gt(702)].UpVmData(Ze);else this.renderEngine[gt(560)](jt[gt(836)]);break;case gt(992):this[gt(702)][gt(908)](jt[gt(836)]);break;case gt(771):this[gt(702)].VisibleTreeUpdate();break;case gt(699):this[gt(1069)]=jt[gt(836)][gt(1069)];break;case gt(581):this[gt(606)]=!0;break;case gt(847):this[gt(1036)]=!0}})}[o(661)](){var se=o;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(873)],0,this.lightInfo_dataBuffer,0,32),this[se(509)][se(787)]=this.canvas.width/this[se(1088)][se(864)],this[se(842)](),this[se(1067)].postMessage({msgType:se(661),maxTextureSize:this.renderEngine[se(778)],maxPixel:this[se(702)][se(700)],meshVmMaxOffset:this[se(702)].meshVmBuffer[se(605)]/4}),this[se(531)](),this[se(672)]?this[se(765)]():this[se(545)]()}[o(611)](se){var ye=o;se[ye(592)]("/")!==se[ye(800)]-1&&(se+="/");var Je=this[ye(1084)][ye(800)];for(let Ft=0;Ft<this[ye(1084)][ye(800)];Ft++)if(this.serverList[Ft]===se)return Ft;return this.serverList[ye(918)](se),this[ye(1067)][ye(564)]({msgType:ye(1103),serverUrl:se,serverId:Je}),Je}[o(545)](){let se=()=>{var ye=Zh;this[ye(991)](),requestAnimationFrame(se)};requestAnimationFrame(se)}[o(842)](){var se=o;this.cesiumWidget?(ye=this[se(672)][se(859)][se(504)].uniformState,this[se(1005)]=ye[se(747)][se(770)](),this.projectionMatrix=R.frustumReverseZ(ye[se(685)].z,ye._frustumPlanes.w,ye[se(685)].y,ye[se(685)].x,ye._currentFrustum.x,ye[se(490)].y)):this[se(838)]=R[se(1113)](this.cameraParameter.fov,this[se(509)].aspect,this[se(509)][se(1108)],this.cameraParameter[se(475)]),this[se(640)]=R[se(584)](this.projectionMatrix);var ye=R.setTranslation(R.scale(R.identity(),F.create(.5,.5,1)),F[se(807)](.5,.5,0)),ye=R[se(645)](ye,this[se(838)]);this[se(1024)]=R[se(645)]([this[se(1088)].width,0,0,0,0,this[se(1088)].height,0,0,0,0,1,0,0,0,0,1],ye)}[o(991)](){var se=o,ye,Je;this[se(672)]?(Je=this[se(672)][se(859)][se(504)][se(420)],this[se(835)][se(761)]=Je[se(483)],this[se(835)][se(845)][0]=Je[se(483)][12],this[se(835)][se(845)][1]=Je[se(483)][13],this[se(835)][se(845)][2]=Je._inverseView[14],Je[se(747)][se(770)]()!==this[se(1005)]&&(this[se(984)]="",this[se(842)]())):(ye=((Je=Date[se(495)]())-this[se(737)])/1e3,this[se(737)]=Je,this[se(835)].update(ye)),this.oldCameraData===this[se(835)][se(761)][se(770)]()&&this.instancesCount!==0||(this[se(984)]=this[se(835)][se(761)].toString(),Je=F[se(601)]([this[se(835)][se(761)][12],this[se(835)][se(761)][13],this[se(835)][se(761)][14]],this[se(910)]),(1e4<Math.abs(Je[0])||1e4<Math[se(811)](Je[1])||1e4<Math[se(811)](Je[2]))&&(this[se(910)][0]=this[se(835)][se(761)][12],this.accuracyOffset[1]=this[se(835)][se(761)][13],this[se(910)][2]=this[se(835)].worldMatrix[14],this.scene_dataViewF32[120]=this[se(910)][0],this[se(439)][121]=this[se(910)][1],this.scene_dataViewF32[122]=this[se(910)][2],this[se(432)]()),(ye=Array.from(this.camera[se(761)]))[12]-=this[se(910)][0],ye[13]-=this[se(910)][1],ye[14]-=this[se(910)][2],R[se(760)](ye,this[se(587)]),this[se(1008)]=R[se(584)](ye),R[se(645)](this.projectionMatrix,this.viewMatrix,this[se(574)]),this[se(706)]=R[se(584)](this[se(574)]),this[se(672)]&&(Je=R[se(645)](this[se(672)][se(859)][se(504)].uniformState._projection,this[se(1008)]),this[se(439)][se(895)](Je)),this[se(439)].set(this[se(1008)],16),this[se(439)][se(895)](this[se(574)],32),this[se(439)][se(895)](this[se(640)],72),this[se(439)].set(this[se(587)],88),this[se(439)][se(895)](this[se(706)],104),this[se(677)]++,1073741820<this[se(677)]&&(this[se(677)]=1),this[se(952)][48]=this.cameraId,this[se(439)][49]=ye[12],this.scene_dataViewF32[50]=ye[13],this[se(439)][51]=ye[14],this[se(439)][52]=this.canvas.width,this[se(439)][53]=this[se(1088)][se(864)],this[se(439)][54]=1,this.scene_dataViewF32[55]=0,this[se(702)].device[se(704)].writeBuffer(this[se(702)][se(1068)],0,this[se(735)]),this[se(1036)]&&(this[se(1036)]=!1,this.ddWorker[se(564)]({msgType:"CameraChange",viewMatrix:R.inverse(this[se(835)].worldMatrix),projectionMatrix:this[se(838)],cameraWorldPosition:this[se(835)].position,cameraId:this[se(677)]})),this[se(702)][se(756)]()),this[se(702)].Render(),this.scene_dataViewF32.set(this[se(574)],56),this[se(952)][55]++,1073741820<this[se(952)][73]&&(this[se(952)][55]=1),this.renderEngine.device.queue.writeBuffer(this[se(702)][se(1068)],224,this[se(735)],224),this[se(479)]&&(this[se(897)]?(this[se(1075)][1]+=.005,this[se(1075)][2]+=.005,this[se(1075)][3]-=.005,.35<this.lightInfo_dataViewF32[1]&&.92<this[se(1075)][2]&&this[se(1075)][3]<-.14&&(this.tempRL=!this[se(897)])):(this[se(1075)][1]-=.005,this.lightInfo_dataViewF32[2]-=.005,this.lightInfo_dataViewF32[3]+=.005,this.lightInfo_dataViewF32[1]<-.76&&this[se(1075)][2]<-.09&&.63<this.lightInfo_dataViewF32[3]&&(this[se(897)]=!this[se(897)])),this.renderEngine[se(1099)][se(704)][se(1039)](this[se(702)][se(873)],0,this[se(547)],0,32))}[o(586)](se){var ye=o,Je,Ft;this[ye(512)][se]&&(Je=this[ye(512)][se],Ft=new Uint32Array([1]),this[ye(702)][ye(1099)][ye(704)][ye(1039)](this[ye(702)][ye(680)],4*(Je[ye(1016)]+17),Ft),this[ye(1067)][ye(564)]({msgType:ye(892),modelId:se,status:1}))}HideModel(se){var ye=o,Je,Ft;this[ye(512)][se]&&(Je=this[ye(512)][se],Ft=new Uint32Array([0]),this[ye(702)][ye(1099)][ye(704)][ye(1039)](this[ye(702)][ye(680)],4*(Je[ye(1016)]+17),Ft),this[ye(1067)].postMessage({msgType:ye(892),modelId:se,status:0}))}PickId(se,ye){var Je=o;return this[Je(702)][Je(806)](se,ye).then(Ft=>new Promise((jt,gt)=>{var nt=Je,Ze=Date[nt(495)]();this[nt(925)][Ze]={resolve:tt=>{jt(tt)},reject:tt=>{gt()}},this[nt(1067)][nt(564)]({msgType:nt(616),instancePtr:Ft,cbId:Ze})}))}[o(527)](se,ye){var Je=o;return this.renderEngine[Je(806)](se,ye)}[o(577)](se,ye){var Je=o;return this[Je(702)].PickPosition(se,ye)}[o(766)](se,ye){var Je=o,Ft;this[Je(512)][se]&&((Ft=this[Je(512)][se])[Je(503)]=Array[Je(1050)](ye),(ye=Array.from(ye))[12]-=this.accuracyOffset[0],ye[13]-=this[Je(910)][1],ye[14]-=this[Je(910)][2],ye=new Float32Array(ye),this.renderEngine.device.queue[Je(1039)](this[Je(702)][Je(680)],4*Ft[Je(1016)],ye),this.ddWorker[Je(564)]({msgType:Je(766),modelId:se,modelMatrixArr:Ft[Je(503)]}))}[o(432)](){var se=o;for(var ye in this.modelData){var Je,ye=this[se(512)][ye];ye[se(1016)]&&((Je=Array.from(ye.transform))[12]-=this[se(910)][0],Je[13]-=this[se(910)][1],Je[14]-=this[se(910)][2],Je=new Float32Array(Je),this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(680)],4*ye[se(1016)],Je))}this[se(868)](),this.UpdateExplodeAccuracyOffset()}CreateMaterial(se){return new Promise((ye,Je)=>{var Ft=Zh,jt=Date[Ft(495)]();this[Ft(925)][jt]={resolve:ye,reject:Je},this[Ft(1067)].postMessage({msgType:Ft(634),color:se,cbId:jt})})}[o(898)](se,ye,Je,Ft){var jt=o;this[jt(1067)][jt(564)]({msgType:jt(898),modelId:se,materialId:ye,color:Je,overlay:Ft})}GetMaterial(se,ye){return new Promise((Je,Ft)=>{var jt=Zh,gt=Date.now();this[jt(925)][gt]={resolve:nt=>{Je(nt)},reject:nt=>{Ft()}},this[jt(1067)][jt(564)]({msgType:jt(879),modelId:se,materialId:ye,cbId:gt})})}SetInstanceMaterialByInstancePtr(se,ye){var Je=o;this.renderEngine[Je(1099)].queue[Je(1039)](this.renderEngine.instanceVmBuffer,4*(se+23),new Uint32Array([ye]))}[o(513)](se,ye){var Je=o;this.renderEngine[Je(1099)].queue[Je(1039)](this[Je(702)][Je(666)],4*(se+22),new Uint32Array([ye]))}SetInstanceMaterial(se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(810),materialPtr:se,idBuffer:ye.buffer},[ye[Je(877)]])}SetInstanceStatus(se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(969),status:se,idBuffer:ye[Je(877)]},[ye.buffer])}[o(896)](se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(896),transform:se,idBuffer:ye[Je(877)]},[ye[Je(877)]])}[o(477)](se){var ye=o;se=new Uint32Array(se),this[ye(1067)][ye(564)]({msgType:ye(477),idBuffer:se.buffer},[se[ye(877)]])}[o(878)](se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(878),materialPtr:se,idBuffer:ye[Je(877)]},[ye.buffer])}[o(1070)](se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:"SetInstanceStatusByComponentIds",status:se,idBuffer:ye.buffer},[ye.buffer])}[o(746)](se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(746),transform:se,idBuffer:ye[Je(877)]},[ye[Je(877)]])}CancelInstanceTransformByComponentIds(se){var ye=o;se=new Uint32Array(se),this[ye(1067)].postMessage({msgType:ye(739),idBuffer:se[ye(877)]},[se.buffer])}SetInstanceMaterialByExtendedPropertiesId(se,ye){var Je=o;this.ddWorker.postMessage({msgType:Je(597),materialPtr:se,extendedPropertiesIds:ye})}[o(662)](se,ye){var Je=o;this.ddWorker[Je(564)]({msgType:"SetInstanceStatusByExtendedPropertiesId",status:se,extendedPropertiesIds:ye})}[o(609)](se,ye){var Je=o;this[Je(1067)][Je(564)]({msgType:Je(609),transform:se,extendedPropertiesIds:ye})}[o(977)](se){var ye=o;this[ye(1067)][ye(564)]({msgType:ye(977),extendedPropertiesIds:se})}[o(776)](se,ye,Je,Ft){return new Promise((jt,gt)=>{var nt=Zh,Ze=Date[nt(495)]();this[nt(925)][Ze]={resolve:jt,reject:gt},this[nt(1067)][nt(564)]({msgType:nt(776),x1:se,y1:ye,x2:Je,y2:Ft,width:this[nt(1088)].width,height:this[nt(1088)][nt(864)],cbId:Ze})})}[o(1012)](se,ye,Je){var Ft=o;if(se===void 0)this.clipPlane[0]=0;else{this[Ft(516)]=se,this[Ft(745)][0]=Je[Ft(800)]/4*(ye?-1:1),this[Ft(745)].set(Je,4);for(let gt=1;gt<=Math[Ft(811)](this[Ft(745)][0]);gt+=1){var jt=F[Ft(1085)]([this.clipPlane[4*gt],this[Ft(745)][4*gt+1],this[Ft(745)][4*gt+2]]);this[Ft(745)][4*gt]=jt[0],this[Ft(745)][4*gt+1]=jt[1],this[Ft(745)][4*gt+2]=jt[2]}}this[Ft(868)]()}[o(868)](){var se=o,ye=new Float32Array(84);if(this.clipPlane[0]!==0){var Je=Array.from(this[se(516)]),Ft=(Je[12]-=this[se(910)][0],Je[13]-=this[se(910)][1],Je[14]-=this.accuracyOffset[2],R[se(584)](Je,Je));for(let Qt=1;Qt<=Math[se(811)](this[se(745)][0]);Qt++){var Et=this[se(745)][4*Qt],jt=this.clipPlane[4*Qt+1],gt=this[se(745)][4*Qt+2],nt=this[se(745)][4*Qt+3],Ze=Et*Ft[0]+jt*Ft[1]+gt*Ft[2]+nt*Ft[3],tt=Et*Ft[4]+jt*Ft[5]+gt*Ft[6]+nt*Ft[7],Ye=Et*Ft[8]+jt*Ft[9]+gt*Ft[10]+nt*Ft[11],Et=Et*Ft[12]+jt*Ft[13]+gt*Ft[14]+nt*Ft[15];ye[4*Qt]=Ze,ye[4*Qt+1]=tt,ye[4*Qt+2]=Ye,ye[4*Qt+3]=Et}ye[0]=this[se(745)][0]}else ye[0]=0;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(449)],0,ye)}SetExplode(se,ye,Je,Ft,jt){var gt=o;se===void 0||Number.isNaN(se)||(this[gt(702)][gt(804)][0]=se),ye===void 0||Number[gt(1021)](ye)||(this[gt(702)][gt(804)][1]=ye),Je===void 0||Number.isNaN(Je)||(this[gt(702)].explodeParam[2]=Je),Ft&&3<=Ft.length&&(this[gt(702)][gt(804)][3]=Ft[0],this.renderEngine[gt(804)][4]=Ft[1],this.renderEngine.explodeParam[5]=Ft[2]),jt&&3<=jt.length&&(se=F[gt(1085)](jt),this[gt(702)][gt(804)][6]=se[0],this[gt(702)][gt(804)][7]=se[1],this[gt(702)][gt(804)][8]=se[2]),this.UpdateExplodeAccuracyOffset()}[o(1112)](){var se=o,ye=new Float32Array(this[se(702)][se(804)]);ye[3]-=this.accuracyOffset[0],ye[4]-=this.accuracyOffset[1],ye[5]-=this[se(910)][2],this[se(702)][se(1099)][se(704)].writeBuffer(this.renderEngine[se(792)],0,ye)}[o(765)](){var se=o;let ye=this[se(672)][se(859)];if(!ye.initFine){ye[se(456)]=!0;let Je={sources:[se(722)],defines:[]},Ft=new this[se(993)].ShaderSource({sources:[se(644)],defines:[]}),jt=new this[se(993)][se(860)](Je),gt=ye.context[se(867)].getShaderProgram({vertexShaderSource:Ft,fragmentShaderSource:jt}),nt=new this.Cesium[se(673)]({context:ye.context,attributes:[]}),Ze=(nt[se(1037)]=6,this[se(993)][se(1110)][se(639)]({depthTest:{enabled:!0,func:this[se(993)].WebGLConstants[se(1060)]}})),tt=new this.Cesium[se(613)]({wrapS:this[se(993)][se(1082)][se(784)],wrapT:this.Cesium[se(1082)][se(784)],minificationFilter:this[se(993)].TextureMinificationFilter[se(857)],magnificationFilter:this[se(993)][se(514)][se(857)]}),Ye={bimColorTexture:()=>(this[se(991)](),ye[se(1100)]?ye.serColorTexture[se(453)]({source:ye[se(555)][se(1088)],skipColorSpaceConversion:!0}):ye.serColorTexture=new this.Cesium[se(1038)]({context:ye[se(504)],source:ye.ser[se(1088)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ye[se(1100)]),bimDepthTexture:()=>(ye.serDepthTexture?ye.serDepthTexture[se(453)]({source:ye.ser[se(515)],skipColorSpaceConversion:!0}):ye[se(890)]=new this[se(993)][se(1038)]({context:ye[se(504)],source:ye[se(555)][se(515)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ye[se(890)])},Et=new this[se(993)][se(828)]({x:0,y:0,z:0},6379137),Qt=new this.Cesium[se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)].Pass.OPAQUE,boundingVolume:Et});Qt.derivedCommands[se(487)]={command:new this.Cesium[se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)][se(417)][se(623)],boundingVolume:Et}),shaderProgramId:gt.id},Qt[se(674)][se(487)][se(885)][se(674)]={depth:{command:new this[se(993)][se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)][se(417)][se(623)],boundingVolume:Et}),shaderProgramId:gt.id,depthOnlyCommand:new this[se(993)][se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)][se(417)][se(623)],boundingVolume:Et})}},Qt.derivedCommands[se(649)]={shaderProgramId:gt.id,depthOnlyCommand:new this.Cesium[se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)][se(417)][se(623)],boundingVolume:Et})},Qt.fine=!0,ye.primitives[se(987)]({fine:!0,isDestroyed:()=>!1,update:()=>{ye.frameState.commandList.push(Qt)}})}}}return m}};function Zh(o,f){var m=e2e();return Zh=function(x,v){x=x-411;var y=m[x];return y},Zh(o,f)}typeof exports=="object"&&Are(698)==typeof module?module.exports=Zye():Are(728)==typeof define&&define[Are(567)]?define([],Zye):Are(698)==typeof exports?exports[Are(555)]=Zye():yRr.ser=Zye();function y2(o){this._earthCtrl=o,this._viewer=o.viewer,this._fig=null,this.serverAddress=""}y2.prototype.create=async function(){let o=this;return this._fig=new ser.serMain({Cesium:Ui,Widget:o._viewer}),await new Promise(f=>{o._fig.OnInitialized=()=>{f(o)}})};y2.prototype.setModelTransform=function(o,f){let m=Ee.toArray(Mr.eastNorthUpToFixedFrame(V.fromDegrees(f.lon,f.lat,f.height)));if(f.roll){let x=Ce.toRadians(f.roll??0),v=Ee.fromRotationTranslation(Yt.fromRotationZ(x));Ee.multiply(m,v,m)}this._fig.SetModelTransform(o,m)};y2.prototype.showModel=function(o){this._fig.ShowModel(o)};y2.prototype.hideModel=function(o){this._fig.HideModel(o)};y2.prototype.destroy=function(){this._fig.Destroy()};y2.prototype.addModelServer=async function(o){return this._fig.AddServer(o),await new Promise(f=>{this._fig.OnModelServer=(m,x)=>{this.modelList=m,f({modelList:m,serverId:x})}})};y2.prototype.getModelBoundingSphere=function(o){let f=this.modelList[o],m=Ee.multiplyByPoint(f.transform,V.fromArray(f.box),{}),x=Ee.multiplyByPoint(f.transform,V.fromArray(f.box,3),{});return Li.fromPoints([m,x],new Li)};y2.prototype.clickSem=function(o){let f=this,m=0;f._viewer.screenSpaceEventHandler.setInputAction(function(v){m!==0&&(f._fig.SetInstanceStatusByInstancePtr(m,1),m=0),f._fig.PickId(v.position.x,v.position.y).then(y=>{y&&(m=y.instancePtr,f._fig.SetInstanceStatusByInstancePtr(y.instancePtr,2)),o&&o(y)})},Di.LEFT_CLICK)};y2.prototype.unSelect=function(o){o!==0&&this._fig.SetInstanceStatusByInstancePtr(o,1)};y2.prototype.pickWorldPosition=function(o,f,m){this._fig.PickWorldPosition(o,f).then(x=>{m&&m(x)})};y2.prototype.semModeClipping=function(o){let f=this;return new Aye(f._earthCtrl,f._fig,o)};y2.prototype.setMaterialColor=function(o,f,m,x){this._fig.SetMaterialColor(o,f,[m.red,m.green,m.blue,m.alpha],x)};y2.prototype.choice=function(o){return o=o??{},o.bim=o.ser??this._fig,new Sye(o,this._earthCtrl,Ui)};y2.prototype.setExplode=function(o,f,m,x,v){this._fig.SetExplode(o,f,m,x,v)};y2.prototype.showComponent=function(o){o.showComponentArr.length>0&&this._fig.SetInstanceStatus(o.status,o.showComponentArr)};var rkt=y2;var CRr=function(o){if(!o.extensionsUsed||!o.extensionsRequired)return;let f=o.extensionsUsed.indexOf("KHR_technique_webgl"),m=o.extensionsRequired.indexOf("KHR_technique_webgl");if(f!==-1){o.extensionsRequired.splice(m,1,"KHR_techniques_webgl"),o.extensionsUsed.splice(f,1,"KHR_techniques_webgl"),o.extensions=o.extensions||{},o.extensions.KHR_techniques_webgl={},o.extensions.KHR_techniques_webgl.programs=o.programs,o.extensions.KHR_techniques_webgl.shaders=o.shaders,o.extensions.KHR_techniques_webgl.techniques=o.techniques;let x=o.extensions.KHR_techniques_webgl.techniques;o.materials.forEach(function(v,y){o.materials[y].extensions.KHR_technique_webgl.values=o.materials[y].values,o.materials[y].extensions.KHR_techniques_webgl=o.materials[y].extensions.KHR_technique_webgl;let C=o.materials[y].extensions.KHR_techniques_webgl;for(let w in C.values){let T=x[C.technique].uniforms;for(let E in T)if(T[E]===w){C.values[E]=C.values[w],delete C.values[w];break}}}),x.forEach(function(v){for(let y in v.attributes){let C=v.attributes[y];v.attributes[y]=v.parameters[C]}for(let y in v.uniforms){let C=v.uniforms[y];v.uniforms[y]=v.parameters[C]}})}},i2e=typeof window<"u"?window:typeof self<"u"?self:{},t2e=setTimeout(()=>{t2e=void 0,i2e.logSmartEarth&&i2e.logSmartEarth()},1e4);function nkt(o,f){ma.supportsImageRenderingPixelated()&&(o.viewer.resolutionScale=f?window.devicePixelRatio:1),o.viewer.scene.fxaa=f,o.viewer.scene.postProcessStages.fxaa.enabled=f}function Rd(o,f={},m,x,v){this._core=new AC(this),this._cesium=Ui,t2e&&(clearTimeout(t2e),t2e=void 0,f.VERSION!==!1&&i2e.logSmartEarth&&i2e.logSmartEarth()),this.G=65535,m=m??pi.EMPTY_OBJECT,N(f.StaticFileBaseUrl)?globalThis.GEOWORLD_BASE_URL=f.StaticFileBaseUrl:globalThis.GEOWORLD_BASE_URL="./CimSDK/",globalThis.CESIUM_BASE_URL=globalThis.GEOWORLD_BASE_URL,globalThis.SmartEarthRootUrl=globalThis.GEOWORLD_BASE_URL,this.LayuiPromise=Kze();let y=f.language??M0.ZH_CN;this.i18n=new Z4t(y),f.toolbar=f.toolbar??!1,f.baseLayerPicker=f.baseLayerPicker??!1,f.shadows=!1,f.skyAtmosphere=new XZ,f.terrainShadows=Zl.ENABLED,f.animation=f.animation??!0,f.shouldAnimate=!0,f.fullscreenButton=f.fullscreenButton??!1,f.geocoder=f.geocoder??!1,f.homeButton=!1,f.infoBox=!1,f.selectionIndicator=!1,f.timeline=f.timeline??!1,f.defaultImagery=f.defaultImagery??!0,f.printLogo=f.printLogo??!0,f.printLog=f.printLog??f.printLogo,f.infoBar=f.infoBar??!0,f.navigationHelpButton=!1,f.imageryProviderViewModels=[],f.terrainProviderViewModels=[];let{webgl:C={}}=f.contextOptions||{},{alpha:w=!1}=C;f.contextOptions={webgl:{alpha:w,preserveDrawingBuffer:!0},failIfMajorPerformanceCaveat:!1,ellipsoidCoordinates:f.ellipsoidCoordinates},f.navigation=!0,f.disableRightClickMenu=!0,typeof f=="string"?f.baseLayer=new Pp(new Gw({url:f})):(f.url&&(f.baseLayer=new Pp(new Gw({url:f.url}))),this._core.extend(f,f,!0));let T=N(f.baseLayer),E;if(f.baseLayerPicker){T=!0;let I=this.getAllImageryView();if(f.basemaps)f.basemaps.forEach(P=>{f.imageryProviderViewModels.push(I[P])});else for(let P in I)f.imageryProviderViewModels.push(I[P])}else!f.imageryProvider&&!f.baseLayer?(E=Pp.fromProviderAsync(Gw.fromUrl(`${globalThis.GEOWORLD_BASE_URL}Workers/image/earth.jpg`)),f.baseLayer=E):(T=!0,f.imageryProvider&&(f.baseLayer=Pp.fromProviderAsync(f.imageryProvider)));let A={destination:V.fromDegrees(f.x?f.x:93.53987,f.y?f.y:24.77445,f.z?f.z:257935006e-1),orientation:{heading:Ce.toRadians(f.heading??0),pitch:Ce.toRadians(f.pitch??-90),roll:Ce.toRadians(f.roll??0)},duration:f.duration||1};if(f.removeGlobe&&(f.skyBox=!1,f.skyAtmosphere=!1,f.contextOptions={failIfMajorPerformanceCaveat:!1,webgl:{alpha:!0,preserveDrawingBuffer:!0}}),this._Viewer=new S0e(o,f),this._tree=x,this._Viewer.scene.globe.baseColor=ze.WHITE,this._Viewer.shadowMap.size=2048,this._Viewer._cesiumWidget._creditContainer.style.display="none",this._Viewer.terrainShadows=Zl.ENABLED,this._AttachEvent=void 0,this._DetachEvent=void 0,this._Analysis=void 0,this._Navigate=void 0,this._Creator=void 0,this._Command=void 0,this._ProjectTree=void 0,this._Coordinate=void 0,this._VectorTileProvider=void 0,this._simulate=void 0,this.toolbar=f.toolbar,f.removeGlobe){this._Viewer.imageryLayers.removeAll(),this._Viewer.shadows=!1,this._Viewer.scene.fog.enabled=!1,this._Viewer.scene.globe.show=!1;let I="rgba(0,0,0,0)";this._Viewer.scene.backgroundColor=ze.fromCssColorString(I),this._Viewer.scene.light=new I7({direction:new V(1,-.9,-.9)}),f.backgroundImage&&(this._Viewer.container.style.backgroundImage=`url(${f.backgroundImage})`)}else this._Viewer.scene.globe.depthTestAgainstTerrain=!0;if(f.defaultImagery&&!T&&window.navigator.onLine&&this.judgeOnline().then(async I=>{I&&(await this._factory.createImageryLayer({enablePickFeatures:!1,sourceType:"arcgis",url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",zIndex:0}),this._Viewer.imageryLayers.lowerToBottom(E))}).catch(I=>{console.warn("The current network cannot be connected, so we will not load the online Imagery")}),this.coreMap=this._Viewer,this.coreMap.language=this.language,this._environment=new Xpe(this),this._camera=new bpe(this),this._measure=new kpe(this),this._shapeTool=new ETt(this),this._editTool=new Upe(this),this._factory=new nR(this),this._tools=new spe(this),this._edit=new $ve(this),this._analysis=new bye(this),this._userScene=new Hve(this,m),this._view=new gBt(this),this._bim=new CBt(this),this._ser=new rkt(this),this._MilitaryPlotting=new qye(this),this._atmosphere=new uwt(this),this._simulate=new ikt(this),f.infoBar&&(this._infoBar=new vNt(this)),f.maxViewHeight&&(this._Viewer.scene.screenSpaceCameraController.maximumZoomDistance=f.maxViewHeight),f.minViewHeight||f.maxViewPitch){this.minViewHeight=f.minViewHeight,this.maxViewPitch=f.maxViewPitch&&Ce.toRadians(f.maxViewPitch);let I=0,P=this._Viewer.scene,D=!1;if(this.maxViewPitch){let R=new kr(this._Viewer.scene.canvas);R.setInputAction(()=>{D=!0},Di.MIDDLE_DOWN),R.setInputAction(()=>{D=!1},Di.MIDDLE_UP),R.setInputAction(()=>{D=!0},Di.RIGHT_DOWN),R.setInputAction(()=>{D=!1},Di.RIGHT_UP)}this._Viewer.scene.preRender.addEventListener(()=>{let R=this._Viewer.camera;if(!(!R||!R.positionCartographic)){if(this.maxViewPitch){let L=R.pitch;D&&L>this.maxViewPitch?(L=this.maxViewPitch,R.setView({destination:this.oldPosition||R.position.clone(),orientation:{heading:R.heading,pitch:L,roll:0}})):this.oldPosition=R.position.clone()}if(this.minViewHeight){I=P.globe.getHeight(R.positionCartographic)||I;let O,F,B=R.positionCartographic.height-I;this._Viewer.scene.globe.translucency.enabled||this._Analysis&&(this._Analysis._UndergroundMode&&this._Analysis._UndergroundMode.isUndergroundMode||this._Analysis._StreetView&&this._Analysis._StreetView.isStreetView)?(O=R.positionCartographic.height<-200,F=-200):(O=B<this.minViewHeight,F=I+this.minViewHeight);let H=R.pitch<0?R.pitch:0;O?R.setView({destination:this.oldPosition||V.fromRadians(R.positionCartographic.longitude,R.positionCartographic.latitude,F),orientation:{heading:R.heading,pitch:H,roll:0}}):this.oldPosition=R.position.clone()}}})}let S={};Ks.DEFAULT_VIEW_RECTANGLE=Si.fromDegrees(79,0,130,60),f.navigationOption=f.navigationOption??pi.EMPTY_OBJECT,S.defaultResetView=f.navigationOption.defaultResetView??kt.fromCartesian(A.destination),S.enableCompass=f.navigationOption.enableCompass??!0,S.enableZoomControls=f.navigationOption.enableZoomControls??!0,S.enableDistanceLegend=f.navigationOption.enableDistanceLegend??!0,S.enableCompassOuterRing=f.navigationOption.enableCompassOuterRing??!0,this._Viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(this._cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._Viewer.extend(this._cesium.viewerCesiumNavigationMixin,S),this.camera.setView(A),v&&typeof v=="function"&&v(),yNt.parse(this,m),f.mouseDownView&&this.mouseDownView(!0),f.printLog&&this.addLogo(),Object.defineProperties(Dv.prototype,{_cachedGltf:{configurable:!0,set:function(I){this._vtxf_cachedGltf=I,this._vtxf_cachedGltf&&this._vtxf_cachedGltf._gltf&&CRr(this._vtxf_cachedGltf._gltf)},get:function(){return this._vtxf_cachedGltf}}}),f.disableRightClickMenu&&(document.oncontextmenu=function(){return!1});let M=function(I){if(I.cesiumWidget._supportsImageRenderingPixelated&&window&&window.devicePixelRatio){let D=window.devicePixelRatio;for(;D>=2;)D/=2;I.resolutionScale=D}};Ww.prototype.getRenderedBestLevelInfo=function(){let I=this.getRenderedLevelInfo(),P=0;for(let D in I)P<Number(D)&&(P=Number(D));return{bestLevel:P,count:I[P]}},Ww.prototype.getRenderedLevelInfo=function(){let I=[];return this._tilesToRender.forEach(function(P){I[P.level]===void 0&&(I[P.level]=0,I[P.level]++)}),I},nkt(this,!0)}Object.defineProperties(Rd.prototype,{environment:{get:function(){return this._environment}},entities:{get:function(){return this._Viewer.dataSourceDisplay.defaultDataSource.entities}},enableAA:{set:function(o){nkt(this,o)}},primitives:{get:function(){return this.coreMap.scene.primitives}},imageryLayers:{get:function(){return this.coreMap.imageryLayers}},view:{get:function(){return this._view}},terrainProvider:{get:function(){return this.coreMap.terrainProvider}},dataSources:{get:function(){return this._Viewer.dataSources}},camera:{get:function(){return this._camera}},showFPS:{get:function(){return this.viewer.scene.debugShowFramesPerSecond},set:function(o){this.viewer.scene.debugShowFramesPerSecond=o}},depthTerrain:{get:function(){return this.viewer.scene.globe.depthTestAgainstTerrain},set:function(o){this.viewer.scene.globe.depthTestAgainstTerrain=o}},measure:{get:function(){return this._measure}},shapeTool:{get:function(){return this._shapeTool}},editTool:{get:function(){return this._editTool}},edit:{get:function(){return this._edit}},analysis:{get:function(){return this._analysis}},factory:{get:function(){return this._factory}},userScene:{get:function(){return this._userScene}},tools:{get:function(){return this._tools}},hdr:{get:function(){return this.coreMap.scene.highDynamicRange},set:function(o){this.coreMap.scene.highDynamicRange=o}},sunGlowFactor:{set:function(o){this.coreMap.scene.sun.glowFactor=o},get:function(){return this.coreMap.scene.sun.glowFactor}},shadows:{get:function(){return this.coreMap.scene.shadowMap.enabled},set:function(o){this.coreMap.scene.shadowMap.enabled=o}},terrainShadows:{get:function(){return this.coreMap.scene.globe.shadows},set:function(o){this.coreMap.scene.globe.shadows=o}},shadowMap:{get:function(){return this.coreMap.scene.shadowMap}},shadowMapList:{get:function(){return this.coreMap.scene.shadowMapList}},textureProjectionMapList:{get:function(){return this.coreMap.scene.textureProjectionMapList}},viewShedMapList:{get:function(){return this.coreMap.scene.viewShedMapList}},clock:{get:function(){return this._Viewer.clock}},clockViewModel:{get:function(){return this._Viewer.clockViewModel}},sunShaftEnabled:{get:function(){return this.coreMap.scene.sunShaftEnabled},set:function(o){this.coreMap.scene.sunShaftEnabled=o}},MilitaryPlotting:{get:function(){return this._MilitaryPlotting}},core:{get:function(){return this._Core||(this._Core=new AC(this)),this._Core}},Analysis:{get:function(){return this._Analysis||(this._Analysis=new HNt(this._Viewer,Ui)),this._Analysis}},Creator:{get:function(){return this._Creator||(this._Creator=new Jye(this._Viewer,Ui)),this._Creator}},projectTree:{get:function(){return this._ProjectTree||(this._ProjectTree=new J4t(this._Viewer,Ui,this._tree)),this._ProjectTree}},tree:{get:function(){return this._tree}},viewer:{get:function(){return this._Viewer}},toolbar:{get:function(){return this._Viewer._toolbar.style.display==="block"},set:function(o){this._Viewer._toolbar.style.display=o?"block":"none"}},wireframe:{get:function(){return this._Viewer.scene.globe._surface.tileProvider._debug.wireframe},set:function(o){this._Viewer.scene.globe._surface.tileProvider._debug.wireframe=o}},tileCoordinates:{get:function(){return this._Viewer.cesiumInspector.viewModel.tileCoordinates},set:function(o){this._Viewer.cesiumInspector.viewModel.tileCoordinates=o}},bim:{get:function(){if(!this._bim)throw new At(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._bim}},ser:{get:function(){if(!this._ser)throw new At(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._ser}},maxProjectionCount:{get:function(){return this.coreMap.scene.maxProjectionCount},set:function(o){this.coreMap.scene.maxProjectionCount=o}},atmosphere:{get:function(){return this._atmosphere}},simulate:{get:function(){return this._simulate}},language:{get:function(){return this.i18n.language}}});Rd.prototype.brightness=function(o){let f=o.enable??!0,m=o.brightness??1,x=this.coreMap.scene.postProcessStages;this.coreMap.scene.brightness=this.coreMap.scene.brightness||x.add(X2.createBrightnessStage()),this.coreMap.scene.brightness.enabled=f,this.coreMap.scene.brightness.uniforms.brightness=Number(m)};Rd.prototype.judgeOnline=function(){let o=document.createElement("img"),f=new Promise((x,v)=>{let y=setTimeout(()=>{o&&(o.src="",o.remove(),o=null),clearTimeout(y),v("Timeout")},5e3)}),m=new Promise((x,v)=>{o.crossOrigin="anonymous",o.src=`https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/2/2/0?time=${new Date().getTime()}`,o.onload=()=>(o&&(o.src="",o.remove(),o=null),x(!0),!0),o.onerror=()=>(o&&(o.src="",o.remove(),o=null),x(!1),!0)});return Promise.race([m,f])};Rd.prototype.addLogo=function(){let o=this;queueMicrotask(()=>{let f=`
`};class vt{constructor(se,ye){var Je=o;this[Je(1081)]=1,this[Je(491)]=[.3,.8,.3,.5],this.outlineColor=[1,1,1,.8],this.alpha_Uniform_DataView=new Float32Array(16),this[Je(1033)]=new Uint32Array(this[Je(1020)].buffer),this[Je(1031)]=se,this[Je(702)]=ye,this[Je(1099)]=ye[Je(1099)],this[Je(525)]=this.device[Je(690)]({size:4*this[Je(1020)][Je(800)],usage:GPUBufferUsage[Je(844)]|GPUBufferUsage[Je(526)]}),this[Je(1020)].set(this.overlayColor),this.alpha_Uniform_DataView[Je(895)](this[Je(1014)],4),this[Je(1099)][Je(704)].writeBuffer(this.alpha_Uniform_VmBuffer,0,this[Je(1020)]),this[Je(1017)]=this[Je(1099)][Je(656)]({size:[this[Je(702)][Je(504)][Je(1088)].width,this[Je(702)].context[Je(1088)][Je(864)],1],format:Je(637),usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage[Je(736)]|GPUTextureUsage[Je(467)]|GPUTextureUsage[Je(1013)]}),this[Je(813)]=this.device[Je(656)]({size:[this[Je(702)][Je(504)][Je(1088)].width,this[Je(702)][Je(504)].canvas[Je(864)],1],format:Je(435),usage:GPUTextureUsage[Je(448)]|GPUTextureUsage[Je(736)]|GPUTextureUsage[Je(467)]});let Ft=this[Je(1099)][Je(648)]({entries:[{binding:0,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(1053)}},{binding:1,visibility:GPUShaderStage.VERTEX,buffer:{type:"read-only-storage"}},{binding:2,visibility:GPUShaderStage.VERTEX,buffer:{type:Je(629)}},{binding:3,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:4,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:5,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(1053)}},{binding:6,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}}]}),jt=(this.alpha_BingGroup=this[Je(1099)][Je(866)]({layout:Ft,entries:[{binding:0,resource:{buffer:this[Je(702)][Je(1068)]}},{binding:1,resource:{buffer:this[Je(702)][Je(680)]}},{binding:2,resource:{buffer:this.renderEngine[Je(666)]}},{binding:3,resource:{buffer:this.renderEngine[Je(1092)]}},{binding:4,resource:{buffer:this[Je(702)][Je(580)]}},{binding:5,resource:{buffer:this[Je(525)]}},{binding:6,resource:{buffer:this.renderEngine.operateVmBuffer}}]}),this[Je(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[Je(539)]|GPUShaderStage[Je(625)],buffer:{type:Je(629)}}]})),gt=(this[Je(933)]=this[Je(1099)][Je(866)]({layout:jt,entries:[{binding:0,resource:{buffer:this.renderEngine[Je(688)]}}]}),this.device[Je(917)]({bindGroupLayouts:this[Je(702)].multiDrawIndirect?[Ft]:[Ft,jt]})),nt=lt[Je(1022)];this[Je(702)][Je(1035)]?nt=nt[Je(926)](Je(904),""):(nt=nt[Je(926)](Je(929),Je(1009)),nt+=Je(1093)),se=this[Je(1099)][Je(720)]({code:Z[Je(1022)]+nt}),this[Je(955)]=this[Je(1099)][Je(950)]({layout:gt,vertex:{module:se,entryPoint:"vert_main",buffers:[],constants:{}},fragment:{module:se,entryPoint:Je(1048),targets:[{format:this[Je(1017)][Je(980)]}],constants:{}},primitive:{topology:Je(1062),frontFace:"ccw",cullMode:Je(590)},depthStencil:{format:this[Je(813)][Je(980)],depthCompare:Je(753),depthWriteEnabled:!0}}),this[Je(1028)]={colorAttachments:[{view:this[Je(1017)][Je(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:Je(971),storeOp:Je(600)}],depthStencilAttachment:{view:this[Je(813)][Je(1045)](),depthClearValue:0,depthLoadOp:Je(971),depthStoreOp:Je(600),depthReadOnly:!1}},this[Je(702)][Je(1035)]||((ye=this.device[Je(968)]({colorFormats:[this[Je(1017)].format],depthStencilFormat:this.alpha_depth_Texture[Je(980)]}))[Je(689)](0,this.alpha_BingGroup),ye[Je(501)](this[Je(955)]),ye[Je(689)](1,this[Je(933)]),ye.drawIndirect(this.renderEngine[Je(812)],0),this.alpha_RenderBundle=ye[Je(1091)]()),this[Je(546)]()}[o(991)](se){var ye=o,Je=se.beginRenderPass(this[ye(1028)]);this.renderEngine[ye(1035)]?(Je[ye(689)](0,this.alpha_BingGroup),Je[ye(501)](this[ye(955)]),Je.multiDrawIndirect(this[ye(688)],0,393216,this[ye(812)],0)):Je.executeBundles([this[ye(1083)]]),Je[ye(482)](),this[ye(585)](se)}EdgeMergeIntend(){var se=o;this.edgeMerge_color_Texture=this[se(1099)][se(656)]({size:[this.renderEngine.context.canvas[se(412)],this[se(702)].context[se(1088)].height,1],format:"rgba8unorm",usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]});var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(893)][se(980)],access:"read-only"}},{binding:3,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(893)][se(980)],access:se(633)}},{binding:4,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this.edgeMerge_color_Texture.format,access:se(714)}}]});this[se(924)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(525)]}},{binding:1,resource:this[se(702)][se(636)]},{binding:2,resource:this.renderEngine[se(502)][se(1045)]()},{binding:3,resource:this.alpha_color_Texture.createView()},{binding:4,resource:this.edgeMerge_color_Texture[se(1045)]()}]}),this.edgeMergeComputePipeline=this[se(1099)][se(1101)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this.device[se(720)]({code:ft[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(585)](se){var ye=o,Je=se[ye(911)]();Je[ye(689)](0,this[ye(924)]),Je.setPipeline(this.edgeMergeComputePipeline),Je[ye(624)](this[ye(702)][ye(752)],this[ye(702)][ye(899)]),Je[ye(482)](),se.copyTextureToTexture({texture:this[ye(893)]},{texture:this.renderEngine[ye(502)]},{width:this.edgeMerge_color_Texture[ye(412)],height:this[ye(893)][ye(864)]})}}let Pt={code:o(664)};class rt{constructor(se,ye){var Je=o;this[Je(1081)]=1,this.overlayColor=[.3,.8,.3,.5],this.outlineColor=[1,1,1,.8],this[Je(1020)]=new Float32Array(16),this.alpha_Uniform_DataViewU32=new Uint32Array(this[Je(1020)].buffer),this[Je(1031)]=se,this[Je(702)]=ye,this[Je(1099)]=ye.device,this[Je(525)]=this.device.createBuffer({size:4*this[Je(1020)].length,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[Je(526)]}),this[Je(1020)].set(this.overlayColor),this[Je(1020)][Je(895)](this[Je(1014)],4),this[Je(1099)][Je(704)][Je(1039)](this.alpha_Uniform_VmBuffer,0,this[Je(1020)]),this.alpha_color_Texture=this.device[Je(656)]({size:[this[Je(702)][Je(504)][Je(1088)][Je(412)],this[Je(702)][Je(504)][Je(1088)][Je(864)],1],format:Je(637),usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage[Je(467)]|GPUTextureUsage[Je(1013)]}),this[Je(813)]=this[Je(1099)][Je(656)]({size:[this[Je(702)][Je(504)][Je(1088)].width,this[Je(702)][Je(504)].canvas[Je(864)],1],format:"depth32float",usage:GPUTextureUsage[Je(448)]|GPUTextureUsage[Je(736)]|GPUTextureUsage.TEXTURE_BINDING}),se=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[Je(539)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:2,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:3,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:4,visibility:GPUShaderStage[Je(539)],buffer:{type:Je(629)}},{binding:5,visibility:GPUShaderStage.VERTEX,buffer:{type:Je(1053)}}]}),this[Je(1054)]=this[Je(1099)][Je(866)]({layout:se,entries:[{binding:0,resource:{buffer:this.renderEngine[Je(1068)]}},{binding:1,resource:{buffer:this[Je(702)].modelVmBuffer}},{binding:2,resource:{buffer:this[Je(702)][Je(666)]}},{binding:3,resource:{buffer:this[Je(702)].meshVmBuffer}},{binding:4,resource:{buffer:this[Je(702)].meshLodVmBuffer}},{binding:5,resource:{buffer:this[Je(525)]}}]}),ye=this[Je(1099)][Je(917)]({bindGroupLayouts:[se]}),se=this[Je(1099)][Je(720)]({code:Z[Je(1022)]+Pt.code}),this.alpha_Pipeline=this[Je(1099)][Je(950)]({layout:ye,vertex:{module:se,entryPoint:Je(744),buffers:[],constants:{}},fragment:{module:se,entryPoint:Je(1048),targets:[{format:this[Je(1017)].format}],constants:{}},primitive:{topology:Je(956),frontFace:Je(905),cullMode:"back"},depthStencil:{format:this[Je(813)][Je(980)],depthCompare:Je(753),depthWriteEnabled:!0}}),this[Je(1028)]={colorAttachments:[{view:this.alpha_color_Texture[Je(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:Je(971),storeOp:Je(600)}],depthStencilAttachment:{view:this[Je(813)][Je(1045)](),depthClearValue:0,depthLoadOp:"clear",depthStoreOp:"store",depthReadOnly:!1}}}[o(991)](se){var ye=o;this[ye(1031)].instancesCount!==0&&((se=se[ye(675)](this[ye(1028)]))[ye(689)](0,this[ye(1054)]),se.setPipeline(this[ye(955)]),se.draw(8*this[ye(1031)][ye(1069)]),se[ye(482)]())}}class yt{constructor(se){var ye=o;this.fig=se,this[ye(778)]=0,this[ye(700)]=0,this[ye(1035)]=!1,this[ye(710)]=!0,this.readTemp_noLocking=!0,this[ye(1e3)]=!0,this[ye(983)]=!0,this[ye(837)]=!0,this[ye(425)]=1,this[ye(628)]=2,this[ye(767)]=3,this.vm_target_meshLod=4,this[ye(934)]=5,this[ye(561)]=6,this[ye(903)]=7,this[ye(1025)]=32,this[ye(804)]=new Float32Array(9),this[ye(795)]=20,this.spaceTotalCount=0,this[ye(598)]=10,this[ye(775)]=1e6,this[ye(858)]=new ArrayBuffer(64),this[ye(653)]=new Uint32Array([10,0,0,0]),this[ye(786)]=1e5,this[ye(915)]=Math.ceil(this.lightBodiesAssociateCount/1024),this[ye(764)]=1e6,this[ye(540)]=4096,this[ye(944)]=new Float32Array(128),this[ye(697)]=new Uint32Array(this[ye(944)][ye(877)]),this[ye(819)]=128,this[ye(1047)]=32,this[ye(881)]=this[ye(819)]-(this.blur_filterSize-1),this.blur_batch=[4,4],this[ye(630)]=0,this[ye(518)]=new Float32Array(4),this[ye(541)]=new Float32Array(128),this.volumeRender_Uniform_DataView=new Float32Array(128),this[ye(667)]=new Float32Array(128),this[ye(719)]=new Uint32Array(this[ye(667)].buffer),this.renderToCanvas_Uniform_DataView=new Float32Array([1,1,.1]),this[ye(681)]=new Uint32Array([27,0,0,0]),this.lastPickPositionValue=F[ye(807)](),this[ye(872)]=!0,this.allow_read_renderMaterial=!0,this[ye(954)]=!1,navigator[ye(437)].requestAdapter({powerPreference:"high-performance"}).then(Je=>{var Ft=ye;if(Je!==null){this[Ft(947)]=Je;var jt,gt=Array[Ft(1050)](Je[Ft(840)]||[]),nt={};for(jt in Je[Ft(608)])nt[jt]=Je[Ft(608)][jt];Je[Ft(935)]({requiredFeatures:gt,requiredLimits:nt})[Ft(442)](Ye=>{var tt=Ft;this[tt(1099)]=Ye,this[tt(778)]=Ye.limits.maxTextureDimension1D,this[tt(1019)]=tt(637),this.context=this[tt(1031)][tt(1088)][tt(678)]("webgpu"),this[tt(504)][tt(750)]({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493),toneMapping:{mode:tt(422)}}),this.fig[tt(515)]&&(this[tt(506)]=this[tt(1031)][tt(515)][tt(678)](tt(986)),this[tt(506)][tt(750)]({device:this[tt(1099)],format:this.presentationFormat,alphaMode:"premultiplied",toneMapping:{mode:tt(422)}})),this[tt(700)]=this[tt(504)].canvas[tt(864)]*this[tt(504)].canvas[tt(412)],globalThis.__ser_isDev__&&((Ye=document.createElement(tt(1088))).style=tt(558),document[tt(455)].appendChild(Ye),this[tt(797)]=Ye[tt(678)](tt(986)),this[tt(797)][tt(1088)].width=300,this.context1[tt(1088)].height=300,this.context1[tt(750)]({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493)}),(Ye=document[tt(602)](tt(1088)))[tt(887)]="position: absolute;top: 0;right: 0;z-index: 1;border: 1px solid white;pointer-events: none;",document[tt(455)][tt(621)](Ye),this[tt(733)]=Ye[tt(678)](tt(986)),this.context2.canvas[tt(412)]=this[tt(504)][tt(1088)][tt(412)]/5,this[tt(733)][tt(1088)][tt(864)]=this[tt(504)][tt(1088)].height/5,this.context2.configure({device:this.device,format:this[tt(1019)],alphaMode:tt(493)}),(Ye=document[tt(602)](tt(1088)))[tt(887)]="position: absolute;bottom: 0;right: 0;z-index: 1;border: 1px solid white;pointer-events: none;",document.body[tt(621)](Ye),this.context3=Ye[tt(678)](tt(986)),this[tt(976)][tt(1088)][tt(412)]=this[tt(504)].canvas[tt(412)]/5,this[tt(976)].canvas[tt(864)]=this[tt(504)][tt(1088)].height/5,this[tt(976)].configure({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493)}),(Ye=document.createElement(tt(1088))).style=tt(716),document[tt(455)][tt(621)](Ye),this[tt(657)]=Ye[tt(678)]("webgpu"),this[tt(657)][tt(1088)][tt(412)]=this[tt(504)][tt(1088)].width/5,this.context4[tt(1088)][tt(864)]=this.context[tt(1088)][tt(864)]/5,this[tt(657)][tt(750)]({device:this[tt(1099)],format:this.presentationFormat,alphaMode:tt(493)}));var Ye=this[tt(1099)].createCommandEncoder(),Et=Ye[tt(675)]({colorAttachments:[null]});this[tt(1035)]=!!Et.multiDrawIndirect,Et.end(),Ye[tt(1091)](),this[tt(900)](),this[tt(510)](),this[tt(1031)][tt(661)]()})}})}[o(900)](){var se=o;this[se(854)]=this.device[se(741)]({magFilter:"nearest",minFilter:se(919)}),this[se(636)]=this.device[se(741)]({magFilter:se(865),minFilter:se(865)}),this.samplerDepth=this[se(1099)].createSampler({compare:se(753),minFilter:se(865),magFilter:se(865)}),this[se(962)]=this[se(1099)][se(656)]({size:[this.maxTextureSize,this.maxTextureSize,1],format:se(618),usage:GPUTextureUsage[se(467)]|GPUTextureUsage[se(526)]}),this[se(978)]=this.device[se(656)]({size:[this.maxTextureSize,this[se(778)],1],format:"bc7-rgba-unorm",usage:GPUTextureUsage[se(467)]|GPUTextureUsage.COPY_DST}),this[se(777)]=this[se(1099)].createTexture({size:[this[se(778)],this[se(778)],1],format:se(618),usage:GPUTextureUsage[se(467)]|GPUTextureUsage.COPY_DST}),this[se(459)]=this[se(1099)].createBuffer({size:52428800,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this[se(959)]=this[se(1099)][se(690)]({size:52428800,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.readPickId_VmBuffer=this.device.createBuffer({size:4,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this[se(774)]=this.device[se(690)]({size:16,usage:GPUBufferUsage[se(683)]|GPUBufferUsage.COPY_DST}),this.zeroVmBuffer=this.device[se(690)]({size:52428800,usage:GPUBufferUsage[se(448)]}),this.scene_VmBuffer=this.device[se(690)]({size:this[se(1031)][se(735)][se(829)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this[se(449)]=this[se(1099)][se(690)]({size:336,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(873)]=this[se(1099)][se(690)]({size:this[se(1031)][se(547)].byteLength,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(522)]|GPUBufferUsage[se(448)]}),this[se(883)]=this[se(1099)][se(825)]({type:se(931),count:10}),this[se(692)]=this[se(1099)][se(690)]({size:10*BigUint64Array.BYTES_PER_ELEMENT,usage:GPUBufferUsage[se(415)]|GPUBufferUsage[se(448)]}),this[se(627)]=this[se(1099)][se(690)]({size:10*BigUint64Array[se(730)],usage:GPUBufferUsage[se(526)]|GPUBufferUsage[se(683)]}),this[se(556)]=this[se(1099)][se(690)]({size:6291456,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.renderMaterial_read_VmBuffer=this.device[se(690)]({size:6291456,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.modelVmBuffer=this[se(1099)].createBuffer({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST}),this[se(666)]=this[se(1099)][se(690)]({size:134217728,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(580)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage.STORAGE|GPUBufferUsage[se(526)]}),this.meshVmBuffer=this[se(1099)][se(690)]({size:524288e3,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST}),this.copyVmBuffer=this.device[se(690)]({size:8388608,usage:GPUBufferUsage[se(448)]|GPUBufferUsage[se(526)]}),this[se(792)]=this[se(1099)].createBuffer({size:8388608,usage:GPUBufferUsage.STORAGE|GPUBufferUsage[se(526)]}),this[se(1105)]=this.device[se(656)]({size:[this.context.canvas.width,this[se(504)][se(1088)].height,1],format:se(1018),usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]}),this[se(571)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)].canvas.height,1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(695)]=this.device[se(690)]({size:24,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC})}[o(510)](){var se=o;this[se(619)](),this[se(831)](),this.MakeCommandIntend(),this[se(909)](),this[se(411)](),this[se(480)](),this.LightBodiesAssociateIntend(),this[se(612)](),this.LightBodiesBounceOneIntend(),this[se(818)](),this[se(882)](),this[se(488)](),this[se(1106)](),this[se(822)](),this[se(1032)](),this[se(451)](),this[se(1031)].cesiumWidget&&this.RenderToCanvasIntend(),this.selectRender=new vt(this[se(1031)],this),this[se(869)]=new rt(this.fig,this),globalThis.__ser_isDev__&&this[se(1010)]()}[o(560)](se){var ye=o,Je=performance.now();switch(se.target){case this[ye(425)]:if(se[ye(1016)]&&se[ye(563)])this[ye(680)][ye(605)],se[ye(1016)],se.buf[ye(829)],this[ye(1099)][ye(704)][ye(1039)](this[ye(680)],se[ye(1016)],se[ye(563)]);else if(se[ye(413)])for(var Ft in se[ye(413)])this[ye(1099)].queue[ye(1039)](this.modelVmBuffer,~~Ft,se[ye(413)][Ft]);else se[ye(1089)]&&this[ye(1099)].queue[ye(1039)](this[ye(680)],se[ye(1016)],new ArrayBuffer(se[ye(1089)]));break;case this[ye(628)]:this.instanceVmBuffer[ye(605)],se.vmOffset,se[ye(563)].byteLength,this[ye(1099)][ye(704)][ye(1039)](this.instanceVmBuffer,se[ye(1016)],se[ye(563)]);break;case this[ye(767)]:this[ye(1092)][ye(605)],se[ye(1016)],se[ye(563)].byteLength,this[ye(1099)].queue.writeBuffer(this.meshVmBuffer,se[ye(1016)],se[ye(563)]);break;case this[ye(419)]:this[ye(580)][ye(605)],se[ye(1016)],se[ye(563)][ye(829)],this[ye(1099)][ye(704)][ye(1039)](this[ye(580)],se.vmOffset,se[ye(563)]);break;case this.vm_target_meshLod_up:this.updateMeshOffset_VmBuffer[ye(605)],se[ye(563)][ye(829)],this.device[ye(704)][ye(1039)](this[ye(711)],0,se.buf);var jt=this[ye(1099)][ye(981)]();this[ye(421)](jt,se[ye(815)]),this[ye(1099)][ye(704)][ye(635)]([jt[ye(1091)]()]);break;case this[ye(561)]:this[ye(1099)][ye(704)].writeTexture({texture:this[ye(962)],origin:se[ye(534)]},se.albedo_buf,se[ye(743)],se.size),se[ye(671)]&&this[ye(1099)].queue[ye(458)]({texture:this.normal_Texture,origin:se.origin},se[ye(671)],se[ye(743)],se[ye(605)]),se[ye(423)]&&this[ye(1099)][ye(704)][ye(458)]({texture:this[ye(777)],origin:se[ye(534)]},se[ye(423)],se[ye(743)],se[ye(605)]);break;case this[ye(903)]:this[ye(792)].size,se[ye(1016)],se.buf[ye(829)],this.device[ye(704)][ye(1039)](this.operateVmBuffer,se[ye(1016)],se[ye(563)])}Je<performance[ye(495)]()-5&&console.log(ye(927),performance.now()-Je,se[ye(723)])}OrganizeMeshVmData(se){var ye=o,Je,Ft=this[ye(1099)][ye(981)]();for(Je of se[ye(937)])this[ye(711)][ye(605)],Je[ye(563)][ye(829)],this.device[ye(704)][ye(1039)](this[ye(711)],0,Je[ye(563)]),this[ye(421)](Ft,Je[ye(815)]);for(let gt=0;gt<se[ye(652)][ye(800)];gt+=3){let nt=se[ye(652)][gt],Ze=se[ye(652)][gt+1],tt=se.copyList[gt+2];for(;;){if(!(tt>this[ye(647)][ye(605)])){Ft.copyBufferToBuffer(this[ye(1092)],Ze,this[ye(647)],0,tt),Ft.copyBufferToBuffer(this.copyVmBuffer,0,this.meshVmBuffer,nt,tt);break}var jt=this[ye(647)][ye(605)];Ft[ye(913)](this[ye(1092)],Ze,this[ye(647)],0,jt),Ft.copyBufferToBuffer(this[ye(647)],0,this[ye(1092)],nt,jt),Ze+=jt,nt+=jt,tt-=jt}}this[ye(1099)][ye(704)].submit([Ft[ye(1091)]()])}[o(619)](){var se=o;this[se(701)]=this[se(1099)][se(690)]({size:10*Math.ceil(262144)*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(1107)]=this[se(701)].size/4-100,this[se(1099)][se(704)][se(1039)](this.lightBodiesSpace_VmBuffer,0,new Uint32Array([10*this.lightBodiesSize,this[se(795)]<<1,2*this[se(795)]<<1,3*this[se(795)]<<1,4*this[se(795)]<<1,5*this[se(795)]<<1,6*this.lightBodiesSize<<1,7*this[se(795)]<<1,8*this.lightBodiesSize<<1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0])),this[se(907)]=this[se(1099)].createBuffer({size:8388608,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(975)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this[se(551)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(551)],0,new Uint32Array([1e4,1,1,0])),this[se(604)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(1002)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]})}[o(831)](){var se=o;this[se(985)]=this[se(1099)][se(690)]({size:this[se(556)].size-4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]}),this[se(788)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage.COPY_SRC});var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:6,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ye=(this[se(960)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(788)]}},{binding:2,resource:{buffer:this[se(985)]}},{binding:3,resource:{buffer:this[se(666)]}},{binding:4,resource:{buffer:this.meshVmBuffer}},{binding:5,resource:{buffer:this[se(680)]}},{binding:6,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ye]}));this[se(1097)]=this[se(1099)][se(1101)]({layout:ye,compute:{module:this.device[se(720)]({code:Z.code+H[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],instanceItemVmSize:this.instanceItemVmSize}}})}[o(1117)](se){var ye=o;se=se[ye(911)](),se[ye(501)](this[ye(1097)]),se.setBindGroup(0,this[ye(960)]),se[ye(624)](Math.ceil(this[ye(1031)].instancesCount/this[ye(1099)][ye(608)][ye(963)])),se.end()}[o(749)](){var se=o;this[se(812)]=this[se(1099)][se(690)]({size:32,usage:GPUBufferUsage.INDIRECT|GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST}),this[se(688)]=this.device[se(690)]({size:6291456,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(724)]}),this[se(920)]=this.device[se(690)]({size:this.renderMaterial_read_VmBuffer.size,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_SRC});var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:6,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:9,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this[se(544)]=this[se(1099)].createBindGroup({layout:ye,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:2,resource:{buffer:this[se(666)]}},{binding:3,resource:{buffer:this[se(1092)]}},{binding:4,resource:{buffer:this[se(680)]}},{binding:5,resource:{buffer:this[se(812)]}},{binding:6,resource:{buffer:this.renderIndex_VmBuffer}},{binding:8,resource:{buffer:this.renderMaterial_VmBuffer}},{binding:9,resource:{buffer:this.meshLodVmBuffer}}]}),this.device[se(917)]({bindGroupLayouts:[ye]})),ye=(this[se(668)]=this[se(1099)][se(1101)]({layout:ye,compute:{module:this[se(1099)].createShaderModule({code:Z[se(1022)]+G.code}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],maxRenderInstance:2*this.maxRenderInstance,multiDrawIndirect:this[se(1035)]?1:0,instanceItemVmSize:this[se(1025)]}}}),this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:6,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:7,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:9,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}));this[se(734)]=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(688)]}},{binding:1,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:2,resource:{buffer:this.indirect_render_VmBuffer}},{binding:3,resource:{buffer:this[se(920)]}},{binding:4,resource:{buffer:this[se(666)]}},{binding:5,resource:{buffer:this[se(1068)]}},{binding:6,resource:{buffer:this[se(604)]}},{binding:7,resource:{buffer:this[se(551)]}},{binding:8,resource:{buffer:this.readMesh_atomic_VmBuffer}},{binding:9,resource:{buffer:this[se(873)]}}]}),this[se(565)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this[se(1099)].createShaderModule({code:Z[se(1022)]+W[se(1022)]+z[se(1022)]}),entryPoint:se(817),constants:{multiDrawIndirect:this.multiDrawIndirect?1:0}}})}[o(462)](se){var ye=o;this.fig[ye(1069)]!==1&&(se.copyBufferToBuffer(this[ye(1056)],0,this[ye(812)],0,this[ye(812)][ye(605)]),(se=se.beginComputePass()).setPipeline(this[ye(668)]),se[ye(689)](0,this.MakeCommandComputeBingGroup),se[ye(624)](Math.ceil(this[ye(1031)][ye(1069)]/this[ye(1099)][ye(608)][ye(963)])),se.setPipeline(this[ye(565)]),se.setBindGroup(0,this[ye(734)]),se.dispatchWorkgroups(1),se[ye(482)]())}[o(612)](){var se=o;this.updateMeshOffset_VmBuffer=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST});var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:"read-only-storage"}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this[se(1041)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this.updateMeshOffset_VmBuffer}},{binding:1,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ye]}));this.updateMeshOffsetComputePipeline=this[se(1099)][se(1101)]({layout:ye,compute:{module:this[se(1099)][se(720)]({code:X[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)].maxComputeInvocationsPerWorkgroup}}})}[o(421)](se,ye){var Je=o;se=se[Je(911)]({timestampWrites:{querySet:this[Je(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}}),se[Je(501)](this.updateMeshOffsetComputePipeline),se.setBindGroup(0,this.updateMeshOffsetComputeBingGroup),se[Je(624)](Math[Je(552)](ye/this[Je(1099)][Je(608)][Je(963)])),se[Je(482)]()}[o(488)](){var se=o;this[se(912)]=new Uint32Array(this[se(858)]),this[se(912)][0]=1,this[se(846)]=new Float32Array(this.readMesh_Uniform_dataBuffer),this[se(502)]=this[se(1099)][se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:this.presentationFormat,usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage.COPY_DST|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]});var Je=2147483647,ye=-2147483648,Je=(this[se(1099)][se(704)][se(1039)](this.readMesh_atomic_VmBuffer,0,new Int32Array([Je,Je,Je,ye,ye,ye])),this[se(443)]=this.device.createBuffer({size:64,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this[se(498)]=16,this[se(752)]=Math.ceil(this[se(1102)][se(412)]/this[se(498)]),this[se(899)]=Math[se(552)](this[se(1102)][se(864)]/this[se(498)]),this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:"uniform"}},{binding:3,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this.meshRenderPositionTexture[se(980)],access:se(633)}},{binding:4,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(632)][se(980)],access:se(633)}},{binding:5,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(793)][se(980)],access:se(633)}},{binding:6,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:7,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:9,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this[se(502)][se(980)],access:se(714)}},{binding:10,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:11,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this[se(1105)][se(980)],access:"read-only"}},{binding:12,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(500)].format,access:se(633)}},{binding:13,visibility:GPUShaderStage[se(528)],sampler:{type:se(967)}},{binding:14,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(649),viewDimension:"2d-array"}},{binding:15,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}));this.readMeshComputeBingGroup=this[se(1099)][se(866)]({layout:Je,entries:[{binding:0,resource:{buffer:this[se(443)]}},{binding:1,resource:{buffer:this.lightInfo_VmBuffer}},{binding:2,resource:{buffer:this[se(1068)]}},{binding:3,resource:this[se(1102)][se(1045)]()},{binding:4,resource:this[se(632)][se(1045)]()},{binding:5,resource:this.meshRenderInstancePtrTexture[se(1045)]()},{binding:6,resource:{buffer:this[se(666)]}},{binding:7,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:8,resource:{buffer:this[se(604)]}},{binding:9,resource:this[se(502)][se(1045)]()},{binding:10,resource:{buffer:this[se(569)]}},{binding:11,resource:this[se(1105)][se(1045)]()},{binding:12,resource:this[se(500)][se(1045)]()},{binding:13,resource:this[se(875)]},{binding:14,resource:this.renderShadowDepthView1},{binding:15,resource:{buffer:this.readMesh_atomic_VmBuffer}}]}),this[se(492)]=this[se(1099)][se(1101)]({label:se(492),layout:this.device[se(917)]({bindGroupLayouts:[Je]}),compute:{module:this[se(1099)].createShaderModule({code:Z.code+q.code+oe[se(1022)]+z[se(1022)]+ae.code}),entryPoint:se(817),constants:{spaceUnit:this.spaceUnit}}})}[o(725)](se){var ye=o;this[ye(1099)].queue[ye(1039)](this[ye(443)],0,this[ye(858)]),se=se.beginComputePass({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ye(501)](this[ye(492)]),se.setBindGroup(0,this.readMeshComputeBingGroup),se.dispatchWorkgroups(this[ye(752)],this[ye(899)]),se[ye(482)]()}[o(769)](){var se=o;this[se(906)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(1099)][se(704)].writeBuffer(this[se(906)],0,this[se(653)]);var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]});this.lightBodiesAssociate_ComputeBingGroup=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(906)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this[se(779)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[ye]}),compute:{module:this[se(1099)][se(720)]({code:ie.code+ae[se(1022)]}),entryPoint:se(817),constants:{lightBodiesSize:this[se(795)],spaceTotalCount:this[se(1107)]}}})}LightBodiesAssociate(se){var ye=o;this[ye(653)][0]+=this[ye(786)],this[ye(653)][0]*this.lightBodiesSize>this[ye(1107)]&&(this[ye(653)][0]=10),this[ye(1099)][ye(704)][ye(1039)](this[ye(906)],0,this[ye(653)]),se=se[ye(911)]({timestampWrites:{querySet:this[ye(883)],beginningOfPassWriteIndex:6,endOfPassWriteIndex:7}}),se[ye(689)](0,this[ye(998)]),se.setPipeline(this[ye(779)]),se.dispatchWorkgroups(this[ye(915)]),se.end()}[o(823)](){var se=o,ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this[se(1015)]=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(975)]}},{binding:1,resource:{buffer:this[se(873)]}},{binding:2,resource:{buffer:this[se(701)]}},{binding:3,resource:{buffer:this[se(604)]}},{binding:4,resource:{buffer:this[se(1002)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ye]}));this[se(676)]=this[se(1099)][se(1101)]({layout:ye,compute:{module:this[se(1099)][se(720)]({code:z.code+te.code+ae.code}),entryPoint:"main",constants:{}}}),this[se(1040)]=this[se(1099)].createComputePipeline({layout:ye,compute:{module:this[se(1099)].createShaderModule({code:z.code+re[se(1022)]+ae[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(718)](se){var ye=o,Je=se[ye(911)]({timestampWrites:{querySet:this[ye(883)],beginningOfPassWriteIndex:2,endOfPassWriteIndex:3}});Je[ye(689)](0,this[ye(1015)]),Je.setPipeline(this[ye(676)]),Je[ye(624)](Math[ye(552)](this[ye(764)]/128)),Je.end(),this.LightBodiesRemoveDuplicatesIndirect(se)}[o(818)](){var se=o,ye=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this.LightBodiesRemoveDuplicatesComputeBingGroup=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(701)]}},{binding:1,resource:{buffer:this[se(604)]}},{binding:2,resource:{buffer:this.lightBodiesBounceTwo_VmBuffer}}]}),this.device[se(917)]({bindGroupLayouts:[ye]}));this.LightBodiesRemoveDuplicatesComputePipeline=this[se(1099)][se(1101)]({layout:ye,compute:{module:this.device[se(720)]({code:ee[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(694)](se){var ye=o;se=se[ye(911)](),se.setBindGroup(0,this[ye(713)]),se.setPipeline(this[ye(1055)]),se.dispatchWorkgroupsIndirect(this[ye(551)],0),se.end()}LightBodiesRemoveDuplicatesIndirectIntend(){var se=o,ye=this[se(1099)][se(648)]({entries:[{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ye=(this[se(1078)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:2,resource:{buffer:this[se(1002)]}},{binding:3,resource:{buffer:this[se(551)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ye]}));this[se(1077)]=this.device[se(1101)]({layout:ye,compute:{module:this[se(1099)][se(720)]({code:se(433)}),entryPoint:"main",constants:{lightBodiesBounceCount:this[se(764)]}}})}LightBodiesRemoveDuplicatesIndirect(se){var ye=o;se=se[ye(911)](),se[ye(689)](0,this[ye(1078)]),se[ye(501)](this[ye(1077)]),se.dispatchWorkgroups(1),se[ye(482)]()}MeshRenderIntend(){var se=o;this[se(717)]=this[se(1099)].createBuffer({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]}),this[se(762)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(526)]|GPUBufferUsage.COPY_SRC}),this[se(1099)][se(704)][se(1039)](this[se(762)],0,new Uint32Array([2,0,0,0])),this[se(472)]=this.device[se(656)]({size:[this[se(504)][se(1088)].width,this[se(504)][se(1088)][se(864)],1],format:se(435),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]}),this[se(1102)]=this[se(1099)][se(656)]({size:[this[se(504)].canvas.width,this.context[se(1088)][se(864)],1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(631)]=this[se(1099)][se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(632)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)].canvas[se(864)],1],format:"rgba32uint",usage:GPUTextureUsage[se(448)]|GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]}),this[se(793)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:se(958),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(569)]=this[se(1099)][se(690)]({size:this.context[se(1088)][se(412)]*this[se(504)][se(1088)][se(864)]*4*2,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC});let ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:"read-only-storage"}},{binding:2,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:3,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:4,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:5,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:6,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:8,visibility:GPUShaderStage[se(625)],texture:{sampleType:"float",viewDimension:"2d"}},{binding:9,visibility:GPUShaderStage[se(625)],buffer:{type:"storage"}},{binding:10,visibility:GPUShaderStage[se(625)],buffer:{type:se(742)}},{binding:11,visibility:GPUShaderStage.FRAGMENT,buffer:{type:se(742)}},{binding:12,visibility:GPUShaderStage.FRAGMENT,buffer:{type:se(742)}},{binding:13,visibility:GPUShaderStage[se(539)],buffer:{type:"read-only-storage"}},{binding:14,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}}]}),Je=(this[se(789)]=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(680)]}},{binding:2,resource:{buffer:this[se(666)]}},{binding:3,resource:{buffer:this.meshVmBuffer}},{binding:4,resource:this.samplerNearest},{binding:5,resource:{buffer:this[se(449)]}},{binding:6,resource:this.albedo_Texture[se(1045)]()},{binding:7,resource:this[se(978)].createView()},{binding:8,resource:this[se(777)][se(1045)]()},{binding:9,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:10,resource:{buffer:this.lightBodiesSpaceAdd_VmBuffer}},{binding:11,resource:{buffer:this[se(717)]}},{binding:12,resource:{buffer:this[se(569)]}},{binding:13,resource:{buffer:this[se(580)]}},{binding:14,resource:{buffer:this[se(792)]}}]}),this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage.VERTEX|GPUShaderStage[se(625)],buffer:{type:"read-only-storage"}}]})),Ft=(this.meshRenderBindGroup_renderIndex=this[se(1099)][se(866)]({layout:Je,entries:[{binding:0,resource:{buffer:this[se(688)]}}]}),this[se(1099)].createPipelineLayout({bindGroupLayouts:this[se(1035)]?[ye]:[ye,Je]})),jt=Y[se(1022)];this.multiDrawIndirect?jt=jt[se(926)]("@group(1) @binding(0) var<storage,read> renderIndex: array<u32>;",""):(jt=jt[se(926)]("let ri = vec2<u32>(input.instanceIndex,input.vertexIndex);",se(1009)),jt+=se(1093));var gt=this[se(1099)][se(720)]({code:Z[se(1022)]+jt});this.meshRenderPipeline=this[se(1099)][se(950)]({layout:Ft,vertex:{module:gt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:gt,entryPoint:se(1048),targets:[{format:this[se(1102)][se(980)]},{format:this[se(632)][se(980)]},{format:this[se(793)][se(980)]},{format:this.meshRender_prev_SSP_Texture[se(980)]}],constants:{spaceTotalCount:this[se(1107)],spaceUnit:this[se(598)]}},primitive:{topology:"triangle-list",frontFace:se(905),cullMode:se(590)},depthStencil:{format:this[se(472)][se(980)],depthCompare:se(753),depthWriteEnabled:!0}}),this[se(974)]={colorAttachments:[{view:this[se(1102)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this[se(632)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this.meshRenderInstancePtrTexture[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this[se(631)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}],depthStencilAttachment:{view:this.meshRenderDepthTexture[se(1045)](),depthClearValue:0,depthLoadOp:"clear",depthStoreOp:se(600),depthReadOnly:!1},timestampWrites:{querySet:this[se(883)],beginningOfPassWriteIndex:4,endOfPassWriteIndex:5}},this[se(1035)]||((gt=this[se(1099)][se(968)]({colorFormats:[this.meshRenderPositionTexture.format,this[se(632)][se(980)],this[se(793)][se(980)],this[se(631)][se(980)]],depthStencilFormat:this[se(472)][se(980)]})).setBindGroup(0,this[se(789)]),gt[se(501)](this[se(1087)]),gt[se(689)](1,this[se(481)]),gt[se(1044)](this[se(812)],0),this[se(874)]=gt.finish())}[o(939)](se){var ye=o;se[ye(913)](this.meshRenderAtomic_InitData_VmBuffer,0,this[ye(717)],0,16),se[ye(913)](this[ye(1056)],0,this[ye(907)],0,this[ye(907)].size),se=se[ye(675)](this[ye(974)]),this[ye(1035)]?(se.setBindGroup(0,this[ye(789)]),se[ye(501)](this[ye(1087)]),se[ye(1035)](this[ye(688)],0,393216,this.indirect_render_VmBuffer,0)):se[ye(834)]([this[ye(874)]]),se[ye(482)]()}[o(411)](){var se=o;this[se(500)]=this[se(1099)][se(656)]({size:[this[se(540)],this[se(540)],1],format:se(958),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.STORAGE_BINDING}),this.renderShadowDepthTexture=this[se(1099)].createTexture({size:[this[se(540)],this[se(540)],1],usage:GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)],format:se(435)}),this[se(707)]=this.renderShadowDepthTexture[se(1045)]({dimension:se(429),baseArrayLayer:0,arrayLayerCount:1});let ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:se(629)}},{binding:3,visibility:GPUShaderStage.VERTEX,buffer:{type:se(629)}},{binding:4,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:5,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}}]}),Je=(this[se(414)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(873)]}},{binding:2,resource:{buffer:this[se(680)]}},{binding:3,resource:{buffer:this.instanceVmBuffer}},{binding:4,resource:{buffer:this[se(1092)]}},{binding:5,resource:{buffer:this[se(580)]}}]}),this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(539)]|GPUShaderStage.FRAGMENT,buffer:{type:se(629)}}]})),Ft=(this.renderShadowBindGroup_renderIndex=this[se(1099)][se(866)]({layout:Je,entries:[{binding:0,resource:{buffer:this[se(688)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:this[se(1035)]?[ye]:[ye,Je]})),jt=K[se(1022)];this[se(1035)]?jt=jt[se(926)](se(904),""):(jt=jt[se(926)](se(929),se(1009)),jt+=se(1093));var gt=this[se(1099)][se(720)]({code:Z[se(1022)]+jt+z.code});this[se(1104)]=this[se(1099)].createRenderPipeline({label:se(1104),layout:Ft,vertex:{module:gt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:gt,entryPoint:"frag_main",targets:[{format:this[se(500)][se(980)]}],constants:{}},primitive:{topology:se(1062),frontFace:se(905),cullMode:se(590)},depthStencil:{format:this[se(559)][se(980)],depthCompare:se(753),depthWriteEnabled:!0}}),this.renderShadowRenderPassDescriptor={colorAttachments:[{view:this.renderShadowInstancePtrTexture.createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}],depthStencilAttachment:{view:this.renderShadowDepthView1,depthClearValue:0,depthLoadOp:se(971),depthStoreOp:"store",depthReadOnly:!1}},this[se(1035)]||((gt=this[se(1099)][se(968)]({colorFormats:[this[se(500)][se(980)]],depthStencilFormat:this[se(559)][se(980)]}))[se(689)](0,this[se(414)]),gt[se(501)](this.renderShadowPipeline),gt[se(689)](1,this.renderShadowBindGroup_renderIndex),gt[se(1044)](this[se(812)],0),this[se(496)]=gt[se(1091)]())}[o(537)](se){var ye=o;this.renderShadowRenderPassDescriptor[ye(1052)][ye(703)]=this[ye(707)],se=se[ye(675)](this[ye(1049)]),this[ye(1035)]?(se.setBindGroup(0,this[ye(414)]),se.setPipeline(this.renderShadowPipeline),se[ye(1035)](this[ye(688)],0,393216,this[ye(812)],0)):se[ye(834)]([this[ye(496)]]),se[ye(482)]()}[o(480)](){var se=o;this.dynamicSpaceIndirect_VmBuffer=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(526)]|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(596)],0,new Uint32Array([1,1,1,0]));var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ye=(this[se(691)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(907)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this.device[se(917)]({bindGroupLayouts:[ye]}));this[se(1007)]=this.device.createComputePipeline({layout:ye,compute:{module:this[se(1099)][se(720)]({code:J[se(1022)]}),entryPoint:se(817),constants:{spaceTotalCount:this[se(1107)],lightBodiesSize:this.lightBodiesSize}}})}DynamicSpace(se){var ye=o;se[ye(913)](this[ye(907)],4,this[ye(596)],0,4),se=se[ye(911)](),se[ye(689)](0,this.dynamicSpaceComputeBingGroup),se[ye(501)](this.dynamicSpaceComputePipeline),se[ye(538)](this.dynamicSpaceIndirect_VmBuffer,0),se[ye(482)]()}[o(1106)](){var se=o;this[se(620)]=this[se(1099)][se(690)]({size:4*this[se(944)].length,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this.device[se(704)][se(1039)](this[se(620)],0,this.ssrReflections_Uniform_DataView);var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(631)][se(980)],access:se(633)}},{binding:3,visibility:GPUShaderStage[se(528)],storageTexture:{format:this.meshRender_packData_Texture[se(980)],access:"read-only"}},{binding:4,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(649)}},{binding:5,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}},{binding:6,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:8,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(571)][se(980)],access:"write-only"}}]});this[se(961)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(620)]}},{binding:2,resource:this[se(631)][se(1045)]()},{binding:3,resource:this[se(632)].createView()},{binding:4,resource:this[se(472)][se(1045)]()},{binding:5,resource:this[se(636)]},{binding:6,resource:this.finalColor_Texture[se(1045)]()},{binding:7,resource:this[se(1105)].createView()},{binding:8,resource:this.ssr_color_accumulated_Texture[se(1045)]()}]}),this[se(1095)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this.device.createShaderModule({code:oe[se(1022)]+Te.code}),entryPoint:se(817),constants:{}}})}[o(428)](se){var ye=o;this[ye(944)][ye(895)](this[ye(1031)][ye(1008)]),this[ye(944)][ye(895)](this.fig[ye(838)],16),this[ye(944)][ye(895)](this[ye(1031)][ye(640)],32),this[ye(944)][ye(895)](this[ye(1031)][ye(1024)],48),this.ssrReflections_Uniform_DataView[64]=this.fig[ye(509)][ye(1108)],this.ssrReflections_Uniform_DataView[65]=this[ye(1031)].cameraParameter.far,this[ye(944)][66]=5,this[ye(944)][67]=2e3,this.ssrReflections_Uniform_DataView[68]=.5,this[ye(944)][69]=.2,this[ye(944)][70]=.95,this.ssrReflections_Uniform_DataView[71]=20,this[ye(944)][72]=1,this.ssrReflections_Uniform_DataView[73]=.9,this[ye(697)][74]=4294967295*Math.random(),this[ye(697)][75]=4294967295*Math[ye(1080)](),this.ssrReflections_Uniform_DataViewU32[76]=4294967295*Math[ye(1080)](),this[ye(1099)].queue[ye(1039)](this.ssrReflections_Uniform_VmBuffer,0,this.ssrReflections_Uniform_DataView);var Je=se[ye(911)]({timestampWrites:{querySet:this[ye(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}});Je[ye(689)](0,this[ye(961)]),Je[ye(501)](this.ssrReflectionsComputePipeline),Je.dispatchWorkgroups(this[ye(752)],this[ye(899)]),Je.end(),se[ye(603)]({texture:this.ssr_color_accumulated_Texture},{texture:this.ssr_color_Texture},{width:this[ye(1105)][ye(412)],height:this.ssr_color_Texture[ye(864)]})}ImageBlurIntend(){var se=o;this[se(891)]=this[se(1099)].createComputePipeline({layout:se(772),compute:{module:this.device[se(720)]({code:he.code})}});var ye,Je,Ft=this[se(1099)][se(656)]({size:{width:this[se(504)].canvas.width,height:this.context[se(1088)].height},format:this[se(1019)],usage:GPUTextureUsage.COPY_DST|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]}),jt=Ft,gt=(ye=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage[se(844)]}),new Uint32Array(ye.getMappedRange())[0]=0,ye[se(484)](),Je=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage.UNIFORM}),new Uint32Array(Je[se(827)]())[0]=1,Je[se(484)](),this[se(1099)].createBuffer({size:8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage[se(844)]}));this[se(1099)][se(704)][se(1039)](gt,0,new Uint32Array([this[se(630)],this[se(881)]])),this.blur_computeConstants_ComputeBingGroup=this[se(1099)][se(866)]({layout:this[se(891)][se(763)](0),entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:{buffer:gt}}]}),this[se(591)]=this.device.createBindGroup({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:jt[se(1045)]()},{binding:2,resource:Ft[se(1045)]()},{binding:3,resource:{buffer:ye}}]}),this[se(418)]=this[se(1099)][se(866)]({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:Ft[se(1045)]()},{binding:2,resource:jt.createView()},{binding:3,resource:{buffer:Je}}]})}[o(529)](se){var ye=o;if(0<this[ye(630)]){var Je=se[ye(911)]();Je.setPipeline(this.blurComputePipeline),Je[ye(689)](0,this[ye(1027)]);for(let Ft=0;Ft<this[ye(630)];++Ft)Je[ye(689)](1,this[ye(591)]),Je[ye(624)](Math[ye(552)](this[ye(504)][ye(1088)][ye(412)]/this.blur_blockDim),Math[ye(552)](this[ye(504)].canvas[ye(864)]/this[ye(533)][1])),Je[ye(689)](1,this[ye(418)]),Je[ye(624)](Math[ye(552)](this[ye(504)][ye(1088)][ye(412)]/this.blur_blockDim),Math[ye(552)](this[ye(504)][ye(1088)].height/this[ye(533)][1]));Je[ye(482)]()}}[o(1032)](){var se=o;this[se(982)]=this[se(1099)][se(690)]({size:4*this[se(518)][se(800)],usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]});var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.FRAGMENT,sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage.FRAGMENT,sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:4,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:5,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(445),viewDimension:"2d"}},{binding:6,visibility:GPUShaderStage[se(625)],texture:{sampleType:"uint",viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}}]}),Je=(this[se(851)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this.samplerLinear},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(502)][se(1045)]()},{binding:4,resource:this[se(966)][se(1045)]()},{binding:5,resource:this[se(632)].createView()},{binding:6,resource:this[se(793)][se(1045)]()},{binding:7,resource:{buffer:this[se(982)]}}]}),this[se(1099)].createShaderModule({code:me.code}));this[se(841)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this.presentationFormat}]},primitive:{topology:se(1062),frontFace:se(905),cullMode:se(590)}}),this[se(791)]={colorAttachments:[{view:this[se(504)][se(696)]()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}[o(686)](se){var ye=o;!this[ye(1031)][ye(835)][ye(953)][ye(450)][ye(995)]||this[ye(1031)][ye(835)][ye(953)].mouse.downLeftX==this.fig[ye(835)][ye(953)].mouse[ye(507)]&&this.fig[ye(835)].status[ye(450)][ye(679)]==this[ye(1031)][ye(835)][ye(953)][ye(450)].clientY?this[ye(518)][ye(895)]([0,0,0,0]):this[ye(518)][ye(895)]([(this[ye(1031)][ye(835)][ye(953)][ye(450)][ye(507)]-this[ye(1031)][ye(835)][ye(953)][ye(450)][ye(715)])/this.finalColor_Texture[ye(412)],(this[ye(1031)][ye(835)].status[ye(450)][ye(783)]-this[ye(1031)][ye(835)][ye(953)][ye(450)][ye(679)])/this[ye(502)][ye(864)],1]),this[ye(1099)][ye(704)][ye(1039)](this[ye(982)],0,this[ye(518)]),this[ye(791)][ye(566)][0][ye(703)]=this.context[ye(696)]()[ye(1045)](),se=se[ye(675)](this[ye(791)]),se.setPipeline(this.finalDisplayPipeline),se[ye(689)](0,this[ye(851)]),se[ye(729)](6),se[ye(482)]()}[o(822)](){var se=o;this.edgeStrength_finalColor_Texture=this[se(1099)].createTexture({dimension:"2d",size:[this.finalColor_Texture[se(412)],this[se(502)][se(864)],1],format:this.presentationFormat,usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]}),this.edgeStrength_Uniform_VmBuffer=this[se(1099)][se(690)]({size:4*this.edgeStrength_Uniform_DataView[se(800)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]});var ye=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(966)][se(980)],access:se(714)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(632)][se(980)],access:se(633)}}]});this.edgeStrengthComputeBingGroup=this[se(1099)].createBindGroup({layout:ye,entries:[{binding:0,resource:{buffer:this[se(426)]}},{binding:1,resource:this.edgeStrength_finalColor_Texture.createView()},{binding:2,resource:this[se(632)][se(1045)]()}]}),this[se(862)]=this[se(1099)][se(1101)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this[se(1099)].createShaderModule({code:Z.code+Ue[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(444)](se){var ye=o;se=se[ye(911)](),se[ye(501)](this[ye(862)]),se[ye(689)](0,this[ye(996)]),se.dispatchWorkgroups(this[ye(752)],this[ye(899)]),se[ye(482)]()}[o(1001)](){var se=o;this[se(876)]=this[se(1099)][se(656)]({dimension:"2d",size:[3600,1800,50],format:se(833),usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(467)]}),fetch(se(936))[se(442)](Ft=>{var jt=se;Ft[jt(871)]()[jt(442)](gt=>{var nt=jt;gt=new Float32Array(gt),this[nt(1099)][nt(704)].writeTexture({texture:this.volumeRender_3dData_Texture},gt,{bytesPerRow:7200,rowsPerImage:1800},[3600,1800,50])})});var ye=this[se(1099)][se(741)]({magFilter:se(865),minFilter:se(865),mipmapFilter:"linear",maxAnisotropy:1}),Je=(this[se(856)]=this[se(1099)][se(690)]({size:4*this[se(543)][se(800)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(502)][se(980)],access:se(714)}},{binding:3,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:se(429)}},{binding:4,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}}]}));this[se(582)]=this[se(1099)][se(866)]({layout:Je,entries:[{binding:0,resource:{buffer:this.volumeRender_Uniform_VmBuffer}},{binding:1,resource:{buffer:this[se(1068)]}},{binding:2,resource:this[se(502)][se(1045)]()},{binding:3,resource:this[se(876)].createView()},{binding:4,resource:ye}]}),this[se(615)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[Je]}),compute:{module:this[se(1099)].createShaderModule({code:Ae[se(1022)]+Z[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(440)](se){var ye=o;this[ye(543)][ye(895)](this[ye(1031)][ye(640)]),this.volumeRender_Uniform_DataView[ye(895)](this[ye(1031)][ye(587)],16),this[ye(1099)].queue[ye(1039)](this[ye(856)],0,this.volumeRender_Uniform_DataView),se=se[ye(911)]({timestampWrites:{querySet:this[ye(883)],beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se.setPipeline(this[ye(615)]),se[ye(689)](0,this.volumeRenderComputeBingGroup),se[ye(624)](this.readMesh_dispatchWorkgroupsX,this[ye(899)]),se[ye(482)]()}[o(889)](){var se=o;this.streamRender_Uniform_DataView[se(895)]([3600,1800,50],38),this[se(945)]=this[se(1099)][se(690)]({size:1296e6,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]}),fetch(se(1073)).then(Je=>{var Ft=se;Je[Ft(871)]()[Ft(442)](jt=>{var gt=Ft;this[gt(945)].size,jt[gt(829)],this[gt(1099)][gt(704)][gt(1039)](this[gt(945)],0,jt)})}),this.streamRender_Uniform_VmBuffer=this[se(1099)].createBuffer({size:4*this[se(667)].length,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(946)]=this.device[se(690)]({size:this[se(793)].width*this[se(793)][se(864)]*4*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]}),this[se(780)]=this[se(1099)].createBuffer({size:this[se(793)].width*this[se(793)][se(864)]*4*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]});var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:"read-only-storage"}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:5,visibility:GPUShaderStage[se(528)],storageTexture:{format:this.finalColor_Texture[se(980)],access:se(714)}}]});this[se(494)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:{buffer:this[se(843)]}},{binding:1,resource:{buffer:this.scene_VmBuffer}},{binding:2,resource:{buffer:this.streamRender_3dData_VmBuffer}},{binding:3,resource:{buffer:this[se(946)]}},{binding:4,resource:{buffer:this[se(780)]}},{binding:5,resource:this[se(502)].createView()}]}),this[se(570)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),compute:{module:this[se(1099)][se(720)]({code:Fe.code+Z.code+oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(949)](se){var ye=o;this.streamRender_Uniform_DataView.set(this.fig.projectToPixelMatrix),this[ye(667)][ye(895)](this[ye(1031)].viewMatrix,16),this[ye(667)][ye(895)]([.4,5,.95],32),this[ye(719)][ye(895)]([4294967295*Math.random(),4294967295*Math[ye(1080)](),4294967295*Math[ye(1080)]()],35),this[ye(1099)][ye(704)].writeBuffer(this[ye(843)],0,this.streamRender_Uniform_DataView),se=se[ye(911)]({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ye(501)](this[ye(570)]),se[ye(689)](0,this[ye(494)]),se[ye(624)](this[ye(752)],this[ye(899)]),se[ye(482)]()}[o(1010)](){var se=o,ye=this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:"depth",viewDimension:se(429)}}]}),Je=(this[se(957)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(707)]}]}),this[se(1099)][se(720)]({code:ue[se(1022)]})),ye=(this[se(852)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:se(1062),frontFace:se(905),cullMode:"back"}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),Je=(this[se(727)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this.samplerNearest},{binding:2,resource:this.finalColor_Texture[se(1045)]()}]}),this[se(1099)][se(720)]({code:ce[se(1022)]})),ye=(this[se(916)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this.presentationFormat}]},primitive:{topology:se(1062),frontFace:"ccw",cullMode:"back"}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:"non-filtering"}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),Je=(this[se(830)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(486)][se(1017)].createView()}]}),this[se(1099)].createShaderModule({code:de[se(1022)]})),ye=(this[se(641)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:"frag_main",targets:[{format:this[se(1019)]}]},primitive:{topology:"triangle-list",frontFace:se(905),cullMode:se(590)}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),Je=(this.renderDebugTest4BindGroup=this.device[se(866)]({layout:ye,entries:[{binding:0,resource:this.samplerLinear},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(869)].alpha_color_Texture.createView()}]}),this[se(1099)][se(720)]({code:fe[se(1022)]}));this.renderDebugTest4Pipeline=this[se(1099)].createRenderPipeline({layout:this.device[se(917)]({bindGroupLayouts:[ye]}),vertex:{module:Je,entryPoint:se(744),buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:"triangle-list",frontFace:"ccw",cullMode:se(590)}}),this[se(430)]={colorAttachments:[{view:this.context1[se(696)]().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}RenderDebugTest(se){var ye=o;this.renderDebugTestRenderPassDescriptor[ye(566)][0].view=this.context1[ye(696)]()[ye(1045)]();var Je=se[ye(675)](this[ye(430)]),Je=(Je[ye(501)](this[ye(852)]),Je[ye(689)](0,this.renderDebugTest1BindGroup),Je[ye(729)](6),Je[ye(482)](),this[ye(430)][ye(566)][0][ye(703)]=this[ye(733)][ye(696)]().createView(),se.beginRenderPass(this[ye(430)])),Je=(Je[ye(501)](this[ye(916)]),Je.setBindGroup(0,this[ye(727)]),Je[ye(729)](6),Je[ye(482)](),this[ye(430)][ye(566)][0][ye(703)]=this.context3[ye(696)]()[ye(1045)](),se[ye(675)](this.renderDebugTestRenderPassDescriptor)),Je=(Je[ye(501)](this[ye(641)]),Je.setBindGroup(0,this.renderDebugTest3BindGroup),Je.draw(6),Je[ye(482)](),this[ye(430)].colorAttachments[0][ye(703)]=this[ye(657)][ye(696)]()[ye(1045)](),se.beginRenderPass(this[ye(430)]));Je[ye(501)](this[ye(989)]),Je[ye(689)](0,this.renderDebugTest4BindGroup),Je[ye(729)](6),Je.end()}RenderToCanvasIntend(){var se=o;this[se(659)]=this[se(1099)][se(690)]({size:12,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]});var ye=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:"non-filtering"}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:3,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:4,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:5,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}}]}),ye=(this[se(928)]=this[se(1099)][se(866)]({layout:ye,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this.finalColor_Texture[se(1045)]()},{binding:3,resource:this[se(1102)][se(1045)]()},{binding:4,resource:{buffer:this[se(659)]}},{binding:5,resource:{buffer:this[se(1068)]}}]}),this.device[se(917)]({bindGroupLayouts:[ye]})),Je=this[se(1099)][se(720)]({code:Z[se(1022)]+it.code});this[se(805)]=this[se(1099)].createRenderPipeline({label:se(781),layout:ye,vertex:{module:Je,entryPoint:"vert_main",buffers:[]},fragment:{module:Je,entryPoint:se(1048),targets:[{format:this.presentationFormat},{format:this[se(1019)]}],constants:{canvasSizeWidth:this[se(472)][se(412)],canvasSizeHeight:this[se(472)][se(864)]}},primitive:{topology:se(1062),frontFace:"ccw",cullMode:"back"}}),this[se(660)]={label:se(1098),colorAttachments:[{view:this[se(504)].getCurrentTexture()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:"store"},{view:this[se(506)].getCurrentTexture()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:"store"}]}}RenderToCanvas(se){var ye=o;this[ye(1004)][0]=this[ye(1031)][ye(672)][ye(859)].frameState.useLogDepth?1:0,this[ye(1004)][1]=this[ye(1031)][ye(672)].scene.context[ye(420)][ye(1003)].x,this[ye(1004)][2]=this.fig[ye(672)][ye(859)][ye(504)][ye(420)][ye(794)],this[ye(1099)][ye(704)][ye(1039)](this[ye(659)],0,this[ye(1004)]),this[ye(660)][ye(566)][0][ye(703)]=this[ye(504)][ye(696)]()[ye(1045)](),this.renderToCanvasRenderPassDescriptor.colorAttachments[1].view=this[ye(506)][ye(696)]()[ye(1045)](),se=se.beginRenderPass(this[ye(660)]),se.setPipeline(this.renderToCanvasPipeline),se[ye(689)](0,this[ye(928)]),se.draw(6),se[ye(482)]()}[o(451)](){var se=o;this[se(888)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this.voxelRender_Indirect_VmBuffer=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(951)],0,new Uint32Array([this.spaceTotalCount/10-200,1,100,0]));var Je=this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)]|GPUShaderStage[se(539)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(625)]|GPUShaderStage[se(539)],buffer:{type:"uniform"}},{binding:2,visibility:GPUShaderStage[se(625)]|GPUShaderStage.VERTEX,buffer:{type:se(629)}}]}),Je=(this[se(684)]=this.device.createBindGroup({layout:Je,entries:[{binding:0,resource:{buffer:this.voxelRender_Uniform_VmBuffer}},{binding:1,resource:{buffer:this.scene_VmBuffer}},{binding:2,resource:{buffer:this[se(701)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[Je]})),ye=this[se(1099)][se(720)]({code:Z[se(1022)]+we[se(1022)]}),Je={layout:Je,vertex:{module:ye,entryPoint:"vert_main",buffers:[],constants:{spaceUnit:this[se(598)],lightBodiesSize:this[se(795)]}},fragment:{module:ye,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:"point-list",frontFace:se(905),cullMode:se(863)}};this[se(588)]=this[se(1099)][se(950)](Je),this[se(1051)]={colorAttachments:[{view:this[se(504)][se(696)]().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}[o(814)](se){var ye=o;this[ye(1099)][ye(704)][ye(1039)](this[ye(888)],0,this[ye(681)]),this[ye(1051)].colorAttachments[0].view=this.context[ye(696)]()[ye(1045)](),se=se.beginRenderPass(this[ye(1051)]),se.setPipeline(this.voxelRenderPipeline),se.setBindGroup(0,this[ye(684)]),se[ye(1044)](this[ye(951)],0),se[ye(482)]()}[o(806)](se,ye){return new Promise((Je,Ft)=>{var jt=Zh,gt;this[jt(983)]?(this[jt(983)]=!1,(gt=this.device[jt(981)]())[jt(809)]({texture:this[jt(793)],mipLevel:0,origin:{x:se,y:ye},aspect:jt(768)},{buffer:this[jt(497)],offset:0,bytesPerRow:256*Math[jt(552)](4*this[jt(793)][jt(412)]/256),rowsPerImage:1},{width:1,height:1}),this.device.queue.submit([gt[jt(1091)]()]),this[jt(497)][jt(705)](GPUMapMode[jt(470)]).then(()=>{var nt=jt,Ze=this[nt(497)][nt(827)](0,4),Ze=new Uint32Array(Ze)[0];this[nt(497)].unmap(),this.readPickId_noLocking=!0,Je(Ze)})):Ft()})}[o(669)](se,ye){let Je=(Ft,jt)=>{var gt=Zh,nt=this[gt(1099)][gt(981)]();nt[gt(809)]({texture:this[gt(1102)],mipLevel:0,origin:{x:se,y:ye},aspect:gt(768)},{buffer:this.readPickPosition_VmBuffer,offset:0,bytesPerRow:256*Math[gt(552)](4*this[gt(1102)][gt(412)]*4/256),rowsPerImage:1},{width:1,height:1}),this.device[gt(704)][gt(635)]([nt[gt(1091)]()]),this.readPickPosition_VmBuffer[gt(705)](GPUMapMode[gt(470)])[gt(442)](()=>{var Ze=gt,tt=this[Ze(774)][Ze(827)](0,16),tt=Array[Ze(1050)](new Float32Array(tt));this[Ze(774)][Ze(484)](),this.readPickPosition_noLocking=!0,tt[3]!=0&&F[Ze(987)](tt,this[Ze(1031)][Ze(910)],this[Ze(979)]),Ft(this.lastPickPositionValue)})};return new Promise((Ft,jt)=>{var gt=Zh;this[gt(837)]?(this[gt(837)]=!1,Je(Ft)):setTimeout(()=>{Je(Ft)},10)})}[o(771)](){var se=o,ye;this[se(872)]&&this.fig.directData_Heartbeat&&(this[se(872)]=!1,this[se(1031)][se(606)]=!1,(ye=this.device[se(981)]())[se(913)](this[se(1056)],0,this[se(788)],0,4),this[se(1117)](ye),ye[se(913)](this.instancesArea_atomicData_VmBuffer,0,this[se(556)],0,4),ye[se(913)](this[se(985)],0,this[se(556)],4,this[se(985)][se(605)]),this.device.queue[se(635)]([ye[se(1091)]()]),this.pendingRequest_mesh_read_VmBuffer[se(705)](GPUMapMode.READ)[se(442)](()=>{var Je=se,Ft=this[Je(556)][Je(827)](0,this[Je(556)].size)[Je(712)](0);this.fig[Je(1067)].postMessage({msgType:Je(1071),buf:Ft},[Ft]),this[Je(556)].unmap(),this[Je(872)]=!0,setTimeout(()=>{this.need_read_renderMaterial=!0},500)}))}[o(756)](){var se=o,ye=this[se(1099)][se(981)]();ye.copyBufferToBuffer(this.zeroVmBuffer,0,this.meshRender_transparentColorData_VmBuffer,0,this[se(569)][se(605)]),this[se(1099)][se(704)][se(635)]([ye[se(1091)]()])}[o(991)](){var se=o;this[se(771)]();var ye=this[se(1099)][se(981)]();this[se(462)](ye),this[se(939)](ye),this[se(537)](ye),this[se(1031)].gi&&this[se(824)](ye),ye.copyBufferToBuffer(this[se(1056)],0,this[se(604)],0,this[se(604)][se(605)]),this[se(725)](ye),this[se(965)]&&this[se(1031)].kj&&ye[se(913)](this[se(946)],0,this[se(459)],0,128),this[se(1e3)]&&this[se(1031)][se(642)]&&ye[se(913)](this.lightInfo_VmBuffer,32,this.readTemp_VmBuffer2,0,64),this[se(808)]&&this[se(954)]&&ye[se(913)](this[se(920)],0,this.renderMaterial_read_VmBuffer,0,this[se(920)][se(605)]),this[se(486)].Render(ye),this[se(869)][se(991)](ye),globalThis[se(589)]&&this[se(973)](ye),this.fig[se(672)]?this[se(465)](ye):this[se(686)](ye),this[se(1031)].ksh&&this[se(814)](ye),this[se(710)]&&this.fig.xn&&(ye[se(803)](this[se(883)],0,10,this[se(692)],0),ye.copyBufferToBuffer(this[se(692)],0,this.timestampQueryResultBuffer,0,this.timestampQueryResultBuffer.size)),this[se(1099)][se(704)][se(635)]([ye[se(1091)]()]),this[se(808)]&&this.need_read_renderMaterial&&(this[se(808)]=!1,this[se(954)]=!1,this[se(1066)].mapAsync(GPUMapMode[se(470)])[se(442)](()=>{var Je=se,Ft=this[Je(1066)][Je(827)](0,this[Je(920)][Je(605)]).slice(0);this[Je(1066)][Je(484)](),this[Je(1031)][Je(1067)][Je(564)]({msgType:Je(1115),buf:Ft},[Ft]),this.allow_read_renderMaterial=!0})),this[se(965)]&&this[se(1031)].kj&&(this[se(1031)].kj=!1,this[se(965)]=!1,this.readTemp_VmBuffer[se(705)](GPUMapMode[se(470)])[se(442)](()=>{var Je=se,Ft=this[Je(459)][Je(827)](0,128),Ft=new Float32Array(Ft);console[Je(826)](Ft),this[Je(459)][Je(484)](),this[Je(965)]=!0})),this[se(1e3)]&&this[se(1031)][se(642)]&&(this.readTemp_noLocking2=!1,this[se(959)].mapAsync(GPUMapMode[se(470)]).then(()=>{var Je=se,Ft=this[Je(959)][Je(827)](0,10485760),Ft=(new Uint32Array(Ft),new Float32Array(Ft));console[Je(826)](Ft),this.readTemp_VmBuffer2[Je(484)](),this[Je(1e3)]=!0})),this[se(710)]&&this[se(1031)].xn&&(this[se(710)]=!1,this[se(627)][se(705)](GPUMapMode[se(470)])[se(442)](()=>{var Je=se,Ft=new BigUint64Array(this[Je(627)][Je(827)]());console[Je(826)](Je(421),(Number(Ft[1]-Ft[0])/1e3/1e3)[Je(942)](2),Je(646),(Number(Ft[3]-Ft[2])/1e3/1e3)[Je(942)](2),"    MeshRender",(Number(Ft[5]-Ft[4])/1e3/1e3)[Je(942)](2),Je(990),(Number(Ft[7]-Ft[6])/1e3/1e3)[Je(942)](2),Je(1065),(Number(Ft[9]-Ft[8])/1e3/1e3)[Je(942)](2)),this[Je(627)][Je(484)](),this[Je(710)]=!0}))}}class Dt{get[o(1046)](){var se=o;return this[se(845)]}set[o(1046)](se){var ye=o;this[ye(845)]=F[ye(760)](se)}get[o(723)](){return this._target}set[o(723)](se){var ye=o;this[ye(562)]=F[ye(760)](se)}get[o(796)](){var se=o,ye=F[se(665)](0,0,-1);return F[se(802)](ye,this[se(1116)])}constructor(se,ye){var Je=o;if(this[Je(845)]=F[Je(807)](0,0,0),this[Je(562)]=F[Je(807)](1,1,1),this[Je(1116)]=L[Je(626)](),this.worldMatrix=R[Je(626)](),this[Je(948)]=.2,this.zoomSpeed=3,this[Je(476)]=.1,this[Je(953)]={keyboard:{forward:!1,backward:!1,left:!1,right:!1,up:!1,down:!1,leftRoll:!1,rightRoll:!1,leftHeading:!1,rightHeading:!1,upPitch:!1,downPitch:!1,controlLeft:!1,shiftLeft:!1,speedUp:!1,speedDown:!1},mouse:{movementX:0,movementY:0,scroll:0,left:!1,right:!1,wheel:!1,button:0,downLeftX:0,downLeftY:0,upLeftX:0,upLeftY:0,downRightX:0,downRightY:0,upRightX:0,upRightY:0,clientX:0,clientY:0},downLeft_position:F[Je(807)](),upLeft_position:F[Je(807)]()},se){let Ft=(gt,nt)=>{var Ze=Je;switch(gt[Ze(1022)]){case"KeyW":this.status[Ze(521)][Ze(848)]=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(816):this[Ze(953)].keyboard[Ze(1057)]=nt,gt[Ze(1096)](),gt.stopPropagation();break;case Ze(1090):this[Ze(953)][Ze(521)].left=nt,gt[Ze(1096)](),gt.stopPropagation();break;case"KeyD":this[Ze(953)][Ze(521)][Ze(1034)]=nt,gt.preventDefault(),gt[Ze(517)]();break;case Ze(755):this[Ze(953)][Ze(521)].up=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(855):this.status[Ze(521)].down=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(901):this[Ze(953)][Ze(521)][Ze(1058)]=nt,gt.preventDefault(),gt.stopPropagation();break;case"KeyO":this[Ze(953)][Ze(521)][Ze(693)]=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(446):case Ze(1023):this[Ze(953)][Ze(521)][Ze(427)]=nt,gt.preventDefault(),gt[Ze(517)]();break;case"KeyK":case Ze(594):this[Ze(953)][Ze(521)][Ze(1061)]=nt,gt[Ze(1096)](),gt.stopPropagation();break;case Ze(1086):case Ze(532):this[Ze(953)][Ze(521)][Ze(773)]=nt,gt[Ze(1096)](),gt[Ze(517)]();break;case Ze(434):case Ze(519):this[Ze(953)][Ze(521)][Ze(861)]=nt,gt.preventDefault(),gt.stopPropagation();break;case"ControlLeft":this[Ze(953)].keyboard[Ze(511)]=nt;break;case Ze(970):this.status[Ze(521)][Ze(478)]=nt;break;case"KeyC":this[Ze(953)][Ze(521)][Ze(651)]=nt;break;case Ze(464):this.status.keyboard[Ze(1030)]=nt}},jt=(window[Je(801)](Je(499),gt=>Ft(gt,!0)),window[Je(801)]("keyup",gt=>Ft(gt,!1)),se[Je(801)]("contextmenu",function(gt){var nt=Je;gt[nt(1096)]()}),(gt,nt)=>{var Ze=Je;switch(this.status[Ze(450)][Ze(988)]=gt[Ze(988)],gt.button){case 0:(this[Ze(953)][Ze(450)][Ze(995)]=nt)?(this[Ze(953)][Ze(450)][Ze(715)]=gt.clientX,this[Ze(953)][Ze(450)][Ze(679)]=gt.clientY,ye[Ze(577)](gt[Ze(507)],gt[Ze(783)])[Ze(442)](tt=>{var Ye=Ze,Et;this[Ye(953)][Ye(416)]=F[Ye(807)](tt[0],tt[1],tt[2]),tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&this.status.keyboard[Ye(511)]&&(tt=this[Ye(953)][Ye(416)],Et=F.subtract(this.position,tt),F.normalize(Et,Et),Et=F.add(tt,F[Ye(708)](Et,20)),this.setTargetAndPosition(tt,Et))})):(this.status[Ze(450)][Ze(424)]=gt.clientX,this.status[Ze(450)][Ze(880)]=gt.clientY,ye[Ze(577)](gt[Ze(507)],gt.clientY).then(tt=>{var Ye=Ze;this[Ye(953)][Ye(436)]=F[Ye(807)](tt[0],tt[1],tt[2]),this[Ye(953)].downLeft_position[0]!=0&&this[Ye(953)][Ye(416)][1]!=0&&this[Ye(953)][Ye(416)][2]!=0&&this[Ye(953)].upLeft_position[0]!=0&&this[Ye(953)][Ye(436)][1]!=0&&this[Ye(953)].upLeft_position[2]!=0&&(F[Ye(601)](this[Ye(845)],F[Ye(601)](this[Ye(953)].upLeft_position,this[Ye(953)].downLeft_position),this[Ye(845)]),this.computeMatrix())}));break;case 1:this[Ze(953)][Ze(450)][Ze(460)]=nt;break;case 2:(this.status[Ze(450)].right=nt)?(this[Ze(953)][Ze(450)].downRightX=gt.clientX,this[Ze(953)][Ze(450)][Ze(524)]=gt[Ze(783)],ye[Ze(577)](gt[Ze(507)],gt[Ze(783)])[Ze(442)](tt=>{var Ye=Ze;tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&(this[Ye(723)]=F.create(tt[0],tt[1],tt[2]))})):(this[Ze(953)][Ze(450)].upRightX=gt[Ze(507)],this[Ze(953)][Ze(450)][Ze(798)]=gt[Ze(783)])}});se[Je(887)][Je(595)]=Je(536),se[Je(801)](Je(1006),gt=>jt(gt,!0)),se.addEventListener(Je(994),gt=>jt(gt,!1)),se[Je(801)](Je(972),gt=>{var nt=Je;this[nt(953)][nt(450)][nt(507)]=gt.clientX,this[nt(953)].mouse[nt(783)]=gt[nt(783)],(this[nt(953)][nt(450)][nt(995)]||this[nt(953)][nt(450)].right)&&(this[nt(953)][nt(450)][nt(884)]-=gt[nt(884)],this[nt(953)][nt(450)][nt(757)]-=gt[nt(757)])}),se[Je(801)](Je(460),gt=>{var nt=Je;this[nt(953)][nt(450)].scroll+=Math[nt(469)](gt.deltaY),gt[nt(1096)](),gt[nt(517)]()},{passive:!1})}}[o(1079)](jt,gt,Je=F.create(0,1,0)){var Ft=o;F[Ft(760)](jt,this[Ft(562)]),F[Ft(760)](gt,this[Ft(845)]);var gt=F.normalize(F[Ft(601)](gt,jt)),jt=F[Ft(665)](0,0,1),jt=(this[Ft(1116)]=L.rotationTo(jt,gt),F[Ft(802)](F[Ft(665)](0,1,0),this[Ft(1116)])),gt=F[Ft(542)](jt,Je);1e-7<F.length(gt)&&(jt=Math[Ft(785)](F.dot(jt,Je)),Je=L.fromAxisAngle(F[Ft(1085)](gt),jt),this[Ft(1116)]=L[Ft(645)](Je,this[Ft(1116)])),this[Ft(568)]()}update(se){var ye=o,Je,Ft=F[ye(802)](F[ye(665)](1,0,0),this.orientation),jt=F[ye(802)](F[ye(665)](0,1,0),this[ye(1116)]),gt=F[ye(802)](F[ye(665)](0,0,1),this[ye(1116)]);this[ye(953)][ye(450)][ye(884)]===0&&this[ye(953)][ye(450)][ye(757)]===0||(this[ye(953)].mouse[ye(988)]===2?(Je=this[ye(953)].mouse.movementX*this[ye(948)]*se,se=this[ye(953)][ye(450)][ye(757)]*this.rotationSpeed*se,se=L.fromAxisAngle(Ft,se),Je=L[ye(997)](jt,Je),se=L[ye(645)](se,Je),Je=F[ye(601)](this._position,this[ye(562)]),Je=F.transformQuat(Je,se),F.add(this[ye(562)],Je,this[ye(845)]),this[ye(1116)]=L[ye(645)](se,this[ye(1116)])):this[ye(953)].mouse[ye(988)]),this.status[ye(450)][ye(576)]!==0&&(Je=this.status[ye(450)][ye(576)]*this[ye(670)],F[ye(987)](this[ye(845)],F[ye(708)](gt,Je),this[ye(845)])),this[ye(953)][ye(521)].up&&F[ye(987)](this[ye(845)],F[ye(708)](jt,this[ye(953)][ye(521)].shiftLeft?4*this[ye(476)]:this[ye(476)]),this[ye(845)]),this[ye(953)].keyboard[ye(1064)]&&F.add(this[ye(845)],F.scale(jt,-(this[ye(953)][ye(521)][ye(478)]?4*this[ye(476)]:this[ye(476)])),this._position),this[ye(953)][ye(521)][ye(995)]&&F[ye(987)](this._position,F[ye(708)](Ft,-(this.status.keyboard[ye(478)]?4*this[ye(476)]:this[ye(476)])),this[ye(845)]),this[ye(953)][ye(521)][ye(1034)]&&F[ye(987)](this[ye(845)],F[ye(708)](Ft,this[ye(953)].keyboard[ye(478)]?4*this[ye(476)]:this[ye(476)]),this[ye(845)]),this[ye(953)].keyboard[ye(848)]&&F.add(this._position,F[ye(708)](gt,-(this[ye(953)][ye(521)][ye(478)]?4*this[ye(476)]:this[ye(476)])),this[ye(845)]),this.status[ye(521)][ye(1057)]&&F[ye(987)](this[ye(845)],F[ye(708)](gt,this[ye(953)][ye(521)].shiftLeft?4*this.keyboardSpeed:this[ye(476)]),this[ye(845)]),this[ye(953)][ye(521)][ye(1058)]&&(se=L[ye(997)](gt,-.01),this[ye(1116)]=L.multiply(se,this[ye(1116)])),this[ye(953)][ye(521)][ye(693)]&&(Je=L[ye(997)](gt,.01),this.orientation=L.multiply(Je,this.orientation)),this[ye(953)][ye(521)][ye(773)]&&(se=L[ye(997)](jt,.01),this.orientation=L[ye(645)](se,this[ye(1116)])),this.status[ye(521)].rightHeading&&(gt=L[ye(997)](jt,-.01),this[ye(1116)]=L[ye(645)](gt,this[ye(1116)])),this[ye(953)][ye(521)][ye(427)]&&(Je=L[ye(997)](Ft,.01),this.orientation=L[ye(645)](Je,this[ye(1116)])),this.status[ye(521)][ye(1061)]&&(se=L[ye(997)](Ft,-.01),this[ye(1116)]=L[ye(645)](se,this[ye(1116)])),this.status.keyboard[ye(651)]&&(this[ye(476)]-=.01*this[ye(476)],this.keyboardSpeed<.01)&&(this[ye(476)]=.01),this[ye(953)][ye(521)].speedUp&&(this.keyboardSpeed*=1.01),this[ye(568)](),this.status[ye(450)][ye(884)]=0,this.status[ye(450)][ye(757)]=0,this.status[ye(450)][ye(576)]=0}[o(568)](){var se=o;R[se(1094)](this[se(1116)],this[se(761)]),this[se(761)][12]=this[se(845)][0],this[se(761)][13]=this[se(845)][1],this[se(761)][14]=this._position[2]}}globalThis.__ser_isDev__=!1;class Lt{constructor(se){var ye=o;if(this[ye(1114)]=R,this[ye(930)]=B,this[ye(923)]=F,this[ye(754)]=O,this[ye(520)]=L,this[ye(677)]=1,this.dataCallBack={},this.modelData={},this[ye(606)]=!0,this.spaceIndex_Heartbeat=!0,this.xn=!1,this[ye(654)]=!1,this.kj=!1,this.kj2=!1,this.gi=!1,this[ye(922)]={type:1,direction:F[ye(1085)](F.create(-.378604181697245,.8191225954117374,.4309258025313624)),color:F[ye(807)](1,1,1)},this[ye(509)]={fov:2*Math.PI/5,aspect:1,near:.1,far:1e3},this[ye(1069)]=0,this[ye(910)]=F.create(),this.OnInitialized=()=>{},this[ye(886)]=(jt,gt)=>{},this[ye(573)]=jt=>{},this[ye(984)]="",this[ye(1005)]="",this[ye(737)]=Date[ye(495)](),this[ye(553)]=0,this.tempRL=!0,this[ye(479)]=!1,this[ye(745)]=new Float64Array(84),console[ye(826)]("ser_V20250613"),se&&se[ye(1074)]&&se[ye(993)]){if(this[ye(993)]=se[ye(993)],this[ye(672)]=se[ye(1074)],se.Widget.scene.ser)return void console[ye(505)](ye(1059));this.cesiumWidget[ye(859)][ye(555)]=this}this.cesiumWidget?(this[ye(1088)]=new OffscreenCanvas(this[ye(672)][ye(859)][ye(1088)].width,this[ye(672)].scene.canvas[ye(864)]),this.depthCanvas=new OffscreenCanvas(this[ye(672)][ye(859)].canvas[ye(412)],this[ye(672)][ye(859)][ye(1088)][ye(864)]),this[ye(835)]=new Dt(null,this)):(this[ye(1088)]=document[ye(602)](ye(1088)),this.canvas[ye(412)]=1920,this[ye(1088)][ye(864)]=970,document[ye(455)].appendChild(this[ye(1088)]),this[ye(835)]=new Dt(this[ye(1088)],this),this.camera[ye(1079)](F[ye(807)](0,0,0),F[ye(807)](0,100,0),F[ye(807)](0,1,0))),this[ye(1084)]=[],this[ye(735)]=new ArrayBuffer(512),this[ye(439)]=new Float32Array(this[ye(735)]),this[ye(952)]=new Uint32Array(this.scene_dataBuffer),this[ye(547)]=new ArrayBuffer(96),this[ye(1075)]=new Float32Array(this[ye(547)]),this.lightInfo_dataViewF32[0]=this[ye(922)][ye(468)],this[ye(1075)][ye(895)](this.lightInfo.direction,1),this[ye(1075)].set(this[ye(922)][ye(431)],4),this[ye(1008)]=R[ye(626)](),this[ye(587)]=R[ye(626)](),this[ye(838)]=R.identity(),this[ye(640)]=R[ye(626)](),this.projectionViewMatrix=R[ye(626)](),this[ye(1024)]=R[ye(626)]();let Je=!1,Ft=(jt,gt)=>{var nt=ye;switch(jt[nt(1022)]){case nt(650):Je=gt,jt[nt(1096)](),jt[nt(517)]();break;case nt(638):gt||(this[nt(479)]=!this[nt(479)])}};window[ye(801)](ye(499),jt=>Ft(jt,!0)),window[ye(801)](ye(575),jt=>Ft(jt,!1)),this[ye(702)]=new yt(this),se=new y(new URL(f.p+f.u(671),f.b)),this[ye(1067)]=se[ye(759)](),this[ye(1067)][ye(801)](ye(622),jt=>{var gt=ye;if(jt[gt(836)])switch(jt[gt(836)][gt(999)]){case gt(925):this[gt(925)][jt.data.cbId]?(jt[gt(836)][gt(832)](gt(914))?this.dataCallBack[jt[gt(836)][gt(941)]].resolve(jt[gt(836)][gt(914)]):jt[gt(836)][gt(832)](gt(593))&&this[gt(925)][jt.data[gt(941)]][gt(593)](jt[gt(836)][gt(593)]),delete this.dataCallBack[jt[gt(836)][gt(941)]]):globalThis[gt(564)](jt.data);break;case gt(617):for(var nt in jt[gt(836)][gt(512)])this.modelData[gt(832)](nt)?Object[gt(726)](this.modelData[nt],jt[gt(836)].modelData[nt]):this[gt(512)][nt]=jt[gt(836)][gt(512)][nt];this[gt(432)](),this.OnModelServer(jt.data[gt(512)],jt[gt(836)][gt(1109)]);break;case gt(573):this[gt(573)](jt[gt(836)][gt(839)]);break;case gt(560):if(jt[gt(836)].targets)for(var Ze of jt.data.targets)this[gt(702)].UpVmData(Ze);else this.renderEngine[gt(560)](jt[gt(836)]);break;case gt(992):this[gt(702)][gt(908)](jt[gt(836)]);break;case gt(771):this[gt(702)].VisibleTreeUpdate();break;case gt(699):this[gt(1069)]=jt[gt(836)][gt(1069)];break;case gt(581):this[gt(606)]=!0;break;case gt(847):this[gt(1036)]=!0}})}[o(661)](){var se=o;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(873)],0,this.lightInfo_dataBuffer,0,32),this[se(509)][se(787)]=this.canvas.width/this[se(1088)][se(864)],this[se(842)](),this[se(1067)].postMessage({msgType:se(661),maxTextureSize:this.renderEngine[se(778)],maxPixel:this[se(702)][se(700)],meshVmMaxOffset:this[se(702)].meshVmBuffer[se(605)]/4}),this[se(531)](),this[se(672)]?this[se(765)]():this[se(545)]()}[o(611)](se){var ye=o;se[ye(592)]("/")!==se[ye(800)]-1&&(se+="/");var Je=this[ye(1084)][ye(800)];for(let Ft=0;Ft<this[ye(1084)][ye(800)];Ft++)if(this.serverList[Ft]===se)return Ft;return this.serverList[ye(918)](se),this[ye(1067)][ye(564)]({msgType:ye(1103),serverUrl:se,serverId:Je}),Je}[o(545)](){let se=()=>{var ye=Zh;this[ye(991)](),requestAnimationFrame(se)};requestAnimationFrame(se)}[o(842)](){var se=o;this.cesiumWidget?(ye=this[se(672)][se(859)][se(504)].uniformState,this[se(1005)]=ye[se(747)][se(770)](),this.projectionMatrix=R.frustumReverseZ(ye[se(685)].z,ye._frustumPlanes.w,ye[se(685)].y,ye[se(685)].x,ye._currentFrustum.x,ye[se(490)].y)):this[se(838)]=R[se(1113)](this.cameraParameter.fov,this[se(509)].aspect,this[se(509)][se(1108)],this.cameraParameter[se(475)]),this[se(640)]=R[se(584)](this.projectionMatrix);var ye=R.setTranslation(R.scale(R.identity(),F.create(.5,.5,1)),F[se(807)](.5,.5,0)),ye=R[se(645)](ye,this[se(838)]);this[se(1024)]=R[se(645)]([this[se(1088)].width,0,0,0,0,this[se(1088)].height,0,0,0,0,1,0,0,0,0,1],ye)}[o(991)](){var se=o,ye,Je;this[se(672)]?(Je=this[se(672)][se(859)][se(504)][se(420)],this[se(835)][se(761)]=Je[se(483)],this[se(835)][se(845)][0]=Je[se(483)][12],this[se(835)][se(845)][1]=Je[se(483)][13],this[se(835)][se(845)][2]=Je._inverseView[14],Je[se(747)][se(770)]()!==this[se(1005)]&&(this[se(984)]="",this[se(842)]())):(ye=((Je=Date[se(495)]())-this[se(737)])/1e3,this[se(737)]=Je,this[se(835)].update(ye)),this.oldCameraData===this[se(835)][se(761)][se(770)]()&&this.instancesCount!==0||(this[se(984)]=this[se(835)][se(761)].toString(),Je=F[se(601)]([this[se(835)][se(761)][12],this[se(835)][se(761)][13],this[se(835)][se(761)][14]],this[se(910)]),(1e4<Math.abs(Je[0])||1e4<Math[se(811)](Je[1])||1e4<Math[se(811)](Je[2]))&&(this[se(910)][0]=this[se(835)][se(761)][12],this.accuracyOffset[1]=this[se(835)][se(761)][13],this[se(910)][2]=this[se(835)].worldMatrix[14],this.scene_dataViewF32[120]=this[se(910)][0],this[se(439)][121]=this[se(910)][1],this.scene_dataViewF32[122]=this[se(910)][2],this[se(432)]()),(ye=Array.from(this.camera[se(761)]))[12]-=this[se(910)][0],ye[13]-=this[se(910)][1],ye[14]-=this[se(910)][2],R[se(760)](ye,this[se(587)]),this[se(1008)]=R[se(584)](ye),R[se(645)](this.projectionMatrix,this.viewMatrix,this[se(574)]),this[se(706)]=R[se(584)](this[se(574)]),this[se(672)]&&(Je=R[se(645)](this[se(672)][se(859)][se(504)].uniformState._projection,this[se(1008)]),this[se(439)][se(895)](Je)),this[se(439)].set(this[se(1008)],16),this[se(439)][se(895)](this[se(574)],32),this[se(439)][se(895)](this[se(640)],72),this[se(439)].set(this[se(587)],88),this[se(439)][se(895)](this[se(706)],104),this[se(677)]++,1073741820<this[se(677)]&&(this[se(677)]=1),this[se(952)][48]=this.cameraId,this[se(439)][49]=ye[12],this.scene_dataViewF32[50]=ye[13],this[se(439)][51]=ye[14],this[se(439)][52]=this.canvas.width,this[se(439)][53]=this[se(1088)][se(864)],this[se(439)][54]=1,this.scene_dataViewF32[55]=0,this[se(702)].device[se(704)].writeBuffer(this[se(702)][se(1068)],0,this[se(735)]),this[se(1036)]&&(this[se(1036)]=!1,this.ddWorker[se(564)]({msgType:"CameraChange",viewMatrix:R.inverse(this[se(835)].worldMatrix),projectionMatrix:this[se(838)],cameraWorldPosition:this[se(835)].position,cameraId:this[se(677)]})),this[se(702)][se(756)]()),this[se(702)].Render(),this.scene_dataViewF32.set(this[se(574)],56),this[se(952)][55]++,1073741820<this[se(952)][73]&&(this[se(952)][55]=1),this.renderEngine.device.queue.writeBuffer(this[se(702)][se(1068)],224,this[se(735)],224),this[se(479)]&&(this[se(897)]?(this[se(1075)][1]+=.005,this[se(1075)][2]+=.005,this[se(1075)][3]-=.005,.35<this.lightInfo_dataViewF32[1]&&.92<this[se(1075)][2]&&this[se(1075)][3]<-.14&&(this.tempRL=!this[se(897)])):(this[se(1075)][1]-=.005,this.lightInfo_dataViewF32[2]-=.005,this.lightInfo_dataViewF32[3]+=.005,this.lightInfo_dataViewF32[1]<-.76&&this[se(1075)][2]<-.09&&.63<this.lightInfo_dataViewF32[3]&&(this[se(897)]=!this[se(897)])),this.renderEngine[se(1099)][se(704)][se(1039)](this[se(702)][se(873)],0,this[se(547)],0,32))}[o(586)](se){var ye=o,Je,Ft;this[ye(512)][se]&&(Je=this[ye(512)][se],Ft=new Uint32Array([1]),this[ye(702)][ye(1099)][ye(704)][ye(1039)](this[ye(702)][ye(680)],4*(Je[ye(1016)]+17),Ft),this[ye(1067)][ye(564)]({msgType:ye(892),modelId:se,status:1}))}HideModel(se){var ye=o,Je,Ft;this[ye(512)][se]&&(Je=this[ye(512)][se],Ft=new Uint32Array([0]),this[ye(702)][ye(1099)][ye(704)][ye(1039)](this[ye(702)][ye(680)],4*(Je[ye(1016)]+17),Ft),this[ye(1067)].postMessage({msgType:ye(892),modelId:se,status:0}))}PickId(se,ye){var Je=o;return this[Je(702)][Je(806)](se,ye).then(Ft=>new Promise((jt,gt)=>{var nt=Je,Ze=Date[nt(495)]();this[nt(925)][Ze]={resolve:tt=>{jt(tt)},reject:tt=>{gt()}},this[nt(1067)][nt(564)]({msgType:nt(616),instancePtr:Ft,cbId:Ze})}))}[o(527)](se,ye){var Je=o;return this.renderEngine[Je(806)](se,ye)}[o(577)](se,ye){var Je=o;return this[Je(702)].PickPosition(se,ye)}[o(766)](se,ye){var Je=o,Ft;this[Je(512)][se]&&((Ft=this[Je(512)][se])[Je(503)]=Array[Je(1050)](ye),(ye=Array.from(ye))[12]-=this.accuracyOffset[0],ye[13]-=this[Je(910)][1],ye[14]-=this[Je(910)][2],ye=new Float32Array(ye),this.renderEngine.device.queue[Je(1039)](this[Je(702)][Je(680)],4*Ft[Je(1016)],ye),this.ddWorker[Je(564)]({msgType:Je(766),modelId:se,modelMatrixArr:Ft[Je(503)]}))}[o(432)](){var se=o;for(var ye in this.modelData){var Je,ye=this[se(512)][ye];ye[se(1016)]&&((Je=Array.from(ye.transform))[12]-=this[se(910)][0],Je[13]-=this[se(910)][1],Je[14]-=this[se(910)][2],Je=new Float32Array(Je),this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(680)],4*ye[se(1016)],Je))}this[se(868)](),this.UpdateExplodeAccuracyOffset()}CreateMaterial(se){return new Promise((ye,Je)=>{var Ft=Zh,jt=Date[Ft(495)]();this[Ft(925)][jt]={resolve:ye,reject:Je},this[Ft(1067)].postMessage({msgType:Ft(634),color:se,cbId:jt})})}[o(898)](se,ye,Je,Ft){var jt=o;this[jt(1067)][jt(564)]({msgType:jt(898),modelId:se,materialId:ye,color:Je,overlay:Ft})}GetMaterial(se,ye){return new Promise((Je,Ft)=>{var jt=Zh,gt=Date.now();this[jt(925)][gt]={resolve:nt=>{Je(nt)},reject:nt=>{Ft()}},this[jt(1067)][jt(564)]({msgType:jt(879),modelId:se,materialId:ye,cbId:gt})})}SetInstanceMaterialByInstancePtr(se,ye){var Je=o;this.renderEngine[Je(1099)].queue[Je(1039)](this.renderEngine.instanceVmBuffer,4*(se+23),new Uint32Array([ye]))}[o(513)](se,ye){var Je=o;this.renderEngine[Je(1099)].queue[Je(1039)](this[Je(702)][Je(666)],4*(se+22),new Uint32Array([ye]))}SetInstanceMaterial(se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(810),materialPtr:se,idBuffer:ye.buffer},[ye[Je(877)]])}SetInstanceStatus(se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(969),status:se,idBuffer:ye[Je(877)]},[ye.buffer])}[o(896)](se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(896),transform:se,idBuffer:ye[Je(877)]},[ye[Je(877)]])}[o(477)](se){var ye=o;se=new Uint32Array(se),this[ye(1067)][ye(564)]({msgType:ye(477),idBuffer:se.buffer},[se[ye(877)]])}[o(878)](se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(878),materialPtr:se,idBuffer:ye[Je(877)]},[ye.buffer])}[o(1070)](se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:"SetInstanceStatusByComponentIds",status:se,idBuffer:ye.buffer},[ye.buffer])}[o(746)](se,ye){var Je=o;ye=new Uint32Array(ye),this[Je(1067)][Je(564)]({msgType:Je(746),transform:se,idBuffer:ye[Je(877)]},[ye[Je(877)]])}CancelInstanceTransformByComponentIds(se){var ye=o;se=new Uint32Array(se),this[ye(1067)].postMessage({msgType:ye(739),idBuffer:se[ye(877)]},[se.buffer])}SetInstanceMaterialByExtendedPropertiesId(se,ye){var Je=o;this.ddWorker.postMessage({msgType:Je(597),materialPtr:se,extendedPropertiesIds:ye})}[o(662)](se,ye){var Je=o;this.ddWorker[Je(564)]({msgType:"SetInstanceStatusByExtendedPropertiesId",status:se,extendedPropertiesIds:ye})}[o(609)](se,ye){var Je=o;this[Je(1067)][Je(564)]({msgType:Je(609),transform:se,extendedPropertiesIds:ye})}[o(977)](se){var ye=o;this[ye(1067)][ye(564)]({msgType:ye(977),extendedPropertiesIds:se})}[o(776)](se,ye,Je,Ft){return new Promise((jt,gt)=>{var nt=Zh,Ze=Date[nt(495)]();this[nt(925)][Ze]={resolve:jt,reject:gt},this[nt(1067)][nt(564)]({msgType:nt(776),x1:se,y1:ye,x2:Je,y2:Ft,width:this[nt(1088)].width,height:this[nt(1088)][nt(864)],cbId:Ze})})}[o(1012)](se,ye,Je){var Ft=o;if(se===void 0)this.clipPlane[0]=0;else{this[Ft(516)]=se,this[Ft(745)][0]=Je[Ft(800)]/4*(ye?-1:1),this[Ft(745)].set(Je,4);for(let gt=1;gt<=Math[Ft(811)](this[Ft(745)][0]);gt+=1){var jt=F[Ft(1085)]([this.clipPlane[4*gt],this[Ft(745)][4*gt+1],this[Ft(745)][4*gt+2]]);this[Ft(745)][4*gt]=jt[0],this[Ft(745)][4*gt+1]=jt[1],this[Ft(745)][4*gt+2]=jt[2]}}this[Ft(868)]()}[o(868)](){var se=o,ye=new Float32Array(84);if(this.clipPlane[0]!==0){var Je=Array.from(this[se(516)]),Ft=(Je[12]-=this[se(910)][0],Je[13]-=this[se(910)][1],Je[14]-=this.accuracyOffset[2],R[se(584)](Je,Je));for(let Qt=1;Qt<=Math[se(811)](this[se(745)][0]);Qt++){var Et=this[se(745)][4*Qt],jt=this.clipPlane[4*Qt+1],gt=this[se(745)][4*Qt+2],nt=this[se(745)][4*Qt+3],Ze=Et*Ft[0]+jt*Ft[1]+gt*Ft[2]+nt*Ft[3],tt=Et*Ft[4]+jt*Ft[5]+gt*Ft[6]+nt*Ft[7],Ye=Et*Ft[8]+jt*Ft[9]+gt*Ft[10]+nt*Ft[11],Et=Et*Ft[12]+jt*Ft[13]+gt*Ft[14]+nt*Ft[15];ye[4*Qt]=Ze,ye[4*Qt+1]=tt,ye[4*Qt+2]=Ye,ye[4*Qt+3]=Et}ye[0]=this[se(745)][0]}else ye[0]=0;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(449)],0,ye)}SetExplode(se,ye,Je,Ft,jt){var gt=o;se===void 0||Number.isNaN(se)||(this[gt(702)][gt(804)][0]=se),ye===void 0||Number[gt(1021)](ye)||(this[gt(702)][gt(804)][1]=ye),Je===void 0||Number.isNaN(Je)||(this[gt(702)].explodeParam[2]=Je),Ft&&3<=Ft.length&&(this[gt(702)][gt(804)][3]=Ft[0],this.renderEngine[gt(804)][4]=Ft[1],this.renderEngine.explodeParam[5]=Ft[2]),jt&&3<=jt.length&&(se=F[gt(1085)](jt),this[gt(702)][gt(804)][6]=se[0],this[gt(702)][gt(804)][7]=se[1],this[gt(702)][gt(804)][8]=se[2]),this.UpdateExplodeAccuracyOffset()}[o(1112)](){var se=o,ye=new Float32Array(this[se(702)][se(804)]);ye[3]-=this.accuracyOffset[0],ye[4]-=this.accuracyOffset[1],ye[5]-=this[se(910)][2],this[se(702)][se(1099)][se(704)].writeBuffer(this.renderEngine[se(792)],0,ye)}[o(765)](){var se=o;let ye=this[se(672)][se(859)];if(!ye.initFine){ye[se(456)]=!0;let Je={sources:[se(722)],defines:[]},Ft=new this[se(993)].ShaderSource({sources:[se(644)],defines:[]}),jt=new this[se(993)][se(860)](Je),gt=ye.context[se(867)].getShaderProgram({vertexShaderSource:Ft,fragmentShaderSource:jt}),nt=new this.Cesium[se(673)]({context:ye.context,attributes:[]}),Ze=(nt[se(1037)]=6,this[se(993)][se(1110)][se(639)]({depthTest:{enabled:!0,func:this[se(993)].WebGLConstants[se(1060)]}})),tt=new this.Cesium[se(613)]({wrapS:this[se(993)][se(1082)][se(784)],wrapT:this.Cesium[se(1082)][se(784)],minificationFilter:this[se(993)].TextureMinificationFilter[se(857)],magnificationFilter:this[se(993)][se(514)][se(857)]}),Ye={bimColorTexture:()=>(this[se(991)](),ye[se(1100)]?ye.serColorTexture[se(453)]({source:ye[se(555)][se(1088)],skipColorSpaceConversion:!0}):ye.serColorTexture=new this.Cesium[se(1038)]({context:ye[se(504)],source:ye.ser[se(1088)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ye[se(1100)]),bimDepthTexture:()=>(ye.serDepthTexture?ye.serDepthTexture[se(453)]({source:ye.ser[se(515)],skipColorSpaceConversion:!0}):ye[se(890)]=new this[se(993)][se(1038)]({context:ye[se(504)],source:ye[se(555)][se(515)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ye[se(890)])},Et=new this[se(993)][se(828)]({x:0,y:0,z:0},6379137),Qt=new this.Cesium[se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)].Pass.OPAQUE,boundingVolume:Et});Qt.derivedCommands[se(487)]={command:new this.Cesium[se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)][se(417)][se(623)],boundingVolume:Et}),shaderProgramId:gt.id},Qt[se(674)][se(487)][se(885)][se(674)]={depth:{command:new this[se(993)][se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)][se(417)][se(623)],boundingVolume:Et}),shaderProgramId:gt.id,depthOnlyCommand:new this[se(993)][se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)][se(417)][se(623)],boundingVolume:Et})}},Qt.derivedCommands[se(649)]={shaderProgramId:gt.id,depthOnlyCommand:new this.Cesium[se(579)]({shaderProgram:gt,uniformMap:Ye,renderState:Ze,vertexArray:nt,pass:this[se(993)][se(417)][se(623)],boundingVolume:Et})},Qt.fine=!0,ye.primitives[se(987)]({fine:!0,isDestroyed:()=>!1,update:()=>{ye.frameState.commandList.push(Qt)}})}}}return m}};function Zh(o,f){var m=e2e();return Zh=function(x,v){x=x-411;var y=m[x];return y},Zh(o,f)}typeof exports=="object"&&Are(698)==typeof module?module.exports=Zye():Are(728)==typeof define&&define[Are(567)]?define([],Zye):Are(698)==typeof exports?exports[Are(555)]=Zye():yRr.ser=Zye();function y2(o){this._earthCtrl=o,this._viewer=o.viewer,this._fig=null,this.serverAddress=""}y2.prototype.create=async function(){let o=this;return this._fig=new ser.serMain({Cesium:Ui,Widget:o._viewer}),await new Promise(f=>{o._fig.OnInitialized=()=>{f(o)}})};y2.prototype.setModelTransform=function(o,f){let m=Ee.toArray(Mr.eastNorthUpToFixedFrame(V.fromDegrees(f.lon,f.lat,f.height)));if(f.roll){let x=Ce.toRadians(f.roll??0),v=Ee.fromRotationTranslation(Yt.fromRotationZ(x));Ee.multiply(m,v,m)}this._fig.SetModelTransform(o,m)};y2.prototype.showModel=function(o){this._fig.ShowModel(o)};y2.prototype.hideModel=function(o){this._fig.HideModel(o)};y2.prototype.destroy=function(){this._fig.Destroy()};y2.prototype.addModelServer=async function(o){return this._fig.AddServer(o),await new Promise(f=>{this._fig.OnModelServer=(m,x)=>{this.modelList=m,f({modelList:m,serverId:x})}})};y2.prototype.getModelBoundingSphere=function(o){let f=this.modelList[o],m=Ee.multiplyByPoint(f.transform,V.fromArray(f.box),{}),x=Ee.multiplyByPoint(f.transform,V.fromArray(f.box,3),{});return Li.fromPoints([m,x],new Li)};y2.prototype.clickSem=function(o){let f=this,m=0;f._viewer.screenSpaceEventHandler.setInputAction(function(v){m!==0&&(f._fig.SetInstanceStatusByInstancePtr(m,1),m=0),f._fig.PickId(v.position.x,v.position.y).then(y=>{y&&(m=y.instancePtr,f._fig.SetInstanceStatusByInstancePtr(y.instancePtr,2)),o&&o(y)})},Di.LEFT_CLICK)};y2.prototype.unSelect=function(o){o!==0&&this._fig.SetInstanceStatusByInstancePtr(o,1)};y2.prototype.pickWorldPosition=function(o,f,m){this._fig.PickWorldPosition(o,f).then(x=>{m&&m(x)})};y2.prototype.semModeClipping=function(o){let f=this;return new Aye(f._earthCtrl,f._fig,o)};y2.prototype.setMaterialColor=function(o,f,m,x){this._fig.SetMaterialColor(o,f,[m.red,m.green,m.blue,m.alpha],x)};y2.prototype.choice=function(o){return o=o??{},o.bim=o.ser??this._fig,new Sye(o,this._earthCtrl,Ui)};y2.prototype.setExplode=function(o,f,m,x,v){this._fig.SetExplode(o,f,m,x,v)};y2.prototype.showComponent=function(o){o.showComponentArr.length>0&&this._fig.SetInstanceStatus(o.status,o.showComponentArr)};var rkt=y2;var CRr=function(o){if(!o.extensionsUsed||!o.extensionsRequired)return;let f=o.extensionsUsed.indexOf("KHR_technique_webgl"),m=o.extensionsRequired.indexOf("KHR_technique_webgl");if(f!==-1){o.extensionsRequired.splice(m,1,"KHR_techniques_webgl"),o.extensionsUsed.splice(f,1,"KHR_techniques_webgl"),o.extensions=o.extensions||{},o.extensions.KHR_techniques_webgl={},o.extensions.KHR_techniques_webgl.programs=o.programs,o.extensions.KHR_techniques_webgl.shaders=o.shaders,o.extensions.KHR_techniques_webgl.techniques=o.techniques;let x=o.extensions.KHR_techniques_webgl.techniques;o.materials.forEach(function(v,y){o.materials[y].extensions.KHR_technique_webgl.values=o.materials[y].values,o.materials[y].extensions.KHR_techniques_webgl=o.materials[y].extensions.KHR_technique_webgl;let C=o.materials[y].extensions.KHR_techniques_webgl;for(let w in C.values){let T=x[C.technique].uniforms;for(let E in T)if(T[E]===w){C.values[E]=C.values[w],delete C.values[w];break}}}),x.forEach(function(v){for(let y in v.attributes){let C=v.attributes[y];v.attributes[y]=v.parameters[C]}for(let y in v.uniforms){let C=v.uniforms[y];v.uniforms[y]=v.parameters[C]}})}},i2e=typeof window<"u"?window:typeof self<"u"?self:{},t2e=setTimeout(()=>{t2e=void 0,i2e.logSmartEarth&&i2e.logSmartEarth()},1e4);function nkt(o,f){ma.supportsImageRenderingPixelated()&&(o.viewer.resolutionScale=f?window.devicePixelRatio:1),o.viewer.scene.fxaa=f,o.viewer.scene.postProcessStages.fxaa.enabled=f}function Rd(o,f={},m,x,v){this._core=new AC(this),this._cesium=Ui,t2e&&(clearTimeout(t2e),t2e=void 0,f.VERSION!==!1&&i2e.logSmartEarth&&i2e.logSmartEarth()),this.G=65535,m=m??pi.EMPTY_OBJECT,N(f.StaticFileBaseUrl)?globalThis.GEOWORLD_BASE_URL=f.StaticFileBaseUrl:globalThis.GEOWORLD_BASE_URL="./CimSDK/",globalThis.CESIUM_BASE_URL=globalThis.GEOWORLD_BASE_URL,globalThis.SmartEarthRootUrl=globalThis.GEOWORLD_BASE_URL,this.LayuiPromise=Kze();let y=f.language??M0.ZH_CN;this.i18n=new Z4t(y),f.toolbar=f.toolbar??!1,f.baseLayerPicker=f.baseLayerPicker??!1,f.shadows=!1,f.skyAtmosphere=new XZ,f.terrainShadows=Zl.ENABLED,f.animation=f.animation??!0,f.shouldAnimate=!0,f.fullscreenButton=f.fullscreenButton??!1,f.geocoder=f.geocoder??!1,f.homeButton=!1,f.infoBox=!1,f.selectionIndicator=!1,f.timeline=f.timeline??!1,f.defaultImagery=f.defaultImagery??!0,f.printLogo=f.printLogo??!0,f.printLog=f.printLog??f.printLogo,f.infoBar=f.infoBar??!0,f.navigationHelpButton=!1,f.imageryProviderViewModels=[],f.terrainProviderViewModels=[];let{webgl:C={}}=f.contextOptions||{},{alpha:w=!1}=C;f.contextOptions={webgl:{alpha:w,preserveDrawingBuffer:!0},failIfMajorPerformanceCaveat:!1,ellipsoidCoordinates:f.ellipsoidCoordinates},f.navigation=!0,f.disableRightClickMenu=!0,typeof f=="string"?f.baseLayer=new Pp(new Gw({url:f})):(f.url&&(f.baseLayer=new Pp(new Gw({url:f.url}))),this._core.extend(f,f,!0));let T=N(f.baseLayer),E;if(f.baseLayerPicker){T=!0;let I=this.getAllImageryView();if(f.basemaps)f.basemaps.forEach(P=>{f.imageryProviderViewModels.push(I[P])});else for(let P in I)f.imageryProviderViewModels.push(I[P])}else!f.imageryProvider&&!f.baseLayer?(E=Pp.fromProviderAsync(Gw.fromUrl(`${globalThis.GEOWORLD_BASE_URL}Workers/image/earth.jpg`)),f.baseLayer=E):(T=!0,f.imageryProvider&&(f.baseLayer=Pp.fromProviderAsync(f.imageryProvider)));let A={destination:V.fromDegrees(f.x?f.x:93.53987,f.y?f.y:24.77445,f.z?f.z:257935006e-1),orientation:{heading:Ce.toRadians(f.heading??0),pitch:Ce.toRadians(f.pitch??-90),roll:Ce.toRadians(f.roll??0)},duration:f.duration||1};if(f.removeGlobe&&(f.skyBox=!1,f.skyAtmosphere=!1,f.contextOptions={failIfMajorPerformanceCaveat:!1,webgl:{alpha:!0,preserveDrawingBuffer:!0}}),this._Viewer=new A0e(o,f),this._tree=x,this._Viewer.scene.globe.baseColor=ze.WHITE,this._Viewer.shadowMap.size=2048,this._Viewer._cesiumWidget._creditContainer.style.display="none",this._Viewer.terrainShadows=Zl.ENABLED,this._AttachEvent=void 0,this._DetachEvent=void 0,this._Analysis=void 0,this._Navigate=void 0,this._Creator=void 0,this._Command=void 0,this._ProjectTree=void 0,this._Coordinate=void 0,this._VectorTileProvider=void 0,this._simulate=void 0,this.toolbar=f.toolbar,f.removeGlobe){this._Viewer.imageryLayers.removeAll(),this._Viewer.shadows=!1,this._Viewer.scene.fog.enabled=!1,this._Viewer.scene.globe.show=!1;let I="rgba(0,0,0,0)";this._Viewer.scene.backgroundColor=ze.fromCssColorString(I),this._Viewer.scene.light=new I7({direction:new V(1,-.9,-.9)}),f.backgroundImage&&(this._Viewer.container.style.backgroundImage=`url(${f.backgroundImage})`)}else this._Viewer.scene.globe.depthTestAgainstTerrain=!0;if(f.defaultImagery&&!T&&window.navigator.onLine&&this.judgeOnline().then(async I=>{I&&(await this._factory.createImageryLayer({enablePickFeatures:!1,sourceType:"arcgis",url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",zIndex:0}),this._Viewer.imageryLayers.lowerToBottom(E))}).catch(I=>{console.warn("The current network cannot be connected, so we will not load the online Imagery")}),this.coreMap=this._Viewer,this.coreMap.language=this.language,this._environment=new Xpe(this),this._camera=new bpe(this),this._measure=new kpe(this),this._shapeTool=new ETt(this),this._editTool=new Upe(this),this._factory=new nR(this),this._tools=new spe(this),this._edit=new $ve(this),this._analysis=new bye(this),this._userScene=new Hve(this,m),this._view=new gBt(this),this._bim=new CBt(this),this._ser=new rkt(this),this._MilitaryPlotting=new qye(this),this._atmosphere=new uwt(this),this._simulate=new ikt(this),f.infoBar&&(this._infoBar=new vNt(this)),f.maxViewHeight&&(this._Viewer.scene.screenSpaceCameraController.maximumZoomDistance=f.maxViewHeight),f.minViewHeight||f.maxViewPitch){this.minViewHeight=f.minViewHeight,this.maxViewPitch=f.maxViewPitch&&Ce.toRadians(f.maxViewPitch);let I=0,P=this._Viewer.scene,D=!1;if(this.maxViewPitch){let R=new kr(this._Viewer.scene.canvas);R.setInputAction(()=>{D=!0},Di.MIDDLE_DOWN),R.setInputAction(()=>{D=!1},Di.MIDDLE_UP),R.setInputAction(()=>{D=!0},Di.RIGHT_DOWN),R.setInputAction(()=>{D=!1},Di.RIGHT_UP)}this._Viewer.scene.preRender.addEventListener(()=>{let R=this._Viewer.camera;if(!(!R||!R.positionCartographic)){if(this.maxViewPitch){let L=R.pitch;D&&L>this.maxViewPitch?(L=this.maxViewPitch,R.setView({destination:this.oldPosition||R.position.clone(),orientation:{heading:R.heading,pitch:L,roll:0}})):this.oldPosition=R.position.clone()}if(this.minViewHeight){I=P.globe.getHeight(R.positionCartographic)||I;let O,F,B=R.positionCartographic.height-I;this._Viewer.scene.globe.translucency.enabled||this._Analysis&&(this._Analysis._UndergroundMode&&this._Analysis._UndergroundMode.isUndergroundMode||this._Analysis._StreetView&&this._Analysis._StreetView.isStreetView)?(O=R.positionCartographic.height<-200,F=-200):(O=B<this.minViewHeight,F=I+this.minViewHeight);let H=R.pitch<0?R.pitch:0;O?R.setView({destination:this.oldPosition||V.fromRadians(R.positionCartographic.longitude,R.positionCartographic.latitude,F),orientation:{heading:R.heading,pitch:H,roll:0}}):this.oldPosition=R.position.clone()}}})}let S={};Ks.DEFAULT_VIEW_RECTANGLE=Si.fromDegrees(79,0,130,60),f.navigationOption=f.navigationOption??pi.EMPTY_OBJECT,S.defaultResetView=f.navigationOption.defaultResetView??kt.fromCartesian(A.destination),S.enableCompass=f.navigationOption.enableCompass??!0,S.enableZoomControls=f.navigationOption.enableZoomControls??!0,S.enableDistanceLegend=f.navigationOption.enableDistanceLegend??!0,S.enableCompassOuterRing=f.navigationOption.enableCompassOuterRing??!0,this._Viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(this._cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._Viewer.extend(this._cesium.viewerCesiumNavigationMixin,S),this.camera.setView(A),v&&typeof v=="function"&&v(),yNt.parse(this,m),f.mouseDownView&&this.mouseDownView(!0),f.printLog&&this.addLogo(),Object.defineProperties(Dv.prototype,{_cachedGltf:{configurable:!0,set:function(I){this._vtxf_cachedGltf=I,this._vtxf_cachedGltf&&this._vtxf_cachedGltf._gltf&&CRr(this._vtxf_cachedGltf._gltf)},get:function(){return this._vtxf_cachedGltf}}}),f.disableRightClickMenu&&(document.oncontextmenu=function(){return!1});let M=function(I){if(I.cesiumWidget._supportsImageRenderingPixelated&&window&&window.devicePixelRatio){let D=window.devicePixelRatio;for(;D>=2;)D/=2;I.resolutionScale=D}};Ww.prototype.getRenderedBestLevelInfo=function(){let I=this.getRenderedLevelInfo(),P=0;for(let D in I)P<Number(D)&&(P=Number(D));return{bestLevel:P,count:I[P]}},Ww.prototype.getRenderedLevelInfo=function(){let I=[];return this._tilesToRender.forEach(function(P){I[P.level]===void 0&&(I[P.level]=0,I[P.level]++)}),I},nkt(this,!0)}Object.defineProperties(Rd.prototype,{environment:{get:function(){return this._environment}},entities:{get:function(){return this._Viewer.dataSourceDisplay.defaultDataSource.entities}},enableAA:{set:function(o){nkt(this,o)}},primitives:{get:function(){return this.coreMap.scene.primitives}},imageryLayers:{get:function(){return this.coreMap.imageryLayers}},view:{get:function(){return this._view}},terrainProvider:{get:function(){return this.coreMap.terrainProvider}},dataSources:{get:function(){return this._Viewer.dataSources}},camera:{get:function(){return this._camera}},showFPS:{get:function(){return this.viewer.scene.debugShowFramesPerSecond},set:function(o){this.viewer.scene.debugShowFramesPerSecond=o}},depthTerrain:{get:function(){return this.viewer.scene.globe.depthTestAgainstTerrain},set:function(o){this.viewer.scene.globe.depthTestAgainstTerrain=o}},measure:{get:function(){return this._measure}},shapeTool:{get:function(){return this._shapeTool}},editTool:{get:function(){return this._editTool}},edit:{get:function(){return this._edit}},analysis:{get:function(){return this._analysis}},factory:{get:function(){return this._factory}},userScene:{get:function(){return this._userScene}},tools:{get:function(){return this._tools}},hdr:{get:function(){return this.coreMap.scene.highDynamicRange},set:function(o){this.coreMap.scene.highDynamicRange=o}},sunGlowFactor:{set:function(o){this.coreMap.scene.sun.glowFactor=o},get:function(){return this.coreMap.scene.sun.glowFactor}},shadows:{get:function(){return this.coreMap.scene.shadowMap.enabled},set:function(o){this.coreMap.scene.shadowMap.enabled=o}},terrainShadows:{get:function(){return this.coreMap.scene.globe.shadows},set:function(o){this.coreMap.scene.globe.shadows=o}},shadowMap:{get:function(){return this.coreMap.scene.shadowMap}},shadowMapList:{get:function(){return this.coreMap.scene.shadowMapList}},textureProjectionMapList:{get:function(){return this.coreMap.scene.textureProjectionMapList}},viewShedMapList:{get:function(){return this.coreMap.scene.viewShedMapList}},clock:{get:function(){return this._Viewer.clock}},clockViewModel:{get:function(){return this._Viewer.clockViewModel}},sunShaftEnabled:{get:function(){return this.coreMap.scene.sunShaftEnabled},set:function(o){this.coreMap.scene.sunShaftEnabled=o}},MilitaryPlotting:{get:function(){return this._MilitaryPlotting}},core:{get:function(){return this._Core||(this._Core=new AC(this)),this._Core}},Analysis:{get:function(){return this._Analysis||(this._Analysis=new HNt(this._Viewer,Ui)),this._Analysis}},Creator:{get:function(){return this._Creator||(this._Creator=new Jye(this._Viewer,Ui)),this._Creator}},projectTree:{get:function(){return this._ProjectTree||(this._ProjectTree=new J4t(this._Viewer,Ui,this._tree)),this._ProjectTree}},tree:{get:function(){return this._tree}},viewer:{get:function(){return this._Viewer}},toolbar:{get:function(){return this._Viewer._toolbar.style.display==="block"},set:function(o){this._Viewer._toolbar.style.display=o?"block":"none"}},wireframe:{get:function(){return this._Viewer.scene.globe._surface.tileProvider._debug.wireframe},set:function(o){this._Viewer.scene.globe._surface.tileProvider._debug.wireframe=o}},tileCoordinates:{get:function(){return this._Viewer.cesiumInspector.viewModel.tileCoordinates},set:function(o){this._Viewer.cesiumInspector.viewModel.tileCoordinates=o}},bim:{get:function(){if(!this._bim)throw new At(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._bim}},ser:{get:function(){if(!this._ser)throw new At(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._ser}},maxProjectionCount:{get:function(){return this.coreMap.scene.maxProjectionCount},set:function(o){this.coreMap.scene.maxProjectionCount=o}},atmosphere:{get:function(){return this._atmosphere}},simulate:{get:function(){return this._simulate}},language:{get:function(){return this.i18n.language}}});Rd.prototype.brightness=function(o){let f=o.enable??!0,m=o.brightness??1,x=this.coreMap.scene.postProcessStages;this.coreMap.scene.brightness=this.coreMap.scene.brightness||x.add(X2.createBrightnessStage()),this.coreMap.scene.brightness.enabled=f,this.coreMap.scene.brightness.uniforms.brightness=Number(m)};Rd.prototype.judgeOnline=function(){let o=document.createElement("img"),f=new Promise((x,v)=>{let y=setTimeout(()=>{o&&(o.src="",o.remove(),o=null),clearTimeout(y),v("Timeout")},5e3)}),m=new Promise((x,v)=>{o.crossOrigin="anonymous",o.src=`https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/2/2/0?time=${new Date().getTime()}`,o.onload=()=>(o&&(o.src="",o.remove(),o=null),x(!0),!0),o.onerror=()=>(o&&(o.src="",o.remove(),o=null),x(!1),!0)});return Promise.race([m,f])};Rd.prototype.addLogo=function(){let o=this;queueMicrotask(()=>{let f=`
    uniform sampler2D colorTexture;
    uniform sampler2D logoTexture;
    uniform vec2 logoSize;