From 174fcca18052f7df7cf0dbb67c0571f5e3681642 Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期一, 21 七月 2025 17:36:21 +0800 Subject: [PATCH] 提交sdk --- public/CimSDK/Workers/field/rendermapWorker.js | 2 public/CimSDK/index.js | 169 ++++++++++++++---- public/CimSDK/Workers/field/oceanWorker.js | 2 public/CimSDK/Assets/Textures/water/arrow.png | 0 public/CimSDK/Workers/ParseElevationWorker.js | 2 public/CimSDK/index.cjs | 169 ++++++++++++++---- public/CimSDK/CimSDK.min.js | 169 ++++++++++++++---- public/CimSDK/Workers/featurefetcherworker.js | 2 public/CimSDK/Workers/Model/ModelLibrary.html | 10 9 files changed, 387 insertions(+), 138 deletions(-) diff --git a/public/CimSDK/Assets/Textures/water/arrow.png b/public/CimSDK/Assets/Textures/water/arrow.png index 7668773..e2d842f 100644 --- a/public/CimSDK/Assets/Textures/water/arrow.png +++ b/public/CimSDK/Assets/Textures/water/arrow.png Binary files differ diff --git a/public/CimSDK/CimSDK.min.js b/public/CimSDK/CimSDK.min.js index 186f472..120b640 100644 --- a/public/CimSDK/CimSDK.min.js +++ b/public/CimSDK/CimSDK.min.js @@ -1,7 +1,7 @@ /** * * SmartEarth WebSDK - https://websdk.terra-it.cn - * Version 5.4.1 + * Version 5.4.1.2 * **/ @@ -137,13 +137,13 @@ `);return this._settledValue()},C=y.prototype.error=y.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise See http://goo.gl/MqrFmX -`);return this._settledValue()},T=y.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},S=y.prototype.isRejected=function(){return(this._bitField&16777216)!==0},w=y.prototype.isPending=function(){return(this._bitField&50397184)===0},E=y.prototype.isResolved=function(){return(this._bitField&50331648)!==0};y.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},x.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},x.prototype._isCancelled=function(){return this._target().__isCancelled()},x.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},x.prototype.isPending=function(){return w.call(this._target())},x.prototype.isRejected=function(){return S.call(this._target())},x.prototype.isFulfilled=function(){return T.call(this._target())},x.prototype.isResolved=function(){return E.call(this._target())},x.prototype.value=function(){return v.call(this._target())},x.prototype.reason=function(){var L=this._target();return L._unsetRejectionIsUnhandled(),C.call(L)},x.prototype._value=function(){return this._settledValue()},x.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},x.PromiseInspection=y}},{}],33:[function(o,f,m){"use strict";f.exports=function(x,y){var v=o("./util"),C=v.errorObj,T=v.isObject;function S(P,A){if(T(P)){if(P instanceof x)return P;var M=E(P);if(M===C){A&&A._pushContext();var V=x.reject(M.e);return A&&A._popContext(),V}else if(typeof M=="function"){if(I(P)){var V=new x(y);return P._then(V._fulfill,V._reject,void 0,V,null),V}return R(P,M,A)}}return P}function w(P){return P.then}function E(P){try{return w(P)}catch(A){return C.e=A,C}}var L={}.hasOwnProperty;function I(P){try{return L.call(P,"_promise0")}catch{return!1}}function R(P,A,M){var V=new x(y),G=V;M&&M._pushContext(),V._captureStackTrace(),M&&M._popContext();var D=!0,N=v.tryCatch(A).call(P,k,U);D=!1,V&&N===C&&(V._rejectCallback(N.e,!0,!0),V=null);function k(B){!V||(V._resolveCallback(B),V=null)}function U(B){!V||(V._rejectCallback(B,D,!0),V=null)}return G}return S}},{"./util":36}],34:[function(o,f,m){"use strict";f.exports=function(x,y,v){var C=o("./util"),T=x.TimeoutError;function S(P){this.handle=P}S.prototype._resultCancelled=function(){clearTimeout(this.handle)};var w=function(P){return E(+this).thenReturn(P)},E=x.delay=function(P,A){var M,V;return A!==void 0?(M=x.resolve(A)._then(w,null,null,P,void 0),v.cancellation()&&A instanceof x&&M._setOnCancel(A)):(M=new x(y),V=setTimeout(function(){M._fulfill()},+P),v.cancellation()&&M._setOnCancel(new S(V)),M._captureStackTrace()),M._setAsyncGuaranteed(),M};x.prototype.delay=function(P){return E(P,this)};var L=function(P,A,M){var V;typeof A!="string"?A instanceof Error?V=A:V=new T("operation timed out"):V=new T(A),C.markAsOriginatingFromRejection(V),P._attachExtraTrace(V),P._reject(V),M?.cancel()};function I(P){return clearTimeout(this.handle),P}function R(P){throw clearTimeout(this.handle),P}x.prototype.timeout=function(P,A){P=+P;var M,V,G=new S(setTimeout(function(){M.isPending()&&L(M,A,V)},P));return v.cancellation()?(V=this.then(),M=V._then(I,R,void 0,G,void 0),M._setOnCancel(G)):M=this._then(I,R,void 0,G,void 0),M}}},{"./util":36}],35:[function(o,f,m){"use strict";f.exports=function(x,y,v,C,T,S){var w=o("./util"),E=o("./errors").TypeError,L=o("./util").inherits,I=w.errorObj,R=w.tryCatch,P={};function A(U){setTimeout(function(){throw U},0)}function M(U){var B=v(U);return B!==U&&typeof U._isDisposable=="function"&&typeof U._getDisposer=="function"&&U._isDisposable()&&B._setDisposable(U._getDisposer()),B}function V(U,B){var Y=0,J=U.length,K=new x(T);function z(){if(Y>=J)return K._fulfill();var j=M(U[Y++]);if(j instanceof x&&j._isDisposable()){try{j=v(j._getDisposer().tryDispose(B),U.promise)}catch(q){return A(q)}if(j instanceof x)return j._then(z,A,null,null,null)}z()}return z(),K}function G(U,B,Y){this._data=U,this._promise=B,this._context=Y}G.prototype.data=function(){return this._data},G.prototype.promise=function(){return this._promise},G.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():P},G.prototype.tryDispose=function(U){var B=this.resource(),Y=this._context;Y!==void 0&&Y._pushContext();var J=B!==P?this.doDispose(B,U):null;return Y!==void 0&&Y._popContext(),this._promise._unsetDisposable(),this._data=null,J},G.isDisposer=function(U){return U!=null&&typeof U.resource=="function"&&typeof U.tryDispose=="function"};function D(U,B,Y){this.constructor$(U,B,Y)}L(D,G),D.prototype.doDispose=function(U,B){var Y=this.data();return Y.call(U,U,B)};function N(U){return G.isDisposer(U)?(this.resources[this.index]._setDisposable(U),U.promise()):U}function k(U){this.length=U,this.promise=null,this[U-1]=null}k.prototype._resultCancelled=function(){for(var U=this.length,B=0;B<U;++B){var Y=this[B];Y instanceof x&&Y.cancel()}},x.using=function(){var U=arguments.length;if(U<2)return y("you must pass at least 2 arguments to Promise.using");var B=arguments[U-1];if(typeof B!="function")return y("expecting a function but got "+w.classString(B));var Y,J=!0;U===2&&Array.isArray(arguments[0])?(Y=arguments[0],U=Y.length,J=!1):(Y=arguments,U--);for(var K=new k(U),z=0;z<U;++z){var j=Y[z];if(G.isDisposer(j)){var q=j;j=j.promise(),j._setDisposable(q)}else{var O=v(j);O instanceof x&&(j=O._then(N,null,null,{resources:K,index:z},void 0))}K[z]=j}for(var te=new Array(K.length),z=0;z<te.length;++z)te[z]=x.resolve(K[z]).reflect();var ie=x.all(te).then(function(ee){for(var ae=0;ae<ee.length;++ae){var oe=ee[ae];if(oe.isRejected())return I.e=oe.error(),I;if(!oe.isFulfilled()){ie.cancel();return}ee[ae]=oe.value()}re._pushContext(),B=R(B);var ce=J?B.apply(void 0,ee):B(ee),pe=re._popContext();return S.checkForgottenReturns(ce,pe,"Promise.using",re),ce}),re=ie.lastly(function(){var ee=new x.PromiseInspection(ie);return V(K,ee)});return K.promise=re,re._setOnCancel(K),re},x.prototype._setDisposable=function(U){this._bitField=this._bitField|131072,this._disposer=U},x.prototype._isDisposable=function(){return(this._bitField&131072)>0},x.prototype._getDisposer=function(){return this._disposer},x.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},x.prototype.disposer=function(U){if(typeof U=="function")return new D(U,this,C());throw new E}}},{"./errors":12,"./util":36}],36:[function(_dereq_,module,exports){"use strict";var es5=_dereq_("./es5"),canEvaluate=typeof navigator>"u",errorObj={e:{}},tryCatchTarget,globalObject=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:this!==void 0?this:null;function tryCatcher(){try{var o=tryCatchTarget;return tryCatchTarget=null,o.apply(this,arguments)}catch(f){return errorObj.e=f,errorObj}}function tryCatch(o){return tryCatchTarget=o,tryCatcher}var inherits=function(o,f){var m={}.hasOwnProperty;function x(){this.constructor=o,this.constructor$=f;for(var y in f.prototype)m.call(f.prototype,y)&&y.charAt(y.length-1)!=="$"&&(this[y+"$"]=f.prototype[y])}return x.prototype=f.prototype,o.prototype=new x,o.prototype};function isPrimitive(o){return o==null||o===!0||o===!1||typeof o=="string"||typeof o=="number"}function isObject(o){return typeof o=="function"||typeof o=="object"&&o!==null}function maybeWrapAsError(o){return isPrimitive(o)?new Error(safeToString(o)):o}function withAppended(o,f){var m=o.length,x=new Array(m+1),y;for(y=0;y<m;++y)x[y]=o[y];return x[y]=f,x}function getDataPropertyOrDefault(o,f,m){if(es5.isES5){var x=Object.getOwnPropertyDescriptor(o,f);if(x!=null)return x.get==null&&x.set==null?x.value:m}else return{}.hasOwnProperty.call(o,f)?o[f]:void 0}function notEnumerableProp(o,f,m){if(isPrimitive(o))return o;var x={value:m,configurable:!0,enumerable:!1,writable:!0};return es5.defineProperty(o,f,x),o}function thrower(o){throw o}var inheritedDataKeys=function(){var o=[Array.prototype,Object.prototype,Function.prototype],f=function(y){for(var v=0;v<o.length;++v)if(o[v]===y)return!0;return!1};if(es5.isES5){var m=Object.getOwnPropertyNames;return function(y){for(var v=[],C=Object.create(null);y!=null&&!f(y);){var T;try{T=m(y)}catch{return v}for(var S=0;S<T.length;++S){var w=T[S];if(!C[w]){C[w]=!0;var E=Object.getOwnPropertyDescriptor(y,w);E!=null&&E.get==null&&E.set==null&&v.push(w)}}y=es5.getPrototypeOf(y)}return v}}else{var x={}.hasOwnProperty;return function(y){if(f(y))return[];var v=[];e:for(var C in y)if(x.call(y,C))v.push(C);else{for(var T=0;T<o.length;++T)if(x.call(o[T],C))continue e;v.push(C)}return v}}}(),thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(o){try{if(typeof o=="function"){var f=es5.names(o.prototype),m=es5.isES5&&f.length>1,x=f.length>0&&!(f.length===1&&f[0]==="constructor"),y=thisAssignmentPattern.test(o+"")&&es5.names(o).length>0;if(m||x||y)return!0}return!1}catch{return!1}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}return ic(),ic(),obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(o){return rident.test(o)}function filledRange(o,f,m){for(var x=new Array(o),y=0;y<o;++y)x[y]=f+y+m;return x}function safeToString(o){try{return o+""}catch{return"[no string representation]"}}function isError(o){return o instanceof Error||o!==null&&typeof o=="object"&&typeof o.message=="string"&&typeof o.name=="string"}function markAsOriginatingFromRejection(o){try{notEnumerableProp(o,"isOperational",!0)}catch{}}function originatesFromRejection(o){return o==null?!1:o instanceof Error.__BluebirdErrorTypes__.OperationalError||o.isOperational===!0}function canAttachTrace(o){return isError(o)&&es5.propertyIsWritable(o,"stack")}var ensureErrorObject=function(){return"stack"in new Error?function(o){return canAttachTrace(o)?o:new Error(safeToString(o))}:function(o){if(canAttachTrace(o))return o;try{throw new Error(safeToString(o))}catch(f){return f}}}();function classString(o){return{}.toString.call(o)}function copyDescriptors(o,f,m){for(var x=es5.names(o),y=0;y<x.length;++y){var v=x[y];if(m(v))try{es5.defineProperty(f,v,es5.getDescriptor(o,v))}catch{}}}var asArray=function(o){return es5.isArray(o)?o:null};if(typeof Symbol<"u"&&Symbol.iterator){var ArrayFrom=typeof Array.from=="function"?function(o){return Array.from(o)}:function(o){for(var f=[],m=o[Symbol.iterator](),x;!(x=m.next()).done;)f.push(x.value);return f};asArray=function(o){return es5.isArray(o)?o:o!=null&&typeof o[Symbol.iterator]=="function"?ArrayFrom(o):null}}var isNode=typeof process<"u"&&classString(process).toLowerCase()==="[object process]",hasEnvVariables=typeof process<"u"&&typeof process.env<"u";function env(o){return hasEnvVariables?process.env[o]:void 0}function getNativePromise(){if(typeof Promise=="function")try{var o=new Promise(function(){});if(classString(o)==="[object Promise]")return Promise}catch{}}var reflectHandler;function contextBind(o,f){if(o===null||typeof f!="function"||f===reflectHandler)return f;o.domain!==null&&(f=o.domain.bind(f));var m=o.async;if(m!==null){var x=f;f=function(){var y=new Array(2).concat([].slice.call(arguments));return y[0]=x,y[1]=this,m.runInAsyncScope.apply(m,y)}}return f}var ret={setReflectHandler:function(o){reflectHandler=o},isClass,isIdentifier,inheritedDataKeys,getDataPropertyOrDefault,thrower,isArray:es5.isArray,asArray,notEnumerableProp,isPrimitive,isObject,isError,canEvaluate,errorObj,tryCatch,inherits,withAppended,maybeWrapAsError,toFastProperties,filledRange,toString:safeToString,canAttachTrace,ensureErrorObject,originatesFromRejection,markAsOriginatingFromRejection,classString,copyDescriptors,isNode,hasEnvVariables,env,global:globalObject,getNativePromise,contextBind};ret.isRecentNode=ret.isNode&&function(){var o;return process.versions&&process.versions.node?o=process.versions.node.split(".").map(Number):process.version&&(o=process.version.split(".").map(Number)),o[0]===0&&o[1]>10||o[0]>0}(),ret.nodeSupportsAsyncResource=ret.isNode&&function(){var o=!1;try{var f=_dereq_("async_hooks").AsyncResource;o=typeof f.prototype.runInAsyncScope=="function"}catch{o=!1}return o}(),ret.isNode&&ret.toFastProperties(process);try{throw new Error}catch(o){ret.lastLineError=o}module.exports=ret},{"./es5":13,async_hooks:void 0}]},{},[4])(4)});typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)});var qmr={};jJ(qmr,{Analysis:()=>Kge,BaseObject:()=>Nf,Billboard:()=>_fe,Box:()=>Mfe,BwMode:()=>$pe,Camera:()=>Ipe,Cesium:()=>mWe,ClusterLayer:()=>tbt,ColorAdjustment:()=>qpe,Core:()=>Av,Cylinder:()=>Gfe,Degrees:()=>ibt,DoubleClickObjectTool:()=>Zpe,DoubleScreen:()=>rbt,DynamicEyeOffset:()=>HZe,EarthCtrl:()=>XMt,Edit:()=>wge,EditTool:()=>Kpe,ElevationTool:()=>nbt,Ellipse:()=>Ofe,Ellipsoid:()=>Dfe,Environment:()=>tfe,EventHandler:()=>wD,Explosion:()=>dfe,FeatureLayer:()=>Nme,Fire:()=>lfe,Fireworks:()=>ffe,FisheyeVideoProjection:()=>ofe,Fog:()=>Jpe,Hawkeye:()=>kme,HorizontalDistanceTool:()=>Gpe,HoverObjectTool:()=>Wpe,ImageryLayer:()=>Ame,Label:()=>Sfe,Languages:()=>Y0,LineOfSightTool:()=>UMt,Measure:()=>Hpe,MeasureAreaTool:()=>QY,MeasureHeightTool:()=>Mpe,MeasureLineLengthTool:()=>Ape,MeasurePathLengthTool:()=>dee,MeasureSlopeTool:()=>Vpe,MeasureSurfaceAreaTool:()=>Fpe,MilitaryPlotting:()=>yye,Model:()=>bfe,ModelClipping:()=>Gge,ModelEdit:()=>IY,ModelLayer:()=>Fme,NightMode:()=>efe,Node:()=>iX,ObjectFactory:()=>QR,PerspectiveVideoProjection:()=>nfe,PickObjectTool:()=>Dpe,PickPositionTool:()=>Npe,Point:()=>Rfe,Polygon:()=>Pfe,Polyline:()=>Efe,PolylineVolume:()=>kfe,Profile:()=>Ige,QueryMode:()=>tA,QueryType:()=>tT,RClickObjectTool:()=>Ope,RadarScan:()=>xfe,Rain:()=>jpe,Rectangle:()=>Wfe,RestrictHeight:()=>Vge,SampleRenderedDataFlags:()=>MY,Scene:()=>gge,SceneManager:()=>kMt,SelectSet:()=>rfe,Skyline:()=>Age,Smoke:()=>cfe,Snow:()=>Qpe,SpatialObject:()=>rc,SpatialQuery:()=>Yge,SpatialTransform:()=>DY,SpotLight:()=>Bme,Submergence:()=>Pge,TerrainExcavation:()=>Wge,TerrainLayer:()=>Vme,TerrainModifier:()=>Fge,TitleBar:()=>KMt,Tool:()=>Va,ToolManager:()=>fpe,VERSIONINFO:()=>bBe,ViewShed:()=>Ege,Volumetric:()=>Lge,WFSTool:()=>VY,Waters:()=>Xme,WorkChart:()=>Zme,ZBiasGeometryInstanceAttribute:()=>M$i,czmlPathAnimation:()=>QZe,loadArrayBuffer:()=>W$i,loadBlob:()=>N$i,loadImage:()=>Z$i,loadJson:()=>D$i,loadLayui:()=>qZe,loadText:()=>F$i,sampleRenderedData:()=>ape,sampleRenderedMesh:()=>V$i,sampleRenderedTerrain:()=>G$i,viewerNavigationCubeMixin:()=>YMt});we();we();var xBe="CIM SDK v5.4.1",gBe="Cesium v1.129",yBe="BIM V20241204",_Be="SER V20250613",vBe="2025.7.4",fVt="WebSDK V5.4",mVt={VERSION:xBe,CesiumVERSION:gBe,BIMVERSION:yBe,SERVERSION:_Be,CompileTime:vBe},xVt=typeof window<"u"?window:typeof self<"u"?self:{};xVt.logSmartEarth=()=>{let o=` +`);return this._settledValue()},T=y.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},S=y.prototype.isRejected=function(){return(this._bitField&16777216)!==0},w=y.prototype.isPending=function(){return(this._bitField&50397184)===0},E=y.prototype.isResolved=function(){return(this._bitField&50331648)!==0};y.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},x.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},x.prototype._isCancelled=function(){return this._target().__isCancelled()},x.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},x.prototype.isPending=function(){return w.call(this._target())},x.prototype.isRejected=function(){return S.call(this._target())},x.prototype.isFulfilled=function(){return T.call(this._target())},x.prototype.isResolved=function(){return E.call(this._target())},x.prototype.value=function(){return v.call(this._target())},x.prototype.reason=function(){var L=this._target();return L._unsetRejectionIsUnhandled(),C.call(L)},x.prototype._value=function(){return this._settledValue()},x.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},x.PromiseInspection=y}},{}],33:[function(o,f,m){"use strict";f.exports=function(x,y){var v=o("./util"),C=v.errorObj,T=v.isObject;function S(P,A){if(T(P)){if(P instanceof x)return P;var M=E(P);if(M===C){A&&A._pushContext();var V=x.reject(M.e);return A&&A._popContext(),V}else if(typeof M=="function"){if(I(P)){var V=new x(y);return P._then(V._fulfill,V._reject,void 0,V,null),V}return R(P,M,A)}}return P}function w(P){return P.then}function E(P){try{return w(P)}catch(A){return C.e=A,C}}var L={}.hasOwnProperty;function I(P){try{return L.call(P,"_promise0")}catch{return!1}}function R(P,A,M){var V=new x(y),G=V;M&&M._pushContext(),V._captureStackTrace(),M&&M._popContext();var D=!0,N=v.tryCatch(A).call(P,k,U);D=!1,V&&N===C&&(V._rejectCallback(N.e,!0,!0),V=null);function k(B){!V||(V._resolveCallback(B),V=null)}function U(B){!V||(V._rejectCallback(B,D,!0),V=null)}return G}return S}},{"./util":36}],34:[function(o,f,m){"use strict";f.exports=function(x,y,v){var C=o("./util"),T=x.TimeoutError;function S(P){this.handle=P}S.prototype._resultCancelled=function(){clearTimeout(this.handle)};var w=function(P){return E(+this).thenReturn(P)},E=x.delay=function(P,A){var M,V;return A!==void 0?(M=x.resolve(A)._then(w,null,null,P,void 0),v.cancellation()&&A instanceof x&&M._setOnCancel(A)):(M=new x(y),V=setTimeout(function(){M._fulfill()},+P),v.cancellation()&&M._setOnCancel(new S(V)),M._captureStackTrace()),M._setAsyncGuaranteed(),M};x.prototype.delay=function(P){return E(P,this)};var L=function(P,A,M){var V;typeof A!="string"?A instanceof Error?V=A:V=new T("operation timed out"):V=new T(A),C.markAsOriginatingFromRejection(V),P._attachExtraTrace(V),P._reject(V),M?.cancel()};function I(P){return clearTimeout(this.handle),P}function R(P){throw clearTimeout(this.handle),P}x.prototype.timeout=function(P,A){P=+P;var M,V,G=new S(setTimeout(function(){M.isPending()&&L(M,A,V)},P));return v.cancellation()?(V=this.then(),M=V._then(I,R,void 0,G,void 0),M._setOnCancel(G)):M=this._then(I,R,void 0,G,void 0),M}}},{"./util":36}],35:[function(o,f,m){"use strict";f.exports=function(x,y,v,C,T,S){var w=o("./util"),E=o("./errors").TypeError,L=o("./util").inherits,I=w.errorObj,R=w.tryCatch,P={};function A(U){setTimeout(function(){throw U},0)}function M(U){var B=v(U);return B!==U&&typeof U._isDisposable=="function"&&typeof U._getDisposer=="function"&&U._isDisposable()&&B._setDisposable(U._getDisposer()),B}function V(U,B){var Y=0,J=U.length,K=new x(T);function z(){if(Y>=J)return K._fulfill();var j=M(U[Y++]);if(j instanceof x&&j._isDisposable()){try{j=v(j._getDisposer().tryDispose(B),U.promise)}catch(q){return A(q)}if(j instanceof x)return j._then(z,A,null,null,null)}z()}return z(),K}function G(U,B,Y){this._data=U,this._promise=B,this._context=Y}G.prototype.data=function(){return this._data},G.prototype.promise=function(){return this._promise},G.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():P},G.prototype.tryDispose=function(U){var B=this.resource(),Y=this._context;Y!==void 0&&Y._pushContext();var J=B!==P?this.doDispose(B,U):null;return Y!==void 0&&Y._popContext(),this._promise._unsetDisposable(),this._data=null,J},G.isDisposer=function(U){return U!=null&&typeof U.resource=="function"&&typeof U.tryDispose=="function"};function D(U,B,Y){this.constructor$(U,B,Y)}L(D,G),D.prototype.doDispose=function(U,B){var Y=this.data();return Y.call(U,U,B)};function N(U){return G.isDisposer(U)?(this.resources[this.index]._setDisposable(U),U.promise()):U}function k(U){this.length=U,this.promise=null,this[U-1]=null}k.prototype._resultCancelled=function(){for(var U=this.length,B=0;B<U;++B){var Y=this[B];Y instanceof x&&Y.cancel()}},x.using=function(){var U=arguments.length;if(U<2)return y("you must pass at least 2 arguments to Promise.using");var B=arguments[U-1];if(typeof B!="function")return y("expecting a function but got "+w.classString(B));var Y,J=!0;U===2&&Array.isArray(arguments[0])?(Y=arguments[0],U=Y.length,J=!1):(Y=arguments,U--);for(var K=new k(U),z=0;z<U;++z){var j=Y[z];if(G.isDisposer(j)){var q=j;j=j.promise(),j._setDisposable(q)}else{var O=v(j);O instanceof x&&(j=O._then(N,null,null,{resources:K,index:z},void 0))}K[z]=j}for(var te=new Array(K.length),z=0;z<te.length;++z)te[z]=x.resolve(K[z]).reflect();var ie=x.all(te).then(function(ee){for(var ae=0;ae<ee.length;++ae){var oe=ee[ae];if(oe.isRejected())return I.e=oe.error(),I;if(!oe.isFulfilled()){ie.cancel();return}ee[ae]=oe.value()}re._pushContext(),B=R(B);var ce=J?B.apply(void 0,ee):B(ee),pe=re._popContext();return S.checkForgottenReturns(ce,pe,"Promise.using",re),ce}),re=ie.lastly(function(){var ee=new x.PromiseInspection(ie);return V(K,ee)});return K.promise=re,re._setOnCancel(K),re},x.prototype._setDisposable=function(U){this._bitField=this._bitField|131072,this._disposer=U},x.prototype._isDisposable=function(){return(this._bitField&131072)>0},x.prototype._getDisposer=function(){return this._disposer},x.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},x.prototype.disposer=function(U){if(typeof U=="function")return new D(U,this,C());throw new E}}},{"./errors":12,"./util":36}],36:[function(_dereq_,module,exports){"use strict";var es5=_dereq_("./es5"),canEvaluate=typeof navigator>"u",errorObj={e:{}},tryCatchTarget,globalObject=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:this!==void 0?this:null;function tryCatcher(){try{var o=tryCatchTarget;return tryCatchTarget=null,o.apply(this,arguments)}catch(f){return errorObj.e=f,errorObj}}function tryCatch(o){return tryCatchTarget=o,tryCatcher}var inherits=function(o,f){var m={}.hasOwnProperty;function x(){this.constructor=o,this.constructor$=f;for(var y in f.prototype)m.call(f.prototype,y)&&y.charAt(y.length-1)!=="$"&&(this[y+"$"]=f.prototype[y])}return x.prototype=f.prototype,o.prototype=new x,o.prototype};function isPrimitive(o){return o==null||o===!0||o===!1||typeof o=="string"||typeof o=="number"}function isObject(o){return typeof o=="function"||typeof o=="object"&&o!==null}function maybeWrapAsError(o){return isPrimitive(o)?new Error(safeToString(o)):o}function withAppended(o,f){var m=o.length,x=new Array(m+1),y;for(y=0;y<m;++y)x[y]=o[y];return x[y]=f,x}function getDataPropertyOrDefault(o,f,m){if(es5.isES5){var x=Object.getOwnPropertyDescriptor(o,f);if(x!=null)return x.get==null&&x.set==null?x.value:m}else return{}.hasOwnProperty.call(o,f)?o[f]:void 0}function notEnumerableProp(o,f,m){if(isPrimitive(o))return o;var x={value:m,configurable:!0,enumerable:!1,writable:!0};return es5.defineProperty(o,f,x),o}function thrower(o){throw o}var inheritedDataKeys=function(){var o=[Array.prototype,Object.prototype,Function.prototype],f=function(y){for(var v=0;v<o.length;++v)if(o[v]===y)return!0;return!1};if(es5.isES5){var m=Object.getOwnPropertyNames;return function(y){for(var v=[],C=Object.create(null);y!=null&&!f(y);){var T;try{T=m(y)}catch{return v}for(var S=0;S<T.length;++S){var w=T[S];if(!C[w]){C[w]=!0;var E=Object.getOwnPropertyDescriptor(y,w);E!=null&&E.get==null&&E.set==null&&v.push(w)}}y=es5.getPrototypeOf(y)}return v}}else{var x={}.hasOwnProperty;return function(y){if(f(y))return[];var v=[];e:for(var C in y)if(x.call(y,C))v.push(C);else{for(var T=0;T<o.length;++T)if(x.call(o[T],C))continue e;v.push(C)}return v}}}(),thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(o){try{if(typeof o=="function"){var f=es5.names(o.prototype),m=es5.isES5&&f.length>1,x=f.length>0&&!(f.length===1&&f[0]==="constructor"),y=thisAssignmentPattern.test(o+"")&&es5.names(o).length>0;if(m||x||y)return!0}return!1}catch{return!1}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}return ic(),ic(),obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(o){return rident.test(o)}function filledRange(o,f,m){for(var x=new Array(o),y=0;y<o;++y)x[y]=f+y+m;return x}function safeToString(o){try{return o+""}catch{return"[no string representation]"}}function isError(o){return o instanceof Error||o!==null&&typeof o=="object"&&typeof o.message=="string"&&typeof o.name=="string"}function markAsOriginatingFromRejection(o){try{notEnumerableProp(o,"isOperational",!0)}catch{}}function originatesFromRejection(o){return o==null?!1:o instanceof Error.__BluebirdErrorTypes__.OperationalError||o.isOperational===!0}function canAttachTrace(o){return isError(o)&&es5.propertyIsWritable(o,"stack")}var ensureErrorObject=function(){return"stack"in new Error?function(o){return canAttachTrace(o)?o:new Error(safeToString(o))}:function(o){if(canAttachTrace(o))return o;try{throw new Error(safeToString(o))}catch(f){return f}}}();function classString(o){return{}.toString.call(o)}function copyDescriptors(o,f,m){for(var x=es5.names(o),y=0;y<x.length;++y){var v=x[y];if(m(v))try{es5.defineProperty(f,v,es5.getDescriptor(o,v))}catch{}}}var asArray=function(o){return es5.isArray(o)?o:null};if(typeof Symbol<"u"&&Symbol.iterator){var ArrayFrom=typeof Array.from=="function"?function(o){return Array.from(o)}:function(o){for(var f=[],m=o[Symbol.iterator](),x;!(x=m.next()).done;)f.push(x.value);return f};asArray=function(o){return es5.isArray(o)?o:o!=null&&typeof o[Symbol.iterator]=="function"?ArrayFrom(o):null}}var isNode=typeof process<"u"&&classString(process).toLowerCase()==="[object process]",hasEnvVariables=typeof process<"u"&&typeof process.env<"u";function env(o){return hasEnvVariables?process.env[o]:void 0}function getNativePromise(){if(typeof Promise=="function")try{var o=new Promise(function(){});if(classString(o)==="[object Promise]")return Promise}catch{}}var reflectHandler;function contextBind(o,f){if(o===null||typeof f!="function"||f===reflectHandler)return f;o.domain!==null&&(f=o.domain.bind(f));var m=o.async;if(m!==null){var x=f;f=function(){var y=new Array(2).concat([].slice.call(arguments));return y[0]=x,y[1]=this,m.runInAsyncScope.apply(m,y)}}return f}var ret={setReflectHandler:function(o){reflectHandler=o},isClass,isIdentifier,inheritedDataKeys,getDataPropertyOrDefault,thrower,isArray:es5.isArray,asArray,notEnumerableProp,isPrimitive,isObject,isError,canEvaluate,errorObj,tryCatch,inherits,withAppended,maybeWrapAsError,toFastProperties,filledRange,toString:safeToString,canAttachTrace,ensureErrorObject,originatesFromRejection,markAsOriginatingFromRejection,classString,copyDescriptors,isNode,hasEnvVariables,env,global:globalObject,getNativePromise,contextBind};ret.isRecentNode=ret.isNode&&function(){var o;return process.versions&&process.versions.node?o=process.versions.node.split(".").map(Number):process.version&&(o=process.version.split(".").map(Number)),o[0]===0&&o[1]>10||o[0]>0}(),ret.nodeSupportsAsyncResource=ret.isNode&&function(){var o=!1;try{var f=_dereq_("async_hooks").AsyncResource;o=typeof f.prototype.runInAsyncScope=="function"}catch{o=!1}return o}(),ret.isNode&&ret.toFastProperties(process);try{throw new Error}catch(o){ret.lastLineError=o}module.exports=ret},{"./es5":13,async_hooks:void 0}]},{},[4])(4)});typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)});var qmr={};jJ(qmr,{Analysis:()=>Kge,BaseObject:()=>Nf,Billboard:()=>_fe,Box:()=>Mfe,BwMode:()=>$pe,Camera:()=>Ipe,Cesium:()=>mWe,ClusterLayer:()=>tbt,ColorAdjustment:()=>qpe,Core:()=>Av,Cylinder:()=>Gfe,Degrees:()=>ibt,DoubleClickObjectTool:()=>Zpe,DoubleScreen:()=>rbt,DynamicEyeOffset:()=>HZe,EarthCtrl:()=>XMt,Edit:()=>wge,EditTool:()=>Kpe,ElevationTool:()=>nbt,Ellipse:()=>Ofe,Ellipsoid:()=>Dfe,Environment:()=>tfe,EventHandler:()=>wD,Explosion:()=>dfe,FeatureLayer:()=>Nme,Fire:()=>lfe,Fireworks:()=>ffe,FisheyeVideoProjection:()=>ofe,Fog:()=>Jpe,Hawkeye:()=>kme,HorizontalDistanceTool:()=>Gpe,HoverObjectTool:()=>Wpe,ImageryLayer:()=>Ame,Label:()=>Sfe,Languages:()=>Y0,LineOfSightTool:()=>UMt,Measure:()=>Hpe,MeasureAreaTool:()=>QY,MeasureHeightTool:()=>Mpe,MeasureLineLengthTool:()=>Ape,MeasurePathLengthTool:()=>dee,MeasureSlopeTool:()=>Vpe,MeasureSurfaceAreaTool:()=>Fpe,MilitaryPlotting:()=>yye,Model:()=>bfe,ModelClipping:()=>Gge,ModelEdit:()=>IY,ModelLayer:()=>Fme,NightMode:()=>efe,Node:()=>iX,ObjectFactory:()=>QR,PerspectiveVideoProjection:()=>nfe,PickObjectTool:()=>Dpe,PickPositionTool:()=>Npe,Point:()=>Rfe,Polygon:()=>Pfe,Polyline:()=>Efe,PolylineVolume:()=>kfe,Profile:()=>Ige,QueryMode:()=>tA,QueryType:()=>tT,RClickObjectTool:()=>Ope,RadarScan:()=>xfe,Rain:()=>jpe,Rectangle:()=>Wfe,RestrictHeight:()=>Vge,SampleRenderedDataFlags:()=>MY,Scene:()=>gge,SceneManager:()=>kMt,SelectSet:()=>rfe,Skyline:()=>Age,Smoke:()=>cfe,Snow:()=>Qpe,SpatialObject:()=>rc,SpatialQuery:()=>Yge,SpatialTransform:()=>DY,SpotLight:()=>Bme,Submergence:()=>Pge,TerrainExcavation:()=>Wge,TerrainLayer:()=>Vme,TerrainModifier:()=>Fge,TitleBar:()=>KMt,Tool:()=>Va,ToolManager:()=>fpe,VERSIONINFO:()=>bBe,ViewShed:()=>Ege,Volumetric:()=>Lge,WFSTool:()=>VY,Waters:()=>Xme,WorkChart:()=>Zme,ZBiasGeometryInstanceAttribute:()=>M$i,czmlPathAnimation:()=>QZe,loadArrayBuffer:()=>W$i,loadBlob:()=>N$i,loadImage:()=>Z$i,loadJson:()=>D$i,loadLayui:()=>qZe,loadText:()=>F$i,sampleRenderedData:()=>ape,sampleRenderedMesh:()=>V$i,sampleRenderedTerrain:()=>G$i,viewerNavigationCubeMixin:()=>YMt});we();we();var xBe="CIM SDK v5.4.1.2",gBe="Cesium v1.129",yBe="BIM V20241204",_Be="SER V20250613",vBe="2025.7.21",fVt="WebSDK V5.4",mVt={VERSION:xBe,CesiumVERSION:gBe,BIMVERSION:yBe,SERVERSION:_Be,CompileTime:vBe},xVt=typeof window<"u"?window:typeof self<"u"?self:{};xVt.logSmartEarth=()=>{let o=` %c${fVt} %c \u7248 \u672C \u53F7\uFF1A${xBe} ${gBe} ${yBe} ${_Be} \u7F16\u8BD1\u65F6\u95F4\uFF1A${vBe} - `;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 bBe=mVt;var mWe={};jJ(mWe,{AlphaMode:()=>IH,AlphaPipelineStage:()=>HMe,AnchorPointDirect:()=>zAe,AnchorPointIndirect:()=>YAe,Animation:()=>PNe,AnimationViewModel:()=>INe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>xde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>bce,AtmospherePipelineStage:()=>SMe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>CGe,AutomaticUniforms:()=>bB,Axis:()=>D0,AxisAlignedBoundingBox:()=>b7,B3dmLoader:()=>oMe,B3dmParser:()=>nMe,Base64Encoder:()=>Tae,BaseLayerPicker:()=>ANe,BaseLayerPickerViewModel:()=>RNe,BatchTable:()=>Tz,BatchTableHierarchy:()=>Zce,BatchTexture:()=>JT,BatchTexturePipelineStage:()=>zMe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>sV,BillboardLoadState:()=>Om,BillboardTexture:()=>mz,BillboardVisualizer:()=>PRe,BingMapsGeocoderService:()=>Amt,BingMapsImageryProvider:()=>bO,BingMapsStyle:()=>mhe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>dz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ihe,BoxEmitter:()=>Lde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>IRe,BoxGraphics:()=>wue,BoxOutlineGeometry:()=>HS,BrdfLutGenerator:()=>P5e,Buffer:()=>mo,BufferLoader:()=>iq,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>jMe,CallbackPositionProperty:()=>Z3e,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>VGe,CameraEventType:()=>Jc,CameraFlightPath:()=>uRe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>Mmt,CatmullRomSpline:()=>Vmt,Cesium3DContentGroup:()=>Qce,Cesium3DTile:()=>Zb,Cesium3DTileBatchTable:()=>yq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>wxt,Cesium3DTileContentFactory:()=>ohe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>n4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>uhe,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>CZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>OS,Cesium3DTileStyleEngine:()=>V3e,Cesium3DTilesInspector:()=>FNe,Cesium3DTilesInspectorViewModel:()=>GNe,Cesium3DTilesVoxelProvider:()=>Ext,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>F3e,Cesium3DTilesetCache:()=>A3e,Cesium3DTilesetGraphics:()=>Rue,Cesium3DTilesetHeatmap:()=>M3e,Cesium3DTilesetMetadata:()=>lhe,Cesium3DTilesetMostDetailedTraversal:()=>G3e,Cesium3DTilesetSkipTraversal:()=>D3e,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>W3e,CesiumInspector:()=>NNe,CesiumInspectorViewModel:()=>DNe,CesiumNavigation:()=>aNe,CesiumRenderPass:()=>mNe,CesiumTerrainProvider:()=>W4,CesiumWidget:()=>M4,Check:()=>Da,CheckerboardMaterialProperty:()=>ile,CircleEmitter:()=>GDe,CircleGeometry:()=>Omt,CircleOutlineGeometry:()=>Xmt,CircleWaveMaterialProperty:()=>fz,ClassificationModelDrawCommand:()=>zVe,ClassificationPipelineStage:()=>YMe,ClassificationPrimitive:()=>Sz,ClassificationType:()=>dc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>Ub,ClippingPolygonCollection:()=>Ry,Clock:()=>Mz,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>LNe,CloudCollection:()=>Vxt,CloudType:()=>ple,CollectionSource:()=>jit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Hgt,CommandLoader:()=>sNe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>o3e,CompositeEntityCollection:()=>lmt,CompositeMaterialProperty:()=>nle,CompositePositionProperty:()=>i1,CompositeProperty:()=>nS,CompressedTextureBuffer:()=>NS,ComputeCommand:()=>dV,ComputeEngine:()=>_5e,ComputeRegionBox:()=>Txt,ConditionsExpression:()=>$Pe,ConeEmitter:()=>k4,ConicArcSensor:()=>Tle,ConicArcSensorCollection:()=>Wgt,ConicArcSensorGeometry:()=>wle,ConicArcSensorGraphics:()=>Cle,ConicArcSensorOutlineGeometry:()=>Ele,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>hMe,ConstructionWorker:()=>qit,ContentMetadata:()=>b3e,Context:()=>E5e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>uO,CoplanarPolygonGeometryLibrary:()=>NB,CoplanarPolygonOutlineGeometry:()=>rM,CornerType:()=>ad,CorrelationGroup:()=>KAe,CorridorGeometry:()=>U7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>MRe,CorridorGraphics:()=>Eue,CorridorOutlineGeometry:()=>ARe,Credit:()=>Oa,CreditDisplay:()=>I5e,CubeMap:()=>Ig,CubeMapFace:()=>Iwe,CubicRealPolynomial:()=>u7,CullFace:()=>yh,CullingVolume:()=>fm,CumulusCloud:()=>wL,CustomDataSource:()=>Vue,CustomHeightmapTerrainProvider:()=>kmt,CustomMercatorProjection:()=>gz,CustomShader:()=>P1,CustomShaderManagerEx:()=>vue,CustomShaderMode:()=>g7,CustomShaderPipelineStage:()=>rVe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Vrt,CylinderGeometry:()=>B7,CylinderGeometryLibrary:()=>mce,CylinderGeometryUpdater:()=>VRe,CylinderGraphics:()=>Lue,CylinderOutlineGeometry:()=>H7,CzmlDataSource:()=>n$,DataSource:()=>Sy,DataSourceClock:()=>n9,DataSourceCollection:()=>ERe,DataSourceDisplay:()=>Pq,DebugAppearance:()=>Zxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>UGe,DebugModelMatrixPrimitive:()=>WDe,DefaultProxy:()=>Bmt,DepthFunction:()=>wy,DepthPlane:()=>M5e,DequantizationPipelineStage:()=>nVe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>V5e,DirectionalLight:()=>U4,DiscardEmptyTileImagePolicy:()=>xhe,DiscardMissingTileImagePolicy:()=>q3e,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>QDe,DoubleEndedPriorityQueue:()=>Yhe,DoublyLinkedList:()=>Tq,DracoLoader:()=>rq,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>K7,DynamicEnvironmentMapManager:()=>PH,DynamicGeometryBatch:()=>dce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>_7,EarthOrientationParameters:()=>awe,EarthOrientationParametersSample:()=>l7,EasingFunction:()=>J_,EllipseGeometry:()=>SS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>GRe,EllipseGraphics:()=>Pue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>WRe,EllipsoidGraphics:()=>Lz,EllipsoidOutlineGeometry:()=>Db,EllipsoidPrimitive:()=>g5e,EllipsoidRhumbLine:()=>uS,EllipsoidSurfaceAppearance:()=>rO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>RS,EllipsoidalOccluder:()=>U9,Empty3DTileContent:()=>C6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>US,EntityView:()=>H3e,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>xb,ExpandByTerra:()=>Grt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>hNe,FBXPrimitive:()=>Vde,FBXTreeParser:()=>cNe,FeatureDataProvider:()=>jue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>xq,FeatureJsonData:()=>Fz,FisheyeProjectionMap:()=>Z7,FisheyeProjectionMapShader:()=>jj,FlattenVS:()=>Vgt,FlowEcharts:()=>Ede,Fog:()=>F5e,ForEach:()=>Or,FrameRateMonitor:()=>ZDe,FrameState:()=>D5e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Fhe,FrustumGeometry:()=>Dz,FrustumOutlineGeometry:()=>W7,Fullscreen:()=>km,FullscreenButton:()=>ZNe,FullscreenButtonViewModel:()=>WNe,GWBaiduImageryProvider:()=>Wz,GeoJsonDataSource:()=>$Z,GeoJsonLoader:()=>lMe,GeocodeType:()=>a$,Geocoder:()=>UNe,GeocoderService:()=>bde,GeocoderViewModel:()=>kNe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>a3e,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Kmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>sVe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>Y7,GeometryVisualizer:()=>nAe,GetFeatureInfoFormat:()=>cQ,GifImageProperty:()=>Sst,Globe:()=>d5e,GlobeDepth:()=>k5e,GlobeSurfaceShaderSet:()=>j3e,GlobeSurfaceTile:()=>UM,GlobeSurfaceTileProvider:()=>u5e,GlobeTranslucency:()=>Dq,GlobeTranslucencyFramebuffer:()=>U5e,GlobeTranslucencyState:()=>W5e,GltfBufferViewLoader:()=>Sce,GltfDracoLoader:()=>wce,GltfGpmLoader:()=>jAe,GltfGpmLocal:()=>Wce,GltfImageLoader:()=>Ece,GltfIndexBufferLoader:()=>Lce,GltfInstanceLoader:()=>Oce,GltfJsonLoader:()=>Rce,GltfLoader:()=>mO,GltfLoaderUtil:()=>OM,GltfMeshPrimitiveGpmLoader:()=>eMe,GltfStructuralMetadataLoader:()=>BAe,GltfTextureLoader:()=>Ace,GltfVertexBufferLoader:()=>Mce,GoogleEarthEnterpriseImageryProvider:()=>Oxt,GoogleEarthEnterpriseMapsProvider:()=>t5e,GoogleEarthEnterpriseMetadata:()=>O4,GoogleEarthEnterpriseTerrainData:()=>dle,GoogleEarthEnterpriseTerrainProvider:()=>ext,GoogleEarthEnterpriseTileInformation:()=>SDe,GoogleGeocoderService:()=>ixt,GoogleMaps:()=>gQ,GpxDataSource:()=>lDe,Graticules:()=>ace,GregorianDate:()=>pz,GridImageryProvider:()=>Xxt,GridMaterialProperty:()=>ole,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>bz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>kS,GroupMetadata:()=>Pse,GwBufferAnalysis:()=>sce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>qSe,HeightMap:()=>Pgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>fhe,HermitePolynomialApproximation:()=>KFe,HermiteSpline:()=>_6,HilbertOrder:()=>Tse,HomeButton:()=>HNe,HomeButtonViewModel:()=>BNe,HorizontalOrigin:()=>ec,HugeAdapter:()=>gq,I3SBuildingSceneLayerExplorer:()=>ayt,I3SBuildingSceneLayerExplorerViewModel:()=>zNe,I3SDataProvider:()=>gR,I3SDecoder:()=>FFe,I3SFeature:()=>NFe,I3SField:()=>WFe,I3SGeometry:()=>jse,I3SLayer:()=>ede,I3SNode:()=>Qse,I3SStatistics:()=>OFe,I3SSublayer:()=>XFe,I3SSymbology:()=>ZFe,I3dmLoader:()=>cMe,I3dmParser:()=>uMe,ITwinData:()=>kxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>f5e,Iau2006XysData:()=>lwe,Iau2006XysSample:()=>oue,IauOrientationAxes:()=>m5e,IauOrientationParameters:()=>p5e,ImageBasedLighting:()=>dq,ImageBasedLightingPipelineStage:()=>EMe,ImageCombine:()=>gue,ImageMaterialProperty:()=>O0,Imagery:()=>bhe,ImageryLayer:()=>Up,ImageryLayerCollection:()=>c5e,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>Lse,ImplicitAvailabilityBitstream:()=>wse,ImplicitMetadataView:()=>$ce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>ehe,ImplicitSubtreeCache:()=>MDe,ImplicitSubtreeMetadata:()=>c3e,ImplicitTileCoordinates:()=>dhe,ImplicitTileset:()=>hhe,IndexDatatype:()=>Fn,InfoBox:()=>JNe,InfoBoxViewModel:()=>KNe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>OMe,InterpolationAlgorithm:()=>rxt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>mc,Intersections2D:()=>N4,Interval:()=>VE,InvertClassification:()=>Vhe,Ion:()=>GG,IonGeocodeProviderType:()=>kZ,IonGeocoderService:()=>Sde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>zB,Iso8601:()=>wn,JobScheduler:()=>Z5e,JobType:()=>G_,JsonMetadataTable:()=>Q7,JulianDate:()=>$t,KTX2Transcoder:()=>twe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>MIe,KmlDataSource:()=>F7,KmlLookAt:()=>VIe,KmlTour:()=>GIe,KmlTourFlyTo:()=>FIe,KmlTourWait:()=>NIe,Label:()=>LQ,LabelCollection:()=>rV,LabelGraphics:()=>Pz,LabelStyle:()=>f0,LabelVisualizer:()=>oAe,LagrangePolynomialApproximation:()=>jFe,LeapSecond:()=>xh,Light:()=>Bxt,LightingModel:()=>uv,LightingPipelineStage:()=>uVe,LinearApproximation:()=>Hue,LinearSampler:()=>qI,LinearSpline:()=>mq,MTLLoader:()=>dNe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>axt,MapboxImageryProvider:()=>CO,MapboxStyleImageryProvider:()=>zxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>hVe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>Khe,MeshParser:()=>uNe,MeshPhongMaterial:()=>vQ,MeshPrimitiveGpmLocal:()=>$Ae,MetadataClass:()=>qz,MetadataClassProperty:()=>Jz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>XAe,MetadataEnumValue:()=>OAe,MetadataPicking:()=>O5e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>PM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Vce,MetadataSemantic:()=>the,MetadataTable:()=>pO,MetadataTableProperty:()=>gAe,MetadataType:()=>fo,MipmapHint:()=>O9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>AVe,ModelAnimation:()=>gMe,ModelAnimationChannel:()=>mMe,ModelAnimationCollection:()=>yMe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>IMe,ModelArticulationStage:()=>PMe,ModelClippingPlanesPipelineStage:()=>MMe,ModelClippingPolygonsPipelineStage:()=>FMe,ModelColorPipelineStage:()=>v6,ModelComponents:()=>ll,ModelDrawCommand:()=>YVe,ModelDrawCommands:()=>jVe,ModelFeature:()=>_Me,ModelFeatureTable:()=>vMe,ModelFlattenPipelineStage:()=>$Ve,ModelGraphics:()=>C7,ModelLightingOptions:()=>UVe,ModelMatrixUpdateStage:()=>kMe,ModelNode:()=>DMe,ModelRenderResources:()=>DVe,ModelRuntimeNode:()=>BMe,ModelRuntimePrimitive:()=>PVe,ModelSceneGraph:()=>e3e,ModelSilhouettePipelineStage:()=>ZVe,ModelSkin:()=>RVe,ModelSplitterPipelineStage:()=>XVe,ModelStatistics:()=>t3e,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>n3e,Moon:()=>y5e,MorphTargetsPipelineStage:()=>pVe,MorphWeightSpline:()=>sxt,MortonOrder:()=>MH,MultiResourceImageryProvider:()=>Zz,MultiResourceTerrainProvider:()=>lce,Multiple3DTileContent:()=>E3e,MultisampleFramebuffer:()=>iMe,NavigationControl:()=>j4,NavigationHelpButton:()=>QNe,NavigationHelpButtonViewModel:()=>jNe,NavigationUtils:()=>Q4,NavigationViewModel:()=>yQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Yxt,NodeRenderResources:()=>kVe,NodeStatisticsPipelineStage:()=>UMe,NodeTransformationProperty:()=>Iue,OBJLoader:()=>fNe,OBJPrimitive:()=>Gde,OIT:()=>Y5e,Occluder:()=>oce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Oz,OpenCageGeocoderService:()=>lxt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>LRe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>gm,Packable:()=>uxt,PackableForInterpolation:()=>cxt,Particle:()=>Ide,ParticleBurst:()=>H4,ParticleEmitter:()=>jxt,ParticleSystem:()=>qS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>T7,PathVisualizer:()=>O3e,PeliasGeocoderService:()=>LDe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Xq,PerformanceWatchdog:()=>iWe,PerformanceWatchdogViewModel:()=>tWe,PerspectiveFrustum:()=>xc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>O7,PerspectiveProjectionMapShader:()=>Qj,PerspectiveProjectionMapWithDepth:()=>X7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>X5e,PickDepthFramebuffer:()=>K5e,PickFramebuffer:()=>J5e,PickGlobeSlope:()=>Bft,PickedMetadataInfo:()=>gFe,Picking:()=>iGe,PickingPipelineStage:()=>fVe,PinBuilder:()=>L7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>ZRe,PlaneGeometryUpdater:()=>kRe,PlaneGraphics:()=>pIe,PlaneOutlineGeometry:()=>ORe,PntsLoader:()=>i3e,PntsParser:()=>Jce,PointCloud:()=>VFe,PointCloudEyeDomeLighting:()=>pq,PointCloudShading:()=>r4,PointCloudStylingPipelineStage:()=>xVe,PointGraphics:()=>Aue,PointLight:()=>ide,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>nV,PointVisualizer:()=>X3e,PolygonDepth:()=>C9,PolygonDepthFS:()=>zce,PolygonDepthVS:()=>Yce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>BRe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>URe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>am,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>k3e,PolylineGlowMaterialProperty:()=>ale,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>jM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Hft,PolylineVisualizer:()=>B3e,PolylineVolumeGeometry:()=>HRe,PolylineVolumeGeometryLibrary:()=>c9,PolylineVolumeGeometryUpdater:()=>YRe,PolylineVolumeGraphics:()=>Mue,PolylineVolumeOutlineGeometry:()=>zRe,PositionProperty:()=>Ez,PositionPropertyArray:()=>pH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>EGe,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>khe,PpeMetadata:()=>qAe,PpeSource:()=>Ogt,PpeTexture:()=>QAe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>lq,PrimitiveOutlineGenerator:()=>Dce,PrimitiveOutlinePipelineStage:()=>_Ve,PrimitivePipeline:()=>QZ,PrimitiveRenderResources:()=>BVe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>vVe,PrimitiveType:()=>pn,ProjectionPicker:()=>$Ne,ProjectionPickerViewModel:()=>qNe,Property:()=>Nt,PropertyArray:()=>dde,PropertyAttribute:()=>Tce,PropertyAttributeProperty:()=>fAe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>$7,PropertyTextureProperty:()=>dAe,ProviderViewModel:()=>Ef,Proxy:()=>pxt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>Ehe,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Kft,QuadtreeTile:()=>Nq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>XO,QuantizedMeshTerrainData:()=>yde,QuarticRealPolynomial:()=>Swe,Quaternion:()=>fr,QuaternionSpline:()=>pMe,Queue:()=>lV,RasterizeHtml:()=>V4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>vce,RectangleGeometry:()=>cO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>$Re,RectangleGraphics:()=>Iz,RectangleOutlineGeometry:()=>gce,RectangularSensor:()=>Z6,RectangularSensorFS:()=>gle,RectangularSensorGraphics:()=>Zgt,RectangularSensorPrimitive:()=>bNe,RectangularSensorScanPlaneFS:()=>vNe,RectangularSensorVS:()=>Dde,RectangularSensorVisualizer:()=>CNe,ReferenceFrame:()=>fp,ReferenceProperty:()=>V7,RegionPolygonTexture:()=>YDe,RegionTexture:()=>KDe,RegionWeather:()=>Fde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Ib,Request:()=>dm,RequestErrorEvent:()=>YZ,RequestScheduler:()=>x1,RequestState:()=>fc,RequestType:()=>n2,ResetViewNavigationControl:()=>eNe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>YS,ResourceCacheStatistics:()=>UAe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>UB,S3MDataSource:()=>qft,SDFSettings:()=>ev,SampledPositionProperty:()=>oS,SampledProperty:()=>hM,Sampler:()=>Yo,ScaledPositionProperty:()=>Vz,Scene:()=>GO,SceneFramebuffer:()=>Dhe,SceneHeightMap:()=>_Ne,SceneHeightWaterPostProcessing:()=>kT,SceneHeightWaterPrimitive:()=>Tgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>bVe,SceneModePicker:()=>nWe,SceneModePickerViewModel:()=>rWe,SceneTransforms:()=>Ca,SceneTransitioner:()=>MGe,ScreenSpaceCameraController:()=>ZGe,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>b6,SelectionIndicator:()=>aWe,SelectionIndicatorViewModel:()=>oWe,Sensor:()=>wgt,SensorVolumePortionToDisplay:()=>lle,ShaderBuilder:()=>Bce,ShaderCache:()=>b5e,ShaderDestination:()=>Ji,ShaderFunction:()=>FVe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>VVe,ShadowMap:()=>RV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>_M,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>E6,SimplePolylineGeometry:()=>fxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>TVe,SkyAtmosphere:()=>qq,SkyBox:()=>FO,SlopeArrow:()=>Wde,SpatialNode:()=>pFe,Spdcf:()=>JAe,SpecularEnvironmentCubeMap:()=>v9,SphereEmitter:()=>z4,SphereGeometry:()=>mxt,SphereOutlineGeometry:()=>uV,Spherical:()=>QFe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>jhe,SpotLight:()=>emt,StaticGeometryColorBatch:()=>pM,StaticGeometryPerMaterialBatch:()=>fM,StaticGroundGeometryColorBatch:()=>hse,StaticGroundGeometryPerMaterialBatch:()=>rAe,StaticGroundPolylinePerMaterialBatch:()=>U3e,StaticOutlineGeometryBatch:()=>dse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>dMe,Stereographic:()=>Pb,StorageType:()=>RH,StripeMaterialProperty:()=>sle,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>b9,StyleExpression:()=>Qxt,Sun:()=>AFe,SunLight:()=>T4,SunPostProcess:()=>kGe,SupportedImageFormats:()=>HAe,SvgPathBindingHandler:()=>ENe,TaskProcessor:()=>xp,Terrain:()=>BDe,TerrainData:()=>_O,TerrainEncoding:()=>IS,TerrainFillMesh:()=>She,TerrainFlatten:()=>UO,TerrainFlattenPolygonTexture:()=>JDe,TerrainMesh:()=>vO,TerrainOffsetProperty:()=>fce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>yNe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>uDe,TextureAtlas:()=>lue,TextureCache:()=>C5e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>QPe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>sue,TextureUniform:()=>due,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>PS,TileBoundingS2Cell:()=>L3e,TileBoundingSphere:()=>TV,TileBoundingVolume:()=>qxt,TileCoordinatesImageryProvider:()=>f$,TileDiscardPolicy:()=>$xt,TileEdge:()=>hs,TileImagery:()=>Che,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>T3e,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>sm,TileReplacementQueue:()=>Phe,TileSelectionResult:()=>fa,TileState:()=>egt,Tileset3DTileContent:()=>h3e,TilesetMetadata:()=>R3e,TilesetPipelineStage:()=>bMe,TilesetRegionWeather:()=>gNe,TilingScheme:()=>xxt,TimeConstants:()=>hc,TimeDynamicImagery:()=>vhe,TimeDynamicPointCloud:()=>Qhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>VH,TimeIntervalCollectionProperty:()=>fH,TimeStandard:()=>cu,Timeline:()=>uWe,TimelineHighlightRange:()=>sWe,TimelineTrack:()=>lWe,Tipsify:()=>Ewe,ToggleButtonViewModel:()=>yB,Tonemapper:()=>wZ,TrackingReferenceFrame:()=>EB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>eGe,TridiagonalSystemSolver:()=>Xce,TrustedServers:()=>eue,TweenCollection:()=>Hhe,UniformState:()=>T5e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>rmt,UrlTemplateImageryProvider:()=>zb,UserInterfaceControl:()=>Mde,Utils:()=>TL,VERSION:()=>s0e,VRButton:()=>pWe,VRButtonViewModel:()=>dWe,VRTheWorldTerrainProvider:()=>vxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>AH,Vector3DTileClampedPolylines:()=>g3e,Vector3DTileContent:()=>v3e,Vector3DTileGeometry:()=>pZ,Vector3DTilePoints:()=>d3e,Vector3DTilePolygons:()=>p3e,Vector3DTilePolylines:()=>nhe,Vector3DTilePrimitive:()=>qce,VelocityOrientationProperty:()=>qFe,VelocityVectorProperty:()=>Iq,VertexArray:()=>Cu,VertexArrayFacade:()=>h7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>wVe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>gxt,View:()=>N1,ViewShed:()=>Dgt,ViewShedMap:()=>R4,ViewShedMapShader:()=>XG,Viewer:()=>a0e,ViewportQuad:()=>K4,Visibility:()=>Rl,Visualizer:()=>Lmt,VolumeCloud:()=>Zde,VoxelBoxShape:()=>Yq,VoxelCell:()=>BGe,VoxelContent:()=>zhe,VoxelCylinderShape:()=>Kq,VoxelEllipsoidShape:()=>Jq,VoxelInspector:()=>hWe,VoxelInspectorViewModel:()=>cWe,VoxelMetadataOrder:()=>E9,VoxelPrimitive:()=>Qq,VoxelProvider:()=>tgt,VoxelRenderResources:()=>oFe,VoxelShape:()=>igt,VoxelShapeType:()=>Gb,VoxelTraversal:()=>fFe,VulkanConstants:()=>bxt,WallGeometry:()=>eAe,WallGeometryLibrary:()=>yce,WallGeometryUpdater:()=>iAe,WallGraphics:()=>S7,WallOutlineGeometry:()=>tAe,WaterFS:()=>sRe,WaterHeightMap:()=>Igt,WaterMaterialProperty:()=>nmt,WaterPipelinePrimitive:()=>lde,WaterPostProcessing:()=>vle,WaterPostProcessingEx:()=>ble,WaterPrimitive:()=>Ode,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>TNe,WaterReflectImageEx:()=>SNe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>TO,WebMapTileServiceImageryProvider:()=>LV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>gp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Uce,WireframePipelineStage:()=>LVe,ZoomNavigationControl:()=>fle,_shadersAcesTonemappingStage:()=>rGe,_shadersAdditiveBlend:()=>OGe,_shadersAdjustTranslucentFS:()=>Ose,_shadersAllMaterialAppearanceFS:()=>jIe,_shadersAllMaterialAppearanceVS:()=>QIe,_shadersAmbientOcclusionGenerate:()=>nGe,_shadersAmbientOcclusionModulate:()=>oGe,_shadersAspectRampMaterial:()=>Awe,_shadersAtmosphereCommon:()=>y9,_shadersAtmosphereStageFS:()=>CMe,_shadersAtmosphereStageVS:()=>TMe,_shadersBasicMaterialAppearanceFS:()=>qIe,_shadersBasicMaterialAppearanceVS:()=>$Ie,_shadersBillboardCollectionFS:()=>MPe,_shadersBillboardCollectionVS:()=>VPe,_shadersBlackAndWhite:()=>aGe,_shadersBloomComposite:()=>sGe,_shadersBrdfLutGeneratorFS:()=>L5e,_shadersBrightPass:()=>XGe,_shadersBrightness:()=>lGe,_shadersBumpMapMaterial:()=>Mwe,_shadersCPUStylingStageFS:()=>JMe,_shadersCPUStylingStageVS:()=>KMe,_shadersCheckerboardMaterial:()=>Vwe,_shadersCloudCollectionFS:()=>cDe,_shadersCloudCollectionVS:()=>hDe,_shadersCloudNoiseFS:()=>dDe,_shadersCloudNoiseVS:()=>pDe,_shadersCompareAndPackTranslucentDepth:()=>$5e,_shadersCompositeOITFS:()=>B5e,_shadersCompositeTranslucentClassification:()=>hQ,_shadersComputeIrradianceFS:()=>sAe,_shadersComputeRadianceMapFS:()=>lAe,_shadersContrastBias:()=>uGe,_shadersConvolveSpecularMapFS:()=>uAe,_shadersConvolveSpecularMapVS:()=>cAe,_shadersCustomShaderStageFS:()=>qMe,_shadersCustomShaderStageVS:()=>QMe,_shadersCzmBuiltins:()=>Fj,_shadersDepthOfField:()=>cGe,_shadersDepthPlaneFS:()=>R5e,_shadersDepthPlaneVS:()=>A5e,_shadersDepthView:()=>hGe,_shadersDepthViewPacked:()=>Rgt,_shadersDotMaterial:()=>Gwe,_shadersEdgeDetection:()=>dGe,_shadersElevationBandMaterial:()=>Fwe,_shadersElevationContourMaterial:()=>Dwe,_shadersElevationRampMaterial:()=>Nwe,_shadersEllipsoidFS:()=>Wse,_shadersEllipsoidSurfaceAppearanceFS:()=>iRe,_shadersEllipsoidSurfaceAppearanceVS:()=>rRe,_shadersEllipsoidVS:()=>Zse,_shadersFXAA:()=>mGe,_shadersFXAA3_11:()=>bGe,_shadersFadeMaterial:()=>Wwe,_shadersFeatureIdStageFS:()=>$Me,_shadersFeatureIdStageVS:()=>eVe,_shadersFilmicTonemapping:()=>pGe,_shadersGaussianBlur1D:()=>I6,_shadersGeometryStageFS:()=>oVe,_shadersGeometryStageVS:()=>aVe,_shadersGlobeFS:()=>Y3e,_shadersGlobeVS:()=>K3e,_shadersGridMaterial:()=>Zwe,_shadersGroundAtmosphere:()=>Ase,_shadersHSBToRGB:()=>RLe,_shadersHSLToRGB:()=>ALe,_shadersImageBasedLightingStageFS:()=>wMe,_shadersInstancingStageCommon:()=>NMe,_shadersInstancingStageVS:()=>WMe,_shadersIntersectBox:()=>QGe,_shadersIntersectClippingPlanes:()=>jGe,_shadersIntersectCylinder:()=>qGe,_shadersIntersectDepth:()=>JGe,_shadersIntersectEllipsoid:()=>$Ge,_shadersIntersectLongitude:()=>Use,_shadersIntersection:()=>fQ,_shadersIntersectionUtils:()=>KGe,_shadersLegacyInstancingStageVS:()=>ZMe,_shadersLensFlare:()=>xGe,_shadersLightingStageFS:()=>lVe,_shadersMaterialStageFS:()=>cVe,_shadersMegatexture:()=>nFe,_shadersMetadataStageFS:()=>tVe,_shadersMetadataStageVS:()=>iVe,_shadersModelClippingPlanesStageFS:()=>AMe,_shadersModelClippingPolygonsStageFS:()=>GMe,_shadersModelClippingPolygonsStageVS:()=>VMe,_shadersModelColorStageFS:()=>RMe,_shadersModelFS:()=>JVe,_shadersModelFlattenStageFS:()=>qVe,_shadersModelFlattenStageVS:()=>QVe,_shadersModelSilhouetteStageFS:()=>NVe,_shadersModelSilhouetteStageVS:()=>WVe,_shadersModelSplitterStageFS:()=>OVe,_shadersModelVS:()=>KVe,_shadersModifiedReinhardTonemapping:()=>gGe,_shadersMorphTargetsStageVS:()=>dVe,_shadersNightVision:()=>yGe,_shadersNormalMapMaterial:()=>Owe,_shadersOctree:()=>rFe,_shadersPassThrough:()=>BM,_shadersPassThroughDepth:()=>P6,_shadersPbrNeutralTonemapping:()=>fGe,_shadersPerInstanceColorAppearanceFS:()=>cIe,_shadersPerInstanceColorAppearanceVS:()=>hIe,_shadersPerInstanceFlatColorAppearanceFS:()=>Cue,_shadersPerInstanceFlatColorAppearanceVS:()=>dIe,_shadersPointCloudEyeDomeLighting:()=>rMe,_shadersPointCloudStylingStageVS:()=>mVe,_shadersPointPrimitiveCollectionFS:()=>oB,_shadersPointPrimitiveCollectionVS:()=>WPe,_shadersPolygonSignedDistanceFS:()=>aAe,_shadersPolylineArrowMaterial:()=>Xwe,_shadersPolylineColorAppearanceVS:()=>aIe,_shadersPolylineCommon:()=>J9,_shadersPolylineDashMaterial:()=>kwe,_shadersPolylineFS:()=>Tue,_shadersPolylineGlowMaterial:()=>Uwe,_shadersPolylineMaterialAppearanceVS:()=>sIe,_shadersPolylineOutlineMaterial:()=>Bwe,_shadersPolylineShadowVolumeFS:()=>iIe,_shadersPolylineShadowVolumeMorphFS:()=>rIe,_shadersPolylineShadowVolumeMorphVS:()=>nIe,_shadersPolylineShadowVolumeVS:()=>oIe,_shadersPolylineVS:()=>nRe,_shadersPostProcessRain:()=>Agt,_shadersPostProcessSnow:()=>Mgt,_shadersPrimitiveOutlineStageFS:()=>yVe,_shadersPrimitiveOutlineStageVS:()=>gVe,_shadersRGBToHSB:()=>rPe,_shadersRGBToHSL:()=>nPe,_shadersRGBToXYZ:()=>oPe,_shadersReinhardTonemapping:()=>_Ge,_shadersReprojectWebMercatorFS:()=>n5e,_shadersReprojectWebMercatorVS:()=>o5e,_shadersRimLightingMaterial:()=>Hwe,_shadersSelectedFeatureIdStageCommon:()=>vse,_shadersShadowVolumeAppearanceFS:()=>Sue,_shadersShadowVolumeAppearanceVS:()=>uIe,_shadersShadowVolumeFS:()=>GQ,_shadersSilhouette:()=>vGe,_shadersSkinningStageVS:()=>CVe,_shadersSkyAtmosphereCommon:()=>Yse,_shadersSkyAtmosphereFS:()=>TFe,_shadersSkyAtmosphereVS:()=>SFe,_shadersSkyBoxFS:()=>EFe,_shadersSkyBoxVS:()=>LFe,_shadersSlopeRampMaterial:()=>zwe,_shadersStripeMaterial:()=>Ywe,_shadersSunFS:()=>PFe,_shadersSunTextureFS:()=>IFe,_shadersSunVS:()=>RFe,_shadersTexturedMaterialAppearanceFS:()=>eRe,_shadersTexturedMaterialAppearanceVS:()=>tRe,_shadersVector3DTileClampedPolylinesFS:()=>x3e,_shadersVector3DTileClampedPolylinesVS:()=>m3e,_shadersVector3DTilePolylinesVS:()=>f3e,_shadersVectorTileVS:()=>Cse,_shadersVerticalExaggerationStageVS:()=>SVe,_shadersViewportQuadFS:()=>fDe,_shadersViewportQuadVS:()=>Rhe,_shadersVoxelFS:()=>zGe,_shadersVoxelUtils:()=>HGe,_shadersVoxelVS:()=>YGe,_shadersWater:()=>Jwe,_shadersWaterMaskMaterial:()=>Kwe,_shadersXYZToRGB:()=>IPe,_shadersacesTonemapping:()=>KEe,_shadersalphaWeight:()=>JEe,_shadersantialias:()=>jEe,_shadersapplyHSBShift:()=>QEe,_shadersapproximateSphericalCoordinates:()=>qEe,_shadersapproximateTanh:()=>$Ee,_shadersbackFacing:()=>eLe,_shadersbranchFreeTernary:()=>tLe,_shaderscascadeColor:()=>iLe,_shaderscascadeDistance:()=>rLe,_shaderscascadeMatrix:()=>nLe,_shaderscascadeWeights:()=>oLe,_shadersclipPolygons:()=>aLe,_shaderscolumbusViewMorph:()=>sLe,_shaderscomputeAtmosphereColor:()=>lLe,_shaderscomputeGroundAtmosphereScattering:()=>uLe,_shaderscomputePosition:()=>cLe,_shaderscomputeScattering:()=>hLe,_shadersconvertUvToBox:()=>eFe,_shadersconvertUvToCylinder:()=>tFe,_shadersconvertUvToEllipsoid:()=>iFe,_shaderscosineAndSine:()=>dLe,_shadersdecompressTextureCoordinates:()=>pLe,_shadersdegreesPerRadian:()=>iEe,_shadersdepthClamp:()=>fLe,_shadersdepthRange:()=>rEe,_shadersdepthRangeStruct:()=>OEe,_shaderseastNorthUpToEyeCoordinates:()=>mLe,_shadersellipsoidContainsPoint:()=>xLe,_shadersellipsoidTextureCoordinates:()=>gLe,_shadersepsilon1:()=>nEe,_shadersepsilon2:()=>oEe,_shadersepsilon3:()=>aEe,_shadersepsilon4:()=>sEe,_shadersepsilon5:()=>lEe,_shadersepsilon6:()=>uEe,_shadersepsilon7:()=>cEe,_shadersequalsEpsilon:()=>yLe,_shaderseyeOffset:()=>_Le,_shaderseyeToWindowCoordinates:()=>vLe,_shadersfastApproximateAtan:()=>bLe,_shadersfog:()=>CLe,_shadersgammaCorrect:()=>TLe,_shadersgeodeticSurfaceNormal:()=>SLe,_shadersgetDefaultMaterial:()=>wLe,_shadersgetDynamicAtmosphereLightDirection:()=>ELe,_shadersgetLambertDiffuse:()=>LLe,_shadersgetSpecular:()=>PLe,_shadersgetWaterNoise:()=>ILe,_shadershue:()=>MLe,_shadersinfinity:()=>hEe,_shadersinverseGamma:()=>VLe,_shadersisEmpty:()=>GLe,_shadersisFull:()=>FLe,_shaderslatitudeToWebMercatorFraction:()=>DLe,_shaderslineDistance:()=>WLe,_shaderslinearToSrgb:()=>NLe,_shadersluminance:()=>ZLe,_shadersmaterial:()=>XEe,_shadersmaterialInput:()=>kEe,_shadersmaximumComponent:()=>OLe,_shadersmetersPerPixel:()=>XLe,_shadersmodelMaterial:()=>UEe,_shadersmodelToWindowCoordinates:()=>kLe,_shadersmodelVertexOutput:()=>BEe,_shadersmultiplyWithColorBalance:()=>ULe,_shadersnearFarScalar:()=>BLe,_shadersoctDecode:()=>HLe,_shadersoneOverPi:()=>dEe,_shadersoneOverTwoPi:()=>pEe,_shaderspackDepth:()=>zLe,_shaderspassCesium3DTile:()=>fEe,_shaderspassCesium3DTileClassification:()=>mEe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>xEe,_shaderspassClassification:()=>gEe,_shaderspassCompute:()=>yEe,_shaderspassEnvironment:()=>_Ee,_shaderspassGlobe:()=>vEe,_shaderspassOpaque:()=>bEe,_shaderspassOverlay:()=>CEe,_shaderspassTerrainClassification:()=>TEe,_shaderspassTranslucent:()=>SEe,_shaderspassVoxels:()=>wEe,_shaderspbrLighting:()=>YLe,_shaderspbrNeutralTonemapping:()=>KLe,_shadersphong:()=>JLe,_shaderspi:()=>EEe,_shaderspiOverFour:()=>LEe,_shaderspiOverSix:()=>PEe,_shaderspiOverThree:()=>IEe,_shaderspiOverTwo:()=>REe,_shadersplaneDistance:()=>jLe,_shaderspointAlongRay:()=>QLe,_shadersradiansPerDegree:()=>AEe,_shadersray:()=>HEe,_shadersrayEllipsoidIntersectionInterval:()=>qLe,_shadersraySegment:()=>zEe,_shadersraySphereIntersectionInterval:()=>$Le,_shadersreadDepth:()=>ePe,_shadersreadNonPerspective:()=>tPe,_shadersreverseLogDepth:()=>iPe,_shadersround:()=>aPe,_shaderssaturation:()=>sPe,_shaderssceneMode2D:()=>MEe,_shaderssceneMode3D:()=>VEe,_shaderssceneModeColumbusView:()=>GEe,_shaderssceneModeMorphing:()=>FEe,_shadersshadowDepthCompare:()=>lPe,_shadersshadowParameters:()=>YEe,_shadersshadowVisibility:()=>uPe,_shaderssignNotZero:()=>cPe,_shaderssolarRadius:()=>DEe,_shaderssphericalHarmonics:()=>hPe,_shaderssrgbToLinear:()=>dPe,_shaderstangentToEyeSpaceMatrix:()=>pPe,_shaderstextureCube:()=>fPe,_shadersthreePiOver2:()=>NEe,_shaderstransformPlane:()=>mPe,_shaderstranslateRelativeToEye:()=>xPe,_shaderstranslucentPhong:()=>gPe,_shaderstranspose:()=>yPe,_shaderstwoPi:()=>WEe,_shadersunpackClippingExtents:()=>_Pe,_shadersunpackDepth:()=>vPe,_shadersunpackFloat:()=>bPe,_shadersunpackUint:()=>CPe,_shadersvalueTransform:()=>TPe,_shadersvertexLogDepth:()=>SPe,_shaderswebMercatorMaxLatitude:()=>ZEe,_shaderswindowToEyeCoordinates:()=>wPe,_shaderswriteDepthClamp:()=>EPe,_shaderswriteLogDepth:()=>LPe,_shaderswriteNonPerspective:()=>PPe,addBuffer:()=>RAe,addDefaults:()=>CAe,addExtensionsRequired:()=>LAe,addExtensionsUsed:()=>fO,addPipelineExtras:()=>nq,addToArray:()=>n1,appendForwardSlash:()=>YSe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>aue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>sFe,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>phe,createBillboardPointCallback:()=>rhe,createBlurStage:()=>xle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>MNe,createDefaultTerrainProviderViewModels:()=>VNe,createEdgeStage:()=>q4,createElevationBandMaterial:()=>Fxt,createFragmentFromTemplate:()=>jDe,createGooglePhotorealistic3DTileset:()=>Dxt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Nxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>bb,createTangentSpaceDebugPrimitive:()=>Wxt,createTaskProcessorWorker:()=>Xgt,createUniform:()=>$we,createUniformArray:()=>tEe,createWorldBathymetryAsync:()=>bDe,createWorldImageryAsync:()=>YB,createWorldTerrainAsync:()=>_de,decodeGoogleEarthEnterpriseData:()=>TDe,decodeVectorPolylinePositions:()=>y3e,defaultValue:()=>zmt,defer:()=>mp,defined:()=>F,demodernizeShader:()=>RPe,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>bmt,fflate_module:()=>lNe,findAccessorMinMax:()=>oq,findContentMetadata:()=>ahe,findGroupMetadata:()=>she,findTileMetadata:()=>w3e,forEachTextureInMaterial:()=>Ice,formatError:()=>vH,fragment:()=>Ggt,freezeRenderState:()=>xtt,getAbsoluteUri:()=>eH,getAccessorByteStride:()=>XF,getBaseUri:()=>JSe,getBinaryAccessor:()=>SM,getClipAndStyleCode:()=>MFe,getClippingFunction:()=>Aq,getComponentReader:()=>J7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>E7,getImageFromTypedArray:()=>jPe,getImagePixels:()=>HZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>Qz,getMetadataClassProperty:()=>xFe,getMetadataProperty:()=>yFe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>k7,isBitSet:()=>m1,isBlobUri:()=>jle,isCrossOriginUrl:()=>zZ,isDataUri:()=>a7,isLeapYear:()=>KZ,knockout:()=>sr,knockout_3_5_1:()=>FV,knockout_es5:()=>wNe,libgif:()=>xRe,loadAndExecuteScript:()=>Qle,loadCRN:()=>oxt,loadCubeMap:()=>wFe,loadDDS:()=>tue,loadImageFromTypedArray:()=>jz,loadKTX2:()=>IF,loadView:()=>Ade,mergeSort:()=>C4,moveTechniqueRenderStates:()=>EAe,moveTechniquesToExtension:()=>PAe,numberOfComponentsForType:()=>dO,objFS:()=>pNe,objectToQuery:()=>qle,oneTimeWarning:()=>aa,packer:()=>eIe,parseBatchTable:()=>e4,parseDefines:()=>xNe,parseFeatureMetadataLegacy:()=>_Ae,parseGlb:()=>SAe,parseResponseHeaders:()=>jSe,parseStructuralMetadata:()=>yAe,pickModel:()=>r3e,pointInsideTriangle:()=>hxt,preprocess3DTileContent:()=>vq,processVoxelProperties:()=>aFe,queryToObject:()=>lI,rasterizeHTML_allinone:()=>BFe,readAccessorPacked:()=>AAe,removeExtension:()=>g6,removeExtensionsRequired:()=>TAe,removeExtensionsUsed:()=>Pce,removePipelineExtras:()=>wAe,removeUnusedElements:()=>IAe,remove_primitive:()=>W6,resizeImageToNextPowerOfTwo:()=>MQ,sampleTerrain:()=>Rq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>iue,srgbToLinear:()=>qhe,subdivideArray:()=>lIe,subscribeAndEvaluate:()=>Lb,svgCompassGyro:()=>iNe,svgCompassOuterRing:()=>tNe,svgCompassRotationMarker:()=>rNe,svgReset:()=>qDe,turf:()=>Po,updateAccessorComponentTypes:()=>MAe,updateVersion:()=>FAe,usesExtension:()=>cm,vertex:()=>Fgt,viewerCesium3DTilesInspectorMixin:()=>dyt,viewerCesiumInspectorMixin:()=>pyt,viewerCesiumNavigationMixin:()=>ugt,viewerDragDropMixin:()=>fyt,viewerPerformanceWatchdogMixin:()=>myt,viewerVoxelInspectorMixin:()=>xyt,webGLConstantToGlslType:()=>Cxt,wrapFunction:()=>RDe,writeTextToCanvas:()=>z9});we();var sSe={};var gVt=Object.create,Sqe=Object.defineProperty,yVt=Object.getOwnPropertyDescriptor,_Vt=Object.getOwnPropertyNames,vVt=Object.getPrototypeOf,bVt=Object.prototype.hasOwnProperty,_Z=(o=>typeof AT<"u"?AT:typeof Proxy<"u"?new Proxy(o,{get:(f,m)=>(typeof AT<"u"?AT:f)[m]}):o)(function(o){if(typeof AT<"u")return AT.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')}),Zt=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),CVt=(o,f,m,x)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of _Vt(f))!bVt.call(o,y)&&y!==m&&Sqe(o,y,{get:()=>f[y],enumerable:!(x=yVt(f,y))||x.enumerable});return o},k0=(o,f,m)=>(m=o!=null?gVt(vVt(o)):{},CVt(f||!o||!o.__esModule?Sqe(m,"default",{value:o,enumerable:!0}):m,o)),lSe=Zt((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,y){var v,C,T;for(this.init_seed(19650218),v=1,C=0,T=this.N>y?this.N:y;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1664525<<16)+(S&65535)*1664525)+x[C]+C,this.mt[v]>>>=0,v++,C++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1),C>=y&&(C=0)}for(T=this.N-1;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1566083941<<16)+(S&65535)*1566083941)-v,this.mt[v]>>>=0,v++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1)}this.mt[0]=2147483648},m.prototype.random_int=function(){var x,y=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var v;for(this.mti==this.N+1&&this.init_seed(5489),v=0;v<this.N-this.M;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+this.M]^x>>>1^y[x&1];for(;v<this.N-1;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+(this.M-this.N)]^x>>>1^y[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^y[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,y=this.random_int()>>>6;return(x*67108864+y)*(1/9007199254740992)},f.exports=m}),TVt=Zt((o,f)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(m){var x=typeof o=="object"&&o&&!o.nodeType&&o,y=typeof f=="object"&&f&&!f.nodeType&&f,v=typeof global=="object"&&global;(v.global===v||v.window===v||v.self===v)&&(m=v);var C,T=2147483647,S=36,w=1,E=26,L=38,I=700,R=72,P=128,A="-",M=/^xn--/,V=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=S-w,k=Math.floor,U=String.fromCharCode,B;function Y(oe){throw new RangeError(D[oe])}function J(oe,ce){for(var pe=oe.length,ue=[];pe--;)ue[pe]=ce(oe[pe]);return ue}function K(oe,ce){var pe=oe.split("@"),ue="";pe.length>1&&(ue=pe[0]+"@",oe=pe[1]),oe=oe.replace(G,".");var he=oe.split("."),fe=J(he,ce).join(".");return ue+fe}function z(oe){for(var ce=[],pe=0,ue=oe.length,he,fe;pe<ue;)he=oe.charCodeAt(pe++),he>=55296&&he<=56319&&pe<ue?(fe=oe.charCodeAt(pe++),(fe&64512)==56320?ce.push(((he&1023)<<10)+(fe&1023)+65536):(ce.push(he),pe--)):ce.push(he);return ce}function j(oe){return J(oe,function(ce){var pe="";return ce>65535&&(ce-=65536,pe+=U(ce>>>10&1023|55296),ce=56320|ce&1023),pe+=U(ce),pe}).join("")}function q(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:S}function O(oe,ce){return oe+22+75*(oe<26)-((ce!=0)<<5)}function te(oe,ce,pe){var ue=0;for(oe=pe?k(oe/I):oe>>1,oe+=k(oe/ce);oe>N*E>>1;ue+=S)oe=k(oe/N);return k(ue+(N+1)*oe/(oe+L))}function ie(oe){var ce=[],pe=oe.length,ue,he=0,fe=P,de=R,Ce,Se,Le,Ve,Oe,$e,at,dt,gt;for(Ce=oe.lastIndexOf(A),Ce<0&&(Ce=0),Se=0;Se<Ce;++Se)oe.charCodeAt(Se)>=128&&Y("not-basic"),ce.push(oe.charCodeAt(Se));for(Le=Ce>0?Ce+1:0;Le<pe;){for(Ve=he,Oe=1,$e=S;Le>=pe&&Y("invalid-input"),at=q(oe.charCodeAt(Le++)),(at>=S||at>k((T-he)/Oe))&&Y("overflow"),he+=at*Oe,dt=$e<=de?w:$e>=de+E?E:$e-de,!(at<dt);$e+=S)gt=S-dt,Oe>k(T/gt)&&Y("overflow"),Oe*=gt;ue=ce.length+1,de=te(he-Ve,ue,Ve==0),k(he/ue)>T-fe&&Y("overflow"),fe+=k(he/ue),he%=ue,ce.splice(he++,0,fe)}return j(ce)}function re(oe){var ce,pe,ue,he,fe,de,Ce,Se,Le,Ve,Oe,$e=[],at,dt,gt,Et;for(oe=z(oe),at=oe.length,ce=P,pe=0,fe=R,de=0;de<at;++de)Oe=oe[de],Oe<128&&$e.push(U(Oe));for(ue=he=$e.length,he&&$e.push(A);ue<at;){for(Ce=T,de=0;de<at;++de)Oe=oe[de],Oe>=ce&&Oe<Ce&&(Ce=Oe);for(dt=ue+1,Ce-ce>k((T-pe)/dt)&&Y("overflow"),pe+=(Ce-ce)*dt,ce=Ce,de=0;de<at;++de)if(Oe=oe[de],Oe<ce&&++pe>T&&Y("overflow"),Oe==ce){for(Se=pe,Le=S;Ve=Le<=fe?w:Le>=fe+E?E:Le-fe,!(Se<Ve);Le+=S)Et=Se-Ve,gt=S-Ve,$e.push(U(O(Ve+Et%gt,0))),Se=k(Et/gt);$e.push(U(O(Se,0))),fe=te(pe,dt,ue==he),pe=0,++ue}++pe,++ce}return $e.join("")}function ee(oe){return K(oe,function(ce){return M.test(ce)?ie(ce.slice(4).toLowerCase()):ce})}function ae(oe){return K(oe,function(ce){return V.test(ce)?"xn--"+re(ce):ce})}if(C={version:"1.3.2",ucs2:{decode:z,encode:j},decode:ie,encode:re,toASCII:ae,toUnicode:ee},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(x&&y)if(f.exports==x)y.exports=C;else for(B in C)C.hasOwnProperty(B)&&(x[B]=C[B]);else m.punycode=C})(o)}),SVt=Zt((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 bBe=mVt;var mWe={};jJ(mWe,{AlphaMode:()=>IH,AlphaPipelineStage:()=>HMe,AnchorPointDirect:()=>zAe,AnchorPointIndirect:()=>YAe,Animation:()=>PNe,AnimationViewModel:()=>INe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>xde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>bce,AtmospherePipelineStage:()=>SMe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>CGe,AutomaticUniforms:()=>bB,Axis:()=>D0,AxisAlignedBoundingBox:()=>b7,B3dmLoader:()=>oMe,B3dmParser:()=>nMe,Base64Encoder:()=>Tae,BaseLayerPicker:()=>ANe,BaseLayerPickerViewModel:()=>RNe,BatchTable:()=>Tz,BatchTableHierarchy:()=>Zce,BatchTexture:()=>JT,BatchTexturePipelineStage:()=>zMe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>sV,BillboardLoadState:()=>Om,BillboardTexture:()=>mz,BillboardVisualizer:()=>PRe,BingMapsGeocoderService:()=>Amt,BingMapsImageryProvider:()=>bO,BingMapsStyle:()=>mhe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>dz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ihe,BoxEmitter:()=>Ede,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>IRe,BoxGraphics:()=>wue,BoxOutlineGeometry:()=>HS,BrdfLutGenerator:()=>P5e,Buffer:()=>mo,BufferLoader:()=>iq,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>jMe,CallbackPositionProperty:()=>Z3e,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>VGe,CameraEventType:()=>Jc,CameraFlightPath:()=>uRe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>Mmt,CatmullRomSpline:()=>Vmt,Cesium3DContentGroup:()=>Qce,Cesium3DTile:()=>Zb,Cesium3DTileBatchTable:()=>yq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>Txt,Cesium3DTileContentFactory:()=>ohe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>n4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>uhe,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>CZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>OS,Cesium3DTileStyleEngine:()=>V3e,Cesium3DTilesInspector:()=>FNe,Cesium3DTilesInspectorViewModel:()=>GNe,Cesium3DTilesVoxelProvider:()=>Sxt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>F3e,Cesium3DTilesetCache:()=>A3e,Cesium3DTilesetGraphics:()=>Rue,Cesium3DTilesetHeatmap:()=>M3e,Cesium3DTilesetMetadata:()=>lhe,Cesium3DTilesetMostDetailedTraversal:()=>G3e,Cesium3DTilesetSkipTraversal:()=>D3e,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>W3e,CesiumInspector:()=>NNe,CesiumInspectorViewModel:()=>DNe,CesiumNavigation:()=>aNe,CesiumRenderPass:()=>mNe,CesiumTerrainProvider:()=>W4,CesiumWidget:()=>M4,Check:()=>Da,CheckerboardMaterialProperty:()=>ile,CircleEmitter:()=>GDe,CircleGeometry:()=>Omt,CircleOutlineGeometry:()=>Xmt,CircleWaveMaterialProperty:()=>fz,ClassificationModelDrawCommand:()=>zVe,ClassificationPipelineStage:()=>YMe,ClassificationPrimitive:()=>Sz,ClassificationType:()=>dc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>Ub,ClippingPolygonCollection:()=>Ry,Clock:()=>Mz,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>LNe,CloudCollection:()=>Axt,CloudType:()=>ple,CollectionSource:()=>jit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Hgt,CommandLoader:()=>sNe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>o3e,CompositeEntityCollection:()=>lmt,CompositeMaterialProperty:()=>nle,CompositePositionProperty:()=>i1,CompositeProperty:()=>nS,CompressedTextureBuffer:()=>NS,ComputeCommand:()=>dV,ComputeEngine:()=>_5e,ComputeRegionBox:()=>tgt,ConditionsExpression:()=>$Pe,ConeEmitter:()=>k4,ConicArcSensor:()=>Tle,ConicArcSensorCollection:()=>Wgt,ConicArcSensorGeometry:()=>wle,ConicArcSensorGraphics:()=>Cle,ConicArcSensorOutlineGeometry:()=>Ele,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>hMe,ConstructionWorker:()=>qit,ContentMetadata:()=>b3e,Context:()=>E5e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>uO,CoplanarPolygonGeometryLibrary:()=>NB,CoplanarPolygonOutlineGeometry:()=>rM,CornerType:()=>ad,CorrelationGroup:()=>KAe,CorridorGeometry:()=>U7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>MRe,CorridorGraphics:()=>Eue,CorridorOutlineGeometry:()=>ARe,Credit:()=>Oa,CreditDisplay:()=>I5e,CubeMap:()=>Ig,CubeMapFace:()=>Iwe,CubicRealPolynomial:()=>u7,CullFace:()=>yh,CullingVolume:()=>fm,CumulusCloud:()=>wL,CustomDataSource:()=>Vue,CustomHeightmapTerrainProvider:()=>kmt,CustomMercatorProjection:()=>gz,CustomShader:()=>P1,CustomShaderManagerEx:()=>vue,CustomShaderMode:()=>g7,CustomShaderPipelineStage:()=>rVe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Vrt,CylinderGeometry:()=>B7,CylinderGeometryLibrary:()=>mce,CylinderGeometryUpdater:()=>VRe,CylinderGraphics:()=>Lue,CylinderOutlineGeometry:()=>H7,CzmlDataSource:()=>n$,DataSource:()=>Sy,DataSourceClock:()=>n9,DataSourceCollection:()=>ERe,DataSourceDisplay:()=>Pq,DebugAppearance:()=>Nxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>UGe,DebugModelMatrixPrimitive:()=>WDe,DefaultProxy:()=>Bmt,DepthFunction:()=>wy,DepthPlane:()=>M5e,DequantizationPipelineStage:()=>nVe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>V5e,DirectionalLight:()=>U4,DiscardEmptyTileImagePolicy:()=>xhe,DiscardMissingTileImagePolicy:()=>q3e,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>QDe,DoubleEndedPriorityQueue:()=>Yhe,DoublyLinkedList:()=>Tq,DracoLoader:()=>rq,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>K7,DynamicEnvironmentMapManager:()=>PH,DynamicGeometryBatch:()=>dce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>_7,EarthOrientationParameters:()=>awe,EarthOrientationParametersSample:()=>l7,EasingFunction:()=>J_,EllipseGeometry:()=>SS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>GRe,EllipseGraphics:()=>Pue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>WRe,EllipsoidGraphics:()=>Lz,EllipsoidOutlineGeometry:()=>Db,EllipsoidPrimitive:()=>g5e,EllipsoidRhumbLine:()=>uS,EllipsoidSurfaceAppearance:()=>rO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>RS,EllipsoidalOccluder:()=>U9,Empty3DTileContent:()=>C6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>US,EntityView:()=>H3e,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>xb,ExpandByTerra:()=>Grt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>hNe,FBXPrimitive:()=>Vde,FBXTreeParser:()=>cNe,FeatureDataProvider:()=>jue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>xq,FeatureJsonData:()=>Fz,FisheyeProjectionMap:()=>Z7,FisheyeProjectionMapShader:()=>jj,FlattenVS:()=>Vgt,FlowEcharts:()=>Rde,Fog:()=>F5e,ForEach:()=>Or,FrameRateMonitor:()=>ZDe,FrameState:()=>D5e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Fhe,FrustumGeometry:()=>Dz,FrustumOutlineGeometry:()=>W7,Fullscreen:()=>km,FullscreenButton:()=>uWe,FullscreenButtonViewModel:()=>lWe,GWBaiduImageryProvider:()=>Wz,GeoJsonDataSource:()=>$Z,GeoJsonLoader:()=>lMe,GeocodeType:()=>a$,Geocoder:()=>XNe,GeocoderService:()=>bde,GeocoderViewModel:()=>ONe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>a3e,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Kmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>sVe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>Y7,GeometryVisualizer:()=>nAe,GetFeatureInfoFormat:()=>cQ,GifImageProperty:()=>Sst,Globe:()=>d5e,GlobeDepth:()=>k5e,GlobeSurfaceShaderSet:()=>j3e,GlobeSurfaceTile:()=>UM,GlobeSurfaceTileProvider:()=>u5e,GlobeTranslucency:()=>Dq,GlobeTranslucencyFramebuffer:()=>U5e,GlobeTranslucencyState:()=>W5e,GltfBufferViewLoader:()=>Sce,GltfDracoLoader:()=>wce,GltfGpmLoader:()=>jAe,GltfGpmLocal:()=>Wce,GltfImageLoader:()=>Ece,GltfIndexBufferLoader:()=>Lce,GltfInstanceLoader:()=>Oce,GltfJsonLoader:()=>Rce,GltfLoader:()=>mO,GltfLoaderUtil:()=>OM,GltfMeshPrimitiveGpmLoader:()=>eMe,GltfStructuralMetadataLoader:()=>BAe,GltfTextureLoader:()=>Ace,GltfVertexBufferLoader:()=>Mce,GoogleEarthEnterpriseImageryProvider:()=>Wxt,GoogleEarthEnterpriseMapsProvider:()=>t5e,GoogleEarthEnterpriseMetadata:()=>O4,GoogleEarthEnterpriseTerrainData:()=>dle,GoogleEarthEnterpriseTerrainProvider:()=>ext,GoogleEarthEnterpriseTileInformation:()=>yDe,GoogleGeocoderService:()=>ixt,GoogleMaps:()=>gQ,GpxDataSource:()=>lDe,Graticules:()=>ace,GregorianDate:()=>pz,GridImageryProvider:()=>Zxt,GridMaterialProperty:()=>ole,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>bz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>kS,GroupMetadata:()=>Pse,GwBufferAnalysis:()=>sce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>qSe,HeightMap:()=>Pgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>fhe,HermitePolynomialApproximation:()=>KFe,HermiteSpline:()=>_6,HilbertOrder:()=>Tse,HomeButton:()=>UNe,HomeButtonViewModel:()=>kNe,HorizontalOrigin:()=>ec,HugeAdapter:()=>gq,I3SBuildingSceneLayerExplorer:()=>ayt,I3SBuildingSceneLayerExplorerViewModel:()=>BNe,I3SDataProvider:()=>gR,I3SDecoder:()=>FFe,I3SFeature:()=>NFe,I3SField:()=>WFe,I3SGeometry:()=>jse,I3SLayer:()=>ede,I3SNode:()=>Qse,I3SStatistics:()=>OFe,I3SSublayer:()=>XFe,I3SSymbology:()=>ZFe,I3dmLoader:()=>cMe,I3dmParser:()=>uMe,ITwinData:()=>Oxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>f5e,Iau2006XysData:()=>lwe,Iau2006XysSample:()=>oue,IauOrientationAxes:()=>m5e,IauOrientationParameters:()=>p5e,ImageBasedLighting:()=>dq,ImageBasedLightingPipelineStage:()=>EMe,ImageCombine:()=>gue,ImageMaterialProperty:()=>O0,Imagery:()=>bhe,ImageryLayer:()=>Up,ImageryLayerCollection:()=>c5e,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>Lse,ImplicitAvailabilityBitstream:()=>wse,ImplicitMetadataView:()=>$ce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>ehe,ImplicitSubtreeCache:()=>MDe,ImplicitSubtreeMetadata:()=>c3e,ImplicitTileCoordinates:()=>dhe,ImplicitTileset:()=>hhe,IndexDatatype:()=>Fn,InfoBox:()=>YNe,InfoBoxViewModel:()=>zNe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>OMe,InterpolationAlgorithm:()=>rxt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>mc,Intersections2D:()=>N4,Interval:()=>VE,InvertClassification:()=>Vhe,Ion:()=>GG,IonGeocodeProviderType:()=>kZ,IonGeocoderService:()=>Sde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>zB,Iso8601:()=>wn,JobScheduler:()=>Z5e,JobType:()=>G_,JsonMetadataTable:()=>Q7,JulianDate:()=>$t,KTX2Transcoder:()=>twe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>MIe,KmlDataSource:()=>F7,KmlLookAt:()=>VIe,KmlTour:()=>GIe,KmlTourFlyTo:()=>FIe,KmlTourWait:()=>NIe,Label:()=>LQ,LabelCollection:()=>rV,LabelGraphics:()=>Pz,LabelStyle:()=>f0,LabelVisualizer:()=>oAe,LagrangePolynomialApproximation:()=>jFe,LeapSecond:()=>xh,Light:()=>kxt,LightingModel:()=>uv,LightingPipelineStage:()=>uVe,LinearApproximation:()=>Hue,LinearSampler:()=>qI,LinearSpline:()=>mq,MTLLoader:()=>dNe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>axt,MapboxImageryProvider:()=>CO,MapboxStyleImageryProvider:()=>Bxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>hVe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>Khe,MeshParser:()=>uNe,MeshPhongMaterial:()=>vQ,MeshPrimitiveGpmLocal:()=>$Ae,MetadataClass:()=>qz,MetadataClassProperty:()=>Jz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>XAe,MetadataEnumValue:()=>OAe,MetadataPicking:()=>O5e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>PM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Vce,MetadataSemantic:()=>the,MetadataTable:()=>pO,MetadataTableProperty:()=>gAe,MetadataType:()=>fo,MipmapHint:()=>O9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>AVe,ModelAnimation:()=>gMe,ModelAnimationChannel:()=>mMe,ModelAnimationCollection:()=>yMe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>IMe,ModelArticulationStage:()=>PMe,ModelClippingPlanesPipelineStage:()=>MMe,ModelClippingPolygonsPipelineStage:()=>FMe,ModelColorPipelineStage:()=>v6,ModelComponents:()=>ll,ModelDrawCommand:()=>YVe,ModelDrawCommands:()=>jVe,ModelFeature:()=>_Me,ModelFeatureTable:()=>vMe,ModelFlattenPipelineStage:()=>$Ve,ModelGraphics:()=>C7,ModelLightingOptions:()=>UVe,ModelMatrixUpdateStage:()=>kMe,ModelNode:()=>DMe,ModelRenderResources:()=>DVe,ModelRuntimeNode:()=>BMe,ModelRuntimePrimitive:()=>PVe,ModelSceneGraph:()=>e3e,ModelSilhouettePipelineStage:()=>ZVe,ModelSkin:()=>RVe,ModelSplitterPipelineStage:()=>XVe,ModelStatistics:()=>t3e,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>n3e,Moon:()=>y5e,MorphTargetsPipelineStage:()=>pVe,MorphWeightSpline:()=>sxt,MortonOrder:()=>MH,MultiResourceImageryProvider:()=>Zz,MultiResourceTerrainProvider:()=>lce,Multiple3DTileContent:()=>E3e,MultisampleFramebuffer:()=>iMe,NavigationControl:()=>j4,NavigationHelpButton:()=>JNe,NavigationHelpButtonViewModel:()=>KNe,NavigationUtils:()=>Q4,NavigationViewModel:()=>yQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Hxt,NodeRenderResources:()=>kVe,NodeStatisticsPipelineStage:()=>UMe,NodeTransformationProperty:()=>Iue,OBJLoader:()=>fNe,OBJPrimitive:()=>Gde,OIT:()=>Y5e,Occluder:()=>oce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Oz,OpenCageGeocoderService:()=>lxt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>LRe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>gm,Packable:()=>uxt,PackableForInterpolation:()=>cxt,Particle:()=>Pde,ParticleBurst:()=>H4,ParticleEmitter:()=>Kxt,ParticleSystem:()=>qS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>T7,PathVisualizer:()=>O3e,PeliasGeocoderService:()=>bDe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Xq,PerformanceWatchdog:()=>qNe,PerformanceWatchdogViewModel:()=>QNe,PerspectiveFrustum:()=>xc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>O7,PerspectiveProjectionMapShader:()=>Qj,PerspectiveProjectionMapWithDepth:()=>X7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>X5e,PickDepthFramebuffer:()=>K5e,PickFramebuffer:()=>J5e,PickGlobeSlope:()=>Bft,PickedMetadataInfo:()=>gFe,Picking:()=>iGe,PickingPipelineStage:()=>fVe,PinBuilder:()=>L7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>ZRe,PlaneGeometryUpdater:()=>kRe,PlaneGraphics:()=>pIe,PlaneOutlineGeometry:()=>ORe,PntsLoader:()=>i3e,PntsParser:()=>Jce,PointCloud:()=>VFe,PointCloudEyeDomeLighting:()=>pq,PointCloudShading:()=>r4,PointCloudStylingPipelineStage:()=>xVe,PointGraphics:()=>Aue,PointLight:()=>ide,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>nV,PointVisualizer:()=>X3e,PolygonDepth:()=>C9,PolygonDepthFS:()=>zce,PolygonDepthVS:()=>Yce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>BRe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>URe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>am,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>k3e,PolylineGlowMaterialProperty:()=>ale,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>jM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Hft,PolylineVisualizer:()=>B3e,PolylineVolumeGeometry:()=>HRe,PolylineVolumeGeometryLibrary:()=>c9,PolylineVolumeGeometryUpdater:()=>YRe,PolylineVolumeGraphics:()=>Mue,PolylineVolumeOutlineGeometry:()=>zRe,PositionProperty:()=>Ez,PositionPropertyArray:()=>pH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>EGe,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>khe,PpeMetadata:()=>qAe,PpeSource:()=>Ogt,PpeTexture:()=>QAe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>lq,PrimitiveOutlineGenerator:()=>Dce,PrimitiveOutlinePipelineStage:()=>_Ve,PrimitivePipeline:()=>QZ,PrimitiveRenderResources:()=>BVe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>vVe,PrimitiveType:()=>pn,ProjectionPicker:()=>eWe,ProjectionPickerViewModel:()=>$Ne,Property:()=>Nt,PropertyArray:()=>dde,PropertyAttribute:()=>Tce,PropertyAttributeProperty:()=>fAe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>$7,PropertyTextureProperty:()=>dAe,ProviderViewModel:()=>Ef,Proxy:()=>pxt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>Ehe,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Kft,QuadtreeTile:()=>Nq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>XO,QuantizedMeshTerrainData:()=>yde,QuarticRealPolynomial:()=>Swe,Quaternion:()=>fr,QuaternionSpline:()=>pMe,Queue:()=>lV,RasterizeHtml:()=>V4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>vce,RectangleGeometry:()=>cO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>$Re,RectangleGraphics:()=>Iz,RectangleOutlineGeometry:()=>gce,RectangularSensor:()=>Z6,RectangularSensorFS:()=>gle,RectangularSensorGraphics:()=>Zgt,RectangularSensorPrimitive:()=>bNe,RectangularSensorScanPlaneFS:()=>vNe,RectangularSensorVS:()=>Dde,RectangularSensorVisualizer:()=>CNe,ReferenceFrame:()=>fp,ReferenceProperty:()=>V7,RegionPolygonTexture:()=>YDe,RegionTexture:()=>KDe,RegionWeather:()=>Fde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Ib,Request:()=>dm,RequestErrorEvent:()=>YZ,RequestScheduler:()=>x1,RequestState:()=>fc,RequestType:()=>n2,ResetViewNavigationControl:()=>eNe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>YS,ResourceCacheStatistics:()=>UAe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>UB,S3MDataSource:()=>qft,SDFSettings:()=>ev,SampledPositionProperty:()=>oS,SampledProperty:()=>hM,Sampler:()=>Yo,ScaledPositionProperty:()=>Vz,Scene:()=>GO,SceneFramebuffer:()=>Dhe,SceneHeightMap:()=>_Ne,SceneHeightWaterPostProcessing:()=>kT,SceneHeightWaterPrimitive:()=>Tgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>bVe,SceneModePicker:()=>iWe,SceneModePickerViewModel:()=>tWe,SceneTransforms:()=>Ca,SceneTransitioner:()=>MGe,ScreenSpaceCameraController:()=>ZGe,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>b6,SelectionIndicator:()=>nWe,SelectionIndicatorViewModel:()=>rWe,Sensor:()=>wgt,SensorVolumePortionToDisplay:()=>lle,ShaderBuilder:()=>Bce,ShaderCache:()=>b5e,ShaderDestination:()=>Ji,ShaderFunction:()=>FVe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>VVe,ShadowMap:()=>RV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>_M,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>E6,SimplePolylineGeometry:()=>fxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>TVe,SkyAtmosphere:()=>qq,SkyBox:()=>FO,SlopeArrow:()=>Wde,SpatialNode:()=>pFe,Spdcf:()=>JAe,SpecularEnvironmentCubeMap:()=>v9,SphereEmitter:()=>z4,SphereGeometry:()=>mxt,SphereOutlineGeometry:()=>uV,Spherical:()=>QFe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>jhe,SpotLight:()=>emt,StaticGeometryColorBatch:()=>pM,StaticGeometryPerMaterialBatch:()=>fM,StaticGroundGeometryColorBatch:()=>hse,StaticGroundGeometryPerMaterialBatch:()=>rAe,StaticGroundPolylinePerMaterialBatch:()=>U3e,StaticOutlineGeometryBatch:()=>dse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>dMe,Stereographic:()=>Pb,StorageType:()=>RH,StripeMaterialProperty:()=>sle,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>b9,StyleExpression:()=>Jxt,Sun:()=>AFe,SunLight:()=>T4,SunPostProcess:()=>kGe,SupportedImageFormats:()=>HAe,SvgPathBindingHandler:()=>ENe,TaskProcessor:()=>xp,Terrain:()=>BDe,TerrainData:()=>_O,TerrainEncoding:()=>IS,TerrainFillMesh:()=>She,TerrainFlatten:()=>UO,TerrainFlattenPolygonTexture:()=>JDe,TerrainMesh:()=>vO,TerrainOffsetProperty:()=>fce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>yNe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>wDe,TextureAtlas:()=>lue,TextureCache:()=>C5e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>QPe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>sue,TextureUniform:()=>due,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>PS,TileBoundingS2Cell:()=>L3e,TileBoundingSphere:()=>TV,TileBoundingVolume:()=>jxt,TileCoordinatesImageryProvider:()=>f$,TileDiscardPolicy:()=>Qxt,TileEdge:()=>hs,TileImagery:()=>Che,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>T3e,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>sm,TileReplacementQueue:()=>Phe,TileSelectionResult:()=>fa,TileState:()=>qxt,Tileset3DTileContent:()=>h3e,TilesetMetadata:()=>R3e,TilesetPipelineStage:()=>bMe,TilesetRegionWeather:()=>gNe,TilingScheme:()=>xxt,TimeConstants:()=>hc,TimeDynamicImagery:()=>vhe,TimeDynamicPointCloud:()=>Qhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>VH,TimeIntervalCollectionProperty:()=>fH,TimeStandard:()=>cu,Timeline:()=>sWe,TimelineHighlightRange:()=>oWe,TimelineTrack:()=>aWe,Tipsify:()=>Ewe,ToggleButtonViewModel:()=>yB,Tonemapper:()=>wZ,TrackingReferenceFrame:()=>EB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>eGe,TridiagonalSystemSolver:()=>Xce,TrustedServers:()=>eue,TweenCollection:()=>Hhe,UniformState:()=>T5e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>rmt,UrlTemplateImageryProvider:()=>zb,UserInterfaceControl:()=>Mde,Utils:()=>TL,VERSION:()=>s0e,VRButton:()=>hWe,VRButtonViewModel:()=>cWe,VRTheWorldTerrainProvider:()=>vxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>AH,Vector3DTileClampedPolylines:()=>g3e,Vector3DTileContent:()=>v3e,Vector3DTileGeometry:()=>pZ,Vector3DTilePoints:()=>d3e,Vector3DTilePolygons:()=>p3e,Vector3DTilePolylines:()=>nhe,Vector3DTilePrimitive:()=>qce,VelocityOrientationProperty:()=>qFe,VelocityVectorProperty:()=>Iq,VertexArray:()=>Cu,VertexArrayFacade:()=>h7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>wVe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>gxt,View:()=>N1,ViewShed:()=>Dgt,ViewShedMap:()=>R4,ViewShedMapShader:()=>XG,Viewer:()=>o0e,ViewportQuad:()=>K4,Visibility:()=>Rl,Visualizer:()=>Lmt,VolumeCloud:()=>Zde,VoxelBoxShape:()=>Yq,VoxelCell:()=>BGe,VoxelContent:()=>zhe,VoxelCylinderShape:()=>Kq,VoxelEllipsoidShape:()=>Jq,VoxelInspector:()=>fWe,VoxelInspectorViewModel:()=>pWe,VoxelMetadataOrder:()=>E9,VoxelPrimitive:()=>Qq,VoxelProvider:()=>$xt,VoxelRenderResources:()=>oFe,VoxelShape:()=>egt,VoxelShapeType:()=>Gb,VoxelTraversal:()=>fFe,VulkanConstants:()=>bxt,WallGeometry:()=>eAe,WallGeometryLibrary:()=>yce,WallGeometryUpdater:()=>iAe,WallGraphics:()=>S7,WallOutlineGeometry:()=>tAe,WaterFS:()=>sRe,WaterHeightMap:()=>Igt,WaterMaterialProperty:()=>nmt,WaterPipelinePrimitive:()=>lde,WaterPostProcessing:()=>vle,WaterPostProcessingEx:()=>ble,WaterPrimitive:()=>Ode,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>TNe,WaterReflectImageEx:()=>SNe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>TO,WebMapTileServiceImageryProvider:()=>LV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>gp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Uce,WireframePipelineStage:()=>LVe,ZoomNavigationControl:()=>fle,_shadersAcesTonemappingStage:()=>rGe,_shadersAdditiveBlend:()=>OGe,_shadersAdjustTranslucentFS:()=>Ose,_shadersAllMaterialAppearanceFS:()=>jIe,_shadersAllMaterialAppearanceVS:()=>QIe,_shadersAmbientOcclusionGenerate:()=>nGe,_shadersAmbientOcclusionModulate:()=>oGe,_shadersAspectRampMaterial:()=>Awe,_shadersAtmosphereCommon:()=>y9,_shadersAtmosphereStageFS:()=>CMe,_shadersAtmosphereStageVS:()=>TMe,_shadersBasicMaterialAppearanceFS:()=>qIe,_shadersBasicMaterialAppearanceVS:()=>$Ie,_shadersBillboardCollectionFS:()=>MPe,_shadersBillboardCollectionVS:()=>VPe,_shadersBlackAndWhite:()=>aGe,_shadersBloomComposite:()=>sGe,_shadersBrdfLutGeneratorFS:()=>L5e,_shadersBrightPass:()=>XGe,_shadersBrightness:()=>lGe,_shadersBumpMapMaterial:()=>Mwe,_shadersCPUStylingStageFS:()=>JMe,_shadersCPUStylingStageVS:()=>KMe,_shadersCheckerboardMaterial:()=>Vwe,_shadersCloudCollectionFS:()=>EDe,_shadersCloudCollectionVS:()=>LDe,_shadersCloudNoiseFS:()=>PDe,_shadersCloudNoiseVS:()=>IDe,_shadersCompareAndPackTranslucentDepth:()=>$5e,_shadersCompositeOITFS:()=>B5e,_shadersCompositeTranslucentClassification:()=>hQ,_shadersComputeIrradianceFS:()=>sAe,_shadersComputeRadianceMapFS:()=>lAe,_shadersContrastBias:()=>uGe,_shadersConvolveSpecularMapFS:()=>uAe,_shadersConvolveSpecularMapVS:()=>cAe,_shadersCustomShaderStageFS:()=>qMe,_shadersCustomShaderStageVS:()=>QMe,_shadersCzmBuiltins:()=>Fj,_shadersDepthOfField:()=>cGe,_shadersDepthPlaneFS:()=>R5e,_shadersDepthPlaneVS:()=>A5e,_shadersDepthView:()=>hGe,_shadersDepthViewPacked:()=>Rgt,_shadersDotMaterial:()=>Gwe,_shadersEdgeDetection:()=>dGe,_shadersElevationBandMaterial:()=>Fwe,_shadersElevationContourMaterial:()=>Dwe,_shadersElevationRampMaterial:()=>Nwe,_shadersEllipsoidFS:()=>Wse,_shadersEllipsoidSurfaceAppearanceFS:()=>iRe,_shadersEllipsoidSurfaceAppearanceVS:()=>rRe,_shadersEllipsoidVS:()=>Zse,_shadersFXAA:()=>mGe,_shadersFXAA3_11:()=>bGe,_shadersFadeMaterial:()=>Wwe,_shadersFeatureIdStageFS:()=>$Me,_shadersFeatureIdStageVS:()=>eVe,_shadersFilmicTonemapping:()=>pGe,_shadersGaussianBlur1D:()=>I6,_shadersGeometryStageFS:()=>oVe,_shadersGeometryStageVS:()=>aVe,_shadersGlobeFS:()=>Y3e,_shadersGlobeVS:()=>K3e,_shadersGridMaterial:()=>Zwe,_shadersGroundAtmosphere:()=>Ase,_shadersHSBToRGB:()=>RLe,_shadersHSLToRGB:()=>ALe,_shadersImageBasedLightingStageFS:()=>wMe,_shadersInstancingStageCommon:()=>NMe,_shadersInstancingStageVS:()=>WMe,_shadersIntersectBox:()=>QGe,_shadersIntersectClippingPlanes:()=>jGe,_shadersIntersectCylinder:()=>qGe,_shadersIntersectDepth:()=>JGe,_shadersIntersectEllipsoid:()=>$Ge,_shadersIntersectLongitude:()=>Use,_shadersIntersection:()=>fQ,_shadersIntersectionUtils:()=>KGe,_shadersLegacyInstancingStageVS:()=>ZMe,_shadersLensFlare:()=>xGe,_shadersLightingStageFS:()=>lVe,_shadersMaterialStageFS:()=>cVe,_shadersMegatexture:()=>nFe,_shadersMetadataStageFS:()=>tVe,_shadersMetadataStageVS:()=>iVe,_shadersModelClippingPlanesStageFS:()=>AMe,_shadersModelClippingPolygonsStageFS:()=>GMe,_shadersModelClippingPolygonsStageVS:()=>VMe,_shadersModelColorStageFS:()=>RMe,_shadersModelFS:()=>JVe,_shadersModelFlattenStageFS:()=>qVe,_shadersModelFlattenStageVS:()=>QVe,_shadersModelSilhouetteStageFS:()=>NVe,_shadersModelSilhouetteStageVS:()=>WVe,_shadersModelSplitterStageFS:()=>OVe,_shadersModelVS:()=>KVe,_shadersModifiedReinhardTonemapping:()=>gGe,_shadersMorphTargetsStageVS:()=>dVe,_shadersNightVision:()=>yGe,_shadersNormalMapMaterial:()=>Owe,_shadersOctree:()=>rFe,_shadersPassThrough:()=>BM,_shadersPassThroughDepth:()=>P6,_shadersPbrNeutralTonemapping:()=>fGe,_shadersPerInstanceColorAppearanceFS:()=>cIe,_shadersPerInstanceColorAppearanceVS:()=>hIe,_shadersPerInstanceFlatColorAppearanceFS:()=>Cue,_shadersPerInstanceFlatColorAppearanceVS:()=>dIe,_shadersPointCloudEyeDomeLighting:()=>rMe,_shadersPointCloudStylingStageVS:()=>mVe,_shadersPointPrimitiveCollectionFS:()=>oB,_shadersPointPrimitiveCollectionVS:()=>WPe,_shadersPolygonSignedDistanceFS:()=>aAe,_shadersPolylineArrowMaterial:()=>Xwe,_shadersPolylineColorAppearanceVS:()=>aIe,_shadersPolylineCommon:()=>J9,_shadersPolylineDashMaterial:()=>kwe,_shadersPolylineFS:()=>Tue,_shadersPolylineGlowMaterial:()=>Uwe,_shadersPolylineMaterialAppearanceVS:()=>sIe,_shadersPolylineOutlineMaterial:()=>Bwe,_shadersPolylineShadowVolumeFS:()=>iIe,_shadersPolylineShadowVolumeMorphFS:()=>rIe,_shadersPolylineShadowVolumeMorphVS:()=>nIe,_shadersPolylineShadowVolumeVS:()=>oIe,_shadersPolylineVS:()=>nRe,_shadersPostProcessRain:()=>Agt,_shadersPostProcessSnow:()=>Mgt,_shadersPrimitiveOutlineStageFS:()=>yVe,_shadersPrimitiveOutlineStageVS:()=>gVe,_shadersRGBToHSB:()=>rPe,_shadersRGBToHSL:()=>nPe,_shadersRGBToXYZ:()=>oPe,_shadersReinhardTonemapping:()=>_Ge,_shadersReprojectWebMercatorFS:()=>n5e,_shadersReprojectWebMercatorVS:()=>o5e,_shadersRimLightingMaterial:()=>Hwe,_shadersSelectedFeatureIdStageCommon:()=>vse,_shadersShadowVolumeAppearanceFS:()=>Sue,_shadersShadowVolumeAppearanceVS:()=>uIe,_shadersShadowVolumeFS:()=>GQ,_shadersSilhouette:()=>vGe,_shadersSkinningStageVS:()=>CVe,_shadersSkyAtmosphereCommon:()=>Yse,_shadersSkyAtmosphereFS:()=>TFe,_shadersSkyAtmosphereVS:()=>SFe,_shadersSkyBoxFS:()=>EFe,_shadersSkyBoxVS:()=>LFe,_shadersSlopeRampMaterial:()=>zwe,_shadersStripeMaterial:()=>Ywe,_shadersSunFS:()=>PFe,_shadersSunTextureFS:()=>IFe,_shadersSunVS:()=>RFe,_shadersTexturedMaterialAppearanceFS:()=>eRe,_shadersTexturedMaterialAppearanceVS:()=>tRe,_shadersVector3DTileClampedPolylinesFS:()=>x3e,_shadersVector3DTileClampedPolylinesVS:()=>m3e,_shadersVector3DTilePolylinesVS:()=>f3e,_shadersVectorTileVS:()=>Cse,_shadersVerticalExaggerationStageVS:()=>SVe,_shadersViewportQuadFS:()=>RDe,_shadersViewportQuadVS:()=>Rhe,_shadersVoxelFS:()=>zGe,_shadersVoxelUtils:()=>HGe,_shadersVoxelVS:()=>YGe,_shadersWater:()=>Jwe,_shadersWaterMaskMaterial:()=>Kwe,_shadersXYZToRGB:()=>IPe,_shadersacesTonemapping:()=>KEe,_shadersalphaWeight:()=>JEe,_shadersantialias:()=>jEe,_shadersapplyHSBShift:()=>QEe,_shadersapproximateSphericalCoordinates:()=>qEe,_shadersapproximateTanh:()=>$Ee,_shadersbackFacing:()=>eLe,_shadersbranchFreeTernary:()=>tLe,_shaderscascadeColor:()=>iLe,_shaderscascadeDistance:()=>rLe,_shaderscascadeMatrix:()=>nLe,_shaderscascadeWeights:()=>oLe,_shadersclipPolygons:()=>aLe,_shaderscolumbusViewMorph:()=>sLe,_shaderscomputeAtmosphereColor:()=>lLe,_shaderscomputeGroundAtmosphereScattering:()=>uLe,_shaderscomputePosition:()=>cLe,_shaderscomputeScattering:()=>hLe,_shadersconvertUvToBox:()=>eFe,_shadersconvertUvToCylinder:()=>tFe,_shadersconvertUvToEllipsoid:()=>iFe,_shaderscosineAndSine:()=>dLe,_shadersdecompressTextureCoordinates:()=>pLe,_shadersdegreesPerRadian:()=>iEe,_shadersdepthClamp:()=>fLe,_shadersdepthRange:()=>rEe,_shadersdepthRangeStruct:()=>OEe,_shaderseastNorthUpToEyeCoordinates:()=>mLe,_shadersellipsoidContainsPoint:()=>xLe,_shadersellipsoidTextureCoordinates:()=>gLe,_shadersepsilon1:()=>nEe,_shadersepsilon2:()=>oEe,_shadersepsilon3:()=>aEe,_shadersepsilon4:()=>sEe,_shadersepsilon5:()=>lEe,_shadersepsilon6:()=>uEe,_shadersepsilon7:()=>cEe,_shadersequalsEpsilon:()=>yLe,_shaderseyeOffset:()=>_Le,_shaderseyeToWindowCoordinates:()=>vLe,_shadersfastApproximateAtan:()=>bLe,_shadersfog:()=>CLe,_shadersgammaCorrect:()=>TLe,_shadersgeodeticSurfaceNormal:()=>SLe,_shadersgetDefaultMaterial:()=>wLe,_shadersgetDynamicAtmosphereLightDirection:()=>ELe,_shadersgetLambertDiffuse:()=>LLe,_shadersgetSpecular:()=>PLe,_shadersgetWaterNoise:()=>ILe,_shadershue:()=>MLe,_shadersinfinity:()=>hEe,_shadersinverseGamma:()=>VLe,_shadersisEmpty:()=>GLe,_shadersisFull:()=>FLe,_shaderslatitudeToWebMercatorFraction:()=>DLe,_shaderslineDistance:()=>WLe,_shaderslinearToSrgb:()=>NLe,_shadersluminance:()=>ZLe,_shadersmaterial:()=>XEe,_shadersmaterialInput:()=>kEe,_shadersmaximumComponent:()=>OLe,_shadersmetersPerPixel:()=>XLe,_shadersmodelMaterial:()=>UEe,_shadersmodelToWindowCoordinates:()=>kLe,_shadersmodelVertexOutput:()=>BEe,_shadersmultiplyWithColorBalance:()=>ULe,_shadersnearFarScalar:()=>BLe,_shadersoctDecode:()=>HLe,_shadersoneOverPi:()=>dEe,_shadersoneOverTwoPi:()=>pEe,_shaderspackDepth:()=>zLe,_shaderspassCesium3DTile:()=>fEe,_shaderspassCesium3DTileClassification:()=>mEe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>xEe,_shaderspassClassification:()=>gEe,_shaderspassCompute:()=>yEe,_shaderspassEnvironment:()=>_Ee,_shaderspassGlobe:()=>vEe,_shaderspassOpaque:()=>bEe,_shaderspassOverlay:()=>CEe,_shaderspassTerrainClassification:()=>TEe,_shaderspassTranslucent:()=>SEe,_shaderspassVoxels:()=>wEe,_shaderspbrLighting:()=>YLe,_shaderspbrNeutralTonemapping:()=>KLe,_shadersphong:()=>JLe,_shaderspi:()=>EEe,_shaderspiOverFour:()=>LEe,_shaderspiOverSix:()=>PEe,_shaderspiOverThree:()=>IEe,_shaderspiOverTwo:()=>REe,_shadersplaneDistance:()=>jLe,_shaderspointAlongRay:()=>QLe,_shadersradiansPerDegree:()=>AEe,_shadersray:()=>HEe,_shadersrayEllipsoidIntersectionInterval:()=>qLe,_shadersraySegment:()=>zEe,_shadersraySphereIntersectionInterval:()=>$Le,_shadersreadDepth:()=>ePe,_shadersreadNonPerspective:()=>tPe,_shadersreverseLogDepth:()=>iPe,_shadersround:()=>aPe,_shaderssaturation:()=>sPe,_shaderssceneMode2D:()=>MEe,_shaderssceneMode3D:()=>VEe,_shaderssceneModeColumbusView:()=>GEe,_shaderssceneModeMorphing:()=>FEe,_shadersshadowDepthCompare:()=>lPe,_shadersshadowParameters:()=>YEe,_shadersshadowVisibility:()=>uPe,_shaderssignNotZero:()=>cPe,_shaderssolarRadius:()=>DEe,_shaderssphericalHarmonics:()=>hPe,_shaderssrgbToLinear:()=>dPe,_shaderstangentToEyeSpaceMatrix:()=>pPe,_shaderstextureCube:()=>fPe,_shadersthreePiOver2:()=>NEe,_shaderstransformPlane:()=>mPe,_shaderstranslateRelativeToEye:()=>xPe,_shaderstranslucentPhong:()=>gPe,_shaderstranspose:()=>yPe,_shaderstwoPi:()=>WEe,_shadersunpackClippingExtents:()=>_Pe,_shadersunpackDepth:()=>vPe,_shadersunpackFloat:()=>bPe,_shadersunpackUint:()=>CPe,_shadersvalueTransform:()=>TPe,_shadersvertexLogDepth:()=>SPe,_shaderswebMercatorMaxLatitude:()=>ZEe,_shaderswindowToEyeCoordinates:()=>wPe,_shaderswriteDepthClamp:()=>EPe,_shaderswriteLogDepth:()=>LPe,_shaderswriteNonPerspective:()=>PPe,addBuffer:()=>RAe,addDefaults:()=>CAe,addExtensionsRequired:()=>LAe,addExtensionsUsed:()=>fO,addPipelineExtras:()=>nq,addToArray:()=>n1,appendForwardSlash:()=>YSe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>aue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>sFe,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>phe,createBillboardPointCallback:()=>rhe,createBlurStage:()=>xle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>MNe,createDefaultTerrainProviderViewModels:()=>VNe,createEdgeStage:()=>q4,createElevationBandMaterial:()=>Vxt,createFragmentFromTemplate:()=>jDe,createGooglePhotorealistic3DTileset:()=>Gxt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Fxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>bb,createTangentSpaceDebugPrimitive:()=>Dxt,createTaskProcessorWorker:()=>Xgt,createUniform:()=>$we,createUniformArray:()=>tEe,createWorldBathymetryAsync:()=>mDe,createWorldImageryAsync:()=>YB,createWorldTerrainAsync:()=>_de,decodeGoogleEarthEnterpriseData:()=>gDe,decodeVectorPolylinePositions:()=>y3e,defaultValue:()=>zmt,defer:()=>mp,defined:()=>F,demodernizeShader:()=>RPe,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>bmt,fflate_module:()=>lNe,findAccessorMinMax:()=>oq,findContentMetadata:()=>ahe,findGroupMetadata:()=>she,findTileMetadata:()=>w3e,forEachTextureInMaterial:()=>Ice,formatError:()=>vH,fragment:()=>Ggt,freezeRenderState:()=>xtt,getAbsoluteUri:()=>eH,getAccessorByteStride:()=>XF,getBaseUri:()=>JSe,getBinaryAccessor:()=>SM,getClipAndStyleCode:()=>MFe,getClippingFunction:()=>Aq,getComponentReader:()=>J7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>E7,getImageFromTypedArray:()=>jPe,getImagePixels:()=>HZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>Qz,getMetadataClassProperty:()=>xFe,getMetadataProperty:()=>yFe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>k7,isBitSet:()=>m1,isBlobUri:()=>jle,isCrossOriginUrl:()=>zZ,isDataUri:()=>a7,isLeapYear:()=>KZ,knockout:()=>sr,knockout_3_5_1:()=>FV,knockout_es5:()=>wNe,libgif:()=>xRe,loadAndExecuteScript:()=>Qle,loadCRN:()=>oxt,loadCubeMap:()=>wFe,loadDDS:()=>tue,loadImageFromTypedArray:()=>jz,loadKTX2:()=>IF,loadView:()=>Ade,mergeSort:()=>C4,moveTechniqueRenderStates:()=>EAe,moveTechniquesToExtension:()=>PAe,numberOfComponentsForType:()=>dO,objFS:()=>pNe,objectToQuery:()=>qle,oneTimeWarning:()=>aa,packer:()=>eIe,parseBatchTable:()=>e4,parseDefines:()=>xNe,parseFeatureMetadataLegacy:()=>_Ae,parseGlb:()=>SAe,parseResponseHeaders:()=>jSe,parseStructuralMetadata:()=>yAe,pickModel:()=>r3e,pointInsideTriangle:()=>hxt,preprocess3DTileContent:()=>vq,processVoxelProperties:()=>aFe,queryToObject:()=>lI,rasterizeHTML_allinone:()=>BFe,readAccessorPacked:()=>AAe,removeExtension:()=>g6,removeExtensionsRequired:()=>TAe,removeExtensionsUsed:()=>Pce,removePipelineExtras:()=>wAe,removeUnusedElements:()=>IAe,remove_primitive:()=>W6,resizeImageToNextPowerOfTwo:()=>MQ,sampleTerrain:()=>Rq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>iue,srgbToLinear:()=>qhe,subdivideArray:()=>lIe,subscribeAndEvaluate:()=>Lb,svgCompassGyro:()=>iNe,svgCompassOuterRing:()=>tNe,svgCompassRotationMarker:()=>rNe,svgReset:()=>qDe,turf:()=>Po,updateAccessorComponentTypes:()=>MAe,updateVersion:()=>FAe,usesExtension:()=>cm,vertex:()=>Fgt,viewerCesium3DTilesInspectorMixin:()=>hyt,viewerCesiumInspectorMixin:()=>dyt,viewerCesiumNavigationMixin:()=>ugt,viewerDragDropMixin:()=>pyt,viewerPerformanceWatchdogMixin:()=>fyt,viewerVoxelInspectorMixin:()=>xyt,webGLConstantToGlslType:()=>Cxt,wrapFunction:()=>SDe,writeTextToCanvas:()=>z9});we();var sSe={};var gVt=Object.create,Sqe=Object.defineProperty,yVt=Object.getOwnPropertyDescriptor,_Vt=Object.getOwnPropertyNames,vVt=Object.getPrototypeOf,bVt=Object.prototype.hasOwnProperty,_Z=(o=>typeof AT<"u"?AT:typeof Proxy<"u"?new Proxy(o,{get:(f,m)=>(typeof AT<"u"?AT:f)[m]}):o)(function(o){if(typeof AT<"u")return AT.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')}),Zt=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),CVt=(o,f,m,x)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of _Vt(f))!bVt.call(o,y)&&y!==m&&Sqe(o,y,{get:()=>f[y],enumerable:!(x=yVt(f,y))||x.enumerable});return o},k0=(o,f,m)=>(m=o!=null?gVt(vVt(o)):{},CVt(f||!o||!o.__esModule?Sqe(m,"default",{value:o,enumerable:!0}):m,o)),lSe=Zt((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,y){var v,C,T;for(this.init_seed(19650218),v=1,C=0,T=this.N>y?this.N:y;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1664525<<16)+(S&65535)*1664525)+x[C]+C,this.mt[v]>>>=0,v++,C++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1),C>=y&&(C=0)}for(T=this.N-1;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1566083941<<16)+(S&65535)*1566083941)-v,this.mt[v]>>>=0,v++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1)}this.mt[0]=2147483648},m.prototype.random_int=function(){var x,y=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var v;for(this.mti==this.N+1&&this.init_seed(5489),v=0;v<this.N-this.M;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+this.M]^x>>>1^y[x&1];for(;v<this.N-1;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+(this.M-this.N)]^x>>>1^y[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^y[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,y=this.random_int()>>>6;return(x*67108864+y)*(1/9007199254740992)},f.exports=m}),TVt=Zt((o,f)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(m){var x=typeof o=="object"&&o&&!o.nodeType&&o,y=typeof f=="object"&&f&&!f.nodeType&&f,v=typeof global=="object"&&global;(v.global===v||v.window===v||v.self===v)&&(m=v);var C,T=2147483647,S=36,w=1,E=26,L=38,I=700,R=72,P=128,A="-",M=/^xn--/,V=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=S-w,k=Math.floor,U=String.fromCharCode,B;function Y(oe){throw new RangeError(D[oe])}function J(oe,ce){for(var pe=oe.length,ue=[];pe--;)ue[pe]=ce(oe[pe]);return ue}function K(oe,ce){var pe=oe.split("@"),ue="";pe.length>1&&(ue=pe[0]+"@",oe=pe[1]),oe=oe.replace(G,".");var he=oe.split("."),fe=J(he,ce).join(".");return ue+fe}function z(oe){for(var ce=[],pe=0,ue=oe.length,he,fe;pe<ue;)he=oe.charCodeAt(pe++),he>=55296&&he<=56319&&pe<ue?(fe=oe.charCodeAt(pe++),(fe&64512)==56320?ce.push(((he&1023)<<10)+(fe&1023)+65536):(ce.push(he),pe--)):ce.push(he);return ce}function j(oe){return J(oe,function(ce){var pe="";return ce>65535&&(ce-=65536,pe+=U(ce>>>10&1023|55296),ce=56320|ce&1023),pe+=U(ce),pe}).join("")}function q(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:S}function O(oe,ce){return oe+22+75*(oe<26)-((ce!=0)<<5)}function te(oe,ce,pe){var ue=0;for(oe=pe?k(oe/I):oe>>1,oe+=k(oe/ce);oe>N*E>>1;ue+=S)oe=k(oe/N);return k(ue+(N+1)*oe/(oe+L))}function ie(oe){var ce=[],pe=oe.length,ue,he=0,fe=P,de=R,Ce,Se,Le,Ve,Oe,$e,at,dt,gt;for(Ce=oe.lastIndexOf(A),Ce<0&&(Ce=0),Se=0;Se<Ce;++Se)oe.charCodeAt(Se)>=128&&Y("not-basic"),ce.push(oe.charCodeAt(Se));for(Le=Ce>0?Ce+1:0;Le<pe;){for(Ve=he,Oe=1,$e=S;Le>=pe&&Y("invalid-input"),at=q(oe.charCodeAt(Le++)),(at>=S||at>k((T-he)/Oe))&&Y("overflow"),he+=at*Oe,dt=$e<=de?w:$e>=de+E?E:$e-de,!(at<dt);$e+=S)gt=S-dt,Oe>k(T/gt)&&Y("overflow"),Oe*=gt;ue=ce.length+1,de=te(he-Ve,ue,Ve==0),k(he/ue)>T-fe&&Y("overflow"),fe+=k(he/ue),he%=ue,ce.splice(he++,0,fe)}return j(ce)}function re(oe){var ce,pe,ue,he,fe,de,Ce,Se,Le,Ve,Oe,$e=[],at,dt,gt,Et;for(oe=z(oe),at=oe.length,ce=P,pe=0,fe=R,de=0;de<at;++de)Oe=oe[de],Oe<128&&$e.push(U(Oe));for(ue=he=$e.length,he&&$e.push(A);ue<at;){for(Ce=T,de=0;de<at;++de)Oe=oe[de],Oe>=ce&&Oe<Ce&&(Ce=Oe);for(dt=ue+1,Ce-ce>k((T-pe)/dt)&&Y("overflow"),pe+=(Ce-ce)*dt,ce=Ce,de=0;de<at;++de)if(Oe=oe[de],Oe<ce&&++pe>T&&Y("overflow"),Oe==ce){for(Se=pe,Le=S;Ve=Le<=fe?w:Le>=fe+E?E:Le-fe,!(Se<Ve);Le+=S)Et=Se-Ve,gt=S-Ve,$e.push(U(O(Ve+Et%gt,0))),Se=k(Et/gt);$e.push(U(O(Se,0))),fe=te(pe,dt,ue==he),pe=0,++ue}++pe,++ce}return $e.join("")}function ee(oe){return K(oe,function(ce){return M.test(ce)?ie(ce.slice(4).toLowerCase()):ce})}function ae(oe){return K(oe,function(ce){return V.test(ce)?"xn--"+re(ce):ce})}if(C={version:"1.3.2",ucs2:{decode:z,encode:j},decode:ie,encode:re,toASCII:ae,toUnicode:ee},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(x&&y)if(f.exports==x)y.exports=C;else for(B in C)C.hasOwnProperty(B)&&(x[B]=C[B]);else m.punycode=C})(o)}),SVt=Zt((o,f)=>{/*! * URI.js - Mutating URLs * IPv6 Support * @@ -20036,7 +20036,14 @@ //material.diffuse = vec3(1.0,0.0,0.0); } } - `}),o.textureUniformShader.andStyle=!0}function XUi(o){let f=Math.floor(o/256/256),m=Math.floor((o-f*256*256)/255),x=o-f*256*256-m*256,y=f.toString(16).padStart(2,"0"),v=m.toString(16).padStart(2,"0"),C=x.toString(16).padStart(2,"0");return"color('#"+y+v+C+"')"}function kUi(o){return"${id} === '"+o+"'"}function UUi(o){let f=o.pipelineIds,m=f.length,x=[];for(let y=0;y<m;y++){let v=f[y];x.push([kUi(v),XUi(y)])}x.push(["true","color('white')"]),o.style=new OS({color:{conditions:x}})}function BUi(o){let f=o.flowLevels;if(f instanceof Array&&f.length===16){o.flowLevelMatrix=Ee.fromArray(f);return}o.flowLevelMatrix=new Ee}UH.prototype.init=function(o){let f=Math.sqrt(this.pipelineIds.length);f=Math.floor(f+1),this.width=f,this.height=f,BUi(this),ZUi(this),OUi(this),UUi(this),this.oldCustomShader=this.tileset.customShader,this.tileset.customShader=this.textureUniformShader,this.oldStyle=this.tileset.style,this.tileset.style=this.style};function HUi(o){let f=o.pipelineTexture,m=o.serverDatas,x=o.textureData,y=0,v=Object.keys(m);v.length>0&&(v.forEach(C=>{let T=m[C];x[y++]=T}),f.copyFrom({source:{width:o.width,height:o.height,arrayBufferView:x}}))}function zUi(o,f){new Mr({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){})}UH.prototype.update=function(){let o=performance.now(),f=(o-this.startTime)/1e3;if(this.startTime=o,this.currentTime>this.nextRequestTime){let m=this;zUi(this,function(x,y){x.forEach(v=>{m.serverDatas[v.id]=v.flow}),m.nextRequestTime=(Number(m.currentTimestamp)-Number(y))/1e3,m.currentTimestamp=y,HUi(m)})}this.currentTime+=f,this.textureUniformShader.setUniform("u_time",this.currentTime)};UH.prototype.destroy=function(){this.tileset.customShader=this.oldCustomShader,this.tileset.style=this.oldStyle,this.pipelineTexture&&this.pipelineTexture.destroy(),this.textureData&&(this.textureData=null)};UH.fromUrl=async function(o){let{context:f,tileset:m,pipelineUrl:x,flowLevels:y,startTimestamp:v,imageWidth:C,imageHeight:T}=o,S=[],w=await new Mr({url:x,queryParameters:{timestamp:v}}).fetchJson();return w&&w.data&&w.data instanceof Array&&w.data.forEach(E=>{S.push(E.id)}),new UH(f,m,S,x,v,y,C,T)};var lde=UH,YUi=Xe.WHITE,KUi=Xe.BLACK,JUi=new rt(2,2);function BH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(BH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),repeat:Ii("repeat")});BH.prototype.getType=function(o){return"Checkerboard"};var jUi=new $t;BH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(jUi)),F(f)||(f={}),f.lightColor=Nt.getValueOrClonedDefault(this._evenColor,o,YUi,f.lightColor),f.darkColor=Nt.getValueOrClonedDefault(this._oddColor,o,KUi,f.darkColor),f.repeat=Nt.getValueOrDefault(this._repeat,o,JUi),f};BH.prototype.equals=function(o){return this===o||o instanceof BH&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._repeat,o._repeat)};var ile=BH,rle={id:void 0},qB=new Array(2);function YTe(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 omt(o,f,m,x){qB[0]=m,qB[1]=x.id,f[JSON.stringify(qB)]=x.definitionChanged.addEventListener(qp.prototype._onDefinitionChanged,o)}function amt(o,f,m,x){qB[0]=m,qB[1]=x.id;let y=JSON.stringify(qB);f[y](),f[y]=void 0}function tD(o){if(o._shouldRecomposite=!0,o._suspendCount!==0)return;let f=o._collections,m=f.length,x=o._collectionsCopy,y=x.length,v,C,T,S,w,E=o._composite,L=new US(o),I=o._eventHash,R;for(v=0;v<y;v++)for(w=x[v],w.collectionChanged.removeEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--)C=T[S],amt(o,I,R,C);for(v=m-1;v>=0;v--)for(w=f[v],w.collectionChanged.addEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--){C=T[S],omt(o,I,R,C);let A=L.getById(C.id);F(A)||(A=E.getById(C.id),F(A)?YTe(A):(rle.id=C.id,A=new bd(rle)),L.add(A)),A.merge(C)}o._collectionsCopy=f.slice(0),E.suspendEvents(),E.removeAll();let P=L.values;for(v=0;v<P.length;v++)E.add(P[v]);E.resumeEvents()}function qp(o,f){this._owner=f,this._composite=new US(this),this._suspendCount=0,this._collections=F(o)?o.slice():[],this._collectionsCopy=[],this._id=du(),this._eventHash={},tD(this),this._shouldRecomposite=!1}Object.defineProperties(qp.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}}});qp.prototype.addCollection=function(o,f){F(f)?this._collections.splice(f,0,o):(f=this._collections.length,this._collections.push(o)),tD(this)};qp.prototype.removeCollection=function(o){let f=this._collections.indexOf(o);return f!==-1?(this._collections.splice(f,1),tD(this),!0):!1};qp.prototype.removeAllCollections=function(){this._collections.length=0,tD(this)};qp.prototype.containsCollection=function(o){return this._collections.indexOf(o)!==-1};qp.prototype.contains=function(o){return this._composite.contains(o)};qp.prototype.indexOfCollection=function(o){return this._collections.indexOf(o)};qp.prototype.getCollection=function(o){return this._collections[o]};qp.prototype.getCollectionsLength=function(){return this._collections.length};function ude(o,f){return o.indexOf(f)}function smt(o,f,m){let x=o._collections;if(f=be.clamp(f,0,x.length-1),m=be.clamp(m,0,x.length-1),f===m)return;let y=x[f];x[f]=x[m],x[m]=y,tD(o)}qp.prototype.raiseCollection=function(o){let f=ude(this._collections,o);smt(this,f,f+1)};qp.prototype.lowerCollection=function(o){let f=ude(this._collections,o);smt(this,f,f-1)};qp.prototype.raiseCollectionToTop=function(o){let f=ude(this._collections,o);f!==this._collections.length-1&&(this._collections.splice(f,1),this._collections.push(o),tD(this))};qp.prototype.lowerCollectionToBottom=function(o){let f=ude(this._collections,o);f!==0&&(this._collections.splice(f,1),this._collections.splice(0,0,o),tD(this))};qp.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()};qp.prototype.resumeEvents=function(){this._suspendCount--,this._shouldRecomposite&&this._suspendCount===0&&(tD(this),this._shouldRecomposite=!1),this._composite.resumeEvents()};qp.prototype.computeAvailability=function(){return this._composite.computeAvailability()};qp.prototype.getById=function(o){return this._composite.getById(o)};qp.prototype._onCollectionChanged=function(o,f,m){let x=this._collectionsCopy,y=x.length,v=this._composite;v.suspendEvents();let C,T,S,w,E=m.length,L=this._eventHash,I=o.id;for(C=0;C<E;C++){let P=m[C];amt(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),YTe(w)),w.merge(S));F(w)||v.removeById(A),w=void 0}let R=f.length;for(C=0;C<R;C++){let P=f[C];omt(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),F(w)?YTe(w):(rle.id=A,w=new bd(rle),v.add(w))),w.merge(S));w=void 0}v.resumeEvents()};qp.prototype._onDefinitionChanged=function(o,f,m,x){let y=this._collections,v=this._composite,C=y.length,T=o.id,S=v.getById(T),w=S[f],E=!F(w),L=!0;for(let I=C-1;I>=0;I--){let R=y[I].getById(o.id);if(F(R)){let P=R[f];if(F(P)){if(L)if(L=!1,F(P.merge)&&F(P.clone))w=P.clone(w);else{w=P;break}w.merge(P)}}}E&&S.propertyNames.indexOf(f)===-1&&S.addProperty(f),S[f]=w};var lmt=qp;function fF(){this._definitionChanged=new Tr,this._composite=new nS,this._composite.definitionChanged.addEventListener(fF.prototype._raiseDefinitionChanged,this)}Object.defineProperties(fF.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite._intervals}}});fF.prototype.getType=function(o){let f=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(f))return f.getType(o)};var QUi=new $t;fF.prototype.getValue=function(o,f){F(o)||(o=$t.now(QUi));let m=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(m))return m.getValue(o,f)};fF.prototype.equals=function(o){return this===o||o instanceof fF&&this._composite.equals(o._composite,Nt.equals)};fF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var nle=fF,qUi=be.factorial;function YFe(o,f,m,x,y,v){let C=0,T,S,w;if(x>0){for(S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(v.push(S),C+=YFe(o,f,m,x-1,y,v),v.splice(v.length-1,1))}return C}for(C=1,S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(C*=o-m[f[S]])}return C}var cde={type:"Hermite"};cde.getRequiredDataPoints=function(o,f){return f=f??0,Math.max(Math.floor((o+1)/(f+1)),2)};cde.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T,S,w,E,L=f.length,I=new Array(x);for(v=0;v<x;v++){y[v]=0;let M=new Array(L);for(I[v]=M,C=0;C<L;C++)M[C]=[]}let R=L,P=new Array(R);for(v=0;v<R;v++)P[v]=v;let A=L-1;for(S=0;S<x;S++){for(C=0;C<R;C++)E=P[C]*x+S,I[S][0].push(m[E]);for(v=1;v<R;v++){let M=!1;for(C=0;C<R-v;C++){let V=f[P[C]],G=f[P[C+v]],D;G-V<=0?(E=P[C]*x+x*v+S,D=m[E],I[S][v].push(D/qUi(v))):(D=I[S][v-1][C+1]-I[S][v-1][C],I[S][v].push(D/(G-V))),M=M||D!==0}M||(A=v-1)}}for(T=0,w=0;T<=w;T++)for(v=T;v<=A;v++){let M=YFe(o,P,f,T,v,[]);for(S=0;S<x;S++){let V=I[S][v][0];y[S+T*x]+=V*M}}return y};var $Ui=[];cde.interpolate=function(o,f,m,x,y,v,C){let T=x*(v+1);F(C)||(C=new Array(T));for(let V=0;V<T;V++)C[V]=0;let S=f.length,w=new Array(S*(y+1)),E;for(E=0;E<S;E++)for(let V=0;V<y+1;V++)w[E*(y+1)+V]=E;let L=w.length,I=$Ui,R=eBi(I,w,f,m,x,y),P=[],A=L*(L+1)/2,M=Math.min(R,v);for(let V=0;V<=M;V++)for(E=V;E<=R;E++){P.length=0;let G=YFe(o,w,f,V,E,P),D=Math.floor(E*(1-E)/2)+L*E;for(let N=0;N<x;N++){let k=Math.floor(N*A),U=I[k+D];C[N+V*x]+=U*G}}return C};function eBi(o,f,m,x,y,v){let C,T,S=-1,w=f.length,E=w*(w+1)/2;for(let L=0;L<y;L++){let I=Math.floor(L*E);for(C=0;C<w;C++)T=f[C]*y*(v+1)+L,o[I+C]=x[T];for(let R=1;R<w;R++){let P=0,A=Math.floor(R*(1-R)/2)+w*R,M=!1;for(C=0;C<w-R;C++){let V=m[f[C]],G=m[f[C+R]],D,N;if(G-V<=0)T=f[C]*y*(v+1)+y*R+L,D=x[T],N=D/be.factorial(R),o[I+A+P]=N,P++;else{let k=Math.floor((R-1)*(2-R)/2)+w*(R-1);D=o[I+k+C+1]-o[I+k+C],N=D/(G-V),o[I+A+P]=N,P++}M=M||D!==0}M&&(S=Math.max(S,R))}}return S}var KFe=cde,JFe={type:"Lagrange"};JFe.getRequiredDataPoints=function(o){return Math.max(o+1,2)};JFe.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T=f.length;for(v=0;v<x;v++)y[v]=0;for(v=0;v<T;v++){let S=1;for(C=0;C<T;C++)if(C!==v){let w=f[v]-f[C];S*=(o-f[C])/w}for(C=0;C<x;C++)y[C]+=S*m[v*x+C]}return y};var jFe=JFe;function r2(o,f,m){this.clock=o??0,this.cone=f??0,this.magnitude=m??1}r2.fromCartesian3=function(o,f){let m=o.x,x=o.y,y=o.z,v=m*m+x*x;return F(f)||(f=new r2),f.clock=Math.atan2(x,m),f.cone=Math.atan2(Math.sqrt(v),y),f.magnitude=Math.sqrt(v+y*y),f};r2.clone=function(o,f){if(F(o))return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=o.magnitude,f):new r2(o.clock,o.cone,o.magnitude)};r2.normalize=function(o,f){return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=1,f):new r2(o.clock,o.cone,1)};r2.equals=function(o,f){return o===f||F(o)&&F(f)&&o.clock===f.clock&&o.cone===f.cone&&o.magnitude===f.magnitude};r2.equalsEpsilon=function(o,f,m){return m=m??0,o===f||F(o)&&F(f)&&Math.abs(o.clock-f.clock)<=m&&Math.abs(o.cone-f.cone)<=m&&Math.abs(o.magnitude-f.magnitude)<=m};r2.prototype.equals=function(o){return r2.equals(this,o)};r2.prototype.clone=function(o){return r2.clone(this,o)};r2.prototype.equalsEpsilon=function(o,f){return r2.equalsEpsilon(this,o,f)};r2.prototype.toString=function(){return`(${this.clock}, ${this.cone}, ${this.magnitude})`};var QFe=r2,hde=k0(VS(),1),tBi=Xe.WHITE,iBi=.1,rBi=new rt(8,8),nBi=new rt(0,0),oBi=new rt(1,1);function HH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(HH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._cellAlpha)&&Nt.isConstant(this._lineCount)&&Nt.isConstant(this._lineThickness)&&Nt.isConstant(this._lineOffset)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),cellAlpha:Ii("cellAlpha"),lineCount:Ii("lineCount"),lineThickness:Ii("lineThickness"),lineOffset:Ii("lineOffset")});HH.prototype.getType=function(o){return"Grid"};var aBi=new $t;HH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(aBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,tBi,f.color),f.cellAlpha=Nt.getValueOrDefault(this._cellAlpha,o,iBi),f.lineCount=Nt.getValueOrClonedDefault(this._lineCount,o,rBi,f.lineCount),f.lineThickness=Nt.getValueOrClonedDefault(this._lineThickness,o,oBi,f.lineThickness),f.lineOffset=Nt.getValueOrClonedDefault(this._lineOffset,o,nBi,f.lineOffset),f};HH.prototype.equals=function(o){return this===o||o instanceof HH&&Nt.equals(this._color,o._color)&&Nt.equals(this._cellAlpha,o._cellAlpha)&&Nt.equals(this._lineCount,o._lineCount)&&Nt.equals(this._lineThickness,o._lineThickness)&&Nt.equals(this._lineOffset,o._lineOffset)};var ole=HH,sBi=Xe.WHITE,lBi=Xe.TRANSPARENT,uBi=16,cBi=255;function zH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(zH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._gapColor)&&Nt.isConstant(this._dashLength)&&Nt.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),gapColor:Ii("gapColor"),dashLength:Ii("dashLength"),dashPattern:Ii("dashPattern")});zH.prototype.getType=function(o){return"PolylineDash"};var hBi=new $t;zH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(hBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,sBi,f.color),f.gapColor=Nt.getValueOrClonedDefault(this._gapColor,o,lBi,f.gapColor),f.dashLength=Nt.getValueOrDefault(this._dashLength,o,uBi,f.dashLength),f.dashPattern=Nt.getValueOrDefault(this._dashPattern,o,cBi,f.dashPattern),f};zH.prototype.equals=function(o){return this===o||o instanceof zH&&Nt.equals(this._color,o._color)&&Nt.equals(this._gapColor,o._gapColor)&&Nt.equals(this._dashLength,o._dashLength)&&Nt.equals(this._dashPattern,o._dashPattern)};var Ml=zH,dBi=Xe.WHITE,pBi=.25,fBi=1;function YH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(YH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._glow)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),glowPower:Ii("glowPower"),taperPower:Ii("taperPower")});YH.prototype.getType=function(o){return"PolylineGlow"};var mBi=new $t;YH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(mBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,dBi,f.color),f.glowPower=Nt.getValueOrDefault(this._glowPower,o,pBi,f.glowPower),f.taperPower=Nt.getValueOrDefault(this._taperPower,o,fBi,f.taperPower),f};YH.prototype.equals=function(o){return this===o||o instanceof YH&&Nt.equals(this._color,o._color)&&Nt.equals(this._glowPower,o._glowPower)&&Nt.equals(this._taperPower,o._taperPower)};var ale=YH,xBi=Xe.WHITE,gBi=Xe.BLACK,yBi=1;function KH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(KH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._outlineColor)&&Nt.isConstant(this._outlineWidth)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),outlineColor:Ii("outlineColor"),outlineWidth:Ii("outlineWidth")});KH.prototype.getType=function(o){return"PolylineOutline"};var _Bi=new $t;KH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(_Bi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,xBi,f.color),f.outlineColor=Nt.getValueOrClonedDefault(this._outlineColor,o,gBi,f.outlineColor),f.outlineWidth=Nt.getValueOrDefault(this._outlineWidth,o,yBi),f};KH.prototype.equals=function(o){return this===o||o instanceof KH&&Nt.equals(this._color,o._color)&&Nt.equals(this._outlineColor,o._outlineColor)&&Nt.equals(this._outlineWidth,o._outlineWidth)};var jM=KH;function mF(o){this._value=void 0,this._definitionChanged=new Tr,this._eventHelper=new bv,this.setValue(o)}Object.defineProperties(mF.prototype,{isConstant:{get:function(){let o=this._value;if(!F(o))return!0;let f=o.length;for(let m=0;m<f;m++)if(!Nt.isConstant(o[m]))return!1;return!0}},definitionChanged:{get:function(){return this._definitionChanged}}});var vBi=new $t;mF.prototype.getValue=function(o,f){F(o)||(o=$t.now(vBi));let m=this._value;if(!F(m))return;let x=m.length;F(f)||(f=new Array(x));let y=0,v=0;for(;y<x;){let C=this._value[y].getValue(o,f[y]);F(C)&&(f[v]=C,v++),y++}return f.length=v,f};mF.prototype.setValue=function(o){let f=this._eventHelper;if(f.removeAll(),F(o)){this._value=o.slice();let m=o.length;for(let x=0;x<m;x++){let y=o[x];F(y)&&f.add(y.definitionChanged,mF.prototype._raiseDefinitionChanged,this)}}else this._value=void 0;this._definitionChanged.raiseEvent(this)};mF.prototype.equals=function(o){return this===o||o instanceof mF&&Nt.arrayEquals(this._value,o._value)};mF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var dde=mF,bBi={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){F(x)||(x=[]),f=f??0,m=m??o.length;let y;for(let v=0,C=m-f+1;v<C;v++){let T=o[f+v];v===0||Math.abs(y-T)<Math.PI?x[v]=T:x[v]=T-be.TWO_PI,y=T}},unpackInterpolationResult:function(o,f,m,x,y){return y=o[0],y<0?y+be.TWO_PI:y}},FI=bBi,CBi={HORIZONTAL:0,VERTICAL:1},xF=Object.freeze(CBi),TBi=xF.HORIZONTAL,SBi=Xe.WHITE,wBi=Xe.BLACK,EBi=0,LBi=1;function JH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(JH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._orientation)&&Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._offset)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},orientation:Ii("orientation"),evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),offset:Ii("offset"),repeat:Ii("repeat")});JH.prototype.getType=function(o){return"Stripe"};var PBi=new $t;JH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(PBi)),F(f)||(f={}),f.horizontal=Nt.getValueOrDefault(this._orientation,o,TBi)===xF.HORIZONTAL,f.evenColor=Nt.getValueOrClonedDefault(this._evenColor,o,SBi,f.evenColor),f.oddColor=Nt.getValueOrClonedDefault(this._oddColor,o,wBi,f.oddColor),f.offset=Nt.getValueOrDefault(this._offset,o,EBi),f.repeat=Nt.getValueOrDefault(this._repeat,o,LBi),f};JH.prototype.equals=function(o){return this===o||o instanceof JH&&Nt.equals(this._orientation,o._orientation)&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._offset,o._offset)&&Nt.equals(this._repeat,o._repeat)};var sle=JH;function A6(o,f){this._velocityVectorProperty=new Iq(o,!0),this._subscription=void 0,this._ellipsoid=void 0,this._definitionChanged=new Tr,this.ellipsoid=f??yi.default;let m=this;this._velocityVectorProperty.definitionChanged.addEventListener(function(){m._definitionChanged.raiseEvent(m)})}Object.defineProperties(A6.prototype,{isConstant:{get:function(){return Nt.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 Y6e=new Z,IBi=new Z,K6e=new Ut,RBi=new $t;A6.prototype.getValue=function(o,f){F(o)||(o=$t.now(RBi));let m=this._velocityVectorProperty._getValue(o,IBi,Y6e);if(F(m))return _r.rotationMatrixFromPositionVelocity(Y6e,m,this._ellipsoid,K6e),fr.fromRotationMatrix(K6e,f)};A6.prototype.equals=function(o){return this===o||o instanceof A6&&Nt.equals(this._velocityVectorProperty,o._velocityVectorProperty)&&(this._ellipsoid===o._ellipsoid||this._ellipsoid.equals(o._ellipsoid))};var qFe=A6,mM={COMPLETE:0,BELOW_ELLIPSOID_HORIZON:1,ABOVE_ELLIPSOID_HORIZON:2};mM.validate=function(o){return o===mM.COMPLETE||o===mM.BELOW_ELLIPSOID_HORIZON||o===mM.ABOVE_ELLIPSOID_HORIZON};mM.toString=function(o){switch(o){case mM.COMPLETE:return"COMPLETE";case mM.BELOW_ELLIPSOID_HORIZON:return"BELOW_ELLIPSOID_HORIZON";case mM.ABOVE_ELLIPSOID_HORIZON:return"ABOVE_ELLIPSOID_HORIZON";default:throw new wt("SensorVolumePortionToDisplay value is not valid and cannot be converted to a String.")}};var lle=mM;function gF(){}gF.packedLength=Z.packedLength;gF.unpack=Z.unpack;gF.pack=Z.pack;var KTe;function M6(o,f){return f[0]==="#"&&(f=KTe+f),V7.fromString(o,f)}function J6e(o,f,m){if(F(m.reference))return M6(f,m.reference);if(F(m.velocityReference)){let x=M6(f,m.velocityReference);switch(o){case Z:case gF:return new Iq(x,o===gF);case fr:return new qFe(x)}}throw new Oi(`${JSON.stringify(m)} is not valid CZML.`)}function ABi(o,f){return new Fr(function(m,x){return f(o.getValue(m,x))},o.isConstant)}var Lc=new Z,J2=new QFe,V_=new Gt,WO=new js,hoe=new fr;function MBi(o){let f=o.rgbaf;if(F(f))return f;let m=o.rgba;if(!F(m))return;let x=m.length;if(x===Xe.packedLength)return[Xe.byteToFloat(m[0]),Xe.byteToFloat(m[1]),Xe.byteToFloat(m[2]),Xe.byteToFloat(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=Xe.byteToFloat(m[y+1]),f[y+2]=Xe.byteToFloat(m[y+2]),f[y+3]=Xe.byteToFloat(m[y+3]),f[y+4]=Xe.byteToFloat(m[y+4]);return f}function j6e(o,f){let m=o.uri??o;return F(f)?f.getDerivedResource({url:m}):Mr.createIfNeeded(m)}function VBi(o){let f=o.wsen;if(F(f))return f;let m=o.wsenDegrees;if(!F(m))return;let x=m.length;if(x===vi.packedLength)return[be.toRadians(m[0]),be.toRadians(m[1]),be.toRadians(m[2]),be.toRadians(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=be.toRadians(m[y+1]),f[y+2]=be.toRadians(m[y+2]),f[y+3]=be.toRadians(m[y+3]),f[y+4]=be.toRadians(m[y+4]);return f}function GBi(o){let f=o.length;if(J2.magnitude=1,f===2)return J2.clock=o[0],J2.cone=o[1],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f/3*4);for(let x=0,y=0;x<f;x+=3,y+=4)m[y]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],Z.fromSpherical(J2,Lc),m[y+1]=Lc.x,m[y+2]=Lc.y,m[y+3]=Lc.z;return m}function FBi(o){let f=o.length;if(f===3)return J2.clock=o[0],J2.cone=o[1],J2.magnitude=o[2],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],J2.magnitude=o[x+3],Z.fromSpherical(J2,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function DBi(o){let f=o.length;if(f===3)return V_.longitude=o[0],V_.latitude=o[1],V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=o[x+1],V_.latitude=o[x+2],V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function NBi(o){let f=o.length;if(f===3)return V_.longitude=be.toRadians(o[0]),V_.latitude=be.toRadians(o[1]),V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=be.toRadians(o[x+1]),V_.latitude=be.toRadians(o[x+2]),V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function $Fe(o){let f=o.cartesian;if(F(f))return f;let m=o.cartesianVelocity;if(F(m))return m;let x=o.unitCartesian;if(F(x))return x;let y=o.unitSpherical;if(F(y))return GBi(y);let v=o.spherical;if(F(v))return FBi(v);let C=o.cartographicRadians;if(F(C))return DBi(C);let T=o.cartographicDegrees;if(F(T))return NBi(T);throw new Oi(`${JSON.stringify(o)} is not a valid CZML interval.`)}function Q6e(o,f){Z.unpack(o,f,Lc),Z.normalize(Lc,Lc),Z.pack(Lc,o,f)}function WBi(o){let f=$Fe(o);if(f.length===3)return Q6e(f,0),f;for(let m=1;m<f.length;m+=4)Q6e(f,m);return f}function q6e(o,f){fr.unpack(o,f,hoe),fr.normalize(hoe,hoe),fr.pack(hoe,o,f)}function ZBi(o){let f=o.unitQuaternion;if(F(f)){if(f.length===4)return q6e(f,0),f;for(let m=1;m<f.length;m+=5)q6e(f,m)}return f}function $6e(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")?Er:o.hasOwnProperty("cartesian2")?rt:o.hasOwnProperty("cartesian")||o.hasOwnProperty("spherical")||o.hasOwnProperty("cartographicRadians")||o.hasOwnProperty("cartographicDegrees")?Z:o.hasOwnProperty("unitCartesian")||o.hasOwnProperty("unitSpherical")?gF:o.hasOwnProperty("rgba")||o.hasOwnProperty("rgbaf")?Xe:o.hasOwnProperty("arcType")?qa:o.hasOwnProperty("classificationType")?dc:o.hasOwnProperty("colorBlendMode")?II:o.hasOwnProperty("cornerType")?ad:o.hasOwnProperty("heightReference")?Mn:o.hasOwnProperty("horizontalOrigin")?ec:o.hasOwnProperty("date")?$t:o.hasOwnProperty("labelStyle")?f0:o.hasOwnProperty("number")?Number:o.hasOwnProperty("nearFarScalar")?ea:o.hasOwnProperty("distanceDisplayCondition")?So:o.hasOwnProperty("object")||o.hasOwnProperty("value")?Object:o.hasOwnProperty("unitQuaternion")?fr:o.hasOwnProperty("shadowMode")?cl:o.hasOwnProperty("string")?String:o.hasOwnProperty("stripeOrientation")?xF:o.hasOwnProperty("wsen")||o.hasOwnProperty("wsenDegrees")?vi:o.hasOwnProperty("uri")?hde.default:o.hasOwnProperty("verticalOrigin")?jn:Object}function OBi(o,f,m){switch(o){case qa:return qa[f.arcType??f];case Array:return f.array;case Boolean:return f.boolean??f;case Er:return f.boundingRectangle;case rt:return f.cartesian2;case Z:return $Fe(f);case gF:return WBi(f);case Xe:return MBi(f);case dc:return dc[f.classificationType??f];case II:return II[f.colorBlendMode??f];case ad:return ad[f.cornerType??f];case Mn:return Mn[f.heightReference??f];case ec:return ec[f.horizontalOrigin??f];case Image:return j6e(f,m);case $t:return $t.fromIso8601(f.date??f);case f0:return f0[f.labelStyle??f];case Number:return f.number??f;case ea:return f.nearFarScalar;case So:return f.distanceDisplayCondition;case Object:return f.object??f.value??f;case fr:return ZBi(f);case FI:return f.number??f;case lle:return lle[f.portionToDisplay??f];case cl:return cl[f.shadowMode??f.shadows??f];case String:return f.string??f;case xF:return xF[f.stripeOrientation??f];case vi:return VBi(f);case hde.default:return j6e(f,m);case jn:return jn[f.verticalOrigin??f];default:throw new Oi(`Unknown CzmlDataSource interval type: ${o}`)}}var XBi={HERMITE:KFe,LAGRANGE:jFe,LINEAR:Hue};function ule(o,f){let m=o.interpolationAlgorithm,x=o.interpolationDegree;(F(m)||F(x))&&f.setInterpolationOptions({interpolationAlgorithm:XBi[m],interpolationDegree:x});let y=o.forwardExtrapolationType;F(y)&&(f.forwardExtrapolationType=nI[y]);let v=o.forwardExtrapolationDuration;F(v)&&(f.forwardExtrapolationDuration=v);let C=o.backwardExtrapolationType;F(C)&&(f.backwardExtrapolationType=nI[C]);let T=o.backwardExtrapolationDuration;F(T)&&(f.backwardExtrapolationDuration=T)}var e7e={iso8601:void 0};function X0(o){if(F(o))return e7e.iso8601=o,js.fromIso8601(e7e)}function eDe(o){let f=wn.MAXIMUM_INTERVAL.clone();return f.data=o,f}function t7e(o){let f=new nS;return f.intervals.addInterval(eDe(o)),f}function i7e(o){let f=new i1(o.referenceFrame);return f.intervals.addInterval(eDe(o)),f}function cle(o,f,m,x,y,v,C){let T=X0(x.interval);F(y)&&(F(T)?T=js.intersect(T,y,WO):T=y);let S,w,E,L=!F(x.reference)&&!F(x.velocityReference),I=F(T)&&!T.equals(wn.MAXIMUM_INTERVAL);if(x.delete===!0){if(!I){f[m]=void 0;return}return umt(f[m],T)}let R=!1;if(L){if(w=OBi(o,x,v),!F(w))return;S=o.packedLength??1,E=w.length??1,R=!F(x.array)&&typeof w!="string"&&E>S&&o!==Object}let P=typeof o.unpack=="function"&&o!==FI;if(!R&&!I){L?f[m]=new Qc(P?o.unpack(w,0):w):f[m]=J6e(o,C,x);return}let A=f[m],M,V=x.epoch;if(F(V)&&(M=$t.fromIso8601(V)),R&&!I){A instanceof hM||(f[m]=A=new hM(o)),A.addSamplesPackedArray(w,M),ule(x,A);return}let G;if(!R&&I){T=T.clone(),L?T.data=P?o.unpack(w,0):w:T.data=J6e(o,C,x),F(A)||(f[m]=A=L?new fH:new nS),L&&A instanceof fH?A.intervals.addInterval(T):A instanceof nS?(L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T)):(f[m]=A=t7e(A),L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T));return}F(A)||(f[m]=A=new nS),A instanceof nS||(f[m]=A=t7e(A));let D=A.intervals;G=D.findInterval(T),(!F(G)||!(G.data instanceof hM))&&(G=T.clone(),G.data=new hM(o),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),ule(x,G.data)}function umt(o,f){if(o instanceof hM){o.removeSamples(f);return}else if(o instanceof fH){o.intervals.removeInterval(f);return}else if(o instanceof nS){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,WO);y.isEmpty||umt(y.data,f)}m.removeInterval(f);return}}function Bi(o,f,m,x,y,v,C){if(F(x))if(Array.isArray(x))for(let T=0,S=x.length;T<S;++T)cle(o,f,m,x[T],y,v,C);else cle(o,f,m,x,y,v,C)}function r7e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,WO):C=x);let T=F(m.cartesianVelocity)?1:0,S=Z.packedLength*(T+1),w,E,L=!F(m.reference),I=F(C)&&!C.equals(wn.MAXIMUM_INTERVAL);if(m.delete===!0){if(!I){o[f]=void 0;return}return cmt(o[f],C)}let R,P=!1;if(L&&(F(m.referenceFrame)&&(R=fp[m.referenceFrame]),R=R??fp.FIXED,w=$Fe(m),E=w.length??1,P=E>S),!P&&!I){L?o[f]=new hI(Z.unpack(w),R):o[f]=M6(v,m.reference);return}let A=o[f],M,V=m.epoch;if(F(V)&&(M=$t.fromIso8601(V)),P&&!I){(!(A instanceof oS)||F(R)&&A.referenceFrame!==R)&&(o[f]=A=new oS(R,T)),A.addSamplesPackedArray(w,M),ule(m,A);return}let G;if(!P&&I){C=C.clone(),L?C.data=Z.unpack(w):C.data=M6(v,m.reference),F(A)||(L?A=new VH(R):A=new i1(R),o[f]=A),L&&A instanceof VH&&F(R)&&A.referenceFrame===R?A.intervals.addInterval(C):A instanceof i1?(L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C)):(o[f]=A=i7e(A),L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C));return}F(A)?A instanceof i1||(o[f]=A=i7e(A)):o[f]=A=new i1(R);let D=A.intervals;G=D.findInterval(C),(!F(G)||!(G.data instanceof oS)||F(R)&&G.data.referenceFrame!==R)&&(G=C.clone(),G.data=new oS(R,T),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),ule(m,G.data)}function cmt(o,f){if(o instanceof oS){o.removeSamples(f);return}else if(o instanceof VH){o.intervals.removeInterval(f);return}else if(o instanceof i1){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,WO);y.isEmpty||cmt(y.data,f)}m.removeInterval(f);return}}function hmt(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)r7e(o,f,m[C],x,y,v);else r7e(o,f,m,x,y,v)}function n7e(o,f,m,x){F(m.references)?pde(o,f,m.references,m.interval,x,dde,nS):(F(m.cartesian2)?m.array=rt.unpackArray(m.cartesian2):F(m.cartesian)&&(m.array=rt.unpackArray(m.cartesian)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function o7e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,WO):C=x);let T=o[f],S,w;if(F(C)){T instanceof nle||(T=new nle,o[f]=T);let L=T.intervals;w=L.findInterval({start:C.start,stop:C.stop}),F(w)?S=w.data:(w=C.clone(),L.addInterval(w))}else S=T;let E;F(m.solidColor)?(S instanceof Ba||(S=new Ba),E=m.solidColor,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.grid)?(S instanceof ole||(S=new ole),E=m.grid,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"cellAlpha",E.cellAlpha,void 0,y,v),Bi(rt,S,"lineCount",E.lineCount,void 0,y,v),Bi(rt,S,"lineThickness",E.lineThickness,void 0,y,v),Bi(rt,S,"lineOffset",E.lineOffset,void 0,y,v)):F(m.image)?(S instanceof O0||(S=new O0),E=m.image,Bi(Image,S,"image",E.image,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v),Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Boolean,S,"transparent",E.transparent,void 0,y,v)):F(m.stripe)?(S instanceof sle||(S=new sle),E=m.stripe,Bi(xF,S,"orientation",E.orientation,void 0,y,v),Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(Number,S,"offset",E.offset,void 0,y,v),Bi(Number,S,"repeat",E.repeat,void 0,y,v)):F(m.polylineOutline)?(S instanceof jM||(S=new jM),E=m.polylineOutline,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Xe,S,"outlineColor",E.outlineColor,void 0,y,v),Bi(Number,S,"outlineWidth",E.outlineWidth,void 0,y,v)):F(m.polylineGlow)?(S instanceof ale||(S=new ale),E=m.polylineGlow,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"glowPower",E.glowPower,void 0,y,v),Bi(Number,S,"taperPower",E.taperPower,void 0,y,v)):F(m.polylineArrow)?(S instanceof Mf||(S=new Mf),E=m.polylineArrow,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.polylineDash)?(S instanceof Ml||(S=new Ml),E=m.polylineDash,Bi(Xe,S,"color",E.color,void 0,void 0,v),Bi(Xe,S,"gapColor",E.gapColor,void 0,void 0,v),Bi(Number,S,"dashLength",E.dashLength,void 0,y,v),Bi(Number,S,"dashPattern",E.dashPattern,void 0,y,v)):F(m.checkerboard)&&(S instanceof ile||(S=new ile),E=m.checkerboard,Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v)),F(w)?w.data=S:o[f]=S}function S1(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)o7e(o,f,m[C],x,y,v);else o7e(o,f,m,x,y,v)}function kBi(o,f,m,x){let y=f.name;F(y)&&(o.name=f.name)}function UBi(o,f,m,x){let y=f.description;F(y)&&Bi(String,o,"description",y,void 0,x,m)}function BBi(o,f,m,x){let y=f.position;F(y)&&hmt(o,"position",y,void 0,x,m)}function HBi(o,f,m,x){let y=f.viewFrom;F(y)&&Bi(Z,o,"viewFrom",y,void 0,x,m)}function zBi(o,f,m,x){let y=f.orientation;F(y)&&Bi(fr,o,"orientation",y,void 0,x,m)}function YBi(o,f,m,x){let y=f.properties;if(F(y)){F(o.properties)||(o.properties=new qE);for(let v in y)if(y.hasOwnProperty(v)){o.properties.hasProperty(v)||o.properties.addProperty(v);let C=y[v];if(Array.isArray(C))for(let T=0,S=C.length;T<S;++T)cle($6e(C[T]),o.properties,v,C[T],void 0,x,m);else cle($6e(C),o.properties,v,C,void 0,x,m)}}}function pde(o,f,m,x,y,v,C){let T=m.map(function(S){return M6(y,S)});if(F(x)){x=X0(x);let S=o[f];if(!(S instanceof C)){let w=new C;w.intervals.addInterval(eDe(S)),o[f]=S=w}x.data=new v(T),S.intervals.addInterval(x)}else o[f]=new v(T)}function a7e(o,f,m,x){let y=m.references;F(y)?pde(o,f,y,m.interval,x,dde,nS):Bi(Array,o,f,m,void 0,void 0,x)}function s7e(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)a7e(o,f,m[y],x);else a7e(o,f,m,x)}function l7e(o,f,m,x){let y=m.references;F(y)?pde(o,f,y,m.interval,x,pH,i1):(F(m.cartesian)?m.array=Z.unpackArray(m.cartesian):F(m.cartographicRadians)?m.array=Z.fromRadiansArrayHeights(m.cartographicRadians,yi.default):F(m.cartographicDegrees)&&(m.array=Z.fromDegreesArrayHeights(m.cartographicDegrees,yi.default)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function r$(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)l7e(o,f,m[y],x);else l7e(o,f,m,x)}function KBi(o){return Z.unpackArray(o)}function JBi(o){return Z.fromRadiansArrayHeights(o,yi.default)}function jBi(o){return Z.fromDegreesArrayHeights(o,yi.default)}function u7e(o,f,m,x){let y=m.references;if(F(y)){let v=y.map(function(C){let T={};return pde(T,"positions",C,m.interval,x,pH,i1),T.positions});o[f]=new pH(v)}else F(m.cartesian)?m.array=m.cartesian.map(KBi):F(m.cartographicRadians)?m.array=m.cartographicRadians.map(JBi):F(m.cartographicDegrees)&&(m.array=m.cartographicDegrees.map(jBi)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x)}function QBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)u7e(o,f,m[y],x);else u7e(o,f,m,x)}function qBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;y++)n7e(o,f,m[y],x);else n7e(o,f,m,x)}function $Bi(o,f,m,x){let y=f.availability;if(!F(y))return;let v;if(Array.isArray(y))for(let C=0,T=y.length;C<T;++C)F(v)||(v=new k_),v.addInterval(X0(y[C]));else v=new k_,v.addInterval(X0(y));o.availability=v}function eHi(o,f,m,x,y){F(f)&&Bi(gF,o,"alignedAxis",f,m,x,y)}function tHi(o,f,m,x){let y=f.billboard;if(!F(y))return;let v=X0(y.interval),C=o.billboard;F(C)||(o.billboard=C=new sV),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Image,C,"image",y.image,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),eHi(C,y.alignedAxis,v,x,m),Bi(Boolean,C,"sizeInMeters",y.sizeInMeters,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(Er,C,"imageSubRegion",y.imageSubRegion,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function iHi(o,f,m,x){let y=f.box;if(!F(y))return;let v=X0(y.interval),C=o.box;F(C)||(o.box=C=new wue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"dimensions",y.dimensions,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function rHi(o,f,m,x){let y=f.corridor;if(!F(y))return;let v=X0(y.interval),C=o.corridor;F(C)||(o.corridor=C=new Eue),Bi(Boolean,C,"show",y.show,v,x,m),r$(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function nHi(o,f,m,x){let y=f.cylinder;if(!F(y))return;let v=X0(y.interval),C=o.cylinder;F(C)||(o.cylinder=C=new Lue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"length",y.length,v,x,m),Bi(Number,C,"topRadius",y.topRadius,v,x,m),Bi(Number,C,"bottomRadius",y.bottomRadius,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(Number,C,"slices",y.slices,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function oHi(o,f){let m=o.version;if(F(m)&&typeof m=="string"){let v=m.split(".");if(v.length===2){if(v[0]!=="1")throw new Oi("Cesium only supports CZML version 1.");f._version=m}}if(!F(f._version))throw new Oi("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;F(o.name)&&(x.name=o.name);let y=o.clock;if(F(y)){let v=x.clock;F(v)?(v.interval=y.interval??v.interval,v.currentTime=y.currentTime??v.currentTime,v.range=y.range??v.range,v.step=y.step??v.step,v.multiplier=y.multiplier??v.multiplier):x.clock={interval:y.interval,currentTime:y.currentTime,range:y.range,step:y.step,multiplier:y.multiplier}}}function aHi(o,f,m,x){let y=f.ellipse;if(!F(y))return;let v=X0(y.interval),C=o.ellipse;F(C)||(o.ellipse=C=new Pue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"semiMajorAxis",y.semiMajorAxis,v,x,m),Bi(Number,C,"semiMinorAxis",y.semiMinorAxis,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function sHi(o,f,m,x){let y=f.ellipsoid;if(!F(y))return;let v=X0(y.interval),C=o.ellipsoid;F(C)||(o.ellipsoid=C=new Lz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"radii",y.radii,v,x,m),Bi(Z,C,"innerRadii",y.innerRadii,v,x,m),Bi(Number,C,"minimumClock",y.minimumClock,v,x,m),Bi(Number,C,"maximumClock",y.maximumClock,v,x,m),Bi(Number,C,"minimumCone",y.minimumCone,v,x,m),Bi(Number,C,"maximumCone",y.maximumCone,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"stackPartitions",y.stackPartitions,v,x,m),Bi(Number,C,"slicePartitions",y.slicePartitions,v,x,m),Bi(Number,C,"subdivisions",y.subdivisions,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function lHi(o,f,m,x){let y=f.label;if(!F(y))return;let v=X0(y.interval),C=o.label;F(C)||(o.label=C=new Pz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(String,C,"text",y.text,v,x,m),Bi(String,C,"font",y.font,v,x,m),Bi(f0,C,"style",y.style,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Boolean,C,"showBackground",y.showBackground,v,x,m),Bi(Xe,C,"backgroundColor",y.backgroundColor,v,x,m),Bi(rt,C,"backgroundPadding",y.backgroundPadding,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"fillColor",y.fillColor,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function uHi(o,f,m,x){let y=f.model;if(!F(y))return;let v=X0(y.interval),C=o.model;F(C)||(o.model=C=new C7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(hde.default,C,"uri",y.gltf,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Number,C,"minimumPixelSize",y.minimumPixelSize,v,x,m),Bi(Number,C,"maximumScale",y.maximumScale,v,x,m),Bi(Boolean,C,"incrementallyLoadTextures",y.incrementallyLoadTextures,v,x,m),Bi(Boolean,C,"runAnimations",y.runAnimations,v,x,m),Bi(Boolean,C,"clampAnimations",y.clampAnimations,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"silhouetteColor",y.silhouetteColor,v,x,m),Bi(Number,C,"silhouetteSize",y.silhouetteSize,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(II,C,"colorBlendMode",y.colorBlendMode,v,x,m),Bi(Number,C,"colorBlendAmount",y.colorBlendAmount,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m);let T,S,w=y.nodeTransformations;if(F(w))if(Array.isArray(w))for(T=0,S=w.length;T<S;++T)c7e(C,w[T],v,x,m);else c7e(C,w,v,x,m);let E=y.articulations;if(F(E))if(Array.isArray(E))for(T=0,S=E.length;T<S;++T)h7e(C,E[T],v,x,m);else h7e(C,E,v,x,m)}function c7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,WO):v=m);let C=o.nodeTransformations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];if(!F(L))continue;F(C)||(o.nodeTransformations=C=new qE),C.hasProperty(E)||C.addProperty(E);let I=C[E];F(I)||(C[E]=I=new Iue),Bi(Z,I,"translation",L.translation,v,x,y),Bi(fr,I,"rotation",L.rotation,v,x,y),Bi(Z,I,"scale",L.scale,v,x,y)}}function h7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,WO):v=m);let C=o.articulations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];F(L)&&(F(C)||(o.articulations=C=new qE),C.hasProperty(E)||C.addProperty(E),Bi(Number,C,E,L,v,x,y))}}function cHi(o,f,m,x){let y=f.path;if(!F(y))return;let v=X0(y.interval),C=o.path;F(C)||(o.path=C=new T7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"leadTime",y.leadTime,v,x,m),Bi(Number,C,"trailTime",y.trailTime,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"resolution",y.resolution,v,x,m),S1(C,"material",y.material,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function hHi(o,f,m,x){let y=f.point;if(!F(y))return;let v=X0(y.interval),C=o.point;F(C)||(o.point=C=new Aue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"pixelSize",y.pixelSize,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function V6(o){this.polygon=o,this._definitionChanged=new Tr}Object.defineProperties(V6.prototype,{isConstant:{get:function(){let o=this.polygon._positions,f=this.polygon._holes;return(!F(o)||o.isConstant)&&(!F(f)||f.isConstant)}},definitionChanged:{get:function(){return this._definitionChanged}}});V6.prototype.getValue=function(o,f){let m;F(this.polygon._positions)&&(m=this.polygon._positions.getValue(o));let x;return F(this.polygon._holes)&&(x=this.polygon._holes.getValue(o),F(x)&&(x=x.map(function(y){return new Zn(y)}))),F(f)?(f.positions=m,f.holes=x,f):new Zn(m,x)};V6.prototype.equals=function(o){return this===o||o instanceof V6&&Nt.equals(this.polygon._positions,o.polygon._positions)&&Nt.equals(this.polygon._holes,o.polygon._holes)};function dHi(o,f,m,x){let y=f.polygon;if(!F(y))return;let v=X0(y.interval),C=o.polygon;F(C)||(o.polygon=C=new hl),Bi(Boolean,C,"show",y.show,v,x,m),r$(C,"_positions",y.positions,m),QBi(C,"_holes",y.holes,m),(F(C._positions)||F(C._holes))&&(C.hierarchy=new V6(C)),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Boolean,C,"perPositionHeight",y.perPositionHeight,v,x,m),Bi(Boolean,C,"closeTop",y.closeTop,v,x,m),Bi(Boolean,C,"closeBottom",y.closeBottom,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function pHi(o){return o?qa.GEODESIC:qa.NONE}function fHi(o,f,m,x){let y=f.polyline;if(!F(y))return;let v=X0(y.interval),C=o.polyline;if(F(C)||(o.polyline=C=new bI),Bi(Boolean,C,"show",y.show,v,x,m),r$(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),S1(C,"material",y.material,v,x,m),S1(C,"depthFailMaterial",y.depthFailMaterial,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(Boolean,C,"clampToGround",y.clampToGround,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m),F(y.followSurface)&&!F(y.arcType)){let T={};Bi(Boolean,T,"followSurface",y.followSurface,v,x,m),C.arcType=ABi(T.followSurface,pHi)}}function mHi(o,f,m,x){let y=f.polylineVolume;if(!F(y))return;let v=X0(y.interval),C=o.polylineVolume;F(C)||(o.polylineVolume=C=new Mue),r$(C,"positions",y.positions,m),qBi(C,"shape",y.shape,m),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function xHi(o,f,m,x){let y=f.rectangle;if(!F(y))return;let v=X0(y.interval),C=o.rectangle;F(C)||(o.rectangle=C=new Iz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(vi,C,"coordinates",y.coordinates,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function gHi(o,f,m,x){let y=f.tileset;if(!F(y))return;let v=X0(y.interval),C=o.tileset;F(C)||(o.tileset=C=new Rue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(hde.default,C,"uri",y.uri,v,x,m),Bi(Number,C,"maximumScreenSpaceError",y.maximumScreenSpaceError,v,x,m)}function yHi(o,f,m,x){let y=f.wall;if(!F(y))return;let v=X0(y.interval),C=o.wall;F(C)||(o.wall=C=new S7),Bi(Boolean,C,"show",y.show,v,x,m),r$(C,"positions",y.positions,m),s7e(C,"minimumHeights",y.minimumHeights,m),s7e(C,"maximumHeights",y.maximumHeights,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function d7e(o,f,m,x,y){let v=o.id;if(F(v)||(v=du()),KTe=v,!F(y._version)&&v!=="document")throw new Oi("The first CZML packet is required to be the document object.");if(o.delete===!0)f.removeById(v);else if(v==="document")oHi(o,y);else{let C=f.getOrCreateEntity(v),T=o.parent;F(T)&&(C.parent=f.getOrCreateEntity(T));for(let S=m.length-1;S>-1;S--)m[S](C,o,f,x)}KTe=void 0}function _Hi(o){let f,m=o._documentPacket.clock;if(!F(m)){if(!F(o._clock)){let y=o._entityCollection.computeAvailability();if(!y.start.equals(wn.MINIMUM_VALUE)){let v=y.start,C=y.stop,T=$t.secondsDifference(C,v),S=Math.round(T/120);return f=new n9,f.startTime=$t.clone(v),f.stopTime=$t.clone(C),f.clockRange=Gx.LOOP_STOP,f.multiplier=S,f.currentTime=$t.clone(v),f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,o._clock=f,!0}}return!1}F(o._clock)?f=o._clock.clone():(f=new n9,f.startTime=wn.MINIMUM_VALUE.clone(),f.stopTime=wn.MAXIMUM_VALUE.clone(),f.currentTime=wn.MINIMUM_VALUE.clone(),f.clockRange=Gx.LOOP_STOP,f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,f.multiplier=1);let x=X0(m.interval);return F(x)&&(f.startTime=x.start,f.stopTime=x.stop),F(m.currentTime)&&(f.currentTime=$t.fromIso8601(m.currentTime)),F(m.range)&&(f.clockRange=Gx[m.range]??Gx.LOOP_STOP),F(m.step)&&(f.clockStep=kd[m.step]??kd.SYSTEM_CLOCK_MULTIPLIER),F(m.multiplier)&&(f.multiplier=m.multiplier),f.equals(o._clock)?!1:(o._clock=f.clone(o._clock),!0)}function dmt(o,f,m,x){m=m??si.EMPTY_OBJECT;let y=f,v=m.sourceUri,C=m.credit;if(typeof C=="string"&&(C=new Oa(C)),o._credit=C,typeof f=="string"||f instanceof Mr){f=Mr.createIfNeeded(f),y=f.fetchJson(),v=v??f.clone();let T=o._resourceCredits,S=f.credits;if(F(S)){let w=S.length;for(let E=0;E<w;E++)T.push(S[E])}}return v=Mr.createIfNeeded(v),Sy.setLoading(o,!0),Promise.resolve(y).then(function(T){return vHi(o,T,v,x)}).catch(function(T){return Sy.setLoading(o,!1),o._error.raiseEvent(o,T),console.log(T),Promise.reject(T)})}function vHi(o,f,m,x){Sy.setLoading(o,!0);let y=o._entityCollection;x&&(o._version=void 0,o._documentPacket=new pmt,y.removeAll()),lm._processCzml(f,y,m,void 0,o);let v=_Hi(o),C=o._documentPacket;return F(C.name)&&o._name!==C.name?(o._name=C.name,v=!0):!F(o._name)&&F(m)&&(o._name=E7(m.getUrlComponent()),v=!0),Sy.setLoading(o,!1),v&&o._changed.raiseEvent(o),o}function pmt(){this.name=void 0,this.clock=void 0}function lm(o){this._name=o,this._changed=new Tr,this._error=new Tr,this._isLoading=!1,this._loading=new Tr,this._clock=void 0,this._documentPacket=new pmt,this._version=void 0,this._entityCollection=new US(this),this._entityCluster=new AF,this._credit=void 0,this._resourceCredits=[]}lm.load=function(o,f){return new lm().load(o,f)};Object.defineProperties(lm.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}}});lm.updaters=[tHi,iHi,rHi,nHi,aHi,sHi,lHi,uHi,kBi,UBi,cHi,hHi,dHi,fHi,mHi,YBi,xHi,BBi,gHi,HBi,yHi,zBi,$Bi];lm.registerUpdater=function(o){lm.updaters.includes(o)||lm.updaters.push(o)};lm.unregisterUpdater=function(o){if(lm.updaters.includes(o)){let f=lm.updaters.indexOf(o);lm.updaters.splice(f,1)}};lm.prototype.process=function(o,f){return dmt(this,o,f,!1)};lm.prototype.load=function(o,f){return dmt(this,o,f,!0)};lm.prototype.update=function(o){return!0};lm.processPacketData=Bi;lm.processPositionPacketData=hmt;lm.processMaterialPacketData=S1;lm._processCzml=function(o,f,m,x,y){if(x=x??lm.updaters,Array.isArray(o))for(let v=0,C=o.length;v<C;++v)d7e(o[v],f,x,m,y);else d7e(o,f,x,m,y)};var n$=lm,JTe=32,bHi="http://www.opengis.net/kml/2.2",DE="http://www.google.com/kml/ext/2.2",CHi="http://www.w3.org/2000/xmlns/";function fde(o){this._files={},this._promises=[],this._count=0,this._modelCallback=o}var THi=/^data:image\/([^,;]+)/;fde.prototype.texture=function(o){let f=this,m;if(typeof o=="string"||o instanceof Mr){if(o=Mr.createIfNeeded(o),!o.isDataUri)return o.url;let x=o.url.match(THi);m=`texture_${++this._count}`,F(x)&&(m+=`.${x[1]}`);let y=o.fetchBlob().then(function(v){f._files[m]=v});return this._promises.push(y),m}if(o instanceof HTMLCanvasElement){m=`texture_${++this._count}.png`;let x=new Promise(y=>{o.toBlob(function(v){f._files[m]=v,y()})});return this._promises.push(x),m}return""};function SHi(o,f){return function(m){o._files[f]=m}}fde.prototype.model=function(o,f){let m=this._modelCallback;if(!F(m))throw new Oi("Encountered a model entity while exporting to KML, but no model callback was supplied.");let x={},y=m(o,f,x);for(let v in x)if(x.hasOwnProperty(v)){let C=Promise.resolve(x[v]);this._promises.push(C),C.then(SHi(this,v))}return y};Object.defineProperties(fde.prototype,{promise:{get:function(){return Promise.all(this._promises)}},files:{get:function(){return this._files}}});function mde(o){this._time=o}mde.prototype.get=function(o,f,m){let x;return F(o)&&(x=F(o.getValue)?o.getValue(this._time,m):o),x??f};mde.prototype.getColor=function(o,f){let m=this.get(o,f);if(F(m))return yZ(m)};mde.prototype.getMaterialType=function(o){if(F(o))return o.getType(this._time)};function tDe(){this._ids={},this._styles={},this._count=0}tDe.prototype.get=function(o){let f=this._ids,m=o.innerHTML;if(F(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};tDe.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 fmt(){this._ids={}}fmt.prototype.get=function(o){if(!F(o))return this.get(du());let f=this._ids;return F(f[o])?`${o.toString()}-${++f[o]}`:(f[o]=0,o)};function iDe(o){o=o??si.EMPTY_OBJECT;let f=o.entities,m=o.kmz??!1,x=iDe._createState(o),y=f.values.filter(function(w){return!F(w.parent)}),v=x.kmlDoc,C=v.documentElement;C.setAttributeNS(CHi,"xmlns:gx",DE);let T=v.createElement("Document");C.appendChild(T),xmt(x,T,y),x.styleCache.save(T);let S=x.externalFileHandler;return S.promise.then(function(){let w=new XMLSerializer().serializeToString(x.kmlDoc);return m?wHi(w,S.files):{kml:w,externalFiles:S.files}})}function wHi(o,f){let m=oa("ThirdParty/Workers/z-worker-pako.js");bIe({workerScripts:{deflate:[m,"./pako_deflate.min.js"],inflate:[m,"./pako_inflate.min.js"]}});let x=new Iot,y=new nii(x);return y.add("doc.kml",new Sti(o)).then(function(){let v=Object.keys(f);return mmt(y,v,f,0)}).then(function(){return y.close()}).then(function(v){return{kmz:v}})}function mmt(o,f,m,x){if(f.length===x)return;let y=f[x];return o.add(y,new kue(m[y])).then(function(){return mmt(o,f,m,x+1)})}iDe._createState=function(o){let f=o.entities,m=new tDe,x=f.computeAvailability(),y=F(o.time)?o.time:x.start,v=o.defaultAvailability??x,C=o.sampleDuration??60;v.start===wn.MINIMUM_VALUE?v.stop===wn.MAXIMUM_VALUE?v=new js:$t.addSeconds(v.stop,-10*C,v.start):v.stop===wn.MAXIMUM_VALUE&&$t.addSeconds(v.start,10*C,v.stop);let T=new fde(o.modelCallback);return{kmlDoc:document.implementation.createDocument(bHi,"kml"),ellipsoid:o.ellipsoid??yi.default,idManager:new fmt,styleCache:m,externalFileHandler:T,time:y,valueGetter:new mde(y),sampleDuration:C,defaultAvailability:new k_([v])}};function xmt(o,f,m){let x=o.kmlDoc,y=o.styleCache,v=o.valueGetter,C=o.idManager,T=m.length,S,w,E;for(let L=0;L<T;++L){let I=m[L];S=[],w=[],E=[],EHi(o,I,w,E),LHi(o,I.polyline,w,E),f7e(o,I.rectangle,w,E,S),f7e(o,I.polygon,w,E,S),AHi(o,I,I.model,w,E);let R,P=I.availability;F(P)&&(R=x.createElement("TimeSpan"),$t.equals(P.start,wn.MINIMUM_VALUE)||R.appendChild(Ua(x,"begin",$t.toIso8601(P.start))),$t.equals(P.stop,wn.MAXIMUM_VALUE)||R.appendChild(Ua(x,"end",$t.toIso8601(P.stop))));for(let V=0;V<S.length;++V){let G=S[V];G.setAttribute("id",C.get(I.id)),G.appendChild(Ua(x,"name",I.name)),G.appendChild(Ua(x,"visibility",I.show)),G.appendChild(Ua(x,"description",I.description)),F(R)&&G.appendChild(R),f.appendChild(G)}let A=w.length;if(A>0){let V=x.createElement("Placemark");V.setAttribute("id",C.get(I.id));let G=I.name,D=I.label;if(F(D)){let k=x.createElement("LabelStyle"),U=v.get(D.text);G=F(U)&&U.length>0?U:G;let B=v.getColor(D.fillColor);F(B)&&(k.appendChild(Ua(x,"color",B)),k.appendChild(Ua(x,"colorMode","normal")));let Y=v.get(D.scale);F(Y)&&k.appendChild(Ua(x,"scale",Y)),E.push(k)}V.appendChild(Ua(x,"name",G)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),F(R)&&V.appendChild(R),f.appendChild(V);let N=E.length;if(N>0){let k=x.createElement("Style");for(let U=0;U<N;++U)k.appendChild(E[U]);V.appendChild(Ua(x,"styleUrl",y.get(k)))}if(w.length===1)V.appendChild(w[0]);else if(w.length>1){let k=x.createElement("MultiGeometry");for(let U=0;U<A;++U)k.appendChild(w[U]);V.appendChild(k)}}let M=I._children;if(M.length>0){let V=x.createElement("Folder");V.setAttribute("id",C.get(I.id)),V.appendChild(Ua(x,"name",I.name)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),f.appendChild(V),xmt(o,V,M)}}}var gb=new Z,rv=new Gt,TE=new $t;function EHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter,T=f.billboard??f.point;if(!F(T)&&!F(f.path))return;let S=f.position;if(!S.isConstant){gmt(o,f,T,m,x);return}C.get(S,void 0,gb);let w=Ua(y,"coordinates",gZ(gb,v)),E=y.createElement("Point"),L=y.createElement("altitudeMode");L.appendChild(XZ(o,T.heightReference)),E.appendChild(L),E.appendChild(w),m.push(E);let I=T instanceof sV?_mt(o,T):ymt(o,T);x.push(I)}function gmt(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter,S,w=f.position,E=!0;w instanceof i1?(S=w.intervals,E=!1):S=f.availability??o.defaultAvailability;let L=m instanceof C7,I,R,P,A=[];for(I=0;I<S.length;++I){let V=S.get(I),G=E?w:V.data,D=v.createElement("altitudeMode");G instanceof Vz?(G=G._value,D.appendChild(XZ(o,Mn.CLAMP_TO_GROUND))):F(m)?D.appendChild(XZ(o,m.heightReference)):D.appendChild(XZ(o,Mn.NONE));let N=[],k=[];if(G.isConstant){T.get(G,void 0,gb);let B=Ua(v,"coordinates",gZ(gb,C));N.push($t.toIso8601(V.start)),k.push(B),N.push($t.toIso8601(V.stop)),k.push(B)}else if(G instanceof oS)for(P=G._property._times,R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),G.getValueInReferenceFrame(P[R],fp.FIXED,gb),k.push(gZ(gb,C));else if(G instanceof hM){P=G._times;let B=G._values;for(R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),Z.fromArray(B,R*3,gb),k.push(gZ(gb,C))}else{let B=o.sampleDuration;V.start.clone(TE),V.isStartIncluded||$t.addSeconds(TE,B,TE);let Y=V.stop;for(;$t.lessThan(TE,Y);)G.getValue(TE,gb),N.push($t.toIso8601(TE)),k.push(gZ(gb,C)),$t.addSeconds(TE,B,TE);V.isStopIncluded&&$t.equals(TE,Y)&&(G.getValue(TE,gb),N.push($t.toIso8601(TE)),k.push(gZ(gb,C)))}let U=v.createElementNS(DE,"Track");U.appendChild(D);for(let B=0;B<N.length;++B){let Y=Ua(v,"when",N[B]),J=Ua(v,"coord",k[B],DE);U.appendChild(Y),U.appendChild(J)}L&&U.appendChild(vmt(o,m)),A.push(U)}if(A.length===1)x.push(A[0]);else if(A.length>1){let V=v.createElementNS(DE,"MultiTrack");for(I=0;I<A.length;++I)V.appendChild(A[I]);x.push(V)}if(F(m)&&!L){let V=m instanceof sV?_mt(o,m):ymt(o,m);y.push(V)}let M=f.path;if(F(M)){let V=T.get(M.width),G=M.material;if(F(G)||F(V)){let D=v.createElement("LineStyle");F(V)&&D.appendChild(Ua(v,"width",V)),rDe(o,G,D),y.push(D)}}}function ymt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=m.createElement("IconStyle"),v=x.getColor(f.color);F(v)&&(y.appendChild(Ua(m,"color",v)),y.appendChild(Ua(m,"colorMode","normal")));let C=x.get(f.pixelSize);return F(C)&&y.appendChild(Ua(m,"scale",C/JTe)),y}function _mt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("IconStyle"),C=x.get(f.image);if(F(C)){C=y.texture(C);let I=m.createElement("Icon");I.appendChild(Ua(m,"href",C));let R=x.get(f.imageSubRegion);F(R)&&(I.appendChild(Ua(m,"x",R.x,DE)),I.appendChild(Ua(m,"y",R.y,DE)),I.appendChild(Ua(m,"w",R.width,DE)),I.appendChild(Ua(m,"h",R.height,DE))),v.appendChild(I)}let T=x.getColor(f.color);F(T)&&(v.appendChild(Ua(m,"color",T)),v.appendChild(Ua(m,"colorMode","normal")));let S=x.get(f.scale);F(S)&&v.appendChild(Ua(m,"scale",S));let w=x.get(f.pixelOffset);if(F(w)){S=S??1,rt.divideByScalar(w,S,w);let I=x.get(f.width,JTe),R=x.get(f.height,JTe),P=x.get(f.horizontalOrigin,ec.CENTER);P===ec.CENTER?w.x-=I*.5:P===ec.RIGHT&&(w.x-=I);let A=x.get(f.verticalOrigin,jn.CENTER);A===jn.TOP?w.y+=R:A===jn.CENTER&&(w.y+=R*.5);let M=m.createElement("hotSpot");M.setAttribute("x",-w.x),M.setAttribute("y",w.y),M.setAttribute("xunits","pixels"),M.setAttribute("yunits","pixels"),v.appendChild(M)}let E=x.get(f.rotation),L=x.get(f.alignedAxis);return F(E)&&Z.equals(Z.UNIT_Z,L)&&(E=be.toDegrees(-E),E===0&&(E=360),v.appendChild(Ua(m,"heading",E))),v}function LHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter;if(!F(f))return;let T=y.createElement("LineString"),S=y.createElement("altitudeMode"),w=C.get(f.clampToGround,!1),E;w?(T.appendChild(Ua(y,"tessellate",!0)),E=y.createTextNode("clampToGround")):E=y.createTextNode("absolute"),S.appendChild(E),T.appendChild(S);let L=f.positions,I=C.get(L),R=Ua(y,"coordinates",gZ(I,v));T.appendChild(R);let P=C.get(f.zIndex);w&&F(P)&&T.appendChild(Ua(y,"drawOrder",P,DE)),m.push(T);let A=y.createElement("LineStyle"),M=C.get(f.width);F(M)&&A.appendChild(Ua(y,"width",M)),rDe(o,f.material,A),x.push(A)}function PHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0);m>0&&(v=m);let C=f.coordinates,T=y.get(C),S=[],w=[vi.northeast,vi.southeast,vi.southwest,vi.northwest];for(let R=0;R<4;++R)w[R](T,rv),S.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${v}`);let E=Ua(x,"coordinates",S.join(" ")),L=x.createElement("outerBoundaryIs"),I=x.createElement("LinearRing");return I.appendChild(E),L.appendChild(I),[L]}function p7e(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=[],T=f.length;for(let E=0;E<T;++E)Gt.fromCartesian(f[E],v,rv),C.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${x?rv.height:m}`);let S=Ua(y,"coordinates",C.join(" ")),w=y.createElement("LinearRing");return w.appendChild(S),w}function IHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0),C=y.get(f.perPositionHeight,!1);!C&&m>0&&(v=m);let T=[],S=f.hierarchy,w=y.get(S),E=Array.isArray(w)?w:w.positions,L=x.createElement("outerBoundaryIs");L.appendChild(p7e(o,E,v,C)),T.push(L);let I=w.holes;if(F(I)){let R=I.length;for(let P=0;P<R;++P){let A=x.createElement("innerBoundaryIs");A.appendChild(p7e(o,I[P].positions,v,C)),T.push(A)}}return T}function f7e(o,f,m,x,y){let v=o.kmlDoc,C=o.valueGetter;if(!F(f))return;let T=f instanceof Iz;if(T&&C.getMaterialType(f.material)==="Image"){RHi(o,f,y);return}let S=v.createElement("Polygon"),w=C.get(f.extrudedHeight,0);w>0&&S.appendChild(Ua(v,"extrude",!0));let E=T?PHi(o,f,w):IHi(o,f,w),L=E.length;for(let M=0;M<L;++M)S.appendChild(E[M]);let I=v.createElement("altitudeMode");I.appendChild(XZ(o,f.heightReference)),S.appendChild(I),m.push(S);let R=v.createElement("PolyStyle"),P=C.get(f.fill,!1);P&&R.appendChild(Ua(v,"fill",P)),rDe(o,f.material,R);let A=C.get(f.outline,!1);if(A){R.appendChild(Ua(v,"outline",A));let M=v.createElement("LineStyle"),V=C.get(f.outlineWidth,1);M.appendChild(Ua(v,"width",V));let G=C.getColor(f.outlineColor,Xe.BLACK);M.appendChild(Ua(v,"color",G)),M.appendChild(Ua(v,"colorMode","normal")),x.push(M)}x.push(R)}function RHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=o.externalFileHandler,C=x.createElement("GroundOverlay"),T=x.createElement("altitudeMode");T.appendChild(XZ(o,f.heightReference)),C.appendChild(T);let S=y.get(f.height);F(S)&&C.appendChild(Ua(x,"altitude",S));let w=y.get(f.coordinates),E=x.createElement("LatLonBox");E.appendChild(Ua(x,"north",be.toDegrees(w.north))),E.appendChild(Ua(x,"south",be.toDegrees(w.south))),E.appendChild(Ua(x,"east",be.toDegrees(w.east))),E.appendChild(Ua(x,"west",be.toDegrees(w.west))),C.appendChild(E);let L=y.get(f.material),I=v.texture(L.image),R=x.createElement("Icon");R.appendChild(Ua(x,"href",I)),C.appendChild(R);let P=L.color;F(P)&&C.appendChild(Ua(x,"color",yZ(L.color))),m.push(C)}function vmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("Model"),C=x.get(f.scale);if(F(C)){let w=m.createElement("scale");w.appendChild(Ua(m,"x",C)),w.appendChild(Ua(m,"y",C)),w.appendChild(Ua(m,"z",C)),v.appendChild(w)}let T=m.createElement("Link"),S=y.model(f,o.time);return T.appendChild(Ua(m,"href",S)),v.appendChild(T),v}function AHi(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter;if(!F(m))return;let S=f.position;if(!S.isConstant){gmt(o,f,m,x,y);return}let w=vmt(o,m),E=v.createElement("altitudeMode");E.appendChild(XZ(o,m.heightReference)),w.appendChild(E),T.get(S,void 0,gb),Gt.fromCartesian(gb,C,rv);let L=v.createElement("Location");L.appendChild(Ua(v,"longitude",be.toDegrees(rv.longitude))),L.appendChild(Ua(v,"latitude",be.toDegrees(rv.latitude))),L.appendChild(Ua(v,"altitude",rv.height)),w.appendChild(L),x.push(w)}function rDe(o,f,m){let x=o.kmlDoc,y=o.valueGetter;if(!F(f))return;let v=y.get(f);if(!F(v))return;let C,T=y.getMaterialType(f),S,w;switch(T){case"Image":C=yZ(Xe.WHITE);break;case"Color":case"Grid":case"PolylineGlow":case"PolylineArrow":case"PolylineDash":C=yZ(v.color);break;case"PolylineOutline":C=yZ(v.color),S=yZ(v.outlineColor),w=v.outlineWidth,m.appendChild(Ua(x,"outerColor",S,DE)),m.appendChild(Ua(x,"outerWidth",w,DE));break;case"Stripe":C=yZ(v.oddColor);break}F(C)&&(m.appendChild(Ua(x,"color",C)),m.appendChild(Ua(x,"colorMode","normal")))}function XZ(o,f){let m=o.kmlDoc,x=o.valueGetter.get(f,Mn.NONE),y;switch(x){case Mn.NONE:y=m.createTextNode("absolute");break;case Mn.CLAMP_TO_GROUND:y=m.createTextNode("clampToGround");break;case Mn.RELATIVE_TO_GROUND:y=m.createTextNode("relativeToGround");break}return y}function gZ(o,f){Array.isArray(o)||(o=[o]);let m=o.length,x=[];for(let y=0;y<m;++y)Gt.fromCartesian(o[y],f,rv),x.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${rv.height}`);return x.join(" ")}function Ua(o,f,m,x){m=m??"",typeof m=="boolean"&&(m=m?"1":"0");let y=F(x)?o.createElementNS(x,f):o.createElement(f),v=m==="string"&&m.indexOf("<")!==-1?o.createCDATASection(m):o.createTextNode(m);return y.appendChild(v),y}function yZ(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 bmt=iDe,Cmt;typeof DOMParser<"u"&&(Cmt=new DOMParser);var MHi=new jnt({stripPrefix:!1,email:!1,replaceFn:function(o,f){return f.urlMatchType==="scheme"||f.urlMatchType==="www"}}),hle=32,m7e=2414016,x7e=1,g7e=16093e3,y7e=.1,VHi=[null,void 0,"http://www.topografix.com/GPX/1/1"],sd={gpx:VHi};function GHi(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 nDe(o,f){let m=G6(o,"id");return m=F(m)?m:du(),f.getOrCreateEntity(m)}function oDe(o){let f=_7e(o,"lon"),m=_7e(o,"lat"),x=Lj(o,"ele",sd.gpx);return Z.fromDegrees(f,m,x)}function _7e(o,f){if(!F(o))return;let m=o.getAttribute(f);if(m!==null){let x=parseFloat(m);return isNaN(x)?void 0:x}}function G6(o,f){if(!F(o))return;let m=o.getAttribute(f);return m!==null?m:void 0}function iD(o,f,m){if(!F(o))return;let x=o.childNodes,y=x.length;for(let v=0;v<y;v++){let C=x[v];if(C.localName===f&&m.indexOf(C.namespaceURI)!==-1)return C}}function aDe(o,f,m){if(!F(o))return;let x=[],y=o.getElementsByTagName(f),v=y.length;for(let C=0;C<v;C++){let T=y[C];T.localName===f&&m.indexOf(T.namespaceURI)!==-1&&x.push(T)}return x}function Lj(o,f,m){let x=iD(o,f,m);if(F(x)){let y=parseFloat(x.textContent);return isNaN(y)?void 0:y}}function Rb(o,f,m){let x=iD(o,f,m);if(F(x))return x.textContent.trim()}function Tmt(o){let f=new sV;return f.width=hle,f.height=hle,f.scaleByDistance=new ea(m7e,x7e,g7e,y7e),f.pixelOffsetScaleByDistance=new ea(m7e,x7e,g7e,y7e),f.verticalOrigin=new Qc(jn.BOTTOM),f.image=o,f}function FHi(){let o=new Pz;return o.translucencyByDistance=new ea(3e6,1,5e6,0),o.pixelOffset=new rt(17,0),o.horizontalOrigin=ec.LEFT,o.font="16px sans-serif",o.style=f0.FILL_AND_OUTLINE,o}function Smt(o){let f=new bI;return f.width=4,f.material=new jM,f.material.color=F(o)?o:Xe.RED,f.material.outlineWidth=2,f.material.outlineColor=Xe.BLACK,f}var v7e={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"}},Pj;typeof document<"u"&&(Pj=document.createElement("div"));function sDe(o,f){let m,x="",y=Object.keys(v7e),v=y.length;for(m=0;m<v;m++){let E=y[m],L=v7e[E];L.value=Rb(o,L.tag,sd.gpx)??"",F(L.value)&&L.value!==""&&(x=`${x}<p>${L.text}: ${L.value}</p>`)}if(!F(x)||x==="")return;x=MHi.link(x),Pj.innerHTML=x;let C=Pj.querySelectorAll("a");for(m=0;m<C.length;m++)C[m].setAttribute("target","_blank");let T=Xe.WHITE,S=Xe.BLACK,w='<div class="cesium-infoBox-description-lighter" style="';return w+="overflow:auto;",w+="word-wrap:break-word;",w+=`background-color:${T.toCssColorString()};`,w+=`color:${S.toCssColorString()};`,w+='">',w+=`${Pj.innerHTML}</div>`,Pj.innerHTML="",w}function wmt(o,f,m,x){let y=oDe(f),v=nDe(f,m);v.position=y;let C=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,hle);v.billboard=Tmt(C);let T=Rb(f,"name",sd.gpx);v.name=T,v.label=FHi(),v.label.text=T,v.description=sDe(f,v),x.clampToGround&&(v.billboard.heightReference=Mn.CLAMP_TO_GROUND,v.label.heightReference=Mn.CLAMP_TO_GROUND)}function DHi(o,f,m,x){let y=nDe(f,m);y.description=sDe(f,y);let v=aDe(f,"rtept",sd.gpx),C=new Array(v.length);for(let T=0;T<v.length;T++)wmt(o,v[T],m,x),C[T]=oDe(v[T]);y.polyline=Smt(x.routeColor),x.clampToGround&&(y.polyline.clampToGround=!0),y.polyline.positions=C}function NHi(o,f,m,x){let y=nDe(f,m);y.description=sDe(f,y);let v=aDe(f,"trkseg",sd.gpx),C=[],T=[],S,w=!0,E=new oS;for(let L=0;L<v.length;L++)S=WHi(v[L]),C=C.concat(S.positions),S.times.length>0?(T=T.concat(S.times),E.addSamples(T,C),w=w&&!0):w=!1;if(w){let L=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,hle);y.billboard=Tmt(L),y.position=E,x.clampToGround&&(y.billboard.heightReference=Mn.CLAMP_TO_GROUND),y.availability=new k_,y.availability.addInterval(new js({start:T[0],stop:T[T.length-1]}))}y.polyline=Smt(x.trackColor),y.polyline.positions=C,x.clampToGround&&(y.polyline.clampToGround=!0)}function WHi(o){let f={positions:[],times:[]},m=aDe(o,"trkpt",sd.gpx),x;for(let y=0;y<m.length;y++){let v=oDe(m[y]);f.positions.push(v),x=Rb(m[y],"time",sd.gpx),F(x)&&f.times.push($t.fromIso8601(x))}return f}function ZHi(o){let f=iD(o,"metadata",sd.gpx);if(F(f)){let m={name:Rb(f,"name",sd.gpx),desc:Rb(f,"desc",sd.gpx),author:OHi(f),copyright:kHi(f),link:Emt(f),time:Rb(f,"time",sd.gpx),keywords:Rb(f,"keywords",sd.gpx),bounds:UHi(f)};if(F(m.name)||F(m.desc)||F(m.author)||F(m.copyright)||F(m.link)||F(m.time)||F(m.keywords)||F(m.bounds))return m}}function OHi(o){let f=iD(o,"author",sd.gpx);if(F(f)){let m={name:Rb(f,"name",sd.gpx),email:XHi(f),link:Emt(f)};if(F(m.name)||F(m.email)||F(m.link))return m}}function XHi(o){let f=iD(o,"email",sd.gpx);if(F(f)){let m=Rb(f,"id",sd.gpx),x=Rb(f,"domain",sd.gpx);return`${m}@${x}`}}function Emt(o){let f=iD(o,"link",sd.gpx);if(F(f)){let m={href:G6(f,"href"),text:Rb(f,"text",sd.gpx),mimeType:Rb(f,"type",sd.gpx)};if(F(m.href)||F(m.text)||F(m.mimeType))return m}}function kHi(o){let f=iD(o,"copyright",sd.gpx);if(F(f)){let m={author:G6(f,"author"),year:Rb(f,"year",sd.gpx),license:Rb(f,"license",sd.gpx)};if(F(m.author)||F(m.year)||F(m.license))return m}}function UHi(o){let f=iD(o,"bounds",sd.gpx);if(F(f)){let m={minLat:Lj(f,"minlat",sd.gpx),maxLat:Lj(f,"maxlat",sd.gpx),minLon:Lj(f,"minlon",sd.gpx),maxLon:Lj(f,"maxlon",sd.gpx)};if(F(m.minLat)||F(m.maxLat)||F(m.minLon)||F(m.maxLon))return m}}var b7e={wpt:wmt,rte:DHi,trk:NHi};function BHi(o,f,m,x){let y=Object.keys(b7e),v=y.length;for(let C=0;C<v;C++){let T=y[C],S=b7e[T],w=f.childNodes,E=w.length;for(let L=0;L<E;L++){let I=w[L];I.localName===T&&sd.gpx.indexOf(I.namespaceURI)!==-1&&S(o,I,m,x)}}}function C7e(o,f,m){let x=o._entityCollection;x.removeAll();let y=f.documentElement,v=G6(y,"version"),C=G6(y,"creator"),T,S=ZHi(y);F(S)&&(T=S.name),y.localName==="gpx"?BHi(o,y,x,m):console.log(`GPX - Unsupported node: ${y.localName}`);let w,E=x.computeAvailability(),L=E.start,I=E.stop,R=$t.equals(L,wn.MINIMUM_VALUE),P=$t.equals(I,wn.MAXIMUM_VALUE);if(!R||!P){let M;R&&(M=new Date,M.setHours(0,0,0,0),L=$t.fromDate(M)),P&&(M=new Date,M.setHours(24,0,0,0),I=$t.fromDate(M)),w=new n9,w.startTime=L,w.stopTime=I,w.currentTime=$t.clone(L),w.clockRange=Gx.LOOP_STOP,w.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,w.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(I,L)/60,1),31556900))}let A=!1;return o._name!==T&&(o._name=T,A=!0),o._creator!==C&&(o._creator=C,A=!0),HHi(o._metadata,S)&&(o._metadata=S,A=!0),o._version!==v&&(o._version=v,A=!0),w!==o._clock&&(A=!0,o._clock=w),A&&o._changed.raiseEvent(o),Sy.setLoading(o,!1),o}function HHi(o,f){return!F(o)&&!F(f)?!1:F(o)&&F(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 zHi(o,f,m,x){x=x??si.EMPTY_OBJECT;let y=m;if(typeof m=="string"||m instanceof Mr){m=Mr.createIfNeeded(m),y=m.fetchBlob();let v=o._resourceCredits,C=m.credits;if(F(C)){let T=C.length;for(let S=0;S<T;S++)v.push(C[S])}}return Promise.resolve(y).then(function(v){return v instanceof Blob?GHi(v).then(function(C){let T,S;try{T=Cmt.parseFromString(C,"application/xml")}catch(w){S=w.toString()}if(F(S)||T.body||T.documentElement.tagName==="parsererror"){let w=F(S)?S:T.documentElement.firstChild.nodeValue;throw w||(w=T.body.innerText),new Oi(w)}return C7e(o,T,x)}):C7e(o,v,x)}).catch(function(v){return o._error.raiseEvent(o,v),console.log(v),Promise.reject(v)})}function jH(){this._changed=new Tr,this._error=new Tr,this._loading=new Tr,this._clock=void 0,this._entityCollection=new US(this),this._entityCluster=new AF,this._name=void 0,this._version=void 0,this._creator=void 0,this._metadata=void 0,this._isLoading=!1,this._pinBuilder=new L7}jH.load=function(o,f){return new jH().load(o,f)};Object.defineProperties(jH.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}}});jH.prototype.update=function(o){return!0};jH.prototype.load=function(o,f){if(!F(o))throw new wt("data is required.");f=f??si.EMPTY_OBJECT,Sy.setLoading(this,!0);let m=this._name,x=this;return zHi(this,this._entityCollection,o,f).then(function(){let y,v=x._entityCollection.computeAvailability(),C=v.start,T=v.stop,S=$t.equals(C,wn.MINIMUM_VALUE),w=$t.equals(T,wn.MAXIMUM_VALUE);if(!S||!w){let L;S&&(L=new Date,L.setHours(0,0,0,0),C=$t.fromDate(L)),w&&(L=new Date,L.setHours(24,0,0,0),T=$t.fromDate(L)),y=new n9,y.startTime=C,y.stopTime=T,y.currentTime=$t.clone(C),y.clockRange=Gx.LOOP_STOP,y.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,y.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(T,C)/60,1),31556900))}let E=!1;return y!==x._clock&&(x._clock=y,E=!0),m!==x._name&&(E=!0),E&&x._changed.raiseEvent(x),Sy.setLoading(x,!1),x}).catch(function(y){return Sy.setLoading(x,!1),x._error.raiseEvent(x,y),console.log(y),Promise.reject(y)})};var lDe=jH;function o$(){wt.throwInstantiationError()}o$.prototype.update=wt.throwInstantiationError;o$.prototype.getBoundingSphere=wt.throwInstantiationError;o$.prototype.isDestroyed=wt.throwInstantiationError;o$.prototype.destroy=wt.throwInstantiationError;var Lmt=o$;function QH(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=o.width,x=o.height,y=o.depth,v=o.source,C=o.pixelFormat??zr.RGBA,T=o.pixelDataType??un.UNSIGNED_BYTE,S=zr.toInternalFormat(C,T,f);if(!F(m)||!F(x)||!F(y))throw new wt("options requires a source field to create an 3d texture. width or height or dimension fileds");if(Da.typeOf.number.greaterThan("width",m,0),m>co.maximumTextureSize)throw new wt("width must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("height",x,0),x>co.maximumTextureSize)throw new wt("height must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("dimensions",y,0),y>co.maximumTextureSize)throw new wt("dimension must be less than or equal to the maximum texture size");if(!zr.validate(C))throw new wt("Invalid options.pixelFormat.");if(!un.validate(T))throw new wt("Invalid options.pixelDatatype.");let w=!0,E=f._gl,L=E.TEXTURE_3D,I=E.createTexture();E.activeTexture(E.TEXTURE0),E.bindTexture(L,I);let R=4;if(F(v)&&F(v.arrayBufferView)&&(R=zr.alignmentInBytes(C,T,m)),E.pixelStorei(E.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),E.pixelStorei(E.UNPACK_FLIP_Y_WEBGL,!1),E.pixelStorei(E.UNPACK_ALIGNMENT,R),E.pixelStorei(E.UNPACK_COLORSPACE_CONVERSION_WEBGL,E.BROWSER_DEFAULT_WEBGL),F(v)&&F(v.arrayBufferView)){let P=v.arrayBufferView;E.texImage3D(L,0,S,m,x,y,0,C,un.toWebGLConstant(T,f),P),w=!0}E.bindTexture(L,null),this._id=du(),this._context=f,this._textureFilterAnisotropic=f._textureFilterAnisotropic,this._textureTarget=L,this._texture=I,this._internalFormat=S,this._pixelFormat=C,this._pixelDatatype=T,this._width=m,this._height=x,this._depth=y,this._dimensions=new Z(m,x,y),this._hasMinmap=!1,this._sizeInBytes=4,this._preMultiplyAlpha=!1,this._flipY=!1,this._initialized=w,this._sampler=void 0,this.sampler=F(o.sampler)?o.sampler:new Yo}QH.fromFramebuffer=function(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=f._gl,x=o.pixelFormat??zr.RGB,y=o.width??m.drawingBufferWidth,v=o.height??m.drawingBufferHeight,C=o.depth??128,T=o.framebuffer;return new QH({context:f,width:y,height:v,pixelFormat:x,source:{framebuffer:F(T)?T:f.defaultFramebuffer,width:y,height:v,depth:C}})};Object.defineProperties(QH.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,y=this._textureTarget;x.activeTexture(x.TEXTURE0),x.bindTexture(y,this._texture),x.texParameteri(y,x.TEXTURE_MIN_FILTER,f),x.texParameteri(y,x.TEXTURE_MAG_FILTER,m),x.texParameteri(y,x.TEXTURE_WRAP_R,o.wrapR),x.texParameteri(y,x.TEXTURE_WRAP_S,o.wrapS),x.texParameteri(y,x.TEXTURE_WRAP_T,o.wrapT),x.bindTexture(y,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}}});QH.prototype.isDestroyed=function(){return!1};QH.prototype.destory=function(){return this._context._gl.deleteTexture(this._texture),yr(this)};var uDe=QH,cDe=`uniform sampler2D u_noiseTexture; + `}),o.textureUniformShader.andStyle=!0}function XUi(o){let f=Math.floor(o/256/256),m=Math.floor((o-f*256*256)/255),x=o-f*256*256-m*256,y=f.toString(16).padStart(2,"0"),v=m.toString(16).padStart(2,"0"),C=x.toString(16).padStart(2,"0");return"color('#"+y+v+C+"')"}function kUi(o){return"${id} === '"+o+"'"}function UUi(o){let f=o.pipelineIds,m=f.length,x=[];for(let y=0;y<m;y++){let v=f[y];x.push([kUi(v),XUi(y)])}x.push(["true","color('white')"]),o.style=new OS({color:{conditions:x}})}function BUi(o){let f=o.flowLevels;if(f instanceof Array&&f.length===16){o.flowLevelMatrix=Ee.fromArray(f);return}o.flowLevelMatrix=new Ee}UH.prototype.init=function(o){let f=Math.sqrt(this.pipelineIds.length);f=Math.floor(f+1),this.width=f,this.height=f,BUi(this),ZUi(this),OUi(this),UUi(this),this.oldCustomShader=this.tileset.customShader,this.tileset.customShader=this.textureUniformShader,this.oldStyle=this.tileset.style,this.tileset.style=this.style};function HUi(o){let f=o.pipelineTexture,m=o.serverDatas,x=o.textureData,y=0,v=Object.keys(m);v.length>0&&(v.forEach(C=>{let T=m[C];x[y++]=T}),f.copyFrom({source:{width:o.width,height:o.height,arrayBufferView:x}}))}function zUi(o,f){new Mr({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){})}UH.prototype.update=function(){let o=performance.now(),f=(o-this.startTime)/1e3;if(this.startTime=o,this.currentTime>this.nextRequestTime){let m=this;zUi(this,function(x,y){x.forEach(v=>{m.serverDatas[v.id]=v.flow}),m.nextRequestTime=(Number(m.currentTimestamp)-Number(y))/1e3,m.currentTimestamp=y,HUi(m)})}this.currentTime+=f,this.textureUniformShader.setUniform("u_time",this.currentTime)};UH.prototype.destroy=function(){this.tileset.customShader=this.oldCustomShader,this.tileset.style=this.oldStyle,this.pipelineTexture&&this.pipelineTexture.destroy(),this.textureData&&(this.textureData=null)};UH.fromUrl=async function(o){let{context:f,tileset:m,pipelineUrl:x,flowLevels:y,startTimestamp:v,imageWidth:C,imageHeight:T}=o,S=[],w=await new Mr({url:x,queryParameters:{timestamp:v}}).fetchJson();return w&&w.data&&w.data instanceof Array&&w.data.forEach(E=>{S.push(E.id)}),new UH(f,m,S,x,v,y,C,T)};var lde=UH,YUi=Xe.WHITE,KUi=Xe.BLACK,JUi=new rt(2,2);function BH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(BH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),repeat:Ii("repeat")});BH.prototype.getType=function(o){return"Checkerboard"};var jUi=new $t;BH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(jUi)),F(f)||(f={}),f.lightColor=Nt.getValueOrClonedDefault(this._evenColor,o,YUi,f.lightColor),f.darkColor=Nt.getValueOrClonedDefault(this._oddColor,o,KUi,f.darkColor),f.repeat=Nt.getValueOrDefault(this._repeat,o,JUi),f};BH.prototype.equals=function(o){return this===o||o instanceof BH&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._repeat,o._repeat)};var ile=BH,rle={id:void 0},qB=new Array(2);function YTe(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 omt(o,f,m,x){qB[0]=m,qB[1]=x.id,f[JSON.stringify(qB)]=x.definitionChanged.addEventListener(qp.prototype._onDefinitionChanged,o)}function amt(o,f,m,x){qB[0]=m,qB[1]=x.id;let y=JSON.stringify(qB);f[y](),f[y]=void 0}function tD(o){if(o._shouldRecomposite=!0,o._suspendCount!==0)return;let f=o._collections,m=f.length,x=o._collectionsCopy,y=x.length,v,C,T,S,w,E=o._composite,L=new US(o),I=o._eventHash,R;for(v=0;v<y;v++)for(w=x[v],w.collectionChanged.removeEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--)C=T[S],amt(o,I,R,C);for(v=m-1;v>=0;v--)for(w=f[v],w.collectionChanged.addEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--){C=T[S],omt(o,I,R,C);let A=L.getById(C.id);F(A)||(A=E.getById(C.id),F(A)?YTe(A):(rle.id=C.id,A=new bd(rle)),L.add(A)),A.merge(C)}o._collectionsCopy=f.slice(0),E.suspendEvents(),E.removeAll();let P=L.values;for(v=0;v<P.length;v++)E.add(P[v]);E.resumeEvents()}function qp(o,f){this._owner=f,this._composite=new US(this),this._suspendCount=0,this._collections=F(o)?o.slice():[],this._collectionsCopy=[],this._id=du(),this._eventHash={},tD(this),this._shouldRecomposite=!1}Object.defineProperties(qp.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}}});qp.prototype.addCollection=function(o,f){F(f)?this._collections.splice(f,0,o):(f=this._collections.length,this._collections.push(o)),tD(this)};qp.prototype.removeCollection=function(o){let f=this._collections.indexOf(o);return f!==-1?(this._collections.splice(f,1),tD(this),!0):!1};qp.prototype.removeAllCollections=function(){this._collections.length=0,tD(this)};qp.prototype.containsCollection=function(o){return this._collections.indexOf(o)!==-1};qp.prototype.contains=function(o){return this._composite.contains(o)};qp.prototype.indexOfCollection=function(o){return this._collections.indexOf(o)};qp.prototype.getCollection=function(o){return this._collections[o]};qp.prototype.getCollectionsLength=function(){return this._collections.length};function ude(o,f){return o.indexOf(f)}function smt(o,f,m){let x=o._collections;if(f=be.clamp(f,0,x.length-1),m=be.clamp(m,0,x.length-1),f===m)return;let y=x[f];x[f]=x[m],x[m]=y,tD(o)}qp.prototype.raiseCollection=function(o){let f=ude(this._collections,o);smt(this,f,f+1)};qp.prototype.lowerCollection=function(o){let f=ude(this._collections,o);smt(this,f,f-1)};qp.prototype.raiseCollectionToTop=function(o){let f=ude(this._collections,o);f!==this._collections.length-1&&(this._collections.splice(f,1),this._collections.push(o),tD(this))};qp.prototype.lowerCollectionToBottom=function(o){let f=ude(this._collections,o);f!==0&&(this._collections.splice(f,1),this._collections.splice(0,0,o),tD(this))};qp.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()};qp.prototype.resumeEvents=function(){this._suspendCount--,this._shouldRecomposite&&this._suspendCount===0&&(tD(this),this._shouldRecomposite=!1),this._composite.resumeEvents()};qp.prototype.computeAvailability=function(){return this._composite.computeAvailability()};qp.prototype.getById=function(o){return this._composite.getById(o)};qp.prototype._onCollectionChanged=function(o,f,m){let x=this._collectionsCopy,y=x.length,v=this._composite;v.suspendEvents();let C,T,S,w,E=m.length,L=this._eventHash,I=o.id;for(C=0;C<E;C++){let P=m[C];amt(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),YTe(w)),w.merge(S));F(w)||v.removeById(A),w=void 0}let R=f.length;for(C=0;C<R;C++){let P=f[C];omt(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),F(w)?YTe(w):(rle.id=A,w=new bd(rle),v.add(w))),w.merge(S));w=void 0}v.resumeEvents()};qp.prototype._onDefinitionChanged=function(o,f,m,x){let y=this._collections,v=this._composite,C=y.length,T=o.id,S=v.getById(T),w=S[f],E=!F(w),L=!0;for(let I=C-1;I>=0;I--){let R=y[I].getById(o.id);if(F(R)){let P=R[f];if(F(P)){if(L)if(L=!1,F(P.merge)&&F(P.clone))w=P.clone(w);else{w=P;break}w.merge(P)}}}E&&S.propertyNames.indexOf(f)===-1&&S.addProperty(f),S[f]=w};var lmt=qp;function fF(){this._definitionChanged=new Tr,this._composite=new nS,this._composite.definitionChanged.addEventListener(fF.prototype._raiseDefinitionChanged,this)}Object.defineProperties(fF.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite._intervals}}});fF.prototype.getType=function(o){let f=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(f))return f.getType(o)};var QUi=new $t;fF.prototype.getValue=function(o,f){F(o)||(o=$t.now(QUi));let m=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(m))return m.getValue(o,f)};fF.prototype.equals=function(o){return this===o||o instanceof fF&&this._composite.equals(o._composite,Nt.equals)};fF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var nle=fF,qUi=be.factorial;function YFe(o,f,m,x,y,v){let C=0,T,S,w;if(x>0){for(S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(v.push(S),C+=YFe(o,f,m,x-1,y,v),v.splice(v.length-1,1))}return C}for(C=1,S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(C*=o-m[f[S]])}return C}var cde={type:"Hermite"};cde.getRequiredDataPoints=function(o,f){return f=f??0,Math.max(Math.floor((o+1)/(f+1)),2)};cde.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T,S,w,E,L=f.length,I=new Array(x);for(v=0;v<x;v++){y[v]=0;let M=new Array(L);for(I[v]=M,C=0;C<L;C++)M[C]=[]}let R=L,P=new Array(R);for(v=0;v<R;v++)P[v]=v;let A=L-1;for(S=0;S<x;S++){for(C=0;C<R;C++)E=P[C]*x+S,I[S][0].push(m[E]);for(v=1;v<R;v++){let M=!1;for(C=0;C<R-v;C++){let V=f[P[C]],G=f[P[C+v]],D;G-V<=0?(E=P[C]*x+x*v+S,D=m[E],I[S][v].push(D/qUi(v))):(D=I[S][v-1][C+1]-I[S][v-1][C],I[S][v].push(D/(G-V))),M=M||D!==0}M||(A=v-1)}}for(T=0,w=0;T<=w;T++)for(v=T;v<=A;v++){let M=YFe(o,P,f,T,v,[]);for(S=0;S<x;S++){let V=I[S][v][0];y[S+T*x]+=V*M}}return y};var $Ui=[];cde.interpolate=function(o,f,m,x,y,v,C){let T=x*(v+1);F(C)||(C=new Array(T));for(let V=0;V<T;V++)C[V]=0;let S=f.length,w=new Array(S*(y+1)),E;for(E=0;E<S;E++)for(let V=0;V<y+1;V++)w[E*(y+1)+V]=E;let L=w.length,I=$Ui,R=eBi(I,w,f,m,x,y),P=[],A=L*(L+1)/2,M=Math.min(R,v);for(let V=0;V<=M;V++)for(E=V;E<=R;E++){P.length=0;let G=YFe(o,w,f,V,E,P),D=Math.floor(E*(1-E)/2)+L*E;for(let N=0;N<x;N++){let k=Math.floor(N*A),U=I[k+D];C[N+V*x]+=U*G}}return C};function eBi(o,f,m,x,y,v){let C,T,S=-1,w=f.length,E=w*(w+1)/2;for(let L=0;L<y;L++){let I=Math.floor(L*E);for(C=0;C<w;C++)T=f[C]*y*(v+1)+L,o[I+C]=x[T];for(let R=1;R<w;R++){let P=0,A=Math.floor(R*(1-R)/2)+w*R,M=!1;for(C=0;C<w-R;C++){let V=m[f[C]],G=m[f[C+R]],D,N;if(G-V<=0)T=f[C]*y*(v+1)+y*R+L,D=x[T],N=D/be.factorial(R),o[I+A+P]=N,P++;else{let k=Math.floor((R-1)*(2-R)/2)+w*(R-1);D=o[I+k+C+1]-o[I+k+C],N=D/(G-V),o[I+A+P]=N,P++}M=M||D!==0}M&&(S=Math.max(S,R))}}return S}var KFe=cde,JFe={type:"Lagrange"};JFe.getRequiredDataPoints=function(o){return Math.max(o+1,2)};JFe.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T=f.length;for(v=0;v<x;v++)y[v]=0;for(v=0;v<T;v++){let S=1;for(C=0;C<T;C++)if(C!==v){let w=f[v]-f[C];S*=(o-f[C])/w}for(C=0;C<x;C++)y[C]+=S*m[v*x+C]}return y};var jFe=JFe;function r2(o,f,m){this.clock=o??0,this.cone=f??0,this.magnitude=m??1}r2.fromCartesian3=function(o,f){let m=o.x,x=o.y,y=o.z,v=m*m+x*x;return F(f)||(f=new r2),f.clock=Math.atan2(x,m),f.cone=Math.atan2(Math.sqrt(v),y),f.magnitude=Math.sqrt(v+y*y),f};r2.clone=function(o,f){if(F(o))return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=o.magnitude,f):new r2(o.clock,o.cone,o.magnitude)};r2.normalize=function(o,f){return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=1,f):new r2(o.clock,o.cone,1)};r2.equals=function(o,f){return o===f||F(o)&&F(f)&&o.clock===f.clock&&o.cone===f.cone&&o.magnitude===f.magnitude};r2.equalsEpsilon=function(o,f,m){return m=m??0,o===f||F(o)&&F(f)&&Math.abs(o.clock-f.clock)<=m&&Math.abs(o.cone-f.cone)<=m&&Math.abs(o.magnitude-f.magnitude)<=m};r2.prototype.equals=function(o){return r2.equals(this,o)};r2.prototype.clone=function(o){return r2.clone(this,o)};r2.prototype.equalsEpsilon=function(o,f){return r2.equalsEpsilon(this,o,f)};r2.prototype.toString=function(){return`(${this.clock}, ${this.cone}, ${this.magnitude})`};var QFe=r2,hde=k0(VS(),1),tBi=Xe.WHITE,iBi=.1,rBi=new rt(8,8),nBi=new rt(0,0),oBi=new rt(1,1);function HH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(HH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._cellAlpha)&&Nt.isConstant(this._lineCount)&&Nt.isConstant(this._lineThickness)&&Nt.isConstant(this._lineOffset)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),cellAlpha:Ii("cellAlpha"),lineCount:Ii("lineCount"),lineThickness:Ii("lineThickness"),lineOffset:Ii("lineOffset")});HH.prototype.getType=function(o){return"Grid"};var aBi=new $t;HH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(aBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,tBi,f.color),f.cellAlpha=Nt.getValueOrDefault(this._cellAlpha,o,iBi),f.lineCount=Nt.getValueOrClonedDefault(this._lineCount,o,rBi,f.lineCount),f.lineThickness=Nt.getValueOrClonedDefault(this._lineThickness,o,oBi,f.lineThickness),f.lineOffset=Nt.getValueOrClonedDefault(this._lineOffset,o,nBi,f.lineOffset),f};HH.prototype.equals=function(o){return this===o||o instanceof HH&&Nt.equals(this._color,o._color)&&Nt.equals(this._cellAlpha,o._cellAlpha)&&Nt.equals(this._lineCount,o._lineCount)&&Nt.equals(this._lineThickness,o._lineThickness)&&Nt.equals(this._lineOffset,o._lineOffset)};var ole=HH,sBi=Xe.WHITE,lBi=Xe.TRANSPARENT,uBi=16,cBi=255;function zH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(zH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._gapColor)&&Nt.isConstant(this._dashLength)&&Nt.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),gapColor:Ii("gapColor"),dashLength:Ii("dashLength"),dashPattern:Ii("dashPattern")});zH.prototype.getType=function(o){return"PolylineDash"};var hBi=new $t;zH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(hBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,sBi,f.color),f.gapColor=Nt.getValueOrClonedDefault(this._gapColor,o,lBi,f.gapColor),f.dashLength=Nt.getValueOrDefault(this._dashLength,o,uBi,f.dashLength),f.dashPattern=Nt.getValueOrDefault(this._dashPattern,o,cBi,f.dashPattern),f};zH.prototype.equals=function(o){return this===o||o instanceof zH&&Nt.equals(this._color,o._color)&&Nt.equals(this._gapColor,o._gapColor)&&Nt.equals(this._dashLength,o._dashLength)&&Nt.equals(this._dashPattern,o._dashPattern)};var Ml=zH,dBi=Xe.WHITE,pBi=.25,fBi=1;function YH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(YH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._glow)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),glowPower:Ii("glowPower"),taperPower:Ii("taperPower")});YH.prototype.getType=function(o){return"PolylineGlow"};var mBi=new $t;YH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(mBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,dBi,f.color),f.glowPower=Nt.getValueOrDefault(this._glowPower,o,pBi,f.glowPower),f.taperPower=Nt.getValueOrDefault(this._taperPower,o,fBi,f.taperPower),f};YH.prototype.equals=function(o){return this===o||o instanceof YH&&Nt.equals(this._color,o._color)&&Nt.equals(this._glowPower,o._glowPower)&&Nt.equals(this._taperPower,o._taperPower)};var ale=YH,xBi=Xe.WHITE,gBi=Xe.BLACK,yBi=1;function KH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(KH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._outlineColor)&&Nt.isConstant(this._outlineWidth)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),outlineColor:Ii("outlineColor"),outlineWidth:Ii("outlineWidth")});KH.prototype.getType=function(o){return"PolylineOutline"};var _Bi=new $t;KH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(_Bi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,xBi,f.color),f.outlineColor=Nt.getValueOrClonedDefault(this._outlineColor,o,gBi,f.outlineColor),f.outlineWidth=Nt.getValueOrDefault(this._outlineWidth,o,yBi),f};KH.prototype.equals=function(o){return this===o||o instanceof KH&&Nt.equals(this._color,o._color)&&Nt.equals(this._outlineColor,o._outlineColor)&&Nt.equals(this._outlineWidth,o._outlineWidth)};var jM=KH;function mF(o){this._value=void 0,this._definitionChanged=new Tr,this._eventHelper=new bv,this.setValue(o)}Object.defineProperties(mF.prototype,{isConstant:{get:function(){let o=this._value;if(!F(o))return!0;let f=o.length;for(let m=0;m<f;m++)if(!Nt.isConstant(o[m]))return!1;return!0}},definitionChanged:{get:function(){return this._definitionChanged}}});var vBi=new $t;mF.prototype.getValue=function(o,f){F(o)||(o=$t.now(vBi));let m=this._value;if(!F(m))return;let x=m.length;F(f)||(f=new Array(x));let y=0,v=0;for(;y<x;){let C=this._value[y].getValue(o,f[y]);F(C)&&(f[v]=C,v++),y++}return f.length=v,f};mF.prototype.setValue=function(o){let f=this._eventHelper;if(f.removeAll(),F(o)){this._value=o.slice();let m=o.length;for(let x=0;x<m;x++){let y=o[x];F(y)&&f.add(y.definitionChanged,mF.prototype._raiseDefinitionChanged,this)}}else this._value=void 0;this._definitionChanged.raiseEvent(this)};mF.prototype.equals=function(o){return this===o||o instanceof mF&&Nt.arrayEquals(this._value,o._value)};mF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var dde=mF,bBi={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){F(x)||(x=[]),f=f??0,m=m??o.length;let y;for(let v=0,C=m-f+1;v<C;v++){let T=o[f+v];v===0||Math.abs(y-T)<Math.PI?x[v]=T:x[v]=T-be.TWO_PI,y=T}},unpackInterpolationResult:function(o,f,m,x,y){return y=o[0],y<0?y+be.TWO_PI:y}},FI=bBi,CBi={HORIZONTAL:0,VERTICAL:1},xF=Object.freeze(CBi),TBi=xF.HORIZONTAL,SBi=Xe.WHITE,wBi=Xe.BLACK,EBi=0,LBi=1;function JH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(JH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._orientation)&&Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._offset)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},orientation:Ii("orientation"),evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),offset:Ii("offset"),repeat:Ii("repeat")});JH.prototype.getType=function(o){return"Stripe"};var PBi=new $t;JH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(PBi)),F(f)||(f={}),f.horizontal=Nt.getValueOrDefault(this._orientation,o,TBi)===xF.HORIZONTAL,f.evenColor=Nt.getValueOrClonedDefault(this._evenColor,o,SBi,f.evenColor),f.oddColor=Nt.getValueOrClonedDefault(this._oddColor,o,wBi,f.oddColor),f.offset=Nt.getValueOrDefault(this._offset,o,EBi),f.repeat=Nt.getValueOrDefault(this._repeat,o,LBi),f};JH.prototype.equals=function(o){return this===o||o instanceof JH&&Nt.equals(this._orientation,o._orientation)&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._offset,o._offset)&&Nt.equals(this._repeat,o._repeat)};var sle=JH;function A6(o,f){this._velocityVectorProperty=new Iq(o,!0),this._subscription=void 0,this._ellipsoid=void 0,this._definitionChanged=new Tr,this.ellipsoid=f??yi.default;let m=this;this._velocityVectorProperty.definitionChanged.addEventListener(function(){m._definitionChanged.raiseEvent(m)})}Object.defineProperties(A6.prototype,{isConstant:{get:function(){return Nt.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 Y6e=new Z,IBi=new Z,K6e=new Ut,RBi=new $t;A6.prototype.getValue=function(o,f){F(o)||(o=$t.now(RBi));let m=this._velocityVectorProperty._getValue(o,IBi,Y6e);if(F(m))return _r.rotationMatrixFromPositionVelocity(Y6e,m,this._ellipsoid,K6e),fr.fromRotationMatrix(K6e,f)};A6.prototype.equals=function(o){return this===o||o instanceof A6&&Nt.equals(this._velocityVectorProperty,o._velocityVectorProperty)&&(this._ellipsoid===o._ellipsoid||this._ellipsoid.equals(o._ellipsoid))};var qFe=A6,mM={COMPLETE:0,BELOW_ELLIPSOID_HORIZON:1,ABOVE_ELLIPSOID_HORIZON:2};mM.validate=function(o){return o===mM.COMPLETE||o===mM.BELOW_ELLIPSOID_HORIZON||o===mM.ABOVE_ELLIPSOID_HORIZON};mM.toString=function(o){switch(o){case mM.COMPLETE:return"COMPLETE";case mM.BELOW_ELLIPSOID_HORIZON:return"BELOW_ELLIPSOID_HORIZON";case mM.ABOVE_ELLIPSOID_HORIZON:return"ABOVE_ELLIPSOID_HORIZON";default:throw new wt("SensorVolumePortionToDisplay value is not valid and cannot be converted to a String.")}};var lle=mM;function gF(){}gF.packedLength=Z.packedLength;gF.unpack=Z.unpack;gF.pack=Z.pack;var KTe;function M6(o,f){return f[0]==="#"&&(f=KTe+f),V7.fromString(o,f)}function J6e(o,f,m){if(F(m.reference))return M6(f,m.reference);if(F(m.velocityReference)){let x=M6(f,m.velocityReference);switch(o){case Z:case gF:return new Iq(x,o===gF);case fr:return new qFe(x)}}throw new Oi(`${JSON.stringify(m)} is not valid CZML.`)}function ABi(o,f){return new Fr(function(m,x){return f(o.getValue(m,x))},o.isConstant)}var Lc=new Z,J2=new QFe,V_=new Gt,WO=new js,hoe=new fr;function MBi(o){let f=o.rgbaf;if(F(f))return f;let m=o.rgba;if(!F(m))return;let x=m.length;if(x===Xe.packedLength)return[Xe.byteToFloat(m[0]),Xe.byteToFloat(m[1]),Xe.byteToFloat(m[2]),Xe.byteToFloat(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=Xe.byteToFloat(m[y+1]),f[y+2]=Xe.byteToFloat(m[y+2]),f[y+3]=Xe.byteToFloat(m[y+3]),f[y+4]=Xe.byteToFloat(m[y+4]);return f}function j6e(o,f){let m=o.uri??o;return F(f)?f.getDerivedResource({url:m}):Mr.createIfNeeded(m)}function VBi(o){let f=o.wsen;if(F(f))return f;let m=o.wsenDegrees;if(!F(m))return;let x=m.length;if(x===vi.packedLength)return[be.toRadians(m[0]),be.toRadians(m[1]),be.toRadians(m[2]),be.toRadians(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=be.toRadians(m[y+1]),f[y+2]=be.toRadians(m[y+2]),f[y+3]=be.toRadians(m[y+3]),f[y+4]=be.toRadians(m[y+4]);return f}function GBi(o){let f=o.length;if(J2.magnitude=1,f===2)return J2.clock=o[0],J2.cone=o[1],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f/3*4);for(let x=0,y=0;x<f;x+=3,y+=4)m[y]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],Z.fromSpherical(J2,Lc),m[y+1]=Lc.x,m[y+2]=Lc.y,m[y+3]=Lc.z;return m}function FBi(o){let f=o.length;if(f===3)return J2.clock=o[0],J2.cone=o[1],J2.magnitude=o[2],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],J2.magnitude=o[x+3],Z.fromSpherical(J2,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function DBi(o){let f=o.length;if(f===3)return V_.longitude=o[0],V_.latitude=o[1],V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=o[x+1],V_.latitude=o[x+2],V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function NBi(o){let f=o.length;if(f===3)return V_.longitude=be.toRadians(o[0]),V_.latitude=be.toRadians(o[1]),V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=be.toRadians(o[x+1]),V_.latitude=be.toRadians(o[x+2]),V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function $Fe(o){let f=o.cartesian;if(F(f))return f;let m=o.cartesianVelocity;if(F(m))return m;let x=o.unitCartesian;if(F(x))return x;let y=o.unitSpherical;if(F(y))return GBi(y);let v=o.spherical;if(F(v))return FBi(v);let C=o.cartographicRadians;if(F(C))return DBi(C);let T=o.cartographicDegrees;if(F(T))return NBi(T);throw new Oi(`${JSON.stringify(o)} is not a valid CZML interval.`)}function Q6e(o,f){Z.unpack(o,f,Lc),Z.normalize(Lc,Lc),Z.pack(Lc,o,f)}function WBi(o){let f=$Fe(o);if(f.length===3)return Q6e(f,0),f;for(let m=1;m<f.length;m+=4)Q6e(f,m);return f}function q6e(o,f){fr.unpack(o,f,hoe),fr.normalize(hoe,hoe),fr.pack(hoe,o,f)}function ZBi(o){let f=o.unitQuaternion;if(F(f)){if(f.length===4)return q6e(f,0),f;for(let m=1;m<f.length;m+=5)q6e(f,m)}return f}function $6e(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")?Er:o.hasOwnProperty("cartesian2")?rt:o.hasOwnProperty("cartesian")||o.hasOwnProperty("spherical")||o.hasOwnProperty("cartographicRadians")||o.hasOwnProperty("cartographicDegrees")?Z:o.hasOwnProperty("unitCartesian")||o.hasOwnProperty("unitSpherical")?gF:o.hasOwnProperty("rgba")||o.hasOwnProperty("rgbaf")?Xe:o.hasOwnProperty("arcType")?qa:o.hasOwnProperty("classificationType")?dc:o.hasOwnProperty("colorBlendMode")?II:o.hasOwnProperty("cornerType")?ad:o.hasOwnProperty("heightReference")?Mn:o.hasOwnProperty("horizontalOrigin")?ec:o.hasOwnProperty("date")?$t:o.hasOwnProperty("labelStyle")?f0:o.hasOwnProperty("number")?Number:o.hasOwnProperty("nearFarScalar")?ea:o.hasOwnProperty("distanceDisplayCondition")?So:o.hasOwnProperty("object")||o.hasOwnProperty("value")?Object:o.hasOwnProperty("unitQuaternion")?fr:o.hasOwnProperty("shadowMode")?cl:o.hasOwnProperty("string")?String:o.hasOwnProperty("stripeOrientation")?xF:o.hasOwnProperty("wsen")||o.hasOwnProperty("wsenDegrees")?vi:o.hasOwnProperty("uri")?hde.default:o.hasOwnProperty("verticalOrigin")?jn:Object}function OBi(o,f,m){switch(o){case qa:return qa[f.arcType??f];case Array:return f.array;case Boolean:return f.boolean??f;case Er:return f.boundingRectangle;case rt:return f.cartesian2;case Z:return $Fe(f);case gF:return WBi(f);case Xe:return MBi(f);case dc:return dc[f.classificationType??f];case II:return II[f.colorBlendMode??f];case ad:return ad[f.cornerType??f];case Mn:return Mn[f.heightReference??f];case ec:return ec[f.horizontalOrigin??f];case Image:return j6e(f,m);case $t:return $t.fromIso8601(f.date??f);case f0:return f0[f.labelStyle??f];case Number:return f.number??f;case ea:return f.nearFarScalar;case So:return f.distanceDisplayCondition;case Object:return f.object??f.value??f;case fr:return ZBi(f);case FI:return f.number??f;case lle:return lle[f.portionToDisplay??f];case cl:return cl[f.shadowMode??f.shadows??f];case String:return f.string??f;case xF:return xF[f.stripeOrientation??f];case vi:return VBi(f);case hde.default:return j6e(f,m);case jn:return jn[f.verticalOrigin??f];default:throw new Oi(`Unknown CzmlDataSource interval type: ${o}`)}}var XBi={HERMITE:KFe,LAGRANGE:jFe,LINEAR:Hue};function ule(o,f){let m=o.interpolationAlgorithm,x=o.interpolationDegree;(F(m)||F(x))&&f.setInterpolationOptions({interpolationAlgorithm:XBi[m],interpolationDegree:x});let y=o.forwardExtrapolationType;F(y)&&(f.forwardExtrapolationType=nI[y]);let v=o.forwardExtrapolationDuration;F(v)&&(f.forwardExtrapolationDuration=v);let C=o.backwardExtrapolationType;F(C)&&(f.backwardExtrapolationType=nI[C]);let T=o.backwardExtrapolationDuration;F(T)&&(f.backwardExtrapolationDuration=T)}var e7e={iso8601:void 0};function X0(o){if(F(o))return e7e.iso8601=o,js.fromIso8601(e7e)}function eDe(o){let f=wn.MAXIMUM_INTERVAL.clone();return f.data=o,f}function t7e(o){let f=new nS;return f.intervals.addInterval(eDe(o)),f}function i7e(o){let f=new i1(o.referenceFrame);return f.intervals.addInterval(eDe(o)),f}function cle(o,f,m,x,y,v,C){let T=X0(x.interval);F(y)&&(F(T)?T=js.intersect(T,y,WO):T=y);let S,w,E,L=!F(x.reference)&&!F(x.velocityReference),I=F(T)&&!T.equals(wn.MAXIMUM_INTERVAL);if(x.delete===!0){if(!I){f[m]=void 0;return}return umt(f[m],T)}let R=!1;if(L){if(w=OBi(o,x,v),!F(w))return;S=o.packedLength??1,E=w.length??1,R=!F(x.array)&&typeof w!="string"&&E>S&&o!==Object}let P=typeof o.unpack=="function"&&o!==FI;if(!R&&!I){L?f[m]=new Qc(P?o.unpack(w,0):w):f[m]=J6e(o,C,x);return}let A=f[m],M,V=x.epoch;if(F(V)&&(M=$t.fromIso8601(V)),R&&!I){A instanceof hM||(f[m]=A=new hM(o)),A.addSamplesPackedArray(w,M),ule(x,A);return}let G;if(!R&&I){T=T.clone(),L?T.data=P?o.unpack(w,0):w:T.data=J6e(o,C,x),F(A)||(f[m]=A=L?new fH:new nS),L&&A instanceof fH?A.intervals.addInterval(T):A instanceof nS?(L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T)):(f[m]=A=t7e(A),L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T));return}F(A)||(f[m]=A=new nS),A instanceof nS||(f[m]=A=t7e(A));let D=A.intervals;G=D.findInterval(T),(!F(G)||!(G.data instanceof hM))&&(G=T.clone(),G.data=new hM(o),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),ule(x,G.data)}function umt(o,f){if(o instanceof hM){o.removeSamples(f);return}else if(o instanceof fH){o.intervals.removeInterval(f);return}else if(o instanceof nS){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,WO);y.isEmpty||umt(y.data,f)}m.removeInterval(f);return}}function Bi(o,f,m,x,y,v,C){if(F(x))if(Array.isArray(x))for(let T=0,S=x.length;T<S;++T)cle(o,f,m,x[T],y,v,C);else cle(o,f,m,x,y,v,C)}function r7e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,WO):C=x);let T=F(m.cartesianVelocity)?1:0,S=Z.packedLength*(T+1),w,E,L=!F(m.reference),I=F(C)&&!C.equals(wn.MAXIMUM_INTERVAL);if(m.delete===!0){if(!I){o[f]=void 0;return}return cmt(o[f],C)}let R,P=!1;if(L&&(F(m.referenceFrame)&&(R=fp[m.referenceFrame]),R=R??fp.FIXED,w=$Fe(m),E=w.length??1,P=E>S),!P&&!I){L?o[f]=new hI(Z.unpack(w),R):o[f]=M6(v,m.reference);return}let A=o[f],M,V=m.epoch;if(F(V)&&(M=$t.fromIso8601(V)),P&&!I){(!(A instanceof oS)||F(R)&&A.referenceFrame!==R)&&(o[f]=A=new oS(R,T)),A.addSamplesPackedArray(w,M),ule(m,A);return}let G;if(!P&&I){C=C.clone(),L?C.data=Z.unpack(w):C.data=M6(v,m.reference),F(A)||(L?A=new VH(R):A=new i1(R),o[f]=A),L&&A instanceof VH&&F(R)&&A.referenceFrame===R?A.intervals.addInterval(C):A instanceof i1?(L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C)):(o[f]=A=i7e(A),L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C));return}F(A)?A instanceof i1||(o[f]=A=i7e(A)):o[f]=A=new i1(R);let D=A.intervals;G=D.findInterval(C),(!F(G)||!(G.data instanceof oS)||F(R)&&G.data.referenceFrame!==R)&&(G=C.clone(),G.data=new oS(R,T),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),ule(m,G.data)}function cmt(o,f){if(o instanceof oS){o.removeSamples(f);return}else if(o instanceof VH){o.intervals.removeInterval(f);return}else if(o instanceof i1){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,WO);y.isEmpty||cmt(y.data,f)}m.removeInterval(f);return}}function hmt(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)r7e(o,f,m[C],x,y,v);else r7e(o,f,m,x,y,v)}function n7e(o,f,m,x){F(m.references)?pde(o,f,m.references,m.interval,x,dde,nS):(F(m.cartesian2)?m.array=rt.unpackArray(m.cartesian2):F(m.cartesian)&&(m.array=rt.unpackArray(m.cartesian)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function o7e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,WO):C=x);let T=o[f],S,w;if(F(C)){T instanceof nle||(T=new nle,o[f]=T);let L=T.intervals;w=L.findInterval({start:C.start,stop:C.stop}),F(w)?S=w.data:(w=C.clone(),L.addInterval(w))}else S=T;let E;F(m.solidColor)?(S instanceof Ba||(S=new Ba),E=m.solidColor,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.grid)?(S instanceof ole||(S=new ole),E=m.grid,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"cellAlpha",E.cellAlpha,void 0,y,v),Bi(rt,S,"lineCount",E.lineCount,void 0,y,v),Bi(rt,S,"lineThickness",E.lineThickness,void 0,y,v),Bi(rt,S,"lineOffset",E.lineOffset,void 0,y,v)):F(m.image)?(S instanceof O0||(S=new O0),E=m.image,Bi(Image,S,"image",E.image,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v),Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Boolean,S,"transparent",E.transparent,void 0,y,v)):F(m.stripe)?(S instanceof sle||(S=new sle),E=m.stripe,Bi(xF,S,"orientation",E.orientation,void 0,y,v),Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(Number,S,"offset",E.offset,void 0,y,v),Bi(Number,S,"repeat",E.repeat,void 0,y,v)):F(m.polylineOutline)?(S instanceof jM||(S=new jM),E=m.polylineOutline,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Xe,S,"outlineColor",E.outlineColor,void 0,y,v),Bi(Number,S,"outlineWidth",E.outlineWidth,void 0,y,v)):F(m.polylineGlow)?(S instanceof ale||(S=new ale),E=m.polylineGlow,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"glowPower",E.glowPower,void 0,y,v),Bi(Number,S,"taperPower",E.taperPower,void 0,y,v)):F(m.polylineArrow)?(S instanceof Mf||(S=new Mf),E=m.polylineArrow,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.polylineDash)?(S instanceof Ml||(S=new Ml),E=m.polylineDash,Bi(Xe,S,"color",E.color,void 0,void 0,v),Bi(Xe,S,"gapColor",E.gapColor,void 0,void 0,v),Bi(Number,S,"dashLength",E.dashLength,void 0,y,v),Bi(Number,S,"dashPattern",E.dashPattern,void 0,y,v)):F(m.checkerboard)&&(S instanceof ile||(S=new ile),E=m.checkerboard,Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v)),F(w)?w.data=S:o[f]=S}function S1(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)o7e(o,f,m[C],x,y,v);else o7e(o,f,m,x,y,v)}function kBi(o,f,m,x){let y=f.name;F(y)&&(o.name=f.name)}function UBi(o,f,m,x){let y=f.description;F(y)&&Bi(String,o,"description",y,void 0,x,m)}function BBi(o,f,m,x){let y=f.position;F(y)&&hmt(o,"position",y,void 0,x,m)}function HBi(o,f,m,x){let y=f.viewFrom;F(y)&&Bi(Z,o,"viewFrom",y,void 0,x,m)}function zBi(o,f,m,x){let y=f.orientation;F(y)&&Bi(fr,o,"orientation",y,void 0,x,m)}function YBi(o,f,m,x){let y=f.properties;if(F(y)){F(o.properties)||(o.properties=new qE);for(let v in y)if(y.hasOwnProperty(v)){o.properties.hasProperty(v)||o.properties.addProperty(v);let C=y[v];if(Array.isArray(C))for(let T=0,S=C.length;T<S;++T)cle($6e(C[T]),o.properties,v,C[T],void 0,x,m);else cle($6e(C),o.properties,v,C,void 0,x,m)}}}function pde(o,f,m,x,y,v,C){let T=m.map(function(S){return M6(y,S)});if(F(x)){x=X0(x);let S=o[f];if(!(S instanceof C)){let w=new C;w.intervals.addInterval(eDe(S)),o[f]=S=w}x.data=new v(T),S.intervals.addInterval(x)}else o[f]=new v(T)}function a7e(o,f,m,x){let y=m.references;F(y)?pde(o,f,y,m.interval,x,dde,nS):Bi(Array,o,f,m,void 0,void 0,x)}function s7e(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)a7e(o,f,m[y],x);else a7e(o,f,m,x)}function l7e(o,f,m,x){let y=m.references;F(y)?pde(o,f,y,m.interval,x,pH,i1):(F(m.cartesian)?m.array=Z.unpackArray(m.cartesian):F(m.cartographicRadians)?m.array=Z.fromRadiansArrayHeights(m.cartographicRadians,yi.default):F(m.cartographicDegrees)&&(m.array=Z.fromDegreesArrayHeights(m.cartographicDegrees,yi.default)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function r$(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)l7e(o,f,m[y],x);else l7e(o,f,m,x)}function KBi(o){return Z.unpackArray(o)}function JBi(o){return Z.fromRadiansArrayHeights(o,yi.default)}function jBi(o){return Z.fromDegreesArrayHeights(o,yi.default)}function u7e(o,f,m,x){let y=m.references;if(F(y)){let v=y.map(function(C){let T={};return pde(T,"positions",C,m.interval,x,pH,i1),T.positions});o[f]=new pH(v)}else F(m.cartesian)?m.array=m.cartesian.map(KBi):F(m.cartographicRadians)?m.array=m.cartographicRadians.map(JBi):F(m.cartographicDegrees)&&(m.array=m.cartographicDegrees.map(jBi)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x)}function QBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)u7e(o,f,m[y],x);else u7e(o,f,m,x)}function qBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;y++)n7e(o,f,m[y],x);else n7e(o,f,m,x)}function $Bi(o,f,m,x){let y=f.availability;if(!F(y))return;let v;if(Array.isArray(y))for(let C=0,T=y.length;C<T;++C)F(v)||(v=new k_),v.addInterval(X0(y[C]));else v=new k_,v.addInterval(X0(y));o.availability=v}function eHi(o,f,m,x,y){F(f)&&Bi(gF,o,"alignedAxis",f,m,x,y)}function tHi(o,f,m,x){let y=f.billboard;if(!F(y))return;let v=X0(y.interval),C=o.billboard;F(C)||(o.billboard=C=new sV),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Image,C,"image",y.image,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),eHi(C,y.alignedAxis,v,x,m),Bi(Boolean,C,"sizeInMeters",y.sizeInMeters,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(Er,C,"imageSubRegion",y.imageSubRegion,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function iHi(o,f,m,x){let y=f.box;if(!F(y))return;let v=X0(y.interval),C=o.box;F(C)||(o.box=C=new wue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"dimensions",y.dimensions,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function rHi(o,f,m,x){let y=f.corridor;if(!F(y))return;let v=X0(y.interval),C=o.corridor;F(C)||(o.corridor=C=new Eue),Bi(Boolean,C,"show",y.show,v,x,m),r$(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function nHi(o,f,m,x){let y=f.cylinder;if(!F(y))return;let v=X0(y.interval),C=o.cylinder;F(C)||(o.cylinder=C=new Lue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"length",y.length,v,x,m),Bi(Number,C,"topRadius",y.topRadius,v,x,m),Bi(Number,C,"bottomRadius",y.bottomRadius,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(Number,C,"slices",y.slices,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function oHi(o,f){let m=o.version;if(F(m)&&typeof m=="string"){let v=m.split(".");if(v.length===2){if(v[0]!=="1")throw new Oi("Cesium only supports CZML version 1.");f._version=m}}if(!F(f._version))throw new Oi("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;F(o.name)&&(x.name=o.name);let y=o.clock;if(F(y)){let v=x.clock;F(v)?(v.interval=y.interval??v.interval,v.currentTime=y.currentTime??v.currentTime,v.range=y.range??v.range,v.step=y.step??v.step,v.multiplier=y.multiplier??v.multiplier):x.clock={interval:y.interval,currentTime:y.currentTime,range:y.range,step:y.step,multiplier:y.multiplier}}}function aHi(o,f,m,x){let y=f.ellipse;if(!F(y))return;let v=X0(y.interval),C=o.ellipse;F(C)||(o.ellipse=C=new Pue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"semiMajorAxis",y.semiMajorAxis,v,x,m),Bi(Number,C,"semiMinorAxis",y.semiMinorAxis,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function sHi(o,f,m,x){let y=f.ellipsoid;if(!F(y))return;let v=X0(y.interval),C=o.ellipsoid;F(C)||(o.ellipsoid=C=new Lz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"radii",y.radii,v,x,m),Bi(Z,C,"innerRadii",y.innerRadii,v,x,m),Bi(Number,C,"minimumClock",y.minimumClock,v,x,m),Bi(Number,C,"maximumClock",y.maximumClock,v,x,m),Bi(Number,C,"minimumCone",y.minimumCone,v,x,m),Bi(Number,C,"maximumCone",y.maximumCone,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"stackPartitions",y.stackPartitions,v,x,m),Bi(Number,C,"slicePartitions",y.slicePartitions,v,x,m),Bi(Number,C,"subdivisions",y.subdivisions,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function lHi(o,f,m,x){let y=f.label;if(!F(y))return;let v=X0(y.interval),C=o.label;F(C)||(o.label=C=new Pz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(String,C,"text",y.text,v,x,m),Bi(String,C,"font",y.font,v,x,m),Bi(f0,C,"style",y.style,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Boolean,C,"showBackground",y.showBackground,v,x,m),Bi(Xe,C,"backgroundColor",y.backgroundColor,v,x,m),Bi(rt,C,"backgroundPadding",y.backgroundPadding,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"fillColor",y.fillColor,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function uHi(o,f,m,x){let y=f.model;if(!F(y))return;let v=X0(y.interval),C=o.model;F(C)||(o.model=C=new C7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(hde.default,C,"uri",y.gltf,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Number,C,"minimumPixelSize",y.minimumPixelSize,v,x,m),Bi(Number,C,"maximumScale",y.maximumScale,v,x,m),Bi(Boolean,C,"incrementallyLoadTextures",y.incrementallyLoadTextures,v,x,m),Bi(Boolean,C,"runAnimations",y.runAnimations,v,x,m),Bi(Boolean,C,"clampAnimations",y.clampAnimations,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"silhouetteColor",y.silhouetteColor,v,x,m),Bi(Number,C,"silhouetteSize",y.silhouetteSize,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(II,C,"colorBlendMode",y.colorBlendMode,v,x,m),Bi(Number,C,"colorBlendAmount",y.colorBlendAmount,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m);let T,S,w=y.nodeTransformations;if(F(w))if(Array.isArray(w))for(T=0,S=w.length;T<S;++T)c7e(C,w[T],v,x,m);else c7e(C,w,v,x,m);let E=y.articulations;if(F(E))if(Array.isArray(E))for(T=0,S=E.length;T<S;++T)h7e(C,E[T],v,x,m);else h7e(C,E,v,x,m)}function c7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,WO):v=m);let C=o.nodeTransformations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];if(!F(L))continue;F(C)||(o.nodeTransformations=C=new qE),C.hasProperty(E)||C.addProperty(E);let I=C[E];F(I)||(C[E]=I=new Iue),Bi(Z,I,"translation",L.translation,v,x,y),Bi(fr,I,"rotation",L.rotation,v,x,y),Bi(Z,I,"scale",L.scale,v,x,y)}}function h7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,WO):v=m);let C=o.articulations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];F(L)&&(F(C)||(o.articulations=C=new qE),C.hasProperty(E)||C.addProperty(E),Bi(Number,C,E,L,v,x,y))}}function cHi(o,f,m,x){let y=f.path;if(!F(y))return;let v=X0(y.interval),C=o.path;F(C)||(o.path=C=new T7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"leadTime",y.leadTime,v,x,m),Bi(Number,C,"trailTime",y.trailTime,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"resolution",y.resolution,v,x,m),S1(C,"material",y.material,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function hHi(o,f,m,x){let y=f.point;if(!F(y))return;let v=X0(y.interval),C=o.point;F(C)||(o.point=C=new Aue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"pixelSize",y.pixelSize,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function V6(o){this.polygon=o,this._definitionChanged=new Tr}Object.defineProperties(V6.prototype,{isConstant:{get:function(){let o=this.polygon._positions,f=this.polygon._holes;return(!F(o)||o.isConstant)&&(!F(f)||f.isConstant)}},definitionChanged:{get:function(){return this._definitionChanged}}});V6.prototype.getValue=function(o,f){let m;F(this.polygon._positions)&&(m=this.polygon._positions.getValue(o));let x;return F(this.polygon._holes)&&(x=this.polygon._holes.getValue(o),F(x)&&(x=x.map(function(y){return new Zn(y)}))),F(f)?(f.positions=m,f.holes=x,f):new Zn(m,x)};V6.prototype.equals=function(o){return this===o||o instanceof V6&&Nt.equals(this.polygon._positions,o.polygon._positions)&&Nt.equals(this.polygon._holes,o.polygon._holes)};function dHi(o,f,m,x){let y=f.polygon;if(!F(y))return;let v=X0(y.interval),C=o.polygon;F(C)||(o.polygon=C=new hl),Bi(Boolean,C,"show",y.show,v,x,m),r$(C,"_positions",y.positions,m),QBi(C,"_holes",y.holes,m),(F(C._positions)||F(C._holes))&&(C.hierarchy=new V6(C)),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Boolean,C,"perPositionHeight",y.perPositionHeight,v,x,m),Bi(Boolean,C,"closeTop",y.closeTop,v,x,m),Bi(Boolean,C,"closeBottom",y.closeBottom,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function pHi(o){return o?qa.GEODESIC:qa.NONE}function fHi(o,f,m,x){let y=f.polyline;if(!F(y))return;let v=X0(y.interval),C=o.polyline;if(F(C)||(o.polyline=C=new bI),Bi(Boolean,C,"show",y.show,v,x,m),r$(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),S1(C,"material",y.material,v,x,m),S1(C,"depthFailMaterial",y.depthFailMaterial,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(Boolean,C,"clampToGround",y.clampToGround,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m),F(y.followSurface)&&!F(y.arcType)){let T={};Bi(Boolean,T,"followSurface",y.followSurface,v,x,m),C.arcType=ABi(T.followSurface,pHi)}}function mHi(o,f,m,x){let y=f.polylineVolume;if(!F(y))return;let v=X0(y.interval),C=o.polylineVolume;F(C)||(o.polylineVolume=C=new Mue),r$(C,"positions",y.positions,m),qBi(C,"shape",y.shape,m),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function xHi(o,f,m,x){let y=f.rectangle;if(!F(y))return;let v=X0(y.interval),C=o.rectangle;F(C)||(o.rectangle=C=new Iz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(vi,C,"coordinates",y.coordinates,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(dc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function gHi(o,f,m,x){let y=f.tileset;if(!F(y))return;let v=X0(y.interval),C=o.tileset;F(C)||(o.tileset=C=new Rue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(hde.default,C,"uri",y.uri,v,x,m),Bi(Number,C,"maximumScreenSpaceError",y.maximumScreenSpaceError,v,x,m)}function yHi(o,f,m,x){let y=f.wall;if(!F(y))return;let v=X0(y.interval),C=o.wall;F(C)||(o.wall=C=new S7),Bi(Boolean,C,"show",y.show,v,x,m),r$(C,"positions",y.positions,m),s7e(C,"minimumHeights",y.minimumHeights,m),s7e(C,"maximumHeights",y.maximumHeights,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function d7e(o,f,m,x,y){let v=o.id;if(F(v)||(v=du()),KTe=v,!F(y._version)&&v!=="document")throw new Oi("The first CZML packet is required to be the document object.");if(o.delete===!0)f.removeById(v);else if(v==="document")oHi(o,y);else{let C=f.getOrCreateEntity(v),T=o.parent;F(T)&&(C.parent=f.getOrCreateEntity(T));for(let S=m.length-1;S>-1;S--)m[S](C,o,f,x)}KTe=void 0}function _Hi(o){let f,m=o._documentPacket.clock;if(!F(m)){if(!F(o._clock)){let y=o._entityCollection.computeAvailability();if(!y.start.equals(wn.MINIMUM_VALUE)){let v=y.start,C=y.stop,T=$t.secondsDifference(C,v),S=Math.round(T/120);return f=new n9,f.startTime=$t.clone(v),f.stopTime=$t.clone(C),f.clockRange=Gx.LOOP_STOP,f.multiplier=S,f.currentTime=$t.clone(v),f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,o._clock=f,!0}}return!1}F(o._clock)?f=o._clock.clone():(f=new n9,f.startTime=wn.MINIMUM_VALUE.clone(),f.stopTime=wn.MAXIMUM_VALUE.clone(),f.currentTime=wn.MINIMUM_VALUE.clone(),f.clockRange=Gx.LOOP_STOP,f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,f.multiplier=1);let x=X0(m.interval);return F(x)&&(f.startTime=x.start,f.stopTime=x.stop),F(m.currentTime)&&(f.currentTime=$t.fromIso8601(m.currentTime)),F(m.range)&&(f.clockRange=Gx[m.range]??Gx.LOOP_STOP),F(m.step)&&(f.clockStep=kd[m.step]??kd.SYSTEM_CLOCK_MULTIPLIER),F(m.multiplier)&&(f.multiplier=m.multiplier),f.equals(o._clock)?!1:(o._clock=f.clone(o._clock),!0)}function dmt(o,f,m,x){m=m??si.EMPTY_OBJECT;let y=f,v=m.sourceUri,C=m.credit;if(typeof C=="string"&&(C=new Oa(C)),o._credit=C,typeof f=="string"||f instanceof Mr){f=Mr.createIfNeeded(f),y=f.fetchJson(),v=v??f.clone();let T=o._resourceCredits,S=f.credits;if(F(S)){let w=S.length;for(let E=0;E<w;E++)T.push(S[E])}}return v=Mr.createIfNeeded(v),Sy.setLoading(o,!0),Promise.resolve(y).then(function(T){return vHi(o,T,v,x)}).catch(function(T){return Sy.setLoading(o,!1),o._error.raiseEvent(o,T),console.log(T),Promise.reject(T)})}function vHi(o,f,m,x){Sy.setLoading(o,!0);let y=o._entityCollection;x&&(o._version=void 0,o._documentPacket=new pmt,y.removeAll()),lm._processCzml(f,y,m,void 0,o);let v=_Hi(o),C=o._documentPacket;return F(C.name)&&o._name!==C.name?(o._name=C.name,v=!0):!F(o._name)&&F(m)&&(o._name=E7(m.getUrlComponent()),v=!0),Sy.setLoading(o,!1),v&&o._changed.raiseEvent(o),o}function pmt(){this.name=void 0,this.clock=void 0}function lm(o){this._name=o,this._changed=new Tr,this._error=new Tr,this._isLoading=!1,this._loading=new Tr,this._clock=void 0,this._documentPacket=new pmt,this._version=void 0,this._entityCollection=new US(this),this._entityCluster=new AF,this._credit=void 0,this._resourceCredits=[]}lm.load=function(o,f){return new lm().load(o,f)};Object.defineProperties(lm.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}}});lm.updaters=[tHi,iHi,rHi,nHi,aHi,sHi,lHi,uHi,kBi,UBi,cHi,hHi,dHi,fHi,mHi,YBi,xHi,BBi,gHi,HBi,yHi,zBi,$Bi];lm.registerUpdater=function(o){lm.updaters.includes(o)||lm.updaters.push(o)};lm.unregisterUpdater=function(o){if(lm.updaters.includes(o)){let f=lm.updaters.indexOf(o);lm.updaters.splice(f,1)}};lm.prototype.process=function(o,f){return dmt(this,o,f,!1)};lm.prototype.load=function(o,f){return dmt(this,o,f,!0)};lm.prototype.update=function(o){return!0};lm.processPacketData=Bi;lm.processPositionPacketData=hmt;lm.processMaterialPacketData=S1;lm._processCzml=function(o,f,m,x,y){if(x=x??lm.updaters,Array.isArray(o))for(let v=0,C=o.length;v<C;++v)d7e(o[v],f,x,m,y);else d7e(o,f,x,m,y)};var n$=lm,JTe=32,bHi="http://www.opengis.net/kml/2.2",DE="http://www.google.com/kml/ext/2.2",CHi="http://www.w3.org/2000/xmlns/";function fde(o){this._files={},this._promises=[],this._count=0,this._modelCallback=o}var THi=/^data:image\/([^,;]+)/;fde.prototype.texture=function(o){let f=this,m;if(typeof o=="string"||o instanceof Mr){if(o=Mr.createIfNeeded(o),!o.isDataUri)return o.url;let x=o.url.match(THi);m=`texture_${++this._count}`,F(x)&&(m+=`.${x[1]}`);let y=o.fetchBlob().then(function(v){f._files[m]=v});return this._promises.push(y),m}if(o instanceof HTMLCanvasElement){m=`texture_${++this._count}.png`;let x=new Promise(y=>{o.toBlob(function(v){f._files[m]=v,y()})});return this._promises.push(x),m}return""};function SHi(o,f){return function(m){o._files[f]=m}}fde.prototype.model=function(o,f){let m=this._modelCallback;if(!F(m))throw new Oi("Encountered a model entity while exporting to KML, but no model callback was supplied.");let x={},y=m(o,f,x);for(let v in x)if(x.hasOwnProperty(v)){let C=Promise.resolve(x[v]);this._promises.push(C),C.then(SHi(this,v))}return y};Object.defineProperties(fde.prototype,{promise:{get:function(){return Promise.all(this._promises)}},files:{get:function(){return this._files}}});function mde(o){this._time=o}mde.prototype.get=function(o,f,m){let x;return F(o)&&(x=F(o.getValue)?o.getValue(this._time,m):o),x??f};mde.prototype.getColor=function(o,f){let m=this.get(o,f);if(F(m))return yZ(m)};mde.prototype.getMaterialType=function(o){if(F(o))return o.getType(this._time)};function tDe(){this._ids={},this._styles={},this._count=0}tDe.prototype.get=function(o){let f=this._ids,m=o.innerHTML;if(F(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};tDe.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 fmt(){this._ids={}}fmt.prototype.get=function(o){if(!F(o))return this.get(du());let f=this._ids;return F(f[o])?`${o.toString()}-${++f[o]}`:(f[o]=0,o)};function iDe(o){o=o??si.EMPTY_OBJECT;let f=o.entities,m=o.kmz??!1,x=iDe._createState(o),y=f.values.filter(function(w){return!F(w.parent)}),v=x.kmlDoc,C=v.documentElement;C.setAttributeNS(CHi,"xmlns:gx",DE);let T=v.createElement("Document");C.appendChild(T),xmt(x,T,y),x.styleCache.save(T);let S=x.externalFileHandler;return S.promise.then(function(){let w=new XMLSerializer().serializeToString(x.kmlDoc);return m?wHi(w,S.files):{kml:w,externalFiles:S.files}})}function wHi(o,f){let m=oa("ThirdParty/Workers/z-worker-pako.js");bIe({workerScripts:{deflate:[m,"./pako_deflate.min.js"],inflate:[m,"./pako_inflate.min.js"]}});let x=new Iot,y=new nii(x);return y.add("doc.kml",new Sti(o)).then(function(){let v=Object.keys(f);return mmt(y,v,f,0)}).then(function(){return y.close()}).then(function(v){return{kmz:v}})}function mmt(o,f,m,x){if(f.length===x)return;let y=f[x];return o.add(y,new kue(m[y])).then(function(){return mmt(o,f,m,x+1)})}iDe._createState=function(o){let f=o.entities,m=new tDe,x=f.computeAvailability(),y=F(o.time)?o.time:x.start,v=o.defaultAvailability??x,C=o.sampleDuration??60;v.start===wn.MINIMUM_VALUE?v.stop===wn.MAXIMUM_VALUE?v=new js:$t.addSeconds(v.stop,-10*C,v.start):v.stop===wn.MAXIMUM_VALUE&&$t.addSeconds(v.start,10*C,v.stop);let T=new fde(o.modelCallback);return{kmlDoc:document.implementation.createDocument(bHi,"kml"),ellipsoid:o.ellipsoid??yi.default,idManager:new fmt,styleCache:m,externalFileHandler:T,time:y,valueGetter:new mde(y),sampleDuration:C,defaultAvailability:new k_([v])}};function xmt(o,f,m){let x=o.kmlDoc,y=o.styleCache,v=o.valueGetter,C=o.idManager,T=m.length,S,w,E;for(let L=0;L<T;++L){let I=m[L];S=[],w=[],E=[],EHi(o,I,w,E),LHi(o,I.polyline,w,E),f7e(o,I.rectangle,w,E,S),f7e(o,I.polygon,w,E,S),AHi(o,I,I.model,w,E);let R,P=I.availability;F(P)&&(R=x.createElement("TimeSpan"),$t.equals(P.start,wn.MINIMUM_VALUE)||R.appendChild(Ua(x,"begin",$t.toIso8601(P.start))),$t.equals(P.stop,wn.MAXIMUM_VALUE)||R.appendChild(Ua(x,"end",$t.toIso8601(P.stop))));for(let V=0;V<S.length;++V){let G=S[V];G.setAttribute("id",C.get(I.id)),G.appendChild(Ua(x,"name",I.name)),G.appendChild(Ua(x,"visibility",I.show)),G.appendChild(Ua(x,"description",I.description)),F(R)&&G.appendChild(R),f.appendChild(G)}let A=w.length;if(A>0){let V=x.createElement("Placemark");V.setAttribute("id",C.get(I.id));let G=I.name,D=I.label;if(F(D)){let k=x.createElement("LabelStyle"),U=v.get(D.text);G=F(U)&&U.length>0?U:G;let B=v.getColor(D.fillColor);F(B)&&(k.appendChild(Ua(x,"color",B)),k.appendChild(Ua(x,"colorMode","normal")));let Y=v.get(D.scale);F(Y)&&k.appendChild(Ua(x,"scale",Y)),E.push(k)}V.appendChild(Ua(x,"name",G)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),F(R)&&V.appendChild(R),f.appendChild(V);let N=E.length;if(N>0){let k=x.createElement("Style");for(let U=0;U<N;++U)k.appendChild(E[U]);V.appendChild(Ua(x,"styleUrl",y.get(k)))}if(w.length===1)V.appendChild(w[0]);else if(w.length>1){let k=x.createElement("MultiGeometry");for(let U=0;U<A;++U)k.appendChild(w[U]);V.appendChild(k)}}let M=I._children;if(M.length>0){let V=x.createElement("Folder");V.setAttribute("id",C.get(I.id)),V.appendChild(Ua(x,"name",I.name)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),f.appendChild(V),xmt(o,V,M)}}}var gb=new Z,rv=new Gt,TE=new $t;function EHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter,T=f.billboard??f.point;if(!F(T)&&!F(f.path))return;let S=f.position;if(!S.isConstant){gmt(o,f,T,m,x);return}C.get(S,void 0,gb);let w=Ua(y,"coordinates",gZ(gb,v)),E=y.createElement("Point"),L=y.createElement("altitudeMode");L.appendChild(XZ(o,T.heightReference)),E.appendChild(L),E.appendChild(w),m.push(E);let I=T instanceof sV?_mt(o,T):ymt(o,T);x.push(I)}function gmt(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter,S,w=f.position,E=!0;w instanceof i1?(S=w.intervals,E=!1):S=f.availability??o.defaultAvailability;let L=m instanceof C7,I,R,P,A=[];for(I=0;I<S.length;++I){let V=S.get(I),G=E?w:V.data,D=v.createElement("altitudeMode");G instanceof Vz?(G=G._value,D.appendChild(XZ(o,Mn.CLAMP_TO_GROUND))):F(m)?D.appendChild(XZ(o,m.heightReference)):D.appendChild(XZ(o,Mn.NONE));let N=[],k=[];if(G.isConstant){T.get(G,void 0,gb);let B=Ua(v,"coordinates",gZ(gb,C));N.push($t.toIso8601(V.start)),k.push(B),N.push($t.toIso8601(V.stop)),k.push(B)}else if(G instanceof oS)for(P=G._property._times,R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),G.getValueInReferenceFrame(P[R],fp.FIXED,gb),k.push(gZ(gb,C));else if(G instanceof hM){P=G._times;let B=G._values;for(R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),Z.fromArray(B,R*3,gb),k.push(gZ(gb,C))}else{let B=o.sampleDuration;V.start.clone(TE),V.isStartIncluded||$t.addSeconds(TE,B,TE);let Y=V.stop;for(;$t.lessThan(TE,Y);)G.getValue(TE,gb),N.push($t.toIso8601(TE)),k.push(gZ(gb,C)),$t.addSeconds(TE,B,TE);V.isStopIncluded&&$t.equals(TE,Y)&&(G.getValue(TE,gb),N.push($t.toIso8601(TE)),k.push(gZ(gb,C)))}let U=v.createElementNS(DE,"Track");U.appendChild(D);for(let B=0;B<N.length;++B){let Y=Ua(v,"when",N[B]),J=Ua(v,"coord",k[B],DE);U.appendChild(Y),U.appendChild(J)}L&&U.appendChild(vmt(o,m)),A.push(U)}if(A.length===1)x.push(A[0]);else if(A.length>1){let V=v.createElementNS(DE,"MultiTrack");for(I=0;I<A.length;++I)V.appendChild(A[I]);x.push(V)}if(F(m)&&!L){let V=m instanceof sV?_mt(o,m):ymt(o,m);y.push(V)}let M=f.path;if(F(M)){let V=T.get(M.width),G=M.material;if(F(G)||F(V)){let D=v.createElement("LineStyle");F(V)&&D.appendChild(Ua(v,"width",V)),rDe(o,G,D),y.push(D)}}}function ymt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=m.createElement("IconStyle"),v=x.getColor(f.color);F(v)&&(y.appendChild(Ua(m,"color",v)),y.appendChild(Ua(m,"colorMode","normal")));let C=x.get(f.pixelSize);return F(C)&&y.appendChild(Ua(m,"scale",C/JTe)),y}function _mt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("IconStyle"),C=x.get(f.image);if(F(C)){C=y.texture(C);let I=m.createElement("Icon");I.appendChild(Ua(m,"href",C));let R=x.get(f.imageSubRegion);F(R)&&(I.appendChild(Ua(m,"x",R.x,DE)),I.appendChild(Ua(m,"y",R.y,DE)),I.appendChild(Ua(m,"w",R.width,DE)),I.appendChild(Ua(m,"h",R.height,DE))),v.appendChild(I)}let T=x.getColor(f.color);F(T)&&(v.appendChild(Ua(m,"color",T)),v.appendChild(Ua(m,"colorMode","normal")));let S=x.get(f.scale);F(S)&&v.appendChild(Ua(m,"scale",S));let w=x.get(f.pixelOffset);if(F(w)){S=S??1,rt.divideByScalar(w,S,w);let I=x.get(f.width,JTe),R=x.get(f.height,JTe),P=x.get(f.horizontalOrigin,ec.CENTER);P===ec.CENTER?w.x-=I*.5:P===ec.RIGHT&&(w.x-=I);let A=x.get(f.verticalOrigin,jn.CENTER);A===jn.TOP?w.y+=R:A===jn.CENTER&&(w.y+=R*.5);let M=m.createElement("hotSpot");M.setAttribute("x",-w.x),M.setAttribute("y",w.y),M.setAttribute("xunits","pixels"),M.setAttribute("yunits","pixels"),v.appendChild(M)}let E=x.get(f.rotation),L=x.get(f.alignedAxis);return F(E)&&Z.equals(Z.UNIT_Z,L)&&(E=be.toDegrees(-E),E===0&&(E=360),v.appendChild(Ua(m,"heading",E))),v}function LHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter;if(!F(f))return;let T=y.createElement("LineString"),S=y.createElement("altitudeMode"),w=C.get(f.clampToGround,!1),E;w?(T.appendChild(Ua(y,"tessellate",!0)),E=y.createTextNode("clampToGround")):E=y.createTextNode("absolute"),S.appendChild(E),T.appendChild(S);let L=f.positions,I=C.get(L),R=Ua(y,"coordinates",gZ(I,v));T.appendChild(R);let P=C.get(f.zIndex);w&&F(P)&&T.appendChild(Ua(y,"drawOrder",P,DE)),m.push(T);let A=y.createElement("LineStyle"),M=C.get(f.width);F(M)&&A.appendChild(Ua(y,"width",M)),rDe(o,f.material,A),x.push(A)}function PHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0);m>0&&(v=m);let C=f.coordinates,T=y.get(C),S=[],w=[vi.northeast,vi.southeast,vi.southwest,vi.northwest];for(let R=0;R<4;++R)w[R](T,rv),S.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${v}`);let E=Ua(x,"coordinates",S.join(" ")),L=x.createElement("outerBoundaryIs"),I=x.createElement("LinearRing");return I.appendChild(E),L.appendChild(I),[L]}function p7e(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=[],T=f.length;for(let E=0;E<T;++E)Gt.fromCartesian(f[E],v,rv),C.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${x?rv.height:m}`);let S=Ua(y,"coordinates",C.join(" ")),w=y.createElement("LinearRing");return w.appendChild(S),w}function IHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0),C=y.get(f.perPositionHeight,!1);!C&&m>0&&(v=m);let T=[],S=f.hierarchy,w=y.get(S),E=Array.isArray(w)?w:w.positions,L=x.createElement("outerBoundaryIs");L.appendChild(p7e(o,E,v,C)),T.push(L);let I=w.holes;if(F(I)){let R=I.length;for(let P=0;P<R;++P){let A=x.createElement("innerBoundaryIs");A.appendChild(p7e(o,I[P].positions,v,C)),T.push(A)}}return T}function f7e(o,f,m,x,y){let v=o.kmlDoc,C=o.valueGetter;if(!F(f))return;let T=f instanceof Iz;if(T&&C.getMaterialType(f.material)==="Image"){RHi(o,f,y);return}let S=v.createElement("Polygon"),w=C.get(f.extrudedHeight,0);w>0&&S.appendChild(Ua(v,"extrude",!0));let E=T?PHi(o,f,w):IHi(o,f,w),L=E.length;for(let M=0;M<L;++M)S.appendChild(E[M]);let I=v.createElement("altitudeMode");I.appendChild(XZ(o,f.heightReference)),S.appendChild(I),m.push(S);let R=v.createElement("PolyStyle"),P=C.get(f.fill,!1);P&&R.appendChild(Ua(v,"fill",P)),rDe(o,f.material,R);let A=C.get(f.outline,!1);if(A){R.appendChild(Ua(v,"outline",A));let M=v.createElement("LineStyle"),V=C.get(f.outlineWidth,1);M.appendChild(Ua(v,"width",V));let G=C.getColor(f.outlineColor,Xe.BLACK);M.appendChild(Ua(v,"color",G)),M.appendChild(Ua(v,"colorMode","normal")),x.push(M)}x.push(R)}function RHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=o.externalFileHandler,C=x.createElement("GroundOverlay"),T=x.createElement("altitudeMode");T.appendChild(XZ(o,f.heightReference)),C.appendChild(T);let S=y.get(f.height);F(S)&&C.appendChild(Ua(x,"altitude",S));let w=y.get(f.coordinates),E=x.createElement("LatLonBox");E.appendChild(Ua(x,"north",be.toDegrees(w.north))),E.appendChild(Ua(x,"south",be.toDegrees(w.south))),E.appendChild(Ua(x,"east",be.toDegrees(w.east))),E.appendChild(Ua(x,"west",be.toDegrees(w.west))),C.appendChild(E);let L=y.get(f.material),I=v.texture(L.image),R=x.createElement("Icon");R.appendChild(Ua(x,"href",I)),C.appendChild(R);let P=L.color;F(P)&&C.appendChild(Ua(x,"color",yZ(L.color))),m.push(C)}function vmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("Model"),C=x.get(f.scale);if(F(C)){let w=m.createElement("scale");w.appendChild(Ua(m,"x",C)),w.appendChild(Ua(m,"y",C)),w.appendChild(Ua(m,"z",C)),v.appendChild(w)}let T=m.createElement("Link"),S=y.model(f,o.time);return T.appendChild(Ua(m,"href",S)),v.appendChild(T),v}function AHi(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter;if(!F(m))return;let S=f.position;if(!S.isConstant){gmt(o,f,m,x,y);return}let w=vmt(o,m),E=v.createElement("altitudeMode");E.appendChild(XZ(o,m.heightReference)),w.appendChild(E),T.get(S,void 0,gb),Gt.fromCartesian(gb,C,rv);let L=v.createElement("Location");L.appendChild(Ua(v,"longitude",be.toDegrees(rv.longitude))),L.appendChild(Ua(v,"latitude",be.toDegrees(rv.latitude))),L.appendChild(Ua(v,"altitude",rv.height)),w.appendChild(L),x.push(w)}function rDe(o,f,m){let x=o.kmlDoc,y=o.valueGetter;if(!F(f))return;let v=y.get(f);if(!F(v))return;let C,T=y.getMaterialType(f),S,w;switch(T){case"Image":C=yZ(Xe.WHITE);break;case"Color":case"Grid":case"PolylineGlow":case"PolylineArrow":case"PolylineDash":C=yZ(v.color);break;case"PolylineOutline":C=yZ(v.color),S=yZ(v.outlineColor),w=v.outlineWidth,m.appendChild(Ua(x,"outerColor",S,DE)),m.appendChild(Ua(x,"outerWidth",w,DE));break;case"Stripe":C=yZ(v.oddColor);break}F(C)&&(m.appendChild(Ua(x,"color",C)),m.appendChild(Ua(x,"colorMode","normal")))}function XZ(o,f){let m=o.kmlDoc,x=o.valueGetter.get(f,Mn.NONE),y;switch(x){case Mn.NONE:y=m.createTextNode("absolute");break;case Mn.CLAMP_TO_GROUND:y=m.createTextNode("clampToGround");break;case Mn.RELATIVE_TO_GROUND:y=m.createTextNode("relativeToGround");break}return y}function gZ(o,f){Array.isArray(o)||(o=[o]);let m=o.length,x=[];for(let y=0;y<m;++y)Gt.fromCartesian(o[y],f,rv),x.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${rv.height}`);return x.join(" ")}function Ua(o,f,m,x){m=m??"",typeof m=="boolean"&&(m=m?"1":"0");let y=F(x)?o.createElementNS(x,f):o.createElement(f),v=m==="string"&&m.indexOf("<")!==-1?o.createCDATASection(m):o.createTextNode(m);return y.appendChild(v),y}function yZ(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 bmt=iDe,Cmt;typeof DOMParser<"u"&&(Cmt=new DOMParser);var MHi=new jnt({stripPrefix:!1,email:!1,replaceFn:function(o,f){return f.urlMatchType==="scheme"||f.urlMatchType==="www"}}),hle=32,m7e=2414016,x7e=1,g7e=16093e3,y7e=.1,VHi=[null,void 0,"http://www.topografix.com/GPX/1/1"],sd={gpx:VHi};function GHi(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 nDe(o,f){let m=G6(o,"id");return m=F(m)?m:du(),f.getOrCreateEntity(m)}function oDe(o){let f=_7e(o,"lon"),m=_7e(o,"lat"),x=Lj(o,"ele",sd.gpx);return Z.fromDegrees(f,m,x)}function _7e(o,f){if(!F(o))return;let m=o.getAttribute(f);if(m!==null){let x=parseFloat(m);return isNaN(x)?void 0:x}}function G6(o,f){if(!F(o))return;let m=o.getAttribute(f);return m!==null?m:void 0}function iD(o,f,m){if(!F(o))return;let x=o.childNodes,y=x.length;for(let v=0;v<y;v++){let C=x[v];if(C.localName===f&&m.indexOf(C.namespaceURI)!==-1)return C}}function aDe(o,f,m){if(!F(o))return;let x=[],y=o.getElementsByTagName(f),v=y.length;for(let C=0;C<v;C++){let T=y[C];T.localName===f&&m.indexOf(T.namespaceURI)!==-1&&x.push(T)}return x}function Lj(o,f,m){let x=iD(o,f,m);if(F(x)){let y=parseFloat(x.textContent);return isNaN(y)?void 0:y}}function Rb(o,f,m){let x=iD(o,f,m);if(F(x))return x.textContent.trim()}function Tmt(o){let f=new sV;return f.width=hle,f.height=hle,f.scaleByDistance=new ea(m7e,x7e,g7e,y7e),f.pixelOffsetScaleByDistance=new ea(m7e,x7e,g7e,y7e),f.verticalOrigin=new Qc(jn.BOTTOM),f.image=o,f}function FHi(){let o=new Pz;return o.translucencyByDistance=new ea(3e6,1,5e6,0),o.pixelOffset=new rt(17,0),o.horizontalOrigin=ec.LEFT,o.font="16px sans-serif",o.style=f0.FILL_AND_OUTLINE,o}function Smt(o){let f=new bI;return f.width=4,f.material=new jM,f.material.color=F(o)?o:Xe.RED,f.material.outlineWidth=2,f.material.outlineColor=Xe.BLACK,f}var v7e={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"}},Pj;typeof document<"u"&&(Pj=document.createElement("div"));function sDe(o,f){let m,x="",y=Object.keys(v7e),v=y.length;for(m=0;m<v;m++){let E=y[m],L=v7e[E];L.value=Rb(o,L.tag,sd.gpx)??"",F(L.value)&&L.value!==""&&(x=`${x}<p>${L.text}: ${L.value}</p>`)}if(!F(x)||x==="")return;x=MHi.link(x),Pj.innerHTML=x;let C=Pj.querySelectorAll("a");for(m=0;m<C.length;m++)C[m].setAttribute("target","_blank");let T=Xe.WHITE,S=Xe.BLACK,w='<div class="cesium-infoBox-description-lighter" style="';return w+="overflow:auto;",w+="word-wrap:break-word;",w+=`background-color:${T.toCssColorString()};`,w+=`color:${S.toCssColorString()};`,w+='">',w+=`${Pj.innerHTML}</div>`,Pj.innerHTML="",w}function wmt(o,f,m,x){let y=oDe(f),v=nDe(f,m);v.position=y;let C=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,hle);v.billboard=Tmt(C);let T=Rb(f,"name",sd.gpx);v.name=T,v.label=FHi(),v.label.text=T,v.description=sDe(f,v),x.clampToGround&&(v.billboard.heightReference=Mn.CLAMP_TO_GROUND,v.label.heightReference=Mn.CLAMP_TO_GROUND)}function DHi(o,f,m,x){let y=nDe(f,m);y.description=sDe(f,y);let v=aDe(f,"rtept",sd.gpx),C=new Array(v.length);for(let T=0;T<v.length;T++)wmt(o,v[T],m,x),C[T]=oDe(v[T]);y.polyline=Smt(x.routeColor),x.clampToGround&&(y.polyline.clampToGround=!0),y.polyline.positions=C}function NHi(o,f,m,x){let y=nDe(f,m);y.description=sDe(f,y);let v=aDe(f,"trkseg",sd.gpx),C=[],T=[],S,w=!0,E=new oS;for(let L=0;L<v.length;L++)S=WHi(v[L]),C=C.concat(S.positions),S.times.length>0?(T=T.concat(S.times),E.addSamples(T,C),w=w&&!0):w=!1;if(w){let L=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,hle);y.billboard=Tmt(L),y.position=E,x.clampToGround&&(y.billboard.heightReference=Mn.CLAMP_TO_GROUND),y.availability=new k_,y.availability.addInterval(new js({start:T[0],stop:T[T.length-1]}))}y.polyline=Smt(x.trackColor),y.polyline.positions=C,x.clampToGround&&(y.polyline.clampToGround=!0)}function WHi(o){let f={positions:[],times:[]},m=aDe(o,"trkpt",sd.gpx),x;for(let y=0;y<m.length;y++){let v=oDe(m[y]);f.positions.push(v),x=Rb(m[y],"time",sd.gpx),F(x)&&f.times.push($t.fromIso8601(x))}return f}function ZHi(o){let f=iD(o,"metadata",sd.gpx);if(F(f)){let m={name:Rb(f,"name",sd.gpx),desc:Rb(f,"desc",sd.gpx),author:OHi(f),copyright:kHi(f),link:Emt(f),time:Rb(f,"time",sd.gpx),keywords:Rb(f,"keywords",sd.gpx),bounds:UHi(f)};if(F(m.name)||F(m.desc)||F(m.author)||F(m.copyright)||F(m.link)||F(m.time)||F(m.keywords)||F(m.bounds))return m}}function OHi(o){let f=iD(o,"author",sd.gpx);if(F(f)){let m={name:Rb(f,"name",sd.gpx),email:XHi(f),link:Emt(f)};if(F(m.name)||F(m.email)||F(m.link))return m}}function XHi(o){let f=iD(o,"email",sd.gpx);if(F(f)){let m=Rb(f,"id",sd.gpx),x=Rb(f,"domain",sd.gpx);return`${m}@${x}`}}function Emt(o){let f=iD(o,"link",sd.gpx);if(F(f)){let m={href:G6(f,"href"),text:Rb(f,"text",sd.gpx),mimeType:Rb(f,"type",sd.gpx)};if(F(m.href)||F(m.text)||F(m.mimeType))return m}}function kHi(o){let f=iD(o,"copyright",sd.gpx);if(F(f)){let m={author:G6(f,"author"),year:Rb(f,"year",sd.gpx),license:Rb(f,"license",sd.gpx)};if(F(m.author)||F(m.year)||F(m.license))return m}}function UHi(o){let f=iD(o,"bounds",sd.gpx);if(F(f)){let m={minLat:Lj(f,"minlat",sd.gpx),maxLat:Lj(f,"maxlat",sd.gpx),minLon:Lj(f,"minlon",sd.gpx),maxLon:Lj(f,"maxlon",sd.gpx)};if(F(m.minLat)||F(m.maxLat)||F(m.minLon)||F(m.maxLon))return m}}var b7e={wpt:wmt,rte:DHi,trk:NHi};function BHi(o,f,m,x){let y=Object.keys(b7e),v=y.length;for(let C=0;C<v;C++){let T=y[C],S=b7e[T],w=f.childNodes,E=w.length;for(let L=0;L<E;L++){let I=w[L];I.localName===T&&sd.gpx.indexOf(I.namespaceURI)!==-1&&S(o,I,m,x)}}}function C7e(o,f,m){let x=o._entityCollection;x.removeAll();let y=f.documentElement,v=G6(y,"version"),C=G6(y,"creator"),T,S=ZHi(y);F(S)&&(T=S.name),y.localName==="gpx"?BHi(o,y,x,m):console.log(`GPX - Unsupported node: ${y.localName}`);let w,E=x.computeAvailability(),L=E.start,I=E.stop,R=$t.equals(L,wn.MINIMUM_VALUE),P=$t.equals(I,wn.MAXIMUM_VALUE);if(!R||!P){let M;R&&(M=new Date,M.setHours(0,0,0,0),L=$t.fromDate(M)),P&&(M=new Date,M.setHours(24,0,0,0),I=$t.fromDate(M)),w=new n9,w.startTime=L,w.stopTime=I,w.currentTime=$t.clone(L),w.clockRange=Gx.LOOP_STOP,w.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,w.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(I,L)/60,1),31556900))}let A=!1;return o._name!==T&&(o._name=T,A=!0),o._creator!==C&&(o._creator=C,A=!0),HHi(o._metadata,S)&&(o._metadata=S,A=!0),o._version!==v&&(o._version=v,A=!0),w!==o._clock&&(A=!0,o._clock=w),A&&o._changed.raiseEvent(o),Sy.setLoading(o,!1),o}function HHi(o,f){return!F(o)&&!F(f)?!1:F(o)&&F(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 zHi(o,f,m,x){x=x??si.EMPTY_OBJECT;let y=m;if(typeof m=="string"||m instanceof Mr){m=Mr.createIfNeeded(m),y=m.fetchBlob();let v=o._resourceCredits,C=m.credits;if(F(C)){let T=C.length;for(let S=0;S<T;S++)v.push(C[S])}}return Promise.resolve(y).then(function(v){return v instanceof Blob?GHi(v).then(function(C){let T,S;try{T=Cmt.parseFromString(C,"application/xml")}catch(w){S=w.toString()}if(F(S)||T.body||T.documentElement.tagName==="parsererror"){let w=F(S)?S:T.documentElement.firstChild.nodeValue;throw w||(w=T.body.innerText),new Oi(w)}return C7e(o,T,x)}):C7e(o,v,x)}).catch(function(v){return o._error.raiseEvent(o,v),console.log(v),Promise.reject(v)})}function jH(){this._changed=new Tr,this._error=new Tr,this._loading=new Tr,this._clock=void 0,this._entityCollection=new US(this),this._entityCluster=new AF,this._name=void 0,this._version=void 0,this._creator=void 0,this._metadata=void 0,this._isLoading=!1,this._pinBuilder=new L7}jH.load=function(o,f){return new jH().load(o,f)};Object.defineProperties(jH.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}}});jH.prototype.update=function(o){return!0};jH.prototype.load=function(o,f){if(!F(o))throw new wt("data is required.");f=f??si.EMPTY_OBJECT,Sy.setLoading(this,!0);let m=this._name,x=this;return zHi(this,this._entityCollection,o,f).then(function(){let y,v=x._entityCollection.computeAvailability(),C=v.start,T=v.stop,S=$t.equals(C,wn.MINIMUM_VALUE),w=$t.equals(T,wn.MAXIMUM_VALUE);if(!S||!w){let L;S&&(L=new Date,L.setHours(0,0,0,0),C=$t.fromDate(L)),w&&(L=new Date,L.setHours(24,0,0,0),T=$t.fromDate(L)),y=new n9,y.startTime=C,y.stopTime=T,y.currentTime=$t.clone(C),y.clockRange=Gx.LOOP_STOP,y.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,y.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(T,C)/60,1),31556900))}let E=!1;return y!==x._clock&&(x._clock=y,E=!0),m!==x._name&&(E=!0),E&&x._changed.raiseEvent(x),Sy.setLoading(x,!1),x}).catch(function(y){return Sy.setLoading(x,!1),x._error.raiseEvent(x,y),console.log(y),Promise.reject(y)})};var lDe=jH;function o$(){wt.throwInstantiationError()}o$.prototype.update=wt.throwInstantiationError;o$.prototype.getBoundingSphere=wt.throwInstantiationError;o$.prototype.isDestroyed=wt.throwInstantiationError;o$.prototype.destroy=wt.throwInstantiationError;var Lmt=o$;function D4(o,f){this._tilingScheme=o,this._maximumLevel=f,this._rootNodes=[]}var uZ=new vi;function YHi(o,f,m,x){let y=x.length;for(let v=0;v<y;++v){let C=x[v];if(C.x===f&&C.y===m&&C.level===o)return!0}return!1}D4.prototype.addAvailableTileRange=function(o,f,m,x,y){let v=this._tilingScheme,C=this._rootNodes;if(o===0)for(let I=m;I<=y;++I)for(let R=f;R<=x;++R)YHi(o,R,I,C)||C.push(new iB(v,void 0,0,R,I));v.tileXYToRectangle(f,m,o,uZ);let T=uZ.west,S=uZ.north;v.tileXYToRectangle(x,y,o,uZ);let w=uZ.east,E=uZ.south,L=new qHi(o,T,E,w,S);for(let I=0;I<C.length;++I){let R=C[I];uDe(R.extent,L)&&$Hi(this._maximumLevel,R,L)}};D4.prototype.computeMaximumLevelAtPosition=function(o){let f;for(let m=0;m<this._rootNodes.length;++m){let x=this._rootNodes[m];if(rB(x.extent,o)){f=x;break}}return F(f)?Ij(void 0,f,o):-1};var KHi=[],JHi=[],jHi=new vi,QHi=new vi;D4.prototype.computeBestAvailableLevelOverRectangle=function(o){let f=KHi;f.length=0,o.east<o.west?(f.push(vi.fromRadians(-Math.PI,o.south,o.east,o.north,jHi)),f.push(vi.fromRadians(o.west,o.south,Math.PI,o.north,QHi))):f.push(o);let m=JHi;m.length=0;let x;for(x=0;x<this._rootNodes.length;++x)Rj(m,this._rootNodes[x],f);for(x=m.length-1;x>=0;--x)if(F(m[x])&&m[x].length===0)return x;return 0};var T7e=new Gt;D4.prototype.isTileAvailable=function(o,f,m){let x=this._tilingScheme.tileXYToRectangle(f,m,o,uZ);return vi.center(x,T7e),this.computeMaximumLevelAtPosition(T7e)>=o};D4.prototype.computeChildMaskForTile=function(o,f,m){let x=o+1;if(x>=this._maximumLevel)return 0;let y=0;return y|=this.isTileAvailable(x,2*f,2*m+1)?1:0,y|=this.isTileAvailable(x,2*f+1,2*m+1)?2:0,y|=this.isTileAvailable(x,2*f,2*m)?4:0,y|=this.isTileAvailable(x,2*f+1,2*m)?8:0,y};function iB(o,f,m,x,y){this.tilingScheme=o,this.parent=f,this.level=m,this.x=x,this.y=y,this.extent=o.tileXYToRectangle(x,y,m),this.rectangles=[],this._sw=void 0,this._se=void 0,this._nw=void 0,this._ne=void 0}Object.defineProperties(iB.prototype,{nw:{get:function(){return this._nw||(this._nw=new iB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2)),this._nw}},ne:{get:function(){return this._ne||(this._ne=new iB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2)),this._ne}},sw:{get:function(){return this._sw||(this._sw=new iB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2+1)),this._sw}},se:{get:function(){return this._se||(this._se=new iB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2+1)),this._se}}});function qHi(o,f,m,x,y){this.level=o,this.west=f,this.south=m,this.east=x,this.north=y}function uDe(o,f){let m=Math.max(o.west,f.west),x=Math.max(o.south,f.south),y=Math.min(o.east,f.east),v=Math.min(o.north,f.north);return x<v&&m<y}function $Hi(o,f,m){for(;f.level<o;)if(doe(f.nw.extent,m))f=f.nw;else if(doe(f.ne.extent,m))f=f.ne;else if(doe(f.sw.extent,m))f=f.sw;else if(doe(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=Nx(f.rectangles,m.level,ezi);x<0&&(x=~x),f.rectangles.splice(x,0,m)}}function ezi(o,f){return o.level-f}function doe(o,f){return f.west>=o.west&&f.east<=o.east&&f.south>=o.south&&f.north<=o.north}function rB(o,f){return f.longitude>=o.west&&f.longitude<=o.east&&f.latitude>=o.south&&f.latitude<=o.north}function Ij(o,f,m){let x=0,y=!1;for(;!y;){let v=f._nw&&rB(f._nw.extent,m),C=f._ne&&rB(f._ne.extent,m),T=f._sw&&rB(f._sw.extent,m),S=f._se&&rB(f._se.extent,m);if(v+C+T+S>1){v&&(x=Math.max(x,Ij(f,f._nw,m))),C&&(x=Math.max(x,Ij(f,f._ne,m))),T&&(x=Math.max(x,Ij(f,f._sw,m))),S&&(x=Math.max(x,Ij(f,f._se,m)));break}else v?f=f._nw:C?f=f._ne:T?f=f._sw:S?f=f._se:y=!0}for(;f!==o;){let v=f.rectangles;for(let C=v.length-1;C>=0&&v[C].level>x;--C){let T=v[C];rB(T,m)&&(x=T.level)}f=f.parent}return x}function Rj(o,f,m){if(!f)return;let x,y=!1;for(x=0;x<m.length;++x)y=y||uDe(f.extent,m[x]);if(!y)return;let v=f.rectangles;for(x=0;x<v.length;++x){let C=v[x];o[C.level]||(o[C.level]=m),o[C.level]=tzi(o[C.level],C)}Rj(o,f._nw,m),Rj(o,f._ne,m),Rj(o,f._sw,m),Rj(o,f._se,m)}function tzi(o,f){let m=[];for(let x=0;x<o.length;++x){let y=o[x];uDe(y,f)?(y.west<f.west&&m.push(new vi(y.west,y.south,f.west,y.north)),y.east>f.east&&m.push(new vi(f.east,y.south,y.east,y.north)),y.south<f.south&&m.push(new vi(Math.max(f.west,y.west),y.south,Math.min(f.east,y.east),f.south)),y.north>f.north&&m.push(new vi(Math.max(f.west,y.west),f.north,Math.min(f.east,y.east),y.north))):m.push(y)}return m}var kG=D4,izi=15;function Pmt(o){this.ellipsoid=o.ellipsoid??yi.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}Pmt.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 rzi(o,f){let m=f.copyrightText;F(m)&&(o.credit=new Oa(m));let x=f.spatialReference,y=x.latestWkid??x.wkid,v=f.extent,C={ellipsoid:o.ellipsoid};if(y===4326||y===4490)C.rectangle=vi.fromDegrees(v.xmin,v.ymin,v.xmax,v.ymax),o.tilingScheme=new _h(C);else if(y===3857){let S=Math.PI*o.ellipsoid.maximumRadius;f.extent.xmax>S&&(f.extent.xmax=S),f.extent.ymax>S&&(f.extent.ymax=S),f.extent.xmin<-S&&(f.extent.xmin=-S),f.extent.ymin<-S&&(f.extent.ymin=-S),C.rectangleSouthwestInMeters=new rt(v.xmin,v.ymin),C.rectangleNortheastInMeters=new rt(v.xmax,v.ymax),o.tilingScheme=new gp(C)}else throw new Oi("Invalid spatial reference");let T=f.tileInfo;if(!F(T))throw new Oi("tileInfo is required");o.width=T.rows+1,o.height=T.cols+1,o.encoding=T.format==="LERC"?dF.LERC:dF.NONE,o.lodCount=T.lods.length-1,(o.hasAvailability=f.capabilities.indexOf("Tilemap")!==-1)&&(o.tilesAvailable=new kG(o.tilingScheme,o.lodCount),o.tilesAvailable.addAvailableTileRange(0,0,0,o.tilingScheme.getNumberOfXTilesAtLevel(0),o.tilingScheme.getNumberOfYTilesAtLevel(0)),o.tilesAvailabilityLoaded=new kG(o.tilingScheme,o.lodCount)),o.levelZeroMaximumGeometricError=H_.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."),F(f.minValues)&&F(f.maxValues)?o.terrainDataStructure={elementMultiplier:1,lowestEncodedHeight:f.minValues[0],highestEncodedHeight:f.maxValues[0]}:o.terrainDataStructure={elementMultiplier:1}}async function nzi(o,f,m){try{let x=await f.fetchJson();rzi(o,x)}catch(x){let y=`An error occurred while accessing ${f}.`;throw sm.reportError(void 0,m,F(m)?m._errorEvent:void 0,y),x}}function yF(o){o=o??si.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 Tr}Object.defineProperties(yF.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}}});yF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash(),F(f.token)&&(m=m.getDerivedResource({queryParameters:{token:f.token}}));let x=m.getDerivedResource({queryParameters:{f:"pjson"}}),y=new Pmt(f);await nzi(y,x);let v=new yF(f);return y.build(v),v._resource=m,v};yF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._resource.getDerivedResource({url:`tile/${m}/${f}/${o}`,request:x}),v=this._hasAvailability,C=Promise.resolve(!0),T;if(v&&!F(cDe(this,m+1,o*2,f*2))){let L=Imt(this,m+1,o*2,f*2);C=L.promise,T=L.request}let S=y.fetchArrayBuffer();if(!F(S)||!F(C))return;let w=this,E=this._tilesAvailable;return Promise.all([S,C]).then(function(L){return new yL({buffer:L[0],width:w._width,height:w._height,childTileMask:v?E.computeChildMaskForTile(m,o,f):izi,structure:w._terrainDataStructure,encoding:w._encoding})}).catch(async function(L){if(F(T)&&T.state===fc.CANCELLED){x.cancel();try{await x.deferred?.promise}catch{}return x.state=fc.CANCELLED,Promise.reject(L)}return Promise.reject(L)})};function cDe(o,f,m,x){if(!o._hasAvailability)return;let y=o._tilesAvailabilityLoaded,v=o._tilesAvailable;if(f>o._lodCount)return!1;if(v.isTileAvailable(f,m,x))return!0;if(y.isTileAvailable(f,m,x))return!1}yF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};yF.prototype.getTileDataAvailable=function(o,f,m){if(!this._hasAvailability)return;let x=cDe(this,m,o,f);if(F(x))return x;Imt(this,m,o,f)};yF.prototype.loadTileDataAvailability=function(o,f,m){};function ozi(o,f,m,x){let y=f-1,v=m-1,C=x[o.y*f+o.x],T=[],S={startX:o.x,startY:o.y,endX:0,endY:0},w=new rt(o.x+1,o.y+1),E=!1,L=!1;for(;!(E&&L);){let I=w.x,R=L?w.y+1:w.y;if(!E){for(let P=o.y;P<R;++P)if(x[P*f+w.x]!==C){E=!0;break}E?(T.push(new rt(w.x,o.y)),--w.x,--I,S.endX=w.x):w.x===y?(S.endX=w.x,E=!0):++w.x}if(!L){let P=w.y*f;for(let A=o.x;A<=I;++A)if(x[P+A]!==C){L=!0;break}L?(T.push(new rt(o.x,w.y)),--w.y,S.endY=w.y):w.y===v?(S.endY=w.y,L=!0):++w.y}}return{endingIndices:T,range:S,value:C}}function azi(o,f,m,x,y){let v=[];if(y.every(function(T){return T===y[0]}))return y[0]===1&&v.push({startX:o,startY:f,endX:o+m-1,endY:f+x-1}),v;let C=[new rt(0,0)];for(;C.length>0;){let T=C.pop(),S=ozi(T,m,x,y);if(S.value===1){let E=S.range;E.startX+=o,E.endX+=o,E.startY+=f,E.endY+=f,v.push(E)}let w=S.endingIndices;w.length>0&&(C=C.concat(w))}return v}function Imt(o,f,m,x){if(!o._hasAvailability)return{};let y=Math.floor(m/128)*128,v=Math.floor(x/128)*128,C=Math.min(1<<f,128),T=`tilemap/${f}/${v}/${y}/${C}/${C}`,S=o._availableCache;if(F(S[T]))return S[T];let w=new dm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN}),E=o._resource.getDerivedResource({url:T,request:w}).fetchJson();return F(E)?(E=E.then(function(L){let I=azi(y,v,C,C,L.data);o._tilesAvailabilityLoaded.addAvailableTileRange(f,y,v,y+C,v+C);let R=o._tilesAvailable;for(let P=0;P<I.length;++P){let A=I[P];R.addAvailableTileRange(f,A.startX,A.startY,A.endX,A.endY)}return cDe(o,f,m,x)}),S[T]={promise:E,request:w},E=E.finally(function(L){return delete S[T],L}),{promise:E,request:w}):{}}var xde=yF,Rmt="https://dev.virtualearth.net/REST/v1/Locations";function hDe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._key=f;let m={key:f};F(o.culture)&&(m.culture=o.culture),this._resource=new Mr({url:Rmt,queryParameters:m}),this._credit=new Oa('<img src="http://dev.virtualearth.net/Branding/logo_powered_by.png"/>',!1)}Object.defineProperties(hDe.prototype,{url:{get:function(){return Rmt}},key:{get:function(){return this._key}},credit:{get:function(){return this._credit}}});hDe.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,y=x[0],v=x[1],C=x[2],T=x[3];return{displayName:m.name,destination:vi.fromDegrees(v,y,T,C)}})})};var Amt=hDe;function dDe(){}Object.defineProperties(dDe.prototype,{credit:{get:function(){}}});dDe.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],y=f.length===3?+f[2]:300;if(isNaN(m)&&isNaN(x)){let v=/^(\d+.?\d*)([nsew])/i;for(let C=0;C<f.length;++C){let T=f[C].match(v);v.test(f[C])&&T.length===3&&(/^[ns]/i.test(T[2])?x=/^[n]/i.test(T[2])?+T[1]:-T[1]:/^[ew]/i.test(T[2])&&(m=/^[e]/i.test(T[2])?+T[1]:-T[1]))}}if(!isNaN(m)&&!isNaN(x)&&!isNaN(y)){let v={displayName:o,destination:Z.fromDegrees(m,x,y)};return Promise.resolve([v])}}return Promise.resolve([])};var Mmt=dDe,szi=new zt,S7e=new Z,zU=new Z;function lzi(o){let f=o.points,m=o.times;if(f.length<3){let x=m[0],y=1/(m[1]-x),v=f[0],C=f[1];return function(T,S){F(S)||(S=new Z);let w=(T-x)*y;return Z.lerp(v,C,w,S)}}return function(x,y){F(y)||(y=new Z);let v=o._lastTimeIndex=o.findTimeInterval(x,o._lastTimeIndex),C=(x-m[v])/(m[v+1]-m[v]),T=szi;T.z=C,T.y=C*C,T.x=T.y*C,T.w=1;let S,w,E,L,I;return v===0?(S=f[0],w=f[1],E=o.firstTangent,L=Z.subtract(f[2],S,S7e),Z.multiplyByScalar(L,.5,L),I=Ee.multiplyByVector(_6.hermiteCoefficientMatrix,T,T)):v===f.length-2?(S=f[v],w=f[v+1],L=o.lastTangent,E=Z.subtract(w,f[v-1],S7e),Z.multiplyByScalar(E,.5,E),I=Ee.multiplyByVector(_6.hermiteCoefficientMatrix,T,T)):(S=f[v-1],w=f[v],E=f[v+1],L=f[v+2],I=Ee.multiplyByVector(rD.catmullRomCoefficientMatrix,T,T)),y=Z.multiplyByScalar(S,I.x,y),Z.multiplyByScalar(w,I.y,zU),Z.add(y,zU,y),Z.multiplyByScalar(E,I.z,zU),Z.add(y,zU,y),Z.multiplyByScalar(L,I.w,zU),Z.add(y,zU,y)}}var uzi=new Z,czi=new Z;function rD(o){o=o??si.EMPTY_OBJECT;let f=o.points,m=o.times,x=o.firstTangent,y=o.lastTangent;if(f.length>2&&(F(x)||(x=uzi,Z.multiplyByScalar(f[1],2,x),Z.subtract(x,f[2],x),Z.subtract(x,f[0],x),Z.multiplyByScalar(x,.5,x)),!F(y))){let v=f.length-1;y=czi,Z.multiplyByScalar(f[v-1],2,y),Z.subtract(f[v],y,y),Z.add(y,f[v-2],y),Z.multiplyByScalar(y,.5,y)}this._times=m,this._points=f,this._firstTangent=Z.clone(x),this._lastTangent=Z.clone(y),this._evaluateFunction=lzi(this),this._lastTimeIndex=0}Object.defineProperties(rD.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}}});rD.catmullRomCoefficientMatrix=new Ee(-.5,1,-.5,0,1.5,-2.5,0,1,-1.5,2,.5,0,.5,-.5,0,0);rD.prototype.findTimeInterval=B0.prototype.findTimeInterval;rD.prototype.wrapTime=B0.prototype.wrapTime;rD.prototype.clampTime=B0.prototype.clampTime;rD.prototype.evaluate=function(o,f){return this._evaluateFunction(o,f)};var Vmt=rD,gde={};gde.clipTriangleAtAxisAlignedThreshold=function(o,f,m,x,y,v){F(v)?v.length=0:v=[];let C,T,S;f?(C=m<o,T=x<o,S=y<o):(C=m>o,T=x>o,S=y>o);let w=C+T+S,E,L,I,R,P,A;return w===1?C?(E=(o-m)/(x-m),L=(o-m)/(y-m),v.push(1),v.push(2),L!==1&&(v.push(-1),v.push(0),v.push(2),v.push(L)),E!==1&&(v.push(-1),v.push(0),v.push(1),v.push(E))):T?(I=(o-x)/(y-x),R=(o-x)/(m-x),v.push(2),v.push(0),R!==1&&(v.push(-1),v.push(1),v.push(0),v.push(R)),I!==1&&(v.push(-1),v.push(1),v.push(2),v.push(I))):S&&(P=(o-y)/(m-y),A=(o-y)/(x-y),v.push(0),v.push(1),A!==1&&(v.push(-1),v.push(2),v.push(1),v.push(A)),P!==1&&(v.push(-1),v.push(2),v.push(0),v.push(P))):w===2?!C&&m!==o?(R=(o-x)/(m-x),P=(o-y)/(m-y),v.push(0),v.push(-1),v.push(1),v.push(0),v.push(R),v.push(-1),v.push(2),v.push(0),v.push(P)):!T&&x!==o?(A=(o-y)/(x-y),E=(o-m)/(x-m),v.push(1),v.push(-1),v.push(2),v.push(1),v.push(A),v.push(-1),v.push(0),v.push(1),v.push(E)):!S&&y!==o&&(L=(o-m)/(y-m),I=(o-x)/(y-x),v.push(2),v.push(-1),v.push(0),v.push(2),v.push(L),v.push(-1),v.push(1),v.push(2),v.push(I)):w!==3&&(v.push(0),v.push(1),v.push(2)),v};gde.computeBarycentricCoordinates=function(o,f,m,x,y,v,C,T,S){let w=m-C,E=C-y,L=v-T,I=x-T,R=1/(L*w+E*I),P=f-T,A=o-C,M=(L*A+E*P)*R,V=(-I*A+w*P)*R,G=1-M-V;return F(S)?(S.x=M,S.y=V,S.z=G,S):new Z(M,V,G)};gde.computeLineSegmentLineSegmentIntersection=function(o,f,m,x,y,v,C,T,S){let w=(C-y)*(f-v)-(T-v)*(o-y),E=(m-o)*(f-v)-(x-f)*(o-y),L=(T-v)*(m-o)-(C-y)*(x-f);if(L===0)return;let I=w/L,R=E/L;if(I>=0&&I<=1&&R>=0&&R<=1)return F(S)||(S=new rt),S.x=o+I*(m-o),S.y=f+I*(x-f),S};var N4=gde;function _F(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 y(C,T){return x[C]-x[T]}function v(C,T){return m[C]-m[T]}this._westIndices=foe(o.westIndices,y,f),this._southIndices=foe(o.southIndices,v,f),this._eastIndices=foe(o.eastIndices,y,f),this._northIndices=foe(o.northIndices,v,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(_F.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}},canUpsample:{get:function(){return F(this._mesh)}}});var poe=[];function foe(o,f,m){poe.length=o.length;let x=!1;for(let y=0,v=o.length;y<v;++y)poe[y]=o[y],x=x||y>0&&f(o[y-1],o[y])>0;return x?(poe.sort(f),Fn.createTypedArray(m,poe)):o}var Gmt="createVerticesFromQuantizedTerrainMesh",hzi=new xp(Gmt),dzi=new xp(Gmt,_O.maximumAsynchronousTasks);_F.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid,w=f.tileXYToRectangle(m,x,y),E=(T?dzi:hzi).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:w,relativeToCenter:this._boundingSphere.center,ellipsoid:S,exaggeration:v,exaggerationRelativeHeight:C,flattenPolygonHeight:this._flattenPolygonHeight,flattenPolygon:this._flattenPolygon});if(!F(E))return;let L=this;return Promise.resolve(E).then(function(I){let R=L._quantizedVertices.length/3,P=R+L._westIndices.length+L._southIndices.length+L._eastIndices.length+L._northIndices.length,A=Fn.createTypedArray(P,I.indices),M=new Float32Array(I.vertices),V=I.center,G=I.minimumHeight,D=I.maximumHeight,N=L._boundingSphere,k=L._orientedBoundingBox,U=Z.clone(I.occludeePointInScaledSpace)??L._horizonOcclusionPoint,B=I.vertexStride,Y=IS.clone(I.encoding);return L._mesh=new vO(V,M,A,I.indexCountWithoutSkirts,R,G,D,N,U,B,k,Y,I.westIndicesSouthToNorth,I.southIndicesEastToWest,I.eastIndicesNorthToSouth,I.northIndicesWestToEast),L._quantizedVertices=void 0,L._encodedNormals=void 0,L._indices=void 0,L._uValues=void 0,L._vValues=void 0,L._heightValues=void 0,L._westIndices=void 0,L._southIndices=void 0,L._eastIndices=void 0,L._northIndices=void 0,L._mesh})};var pzi=new xp("upsampleQuantizedTerrainMesh",_O.maximumAsynchronousTasks);_F.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=pzi.scheduleTask({vertices:T.vertices,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=Math.min(this._westSkirtHeight,this._eastSkirtHeight);R=Math.min(R,this._southSkirtHeight),R=Math.min(R,this._northSkirtHeight);let P=S?R*.5:this._westSkirtHeight,A=w?R*.5:this._southSkirtHeight,M=S?this._eastSkirtHeight:R*.5,V=w?this._northSkirtHeight:R*.5,G=this._credits,D=this;return Promise.resolve(I).then(function(N){let k=new Uint16Array(N.vertices),U=Fn.createTypedArray(k.length/3,N.indices),B;return F(N.encodedNormals)&&(B=new Uint8Array(N.encodedNormals)),new _F({quantizedVertices:k,indices:U,encodedNormals:B,minimumHeight:N.minimumHeight,maximumHeight:N.maximumHeight,boundingSphere:Ei.clone(N.boundingSphere),orientedBoundingBox:Tu.clone(N.orientedBoundingBox),horizonOcclusionPoint:Z.clone(N.horizonOcclusionPoint),westIndices:N.westIndices,southIndices:N.southIndices,eastIndices:N.eastIndices,northIndices:N.northIndices,westSkirtHeight:P,southSkirtHeight:A,eastSkirtHeight:M,northSkirtHeight:V,childTileMask:0,credits:G,createdByUpsampling:!0,flattenPolygonHeight:D._flattenPolygonHeight,flattenPolygon:D._flattenPolygon,flattenRectangle:D._flattenRectangle})})};var jTe=32767,Fmt=new Z;_F.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1);x*=jTe;let y=be.clamp((m-o.south)/o.height,0,1);return y*=jTe,F(this._mesh)?gzi(this,x,y):yzi(this,x,y)};function Dmt(o,f,m,x,y,v,C,T){let S=Math.min(m,y,C),w=Math.max(m,y,C),E=Math.min(x,v,T),L=Math.max(x,v,T);return o>=S&&o<=w&&f>=E&&f<=L}var fzi=new rt,mzi=new rt,xzi=new rt;function gzi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,fzi),R=v.decodeTextureCoordinates(y,E,mzi),P=v.decodeTextureCoordinates(y,L,xzi);if(Dmt(f,m,I.x,I.y,R.x,R.y,P.x,P.y)){let A=N4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,Fmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}}function yzi(o,f,m){let x=o._uValues,y=o._vValues,v=o._heightValues,C=o._indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=x[w],R=x[E],P=x[L],A=y[w],M=y[E],V=y[L];if(Dmt(f,m,I,A,R,M,P,V)){let G=N4.computeBarycentricCoordinates(f,m,I,A,R,M,P,V,Fmt);if(G.x>=-1e-15&&G.y>=-1e-15&&G.z>=-1e-15){let D=G.x*v[w]+G.y*v[E]+G.z*v[L];return be.lerp(o._minimumHeight,o._maximumHeight,D/jTe)}}}}_F.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};_F.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var yde=_F;function _zi(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 Nmt(o){this.requestVertexNormals=o.requestVertexNormals??!1,this.requestWaterMask=o.requestWaterMask??!1,this.requestMetadata=o.requestMetadata??!0,this.ellipsoid=o.ellipsoid??yi.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=[]}Nmt.prototype.build=function(o){o._heightmapWidth=this.heightmapWidth,o._scheme=this.scheme;let f=F(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 Wmt(o,f,m){if(!f.format){let M="The tile format is not specified in the layer.json file.";throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(!f.tiles||f.tiles.length===0){let M="The layer.json file does not specify any tile URL templates.";throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let x=!1,y=!1,v=!1,C=!0,T=!1;if(f.format==="heightmap-1.0")T=!0,F(o.heightmapStructure)||(o.heightmapStructure={heightScale:1/5,heightOffset:-1e3,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1,lowestEncodedHeight:0,highestEncodedHeight:256*256-1}),y=!0,o.requestWaterMask=!0;else if(f.format.indexOf("quantized-mesh-1.")!==0){let M=`The tile format "${f.format}" is invalid or not supported.`;throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let S=f.tiles,w=f.maxzoom;o.overallMaxZoom=Math.max(o.overallMaxZoom,w);let E=[];if(F(f.valid_bounds)?E=f.valid_bounds:E=f.bounds,!f.projection||f.projection==="EPSG:4326")o.tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]});else if(f.projection==="EPSG:3857"){let M=Math.PI*o.ellipsoid.maximumRadius;E[0]<-M&&(E[0]=-M),E[1]<-M&&(E[1]=-M),E[2]>M&&(E[2]=M),E[3]>M&&(E[3]=M),o.tilingScheme=new gp({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]})}else{let M=`The projection "${f.projection}" is invalid or not supported.`;throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.heightmapWidth,o.tilingScheme.getNumberOfXTilesAtLevel(0)),!f.scheme||f.scheme==="tms"||f.scheme==="slippyMap")o.scheme=f.scheme;else{let M=`The scheme "${f.scheme}" is invalid or not supported.`;throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let L;F(f.extensions)&&f.extensions.indexOf("octvertexnormals")!==-1?x=!0:F(f.extensions)&&f.extensions.indexOf("vertexnormals")!==-1&&(x=!0,C=!1),F(f.extensions)&&f.extensions.indexOf("watermask")!==-1&&(y=!0),F(f.extensions)&&f.extensions.indexOf("metadata")!==-1&&(v=!0);let I=f.metadataAvailability,R=f.available,P;if(F(R)&&!F(I)){P=new kG(o.tilingScheme,R.length);for(let M=0;M<R.length;++M){let V=R[M],G=o.tilingScheme.getNumberOfYTilesAtLevel(M);F(o.overallAvailability[M])||(o.overallAvailability[M]=[]);for(let D=0;D<V.length;++D){let N=V[D],k=G-N.endY-1,U=G-N.startY-1;o.overallAvailability[M].push([N.startX,k,N.endX,U]),P.addAvailableTileRange(M,N.startX,k,N.endX,U)}}}else F(I)&&(L=new kG(o.tilingScheme,w),P=new kG(o.tilingScheme,w),o.overallAvailability[0]=[[0,0,1,0]],P.addAvailableTileRange(0,0,0,1,0));o.hasWaterMask=o.hasWaterMask||y,o.hasVertexNormals=o.hasVertexNormals||x,o.hasMetadata=o.hasMetadata||v,F(f.attribution)&&(o.attribution.length>0&&(o.attribution+=" "),o.attribution+=f.attribution),o.layers.push(new _zi({resource:o.lastResource,version:f.version,isHeightmap:T,tileUrlTemplates:S,availability:P,hasVertexNormals:x,hasWaterMask:y,hasMetadata:v,availabilityLevels:I,availabilityTilesLoaded:L,littleEndianExtensionSize:C}));let A=f.parentUrl;return F(A)?F(P)?(o.lastResource=o.lastResource.getDerivedResource({url:A}),o.lastResource.appendForwardSlash(),o.layerJsonResource=o.lastResource.getDerivedResource({url:"layer.json"}),await pDe(o),!0):(console.log("A layer.json can't have a parentUrl if it does't have an available array."),!0):!0}function vzi(o,f,m){let x=`An error occurred while accessing ${o.layerJsonResource.url}.`;if(F(f)&&(x+=` +${f.message}`),o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,x),o.previousError.retry)return pDe(o,m);throw new Oi(x)}async function bzi(o,f,m){await Wmt(o,f,m);let x=o.overallAvailability.length;if(x>0){let y=o.availability=new kG(o.tilingScheme,o.overallMaxZoom);for(let v=0;v<x;++v){let C=o.overallAvailability[v];for(let T=0;T<C.length;++T){let S=C[T];y.addAvailableTileRange(v,S[0],S[1],S[2],S[3])}}}if(o.attribution.length>0){let y=new Oa(o.attribution);o.tileCredits.push(y)}return!0}async function pDe(o,f){try{let m=await o.layerJsonResource.fetchJson();return bzi(o,m,f)}catch(m){return F(m)&&m.statusCode===404?(await Wmt(o,{tilejson:"2.1.0",format:"heightmap-1.0",version:"1.0.0",scheme:"tms",tiles:["{z}/{x}/{y}.terrain?v={version}"]},f),!0):vzi(o,m,f)}}function iL(o){o=o??si.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 Tr;let f=o.credit;typeof f=="string"&&(f=new Oa(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 Ybe={OCT_VERTEX_NORMALS:1,WATER_MASK:2,METADATA:4};function w7e(o){return!F(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 Czi(o,f,m,x,y){let v=new Uint16Array(f,0,o._heightmapWidth*o._heightmapWidth);return new yL({buffer:v,childTileMask:new Uint8Array(f,v.byteLength,1)[0],waterMask:new Uint8Array(f,v.byteLength+1,f.byteLength-v.byteLength-1),width:o._heightmapWidth,height:o._heightmapWidth,structure:o._heightmapStructure,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon})}function Tzi(o,f,m,x,y,v){let C=v.littleEndianExtensionSize,T=0,S=3,w=S+1,E=Float64Array.BYTES_PER_ELEMENT*S,L=Float64Array.BYTES_PER_ELEMENT*w,I=Uint16Array.BYTES_PER_ELEMENT*3,R=3,P=Uint16Array.BYTES_PER_ELEMENT,A=P*R,M=new DataView(f),V=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let G=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let D=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let N=new Ei(new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0)),M.getFloat64(T+E,!0));T+=L;let k=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let U=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let B=new Uint16Array(f,T,U*3);T+=U*I,U>64*1024&&(P=Uint32Array.BYTES_PER_ELEMENT,A=P*R);let Y=B.subarray(0,U),J=B.subarray(U,2*U),K=B.subarray(U*2,3*U);Ru.zigZagDeltaDecode(Y,J,K),T%P!==0&&(T+=P-T%P);let z=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let j=Fn.createTypedArrayFromArrayBuffer(U,f,T,z*R);T+=z*A;let q=0,O=j.length;for(let Se=0;Se<O;++Se){let Le=j[Se];j[Se]=q-Le,Le===0&&++q}let te=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ie=Fn.createTypedArrayFromArrayBuffer(U,f,T,te);T+=te*P;let re=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ee=Fn.createTypedArrayFromArrayBuffer(U,f,T,re);T+=re*P;let ae=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let oe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ae);T+=ae*P;let ce=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let pe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ce);T+=ce*P;let ue,he;for(;T<M.byteLength;){let Se=M.getUint8(T,!0);T+=Uint8Array.BYTES_PER_ELEMENT;let Le=M.getUint32(T,C);if(T+=Uint32Array.BYTES_PER_ELEMENT,Se===Ybe.OCT_VERTEX_NORMALS&&o._requestVertexNormals)ue=new Uint8Array(f,T,U*2);else if(Se===Ybe.WATER_MASK&&o._requestWaterMask)he=new Uint8Array(f,T,Le);else if(Se===Ybe.METADATA&&o._requestMetadata){let Ve=M.getUint32(T,!0);if(Ve>0){let Oe=Q_(new Uint8Array(f),T+Uint32Array.BYTES_PER_ELEMENT,Ve).available;if(F(Oe))for(let $e=0;$e<Oe.length;++$e){let at=m+$e+1,dt=Oe[$e],gt=o._tilingScheme.getNumberOfYTilesAtLevel(at);for(let Et=0;Et<dt.length;++Et){let et=dt[Et],yt=gt-et.endY-1,Rt=gt-et.startY-1;o.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt),v.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt)}}}v.availabilityTilesLoaded.addAvailableTileRange(m,x,y,x,y)}T+=Le}let fe=o.getLevelMaximumGeometricError(m)*5,de=o._tilingScheme.tileXYToRectangle(x,y,m),Ce=Tu.fromRectangle(de,G,D,o._tilingScheme.ellipsoid);return new yde({center:V,minimumHeight:G,maximumHeight:D,boundingSphere:N,orientedBoundingBox:Ce,horizonOcclusionPoint:k,quantizedVertices:B,encodedNormals:ue,indices:j,westIndices:ie,southIndices:ee,eastIndices:oe,northIndices:pe,westSkirtHeight:fe,southSkirtHeight:fe,eastSkirtHeight:fe,northSkirtHeight:fe,childTileMask:o.availability.computeChildMaskForTile(m,x,y),waterMask:he,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon,flattenRectangle:{rectangle:de,minimumHeight:G,maximumHeight:D,ellipsoid:o._tilingScheme.ellipsoid}})}iL.prototype.requestTileGeometry=function(o,f,m,x){let y=this._layers,v,C=y.length,T=!1,S=Promise.resolve();if(C===1)v=y[0];else for(let w=0;w<C;++w){let E=y[w];if(!F(E.availability)||E.availability.isTileAvailable(m,o,f)){v=E;break}let L=fDe(this,o,f,m,E,w===0);L.result&&(T=!0,S=S.then(()=>L.promise))}return!F(v)&&T?S.then(()=>new Promise(w=>{setTimeout(()=>{let E=this.requestTileGeometry(o,f,m,x);w(E)},0)})):Zmt(this,o,f,m,v,x)};function Zmt(o,f,m,x,y,v){if(!F(y))return Promise.reject(new Oi("Terrain tile doesn't exist"));let C=y.tileUrlTemplates;if(C.length===0)return;let T;!o._scheme||o._scheme==="tms"?T=o._tilingScheme.getNumberOfYTilesAtLevel(x)-m-1:T=m;let S=[];o._requestVertexNormals&&y.hasVertexNormals&&S.push(y.littleEndianExtensionSize?"octvertexnormals":"vertexnormals"),o._requestWaterMask&&y.hasWaterMask&&S.push("watermask"),o._requestMetadata&&y.hasMetadata&&S.push("metadata");let w,E,L=C[(f+T+x)%C.length],I=y.resource;F(I._ionEndpoint)&&!F(I._ionEndpoint.externalType)?(S.length!==0&&(E={extensions:S.join("-")}),w=w7e(void 0)):w=w7e(S);let R=I.getDerivedResource({url:L,templateValues:{version:y.version,z:x,x:f,y:T},queryParameters:E,headers:w,request:v}).fetchArrayBuffer();if(F(R))return R.then(function(P){return F(P)?F(o._heightmapStructure)?Czi(o,P,x,f,m):Tzi(o,P,x,f,m,y):Promise.reject(new Oi("Mesh buffer doesn't exist."))})}Object.defineProperties(iL.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}}});iL.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};iL.fromIonAssetId=async function(o,f){let m=await FG.fromAssetId(o);return iL.fromUrl(m,f)};iL.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash();let x=new Nmt(f);x.lastResource=m,x.layerJsonResource=x.lastResource.getDerivedResource({url:"layer.json"}),await pDe(x);let y=new iL(f);return x.build(y),y};iL.prototype.getTileDataAvailable=function(o,f,m){if(!F(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,y=x.length;for(let v=0;v<y;++v)if(fDe(this,o,f,m,x[v],v===0).result)return;return!1};iL.prototype.loadTileDataAvailability=function(o,f,m){if(!F(this._availability)||m>this._availability._maximumLevel||this._availability.isTileAvailable(m,o,f)||!this._hasMetadata)return;let x=this._layers,y=x.length;for(let v=0;v<y;++v){let C=fDe(this,o,f,m,x[v],v===0);if(F(C.promise))return C.promise}};function QTe(o,f,m,x){if(x===0)return;let y=o.availabilityLevels,v=x%y===0?x-y:(x/y|0)*y,C=1<<x-v,T=f/C|0,S=m/C|0;return{level:v,x:T,y:S}}function fDe(o,f,m,x,y,v){if(!F(y.availabilityLevels))return{result:!1};let C,T=function(){delete y.availabilityPromiseCache[C]},S=y.availabilityTilesLoaded,w=y.availability,E=QTe(y,f,m,x);for(;F(E);){if(w.isTileAvailable(E.level,E.x,E.y)&&!S.isTileAvailable(E.level,E.x,E.y)){let L;if(!v&&(C=`${E.level}-${E.x}-${E.y}`,L=y.availabilityPromiseCache[C],!F(L))){let I=new dm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});L=Zmt(o,E.x,E.y,E.level,y,I),F(L)&&(y.availabilityPromiseCache[C]=L,L.then(T))}return{result:!0,promise:L}}E=QTe(y,E.x,E.y,E.level)}return{result:!1}}iL._getAvailabilityTile=QTe;var W4=iL;function QM(o){o=o??si.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 SS(m),this._workerName="createCircleGeometry"}QM.packedLength=SS.packedLength;QM.pack=function(o,f,m){return SS.pack(o._ellipseGeometry,f,m)};var E7e=new SS({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),dy={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new Yr,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};QM.unpack=function(o,f,m){let x=SS.unpack(o,f,E7e);return dy.center=Z.clone(x._center,dy.center),dy.ellipsoid=yi.clone(x._ellipsoid,dy.ellipsoid),dy.ellipsoid=yi.clone(x._ellipsoid,E7e._ellipsoid),dy.height=x._height,dy.extrudedHeight=x._extrudedHeight,dy.granularity=x._granularity,dy.vertexFormat=Yr.clone(x._vertexFormat,dy.vertexFormat),dy.stRotation=x._stRotation,dy.shadowVolume=x._shadowVolume,F(m)?(dy.semiMajorAxis=x._semiMajorAxis,dy.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new SS(dy),m):(dy.radius=x._semiMajorAxis,new QM(dy))};QM.createGeometry=function(o){return SS.createGeometry(o._ellipseGeometry)};QM.createShadowVolume=function(o,f,m){let x=o._ellipseGeometry._granularity,y=o._ellipseGeometry._ellipsoid,v=f(x,y),C=m(x,y);return new QM({center:o._ellipseGeometry._center,radius:o._ellipseGeometry._semiMajorAxis,ellipsoid:y,stRotation:o._ellipseGeometry._stRotation,granularity:x,extrudedHeight:v,height:C,vertexFormat:Yr.POSITION_ONLY,shadowVolume:!0})};Object.defineProperties(QM.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var Omt=QM;function QH(o){o=o??si.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 LI(m),this._workerName="createCircleOutlineGeometry"}QH.packedLength=LI.packedLength;QH.pack=function(o,f,m){return LI.pack(o._ellipseGeometry,f,m)};var Szi=new LI({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),BC={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};QH.unpack=function(o,f,m){let x=LI.unpack(o,f,Szi);return BC.center=Z.clone(x._center,BC.center),BC.ellipsoid=yi.clone(x._ellipsoid,BC.ellipsoid),BC.height=x._height,BC.extrudedHeight=x._extrudedHeight,BC.granularity=x._granularity,BC.numberOfVerticalLines=x._numberOfVerticalLines,F(m)?(BC.semiMajorAxis=x._semiMajorAxis,BC.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new LI(BC),m):(BC.radius=x._semiMajorAxis,new QH(BC))};QH.createGeometry=function(o){return LI.createGeometry(o._ellipseGeometry)};var Xmt=QH;function wzi(o){return o=o??si.EMPTY_OBJECT,W4.fromIonAssetId(2426648,{requestVertexNormals:o.requestVertexNormals??!1})}var mDe=wzi;function Ezi(o){return o=o??si.EMPTY_OBJECT,W4.fromIonAssetId(1,{requestVertexNormals:o.requestVertexNormals??!1,requestWaterMask:o.requestWaterMask??!1,ellipsoid:yi.WGS84})}var _de=Ezi;function Z4(o){o=o??si.EMPTY_OBJECT,this._callback=o.callback,this._tilingScheme=o.tilingScheme,F(this._tilingScheme)||(this._tilingScheme=new _h({ellipsoid:o.ellipsoid??yi.default})),this._width=o.width,this._height=o.height;let f=Math.max(this._width,this._height);this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new Tr;let m=o.credit;typeof m=="string"&&(m=new Oa(m)),this._credit=m}Object.defineProperties(Z4.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}}});Z4.prototype.requestTileGeometry=function(o,f,m,x){let y=this._callback(o,f,m);if(!F(y))return;let v=this._width,C=this._height;return Promise.resolve(y).then(function(T){let S=T;return Array.isArray(S)&&(S=new Float64Array(S)),new yL({buffer:S,width:v,height:C})})};Z4.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};Z4.prototype.getTileDataAvailable=function(o,f,m){};Z4.prototype.loadTileDataAvailability=function(o,f,m){};var kmt=Z4,Lzi=1953029805,Pzi=2917034100;function xDe(o,f){if(xDe.passThroughDataForTesting)return f;let m=o.byteLength;if(m===0||m%4!==0)throw new Oi("The length of key must be greater than 0 and a multiple of 4.");let x=new DataView(f),y=x.getUint32(0,!0);if(y===Lzi||y===Pzi)return f;let v=new DataView(o),C=0,T=f.byteLength,S=T-T%8,w=m,E,L=8;for(;C<S;)for(L=(L+8)%24,E=L;C<S&&E<w;)x.setUint32(C,x.getUint32(C,!0)^v.getUint32(E,!0),!0),x.setUint32(C+4,x.getUint32(C+4,!0)^v.getUint32(E+4,!0),!0),C+=8,E+=24;if(C<T)for(E>=w&&(L=(L+8)%24,E=L);C<T;)x.setUint8(C,x.getUint8(C)^v.getUint8(E)),C++,E++}xDe.passThroughDataForTesting=!1;var gDe=xDe;function Umt(o){this.proxy=o}Umt.prototype.getURL=function(o){let f=this.proxy.indexOf("?")===-1?"?":"";return this.proxy+f+encodeURIComponent(o)};var Bmt=Umt;function Hmt(o,f){return pL("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(Hmt,"EMPTY_OBJECT",{get:function(){return pL("defaultValue.EMPTY_OBJECT","defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead"),si.EMPTY_OBJECT}});var zmt=Hmt;function vde(){wt.throwInstantiationError()}Object.defineProperties(vde.prototype,{credit:{get:wt.throwInstantiationError}});vde.getCreditsFromResult=function(o){if(F(o.attributions))return o.attributions.map(Oa.getIonCredit)};vde.prototype.geocode=wt.throwInstantiationError;var bde=vde,Izi={SEARCH:0,AUTOCOMPLETE:1},a$=Object.freeze(Izi);function Ymt(){wt.throwInstantiationError()}Ymt.createGeometry=function(o){wt.throwInstantiationError()};var Kmt=Ymt,Rzi=k0(net(),1);function Azi(o,f){return(o&f)!==0}var m1=Azi,Mzi=[1,2,4,8],Jmt=15,Vzi=16,Gzi=64,Fzi=128;function DI(o,f,m,x,y,v){this._bits=o,this.cnodeVersion=f,this.imageryVersion=m,this.terrainVersion=x,this.imageryProvider=y,this.terrainProvider=v,this.ancestorHasTerrain=!1,this.terrainState=void 0}DI.clone=function(o,f){return F(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 DI(o._bits,o.cnodeVersion,o.imageryVersion,o.terrainVersion,o.imageryProvider,o.terrainProvider),f.ancestorHasTerrain=o.ancestorHasTerrain,f.terrainState=o.terrainState,f};DI.prototype.setParent=function(o){this.ancestorHasTerrain=o.ancestorHasTerrain||this.hasTerrain()};DI.prototype.hasSubtree=function(){return m1(this._bits,Vzi)};DI.prototype.hasImagery=function(){return m1(this._bits,Gzi)};DI.prototype.hasTerrain=function(){return m1(this._bits,Fzi)};DI.prototype.hasChildren=function(){return m1(this._bits,Jmt)};DI.prototype.hasChild=function(o){return m1(this._bits,Mzi[o])};DI.prototype.getChildBitmask=function(){return this._bits&Jmt};var yDe=DI;function Dzi(o){let f=o.length,m=new ArrayBuffer(f),x=new Uint8Array(m);for(let y=0;y<f;++y)x[y]=o.charCodeAt(y);return m}var Nzi=Dzi(`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 w1(o){this.imageryPresent=!0,this.protoImagery=void 0,this.terrainPresent=!0,this.negativeAltitudeExponentBias=32,this.negativeAltitudeThreshold=be.EPSILON12,this.providers={},this.key=void 0,this._resource=void 0,this._quadPacketVersion=1,this._tileInfo={},this._subtreePromises={}}Object.defineProperties(w1.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},resource:{get:function(){return this._resource}}});w1.fromUrl=async function(o){let f=o;typeof f!="string"&&!(f instanceof Mr)&&(f=o.url);let m=Mr.createIfNeeded(f);m.appendForwardSlash();let x=new w1;x._resource=m;try{await Wzi(x),await x.getQuadTreePacket("",x._quadPacketVersion)}catch(y){let v=`An error occurred while accessing ${Qmt(x,"",1).url}: ${y}`;throw new Oi(v)}return x};w1.tileXYToQuadKey=function(o,f,m){let x="";for(let y=m;y>=0;--y){let v=1<<y,C=0;m1(f,v)?m1(o,v)&&(C|=1):(C|=2,m1(o,v)||(C|=1)),x+=C}return x};w1.quadKeyToTileXY=function(o){let f=0,m=0,x=o.length-1;for(let y=x;y>=0;--y){let v=1<<y,C=+o[x-y];m1(C,2)?m1(C,1)||(f|=v):(m|=v,m1(C,1)&&(f|=v))}return{x:f,y:m,level:x}};w1.prototype.isValid=function(o){let f=this.getTileInformationFromQuadKey(o);if(F(f))return f!==null;let m=!0,x=o,y;for(;x.length>1;)if(y=x.substring(x.length-1),x=x.substring(0,x.length-1),f=this.getTileInformationFromQuadKey(x),F(f)){!f.hasSubtree()&&!f.hasChild(parseInt(y))&&(m=!1);break}else if(f===null){m=!1;break}return m};var jmt=new xp("decodeGoogleEarthEnterprisePacket");w1.prototype.getQuadTreePacket=function(o,f,m){f=f??1,o=o??"";let x=Qmt(this,o,f,m).fetchArrayBuffer();if(!F(x))return;let y=this._tileInfo,v=this.key;return x.then(function(C){return jmt.scheduleTask({buffer:C,quadKey:o,type:"Metadata",key:v},[C]).then(function(T){let S,w=-1;if(o!==""){w=o.length+1;let I=T[o];S=y[o],S._bits|=I._bits,delete T[o]}let E=Object.keys(T);E.sort(function(I,R){return I.length-R.length});let L=E.length;for(let I=0;I<L;++I){let R=E[I];if(T[R]!==null){let P=yDe.clone(T[R]),A=R.length;if(A===w)P.setParent(S);else if(A>1){let M=y[R.substring(0,R.length-1)];P.setParent(M)}y[R]=P}else y[R]=null}})})};w1.prototype.populateSubtree=function(o,f,m,x){let y=w1.tileXYToQuadKey(o,f,m);return qTe(this,y,x)};function qTe(o,f,m){let x=o._tileInfo,y=f,v=x[y];if(F(v)&&(!v.hasSubtree()||v.hasChildren()))return v;for(;v===void 0&&y.length>1;)y=y.substring(0,y.length-1),v=x[y];let C,T=o._subtreePromises,S=T[y];if(F(S))return S.then(function(){return C=new dm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),qTe(o,f,C)});if(!F(v)||!v.hasSubtree())return Promise.reject(new Oi(`Couldn't load metadata for tile ${f}`));if(S=o.getQuadTreePacket(y,v.cnodeVersion,m),!!F(S))return T[y]=S,S.then(function(){return C=new dm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),qTe(o,f,C)}).finally(function(){delete T[y]})}w1.prototype.getTileInformation=function(o,f,m){let x=w1.tileXYToQuadKey(o,f,m);return this._tileInfo[x]};w1.prototype.getTileInformationFromQuadKey=function(o){return this._tileInfo[o]};function Qmt(o,f,m,x){return o._resource.getDerivedResource({url:`flatfile?q2-0${f}-q.${m.toString()}`,request:x})}var Kbe,Jbe;function Wzi(o){let f=o._resource.getDerivedResource({url:"dbRoot.v5",queryParameters:{output:"proto"}});if(!F(Jbe)){let m=oa("ThirdParty/google-earth-dbroot-parser.js"),x=window.cesiumGoogleEarthDbRootParser;Jbe=Qle(m).then(function(){Kbe=window.cesiumGoogleEarthDbRootParser(Rzi),F(x)?window.cesiumGoogleEarthDbRootParser=x:delete window.cesiumGoogleEarthDbRootParser})}return Jbe.then(function(){return f.fetchArrayBuffer()}).then(function(m){let x=Kbe.EncryptedDbRootProto.decode(new Uint8Array(m)),y=x.encryptionData,v=y.byteOffset,C=v+y.byteLength,T=o.key=y.buffer.slice(v,C);y=x.dbrootData,v=y.byteOffset,C=v+y.byteLength;let S=y.buffer.slice(v,C);return jmt.scheduleTask({buffer:S,type:"DbRoot",key:T},[S])}).then(function(m){let x=Kbe.DbRootProto.decode(new Uint8Array(m.buffer));if(o.imageryPresent=x.imageryPresent??o.imageryPresent,o.protoImagery=x.protoImagery,o.terrainPresent=x.terrainPresent??o.terrainPresent,F(x.endSnippet)&&F(x.endSnippet.model)){let T=x.endSnippet.model;o.negativeAltitudeExponentBias=T.negativeAltitudeExponentBias??o.negativeAltitudeExponentBias,o.negativeAltitudeThreshold=T.compressedNegativeAltitudeThreshold??o.negativeAltitudeThreshold}F(x.databaseVersion)&&(o._quadPacketVersion=x.databaseVersion.quadtreeVersion??o._quadPacketVersion);let y=o.providers,v=x.providerInfo??[],C=v.length;for(let T=0;T<C;++T){let S=v[T],w=S.copyrightString;F(w)&&(y[S.providerId]=new Oa(w.value))}}).catch(function(){console.log(`Failed to retrieve ${f.url}. Using defaults.`),o.key=Nzi})}var O4=w1;function ZO(o){o=o??si.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(ZO.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){}}});var qmt="createVerticesFromGoogleEarthEnterpriseBuffer",Zzi=new xp(qmt),Ozi=new xp(qmt,_O.maximumAsynchronousTasks),L7e=new vi,jbe=new vi;ZO.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid;f.tileXYToNativeRectangle(m,x,y,L7e),f.tileXYToRectangle(m,x,y,jbe);let w=S.cartographicToCartesian(vi.center(jbe)),E=40075.16/(1<<y);this._skirtHeight=Math.min(E*8,1e3);let L=(T?Ozi:Zzi).scheduleTask({buffer:this._buffer,nativeRectangle:L7e,rectangle:jbe,relativeToCenter:w,ellipsoid:S,skirtHeight:this._skirtHeight,exaggeration:v,exaggerationRelativeHeight:C,includeWebMercatorT:!0,negativeAltitudeExponentBias:this._negativeAltitudeExponentBias,negativeElevationThreshold:this._negativeElevationThreshold});if(!F(L))return;let I=this;return L.then(function(R){return I._mesh=new vO(w,new Float32Array(R.vertices),new Uint16Array(R.indices),R.indexCountWithoutSkirts,R.vertexCountWithoutSkirts,R.minimumHeight,R.maximumHeight,Ei.clone(R.boundingSphere3D),Z.clone(R.occludeePointInScaledSpace),R.numberOfAttributes,Tu.clone(R.orientedBoundingBox),IS.clone(R.encoding),R.westIndicesSouthToNorth,R.southIndicesEastToWest,R.eastIndicesNorthToSouth,R.northIndicesWestToEast),I._minimumHeight=R.minimumHeight,I._maximumHeight=R.maximumHeight,I._buffer=void 0,I._mesh})};ZO.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1),y=be.clamp((m-o.south)/o.height,0,1);return F(this._mesh)?Hzi(this,x,y):Kzi(this,x,y,o)};var Xzi=new xp("upsampleQuantizedTerrainMesh",_O.maximumAsynchronousTasks);ZO.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=Xzi.scheduleTask({vertices:T.vertices,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=this;return I.then(function(P){let A=new Uint16Array(P.vertices),M=Fn.createTypedArray(A.length/3,P.indices),V=R._skirtHeight;return new yde({quantizedVertices:A,indices:M,minimumHeight:P.minimumHeight,maximumHeight:P.maximumHeight,boundingSphere:Ei.clone(P.boundingSphere),orientedBoundingBox:Tu.clone(P.orientedBoundingBox),horizonOcclusionPoint:Z.clone(P.horizonOcclusionPoint),westIndices:P.westIndices,southIndices:P.southIndices,eastIndices:P.eastIndices,northIndices:P.northIndices,westSkirtHeight:V,southSkirtHeight:V,eastSkirtHeight:V,northSkirtHeight:V,childTileMask:0,createdByUpsampling:!0,credits:R._credits})})};ZO.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};ZO.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var kzi=new rt,Uzi=new rt,Bzi=new rt,$mt=new Z;function Hzi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,kzi),R=v.decodeTextureCoordinates(y,E,Uzi),P=v.decodeTextureCoordinates(y,L,Bzi),A=N4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,$mt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}var zzi=Uint16Array.BYTES_PER_ELEMENT,P7e=Uint32Array.BYTES_PER_ELEMENT,Qbe=Int32Array.BYTES_PER_ELEMENT,Yzi=Float32Array.BYTES_PER_ELEMENT,qbe=Float64Array.BYTES_PER_ELEMENT;function Kzi(o,f,m,x){let y=o._buffer,v=0,C=0,T=0;m>.5?(f>.5?(v=2,C=.5):v=3,T=.5):f>.5&&(v=1,C=.5);let S=new DataView(y),w=0;for(let k=0;k<v;++k)w+=S.getUint32(w,!0),w+=P7e;w+=P7e,w+=2*qbe;let E=be.toRadians(S.getFloat64(w,!0)*180);w+=qbe;let L=be.toRadians(S.getFloat64(w,!0)*180);w+=qbe;let I=x.width/E/2,R=x.height/L/2,P=S.getInt32(w,!0);w+=Qbe;let A=S.getInt32(w,!0)*3;w+=Qbe,w+=Qbe;let M=new Array(P),V=new Array(P),G=new Array(P),D;for(D=0;D<P;++D)M[D]=C+S.getUint8(w++)*I,V[D]=T+S.getUint8(w++)*R,G[D]=S.getFloat32(w,!0)*6371010,w+=Yzi;let N=new Array(A);for(D=0;D<A;++D)N[D]=S.getUint16(w,!0),w+=zzi;for(D=0;D<A;D+=3){let k=N[D],U=N[D+1],B=N[D+2],Y=M[k],J=M[U],K=M[B],z=V[k],j=V[U],q=V[B],O=N4.computeBarycentricCoordinates(f,m,Y,z,J,j,K,q,$mt);if(O.x>=-1e-15&&O.y>=-1e-15&&O.z>=-1e-15)return O.x*G[k]+O.y*G[U]+O.z*G[B]}}var dle=ZO,HT={UNKNOWN:0,NONE:1,SELF:2,PARENT:3},moe=new $t;function Cde(){this._terrainCache={},this._lastTidy=$t.now()}Cde.prototype.add=function(o,f){this._terrainCache[o]={buffer:f,timestamp:$t.now()}};Cde.prototype.get=function(o){let f=this._terrainCache[o];if(F(f))return delete this._terrainCache[o],f.buffer};Cde.prototype.tidy=function(){if($t.now(moe),$t.secondsDifference(moe,this._lastTidy)>10){let o=this._terrainCache,f=Object.keys(o),m=f.length;for(let x=0;x<m;++x){let y=f[x],v=o[y];$t.secondsDifference(moe,v.timestamp)>10&&delete o[y]}$t.clone(moe,this._lastTidy)}};function vF(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._levelZeroMaximumGeometricError=40075.16,this._terrainCache=new Cde,this._terrainPromises={},this._terrainRequests={},this._errorEvent=new Tr}Object.defineProperties(vF.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(){}}});vF.fromMetadata=function(o,f){if(!o.terrainPresent)throw new Oi(`The server ${o.url} doesn't have terrain`);let m=new vF(f);return m._metadata=o,m};var Jzi=new xp("decodeGoogleEarthEnterprisePacket");function I7e(o,f,m){let x=f.getChildBitmask();if(f.terrainState===HT.PARENT){x=0;for(let y=0;y<4;++y){let v=m.getTileInformationFromQuadKey(o+y.toString());F(v)&&v.hasTerrain()&&(x|=1<<y)}}return x}vF.prototype.requestTileGeometry=function(o,f,m,x){let y=O4.tileXYToQuadKey(o,f,m),v=this._terrainCache,C=this._metadata,T=C.getTileInformationFromQuadKey(y);if(!F(T))return Promise.reject(new Oi("Terrain tile doesn't exist"));let S=T.terrainState;F(S)||(S=T.terrainState=HT.UNKNOWN);let w=v.get(y);if(F(w)){let V=C.providers[T.terrainProvider];return Promise.resolve(new dle({buffer:w,childTileMask:I7e(y,T,C),credits:F(V)?[V]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold}))}if(v.tidy(),T.ancestorHasTerrain){if(S===HT.NONE)return Promise.reject(new Oi("Terrain tile doesn't exist"))}else return Promise.resolve(new yL({buffer:new Uint8Array(16*16),width:16,height:16}));let E,L=y,I=-1;switch(S){case HT.SELF:I=T.terrainVersion;break;case HT.PARENT:L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),I=E.terrainVersion;break;case HT.UNKNOWN:T.hasTerrain()?I=T.terrainVersion:(L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),F(E)&&E.hasTerrain()&&(I=E.terrainVersion));break}if(I<0)return Promise.reject(new Oi("Terrain tile doesn't exist"));let R=this._terrainPromises,P=this._terrainRequests,A,M;if(F(R[L]))A=R[L],M=P[L];else{M=x;let V=jzi(this,L,I,M).fetchArrayBuffer();if(!F(V))return;A=V.then(function(G){return F(G)?Jzi.scheduleTask({buffer:G,type:"Terrain",key:C.key},[G]).then(function(D){let N=C.getTileInformationFromQuadKey(L);N.terrainState=HT.SELF,v.add(L,D[0]);let k=N.terrainProvider,U=D.length-1;for(let B=0;B<U;++B){let Y=L+B.toString(),J=C.getTileInformationFromQuadKey(Y);F(J)&&(v.add(Y,D[B+1]),J.terrainState=HT.PARENT,J.terrainProvider===0&&(J.terrainProvider=k))}}):Promise.reject(new Oi("Failed to load terrain."))}),R[L]=A,P[L]=M,A=A.finally(function(){delete R[L],delete P[L]})}return A.then(function(){let V=v.get(y);if(F(V)){let G=C.providers[T.terrainProvider];return new dle({buffer:V,childTileMask:I7e(y,T,C),credits:F(G)?[G]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold})}return Promise.reject(new Oi("Failed to load terrain."))}).catch(function(V){return M.state===fc.CANCELLED?(x.state=M.state,Promise.reject(V)):(T.terrainState=HT.NONE,Promise.reject(V))})};vF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};vF.prototype.getTileDataAvailable=function(o,f,m){let x=this._metadata,y=O4.tileXYToQuadKey(o,f,m),v=x.getTileInformation(o,f,m);if(v===null)return!1;if(F(v)){if(!v.ancestorHasTerrain)return!0;let C=v.terrainState;if(C===HT.NONE)return!1;if((!F(C)||C===HT.UNKNOWN)&&(v.terrainState=HT.UNKNOWN,!v.hasTerrain())){y=y.substring(0,y.length-1);let T=x.getTileInformationFromQuadKey(y);if(!F(T)||!T.hasTerrain())return!1}return!0}if(x.isValid(y)){let C=new dm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});x.populateSubtree(o,f,m,C)}return!1};vF.prototype.loadTileDataAvailability=function(o,f,m){};function jzi(o,f,m,x){return m=F(m)&&m>0?m:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1c-0${f}-t.${m.toString()}`,request:x})}var ext=vF,Qzi="https://maps.googleapis.com/maps/api/geocode/json",txt='<img alt="Google" src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align:-5px">';function _De(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._resource=new Mr({url:Qzi,queryParameters:{key:f}}),this._credit=new Oa(txt,!0)}Object.defineProperties(_De.prototype,{credit:{get:function(){return this._credit}}});_De.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 Oi(`GoogleGeocoderService got a bad response ${f.status}: ${f.error_message}`);return f.results.map(m=>{let x=m.geometry.viewport.southwest,y=m.geometry.viewport.northeast;return{displayName:m.formatted_address,destination:vi.fromDegrees(x.lng,x.lat,y.lng,y.lat),attribution:{html:txt,collapsible:!1}}})};var ixt=_De,Tde={};Tde.defaultApiKey=void 0;Tde.mapTilesApiEndpoint=new Mr({url:"https://tile.googleapis.com/v1/"});Tde.getDefaultCredit=function(){return new Oa('<img src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align: -5px" alt="Google">',!0)};var gQ=Tde,s$={};s$.type=void 0;s$.getRequiredDataPoints=wt.throwInstantiationError;s$.interpolateOrderZero=wt.throwInstantiationError;s$.interpolate=wt.throwInstantiationError;var rxt=s$,qzi={GOOGLE:"GOOGLE",BING:"BING",DEFAULT:"DEFAULT"},kZ=Object.freeze(qzi);function vDe(o){this._url=Mr.createIfNeeded(o),this._url.appendForwardSlash()}Object.defineProperties(vDe.prototype,{url:{get:function(){return this._url}},credit:{get:function(){}}});vDe.prototype.geocode=async function(o,f){return this._url.getDerivedResource({url:f===a$.AUTOCOMPLETE?"autocomplete":"search",queryParameters:{text:o}}).fetchJson().then(function(m){return m.features.map(function(x){let y,v=x.bbox;if(F(v))y=vi.fromDegrees(v[0],v[1],v[2],v[3]);else{let C=x.geometry.coordinates[0],T=x.geometry.coordinates[1];y=Z.fromDegrees(C,T)}return{displayName:x.properties.label,destination:y,attributions:m.attributions}})})};var bDe=vDe;function $zi(o){if(!Object.values(kZ).some(f=>f===o))throw new wt(`Invalid geocodeProviderType: "${o}"`)}var nxt=Object.freeze({[kZ.GOOGLE]:"google",[kZ.BING]:"bing",[kZ.DEFAULT]:void 0});function e4i(o){return nxt[o]}function t4i(o){return Object.entries(nxt).find(f=>f[1]===o)[0]}function CDe(o){o=o??si.EMPTY_OBJECT;let f=o.geocodeProviderType??kZ.DEFAULT,m=o.accessToken??GG.defaultAccessToken,x=Mr.createIfNeeded(o.server??GG.defaultServer);x.appendForwardSlash();let y=GG.getDefaultTokenCredit(m);F(y)&&o.scene.frameState.creditDisplay.addStaticCredit(Oa.clone(y));let v=x.getDerivedResource({url:"v1/geocode"});F(m)&&v.appendQueryParameters({access_token:m}),this._accessToken=m,this._server=x,this._pelias=new bDe(v),this.geocodeProviderType=f}Object.defineProperties(CDe.prototype,{credit:{get:function(){}},geocodeProviderType:{get:function(){return t4i(this._pelias.url.queryParameters.geocoder)},set:function(o){$zi(o);let f={...this._pelias.url.queryParameters,geocoder:e4i(o)};F(f.geocoder)||delete f.geocoder,this._pelias.url.setQueryParameters(f)}}});CDe.prototype.geocode=async function(o,f){return this._pelias.geocode(o,f)};var Sde=CDe,um={};um.ExportStatus=Object.freeze({NotStarted:"NotStarted",InProgress:"InProgress",Complete:"Complete",Invalid:"Invalid"});um.ExportType=Object.freeze({IMODEL:"IMODEL",CESIUM:"CESIUM","3DTILES":"3DTILES"});um.RealityDataType=Object.freeze({Cesium3DTiles:"Cesium3DTiles",PNTS:"PNTS",RealityMesh3DTiles:"RealityMesh3DTiles",Terrain3DTiles:"Terrain3DTiles",KML:"KML",GeoJSON:"GeoJSON",Unstructured:"Unstructured"});um.defaultAccessToken=void 0;um.defaultShareKey=void 0;um._getAuthorizationHeader=function(){return F(um.defaultShareKey)?`Basic ${um.defaultShareKey}`:`Bearer ${um.defaultAccessToken}`};um.apiEndpoint=new Mr({url:"https://api.bentley.com"});um.getExports=async function(o){let f=new Mr({url:`${um.apiEndpoint}mesh-export`,headers:{Authorization:um._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json",Prefer:"return=representation"},queryParameters:{iModelId:o,exportType:um.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 y=x.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${y}`)}else{if(m.statusCode===403)throw console.error(x.error.code,x.error.message),new Oi("Not allowed, forbidden");if(m.statusCode===422)throw new Oi(`Unprocessable Entity:${x.error.code} ${x.error.message}`);if(m.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${m.statusCode}`)}};um.getRealityDataMetadata=async function(o,f){let m=new Mr({url:`${um.apiEndpoint}reality-management/reality-data/${f}`,headers:{Authorization:um._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{return(await m.fetchJson()).realityData}catch(x){let y=JSON.parse(x.response);if(x.statusCode===401){let v=y.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${v}`)}else{if(x.statusCode===403)throw console.error(y.error.code,y.error.message),new Oi("Not allowed, forbidden");if(x.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(x.statusCode===422)throw new Oi(`Unprocessable Entity:${y.error.code} ${y.error.message}`);if(x.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${x.statusCode}`)}};um.getRealityDataURL=async function(o,f,m){let x=new Mr({url:`${um.apiEndpoint}reality-management/reality-data/${f}/readaccess`,headers:{Authorization:um._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{let y=(await x.fetchJson())._links.containerUrl.href,v=new URL(y);return v.pathname=`${v.pathname}/${m}`,v.toString()}catch(y){let v=JSON.parse(y.response);if(y.statusCode===401){let C=v.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${C}`)}else{if(y.statusCode===403)throw console.error(v.error.code,v.error.message),new Oi("Not allowed, forbidden");if(y.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(y.statusCode===422)throw new Oi(`Unprocessable Entity:${v.error.code} ${v.error.message}`);if(y.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${y.statusCode}`)}};var wg=um,i4i=new xp("transcodeCRNToDXT",Number.POSITIVE_INFINITY);function r4i(o){let f;if(o instanceof ArrayBuffer||ArrayBuffer.isView(o)?f=Promise.resolve(o):f=Mr.createIfNeeded(o).fetchArrayBuffer(),!!F(f))return f.then(function(m){if(!F(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)),i4i.scheduleTask(m,x)}).then(function(m){return NS.clone(m)})}var oxt=r4i;function wde(){wt.throwInstantiationError()}Object.defineProperties(wde.prototype,{ellipsoid:{get:wt.throwInstantiationError}});wde.prototype.project=wt.throwInstantiationError;wde.prototype.unproject=wt.throwInstantiationError;var axt=wde;function X4(o){o=o??si.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(X4.prototype,{times:{get:function(){return this._times}},weights:{get:function(){return this._weights}}});X4.prototype.findTimeInterval=B0.prototype.findTimeInterval;X4.prototype.wrapTime=B0.prototype.wrapTime;X4.prototype.clampTime=B0.prototype.clampTime;X4.prototype.evaluate=function(o,f){let m=this.weights,x=this.times,y=this._lastTimeIndex=this.findTimeInterval(o,this._lastTimeIndex),v=(o-x[y])/(x[y+1]-x[y]);F(f)||(f=new Array(this._count));for(let C=0;C<this._count;C++){let T=y*this._count+C;f[C]=m[T]*(1-v)+m[T+this._count]*v}return f};var sxt=X4;function TDe(o,f,m){o=Mr.createIfNeeded(o),o.appendForwardSlash(),o.setQueryParameters({key:f}),this._url=o,this._params=m??{},this._credit=new Oa('Geodata copyright <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',!1)}Object.defineProperties(TDe.prototype,{url:{get:function(){return this._url}},params:{get:function(){return this._params}},credit:{get:function(){return this._credit}}});TDe.prototype.geocode=async function(o){return this._url.getDerivedResource({url:"json",queryParameters:va(this._params,{q:o})}).fetchJson().then(function(f){return f.results.map(function(m){let x,y=m.bounds;if(F(y))x=vi.fromDegrees(y.southwest.lng,y.southwest.lat,y.northeast.lng,y.northeast.lat);else{let v=m.geometry.lat,C=m.geometry.lng;x=Z.fromDegrees(v,C)}return{displayName:m.formatted,destination:x}})})};var lxt=TDe,n4i={packedLength:void 0,pack:wt.throwInstantiationError,unpack:wt.throwInstantiationError},uxt=n4i,o4i={packedInterpolationLength:void 0,convertPackedArrayForInterpolation:wt.throwInstantiationError,unpackInterpolationResult:wt.throwInstantiationError},cxt=o4i,a4i=new Z;function s4i(o,f,m,x){let y=aue(o,f,m,x,a4i);return F(y)?y.x>0&&y.y>0&&y.z>0:!1}var hxt=s4i;function dxt(){wt.throwInstantiationError()}dxt.prototype.getURL=wt.throwInstantiationError;var pxt=dxt;function l4i(o,f,m,x,y,v,C){let T=od.numberOfPoints(o,f,y),S,w=m.red,E=m.green,L=m.blue,I=m.alpha,R=x.red,P=x.green,A=x.blue,M=x.alpha;if(Xe.equals(m,x)){for(S=0;S<T;S++)v[C++]=Xe.floatToByte(w),v[C++]=Xe.floatToByte(E),v[C++]=Xe.floatToByte(L),v[C++]=Xe.floatToByte(I);return C}let V=(R-w)/T,G=(P-E)/T,D=(A-L)/T,N=(M-I)/T,k=C;for(S=0;S<T;S++)v[k++]=Xe.floatToByte(w+S*V),v[k++]=Xe.floatToByte(E+S*G),v[k++]=Xe.floatToByte(L+S*D),v[k++]=Xe.floatToByte(I+S*N);return k}function F6(o){o=o??si.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??qa.GEODESIC,this._granularity=o.granularity??be.RADIANS_PER_DEGREE,this._ellipsoid=o.ellipsoid??yi.default,this._workerName="createSimplePolylineGeometry";let y=1+f.length*Z.packedLength;y+=F(m)?1+m.length*Xe.packedLength:1,this.packedLength=y+yi.packedLength+3}F6.pack=function(o,f,m){m=m??0;let x,y=o._positions,v=y.length;for(f[m++]=v,x=0;x<v;++x,m+=Z.packedLength)Z.pack(y[x],f,m);let C=o._colors;for(v=F(C)?C.length:0,f[m++]=v,x=0;x<v;++x,m+=Xe.packedLength)Xe.pack(C[x],f,m);return yi.pack(o._ellipsoid,f,m),m+=yi.packedLength,f[m++]=o._colorsPerVertex?1:0,f[m++]=o._arcType,f[m]=o._granularity,f};F6.unpack=function(o,f,m){f=f??0;let x,y=o[f++],v=new Array(y);for(x=0;x<y;++x,f+=Z.packedLength)v[x]=Z.unpack(o,f);y=o[f++];let C=y>0?new Array(y):void 0;for(x=0;x<y;++x,f+=Xe.packedLength)C[x]=Xe.unpack(o,f);let T=yi.unpack(o,f);f+=yi.packedLength;let S=o[f++]===1,w=o[f++],E=o[f];return F(m)?(m._positions=v,m._colors=C,m._ellipsoid=T,m._colorsPerVertex=S,m._arcType=w,m._granularity=E,m):new F6({positions:v,colors:C,ellipsoid:T,colorsPerVertex:S,arcType:w,granularity:E})};var yae=new Array(2),_ae=new Array(2),u4i={positions:yae,height:_ae,ellipsoid:void 0,minDistance:void 0,granularity:void 0};F6.createGeometry=function(o){let f=o._positions,m=o._colors,x=o._colorsPerVertex,y=o._arcType,v=o._granularity,C=o._ellipsoid,T=be.chordLength(v,C.maximumRadius),S=F(m)&&!x,w,E=f.length,L,I,R,P,A=0;if(y===qa.GEODESIC||y===qa.RHUMB){let N,k,U;y===qa.GEODESIC?(N=be.chordLength(v,C.maximumRadius),k=od.numberOfPoints,U=od.generateArc):(N=v,k=od.numberOfPointsRhumbLine,U=od.generateRhumbArc);let B=od.extractHeights(f,C),Y=u4i;if(y===qa.GEODESIC?Y.minDistance=T:Y.granularity=v,Y.ellipsoid=C,S){let J=0;for(w=0;w<E-1;w++)J+=k(f[w],f[w+1],N)+1;L=new Float64Array(J*3),R=new Uint8Array(J*4),Y.positions=yae,Y.height=_ae;let K=0;for(w=0;w<E-1;++w){yae[0]=f[w],yae[1]=f[w+1],_ae[0]=B[w],_ae[1]=B[w+1];let z=U(Y);if(F(m)){let j=z.length/3;P=m[w];for(let q=0;q<j;++q)R[K++]=Xe.floatToByte(P.red),R[K++]=Xe.floatToByte(P.green),R[K++]=Xe.floatToByte(P.blue),R[K++]=Xe.floatToByte(P.alpha)}L.set(z,A),A+=z.length}}else if(Y.positions=f,Y.height=B,L=new Float64Array(U(Y)),F(m)){for(R=new Uint8Array(L.length/3*4),w=0;w<E-1;++w){let K=f[w],z=f[w+1],j=m[w],q=m[w+1];A=l4i(K,z,j,q,T,R,A)}let J=m[E-1];R[A++]=Xe.floatToByte(J.red),R[A++]=Xe.floatToByte(J.green),R[A++]=Xe.floatToByte(J.blue),R[A++]=Xe.floatToByte(J.alpha)}}else{I=S?E*2-2:E,L=new Float64Array(I*3),R=F(m)?new Uint8Array(I*4):void 0;let N=0,k=0;for(w=0;w<E;++w){let U=f[w];if(S&&w>0&&(Z.pack(U,L,N),N+=3,P=m[w-1],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha)),S&&w===E-1)break;Z.pack(U,L,N),N+=3,F(m)&&(P=m[w],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha))}}let M=new Zc;M.position=new Xr({componentDatatype:Qt.DOUBLE,componentsPerAttribute:3,values:L}),F(m)&&(M.color=new Xr({componentDatatype:Qt.UNSIGNED_BYTE,componentsPerAttribute:4,values:R,normalize:!0})),I=L.length/3;let V=(I-1)*2,G=Fn.createTypedArray(I,V),D=0;for(w=0;w<I-1;++w)G[D++]=w,G[D++]=w+1;return new xa({attributes:M,indices:G,primitiveType:pn.LINES,boundingSphere:Ei.fromPoints(f)})};var fxt=F6;function qH(o){let f=o.radius??1,m={radii:new Z(f,f,f),stackPartitions:o.stackPartitions,slicePartitions:o.slicePartitions,vertexFormat:o.vertexFormat};this._ellipsoidGeometry=new Jm(m),this._workerName="createSphereGeometry"}qH.packedLength=Jm.packedLength;qH.pack=function(o,f,m){return Jm.pack(o._ellipsoidGeometry,f,m)};var c4i=new Jm,O5={radius:void 0,radii:new Z,vertexFormat:new Yr,stackPartitions:void 0,slicePartitions:void 0};qH.unpack=function(o,f,m){let x=Jm.unpack(o,f,c4i);return O5.vertexFormat=Yr.clone(x._vertexFormat,O5.vertexFormat),O5.stackPartitions=x._stackPartitions,O5.slicePartitions=x._slicePartitions,F(m)?(Z.clone(x._radii,O5.radii),m._ellipsoidGeometry=new Jm(O5),m):(O5.radius=x._radii.x,new qH(O5))};qH.createGeometry=function(o){return Jm.createGeometry(o._ellipsoidGeometry)};var mxt=qH;function nD(o){}Object.defineProperties(nD.prototype,{ellipsoid:{get:wt.throwInstantiationError},rectangle:{get:wt.throwInstantiationError},projection:{get:wt.throwInstantiationError}});nD.prototype.getNumberOfXTilesAtLevel=wt.throwInstantiationError;nD.prototype.getNumberOfYTilesAtLevel=wt.throwInstantiationError;nD.prototype.rectangleToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToRectangle=wt.throwInstantiationError;nD.prototype.positionToTileXY=wt.throwInstantiationError;var xxt=nD;function P9(o){o=o??si.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??wn.MINIMUM_VALUE,this.tolerance=o.tolerance??1,this._seeking=!1,this._seekFunction=void 0,this._firstTickAfterSeek=!1}Object.defineProperties(P9.prototype,{clock:{get:function(){return this._clock},set:function(o){let f=this._clock;f!==o&&(F(f)&&(this._clockSubscription(),this._clockSubscription=void 0),F(o)&&(this._clockSubscription=o.onTick.addEventListener(P9.prototype._onTick,this)),this._clock=o)}},element:{get:function(){return this._element},set:function(o){let f=this._element;f!==o&&(F(f)&&f.removeEventListener("seeked",this._seekFunction,!1),F(o)&&(this._seeking=!1,this._seekFunction=h4i(this),o.addEventListener("seeked",this._seekFunction,!1)),this._element=o,this._seeking=!1,this._firstTickAfterSeek=!1)}}});P9.prototype.destroy=function(){return this.element=void 0,this.clock=void 0,yr(this)};P9.prototype.isDestroyed=function(){return!1};P9.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};P9.prototype._onTick=function(o){let f=this._element;if(!F(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 y=o.currentTime,v=this.epoch??wn.MINIMUM_VALUE,C=$t.secondsDifference(y,v),T=f.duration,S,w=f.currentTime;f.loop?(C=C%T,C<0&&(C=T-C),S=C):C>T?S=T:C<0?S=0:S=C;let E=x?this.tolerance??1:.001;Math.abs(S-w)>E&&(this._seeking=!0,f.currentTime=S)};function h4i(o){return function(){o._seeking=!1,o._firstTickAfterSeek=!0}}var gxt=P9;function d4i(o,f){this.rectangle=o,this.maxLevel=f}function yxt(o){this.ellipsoid=o.ellipsoid??yi.default,this.tilingScheme=void 0,this.heightmapWidth=void 0,this.heightmapHeight=void 0,this.levelZeroMaximumGeometricError=void 0,this.rectangles=[]}yxt.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 p4i(o,f){let m=f.getElementsByTagName("SRS")[0].textContent;if(m==="EPSG:4326")o.tilingScheme=new _h({ellipsoid:o.ellipsoid});else throw new Oi(`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=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.ellipsoid,Math.min(o.heightmapWidth,o.heightmapHeight),o.tilingScheme.getNumberOfXTilesAtLevel(0));let y=f.getElementsByTagName("DataExtent");for(let v=0;v<y.length;++v){let C=y[v],T=be.toRadians(parseFloat(C.getAttribute("minx"))),S=be.toRadians(parseFloat(C.getAttribute("miny"))),w=be.toRadians(parseFloat(C.getAttribute("maxx"))),E=be.toRadians(parseFloat(C.getAttribute("maxy"))),L=parseInt(C.getAttribute("maxlevel"),10);o.rectangles.push(new d4i(new vi(T,S,w,E),L))}}function f4i(o,f,m){let x=`An error occurred while accessing ${o.url}`;throw F(f)&&F(f.message)&&(x=`${x}: ${f.message}`),sm.reportError(void 0,m,F(m)?m._errorEvent:void 0,x),new Oi(x)}async function m4i(o,f,m){try{let x=await f.fetchXML();p4i(o,x)}catch(x){f4i(f,x,m)}}function bF(o){o=o??si.EMPTY_OBJECT,this._errorEvent=new Tr,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 Oa(f)),this._credit=f,this._tilingScheme=void 0,this._rectangles=[]}Object.defineProperties(bF.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(){}}});bF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT;let m=new yxt(f),x=Mr.createIfNeeded(o);await m4i(m,x);let y=new bF(f);return m.build(y),y._resource=x,y};bF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._tilingScheme.getNumberOfYTilesAtLevel(m),v=this._resource.getDerivedResource({url:`${m}/${o}/${y-f-1}.tif`,queryParameters:{cesium:!0},request:x}).fetchImage({preferImageBitmap:!0});if(!F(v))return;let C=this;return Promise.resolve(v).then(function(T){return new yL({buffer:HZ(T),width:C._heightmapWidth,height:C._heightmapHeight,childTileMask:x4i(C,o,f,m),structure:C._terrainDataStructure})})};bF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};var _xt=new vi;function x4i(o,f,m,x){let y=o._tilingScheme,v=o._rectangles,C=y.tileXYToRectangle(f,m,x),T=0;for(let S=0;S<v.length&&T!==15;++S){let w=v[S];if(w.maxLevel<=x)continue;let E=w.rectangle,L=vi.intersection(E,C,_xt);F(L)&&(xoe(y,E,f*2,m*2,x+1)&&(T|=4),xoe(y,E,f*2+1,m*2,x+1)&&(T|=8),xoe(y,E,f*2,m*2+1,x+1)&&(T|=1),xoe(y,E,f*2+1,m*2+1,x+1)&&(T|=2))}return T}function xoe(o,f,m,x,y){let v=o.tileXYToRectangle(m,x,y);return F(vi.intersection(v,f,_xt))}bF.prototype.getTileDataAvailable=function(o,f,m){};bF.prototype.loadTileDataAvailability=function(o,f,m){};var vxt=bF,g4i={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},bxt=Object.freeze(g4i);function y4i(o){switch(o){case bi.FLOAT:return"float";case bi.FLOAT_VEC2:return"vec2";case bi.FLOAT_VEC3:return"vec3";case bi.FLOAT_VEC4:return"vec4";case bi.FLOAT_MAT2:return"mat2";case bi.FLOAT_MAT3:return"mat3";case bi.FLOAT_MAT4:return"mat4";case bi.SAMPLER_2D:return"sampler2D";case bi.BOOL:return"bool"}}var Cxt=y4i;function _4i(o,f,m){return function(){m.apply(o,arguments),f.apply(o,arguments)}}var SDe=_4i;function $H(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=o.width,x=o.height,y=o.depth,v=o.source,C=o.pixelFormat??zr.RGBA,T=o.pixelDataType??un.UNSIGNED_BYTE,S=zr.toInternalFormat(C,T,f);if(!F(m)||!F(x)||!F(y))throw new wt("options requires a source field to create an 3d texture. width or height or dimension fileds");if(Da.typeOf.number.greaterThan("width",m,0),m>co.maximumTextureSize)throw new wt("width must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("height",x,0),x>co.maximumTextureSize)throw new wt("height must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("dimensions",y,0),y>co.maximumTextureSize)throw new wt("dimension must be less than or equal to the maximum texture size");if(!zr.validate(C))throw new wt("Invalid options.pixelFormat.");if(!un.validate(T))throw new wt("Invalid options.pixelDatatype.");let w=!0,E=f._gl,L=E.TEXTURE_3D,I=E.createTexture();E.activeTexture(E.TEXTURE0),E.bindTexture(L,I);let R=4;if(F(v)&&F(v.arrayBufferView)&&(R=zr.alignmentInBytes(C,T,m)),E.pixelStorei(E.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),E.pixelStorei(E.UNPACK_FLIP_Y_WEBGL,!1),E.pixelStorei(E.UNPACK_ALIGNMENT,R),E.pixelStorei(E.UNPACK_COLORSPACE_CONVERSION_WEBGL,E.BROWSER_DEFAULT_WEBGL),F(v)&&F(v.arrayBufferView)){let P=v.arrayBufferView;E.texImage3D(L,0,S,m,x,y,0,C,un.toWebGLConstant(T,f),P),w=!0}E.bindTexture(L,null),this._id=du(),this._context=f,this._textureFilterAnisotropic=f._textureFilterAnisotropic,this._textureTarget=L,this._texture=I,this._internalFormat=S,this._pixelFormat=C,this._pixelDatatype=T,this._width=m,this._height=x,this._depth=y,this._dimensions=new Z(m,x,y),this._hasMinmap=!1,this._sizeInBytes=4,this._preMultiplyAlpha=!1,this._flipY=!1,this._initialized=w,this._sampler=void 0,this.sampler=F(o.sampler)?o.sampler:new Yo}$H.fromFramebuffer=function(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=f._gl,x=o.pixelFormat??zr.RGB,y=o.width??m.drawingBufferWidth,v=o.height??m.drawingBufferHeight,C=o.depth??128,T=o.framebuffer;return new $H({context:f,width:y,height:v,pixelFormat:x,source:{framebuffer:F(T)?T:f.defaultFramebuffer,width:y,height:v,depth:C}})};Object.defineProperties($H.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,y=this._textureTarget;x.activeTexture(x.TEXTURE0),x.bindTexture(y,this._texture),x.texParameteri(y,x.TEXTURE_MIN_FILTER,f),x.texParameteri(y,x.TEXTURE_MAG_FILTER,m),x.texParameteri(y,x.TEXTURE_WRAP_R,o.wrapR),x.texParameteri(y,x.TEXTURE_WRAP_S,o.wrapS),x.texParameteri(y,x.TEXTURE_WRAP_T,o.wrapT),x.bindTexture(y,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}}});$H.prototype.isDestroyed=function(){return!1};$H.prototype.destory=function(){return this._context._gl.deleteTexture(this._texture),yr(this)};var wDe=$H,EDe=`uniform sampler2D u_noiseTexture; uniform vec3 u_noiseTextureDimensions; uniform float u_noiseDetail; in vec2 v_offset; @@ -20299,7 +20306,7 @@ #endif #endif } -`,hDe=`#ifdef INSTANCED +`,LDe=`#ifdef INSTANCED in vec2 direction; #endif in vec4 positionHighAndScaleX; @@ -20347,7 +20354,7 @@ v_slice = slice; v_brightness = brightness; } -`,dDe=`uniform vec3 u_noiseTextureDimensions; +`,PDe=`uniform vec3 u_noiseTextureDimensions; uniform float u_noiseDetail; uniform vec3 u_noiseOffset; in vec2 v_position; @@ -20439,7 +20446,7 @@ float worley2 = clamp(worleyFBMNoise(position, 3.0, 3.0), 0.0, 1.0); out_FragColor = vec4(worley0, worley1, worley2, 1.0); } -`,pDe=`uniform vec3 u_noiseTextureDimensions; +`,IDe=`uniform vec3 u_noiseTextureDimensions; in vec2 position; out vec2 v_position; @@ -20457,7 +20464,7 @@ transformedPos.y *= noiseTextureRows; v_position = transformedPos; } -`,fDe=` +`,RDe=` in vec2 v_textureCoordinates; void main() @@ -20473,14 +20480,7 @@ out_FragColor = vec4(material.diffuse + material.emission, material.alpha); } -`;function D4(o,f){this._tilingScheme=o,this._maximumLevel=f,this._rootNodes=[]}var uZ=new vi;function YHi(o,f,m,x){let y=x.length;for(let v=0;v<y;++v){let C=x[v];if(C.x===f&&C.y===m&&C.level===o)return!0}return!1}D4.prototype.addAvailableTileRange=function(o,f,m,x,y){let v=this._tilingScheme,C=this._rootNodes;if(o===0)for(let I=m;I<=y;++I)for(let R=f;R<=x;++R)YHi(o,R,I,C)||C.push(new iB(v,void 0,0,R,I));v.tileXYToRectangle(f,m,o,uZ);let T=uZ.west,S=uZ.north;v.tileXYToRectangle(x,y,o,uZ);let w=uZ.east,E=uZ.south,L=new qHi(o,T,E,w,S);for(let I=0;I<C.length;++I){let R=C[I];mDe(R.extent,L)&&$Hi(this._maximumLevel,R,L)}};D4.prototype.computeMaximumLevelAtPosition=function(o){let f;for(let m=0;m<this._rootNodes.length;++m){let x=this._rootNodes[m];if(rB(x.extent,o)){f=x;break}}return F(f)?Ij(void 0,f,o):-1};var KHi=[],JHi=[],jHi=new vi,QHi=new vi;D4.prototype.computeBestAvailableLevelOverRectangle=function(o){let f=KHi;f.length=0,o.east<o.west?(f.push(vi.fromRadians(-Math.PI,o.south,o.east,o.north,jHi)),f.push(vi.fromRadians(o.west,o.south,Math.PI,o.north,QHi))):f.push(o);let m=JHi;m.length=0;let x;for(x=0;x<this._rootNodes.length;++x)Rj(m,this._rootNodes[x],f);for(x=m.length-1;x>=0;--x)if(F(m[x])&&m[x].length===0)return x;return 0};var T7e=new Gt;D4.prototype.isTileAvailable=function(o,f,m){let x=this._tilingScheme.tileXYToRectangle(f,m,o,uZ);return vi.center(x,T7e),this.computeMaximumLevelAtPosition(T7e)>=o};D4.prototype.computeChildMaskForTile=function(o,f,m){let x=o+1;if(x>=this._maximumLevel)return 0;let y=0;return y|=this.isTileAvailable(x,2*f,2*m+1)?1:0,y|=this.isTileAvailable(x,2*f+1,2*m+1)?2:0,y|=this.isTileAvailable(x,2*f,2*m)?4:0,y|=this.isTileAvailable(x,2*f+1,2*m)?8:0,y};function iB(o,f,m,x,y){this.tilingScheme=o,this.parent=f,this.level=m,this.x=x,this.y=y,this.extent=o.tileXYToRectangle(x,y,m),this.rectangles=[],this._sw=void 0,this._se=void 0,this._nw=void 0,this._ne=void 0}Object.defineProperties(iB.prototype,{nw:{get:function(){return this._nw||(this._nw=new iB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2)),this._nw}},ne:{get:function(){return this._ne||(this._ne=new iB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2)),this._ne}},sw:{get:function(){return this._sw||(this._sw=new iB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2+1)),this._sw}},se:{get:function(){return this._se||(this._se=new iB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2+1)),this._se}}});function qHi(o,f,m,x,y){this.level=o,this.west=f,this.south=m,this.east=x,this.north=y}function mDe(o,f){let m=Math.max(o.west,f.west),x=Math.max(o.south,f.south),y=Math.min(o.east,f.east),v=Math.min(o.north,f.north);return x<v&&m<y}function $Hi(o,f,m){for(;f.level<o;)if(doe(f.nw.extent,m))f=f.nw;else if(doe(f.ne.extent,m))f=f.ne;else if(doe(f.sw.extent,m))f=f.sw;else if(doe(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=Nx(f.rectangles,m.level,ezi);x<0&&(x=~x),f.rectangles.splice(x,0,m)}}function ezi(o,f){return o.level-f}function doe(o,f){return f.west>=o.west&&f.east<=o.east&&f.south>=o.south&&f.north<=o.north}function rB(o,f){return f.longitude>=o.west&&f.longitude<=o.east&&f.latitude>=o.south&&f.latitude<=o.north}function Ij(o,f,m){let x=0,y=!1;for(;!y;){let v=f._nw&&rB(f._nw.extent,m),C=f._ne&&rB(f._ne.extent,m),T=f._sw&&rB(f._sw.extent,m),S=f._se&&rB(f._se.extent,m);if(v+C+T+S>1){v&&(x=Math.max(x,Ij(f,f._nw,m))),C&&(x=Math.max(x,Ij(f,f._ne,m))),T&&(x=Math.max(x,Ij(f,f._sw,m))),S&&(x=Math.max(x,Ij(f,f._se,m)));break}else v?f=f._nw:C?f=f._ne:T?f=f._sw:S?f=f._se:y=!0}for(;f!==o;){let v=f.rectangles;for(let C=v.length-1;C>=0&&v[C].level>x;--C){let T=v[C];rB(T,m)&&(x=T.level)}f=f.parent}return x}function Rj(o,f,m){if(!f)return;let x,y=!1;for(x=0;x<m.length;++x)y=y||mDe(f.extent,m[x]);if(!y)return;let v=f.rectangles;for(x=0;x<v.length;++x){let C=v[x];o[C.level]||(o[C.level]=m),o[C.level]=tzi(o[C.level],C)}Rj(o,f._nw,m),Rj(o,f._ne,m),Rj(o,f._sw,m),Rj(o,f._se,m)}function tzi(o,f){let m=[];for(let x=0;x<o.length;++x){let y=o[x];mDe(y,f)?(y.west<f.west&&m.push(new vi(y.west,y.south,f.west,y.north)),y.east>f.east&&m.push(new vi(f.east,y.south,y.east,y.north)),y.south<f.south&&m.push(new vi(Math.max(f.west,y.west),y.south,Math.min(f.east,y.east),f.south)),y.north>f.north&&m.push(new vi(Math.max(f.west,y.west),f.north,Math.min(f.east,y.east),y.north))):m.push(y)}return m}var kG=D4,izi=15;function Pmt(o){this.ellipsoid=o.ellipsoid??yi.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}Pmt.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 rzi(o,f){let m=f.copyrightText;F(m)&&(o.credit=new Oa(m));let x=f.spatialReference,y=x.latestWkid??x.wkid,v=f.extent,C={ellipsoid:o.ellipsoid};if(y===4326||y===4490)C.rectangle=vi.fromDegrees(v.xmin,v.ymin,v.xmax,v.ymax),o.tilingScheme=new _h(C);else if(y===3857){let S=Math.PI*o.ellipsoid.maximumRadius;f.extent.xmax>S&&(f.extent.xmax=S),f.extent.ymax>S&&(f.extent.ymax=S),f.extent.xmin<-S&&(f.extent.xmin=-S),f.extent.ymin<-S&&(f.extent.ymin=-S),C.rectangleSouthwestInMeters=new rt(v.xmin,v.ymin),C.rectangleNortheastInMeters=new rt(v.xmax,v.ymax),o.tilingScheme=new gp(C)}else throw new Oi("Invalid spatial reference");let T=f.tileInfo;if(!F(T))throw new Oi("tileInfo is required");o.width=T.rows+1,o.height=T.cols+1,o.encoding=T.format==="LERC"?dF.LERC:dF.NONE,o.lodCount=T.lods.length-1,(o.hasAvailability=f.capabilities.indexOf("Tilemap")!==-1)&&(o.tilesAvailable=new kG(o.tilingScheme,o.lodCount),o.tilesAvailable.addAvailableTileRange(0,0,0,o.tilingScheme.getNumberOfXTilesAtLevel(0),o.tilingScheme.getNumberOfYTilesAtLevel(0)),o.tilesAvailabilityLoaded=new kG(o.tilingScheme,o.lodCount)),o.levelZeroMaximumGeometricError=H_.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."),F(f.minValues)&&F(f.maxValues)?o.terrainDataStructure={elementMultiplier:1,lowestEncodedHeight:f.minValues[0],highestEncodedHeight:f.maxValues[0]}:o.terrainDataStructure={elementMultiplier:1}}async function nzi(o,f,m){try{let x=await f.fetchJson();rzi(o,x)}catch(x){let y=`An error occurred while accessing ${f}.`;throw sm.reportError(void 0,m,F(m)?m._errorEvent:void 0,y),x}}function yF(o){o=o??si.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 Tr}Object.defineProperties(yF.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}}});yF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash(),F(f.token)&&(m=m.getDerivedResource({queryParameters:{token:f.token}}));let x=m.getDerivedResource({queryParameters:{f:"pjson"}}),y=new Pmt(f);await nzi(y,x);let v=new yF(f);return y.build(v),v._resource=m,v};yF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._resource.getDerivedResource({url:`tile/${m}/${f}/${o}`,request:x}),v=this._hasAvailability,C=Promise.resolve(!0),T;if(v&&!F(xDe(this,m+1,o*2,f*2))){let L=Imt(this,m+1,o*2,f*2);C=L.promise,T=L.request}let S=y.fetchArrayBuffer();if(!F(S)||!F(C))return;let w=this,E=this._tilesAvailable;return Promise.all([S,C]).then(function(L){return new yL({buffer:L[0],width:w._width,height:w._height,childTileMask:v?E.computeChildMaskForTile(m,o,f):izi,structure:w._terrainDataStructure,encoding:w._encoding})}).catch(async function(L){if(F(T)&&T.state===fc.CANCELLED){x.cancel();try{await x.deferred?.promise}catch{}return x.state=fc.CANCELLED,Promise.reject(L)}return Promise.reject(L)})};function xDe(o,f,m,x){if(!o._hasAvailability)return;let y=o._tilesAvailabilityLoaded,v=o._tilesAvailable;if(f>o._lodCount)return!1;if(v.isTileAvailable(f,m,x))return!0;if(y.isTileAvailable(f,m,x))return!1}yF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};yF.prototype.getTileDataAvailable=function(o,f,m){if(!this._hasAvailability)return;let x=xDe(this,m,o,f);if(F(x))return x;Imt(this,m,o,f)};yF.prototype.loadTileDataAvailability=function(o,f,m){};function ozi(o,f,m,x){let y=f-1,v=m-1,C=x[o.y*f+o.x],T=[],S={startX:o.x,startY:o.y,endX:0,endY:0},w=new rt(o.x+1,o.y+1),E=!1,L=!1;for(;!(E&&L);){let I=w.x,R=L?w.y+1:w.y;if(!E){for(let P=o.y;P<R;++P)if(x[P*f+w.x]!==C){E=!0;break}E?(T.push(new rt(w.x,o.y)),--w.x,--I,S.endX=w.x):w.x===y?(S.endX=w.x,E=!0):++w.x}if(!L){let P=w.y*f;for(let A=o.x;A<=I;++A)if(x[P+A]!==C){L=!0;break}L?(T.push(new rt(o.x,w.y)),--w.y,S.endY=w.y):w.y===v?(S.endY=w.y,L=!0):++w.y}}return{endingIndices:T,range:S,value:C}}function azi(o,f,m,x,y){let v=[];if(y.every(function(T){return T===y[0]}))return y[0]===1&&v.push({startX:o,startY:f,endX:o+m-1,endY:f+x-1}),v;let C=[new rt(0,0)];for(;C.length>0;){let T=C.pop(),S=ozi(T,m,x,y);if(S.value===1){let E=S.range;E.startX+=o,E.endX+=o,E.startY+=f,E.endY+=f,v.push(E)}let w=S.endingIndices;w.length>0&&(C=C.concat(w))}return v}function Imt(o,f,m,x){if(!o._hasAvailability)return{};let y=Math.floor(m/128)*128,v=Math.floor(x/128)*128,C=Math.min(1<<f,128),T=`tilemap/${f}/${v}/${y}/${C}/${C}`,S=o._availableCache;if(F(S[T]))return S[T];let w=new dm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN}),E=o._resource.getDerivedResource({url:T,request:w}).fetchJson();return F(E)?(E=E.then(function(L){let I=azi(y,v,C,C,L.data);o._tilesAvailabilityLoaded.addAvailableTileRange(f,y,v,y+C,v+C);let R=o._tilesAvailable;for(let P=0;P<I.length;++P){let A=I[P];R.addAvailableTileRange(f,A.startX,A.startY,A.endX,A.endY)}return xDe(o,f,m,x)}),S[T]={promise:E,request:w},E=E.finally(function(L){return delete S[T],L}),{promise:E,request:w}):{}}var xde=yF,Rmt="https://dev.virtualearth.net/REST/v1/Locations";function gDe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._key=f;let m={key:f};F(o.culture)&&(m.culture=o.culture),this._resource=new Mr({url:Rmt,queryParameters:m}),this._credit=new Oa('<img src="http://dev.virtualearth.net/Branding/logo_powered_by.png"/>',!1)}Object.defineProperties(gDe.prototype,{url:{get:function(){return Rmt}},key:{get:function(){return this._key}},credit:{get:function(){return this._credit}}});gDe.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,y=x[0],v=x[1],C=x[2],T=x[3];return{displayName:m.name,destination:vi.fromDegrees(v,y,T,C)}})})};var Amt=gDe;function yDe(){}Object.defineProperties(yDe.prototype,{credit:{get:function(){}}});yDe.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],y=f.length===3?+f[2]:300;if(isNaN(m)&&isNaN(x)){let v=/^(\d+.?\d*)([nsew])/i;for(let C=0;C<f.length;++C){let T=f[C].match(v);v.test(f[C])&&T.length===3&&(/^[ns]/i.test(T[2])?x=/^[n]/i.test(T[2])?+T[1]:-T[1]:/^[ew]/i.test(T[2])&&(m=/^[e]/i.test(T[2])?+T[1]:-T[1]))}}if(!isNaN(m)&&!isNaN(x)&&!isNaN(y)){let v={displayName:o,destination:Z.fromDegrees(m,x,y)};return Promise.resolve([v])}}return Promise.resolve([])};var Mmt=yDe,szi=new zt,S7e=new Z,zU=new Z;function lzi(o){let f=o.points,m=o.times;if(f.length<3){let x=m[0],y=1/(m[1]-x),v=f[0],C=f[1];return function(T,S){F(S)||(S=new Z);let w=(T-x)*y;return Z.lerp(v,C,w,S)}}return function(x,y){F(y)||(y=new Z);let v=o._lastTimeIndex=o.findTimeInterval(x,o._lastTimeIndex),C=(x-m[v])/(m[v+1]-m[v]),T=szi;T.z=C,T.y=C*C,T.x=T.y*C,T.w=1;let S,w,E,L,I;return v===0?(S=f[0],w=f[1],E=o.firstTangent,L=Z.subtract(f[2],S,S7e),Z.multiplyByScalar(L,.5,L),I=Ee.multiplyByVector(_6.hermiteCoefficientMatrix,T,T)):v===f.length-2?(S=f[v],w=f[v+1],L=o.lastTangent,E=Z.subtract(w,f[v-1],S7e),Z.multiplyByScalar(E,.5,E),I=Ee.multiplyByVector(_6.hermiteCoefficientMatrix,T,T)):(S=f[v-1],w=f[v],E=f[v+1],L=f[v+2],I=Ee.multiplyByVector(rD.catmullRomCoefficientMatrix,T,T)),y=Z.multiplyByScalar(S,I.x,y),Z.multiplyByScalar(w,I.y,zU),Z.add(y,zU,y),Z.multiplyByScalar(E,I.z,zU),Z.add(y,zU,y),Z.multiplyByScalar(L,I.w,zU),Z.add(y,zU,y)}}var uzi=new Z,czi=new Z;function rD(o){o=o??si.EMPTY_OBJECT;let f=o.points,m=o.times,x=o.firstTangent,y=o.lastTangent;if(f.length>2&&(F(x)||(x=uzi,Z.multiplyByScalar(f[1],2,x),Z.subtract(x,f[2],x),Z.subtract(x,f[0],x),Z.multiplyByScalar(x,.5,x)),!F(y))){let v=f.length-1;y=czi,Z.multiplyByScalar(f[v-1],2,y),Z.subtract(f[v],y,y),Z.add(y,f[v-2],y),Z.multiplyByScalar(y,.5,y)}this._times=m,this._points=f,this._firstTangent=Z.clone(x),this._lastTangent=Z.clone(y),this._evaluateFunction=lzi(this),this._lastTimeIndex=0}Object.defineProperties(rD.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}}});rD.catmullRomCoefficientMatrix=new Ee(-.5,1,-.5,0,1.5,-2.5,0,1,-1.5,2,.5,0,.5,-.5,0,0);rD.prototype.findTimeInterval=B0.prototype.findTimeInterval;rD.prototype.wrapTime=B0.prototype.wrapTime;rD.prototype.clampTime=B0.prototype.clampTime;rD.prototype.evaluate=function(o,f){return this._evaluateFunction(o,f)};var Vmt=rD,gde={};gde.clipTriangleAtAxisAlignedThreshold=function(o,f,m,x,y,v){F(v)?v.length=0:v=[];let C,T,S;f?(C=m<o,T=x<o,S=y<o):(C=m>o,T=x>o,S=y>o);let w=C+T+S,E,L,I,R,P,A;return w===1?C?(E=(o-m)/(x-m),L=(o-m)/(y-m),v.push(1),v.push(2),L!==1&&(v.push(-1),v.push(0),v.push(2),v.push(L)),E!==1&&(v.push(-1),v.push(0),v.push(1),v.push(E))):T?(I=(o-x)/(y-x),R=(o-x)/(m-x),v.push(2),v.push(0),R!==1&&(v.push(-1),v.push(1),v.push(0),v.push(R)),I!==1&&(v.push(-1),v.push(1),v.push(2),v.push(I))):S&&(P=(o-y)/(m-y),A=(o-y)/(x-y),v.push(0),v.push(1),A!==1&&(v.push(-1),v.push(2),v.push(1),v.push(A)),P!==1&&(v.push(-1),v.push(2),v.push(0),v.push(P))):w===2?!C&&m!==o?(R=(o-x)/(m-x),P=(o-y)/(m-y),v.push(0),v.push(-1),v.push(1),v.push(0),v.push(R),v.push(-1),v.push(2),v.push(0),v.push(P)):!T&&x!==o?(A=(o-y)/(x-y),E=(o-m)/(x-m),v.push(1),v.push(-1),v.push(2),v.push(1),v.push(A),v.push(-1),v.push(0),v.push(1),v.push(E)):!S&&y!==o&&(L=(o-m)/(y-m),I=(o-x)/(y-x),v.push(2),v.push(-1),v.push(0),v.push(2),v.push(L),v.push(-1),v.push(1),v.push(2),v.push(I)):w!==3&&(v.push(0),v.push(1),v.push(2)),v};gde.computeBarycentricCoordinates=function(o,f,m,x,y,v,C,T,S){let w=m-C,E=C-y,L=v-T,I=x-T,R=1/(L*w+E*I),P=f-T,A=o-C,M=(L*A+E*P)*R,V=(-I*A+w*P)*R,G=1-M-V;return F(S)?(S.x=M,S.y=V,S.z=G,S):new Z(M,V,G)};gde.computeLineSegmentLineSegmentIntersection=function(o,f,m,x,y,v,C,T,S){let w=(C-y)*(f-v)-(T-v)*(o-y),E=(m-o)*(f-v)-(x-f)*(o-y),L=(T-v)*(m-o)-(C-y)*(x-f);if(L===0)return;let I=w/L,R=E/L;if(I>=0&&I<=1&&R>=0&&R<=1)return F(S)||(S=new rt),S.x=o+I*(m-o),S.y=f+I*(x-f),S};var N4=gde;function _F(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 y(C,T){return x[C]-x[T]}function v(C,T){return m[C]-m[T]}this._westIndices=foe(o.westIndices,y,f),this._southIndices=foe(o.southIndices,v,f),this._eastIndices=foe(o.eastIndices,y,f),this._northIndices=foe(o.northIndices,v,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(_F.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}},canUpsample:{get:function(){return F(this._mesh)}}});var poe=[];function foe(o,f,m){poe.length=o.length;let x=!1;for(let y=0,v=o.length;y<v;++y)poe[y]=o[y],x=x||y>0&&f(o[y-1],o[y])>0;return x?(poe.sort(f),Fn.createTypedArray(m,poe)):o}var Gmt="createVerticesFromQuantizedTerrainMesh",hzi=new xp(Gmt),dzi=new xp(Gmt,_O.maximumAsynchronousTasks);_F.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid,w=f.tileXYToRectangle(m,x,y),E=(T?dzi:hzi).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:w,relativeToCenter:this._boundingSphere.center,ellipsoid:S,exaggeration:v,exaggerationRelativeHeight:C,flattenPolygonHeight:this._flattenPolygonHeight,flattenPolygon:this._flattenPolygon});if(!F(E))return;let L=this;return Promise.resolve(E).then(function(I){let R=L._quantizedVertices.length/3,P=R+L._westIndices.length+L._southIndices.length+L._eastIndices.length+L._northIndices.length,A=Fn.createTypedArray(P,I.indices),M=new Float32Array(I.vertices),V=I.center,G=I.minimumHeight,D=I.maximumHeight,N=L._boundingSphere,k=L._orientedBoundingBox,U=Z.clone(I.occludeePointInScaledSpace)??L._horizonOcclusionPoint,B=I.vertexStride,Y=IS.clone(I.encoding);return L._mesh=new vO(V,M,A,I.indexCountWithoutSkirts,R,G,D,N,U,B,k,Y,I.westIndicesSouthToNorth,I.southIndicesEastToWest,I.eastIndicesNorthToSouth,I.northIndicesWestToEast),L._quantizedVertices=void 0,L._encodedNormals=void 0,L._indices=void 0,L._uValues=void 0,L._vValues=void 0,L._heightValues=void 0,L._westIndices=void 0,L._southIndices=void 0,L._eastIndices=void 0,L._northIndices=void 0,L._mesh})};var pzi=new xp("upsampleQuantizedTerrainMesh",_O.maximumAsynchronousTasks);_F.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=pzi.scheduleTask({vertices:T.vertices,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=Math.min(this._westSkirtHeight,this._eastSkirtHeight);R=Math.min(R,this._southSkirtHeight),R=Math.min(R,this._northSkirtHeight);let P=S?R*.5:this._westSkirtHeight,A=w?R*.5:this._southSkirtHeight,M=S?this._eastSkirtHeight:R*.5,V=w?this._northSkirtHeight:R*.5,G=this._credits,D=this;return Promise.resolve(I).then(function(N){let k=new Uint16Array(N.vertices),U=Fn.createTypedArray(k.length/3,N.indices),B;return F(N.encodedNormals)&&(B=new Uint8Array(N.encodedNormals)),new _F({quantizedVertices:k,indices:U,encodedNormals:B,minimumHeight:N.minimumHeight,maximumHeight:N.maximumHeight,boundingSphere:Ei.clone(N.boundingSphere),orientedBoundingBox:Tu.clone(N.orientedBoundingBox),horizonOcclusionPoint:Z.clone(N.horizonOcclusionPoint),westIndices:N.westIndices,southIndices:N.southIndices,eastIndices:N.eastIndices,northIndices:N.northIndices,westSkirtHeight:P,southSkirtHeight:A,eastSkirtHeight:M,northSkirtHeight:V,childTileMask:0,credits:G,createdByUpsampling:!0,flattenPolygonHeight:D._flattenPolygonHeight,flattenPolygon:D._flattenPolygon,flattenRectangle:D._flattenRectangle})})};var jTe=32767,Fmt=new Z;_F.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1);x*=jTe;let y=be.clamp((m-o.south)/o.height,0,1);return y*=jTe,F(this._mesh)?gzi(this,x,y):yzi(this,x,y)};function Dmt(o,f,m,x,y,v,C,T){let S=Math.min(m,y,C),w=Math.max(m,y,C),E=Math.min(x,v,T),L=Math.max(x,v,T);return o>=S&&o<=w&&f>=E&&f<=L}var fzi=new rt,mzi=new rt,xzi=new rt;function gzi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,fzi),R=v.decodeTextureCoordinates(y,E,mzi),P=v.decodeTextureCoordinates(y,L,xzi);if(Dmt(f,m,I.x,I.y,R.x,R.y,P.x,P.y)){let A=N4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,Fmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}}function yzi(o,f,m){let x=o._uValues,y=o._vValues,v=o._heightValues,C=o._indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=x[w],R=x[E],P=x[L],A=y[w],M=y[E],V=y[L];if(Dmt(f,m,I,A,R,M,P,V)){let G=N4.computeBarycentricCoordinates(f,m,I,A,R,M,P,V,Fmt);if(G.x>=-1e-15&&G.y>=-1e-15&&G.z>=-1e-15){let D=G.x*v[w]+G.y*v[E]+G.z*v[L];return be.lerp(o._minimumHeight,o._maximumHeight,D/jTe)}}}}_F.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};_F.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var yde=_F;function _zi(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 Nmt(o){this.requestVertexNormals=o.requestVertexNormals??!1,this.requestWaterMask=o.requestWaterMask??!1,this.requestMetadata=o.requestMetadata??!0,this.ellipsoid=o.ellipsoid??yi.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=[]}Nmt.prototype.build=function(o){o._heightmapWidth=this.heightmapWidth,o._scheme=this.scheme;let f=F(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 Wmt(o,f,m){if(!f.format){let M="The tile format is not specified in the layer.json file.";throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(!f.tiles||f.tiles.length===0){let M="The layer.json file does not specify any tile URL templates.";throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let x=!1,y=!1,v=!1,C=!0,T=!1;if(f.format==="heightmap-1.0")T=!0,F(o.heightmapStructure)||(o.heightmapStructure={heightScale:1/5,heightOffset:-1e3,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1,lowestEncodedHeight:0,highestEncodedHeight:256*256-1}),y=!0,o.requestWaterMask=!0;else if(f.format.indexOf("quantized-mesh-1.")!==0){let M=`The tile format "${f.format}" is invalid or not supported.`;throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let S=f.tiles,w=f.maxzoom;o.overallMaxZoom=Math.max(o.overallMaxZoom,w);let E=[];if(F(f.valid_bounds)?E=f.valid_bounds:E=f.bounds,!f.projection||f.projection==="EPSG:4326")o.tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]});else if(f.projection==="EPSG:3857"){let M=Math.PI*o.ellipsoid.maximumRadius;E[0]<-M&&(E[0]=-M),E[1]<-M&&(E[1]=-M),E[2]>M&&(E[2]=M),E[3]>M&&(E[3]=M),o.tilingScheme=new gp({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]})}else{let M=`The projection "${f.projection}" is invalid or not supported.`;throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.heightmapWidth,o.tilingScheme.getNumberOfXTilesAtLevel(0)),!f.scheme||f.scheme==="tms"||f.scheme==="slippyMap")o.scheme=f.scheme;else{let M=`The scheme "${f.scheme}" is invalid or not supported.`;throw o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let L;F(f.extensions)&&f.extensions.indexOf("octvertexnormals")!==-1?x=!0:F(f.extensions)&&f.extensions.indexOf("vertexnormals")!==-1&&(x=!0,C=!1),F(f.extensions)&&f.extensions.indexOf("watermask")!==-1&&(y=!0),F(f.extensions)&&f.extensions.indexOf("metadata")!==-1&&(v=!0);let I=f.metadataAvailability,R=f.available,P;if(F(R)&&!F(I)){P=new kG(o.tilingScheme,R.length);for(let M=0;M<R.length;++M){let V=R[M],G=o.tilingScheme.getNumberOfYTilesAtLevel(M);F(o.overallAvailability[M])||(o.overallAvailability[M]=[]);for(let D=0;D<V.length;++D){let N=V[D],k=G-N.endY-1,U=G-N.startY-1;o.overallAvailability[M].push([N.startX,k,N.endX,U]),P.addAvailableTileRange(M,N.startX,k,N.endX,U)}}}else F(I)&&(L=new kG(o.tilingScheme,w),P=new kG(o.tilingScheme,w),o.overallAvailability[0]=[[0,0,1,0]],P.addAvailableTileRange(0,0,0,1,0));o.hasWaterMask=o.hasWaterMask||y,o.hasVertexNormals=o.hasVertexNormals||x,o.hasMetadata=o.hasMetadata||v,F(f.attribution)&&(o.attribution.length>0&&(o.attribution+=" "),o.attribution+=f.attribution),o.layers.push(new _zi({resource:o.lastResource,version:f.version,isHeightmap:T,tileUrlTemplates:S,availability:P,hasVertexNormals:x,hasWaterMask:y,hasMetadata:v,availabilityLevels:I,availabilityTilesLoaded:L,littleEndianExtensionSize:C}));let A=f.parentUrl;return F(A)?F(P)?(o.lastResource=o.lastResource.getDerivedResource({url:A}),o.lastResource.appendForwardSlash(),o.layerJsonResource=o.lastResource.getDerivedResource({url:"layer.json"}),await _De(o),!0):(console.log("A layer.json can't have a parentUrl if it does't have an available array."),!0):!0}function vzi(o,f,m){let x=`An error occurred while accessing ${o.layerJsonResource.url}.`;if(F(f)&&(x+=` -${f.message}`),o.previousError=sm.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,x),o.previousError.retry)return _De(o,m);throw new Oi(x)}async function bzi(o,f,m){await Wmt(o,f,m);let x=o.overallAvailability.length;if(x>0){let y=o.availability=new kG(o.tilingScheme,o.overallMaxZoom);for(let v=0;v<x;++v){let C=o.overallAvailability[v];for(let T=0;T<C.length;++T){let S=C[T];y.addAvailableTileRange(v,S[0],S[1],S[2],S[3])}}}if(o.attribution.length>0){let y=new Oa(o.attribution);o.tileCredits.push(y)}return!0}async function _De(o,f){try{let m=await o.layerJsonResource.fetchJson();return bzi(o,m,f)}catch(m){return F(m)&&m.statusCode===404?(await Wmt(o,{tilejson:"2.1.0",format:"heightmap-1.0",version:"1.0.0",scheme:"tms",tiles:["{z}/{x}/{y}.terrain?v={version}"]},f),!0):vzi(o,m,f)}}function iL(o){o=o??si.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 Tr;let f=o.credit;typeof f=="string"&&(f=new Oa(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 Ybe={OCT_VERTEX_NORMALS:1,WATER_MASK:2,METADATA:4};function w7e(o){return!F(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 Czi(o,f,m,x,y){let v=new Uint16Array(f,0,o._heightmapWidth*o._heightmapWidth);return new yL({buffer:v,childTileMask:new Uint8Array(f,v.byteLength,1)[0],waterMask:new Uint8Array(f,v.byteLength+1,f.byteLength-v.byteLength-1),width:o._heightmapWidth,height:o._heightmapWidth,structure:o._heightmapStructure,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon})}function Tzi(o,f,m,x,y,v){let C=v.littleEndianExtensionSize,T=0,S=3,w=S+1,E=Float64Array.BYTES_PER_ELEMENT*S,L=Float64Array.BYTES_PER_ELEMENT*w,I=Uint16Array.BYTES_PER_ELEMENT*3,R=3,P=Uint16Array.BYTES_PER_ELEMENT,A=P*R,M=new DataView(f),V=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let G=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let D=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let N=new Ei(new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0)),M.getFloat64(T+E,!0));T+=L;let k=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let U=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let B=new Uint16Array(f,T,U*3);T+=U*I,U>64*1024&&(P=Uint32Array.BYTES_PER_ELEMENT,A=P*R);let Y=B.subarray(0,U),J=B.subarray(U,2*U),K=B.subarray(U*2,3*U);Ru.zigZagDeltaDecode(Y,J,K),T%P!==0&&(T+=P-T%P);let z=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let j=Fn.createTypedArrayFromArrayBuffer(U,f,T,z*R);T+=z*A;let q=0,O=j.length;for(let Se=0;Se<O;++Se){let Le=j[Se];j[Se]=q-Le,Le===0&&++q}let te=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ie=Fn.createTypedArrayFromArrayBuffer(U,f,T,te);T+=te*P;let re=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ee=Fn.createTypedArrayFromArrayBuffer(U,f,T,re);T+=re*P;let ae=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let oe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ae);T+=ae*P;let ce=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let pe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ce);T+=ce*P;let ue,he;for(;T<M.byteLength;){let Se=M.getUint8(T,!0);T+=Uint8Array.BYTES_PER_ELEMENT;let Le=M.getUint32(T,C);if(T+=Uint32Array.BYTES_PER_ELEMENT,Se===Ybe.OCT_VERTEX_NORMALS&&o._requestVertexNormals)ue=new Uint8Array(f,T,U*2);else if(Se===Ybe.WATER_MASK&&o._requestWaterMask)he=new Uint8Array(f,T,Le);else if(Se===Ybe.METADATA&&o._requestMetadata){let Ve=M.getUint32(T,!0);if(Ve>0){let Oe=Q_(new Uint8Array(f),T+Uint32Array.BYTES_PER_ELEMENT,Ve).available;if(F(Oe))for(let $e=0;$e<Oe.length;++$e){let at=m+$e+1,dt=Oe[$e],gt=o._tilingScheme.getNumberOfYTilesAtLevel(at);for(let Et=0;Et<dt.length;++Et){let et=dt[Et],yt=gt-et.endY-1,Rt=gt-et.startY-1;o.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt),v.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt)}}}v.availabilityTilesLoaded.addAvailableTileRange(m,x,y,x,y)}T+=Le}let fe=o.getLevelMaximumGeometricError(m)*5,de=o._tilingScheme.tileXYToRectangle(x,y,m),Ce=Tu.fromRectangle(de,G,D,o._tilingScheme.ellipsoid);return new yde({center:V,minimumHeight:G,maximumHeight:D,boundingSphere:N,orientedBoundingBox:Ce,horizonOcclusionPoint:k,quantizedVertices:B,encodedNormals:ue,indices:j,westIndices:ie,southIndices:ee,eastIndices:oe,northIndices:pe,westSkirtHeight:fe,southSkirtHeight:fe,eastSkirtHeight:fe,northSkirtHeight:fe,childTileMask:o.availability.computeChildMaskForTile(m,x,y),waterMask:he,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon,flattenRectangle:{rectangle:de,minimumHeight:G,maximumHeight:D,ellipsoid:o._tilingScheme.ellipsoid}})}iL.prototype.requestTileGeometry=function(o,f,m,x){let y=this._layers,v,C=y.length,T=!1,S=Promise.resolve();if(C===1)v=y[0];else for(let w=0;w<C;++w){let E=y[w];if(!F(E.availability)||E.availability.isTileAvailable(m,o,f)){v=E;break}let L=vDe(this,o,f,m,E,w===0);L.result&&(T=!0,S=S.then(()=>L.promise))}return!F(v)&&T?S.then(()=>new Promise(w=>{setTimeout(()=>{let E=this.requestTileGeometry(o,f,m,x);w(E)},0)})):Zmt(this,o,f,m,v,x)};function Zmt(o,f,m,x,y,v){if(!F(y))return Promise.reject(new Oi("Terrain tile doesn't exist"));let C=y.tileUrlTemplates;if(C.length===0)return;let T;!o._scheme||o._scheme==="tms"?T=o._tilingScheme.getNumberOfYTilesAtLevel(x)-m-1:T=m;let S=[];o._requestVertexNormals&&y.hasVertexNormals&&S.push(y.littleEndianExtensionSize?"octvertexnormals":"vertexnormals"),o._requestWaterMask&&y.hasWaterMask&&S.push("watermask"),o._requestMetadata&&y.hasMetadata&&S.push("metadata");let w,E,L=C[(f+T+x)%C.length],I=y.resource;F(I._ionEndpoint)&&!F(I._ionEndpoint.externalType)?(S.length!==0&&(E={extensions:S.join("-")}),w=w7e(void 0)):w=w7e(S);let R=I.getDerivedResource({url:L,templateValues:{version:y.version,z:x,x:f,y:T},queryParameters:E,headers:w,request:v}).fetchArrayBuffer();if(F(R))return R.then(function(P){return F(P)?F(o._heightmapStructure)?Czi(o,P,x,f,m):Tzi(o,P,x,f,m,y):Promise.reject(new Oi("Mesh buffer doesn't exist."))})}Object.defineProperties(iL.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}}});iL.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};iL.fromIonAssetId=async function(o,f){let m=await FG.fromAssetId(o);return iL.fromUrl(m,f)};iL.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash();let x=new Nmt(f);x.lastResource=m,x.layerJsonResource=x.lastResource.getDerivedResource({url:"layer.json"}),await _De(x);let y=new iL(f);return x.build(y),y};iL.prototype.getTileDataAvailable=function(o,f,m){if(!F(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,y=x.length;for(let v=0;v<y;++v)if(vDe(this,o,f,m,x[v],v===0).result)return;return!1};iL.prototype.loadTileDataAvailability=function(o,f,m){if(!F(this._availability)||m>this._availability._maximumLevel||this._availability.isTileAvailable(m,o,f)||!this._hasMetadata)return;let x=this._layers,y=x.length;for(let v=0;v<y;++v){let C=vDe(this,o,f,m,x[v],v===0);if(F(C.promise))return C.promise}};function QTe(o,f,m,x){if(x===0)return;let y=o.availabilityLevels,v=x%y===0?x-y:(x/y|0)*y,C=1<<x-v,T=f/C|0,S=m/C|0;return{level:v,x:T,y:S}}function vDe(o,f,m,x,y,v){if(!F(y.availabilityLevels))return{result:!1};let C,T=function(){delete y.availabilityPromiseCache[C]},S=y.availabilityTilesLoaded,w=y.availability,E=QTe(y,f,m,x);for(;F(E);){if(w.isTileAvailable(E.level,E.x,E.y)&&!S.isTileAvailable(E.level,E.x,E.y)){let L;if(!v&&(C=`${E.level}-${E.x}-${E.y}`,L=y.availabilityPromiseCache[C],!F(L))){let I=new dm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});L=Zmt(o,E.x,E.y,E.level,y,I),F(L)&&(y.availabilityPromiseCache[C]=L,L.then(T))}return{result:!0,promise:L}}E=QTe(y,E.x,E.y,E.level)}return{result:!1}}iL._getAvailabilityTile=QTe;var W4=iL;function QM(o){o=o??si.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 SS(m),this._workerName="createCircleGeometry"}QM.packedLength=SS.packedLength;QM.pack=function(o,f,m){return SS.pack(o._ellipseGeometry,f,m)};var E7e=new SS({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),dy={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new Yr,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};QM.unpack=function(o,f,m){let x=SS.unpack(o,f,E7e);return dy.center=Z.clone(x._center,dy.center),dy.ellipsoid=yi.clone(x._ellipsoid,dy.ellipsoid),dy.ellipsoid=yi.clone(x._ellipsoid,E7e._ellipsoid),dy.height=x._height,dy.extrudedHeight=x._extrudedHeight,dy.granularity=x._granularity,dy.vertexFormat=Yr.clone(x._vertexFormat,dy.vertexFormat),dy.stRotation=x._stRotation,dy.shadowVolume=x._shadowVolume,F(m)?(dy.semiMajorAxis=x._semiMajorAxis,dy.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new SS(dy),m):(dy.radius=x._semiMajorAxis,new QM(dy))};QM.createGeometry=function(o){return SS.createGeometry(o._ellipseGeometry)};QM.createShadowVolume=function(o,f,m){let x=o._ellipseGeometry._granularity,y=o._ellipseGeometry._ellipsoid,v=f(x,y),C=m(x,y);return new QM({center:o._ellipseGeometry._center,radius:o._ellipseGeometry._semiMajorAxis,ellipsoid:y,stRotation:o._ellipseGeometry._stRotation,granularity:x,extrudedHeight:v,height:C,vertexFormat:Yr.POSITION_ONLY,shadowVolume:!0})};Object.defineProperties(QM.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var Omt=QM;function qH(o){o=o??si.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 LI(m),this._workerName="createCircleOutlineGeometry"}qH.packedLength=LI.packedLength;qH.pack=function(o,f,m){return LI.pack(o._ellipseGeometry,f,m)};var Szi=new LI({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),BC={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};qH.unpack=function(o,f,m){let x=LI.unpack(o,f,Szi);return BC.center=Z.clone(x._center,BC.center),BC.ellipsoid=yi.clone(x._ellipsoid,BC.ellipsoid),BC.height=x._height,BC.extrudedHeight=x._extrudedHeight,BC.granularity=x._granularity,BC.numberOfVerticalLines=x._numberOfVerticalLines,F(m)?(BC.semiMajorAxis=x._semiMajorAxis,BC.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new LI(BC),m):(BC.radius=x._semiMajorAxis,new qH(BC))};qH.createGeometry=function(o){return LI.createGeometry(o._ellipseGeometry)};var Xmt=qH;function wzi(o){return o=o??si.EMPTY_OBJECT,W4.fromIonAssetId(2426648,{requestVertexNormals:o.requestVertexNormals??!1})}var bDe=wzi;function Ezi(o){return o=o??si.EMPTY_OBJECT,W4.fromIonAssetId(1,{requestVertexNormals:o.requestVertexNormals??!1,requestWaterMask:o.requestWaterMask??!1,ellipsoid:yi.WGS84})}var _de=Ezi;function Z4(o){o=o??si.EMPTY_OBJECT,this._callback=o.callback,this._tilingScheme=o.tilingScheme,F(this._tilingScheme)||(this._tilingScheme=new _h({ellipsoid:o.ellipsoid??yi.default})),this._width=o.width,this._height=o.height;let f=Math.max(this._width,this._height);this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new Tr;let m=o.credit;typeof m=="string"&&(m=new Oa(m)),this._credit=m}Object.defineProperties(Z4.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}}});Z4.prototype.requestTileGeometry=function(o,f,m,x){let y=this._callback(o,f,m);if(!F(y))return;let v=this._width,C=this._height;return Promise.resolve(y).then(function(T){let S=T;return Array.isArray(S)&&(S=new Float64Array(S)),new yL({buffer:S,width:v,height:C})})};Z4.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};Z4.prototype.getTileDataAvailable=function(o,f,m){};Z4.prototype.loadTileDataAvailability=function(o,f,m){};var kmt=Z4,Lzi=1953029805,Pzi=2917034100;function CDe(o,f){if(CDe.passThroughDataForTesting)return f;let m=o.byteLength;if(m===0||m%4!==0)throw new Oi("The length of key must be greater than 0 and a multiple of 4.");let x=new DataView(f),y=x.getUint32(0,!0);if(y===Lzi||y===Pzi)return f;let v=new DataView(o),C=0,T=f.byteLength,S=T-T%8,w=m,E,L=8;for(;C<S;)for(L=(L+8)%24,E=L;C<S&&E<w;)x.setUint32(C,x.getUint32(C,!0)^v.getUint32(E,!0),!0),x.setUint32(C+4,x.getUint32(C+4,!0)^v.getUint32(E+4,!0),!0),C+=8,E+=24;if(C<T)for(E>=w&&(L=(L+8)%24,E=L);C<T;)x.setUint8(C,x.getUint8(C)^v.getUint8(E)),C++,E++}CDe.passThroughDataForTesting=!1;var TDe=CDe;function Umt(o){this.proxy=o}Umt.prototype.getURL=function(o){let f=this.proxy.indexOf("?")===-1?"?":"";return this.proxy+f+encodeURIComponent(o)};var Bmt=Umt;function Hmt(o,f){return pL("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(Hmt,"EMPTY_OBJECT",{get:function(){return pL("defaultValue.EMPTY_OBJECT","defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead"),si.EMPTY_OBJECT}});var zmt=Hmt;function vde(){wt.throwInstantiationError()}Object.defineProperties(vde.prototype,{credit:{get:wt.throwInstantiationError}});vde.getCreditsFromResult=function(o){if(F(o.attributions))return o.attributions.map(Oa.getIonCredit)};vde.prototype.geocode=wt.throwInstantiationError;var bde=vde,Izi={SEARCH:0,AUTOCOMPLETE:1},a$=Object.freeze(Izi);function Ymt(){wt.throwInstantiationError()}Ymt.createGeometry=function(o){wt.throwInstantiationError()};var Kmt=Ymt,Rzi=k0(net(),1);function Azi(o,f){return(o&f)!==0}var m1=Azi,Mzi=[1,2,4,8],Jmt=15,Vzi=16,Gzi=64,Fzi=128;function DI(o,f,m,x,y,v){this._bits=o,this.cnodeVersion=f,this.imageryVersion=m,this.terrainVersion=x,this.imageryProvider=y,this.terrainProvider=v,this.ancestorHasTerrain=!1,this.terrainState=void 0}DI.clone=function(o,f){return F(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 DI(o._bits,o.cnodeVersion,o.imageryVersion,o.terrainVersion,o.imageryProvider,o.terrainProvider),f.ancestorHasTerrain=o.ancestorHasTerrain,f.terrainState=o.terrainState,f};DI.prototype.setParent=function(o){this.ancestorHasTerrain=o.ancestorHasTerrain||this.hasTerrain()};DI.prototype.hasSubtree=function(){return m1(this._bits,Vzi)};DI.prototype.hasImagery=function(){return m1(this._bits,Gzi)};DI.prototype.hasTerrain=function(){return m1(this._bits,Fzi)};DI.prototype.hasChildren=function(){return m1(this._bits,Jmt)};DI.prototype.hasChild=function(o){return m1(this._bits,Mzi[o])};DI.prototype.getChildBitmask=function(){return this._bits&Jmt};var SDe=DI;function Dzi(o){let f=o.length,m=new ArrayBuffer(f),x=new Uint8Array(m);for(let y=0;y<f;++y)x[y]=o.charCodeAt(y);return m}var Nzi=Dzi(`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 w1(o){this.imageryPresent=!0,this.protoImagery=void 0,this.terrainPresent=!0,this.negativeAltitudeExponentBias=32,this.negativeAltitudeThreshold=be.EPSILON12,this.providers={},this.key=void 0,this._resource=void 0,this._quadPacketVersion=1,this._tileInfo={},this._subtreePromises={}}Object.defineProperties(w1.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},resource:{get:function(){return this._resource}}});w1.fromUrl=async function(o){let f=o;typeof f!="string"&&!(f instanceof Mr)&&(f=o.url);let m=Mr.createIfNeeded(f);m.appendForwardSlash();let x=new w1;x._resource=m;try{await Wzi(x),await x.getQuadTreePacket("",x._quadPacketVersion)}catch(y){let v=`An error occurred while accessing ${Qmt(x,"",1).url}: ${y}`;throw new Oi(v)}return x};w1.tileXYToQuadKey=function(o,f,m){let x="";for(let y=m;y>=0;--y){let v=1<<y,C=0;m1(f,v)?m1(o,v)&&(C|=1):(C|=2,m1(o,v)||(C|=1)),x+=C}return x};w1.quadKeyToTileXY=function(o){let f=0,m=0,x=o.length-1;for(let y=x;y>=0;--y){let v=1<<y,C=+o[x-y];m1(C,2)?m1(C,1)||(f|=v):(m|=v,m1(C,1)&&(f|=v))}return{x:f,y:m,level:x}};w1.prototype.isValid=function(o){let f=this.getTileInformationFromQuadKey(o);if(F(f))return f!==null;let m=!0,x=o,y;for(;x.length>1;)if(y=x.substring(x.length-1),x=x.substring(0,x.length-1),f=this.getTileInformationFromQuadKey(x),F(f)){!f.hasSubtree()&&!f.hasChild(parseInt(y))&&(m=!1);break}else if(f===null){m=!1;break}return m};var jmt=new xp("decodeGoogleEarthEnterprisePacket");w1.prototype.getQuadTreePacket=function(o,f,m){f=f??1,o=o??"";let x=Qmt(this,o,f,m).fetchArrayBuffer();if(!F(x))return;let y=this._tileInfo,v=this.key;return x.then(function(C){return jmt.scheduleTask({buffer:C,quadKey:o,type:"Metadata",key:v},[C]).then(function(T){let S,w=-1;if(o!==""){w=o.length+1;let I=T[o];S=y[o],S._bits|=I._bits,delete T[o]}let E=Object.keys(T);E.sort(function(I,R){return I.length-R.length});let L=E.length;for(let I=0;I<L;++I){let R=E[I];if(T[R]!==null){let P=SDe.clone(T[R]),A=R.length;if(A===w)P.setParent(S);else if(A>1){let M=y[R.substring(0,R.length-1)];P.setParent(M)}y[R]=P}else y[R]=null}})})};w1.prototype.populateSubtree=function(o,f,m,x){let y=w1.tileXYToQuadKey(o,f,m);return qTe(this,y,x)};function qTe(o,f,m){let x=o._tileInfo,y=f,v=x[y];if(F(v)&&(!v.hasSubtree()||v.hasChildren()))return v;for(;v===void 0&&y.length>1;)y=y.substring(0,y.length-1),v=x[y];let C,T=o._subtreePromises,S=T[y];if(F(S))return S.then(function(){return C=new dm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),qTe(o,f,C)});if(!F(v)||!v.hasSubtree())return Promise.reject(new Oi(`Couldn't load metadata for tile ${f}`));if(S=o.getQuadTreePacket(y,v.cnodeVersion,m),!!F(S))return T[y]=S,S.then(function(){return C=new dm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),qTe(o,f,C)}).finally(function(){delete T[y]})}w1.prototype.getTileInformation=function(o,f,m){let x=w1.tileXYToQuadKey(o,f,m);return this._tileInfo[x]};w1.prototype.getTileInformationFromQuadKey=function(o){return this._tileInfo[o]};function Qmt(o,f,m,x){return o._resource.getDerivedResource({url:`flatfile?q2-0${f}-q.${m.toString()}`,request:x})}var Kbe,Jbe;function Wzi(o){let f=o._resource.getDerivedResource({url:"dbRoot.v5",queryParameters:{output:"proto"}});if(!F(Jbe)){let m=oa("ThirdParty/google-earth-dbroot-parser.js"),x=window.cesiumGoogleEarthDbRootParser;Jbe=Qle(m).then(function(){Kbe=window.cesiumGoogleEarthDbRootParser(Rzi),F(x)?window.cesiumGoogleEarthDbRootParser=x:delete window.cesiumGoogleEarthDbRootParser})}return Jbe.then(function(){return f.fetchArrayBuffer()}).then(function(m){let x=Kbe.EncryptedDbRootProto.decode(new Uint8Array(m)),y=x.encryptionData,v=y.byteOffset,C=v+y.byteLength,T=o.key=y.buffer.slice(v,C);y=x.dbrootData,v=y.byteOffset,C=v+y.byteLength;let S=y.buffer.slice(v,C);return jmt.scheduleTask({buffer:S,type:"DbRoot",key:T},[S])}).then(function(m){let x=Kbe.DbRootProto.decode(new Uint8Array(m.buffer));if(o.imageryPresent=x.imageryPresent??o.imageryPresent,o.protoImagery=x.protoImagery,o.terrainPresent=x.terrainPresent??o.terrainPresent,F(x.endSnippet)&&F(x.endSnippet.model)){let T=x.endSnippet.model;o.negativeAltitudeExponentBias=T.negativeAltitudeExponentBias??o.negativeAltitudeExponentBias,o.negativeAltitudeThreshold=T.compressedNegativeAltitudeThreshold??o.negativeAltitudeThreshold}F(x.databaseVersion)&&(o._quadPacketVersion=x.databaseVersion.quadtreeVersion??o._quadPacketVersion);let y=o.providers,v=x.providerInfo??[],C=v.length;for(let T=0;T<C;++T){let S=v[T],w=S.copyrightString;F(w)&&(y[S.providerId]=new Oa(w.value))}}).catch(function(){console.log(`Failed to retrieve ${f.url}. Using defaults.`),o.key=Nzi})}var O4=w1;function ZO(o){o=o??si.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(ZO.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){}}});var qmt="createVerticesFromGoogleEarthEnterpriseBuffer",Zzi=new xp(qmt),Ozi=new xp(qmt,_O.maximumAsynchronousTasks),L7e=new vi,jbe=new vi;ZO.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid;f.tileXYToNativeRectangle(m,x,y,L7e),f.tileXYToRectangle(m,x,y,jbe);let w=S.cartographicToCartesian(vi.center(jbe)),E=40075.16/(1<<y);this._skirtHeight=Math.min(E*8,1e3);let L=(T?Ozi:Zzi).scheduleTask({buffer:this._buffer,nativeRectangle:L7e,rectangle:jbe,relativeToCenter:w,ellipsoid:S,skirtHeight:this._skirtHeight,exaggeration:v,exaggerationRelativeHeight:C,includeWebMercatorT:!0,negativeAltitudeExponentBias:this._negativeAltitudeExponentBias,negativeElevationThreshold:this._negativeElevationThreshold});if(!F(L))return;let I=this;return L.then(function(R){return I._mesh=new vO(w,new Float32Array(R.vertices),new Uint16Array(R.indices),R.indexCountWithoutSkirts,R.vertexCountWithoutSkirts,R.minimumHeight,R.maximumHeight,Ei.clone(R.boundingSphere3D),Z.clone(R.occludeePointInScaledSpace),R.numberOfAttributes,Tu.clone(R.orientedBoundingBox),IS.clone(R.encoding),R.westIndicesSouthToNorth,R.southIndicesEastToWest,R.eastIndicesNorthToSouth,R.northIndicesWestToEast),I._minimumHeight=R.minimumHeight,I._maximumHeight=R.maximumHeight,I._buffer=void 0,I._mesh})};ZO.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1),y=be.clamp((m-o.south)/o.height,0,1);return F(this._mesh)?Hzi(this,x,y):Kzi(this,x,y,o)};var Xzi=new xp("upsampleQuantizedTerrainMesh",_O.maximumAsynchronousTasks);ZO.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=Xzi.scheduleTask({vertices:T.vertices,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=this;return I.then(function(P){let A=new Uint16Array(P.vertices),M=Fn.createTypedArray(A.length/3,P.indices),V=R._skirtHeight;return new yde({quantizedVertices:A,indices:M,minimumHeight:P.minimumHeight,maximumHeight:P.maximumHeight,boundingSphere:Ei.clone(P.boundingSphere),orientedBoundingBox:Tu.clone(P.orientedBoundingBox),horizonOcclusionPoint:Z.clone(P.horizonOcclusionPoint),westIndices:P.westIndices,southIndices:P.southIndices,eastIndices:P.eastIndices,northIndices:P.northIndices,westSkirtHeight:V,southSkirtHeight:V,eastSkirtHeight:V,northSkirtHeight:V,childTileMask:0,createdByUpsampling:!0,credits:R._credits})})};ZO.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};ZO.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var kzi=new rt,Uzi=new rt,Bzi=new rt,$mt=new Z;function Hzi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,kzi),R=v.decodeTextureCoordinates(y,E,Uzi),P=v.decodeTextureCoordinates(y,L,Bzi),A=N4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,$mt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}var zzi=Uint16Array.BYTES_PER_ELEMENT,P7e=Uint32Array.BYTES_PER_ELEMENT,Qbe=Int32Array.BYTES_PER_ELEMENT,Yzi=Float32Array.BYTES_PER_ELEMENT,qbe=Float64Array.BYTES_PER_ELEMENT;function Kzi(o,f,m,x){let y=o._buffer,v=0,C=0,T=0;m>.5?(f>.5?(v=2,C=.5):v=3,T=.5):f>.5&&(v=1,C=.5);let S=new DataView(y),w=0;for(let k=0;k<v;++k)w+=S.getUint32(w,!0),w+=P7e;w+=P7e,w+=2*qbe;let E=be.toRadians(S.getFloat64(w,!0)*180);w+=qbe;let L=be.toRadians(S.getFloat64(w,!0)*180);w+=qbe;let I=x.width/E/2,R=x.height/L/2,P=S.getInt32(w,!0);w+=Qbe;let A=S.getInt32(w,!0)*3;w+=Qbe,w+=Qbe;let M=new Array(P),V=new Array(P),G=new Array(P),D;for(D=0;D<P;++D)M[D]=C+S.getUint8(w++)*I,V[D]=T+S.getUint8(w++)*R,G[D]=S.getFloat32(w,!0)*6371010,w+=Yzi;let N=new Array(A);for(D=0;D<A;++D)N[D]=S.getUint16(w,!0),w+=zzi;for(D=0;D<A;D+=3){let k=N[D],U=N[D+1],B=N[D+2],Y=M[k],J=M[U],K=M[B],z=V[k],j=V[U],q=V[B],O=N4.computeBarycentricCoordinates(f,m,Y,z,J,j,K,q,$mt);if(O.x>=-1e-15&&O.y>=-1e-15&&O.z>=-1e-15)return O.x*G[k]+O.y*G[U]+O.z*G[B]}}var dle=ZO,HT={UNKNOWN:0,NONE:1,SELF:2,PARENT:3},moe=new $t;function Cde(){this._terrainCache={},this._lastTidy=$t.now()}Cde.prototype.add=function(o,f){this._terrainCache[o]={buffer:f,timestamp:$t.now()}};Cde.prototype.get=function(o){let f=this._terrainCache[o];if(F(f))return delete this._terrainCache[o],f.buffer};Cde.prototype.tidy=function(){if($t.now(moe),$t.secondsDifference(moe,this._lastTidy)>10){let o=this._terrainCache,f=Object.keys(o),m=f.length;for(let x=0;x<m;++x){let y=f[x],v=o[y];$t.secondsDifference(moe,v.timestamp)>10&&delete o[y]}$t.clone(moe,this._lastTidy)}};function vF(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._levelZeroMaximumGeometricError=40075.16,this._terrainCache=new Cde,this._terrainPromises={},this._terrainRequests={},this._errorEvent=new Tr}Object.defineProperties(vF.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(){}}});vF.fromMetadata=function(o,f){if(!o.terrainPresent)throw new Oi(`The server ${o.url} doesn't have terrain`);let m=new vF(f);return m._metadata=o,m};var Jzi=new xp("decodeGoogleEarthEnterprisePacket");function I7e(o,f,m){let x=f.getChildBitmask();if(f.terrainState===HT.PARENT){x=0;for(let y=0;y<4;++y){let v=m.getTileInformationFromQuadKey(o+y.toString());F(v)&&v.hasTerrain()&&(x|=1<<y)}}return x}vF.prototype.requestTileGeometry=function(o,f,m,x){let y=O4.tileXYToQuadKey(o,f,m),v=this._terrainCache,C=this._metadata,T=C.getTileInformationFromQuadKey(y);if(!F(T))return Promise.reject(new Oi("Terrain tile doesn't exist"));let S=T.terrainState;F(S)||(S=T.terrainState=HT.UNKNOWN);let w=v.get(y);if(F(w)){let V=C.providers[T.terrainProvider];return Promise.resolve(new dle({buffer:w,childTileMask:I7e(y,T,C),credits:F(V)?[V]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold}))}if(v.tidy(),T.ancestorHasTerrain){if(S===HT.NONE)return Promise.reject(new Oi("Terrain tile doesn't exist"))}else return Promise.resolve(new yL({buffer:new Uint8Array(16*16),width:16,height:16}));let E,L=y,I=-1;switch(S){case HT.SELF:I=T.terrainVersion;break;case HT.PARENT:L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),I=E.terrainVersion;break;case HT.UNKNOWN:T.hasTerrain()?I=T.terrainVersion:(L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),F(E)&&E.hasTerrain()&&(I=E.terrainVersion));break}if(I<0)return Promise.reject(new Oi("Terrain tile doesn't exist"));let R=this._terrainPromises,P=this._terrainRequests,A,M;if(F(R[L]))A=R[L],M=P[L];else{M=x;let V=jzi(this,L,I,M).fetchArrayBuffer();if(!F(V))return;A=V.then(function(G){return F(G)?Jzi.scheduleTask({buffer:G,type:"Terrain",key:C.key},[G]).then(function(D){let N=C.getTileInformationFromQuadKey(L);N.terrainState=HT.SELF,v.add(L,D[0]);let k=N.terrainProvider,U=D.length-1;for(let B=0;B<U;++B){let Y=L+B.toString(),J=C.getTileInformationFromQuadKey(Y);F(J)&&(v.add(Y,D[B+1]),J.terrainState=HT.PARENT,J.terrainProvider===0&&(J.terrainProvider=k))}}):Promise.reject(new Oi("Failed to load terrain."))}),R[L]=A,P[L]=M,A=A.finally(function(){delete R[L],delete P[L]})}return A.then(function(){let V=v.get(y);if(F(V)){let G=C.providers[T.terrainProvider];return new dle({buffer:V,childTileMask:I7e(y,T,C),credits:F(G)?[G]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold})}return Promise.reject(new Oi("Failed to load terrain."))}).catch(function(V){return M.state===fc.CANCELLED?(x.state=M.state,Promise.reject(V)):(T.terrainState=HT.NONE,Promise.reject(V))})};vF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};vF.prototype.getTileDataAvailable=function(o,f,m){let x=this._metadata,y=O4.tileXYToQuadKey(o,f,m),v=x.getTileInformation(o,f,m);if(v===null)return!1;if(F(v)){if(!v.ancestorHasTerrain)return!0;let C=v.terrainState;if(C===HT.NONE)return!1;if((!F(C)||C===HT.UNKNOWN)&&(v.terrainState=HT.UNKNOWN,!v.hasTerrain())){y=y.substring(0,y.length-1);let T=x.getTileInformationFromQuadKey(y);if(!F(T)||!T.hasTerrain())return!1}return!0}if(x.isValid(y)){let C=new dm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});x.populateSubtree(o,f,m,C)}return!1};vF.prototype.loadTileDataAvailability=function(o,f,m){};function jzi(o,f,m,x){return m=F(m)&&m>0?m:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1c-0${f}-t.${m.toString()}`,request:x})}var ext=vF,Qzi="https://maps.googleapis.com/maps/api/geocode/json",txt='<img alt="Google" src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align:-5px">';function wDe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._resource=new Mr({url:Qzi,queryParameters:{key:f}}),this._credit=new Oa(txt,!0)}Object.defineProperties(wDe.prototype,{credit:{get:function(){return this._credit}}});wDe.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 Oi(`GoogleGeocoderService got a bad response ${f.status}: ${f.error_message}`);return f.results.map(m=>{let x=m.geometry.viewport.southwest,y=m.geometry.viewport.northeast;return{displayName:m.formatted_address,destination:vi.fromDegrees(x.lng,x.lat,y.lng,y.lat),attribution:{html:txt,collapsible:!1}}})};var ixt=wDe,Tde={};Tde.defaultApiKey=void 0;Tde.mapTilesApiEndpoint=new Mr({url:"https://tile.googleapis.com/v1/"});Tde.getDefaultCredit=function(){return new Oa('<img src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align: -5px" alt="Google">',!0)};var gQ=Tde,s$={};s$.type=void 0;s$.getRequiredDataPoints=wt.throwInstantiationError;s$.interpolateOrderZero=wt.throwInstantiationError;s$.interpolate=wt.throwInstantiationError;var rxt=s$,qzi={GOOGLE:"GOOGLE",BING:"BING",DEFAULT:"DEFAULT"},kZ=Object.freeze(qzi);function EDe(o){this._url=Mr.createIfNeeded(o),this._url.appendForwardSlash()}Object.defineProperties(EDe.prototype,{url:{get:function(){return this._url}},credit:{get:function(){}}});EDe.prototype.geocode=async function(o,f){return this._url.getDerivedResource({url:f===a$.AUTOCOMPLETE?"autocomplete":"search",queryParameters:{text:o}}).fetchJson().then(function(m){return m.features.map(function(x){let y,v=x.bbox;if(F(v))y=vi.fromDegrees(v[0],v[1],v[2],v[3]);else{let C=x.geometry.coordinates[0],T=x.geometry.coordinates[1];y=Z.fromDegrees(C,T)}return{displayName:x.properties.label,destination:y,attributions:m.attributions}})})};var LDe=EDe;function $zi(o){if(!Object.values(kZ).some(f=>f===o))throw new wt(`Invalid geocodeProviderType: "${o}"`)}var nxt=Object.freeze({[kZ.GOOGLE]:"google",[kZ.BING]:"bing",[kZ.DEFAULT]:void 0});function e4i(o){return nxt[o]}function t4i(o){return Object.entries(nxt).find(f=>f[1]===o)[0]}function PDe(o){o=o??si.EMPTY_OBJECT;let f=o.geocodeProviderType??kZ.DEFAULT,m=o.accessToken??GG.defaultAccessToken,x=Mr.createIfNeeded(o.server??GG.defaultServer);x.appendForwardSlash();let y=GG.getDefaultTokenCredit(m);F(y)&&o.scene.frameState.creditDisplay.addStaticCredit(Oa.clone(y));let v=x.getDerivedResource({url:"v1/geocode"});F(m)&&v.appendQueryParameters({access_token:m}),this._accessToken=m,this._server=x,this._pelias=new LDe(v),this.geocodeProviderType=f}Object.defineProperties(PDe.prototype,{credit:{get:function(){}},geocodeProviderType:{get:function(){return t4i(this._pelias.url.queryParameters.geocoder)},set:function(o){$zi(o);let f={...this._pelias.url.queryParameters,geocoder:e4i(o)};F(f.geocoder)||delete f.geocoder,this._pelias.url.setQueryParameters(f)}}});PDe.prototype.geocode=async function(o,f){return this._pelias.geocode(o,f)};var Sde=PDe,um={};um.ExportStatus=Object.freeze({NotStarted:"NotStarted",InProgress:"InProgress",Complete:"Complete",Invalid:"Invalid"});um.ExportType=Object.freeze({IMODEL:"IMODEL",CESIUM:"CESIUM","3DTILES":"3DTILES"});um.RealityDataType=Object.freeze({Cesium3DTiles:"Cesium3DTiles",PNTS:"PNTS",RealityMesh3DTiles:"RealityMesh3DTiles",Terrain3DTiles:"Terrain3DTiles",KML:"KML",GeoJSON:"GeoJSON",Unstructured:"Unstructured"});um.defaultAccessToken=void 0;um.defaultShareKey=void 0;um._getAuthorizationHeader=function(){return F(um.defaultShareKey)?`Basic ${um.defaultShareKey}`:`Bearer ${um.defaultAccessToken}`};um.apiEndpoint=new Mr({url:"https://api.bentley.com"});um.getExports=async function(o){let f=new Mr({url:`${um.apiEndpoint}mesh-export`,headers:{Authorization:um._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json",Prefer:"return=representation"},queryParameters:{iModelId:o,exportType:um.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 y=x.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${y}`)}else{if(m.statusCode===403)throw console.error(x.error.code,x.error.message),new Oi("Not allowed, forbidden");if(m.statusCode===422)throw new Oi(`Unprocessable Entity:${x.error.code} ${x.error.message}`);if(m.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${m.statusCode}`)}};um.getRealityDataMetadata=async function(o,f){let m=new Mr({url:`${um.apiEndpoint}reality-management/reality-data/${f}`,headers:{Authorization:um._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{return(await m.fetchJson()).realityData}catch(x){let y=JSON.parse(x.response);if(x.statusCode===401){let v=y.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${v}`)}else{if(x.statusCode===403)throw console.error(y.error.code,y.error.message),new Oi("Not allowed, forbidden");if(x.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(x.statusCode===422)throw new Oi(`Unprocessable Entity:${y.error.code} ${y.error.message}`);if(x.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${x.statusCode}`)}};um.getRealityDataURL=async function(o,f,m){let x=new Mr({url:`${um.apiEndpoint}reality-management/reality-data/${f}/readaccess`,headers:{Authorization:um._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{let y=(await x.fetchJson())._links.containerUrl.href,v=new URL(y);return v.pathname=`${v.pathname}/${m}`,v.toString()}catch(y){let v=JSON.parse(y.response);if(y.statusCode===401){let C=v.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${C}`)}else{if(y.statusCode===403)throw console.error(v.error.code,v.error.message),new Oi("Not allowed, forbidden");if(y.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(y.statusCode===422)throw new Oi(`Unprocessable Entity:${v.error.code} ${v.error.message}`);if(y.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${y.statusCode}`)}};var wg=um,i4i=new xp("transcodeCRNToDXT",Number.POSITIVE_INFINITY);function r4i(o){let f;if(o instanceof ArrayBuffer||ArrayBuffer.isView(o)?f=Promise.resolve(o):f=Mr.createIfNeeded(o).fetchArrayBuffer(),!!F(f))return f.then(function(m){if(!F(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)),i4i.scheduleTask(m,x)}).then(function(m){return NS.clone(m)})}var oxt=r4i;function wde(){wt.throwInstantiationError()}Object.defineProperties(wde.prototype,{ellipsoid:{get:wt.throwInstantiationError}});wde.prototype.project=wt.throwInstantiationError;wde.prototype.unproject=wt.throwInstantiationError;var axt=wde;function X4(o){o=o??si.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(X4.prototype,{times:{get:function(){return this._times}},weights:{get:function(){return this._weights}}});X4.prototype.findTimeInterval=B0.prototype.findTimeInterval;X4.prototype.wrapTime=B0.prototype.wrapTime;X4.prototype.clampTime=B0.prototype.clampTime;X4.prototype.evaluate=function(o,f){let m=this.weights,x=this.times,y=this._lastTimeIndex=this.findTimeInterval(o,this._lastTimeIndex),v=(o-x[y])/(x[y+1]-x[y]);F(f)||(f=new Array(this._count));for(let C=0;C<this._count;C++){let T=y*this._count+C;f[C]=m[T]*(1-v)+m[T+this._count]*v}return f};var sxt=X4;function IDe(o,f,m){o=Mr.createIfNeeded(o),o.appendForwardSlash(),o.setQueryParameters({key:f}),this._url=o,this._params=m??{},this._credit=new Oa('Geodata copyright <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',!1)}Object.defineProperties(IDe.prototype,{url:{get:function(){return this._url}},params:{get:function(){return this._params}},credit:{get:function(){return this._credit}}});IDe.prototype.geocode=async function(o){return this._url.getDerivedResource({url:"json",queryParameters:va(this._params,{q:o})}).fetchJson().then(function(f){return f.results.map(function(m){let x,y=m.bounds;if(F(y))x=vi.fromDegrees(y.southwest.lng,y.southwest.lat,y.northeast.lng,y.northeast.lat);else{let v=m.geometry.lat,C=m.geometry.lng;x=Z.fromDegrees(v,C)}return{displayName:m.formatted,destination:x}})})};var lxt=IDe,n4i={packedLength:void 0,pack:wt.throwInstantiationError,unpack:wt.throwInstantiationError},uxt=n4i,o4i={packedInterpolationLength:void 0,convertPackedArrayForInterpolation:wt.throwInstantiationError,unpackInterpolationResult:wt.throwInstantiationError},cxt=o4i,a4i=new Z;function s4i(o,f,m,x){let y=aue(o,f,m,x,a4i);return F(y)?y.x>0&&y.y>0&&y.z>0:!1}var hxt=s4i;function dxt(){wt.throwInstantiationError()}dxt.prototype.getURL=wt.throwInstantiationError;var pxt=dxt;function l4i(o,f,m,x,y,v,C){let T=od.numberOfPoints(o,f,y),S,w=m.red,E=m.green,L=m.blue,I=m.alpha,R=x.red,P=x.green,A=x.blue,M=x.alpha;if(Xe.equals(m,x)){for(S=0;S<T;S++)v[C++]=Xe.floatToByte(w),v[C++]=Xe.floatToByte(E),v[C++]=Xe.floatToByte(L),v[C++]=Xe.floatToByte(I);return C}let V=(R-w)/T,G=(P-E)/T,D=(A-L)/T,N=(M-I)/T,k=C;for(S=0;S<T;S++)v[k++]=Xe.floatToByte(w+S*V),v[k++]=Xe.floatToByte(E+S*G),v[k++]=Xe.floatToByte(L+S*D),v[k++]=Xe.floatToByte(I+S*N);return k}function F6(o){o=o??si.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??qa.GEODESIC,this._granularity=o.granularity??be.RADIANS_PER_DEGREE,this._ellipsoid=o.ellipsoid??yi.default,this._workerName="createSimplePolylineGeometry";let y=1+f.length*Z.packedLength;y+=F(m)?1+m.length*Xe.packedLength:1,this.packedLength=y+yi.packedLength+3}F6.pack=function(o,f,m){m=m??0;let x,y=o._positions,v=y.length;for(f[m++]=v,x=0;x<v;++x,m+=Z.packedLength)Z.pack(y[x],f,m);let C=o._colors;for(v=F(C)?C.length:0,f[m++]=v,x=0;x<v;++x,m+=Xe.packedLength)Xe.pack(C[x],f,m);return yi.pack(o._ellipsoid,f,m),m+=yi.packedLength,f[m++]=o._colorsPerVertex?1:0,f[m++]=o._arcType,f[m]=o._granularity,f};F6.unpack=function(o,f,m){f=f??0;let x,y=o[f++],v=new Array(y);for(x=0;x<y;++x,f+=Z.packedLength)v[x]=Z.unpack(o,f);y=o[f++];let C=y>0?new Array(y):void 0;for(x=0;x<y;++x,f+=Xe.packedLength)C[x]=Xe.unpack(o,f);let T=yi.unpack(o,f);f+=yi.packedLength;let S=o[f++]===1,w=o[f++],E=o[f];return F(m)?(m._positions=v,m._colors=C,m._ellipsoid=T,m._colorsPerVertex=S,m._arcType=w,m._granularity=E,m):new F6({positions:v,colors:C,ellipsoid:T,colorsPerVertex:S,arcType:w,granularity:E})};var yae=new Array(2),_ae=new Array(2),u4i={positions:yae,height:_ae,ellipsoid:void 0,minDistance:void 0,granularity:void 0};F6.createGeometry=function(o){let f=o._positions,m=o._colors,x=o._colorsPerVertex,y=o._arcType,v=o._granularity,C=o._ellipsoid,T=be.chordLength(v,C.maximumRadius),S=F(m)&&!x,w,E=f.length,L,I,R,P,A=0;if(y===qa.GEODESIC||y===qa.RHUMB){let N,k,U;y===qa.GEODESIC?(N=be.chordLength(v,C.maximumRadius),k=od.numberOfPoints,U=od.generateArc):(N=v,k=od.numberOfPointsRhumbLine,U=od.generateRhumbArc);let B=od.extractHeights(f,C),Y=u4i;if(y===qa.GEODESIC?Y.minDistance=T:Y.granularity=v,Y.ellipsoid=C,S){let J=0;for(w=0;w<E-1;w++)J+=k(f[w],f[w+1],N)+1;L=new Float64Array(J*3),R=new Uint8Array(J*4),Y.positions=yae,Y.height=_ae;let K=0;for(w=0;w<E-1;++w){yae[0]=f[w],yae[1]=f[w+1],_ae[0]=B[w],_ae[1]=B[w+1];let z=U(Y);if(F(m)){let j=z.length/3;P=m[w];for(let q=0;q<j;++q)R[K++]=Xe.floatToByte(P.red),R[K++]=Xe.floatToByte(P.green),R[K++]=Xe.floatToByte(P.blue),R[K++]=Xe.floatToByte(P.alpha)}L.set(z,A),A+=z.length}}else if(Y.positions=f,Y.height=B,L=new Float64Array(U(Y)),F(m)){for(R=new Uint8Array(L.length/3*4),w=0;w<E-1;++w){let K=f[w],z=f[w+1],j=m[w],q=m[w+1];A=l4i(K,z,j,q,T,R,A)}let J=m[E-1];R[A++]=Xe.floatToByte(J.red),R[A++]=Xe.floatToByte(J.green),R[A++]=Xe.floatToByte(J.blue),R[A++]=Xe.floatToByte(J.alpha)}}else{I=S?E*2-2:E,L=new Float64Array(I*3),R=F(m)?new Uint8Array(I*4):void 0;let N=0,k=0;for(w=0;w<E;++w){let U=f[w];if(S&&w>0&&(Z.pack(U,L,N),N+=3,P=m[w-1],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha)),S&&w===E-1)break;Z.pack(U,L,N),N+=3,F(m)&&(P=m[w],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha))}}let M=new Zc;M.position=new Xr({componentDatatype:Qt.DOUBLE,componentsPerAttribute:3,values:L}),F(m)&&(M.color=new Xr({componentDatatype:Qt.UNSIGNED_BYTE,componentsPerAttribute:4,values:R,normalize:!0})),I=L.length/3;let V=(I-1)*2,G=Fn.createTypedArray(I,V),D=0;for(w=0;w<I-1;++w)G[D++]=w,G[D++]=w+1;return new xa({attributes:M,indices:G,primitiveType:pn.LINES,boundingSphere:Ei.fromPoints(f)})};var fxt=F6;function $H(o){let f=o.radius??1,m={radii:new Z(f,f,f),stackPartitions:o.stackPartitions,slicePartitions:o.slicePartitions,vertexFormat:o.vertexFormat};this._ellipsoidGeometry=new Jm(m),this._workerName="createSphereGeometry"}$H.packedLength=Jm.packedLength;$H.pack=function(o,f,m){return Jm.pack(o._ellipsoidGeometry,f,m)};var c4i=new Jm,O5={radius:void 0,radii:new Z,vertexFormat:new Yr,stackPartitions:void 0,slicePartitions:void 0};$H.unpack=function(o,f,m){let x=Jm.unpack(o,f,c4i);return O5.vertexFormat=Yr.clone(x._vertexFormat,O5.vertexFormat),O5.stackPartitions=x._stackPartitions,O5.slicePartitions=x._slicePartitions,F(m)?(Z.clone(x._radii,O5.radii),m._ellipsoidGeometry=new Jm(O5),m):(O5.radius=x._radii.x,new $H(O5))};$H.createGeometry=function(o){return Jm.createGeometry(o._ellipsoidGeometry)};var mxt=$H;function nD(o){}Object.defineProperties(nD.prototype,{ellipsoid:{get:wt.throwInstantiationError},rectangle:{get:wt.throwInstantiationError},projection:{get:wt.throwInstantiationError}});nD.prototype.getNumberOfXTilesAtLevel=wt.throwInstantiationError;nD.prototype.getNumberOfYTilesAtLevel=wt.throwInstantiationError;nD.prototype.rectangleToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToRectangle=wt.throwInstantiationError;nD.prototype.positionToTileXY=wt.throwInstantiationError;var xxt=nD;function P9(o){o=o??si.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??wn.MINIMUM_VALUE,this.tolerance=o.tolerance??1,this._seeking=!1,this._seekFunction=void 0,this._firstTickAfterSeek=!1}Object.defineProperties(P9.prototype,{clock:{get:function(){return this._clock},set:function(o){let f=this._clock;f!==o&&(F(f)&&(this._clockSubscription(),this._clockSubscription=void 0),F(o)&&(this._clockSubscription=o.onTick.addEventListener(P9.prototype._onTick,this)),this._clock=o)}},element:{get:function(){return this._element},set:function(o){let f=this._element;f!==o&&(F(f)&&f.removeEventListener("seeked",this._seekFunction,!1),F(o)&&(this._seeking=!1,this._seekFunction=h4i(this),o.addEventListener("seeked",this._seekFunction,!1)),this._element=o,this._seeking=!1,this._firstTickAfterSeek=!1)}}});P9.prototype.destroy=function(){return this.element=void 0,this.clock=void 0,yr(this)};P9.prototype.isDestroyed=function(){return!1};P9.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};P9.prototype._onTick=function(o){let f=this._element;if(!F(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 y=o.currentTime,v=this.epoch??wn.MINIMUM_VALUE,C=$t.secondsDifference(y,v),T=f.duration,S,w=f.currentTime;f.loop?(C=C%T,C<0&&(C=T-C),S=C):C>T?S=T:C<0?S=0:S=C;let E=x?this.tolerance??1:.001;Math.abs(S-w)>E&&(this._seeking=!0,f.currentTime=S)};function h4i(o){return function(){o._seeking=!1,o._firstTickAfterSeek=!0}}var gxt=P9;function d4i(o,f){this.rectangle=o,this.maxLevel=f}function yxt(o){this.ellipsoid=o.ellipsoid??yi.default,this.tilingScheme=void 0,this.heightmapWidth=void 0,this.heightmapHeight=void 0,this.levelZeroMaximumGeometricError=void 0,this.rectangles=[]}yxt.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 p4i(o,f){let m=f.getElementsByTagName("SRS")[0].textContent;if(m==="EPSG:4326")o.tilingScheme=new _h({ellipsoid:o.ellipsoid});else throw new Oi(`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=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.ellipsoid,Math.min(o.heightmapWidth,o.heightmapHeight),o.tilingScheme.getNumberOfXTilesAtLevel(0));let y=f.getElementsByTagName("DataExtent");for(let v=0;v<y.length;++v){let C=y[v],T=be.toRadians(parseFloat(C.getAttribute("minx"))),S=be.toRadians(parseFloat(C.getAttribute("miny"))),w=be.toRadians(parseFloat(C.getAttribute("maxx"))),E=be.toRadians(parseFloat(C.getAttribute("maxy"))),L=parseInt(C.getAttribute("maxlevel"),10);o.rectangles.push(new d4i(new vi(T,S,w,E),L))}}function f4i(o,f,m){let x=`An error occurred while accessing ${o.url}`;throw F(f)&&F(f.message)&&(x=`${x}: ${f.message}`),sm.reportError(void 0,m,F(m)?m._errorEvent:void 0,x),new Oi(x)}async function m4i(o,f,m){try{let x=await f.fetchXML();p4i(o,x)}catch(x){f4i(f,x,m)}}function bF(o){o=o??si.EMPTY_OBJECT,this._errorEvent=new Tr,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 Oa(f)),this._credit=f,this._tilingScheme=void 0,this._rectangles=[]}Object.defineProperties(bF.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(){}}});bF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT;let m=new yxt(f),x=Mr.createIfNeeded(o);await m4i(m,x);let y=new bF(f);return m.build(y),y._resource=x,y};bF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._tilingScheme.getNumberOfYTilesAtLevel(m),v=this._resource.getDerivedResource({url:`${m}/${o}/${y-f-1}.tif`,queryParameters:{cesium:!0},request:x}).fetchImage({preferImageBitmap:!0});if(!F(v))return;let C=this;return Promise.resolve(v).then(function(T){return new yL({buffer:HZ(T),width:C._heightmapWidth,height:C._heightmapHeight,childTileMask:x4i(C,o,f,m),structure:C._terrainDataStructure})})};bF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};var _xt=new vi;function x4i(o,f,m,x){let y=o._tilingScheme,v=o._rectangles,C=y.tileXYToRectangle(f,m,x),T=0;for(let S=0;S<v.length&&T!==15;++S){let w=v[S];if(w.maxLevel<=x)continue;let E=w.rectangle,L=vi.intersection(E,C,_xt);F(L)&&(xoe(y,E,f*2,m*2,x+1)&&(T|=4),xoe(y,E,f*2+1,m*2,x+1)&&(T|=8),xoe(y,E,f*2,m*2+1,x+1)&&(T|=1),xoe(y,E,f*2+1,m*2+1,x+1)&&(T|=2))}return T}function xoe(o,f,m,x,y){let v=o.tileXYToRectangle(m,x,y);return F(vi.intersection(v,f,_xt))}bF.prototype.getTileDataAvailable=function(o,f,m){};bF.prototype.loadTileDataAvailability=function(o,f,m){};var vxt=bF,g4i={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},bxt=Object.freeze(g4i);function y4i(o){switch(o){case bi.FLOAT:return"float";case bi.FLOAT_VEC2:return"vec2";case bi.FLOAT_VEC3:return"vec3";case bi.FLOAT_VEC4:return"vec4";case bi.FLOAT_MAT2:return"mat2";case bi.FLOAT_MAT3:return"mat3";case bi.FLOAT_MAT4:return"mat4";case bi.SAMPLER_2D:return"sampler2D";case bi.BOOL:return"bool"}}var Cxt=y4i;function _4i(o,f,m){return function(){m.apply(o,arguments),f.apply(o,arguments)}}var RDe=_4i,v4i=function(){var o=sSe.url;return function(f){return f=f||{},f.ready}}(),vae={};vae.onRuntimeInitialized||(vae.onRuntimeInitialized=function(){},v4i(vae));var Txt=vae,ij=k0(iet(),1),Sxt={};(function(o,f){o.FlowEcharts=f(ij.default,o.Geoworld)})(Sxt,function(o,f){return function(m){var x={};function y(v){if(x[v])return x[v].exports;var C=x[v]={i:v,l:!1,exports:{}};return m[v].call(C.exports,C,C.exports,y),C.l=!0,C.exports}return y.m=m,y.c=x,y.d=function(v,C,T){y.o(v,C)||Object.defineProperty(v,C,{enumerable:!0,get:T})},y.r=function(v){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},y.t=function(v,C){if(C&1&&(v=y(v)),C&8||C&4&&typeof v=="object"&&v&&v.__esModule)return v;var T=Object.create(null);if(y.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:v}),C&2&&typeof v!="string")for(var S in v)y.d(T,S,function(w){return v[w]}.bind(null,S));return T},y.n=function(v){var C=v&&v.__esModule?function(){return v.default}:function(){return v};return y.d(C,"a",C),C},y.o=function(v,C){return Object.prototype.hasOwnProperty.call(v,C)},y.p="",y(y.s=0)}([function(m,x,y){y(1);var v=y(7);m.exports=v},function(m,x,y){var v;v=function(C){return y(2).registerCoordinateSystem("GLMap",y(3)),y(5),y(6),y(2).registerAction({type:"GLMapRoam",event:"GLMapRoam",update:"updateLayout"},function(T,S){}),{version:"1.0.0"}}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=o},function(m,x,y){var v;v=function(C){var T=y(2);function S(w,E){this._GLMap=w,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=E}return S.prototype.dimensions=["lng","lat"],S.prototype.setMapOffset=function(w){this._mapOffset=w},S.prototype.getBMap=function(){return this._GLMap},S.prototype.dataToPoint=function(w){var E=be.toRadians(80),L=[99999,99999],I=Z.fromDegrees(w[0],w[1]);if(!I)return L;var R=this._GLMap.cartesianToCanvasCoordinates(I);if(!R)return L;var P=this._GLMap;return P.mode===gi.SCENE3D&&Z.angleBetween(P.camera.position,I)>E?!1:[R.x-this._mapOffset[0],R.y-this._mapOffset[1]]},S.prototype.pointToData=function(L){var E=this._mapOffset,L=this._bmap.project([L[0]+E[0],L[1]+E[1]]);return[L.lng,L.lat]},S.prototype.getViewRect=function(){var w=this._api;return new T.graphic.BoundingRect(0,0,w.getWidth(),w.getHeight())},S.prototype.getRoamTransform=function(){return T.matrix.create()},S.dimensions=S.prototype.dimensions,S.create=function(w,E){var L;w.eachComponent("GLMap",function(I){var R=E.getZr().painter.getViewportRoot(),P=T.glMap;L=new S(P,E),L.setMapOffset(I.__mapOffset||[0,0]),I.coordinateSystem=L}),w.eachSeries(function(I){I.get("coordinateSystem")==="GLMap"&&(I.coordinateSystem=L)})},S}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=f},function(m,x,y){var v;v=function(C){return y(2).extendComponentModel({type:"GLMap",getBMap:function(){return this.__GLMap},defaultOption:{roam:!1}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x,y){var v;v=function(C){return y(2).extendComponentView({type:"GLMap",init:function(T,S){this.api=S,ij.default.glMap.postRender.addEventListener(this.moveHandler,this)},moveHandler:function(){this.api.dispatchAction({type:"GLMapRoam"})},render:function(T,S,w){},dispose:function(T,S){ij.default.glMap.postRender.removeEventListener(this.moveHandler,this)}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){function y(v,C){this._mapContainer=v,this._overlay=this._createChartOverlay(),this._overlay.setOption(C)}y.prototype._createChartOverlay=function(){var v=this._mapContainer.scene;v.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=v.canvas.width+"px",C.style.height=v.canvas.height+"px",C.style.pointerEvents="none",C.setAttribute("id","echarts"),C.setAttribute("class","echartMap"),this._mapContainer.container.appendChild(C),this._echartsContainer=C,ij.default.glMap=v,ij.default.init(C)},y.prototype.dispose=function(){this._echartsContainer&&(this._mapContainer.container.removeChild(this._echartsContainer),this._echartsContainer=null),this._overlay&&(this._overlay.dispose(),this._overlay=null)},y.prototype.destroy=function(){this.dispose()},y.prototype.updateOverlay=function(v){this._overlay&&this._overlay.setOption(v)},y.prototype.getMap=function(){return this._mapContainer},y.prototype.getOverlay=function(){return this._overlay},m.exports=y}])});var Ede=Sxt.FlowEcharts,b4i=new Z(1,1,1);function ADe(o){o=o??b4i,this._dimensions=Z.clone(o)}Object.defineProperties(ADe.prototype,{dimensions:{get:function(){return this._dimensions},set:function(o){Z.clone(o,this._dimensions)}}});var C4i=new Z;ADe.prototype.emit=function(o){let f=this._dimensions,m=Z.multiplyByScalar(f,.5,C4i),x=be.randomBetween(-m.x,m.x),y=be.randomBetween(-m.y,m.y),v=be.randomBetween(-m.z,m.z);o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var Lde=ADe;function yR(){this.featurePropertiesDirty=!1}Object.defineProperties(yR.prototype,{featuresLength:{get:function(){wt.throwInstantiationError()}},pointsLength:{get:function(){wt.throwInstantiationError()}},trianglesLength:{get:function(){wt.throwInstantiationError()}},geometryByteLength:{get:function(){wt.throwInstantiationError()}},texturesByteLength:{get:function(){wt.throwInstantiationError()}},batchTableByteLength:{get:function(){wt.throwInstantiationError()}},innerContents:{get:function(){wt.throwInstantiationError()}},ready:{get:function(){wt.throwInstantiationError()}},tileset:{get:function(){wt.throwInstantiationError()}},tile:{get:function(){wt.throwInstantiationError()}},url:{get:function(){wt.throwInstantiationError()}},batchTable:{get:function(){wt.throwInstantiationError()}},metadata:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}},group:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}}});yR.prototype.hasProperty=function(o,f){wt.throwInstantiationError()};yR.prototype.getFeature=function(o){wt.throwInstantiationError()};yR.prototype.applyDebugSettings=function(o,f){wt.throwInstantiationError()};yR.prototype.applyStyle=function(o){wt.throwInstantiationError()};yR.prototype.update=function(o,f){wt.throwInstantiationError()};yR.prototype.pick=function(o,f,m){wt.throwInstantiationError()};yR.prototype.isDestroyed=function(){wt.throwInstantiationError()};yR.prototype.destroy=function(){wt.throwInstantiationError()};var wxt=yR;function l$(o){o=o??si.EMPTY_OBJECT,this._maximumSubtreeCount=o.maximumSubtreeCount??0,this._subtreeRequestCounter=0,this._queue=new Yhe({comparator:l$.comparator})}l$.prototype.addSubtree=function(o){let f=new T4i(o,this._subtreeRequestCounter);this._subtreeRequestCounter++,this._queue.insert(f);let m=o.implicitCoordinates;if(m.level>0){let x=m.getParentSubtreeCoordinates(),y=this.find(x)}if(this._maximumSubtreeCount>0)for(;this._queue.length>this._maximumSubtreeCount&&this._queue.getMinimum()!==f;)this._queue.removeMinimum()};l$.prototype.find=function(o){let f=this._queue,m=f.internalArray,x=f.length;for(let y=0;y<x;y++){let v=m[y],C=v.subtree.implicitCoordinates;if(o.isEqual(C))return v.subtree}};l$.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 T4i(o,f){this.subtree=o,this.stamp=f}var MDe=l$;function D6(o){o=o??si.EMPTY_OBJECT;let{className:f,names:m,types:x,componentTypes:y,shape:v,dimensions:C,paddingBefore:T=Z.ZERO.clone(),paddingAfter:S=Z.ZERO.clone(),globalTransform:w=Ee.IDENTITY.clone(),shapeTransform:E=Ee.IDENTITY.clone(),minBounds:L,maxBounds:I,minimumValues:R,maximumValues:P,maximumTileCount:A}=o;this._shapeTransform=E,this._globalTransform=w,this._shape=v,this._minBounds=L,this._maxBounds=I,this._dimensions=C,this._paddingBefore=T,this._paddingAfter=S,this._className=f,this._names=m,this._types=x,this._componentTypes=y,this._metadataOrder=v===Gb.ELLIPSOID?E9.Z_UP:E9.Y_UP,this._minimumValues=R,this._maximumValues=P,this._maximumTileCount=A,this._availableLevels=void 0,this._implicitTileset=void 0,this._subtreeCache=new MDe}Object.defineProperties(D6.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}}});D6.fromUrl=async function(o){let f=Mr.createIfNeeded(o),m=await f.fetchJson();w4i(m);let x=M4i(m,f);await x.load();let{root:y}=m,v=ld(m,"3DTILES_metadata")?m.extensions["3DTILES_metadata"]:m,C=new lhe({metadataJson:v,schema:x.schema}),T=y.content.extensions["3DTILES_content_voxels"],S=T.class,w=V4i(C,S);Object.assign(w,E4i(y)),F(y.transform)?w.globalTransform=Ee.unpack(y.transform):w.globalTransform=Ee.clone(Ee.IDENTITY),w.dimensions=Z.unpack(T.dimensions),w.maximumTileCount=S4i(C),F(T.padding)&&(w.paddingBefore=Z.unpack(T.padding.before),w.paddingAfter=Z.unpack(T.padding.after));let E=new D6(w),L=new hhe(f,y,x.schema);return E._implicitTileset=L,E._availableLevels=L.availableLevels,qh.unload(x),E};function S4i(o){if(F(o.tileset))return o.tileset.getPropertyBySemantic(the.TILESET_TILE_COUNT)}function w4i(o){let f=o.root;if(!F(f.content))throw new Oi("Root must have content");if(!ld(f.content,"3DTILES_content_voxels"))throw new Oi("Root tile content must have 3DTILES_content_voxels extension");if(!ld(f,"3DTILES_implicit_tiling")&&!F(f.implicitTiling))throw new Oi("Root tile must have implicit tiling");if(!F(o.schema)&&!F(o.schemaUri)&&!ld(o,"3DTILES_metadata"))throw new Oi("Tileset must have a metadata schema")}function E4i(o){let f=o.boundingVolume;if(F(f.box))return R4i(f.box);if(F(f.region))return L4i(f.region);if(ld(f,"3DTILES_bounding_volume_cylinder"))return A4i(f.extensions["3DTILES_bounding_volume_cylinder"]);throw new Oi("Only box, region and 3DTILES_bounding_volume_cylinder are supported in Cesium3DTilesVoxelProvider")}function L4i(o){let f=o[0],m=o[1],x=o[2],y=o[3],v=o[4],C=o[5],T=Ee.fromScale(yi.WGS84.radii),S=new Z(f,m,v),w=new Z(x,y,C);return{shape:Gb.ELLIPSOID,minBounds:S,maxBounds:w,shapeTransform:T}}var P4i=new Z,I4i=new Ut;function R4i(o){let f=Tu.unpack(o),m=Ut.getScale(f.halfAxes,P4i),x=Ut.getRotation(f.halfAxes,I4i);return{shape:Gb.BOX,minBounds:Z.negate(m,new Z),maxBounds:Z.clone(m),shapeTransform:Ee.fromRotationTranslation(x,f.center)}}function A4i(o){let{minRadius:f,maxRadius:m,height:x,minAngle:y=-be.PI,maxAngle:v=be.PI,translation:C=[0,0,0],rotation:T=[0,0,0,1]}=o,S=-.5*x+C[2],w=.5*x+C[2],E=Ee.fromTranslationQuaternionRotationScale(Z.unpack(C),fr.unpack(T),Z.ONE);return{shape:Gb.CYLINDER,minBounds:Z.fromElements(f,y,S),maxBounds:Z.fromElements(m,v,w),shapeTransform:E}}function M4i(o,f){let{schemaUri:m,schema:x}=o;return F(m)?qh.getSchemaLoader({resource:f.getDerivedResource({url:m})}):qh.getSchemaLoader({schema:x})}function V4i(o,f){let{schema:m,statistics:x}=o,y=x?.classes[f],v=m.classes[f].properties,C=Object.entries(v).map(([R,P])=>{let{type:A,componentType:M}=P,V=y?.properties[R].min,G=y?.properties[R].max,D=fo.getComponentCount(A),N=R7e(V,D),k=R7e(G,D);return{id:R,type:A,componentType:M,minValue:N,maxValue:k}}),T=C.map(R=>R.id),S=C.map(R=>R.type),w=C.map(R=>R.componentType),E=C.map(R=>R.minValue),L=C.map(R=>R.maxValue),I=E.some(F);return{className:f,names:T,types:S,componentTypes:w,minimumValues:I?E:void 0,maximumValues:I?L:void 0}}function R7e(o,f){if(!F(o))return;let m=Array.isArray(o)?o:[o];return Array.from({length:f},(x,y)=>m[y])}async function G4i(o,f){let m=o._implicitTileset,x=o._subtreeCache,y=x.find(f);if(F(y))return y;let v=m.subtreeUriTemplate.getDerivedResource({templateValues:f.getTemplateValues()}),C=m.baseResource.getDerivedResource({url:v.url}),T=await C.fetchArrayBuffer();if(y=x.find(f),F(y))return y;let S=vq(T);return y=await ehe.fromSubtreeJson(C,S.jsonPayload,S.binaryPayload,m,f),x.addSubtree(y),y}D6.prototype.requestData=async function(o){o=o??si.EMPTY_OBJECT;let{tileLevel:f=0,tileX:m=0,tileY:x=0,tileZ:y=0,keyframe:v=0}=o;if(v!==0)return Promise.reject("3D Tiles currently doesn't support time-dynamic data.");let C=this._implicitTileset,T=new dhe({subdivisionScheme:C.subdivisionScheme,subtreeLevels:C.subtreeLevels,level:f,x:m,y:x,z:y}),S=T.isSubtreeRoot()&&T.level>0,w=S?T.getParentSubtreeCoordinates():T.getSubtreeCoordinates(),E=await G4i(this,w);if(!(S?E.childSubtreeIsAvailableAtCoordinates:E.tileIsAvailableAtCoordinates).call(E,T))return Promise.reject(`Tile is not available at level ${f}, x ${m}, y ${x}, z ${y}.`);let{contentUriTemplates:L,baseResource:I}=C,R=L[0].getDerivedResource({templateValues:T.getTemplateValues()}),P=I.getDerivedResource({url:R.url});return zhe.fromGltf(P)};var Ext=D6;function VDe(o){o=o??1,this._radius=o??1}Object.defineProperties(VDe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});VDe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,this._radius),x=m*Math.cos(f),y=m*Math.sin(f),v=0;o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.clone(Z.UNIT_Z,o.velocity)};var GDe=VDe,$Te={CUMULUS:0};$Te.validate=function(o){return o===$Te.CUMULUS};var ple=Object.freeze($Te);function SL(o,f){if(o=o??si.EMPTY_OBJECT,this._show=o.show??!0,this._position=Z.clone(o.position??Z.ZERO),!F(o.scale)&&F(o.maximumSize))this._maximumSize=Z.clone(o.maximumSize),this._scale=new rt(this._maximumSize.x,this._maximumSize.y);else{this._scale=rt.clone(o.scale??new rt(20,12));let m=new Z(this._scale.x,this._scale.y,Math.min(this._scale.x,this._scale.y)/1.5);this._maximumSize=Z.clone(o.maximumSize??m)}this._slice=o.slice??-1,this._color=Xe.clone(o.color??Xe.WHITE),this._brightness=o.brightness??1,this._cloudCollection=f,this._index=-1}var F4i=SL.SHOW_INDEX=0,D4i=SL.POSITION_INDEX=1,N4i=SL.SCALE_INDEX=2,W4i=SL.MAXIMUM_SIZE_INDEX=3,Z4i=SL.SLICE_INDEX=4,O4i=SL.BRIGHTNESS_INDEX=5,X4i=SL.COLOR_INDEX=6;SL.NUMBER_OF_PROPERTIES=7;function tZ(o,f){let m=o._cloudCollection;F(m)&&(m._updateCloud(o,f),o._dirty=!0)}Object.defineProperties(SL.prototype,{show:{get:function(){return this._show},set:function(o){this._show!==o&&(this._show=o,tZ(this,F4i))}},position:{get:function(){return this._position},set:function(o){let f=this._position;Z.equals(f,o)||(Z.clone(o,f),tZ(this,D4i))}},scale:{get:function(){return this._scale},set:function(o){let f=this._scale;rt.equals(f,o)||(rt.clone(o,f),tZ(this,N4i))}},maximumSize:{get:function(){return this._maximumSize},set:function(o){let f=this._maximumSize;Z.equals(f,o)||(Z.clone(o,f),tZ(this,W4i))}},color:{get:function(){return this._color},set:function(o){let f=this._color;Xe.equals(f,o)||(Xe.clone(o,f),tZ(this,X4i))}},slice:{get:function(){return this._slice},set:function(o){this._slice!==o&&(this._slice=o,tZ(this,Z4i))}},brightness:{get:function(){return this._brightness},set:function(o){this._brightness!==o&&(this._brightness=o,tZ(this,O4i))}}});SL.prototype._destroy=function(){this._cloudCollection=void 0};var wL=SL,$C,goe=new Z,k4i={positionHighAndScaleX:0,positionLowAndScaleY:1,packedAttribute0:2,packedAttribute1:3,color:4},U4i={direction:0,positionHighAndScaleX:1,positionLowAndScaleY:2,packedAttribute0:3,packedAttribute1:4,color:5},B4i=wL.SHOW_INDEX,H4i=wL.POSITION_INDEX,z4i=wL.SCALE_INDEX,Y4i=wL.MAXIMUM_SIZE_INDEX,K4i=wL.SLICE_INDEX,J4i=wL.BRIGHTNESS_INDEX,j4i=wL.NUMBER_OF_PROPERTIES,Q4i=wL.COLOR_INDEX;function EL(o){o=o??si.EMPTY_OBJECT,this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(j4i),this._noiseTexture=void 0,this._textureSliceWidth=128,this._noiseTextureRows=4,this.noiseDetail=o.noiseDetail??16,this.noiseOffset=Z.clone(o.noiseOffset??Z.ZERO),this._loading=!1,this._ready=!1;let f=this;this._uniforms={u_noiseTexture:function(){return f._noiseTexture},u_noiseTextureDimensions:Lxt(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 Lxt(o){return function(){return goe.x=o._textureSliceWidth,goe.y=o._noiseTextureRows,goe.z=1/o._noiseTextureRows,goe}}Object.defineProperties(EL.prototype,{length:{get:function(){return FDe(this),this._clouds.length}}});function Pxt(o){let f=o.length;for(let m=0;m<f;++m)o[m]&&o[m]._destroy()}EL.prototype.add=function(o){o=o??si.EMPTY_OBJECT;let f=o.cloudType??ple.CUMULUS,m;return f===ple.CUMULUS&&(m=new wL(o,this),m._index=this._clouds.length,this._clouds.push(m),this._createVertexArray=!0),m};EL.prototype.remove=function(o){return this.contains(o)?(this._clouds[o._index]=void 0,this._cloudsRemoved=!0,this._createVertexArray=!0,o._destroy(),!0):!1};EL.prototype.removeAll=function(){Pxt(this._clouds),this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!0};function FDe(o){if(o._cloudsRemoved){o._cloudsRemoved=!1;let f=[],m=o._clouds,x=m.length;for(let y=0,v=0;y<x;++y){let C=m[y];F(C)&&(m._index=v++,f.push(C))}o._clouds=f}}EL.prototype._updateCloud=function(o,f){o._dirty||(this._cloudsToUpdate[this._cloudsToUpdateIndex++]=o),++this._propertiesChanged[f]};EL.prototype.contains=function(o){return F(o)&&o._cloudCollection===this};EL.prototype.get=function(o){return FDe(this),this._clouds[o]};var q4i=new Float32Array([-1,-1,1,-1,1,1,-1,1]),$4i=new Uint16Array([0,1,2,0,2,3]);function eYi(o){let f=mo.createVertexBuffer({context:o,typedArray:q4i,usage:rn.STATIC_DRAW}),m=mo.createIndexBuffer({context:o,typedArray:$4i,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),x=[{index:0,vertexBuffer:f,componentsPerAttribute:2,componentDatatype:Qt.FLOAT}];return new Cu({context:o,attributes:x,indexBuffer:m})}var DDe;function tYi(o){let f=o.cache.cloudCollection_indexBufferBatched;if(F(f))return f;let m=16384*6-6,x=new Uint16Array(m);for(let y=0,v=0;y<m;y+=6,v+=4)x[y]=v,x[y+1]=v+1,x[y+2]=v+2,x[y+3]=v,x[y+4]=v+2,x[y+5]=v+3;return f=mo.createIndexBuffer({context:o,typedArray:x,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferBatched=f,f}function iYi(o){let f=o.cache.cloudCollection_indexBufferInstanced;return F(f)||(f=mo.createIndexBuffer({context:o,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferInstanced=f),f}function rYi(o){let f=o.cache.cloudCollection_vertexBufferInstanced;return F(f)||(f=mo.createVertexBuffer({context:o,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:rn.STATIC_DRAW}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_vertexBufferInstanced=f),f}function nYi(o,f,m){let x=[{index:$C.positionHighAndScaleX,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.positionLowAndScaleY,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute0,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute1,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.color,componentsPerAttribute:4,componentDatatype:Qt.UNSIGNED_BYTE,normalize:!0,usage:rn.STATIC_DRAW}];m&&x.push({index:$C.direction,componentsPerAttribute:2,componentDatatype:Qt.FLOAT,vertexBuffer:rYi(o)});let y=m?f:4*f;return new h7(o,x,y,m)}var $be=new $u;function Ixt(o,f,m,x){let y,v=m[$C.positionHighAndScaleX],C=m[$C.positionLowAndScaleY],T=x.position;$u.fromCartesian(T,$be);let S=x.scale,w=$be.high,E=$be.low;o._instanced?(y=x._index,v(y,w.x,w.y,w.z,S.x),C(y,E.x,E.y,E.z,S.y)):(y=x._index*4,v(y+0,w.x,w.y,w.z,S.x),v(y+1,w.x,w.y,w.z,S.x),v(y+2,w.x,w.y,w.z,S.x),v(y+3,w.x,w.y,w.z,S.x),C(y+0,E.x,E.y,E.z,S.y),C(y+1,E.x,E.y,E.z,S.y),C(y+2,E.x,E.y,E.z,S.y),C(y+3,E.x,E.y,E.z,S.y))}function Rxt(o,f,m,x){let y,v=m[$C.packedAttribute0],C=x.show,T=x.brightness;o._instanced?(y=x._index,v(y,C,T,0,0)):(y=x._index*4,v(y+0,C,T,0,0),v(y+1,C,T,1,0),v(y+2,C,T,1,1),v(y+3,C,T,0,1))}function Axt(o,f,m,x){let y,v=m[$C.packedAttribute1],C=x.maximumSize,T=x.slice;o._instanced?(y=x._index,v(y,C.x,C.y,C.z,T)):(y=x._index*4,v(y+0,C.x,C.y,C.z,T),v(y+1,C.x,C.y,C.z,T),v(y+2,C.x,C.y,C.z,T),v(y+3,C.x,C.y,C.z,T))}function Mxt(o,f,m,x){let y,v=m[$C.color],C=x.color,T=Xe.floatToByte(C.red),S=Xe.floatToByte(C.green),w=Xe.floatToByte(C.blue),E=Xe.floatToByte(C.alpha);o._instanced?(y=x._index,v(y,T,S,w,E)):(y=x._index*4,v(y+0,T,S,w,E),v(y+1,T,S,w,E),v(y+2,T,S,w,E),v(y+3,T,S,w,E))}function oYi(o,f,m,x){Ixt(o,f,m,x),Rxt(o,f,m,x),Axt(o,f,m,x),Mxt(o,f,m,x)}function aYi(o,f,m,x){let y=o,v=y._textureSliceWidth,C=y._noiseTextureRows,T=f.context;y._vaNoise=eYi(T),y._spNoise=xs.fromCache({context:T,vertexShaderSource:m,fragmentShaderSource:x,attributeLocations:{position:0}});let S=y.noiseDetail,w=y.noiseOffset;y._noiseTexture=new Rn({context:T,width:v*v/C,height:v*C,pixelDatatype:un.UNSIGNED_BYTE,pixelFormat:zr.RGBA,sampler:new Yo({wrapS:Xn.REPEAT,wrapT:Xn.REPEAT,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})});let E=new dV({vertexArray:y._vaNoise,shaderProgram:y._spNoise,outputTexture:y._noiseTexture,uniformMap:{u_noiseTextureDimensions:Lxt(y),u_noiseDetail:function(){return S},u_noiseOffset:function(){return w}},persists:!1,owner:o,postExecute:function(L){y._ready=!0,y._loading=!1}});f.commandList.push(E),y._loading=!0}function sYi(o,f){let m=o,x=f.context;m._createVertexArray=!1,m._vaf=m._vaf&&m._vaf.destroy();let y=o._clouds,v=y.length;if(v>0){m._vaf=nYi(x,v,m._instanced);let C=m._vaf.writers,T;for(T=0;T<v;++T){let S=y[T];oYi(o,f,C,S)}m._vaf.commit(DDe(x))}}var lYi=[];function uYi(o,f){let m=f.context,x=o,y=x._clouds.length,v=x._cloudsToUpdate,C=x._cloudsToUpdateIndex,T=x._propertiesChanged,S=lYi;S.length=0,(T[H4i]||T[z4i])&&S.push(Ixt),(T[B4i]||T[J4i])&&S.push(Rxt),(T[Y4i]||T[K4i])&&S.push(Axt),T[Q4i]&&S.push(Mxt);let w=S.length,E=x._vaf.writers,L,I,R;if(C/y>.1){for(L=0;L<C;++L)for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._vaf.commit(DDe(m))}else{for(L=0;L<C;++L){for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._instanced?x._vaf.subCommit(I._index,1):x._vaf.subCommit(I._index*4,4)}x._vaf.endSubCommits()}x._cloudsToUpdateIndex=0}function cYi(o,f,m,x){let y=f.context,v=o,C=new Wr({defines:[],sources:[m]});v._instanced&&C.defines.push("INSTANCED");let T=new Wr({defines:[],sources:[x]});v.debugBillboards&&T.defines.push("DEBUG_BILLBOARDS"),v.debugEllipsoids&&T.defines.push("DEBUG_ELLIPSOIDS"),v._sp=xs.replaceCache({context:y,shaderProgram:v._sp,vertexShaderSource:C,fragmentShaderSource:T,attributeLocations:$C}),v._rs=cn.fromCache({depthTest:{enabled:!0,func:bi.LESS},depthMask:!1,blending:ru.ALPHA_BLEND}),v._spCreated=!0,v._compiledDebugBillboards=v.debugBillboards,v._compiledDebugEllipsoids=v.debugEllipsoids}function hYi(o,f){let m=o,x=f.passes,y=m._uniforms,v=f.commandList;if(x.render){let C=m._colorCommands,T=m._vaf.va,S=T.length;C.length=S;for(let w=0;w<S;w++){let E=C[w];F(E)||(E=C[w]=new En),E.pass=xr.TRANSLUCENT,E.owner=o,E.uniformMap=y,E.count=T[w].indicesCount,E.vertexArray=T[w].va,E.shaderProgram=m._sp,E.renderState=m._rs,m._instanced&&(E.count=6,E.instanceCount=m._clouds.length),v.push(E)}}}EL.prototype.update=function(o){if(FDe(this),!this.show)return;let f=this.debugBillboards||this.debugEllipsoids;this._ready=f?!0:F(this._noiseTexture),!this._ready&&!this._loading&&!f&&aYi(this,o,pDe,dDe),this._instanced=o.context.instancedArrays,$C=this._instanced?U4i:k4i,DDe=this._instanced?iYi:tYi;let m=this._clouds.length,x=this._cloudsToUpdate,y=this._cloudsToUpdateIndex;this._createVertexArray?sYi(this,o):y>0&&uYi(this,o),y>m*1.5&&(x.length=m),!(!F(this._vaf)||!F(this._vaf.va)||!this._ready&!f)&&((!this._spCreated||this.debugBillboards!==this._compiledDebugBillboards||this.debugEllipsoids!==this._compiledDebugEllipsoids)&&cYi(this,o,hDe,cDe),hYi(this,o))};EL.prototype.isDestroyed=function(){return!1};EL.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(),Pxt(this._clouds),yr(this)};var Vxt=EL,dYi=be.toRadians(30);function NDe(o){this._angle=o??dYi}Object.defineProperties(NDe.prototype,{angle:{get:function(){return this._angle},set:function(o){this._angle=o}}});NDe.prototype.emit=function(o){let f=Math.tan(this._angle),m=be.randomBetween(0,be.TWO_PI),x=be.randomBetween(0,f),y=x*Math.cos(m),v=x*Math.sin(m),C=1;o.velocity=Z.fromElements(y,v,C,o.velocity),Z.normalize(o.velocity,o.velocity),o.position=Z.clone(Z.ZERO,o.position)};var k4=NDe,pYi=new Xe,fYi=new Xe,mYi=new Xe,xYi=new Xe,A7e=new zt,rj=new Uint8Array(4);function M7e(o,f,m,x){let y=f.height===m.height?0:(o-f.height)/(m.height-f.height);return Xe.lerp(f.color,m.color,y,x)}function bae(o,f){return{height:o,color:Xe.clone(f)}}function Gxt(o){return o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?f.height===x[m-1].height:!0,T=v?f.height===x[m+1].height:!0;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?Xe.equals(f.color,x[m-1].color):!1,T=v?Xe.equals(f.color,x[m+1].color):!1;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=y?Xe.equals(f.color,x[m-1].color):!1,C=y?f.height===x[m-1].height:!0;return!v||!C}),o}function gYi(o){let f,m,x=[],y=o.length;for(f=0;f<y;f++){let v=o[f],C=v.entries,T=C.length,S=[];for(m=0;m<T;m++){let R=C[m],P=be.clamp(R.height,Ab._minimumHeight,Ab._maximumHeight),A=Xe.clone(R.color,pYi);A.red*=A.alpha,A.green*=A.alpha,A.blue*=A.alpha,S.push(bae(P,A))}let w=!0,E=!0;for(m=0;m<T-1;m++){let R=S[m+0],P=S[m+1];w=w&&R.height<=P.height,E=E&&R.height>=P.height}E?S=S.reverse():w||C4(S,function(R,P){return be.sign(R.height-P.height)});let L=v.extendDownwards??!1,I=v.extendUpwards??!1;S.length===1&&!L&&!I&&(L=!0,I=!0),L&&S.splice(0,0,bae(Ab._minimumHeight,S[0].color)),I&&S.splice(S.length,0,bae(Ab._maximumHeight,S[S.length-1].color)),S=Gxt(S),x.push(S)}return x}function yYi(o){let f=gYi(o),m=[],x=[],y;function v(S,w){m.push(bae(S,w))}function C(S,w,E){let L=Xe.multiplyByScalar(E,1-w.alpha,xYi);L=Xe.add(L,w,L),v(S,L)}let T=f.length;for(y=0;y<T;y++){let S=f[y],w=0,E=0;x=m,m=[];let L=S.length,I=x.length;for(;w<L||E<I;){let R=w<L?S[w]:void 0,P=w>0?S[w-1]:void 0,A=w<L-1?S[w+1]:void 0,M=E<I?x[E]:void 0,V=E>0?x[E-1]:void 0,G=E<I-1?x[E+1]:void 0;if(F(R)&&F(M)&&R.height===M.height){let D=F(G)&&M.height===G.height,N=!F(V),k=!F(G),U=F(A)&&R.height===A.height,B=!F(P),Y=!F(A);D?U?(C(R.height,R.color,M.color),C(R.height,A.color,G.color)):B?(v(R.height,M.color),C(R.height,R.color,G.color)):Y?(C(R.height,R.color,M.color),v(R.height,G.color)):(C(R.height,R.color,M.color),C(R.height,R.color,G.color)):N?U?(v(R.height,R.color),C(R.height,A.color,M.color)):Y?(v(R.height,R.color),v(R.height,M.color)):(B||v(R.height,R.color),C(R.height,R.color,M.color)):k?U?(C(R.height,R.color,M.color),v(R.height,A.color)):B?(v(R.height,M.color),v(R.height,R.color)):Y?C(R.height,R.color,M.color):(C(R.height,R.color,M.color),v(R.height,R.color)):U?(C(R.height,R.color,M.color),C(R.height,A.color,M.color)):B?(v(R.height,M.color),C(R.height,R.color,M.color)):Y?(C(R.height,R.color,M.color),v(R.height,M.color)):C(R.height,R.color,M.color),w+=U?2:1,E+=D?2:1}else if(F(R)&&F(M)&&F(V)&&R.height<M.height){let D=M7e(R.height,V,M,mYi);F(P)?F(A)?C(R.height,R.color,D):(C(R.height,R.color,D),v(R.height,D)):(v(R.height,D),C(R.height,R.color,D)),w++}else if(F(M)&&F(R)&&F(P)&&M.height<R.height){let D=M7e(M.height,P,R,fYi);F(V)?F(G)?C(M.height,D,M.color):(C(M.height,D,M.color),v(M.height,D)):(v(M.height,D),C(M.height,D,M.color)),E++}else F(R)&&(!F(M)||R.height<M.height)?(F(M)&&!F(V)&&!F(A)?(v(R.height,R.color),v(R.height,Ab._emptyColor),v(M.height,Ab._emptyColor)):(!F(M)&&F(V)&&!F(P)&&(v(V.height,Ab._emptyColor),v(R.height,Ab._emptyColor)),v(R.height,R.color)),w++):F(M)&&(!F(R)||M.height<R.height)&&(v(M.height,M.color),E++)}}return Gxt(m)}function Ab(o){let{scene:f,layers:m}=o??si.EMPTY_OBJECT,{context:x}=f,y=yYi(m),v=y.length,C,T,S;if(Ab._useFloatTexture(x)){T=un.FLOAT,S=x.webgl2?zr.RED:zr.LUMINANCE,C=new Float32Array(v);for(let I=0;I<v;I++)C[I]=y[I].height}else{T=un.UNSIGNED_BYTE,S=zr.RGBA,C=new Uint8Array(v*4);for(let I=0;I<v;I++)zt.packFloat(y[I].height,A7e),zt.pack(A7e,C,I*4)}let w=Rn.create({context:x,pixelFormat:S,pixelDatatype:T,source:{arrayBufferView:C,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})}),E=new Uint8Array(v*4);for(let I=0;I<v;I++)y[I].color.toBytes(rj),E[I*4+0]=rj[0],E[I*4+1]=rj[1],E[I*4+2]=rj[2],E[I*4+3]=rj[3];let L=Rn.create({context:x,pixelFormat:zr.RGBA,pixelDatatype:un.UNSIGNED_BYTE,source:{arrayBufferView:E,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})});return Co.fromType("ElevationBand",{heights:w,colors:L})}Ab._useFloatTexture=function(o){return o.floatingPointTexture};Ab._maximumHeight=5906376425472;Ab._minimumHeight=-5906376425472;Ab._emptyColor=new Xe(0,0,0,0);var Fxt=Ab;async function _Yi(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??si.EMPTY_OBJECT,o.onlyUsingWithGoogleGeocoder||aa("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??gQ.defaultApiKey;if(!F(m))return vYi(f);let x,y=gQ.getDefaultCredit();F(y)&&(x=[y]);let v=new Mr({url:`${gQ.mapTilesApiEndpoint}3dtiles/root.json`,queryParameters:{key:m},credits:x});return _0.fromUrl(v,f)}var V7e={};async function vYi(o){let f=V7e[2275207];F(f)||(f=FG.fromAssetId(2275207),V7e[2275207]=f);let m=await f;return _0.fromUrl(m,o)}var Dxt=_Yi;async function bYi(o){let f=await _0.fromIonAssetId(96188,o);o=o??si.EMPTY_OBJECT;let m=o.style;if(!F(m)){let x=(o.defaultColor??Xe.WHITE).toCssColorString();m=new OS({color:`Boolean(\${feature['cesium#color']}) ? color(\${feature['cesium#color']}) : ${x}`})}return f.style=m,f}var Nxt=bYi;function CYi(o){o=o??si.EMPTY_OBJECT;let f=[],m=o.geometry;(!F(m.attributes)||!F(m.primitiveType))&&(m=m.constructor.createGeometry(m));let x=m.attributes,y=Ee.clone(o.modelMatrix??Ee.IDENTITY),v=o.length??1e4;if(F(x.normal)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"normal",v),attributes:{color:new yo(1,0,0,1)},modelMatrix:y})),F(x.tangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"tangent",v),attributes:{color:new yo(0,1,0,1)},modelMatrix:y})),F(x.bitangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"bitangent",v),attributes:{color:new yo(0,0,1,1)},modelMatrix:y})),f.length>0)return new ta({asynchronous:!1,geometryInstances:f,appearance:new ga({flat:!0,translucent:!1})})}var Wxt=CYi;function u$(o){o=o??si.EMPTY_OBJECT;let f=o.attributeName,m=o.perInstanceAttribute;F(m)||(m=!1);let x=o.glslDatatype??"vec3",y=`v_${f}`,v;if(f==="normal"||f==="tangent"||f==="bitangent")v=`vec4 getColor() { return vec4((${y} + vec3(1.0)) * 0.5, 1.0); } +`,v4i=new Z(1,1,1);function ADe(o){o=o??v4i,this._dimensions=Z.clone(o)}Object.defineProperties(ADe.prototype,{dimensions:{get:function(){return this._dimensions},set:function(o){Z.clone(o,this._dimensions)}}});var b4i=new Z;ADe.prototype.emit=function(o){let f=this._dimensions,m=Z.multiplyByScalar(f,.5,b4i),x=be.randomBetween(-m.x,m.x),y=be.randomBetween(-m.y,m.y),v=be.randomBetween(-m.z,m.z);o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var Ede=ADe;function yR(){this.featurePropertiesDirty=!1}Object.defineProperties(yR.prototype,{featuresLength:{get:function(){wt.throwInstantiationError()}},pointsLength:{get:function(){wt.throwInstantiationError()}},trianglesLength:{get:function(){wt.throwInstantiationError()}},geometryByteLength:{get:function(){wt.throwInstantiationError()}},texturesByteLength:{get:function(){wt.throwInstantiationError()}},batchTableByteLength:{get:function(){wt.throwInstantiationError()}},innerContents:{get:function(){wt.throwInstantiationError()}},ready:{get:function(){wt.throwInstantiationError()}},tileset:{get:function(){wt.throwInstantiationError()}},tile:{get:function(){wt.throwInstantiationError()}},url:{get:function(){wt.throwInstantiationError()}},batchTable:{get:function(){wt.throwInstantiationError()}},metadata:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}},group:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}}});yR.prototype.hasProperty=function(o,f){wt.throwInstantiationError()};yR.prototype.getFeature=function(o){wt.throwInstantiationError()};yR.prototype.applyDebugSettings=function(o,f){wt.throwInstantiationError()};yR.prototype.applyStyle=function(o){wt.throwInstantiationError()};yR.prototype.update=function(o,f){wt.throwInstantiationError()};yR.prototype.pick=function(o,f,m){wt.throwInstantiationError()};yR.prototype.isDestroyed=function(){wt.throwInstantiationError()};yR.prototype.destroy=function(){wt.throwInstantiationError()};var Txt=yR;function l$(o){o=o??si.EMPTY_OBJECT,this._maximumSubtreeCount=o.maximumSubtreeCount??0,this._subtreeRequestCounter=0,this._queue=new Yhe({comparator:l$.comparator})}l$.prototype.addSubtree=function(o){let f=new C4i(o,this._subtreeRequestCounter);this._subtreeRequestCounter++,this._queue.insert(f);let m=o.implicitCoordinates;if(m.level>0){let x=m.getParentSubtreeCoordinates(),y=this.find(x)}if(this._maximumSubtreeCount>0)for(;this._queue.length>this._maximumSubtreeCount&&this._queue.getMinimum()!==f;)this._queue.removeMinimum()};l$.prototype.find=function(o){let f=this._queue,m=f.internalArray,x=f.length;for(let y=0;y<x;y++){let v=m[y],C=v.subtree.implicitCoordinates;if(o.isEqual(C))return v.subtree}};l$.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 C4i(o,f){this.subtree=o,this.stamp=f}var MDe=l$;function D6(o){o=o??si.EMPTY_OBJECT;let{className:f,names:m,types:x,componentTypes:y,shape:v,dimensions:C,paddingBefore:T=Z.ZERO.clone(),paddingAfter:S=Z.ZERO.clone(),globalTransform:w=Ee.IDENTITY.clone(),shapeTransform:E=Ee.IDENTITY.clone(),minBounds:L,maxBounds:I,minimumValues:R,maximumValues:P,maximumTileCount:A}=o;this._shapeTransform=E,this._globalTransform=w,this._shape=v,this._minBounds=L,this._maxBounds=I,this._dimensions=C,this._paddingBefore=T,this._paddingAfter=S,this._className=f,this._names=m,this._types=x,this._componentTypes=y,this._metadataOrder=v===Gb.ELLIPSOID?E9.Z_UP:E9.Y_UP,this._minimumValues=R,this._maximumValues=P,this._maximumTileCount=A,this._availableLevels=void 0,this._implicitTileset=void 0,this._subtreeCache=new MDe}Object.defineProperties(D6.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}}});D6.fromUrl=async function(o){let f=Mr.createIfNeeded(o),m=await f.fetchJson();S4i(m);let x=A4i(m,f);await x.load();let{root:y}=m,v=ld(m,"3DTILES_metadata")?m.extensions["3DTILES_metadata"]:m,C=new lhe({metadataJson:v,schema:x.schema}),T=y.content.extensions["3DTILES_content_voxels"],S=T.class,w=M4i(C,S);Object.assign(w,w4i(y)),F(y.transform)?w.globalTransform=Ee.unpack(y.transform):w.globalTransform=Ee.clone(Ee.IDENTITY),w.dimensions=Z.unpack(T.dimensions),w.maximumTileCount=T4i(C),F(T.padding)&&(w.paddingBefore=Z.unpack(T.padding.before),w.paddingAfter=Z.unpack(T.padding.after));let E=new D6(w),L=new hhe(f,y,x.schema);return E._implicitTileset=L,E._availableLevels=L.availableLevels,qh.unload(x),E};function T4i(o){if(F(o.tileset))return o.tileset.getPropertyBySemantic(the.TILESET_TILE_COUNT)}function S4i(o){let f=o.root;if(!F(f.content))throw new Oi("Root must have content");if(!ld(f.content,"3DTILES_content_voxels"))throw new Oi("Root tile content must have 3DTILES_content_voxels extension");if(!ld(f,"3DTILES_implicit_tiling")&&!F(f.implicitTiling))throw new Oi("Root tile must have implicit tiling");if(!F(o.schema)&&!F(o.schemaUri)&&!ld(o,"3DTILES_metadata"))throw new Oi("Tileset must have a metadata schema")}function w4i(o){let f=o.boundingVolume;if(F(f.box))return I4i(f.box);if(F(f.region))return E4i(f.region);if(ld(f,"3DTILES_bounding_volume_cylinder"))return R4i(f.extensions["3DTILES_bounding_volume_cylinder"]);throw new Oi("Only box, region and 3DTILES_bounding_volume_cylinder are supported in Cesium3DTilesVoxelProvider")}function E4i(o){let f=o[0],m=o[1],x=o[2],y=o[3],v=o[4],C=o[5],T=Ee.fromScale(yi.WGS84.radii),S=new Z(f,m,v),w=new Z(x,y,C);return{shape:Gb.ELLIPSOID,minBounds:S,maxBounds:w,shapeTransform:T}}var L4i=new Z,P4i=new Ut;function I4i(o){let f=Tu.unpack(o),m=Ut.getScale(f.halfAxes,L4i),x=Ut.getRotation(f.halfAxes,P4i);return{shape:Gb.BOX,minBounds:Z.negate(m,new Z),maxBounds:Z.clone(m),shapeTransform:Ee.fromRotationTranslation(x,f.center)}}function R4i(o){let{minRadius:f,maxRadius:m,height:x,minAngle:y=-be.PI,maxAngle:v=be.PI,translation:C=[0,0,0],rotation:T=[0,0,0,1]}=o,S=-.5*x+C[2],w=.5*x+C[2],E=Ee.fromTranslationQuaternionRotationScale(Z.unpack(C),fr.unpack(T),Z.ONE);return{shape:Gb.CYLINDER,minBounds:Z.fromElements(f,y,S),maxBounds:Z.fromElements(m,v,w),shapeTransform:E}}function A4i(o,f){let{schemaUri:m,schema:x}=o;return F(m)?qh.getSchemaLoader({resource:f.getDerivedResource({url:m})}):qh.getSchemaLoader({schema:x})}function M4i(o,f){let{schema:m,statistics:x}=o,y=x?.classes[f],v=m.classes[f].properties,C=Object.entries(v).map(([R,P])=>{let{type:A,componentType:M}=P,V=y?.properties[R].min,G=y?.properties[R].max,D=fo.getComponentCount(A),N=R7e(V,D),k=R7e(G,D);return{id:R,type:A,componentType:M,minValue:N,maxValue:k}}),T=C.map(R=>R.id),S=C.map(R=>R.type),w=C.map(R=>R.componentType),E=C.map(R=>R.minValue),L=C.map(R=>R.maxValue),I=E.some(F);return{className:f,names:T,types:S,componentTypes:w,minimumValues:I?E:void 0,maximumValues:I?L:void 0}}function R7e(o,f){if(!F(o))return;let m=Array.isArray(o)?o:[o];return Array.from({length:f},(x,y)=>m[y])}async function V4i(o,f){let m=o._implicitTileset,x=o._subtreeCache,y=x.find(f);if(F(y))return y;let v=m.subtreeUriTemplate.getDerivedResource({templateValues:f.getTemplateValues()}),C=m.baseResource.getDerivedResource({url:v.url}),T=await C.fetchArrayBuffer();if(y=x.find(f),F(y))return y;let S=vq(T);return y=await ehe.fromSubtreeJson(C,S.jsonPayload,S.binaryPayload,m,f),x.addSubtree(y),y}D6.prototype.requestData=async function(o){o=o??si.EMPTY_OBJECT;let{tileLevel:f=0,tileX:m=0,tileY:x=0,tileZ:y=0,keyframe:v=0}=o;if(v!==0)return Promise.reject("3D Tiles currently doesn't support time-dynamic data.");let C=this._implicitTileset,T=new dhe({subdivisionScheme:C.subdivisionScheme,subtreeLevels:C.subtreeLevels,level:f,x:m,y:x,z:y}),S=T.isSubtreeRoot()&&T.level>0,w=S?T.getParentSubtreeCoordinates():T.getSubtreeCoordinates(),E=await V4i(this,w);if(!(S?E.childSubtreeIsAvailableAtCoordinates:E.tileIsAvailableAtCoordinates).call(E,T))return Promise.reject(`Tile is not available at level ${f}, x ${m}, y ${x}, z ${y}.`);let{contentUriTemplates:L,baseResource:I}=C,R=L[0].getDerivedResource({templateValues:T.getTemplateValues()}),P=I.getDerivedResource({url:R.url});return zhe.fromGltf(P)};var Sxt=D6;function VDe(o){o=o??1,this._radius=o??1}Object.defineProperties(VDe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});VDe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,this._radius),x=m*Math.cos(f),y=m*Math.sin(f),v=0;o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.clone(Z.UNIT_Z,o.velocity)};var GDe=VDe,$Te={CUMULUS:0};$Te.validate=function(o){return o===$Te.CUMULUS};var ple=Object.freeze($Te);function SL(o,f){if(o=o??si.EMPTY_OBJECT,this._show=o.show??!0,this._position=Z.clone(o.position??Z.ZERO),!F(o.scale)&&F(o.maximumSize))this._maximumSize=Z.clone(o.maximumSize),this._scale=new rt(this._maximumSize.x,this._maximumSize.y);else{this._scale=rt.clone(o.scale??new rt(20,12));let m=new Z(this._scale.x,this._scale.y,Math.min(this._scale.x,this._scale.y)/1.5);this._maximumSize=Z.clone(o.maximumSize??m)}this._slice=o.slice??-1,this._color=Xe.clone(o.color??Xe.WHITE),this._brightness=o.brightness??1,this._cloudCollection=f,this._index=-1}var G4i=SL.SHOW_INDEX=0,F4i=SL.POSITION_INDEX=1,D4i=SL.SCALE_INDEX=2,N4i=SL.MAXIMUM_SIZE_INDEX=3,W4i=SL.SLICE_INDEX=4,Z4i=SL.BRIGHTNESS_INDEX=5,O4i=SL.COLOR_INDEX=6;SL.NUMBER_OF_PROPERTIES=7;function tZ(o,f){let m=o._cloudCollection;F(m)&&(m._updateCloud(o,f),o._dirty=!0)}Object.defineProperties(SL.prototype,{show:{get:function(){return this._show},set:function(o){this._show!==o&&(this._show=o,tZ(this,G4i))}},position:{get:function(){return this._position},set:function(o){let f=this._position;Z.equals(f,o)||(Z.clone(o,f),tZ(this,F4i))}},scale:{get:function(){return this._scale},set:function(o){let f=this._scale;rt.equals(f,o)||(rt.clone(o,f),tZ(this,D4i))}},maximumSize:{get:function(){return this._maximumSize},set:function(o){let f=this._maximumSize;Z.equals(f,o)||(Z.clone(o,f),tZ(this,N4i))}},color:{get:function(){return this._color},set:function(o){let f=this._color;Xe.equals(f,o)||(Xe.clone(o,f),tZ(this,O4i))}},slice:{get:function(){return this._slice},set:function(o){this._slice!==o&&(this._slice=o,tZ(this,W4i))}},brightness:{get:function(){return this._brightness},set:function(o){this._brightness!==o&&(this._brightness=o,tZ(this,Z4i))}}});SL.prototype._destroy=function(){this._cloudCollection=void 0};var wL=SL,$C,goe=new Z,X4i={positionHighAndScaleX:0,positionLowAndScaleY:1,packedAttribute0:2,packedAttribute1:3,color:4},k4i={direction:0,positionHighAndScaleX:1,positionLowAndScaleY:2,packedAttribute0:3,packedAttribute1:4,color:5},U4i=wL.SHOW_INDEX,B4i=wL.POSITION_INDEX,H4i=wL.SCALE_INDEX,z4i=wL.MAXIMUM_SIZE_INDEX,Y4i=wL.SLICE_INDEX,K4i=wL.BRIGHTNESS_INDEX,J4i=wL.NUMBER_OF_PROPERTIES,j4i=wL.COLOR_INDEX;function EL(o){o=o??si.EMPTY_OBJECT,this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(J4i),this._noiseTexture=void 0,this._textureSliceWidth=128,this._noiseTextureRows=4,this.noiseDetail=o.noiseDetail??16,this.noiseOffset=Z.clone(o.noiseOffset??Z.ZERO),this._loading=!1,this._ready=!1;let f=this;this._uniforms={u_noiseTexture:function(){return f._noiseTexture},u_noiseTextureDimensions:wxt(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 wxt(o){return function(){return goe.x=o._textureSliceWidth,goe.y=o._noiseTextureRows,goe.z=1/o._noiseTextureRows,goe}}Object.defineProperties(EL.prototype,{length:{get:function(){return FDe(this),this._clouds.length}}});function Ext(o){let f=o.length;for(let m=0;m<f;++m)o[m]&&o[m]._destroy()}EL.prototype.add=function(o){o=o??si.EMPTY_OBJECT;let f=o.cloudType??ple.CUMULUS,m;return f===ple.CUMULUS&&(m=new wL(o,this),m._index=this._clouds.length,this._clouds.push(m),this._createVertexArray=!0),m};EL.prototype.remove=function(o){return this.contains(o)?(this._clouds[o._index]=void 0,this._cloudsRemoved=!0,this._createVertexArray=!0,o._destroy(),!0):!1};EL.prototype.removeAll=function(){Ext(this._clouds),this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!0};function FDe(o){if(o._cloudsRemoved){o._cloudsRemoved=!1;let f=[],m=o._clouds,x=m.length;for(let y=0,v=0;y<x;++y){let C=m[y];F(C)&&(m._index=v++,f.push(C))}o._clouds=f}}EL.prototype._updateCloud=function(o,f){o._dirty||(this._cloudsToUpdate[this._cloudsToUpdateIndex++]=o),++this._propertiesChanged[f]};EL.prototype.contains=function(o){return F(o)&&o._cloudCollection===this};EL.prototype.get=function(o){return FDe(this),this._clouds[o]};var Q4i=new Float32Array([-1,-1,1,-1,1,1,-1,1]),q4i=new Uint16Array([0,1,2,0,2,3]);function $4i(o){let f=mo.createVertexBuffer({context:o,typedArray:Q4i,usage:rn.STATIC_DRAW}),m=mo.createIndexBuffer({context:o,typedArray:q4i,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),x=[{index:0,vertexBuffer:f,componentsPerAttribute:2,componentDatatype:Qt.FLOAT}];return new Cu({context:o,attributes:x,indexBuffer:m})}var DDe;function eYi(o){let f=o.cache.cloudCollection_indexBufferBatched;if(F(f))return f;let m=16384*6-6,x=new Uint16Array(m);for(let y=0,v=0;y<m;y+=6,v+=4)x[y]=v,x[y+1]=v+1,x[y+2]=v+2,x[y+3]=v,x[y+4]=v+2,x[y+5]=v+3;return f=mo.createIndexBuffer({context:o,typedArray:x,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferBatched=f,f}function tYi(o){let f=o.cache.cloudCollection_indexBufferInstanced;return F(f)||(f=mo.createIndexBuffer({context:o,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferInstanced=f),f}function iYi(o){let f=o.cache.cloudCollection_vertexBufferInstanced;return F(f)||(f=mo.createVertexBuffer({context:o,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:rn.STATIC_DRAW}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_vertexBufferInstanced=f),f}function rYi(o,f,m){let x=[{index:$C.positionHighAndScaleX,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.positionLowAndScaleY,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute0,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute1,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.color,componentsPerAttribute:4,componentDatatype:Qt.UNSIGNED_BYTE,normalize:!0,usage:rn.STATIC_DRAW}];m&&x.push({index:$C.direction,componentsPerAttribute:2,componentDatatype:Qt.FLOAT,vertexBuffer:iYi(o)});let y=m?f:4*f;return new h7(o,x,y,m)}var $be=new $u;function Lxt(o,f,m,x){let y,v=m[$C.positionHighAndScaleX],C=m[$C.positionLowAndScaleY],T=x.position;$u.fromCartesian(T,$be);let S=x.scale,w=$be.high,E=$be.low;o._instanced?(y=x._index,v(y,w.x,w.y,w.z,S.x),C(y,E.x,E.y,E.z,S.y)):(y=x._index*4,v(y+0,w.x,w.y,w.z,S.x),v(y+1,w.x,w.y,w.z,S.x),v(y+2,w.x,w.y,w.z,S.x),v(y+3,w.x,w.y,w.z,S.x),C(y+0,E.x,E.y,E.z,S.y),C(y+1,E.x,E.y,E.z,S.y),C(y+2,E.x,E.y,E.z,S.y),C(y+3,E.x,E.y,E.z,S.y))}function Pxt(o,f,m,x){let y,v=m[$C.packedAttribute0],C=x.show,T=x.brightness;o._instanced?(y=x._index,v(y,C,T,0,0)):(y=x._index*4,v(y+0,C,T,0,0),v(y+1,C,T,1,0),v(y+2,C,T,1,1),v(y+3,C,T,0,1))}function Ixt(o,f,m,x){let y,v=m[$C.packedAttribute1],C=x.maximumSize,T=x.slice;o._instanced?(y=x._index,v(y,C.x,C.y,C.z,T)):(y=x._index*4,v(y+0,C.x,C.y,C.z,T),v(y+1,C.x,C.y,C.z,T),v(y+2,C.x,C.y,C.z,T),v(y+3,C.x,C.y,C.z,T))}function Rxt(o,f,m,x){let y,v=m[$C.color],C=x.color,T=Xe.floatToByte(C.red),S=Xe.floatToByte(C.green),w=Xe.floatToByte(C.blue),E=Xe.floatToByte(C.alpha);o._instanced?(y=x._index,v(y,T,S,w,E)):(y=x._index*4,v(y+0,T,S,w,E),v(y+1,T,S,w,E),v(y+2,T,S,w,E),v(y+3,T,S,w,E))}function nYi(o,f,m,x){Lxt(o,f,m,x),Pxt(o,f,m,x),Ixt(o,f,m,x),Rxt(o,f,m,x)}function oYi(o,f,m,x){let y=o,v=y._textureSliceWidth,C=y._noiseTextureRows,T=f.context;y._vaNoise=$4i(T),y._spNoise=xs.fromCache({context:T,vertexShaderSource:m,fragmentShaderSource:x,attributeLocations:{position:0}});let S=y.noiseDetail,w=y.noiseOffset;y._noiseTexture=new Rn({context:T,width:v*v/C,height:v*C,pixelDatatype:un.UNSIGNED_BYTE,pixelFormat:zr.RGBA,sampler:new Yo({wrapS:Xn.REPEAT,wrapT:Xn.REPEAT,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})});let E=new dV({vertexArray:y._vaNoise,shaderProgram:y._spNoise,outputTexture:y._noiseTexture,uniformMap:{u_noiseTextureDimensions:wxt(y),u_noiseDetail:function(){return S},u_noiseOffset:function(){return w}},persists:!1,owner:o,postExecute:function(L){y._ready=!0,y._loading=!1}});f.commandList.push(E),y._loading=!0}function aYi(o,f){let m=o,x=f.context;m._createVertexArray=!1,m._vaf=m._vaf&&m._vaf.destroy();let y=o._clouds,v=y.length;if(v>0){m._vaf=rYi(x,v,m._instanced);let C=m._vaf.writers,T;for(T=0;T<v;++T){let S=y[T];nYi(o,f,C,S)}m._vaf.commit(DDe(x))}}var sYi=[];function lYi(o,f){let m=f.context,x=o,y=x._clouds.length,v=x._cloudsToUpdate,C=x._cloudsToUpdateIndex,T=x._propertiesChanged,S=sYi;S.length=0,(T[B4i]||T[H4i])&&S.push(Lxt),(T[U4i]||T[K4i])&&S.push(Pxt),(T[z4i]||T[Y4i])&&S.push(Ixt),T[j4i]&&S.push(Rxt);let w=S.length,E=x._vaf.writers,L,I,R;if(C/y>.1){for(L=0;L<C;++L)for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._vaf.commit(DDe(m))}else{for(L=0;L<C;++L){for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._instanced?x._vaf.subCommit(I._index,1):x._vaf.subCommit(I._index*4,4)}x._vaf.endSubCommits()}x._cloudsToUpdateIndex=0}function uYi(o,f,m,x){let y=f.context,v=o,C=new Wr({defines:[],sources:[m]});v._instanced&&C.defines.push("INSTANCED");let T=new Wr({defines:[],sources:[x]});v.debugBillboards&&T.defines.push("DEBUG_BILLBOARDS"),v.debugEllipsoids&&T.defines.push("DEBUG_ELLIPSOIDS"),v._sp=xs.replaceCache({context:y,shaderProgram:v._sp,vertexShaderSource:C,fragmentShaderSource:T,attributeLocations:$C}),v._rs=cn.fromCache({depthTest:{enabled:!0,func:bi.LESS},depthMask:!1,blending:ru.ALPHA_BLEND}),v._spCreated=!0,v._compiledDebugBillboards=v.debugBillboards,v._compiledDebugEllipsoids=v.debugEllipsoids}function cYi(o,f){let m=o,x=f.passes,y=m._uniforms,v=f.commandList;if(x.render){let C=m._colorCommands,T=m._vaf.va,S=T.length;C.length=S;for(let w=0;w<S;w++){let E=C[w];F(E)||(E=C[w]=new En),E.pass=xr.TRANSLUCENT,E.owner=o,E.uniformMap=y,E.count=T[w].indicesCount,E.vertexArray=T[w].va,E.shaderProgram=m._sp,E.renderState=m._rs,m._instanced&&(E.count=6,E.instanceCount=m._clouds.length),v.push(E)}}}EL.prototype.update=function(o){if(FDe(this),!this.show)return;let f=this.debugBillboards||this.debugEllipsoids;this._ready=f?!0:F(this._noiseTexture),!this._ready&&!this._loading&&!f&&oYi(this,o,IDe,PDe),this._instanced=o.context.instancedArrays,$C=this._instanced?k4i:X4i,DDe=this._instanced?tYi:eYi;let m=this._clouds.length,x=this._cloudsToUpdate,y=this._cloudsToUpdateIndex;this._createVertexArray?aYi(this,o):y>0&&lYi(this,o),y>m*1.5&&(x.length=m),!(!F(this._vaf)||!F(this._vaf.va)||!this._ready&!f)&&((!this._spCreated||this.debugBillboards!==this._compiledDebugBillboards||this.debugEllipsoids!==this._compiledDebugEllipsoids)&&uYi(this,o,LDe,EDe),cYi(this,o))};EL.prototype.isDestroyed=function(){return!1};EL.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(),Ext(this._clouds),yr(this)};var Axt=EL,hYi=be.toRadians(30);function NDe(o){this._angle=o??hYi}Object.defineProperties(NDe.prototype,{angle:{get:function(){return this._angle},set:function(o){this._angle=o}}});NDe.prototype.emit=function(o){let f=Math.tan(this._angle),m=be.randomBetween(0,be.TWO_PI),x=be.randomBetween(0,f),y=x*Math.cos(m),v=x*Math.sin(m),C=1;o.velocity=Z.fromElements(y,v,C,o.velocity),Z.normalize(o.velocity,o.velocity),o.position=Z.clone(Z.ZERO,o.position)};var k4=NDe,dYi=new Xe,pYi=new Xe,fYi=new Xe,mYi=new Xe,A7e=new zt,ij=new Uint8Array(4);function M7e(o,f,m,x){let y=f.height===m.height?0:(o-f.height)/(m.height-f.height);return Xe.lerp(f.color,m.color,y,x)}function vae(o,f){return{height:o,color:Xe.clone(f)}}function Mxt(o){return o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?f.height===x[m-1].height:!0,T=v?f.height===x[m+1].height:!0;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?Xe.equals(f.color,x[m-1].color):!1,T=v?Xe.equals(f.color,x[m+1].color):!1;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=y?Xe.equals(f.color,x[m-1].color):!1,C=y?f.height===x[m-1].height:!0;return!v||!C}),o}function xYi(o){let f,m,x=[],y=o.length;for(f=0;f<y;f++){let v=o[f],C=v.entries,T=C.length,S=[];for(m=0;m<T;m++){let R=C[m],P=be.clamp(R.height,Ab._minimumHeight,Ab._maximumHeight),A=Xe.clone(R.color,dYi);A.red*=A.alpha,A.green*=A.alpha,A.blue*=A.alpha,S.push(vae(P,A))}let w=!0,E=!0;for(m=0;m<T-1;m++){let R=S[m+0],P=S[m+1];w=w&&R.height<=P.height,E=E&&R.height>=P.height}E?S=S.reverse():w||C4(S,function(R,P){return be.sign(R.height-P.height)});let L=v.extendDownwards??!1,I=v.extendUpwards??!1;S.length===1&&!L&&!I&&(L=!0,I=!0),L&&S.splice(0,0,vae(Ab._minimumHeight,S[0].color)),I&&S.splice(S.length,0,vae(Ab._maximumHeight,S[S.length-1].color)),S=Mxt(S),x.push(S)}return x}function gYi(o){let f=xYi(o),m=[],x=[],y;function v(S,w){m.push(vae(S,w))}function C(S,w,E){let L=Xe.multiplyByScalar(E,1-w.alpha,mYi);L=Xe.add(L,w,L),v(S,L)}let T=f.length;for(y=0;y<T;y++){let S=f[y],w=0,E=0;x=m,m=[];let L=S.length,I=x.length;for(;w<L||E<I;){let R=w<L?S[w]:void 0,P=w>0?S[w-1]:void 0,A=w<L-1?S[w+1]:void 0,M=E<I?x[E]:void 0,V=E>0?x[E-1]:void 0,G=E<I-1?x[E+1]:void 0;if(F(R)&&F(M)&&R.height===M.height){let D=F(G)&&M.height===G.height,N=!F(V),k=!F(G),U=F(A)&&R.height===A.height,B=!F(P),Y=!F(A);D?U?(C(R.height,R.color,M.color),C(R.height,A.color,G.color)):B?(v(R.height,M.color),C(R.height,R.color,G.color)):Y?(C(R.height,R.color,M.color),v(R.height,G.color)):(C(R.height,R.color,M.color),C(R.height,R.color,G.color)):N?U?(v(R.height,R.color),C(R.height,A.color,M.color)):Y?(v(R.height,R.color),v(R.height,M.color)):(B||v(R.height,R.color),C(R.height,R.color,M.color)):k?U?(C(R.height,R.color,M.color),v(R.height,A.color)):B?(v(R.height,M.color),v(R.height,R.color)):Y?C(R.height,R.color,M.color):(C(R.height,R.color,M.color),v(R.height,R.color)):U?(C(R.height,R.color,M.color),C(R.height,A.color,M.color)):B?(v(R.height,M.color),C(R.height,R.color,M.color)):Y?(C(R.height,R.color,M.color),v(R.height,M.color)):C(R.height,R.color,M.color),w+=U?2:1,E+=D?2:1}else if(F(R)&&F(M)&&F(V)&&R.height<M.height){let D=M7e(R.height,V,M,fYi);F(P)?F(A)?C(R.height,R.color,D):(C(R.height,R.color,D),v(R.height,D)):(v(R.height,D),C(R.height,R.color,D)),w++}else if(F(M)&&F(R)&&F(P)&&M.height<R.height){let D=M7e(M.height,P,R,pYi);F(V)?F(G)?C(M.height,D,M.color):(C(M.height,D,M.color),v(M.height,D)):(v(M.height,D),C(M.height,D,M.color)),E++}else F(R)&&(!F(M)||R.height<M.height)?(F(M)&&!F(V)&&!F(A)?(v(R.height,R.color),v(R.height,Ab._emptyColor),v(M.height,Ab._emptyColor)):(!F(M)&&F(V)&&!F(P)&&(v(V.height,Ab._emptyColor),v(R.height,Ab._emptyColor)),v(R.height,R.color)),w++):F(M)&&(!F(R)||M.height<R.height)&&(v(M.height,M.color),E++)}}return Mxt(m)}function Ab(o){let{scene:f,layers:m}=o??si.EMPTY_OBJECT,{context:x}=f,y=gYi(m),v=y.length,C,T,S;if(Ab._useFloatTexture(x)){T=un.FLOAT,S=x.webgl2?zr.RED:zr.LUMINANCE,C=new Float32Array(v);for(let I=0;I<v;I++)C[I]=y[I].height}else{T=un.UNSIGNED_BYTE,S=zr.RGBA,C=new Uint8Array(v*4);for(let I=0;I<v;I++)zt.packFloat(y[I].height,A7e),zt.pack(A7e,C,I*4)}let w=Rn.create({context:x,pixelFormat:S,pixelDatatype:T,source:{arrayBufferView:C,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})}),E=new Uint8Array(v*4);for(let I=0;I<v;I++)y[I].color.toBytes(ij),E[I*4+0]=ij[0],E[I*4+1]=ij[1],E[I*4+2]=ij[2],E[I*4+3]=ij[3];let L=Rn.create({context:x,pixelFormat:zr.RGBA,pixelDatatype:un.UNSIGNED_BYTE,source:{arrayBufferView:E,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})});return Co.fromType("ElevationBand",{heights:w,colors:L})}Ab._useFloatTexture=function(o){return o.floatingPointTexture};Ab._maximumHeight=5906376425472;Ab._minimumHeight=-5906376425472;Ab._emptyColor=new Xe(0,0,0,0);var Vxt=Ab;async function yYi(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??si.EMPTY_OBJECT,o.onlyUsingWithGoogleGeocoder||aa("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??gQ.defaultApiKey;if(!F(m))return _Yi(f);let x,y=gQ.getDefaultCredit();F(y)&&(x=[y]);let v=new Mr({url:`${gQ.mapTilesApiEndpoint}3dtiles/root.json`,queryParameters:{key:m},credits:x});return _0.fromUrl(v,f)}var V7e={};async function _Yi(o){let f=V7e[2275207];F(f)||(f=FG.fromAssetId(2275207),V7e[2275207]=f);let m=await f;return _0.fromUrl(m,o)}var Gxt=yYi;async function vYi(o){let f=await _0.fromIonAssetId(96188,o);o=o??si.EMPTY_OBJECT;let m=o.style;if(!F(m)){let x=(o.defaultColor??Xe.WHITE).toCssColorString();m=new OS({color:`Boolean(\${feature['cesium#color']}) ? color(\${feature['cesium#color']}) : ${x}`})}return f.style=m,f}var Fxt=vYi;function bYi(o){o=o??si.EMPTY_OBJECT;let f=[],m=o.geometry;(!F(m.attributes)||!F(m.primitiveType))&&(m=m.constructor.createGeometry(m));let x=m.attributes,y=Ee.clone(o.modelMatrix??Ee.IDENTITY),v=o.length??1e4;if(F(x.normal)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"normal",v),attributes:{color:new yo(1,0,0,1)},modelMatrix:y})),F(x.tangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"tangent",v),attributes:{color:new yo(0,1,0,1)},modelMatrix:y})),F(x.bitangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"bitangent",v),attributes:{color:new yo(0,0,1,1)},modelMatrix:y})),f.length>0)return new ta({asynchronous:!1,geometryInstances:f,appearance:new ga({flat:!0,translucent:!1})})}var Dxt=bYi;function u$(o){o=o??si.EMPTY_OBJECT;let f=o.attributeName,m=o.perInstanceAttribute;F(m)||(m=!1);let x=o.glslDatatype??"vec3",y=`v_${f}`,v;if(f==="normal"||f==="tangent"||f==="bitangent")v=`vec4 getColor() { return vec4((${y} + vec3(1.0)) * 0.5, 1.0); } `;else switch(f==="st"&&(x="vec2"),x){case"float":v=`vec4 getColor() { return vec4(vec3(${y}), 1.0); } `;break;case"vec2":v=`vec4 getColor() { return vec4(${y}, 0.0, 1.0); } `;break;case"vec3":v=`vec4 getColor() { return vec4(${y}, 1.0); } @@ -20501,7 +20501,7 @@ void main() { out_FragColor = getColor(); -}`;this.material=void 0,this.translucent=o.translucent??!1,this._vertexShaderSource=o.vertexShaderSource??C,this._fragmentShaderSource=o.fragmentShaderSource??T,this._renderState=Sd.getDefaultRenderState(!1,!1,o.renderState),this._closed=o.closed??!1,this._attributeName=f,this._glslDatatype=x}Object.defineProperties(u$.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}}});u$.prototype.getFragmentShaderSource=Sd.prototype.getFragmentShaderSource;u$.prototype.isTranslucent=Sd.prototype.isTranslucent;u$.prototype.getRenderState=Sd.prototype.getRenderState;var Zxt=u$;function Pde(o){o=o??si.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}Pde.prototype.update=function(o){if(this.show){if(!F(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,F(this._primitive)&&this._primitive.destroy(),this.modelMatrix[12]===0&&this.modelMatrix[13]===0&&this.modelMatrix[14]===0&&(this.modelMatrix[14]=.01);let f=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_X],width:this.width,vertexFormat:am.VERTEX_FORMAT,colors:[Xe.RED,Xe.RED],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),m=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Y],width:this.width,vertexFormat:am.VERTEX_FORMAT,colors:[Xe.GREEN,Xe.GREEN],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),x=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Z],width:this.width,vertexFormat:am.VERTEX_FORMAT,colors:[Xe.BLUE,Xe.BLUE],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this});this._primitive=new ta({geometryInstances:[f,m,x],appearance:new am,asynchronous:!1})}this._primitive.update(o)}};Pde.prototype.isDestroyed=function(){return!1};Pde.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),yr(this)};var WDe=Pde;function TYi(o){this.direction=Z.clone(o.direction),this.color=Xe.clone(o.color??Xe.WHITE),this.intensity=o.intensity??1}var U4=TYi;function Eb(o){this._scene=o.scene,this.samplingWindow=o.samplingWindow??Eb.defaultSettings.samplingWindow,this.quietPeriod=o.quietPeriod??Eb.defaultSettings.quietPeriod,this.warmupPeriod=o.warmupPeriod??Eb.defaultSettings.warmupPeriod,this.minimumFrameRateDuringWarmup=o.minimumFrameRateDuringWarmup??Eb.defaultSettings.minimumFrameRateDuringWarmup,this.minimumFrameRateAfterWarmup=o.minimumFrameRateAfterWarmup??Eb.defaultSettings.minimumFrameRateAfterWarmup,this._lowFrameRate=new Tr,this._nominalFrameRate=new Tr,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(y,v){SYi(f,v)}),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(){wYi(f)}this._visibilityChangeRemoveListener=void 0,F(m)&&(document.addEventListener(m,x,!1),this._visibilityChangeRemoveListener=function(){document.removeEventListener(m,x,!1)})}Eb.defaultSettings={samplingWindow:5,quietPeriod:2,warmupPeriod:5,minimumFrameRateDuringWarmup:4,minimumFrameRateAfterWarmup:8};Eb.fromScene=function(o){return(!F(o._frameRateMonitor)||o._frameRateMonitor.isDestroyed())&&(o._frameRateMonitor=new Eb({scene:o})),o._frameRateMonitor};Object.defineProperties(Eb.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}}});Eb.prototype.pause=function(){++this._pauseCount,this._pauseCount===1&&(this._frameTimes.length=0,this._lastFramesPerSecond=void 0)};Eb.prototype.unpause=function(){--this._pauseCount,this._pauseCount<=0&&(this._pauseCount=0,this._needsQuietPeriod=!0)};Eb.prototype.isDestroyed=function(){return!1};Eb.prototype.destroy=function(){return this._preUpdateRemoveListener(),F(this._visibilityChangeRemoveListener)&&this._visibilityChangeRemoveListener(),yr(this)};function SYi(o,f){if(o._pauseCount>0)return;let m=lh();if(o._needsQuietPeriod)o._needsQuietPeriod=!1,o._frameTimes.length=0,o._quietPeriodEndTime=m+o.quietPeriod/hc.SECONDS_PER_MILLISECOND,o._warmupPeriodEndTime=o._quietPeriodEndTime+(o.warmupPeriod+o.samplingWindow)/hc.SECONDS_PER_MILLISECOND;else if(m>=o._quietPeriodEndTime){o._frameTimes.push(m);let x=m-o.samplingWindow/hc.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 y=(m-o._frameTimes[0])/(o._frameTimes.length-1);o._lastFramesPerSecond=1e3/y;let v=1e3/(m>o._warmupPeriodEndTime?o.minimumFrameRateAfterWarmup:o.minimumFrameRateDuringWarmup);y>v?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 wYi(o){document[o._hiddenPropertyName]?o.pause():o.unpause()}var ZDe=Eb,EYi=k0(net(),1);function ODe(){this._image=new Image}ODe.prototype.isReady=function(){return!0};ODe.prototype.shouldDiscardImage=function(o){return o===this._image};function I9(o){o=o??si.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 _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=23,F(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new ODe),this._errorEvent=new Tr}Object.defineProperties(I9.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}}});I9.fromMetadata=function(o,f){if(!o.imageryPresent)throw new Oi(`The server ${o.url} doesn't have imagery`);let m=new I9(f);return m._metadata=o,m};I9.prototype.getTileCredits=function(o,f,m){let x=this._metadata,y=x.getTileInformation(o,f,m);if(F(y)){let v=x.providers[y.imageryProvider];if(F(v))return[v]}};I9.prototype.requestImage=function(o,f,m,x){let y=this._tileDiscardPolicy._image,v=this._metadata,C=O4.tileXYToQuadKey(o,f,m),T=v.getTileInformation(o,f,m);if(!F(T)){if(v.isValid(C)){let w=new dm({throttle:x.throttle,throttleByServer:x.throttleByServer,type:x.type,priorityFunction:x.priorityFunction});v.populateSubtree(o,f,m,w);return}return Promise.resolve(y)}if(!T.hasImagery())return Promise.resolve(y);let S=LYi(this,T,o,f,m,x).fetchArrayBuffer();if(F(S))return S.then(function(w){TDe(v.key,w);let E=new Uint8Array(w),L,I=v.protoImagery;if((!F(I)||!I)&&(L=PYi(E)),!F(L)&&(!F(I)||I)){let R=IYi(E);L=R.imageType,E=R.imageData}return!F(L)||!F(E)?y:jz({uint8Array:E,format:L,flipY:!0})})};I9.prototype.pickFeatures=function(o,f,m,x,y){};function LYi(o,f,m,x,y,v){let C=O4.tileXYToQuadKey(m,x,y),T=f.imageryVersion;return T=F(T)&&T>0?T:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1-0${C}-i.${T.toString()}`,request:v})}function PYi(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 IYi(o){let f=EYi.Reader.create(o),m=f.len,x={};for(;f.pos<m;){let C=f.uint32(),T;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(T=x.copyrightIds,F(T)||(T=x.copyrightIds=[]),(C&7)===2){let S=f.uint32()+f.pos;for(;f.pos<S;)T.push(f.uint32())}else T.push(f.uint32());break;default:f.skipType(C&7);break}}let y=x.imageType;if(F(y))switch(y){case 0:x.imageType="image/jpeg";break;case 4:x.imageType="image/png";break;default:throw new Oi("GoogleEarthEnterpriseImageryProvider: Unsupported image type.")}let v=x.alphaType;return F(v)&&v!==0&&(console.log("GoogleEarthEnterpriseImageryProvider: External alpha not supported."),delete x.alphaType,delete x.imageAlpha),x}var Oxt=I9,RYi=new Xe(1,1,1,.4),AYi=new Xe(0,1,0,.05),MYi=new Xe(0,.5,0,.2);function OO(o){o=o??si.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=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._cells=o.cells??8,this._color=o.color??RYi,this._glowColor=o.glowColor??AYi,this._glowWidth=o.glowWidth??6,this._backgroundColor=o.backgroundColor??MYi,this._errorEvent=new Tr,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._canvasSize=o.canvasSize??256,this._canvas=this._createGridCanvas()}Object.defineProperties(OO.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}}});OO.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()};OO.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"),y=this._backgroundColor.toCssColorString();x.fillStyle=y,x.fillRect(f,f,m,m);let v=this._glowColor.toCssColorString();x.strokeStyle=v,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};OO.prototype.getTileCredits=function(o,f,m){};OO.prototype.requestImage=function(o,f,m,x){return Promise.resolve(this._canvas)};OO.prototype.pickFeatures=function(o,f,m,x,y){};var Xxt=OO,c$={};c$.createTilesetFromIModelId=async function(o,f){let{exports:m}=await wg.getExports(o);if(m.length>0&&m.every(T=>T.status===wg.ExportStatus.Invalid))throw new Oi(`All exports for this iModel are Invalid: ${o}`);let x=m.find(T=>T.status===wg.ExportStatus.Complete);if(!F(x))return;let y=new URL(x._links.mesh.href);y.pathname=`${y.pathname}/tileset.json`;let v=y.toString(),C=new Mr({url:v});return _0.fromUrl(C,f)};c$.createTilesetForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.Cesium3DTiles,wg.RealityDataType.PNTS,wg.RealityDataType.RealityMesh3DTiles,wg.RealityDataType.Terrain3DTiles].includes(m))throw new Oi(`Reality data type is not a mesh type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return _0.fromUrl(y,{maximumScreenSpaceError:4})};c$.createDataSourceForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.KML,wg.RealityDataType.GeoJSON].includes(m))throw new Oi(`Reality data type is not a data source type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return m===wg.RealityDataType.GeoJSON?$Z.load(y):F7.load(y)};c$.loadGeospatialFeatures=async function(o,f,m){let x=m??1e4,y=`${wg.apiEndpoint}geospatial-features/itwins/${o}/ogc/collections/${f}/items`,v=new Mr({url:y,headers:{Authorization:wg._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{limit:x,client:"CesiumJS"}});return $Z.load(v)};var kxt=c$;function Uxt(){}Object.defineProperties(Uxt.prototype,{color:{get:wt.throwInstantiationError},intensity:{get:wt.throwInstantiationError}});var Bxt=Uxt,VYi=/\/$/,Hxt=new Oa('© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function B4(o){o=o??si.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=Mr.createIfNeeded(o.url??"https://api.mapbox.com/styles/v1/");this._styleId=f,this._accessToken=m;let y=o.tilesize??512;this._tilesize=y;let v=o.username??"mapbox";this._username=v;let C=F(o.scaleFactor)?"@2x":"",T=x.getUrlComponent();VYi.test(T)||(T+="/"),T+=`${this._username}/${f}/tiles/${this._tilesize}/{z}/{x}/{y}${C}`,x.url=T,x.setQueryParameters({access_token:m});let S;F(o.credit)?(S=o.credit,typeof S=="string"&&(S=new Oa(S))):S=Hxt,this._resource=x,this._imageryProvider=new zb({url:x,credit:S,ellipsoid:o.ellipsoid,minimumLevel:o.minimumLevel,maximumLevel:o.maximumLevel,rectangle:o.rectangle})}Object.defineProperties(B4.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}}});B4.prototype.getTileCredits=function(o,f,m){};B4.prototype.requestImage=function(o,f,m,x){return this._imageryProvider.requestImage(o,f,m,x)};B4.prototype.pickFeatures=function(o,f,m,x,y){return this._imageryProvider.pickFeatures(o,f,m,x,y)};B4._defaultCredit=Hxt;var zxt=B4;function XDe(o){}XDe.prototype.isReady=function(){return!0};XDe.prototype.shouldDiscardImage=function(o){return!1};var Yxt=XDe,GYi=new Oa("MapQuest, Open Street Map and contributors, CC-BY-SA");function Cae(o){o=o??si.EMPTY_OBJECT;let f=Mr.createIfNeeded(o.url??"https://tile.openstreetmap.org/");f.appendForwardSlash(),f.url+=`{z}/{x}/{y}${o.retinaTiles?"@2x":""}.${o.fileExtension??"png"}`;let m=new gp({ellipsoid:o.ellipsoid}),x=256,y=256,v=o.minimumLevel??0,C=o.maximumLevel,T=o.rectangle??m.rectangle,S=m.positionToTileXY(vi.southwest(T),v),w=m.positionToTileXY(vi.northeast(T),v),E=(Math.abs(w.x-S.x)+1)*(Math.abs(w.y-S.y)+1),L=o.credit??GYi;typeof L=="string"&&(L=new Oa(L)),zb.call(this,{url:f,credit:L,tilingScheme:m,tileWidth:x,tileHeight:y,minimumLevel:v,maximumLevel:C,rectangle:T})}F(Object.create)&&(Cae.prototype=Object.create(zb.prototype),Cae.prototype.constructor=Cae);var ME=Cae,FYi=new rt(1,1);function kDe(o){o=o??si.EMPTY_OBJECT,this.mass=o.mass??1,this.position=Z.clone(o.position??Z.ZERO),this.velocity=Z.clone(o.velocity??Z.ZERO),this.life=o.life??Number.MAX_VALUE,this.image=o.image,this.startColor=Xe.clone(o.startColor??Xe.WHITE),this.endColor=Xe.clone(o.endColor??Xe.WHITE),this.startScale=o.startScale??1,this.endScale=o.endScale??1,this.imageSize=rt.clone(o.imageSize??FYi),this._age=0,this._normalizedAge=0,this._billboard=void 0}Object.defineProperties(kDe.prototype,{age:{get:function(){return this._age}},normalizedAge:{get:function(){return this._normalizedAge}}});var G7e=new Z;kDe.prototype.update=function(o,f){return Z.multiplyByScalar(this.velocity,o,G7e),Z.add(this.position,G7e,this.position),F(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 Ide=kDe;function Kxt(o){o=o??si.EMPTY_OBJECT,this.time=o.time??0,this.minimum=o.minimum??0,this.maximum=o.maximum??50,this._complete=!1}Object.defineProperties(Kxt.prototype,{complete:{get:function(){return this._complete}}});var H4=Kxt;function Jxt(o){}Jxt.prototype.emit=function(o){wt.throwInstantiationError()};var jxt=Jxt,F7e=new rt(1,1);function h$(o){o=o??si.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;F(f)||(f=new GDe(.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=Xe.clone(o.color??o.startColor??Xe.WHITE),this._endColor=Xe.clone(o.color??o.endColor??Xe.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=rt.clone(o.imageSize??o.minimumImageSize??F7e),this._maximumImageSize=rt.clone(o.imageSize??o.maximumImageSize??F7e),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 Tr,this._isComplete=!1,this._updateParticlePool=!0,this._particleEstimate=0}Object.defineProperties(h$.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){Xe.clone(o,this._startColor)}},endColor:{get:function(){return this._endColor},set:function(o){Xe.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 DYi(o){let f=o._emissionRate,m=o._maximumParticleLife,x=0,y=o._bursts;if(F(y)){let L=y.length;for(let I=0;I<L;++I)x+=y[I].maximum}let v=o._billboardCollection,C=o.image,T=Math.ceil(f*m+x),S=o._particles,w=o._particlePool,E=Math.max(T-S.length-w.length,0);for(let L=0;L<E;++L){let I=new Ide;I._billboard=v.add({image:C,show:!1}),w.push(I)}o._particleEstimate=T}function NYi(o){let f=o._particlePool.pop();return F(f)||(f=new Ide),f}function WYi(o,f){o._particlePool.push(f)}function ZYi(o){let f=o._particles,m=o._particlePool,x=o._billboardCollection,y=f.length,v=m.length,C=o._particleEstimate,T=v-Math.max(C-y-v,0);for(let S=T;S<v;++S){let w=m[S];x.remove(w._billboard)}m.length=T}function OYi(o){F(o._billboard)&&(o._billboard.show=!1)}function D7e(o,f){let m=f._billboard;F(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=be.lerp(f.startColor.red,f.endColor.red,f.normalizedAge),y=be.lerp(f.startColor.green,f.endColor.green,f.normalizedAge),v=be.lerp(f.startColor.blue,f.endColor.blue,f.normalizedAge),C=be.lerp(f.startColor.alpha,f.endColor.alpha,f.normalizedAge);m.color=new Xe(x,y,v,C),m.scale=be.lerp(f.startScale,f.endScale,f.normalizedAge)}function XYi(o,f){f.startColor=Xe.clone(o._startColor,f.startColor),f.endColor=Xe.clone(o._endColor,f.endColor),f.startScale=o._startScale,f.endScale=o._endScale,f.image=o.image,f.life=be.randomBetween(o._minimumParticleLife,o._maximumParticleLife),f.mass=be.randomBetween(o._minimumMass,o._maximumMass),f.imageSize.x=be.randomBetween(o._minimumImageSize.x,o._maximumImageSize.x),f.imageSize.y=be.randomBetween(o._minimumImageSize.y,o._maximumImageSize.y),f._normalizedAge=0,f._age=0;let m=be.randomBetween(o._minimumSpeed,o._maximumSpeed);Z.multiplyByScalar(f.velocity,m,f.velocity),o._particles.push(f)}function kYi(o,f){if(o._isComplete)return 0;f=be.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),F(o.bursts)){let y=o.bursts.length;for(let v=0;v<y;v++){let C=o.bursts[v],T=o._currentTime;F(C)&&!C._complete&&T>C.time&&(x+=be.randomBetween(C.minimum,C.maximum),C._complete=!0)}}return x}var yoe=new Z;h$.prototype.update=function(o){if(!this.show)return;F(this._billboardCollection)||(this._billboardCollection=new jE),this._updateParticlePool&&(DYi(this),this._updateParticlePool=!1);let f=0;this._previousTime&&(f=$t.secondsDifference(o.time,this._previousTime)),f<0&&(f=0);let m=this._particles,x=this._emitter,y=this.updateCallback,v,C,T=m.length;for(v=0;v<T;++v)C=m[v],C.update(f,y)?D7e(this,C):(OYi(C),WYi(this,C),m[v]=m[T-1],--v,--T);m.length=T;let S=kYi(this,f);if(S>0&&F(x)){this._matrixDirty&&(this._combinedMatrix=Ee.multiply(this.modelMatrix,this.emitterModelMatrix,this._combinedMatrix),this._matrixDirty=!1);let w=this._combinedMatrix;for(v=0;v<S;v++)C=NYi(this),this._emitter.emit(C),Z.add(C.position,C.velocity,yoe),Ee.multiplyByPoint(w,yoe,yoe),C.position=Ee.multiplyByPoint(w,C.position,C.position),Z.subtract(yoe,C.position,C.velocity),Z.normalize(C.velocity,C.velocity),XYi(this,C),D7e(this,C)}if(this._billboardCollection.update(o),this._previousTime=$t.clone(o.time,this._previousTime),this._currentTime+=f,this._lifetime!==Number.MAX_VALUE&&this._currentTime>this._lifetime)if(this.loop){if(this._currentTime=be.mod(this._currentTime,this._lifetime),this.bursts){let w=this.bursts.length;for(v=0;v<w;v++)this.bursts[v]._complete=!1}}else this._isComplete=!0,this._complete.raiseEvent(this);o.frameNumber%120===0&&ZYi(this)};h$.prototype.isDestroyed=function(){return!1};h$.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),yr(this)};var qS=h$;function W1(){wt.throwInstantiationError()}W1.computeDefaultLevelZeroMaximumGeometricError=function(o){return o.ellipsoid.maximumRadius*2*Math.PI*.25/(65*o.getNumberOfXTilesAtLevel(0))};Object.defineProperties(W1.prototype,{quadtree:{get:wt.throwInstantiationError,set:wt.throwInstantiationError},tilingScheme:{get:wt.throwInstantiationError},errorEvent:{get:wt.throwInstantiationError}});W1.prototype.update=wt.throwInstantiationError;W1.prototype.beginUpdate=wt.throwInstantiationError;W1.prototype.endUpdate=wt.throwInstantiationError;W1.prototype.getLevelMaximumGeometricError=wt.throwInstantiationError;W1.prototype.loadTile=wt.throwInstantiationError;W1.prototype.computeTileVisibility=wt.throwInstantiationError;W1.prototype.showTileThisFrame=wt.throwInstantiationError;W1.prototype.computeDistanceToTile=wt.throwInstantiationError;W1.prototype.isDestroyed=wt.throwInstantiationError;W1.prototype.destroy=wt.throwInstantiationError;var XO=W1;function UDe(o){o=o??1,this._radius=o??1}Object.defineProperties(UDe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});UDe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,be.PI),x=be.randomBetween(0,this._radius),y=x*Math.cos(f)*Math.sin(m),v=x*Math.sin(f)*Math.sin(m),C=x*Math.cos(m);o.position=Z.fromElements(y,v,C,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var z4=UDe;function d$(){}d$.prototype.evaluate=function(o,f){wt.throwInstantiationError()};d$.prototype.evaluateColor=function(o,f){wt.throwInstantiationError()};d$.prototype.getShaderFunction=function(o,f,m,x){wt.throwInstantiationError()};d$.prototype.getVariables=function(){wt.throwInstantiationError()};var Qxt=d$;function ez(o){this._ready=!1,this._provider=void 0,this._errorEvent=new Tr,this._readyEvent=new Tr,BYi(this,o)}Object.defineProperties(ez.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}}});ez.fromWorldTerrain=function(o){return new ez(_de(o))};ez.fromWorldBathymetry=function(o){return new ez(bDe(o))};function UYi(o,f){o.numberOfListeners>0?o.raiseEvent(f):console.error(f)}async function BYi(o,f){let m;try{m=await Promise.resolve(f),o._provider=m,o._ready=!0,o._readyEvent.raiseEvent(m)}catch(x){UYi(o._errorEvent,x)}}var BDe=ez;function Y4(){}Y4.prototype.boundingVolume=void 0;Y4.prototype.boundingSphere=void 0;Y4.prototype.distanceToCamera=function(o){wt.throwInstantiationError()};Y4.prototype.intersectPlane=function(o){wt.throwInstantiationError()};Y4.prototype.createDebugVolume=function(o){wt.throwInstantiationError()};var qxt=Y4;function p$(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._color=o.color??Xe.YELLOW,this._errorEvent=new Tr,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(p$.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}}});p$.prototype.getTileCredits=function(o,f,m){};p$.prototype.requestImage=function(o,f,m,x){let y=document.createElement("canvas");y.width=256,y.height=256;let v=y.getContext("2d"),C=this._color.toCssColorString();return v.strokeStyle=C,v.lineWidth=2,v.strokeRect(1,1,255,255),v.font="bold 25px Arial",v.textAlign="center",v.fillStyle=C,v.fillText(`L: ${m}`,124,86),v.fillText(`X: ${o}`,124,136),v.fillText(`Y: ${f}`,124,186),Promise.resolve(y)};p$.prototype.pickFeatures=function(o,f,m,x,y){};var f$=p$;function HDe(o){wt.throwInstantiationError()}HDe.prototype.isReady=wt.throwInstantiationError;HDe.prototype.shouldDiscardImage=wt.throwInstantiationError;var $xt=HDe,HYi={START:0,LOADING:1,READY:2,UPSAMPLED_ONLY:3},egt=Object.freeze(HYi);function Rde(o,f){this.show=!0,F(o)||(o=new Er),this.rectangle=Er.clone(o),F(f)||(f=Co.fromType(Co.ColorType,{color:new Xe(1,1,1,1)})),this.material=f,this._material=void 0,this._overlayCommand=void 0,this._rs=void 0}Rde.prototype.update=function(o){if(!this.show)return;let f=this._rs;if((!F(f)||!Er.equals(f.viewport,this.rectangle))&&(this._rs=cn.fromCache({blending:ru.ALPHA_BLEND,viewport:this.rectangle})),o.passes.render){let m=o.context;if(this._material!==this.material||!F(this._overlayCommand)){this._material=this.material,F(this._overlayCommand)&&this._overlayCommand.shaderProgram.destroy();let x=new Wr({sources:[this._material.shaderSource,fDe]});this._overlayCommand=m.createViewportQuadCommand(x,{renderState:this._rs,uniformMap:this._material._uniforms,owner:this}),this._overlayCommand.pass=xr.OVERLAY}this._material.update(m),this._overlayCommand.renderState=this._rs,this._overlayCommand.uniformMap=this._material._uniforms,o.commandList.push(this._overlayCommand)}};Rde.prototype.isDestroyed=function(){return!1};Rde.prototype.destroy=function(){return F(this._overlayCommand)&&(this._overlayCommand.shaderProgram=this._overlayCommand.shaderProgram&&this._overlayCommand.shaderProgram.destroy()),yr(this)};var K4=Rde;function zDe(){wt.throwInstantiationError()}Object.defineProperties(zDe.prototype,{globalTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shape:{get:wt.throwInstantiationError},minBounds:{get:wt.throwInstantiationError},maxBounds:{get:wt.throwInstantiationError},dimensions:{get:wt.throwInstantiationError},paddingBefore:{get:wt.throwInstantiationError},paddingAfter:{get:wt.throwInstantiationError},names:{get:wt.throwInstantiationError},types:{get:wt.throwInstantiationError},componentTypes:{get:wt.throwInstantiationError},minimumValues:{get:wt.throwInstantiationError},maximumValues:{get:wt.throwInstantiationError},maximumTileCount:{get:wt.throwInstantiationError},availableLevels:{get:wt.throwInstantiationError},keyframeCount:{get:wt.throwInstantiationError},timeIntervalCollection:{get:wt.throwInstantiationError}});zDe.prototype.requestData=function(o){wt.throwInstantiationError()};var tgt=zDe;function kO(){wt.throwInstantiationError()}Object.defineProperties(kO.prototype,{orientedBoundingBox:{get:wt.throwInstantiationError},boundingSphere:{get:wt.throwInstantiationError},boundTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shaderUniforms:{get:wt.throwInstantiationError},shaderDefines:{get:wt.throwInstantiationError},shaderMaximumIntersectionsLength:{get:wt.throwInstantiationError}});kO.prototype.update=wt.throwInstantiationError;kO.prototype.computeOrientedBoundingBoxForTile=wt.throwInstantiationError;kO.prototype.computeOrientedBoundingBoxForSample=wt.throwInstantiationError;kO.DefaultMinBounds=wt.throwInstantiationError;kO.DefaultMaxBounds=wt.throwInstantiationError;var igt=kO,zYi=`in vec2 depth; +}`;this.material=void 0,this.translucent=o.translucent??!1,this._vertexShaderSource=o.vertexShaderSource??C,this._fragmentShaderSource=o.fragmentShaderSource??T,this._renderState=Sd.getDefaultRenderState(!1,!1,o.renderState),this._closed=o.closed??!1,this._attributeName=f,this._glslDatatype=x}Object.defineProperties(u$.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}}});u$.prototype.getFragmentShaderSource=Sd.prototype.getFragmentShaderSource;u$.prototype.isTranslucent=Sd.prototype.isTranslucent;u$.prototype.getRenderState=Sd.prototype.getRenderState;var Nxt=u$;function Lde(o){o=o??si.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}Lde.prototype.update=function(o){if(this.show){if(!F(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,F(this._primitive)&&this._primitive.destroy(),this.modelMatrix[12]===0&&this.modelMatrix[13]===0&&this.modelMatrix[14]===0&&(this.modelMatrix[14]=.01);let f=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_X],width:this.width,vertexFormat:am.VERTEX_FORMAT,colors:[Xe.RED,Xe.RED],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),m=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Y],width:this.width,vertexFormat:am.VERTEX_FORMAT,colors:[Xe.GREEN,Xe.GREEN],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),x=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Z],width:this.width,vertexFormat:am.VERTEX_FORMAT,colors:[Xe.BLUE,Xe.BLUE],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this});this._primitive=new ta({geometryInstances:[f,m,x],appearance:new am,asynchronous:!1})}this._primitive.update(o)}};Lde.prototype.isDestroyed=function(){return!1};Lde.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),yr(this)};var WDe=Lde;function CYi(o){this.direction=Z.clone(o.direction),this.color=Xe.clone(o.color??Xe.WHITE),this.intensity=o.intensity??1}var U4=CYi;function Eb(o){this._scene=o.scene,this.samplingWindow=o.samplingWindow??Eb.defaultSettings.samplingWindow,this.quietPeriod=o.quietPeriod??Eb.defaultSettings.quietPeriod,this.warmupPeriod=o.warmupPeriod??Eb.defaultSettings.warmupPeriod,this.minimumFrameRateDuringWarmup=o.minimumFrameRateDuringWarmup??Eb.defaultSettings.minimumFrameRateDuringWarmup,this.minimumFrameRateAfterWarmup=o.minimumFrameRateAfterWarmup??Eb.defaultSettings.minimumFrameRateAfterWarmup,this._lowFrameRate=new Tr,this._nominalFrameRate=new Tr,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(y,v){TYi(f,v)}),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(){SYi(f)}this._visibilityChangeRemoveListener=void 0,F(m)&&(document.addEventListener(m,x,!1),this._visibilityChangeRemoveListener=function(){document.removeEventListener(m,x,!1)})}Eb.defaultSettings={samplingWindow:5,quietPeriod:2,warmupPeriod:5,minimumFrameRateDuringWarmup:4,minimumFrameRateAfterWarmup:8};Eb.fromScene=function(o){return(!F(o._frameRateMonitor)||o._frameRateMonitor.isDestroyed())&&(o._frameRateMonitor=new Eb({scene:o})),o._frameRateMonitor};Object.defineProperties(Eb.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}}});Eb.prototype.pause=function(){++this._pauseCount,this._pauseCount===1&&(this._frameTimes.length=0,this._lastFramesPerSecond=void 0)};Eb.prototype.unpause=function(){--this._pauseCount,this._pauseCount<=0&&(this._pauseCount=0,this._needsQuietPeriod=!0)};Eb.prototype.isDestroyed=function(){return!1};Eb.prototype.destroy=function(){return this._preUpdateRemoveListener(),F(this._visibilityChangeRemoveListener)&&this._visibilityChangeRemoveListener(),yr(this)};function TYi(o,f){if(o._pauseCount>0)return;let m=lh();if(o._needsQuietPeriod)o._needsQuietPeriod=!1,o._frameTimes.length=0,o._quietPeriodEndTime=m+o.quietPeriod/hc.SECONDS_PER_MILLISECOND,o._warmupPeriodEndTime=o._quietPeriodEndTime+(o.warmupPeriod+o.samplingWindow)/hc.SECONDS_PER_MILLISECOND;else if(m>=o._quietPeriodEndTime){o._frameTimes.push(m);let x=m-o.samplingWindow/hc.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 y=(m-o._frameTimes[0])/(o._frameTimes.length-1);o._lastFramesPerSecond=1e3/y;let v=1e3/(m>o._warmupPeriodEndTime?o.minimumFrameRateAfterWarmup:o.minimumFrameRateDuringWarmup);y>v?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 SYi(o){document[o._hiddenPropertyName]?o.pause():o.unpause()}var ZDe=Eb,wYi=k0(net(),1);function ODe(){this._image=new Image}ODe.prototype.isReady=function(){return!0};ODe.prototype.shouldDiscardImage=function(o){return o===this._image};function I9(o){o=o??si.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 _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=23,F(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new ODe),this._errorEvent=new Tr}Object.defineProperties(I9.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}}});I9.fromMetadata=function(o,f){if(!o.imageryPresent)throw new Oi(`The server ${o.url} doesn't have imagery`);let m=new I9(f);return m._metadata=o,m};I9.prototype.getTileCredits=function(o,f,m){let x=this._metadata,y=x.getTileInformation(o,f,m);if(F(y)){let v=x.providers[y.imageryProvider];if(F(v))return[v]}};I9.prototype.requestImage=function(o,f,m,x){let y=this._tileDiscardPolicy._image,v=this._metadata,C=O4.tileXYToQuadKey(o,f,m),T=v.getTileInformation(o,f,m);if(!F(T)){if(v.isValid(C)){let w=new dm({throttle:x.throttle,throttleByServer:x.throttleByServer,type:x.type,priorityFunction:x.priorityFunction});v.populateSubtree(o,f,m,w);return}return Promise.resolve(y)}if(!T.hasImagery())return Promise.resolve(y);let S=EYi(this,T,o,f,m,x).fetchArrayBuffer();if(F(S))return S.then(function(w){gDe(v.key,w);let E=new Uint8Array(w),L,I=v.protoImagery;if((!F(I)||!I)&&(L=LYi(E)),!F(L)&&(!F(I)||I)){let R=PYi(E);L=R.imageType,E=R.imageData}return!F(L)||!F(E)?y:jz({uint8Array:E,format:L,flipY:!0})})};I9.prototype.pickFeatures=function(o,f,m,x,y){};function EYi(o,f,m,x,y,v){let C=O4.tileXYToQuadKey(m,x,y),T=f.imageryVersion;return T=F(T)&&T>0?T:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1-0${C}-i.${T.toString()}`,request:v})}function LYi(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 PYi(o){let f=wYi.Reader.create(o),m=f.len,x={};for(;f.pos<m;){let C=f.uint32(),T;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(T=x.copyrightIds,F(T)||(T=x.copyrightIds=[]),(C&7)===2){let S=f.uint32()+f.pos;for(;f.pos<S;)T.push(f.uint32())}else T.push(f.uint32());break;default:f.skipType(C&7);break}}let y=x.imageType;if(F(y))switch(y){case 0:x.imageType="image/jpeg";break;case 4:x.imageType="image/png";break;default:throw new Oi("GoogleEarthEnterpriseImageryProvider: Unsupported image type.")}let v=x.alphaType;return F(v)&&v!==0&&(console.log("GoogleEarthEnterpriseImageryProvider: External alpha not supported."),delete x.alphaType,delete x.imageAlpha),x}var Wxt=I9,IYi=new Xe(1,1,1,.4),RYi=new Xe(0,1,0,.05),AYi=new Xe(0,.5,0,.2);function OO(o){o=o??si.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=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._cells=o.cells??8,this._color=o.color??IYi,this._glowColor=o.glowColor??RYi,this._glowWidth=o.glowWidth??6,this._backgroundColor=o.backgroundColor??AYi,this._errorEvent=new Tr,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._canvasSize=o.canvasSize??256,this._canvas=this._createGridCanvas()}Object.defineProperties(OO.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}}});OO.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()};OO.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"),y=this._backgroundColor.toCssColorString();x.fillStyle=y,x.fillRect(f,f,m,m);let v=this._glowColor.toCssColorString();x.strokeStyle=v,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};OO.prototype.getTileCredits=function(o,f,m){};OO.prototype.requestImage=function(o,f,m,x){return Promise.resolve(this._canvas)};OO.prototype.pickFeatures=function(o,f,m,x,y){};var Zxt=OO,c$={};c$.createTilesetFromIModelId=async function(o,f){let{exports:m}=await wg.getExports(o);if(m.length>0&&m.every(T=>T.status===wg.ExportStatus.Invalid))throw new Oi(`All exports for this iModel are Invalid: ${o}`);let x=m.find(T=>T.status===wg.ExportStatus.Complete);if(!F(x))return;let y=new URL(x._links.mesh.href);y.pathname=`${y.pathname}/tileset.json`;let v=y.toString(),C=new Mr({url:v});return _0.fromUrl(C,f)};c$.createTilesetForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.Cesium3DTiles,wg.RealityDataType.PNTS,wg.RealityDataType.RealityMesh3DTiles,wg.RealityDataType.Terrain3DTiles].includes(m))throw new Oi(`Reality data type is not a mesh type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return _0.fromUrl(y,{maximumScreenSpaceError:4})};c$.createDataSourceForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.KML,wg.RealityDataType.GeoJSON].includes(m))throw new Oi(`Reality data type is not a data source type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return m===wg.RealityDataType.GeoJSON?$Z.load(y):F7.load(y)};c$.loadGeospatialFeatures=async function(o,f,m){let x=m??1e4,y=`${wg.apiEndpoint}geospatial-features/itwins/${o}/ogc/collections/${f}/items`,v=new Mr({url:y,headers:{Authorization:wg._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{limit:x,client:"CesiumJS"}});return $Z.load(v)};var Oxt=c$;function Xxt(){}Object.defineProperties(Xxt.prototype,{color:{get:wt.throwInstantiationError},intensity:{get:wt.throwInstantiationError}});var kxt=Xxt,MYi=/\/$/,Uxt=new Oa('© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function B4(o){o=o??si.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=Mr.createIfNeeded(o.url??"https://api.mapbox.com/styles/v1/");this._styleId=f,this._accessToken=m;let y=o.tilesize??512;this._tilesize=y;let v=o.username??"mapbox";this._username=v;let C=F(o.scaleFactor)?"@2x":"",T=x.getUrlComponent();MYi.test(T)||(T+="/"),T+=`${this._username}/${f}/tiles/${this._tilesize}/{z}/{x}/{y}${C}`,x.url=T,x.setQueryParameters({access_token:m});let S;F(o.credit)?(S=o.credit,typeof S=="string"&&(S=new Oa(S))):S=Uxt,this._resource=x,this._imageryProvider=new zb({url:x,credit:S,ellipsoid:o.ellipsoid,minimumLevel:o.minimumLevel,maximumLevel:o.maximumLevel,rectangle:o.rectangle})}Object.defineProperties(B4.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}}});B4.prototype.getTileCredits=function(o,f,m){};B4.prototype.requestImage=function(o,f,m,x){return this._imageryProvider.requestImage(o,f,m,x)};B4.prototype.pickFeatures=function(o,f,m,x,y){return this._imageryProvider.pickFeatures(o,f,m,x,y)};B4._defaultCredit=Uxt;var Bxt=B4;function XDe(o){}XDe.prototype.isReady=function(){return!0};XDe.prototype.shouldDiscardImage=function(o){return!1};var Hxt=XDe,VYi=new Oa("MapQuest, Open Street Map and contributors, CC-BY-SA");function bae(o){o=o??si.EMPTY_OBJECT;let f=Mr.createIfNeeded(o.url??"https://tile.openstreetmap.org/");f.appendForwardSlash(),f.url+=`{z}/{x}/{y}${o.retinaTiles?"@2x":""}.${o.fileExtension??"png"}`;let m=new gp({ellipsoid:o.ellipsoid}),x=256,y=256,v=o.minimumLevel??0,C=o.maximumLevel,T=o.rectangle??m.rectangle,S=m.positionToTileXY(vi.southwest(T),v),w=m.positionToTileXY(vi.northeast(T),v),E=(Math.abs(w.x-S.x)+1)*(Math.abs(w.y-S.y)+1),L=o.credit??VYi;typeof L=="string"&&(L=new Oa(L)),zb.call(this,{url:f,credit:L,tilingScheme:m,tileWidth:x,tileHeight:y,minimumLevel:v,maximumLevel:C,rectangle:T})}F(Object.create)&&(bae.prototype=Object.create(zb.prototype),bae.prototype.constructor=bae);var ME=bae,GYi=new rt(1,1);function kDe(o){o=o??si.EMPTY_OBJECT,this.mass=o.mass??1,this.position=Z.clone(o.position??Z.ZERO),this.velocity=Z.clone(o.velocity??Z.ZERO),this.life=o.life??Number.MAX_VALUE,this.image=o.image,this.startColor=Xe.clone(o.startColor??Xe.WHITE),this.endColor=Xe.clone(o.endColor??Xe.WHITE),this.startScale=o.startScale??1,this.endScale=o.endScale??1,this.imageSize=rt.clone(o.imageSize??GYi),this._age=0,this._normalizedAge=0,this._billboard=void 0}Object.defineProperties(kDe.prototype,{age:{get:function(){return this._age}},normalizedAge:{get:function(){return this._normalizedAge}}});var G7e=new Z;kDe.prototype.update=function(o,f){return Z.multiplyByScalar(this.velocity,o,G7e),Z.add(this.position,G7e,this.position),F(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 Pde=kDe;function zxt(o){o=o??si.EMPTY_OBJECT,this.time=o.time??0,this.minimum=o.minimum??0,this.maximum=o.maximum??50,this._complete=!1}Object.defineProperties(zxt.prototype,{complete:{get:function(){return this._complete}}});var H4=zxt;function Yxt(o){}Yxt.prototype.emit=function(o){wt.throwInstantiationError()};var Kxt=Yxt,F7e=new rt(1,1);function h$(o){o=o??si.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;F(f)||(f=new GDe(.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=Xe.clone(o.color??o.startColor??Xe.WHITE),this._endColor=Xe.clone(o.color??o.endColor??Xe.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=rt.clone(o.imageSize??o.minimumImageSize??F7e),this._maximumImageSize=rt.clone(o.imageSize??o.maximumImageSize??F7e),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 Tr,this._isComplete=!1,this._updateParticlePool=!0,this._particleEstimate=0}Object.defineProperties(h$.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){Xe.clone(o,this._startColor)}},endColor:{get:function(){return this._endColor},set:function(o){Xe.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 FYi(o){let f=o._emissionRate,m=o._maximumParticleLife,x=0,y=o._bursts;if(F(y)){let L=y.length;for(let I=0;I<L;++I)x+=y[I].maximum}let v=o._billboardCollection,C=o.image,T=Math.ceil(f*m+x),S=o._particles,w=o._particlePool,E=Math.max(T-S.length-w.length,0);for(let L=0;L<E;++L){let I=new Pde;I._billboard=v.add({image:C,show:!1}),w.push(I)}o._particleEstimate=T}function DYi(o){let f=o._particlePool.pop();return F(f)||(f=new Pde),f}function NYi(o,f){o._particlePool.push(f)}function WYi(o){let f=o._particles,m=o._particlePool,x=o._billboardCollection,y=f.length,v=m.length,C=o._particleEstimate,T=v-Math.max(C-y-v,0);for(let S=T;S<v;++S){let w=m[S];x.remove(w._billboard)}m.length=T}function ZYi(o){F(o._billboard)&&(o._billboard.show=!1)}function D7e(o,f){let m=f._billboard;F(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=be.lerp(f.startColor.red,f.endColor.red,f.normalizedAge),y=be.lerp(f.startColor.green,f.endColor.green,f.normalizedAge),v=be.lerp(f.startColor.blue,f.endColor.blue,f.normalizedAge),C=be.lerp(f.startColor.alpha,f.endColor.alpha,f.normalizedAge);m.color=new Xe(x,y,v,C),m.scale=be.lerp(f.startScale,f.endScale,f.normalizedAge)}function OYi(o,f){f.startColor=Xe.clone(o._startColor,f.startColor),f.endColor=Xe.clone(o._endColor,f.endColor),f.startScale=o._startScale,f.endScale=o._endScale,f.image=o.image,f.life=be.randomBetween(o._minimumParticleLife,o._maximumParticleLife),f.mass=be.randomBetween(o._minimumMass,o._maximumMass),f.imageSize.x=be.randomBetween(o._minimumImageSize.x,o._maximumImageSize.x),f.imageSize.y=be.randomBetween(o._minimumImageSize.y,o._maximumImageSize.y),f._normalizedAge=0,f._age=0;let m=be.randomBetween(o._minimumSpeed,o._maximumSpeed);Z.multiplyByScalar(f.velocity,m,f.velocity),o._particles.push(f)}function XYi(o,f){if(o._isComplete)return 0;f=be.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),F(o.bursts)){let y=o.bursts.length;for(let v=0;v<y;v++){let C=o.bursts[v],T=o._currentTime;F(C)&&!C._complete&&T>C.time&&(x+=be.randomBetween(C.minimum,C.maximum),C._complete=!0)}}return x}var yoe=new Z;h$.prototype.update=function(o){if(!this.show)return;F(this._billboardCollection)||(this._billboardCollection=new jE),this._updateParticlePool&&(FYi(this),this._updateParticlePool=!1);let f=0;this._previousTime&&(f=$t.secondsDifference(o.time,this._previousTime)),f<0&&(f=0);let m=this._particles,x=this._emitter,y=this.updateCallback,v,C,T=m.length;for(v=0;v<T;++v)C=m[v],C.update(f,y)?D7e(this,C):(ZYi(C),NYi(this,C),m[v]=m[T-1],--v,--T);m.length=T;let S=XYi(this,f);if(S>0&&F(x)){this._matrixDirty&&(this._combinedMatrix=Ee.multiply(this.modelMatrix,this.emitterModelMatrix,this._combinedMatrix),this._matrixDirty=!1);let w=this._combinedMatrix;for(v=0;v<S;v++)C=DYi(this),this._emitter.emit(C),Z.add(C.position,C.velocity,yoe),Ee.multiplyByPoint(w,yoe,yoe),C.position=Ee.multiplyByPoint(w,C.position,C.position),Z.subtract(yoe,C.position,C.velocity),Z.normalize(C.velocity,C.velocity),OYi(this,C),D7e(this,C)}if(this._billboardCollection.update(o),this._previousTime=$t.clone(o.time,this._previousTime),this._currentTime+=f,this._lifetime!==Number.MAX_VALUE&&this._currentTime>this._lifetime)if(this.loop){if(this._currentTime=be.mod(this._currentTime,this._lifetime),this.bursts){let w=this.bursts.length;for(v=0;v<w;v++)this.bursts[v]._complete=!1}}else this._isComplete=!0,this._complete.raiseEvent(this);o.frameNumber%120===0&&WYi(this)};h$.prototype.isDestroyed=function(){return!1};h$.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),yr(this)};var qS=h$;function W1(){wt.throwInstantiationError()}W1.computeDefaultLevelZeroMaximumGeometricError=function(o){return o.ellipsoid.maximumRadius*2*Math.PI*.25/(65*o.getNumberOfXTilesAtLevel(0))};Object.defineProperties(W1.prototype,{quadtree:{get:wt.throwInstantiationError,set:wt.throwInstantiationError},tilingScheme:{get:wt.throwInstantiationError},errorEvent:{get:wt.throwInstantiationError}});W1.prototype.update=wt.throwInstantiationError;W1.prototype.beginUpdate=wt.throwInstantiationError;W1.prototype.endUpdate=wt.throwInstantiationError;W1.prototype.getLevelMaximumGeometricError=wt.throwInstantiationError;W1.prototype.loadTile=wt.throwInstantiationError;W1.prototype.computeTileVisibility=wt.throwInstantiationError;W1.prototype.showTileThisFrame=wt.throwInstantiationError;W1.prototype.computeDistanceToTile=wt.throwInstantiationError;W1.prototype.isDestroyed=wt.throwInstantiationError;W1.prototype.destroy=wt.throwInstantiationError;var XO=W1;function UDe(o){o=o??1,this._radius=o??1}Object.defineProperties(UDe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});UDe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,be.PI),x=be.randomBetween(0,this._radius),y=x*Math.cos(f)*Math.sin(m),v=x*Math.sin(f)*Math.sin(m),C=x*Math.cos(m);o.position=Z.fromElements(y,v,C,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var z4=UDe;function d$(){}d$.prototype.evaluate=function(o,f){wt.throwInstantiationError()};d$.prototype.evaluateColor=function(o,f){wt.throwInstantiationError()};d$.prototype.getShaderFunction=function(o,f,m,x){wt.throwInstantiationError()};d$.prototype.getVariables=function(){wt.throwInstantiationError()};var Jxt=d$;function ez(o){this._ready=!1,this._provider=void 0,this._errorEvent=new Tr,this._readyEvent=new Tr,UYi(this,o)}Object.defineProperties(ez.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}}});ez.fromWorldTerrain=function(o){return new ez(_de(o))};ez.fromWorldBathymetry=function(o){return new ez(mDe(o))};function kYi(o,f){o.numberOfListeners>0?o.raiseEvent(f):console.error(f)}async function UYi(o,f){let m;try{m=await Promise.resolve(f),o._provider=m,o._ready=!0,o._readyEvent.raiseEvent(m)}catch(x){kYi(o._errorEvent,x)}}var BDe=ez;function Y4(){}Y4.prototype.boundingVolume=void 0;Y4.prototype.boundingSphere=void 0;Y4.prototype.distanceToCamera=function(o){wt.throwInstantiationError()};Y4.prototype.intersectPlane=function(o){wt.throwInstantiationError()};Y4.prototype.createDebugVolume=function(o){wt.throwInstantiationError()};var jxt=Y4;function p$(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._color=o.color??Xe.YELLOW,this._errorEvent=new Tr,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(p$.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}}});p$.prototype.getTileCredits=function(o,f,m){};p$.prototype.requestImage=function(o,f,m,x){let y=document.createElement("canvas");y.width=256,y.height=256;let v=y.getContext("2d"),C=this._color.toCssColorString();return v.strokeStyle=C,v.lineWidth=2,v.strokeRect(1,1,255,255),v.font="bold 25px Arial",v.textAlign="center",v.fillStyle=C,v.fillText(`L: ${m}`,124,86),v.fillText(`X: ${o}`,124,136),v.fillText(`Y: ${f}`,124,186),Promise.resolve(y)};p$.prototype.pickFeatures=function(o,f,m,x,y){};var f$=p$;function HDe(o){wt.throwInstantiationError()}HDe.prototype.isReady=wt.throwInstantiationError;HDe.prototype.shouldDiscardImage=wt.throwInstantiationError;var Qxt=HDe,BYi={START:0,LOADING:1,READY:2,UPSAMPLED_ONLY:3},qxt=Object.freeze(BYi);function Ide(o,f){this.show=!0,F(o)||(o=new Er),this.rectangle=Er.clone(o),F(f)||(f=Co.fromType(Co.ColorType,{color:new Xe(1,1,1,1)})),this.material=f,this._material=void 0,this._overlayCommand=void 0,this._rs=void 0}Ide.prototype.update=function(o){if(!this.show)return;let f=this._rs;if((!F(f)||!Er.equals(f.viewport,this.rectangle))&&(this._rs=cn.fromCache({blending:ru.ALPHA_BLEND,viewport:this.rectangle})),o.passes.render){let m=o.context;if(this._material!==this.material||!F(this._overlayCommand)){this._material=this.material,F(this._overlayCommand)&&this._overlayCommand.shaderProgram.destroy();let x=new Wr({sources:[this._material.shaderSource,RDe]});this._overlayCommand=m.createViewportQuadCommand(x,{renderState:this._rs,uniformMap:this._material._uniforms,owner:this}),this._overlayCommand.pass=xr.OVERLAY}this._material.update(m),this._overlayCommand.renderState=this._rs,this._overlayCommand.uniformMap=this._material._uniforms,o.commandList.push(this._overlayCommand)}};Ide.prototype.isDestroyed=function(){return!1};Ide.prototype.destroy=function(){return F(this._overlayCommand)&&(this._overlayCommand.shaderProgram=this._overlayCommand.shaderProgram&&this._overlayCommand.shaderProgram.destroy()),yr(this)};var K4=Ide;function zDe(){wt.throwInstantiationError()}Object.defineProperties(zDe.prototype,{globalTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shape:{get:wt.throwInstantiationError},minBounds:{get:wt.throwInstantiationError},maxBounds:{get:wt.throwInstantiationError},dimensions:{get:wt.throwInstantiationError},paddingBefore:{get:wt.throwInstantiationError},paddingAfter:{get:wt.throwInstantiationError},names:{get:wt.throwInstantiationError},types:{get:wt.throwInstantiationError},componentTypes:{get:wt.throwInstantiationError},minimumValues:{get:wt.throwInstantiationError},maximumValues:{get:wt.throwInstantiationError},maximumTileCount:{get:wt.throwInstantiationError},availableLevels:{get:wt.throwInstantiationError},keyframeCount:{get:wt.throwInstantiationError},timeIntervalCollection:{get:wt.throwInstantiationError}});zDe.prototype.requestData=function(o){wt.throwInstantiationError()};var $xt=zDe;function kO(){wt.throwInstantiationError()}Object.defineProperties(kO.prototype,{orientedBoundingBox:{get:wt.throwInstantiationError},boundingSphere:{get:wt.throwInstantiationError},boundTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shaderUniforms:{get:wt.throwInstantiationError},shaderDefines:{get:wt.throwInstantiationError},shaderMaximumIntersectionsLength:{get:wt.throwInstantiationError}});kO.prototype.update=wt.throwInstantiationError;kO.prototype.computeOrientedBoundingBoxForTile=wt.throwInstantiationError;kO.prototype.computeOrientedBoundingBoxForSample=wt.throwInstantiationError;kO.DefaultMinBounds=wt.throwInstantiationError;kO.DefaultMaxBounds=wt.throwInstantiationError;var egt=kO,HYi=function(){var o=sSe.url;return function(f){return f=f||{},f.ready}}(),Cae={};Cae.onRuntimeInitialized||(Cae.onRuntimeInitialized=function(){},HYi(Cae));var tgt=Cae,rj=k0(iet(),1),igt={};(function(o,f){o.FlowEcharts=f(rj.default,o.Geoworld)})(igt,function(o,f){return function(m){var x={};function y(v){if(x[v])return x[v].exports;var C=x[v]={i:v,l:!1,exports:{}};return m[v].call(C.exports,C,C.exports,y),C.l=!0,C.exports}return y.m=m,y.c=x,y.d=function(v,C,T){y.o(v,C)||Object.defineProperty(v,C,{enumerable:!0,get:T})},y.r=function(v){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},y.t=function(v,C){if(C&1&&(v=y(v)),C&8||C&4&&typeof v=="object"&&v&&v.__esModule)return v;var T=Object.create(null);if(y.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:v}),C&2&&typeof v!="string")for(var S in v)y.d(T,S,function(w){return v[w]}.bind(null,S));return T},y.n=function(v){var C=v&&v.__esModule?function(){return v.default}:function(){return v};return y.d(C,"a",C),C},y.o=function(v,C){return Object.prototype.hasOwnProperty.call(v,C)},y.p="",y(y.s=0)}([function(m,x,y){y(1);var v=y(7);m.exports=v},function(m,x,y){var v;v=function(C){return y(2).registerCoordinateSystem("GLMap",y(3)),y(5),y(6),y(2).registerAction({type:"GLMapRoam",event:"GLMapRoam",update:"updateLayout"},function(T,S){}),{version:"1.0.0"}}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=o},function(m,x,y){var v;v=function(C){var T=y(2);function S(w,E){this._GLMap=w,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=E}return S.prototype.dimensions=["lng","lat"],S.prototype.setMapOffset=function(w){this._mapOffset=w},S.prototype.getBMap=function(){return this._GLMap},S.prototype.dataToPoint=function(w){var E=be.toRadians(80),L=[99999,99999],I=Z.fromDegrees(w[0],w[1]);if(!I)return L;var R=this._GLMap.cartesianToCanvasCoordinates(I);if(!R)return L;var P=this._GLMap;return P.mode===gi.SCENE3D&&Z.angleBetween(P.camera.position,I)>E?!1:[R.x-this._mapOffset[0],R.y-this._mapOffset[1]]},S.prototype.pointToData=function(L){var E=this._mapOffset,L=this._bmap.project([L[0]+E[0],L[1]+E[1]]);return[L.lng,L.lat]},S.prototype.getViewRect=function(){var w=this._api;return new T.graphic.BoundingRect(0,0,w.getWidth(),w.getHeight())},S.prototype.getRoamTransform=function(){return T.matrix.create()},S.dimensions=S.prototype.dimensions,S.create=function(w,E){var L;w.eachComponent("GLMap",function(I){var R=E.getZr().painter.getViewportRoot(),P=T.glMap;L=new S(P,E),L.setMapOffset(I.__mapOffset||[0,0]),I.coordinateSystem=L}),w.eachSeries(function(I){I.get("coordinateSystem")==="GLMap"&&(I.coordinateSystem=L)})},S}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=f},function(m,x,y){var v;v=function(C){return y(2).extendComponentModel({type:"GLMap",getBMap:function(){return this.__GLMap},defaultOption:{roam:!1}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x,y){var v;v=function(C){return y(2).extendComponentView({type:"GLMap",init:function(T,S){this.api=S,rj.default.glMap.postRender.addEventListener(this.moveHandler,this)},moveHandler:function(){this.api.dispatchAction({type:"GLMapRoam"})},render:function(T,S,w){},dispose:function(T,S){rj.default.glMap.postRender.removeEventListener(this.moveHandler,this)}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){function y(v,C){this._mapContainer=v,this._overlay=this._createChartOverlay(),this._overlay.setOption(C)}y.prototype._createChartOverlay=function(){var v=this._mapContainer.scene;v.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=v.canvas.width+"px",C.style.height=v.canvas.height+"px",C.style.pointerEvents="none",C.setAttribute("id","echarts"),C.setAttribute("class","echartMap"),this._mapContainer.container.appendChild(C),this._echartsContainer=C,rj.default.glMap=v,rj.default.init(C)},y.prototype.dispose=function(){this._echartsContainer&&(this._mapContainer.container.removeChild(this._echartsContainer),this._echartsContainer=null),this._overlay&&(this._overlay.dispose(),this._overlay=null)},y.prototype.destroy=function(){this.dispose()},y.prototype.updateOverlay=function(v){this._overlay&&this._overlay.setOption(v)},y.prototype.getMap=function(){return this._mapContainer},y.prototype.getOverlay=function(){return this._overlay},m.exports=y}])});var Rde=igt.FlowEcharts,zYi=`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); @@ -21125,7 +21125,7 @@ } } } - `}),D=new Vf({name:`${f}Composite`,stages:[V,G],inputPreviousStageTexture:!1});function N(k){Object.defineProperties(k,{showGlow:{get(){return S},set(U){S=U}},edgeGlow:{get(){return w},set(U){w=U}},edgeStrength:{get(){return E},set(U){E=U}},thresholdAngle:{get(){return x},set(U){x=U}},showOutlineOnly:{get(){return v},set(U){v=U}},edgeOnly:{get(){return L},set(U){L=U}},useSingleColor:{get(){return y},set(U){y=U}},outlineWidth:{get(){return m},set(U){m=U}},visibleEdgeColor:{get(){return C},set(U){C=U}},hiddenEdgeColor:{get(){return T},set(U){T=U}}})}return N(D),D._uniforms=D._uniforms||{},N(D._uniforms),D}function y$(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(y$.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}}});y$.prototype.addPolygon=function(o){this._primitive.addFlattenPolygon(o)};y$.prototype.clearPolygon=function(){this._primitive.clearFlattenPolygon()};y$.prototype.update=function(){this._primitive.update()};var gNe=y$;function _$(o){this._terrainFlatten=new UO(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(_$.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}}});_$.prototype.addPolygon=function(o){this._terrainFlatten.addPolygon(o)};_$.prototype.clearPolygon=function(){this._terrainFlatten.clearPolygon()};_$.prototype.update=function(){this._terrainFlatten.update()};var yNe=_$;function rJi(o,f,m){let x=new rt(15,30),y=new Z,v=function(C,T){y=Z.normalize(C.position,y),y=Z.multiplyByScalar(y,-1050,y),C.position=Z.add(C.position,y,C.position);let S=Z.distance(o.camera.position,C.position),w=1;m<1e5&&(w=.1/(m/1e5));let E=m*w;S>E?C.endColor.alpha=0:C.endColor.alpha=Xe.BLUE.alpha/(S/E+.1)};return new qS({modelMatrix:new Ee.fromTranslation(f),speed:-1,lifetime:15,emitter:new Lde(new Z(m,m,m)),startScale:5,endScale:0,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/littleRain.png`,emissionRate:9e3,startColor:new Xe(.8,.8,.8,0),endColor:new Xe(.8,.8,.8,.9),imageSize:x,updateCallback:v})}function nJi(o,f,m){let x=new rt(12,12),y=new rt(12*2,12*2),v=new Z,C=function(T,S){v=Z.normalize(T.position,v),Z.multiplyByScalar(v,be.randomBetween(-30,-300),v),T.velocity=Z.add(T.velocity,v,T.velocity);let w=Z.distance(o.camera.position,T.position);w>m?T.endColor.alpha=0:T.endColor.alpha=1/(w/m+.1)};return new qS({modelMatrix:new Ee.fromTranslation(f),minimumSpeed:-1,maximumSpeed:0,lifetime:15,emitter:new Lde(new Z(m,m,m)),startScale:.5,endScale:1,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/snow.png`,emissionRate:7e3,startColor:Xe.WHITE.withAlpha(0),endColor:Xe.WHITE.withAlpha(1),minimumImageSize:x,maximumImageSize:y,updateCallback:C})}function oJi(o,f){let m=_r.eastNorthUpToFixedFrame(o),x=Ee.multiplyByPoint(m,new Z(f*.5,f*.5,0),new Z),y=Ee.multiplyByPoint(m,new Z(f*.5,-f*.5,0),new Z),v=Ee.multiplyByPoint(m,new Z(-f*.5,-f*.5,0),new Z),C=Ee.multiplyByPoint(m,new Z(-f*.5,f*.5,0),new Z),T=Gt.fromCartesian(x),S=Gt.fromCartesian(y),w=Gt.fromCartesian(v),E=Gt.fromCartesian(C);return[be.toDegrees(T.longitude),be.toDegrees(T.latitude),-1e4,be.toDegrees(S.longitude),be.toDegrees(S.latitude),-1e4,be.toDegrees(w.longitude),be.toDegrees(w.latitude),-1e4,be.toDegrees(E.longitude),be.toDegrees(E.latitude),-1e4]}function Qu(o,f,m,x){this._scene=o,this._primitive=f,this._position=m,this._radius=x,f&&(this._tilesetWeather=new gNe(f)),o&&(this._terrainWeather=new yNe(o)),this._enableWeatherType=Qu.TYPE_NONE,this._region=oJi(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(Qu.prototype,{enableWeatherType:{get:function(){return this._enableWeatherType},set:function(o){this._enableWeatherType!==o&&(this._enableWeatherType!==Qu.TYPE_RAIN&&this._enableWeatherType!==Qu.TYPE_SNOW&&this._enableWeatherType!==Qu.TYPE_HEIGHT_FOG&&(o===Qu.TYPE_RAIN||o===Qu.TYPE_SNOW||o===Qu.TYPE_HEIGHT_FOG)&&(this.addPolygon(this._region),this.update()),(this._enableWeatherType===Qu.TYPE_RAIN||this._enableWeatherType===Qu.TYPE_SNOW||this._enableWeatherType===Qu.TYPE_HEIGHT_FOG)&&o!==Qu.TYPE_RAIN&&o!==Qu.TYPE_SNOW&&o!==Qu.TYPE_HEIGHT_FOG&&this.clearPolygon(),o===Qu.TYPE_RAIN?this.enableRainSnowFog(o):o===Qu.TYPE_SNOW?this.enableRainSnowFog(o):o===Qu.TYPE_HEIGHT_FOG?this.enableRainSnowFog(o):o===Qu.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)}}});Qu.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===Qu.TYPE_RAIN?(this._weatherParticle=rJi(f,m,x),f.primitives.add(this._weatherParticle)):o===Qu.TYPE_SNOW&&(this._weatherParticle=nJi(f,m,x),f.primitives.add(this._weatherParticle)),this._terrainWeather&&(this._terrainWeather.disabled=!0,o===Qu.TYPE_RAIN?this._terrainWeather.ripple=!0:o===Qu.TYPE_SNOW?this._terrainWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._terrainWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._terrainWeather.disabled=!0)),this._tilesetWeather&&(this._tilesetWeather.disabled=!0,o===Qu.TYPE_RAIN?this._tilesetWeather.ripple=!0:o===Qu.TYPE_SNOW?this._tilesetWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._tilesetWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._tilesetWeather.disabled=!0))};Qu.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)};Qu.prototype.addPolygon=function(){if(this._terrainWeather&&this._terrainWeather.addPolygon(this._region),this._tilesetWeather){let o=Uu.fromPositions({positions:Z.fromDegreesArrayHeights(this._region),perPositionHeight:!0});this._tilesetWeather.addPolygon(o)}};Qu.prototype.clearPolygon=function(){this._terrainWeather&&this._terrainWeather.clearPolygon(),this._tilesetWeather&&this._tilesetWeather.clearPolygon()};Qu.prototype.update=function(){this._terrainWeather&&this._terrainWeather.update(),this._tilesetWeather};Qu.TYPE_RAIN=0;Qu.TYPE_SNOW=1;Qu.TYPE_HEIGHT_FOG=2;Qu.TYPE_NONE=3;var Fde=Qu,dxr=new qm({pass:sh.PICK}),aJi=new qm({pass:sh.RENDER}),sJi=new Xe(0,0,0,0);function BO(o){this.scene=o.scene;let f=this.scene.context;this.boxHeight=o.boxHeight,this.centerPosition=Gt.clone(o.centerPosition,new Gt(0,0,0)),this.size=o.size,this.viewPort=new Er(0,0,f.drawingBufferWidth,f.drawingBufferHeight),this.rect=this.calcRect(this.centerPosition,this.boxHeight,this.size),this.depthTexture=null,this.colorTexture=null,this.init()}BO.prototype.calcRect=function(o,f,m){o.height+=f;let x=Gt.toCartesian(o,yi.WGS84,new Z),y={heading:0,pitch:-90*3.1415926/180,roll:0};return{position:x,orientation:y,size:m}};BO.prototype.createPassState=function(o){let f=new $p(o);return f.blendingEnabled=!1,f.scissorTest={enabled:!1,rectangle:new Er},f.viewport=new Er,f};function lJi(o,f,m,x){let{width:y,height:v}=f;return Er.clone(f,x.scissorTest.rectangle),m.update(o,y,v),x.framebuffer=m.framebuffer,x.viewport.width=y,x.viewport.height=v,x}function uJi(o,f,m,x){let{context:y,frameState:v}=o,C=y.uniformState,T=f;o.view=T,lJi(y,T.viewport,m,x),o.jobScheduler.disableThisFrame(),o.updateFrameState(),v.invertClassification=!1,v.passes.pick=!1,v.passes.render=!0,v.tilesetPassState=aJi,v.passes.offscreen=!0,v.passes.heightField=!0,C.update(v),o.updateEnvironment(),o.updateAndExecuteCommands(x,sJi);let S=T.frustumCommandsList.length;if(console.log("numFrustums:",S),o.resolveFramebuffers(x),o.context.depthTexture){let w=T.frustumCommandsList.length;for(let E=0;E<w;++E){let L=o.picking.getPickDepth(o,E).getDepth(y,10,10);if(L&&L>0&&L<1){let I=T.frustumCommandsList[E],R=I.near*(E!==0?o.opaqueFrustumNearOffset:1),P=I.far,A=R+L*(P-R);console.log("depth",L),console.log("near",R),console.log("far",P),console.log("distance",A);break}}}return T.globeDepth.executeCopyDepth(y,x),o.view=o.defaultView,y.endFrame(),T.globeDepth._copyDepthFramebuffer.getColorTexture()}BO.prototype.init=function(){let o=this.scene,f=o.context,m=this.rect,x=this.boxHeight,y=this.viewPort,v=new Ts(o);v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x}),v.setView({destination:m.position,orientation:m.orientation,endTransform:Ee.IDENTITY}),v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x});let C=new N1(o,v,y),T=new Pc({name:"yes"}),S=this.createPassState(f),w=this;w.depthTexture=uJi(o,C,T,S),w.colorTexture=T.getColorTexture(0)};BO.prototype.getDepthTexture=function(){return this.depthTexture};BO.prototype.getColorTexture=function(){return this.colorTexture};BO.prototype.destroy=function(){};var _Ne=BO,YU={baseShader:{shader:` + `}),D=new Vf({name:`${f}Composite`,stages:[V,G],inputPreviousStageTexture:!1});function N(k){Object.defineProperties(k,{showGlow:{get(){return S},set(U){S=U}},edgeGlow:{get(){return w},set(U){w=U}},edgeStrength:{get(){return E},set(U){E=U}},thresholdAngle:{get(){return x},set(U){x=U}},showOutlineOnly:{get(){return v},set(U){v=U}},edgeOnly:{get(){return L},set(U){L=U}},useSingleColor:{get(){return y},set(U){y=U}},outlineWidth:{get(){return m},set(U){m=U}},visibleEdgeColor:{get(){return C},set(U){C=U}},hiddenEdgeColor:{get(){return T},set(U){T=U}}})}return N(D),D._uniforms=D._uniforms||{},N(D._uniforms),D}function y$(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(y$.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}}});y$.prototype.addPolygon=function(o){this._primitive.addFlattenPolygon(o)};y$.prototype.clearPolygon=function(){this._primitive.clearFlattenPolygon()};y$.prototype.update=function(){this._primitive.update()};var gNe=y$;function _$(o){this._terrainFlatten=new UO(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(_$.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}}});_$.prototype.addPolygon=function(o){this._terrainFlatten.addPolygon(o)};_$.prototype.clearPolygon=function(){this._terrainFlatten.clearPolygon()};_$.prototype.update=function(){this._terrainFlatten.update()};var yNe=_$;function rJi(o,f,m){let x=new rt(15,30),y=new Z,v=function(C,T){y=Z.normalize(C.position,y),y=Z.multiplyByScalar(y,-1050,y),C.position=Z.add(C.position,y,C.position);let S=Z.distance(o.camera.position,C.position),w=1;m<1e5&&(w=.1/(m/1e5));let E=m*w;S>E?C.endColor.alpha=0:C.endColor.alpha=Xe.BLUE.alpha/(S/E+.1)};return new qS({modelMatrix:new Ee.fromTranslation(f),speed:-1,lifetime:15,emitter:new Ede(new Z(m,m,m)),startScale:5,endScale:0,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/littleRain.png`,emissionRate:9e3,startColor:new Xe(.8,.8,.8,0),endColor:new Xe(.8,.8,.8,.9),imageSize:x,updateCallback:v})}function nJi(o,f,m){let x=new rt(12,12),y=new rt(12*2,12*2),v=new Z,C=function(T,S){v=Z.normalize(T.position,v),Z.multiplyByScalar(v,be.randomBetween(-30,-300),v),T.velocity=Z.add(T.velocity,v,T.velocity);let w=Z.distance(o.camera.position,T.position);w>m?T.endColor.alpha=0:T.endColor.alpha=1/(w/m+.1)};return new qS({modelMatrix:new Ee.fromTranslation(f),minimumSpeed:-1,maximumSpeed:0,lifetime:15,emitter:new Ede(new Z(m,m,m)),startScale:.5,endScale:1,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/snow.png`,emissionRate:7e3,startColor:Xe.WHITE.withAlpha(0),endColor:Xe.WHITE.withAlpha(1),minimumImageSize:x,maximumImageSize:y,updateCallback:C})}function oJi(o,f){let m=_r.eastNorthUpToFixedFrame(o),x=Ee.multiplyByPoint(m,new Z(f*.5,f*.5,0),new Z),y=Ee.multiplyByPoint(m,new Z(f*.5,-f*.5,0),new Z),v=Ee.multiplyByPoint(m,new Z(-f*.5,-f*.5,0),new Z),C=Ee.multiplyByPoint(m,new Z(-f*.5,f*.5,0),new Z),T=Gt.fromCartesian(x),S=Gt.fromCartesian(y),w=Gt.fromCartesian(v),E=Gt.fromCartesian(C);return[be.toDegrees(T.longitude),be.toDegrees(T.latitude),-1e4,be.toDegrees(S.longitude),be.toDegrees(S.latitude),-1e4,be.toDegrees(w.longitude),be.toDegrees(w.latitude),-1e4,be.toDegrees(E.longitude),be.toDegrees(E.latitude),-1e4]}function Qu(o,f,m,x){this._scene=o,this._primitive=f,this._position=m,this._radius=x,f&&(this._tilesetWeather=new gNe(f)),o&&(this._terrainWeather=new yNe(o)),this._enableWeatherType=Qu.TYPE_NONE,this._region=oJi(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(Qu.prototype,{enableWeatherType:{get:function(){return this._enableWeatherType},set:function(o){this._enableWeatherType!==o&&(this._enableWeatherType!==Qu.TYPE_RAIN&&this._enableWeatherType!==Qu.TYPE_SNOW&&this._enableWeatherType!==Qu.TYPE_HEIGHT_FOG&&(o===Qu.TYPE_RAIN||o===Qu.TYPE_SNOW||o===Qu.TYPE_HEIGHT_FOG)&&(this.addPolygon(this._region),this.update()),(this._enableWeatherType===Qu.TYPE_RAIN||this._enableWeatherType===Qu.TYPE_SNOW||this._enableWeatherType===Qu.TYPE_HEIGHT_FOG)&&o!==Qu.TYPE_RAIN&&o!==Qu.TYPE_SNOW&&o!==Qu.TYPE_HEIGHT_FOG&&this.clearPolygon(),o===Qu.TYPE_RAIN?this.enableRainSnowFog(o):o===Qu.TYPE_SNOW?this.enableRainSnowFog(o):o===Qu.TYPE_HEIGHT_FOG?this.enableRainSnowFog(o):o===Qu.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)}}});Qu.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===Qu.TYPE_RAIN?(this._weatherParticle=rJi(f,m,x),f.primitives.add(this._weatherParticle)):o===Qu.TYPE_SNOW&&(this._weatherParticle=nJi(f,m,x),f.primitives.add(this._weatherParticle)),this._terrainWeather&&(this._terrainWeather.disabled=!0,o===Qu.TYPE_RAIN?this._terrainWeather.ripple=!0:o===Qu.TYPE_SNOW?this._terrainWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._terrainWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._terrainWeather.disabled=!0)),this._tilesetWeather&&(this._tilesetWeather.disabled=!0,o===Qu.TYPE_RAIN?this._tilesetWeather.ripple=!0:o===Qu.TYPE_SNOW?this._tilesetWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._tilesetWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._tilesetWeather.disabled=!0))};Qu.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)};Qu.prototype.addPolygon=function(){if(this._terrainWeather&&this._terrainWeather.addPolygon(this._region),this._tilesetWeather){let o=Uu.fromPositions({positions:Z.fromDegreesArrayHeights(this._region),perPositionHeight:!0});this._tilesetWeather.addPolygon(o)}};Qu.prototype.clearPolygon=function(){this._terrainWeather&&this._terrainWeather.clearPolygon(),this._tilesetWeather&&this._tilesetWeather.clearPolygon()};Qu.prototype.update=function(){this._terrainWeather&&this._terrainWeather.update(),this._tilesetWeather};Qu.TYPE_RAIN=0;Qu.TYPE_SNOW=1;Qu.TYPE_HEIGHT_FOG=2;Qu.TYPE_NONE=3;var Fde=Qu,dxr=new qm({pass:sh.PICK}),aJi=new qm({pass:sh.RENDER}),sJi=new Xe(0,0,0,0);function BO(o){this.scene=o.scene;let f=this.scene.context;this.boxHeight=o.boxHeight,this.centerPosition=Gt.clone(o.centerPosition,new Gt(0,0,0)),this.size=o.size,this.viewPort=new Er(0,0,f.drawingBufferWidth,f.drawingBufferHeight),this.rect=this.calcRect(this.centerPosition,this.boxHeight,this.size),this.depthTexture=null,this.colorTexture=null,this.init()}BO.prototype.calcRect=function(o,f,m){o.height+=f;let x=Gt.toCartesian(o,yi.WGS84,new Z),y={heading:0,pitch:-90*3.1415926/180,roll:0};return{position:x,orientation:y,size:m}};BO.prototype.createPassState=function(o){let f=new $p(o);return f.blendingEnabled=!1,f.scissorTest={enabled:!1,rectangle:new Er},f.viewport=new Er,f};function lJi(o,f,m,x){let{width:y,height:v}=f;return Er.clone(f,x.scissorTest.rectangle),m.update(o,y,v),x.framebuffer=m.framebuffer,x.viewport.width=y,x.viewport.height=v,x}function uJi(o,f,m,x){let{context:y,frameState:v}=o,C=y.uniformState,T=f;o.view=T,lJi(y,T.viewport,m,x),o.jobScheduler.disableThisFrame(),o.updateFrameState(),v.invertClassification=!1,v.passes.pick=!1,v.passes.render=!0,v.tilesetPassState=aJi,v.passes.offscreen=!0,v.passes.heightField=!0,C.update(v),o.updateEnvironment(),o.updateAndExecuteCommands(x,sJi);let S=T.frustumCommandsList.length;if(console.log("numFrustums:",S),o.resolveFramebuffers(x),o.context.depthTexture){let w=T.frustumCommandsList.length;for(let E=0;E<w;++E){let L=o.picking.getPickDepth(o,E).getDepth(y,10,10);if(L&&L>0&&L<1){let I=T.frustumCommandsList[E],R=I.near*(E!==0?o.opaqueFrustumNearOffset:1),P=I.far,A=R+L*(P-R);console.log("depth",L),console.log("near",R),console.log("far",P),console.log("distance",A);break}}}return T.globeDepth.executeCopyDepth(y,x),o.view=o.defaultView,y.endFrame(),T.globeDepth._copyDepthFramebuffer.getColorTexture()}BO.prototype.init=function(){let o=this.scene,f=o.context,m=this.rect,x=this.boxHeight,y=this.viewPort,v=new Ts(o);v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x}),v.setView({destination:m.position,orientation:m.orientation,endTransform:Ee.IDENTITY}),v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x});let C=new N1(o,v,y),T=new Pc({name:"yes"}),S=this.createPassState(f),w=this;w.depthTexture=uJi(o,C,T,S),w.colorTexture=T.getColorTexture(0)};BO.prototype.getDepthTexture=function(){return this.depthTexture};BO.prototype.getColorTexture=function(){return this.colorTexture};BO.prototype.destroy=function(){};var _Ne=BO,YU={baseShader:{shader:` const int textureSize = 512; // Render //const vec3 backgroundColor = vec3(0.2); @@ -22325,7 +22325,7 @@ void main() { getColor(); } - `;function eqe(o,f,m,x){let y=new Uint8Array(f),v=Math.ceil(Math.sqrt(y.length));return new uDe({width:m,height:m,depth:m,context:o,pixelFormat:x?zr.RGBA:zr.RGB,pixelDataType:un.UNSIGNED_BYTE,source:{width:v,height:v,arrayBufferView:y},sampler:new Yo({wrapR:Xn.MIRRORED_REPEAT,wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function tqe(o,f,m){let x=f;return new Rn({context:o,source:x,sampler:new Yo({wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function AJi(o){let f=[],m=o.detail_noise_high,x=new Mr({url:m,queryParameters:{format:"bin"}});f.push(x.fetchArrayBuffer());let y=o.detail_noise,v=new Mr({url:y,queryParameters:{format:"bin"}});f.push(v.fetchArrayBuffer());let C=o.weather,T=new Mr({url:C,queryParameters:{format:"png"}});f.push(T.fetchImage());let S=o.mark_noise,w=new Mr({url:S,queryParameters:{format:"png"}});return f.push(w.fetchImage()),Promise.all(f)}function v$(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 y=this;AJi(f).then(function(v){let C=y.getUniforms(x,m.scene.context,v);y._postProcess=m.scene.postProcessStages.add(new Sa({fragmentShader:RJi,uniforms:C}))}).catch(function(v){console.log(v)})}v$.prototype.getModelMatrix=function(o){if(this._modelMatrixDirty){let f=o.cartographicPosition,m=o.height,x=o.size,y=Ee.fromScale(x),v=_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.x,f.y));Ee.multiply(v,y,y);let C=Ee.fromTranslation(new Z(0,0,m));Ee.multiply(C,y,y),this._modelMatrixDirty=!1,this._modelMatrix=y}return this._modelMatrix};v$.prototype.getUniforms=function(o,f,m){let x=new Ee,y=new Ee,v=new Ee,C=0,T=null,S=null,w=null,E=null,L=this;return{u_inversModelView:function(){let I=L.getModelMatrix(L._coordinate);return Ee.multiply(o,I,x),Ee.inverse(x,y),y},u_inversModelMatrix:function(){let I=L.getModelMatrix(L._coordinate);return Ee.inverse(I,v),v},u_time:function(){return C+=.001,C},detail_map_high:function(){return S||(S=eqe(f,m[0],32,!1)),S},detail_map:function(){return T||(T=eqe(f,m[1],128,!0)),T},weather_map:function(){return w||(w=tqe(f,m[2],512)),w},mark_noise:function(){return E||(E=tqe(f,m[3],512)),E},wind_speed:function(){return L._cloudParam.wind_speed},wind_direction:function(){let I=new rt;return I.x=L._cloudParam.wind_direction_x,I.z=L._cloudParam.wind_direction_z,I},global_coverage:function(){return L._cloudParam.global_coverage},global_density:function(){return L._cloudParam.global_density},global_lightAbsorption:function(){return L._cloudParam.global_lightAbsorption},cloud_in_scatter:function(){return L._cloudParam.cloud_in_scatter},cloud_out_scatter:function(){return L._cloudParam.cloud_out_scatter},cloud_scatter_ratio:function(){return L._cloudParam.cloud_scatter_ratio},cloud_silver_intensity:function(){return L._cloudParam.cloud_silver_intensity},cloud_silver_exponent:function(){return L._cloudParam.cloud_silver_exponent},cloud_out_scatter_ambient:function(){return L._cloudParam.cloud_out_scatter_ambient},wind_animation:function(){return L._cloudParam.wind_animation},use_blue_noise:function(){return L._cloudParam.use_blue_noise},use_quarter_update:function(){return L._cloudParam.use_quarter_update},highlightScale:function(){return L._cloudParam.highlightScale},backScale:function(){return L._cloudParam.backScale},attenuationScale:function(){return L._cloudParam.attenuationScale}}};Object.defineProperties(v$.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}}});v$.prototype.update=function(){F(this._postProcess)&&this._enable&&(this._viewer.camera.positionCartographic.height>5e5?this._postProcess.enabled=!1:this._postProcess.enabled=!0)};var Zde=v$,iqe={baseShader:{shader:` + `;function eqe(o,f,m,x){let y=new Uint8Array(f),v=Math.ceil(Math.sqrt(y.length));return new wDe({width:m,height:m,depth:m,context:o,pixelFormat:x?zr.RGBA:zr.RGB,pixelDataType:un.UNSIGNED_BYTE,source:{width:v,height:v,arrayBufferView:y},sampler:new Yo({wrapR:Xn.MIRRORED_REPEAT,wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function tqe(o,f,m){let x=f;return new Rn({context:o,source:x,sampler:new Yo({wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function AJi(o){let f=[],m=o.detail_noise_high,x=new Mr({url:m,queryParameters:{format:"bin"}});f.push(x.fetchArrayBuffer());let y=o.detail_noise,v=new Mr({url:y,queryParameters:{format:"bin"}});f.push(v.fetchArrayBuffer());let C=o.weather,T=new Mr({url:C,queryParameters:{format:"png"}});f.push(T.fetchImage());let S=o.mark_noise,w=new Mr({url:S,queryParameters:{format:"png"}});return f.push(w.fetchImage()),Promise.all(f)}function v$(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 y=this;AJi(f).then(function(v){let C=y.getUniforms(x,m.scene.context,v);y._postProcess=m.scene.postProcessStages.add(new Sa({fragmentShader:RJi,uniforms:C}))}).catch(function(v){console.log(v)})}v$.prototype.getModelMatrix=function(o){if(this._modelMatrixDirty){let f=o.cartographicPosition,m=o.height,x=o.size,y=Ee.fromScale(x),v=_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.x,f.y));Ee.multiply(v,y,y);let C=Ee.fromTranslation(new Z(0,0,m));Ee.multiply(C,y,y),this._modelMatrixDirty=!1,this._modelMatrix=y}return this._modelMatrix};v$.prototype.getUniforms=function(o,f,m){let x=new Ee,y=new Ee,v=new Ee,C=0,T=null,S=null,w=null,E=null,L=this;return{u_inversModelView:function(){let I=L.getModelMatrix(L._coordinate);return Ee.multiply(o,I,x),Ee.inverse(x,y),y},u_inversModelMatrix:function(){let I=L.getModelMatrix(L._coordinate);return Ee.inverse(I,v),v},u_time:function(){return C+=.001,C},detail_map_high:function(){return S||(S=eqe(f,m[0],32,!1)),S},detail_map:function(){return T||(T=eqe(f,m[1],128,!0)),T},weather_map:function(){return w||(w=tqe(f,m[2],512)),w},mark_noise:function(){return E||(E=tqe(f,m[3],512)),E},wind_speed:function(){return L._cloudParam.wind_speed},wind_direction:function(){let I=new rt;return I.x=L._cloudParam.wind_direction_x,I.z=L._cloudParam.wind_direction_z,I},global_coverage:function(){return L._cloudParam.global_coverage},global_density:function(){return L._cloudParam.global_density},global_lightAbsorption:function(){return L._cloudParam.global_lightAbsorption},cloud_in_scatter:function(){return L._cloudParam.cloud_in_scatter},cloud_out_scatter:function(){return L._cloudParam.cloud_out_scatter},cloud_scatter_ratio:function(){return L._cloudParam.cloud_scatter_ratio},cloud_silver_intensity:function(){return L._cloudParam.cloud_silver_intensity},cloud_silver_exponent:function(){return L._cloudParam.cloud_silver_exponent},cloud_out_scatter_ambient:function(){return L._cloudParam.cloud_out_scatter_ambient},wind_animation:function(){return L._cloudParam.wind_animation},use_blue_noise:function(){return L._cloudParam.use_blue_noise},use_quarter_update:function(){return L._cloudParam.use_quarter_update},highlightScale:function(){return L._cloudParam.highlightScale},backScale:function(){return L._cloudParam.backScale},attenuationScale:function(){return L._cloudParam.attenuationScale}}};Object.defineProperties(v$.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}}});v$.prototype.update=function(){F(this._postProcess)&&this._enable&&(this._viewer.camera.positionCartographic.height>5e5?this._postProcess.enabled=!1:this._postProcess.enabled=!0)};var Zde=v$,iqe={baseShader:{shader:` const int textureSize = 512; // Render //const vec3 backgroundColor = vec3(0.0); @@ -23034,6 +23034,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; @@ -23217,15 +23247,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){ @@ -23253,6 +23284,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) @@ -23319,33 +23383,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; @@ -23402,7 +23485,7 @@ vec4 backgroundColor = texture(colorTexture, v_textureCoordinates); vec3 col = Render(ro, rd, backgroundColor.rgb); out_FragColor = vec4(col, 1.0); - }`,uniforms:{iWaterTexture:function(){return E.waterVideoTexture?(E.waterVideoTexture.sampler=$A,E.waterVideoTexture):v},iWaterImageTexture:function(){return E.waterImageTexture?(E.waterImageTexture.sampler=$A,E.waterImageTexture):v},iFlowImageTexture:function(){return E.flowImageTexture?(E.flowImageTexture.sampler=$A,E.flowImageTexture):v},iArrowTexture:function(){return E.arrowTexture?(E.arrowTexture.sampler=$A,E.arrowTexture):v},iFlowEnabled:function(){return E.flowEnabled},iTerrainTexture:function(){return E.terrainTexture?(E.terrainTexture.sampler=$A,E.terrainTexture):v},iWaterReflectTexture:function(){return A&&A.reflexImage?(A.reflexImage.sampler=$A,A.reflexImage):v},iWaterColorTexture:function(){return M?(M.sampler=$A,M):v},iNormalWater:function(){return S||v},iNormalWater1:function(){return w||v},iEnabelTerrainTexture:function(){return!0},u_size:function(){return P},u_height:function(){return x},iTime:function(){return V++,V*.03},u_transformDirectionViewToModel:function(){let N=m.uniformState.inverseView;return Ee.multiplyTransformation(T,N,new Ee)},u_cameraPositionUv:function(){let N=f.frameState.camera.positionWC;return Ee.multiplyByPoint(T,N,new Z)},u_cameraDirection:function(){return f.frameState.camera.directionWC},u_sunPositionUv:function(){let N=m.uniformState.sunPositionWC;return Ee.multiplyByPoint(T,N,new Z)},u_waterColor:function(){return E.waterColor},u_debug:function(){return E.debug},u_waterHeightLevelEnabled:function(){return E.waterHeightLevelEnabled},u_waterLevelHeights:function(){return I},u_waterLevelColors:function(){return R},u_alphaByDepth:function(){return E.alphaByDepth},u_bottomHeight:function(){return E._bottomHeight},u_topHeight:function(){return E._topHeight},u_offsetBottomHeight:function(){return E._offsetBottomHeight},u_offsetTopHeight:function(){return E._offsetTopHeight}}});let D=new Vf({inputPreviousStageTexture:!1,stages:[G],name:`${o}watereffect`});f.postProcessStages.add(D),this.waterProcess=D};qM.prototype.calcWaterRectSize=function(o,f){let m=o.west,x=o.east,y=o.south,v=o.north,C=_Ce(m,y,0,f),T=_Ce(x,y,0,f),S=_Ce(m,v,0,f),w=Z.magnitude(Z.subtract(T,C,new Z)),E=Z.magnitude(Z.subtract(S,C,new Z));return new rt(w,E)};qM.prototype.generateWaterReflectMap=function(){let o=this.scene,f=Gt.clone(this.centerPosition,new Gt);f.height=10;let m=Gt.toCartesian(f,yi.WGS84,new Z),x=_r.eastNorthUpToFixedFrame(m,yi.WGS84,new Ee);return new SNe({scene:o,waterCenter:m,waterMatrix:x})};qM.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`,y=`${this.flowUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,v=this;n8i([x,y]).then(C=>{v.waterImageTexture?f===v.currentIndex?(v.waterImageTexture.copyFrom({source:C[0]}),v.flowImageTexture.copyFrom({source:C[1]})):console.log("-------lost-----"):(v.waterImageTexture=new Rn({context:o,source:C[0],sampler:$A}),v.flowImageTexture=new Rn({context:o,source:C[1],sampler:t8i}))})}};qM.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)};qM.fromUrl=async function(o,f){let m=o.context,x=[oa("Assets/Textures/water/caustics.png"),oa("Assets/Textures/water/Water_1_M_Normal.jpg"),oa("Assets/Textures/water/Water_2_M_Normal.jpg"),oa("Assets/Textures/water/arrow.png"),f.terrainUrl],[y,v,C,T,S]=await r8i(x,m);return new qM({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:S,waterColorTexure:y,normalWaterTexture:v,normalWaterTexture1:C,arrowTexture:T,show:!0,waterHeightLevels:f.waterHeightLevels,alphaByDepth:f.alphaByDepth},o)};Object.defineProperties(qM.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 cD=qM,Rgt=`uniform sampler2D u_depthTexture; + }`,uniforms:{iWaterTexture:function(){return E.waterVideoTexture?(E.waterVideoTexture.sampler=$A,E.waterVideoTexture):v},iWaterImageTexture:function(){return E.waterImageTexture?(E.waterImageTexture.sampler=$A,E.waterImageTexture):v},iFlowImageTexture:function(){return E.flowImageTexture?(E.flowImageTexture.sampler=$A,E.flowImageTexture):v},iArrowTexture:function(){return E.arrowTexture?(E.arrowTexture.sampler=$A,E.arrowTexture):v},iFlowEnabled:function(){return E.flowEnabled},iTerrainTexture:function(){return E.terrainTexture?(E.terrainTexture.sampler=$A,E.terrainTexture):v},iWaterReflectTexture:function(){return A&&A.reflexImage?(A.reflexImage.sampler=$A,A.reflexImage):v},iWaterColorTexture:function(){return M?(M.sampler=$A,M):v},iNormalWater:function(){return S||v},iNormalWater1:function(){return w||v},iEnabelTerrainTexture:function(){return!0},u_size:function(){return P},u_height:function(){return x},iTime:function(){return V+=.01,V},u_transformDirectionViewToModel:function(){let N=m.uniformState.inverseView;return Ee.multiplyTransformation(T,N,new Ee)},u_cameraPositionUv:function(){let N=f.frameState.camera.positionWC;return Ee.multiplyByPoint(T,N,new Z)},u_cameraDirection:function(){return f.frameState.camera.directionWC},u_sunPositionUv:function(){let N=m.uniformState.sunPositionWC;return Ee.multiplyByPoint(T,N,new Z)},u_waterColor:function(){return E.waterColor},u_debug:function(){return E.debug},u_waterHeightLevelEnabled:function(){return E.waterHeightLevelEnabled},u_waterLevelHeights:function(){return I},u_waterLevelColors:function(){return R},u_alphaByDepth:function(){return E.alphaByDepth},u_bottomHeight:function(){return E._bottomHeight},u_topHeight:function(){return E._topHeight},u_offsetBottomHeight:function(){return E._offsetBottomHeight},u_offsetTopHeight:function(){return E._offsetTopHeight}}});let D=new Vf({inputPreviousStageTexture:!1,stages:[G],name:`${o}watereffect`});f.postProcessStages.add(D),this.waterProcess=D};qM.prototype.calcWaterRectSize=function(o,f){let m=o.west,x=o.east,y=o.south,v=o.north,C=_Ce(m,y,0,f),T=_Ce(x,y,0,f),S=_Ce(m,v,0,f),w=Z.magnitude(Z.subtract(T,C,new Z)),E=Z.magnitude(Z.subtract(S,C,new Z));return new rt(w,E)};qM.prototype.generateWaterReflectMap=function(){let o=this.scene,f=Gt.clone(this.centerPosition,new Gt);f.height=10;let m=Gt.toCartesian(f,yi.WGS84,new Z),x=_r.eastNorthUpToFixedFrame(m,yi.WGS84,new Ee);return new SNe({scene:o,waterCenter:m,waterMatrix:x})};qM.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`,y=`${this.flowUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,v=this;n8i([x,y]).then(C=>{v.waterImageTexture?f===v.currentIndex?(v.waterImageTexture.copyFrom({source:C[0]}),v.flowImageTexture.copyFrom({source:C[1]})):console.log("-------lost-----"):(v.waterImageTexture=new Rn({context:o,source:C[0],sampler:$A}),v.flowImageTexture=new Rn({context:o,source:C[1],sampler:t8i}))})}};qM.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)};qM.fromUrl=async function(o,f){let m=o.context,x=[oa("Assets/Textures/water/caustics.png"),oa("Assets/Textures/water/Water_1_M_Normal.jpg"),oa("Assets/Textures/water/Water_2_M_Normal.jpg"),oa("Assets/Textures/water/arrow.png"),f.terrainUrl],[y,v,C,T,S]=await r8i(x,m);return new qM({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:S,waterColorTexure:y,normalWaterTexture:v,normalWaterTexture1:C,arrowTexture:T,show:!0,waterHeightLevels:f.waterHeightLevels,alphaByDepth:f.alphaByDepth},o)};Object.defineProperties(qM.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 cD=qM,Rgt=`uniform sampler2D u_depthTexture; in vec2 v_textureCoordinates; @@ -23709,7 +23792,7 @@ </ul> `}var Z8i=[{text:"Highlight",value:xI.HIGHLIGHT},{text:"Replace",value:xI.REPLACE},{text:"Mix",value:xI.MIX}],mqe=new Xe(1,1,0,.4),O8i=new Xe,Loe=new Xe;function Ng(o,f){let m=this,x=o.canvas;this._eventHandler=new Lr(x),this._scene=o,this._performanceContainer=f,this._canvas=x,this._performanceDisplay=new Xq({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,sr.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=sr.observable({}),this.properties=[],sr.defineProperty(this,"properties",function(){let oe=[],ce=m._properties();for(let pe in ce)ce.hasOwnProperty(pe)&&oe.push(pe);return oe});let y=sr.observable();sr.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return y()},set:function(oe){y(oe),F(m._tileset)&&(m._tileset.dynamicScreenSpaceError=oe)}}),this.dynamicScreenSpaceError=!1;let v=sr.observable();sr.defineProperty(this,"colorBlendMode",{get:function(){return v()},set:function(oe){v(oe),F(m._tileset)&&(m._tileset.colorBlendMode=oe,m._scene.requestRender())}}),this.colorBlendMode=xI.HIGHLIGHT;let C=sr.observable(),T=sr.observable();sr.defineProperty(this,"picking",{get:function(){return T()},set:function(oe){T(oe),oe?m._eventHandler.setInputAction(function(ce){let pe=o.pick(ce.endPosition);if(pe instanceof Ss?(m.feature=pe,m.tile=pe.content.tile):F(pe)&&F(pe.content)?(m.feature=void 0,m.tile=pe.content.tile):(m.feature=void 0,m.tile=void 0),!!F(m._tileset)){if(C&&F(pe)&&F(pe.content)){let ue;o.pickPositionSupported&&(ue=o.pickPosition(ce.endPosition),F(ue)&&(m._tileset.debugPickPosition=ue)),m._tileset.debugPickedTile=pe.content.tile}else m._tileset.debugPickedTile=void 0;m._scene.requestRender()}},Si.MOUSE_MOVE):(m.feature=void 0,m.tile=void 0,m._eventHandler.removeInputAction(Si.MOUSE_MOVE))}}),this.picking=!0;let S=sr.observable();sr.defineProperty(this,"colorize",{get:function(){return S()},set:function(oe){S(oe),F(m._tileset)&&(m._tileset.debugColorizeTiles=oe,m._scene.requestRender())}}),this.colorize=!1;let w=sr.observable();sr.defineProperty(this,"wireframe",{get:function(){return w()},set:function(oe){w(oe),F(m._tileset)&&(m._tileset.debugWireframe=oe,m._scene.requestRender())}}),this.wireframe=!1;let E=sr.observable();sr.defineProperty(this,"showBoundingVolumes",{get:function(){return E()},set:function(oe){E(oe),F(m._tileset)&&(m._tileset.debugShowBoundingVolume=oe,m._scene.requestRender())}}),this.showBoundingVolumes=!1;let L=sr.observable();sr.defineProperty(this,"showContentBoundingVolumes",{get:function(){return L()},set:function(oe){L(oe),F(m._tileset)&&(m._tileset.debugShowContentBoundingVolume=oe,m._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let I=sr.observable();sr.defineProperty(this,"showRequestVolumes",{get:function(){return I()},set:function(oe){I(oe),F(m._tileset)&&(m._tileset.debugShowViewerRequestVolume=oe,m._scene.requestRender())}}),this.showRequestVolumes=!1;let R=sr.observable();sr.defineProperty(this,"freezeFrame",{get:function(){return R()},set:function(oe){R(oe),F(m._tileset)&&(m._tileset.debugFreezeFrame=oe,m._scene.debugShowFrustumPlanes=oe,m._scene.requestRender())}}),this.freezeFrame=!1,sr.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return C()},set:function(oe){C(oe),F(m._tileset)&&(m._tileset.debugPickedTileLabelOnly=oe,m._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let P=sr.observable();sr.defineProperty(this,"showGeometricError",{get:function(){return P()},set:function(oe){P(oe),F(m._tileset)&&(m._tileset.debugShowGeometricError=oe,m._scene.requestRender())}}),this.showGeometricError=!1;let A=sr.observable();sr.defineProperty(this,"showRenderingStatistics",{get:function(){return A()},set:function(oe){A(oe),F(m._tileset)&&(m._tileset.debugShowRenderingStatistics=oe,m._scene.requestRender())}}),this.showRenderingStatistics=!1;let M=sr.observable();sr.defineProperty(this,"showMemoryUsage",{get:function(){return M()},set:function(oe){M(oe),F(m._tileset)&&(m._tileset.debugShowMemoryUsage=oe,m._scene.requestRender())}}),this.showMemoryUsage=!1;let V=sr.observable();sr.defineProperty(this,"showUrl",{get:function(){return V()},set:function(oe){V(oe),F(m._tileset)&&(m._tileset.debugShowUrl=oe,m._scene.requestRender())}}),this.showUrl=!1;let G=sr.observable();sr.defineProperty(this,"maximumScreenSpaceError",{get:function(){return G()},set:function(oe){oe=Number(oe),isNaN(oe)||(G(oe),F(m._tileset)&&(m._tileset.maximumScreenSpaceError=oe))}}),this.maximumScreenSpaceError=16;let D=sr.observable();sr.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return D()},set:function(oe){oe=Number(oe),isNaN(oe)||(D(oe),F(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorDensity=oe))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,sr.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(D(),1/6)},set:function(oe){let ce=Math.pow(oe,6);D(ce),F(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorDensity=ce)}});let N=sr.observable();sr.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return N()},set:function(oe){oe=Number(oe),isNaN(oe)||(N(oe),F(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorFactor=oe))}}),this.dynamicScreenSpaceErrorFactor=24;let k=N8i(this),U=sr.observable();sr.defineProperty(this,"pickActive",{get:function(){return U()},set:function(oe){U(oe),oe?m._eventHandler.setInputAction(k,Si.LEFT_CLICK):m._eventHandler.removeInputAction(Si.LEFT_CLICK)}});let B=sr.observable();sr.defineProperty(this,"pointCloudShading",{get:function(){return B()},set:function(oe){B(oe),F(m._tileset)&&(m._tileset.pointCloudShading.attenuation=oe)}}),this.pointCloudShading=!1;let Y=sr.observable();sr.defineProperty(this,"geometricErrorScale",{get:function(){return Y()},set:function(oe){oe=Number(oe),isNaN(oe)||(Y(oe),F(m._tileset)&&(m._tileset.pointCloudShading.geometricErrorScale=oe))}}),this.geometricErrorScale=1;let J=sr.observable();sr.defineProperty(this,"maximumAttenuation",{get:function(){return J()},set:function(oe){oe=Number(oe),isNaN(oe)||(J(oe),F(m._tileset)&&(m._tileset.pointCloudShading.maximumAttenuation=oe===0?void 0:oe))}}),this.maximumAttenuation=0;let K=sr.observable();sr.defineProperty(this,"baseResolution",{get:function(){return K()},set:function(oe){oe=Number(oe),isNaN(oe)||(K(oe),F(m._tileset)&&(m._tileset.pointCloudShading.baseResolution=oe===0?void 0:oe))}}),this.baseResolution=0;let z=sr.observable();sr.defineProperty(this,"eyeDomeLighting",{get:function(){return z()},set:function(oe){z(oe),F(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLighting=oe)}}),this.eyeDomeLighting=!1;let j=sr.observable();sr.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return j()},set:function(oe){oe=Number(oe),isNaN(oe)||(j(oe),F(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLightingStrength=oe))}}),this.eyeDomeLightingStrength=1;let q=sr.observable();sr.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return q()},set:function(oe){oe=Number(oe),isNaN(oe)||(q(oe),F(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLightingRadius=oe))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let O=sr.observable();sr.defineProperty(this,"skipLevelOfDetail",{get:function(){return O()},set:function(oe){O(oe),F(m._tileset)&&(m._tileset.skipLevelOfDetail=oe)}}),this.skipLevelOfDetail=!0;let te=sr.observable();sr.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return te()},set:function(oe){oe=Number(oe),isNaN(oe)||(te(oe),F(m._tileset)&&(m._tileset.skipScreenSpaceErrorFactor=oe))}}),this.skipScreenSpaceErrorFactor=16;let ie=sr.observable();sr.defineProperty(this,"baseScreenSpaceError",{get:function(){return ie()},set:function(oe){oe=Number(oe),isNaN(oe)||(ie(oe),F(m._tileset)&&(m._tileset.baseScreenSpaceError=oe))}}),this.baseScreenSpaceError=1024;let re=sr.observable();sr.defineProperty(this,"skipLevels",{get:function(){return re()},set:function(oe){oe=Number(oe),isNaN(oe)||(re(oe),F(m._tileset)&&(m._tileset.skipLevels=oe))}}),this.skipLevels=1;let ee=sr.observable();sr.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return ee()},set:function(oe){ee(oe),F(m._tileset)&&(m._tileset.immediatelyLoadDesiredLevelOfDetail=oe)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let ae=sr.observable();sr.defineProperty(this,"loadSiblings",{get:function(){return ae()},set:function(oe){ae(oe),F(m._tileset)&&(m._tileset.loadSiblings=oe)}}),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()}),F(this._tileset)||Qgt(this,!0)}Object.defineProperties(Ng.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 Z8i}},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,F(o)){this._properties(o.properties);let f=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],m=f.length;for(let y=0;y<m;++y){let v=f[y];this[v]=this[v]}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=U6(o,!1),this._pickStatisticsText=U6(o,!0),this._resourceCacheStatisticsText=qgt(),Qgt(this,!1)}},feature:{get:function(){return this._feature},set:function(o){if(this._feature===o)return;let f=this._feature;F(f)&&!f.content.isDestroyed()&&(!this.colorize&&F(this._style)?f.color=F(this._style.color)?this._style.color.evaluateColor(f,O8i):Xe.WHITE:f.color=Loe,this._scene.requestRender()),F(o)&&(Xe.clone(o.color,Loe),o.color=mqe,this._scene.requestRender()),this._feature=o}},tile:{get:function(){return this._tile},set:function(o){if(this._tile===o)return;let f=this._tile;F(f)&&!f.isDestroyed()&&!oSe(f.content)&&(f.color=Loe,this._scene.requestRender()),F(o)&&!oSe(o.content)&&(Xe.clone(o.color,Loe),o.color=mqe,this._scene.requestRender()),this._tile=o}}});function oSe(o){if(!F(o))return!1;if(o.featuresLength>0)return!0;let f=o.innerContents;if(F(f)){let m=f.length;for(let x=0;x<m;++x)if(!oSe(f[x]))return!1;return!0}return!1}Ng.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};Ng.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Ng.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};Ng.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Ng.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};Ng.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};Ng.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};Ng.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};Ng.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};Ng.prototype.trimTilesCache=function(){F(this._tileset)&&this._tileset.trimLoadedTiles()};Ng.prototype.compileStyle=function(){let o=this._tileset;if(!(!F(o)||this.styleString===JSON.stringify(o.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new OS(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(f){this._editorError=f.toString()}this.feature=this._feature,this.tile=this._tile}};Ng.prototype.styleEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,y=m.selectionEnd,v=y,C=m.value.slice(x,y).split(` `),T=C.length,S;if(f.shiftKey)for(S=0;S<T;++S)C[S][0]===" "&&(C[S][1]===" "?(C[S]=C[S].substr(2),v-=2):(C[S]=C[S].substr(1),v-=1));else for(S=0;S<T;++S)C[S]=` ${C[S]}`,v+=2;let w=C.join(` -`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileStyle();return!0};Ng.prototype._update=function(){let o=this._tileset;if(this.performance&&this._performanceDisplay.update(),F(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=U6(o,!1),this._pickStatisticsText=U6(o,!0),this._resourceCacheStatisticsText=qgt())};Ng.prototype.isDestroyed=function(){return!1};Ng.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};Ng.getStatistics=U6;var GNe=Ng;function Ude(o,f){o=Qh(o);let m=document.createElement("div"),x=document.createElement("div");x.setAttribute("data-bind","visible: performance");let y=new GNe(f,x);this._viewModel=y,this._container=o,this._element=m;let v=document.createElement("div");v.textContent="3D Tiles Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleInspector"),m.appendChild(v),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 T=sI.createSection,S=sI.createCheckbox,w=sI.createRangeInput,E=sI.createButton,L=T(C,"Tileset","tilesetVisible","toggleTileset"),I=T(C,"Display","displayVisible","toggleDisplay"),R=T(C,"Update","updateVisible","toggleUpdate"),P=T(C,"Logging","loggingVisible","toggleLogging"),A=T(C,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),M=T(C,"Style","styleVisible","toggleStyle"),V=T(C,"Optimization","optimizationVisible","toggleOptimization"),G=document.createElement("div");G.className="field-group";let D=document.createElement("label");D.className="field-label",D.appendChild(document.createTextNode("Properties: "));let N=document.createElement("div");N.setAttribute("data-bind","text: properties"),G.appendChild(D),G.appendChild(N),L.appendChild(G),L.appendChild(E("Pick Tileset","togglePickTileset","pickActive")),L.appendChild(E("Trim Tiles Cache","trimTilesCache")),L.appendChild(S("Enable Picking","picking")),I.appendChild(S("Colorize","colorize"));let k=I.appendChild(S("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),U=document.createElement("p");U.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),U.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),U.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",k.appendChild(U),I.appendChild(S("Bounding Volumes","showBoundingVolumes")),I.appendChild(S("Content Volumes","showContentBoundingVolumes")),I.appendChild(S("Request Volumes","showRequestVolumes")),I.appendChild(S("Point Cloud Shading","pointCloudShading"));let B=document.createElement("div");B.setAttribute("data-bind","visible: pointCloudShading"),B.appendChild(w("Geometric Error Scale","geometricErrorScale",0,2,.01)),B.appendChild(w("Maximum Attenuation","maximumAttenuation",0,32,1)),B.appendChild(w("Base Resolution","baseResolution",0,1,.01)),B.appendChild(S("Eye Dome Lighting (EDL)","eyeDomeLighting")),I.appendChild(B);let Y=document.createElement("div");Y.setAttribute("data-bind","visible: eyeDomeLighting"),Y.appendChild(w("EDL Strength","eyeDomeLightingStrength",0,2,.1)),Y.appendChild(w("EDL Radius","eyeDomeLightingRadius",0,4,.1)),B.appendChild(Y),R.appendChild(S("Freeze Frame","freezeFrame")),R.appendChild(S("Dynamic Screen Space Error","dynamicScreenSpaceError"));let J=document.createElement("div");J.appendChild(w("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),R.appendChild(J);let K=document.createElement("div");K.setAttribute("data-bind","visible: dynamicScreenSpaceError"),K.appendChild(w("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),K.appendChild(w("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),R.appendChild(K),P.appendChild(S("Performance","performance")),P.appendChild(x),P.appendChild(S("Statistics","showStatistics"));let z=document.createElement("div");z.className="cesium-3dTilesInspector-statistics",z.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),P.appendChild(z),P.appendChild(S("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(S("Resource Cache Statistics","showResourceCacheStatistics"));let q=document.createElement("div");q.className="cesium-3dTilesInspector-statistics",q.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),P.appendChild(q);let O=document.createElement("div");M.appendChild(O),O.appendChild(document.createTextNode("Color Blend Mode: "));let te=document.createElement("select");te.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),O.appendChild(te);let ie=document.createElement("textarea");ie.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),O.className="cesium-cesiumInspector-styleEditor",O.appendChild(ie);let re=E("Compile (Ctrl+Enter)","compileStyle");O.appendChild(re);let ee=document.createElement("div");ee.className="cesium-cesiumInspector-error",ee.setAttribute("data-bind","text: editorError"),O.appendChild(ee),A.appendChild(S("Show Picked Only","showOnlyPickedTileDebugLabel")),A.appendChild(S("Geometric Error","showGeometricError")),A.appendChild(S("Rendering Statistics","showRenderingStatistics")),A.appendChild(S("Memory Usage (MB)","showMemoryUsage")),A.appendChild(S("Url","showUrl")),V.appendChild(S("Skip Tile LODs","skipLevelOfDetail"));let ae=document.createElement("div");ae.appendChild(w("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),V.appendChild(ae);let oe=document.createElement("div");oe.appendChild(w("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),V.appendChild(oe);let ce=document.createElement("div");ce.appendChild(w("Min. levels to skip","skipLevels",0,10,1)),V.appendChild(ce),V.appendChild(S("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),V.appendChild(S("Load siblings of visible tiles","loadSiblings")),sr.applyBindings(y,m)}Object.defineProperties(Ude.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Ude.prototype.isDestroyed=function(){return!1};Ude.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var FNe=Ude;function X8i(o){let f;if(F(o)){f="Command Statistics";let m=o.commandsInFrustums;for(let x in m)if(m.hasOwnProperty(x)){let y=parseInt(x,10),v;if(y===7)v="1, 2 and 3";else{let C=[];for(let T=2;T>=0;T--){let S=Math.pow(2,T);y>=S&&(C.push(T+1),y-=S)}v=C.reverse().join(" and ")}f+=`<br> ${m[x]} in frustum ${v}`}f+=`<br>Total: ${o.totalCommands}`}return f}function aSe(o,f,m){let x=Math.min(m,f);return x=Math.max(x,o),x}var k8i=new Ma,U8i=new Z;function T$(o,f){let m=this,x=o.canvas,y=new Lr(x);this._eventHandler=y,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 v=this._scene.globe;v.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="",sr.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=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._toggleGeneral=Il(function(){m.generalVisible=!m.generalVisible}),this._togglePrimitives=Il(function(){m.primitivesVisible=!m.primitivesVisible}),this._toggleTerrain=Il(function(){m.terrainVisible=!m.terrainVisible}),this._frustumsSubscription=sr.getObservable(this,"frustums").subscribe(function(w){m._scene.debugShowFrustums=w,m._scene.requestRender()}),this._frustumPlanesSubscription=sr.getObservable(this,"frustumPlanes").subscribe(function(w){m._scene.debugShowFrustumPlanes=w,m._scene.requestRender()}),this._performanceSubscription=sr.getObservable(this,"performance").subscribe(function(w){w?m._performanceDisplay=new Xq({container:m._performanceContainer}):m._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=Il(function(){return m._primitive.debugShowBoundingVolume=m.primitiveBoundingSphere,m._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=sr.getObservable(this,"primitiveBoundingSphere").subscribe(function(){m._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=Il(function(){if(m.primitiveReferenceFrame){let w=m._primitive.modelMatrix;m._modelMatrixPrimitive=new WDe({modelMatrix:w}),m._scene.primitives.add(m._modelMatrixPrimitive)}else F(m._modelMatrixPrimitive)&&(m._scene.primitives.remove(m._modelMatrixPrimitive),m._modelMatrixPrimitive=void 0);return m._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=sr.getObservable(this,"primitiveReferenceFrame").subscribe(function(){m._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=Il(function(){return m.filterPrimitive?m._scene.debugCommandFilter=function(w){return F(m._modelMatrixPrimitive)&&w.owner===m._modelMatrixPrimitive._primitive?!0:F(m._primitive)?w.owner===m._primitive||w.owner===m._primitive._billboardCollection||w.owner.primitive===m._primitive:!1}:m._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=sr.getObservable(this,"filterPrimitive").subscribe(function(){m._doFilterPrimitive(),m._scene.requestRender()}),this._wireframeSubscription=sr.getObservable(this,"wireframe").subscribe(function(w){v._surface.tileProvider._debug.wireframe=w,m._scene.requestRender()}),this._depthFrustumSubscription=sr.getObservable(this,"depthFrustum").subscribe(function(w){m._scene.debugShowDepthFrustum=w,m._scene.requestRender()}),this._incrementDepthFrustum=Il(function(){let w=m.depthFrustum+1;return m.depthFrustum=aSe(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._decrementDepthFrustum=Il(function(){let w=m.depthFrustum-1;return m.depthFrustum=aSe(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._suspendUpdatesSubscription=sr.getObservable(this,"suspendUpdates").subscribe(function(w){v._surface._debug.suspendLodUpdate=w,w||(m.filterTile=!1)});let C;this._showTileCoordinates=Il(function(){return m.tileCoordinates&&!F(C)?C=o.imageryLayers.addImageryProvider(new f$({tilingScheme:o.terrainProvider.tilingScheme})):!m.tileCoordinates&&F(C)&&(o.imageryLayers.remove(C),C=void 0),!0}),this._tileCoordinatesSubscription=sr.getObservable(this,"tileCoordinates").subscribe(function(){m._showTileCoordinates(),m._scene.requestRender()}),this._tileBoundingSphereSubscription=sr.getObservable(this,"tileBoundingSphere").subscribe(function(){m._showTileBoundingSphere(),m._scene.requestRender()}),this._showTileBoundingSphere=Il(function(){return m.tileBoundingSphere?v._surface.tileProvider._debug.boundingSphereTile=m._tile:v._surface.tileProvider._debug.boundingSphereTile=void 0,m._scene.requestRender(),!0}),this._doFilterTile=Il(function(){return m.filterTile?(m.suspendUpdates=!0,v._surface._tilesToRender=[],F(m._tile)&&m._tile.renderable&&v._surface._tilesToRender.push(m._tile)):m.suspendUpdates=!1,!0}),this._filterTileSubscription=sr.getObservable(this,"filterTile").subscribe(function(){m.doFilterTile(),m._scene.requestRender()});function T(w){let E=m._scene.pick({x:w.position.x,y:w.position.y});F(E)&&(m.primitive=F(E.collection)?E.collection:E.primitive),m._scene.requestRender(),m.pickPrimitiveActive=!1}this._pickPrimitive=Il(function(){m.pickPrimitiveActive=!m.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=sr.getObservable(this,"pickPrimitiveActive").subscribe(function(w){w?y.setInputAction(T,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)});function S(w){let E,L=v.ellipsoid,I=m._scene.camera.getPickRay(w.position,k8i),R=v.pick(I,m._scene,U8i);if(F(R)){let P=L.cartesianToCartographic(R),A=v._surface.tileProvider._tilesToRenderByTextureCount;for(let M=0;!E&&M<A.length;++M){let V=A[M];if(F(V))for(let G=0;!E&&G<V.length;++G){let D=V[G];vi.contains(D.rectangle,P)&&(E=D)}}}m.tile=E,m.pickTileActive=!1}this._pickTile=Il(function(){m.pickTileActive=!m.pickTileActive}),this._pickTileActiveSubscription=sr.getObservable(this,"pickTileActive").subscribe(function(w){w?y.setInputAction(S,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)}),this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()})}Object.defineProperties(T$.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 Il(function(){o.tile=o.tile.parent})}},selectNW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northwestChild})}},selectNE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northeastChild})}},selectSW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southwestChild})}},selectSE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(o){let f=this._primitive;o!==f&&(this.hasPickedPrimitive=!0,F(f)&&(f.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,F(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(F(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;F(m)&&F(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}}});T$.prototype._update=function(){this.frustums&&(this.frustumStatisticText=X8i(this._scene.debugFrustumStatistics));let o=this._scene.numberOfFrustums;this._numberOfFrustums=o,this.depthFrustum=aSe(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}`};T$.prototype.isDestroyed=function(){return!1};T$.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(),yr(this)};var DNe=T$;function Bde(o,f){o=Qh(o);let m=document.createElement("div"),x=new DNe(f,m);this._viewModel=x,this._container=o;let y=document.createElement("div");this._element=y;let v=document.createElement("div");v.textContent="Cesium Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleDropDown"),y.appendChild(v),y.className="cesium-cesiumInspector",y.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",y.appendChild(C);let T=sI.createSection,S=sI.createCheckbox,w=T(C,"General","generalVisible","toggleGeneral"),E=S("Show Frustums","frustums"),L=document.createElement("div");L.className="cesium-cesiumInspector-frustumStatistics",L.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),E.appendChild(L),w.appendChild(E),w.appendChild(S("Show Frustum Planes","frustumPlanes")),w.appendChild(S("Performance Display","performance")),m.className="cesium-cesiumInspector-performanceDisplay",w.appendChild(m);let I=document.createElement("div");I.className="cesium-cesiumInspector-shaderCache",I.setAttribute("data-bind","html: shaderCacheText"),w.appendChild(I);let R=document.createElement("div");w.appendChild(R);let P=document.createElement("span");P.setAttribute("data-bind",'html: " Frustum:"'),R.appendChild(P);let A=document.createElement("span");A.setAttribute("data-bind","text: depthFrustumText"),R.appendChild(A);let M=document.createElement("input");M.type="button",M.value="-",M.className="cesium-cesiumInspector-pickButton",M.setAttribute("data-bind","click: decrementDepthFrustum"),R.appendChild(M);let V=document.createElement("input");V.type="button",V.value="+",V.className="cesium-cesiumInspector-pickButton",V.setAttribute("data-bind","click: incrementDepthFrustum"),R.appendChild(V);let G=T(C,"Primitives","primitivesVisible","togglePrimitives"),D=document.createElement("div");D.className="cesium-cesiumInspector-pickSection",G.appendChild(D);let N=document.createElement("input");N.type="button",N.value="Pick a primitive",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let k=document.createElement("div");k.className="cesium-cesiumInspector-center",k.appendChild(N),D.appendChild(k),D.appendChild(S("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),D.appendChild(S("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=S("Show only selected","filterPrimitive","hasPickedPrimitive"),D.appendChild(this._primitiveOnly);let U=T(C,"Terrain","terrainVisible","toggleTerrain"),B=document.createElement("div");B.className="cesium-cesiumInspector-pickSection",U.appendChild(B);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'),k=document.createElement("div"),k.appendChild(Y),k.className="cesium-cesiumInspector-center",B.appendChild(k);let J=document.createElement("div");B.appendChild(J);let K=document.createElement("input");K.type="button",K.value="Parent",K.className="cesium-cesiumInspector-pickButton",K.setAttribute("data-bind","click: selectParent");let z=document.createElement("input");z.type="button",z.value="NW",z.className="cesium-cesiumInspector-pickButton",z.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 q=document.createElement("input");q.type="button",q.value="SW",q.className="cesium-cesiumInspector-pickButton",q.setAttribute("data-bind","click: selectSW");let O=document.createElement("input");O.type="button",O.value="SE",O.className="cesium-cesiumInspector-pickButton",O.setAttribute("data-bind","click: selectSE");let te=document.createElement("div");te.className="cesium-cesiumInspector-tileText",J.className="cesium-cesiumInspector-frustumStatistics",J.appendChild(te),J.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:",J.appendChild(ie);let re=document.createElement("table"),ee=document.createElement("tr"),ae=document.createElement("tr"),oe=document.createElement("td");oe.appendChild(K);let ce=document.createElement("td");ce.appendChild(z);let pe=document.createElement("td");pe.appendChild(j),ee.appendChild(oe),ee.appendChild(ce),ee.appendChild(pe);let ue=document.createElement("td"),he=document.createElement("td");he.appendChild(q);let fe=document.createElement("td");fe.appendChild(O),ae.appendChild(ue),ae.appendChild(he),ae.appendChild(fe),re.appendChild(ee),re.appendChild(ae),J.appendChild(re),B.appendChild(S("Show bounding volume","tileBoundingSphere","hasPickedTile")),B.appendChild(S("Show only selected","filterTile","hasPickedTile")),U.appendChild(S("Wireframe","wireframe")),U.appendChild(S("Suspend LOD update","suspendUpdates")),U.appendChild(S("Show tile coordinates","tileCoordinates")),sr.applyBindings(x,this._element)}Object.defineProperties(Bde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Bde.prototype.isDestroyed=function(){return!1};Bde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var NNe=Bde;function Hde(o,f){F(f)||(f=document.body),f=Qh(f);let m=this,x=sr.observable(km.fullscreen),y=sr.observable(km.enabled),v=f.ownerDocument;this.isFullscreen=void 0,sr.defineProperty(this,"isFullscreen",{get:function(){return x()}}),this.isFullscreenEnabled=void 0,sr.defineProperty(this,"isFullscreenEnabled",{get:function(){return y()},set:function(C){y(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?x()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=Il(function(){km.fullscreen?km.exitFullscreen():km.requestFullscreen(m._fullscreenElement)},sr.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=Qh(o)??v.body,this._callback=function(){x(km.fullscreen)},v.addEventListener(km.changeEventName,this._callback)}Object.defineProperties(Hde.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(o){this._fullscreenElement=o}},command:{get:function(){return this._command}}});Hde.prototype.isDestroyed=function(){return!1};Hde.prototype.destroy=function(){document.removeEventListener(km.changeEventName,this._callback),yr(this)};var WNe=Hde,B8i="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",H8i="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 zde(o,f){o=Qh(o);let m=new WNe(f,o);m._exitFullScreenPath=H8i,m._enterFullScreenPath=B8i;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),sr.applyBindings(m,x),this._container=o,this._viewModel=m,this._element=x}Object.defineProperties(zde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});zde.prototype.isDestroyed=function(){return!1};zde.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var ZNe=zde,xqe=1e3;function MS(o){F(o.geocoderServices)?this._geocoderServices=o.geocoderServices:this._geocoderServices=[new Sde({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 Tr,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=yqe,this._handleArrowUp=gqe;let f=this;this._suggestionsVisible=sr.pureComputed(function(){let x=sr.getObservable(f,"_suggestions")().length>0,y=sr.getObservable(f,"_showSuggestions")();return x&&y}),this._searchCommand=Il(function(x){if(x=x??a$.SEARCH,f._focusTextbox=!1,F(f._selectedSuggestion))return f.activateSuggestion(f._selectedSuggestion),!1;if(f.hideSuggestions(),f.isSearchInProgress)Q8i(f);else return J8i(f,f._geocoderServices,x)}),this.deselectSuggestion=function(){f._selectedSuggestion=void 0},this.handleKeyDown=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38;return(v||C)&&y.preventDefault(),!0},this.handleKeyUp=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38,T=y.key==="Enter"||y.keyCode===13;return C?gqe(f):v?yqe(f):T&&f._searchCommand(),!0},this.activateSuggestion=function(x){f.hideSuggestions(),f._searchText=x.displayName;let y=x.destination;tyt(f),f.destinationFound(f,y)},this.hideSuggestions=function(){f._showSuggestions=!1,f._selectedSuggestion=void 0},this.showSuggestions=function(){f._showSuggestions=!0},this.handleMouseover=function(x,y){x!==f._selectedSuggestion&&(f._selectedSuggestion=x)},this.keepExpanded=!1,this.autoComplete=o.autocomplete??!0,this.destinationFound=o.destinationFound??MS.flyToDestination,this._focusTextbox=!1,sr.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let m=sr.getObservable(this,"_searchText");m.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=m.subscribe(function(){MS._updateSearchSuggestions(f)}),this.isSearchInProgress=void 0,sr.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,sr.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(x){this._searchText=x}}),this.flightDuration=void 0,sr.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(x){this._flightDuration=x}})}Object.defineProperties(MS.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}}});MS.prototype.destroy=function(){this._suggestionSubscription.dispose()};function gqe(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],MS._adjustSuggestionsScroll(o,m)}function yqe(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],MS._adjustSuggestionsScroll(o,m)}function z8i(o,f){let m=F(f)?f.availability:void 0;return F(m)?cR(f,[o]).then(function(x){return o=x[0],o.height+=xqe,o}):(o.height+=xqe,Promise.resolve(o))}function Y8i(o,f){let m=o._scene,x=m.ellipsoid,y=m.camera,v=m.terrainProvider,C=f,T;return f instanceof vi?be.equalsEpsilon(f.south,f.north,be.EPSILON7)&&be.equalsEpsilon(f.east,f.west,be.EPSILON7)?f=vi.center(f):T=phe(f,m):f=x.cartesianToCartographic(f),F(T)||(T=z8i(f,v)),T.then(function(S){C=x.cartographicToCartesian(S)}).finally(function(){y.flyTo({destination:C,complete:function(){o._complete.raiseEvent()},duration:o._flightDuration,endTransform:Ee.IDENTITY})})}async function K8i(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 J8i(o,f,m){let x=o._searchText;if(eyt(x)){o.showSuggestions();return}o._isSearchInProgress=!0,o._wasGeocodeCancelled=!1;let y,v;for(y=0;y<f.length;y++){if(o._wasGeocodeCancelled)return;if(v=await K8i(f[y],x,m),F(v)&&v.state==="fulfilled"&&v.value.length>0)break}if(o._wasGeocodeCancelled)return;o._isSearchInProgress=!1,XNe(o);let C=v.value;if(v.state==="fulfilled"&&F(C)&&C.length>0){o._searchText=C[0].displayName,o.destinationFound(o,C[0].destination);let T=$gt(o,bde.getCreditsFromResult(C[0]));F(T)||ONe(o,f[y].credit);return}o._searchText=`${x} (not found)`}function ONe(o,f){F(f)&&!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&(o._scene.frameState.creditDisplay.addStaticCredit(f),o._previousCredits.push(f))}function $gt(o,f){return F(f)&&f.forEach(m=>ONe(o,m)),f}function XNe(o){!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&o._previousCredits.forEach(f=>{o._scene.frameState.creditDisplay.removeStaticCredit(f)}),o._previousCredits.length=0}function j8i(o,f){let m=Qh(o._viewContainer),x=m.getElementsByClassName("search-results")[0],y=m.getElementsByTagName("li")[f];if(f===0){x.scrollTop=0;return}let v=y.offsetTop;v+y.clientHeight>x.clientHeight?x.scrollTop=v+y.clientHeight:v<x.scrollTop&&(x.scrollTop=v)}function Q8i(o){o._isSearchInProgress&&(o._isSearchInProgress=!1,o._wasGeocodeCancelled=!0)}function eyt(o){return/^\s*$/.test(o)}function tyt(o){sr.getObservable(o,"_suggestions").removeAll()}async function q8i(o){if(!o.autoComplete)return;let f=o._searchText;if(tyt(o),XNe(o),!eyt(f))for(let m of o._geocoderServices){let x=await m.geocode(f,a$.AUTOCOMPLETE);if(o._suggestions=o._suggestions.concat(x),x.length>0){let y=!0;x.forEach(v=>{let C=bde.getCreditsFromResult(v);y=y&&!F(C),$gt(o,C)}),y&&ONe(o,m.credit)}if(o._suggestions.length>=5)return}}MS.flyToDestination=Y8i;MS._updateSearchSuggestions=q8i;MS._adjustSuggestionsScroll=j8i;MS.prototype.isDestroyed=function(){return!1};MS.prototype.destroy=function(){return XNe(this),yr(this)};var kNe=MS,$8i="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",eji="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 Yde(o){let f=Qh(o.container),m=new kNe(o);m._startSearchPath=$8i,m._stopSearchPath=eji;let x=document.createElement("form");x.setAttribute("data-bind","submit: search");let y=document.createElement("input");y.type="search",y.className="cesium-geocoder-input",y.setAttribute("placeholder","Enter an address or landmark..."),y.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(){y.select()},0)},y.addEventListener("focus",this._onTextBoxFocus,!1),x.appendChild(y),this._textBox=y;let v=document.createElement("span");v.className="cesium-geocoder-searchButton",v.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),x.appendChild(v),f.appendChild(x);let C=document.createElement("div");C.className="search-results",C.setAttribute("data-bind","visible: _suggestionsVisible");let T=document.createElement("ul");T.setAttribute("data-bind","foreach: _suggestions");let S=document.createElement("li");T.appendChild(S),S.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),C.appendChild(T),f.appendChild(C),sr.applyBindings(m,x),sr.applyBindings(m,C),this._container=f,this._searchSuggestionsContainer=C,this._viewModel=m,this._form=x,this._onInputBegin=function(w){let E=w.target;typeof w.composedPath=="function"&&(E=w.composedPath()[0]),f.contains(E)||(m._focusTextbox=!1,m.hideSuggestions())},this._onInputEnd=function(w){m._focusTextbox=!0,m.showSuggestions()},ia.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(Yde.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});Yde.prototype.isDestroyed=function(){return!1};Yde.prototype.destroy=function(){let o=this._container;return ia.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(),sr.cleanNode(this._form),sr.cleanNode(this._searchSuggestionsContainer),o.removeChild(this._form),o.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),yr(this)};var UNe=Yde;function iyt(o,f){this._scene=o,this._duration=f;let m=this;this._command=Il(function(){m._scene.camera.flyHome(m._duration)}),this.tooltip="View Home",sr.track(this,["tooltip"])}Object.defineProperties(iyt.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 BNe=iyt;function Kde(o,f,m){o=Qh(o);let x=new BNe(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 y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-home-button",y.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),o.appendChild(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(Kde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Kde.prototype.isDestroyed=function(){return!1};Kde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var HNe=Kde;function tji(o,f){f.currentTarget.parentElement.parentElement.querySelector(`#${o.name}-expander`).classList.toggle("active"),f.currentTarget.textContent=f.currentTarget.textContent==="+"?"-":"+"}function ryt(o,f){sr.track(o);for(let m=0;m<o.sublayers.length;m++)ryt(o.sublayers[m],f)}function Lle(o){return o.modelName==="FullModel"}function nyt(o){return o.modelName==="Overview"}function oyt(o){return nyt(o)||Lle(o)}function _qe(o,f){if(oyt(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:sr.observable(!1),index:f.sublayers.length};return f.topLayers.push(m),f.sublayers.push(o),m}}function iji(o,f){if(oyt(o)){f.sublayers.forEach(x=>x.visibility=!1),f.sublayers[o.index].visibility=!0;let m=document.getElementById("bsl-wrapper");Lle(o)?(f.currentLevel=f.selectedLevel,m.style.display="block"):(f.selectedLevel=f.currentLevel,f.currentLevel="All",m.style.display="none")}}async function rji(o,f){try{let m=o.getAttributeNames();for(let x=0;x<m.length;x++)if(m[x]==="BldgLevel"){let y=o.getAttributeValues(m[x]);for(let v=0;v<y.length;v++)f.push(y[v])}f.sort((x,y)=>x-y),f.unshift("All")}catch(m){console.log(`There was an error getting attributes: ${m}`)}}function nji(o){let f=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:sr.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:sr.observable(!0),index:-1}],currentLayer:sr.observable(),expandClickHandler:tji,setOptionDisable:function(x,y){sr.applyBindingsToNode(x,{disable:y.disable},y)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(x){iji(x,f.viewModel)});let m=o.sublayers;for(let x=0;x<m.length;x++){ryt(m[x],this.viewModel);let y=_qe(m[x],this.viewModel);F(y)&&(nyt(y)||!F(this.viewModel.defaultLayer)&&Lle(y))&&(this.viewModel.defaultLayer=y)}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=_qe(x,this.viewModel),this.viewModel.currentLayer.subscribe(function(y){o.show=Lle(y)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return rji(o,this.levels),this.viewModel.currentLevel.subscribe(function(x){x!=="All"?o.filterByAttributes([{name:"BldgLevel",values:[x]}]):o.filterByAttributes()}),this.viewModel}var zNe=nji;function oji(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)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileStyle();return!0};Ng.prototype._update=function(){let o=this._tileset;if(this.performance&&this._performanceDisplay.update(),F(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=U6(o,!1),this._pickStatisticsText=U6(o,!0),this._resourceCacheStatisticsText=qgt())};Ng.prototype.isDestroyed=function(){return!1};Ng.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};Ng.getStatistics=U6;var GNe=Ng;function Ude(o,f){o=Qh(o);let m=document.createElement("div"),x=document.createElement("div");x.setAttribute("data-bind","visible: performance");let y=new GNe(f,x);this._viewModel=y,this._container=o,this._element=m;let v=document.createElement("div");v.textContent="3D Tiles Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleInspector"),m.appendChild(v),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 T=sI.createSection,S=sI.createCheckbox,w=sI.createRangeInput,E=sI.createButton,L=T(C,"Tileset","tilesetVisible","toggleTileset"),I=T(C,"Display","displayVisible","toggleDisplay"),R=T(C,"Update","updateVisible","toggleUpdate"),P=T(C,"Logging","loggingVisible","toggleLogging"),A=T(C,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),M=T(C,"Style","styleVisible","toggleStyle"),V=T(C,"Optimization","optimizationVisible","toggleOptimization"),G=document.createElement("div");G.className="field-group";let D=document.createElement("label");D.className="field-label",D.appendChild(document.createTextNode("Properties: "));let N=document.createElement("div");N.setAttribute("data-bind","text: properties"),G.appendChild(D),G.appendChild(N),L.appendChild(G),L.appendChild(E("Pick Tileset","togglePickTileset","pickActive")),L.appendChild(E("Trim Tiles Cache","trimTilesCache")),L.appendChild(S("Enable Picking","picking")),I.appendChild(S("Colorize","colorize"));let k=I.appendChild(S("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),U=document.createElement("p");U.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),U.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),U.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",k.appendChild(U),I.appendChild(S("Bounding Volumes","showBoundingVolumes")),I.appendChild(S("Content Volumes","showContentBoundingVolumes")),I.appendChild(S("Request Volumes","showRequestVolumes")),I.appendChild(S("Point Cloud Shading","pointCloudShading"));let B=document.createElement("div");B.setAttribute("data-bind","visible: pointCloudShading"),B.appendChild(w("Geometric Error Scale","geometricErrorScale",0,2,.01)),B.appendChild(w("Maximum Attenuation","maximumAttenuation",0,32,1)),B.appendChild(w("Base Resolution","baseResolution",0,1,.01)),B.appendChild(S("Eye Dome Lighting (EDL)","eyeDomeLighting")),I.appendChild(B);let Y=document.createElement("div");Y.setAttribute("data-bind","visible: eyeDomeLighting"),Y.appendChild(w("EDL Strength","eyeDomeLightingStrength",0,2,.1)),Y.appendChild(w("EDL Radius","eyeDomeLightingRadius",0,4,.1)),B.appendChild(Y),R.appendChild(S("Freeze Frame","freezeFrame")),R.appendChild(S("Dynamic Screen Space Error","dynamicScreenSpaceError"));let J=document.createElement("div");J.appendChild(w("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),R.appendChild(J);let K=document.createElement("div");K.setAttribute("data-bind","visible: dynamicScreenSpaceError"),K.appendChild(w("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),K.appendChild(w("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),R.appendChild(K),P.appendChild(S("Performance","performance")),P.appendChild(x),P.appendChild(S("Statistics","showStatistics"));let z=document.createElement("div");z.className="cesium-3dTilesInspector-statistics",z.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),P.appendChild(z),P.appendChild(S("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(S("Resource Cache Statistics","showResourceCacheStatistics"));let q=document.createElement("div");q.className="cesium-3dTilesInspector-statistics",q.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),P.appendChild(q);let O=document.createElement("div");M.appendChild(O),O.appendChild(document.createTextNode("Color Blend Mode: "));let te=document.createElement("select");te.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),O.appendChild(te);let ie=document.createElement("textarea");ie.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),O.className="cesium-cesiumInspector-styleEditor",O.appendChild(ie);let re=E("Compile (Ctrl+Enter)","compileStyle");O.appendChild(re);let ee=document.createElement("div");ee.className="cesium-cesiumInspector-error",ee.setAttribute("data-bind","text: editorError"),O.appendChild(ee),A.appendChild(S("Show Picked Only","showOnlyPickedTileDebugLabel")),A.appendChild(S("Geometric Error","showGeometricError")),A.appendChild(S("Rendering Statistics","showRenderingStatistics")),A.appendChild(S("Memory Usage (MB)","showMemoryUsage")),A.appendChild(S("Url","showUrl")),V.appendChild(S("Skip Tile LODs","skipLevelOfDetail"));let ae=document.createElement("div");ae.appendChild(w("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),V.appendChild(ae);let oe=document.createElement("div");oe.appendChild(w("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),V.appendChild(oe);let ce=document.createElement("div");ce.appendChild(w("Min. levels to skip","skipLevels",0,10,1)),V.appendChild(ce),V.appendChild(S("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),V.appendChild(S("Load siblings of visible tiles","loadSiblings")),sr.applyBindings(y,m)}Object.defineProperties(Ude.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Ude.prototype.isDestroyed=function(){return!1};Ude.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var FNe=Ude;function X8i(o){let f;if(F(o)){f="Command Statistics";let m=o.commandsInFrustums;for(let x in m)if(m.hasOwnProperty(x)){let y=parseInt(x,10),v;if(y===7)v="1, 2 and 3";else{let C=[];for(let T=2;T>=0;T--){let S=Math.pow(2,T);y>=S&&(C.push(T+1),y-=S)}v=C.reverse().join(" and ")}f+=`<br> ${m[x]} in frustum ${v}`}f+=`<br>Total: ${o.totalCommands}`}return f}function aSe(o,f,m){let x=Math.min(m,f);return x=Math.max(x,o),x}var k8i=new Ma,U8i=new Z;function T$(o,f){let m=this,x=o.canvas,y=new Lr(x);this._eventHandler=y,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 v=this._scene.globe;v.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="",sr.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=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._toggleGeneral=Il(function(){m.generalVisible=!m.generalVisible}),this._togglePrimitives=Il(function(){m.primitivesVisible=!m.primitivesVisible}),this._toggleTerrain=Il(function(){m.terrainVisible=!m.terrainVisible}),this._frustumsSubscription=sr.getObservable(this,"frustums").subscribe(function(w){m._scene.debugShowFrustums=w,m._scene.requestRender()}),this._frustumPlanesSubscription=sr.getObservable(this,"frustumPlanes").subscribe(function(w){m._scene.debugShowFrustumPlanes=w,m._scene.requestRender()}),this._performanceSubscription=sr.getObservable(this,"performance").subscribe(function(w){w?m._performanceDisplay=new Xq({container:m._performanceContainer}):m._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=Il(function(){return m._primitive.debugShowBoundingVolume=m.primitiveBoundingSphere,m._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=sr.getObservable(this,"primitiveBoundingSphere").subscribe(function(){m._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=Il(function(){if(m.primitiveReferenceFrame){let w=m._primitive.modelMatrix;m._modelMatrixPrimitive=new WDe({modelMatrix:w}),m._scene.primitives.add(m._modelMatrixPrimitive)}else F(m._modelMatrixPrimitive)&&(m._scene.primitives.remove(m._modelMatrixPrimitive),m._modelMatrixPrimitive=void 0);return m._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=sr.getObservable(this,"primitiveReferenceFrame").subscribe(function(){m._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=Il(function(){return m.filterPrimitive?m._scene.debugCommandFilter=function(w){return F(m._modelMatrixPrimitive)&&w.owner===m._modelMatrixPrimitive._primitive?!0:F(m._primitive)?w.owner===m._primitive||w.owner===m._primitive._billboardCollection||w.owner.primitive===m._primitive:!1}:m._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=sr.getObservable(this,"filterPrimitive").subscribe(function(){m._doFilterPrimitive(),m._scene.requestRender()}),this._wireframeSubscription=sr.getObservable(this,"wireframe").subscribe(function(w){v._surface.tileProvider._debug.wireframe=w,m._scene.requestRender()}),this._depthFrustumSubscription=sr.getObservable(this,"depthFrustum").subscribe(function(w){m._scene.debugShowDepthFrustum=w,m._scene.requestRender()}),this._incrementDepthFrustum=Il(function(){let w=m.depthFrustum+1;return m.depthFrustum=aSe(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._decrementDepthFrustum=Il(function(){let w=m.depthFrustum-1;return m.depthFrustum=aSe(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._suspendUpdatesSubscription=sr.getObservable(this,"suspendUpdates").subscribe(function(w){v._surface._debug.suspendLodUpdate=w,w||(m.filterTile=!1)});let C;this._showTileCoordinates=Il(function(){return m.tileCoordinates&&!F(C)?C=o.imageryLayers.addImageryProvider(new f$({tilingScheme:o.terrainProvider.tilingScheme})):!m.tileCoordinates&&F(C)&&(o.imageryLayers.remove(C),C=void 0),!0}),this._tileCoordinatesSubscription=sr.getObservable(this,"tileCoordinates").subscribe(function(){m._showTileCoordinates(),m._scene.requestRender()}),this._tileBoundingSphereSubscription=sr.getObservable(this,"tileBoundingSphere").subscribe(function(){m._showTileBoundingSphere(),m._scene.requestRender()}),this._showTileBoundingSphere=Il(function(){return m.tileBoundingSphere?v._surface.tileProvider._debug.boundingSphereTile=m._tile:v._surface.tileProvider._debug.boundingSphereTile=void 0,m._scene.requestRender(),!0}),this._doFilterTile=Il(function(){return m.filterTile?(m.suspendUpdates=!0,v._surface._tilesToRender=[],F(m._tile)&&m._tile.renderable&&v._surface._tilesToRender.push(m._tile)):m.suspendUpdates=!1,!0}),this._filterTileSubscription=sr.getObservable(this,"filterTile").subscribe(function(){m.doFilterTile(),m._scene.requestRender()});function T(w){let E=m._scene.pick({x:w.position.x,y:w.position.y});F(E)&&(m.primitive=F(E.collection)?E.collection:E.primitive),m._scene.requestRender(),m.pickPrimitiveActive=!1}this._pickPrimitive=Il(function(){m.pickPrimitiveActive=!m.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=sr.getObservable(this,"pickPrimitiveActive").subscribe(function(w){w?y.setInputAction(T,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)});function S(w){let E,L=v.ellipsoid,I=m._scene.camera.getPickRay(w.position,k8i),R=v.pick(I,m._scene,U8i);if(F(R)){let P=L.cartesianToCartographic(R),A=v._surface.tileProvider._tilesToRenderByTextureCount;for(let M=0;!E&&M<A.length;++M){let V=A[M];if(F(V))for(let G=0;!E&&G<V.length;++G){let D=V[G];vi.contains(D.rectangle,P)&&(E=D)}}}m.tile=E,m.pickTileActive=!1}this._pickTile=Il(function(){m.pickTileActive=!m.pickTileActive}),this._pickTileActiveSubscription=sr.getObservable(this,"pickTileActive").subscribe(function(w){w?y.setInputAction(S,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)}),this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()})}Object.defineProperties(T$.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 Il(function(){o.tile=o.tile.parent})}},selectNW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northwestChild})}},selectNE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northeastChild})}},selectSW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southwestChild})}},selectSE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(o){let f=this._primitive;o!==f&&(this.hasPickedPrimitive=!0,F(f)&&(f.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,F(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(F(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;F(m)&&F(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}}});T$.prototype._update=function(){this.frustums&&(this.frustumStatisticText=X8i(this._scene.debugFrustumStatistics));let o=this._scene.numberOfFrustums;this._numberOfFrustums=o,this.depthFrustum=aSe(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}`};T$.prototype.isDestroyed=function(){return!1};T$.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(),yr(this)};var DNe=T$;function Bde(o,f){o=Qh(o);let m=document.createElement("div"),x=new DNe(f,m);this._viewModel=x,this._container=o;let y=document.createElement("div");this._element=y;let v=document.createElement("div");v.textContent="Cesium Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleDropDown"),y.appendChild(v),y.className="cesium-cesiumInspector",y.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",y.appendChild(C);let T=sI.createSection,S=sI.createCheckbox,w=T(C,"General","generalVisible","toggleGeneral"),E=S("Show Frustums","frustums"),L=document.createElement("div");L.className="cesium-cesiumInspector-frustumStatistics",L.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),E.appendChild(L),w.appendChild(E),w.appendChild(S("Show Frustum Planes","frustumPlanes")),w.appendChild(S("Performance Display","performance")),m.className="cesium-cesiumInspector-performanceDisplay",w.appendChild(m);let I=document.createElement("div");I.className="cesium-cesiumInspector-shaderCache",I.setAttribute("data-bind","html: shaderCacheText"),w.appendChild(I);let R=document.createElement("div");w.appendChild(R);let P=document.createElement("span");P.setAttribute("data-bind",'html: " Frustum:"'),R.appendChild(P);let A=document.createElement("span");A.setAttribute("data-bind","text: depthFrustumText"),R.appendChild(A);let M=document.createElement("input");M.type="button",M.value="-",M.className="cesium-cesiumInspector-pickButton",M.setAttribute("data-bind","click: decrementDepthFrustum"),R.appendChild(M);let V=document.createElement("input");V.type="button",V.value="+",V.className="cesium-cesiumInspector-pickButton",V.setAttribute("data-bind","click: incrementDepthFrustum"),R.appendChild(V);let G=T(C,"Primitives","primitivesVisible","togglePrimitives"),D=document.createElement("div");D.className="cesium-cesiumInspector-pickSection",G.appendChild(D);let N=document.createElement("input");N.type="button",N.value="Pick a primitive",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let k=document.createElement("div");k.className="cesium-cesiumInspector-center",k.appendChild(N),D.appendChild(k),D.appendChild(S("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),D.appendChild(S("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=S("Show only selected","filterPrimitive","hasPickedPrimitive"),D.appendChild(this._primitiveOnly);let U=T(C,"Terrain","terrainVisible","toggleTerrain"),B=document.createElement("div");B.className="cesium-cesiumInspector-pickSection",U.appendChild(B);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'),k=document.createElement("div"),k.appendChild(Y),k.className="cesium-cesiumInspector-center",B.appendChild(k);let J=document.createElement("div");B.appendChild(J);let K=document.createElement("input");K.type="button",K.value="Parent",K.className="cesium-cesiumInspector-pickButton",K.setAttribute("data-bind","click: selectParent");let z=document.createElement("input");z.type="button",z.value="NW",z.className="cesium-cesiumInspector-pickButton",z.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 q=document.createElement("input");q.type="button",q.value="SW",q.className="cesium-cesiumInspector-pickButton",q.setAttribute("data-bind","click: selectSW");let O=document.createElement("input");O.type="button",O.value="SE",O.className="cesium-cesiumInspector-pickButton",O.setAttribute("data-bind","click: selectSE");let te=document.createElement("div");te.className="cesium-cesiumInspector-tileText",J.className="cesium-cesiumInspector-frustumStatistics",J.appendChild(te),J.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:",J.appendChild(ie);let re=document.createElement("table"),ee=document.createElement("tr"),ae=document.createElement("tr"),oe=document.createElement("td");oe.appendChild(K);let ce=document.createElement("td");ce.appendChild(z);let pe=document.createElement("td");pe.appendChild(j),ee.appendChild(oe),ee.appendChild(ce),ee.appendChild(pe);let ue=document.createElement("td"),he=document.createElement("td");he.appendChild(q);let fe=document.createElement("td");fe.appendChild(O),ae.appendChild(ue),ae.appendChild(he),ae.appendChild(fe),re.appendChild(ee),re.appendChild(ae),J.appendChild(re),B.appendChild(S("Show bounding volume","tileBoundingSphere","hasPickedTile")),B.appendChild(S("Show only selected","filterTile","hasPickedTile")),U.appendChild(S("Wireframe","wireframe")),U.appendChild(S("Suspend LOD update","suspendUpdates")),U.appendChild(S("Show tile coordinates","tileCoordinates")),sr.applyBindings(x,this._element)}Object.defineProperties(Bde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Bde.prototype.isDestroyed=function(){return!1};Bde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var NNe=Bde,xqe=1e3;function MS(o){F(o.geocoderServices)?this._geocoderServices=o.geocoderServices:this._geocoderServices=[new Sde({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 Tr,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=yqe,this._handleArrowUp=gqe;let f=this;this._suggestionsVisible=sr.pureComputed(function(){let x=sr.getObservable(f,"_suggestions")().length>0,y=sr.getObservable(f,"_showSuggestions")();return x&&y}),this._searchCommand=Il(function(x){if(x=x??a$.SEARCH,f._focusTextbox=!1,F(f._selectedSuggestion))return f.activateSuggestion(f._selectedSuggestion),!1;if(f.hideSuggestions(),f.isSearchInProgress)J8i(f);else return Y8i(f,f._geocoderServices,x)}),this.deselectSuggestion=function(){f._selectedSuggestion=void 0},this.handleKeyDown=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38;return(v||C)&&y.preventDefault(),!0},this.handleKeyUp=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38,T=y.key==="Enter"||y.keyCode===13;return C?gqe(f):v?yqe(f):T&&f._searchCommand(),!0},this.activateSuggestion=function(x){f.hideSuggestions(),f._searchText=x.displayName;let y=x.destination;tyt(f),f.destinationFound(f,y)},this.hideSuggestions=function(){f._showSuggestions=!1,f._selectedSuggestion=void 0},this.showSuggestions=function(){f._showSuggestions=!0},this.handleMouseover=function(x,y){x!==f._selectedSuggestion&&(f._selectedSuggestion=x)},this.keepExpanded=!1,this.autoComplete=o.autocomplete??!0,this.destinationFound=o.destinationFound??MS.flyToDestination,this._focusTextbox=!1,sr.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let m=sr.getObservable(this,"_searchText");m.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=m.subscribe(function(){MS._updateSearchSuggestions(f)}),this.isSearchInProgress=void 0,sr.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,sr.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(x){this._searchText=x}}),this.flightDuration=void 0,sr.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(x){this._flightDuration=x}})}Object.defineProperties(MS.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}}});MS.prototype.destroy=function(){this._suggestionSubscription.dispose()};function gqe(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],MS._adjustSuggestionsScroll(o,m)}function yqe(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],MS._adjustSuggestionsScroll(o,m)}function B8i(o,f){let m=F(f)?f.availability:void 0;return F(m)?cR(f,[o]).then(function(x){return o=x[0],o.height+=xqe,o}):(o.height+=xqe,Promise.resolve(o))}function H8i(o,f){let m=o._scene,x=m.ellipsoid,y=m.camera,v=m.terrainProvider,C=f,T;return f instanceof vi?be.equalsEpsilon(f.south,f.north,be.EPSILON7)&&be.equalsEpsilon(f.east,f.west,be.EPSILON7)?f=vi.center(f):T=phe(f,m):f=x.cartesianToCartographic(f),F(T)||(T=B8i(f,v)),T.then(function(S){C=x.cartographicToCartesian(S)}).finally(function(){y.flyTo({destination:C,complete:function(){o._complete.raiseEvent()},duration:o._flightDuration,endTransform:Ee.IDENTITY})})}async function z8i(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 Y8i(o,f,m){let x=o._searchText;if(eyt(x)){o.showSuggestions();return}o._isSearchInProgress=!0,o._wasGeocodeCancelled=!1;let y,v;for(y=0;y<f.length;y++){if(o._wasGeocodeCancelled)return;if(v=await z8i(f[y],x,m),F(v)&&v.state==="fulfilled"&&v.value.length>0)break}if(o._wasGeocodeCancelled)return;o._isSearchInProgress=!1,ZNe(o);let C=v.value;if(v.state==="fulfilled"&&F(C)&&C.length>0){o._searchText=C[0].displayName,o.destinationFound(o,C[0].destination);let T=$gt(o,bde.getCreditsFromResult(C[0]));F(T)||WNe(o,f[y].credit);return}o._searchText=`${x} (not found)`}function WNe(o,f){F(f)&&!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&(o._scene.frameState.creditDisplay.addStaticCredit(f),o._previousCredits.push(f))}function $gt(o,f){return F(f)&&f.forEach(m=>WNe(o,m)),f}function ZNe(o){!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&o._previousCredits.forEach(f=>{o._scene.frameState.creditDisplay.removeStaticCredit(f)}),o._previousCredits.length=0}function K8i(o,f){let m=Qh(o._viewContainer),x=m.getElementsByClassName("search-results")[0],y=m.getElementsByTagName("li")[f];if(f===0){x.scrollTop=0;return}let v=y.offsetTop;v+y.clientHeight>x.clientHeight?x.scrollTop=v+y.clientHeight:v<x.scrollTop&&(x.scrollTop=v)}function J8i(o){o._isSearchInProgress&&(o._isSearchInProgress=!1,o._wasGeocodeCancelled=!0)}function eyt(o){return/^\s*$/.test(o)}function tyt(o){sr.getObservable(o,"_suggestions").removeAll()}async function j8i(o){if(!o.autoComplete)return;let f=o._searchText;if(tyt(o),ZNe(o),!eyt(f))for(let m of o._geocoderServices){let x=await m.geocode(f,a$.AUTOCOMPLETE);if(o._suggestions=o._suggestions.concat(x),x.length>0){let y=!0;x.forEach(v=>{let C=bde.getCreditsFromResult(v);y=y&&!F(C),$gt(o,C)}),y&&WNe(o,m.credit)}if(o._suggestions.length>=5)return}}MS.flyToDestination=H8i;MS._updateSearchSuggestions=j8i;MS._adjustSuggestionsScroll=K8i;MS.prototype.isDestroyed=function(){return!1};MS.prototype.destroy=function(){return ZNe(this),yr(this)};var ONe=MS,Q8i="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",q8i="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 Hde(o){let f=Qh(o.container),m=new ONe(o);m._startSearchPath=Q8i,m._stopSearchPath=q8i;let x=document.createElement("form");x.setAttribute("data-bind","submit: search");let y=document.createElement("input");y.type="search",y.className="cesium-geocoder-input",y.setAttribute("placeholder","Enter an address or landmark..."),y.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(){y.select()},0)},y.addEventListener("focus",this._onTextBoxFocus,!1),x.appendChild(y),this._textBox=y;let v=document.createElement("span");v.className="cesium-geocoder-searchButton",v.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),x.appendChild(v),f.appendChild(x);let C=document.createElement("div");C.className="search-results",C.setAttribute("data-bind","visible: _suggestionsVisible");let T=document.createElement("ul");T.setAttribute("data-bind","foreach: _suggestions");let S=document.createElement("li");T.appendChild(S),S.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),C.appendChild(T),f.appendChild(C),sr.applyBindings(m,x),sr.applyBindings(m,C),this._container=f,this._searchSuggestionsContainer=C,this._viewModel=m,this._form=x,this._onInputBegin=function(w){let E=w.target;typeof w.composedPath=="function"&&(E=w.composedPath()[0]),f.contains(E)||(m._focusTextbox=!1,m.hideSuggestions())},this._onInputEnd=function(w){m._focusTextbox=!0,m.showSuggestions()},ia.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(Hde.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});Hde.prototype.isDestroyed=function(){return!1};Hde.prototype.destroy=function(){let o=this._container;return ia.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(),sr.cleanNode(this._form),sr.cleanNode(this._searchSuggestionsContainer),o.removeChild(this._form),o.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),yr(this)};var XNe=Hde;function iyt(o,f){this._scene=o,this._duration=f;let m=this;this._command=Il(function(){m._scene.camera.flyHome(m._duration)}),this.tooltip="View Home",sr.track(this,["tooltip"])}Object.defineProperties(iyt.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 kNe=iyt;function zde(o,f,m){o=Qh(o);let x=new kNe(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 y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-home-button",y.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),o.appendChild(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(zde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});zde.prototype.isDestroyed=function(){return!1};zde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var UNe=zde;function $8i(o,f){f.currentTarget.parentElement.parentElement.querySelector(`#${o.name}-expander`).classList.toggle("active"),f.currentTarget.textContent=f.currentTarget.textContent==="+"?"-":"+"}function ryt(o,f){sr.track(o);for(let m=0;m<o.sublayers.length;m++)ryt(o.sublayers[m],f)}function Lle(o){return o.modelName==="FullModel"}function nyt(o){return o.modelName==="Overview"}function oyt(o){return nyt(o)||Lle(o)}function _qe(o,f){if(oyt(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:sr.observable(!1),index:f.sublayers.length};return f.topLayers.push(m),f.sublayers.push(o),m}}function eji(o,f){if(oyt(o)){f.sublayers.forEach(x=>x.visibility=!1),f.sublayers[o.index].visibility=!0;let m=document.getElementById("bsl-wrapper");Lle(o)?(f.currentLevel=f.selectedLevel,m.style.display="block"):(f.selectedLevel=f.currentLevel,f.currentLevel="All",m.style.display="none")}}async function tji(o,f){try{let m=o.getAttributeNames();for(let x=0;x<m.length;x++)if(m[x]==="BldgLevel"){let y=o.getAttributeValues(m[x]);for(let v=0;v<y.length;v++)f.push(y[v])}f.sort((x,y)=>x-y),f.unshift("All")}catch(m){console.log(`There was an error getting attributes: ${m}`)}}function iji(o){let f=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:sr.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:sr.observable(!0),index:-1}],currentLayer:sr.observable(),expandClickHandler:$8i,setOptionDisable:function(x,y){sr.applyBindingsToNode(x,{disable:y.disable},y)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(x){eji(x,f.viewModel)});let m=o.sublayers;for(let x=0;x<m.length;x++){ryt(m[x],this.viewModel);let y=_qe(m[x],this.viewModel);F(y)&&(nyt(y)||!F(this.viewModel.defaultLayer)&&Lle(y))&&(this.viewModel.defaultLayer=y)}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=_qe(x,this.viewModel),this.viewModel.currentLayer.subscribe(function(y){o.show=Lle(y)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return tji(o,this.levels),this.viewModel.currentLevel.subscribe(function(x){x!=="All"?o.filterByAttributes([{name:"BldgLevel",values:[x]}]):o.filterByAttributes()}),this.viewModel}var BNe=iji;function rji(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" @@ -23751,11 +23834,11 @@ </li> </ul> </ul> - </div>`,m.appendChild(x);let y=new zNe(f);sr.track(y),sr.applyBindings(y,m),F(y.defaultLayer)&&(y.currentLayer=y.defaultLayer)}var ayt=oji,aji="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",sji="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 YNe(){this._cameraClicked=new Tr,this._closeClicked=new Tr,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",sr.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,sr.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?sji:aji}}),sr.defineProperty(this,"_bodyless",{get:function(){return!F(this.description)||this.description.length===0}})}YNe.prototype.maxHeightOffset=function(o){return`${this.maxHeight-o}px`};Object.defineProperties(YNe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var KNe=YNe;function Jde(o){o=Qh(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 y=document.createElement("button");y.type="button",y.className="cesium-infoBox-close",y.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),y.innerHTML="×",f.appendChild(y);let v=document.createElement("iframe");v.className="cesium-infoBox-iframe",v.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),v.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),v.setAttribute("allowfullscreen",!0),f.appendChild(v);let C=new KNe;sr.applyBindings(C,f),this._container=o,this._element=f,this._frame=v,this._viewModel=C,this._descriptionSubscription=void 0;let T=this;v.addEventListener("load",function(){let S=v.contentDocument,w=S.createElement("link");w.href=oa("Widgets/InfoBox/InfoBoxDescription.css"),w.rel="stylesheet",w.type="text/css";let E=S.createElement("div");E.className="cesium-infoBox-description",S.head.appendChild(w),S.body.appendChild(E),T._descriptionSubscription=Lb(C,"description",function(L){v.style.height="5px",E.innerHTML=L;let I=null,R=E.firstElementChild;if(R!==null&&E.childNodes.length===1){let A=window.getComputedStyle(R);if(A!==null){let M=A["background-color"],V=Xe.fromCssColorString(M);F(V)&&V.alpha!==0&&(I=A["background-color"])}}f.style["background-color"]=I;let P=E.getBoundingClientRect().height;v.style.height=`${P}px`})}),v.setAttribute("src","about:blank")}Object.defineProperties(Jde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});Jde.prototype.isDestroyed=function(){return!1};Jde.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),F(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),yr(this)};var JNe=Jde;function syt(){this.showInstructions=!1;let o=this;this._command=Il(function(){o.showInstructions=!o.showInstructions}),this._showClick=Il(function(){o._touch=!1}),this._showTouch=Il(function(){o._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",sr.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(syt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var jNe=syt;function jde(o){let f=Qh(o.container),m=new jNe,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 y=document.createElement("span");y.className="cesium-navigationHelpButton-wrapper",f.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",v.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),y.appendChild(v);let C=document.createElement("div");C.className="cesium-navigation-help",C.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),y.appendChild(C);let T=document.createElement("button");T.type="button",T.className="cesium-navigation-button cesium-navigation-button-left",T.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let S=document.createElement("img");S.src=oa("Widgets/Images/NavigationHelp/Mouse.svg"),S.className="cesium-navigation-button-icon",S.style.width="25px",S.style.height="25px",T.appendChild(S),T.appendChild(document.createTextNode("Mouse"));let w=document.createElement("button");w.type="button",w.className="cesium-navigation-button cesium-navigation-button-right",w.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let E=document.createElement("img");E.src=oa("Widgets/Images/NavigationHelp/Touch.svg"),E.className="cesium-navigation-button-icon",E.style.width="25px",E.style.height="25px",w.appendChild(E),w.appendChild(document.createTextNode("Touch")),C.appendChild(T),C.appendChild(w);let L=document.createElement("div");L.className="cesium-click-navigation-help cesium-navigation-help-instructions",L.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),L.innerHTML=` <table> <tr> <td><img src="${oa("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="${oa("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="${oa("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(L);let I=document.createElement("div");I.className="cesium-touch-navigation-help cesium-navigation-help-instructions",I.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),I.innerHTML=` <table> <tr> <td><img src="${oa("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="${oa("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="${oa("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="${oa("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(I),sr.applyBindings(m,y),this._container=f,this._viewModel=m,this._wrapper=y,this._closeInstructions=function(R){y.contains(R.target)||(m.showInstructions=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(jde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});jde.prototype.isDestroyed=function(){return!1};jde.prototype.destroy=function(){return ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var QNe=jde;function Qde(o){this._scene=o,this._orthographic=o.camera.frustum instanceof $a,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=o.mode,sr.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let f=this;sr.defineProperty(this,"selectedTooltip",function(){return f._orthographic?f.tooltipOrthographic:f.tooltipPerspective}),this._toggleDropDown=Il(function(){f.sceneMode===gi.SCENE2D||f._flightInProgress||(f.dropDownVisible=!f.dropDownVisible)}),this._eventHelper=new bv,this._eventHelper.add(o.morphComplete,function(m,x,y,v){f.sceneMode=y,f._orthographic=y===gi.SCENE2D||f._scene.camera.frustum instanceof $a}),this._eventHelper.add(o.preRender,function(){f._flightInProgress=F(o.camera._currentFlight)}),this._switchToPerspective=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToPerspectiveFrustum(),f._orthographic=!1,f.dropDownVisible=!1)}),this._switchToOrthographic=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToOrthographicFrustum(),f._orthographic=!0,f.dropDownVisible=!1)}),this._sceneMode=gi}Object.defineProperties(Qde.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}}});Qde.prototype.isDestroyed=function(){return!1};Qde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var qNe=Qde,lji="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",uji="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 qde(o,f){o=Qh(o);let m=new qNe(f);m._perspectivePath=lji,m._orthographicPath=uji;let x=document.createElement("span");x.className="cesium-projectionPicker-wrapper cesium-toolbar-button",o.appendChild(x);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button",y.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'),y.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(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",v.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(v);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),sr.applyBindings(m,x),this._viewModel=m,this._container=o,this._wrapper=x,this._closeDropDown=function(T){x.contains(T.target)||(m.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(qde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});qde.prototype.isDestroyed=function(){return!1};qde.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var $Ne=qde;function eWe(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,sr.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let f=this;this._dismissMessage=Il(function(){f.showingLowFrameRateMessage=!1,f.lowFrameRateMessageDismissed=!0});let m=ZDe.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(eWe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});eWe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),yr(this)};var tWe=eWe;function $de(o){let f=Qh(o.container),m=new tWe(o),x=document.createElement("div");x.className="cesium-performance-watchdog-message-area",x.setAttribute("data-bind","visible: showingLowFrameRateMessage");let y=document.createElement("button");y.setAttribute("type","button"),y.className="cesium-performance-watchdog-message-dismiss",y.innerHTML="×",y.setAttribute("data-bind","click: dismissMessage"),x.appendChild(y);let v=document.createElement("div");v.className="cesium-performance-watchdog-message",v.setAttribute("data-bind","html: lowFrameRateMessage"),x.appendChild(v),f.appendChild(x),sr.applyBindings(m,x),this._container=f,this._viewModel=m,this._element=x}Object.defineProperties($de.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});$de.prototype.isDestroyed=function(){return!1};$de.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var iWe=$de;function e0e(o,f){this._scene=o;let m=this,x=function(y,v,C,T){m.sceneMode=C,m.dropDownVisible=!1};this._eventHelper=new bv,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",sr.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,sr.defineProperty(this,"selectedTooltip",function(){let y=m.sceneMode;return y===gi.SCENE2D?m.tooltip2D:y===gi.SCENE3D?m.tooltip3D:m.tooltipColumbusView}),this._toggleDropDown=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._morphTo2D=Il(function(){o.morphTo2D(m._duration)}),this._morphTo3D=Il(function(){o.morphTo3D(m._duration)}),this._morphToColumbusView=Il(function(){o.morphToColumbusView(m._duration)}),this._sceneMode=gi}Object.defineProperties(e0e.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}}});e0e.prototype.isDestroyed=function(){return!1};e0e.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var rWe=e0e,cji="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",hji="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",dji="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 t0e(o,f,m){o=Qh(o);let x=new rWe(f,m);x._globePath=cji,x._flatMapPath=hji,x._columbusViewPath=dji;let y=document.createElement("span");y.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",o.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button",v.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'),v.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 -->',y.appendChild(v);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 }'),y.appendChild(C);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.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),y.appendChild(T);let S=document.createElement("button");S.type="button",S.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",S.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 }'),y.appendChild(S),sr.applyBindings(x,y),this._viewModel=x,this._container=o,this._wrapper=y,this._closeDropDown=function(w){y.contains(w.target)||(x.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}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 this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var nWe=t0e,pji=new rt,Ple="-1000px";function S$(o,f,m){this._scene=o,this._screenPositionX=Ple,this._screenPositionY=Ple,this._tweens=o.tweens,this._container=m??document.body,this._selectionIndicatorElement=f,this._scale=1,this.position=void 0,this.showSelection=!1,sr.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,sr.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&F(this.position)}}),sr.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(x,y){return Ca.worldToWindowCoordinates(o,x,y)}}S$.prototype.update=function(){if(this.showSelection&&F(this.position)){let o=this.computeScreenSpacePosition(this.position,pji);if(!F(o))this._screenPositionX=Ple,this._screenPositionY=Ple;else{let f=this._container,m=f.parentNode.clientWidth,x=f.parentNode.clientHeight,y=this._selectionIndicatorElement.clientWidth,v=y*.5;o.x=Math.min(Math.max(o.x,-y),m+y)-v,o.y=Math.min(Math.max(o.y,-y),x+y)-v,this._screenPositionX=`${Math.floor(o.x+.25)}px`,this._screenPositionY=`${Math.floor(o.y+.25)}px`}}};S$.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};S$.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};Object.defineProperties(S$.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var oWe=S$;function i0e(o,f){o=Qh(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",y="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",v=document.createElementNS(x,"svg:svg");v.setAttribute("width",160),v.setAttribute("height",160),v.setAttribute("viewBox","0 0 160 160");let C=document.createElementNS(x,"g");C.setAttribute("transform","translate(80,80)"),v.appendChild(C);let T=document.createElementNS(x,"path");T.setAttribute("data-bind","attr: { transform: _transform }"),T.setAttribute("d",y),C.appendChild(T),m.appendChild(v);let S=new oWe(f,this._element,this._container);this._viewModel=S,sr.applyBindings(this._viewModel,this._element)}Object.defineProperties(i0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});i0e.prototype.isDestroyed=function(){return!1};i0e.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),yr(this)};var aWe=i0e;function HO(o,f,m){this._color=o,this._height=f,this._base=m??0}HO.prototype.getHeight=function(){return this._height};HO.prototype.getBase=function(){return this._base};HO.prototype.getStartTime=function(){return this._start};HO.prototype.getStopTime=function(){return this._stop};HO.prototype.setRange=function(o,f){this._start=o,this._stop=f};HO.prototype.render=function(o){let f="";if(this._start&&this._stop&&this._color){let m=$t.secondsDifference(this._start,o.epochJulian),x=Math.round(o.timeBarWidth*o.getAlpha(m)),y=$t.secondsDifference(this._stop,o.epochJulian),v=Math.round(o.timeBarWidth*o.getAlpha(y))-x;x<0&&(v+=x,x=0),x+v>o.timeBarWidth&&(v=o.timeBarWidth-x),v>0&&(f=`<span class="cesium-timeline-highlight" style="left: ${x.toString()}px; width: ${v.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return f};var sWe=HO;function lyt(o,f,m,x){this.interval=o,this.height=f,this.color=m||new Xe(.5,.5,.5,1),this.backgroundColor=x||new Xe(0,0,0,0)}lyt.prototype.render=function(o,f){let m=this.interval.start,x=this.interval.stop,y=f.startJulian,v=$t.addSeconds(f.startJulian,f.duration,new $t);if($t.lessThan(m,y)&&$t.greaterThan(x,v))o.fillStyle=this.color.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height);else if($t.lessThanOrEquals(m,v)&&$t.greaterThanOrEquals(x,y)){let C,T,S;for(C=0;C<f.timeBarWidth;++C){let w=$t.addSeconds(f.startJulian,C/f.timeBarWidth*f.duration,new $t);!F(T)&&$t.greaterThanOrEquals(w,m)?T=C:!F(S)&&$t.greaterThanOrEquals(w,x)&&(S=C)}o.fillStyle=this.backgroundColor.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height),F(T)&&(F(S)||(S=f.timeBarWidth),o.fillStyle=this.color.toCssColorString(),o.fillRect(T,f.y,Math.max(S-T,1),this.height))}};var lWe=lyt,ECe=1e12,aS={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},q2={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},H5=[.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 Lv(o,f){o=Qh(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=aS.none,this._touchMode=q2.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=fji(this),this._onMouseUp=mji(this),this._onMouseMove=xji(this),this._onMouseWheel=gji(this),this._onTouchStart=yji(this),this._onTouchMove=vji(this),this._onTouchEnd=_ji(this);let y=this._timeBarEle;m.addEventListener("mouseup",this._onMouseUp,!1),m.addEventListener("mousemove",this._onMouseMove,!1),y.addEventListener("mousedown",this._onMouseDown,!1),y.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),y.addEventListener("mousewheel",this._onMouseWheel,!1),y.addEventListener("touchstart",this._onTouchStart,!1),y.addEventListener("touchmove",this._onTouchMove,!1),y.addEventListener("touchend",this._onTouchEnd,!1),y.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},f.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Lv.prototype.addEventListener=function(o,f,m){this._topDiv.addEventListener(o,f,m)};Lv.prototype.removeEventListener=function(o,f,m){this._topDiv.removeEventListener(o,f,m)};Lv.prototype.isDestroyed=function(){return!1};Lv.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),yr(this)};Lv.prototype.addHighlightRange=function(o,f,m){let x=new sWe(o,f,m);return this._highlightRanges.push(x),this.resize(),x};Lv.prototype.addTrack=function(o,f,m,x){let y=new lWe(o,f,m,x);return this._trackList.push(y),this._lastHeight=void 0,this.resize(),y};Lv.prototype.zoomTo=function(o,f){if(this._startJulian=o,this._endJulian=f,this._timeBarSecondsSpan=$t.secondsDifference(f,o),this._clock&&this._clock.clockRange!==Gx.UNBOUNDED){let x=this._clock.startTime,y=this._clock.stopTime,v=$t.secondsDifference(y,x),C=$t.secondsDifference(x,this._startJulian),T=$t.secondsDifference(y,this._endJulian);this._timeBarSecondsSpan>=v?(this._timeBarSecondsSpan=v,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):C>0?(this._endJulian=$t.addSeconds(this._endJulian,C,new $t),this._startJulian=x,this._timeBarSecondsSpan=$t.secondsDifference(this._endJulian,this._startJulian)):T<0&&(this._startJulian=$t.addSeconds(this._startJulian,T,new $t),this._endJulian=y,this._timeBarSecondsSpan=$t.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)};Lv.prototype.zoomFrom=function(o){let f=$t.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($t.addSeconds(this._startJulian,f-f*o,new $t),$t.addSeconds(this._endJulian,m*o-m,new $t))};Lv.prototype.makeLabel=function(o){let f=new Date(o);return`${f.getFullYear()} ${f.getMonth()+1} ${f.getDate()-1} ${f.getHours()}:${f.getMinutes()}:${f.getSeconds()}`};Lv.prototype.smallestTicInPixels=7;Lv.prototype._makeTics=function(){let o=this._timeBarEle,f=$t.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan),x=m-8,y,v=this;this._needleEle.style.left=`${m.toString()}px`;let C="",T=.01,S=31536e6,w=1e-10,E=0,L=this._timeBarSecondsSpan;L<T?(L=T,this._timeBarSecondsSpan=T,this._endJulian=$t.addSeconds(this._startJulian,T,new $t)):L>S&&(L=S,this._timeBarSecondsSpan=S,this._endJulian=$t.addSeconds(this._startJulian,S,new $t));let I=this._timeBarEle.clientWidth;I<10&&(I=10);let R=this._startJulian,P=Math.min(L/I*1e-5,.4),A,M=$t.toGregorianDate(R);L>31536e4?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/100)*100,0))):L>31536e3?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/10)*10,0))):L>86400?A=$t.fromDate(new Date(Date.UTC(M.year,0))):A=$t.fromDate(new Date(Date.UTC(M.year,M.month,M.day)));let V=$t.secondsDifference(this._startJulian,$t.addSeconds(A,P,new $t)),G=V+L;this._epochJulian=A;function D(oe){return Math.floor(V/oe)*oe}function N(oe,ce){return Math.ceil(oe/ce+.5)*ce}function k(oe){return(oe-V)/L}function U(oe,ce){return oe-ce*Math.round(oe/ce)}this._rulerEle.innerHTML=this.makeLabel($t.addSeconds(this._endJulian,-T,new $t));let B=this._rulerEle.offsetWidth+20;B<30&&(B=180);let Y=E;E-=w;let J={startTime:V,startJulian:R,epochJulian:A,duration:L,timeBarWidth:I,getAlpha:k};this._highlightRanges.forEach(function(oe){C+=oe.render(J)});let K=0,z=0,j=0,q=B/I;q>1&&(q=1),q*=this._timeBarSecondsSpan;let O=-1,te=-1,ie=H5.length,re;for(re=0;re<ie;++re){let oe=H5[re];if(++O,K=oe,oe>q&&oe>E)break;te<0&&I*(oe/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(te=O)}if(O>0){for(;O>0;)if(--O,Math.abs(U(K,H5[O]))<1e-5){H5[O]>=E&&(z=H5[O]);break}if(te>=0)for(;te<O;){if(Math.abs(U(z,H5[te]))<1e-5&&H5[te]>=E){j=H5[te];break}++te}}E=Y,E>w&&j<1e-5&&Math.abs(E-K)>w&&(j=E,E<=K+w&&(z=0));let ee=-999999,ae;if(I*(j/this._timeBarSecondsSpan)>=3)for(y=D(j);y<=G;y=N(y,j))C+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(z/this._timeBarSecondsSpan)>=3)for(y=D(z);y<=G;y=N(y,z))C+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(K/this._timeBarSecondsSpan)>=2){this._mainTicSpan=K,G+=K,y=D(K);let oe=$t.computeTaiMinusUtc(A);for(;y<=G;){let ce=$t.addSeconds(R,y-V,new $t);if(K>2.1){let fe=$t.computeTaiMinusUtc(ce);Math.abs(fe-oe)>.1&&(y+=fe-oe,ce=$t.addSeconds(R,y-V,new $t))}let pe=Math.round(I*k(y)),ue=this.makeLabel(ce);this._rulerEle.innerHTML=ue,ae=this._rulerEle.offsetWidth,ae<10&&(ae=B);let he=pe-(ae/2-1);he>ee?(ee=he+ae+5,C+=`<span class="cesium-timeline-ticMain" style="left: ${pe.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${he.toString()}px;">${ue}</span>`):C+=`<span class="cesium-timeline-ticSub" style="left: ${pe.toString()}px;"></span>`,y=N(y,K)}}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),J.y=0,this._trackList.forEach(function(oe){oe.render(v._context,J),J.y+=oe.height})};Lv.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let o=this._scrubElement;if(F(this._scrubElement)){let f=$t.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`)}F(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo($t.addSeconds(this._startJulian,this._timelineDrag,new $t),$t.addSeconds(this._endJulian,this._timelineDrag,new $t)))};Lv.prototype._setTimeBarTime=function(o,f){if(o=Math.round(o),this._scrubJulian=$t.addSeconds(this._startJulian,f,new $t),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 fji(o){return function(f){o._mouseMode!==aS.touchOnly&&(f.button===0?(o._mouseMode=aS.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition="-16px 0"),o._onMouseMove(f)):(o._mouseX=f.clientX,f.button===2?o._mouseMode=aS.zoom:o._mouseMode=aS.slide)),f.preventDefault()}}function mji(o){return function(f){o._mouseMode=aS.none,o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0"),o._timelineDrag=0,o._timelineDragLocation=void 0}}function xji(o){return function(f){let m;if(o._mouseMode===aS.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===aS.slide){if(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0){let x=m*o._timeBarSecondsSpan/o._topDiv.clientWidth;o.zoomTo($t.addSeconds(o._startJulian,x,new $t),$t.addSeconds(o._endJulian,x,new $t))}}else o._mouseMode===aS.zoom&&(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0&&o.zoomFrom(Math.pow(1.01,m)))}}function gji(o){return function(f){let m=f.wheelDeltaY||f.wheelDelta||-f.detail;ECe=Math.max(Math.min(Math.abs(m),ECe),1),m/=ECe,o.zoomFrom(Math.pow(1.05,-m))}}function yji(o){return function(f){let m=f.touches.length,x,y,v=o._topDiv.getBoundingClientRect().left;f.preventDefault(),o._mouseMode=aS.touchOnly,m===1?(x=$t.secondsDifference(o._scrubJulian,o._startJulian),y=Math.round(x*o._topDiv.clientWidth/o._timeBarSecondsSpan+v),Math.abs(f.touches[0].clientX-y)<50?(o._touchMode=q2.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition=m===1?"-16px 0":"0 0")):(o._touchMode=q2.singleTap,o._touchState.centerX=f.touches[0].clientX-v)):m===2?(o._touchMode=q2.slideZoom,o._touchState.centerX=(f.touches[0].clientX+f.touches[1].clientX)*.5-v,o._touchState.spanX=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):o._touchMode=q2.ignore}}function _ji(o){return function(f){let m=f.touches.length,x=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap?(o._touchMode=q2.scrub,o._onTouchMove(f)):o._touchMode===q2.scrub&&o._onTouchMove(f),o._mouseMode=aS.touchOnly,m!==1?o._touchMode=m>0?q2.ignore:q2.none:o._touchMode===q2.slideZoom&&(o._touchState.centerX=f.touches[0].clientX-x),o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0")}}function vji(o){return function(f){let m,x,y,v,C,T,S=1,w=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap&&(o._touchMode=q2.slideZoom),o._mouseMode=aS.touchOnly,o._touchMode===q2.scrub?(f.preventDefault(),f.changedTouches.length===1&&(x=f.changedTouches[0].clientX-w,x>=0&&x<=o._topDiv.clientWidth&&o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))):o._touchMode===q2.slideZoom&&(y=f.touches.length,y===2?(v=(f.touches[0].clientX+f.touches[1].clientX)*.5-w,C=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):y===1&&(v=f.touches[0].clientX-w,C=0),F(v)&&(C>0&&o._touchState.spanX>0?(S=o._touchState.spanX/C,T=$t.addSeconds(o._startJulian,(o._touchState.centerX*o._timeBarSecondsSpan-v*o._timeBarSecondsSpan*S)/o._topDiv.clientWidth,new $t)):(m=o._touchState.centerX-v,T=$t.addSeconds(o._startJulian,m*o._timeBarSecondsSpan/o._topDiv.clientWidth,new $t)),o.zoomTo(T,$t.addSeconds(T,o._timeBarSecondsSpan*S,new $t)),o._touchState.centerX=v,o._touchState.spanX=C))}}Lv.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 uWe=Lv;function uyt(o){let f=o.split(` + </div>`,m.appendChild(x);let y=new BNe(f);sr.track(y),sr.applyBindings(y,m),F(y.defaultLayer)&&(y.currentLayer=y.defaultLayer)}var ayt=rji,nji="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",oji="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 HNe(){this._cameraClicked=new Tr,this._closeClicked=new Tr,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",sr.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,sr.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?oji:nji}}),sr.defineProperty(this,"_bodyless",{get:function(){return!F(this.description)||this.description.length===0}})}HNe.prototype.maxHeightOffset=function(o){return`${this.maxHeight-o}px`};Object.defineProperties(HNe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var zNe=HNe;function Yde(o){o=Qh(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 y=document.createElement("button");y.type="button",y.className="cesium-infoBox-close",y.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),y.innerHTML="×",f.appendChild(y);let v=document.createElement("iframe");v.className="cesium-infoBox-iframe",v.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),v.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),v.setAttribute("allowfullscreen",!0),f.appendChild(v);let C=new zNe;sr.applyBindings(C,f),this._container=o,this._element=f,this._frame=v,this._viewModel=C,this._descriptionSubscription=void 0;let T=this;v.addEventListener("load",function(){let S=v.contentDocument,w=S.createElement("link");w.href=oa("Widgets/InfoBox/InfoBoxDescription.css"),w.rel="stylesheet",w.type="text/css";let E=S.createElement("div");E.className="cesium-infoBox-description",S.head.appendChild(w),S.body.appendChild(E),T._descriptionSubscription=Lb(C,"description",function(L){v.style.height="5px",E.innerHTML=L;let I=null,R=E.firstElementChild;if(R!==null&&E.childNodes.length===1){let A=window.getComputedStyle(R);if(A!==null){let M=A["background-color"],V=Xe.fromCssColorString(M);F(V)&&V.alpha!==0&&(I=A["background-color"])}}f.style["background-color"]=I;let P=E.getBoundingClientRect().height;v.style.height=`${P}px`})}),v.setAttribute("src","about:blank")}Object.defineProperties(Yde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});Yde.prototype.isDestroyed=function(){return!1};Yde.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),F(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),yr(this)};var YNe=Yde;function syt(){this.showInstructions=!1;let o=this;this._command=Il(function(){o.showInstructions=!o.showInstructions}),this._showClick=Il(function(){o._touch=!1}),this._showTouch=Il(function(){o._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",sr.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(syt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var KNe=syt;function Kde(o){let f=Qh(o.container),m=new KNe,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 y=document.createElement("span");y.className="cesium-navigationHelpButton-wrapper",f.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",v.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),y.appendChild(v);let C=document.createElement("div");C.className="cesium-navigation-help",C.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),y.appendChild(C);let T=document.createElement("button");T.type="button",T.className="cesium-navigation-button cesium-navigation-button-left",T.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let S=document.createElement("img");S.src=oa("Widgets/Images/NavigationHelp/Mouse.svg"),S.className="cesium-navigation-button-icon",S.style.width="25px",S.style.height="25px",T.appendChild(S),T.appendChild(document.createTextNode("Mouse"));let w=document.createElement("button");w.type="button",w.className="cesium-navigation-button cesium-navigation-button-right",w.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let E=document.createElement("img");E.src=oa("Widgets/Images/NavigationHelp/Touch.svg"),E.className="cesium-navigation-button-icon",E.style.width="25px",E.style.height="25px",w.appendChild(E),w.appendChild(document.createTextNode("Touch")),C.appendChild(T),C.appendChild(w);let L=document.createElement("div");L.className="cesium-click-navigation-help cesium-navigation-help-instructions",L.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),L.innerHTML=` <table> <tr> <td><img src="${oa("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="${oa("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="${oa("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(L);let I=document.createElement("div");I.className="cesium-touch-navigation-help cesium-navigation-help-instructions",I.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),I.innerHTML=` <table> <tr> <td><img src="${oa("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="${oa("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="${oa("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="${oa("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(I),sr.applyBindings(m,y),this._container=f,this._viewModel=m,this._wrapper=y,this._closeInstructions=function(R){y.contains(R.target)||(m.showInstructions=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(Kde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Kde.prototype.isDestroyed=function(){return!1};Kde.prototype.destroy=function(){return ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var JNe=Kde;function jNe(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,sr.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let f=this;this._dismissMessage=Il(function(){f.showingLowFrameRateMessage=!1,f.lowFrameRateMessageDismissed=!0});let m=ZDe.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(jNe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});jNe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),yr(this)};var QNe=jNe;function Jde(o){let f=Qh(o.container),m=new QNe(o),x=document.createElement("div");x.className="cesium-performance-watchdog-message-area",x.setAttribute("data-bind","visible: showingLowFrameRateMessage");let y=document.createElement("button");y.setAttribute("type","button"),y.className="cesium-performance-watchdog-message-dismiss",y.innerHTML="×",y.setAttribute("data-bind","click: dismissMessage"),x.appendChild(y);let v=document.createElement("div");v.className="cesium-performance-watchdog-message",v.setAttribute("data-bind","html: lowFrameRateMessage"),x.appendChild(v),f.appendChild(x),sr.applyBindings(m,x),this._container=f,this._viewModel=m,this._element=x}Object.defineProperties(Jde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Jde.prototype.isDestroyed=function(){return!1};Jde.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var qNe=Jde;function jde(o){this._scene=o,this._orthographic=o.camera.frustum instanceof $a,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=o.mode,sr.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let f=this;sr.defineProperty(this,"selectedTooltip",function(){return f._orthographic?f.tooltipOrthographic:f.tooltipPerspective}),this._toggleDropDown=Il(function(){f.sceneMode===gi.SCENE2D||f._flightInProgress||(f.dropDownVisible=!f.dropDownVisible)}),this._eventHelper=new bv,this._eventHelper.add(o.morphComplete,function(m,x,y,v){f.sceneMode=y,f._orthographic=y===gi.SCENE2D||f._scene.camera.frustum instanceof $a}),this._eventHelper.add(o.preRender,function(){f._flightInProgress=F(o.camera._currentFlight)}),this._switchToPerspective=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToPerspectiveFrustum(),f._orthographic=!1,f.dropDownVisible=!1)}),this._switchToOrthographic=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToOrthographicFrustum(),f._orthographic=!0,f.dropDownVisible=!1)}),this._sceneMode=gi}Object.defineProperties(jde.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}}});jde.prototype.isDestroyed=function(){return!1};jde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var $Ne=jde,aji="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",sji="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 Qde(o,f){o=Qh(o);let m=new $Ne(f);m._perspectivePath=aji,m._orthographicPath=sji;let x=document.createElement("span");x.className="cesium-projectionPicker-wrapper cesium-toolbar-button",o.appendChild(x);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button",y.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'),y.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(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",v.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(v);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),sr.applyBindings(m,x),this._viewModel=m,this._container=o,this._wrapper=x,this._closeDropDown=function(T){x.contains(T.target)||(m.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(Qde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Qde.prototype.isDestroyed=function(){return!1};Qde.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var eWe=Qde;function qde(o,f){this._scene=o;let m=this,x=function(y,v,C,T){m.sceneMode=C,m.dropDownVisible=!1};this._eventHelper=new bv,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",sr.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,sr.defineProperty(this,"selectedTooltip",function(){let y=m.sceneMode;return y===gi.SCENE2D?m.tooltip2D:y===gi.SCENE3D?m.tooltip3D:m.tooltipColumbusView}),this._toggleDropDown=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._morphTo2D=Il(function(){o.morphTo2D(m._duration)}),this._morphTo3D=Il(function(){o.morphTo3D(m._duration)}),this._morphToColumbusView=Il(function(){o.morphToColumbusView(m._duration)}),this._sceneMode=gi}Object.defineProperties(qde.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}}});qde.prototype.isDestroyed=function(){return!1};qde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var tWe=qde,lji="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",uji="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",cji="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 $de(o,f,m){o=Qh(o);let x=new tWe(f,m);x._globePath=lji,x._flatMapPath=uji,x._columbusViewPath=cji;let y=document.createElement("span");y.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",o.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button",v.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'),v.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 -->',y.appendChild(v);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 }'),y.appendChild(C);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.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),y.appendChild(T);let S=document.createElement("button");S.type="button",S.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",S.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 }'),y.appendChild(S),sr.applyBindings(x,y),this._viewModel=x,this._container=o,this._wrapper=y,this._closeDropDown=function(w){y.contains(w.target)||(x.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties($de.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});$de.prototype.isDestroyed=function(){return!1};$de.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var iWe=$de,hji=new rt,Ple="-1000px";function S$(o,f,m){this._scene=o,this._screenPositionX=Ple,this._screenPositionY=Ple,this._tweens=o.tweens,this._container=m??document.body,this._selectionIndicatorElement=f,this._scale=1,this.position=void 0,this.showSelection=!1,sr.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,sr.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&F(this.position)}}),sr.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(x,y){return Ca.worldToWindowCoordinates(o,x,y)}}S$.prototype.update=function(){if(this.showSelection&&F(this.position)){let o=this.computeScreenSpacePosition(this.position,hji);if(!F(o))this._screenPositionX=Ple,this._screenPositionY=Ple;else{let f=this._container,m=f.parentNode.clientWidth,x=f.parentNode.clientHeight,y=this._selectionIndicatorElement.clientWidth,v=y*.5;o.x=Math.min(Math.max(o.x,-y),m+y)-v,o.y=Math.min(Math.max(o.y,-y),x+y)-v,this._screenPositionX=`${Math.floor(o.x+.25)}px`,this._screenPositionY=`${Math.floor(o.y+.25)}px`}}};S$.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};S$.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};Object.defineProperties(S$.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var rWe=S$;function e0e(o,f){o=Qh(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",y="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",v=document.createElementNS(x,"svg:svg");v.setAttribute("width",160),v.setAttribute("height",160),v.setAttribute("viewBox","0 0 160 160");let C=document.createElementNS(x,"g");C.setAttribute("transform","translate(80,80)"),v.appendChild(C);let T=document.createElementNS(x,"path");T.setAttribute("data-bind","attr: { transform: _transform }"),T.setAttribute("d",y),C.appendChild(T),m.appendChild(v);let S=new rWe(f,this._element,this._container);this._viewModel=S,sr.applyBindings(this._viewModel,this._element)}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(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),yr(this)};var nWe=e0e;function HO(o,f,m){this._color=o,this._height=f,this._base=m??0}HO.prototype.getHeight=function(){return this._height};HO.prototype.getBase=function(){return this._base};HO.prototype.getStartTime=function(){return this._start};HO.prototype.getStopTime=function(){return this._stop};HO.prototype.setRange=function(o,f){this._start=o,this._stop=f};HO.prototype.render=function(o){let f="";if(this._start&&this._stop&&this._color){let m=$t.secondsDifference(this._start,o.epochJulian),x=Math.round(o.timeBarWidth*o.getAlpha(m)),y=$t.secondsDifference(this._stop,o.epochJulian),v=Math.round(o.timeBarWidth*o.getAlpha(y))-x;x<0&&(v+=x,x=0),x+v>o.timeBarWidth&&(v=o.timeBarWidth-x),v>0&&(f=`<span class="cesium-timeline-highlight" style="left: ${x.toString()}px; width: ${v.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return f};var oWe=HO;function lyt(o,f,m,x){this.interval=o,this.height=f,this.color=m||new Xe(.5,.5,.5,1),this.backgroundColor=x||new Xe(0,0,0,0)}lyt.prototype.render=function(o,f){let m=this.interval.start,x=this.interval.stop,y=f.startJulian,v=$t.addSeconds(f.startJulian,f.duration,new $t);if($t.lessThan(m,y)&&$t.greaterThan(x,v))o.fillStyle=this.color.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height);else if($t.lessThanOrEquals(m,v)&&$t.greaterThanOrEquals(x,y)){let C,T,S;for(C=0;C<f.timeBarWidth;++C){let w=$t.addSeconds(f.startJulian,C/f.timeBarWidth*f.duration,new $t);!F(T)&&$t.greaterThanOrEquals(w,m)?T=C:!F(S)&&$t.greaterThanOrEquals(w,x)&&(S=C)}o.fillStyle=this.backgroundColor.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height),F(T)&&(F(S)||(S=f.timeBarWidth),o.fillStyle=this.color.toCssColorString(),o.fillRect(T,f.y,Math.max(S-T,1),this.height))}};var aWe=lyt,ECe=1e12,aS={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},q2={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},H5=[.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 Lv(o,f){o=Qh(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=aS.none,this._touchMode=q2.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=dji(this),this._onMouseUp=pji(this),this._onMouseMove=fji(this),this._onMouseWheel=mji(this),this._onTouchStart=xji(this),this._onTouchMove=yji(this),this._onTouchEnd=gji(this);let y=this._timeBarEle;m.addEventListener("mouseup",this._onMouseUp,!1),m.addEventListener("mousemove",this._onMouseMove,!1),y.addEventListener("mousedown",this._onMouseDown,!1),y.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),y.addEventListener("mousewheel",this._onMouseWheel,!1),y.addEventListener("touchstart",this._onTouchStart,!1),y.addEventListener("touchmove",this._onTouchMove,!1),y.addEventListener("touchend",this._onTouchEnd,!1),y.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},f.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Lv.prototype.addEventListener=function(o,f,m){this._topDiv.addEventListener(o,f,m)};Lv.prototype.removeEventListener=function(o,f,m){this._topDiv.removeEventListener(o,f,m)};Lv.prototype.isDestroyed=function(){return!1};Lv.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),yr(this)};Lv.prototype.addHighlightRange=function(o,f,m){let x=new oWe(o,f,m);return this._highlightRanges.push(x),this.resize(),x};Lv.prototype.addTrack=function(o,f,m,x){let y=new aWe(o,f,m,x);return this._trackList.push(y),this._lastHeight=void 0,this.resize(),y};Lv.prototype.zoomTo=function(o,f){if(this._startJulian=o,this._endJulian=f,this._timeBarSecondsSpan=$t.secondsDifference(f,o),this._clock&&this._clock.clockRange!==Gx.UNBOUNDED){let x=this._clock.startTime,y=this._clock.stopTime,v=$t.secondsDifference(y,x),C=$t.secondsDifference(x,this._startJulian),T=$t.secondsDifference(y,this._endJulian);this._timeBarSecondsSpan>=v?(this._timeBarSecondsSpan=v,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):C>0?(this._endJulian=$t.addSeconds(this._endJulian,C,new $t),this._startJulian=x,this._timeBarSecondsSpan=$t.secondsDifference(this._endJulian,this._startJulian)):T<0&&(this._startJulian=$t.addSeconds(this._startJulian,T,new $t),this._endJulian=y,this._timeBarSecondsSpan=$t.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)};Lv.prototype.zoomFrom=function(o){let f=$t.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($t.addSeconds(this._startJulian,f-f*o,new $t),$t.addSeconds(this._endJulian,m*o-m,new $t))};Lv.prototype.makeLabel=function(o){let f=new Date(o);return`${f.getFullYear()} ${f.getMonth()+1} ${f.getDate()-1} ${f.getHours()}:${f.getMinutes()}:${f.getSeconds()}`};Lv.prototype.smallestTicInPixels=7;Lv.prototype._makeTics=function(){let o=this._timeBarEle,f=$t.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan),x=m-8,y,v=this;this._needleEle.style.left=`${m.toString()}px`;let C="",T=.01,S=31536e6,w=1e-10,E=0,L=this._timeBarSecondsSpan;L<T?(L=T,this._timeBarSecondsSpan=T,this._endJulian=$t.addSeconds(this._startJulian,T,new $t)):L>S&&(L=S,this._timeBarSecondsSpan=S,this._endJulian=$t.addSeconds(this._startJulian,S,new $t));let I=this._timeBarEle.clientWidth;I<10&&(I=10);let R=this._startJulian,P=Math.min(L/I*1e-5,.4),A,M=$t.toGregorianDate(R);L>31536e4?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/100)*100,0))):L>31536e3?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/10)*10,0))):L>86400?A=$t.fromDate(new Date(Date.UTC(M.year,0))):A=$t.fromDate(new Date(Date.UTC(M.year,M.month,M.day)));let V=$t.secondsDifference(this._startJulian,$t.addSeconds(A,P,new $t)),G=V+L;this._epochJulian=A;function D(oe){return Math.floor(V/oe)*oe}function N(oe,ce){return Math.ceil(oe/ce+.5)*ce}function k(oe){return(oe-V)/L}function U(oe,ce){return oe-ce*Math.round(oe/ce)}this._rulerEle.innerHTML=this.makeLabel($t.addSeconds(this._endJulian,-T,new $t));let B=this._rulerEle.offsetWidth+20;B<30&&(B=180);let Y=E;E-=w;let J={startTime:V,startJulian:R,epochJulian:A,duration:L,timeBarWidth:I,getAlpha:k};this._highlightRanges.forEach(function(oe){C+=oe.render(J)});let K=0,z=0,j=0,q=B/I;q>1&&(q=1),q*=this._timeBarSecondsSpan;let O=-1,te=-1,ie=H5.length,re;for(re=0;re<ie;++re){let oe=H5[re];if(++O,K=oe,oe>q&&oe>E)break;te<0&&I*(oe/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(te=O)}if(O>0){for(;O>0;)if(--O,Math.abs(U(K,H5[O]))<1e-5){H5[O]>=E&&(z=H5[O]);break}if(te>=0)for(;te<O;){if(Math.abs(U(z,H5[te]))<1e-5&&H5[te]>=E){j=H5[te];break}++te}}E=Y,E>w&&j<1e-5&&Math.abs(E-K)>w&&(j=E,E<=K+w&&(z=0));let ee=-999999,ae;if(I*(j/this._timeBarSecondsSpan)>=3)for(y=D(j);y<=G;y=N(y,j))C+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(z/this._timeBarSecondsSpan)>=3)for(y=D(z);y<=G;y=N(y,z))C+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(K/this._timeBarSecondsSpan)>=2){this._mainTicSpan=K,G+=K,y=D(K);let oe=$t.computeTaiMinusUtc(A);for(;y<=G;){let ce=$t.addSeconds(R,y-V,new $t);if(K>2.1){let fe=$t.computeTaiMinusUtc(ce);Math.abs(fe-oe)>.1&&(y+=fe-oe,ce=$t.addSeconds(R,y-V,new $t))}let pe=Math.round(I*k(y)),ue=this.makeLabel(ce);this._rulerEle.innerHTML=ue,ae=this._rulerEle.offsetWidth,ae<10&&(ae=B);let he=pe-(ae/2-1);he>ee?(ee=he+ae+5,C+=`<span class="cesium-timeline-ticMain" style="left: ${pe.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${he.toString()}px;">${ue}</span>`):C+=`<span class="cesium-timeline-ticSub" style="left: ${pe.toString()}px;"></span>`,y=N(y,K)}}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),J.y=0,this._trackList.forEach(function(oe){oe.render(v._context,J),J.y+=oe.height})};Lv.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let o=this._scrubElement;if(F(this._scrubElement)){let f=$t.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`)}F(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo($t.addSeconds(this._startJulian,this._timelineDrag,new $t),$t.addSeconds(this._endJulian,this._timelineDrag,new $t)))};Lv.prototype._setTimeBarTime=function(o,f){if(o=Math.round(o),this._scrubJulian=$t.addSeconds(this._startJulian,f,new $t),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 dji(o){return function(f){o._mouseMode!==aS.touchOnly&&(f.button===0?(o._mouseMode=aS.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition="-16px 0"),o._onMouseMove(f)):(o._mouseX=f.clientX,f.button===2?o._mouseMode=aS.zoom:o._mouseMode=aS.slide)),f.preventDefault()}}function pji(o){return function(f){o._mouseMode=aS.none,o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0"),o._timelineDrag=0,o._timelineDragLocation=void 0}}function fji(o){return function(f){let m;if(o._mouseMode===aS.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===aS.slide){if(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0){let x=m*o._timeBarSecondsSpan/o._topDiv.clientWidth;o.zoomTo($t.addSeconds(o._startJulian,x,new $t),$t.addSeconds(o._endJulian,x,new $t))}}else o._mouseMode===aS.zoom&&(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0&&o.zoomFrom(Math.pow(1.01,m)))}}function mji(o){return function(f){let m=f.wheelDeltaY||f.wheelDelta||-f.detail;ECe=Math.max(Math.min(Math.abs(m),ECe),1),m/=ECe,o.zoomFrom(Math.pow(1.05,-m))}}function xji(o){return function(f){let m=f.touches.length,x,y,v=o._topDiv.getBoundingClientRect().left;f.preventDefault(),o._mouseMode=aS.touchOnly,m===1?(x=$t.secondsDifference(o._scrubJulian,o._startJulian),y=Math.round(x*o._topDiv.clientWidth/o._timeBarSecondsSpan+v),Math.abs(f.touches[0].clientX-y)<50?(o._touchMode=q2.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition=m===1?"-16px 0":"0 0")):(o._touchMode=q2.singleTap,o._touchState.centerX=f.touches[0].clientX-v)):m===2?(o._touchMode=q2.slideZoom,o._touchState.centerX=(f.touches[0].clientX+f.touches[1].clientX)*.5-v,o._touchState.spanX=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):o._touchMode=q2.ignore}}function gji(o){return function(f){let m=f.touches.length,x=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap?(o._touchMode=q2.scrub,o._onTouchMove(f)):o._touchMode===q2.scrub&&o._onTouchMove(f),o._mouseMode=aS.touchOnly,m!==1?o._touchMode=m>0?q2.ignore:q2.none:o._touchMode===q2.slideZoom&&(o._touchState.centerX=f.touches[0].clientX-x),o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0")}}function yji(o){return function(f){let m,x,y,v,C,T,S=1,w=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap&&(o._touchMode=q2.slideZoom),o._mouseMode=aS.touchOnly,o._touchMode===q2.scrub?(f.preventDefault(),f.changedTouches.length===1&&(x=f.changedTouches[0].clientX-w,x>=0&&x<=o._topDiv.clientWidth&&o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))):o._touchMode===q2.slideZoom&&(y=f.touches.length,y===2?(v=(f.touches[0].clientX+f.touches[1].clientX)*.5-w,C=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):y===1&&(v=f.touches[0].clientX-w,C=0),F(v)&&(C>0&&o._touchState.spanX>0?(S=o._touchState.spanX/C,T=$t.addSeconds(o._startJulian,(o._touchState.centerX*o._timeBarSecondsSpan-v*o._timeBarSecondsSpan*S)/o._topDiv.clientWidth,new $t)):(m=o._touchState.centerX-v,T=$t.addSeconds(o._startJulian,m*o._timeBarSecondsSpan/o._topDiv.clientWidth,new $t)),o.zoomTo(T,$t.addSeconds(T,o._timeBarSecondsSpan*S,new $t)),o._touchState.centerX=v,o._touchState.spanX=C))}}Lv.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 sWe=Lv;function t0e(o,f){F(f)||(f=document.body),f=Qh(f);let m=this,x=sr.observable(km.fullscreen),y=sr.observable(km.enabled),v=f.ownerDocument;this.isFullscreen=void 0,sr.defineProperty(this,"isFullscreen",{get:function(){return x()}}),this.isFullscreenEnabled=void 0,sr.defineProperty(this,"isFullscreenEnabled",{get:function(){return y()},set:function(C){y(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?x()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=Il(function(){km.fullscreen?km.exitFullscreen():km.requestFullscreen(m._fullscreenElement)},sr.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=Qh(o)??v.body,this._callback=function(){x(km.fullscreen)},v.addEventListener(km.changeEventName,this._callback)}Object.defineProperties(t0e.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(o){this._fullscreenElement=o}},command:{get:function(){return this._command}}});t0e.prototype.isDestroyed=function(){return!1};t0e.prototype.destroy=function(){document.removeEventListener(km.changeEventName,this._callback),yr(this)};var lWe=t0e,_ji="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",vji="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 i0e(o,f){o=Qh(o);let m=new lWe(f,o);m._exitFullScreenPath=vji,m._enterFullScreenPath=_ji;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),sr.applyBindings(m,x),this._container=o,this._viewModel=m,this._element=x}Object.defineProperties(i0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});i0e.prototype.isDestroyed=function(){return!1};i0e.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var uWe=i0e,bji=k0(dNt(),1);function Cji(o){let f=!1,m=window.screen;return F(m)&&(F(m.lockOrientation)?f=m.lockOrientation(o):F(m.mozLockOrientation)?f=m.mozLockOrientation(o):F(m.msLockOrientation)?f=m.msLockOrientation(o):F(m.orientation&&m.orientation.lock)&&(f=m.orientation.lock(o))),f}function uyt(){let o=window.screen;F(o)&&(F(o.unlockOrientation)?o.unlockOrientation():F(o.mozUnlockOrientation)?o.mozUnlockOrientation():F(o.msUnlockOrientation)?o.msUnlockOrientation():F(o.orientation&&o.orientation.unlock)&&o.orientation.unlock())}function Tji(o,f,m,x){x()||(m()?(f.useWebVR=!1,o._locked&&(uyt(),o._locked=!1),o._noSleep.disable(),km.exitFullscreen(),m(!1)):(km.fullscreen||km.requestFullscreen(o._vrElement),o._noSleep.enable(),o._locked||(o._locked=Cji("landscape")),f.useWebVR=!0,m(!0)))}function r0e(o,f){let m=this,x=sr.observable(km.enabled),y=sr.observable(!1);this.isVRMode=void 0,sr.defineProperty(this,"isVRMode",{get:function(){return y()}}),this.isVREnabled=void 0,sr.defineProperty(this,"isVREnabled",{get:function(){return x()},set:function(C){x(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return x()?y()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let v=sr.observable(!1);this._isOrthographic=void 0,sr.defineProperty(this,"_isOrthographic",{get:function(){return v()}}),this._eventHelper=new bv,this._eventHelper.add(o.preRender,function(){v(o.camera.frustum instanceof $a)}),this._locked=!1,this._noSleep=new bji.default,this._command=Il(function(){Tji(m,o,y,v)},sr.getObservable(this,"isVREnabled")),this._vrElement=Qh(f)??document.body,this._callback=function(){!km.fullscreen&&y()&&(o.useWebVR=!1,m._locked&&(uyt(),m._locked=!1),m._noSleep.disable(),y(!1))},document.addEventListener(km.changeEventName,this._callback)}Object.defineProperties(r0e.prototype,{vrElement:{get:function(){return this._vrElement},set:function(o){this._vrElement=o}},command:{get:function(){return this._command}}});r0e.prototype.isDestroyed=function(){return!1};r0e.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(km.changeEventName,this._callback),yr(this)};var cWe=r0e,Sji="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",wji="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 n0e(o,f,m){o=Qh(o);let x=new cWe(f,m);x._exitVRPath=wji,x._enterVRPath=Sji;let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-vrButton",y.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(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(n0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});n0e.prototype.isDestroyed=function(){return!1};n0e.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var hWe=n0e,vqe=new Ei;function cyt(o){let f=o.clock;f.currentTime=o.timeJulian,f.shouldAnimate=!1}function Eji(o){let f=o.getPropertyIds(),m="";return f.forEach(function(x){let y=o.getProperty(x);F(y)&&(m+=`<tr><th>${x}</th><td>${y}</td></tr>`)}),m.length>0&&(m=`<table class="cesium-infoBox-defaultTable"><tbody>${m}</tbody></table>`),m}function Lji(o){let f,m=[],x=o.getPropertyIds();for(f=0;f<x.length;f++){let v=x[f];/^name$/i.test(v)?m[0]=o.getProperty(v):/name/i.test(v)?m[1]=o.getProperty(v):/^title$/i.test(v)?m[2]=o.getProperty(v):/^(id|identifier)$/i.test(v)?m[3]=o.getProperty(v):/element/i.test(v)?m[4]=o.getProperty(v):/(id|identifier)$/i.test(v)&&(m[5]=o.getProperty(v))}let y=m.length;for(f=0;f<y;f++){let v=m[f];if(F(v)&&v!=="")return v}return"Unnamed Feature"}function bqe(o,f){let m=o.scene.pick(f.position);if(F(m)){let x=m.id??m.primitive.id;if(x instanceof bd)return x;if(m instanceof Ss)return new bd({name:Lji(m),description:Eji(m),feature:m})}if(F(o.scene.globe))return Rji(o,f.position)}var Pji=new $t;function dWe(o,f){if(F(f)){let m=f.clock;if(F(m)&&F(o)){let x=m.startTime,y=m.stopTime;$t.equals(x,y)&&(y=$t.addSeconds(x,be.EPSILON2,Pji)),o.updateFromClock(),o.zoomTo(x,y)}}}var Iji=new Z;function Rji(o,f){let m=o.scene,x=m.camera.getPickRay(f),y=m.imageryLayers.pickImageryLayerFeatures(x,m);if(!F(y))return;let v=new bd({id:"Loading...",description:"Loading feature information..."});return y.then(function(C){if(o.selectedEntity!==v)return;if(!F(C)||C.length===0){o.selectedEntity=Cqe();return}let T=C[0],S=new bd({id:T.name,description:T.description});if(F(T.position)){let w=o.scene.ellipsoid.cartographicToCartesian(T.position,Iji);S.position=new hI(w)}o.selectedEntity=S},function(){o.selectedEntity===v&&(o.selectedEntity=Cqe())}),v}function Cqe(){return new bd({id:"None",description:"No features found."})}function Aji(o,f){let m=o._geocoder,x=o._homeButton,y=o._sceneModePicker,v=o._projectionPicker,C=o._baseLayerPicker,T=o._animation,S=o._timeline,w=o._fullscreenButton,E=o._infoBox,L=o._selectionIndicator,I=f?"hidden":"visible";if(F(m)&&(m.container.style.visibility=I),F(x)&&(x.container.style.visibility=I),F(y)&&(y.container.style.visibility=I),F(v)&&(v.container.style.visibility=I),F(C)&&(C.container.style.visibility=I),F(T)&&(T.container.style.visibility=I),F(S)&&(S.container.style.visibility=I),F(w)&&w.viewModel.isFullscreenEnabled&&(w.container.style.visibility=I),F(E)&&(E.container.style.visibility=I),F(L)&&(L.container.style.visibility=I),o._container){let R=f||!F(w)?0:w.container.clientWidth;o._vrButton.container.style.right=`${R}px`,o.forceResize()}}function Wc(o,f){o=Qh(o),f=f??si.EMPTY_OBJECT;let m=(!F(f.globe)||f.globe!==!1)&&(!F(f.baseLayerPicker)||f.baseLayerPicker!==!1),x=this,y=document.createElement("div");y.className="cesium-viewer",o.appendChild(y);let v=document.createElement("div");v.className="cesium-viewer-cesiumWidgetContainer",y.appendChild(v);let C=document.createElement("div");C.className="cesium-viewer-bottom",y.appendChild(C);let T=f.scene3DOnly??!1,S,w,E=!1;F(f.clockViewModel)?(w=f.clockViewModel,S=w.clock):(S=new Mz,w=new LNe(S),E=!0);let L=new M4(v,{baseLayer:m&&F(f.selectedImageryProviderViewModel)||F(f.baseLayer)||F(f.imageryProvider)?!1:void 0,clock:S,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:F(f.creditContainer)?f.creditContainer:C,creditViewport:f.creditViewport,dataSources:f.dataSources,scene3DOnly:T,shadows:f.shadows,terrainShadows:f.terrainShadows,mapMode2D:f.mapMode2D,blurActiveElementOnCanvasFocus:f.blurActiveElementOnCanvasFocus,requestRenderMode:f.requestRenderMode,maximumRenderTimeChange:f.maximumRenderTimeChange,depthPlaneEllipsoidOffset:f.depthPlaneEllipsoidOffset,msaaSamples:f.msaaSamples}),I=L.scene,R=new bv;R.add(S.onTick,Wc.prototype._onTick,this);let P;if(!F(f.selectionIndicator)||f.selectionIndicator!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-selectionIndicatorContainer",y.appendChild(ce),P=new nWe(ce,I)}let A;if(!F(f.infoBox)||f.infoBox!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-infoBoxContainer",y.appendChild(ce),A=new YNe(ce);let pe=A.viewModel;R.add(pe.cameraClicked,Wc.prototype._onInfoBoxCameraClicked,this),R.add(pe.closeClicked,Wc.prototype._onInfoBoxClockClicked,this)}let M=document.createElement("div");M.className="cesium-viewer-toolbar",y.appendChild(M);let V;if(!F(f.geocoder)||f.geocoder!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-geocoderContainer",M.appendChild(ce);let pe;typeof f.geocoder=="string"?pe=[new Sde({scene:I,geocodeProviderType:f.geocoder})]:F(f.geocoder)&&typeof f.geocoder!="boolean"&&(pe=Array.isArray(f.geocoder)?f.geocoder:[f.geocoder]),V=new XNe({container:ce,geocoderServices:pe,scene:I}),R.add(V.viewModel.search.beforeExecute,Wc.prototype._clearObjects,this)}let G;(!F(f.homeButton)||f.homeButton!==!1)&&(G=new UNe(M,I),F(V)&&R.add(G.viewModel.command.afterExecute,function(){let ce=V.viewModel;ce.searchText="",ce.isSearchInProgress&&ce.search()}),R.add(G.viewModel.command.beforeExecute,Wc.prototype._clearTrackedObject,this));let D;!T&&(!F(f.sceneModePicker)||f.sceneModePicker!==!1)&&(D=new iWe(M,I));let N;f.projectionPicker&&(N=new eWe(M,I));let k,U;if(m){let ce=f.imageryProviderViewModels??MNe(),pe=f.terrainProviderViewModels??VNe();k=new ANe(M,{globe:I.globe,imageryProviderViewModels:ce,selectedImageryProviderViewModel:f.selectedImageryProviderViewModel,terrainProviderViewModels:pe,selectedTerrainProviderViewModel:f.selectedTerrainProviderViewModel}),U=M.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}F(f.baseLayer)&&f.baseLayer!==!1&&(m&&(k.viewModel.selectedImagery=void 0),I.imageryLayers.removeAll(),I.imageryLayers.add(f.baseLayer)),F(f.terrainProvider)&&(m&&(k.viewModel.selectedTerrain=void 0),I.terrainProvider=f.terrainProvider),F(f.terrain)&&(m&&(I.globe.depthTestAgainstTerrain=!0),I.setTerrain(f.terrain));let B;if(!F(f.navigationHelpButton)||f.navigationHelpButton!==!1){let ce=!0;try{if(F(window.localStorage)){let pe=window.localStorage.getItem("cesium-hasSeenNavHelp");F(pe)&&pe?ce=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}B=new JNe({container:M,instructionsInitiallyVisible:f.navigationInstructionsInitiallyVisible??ce})}let Y;if(!F(f.animation)||f.animation!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-animationContainer",y.appendChild(ce),Y=new PNe(ce,new INe(w))}let J;if(!F(f.timeline)||f.timeline!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-timelineContainer",y.appendChild(ce),J=new sWe(ce,S),J.addEventListener("settime",cyt,!1),J.zoomTo(S.startTime,S.stopTime)}let K,z,j;(!F(f.fullscreenButton)||f.fullscreenButton!==!1)&&(j=document.createElement("div"),j.className="cesium-viewer-fullscreenContainer",y.appendChild(j),K=new uWe(j,f.fullscreenElement),z=Lb(K.viewModel,"isFullscreenEnabled",function(ce){j.style.display=ce?"block":"none",F(J)&&(J.container.style.right=`${j.clientWidth}px`,J.resize())}));let q,O,te;if(f.vrButton){let ce=document.createElement("div");ce.className="cesium-viewer-vrContainer",y.appendChild(ce),q=new hWe(ce,I,f.fullScreenElement),O=Lb(q.viewModel,"isVREnabled",function(pe){ce.style.display=pe?"block":"none",F(K)&&(ce.style.right=`${j.clientWidth}px`),F(J)&&(J.container.style.right=`${ce.clientWidth}px`,J.resize())}),te=Lb(q.viewModel,"isVRMode",function(pe){Aji(x,pe)})}this._baseLayerPickerDropDown=U,this._fullscreenSubscription=z,this._vrSubscription=O,this._vrModeSubscription=te,this._dataSourceChangedListeners={},this._container=o,this._bottomContainer=C,this._element=y,this._cesiumWidget=L,this._selectionIndicator=P,this._infoBox=A,this._clockViewModel=w,this._destroyClockViewModel=E,this._toolbar=M,this._homeButton=G,this._sceneModePicker=D,this._projectionPicker=N,this._baseLayerPicker=k,this._navigationHelpButton=B,this._animation=Y,this._timeline=J,this._fullscreenButton=K,this._vrButton=q,this._geocoder=V,this._eventHelper=R,this._lastWidth=0,this._lastHeight=0,this._enableInfoOrSelection=F(A)||F(P),this._selectedEntity=void 0,this._selectedEntityChanged=new Tr;let ie=this._cesiumWidget.dataSources,re=this._cesiumWidget.dataSourceDisplay;R.add(ie.dataSourceAdded,Wc.prototype._onDataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._onDataSourceRemoved,this),R.add(I.postUpdate,Wc.prototype.resize,this);let ee=ie.length;for(let ce=0;ce<ee;ce++)this._dataSourceAdded(ie,ie.get(ce));this._dataSourceAdded(void 0,re.defaultDataSource),R.add(ie.dataSourceAdded,Wc.prototype._dataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._dataSourceRemoved,this);function ae(ce){let pe=bqe(x,ce);F(pe)?Nt.getValueOrUndefined(pe.position,x.clock.currentTime)?x.trackedEntity=pe:x.zoomTo(pe):F(x.trackedEntity)&&(x.trackedEntity=void 0)}function oe(ce){x.selectedEntity=bqe(x,ce)}L.screenSpaceEventHandler.setInputAction(oe,Si.LEFT_CLICK),L.screenSpaceEventHandler.setInputAction(ae,Si.LEFT_DOUBLE_CLICK),L._canAnimateUpdateCallback=this._updateCanAnimate(this)}Object.defineProperties(Wc.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=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(o)?F(f)&&f.animateAppear():F(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,dWe(this._timeline,o))}}});Wc.prototype.extend=function(o,f){o(this,f)};Wc.prototype.resize=function(){let o=this._cesiumWidget,f=this._container,m=f.clientWidth,x=f.clientHeight,y=F(this._animation),v=F(this._timeline);if(o.resize(),m===this._lastWidth&&x===this._lastHeight)return;let C=x-125,T=this._baseLayerPickerDropDown;if(F(T)&&(T.style.maxHeight=`${C}px`),F(this._geocoder)){let P=this._geocoder.searchSuggestionsContainer;P.style.maxHeight=`${C}px`}F(this._infoBox)&&(this._infoBox.viewModel.maxHeight=C);let S=this._timeline,w,E=0,L=5,I=3,R=0;if(y&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let P=this._lastWidth;w=this._animation.container,m>900?(E=169,P<=900&&(w.style.width="169px",w.style.height="112px",this._animation.resize())):m>=600?(E=136,(P<600||P>900)&&(w.style.width="136px",w.style.height="90px",this._animation.resize())):(E=106,(P>600||P===0)&&(w.style.width="106px",w.style.height="70px",this._animation.resize())),L=E+5}if(v&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let P=this._fullscreenButton,A=this._vrButton,M=S.container,V=M.style;I=M.clientHeight+3,V.left=`${E}px`;let G=0;F(P)&&(G+=P.container.clientWidth),F(A)&&(G+=A.container.clientWidth),V.right=`${G}px`,S.resize()}!v&&F(this._fullscreenButton)&&(R=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${L}px`,this._bottomContainer.style.bottom=`${I}px`,this._bottomContainer.style.right=`${R}px`,this._lastWidth=m,this._lastHeight=x};Wc.prototype.forceResize=function(){this._lastWidth=0,this.resize()};Wc.prototype.render=function(){this._cesiumWidget.render()};Wc.prototype.isDestroyed=function(){return!1};Wc.prototype.destroy=function(){return F(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Si.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Si.LEFT_DOUBLE_CLICK)),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),F(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),F(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),F(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),F(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),F(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),F(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),F(this._timeline)&&(this._timeline.removeEventListener("settime",cyt,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),F(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),F(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),F(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),F(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(),yr(this)};Wc.prototype._dataSourceAdded=function(o,f){f.entities.collectionChanged.addEventListener(Wc.prototype._onEntityCollectionChanged,this)};Wc.prototype._dataSourceRemoved=function(o,f){let m=f.entities;m.collectionChanged.removeEventListener(Wc.prototype._onEntityCollectionChanged,this),F(this.selectedEntity)&&m.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};Wc.prototype._updateCanAnimate=function(o){return function(f){o._clockViewModel.canAnimate=f}};Wc.prototype._onTick=function(o){let f=o.currentTime,m,x=!1,y=this.selectedEntity,v=F(y)&&this._enableInfoOrSelection;v&&y.isShowing&&y.isAvailable(f)&&(this._cesiumWidget.dataSourceDisplay.getBoundingSphere(y,!0,vqe)!==Xo.FAILED?m=vqe.center:F(y.position)&&(m=y.position.getValue(f,m)),x=F(m));let C=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(C)&&(C.position=Z.clone(m,C.position),C.showSelection=v&&x,C.update());let T=F(this._infoBox)?this._infoBox.viewModel:void 0;F(T)&&(T.showInfo=v,T.enableCamera=x,T.isCameraTracking=this.trackedEntity===this.selectedEntity,v?(T.titleText=y.name??y.id,T.description=Nt.getValueOrDefault(y.description,f,"")):(T.titleText="",T.description=""))};Wc.prototype._onEntityCollectionChanged=function(o,f,m){let x=m.length;for(let y=0;y<x;y++){let v=m[y];this.selectedEntity===v&&(this.selectedEntity=void 0)}};Wc.prototype._onInfoBoxCameraClicked=function(o){if(o.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let f=this.selectedEntity.position;F(f)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};Wc.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};Wc.prototype._onInfoBoxClockClicked=function(o){this.selectedEntity=void 0};Wc.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};Wc.prototype._onDataSourceChanged=function(o){this.clockTrackedDataSource===o&&dWe(this.timeline,o)};Wc.prototype._onDataSourceAdded=function(o,f){this._cesiumWidget._automaticallyTrackDataSourceClocks&&f===this.clockTrackedDataSource&&dWe(this._timeline,f);let m=f.entities.id,x=this._eventHelper.add(f.changedEvent,Wc.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[m]=x};Wc.prototype._onDataSourceRemoved=function(o,f){let m=f.entities.id;this._dataSourceChangedListeners[m](),this._dataSourceChangedListeners[m]=void 0};Wc.prototype.zoomTo=function(o,f){return this._cesiumWidget.zoomTo(o,f)};Wc.prototype.flyTo=function(o,f){return this._cesiumWidget.flyTo(o,f)};var o0e=Wc;function Mji(o){let f=document.createElement("div");f.className="cesium-viewer-cesium3DTilesInspectorContainer",o.container.appendChild(f);let m=new FNe(f,o.scene);Object.defineProperties(o,{cesium3DTilesInspector:{get:function(){return m}}})}var hyt=Mji;function Vji(o){let f=document.createElement("div");f.className="cesium-viewer-cesiumInspectorContainer",o.container.appendChild(f);let m=new NNe(f,o.scene);Object.defineProperties(o,{cesiumInspector:{get:function(){return m}}})}var dyt=Vji;function Gji(o,f){f=f??si.EMPTY_OBJECT;let m=!0,x=f.flyToOnDrop??!0,y=new Tr,v=f.clearOnDrop??!0,C=f.dropTarget??o.container,T=f.clampToGround??!0,S=f.proxy;C=Qh(C),Object.defineProperties(o,{dropTarget:{get:function(){return C},set:function(E){Tqe(C,w),C=E,LCe(C,w)}},dropEnabled:{get:function(){return m},set:function(E){E!==m&&(E?LCe(C,w):Tqe(C,w),m=E)}},dropError:{get:function(){return y}},clearOnDrop:{get:function(){return v},set:function(E){v=E}},flyToOnDrop:{get:function(){return x},set:function(E){x=E}},proxy:{get:function(){return S},set:function(E){S=E}},clampToGround:{get:function(){return T},set:function(E){T=E}}});function w(E){UZ(E),v&&(o.entities.removeAll(),o.dataSources.removeAll());let L=E.dataTransfer.files,I=L.length;for(let R=0;R<I;R++){let P=L[R],A=new FileReader;A.onload=Fji(o,P,S,T),A.onerror=Dji(o,P),A.readAsText(P)}}LCe(C,w),o.destroy=SDe(o,o.destroy,function(){o.dropEnabled=!1}),o._handleDrop=w}function UZ(o){o.stopPropagation(),o.preventDefault()}function Tqe(o,f){let m=o;F(m)&&(m.removeEventListener("drop",f,!1),m.removeEventListener("dragenter",UZ,!1),m.removeEventListener("dragover",UZ,!1),m.removeEventListener("dragexit",UZ,!1))}function LCe(o,f){o.addEventListener("drop",f,!1),o.addEventListener("dragenter",UZ,!1),o.addEventListener("dragover",UZ,!1),o.addEventListener("dragexit",UZ,!1)}function Fji(o,f,m,x){let y=o.scene;return function(v){let C=f.name;try{let T;if(/\.czml$/i.test(C))T=n$.load(JSON.parse(v.target.result),{sourceUri:C});else if(/\.geojson$/i.test(C)||/\.json$/i.test(C)||/\.topojson$/i.test(C))T=$Z.load(JSON.parse(v.target.result),{sourceUri:C,clampToGround:x});else if(/\.(kml|kmz)$/i.test(C))T=F7.load(f,{sourceUri:C,proxy:m,camera:y.camera,canvas:y.canvas,clampToGround:x,screenOverlayContainer:o.container});else if(/\.gpx$/i.test(C))T=lDe.load(f,{sourceUri:C,proxy:m});else{o.dropError.raiseEvent(o,C,`Unrecognized file: ${C}`);return}F(T)&&o.dataSources.add(T).then(function(S){o.flyToOnDrop&&o.flyTo(S)}).catch(function(S){o.dropError.raiseEvent(o,C,S)})}catch(T){o.dropError.raiseEvent(o,C,T)}}}function Dji(o,f){return function(m){o.dropError.raiseEvent(o,f.name,m.target.error)}}var pyt=Gji;function Nji(o,f){f=f??si.EMPTY_OBJECT;let m=new qNe({scene:o.scene,container:o.bottomContainer,lowFrameRateMessage:f.lowFrameRateMessage});Object.defineProperties(o,{performanceWatchdog:{get:function(){return m}}})}var fyt=Nji;function myt(o){let f=o.split(` `),m;for(m=0;m<f.length&&!f[m].match(/\S/);m++);if(m===f.length)return"";let x="",y=/^\s*/,v=f[m].match(y)[0].length;for(let C=m;C<f.length;C++){let T=f[C];T.match(y)[0].length>=v&&(T=T.slice(v)),x+=`${T} -`}return x}function $S(o){this._scene=o,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let f=this;function m(y){let{name:v,initialValue:C}=y;f._definedProperties.push(v);let T=y.setPrimitiveFunction;T===!0&&(T=function(E){f._voxelPrimitive[v]=E});let S=y.getPrimitiveFunction;S===!0&&(S=function(){f[v]=f._voxelPrimitive[v]}),F(S)&&f._getPrimitiveFunctions.push(S);let w=sr.observable();return sr.defineProperty(f,v,{get:function(){return w()},set:function(E){typeof C=="number"&&typeof E=="string"&&(E=Number(E),isNaN(E)&&(E=C)),typeof C=="boolean"&&typeof E=="number"&&(E=E===1),w(E),F(T)&&F(f._voxelPrimitive)&&(T(E),o.requestRender())}}),f[v]=C,w}function x(y,v){return function(C){let T=f._voxelPrimitive[y].clone();T[v]=C,f._voxelPrimitive[y]=T}}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 y=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=uyt(y)}}),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 y=f._voxelPrimitive.shape;f.shapeIsBox=y===Gb.BOX}}),m({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsEllipsoid=y===Gb.ELLIPSOID}}),m({name:"shapeIsCylinder",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsCylinder=y===Gb.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:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMaxLongitudeMax",initialValue:be.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:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMax",initialValue:be.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:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMaxLatitudeMax",initialValue:be.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:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMax",initialValue:be.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:-be.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingCylinderMaxAngleMax",initialValue:be.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:-be.PI}),m({name:"clippingCylinderMinAngleMax",initialValue:be.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&&HP(f)},getPrimitiveFunction:function(){f.translationX=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"translationY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationY=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationZ=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleX=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleY=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleZ=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"angleX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}})}var bji=new Z,Cji=new Z,Tji=new rs,Sji=new Ut;function HP(o){let f=Z.fromElements(o.translationX,o.translationY,o.translationZ,bji),m=Z.fromElements(o.scaleX,o.scaleY,o.scaleZ,Cji),x=Tji;x.heading=o.angleX,x.pitch=o.angleY,x.roll=o.angleZ;let y=Ut.fromHeadingPitchRoll(x,Sji),v=Ut.multiplyByScale(y,m,y);o._voxelPrimitive.modelMatrix=Ee.fromRotationTranslation(v,f,o._voxelPrimitive.modelMatrix)}Object.defineProperties($S.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(o){if(F(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),!F(o))return;this._voxelPrimitive=o;let f=this;f._customShaderCompilationRemoveCallback=f._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(m){let x=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=uyt(x),F(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,HP(f)}}});$S.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};$S.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};$S.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};$S.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};$S.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};$S.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};$S.prototype.compileShader=function(){F(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new P1({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};$S.prototype.shaderEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,y=m.selectionEnd,v=y,C=m.value.slice(x,y).split(` +`}return x}function $S(o){this._scene=o,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let f=this;function m(y){let{name:v,initialValue:C}=y;f._definedProperties.push(v);let T=y.setPrimitiveFunction;T===!0&&(T=function(E){f._voxelPrimitive[v]=E});let S=y.getPrimitiveFunction;S===!0&&(S=function(){f[v]=f._voxelPrimitive[v]}),F(S)&&f._getPrimitiveFunctions.push(S);let w=sr.observable();return sr.defineProperty(f,v,{get:function(){return w()},set:function(E){typeof C=="number"&&typeof E=="string"&&(E=Number(E),isNaN(E)&&(E=C)),typeof C=="boolean"&&typeof E=="number"&&(E=E===1),w(E),F(T)&&F(f._voxelPrimitive)&&(T(E),o.requestRender())}}),f[v]=C,w}function x(y,v){return function(C){let T=f._voxelPrimitive[y].clone();T[v]=C,f._voxelPrimitive[y]=T}}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 y=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=myt(y)}}),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 y=f._voxelPrimitive.shape;f.shapeIsBox=y===Gb.BOX}}),m({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsEllipsoid=y===Gb.ELLIPSOID}}),m({name:"shapeIsCylinder",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsCylinder=y===Gb.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:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMaxLongitudeMax",initialValue:be.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:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMax",initialValue:be.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:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMaxLatitudeMax",initialValue:be.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:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMax",initialValue:be.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:-be.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingCylinderMaxAngleMax",initialValue:be.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:-be.PI}),m({name:"clippingCylinderMinAngleMax",initialValue:be.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&&HP(f)},getPrimitiveFunction:function(){f.translationX=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"translationY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationY=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationZ=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleX=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleY=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleZ=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"angleX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}})}var Wji=new Z,Zji=new Z,Oji=new rs,Xji=new Ut;function HP(o){let f=Z.fromElements(o.translationX,o.translationY,o.translationZ,Wji),m=Z.fromElements(o.scaleX,o.scaleY,o.scaleZ,Zji),x=Oji;x.heading=o.angleX,x.pitch=o.angleY,x.roll=o.angleZ;let y=Ut.fromHeadingPitchRoll(x,Xji),v=Ut.multiplyByScale(y,m,y);o._voxelPrimitive.modelMatrix=Ee.fromRotationTranslation(v,f,o._voxelPrimitive.modelMatrix)}Object.defineProperties($S.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(o){if(F(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),!F(o))return;this._voxelPrimitive=o;let f=this;f._customShaderCompilationRemoveCallback=f._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(m){let x=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=myt(x),F(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,HP(f)}}});$S.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};$S.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};$S.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};$S.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};$S.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};$S.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};$S.prototype.compileShader=function(){F(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new P1({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};$S.prototype.shaderEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,y=m.selectionEnd,v=y,C=m.value.slice(x,y).split(` `),T=C.length,S;if(f.shiftKey)for(S=0;S<T;++S)C[S][0]===" "&&(C[S][1]===" "?(C[S]=C[S].substr(2),v-=2):(C[S]=C[S].substr(1),v-=1));else for(S=0;S<T;++S)C[S]=` ${C[S]}`,v+=2;let w=C.join(` -`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileShader();return!0};$S.prototype.isDestroyed=function(){return!1};$S.prototype.destroy=function(){let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};var cWe=$S;function r0e(o,f){o=Qh(o);let m=document.createElement("div"),x=new cWe(f);this._viewModel=x,this._container=o,this._element=m;let y=document.createElement("div");y.textContent="Voxel Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleInspector"),m.appendChild(y),m.className="cesium-cesiumInspector cesium-VoxelInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let v=document.createElement("div");v.className="cesium-cesiumInspector-dropDown",m.appendChild(v);let{createSection:C,createCheckbox:T,createRangeInput:S,createButton:w}=sI,E=C(v,"Display","displayVisible","toggleDisplay"),L=C(v,"Transform","transformVisible","toggleTransform"),I=C(v,"Clipping","clippingVisible","toggleClipping"),R=C(v,"Shader","shaderVisible","toggleShader");E.appendChild(T("Depth Test","depthTest")),E.appendChild(T("Show","show")),E.appendChild(T("Disable Update","disableUpdate")),E.appendChild(T("Debug Draw","debugDraw")),E.appendChild(T("Jitter","jitter")),E.appendChild(T("Nearest Sampling","nearestSampling")),E.appendChild(S("Screen Space Error","screenSpaceError",0,128)),E.appendChild(S("Step Size","stepSize",0,2));let P=10,A=10,M=be.PI;L.appendChild(S("Translation X","translationX",-P,+P)),L.appendChild(S("Translation Y","translationY",-P,+P)),L.appendChild(S("Translation Z","translationZ",-P,+P)),L.appendChild(S("Scale X","scaleX",0,+A)),L.appendChild(S("Scale Y","scaleY",0,+A)),L.appendChild(S("Scale Z","scaleZ",0,+A)),L.appendChild(S("Heading","angleX",-M,+M)),L.appendChild(S("Pitch","angleY",-M,+M)),L.appendChild(S("Roll","angleZ",-M,+M)),LCe("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ","shapeIsBox",I),LCe("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight","shapeIsEllipsoid",I),LCe("Max Radius","Min Radius","Max Angle","Min Angle","Max Height","Min Height","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxAngle","clippingCylinderMinAngle","clippingCylinderMaxHeight","clippingCylinderMinHeight","shapeIsCylinder",I);let V=document.createElement("div");R.appendChild(V);let G=document.createElement("textarea");G.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),V.className="cesium-cesiumInspector-styleEditor",V.appendChild(G);let D=w("Compile (Ctrl+Enter)","compileShader");V.appendChild(D);let N=document.createElement("label");N.style.display="block",N.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),V.appendChild(N),sr.applyBindings(x,m)}Object.defineProperties(r0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});r0e.prototype.isDestroyed=function(){return!1};r0e.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};function LCe(o,f,m,x,y,v,C,T,S,w,E,L,I,R){let P=sI.createRangeInputWithDynamicMinMax,A=R.appendChild(document.createElement("div"));A.setAttribute("data-bind",`if: ${I}`),A.appendChild(P(o,C)),A.appendChild(P(f,T)),A.appendChild(P(m,S)),A.appendChild(P(x,w)),A.appendChild(P(y,E)),A.appendChild(P(v,L))}var hWe=r0e,wji=k0(dNt(),1);function Eji(o){let f=!1,m=window.screen;return F(m)&&(F(m.lockOrientation)?f=m.lockOrientation(o):F(m.mozLockOrientation)?f=m.mozLockOrientation(o):F(m.msLockOrientation)?f=m.msLockOrientation(o):F(m.orientation&&m.orientation.lock)&&(f=m.orientation.lock(o))),f}function cyt(){let o=window.screen;F(o)&&(F(o.unlockOrientation)?o.unlockOrientation():F(o.mozUnlockOrientation)?o.mozUnlockOrientation():F(o.msUnlockOrientation)?o.msUnlockOrientation():F(o.orientation&&o.orientation.unlock)&&o.orientation.unlock())}function Lji(o,f,m,x){x()||(m()?(f.useWebVR=!1,o._locked&&(cyt(),o._locked=!1),o._noSleep.disable(),km.exitFullscreen(),m(!1)):(km.fullscreen||km.requestFullscreen(o._vrElement),o._noSleep.enable(),o._locked||(o._locked=Eji("landscape")),f.useWebVR=!0,m(!0)))}function n0e(o,f){let m=this,x=sr.observable(km.enabled),y=sr.observable(!1);this.isVRMode=void 0,sr.defineProperty(this,"isVRMode",{get:function(){return y()}}),this.isVREnabled=void 0,sr.defineProperty(this,"isVREnabled",{get:function(){return x()},set:function(C){x(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return x()?y()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let v=sr.observable(!1);this._isOrthographic=void 0,sr.defineProperty(this,"_isOrthographic",{get:function(){return v()}}),this._eventHelper=new bv,this._eventHelper.add(o.preRender,function(){v(o.camera.frustum instanceof $a)}),this._locked=!1,this._noSleep=new wji.default,this._command=Il(function(){Lji(m,o,y,v)},sr.getObservable(this,"isVREnabled")),this._vrElement=Qh(f)??document.body,this._callback=function(){!km.fullscreen&&y()&&(o.useWebVR=!1,m._locked&&(cyt(),m._locked=!1),m._noSleep.disable(),y(!1))},document.addEventListener(km.changeEventName,this._callback)}Object.defineProperties(n0e.prototype,{vrElement:{get:function(){return this._vrElement},set:function(o){this._vrElement=o}},command:{get:function(){return this._command}}});n0e.prototype.isDestroyed=function(){return!1};n0e.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(km.changeEventName,this._callback),yr(this)};var dWe=n0e,Pji="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",Iji="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 o0e(o,f,m){o=Qh(o);let x=new dWe(f,m);x._exitVRPath=Iji,x._enterVRPath=Pji;let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-vrButton",y.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(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(o0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});o0e.prototype.isDestroyed=function(){return!1};o0e.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var pWe=o0e,vqe=new Ei;function hyt(o){let f=o.clock;f.currentTime=o.timeJulian,f.shouldAnimate=!1}function Rji(o){let f=o.getPropertyIds(),m="";return f.forEach(function(x){let y=o.getProperty(x);F(y)&&(m+=`<tr><th>${x}</th><td>${y}</td></tr>`)}),m.length>0&&(m=`<table class="cesium-infoBox-defaultTable"><tbody>${m}</tbody></table>`),m}function Aji(o){let f,m=[],x=o.getPropertyIds();for(f=0;f<x.length;f++){let v=x[f];/^name$/i.test(v)?m[0]=o.getProperty(v):/name/i.test(v)?m[1]=o.getProperty(v):/^title$/i.test(v)?m[2]=o.getProperty(v):/^(id|identifier)$/i.test(v)?m[3]=o.getProperty(v):/element/i.test(v)?m[4]=o.getProperty(v):/(id|identifier)$/i.test(v)&&(m[5]=o.getProperty(v))}let y=m.length;for(f=0;f<y;f++){let v=m[f];if(F(v)&&v!=="")return v}return"Unnamed Feature"}function bqe(o,f){let m=o.scene.pick(f.position);if(F(m)){let x=m.id??m.primitive.id;if(x instanceof bd)return x;if(m instanceof Ss)return new bd({name:Aji(m),description:Rji(m),feature:m})}if(F(o.scene.globe))return Gji(o,f.position)}var Mji=new $t;function fWe(o,f){if(F(f)){let m=f.clock;if(F(m)&&F(o)){let x=m.startTime,y=m.stopTime;$t.equals(x,y)&&(y=$t.addSeconds(x,be.EPSILON2,Mji)),o.updateFromClock(),o.zoomTo(x,y)}}}var Vji=new Z;function Gji(o,f){let m=o.scene,x=m.camera.getPickRay(f),y=m.imageryLayers.pickImageryLayerFeatures(x,m);if(!F(y))return;let v=new bd({id:"Loading...",description:"Loading feature information..."});return y.then(function(C){if(o.selectedEntity!==v)return;if(!F(C)||C.length===0){o.selectedEntity=Cqe();return}let T=C[0],S=new bd({id:T.name,description:T.description});if(F(T.position)){let w=o.scene.ellipsoid.cartographicToCartesian(T.position,Vji);S.position=new hI(w)}o.selectedEntity=S},function(){o.selectedEntity===v&&(o.selectedEntity=Cqe())}),v}function Cqe(){return new bd({id:"None",description:"No features found."})}function Fji(o,f){let m=o._geocoder,x=o._homeButton,y=o._sceneModePicker,v=o._projectionPicker,C=o._baseLayerPicker,T=o._animation,S=o._timeline,w=o._fullscreenButton,E=o._infoBox,L=o._selectionIndicator,I=f?"hidden":"visible";if(F(m)&&(m.container.style.visibility=I),F(x)&&(x.container.style.visibility=I),F(y)&&(y.container.style.visibility=I),F(v)&&(v.container.style.visibility=I),F(C)&&(C.container.style.visibility=I),F(T)&&(T.container.style.visibility=I),F(S)&&(S.container.style.visibility=I),F(w)&&w.viewModel.isFullscreenEnabled&&(w.container.style.visibility=I),F(E)&&(E.container.style.visibility=I),F(L)&&(L.container.style.visibility=I),o._container){let R=f||!F(w)?0:w.container.clientWidth;o._vrButton.container.style.right=`${R}px`,o.forceResize()}}function Wc(o,f){o=Qh(o),f=f??si.EMPTY_OBJECT;let m=(!F(f.globe)||f.globe!==!1)&&(!F(f.baseLayerPicker)||f.baseLayerPicker!==!1),x=this,y=document.createElement("div");y.className="cesium-viewer",o.appendChild(y);let v=document.createElement("div");v.className="cesium-viewer-cesiumWidgetContainer",y.appendChild(v);let C=document.createElement("div");C.className="cesium-viewer-bottom",y.appendChild(C);let T=f.scene3DOnly??!1,S,w,E=!1;F(f.clockViewModel)?(w=f.clockViewModel,S=w.clock):(S=new Mz,w=new LNe(S),E=!0);let L=new M4(v,{baseLayer:m&&F(f.selectedImageryProviderViewModel)||F(f.baseLayer)||F(f.imageryProvider)?!1:void 0,clock:S,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:F(f.creditContainer)?f.creditContainer:C,creditViewport:f.creditViewport,dataSources:f.dataSources,scene3DOnly:T,shadows:f.shadows,terrainShadows:f.terrainShadows,mapMode2D:f.mapMode2D,blurActiveElementOnCanvasFocus:f.blurActiveElementOnCanvasFocus,requestRenderMode:f.requestRenderMode,maximumRenderTimeChange:f.maximumRenderTimeChange,depthPlaneEllipsoidOffset:f.depthPlaneEllipsoidOffset,msaaSamples:f.msaaSamples}),I=L.scene,R=new bv;R.add(S.onTick,Wc.prototype._onTick,this);let P;if(!F(f.selectionIndicator)||f.selectionIndicator!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-selectionIndicatorContainer",y.appendChild(ce),P=new aWe(ce,I)}let A;if(!F(f.infoBox)||f.infoBox!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-infoBoxContainer",y.appendChild(ce),A=new JNe(ce);let pe=A.viewModel;R.add(pe.cameraClicked,Wc.prototype._onInfoBoxCameraClicked,this),R.add(pe.closeClicked,Wc.prototype._onInfoBoxClockClicked,this)}let M=document.createElement("div");M.className="cesium-viewer-toolbar",y.appendChild(M);let V;if(!F(f.geocoder)||f.geocoder!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-geocoderContainer",M.appendChild(ce);let pe;typeof f.geocoder=="string"?pe=[new Sde({scene:I,geocodeProviderType:f.geocoder})]:F(f.geocoder)&&typeof f.geocoder!="boolean"&&(pe=Array.isArray(f.geocoder)?f.geocoder:[f.geocoder]),V=new UNe({container:ce,geocoderServices:pe,scene:I}),R.add(V.viewModel.search.beforeExecute,Wc.prototype._clearObjects,this)}let G;(!F(f.homeButton)||f.homeButton!==!1)&&(G=new HNe(M,I),F(V)&&R.add(G.viewModel.command.afterExecute,function(){let ce=V.viewModel;ce.searchText="",ce.isSearchInProgress&&ce.search()}),R.add(G.viewModel.command.beforeExecute,Wc.prototype._clearTrackedObject,this));let D;!T&&(!F(f.sceneModePicker)||f.sceneModePicker!==!1)&&(D=new nWe(M,I));let N;f.projectionPicker&&(N=new $Ne(M,I));let k,U;if(m){let ce=f.imageryProviderViewModels??MNe(),pe=f.terrainProviderViewModels??VNe();k=new ANe(M,{globe:I.globe,imageryProviderViewModels:ce,selectedImageryProviderViewModel:f.selectedImageryProviderViewModel,terrainProviderViewModels:pe,selectedTerrainProviderViewModel:f.selectedTerrainProviderViewModel}),U=M.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}F(f.baseLayer)&&f.baseLayer!==!1&&(m&&(k.viewModel.selectedImagery=void 0),I.imageryLayers.removeAll(),I.imageryLayers.add(f.baseLayer)),F(f.terrainProvider)&&(m&&(k.viewModel.selectedTerrain=void 0),I.terrainProvider=f.terrainProvider),F(f.terrain)&&(m&&(I.globe.depthTestAgainstTerrain=!0),I.setTerrain(f.terrain));let B;if(!F(f.navigationHelpButton)||f.navigationHelpButton!==!1){let ce=!0;try{if(F(window.localStorage)){let pe=window.localStorage.getItem("cesium-hasSeenNavHelp");F(pe)&&pe?ce=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}B=new QNe({container:M,instructionsInitiallyVisible:f.navigationInstructionsInitiallyVisible??ce})}let Y;if(!F(f.animation)||f.animation!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-animationContainer",y.appendChild(ce),Y=new PNe(ce,new INe(w))}let J;if(!F(f.timeline)||f.timeline!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-timelineContainer",y.appendChild(ce),J=new uWe(ce,S),J.addEventListener("settime",hyt,!1),J.zoomTo(S.startTime,S.stopTime)}let K,z,j;(!F(f.fullscreenButton)||f.fullscreenButton!==!1)&&(j=document.createElement("div"),j.className="cesium-viewer-fullscreenContainer",y.appendChild(j),K=new ZNe(j,f.fullscreenElement),z=Lb(K.viewModel,"isFullscreenEnabled",function(ce){j.style.display=ce?"block":"none",F(J)&&(J.container.style.right=`${j.clientWidth}px`,J.resize())}));let q,O,te;if(f.vrButton){let ce=document.createElement("div");ce.className="cesium-viewer-vrContainer",y.appendChild(ce),q=new pWe(ce,I,f.fullScreenElement),O=Lb(q.viewModel,"isVREnabled",function(pe){ce.style.display=pe?"block":"none",F(K)&&(ce.style.right=`${j.clientWidth}px`),F(J)&&(J.container.style.right=`${ce.clientWidth}px`,J.resize())}),te=Lb(q.viewModel,"isVRMode",function(pe){Fji(x,pe)})}this._baseLayerPickerDropDown=U,this._fullscreenSubscription=z,this._vrSubscription=O,this._vrModeSubscription=te,this._dataSourceChangedListeners={},this._container=o,this._bottomContainer=C,this._element=y,this._cesiumWidget=L,this._selectionIndicator=P,this._infoBox=A,this._clockViewModel=w,this._destroyClockViewModel=E,this._toolbar=M,this._homeButton=G,this._sceneModePicker=D,this._projectionPicker=N,this._baseLayerPicker=k,this._navigationHelpButton=B,this._animation=Y,this._timeline=J,this._fullscreenButton=K,this._vrButton=q,this._geocoder=V,this._eventHelper=R,this._lastWidth=0,this._lastHeight=0,this._enableInfoOrSelection=F(A)||F(P),this._selectedEntity=void 0,this._selectedEntityChanged=new Tr;let ie=this._cesiumWidget.dataSources,re=this._cesiumWidget.dataSourceDisplay;R.add(ie.dataSourceAdded,Wc.prototype._onDataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._onDataSourceRemoved,this),R.add(I.postUpdate,Wc.prototype.resize,this);let ee=ie.length;for(let ce=0;ce<ee;ce++)this._dataSourceAdded(ie,ie.get(ce));this._dataSourceAdded(void 0,re.defaultDataSource),R.add(ie.dataSourceAdded,Wc.prototype._dataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._dataSourceRemoved,this);function ae(ce){let pe=bqe(x,ce);F(pe)?Nt.getValueOrUndefined(pe.position,x.clock.currentTime)?x.trackedEntity=pe:x.zoomTo(pe):F(x.trackedEntity)&&(x.trackedEntity=void 0)}function oe(ce){x.selectedEntity=bqe(x,ce)}L.screenSpaceEventHandler.setInputAction(oe,Si.LEFT_CLICK),L.screenSpaceEventHandler.setInputAction(ae,Si.LEFT_DOUBLE_CLICK),L._canAnimateUpdateCallback=this._updateCanAnimate(this)}Object.defineProperties(Wc.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=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(o)?F(f)&&f.animateAppear():F(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,fWe(this._timeline,o))}}});Wc.prototype.extend=function(o,f){o(this,f)};Wc.prototype.resize=function(){let o=this._cesiumWidget,f=this._container,m=f.clientWidth,x=f.clientHeight,y=F(this._animation),v=F(this._timeline);if(o.resize(),m===this._lastWidth&&x===this._lastHeight)return;let C=x-125,T=this._baseLayerPickerDropDown;if(F(T)&&(T.style.maxHeight=`${C}px`),F(this._geocoder)){let P=this._geocoder.searchSuggestionsContainer;P.style.maxHeight=`${C}px`}F(this._infoBox)&&(this._infoBox.viewModel.maxHeight=C);let S=this._timeline,w,E=0,L=5,I=3,R=0;if(y&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let P=this._lastWidth;w=this._animation.container,m>900?(E=169,P<=900&&(w.style.width="169px",w.style.height="112px",this._animation.resize())):m>=600?(E=136,(P<600||P>900)&&(w.style.width="136px",w.style.height="90px",this._animation.resize())):(E=106,(P>600||P===0)&&(w.style.width="106px",w.style.height="70px",this._animation.resize())),L=E+5}if(v&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let P=this._fullscreenButton,A=this._vrButton,M=S.container,V=M.style;I=M.clientHeight+3,V.left=`${E}px`;let G=0;F(P)&&(G+=P.container.clientWidth),F(A)&&(G+=A.container.clientWidth),V.right=`${G}px`,S.resize()}!v&&F(this._fullscreenButton)&&(R=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${L}px`,this._bottomContainer.style.bottom=`${I}px`,this._bottomContainer.style.right=`${R}px`,this._lastWidth=m,this._lastHeight=x};Wc.prototype.forceResize=function(){this._lastWidth=0,this.resize()};Wc.prototype.render=function(){this._cesiumWidget.render()};Wc.prototype.isDestroyed=function(){return!1};Wc.prototype.destroy=function(){return F(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Si.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Si.LEFT_DOUBLE_CLICK)),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),F(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),F(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),F(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),F(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),F(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),F(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),F(this._timeline)&&(this._timeline.removeEventListener("settime",hyt,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),F(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),F(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),F(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),F(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(),yr(this)};Wc.prototype._dataSourceAdded=function(o,f){f.entities.collectionChanged.addEventListener(Wc.prototype._onEntityCollectionChanged,this)};Wc.prototype._dataSourceRemoved=function(o,f){let m=f.entities;m.collectionChanged.removeEventListener(Wc.prototype._onEntityCollectionChanged,this),F(this.selectedEntity)&&m.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};Wc.prototype._updateCanAnimate=function(o){return function(f){o._clockViewModel.canAnimate=f}};Wc.prototype._onTick=function(o){let f=o.currentTime,m,x=!1,y=this.selectedEntity,v=F(y)&&this._enableInfoOrSelection;v&&y.isShowing&&y.isAvailable(f)&&(this._cesiumWidget.dataSourceDisplay.getBoundingSphere(y,!0,vqe)!==Xo.FAILED?m=vqe.center:F(y.position)&&(m=y.position.getValue(f,m)),x=F(m));let C=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(C)&&(C.position=Z.clone(m,C.position),C.showSelection=v&&x,C.update());let T=F(this._infoBox)?this._infoBox.viewModel:void 0;F(T)&&(T.showInfo=v,T.enableCamera=x,T.isCameraTracking=this.trackedEntity===this.selectedEntity,v?(T.titleText=y.name??y.id,T.description=Nt.getValueOrDefault(y.description,f,"")):(T.titleText="",T.description=""))};Wc.prototype._onEntityCollectionChanged=function(o,f,m){let x=m.length;for(let y=0;y<x;y++){let v=m[y];this.selectedEntity===v&&(this.selectedEntity=void 0)}};Wc.prototype._onInfoBoxCameraClicked=function(o){if(o.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let f=this.selectedEntity.position;F(f)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};Wc.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};Wc.prototype._onInfoBoxClockClicked=function(o){this.selectedEntity=void 0};Wc.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};Wc.prototype._onDataSourceChanged=function(o){this.clockTrackedDataSource===o&&fWe(this.timeline,o)};Wc.prototype._onDataSourceAdded=function(o,f){this._cesiumWidget._automaticallyTrackDataSourceClocks&&f===this.clockTrackedDataSource&&fWe(this._timeline,f);let m=f.entities.id,x=this._eventHelper.add(f.changedEvent,Wc.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[m]=x};Wc.prototype._onDataSourceRemoved=function(o,f){let m=f.entities.id;this._dataSourceChangedListeners[m](),this._dataSourceChangedListeners[m]=void 0};Wc.prototype.zoomTo=function(o,f){return this._cesiumWidget.zoomTo(o,f)};Wc.prototype.flyTo=function(o,f){return this._cesiumWidget.flyTo(o,f)};var a0e=Wc;function Dji(o){let f=document.createElement("div");f.className="cesium-viewer-cesium3DTilesInspectorContainer",o.container.appendChild(f);let m=new FNe(f,o.scene);Object.defineProperties(o,{cesium3DTilesInspector:{get:function(){return m}}})}var dyt=Dji;function Nji(o){let f=document.createElement("div");f.className="cesium-viewer-cesiumInspectorContainer",o.container.appendChild(f);let m=new NNe(f,o.scene);Object.defineProperties(o,{cesiumInspector:{get:function(){return m}}})}var pyt=Nji;function Wji(o,f){f=f??si.EMPTY_OBJECT;let m=!0,x=f.flyToOnDrop??!0,y=new Tr,v=f.clearOnDrop??!0,C=f.dropTarget??o.container,T=f.clampToGround??!0,S=f.proxy;C=Qh(C),Object.defineProperties(o,{dropTarget:{get:function(){return C},set:function(E){Tqe(C,w),C=E,PCe(C,w)}},dropEnabled:{get:function(){return m},set:function(E){E!==m&&(E?PCe(C,w):Tqe(C,w),m=E)}},dropError:{get:function(){return y}},clearOnDrop:{get:function(){return v},set:function(E){v=E}},flyToOnDrop:{get:function(){return x},set:function(E){x=E}},proxy:{get:function(){return S},set:function(E){S=E}},clampToGround:{get:function(){return T},set:function(E){T=E}}});function w(E){UZ(E),v&&(o.entities.removeAll(),o.dataSources.removeAll());let L=E.dataTransfer.files,I=L.length;for(let R=0;R<I;R++){let P=L[R],A=new FileReader;A.onload=Zji(o,P,S,T),A.onerror=Oji(o,P),A.readAsText(P)}}PCe(C,w),o.destroy=RDe(o,o.destroy,function(){o.dropEnabled=!1}),o._handleDrop=w}function UZ(o){o.stopPropagation(),o.preventDefault()}function Tqe(o,f){let m=o;F(m)&&(m.removeEventListener("drop",f,!1),m.removeEventListener("dragenter",UZ,!1),m.removeEventListener("dragover",UZ,!1),m.removeEventListener("dragexit",UZ,!1))}function PCe(o,f){o.addEventListener("drop",f,!1),o.addEventListener("dragenter",UZ,!1),o.addEventListener("dragover",UZ,!1),o.addEventListener("dragexit",UZ,!1)}function Zji(o,f,m,x){let y=o.scene;return function(v){let C=f.name;try{let T;if(/\.czml$/i.test(C))T=n$.load(JSON.parse(v.target.result),{sourceUri:C});else if(/\.geojson$/i.test(C)||/\.json$/i.test(C)||/\.topojson$/i.test(C))T=$Z.load(JSON.parse(v.target.result),{sourceUri:C,clampToGround:x});else if(/\.(kml|kmz)$/i.test(C))T=F7.load(f,{sourceUri:C,proxy:m,camera:y.camera,canvas:y.canvas,clampToGround:x,screenOverlayContainer:o.container});else if(/\.gpx$/i.test(C))T=lDe.load(f,{sourceUri:C,proxy:m});else{o.dropError.raiseEvent(o,C,`Unrecognized file: ${C}`);return}F(T)&&o.dataSources.add(T).then(function(S){o.flyToOnDrop&&o.flyTo(S)}).catch(function(S){o.dropError.raiseEvent(o,C,S)})}catch(T){o.dropError.raiseEvent(o,C,T)}}}function Oji(o,f){return function(m){o.dropError.raiseEvent(o,f.name,m.target.error)}}var fyt=Wji;function Xji(o,f){f=f??si.EMPTY_OBJECT;let m=new iWe({scene:o.scene,container:o.bottomContainer,lowFrameRateMessage:f.lowFrameRateMessage});Object.defineProperties(o,{performanceWatchdog:{get:function(){return m}}})}var myt=Xji;function kji(o){let f=document.createElement("div");f.className="cesium-viewer-voxelInspectorContainer",o.container.appendChild(f);let m=new hWe(f,o.scene);Object.defineProperties(o,{voxelInspector:{get:function(){return m}}})}var xyt=kji;globalThis.CESIUM_VERSION="1.129";var s0e="1.129";we();var Vi={};jJ(Vi,{AlphaMode:()=>IH,AlphaPipelineStage:()=>HMe,AnchorPointDirect:()=>zAe,AnchorPointIndirect:()=>YAe,Animation:()=>PNe,AnimationViewModel:()=>INe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>xde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>bce,AtmospherePipelineStage:()=>SMe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>CGe,AutomaticUniforms:()=>bB,Axis:()=>D0,AxisAlignedBoundingBox:()=>b7,B3dmLoader:()=>oMe,B3dmParser:()=>nMe,Base64Encoder:()=>Tae,BaseLayerPicker:()=>ANe,BaseLayerPickerViewModel:()=>RNe,BatchTable:()=>Tz,BatchTableHierarchy:()=>Zce,BatchTexture:()=>JT,BatchTexturePipelineStage:()=>zMe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>sV,BillboardLoadState:()=>Om,BillboardTexture:()=>mz,BillboardVisualizer:()=>PRe,BingMapsGeocoderService:()=>Amt,BingMapsImageryProvider:()=>bO,BingMapsStyle:()=>mhe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>dz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ihe,BoxEmitter:()=>Lde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>IRe,BoxGraphics:()=>wue,BoxOutlineGeometry:()=>HS,BrdfLutGenerator:()=>P5e,Buffer:()=>mo,BufferLoader:()=>iq,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>jMe,CallbackPositionProperty:()=>Z3e,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>VGe,CameraEventType:()=>Jc,CameraFlightPath:()=>uRe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>Mmt,CatmullRomSpline:()=>Vmt,Cesium3DContentGroup:()=>Qce,Cesium3DTile:()=>Zb,Cesium3DTileBatchTable:()=>yq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>wxt,Cesium3DTileContentFactory:()=>ohe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>n4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>uhe,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>CZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>OS,Cesium3DTileStyleEngine:()=>V3e,Cesium3DTilesInspector:()=>FNe,Cesium3DTilesInspectorViewModel:()=>GNe,Cesium3DTilesVoxelProvider:()=>Ext,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>F3e,Cesium3DTilesetCache:()=>A3e,Cesium3DTilesetGraphics:()=>Rue,Cesium3DTilesetHeatmap:()=>M3e,Cesium3DTilesetMetadata:()=>lhe,Cesium3DTilesetMostDetailedTraversal:()=>G3e,Cesium3DTilesetSkipTraversal:()=>D3e,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>W3e,CesiumInspector:()=>NNe,CesiumInspectorViewModel:()=>DNe,CesiumNavigation:()=>aNe,CesiumRenderPass:()=>mNe,CesiumTerrainProvider:()=>W4,CesiumWidget:()=>M4,Check:()=>Da,CheckerboardMaterialProperty:()=>ile,CircleEmitter:()=>GDe,CircleGeometry:()=>Omt,CircleOutlineGeometry:()=>Xmt,CircleWaveMaterialProperty:()=>fz,ClassificationModelDrawCommand:()=>zVe,ClassificationPipelineStage:()=>YMe,ClassificationPrimitive:()=>Sz,ClassificationType:()=>dc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>Ub,ClippingPolygonCollection:()=>Ry,Clock:()=>Mz,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>LNe,CloudCollection:()=>Vxt,CloudType:()=>ple,CollectionSource:()=>jit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Hgt,CommandLoader:()=>sNe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>o3e,CompositeEntityCollection:()=>lmt,CompositeMaterialProperty:()=>nle,CompositePositionProperty:()=>i1,CompositeProperty:()=>nS,CompressedTextureBuffer:()=>NS,ComputeCommand:()=>dV,ComputeEngine:()=>_5e,ComputeRegionBox:()=>Txt,ConditionsExpression:()=>$Pe,ConeEmitter:()=>k4,ConicArcSensor:()=>Tle,ConicArcSensorCollection:()=>Wgt,ConicArcSensorGeometry:()=>wle,ConicArcSensorGraphics:()=>Cle,ConicArcSensorOutlineGeometry:()=>Ele,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>hMe,ConstructionWorker:()=>qit,ContentMetadata:()=>b3e,Context:()=>E5e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>uO,CoplanarPolygonGeometryLibrary:()=>NB,CoplanarPolygonOutlineGeometry:()=>rM,CornerType:()=>ad,CorrelationGroup:()=>KAe,CorridorGeometry:()=>U7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>MRe,CorridorGraphics:()=>Eue,CorridorOutlineGeometry:()=>ARe,Credit:()=>Oa,CreditDisplay:()=>I5e,CubeMap:()=>Ig,CubeMapFace:()=>Iwe,CubicRealPolynomial:()=>u7,CullFace:()=>yh,CullingVolume:()=>fm,CumulusCloud:()=>wL,CustomDataSource:()=>Vue,CustomHeightmapTerrainProvider:()=>kmt,CustomMercatorProjection:()=>gz,CustomShader:()=>P1,CustomShaderManagerEx:()=>vue,CustomShaderMode:()=>g7,CustomShaderPipelineStage:()=>rVe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Vrt,CylinderGeometry:()=>B7,CylinderGeometryLibrary:()=>mce,CylinderGeometryUpdater:()=>VRe,CylinderGraphics:()=>Lue,CylinderOutlineGeometry:()=>H7,CzmlDataSource:()=>n$,DataSource:()=>Sy,DataSourceClock:()=>n9,DataSourceCollection:()=>ERe,DataSourceDisplay:()=>Pq,DebugAppearance:()=>Zxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>UGe,DebugModelMatrixPrimitive:()=>WDe,DefaultProxy:()=>Bmt,DepthFunction:()=>wy,DepthPlane:()=>M5e,DequantizationPipelineStage:()=>nVe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>V5e,DirectionalLight:()=>U4,DiscardEmptyTileImagePolicy:()=>xhe,DiscardMissingTileImagePolicy:()=>q3e,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>QDe,DoubleEndedPriorityQueue:()=>Yhe,DoublyLinkedList:()=>Tq,DracoLoader:()=>rq,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>K7,DynamicEnvironmentMapManager:()=>PH,DynamicGeometryBatch:()=>dce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>_7,EarthOrientationParameters:()=>awe,EarthOrientationParametersSample:()=>l7,EasingFunction:()=>J_,EllipseGeometry:()=>SS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>GRe,EllipseGraphics:()=>Pue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>WRe,EllipsoidGraphics:()=>Lz,EllipsoidOutlineGeometry:()=>Db,EllipsoidPrimitive:()=>g5e,EllipsoidRhumbLine:()=>uS,EllipsoidSurfaceAppearance:()=>rO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>RS,EllipsoidalOccluder:()=>U9,Empty3DTileContent:()=>C6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>US,EntityView:()=>H3e,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>xb,ExpandByTerra:()=>Grt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>hNe,FBXPrimitive:()=>Vde,FBXTreeParser:()=>cNe,FeatureDataProvider:()=>jue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>xq,FeatureJsonData:()=>Fz,FisheyeProjectionMap:()=>Z7,FisheyeProjectionMapShader:()=>jj,FlattenVS:()=>Vgt,FlowEcharts:()=>Ede,Fog:()=>F5e,ForEach:()=>Or,FrameRateMonitor:()=>ZDe,FrameState:()=>D5e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Fhe,FrustumGeometry:()=>Dz,FrustumOutlineGeometry:()=>W7,Fullscreen:()=>km,FullscreenButton:()=>ZNe,FullscreenButtonViewModel:()=>WNe,GWBaiduImageryProvider:()=>Wz,GeoJsonDataSource:()=>$Z,GeoJsonLoader:()=>lMe,GeocodeType:()=>a$,Geocoder:()=>UNe,GeocoderService:()=>bde,GeocoderViewModel:()=>kNe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>a3e,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Kmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>sVe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>Y7,GeometryVisualizer:()=>nAe,GetFeatureInfoFormat:()=>cQ,GifImageProperty:()=>Sst,Globe:()=>d5e,GlobeDepth:()=>k5e,GlobeSurfaceShaderSet:()=>j3e,GlobeSurfaceTile:()=>UM,GlobeSurfaceTileProvider:()=>u5e,GlobeTranslucency:()=>Dq,GlobeTranslucencyFramebuffer:()=>U5e,GlobeTranslucencyState:()=>W5e,GltfBufferViewLoader:()=>Sce,GltfDracoLoader:()=>wce,GltfGpmLoader:()=>jAe,GltfGpmLocal:()=>Wce,GltfImageLoader:()=>Ece,GltfIndexBufferLoader:()=>Lce,GltfInstanceLoader:()=>Oce,GltfJsonLoader:()=>Rce,GltfLoader:()=>mO,GltfLoaderUtil:()=>OM,GltfMeshPrimitiveGpmLoader:()=>eMe,GltfStructuralMetadataLoader:()=>BAe,GltfTextureLoader:()=>Ace,GltfVertexBufferLoader:()=>Mce,GoogleEarthEnterpriseImageryProvider:()=>Oxt,GoogleEarthEnterpriseMapsProvider:()=>t5e,GoogleEarthEnterpriseMetadata:()=>O4,GoogleEarthEnterpriseTerrainData:()=>dle,GoogleEarthEnterpriseTerrainProvider:()=>ext,GoogleEarthEnterpriseTileInformation:()=>SDe,GoogleGeocoderService:()=>ixt,GoogleMaps:()=>gQ,GpxDataSource:()=>lDe,Graticules:()=>ace,GregorianDate:()=>pz,GridImageryProvider:()=>Xxt,GridMaterialProperty:()=>ole,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>bz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>kS,GroupMetadata:()=>Pse,GwBufferAnalysis:()=>sce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>qSe,HeightMap:()=>Pgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>fhe,HermitePolynomialApproximation:()=>KFe,HermiteSpline:()=>_6,HilbertOrder:()=>Tse,HomeButton:()=>HNe,HomeButtonViewModel:()=>BNe,HorizontalOrigin:()=>ec,HugeAdapter:()=>gq,I3SBuildingSceneLayerExplorer:()=>ayt,I3SBuildingSceneLayerExplorerViewModel:()=>zNe,I3SDataProvider:()=>gR,I3SDecoder:()=>FFe,I3SFeature:()=>NFe,I3SField:()=>WFe,I3SGeometry:()=>jse,I3SLayer:()=>ede,I3SNode:()=>Qse,I3SStatistics:()=>OFe,I3SSublayer:()=>XFe,I3SSymbology:()=>ZFe,I3dmLoader:()=>cMe,I3dmParser:()=>uMe,ITwinData:()=>kxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>f5e,Iau2006XysData:()=>lwe,Iau2006XysSample:()=>oue,IauOrientationAxes:()=>m5e,IauOrientationParameters:()=>p5e,ImageBasedLighting:()=>dq,ImageBasedLightingPipelineStage:()=>EMe,ImageCombine:()=>gue,ImageMaterialProperty:()=>O0,Imagery:()=>bhe,ImageryLayer:()=>Up,ImageryLayerCollection:()=>c5e,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>Lse,ImplicitAvailabilityBitstream:()=>wse,ImplicitMetadataView:()=>$ce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>ehe,ImplicitSubtreeCache:()=>MDe,ImplicitSubtreeMetadata:()=>c3e,ImplicitTileCoordinates:()=>dhe,ImplicitTileset:()=>hhe,IndexDatatype:()=>Fn,InfoBox:()=>JNe,InfoBoxViewModel:()=>KNe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>OMe,InterpolationAlgorithm:()=>rxt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>mc,Intersections2D:()=>N4,Interval:()=>VE,InvertClassification:()=>Vhe,Ion:()=>GG,IonGeocodeProviderType:()=>kZ,IonGeocoderService:()=>Sde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>zB,Iso8601:()=>wn,JobScheduler:()=>Z5e,JobType:()=>G_,JsonMetadataTable:()=>Q7,JulianDate:()=>$t,KTX2Transcoder:()=>twe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>MIe,KmlDataSource:()=>F7,KmlLookAt:()=>VIe,KmlTour:()=>GIe,KmlTourFlyTo:()=>FIe,KmlTourWait:()=>NIe,Label:()=>LQ,LabelCollection:()=>rV,LabelGraphics:()=>Pz,LabelStyle:()=>f0,LabelVisualizer:()=>oAe,LagrangePolynomialApproximation:()=>jFe,LeapSecond:()=>xh,Light:()=>Bxt,LightingModel:()=>uv,LightingPipelineStage:()=>uVe,LinearApproximation:()=>Hue,LinearSampler:()=>qI,LinearSpline:()=>mq,MTLLoader:()=>dNe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>axt,MapboxImageryProvider:()=>CO,MapboxStyleImageryProvider:()=>zxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>hVe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>Khe,MeshParser:()=>uNe,MeshPhongMaterial:()=>vQ,MeshPrimitiveGpmLocal:()=>$Ae,MetadataClass:()=>qz,MetadataClassProperty:()=>Jz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>XAe,MetadataEnumValue:()=>OAe,MetadataPicking:()=>O5e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>PM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Vce,MetadataSemantic:()=>the,MetadataTable:()=>pO,MetadataTableProperty:()=>gAe,MetadataType:()=>fo,MipmapHint:()=>O9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>AVe,ModelAnimation:()=>gMe,ModelAnimationChannel:()=>mMe,ModelAnimationCollection:()=>yMe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>IMe,ModelArticulationStage:()=>PMe,ModelClippingPlanesPipelineStage:()=>MMe,ModelClippingPolygonsPipelineStage:()=>FMe,ModelColorPipelineStage:()=>v6,ModelComponents:()=>ll,ModelDrawCommand:()=>YVe,ModelDrawCommands:()=>jVe,ModelFeature:()=>_Me,ModelFeatureTable:()=>vMe,ModelFlattenPipelineStage:()=>$Ve,ModelGraphics:()=>C7,ModelLightingOptions:()=>UVe,ModelMatrixUpdateStage:()=>kMe,ModelNode:()=>DMe,ModelRenderResources:()=>DVe,ModelRuntimeNode:()=>BMe,ModelRuntimePrimitive:()=>PVe,ModelSceneGraph:()=>e3e,ModelSilhouettePipelineStage:()=>ZVe,ModelSkin:()=>RVe,ModelSplitterPipelineStage:()=>XVe,ModelStatistics:()=>t3e,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>n3e,Moon:()=>y5e,MorphTargetsPipelineStage:()=>pVe,MorphWeightSpline:()=>sxt,MortonOrder:()=>MH,MultiResourceImageryProvider:()=>Zz,MultiResourceTerrainProvider:()=>lce,Multiple3DTileContent:()=>E3e,MultisampleFramebuffer:()=>iMe,NavigationControl:()=>j4,NavigationHelpButton:()=>QNe,NavigationHelpButtonViewModel:()=>jNe,NavigationUtils:()=>Q4,NavigationViewModel:()=>yQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Yxt,NodeRenderResources:()=>kVe,NodeStatisticsPipelineStage:()=>UMe,NodeTransformationProperty:()=>Iue,OBJLoader:()=>fNe,OBJPrimitive:()=>Gde,OIT:()=>Y5e,Occluder:()=>oce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Oz,OpenCageGeocoderService:()=>lxt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>LRe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>gm,Packable:()=>uxt,PackableForInterpolation:()=>cxt,Particle:()=>Ide,ParticleBurst:()=>H4,ParticleEmitter:()=>jxt,ParticleSystem:()=>qS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>T7,PathVisualizer:()=>O3e,PeliasGeocoderService:()=>LDe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Xq,PerformanceWatchdog:()=>iWe,PerformanceWatchdogViewModel:()=>tWe,PerspectiveFrustum:()=>xc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>O7,PerspectiveProjectionMapShader:()=>Qj,PerspectiveProjectionMapWithDepth:()=>X7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>X5e,PickDepthFramebuffer:()=>K5e,PickFramebuffer:()=>J5e,PickGlobeSlope:()=>Bft,PickedMetadataInfo:()=>gFe,Picking:()=>iGe,PickingPipelineStage:()=>fVe,PinBuilder:()=>L7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>ZRe,PlaneGeometryUpdater:()=>kRe,PlaneGraphics:()=>pIe,PlaneOutlineGeometry:()=>ORe,PntsLoader:()=>i3e,PntsParser:()=>Jce,PointCloud:()=>VFe,PointCloudEyeDomeLighting:()=>pq,PointCloudShading:()=>r4,PointCloudStylingPipelineStage:()=>xVe,PointGraphics:()=>Aue,PointLight:()=>ide,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>nV,PointVisualizer:()=>X3e,PolygonDepth:()=>C9,PolygonDepthFS:()=>zce,PolygonDepthVS:()=>Yce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>BRe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>URe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>am,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>k3e,PolylineGlowMaterialProperty:()=>ale,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>jM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Hft,PolylineVisualizer:()=>B3e,PolylineVolumeGeometry:()=>HRe,PolylineVolumeGeometryLibrary:()=>c9,PolylineVolumeGeometryUpdater:()=>YRe,PolylineVolumeGraphics:()=>Mue,PolylineVolumeOutlineGeometry:()=>zRe,PositionProperty:()=>Ez,PositionPropertyArray:()=>pH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>EGe,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>khe,PpeMetadata:()=>qAe,PpeSource:()=>Ogt,PpeTexture:()=>QAe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>lq,PrimitiveOutlineGenerator:()=>Dce,PrimitiveOutlinePipelineStage:()=>_Ve,PrimitivePipeline:()=>QZ,PrimitiveRenderResources:()=>BVe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>vVe,PrimitiveType:()=>pn,ProjectionPicker:()=>$Ne,ProjectionPickerViewModel:()=>qNe,Property:()=>Nt,PropertyArray:()=>dde,PropertyAttribute:()=>Tce,PropertyAttributeProperty:()=>fAe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>$7,PropertyTextureProperty:()=>dAe,ProviderViewModel:()=>Ef,Proxy:()=>pxt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>Ehe,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Kft,QuadtreeTile:()=>Nq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>XO,QuantizedMeshTerrainData:()=>yde,QuarticRealPolynomial:()=>Swe,Quaternion:()=>fr,QuaternionSpline:()=>pMe,Queue:()=>lV,RasterizeHtml:()=>V4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>vce,RectangleGeometry:()=>cO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>$Re,RectangleGraphics:()=>Iz,RectangleOutlineGeometry:()=>gce,RectangularSensor:()=>Z6,RectangularSensorFS:()=>gle,RectangularSensorGraphics:()=>Zgt,RectangularSensorPrimitive:()=>bNe,RectangularSensorScanPlaneFS:()=>vNe,RectangularSensorVS:()=>Dde,RectangularSensorVisualizer:()=>CNe,ReferenceFrame:()=>fp,ReferenceProperty:()=>V7,RegionPolygonTexture:()=>YDe,RegionTexture:()=>KDe,RegionWeather:()=>Fde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Ib,Request:()=>dm,RequestErrorEvent:()=>YZ,RequestScheduler:()=>x1,RequestState:()=>fc,RequestType:()=>n2,ResetViewNavigationControl:()=>eNe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>YS,ResourceCacheStatistics:()=>UAe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>UB,S3MDataSource:()=>qft,SDFSettings:()=>ev,SampledPositionProperty:()=>oS,SampledProperty:()=>hM,Sampler:()=>Yo,ScaledPositionProperty:()=>Vz,Scene:()=>GO,SceneFramebuffer:()=>Dhe,SceneHeightMap:()=>_Ne,SceneHeightWaterPostProcessing:()=>kT,SceneHeightWaterPrimitive:()=>Tgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>bVe,SceneModePicker:()=>nWe,SceneModePickerViewModel:()=>rWe,SceneTransforms:()=>Ca,SceneTransitioner:()=>MGe,ScreenSpaceCameraController:()=>ZGe,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>b6,SelectionIndicator:()=>aWe,SelectionIndicatorViewModel:()=>oWe,Sensor:()=>wgt,SensorVolumePortionToDisplay:()=>lle,ShaderBuilder:()=>Bce,ShaderCache:()=>b5e,ShaderDestination:()=>Ji,ShaderFunction:()=>FVe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>VVe,ShadowMap:()=>RV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>_M,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>E6,SimplePolylineGeometry:()=>fxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>TVe,SkyAtmosphere:()=>qq,SkyBox:()=>FO,SlopeArrow:()=>Wde,SpatialNode:()=>pFe,Spdcf:()=>JAe,SpecularEnvironmentCubeMap:()=>v9,SphereEmitter:()=>z4,SphereGeometry:()=>mxt,SphereOutlineGeometry:()=>uV,Spherical:()=>QFe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>jhe,SpotLight:()=>emt,StaticGeometryColorBatch:()=>pM,StaticGeometryPerMaterialBatch:()=>fM,StaticGroundGeometryColorBatch:()=>hse,StaticGroundGeometryPerMaterialBatch:()=>rAe,StaticGroundPolylinePerMaterialBatch:()=>U3e,StaticOutlineGeometryBatch:()=>dse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>dMe,Stereographic:()=>Pb,StorageType:()=>RH,StripeMaterialProperty:()=>sle,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>b9,StyleExpression:()=>Qxt,Sun:()=>AFe,SunLight:()=>T4,SunPostProcess:()=>kGe,SupportedImageFormats:()=>HAe,SvgPathBindingHandler:()=>ENe,TaskProcessor:()=>xp,Terrain:()=>BDe,TerrainData:()=>_O,TerrainEncoding:()=>IS,TerrainFillMesh:()=>She,TerrainFlatten:()=>UO,TerrainFlattenPolygonTexture:()=>JDe,TerrainMesh:()=>vO,TerrainOffsetProperty:()=>fce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>yNe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>uDe,TextureAtlas:()=>lue,TextureCache:()=>C5e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>QPe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>sue,TextureUniform:()=>due,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>PS,TileBoundingS2Cell:()=>L3e,TileBoundingSphere:()=>TV,TileBoundingVolume:()=>qxt,TileCoordinatesImageryProvider:()=>f$,TileDiscardPolicy:()=>$xt,TileEdge:()=>hs,TileImagery:()=>Che,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>T3e,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>sm,TileReplacementQueue:()=>Phe,TileSelectionResult:()=>fa,TileState:()=>egt,Tileset3DTileContent:()=>h3e,TilesetMetadata:()=>R3e,TilesetPipelineStage:()=>bMe,TilesetRegionWeather:()=>gNe,TilingScheme:()=>xxt,TimeConstants:()=>hc,TimeDynamicImagery:()=>vhe,TimeDynamicPointCloud:()=>Qhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>VH,TimeIntervalCollectionProperty:()=>fH,TimeStandard:()=>cu,Timeline:()=>uWe,TimelineHighlightRange:()=>sWe,TimelineTrack:()=>lWe,Tipsify:()=>Ewe,ToggleButtonViewModel:()=>yB,Tonemapper:()=>wZ,TrackingReferenceFrame:()=>EB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>eGe,TridiagonalSystemSolver:()=>Xce,TrustedServers:()=>eue,TweenCollection:()=>Hhe,UniformState:()=>T5e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>rmt,UrlTemplateImageryProvider:()=>zb,UserInterfaceControl:()=>Mde,Utils:()=>TL,VERSION:()=>s0e,VRButton:()=>pWe,VRButtonViewModel:()=>dWe,VRTheWorldTerrainProvider:()=>vxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>AH,Vector3DTileClampedPolylines:()=>g3e,Vector3DTileContent:()=>v3e,Vector3DTileGeometry:()=>pZ,Vector3DTilePoints:()=>d3e,Vector3DTilePolygons:()=>p3e,Vector3DTilePolylines:()=>nhe,Vector3DTilePrimitive:()=>qce,VelocityOrientationProperty:()=>qFe,VelocityVectorProperty:()=>Iq,VertexArray:()=>Cu,VertexArrayFacade:()=>h7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>wVe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>gxt,View:()=>N1,ViewShed:()=>Dgt,ViewShedMap:()=>R4,ViewShedMapShader:()=>XG,Viewer:()=>a0e,ViewportQuad:()=>K4,Visibility:()=>Rl,Visualizer:()=>Lmt,VolumeCloud:()=>Zde,VoxelBoxShape:()=>Yq,VoxelCell:()=>BGe,VoxelContent:()=>zhe,VoxelCylinderShape:()=>Kq,VoxelEllipsoidShape:()=>Jq,VoxelInspector:()=>hWe,VoxelInspectorViewModel:()=>cWe,VoxelMetadataOrder:()=>E9,VoxelPrimitive:()=>Qq,VoxelProvider:()=>tgt,VoxelRenderResources:()=>oFe,VoxelShape:()=>igt,VoxelShapeType:()=>Gb,VoxelTraversal:()=>fFe,VulkanConstants:()=>bxt,WallGeometry:()=>eAe,WallGeometryLibrary:()=>yce,WallGeometryUpdater:()=>iAe,WallGraphics:()=>S7,WallOutlineGeometry:()=>tAe,WaterFS:()=>sRe,WaterHeightMap:()=>Igt,WaterMaterialProperty:()=>nmt,WaterPipelinePrimitive:()=>lde,WaterPostProcessing:()=>vle,WaterPostProcessingEx:()=>ble,WaterPrimitive:()=>Ode,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>TNe,WaterReflectImageEx:()=>SNe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>TO,WebMapTileServiceImageryProvider:()=>LV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>gp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Uce,WireframePipelineStage:()=>LVe,ZoomNavigationControl:()=>fle,_shadersAcesTonemappingStage:()=>rGe,_shadersAdditiveBlend:()=>OGe,_shadersAdjustTranslucentFS:()=>Ose,_shadersAllMaterialAppearanceFS:()=>jIe,_shadersAllMaterialAppearanceVS:()=>QIe,_shadersAmbientOcclusionGenerate:()=>nGe,_shadersAmbientOcclusionModulate:()=>oGe,_shadersAspectRampMaterial:()=>Awe,_shadersAtmosphereCommon:()=>y9,_shadersAtmosphereStageFS:()=>CMe,_shadersAtmosphereStageVS:()=>TMe,_shadersBasicMaterialAppearanceFS:()=>qIe,_shadersBasicMaterialAppearanceVS:()=>$Ie,_shadersBillboardCollectionFS:()=>MPe,_shadersBillboardCollectionVS:()=>VPe,_shadersBlackAndWhite:()=>aGe,_shadersBloomComposite:()=>sGe,_shadersBrdfLutGeneratorFS:()=>L5e,_shadersBrightPass:()=>XGe,_shadersBrightness:()=>lGe,_shadersBumpMapMaterial:()=>Mwe,_shadersCPUStylingStageFS:()=>JMe,_shadersCPUStylingStageVS:()=>KMe,_shadersCheckerboardMaterial:()=>Vwe,_shadersCloudCollectionFS:()=>cDe,_shadersCloudCollectionVS:()=>hDe,_shadersCloudNoiseFS:()=>dDe,_shadersCloudNoiseVS:()=>pDe,_shadersCompareAndPackTranslucentDepth:()=>$5e,_shadersCompositeOITFS:()=>B5e,_shadersCompositeTranslucentClassification:()=>hQ,_shadersComputeIrradianceFS:()=>sAe,_shadersComputeRadianceMapFS:()=>lAe,_shadersContrastBias:()=>uGe,_shadersConvolveSpecularMapFS:()=>uAe,_shadersConvolveSpecularMapVS:()=>cAe,_shadersCustomShaderStageFS:()=>qMe,_shadersCustomShaderStageVS:()=>QMe,_shadersCzmBuiltins:()=>Fj,_shadersDepthOfField:()=>cGe,_shadersDepthPlaneFS:()=>R5e,_shadersDepthPlaneVS:()=>A5e,_shadersDepthView:()=>hGe,_shadersDepthViewPacked:()=>Rgt,_shadersDotMaterial:()=>Gwe,_shadersEdgeDetection:()=>dGe,_shadersElevationBandMaterial:()=>Fwe,_shadersElevationContourMaterial:()=>Dwe,_shadersElevationRampMaterial:()=>Nwe,_shadersEllipsoidFS:()=>Wse,_shadersEllipsoidSurfaceAppearanceFS:()=>iRe,_shadersEllipsoidSurfaceAppearanceVS:()=>rRe,_shadersEllipsoidVS:()=>Zse,_shadersFXAA:()=>mGe,_shadersFXAA3_11:()=>bGe,_shadersFadeMaterial:()=>Wwe,_shadersFeatureIdStageFS:()=>$Me,_shadersFeatureIdStageVS:()=>eVe,_shadersFilmicTonemapping:()=>pGe,_shadersGaussianBlur1D:()=>I6,_shadersGeometryStageFS:()=>oVe,_shadersGeometryStageVS:()=>aVe,_shadersGlobeFS:()=>Y3e,_shadersGlobeVS:()=>K3e,_shadersGridMaterial:()=>Zwe,_shadersGroundAtmosphere:()=>Ase,_shadersHSBToRGB:()=>RLe,_shadersHSLToRGB:()=>ALe,_shadersImageBasedLightingStageFS:()=>wMe,_shadersInstancingStageCommon:()=>NMe,_shadersInstancingStageVS:()=>WMe,_shadersIntersectBox:()=>QGe,_shadersIntersectClippingPlanes:()=>jGe,_shadersIntersectCylinder:()=>qGe,_shadersIntersectDepth:()=>JGe,_shadersIntersectEllipsoid:()=>$Ge,_shadersIntersectLongitude:()=>Use,_shadersIntersection:()=>fQ,_shadersIntersectionUtils:()=>KGe,_shadersLegacyInstancingStageVS:()=>ZMe,_shadersLensFlare:()=>xGe,_shadersLightingStageFS:()=>lVe,_shadersMaterialStageFS:()=>cVe,_shadersMegatexture:()=>nFe,_shadersMetadataStageFS:()=>tVe,_shadersMetadataStageVS:()=>iVe,_shadersModelClippingPlanesStageFS:()=>AMe,_shadersModelClippingPolygonsStageFS:()=>GMe,_shadersModelClippingPolygonsStageVS:()=>VMe,_shadersModelColorStageFS:()=>RMe,_shadersModelFS:()=>JVe,_shadersModelFlattenStageFS:()=>qVe,_shadersModelFlattenStageVS:()=>QVe,_shadersModelSilhouetteStageFS:()=>NVe,_shadersModelSilhouetteStageVS:()=>WVe,_shadersModelSplitterStageFS:()=>OVe,_shadersModelVS:()=>KVe,_shadersModifiedReinhardTonemapping:()=>gGe,_shadersMorphTargetsStageVS:()=>dVe,_shadersNightVision:()=>yGe,_shadersNormalMapMaterial:()=>Owe,_shadersOctree:()=>rFe,_shadersPassThrough:()=>BM,_shadersPassThroughDepth:()=>P6,_shadersPbrNeutralTonemapping:()=>fGe,_shadersPerInstanceColorAppearanceFS:()=>cIe,_shadersPerInstanceColorAppearanceVS:()=>hIe,_shadersPerInstanceFlatColorAppearanceFS:()=>Cue,_shadersPerInstanceFlatColorAppearanceVS:()=>dIe,_shadersPointCloudEyeDomeLighting:()=>rMe,_shadersPointCloudStylingStageVS:()=>mVe,_shadersPointPrimitiveCollectionFS:()=>oB,_shadersPointPrimitiveCollectionVS:()=>WPe,_shadersPolygonSignedDistanceFS:()=>aAe,_shadersPolylineArrowMaterial:()=>Xwe,_shadersPolylineColorAppearanceVS:()=>aIe,_shadersPolylineCommon:()=>J9,_shadersPolylineDashMaterial:()=>kwe,_shadersPolylineFS:()=>Tue,_shadersPolylineGlowMaterial:()=>Uwe,_shadersPolylineMaterialAppearanceVS:()=>sIe,_shadersPolylineOutlineMaterial:()=>Bwe,_shadersPolylineShadowVolumeFS:()=>iIe,_shadersPolylineShadowVolumeMorphFS:()=>rIe,_shadersPolylineShadowVolumeMorphVS:()=>nIe,_shadersPolylineShadowVolumeVS:()=>oIe,_shadersPolylineVS:()=>nRe,_shadersPostProcessRain:()=>Agt,_shadersPostProcessSnow:()=>Mgt,_shadersPrimitiveOutlineStageFS:()=>yVe,_shadersPrimitiveOutlineStageVS:()=>gVe,_shadersRGBToHSB:()=>rPe,_shadersRGBToHSL:()=>nPe,_shadersRGBToXYZ:()=>oPe,_shadersReinhardTonemapping:()=>_Ge,_shadersReprojectWebMercatorFS:()=>n5e,_shadersReprojectWebMercatorVS:()=>o5e,_shadersRimLightingMaterial:()=>Hwe,_shadersSelectedFeatureIdStageCommon:()=>vse,_shadersShadowVolumeAppearanceFS:()=>Sue,_shadersShadowVolumeAppearanceVS:()=>uIe,_shadersShadowVolumeFS:()=>GQ,_shadersSilhouette:()=>vGe,_shadersSkinningStageVS:()=>CVe,_shadersSkyAtmosphereCommon:()=>Yse,_shadersSkyAtmosphereFS:()=>TFe,_shadersSkyAtmosphereVS:()=>SFe,_shadersSkyBoxFS:()=>EFe,_shadersSkyBoxVS:()=>LFe,_shadersSlopeRampMaterial:()=>zwe,_shadersStripeMaterial:()=>Ywe,_shadersSunFS:()=>PFe,_shadersSunTextureFS:()=>IFe,_shadersSunVS:()=>RFe,_shadersTexturedMaterialAppearanceFS:()=>eRe,_shadersTexturedMaterialAppearanceVS:()=>tRe,_shadersVector3DTileClampedPolylinesFS:()=>x3e,_shadersVector3DTileClampedPolylinesVS:()=>m3e,_shadersVector3DTilePolylinesVS:()=>f3e,_shadersVectorTileVS:()=>Cse,_shadersVerticalExaggerationStageVS:()=>SVe,_shadersViewportQuadFS:()=>fDe,_shadersViewportQuadVS:()=>Rhe,_shadersVoxelFS:()=>zGe,_shadersVoxelUtils:()=>HGe,_shadersVoxelVS:()=>YGe,_shadersWater:()=>Jwe,_shadersWaterMaskMaterial:()=>Kwe,_shadersXYZToRGB:()=>IPe,_shadersacesTonemapping:()=>KEe,_shadersalphaWeight:()=>JEe,_shadersantialias:()=>jEe,_shadersapplyHSBShift:()=>QEe,_shadersapproximateSphericalCoordinates:()=>qEe,_shadersapproximateTanh:()=>$Ee,_shadersbackFacing:()=>eLe,_shadersbranchFreeTernary:()=>tLe,_shaderscascadeColor:()=>iLe,_shaderscascadeDistance:()=>rLe,_shaderscascadeMatrix:()=>nLe,_shaderscascadeWeights:()=>oLe,_shadersclipPolygons:()=>aLe,_shaderscolumbusViewMorph:()=>sLe,_shaderscomputeAtmosphereColor:()=>lLe,_shaderscomputeGroundAtmosphereScattering:()=>uLe,_shaderscomputePosition:()=>cLe,_shaderscomputeScattering:()=>hLe,_shadersconvertUvToBox:()=>eFe,_shadersconvertUvToCylinder:()=>tFe,_shadersconvertUvToEllipsoid:()=>iFe,_shaderscosineAndSine:()=>dLe,_shadersdecompressTextureCoordinates:()=>pLe,_shadersdegreesPerRadian:()=>iEe,_shadersdepthClamp:()=>fLe,_shadersdepthRange:()=>rEe,_shadersdepthRangeStruct:()=>OEe,_shaderseastNorthUpToEyeCoordinates:()=>mLe,_shadersellipsoidContainsPoint:()=>xLe,_shadersellipsoidTextureCoordinates:()=>gLe,_shadersepsilon1:()=>nEe,_shadersepsilon2:()=>oEe,_shadersepsilon3:()=>aEe,_shadersepsilon4:()=>sEe,_shadersepsilon5:()=>lEe,_shadersepsilon6:()=>uEe,_shadersepsilon7:()=>cEe,_shadersequalsEpsilon:()=>yLe,_shaderseyeOffset:()=>_Le,_shaderseyeToWindowCoordinates:()=>vLe,_shadersfastApproximateAtan:()=>bLe,_shadersfog:()=>CLe,_shadersgammaCorrect:()=>TLe,_shadersgeodeticSurfaceNormal:()=>SLe,_shadersgetDefaultMaterial:()=>wLe,_shadersgetDynamicAtmosphereLightDirection:()=>ELe,_shadersgetLambertDiffuse:()=>LLe,_shadersgetSpecular:()=>PLe,_shadersgetWaterNoise:()=>ILe,_shadershue:()=>MLe,_shadersinfinity:()=>hEe,_shadersinverseGamma:()=>VLe,_shadersisEmpty:()=>GLe,_shadersisFull:()=>FLe,_shaderslatitudeToWebMercatorFraction:()=>DLe,_shaderslineDistance:()=>WLe,_shaderslinearToSrgb:()=>NLe,_shadersluminance:()=>ZLe,_shadersmaterial:()=>XEe,_shadersmaterialInput:()=>kEe,_shadersmaximumComponent:()=>OLe,_shadersmetersPerPixel:()=>XLe,_shadersmodelMaterial:()=>UEe,_shadersmodelToWindowCoordinates:()=>kLe,_shadersmodelVertexOutput:()=>BEe,_shadersmultiplyWithColorBalance:()=>ULe,_shadersnearFarScalar:()=>BLe,_shadersoctDecode:()=>HLe,_shadersoneOverPi:()=>dEe,_shadersoneOverTwoPi:()=>pEe,_shaderspackDepth:()=>zLe,_shaderspassCesium3DTile:()=>fEe,_shaderspassCesium3DTileClassification:()=>mEe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>xEe,_shaderspassClassification:()=>gEe,_shaderspassCompute:()=>yEe,_shaderspassEnvironment:()=>_Ee,_shaderspassGlobe:()=>vEe,_shaderspassOpaque:()=>bEe,_shaderspassOverlay:()=>CEe,_shaderspassTerrainClassification:()=>TEe,_shaderspassTranslucent:()=>SEe,_shaderspassVoxels:()=>wEe,_shaderspbrLighting:()=>YLe,_shaderspbrNeutralTonemapping:()=>KLe,_shadersphong:()=>JLe,_shaderspi:()=>EEe,_shaderspiOverFour:()=>LEe,_shaderspiOverSix:()=>PEe,_shaderspiOverThree:()=>IEe,_shaderspiOverTwo:()=>REe,_shadersplaneDistance:()=>jLe,_shaderspointAlongRay:()=>QLe,_shadersradiansPerDegree:()=>AEe,_shadersray:()=>HEe,_shadersrayEllipsoidIntersectionInterval:()=>qLe,_shadersraySegment:()=>zEe,_shadersraySphereIntersectionInterval:()=>$Le,_shadersreadDepth:()=>ePe,_shadersreadNonPerspective:()=>tPe,_shadersreverseLogDepth:()=>iPe,_shadersround:()=>aPe,_shaderssaturation:()=>sPe,_shaderssceneMode2D:()=>MEe,_shaderssceneMode3D:()=>VEe,_shaderssceneModeColumbusView:()=>GEe,_shaderssceneModeMorphing:()=>FEe,_shadersshadowDepthCompare:()=>lPe,_shadersshadowParameters:()=>YEe,_shadersshadowVisibility:()=>uPe,_shaderssignNotZero:()=>cPe,_shaderssolarRadius:()=>DEe,_shaderssphericalHarmonics:()=>hPe,_shaderssrgbToLinear:()=>dPe,_shaderstangentToEyeSpaceMatrix:()=>pPe,_shaderstextureCube:()=>fPe,_shadersthreePiOver2:()=>NEe,_shaderstransformPlane:()=>mPe,_shaderstranslateRelativeToEye:()=>xPe,_shaderstranslucentPhong:()=>gPe,_shaderstranspose:()=>yPe,_shaderstwoPi:()=>WEe,_shadersunpackClippingExtents:()=>_Pe,_shadersunpackDepth:()=>vPe,_shadersunpackFloat:()=>bPe,_shadersunpackUint:()=>CPe,_shadersvalueTransform:()=>TPe,_shadersvertexLogDepth:()=>SPe,_shaderswebMercatorMaxLatitude:()=>ZEe,_shaderswindowToEyeCoordinates:()=>wPe,_shaderswriteDepthClamp:()=>EPe,_shaderswriteLogDepth:()=>LPe,_shaderswriteNonPerspective:()=>PPe,addBuffer:()=>RAe,addDefaults:()=>CAe,addExtensionsRequired:()=>LAe,addExtensionsUsed:()=>fO,addPipelineExtras:()=>nq,addToArray:()=>n1,appendForwardSlash:()=>YSe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>aue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>sFe,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>phe,createBillboardPointCallback:()=>rhe,createBlurStage:()=>xle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>MNe,createDefaultTerrainProviderViewModels:()=>VNe,createEdgeStage:()=>q4,createElevationBandMaterial:()=>Fxt,createFragmentFromTemplate:()=>jDe,createGooglePhotorealistic3DTileset:()=>Dxt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Nxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>bb,createTangentSpaceDebugPrimitive:()=>Wxt,createTaskProcessorWorker:()=>Xgt,createUniform:()=>$we,createUniformArray:()=>tEe,createWorldBathymetryAsync:()=>bDe,createWorldImageryAsync:()=>YB,createWorldTerrainAsync:()=>_de,decodeGoogleEarthEnterpriseData:()=>TDe,decodeVectorPolylinePositions:()=>y3e,defaultValue:()=>zmt,defer:()=>mp,defined:()=>F,demodernizeShader:()=>RPe,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>bmt,fflate_module:()=>lNe,findAccessorMinMax:()=>oq,findContentMetadata:()=>ahe,findGroupMetadata:()=>she,findTileMetadata:()=>w3e,forEachTextureInMaterial:()=>Ice,formatError:()=>vH,fragment:()=>Ggt,freezeRenderState:()=>xtt,getAbsoluteUri:()=>eH,getAccessorByteStride:()=>XF,getBaseUri:()=>JSe,getBinaryAccessor:()=>SM,getClipAndStyleCode:()=>MFe,getClippingFunction:()=>Aq,getComponentReader:()=>J7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>E7,getImageFromTypedArray:()=>jPe,getImagePixels:()=>HZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>Qz,getMetadataClassProperty:()=>xFe,getMetadataProperty:()=>yFe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>k7,isBitSet:()=>m1,isBlobUri:()=>jle,isCrossOriginUrl:()=>zZ,isDataUri:()=>a7,isLeapYear:()=>KZ,knockout:()=>sr,knockout_3_5_1:()=>FV,knockout_es5:()=>wNe,libgif:()=>xRe,loadAndExecuteScript:()=>Qle,loadCRN:()=>oxt,loadCubeMap:()=>wFe,loadDDS:()=>tue,loadImageFromTypedArray:()=>jz,loadKTX2:()=>IF,loadView:()=>Ade,mergeSort:()=>C4,moveTechniqueRenderStates:()=>EAe,moveTechniquesToExtension:()=>PAe,numberOfComponentsForType:()=>dO,objFS:()=>pNe,objectToQuery:()=>qle,oneTimeWarning:()=>aa,packer:()=>eIe,parseBatchTable:()=>e4,parseDefines:()=>xNe,parseFeatureMetadataLegacy:()=>_Ae,parseGlb:()=>SAe,parseResponseHeaders:()=>jSe,parseStructuralMetadata:()=>yAe,pickModel:()=>r3e,pointInsideTriangle:()=>hxt,preprocess3DTileContent:()=>vq,processVoxelProperties:()=>aFe,queryToObject:()=>lI,rasterizeHTML_allinone:()=>BFe,readAccessorPacked:()=>AAe,removeExtension:()=>g6,removeExtensionsRequired:()=>TAe,removeExtensionsUsed:()=>Pce,removePipelineExtras:()=>wAe,removeUnusedElements:()=>IAe,remove_primitive:()=>W6,resizeImageToNextPowerOfTwo:()=>MQ,sampleTerrain:()=>Rq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>iue,srgbToLinear:()=>qhe,subdivideArray:()=>lIe,subscribeAndEvaluate:()=>Lb,svgCompassGyro:()=>iNe,svgCompassOuterRing:()=>tNe,svgCompassRotationMarker:()=>rNe,svgReset:()=>qDe,turf:()=>Po,updateAccessorComponentTypes:()=>MAe,updateVersion:()=>FAe,usesExtension:()=>cm,vertex:()=>Fgt,viewerCesium3DTilesInspectorMixin:()=>dyt,viewerCesiumInspectorMixin:()=>pyt,viewerCesiumNavigationMixin:()=>ugt,viewerDragDropMixin:()=>fyt,viewerPerformanceWatchdogMixin:()=>myt,viewerVoxelInspectorMixin:()=>xyt,webGLConstantToGlslType:()=>Cxt,wrapFunction:()=>RDe,writeTextToCanvas:()=>z9});we();we();function w$(o=!0){this.async=o}w$.prototype.getXmlHttpRequest=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("MsXml2.XmlHttp")};w$.prototype.includeJsText=function(o,f){if(o!=null){var m=document.createElement("script");m.type="text/javascript",m.text=f,o.appendChild(m)}};w$.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)}};w$.prototype.addJs=function(o,f,m){var x=this.getXmlHttpRequest(),y=this;x.onreadystatechange=function(){x.readyState===4&&(x.status===200||x.status===304?y.includeJsSrc(o,f,m):console.log("XML request error: "+x.statusText+" ("+x.status+")"))},x.open("GET",f,y.async),x.send(null),x.status===404?console.log(f+" is not found"):y.includeJsText(o,x.responseText)};var ex=w$;we();we();var Uji={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"}},$r=Object.freeze(Uji);we();we();we();function Bji(o,f){return o??f}var Ff=Bji;we();var gyt=`// author: \u5F20\u4E39\u948A +`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileShader();return!0};$S.prototype.isDestroyed=function(){return!1};$S.prototype.destroy=function(){let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};var pWe=$S;function a0e(o,f){o=Qh(o);let m=document.createElement("div"),x=new pWe(f);this._viewModel=x,this._container=o,this._element=m;let y=document.createElement("div");y.textContent="Voxel Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleInspector"),m.appendChild(y),m.className="cesium-cesiumInspector cesium-VoxelInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let v=document.createElement("div");v.className="cesium-cesiumInspector-dropDown",m.appendChild(v);let{createSection:C,createCheckbox:T,createRangeInput:S,createButton:w}=sI,E=C(v,"Display","displayVisible","toggleDisplay"),L=C(v,"Transform","transformVisible","toggleTransform"),I=C(v,"Clipping","clippingVisible","toggleClipping"),R=C(v,"Shader","shaderVisible","toggleShader");E.appendChild(T("Depth Test","depthTest")),E.appendChild(T("Show","show")),E.appendChild(T("Disable Update","disableUpdate")),E.appendChild(T("Debug Draw","debugDraw")),E.appendChild(T("Jitter","jitter")),E.appendChild(T("Nearest Sampling","nearestSampling")),E.appendChild(S("Screen Space Error","screenSpaceError",0,128)),E.appendChild(S("Step Size","stepSize",0,2));let P=10,A=10,M=be.PI;L.appendChild(S("Translation X","translationX",-P,+P)),L.appendChild(S("Translation Y","translationY",-P,+P)),L.appendChild(S("Translation Z","translationZ",-P,+P)),L.appendChild(S("Scale X","scaleX",0,+A)),L.appendChild(S("Scale Y","scaleY",0,+A)),L.appendChild(S("Scale Z","scaleZ",0,+A)),L.appendChild(S("Heading","angleX",-M,+M)),L.appendChild(S("Pitch","angleY",-M,+M)),L.appendChild(S("Roll","angleZ",-M,+M)),PCe("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ","shapeIsBox",I),PCe("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight","shapeIsEllipsoid",I),PCe("Max Radius","Min Radius","Max Angle","Min Angle","Max Height","Min Height","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxAngle","clippingCylinderMinAngle","clippingCylinderMaxHeight","clippingCylinderMinHeight","shapeIsCylinder",I);let V=document.createElement("div");R.appendChild(V);let G=document.createElement("textarea");G.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),V.className="cesium-cesiumInspector-styleEditor",V.appendChild(G);let D=w("Compile (Ctrl+Enter)","compileShader");V.appendChild(D);let N=document.createElement("label");N.style.display="block",N.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),V.appendChild(N),sr.applyBindings(x,m)}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 sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};function PCe(o,f,m,x,y,v,C,T,S,w,E,L,I,R){let P=sI.createRangeInputWithDynamicMinMax,A=R.appendChild(document.createElement("div"));A.setAttribute("data-bind",`if: ${I}`),A.appendChild(P(o,C)),A.appendChild(P(f,T)),A.appendChild(P(m,S)),A.appendChild(P(x,w)),A.appendChild(P(y,E)),A.appendChild(P(v,L))}var fWe=a0e;function kji(o){let f=document.createElement("div");f.className="cesium-viewer-voxelInspectorContainer",o.container.appendChild(f);let m=new fWe(f,o.scene);Object.defineProperties(o,{voxelInspector:{get:function(){return m}}})}var xyt=kji;globalThis.CESIUM_VERSION="1.129";var s0e="1.129";we();var Vi={};jJ(Vi,{AlphaMode:()=>IH,AlphaPipelineStage:()=>HMe,AnchorPointDirect:()=>zAe,AnchorPointIndirect:()=>YAe,Animation:()=>PNe,AnimationViewModel:()=>INe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>xde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>bce,AtmospherePipelineStage:()=>SMe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>CGe,AutomaticUniforms:()=>bB,Axis:()=>D0,AxisAlignedBoundingBox:()=>b7,B3dmLoader:()=>oMe,B3dmParser:()=>nMe,Base64Encoder:()=>Tae,BaseLayerPicker:()=>ANe,BaseLayerPickerViewModel:()=>RNe,BatchTable:()=>Tz,BatchTableHierarchy:()=>Zce,BatchTexture:()=>JT,BatchTexturePipelineStage:()=>zMe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>sV,BillboardLoadState:()=>Om,BillboardTexture:()=>mz,BillboardVisualizer:()=>PRe,BingMapsGeocoderService:()=>Amt,BingMapsImageryProvider:()=>bO,BingMapsStyle:()=>mhe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>dz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ihe,BoxEmitter:()=>Ede,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>IRe,BoxGraphics:()=>wue,BoxOutlineGeometry:()=>HS,BrdfLutGenerator:()=>P5e,Buffer:()=>mo,BufferLoader:()=>iq,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>jMe,CallbackPositionProperty:()=>Z3e,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>VGe,CameraEventType:()=>Jc,CameraFlightPath:()=>uRe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>Mmt,CatmullRomSpline:()=>Vmt,Cesium3DContentGroup:()=>Qce,Cesium3DTile:()=>Zb,Cesium3DTileBatchTable:()=>yq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>Txt,Cesium3DTileContentFactory:()=>ohe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>n4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>uhe,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>CZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>OS,Cesium3DTileStyleEngine:()=>V3e,Cesium3DTilesInspector:()=>FNe,Cesium3DTilesInspectorViewModel:()=>GNe,Cesium3DTilesVoxelProvider:()=>Sxt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>F3e,Cesium3DTilesetCache:()=>A3e,Cesium3DTilesetGraphics:()=>Rue,Cesium3DTilesetHeatmap:()=>M3e,Cesium3DTilesetMetadata:()=>lhe,Cesium3DTilesetMostDetailedTraversal:()=>G3e,Cesium3DTilesetSkipTraversal:()=>D3e,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>W3e,CesiumInspector:()=>NNe,CesiumInspectorViewModel:()=>DNe,CesiumNavigation:()=>aNe,CesiumRenderPass:()=>mNe,CesiumTerrainProvider:()=>W4,CesiumWidget:()=>M4,Check:()=>Da,CheckerboardMaterialProperty:()=>ile,CircleEmitter:()=>GDe,CircleGeometry:()=>Omt,CircleOutlineGeometry:()=>Xmt,CircleWaveMaterialProperty:()=>fz,ClassificationModelDrawCommand:()=>zVe,ClassificationPipelineStage:()=>YMe,ClassificationPrimitive:()=>Sz,ClassificationType:()=>dc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>Ub,ClippingPolygonCollection:()=>Ry,Clock:()=>Mz,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>LNe,CloudCollection:()=>Axt,CloudType:()=>ple,CollectionSource:()=>jit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Hgt,CommandLoader:()=>sNe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>o3e,CompositeEntityCollection:()=>lmt,CompositeMaterialProperty:()=>nle,CompositePositionProperty:()=>i1,CompositeProperty:()=>nS,CompressedTextureBuffer:()=>NS,ComputeCommand:()=>dV,ComputeEngine:()=>_5e,ComputeRegionBox:()=>tgt,ConditionsExpression:()=>$Pe,ConeEmitter:()=>k4,ConicArcSensor:()=>Tle,ConicArcSensorCollection:()=>Wgt,ConicArcSensorGeometry:()=>wle,ConicArcSensorGraphics:()=>Cle,ConicArcSensorOutlineGeometry:()=>Ele,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>hMe,ConstructionWorker:()=>qit,ContentMetadata:()=>b3e,Context:()=>E5e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>uO,CoplanarPolygonGeometryLibrary:()=>NB,CoplanarPolygonOutlineGeometry:()=>rM,CornerType:()=>ad,CorrelationGroup:()=>KAe,CorridorGeometry:()=>U7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>MRe,CorridorGraphics:()=>Eue,CorridorOutlineGeometry:()=>ARe,Credit:()=>Oa,CreditDisplay:()=>I5e,CubeMap:()=>Ig,CubeMapFace:()=>Iwe,CubicRealPolynomial:()=>u7,CullFace:()=>yh,CullingVolume:()=>fm,CumulusCloud:()=>wL,CustomDataSource:()=>Vue,CustomHeightmapTerrainProvider:()=>kmt,CustomMercatorProjection:()=>gz,CustomShader:()=>P1,CustomShaderManagerEx:()=>vue,CustomShaderMode:()=>g7,CustomShaderPipelineStage:()=>rVe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Vrt,CylinderGeometry:()=>B7,CylinderGeometryLibrary:()=>mce,CylinderGeometryUpdater:()=>VRe,CylinderGraphics:()=>Lue,CylinderOutlineGeometry:()=>H7,CzmlDataSource:()=>n$,DataSource:()=>Sy,DataSourceClock:()=>n9,DataSourceCollection:()=>ERe,DataSourceDisplay:()=>Pq,DebugAppearance:()=>Nxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>UGe,DebugModelMatrixPrimitive:()=>WDe,DefaultProxy:()=>Bmt,DepthFunction:()=>wy,DepthPlane:()=>M5e,DequantizationPipelineStage:()=>nVe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>V5e,DirectionalLight:()=>U4,DiscardEmptyTileImagePolicy:()=>xhe,DiscardMissingTileImagePolicy:()=>q3e,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>QDe,DoubleEndedPriorityQueue:()=>Yhe,DoublyLinkedList:()=>Tq,DracoLoader:()=>rq,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>K7,DynamicEnvironmentMapManager:()=>PH,DynamicGeometryBatch:()=>dce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>_7,EarthOrientationParameters:()=>awe,EarthOrientationParametersSample:()=>l7,EasingFunction:()=>J_,EllipseGeometry:()=>SS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>GRe,EllipseGraphics:()=>Pue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>WRe,EllipsoidGraphics:()=>Lz,EllipsoidOutlineGeometry:()=>Db,EllipsoidPrimitive:()=>g5e,EllipsoidRhumbLine:()=>uS,EllipsoidSurfaceAppearance:()=>rO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>RS,EllipsoidalOccluder:()=>U9,Empty3DTileContent:()=>C6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>US,EntityView:()=>H3e,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>xb,ExpandByTerra:()=>Grt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>hNe,FBXPrimitive:()=>Vde,FBXTreeParser:()=>cNe,FeatureDataProvider:()=>jue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>xq,FeatureJsonData:()=>Fz,FisheyeProjectionMap:()=>Z7,FisheyeProjectionMapShader:()=>jj,FlattenVS:()=>Vgt,FlowEcharts:()=>Rde,Fog:()=>F5e,ForEach:()=>Or,FrameRateMonitor:()=>ZDe,FrameState:()=>D5e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Fhe,FrustumGeometry:()=>Dz,FrustumOutlineGeometry:()=>W7,Fullscreen:()=>km,FullscreenButton:()=>uWe,FullscreenButtonViewModel:()=>lWe,GWBaiduImageryProvider:()=>Wz,GeoJsonDataSource:()=>$Z,GeoJsonLoader:()=>lMe,GeocodeType:()=>a$,Geocoder:()=>XNe,GeocoderService:()=>bde,GeocoderViewModel:()=>ONe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>a3e,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Kmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>sVe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>Y7,GeometryVisualizer:()=>nAe,GetFeatureInfoFormat:()=>cQ,GifImageProperty:()=>Sst,Globe:()=>d5e,GlobeDepth:()=>k5e,GlobeSurfaceShaderSet:()=>j3e,GlobeSurfaceTile:()=>UM,GlobeSurfaceTileProvider:()=>u5e,GlobeTranslucency:()=>Dq,GlobeTranslucencyFramebuffer:()=>U5e,GlobeTranslucencyState:()=>W5e,GltfBufferViewLoader:()=>Sce,GltfDracoLoader:()=>wce,GltfGpmLoader:()=>jAe,GltfGpmLocal:()=>Wce,GltfImageLoader:()=>Ece,GltfIndexBufferLoader:()=>Lce,GltfInstanceLoader:()=>Oce,GltfJsonLoader:()=>Rce,GltfLoader:()=>mO,GltfLoaderUtil:()=>OM,GltfMeshPrimitiveGpmLoader:()=>eMe,GltfStructuralMetadataLoader:()=>BAe,GltfTextureLoader:()=>Ace,GltfVertexBufferLoader:()=>Mce,GoogleEarthEnterpriseImageryProvider:()=>Wxt,GoogleEarthEnterpriseMapsProvider:()=>t5e,GoogleEarthEnterpriseMetadata:()=>O4,GoogleEarthEnterpriseTerrainData:()=>dle,GoogleEarthEnterpriseTerrainProvider:()=>ext,GoogleEarthEnterpriseTileInformation:()=>yDe,GoogleGeocoderService:()=>ixt,GoogleMaps:()=>gQ,GpxDataSource:()=>lDe,Graticules:()=>ace,GregorianDate:()=>pz,GridImageryProvider:()=>Zxt,GridMaterialProperty:()=>ole,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>bz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>kS,GroupMetadata:()=>Pse,GwBufferAnalysis:()=>sce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>qSe,HeightMap:()=>Pgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>fhe,HermitePolynomialApproximation:()=>KFe,HermiteSpline:()=>_6,HilbertOrder:()=>Tse,HomeButton:()=>UNe,HomeButtonViewModel:()=>kNe,HorizontalOrigin:()=>ec,HugeAdapter:()=>gq,I3SBuildingSceneLayerExplorer:()=>ayt,I3SBuildingSceneLayerExplorerViewModel:()=>BNe,I3SDataProvider:()=>gR,I3SDecoder:()=>FFe,I3SFeature:()=>NFe,I3SField:()=>WFe,I3SGeometry:()=>jse,I3SLayer:()=>ede,I3SNode:()=>Qse,I3SStatistics:()=>OFe,I3SSublayer:()=>XFe,I3SSymbology:()=>ZFe,I3dmLoader:()=>cMe,I3dmParser:()=>uMe,ITwinData:()=>Oxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>f5e,Iau2006XysData:()=>lwe,Iau2006XysSample:()=>oue,IauOrientationAxes:()=>m5e,IauOrientationParameters:()=>p5e,ImageBasedLighting:()=>dq,ImageBasedLightingPipelineStage:()=>EMe,ImageCombine:()=>gue,ImageMaterialProperty:()=>O0,Imagery:()=>bhe,ImageryLayer:()=>Up,ImageryLayerCollection:()=>c5e,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>Lse,ImplicitAvailabilityBitstream:()=>wse,ImplicitMetadataView:()=>$ce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>ehe,ImplicitSubtreeCache:()=>MDe,ImplicitSubtreeMetadata:()=>c3e,ImplicitTileCoordinates:()=>dhe,ImplicitTileset:()=>hhe,IndexDatatype:()=>Fn,InfoBox:()=>YNe,InfoBoxViewModel:()=>zNe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>OMe,InterpolationAlgorithm:()=>rxt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>mc,Intersections2D:()=>N4,Interval:()=>VE,InvertClassification:()=>Vhe,Ion:()=>GG,IonGeocodeProviderType:()=>kZ,IonGeocoderService:()=>Sde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>zB,Iso8601:()=>wn,JobScheduler:()=>Z5e,JobType:()=>G_,JsonMetadataTable:()=>Q7,JulianDate:()=>$t,KTX2Transcoder:()=>twe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>MIe,KmlDataSource:()=>F7,KmlLookAt:()=>VIe,KmlTour:()=>GIe,KmlTourFlyTo:()=>FIe,KmlTourWait:()=>NIe,Label:()=>LQ,LabelCollection:()=>rV,LabelGraphics:()=>Pz,LabelStyle:()=>f0,LabelVisualizer:()=>oAe,LagrangePolynomialApproximation:()=>jFe,LeapSecond:()=>xh,Light:()=>kxt,LightingModel:()=>uv,LightingPipelineStage:()=>uVe,LinearApproximation:()=>Hue,LinearSampler:()=>qI,LinearSpline:()=>mq,MTLLoader:()=>dNe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>axt,MapboxImageryProvider:()=>CO,MapboxStyleImageryProvider:()=>Bxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>hVe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>Khe,MeshParser:()=>uNe,MeshPhongMaterial:()=>vQ,MeshPrimitiveGpmLocal:()=>$Ae,MetadataClass:()=>qz,MetadataClassProperty:()=>Jz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>XAe,MetadataEnumValue:()=>OAe,MetadataPicking:()=>O5e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>PM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Vce,MetadataSemantic:()=>the,MetadataTable:()=>pO,MetadataTableProperty:()=>gAe,MetadataType:()=>fo,MipmapHint:()=>O9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>AVe,ModelAnimation:()=>gMe,ModelAnimationChannel:()=>mMe,ModelAnimationCollection:()=>yMe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>IMe,ModelArticulationStage:()=>PMe,ModelClippingPlanesPipelineStage:()=>MMe,ModelClippingPolygonsPipelineStage:()=>FMe,ModelColorPipelineStage:()=>v6,ModelComponents:()=>ll,ModelDrawCommand:()=>YVe,ModelDrawCommands:()=>jVe,ModelFeature:()=>_Me,ModelFeatureTable:()=>vMe,ModelFlattenPipelineStage:()=>$Ve,ModelGraphics:()=>C7,ModelLightingOptions:()=>UVe,ModelMatrixUpdateStage:()=>kMe,ModelNode:()=>DMe,ModelRenderResources:()=>DVe,ModelRuntimeNode:()=>BMe,ModelRuntimePrimitive:()=>PVe,ModelSceneGraph:()=>e3e,ModelSilhouettePipelineStage:()=>ZVe,ModelSkin:()=>RVe,ModelSplitterPipelineStage:()=>XVe,ModelStatistics:()=>t3e,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>n3e,Moon:()=>y5e,MorphTargetsPipelineStage:()=>pVe,MorphWeightSpline:()=>sxt,MortonOrder:()=>MH,MultiResourceImageryProvider:()=>Zz,MultiResourceTerrainProvider:()=>lce,Multiple3DTileContent:()=>E3e,MultisampleFramebuffer:()=>iMe,NavigationControl:()=>j4,NavigationHelpButton:()=>JNe,NavigationHelpButtonViewModel:()=>KNe,NavigationUtils:()=>Q4,NavigationViewModel:()=>yQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Hxt,NodeRenderResources:()=>kVe,NodeStatisticsPipelineStage:()=>UMe,NodeTransformationProperty:()=>Iue,OBJLoader:()=>fNe,OBJPrimitive:()=>Gde,OIT:()=>Y5e,Occluder:()=>oce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Oz,OpenCageGeocoderService:()=>lxt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>LRe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>gm,Packable:()=>uxt,PackableForInterpolation:()=>cxt,Particle:()=>Pde,ParticleBurst:()=>H4,ParticleEmitter:()=>Kxt,ParticleSystem:()=>qS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>T7,PathVisualizer:()=>O3e,PeliasGeocoderService:()=>bDe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Xq,PerformanceWatchdog:()=>qNe,PerformanceWatchdogViewModel:()=>QNe,PerspectiveFrustum:()=>xc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>O7,PerspectiveProjectionMapShader:()=>Qj,PerspectiveProjectionMapWithDepth:()=>X7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>X5e,PickDepthFramebuffer:()=>K5e,PickFramebuffer:()=>J5e,PickGlobeSlope:()=>Bft,PickedMetadataInfo:()=>gFe,Picking:()=>iGe,PickingPipelineStage:()=>fVe,PinBuilder:()=>L7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>ZRe,PlaneGeometryUpdater:()=>kRe,PlaneGraphics:()=>pIe,PlaneOutlineGeometry:()=>ORe,PntsLoader:()=>i3e,PntsParser:()=>Jce,PointCloud:()=>VFe,PointCloudEyeDomeLighting:()=>pq,PointCloudShading:()=>r4,PointCloudStylingPipelineStage:()=>xVe,PointGraphics:()=>Aue,PointLight:()=>ide,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>nV,PointVisualizer:()=>X3e,PolygonDepth:()=>C9,PolygonDepthFS:()=>zce,PolygonDepthVS:()=>Yce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>BRe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>URe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>am,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>k3e,PolylineGlowMaterialProperty:()=>ale,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>jM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Hft,PolylineVisualizer:()=>B3e,PolylineVolumeGeometry:()=>HRe,PolylineVolumeGeometryLibrary:()=>c9,PolylineVolumeGeometryUpdater:()=>YRe,PolylineVolumeGraphics:()=>Mue,PolylineVolumeOutlineGeometry:()=>zRe,PositionProperty:()=>Ez,PositionPropertyArray:()=>pH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>EGe,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>khe,PpeMetadata:()=>qAe,PpeSource:()=>Ogt,PpeTexture:()=>QAe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>lq,PrimitiveOutlineGenerator:()=>Dce,PrimitiveOutlinePipelineStage:()=>_Ve,PrimitivePipeline:()=>QZ,PrimitiveRenderResources:()=>BVe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>vVe,PrimitiveType:()=>pn,ProjectionPicker:()=>eWe,ProjectionPickerViewModel:()=>$Ne,Property:()=>Nt,PropertyArray:()=>dde,PropertyAttribute:()=>Tce,PropertyAttributeProperty:()=>fAe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>$7,PropertyTextureProperty:()=>dAe,ProviderViewModel:()=>Ef,Proxy:()=>pxt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>Ehe,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Kft,QuadtreeTile:()=>Nq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>XO,QuantizedMeshTerrainData:()=>yde,QuarticRealPolynomial:()=>Swe,Quaternion:()=>fr,QuaternionSpline:()=>pMe,Queue:()=>lV,RasterizeHtml:()=>V4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>vce,RectangleGeometry:()=>cO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>$Re,RectangleGraphics:()=>Iz,RectangleOutlineGeometry:()=>gce,RectangularSensor:()=>Z6,RectangularSensorFS:()=>gle,RectangularSensorGraphics:()=>Zgt,RectangularSensorPrimitive:()=>bNe,RectangularSensorScanPlaneFS:()=>vNe,RectangularSensorVS:()=>Dde,RectangularSensorVisualizer:()=>CNe,ReferenceFrame:()=>fp,ReferenceProperty:()=>V7,RegionPolygonTexture:()=>YDe,RegionTexture:()=>KDe,RegionWeather:()=>Fde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Ib,Request:()=>dm,RequestErrorEvent:()=>YZ,RequestScheduler:()=>x1,RequestState:()=>fc,RequestType:()=>n2,ResetViewNavigationControl:()=>eNe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>YS,ResourceCacheStatistics:()=>UAe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>UB,S3MDataSource:()=>qft,SDFSettings:()=>ev,SampledPositionProperty:()=>oS,SampledProperty:()=>hM,Sampler:()=>Yo,ScaledPositionProperty:()=>Vz,Scene:()=>GO,SceneFramebuffer:()=>Dhe,SceneHeightMap:()=>_Ne,SceneHeightWaterPostProcessing:()=>kT,SceneHeightWaterPrimitive:()=>Tgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>bVe,SceneModePicker:()=>iWe,SceneModePickerViewModel:()=>tWe,SceneTransforms:()=>Ca,SceneTransitioner:()=>MGe,ScreenSpaceCameraController:()=>ZGe,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>b6,SelectionIndicator:()=>nWe,SelectionIndicatorViewModel:()=>rWe,Sensor:()=>wgt,SensorVolumePortionToDisplay:()=>lle,ShaderBuilder:()=>Bce,ShaderCache:()=>b5e,ShaderDestination:()=>Ji,ShaderFunction:()=>FVe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>VVe,ShadowMap:()=>RV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>_M,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>E6,SimplePolylineGeometry:()=>fxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>TVe,SkyAtmosphere:()=>qq,SkyBox:()=>FO,SlopeArrow:()=>Wde,SpatialNode:()=>pFe,Spdcf:()=>JAe,SpecularEnvironmentCubeMap:()=>v9,SphereEmitter:()=>z4,SphereGeometry:()=>mxt,SphereOutlineGeometry:()=>uV,Spherical:()=>QFe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>jhe,SpotLight:()=>emt,StaticGeometryColorBatch:()=>pM,StaticGeometryPerMaterialBatch:()=>fM,StaticGroundGeometryColorBatch:()=>hse,StaticGroundGeometryPerMaterialBatch:()=>rAe,StaticGroundPolylinePerMaterialBatch:()=>U3e,StaticOutlineGeometryBatch:()=>dse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>dMe,Stereographic:()=>Pb,StorageType:()=>RH,StripeMaterialProperty:()=>sle,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>b9,StyleExpression:()=>Jxt,Sun:()=>AFe,SunLight:()=>T4,SunPostProcess:()=>kGe,SupportedImageFormats:()=>HAe,SvgPathBindingHandler:()=>ENe,TaskProcessor:()=>xp,Terrain:()=>BDe,TerrainData:()=>_O,TerrainEncoding:()=>IS,TerrainFillMesh:()=>She,TerrainFlatten:()=>UO,TerrainFlattenPolygonTexture:()=>JDe,TerrainMesh:()=>vO,TerrainOffsetProperty:()=>fce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>yNe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>wDe,TextureAtlas:()=>lue,TextureCache:()=>C5e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>QPe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>sue,TextureUniform:()=>due,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>PS,TileBoundingS2Cell:()=>L3e,TileBoundingSphere:()=>TV,TileBoundingVolume:()=>jxt,TileCoordinatesImageryProvider:()=>f$,TileDiscardPolicy:()=>Qxt,TileEdge:()=>hs,TileImagery:()=>Che,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>T3e,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>sm,TileReplacementQueue:()=>Phe,TileSelectionResult:()=>fa,TileState:()=>qxt,Tileset3DTileContent:()=>h3e,TilesetMetadata:()=>R3e,TilesetPipelineStage:()=>bMe,TilesetRegionWeather:()=>gNe,TilingScheme:()=>xxt,TimeConstants:()=>hc,TimeDynamicImagery:()=>vhe,TimeDynamicPointCloud:()=>Qhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>VH,TimeIntervalCollectionProperty:()=>fH,TimeStandard:()=>cu,Timeline:()=>sWe,TimelineHighlightRange:()=>oWe,TimelineTrack:()=>aWe,Tipsify:()=>Ewe,ToggleButtonViewModel:()=>yB,Tonemapper:()=>wZ,TrackingReferenceFrame:()=>EB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>eGe,TridiagonalSystemSolver:()=>Xce,TrustedServers:()=>eue,TweenCollection:()=>Hhe,UniformState:()=>T5e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>rmt,UrlTemplateImageryProvider:()=>zb,UserInterfaceControl:()=>Mde,Utils:()=>TL,VERSION:()=>s0e,VRButton:()=>hWe,VRButtonViewModel:()=>cWe,VRTheWorldTerrainProvider:()=>vxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>AH,Vector3DTileClampedPolylines:()=>g3e,Vector3DTileContent:()=>v3e,Vector3DTileGeometry:()=>pZ,Vector3DTilePoints:()=>d3e,Vector3DTilePolygons:()=>p3e,Vector3DTilePolylines:()=>nhe,Vector3DTilePrimitive:()=>qce,VelocityOrientationProperty:()=>qFe,VelocityVectorProperty:()=>Iq,VertexArray:()=>Cu,VertexArrayFacade:()=>h7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>wVe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>gxt,View:()=>N1,ViewShed:()=>Dgt,ViewShedMap:()=>R4,ViewShedMapShader:()=>XG,Viewer:()=>o0e,ViewportQuad:()=>K4,Visibility:()=>Rl,Visualizer:()=>Lmt,VolumeCloud:()=>Zde,VoxelBoxShape:()=>Yq,VoxelCell:()=>BGe,VoxelContent:()=>zhe,VoxelCylinderShape:()=>Kq,VoxelEllipsoidShape:()=>Jq,VoxelInspector:()=>fWe,VoxelInspectorViewModel:()=>pWe,VoxelMetadataOrder:()=>E9,VoxelPrimitive:()=>Qq,VoxelProvider:()=>$xt,VoxelRenderResources:()=>oFe,VoxelShape:()=>egt,VoxelShapeType:()=>Gb,VoxelTraversal:()=>fFe,VulkanConstants:()=>bxt,WallGeometry:()=>eAe,WallGeometryLibrary:()=>yce,WallGeometryUpdater:()=>iAe,WallGraphics:()=>S7,WallOutlineGeometry:()=>tAe,WaterFS:()=>sRe,WaterHeightMap:()=>Igt,WaterMaterialProperty:()=>nmt,WaterPipelinePrimitive:()=>lde,WaterPostProcessing:()=>vle,WaterPostProcessingEx:()=>ble,WaterPrimitive:()=>Ode,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>TNe,WaterReflectImageEx:()=>SNe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>TO,WebMapTileServiceImageryProvider:()=>LV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>gp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Uce,WireframePipelineStage:()=>LVe,ZoomNavigationControl:()=>fle,_shadersAcesTonemappingStage:()=>rGe,_shadersAdditiveBlend:()=>OGe,_shadersAdjustTranslucentFS:()=>Ose,_shadersAllMaterialAppearanceFS:()=>jIe,_shadersAllMaterialAppearanceVS:()=>QIe,_shadersAmbientOcclusionGenerate:()=>nGe,_shadersAmbientOcclusionModulate:()=>oGe,_shadersAspectRampMaterial:()=>Awe,_shadersAtmosphereCommon:()=>y9,_shadersAtmosphereStageFS:()=>CMe,_shadersAtmosphereStageVS:()=>TMe,_shadersBasicMaterialAppearanceFS:()=>qIe,_shadersBasicMaterialAppearanceVS:()=>$Ie,_shadersBillboardCollectionFS:()=>MPe,_shadersBillboardCollectionVS:()=>VPe,_shadersBlackAndWhite:()=>aGe,_shadersBloomComposite:()=>sGe,_shadersBrdfLutGeneratorFS:()=>L5e,_shadersBrightPass:()=>XGe,_shadersBrightness:()=>lGe,_shadersBumpMapMaterial:()=>Mwe,_shadersCPUStylingStageFS:()=>JMe,_shadersCPUStylingStageVS:()=>KMe,_shadersCheckerboardMaterial:()=>Vwe,_shadersCloudCollectionFS:()=>EDe,_shadersCloudCollectionVS:()=>LDe,_shadersCloudNoiseFS:()=>PDe,_shadersCloudNoiseVS:()=>IDe,_shadersCompareAndPackTranslucentDepth:()=>$5e,_shadersCompositeOITFS:()=>B5e,_shadersCompositeTranslucentClassification:()=>hQ,_shadersComputeIrradianceFS:()=>sAe,_shadersComputeRadianceMapFS:()=>lAe,_shadersContrastBias:()=>uGe,_shadersConvolveSpecularMapFS:()=>uAe,_shadersConvolveSpecularMapVS:()=>cAe,_shadersCustomShaderStageFS:()=>qMe,_shadersCustomShaderStageVS:()=>QMe,_shadersCzmBuiltins:()=>Fj,_shadersDepthOfField:()=>cGe,_shadersDepthPlaneFS:()=>R5e,_shadersDepthPlaneVS:()=>A5e,_shadersDepthView:()=>hGe,_shadersDepthViewPacked:()=>Rgt,_shadersDotMaterial:()=>Gwe,_shadersEdgeDetection:()=>dGe,_shadersElevationBandMaterial:()=>Fwe,_shadersElevationContourMaterial:()=>Dwe,_shadersElevationRampMaterial:()=>Nwe,_shadersEllipsoidFS:()=>Wse,_shadersEllipsoidSurfaceAppearanceFS:()=>iRe,_shadersEllipsoidSurfaceAppearanceVS:()=>rRe,_shadersEllipsoidVS:()=>Zse,_shadersFXAA:()=>mGe,_shadersFXAA3_11:()=>bGe,_shadersFadeMaterial:()=>Wwe,_shadersFeatureIdStageFS:()=>$Me,_shadersFeatureIdStageVS:()=>eVe,_shadersFilmicTonemapping:()=>pGe,_shadersGaussianBlur1D:()=>I6,_shadersGeometryStageFS:()=>oVe,_shadersGeometryStageVS:()=>aVe,_shadersGlobeFS:()=>Y3e,_shadersGlobeVS:()=>K3e,_shadersGridMaterial:()=>Zwe,_shadersGroundAtmosphere:()=>Ase,_shadersHSBToRGB:()=>RLe,_shadersHSLToRGB:()=>ALe,_shadersImageBasedLightingStageFS:()=>wMe,_shadersInstancingStageCommon:()=>NMe,_shadersInstancingStageVS:()=>WMe,_shadersIntersectBox:()=>QGe,_shadersIntersectClippingPlanes:()=>jGe,_shadersIntersectCylinder:()=>qGe,_shadersIntersectDepth:()=>JGe,_shadersIntersectEllipsoid:()=>$Ge,_shadersIntersectLongitude:()=>Use,_shadersIntersection:()=>fQ,_shadersIntersectionUtils:()=>KGe,_shadersLegacyInstancingStageVS:()=>ZMe,_shadersLensFlare:()=>xGe,_shadersLightingStageFS:()=>lVe,_shadersMaterialStageFS:()=>cVe,_shadersMegatexture:()=>nFe,_shadersMetadataStageFS:()=>tVe,_shadersMetadataStageVS:()=>iVe,_shadersModelClippingPlanesStageFS:()=>AMe,_shadersModelClippingPolygonsStageFS:()=>GMe,_shadersModelClippingPolygonsStageVS:()=>VMe,_shadersModelColorStageFS:()=>RMe,_shadersModelFS:()=>JVe,_shadersModelFlattenStageFS:()=>qVe,_shadersModelFlattenStageVS:()=>QVe,_shadersModelSilhouetteStageFS:()=>NVe,_shadersModelSilhouetteStageVS:()=>WVe,_shadersModelSplitterStageFS:()=>OVe,_shadersModelVS:()=>KVe,_shadersModifiedReinhardTonemapping:()=>gGe,_shadersMorphTargetsStageVS:()=>dVe,_shadersNightVision:()=>yGe,_shadersNormalMapMaterial:()=>Owe,_shadersOctree:()=>rFe,_shadersPassThrough:()=>BM,_shadersPassThroughDepth:()=>P6,_shadersPbrNeutralTonemapping:()=>fGe,_shadersPerInstanceColorAppearanceFS:()=>cIe,_shadersPerInstanceColorAppearanceVS:()=>hIe,_shadersPerInstanceFlatColorAppearanceFS:()=>Cue,_shadersPerInstanceFlatColorAppearanceVS:()=>dIe,_shadersPointCloudEyeDomeLighting:()=>rMe,_shadersPointCloudStylingStageVS:()=>mVe,_shadersPointPrimitiveCollectionFS:()=>oB,_shadersPointPrimitiveCollectionVS:()=>WPe,_shadersPolygonSignedDistanceFS:()=>aAe,_shadersPolylineArrowMaterial:()=>Xwe,_shadersPolylineColorAppearanceVS:()=>aIe,_shadersPolylineCommon:()=>J9,_shadersPolylineDashMaterial:()=>kwe,_shadersPolylineFS:()=>Tue,_shadersPolylineGlowMaterial:()=>Uwe,_shadersPolylineMaterialAppearanceVS:()=>sIe,_shadersPolylineOutlineMaterial:()=>Bwe,_shadersPolylineShadowVolumeFS:()=>iIe,_shadersPolylineShadowVolumeMorphFS:()=>rIe,_shadersPolylineShadowVolumeMorphVS:()=>nIe,_shadersPolylineShadowVolumeVS:()=>oIe,_shadersPolylineVS:()=>nRe,_shadersPostProcessRain:()=>Agt,_shadersPostProcessSnow:()=>Mgt,_shadersPrimitiveOutlineStageFS:()=>yVe,_shadersPrimitiveOutlineStageVS:()=>gVe,_shadersRGBToHSB:()=>rPe,_shadersRGBToHSL:()=>nPe,_shadersRGBToXYZ:()=>oPe,_shadersReinhardTonemapping:()=>_Ge,_shadersReprojectWebMercatorFS:()=>n5e,_shadersReprojectWebMercatorVS:()=>o5e,_shadersRimLightingMaterial:()=>Hwe,_shadersSelectedFeatureIdStageCommon:()=>vse,_shadersShadowVolumeAppearanceFS:()=>Sue,_shadersShadowVolumeAppearanceVS:()=>uIe,_shadersShadowVolumeFS:()=>GQ,_shadersSilhouette:()=>vGe,_shadersSkinningStageVS:()=>CVe,_shadersSkyAtmosphereCommon:()=>Yse,_shadersSkyAtmosphereFS:()=>TFe,_shadersSkyAtmosphereVS:()=>SFe,_shadersSkyBoxFS:()=>EFe,_shadersSkyBoxVS:()=>LFe,_shadersSlopeRampMaterial:()=>zwe,_shadersStripeMaterial:()=>Ywe,_shadersSunFS:()=>PFe,_shadersSunTextureFS:()=>IFe,_shadersSunVS:()=>RFe,_shadersTexturedMaterialAppearanceFS:()=>eRe,_shadersTexturedMaterialAppearanceVS:()=>tRe,_shadersVector3DTileClampedPolylinesFS:()=>x3e,_shadersVector3DTileClampedPolylinesVS:()=>m3e,_shadersVector3DTilePolylinesVS:()=>f3e,_shadersVectorTileVS:()=>Cse,_shadersVerticalExaggerationStageVS:()=>SVe,_shadersViewportQuadFS:()=>RDe,_shadersViewportQuadVS:()=>Rhe,_shadersVoxelFS:()=>zGe,_shadersVoxelUtils:()=>HGe,_shadersVoxelVS:()=>YGe,_shadersWater:()=>Jwe,_shadersWaterMaskMaterial:()=>Kwe,_shadersXYZToRGB:()=>IPe,_shadersacesTonemapping:()=>KEe,_shadersalphaWeight:()=>JEe,_shadersantialias:()=>jEe,_shadersapplyHSBShift:()=>QEe,_shadersapproximateSphericalCoordinates:()=>qEe,_shadersapproximateTanh:()=>$Ee,_shadersbackFacing:()=>eLe,_shadersbranchFreeTernary:()=>tLe,_shaderscascadeColor:()=>iLe,_shaderscascadeDistance:()=>rLe,_shaderscascadeMatrix:()=>nLe,_shaderscascadeWeights:()=>oLe,_shadersclipPolygons:()=>aLe,_shaderscolumbusViewMorph:()=>sLe,_shaderscomputeAtmosphereColor:()=>lLe,_shaderscomputeGroundAtmosphereScattering:()=>uLe,_shaderscomputePosition:()=>cLe,_shaderscomputeScattering:()=>hLe,_shadersconvertUvToBox:()=>eFe,_shadersconvertUvToCylinder:()=>tFe,_shadersconvertUvToEllipsoid:()=>iFe,_shaderscosineAndSine:()=>dLe,_shadersdecompressTextureCoordinates:()=>pLe,_shadersdegreesPerRadian:()=>iEe,_shadersdepthClamp:()=>fLe,_shadersdepthRange:()=>rEe,_shadersdepthRangeStruct:()=>OEe,_shaderseastNorthUpToEyeCoordinates:()=>mLe,_shadersellipsoidContainsPoint:()=>xLe,_shadersellipsoidTextureCoordinates:()=>gLe,_shadersepsilon1:()=>nEe,_shadersepsilon2:()=>oEe,_shadersepsilon3:()=>aEe,_shadersepsilon4:()=>sEe,_shadersepsilon5:()=>lEe,_shadersepsilon6:()=>uEe,_shadersepsilon7:()=>cEe,_shadersequalsEpsilon:()=>yLe,_shaderseyeOffset:()=>_Le,_shaderseyeToWindowCoordinates:()=>vLe,_shadersfastApproximateAtan:()=>bLe,_shadersfog:()=>CLe,_shadersgammaCorrect:()=>TLe,_shadersgeodeticSurfaceNormal:()=>SLe,_shadersgetDefaultMaterial:()=>wLe,_shadersgetDynamicAtmosphereLightDirection:()=>ELe,_shadersgetLambertDiffuse:()=>LLe,_shadersgetSpecular:()=>PLe,_shadersgetWaterNoise:()=>ILe,_shadershue:()=>MLe,_shadersinfinity:()=>hEe,_shadersinverseGamma:()=>VLe,_shadersisEmpty:()=>GLe,_shadersisFull:()=>FLe,_shaderslatitudeToWebMercatorFraction:()=>DLe,_shaderslineDistance:()=>WLe,_shaderslinearToSrgb:()=>NLe,_shadersluminance:()=>ZLe,_shadersmaterial:()=>XEe,_shadersmaterialInput:()=>kEe,_shadersmaximumComponent:()=>OLe,_shadersmetersPerPixel:()=>XLe,_shadersmodelMaterial:()=>UEe,_shadersmodelToWindowCoordinates:()=>kLe,_shadersmodelVertexOutput:()=>BEe,_shadersmultiplyWithColorBalance:()=>ULe,_shadersnearFarScalar:()=>BLe,_shadersoctDecode:()=>HLe,_shadersoneOverPi:()=>dEe,_shadersoneOverTwoPi:()=>pEe,_shaderspackDepth:()=>zLe,_shaderspassCesium3DTile:()=>fEe,_shaderspassCesium3DTileClassification:()=>mEe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>xEe,_shaderspassClassification:()=>gEe,_shaderspassCompute:()=>yEe,_shaderspassEnvironment:()=>_Ee,_shaderspassGlobe:()=>vEe,_shaderspassOpaque:()=>bEe,_shaderspassOverlay:()=>CEe,_shaderspassTerrainClassification:()=>TEe,_shaderspassTranslucent:()=>SEe,_shaderspassVoxels:()=>wEe,_shaderspbrLighting:()=>YLe,_shaderspbrNeutralTonemapping:()=>KLe,_shadersphong:()=>JLe,_shaderspi:()=>EEe,_shaderspiOverFour:()=>LEe,_shaderspiOverSix:()=>PEe,_shaderspiOverThree:()=>IEe,_shaderspiOverTwo:()=>REe,_shadersplaneDistance:()=>jLe,_shaderspointAlongRay:()=>QLe,_shadersradiansPerDegree:()=>AEe,_shadersray:()=>HEe,_shadersrayEllipsoidIntersectionInterval:()=>qLe,_shadersraySegment:()=>zEe,_shadersraySphereIntersectionInterval:()=>$Le,_shadersreadDepth:()=>ePe,_shadersreadNonPerspective:()=>tPe,_shadersreverseLogDepth:()=>iPe,_shadersround:()=>aPe,_shaderssaturation:()=>sPe,_shaderssceneMode2D:()=>MEe,_shaderssceneMode3D:()=>VEe,_shaderssceneModeColumbusView:()=>GEe,_shaderssceneModeMorphing:()=>FEe,_shadersshadowDepthCompare:()=>lPe,_shadersshadowParameters:()=>YEe,_shadersshadowVisibility:()=>uPe,_shaderssignNotZero:()=>cPe,_shaderssolarRadius:()=>DEe,_shaderssphericalHarmonics:()=>hPe,_shaderssrgbToLinear:()=>dPe,_shaderstangentToEyeSpaceMatrix:()=>pPe,_shaderstextureCube:()=>fPe,_shadersthreePiOver2:()=>NEe,_shaderstransformPlane:()=>mPe,_shaderstranslateRelativeToEye:()=>xPe,_shaderstranslucentPhong:()=>gPe,_shaderstranspose:()=>yPe,_shaderstwoPi:()=>WEe,_shadersunpackClippingExtents:()=>_Pe,_shadersunpackDepth:()=>vPe,_shadersunpackFloat:()=>bPe,_shadersunpackUint:()=>CPe,_shadersvalueTransform:()=>TPe,_shadersvertexLogDepth:()=>SPe,_shaderswebMercatorMaxLatitude:()=>ZEe,_shaderswindowToEyeCoordinates:()=>wPe,_shaderswriteDepthClamp:()=>EPe,_shaderswriteLogDepth:()=>LPe,_shaderswriteNonPerspective:()=>PPe,addBuffer:()=>RAe,addDefaults:()=>CAe,addExtensionsRequired:()=>LAe,addExtensionsUsed:()=>fO,addPipelineExtras:()=>nq,addToArray:()=>n1,appendForwardSlash:()=>YSe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>aue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>sFe,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>phe,createBillboardPointCallback:()=>rhe,createBlurStage:()=>xle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>MNe,createDefaultTerrainProviderViewModels:()=>VNe,createEdgeStage:()=>q4,createElevationBandMaterial:()=>Vxt,createFragmentFromTemplate:()=>jDe,createGooglePhotorealistic3DTileset:()=>Gxt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Fxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>bb,createTangentSpaceDebugPrimitive:()=>Dxt,createTaskProcessorWorker:()=>Xgt,createUniform:()=>$we,createUniformArray:()=>tEe,createWorldBathymetryAsync:()=>mDe,createWorldImageryAsync:()=>YB,createWorldTerrainAsync:()=>_de,decodeGoogleEarthEnterpriseData:()=>gDe,decodeVectorPolylinePositions:()=>y3e,defaultValue:()=>zmt,defer:()=>mp,defined:()=>F,demodernizeShader:()=>RPe,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>bmt,fflate_module:()=>lNe,findAccessorMinMax:()=>oq,findContentMetadata:()=>ahe,findGroupMetadata:()=>she,findTileMetadata:()=>w3e,forEachTextureInMaterial:()=>Ice,formatError:()=>vH,fragment:()=>Ggt,freezeRenderState:()=>xtt,getAbsoluteUri:()=>eH,getAccessorByteStride:()=>XF,getBaseUri:()=>JSe,getBinaryAccessor:()=>SM,getClipAndStyleCode:()=>MFe,getClippingFunction:()=>Aq,getComponentReader:()=>J7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>E7,getImageFromTypedArray:()=>jPe,getImagePixels:()=>HZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>Qz,getMetadataClassProperty:()=>xFe,getMetadataProperty:()=>yFe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>k7,isBitSet:()=>m1,isBlobUri:()=>jle,isCrossOriginUrl:()=>zZ,isDataUri:()=>a7,isLeapYear:()=>KZ,knockout:()=>sr,knockout_3_5_1:()=>FV,knockout_es5:()=>wNe,libgif:()=>xRe,loadAndExecuteScript:()=>Qle,loadCRN:()=>oxt,loadCubeMap:()=>wFe,loadDDS:()=>tue,loadImageFromTypedArray:()=>jz,loadKTX2:()=>IF,loadView:()=>Ade,mergeSort:()=>C4,moveTechniqueRenderStates:()=>EAe,moveTechniquesToExtension:()=>PAe,numberOfComponentsForType:()=>dO,objFS:()=>pNe,objectToQuery:()=>qle,oneTimeWarning:()=>aa,packer:()=>eIe,parseBatchTable:()=>e4,parseDefines:()=>xNe,parseFeatureMetadataLegacy:()=>_Ae,parseGlb:()=>SAe,parseResponseHeaders:()=>jSe,parseStructuralMetadata:()=>yAe,pickModel:()=>r3e,pointInsideTriangle:()=>hxt,preprocess3DTileContent:()=>vq,processVoxelProperties:()=>aFe,queryToObject:()=>lI,rasterizeHTML_allinone:()=>BFe,readAccessorPacked:()=>AAe,removeExtension:()=>g6,removeExtensionsRequired:()=>TAe,removeExtensionsUsed:()=>Pce,removePipelineExtras:()=>wAe,removeUnusedElements:()=>IAe,remove_primitive:()=>W6,resizeImageToNextPowerOfTwo:()=>MQ,sampleTerrain:()=>Rq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>iue,srgbToLinear:()=>qhe,subdivideArray:()=>lIe,subscribeAndEvaluate:()=>Lb,svgCompassGyro:()=>iNe,svgCompassOuterRing:()=>tNe,svgCompassRotationMarker:()=>rNe,svgReset:()=>qDe,turf:()=>Po,updateAccessorComponentTypes:()=>MAe,updateVersion:()=>FAe,usesExtension:()=>cm,vertex:()=>Fgt,viewerCesium3DTilesInspectorMixin:()=>hyt,viewerCesiumInspectorMixin:()=>dyt,viewerCesiumNavigationMixin:()=>ugt,viewerDragDropMixin:()=>pyt,viewerPerformanceWatchdogMixin:()=>fyt,viewerVoxelInspectorMixin:()=>xyt,webGLConstantToGlslType:()=>Cxt,wrapFunction:()=>SDe,writeTextToCanvas:()=>z9});we();we();function w$(o=!0){this.async=o}w$.prototype.getXmlHttpRequest=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("MsXml2.XmlHttp")};w$.prototype.includeJsText=function(o,f){if(o!=null){var m=document.createElement("script");m.type="text/javascript",m.text=f,o.appendChild(m)}};w$.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)}};w$.prototype.addJs=function(o,f,m){var x=this.getXmlHttpRequest(),y=this;x.onreadystatechange=function(){x.readyState===4&&(x.status===200||x.status===304?y.includeJsSrc(o,f,m):console.log("XML request error: "+x.statusText+" ("+x.status+")"))},x.open("GET",f,y.async),x.send(null),x.status===404?console.log(f+" is not found"):y.includeJsText(o,x.responseText)};var ex=w$;we();we();var Uji={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"}},$r=Object.freeze(Uji);we();we();we();function Bji(o,f){return o??f}var Ff=Bji;we();var gyt=`// author: \u5F20\u4E39\u948A czm_material czm_getMaterial(czm_materialInput materialInput) { czm_material material = czm_getDefaultMaterial(materialInput); @@ -25399,7 +25482,7 @@ `||w===E){v=Math.max(v,C),y.push(C),C=0,T+=S;continue}var I=f[w+1]||o.font,R=wme(I,L);m.push(R),C+=R;var P=znr(I);x.push(P),S=Math.max(S,P)}return{width:v,height:T,widths:m,heights:x,lineWidths:y}}function BTt(o,f,m,x,y,v,C,T,S,w,E){o.save(),m!==1&&(o.globalAlpha*=m),f&&o.setTransform.apply(o,f),x.contextInstructions?(o.translate(S,w),o.scale(E[0],E[1]),Ynr(x,o)):E[0]<0||E[1]<0?(o.translate(S,w),o.scale(E[0],E[1]),o.drawImage(x,y,v,C,T,0,0,C,T)):o.drawImage(x,y,v,C,T,S,w,C*E[0],T*E[1]),o.restore()}function Ynr(o,f){for(var m=o.contextInstructions,x=0,y=m.length;x<y;x+=2)Array.isArray(m[x+1])?f[m[x]].apply(f,m[x+1]):f[m[x]]=m[x+1]}var Knr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Jnr=function(o){Knr(f,o);function f(m){var x=this,y=m.rotateWithView!==void 0?m.rotateWithView:!1;return x=o.call(this,{opacity:1,rotateWithView:y,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 y=this.renderOptions_,v=Zf(y.size*m,y.size*m);this.draw_(y,v,m),x=v.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 bh.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,y){if(x===0||this.points_===1/0||m!=="bevel"&&m!=="miter")return x;var v=this.radius_,C=this.radius2_===void 0?v:this.radius2_;if(v<C){var T=v;v=C,C=T}var S=this.radius2_===void 0?this.points_:this.points_*2,w=2*Math.PI/S,E=C*Math.sin(w),L=Math.sqrt(C*C-E*E),I=v-L,R=Math.sqrt(E*E+I*I),P=R/E;if(m==="miter"&&P<=y)return P*x;var A=x/2/P,M=x/2*(I/R),V=Math.sqrt((v+A)*(v+A)+M*M),G=V-v;if(this.radius2_===void 0||m==="bevel")return G*2;var D=v*Math.sin(w),N=Math.sqrt(v*v-D*D),k=C-N,U=Math.sqrt(D*D+k*k),B=U/D;if(B<=y){var Y=B*x/2-C-v;return 2*Math.max(G,Y)}return G*2},f.prototype.createRenderOptions=function(){var m=MR,x=0,y=null,v=0,C,T=0;this.stroke_&&(C=this.stroke_.getColor(),C===null&&(C=$V),C=$b(C),T=this.stroke_.getWidth(),T===void 0&&(T=t3),y=this.stroke_.getLineDash(),v=this.stroke_.getLineDashOffset(),m=this.stroke_.getLineJoin(),m===void 0&&(m=MR),x=this.stroke_.getMiterLimit(),x===void 0&&(x=qV));var S=this.calculateLineJoinSize_(m,T,x),w=Math.max(this.radius_,this.radius2_||0),E=Math.ceil(2*w+S);return{strokeStyle:C,strokeWidth:T,size:E,lineDash:y,lineDashOffset:v,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,y){if(x.scale(y,y),x.translate(m.size/2,m.size/2),this.createPath_(x),this.fill_){var v=this.fill_.getColor();v===null&&(v=eC),x.fillStyle=$b(v),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(),y=0;if(typeof x=="string"&&(x=gX(x)),x===null?y=1:Array.isArray(x)&&(y=x.length===4?x[3]:1),y===0){var v=Zf(m.size,m.size);this.hitDetectionCanvas_=v.canvas,this.drawHitDetectionCanvas_(m,v)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},f.prototype.createPath_=function(m){var x=this.points_,y=this.radius_;if(x===1/0)m.arc(0,0,y,0,2*Math.PI);else{var v=this.radius2_===void 0?y:this.radius2_;this.radius2_!==void 0&&(x*=2);for(var C=this.angle_-Math.PI/2,T=2*Math.PI/x,S=0;S<x;S++){var w=C+S*T,E=S%2===0?y:v;m.lineTo(E*Math.cos(w),E*Math.sin(w))}m.closePath()}},f.prototype.drawHitDetectionCanvas_=function(m,x){x.translate(m.size/2,m.size/2),this.createPath_(x),x.fillStyle=eC,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}(Tme),HTt=Jnr;var jnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Qnr=function(o){jnr(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}(HTt),zTt=Qnr;we();var qnr=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}(),vX=qnr;we();var $nr=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}(),Xee=$nr;var KTt=function(){function o(f){var m=f||{};this.geometry_=null,this.geometryFunction_=YTt,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_=YTt,this.geometry_=f},o.prototype.setZIndex=function(f){this.zIndex_=f},o}();function JTt(o){var f;if(typeof o=="function")f=o;else{var m;if(Array.isArray(o))m=o;else{Su(typeof o.getZIndex=="function",41);var x=o;m=[x]}f=function(){return m}}return f}var VOe=null;function jTt(o,f){if(!VOe){var m=new vX({color:"rgba(255,255,255,0.4)"}),x=new Xee({color:"#3399CC",width:1.25});VOe=[new KTt({image:new zTt({fill:m,stroke:x,radius:5}),fill:m,stroke:x})]}return VOe}function YTt(o){return o.getGeometry()}var QTt=KTt;we();we();var Lme={POINT:"point",LINE:"line"};var eor="#333",tor=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_=sf(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 vX({color:eor}),this.maxAngle_=m.maxAngle!==void 0?m.maxAngle:Math.PI/4,this.placement_=m.placement!==void 0?m.placement:Lme.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_=sf(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}(),qTt=tor;we();we();we();we();we();var Nh={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 ior=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),ror=function(o){ior(f,o);function f(m){var x=o.call(this)||this;x.on,x.once,x.un,x.background_=m.background;var y=ox({},m);return typeof m.properties=="object"&&(delete y.properties,ox(y,m.properties)),y[Nh.OPACITY]=m.opacity!==void 0?m.opacity:1,Su(typeof y[Nh.OPACITY]=="number",64),y[Nh.VISIBLE]=m.visible!==void 0?m.visible:!0,y[Nh.Z_INDEX]=m.zIndex,y[Nh.MAX_RESOLUTION]=m.maxResolution!==void 0?m.maxResolution:1/0,y[Nh.MIN_RESOLUTION]=m.minResolution!==void 0?m.minResolution:0,y[Nh.MIN_ZOOM]=m.minZoom!==void 0?m.minZoom:-1/0,y[Nh.MAX_ZOOM]=m.maxZoom!==void 0?m.maxZoom:1/0,x.className_=y.className!==void 0?y.className:"ol-layer",delete y.className,x.setProperties(y),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},y=this.getZIndex();return x.opacity=Vv(Math.round(this.getOpacity()*100)/100,0,1),x.visible=this.getVisible(),x.extent=this.getExtent(),x.zIndex=y===void 0&&!x.managed?1/0:y,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 Us()},f.prototype.getLayerStatesArray=function(m){return Us()},f.prototype.getExtent=function(){return this.get(Nh.EXTENT)},f.prototype.getMaxResolution=function(){return this.get(Nh.MAX_RESOLUTION)},f.prototype.getMinResolution=function(){return this.get(Nh.MIN_RESOLUTION)},f.prototype.getMinZoom=function(){return this.get(Nh.MIN_ZOOM)},f.prototype.getMaxZoom=function(){return this.get(Nh.MAX_ZOOM)},f.prototype.getOpacity=function(){return this.get(Nh.OPACITY)},f.prototype.getSourceState=function(){return Us()},f.prototype.getVisible=function(){return this.get(Nh.VISIBLE)},f.prototype.getZIndex=function(){return this.get(Nh.Z_INDEX)},f.prototype.setBackground=function(m){this.background_=m,this.changed()},f.prototype.setExtent=function(m){this.set(Nh.EXTENT,m)},f.prototype.setMaxResolution=function(m){this.set(Nh.MAX_RESOLUTION,m)},f.prototype.setMinResolution=function(m){this.set(Nh.MIN_RESOLUTION,m)},f.prototype.setMaxZoom=function(m){this.set(Nh.MAX_ZOOM,m)},f.prototype.setMinZoom=function(m){this.set(Nh.MIN_ZOOM,m)},f.prototype.setOpacity=function(m){Su(typeof m=="number",64),this.set(Nh.OPACITY,m)},f.prototype.setVisible=function(m){this.set(Nh.VISIBLE,m)},f.prototype.setZIndex=function(m){this.set(Nh.Z_INDEX,m)},f.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),o.prototype.disposeInternal.call(this)},f}(mw),$Tt=ror;we();var kee={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var nor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),oor=function(o){nor(f,o);function f(m){var x=this,y=ox({},m);delete y.source,x=o.call(this,y)||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(Nh.SOURCE,x.handleSourcePropertyChange_);var v=m.source?m.source:null;return x.setSource(v),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(Nh.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_&&(Dy(this.sourceChangeKey_),this.sourceChangeKey_=null);var m=this.getSource();m&&(this.sourceChangeKey_=Gv(m,wd.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 y=this.getRenderer();if(y.prepareFrame(m))return this.rendered=!0,y.renderFrame(m,x)},f.prototype.unrender=function(){this.rendered=!1},f.prototype.setMapInternal=function(m){m||this.unrender(),this.set(Nh.MAP,m)},f.prototype.getMapInternal=function(){return this.get(Nh.MAP)},f.prototype.setMap=function(m){this.mapPrecomposeKey_&&(Dy(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),m||this.changed(),this.mapRenderKey_&&(Dy(this.mapRenderKey_),this.mapRenderKey_=null),m&&(this.mapPrecomposeKey_=Gv(m,kee.PRECOMPOSE,function(x){var y=x,v=y.frameState.layerStatesArray,C=this.getLayerState(!1);Su(!v.some(function(T){return T.layer===C.layer}),67),v.push(C)},this),this.mapRenderKey_=Gv(this,wd.CHANGE,m.render,m),this.changed())},f.prototype.setSource=function(m){this.set(Nh.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}($Tt);var eSt=oor;var iSt=x5(DOe(),1);var aor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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"},sor=function(o){aor(f,o);function f(m){var x=this,y=m||{},v=ox({},y);return delete v.style,delete v.renderBuffer,delete v.updateWhileAnimating,delete v.updateWhileInteracting,x=o.call(this,v)||this,x.declutter_=y.declutter!==void 0?y.declutter:!1,x.renderBuffer_=y.renderBuffer!==void 0?y.renderBuffer:100,x.style_=null,x.styleFunction_=void 0,x.setStyle(y.style),x.updateWhileAnimating_=y.updateWhileAnimating!==void 0?y.updateWhileAnimating:!1,x.updateWhileInteracting_=y.updateWhileInteracting!==void 0?y.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:jTt,this.styleFunction_=m===null?void 0:JTt(this.style_),this.changed()},f}(eSt),rSt=sor;we();we();we();we();var Uee={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},Bee=[Uee.FILL],VR=[Uee.STROKE],i3=[Uee.BEGIN_PATH],NOe=[Uee.CLOSE_PATH],Es=Uee;we();var lor=function(){function o(){}return o.prototype.drawCustom=function(f,m,x,y){},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}(),Pme=lor;var uor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),cor=function(o){uor(f,o);function f(m,x,y,v){var C=o.call(this)||this;return C.tolerance=m,C.maxExtent=x,C.pixelRatio=v,C.maxLineWidth=0,C.resolution=y,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(y){return y*x})},f.prototype.appendFlatPointCoordinates=function(m,x){for(var y=this.getBufferedMaxExtent(),v=this.tmpCoordinate_,C=this.coordinates,T=C.length,S=0,w=m.length;S<w;S+=x)v[0]=m[S],v[1]=m[S+1],IR(y,v)&&(C[T++]=v[0],C[T++]=v[1]);return T},f.prototype.appendFlatLineCoordinates=function(m,x,y,v,C,T){var S=this.coordinates,w=S.length,E=this.getBufferedMaxExtent();T&&(x+=v);var L=m[x],I=m[x+1],R=this.tmpCoordinate_,P=!0,A,M,V;for(A=x+v;A<y;A+=v)R[0]=m[A],R[1]=m[A+1],V=Qfe(E,R),V!==M?(P&&(S[w++]=L,S[w++]=I,P=!1),S[w++]=R[0],S[w++]=R[1]):V===ax.INTERSECTING?(S[w++]=R[0],S[w++]=R[1],P=!1):P=!0,L=R[0],I=R[1],M=V;return(C&&P||A===x+v)&&(S[w++]=L,S[w++]=I),w},f.prototype.drawCustomCoordinates_=function(m,x,y,v,C){for(var T=0,S=y.length;T<S;++T){var w=y[T],E=this.appendFlatLineCoordinates(m,x,w,v,!1,!1);C.push(E),x=w}return x},f.prototype.drawCustom=function(m,x,y,v){this.beginGeometry(m,x);var C=m.getType(),T=m.getStride(),S=this.coordinates.length,w,E,L,I,R;switch(C){case"MultiPolygon":w=m.getOrientedFlatCoordinates(),I=[];var P=m.getEndss();R=0;for(var A=0,M=P.length;A<M;++A){var V=[];R=this.drawCustomCoordinates_(w,R,P[A],T,V),I.push(V)}this.instructions.push([Es.CUSTOM,S,I,m,y,Dee]),this.hitDetectionInstructions.push([Es.CUSTOM,S,I,m,v||y,Dee]);break;case"Polygon":case"MultiLineString":L=[],w=C=="Polygon"?m.getOrientedFlatCoordinates():m.getFlatCoordinates(),R=this.drawCustomCoordinates_(w,0,m.getEnds(),T,L),this.instructions.push([Es.CUSTOM,S,L,m,y,YD]),this.hitDetectionInstructions.push([Es.CUSTOM,S,L,m,v||y,YD]);break;case"LineString":case"Circle":w=m.getFlatCoordinates(),E=this.appendFlatLineCoordinates(w,0,w.length,T,!1,!1),this.instructions.push([Es.CUSTOM,S,E,m,y,gw]),this.hitDetectionInstructions.push([Es.CUSTOM,S,E,m,v||y,gw]);break;case"MultiPoint":w=m.getFlatCoordinates(),E=this.appendFlatPointCoordinates(w,T),E>S&&(this.instructions.push([Es.CUSTOM,S,E,m,y,gw]),this.hitDetectionInstructions.push([Es.CUSTOM,S,E,m,v||y,gw]));break;case"Point":w=m.getFlatCoordinates(),this.coordinates.push(w[0],w[1]),E=this.coordinates.length,this.instructions.push([Es.CUSTOM,S,E,m,y]),this.hitDetectionInstructions.push([Es.CUSTOM,S,E,m,v||y]);break;default:}this.endGeometry(x)},f.prototype.beginGeometry=function(m,x){this.beginGeometryInstruction1_=[Es.BEGIN_GEOMETRY,x,0,m],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Es.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,y=m.length,v,C,T=-1;for(x=0;x<y;++x)v=m[x],C=v[0],C==Es.END_GEOMETRY?T=x:C==Es.BEGIN_GEOMETRY&&(v[2]=x,qCt(this.hitDetectionInstructions,T,x),T=-1)},f.prototype.setFillStrokeStyle=function(m,x){var y=this.state;if(m){var v=m.getColor();y.fillStyle=$b(v||eC)}else y.fillStyle=void 0;if(x){var C=x.getColor();y.strokeStyle=$b(C||$V);var T=x.getLineCap();y.lineCap=T!==void 0?T:yX;var S=x.getLineDash();y.lineDash=S?S.slice():jV;var w=x.getLineDashOffset();y.lineDashOffset=w||QV;var E=x.getLineJoin();y.lineJoin=E!==void 0?E:MR;var L=x.getWidth();y.lineWidth=L!==void 0?L:t3;var I=x.getMiterLimit();y.miterLimit=I!==void 0?I:qV,y.lineWidth>this.maxLineWidth&&(this.maxLineWidth=y.lineWidth,this.bufferedMaxExtent_=null)}else y.strokeStyle=void 0,y.lineCap=void 0,y.lineDash=null,y.lineDashOffset=void 0,y.lineJoin=void 0,y.lineWidth=void 0,y.miterLimit=void 0},f.prototype.createFill=function(m){var x=m.fillStyle,y=[Es.SET_FILL_STYLE,x];return typeof x!="string"&&y.push(!0),y},f.prototype.applyStroke=function(m){this.instructions.push(this.createStroke(m))},f.prototype.createStroke=function(m){return[Es.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 y=m.fillStyle;(typeof y!="string"||m.currentFillStyle!=y)&&(y!==void 0&&this.instructions.push(x.call(this,m)),m.currentFillStyle=y)},f.prototype.updateStrokeStyle=function(m,x){var y=m.strokeStyle,v=m.lineCap,C=m.lineDash,T=m.lineDashOffset,S=m.lineJoin,w=m.lineWidth,E=m.miterLimit;(m.currentStrokeStyle!=y||m.currentLineCap!=v||C!=m.currentLineDash&&!LR(m.currentLineDash,C)||m.currentLineDashOffset!=T||m.currentLineJoin!=S||m.currentLineWidth!=w||m.currentMiterLimit!=E)&&(y!==void 0&&x.call(this,m),m.currentStrokeStyle=y,m.currentLineCap=v,m.currentLineDash=C,m.currentLineDashOffset=T,m.currentLineJoin=S,m.currentLineWidth=w,m.currentMiterLimit=E)},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=[Es.END_GEOMETRY,m];this.instructions.push(x),this.hitDetectionInstructions.push(x)},f.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=x1t(this.maxExtent),this.maxLineWidth>0)){var m=this.resolution*(this.maxLineWidth+1)/2;ZL(this.bufferedMaxExtent_,m,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},f}(Pme),GR=cor;we();var hor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),dor=function(o){hor(f,o);function f(m,x,y,v){var C=o.call(this,m,x,y,v)||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 y=m.getFlatCoordinates(),v=m.getStride(),C=this.coordinates.length,T=this.appendFlatPointCoordinates(y,v);this.instructions.push([Es.DRAW_IMAGE,C,T,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([Es.DRAW_IMAGE,C,T,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 y=m.getFlatCoordinates(),v=m.getStride(),C=this.coordinates.length,T=this.appendFlatPointCoordinates(y,v);this.instructions.push([Es.DRAW_IMAGE,C,T,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([Es.DRAW_IMAGE,C,T,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 y=m.getAnchor(),v=m.getSize(),C=m.getOrigin();this.imagePixelRatio_=m.getPixelRatio(this.pixelRatio),this.anchorX_=y[0],this.anchorY_=y[1],this.hitDetectionImage_=m.getHitDetectionImage(),this.image_=m.getImage(this.pixelRatio),this.height_=v[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_=v[0],this.declutterMode_=m.getDeclutterMode(),this.declutterImageWithText_=x},f}(GR),nSt=dor;we();var por=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),mor=function(o){por(f,o);function f(m,x,y,v){return o.call(this,m,x,y,v)||this}return f.prototype.drawFlatCoordinates_=function(m,x,y,v){var C=this.coordinates.length,T=this.appendFlatLineCoordinates(m,x,y,v,!1,!1),S=[Es.MOVE_TO_LINE_TO,C,T];return this.instructions.push(S),this.hitDetectionInstructions.push(S),y},f.prototype.drawLineString=function(m,x){var y=this.state,v=y.strokeStyle,C=y.lineWidth;if(!(v===void 0||C===void 0)){this.updateStrokeStyle(y,this.applyStroke),this.beginGeometry(m,x),this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,jV,QV],i3);var T=m.getFlatCoordinates(),S=m.getStride();this.drawFlatCoordinates_(T,0,T.length,S),this.hitDetectionInstructions.push(VR),this.endGeometry(x)}},f.prototype.drawMultiLineString=function(m,x){var y=this.state,v=y.strokeStyle,C=y.lineWidth;if(!(v===void 0||C===void 0)){this.updateStrokeStyle(y,this.applyStroke),this.beginGeometry(m,x),this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset],i3);for(var T=m.getEnds(),S=m.getFlatCoordinates(),w=m.getStride(),E=0,L=0,I=T.length;L<I;++L)E=this.drawFlatCoordinates_(S,E,T[L],w);this.hitDetectionInstructions.push(VR),this.endGeometry(x)}},f.prototype.finish=function(){var m=this.state;return m.lastStroke!=null&&m.lastStroke!=this.coordinates.length&&this.instructions.push(VR),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(VR),m.lastStroke=this.coordinates.length),m.lastStroke=0,o.prototype.applyStroke.call(this,m),this.instructions.push(i3)},f}(GR),oSt=mor;we();var xor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),gor=function(o){xor(f,o);function f(m,x,y,v){return o.call(this,m,x,y,v)||this}return f.prototype.drawFlatCoordinatess_=function(m,x,y,v){var C=this.state,T=C.fillStyle!==void 0,S=C.strokeStyle!==void 0,w=y.length;this.instructions.push(i3),this.hitDetectionInstructions.push(i3);for(var E=0;E<w;++E){var L=y[E],I=this.coordinates.length,R=this.appendFlatLineCoordinates(m,x,L,v,!0,!S),P=[Es.MOVE_TO_LINE_TO,I,R];this.instructions.push(P),this.hitDetectionInstructions.push(P),S&&(this.instructions.push(NOe),this.hitDetectionInstructions.push(NOe)),x=L}return T&&(this.instructions.push(Bee),this.hitDetectionInstructions.push(Bee)),S&&(this.instructions.push(VR),this.hitDetectionInstructions.push(VR)),x},f.prototype.drawCircle=function(m,x){var y=this.state,v=y.fillStyle,C=y.strokeStyle;if(!(v===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),y.fillStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_FILL_STYLE,eC]),y.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset]);var T=m.getFlatCoordinates(),S=m.getStride(),w=this.coordinates.length;this.appendFlatLineCoordinates(T,0,T.length,S,!1,!1);var E=[Es.CIRCLE,w];this.instructions.push(i3,E),this.hitDetectionInstructions.push(i3,E),y.fillStyle!==void 0&&(this.instructions.push(Bee),this.hitDetectionInstructions.push(Bee)),y.strokeStyle!==void 0&&(this.instructions.push(VR),this.hitDetectionInstructions.push(VR)),this.endGeometry(x)}},f.prototype.drawPolygon=function(m,x){var y=this.state,v=y.fillStyle,C=y.strokeStyle;if(!(v===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),y.fillStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_FILL_STYLE,eC]),y.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset]);var T=m.getEnds(),S=m.getOrientedFlatCoordinates(),w=m.getStride();this.drawFlatCoordinatess_(S,0,T,w),this.endGeometry(x)}},f.prototype.drawMultiPolygon=function(m,x){var y=this.state,v=y.fillStyle,C=y.strokeStyle;if(!(v===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),y.fillStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_FILL_STYLE,eC]),y.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset]);for(var T=m.getEndss(),S=m.getOrientedFlatCoordinates(),w=m.getStride(),E=0,L=0,I=T.length;L<I;++L)E=this.drawFlatCoordinatess_(S,E,T[L],w);this.endGeometry(x)}},f.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var m=this.tolerance;if(m!==0)for(var x=this.coordinates,y=0,v=x.length;y<v;++y)x[y]=zD(x[y],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}(GR),WOe=gor;we();we();function aSt(o,f,m,x,y){var v=m,C=m,T=0,S=0,w=m,E,L,I,R,P,A,M,V,G,D;for(L=m;L<x;L+=y){var N=f[L],k=f[L+1];P!==void 0&&(G=N-P,D=k-A,R=Math.sqrt(G*G+D*D),M!==void 0&&(S+=I,E=Math.acos((M*G+V*D)/(I*R)),E>o&&(S>T&&(T=S,v=w,C=L),S=0,w=L-y)),I=R,M=G,V=D),P=N,A=k}return S+=R,S>T?[w,L]:[v,C]}var yor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),xK={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},_or=function(o){yor(f,o);function f(m,x,y,v){var C=o.call(this,m,x,y,v)||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 y=this.textFillState_,v=this.textStrokeState_,C=this.textState_;if(!(this.text_===""||!C||!y&&!v)){var T=this.coordinates,S=T.length,w=m.getType(),E=null,L=m.getStride();if(C.placement===Lme.LINE&&(w=="LineString"||w=="MultiLineString"||w=="Polygon"||w=="MultiPolygon")){if(!Ed(this.getBufferedMaxExtent(),m.getExtent()))return;var I=void 0;if(E=m.getFlatCoordinates(),w=="LineString")I=[E.length];else if(w=="MultiLineString")I=m.getEnds();else if(w=="Polygon")I=m.getEnds().slice(0,1);else if(w=="MultiPolygon"){var R=m.getEndss();I=[];for(var P=0,A=R.length;P<A;++P)I.push(R[P][0])}this.beginGeometry(m,x);for(var M=C.textAlign,V=0,G=void 0,D=0,N=I.length;D<N;++D){if(M==null){var k=aSt(C.maxAngle,E,V,I[D],L);V=k[0],G=k[1]}else G=I[D];for(var P=V;P<G;P+=L)T.push(E[P],E[P+1]);var U=T.length;V=I[D],this.drawChars_(S,U),S=U}this.endGeometry(x)}else{var B=C.overflow?null:[];switch(w){case"Point":case"MultiPoint":E=m.getFlatCoordinates();break;case"LineString":E=m.getFlatMidpoint();break;case"Circle":E=m.getCenter();break;case"MultiLineString":E=m.getFlatMidpoints(),L=2;break;case"Polygon":E=m.getFlatInteriorPoint(),C.overflow||B.push(E[2]/this.resolution),L=3;break;case"MultiPolygon":var Y=m.getFlatInteriorPoints();E=[];for(var P=0,A=Y.length;P<A;P+=3)C.overflow||B.push(Y[P+2]/this.resolution),E.push(Y[P],Y[P+1]);if(E.length===0)return;L=2;break;default:}var U=this.appendFlatPointCoordinates(E,L);if(U===S)return;if(B&&(U-S)/2!==E.length/L){var J=S/2;B=B.filter(function(ee,ae){var oe=T[(J+ae)*2]===E[ae*L]&&T[(J+ae)*2+1]===E[ae*L+1];return oe||--J,oe})}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 K=C.padding;if(K!=e3&&(C.scale[0]<0||C.scale[1]<0)){var z=C.padding[0],j=C.padding[1],q=C.padding[2],O=C.padding[3];C.scale[0]<0&&(j=-j,O=-O),C.scale[1]<0&&(z=-z,q=-q),K=[z,j,q,O]}var te=this.pixelRatio;this.instructions.push([Es.DRAW_IMAGE,S,U,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,K==e3?e3:K.map(function(ee){return ee*te}),!!C.backgroundFill,!!C.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,B]);var ie=1/te;this.hitDetectionInstructions.push([Es.DRAW_IMAGE,S,U,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[ie,ie],NaN,void 0,this.declutterImageWithText_,K,!!C.backgroundFill,!!C.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,B]),this.endGeometry(x)}}},f.prototype.saveTextStates_=function(){var m=this.textStrokeState_,x=this.textState_,y=this.textFillState_,v=this.strokeKey_;m&&(v in this.strokeStates||(this.strokeStates[v]={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||QD,justify:x.justify,textBaseline:x.textBaseline||_X,scale:x.scale});var T=this.fillKey_;y&&(T in this.fillStates||(this.fillStates[T]={fillStyle:y.fillStyle}))},f.prototype.drawChars_=function(m,x){var y=this.textStrokeState_,v=this.textState_,C=this.strokeKey_,T=this.textKey_,S=this.fillKey_;this.saveTextStates_();var w=this.pixelRatio,E=xK[v.textBaseline],L=this.textOffsetY_*w,I=this.text_,R=y?y.lineWidth*Math.abs(v.scale[0])/2:0;this.instructions.push([Es.DRAW_CHARS,m,x,E,v.overflow,S,v.maxAngle,w,L,C,R*w,I,T,1]),this.hitDetectionInstructions.push([Es.DRAW_CHARS,m,x,E,v.overflow,S,v.maxAngle,1,L,C,R,I,T,1/w])},f.prototype.setTextStyle=function(m,x){var y,v,C;if(!m)this.text_="";else{var T=m.getFill();T?(v=this.textFillState_,v||(v={},this.textFillState_=v),v.fillStyle=$b(T.getColor()||eC)):(v=null,this.textFillState_=v);var S=m.getStroke();if(!S)C=null,this.textStrokeState_=C;else{C=this.textStrokeState_,C||(C={},this.textStrokeState_=C);var w=S.getLineDash(),E=S.getLineDashOffset(),L=S.getWidth(),I=S.getMiterLimit();C.lineCap=S.getLineCap()||yX,C.lineDash=w?w.slice():jV,C.lineDashOffset=E===void 0?QV:E,C.lineJoin=S.getLineJoin()||MR,C.lineWidth=L===void 0?t3:L,C.miterLimit=I===void 0?qV:I,C.strokeStyle=$b(S.getColor()||$V)}y=this.textState_;var R=m.getFont()||Eme;XTt(R);var P=m.getScaleArray();y.overflow=m.getOverflow(),y.font=R,y.maxAngle=m.getMaxAngle(),y.placement=m.getPlacement(),y.textAlign=m.getTextAlign(),y.justify=m.getJustify(),y.textBaseline=m.getTextBaseline()||_X,y.backgroundFill=m.getBackgroundFill(),y.backgroundStroke=m.getBackgroundStroke(),y.padding=m.getPadding()||e3,y.scale=P===void 0?[1,1]:P;var A=m.getOffsetX(),M=m.getOffsetY(),V=m.getRotateWithView(),G=m.getRotation();this.text_=m.getText()||"",this.textOffsetX_=A===void 0?0:A,this.textOffsetY_=M===void 0?0:M,this.textRotateWithView_=V===void 0?!1:V,this.textRotation_=G===void 0?0:G,this.strokeKey_=C?(typeof C.strokeStyle=="string"?C.strokeStyle:mu(C.strokeStyle))+C.lineCap+C.lineDashOffset+"|"+C.lineWidth+C.lineJoin+C.miterLimit+"["+C.lineDash.join()+"]":"",this.textKey_=y.font+y.scale+(y.textAlign||"?")+(y.justify||"?")+(y.textBaseline||"?"),this.fillKey_=v?typeof v.fillStyle=="string"?v.fillStyle:"|"+mu(v.fillStyle):""}this.declutterImageWithText_=x},f}(GR),sSt=_or;var vor={Circle:WOe,Default:GR,Image:nSt,LineString:oSt,Polygon:WOe,Text:sSt},bor=function(){function o(f,m,x,y){this.tolerance_=f,this.maxExtent_=m,this.pixelRatio_=y,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 y in x){var v=x[y].finish();f[m][y]=v}}return f},o.prototype.getBuilder=function(f,m){var x=f!==void 0?f.toString():"0",y=this.buildersByZIndex_[x];y===void 0&&(y={},this.buildersByZIndex_[x]=y);var v=y[m];if(v===void 0){var C=vor[m];v=new C(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),y[m]=v}return v},o}(),ZOe=bor;we();we();we();function lSt(o,f,m,x,y,v,C,T,S,w,E,L){var I=o[f],R=o[f+1],P=0,A=0,M=0,V=0;function G(){P=I,A=R,f+=x,I=o[f],R=o[f+1],V+=M,M=Math.sqrt((I-P)*(I-P)+(R-A)*(R-A))}do G();while(f<m-x&&V+M<v);for(var D=M===0?0:(v-V)/M,N=pw(P,I,D),k=pw(A,R,D),U=f-x,B=V,Y=v+T*S(w,y,E);f<m-x&&V+M<Y;)G();D=M===0?0:(Y-V)/M;var J=pw(P,I,D),K=pw(A,R,D),z;if(L){var j=[N,k,J,K];fme(j,0,4,2,L,j,j),z=j[0]>j[2]}else z=N>J;var q=Math.PI,O=[],te=U+x===f;f=U,M=0,V=B,I=o[f],R=o[f+1];var ie;if(te){G(),ie=Math.atan2(R-A,I-P),z&&(ie+=ie>0?-q:q);var re=(J+N)/2,ee=(K+k)/2;return O[0]=[re,ee,(Y-v)/2,ie,y],O}y=y.replace(/\n/g," ");for(var ae=0,oe=y.length;ae<oe;){G();var ce=Math.atan2(R-A,I-P);if(z&&(ce+=ce>0?-q:q),ie!==void 0){var pe=ce-ie;if(pe+=pe>q?-2*q:pe<-q?2*q:0,Math.abs(pe)>C)return null}ie=ce;for(var ue=ae,he=0;ae<oe;++ae){var fe=z?oe-ae-1:ae,de=T*S(w,y[fe],E);if(f+x<m&&V+M<v+he+de/2)break;he+=de}if(ae!==ue){var Ce=z?y.substring(oe-ue,oe-ae):y.substring(ue,ae);D=M===0?0:(v+he/2-V)/M;var re=pw(P,I,D),ee=pw(A,R,D);O.push([re,ee,he/2,ce,Ce]),v+=he}}return O}var gK=Zg(),qD=[],r3=[],n3=[],$D=[];function uSt(o){return o[3].declutterBox}var Cor=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")&&!Cor.test(o)&&(f=f==="start"?"left":"right"),xK[f]}function Tor(o,f,m){return m>0&&o.push(` `,""),o.push(f,""),o}var Sor=function(){function o(f,m,x,y){this.overlaps=x,this.pixelRatio=m,this.resolution=f,this.alignFill_,this.instructions=y.instructions,this.coordinates=y.coordinates,this.coordinateCache_={},this.renderedTransform_=Ny(),this.hitDetectionInstructions=y.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=y.fillStates||{},this.strokeStates=y.strokeStates||{},this.textStates=y.textStates||{},this.widths_={},this.labels_={}}return o.prototype.createLabel=function(f,m,x,y){var v=f+m+x+y;if(this.labels_[v])return this.labels_[v];var C=y?this.strokeStates[y]:null,T=x?this.fillStates[x]:null,S=this.textStates[m],w=this.pixelRatio,E=[S.scale[0]*w,S.scale[1]*w],L=Array.isArray(f),I=S.justify?xK[S.justify]:cSt(Array.isArray(f)?f[0]:f,S.textAlign||QD),R=y&&C.lineWidth?C.lineWidth:0,P=L?f:f.split(` `).reduce(Tor,[]),A=UTt(S,P),M=A.width,V=A.height,G=A.widths,D=A.heights,N=A.lineWidths,k=M+R,U=[],B=(k+2)*E[0],Y=(V+R)*E[1],J={width:B<0?Math.floor(B):Math.ceil(B),height:Y<0?Math.floor(Y):Math.ceil(Y),contextInstructions:U};if((E[0]!=1||E[1]!=1)&&U.push("scale",E),y){U.push("strokeStyle",C.strokeStyle),U.push("lineWidth",R),U.push("lineCap",C.lineCap),U.push("lineJoin",C.lineJoin),U.push("miterLimit",C.miterLimit);var K=HD?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;K.prototype.setLineDash&&(U.push("setLineDash",[C.lineDash]),U.push("lineDashOffset",C.lineDashOffset))}x&&U.push("fillStyle",T.fillStyle),U.push("textBaseline","middle"),U.push("textAlign","center");for(var z=.5-I,j=I*k+z*R,q=[],O=[],te=0,ie=0,re=0,ee=0,ae,oe=0,ce=P.length;oe<ce;oe+=2){var pe=P[oe];if(pe===` -`){ie+=te,te=0,j=I*k+z*R,++ee;continue}var ue=P[oe+1]||S.font;ue!==ae&&(y&&q.push("font",ue),x&&O.push("font",ue),ae=ue),te=Math.max(te,D[re]);var he=[pe,j+z*G[re]+I*(G[re]-N[ee]),.5*(R+te)+ie];j+=G[re],y&&q.push("strokeText",he),x&&O.push("fillText",he),++re}return Array.prototype.push.apply(U,q),Array.prototype.push.apply(U,O),this.labels_[v]=J,J},o.prototype.replayTextBackground_=function(f,m,x,y,v,C,T){f.beginPath(),f.moveTo.apply(f,m),f.lineTo.apply(f,x),f.lineTo.apply(f,y),f.lineTo.apply(f,v),f.lineTo.apply(f,m),C&&(this.alignFill_=C[2],this.fill_(f)),T&&(this.setStrokeStyle_(f,T),f.stroke())},o.prototype.calculateImageOrLabelDimensions_=function(f,m,x,y,v,C,T,S,w,E,L,I,R,P,A,M){T*=I[0],S*=I[1];var V=x-T,G=y-S,D=v+w>f?f-w:v,N=C+E>m?m-E:C,k=P[3]+D*I[0]+P[1],U=P[0]+N*I[1]+P[2],B=V-P[3],Y=G-P[0];(A||L!==0)&&(qD[0]=B,$D[0]=B,qD[1]=Y,r3[1]=Y,r3[0]=B+k,n3[0]=r3[0],n3[1]=Y+U,$D[1]=n3[1]);var J;return L!==0?(J=d2(Ny(),x,y,1,1,L,-x,-y),Of(J,qD),Of(J,r3),Of(J,n3),Of(J,$D),K1(Math.min(qD[0],r3[0],n3[0],$D[0]),Math.min(qD[1],r3[1],n3[1],$D[1]),Math.max(qD[0],r3[0],n3[0],$D[0]),Math.max(qD[1],r3[1],n3[1],$D[1]),gK)):K1(Math.min(B,B+k),Math.min(Y,Y+U),Math.max(B,B+k),Math.max(Y,Y+U),gK),R&&(V=Math.round(V),G=Math.round(G)),{drawImageX:V,drawImageY:G,drawImageW:D,drawImageH:N,originX:w,originY:E,declutterBox:{minX:gK[0],minY:gK[1],maxX:gK[2],maxY:gK[3],value:M},canvasTransform:J,scale:I}},o.prototype.replayImageOrLabel_=function(f,m,x,y,v,C,T){var S=!!(C||T),w=y.declutterBox,E=f.canvas,L=T?T[2]*y.scale[0]/2:0,I=w.minX-L<=E.width/m&&w.maxX+L>=0&&w.minY-L<=E.height/m&&w.maxY+L>=0;return I&&(S&&this.replayTextBackground_(f,qD,r3,n3,$D,C,T),BTt(f,y.canvasTransform,v,x,y.originX,y.originY,y.drawImageW,y.drawImageH,y.drawImageX,y.drawImageY,y.scale)),!0},o.prototype.fill_=function(f){if(this.alignFill_){var m=Of(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,y){var v=this.textStates[m],C=this.createLabel(f,m,y,x),T=this.strokeStates[x],S=this.pixelRatio,w=cSt(Array.isArray(f)?f[0]:f,v.textAlign||QD),E=xK[v.textBaseline||_X],L=T&&T.lineWidth?T.lineWidth:0,I=C.width/S-2*v.scale[0],R=w*I+2*(.5-w)*L,P=E*C.height/S+2*(.5-E)*L;return{label:C,anchorX:R,anchorY:P}},o.prototype.execute_=function(f,m,x,y,v,C,T,S){var w;this.pixelCoordinates_&&LR(x,this.renderedTransform_)?w=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),w=Qb(this.coordinates,0,this.coordinates.length,2,x,this.pixelCoordinates_),sTt(this.renderedTransform_,x));for(var E=0,L=y.length,I=0,R,P,A,M,V,G,D,N,k,U,B,Y,J=0,K=0,z=null,j=null,q=this.coordinateCache_,O=this.viewRotation_,te=Math.round(Math.atan2(-x[1],x[0])*1e12)/1e12,ie={context:f,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:O},re=this.instructions!=y||this.overlaps?0:200,ee,ae,oe,ce;E<L;){var pe=y[E],ue=pe[0];switch(ue){case Es.BEGIN_GEOMETRY:ee=pe[1],ce=pe[3],ee.getGeometry()?T!==void 0&&!Ed(T,ce.getExtent())?E=pe[2]+1:++E:E=pe[2];break;case Es.BEGIN_PATH:J>re&&(this.fill_(f),J=0),K>re&&(f.stroke(),K=0),!J&&!K&&(f.beginPath(),M=NaN,V=NaN),++E;break;case Es.CIRCLE:I=pe[1];var he=w[I],fe=w[I+1],de=w[I+2],Ce=w[I+3],Se=de-he,Le=Ce-fe,Ve=Math.sqrt(Se*Se+Le*Le);f.moveTo(he+Ve,fe),f.arc(he,fe,Ve,0,2*Math.PI,!0),++E;break;case Es.CLOSE_PATH:f.closePath(),++E;break;case Es.CUSTOM:I=pe[1],R=pe[2];var Oe=pe[3],$e=pe[4],at=pe.length==6?pe[5]:void 0;ie.geometry=Oe,ie.feature=ee,E in q||(q[E]=[]);var dt=q[E];at?at(w,I,R,2,dt):(dt[0]=w[I],dt[1]=w[I+1],dt.length=2),$e(dt,ie),++E;break;case Es.DRAW_IMAGE:I=pe[1],R=pe[2],N=pe[3],P=pe[4],A=pe[5];var gt=pe[6],Et=pe[7],et=pe[8],yt=pe[9],Rt=pe[10],Vt=pe[11],_t=pe[12],se=pe[13],ve=pe[14],je=pe[15];if(!N&&pe.length>=20){k=pe[19],U=pe[20],B=pe[21],Y=pe[22];var Ft=this.drawLabelWithPointPlacement_(k,U,B,Y);N=Ft.label,pe[3]=N;var kt=pe[23];P=(Ft.anchorX-kt)*this.pixelRatio,pe[4]=P;var bt=pe[24];A=(Ft.anchorY-bt)*this.pixelRatio,pe[5]=A,gt=N.height,pe[6]=gt,se=N.width,pe[13]=se}var lt=void 0;pe.length>25&&(lt=pe[25]);var ot=void 0,tt=void 0,ze=void 0;pe.length>17?(ot=pe[16],tt=pe[17],ze=pe[18]):(ot=e3,tt=!1,ze=!1),Rt&&te?Vt+=O:!Rt&&!te&&(Vt-=O);for(var ct=0;I<R;I+=2)if(!(lt&<[ct++]<se/this.pixelRatio)){var Wt=this.calculateImageOrLabelDimensions_(N.width,N.height,w[I],w[I+1],se,gt,P,A,et,yt,Vt,_t,v,ot,tt||ze,ee),Tt=[f,m,N,Wt,Et,tt?z:null,ze?j:null];if(S){if(ve==="none")continue;if(ve==="obstacle"){S.insert(Wt.declutterBox);continue}else{var Ht=void 0,Ci=void 0;if(je){var Yt=R-I;if(!je[Yt]){je[Yt]=Tt;continue}if(Ht=je[Yt],delete je[Yt],Ci=uSt(Ht),S.collides(Ci))continue}if(S.collides(Wt.declutterBox))continue;Ht&&(S.insert(Ci),this.replayImageOrLabel_.apply(this,Ht)),S.insert(Wt.declutterBox)}}this.replayImageOrLabel_.apply(this,Tt)}++E;break;case Es.DRAW_CHARS:var li=pe[1],Ne=pe[2],Ze=pe[3],De=pe[4];Y=pe[5];var He=pe[6],Ue=pe[7],ft=pe[8];B=pe[9];var St=pe[10];k=pe[11],U=pe[12];var Be=[pe[13],pe[13]],st=this.textStates[U],At=st.font,Mt=[st.scale[0]*Ue,st.scale[1]*Ue],It=void 0;At in this.widths_?It=this.widths_[At]:(It={},this.widths_[At]=It);var ui=xme(w,li,Ne,2),Ai=Math.abs(Mt[0])*MOe(At,k,It);if(De||Ai<=ui){var wi=this.textStates[U].textAlign,zi=(ui-Ai)*xK[wi],Ri=lSt(w,li,Ne,2,k,zi,He,Math.abs(Mt[0]),MOe,At,It,te?0:this.viewRotation_);e:if(Ri){var Ot=[],Kt=void 0,ri=void 0,ii=void 0,ci=void 0,Gi=void 0;if(B)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,"",B),P=Gi[2]+(Mt[0]<0?-St:St),A=Ze*ci.height+(.5-Ze)*2*St*Mt[1]/Mt[0]-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,e3,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}if(Y)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,Y,""),P=Gi[2],A=Ze*ci.height-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,e3,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}S&&S.load(Ot.map(uSt));for(var Ki=0,ar=Ot.length;Ki<ar;++Ki)this.replayImageOrLabel_.apply(this,Ot[Ki])}}++E;break;case Es.END_GEOMETRY:if(C!==void 0){ee=pe[1];var Ir=C(ee,ce);if(Ir)return Ir}++E;break;case Es.FILL:re?J++:this.fill_(f),++E;break;case Es.MOVE_TO_LINE_TO:for(I=pe[1],R=pe[2],ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(G!==M||D!==V)&&(f.moveTo(ae,oe),M=G,V=D),I+=2;I<R;I+=2)ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(I==R-2||G!==M||D!==V)&&(f.lineTo(ae,oe),M=G,V=D);++E;break;case Es.SET_FILL_STYLE:z=pe,this.alignFill_=pe[2],J&&(this.fill_(f),J=0,K&&(f.stroke(),K=0)),f.fillStyle=pe[1],++E;break;case Es.SET_STROKE_STYLE:j=pe,K&&(f.stroke(),K=0),this.setStrokeStyle_(f,pe),++E;break;case Es.STROKE:re?K++:f.stroke(),++E;break;default:++E;break}}J&&this.fill_(f),K&&f.stroke()},o.prototype.execute=function(f,m,x,y,v,C){this.viewRotation_=y,this.execute_(f,m,x,this.instructions,v,void 0,void 0,C)},o.prototype.executeHitDetection=function(f,m,x,y,v){return this.viewRotation_=x,this.execute_(f,1,m,this.hitDetectionInstructions,!0,y,v)},o}(),hSt=Sor;var OOe=["Polygon","Circle","LineString","Image","Text","Default"],wor=function(){function o(f,m,x,y,v,C){this.maxExtent_=f,this.overlaps_=y,this.pixelRatio_=x,this.resolution_=m,this.renderBuffer_=C,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Ny(),this.createExecutors_(v)}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 y=f[m];for(var v in y){var C=y[v];x[v]=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],y=0,v=f.length;y<v;++y)if(f[y]in x)return!0;return!1},o.prototype.forEachFeatureAtCoordinate=function(f,m,x,y,v,C){y=Math.round(y);var T=y*2+1,S=d2(this.hitDetectionTransform_,y+.5,y+.5,1/m,-1/m,-x,-f[0],-f[1]),w=!this.hitDetectionContext_;w&&(this.hitDetectionContext_=Zf(T,T));var E=this.hitDetectionContext_;E.canvas.width!==T||E.canvas.height!==T?(E.canvas.width=T,E.canvas.height=T):w||E.clearRect(0,0,T,T);var L;this.renderBuffer_!==void 0&&(L=Zg(),hX(L,f),ZL(L,m*(this.renderBuffer_+y),L));var I=Eor(y),R;function P(U,B){for(var Y=E.getImageData(0,0,T,T).data,J=0,K=I.length;J<K;J++)if(Y[I[J]]>0){if(!C||R!=="Image"&&R!=="Text"||C.indexOf(U)!==-1){var z=(I[J]-3)/4,j=y-z%T,q=y-(z/T|0),O=v(U,B,j*j+q*q);if(O)return O}E.clearRect(0,0,T,T);break}}var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(DL);var M,V,G,D,N;for(M=A.length-1;M>=0;--M){var k=A[M].toString();for(G=this.executorsByZIndex_[k],V=OOe.length-1;V>=0;--V)if(R=OOe[V],D=G[R],D!==void 0&&(N=D.executeHitDetection(E,S,x,P,L),N))return N}},o.prototype.getClipCoords=function(f){var m=this.maxExtent_;if(!m)return null;var x=m[0],y=m[1],v=m[2],C=m[3],T=[x,y,x,C,v,C,v,y];return Qb(T,0,8,2,f,T),T},o.prototype.isEmpty=function(){return NL(this.executorsByZIndex_)},o.prototype.execute=function(f,m,x,y,v,C,T){var S=Object.keys(this.executorsByZIndex_).map(Number);S.sort(DL),this.maxExtent_&&(f.save(),this.clip(f,x));var w=C||OOe,E,L,I,R,P,A;for(T&&S.reverse(),E=0,L=S.length;E<L;++E){var M=S[E].toString();for(P=this.executorsByZIndex_[M],I=0,R=w.length;I<R;++I){var V=w[I];A=P[V],A!==void 0&&A.execute(f,m,x,y,v,T)}}this.maxExtent_&&f.restore()},o}(),XOe={};function Eor(o){if(XOe[o]!==void 0)return XOe[o];for(var f=o*2+1,m=o*o,x=new Array(m+1),y=0;y<=o;++y)for(var v=0;v<=o;++v){var C=y*y+v*v;if(C>m)break;var T=x[C];T||(T=[],x[C]=T),T.push(((o+y)*f+(o+v))*4+3),y>0&&T.push(((o-y)*f+(o+v))*4+3),v>0&&(T.push(((o+y)*f+(o-v))*4+3),y>0&&T.push(((o-y)*f+(o-v))*4+3))}for(var S=[],y=0,w=x.length;y<w;++y)x[y]&&S.push.apply(S,x[y]);return XOe[o]=S,S}var kOe=wor;we();we();we();var Lor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Por=function(o){Lor(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 Us()},f.prototype.getData=function(m){return null},f.prototype.prepareFrame=function(m){return Us()},f.prototype.renderFrame=function(m,x){return Us()},f.prototype.loadedTileCallback=function(m,x,y){m[x]||(m[x]={}),m[x][y.tileCoord.toString()]=y},f.prototype.createLoadedTileFinder=function(m,x,y){return function(v,C){var T=this.loadedTileCallback.bind(this,y,v);return m.forEachLoadedTile(x,v,C,T)}.bind(this)},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){},f.prototype.getDataAtPixel=function(m,x,y){return null},f.prototype.getLayer=function(){return this.layer_},f.prototype.handleFontsChanged=function(){},f.prototype.handleImageChange_=function(m){var x=m.target;x.getState()===bh.LOADED&&this.renderIfReadyAndVisible()},f.prototype.loadImage=function(m){var x=m.getState();return x!=bh.LOADED&&x!=bh.ERROR&&m.addEventListener(wd.CHANGE,this.boundHandleImageChange_),x==bh.IDLE&&(m.load(),x=m.getState()),x==bh.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}(ome),dSt=Por;we();var Ior=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Ror=function(o){Ior(f,o);function f(m,x,y,v){var C=o.call(this,m)||this;return C.inversePixelTransform=x,C.frameState=y,C.context=v,C}return f}(dw),pSt=Ror;var Aor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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 yK=null;function Mor(){var o=document.createElement("canvas");o.width=1,o.height=1,yK=o.getContext("2d")}var Vor=function(o){Aor(f,o);function f(m){var x=o.call(this,m)||this;return x.container=null,x.renderedResolution,x.tempTransform=Ny(),x.pixelTransform=Ny(),x.inversePixelTransform=Ny(),x.context=null,x.containerReused=!1,x.pixelContext_=null,x.frameState=null,x}return f.prototype.getImageData=function(m,x,y){yK||Mor(),yK.clearRect(0,0,1,1);var v;try{yK.drawImage(m,x,y,1,1,0,0,1,1),v=yK.getImageData(0,0,1,1).data}catch{return yK=null,null}return v},f.prototype.getBackground=function(m){var x=this.getLayer(),y=x.getBackground();return typeof y=="function"&&(y=y(m.viewState.resolution)),y||void 0},f.prototype.useContainer=function(m,x,y){var v=this.getLayer().getClassName(),C,T;if(m&&m.className===v&&(!y||m&&m.style.backgroundColor&&LR(gX(m.style.backgroundColor),gX(y)))){var S=m.firstElementChild;S instanceof HTMLCanvasElement&&(T=S.getContext("2d"))}if(T&&T.canvas.style.transform===x?(this.container=m,this.context=T,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){C=document.createElement("div"),C.className=v;var w=C.style;w.position="absolute",w.width="100%",w.height="100%",T=Zf();var S=T.canvas;C.appendChild(S),w=S.style,w.position="absolute",w.left="0",w.transformOrigin="top left",this.container=C,this.context=T}!this.containerReused&&y&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=y)},f.prototype.clipUnrotated=function(m,x,y){var v=jb(y),C=sK(y),T=aK(y),S=oK(y);Of(x.coordinateToPixelTransform,v),Of(x.coordinateToPixelTransform,C),Of(x.coordinateToPixelTransform,T),Of(x.coordinateToPixelTransform,S);var w=this.inversePixelTransform;Of(w,v),Of(w,C),Of(w,T),Of(w,S),m.save(),m.beginPath(),m.moveTo(Math.round(v[0]),Math.round(v[1])),m.lineTo(Math.round(C[0]),Math.round(C[1])),m.lineTo(Math.round(T[0]),Math.round(T[1])),m.lineTo(Math.round(S[0]),Math.round(S[1])),m.clip()},f.prototype.dispatchRenderEvent_=function(m,x,y){var v=this.getLayer();if(v.hasListener(m)){var C=new pSt(m,this.inversePixelTransform,y,x);v.dispatchEvent(C)}},f.prototype.preRender=function(m,x){this.frameState=x,this.dispatchRenderEvent_(kee.PRERENDER,m,x)},f.prototype.postRender=function(m,x){this.dispatchRenderEvent_(kee.POSTRENDER,m,x)},f.prototype.getRenderTransform=function(m,x,y,v,C,T,S){var w=C/2,E=T/2,L=v/x,I=-L,R=-m[0]+S,P=-m[1];return d2(this.tempTransform,w,E,L,I,-y,R,P)},f.prototype.getDataAtPixel=function(m,x,y){var v=Of(this.inversePixelTransform,m.slice()),C=this.context,T=this.getLayer(),S=T.getExtent();if(S){var w=Of(x.pixelToCoordinateTransform,m.slice());if(!IR(S,w))return null}var E=Math.round(v[0]),L=Math.round(v[1]),I=this.pixelContext_;if(!I){var R=document.createElement("canvas");R.width=1,R.height=1,I=R.getContext("2d"),this.pixelContext_=I}I.clearRect(0,0,1,1);var P;try{I.drawImage(C.canvas,E,L,1,1,0,0,1,1),P=I.getImageData(0,0,1,1).data}catch(A){return A.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),fSt=Vor;we();we();we();var Gor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),For=function(o){Gor(f,o);function f(m,x,y,v){var C=o.call(this)||this;return C.extent=m,C.pixelRatio_=y,C.resolution=x,C.state=v,C}return f.prototype.changed=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.getExtent=function(){return this.extent},f.prototype.getImage=function(){return Us()},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(){Us()},f}(PR),mSt=For;var Dor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),YDr=function(o){Dor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,y,bh.IDLE)||this;return S.src_=v,S.image_=new Image,C!==null&&(S.image_.crossOrigin=C),S.unlisten_=null,S.state=bh.IDLE,S.imageLoadFunction_=T,S}return f.prototype.getImage=function(){return this.image_},f.prototype.handleImageError_=function(){this.state=bh.ERROR,this.unlistenImage_(),this.changed()},f.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=Fy(this.extent)/this.image_.height),this.state=bh.LOADED,this.unlistenImage_(),this.changed()},f.prototype.load=function(){(this.state==bh.IDLE||this.state==bh.ERROR)&&(this.state=bh.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Hee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.setImage=function(m){this.image_=m,this.resolution=Fy(this.extent)/this.image_.height},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(mSt);function Hee(o,f,m){var x=o,y=!0,v=!1,C=!1,T=[lK(x,wd.LOAD,function(){C=!0,v||f()})];return x.src&&$1t?(v=!0,x.decode().then(function(){y&&f()}).catch(function(S){y&&(C?f():m())})):T.push(lK(x,wd.ERROR,m)),function(){y=!1,T.forEach(Dy)}}var Nor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Wor=function(o){Nor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,T)||this;return S.crossOrigin_=v,S.src_=y,S.key=y,S.image_=new Image,v!==null&&(S.image_.crossOrigin=v),S.unlisten_=null,S.tileLoadFunction_=C,S}return f.prototype.getImage=function(){return this.image_},f.prototype.setImage=function(m){this.image_=m,this.state=Qo.LOADED,this.unlistenImage_(),this.changed()},f.prototype.handleImageError_=function(){this.state=Qo.ERROR,this.unlistenImage_(),this.image_=Zor(),this.changed()},f.prototype.handleImageLoad_=function(){var m=this.image_;m.naturalWidth&&m.naturalHeight?this.state=Qo.LOADED:this.state=Qo.EMPTY,this.unlistenImage_(),this.changed()},f.prototype.load=function(){this.state==Qo.ERROR&&(this.state=Qo.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Qo.IDLE&&(this.state=Qo.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Hee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(ZD);function Zor(){var o=Zf(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var xSt=Wor;we();we();var gSt=.5;we();var Oor=10,ySt=.25,Xor=function(){function o(f,m,x,y,v,C){this.sourceProj_=f,this.targetProj_=m;var T={},S=pX(this.targetProj_,this.sourceProj_);this.transformInv_=function(D){var N=D[0]+"/"+D[1];return T[N]||(T[N]=S(D)),T[N]},this.maxSourceExtent_=y,this.errorThresholdSquared_=v*v,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!y&&!!this.sourceProj_.getExtent()&&af(y)==af(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?af(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?af(this.targetProj_.getExtent()):null;var w=jb(x),E=sK(x),L=aK(x),I=oK(x),R=this.transformInv_(w),P=this.transformInv_(E),A=this.transformInv_(L),M=this.transformInv_(I),V=Oor+(C?Math.max(0,Math.ceil(d1t(Tee(x)/(C*C*256*256)))):0);if(this.addQuad_(w,E,L,I,R,P,A,M,V),this.wrapsXInSource_){var G=1/0;this.triangles_.forEach(function(D,N,k){G=Math.min(G,D.source[0][0],D.source[1][0],D.source[2][0])}),this.triangles_.forEach(function(D){if(Math.max(D.source[0][0],D.source[1][0],D.source[2][0])-G>this.sourceWorldWidth_/2){var N=[[D.source[0][0],D.source[0][1]],[D.source[1][0],D.source[1][1]],[D.source[2][0],D.source[2][1]]];N[0][0]-G>this.sourceWorldWidth_/2&&(N[0][0]-=this.sourceWorldWidth_),N[1][0]-G>this.sourceWorldWidth_/2&&(N[1][0]-=this.sourceWorldWidth_),N[2][0]-G>this.sourceWorldWidth_/2&&(N[2][0]-=this.sourceWorldWidth_);var k=Math.min(N[0][0],N[1][0],N[2][0]),U=Math.max(N[0][0],N[1][0],N[2][0]);U-k<this.sourceWorldWidth_/2&&(D.source=N)}}.bind(this))}T={}}return o.prototype.addTriangle_=function(f,m,x,y,v,C){this.triangles_.push({source:[y,v,C],target:[f,m,x]})},o.prototype.addQuad_=function(f,m,x,y,v,C,T,S,w){var E=bee([v,C,T,S]),L=this.sourceWorldWidth_?af(E)/this.sourceWorldWidth_:null,I=this.sourceWorldWidth_,R=this.sourceProj_.canWrapX()&&L>.5&&L<1,P=!1;if(w>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var A=bee([f,m,x,y]),M=af(A)/this.targetWorldWidth_;P=M>ySt||P}!R&&this.sourceProj_.isGlobal()&&L&&(P=L>ySt||P)}if(!(!P&&this.maxSourceExtent_&&isFinite(E[0])&&isFinite(E[1])&&isFinite(E[2])&&isFinite(E[3])&&!Ed(E,this.maxSourceExtent_))){var V=0;if(!P&&(!isFinite(v[0])||!isFinite(v[1])||!isFinite(C[0])||!isFinite(C[1])||!isFinite(T[0])||!isFinite(T[1])||!isFinite(S[0])||!isFinite(S[1]))){if(w>0)P=!0;else if(V=(!isFinite(v[0])||!isFinite(v[1])?8:0)+(!isFinite(C[0])||!isFinite(C[1])?4:0)+(!isFinite(T[0])||!isFinite(T[1])?2:0)+(!isFinite(S[0])||!isFinite(S[1])?1:0),V!=1&&V!=2&&V!=4&&V!=8)return}if(w>0){if(!P){var G=[(f[0]+x[0])/2,(f[1]+x[1])/2],D=this.transformInv_(G),N=void 0;if(R){var k=(iK(v[0],I)+iK(T[0],I))/2;N=k-iK(D[0],I)}else N=(v[0]+T[0])/2-D[0];var U=(v[1]+T[1])/2-D[1],B=N*N+U*U;P=B>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],J=this.transformInv_(Y),K=[(y[0]+f[0])/2,(y[1]+f[1])/2],z=this.transformInv_(K);this.addQuad_(f,m,Y,K,v,C,J,z,w-1),this.addQuad_(K,Y,x,y,z,J,T,S,w-1)}else{var j=[(f[0]+m[0])/2,(f[1]+m[1])/2],q=this.transformInv_(j),O=[(x[0]+y[0])/2,(x[1]+y[1])/2],te=this.transformInv_(O);this.addQuad_(f,j,O,y,v,q,te,S,w-1),this.addQuad_(j,m,x,O,q,C,T,te,w-1)}return}}if(R){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(V&11)==0&&this.addTriangle_(f,x,y,v,T,S),(V&14)==0&&this.addTriangle_(f,x,m,v,T,C),V&&((V&13)==0&&this.addTriangle_(m,y,f,C,S,v),(V&7)==0&&this.addTriangle_(m,y,x,C,S,T))}},o.prototype.calculateSourceExtent=function(){var f=Zg();return this.triangles_.forEach(function(m,x,y){var v=m.source;hX(f,v[0]),hX(f,v[1]),hX(f,v[2])}),f},o.prototype.getTriangles=function(){return this.triangles_},o}(),_St=Xor;we();we();var zee={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},vSt={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0};var UOe,HOe=[];function bSt(o,f,m,x,y){o.beginPath(),o.moveTo(0,0),o.lineTo(f,m),o.lineTo(x,y),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(f,x)+1,Math.max(m,y)),o.restore()}function BOe(o,f){return Math.abs(o[f*4]-210)>2||Math.abs(o[f*4+3]-.75*255)>2}function kor(){if(UOe===void 0){var o=document.createElement("canvas").getContext("2d");o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",bSt(o,4,5,4,0),bSt(o,4,5,0,5);var f=o.getImageData(0,0,3,3).data;UOe=BOe(f,0)||BOe(f,4)||BOe(f,8)}return UOe}function CSt(o,f,m,x){var y=lme(m,f,o),v=hOe(f,x,m),C=f.getMetersPerUnit();C!==void 0&&(v*=C);var T=o.getMetersPerUnit();T!==void 0&&(v/=T);var S=o.getExtent();if(!S||IR(S,y)){var w=hOe(o,v,y)/v;isFinite(w)&&w>0&&(v/=w)}return v}function TSt(o,f,m,x){var y=KV(m),v=CSt(o,f,y,x);return(!isFinite(v)||v<=0)&&eme(m,function(C){return v=CSt(o,f,C,x),isFinite(v)&&v>0}),v}function SSt(o,f,m,x,y,v,C,T,S,w,E,L){var I=Zf(Math.round(m*o),Math.round(m*f),HOe);if(L||ox(I,zee),S.length===0)return I.canvas;I.scale(m,m);function R(N){return Math.round(N*m)/m}I.globalCompositeOperation="lighter";var P=Zg();S.forEach(function(N,k,U){g1t(P,N.extent)});var A=af(P),M=Fy(P),V=Zf(Math.round(m*A/x),Math.round(m*M/x));L||ox(V,zee);var G=m/x;S.forEach(function(N,k,U){var B=N.extent[0]-P[0],Y=-(N.extent[3]-P[3]),J=af(N.extent),K=Fy(N.extent);N.image.width>0&&N.image.height>0&&V.drawImage(N.image,w,w,N.image.width-2*w,N.image.height-2*w,B*G,Y*G,J*G,K*G)});var D=jb(C);return T.getTriangles().forEach(function(N,k,U){var B=N.source,Y=N.target,J=B[0][0],K=B[0][1],z=B[1][0],j=B[1][1],q=B[2][0],O=B[2][1],te=R((Y[0][0]-D[0])/v),ie=R(-(Y[0][1]-D[1])/v),re=R((Y[1][0]-D[0])/v),ee=R(-(Y[1][1]-D[1])/v),ae=R((Y[2][0]-D[0])/v),oe=R(-(Y[2][1]-D[1])/v),ce=J,pe=K;J=0,K=0,z-=ce,j-=pe,q-=ce,O-=pe;var ue=[[z,j,0,0,re-te],[q,O,0,0,ae-te],[0,0,z,j,ee-ie],[0,0,q,O,oe-ie]],he=f1t(ue);if(!!he){if(I.save(),I.beginPath(),kor()||!L){I.moveTo(re,ee);for(var fe=4,de=te-re,Ce=ie-ee,Se=0;Se<fe;Se++)I.lineTo(re+R((Se+1)*de/fe),ee+R(Se*Ce/(fe-1))),Se!=fe-1&&I.lineTo(re+R((Se+1)*de/fe),ee+R((Se+1)*Ce/(fe-1)));I.lineTo(ae,oe)}else I.moveTo(re,ee),I.lineTo(te,ie),I.lineTo(ae,oe);I.clip(),I.transform(he[0],he[2],he[1],he[3],te,ie),I.translate(P[0]-ce,P[3]-pe),I.scale(x/m,-x/m),I.drawImage(V.canvas,0,0),I.restore()}}),E&&(I.save(),I.globalCompositeOperation="source-over",I.strokeStyle="black",I.lineWidth=1,T.getTriangles().forEach(function(N,k,U){var B=N.target,Y=(B[0][0]-D[0])/v,J=-(B[0][1]-D[1])/v,K=(B[1][0]-D[0])/v,z=-(B[1][1]-D[1])/v,j=(B[2][0]-D[0])/v,q=-(B[2][1]-D[1])/v;I.beginPath(),I.moveTo(K,z),I.lineTo(Y,J),I.lineTo(j,q),I.closePath(),I.stroke()}),I.restore()),I.canvas}var Uor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Bor=function(o){Uor(f,o);function f(m,x,y,v,C,T,S,w,E,L,I,R){var P=o.call(this,C,Qo.IDLE,{interpolate:!!R})||this;P.renderEdges_=I!==void 0?I:!1,P.pixelRatio_=S,P.gutter_=w,P.canvas_=null,P.sourceTileGrid_=x,P.targetTileGrid_=v,P.wrappedTileCoord_=T||C,P.sourceTiles_=[],P.sourcesListenerKeys_=null,P.sourceZ_=0;var A=v.getTileCoordExtent(P.wrappedTileCoord_),M=P.targetTileGrid_.getExtent(),V=P.sourceTileGrid_.getExtent(),G=M?RR(A,M):A;if(Tee(G)===0)return P.state=Qo.EMPTY,P;var D=m.getExtent();D&&(V?V=RR(V,D):V=D);var N=v.getResolution(P.wrappedTileCoord_[0]),k=TSt(m,y,G,N);if(!isFinite(k)||k<=0)return P.state=Qo.EMPTY,P;var U=L!==void 0?L:gSt;if(P.triangulation_=new _St(m,y,G,V,k*U,N),P.triangulation_.getTriangles().length===0)return P.state=Qo.EMPTY,P;P.sourceZ_=x.getZForResolution(k);var B=P.triangulation_.calculateSourceExtent();if(V&&(m.canWrapX()?(B[1]=Vv(B[1],V[1],V[3]),B[3]=Vv(B[3],V[1],V[3])):B=RR(B,V)),!Tee(B))P.state=Qo.EMPTY;else{for(var Y=x.getTileRangeForExtentAndZ(B,P.sourceZ_),J=Y.minX;J<=Y.maxX;J++)for(var K=Y.minY;K<=Y.maxY;K++){var z=E(P.sourceZ_,J,K,S);z&&P.sourceTiles_.push(z)}P.sourceTiles_.length===0&&(P.state=Qo.EMPTY)}return P}return f.prototype.getImage=function(){return this.canvas_},f.prototype.reproject_=function(){var m=[];if(this.sourceTiles_.forEach(function(E,L,I){E&&E.getState()==Qo.LOADED&&m.push({extent:this.sourceTileGrid_.getTileCoordExtent(E.tileCoord),image:E.getImage()})}.bind(this)),this.sourceTiles_.length=0,m.length===0)this.state=Qo.ERROR;else{var x=this.wrappedTileCoord_[0],y=this.targetTileGrid_.getTileSize(x),v=typeof y=="number"?y:y[0],C=typeof y=="number"?y:y[1],T=this.targetTileGrid_.getResolution(x),S=this.sourceTileGrid_.getResolution(this.sourceZ_),w=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=SSt(v,C,this.pixelRatio_,S,this.sourceTileGrid_.getExtent(),T,w,this.triangulation_,m,this.gutter_,this.renderEdges_,this.interpolate),this.state=Qo.LOADED}this.changed()},f.prototype.load=function(){if(this.state==Qo.IDLE){this.state=Qo.LOADING,this.changed();var m=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();if(C==Qo.IDLE||C==Qo.LOADING){m++;var T=Gv(x,wd.CHANGE,function(S){var w=x.getState();(w==Qo.LOADED||w==Qo.ERROR||w==Qo.EMPTY)&&(Dy(T),m--,m===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(T)}}.bind(this)),m===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();C==Qo.IDLE&&x.load()})}},f.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Dy),this.sourcesListenerKeys_=null},f.prototype.release=function(){this.canvas_&&(dme(this.canvas_.getContext("2d")),HOe.push(this.canvas_),this.canvas_=null),o.prototype.release.call(this)},f}(ZD),wSt=Bor;var Hor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),zor=function(o){Hor(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=Zg(),x.tmpTileRange_=new Yfe(0,0,0,0),x}return f.prototype.isDrawableTile=function(m){var x=this.getLayer(),y=m.getState(),v=x.getUseInterimTilesOnError();return y==Qo.LOADED||y==Qo.EMPTY||y==Qo.ERROR&&!v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState.projection,S=this.getLayer(),w=S.getSource(),E=w.getTile(m,x,y,C,T);return E.getState()==Qo.ERROR&&(S.getUseInterimTilesOnError()?S.getPreload()>0&&(this.newTiles_=!0):E.setState(Qo.LOADED)),this.isDrawableTile(E)||(E=E.getInterimTile()),E},f.prototype.getData=function(m){var x=this.frameState;if(!x)return null;var y=this.getLayer(),v=Of(x.pixelToCoordinateTransform,m.slice()),C=y.getExtent();if(C&&!IR(C,v))return null;for(var T=x.pixelRatio,S=x.viewState.projection,w=x.viewState,E=y.getRenderSource(),L=E.getTileGridForProjection(w.projection),I=E.getTilePixelRatio(x.pixelRatio),R=L.getZForResolution(w.resolution);R>=L.getMinZoom();--R){var P=L.getTileCoordForCoordAndZ(v,R),A=E.getTile(R,P[1],P[2],T,S);if(!(A instanceof xSt||A instanceof wSt))return null;if(A.getState()===Qo.LOADED){var M=L.getOrigin(R),V=sf(L.getTileSize(R)),G=L.getResolution(R),D=Math.floor(I*((v[0]-M[0])/G-P[1]*V[0])),N=Math.floor(I*((M[1]-v[1])/G-P[2]*V[1])),k=Math.round(I*E.getGutterForProjection(w.projection));return this.getImageData(A.getImage(),D+k,N+k)}}return null},f.prototype.loadedTileCallback=function(m,x,y){return this.isDrawableTile(y)?o.prototype.loadedTileCallback.call(this,m,x,y):!1},f.prototype.prepareFrame=function(m){return!!this.getLayer().getSource()},f.prototype.renderFrame=function(m,x){var y=m.layerStatesArray[m.layerIndex],v=m.viewState,C=v.projection,T=v.resolution,S=v.center,w=v.rotation,E=m.pixelRatio,L=this.getLayer(),I=L.getSource(),R=I.getRevision(),P=I.getTileGridForProjection(C),A=P.getZForResolution(T,I.zDirection),M=P.getResolution(A),V=m.extent,G=m.viewState.resolution,D=I.getTilePixelRatio(E),N=Math.round(af(V)/G*E),k=Math.round(Fy(V)/G*E),U=y.extent&&ume(y.extent,C);U&&(V=RR(V,ume(y.extent,C)));var B=M*N/2/D,Y=M*k/2/D,J=[S[0]-B,S[1]-Y,S[0]+B,S[1]+Y],K=P.getTileRangeForExtentAndZ(V,A),z={};z[A]={};var j=this.createLoadedTileFinder(I,C,z),q=this.tmpExtent,O=this.tmpTileRange_;this.newTiles_=!1;for(var te=w?rOe(v.center,G,w,m.size):void 0,ie=K.minX;ie<=K.maxX;++ie)for(var re=K.minY;re<=K.maxY;++re)if(!(w&&!P.tileCoordIntersectsViewport([A,ie,re],te))){var ee=this.getTile(A,ie,re,m);if(this.isDrawableTile(ee)){var ae=mu(this);if(ee.getState()==Qo.LOADED){z[A][ee.tileCoord.toString()]=ee;var oe=ee.inTransition(ae);oe&&y.opacity!==1&&(ee.endTransition(ae),oe=!1),!this.newTiles_&&(oe||this.renderedTiles.indexOf(ee)===-1)&&(this.newTiles_=!0)}if(ee.getAlpha(ae,m.time)===1)continue}var ce=P.getTileCoordChildTileRange(ee.tileCoord,O,q),pe=!1;ce&&(pe=j(A+1,ce)),pe||P.forEachTileCoordParentTileRange(ee.tileCoord,j,O,q)}var ue=M/T*E/D;d2(this.pixelTransform,m.size[0]/2,m.size[1]/2,1/E,1/E,w,-N/2,-k/2);var he=cTt(this.pixelTransform);this.useContainer(x,he,this.getBackground(m));var fe=this.context,de=fe.canvas;uTt(this.inversePixelTransform,this.pixelTransform),d2(this.tempTransform,N/2,k/2,ue,ue,0,-N/2,-k/2),de.width!=N||de.height!=k?(de.width=N,de.height=k):this.containerReused||fe.clearRect(0,0,N,k),U&&this.clipUnrotated(fe,m,U),I.getInterpolate()||ox(fe,zee),this.preRender(fe,m),this.renderedTiles.length=0;var Ce=Object.keys(z).map(Number);Ce.sort(DL);var Se,Le,Ve;y.opacity===1&&(!this.containerReused||I.getOpaque(m.viewState.projection))?Ce=Ce.reverse():(Se=[],Le=[]);for(var Oe=Ce.length-1;Oe>=0;--Oe){var $e=Ce[Oe],at=I.getTilePixelSize($e,E,C),dt=P.getResolution($e),gt=dt/M,Et=at[0]*gt*ue,et=at[1]*gt*ue,yt=P.getTileCoordForCoordAndZ(jb(J),$e),Rt=P.getTileCoordExtent(yt),Vt=Of(this.tempTransform,[D*(Rt[0]-J[0])/M,D*(J[3]-Rt[3])/M]),_t=D*I.getGutterForProjection(C),se=z[$e];for(var ve in se){var ee=se[ve],je=ee.tileCoord,Ft=yt[1]-je[1],kt=Math.round(Vt[0]-(Ft-1)*Et),bt=yt[2]-je[2],lt=Math.round(Vt[1]-(bt-1)*et),ie=Math.round(Vt[0]-Ft*Et),re=Math.round(Vt[1]-bt*et),ot=kt-ie,tt=lt-re,ze=A===$e,oe=ze&&ee.getAlpha(mu(this),m.time)!==1,ct=!1;if(!oe)if(Se){Ve=[ie,re,ie+ot,re,ie+ot,re+tt,ie,re+tt];for(var Wt=0,Tt=Se.length;Wt<Tt;++Wt)if(A!==$e&&$e<Le[Wt]){var Ht=Se[Wt];Ed([ie,re,ie+ot,re+tt],[Ht[0],Ht[3],Ht[4],Ht[7]])&&(ct||(fe.save(),ct=!0),fe.beginPath(),fe.moveTo(Ve[0],Ve[1]),fe.lineTo(Ve[2],Ve[3]),fe.lineTo(Ve[4],Ve[5]),fe.lineTo(Ve[6],Ve[7]),fe.moveTo(Ht[6],Ht[7]),fe.lineTo(Ht[4],Ht[5]),fe.lineTo(Ht[2],Ht[3]),fe.lineTo(Ht[0],Ht[1]),fe.clip())}Se.push(Ve),Le.push($e)}else fe.clearRect(ie,re,ot,tt);this.drawTileImage(ee,m,ie,re,ot,tt,_t,ze),Se&&!oe?(ct&&fe.restore(),this.renderedTiles.unshift(ee)):this.renderedTiles.push(ee),this.updateUsedTiles(m.usedTiles,I,ee)}}return this.renderedRevision=R,this.renderedResolution=M,this.extentChanged=!this.renderedExtent_||!XD(this.renderedExtent_,J),this.renderedExtent_=J,this.renderedPixelRatio=E,this.renderedProjection=C,this.manageTilePyramid(m,I,P,E,C,V,A,L.getPreload()),this.scheduleExpireCache(m,I),this.postRender(fe,m),y.extent&&fe.restore(),ox(fe,vSt),he!==de.style.transform&&(de.style.transform=he),this.container},f.prototype.drawTileImage=function(m,x,y,v,C,T,S,w){var E=this.getTileImage(m);if(!!E){var L=mu(this),I=x.layerStatesArray[x.layerIndex],R=I.opacity*(w?m.getAlpha(L,x.time):1),P=R!==this.context.globalAlpha;P&&(this.context.save(),this.context.globalAlpha=R),this.context.drawImage(E,S,S,E.width-2*S,E.height-2*S,y,v,C,T),P&&this.context.restore(),R!==I.opacity?x.animate=!0:w&&m.endTransition(L)}},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 y=function(v,C,T){var S=mu(v);S in T.usedTiles&&v.expireCache(T.viewState.projection,T.usedTiles[S])}.bind(null,x);m.postRenderFunctions.push(y)}},f.prototype.updateUsedTiles=function(m,x,y){var v=mu(x);v in m||(m[v]={}),m[v][y.getKey()]=!0},f.prototype.manageTilePyramid=function(m,x,y,v,C,T,S,w,E){var L=mu(x);L in m.wantedTiles||(m.wantedTiles[L]={});var I=m.wantedTiles[L],R=m.tileQueue,P=y.getMinZoom(),A=m.viewState.rotation,M=A?rOe(m.viewState.center,m.viewState.resolution,A,m.size):void 0,V=0,G,D,N,k,U,B;for(B=P;B<=S;++B)for(D=y.getTileRangeForExtentAndZ(T,B,D),N=y.getResolution(B),k=D.minX;k<=D.maxX;++k)for(U=D.minY;U<=D.maxY;++U)A&&!y.tileCoordIntersectsViewport([B,k,U],M)||(S-B<=w?(++V,G=x.getTile(B,k,U,v,C),G.getState()==Qo.IDLE&&(I[G.getKey()]=!0,R.isKeyQueued(G.getKey())||R.enqueue([G,L,y.getTileCoordCenter(G.tileCoord),N])),E!==void 0&&E(G)):x.useTile(B,k,U,C));x.updateCacheSize(V,C)},f}(fSt),ESt=zor;we();var FR={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};we();var bX={ANIMATING:0,INTERACTING:1};we();we();var Yor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Kor=function(o){Yor(f,o);function f(m,x,y,v,C,T,S){var w=o.call(this)||this;return w.context_=m,w.pixelRatio_=x,w.extent_=y,w.transform_=v,w.viewRotation_=C,w.squaredTolerance_=T,w.userTransform_=S,w.contextFillState_=null,w.contextStrokeState_=null,w.contextTextState_=null,w.fillState_=null,w.strokeState_=null,w.image_=null,w.imageAnchorX_=0,w.imageAnchorY_=0,w.imageHeight_=0,w.imageOpacity_=0,w.imageOriginX_=0,w.imageOriginY_=0,w.imageRotateWithView_=!1,w.imageRotation_=0,w.imageScale_=[0,0],w.imageWidth_=0,w.text_="",w.textOffsetX_=0,w.textOffsetY_=0,w.textRotateWithView_=!1,w.textRotation_=0,w.textScale_=[0,0],w.textFillState_=null,w.textStrokeState_=null,w.textState_=null,w.pixelCoordinates_=[],w.tmpLocalTransform_=Ny(),w}return f.prototype.drawImages_=function(m,x,y,v){if(!!this.image_){var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.tmpLocalTransform_,w=T.globalAlpha;this.imageOpacity_!=1&&(T.globalAlpha=w*this.imageOpacity_);var E=this.imageRotation_;this.imageRotateWithView_&&(E+=this.viewRotation_);for(var L=0,I=C.length;L<I;L+=2){var R=C[L]-this.imageAnchorX_,P=C[L+1]-this.imageAnchorY_;if(E!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){var A=R+this.imageAnchorX_,M=P+this.imageAnchorY_;d2(S,A,M,1,1,E,-A,-M),T.setTransform.apply(T,S),T.translate(A,M),T.scale(this.imageScale_[0],this.imageScale_[1]),T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),T.setTransform(1,0,0,1,0,0)}else T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,R,P,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(T.globalAlpha=w)}},f.prototype.drawText_=function(m,x,y,v){if(!(!this.textState_||this.text_==="")){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.textRotation_;for(this.textRotateWithView_&&(S+=this.viewRotation_);x<y;x+=v){var w=C[x]+this.textOffsetX_,E=C[x+1]+this.textOffsetY_;if(S!==0||this.textScale_[0]!=1||this.textScale_[1]!=1){var L=d2(this.tmpLocalTransform_,w,E,1,1,S,-w,-E);T.setTransform.apply(T,L),T.translate(w,E),T.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&T.strokeText(this.text_,0,0),this.textFillState_&&T.fillText(this.text_,0,0),T.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&T.strokeText(this.text_,w,E),this.textFillState_&&T.fillText(this.text_,w,E)}}},f.prototype.moveToLineTo_=function(m,x,y,v,C){var T=this.context_,S=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_);T.moveTo(S[0],S[1]);var w=S.length;C&&(w-=2);for(var E=2;E<w;E+=2)T.lineTo(S[E],S[E+1]);return C&&T.closePath(),y},f.prototype.drawRings_=function(m,x,y,v){for(var C=0,T=y.length;C<T;++C)x=this.moveToLineTo_(m,x,y[C],v,!0);return x},f.prototype.drawCircle=function(m){if(!!Ed(this.extent_,m.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=xTt(m,this.transform_,this.pixelCoordinates_),y=x[2]-x[0],v=x[3]-x[1],C=Math.sqrt(y*y+v*v),T=this.context_;T.beginPath(),T.arc(x[0],x[1],C,0,2*Math.PI),this.fillState_&&T.fill(),this.strokeState_&&T.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 y=x.getGeometryFunction()(m);!y||!Ed(this.extent_,y.getExtent())||(this.setStyle(x),this.drawGeometry(y))},f.prototype.drawGeometryCollection=function(m){for(var x=m.getGeometriesArray(),y=0,v=x.length;y<v;++y)this.drawGeometry(x[y])},f.prototype.drawPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawMultiPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawLineString=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var x=this.context_,y=m.getFlatCoordinates();x.beginPath(),this.moveToLineTo_(y,0,y.length,m.getStride(),!1),x.stroke()}if(this.text_!==""){var v=m.getFlatMidpoint();this.drawText_(v,0,2,2)}}},f.prototype.drawMultiLineString=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getExtent();if(!!Ed(this.extent_,x)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var y=this.context_,v=m.getFlatCoordinates(),C=0,T=m.getEnds(),S=m.getStride();y.beginPath();for(var w=0,E=T.length;w<E;++w)C=this.moveToLineTo_(v,C,T[w],S,!1);y.stroke()}if(this.text_!==""){var L=m.getFlatMidpoints();this.drawText_(L,0,L.length,2)}}},f.prototype.drawPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(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 y=m.getFlatInteriorPoint();this.drawText_(y,0,2,2)}}},f.prototype.drawMultiPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(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_,y=m.getOrientedFlatCoordinates(),v=0,C=m.getEndss(),T=m.getStride();x.beginPath();for(var S=0,w=C.length;S<w;++S){var E=C[S];v=this.drawRings_(y,v,E,T)}this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var L=m.getFlatInteriorPoints();this.drawText_(L,0,L.length,2)}}},f.prototype.setContextFillState_=function(m){var x=this.context_,y=this.contextFillState_;y?y.fillStyle!=m.fillStyle&&(y.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_,y=this.contextStrokeState_;y?(y.lineCap!=m.lineCap&&(y.lineCap=m.lineCap,x.lineCap=m.lineCap),x.setLineDash&&(LR(y.lineDash,m.lineDash)||x.setLineDash(y.lineDash=m.lineDash),y.lineDashOffset!=m.lineDashOffset&&(y.lineDashOffset=m.lineDashOffset,x.lineDashOffset=m.lineDashOffset)),y.lineJoin!=m.lineJoin&&(y.lineJoin=m.lineJoin,x.lineJoin=m.lineJoin),y.lineWidth!=m.lineWidth&&(y.lineWidth=m.lineWidth,x.lineWidth=m.lineWidth),y.miterLimit!=m.miterLimit&&(y.miterLimit=m.miterLimit,x.miterLimit=m.miterLimit),y.strokeStyle!=m.strokeStyle&&(y.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_,y=this.contextTextState_,v=m.textAlign?m.textAlign:QD;y?(y.font!=m.font&&(y.font=m.font,x.font=m.font),y.textAlign!=v&&(y.textAlign=v,x.textAlign=v),y.textBaseline!=m.textBaseline&&(y.textBaseline=m.textBaseline,x.textBaseline=m.textBaseline)):(x.font=m.font,x.textAlign=v,x.textBaseline=m.textBaseline,this.contextTextState_={font:m.font,textAlign:v,textBaseline:m.textBaseline})},f.prototype.setFillStrokeStyle=function(m,x){var y=this;if(!m)this.fillState_=null;else{var v=m.getColor();this.fillState_={fillStyle:$b(v||eC)}}if(!x)this.strokeState_=null;else{var C=x.getColor(),T=x.getLineCap(),S=x.getLineDash(),w=x.getLineDashOffset(),E=x.getLineJoin(),L=x.getWidth(),I=x.getMiterLimit(),R=S||jV;this.strokeState_={lineCap:T!==void 0?T:yX,lineDash:this.pixelRatio_===1?R:R.map(function(P){return P*y.pixelRatio_}),lineDashOffset:(w||QV)*this.pixelRatio_,lineJoin:E!==void 0?E:MR,lineWidth:(L!==void 0?L:t3)*this.pixelRatio_,miterLimit:I!==void 0?I:qV,strokeStyle:$b(C||$V)}}},f.prototype.setImageStyle=function(m){var x;if(!m||!(x=m.getSize())){this.image_=null;return}var y=m.getAnchor(),v=m.getOrigin();this.image_=m.getImage(this.pixelRatio_),this.imageAnchorX_=y[0]*this.pixelRatio_,this.imageAnchorY_=y[1]*this.pixelRatio_,this.imageHeight_=x[1]*this.pixelRatio_,this.imageOpacity_=m.getOpacity(),this.imageOriginX_=v[0],this.imageOriginY_=v[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 y=x.getColor();this.textFillState_={fillStyle:$b(y||eC)}}var v=m.getStroke();if(!v)this.textStrokeState_=null;else{var C=v.getColor(),T=v.getLineCap(),S=v.getLineDash(),w=v.getLineDashOffset(),E=v.getLineJoin(),L=v.getWidth(),I=v.getMiterLimit();this.textStrokeState_={lineCap:T!==void 0?T:yX,lineDash:S||jV,lineDashOffset:w||QV,lineJoin:E!==void 0?E:MR,lineWidth:L!==void 0?L:t3,miterLimit:I!==void 0?I:qV,strokeStyle:$b(C||$V)}}var R=m.getFont(),P=m.getOffsetX(),A=m.getOffsetY(),M=m.getRotateWithView(),V=m.getRotation(),G=m.getScaleArray(),D=m.getText(),N=m.getTextAlign(),k=m.getTextBaseline();this.textState_={font:R!==void 0?R:Eme,textAlign:N!==void 0?N:QD,textBaseline:k!==void 0?k:_X},this.text_=D!==void 0?Array.isArray(D)?D.reduce(function(U,B,Y){return U+=Y%2?" ":B},""):D:"",this.textOffsetX_=P!==void 0?this.pixelRatio_*P:0,this.textOffsetY_=A!==void 0?this.pixelRatio_*A:0,this.textRotateWithView_=M!==void 0?M:!1,this.textRotation_=V!==void 0?V:0,this.textScale_=[this.pixelRatio_*G[0],this.pixelRatio_*G[1]]}},f}(Pme),LSt=Kor;we();var DR={FRACTION:"fraction",PIXELS:"pixels"};we();we();we();var J1={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};we();we();var Jor=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 y=PSt(f,m,x);return y in this.cache_?this.cache_[y]:null},o.prototype.set=function(f,m,x,y){var v=PSt(f,m,x);this.cache_[v]=y,++this.cacheSize_},o.prototype.setSize=function(f){this.maxCacheSize_=f,this.expire()},o}();function PSt(o,f,m){var x=m?Sme(m):"null";return f+":"+o+":"+x}var zOe=new Jor;var jor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Yee=null,Qor=function(o){jor(f,o);function f(m,x,y,v,C,T){var S=o.call(this)||this;return S.hitDetectionImage_=null,S.image_=m||new Image,v!==null&&(S.image_.crossOrigin=v),S.canvas_={},S.color_=T,S.unlisten_=null,S.imageState_=C,S.size_=y,S.src_=x,S.tainted_,S}return f.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===bh.LOADED){Yee||(Yee=Zf(1,1)),Yee.drawImage(this.image_,0,0);try{Yee.getImageData(0,0,1,1),this.tainted_=!1}catch{Yee=null,this.tainted_=!0}}return this.tainted_===!0},f.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.handleImageError_=function(){this.imageState_=bh.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.handleImageLoad_=function(){this.imageState_=bh.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],y=Zf(m,x);y.fillRect(0,0,m,x),this.hitDetectionImage_=y.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_==bh.IDLE){this.imageState_=bh.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=Hee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},f.prototype.replaceColor_=function(m){if(!(!this.color_||this.canvas_[m]||this.imageState_!==bh.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 y=x.getContext("2d");if(y.scale(m,m),y.drawImage(this.image_,0,0),y.globalCompositeOperation="multiply",y.globalCompositeOperation==="multiply"||this.isTainted_())y.fillStyle=Sme(this.color_),y.fillRect(0,0,x.width/m,x.height/m),y.globalCompositeOperation="destination-in",y.drawImage(this.image_,0,0);else{for(var v=y.getImageData(0,0,x.width,x.height),C=v.data,T=this.color_[0]/255,S=this.color_[1]/255,w=this.color_[2]/255,E=this.color_[3],L=0,I=C.length;L<I;L+=4)C[L]*=T,C[L+1]*=S,C[L+2]*=w,C[L+3]*=E;y.putImageData(v,0,0)}}},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(PR);function ISt(o,f,m,x,y,v){var C=zOe.get(f,x,v);return C||(C=new Qor(o,f,m,x,y,v),zOe.set(f,x,v,C)),C}var qor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),$or=function(o){qor(f,o);function f(m){var x=this,y=m||{},v=y.opacity!==void 0?y.opacity:1,C=y.rotation!==void 0?y.rotation:0,T=y.scale!==void 0?y.scale:1,S=y.rotateWithView!==void 0?y.rotateWithView:!1;x=o.call(this,{opacity:v,rotation:C,scale:T,displacement:y.displacement!==void 0?y.displacement:[0,0],rotateWithView:S,declutterMode:y.declutterMode})||this,x.anchor_=y.anchor!==void 0?y.anchor:[.5,.5],x.normalizedAnchor_=null,x.anchorOrigin_=y.anchorOrigin!==void 0?y.anchorOrigin:J1.TOP_LEFT,x.anchorXUnits_=y.anchorXUnits!==void 0?y.anchorXUnits:DR.FRACTION,x.anchorYUnits_=y.anchorYUnits!==void 0?y.anchorYUnits:DR.FRACTION,x.crossOrigin_=y.crossOrigin!==void 0?y.crossOrigin:null;var w=y.img!==void 0?y.img:null;x.imgSize_=y.imgSize;var E=y.src;Su(!(E!==void 0&&w),4),Su(!w||w&&x.imgSize_,5),(E===void 0||E.length===0)&&w&&(E=w.src||mu(w)),Su(E!==void 0&&E.length>0,6);var L=y.src!==void 0?bh.IDLE:bh.LOADED;return x.color_=y.color!==void 0?gX(y.color):null,x.iconImage_=ISt(w,E,x.imgSize_!==void 0?x.imgSize_:null,x.crossOrigin_,L,x.color_),x.offset_=y.offset!==void 0?y.offset:[0,0],x.offsetOrigin_=y.offsetOrigin!==void 0?y.offsetOrigin:J1.TOP_LEFT,x.origin_=null,x.size_=y.size!==void 0?y.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_==DR.FRACTION||this.anchorYUnits_==DR.FRACTION){if(!x)return null;m=this.anchor_.slice(),this.anchorXUnits_==DR.FRACTION&&(m[0]*=x[0]),this.anchorYUnits_==DR.FRACTION&&(m[1]*=x[1])}if(this.anchorOrigin_!=J1.TOP_LEFT){if(!x)return null;m===this.anchor_&&(m=this.anchor_.slice()),(this.anchorOrigin_==J1.TOP_RIGHT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=-m[0]+x[0]),(this.anchorOrigin_==J1.BOTTOM_LEFT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=-m[1]+x[1])}this.normalizedAnchor_=m}var y=this.getDisplacement();return[m[0]-y[0],m[1]+y[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_!=J1.TOP_LEFT){var x=this.getSize(),y=this.iconImage_.getSize();if(!x||!y)return null;m=m.slice(),(this.offsetOrigin_==J1.TOP_RIGHT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=y[0]-x[0]-m[0]),(this.offsetOrigin_==J1.BOTTOM_LEFT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=y[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(wd.CHANGE,m)},f.prototype.load=function(){this.iconImage_.load()},f.prototype.unlistenImageChange=function(m){this.iconImage_.removeEventListener(wd.CHANGE,m)},f}(Tme),YOe=$or;var o3=.5;function RSt(o,f,m,x,y,v,C){var T=o[0]*o3,S=o[1]*o3,w=Zf(T,S);w.imageSmoothingEnabled=!1;for(var E=w.canvas,L=new LSt(w,o3,y,null,C),I=m.length,R=Math.floor((256*256*256-1)/I),P={},A=1;A<=I;++A){var M=m[A-1],V=M.getStyleFunction()||x;if(!!x){var G=V(M,v);if(!!G){Array.isArray(G)||(G=[G]);for(var D=A*R,N="#"+("000000"+D.toString(16)).slice(-6),k=0,U=G.length;k<U;++k){var B=G[k],Y=B.getGeometryFunction()(M);if(!(!Y||!Ed(y,Y.getExtent()))){var J=B.clone(),K=J.getFill();K&&K.setColor(N);var z=J.getStroke();z&&(z.setColor(N),z.setLineDash(null)),J.setText(void 0);var j=B.getImage();if(j&&j.getOpacity()!==0){var q=j.getImageSize();if(!q)continue;var O=Zf(q[0],q[1],void 0,{alpha:!1}),te=O.canvas;O.fillStyle=N,O.fillRect(0,0,te.width,te.height),J.setImage(new YOe({img:te,imgSize:q,anchor:j.getAnchor(),anchorXUnits:DR.PIXELS,anchorYUnits:DR.PIXELS,offset:j.getOrigin(),opacity:1,size:j.getSize(),scale:j.getScale(),rotation:j.getRotation(),rotateWithView:j.getRotateWithView()}))}var ie=J.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,J)}}}}}for(var ee=Object.keys(P).map(Number).sort(DL),A=0,ae=ee.length;A<ae;++A){var re=P[ee[A]];for(var oe in re)for(var ce=re[oe],k=0,U=ce.length;k<U;k+=2){L.setStyle(ce[k+1]);for(var pe=0,ue=f.length;pe<ue;++pe)L.setTransform(f[pe]),L.drawGeometry(ce[k])}}return w.getImageData(0,0,E.width,E.height)}function ASt(o,f,m){var x=[];if(m){var y=Math.floor(Math.round(o[0])*o3),v=Math.floor(Math.round(o[1])*o3),C=(Vv(y,0,m.width-1)+Vv(v,0,m.height-1)*m.width)*4,T=m.data[C],S=m.data[C+1],w=m.data[C+2],E=w+256*(S+256*T),L=Math.floor((256*256*256-1)/f.length);E&&E%L===0&&x.push(f[E/L-1])}return x}we();var ear=.5,MSt={Point:lar,LineString:oar,Polygon:car,MultiPoint:uar,MultiLineString:aar,MultiPolygon:sar,GeometryCollection:nar,Circle:iar};function VSt(o,f){var m=tar(o,f);return m*m}function tar(o,f){return ear*o/f}function iar(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Circle");T.setFillStrokeStyle(v,C),T.drawCircle(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function KOe(o,f,m,x,y,v,C){var T=!1,S=m.getImage();if(S){var w=S.getImageState();w==bh.LOADED||w==bh.ERROR?S.unlistenImageChange(y):(w==bh.IDLE&&S.load(),S.listenImageChange(y),T=!0)}return rar(o,f,m,x,v,C),T}function rar(o,f,m,x,y,v){var C=m.getGeometryFunction()(f);if(!!C){var T=C.simplifyTransformed(x,y),S=m.getRenderer();if(S)GSt(o,T,m,f);else{var w=MSt[T.getType()];w(o,T,m,f,v)}}}function GSt(o,f,m,x){if(f.getType()=="GeometryCollection"){for(var y=f.getGeometries(),v=0,C=y.length;v<C;++v)GSt(o,y[v],m,x);return}var T=o.getBuilder(m.getZIndex(),"Default");T.drawCustom(f,x,m.getRenderer(),m.getHitDetectionRenderer())}function nar(o,f,m,x,y){var v=f.getGeometriesArray(),C,T;for(C=0,T=v.length;C<T;++C){var S=MSt[v[C].getType()];S(o,v[C],m,x,y)}}function oar(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function aar(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawMultiLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function sar(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(C||v){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawMultiPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function lar(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function uar(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawMultiPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawMultiPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function car(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}var har=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),dar={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},par={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},far=function(o){har(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_=Ny(),x}return f.prototype.prepareTile=function(m,x,y){var v,C=m.getState();return(C===Qo.LOADED||C===Qo.ERROR)&&(this.updateExecutorGroup_(m,x,y),this.tileImageNeedsRender_(m)&&(v=!0)),v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState,S=T.resolution,w=T.projection,E=this.getLayer(),L=E.getSource().getTile(m,x,y,C,w),I=v.viewHints,R=!(I[bX.ANIMATING]||I[bX.INTERACTING]);(R||!L.wantedResolution)&&(L.wantedResolution=S);var P=this.prepareTile(L,C,w);return P&&(R||Date.now()-v.time<8)&&E.getRenderMode()!==FR.VECTOR&&this.renderTileImage_(L,v),o.prototype.getTile.call(this,m,x,y,v)},f.prototype.isDrawableTile=function(m){var x=this.getLayer();return o.prototype.isDrawableTile.call(this,m)&&(x.getRenderMode()===FR.VECTOR?mu(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,y){var v=this.getLayer(),C=v.getRevision(),T=v.getRenderOrder()||null,S=m.wantedResolution,w=m.getReplayState(v);if(!(!w.dirty&&w.renderedResolution===S&&w.renderedRevision==C&&w.renderedRenderOrder==T)){var E=v.getSource(),L=v.getDeclutter(),I=E.getTileGrid(),R=E.getTileGridForProjection(y),P=R.getTileCoordExtent(m.wrappedTileCoord),A=E.getSourceTiles(x,y,m),M=mu(v);delete m.hitDetectionImageData[M],m.executorGroups[M]=[],L&&(m.declutterExecutorGroups[M]=[]),w.dirty=!1;for(var V=function(k,U){var B=A[k];if(B.getState()!=Qo.LOADED)return"continue";var Y=B.tileCoord,J=I.getTileCoordExtent(Y),K=RR(P,J),z=ZL(K,v.getRenderBuffer()*S,G.tmpExtent),j=XD(J,K)?null:z,q=new ZOe(0,z,S,x),O=L?new ZOe(0,K,S,x):void 0,te=VSt(S,x),ie=function(fe){var de,Ce=fe.getStyleFunction()||v.getStyleFunction();if(Ce&&(de=Ce(fe,S)),de){var Se=this.renderFeature(fe,te,de,q,O);w.dirty=w.dirty||Se}},re=B.getFeatures();T&&T!==w.renderedRenderOrder&&re.sort(T);for(var ee=0,ae=re.length;ee<ae;++ee){var oe=re[ee];(!j||Ed(j,oe.getGeometry().getExtent()))&&ie.call(G,oe)}var ce=q.finish(),pe=v.getRenderMode()!==FR.VECTOR&&L&&A.length===1?null:K,ue=new kOe(pe,S,x,E.getOverlaps(),ce,v.getRenderBuffer());if(m.executorGroups[M].push(ue),O){var he=new kOe(null,S,x,E.getOverlaps(),O.finish(),v.getRenderBuffer());m.declutterExecutorGroups[M].push(he)}},G=this,D=0,N=A.length;D<N;++D)V(D,N);w.renderedRevision=C,w.renderedRenderOrder=T,w.renderedResolution=S}},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){var T=x.viewState.resolution,S=x.viewState.rotation;y=y??0;var w=this.getLayer(),E=w.getSource(),L=E.getTileGridForProjection(x.viewState.projection),I=bee([m]);ZL(I,T*y,I);for(var R={},P=function(N,k,U){var B=N.getId();B===void 0&&(B=mu(N));var Y=R[B];if(Y){if(Y!==!0&&U<Y.distanceSq){if(U===0)return R[B]=!0,C.splice(C.lastIndexOf(Y),1),v(N,w,k);Y.geometry=k,Y.distanceSq=U}}else{if(U===0)return R[B]=!0,v(N,w,k);C.push(R[B]={feature:N,layer:w,geometry:k,distanceSq:U,callback:v})}},A=this.renderedTiles,M,V=function(N,k){var U=A[N],B=L.getTileCoordExtent(U.wrappedTileCoord);if(!Ed(B,I))return"continue";var Y=mu(w),J=[U.executorGroups[Y]],K=U.declutterExecutorGroups[Y];K&&J.push(K),J.some(function(z){for(var j=z===K?x.declutterTree.all().map(function(ie){return ie.value}):null,q=0,O=z.length;q<O;++q){var te=z[q];if(M=te.forEachFeatureAtCoordinate(m,T,S,y,P,j),M)return!0}})},G=0,D=A.length;!M&&G<D;++G)V(G,D);return M},f.prototype.getFeatures=function(m){return new Promise(function(x,y){for(var v=this.getLayer(),C=mu(v),T=v.getSource(),S=this.renderedProjection,w=S.getExtent(),E=this.renderedResolution,L=T.getTileGridForProjection(S),I=Of(this.renderedPixelToCoordinateTransform_,m.slice()),R=L.getTileCoordForCoordAndResolution(I,E),P,A=0,M=this.renderedTiles.length;A<M;++A)if(R.toString()===this.renderedTiles[A].tileCoord.toString()){if(P=this.renderedTiles[A],P.getState()===Qo.LOADED){var V=L.getTileCoordExtent(P.tileCoord);T.getWrapX()&&S.canWrapX()&&!rK(w,V)&&D1t(I,S);break}P=void 0}if(!P||P.loadingSourceTiles>0){x([]);return}var G=L.getTileCoordExtent(P.wrappedTileCoord),D=jb(G),N=[(I[0]-D[0])/E,(D[1]-I[1])/E],k=P.getSourceTiles().reduce(function(K,z){return K.concat(z.getFeatures())},[]),U=P.hitDetectionImageData[C];if(!U&&!this.animatingOrInteracting_){var B=sf(L.getTileSize(L.getZForResolution(E,T.zDirection))),Y=this.renderedRotation_,J=[this.getRenderTransform(L.getTileCoordCenter(P.wrappedTileCoord),E,0,o3,B[0]*o3,B[1]*o3,0)];U=RSt(B,J,k,v.getStyleFunction(),L.getTileCoordExtent(P.wrappedTileCoord),P.getReplayState(v).renderedResolution,Y),P.hitDetectionImageData[C]=U}x(ASt(N,k,U))}.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,y=x.globalAlpha;x.globalAlpha=this.getLayer().getOpacity();for(var v=m.viewHints,C=!(v[bX.ANIMATING]||v[bX.INTERACTING]),T=this.renderedTiles,S=0,w=T.length;S<w;++S){var E=T[S],L=E.declutterExecutorGroups[mu(this.getLayer())];if(L)for(var I=L.length-1;I>=0;--I)L[I].execute(this.context,1,this.getTileRenderTransform(E,m),m.viewState.rotation,C,void 0,m.declutterTree)}x.globalAlpha=y},f.prototype.getTileRenderTransform=function(m,x){var y=x.pixelRatio,v=x.viewState,C=v.center,T=v.resolution,S=v.rotation,w=x.size,E=Math.round(w[0]*y),L=Math.round(w[1]*y),I=this.getLayer().getSource(),R=I.getTileGridForProjection(x.viewState.projection),P=m.tileCoord,A=R.getTileCoordExtent(m.wrappedTileCoord),M=R.getTileCoordExtent(P,this.tmpExtent)[0]-A[0],V=pme(Iee(this.inversePixelTransform.slice(),1/y,1/y),this.getRenderTransform(C,T,S,y,E,L,M));return V},f.prototype.renderFrame=function(m,x){var y=m.viewHints,v=!(y[bX.ANIMATING]||y[bX.INTERACTING]);o.prototype.renderFrame.call(this,m,x),this.renderedPixelToCoordinateTransform_=m.pixelToCoordinateTransform.slice(),this.renderedRotation_=m.viewState.rotation;var C=this.getLayer(),T=C.getRenderMode(),S=this.context,w=S.globalAlpha;S.globalAlpha=C.getOpacity();for(var E=par[T],L=m.viewState,I=L.rotation,R=C.getSource(),P=R.getTileGridForProjection(L.projection),A=P.getZForResolution(L.resolution,R.zDirection),M=this.renderedTiles,V=[],G=[],D=!0,N=M.length-1;N>=0;--N){var k=M[N];D=D&&!k.getReplayState(C).dirty;var U=k.executorGroups[mu(C)].filter(function(re){return re.hasExecutors(E)});if(U.length!==0){var B=this.getTileRenderTransform(k,m),Y=k.tileCoord[0],J=!1,K=U[0].getClipCoords(B);if(K){for(var z=0,j=V.length;z<j;++z)if(A!==Y&&Y<G[z]){var q=V[z];Ed([K[0],K[3],K[4],K[7]],[q[0],q[3],q[4],q[7]])&&(J||(S.save(),J=!0),S.beginPath(),S.moveTo(K[0],K[1]),S.lineTo(K[2],K[3]),S.lineTo(K[4],K[5]),S.lineTo(K[6],K[7]),S.moveTo(q[6],q[7]),S.lineTo(q[4],q[5]),S.lineTo(q[2],q[3]),S.lineTo(q[0],q[1]),S.clip())}V.push(K),G.push(Y)}for(var O=0,te=U.length;O<te;++O){var ie=U[O];ie.execute(S,1,B,I,v,E)}J&&S.restore()}}return S.globalAlpha=w,this.ready=D,this.container},f.prototype.renderFeature=function(m,x,y,v,C){if(!y)return!1;var T=!1;if(Array.isArray(y))for(var S=0,w=y.length;S<w;++S)T=KOe(v,m,y[S],x,this.boundHandleStyleImageChange_,void 0,C)||T;else T=KOe(v,m,y,x,this.boundHandleStyleImageChange_,void 0,C);return T},f.prototype.tileImageNeedsRender_=function(m){var x=this.getLayer();if(x.getRenderMode()===FR.VECTOR)return!1;var y=m.getReplayState(x),v=x.getRevision(),C=m.wantedResolution;return y.renderedTileResolution!==C||y.renderedTileRevision!==v},f.prototype.renderTileImage_=function(m,x){var y=this.getLayer(),v=m.getReplayState(y),C=y.getRevision(),T=m.executorGroups[mu(y)];v.renderedTileRevision=C;var S=m.wrappedTileCoord,w=S[0],E=y.getSource(),L=x.pixelRatio,I=x.viewState,R=I.projection,P=E.getTileGridForProjection(R),A=P.getResolution(m.tileCoord[0]),M=x.pixelRatio/m.wantedResolution*A,V=P.getResolution(w),G=m.getContext(y);L=Math.round(Math.max(L,M/L));var D=E.getTilePixelSize(w,L,R);G.canvas.width=D[0],G.canvas.height=D[1];var N=L/M;if(N!==1){var k=mOe(this.tmpTransform_);Iee(k,N,N),G.setTransform.apply(G,k)}var U=P.getTileCoordExtent(S,this.tmpExtent),B=M/V,Y=mOe(this.tmpTransform_);Iee(Y,B,-B),lTt(Y,-U[0],-U[3]);for(var J=0,K=T.length;J<K;++J){var z=T[J];z.execute(G,N,Y,0,!0,dar[y.getRenderMode()])}v.renderedTileResolution=m.wantedResolution},f}(ESt),FSt=far;we();var Kee={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var mar=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),xar=function(o){mar(f,o);function f(m){var x=this,y=m||{},v=ox({},y);delete v.preload,delete v.useInterimTilesOnError,x=o.call(this,v)||this,x.on,x.once,x.un,y.renderMode===FR.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),y.renderMode=void 0);var C=y.renderMode||FR.HYBRID;return Su(C==FR.HYBRID||C==FR.VECTOR,28),x.renderMode_=C,x.setPreload(y.preload?y.preload:0),x.setUseInterimTilesOnError(y.useInterimTilesOnError!==void 0?y.useInterimTilesOnError:!0),x.getBackground,x.setBackground,x}return f.prototype.createRenderer=function(){return new FSt(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(Kee.PRELOAD)},f.prototype.getUseInterimTilesOnError=function(){return this.get(Kee.USE_INTERIM_TILES_ON_ERROR)},f.prototype.setPreload=function(m){this.set(Kee.PRELOAD,m)},f.prototype.setUseInterimTilesOnError=function(m){this.set(Kee.USE_INTERIM_TILES_ON_ERROR,m)},f}(rSt),DSt=xar;we();we();we();var eN={ADD:"add",REMOVE:"remove"};var WSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),NSt={LENGTH:"length"},Ime=function(o){WSt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.element=x,v.index=y,v}return f}(dw);var gar=function(o){WSt(f,o);function f(m,x){var y=o.call(this)||this;y.on,y.once,y.un;var v=x||{};if(y.unique_=!!v.unique,y.array_=m||[],y.unique_)for(var C=0,T=y.array_.length;C<T;++C)y.assertUnique_(y.array_[C],C);return y.updateLength_(),y}return f.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},f.prototype.extend=function(m){for(var x=0,y=m.length;x<y;++x)this.push(m[x]);return this},f.prototype.forEach=function(m){for(var x=this.array_,y=0,v=x.length;y<v;++y)m(x[y],y,x)},f.prototype.getArray=function(){return this.array_},f.prototype.item=function(m){return this.array_[m]},f.prototype.getLength=function(){return this.get(NSt.LENGTH)},f.prototype.insertAt=function(m,x){this.unique_&&this.assertUnique_(x),this.array_.splice(m,0,x),this.updateLength_(),this.dispatchEvent(new Ime(eN.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_,y=0,v=x.length;y<v;++y)if(x[y]===m)return this.removeAt(y)},f.prototype.removeAt=function(m){var x=this.array_[m];return this.array_.splice(m,1),this.updateLength_(),this.dispatchEvent(new Ime(eN.REMOVE,x,m)),x},f.prototype.setAt=function(m,x){var y=this.getLength();if(m<y){this.unique_&&this.assertUnique_(x,m);var v=this.array_[m];this.array_[m]=x,this.dispatchEvent(new Ime(eN.REMOVE,v,m)),this.dispatchEvent(new Ime(eN.ADD,x,m))}else{for(var C=y;C<m;++C)this.insertAt(C,void 0);this.insertAt(m,x)}},f.prototype.updateLength_=function(){this.set(NSt.LENGTH,this.array_.length)},f.prototype.assertUnique_=function(m,x){for(var y=0,v=this.array_.length;y<v;++y)if(this.array_[y]===m&&y!==x)throw new Bfe(58)},f}(mw),ZSt=gar;we();var OSt=x5(DOe(),1);var yar=function(){function o(f){this.rbush_=new OSt.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_[mu(m)]=x},o.prototype.load=function(f,m){for(var x=new Array(m.length),y=0,v=m.length;y<v;y++){var C=f[y],T=m[y],S={minX:C[0],minY:C[1],maxX:C[2],maxY:C[3],value:T};x[y]=S,this.items_[mu(T)]=S}this.rbush_.load(x)},o.prototype.remove=function(f){var m=mu(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_[mu(m)],y=[x.minX,x.minY,x.maxX,x.maxY];XD(y,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(y){return y.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,y=0,v=f.length;y<v;y++)if(x=m(f[y]),x)return x;return x},o.prototype.isEmpty=function(){return NL(this.items_)},o.prototype.clear=function(){this.rbush_.clear(),this.items_={}},o.prototype.getExtent=function(f){var m=this.rbush_.toJSON();return K1(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}(),JOe=yar;we();var yw={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};we();function XSt(o,f){return[[-1/0,-1/0,1/0,1/0]]}var kSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),tN=function(o){kSt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.feature=x,v.features=y,v}return f}(dw);var _ar=function(o){kSt(f,o);function f(m){var x=this,y=m||{};x=o.call(this,{attributions:y.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:y.wrapX!==void 0?y.wrapX:!0})||this,x.on,x.once,x.un,x.loader_=uX,x.format_=y.format,x.overlaps_=y.overlaps===void 0?!0:y.overlaps,x.url_=y.url,y.loader!==void 0?x.loader_=y.loader:x.url_!==void 0&&(Su(x.format_,7),x.loader_=fOe(x.url_,x.format_)),x.strategy_=y.strategy!==void 0?y.strategy:XSt;var v=y.useSpatialIndex!==void 0?y.useSpatialIndex:!0;x.featuresRtree_=v?new JOe:null,x.loadedExtentsRtree_=new JOe,x.loadingExtentsCount_=0,x.nullGeometryFeatures_={},x.idIndex_={},x.uidIndex_={},x.featureChangeKeys_={},x.featuresCollection_=null;var C,T;return Array.isArray(y.features)?T=y.features:y.features&&(C=y.features,T=C.getArray()),!v&&C===void 0&&(C=new ZSt(T)),T!==void 0&&x.addFeaturesInternal(T),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=mu(m);if(!this.addToIndex_(x,m)){this.featuresCollection_&&this.featuresCollection_.remove(m);return}this.setupChangeEvents_(x,m);var y=m.getGeometry();if(y){var v=y.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(v,m)}else this.nullGeometryFeatures_[x]=m;this.dispatchEvent(new tN(yw.ADDFEATURE,m))},f.prototype.setupChangeEvents_=function(m,x){this.featureChangeKeys_[m]=[Gv(x,wd.CHANGE,this.handleFeatureChange_,this),Gv(x,rme.PROPERTYCHANGE,this.handleFeatureChange_,this)]},f.prototype.addToIndex_=function(m,x){var y=!0,v=x.getId();return v!==void 0&&(v.toString()in this.idIndex_?y=!1:this.idIndex_[v.toString()]=x),y&&(Su(!(m in this.uidIndex_),30),this.uidIndex_[m]=x),y},f.prototype.addFeatures=function(m){this.addFeaturesInternal(m),this.changed()},f.prototype.addFeaturesInternal=function(m){for(var x=[],y=[],v=[],C=0,T=m.length;C<T;C++){var S=m[C],w=mu(S);this.addToIndex_(w,S)&&y.push(S)}for(var C=0,E=y.length;C<E;C++){var S=y[C],w=mu(S);this.setupChangeEvents_(w,S);var L=S.getGeometry();if(L){var I=L.getExtent();x.push(I),v.push(S)}else this.nullGeometryFeatures_[w]=S}if(this.featuresRtree_&&this.featuresRtree_.load(x,v),this.hasListener(yw.ADDFEATURE))for(var C=0,R=y.length;C<R;C++)this.dispatchEvent(new tN(yw.ADDFEATURE,y[C]))},f.prototype.bindFeaturesCollection_=function(m){var x=!1;this.addEventListener(yw.ADDFEATURE,function(y){x||(x=!0,m.push(y.feature),x=!1)}),this.addEventListener(yw.REMOVEFEATURE,function(y){x||(x=!0,m.remove(y.feature),x=!1)}),m.addEventListener(eN.ADD,function(y){x||(x=!0,this.addFeature(y.element),x=!1)}.bind(this)),m.addEventListener(eN.REMOVE,function(y){x||(x=!0,this.removeFeature(y.element),x=!1)}.bind(this)),this.featuresCollection_=m},f.prototype.clear=function(m){if(m){for(var x in this.featureChangeKeys_){var y=this.featureChangeKeys_[x];y.forEach(Dy)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var v=function(S){this.removeFeatureInternal(S)}.bind(this);this.featuresRtree_.forEach(v);for(var C in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[C])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var T=new tN(yw.CLEAR);this.dispatchEvent(T),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 y=[m[0],m[1],m[0],m[1]];return this.forEachFeatureInExtent(y,function(v){var C=v.getGeometry();if(C.intersectsCoordinate(m))return x(v)})},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(y){var v=y.getGeometry();if(v.intersectsExtent(m)){var C=x(y);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(),NL(this.nullGeometryFeatures_)||Gy(m,i1t(this.nullGeometryFeatures_))),m},f.prototype.getFeaturesAtCoordinate=function(m){var x=[];return this.forEachFeatureAtCoordinateDirect(m,function(y){x.push(y)}),x},f.prototype.getFeaturesInExtent=function(m,x){var y=this;if(this.featuresRtree_){var v=x&&x.canWrapX()&&this.getWrapX();if(!v)return this.featuresRtree_.getInExtent(m);var C=C1t(m,x);return[].concat.apply([],C.map(function(T){return y.featuresRtree_.getInExtent(T)}))}else return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},f.prototype.getClosestFeatureToCoordinate=function(m,x){var y=m[0],v=m[1],C=null,T=[NaN,NaN],S=1/0,w=[-1/0,-1/0,1/0,1/0],E=x||e1t;return this.featuresRtree_.forEachInExtent(w,function(L){if(E(L)){var I=L.getGeometry(),R=S;if(S=I.closestPointXY(y,v,T,S),S<R){C=L;var P=Math.sqrt(S);w[0]=y-P,w[1]=v-P,w[2]=y+P,w[3]=v+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,y=mu(x),v=x.getGeometry();if(!v)y in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(x),this.nullGeometryFeatures_[y]=x);else{var C=v.getExtent();y in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[y],this.featuresRtree_&&this.featuresRtree_.insert(C,x)):this.featuresRtree_&&this.featuresRtree_.update(C,x)}var T=x.getId();if(T!==void 0){var S=T.toString();this.idIndex_[S]!==x&&(this.removeFromIdIndex_(x),this.idIndex_[S]=x)}else this.removeFromIdIndex_(x),this.uidIndex_[y]=x;this.changed(),this.dispatchEvent(new tN(yw.CHANGEFEATURE,x))},f.prototype.hasFeature=function(m){var x=m.getId();return x!==void 0?x in this.idIndex_:mu(m)in this.uidIndex_},f.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&NL(this.nullGeometryFeatures_):this.featuresCollection_?this.featuresCollection_.getLength()===0:!0},f.prototype.loadFeatures=function(m,x,y){for(var v=this.loadedExtentsRtree_,C=this.strategy_(m,x,y),T=function(L,I){var R=C[L],P=v.forEachInExtent(R,function(A){return rK(A.extent,R)});P||(++S.loadingExtentsCount_,S.dispatchEvent(new tN(yw.FEATURESLOADSTART)),S.loader_.call(S,R,x,y,function(A){--this.loadingExtentsCount_,this.dispatchEvent(new tN(yw.FEATURESLOADEND,void 0,A))}.bind(S),function(){--this.loadingExtentsCount_,this.dispatchEvent(new tN(yw.FEATURESLOADERROR))}.bind(S)),v.insert(R,{extent:R.slice()}))},S=this,w=0,E=C.length;w<E;++w)T(w,E);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_,y;x.forEachInExtent(m,function(v){if(XD(v.extent,m))return y=v,!0}),y&&x.remove(y)},f.prototype.removeFeature=function(m){if(!!m){var x=mu(m);x in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[x]:this.featuresRtree_&&this.featuresRtree_.remove(m);var y=this.removeFeatureInternal(m);y&&this.changed()}},f.prototype.removeFeatureInternal=function(m){var x=mu(m),y=this.featureChangeKeys_[x];if(!!y){y.forEach(Dy),delete this.featureChangeKeys_[x];var v=m.getId();return v!==void 0&&delete this.idIndex_[v.toString()],delete this.uidIndex_[x],this.dispatchEvent(new tN(yw.REMOVEFEATURE,m)),m}},f.prototype.removeFromIdIndex_=function(m){var x=!1;for(var y in this.idIndex_)if(this.idIndex_[y]===m){delete this.idIndex_[y],x=!0;break}return x},f.prototype.setLoader=function(m){this.loader_=m},f.prototype.setUrl=function(m){Su(this.format_,7),this.url_=m,this.setLoader(fOe(m,this.format_))},f}(cme),USt=_ar;var bar={toDegrees:tOe,toFeature:DTt,transform:lme,VectorSource:USt},Rme=class extends Nf{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 LV(f);else if(m==="mapbox")x=new CO(f);else if(m==="arcgis")x=await d1.fromUrl(f.url,f);else if(m==="wms")x=new TO(f);else if(m==="multi")x=new Zz(f);else if(m==="single")x=await V1.fromUrl(f.url,f);else if(m==="tms"){let v=f.west??void 0,C=f.south??void 0,T=f.east??void 0,S=f.north??void 0;F(v)&&F(C)&&F(T)&&F(S)&&(f.rectangle=new vi(be.toRadians(v),be.toRadians(C),be.toRadians(T),be.toRadians(S))),F(f.fileExtension)&&f.fileExtension==="json"&&(f.callback=this.processGeoJson()),x=await _L.fromUrl(f.url,f)}else if(m==="baidu")x=new Wz(f);else if(m==="gaode"||m==="geovis"||m==="qqmap")x=new zb(f);else if(m==="mapworld")x=new LV(f);else if(m==="osm")x=new ME(f);else if(m==="bingmap")x=await bO.fromUrl(f.url,f);else if(m==="mvt"){if(F(f.coreMap)||(f.coreMap=this._earthCtrl.coreMap),f.mvtConfig){let v=this.getVectorTileLayer(f.mvtConfig),C=f.projection?f.projection:"EPSG:3857";f.vectorTileLayer=v,f.projection=O1t(C)}x=new Oz(f,bar)}x!==null&&(this._primitive=this._earthCtrl.imageryLayers.addImageryProvider(x,f.zIndex),this._primitive._layerIndex=f.zIndex),m==="ion"&&(this._primitive=Up.fromProviderAsync(WG.fromAssetId(f.assetId),f),this._earthCtrl.imageryLayers.add(this._primitive),this._primitive._layerIndex=f.zIndex);let y=f.groupName||this._earthCtrl.language.GROUP_NWE_IMAGERY_LAYER;f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(y,{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,y=f.fillColor?f.fillColor:"rgba(68,197,19,0.5)",v=f.strokeColor?f.strokeColor:"rgba(0,31,255,1)",C=f.strokeWidth?f.strokeWidth:1,T=f.textColor?f.textColor:"#000",S=f.textStrokeColor?f.textStrokeColor:"#ff7d00",w=f.selectColor?f.selectColor:"#ff0000",E=f.selectGe_Id?f.selectGe_Id:[],L=f.geId?f.geId:"",I=new iTt({format:new WTt,tileSize:x,url:m}),R=function(A,M){let V=new QTt({fill:new vX({color:y}),stroke:new Xee({color:v,width:C}),text:new qTt({font:"80px Arial",textBaseline:"middle",text:A.get("name")||A.get("id")||"",fill:new vX({color:T}),stroke:new Xee({color:S,width:3})})});return E.includes(A.get(L))&&V.getFill().setColor(w),V};return new DSt({source:I,style:R})}checkWModels(f){return F(this._wModels[f])}removeInstance(f,m){let y=this._wModels[f];if(F(y)){let v=y.geometryInstances;if(F(v))for(let C=0;C<v.length;C++)v[C].id}}removeWModels(f){if(F(this._parameter.retain)&&this._parameter.retain)return;let m=this,x=m._wModels[f];if(F(x)){for(let y=0;y<m._instance[f].length;y++)m.instanceId.has(m._instance[f][y])&&m.instanceId.delete(m._instance[f][y]);m._instance[f]=[],m._wModels[f]=void 0}}convertCoordinates(f){let m=[];for(let x=0;x<f.length;x++){let y=f[x];for(let v=0;v<y.length;v++)Array.prototype.push.apply(m,y[v])}return m}processGeoJson(){let f=this,m=f._parameter.modelHeightKey??"\u5C42\u9AD8",x=f._parameter.modelColor??Xe.BLUE;function y(C){f.removeWModels(C)}function v(C,T){if(!F(T)||f.checkWModels(T))return;let S=[],w=yo.fromColor(x);f._instance[T]||(f._instance[T]=[]);let E;for(let L=0;L<C.features.length;L++){let I=C.features[L];if(I.geometry.type==="Polygon"){let R=I.id;if(!f.instanceId.has(R)){let P=f.convertCoordinates(I.geometry.coordinates),A=Z.fromDegreesArray(P);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(A),extrudedHeight:E}),id:R,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(R,T),f._instance[T].push(R)}}else if(I.geometry.type==="MultiPolygon"){let R=I.geometry.coordinates;for(let P=0;P<R.length;P++){let A=I.id+L;if(!f.instanceId.has(A)){let M=R[P],V=f.convertCoordinates(M),G=Z.fromDegreesArray(V);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(G),extrudedHeight:E}),id:A,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(A,T),f._instance[T].push(A)}}}else console.info(I.geometry.type)}if(S.length>0){let L=f._earthCtrl.primitives.add(new ta({geometryInstances:S,allowPicking:!1,appearance:new ga({flat:!1,faceForward:!1,translucent:!1})}));f._wModels[T]=L}}return{callback:v,removePrimitive:y}}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(y){let v=As.export(f);console.log("imageobj",v),m(v)})})}async flyTo(f={}){let m=f;function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="wms"){let y=await this._primitive.imageryProvider.capabilitiesRes;if(!y.length)return;if(y[0]<180&&y[0]>-180)m.destination=f.destination??vi.fromDegrees(y[0],y[1],y[2],y[3]);else{let v=x(y[0],y[1]),C=x(y[2],y[3]);m.destination=f.destination??vi.fromDegrees(v.lon,v.lat,C.lon,C.lat)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Rme.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],y=f.mEarthCtrl.entities.getById(x);y.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 Ame=Rme;we();we();var Car=function(o,f,m,x){let y=m,v=x;var C=f.west,T=f.east,S=f.south,w=f.north,E=T-C,L=w-S,I=o.longitude*180/Math.PI,R=o.latitude*180/Math.PI;return o.normalizedLongitude=(I-C)/E*m,o.normalizedLatitude=(R-S)/L*x,o},Tar=function(o,f,m,x){var y=[],v=o[0].longitude!==void 0;return o.forEach(function(C){var T=[],S=v?C:iN.scene.globe.ellipsoid.cartesianToCartographic(C);S=Car(S,f,m,x),T.push(S.normalizedLongitude),T.push(S.normalizedLatitude),y.push(T)}),y},Sar=function(o,f,m){var x=32,y=f.west*be.DEGREES_PER_RADIAN,v=f.east*be.DEGREES_PER_RADIAN,C=f.south*be.DEGREES_PER_RADIAN,T=f.north*be.DEGREES_PER_RADIAN,S=new vi(y,C,v,T),w=Tar(o,S,x,x),E=war(w,"#FF0000",x,x);return E},war=function(o,f,m,x,y){if(y===void 0){var y=document.createElement("canvas");y.width=m,y.height=x}var v=y.getContext("2d");if(!(o.length<=0)){v.moveTo(o[0][0],o[0][1]);for(var C=0;C<o.length;C++)v.lineTo(o[C][0],o[C][1]);return f!=null&&f!=null&&(v.fillStyle=f,v.fill()),y}};function NR(o,f){return Math.floor(Math.random()*(f-o+1))+o}function Ear(){return globalThis.GEOWORLD_BASE_URL+"Workers/ParseElevationWorker.js"}function Lar(o,f){var m=mp();return NR=Sar(o.vertices,f,o.heights[0]),NR.timeStamp=o.timeStamp,NR.mtHeight=o.heights,NR.mtType=o.mtType,NR.fromKML=o.fromKML,NR.rect=o.rectangle,NR.level=o.level,m.resolve(NR),m.promise}function Par(o,f){return Math.floor(Math.random()*(f-o+1))+o}function Iar(o,f){var m=mp(),x=[];return o.forEach(function(y){x.push(Lar(y,f))}),Promise.all(x).then(function(y){var v=y[0].lenght,C=function(w,E){return E.timeStamp-w.timeStamp};if(y.length===1)m.resolve(y[0]);else{var T=y.sort(C),S=T.shift();T.forEach(function(w){S.forEach(function(E,L){E===NR&&w[L]!==NR&&(S[L]=w[L])})}),m.resolve(S)}}),m.promise}var iN,BSt=!1;function zd(o,f){if(iN=o,!F(f))throw new wt("options is required.");this._errorEvent=new Tr,this._modelFloorMasks={},this._credit=f.credit,typeof this._credit=="string"&&(this._credit=new Oa(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 v=new XMLHttpRequest;v.open("GET",f.cacheUrl?f.cacheUrl+"/0/0/0.mpt":m._firstRequest,!1),v.onload=function(){var C=new DOMParser,T=C.parseFromString(v.responseText,"text/xml"),S=F(T.childNodes)&&T.childNodes.length>0;m.setFormatMPT(!S)},v.onerror=function(){m.setFormatMPT(!1)},v.send()}(),f.cacheUrl&&(this.isCache=!0,this.cacheLevel=f.cacheLevel||16,this._cacheUrl=f.cacheUrl+"/{z}/{x}/{y}.mpt");let y=this._maxTerrainLevel;this._availability={computeMaximumLevelAtPosition:function(v){return Math.min(y,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 _h,this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f.heightMapWidth*4,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._workerPool=new tw({workerPath:Ear()},Vi),this._pendingRequests=0,this._requestGridSize=8,this._requestsCache={},this._requestsCacheKeys=[],this.errorEvent.addEventListener(function(v){},this)}zd._geometricErrorFactor=2;Object.defineProperties(zd.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}}});zd.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)))}};zd.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)*zd._geometricErrorFactor};zd.prototype.createKeyFromTile=function(o,f,m){return o+"_"+f+"_"+m};zd.prototype.getTileDataAvailable=function(o,f,m){var x=Math.min(this._maxTerrainLevel,25);return this._isMPT?!0:m<x};zd.prototype.requestFactorForLevel=function(o){var f=Math.log(this._requestGridSize)/Math.log(2);return f=Math.min(f,o),Math.pow(2,f)};zd.prototype.getRequestBaseTerrainUrl=function(o,f,m,x){return this.getRequestUrl(o,f,m,x)};zd.prototype.getRequestElevationLayer=function(o,f,m){return this.getRequestUrl(o,f,m,!1,!0)};zd.prototype.getRequestUrl=function(T,S,w,x,y){var v=w,C=x!=null?this.requestFactorForLevel(w):1,T=x!=null?(T-T%C)/C:T,S=x!=null?(S-S%C)/C:S,w=x!=null?w-Math.log(C)/Math.log(2):w;if(this.isCache&&w!==0&&w<=this.cacheLevel)return this._cacheUrl.replace("{x}",T).replace("{y}",S).replace("{z}",w);var E=this.tilingScheme.tileXYToNativeRectangle(T,S,w),L=this.heightMapWidth*C===256&&x?1:0;y&&(L=0);var I=this._urlTemplate.replace("{south}",E.south).replace("{north}",E.north).replace("{west}",E.west).replace("{east}",E.east).replace("{optimizedOnly}",L).replace("{width}",this.heightMapWidth*C).replace("{height}",this.heightMapHeight*C).replace("{s}",this.sTag(T,S,w));return I+"&level="+w+"&origLevel="+v};zd.prototype.isT_Inside_E=function(o,f){return o.west>=f.west*be.DEGREES_PER_RADIAN&&o.east<=f.east*be.DEGREES_PER_RADIAN&&o.south>=f.south*be.DEGREES_PER_RADIAN&&o.north<=f.north*be.DEGREES_PER_RADIAN};zd.prototype.isT_Intersects_E=function(o,f){var m=o.west*be.RADIANS_PER_DEGREE,x=o.east*be.RADIANS_PER_DEGREE,y=o.south*be.RADIANS_PER_DEGREE,v=o.north*be.RADIANS_PER_DEGREE,C=new vi(m,y,x,v),T=vi.intersection(C,f,new vi);return T};zd.prototype.sTag=function(o,f,m){if(this._subdomains==null)return"";var x=(o+f+m)%this._subdomains.length;return this._subdomains[x]};zd.prototype.refreshElevationLayer=function(o){if(o.rectangle&&iN.scene.globe._surface._levelZeroTiles!==void 0){var f=this.findDirectParent(o.rectangle,!0);f.freeResources()}};zd.prototype.findDirectParent=function(o,f){var m=function(v,C,T){var S=T?4.1:2.1;if(v._rectangle.width<=C.width*S&&vi.contains(v._rectangle,vi.center(C)))return v;for(var w=v.children.length,E=0;E<w;E++){var L=v.children[E];if(vi.contains(L._rectangle,vi.center(C)))return m(L,C,T)}return null};if(o.width==Math.PI)return null;for(var x=0;x<iN.scene.globe._surface._levelZeroTiles.length;x++){var y=m(iN.scene.globe._surface._levelZeroTiles[x],o,f);if(y)return y}return null};zd.prototype.isTileAvailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);if(y&&y.data&&y.data.terrainData){if(!(y.data.terrainData._childTileMask>0))return!1;for(var v=y.children.length,C=0;C<v;C++){var T=y.children[C];if(vi.equals(T._rectangle,x))return y.data.terrainData._childTileMask&1<<C}}return!0};zd.prototype.markTileAsUnavailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);y&&y.data&&y.data.terrainData&&y.data.terrainData._childTileMask>0&&y.children.some(function(v,C){if(vi.equals(v._rectangle,x)){switch(C){case 0:y.data.terrainData._childTileMask&=-5;break;case 1:y.data.terrainData._childTileMask&=-9;break;case 2:y.data.terrainData._childTileMask&=-2;break;case 3:y.data.terrainData._childTileMask&=-3;break;default:}return!0}return!1})};zd.prototype.requestBaseTerrainTileGeometry=function(o,f,m,x){return this.requestTileGeometryBuffers(o,f,m,x)};zd.prototype.requestElevationLayerTileGeometry=function(o,f,m,x,y){return this.requestTileGeometryBuffers(o,f,m,x,y)};zd.prototype.requestTileGeometryBuffers=function(o,f,m,x,y){var v=this,C=15,T={};T.requestedRectangle=this.tilingScheme.tileXYToNativeRectangle(o,f,m),T.layer=y;var I,S,w,E,L=mp(),I=this.requestTileHeightBuffer(o,f,m,x,void 0,y);return I===void 0?void 0:(S=this.requestTileHeightBuffer(o+1,f,m,x,!0,y),w=this.requestTileHeightBuffer(o,f+1,m,x,!0,y),E=this.requestTileHeightBuffer(o+1,f+1,m,x,!0,y),Promise.all([I,S,w,E]).then(function(R){if(BSt==0){if(R[0].myReject!=null&&R[0].myReject){L.reject();return}for(var P=v.heightMapWidth+1,A=v.heightMapHeight+1,M=new Float32Array(P*A),V=R[0].isFloor,G=0;G<P;G++)for(var D=0;D<A;D++){var N=G,k=D,U=0;D===P-1&&(k=0,U=1,V&&(U=0,k=P-2)),G===A-1&&(N=0,U=2);var B=G*P+D,Y=N*v.heightMapWidth+k;R[U]!==null&&(R[U].myReject==null||!R[U].myReject)&&(M[B]=R[U][Y])}(R[3].myReject==null||!R[3].myReject)&&(M[P*A-1]=R[3][0]);var J=v.arrayToHeightmapTerrainData(M,P,A,C);T.buffer=J,L.resolve(T)}else{var J=v.arrayToHeightmapTerrainData(R[0],v.heightMapWidth,v.heightMapHeight);T.buffer=J,L.resolve(T)}}).catch(function(){L.reject()}),L.promise)};zd.prototype.requestTileGeometry=function(o,f,m,x){var y=this,v=[],C=y.tilingScheme.tileXYToNativeRectangle(o,f,m);this._allElevationLayers!=null&&this._allElevationLayers.length>0&&m>7?this._allElevationLayers.forEach(function(S,w){var E=w.show;if(E){var L=w.rectangle;y.isT_Inside_E(C,L)?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w))):y.isT_Intersects_E(C,L)!=null?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w)),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)))}else y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))}):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)));var T=mp();return Promise.all(v).then(function(S){if(S.length===1)S.layer!==void 0&&console.log("missing scale and offset"),T.resolve(S[0].buffer);else if(S.length>1){var w=S.filter(function(P){return P.layer!==void 0}),E=S.filter(function(P){return P.layer===void 0});if(w.length===0)T.resolve(S[0].buffer);else{var L=w[w.length-1],I=E[E.length-1],R={tolerance:L.layer.nullTolerance,nullValueNumber:L.layer.nullValueNumber,verticesX:L.layer.polygonVerticesX,verticesY:L.layer.polygonVerticesY,scale:L.layer.scale??1,offset:L.layer.offset??0};T.resolve(y.mergeBuffers(I.buffer,L.buffer,R,I.requestedRectangle))}}else T.reject()}).catch(function(){T.reject()}),T.promise};zd.prototype.mergeBuffers=function(o,f,m,x){var y,v,C,T,S,w=33,E=33,L=x.west,I=x.north,R=x.east,P=x.south,A=x.width/w,M=x.height/E,V=m.scale,G=m.offset,D=m.nullValueNumber,N=m.tolerance,k=D!==void 0&&N!==void 0;if(k)var U=m.nullValueNumber??0,B=Number(m.tolerance)??0;var Y=new Float32Array(w*E);for(y=0,S=I;y<E;y++,S+=M)for(v=0,T=L;v<w;v++,T+=A)C=y*w+v,k?Y[C]=!f._buffer[C]||f._buffer[C]>=U-B&&f._buffer[C]<=U+B?o._buffer[C]:f._buffer[C]*V+G:Y[C]=f._buffer[C]?f._buffer[C]*V+G:o._buffer[C];return this.arrayToHeightmapTerrainData(Y,w,E,15)};zd.prototype.requestTileHeightBuffer=function(o,f,m,x,y,v){var C=this;if(!isNaN(o+f+m)){(!F(x)||x===!1)&&(x=new dm({defer:!0}));var T=x.defer==0;y=T??!1;var S=mp();if(BSt==0){var w;if(v!==void 0)v.getUrlFromSTag=function(j,q,O){return v.subdomains===void 0?v.url:v.subdomains[0]+"/SG"},w=this.getRequestElevationLayer(o,f,m).replace(this._options.url,v.getUrlFromSTag(o,f,m)+"/Elevation").replace(this._options.layerName,v.name),v.format==="mpt"&&(w=w.replace("image/png","image/mpt"));else{w=this.getRequestBaseTerrainUrl(o,f,m,T||y);var E=iN.terrainProvider.tilingScheme.tileXYToRectangle(o,f,m),L=iN.terrainProvider._modifyTerrainObjects,I=mp();if(L!==void 0){var R=[];if(L.forEach(function(j){j.show&&vi.intersection(E,j.rectangle,new vi)!=null&&R.push(j)}),R.length>0)if(R.length===1&&R[0].modelFloorBestLevel&&m>R[0].modelFloorBestLevel)I.resolve("NoMerge");else{var P=Iar(R,E,m);Promise.resolve(P).then(function(j){I.resolve(j)}).catch(function(j){console.log(j)})}else I.resolve("NoMerge")}else I.resolve("NoMerge");var A=mp(),M=[].filter(function(j){return j._selectedTiles.length>0});if(M.length===1&&M[0].level&&m>M[0].level)A.resolve("NoFloor");else{var V=!1,G=32,D=65535;M.forEach(function(j){if(j.ready&&j.show&&j.rootFloorRectangle!==void 0&&vi.intersection(E,j.rootFloorRectangle)!==void 0){for(var q=new Uint16Array(G*G),O=E.west,te=E.south,ie=(E.east-E.west)/32,re=(E.north-E.south)/32,ee,ae=0;ae<G;ae++)for(var oe=0;oe<G;oe++){var ce=O+ie*oe+ie/2,pe=E.north-re*ae-re/2,ue=new Gt(ce,pe);ee=D;var he=j.getHRMTFP(j,ue,!0);he!=null&&he.content&&he.content._model&&he.content._model.floor&&(ee=he.content._model.floor.getHeight(ue.longitude,ue.latitude)),ee!==D&&(ee+=1.5),q[ae*G+oe]=ee}V=!0,A.resolve(q)}}),V||A.resolve("NoFloor")}var N=iN.scene.globe.ellipsoid}if(this._requestsCache.hasOwnProperty(w)===!1){if(this._requestsCache[w]={},this._requestsCacheKeys.push(w),this._requestsCacheKeys.length>100){for(var k=0;k<50;k++)delete this._requestsCache[this._requestsCacheKeys[k]];this._requestsCacheKeys.splice(0,50)}}else{var U=this._requestsCacheKeys.indexOf(w);this._requestsCacheKeys.splice(U,1),this._requestsCacheKeys.push(w)}var B=this._requestsCache[w];if(B.dataLoaded===void 0&&(T?B.dataLoaded=Mr.fetchArrayBuffer(w):B.dataLoaded=Mr.fetchArrayBuffer(w),!F(B.dataLoaded)))return;var Y=this;this._pendingRequests++,Promise.resolve(B.dataLoaded).then(function(j){B.workerFinished===void 0&&(B.workerFinished=Y._workerPool.queueWorkItem({buffer:j,isElevation:v!==void 0,level:m})),Promise.all([B.workerFinished,I.promise,A.promise]).then(function(q){var O=q[1]!==void 0&&q[1]!=="NoMerge",te=q[2]!==void 0&&q[2]!=="NoFloor";if(q[0].rejected){for(var ie=Y.heightMapWidth*Y.heightMapHeight,re=new Int16Array(ie),ee=0,ae=0;ae<ie;ae++)re[ae]=300;return m>2&&(re.myReject=!0),S.resolve(re),S.promise}var oe=Y.extractTileHeightBuffer(q[0].buffer,o,f,m);if(Y._pendingRequests--,O)for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[1].mtHeight[0]}if(te){for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[2][pe]===65535||q[2][pe]>10500?oe[pe]:q[2][pe]}oe.isFloor=!0}S.resolve(oe)}).catch(function(){for(var q=Y.heightMapWidth*Y.heightMapHeight,O=new Int16Array(q),te=0,ie=0;ie<q;ie++)O[ie]=300;return m>2&&(O.myReject=!0),S.resolve(O),S.promise})}).catch(function(){Y._pendingRequests--,S.reject()})}else{for(var J=this.heightMapWidth*this.heightMapHeight,K=new Int16Array(J),z=Par(0,1500),k=0;k<J;k++)K[k]=z;S.resolve(K)}return S.promise}};zd.prototype.extractTileHeightBuffer=function(o,f,m,x){try{for(var y=this.requestFactorForLevel(x),v=f%y,C=m%y,T=new Float32Array(this.heightMapWidth*this.heightMapHeight),S=1e6,w=-1e5,E=0;E<this.heightMapHeight;E++)for(var L=0;L<this.heightMapWidth;L++){var I=E+C*this.heightMapHeight,R=L+v*this.heightMapWidth,P=E*this.heightMapWidth+L,A=I*this.heightMapWidth*y+R;o[A]>w&&(w=o[A]),o[A]<S&&(S=o[A]),T[P]=o[A]}}catch(M){console.log(M.message)}return T};zd.prototype.arrayToHeightmapTerrainData=function(o,f,m,x){F(o)===!1&&(o=new Int16Array(f*m));var y={buffer:o,width:f,height:m,childTileMask:x};return new yL(y)};var HSt=zd;var Mme=class extends Nf{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,y=m.sourceType??"ctb";try{if(y!=="ude"){if(y==="ctb")x=await W4.fromUrl(m.url,m);else if(y==="multi")x=new lce(this._earthCtrl);else if(y==="sgs")f&&(Ty.hasVertexNormals=!0),x=new HSt(this._earthCtrl.coreMap,m);else if(y==="arcgis")x=await xde.fromUrl(m.url,m);else if(y==="mapworld"){let C=m.cesium;C.GeoTerrainProvider||new ex(!1).addJs(document.body,`${window.SmartEarthRootUrl}Workers/cesiumTdt.js`);let T=[],S=m.subdomains;for(let w=0;w<S.length;w++){let E=`${m.url.replace("{s}",S[w])}mapservice/swdx?T=elv_c&tk=3ec79cf7a9dcc6bb18411a5414b148cb`;T.push(E)}x=new C.GeoTerrainProvider({urls:T})}}x!==null&&(this._primitive=x,this._coreMap.terrainProvider=x);let v=m.groupName||this._earthCtrl.language.GROUP_NWE_TERRAIN_LAYER;m.addTree&&(m.addTree=void 0,m.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(v,{id:m.id||this._earthCtrl.factory.createUUID(),name:m.name||y,sourceType:"TerrainProvider",item:this,feature:m,checked:this._primitive.show}))}catch(v){console.error(v)}}removeFromMap(){this._primitive!==null&&(this._coreMap.terrainProvider=new RS)}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(y){let v=As.export(f);console.log("terraobj",v),m(v)})})}flyTo(f={}){let m=f;m.orientation=f.orientation??{heading:be.toRadians(0),pitch:be.toRadians(-60),roll:be.toRadians(0)};function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="ctb"||this._parameter.sourceType==="arcgis"){if(this._primitive._tilingScheme.bounds[0]<180&&this._primitive._tilingScheme.bounds[0]>-180){let y=this._primitive._tilingScheme.bounds,v=(y[0]+y[2])/2,C=(y[1]+y[3])/2,T=f.height||1e4;m.destination=f.destination??Z.fromDegrees(v,C,T)}else{let y=this._primitive._tilingScheme.bounds,v=x(y[0],y[1]),C=x(y[2],y[3]),T=(v.lon+C.lon)/2,S=(v.lat+C.lat)/2,w=f.height||1e4;m.destination=f.destination??Z.fromDegrees(T,S,w)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Mme.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 Vme=Mme;we();var Gme=class extends Nf{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 _0.fromUrl(f.url,f),F(f.transform)&&this.transform(f.transform,m)):f.sourceType==="osgb"?m=await _0.fromUrl(f.url,f):f.sourceType==="i3s"?m=await gR.fromUrl(f.url,f):f.sourceType==="s3m"?(F(f.context)||(f.context=this._earthCtrl.viewer.scene.context),m=new rpe(f),await m.readyPromise):(f.sourceType==="ude_block"||f.sourceType==="ude_model")&&(f.skipLevelOfDetail=!0,m=await _0.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(){F(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(y){let v=As.export(f);console.log("modellayerobj",v),m(v)})})}transform(f,m){let x=m._primitive,y=Ut.fromRotationX(be.toRadians(f.pitch)),v=Ut.fromRotationY(be.toRadians(f.roll)),C=Ut.fromRotationZ(be.toRadians(f.heading)),T=Ee.fromRotationTranslation(y),S=Ee.fromRotationTranslation(v),w=Ee.fromRotationTranslation(C),E=Z.fromDegrees(f.lon,f.lat,f.alt),L=_r.eastNorthUpToFixedFrame(E);Ee.multiply(L,T,L),Ee.multiply(L,S,L),Ee.multiply(L,w,L),x._root.transform=L}setHeight(f){if(f=Number(f),!isNaN(f)&&this._primitive!==void 0&&this._primitive.boundingSphere!==void 0){let m=this._primitive.boundingSphere.center,x=Gt.fromCartesian(m),y=Z.fromRadians(x.longitude,x.latitude,0),v=Z.fromRadians(x.longitude,x.latitude,f),C=Z.subtract(v,y,new Z);this._primitive.modelMatrix=Ee.fromTranslation(C)}}};Object.defineProperties(Gme.prototype,{parameter:{get:function(){return this._parameter}},readyPromise:{get:function(){return this._primitive.readyPromise}},show:{get:function(){return F(this._primitive)?this._primitive.show:!1},set:function(o){F(this._primitive)&&(this._primitive.show=o)}},sourceType:{get:function(){return F(this._parameter)?this._parameter.sourceType:!1}},dataUrl:{get:function(){return F(this._parameter)?this._parameter.url:!1}},boundingSphere:{get:function(){return F(this._primitive)&&this._primitive.boundingSphere?this._primitive.boundingSphere:null}},modelMatrix:{get:function(){return F(this._primitive)?this._primitive.modelMatrix:!1},set:function(o){F(this._primitive)&&(this._primitive.modelMatrix=o)}},name:{get:function(){return F(this._parameter)?this._parameter.name:!1},set:function(o){F(this._parameter)&&(this._parameter.name=o)}}});var Fme=Gme;we();var Dme=class extends Nf{constructor(f,m){super(f),this._rtti="FeatureLayer",this._primitive=null,this._parameter=m}finalize(){}addToMap(){let f=this._parameter;this._primitive=new jue(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 y=m[x];for(let v=0;v<y.propertyNames.length;v++){let C=y.propertyNames[v];if(!!y[C]){typeof f.near<"u"&&typeof f.far<"u"&&(y[C].distanceDisplayCondition=new So(f.near,f.far));for(let T in f)if(Object.hasOwnProperty.call(f,T)){let S=f[T];y[C][T]&&(y[C][T]=S)}if(f.pointHeight){let T=Gt.fromCartesian(y.position._value),S=Math.toDegrees(T.longitude),w=Math.toDegrees(T.latitude);y.position=Z.fromDegrees(S,w,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(y){let v=As.export(f);console.log("fireObj",v),m(v)})})}};Object.defineProperties(Dme.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 Nme=Dme;we();function Wme(o){this._earthCtrl=o,this._path="",this._layerWork=null}Object.defineProperties(Wme.prototype,{});Wme.prototype.addToMap=function(o){F(this._layerWork)?this._layerWork.updateOverlay(o):this._layerWork=new Ede(this._earthCtrl.coreMap,o)};Wme.prototype.removeFromMap=function(){this._layerWork.dispose()};var Zme=Wme;we();var Rar={IMAGERYPROVIDERS:"imageryProviders",TERRAINPROVIDERS:"terrainProviders",MODELLAYERS:"modelLayers",FEATURELAYERS:"featureLayers",USERSCENE:"userScene"},Ms=Object.freeze(Rar);we();var Ome=class extends Nf{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??Xe.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 Fz(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(y){let v=As.export(f);console.log("waterObj",v),m(v)})})}};Object.defineProperties(Ome.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 Xme=Ome;we();var jOe=class extends Nf{constructor(f,m){super(f),this._parameter=m,this._viewer=f.coreMap,this._cesium=Vi}addToMap(){let f=this._parameter,m,x;F(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 y;f.url?y=new this._cesium.SingleTileImageryProvider({url:f.url}):f.imageryProvider?y=f.imageryProvider:y=new _L({url:"http://103.25.37.71:4020/gisserver/tmsserver/earth_tms"});let v=new M4(x,{baseLayer:Up.fromProviderAsync(y),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}});v._innerCreditContainer.style.display="none",v.scene.screenSpaceCameraController.enableRotate=!1,v.scene.screenSpaceCameraController.enableZoom=!1,v.scene.screenSpaceCameraController.enableTilt=!1;let C=this;function T(){let S=C._viewer.camera.position,w=Gt.fromCartesian(S);v.camera.setView({destination:Gt.toCartesian(w),orientation:{heading:C._viewer.camera.heading,pitch:C._viewer.camera.pitch,roll:C._viewer.camera.roll}})}return C._viewer.scene.preRender.addEventListener(T),this.close=function(){C._viewer.scene.preRender.removeEventListener(T),v.destroy(),m.remove(),C.close=void 0},this}removeFromMap(){this.close&&this.close()}},kme=jOe;we();var zSt=new zt;function Aar(o,f,m){let x=o.length,y,v,C;if(m){y=zr.LUMINANCE,v=un.FLOAT,C=new Float32Array(x);for(let T=0;T<x;T++)C[T]=o[T]}else{y=zr.RGBA,v=un.UNSIGNED_BYTE,C=new Uint8Array(x*4);for(let T=0;T<x;T++)zt.packFloat(o[T],zSt),zt.pack(zSt,C,T*4)}return new Rn.create({context:f,pixelFormat:y,pixelDatatype:v,source:{width:x,height:1,arrayBufferView:C},flipY:!1,sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})})}var Ume=[];function Mar(o,f,m,x){Ee.toArray(Ee.IDENTITY,Ume);let y=new Co({fabric:{type:"spotMaterial",source:` +`){ie+=te,te=0,j=I*k+z*R,++ee;continue}var ue=P[oe+1]||S.font;ue!==ae&&(y&&q.push("font",ue),x&&O.push("font",ue),ae=ue),te=Math.max(te,D[re]);var he=[pe,j+z*G[re]+I*(G[re]-N[ee]),.5*(R+te)+ie];j+=G[re],y&&q.push("strokeText",he),x&&O.push("fillText",he),++re}return Array.prototype.push.apply(U,q),Array.prototype.push.apply(U,O),this.labels_[v]=J,J},o.prototype.replayTextBackground_=function(f,m,x,y,v,C,T){f.beginPath(),f.moveTo.apply(f,m),f.lineTo.apply(f,x),f.lineTo.apply(f,y),f.lineTo.apply(f,v),f.lineTo.apply(f,m),C&&(this.alignFill_=C[2],this.fill_(f)),T&&(this.setStrokeStyle_(f,T),f.stroke())},o.prototype.calculateImageOrLabelDimensions_=function(f,m,x,y,v,C,T,S,w,E,L,I,R,P,A,M){T*=I[0],S*=I[1];var V=x-T,G=y-S,D=v+w>f?f-w:v,N=C+E>m?m-E:C,k=P[3]+D*I[0]+P[1],U=P[0]+N*I[1]+P[2],B=V-P[3],Y=G-P[0];(A||L!==0)&&(qD[0]=B,$D[0]=B,qD[1]=Y,r3[1]=Y,r3[0]=B+k,n3[0]=r3[0],n3[1]=Y+U,$D[1]=n3[1]);var J;return L!==0?(J=d2(Ny(),x,y,1,1,L,-x,-y),Of(J,qD),Of(J,r3),Of(J,n3),Of(J,$D),K1(Math.min(qD[0],r3[0],n3[0],$D[0]),Math.min(qD[1],r3[1],n3[1],$D[1]),Math.max(qD[0],r3[0],n3[0],$D[0]),Math.max(qD[1],r3[1],n3[1],$D[1]),gK)):K1(Math.min(B,B+k),Math.min(Y,Y+U),Math.max(B,B+k),Math.max(Y,Y+U),gK),R&&(V=Math.round(V),G=Math.round(G)),{drawImageX:V,drawImageY:G,drawImageW:D,drawImageH:N,originX:w,originY:E,declutterBox:{minX:gK[0],minY:gK[1],maxX:gK[2],maxY:gK[3],value:M},canvasTransform:J,scale:I}},o.prototype.replayImageOrLabel_=function(f,m,x,y,v,C,T){var S=!!(C||T),w=y.declutterBox,E=f.canvas,L=T?T[2]*y.scale[0]/2:0,I=w.minX-L<=E.width/m&&w.maxX+L>=0&&w.minY-L<=E.height/m&&w.maxY+L>=0;return I&&(S&&this.replayTextBackground_(f,qD,r3,n3,$D,C,T),BTt(f,y.canvasTransform,v,x,y.originX,y.originY,y.drawImageW,y.drawImageH,y.drawImageX,y.drawImageY,y.scale)),!0},o.prototype.fill_=function(f){if(this.alignFill_){var m=Of(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,y){var v=this.textStates[m],C=this.createLabel(f,m,y,x),T=this.strokeStates[x],S=this.pixelRatio,w=cSt(Array.isArray(f)?f[0]:f,v.textAlign||QD),E=xK[v.textBaseline||_X],L=T&&T.lineWidth?T.lineWidth:0,I=C.width/S-2*v.scale[0],R=w*I+2*(.5-w)*L,P=E*C.height/S+2*(.5-E)*L;return{label:C,anchorX:R,anchorY:P}},o.prototype.execute_=function(f,m,x,y,v,C,T,S){var w;this.pixelCoordinates_&&LR(x,this.renderedTransform_)?w=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),w=Qb(this.coordinates,0,this.coordinates.length,2,x,this.pixelCoordinates_),sTt(this.renderedTransform_,x));for(var E=0,L=y.length,I=0,R,P,A,M,V,G,D,N,k,U,B,Y,J=0,K=0,z=null,j=null,q=this.coordinateCache_,O=this.viewRotation_,te=Math.round(Math.atan2(-x[1],x[0])*1e12)/1e12,ie={context:f,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:O},re=this.instructions!=y||this.overlaps?0:200,ee,ae,oe,ce;E<L;){var pe=y[E],ue=pe[0];switch(ue){case Es.BEGIN_GEOMETRY:ee=pe[1],ce=pe[3],ee.getGeometry()?T!==void 0&&!Ed(T,ce.getExtent())?E=pe[2]+1:++E:E=pe[2];break;case Es.BEGIN_PATH:J>re&&(this.fill_(f),J=0),K>re&&(f.stroke(),K=0),!J&&!K&&(f.beginPath(),M=NaN,V=NaN),++E;break;case Es.CIRCLE:I=pe[1];var he=w[I],fe=w[I+1],de=w[I+2],Ce=w[I+3],Se=de-he,Le=Ce-fe,Ve=Math.sqrt(Se*Se+Le*Le);f.moveTo(he+Ve,fe),f.arc(he,fe,Ve,0,2*Math.PI,!0),++E;break;case Es.CLOSE_PATH:f.closePath(),++E;break;case Es.CUSTOM:I=pe[1],R=pe[2];var Oe=pe[3],$e=pe[4],at=pe.length==6?pe[5]:void 0;ie.geometry=Oe,ie.feature=ee,E in q||(q[E]=[]);var dt=q[E];at?at(w,I,R,2,dt):(dt[0]=w[I],dt[1]=w[I+1],dt.length=2),$e(dt,ie),++E;break;case Es.DRAW_IMAGE:I=pe[1],R=pe[2],N=pe[3],P=pe[4],A=pe[5];var gt=pe[6],Et=pe[7],et=pe[8],yt=pe[9],Rt=pe[10],Vt=pe[11],_t=pe[12],se=pe[13],ve=pe[14],je=pe[15];if(!N&&pe.length>=20){k=pe[19],U=pe[20],B=pe[21],Y=pe[22];var Ft=this.drawLabelWithPointPlacement_(k,U,B,Y);N=Ft.label,pe[3]=N;var kt=pe[23];P=(Ft.anchorX-kt)*this.pixelRatio,pe[4]=P;var bt=pe[24];A=(Ft.anchorY-bt)*this.pixelRatio,pe[5]=A,gt=N.height,pe[6]=gt,se=N.width,pe[13]=se}var lt=void 0;pe.length>25&&(lt=pe[25]);var ot=void 0,tt=void 0,ze=void 0;pe.length>17?(ot=pe[16],tt=pe[17],ze=pe[18]):(ot=e3,tt=!1,ze=!1),Rt&&te?Vt+=O:!Rt&&!te&&(Vt-=O);for(var ct=0;I<R;I+=2)if(!(lt&<[ct++]<se/this.pixelRatio)){var Wt=this.calculateImageOrLabelDimensions_(N.width,N.height,w[I],w[I+1],se,gt,P,A,et,yt,Vt,_t,v,ot,tt||ze,ee),Tt=[f,m,N,Wt,Et,tt?z:null,ze?j:null];if(S){if(ve==="none")continue;if(ve==="obstacle"){S.insert(Wt.declutterBox);continue}else{var Ht=void 0,Ci=void 0;if(je){var Yt=R-I;if(!je[Yt]){je[Yt]=Tt;continue}if(Ht=je[Yt],delete je[Yt],Ci=uSt(Ht),S.collides(Ci))continue}if(S.collides(Wt.declutterBox))continue;Ht&&(S.insert(Ci),this.replayImageOrLabel_.apply(this,Ht)),S.insert(Wt.declutterBox)}}this.replayImageOrLabel_.apply(this,Tt)}++E;break;case Es.DRAW_CHARS:var li=pe[1],Ne=pe[2],Ze=pe[3],De=pe[4];Y=pe[5];var He=pe[6],Ue=pe[7],ft=pe[8];B=pe[9];var St=pe[10];k=pe[11],U=pe[12];var Be=[pe[13],pe[13]],st=this.textStates[U],At=st.font,Mt=[st.scale[0]*Ue,st.scale[1]*Ue],It=void 0;At in this.widths_?It=this.widths_[At]:(It={},this.widths_[At]=It);var ui=xme(w,li,Ne,2),Ai=Math.abs(Mt[0])*MOe(At,k,It);if(De||Ai<=ui){var wi=this.textStates[U].textAlign,zi=(ui-Ai)*xK[wi],Ri=lSt(w,li,Ne,2,k,zi,He,Math.abs(Mt[0]),MOe,At,It,te?0:this.viewRotation_);e:if(Ri){var Ot=[],Kt=void 0,ri=void 0,ii=void 0,ci=void 0,Gi=void 0;if(B)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,"",B),P=Gi[2]+(Mt[0]<0?-St:St),A=Ze*ci.height+(.5-Ze)*2*St*Mt[1]/Mt[0]-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,e3,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}if(Y)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,Y,""),P=Gi[2],A=Ze*ci.height-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,e3,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}S&&S.load(Ot.map(uSt));for(var Ki=0,ar=Ot.length;Ki<ar;++Ki)this.replayImageOrLabel_.apply(this,Ot[Ki])}}++E;break;case Es.END_GEOMETRY:if(C!==void 0){ee=pe[1];var Ir=C(ee,ce);if(Ir)return Ir}++E;break;case Es.FILL:re?J++:this.fill_(f),++E;break;case Es.MOVE_TO_LINE_TO:for(I=pe[1],R=pe[2],ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(G!==M||D!==V)&&(f.moveTo(ae,oe),M=G,V=D),I+=2;I<R;I+=2)ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(I==R-2||G!==M||D!==V)&&(f.lineTo(ae,oe),M=G,V=D);++E;break;case Es.SET_FILL_STYLE:z=pe,this.alignFill_=pe[2],J&&(this.fill_(f),J=0,K&&(f.stroke(),K=0)),f.fillStyle=pe[1],++E;break;case Es.SET_STROKE_STYLE:j=pe,K&&(f.stroke(),K=0),this.setStrokeStyle_(f,pe),++E;break;case Es.STROKE:re?K++:f.stroke(),++E;break;default:++E;break}}J&&this.fill_(f),K&&f.stroke()},o.prototype.execute=function(f,m,x,y,v,C){this.viewRotation_=y,this.execute_(f,m,x,this.instructions,v,void 0,void 0,C)},o.prototype.executeHitDetection=function(f,m,x,y,v){return this.viewRotation_=x,this.execute_(f,1,m,this.hitDetectionInstructions,!0,y,v)},o}(),hSt=Sor;var OOe=["Polygon","Circle","LineString","Image","Text","Default"],wor=function(){function o(f,m,x,y,v,C){this.maxExtent_=f,this.overlaps_=y,this.pixelRatio_=x,this.resolution_=m,this.renderBuffer_=C,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Ny(),this.createExecutors_(v)}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 y=f[m];for(var v in y){var C=y[v];x[v]=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],y=0,v=f.length;y<v;++y)if(f[y]in x)return!0;return!1},o.prototype.forEachFeatureAtCoordinate=function(f,m,x,y,v,C){y=Math.round(y);var T=y*2+1,S=d2(this.hitDetectionTransform_,y+.5,y+.5,1/m,-1/m,-x,-f[0],-f[1]),w=!this.hitDetectionContext_;w&&(this.hitDetectionContext_=Zf(T,T));var E=this.hitDetectionContext_;E.canvas.width!==T||E.canvas.height!==T?(E.canvas.width=T,E.canvas.height=T):w||E.clearRect(0,0,T,T);var L;this.renderBuffer_!==void 0&&(L=Zg(),hX(L,f),ZL(L,m*(this.renderBuffer_+y),L));var I=Eor(y),R;function P(U,B){for(var Y=E.getImageData(0,0,T,T).data,J=0,K=I.length;J<K;J++)if(Y[I[J]]>0){if(!C||R!=="Image"&&R!=="Text"||C.indexOf(U)!==-1){var z=(I[J]-3)/4,j=y-z%T,q=y-(z/T|0),O=v(U,B,j*j+q*q);if(O)return O}E.clearRect(0,0,T,T);break}}var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(DL);var M,V,G,D,N;for(M=A.length-1;M>=0;--M){var k=A[M].toString();for(G=this.executorsByZIndex_[k],V=OOe.length-1;V>=0;--V)if(R=OOe[V],D=G[R],D!==void 0&&(N=D.executeHitDetection(E,S,x,P,L),N))return N}},o.prototype.getClipCoords=function(f){var m=this.maxExtent_;if(!m)return null;var x=m[0],y=m[1],v=m[2],C=m[3],T=[x,y,x,C,v,C,v,y];return Qb(T,0,8,2,f,T),T},o.prototype.isEmpty=function(){return NL(this.executorsByZIndex_)},o.prototype.execute=function(f,m,x,y,v,C,T){var S=Object.keys(this.executorsByZIndex_).map(Number);S.sort(DL),this.maxExtent_&&(f.save(),this.clip(f,x));var w=C||OOe,E,L,I,R,P,A;for(T&&S.reverse(),E=0,L=S.length;E<L;++E){var M=S[E].toString();for(P=this.executorsByZIndex_[M],I=0,R=w.length;I<R;++I){var V=w[I];A=P[V],A!==void 0&&A.execute(f,m,x,y,v,T)}}this.maxExtent_&&f.restore()},o}(),XOe={};function Eor(o){if(XOe[o]!==void 0)return XOe[o];for(var f=o*2+1,m=o*o,x=new Array(m+1),y=0;y<=o;++y)for(var v=0;v<=o;++v){var C=y*y+v*v;if(C>m)break;var T=x[C];T||(T=[],x[C]=T),T.push(((o+y)*f+(o+v))*4+3),y>0&&T.push(((o-y)*f+(o+v))*4+3),v>0&&(T.push(((o+y)*f+(o-v))*4+3),y>0&&T.push(((o-y)*f+(o-v))*4+3))}for(var S=[],y=0,w=x.length;y<w;++y)x[y]&&S.push.apply(S,x[y]);return XOe[o]=S,S}var kOe=wor;we();we();we();var Lor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Por=function(o){Lor(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 Us()},f.prototype.getData=function(m){return null},f.prototype.prepareFrame=function(m){return Us()},f.prototype.renderFrame=function(m,x){return Us()},f.prototype.loadedTileCallback=function(m,x,y){m[x]||(m[x]={}),m[x][y.tileCoord.toString()]=y},f.prototype.createLoadedTileFinder=function(m,x,y){return function(v,C){var T=this.loadedTileCallback.bind(this,y,v);return m.forEachLoadedTile(x,v,C,T)}.bind(this)},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){},f.prototype.getDataAtPixel=function(m,x,y){return null},f.prototype.getLayer=function(){return this.layer_},f.prototype.handleFontsChanged=function(){},f.prototype.handleImageChange_=function(m){var x=m.target;x.getState()===bh.LOADED&&this.renderIfReadyAndVisible()},f.prototype.loadImage=function(m){var x=m.getState();return x!=bh.LOADED&&x!=bh.ERROR&&m.addEventListener(wd.CHANGE,this.boundHandleImageChange_),x==bh.IDLE&&(m.load(),x=m.getState()),x==bh.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}(ome),dSt=Por;we();var Ior=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Ror=function(o){Ior(f,o);function f(m,x,y,v){var C=o.call(this,m)||this;return C.inversePixelTransform=x,C.frameState=y,C.context=v,C}return f}(dw),pSt=Ror;var Aor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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 yK=null;function Mor(){var o=document.createElement("canvas");o.width=1,o.height=1,yK=o.getContext("2d")}var Vor=function(o){Aor(f,o);function f(m){var x=o.call(this,m)||this;return x.container=null,x.renderedResolution,x.tempTransform=Ny(),x.pixelTransform=Ny(),x.inversePixelTransform=Ny(),x.context=null,x.containerReused=!1,x.pixelContext_=null,x.frameState=null,x}return f.prototype.getImageData=function(m,x,y){yK||Mor(),yK.clearRect(0,0,1,1);var v;try{yK.drawImage(m,x,y,1,1,0,0,1,1),v=yK.getImageData(0,0,1,1).data}catch{return yK=null,null}return v},f.prototype.getBackground=function(m){var x=this.getLayer(),y=x.getBackground();return typeof y=="function"&&(y=y(m.viewState.resolution)),y||void 0},f.prototype.useContainer=function(m,x,y){var v=this.getLayer().getClassName(),C,T;if(m&&m.className===v&&(!y||m&&m.style.backgroundColor&&LR(gX(m.style.backgroundColor),gX(y)))){var S=m.firstElementChild;S instanceof HTMLCanvasElement&&(T=S.getContext("2d"))}if(T&&T.canvas.style.transform===x?(this.container=m,this.context=T,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){C=document.createElement("div"),C.className=v;var w=C.style;w.position="absolute",w.width="100%",w.height="100%",T=Zf();var S=T.canvas;C.appendChild(S),w=S.style,w.position="absolute",w.left="0",w.transformOrigin="top left",this.container=C,this.context=T}!this.containerReused&&y&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=y)},f.prototype.clipUnrotated=function(m,x,y){var v=jb(y),C=sK(y),T=aK(y),S=oK(y);Of(x.coordinateToPixelTransform,v),Of(x.coordinateToPixelTransform,C),Of(x.coordinateToPixelTransform,T),Of(x.coordinateToPixelTransform,S);var w=this.inversePixelTransform;Of(w,v),Of(w,C),Of(w,T),Of(w,S),m.save(),m.beginPath(),m.moveTo(Math.round(v[0]),Math.round(v[1])),m.lineTo(Math.round(C[0]),Math.round(C[1])),m.lineTo(Math.round(T[0]),Math.round(T[1])),m.lineTo(Math.round(S[0]),Math.round(S[1])),m.clip()},f.prototype.dispatchRenderEvent_=function(m,x,y){var v=this.getLayer();if(v.hasListener(m)){var C=new pSt(m,this.inversePixelTransform,y,x);v.dispatchEvent(C)}},f.prototype.preRender=function(m,x){this.frameState=x,this.dispatchRenderEvent_(kee.PRERENDER,m,x)},f.prototype.postRender=function(m,x){this.dispatchRenderEvent_(kee.POSTRENDER,m,x)},f.prototype.getRenderTransform=function(m,x,y,v,C,T,S){var w=C/2,E=T/2,L=v/x,I=-L,R=-m[0]+S,P=-m[1];return d2(this.tempTransform,w,E,L,I,-y,R,P)},f.prototype.getDataAtPixel=function(m,x,y){var v=Of(this.inversePixelTransform,m.slice()),C=this.context,T=this.getLayer(),S=T.getExtent();if(S){var w=Of(x.pixelToCoordinateTransform,m.slice());if(!IR(S,w))return null}var E=Math.round(v[0]),L=Math.round(v[1]),I=this.pixelContext_;if(!I){var R=document.createElement("canvas");R.width=1,R.height=1,I=R.getContext("2d"),this.pixelContext_=I}I.clearRect(0,0,1,1);var P;try{I.drawImage(C.canvas,E,L,1,1,0,0,1,1),P=I.getImageData(0,0,1,1).data}catch(A){return A.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),fSt=Vor;we();we();we();var Gor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),For=function(o){Gor(f,o);function f(m,x,y,v){var C=o.call(this)||this;return C.extent=m,C.pixelRatio_=y,C.resolution=x,C.state=v,C}return f.prototype.changed=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.getExtent=function(){return this.extent},f.prototype.getImage=function(){return Us()},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(){Us()},f}(PR),mSt=For;var Dor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),YDr=function(o){Dor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,y,bh.IDLE)||this;return S.src_=v,S.image_=new Image,C!==null&&(S.image_.crossOrigin=C),S.unlisten_=null,S.state=bh.IDLE,S.imageLoadFunction_=T,S}return f.prototype.getImage=function(){return this.image_},f.prototype.handleImageError_=function(){this.state=bh.ERROR,this.unlistenImage_(),this.changed()},f.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=Fy(this.extent)/this.image_.height),this.state=bh.LOADED,this.unlistenImage_(),this.changed()},f.prototype.load=function(){(this.state==bh.IDLE||this.state==bh.ERROR)&&(this.state=bh.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Hee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.setImage=function(m){this.image_=m,this.resolution=Fy(this.extent)/this.image_.height},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(mSt);function Hee(o,f,m){var x=o,y=!0,v=!1,C=!1,T=[lK(x,wd.LOAD,function(){C=!0,v||f()})];return x.src&&$1t?(v=!0,x.decode().then(function(){y&&f()}).catch(function(S){y&&(C?f():m())})):T.push(lK(x,wd.ERROR,m)),function(){y=!1,T.forEach(Dy)}}var Nor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Wor=function(o){Nor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,T)||this;return S.crossOrigin_=v,S.src_=y,S.key=y,S.image_=new Image,v!==null&&(S.image_.crossOrigin=v),S.unlisten_=null,S.tileLoadFunction_=C,S}return f.prototype.getImage=function(){return this.image_},f.prototype.setImage=function(m){this.image_=m,this.state=Qo.LOADED,this.unlistenImage_(),this.changed()},f.prototype.handleImageError_=function(){this.state=Qo.ERROR,this.unlistenImage_(),this.image_=Zor(),this.changed()},f.prototype.handleImageLoad_=function(){var m=this.image_;m.naturalWidth&&m.naturalHeight?this.state=Qo.LOADED:this.state=Qo.EMPTY,this.unlistenImage_(),this.changed()},f.prototype.load=function(){this.state==Qo.ERROR&&(this.state=Qo.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Qo.IDLE&&(this.state=Qo.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Hee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(ZD);function Zor(){var o=Zf(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var xSt=Wor;we();we();var gSt=.5;we();var Oor=10,ySt=.25,Xor=function(){function o(f,m,x,y,v,C){this.sourceProj_=f,this.targetProj_=m;var T={},S=pX(this.targetProj_,this.sourceProj_);this.transformInv_=function(D){var N=D[0]+"/"+D[1];return T[N]||(T[N]=S(D)),T[N]},this.maxSourceExtent_=y,this.errorThresholdSquared_=v*v,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!y&&!!this.sourceProj_.getExtent()&&af(y)==af(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?af(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?af(this.targetProj_.getExtent()):null;var w=jb(x),E=sK(x),L=aK(x),I=oK(x),R=this.transformInv_(w),P=this.transformInv_(E),A=this.transformInv_(L),M=this.transformInv_(I),V=Oor+(C?Math.max(0,Math.ceil(d1t(Tee(x)/(C*C*256*256)))):0);if(this.addQuad_(w,E,L,I,R,P,A,M,V),this.wrapsXInSource_){var G=1/0;this.triangles_.forEach(function(D,N,k){G=Math.min(G,D.source[0][0],D.source[1][0],D.source[2][0])}),this.triangles_.forEach(function(D){if(Math.max(D.source[0][0],D.source[1][0],D.source[2][0])-G>this.sourceWorldWidth_/2){var N=[[D.source[0][0],D.source[0][1]],[D.source[1][0],D.source[1][1]],[D.source[2][0],D.source[2][1]]];N[0][0]-G>this.sourceWorldWidth_/2&&(N[0][0]-=this.sourceWorldWidth_),N[1][0]-G>this.sourceWorldWidth_/2&&(N[1][0]-=this.sourceWorldWidth_),N[2][0]-G>this.sourceWorldWidth_/2&&(N[2][0]-=this.sourceWorldWidth_);var k=Math.min(N[0][0],N[1][0],N[2][0]),U=Math.max(N[0][0],N[1][0],N[2][0]);U-k<this.sourceWorldWidth_/2&&(D.source=N)}}.bind(this))}T={}}return o.prototype.addTriangle_=function(f,m,x,y,v,C){this.triangles_.push({source:[y,v,C],target:[f,m,x]})},o.prototype.addQuad_=function(f,m,x,y,v,C,T,S,w){var E=bee([v,C,T,S]),L=this.sourceWorldWidth_?af(E)/this.sourceWorldWidth_:null,I=this.sourceWorldWidth_,R=this.sourceProj_.canWrapX()&&L>.5&&L<1,P=!1;if(w>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var A=bee([f,m,x,y]),M=af(A)/this.targetWorldWidth_;P=M>ySt||P}!R&&this.sourceProj_.isGlobal()&&L&&(P=L>ySt||P)}if(!(!P&&this.maxSourceExtent_&&isFinite(E[0])&&isFinite(E[1])&&isFinite(E[2])&&isFinite(E[3])&&!Ed(E,this.maxSourceExtent_))){var V=0;if(!P&&(!isFinite(v[0])||!isFinite(v[1])||!isFinite(C[0])||!isFinite(C[1])||!isFinite(T[0])||!isFinite(T[1])||!isFinite(S[0])||!isFinite(S[1]))){if(w>0)P=!0;else if(V=(!isFinite(v[0])||!isFinite(v[1])?8:0)+(!isFinite(C[0])||!isFinite(C[1])?4:0)+(!isFinite(T[0])||!isFinite(T[1])?2:0)+(!isFinite(S[0])||!isFinite(S[1])?1:0),V!=1&&V!=2&&V!=4&&V!=8)return}if(w>0){if(!P){var G=[(f[0]+x[0])/2,(f[1]+x[1])/2],D=this.transformInv_(G),N=void 0;if(R){var k=(iK(v[0],I)+iK(T[0],I))/2;N=k-iK(D[0],I)}else N=(v[0]+T[0])/2-D[0];var U=(v[1]+T[1])/2-D[1],B=N*N+U*U;P=B>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],J=this.transformInv_(Y),K=[(y[0]+f[0])/2,(y[1]+f[1])/2],z=this.transformInv_(K);this.addQuad_(f,m,Y,K,v,C,J,z,w-1),this.addQuad_(K,Y,x,y,z,J,T,S,w-1)}else{var j=[(f[0]+m[0])/2,(f[1]+m[1])/2],q=this.transformInv_(j),O=[(x[0]+y[0])/2,(x[1]+y[1])/2],te=this.transformInv_(O);this.addQuad_(f,j,O,y,v,q,te,S,w-1),this.addQuad_(j,m,x,O,q,C,T,te,w-1)}return}}if(R){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(V&11)==0&&this.addTriangle_(f,x,y,v,T,S),(V&14)==0&&this.addTriangle_(f,x,m,v,T,C),V&&((V&13)==0&&this.addTriangle_(m,y,f,C,S,v),(V&7)==0&&this.addTriangle_(m,y,x,C,S,T))}},o.prototype.calculateSourceExtent=function(){var f=Zg();return this.triangles_.forEach(function(m,x,y){var v=m.source;hX(f,v[0]),hX(f,v[1]),hX(f,v[2])}),f},o.prototype.getTriangles=function(){return this.triangles_},o}(),_St=Xor;we();we();var zee={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},vSt={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0};var UOe,HOe=[];function bSt(o,f,m,x,y){o.beginPath(),o.moveTo(0,0),o.lineTo(f,m),o.lineTo(x,y),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(f,x)+1,Math.max(m,y)),o.restore()}function BOe(o,f){return Math.abs(o[f*4]-210)>2||Math.abs(o[f*4+3]-.75*255)>2}function kor(){if(UOe===void 0){var o=document.createElement("canvas").getContext("2d");o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",bSt(o,4,5,4,0),bSt(o,4,5,0,5);var f=o.getImageData(0,0,3,3).data;UOe=BOe(f,0)||BOe(f,4)||BOe(f,8)}return UOe}function CSt(o,f,m,x){var y=lme(m,f,o),v=hOe(f,x,m),C=f.getMetersPerUnit();C!==void 0&&(v*=C);var T=o.getMetersPerUnit();T!==void 0&&(v/=T);var S=o.getExtent();if(!S||IR(S,y)){var w=hOe(o,v,y)/v;isFinite(w)&&w>0&&(v/=w)}return v}function TSt(o,f,m,x){var y=KV(m),v=CSt(o,f,y,x);return(!isFinite(v)||v<=0)&&eme(m,function(C){return v=CSt(o,f,C,x),isFinite(v)&&v>0}),v}function SSt(o,f,m,x,y,v,C,T,S,w,E,L){var I=Zf(Math.round(m*o),Math.round(m*f),HOe);if(L||ox(I,zee),S.length===0)return I.canvas;I.scale(m,m);function R(N){return Math.round(N*m)/m}I.globalCompositeOperation="lighter";var P=Zg();S.forEach(function(N,k,U){g1t(P,N.extent)});var A=af(P),M=Fy(P),V=Zf(Math.round(m*A/x),Math.round(m*M/x));L||ox(V,zee);var G=m/x;S.forEach(function(N,k,U){var B=N.extent[0]-P[0],Y=-(N.extent[3]-P[3]),J=af(N.extent),K=Fy(N.extent);N.image.width>0&&N.image.height>0&&V.drawImage(N.image,w,w,N.image.width-2*w,N.image.height-2*w,B*G,Y*G,J*G,K*G)});var D=jb(C);return T.getTriangles().forEach(function(N,k,U){var B=N.source,Y=N.target,J=B[0][0],K=B[0][1],z=B[1][0],j=B[1][1],q=B[2][0],O=B[2][1],te=R((Y[0][0]-D[0])/v),ie=R(-(Y[0][1]-D[1])/v),re=R((Y[1][0]-D[0])/v),ee=R(-(Y[1][1]-D[1])/v),ae=R((Y[2][0]-D[0])/v),oe=R(-(Y[2][1]-D[1])/v),ce=J,pe=K;J=0,K=0,z-=ce,j-=pe,q-=ce,O-=pe;var ue=[[z,j,0,0,re-te],[q,O,0,0,ae-te],[0,0,z,j,ee-ie],[0,0,q,O,oe-ie]],he=f1t(ue);if(!!he){if(I.save(),I.beginPath(),kor()||!L){I.moveTo(re,ee);for(var fe=4,de=te-re,Ce=ie-ee,Se=0;Se<fe;Se++)I.lineTo(re+R((Se+1)*de/fe),ee+R(Se*Ce/(fe-1))),Se!=fe-1&&I.lineTo(re+R((Se+1)*de/fe),ee+R((Se+1)*Ce/(fe-1)));I.lineTo(ae,oe)}else I.moveTo(re,ee),I.lineTo(te,ie),I.lineTo(ae,oe);I.clip(),I.transform(he[0],he[2],he[1],he[3],te,ie),I.translate(P[0]-ce,P[3]-pe),I.scale(x/m,-x/m),I.drawImage(V.canvas,0,0),I.restore()}}),E&&(I.save(),I.globalCompositeOperation="source-over",I.strokeStyle="black",I.lineWidth=1,T.getTriangles().forEach(function(N,k,U){var B=N.target,Y=(B[0][0]-D[0])/v,J=-(B[0][1]-D[1])/v,K=(B[1][0]-D[0])/v,z=-(B[1][1]-D[1])/v,j=(B[2][0]-D[0])/v,q=-(B[2][1]-D[1])/v;I.beginPath(),I.moveTo(K,z),I.lineTo(Y,J),I.lineTo(j,q),I.closePath(),I.stroke()}),I.restore()),I.canvas}var Uor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Bor=function(o){Uor(f,o);function f(m,x,y,v,C,T,S,w,E,L,I,R){var P=o.call(this,C,Qo.IDLE,{interpolate:!!R})||this;P.renderEdges_=I!==void 0?I:!1,P.pixelRatio_=S,P.gutter_=w,P.canvas_=null,P.sourceTileGrid_=x,P.targetTileGrid_=v,P.wrappedTileCoord_=T||C,P.sourceTiles_=[],P.sourcesListenerKeys_=null,P.sourceZ_=0;var A=v.getTileCoordExtent(P.wrappedTileCoord_),M=P.targetTileGrid_.getExtent(),V=P.sourceTileGrid_.getExtent(),G=M?RR(A,M):A;if(Tee(G)===0)return P.state=Qo.EMPTY,P;var D=m.getExtent();D&&(V?V=RR(V,D):V=D);var N=v.getResolution(P.wrappedTileCoord_[0]),k=TSt(m,y,G,N);if(!isFinite(k)||k<=0)return P.state=Qo.EMPTY,P;var U=L!==void 0?L:gSt;if(P.triangulation_=new _St(m,y,G,V,k*U,N),P.triangulation_.getTriangles().length===0)return P.state=Qo.EMPTY,P;P.sourceZ_=x.getZForResolution(k);var B=P.triangulation_.calculateSourceExtent();if(V&&(m.canWrapX()?(B[1]=Vv(B[1],V[1],V[3]),B[3]=Vv(B[3],V[1],V[3])):B=RR(B,V)),!Tee(B))P.state=Qo.EMPTY;else{for(var Y=x.getTileRangeForExtentAndZ(B,P.sourceZ_),J=Y.minX;J<=Y.maxX;J++)for(var K=Y.minY;K<=Y.maxY;K++){var z=E(P.sourceZ_,J,K,S);z&&P.sourceTiles_.push(z)}P.sourceTiles_.length===0&&(P.state=Qo.EMPTY)}return P}return f.prototype.getImage=function(){return this.canvas_},f.prototype.reproject_=function(){var m=[];if(this.sourceTiles_.forEach(function(E,L,I){E&&E.getState()==Qo.LOADED&&m.push({extent:this.sourceTileGrid_.getTileCoordExtent(E.tileCoord),image:E.getImage()})}.bind(this)),this.sourceTiles_.length=0,m.length===0)this.state=Qo.ERROR;else{var x=this.wrappedTileCoord_[0],y=this.targetTileGrid_.getTileSize(x),v=typeof y=="number"?y:y[0],C=typeof y=="number"?y:y[1],T=this.targetTileGrid_.getResolution(x),S=this.sourceTileGrid_.getResolution(this.sourceZ_),w=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=SSt(v,C,this.pixelRatio_,S,this.sourceTileGrid_.getExtent(),T,w,this.triangulation_,m,this.gutter_,this.renderEdges_,this.interpolate),this.state=Qo.LOADED}this.changed()},f.prototype.load=function(){if(this.state==Qo.IDLE){this.state=Qo.LOADING,this.changed();var m=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();if(C==Qo.IDLE||C==Qo.LOADING){m++;var T=Gv(x,wd.CHANGE,function(S){var w=x.getState();(w==Qo.LOADED||w==Qo.ERROR||w==Qo.EMPTY)&&(Dy(T),m--,m===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(T)}}.bind(this)),m===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();C==Qo.IDLE&&x.load()})}},f.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Dy),this.sourcesListenerKeys_=null},f.prototype.release=function(){this.canvas_&&(dme(this.canvas_.getContext("2d")),HOe.push(this.canvas_),this.canvas_=null),o.prototype.release.call(this)},f}(ZD),wSt=Bor;var Hor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),zor=function(o){Hor(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=Zg(),x.tmpTileRange_=new Yfe(0,0,0,0),x}return f.prototype.isDrawableTile=function(m){var x=this.getLayer(),y=m.getState(),v=x.getUseInterimTilesOnError();return y==Qo.LOADED||y==Qo.EMPTY||y==Qo.ERROR&&!v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState.projection,S=this.getLayer(),w=S.getSource(),E=w.getTile(m,x,y,C,T);return E.getState()==Qo.ERROR&&(S.getUseInterimTilesOnError()?S.getPreload()>0&&(this.newTiles_=!0):E.setState(Qo.LOADED)),this.isDrawableTile(E)||(E=E.getInterimTile()),E},f.prototype.getData=function(m){var x=this.frameState;if(!x)return null;var y=this.getLayer(),v=Of(x.pixelToCoordinateTransform,m.slice()),C=y.getExtent();if(C&&!IR(C,v))return null;for(var T=x.pixelRatio,S=x.viewState.projection,w=x.viewState,E=y.getRenderSource(),L=E.getTileGridForProjection(w.projection),I=E.getTilePixelRatio(x.pixelRatio),R=L.getZForResolution(w.resolution);R>=L.getMinZoom();--R){var P=L.getTileCoordForCoordAndZ(v,R),A=E.getTile(R,P[1],P[2],T,S);if(!(A instanceof xSt||A instanceof wSt))return null;if(A.getState()===Qo.LOADED){var M=L.getOrigin(R),V=sf(L.getTileSize(R)),G=L.getResolution(R),D=Math.floor(I*((v[0]-M[0])/G-P[1]*V[0])),N=Math.floor(I*((M[1]-v[1])/G-P[2]*V[1])),k=Math.round(I*E.getGutterForProjection(w.projection));return this.getImageData(A.getImage(),D+k,N+k)}}return null},f.prototype.loadedTileCallback=function(m,x,y){return this.isDrawableTile(y)?o.prototype.loadedTileCallback.call(this,m,x,y):!1},f.prototype.prepareFrame=function(m){return!!this.getLayer().getSource()},f.prototype.renderFrame=function(m,x){var y=m.layerStatesArray[m.layerIndex],v=m.viewState,C=v.projection,T=v.resolution,S=v.center,w=v.rotation,E=m.pixelRatio,L=this.getLayer(),I=L.getSource(),R=I.getRevision(),P=I.getTileGridForProjection(C),A=P.getZForResolution(T,I.zDirection),M=P.getResolution(A),V=m.extent,G=m.viewState.resolution,D=I.getTilePixelRatio(E),N=Math.round(af(V)/G*E),k=Math.round(Fy(V)/G*E),U=y.extent&&ume(y.extent,C);U&&(V=RR(V,ume(y.extent,C)));var B=M*N/2/D,Y=M*k/2/D,J=[S[0]-B,S[1]-Y,S[0]+B,S[1]+Y],K=P.getTileRangeForExtentAndZ(V,A),z={};z[A]={};var j=this.createLoadedTileFinder(I,C,z),q=this.tmpExtent,O=this.tmpTileRange_;this.newTiles_=!1;for(var te=w?rOe(v.center,G,w,m.size):void 0,ie=K.minX;ie<=K.maxX;++ie)for(var re=K.minY;re<=K.maxY;++re)if(!(w&&!P.tileCoordIntersectsViewport([A,ie,re],te))){var ee=this.getTile(A,ie,re,m);if(this.isDrawableTile(ee)){var ae=mu(this);if(ee.getState()==Qo.LOADED){z[A][ee.tileCoord.toString()]=ee;var oe=ee.inTransition(ae);oe&&y.opacity!==1&&(ee.endTransition(ae),oe=!1),!this.newTiles_&&(oe||this.renderedTiles.indexOf(ee)===-1)&&(this.newTiles_=!0)}if(ee.getAlpha(ae,m.time)===1)continue}var ce=P.getTileCoordChildTileRange(ee.tileCoord,O,q),pe=!1;ce&&(pe=j(A+1,ce)),pe||P.forEachTileCoordParentTileRange(ee.tileCoord,j,O,q)}var ue=M/T*E/D;d2(this.pixelTransform,m.size[0]/2,m.size[1]/2,1/E,1/E,w,-N/2,-k/2);var he=cTt(this.pixelTransform);this.useContainer(x,he,this.getBackground(m));var fe=this.context,de=fe.canvas;uTt(this.inversePixelTransform,this.pixelTransform),d2(this.tempTransform,N/2,k/2,ue,ue,0,-N/2,-k/2),de.width!=N||de.height!=k?(de.width=N,de.height=k):this.containerReused||fe.clearRect(0,0,N,k),U&&this.clipUnrotated(fe,m,U),I.getInterpolate()||ox(fe,zee),this.preRender(fe,m),this.renderedTiles.length=0;var Ce=Object.keys(z).map(Number);Ce.sort(DL);var Se,Le,Ve;y.opacity===1&&(!this.containerReused||I.getOpaque(m.viewState.projection))?Ce=Ce.reverse():(Se=[],Le=[]);for(var Oe=Ce.length-1;Oe>=0;--Oe){var $e=Ce[Oe],at=I.getTilePixelSize($e,E,C),dt=P.getResolution($e),gt=dt/M,Et=at[0]*gt*ue,et=at[1]*gt*ue,yt=P.getTileCoordForCoordAndZ(jb(J),$e),Rt=P.getTileCoordExtent(yt),Vt=Of(this.tempTransform,[D*(Rt[0]-J[0])/M,D*(J[3]-Rt[3])/M]),_t=D*I.getGutterForProjection(C),se=z[$e];for(var ve in se){var ee=se[ve],je=ee.tileCoord,Ft=yt[1]-je[1],kt=Math.round(Vt[0]-(Ft-1)*Et),bt=yt[2]-je[2],lt=Math.round(Vt[1]-(bt-1)*et),ie=Math.round(Vt[0]-Ft*Et),re=Math.round(Vt[1]-bt*et),ot=kt-ie,tt=lt-re,ze=A===$e,oe=ze&&ee.getAlpha(mu(this),m.time)!==1,ct=!1;if(!oe)if(Se){Ve=[ie,re,ie+ot,re,ie+ot,re+tt,ie,re+tt];for(var Wt=0,Tt=Se.length;Wt<Tt;++Wt)if(A!==$e&&$e<Le[Wt]){var Ht=Se[Wt];Ed([ie,re,ie+ot,re+tt],[Ht[0],Ht[3],Ht[4],Ht[7]])&&(ct||(fe.save(),ct=!0),fe.beginPath(),fe.moveTo(Ve[0],Ve[1]),fe.lineTo(Ve[2],Ve[3]),fe.lineTo(Ve[4],Ve[5]),fe.lineTo(Ve[6],Ve[7]),fe.moveTo(Ht[6],Ht[7]),fe.lineTo(Ht[4],Ht[5]),fe.lineTo(Ht[2],Ht[3]),fe.lineTo(Ht[0],Ht[1]),fe.clip())}Se.push(Ve),Le.push($e)}else fe.clearRect(ie,re,ot,tt);this.drawTileImage(ee,m,ie,re,ot,tt,_t,ze),Se&&!oe?(ct&&fe.restore(),this.renderedTiles.unshift(ee)):this.renderedTiles.push(ee),this.updateUsedTiles(m.usedTiles,I,ee)}}return this.renderedRevision=R,this.renderedResolution=M,this.extentChanged=!this.renderedExtent_||!XD(this.renderedExtent_,J),this.renderedExtent_=J,this.renderedPixelRatio=E,this.renderedProjection=C,this.manageTilePyramid(m,I,P,E,C,V,A,L.getPreload()),this.scheduleExpireCache(m,I),this.postRender(fe,m),y.extent&&fe.restore(),ox(fe,vSt),he!==de.style.transform&&(de.style.transform=he),this.container},f.prototype.drawTileImage=function(m,x,y,v,C,T,S,w){var E=this.getTileImage(m);if(!!E){var L=mu(this),I=x.layerStatesArray[x.layerIndex],R=I.opacity*(w?m.getAlpha(L,x.time):1),P=R!==this.context.globalAlpha;P&&(this.context.save(),this.context.globalAlpha=R),this.context.drawImage(E,S,S,E.width-2*S,E.height-2*S,y,v,C,T),P&&this.context.restore(),R!==I.opacity?x.animate=!0:w&&m.endTransition(L)}},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 y=function(v,C,T){var S=mu(v);S in T.usedTiles&&v.expireCache(T.viewState.projection,T.usedTiles[S])}.bind(null,x);m.postRenderFunctions.push(y)}},f.prototype.updateUsedTiles=function(m,x,y){var v=mu(x);v in m||(m[v]={}),m[v][y.getKey()]=!0},f.prototype.manageTilePyramid=function(m,x,y,v,C,T,S,w,E){var L=mu(x);L in m.wantedTiles||(m.wantedTiles[L]={});var I=m.wantedTiles[L],R=m.tileQueue,P=y.getMinZoom(),A=m.viewState.rotation,M=A?rOe(m.viewState.center,m.viewState.resolution,A,m.size):void 0,V=0,G,D,N,k,U,B;for(B=P;B<=S;++B)for(D=y.getTileRangeForExtentAndZ(T,B,D),N=y.getResolution(B),k=D.minX;k<=D.maxX;++k)for(U=D.minY;U<=D.maxY;++U)A&&!y.tileCoordIntersectsViewport([B,k,U],M)||(S-B<=w?(++V,G=x.getTile(B,k,U,v,C),G.getState()==Qo.IDLE&&(I[G.getKey()]=!0,R.isKeyQueued(G.getKey())||R.enqueue([G,L,y.getTileCoordCenter(G.tileCoord),N])),E!==void 0&&E(G)):x.useTile(B,k,U,C));x.updateCacheSize(V,C)},f}(fSt),ESt=zor;we();var FR={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};we();var bX={ANIMATING:0,INTERACTING:1};we();we();var Yor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Kor=function(o){Yor(f,o);function f(m,x,y,v,C,T,S){var w=o.call(this)||this;return w.context_=m,w.pixelRatio_=x,w.extent_=y,w.transform_=v,w.viewRotation_=C,w.squaredTolerance_=T,w.userTransform_=S,w.contextFillState_=null,w.contextStrokeState_=null,w.contextTextState_=null,w.fillState_=null,w.strokeState_=null,w.image_=null,w.imageAnchorX_=0,w.imageAnchorY_=0,w.imageHeight_=0,w.imageOpacity_=0,w.imageOriginX_=0,w.imageOriginY_=0,w.imageRotateWithView_=!1,w.imageRotation_=0,w.imageScale_=[0,0],w.imageWidth_=0,w.text_="",w.textOffsetX_=0,w.textOffsetY_=0,w.textRotateWithView_=!1,w.textRotation_=0,w.textScale_=[0,0],w.textFillState_=null,w.textStrokeState_=null,w.textState_=null,w.pixelCoordinates_=[],w.tmpLocalTransform_=Ny(),w}return f.prototype.drawImages_=function(m,x,y,v){if(!!this.image_){var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.tmpLocalTransform_,w=T.globalAlpha;this.imageOpacity_!=1&&(T.globalAlpha=w*this.imageOpacity_);var E=this.imageRotation_;this.imageRotateWithView_&&(E+=this.viewRotation_);for(var L=0,I=C.length;L<I;L+=2){var R=C[L]-this.imageAnchorX_,P=C[L+1]-this.imageAnchorY_;if(E!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){var A=R+this.imageAnchorX_,M=P+this.imageAnchorY_;d2(S,A,M,1,1,E,-A,-M),T.setTransform.apply(T,S),T.translate(A,M),T.scale(this.imageScale_[0],this.imageScale_[1]),T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),T.setTransform(1,0,0,1,0,0)}else T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,R,P,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(T.globalAlpha=w)}},f.prototype.drawText_=function(m,x,y,v){if(!(!this.textState_||this.text_==="")){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.textRotation_;for(this.textRotateWithView_&&(S+=this.viewRotation_);x<y;x+=v){var w=C[x]+this.textOffsetX_,E=C[x+1]+this.textOffsetY_;if(S!==0||this.textScale_[0]!=1||this.textScale_[1]!=1){var L=d2(this.tmpLocalTransform_,w,E,1,1,S,-w,-E);T.setTransform.apply(T,L),T.translate(w,E),T.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&T.strokeText(this.text_,0,0),this.textFillState_&&T.fillText(this.text_,0,0),T.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&T.strokeText(this.text_,w,E),this.textFillState_&&T.fillText(this.text_,w,E)}}},f.prototype.moveToLineTo_=function(m,x,y,v,C){var T=this.context_,S=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_);T.moveTo(S[0],S[1]);var w=S.length;C&&(w-=2);for(var E=2;E<w;E+=2)T.lineTo(S[E],S[E+1]);return C&&T.closePath(),y},f.prototype.drawRings_=function(m,x,y,v){for(var C=0,T=y.length;C<T;++C)x=this.moveToLineTo_(m,x,y[C],v,!0);return x},f.prototype.drawCircle=function(m){if(!!Ed(this.extent_,m.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=xTt(m,this.transform_,this.pixelCoordinates_),y=x[2]-x[0],v=x[3]-x[1],C=Math.sqrt(y*y+v*v),T=this.context_;T.beginPath(),T.arc(x[0],x[1],C,0,2*Math.PI),this.fillState_&&T.fill(),this.strokeState_&&T.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 y=x.getGeometryFunction()(m);!y||!Ed(this.extent_,y.getExtent())||(this.setStyle(x),this.drawGeometry(y))},f.prototype.drawGeometryCollection=function(m){for(var x=m.getGeometriesArray(),y=0,v=x.length;y<v;++y)this.drawGeometry(x[y])},f.prototype.drawPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawMultiPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawLineString=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var x=this.context_,y=m.getFlatCoordinates();x.beginPath(),this.moveToLineTo_(y,0,y.length,m.getStride(),!1),x.stroke()}if(this.text_!==""){var v=m.getFlatMidpoint();this.drawText_(v,0,2,2)}}},f.prototype.drawMultiLineString=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getExtent();if(!!Ed(this.extent_,x)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var y=this.context_,v=m.getFlatCoordinates(),C=0,T=m.getEnds(),S=m.getStride();y.beginPath();for(var w=0,E=T.length;w<E;++w)C=this.moveToLineTo_(v,C,T[w],S,!1);y.stroke()}if(this.text_!==""){var L=m.getFlatMidpoints();this.drawText_(L,0,L.length,2)}}},f.prototype.drawPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(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 y=m.getFlatInteriorPoint();this.drawText_(y,0,2,2)}}},f.prototype.drawMultiPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(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_,y=m.getOrientedFlatCoordinates(),v=0,C=m.getEndss(),T=m.getStride();x.beginPath();for(var S=0,w=C.length;S<w;++S){var E=C[S];v=this.drawRings_(y,v,E,T)}this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var L=m.getFlatInteriorPoints();this.drawText_(L,0,L.length,2)}}},f.prototype.setContextFillState_=function(m){var x=this.context_,y=this.contextFillState_;y?y.fillStyle!=m.fillStyle&&(y.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_,y=this.contextStrokeState_;y?(y.lineCap!=m.lineCap&&(y.lineCap=m.lineCap,x.lineCap=m.lineCap),x.setLineDash&&(LR(y.lineDash,m.lineDash)||x.setLineDash(y.lineDash=m.lineDash),y.lineDashOffset!=m.lineDashOffset&&(y.lineDashOffset=m.lineDashOffset,x.lineDashOffset=m.lineDashOffset)),y.lineJoin!=m.lineJoin&&(y.lineJoin=m.lineJoin,x.lineJoin=m.lineJoin),y.lineWidth!=m.lineWidth&&(y.lineWidth=m.lineWidth,x.lineWidth=m.lineWidth),y.miterLimit!=m.miterLimit&&(y.miterLimit=m.miterLimit,x.miterLimit=m.miterLimit),y.strokeStyle!=m.strokeStyle&&(y.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_,y=this.contextTextState_,v=m.textAlign?m.textAlign:QD;y?(y.font!=m.font&&(y.font=m.font,x.font=m.font),y.textAlign!=v&&(y.textAlign=v,x.textAlign=v),y.textBaseline!=m.textBaseline&&(y.textBaseline=m.textBaseline,x.textBaseline=m.textBaseline)):(x.font=m.font,x.textAlign=v,x.textBaseline=m.textBaseline,this.contextTextState_={font:m.font,textAlign:v,textBaseline:m.textBaseline})},f.prototype.setFillStrokeStyle=function(m,x){var y=this;if(!m)this.fillState_=null;else{var v=m.getColor();this.fillState_={fillStyle:$b(v||eC)}}if(!x)this.strokeState_=null;else{var C=x.getColor(),T=x.getLineCap(),S=x.getLineDash(),w=x.getLineDashOffset(),E=x.getLineJoin(),L=x.getWidth(),I=x.getMiterLimit(),R=S||jV;this.strokeState_={lineCap:T!==void 0?T:yX,lineDash:this.pixelRatio_===1?R:R.map(function(P){return P*y.pixelRatio_}),lineDashOffset:(w||QV)*this.pixelRatio_,lineJoin:E!==void 0?E:MR,lineWidth:(L!==void 0?L:t3)*this.pixelRatio_,miterLimit:I!==void 0?I:qV,strokeStyle:$b(C||$V)}}},f.prototype.setImageStyle=function(m){var x;if(!m||!(x=m.getSize())){this.image_=null;return}var y=m.getAnchor(),v=m.getOrigin();this.image_=m.getImage(this.pixelRatio_),this.imageAnchorX_=y[0]*this.pixelRatio_,this.imageAnchorY_=y[1]*this.pixelRatio_,this.imageHeight_=x[1]*this.pixelRatio_,this.imageOpacity_=m.getOpacity(),this.imageOriginX_=v[0],this.imageOriginY_=v[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 y=x.getColor();this.textFillState_={fillStyle:$b(y||eC)}}var v=m.getStroke();if(!v)this.textStrokeState_=null;else{var C=v.getColor(),T=v.getLineCap(),S=v.getLineDash(),w=v.getLineDashOffset(),E=v.getLineJoin(),L=v.getWidth(),I=v.getMiterLimit();this.textStrokeState_={lineCap:T!==void 0?T:yX,lineDash:S||jV,lineDashOffset:w||QV,lineJoin:E!==void 0?E:MR,lineWidth:L!==void 0?L:t3,miterLimit:I!==void 0?I:qV,strokeStyle:$b(C||$V)}}var R=m.getFont(),P=m.getOffsetX(),A=m.getOffsetY(),M=m.getRotateWithView(),V=m.getRotation(),G=m.getScaleArray(),D=m.getText(),N=m.getTextAlign(),k=m.getTextBaseline();this.textState_={font:R!==void 0?R:Eme,textAlign:N!==void 0?N:QD,textBaseline:k!==void 0?k:_X},this.text_=D!==void 0?Array.isArray(D)?D.reduce(function(U,B,Y){return U+=Y%2?" ":B},""):D:"",this.textOffsetX_=P!==void 0?this.pixelRatio_*P:0,this.textOffsetY_=A!==void 0?this.pixelRatio_*A:0,this.textRotateWithView_=M!==void 0?M:!1,this.textRotation_=V!==void 0?V:0,this.textScale_=[this.pixelRatio_*G[0],this.pixelRatio_*G[1]]}},f}(Pme),LSt=Kor;we();var DR={FRACTION:"fraction",PIXELS:"pixels"};we();we();we();var J1={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};we();we();var Jor=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 y=PSt(f,m,x);return y in this.cache_?this.cache_[y]:null},o.prototype.set=function(f,m,x,y){var v=PSt(f,m,x);this.cache_[v]=y,++this.cacheSize_},o.prototype.setSize=function(f){this.maxCacheSize_=f,this.expire()},o}();function PSt(o,f,m){var x=m?Sme(m):"null";return f+":"+o+":"+x}var zOe=new Jor;var jor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Yee=null,Qor=function(o){jor(f,o);function f(m,x,y,v,C,T){var S=o.call(this)||this;return S.hitDetectionImage_=null,S.image_=m||new Image,v!==null&&(S.image_.crossOrigin=v),S.canvas_={},S.color_=T,S.unlisten_=null,S.imageState_=C,S.size_=y,S.src_=x,S.tainted_,S}return f.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===bh.LOADED){Yee||(Yee=Zf(1,1)),Yee.drawImage(this.image_,0,0);try{Yee.getImageData(0,0,1,1),this.tainted_=!1}catch{Yee=null,this.tainted_=!0}}return this.tainted_===!0},f.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.handleImageError_=function(){this.imageState_=bh.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.handleImageLoad_=function(){this.imageState_=bh.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],y=Zf(m,x);y.fillRect(0,0,m,x),this.hitDetectionImage_=y.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_==bh.IDLE){this.imageState_=bh.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=Hee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},f.prototype.replaceColor_=function(m){if(!(!this.color_||this.canvas_[m]||this.imageState_!==bh.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 y=x.getContext("2d");if(y.scale(m,m),y.drawImage(this.image_,0,0),y.globalCompositeOperation="multiply",y.globalCompositeOperation==="multiply"||this.isTainted_())y.fillStyle=Sme(this.color_),y.fillRect(0,0,x.width/m,x.height/m),y.globalCompositeOperation="destination-in",y.drawImage(this.image_,0,0);else{for(var v=y.getImageData(0,0,x.width,x.height),C=v.data,T=this.color_[0]/255,S=this.color_[1]/255,w=this.color_[2]/255,E=this.color_[3],L=0,I=C.length;L<I;L+=4)C[L]*=T,C[L+1]*=S,C[L+2]*=w,C[L+3]*=E;y.putImageData(v,0,0)}}},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(PR);function ISt(o,f,m,x,y,v){var C=zOe.get(f,x,v);return C||(C=new Qor(o,f,m,x,y,v),zOe.set(f,x,v,C)),C}var qor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),$or=function(o){qor(f,o);function f(m){var x=this,y=m||{},v=y.opacity!==void 0?y.opacity:1,C=y.rotation!==void 0?y.rotation:0,T=y.scale!==void 0?y.scale:1,S=y.rotateWithView!==void 0?y.rotateWithView:!1;x=o.call(this,{opacity:v,rotation:C,scale:T,displacement:y.displacement!==void 0?y.displacement:[0,0],rotateWithView:S,declutterMode:y.declutterMode})||this,x.anchor_=y.anchor!==void 0?y.anchor:[.5,.5],x.normalizedAnchor_=null,x.anchorOrigin_=y.anchorOrigin!==void 0?y.anchorOrigin:J1.TOP_LEFT,x.anchorXUnits_=y.anchorXUnits!==void 0?y.anchorXUnits:DR.FRACTION,x.anchorYUnits_=y.anchorYUnits!==void 0?y.anchorYUnits:DR.FRACTION,x.crossOrigin_=y.crossOrigin!==void 0?y.crossOrigin:null;var w=y.img!==void 0?y.img:null;x.imgSize_=y.imgSize;var E=y.src;Su(!(E!==void 0&&w),4),Su(!w||w&&x.imgSize_,5),(E===void 0||E.length===0)&&w&&(E=w.src||mu(w)),Su(E!==void 0&&E.length>0,6);var L=y.src!==void 0?bh.IDLE:bh.LOADED;return x.color_=y.color!==void 0?gX(y.color):null,x.iconImage_=ISt(w,E,x.imgSize_!==void 0?x.imgSize_:null,x.crossOrigin_,L,x.color_),x.offset_=y.offset!==void 0?y.offset:[0,0],x.offsetOrigin_=y.offsetOrigin!==void 0?y.offsetOrigin:J1.TOP_LEFT,x.origin_=null,x.size_=y.size!==void 0?y.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_==DR.FRACTION||this.anchorYUnits_==DR.FRACTION){if(!x)return null;m=this.anchor_.slice(),this.anchorXUnits_==DR.FRACTION&&(m[0]*=x[0]),this.anchorYUnits_==DR.FRACTION&&(m[1]*=x[1])}if(this.anchorOrigin_!=J1.TOP_LEFT){if(!x)return null;m===this.anchor_&&(m=this.anchor_.slice()),(this.anchorOrigin_==J1.TOP_RIGHT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=-m[0]+x[0]),(this.anchorOrigin_==J1.BOTTOM_LEFT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=-m[1]+x[1])}this.normalizedAnchor_=m}var y=this.getDisplacement();return[m[0]-y[0],m[1]+y[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_!=J1.TOP_LEFT){var x=this.getSize(),y=this.iconImage_.getSize();if(!x||!y)return null;m=m.slice(),(this.offsetOrigin_==J1.TOP_RIGHT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=y[0]-x[0]-m[0]),(this.offsetOrigin_==J1.BOTTOM_LEFT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=y[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(wd.CHANGE,m)},f.prototype.load=function(){this.iconImage_.load()},f.prototype.unlistenImageChange=function(m){this.iconImage_.removeEventListener(wd.CHANGE,m)},f}(Tme),YOe=$or;var o3=.5;function RSt(o,f,m,x,y,v,C){var T=o[0]*o3,S=o[1]*o3,w=Zf(T,S);w.imageSmoothingEnabled=!1;for(var E=w.canvas,L=new LSt(w,o3,y,null,C),I=m.length,R=Math.floor((256*256*256-1)/I),P={},A=1;A<=I;++A){var M=m[A-1],V=M.getStyleFunction()||x;if(!!x){var G=V(M,v);if(!!G){Array.isArray(G)||(G=[G]);for(var D=A*R,N="#"+("000000"+D.toString(16)).slice(-6),k=0,U=G.length;k<U;++k){var B=G[k],Y=B.getGeometryFunction()(M);if(!(!Y||!Ed(y,Y.getExtent()))){var J=B.clone(),K=J.getFill();K&&K.setColor(N);var z=J.getStroke();z&&(z.setColor(N),z.setLineDash(null)),J.setText(void 0);var j=B.getImage();if(j&&j.getOpacity()!==0){var q=j.getImageSize();if(!q)continue;var O=Zf(q[0],q[1],void 0,{alpha:!1}),te=O.canvas;O.fillStyle=N,O.fillRect(0,0,te.width,te.height),J.setImage(new YOe({img:te,imgSize:q,anchor:j.getAnchor(),anchorXUnits:DR.PIXELS,anchorYUnits:DR.PIXELS,offset:j.getOrigin(),opacity:1,size:j.getSize(),scale:j.getScale(),rotation:j.getRotation(),rotateWithView:j.getRotateWithView()}))}var ie=J.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,J)}}}}}for(var ee=Object.keys(P).map(Number).sort(DL),A=0,ae=ee.length;A<ae;++A){var re=P[ee[A]];for(var oe in re)for(var ce=re[oe],k=0,U=ce.length;k<U;k+=2){L.setStyle(ce[k+1]);for(var pe=0,ue=f.length;pe<ue;++pe)L.setTransform(f[pe]),L.drawGeometry(ce[k])}}return w.getImageData(0,0,E.width,E.height)}function ASt(o,f,m){var x=[];if(m){var y=Math.floor(Math.round(o[0])*o3),v=Math.floor(Math.round(o[1])*o3),C=(Vv(y,0,m.width-1)+Vv(v,0,m.height-1)*m.width)*4,T=m.data[C],S=m.data[C+1],w=m.data[C+2],E=w+256*(S+256*T),L=Math.floor((256*256*256-1)/f.length);E&&E%L===0&&x.push(f[E/L-1])}return x}we();var ear=.5,MSt={Point:lar,LineString:oar,Polygon:car,MultiPoint:uar,MultiLineString:aar,MultiPolygon:sar,GeometryCollection:nar,Circle:iar};function VSt(o,f){var m=tar(o,f);return m*m}function tar(o,f){return ear*o/f}function iar(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Circle");T.setFillStrokeStyle(v,C),T.drawCircle(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function KOe(o,f,m,x,y,v,C){var T=!1,S=m.getImage();if(S){var w=S.getImageState();w==bh.LOADED||w==bh.ERROR?S.unlistenImageChange(y):(w==bh.IDLE&&S.load(),S.listenImageChange(y),T=!0)}return rar(o,f,m,x,v,C),T}function rar(o,f,m,x,y,v){var C=m.getGeometryFunction()(f);if(!!C){var T=C.simplifyTransformed(x,y),S=m.getRenderer();if(S)GSt(o,T,m,f);else{var w=MSt[T.getType()];w(o,T,m,f,v)}}}function GSt(o,f,m,x){if(f.getType()=="GeometryCollection"){for(var y=f.getGeometries(),v=0,C=y.length;v<C;++v)GSt(o,y[v],m,x);return}var T=o.getBuilder(m.getZIndex(),"Default");T.drawCustom(f,x,m.getRenderer(),m.getHitDetectionRenderer())}function nar(o,f,m,x,y){var v=f.getGeometriesArray(),C,T;for(C=0,T=v.length;C<T;++C){var S=MSt[v[C].getType()];S(o,v[C],m,x,y)}}function oar(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function aar(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawMultiLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function sar(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(C||v){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawMultiPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function lar(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function uar(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawMultiPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawMultiPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function car(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}var har=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),dar={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},par={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},far=function(o){har(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_=Ny(),x}return f.prototype.prepareTile=function(m,x,y){var v,C=m.getState();return(C===Qo.LOADED||C===Qo.ERROR)&&(this.updateExecutorGroup_(m,x,y),this.tileImageNeedsRender_(m)&&(v=!0)),v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState,S=T.resolution,w=T.projection,E=this.getLayer(),L=E.getSource().getTile(m,x,y,C,w),I=v.viewHints,R=!(I[bX.ANIMATING]||I[bX.INTERACTING]);(R||!L.wantedResolution)&&(L.wantedResolution=S);var P=this.prepareTile(L,C,w);return P&&(R||Date.now()-v.time<8)&&E.getRenderMode()!==FR.VECTOR&&this.renderTileImage_(L,v),o.prototype.getTile.call(this,m,x,y,v)},f.prototype.isDrawableTile=function(m){var x=this.getLayer();return o.prototype.isDrawableTile.call(this,m)&&(x.getRenderMode()===FR.VECTOR?mu(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,y){var v=this.getLayer(),C=v.getRevision(),T=v.getRenderOrder()||null,S=m.wantedResolution,w=m.getReplayState(v);if(!(!w.dirty&&w.renderedResolution===S&&w.renderedRevision==C&&w.renderedRenderOrder==T)){var E=v.getSource(),L=v.getDeclutter(),I=E.getTileGrid(),R=E.getTileGridForProjection(y),P=R.getTileCoordExtent(m.wrappedTileCoord),A=E.getSourceTiles(x,y,m),M=mu(v);delete m.hitDetectionImageData[M],m.executorGroups[M]=[],L&&(m.declutterExecutorGroups[M]=[]),w.dirty=!1;for(var V=function(k,U){var B=A[k];if(B.getState()!=Qo.LOADED)return"continue";var Y=B.tileCoord,J=I.getTileCoordExtent(Y),K=RR(P,J),z=ZL(K,v.getRenderBuffer()*S,G.tmpExtent),j=XD(J,K)?null:z,q=new ZOe(0,z,S,x),O=L?new ZOe(0,K,S,x):void 0,te=VSt(S,x),ie=function(fe){var de,Ce=fe.getStyleFunction()||v.getStyleFunction();if(Ce&&(de=Ce(fe,S)),de){var Se=this.renderFeature(fe,te,de,q,O);w.dirty=w.dirty||Se}},re=B.getFeatures();T&&T!==w.renderedRenderOrder&&re.sort(T);for(var ee=0,ae=re.length;ee<ae;++ee){var oe=re[ee];(!j||Ed(j,oe.getGeometry().getExtent()))&&ie.call(G,oe)}var ce=q.finish(),pe=v.getRenderMode()!==FR.VECTOR&&L&&A.length===1?null:K,ue=new kOe(pe,S,x,E.getOverlaps(),ce,v.getRenderBuffer());if(m.executorGroups[M].push(ue),O){var he=new kOe(null,S,x,E.getOverlaps(),O.finish(),v.getRenderBuffer());m.declutterExecutorGroups[M].push(he)}},G=this,D=0,N=A.length;D<N;++D)V(D,N);w.renderedRevision=C,w.renderedRenderOrder=T,w.renderedResolution=S}},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){var T=x.viewState.resolution,S=x.viewState.rotation;y=y??0;var w=this.getLayer(),E=w.getSource(),L=E.getTileGridForProjection(x.viewState.projection),I=bee([m]);ZL(I,T*y,I);for(var R={},P=function(N,k,U){var B=N.getId();B===void 0&&(B=mu(N));var Y=R[B];if(Y){if(Y!==!0&&U<Y.distanceSq){if(U===0)return R[B]=!0,C.splice(C.lastIndexOf(Y),1),v(N,w,k);Y.geometry=k,Y.distanceSq=U}}else{if(U===0)return R[B]=!0,v(N,w,k);C.push(R[B]={feature:N,layer:w,geometry:k,distanceSq:U,callback:v})}},A=this.renderedTiles,M,V=function(N,k){var U=A[N],B=L.getTileCoordExtent(U.wrappedTileCoord);if(!Ed(B,I))return"continue";var Y=mu(w),J=[U.executorGroups[Y]],K=U.declutterExecutorGroups[Y];K&&J.push(K),J.some(function(z){for(var j=z===K?x.declutterTree.all().map(function(ie){return ie.value}):null,q=0,O=z.length;q<O;++q){var te=z[q];if(M=te.forEachFeatureAtCoordinate(m,T,S,y,P,j),M)return!0}})},G=0,D=A.length;!M&&G<D;++G)V(G,D);return M},f.prototype.getFeatures=function(m){return new Promise(function(x,y){for(var v=this.getLayer(),C=mu(v),T=v.getSource(),S=this.renderedProjection,w=S.getExtent(),E=this.renderedResolution,L=T.getTileGridForProjection(S),I=Of(this.renderedPixelToCoordinateTransform_,m.slice()),R=L.getTileCoordForCoordAndResolution(I,E),P,A=0,M=this.renderedTiles.length;A<M;++A)if(R.toString()===this.renderedTiles[A].tileCoord.toString()){if(P=this.renderedTiles[A],P.getState()===Qo.LOADED){var V=L.getTileCoordExtent(P.tileCoord);T.getWrapX()&&S.canWrapX()&&!rK(w,V)&&D1t(I,S);break}P=void 0}if(!P||P.loadingSourceTiles>0){x([]);return}var G=L.getTileCoordExtent(P.wrappedTileCoord),D=jb(G),N=[(I[0]-D[0])/E,(D[1]-I[1])/E],k=P.getSourceTiles().reduce(function(K,z){return K.concat(z.getFeatures())},[]),U=P.hitDetectionImageData[C];if(!U&&!this.animatingOrInteracting_){var B=sf(L.getTileSize(L.getZForResolution(E,T.zDirection))),Y=this.renderedRotation_,J=[this.getRenderTransform(L.getTileCoordCenter(P.wrappedTileCoord),E,0,o3,B[0]*o3,B[1]*o3,0)];U=RSt(B,J,k,v.getStyleFunction(),L.getTileCoordExtent(P.wrappedTileCoord),P.getReplayState(v).renderedResolution,Y),P.hitDetectionImageData[C]=U}x(ASt(N,k,U))}.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,y=x.globalAlpha;x.globalAlpha=this.getLayer().getOpacity();for(var v=m.viewHints,C=!(v[bX.ANIMATING]||v[bX.INTERACTING]),T=this.renderedTiles,S=0,w=T.length;S<w;++S){var E=T[S],L=E.declutterExecutorGroups[mu(this.getLayer())];if(L)for(var I=L.length-1;I>=0;--I)L[I].execute(this.context,1,this.getTileRenderTransform(E,m),m.viewState.rotation,C,void 0,m.declutterTree)}x.globalAlpha=y},f.prototype.getTileRenderTransform=function(m,x){var y=x.pixelRatio,v=x.viewState,C=v.center,T=v.resolution,S=v.rotation,w=x.size,E=Math.round(w[0]*y),L=Math.round(w[1]*y),I=this.getLayer().getSource(),R=I.getTileGridForProjection(x.viewState.projection),P=m.tileCoord,A=R.getTileCoordExtent(m.wrappedTileCoord),M=R.getTileCoordExtent(P,this.tmpExtent)[0]-A[0],V=pme(Iee(this.inversePixelTransform.slice(),1/y,1/y),this.getRenderTransform(C,T,S,y,E,L,M));return V},f.prototype.renderFrame=function(m,x){var y=m.viewHints,v=!(y[bX.ANIMATING]||y[bX.INTERACTING]);o.prototype.renderFrame.call(this,m,x),this.renderedPixelToCoordinateTransform_=m.pixelToCoordinateTransform.slice(),this.renderedRotation_=m.viewState.rotation;var C=this.getLayer(),T=C.getRenderMode(),S=this.context,w=S.globalAlpha;S.globalAlpha=C.getOpacity();for(var E=par[T],L=m.viewState,I=L.rotation,R=C.getSource(),P=R.getTileGridForProjection(L.projection),A=P.getZForResolution(L.resolution,R.zDirection),M=this.renderedTiles,V=[],G=[],D=!0,N=M.length-1;N>=0;--N){var k=M[N];D=D&&!k.getReplayState(C).dirty;var U=k.executorGroups[mu(C)].filter(function(re){return re.hasExecutors(E)});if(U.length!==0){var B=this.getTileRenderTransform(k,m),Y=k.tileCoord[0],J=!1,K=U[0].getClipCoords(B);if(K){for(var z=0,j=V.length;z<j;++z)if(A!==Y&&Y<G[z]){var q=V[z];Ed([K[0],K[3],K[4],K[7]],[q[0],q[3],q[4],q[7]])&&(J||(S.save(),J=!0),S.beginPath(),S.moveTo(K[0],K[1]),S.lineTo(K[2],K[3]),S.lineTo(K[4],K[5]),S.lineTo(K[6],K[7]),S.moveTo(q[6],q[7]),S.lineTo(q[4],q[5]),S.lineTo(q[2],q[3]),S.lineTo(q[0],q[1]),S.clip())}V.push(K),G.push(Y)}for(var O=0,te=U.length;O<te;++O){var ie=U[O];ie.execute(S,1,B,I,v,E)}J&&S.restore()}}return S.globalAlpha=w,this.ready=D,this.container},f.prototype.renderFeature=function(m,x,y,v,C){if(!y)return!1;var T=!1;if(Array.isArray(y))for(var S=0,w=y.length;S<w;++S)T=KOe(v,m,y[S],x,this.boundHandleStyleImageChange_,void 0,C)||T;else T=KOe(v,m,y,x,this.boundHandleStyleImageChange_,void 0,C);return T},f.prototype.tileImageNeedsRender_=function(m){var x=this.getLayer();if(x.getRenderMode()===FR.VECTOR)return!1;var y=m.getReplayState(x),v=x.getRevision(),C=m.wantedResolution;return y.renderedTileResolution!==C||y.renderedTileRevision!==v},f.prototype.renderTileImage_=function(m,x){var y=this.getLayer(),v=m.getReplayState(y),C=y.getRevision(),T=m.executorGroups[mu(y)];v.renderedTileRevision=C;var S=m.wrappedTileCoord,w=S[0],E=y.getSource(),L=x.pixelRatio,I=x.viewState,R=I.projection,P=E.getTileGridForProjection(R),A=P.getResolution(m.tileCoord[0]),M=x.pixelRatio/m.wantedResolution*A,V=P.getResolution(w),G=m.getContext(y);L=Math.round(Math.max(L,M/L));var D=E.getTilePixelSize(w,L,R);G.canvas.width=D[0],G.canvas.height=D[1];var N=L/M;if(N!==1){var k=mOe(this.tmpTransform_);Iee(k,N,N),G.setTransform.apply(G,k)}var U=P.getTileCoordExtent(S,this.tmpExtent),B=M/V,Y=mOe(this.tmpTransform_);Iee(Y,B,-B),lTt(Y,-U[0],-U[3]);for(var J=0,K=T.length;J<K;++J){var z=T[J];z.execute(G,N,Y,0,!0,dar[y.getRenderMode()])}v.renderedTileResolution=m.wantedResolution},f}(ESt),FSt=far;we();var Kee={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var mar=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),xar=function(o){mar(f,o);function f(m){var x=this,y=m||{},v=ox({},y);delete v.preload,delete v.useInterimTilesOnError,x=o.call(this,v)||this,x.on,x.once,x.un,y.renderMode===FR.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),y.renderMode=void 0);var C=y.renderMode||FR.HYBRID;return Su(C==FR.HYBRID||C==FR.VECTOR,28),x.renderMode_=C,x.setPreload(y.preload?y.preload:0),x.setUseInterimTilesOnError(y.useInterimTilesOnError!==void 0?y.useInterimTilesOnError:!0),x.getBackground,x.setBackground,x}return f.prototype.createRenderer=function(){return new FSt(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(Kee.PRELOAD)},f.prototype.getUseInterimTilesOnError=function(){return this.get(Kee.USE_INTERIM_TILES_ON_ERROR)},f.prototype.setPreload=function(m){this.set(Kee.PRELOAD,m)},f.prototype.setUseInterimTilesOnError=function(m){this.set(Kee.USE_INTERIM_TILES_ON_ERROR,m)},f}(rSt),DSt=xar;we();we();we();var eN={ADD:"add",REMOVE:"remove"};var WSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),NSt={LENGTH:"length"},Ime=function(o){WSt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.element=x,v.index=y,v}return f}(dw);var gar=function(o){WSt(f,o);function f(m,x){var y=o.call(this)||this;y.on,y.once,y.un;var v=x||{};if(y.unique_=!!v.unique,y.array_=m||[],y.unique_)for(var C=0,T=y.array_.length;C<T;++C)y.assertUnique_(y.array_[C],C);return y.updateLength_(),y}return f.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},f.prototype.extend=function(m){for(var x=0,y=m.length;x<y;++x)this.push(m[x]);return this},f.prototype.forEach=function(m){for(var x=this.array_,y=0,v=x.length;y<v;++y)m(x[y],y,x)},f.prototype.getArray=function(){return this.array_},f.prototype.item=function(m){return this.array_[m]},f.prototype.getLength=function(){return this.get(NSt.LENGTH)},f.prototype.insertAt=function(m,x){this.unique_&&this.assertUnique_(x),this.array_.splice(m,0,x),this.updateLength_(),this.dispatchEvent(new Ime(eN.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_,y=0,v=x.length;y<v;++y)if(x[y]===m)return this.removeAt(y)},f.prototype.removeAt=function(m){var x=this.array_[m];return this.array_.splice(m,1),this.updateLength_(),this.dispatchEvent(new Ime(eN.REMOVE,x,m)),x},f.prototype.setAt=function(m,x){var y=this.getLength();if(m<y){this.unique_&&this.assertUnique_(x,m);var v=this.array_[m];this.array_[m]=x,this.dispatchEvent(new Ime(eN.REMOVE,v,m)),this.dispatchEvent(new Ime(eN.ADD,x,m))}else{for(var C=y;C<m;++C)this.insertAt(C,void 0);this.insertAt(m,x)}},f.prototype.updateLength_=function(){this.set(NSt.LENGTH,this.array_.length)},f.prototype.assertUnique_=function(m,x){for(var y=0,v=this.array_.length;y<v;++y)if(this.array_[y]===m&&y!==x)throw new Bfe(58)},f}(mw),ZSt=gar;we();var OSt=x5(DOe(),1);var yar=function(){function o(f){this.rbush_=new OSt.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_[mu(m)]=x},o.prototype.load=function(f,m){for(var x=new Array(m.length),y=0,v=m.length;y<v;y++){var C=f[y],T=m[y],S={minX:C[0],minY:C[1],maxX:C[2],maxY:C[3],value:T};x[y]=S,this.items_[mu(T)]=S}this.rbush_.load(x)},o.prototype.remove=function(f){var m=mu(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_[mu(m)],y=[x.minX,x.minY,x.maxX,x.maxY];XD(y,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(y){return y.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,y=0,v=f.length;y<v;y++)if(x=m(f[y]),x)return x;return x},o.prototype.isEmpty=function(){return NL(this.items_)},o.prototype.clear=function(){this.rbush_.clear(),this.items_={}},o.prototype.getExtent=function(f){var m=this.rbush_.toJSON();return K1(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}(),JOe=yar;we();var yw={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};we();function XSt(o,f){return[[-1/0,-1/0,1/0,1/0]]}var kSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),tN=function(o){kSt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.feature=x,v.features=y,v}return f}(dw);var _ar=function(o){kSt(f,o);function f(m){var x=this,y=m||{};x=o.call(this,{attributions:y.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:y.wrapX!==void 0?y.wrapX:!0})||this,x.on,x.once,x.un,x.loader_=uX,x.format_=y.format,x.overlaps_=y.overlaps===void 0?!0:y.overlaps,x.url_=y.url,y.loader!==void 0?x.loader_=y.loader:x.url_!==void 0&&(Su(x.format_,7),x.loader_=fOe(x.url_,x.format_)),x.strategy_=y.strategy!==void 0?y.strategy:XSt;var v=y.useSpatialIndex!==void 0?y.useSpatialIndex:!0;x.featuresRtree_=v?new JOe:null,x.loadedExtentsRtree_=new JOe,x.loadingExtentsCount_=0,x.nullGeometryFeatures_={},x.idIndex_={},x.uidIndex_={},x.featureChangeKeys_={},x.featuresCollection_=null;var C,T;return Array.isArray(y.features)?T=y.features:y.features&&(C=y.features,T=C.getArray()),!v&&C===void 0&&(C=new ZSt(T)),T!==void 0&&x.addFeaturesInternal(T),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=mu(m);if(!this.addToIndex_(x,m)){this.featuresCollection_&&this.featuresCollection_.remove(m);return}this.setupChangeEvents_(x,m);var y=m.getGeometry();if(y){var v=y.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(v,m)}else this.nullGeometryFeatures_[x]=m;this.dispatchEvent(new tN(yw.ADDFEATURE,m))},f.prototype.setupChangeEvents_=function(m,x){this.featureChangeKeys_[m]=[Gv(x,wd.CHANGE,this.handleFeatureChange_,this),Gv(x,rme.PROPERTYCHANGE,this.handleFeatureChange_,this)]},f.prototype.addToIndex_=function(m,x){var y=!0,v=x.getId();return v!==void 0&&(v.toString()in this.idIndex_?y=!1:this.idIndex_[v.toString()]=x),y&&(Su(!(m in this.uidIndex_),30),this.uidIndex_[m]=x),y},f.prototype.addFeatures=function(m){this.addFeaturesInternal(m),this.changed()},f.prototype.addFeaturesInternal=function(m){for(var x=[],y=[],v=[],C=0,T=m.length;C<T;C++){var S=m[C],w=mu(S);this.addToIndex_(w,S)&&y.push(S)}for(var C=0,E=y.length;C<E;C++){var S=y[C],w=mu(S);this.setupChangeEvents_(w,S);var L=S.getGeometry();if(L){var I=L.getExtent();x.push(I),v.push(S)}else this.nullGeometryFeatures_[w]=S}if(this.featuresRtree_&&this.featuresRtree_.load(x,v),this.hasListener(yw.ADDFEATURE))for(var C=0,R=y.length;C<R;C++)this.dispatchEvent(new tN(yw.ADDFEATURE,y[C]))},f.prototype.bindFeaturesCollection_=function(m){var x=!1;this.addEventListener(yw.ADDFEATURE,function(y){x||(x=!0,m.push(y.feature),x=!1)}),this.addEventListener(yw.REMOVEFEATURE,function(y){x||(x=!0,m.remove(y.feature),x=!1)}),m.addEventListener(eN.ADD,function(y){x||(x=!0,this.addFeature(y.element),x=!1)}.bind(this)),m.addEventListener(eN.REMOVE,function(y){x||(x=!0,this.removeFeature(y.element),x=!1)}.bind(this)),this.featuresCollection_=m},f.prototype.clear=function(m){if(m){for(var x in this.featureChangeKeys_){var y=this.featureChangeKeys_[x];y.forEach(Dy)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var v=function(S){this.removeFeatureInternal(S)}.bind(this);this.featuresRtree_.forEach(v);for(var C in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[C])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var T=new tN(yw.CLEAR);this.dispatchEvent(T),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 y=[m[0],m[1],m[0],m[1]];return this.forEachFeatureInExtent(y,function(v){var C=v.getGeometry();if(C.intersectsCoordinate(m))return x(v)})},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(y){var v=y.getGeometry();if(v.intersectsExtent(m)){var C=x(y);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(),NL(this.nullGeometryFeatures_)||Gy(m,i1t(this.nullGeometryFeatures_))),m},f.prototype.getFeaturesAtCoordinate=function(m){var x=[];return this.forEachFeatureAtCoordinateDirect(m,function(y){x.push(y)}),x},f.prototype.getFeaturesInExtent=function(m,x){var y=this;if(this.featuresRtree_){var v=x&&x.canWrapX()&&this.getWrapX();if(!v)return this.featuresRtree_.getInExtent(m);var C=C1t(m,x);return[].concat.apply([],C.map(function(T){return y.featuresRtree_.getInExtent(T)}))}else return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},f.prototype.getClosestFeatureToCoordinate=function(m,x){var y=m[0],v=m[1],C=null,T=[NaN,NaN],S=1/0,w=[-1/0,-1/0,1/0,1/0],E=x||e1t;return this.featuresRtree_.forEachInExtent(w,function(L){if(E(L)){var I=L.getGeometry(),R=S;if(S=I.closestPointXY(y,v,T,S),S<R){C=L;var P=Math.sqrt(S);w[0]=y-P,w[1]=v-P,w[2]=y+P,w[3]=v+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,y=mu(x),v=x.getGeometry();if(!v)y in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(x),this.nullGeometryFeatures_[y]=x);else{var C=v.getExtent();y in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[y],this.featuresRtree_&&this.featuresRtree_.insert(C,x)):this.featuresRtree_&&this.featuresRtree_.update(C,x)}var T=x.getId();if(T!==void 0){var S=T.toString();this.idIndex_[S]!==x&&(this.removeFromIdIndex_(x),this.idIndex_[S]=x)}else this.removeFromIdIndex_(x),this.uidIndex_[y]=x;this.changed(),this.dispatchEvent(new tN(yw.CHANGEFEATURE,x))},f.prototype.hasFeature=function(m){var x=m.getId();return x!==void 0?x in this.idIndex_:mu(m)in this.uidIndex_},f.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&NL(this.nullGeometryFeatures_):this.featuresCollection_?this.featuresCollection_.getLength()===0:!0},f.prototype.loadFeatures=function(m,x,y){for(var v=this.loadedExtentsRtree_,C=this.strategy_(m,x,y),T=function(L,I){var R=C[L],P=v.forEachInExtent(R,function(A){return rK(A.extent,R)});P||(++S.loadingExtentsCount_,S.dispatchEvent(new tN(yw.FEATURESLOADSTART)),S.loader_.call(S,R,x,y,function(A){--this.loadingExtentsCount_,this.dispatchEvent(new tN(yw.FEATURESLOADEND,void 0,A))}.bind(S),function(){--this.loadingExtentsCount_,this.dispatchEvent(new tN(yw.FEATURESLOADERROR))}.bind(S)),v.insert(R,{extent:R.slice()}))},S=this,w=0,E=C.length;w<E;++w)T(w,E);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_,y;x.forEachInExtent(m,function(v){if(XD(v.extent,m))return y=v,!0}),y&&x.remove(y)},f.prototype.removeFeature=function(m){if(!!m){var x=mu(m);x in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[x]:this.featuresRtree_&&this.featuresRtree_.remove(m);var y=this.removeFeatureInternal(m);y&&this.changed()}},f.prototype.removeFeatureInternal=function(m){var x=mu(m),y=this.featureChangeKeys_[x];if(!!y){y.forEach(Dy),delete this.featureChangeKeys_[x];var v=m.getId();return v!==void 0&&delete this.idIndex_[v.toString()],delete this.uidIndex_[x],this.dispatchEvent(new tN(yw.REMOVEFEATURE,m)),m}},f.prototype.removeFromIdIndex_=function(m){var x=!1;for(var y in this.idIndex_)if(this.idIndex_[y]===m){delete this.idIndex_[y],x=!0;break}return x},f.prototype.setLoader=function(m){this.loader_=m},f.prototype.setUrl=function(m){Su(this.format_,7),this.url_=m,this.setLoader(fOe(m,this.format_))},f}(cme),USt=_ar;var bar={toDegrees:tOe,toFeature:DTt,transform:lme,VectorSource:USt},Rme=class extends Nf{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 LV(f);else if(m==="mapbox")x=new CO(f);else if(m==="arcgis")x=await d1.fromUrl(f.url,f);else if(m==="wms")x=new TO(f);else if(m==="multi")x=new Zz(f);else if(m==="single")x=await V1.fromUrl(f.url,f);else if(m==="tms"){let v=f.west??void 0,C=f.south??void 0,T=f.east??void 0,S=f.north??void 0;F(v)&&F(C)&&F(T)&&F(S)&&(f.rectangle=new vi(be.toRadians(v),be.toRadians(C),be.toRadians(T),be.toRadians(S))),F(f.fileExtension)&&f.fileExtension==="json"&&(f.callback=this.processGeoJson()),x=await _L.fromUrl(f.url,f)}else if(m==="baidu")x=new Wz(f);else if(m==="gaode"||m==="geovis"||m==="qqmap")x=new zb(f);else if(m==="mapworld")x=new LV(f);else if(m==="osm")x=new ME(f);else if(m==="bingmap")x=await bO.fromUrl(f.url,f);else if(m==="mvt"){if(F(f.coreMap)||(f.coreMap=this._earthCtrl.coreMap),f.mvtConfig){let v=this.getVectorTileLayer(f.mvtConfig),C=f.projection?f.projection:"EPSG:3857";f.vectorTileLayer=v,f.projection=O1t(C)}x=new Oz(f,bar)}x!==null&&(this._primitive=this._earthCtrl.imageryLayers.addImageryProvider(x,f.zIndex),this._primitive._layerIndex=f.zIndex),m==="ion"&&(this._primitive=Up.fromProviderAsync(WG.fromAssetId(f.assetId),f),this._earthCtrl.imageryLayers.add(this._primitive),this._primitive._layerIndex=f.zIndex);let y=f.groupName||this._earthCtrl.language.GROUP_NWE_IMAGERY_LAYER;f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(y,{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,y=f.fillColor?f.fillColor:"rgba(68,197,19,0.5)",v=f.strokeColor?f.strokeColor:"rgba(0,31,255,1)",C=f.strokeWidth?f.strokeWidth:1,T=f.textColor?f.textColor:"#000",S=f.textStrokeColor?f.textStrokeColor:"#ff7d00",w=f.selectColor?f.selectColor:"#ff0000",E=f.selectGe_Id?f.selectGe_Id:[],L=f.geId?f.geId:"",I=new iTt({format:new WTt,tileSize:x,url:m}),R=function(A,M){let V=new QTt({fill:new vX({color:y}),stroke:new Xee({color:v,width:C}),text:new qTt({font:"80px Arial",textBaseline:"middle",text:A.get("name")||A.get("id")||"",fill:new vX({color:T}),stroke:new Xee({color:S,width:3})})});return E.includes(A.get(L))&&V.getFill().setColor(w),V};return new DSt({source:I,style:R})}checkWModels(f){return F(this._wModels[f])}removeInstance(f,m){let y=this._wModels[f];if(F(y)){let v=y.geometryInstances;if(F(v))for(let C=0;C<v.length;C++)v[C].id}}removeWModels(f){if(F(this._parameter.retain)&&this._parameter.retain)return;let m=this,x=m._wModels[f];if(F(x)){for(let y=0;y<m._instance[f].length;y++)m.instanceId.has(m._instance[f][y])&&m.instanceId.delete(m._instance[f][y]);m._instance[f]=[],m._wModels[f]=void 0}}convertCoordinates(f){let m=[];for(let x=0;x<f.length;x++){let y=f[x];for(let v=0;v<y.length;v++)Array.prototype.push.apply(m,y[v])}return m}processGeoJson(){let f=this,m=f._parameter.modelHeightKey??"\u5C42\u9AD8",x=f._parameter.modelColor??Xe.BLUE;function y(C){f.removeWModels(C)}function v(C,T){if(!F(T)||f.checkWModels(T))return;let S=[],w=yo.fromColor(x);f._instance[T]||(f._instance[T]=[]);let E;for(let L=0;L<C.features.length;L++){let I=C.features[L];if(I.geometry.type==="Polygon"){let R=I.id;if(!f.instanceId.has(R)){let P=f.convertCoordinates(I.geometry.coordinates),A=Z.fromDegreesArray(P);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(A),extrudedHeight:E}),id:R,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(R,T),f._instance[T].push(R)}}else if(I.geometry.type==="MultiPolygon"){let R=I.geometry.coordinates;for(let P=0;P<R.length;P++){let A=I.id+L;if(!f.instanceId.has(A)){let M=R[P],V=f.convertCoordinates(M),G=Z.fromDegreesArray(V);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(G),extrudedHeight:E}),id:A,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(A,T),f._instance[T].push(A)}}}else console.info(I.geometry.type)}if(S.length>0){let L=f._earthCtrl.primitives.add(new ta({geometryInstances:S,allowPicking:!1,appearance:new ga({flat:!1,faceForward:!1,translucent:!1})}));f._wModels[T]=L}}return{callback:v,removePrimitive:y}}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(y){let v=As.export(f);console.log("imageobj",v),m(v)})})}async flyTo(f={}){let m=f;function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="wms"){let y=await this._primitive.imageryProvider.capabilitiesRes;if(!y.length)return;if(y[0]<180&&y[0]>-180)m.destination=f.destination??vi.fromDegrees(y[0],y[1],y[2],y[3]);else{let v=x(y[0],y[1]),C=x(y[2],y[3]);m.destination=f.destination??vi.fromDegrees(v.lon,v.lat,C.lon,C.lat)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Rme.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],y=f.mEarthCtrl.entities.getById(x);y.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 Ame=Rme;we();we();var Car=function(o,f,m,x){let y=m,v=x;var C=f.west,T=f.east,S=f.south,w=f.north,E=T-C,L=w-S,I=o.longitude*180/Math.PI,R=o.latitude*180/Math.PI;return o.normalizedLongitude=(I-C)/E*m,o.normalizedLatitude=(R-S)/L*x,o},Tar=function(o,f,m,x){var y=[],v=o[0].longitude!==void 0;return o.forEach(function(C){var T=[],S=v?C:iN.scene.globe.ellipsoid.cartesianToCartographic(C);S=Car(S,f,m,x),T.push(S.normalizedLongitude),T.push(S.normalizedLatitude),y.push(T)}),y},Sar=function(o,f,m){var x=32,y=f.west*be.DEGREES_PER_RADIAN,v=f.east*be.DEGREES_PER_RADIAN,C=f.south*be.DEGREES_PER_RADIAN,T=f.north*be.DEGREES_PER_RADIAN,S=new vi(y,C,v,T),w=Tar(o,S,x,x),E=war(w,"#FF0000",x,x);return E},war=function(o,f,m,x,y){if(y===void 0){var y=document.createElement("canvas");y.width=m,y.height=x}var v=y.getContext("2d");if(!(o.length<=0)){v.moveTo(o[0][0],o[0][1]);for(var C=0;C<o.length;C++)v.lineTo(o[C][0],o[C][1]);return f!=null&&f!=null&&(v.fillStyle=f,v.fill()),y}};function NR(o,f){return Math.floor(Math.random()*(f-o+1))+o}function Ear(){return globalThis.GEOWORLD_BASE_URL+"Workers/ParseElevationWorker.js"}function Lar(o,f){var m=mp();return NR=Sar(o.vertices,f,o.heights[0]),NR.timeStamp=o.timeStamp,NR.mtHeight=o.heights,NR.mtType=o.mtType,NR.fromKML=o.fromKML,NR.rect=o.rectangle,NR.level=o.level,m.resolve(NR),m.promise}function Par(o,f){return Math.floor(Math.random()*(f-o+1))+o}function Iar(o,f){var m=mp(),x=[];return o.forEach(function(y){x.push(Lar(y,f))}),Promise.all(x).then(function(y){var v=y[0].lenght,C=function(w,E){return E.timeStamp-w.timeStamp};if(y.length===1)m.resolve(y[0]);else{var T=y.sort(C),S=T.shift();T.forEach(function(w){S.forEach(function(E,L){E===NR&&w[L]!==NR&&(S[L]=w[L])})}),m.resolve(S)}}),m.promise}var iN,BSt=!1;function zd(o,f){if(iN=o,!F(f))throw new wt("options is required.");this._errorEvent=new Tr,this._modelFloorMasks={},this._credit=f.credit,typeof this._credit=="string"&&(this._credit=new Oa(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 v=new XMLHttpRequest;v.open("GET",f.cacheUrl?f.cacheUrl+"/0/0/0.mpt":m._firstRequest,!1),v.onload=function(){var C=new DOMParser,T=C.parseFromString(v.responseText,"text/xml"),S=F(T.childNodes)&&T.childNodes.length>0;m.setFormatMPT(!S)},v.onerror=function(){m.setFormatMPT(!1)},v.send()}(),f.cacheUrl&&(this.isCache=!0,this.cacheLevel=f.cacheLevel||16,this._cacheUrl=f.cacheUrl+"/{z}/{x}/{y}.mpt");let y=this._maxTerrainLevel;this._availability={computeMaximumLevelAtPosition:function(v){return Math.min(y,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 _h,this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f.heightMapWidth*4,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._workerPool=new tw({workerPath:Ear()},Vi),this._pendingRequests=0,this._requestGridSize=8,this._requestsCache={},this._requestsCacheKeys=[],this.errorEvent.addEventListener(function(v){},this)}zd._geometricErrorFactor=2;Object.defineProperties(zd.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}}});zd.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)))}};zd.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)*zd._geometricErrorFactor};zd.prototype.createKeyFromTile=function(o,f,m){return o+"_"+f+"_"+m};zd.prototype.getTileDataAvailable=function(o,f,m){var x=Math.min(this._maxTerrainLevel,25);return this._isMPT?!0:m<x};zd.prototype.requestFactorForLevel=function(o){var f=Math.log(this._requestGridSize)/Math.log(2);return f=Math.min(f,o),Math.pow(2,f)};zd.prototype.getRequestBaseTerrainUrl=function(o,f,m,x){return this.getRequestUrl(o,f,m,x)};zd.prototype.getRequestElevationLayer=function(o,f,m){return this.getRequestUrl(o,f,m,!1,!0)};zd.prototype.getRequestUrl=function(T,S,w,x,y){var v=w,C=x!=null?this.requestFactorForLevel(w):1,T=x!=null?(T-T%C)/C:T,S=x!=null?(S-S%C)/C:S,w=x!=null?w-Math.log(C)/Math.log(2):w;if(this.isCache&&w!==0&&w<=this.cacheLevel)return this._cacheUrl.replace("{x}",T).replace("{y}",S).replace("{z}",w);var E=this.tilingScheme.tileXYToNativeRectangle(T,S,w),L=this.heightMapWidth*C===256&&x?1:0;y&&(L=0);var I=this._urlTemplate.replace("{south}",E.south).replace("{north}",E.north).replace("{west}",E.west).replace("{east}",E.east).replace("{optimizedOnly}",L).replace("{width}",this.heightMapWidth*C).replace("{height}",this.heightMapHeight*C).replace("{s}",this.sTag(T,S,w));return I+"&level="+w+"&origLevel="+v};zd.prototype.isT_Inside_E=function(o,f){return o.west>=f.west*be.DEGREES_PER_RADIAN&&o.east<=f.east*be.DEGREES_PER_RADIAN&&o.south>=f.south*be.DEGREES_PER_RADIAN&&o.north<=f.north*be.DEGREES_PER_RADIAN};zd.prototype.isT_Intersects_E=function(o,f){var m=o.west*be.RADIANS_PER_DEGREE,x=o.east*be.RADIANS_PER_DEGREE,y=o.south*be.RADIANS_PER_DEGREE,v=o.north*be.RADIANS_PER_DEGREE,C=new vi(m,y,x,v),T=vi.intersection(C,f,new vi);return T};zd.prototype.sTag=function(o,f,m){if(this._subdomains==null)return"";var x=(o+f+m)%this._subdomains.length;return this._subdomains[x]};zd.prototype.refreshElevationLayer=function(o){if(o.rectangle&&iN.scene.globe._surface._levelZeroTiles!==void 0){var f=this.findDirectParent(o.rectangle,!0);f.freeResources()}};zd.prototype.findDirectParent=function(o,f){var m=function(v,C,T){var S=T?4.1:2.1;if(v._rectangle.width<=C.width*S&&vi.contains(v._rectangle,vi.center(C)))return v;for(var w=v.children.length,E=0;E<w;E++){var L=v.children[E];if(vi.contains(L._rectangle,vi.center(C)))return m(L,C,T)}return null};if(o.width==Math.PI)return null;for(var x=0;x<iN.scene.globe._surface._levelZeroTiles.length;x++){var y=m(iN.scene.globe._surface._levelZeroTiles[x],o,f);if(y)return y}return null};zd.prototype.isTileAvailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);if(y&&y.data&&y.data.terrainData){if(!(y.data.terrainData._childTileMask>0))return!1;for(var v=y.children.length,C=0;C<v;C++){var T=y.children[C];if(vi.equals(T._rectangle,x))return y.data.terrainData._childTileMask&1<<C}}return!0};zd.prototype.markTileAsUnavailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);y&&y.data&&y.data.terrainData&&y.data.terrainData._childTileMask>0&&y.children.some(function(v,C){if(vi.equals(v._rectangle,x)){switch(C){case 0:y.data.terrainData._childTileMask&=-5;break;case 1:y.data.terrainData._childTileMask&=-9;break;case 2:y.data.terrainData._childTileMask&=-2;break;case 3:y.data.terrainData._childTileMask&=-3;break;default:}return!0}return!1})};zd.prototype.requestBaseTerrainTileGeometry=function(o,f,m,x){return this.requestTileGeometryBuffers(o,f,m,x)};zd.prototype.requestElevationLayerTileGeometry=function(o,f,m,x,y){return this.requestTileGeometryBuffers(o,f,m,x,y)};zd.prototype.requestTileGeometryBuffers=function(o,f,m,x,y){var v=this,C=15,T={};T.requestedRectangle=this.tilingScheme.tileXYToNativeRectangle(o,f,m),T.layer=y;var I,S,w,E,L=mp(),I=this.requestTileHeightBuffer(o,f,m,x,void 0,y);return I===void 0?void 0:(S=this.requestTileHeightBuffer(o+1,f,m,x,!0,y),w=this.requestTileHeightBuffer(o,f+1,m,x,!0,y),E=this.requestTileHeightBuffer(o+1,f+1,m,x,!0,y),Promise.all([I,S,w,E]).then(function(R){if(BSt==0){if(R[0].myReject!=null&&R[0].myReject){L.reject();return}for(var P=v.heightMapWidth+1,A=v.heightMapHeight+1,M=new Float32Array(P*A),V=R[0].isFloor,G=0;G<P;G++)for(var D=0;D<A;D++){var N=G,k=D,U=0;D===P-1&&(k=0,U=1,V&&(U=0,k=P-2)),G===A-1&&(N=0,U=2);var B=G*P+D,Y=N*v.heightMapWidth+k;R[U]!==null&&(R[U].myReject==null||!R[U].myReject)&&(M[B]=R[U][Y])}(R[3].myReject==null||!R[3].myReject)&&(M[P*A-1]=R[3][0]);var J=v.arrayToHeightmapTerrainData(M,P,A,C);T.buffer=J,L.resolve(T)}else{var J=v.arrayToHeightmapTerrainData(R[0],v.heightMapWidth,v.heightMapHeight);T.buffer=J,L.resolve(T)}}).catch(function(){L.reject()}),L.promise)};zd.prototype.requestTileGeometry=function(o,f,m,x){var y=this,v=[],C=y.tilingScheme.tileXYToNativeRectangle(o,f,m);this._allElevationLayers!=null&&this._allElevationLayers.length>0&&m>7?this._allElevationLayers.forEach(function(S,w){var E=w.show;if(E){var L=w.rectangle;y.isT_Inside_E(C,L)?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w))):y.isT_Intersects_E(C,L)!=null?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w)),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)))}else y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))}):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)));var T=mp();return Promise.all(v).then(function(S){if(S.length===1)S.layer!==void 0&&console.log("missing scale and offset"),T.resolve(S[0].buffer);else if(S.length>1){var w=S.filter(function(P){return P.layer!==void 0}),E=S.filter(function(P){return P.layer===void 0});if(w.length===0)T.resolve(S[0].buffer);else{var L=w[w.length-1],I=E[E.length-1],R={tolerance:L.layer.nullTolerance,nullValueNumber:L.layer.nullValueNumber,verticesX:L.layer.polygonVerticesX,verticesY:L.layer.polygonVerticesY,scale:L.layer.scale??1,offset:L.layer.offset??0};T.resolve(y.mergeBuffers(I.buffer,L.buffer,R,I.requestedRectangle))}}else T.reject()}).catch(function(){T.reject()}),T.promise};zd.prototype.mergeBuffers=function(o,f,m,x){var y,v,C,T,S,w=33,E=33,L=x.west,I=x.north,R=x.east,P=x.south,A=x.width/w,M=x.height/E,V=m.scale,G=m.offset,D=m.nullValueNumber,N=m.tolerance,k=D!==void 0&&N!==void 0;if(k)var U=m.nullValueNumber??0,B=Number(m.tolerance)??0;var Y=new Float32Array(w*E);for(y=0,S=I;y<E;y++,S+=M)for(v=0,T=L;v<w;v++,T+=A)C=y*w+v,k?Y[C]=!f._buffer[C]||f._buffer[C]>=U-B&&f._buffer[C]<=U+B?o._buffer[C]:f._buffer[C]*V+G:Y[C]=f._buffer[C]?f._buffer[C]*V+G:o._buffer[C];return this.arrayToHeightmapTerrainData(Y,w,E,15)};zd.prototype.requestTileHeightBuffer=function(o,f,m,x,y,v){var C=this;if(!isNaN(o+f+m)){(!F(x)||x===!1)&&(x=new dm({defer:!0}));var T=x.defer==0;y=T??!1;var S=mp();if(BSt==0){var w;if(v!==void 0)v.getUrlFromSTag=function(j,q,O){return v.subdomains===void 0?v.url:v.subdomains[0]+"/SG"},w=this.getRequestElevationLayer(o,f,m).replace(this._options.url,v.getUrlFromSTag(o,f,m)+"/Elevation").replace(this._options.layerName,v.name),v.format==="mpt"&&(w=w.replace("image/png","image/mpt"));else{w=this.getRequestBaseTerrainUrl(o,f,m,T||y);var E=iN.terrainProvider.tilingScheme.tileXYToRectangle(o,f,m),L=iN.terrainProvider._modifyTerrainObjects,I=mp();if(L!==void 0){var R=[];if(L.forEach(function(j){j.show&&vi.intersection(E,j.rectangle,new vi)!=null&&R.push(j)}),R.length>0)if(R.length===1&&R[0].modelFloorBestLevel&&m>R[0].modelFloorBestLevel)I.resolve("NoMerge");else{var P=Iar(R,E,m);Promise.resolve(P).then(function(j){I.resolve(j)}).catch(function(j){console.log(j)})}else I.resolve("NoMerge")}else I.resolve("NoMerge");var A=mp(),M=[].filter(function(j){return j._selectedTiles.length>0});if(M.length===1&&M[0].level&&m>M[0].level)A.resolve("NoFloor");else{var V=!1,G=32,D=65535;M.forEach(function(j){if(j.ready&&j.show&&j.rootFloorRectangle!==void 0&&vi.intersection(E,j.rootFloorRectangle)!==void 0){for(var q=new Uint16Array(G*G),O=E.west,te=E.south,ie=(E.east-E.west)/32,re=(E.north-E.south)/32,ee,ae=0;ae<G;ae++)for(var oe=0;oe<G;oe++){var ce=O+ie*oe+ie/2,pe=E.north-re*ae-re/2,ue=new Gt(ce,pe);ee=D;var he=j.getHRMTFP(j,ue,!0);he!=null&&he.content&&he.content._model&&he.content._model.floor&&(ee=he.content._model.floor.getHeight(ue.longitude,ue.latitude)),ee!==D&&(ee+=1.5),q[ae*G+oe]=ee}V=!0,A.resolve(q)}}),V||A.resolve("NoFloor")}var N=iN.scene.globe.ellipsoid}if(this._requestsCache.hasOwnProperty(w)===!1){if(this._requestsCache[w]={},this._requestsCacheKeys.push(w),this._requestsCacheKeys.length>100){for(var k=0;k<50;k++)delete this._requestsCache[this._requestsCacheKeys[k]];this._requestsCacheKeys.splice(0,50)}}else{var U=this._requestsCacheKeys.indexOf(w);this._requestsCacheKeys.splice(U,1),this._requestsCacheKeys.push(w)}var B=this._requestsCache[w];if(B.dataLoaded===void 0&&(T?B.dataLoaded=Mr.fetchArrayBuffer(w):B.dataLoaded=Mr.fetchArrayBuffer(w),!F(B.dataLoaded)))return;var Y=this;this._pendingRequests++,Promise.resolve(B.dataLoaded).then(function(j){B.workerFinished===void 0&&(B.workerFinished=Y._workerPool.queueWorkItem({buffer:j,isElevation:v!==void 0,level:m})),Promise.all([B.workerFinished,I.promise,A.promise]).then(function(q){var O=q[1]!==void 0&&q[1]!=="NoMerge",te=q[2]!==void 0&&q[2]!=="NoFloor";if(q[0].rejected){for(var ie=Y.heightMapWidth*Y.heightMapHeight,re=new Int16Array(ie),ee=0,ae=0;ae<ie;ae++)re[ae]=300;return m>2&&(re.myReject=!0),S.resolve(re),S.promise}var oe=Y.extractTileHeightBuffer(q[0].buffer,o,f,m);if(Y._pendingRequests--,O)for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[1].mtHeight[0]}if(te){for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[2][pe]===65535||q[2][pe]>10500?oe[pe]:q[2][pe]}oe.isFloor=!0}S.resolve(oe)}).catch(function(){for(var q=Y.heightMapWidth*Y.heightMapHeight,O=new Int16Array(q),te=0,ie=0;ie<q;ie++)O[ie]=300;return m>2&&(O.myReject=!0),S.resolve(O),S.promise})}).catch(function(){Y._pendingRequests--,S.reject()})}else{for(var J=this.heightMapWidth*this.heightMapHeight,K=new Int16Array(J),z=Par(0,1500),k=0;k<J;k++)K[k]=z;S.resolve(K)}return S.promise}};zd.prototype.extractTileHeightBuffer=function(o,f,m,x){try{for(var y=this.requestFactorForLevel(x),v=f%y,C=m%y,T=new Float32Array(this.heightMapWidth*this.heightMapHeight),S=1e6,w=-1e5,E=0;E<this.heightMapHeight;E++)for(var L=0;L<this.heightMapWidth;L++){var I=E+C*this.heightMapHeight,R=L+v*this.heightMapWidth,P=E*this.heightMapWidth+L,A=I*this.heightMapWidth*y+R;o[A]>w&&(w=o[A]),o[A]<S&&(S=o[A]),T[P]=o[A]}}catch(M){console.log(M.message)}return T};zd.prototype.arrayToHeightmapTerrainData=function(o,f,m,x){F(o)===!1&&(o=new Int16Array(f*m));var y={buffer:o,width:f,height:m,childTileMask:x};return new yL(y)};var HSt=zd;var Mme=class extends Nf{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,y=m.sourceType??"ctb";try{if(y!=="ude"){if(y==="ctb")x=await W4.fromUrl(m.url,m);else if(y==="multi")x=new lce(this._earthCtrl);else if(y==="sgs")f&&(Ty.hasVertexNormals=!0),x=new HSt(this._earthCtrl.coreMap,m);else if(y==="arcgis")x=await xde.fromUrl(m.url,m);else if(y==="mapworld"){let C=m.cesium;C.GeoTerrainProvider||new ex(!1).addJs(document.body,`${window.SmartEarthRootUrl}Workers/cesiumTdt.js`);let T=[],S=m.subdomains;for(let w=0;w<S.length;w++){let E=`${m.url.replace("{s}",S[w])}mapservice/swdx?T=elv_c&tk=3ec79cf7a9dcc6bb18411a5414b148cb`;T.push(E)}x=new C.GeoTerrainProvider({urls:T})}}x!==null&&(this._primitive=x,this._coreMap.terrainProvider=x);let v=m.groupName||this._earthCtrl.language.GROUP_NWE_TERRAIN_LAYER;m.addTree&&(m.addTree=void 0,m.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(v,{id:m.id||this._earthCtrl.factory.createUUID(),name:m.name||y,sourceType:"TerrainProvider",item:this,feature:m,checked:this._primitive.show}))}catch(v){console.error(v)}}removeFromMap(){this._primitive!==null&&(this._coreMap.terrainProvider=new RS)}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(y){let v=As.export(f);console.log("terraobj",v),m(v)})})}flyTo(f={}){let m=f;m.orientation=f.orientation??{heading:be.toRadians(0),pitch:be.toRadians(-60),roll:be.toRadians(0)};function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="ctb"||this._parameter.sourceType==="arcgis"){if(this._primitive._tilingScheme.bounds[0]<180&&this._primitive._tilingScheme.bounds[0]>-180){let y=this._primitive._tilingScheme.bounds,v=(y[0]+y[2])/2,C=(y[1]+y[3])/2,T=f.height||1e4;m.destination=f.destination??Z.fromDegrees(v,C,T)}else{let y=this._primitive._tilingScheme.bounds,v=x(y[0],y[1]),C=x(y[2],y[3]),T=(v.lon+C.lon)/2,S=(v.lat+C.lat)/2,w=f.height||1e4;m.destination=f.destination??Z.fromDegrees(T,S,w)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Mme.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 Vme=Mme;we();var Gme=class extends Nf{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 _0.fromUrl(f.url,f),F(f.transform)&&this.transform(f.transform,m)):f.sourceType==="osgb"?m=await _0.fromUrl(f.url,f):f.sourceType==="i3s"?m=await gR.fromUrl(f.url,f):f.sourceType==="s3m"?(F(f.context)||(f.context=this._earthCtrl.viewer.scene.context),m=new rpe(f),await m.readyPromise):(f.sourceType==="ude_block"||f.sourceType==="ude_model")&&(f.skipLevelOfDetail=!0,m=await _0.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(){F(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(y){let v=As.export(f);console.log("modellayerobj",v),m(v)})})}transform(f,m){let x=m._primitive,y=Ut.fromRotationX(be.toRadians(f.pitch)),v=Ut.fromRotationY(be.toRadians(f.roll)),C=Ut.fromRotationZ(be.toRadians(f.heading)),T=Ee.fromRotationTranslation(y),S=Ee.fromRotationTranslation(v),w=Ee.fromRotationTranslation(C),E=Z.fromDegrees(f.lon,f.lat,f.alt),L=_r.eastNorthUpToFixedFrame(E);Ee.multiply(L,T,L),Ee.multiply(L,S,L),Ee.multiply(L,w,L),x._root.transform=L}setHeight(f){if(f=Number(f),!isNaN(f)&&this._primitive!==void 0&&this._primitive.boundingSphere!==void 0){let m=this._primitive.boundingSphere.center,x=Gt.fromCartesian(m),y=Z.fromRadians(x.longitude,x.latitude,0),v=Z.fromRadians(x.longitude,x.latitude,f),C=Z.subtract(v,y,new Z);this._primitive.modelMatrix=Ee.fromTranslation(C)}}};Object.defineProperties(Gme.prototype,{parameter:{get:function(){return this._parameter}},readyPromise:{get:function(){return this._primitive.readyPromise}},show:{get:function(){return F(this._primitive)?this._primitive.show:!1},set:function(o){F(this._primitive)&&(this._primitive.show=o)}},sourceType:{get:function(){return F(this._parameter)?this._parameter.sourceType:!1}},dataUrl:{get:function(){return F(this._parameter)?this._parameter.url:!1}},boundingSphere:{get:function(){return F(this._primitive)&&this._primitive.boundingSphere?this._primitive.boundingSphere:null}},modelMatrix:{get:function(){return F(this._primitive)?this._primitive.modelMatrix:!1},set:function(o){F(this._primitive)&&(this._primitive.modelMatrix=o)}},name:{get:function(){return F(this._parameter)?this._parameter.name:!1},set:function(o){F(this._parameter)&&(this._parameter.name=o)}}});var Fme=Gme;we();var Dme=class extends Nf{constructor(f,m){super(f),this._rtti="FeatureLayer",this._primitive=null,this._parameter=m}finalize(){}addToMap(){let f=this._parameter;this._primitive=new jue(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 y=m[x];for(let v=0;v<y.propertyNames.length;v++){let C=y.propertyNames[v];if(!!y[C]){typeof f.near<"u"&&typeof f.far<"u"&&(y[C].distanceDisplayCondition=new So(f.near,f.far));for(let T in f)if(Object.hasOwnProperty.call(f,T)){let S=f[T];y[C][T]&&(y[C][T]=S)}if(f.pointHeight){let T=Gt.fromCartesian(y.position._value),S=Math.toDegrees(T.longitude),w=Math.toDegrees(T.latitude);y.position=Z.fromDegrees(S,w,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(y){let v=As.export(f);console.log("fireObj",v),m(v)})})}};Object.defineProperties(Dme.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 Nme=Dme;we();function Wme(o){this._earthCtrl=o,this._path="",this._layerWork=null}Object.defineProperties(Wme.prototype,{});Wme.prototype.addToMap=function(o){F(this._layerWork)?this._layerWork.updateOverlay(o):this._layerWork=new Rde(this._earthCtrl.coreMap,o)};Wme.prototype.removeFromMap=function(){this._layerWork.dispose()};var Zme=Wme;we();var Rar={IMAGERYPROVIDERS:"imageryProviders",TERRAINPROVIDERS:"terrainProviders",MODELLAYERS:"modelLayers",FEATURELAYERS:"featureLayers",USERSCENE:"userScene"},Ms=Object.freeze(Rar);we();var Ome=class extends Nf{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??Xe.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 Fz(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(y){let v=As.export(f);console.log("waterObj",v),m(v)})})}};Object.defineProperties(Ome.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 Xme=Ome;we();var jOe=class extends Nf{constructor(f,m){super(f),this._parameter=m,this._viewer=f.coreMap,this._cesium=Vi}addToMap(){let f=this._parameter,m,x;F(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 y;f.url?y=new this._cesium.SingleTileImageryProvider({url:f.url}):f.imageryProvider?y=f.imageryProvider:y=new _L({url:"http://103.25.37.71:4020/gisserver/tmsserver/earth_tms"});let v=new M4(x,{baseLayer:Up.fromProviderAsync(y),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}});v._innerCreditContainer.style.display="none",v.scene.screenSpaceCameraController.enableRotate=!1,v.scene.screenSpaceCameraController.enableZoom=!1,v.scene.screenSpaceCameraController.enableTilt=!1;let C=this;function T(){let S=C._viewer.camera.position,w=Gt.fromCartesian(S);v.camera.setView({destination:Gt.toCartesian(w),orientation:{heading:C._viewer.camera.heading,pitch:C._viewer.camera.pitch,roll:C._viewer.camera.roll}})}return C._viewer.scene.preRender.addEventListener(T),this.close=function(){C._viewer.scene.preRender.removeEventListener(T),v.destroy(),m.remove(),C.close=void 0},this}removeFromMap(){this.close&&this.close()}},kme=jOe;we();var zSt=new zt;function Aar(o,f,m){let x=o.length,y,v,C;if(m){y=zr.LUMINANCE,v=un.FLOAT,C=new Float32Array(x);for(let T=0;T<x;T++)C[T]=o[T]}else{y=zr.RGBA,v=un.UNSIGNED_BYTE,C=new Uint8Array(x*4);for(let T=0;T<x;T++)zt.packFloat(o[T],zSt),zt.pack(zSt,C,T*4)}return new Rn.create({context:f,pixelFormat:y,pixelDatatype:v,source:{width:x,height:1,arrayBufferView:C},flipY:!1,sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})})}var Ume=[];function Mar(o,f,m,x){Ee.toArray(Ee.IDENTITY,Ume);let y=new Co({fabric:{type:"spotMaterial",source:` # define Spot_Texture_Width ${f.length} ${m?"#define use_texture_float":""} float getPointComponent(int idx, float invTexSize) @@ -33711,7 +33794,7 @@ \r }\r \r -`};class gt{constructor(se,ve){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)]=ve,this[je(1099)]=ve[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)}}]}),kt=(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)}}]})),bt=(this[je(933)]=this[je(1099)][je(866)]({layout:kt,entries:[{binding:0,resource:{buffer:this.renderEngine[je(688)]}}]}),this.device[je(917)]({bindGroupLayouts:this[je(702)].multiDrawIndirect?[Ft]:[Ft,kt]})),lt=at[je(1022)];this[je(702)][je(1035)]?lt=lt[je(926)](je(904),""):(lt=lt[je(926)](je(929),je(1009)),lt+=je(1093)),se=this[je(1099)][je(720)]({code:q[je(1022)]+lt}),this[je(955)]=this[je(1099)][je(950)]({layout:bt,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)]||((ve=this.device[je(968)]({colorFormats:[this[je(1017)].format],depthStencilFormat:this.alpha_depth_Texture[je(980)]}))[je(689)](0,this.alpha_BingGroup),ve[je(501)](this[je(955)]),ve[je(689)](1,this[je(933)]),ve.drawIndirect(this.renderEngine[je(812)],0),this.alpha_RenderBundle=ve[je(1091)]()),this[je(546)]()}[o(991)](se){var ve=o,je=se.beginRenderPass(this[ve(1028)]);this.renderEngine[ve(1035)]?(je[ve(689)](0,this.alpha_BingGroup),je[ve(501)](this[ve(955)]),je.multiDrawIndirect(this[ve(688)],0,393216,this[ve(812)],0)):je.executeBundles([this[ve(1083)]]),je[ve(482)](),this[ve(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 ve=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:ve,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:[ve]}),compute:{module:this.device[se(720)]({code:dt[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(585)](se){var ve=o,je=se[ve(911)]();je[ve(689)](0,this[ve(924)]),je.setPipeline(this.edgeMergeComputePipeline),je[ve(624)](this[ve(702)][ve(752)],this[ve(702)][ve(899)]),je[ve(482)](),se.copyTextureToTexture({texture:this[ve(893)]},{texture:this.renderEngine[ve(502)]},{width:this.edgeMerge_color_Texture[ve(412)],height:this[ve(893)][ve(864)]})}}let Et={code:o(664)};class et{constructor(se,ve){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)]=ve,this[je(1099)]=ve.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)]}}]}),ve=this[je(1099)][je(917)]({bindGroupLayouts:[se]}),se=this[je(1099)][je(720)]({code:q[je(1022)]+Et.code}),this.alpha_Pipeline=this[je(1099)][je(950)]({layout:ve,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 ve=o;this[ve(1031)].instancesCount!==0&&((se=se[ve(675)](this[ve(1028)]))[ve(689)](0,this[ve(1054)]),se.setPipeline(this[ve(955)]),se.draw(8*this[ve(1031)][ve(1069)]),se[ve(482)]())}}class yt{constructor(se){var ve=o;this.fig=se,this[ve(778)]=0,this[ve(700)]=0,this[ve(1035)]=!1,this[ve(710)]=!0,this.readTemp_noLocking=!0,this[ve(1e3)]=!0,this[ve(983)]=!0,this[ve(837)]=!0,this[ve(425)]=1,this[ve(628)]=2,this[ve(767)]=3,this.vm_target_meshLod=4,this[ve(934)]=5,this[ve(561)]=6,this[ve(903)]=7,this[ve(1025)]=32,this[ve(804)]=new Float32Array(9),this[ve(795)]=20,this.spaceTotalCount=0,this[ve(598)]=10,this[ve(775)]=1e6,this[ve(858)]=new ArrayBuffer(64),this[ve(653)]=new Uint32Array([10,0,0,0]),this[ve(786)]=1e5,this[ve(915)]=Math.ceil(this.lightBodiesAssociateCount/1024),this[ve(764)]=1e6,this[ve(540)]=4096,this[ve(944)]=new Float32Array(128),this[ve(697)]=new Uint32Array(this[ve(944)][ve(877)]),this[ve(819)]=128,this[ve(1047)]=32,this[ve(881)]=this[ve(819)]-(this.blur_filterSize-1),this.blur_batch=[4,4],this[ve(630)]=0,this[ve(518)]=new Float32Array(4),this[ve(541)]=new Float32Array(128),this.volumeRender_Uniform_DataView=new Float32Array(128),this[ve(667)]=new Float32Array(128),this[ve(719)]=new Uint32Array(this[ve(667)].buffer),this.renderToCanvas_Uniform_DataView=new Float32Array([1,1,.1]),this[ve(681)]=new Uint32Array([27,0,0,0]),this.lastPickPositionValue=D[ve(807)](),this[ve(872)]=!0,this.allow_read_renderMaterial=!0,this[ve(954)]=!1,navigator[ve(437)].requestAdapter({powerPreference:"high-performance"}).then(je=>{var Ft=ve;if(je!==null){this[Ft(947)]=je;var kt,bt=Array[Ft(1050)](je[Ft(840)]||[]),lt={};for(kt in je[Ft(608)])lt[kt]=je[Ft(608)][kt];je[Ft(935)]({requiredFeatures:bt,requiredLimits:lt})[Ft(442)](ze=>{var tt=Ft;this[tt(1099)]=ze,this[tt(778)]=ze.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__&&((ze=document.createElement(tt(1088))).style=tt(558),document[tt(455)].appendChild(ze),this[tt(797)]=ze[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)}),(ze=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)](ze),this[tt(733)]=ze[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)}),(ze=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)](ze),this.context3=ze[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)}),(ze=document.createElement(tt(1088))).style=tt(716),document[tt(455)][tt(621)](ze),this[tt(657)]=ze[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 ze=this[tt(1099)].createCommandEncoder(),ct=ze[tt(675)]({colorAttachments:[null]});this[tt(1035)]=!!ct.multiDrawIndirect,ct.end(),ze[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 gt(this[se(1031)],this),this[se(869)]=new et(this.fig,this),globalThis.__ser_isDev__&&this[se(1010)]()}[o(560)](se){var ve=o,je=performance.now();switch(se.target){case this[ve(425)]:if(se[ve(1016)]&&se[ve(563)])this[ve(680)][ve(605)],se[ve(1016)],se.buf[ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(680)],se[ve(1016)],se[ve(563)]);else if(se[ve(413)])for(var Ft in se[ve(413)])this[ve(1099)].queue[ve(1039)](this.modelVmBuffer,~~Ft,se[ve(413)][Ft]);else se[ve(1089)]&&this[ve(1099)].queue[ve(1039)](this[ve(680)],se[ve(1016)],new ArrayBuffer(se[ve(1089)]));break;case this[ve(628)]:this.instanceVmBuffer[ve(605)],se.vmOffset,se[ve(563)].byteLength,this[ve(1099)][ve(704)][ve(1039)](this.instanceVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(767)]:this[ve(1092)][ve(605)],se[ve(1016)],se[ve(563)].byteLength,this[ve(1099)].queue.writeBuffer(this.meshVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(419)]:this[ve(580)][ve(605)],se[ve(1016)],se[ve(563)][ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(580)],se.vmOffset,se[ve(563)]);break;case this.vm_target_meshLod_up:this.updateMeshOffset_VmBuffer[ve(605)],se[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,se.buf);var kt=this[ve(1099)][ve(981)]();this[ve(421)](kt,se[ve(815)]),this[ve(1099)][ve(704)][ve(635)]([kt[ve(1091)]()]);break;case this[ve(561)]:this[ve(1099)][ve(704)].writeTexture({texture:this[ve(962)],origin:se[ve(534)]},se.albedo_buf,se[ve(743)],se.size),se[ve(671)]&&this[ve(1099)].queue[ve(458)]({texture:this.normal_Texture,origin:se.origin},se[ve(671)],se[ve(743)],se[ve(605)]),se[ve(423)]&&this[ve(1099)][ve(704)][ve(458)]({texture:this[ve(777)],origin:se[ve(534)]},se[ve(423)],se[ve(743)],se[ve(605)]);break;case this[ve(903)]:this[ve(792)].size,se[ve(1016)],se.buf[ve(829)],this.device[ve(704)][ve(1039)](this.operateVmBuffer,se[ve(1016)],se[ve(563)])}je<performance[ve(495)]()-5&&console.log(ve(927),performance.now()-je,se[ve(723)])}OrganizeMeshVmData(se){var ve=o,je,Ft=this[ve(1099)][ve(981)]();for(je of se[ve(937)])this[ve(711)][ve(605)],je[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,je[ve(563)]),this[ve(421)](Ft,je[ve(815)]);for(let bt=0;bt<se[ve(652)][ve(800)];bt+=3){let lt=se[ve(652)][bt],ot=se[ve(652)][bt+1],tt=se.copyList[bt+2];for(;;){if(!(tt>this[ve(647)][ve(605)])){Ft.copyBufferToBuffer(this[ve(1092)],ot,this[ve(647)],0,tt),Ft.copyBufferToBuffer(this.copyVmBuffer,0,this.meshVmBuffer,lt,tt);break}var kt=this[ve(647)][ve(605)];Ft[ve(913)](this[ve(1092)],ot,this[ve(647)],0,kt),Ft.copyBufferToBuffer(this[ve(647)],0,this[ve(1092)],lt,kt),ot+=kt,lt+=kt,tt-=kt}}this[ve(1099)][ve(704)].submit([Ft[ve(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 ve=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)}}]}),ve=(this[se(960)]=this[se(1099)][se(866)]({layout:ve,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:[ve]}));this[se(1097)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:q.code+k[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],instanceItemVmSize:this.instanceItemVmSize}}})}[o(1117)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(1097)]),se.setBindGroup(0,this[ve(960)]),se[ve(624)](Math.ceil(this[ve(1031)].instancesCount/this[ve(1099)][ve(608)][ve(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 ve=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)}}]}),ve=(this[se(544)]=this[se(1099)].createBindGroup({layout:ve,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:[ve]})),ve=(this[se(668)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+U.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:ve,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:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+B[se(1022)]+O[se(1022)]}),entryPoint:se(817),constants:{multiDrawIndirect:this.multiDrawIndirect?1:0}}})}[o(462)](se){var ve=o;this.fig[ve(1069)]!==1&&(se.copyBufferToBuffer(this[ve(1056)],0,this[ve(812)],0,this[ve(812)][ve(605)]),(se=se.beginComputePass()).setPipeline(this[ve(668)]),se[ve(689)](0,this.MakeCommandComputeBingGroup),se[ve(624)](Math.ceil(this[ve(1031)][ve(1069)]/this[ve(1099)][ve(608)][ve(963)])),se.setPipeline(this[ve(565)]),se.setBindGroup(0,this[ve(734)]),se.dispatchWorkgroups(1),se[ve(482)]())}[o(612)](){var se=o;this.updateMeshOffset_VmBuffer=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST});var ve=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)}}]}),ve=(this[se(1041)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this.updateMeshOffset_VmBuffer}},{binding:1,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this.updateMeshOffsetComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:K[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)].maxComputeInvocationsPerWorkgroup}}})}[o(421)](se,ve){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)](ve/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,ve=-2147483648,je=(this[se(1099)][se(704)][se(1039)](this.readMesh_atomic_VmBuffer,0,new Int32Array([je,je,je,ve,ve,ve])),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:q.code+z.code+ae[se(1022)]+O[se(1022)]+oe.code}),entryPoint:se(817),constants:{spaceUnit:this.spaceUnit}}})}[o(725)](se){var ve=o;this[ve(1099)].queue[ve(1039)](this[ve(443)],0,this[ve(858)]),se=se.beginComputePass({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(492)]),se.setBindGroup(0,this.readMeshComputeBingGroup),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)][se(720)]({code:ie.code+oe[se(1022)]}),entryPoint:se(817),constants:{lightBodiesSize:this[se(795)],spaceTotalCount:this[se(1107)]}}})}LightBodiesAssociate(se){var ve=o;this[ve(653)][0]+=this[ve(786)],this[ve(653)][0]*this.lightBodiesSize>this[ve(1107)]&&(this[ve(653)][0]=10),this[ve(1099)][ve(704)][ve(1039)](this[ve(906)],0,this[ve(653)]),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:6,endOfPassWriteIndex:7}}),se[ve(689)](0,this[ve(998)]),se.setPipeline(this[ve(779)]),se.dispatchWorkgroups(this[ve(915)]),se.end()}[o(823)](){var se=o,ve=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)}}]}),ve=(this[se(1015)]=this.device[se(866)]({layout:ve,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:[ve]}));this[se(676)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:O.code+te.code+oe.code}),entryPoint:"main",constants:{}}}),this[se(1040)]=this[se(1099)].createComputePipeline({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:O.code+re[se(1022)]+oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(718)](se){var ve=o,je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:2,endOfPassWriteIndex:3}});je[ve(689)](0,this[ve(1015)]),je.setPipeline(this[ve(676)]),je[ve(624)](Math[ve(552)](this[ve(764)]/128)),je.end(),this.LightBodiesRemoveDuplicatesIndirect(se)}[o(818)](){var se=o,ve=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)}}]}),ve=(this.LightBodiesRemoveDuplicatesComputeBingGroup=this[se(1099)][se(866)]({layout:ve,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:[ve]}));this.LightBodiesRemoveDuplicatesComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:ee[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(694)](se){var ve=o;se=se[ve(911)](),se.setBindGroup(0,this[ve(713)]),se.setPipeline(this[ve(1055)]),se.dispatchWorkgroupsIndirect(this[ve(551)],0),se.end()}LightBodiesRemoveDuplicatesIndirectIntend(){var se=o,ve=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)}}]}),ve=(this[se(1078)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:2,resource:{buffer:this[se(1002)]}},{binding:3,resource:{buffer:this[se(551)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(1077)]=this.device[se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:se(433)}),entryPoint:"main",constants:{lightBodiesBounceCount:this[se(764)]}}})}LightBodiesRemoveDuplicatesIndirect(se){var ve=o;se=se[ve(911)](),se[ve(689)](0,this[ve(1078)]),se[ve(501)](this[ve(1077)]),se.dispatchWorkgroups(1),se[ve(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 ve=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:ve,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)]?[ve]:[ve,je]})),kt=Y[se(1022)];this.multiDrawIndirect?kt=kt[se(926)]("@group(1) @binding(0) var<storage,read> renderIndex: array<u32>;",""):(kt=kt[se(926)]("let ri = vec2<u32>(input.instanceIndex,input.vertexIndex);",se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt});this.meshRenderPipeline=this[se(1099)][se(950)]({layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,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)]||((bt=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)]),bt[se(501)](this[se(1087)]),bt[se(689)](1,this[se(481)]),bt[se(1044)](this[se(812)],0),this[se(874)]=bt.finish())}[o(939)](se){var ve=o;se[ve(913)](this.meshRenderAtomic_InitData_VmBuffer,0,this[ve(717)],0,16),se[ve(913)](this[ve(1056)],0,this[ve(907)],0,this[ve(907)].size),se=se[ve(675)](this[ve(974)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(789)]),se[ve(501)](this[ve(1087)]),se[ve(1035)](this[ve(688)],0,393216,this.indirect_render_VmBuffer,0)):se[ve(834)]([this[ve(874)]]),se[ve(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 ve=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:ve,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)]?[ve]:[ve,je]})),kt=J[se(1022)];this[se(1035)]?kt=kt[se(926)](se(904),""):(kt=kt[se(926)](se(929),se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt+O.code});this[se(1104)]=this[se(1099)].createRenderPipeline({label:se(1104),layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,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)]||((bt=this[se(1099)][se(968)]({colorFormats:[this[se(500)][se(980)]],depthStencilFormat:this[se(559)][se(980)]}))[se(689)](0,this[se(414)]),bt[se(501)](this.renderShadowPipeline),bt[se(689)](1,this.renderShadowBindGroup_renderIndex),bt[se(1044)](this[se(812)],0),this[se(496)]=bt[se(1091)]())}[o(537)](se){var ve=o;this.renderShadowRenderPassDescriptor[ve(1052)][ve(703)]=this[ve(707)],se=se[ve(675)](this[ve(1049)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(414)]),se.setPipeline(this.renderShadowPipeline),se[ve(1035)](this[ve(688)],0,393216,this[ve(812)],0)):se[ve(834)]([this[ve(496)]]),se[ve(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 ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ve=(this[se(691)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(907)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this.device[se(917)]({bindGroupLayouts:[ve]}));this[se(1007)]=this.device.createComputePipeline({layout:ve,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 ve=o;se[ve(913)](this[ve(907)],4,this[ve(596)],0,4),se=se[ve(911)](),se[ve(689)](0,this.dynamicSpaceComputeBingGroup),se[ve(501)](this.dynamicSpaceComputePipeline),se[ve(538)](this.dynamicSpaceIndirect_VmBuffer,0),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this.device.createShaderModule({code:ae[se(1022)]+Se.code}),entryPoint:se(817),constants:{}}})}[o(428)](se){var ve=o;this[ve(944)][ve(895)](this[ve(1031)][ve(1008)]),this[ve(944)][ve(895)](this.fig[ve(838)],16),this[ve(944)][ve(895)](this[ve(1031)][ve(640)],32),this[ve(944)][ve(895)](this[ve(1031)][ve(1024)],48),this.ssrReflections_Uniform_DataView[64]=this.fig[ve(509)][ve(1108)],this.ssrReflections_Uniform_DataView[65]=this[ve(1031)].cameraParameter.far,this[ve(944)][66]=5,this[ve(944)][67]=2e3,this.ssrReflections_Uniform_DataView[68]=.5,this[ve(944)][69]=.2,this[ve(944)][70]=.95,this.ssrReflections_Uniform_DataView[71]=20,this[ve(944)][72]=1,this.ssrReflections_Uniform_DataView[73]=.9,this[ve(697)][74]=4294967295*Math.random(),this[ve(697)][75]=4294967295*Math[ve(1080)](),this.ssrReflections_Uniform_DataViewU32[76]=4294967295*Math[ve(1080)](),this[ve(1099)].queue[ve(1039)](this.ssrReflections_Uniform_VmBuffer,0,this.ssrReflections_Uniform_DataView);var je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}});je[ve(689)](0,this[ve(961)]),je[ve(501)](this.ssrReflectionsComputePipeline),je.dispatchWorkgroups(this[ve(752)],this[ve(899)]),je.end(),se[ve(603)]({texture:this.ssr_color_accumulated_Texture},{texture:this.ssr_color_Texture},{width:this[ve(1105)][ve(412)],height:this.ssr_color_Texture[ve(864)]})}ImageBlurIntend(){var se=o;this[se(891)]=this[se(1099)].createComputePipeline({layout:se(772),compute:{module:this.device[se(720)]({code:ce.code})}});var ve,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)]}),kt=Ft,bt=(ve=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage[se(844)]}),new Uint32Array(ve.getMappedRange())[0]=0,ve[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)](bt,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:bt}}]}),this[se(591)]=this.device.createBindGroup({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:kt[se(1045)]()},{binding:2,resource:Ft[se(1045)]()},{binding:3,resource:{buffer:ve}}]}),this[se(418)]=this[se(1099)][se(866)]({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:Ft[se(1045)]()},{binding:2,resource:kt.createView()},{binding:3,resource:{buffer:je}}]})}[o(529)](se){var ve=o;if(0<this[ve(630)]){var je=se[ve(911)]();je.setPipeline(this.blurComputePipeline),je[ve(689)](0,this[ve(1027)]);for(let Ft=0;Ft<this[ve(630)];++Ft)je[ve(689)](1,this[ve(591)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)].canvas[ve(864)]/this[ve(533)][1])),je[ve(689)](1,this[ve(418)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)][ve(1088)].height/this[ve(533)][1]));je[ve(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 ve=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:ve,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:pe.code}));this[se(841)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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 ve=o;!this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(995)]||this[ve(1031)][ve(835)][ve(953)].mouse.downLeftX==this.fig[ve(835)][ve(953)].mouse[ve(507)]&&this.fig[ve(835)].status[ve(450)][ve(679)]==this[ve(1031)][ve(835)][ve(953)][ve(450)].clientY?this[ve(518)][ve(895)]([0,0,0,0]):this[ve(518)][ve(895)]([(this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(507)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(715)])/this.finalColor_Texture[ve(412)],(this[ve(1031)][ve(835)].status[ve(450)][ve(783)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(679)])/this[ve(502)][ve(864)],1]),this[ve(1099)][ve(704)][ve(1039)](this[ve(982)],0,this[ve(518)]),this[ve(791)][ve(566)][0][ve(703)]=this.context[ve(696)]()[ve(1045)](),se=se[ve(675)](this[ve(791)]),se.setPipeline(this.finalDisplayPipeline),se[ve(689)](0,this[ve(851)]),se[ve(729)](6),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q.code+Oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(444)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(862)]),se[ve(689)](0,this[ve(996)]),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(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 kt=se;Ft[kt(871)]()[kt(442)](bt=>{var lt=kt;bt=new Float32Array(bt),this[lt(1099)][lt(704)].writeTexture({texture:this.volumeRender_3dData_Texture},bt,{bytesPerRow:7200,rowsPerImage:1800},[3600,1800,50])})});var ve=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:ve}]}),this[se(615)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[je]}),compute:{module:this[se(1099)].createShaderModule({code:Le[se(1022)]+q[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(440)](se){var ve=o;this[ve(543)][ve(895)](this[ve(1031)][ve(640)]),this.volumeRender_Uniform_DataView[ve(895)](this[ve(1031)][ve(587)],16),this[ve(1099)].queue[ve(1039)](this[ve(856)],0,this.volumeRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se.setPipeline(this[ve(615)]),se[ve(689)](0,this.volumeRenderComputeBingGroup),se[ve(624)](this.readMesh_dispatchWorkgroupsX,this[ve(899)]),se[ve(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)](kt=>{var bt=Ft;this[bt(945)].size,kt[bt(829)],this[bt(1099)][bt(704)][bt(1039)](this[bt(945)],0,kt)})}),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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)][se(720)]({code:Ve.code+q.code+ae[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(949)](se){var ve=o;this.streamRender_Uniform_DataView.set(this.fig.projectToPixelMatrix),this[ve(667)][ve(895)](this[ve(1031)].viewMatrix,16),this[ve(667)][ve(895)]([.4,5,.95],32),this[ve(719)][ve(895)]([4294967295*Math.random(),4294967295*Math[ve(1080)](),4294967295*Math[ve(1080)]()],35),this[ve(1099)][ve(704)].writeBuffer(this[ve(843)],0,this.streamRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(570)]),se[ve(689)](0,this[ve(494)]),se[ve(624)](this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(1010)](){var se=o,ve=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:ve,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)]})),ve=(this[se(852)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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:ve,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:he[se(1022)]})),ve=(this[se(916)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),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:ve,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:fe[se(1022)]})),ve=(this[se(641)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),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:ve,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:de[se(1022)]}));this.renderDebugTest4Pipeline=this[se(1099)].createRenderPipeline({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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 ve=o;this.renderDebugTestRenderPassDescriptor[ve(566)][0].view=this.context1[ve(696)]()[ve(1045)]();var je=se[ve(675)](this[ve(430)]),je=(je[ve(501)](this[ve(852)]),je[ve(689)](0,this.renderDebugTest1BindGroup),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this[ve(733)][ve(696)]().createView(),se.beginRenderPass(this[ve(430)])),je=(je[ve(501)](this[ve(916)]),je.setBindGroup(0,this[ve(727)]),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this.context3[ve(696)]()[ve(1045)](),se[ve(675)](this.renderDebugTestRenderPassDescriptor)),je=(je[ve(501)](this[ve(641)]),je.setBindGroup(0,this.renderDebugTest3BindGroup),je.draw(6),je[ve(482)](),this[ve(430)].colorAttachments[0][ve(703)]=this[ve(657)][ve(696)]()[ve(1045)](),se.beginRenderPass(this[ve(430)]));je[ve(501)](this[ve(989)]),je[ve(689)](0,this.renderDebugTest4BindGroup),je[ve(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 ve=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)}}]}),ve=(this[se(928)]=this[se(1099)][se(866)]({layout:ve,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:[ve]})),je=this[se(1099)][se(720)]({code:q[se(1022)]+$e.code});this[se(805)]=this[se(1099)].createRenderPipeline({label:se(781),layout:ve,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 ve=o;this[ve(1004)][0]=this[ve(1031)][ve(672)][ve(859)].frameState.useLogDepth?1:0,this[ve(1004)][1]=this[ve(1031)][ve(672)].scene.context[ve(420)][ve(1003)].x,this[ve(1004)][2]=this.fig[ve(672)][ve(859)][ve(504)][ve(420)][ve(794)],this[ve(1099)][ve(704)][ve(1039)](this[ve(659)],0,this[ve(1004)]),this[ve(660)][ve(566)][0][ve(703)]=this[ve(504)][ve(696)]()[ve(1045)](),this.renderToCanvasRenderPassDescriptor.colorAttachments[1].view=this[ve(506)][ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(660)]),se.setPipeline(this.renderToCanvasPipeline),se[ve(689)](0,this[ve(928)]),se.draw(6),se[ve(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]})),ve=this[se(1099)][se(720)]({code:q[se(1022)]+Ce[se(1022)]}),je={layout:je,vertex:{module:ve,entryPoint:"vert_main",buffers:[],constants:{spaceUnit:this[se(598)],lightBodiesSize:this[se(795)]}},fragment:{module:ve,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 ve=o;this[ve(1099)][ve(704)][ve(1039)](this[ve(888)],0,this[ve(681)]),this[ve(1051)].colorAttachments[0].view=this.context[ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(1051)]),se.setPipeline(this.voxelRenderPipeline),se.setBindGroup(0,this[ve(684)]),se[ve(1044)](this[ve(951)],0),se[ve(482)]()}[o(806)](se,ve){return new Promise((je,Ft)=>{var kt=wh,bt;this[kt(983)]?(this[kt(983)]=!1,(bt=this.device[kt(981)]())[kt(809)]({texture:this[kt(793)],mipLevel:0,origin:{x:se,y:ve},aspect:kt(768)},{buffer:this[kt(497)],offset:0,bytesPerRow:256*Math[kt(552)](4*this[kt(793)][kt(412)]/256),rowsPerImage:1},{width:1,height:1}),this.device.queue.submit([bt[kt(1091)]()]),this[kt(497)][kt(705)](GPUMapMode[kt(470)]).then(()=>{var lt=kt,ot=this[lt(497)][lt(827)](0,4),ot=new Uint32Array(ot)[0];this[lt(497)].unmap(),this.readPickId_noLocking=!0,je(ot)})):Ft()})}[o(669)](se,ve){let je=(Ft,kt)=>{var bt=wh,lt=this[bt(1099)][bt(981)]();lt[bt(809)]({texture:this[bt(1102)],mipLevel:0,origin:{x:se,y:ve},aspect:bt(768)},{buffer:this.readPickPosition_VmBuffer,offset:0,bytesPerRow:256*Math[bt(552)](4*this[bt(1102)][bt(412)]*4/256),rowsPerImage:1},{width:1,height:1}),this.device[bt(704)][bt(635)]([lt[bt(1091)]()]),this.readPickPosition_VmBuffer[bt(705)](GPUMapMode[bt(470)])[bt(442)](()=>{var ot=bt,tt=this[ot(774)][ot(827)](0,16),tt=Array[ot(1050)](new Float32Array(tt));this[ot(774)][ot(484)](),this.readPickPosition_noLocking=!0,tt[3]!=0&&D[ot(987)](tt,this[ot(1031)][ot(910)],this[ot(979)]),Ft(this.lastPickPositionValue)})};return new Promise((Ft,kt)=>{var bt=wh;this[bt(837)]?(this[bt(837)]=!1,je(Ft)):setTimeout(()=>{je(Ft)},10)})}[o(771)](){var se=o,ve;this[se(872)]&&this.fig.directData_Heartbeat&&(this[se(872)]=!1,this[se(1031)][se(606)]=!1,(ve=this.device[se(981)]())[se(913)](this[se(1056)],0,this[se(788)],0,4),this[se(1117)](ve),ve[se(913)](this.instancesArea_atomicData_VmBuffer,0,this[se(556)],0,4),ve[se(913)](this[se(985)],0,this[se(556)],4,this[se(985)][se(605)]),this.device.queue[se(635)]([ve[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,ve=this[se(1099)][se(981)]();ve.copyBufferToBuffer(this.zeroVmBuffer,0,this.meshRender_transparentColorData_VmBuffer,0,this[se(569)][se(605)]),this[se(1099)][se(704)][se(635)]([ve[se(1091)]()])}[o(991)](){var se=o;this[se(771)]();var ve=this[se(1099)][se(981)]();this[se(462)](ve),this[se(939)](ve),this[se(537)](ve),this[se(1031)].gi&&this[se(824)](ve),ve.copyBufferToBuffer(this[se(1056)],0,this[se(604)],0,this[se(604)][se(605)]),this[se(725)](ve),this[se(965)]&&this[se(1031)].kj&&ve[se(913)](this[se(946)],0,this[se(459)],0,128),this[se(1e3)]&&this[se(1031)][se(642)]&&ve[se(913)](this.lightInfo_VmBuffer,32,this.readTemp_VmBuffer2,0,64),this[se(808)]&&this[se(954)]&&ve[se(913)](this[se(920)],0,this.renderMaterial_read_VmBuffer,0,this[se(920)][se(605)]),this[se(486)].Render(ve),this[se(869)][se(991)](ve),globalThis[se(589)]&&this[se(973)](ve),this.fig[se(672)]?this[se(465)](ve):this[se(686)](ve),this[se(1031)].ksh&&this[se(814)](ve),this[se(710)]&&this.fig.xn&&(ve[se(803)](this[se(883)],0,10,this[se(692)],0),ve.copyBufferToBuffer(this[se(692)],0,this.timestampQueryResultBuffer,0,this.timestampQueryResultBuffer.size)),this[se(1099)][se(704)][se(635)]([ve[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 Rt{get[o(1046)](){var se=o;return this[se(845)]}set[o(1046)](se){var ve=o;this[ve(845)]=D[ve(760)](se)}get[o(723)](){return this._target}set[o(723)](se){var ve=o;this[ve(562)]=D[ve(760)](se)}get[o(796)](){var se=o,ve=D[se(665)](0,0,-1);return D[se(802)](ve,this[se(1116)])}constructor(se,ve){var je=o;if(this[je(845)]=D[je(807)](0,0,0),this[je(562)]=D[je(807)](1,1,1),this[je(1116)]=V[je(626)](),this.worldMatrix=M[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:D[je(807)](),upLeft_position:D[je(807)]()},se){let Ft=(bt,lt)=>{var ot=je;switch(bt[ot(1022)]){case"KeyW":this.status[ot(521)][ot(848)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(816):this[ot(953)].keyboard[ot(1057)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1090):this[ot(953)][ot(521)].left=lt,bt[ot(1096)](),bt.stopPropagation();break;case"KeyD":this[ot(953)][ot(521)][ot(1034)]=lt,bt.preventDefault(),bt[ot(517)]();break;case ot(755):this[ot(953)][ot(521)].up=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(855):this.status[ot(521)].down=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(901):this[ot(953)][ot(521)][ot(1058)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"KeyO":this[ot(953)][ot(521)][ot(693)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(446):case ot(1023):this[ot(953)][ot(521)][ot(427)]=lt,bt.preventDefault(),bt[ot(517)]();break;case"KeyK":case ot(594):this[ot(953)][ot(521)][ot(1061)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1086):case ot(532):this[ot(953)][ot(521)][ot(773)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(434):case ot(519):this[ot(953)][ot(521)][ot(861)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"ControlLeft":this[ot(953)].keyboard[ot(511)]=lt;break;case ot(970):this.status[ot(521)][ot(478)]=lt;break;case"KeyC":this[ot(953)][ot(521)][ot(651)]=lt;break;case ot(464):this.status.keyboard[ot(1030)]=lt}},kt=(window[je(801)](je(499),bt=>Ft(bt,!0)),window[je(801)]("keyup",bt=>Ft(bt,!1)),se[je(801)]("contextmenu",function(bt){var lt=je;bt[lt(1096)]()}),(bt,lt)=>{var ot=je;switch(this.status[ot(450)][ot(988)]=bt[ot(988)],bt.button){case 0:(this[ot(953)][ot(450)][ot(995)]=lt)?(this[ot(953)][ot(450)][ot(715)]=bt.clientX,this[ot(953)][ot(450)][ot(679)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot,ct;this[ze(953)][ze(416)]=D[ze(807)](tt[0],tt[1],tt[2]),tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&this.status.keyboard[ze(511)]&&(tt=this[ze(953)][ze(416)],ct=D.subtract(this.position,tt),D.normalize(ct,ct),ct=D.add(tt,D[ze(708)](ct,20)),this.setTargetAndPosition(tt,ct))})):(this.status[ot(450)][ot(424)]=bt.clientX,this.status[ot(450)][ot(880)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt.clientY).then(tt=>{var ze=ot;this[ze(953)][ze(436)]=D[ze(807)](tt[0],tt[1],tt[2]),this[ze(953)].downLeft_position[0]!=0&&this[ze(953)][ze(416)][1]!=0&&this[ze(953)][ze(416)][2]!=0&&this[ze(953)].upLeft_position[0]!=0&&this[ze(953)][ze(436)][1]!=0&&this[ze(953)].upLeft_position[2]!=0&&(D[ze(601)](this[ze(845)],D[ze(601)](this[ze(953)].upLeft_position,this[ze(953)].downLeft_position),this[ze(845)]),this.computeMatrix())}));break;case 1:this[ot(953)][ot(450)][ot(460)]=lt;break;case 2:(this.status[ot(450)].right=lt)?(this[ot(953)][ot(450)].downRightX=bt.clientX,this[ot(953)][ot(450)][ot(524)]=bt[ot(783)],ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot;tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&(this[ze(723)]=D.create(tt[0],tt[1],tt[2]))})):(this[ot(953)][ot(450)].upRightX=bt[ot(507)],this[ot(953)][ot(450)][ot(798)]=bt[ot(783)])}});se[je(887)][je(595)]=je(536),se[je(801)](je(1006),bt=>kt(bt,!0)),se.addEventListener(je(994),bt=>kt(bt,!1)),se[je(801)](je(972),bt=>{var lt=je;this[lt(953)][lt(450)][lt(507)]=bt.clientX,this[lt(953)].mouse[lt(783)]=bt[lt(783)],(this[lt(953)][lt(450)][lt(995)]||this[lt(953)][lt(450)].right)&&(this[lt(953)][lt(450)][lt(884)]-=bt[lt(884)],this[lt(953)][lt(450)][lt(757)]-=bt[lt(757)])}),se[je(801)](je(460),bt=>{var lt=je;this[lt(953)][lt(450)].scroll+=Math[lt(469)](bt.deltaY),bt[lt(1096)](),bt[lt(517)]()},{passive:!1})}}[o(1079)](kt,bt,je=D.create(0,1,0)){var Ft=o;D[Ft(760)](kt,this[Ft(562)]),D[Ft(760)](bt,this[Ft(845)]);var bt=D.normalize(D[Ft(601)](bt,kt)),kt=D[Ft(665)](0,0,1),kt=(this[Ft(1116)]=V.rotationTo(kt,bt),D[Ft(802)](D[Ft(665)](0,1,0),this[Ft(1116)])),bt=D[Ft(542)](kt,je);1e-7<D.length(bt)&&(kt=Math[Ft(785)](D.dot(kt,je)),je=V.fromAxisAngle(D[Ft(1085)](bt),kt),this[Ft(1116)]=V[Ft(645)](je,this[Ft(1116)])),this[Ft(568)]()}update(se){var ve=o,je,Ft=D[ve(802)](D[ve(665)](1,0,0),this.orientation),kt=D[ve(802)](D[ve(665)](0,1,0),this[ve(1116)]),bt=D[ve(802)](D[ve(665)](0,0,1),this[ve(1116)]);this[ve(953)][ve(450)][ve(884)]===0&&this[ve(953)][ve(450)][ve(757)]===0||(this[ve(953)].mouse[ve(988)]===2?(je=this[ve(953)].mouse.movementX*this[ve(948)]*se,se=this[ve(953)][ve(450)][ve(757)]*this.rotationSpeed*se,se=V.fromAxisAngle(Ft,se),je=V[ve(997)](kt,je),se=V[ve(645)](se,je),je=D[ve(601)](this._position,this[ve(562)]),je=D.transformQuat(je,se),D.add(this[ve(562)],je,this[ve(845)]),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])):this[ve(953)].mouse[ve(988)]),this.status[ve(450)][ve(576)]!==0&&(je=this.status[ve(450)][ve(576)]*this[ve(670)],D[ve(987)](this[ve(845)],D[ve(708)](bt,je),this[ve(845)])),this[ve(953)][ve(521)].up&&D[ve(987)](this[ve(845)],D[ve(708)](kt,this[ve(953)][ve(521)].shiftLeft?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(1064)]&&D.add(this[ve(845)],D.scale(kt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this._position),this[ve(953)][ve(521)][ve(995)]&&D[ve(987)](this._position,D[ve(708)](Ft,-(this.status.keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this[ve(953)][ve(521)][ve(1034)]&&D[ve(987)](this[ve(845)],D[ve(708)](Ft,this[ve(953)].keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(848)]&&D.add(this._position,D[ve(708)](bt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this.status[ve(521)][ve(1057)]&&D[ve(987)](this[ve(845)],D[ve(708)](bt,this[ve(953)][ve(521)].shiftLeft?4*this.keyboardSpeed:this[ve(476)]),this[ve(845)]),this[ve(953)][ve(521)][ve(1058)]&&(se=V[ve(997)](bt,-.01),this[ve(1116)]=V.multiply(se,this[ve(1116)])),this[ve(953)][ve(521)][ve(693)]&&(je=V[ve(997)](bt,.01),this.orientation=V.multiply(je,this.orientation)),this[ve(953)][ve(521)][ve(773)]&&(se=V[ve(997)](kt,.01),this.orientation=V[ve(645)](se,this[ve(1116)])),this.status[ve(521)].rightHeading&&(bt=V[ve(997)](kt,-.01),this[ve(1116)]=V[ve(645)](bt,this[ve(1116)])),this[ve(953)][ve(521)][ve(427)]&&(je=V[ve(997)](Ft,.01),this.orientation=V[ve(645)](je,this[ve(1116)])),this.status[ve(521)][ve(1061)]&&(se=V[ve(997)](Ft,-.01),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])),this.status.keyboard[ve(651)]&&(this[ve(476)]-=.01*this[ve(476)],this.keyboardSpeed<.01)&&(this[ve(476)]=.01),this[ve(953)][ve(521)].speedUp&&(this.keyboardSpeed*=1.01),this[ve(568)](),this.status[ve(450)][ve(884)]=0,this.status[ve(450)][ve(757)]=0,this.status[ve(450)][ve(576)]=0}[o(568)](){var se=o;M[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 Vt{constructor(se){var ve=o;if(this[ve(1114)]=M,this[ve(930)]=N,this[ve(923)]=D,this[ve(754)]=G,this[ve(520)]=V,this[ve(677)]=1,this.dataCallBack={},this.modelData={},this[ve(606)]=!0,this.spaceIndex_Heartbeat=!0,this.xn=!1,this[ve(654)]=!1,this.kj=!1,this.kj2=!1,this.gi=!1,this[ve(922)]={type:1,direction:D[ve(1085)](D.create(-.378604181697245,.8191225954117374,.4309258025313624)),color:D[ve(807)](1,1,1)},this[ve(509)]={fov:2*Math.PI/5,aspect:1,near:.1,far:1e3},this[ve(1069)]=0,this[ve(910)]=D.create(),this.OnInitialized=()=>{},this[ve(886)]=(kt,bt)=>{},this[ve(573)]=kt=>{},this[ve(984)]="",this[ve(1005)]="",this[ve(737)]=Date[ve(495)](),this[ve(553)]=0,this.tempRL=!0,this[ve(479)]=!1,this[ve(745)]=new Float64Array(84),console[ve(826)]("ser_V20250613"),se&&se[ve(1074)]&&se[ve(993)]){if(this[ve(993)]=se[ve(993)],this[ve(672)]=se[ve(1074)],se.Widget.scene.ser)return void console[ve(505)](ve(1059));this.cesiumWidget[ve(859)][ve(555)]=this}this.cesiumWidget?(this[ve(1088)]=new OffscreenCanvas(this[ve(672)][ve(859)][ve(1088)].width,this[ve(672)].scene.canvas[ve(864)]),this.depthCanvas=new OffscreenCanvas(this[ve(672)][ve(859)].canvas[ve(412)],this[ve(672)][ve(859)][ve(1088)][ve(864)]),this[ve(835)]=new Rt(null,this)):(this[ve(1088)]=document[ve(602)](ve(1088)),this.canvas[ve(412)]=1920,this[ve(1088)][ve(864)]=970,document[ve(455)].appendChild(this[ve(1088)]),this[ve(835)]=new Rt(this[ve(1088)],this),this.camera[ve(1079)](D[ve(807)](0,0,0),D[ve(807)](0,100,0),D[ve(807)](0,1,0))),this[ve(1084)]=[],this[ve(735)]=new ArrayBuffer(512),this[ve(439)]=new Float32Array(this[ve(735)]),this[ve(952)]=new Uint32Array(this.scene_dataBuffer),this[ve(547)]=new ArrayBuffer(96),this[ve(1075)]=new Float32Array(this[ve(547)]),this.lightInfo_dataViewF32[0]=this[ve(922)][ve(468)],this[ve(1075)][ve(895)](this.lightInfo.direction,1),this[ve(1075)].set(this[ve(922)][ve(431)],4),this[ve(1008)]=M[ve(626)](),this[ve(587)]=M[ve(626)](),this[ve(838)]=M.identity(),this[ve(640)]=M[ve(626)](),this.projectionViewMatrix=M[ve(626)](),this[ve(1024)]=M[ve(626)]();let je=!1,Ft=(kt,bt)=>{var lt=ve;switch(kt[lt(1022)]){case lt(650):je=bt,kt[lt(1096)](),kt[lt(517)]();break;case lt(638):bt||(this[lt(479)]=!this[lt(479)])}};window[ve(801)](ve(499),kt=>Ft(kt,!0)),window[ve(801)](ve(575),kt=>Ft(kt,!1)),this[ve(702)]=new yt(this),se=new v(new URL(f.p+f.u(671),f.b)),this[ve(1067)]=se[ve(759)](),this[ve(1067)][ve(801)](ve(622),kt=>{var bt=ve;if(kt[bt(836)])switch(kt[bt(836)][bt(999)]){case bt(925):this[bt(925)][kt.data.cbId]?(kt[bt(836)][bt(832)](bt(914))?this.dataCallBack[kt[bt(836)][bt(941)]].resolve(kt[bt(836)][bt(914)]):kt[bt(836)][bt(832)](bt(593))&&this[bt(925)][kt.data[bt(941)]][bt(593)](kt[bt(836)][bt(593)]),delete this.dataCallBack[kt[bt(836)][bt(941)]]):globalThis[bt(564)](kt.data);break;case bt(617):for(var lt in kt[bt(836)][bt(512)])this.modelData[bt(832)](lt)?Object[bt(726)](this.modelData[lt],kt[bt(836)].modelData[lt]):this[bt(512)][lt]=kt[bt(836)][bt(512)][lt];this[bt(432)](),this.OnModelServer(kt.data[bt(512)],kt[bt(836)][bt(1109)]);break;case bt(573):this[bt(573)](kt[bt(836)][bt(839)]);break;case bt(560):if(kt[bt(836)].targets)for(var ot of kt.data.targets)this[bt(702)].UpVmData(ot);else this.renderEngine[bt(560)](kt[bt(836)]);break;case bt(992):this[bt(702)][bt(908)](kt[bt(836)]);break;case bt(771):this[bt(702)].VisibleTreeUpdate();break;case bt(699):this[bt(1069)]=kt[bt(836)][bt(1069)];break;case bt(581):this[bt(606)]=!0;break;case bt(847):this[bt(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 ve=o;se[ve(592)]("/")!==se[ve(800)]-1&&(se+="/");var je=this[ve(1084)][ve(800)];for(let Ft=0;Ft<this[ve(1084)][ve(800)];Ft++)if(this.serverList[Ft]===se)return Ft;return this.serverList[ve(918)](se),this[ve(1067)][ve(564)]({msgType:ve(1103),serverUrl:se,serverId:je}),je}[o(545)](){let se=()=>{var ve=wh;this[ve(991)](),requestAnimationFrame(se)};requestAnimationFrame(se)}[o(842)](){var se=o;this.cesiumWidget?(ve=this[se(672)][se(859)][se(504)].uniformState,this[se(1005)]=ve[se(747)][se(770)](),this.projectionMatrix=M.frustumReverseZ(ve[se(685)].z,ve._frustumPlanes.w,ve[se(685)].y,ve[se(685)].x,ve._currentFrustum.x,ve[se(490)].y)):this[se(838)]=M[se(1113)](this.cameraParameter.fov,this[se(509)].aspect,this[se(509)][se(1108)],this.cameraParameter[se(475)]),this[se(640)]=M[se(584)](this.projectionMatrix);var ve=M.setTranslation(M.scale(M.identity(),D.create(.5,.5,1)),D[se(807)](.5,.5,0)),ve=M[se(645)](ve,this[se(838)]);this[se(1024)]=M[se(645)]([this[se(1088)].width,0,0,0,0,this[se(1088)].height,0,0,0,0,1,0,0,0,0,1],ve)}[o(991)](){var se=o,ve,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)]())):(ve=((je=Date[se(495)]())-this[se(737)])/1e3,this[se(737)]=je,this[se(835)].update(ve)),this.oldCameraData===this[se(835)][se(761)][se(770)]()&&this.instancesCount!==0||(this[se(984)]=this[se(835)][se(761)].toString(),je=D[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)]()),(ve=Array.from(this.camera[se(761)]))[12]-=this[se(910)][0],ve[13]-=this[se(910)][1],ve[14]-=this[se(910)][2],M[se(760)](ve,this[se(587)]),this[se(1008)]=M[se(584)](ve),M[se(645)](this.projectionMatrix,this.viewMatrix,this[se(574)]),this[se(706)]=M[se(584)](this[se(574)]),this[se(672)]&&(je=M[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]=ve[12],this.scene_dataViewF32[50]=ve[13],this[se(439)][51]=ve[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:M.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 ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([1]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)][ve(564)]({msgType:ve(892),modelId:se,status:1}))}HideModel(se){var ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([0]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)].postMessage({msgType:ve(892),modelId:se,status:0}))}PickId(se,ve){var je=o;return this[je(702)][je(806)](se,ve).then(Ft=>new Promise((kt,bt)=>{var lt=je,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:tt=>{kt(tt)},reject:tt=>{bt()}},this[lt(1067)][lt(564)]({msgType:lt(616),instancePtr:Ft,cbId:ot})}))}[o(527)](se,ve){var je=o;return this.renderEngine[je(806)](se,ve)}[o(577)](se,ve){var je=o;return this[je(702)].PickPosition(se,ve)}[o(766)](se,ve){var je=o,Ft;this[je(512)][se]&&((Ft=this[je(512)][se])[je(503)]=Array[je(1050)](ve),(ve=Array.from(ve))[12]-=this.accuracyOffset[0],ve[13]-=this[je(910)][1],ve[14]-=this[je(910)][2],ve=new Float32Array(ve),this.renderEngine.device.queue[je(1039)](this[je(702)][je(680)],4*Ft[je(1016)],ve),this.ddWorker[je(564)]({msgType:je(766),modelId:se,modelMatrixArr:Ft[je(503)]}))}[o(432)](){var se=o;for(var ve in this.modelData){var je,ve=this[se(512)][ve];ve[se(1016)]&&((je=Array.from(ve.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*ve[se(1016)],je))}this[se(868)](),this.UpdateExplodeAccuracyOffset()}CreateMaterial(se){return new Promise((ve,je)=>{var Ft=wh,kt=Date[Ft(495)]();this[Ft(925)][kt]={resolve:ve,reject:je},this[Ft(1067)].postMessage({msgType:Ft(634),color:se,cbId:kt})})}[o(898)](se,ve,je,Ft){var kt=o;this[kt(1067)][kt(564)]({msgType:kt(898),modelId:se,materialId:ve,color:je,overlay:Ft})}GetMaterial(se,ve){return new Promise((je,Ft)=>{var kt=wh,bt=Date.now();this[kt(925)][bt]={resolve:lt=>{je(lt)},reject:lt=>{Ft()}},this[kt(1067)][kt(564)]({msgType:kt(879),modelId:se,materialId:ve,cbId:bt})})}SetInstanceMaterialByInstancePtr(se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this.renderEngine.instanceVmBuffer,4*(se+23),new Uint32Array([ve]))}[o(513)](se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this[je(702)][je(666)],4*(se+22),new Uint32Array([ve]))}SetInstanceMaterial(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(810),materialPtr:se,idBuffer:ve.buffer},[ve[je(877)]])}SetInstanceStatus(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(969),status:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(896)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(896),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}[o(477)](se){var ve=o;se=new Uint32Array(se),this[ve(1067)][ve(564)]({msgType:ve(477),idBuffer:se.buffer},[se[ve(877)]])}[o(878)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(878),materialPtr:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(1070)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:"SetInstanceStatusByComponentIds",status:se,idBuffer:ve.buffer},[ve.buffer])}[o(746)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(746),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}CancelInstanceTransformByComponentIds(se){var ve=o;se=new Uint32Array(se),this[ve(1067)].postMessage({msgType:ve(739),idBuffer:se[ve(877)]},[se.buffer])}SetInstanceMaterialByExtendedPropertiesId(se,ve){var je=o;this.ddWorker.postMessage({msgType:je(597),materialPtr:se,extendedPropertiesIds:ve})}[o(662)](se,ve){var je=o;this.ddWorker[je(564)]({msgType:"SetInstanceStatusByExtendedPropertiesId",status:se,extendedPropertiesIds:ve})}[o(609)](se,ve){var je=o;this[je(1067)][je(564)]({msgType:je(609),transform:se,extendedPropertiesIds:ve})}[o(977)](se){var ve=o;this[ve(1067)][ve(564)]({msgType:ve(977),extendedPropertiesIds:se})}[o(776)](se,ve,je,Ft){return new Promise((kt,bt)=>{var lt=wh,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:kt,reject:bt},this[lt(1067)][lt(564)]({msgType:lt(776),x1:se,y1:ve,x2:je,y2:Ft,width:this[lt(1088)].width,height:this[lt(1088)][lt(864)],cbId:ot})})}[o(1012)](se,ve,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*(ve?-1:1),this[Ft(745)].set(je,4);for(let bt=1;bt<=Math[Ft(811)](this[Ft(745)][0]);bt+=1){var kt=D[Ft(1085)]([this.clipPlane[4*bt],this[Ft(745)][4*bt+1],this[Ft(745)][4*bt+2]]);this[Ft(745)][4*bt]=kt[0],this[Ft(745)][4*bt+1]=kt[1],this[Ft(745)][4*bt+2]=kt[2]}}this[Ft(868)]()}[o(868)](){var se=o,ve=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],M[se(584)](je,je));for(let Wt=1;Wt<=Math[se(811)](this[se(745)][0]);Wt++){var ct=this[se(745)][4*Wt],kt=this.clipPlane[4*Wt+1],bt=this[se(745)][4*Wt+2],lt=this[se(745)][4*Wt+3],ot=ct*Ft[0]+kt*Ft[1]+bt*Ft[2]+lt*Ft[3],tt=ct*Ft[4]+kt*Ft[5]+bt*Ft[6]+lt*Ft[7],ze=ct*Ft[8]+kt*Ft[9]+bt*Ft[10]+lt*Ft[11],ct=ct*Ft[12]+kt*Ft[13]+bt*Ft[14]+lt*Ft[15];ve[4*Wt]=ot,ve[4*Wt+1]=tt,ve[4*Wt+2]=ze,ve[4*Wt+3]=ct}ve[0]=this[se(745)][0]}else ve[0]=0;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(449)],0,ve)}SetExplode(se,ve,je,Ft,kt){var bt=o;se===void 0||Number.isNaN(se)||(this[bt(702)][bt(804)][0]=se),ve===void 0||Number[bt(1021)](ve)||(this[bt(702)][bt(804)][1]=ve),je===void 0||Number.isNaN(je)||(this[bt(702)].explodeParam[2]=je),Ft&&3<=Ft.length&&(this[bt(702)][bt(804)][3]=Ft[0],this.renderEngine[bt(804)][4]=Ft[1],this.renderEngine.explodeParam[5]=Ft[2]),kt&&3<=kt.length&&(se=D[bt(1085)](kt),this[bt(702)][bt(804)][6]=se[0],this[bt(702)][bt(804)][7]=se[1],this[bt(702)][bt(804)][8]=se[2]),this.UpdateExplodeAccuracyOffset()}[o(1112)](){var se=o,ve=new Float32Array(this[se(702)][se(804)]);ve[3]-=this.accuracyOffset[0],ve[4]-=this.accuracyOffset[1],ve[5]-=this[se(910)][2],this[se(702)][se(1099)][se(704)].writeBuffer(this.renderEngine[se(792)],0,ve)}[o(765)](){var se=o;let ve=this[se(672)][se(859)];if(!ve.initFine){ve[se(456)]=!0;let je={sources:[se(722)],defines:[]},Ft=new this[se(993)].ShaderSource({sources:[se(644)],defines:[]}),kt=new this[se(993)][se(860)](je),bt=ve.context[se(867)].getShaderProgram({vertexShaderSource:Ft,fragmentShaderSource:kt}),lt=new this.Cesium[se(673)]({context:ve.context,attributes:[]}),ot=(lt[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)]}),ze={bimColorTexture:()=>(this[se(991)](),ve[se(1100)]?ve.serColorTexture[se(453)]({source:ve[se(555)][se(1088)],skipColorSpaceConversion:!0}):ve.serColorTexture=new this.Cesium[se(1038)]({context:ve[se(504)],source:ve.ser[se(1088)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(1100)]),bimDepthTexture:()=>(ve.serDepthTexture?ve.serDepthTexture[se(453)]({source:ve.ser[se(515)],skipColorSpaceConversion:!0}):ve[se(890)]=new this[se(993)][se(1038)]({context:ve[se(504)],source:ve[se(555)][se(515)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(890)])},ct=new this[se(993)][se(828)]({x:0,y:0,z:0},6379137),Wt=new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)].Pass.OPAQUE,boundingVolume:ct});Wt.derivedCommands[se(487)]={command:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id},Wt[se(674)][se(487)][se(885)][se(674)]={depth:{command:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id,depthOnlyCommand:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})}},Wt.derivedCommands[se(649)]={shaderProgramId:bt.id,depthOnlyCommand:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})},Wt.fine=!0,ve.primitives[se(987)]({fine:!0,isDestroyed:()=>!1,update:()=>{ve.frameState.commandList.push(Wt)}})}}}return m}};function wh(o,f){var m=Eye();return wh=function(x,y){x=x-411;var v=m[x];return v},wh(o,f)}typeof exports=="object"&&aie(698)==typeof module?module.exports=wye():aie(728)==typeof define&&define[aie(567)]?define([],wye):aie(698)==typeof exports?exports[aie(555)]=wye():Bmr.ser=wye();function C2(o){this._earthCtrl=o,this._viewer=o.viewer,this._fig=null,this.serverAddress=""}C2.prototype.create=async function(){let o=this;return this._fig=new ser.serMain({Cesium:Vi,Widget:o._viewer}),await new Promise(f=>{o._fig.OnInitialized=()=>{f(o)}})};C2.prototype.setModelTransform=function(o,f){let m=Ee.toArray(_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.lon,f.lat,f.height)));if(f.roll){let x=be.toRadians(f.roll??0),y=Ee.fromRotationTranslation(Ut.fromRotationZ(x));Ee.multiply(m,y,m)}this._fig.SetModelTransform(o,m)};C2.prototype.showModel=function(o){this._fig.ShowModel(o)};C2.prototype.hideModel=function(o){this._fig.HideModel(o)};C2.prototype.destroy=function(){this._fig.Destroy()};C2.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})}})};C2.prototype.getModelBoundingSphere=function(o){let f=this.modelList[o],m=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box),{}),x=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box,3),{});return Ei.fromPoints([m,x],new Ei)};C2.prototype.clickSem=function(o){let f=this,m=0;f._viewer.screenSpaceEventHandler.setInputAction(function(y){m!==0&&(f._fig.SetInstanceStatusByInstancePtr(m,1),m=0),f._fig.PickId(y.position.x,y.position.y).then(v=>{v&&(m=v.instancePtr,f._fig.SetInstanceStatusByInstancePtr(v.instancePtr,2)),o&&o(v)})},Si.LEFT_CLICK)};C2.prototype.unSelect=function(o){o!==0&&this._fig.SetInstanceStatusByInstancePtr(o,1)};C2.prototype.pickWorldPosition=function(o,f,m){this._fig.PickWorldPosition(o,f).then(x=>{m&&m(x)})};C2.prototype.semModeClipping=function(o){let f=this;return new qge(f._earthCtrl,f._fig,o)};C2.prototype.setMaterialColor=function(o,f,m,x){this._fig.SetMaterialColor(o,f,[m.red,m.green,m.blue,m.alpha],x)};C2.prototype.choice=function(o){return o=o??{},o.bim=o.ser??this._fig,new $ge(o,this._earthCtrl,Vi)};C2.prototype.setExplode=function(o,f,m,x,y){this._fig.SetExplode(o,f,m,x,y)};C2.prototype.showComponent=function(o){o.showComponentArr.length>0&&this._fig.SetInstanceStatus(o.status,o.showComponentArr)};var ZMt=C2;var Hmr=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(y,v){o.materials[v].extensions.KHR_technique_webgl.values=o.materials[v].values,o.materials[v].extensions.KHR_techniques_webgl=o.materials[v].extensions.KHR_technique_webgl;let C=o.materials[v].extensions.KHR_techniques_webgl;for(let T in C.values){let S=x[C.technique].uniforms;for(let w in S)if(S[w]===T){C.values[w]=C.values[T],delete C.values[T];break}}}),x.forEach(function(y){for(let v in y.attributes){let C=y.attributes[v];y.attributes[v]=y.parameters[C]}for(let v in y.uniforms){let C=y.uniforms[v];y.uniforms[v]=y.parameters[C]}})}},Pye=typeof window<"u"?window:typeof self<"u"?self:{},Lye=setTimeout(()=>{Lye=void 0,Pye.logSmartEarth&&Pye.logSmartEarth()},1e4);function OMt(o,f){ia.supportsImageRenderingPixelated()&&(o.viewer.resolutionScale=f?window.devicePixelRatio:1),o.viewer.scene.fxaa=f,o.viewer.scene.postProcessStages.fxaa.enabled=f}function id(o,f={},m,x,y){this._core=new Av(this),this._cesium=Vi,Lye&&(clearTimeout(Lye),Lye=void 0,f.VERSION!==!1&&Pye.logSmartEarth&&Pye.logSmartEarth()),this.G=65535,m=m??si.EMPTY_OBJECT,F(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=qZe();let v=f.language??Y0.ZH_CN;this.i18n=new FMt(v),f.toolbar=f.toolbar??!1,f.baseLayerPicker=f.baseLayerPicker??!1,f.shadows=!1,f.skyAtmosphere=new qq,f.terrainShadows=cl.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:T=!1}=C;f.contextOptions={webgl:{alpha:T,preserveDrawingBuffer:!0},failIfMajorPerformanceCaveat:!1,ellipsoidCoordinates:f.ellipsoidCoordinates},f.navigation=!0,f.disableRightClickMenu=!0,typeof f=="string"?f.baseLayer=new Up(new V1({url:f})):(f.url&&(f.baseLayer=new Up(new V1({url:f.url}))),this._core.extend(f,f,!0));let S=F(f.baseLayer),w;if(f.baseLayerPicker){S=!0;let R=this.getAllImageryView();if(f.basemaps)f.basemaps.forEach(P=>{f.imageryProviderViewModels.push(R[P])});else for(let P in R)f.imageryProviderViewModels.push(R[P])}else!f.imageryProvider&&!f.baseLayer?(w=Up.fromProviderAsync(V1.fromUrl(`${globalThis.GEOWORLD_BASE_URL}Workers/image/earth.jpg`)),f.baseLayer=w):(S=!0,f.imageryProvider&&(f.baseLayer=Up.fromProviderAsync(f.imageryProvider)));let E={destination:Z.fromDegrees(f.x?f.x:93.53987,f.y?f.y:24.77445,f.z?f.z:257935006e-1),orientation:{heading:be.toRadians(f.heading??0),pitch:be.toRadians(f.pitch??-90),roll:be.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=Xe.WHITE,this._Viewer.shadowMap.size=2048,this._Viewer._cesiumWidget._creditContainer.style.display="none",this._Viewer.terrainShadows=cl.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 R="rgba(0,0,0,0)";this._Viewer.scene.backgroundColor=Xe.fromCssColorString(R),this._Viewer.scene.light=new U4({direction:new Z(1,-.9,-.9)}),f.backgroundImage&&(this._Viewer.container.style.backgroundImage=`url(${f.backgroundImage})`)}else this._Viewer.scene.globe.depthTestAgainstTerrain=!0;if(f.defaultImagery&&!S&&window.navigator.onLine&&this.judgeOnline().then(async R=>{R&&(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(w))}).catch(R=>{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 tfe(this),this._camera=new Ipe(this),this._measure=new Hpe(this),this._shapeTool=new wCt(this),this._editTool=new Kpe(this),this._factory=new QR(this),this._tools=new fpe(this),this._edit=new wge(this),this._analysis=new Kge(this),this._userScene=new gge(this,m),this._view=new $Rt(this),this._bim=new rAt(this),this._ser=new ZMt(this),this._MilitaryPlotting=new yye(this),this._atmosphere=new ubt(this),this._simulate=new WMt(this),f.infoBar&&(this._infoBar=new PIt(this)),f.maxViewHeight&&(this._Viewer.scene.screenSpaceCameraController.maximumZoomDistance=f.maxViewHeight),f.minViewHeight||f.maxViewPitch){this.minViewHeight=f.minViewHeight,this.maxViewPitch=f.maxViewPitch&&be.toRadians(f.maxViewPitch);let R=0,P=this._Viewer.scene,A=!1;if(this.maxViewPitch){let M=new Lr(this._Viewer.scene.canvas);M.setInputAction(()=>{A=!0},Si.MIDDLE_DOWN),M.setInputAction(()=>{A=!1},Si.MIDDLE_UP),M.setInputAction(()=>{A=!0},Si.RIGHT_DOWN),M.setInputAction(()=>{A=!1},Si.RIGHT_UP)}this._Viewer.scene.preRender.addEventListener(()=>{let M=this._Viewer.camera;if(!(!M||!M.positionCartographic)){if(this.maxViewPitch){let V=M.pitch;A&&V>this.maxViewPitch?(V=this.maxViewPitch,M.setView({destination:this.oldPosition||M.position.clone(),orientation:{heading:M.heading,pitch:V,roll:0}})):this.oldPosition=M.position.clone()}if(this.minViewHeight){R=P.globe.getHeight(M.positionCartographic)||R;let G,D,N=M.positionCartographic.height-R;this._Viewer.scene.globe.translucency.enabled||this._Analysis&&(this._Analysis._UndergroundMode&&this._Analysis._UndergroundMode.isUndergroundMode||this._Analysis._StreetView&&this._Analysis._StreetView.isStreetView)?(G=M.positionCartographic.height<-200,D=-200):(G=N<this.minViewHeight,D=R+this.minViewHeight);let k=M.pitch<0?M.pitch:0;G?M.setView({destination:this.oldPosition||Z.fromRadians(M.positionCartographic.longitude,M.positionCartographic.latitude,D),orientation:{heading:M.heading,pitch:k,roll:0}}):this.oldPosition=M.position.clone()}}})}let L={};Ts.DEFAULT_VIEW_RECTANGLE=vi.fromDegrees(79,0,130,60),f.navigationOption=f.navigationOption??si.EMPTY_OBJECT,L.defaultResetView=f.navigationOption.defaultResetView??Gt.fromCartesian(E.destination),L.enableCompass=f.navigationOption.enableCompass??!0,L.enableZoomControls=f.navigationOption.enableZoomControls??!0,L.enableDistanceLegend=f.navigationOption.enableDistanceLegend??!0,L.enableCompassOuterRing=f.navigationOption.enableCompassOuterRing??!0,this._Viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(this._cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._Viewer.extend(this._cesium.viewerCesiumNavigationMixin,L),this.camera.setView(E),y&&typeof y=="function"&&y(),IIt.parse(this,m),f.mouseDownView&&this.mouseDownView(!0),f.printLog&&this.addLogo(),Object.defineProperties(Ay.prototype,{_cachedGltf:{configurable:!0,set:function(R){this._vtxf_cachedGltf=R,this._vtxf_cachedGltf&&this._vtxf_cachedGltf._gltf&&Hmr(this._vtxf_cachedGltf._gltf)},get:function(){return this._vtxf_cachedGltf}}}),f.disableRightClickMenu&&(document.oncontextmenu=function(){return!1});let I=function(R){if(R.cesiumWidget._supportsImageRenderingPixelated&&window&&window.devicePixelRatio){let A=window.devicePixelRatio;for(;A>=2;)A/=2;R.resolutionScale=A}};G1.prototype.getRenderedBestLevelInfo=function(){let R=this.getRenderedLevelInfo(),P=0;for(let A in R)P<Number(A)&&(P=Number(A));return{bestLevel:P,count:R[P]}},G1.prototype.getRenderedLevelInfo=function(){let R=[];return this._tilesToRender.forEach(function(P){R[P.level]===void 0&&(R[P.level]=0,R[P.level]++)}),R},OMt(this,!0)}Object.defineProperties(id.prototype,{environment:{get:function(){return this._environment}},entities:{get:function(){return this._Viewer.dataSourceDisplay.defaultDataSource.entities}},enableAA:{set:function(o){OMt(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 Av(this)),this._Core}},Analysis:{get:function(){return this._Analysis||(this._Analysis=new QIt(this._Viewer,Vi)),this._Analysis}},Creator:{get:function(){return this._Creator||(this._Creator=new Tye(this._Viewer,Vi)),this._Creator}},projectTree:{get:function(){return this._ProjectTree||(this._ProjectTree=new VMt(this._Viewer,Vi,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 wt(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._bim}},ser:{get:function(){if(!this._ser)throw new wt(`${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}}});id.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($2.createBrightnessStage()),this.coreMap.scene.brightness.enabled=f,this.coreMap.scene.brightness.uniforms.brightness=Number(m)};id.prototype.judgeOnline=function(){let o=document.createElement("img"),f=new Promise((x,y)=>{let v=setTimeout(()=>{o&&(o.src="",o.remove(),o=null),clearTimeout(v),y("Timeout")},5e3)}),m=new Promise((x,y)=>{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])};id.prototype.addLogo=function(){let o=this;queueMicrotask(()=>{let f=` +`};class gt{constructor(se,ve){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)]=ve,this[je(1099)]=ve[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)}}]}),kt=(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)}}]})),bt=(this[je(933)]=this[je(1099)][je(866)]({layout:kt,entries:[{binding:0,resource:{buffer:this.renderEngine[je(688)]}}]}),this.device[je(917)]({bindGroupLayouts:this[je(702)].multiDrawIndirect?[Ft]:[Ft,kt]})),lt=at[je(1022)];this[je(702)][je(1035)]?lt=lt[je(926)](je(904),""):(lt=lt[je(926)](je(929),je(1009)),lt+=je(1093)),se=this[je(1099)][je(720)]({code:q[je(1022)]+lt}),this[je(955)]=this[je(1099)][je(950)]({layout:bt,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)]||((ve=this.device[je(968)]({colorFormats:[this[je(1017)].format],depthStencilFormat:this.alpha_depth_Texture[je(980)]}))[je(689)](0,this.alpha_BingGroup),ve[je(501)](this[je(955)]),ve[je(689)](1,this[je(933)]),ve.drawIndirect(this.renderEngine[je(812)],0),this.alpha_RenderBundle=ve[je(1091)]()),this[je(546)]()}[o(991)](se){var ve=o,je=se.beginRenderPass(this[ve(1028)]);this.renderEngine[ve(1035)]?(je[ve(689)](0,this.alpha_BingGroup),je[ve(501)](this[ve(955)]),je.multiDrawIndirect(this[ve(688)],0,393216,this[ve(812)],0)):je.executeBundles([this[ve(1083)]]),je[ve(482)](),this[ve(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 ve=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:ve,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:[ve]}),compute:{module:this.device[se(720)]({code:dt[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(585)](se){var ve=o,je=se[ve(911)]();je[ve(689)](0,this[ve(924)]),je.setPipeline(this.edgeMergeComputePipeline),je[ve(624)](this[ve(702)][ve(752)],this[ve(702)][ve(899)]),je[ve(482)](),se.copyTextureToTexture({texture:this[ve(893)]},{texture:this.renderEngine[ve(502)]},{width:this.edgeMerge_color_Texture[ve(412)],height:this[ve(893)][ve(864)]})}}let Et={code:o(664)};class et{constructor(se,ve){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)]=ve,this[je(1099)]=ve.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)]}}]}),ve=this[je(1099)][je(917)]({bindGroupLayouts:[se]}),se=this[je(1099)][je(720)]({code:q[je(1022)]+Et.code}),this.alpha_Pipeline=this[je(1099)][je(950)]({layout:ve,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 ve=o;this[ve(1031)].instancesCount!==0&&((se=se[ve(675)](this[ve(1028)]))[ve(689)](0,this[ve(1054)]),se.setPipeline(this[ve(955)]),se.draw(8*this[ve(1031)][ve(1069)]),se[ve(482)]())}}class yt{constructor(se){var ve=o;this.fig=se,this[ve(778)]=0,this[ve(700)]=0,this[ve(1035)]=!1,this[ve(710)]=!0,this.readTemp_noLocking=!0,this[ve(1e3)]=!0,this[ve(983)]=!0,this[ve(837)]=!0,this[ve(425)]=1,this[ve(628)]=2,this[ve(767)]=3,this.vm_target_meshLod=4,this[ve(934)]=5,this[ve(561)]=6,this[ve(903)]=7,this[ve(1025)]=32,this[ve(804)]=new Float32Array(9),this[ve(795)]=20,this.spaceTotalCount=0,this[ve(598)]=10,this[ve(775)]=1e6,this[ve(858)]=new ArrayBuffer(64),this[ve(653)]=new Uint32Array([10,0,0,0]),this[ve(786)]=1e5,this[ve(915)]=Math.ceil(this.lightBodiesAssociateCount/1024),this[ve(764)]=1e6,this[ve(540)]=4096,this[ve(944)]=new Float32Array(128),this[ve(697)]=new Uint32Array(this[ve(944)][ve(877)]),this[ve(819)]=128,this[ve(1047)]=32,this[ve(881)]=this[ve(819)]-(this.blur_filterSize-1),this.blur_batch=[4,4],this[ve(630)]=0,this[ve(518)]=new Float32Array(4),this[ve(541)]=new Float32Array(128),this.volumeRender_Uniform_DataView=new Float32Array(128),this[ve(667)]=new Float32Array(128),this[ve(719)]=new Uint32Array(this[ve(667)].buffer),this.renderToCanvas_Uniform_DataView=new Float32Array([1,1,.1]),this[ve(681)]=new Uint32Array([27,0,0,0]),this.lastPickPositionValue=D[ve(807)](),this[ve(872)]=!0,this.allow_read_renderMaterial=!0,this[ve(954)]=!1,navigator[ve(437)].requestAdapter({powerPreference:"high-performance"}).then(je=>{var Ft=ve;if(je!==null){this[Ft(947)]=je;var kt,bt=Array[Ft(1050)](je[Ft(840)]||[]),lt={};for(kt in je[Ft(608)])lt[kt]=je[Ft(608)][kt];je[Ft(935)]({requiredFeatures:bt,requiredLimits:lt})[Ft(442)](ze=>{var tt=Ft;this[tt(1099)]=ze,this[tt(778)]=ze.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__&&((ze=document.createElement(tt(1088))).style=tt(558),document[tt(455)].appendChild(ze),this[tt(797)]=ze[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)}),(ze=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)](ze),this[tt(733)]=ze[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)}),(ze=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)](ze),this.context3=ze[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)}),(ze=document.createElement(tt(1088))).style=tt(716),document[tt(455)][tt(621)](ze),this[tt(657)]=ze[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 ze=this[tt(1099)].createCommandEncoder(),ct=ze[tt(675)]({colorAttachments:[null]});this[tt(1035)]=!!ct.multiDrawIndirect,ct.end(),ze[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 gt(this[se(1031)],this),this[se(869)]=new et(this.fig,this),globalThis.__ser_isDev__&&this[se(1010)]()}[o(560)](se){var ve=o,je=performance.now();switch(se.target){case this[ve(425)]:if(se[ve(1016)]&&se[ve(563)])this[ve(680)][ve(605)],se[ve(1016)],se.buf[ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(680)],se[ve(1016)],se[ve(563)]);else if(se[ve(413)])for(var Ft in se[ve(413)])this[ve(1099)].queue[ve(1039)](this.modelVmBuffer,~~Ft,se[ve(413)][Ft]);else se[ve(1089)]&&this[ve(1099)].queue[ve(1039)](this[ve(680)],se[ve(1016)],new ArrayBuffer(se[ve(1089)]));break;case this[ve(628)]:this.instanceVmBuffer[ve(605)],se.vmOffset,se[ve(563)].byteLength,this[ve(1099)][ve(704)][ve(1039)](this.instanceVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(767)]:this[ve(1092)][ve(605)],se[ve(1016)],se[ve(563)].byteLength,this[ve(1099)].queue.writeBuffer(this.meshVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(419)]:this[ve(580)][ve(605)],se[ve(1016)],se[ve(563)][ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(580)],se.vmOffset,se[ve(563)]);break;case this.vm_target_meshLod_up:this.updateMeshOffset_VmBuffer[ve(605)],se[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,se.buf);var kt=this[ve(1099)][ve(981)]();this[ve(421)](kt,se[ve(815)]),this[ve(1099)][ve(704)][ve(635)]([kt[ve(1091)]()]);break;case this[ve(561)]:this[ve(1099)][ve(704)].writeTexture({texture:this[ve(962)],origin:se[ve(534)]},se.albedo_buf,se[ve(743)],se.size),se[ve(671)]&&this[ve(1099)].queue[ve(458)]({texture:this.normal_Texture,origin:se.origin},se[ve(671)],se[ve(743)],se[ve(605)]),se[ve(423)]&&this[ve(1099)][ve(704)][ve(458)]({texture:this[ve(777)],origin:se[ve(534)]},se[ve(423)],se[ve(743)],se[ve(605)]);break;case this[ve(903)]:this[ve(792)].size,se[ve(1016)],se.buf[ve(829)],this.device[ve(704)][ve(1039)](this.operateVmBuffer,se[ve(1016)],se[ve(563)])}je<performance[ve(495)]()-5&&console.log(ve(927),performance.now()-je,se[ve(723)])}OrganizeMeshVmData(se){var ve=o,je,Ft=this[ve(1099)][ve(981)]();for(je of se[ve(937)])this[ve(711)][ve(605)],je[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,je[ve(563)]),this[ve(421)](Ft,je[ve(815)]);for(let bt=0;bt<se[ve(652)][ve(800)];bt+=3){let lt=se[ve(652)][bt],ot=se[ve(652)][bt+1],tt=se.copyList[bt+2];for(;;){if(!(tt>this[ve(647)][ve(605)])){Ft.copyBufferToBuffer(this[ve(1092)],ot,this[ve(647)],0,tt),Ft.copyBufferToBuffer(this.copyVmBuffer,0,this.meshVmBuffer,lt,tt);break}var kt=this[ve(647)][ve(605)];Ft[ve(913)](this[ve(1092)],ot,this[ve(647)],0,kt),Ft.copyBufferToBuffer(this[ve(647)],0,this[ve(1092)],lt,kt),ot+=kt,lt+=kt,tt-=kt}}this[ve(1099)][ve(704)].submit([Ft[ve(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 ve=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)}}]}),ve=(this[se(960)]=this[se(1099)][se(866)]({layout:ve,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:[ve]}));this[se(1097)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:q.code+k[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],instanceItemVmSize:this.instanceItemVmSize}}})}[o(1117)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(1097)]),se.setBindGroup(0,this[ve(960)]),se[ve(624)](Math.ceil(this[ve(1031)].instancesCount/this[ve(1099)][ve(608)][ve(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 ve=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)}}]}),ve=(this[se(544)]=this[se(1099)].createBindGroup({layout:ve,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:[ve]})),ve=(this[se(668)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+U.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:ve,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:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+B[se(1022)]+O[se(1022)]}),entryPoint:se(817),constants:{multiDrawIndirect:this.multiDrawIndirect?1:0}}})}[o(462)](se){var ve=o;this.fig[ve(1069)]!==1&&(se.copyBufferToBuffer(this[ve(1056)],0,this[ve(812)],0,this[ve(812)][ve(605)]),(se=se.beginComputePass()).setPipeline(this[ve(668)]),se[ve(689)](0,this.MakeCommandComputeBingGroup),se[ve(624)](Math.ceil(this[ve(1031)][ve(1069)]/this[ve(1099)][ve(608)][ve(963)])),se.setPipeline(this[ve(565)]),se.setBindGroup(0,this[ve(734)]),se.dispatchWorkgroups(1),se[ve(482)]())}[o(612)](){var se=o;this.updateMeshOffset_VmBuffer=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST});var ve=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)}}]}),ve=(this[se(1041)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this.updateMeshOffset_VmBuffer}},{binding:1,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this.updateMeshOffsetComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:K[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)].maxComputeInvocationsPerWorkgroup}}})}[o(421)](se,ve){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)](ve/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,ve=-2147483648,je=(this[se(1099)][se(704)][se(1039)](this.readMesh_atomic_VmBuffer,0,new Int32Array([je,je,je,ve,ve,ve])),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:q.code+z.code+ae[se(1022)]+O[se(1022)]+oe.code}),entryPoint:se(817),constants:{spaceUnit:this.spaceUnit}}})}[o(725)](se){var ve=o;this[ve(1099)].queue[ve(1039)](this[ve(443)],0,this[ve(858)]),se=se.beginComputePass({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(492)]),se.setBindGroup(0,this.readMeshComputeBingGroup),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)][se(720)]({code:ie.code+oe[se(1022)]}),entryPoint:se(817),constants:{lightBodiesSize:this[se(795)],spaceTotalCount:this[se(1107)]}}})}LightBodiesAssociate(se){var ve=o;this[ve(653)][0]+=this[ve(786)],this[ve(653)][0]*this.lightBodiesSize>this[ve(1107)]&&(this[ve(653)][0]=10),this[ve(1099)][ve(704)][ve(1039)](this[ve(906)],0,this[ve(653)]),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:6,endOfPassWriteIndex:7}}),se[ve(689)](0,this[ve(998)]),se.setPipeline(this[ve(779)]),se.dispatchWorkgroups(this[ve(915)]),se.end()}[o(823)](){var se=o,ve=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)}}]}),ve=(this[se(1015)]=this.device[se(866)]({layout:ve,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:[ve]}));this[se(676)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:O.code+te.code+oe.code}),entryPoint:"main",constants:{}}}),this[se(1040)]=this[se(1099)].createComputePipeline({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:O.code+re[se(1022)]+oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(718)](se){var ve=o,je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:2,endOfPassWriteIndex:3}});je[ve(689)](0,this[ve(1015)]),je.setPipeline(this[ve(676)]),je[ve(624)](Math[ve(552)](this[ve(764)]/128)),je.end(),this.LightBodiesRemoveDuplicatesIndirect(se)}[o(818)](){var se=o,ve=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)}}]}),ve=(this.LightBodiesRemoveDuplicatesComputeBingGroup=this[se(1099)][se(866)]({layout:ve,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:[ve]}));this.LightBodiesRemoveDuplicatesComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:ee[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(694)](se){var ve=o;se=se[ve(911)](),se.setBindGroup(0,this[ve(713)]),se.setPipeline(this[ve(1055)]),se.dispatchWorkgroupsIndirect(this[ve(551)],0),se.end()}LightBodiesRemoveDuplicatesIndirectIntend(){var se=o,ve=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)}}]}),ve=(this[se(1078)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:2,resource:{buffer:this[se(1002)]}},{binding:3,resource:{buffer:this[se(551)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(1077)]=this.device[se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:se(433)}),entryPoint:"main",constants:{lightBodiesBounceCount:this[se(764)]}}})}LightBodiesRemoveDuplicatesIndirect(se){var ve=o;se=se[ve(911)](),se[ve(689)](0,this[ve(1078)]),se[ve(501)](this[ve(1077)]),se.dispatchWorkgroups(1),se[ve(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 ve=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:ve,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)]?[ve]:[ve,je]})),kt=Y[se(1022)];this.multiDrawIndirect?kt=kt[se(926)]("@group(1) @binding(0) var<storage,read> renderIndex: array<u32>;",""):(kt=kt[se(926)]("let ri = vec2<u32>(input.instanceIndex,input.vertexIndex);",se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt});this.meshRenderPipeline=this[se(1099)][se(950)]({layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,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)]||((bt=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)]),bt[se(501)](this[se(1087)]),bt[se(689)](1,this[se(481)]),bt[se(1044)](this[se(812)],0),this[se(874)]=bt.finish())}[o(939)](se){var ve=o;se[ve(913)](this.meshRenderAtomic_InitData_VmBuffer,0,this[ve(717)],0,16),se[ve(913)](this[ve(1056)],0,this[ve(907)],0,this[ve(907)].size),se=se[ve(675)](this[ve(974)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(789)]),se[ve(501)](this[ve(1087)]),se[ve(1035)](this[ve(688)],0,393216,this.indirect_render_VmBuffer,0)):se[ve(834)]([this[ve(874)]]),se[ve(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 ve=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:ve,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)]?[ve]:[ve,je]})),kt=J[se(1022)];this[se(1035)]?kt=kt[se(926)](se(904),""):(kt=kt[se(926)](se(929),se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt+O.code});this[se(1104)]=this[se(1099)].createRenderPipeline({label:se(1104),layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,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)]||((bt=this[se(1099)][se(968)]({colorFormats:[this[se(500)][se(980)]],depthStencilFormat:this[se(559)][se(980)]}))[se(689)](0,this[se(414)]),bt[se(501)](this.renderShadowPipeline),bt[se(689)](1,this.renderShadowBindGroup_renderIndex),bt[se(1044)](this[se(812)],0),this[se(496)]=bt[se(1091)]())}[o(537)](se){var ve=o;this.renderShadowRenderPassDescriptor[ve(1052)][ve(703)]=this[ve(707)],se=se[ve(675)](this[ve(1049)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(414)]),se.setPipeline(this.renderShadowPipeline),se[ve(1035)](this[ve(688)],0,393216,this[ve(812)],0)):se[ve(834)]([this[ve(496)]]),se[ve(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 ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ve=(this[se(691)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(907)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this.device[se(917)]({bindGroupLayouts:[ve]}));this[se(1007)]=this.device.createComputePipeline({layout:ve,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 ve=o;se[ve(913)](this[ve(907)],4,this[ve(596)],0,4),se=se[ve(911)](),se[ve(689)](0,this.dynamicSpaceComputeBingGroup),se[ve(501)](this.dynamicSpaceComputePipeline),se[ve(538)](this.dynamicSpaceIndirect_VmBuffer,0),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this.device.createShaderModule({code:ae[se(1022)]+Se.code}),entryPoint:se(817),constants:{}}})}[o(428)](se){var ve=o;this[ve(944)][ve(895)](this[ve(1031)][ve(1008)]),this[ve(944)][ve(895)](this.fig[ve(838)],16),this[ve(944)][ve(895)](this[ve(1031)][ve(640)],32),this[ve(944)][ve(895)](this[ve(1031)][ve(1024)],48),this.ssrReflections_Uniform_DataView[64]=this.fig[ve(509)][ve(1108)],this.ssrReflections_Uniform_DataView[65]=this[ve(1031)].cameraParameter.far,this[ve(944)][66]=5,this[ve(944)][67]=2e3,this.ssrReflections_Uniform_DataView[68]=.5,this[ve(944)][69]=.2,this[ve(944)][70]=.95,this.ssrReflections_Uniform_DataView[71]=20,this[ve(944)][72]=1,this.ssrReflections_Uniform_DataView[73]=.9,this[ve(697)][74]=4294967295*Math.random(),this[ve(697)][75]=4294967295*Math[ve(1080)](),this.ssrReflections_Uniform_DataViewU32[76]=4294967295*Math[ve(1080)](),this[ve(1099)].queue[ve(1039)](this.ssrReflections_Uniform_VmBuffer,0,this.ssrReflections_Uniform_DataView);var je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}});je[ve(689)](0,this[ve(961)]),je[ve(501)](this.ssrReflectionsComputePipeline),je.dispatchWorkgroups(this[ve(752)],this[ve(899)]),je.end(),se[ve(603)]({texture:this.ssr_color_accumulated_Texture},{texture:this.ssr_color_Texture},{width:this[ve(1105)][ve(412)],height:this.ssr_color_Texture[ve(864)]})}ImageBlurIntend(){var se=o;this[se(891)]=this[se(1099)].createComputePipeline({layout:se(772),compute:{module:this.device[se(720)]({code:ce.code})}});var ve,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)]}),kt=Ft,bt=(ve=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage[se(844)]}),new Uint32Array(ve.getMappedRange())[0]=0,ve[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)](bt,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:bt}}]}),this[se(591)]=this.device.createBindGroup({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:kt[se(1045)]()},{binding:2,resource:Ft[se(1045)]()},{binding:3,resource:{buffer:ve}}]}),this[se(418)]=this[se(1099)][se(866)]({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:Ft[se(1045)]()},{binding:2,resource:kt.createView()},{binding:3,resource:{buffer:je}}]})}[o(529)](se){var ve=o;if(0<this[ve(630)]){var je=se[ve(911)]();je.setPipeline(this.blurComputePipeline),je[ve(689)](0,this[ve(1027)]);for(let Ft=0;Ft<this[ve(630)];++Ft)je[ve(689)](1,this[ve(591)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)].canvas[ve(864)]/this[ve(533)][1])),je[ve(689)](1,this[ve(418)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)][ve(1088)].height/this[ve(533)][1]));je[ve(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 ve=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:ve,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:pe.code}));this[se(841)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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 ve=o;!this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(995)]||this[ve(1031)][ve(835)][ve(953)].mouse.downLeftX==this.fig[ve(835)][ve(953)].mouse[ve(507)]&&this.fig[ve(835)].status[ve(450)][ve(679)]==this[ve(1031)][ve(835)][ve(953)][ve(450)].clientY?this[ve(518)][ve(895)]([0,0,0,0]):this[ve(518)][ve(895)]([(this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(507)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(715)])/this.finalColor_Texture[ve(412)],(this[ve(1031)][ve(835)].status[ve(450)][ve(783)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(679)])/this[ve(502)][ve(864)],1]),this[ve(1099)][ve(704)][ve(1039)](this[ve(982)],0,this[ve(518)]),this[ve(791)][ve(566)][0][ve(703)]=this.context[ve(696)]()[ve(1045)](),se=se[ve(675)](this[ve(791)]),se.setPipeline(this.finalDisplayPipeline),se[ve(689)](0,this[ve(851)]),se[ve(729)](6),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q.code+Oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(444)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(862)]),se[ve(689)](0,this[ve(996)]),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(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 kt=se;Ft[kt(871)]()[kt(442)](bt=>{var lt=kt;bt=new Float32Array(bt),this[lt(1099)][lt(704)].writeTexture({texture:this.volumeRender_3dData_Texture},bt,{bytesPerRow:7200,rowsPerImage:1800},[3600,1800,50])})});var ve=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:ve}]}),this[se(615)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[je]}),compute:{module:this[se(1099)].createShaderModule({code:Le[se(1022)]+q[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(440)](se){var ve=o;this[ve(543)][ve(895)](this[ve(1031)][ve(640)]),this.volumeRender_Uniform_DataView[ve(895)](this[ve(1031)][ve(587)],16),this[ve(1099)].queue[ve(1039)](this[ve(856)],0,this.volumeRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se.setPipeline(this[ve(615)]),se[ve(689)](0,this.volumeRenderComputeBingGroup),se[ve(624)](this.readMesh_dispatchWorkgroupsX,this[ve(899)]),se[ve(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)](kt=>{var bt=Ft;this[bt(945)].size,kt[bt(829)],this[bt(1099)][bt(704)][bt(1039)](this[bt(945)],0,kt)})}),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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)][se(720)]({code:Ve.code+q.code+ae[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(949)](se){var ve=o;this.streamRender_Uniform_DataView.set(this.fig.projectToPixelMatrix),this[ve(667)][ve(895)](this[ve(1031)].viewMatrix,16),this[ve(667)][ve(895)]([.4,5,.95],32),this[ve(719)][ve(895)]([4294967295*Math.random(),4294967295*Math[ve(1080)](),4294967295*Math[ve(1080)]()],35),this[ve(1099)][ve(704)].writeBuffer(this[ve(843)],0,this.streamRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(570)]),se[ve(689)](0,this[ve(494)]),se[ve(624)](this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(1010)](){var se=o,ve=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:ve,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)]})),ve=(this[se(852)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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:ve,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:he[se(1022)]})),ve=(this[se(916)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),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:ve,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:fe[se(1022)]})),ve=(this[se(641)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),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:ve,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:de[se(1022)]}));this.renderDebugTest4Pipeline=this[se(1099)].createRenderPipeline({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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 ve=o;this.renderDebugTestRenderPassDescriptor[ve(566)][0].view=this.context1[ve(696)]()[ve(1045)]();var je=se[ve(675)](this[ve(430)]),je=(je[ve(501)](this[ve(852)]),je[ve(689)](0,this.renderDebugTest1BindGroup),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this[ve(733)][ve(696)]().createView(),se.beginRenderPass(this[ve(430)])),je=(je[ve(501)](this[ve(916)]),je.setBindGroup(0,this[ve(727)]),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this.context3[ve(696)]()[ve(1045)](),se[ve(675)](this.renderDebugTestRenderPassDescriptor)),je=(je[ve(501)](this[ve(641)]),je.setBindGroup(0,this.renderDebugTest3BindGroup),je.draw(6),je[ve(482)](),this[ve(430)].colorAttachments[0][ve(703)]=this[ve(657)][ve(696)]()[ve(1045)](),se.beginRenderPass(this[ve(430)]));je[ve(501)](this[ve(989)]),je[ve(689)](0,this.renderDebugTest4BindGroup),je[ve(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 ve=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)}}]}),ve=(this[se(928)]=this[se(1099)][se(866)]({layout:ve,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:[ve]})),je=this[se(1099)][se(720)]({code:q[se(1022)]+$e.code});this[se(805)]=this[se(1099)].createRenderPipeline({label:se(781),layout:ve,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 ve=o;this[ve(1004)][0]=this[ve(1031)][ve(672)][ve(859)].frameState.useLogDepth?1:0,this[ve(1004)][1]=this[ve(1031)][ve(672)].scene.context[ve(420)][ve(1003)].x,this[ve(1004)][2]=this.fig[ve(672)][ve(859)][ve(504)][ve(420)][ve(794)],this[ve(1099)][ve(704)][ve(1039)](this[ve(659)],0,this[ve(1004)]),this[ve(660)][ve(566)][0][ve(703)]=this[ve(504)][ve(696)]()[ve(1045)](),this.renderToCanvasRenderPassDescriptor.colorAttachments[1].view=this[ve(506)][ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(660)]),se.setPipeline(this.renderToCanvasPipeline),se[ve(689)](0,this[ve(928)]),se.draw(6),se[ve(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]})),ve=this[se(1099)][se(720)]({code:q[se(1022)]+Ce[se(1022)]}),je={layout:je,vertex:{module:ve,entryPoint:"vert_main",buffers:[],constants:{spaceUnit:this[se(598)],lightBodiesSize:this[se(795)]}},fragment:{module:ve,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 ve=o;this[ve(1099)][ve(704)][ve(1039)](this[ve(888)],0,this[ve(681)]),this[ve(1051)].colorAttachments[0].view=this.context[ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(1051)]),se.setPipeline(this.voxelRenderPipeline),se.setBindGroup(0,this[ve(684)]),se[ve(1044)](this[ve(951)],0),se[ve(482)]()}[o(806)](se,ve){return new Promise((je,Ft)=>{var kt=wh,bt;this[kt(983)]?(this[kt(983)]=!1,(bt=this.device[kt(981)]())[kt(809)]({texture:this[kt(793)],mipLevel:0,origin:{x:se,y:ve},aspect:kt(768)},{buffer:this[kt(497)],offset:0,bytesPerRow:256*Math[kt(552)](4*this[kt(793)][kt(412)]/256),rowsPerImage:1},{width:1,height:1}),this.device.queue.submit([bt[kt(1091)]()]),this[kt(497)][kt(705)](GPUMapMode[kt(470)]).then(()=>{var lt=kt,ot=this[lt(497)][lt(827)](0,4),ot=new Uint32Array(ot)[0];this[lt(497)].unmap(),this.readPickId_noLocking=!0,je(ot)})):Ft()})}[o(669)](se,ve){let je=(Ft,kt)=>{var bt=wh,lt=this[bt(1099)][bt(981)]();lt[bt(809)]({texture:this[bt(1102)],mipLevel:0,origin:{x:se,y:ve},aspect:bt(768)},{buffer:this.readPickPosition_VmBuffer,offset:0,bytesPerRow:256*Math[bt(552)](4*this[bt(1102)][bt(412)]*4/256),rowsPerImage:1},{width:1,height:1}),this.device[bt(704)][bt(635)]([lt[bt(1091)]()]),this.readPickPosition_VmBuffer[bt(705)](GPUMapMode[bt(470)])[bt(442)](()=>{var ot=bt,tt=this[ot(774)][ot(827)](0,16),tt=Array[ot(1050)](new Float32Array(tt));this[ot(774)][ot(484)](),this.readPickPosition_noLocking=!0,tt[3]!=0&&D[ot(987)](tt,this[ot(1031)][ot(910)],this[ot(979)]),Ft(this.lastPickPositionValue)})};return new Promise((Ft,kt)=>{var bt=wh;this[bt(837)]?(this[bt(837)]=!1,je(Ft)):setTimeout(()=>{je(Ft)},10)})}[o(771)](){var se=o,ve;this[se(872)]&&this.fig.directData_Heartbeat&&(this[se(872)]=!1,this[se(1031)][se(606)]=!1,(ve=this.device[se(981)]())[se(913)](this[se(1056)],0,this[se(788)],0,4),this[se(1117)](ve),ve[se(913)](this.instancesArea_atomicData_VmBuffer,0,this[se(556)],0,4),ve[se(913)](this[se(985)],0,this[se(556)],4,this[se(985)][se(605)]),this.device.queue[se(635)]([ve[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,ve=this[se(1099)][se(981)]();ve.copyBufferToBuffer(this.zeroVmBuffer,0,this.meshRender_transparentColorData_VmBuffer,0,this[se(569)][se(605)]),this[se(1099)][se(704)][se(635)]([ve[se(1091)]()])}[o(991)](){var se=o;this[se(771)]();var ve=this[se(1099)][se(981)]();this[se(462)](ve),this[se(939)](ve),this[se(537)](ve),this[se(1031)].gi&&this[se(824)](ve),ve.copyBufferToBuffer(this[se(1056)],0,this[se(604)],0,this[se(604)][se(605)]),this[se(725)](ve),this[se(965)]&&this[se(1031)].kj&&ve[se(913)](this[se(946)],0,this[se(459)],0,128),this[se(1e3)]&&this[se(1031)][se(642)]&&ve[se(913)](this.lightInfo_VmBuffer,32,this.readTemp_VmBuffer2,0,64),this[se(808)]&&this[se(954)]&&ve[se(913)](this[se(920)],0,this.renderMaterial_read_VmBuffer,0,this[se(920)][se(605)]),this[se(486)].Render(ve),this[se(869)][se(991)](ve),globalThis[se(589)]&&this[se(973)](ve),this.fig[se(672)]?this[se(465)](ve):this[se(686)](ve),this[se(1031)].ksh&&this[se(814)](ve),this[se(710)]&&this.fig.xn&&(ve[se(803)](this[se(883)],0,10,this[se(692)],0),ve.copyBufferToBuffer(this[se(692)],0,this.timestampQueryResultBuffer,0,this.timestampQueryResultBuffer.size)),this[se(1099)][se(704)][se(635)]([ve[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 Rt{get[o(1046)](){var se=o;return this[se(845)]}set[o(1046)](se){var ve=o;this[ve(845)]=D[ve(760)](se)}get[o(723)](){return this._target}set[o(723)](se){var ve=o;this[ve(562)]=D[ve(760)](se)}get[o(796)](){var se=o,ve=D[se(665)](0,0,-1);return D[se(802)](ve,this[se(1116)])}constructor(se,ve){var je=o;if(this[je(845)]=D[je(807)](0,0,0),this[je(562)]=D[je(807)](1,1,1),this[je(1116)]=V[je(626)](),this.worldMatrix=M[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:D[je(807)](),upLeft_position:D[je(807)]()},se){let Ft=(bt,lt)=>{var ot=je;switch(bt[ot(1022)]){case"KeyW":this.status[ot(521)][ot(848)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(816):this[ot(953)].keyboard[ot(1057)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1090):this[ot(953)][ot(521)].left=lt,bt[ot(1096)](),bt.stopPropagation();break;case"KeyD":this[ot(953)][ot(521)][ot(1034)]=lt,bt.preventDefault(),bt[ot(517)]();break;case ot(755):this[ot(953)][ot(521)].up=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(855):this.status[ot(521)].down=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(901):this[ot(953)][ot(521)][ot(1058)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"KeyO":this[ot(953)][ot(521)][ot(693)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(446):case ot(1023):this[ot(953)][ot(521)][ot(427)]=lt,bt.preventDefault(),bt[ot(517)]();break;case"KeyK":case ot(594):this[ot(953)][ot(521)][ot(1061)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1086):case ot(532):this[ot(953)][ot(521)][ot(773)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(434):case ot(519):this[ot(953)][ot(521)][ot(861)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"ControlLeft":this[ot(953)].keyboard[ot(511)]=lt;break;case ot(970):this.status[ot(521)][ot(478)]=lt;break;case"KeyC":this[ot(953)][ot(521)][ot(651)]=lt;break;case ot(464):this.status.keyboard[ot(1030)]=lt}},kt=(window[je(801)](je(499),bt=>Ft(bt,!0)),window[je(801)]("keyup",bt=>Ft(bt,!1)),se[je(801)]("contextmenu",function(bt){var lt=je;bt[lt(1096)]()}),(bt,lt)=>{var ot=je;switch(this.status[ot(450)][ot(988)]=bt[ot(988)],bt.button){case 0:(this[ot(953)][ot(450)][ot(995)]=lt)?(this[ot(953)][ot(450)][ot(715)]=bt.clientX,this[ot(953)][ot(450)][ot(679)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot,ct;this[ze(953)][ze(416)]=D[ze(807)](tt[0],tt[1],tt[2]),tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&this.status.keyboard[ze(511)]&&(tt=this[ze(953)][ze(416)],ct=D.subtract(this.position,tt),D.normalize(ct,ct),ct=D.add(tt,D[ze(708)](ct,20)),this.setTargetAndPosition(tt,ct))})):(this.status[ot(450)][ot(424)]=bt.clientX,this.status[ot(450)][ot(880)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt.clientY).then(tt=>{var ze=ot;this[ze(953)][ze(436)]=D[ze(807)](tt[0],tt[1],tt[2]),this[ze(953)].downLeft_position[0]!=0&&this[ze(953)][ze(416)][1]!=0&&this[ze(953)][ze(416)][2]!=0&&this[ze(953)].upLeft_position[0]!=0&&this[ze(953)][ze(436)][1]!=0&&this[ze(953)].upLeft_position[2]!=0&&(D[ze(601)](this[ze(845)],D[ze(601)](this[ze(953)].upLeft_position,this[ze(953)].downLeft_position),this[ze(845)]),this.computeMatrix())}));break;case 1:this[ot(953)][ot(450)][ot(460)]=lt;break;case 2:(this.status[ot(450)].right=lt)?(this[ot(953)][ot(450)].downRightX=bt.clientX,this[ot(953)][ot(450)][ot(524)]=bt[ot(783)],ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot;tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&(this[ze(723)]=D.create(tt[0],tt[1],tt[2]))})):(this[ot(953)][ot(450)].upRightX=bt[ot(507)],this[ot(953)][ot(450)][ot(798)]=bt[ot(783)])}});se[je(887)][je(595)]=je(536),se[je(801)](je(1006),bt=>kt(bt,!0)),se.addEventListener(je(994),bt=>kt(bt,!1)),se[je(801)](je(972),bt=>{var lt=je;this[lt(953)][lt(450)][lt(507)]=bt.clientX,this[lt(953)].mouse[lt(783)]=bt[lt(783)],(this[lt(953)][lt(450)][lt(995)]||this[lt(953)][lt(450)].right)&&(this[lt(953)][lt(450)][lt(884)]-=bt[lt(884)],this[lt(953)][lt(450)][lt(757)]-=bt[lt(757)])}),se[je(801)](je(460),bt=>{var lt=je;this[lt(953)][lt(450)].scroll+=Math[lt(469)](bt.deltaY),bt[lt(1096)](),bt[lt(517)]()},{passive:!1})}}[o(1079)](kt,bt,je=D.create(0,1,0)){var Ft=o;D[Ft(760)](kt,this[Ft(562)]),D[Ft(760)](bt,this[Ft(845)]);var bt=D.normalize(D[Ft(601)](bt,kt)),kt=D[Ft(665)](0,0,1),kt=(this[Ft(1116)]=V.rotationTo(kt,bt),D[Ft(802)](D[Ft(665)](0,1,0),this[Ft(1116)])),bt=D[Ft(542)](kt,je);1e-7<D.length(bt)&&(kt=Math[Ft(785)](D.dot(kt,je)),je=V.fromAxisAngle(D[Ft(1085)](bt),kt),this[Ft(1116)]=V[Ft(645)](je,this[Ft(1116)])),this[Ft(568)]()}update(se){var ve=o,je,Ft=D[ve(802)](D[ve(665)](1,0,0),this.orientation),kt=D[ve(802)](D[ve(665)](0,1,0),this[ve(1116)]),bt=D[ve(802)](D[ve(665)](0,0,1),this[ve(1116)]);this[ve(953)][ve(450)][ve(884)]===0&&this[ve(953)][ve(450)][ve(757)]===0||(this[ve(953)].mouse[ve(988)]===2?(je=this[ve(953)].mouse.movementX*this[ve(948)]*se,se=this[ve(953)][ve(450)][ve(757)]*this.rotationSpeed*se,se=V.fromAxisAngle(Ft,se),je=V[ve(997)](kt,je),se=V[ve(645)](se,je),je=D[ve(601)](this._position,this[ve(562)]),je=D.transformQuat(je,se),D.add(this[ve(562)],je,this[ve(845)]),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])):this[ve(953)].mouse[ve(988)]),this.status[ve(450)][ve(576)]!==0&&(je=this.status[ve(450)][ve(576)]*this[ve(670)],D[ve(987)](this[ve(845)],D[ve(708)](bt,je),this[ve(845)])),this[ve(953)][ve(521)].up&&D[ve(987)](this[ve(845)],D[ve(708)](kt,this[ve(953)][ve(521)].shiftLeft?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(1064)]&&D.add(this[ve(845)],D.scale(kt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this._position),this[ve(953)][ve(521)][ve(995)]&&D[ve(987)](this._position,D[ve(708)](Ft,-(this.status.keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this[ve(953)][ve(521)][ve(1034)]&&D[ve(987)](this[ve(845)],D[ve(708)](Ft,this[ve(953)].keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(848)]&&D.add(this._position,D[ve(708)](bt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this.status[ve(521)][ve(1057)]&&D[ve(987)](this[ve(845)],D[ve(708)](bt,this[ve(953)][ve(521)].shiftLeft?4*this.keyboardSpeed:this[ve(476)]),this[ve(845)]),this[ve(953)][ve(521)][ve(1058)]&&(se=V[ve(997)](bt,-.01),this[ve(1116)]=V.multiply(se,this[ve(1116)])),this[ve(953)][ve(521)][ve(693)]&&(je=V[ve(997)](bt,.01),this.orientation=V.multiply(je,this.orientation)),this[ve(953)][ve(521)][ve(773)]&&(se=V[ve(997)](kt,.01),this.orientation=V[ve(645)](se,this[ve(1116)])),this.status[ve(521)].rightHeading&&(bt=V[ve(997)](kt,-.01),this[ve(1116)]=V[ve(645)](bt,this[ve(1116)])),this[ve(953)][ve(521)][ve(427)]&&(je=V[ve(997)](Ft,.01),this.orientation=V[ve(645)](je,this[ve(1116)])),this.status[ve(521)][ve(1061)]&&(se=V[ve(997)](Ft,-.01),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])),this.status.keyboard[ve(651)]&&(this[ve(476)]-=.01*this[ve(476)],this.keyboardSpeed<.01)&&(this[ve(476)]=.01),this[ve(953)][ve(521)].speedUp&&(this.keyboardSpeed*=1.01),this[ve(568)](),this.status[ve(450)][ve(884)]=0,this.status[ve(450)][ve(757)]=0,this.status[ve(450)][ve(576)]=0}[o(568)](){var se=o;M[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 Vt{constructor(se){var ve=o;if(this[ve(1114)]=M,this[ve(930)]=N,this[ve(923)]=D,this[ve(754)]=G,this[ve(520)]=V,this[ve(677)]=1,this.dataCallBack={},this.modelData={},this[ve(606)]=!0,this.spaceIndex_Heartbeat=!0,this.xn=!1,this[ve(654)]=!1,this.kj=!1,this.kj2=!1,this.gi=!1,this[ve(922)]={type:1,direction:D[ve(1085)](D.create(-.378604181697245,.8191225954117374,.4309258025313624)),color:D[ve(807)](1,1,1)},this[ve(509)]={fov:2*Math.PI/5,aspect:1,near:.1,far:1e3},this[ve(1069)]=0,this[ve(910)]=D.create(),this.OnInitialized=()=>{},this[ve(886)]=(kt,bt)=>{},this[ve(573)]=kt=>{},this[ve(984)]="",this[ve(1005)]="",this[ve(737)]=Date[ve(495)](),this[ve(553)]=0,this.tempRL=!0,this[ve(479)]=!1,this[ve(745)]=new Float64Array(84),console[ve(826)]("ser_V20250613"),se&&se[ve(1074)]&&se[ve(993)]){if(this[ve(993)]=se[ve(993)],this[ve(672)]=se[ve(1074)],se.Widget.scene.ser)return void console[ve(505)](ve(1059));this.cesiumWidget[ve(859)][ve(555)]=this}this.cesiumWidget?(this[ve(1088)]=new OffscreenCanvas(this[ve(672)][ve(859)][ve(1088)].width,this[ve(672)].scene.canvas[ve(864)]),this.depthCanvas=new OffscreenCanvas(this[ve(672)][ve(859)].canvas[ve(412)],this[ve(672)][ve(859)][ve(1088)][ve(864)]),this[ve(835)]=new Rt(null,this)):(this[ve(1088)]=document[ve(602)](ve(1088)),this.canvas[ve(412)]=1920,this[ve(1088)][ve(864)]=970,document[ve(455)].appendChild(this[ve(1088)]),this[ve(835)]=new Rt(this[ve(1088)],this),this.camera[ve(1079)](D[ve(807)](0,0,0),D[ve(807)](0,100,0),D[ve(807)](0,1,0))),this[ve(1084)]=[],this[ve(735)]=new ArrayBuffer(512),this[ve(439)]=new Float32Array(this[ve(735)]),this[ve(952)]=new Uint32Array(this.scene_dataBuffer),this[ve(547)]=new ArrayBuffer(96),this[ve(1075)]=new Float32Array(this[ve(547)]),this.lightInfo_dataViewF32[0]=this[ve(922)][ve(468)],this[ve(1075)][ve(895)](this.lightInfo.direction,1),this[ve(1075)].set(this[ve(922)][ve(431)],4),this[ve(1008)]=M[ve(626)](),this[ve(587)]=M[ve(626)](),this[ve(838)]=M.identity(),this[ve(640)]=M[ve(626)](),this.projectionViewMatrix=M[ve(626)](),this[ve(1024)]=M[ve(626)]();let je=!1,Ft=(kt,bt)=>{var lt=ve;switch(kt[lt(1022)]){case lt(650):je=bt,kt[lt(1096)](),kt[lt(517)]();break;case lt(638):bt||(this[lt(479)]=!this[lt(479)])}};window[ve(801)](ve(499),kt=>Ft(kt,!0)),window[ve(801)](ve(575),kt=>Ft(kt,!1)),this[ve(702)]=new yt(this),se=new v(new URL(f.p+f.u(671),f.b)),this[ve(1067)]=se[ve(759)](),this[ve(1067)][ve(801)](ve(622),kt=>{var bt=ve;if(kt[bt(836)])switch(kt[bt(836)][bt(999)]){case bt(925):this[bt(925)][kt.data.cbId]?(kt[bt(836)][bt(832)](bt(914))?this.dataCallBack[kt[bt(836)][bt(941)]].resolve(kt[bt(836)][bt(914)]):kt[bt(836)][bt(832)](bt(593))&&this[bt(925)][kt.data[bt(941)]][bt(593)](kt[bt(836)][bt(593)]),delete this.dataCallBack[kt[bt(836)][bt(941)]]):globalThis[bt(564)](kt.data);break;case bt(617):for(var lt in kt[bt(836)][bt(512)])this.modelData[bt(832)](lt)?Object[bt(726)](this.modelData[lt],kt[bt(836)].modelData[lt]):this[bt(512)][lt]=kt[bt(836)][bt(512)][lt];this[bt(432)](),this.OnModelServer(kt.data[bt(512)],kt[bt(836)][bt(1109)]);break;case bt(573):this[bt(573)](kt[bt(836)][bt(839)]);break;case bt(560):if(kt[bt(836)].targets)for(var ot of kt.data.targets)this[bt(702)].UpVmData(ot);else this.renderEngine[bt(560)](kt[bt(836)]);break;case bt(992):this[bt(702)][bt(908)](kt[bt(836)]);break;case bt(771):this[bt(702)].VisibleTreeUpdate();break;case bt(699):this[bt(1069)]=kt[bt(836)][bt(1069)];break;case bt(581):this[bt(606)]=!0;break;case bt(847):this[bt(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 ve=o;se[ve(592)]("/")!==se[ve(800)]-1&&(se+="/");var je=this[ve(1084)][ve(800)];for(let Ft=0;Ft<this[ve(1084)][ve(800)];Ft++)if(this.serverList[Ft]===se)return Ft;return this.serverList[ve(918)](se),this[ve(1067)][ve(564)]({msgType:ve(1103),serverUrl:se,serverId:je}),je}[o(545)](){let se=()=>{var ve=wh;this[ve(991)](),requestAnimationFrame(se)};requestAnimationFrame(se)}[o(842)](){var se=o;this.cesiumWidget?(ve=this[se(672)][se(859)][se(504)].uniformState,this[se(1005)]=ve[se(747)][se(770)](),this.projectionMatrix=M.frustumReverseZ(ve[se(685)].z,ve._frustumPlanes.w,ve[se(685)].y,ve[se(685)].x,ve._currentFrustum.x,ve[se(490)].y)):this[se(838)]=M[se(1113)](this.cameraParameter.fov,this[se(509)].aspect,this[se(509)][se(1108)],this.cameraParameter[se(475)]),this[se(640)]=M[se(584)](this.projectionMatrix);var ve=M.setTranslation(M.scale(M.identity(),D.create(.5,.5,1)),D[se(807)](.5,.5,0)),ve=M[se(645)](ve,this[se(838)]);this[se(1024)]=M[se(645)]([this[se(1088)].width,0,0,0,0,this[se(1088)].height,0,0,0,0,1,0,0,0,0,1],ve)}[o(991)](){var se=o,ve,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)]())):(ve=((je=Date[se(495)]())-this[se(737)])/1e3,this[se(737)]=je,this[se(835)].update(ve)),this.oldCameraData===this[se(835)][se(761)][se(770)]()&&this.instancesCount!==0||(this[se(984)]=this[se(835)][se(761)].toString(),je=D[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)]()),(ve=Array.from(this.camera[se(761)]))[12]-=this[se(910)][0],ve[13]-=this[se(910)][1],ve[14]-=this[se(910)][2],M[se(760)](ve,this[se(587)]),this[se(1008)]=M[se(584)](ve),M[se(645)](this.projectionMatrix,this.viewMatrix,this[se(574)]),this[se(706)]=M[se(584)](this[se(574)]),this[se(672)]&&(je=M[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]=ve[12],this.scene_dataViewF32[50]=ve[13],this[se(439)][51]=ve[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:M.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 ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([1]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)][ve(564)]({msgType:ve(892),modelId:se,status:1}))}HideModel(se){var ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([0]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)].postMessage({msgType:ve(892),modelId:se,status:0}))}PickId(se,ve){var je=o;return this[je(702)][je(806)](se,ve).then(Ft=>new Promise((kt,bt)=>{var lt=je,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:tt=>{kt(tt)},reject:tt=>{bt()}},this[lt(1067)][lt(564)]({msgType:lt(616),instancePtr:Ft,cbId:ot})}))}[o(527)](se,ve){var je=o;return this.renderEngine[je(806)](se,ve)}[o(577)](se,ve){var je=o;return this[je(702)].PickPosition(se,ve)}[o(766)](se,ve){var je=o,Ft;this[je(512)][se]&&((Ft=this[je(512)][se])[je(503)]=Array[je(1050)](ve),(ve=Array.from(ve))[12]-=this.accuracyOffset[0],ve[13]-=this[je(910)][1],ve[14]-=this[je(910)][2],ve=new Float32Array(ve),this.renderEngine.device.queue[je(1039)](this[je(702)][je(680)],4*Ft[je(1016)],ve),this.ddWorker[je(564)]({msgType:je(766),modelId:se,modelMatrixArr:Ft[je(503)]}))}[o(432)](){var se=o;for(var ve in this.modelData){var je,ve=this[se(512)][ve];ve[se(1016)]&&((je=Array.from(ve.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*ve[se(1016)],je))}this[se(868)](),this.UpdateExplodeAccuracyOffset()}CreateMaterial(se){return new Promise((ve,je)=>{var Ft=wh,kt=Date[Ft(495)]();this[Ft(925)][kt]={resolve:ve,reject:je},this[Ft(1067)].postMessage({msgType:Ft(634),color:se,cbId:kt})})}[o(898)](se,ve,je,Ft){var kt=o;this[kt(1067)][kt(564)]({msgType:kt(898),modelId:se,materialId:ve,color:je,overlay:Ft})}GetMaterial(se,ve){return new Promise((je,Ft)=>{var kt=wh,bt=Date.now();this[kt(925)][bt]={resolve:lt=>{je(lt)},reject:lt=>{Ft()}},this[kt(1067)][kt(564)]({msgType:kt(879),modelId:se,materialId:ve,cbId:bt})})}SetInstanceMaterialByInstancePtr(se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this.renderEngine.instanceVmBuffer,4*(se+23),new Uint32Array([ve]))}[o(513)](se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this[je(702)][je(666)],4*(se+22),new Uint32Array([ve]))}SetInstanceMaterial(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(810),materialPtr:se,idBuffer:ve.buffer},[ve[je(877)]])}SetInstanceStatus(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(969),status:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(896)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(896),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}[o(477)](se){var ve=o;se=new Uint32Array(se),this[ve(1067)][ve(564)]({msgType:ve(477),idBuffer:se.buffer},[se[ve(877)]])}[o(878)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(878),materialPtr:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(1070)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:"SetInstanceStatusByComponentIds",status:se,idBuffer:ve.buffer},[ve.buffer])}[o(746)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(746),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}CancelInstanceTransformByComponentIds(se){var ve=o;se=new Uint32Array(se),this[ve(1067)].postMessage({msgType:ve(739),idBuffer:se[ve(877)]},[se.buffer])}SetInstanceMaterialByExtendedPropertiesId(se,ve){var je=o;this.ddWorker.postMessage({msgType:je(597),materialPtr:se,extendedPropertiesIds:ve})}[o(662)](se,ve){var je=o;this.ddWorker[je(564)]({msgType:"SetInstanceStatusByExtendedPropertiesId",status:se,extendedPropertiesIds:ve})}[o(609)](se,ve){var je=o;this[je(1067)][je(564)]({msgType:je(609),transform:se,extendedPropertiesIds:ve})}[o(977)](se){var ve=o;this[ve(1067)][ve(564)]({msgType:ve(977),extendedPropertiesIds:se})}[o(776)](se,ve,je,Ft){return new Promise((kt,bt)=>{var lt=wh,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:kt,reject:bt},this[lt(1067)][lt(564)]({msgType:lt(776),x1:se,y1:ve,x2:je,y2:Ft,width:this[lt(1088)].width,height:this[lt(1088)][lt(864)],cbId:ot})})}[o(1012)](se,ve,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*(ve?-1:1),this[Ft(745)].set(je,4);for(let bt=1;bt<=Math[Ft(811)](this[Ft(745)][0]);bt+=1){var kt=D[Ft(1085)]([this.clipPlane[4*bt],this[Ft(745)][4*bt+1],this[Ft(745)][4*bt+2]]);this[Ft(745)][4*bt]=kt[0],this[Ft(745)][4*bt+1]=kt[1],this[Ft(745)][4*bt+2]=kt[2]}}this[Ft(868)]()}[o(868)](){var se=o,ve=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],M[se(584)](je,je));for(let Wt=1;Wt<=Math[se(811)](this[se(745)][0]);Wt++){var ct=this[se(745)][4*Wt],kt=this.clipPlane[4*Wt+1],bt=this[se(745)][4*Wt+2],lt=this[se(745)][4*Wt+3],ot=ct*Ft[0]+kt*Ft[1]+bt*Ft[2]+lt*Ft[3],tt=ct*Ft[4]+kt*Ft[5]+bt*Ft[6]+lt*Ft[7],ze=ct*Ft[8]+kt*Ft[9]+bt*Ft[10]+lt*Ft[11],ct=ct*Ft[12]+kt*Ft[13]+bt*Ft[14]+lt*Ft[15];ve[4*Wt]=ot,ve[4*Wt+1]=tt,ve[4*Wt+2]=ze,ve[4*Wt+3]=ct}ve[0]=this[se(745)][0]}else ve[0]=0;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(449)],0,ve)}SetExplode(se,ve,je,Ft,kt){var bt=o;se===void 0||Number.isNaN(se)||(this[bt(702)][bt(804)][0]=se),ve===void 0||Number[bt(1021)](ve)||(this[bt(702)][bt(804)][1]=ve),je===void 0||Number.isNaN(je)||(this[bt(702)].explodeParam[2]=je),Ft&&3<=Ft.length&&(this[bt(702)][bt(804)][3]=Ft[0],this.renderEngine[bt(804)][4]=Ft[1],this.renderEngine.explodeParam[5]=Ft[2]),kt&&3<=kt.length&&(se=D[bt(1085)](kt),this[bt(702)][bt(804)][6]=se[0],this[bt(702)][bt(804)][7]=se[1],this[bt(702)][bt(804)][8]=se[2]),this.UpdateExplodeAccuracyOffset()}[o(1112)](){var se=o,ve=new Float32Array(this[se(702)][se(804)]);ve[3]-=this.accuracyOffset[0],ve[4]-=this.accuracyOffset[1],ve[5]-=this[se(910)][2],this[se(702)][se(1099)][se(704)].writeBuffer(this.renderEngine[se(792)],0,ve)}[o(765)](){var se=o;let ve=this[se(672)][se(859)];if(!ve.initFine){ve[se(456)]=!0;let je={sources:[se(722)],defines:[]},Ft=new this[se(993)].ShaderSource({sources:[se(644)],defines:[]}),kt=new this[se(993)][se(860)](je),bt=ve.context[se(867)].getShaderProgram({vertexShaderSource:Ft,fragmentShaderSource:kt}),lt=new this.Cesium[se(673)]({context:ve.context,attributes:[]}),ot=(lt[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)]}),ze={bimColorTexture:()=>(this[se(991)](),ve[se(1100)]?ve.serColorTexture[se(453)]({source:ve[se(555)][se(1088)],skipColorSpaceConversion:!0}):ve.serColorTexture=new this.Cesium[se(1038)]({context:ve[se(504)],source:ve.ser[se(1088)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(1100)]),bimDepthTexture:()=>(ve.serDepthTexture?ve.serDepthTexture[se(453)]({source:ve.ser[se(515)],skipColorSpaceConversion:!0}):ve[se(890)]=new this[se(993)][se(1038)]({context:ve[se(504)],source:ve[se(555)][se(515)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(890)])},ct=new this[se(993)][se(828)]({x:0,y:0,z:0},6379137),Wt=new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)].Pass.OPAQUE,boundingVolume:ct});Wt.derivedCommands[se(487)]={command:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id},Wt[se(674)][se(487)][se(885)][se(674)]={depth:{command:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id,depthOnlyCommand:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})}},Wt.derivedCommands[se(649)]={shaderProgramId:bt.id,depthOnlyCommand:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})},Wt.fine=!0,ve.primitives[se(987)]({fine:!0,isDestroyed:()=>!1,update:()=>{ve.frameState.commandList.push(Wt)}})}}}return m}};function wh(o,f){var m=Eye();return wh=function(x,y){x=x-411;var v=m[x];return v},wh(o,f)}typeof exports=="object"&&aie(698)==typeof module?module.exports=wye():aie(728)==typeof define&&define[aie(567)]?define([],wye):aie(698)==typeof exports?exports[aie(555)]=wye():Bmr.ser=wye();function C2(o){this._earthCtrl=o,this._viewer=o.viewer,this._fig=null,this.serverAddress=""}C2.prototype.create=async function(){let o=this;return this._fig=new ser.serMain({Cesium:Vi,Widget:o._viewer}),await new Promise(f=>{o._fig.OnInitialized=()=>{f(o)}})};C2.prototype.setModelTransform=function(o,f){let m=Ee.toArray(_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.lon,f.lat,f.height)));if(f.roll){let x=be.toRadians(f.roll??0),y=Ee.fromRotationTranslation(Ut.fromRotationZ(x));Ee.multiply(m,y,m)}this._fig.SetModelTransform(o,m)};C2.prototype.showModel=function(o){this._fig.ShowModel(o)};C2.prototype.hideModel=function(o){this._fig.HideModel(o)};C2.prototype.destroy=function(){this._fig.Destroy()};C2.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})}})};C2.prototype.getModelBoundingSphere=function(o){let f=this.modelList[o],m=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box),{}),x=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box,3),{});return Ei.fromPoints([m,x],new Ei)};C2.prototype.clickSem=function(o){let f=this,m=0;f._viewer.screenSpaceEventHandler.setInputAction(function(y){m!==0&&(f._fig.SetInstanceStatusByInstancePtr(m,1),m=0),f._fig.PickId(y.position.x,y.position.y).then(v=>{v&&(m=v.instancePtr,f._fig.SetInstanceStatusByInstancePtr(v.instancePtr,2)),o&&o(v)})},Si.LEFT_CLICK)};C2.prototype.unSelect=function(o){o!==0&&this._fig.SetInstanceStatusByInstancePtr(o,1)};C2.prototype.pickWorldPosition=function(o,f,m){this._fig.PickWorldPosition(o,f).then(x=>{m&&m(x)})};C2.prototype.semModeClipping=function(o){let f=this;return new qge(f._earthCtrl,f._fig,o)};C2.prototype.setMaterialColor=function(o,f,m,x){this._fig.SetMaterialColor(o,f,[m.red,m.green,m.blue,m.alpha],x)};C2.prototype.choice=function(o){return o=o??{},o.bim=o.ser??this._fig,new $ge(o,this._earthCtrl,Vi)};C2.prototype.setExplode=function(o,f,m,x,y){this._fig.SetExplode(o,f,m,x,y)};C2.prototype.showComponent=function(o){o.showComponentArr.length>0&&this._fig.SetInstanceStatus(o.status,o.showComponentArr)};var ZMt=C2;var Hmr=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(y,v){o.materials[v].extensions.KHR_technique_webgl.values=o.materials[v].values,o.materials[v].extensions.KHR_techniques_webgl=o.materials[v].extensions.KHR_technique_webgl;let C=o.materials[v].extensions.KHR_techniques_webgl;for(let T in C.values){let S=x[C.technique].uniforms;for(let w in S)if(S[w]===T){C.values[w]=C.values[T],delete C.values[T];break}}}),x.forEach(function(y){for(let v in y.attributes){let C=y.attributes[v];y.attributes[v]=y.parameters[C]}for(let v in y.uniforms){let C=y.uniforms[v];y.uniforms[v]=y.parameters[C]}})}},Pye=typeof window<"u"?window:typeof self<"u"?self:{},Lye=setTimeout(()=>{Lye=void 0,Pye.logSmartEarth&&Pye.logSmartEarth()},1e4);function OMt(o,f){ia.supportsImageRenderingPixelated()&&(o.viewer.resolutionScale=f?window.devicePixelRatio:1),o.viewer.scene.fxaa=f,o.viewer.scene.postProcessStages.fxaa.enabled=f}function id(o,f={},m,x,y){this._core=new Av(this),this._cesium=Vi,Lye&&(clearTimeout(Lye),Lye=void 0,f.VERSION!==!1&&Pye.logSmartEarth&&Pye.logSmartEarth()),this.G=65535,m=m??si.EMPTY_OBJECT,F(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=qZe();let v=f.language??Y0.ZH_CN;this.i18n=new FMt(v),f.toolbar=f.toolbar??!1,f.baseLayerPicker=f.baseLayerPicker??!1,f.shadows=!1,f.skyAtmosphere=new qq,f.terrainShadows=cl.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:T=!1}=C;f.contextOptions={webgl:{alpha:T,preserveDrawingBuffer:!0},failIfMajorPerformanceCaveat:!1,ellipsoidCoordinates:f.ellipsoidCoordinates},f.navigation=!0,f.disableRightClickMenu=!0,typeof f=="string"?f.baseLayer=new Up(new V1({url:f})):(f.url&&(f.baseLayer=new Up(new V1({url:f.url}))),this._core.extend(f,f,!0));let S=F(f.baseLayer),w;if(f.baseLayerPicker){S=!0;let R=this.getAllImageryView();if(f.basemaps)f.basemaps.forEach(P=>{f.imageryProviderViewModels.push(R[P])});else for(let P in R)f.imageryProviderViewModels.push(R[P])}else!f.imageryProvider&&!f.baseLayer?(w=Up.fromProviderAsync(V1.fromUrl(`${globalThis.GEOWORLD_BASE_URL}Workers/image/earth.jpg`)),f.baseLayer=w):(S=!0,f.imageryProvider&&(f.baseLayer=Up.fromProviderAsync(f.imageryProvider)));let E={destination:Z.fromDegrees(f.x?f.x:93.53987,f.y?f.y:24.77445,f.z?f.z:257935006e-1),orientation:{heading:be.toRadians(f.heading??0),pitch:be.toRadians(f.pitch??-90),roll:be.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 o0e(o,f),this._tree=x,this._Viewer.scene.globe.baseColor=Xe.WHITE,this._Viewer.shadowMap.size=2048,this._Viewer._cesiumWidget._creditContainer.style.display="none",this._Viewer.terrainShadows=cl.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 R="rgba(0,0,0,0)";this._Viewer.scene.backgroundColor=Xe.fromCssColorString(R),this._Viewer.scene.light=new U4({direction:new Z(1,-.9,-.9)}),f.backgroundImage&&(this._Viewer.container.style.backgroundImage=`url(${f.backgroundImage})`)}else this._Viewer.scene.globe.depthTestAgainstTerrain=!0;if(f.defaultImagery&&!S&&window.navigator.onLine&&this.judgeOnline().then(async R=>{R&&(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(w))}).catch(R=>{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 tfe(this),this._camera=new Ipe(this),this._measure=new Hpe(this),this._shapeTool=new wCt(this),this._editTool=new Kpe(this),this._factory=new QR(this),this._tools=new fpe(this),this._edit=new wge(this),this._analysis=new Kge(this),this._userScene=new gge(this,m),this._view=new $Rt(this),this._bim=new rAt(this),this._ser=new ZMt(this),this._MilitaryPlotting=new yye(this),this._atmosphere=new ubt(this),this._simulate=new WMt(this),f.infoBar&&(this._infoBar=new PIt(this)),f.maxViewHeight&&(this._Viewer.scene.screenSpaceCameraController.maximumZoomDistance=f.maxViewHeight),f.minViewHeight||f.maxViewPitch){this.minViewHeight=f.minViewHeight,this.maxViewPitch=f.maxViewPitch&&be.toRadians(f.maxViewPitch);let R=0,P=this._Viewer.scene,A=!1;if(this.maxViewPitch){let M=new Lr(this._Viewer.scene.canvas);M.setInputAction(()=>{A=!0},Si.MIDDLE_DOWN),M.setInputAction(()=>{A=!1},Si.MIDDLE_UP),M.setInputAction(()=>{A=!0},Si.RIGHT_DOWN),M.setInputAction(()=>{A=!1},Si.RIGHT_UP)}this._Viewer.scene.preRender.addEventListener(()=>{let M=this._Viewer.camera;if(!(!M||!M.positionCartographic)){if(this.maxViewPitch){let V=M.pitch;A&&V>this.maxViewPitch?(V=this.maxViewPitch,M.setView({destination:this.oldPosition||M.position.clone(),orientation:{heading:M.heading,pitch:V,roll:0}})):this.oldPosition=M.position.clone()}if(this.minViewHeight){R=P.globe.getHeight(M.positionCartographic)||R;let G,D,N=M.positionCartographic.height-R;this._Viewer.scene.globe.translucency.enabled||this._Analysis&&(this._Analysis._UndergroundMode&&this._Analysis._UndergroundMode.isUndergroundMode||this._Analysis._StreetView&&this._Analysis._StreetView.isStreetView)?(G=M.positionCartographic.height<-200,D=-200):(G=N<this.minViewHeight,D=R+this.minViewHeight);let k=M.pitch<0?M.pitch:0;G?M.setView({destination:this.oldPosition||Z.fromRadians(M.positionCartographic.longitude,M.positionCartographic.latitude,D),orientation:{heading:M.heading,pitch:k,roll:0}}):this.oldPosition=M.position.clone()}}})}let L={};Ts.DEFAULT_VIEW_RECTANGLE=vi.fromDegrees(79,0,130,60),f.navigationOption=f.navigationOption??si.EMPTY_OBJECT,L.defaultResetView=f.navigationOption.defaultResetView??Gt.fromCartesian(E.destination),L.enableCompass=f.navigationOption.enableCompass??!0,L.enableZoomControls=f.navigationOption.enableZoomControls??!0,L.enableDistanceLegend=f.navigationOption.enableDistanceLegend??!0,L.enableCompassOuterRing=f.navigationOption.enableCompassOuterRing??!0,this._Viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(this._cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._Viewer.extend(this._cesium.viewerCesiumNavigationMixin,L),this.camera.setView(E),y&&typeof y=="function"&&y(),IIt.parse(this,m),f.mouseDownView&&this.mouseDownView(!0),f.printLog&&this.addLogo(),Object.defineProperties(Ay.prototype,{_cachedGltf:{configurable:!0,set:function(R){this._vtxf_cachedGltf=R,this._vtxf_cachedGltf&&this._vtxf_cachedGltf._gltf&&Hmr(this._vtxf_cachedGltf._gltf)},get:function(){return this._vtxf_cachedGltf}}}),f.disableRightClickMenu&&(document.oncontextmenu=function(){return!1});let I=function(R){if(R.cesiumWidget._supportsImageRenderingPixelated&&window&&window.devicePixelRatio){let A=window.devicePixelRatio;for(;A>=2;)A/=2;R.resolutionScale=A}};G1.prototype.getRenderedBestLevelInfo=function(){let R=this.getRenderedLevelInfo(),P=0;for(let A in R)P<Number(A)&&(P=Number(A));return{bestLevel:P,count:R[P]}},G1.prototype.getRenderedLevelInfo=function(){let R=[];return this._tilesToRender.forEach(function(P){R[P.level]===void 0&&(R[P.level]=0,R[P.level]++)}),R},OMt(this,!0)}Object.defineProperties(id.prototype,{environment:{get:function(){return this._environment}},entities:{get:function(){return this._Viewer.dataSourceDisplay.defaultDataSource.entities}},enableAA:{set:function(o){OMt(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 Av(this)),this._Core}},Analysis:{get:function(){return this._Analysis||(this._Analysis=new QIt(this._Viewer,Vi)),this._Analysis}},Creator:{get:function(){return this._Creator||(this._Creator=new Tye(this._Viewer,Vi)),this._Creator}},projectTree:{get:function(){return this._ProjectTree||(this._ProjectTree=new VMt(this._Viewer,Vi,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 wt(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._bim}},ser:{get:function(){if(!this._ser)throw new wt(`${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}}});id.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($2.createBrightnessStage()),this.coreMap.scene.brightness.enabled=f,this.coreMap.scene.brightness.uniforms.brightness=Number(m)};id.prototype.judgeOnline=function(){let o=document.createElement("img"),f=new Promise((x,y)=>{let v=setTimeout(()=>{o&&(o.src="",o.remove(),o=null),clearTimeout(v),y("Timeout")},5e3)}),m=new Promise((x,y)=>{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])};id.prototype.addLogo=function(){let o=this;queueMicrotask(()=>{let f=` uniform sampler2D colorTexture; uniform sampler2D logoTexture; uniform vec2 logoSize; diff --git a/public/CimSDK/Workers/Model/ModelLibrary.html b/public/CimSDK/Workers/Model/ModelLibrary.html index ba832f7..febe88b 100644 --- a/public/CimSDK/Workers/Model/ModelLibrary.html +++ b/public/CimSDK/Workers/Model/ModelLibrary.html @@ -113,12 +113,12 @@ <body> <div class="LibraryHead"> - <!-- <button type="button" title="鎵撳紑" id='open' class="open layui-btn layui-btn-sm"> + <button type="button" title="鎵撳紑" id='open' class="open layui-btn layui-btn-sm"> <i class="layui-icon"></i> </button> <button type="button" title="淇濆瓨" class="save layui-btn layui-btn-sm layui-btn-normal"> <i class="layui-icon"></i> - </button> --> + </button> <button type="button" title="鏄惁寮�鍚紪杈�" class="edit layui-btn layui-btn-sm layui-btn-warm"> <i class="layui-icon"></i> </button> @@ -143,12 +143,12 @@ </div> </div> <script src="../layui/layui.js"></script> - <script src="../jquery-3.5.0.min.js"></script> + <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> <script> var Viewer = parent.earthCtrl.viewer; var sgworld = parent.earthCtrl; var Cesium = parent.Cesium; - var ModelLibraryURL = 'http://192.168.37.60:8088/ModelLibrary/' + var ModelLibraryURL = 'https://cim.smartearth.cn/sdkdemo/ModelLibrary/' var imgRootURL = ModelLibraryURL + 'image/'; //鑾峰彇鏁版嵁 @@ -163,7 +163,7 @@ //寮�鍚紪杈戝苟鍚敤灞炴�у脊绐� let isEdit = true; - sgworld.factory.SimpleGraphic.edit(true, { editProp: true ,showRightButton:true}); + sgworld.factory.SimpleGraphic.edit(true, { editProp: true }); layui.use(['element', 'form', 'slider', 'upload'], function () { window.element = layui.element; //Tab鐨勫垏鎹㈠姛鑳斤紝鍒囨崲浜嬩欢鐩戝惉绛夛紝闇�瑕佷緷璧杄lement妯″潡 diff --git a/public/CimSDK/Workers/ParseElevationWorker.js b/public/CimSDK/Workers/ParseElevationWorker.js index d16ca28..24653ac 100644 --- a/public/CimSDK/Workers/ParseElevationWorker.js +++ b/public/CimSDK/Workers/ParseElevationWorker.js @@ -1,7 +1,7 @@ /** * * SmartEarth WebSDK - https://websdk.terra-it.cn - * Version 5.4.1 + * Version 5.4.1.2 * **/ diff --git a/public/CimSDK/Workers/featurefetcherworker.js b/public/CimSDK/Workers/featurefetcherworker.js index d5131a8..0810646 100644 --- a/public/CimSDK/Workers/featurefetcherworker.js +++ b/public/CimSDK/Workers/featurefetcherworker.js @@ -1,7 +1,7 @@ /** * * SmartEarth WebSDK - https://websdk.terra-it.cn - * Version 5.4.1 + * Version 5.4.1.2 * **/ diff --git a/public/CimSDK/Workers/field/oceanWorker.js b/public/CimSDK/Workers/field/oceanWorker.js index 5ef55f9..a5f68f0 100644 --- a/public/CimSDK/Workers/field/oceanWorker.js +++ b/public/CimSDK/Workers/field/oceanWorker.js @@ -1,7 +1,7 @@ /** * * SmartEarth WebSDK - https://websdk.terra-it.cn - * Version 5.4.1 + * Version 5.4.1.2 * **/ diff --git a/public/CimSDK/Workers/field/rendermapWorker.js b/public/CimSDK/Workers/field/rendermapWorker.js index 9ab91d0..e195c43 100644 --- a/public/CimSDK/Workers/field/rendermapWorker.js +++ b/public/CimSDK/Workers/field/rendermapWorker.js @@ -1,7 +1,7 @@ /** * * SmartEarth WebSDK - https://websdk.terra-it.cn - * Version 5.4.1 + * Version 5.4.1.2 * **/ diff --git a/public/CimSDK/index.cjs b/public/CimSDK/index.cjs index 4d8015f..febf868 100644 --- a/public/CimSDK/index.cjs +++ b/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('© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <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('© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <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> ${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: " 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> ${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: " 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="×",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="×",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="×",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="×",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; diff --git a/public/CimSDK/index.js b/public/CimSDK/index.js index 40259b0..b0bb9ed 100644 --- a/public/CimSDK/index.js +++ b/public/CimSDK/index.js @@ -1,7 +1,7 @@ /** * * SmartEarth WebSDK - https://websdk.terra-it.cn - * Version 5.4.1 + * Version 5.4.1.2 * **/ @@ -137,13 +137,13 @@ `);return this._settledValue()},C=y.prototype.error=y.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise See http://goo.gl/MqrFmX -`);return this._settledValue()},T=y.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},S=y.prototype.isRejected=function(){return(this._bitField&16777216)!==0},w=y.prototype.isPending=function(){return(this._bitField&50397184)===0},E=y.prototype.isResolved=function(){return(this._bitField&50331648)!==0};y.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},x.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},x.prototype._isCancelled=function(){return this._target().__isCancelled()},x.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},x.prototype.isPending=function(){return w.call(this._target())},x.prototype.isRejected=function(){return S.call(this._target())},x.prototype.isFulfilled=function(){return T.call(this._target())},x.prototype.isResolved=function(){return E.call(this._target())},x.prototype.value=function(){return v.call(this._target())},x.prototype.reason=function(){var L=this._target();return L._unsetRejectionIsUnhandled(),C.call(L)},x.prototype._value=function(){return this._settledValue()},x.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},x.PromiseInspection=y}},{}],33:[function(o,f,m){"use strict";f.exports=function(x,y){var v=o("./util"),C=v.errorObj,T=v.isObject;function S(P,A){if(T(P)){if(P instanceof x)return P;var M=E(P);if(M===C){A&&A._pushContext();var V=x.reject(M.e);return A&&A._popContext(),V}else if(typeof M=="function"){if(I(P)){var V=new x(y);return P._then(V._fulfill,V._reject,void 0,V,null),V}return R(P,M,A)}}return P}function w(P){return P.then}function E(P){try{return w(P)}catch(A){return C.e=A,C}}var L={}.hasOwnProperty;function I(P){try{return L.call(P,"_promise0")}catch{return!1}}function R(P,A,M){var V=new x(y),G=V;M&&M._pushContext(),V._captureStackTrace(),M&&M._popContext();var D=!0,N=v.tryCatch(A).call(P,k,U);D=!1,V&&N===C&&(V._rejectCallback(N.e,!0,!0),V=null);function k(B){!V||(V._resolveCallback(B),V=null)}function U(B){!V||(V._rejectCallback(B,D,!0),V=null)}return G}return S}},{"./util":36}],34:[function(o,f,m){"use strict";f.exports=function(x,y,v){var C=o("./util"),T=x.TimeoutError;function S(P){this.handle=P}S.prototype._resultCancelled=function(){clearTimeout(this.handle)};var w=function(P){return E(+this).thenReturn(P)},E=x.delay=function(P,A){var M,V;return A!==void 0?(M=x.resolve(A)._then(w,null,null,P,void 0),v.cancellation()&&A instanceof x&&M._setOnCancel(A)):(M=new x(y),V=setTimeout(function(){M._fulfill()},+P),v.cancellation()&&M._setOnCancel(new S(V)),M._captureStackTrace()),M._setAsyncGuaranteed(),M};x.prototype.delay=function(P){return E(P,this)};var L=function(P,A,M){var V;typeof A!="string"?A instanceof Error?V=A:V=new T("operation timed out"):V=new T(A),C.markAsOriginatingFromRejection(V),P._attachExtraTrace(V),P._reject(V),M?.cancel()};function I(P){return clearTimeout(this.handle),P}function R(P){throw clearTimeout(this.handle),P}x.prototype.timeout=function(P,A){P=+P;var M,V,G=new S(setTimeout(function(){M.isPending()&&L(M,A,V)},P));return v.cancellation()?(V=this.then(),M=V._then(I,R,void 0,G,void 0),M._setOnCancel(G)):M=this._then(I,R,void 0,G,void 0),M}}},{"./util":36}],35:[function(o,f,m){"use strict";f.exports=function(x,y,v,C,T,S){var w=o("./util"),E=o("./errors").TypeError,L=o("./util").inherits,I=w.errorObj,R=w.tryCatch,P={};function A(U){setTimeout(function(){throw U},0)}function M(U){var B=v(U);return B!==U&&typeof U._isDisposable=="function"&&typeof U._getDisposer=="function"&&U._isDisposable()&&B._setDisposable(U._getDisposer()),B}function V(U,B){var Y=0,J=U.length,K=new x(T);function z(){if(Y>=J)return K._fulfill();var j=M(U[Y++]);if(j instanceof x&&j._isDisposable()){try{j=v(j._getDisposer().tryDispose(B),U.promise)}catch(q){return A(q)}if(j instanceof x)return j._then(z,A,null,null,null)}z()}return z(),K}function G(U,B,Y){this._data=U,this._promise=B,this._context=Y}G.prototype.data=function(){return this._data},G.prototype.promise=function(){return this._promise},G.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():P},G.prototype.tryDispose=function(U){var B=this.resource(),Y=this._context;Y!==void 0&&Y._pushContext();var J=B!==P?this.doDispose(B,U):null;return Y!==void 0&&Y._popContext(),this._promise._unsetDisposable(),this._data=null,J},G.isDisposer=function(U){return U!=null&&typeof U.resource=="function"&&typeof U.tryDispose=="function"};function D(U,B,Y){this.constructor$(U,B,Y)}L(D,G),D.prototype.doDispose=function(U,B){var Y=this.data();return Y.call(U,U,B)};function N(U){return G.isDisposer(U)?(this.resources[this.index]._setDisposable(U),U.promise()):U}function k(U){this.length=U,this.promise=null,this[U-1]=null}k.prototype._resultCancelled=function(){for(var U=this.length,B=0;B<U;++B){var Y=this[B];Y instanceof x&&Y.cancel()}},x.using=function(){var U=arguments.length;if(U<2)return y("you must pass at least 2 arguments to Promise.using");var B=arguments[U-1];if(typeof B!="function")return y("expecting a function but got "+w.classString(B));var Y,J=!0;U===2&&Array.isArray(arguments[0])?(Y=arguments[0],U=Y.length,J=!1):(Y=arguments,U--);for(var K=new k(U),z=0;z<U;++z){var j=Y[z];if(G.isDisposer(j)){var q=j;j=j.promise(),j._setDisposable(q)}else{var O=v(j);O instanceof x&&(j=O._then(N,null,null,{resources:K,index:z},void 0))}K[z]=j}for(var te=new Array(K.length),z=0;z<te.length;++z)te[z]=x.resolve(K[z]).reflect();var ie=x.all(te).then(function(ee){for(var ae=0;ae<ee.length;++ae){var oe=ee[ae];if(oe.isRejected())return I.e=oe.error(),I;if(!oe.isFulfilled()){ie.cancel();return}ee[ae]=oe.value()}re._pushContext(),B=R(B);var ce=J?B.apply(void 0,ee):B(ee),pe=re._popContext();return S.checkForgottenReturns(ce,pe,"Promise.using",re),ce}),re=ie.lastly(function(){var ee=new x.PromiseInspection(ie);return V(K,ee)});return K.promise=re,re._setOnCancel(K),re},x.prototype._setDisposable=function(U){this._bitField=this._bitField|131072,this._disposer=U},x.prototype._isDisposable=function(){return(this._bitField&131072)>0},x.prototype._getDisposer=function(){return this._disposer},x.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},x.prototype.disposer=function(U){if(typeof U=="function")return new D(U,this,C());throw new E}}},{"./errors":12,"./util":36}],36:[function(_dereq_,module,exports){"use strict";var es5=_dereq_("./es5"),canEvaluate=typeof navigator>"u",errorObj={e:{}},tryCatchTarget,globalObject=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:this!==void 0?this:null;function tryCatcher(){try{var o=tryCatchTarget;return tryCatchTarget=null,o.apply(this,arguments)}catch(f){return errorObj.e=f,errorObj}}function tryCatch(o){return tryCatchTarget=o,tryCatcher}var inherits=function(o,f){var m={}.hasOwnProperty;function x(){this.constructor=o,this.constructor$=f;for(var y in f.prototype)m.call(f.prototype,y)&&y.charAt(y.length-1)!=="$"&&(this[y+"$"]=f.prototype[y])}return x.prototype=f.prototype,o.prototype=new x,o.prototype};function isPrimitive(o){return o==null||o===!0||o===!1||typeof o=="string"||typeof o=="number"}function isObject(o){return typeof o=="function"||typeof o=="object"&&o!==null}function maybeWrapAsError(o){return isPrimitive(o)?new Error(safeToString(o)):o}function withAppended(o,f){var m=o.length,x=new Array(m+1),y;for(y=0;y<m;++y)x[y]=o[y];return x[y]=f,x}function getDataPropertyOrDefault(o,f,m){if(es5.isES5){var x=Object.getOwnPropertyDescriptor(o,f);if(x!=null)return x.get==null&&x.set==null?x.value:m}else return{}.hasOwnProperty.call(o,f)?o[f]:void 0}function notEnumerableProp(o,f,m){if(isPrimitive(o))return o;var x={value:m,configurable:!0,enumerable:!1,writable:!0};return es5.defineProperty(o,f,x),o}function thrower(o){throw o}var inheritedDataKeys=function(){var o=[Array.prototype,Object.prototype,Function.prototype],f=function(y){for(var v=0;v<o.length;++v)if(o[v]===y)return!0;return!1};if(es5.isES5){var m=Object.getOwnPropertyNames;return function(y){for(var v=[],C=Object.create(null);y!=null&&!f(y);){var T;try{T=m(y)}catch{return v}for(var S=0;S<T.length;++S){var w=T[S];if(!C[w]){C[w]=!0;var E=Object.getOwnPropertyDescriptor(y,w);E!=null&&E.get==null&&E.set==null&&v.push(w)}}y=es5.getPrototypeOf(y)}return v}}else{var x={}.hasOwnProperty;return function(y){if(f(y))return[];var v=[];e:for(var C in y)if(x.call(y,C))v.push(C);else{for(var T=0;T<o.length;++T)if(x.call(o[T],C))continue e;v.push(C)}return v}}}(),thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(o){try{if(typeof o=="function"){var f=es5.names(o.prototype),m=es5.isES5&&f.length>1,x=f.length>0&&!(f.length===1&&f[0]==="constructor"),y=thisAssignmentPattern.test(o+"")&&es5.names(o).length>0;if(m||x||y)return!0}return!1}catch{return!1}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}return ic(),ic(),obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(o){return rident.test(o)}function filledRange(o,f,m){for(var x=new Array(o),y=0;y<o;++y)x[y]=f+y+m;return x}function safeToString(o){try{return o+""}catch{return"[no string representation]"}}function isError(o){return o instanceof Error||o!==null&&typeof o=="object"&&typeof o.message=="string"&&typeof o.name=="string"}function markAsOriginatingFromRejection(o){try{notEnumerableProp(o,"isOperational",!0)}catch{}}function originatesFromRejection(o){return o==null?!1:o instanceof Error.__BluebirdErrorTypes__.OperationalError||o.isOperational===!0}function canAttachTrace(o){return isError(o)&&es5.propertyIsWritable(o,"stack")}var ensureErrorObject=function(){return"stack"in new Error?function(o){return canAttachTrace(o)?o:new Error(safeToString(o))}:function(o){if(canAttachTrace(o))return o;try{throw new Error(safeToString(o))}catch(f){return f}}}();function classString(o){return{}.toString.call(o)}function copyDescriptors(o,f,m){for(var x=es5.names(o),y=0;y<x.length;++y){var v=x[y];if(m(v))try{es5.defineProperty(f,v,es5.getDescriptor(o,v))}catch{}}}var asArray=function(o){return es5.isArray(o)?o:null};if(typeof Symbol<"u"&&Symbol.iterator){var ArrayFrom=typeof Array.from=="function"?function(o){return Array.from(o)}:function(o){for(var f=[],m=o[Symbol.iterator](),x;!(x=m.next()).done;)f.push(x.value);return f};asArray=function(o){return es5.isArray(o)?o:o!=null&&typeof o[Symbol.iterator]=="function"?ArrayFrom(o):null}}var isNode=typeof process<"u"&&classString(process).toLowerCase()==="[object process]",hasEnvVariables=typeof process<"u"&&typeof process.env<"u";function env(o){return hasEnvVariables?process.env[o]:void 0}function getNativePromise(){if(typeof Promise=="function")try{var o=new Promise(function(){});if(classString(o)==="[object Promise]")return Promise}catch{}}var reflectHandler;function contextBind(o,f){if(o===null||typeof f!="function"||f===reflectHandler)return f;o.domain!==null&&(f=o.domain.bind(f));var m=o.async;if(m!==null){var x=f;f=function(){var y=new Array(2).concat([].slice.call(arguments));return y[0]=x,y[1]=this,m.runInAsyncScope.apply(m,y)}}return f}var ret={setReflectHandler:function(o){reflectHandler=o},isClass,isIdentifier,inheritedDataKeys,getDataPropertyOrDefault,thrower,isArray:es5.isArray,asArray,notEnumerableProp,isPrimitive,isObject,isError,canEvaluate,errorObj,tryCatch,inherits,withAppended,maybeWrapAsError,toFastProperties,filledRange,toString:safeToString,canAttachTrace,ensureErrorObject,originatesFromRejection,markAsOriginatingFromRejection,classString,copyDescriptors,isNode,hasEnvVariables,env,global:globalObject,getNativePromise,contextBind};ret.isRecentNode=ret.isNode&&function(){var o;return process.versions&&process.versions.node?o=process.versions.node.split(".").map(Number):process.version&&(o=process.version.split(".").map(Number)),o[0]===0&&o[1]>10||o[0]>0}(),ret.nodeSupportsAsyncResource=ret.isNode&&function(){var o=!1;try{var f=_dereq_("async_hooks").AsyncResource;o=typeof f.prototype.runInAsyncScope=="function"}catch{o=!1}return o}(),ret.isNode&&ret.toFastProperties(process);try{throw new Error}catch(o){ret.lastLineError=o}module.exports=ret},{"./es5":13,async_hooks:void 0}]},{},[4])(4)});typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)});we();we();var cBe="CIM SDK v5.4.1",hBe="Cesium v1.129",dBe="BIM V20241204",pBe="SER V20250613",fBe="2025.7.4",iVt="WebSDK V5.4",rVt={VERSION:cBe,CesiumVERSION:hBe,BIMVERSION:dBe,SERVERSION:pBe,CompileTime:fBe},nVt=typeof window<"u"?window:typeof self<"u"?self:{};nVt.logSmartEarth=()=>{let o=` +`);return this._settledValue()},T=y.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},S=y.prototype.isRejected=function(){return(this._bitField&16777216)!==0},w=y.prototype.isPending=function(){return(this._bitField&50397184)===0},E=y.prototype.isResolved=function(){return(this._bitField&50331648)!==0};y.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},x.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},x.prototype._isCancelled=function(){return this._target().__isCancelled()},x.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},x.prototype.isPending=function(){return w.call(this._target())},x.prototype.isRejected=function(){return S.call(this._target())},x.prototype.isFulfilled=function(){return T.call(this._target())},x.prototype.isResolved=function(){return E.call(this._target())},x.prototype.value=function(){return v.call(this._target())},x.prototype.reason=function(){var L=this._target();return L._unsetRejectionIsUnhandled(),C.call(L)},x.prototype._value=function(){return this._settledValue()},x.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},x.PromiseInspection=y}},{}],33:[function(o,f,m){"use strict";f.exports=function(x,y){var v=o("./util"),C=v.errorObj,T=v.isObject;function S(P,A){if(T(P)){if(P instanceof x)return P;var M=E(P);if(M===C){A&&A._pushContext();var V=x.reject(M.e);return A&&A._popContext(),V}else if(typeof M=="function"){if(I(P)){var V=new x(y);return P._then(V._fulfill,V._reject,void 0,V,null),V}return R(P,M,A)}}return P}function w(P){return P.then}function E(P){try{return w(P)}catch(A){return C.e=A,C}}var L={}.hasOwnProperty;function I(P){try{return L.call(P,"_promise0")}catch{return!1}}function R(P,A,M){var V=new x(y),G=V;M&&M._pushContext(),V._captureStackTrace(),M&&M._popContext();var D=!0,N=v.tryCatch(A).call(P,k,U);D=!1,V&&N===C&&(V._rejectCallback(N.e,!0,!0),V=null);function k(B){!V||(V._resolveCallback(B),V=null)}function U(B){!V||(V._rejectCallback(B,D,!0),V=null)}return G}return S}},{"./util":36}],34:[function(o,f,m){"use strict";f.exports=function(x,y,v){var C=o("./util"),T=x.TimeoutError;function S(P){this.handle=P}S.prototype._resultCancelled=function(){clearTimeout(this.handle)};var w=function(P){return E(+this).thenReturn(P)},E=x.delay=function(P,A){var M,V;return A!==void 0?(M=x.resolve(A)._then(w,null,null,P,void 0),v.cancellation()&&A instanceof x&&M._setOnCancel(A)):(M=new x(y),V=setTimeout(function(){M._fulfill()},+P),v.cancellation()&&M._setOnCancel(new S(V)),M._captureStackTrace()),M._setAsyncGuaranteed(),M};x.prototype.delay=function(P){return E(P,this)};var L=function(P,A,M){var V;typeof A!="string"?A instanceof Error?V=A:V=new T("operation timed out"):V=new T(A),C.markAsOriginatingFromRejection(V),P._attachExtraTrace(V),P._reject(V),M?.cancel()};function I(P){return clearTimeout(this.handle),P}function R(P){throw clearTimeout(this.handle),P}x.prototype.timeout=function(P,A){P=+P;var M,V,G=new S(setTimeout(function(){M.isPending()&&L(M,A,V)},P));return v.cancellation()?(V=this.then(),M=V._then(I,R,void 0,G,void 0),M._setOnCancel(G)):M=this._then(I,R,void 0,G,void 0),M}}},{"./util":36}],35:[function(o,f,m){"use strict";f.exports=function(x,y,v,C,T,S){var w=o("./util"),E=o("./errors").TypeError,L=o("./util").inherits,I=w.errorObj,R=w.tryCatch,P={};function A(U){setTimeout(function(){throw U},0)}function M(U){var B=v(U);return B!==U&&typeof U._isDisposable=="function"&&typeof U._getDisposer=="function"&&U._isDisposable()&&B._setDisposable(U._getDisposer()),B}function V(U,B){var Y=0,J=U.length,K=new x(T);function z(){if(Y>=J)return K._fulfill();var j=M(U[Y++]);if(j instanceof x&&j._isDisposable()){try{j=v(j._getDisposer().tryDispose(B),U.promise)}catch(q){return A(q)}if(j instanceof x)return j._then(z,A,null,null,null)}z()}return z(),K}function G(U,B,Y){this._data=U,this._promise=B,this._context=Y}G.prototype.data=function(){return this._data},G.prototype.promise=function(){return this._promise},G.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():P},G.prototype.tryDispose=function(U){var B=this.resource(),Y=this._context;Y!==void 0&&Y._pushContext();var J=B!==P?this.doDispose(B,U):null;return Y!==void 0&&Y._popContext(),this._promise._unsetDisposable(),this._data=null,J},G.isDisposer=function(U){return U!=null&&typeof U.resource=="function"&&typeof U.tryDispose=="function"};function D(U,B,Y){this.constructor$(U,B,Y)}L(D,G),D.prototype.doDispose=function(U,B){var Y=this.data();return Y.call(U,U,B)};function N(U){return G.isDisposer(U)?(this.resources[this.index]._setDisposable(U),U.promise()):U}function k(U){this.length=U,this.promise=null,this[U-1]=null}k.prototype._resultCancelled=function(){for(var U=this.length,B=0;B<U;++B){var Y=this[B];Y instanceof x&&Y.cancel()}},x.using=function(){var U=arguments.length;if(U<2)return y("you must pass at least 2 arguments to Promise.using");var B=arguments[U-1];if(typeof B!="function")return y("expecting a function but got "+w.classString(B));var Y,J=!0;U===2&&Array.isArray(arguments[0])?(Y=arguments[0],U=Y.length,J=!1):(Y=arguments,U--);for(var K=new k(U),z=0;z<U;++z){var j=Y[z];if(G.isDisposer(j)){var q=j;j=j.promise(),j._setDisposable(q)}else{var O=v(j);O instanceof x&&(j=O._then(N,null,null,{resources:K,index:z},void 0))}K[z]=j}for(var te=new Array(K.length),z=0;z<te.length;++z)te[z]=x.resolve(K[z]).reflect();var ie=x.all(te).then(function(ee){for(var ae=0;ae<ee.length;++ae){var oe=ee[ae];if(oe.isRejected())return I.e=oe.error(),I;if(!oe.isFulfilled()){ie.cancel();return}ee[ae]=oe.value()}re._pushContext(),B=R(B);var ce=J?B.apply(void 0,ee):B(ee),pe=re._popContext();return S.checkForgottenReturns(ce,pe,"Promise.using",re),ce}),re=ie.lastly(function(){var ee=new x.PromiseInspection(ie);return V(K,ee)});return K.promise=re,re._setOnCancel(K),re},x.prototype._setDisposable=function(U){this._bitField=this._bitField|131072,this._disposer=U},x.prototype._isDisposable=function(){return(this._bitField&131072)>0},x.prototype._getDisposer=function(){return this._disposer},x.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},x.prototype.disposer=function(U){if(typeof U=="function")return new D(U,this,C());throw new E}}},{"./errors":12,"./util":36}],36:[function(_dereq_,module,exports){"use strict";var es5=_dereq_("./es5"),canEvaluate=typeof navigator>"u",errorObj={e:{}},tryCatchTarget,globalObject=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:this!==void 0?this:null;function tryCatcher(){try{var o=tryCatchTarget;return tryCatchTarget=null,o.apply(this,arguments)}catch(f){return errorObj.e=f,errorObj}}function tryCatch(o){return tryCatchTarget=o,tryCatcher}var inherits=function(o,f){var m={}.hasOwnProperty;function x(){this.constructor=o,this.constructor$=f;for(var y in f.prototype)m.call(f.prototype,y)&&y.charAt(y.length-1)!=="$"&&(this[y+"$"]=f.prototype[y])}return x.prototype=f.prototype,o.prototype=new x,o.prototype};function isPrimitive(o){return o==null||o===!0||o===!1||typeof o=="string"||typeof o=="number"}function isObject(o){return typeof o=="function"||typeof o=="object"&&o!==null}function maybeWrapAsError(o){return isPrimitive(o)?new Error(safeToString(o)):o}function withAppended(o,f){var m=o.length,x=new Array(m+1),y;for(y=0;y<m;++y)x[y]=o[y];return x[y]=f,x}function getDataPropertyOrDefault(o,f,m){if(es5.isES5){var x=Object.getOwnPropertyDescriptor(o,f);if(x!=null)return x.get==null&&x.set==null?x.value:m}else return{}.hasOwnProperty.call(o,f)?o[f]:void 0}function notEnumerableProp(o,f,m){if(isPrimitive(o))return o;var x={value:m,configurable:!0,enumerable:!1,writable:!0};return es5.defineProperty(o,f,x),o}function thrower(o){throw o}var inheritedDataKeys=function(){var o=[Array.prototype,Object.prototype,Function.prototype],f=function(y){for(var v=0;v<o.length;++v)if(o[v]===y)return!0;return!1};if(es5.isES5){var m=Object.getOwnPropertyNames;return function(y){for(var v=[],C=Object.create(null);y!=null&&!f(y);){var T;try{T=m(y)}catch{return v}for(var S=0;S<T.length;++S){var w=T[S];if(!C[w]){C[w]=!0;var E=Object.getOwnPropertyDescriptor(y,w);E!=null&&E.get==null&&E.set==null&&v.push(w)}}y=es5.getPrototypeOf(y)}return v}}else{var x={}.hasOwnProperty;return function(y){if(f(y))return[];var v=[];e:for(var C in y)if(x.call(y,C))v.push(C);else{for(var T=0;T<o.length;++T)if(x.call(o[T],C))continue e;v.push(C)}return v}}}(),thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(o){try{if(typeof o=="function"){var f=es5.names(o.prototype),m=es5.isES5&&f.length>1,x=f.length>0&&!(f.length===1&&f[0]==="constructor"),y=thisAssignmentPattern.test(o+"")&&es5.names(o).length>0;if(m||x||y)return!0}return!1}catch{return!1}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}return ic(),ic(),obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(o){return rident.test(o)}function filledRange(o,f,m){for(var x=new Array(o),y=0;y<o;++y)x[y]=f+y+m;return x}function safeToString(o){try{return o+""}catch{return"[no string representation]"}}function isError(o){return o instanceof Error||o!==null&&typeof o=="object"&&typeof o.message=="string"&&typeof o.name=="string"}function markAsOriginatingFromRejection(o){try{notEnumerableProp(o,"isOperational",!0)}catch{}}function originatesFromRejection(o){return o==null?!1:o instanceof Error.__BluebirdErrorTypes__.OperationalError||o.isOperational===!0}function canAttachTrace(o){return isError(o)&&es5.propertyIsWritable(o,"stack")}var ensureErrorObject=function(){return"stack"in new Error?function(o){return canAttachTrace(o)?o:new Error(safeToString(o))}:function(o){if(canAttachTrace(o))return o;try{throw new Error(safeToString(o))}catch(f){return f}}}();function classString(o){return{}.toString.call(o)}function copyDescriptors(o,f,m){for(var x=es5.names(o),y=0;y<x.length;++y){var v=x[y];if(m(v))try{es5.defineProperty(f,v,es5.getDescriptor(o,v))}catch{}}}var asArray=function(o){return es5.isArray(o)?o:null};if(typeof Symbol<"u"&&Symbol.iterator){var ArrayFrom=typeof Array.from=="function"?function(o){return Array.from(o)}:function(o){for(var f=[],m=o[Symbol.iterator](),x;!(x=m.next()).done;)f.push(x.value);return f};asArray=function(o){return es5.isArray(o)?o:o!=null&&typeof o[Symbol.iterator]=="function"?ArrayFrom(o):null}}var isNode=typeof process<"u"&&classString(process).toLowerCase()==="[object process]",hasEnvVariables=typeof process<"u"&&typeof process.env<"u";function env(o){return hasEnvVariables?process.env[o]:void 0}function getNativePromise(){if(typeof Promise=="function")try{var o=new Promise(function(){});if(classString(o)==="[object Promise]")return Promise}catch{}}var reflectHandler;function contextBind(o,f){if(o===null||typeof f!="function"||f===reflectHandler)return f;o.domain!==null&&(f=o.domain.bind(f));var m=o.async;if(m!==null){var x=f;f=function(){var y=new Array(2).concat([].slice.call(arguments));return y[0]=x,y[1]=this,m.runInAsyncScope.apply(m,y)}}return f}var ret={setReflectHandler:function(o){reflectHandler=o},isClass,isIdentifier,inheritedDataKeys,getDataPropertyOrDefault,thrower,isArray:es5.isArray,asArray,notEnumerableProp,isPrimitive,isObject,isError,canEvaluate,errorObj,tryCatch,inherits,withAppended,maybeWrapAsError,toFastProperties,filledRange,toString:safeToString,canAttachTrace,ensureErrorObject,originatesFromRejection,markAsOriginatingFromRejection,classString,copyDescriptors,isNode,hasEnvVariables,env,global:globalObject,getNativePromise,contextBind};ret.isRecentNode=ret.isNode&&function(){var o;return process.versions&&process.versions.node?o=process.versions.node.split(".").map(Number):process.version&&(o=process.version.split(".").map(Number)),o[0]===0&&o[1]>10||o[0]>0}(),ret.nodeSupportsAsyncResource=ret.isNode&&function(){var o=!1;try{var f=_dereq_("async_hooks").AsyncResource;o=typeof f.prototype.runInAsyncScope=="function"}catch{o=!1}return o}(),ret.isNode&&ret.toFastProperties(process);try{throw new Error}catch(o){ret.lastLineError=o}module.exports=ret},{"./es5":13,async_hooks:void 0}]},{},[4])(4)});typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)});we();we();var cBe="CIM SDK v5.4.1.2",hBe="Cesium v1.129",dBe="BIM V20241204",pBe="SER V20250613",fBe="2025.7.21",iVt="WebSDK V5.4",rVt={VERSION:cBe,CesiumVERSION:hBe,BIMVERSION:dBe,SERVERSION:pBe,CompileTime:fBe},nVt=typeof window<"u"?window:typeof self<"u"?self:{};nVt.logSmartEarth=()=>{let o=` %c${iVt} %c \u7248 \u672C \u53F7\uFF1A${cBe} ${hBe} ${dBe} ${pBe} \u7F16\u8BD1\u65F6\u95F4\uFF1A${fBe} - `;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 oVt=rVt;var cyt={};Bie(cyt,{AlphaMode:()=>PH,AlphaPipelineStage:()=>GAe,AnchorPointDirect:()=>FRe,AnchorPointIndirect:()=>DRe,Animation:()=>gDe,AnimationViewModel:()=>yDe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>fde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>_ce,AtmospherePipelineStage:()=>pAe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>h5e,AutomaticUniforms:()=>vB,Axis:()=>D0,AxisAlignedBoundingBox:()=>m7,B3dmLoader:()=>KRe,B3dmParser:()=>YRe,Base64Encoder:()=>bae,BaseLayerPicker:()=>vDe,BaseLayerPickerViewModel:()=>_De,BatchTable:()=>Cz,BatchTableHierarchy:()=>Nce,BatchTexture:()=>KT,BatchTexturePipelineStage:()=>FAe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>oV,BillboardLoadState:()=>Om,BillboardTexture:()=>fz,BillboardVisualizer:()=>gIe,BingMapsGeocoderService:()=>Smt,BingMapsImageryProvider:()=>vO,BingMapsStyle:()=>phe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>hz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ehe,BoxEmitter:()=>wde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>yIe,BoxGraphics:()=>Tue,BoxOutlineGeometry:()=>BS,BrdfLutGenerator:()=>g3e,Buffer:()=>mo,BufferLoader:()=>j7,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>ZAe,CallbackPositionProperty:()=>PVe,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>C5e,CameraEventType:()=>Jc,CameraFlightPath:()=>qPe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>wmt,CatmullRomSpline:()=>Emt,Cesium3DContentGroup:()=>Jce,Cesium3DTile:()=>Wb,Cesium3DTileBatchTable:()=>dq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>yxt,Cesium3DTileContentFactory:()=>rhe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>r4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>she,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>bZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>ZS,Cesium3DTileStyleEngine:()=>CVe,Cesium3DTilesInspector:()=>SDe,Cesium3DTilesInspectorViewModel:()=>TDe,Cesium3DTilesVoxelProvider:()=>_xt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>SVe,Cesium3DTilesetCache:()=>vVe,Cesium3DTilesetGraphics:()=>Pue,Cesium3DTilesetHeatmap:()=>bVe,Cesium3DTilesetMetadata:()=>ahe,Cesium3DTilesetMostDetailedTraversal:()=>TVe,Cesium3DTilesetSkipTraversal:()=>wVe,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>LVe,CesiumInspector:()=>EDe,CesiumInspectorViewModel:()=>wDe,CesiumNavigation:()=>JFe,CesiumRenderPass:()=>nDe,CesiumTerrainProvider:()=>N4,CesiumWidget:()=>A4,Check:()=>Da,CheckerboardMaterialProperty:()=>ele,CircleEmitter:()=>TFe,CircleGeometry:()=>Vmt,CircleOutlineGeometry:()=>Gmt,CircleWaveMaterialProperty:()=>pz,ClassificationModelDrawCommand:()=>FMe,ClassificationPipelineStage:()=>DAe,ClassificationPrimitive:()=>Tz,ClassificationType:()=>hc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>kb,ClippingPolygonCollection:()=>Ry,Clock:()=>Az,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>xDe,CloudCollection:()=>Ext,CloudType:()=>hle,CollectionSource:()=>Uit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Wgt,CommandLoader:()=>jFe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>KMe,CompositeEntityCollection:()=>tmt,CompositeMaterialProperty:()=>ile,CompositePositionProperty:()=>i1,CompositeProperty:()=>rS,CompressedTextureBuffer:()=>DS,ComputeCommand:()=>cV,ComputeEngine:()=>l3e,ComputeRegionBox:()=>xxt,ConditionsExpression:()=>kLe,ConeEmitter:()=>X4,ConicArcSensor:()=>ble,ConicArcSensorCollection:()=>Agt,ConicArcSensorGeometry:()=>Tle,ConicArcSensorGraphics:()=>vle,ConicArcSensorOutlineGeometry:()=>Sle,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>eAe,ConstructionWorker:()=>Hit,ContentMetadata:()=>cVe,Context:()=>m3e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>lO,CoplanarPolygonGeometryLibrary:()=>DB,CoplanarPolygonOutlineGeometry:()=>tM,CornerType:()=>ad,CorrelationGroup:()=>NRe,CorridorGeometry:()=>N7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>bIe,CorridorGraphics:()=>Sue,CorridorOutlineGeometry:()=>vIe,Credit:()=>Oa,CreditDisplay:()=>y3e,CubeMap:()=>Ig,CubeMapFace:()=>ySe,CubicRealPolynomial:()=>r7,CullFace:()=>yh,CullingVolume:()=>pm,CumulusCloud:()=>wL,CustomDataSource:()=>Aue,CustomHeightmapTerrainProvider:()=>Fmt,CustomMercatorProjection:()=>xz,CustomShader:()=>P1,CustomShaderManagerEx:()=>yue,CustomShaderMode:()=>h7,CustomShaderPipelineStage:()=>zAe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Ert,CylinderGeometry:()=>W7,CylinderGeometryLibrary:()=>pce,CylinderGeometryUpdater:()=>CIe,CylinderGraphics:()=>wue,CylinderOutlineGeometry:()=>Z7,CzmlDataSource:()=>qq,DataSource:()=>Sy,DataSourceClock:()=>r9,DataSourceCollection:()=>mIe,DataSourceDisplay:()=>Cq,DebugAppearance:()=>Mxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>M5e,DebugModelMatrixPrimitive:()=>LFe,DefaultProxy:()=>Nmt,DepthFunction:()=>wy,DepthPlane:()=>b3e,DequantizationPipelineStage:()=>YAe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>C3e,DirectionalLight:()=>k4,DiscardEmptyTileImagePolicy:()=>fhe,DiscardMissingTileImagePolicy:()=>XVe,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>OFe,DoubleEndedPriorityQueue:()=>Hhe,DoublyLinkedList:()=>gq,DracoLoader:()=>Q7,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>k7,DynamicEnvironmentMapManager:()=>LH,DynamicGeometryBatch:()=>cce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>p7,EarthOrientationParameters:()=>JTe,EarthOrientationParametersSample:()=>i7,EasingFunction:()=>J_,EllipseGeometry:()=>TS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>TIe,EllipseGraphics:()=>Eue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>LIe,EllipsoidGraphics:()=>Ez,EllipsoidOutlineGeometry:()=>Fb,EllipsoidPrimitive:()=>a3e,EllipsoidRhumbLine:()=>lS,EllipsoidSurfaceAppearance:()=>iO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>IS,EllipsoidalOccluder:()=>k9,Empty3DTileContent:()=>x6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>kS,EntityView:()=>GVe,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>mb,ExpandByTerra:()=>Lrt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>eDe,FBXPrimitive:()=>Ade,FBXTreeParser:()=>$Fe,FeatureDataProvider:()=>Kue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>cq,FeatureJsonData:()=>Gz,FisheyeProjectionMap:()=>V7,FisheyeProjectionMapShader:()=>Bj,FlattenVS:()=>Egt,FlowEcharts:()=>Sde,Fog:()=>S3e,ForEach:()=>Or,FrameRateMonitor:()=>PFe,FrameState:()=>w3e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Vhe,FrustumGeometry:()=>Fz,FrustumOutlineGeometry:()=>M7,Fullscreen:()=>km,FullscreenButton:()=>PDe,FullscreenButtonViewModel:()=>LDe,GWBaiduImageryProvider:()=>Nz,GeoJsonDataSource:()=>qZ,GeoJsonLoader:()=>QRe,GeocodeType:()=>e$,Geocoder:()=>MDe,GeocoderService:()=>_de,GeocoderViewModel:()=>ADe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>JMe,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Xmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>jAe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>X7,GeometryVisualizer:()=>YIe,GetFeatureInfoFormat:()=>nQ,GifImageProperty:()=>gst,Globe:()=>t3e,GlobeDepth:()=>A3e,GlobeSurfaceShaderSet:()=>ZVe,GlobeSurfaceTile:()=>XM,GlobeSurfaceTileProvider:()=>qVe,GlobeTranslucency:()=>Rq,GlobeTranslucencyFramebuffer:()=>M3e,GlobeTranslucencyState:()=>L3e,GltfBufferViewLoader:()=>Cce,GltfDracoLoader:()=>Tce,GltfGpmLoader:()=>ZRe,GltfGpmLocal:()=>Dce,GltfImageLoader:()=>Sce,GltfIndexBufferLoader:()=>wce,GltfInstanceLoader:()=>Wce,GltfJsonLoader:()=>Pce,GltfLoader:()=>fO,GltfLoaderUtil:()=>WM,GltfMeshPrimitiveGpmLoader:()=>URe,GltfStructuralMetadataLoader:()=>VRe,GltfTextureLoader:()=>Ice,GltfVertexBufferLoader:()=>Rce,GoogleEarthEnterpriseImageryProvider:()=>Vxt,GoogleEarthEnterpriseMapsProvider:()=>BVe,GoogleEarthEnterpriseMetadata:()=>Z4,GoogleEarthEnterpriseTerrainData:()=>cle,GoogleEarthEnterpriseTerrainProvider:()=>Ymt,GoogleEarthEnterpriseTileInformation:()=>pFe,GoogleGeocoderService:()=>Jmt,GoogleMaps:()=>hQ,GpxDataSource:()=>QGe,Graticules:()=>nce,GregorianDate:()=>dz,GridImageryProvider:()=>Gxt,GridMaterialProperty:()=>rle,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>vz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>XS,GroupMetadata:()=>Ese,GwBufferAnalysis:()=>oce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>XTe,HeightMap:()=>bgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>dhe,HermitePolynomialApproximation:()=>NGe,HermiteSpline:()=>p6,HilbertOrder:()=>bse,HomeButton:()=>GDe,HomeButtonViewModel:()=>VDe,HorizontalOrigin:()=>ec,HugeAdapter:()=>hq,I3SBuildingSceneLayerExplorer:()=>$gt,I3SBuildingSceneLayerExplorerViewModel:()=>FDe,I3SDataProvider:()=>gR,I3SDecoder:()=>SGe,I3SFeature:()=>EGe,I3SField:()=>LGe,I3SGeometry:()=>Kse,I3SLayer:()=>qhe,I3SNode:()=>Jse,I3SStatistics:()=>IGe,I3SSublayer:()=>RGe,I3SSymbology:()=>PGe,I3dmLoader:()=>$Re,I3dmParser:()=>qRe,ITwinData:()=>Fxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>r3e,Iau2006XysData:()=>QTe,Iau2006XysSample:()=>rue,IauOrientationAxes:()=>n3e,IauOrientationParameters:()=>i3e,ImageBasedLighting:()=>aq,ImageBasedLightingPipelineStage:()=>mAe,ImageCombine:()=>mue,ImageMaterialProperty:()=>O0,Imagery:()=>_he,ImageryLayer:()=>Up,ImageryLayerCollection:()=>$Ve,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>wse,ImplicitAvailabilityBitstream:()=>Tse,ImplicitMetadataView:()=>Qce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>qce,ImplicitSubtreeCache:()=>bFe,ImplicitSubtreeMetadata:()=>$Me,ImplicitTileCoordinates:()=>che,ImplicitTileset:()=>uhe,IndexDatatype:()=>Fn,InfoBox:()=>WDe,InfoBoxViewModel:()=>NDe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>IAe,InterpolationAlgorithm:()=>jmt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>fc,Intersections2D:()=>D4,Interval:()=>VE,InvertClassification:()=>Ahe,Ion:()=>GG,IonGeocodeProviderType:()=>XZ,IonGeocoderService:()=>Cde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>HB,Iso8601:()=>wn,JobScheduler:()=>P3e,JobType:()=>G_,JsonMetadataTable:()=>H7,JulianDate:()=>$t,KTX2Transcoder:()=>BTe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>bPe,KmlDataSource:()=>I7,KmlLookAt:()=>CPe,KmlTour:()=>TPe,KmlTourFlyTo:()=>SPe,KmlTourWait:()=>EPe,Label:()=>bQ,LabelCollection:()=>tV,LabelGraphics:()=>Lz,LabelStyle:()=>f0,LabelVisualizer:()=>KIe,LagrangePolynomialApproximation:()=>ZGe,LeapSecond:()=>xh,Light:()=>Nxt,LightingModel:()=>uv,LightingPipelineStage:()=>qAe,LinearApproximation:()=>Uue,LinearSampler:()=>qI,LinearSpline:()=>uq,MTLLoader:()=>tDe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>$mt,MapboxImageryProvider:()=>bO,MapboxStyleImageryProvider:()=>Zxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>eMe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>zhe,MeshParser:()=>qFe,MeshPhongMaterial:()=>fQ,MeshPrimitiveGpmLocal:()=>kRe,MetadataClass:()=>Qz,MetadataClassProperty:()=>Kz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>RRe,MetadataEnumValue:()=>IRe,MetadataPicking:()=>I3e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>EM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Ace,MetadataSemantic:()=>$ce,MetadataTable:()=>dO,MetadataTableProperty:()=>aRe,MetadataType:()=>fo,MipmapHint:()=>Z9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>vMe,ModelAnimation:()=>aAe,ModelAnimationChannel:()=>nAe,ModelAnimationCollection:()=>sAe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>yAe,ModelArticulationStage:()=>gAe,ModelClippingPlanesPipelineStage:()=>bAe,ModelClippingPolygonsPipelineStage:()=>SAe,ModelColorPipelineStage:()=>f6,ModelComponents:()=>ll,ModelDrawCommand:()=>DMe,ModelDrawCommands:()=>ZMe,ModelFeature:()=>lAe,ModelFeatureTable:()=>uAe,ModelFlattenPipelineStage:()=>kMe,ModelGraphics:()=>x7,ModelLightingOptions:()=>MMe,ModelMatrixUpdateStage:()=>AAe,ModelNode:()=>wAe,ModelRenderResources:()=>wMe,ModelRuntimeNode:()=>VAe,ModelRuntimePrimitive:()=>gMe,ModelSceneGraph:()=>UMe,ModelSilhouettePipelineStage:()=>PMe,ModelSkin:()=>_Me,ModelSplitterPipelineStage:()=>RMe,ModelStatistics:()=>BMe,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>YMe,Moon:()=>s3e,MorphTargetsPipelineStage:()=>iMe,MorphWeightSpline:()=>ext,MortonOrder:()=>AH,MultiResourceImageryProvider:()=>Wz,MultiResourceTerrainProvider:()=>ace,Multiple3DTileContent:()=>mVe,MultisampleFramebuffer:()=>HRe,NavigationControl:()=>J4,NavigationHelpButton:()=>ODe,NavigationHelpButtonViewModel:()=>ZDe,NavigationUtils:()=>j4,NavigationViewModel:()=>dQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Oxt,NodeRenderResources:()=>AMe,NodeStatisticsPipelineStage:()=>MAe,NodeTransformationProperty:()=>Lue,OBJLoader:()=>rDe,OBJPrimitive:()=>Mde,OIT:()=>D3e,Occluder:()=>rce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Zz,OpenCageGeocoderService:()=>txt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>xIe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>xm,Packable:()=>ixt,PackableForInterpolation:()=>rxt,Particle:()=>Lde,ParticleBurst:()=>B4,ParticleEmitter:()=>Uxt,ParticleSystem:()=>QS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>g7,PathVisualizer:()=>IVe,PeliasGeocoderService:()=>xFe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Fq,PerformanceWatchdog:()=>HDe,PerformanceWatchdogViewModel:()=>BDe,PerspectiveFrustum:()=>mc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>G7,PerspectiveProjectionMapShader:()=>Hj,PerspectiveProjectionMapWithDepth:()=>F7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>R3e,PickDepthFramebuffer:()=>N3e,PickFramebuffer:()=>W3e,PickGlobeSlope:()=>Nft,PickedMetadataInfo:()=>aGe,Picking:()=>H3e,PickingPipelineStage:()=>rMe,PinBuilder:()=>b7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>PIe,PlaneGeometryUpdater:()=>AIe,PlaneGraphics:()=>iPe,PlaneOutlineGeometry:()=>IIe,PntsLoader:()=>HMe,PntsParser:()=>Yce,PointCloud:()=>CGe,PointCloudEyeDomeLighting:()=>sq,PointCloudShading:()=>i4,PointCloudStylingPipelineStage:()=>oMe,PointGraphics:()=>Iue,PointLight:()=>ede,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>iV,PointVisualizer:()=>RVe,PolygonDepth:()=>b9,PolygonDepthFS:()=>Bce,PolygonDepthVS:()=>Hce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>VIe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>MIe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>om,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>AVe,PolylineGlowMaterialProperty:()=>nle,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>KM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Wft,PolylineVisualizer:()=>VVe,PolylineVolumeGeometry:()=>GIe,PolylineVolumeGeometryLibrary:()=>u9,PolylineVolumeGeometryUpdater:()=>DIe,PolylineVolumeGraphics:()=>Rue,PolylineVolumeOutlineGeometry:()=>FIe,PositionProperty:()=>wz,PositionPropertyArray:()=>dH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>m5e,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>Ohe,PpeMetadata:()=>XRe,PpeSource:()=>Vgt,PpeTexture:()=>ORe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>iq,PrimitiveOutlineGenerator:()=>Gce,PrimitiveOutlinePipelineStage:()=>lMe,PrimitivePipeline:()=>jZ,PrimitiveRenderResources:()=>VMe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>uMe,PrimitiveType:()=>pn,ProjectionPicker:()=>kDe,ProjectionPickerViewModel:()=>XDe,Property:()=>Nt,PropertyArray:()=>cde,PropertyAttribute:()=>bce,PropertyAttributeProperty:()=>rRe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>Y7,PropertyTextureProperty:()=>tRe,ProviderViewModel:()=>Ef,Proxy:()=>axt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>She,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Xft,QuadtreeTile:()=>Aq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>OO,QuantizedMeshTerrainData:()=>xde,QuarticRealPolynomial:()=>pSe,Quaternion:()=>fr,QuaternionSpline:()=>iAe,Queue:()=>aV,RasterizeHtml:()=>M4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>yce,RectangleGeometry:()=>uO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>kIe,RectangleGraphics:()=>Pz,RectangleOutlineGeometry:()=>mce,RectangularSensor:()=>V6,RectangularSensorFS:()=>mle,RectangularSensorGraphics:()=>Mgt,RectangularSensorPrimitive:()=>cDe,RectangularSensorScanPlaneFS:()=>uDe,RectangularSensorVS:()=>Gde,RectangularSensorVisualizer:()=>hDe,ReferenceFrame:()=>pp,ReferenceProperty:()=>L7,RegionPolygonTexture:()=>DFe,RegionTexture:()=>NFe,RegionWeather:()=>Vde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Pb,Request:()=>hm,RequestErrorEvent:()=>zZ,RequestScheduler:()=>x1,RequestState:()=>pc,RequestType:()=>n2,ResetViewNavigationControl:()=>UFe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>zS,ResourceCacheStatistics:()=>MRe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>kB,S3MDataSource:()=>Hft,SDFSettings:()=>ev,SampledPositionProperty:()=>nS,SampledProperty:()=>uM,Sampler:()=>Yo,ScaledPositionProperty:()=>Mz,Scene:()=>VO,SceneFramebuffer:()=>Ghe,SceneHeightMap:()=>lDe,SceneHeightWaterPostProcessing:()=>XT,SceneHeightWaterPrimitive:()=>xgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>cMe,SceneModePicker:()=>YDe,SceneModePickerViewModel:()=>zDe,SceneTransforms:()=>Ca,SceneTransitioner:()=>b5e,ScreenSpaceCameraController:()=>P5e,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>m6,SelectionIndicator:()=>JDe,SelectionIndicatorViewModel:()=>KDe,Sensor:()=>ygt,SensorVolumePortionToDisplay:()=>ale,ShaderBuilder:()=>kce,ShaderCache:()=>c3e,ShaderDestination:()=>Ji,ShaderFunction:()=>SMe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>CMe,ShadowMap:()=>PV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>gM,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>v6,SimplePolylineGeometry:()=>sxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>dMe,SkyAtmosphere:()=>zq,SkyBox:()=>GO,SlopeArrow:()=>Dde,SpatialNode:()=>iGe,Spdcf:()=>WRe,SpecularEnvironmentCubeMap:()=>_9,SphereEmitter:()=>H4,SphereGeometry:()=>lxt,SphereOutlineGeometry:()=>sV,Spherical:()=>OGe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>Khe,SpotLight:()=>Yft,StaticGeometryColorBatch:()=>hM,StaticGeometryPerMaterialBatch:()=>dM,StaticGroundGeometryColorBatch:()=>use,StaticGroundGeometryPerMaterialBatch:()=>zIe,StaticGroundPolylinePerMaterialBatch:()=>MVe,StaticOutlineGeometryBatch:()=>cse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>tAe,Stereographic:()=>Lb,StorageType:()=>IH,StripeMaterialProperty:()=>ole,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>v9,StyleExpression:()=>Bxt,Sun:()=>vGe,SunLight:()=>C4,SunPostProcess:()=>A5e,SupportedImageFormats:()=>GRe,SvgPathBindingHandler:()=>mDe,TaskProcessor:()=>mp,Terrain:()=>VFe,TerrainData:()=>yO,TerrainEncoding:()=>PS,TerrainFillMesh:()=>Che,TerrainFlatten:()=>kO,TerrainFlattenPolygonTexture:()=>WFe,TerrainMesh:()=>_O,TerrainOffsetProperty:()=>dce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>sDe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>qGe,TextureAtlas:()=>aue,TextureCache:()=>h3e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>OLe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>oue,TextureUniform:()=>cue,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>LS,TileBoundingS2Cell:()=>xVe,TileBoundingSphere:()=>bV,TileBoundingVolume:()=>Hxt,TileCoordinatesImageryProvider:()=>l$,TileDiscardPolicy:()=>zxt,TileEdge:()=>hs,TileImagery:()=>vhe,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>dVe,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>am,TileReplacementQueue:()=>Ehe,TileSelectionResult:()=>fa,TileState:()=>Yxt,Tileset3DTileContent:()=>eVe,TilesetMetadata:()=>_Ve,TilesetPipelineStage:()=>cAe,TilesetRegionWeather:()=>aDe,TilingScheme:()=>uxt,TimeConstants:()=>cc,TimeDynamicImagery:()=>yhe,TimeDynamicPointCloud:()=>Jhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>MH,TimeIntervalCollectionProperty:()=>pH,TimeStandard:()=>cu,Timeline:()=>qDe,TimelineHighlightRange:()=>jDe,TimelineTrack:()=>QDe,Tipsify:()=>mSe,ToggleButtonViewModel:()=>gB,Tonemapper:()=>SZ,TrackingReferenceFrame:()=>wB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>U3e,TridiagonalSystemSolver:()=>Zce,TrustedServers:()=>qle,TweenCollection:()=>Uhe,UniformState:()=>d3e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>jft,UrlTemplateImageryProvider:()=>Hb,UserInterfaceControl:()=>Rde,Utils:()=>TL,VERSION:()=>o0e,VRButton:()=>iNe,VRButtonViewModel:()=>tNe,VRTheWorldTerrainProvider:()=>pxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>RH,Vector3DTileClampedPolylines:()=>aVe,Vector3DTileContent:()=>uVe,Vector3DTileGeometry:()=>dZ,Vector3DTilePoints:()=>tVe,Vector3DTilePolygons:()=>iVe,Vector3DTilePolylines:()=>ihe,Vector3DTilePrimitive:()=>jce,VelocityOrientationProperty:()=>XGe,VelocityVectorProperty:()=>Tq,VertexArray:()=>Cu,VertexArrayFacade:()=>o7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>fMe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>cxt,View:()=>N1,ViewShed:()=>Igt,ViewShedMap:()=>I4,ViewShedMapShader:()=>XG,Viewer:()=>n0e,ViewportQuad:()=>Y4,Visibility:()=>Rl,Visualizer:()=>vmt,VolumeCloud:()=>Nde,VoxelBoxShape:()=>Xq,VoxelCell:()=>V5e,VoxelContent:()=>Bhe,VoxelCylinderShape:()=>kq,VoxelEllipsoidShape:()=>Uq,VoxelInspector:()=>eNe,VoxelInspectorViewModel:()=>$De,VoxelMetadataOrder:()=>w9,VoxelPrimitive:()=>Hq,VoxelProvider:()=>Kxt,VoxelRenderResources:()=>K5e,VoxelShape:()=>Jxt,VoxelShapeType:()=>Vb,VoxelTraversal:()=>rGe,VulkanConstants:()=>fxt,WallGeometry:()=>UIe,WallGeometryLibrary:()=>xce,WallGeometryUpdater:()=>HIe,WallGraphics:()=>y7,WallOutlineGeometry:()=>BIe,WaterFS:()=>jPe,WaterHeightMap:()=>Cgt,WaterMaterialProperty:()=>Qft,WaterPipelinePrimitive:()=>ade,WaterPostProcessing:()=>yle,WaterPostProcessingEx:()=>_le,WaterPrimitive:()=>Wde,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>dDe,WaterReflectImageEx:()=>pDe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>CO,WebMapTileServiceImageryProvider:()=>wV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>xp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Xce,WireframePipelineStage:()=>xMe,ZoomNavigationControl:()=>dle,_shadersAcesTonemappingStage:()=>z3e,_shadersAdditiveBlend:()=>I5e,_shadersAdjustTranslucentFS:()=>Wse,_shadersAllMaterialAppearanceFS:()=>ZPe,_shadersAllMaterialAppearanceVS:()=>OPe,_shadersAmbientOcclusionGenerate:()=>Y3e,_shadersAmbientOcclusionModulate:()=>K3e,_shadersAspectRampMaterial:()=>vSe,_shadersAtmosphereCommon:()=>g9,_shadersAtmosphereStageFS:()=>hAe,_shadersAtmosphereStageVS:()=>dAe,_shadersBasicMaterialAppearanceFS:()=>XPe,_shadersBasicMaterialAppearanceVS:()=>kPe,_shadersBillboardCollectionFS:()=>bLe,_shadersBillboardCollectionVS:()=>CLe,_shadersBlackAndWhite:()=>J3e,_shadersBloomComposite:()=>j3e,_shadersBrdfLutGeneratorFS:()=>x3e,_shadersBrightPass:()=>R5e,_shadersBrightness:()=>Q3e,_shadersBumpMapMaterial:()=>bSe,_shadersCPUStylingStageFS:()=>WAe,_shadersCPUStylingStageVS:()=>NAe,_shadersCheckerboardMaterial:()=>CSe,_shadersCloudCollectionFS:()=>$Ge,_shadersCloudCollectionVS:()=>eFe,_shadersCloudNoiseFS:()=>tFe,_shadersCloudNoiseVS:()=>iFe,_shadersCompareAndPackTranslucentDepth:()=>k3e,_shadersCompositeOITFS:()=>V3e,_shadersCompositeTranslucentClassification:()=>oQ,_shadersComputeIrradianceFS:()=>jIe,_shadersComputeRadianceMapFS:()=>QIe,_shadersContrastBias:()=>q3e,_shadersConvolveSpecularMapFS:()=>qIe,_shadersConvolveSpecularMapVS:()=>$Ie,_shadersCustomShaderStageFS:()=>XAe,_shadersCustomShaderStageVS:()=>OAe,_shadersCzmBuiltins:()=>Ij,_shadersDepthOfField:()=>$3e,_shadersDepthPlaneFS:()=>_3e,_shadersDepthPlaneVS:()=>v3e,_shadersDepthView:()=>e5e,_shadersDepthViewPacked:()=>Tgt,_shadersDotMaterial:()=>TSe,_shadersEdgeDetection:()=>t5e,_shadersElevationBandMaterial:()=>SSe,_shadersElevationContourMaterial:()=>wSe,_shadersElevationRampMaterial:()=>ESe,_shadersEllipsoidFS:()=>Dse,_shadersEllipsoidSurfaceAppearanceFS:()=>HPe,_shadersEllipsoidSurfaceAppearanceVS:()=>zPe,_shadersEllipsoidVS:()=>Nse,_shadersFXAA:()=>n5e,_shadersFXAA3_11:()=>c5e,_shadersFadeMaterial:()=>LSe,_shadersFeatureIdStageFS:()=>kAe,_shadersFeatureIdStageVS:()=>UAe,_shadersFilmicTonemapping:()=>i5e,_shadersGaussianBlur1D:()=>T6,_shadersGeometryStageFS:()=>KAe,_shadersGeometryStageVS:()=>JAe,_shadersGlobeFS:()=>DVe,_shadersGlobeVS:()=>NVe,_shadersGridMaterial:()=>PSe,_shadersGroundAtmosphere:()=>Ise,_shadersHSBToRGB:()=>_Ee,_shadersHSLToRGB:()=>vEe,_shadersImageBasedLightingStageFS:()=>fAe,_shadersInstancingStageCommon:()=>EAe,_shadersInstancingStageVS:()=>LAe,_shadersIntersectBox:()=>O5e,_shadersIntersectClippingPlanes:()=>Z5e,_shadersIntersectCylinder:()=>X5e,_shadersIntersectDepth:()=>W5e,_shadersIntersectEllipsoid:()=>k5e,_shadersIntersectLongitude:()=>Xse,_shadersIntersection:()=>lQ,_shadersIntersectionUtils:()=>N5e,_shadersLegacyInstancingStageVS:()=>PAe,_shadersLensFlare:()=>o5e,_shadersLightingStageFS:()=>QAe,_shadersMaterialStageFS:()=>$Ae,_shadersMegatexture:()=>Y5e,_shadersMetadataStageFS:()=>BAe,_shadersMetadataStageVS:()=>HAe,_shadersModelClippingPlanesStageFS:()=>vAe,_shadersModelClippingPolygonsStageFS:()=>TAe,_shadersModelClippingPolygonsStageVS:()=>CAe,_shadersModelColorStageFS:()=>_Ae,_shadersModelFS:()=>WMe,_shadersModelFlattenStageFS:()=>XMe,_shadersModelFlattenStageVS:()=>OMe,_shadersModelSilhouetteStageFS:()=>EMe,_shadersModelSilhouetteStageVS:()=>LMe,_shadersModelSplitterStageFS:()=>IMe,_shadersModelVS:()=>NMe,_shadersModifiedReinhardTonemapping:()=>a5e,_shadersMorphTargetsStageVS:()=>tMe,_shadersNightVision:()=>s5e,_shadersNormalMapMaterial:()=>ISe,_shadersOctree:()=>z5e,_shadersPassThrough:()=>kM,_shadersPassThroughDepth:()=>C6,_shadersPbrNeutralTonemapping:()=>r5e,_shadersPerInstanceColorAppearanceFS:()=>$Le,_shadersPerInstanceColorAppearanceVS:()=>ePe,_shadersPerInstanceFlatColorAppearanceFS:()=>vue,_shadersPerInstanceFlatColorAppearanceVS:()=>tPe,_shadersPointCloudEyeDomeLighting:()=>zRe,_shadersPointCloudStylingStageVS:()=>nMe,_shadersPointPrimitiveCollectionFS:()=>nB,_shadersPointPrimitiveCollectionVS:()=>LLe,_shadersPolygonSignedDistanceFS:()=>JIe,_shadersPolylineArrowMaterial:()=>RSe,_shadersPolylineColorAppearanceVS:()=>JLe,_shadersPolylineCommon:()=>K9,_shadersPolylineDashMaterial:()=>ASe,_shadersPolylineFS:()=>bue,_shadersPolylineGlowMaterial:()=>MSe,_shadersPolylineMaterialAppearanceVS:()=>jLe,_shadersPolylineOutlineMaterial:()=>VSe,_shadersPolylineShadowVolumeFS:()=>HLe,_shadersPolylineShadowVolumeMorphFS:()=>zLe,_shadersPolylineShadowVolumeMorphVS:()=>YLe,_shadersPolylineShadowVolumeVS:()=>KLe,_shadersPolylineVS:()=>YPe,_shadersPostProcessRain:()=>Sgt,_shadersPostProcessSnow:()=>wgt,_shadersPrimitiveOutlineStageFS:()=>sMe,_shadersPrimitiveOutlineStageVS:()=>aMe,_shadersRGBToHSB:()=>zEe,_shadersRGBToHSL:()=>YEe,_shadersRGBToXYZ:()=>KEe,_shadersReinhardTonemapping:()=>l5e,_shadersReprojectWebMercatorFS:()=>YVe,_shadersReprojectWebMercatorVS:()=>KVe,_shadersRimLightingMaterial:()=>GSe,_shadersSelectedFeatureIdStageCommon:()=>yse,_shadersShadowVolumeAppearanceFS:()=>Cue,_shadersShadowVolumeAppearanceVS:()=>qLe,_shadersShadowVolumeFS:()=>PQ,_shadersSilhouette:()=>u5e,_shadersSkinningStageVS:()=>hMe,_shadersSkyAtmosphereCommon:()=>Hse,_shadersSkyAtmosphereFS:()=>dGe,_shadersSkyAtmosphereVS:()=>pGe,_shadersSkyBoxFS:()=>mGe,_shadersSkyBoxVS:()=>xGe,_shadersSlopeRampMaterial:()=>FSe,_shadersStripeMaterial:()=>DSe,_shadersSunFS:()=>gGe,_shadersSunTextureFS:()=>yGe,_shadersSunVS:()=>_Ge,_shadersTexturedMaterialAppearanceFS:()=>UPe,_shadersTexturedMaterialAppearanceVS:()=>BPe,_shadersVector3DTileClampedPolylinesFS:()=>oVe,_shadersVector3DTileClampedPolylinesVS:()=>nVe,_shadersVector3DTilePolylinesVS:()=>rVe,_shadersVectorTileVS:()=>vse,_shadersVerticalExaggerationStageVS:()=>pMe,_shadersViewportQuadFS:()=>rFe,_shadersViewportQuadVS:()=>Phe,_shadersVoxelFS:()=>F5e,_shadersVoxelUtils:()=>G5e,_shadersVoxelVS:()=>D5e,_shadersWater:()=>WSe,_shadersWaterMaskMaterial:()=>NSe,_shadersXYZToRGB:()=>yLe,_shadersacesTonemapping:()=>Nwe,_shadersalphaWeight:()=>Wwe,_shadersantialias:()=>Zwe,_shadersapplyHSBShift:()=>Owe,_shadersapproximateSphericalCoordinates:()=>Xwe,_shadersapproximateTanh:()=>kwe,_shadersbackFacing:()=>Uwe,_shadersbranchFreeTernary:()=>Bwe,_shaderscascadeColor:()=>Hwe,_shaderscascadeDistance:()=>zwe,_shaderscascadeMatrix:()=>Ywe,_shaderscascadeWeights:()=>Kwe,_shadersclipPolygons:()=>Jwe,_shaderscolumbusViewMorph:()=>jwe,_shaderscomputeAtmosphereColor:()=>Qwe,_shaderscomputeGroundAtmosphereScattering:()=>qwe,_shaderscomputePosition:()=>$we,_shaderscomputeScattering:()=>eEe,_shadersconvertUvToBox:()=>U5e,_shadersconvertUvToCylinder:()=>B5e,_shadersconvertUvToEllipsoid:()=>H5e,_shaderscosineAndSine:()=>tEe,_shadersdecompressTextureCoordinates:()=>iEe,_shadersdegreesPerRadian:()=>HSe,_shadersdepthClamp:()=>rEe,_shadersdepthRange:()=>zSe,_shadersdepthRangeStruct:()=>Iwe,_shaderseastNorthUpToEyeCoordinates:()=>nEe,_shadersellipsoidContainsPoint:()=>oEe,_shadersellipsoidTextureCoordinates:()=>aEe,_shadersepsilon1:()=>YSe,_shadersepsilon2:()=>KSe,_shadersepsilon3:()=>JSe,_shadersepsilon4:()=>jSe,_shadersepsilon5:()=>QSe,_shadersepsilon6:()=>qSe,_shadersepsilon7:()=>$Se,_shadersequalsEpsilon:()=>sEe,_shaderseyeOffset:()=>lEe,_shaderseyeToWindowCoordinates:()=>uEe,_shadersfastApproximateAtan:()=>cEe,_shadersfog:()=>hEe,_shadersgammaCorrect:()=>dEe,_shadersgeodeticSurfaceNormal:()=>pEe,_shadersgetDefaultMaterial:()=>fEe,_shadersgetDynamicAtmosphereLightDirection:()=>mEe,_shadersgetLambertDiffuse:()=>xEe,_shadersgetSpecular:()=>gEe,_shadersgetWaterNoise:()=>yEe,_shadershue:()=>bEe,_shadersinfinity:()=>ewe,_shadersinverseGamma:()=>CEe,_shadersisEmpty:()=>TEe,_shadersisFull:()=>SEe,_shaderslatitudeToWebMercatorFraction:()=>wEe,_shaderslineDistance:()=>LEe,_shaderslinearToSrgb:()=>EEe,_shadersluminance:()=>PEe,_shadersmaterial:()=>Rwe,_shadersmaterialInput:()=>Awe,_shadersmaximumComponent:()=>IEe,_shadersmetersPerPixel:()=>REe,_shadersmodelMaterial:()=>Mwe,_shadersmodelToWindowCoordinates:()=>AEe,_shadersmodelVertexOutput:()=>Vwe,_shadersmultiplyWithColorBalance:()=>MEe,_shadersnearFarScalar:()=>VEe,_shadersoctDecode:()=>GEe,_shadersoneOverPi:()=>twe,_shadersoneOverTwoPi:()=>iwe,_shaderspackDepth:()=>FEe,_shaderspassCesium3DTile:()=>rwe,_shaderspassCesium3DTileClassification:()=>nwe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>owe,_shaderspassClassification:()=>awe,_shaderspassCompute:()=>swe,_shaderspassEnvironment:()=>lwe,_shaderspassGlobe:()=>uwe,_shaderspassOpaque:()=>cwe,_shaderspassOverlay:()=>hwe,_shaderspassTerrainClassification:()=>dwe,_shaderspassTranslucent:()=>pwe,_shaderspassVoxels:()=>fwe,_shaderspbrLighting:()=>DEe,_shaderspbrNeutralTonemapping:()=>NEe,_shadersphong:()=>WEe,_shaderspi:()=>mwe,_shaderspiOverFour:()=>xwe,_shaderspiOverSix:()=>gwe,_shaderspiOverThree:()=>ywe,_shaderspiOverTwo:()=>_we,_shadersplaneDistance:()=>ZEe,_shaderspointAlongRay:()=>OEe,_shadersradiansPerDegree:()=>vwe,_shadersray:()=>Gwe,_shadersrayEllipsoidIntersectionInterval:()=>XEe,_shadersraySegment:()=>Fwe,_shadersraySphereIntersectionInterval:()=>kEe,_shadersreadDepth:()=>UEe,_shadersreadNonPerspective:()=>BEe,_shadersreverseLogDepth:()=>HEe,_shadersround:()=>JEe,_shaderssaturation:()=>jEe,_shaderssceneMode2D:()=>bwe,_shaderssceneMode3D:()=>Cwe,_shaderssceneModeColumbusView:()=>Twe,_shaderssceneModeMorphing:()=>Swe,_shadersshadowDepthCompare:()=>QEe,_shadersshadowParameters:()=>Dwe,_shadersshadowVisibility:()=>qEe,_shaderssignNotZero:()=>$Ee,_shaderssolarRadius:()=>wwe,_shaderssphericalHarmonics:()=>eLe,_shaderssrgbToLinear:()=>tLe,_shaderstangentToEyeSpaceMatrix:()=>iLe,_shaderstextureCube:()=>rLe,_shadersthreePiOver2:()=>Ewe,_shaderstransformPlane:()=>nLe,_shaderstranslateRelativeToEye:()=>oLe,_shaderstranslucentPhong:()=>aLe,_shaderstranspose:()=>sLe,_shaderstwoPi:()=>Lwe,_shadersunpackClippingExtents:()=>lLe,_shadersunpackDepth:()=>uLe,_shadersunpackFloat:()=>cLe,_shadersunpackUint:()=>hLe,_shadersvalueTransform:()=>dLe,_shadersvertexLogDepth:()=>pLe,_shaderswebMercatorMaxLatitude:()=>Pwe,_shaderswindowToEyeCoordinates:()=>fLe,_shaderswriteDepthClamp:()=>mLe,_shaderswriteLogDepth:()=>xLe,_shaderswriteNonPerspective:()=>gLe,addBuffer:()=>_Re,addDefaults:()=>hRe,addExtensionsRequired:()=>xRe,addExtensionsUsed:()=>pO,addPipelineExtras:()=>q7,addToArray:()=>n1,appendForwardSlash:()=>DTe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>nue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>j5e,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>hhe,createBillboardPointCallback:()=>the,createBlurStage:()=>fle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>bDe,createDefaultTerrainProviderViewModels:()=>CDe,createEdgeStage:()=>Q4,createElevationBandMaterial:()=>Pxt,createFragmentFromTemplate:()=>ZFe,createGooglePhotorealistic3DTileset:()=>Ixt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Rxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>vb,createTangentSpaceDebugPrimitive:()=>Axt,createTaskProcessorWorker:()=>Ggt,createUniform:()=>kSe,createUniformArray:()=>BSe,createWorldBathymetryAsync:()=>cFe,createWorldImageryAsync:()=>zB,createWorldTerrainAsync:()=>gde,decodeGoogleEarthEnterpriseData:()=>dFe,decodeVectorPolylinePositions:()=>sVe,defaultValue:()=>Zmt,defer:()=>fp,defined:()=>F,demodernizeShader:()=>_Le,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>fmt,fflate_module:()=>QFe,findAccessorMinMax:()=>$7,findContentMetadata:()=>nhe,findGroupMetadata:()=>ohe,findTileMetadata:()=>fVe,forEachTextureInMaterial:()=>Lce,formatError:()=>_H,fragment:()=>Lgt,freezeRenderState:()=>utt,getAbsoluteUri:()=>$B,getAccessorByteStride:()=>XF,getBaseUri:()=>WTe,getBinaryAccessor:()=>CM,getClipAndStyleCode:()=>bGe,getClippingFunction:()=>wq,getComponentReader:()=>U7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>v7,getImageFromTypedArray:()=>ZLe,getImagePixels:()=>BZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>jz,getMetadataClassProperty:()=>oGe,getMetadataProperty:()=>sGe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>D7,isBitSet:()=>m1,isBlobUri:()=>Kle,isCrossOriginUrl:()=>HZ,isDataUri:()=>e7,isLeapYear:()=>YZ,knockout:()=>sr,knockout_3_5_1:()=>VV,knockout_es5:()=>fDe,libgif:()=>oIe,loadAndExecuteScript:()=>Jle,loadCRN:()=>qmt,loadCubeMap:()=>fGe,loadDDS:()=>$le,loadImageFromTypedArray:()=>Jz,loadKTX2:()=>IF,loadView:()=>Ide,mergeSort:()=>b4,moveTechniqueRenderStates:()=>mRe,moveTechniquesToExtension:()=>gRe,numberOfComponentsForType:()=>hO,objFS:()=>iDe,objectToQuery:()=>jle,oneTimeWarning:()=>aa,packer:()=>ULe,parseBatchTable:()=>$z,parseDefines:()=>oDe,parseFeatureMetadataLegacy:()=>lRe,parseGlb:()=>pRe,parseResponseHeaders:()=>ZTe,parseStructuralMetadata:()=>sRe,pickModel:()=>zMe,pointInsideTriangle:()=>nxt,preprocess3DTileContent:()=>fq,processVoxelProperties:()=>J5e,queryToObject:()=>lI,rasterizeHTML_allinone:()=>VGe,readAccessorPacked:()=>vRe,removeExtension:()=>h6,removeExtensionsRequired:()=>dRe,removeExtensionsUsed:()=>Ece,removePipelineExtras:()=>fRe,removeUnusedElements:()=>yRe,remove_primitive:()=>M6,resizeImageToNextPowerOfTwo:()=>EQ,sampleTerrain:()=>Sq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>eue,srgbToLinear:()=>jhe,subdivideArray:()=>QLe,subscribeAndEvaluate:()=>Eb,svgCompassGyro:()=>HFe,svgCompassOuterRing:()=>BFe,svgCompassRotationMarker:()=>zFe,svgReset:()=>XFe,turf:()=>Po,updateAccessorComponentTypes:()=>bRe,updateVersion:()=>SRe,usesExtension:()=>um,vertex:()=>Pgt,viewerCesium3DTilesInspectorMixin:()=>oyt,viewerCesiumInspectorMixin:()=>ayt,viewerCesiumNavigationMixin:()=>igt,viewerDragDropMixin:()=>syt,viewerPerformanceWatchdogMixin:()=>lyt,viewerVoxelInspectorMixin:()=>uyt,webGLConstantToGlslType:()=>mxt,wrapFunction:()=>_Fe,writeTextToCanvas:()=>H9});we();var aVt=Object.create,gqe=Object.defineProperty,sVt=Object.getOwnPropertyDescriptor,lVt=Object.getOwnPropertyNames,uVt=Object.getPrototypeOf,cVt=Object.prototype.hasOwnProperty,yZ=(o=>typeof RT<"u"?RT:typeof Proxy<"u"?new Proxy(o,{get:(f,m)=>(typeof RT<"u"?RT:f)[m]}):o)(function(o){if(typeof RT<"u")return RT.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')}),Zt=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),hVt=(o,f,m,x)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of lVt(f))!cVt.call(o,y)&&y!==m&&gqe(o,y,{get:()=>f[y],enumerable:!(x=sVt(f,y))||x.enumerable});return o},k0=(o,f,m)=>(m=o!=null?aVt(uVt(o)):{},hVt(f||!o||!o.__esModule?gqe(m,"default",{value:o,enumerable:!0}):m,o)),Q1e=Zt((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,y){var v,C,T;for(this.init_seed(19650218),v=1,C=0,T=this.N>y?this.N:y;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1664525<<16)+(S&65535)*1664525)+x[C]+C,this.mt[v]>>>=0,v++,C++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1),C>=y&&(C=0)}for(T=this.N-1;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1566083941<<16)+(S&65535)*1566083941)-v,this.mt[v]>>>=0,v++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1)}this.mt[0]=2147483648},m.prototype.random_int=function(){var x,y=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var v;for(this.mti==this.N+1&&this.init_seed(5489),v=0;v<this.N-this.M;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+this.M]^x>>>1^y[x&1];for(;v<this.N-1;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+(this.M-this.N)]^x>>>1^y[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^y[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,y=this.random_int()>>>6;return(x*67108864+y)*(1/9007199254740992)},f.exports=m}),dVt=Zt((o,f)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(m){var x=typeof o=="object"&&o&&!o.nodeType&&o,y=typeof f=="object"&&f&&!f.nodeType&&f,v=typeof global=="object"&&global;(v.global===v||v.window===v||v.self===v)&&(m=v);var C,T=2147483647,S=36,w=1,E=26,L=38,I=700,R=72,P=128,A="-",M=/^xn--/,V=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=S-w,k=Math.floor,U=String.fromCharCode,B;function Y(oe){throw new RangeError(D[oe])}function J(oe,ce){for(var pe=oe.length,ue=[];pe--;)ue[pe]=ce(oe[pe]);return ue}function K(oe,ce){var pe=oe.split("@"),ue="";pe.length>1&&(ue=pe[0]+"@",oe=pe[1]),oe=oe.replace(G,".");var he=oe.split("."),fe=J(he,ce).join(".");return ue+fe}function z(oe){for(var ce=[],pe=0,ue=oe.length,he,fe;pe<ue;)he=oe.charCodeAt(pe++),he>=55296&&he<=56319&&pe<ue?(fe=oe.charCodeAt(pe++),(fe&64512)==56320?ce.push(((he&1023)<<10)+(fe&1023)+65536):(ce.push(he),pe--)):ce.push(he);return ce}function j(oe){return J(oe,function(ce){var pe="";return ce>65535&&(ce-=65536,pe+=U(ce>>>10&1023|55296),ce=56320|ce&1023),pe+=U(ce),pe}).join("")}function q(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:S}function O(oe,ce){return oe+22+75*(oe<26)-((ce!=0)<<5)}function te(oe,ce,pe){var ue=0;for(oe=pe?k(oe/I):oe>>1,oe+=k(oe/ce);oe>N*E>>1;ue+=S)oe=k(oe/N);return k(ue+(N+1)*oe/(oe+L))}function ie(oe){var ce=[],pe=oe.length,ue,he=0,fe=P,de=R,Ce,Se,Le,Ve,Oe,$e,at,dt,gt;for(Ce=oe.lastIndexOf(A),Ce<0&&(Ce=0),Se=0;Se<Ce;++Se)oe.charCodeAt(Se)>=128&&Y("not-basic"),ce.push(oe.charCodeAt(Se));for(Le=Ce>0?Ce+1:0;Le<pe;){for(Ve=he,Oe=1,$e=S;Le>=pe&&Y("invalid-input"),at=q(oe.charCodeAt(Le++)),(at>=S||at>k((T-he)/Oe))&&Y("overflow"),he+=at*Oe,dt=$e<=de?w:$e>=de+E?E:$e-de,!(at<dt);$e+=S)gt=S-dt,Oe>k(T/gt)&&Y("overflow"),Oe*=gt;ue=ce.length+1,de=te(he-Ve,ue,Ve==0),k(he/ue)>T-fe&&Y("overflow"),fe+=k(he/ue),he%=ue,ce.splice(he++,0,fe)}return j(ce)}function re(oe){var ce,pe,ue,he,fe,de,Ce,Se,Le,Ve,Oe,$e=[],at,dt,gt,Et;for(oe=z(oe),at=oe.length,ce=P,pe=0,fe=R,de=0;de<at;++de)Oe=oe[de],Oe<128&&$e.push(U(Oe));for(ue=he=$e.length,he&&$e.push(A);ue<at;){for(Ce=T,de=0;de<at;++de)Oe=oe[de],Oe>=ce&&Oe<Ce&&(Ce=Oe);for(dt=ue+1,Ce-ce>k((T-pe)/dt)&&Y("overflow"),pe+=(Ce-ce)*dt,ce=Ce,de=0;de<at;++de)if(Oe=oe[de],Oe<ce&&++pe>T&&Y("overflow"),Oe==ce){for(Se=pe,Le=S;Ve=Le<=fe?w:Le>=fe+E?E:Le-fe,!(Se<Ve);Le+=S)Et=Se-Ve,gt=S-Ve,$e.push(U(O(Ve+Et%gt,0))),Se=k(Et/gt);$e.push(U(O(Se,0))),fe=te(pe,dt,ue==he),pe=0,++ue}++pe,++ce}return $e.join("")}function ee(oe){return K(oe,function(ce){return M.test(ce)?ie(ce.slice(4).toLowerCase()):ce})}function ae(oe){return K(oe,function(ce){return V.test(ce)?"xn--"+re(ce):ce})}if(C={version:"1.3.2",ucs2:{decode:z,encode:j},decode:ie,encode:re,toASCII:ae,toUnicode:ee},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(x&&y)if(f.exports==x)y.exports=C;else for(B in C)C.hasOwnProperty(B)&&(x[B]=C[B]);else m.punycode=C})(o)}),pVt=Zt((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 oVt=rVt;var cyt={};Bie(cyt,{AlphaMode:()=>PH,AlphaPipelineStage:()=>GAe,AnchorPointDirect:()=>FRe,AnchorPointIndirect:()=>DRe,Animation:()=>gDe,AnimationViewModel:()=>yDe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>fde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>_ce,AtmospherePipelineStage:()=>pAe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>h5e,AutomaticUniforms:()=>vB,Axis:()=>D0,AxisAlignedBoundingBox:()=>m7,B3dmLoader:()=>KRe,B3dmParser:()=>YRe,Base64Encoder:()=>bae,BaseLayerPicker:()=>vDe,BaseLayerPickerViewModel:()=>_De,BatchTable:()=>Cz,BatchTableHierarchy:()=>Nce,BatchTexture:()=>KT,BatchTexturePipelineStage:()=>FAe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>oV,BillboardLoadState:()=>Om,BillboardTexture:()=>fz,BillboardVisualizer:()=>gIe,BingMapsGeocoderService:()=>Smt,BingMapsImageryProvider:()=>vO,BingMapsStyle:()=>phe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>hz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ehe,BoxEmitter:()=>Sde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>yIe,BoxGraphics:()=>Tue,BoxOutlineGeometry:()=>BS,BrdfLutGenerator:()=>g3e,Buffer:()=>mo,BufferLoader:()=>j7,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>ZAe,CallbackPositionProperty:()=>PVe,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>C5e,CameraEventType:()=>Jc,CameraFlightPath:()=>qPe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>wmt,CatmullRomSpline:()=>Emt,Cesium3DContentGroup:()=>Jce,Cesium3DTile:()=>Wb,Cesium3DTileBatchTable:()=>dq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>xxt,Cesium3DTileContentFactory:()=>rhe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>r4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>she,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>bZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>ZS,Cesium3DTileStyleEngine:()=>CVe,Cesium3DTilesInspector:()=>SDe,Cesium3DTilesInspectorViewModel:()=>TDe,Cesium3DTilesVoxelProvider:()=>gxt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>SVe,Cesium3DTilesetCache:()=>vVe,Cesium3DTilesetGraphics:()=>Pue,Cesium3DTilesetHeatmap:()=>bVe,Cesium3DTilesetMetadata:()=>ahe,Cesium3DTilesetMostDetailedTraversal:()=>TVe,Cesium3DTilesetSkipTraversal:()=>wVe,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>LVe,CesiumInspector:()=>EDe,CesiumInspectorViewModel:()=>wDe,CesiumNavigation:()=>JFe,CesiumRenderPass:()=>nDe,CesiumTerrainProvider:()=>N4,CesiumWidget:()=>A4,Check:()=>Da,CheckerboardMaterialProperty:()=>ele,CircleEmitter:()=>TFe,CircleGeometry:()=>Vmt,CircleOutlineGeometry:()=>Gmt,CircleWaveMaterialProperty:()=>pz,ClassificationModelDrawCommand:()=>FMe,ClassificationPipelineStage:()=>DAe,ClassificationPrimitive:()=>Tz,ClassificationType:()=>hc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>kb,ClippingPolygonCollection:()=>Ry,Clock:()=>Az,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>xDe,CloudCollection:()=>Sxt,CloudType:()=>hle,CollectionSource:()=>Uit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Wgt,CommandLoader:()=>jFe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>KMe,CompositeEntityCollection:()=>tmt,CompositeMaterialProperty:()=>ile,CompositePositionProperty:()=>i1,CompositeProperty:()=>rS,CompressedTextureBuffer:()=>DS,ComputeCommand:()=>cV,ComputeEngine:()=>l3e,ComputeRegionBox:()=>Kxt,ConditionsExpression:()=>kLe,ConeEmitter:()=>X4,ConicArcSensor:()=>ble,ConicArcSensorCollection:()=>Agt,ConicArcSensorGeometry:()=>Tle,ConicArcSensorGraphics:()=>vle,ConicArcSensorOutlineGeometry:()=>Sle,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>eAe,ConstructionWorker:()=>Hit,ContentMetadata:()=>cVe,Context:()=>m3e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>lO,CoplanarPolygonGeometryLibrary:()=>DB,CoplanarPolygonOutlineGeometry:()=>tM,CornerType:()=>ad,CorrelationGroup:()=>NRe,CorridorGeometry:()=>N7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>bIe,CorridorGraphics:()=>Sue,CorridorOutlineGeometry:()=>vIe,Credit:()=>Oa,CreditDisplay:()=>y3e,CubeMap:()=>Ig,CubeMapFace:()=>ySe,CubicRealPolynomial:()=>r7,CullFace:()=>yh,CullingVolume:()=>pm,CumulusCloud:()=>wL,CustomDataSource:()=>Aue,CustomHeightmapTerrainProvider:()=>Fmt,CustomMercatorProjection:()=>xz,CustomShader:()=>P1,CustomShaderManagerEx:()=>yue,CustomShaderMode:()=>h7,CustomShaderPipelineStage:()=>zAe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Ert,CylinderGeometry:()=>W7,CylinderGeometryLibrary:()=>pce,CylinderGeometryUpdater:()=>CIe,CylinderGraphics:()=>wue,CylinderOutlineGeometry:()=>Z7,CzmlDataSource:()=>qq,DataSource:()=>Sy,DataSourceClock:()=>r9,DataSourceCollection:()=>mIe,DataSourceDisplay:()=>Cq,DebugAppearance:()=>Rxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>M5e,DebugModelMatrixPrimitive:()=>LFe,DefaultProxy:()=>Nmt,DepthFunction:()=>wy,DepthPlane:()=>b3e,DequantizationPipelineStage:()=>YAe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>C3e,DirectionalLight:()=>k4,DiscardEmptyTileImagePolicy:()=>fhe,DiscardMissingTileImagePolicy:()=>XVe,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>OFe,DoubleEndedPriorityQueue:()=>Hhe,DoublyLinkedList:()=>gq,DracoLoader:()=>Q7,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>k7,DynamicEnvironmentMapManager:()=>LH,DynamicGeometryBatch:()=>cce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>p7,EarthOrientationParameters:()=>JTe,EarthOrientationParametersSample:()=>i7,EasingFunction:()=>J_,EllipseGeometry:()=>TS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>TIe,EllipseGraphics:()=>Eue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>LIe,EllipsoidGraphics:()=>Ez,EllipsoidOutlineGeometry:()=>Fb,EllipsoidPrimitive:()=>a3e,EllipsoidRhumbLine:()=>lS,EllipsoidSurfaceAppearance:()=>iO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>IS,EllipsoidalOccluder:()=>k9,Empty3DTileContent:()=>x6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>kS,EntityView:()=>GVe,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>mb,ExpandByTerra:()=>Lrt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>eDe,FBXPrimitive:()=>Ade,FBXTreeParser:()=>$Fe,FeatureDataProvider:()=>Kue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>cq,FeatureJsonData:()=>Gz,FisheyeProjectionMap:()=>V7,FisheyeProjectionMapShader:()=>Bj,FlattenVS:()=>Egt,FlowEcharts:()=>Pde,Fog:()=>S3e,ForEach:()=>Or,FrameRateMonitor:()=>PFe,FrameState:()=>w3e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Vhe,FrustumGeometry:()=>Fz,FrustumOutlineGeometry:()=>M7,Fullscreen:()=>km,FullscreenButton:()=>qDe,FullscreenButtonViewModel:()=>QDe,GWBaiduImageryProvider:()=>Nz,GeoJsonDataSource:()=>qZ,GeoJsonLoader:()=>QRe,GeocodeType:()=>e$,Geocoder:()=>RDe,GeocoderService:()=>_de,GeocoderViewModel:()=>IDe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>JMe,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Xmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>jAe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>X7,GeometryVisualizer:()=>YIe,GetFeatureInfoFormat:()=>nQ,GifImageProperty:()=>gst,Globe:()=>t3e,GlobeDepth:()=>A3e,GlobeSurfaceShaderSet:()=>ZVe,GlobeSurfaceTile:()=>XM,GlobeSurfaceTileProvider:()=>qVe,GlobeTranslucency:()=>Rq,GlobeTranslucencyFramebuffer:()=>M3e,GlobeTranslucencyState:()=>L3e,GltfBufferViewLoader:()=>Cce,GltfDracoLoader:()=>Tce,GltfGpmLoader:()=>ZRe,GltfGpmLocal:()=>Dce,GltfImageLoader:()=>Sce,GltfIndexBufferLoader:()=>wce,GltfInstanceLoader:()=>Wce,GltfJsonLoader:()=>Pce,GltfLoader:()=>fO,GltfLoaderUtil:()=>WM,GltfMeshPrimitiveGpmLoader:()=>URe,GltfStructuralMetadataLoader:()=>VRe,GltfTextureLoader:()=>Ice,GltfVertexBufferLoader:()=>Rce,GoogleEarthEnterpriseImageryProvider:()=>Axt,GoogleEarthEnterpriseMapsProvider:()=>BVe,GoogleEarthEnterpriseMetadata:()=>Z4,GoogleEarthEnterpriseTerrainData:()=>cle,GoogleEarthEnterpriseTerrainProvider:()=>Ymt,GoogleEarthEnterpriseTileInformation:()=>sFe,GoogleGeocoderService:()=>Jmt,GoogleMaps:()=>hQ,GpxDataSource:()=>QGe,Graticules:()=>nce,GregorianDate:()=>dz,GridImageryProvider:()=>Mxt,GridMaterialProperty:()=>rle,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>vz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>XS,GroupMetadata:()=>Ese,GwBufferAnalysis:()=>oce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>XTe,HeightMap:()=>bgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>dhe,HermitePolynomialApproximation:()=>NGe,HermiteSpline:()=>p6,HilbertOrder:()=>bse,HomeButton:()=>MDe,HomeButtonViewModel:()=>ADe,HorizontalOrigin:()=>ec,HugeAdapter:()=>hq,I3SBuildingSceneLayerExplorer:()=>$gt,I3SBuildingSceneLayerExplorerViewModel:()=>VDe,I3SDataProvider:()=>gR,I3SDecoder:()=>SGe,I3SFeature:()=>EGe,I3SField:()=>LGe,I3SGeometry:()=>Kse,I3SLayer:()=>qhe,I3SNode:()=>Jse,I3SStatistics:()=>IGe,I3SSublayer:()=>RGe,I3SSymbology:()=>PGe,I3dmLoader:()=>$Re,I3dmParser:()=>qRe,ITwinData:()=>Vxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>r3e,Iau2006XysData:()=>QTe,Iau2006XysSample:()=>rue,IauOrientationAxes:()=>n3e,IauOrientationParameters:()=>i3e,ImageBasedLighting:()=>aq,ImageBasedLightingPipelineStage:()=>mAe,ImageCombine:()=>mue,ImageMaterialProperty:()=>O0,Imagery:()=>_he,ImageryLayer:()=>Up,ImageryLayerCollection:()=>$Ve,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>wse,ImplicitAvailabilityBitstream:()=>Tse,ImplicitMetadataView:()=>Qce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>qce,ImplicitSubtreeCache:()=>bFe,ImplicitSubtreeMetadata:()=>$Me,ImplicitTileCoordinates:()=>che,ImplicitTileset:()=>uhe,IndexDatatype:()=>Fn,InfoBox:()=>DDe,InfoBoxViewModel:()=>FDe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>IAe,InterpolationAlgorithm:()=>jmt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>fc,Intersections2D:()=>D4,Interval:()=>VE,InvertClassification:()=>Ahe,Ion:()=>GG,IonGeocodeProviderType:()=>XZ,IonGeocoderService:()=>Cde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>HB,Iso8601:()=>wn,JobScheduler:()=>P3e,JobType:()=>G_,JsonMetadataTable:()=>H7,JulianDate:()=>$t,KTX2Transcoder:()=>BTe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>bPe,KmlDataSource:()=>I7,KmlLookAt:()=>CPe,KmlTour:()=>TPe,KmlTourFlyTo:()=>SPe,KmlTourWait:()=>EPe,Label:()=>bQ,LabelCollection:()=>tV,LabelGraphics:()=>Lz,LabelStyle:()=>f0,LabelVisualizer:()=>KIe,LagrangePolynomialApproximation:()=>ZGe,LeapSecond:()=>xh,Light:()=>Fxt,LightingModel:()=>uv,LightingPipelineStage:()=>qAe,LinearApproximation:()=>Uue,LinearSampler:()=>qI,LinearSpline:()=>uq,MTLLoader:()=>tDe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>$mt,MapboxImageryProvider:()=>bO,MapboxStyleImageryProvider:()=>Nxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>eMe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>zhe,MeshParser:()=>qFe,MeshPhongMaterial:()=>fQ,MeshPrimitiveGpmLocal:()=>kRe,MetadataClass:()=>Qz,MetadataClassProperty:()=>Kz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>RRe,MetadataEnumValue:()=>IRe,MetadataPicking:()=>I3e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>EM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Ace,MetadataSemantic:()=>$ce,MetadataTable:()=>dO,MetadataTableProperty:()=>aRe,MetadataType:()=>fo,MipmapHint:()=>Z9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>vMe,ModelAnimation:()=>aAe,ModelAnimationChannel:()=>nAe,ModelAnimationCollection:()=>sAe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>yAe,ModelArticulationStage:()=>gAe,ModelClippingPlanesPipelineStage:()=>bAe,ModelClippingPolygonsPipelineStage:()=>SAe,ModelColorPipelineStage:()=>f6,ModelComponents:()=>ll,ModelDrawCommand:()=>DMe,ModelDrawCommands:()=>ZMe,ModelFeature:()=>lAe,ModelFeatureTable:()=>uAe,ModelFlattenPipelineStage:()=>kMe,ModelGraphics:()=>x7,ModelLightingOptions:()=>MMe,ModelMatrixUpdateStage:()=>AAe,ModelNode:()=>wAe,ModelRenderResources:()=>wMe,ModelRuntimeNode:()=>VAe,ModelRuntimePrimitive:()=>gMe,ModelSceneGraph:()=>UMe,ModelSilhouettePipelineStage:()=>PMe,ModelSkin:()=>_Me,ModelSplitterPipelineStage:()=>RMe,ModelStatistics:()=>BMe,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>YMe,Moon:()=>s3e,MorphTargetsPipelineStage:()=>iMe,MorphWeightSpline:()=>ext,MortonOrder:()=>AH,MultiResourceImageryProvider:()=>Wz,MultiResourceTerrainProvider:()=>ace,Multiple3DTileContent:()=>mVe,MultisampleFramebuffer:()=>HRe,NavigationControl:()=>J4,NavigationHelpButton:()=>WDe,NavigationHelpButtonViewModel:()=>NDe,NavigationUtils:()=>j4,NavigationViewModel:()=>dQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Wxt,NodeRenderResources:()=>AMe,NodeStatisticsPipelineStage:()=>MAe,NodeTransformationProperty:()=>Lue,OBJLoader:()=>rDe,OBJPrimitive:()=>Mde,OIT:()=>D3e,Occluder:()=>rce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Zz,OpenCageGeocoderService:()=>txt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>xIe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>xm,Packable:()=>ixt,PackableForInterpolation:()=>rxt,Particle:()=>Ede,ParticleBurst:()=>B4,ParticleEmitter:()=>Xxt,ParticleSystem:()=>QS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>g7,PathVisualizer:()=>IVe,PeliasGeocoderService:()=>cFe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Fq,PerformanceWatchdog:()=>XDe,PerformanceWatchdogViewModel:()=>ODe,PerspectiveFrustum:()=>mc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>G7,PerspectiveProjectionMapShader:()=>Hj,PerspectiveProjectionMapWithDepth:()=>F7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>R3e,PickDepthFramebuffer:()=>N3e,PickFramebuffer:()=>W3e,PickGlobeSlope:()=>Nft,PickedMetadataInfo:()=>aGe,Picking:()=>H3e,PickingPipelineStage:()=>rMe,PinBuilder:()=>b7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>PIe,PlaneGeometryUpdater:()=>AIe,PlaneGraphics:()=>iPe,PlaneOutlineGeometry:()=>IIe,PntsLoader:()=>HMe,PntsParser:()=>Yce,PointCloud:()=>CGe,PointCloudEyeDomeLighting:()=>sq,PointCloudShading:()=>i4,PointCloudStylingPipelineStage:()=>oMe,PointGraphics:()=>Iue,PointLight:()=>ede,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>iV,PointVisualizer:()=>RVe,PolygonDepth:()=>b9,PolygonDepthFS:()=>Bce,PolygonDepthVS:()=>Hce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>VIe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>MIe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>om,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>AVe,PolylineGlowMaterialProperty:()=>nle,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>KM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Wft,PolylineVisualizer:()=>VVe,PolylineVolumeGeometry:()=>GIe,PolylineVolumeGeometryLibrary:()=>u9,PolylineVolumeGeometryUpdater:()=>DIe,PolylineVolumeGraphics:()=>Rue,PolylineVolumeOutlineGeometry:()=>FIe,PositionProperty:()=>wz,PositionPropertyArray:()=>dH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>m5e,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>Ohe,PpeMetadata:()=>XRe,PpeSource:()=>Vgt,PpeTexture:()=>ORe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>iq,PrimitiveOutlineGenerator:()=>Gce,PrimitiveOutlinePipelineStage:()=>lMe,PrimitivePipeline:()=>jZ,PrimitiveRenderResources:()=>VMe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>uMe,PrimitiveType:()=>pn,ProjectionPicker:()=>UDe,ProjectionPickerViewModel:()=>kDe,Property:()=>Nt,PropertyArray:()=>cde,PropertyAttribute:()=>bce,PropertyAttributeProperty:()=>rRe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>Y7,PropertyTextureProperty:()=>tRe,ProviderViewModel:()=>Ef,Proxy:()=>axt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>She,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Xft,QuadtreeTile:()=>Aq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>OO,QuantizedMeshTerrainData:()=>xde,QuarticRealPolynomial:()=>pSe,Quaternion:()=>fr,QuaternionSpline:()=>iAe,Queue:()=>aV,RasterizeHtml:()=>M4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>yce,RectangleGeometry:()=>uO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>kIe,RectangleGraphics:()=>Pz,RectangleOutlineGeometry:()=>mce,RectangularSensor:()=>V6,RectangularSensorFS:()=>mle,RectangularSensorGraphics:()=>Mgt,RectangularSensorPrimitive:()=>cDe,RectangularSensorScanPlaneFS:()=>uDe,RectangularSensorVS:()=>Gde,RectangularSensorVisualizer:()=>hDe,ReferenceFrame:()=>pp,ReferenceProperty:()=>L7,RegionPolygonTexture:()=>DFe,RegionTexture:()=>NFe,RegionWeather:()=>Vde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Pb,Request:()=>hm,RequestErrorEvent:()=>zZ,RequestScheduler:()=>x1,RequestState:()=>pc,RequestType:()=>n2,ResetViewNavigationControl:()=>UFe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>zS,ResourceCacheStatistics:()=>MRe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>kB,S3MDataSource:()=>Hft,SDFSettings:()=>ev,SampledPositionProperty:()=>nS,SampledProperty:()=>uM,Sampler:()=>Yo,ScaledPositionProperty:()=>Mz,Scene:()=>VO,SceneFramebuffer:()=>Ghe,SceneHeightMap:()=>lDe,SceneHeightWaterPostProcessing:()=>XT,SceneHeightWaterPrimitive:()=>xgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>cMe,SceneModePicker:()=>HDe,SceneModePickerViewModel:()=>BDe,SceneTransforms:()=>Ca,SceneTransitioner:()=>b5e,ScreenSpaceCameraController:()=>P5e,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>m6,SelectionIndicator:()=>YDe,SelectionIndicatorViewModel:()=>zDe,Sensor:()=>ygt,SensorVolumePortionToDisplay:()=>ale,ShaderBuilder:()=>kce,ShaderCache:()=>c3e,ShaderDestination:()=>Ji,ShaderFunction:()=>SMe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>CMe,ShadowMap:()=>PV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>gM,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>v6,SimplePolylineGeometry:()=>sxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>dMe,SkyAtmosphere:()=>zq,SkyBox:()=>GO,SlopeArrow:()=>Dde,SpatialNode:()=>iGe,Spdcf:()=>WRe,SpecularEnvironmentCubeMap:()=>_9,SphereEmitter:()=>H4,SphereGeometry:()=>lxt,SphereOutlineGeometry:()=>sV,Spherical:()=>OGe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>Khe,SpotLight:()=>Yft,StaticGeometryColorBatch:()=>hM,StaticGeometryPerMaterialBatch:()=>dM,StaticGroundGeometryColorBatch:()=>use,StaticGroundGeometryPerMaterialBatch:()=>zIe,StaticGroundPolylinePerMaterialBatch:()=>MVe,StaticOutlineGeometryBatch:()=>cse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>tAe,Stereographic:()=>Lb,StorageType:()=>IH,StripeMaterialProperty:()=>ole,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>v9,StyleExpression:()=>kxt,Sun:()=>vGe,SunLight:()=>C4,SunPostProcess:()=>A5e,SupportedImageFormats:()=>GRe,SvgPathBindingHandler:()=>mDe,TaskProcessor:()=>mp,Terrain:()=>VFe,TerrainData:()=>yO,TerrainEncoding:()=>PS,TerrainFillMesh:()=>Che,TerrainFlatten:()=>kO,TerrainFlattenPolygonTexture:()=>WFe,TerrainMesh:()=>_O,TerrainOffsetProperty:()=>dce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>sDe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>fFe,TextureAtlas:()=>aue,TextureCache:()=>h3e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>OLe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>oue,TextureUniform:()=>cue,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>LS,TileBoundingS2Cell:()=>xVe,TileBoundingSphere:()=>bV,TileBoundingVolume:()=>Uxt,TileCoordinatesImageryProvider:()=>l$,TileDiscardPolicy:()=>Bxt,TileEdge:()=>hs,TileImagery:()=>vhe,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>dVe,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>am,TileReplacementQueue:()=>Ehe,TileSelectionResult:()=>fa,TileState:()=>Hxt,Tileset3DTileContent:()=>eVe,TilesetMetadata:()=>_Ve,TilesetPipelineStage:()=>cAe,TilesetRegionWeather:()=>aDe,TilingScheme:()=>uxt,TimeConstants:()=>cc,TimeDynamicImagery:()=>yhe,TimeDynamicPointCloud:()=>Jhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>MH,TimeIntervalCollectionProperty:()=>pH,TimeStandard:()=>cu,Timeline:()=>jDe,TimelineHighlightRange:()=>KDe,TimelineTrack:()=>JDe,Tipsify:()=>mSe,ToggleButtonViewModel:()=>gB,Tonemapper:()=>SZ,TrackingReferenceFrame:()=>wB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>U3e,TridiagonalSystemSolver:()=>Zce,TrustedServers:()=>qle,TweenCollection:()=>Uhe,UniformState:()=>d3e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>jft,UrlTemplateImageryProvider:()=>Hb,UserInterfaceControl:()=>Rde,Utils:()=>TL,VERSION:()=>o0e,VRButton:()=>eNe,VRButtonViewModel:()=>$De,VRTheWorldTerrainProvider:()=>pxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>RH,Vector3DTileClampedPolylines:()=>aVe,Vector3DTileContent:()=>uVe,Vector3DTileGeometry:()=>dZ,Vector3DTilePoints:()=>tVe,Vector3DTilePolygons:()=>iVe,Vector3DTilePolylines:()=>ihe,Vector3DTilePrimitive:()=>jce,VelocityOrientationProperty:()=>XGe,VelocityVectorProperty:()=>Tq,VertexArray:()=>Cu,VertexArrayFacade:()=>o7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>fMe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>cxt,View:()=>N1,ViewShed:()=>Igt,ViewShedMap:()=>I4,ViewShedMapShader:()=>XG,Viewer:()=>r0e,ViewportQuad:()=>Y4,Visibility:()=>Rl,Visualizer:()=>vmt,VolumeCloud:()=>Nde,VoxelBoxShape:()=>Xq,VoxelCell:()=>V5e,VoxelContent:()=>Bhe,VoxelCylinderShape:()=>kq,VoxelEllipsoidShape:()=>Uq,VoxelInspector:()=>rNe,VoxelInspectorViewModel:()=>iNe,VoxelMetadataOrder:()=>w9,VoxelPrimitive:()=>Hq,VoxelProvider:()=>zxt,VoxelRenderResources:()=>K5e,VoxelShape:()=>Yxt,VoxelShapeType:()=>Vb,VoxelTraversal:()=>rGe,VulkanConstants:()=>fxt,WallGeometry:()=>UIe,WallGeometryLibrary:()=>xce,WallGeometryUpdater:()=>HIe,WallGraphics:()=>y7,WallOutlineGeometry:()=>BIe,WaterFS:()=>jPe,WaterHeightMap:()=>Cgt,WaterMaterialProperty:()=>Qft,WaterPipelinePrimitive:()=>ade,WaterPostProcessing:()=>yle,WaterPostProcessingEx:()=>_le,WaterPrimitive:()=>Wde,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>dDe,WaterReflectImageEx:()=>pDe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>CO,WebMapTileServiceImageryProvider:()=>wV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>xp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Xce,WireframePipelineStage:()=>xMe,ZoomNavigationControl:()=>dle,_shadersAcesTonemappingStage:()=>z3e,_shadersAdditiveBlend:()=>I5e,_shadersAdjustTranslucentFS:()=>Wse,_shadersAllMaterialAppearanceFS:()=>ZPe,_shadersAllMaterialAppearanceVS:()=>OPe,_shadersAmbientOcclusionGenerate:()=>Y3e,_shadersAmbientOcclusionModulate:()=>K3e,_shadersAspectRampMaterial:()=>vSe,_shadersAtmosphereCommon:()=>g9,_shadersAtmosphereStageFS:()=>hAe,_shadersAtmosphereStageVS:()=>dAe,_shadersBasicMaterialAppearanceFS:()=>XPe,_shadersBasicMaterialAppearanceVS:()=>kPe,_shadersBillboardCollectionFS:()=>bLe,_shadersBillboardCollectionVS:()=>CLe,_shadersBlackAndWhite:()=>J3e,_shadersBloomComposite:()=>j3e,_shadersBrdfLutGeneratorFS:()=>x3e,_shadersBrightPass:()=>R5e,_shadersBrightness:()=>Q3e,_shadersBumpMapMaterial:()=>bSe,_shadersCPUStylingStageFS:()=>WAe,_shadersCPUStylingStageVS:()=>NAe,_shadersCheckerboardMaterial:()=>CSe,_shadersCloudCollectionFS:()=>mFe,_shadersCloudCollectionVS:()=>xFe,_shadersCloudNoiseFS:()=>gFe,_shadersCloudNoiseVS:()=>yFe,_shadersCompareAndPackTranslucentDepth:()=>k3e,_shadersCompositeOITFS:()=>V3e,_shadersCompositeTranslucentClassification:()=>oQ,_shadersComputeIrradianceFS:()=>jIe,_shadersComputeRadianceMapFS:()=>QIe,_shadersContrastBias:()=>q3e,_shadersConvolveSpecularMapFS:()=>qIe,_shadersConvolveSpecularMapVS:()=>$Ie,_shadersCustomShaderStageFS:()=>XAe,_shadersCustomShaderStageVS:()=>OAe,_shadersCzmBuiltins:()=>Ij,_shadersDepthOfField:()=>$3e,_shadersDepthPlaneFS:()=>_3e,_shadersDepthPlaneVS:()=>v3e,_shadersDepthView:()=>e5e,_shadersDepthViewPacked:()=>Tgt,_shadersDotMaterial:()=>TSe,_shadersEdgeDetection:()=>t5e,_shadersElevationBandMaterial:()=>SSe,_shadersElevationContourMaterial:()=>wSe,_shadersElevationRampMaterial:()=>ESe,_shadersEllipsoidFS:()=>Dse,_shadersEllipsoidSurfaceAppearanceFS:()=>HPe,_shadersEllipsoidSurfaceAppearanceVS:()=>zPe,_shadersEllipsoidVS:()=>Nse,_shadersFXAA:()=>n5e,_shadersFXAA3_11:()=>c5e,_shadersFadeMaterial:()=>LSe,_shadersFeatureIdStageFS:()=>kAe,_shadersFeatureIdStageVS:()=>UAe,_shadersFilmicTonemapping:()=>i5e,_shadersGaussianBlur1D:()=>T6,_shadersGeometryStageFS:()=>KAe,_shadersGeometryStageVS:()=>JAe,_shadersGlobeFS:()=>DVe,_shadersGlobeVS:()=>NVe,_shadersGridMaterial:()=>PSe,_shadersGroundAtmosphere:()=>Ise,_shadersHSBToRGB:()=>_Ee,_shadersHSLToRGB:()=>vEe,_shadersImageBasedLightingStageFS:()=>fAe,_shadersInstancingStageCommon:()=>EAe,_shadersInstancingStageVS:()=>LAe,_shadersIntersectBox:()=>O5e,_shadersIntersectClippingPlanes:()=>Z5e,_shadersIntersectCylinder:()=>X5e,_shadersIntersectDepth:()=>W5e,_shadersIntersectEllipsoid:()=>k5e,_shadersIntersectLongitude:()=>Xse,_shadersIntersection:()=>lQ,_shadersIntersectionUtils:()=>N5e,_shadersLegacyInstancingStageVS:()=>PAe,_shadersLensFlare:()=>o5e,_shadersLightingStageFS:()=>QAe,_shadersMaterialStageFS:()=>$Ae,_shadersMegatexture:()=>Y5e,_shadersMetadataStageFS:()=>BAe,_shadersMetadataStageVS:()=>HAe,_shadersModelClippingPlanesStageFS:()=>vAe,_shadersModelClippingPolygonsStageFS:()=>TAe,_shadersModelClippingPolygonsStageVS:()=>CAe,_shadersModelColorStageFS:()=>_Ae,_shadersModelFS:()=>WMe,_shadersModelFlattenStageFS:()=>XMe,_shadersModelFlattenStageVS:()=>OMe,_shadersModelSilhouetteStageFS:()=>EMe,_shadersModelSilhouetteStageVS:()=>LMe,_shadersModelSplitterStageFS:()=>IMe,_shadersModelVS:()=>NMe,_shadersModifiedReinhardTonemapping:()=>a5e,_shadersMorphTargetsStageVS:()=>tMe,_shadersNightVision:()=>s5e,_shadersNormalMapMaterial:()=>ISe,_shadersOctree:()=>z5e,_shadersPassThrough:()=>kM,_shadersPassThroughDepth:()=>C6,_shadersPbrNeutralTonemapping:()=>r5e,_shadersPerInstanceColorAppearanceFS:()=>$Le,_shadersPerInstanceColorAppearanceVS:()=>ePe,_shadersPerInstanceFlatColorAppearanceFS:()=>vue,_shadersPerInstanceFlatColorAppearanceVS:()=>tPe,_shadersPointCloudEyeDomeLighting:()=>zRe,_shadersPointCloudStylingStageVS:()=>nMe,_shadersPointPrimitiveCollectionFS:()=>nB,_shadersPointPrimitiveCollectionVS:()=>LLe,_shadersPolygonSignedDistanceFS:()=>JIe,_shadersPolylineArrowMaterial:()=>RSe,_shadersPolylineColorAppearanceVS:()=>JLe,_shadersPolylineCommon:()=>K9,_shadersPolylineDashMaterial:()=>ASe,_shadersPolylineFS:()=>bue,_shadersPolylineGlowMaterial:()=>MSe,_shadersPolylineMaterialAppearanceVS:()=>jLe,_shadersPolylineOutlineMaterial:()=>VSe,_shadersPolylineShadowVolumeFS:()=>HLe,_shadersPolylineShadowVolumeMorphFS:()=>zLe,_shadersPolylineShadowVolumeMorphVS:()=>YLe,_shadersPolylineShadowVolumeVS:()=>KLe,_shadersPolylineVS:()=>YPe,_shadersPostProcessRain:()=>Sgt,_shadersPostProcessSnow:()=>wgt,_shadersPrimitiveOutlineStageFS:()=>sMe,_shadersPrimitiveOutlineStageVS:()=>aMe,_shadersRGBToHSB:()=>zEe,_shadersRGBToHSL:()=>YEe,_shadersRGBToXYZ:()=>KEe,_shadersReinhardTonemapping:()=>l5e,_shadersReprojectWebMercatorFS:()=>YVe,_shadersReprojectWebMercatorVS:()=>KVe,_shadersRimLightingMaterial:()=>GSe,_shadersSelectedFeatureIdStageCommon:()=>yse,_shadersShadowVolumeAppearanceFS:()=>Cue,_shadersShadowVolumeAppearanceVS:()=>qLe,_shadersShadowVolumeFS:()=>PQ,_shadersSilhouette:()=>u5e,_shadersSkinningStageVS:()=>hMe,_shadersSkyAtmosphereCommon:()=>Hse,_shadersSkyAtmosphereFS:()=>dGe,_shadersSkyAtmosphereVS:()=>pGe,_shadersSkyBoxFS:()=>mGe,_shadersSkyBoxVS:()=>xGe,_shadersSlopeRampMaterial:()=>FSe,_shadersStripeMaterial:()=>DSe,_shadersSunFS:()=>gGe,_shadersSunTextureFS:()=>yGe,_shadersSunVS:()=>_Ge,_shadersTexturedMaterialAppearanceFS:()=>UPe,_shadersTexturedMaterialAppearanceVS:()=>BPe,_shadersVector3DTileClampedPolylinesFS:()=>oVe,_shadersVector3DTileClampedPolylinesVS:()=>nVe,_shadersVector3DTilePolylinesVS:()=>rVe,_shadersVectorTileVS:()=>vse,_shadersVerticalExaggerationStageVS:()=>pMe,_shadersViewportQuadFS:()=>_Fe,_shadersViewportQuadVS:()=>Phe,_shadersVoxelFS:()=>F5e,_shadersVoxelUtils:()=>G5e,_shadersVoxelVS:()=>D5e,_shadersWater:()=>WSe,_shadersWaterMaskMaterial:()=>NSe,_shadersXYZToRGB:()=>yLe,_shadersacesTonemapping:()=>Nwe,_shadersalphaWeight:()=>Wwe,_shadersantialias:()=>Zwe,_shadersapplyHSBShift:()=>Owe,_shadersapproximateSphericalCoordinates:()=>Xwe,_shadersapproximateTanh:()=>kwe,_shadersbackFacing:()=>Uwe,_shadersbranchFreeTernary:()=>Bwe,_shaderscascadeColor:()=>Hwe,_shaderscascadeDistance:()=>zwe,_shaderscascadeMatrix:()=>Ywe,_shaderscascadeWeights:()=>Kwe,_shadersclipPolygons:()=>Jwe,_shaderscolumbusViewMorph:()=>jwe,_shaderscomputeAtmosphereColor:()=>Qwe,_shaderscomputeGroundAtmosphereScattering:()=>qwe,_shaderscomputePosition:()=>$we,_shaderscomputeScattering:()=>eEe,_shadersconvertUvToBox:()=>U5e,_shadersconvertUvToCylinder:()=>B5e,_shadersconvertUvToEllipsoid:()=>H5e,_shaderscosineAndSine:()=>tEe,_shadersdecompressTextureCoordinates:()=>iEe,_shadersdegreesPerRadian:()=>HSe,_shadersdepthClamp:()=>rEe,_shadersdepthRange:()=>zSe,_shadersdepthRangeStruct:()=>Iwe,_shaderseastNorthUpToEyeCoordinates:()=>nEe,_shadersellipsoidContainsPoint:()=>oEe,_shadersellipsoidTextureCoordinates:()=>aEe,_shadersepsilon1:()=>YSe,_shadersepsilon2:()=>KSe,_shadersepsilon3:()=>JSe,_shadersepsilon4:()=>jSe,_shadersepsilon5:()=>QSe,_shadersepsilon6:()=>qSe,_shadersepsilon7:()=>$Se,_shadersequalsEpsilon:()=>sEe,_shaderseyeOffset:()=>lEe,_shaderseyeToWindowCoordinates:()=>uEe,_shadersfastApproximateAtan:()=>cEe,_shadersfog:()=>hEe,_shadersgammaCorrect:()=>dEe,_shadersgeodeticSurfaceNormal:()=>pEe,_shadersgetDefaultMaterial:()=>fEe,_shadersgetDynamicAtmosphereLightDirection:()=>mEe,_shadersgetLambertDiffuse:()=>xEe,_shadersgetSpecular:()=>gEe,_shadersgetWaterNoise:()=>yEe,_shadershue:()=>bEe,_shadersinfinity:()=>ewe,_shadersinverseGamma:()=>CEe,_shadersisEmpty:()=>TEe,_shadersisFull:()=>SEe,_shaderslatitudeToWebMercatorFraction:()=>wEe,_shaderslineDistance:()=>LEe,_shaderslinearToSrgb:()=>EEe,_shadersluminance:()=>PEe,_shadersmaterial:()=>Rwe,_shadersmaterialInput:()=>Awe,_shadersmaximumComponent:()=>IEe,_shadersmetersPerPixel:()=>REe,_shadersmodelMaterial:()=>Mwe,_shadersmodelToWindowCoordinates:()=>AEe,_shadersmodelVertexOutput:()=>Vwe,_shadersmultiplyWithColorBalance:()=>MEe,_shadersnearFarScalar:()=>VEe,_shadersoctDecode:()=>GEe,_shadersoneOverPi:()=>twe,_shadersoneOverTwoPi:()=>iwe,_shaderspackDepth:()=>FEe,_shaderspassCesium3DTile:()=>rwe,_shaderspassCesium3DTileClassification:()=>nwe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>owe,_shaderspassClassification:()=>awe,_shaderspassCompute:()=>swe,_shaderspassEnvironment:()=>lwe,_shaderspassGlobe:()=>uwe,_shaderspassOpaque:()=>cwe,_shaderspassOverlay:()=>hwe,_shaderspassTerrainClassification:()=>dwe,_shaderspassTranslucent:()=>pwe,_shaderspassVoxels:()=>fwe,_shaderspbrLighting:()=>DEe,_shaderspbrNeutralTonemapping:()=>NEe,_shadersphong:()=>WEe,_shaderspi:()=>mwe,_shaderspiOverFour:()=>xwe,_shaderspiOverSix:()=>gwe,_shaderspiOverThree:()=>ywe,_shaderspiOverTwo:()=>_we,_shadersplaneDistance:()=>ZEe,_shaderspointAlongRay:()=>OEe,_shadersradiansPerDegree:()=>vwe,_shadersray:()=>Gwe,_shadersrayEllipsoidIntersectionInterval:()=>XEe,_shadersraySegment:()=>Fwe,_shadersraySphereIntersectionInterval:()=>kEe,_shadersreadDepth:()=>UEe,_shadersreadNonPerspective:()=>BEe,_shadersreverseLogDepth:()=>HEe,_shadersround:()=>JEe,_shaderssaturation:()=>jEe,_shaderssceneMode2D:()=>bwe,_shaderssceneMode3D:()=>Cwe,_shaderssceneModeColumbusView:()=>Twe,_shaderssceneModeMorphing:()=>Swe,_shadersshadowDepthCompare:()=>QEe,_shadersshadowParameters:()=>Dwe,_shadersshadowVisibility:()=>qEe,_shaderssignNotZero:()=>$Ee,_shaderssolarRadius:()=>wwe,_shaderssphericalHarmonics:()=>eLe,_shaderssrgbToLinear:()=>tLe,_shaderstangentToEyeSpaceMatrix:()=>iLe,_shaderstextureCube:()=>rLe,_shadersthreePiOver2:()=>Ewe,_shaderstransformPlane:()=>nLe,_shaderstranslateRelativeToEye:()=>oLe,_shaderstranslucentPhong:()=>aLe,_shaderstranspose:()=>sLe,_shaderstwoPi:()=>Lwe,_shadersunpackClippingExtents:()=>lLe,_shadersunpackDepth:()=>uLe,_shadersunpackFloat:()=>cLe,_shadersunpackUint:()=>hLe,_shadersvalueTransform:()=>dLe,_shadersvertexLogDepth:()=>pLe,_shaderswebMercatorMaxLatitude:()=>Pwe,_shaderswindowToEyeCoordinates:()=>fLe,_shaderswriteDepthClamp:()=>mLe,_shaderswriteLogDepth:()=>xLe,_shaderswriteNonPerspective:()=>gLe,addBuffer:()=>_Re,addDefaults:()=>hRe,addExtensionsRequired:()=>xRe,addExtensionsUsed:()=>pO,addPipelineExtras:()=>q7,addToArray:()=>n1,appendForwardSlash:()=>DTe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>nue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>j5e,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>hhe,createBillboardPointCallback:()=>the,createBlurStage:()=>fle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>bDe,createDefaultTerrainProviderViewModels:()=>CDe,createEdgeStage:()=>Q4,createElevationBandMaterial:()=>Ext,createFragmentFromTemplate:()=>ZFe,createGooglePhotorealistic3DTileset:()=>Lxt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Pxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>vb,createTangentSpaceDebugPrimitive:()=>Ixt,createTaskProcessorWorker:()=>Ggt,createUniform:()=>kSe,createUniformArray:()=>BSe,createWorldBathymetryAsync:()=>nFe,createWorldImageryAsync:()=>zB,createWorldTerrainAsync:()=>gde,decodeGoogleEarthEnterpriseData:()=>aFe,decodeVectorPolylinePositions:()=>sVe,defaultValue:()=>Zmt,defer:()=>fp,defined:()=>F,demodernizeShader:()=>_Le,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>fmt,fflate_module:()=>QFe,findAccessorMinMax:()=>$7,findContentMetadata:()=>nhe,findGroupMetadata:()=>ohe,findTileMetadata:()=>fVe,forEachTextureInMaterial:()=>Lce,formatError:()=>_H,fragment:()=>Lgt,freezeRenderState:()=>utt,getAbsoluteUri:()=>$B,getAccessorByteStride:()=>XF,getBaseUri:()=>WTe,getBinaryAccessor:()=>CM,getClipAndStyleCode:()=>bGe,getClippingFunction:()=>wq,getComponentReader:()=>U7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>v7,getImageFromTypedArray:()=>ZLe,getImagePixels:()=>BZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>jz,getMetadataClassProperty:()=>oGe,getMetadataProperty:()=>sGe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>D7,isBitSet:()=>m1,isBlobUri:()=>Kle,isCrossOriginUrl:()=>HZ,isDataUri:()=>e7,isLeapYear:()=>YZ,knockout:()=>sr,knockout_3_5_1:()=>VV,knockout_es5:()=>fDe,libgif:()=>oIe,loadAndExecuteScript:()=>Jle,loadCRN:()=>qmt,loadCubeMap:()=>fGe,loadDDS:()=>$le,loadImageFromTypedArray:()=>Jz,loadKTX2:()=>IF,loadView:()=>Ide,mergeSort:()=>b4,moveTechniqueRenderStates:()=>mRe,moveTechniquesToExtension:()=>gRe,numberOfComponentsForType:()=>hO,objFS:()=>iDe,objectToQuery:()=>jle,oneTimeWarning:()=>aa,packer:()=>ULe,parseBatchTable:()=>$z,parseDefines:()=>oDe,parseFeatureMetadataLegacy:()=>lRe,parseGlb:()=>pRe,parseResponseHeaders:()=>ZTe,parseStructuralMetadata:()=>sRe,pickModel:()=>zMe,pointInsideTriangle:()=>nxt,preprocess3DTileContent:()=>fq,processVoxelProperties:()=>J5e,queryToObject:()=>lI,rasterizeHTML_allinone:()=>VGe,readAccessorPacked:()=>vRe,removeExtension:()=>h6,removeExtensionsRequired:()=>dRe,removeExtensionsUsed:()=>Ece,removePipelineExtras:()=>fRe,removeUnusedElements:()=>yRe,remove_primitive:()=>M6,resizeImageToNextPowerOfTwo:()=>EQ,sampleTerrain:()=>Sq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>eue,srgbToLinear:()=>jhe,subdivideArray:()=>QLe,subscribeAndEvaluate:()=>Eb,svgCompassGyro:()=>HFe,svgCompassOuterRing:()=>BFe,svgCompassRotationMarker:()=>zFe,svgReset:()=>XFe,turf:()=>Po,updateAccessorComponentTypes:()=>bRe,updateVersion:()=>SRe,usesExtension:()=>um,vertex:()=>Pgt,viewerCesium3DTilesInspectorMixin:()=>nyt,viewerCesiumInspectorMixin:()=>oyt,viewerCesiumNavigationMixin:()=>igt,viewerDragDropMixin:()=>ayt,viewerPerformanceWatchdogMixin:()=>syt,viewerVoxelInspectorMixin:()=>uyt,webGLConstantToGlslType:()=>mxt,wrapFunction:()=>pFe,writeTextToCanvas:()=>H9});we();var aVt=Object.create,gqe=Object.defineProperty,sVt=Object.getOwnPropertyDescriptor,lVt=Object.getOwnPropertyNames,uVt=Object.getPrototypeOf,cVt=Object.prototype.hasOwnProperty,yZ=(o=>typeof RT<"u"?RT:typeof Proxy<"u"?new Proxy(o,{get:(f,m)=>(typeof RT<"u"?RT:f)[m]}):o)(function(o){if(typeof RT<"u")return RT.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')}),Zt=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),hVt=(o,f,m,x)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of lVt(f))!cVt.call(o,y)&&y!==m&&gqe(o,y,{get:()=>f[y],enumerable:!(x=sVt(f,y))||x.enumerable});return o},k0=(o,f,m)=>(m=o!=null?aVt(uVt(o)):{},hVt(f||!o||!o.__esModule?gqe(m,"default",{value:o,enumerable:!0}):m,o)),Q1e=Zt((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,y){var v,C,T;for(this.init_seed(19650218),v=1,C=0,T=this.N>y?this.N:y;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1664525<<16)+(S&65535)*1664525)+x[C]+C,this.mt[v]>>>=0,v++,C++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1),C>=y&&(C=0)}for(T=this.N-1;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1566083941<<16)+(S&65535)*1566083941)-v,this.mt[v]>>>=0,v++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1)}this.mt[0]=2147483648},m.prototype.random_int=function(){var x,y=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var v;for(this.mti==this.N+1&&this.init_seed(5489),v=0;v<this.N-this.M;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+this.M]^x>>>1^y[x&1];for(;v<this.N-1;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+(this.M-this.N)]^x>>>1^y[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^y[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,y=this.random_int()>>>6;return(x*67108864+y)*(1/9007199254740992)},f.exports=m}),dVt=Zt((o,f)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(m){var x=typeof o=="object"&&o&&!o.nodeType&&o,y=typeof f=="object"&&f&&!f.nodeType&&f,v=typeof global=="object"&&global;(v.global===v||v.window===v||v.self===v)&&(m=v);var C,T=2147483647,S=36,w=1,E=26,L=38,I=700,R=72,P=128,A="-",M=/^xn--/,V=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=S-w,k=Math.floor,U=String.fromCharCode,B;function Y(oe){throw new RangeError(D[oe])}function J(oe,ce){for(var pe=oe.length,ue=[];pe--;)ue[pe]=ce(oe[pe]);return ue}function K(oe,ce){var pe=oe.split("@"),ue="";pe.length>1&&(ue=pe[0]+"@",oe=pe[1]),oe=oe.replace(G,".");var he=oe.split("."),fe=J(he,ce).join(".");return ue+fe}function z(oe){for(var ce=[],pe=0,ue=oe.length,he,fe;pe<ue;)he=oe.charCodeAt(pe++),he>=55296&&he<=56319&&pe<ue?(fe=oe.charCodeAt(pe++),(fe&64512)==56320?ce.push(((he&1023)<<10)+(fe&1023)+65536):(ce.push(he),pe--)):ce.push(he);return ce}function j(oe){return J(oe,function(ce){var pe="";return ce>65535&&(ce-=65536,pe+=U(ce>>>10&1023|55296),ce=56320|ce&1023),pe+=U(ce),pe}).join("")}function q(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:S}function O(oe,ce){return oe+22+75*(oe<26)-((ce!=0)<<5)}function te(oe,ce,pe){var ue=0;for(oe=pe?k(oe/I):oe>>1,oe+=k(oe/ce);oe>N*E>>1;ue+=S)oe=k(oe/N);return k(ue+(N+1)*oe/(oe+L))}function ie(oe){var ce=[],pe=oe.length,ue,he=0,fe=P,de=R,Ce,Se,Le,Ve,Oe,$e,at,dt,gt;for(Ce=oe.lastIndexOf(A),Ce<0&&(Ce=0),Se=0;Se<Ce;++Se)oe.charCodeAt(Se)>=128&&Y("not-basic"),ce.push(oe.charCodeAt(Se));for(Le=Ce>0?Ce+1:0;Le<pe;){for(Ve=he,Oe=1,$e=S;Le>=pe&&Y("invalid-input"),at=q(oe.charCodeAt(Le++)),(at>=S||at>k((T-he)/Oe))&&Y("overflow"),he+=at*Oe,dt=$e<=de?w:$e>=de+E?E:$e-de,!(at<dt);$e+=S)gt=S-dt,Oe>k(T/gt)&&Y("overflow"),Oe*=gt;ue=ce.length+1,de=te(he-Ve,ue,Ve==0),k(he/ue)>T-fe&&Y("overflow"),fe+=k(he/ue),he%=ue,ce.splice(he++,0,fe)}return j(ce)}function re(oe){var ce,pe,ue,he,fe,de,Ce,Se,Le,Ve,Oe,$e=[],at,dt,gt,Et;for(oe=z(oe),at=oe.length,ce=P,pe=0,fe=R,de=0;de<at;++de)Oe=oe[de],Oe<128&&$e.push(U(Oe));for(ue=he=$e.length,he&&$e.push(A);ue<at;){for(Ce=T,de=0;de<at;++de)Oe=oe[de],Oe>=ce&&Oe<Ce&&(Ce=Oe);for(dt=ue+1,Ce-ce>k((T-pe)/dt)&&Y("overflow"),pe+=(Ce-ce)*dt,ce=Ce,de=0;de<at;++de)if(Oe=oe[de],Oe<ce&&++pe>T&&Y("overflow"),Oe==ce){for(Se=pe,Le=S;Ve=Le<=fe?w:Le>=fe+E?E:Le-fe,!(Se<Ve);Le+=S)Et=Se-Ve,gt=S-Ve,$e.push(U(O(Ve+Et%gt,0))),Se=k(Et/gt);$e.push(U(O(Se,0))),fe=te(pe,dt,ue==he),pe=0,++ue}++pe,++ce}return $e.join("")}function ee(oe){return K(oe,function(ce){return M.test(ce)?ie(ce.slice(4).toLowerCase()):ce})}function ae(oe){return K(oe,function(ce){return V.test(ce)?"xn--"+re(ce):ce})}if(C={version:"1.3.2",ucs2:{decode:z,encode:j},decode:ie,encode:re,toASCII:ae,toUnicode:ee},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(x&&y)if(f.exports==x)y.exports=C;else for(B in C)C.hasOwnProperty(B)&&(x[B]=C[B]);else m.punycode=C})(o)}),pVt=Zt((o,f)=>{/*! * URI.js - Mutating URLs * IPv6 Support * @@ -20036,7 +20036,14 @@ //material.diffuse = vec3(1.0,0.0,0.0); } } - `}),o.textureUniformShader.andStyle=!0}function RUi(o){let f=Math.floor(o/256/256),m=Math.floor((o-f*256*256)/255),x=o-f*256*256-m*256,y=f.toString(16).padStart(2,"0"),v=m.toString(16).padStart(2,"0"),C=x.toString(16).padStart(2,"0");return"color('#"+y+v+C+"')"}function AUi(o){return"${id} === '"+o+"'"}function MUi(o){let f=o.pipelineIds,m=f.length,x=[];for(let y=0;y<m;y++){let v=f[y];x.push([AUi(v),RUi(y)])}x.push(["true","color('white')"]),o.style=new ZS({color:{conditions:x}})}function VUi(o){let f=o.flowLevels;if(f instanceof Array&&f.length===16){o.flowLevelMatrix=Ee.fromArray(f);return}o.flowLevelMatrix=new Ee}kH.prototype.init=function(o){let f=Math.sqrt(this.pipelineIds.length);f=Math.floor(f+1),this.width=f,this.height=f,VUi(this),PUi(this),IUi(this),MUi(this),this.oldCustomShader=this.tileset.customShader,this.tileset.customShader=this.textureUniformShader,this.oldStyle=this.tileset.style,this.tileset.style=this.style};function GUi(o){let f=o.pipelineTexture,m=o.serverDatas,x=o.textureData,y=0,v=Object.keys(m);v.length>0&&(v.forEach(C=>{let T=m[C];x[y++]=T}),f.copyFrom({source:{width:o.width,height:o.height,arrayBufferView:x}}))}function FUi(o,f){new Mr({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){})}kH.prototype.update=function(){let o=performance.now(),f=(o-this.startTime)/1e3;if(this.startTime=o,this.currentTime>this.nextRequestTime){let m=this;FUi(this,function(x,y){x.forEach(v=>{m.serverDatas[v.id]=v.flow}),m.nextRequestTime=(Number(m.currentTimestamp)-Number(y))/1e3,m.currentTimestamp=y,GUi(m)})}this.currentTime+=f,this.textureUniformShader.setUniform("u_time",this.currentTime)};kH.prototype.destroy=function(){this.tileset.customShader=this.oldCustomShader,this.tileset.style=this.oldStyle,this.pipelineTexture&&this.pipelineTexture.destroy(),this.textureData&&(this.textureData=null)};kH.fromUrl=async function(o){let{context:f,tileset:m,pipelineUrl:x,flowLevels:y,startTimestamp:v,imageWidth:C,imageHeight:T}=o,S=[],w=await new Mr({url:x,queryParameters:{timestamp:v}}).fetchJson();return w&&w.data&&w.data instanceof Array&&w.data.forEach(E=>{S.push(E.id)}),new kH(f,m,S,x,v,y,C,T)};var ade=kH,DUi=Xe.WHITE,NUi=Xe.BLACK,WUi=new rt(2,2);function UH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(UH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),repeat:Ii("repeat")});UH.prototype.getType=function(o){return"Checkerboard"};var ZUi=new $t;UH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(ZUi)),F(f)||(f={}),f.lightColor=Nt.getValueOrClonedDefault(this._evenColor,o,DUi,f.lightColor),f.darkColor=Nt.getValueOrClonedDefault(this._oddColor,o,NUi,f.darkColor),f.repeat=Nt.getValueOrDefault(this._repeat,o,WUi),f};UH.prototype.equals=function(o){return this===o||o instanceof UH&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._repeat,o._repeat)};var ele=UH,tle={id:void 0},QB=new Array(2);function N1e(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 qft(o,f,m,x){QB[0]=m,QB[1]=x.id,f[JSON.stringify(QB)]=x.definitionChanged.addEventListener(qp.prototype._onDefinitionChanged,o)}function $ft(o,f,m,x){QB[0]=m,QB[1]=x.id;let y=JSON.stringify(QB);f[y](),f[y]=void 0}function tD(o){if(o._shouldRecomposite=!0,o._suspendCount!==0)return;let f=o._collections,m=f.length,x=o._collectionsCopy,y=x.length,v,C,T,S,w,E=o._composite,L=new kS(o),I=o._eventHash,R;for(v=0;v<y;v++)for(w=x[v],w.collectionChanged.removeEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--)C=T[S],$ft(o,I,R,C);for(v=m-1;v>=0;v--)for(w=f[v],w.collectionChanged.addEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--){C=T[S],qft(o,I,R,C);let A=L.getById(C.id);F(A)||(A=E.getById(C.id),F(A)?N1e(A):(tle.id=C.id,A=new bd(tle)),L.add(A)),A.merge(C)}o._collectionsCopy=f.slice(0),E.suspendEvents(),E.removeAll();let P=L.values;for(v=0;v<P.length;v++)E.add(P[v]);E.resumeEvents()}function qp(o,f){this._owner=f,this._composite=new kS(this),this._suspendCount=0,this._collections=F(o)?o.slice():[],this._collectionsCopy=[],this._id=du(),this._eventHash={},tD(this),this._shouldRecomposite=!1}Object.defineProperties(qp.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}}});qp.prototype.addCollection=function(o,f){F(f)?this._collections.splice(f,0,o):(f=this._collections.length,this._collections.push(o)),tD(this)};qp.prototype.removeCollection=function(o){let f=this._collections.indexOf(o);return f!==-1?(this._collections.splice(f,1),tD(this),!0):!1};qp.prototype.removeAllCollections=function(){this._collections.length=0,tD(this)};qp.prototype.containsCollection=function(o){return this._collections.indexOf(o)!==-1};qp.prototype.contains=function(o){return this._composite.contains(o)};qp.prototype.indexOfCollection=function(o){return this._collections.indexOf(o)};qp.prototype.getCollection=function(o){return this._collections[o]};qp.prototype.getCollectionsLength=function(){return this._collections.length};function sde(o,f){return o.indexOf(f)}function emt(o,f,m){let x=o._collections;if(f=be.clamp(f,0,x.length-1),m=be.clamp(m,0,x.length-1),f===m)return;let y=x[f];x[f]=x[m],x[m]=y,tD(o)}qp.prototype.raiseCollection=function(o){let f=sde(this._collections,o);emt(this,f,f+1)};qp.prototype.lowerCollection=function(o){let f=sde(this._collections,o);emt(this,f,f-1)};qp.prototype.raiseCollectionToTop=function(o){let f=sde(this._collections,o);f!==this._collections.length-1&&(this._collections.splice(f,1),this._collections.push(o),tD(this))};qp.prototype.lowerCollectionToBottom=function(o){let f=sde(this._collections,o);f!==0&&(this._collections.splice(f,1),this._collections.splice(0,0,o),tD(this))};qp.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()};qp.prototype.resumeEvents=function(){this._suspendCount--,this._shouldRecomposite&&this._suspendCount===0&&(tD(this),this._shouldRecomposite=!1),this._composite.resumeEvents()};qp.prototype.computeAvailability=function(){return this._composite.computeAvailability()};qp.prototype.getById=function(o){return this._composite.getById(o)};qp.prototype._onCollectionChanged=function(o,f,m){let x=this._collectionsCopy,y=x.length,v=this._composite;v.suspendEvents();let C,T,S,w,E=m.length,L=this._eventHash,I=o.id;for(C=0;C<E;C++){let P=m[C];$ft(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),N1e(w)),w.merge(S));F(w)||v.removeById(A),w=void 0}let R=f.length;for(C=0;C<R;C++){let P=f[C];qft(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),F(w)?N1e(w):(tle.id=A,w=new bd(tle),v.add(w))),w.merge(S));w=void 0}v.resumeEvents()};qp.prototype._onDefinitionChanged=function(o,f,m,x){let y=this._collections,v=this._composite,C=y.length,T=o.id,S=v.getById(T),w=S[f],E=!F(w),L=!0;for(let I=C-1;I>=0;I--){let R=y[I].getById(o.id);if(F(R)){let P=R[f];if(F(P)){if(L)if(L=!1,F(P.merge)&&F(P.clone))w=P.clone(w);else{w=P;break}w.merge(P)}}}E&&S.propertyNames.indexOf(f)===-1&&S.addProperty(f),S[f]=w};var tmt=qp;function fF(){this._definitionChanged=new Tr,this._composite=new rS,this._composite.definitionChanged.addEventListener(fF.prototype._raiseDefinitionChanged,this)}Object.defineProperties(fF.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite._intervals}}});fF.prototype.getType=function(o){let f=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(f))return f.getType(o)};var OUi=new $t;fF.prototype.getValue=function(o,f){F(o)||(o=$t.now(OUi));let m=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(m))return m.getValue(o,f)};fF.prototype.equals=function(o){return this===o||o instanceof fF&&this._composite.equals(o._composite,Nt.equals)};fF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var ile=fF,XUi=be.factorial;function DGe(o,f,m,x,y,v){let C=0,T,S,w;if(x>0){for(S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(v.push(S),C+=DGe(o,f,m,x-1,y,v),v.splice(v.length-1,1))}return C}for(C=1,S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(C*=o-m[f[S]])}return C}var lde={type:"Hermite"};lde.getRequiredDataPoints=function(o,f){return f=f??0,Math.max(Math.floor((o+1)/(f+1)),2)};lde.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T,S,w,E,L=f.length,I=new Array(x);for(v=0;v<x;v++){y[v]=0;let M=new Array(L);for(I[v]=M,C=0;C<L;C++)M[C]=[]}let R=L,P=new Array(R);for(v=0;v<R;v++)P[v]=v;let A=L-1;for(S=0;S<x;S++){for(C=0;C<R;C++)E=P[C]*x+S,I[S][0].push(m[E]);for(v=1;v<R;v++){let M=!1;for(C=0;C<R-v;C++){let V=f[P[C]],G=f[P[C+v]],D;G-V<=0?(E=P[C]*x+x*v+S,D=m[E],I[S][v].push(D/XUi(v))):(D=I[S][v-1][C+1]-I[S][v-1][C],I[S][v].push(D/(G-V))),M=M||D!==0}M||(A=v-1)}}for(T=0,w=0;T<=w;T++)for(v=T;v<=A;v++){let M=DGe(o,P,f,T,v,[]);for(S=0;S<x;S++){let V=I[S][v][0];y[S+T*x]+=V*M}}return y};var kUi=[];lde.interpolate=function(o,f,m,x,y,v,C){let T=x*(v+1);F(C)||(C=new Array(T));for(let V=0;V<T;V++)C[V]=0;let S=f.length,w=new Array(S*(y+1)),E;for(E=0;E<S;E++)for(let V=0;V<y+1;V++)w[E*(y+1)+V]=E;let L=w.length,I=kUi,R=UUi(I,w,f,m,x,y),P=[],A=L*(L+1)/2,M=Math.min(R,v);for(let V=0;V<=M;V++)for(E=V;E<=R;E++){P.length=0;let G=DGe(o,w,f,V,E,P),D=Math.floor(E*(1-E)/2)+L*E;for(let N=0;N<x;N++){let k=Math.floor(N*A),U=I[k+D];C[N+V*x]+=U*G}}return C};function UUi(o,f,m,x,y,v){let C,T,S=-1,w=f.length,E=w*(w+1)/2;for(let L=0;L<y;L++){let I=Math.floor(L*E);for(C=0;C<w;C++)T=f[C]*y*(v+1)+L,o[I+C]=x[T];for(let R=1;R<w;R++){let P=0,A=Math.floor(R*(1-R)/2)+w*R,M=!1;for(C=0;C<w-R;C++){let V=m[f[C]],G=m[f[C+R]],D,N;if(G-V<=0)T=f[C]*y*(v+1)+y*R+L,D=x[T],N=D/be.factorial(R),o[I+A+P]=N,P++;else{let k=Math.floor((R-1)*(2-R)/2)+w*(R-1);D=o[I+k+C+1]-o[I+k+C],N=D/(G-V),o[I+A+P]=N,P++}M=M||D!==0}M&&(S=Math.max(S,R))}}return S}var NGe=lde,WGe={type:"Lagrange"};WGe.getRequiredDataPoints=function(o){return Math.max(o+1,2)};WGe.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T=f.length;for(v=0;v<x;v++)y[v]=0;for(v=0;v<T;v++){let S=1;for(C=0;C<T;C++)if(C!==v){let w=f[v]-f[C];S*=(o-f[C])/w}for(C=0;C<x;C++)y[C]+=S*m[v*x+C]}return y};var ZGe=WGe;function r2(o,f,m){this.clock=o??0,this.cone=f??0,this.magnitude=m??1}r2.fromCartesian3=function(o,f){let m=o.x,x=o.y,y=o.z,v=m*m+x*x;return F(f)||(f=new r2),f.clock=Math.atan2(x,m),f.cone=Math.atan2(Math.sqrt(v),y),f.magnitude=Math.sqrt(v+y*y),f};r2.clone=function(o,f){if(F(o))return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=o.magnitude,f):new r2(o.clock,o.cone,o.magnitude)};r2.normalize=function(o,f){return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=1,f):new r2(o.clock,o.cone,1)};r2.equals=function(o,f){return o===f||F(o)&&F(f)&&o.clock===f.clock&&o.cone===f.cone&&o.magnitude===f.magnitude};r2.equalsEpsilon=function(o,f,m){return m=m??0,o===f||F(o)&&F(f)&&Math.abs(o.clock-f.clock)<=m&&Math.abs(o.cone-f.cone)<=m&&Math.abs(o.magnitude-f.magnitude)<=m};r2.prototype.equals=function(o){return r2.equals(this,o)};r2.prototype.clone=function(o){return r2.clone(this,o)};r2.prototype.equalsEpsilon=function(o,f){return r2.equalsEpsilon(this,o,f)};r2.prototype.toString=function(){return`(${this.clock}, ${this.cone}, ${this.magnitude})`};var OGe=r2,ude=k0(MS(),1),BUi=Xe.WHITE,HUi=.1,zUi=new rt(8,8),YUi=new rt(0,0),KUi=new rt(1,1);function BH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(BH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._cellAlpha)&&Nt.isConstant(this._lineCount)&&Nt.isConstant(this._lineThickness)&&Nt.isConstant(this._lineOffset)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),cellAlpha:Ii("cellAlpha"),lineCount:Ii("lineCount"),lineThickness:Ii("lineThickness"),lineOffset:Ii("lineOffset")});BH.prototype.getType=function(o){return"Grid"};var JUi=new $t;BH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(JUi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,BUi,f.color),f.cellAlpha=Nt.getValueOrDefault(this._cellAlpha,o,HUi),f.lineCount=Nt.getValueOrClonedDefault(this._lineCount,o,zUi,f.lineCount),f.lineThickness=Nt.getValueOrClonedDefault(this._lineThickness,o,KUi,f.lineThickness),f.lineOffset=Nt.getValueOrClonedDefault(this._lineOffset,o,YUi,f.lineOffset),f};BH.prototype.equals=function(o){return this===o||o instanceof BH&&Nt.equals(this._color,o._color)&&Nt.equals(this._cellAlpha,o._cellAlpha)&&Nt.equals(this._lineCount,o._lineCount)&&Nt.equals(this._lineThickness,o._lineThickness)&&Nt.equals(this._lineOffset,o._lineOffset)};var rle=BH,jUi=Xe.WHITE,QUi=Xe.TRANSPARENT,qUi=16,$Ui=255;function HH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(HH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._gapColor)&&Nt.isConstant(this._dashLength)&&Nt.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),gapColor:Ii("gapColor"),dashLength:Ii("dashLength"),dashPattern:Ii("dashPattern")});HH.prototype.getType=function(o){return"PolylineDash"};var eBi=new $t;HH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(eBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,jUi,f.color),f.gapColor=Nt.getValueOrClonedDefault(this._gapColor,o,QUi,f.gapColor),f.dashLength=Nt.getValueOrDefault(this._dashLength,o,qUi,f.dashLength),f.dashPattern=Nt.getValueOrDefault(this._dashPattern,o,$Ui,f.dashPattern),f};HH.prototype.equals=function(o){return this===o||o instanceof HH&&Nt.equals(this._color,o._color)&&Nt.equals(this._gapColor,o._gapColor)&&Nt.equals(this._dashLength,o._dashLength)&&Nt.equals(this._dashPattern,o._dashPattern)};var Ml=HH,tBi=Xe.WHITE,iBi=.25,rBi=1;function zH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(zH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._glow)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),glowPower:Ii("glowPower"),taperPower:Ii("taperPower")});zH.prototype.getType=function(o){return"PolylineGlow"};var nBi=new $t;zH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(nBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,tBi,f.color),f.glowPower=Nt.getValueOrDefault(this._glowPower,o,iBi,f.glowPower),f.taperPower=Nt.getValueOrDefault(this._taperPower,o,rBi,f.taperPower),f};zH.prototype.equals=function(o){return this===o||o instanceof zH&&Nt.equals(this._color,o._color)&&Nt.equals(this._glowPower,o._glowPower)&&Nt.equals(this._taperPower,o._taperPower)};var nle=zH,oBi=Xe.WHITE,aBi=Xe.BLACK,sBi=1;function YH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(YH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._outlineColor)&&Nt.isConstant(this._outlineWidth)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),outlineColor:Ii("outlineColor"),outlineWidth:Ii("outlineWidth")});YH.prototype.getType=function(o){return"PolylineOutline"};var lBi=new $t;YH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(lBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,oBi,f.color),f.outlineColor=Nt.getValueOrClonedDefault(this._outlineColor,o,aBi,f.outlineColor),f.outlineWidth=Nt.getValueOrDefault(this._outlineWidth,o,sBi),f};YH.prototype.equals=function(o){return this===o||o instanceof YH&&Nt.equals(this._color,o._color)&&Nt.equals(this._outlineColor,o._outlineColor)&&Nt.equals(this._outlineWidth,o._outlineWidth)};var KM=YH;function mF(o){this._value=void 0,this._definitionChanged=new Tr,this._eventHelper=new bv,this.setValue(o)}Object.defineProperties(mF.prototype,{isConstant:{get:function(){let o=this._value;if(!F(o))return!0;let f=o.length;for(let m=0;m<f;m++)if(!Nt.isConstant(o[m]))return!1;return!0}},definitionChanged:{get:function(){return this._definitionChanged}}});var uBi=new $t;mF.prototype.getValue=function(o,f){F(o)||(o=$t.now(uBi));let m=this._value;if(!F(m))return;let x=m.length;F(f)||(f=new Array(x));let y=0,v=0;for(;y<x;){let C=this._value[y].getValue(o,f[y]);F(C)&&(f[v]=C,v++),y++}return f.length=v,f};mF.prototype.setValue=function(o){let f=this._eventHelper;if(f.removeAll(),F(o)){this._value=o.slice();let m=o.length;for(let x=0;x<m;x++){let y=o[x];F(y)&&f.add(y.definitionChanged,mF.prototype._raiseDefinitionChanged,this)}}else this._value=void 0;this._definitionChanged.raiseEvent(this)};mF.prototype.equals=function(o){return this===o||o instanceof mF&&Nt.arrayEquals(this._value,o._value)};mF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var cde=mF,cBi={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){F(x)||(x=[]),f=f??0,m=m??o.length;let y;for(let v=0,C=m-f+1;v<C;v++){let T=o[f+v];v===0||Math.abs(y-T)<Math.PI?x[v]=T:x[v]=T-be.TWO_PI,y=T}},unpackInterpolationResult:function(o,f,m,x,y){return y=o[0],y<0?y+be.TWO_PI:y}},FI=cBi,hBi={HORIZONTAL:0,VERTICAL:1},xF=Object.freeze(hBi),dBi=xF.HORIZONTAL,pBi=Xe.WHITE,fBi=Xe.BLACK,mBi=0,xBi=1;function KH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(KH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._orientation)&&Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._offset)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},orientation:Ii("orientation"),evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),offset:Ii("offset"),repeat:Ii("repeat")});KH.prototype.getType=function(o){return"Stripe"};var gBi=new $t;KH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(gBi)),F(f)||(f={}),f.horizontal=Nt.getValueOrDefault(this._orientation,o,dBi)===xF.HORIZONTAL,f.evenColor=Nt.getValueOrClonedDefault(this._evenColor,o,pBi,f.evenColor),f.oddColor=Nt.getValueOrClonedDefault(this._oddColor,o,fBi,f.oddColor),f.offset=Nt.getValueOrDefault(this._offset,o,mBi),f.repeat=Nt.getValueOrDefault(this._repeat,o,xBi),f};KH.prototype.equals=function(o){return this===o||o instanceof KH&&Nt.equals(this._orientation,o._orientation)&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._offset,o._offset)&&Nt.equals(this._repeat,o._repeat)};var ole=KH;function w6(o,f){this._velocityVectorProperty=new Tq(o,!0),this._subscription=void 0,this._ellipsoid=void 0,this._definitionChanged=new Tr,this.ellipsoid=f??yi.default;let m=this;this._velocityVectorProperty.definitionChanged.addEventListener(function(){m._definitionChanged.raiseEvent(m)})}Object.defineProperties(w6.prototype,{isConstant:{get:function(){return Nt.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 O6e=new Z,yBi=new Z,X6e=new Ut,_Bi=new $t;w6.prototype.getValue=function(o,f){F(o)||(o=$t.now(_Bi));let m=this._velocityVectorProperty._getValue(o,yBi,O6e);if(F(m))return _r.rotationMatrixFromPositionVelocity(O6e,m,this._ellipsoid,X6e),fr.fromRotationMatrix(X6e,f)};w6.prototype.equals=function(o){return this===o||o instanceof w6&&Nt.equals(this._velocityVectorProperty,o._velocityVectorProperty)&&(this._ellipsoid===o._ellipsoid||this._ellipsoid.equals(o._ellipsoid))};var XGe=w6,pM={COMPLETE:0,BELOW_ELLIPSOID_HORIZON:1,ABOVE_ELLIPSOID_HORIZON:2};pM.validate=function(o){return o===pM.COMPLETE||o===pM.BELOW_ELLIPSOID_HORIZON||o===pM.ABOVE_ELLIPSOID_HORIZON};pM.toString=function(o){switch(o){case pM.COMPLETE:return"COMPLETE";case pM.BELOW_ELLIPSOID_HORIZON:return"BELOW_ELLIPSOID_HORIZON";case pM.ABOVE_ELLIPSOID_HORIZON:return"ABOVE_ELLIPSOID_HORIZON";default:throw new wt("SensorVolumePortionToDisplay value is not valid and cannot be converted to a String.")}};var ale=pM;function gF(){}gF.packedLength=Z.packedLength;gF.unpack=Z.unpack;gF.pack=Z.pack;var W1e;function E6(o,f){return f[0]==="#"&&(f=W1e+f),L7.fromString(o,f)}function k6e(o,f,m){if(F(m.reference))return E6(f,m.reference);if(F(m.velocityReference)){let x=E6(f,m.velocityReference);switch(o){case Z:case gF:return new Tq(x,o===gF);case fr:return new XGe(x)}}throw new Oi(`${JSON.stringify(m)} is not valid CZML.`)}function vBi(o,f){return new Fr(function(m,x){return f(o.getValue(m,x))},o.isConstant)}var Lc=new Z,J2=new OGe,V_=new Gt,NO=new js,uoe=new fr;function bBi(o){let f=o.rgbaf;if(F(f))return f;let m=o.rgba;if(!F(m))return;let x=m.length;if(x===Xe.packedLength)return[Xe.byteToFloat(m[0]),Xe.byteToFloat(m[1]),Xe.byteToFloat(m[2]),Xe.byteToFloat(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=Xe.byteToFloat(m[y+1]),f[y+2]=Xe.byteToFloat(m[y+2]),f[y+3]=Xe.byteToFloat(m[y+3]),f[y+4]=Xe.byteToFloat(m[y+4]);return f}function U6e(o,f){let m=o.uri??o;return F(f)?f.getDerivedResource({url:m}):Mr.createIfNeeded(m)}function CBi(o){let f=o.wsen;if(F(f))return f;let m=o.wsenDegrees;if(!F(m))return;let x=m.length;if(x===vi.packedLength)return[be.toRadians(m[0]),be.toRadians(m[1]),be.toRadians(m[2]),be.toRadians(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=be.toRadians(m[y+1]),f[y+2]=be.toRadians(m[y+2]),f[y+3]=be.toRadians(m[y+3]),f[y+4]=be.toRadians(m[y+4]);return f}function TBi(o){let f=o.length;if(J2.magnitude=1,f===2)return J2.clock=o[0],J2.cone=o[1],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f/3*4);for(let x=0,y=0;x<f;x+=3,y+=4)m[y]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],Z.fromSpherical(J2,Lc),m[y+1]=Lc.x,m[y+2]=Lc.y,m[y+3]=Lc.z;return m}function SBi(o){let f=o.length;if(f===3)return J2.clock=o[0],J2.cone=o[1],J2.magnitude=o[2],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],J2.magnitude=o[x+3],Z.fromSpherical(J2,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function wBi(o){let f=o.length;if(f===3)return V_.longitude=o[0],V_.latitude=o[1],V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=o[x+1],V_.latitude=o[x+2],V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function EBi(o){let f=o.length;if(f===3)return V_.longitude=be.toRadians(o[0]),V_.latitude=be.toRadians(o[1]),V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=be.toRadians(o[x+1]),V_.latitude=be.toRadians(o[x+2]),V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function kGe(o){let f=o.cartesian;if(F(f))return f;let m=o.cartesianVelocity;if(F(m))return m;let x=o.unitCartesian;if(F(x))return x;let y=o.unitSpherical;if(F(y))return TBi(y);let v=o.spherical;if(F(v))return SBi(v);let C=o.cartographicRadians;if(F(C))return wBi(C);let T=o.cartographicDegrees;if(F(T))return EBi(T);throw new Oi(`${JSON.stringify(o)} is not a valid CZML interval.`)}function B6e(o,f){Z.unpack(o,f,Lc),Z.normalize(Lc,Lc),Z.pack(Lc,o,f)}function LBi(o){let f=kGe(o);if(f.length===3)return B6e(f,0),f;for(let m=1;m<f.length;m+=4)B6e(f,m);return f}function H6e(o,f){fr.unpack(o,f,uoe),fr.normalize(uoe,uoe),fr.pack(uoe,o,f)}function PBi(o){let f=o.unitQuaternion;if(F(f)){if(f.length===4)return H6e(f,0),f;for(let m=1;m<f.length;m+=5)H6e(f,m)}return f}function z6e(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")?Er:o.hasOwnProperty("cartesian2")?rt:o.hasOwnProperty("cartesian")||o.hasOwnProperty("spherical")||o.hasOwnProperty("cartographicRadians")||o.hasOwnProperty("cartographicDegrees")?Z:o.hasOwnProperty("unitCartesian")||o.hasOwnProperty("unitSpherical")?gF:o.hasOwnProperty("rgba")||o.hasOwnProperty("rgbaf")?Xe:o.hasOwnProperty("arcType")?qa:o.hasOwnProperty("classificationType")?hc:o.hasOwnProperty("colorBlendMode")?II:o.hasOwnProperty("cornerType")?ad:o.hasOwnProperty("heightReference")?Mn:o.hasOwnProperty("horizontalOrigin")?ec:o.hasOwnProperty("date")?$t:o.hasOwnProperty("labelStyle")?f0:o.hasOwnProperty("number")?Number:o.hasOwnProperty("nearFarScalar")?ea:o.hasOwnProperty("distanceDisplayCondition")?So:o.hasOwnProperty("object")||o.hasOwnProperty("value")?Object:o.hasOwnProperty("unitQuaternion")?fr:o.hasOwnProperty("shadowMode")?cl:o.hasOwnProperty("string")?String:o.hasOwnProperty("stripeOrientation")?xF:o.hasOwnProperty("wsen")||o.hasOwnProperty("wsenDegrees")?vi:o.hasOwnProperty("uri")?ude.default:o.hasOwnProperty("verticalOrigin")?jn:Object}function IBi(o,f,m){switch(o){case qa:return qa[f.arcType??f];case Array:return f.array;case Boolean:return f.boolean??f;case Er:return f.boundingRectangle;case rt:return f.cartesian2;case Z:return kGe(f);case gF:return LBi(f);case Xe:return bBi(f);case hc:return hc[f.classificationType??f];case II:return II[f.colorBlendMode??f];case ad:return ad[f.cornerType??f];case Mn:return Mn[f.heightReference??f];case ec:return ec[f.horizontalOrigin??f];case Image:return U6e(f,m);case $t:return $t.fromIso8601(f.date??f);case f0:return f0[f.labelStyle??f];case Number:return f.number??f;case ea:return f.nearFarScalar;case So:return f.distanceDisplayCondition;case Object:return f.object??f.value??f;case fr:return PBi(f);case FI:return f.number??f;case ale:return ale[f.portionToDisplay??f];case cl:return cl[f.shadowMode??f.shadows??f];case String:return f.string??f;case xF:return xF[f.stripeOrientation??f];case vi:return CBi(f);case ude.default:return U6e(f,m);case jn:return jn[f.verticalOrigin??f];default:throw new Oi(`Unknown CzmlDataSource interval type: ${o}`)}}var RBi={HERMITE:NGe,LAGRANGE:ZGe,LINEAR:Uue};function sle(o,f){let m=o.interpolationAlgorithm,x=o.interpolationDegree;(F(m)||F(x))&&f.setInterpolationOptions({interpolationAlgorithm:RBi[m],interpolationDegree:x});let y=o.forwardExtrapolationType;F(y)&&(f.forwardExtrapolationType=nI[y]);let v=o.forwardExtrapolationDuration;F(v)&&(f.forwardExtrapolationDuration=v);let C=o.backwardExtrapolationType;F(C)&&(f.backwardExtrapolationType=nI[C]);let T=o.backwardExtrapolationDuration;F(T)&&(f.backwardExtrapolationDuration=T)}var Y6e={iso8601:void 0};function X0(o){if(F(o))return Y6e.iso8601=o,js.fromIso8601(Y6e)}function UGe(o){let f=wn.MAXIMUM_INTERVAL.clone();return f.data=o,f}function K6e(o){let f=new rS;return f.intervals.addInterval(UGe(o)),f}function J6e(o){let f=new i1(o.referenceFrame);return f.intervals.addInterval(UGe(o)),f}function lle(o,f,m,x,y,v,C){let T=X0(x.interval);F(y)&&(F(T)?T=js.intersect(T,y,NO):T=y);let S,w,E,L=!F(x.reference)&&!F(x.velocityReference),I=F(T)&&!T.equals(wn.MAXIMUM_INTERVAL);if(x.delete===!0){if(!I){f[m]=void 0;return}return imt(f[m],T)}let R=!1;if(L){if(w=IBi(o,x,v),!F(w))return;S=o.packedLength??1,E=w.length??1,R=!F(x.array)&&typeof w!="string"&&E>S&&o!==Object}let P=typeof o.unpack=="function"&&o!==FI;if(!R&&!I){L?f[m]=new Qc(P?o.unpack(w,0):w):f[m]=k6e(o,C,x);return}let A=f[m],M,V=x.epoch;if(F(V)&&(M=$t.fromIso8601(V)),R&&!I){A instanceof uM||(f[m]=A=new uM(o)),A.addSamplesPackedArray(w,M),sle(x,A);return}let G;if(!R&&I){T=T.clone(),L?T.data=P?o.unpack(w,0):w:T.data=k6e(o,C,x),F(A)||(f[m]=A=L?new pH:new rS),L&&A instanceof pH?A.intervals.addInterval(T):A instanceof rS?(L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T)):(f[m]=A=K6e(A),L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T));return}F(A)||(f[m]=A=new rS),A instanceof rS||(f[m]=A=K6e(A));let D=A.intervals;G=D.findInterval(T),(!F(G)||!(G.data instanceof uM))&&(G=T.clone(),G.data=new uM(o),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),sle(x,G.data)}function imt(o,f){if(o instanceof uM){o.removeSamples(f);return}else if(o instanceof pH){o.intervals.removeInterval(f);return}else if(o instanceof rS){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,NO);y.isEmpty||imt(y.data,f)}m.removeInterval(f);return}}function Bi(o,f,m,x,y,v,C){if(F(x))if(Array.isArray(x))for(let T=0,S=x.length;T<S;++T)lle(o,f,m,x[T],y,v,C);else lle(o,f,m,x,y,v,C)}function j6e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,NO):C=x);let T=F(m.cartesianVelocity)?1:0,S=Z.packedLength*(T+1),w,E,L=!F(m.reference),I=F(C)&&!C.equals(wn.MAXIMUM_INTERVAL);if(m.delete===!0){if(!I){o[f]=void 0;return}return rmt(o[f],C)}let R,P=!1;if(L&&(F(m.referenceFrame)&&(R=pp[m.referenceFrame]),R=R??pp.FIXED,w=kGe(m),E=w.length??1,P=E>S),!P&&!I){L?o[f]=new hI(Z.unpack(w),R):o[f]=E6(v,m.reference);return}let A=o[f],M,V=m.epoch;if(F(V)&&(M=$t.fromIso8601(V)),P&&!I){(!(A instanceof nS)||F(R)&&A.referenceFrame!==R)&&(o[f]=A=new nS(R,T)),A.addSamplesPackedArray(w,M),sle(m,A);return}let G;if(!P&&I){C=C.clone(),L?C.data=Z.unpack(w):C.data=E6(v,m.reference),F(A)||(L?A=new MH(R):A=new i1(R),o[f]=A),L&&A instanceof MH&&F(R)&&A.referenceFrame===R?A.intervals.addInterval(C):A instanceof i1?(L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C)):(o[f]=A=J6e(A),L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C));return}F(A)?A instanceof i1||(o[f]=A=J6e(A)):o[f]=A=new i1(R);let D=A.intervals;G=D.findInterval(C),(!F(G)||!(G.data instanceof nS)||F(R)&&G.data.referenceFrame!==R)&&(G=C.clone(),G.data=new nS(R,T),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),sle(m,G.data)}function rmt(o,f){if(o instanceof nS){o.removeSamples(f);return}else if(o instanceof MH){o.intervals.removeInterval(f);return}else if(o instanceof i1){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,NO);y.isEmpty||rmt(y.data,f)}m.removeInterval(f);return}}function nmt(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)j6e(o,f,m[C],x,y,v);else j6e(o,f,m,x,y,v)}function Q6e(o,f,m,x){F(m.references)?hde(o,f,m.references,m.interval,x,cde,rS):(F(m.cartesian2)?m.array=rt.unpackArray(m.cartesian2):F(m.cartesian)&&(m.array=rt.unpackArray(m.cartesian)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function q6e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,NO):C=x);let T=o[f],S,w;if(F(C)){T instanceof ile||(T=new ile,o[f]=T);let L=T.intervals;w=L.findInterval({start:C.start,stop:C.stop}),F(w)?S=w.data:(w=C.clone(),L.addInterval(w))}else S=T;let E;F(m.solidColor)?(S instanceof Ba||(S=new Ba),E=m.solidColor,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.grid)?(S instanceof rle||(S=new rle),E=m.grid,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"cellAlpha",E.cellAlpha,void 0,y,v),Bi(rt,S,"lineCount",E.lineCount,void 0,y,v),Bi(rt,S,"lineThickness",E.lineThickness,void 0,y,v),Bi(rt,S,"lineOffset",E.lineOffset,void 0,y,v)):F(m.image)?(S instanceof O0||(S=new O0),E=m.image,Bi(Image,S,"image",E.image,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v),Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Boolean,S,"transparent",E.transparent,void 0,y,v)):F(m.stripe)?(S instanceof ole||(S=new ole),E=m.stripe,Bi(xF,S,"orientation",E.orientation,void 0,y,v),Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(Number,S,"offset",E.offset,void 0,y,v),Bi(Number,S,"repeat",E.repeat,void 0,y,v)):F(m.polylineOutline)?(S instanceof KM||(S=new KM),E=m.polylineOutline,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Xe,S,"outlineColor",E.outlineColor,void 0,y,v),Bi(Number,S,"outlineWidth",E.outlineWidth,void 0,y,v)):F(m.polylineGlow)?(S instanceof nle||(S=new nle),E=m.polylineGlow,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"glowPower",E.glowPower,void 0,y,v),Bi(Number,S,"taperPower",E.taperPower,void 0,y,v)):F(m.polylineArrow)?(S instanceof Mf||(S=new Mf),E=m.polylineArrow,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.polylineDash)?(S instanceof Ml||(S=new Ml),E=m.polylineDash,Bi(Xe,S,"color",E.color,void 0,void 0,v),Bi(Xe,S,"gapColor",E.gapColor,void 0,void 0,v),Bi(Number,S,"dashLength",E.dashLength,void 0,y,v),Bi(Number,S,"dashPattern",E.dashPattern,void 0,y,v)):F(m.checkerboard)&&(S instanceof ele||(S=new ele),E=m.checkerboard,Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v)),F(w)?w.data=S:o[f]=S}function S1(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)q6e(o,f,m[C],x,y,v);else q6e(o,f,m,x,y,v)}function ABi(o,f,m,x){let y=f.name;F(y)&&(o.name=f.name)}function MBi(o,f,m,x){let y=f.description;F(y)&&Bi(String,o,"description",y,void 0,x,m)}function VBi(o,f,m,x){let y=f.position;F(y)&&nmt(o,"position",y,void 0,x,m)}function GBi(o,f,m,x){let y=f.viewFrom;F(y)&&Bi(Z,o,"viewFrom",y,void 0,x,m)}function FBi(o,f,m,x){let y=f.orientation;F(y)&&Bi(fr,o,"orientation",y,void 0,x,m)}function DBi(o,f,m,x){let y=f.properties;if(F(y)){F(o.properties)||(o.properties=new qE);for(let v in y)if(y.hasOwnProperty(v)){o.properties.hasProperty(v)||o.properties.addProperty(v);let C=y[v];if(Array.isArray(C))for(let T=0,S=C.length;T<S;++T)lle(z6e(C[T]),o.properties,v,C[T],void 0,x,m);else lle(z6e(C),o.properties,v,C,void 0,x,m)}}}function hde(o,f,m,x,y,v,C){let T=m.map(function(S){return E6(y,S)});if(F(x)){x=X0(x);let S=o[f];if(!(S instanceof C)){let w=new C;w.intervals.addInterval(UGe(S)),o[f]=S=w}x.data=new v(T),S.intervals.addInterval(x)}else o[f]=new v(T)}function $6e(o,f,m,x){let y=m.references;F(y)?hde(o,f,y,m.interval,x,cde,rS):Bi(Array,o,f,m,void 0,void 0,x)}function e7e(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)$6e(o,f,m[y],x);else $6e(o,f,m,x)}function t7e(o,f,m,x){let y=m.references;F(y)?hde(o,f,y,m.interval,x,dH,i1):(F(m.cartesian)?m.array=Z.unpackArray(m.cartesian):F(m.cartographicRadians)?m.array=Z.fromRadiansArrayHeights(m.cartographicRadians,yi.default):F(m.cartographicDegrees)&&(m.array=Z.fromDegreesArrayHeights(m.cartographicDegrees,yi.default)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function Qq(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)t7e(o,f,m[y],x);else t7e(o,f,m,x)}function NBi(o){return Z.unpackArray(o)}function WBi(o){return Z.fromRadiansArrayHeights(o,yi.default)}function ZBi(o){return Z.fromDegreesArrayHeights(o,yi.default)}function i7e(o,f,m,x){let y=m.references;if(F(y)){let v=y.map(function(C){let T={};return hde(T,"positions",C,m.interval,x,dH,i1),T.positions});o[f]=new dH(v)}else F(m.cartesian)?m.array=m.cartesian.map(NBi):F(m.cartographicRadians)?m.array=m.cartographicRadians.map(WBi):F(m.cartographicDegrees)&&(m.array=m.cartographicDegrees.map(ZBi)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x)}function OBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)i7e(o,f,m[y],x);else i7e(o,f,m,x)}function XBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;y++)Q6e(o,f,m[y],x);else Q6e(o,f,m,x)}function kBi(o,f,m,x){let y=f.availability;if(!F(y))return;let v;if(Array.isArray(y))for(let C=0,T=y.length;C<T;++C)F(v)||(v=new k_),v.addInterval(X0(y[C]));else v=new k_,v.addInterval(X0(y));o.availability=v}function UBi(o,f,m,x,y){F(f)&&Bi(gF,o,"alignedAxis",f,m,x,y)}function BBi(o,f,m,x){let y=f.billboard;if(!F(y))return;let v=X0(y.interval),C=o.billboard;F(C)||(o.billboard=C=new oV),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Image,C,"image",y.image,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),UBi(C,y.alignedAxis,v,x,m),Bi(Boolean,C,"sizeInMeters",y.sizeInMeters,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(Er,C,"imageSubRegion",y.imageSubRegion,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function HBi(o,f,m,x){let y=f.box;if(!F(y))return;let v=X0(y.interval),C=o.box;F(C)||(o.box=C=new Tue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"dimensions",y.dimensions,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function zBi(o,f,m,x){let y=f.corridor;if(!F(y))return;let v=X0(y.interval),C=o.corridor;F(C)||(o.corridor=C=new Sue),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function YBi(o,f,m,x){let y=f.cylinder;if(!F(y))return;let v=X0(y.interval),C=o.cylinder;F(C)||(o.cylinder=C=new wue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"length",y.length,v,x,m),Bi(Number,C,"topRadius",y.topRadius,v,x,m),Bi(Number,C,"bottomRadius",y.bottomRadius,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(Number,C,"slices",y.slices,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function KBi(o,f){let m=o.version;if(F(m)&&typeof m=="string"){let v=m.split(".");if(v.length===2){if(v[0]!=="1")throw new Oi("Cesium only supports CZML version 1.");f._version=m}}if(!F(f._version))throw new Oi("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;F(o.name)&&(x.name=o.name);let y=o.clock;if(F(y)){let v=x.clock;F(v)?(v.interval=y.interval??v.interval,v.currentTime=y.currentTime??v.currentTime,v.range=y.range??v.range,v.step=y.step??v.step,v.multiplier=y.multiplier??v.multiplier):x.clock={interval:y.interval,currentTime:y.currentTime,range:y.range,step:y.step,multiplier:y.multiplier}}}function JBi(o,f,m,x){let y=f.ellipse;if(!F(y))return;let v=X0(y.interval),C=o.ellipse;F(C)||(o.ellipse=C=new Eue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"semiMajorAxis",y.semiMajorAxis,v,x,m),Bi(Number,C,"semiMinorAxis",y.semiMinorAxis,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function jBi(o,f,m,x){let y=f.ellipsoid;if(!F(y))return;let v=X0(y.interval),C=o.ellipsoid;F(C)||(o.ellipsoid=C=new Ez),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"radii",y.radii,v,x,m),Bi(Z,C,"innerRadii",y.innerRadii,v,x,m),Bi(Number,C,"minimumClock",y.minimumClock,v,x,m),Bi(Number,C,"maximumClock",y.maximumClock,v,x,m),Bi(Number,C,"minimumCone",y.minimumCone,v,x,m),Bi(Number,C,"maximumCone",y.maximumCone,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"stackPartitions",y.stackPartitions,v,x,m),Bi(Number,C,"slicePartitions",y.slicePartitions,v,x,m),Bi(Number,C,"subdivisions",y.subdivisions,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function QBi(o,f,m,x){let y=f.label;if(!F(y))return;let v=X0(y.interval),C=o.label;F(C)||(o.label=C=new Lz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(String,C,"text",y.text,v,x,m),Bi(String,C,"font",y.font,v,x,m),Bi(f0,C,"style",y.style,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Boolean,C,"showBackground",y.showBackground,v,x,m),Bi(Xe,C,"backgroundColor",y.backgroundColor,v,x,m),Bi(rt,C,"backgroundPadding",y.backgroundPadding,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"fillColor",y.fillColor,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function qBi(o,f,m,x){let y=f.model;if(!F(y))return;let v=X0(y.interval),C=o.model;F(C)||(o.model=C=new x7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ude.default,C,"uri",y.gltf,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Number,C,"minimumPixelSize",y.minimumPixelSize,v,x,m),Bi(Number,C,"maximumScale",y.maximumScale,v,x,m),Bi(Boolean,C,"incrementallyLoadTextures",y.incrementallyLoadTextures,v,x,m),Bi(Boolean,C,"runAnimations",y.runAnimations,v,x,m),Bi(Boolean,C,"clampAnimations",y.clampAnimations,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"silhouetteColor",y.silhouetteColor,v,x,m),Bi(Number,C,"silhouetteSize",y.silhouetteSize,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(II,C,"colorBlendMode",y.colorBlendMode,v,x,m),Bi(Number,C,"colorBlendAmount",y.colorBlendAmount,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m);let T,S,w=y.nodeTransformations;if(F(w))if(Array.isArray(w))for(T=0,S=w.length;T<S;++T)r7e(C,w[T],v,x,m);else r7e(C,w,v,x,m);let E=y.articulations;if(F(E))if(Array.isArray(E))for(T=0,S=E.length;T<S;++T)n7e(C,E[T],v,x,m);else n7e(C,E,v,x,m)}function r7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,NO):v=m);let C=o.nodeTransformations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];if(!F(L))continue;F(C)||(o.nodeTransformations=C=new qE),C.hasProperty(E)||C.addProperty(E);let I=C[E];F(I)||(C[E]=I=new Lue),Bi(Z,I,"translation",L.translation,v,x,y),Bi(fr,I,"rotation",L.rotation,v,x,y),Bi(Z,I,"scale",L.scale,v,x,y)}}function n7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,NO):v=m);let C=o.articulations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];F(L)&&(F(C)||(o.articulations=C=new qE),C.hasProperty(E)||C.addProperty(E),Bi(Number,C,E,L,v,x,y))}}function $Bi(o,f,m,x){let y=f.path;if(!F(y))return;let v=X0(y.interval),C=o.path;F(C)||(o.path=C=new g7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"leadTime",y.leadTime,v,x,m),Bi(Number,C,"trailTime",y.trailTime,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"resolution",y.resolution,v,x,m),S1(C,"material",y.material,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function eHi(o,f,m,x){let y=f.point;if(!F(y))return;let v=X0(y.interval),C=o.point;F(C)||(o.point=C=new Iue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"pixelSize",y.pixelSize,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function L6(o){this.polygon=o,this._definitionChanged=new Tr}Object.defineProperties(L6.prototype,{isConstant:{get:function(){let o=this.polygon._positions,f=this.polygon._holes;return(!F(o)||o.isConstant)&&(!F(f)||f.isConstant)}},definitionChanged:{get:function(){return this._definitionChanged}}});L6.prototype.getValue=function(o,f){let m;F(this.polygon._positions)&&(m=this.polygon._positions.getValue(o));let x;return F(this.polygon._holes)&&(x=this.polygon._holes.getValue(o),F(x)&&(x=x.map(function(y){return new Zn(y)}))),F(f)?(f.positions=m,f.holes=x,f):new Zn(m,x)};L6.prototype.equals=function(o){return this===o||o instanceof L6&&Nt.equals(this.polygon._positions,o.polygon._positions)&&Nt.equals(this.polygon._holes,o.polygon._holes)};function tHi(o,f,m,x){let y=f.polygon;if(!F(y))return;let v=X0(y.interval),C=o.polygon;F(C)||(o.polygon=C=new hl),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"_positions",y.positions,m),OBi(C,"_holes",y.holes,m),(F(C._positions)||F(C._holes))&&(C.hierarchy=new L6(C)),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Boolean,C,"perPositionHeight",y.perPositionHeight,v,x,m),Bi(Boolean,C,"closeTop",y.closeTop,v,x,m),Bi(Boolean,C,"closeBottom",y.closeBottom,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function iHi(o){return o?qa.GEODESIC:qa.NONE}function rHi(o,f,m,x){let y=f.polyline;if(!F(y))return;let v=X0(y.interval),C=o.polyline;if(F(C)||(o.polyline=C=new bI),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),S1(C,"material",y.material,v,x,m),S1(C,"depthFailMaterial",y.depthFailMaterial,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(Boolean,C,"clampToGround",y.clampToGround,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m),F(y.followSurface)&&!F(y.arcType)){let T={};Bi(Boolean,T,"followSurface",y.followSurface,v,x,m),C.arcType=vBi(T.followSurface,iHi)}}function nHi(o,f,m,x){let y=f.polylineVolume;if(!F(y))return;let v=X0(y.interval),C=o.polylineVolume;F(C)||(o.polylineVolume=C=new Rue),Qq(C,"positions",y.positions,m),XBi(C,"shape",y.shape,m),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function oHi(o,f,m,x){let y=f.rectangle;if(!F(y))return;let v=X0(y.interval),C=o.rectangle;F(C)||(o.rectangle=C=new Pz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(vi,C,"coordinates",y.coordinates,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function aHi(o,f,m,x){let y=f.tileset;if(!F(y))return;let v=X0(y.interval),C=o.tileset;F(C)||(o.tileset=C=new Pue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ude.default,C,"uri",y.uri,v,x,m),Bi(Number,C,"maximumScreenSpaceError",y.maximumScreenSpaceError,v,x,m)}function sHi(o,f,m,x){let y=f.wall;if(!F(y))return;let v=X0(y.interval),C=o.wall;F(C)||(o.wall=C=new y7),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),e7e(C,"minimumHeights",y.minimumHeights,m),e7e(C,"maximumHeights",y.maximumHeights,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function o7e(o,f,m,x,y){let v=o.id;if(F(v)||(v=du()),W1e=v,!F(y._version)&&v!=="document")throw new Oi("The first CZML packet is required to be the document object.");if(o.delete===!0)f.removeById(v);else if(v==="document")KBi(o,y);else{let C=f.getOrCreateEntity(v),T=o.parent;F(T)&&(C.parent=f.getOrCreateEntity(T));for(let S=m.length-1;S>-1;S--)m[S](C,o,f,x)}W1e=void 0}function lHi(o){let f,m=o._documentPacket.clock;if(!F(m)){if(!F(o._clock)){let y=o._entityCollection.computeAvailability();if(!y.start.equals(wn.MINIMUM_VALUE)){let v=y.start,C=y.stop,T=$t.secondsDifference(C,v),S=Math.round(T/120);return f=new r9,f.startTime=$t.clone(v),f.stopTime=$t.clone(C),f.clockRange=Gx.LOOP_STOP,f.multiplier=S,f.currentTime=$t.clone(v),f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,o._clock=f,!0}}return!1}F(o._clock)?f=o._clock.clone():(f=new r9,f.startTime=wn.MINIMUM_VALUE.clone(),f.stopTime=wn.MAXIMUM_VALUE.clone(),f.currentTime=wn.MINIMUM_VALUE.clone(),f.clockRange=Gx.LOOP_STOP,f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,f.multiplier=1);let x=X0(m.interval);return F(x)&&(f.startTime=x.start,f.stopTime=x.stop),F(m.currentTime)&&(f.currentTime=$t.fromIso8601(m.currentTime)),F(m.range)&&(f.clockRange=Gx[m.range]??Gx.LOOP_STOP),F(m.step)&&(f.clockStep=kd[m.step]??kd.SYSTEM_CLOCK_MULTIPLIER),F(m.multiplier)&&(f.multiplier=m.multiplier),f.equals(o._clock)?!1:(o._clock=f.clone(o._clock),!0)}function omt(o,f,m,x){m=m??si.EMPTY_OBJECT;let y=f,v=m.sourceUri,C=m.credit;if(typeof C=="string"&&(C=new Oa(C)),o._credit=C,typeof f=="string"||f instanceof Mr){f=Mr.createIfNeeded(f),y=f.fetchJson(),v=v??f.clone();let T=o._resourceCredits,S=f.credits;if(F(S)){let w=S.length;for(let E=0;E<w;E++)T.push(S[E])}}return v=Mr.createIfNeeded(v),Sy.setLoading(o,!0),Promise.resolve(y).then(function(T){return uHi(o,T,v,x)}).catch(function(T){return Sy.setLoading(o,!1),o._error.raiseEvent(o,T),console.log(T),Promise.reject(T)})}function uHi(o,f,m,x){Sy.setLoading(o,!0);let y=o._entityCollection;x&&(o._version=void 0,o._documentPacket=new amt,y.removeAll()),sm._processCzml(f,y,m,void 0,o);let v=lHi(o),C=o._documentPacket;return F(C.name)&&o._name!==C.name?(o._name=C.name,v=!0):!F(o._name)&&F(m)&&(o._name=v7(m.getUrlComponent()),v=!0),Sy.setLoading(o,!1),v&&o._changed.raiseEvent(o),o}function amt(){this.name=void 0,this.clock=void 0}function sm(o){this._name=o,this._changed=new Tr,this._error=new Tr,this._isLoading=!1,this._loading=new Tr,this._clock=void 0,this._documentPacket=new amt,this._version=void 0,this._entityCollection=new kS(this),this._entityCluster=new AF,this._credit=void 0,this._resourceCredits=[]}sm.load=function(o,f){return new sm().load(o,f)};Object.defineProperties(sm.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}}});sm.updaters=[BBi,HBi,zBi,YBi,JBi,jBi,QBi,qBi,ABi,MBi,$Bi,eHi,tHi,rHi,nHi,DBi,oHi,VBi,aHi,GBi,sHi,FBi,kBi];sm.registerUpdater=function(o){sm.updaters.includes(o)||sm.updaters.push(o)};sm.unregisterUpdater=function(o){if(sm.updaters.includes(o)){let f=sm.updaters.indexOf(o);sm.updaters.splice(f,1)}};sm.prototype.process=function(o,f){return omt(this,o,f,!1)};sm.prototype.load=function(o,f){return omt(this,o,f,!0)};sm.prototype.update=function(o){return!0};sm.processPacketData=Bi;sm.processPositionPacketData=nmt;sm.processMaterialPacketData=S1;sm._processCzml=function(o,f,m,x,y){if(x=x??sm.updaters,Array.isArray(o))for(let v=0,C=o.length;v<C;++v)o7e(o[v],f,x,m,y);else o7e(o,f,x,m,y)};var qq=sm,Z1e=32,cHi="http://www.opengis.net/kml/2.2",DE="http://www.google.com/kml/ext/2.2",hHi="http://www.w3.org/2000/xmlns/";function dde(o){this._files={},this._promises=[],this._count=0,this._modelCallback=o}var dHi=/^data:image\/([^,;]+)/;dde.prototype.texture=function(o){let f=this,m;if(typeof o=="string"||o instanceof Mr){if(o=Mr.createIfNeeded(o),!o.isDataUri)return o.url;let x=o.url.match(dHi);m=`texture_${++this._count}`,F(x)&&(m+=`.${x[1]}`);let y=o.fetchBlob().then(function(v){f._files[m]=v});return this._promises.push(y),m}if(o instanceof HTMLCanvasElement){m=`texture_${++this._count}.png`;let x=new Promise(y=>{o.toBlob(function(v){f._files[m]=v,y()})});return this._promises.push(x),m}return""};function pHi(o,f){return function(m){o._files[f]=m}}dde.prototype.model=function(o,f){let m=this._modelCallback;if(!F(m))throw new Oi("Encountered a model entity while exporting to KML, but no model callback was supplied.");let x={},y=m(o,f,x);for(let v in x)if(x.hasOwnProperty(v)){let C=Promise.resolve(x[v]);this._promises.push(C),C.then(pHi(this,v))}return y};Object.defineProperties(dde.prototype,{promise:{get:function(){return Promise.all(this._promises)}},files:{get:function(){return this._files}}});function pde(o){this._time=o}pde.prototype.get=function(o,f,m){let x;return F(o)&&(x=F(o.getValue)?o.getValue(this._time,m):o),x??f};pde.prototype.getColor=function(o,f){let m=this.get(o,f);if(F(m))return gZ(m)};pde.prototype.getMaterialType=function(o){if(F(o))return o.getType(this._time)};function BGe(){this._ids={},this._styles={},this._count=0}BGe.prototype.get=function(o){let f=this._ids,m=o.innerHTML;if(F(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};BGe.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 smt(){this._ids={}}smt.prototype.get=function(o){if(!F(o))return this.get(du());let f=this._ids;return F(f[o])?`${o.toString()}-${++f[o]}`:(f[o]=0,o)};function HGe(o){o=o??si.EMPTY_OBJECT;let f=o.entities,m=o.kmz??!1,x=HGe._createState(o),y=f.values.filter(function(w){return!F(w.parent)}),v=x.kmlDoc,C=v.documentElement;C.setAttributeNS(hHi,"xmlns:gx",DE);let T=v.createElement("Document");C.appendChild(T),umt(x,T,y),x.styleCache.save(T);let S=x.externalFileHandler;return S.promise.then(function(){let w=new XMLSerializer().serializeToString(x.kmlDoc);return m?fHi(w,S.files):{kml:w,externalFiles:S.files}})}function fHi(o,f){let m=oa("ThirdParty/Workers/z-worker-pako.js");cPe({workerScripts:{deflate:[m,"./pako_deflate.min.js"],inflate:[m,"./pako_inflate.min.js"]}});let x=new Cot,y=new Yti(x);return y.add("doc.kml",new pti(o)).then(function(){let v=Object.keys(f);return lmt(y,v,f,0)}).then(function(){return y.close()}).then(function(v){return{kmz:v}})}function lmt(o,f,m,x){if(f.length===x)return;let y=f[x];return o.add(y,new Oue(m[y])).then(function(){return lmt(o,f,m,x+1)})}HGe._createState=function(o){let f=o.entities,m=new BGe,x=f.computeAvailability(),y=F(o.time)?o.time:x.start,v=o.defaultAvailability??x,C=o.sampleDuration??60;v.start===wn.MINIMUM_VALUE?v.stop===wn.MAXIMUM_VALUE?v=new js:$t.addSeconds(v.stop,-10*C,v.start):v.stop===wn.MAXIMUM_VALUE&&$t.addSeconds(v.start,10*C,v.stop);let T=new dde(o.modelCallback);return{kmlDoc:document.implementation.createDocument(cHi,"kml"),ellipsoid:o.ellipsoid??yi.default,idManager:new smt,styleCache:m,externalFileHandler:T,time:y,valueGetter:new pde(y),sampleDuration:C,defaultAvailability:new k_([v])}};function umt(o,f,m){let x=o.kmlDoc,y=o.styleCache,v=o.valueGetter,C=o.idManager,T=m.length,S,w,E;for(let L=0;L<T;++L){let I=m[L];S=[],w=[],E=[],mHi(o,I,w,E),xHi(o,I.polyline,w,E),s7e(o,I.rectangle,w,E,S),s7e(o,I.polygon,w,E,S),vHi(o,I,I.model,w,E);let R,P=I.availability;F(P)&&(R=x.createElement("TimeSpan"),$t.equals(P.start,wn.MINIMUM_VALUE)||R.appendChild(Ua(x,"begin",$t.toIso8601(P.start))),$t.equals(P.stop,wn.MAXIMUM_VALUE)||R.appendChild(Ua(x,"end",$t.toIso8601(P.stop))));for(let V=0;V<S.length;++V){let G=S[V];G.setAttribute("id",C.get(I.id)),G.appendChild(Ua(x,"name",I.name)),G.appendChild(Ua(x,"visibility",I.show)),G.appendChild(Ua(x,"description",I.description)),F(R)&&G.appendChild(R),f.appendChild(G)}let A=w.length;if(A>0){let V=x.createElement("Placemark");V.setAttribute("id",C.get(I.id));let G=I.name,D=I.label;if(F(D)){let k=x.createElement("LabelStyle"),U=v.get(D.text);G=F(U)&&U.length>0?U:G;let B=v.getColor(D.fillColor);F(B)&&(k.appendChild(Ua(x,"color",B)),k.appendChild(Ua(x,"colorMode","normal")));let Y=v.get(D.scale);F(Y)&&k.appendChild(Ua(x,"scale",Y)),E.push(k)}V.appendChild(Ua(x,"name",G)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),F(R)&&V.appendChild(R),f.appendChild(V);let N=E.length;if(N>0){let k=x.createElement("Style");for(let U=0;U<N;++U)k.appendChild(E[U]);V.appendChild(Ua(x,"styleUrl",y.get(k)))}if(w.length===1)V.appendChild(w[0]);else if(w.length>1){let k=x.createElement("MultiGeometry");for(let U=0;U<A;++U)k.appendChild(w[U]);V.appendChild(k)}}let M=I._children;if(M.length>0){let V=x.createElement("Folder");V.setAttribute("id",C.get(I.id)),V.appendChild(Ua(x,"name",I.name)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),f.appendChild(V),umt(o,V,M)}}}var xb=new Z,rv=new Gt,TE=new $t;function mHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter,T=f.billboard??f.point;if(!F(T)&&!F(f.path))return;let S=f.position;if(!S.isConstant){cmt(o,f,T,m,x);return}C.get(S,void 0,xb);let w=Ua(y,"coordinates",xZ(xb,v)),E=y.createElement("Point"),L=y.createElement("altitudeMode");L.appendChild(OZ(o,T.heightReference)),E.appendChild(L),E.appendChild(w),m.push(E);let I=T instanceof oV?dmt(o,T):hmt(o,T);x.push(I)}function cmt(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter,S,w=f.position,E=!0;w instanceof i1?(S=w.intervals,E=!1):S=f.availability??o.defaultAvailability;let L=m instanceof x7,I,R,P,A=[];for(I=0;I<S.length;++I){let V=S.get(I),G=E?w:V.data,D=v.createElement("altitudeMode");G instanceof Mz?(G=G._value,D.appendChild(OZ(o,Mn.CLAMP_TO_GROUND))):F(m)?D.appendChild(OZ(o,m.heightReference)):D.appendChild(OZ(o,Mn.NONE));let N=[],k=[];if(G.isConstant){T.get(G,void 0,xb);let B=Ua(v,"coordinates",xZ(xb,C));N.push($t.toIso8601(V.start)),k.push(B),N.push($t.toIso8601(V.stop)),k.push(B)}else if(G instanceof nS)for(P=G._property._times,R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),G.getValueInReferenceFrame(P[R],pp.FIXED,xb),k.push(xZ(xb,C));else if(G instanceof uM){P=G._times;let B=G._values;for(R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),Z.fromArray(B,R*3,xb),k.push(xZ(xb,C))}else{let B=o.sampleDuration;V.start.clone(TE),V.isStartIncluded||$t.addSeconds(TE,B,TE);let Y=V.stop;for(;$t.lessThan(TE,Y);)G.getValue(TE,xb),N.push($t.toIso8601(TE)),k.push(xZ(xb,C)),$t.addSeconds(TE,B,TE);V.isStopIncluded&&$t.equals(TE,Y)&&(G.getValue(TE,xb),N.push($t.toIso8601(TE)),k.push(xZ(xb,C)))}let U=v.createElementNS(DE,"Track");U.appendChild(D);for(let B=0;B<N.length;++B){let Y=Ua(v,"when",N[B]),J=Ua(v,"coord",k[B],DE);U.appendChild(Y),U.appendChild(J)}L&&U.appendChild(pmt(o,m)),A.push(U)}if(A.length===1)x.push(A[0]);else if(A.length>1){let V=v.createElementNS(DE,"MultiTrack");for(I=0;I<A.length;++I)V.appendChild(A[I]);x.push(V)}if(F(m)&&!L){let V=m instanceof oV?dmt(o,m):hmt(o,m);y.push(V)}let M=f.path;if(F(M)){let V=T.get(M.width),G=M.material;if(F(G)||F(V)){let D=v.createElement("LineStyle");F(V)&&D.appendChild(Ua(v,"width",V)),zGe(o,G,D),y.push(D)}}}function hmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=m.createElement("IconStyle"),v=x.getColor(f.color);F(v)&&(y.appendChild(Ua(m,"color",v)),y.appendChild(Ua(m,"colorMode","normal")));let C=x.get(f.pixelSize);return F(C)&&y.appendChild(Ua(m,"scale",C/Z1e)),y}function dmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("IconStyle"),C=x.get(f.image);if(F(C)){C=y.texture(C);let I=m.createElement("Icon");I.appendChild(Ua(m,"href",C));let R=x.get(f.imageSubRegion);F(R)&&(I.appendChild(Ua(m,"x",R.x,DE)),I.appendChild(Ua(m,"y",R.y,DE)),I.appendChild(Ua(m,"w",R.width,DE)),I.appendChild(Ua(m,"h",R.height,DE))),v.appendChild(I)}let T=x.getColor(f.color);F(T)&&(v.appendChild(Ua(m,"color",T)),v.appendChild(Ua(m,"colorMode","normal")));let S=x.get(f.scale);F(S)&&v.appendChild(Ua(m,"scale",S));let w=x.get(f.pixelOffset);if(F(w)){S=S??1,rt.divideByScalar(w,S,w);let I=x.get(f.width,Z1e),R=x.get(f.height,Z1e),P=x.get(f.horizontalOrigin,ec.CENTER);P===ec.CENTER?w.x-=I*.5:P===ec.RIGHT&&(w.x-=I);let A=x.get(f.verticalOrigin,jn.CENTER);A===jn.TOP?w.y+=R:A===jn.CENTER&&(w.y+=R*.5);let M=m.createElement("hotSpot");M.setAttribute("x",-w.x),M.setAttribute("y",w.y),M.setAttribute("xunits","pixels"),M.setAttribute("yunits","pixels"),v.appendChild(M)}let E=x.get(f.rotation),L=x.get(f.alignedAxis);return F(E)&&Z.equals(Z.UNIT_Z,L)&&(E=be.toDegrees(-E),E===0&&(E=360),v.appendChild(Ua(m,"heading",E))),v}function xHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter;if(!F(f))return;let T=y.createElement("LineString"),S=y.createElement("altitudeMode"),w=C.get(f.clampToGround,!1),E;w?(T.appendChild(Ua(y,"tessellate",!0)),E=y.createTextNode("clampToGround")):E=y.createTextNode("absolute"),S.appendChild(E),T.appendChild(S);let L=f.positions,I=C.get(L),R=Ua(y,"coordinates",xZ(I,v));T.appendChild(R);let P=C.get(f.zIndex);w&&F(P)&&T.appendChild(Ua(y,"drawOrder",P,DE)),m.push(T);let A=y.createElement("LineStyle"),M=C.get(f.width);F(M)&&A.appendChild(Ua(y,"width",M)),zGe(o,f.material,A),x.push(A)}function gHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0);m>0&&(v=m);let C=f.coordinates,T=y.get(C),S=[],w=[vi.northeast,vi.southeast,vi.southwest,vi.northwest];for(let R=0;R<4;++R)w[R](T,rv),S.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${v}`);let E=Ua(x,"coordinates",S.join(" ")),L=x.createElement("outerBoundaryIs"),I=x.createElement("LinearRing");return I.appendChild(E),L.appendChild(I),[L]}function a7e(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=[],T=f.length;for(let E=0;E<T;++E)Gt.fromCartesian(f[E],v,rv),C.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${x?rv.height:m}`);let S=Ua(y,"coordinates",C.join(" ")),w=y.createElement("LinearRing");return w.appendChild(S),w}function yHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0),C=y.get(f.perPositionHeight,!1);!C&&m>0&&(v=m);let T=[],S=f.hierarchy,w=y.get(S),E=Array.isArray(w)?w:w.positions,L=x.createElement("outerBoundaryIs");L.appendChild(a7e(o,E,v,C)),T.push(L);let I=w.holes;if(F(I)){let R=I.length;for(let P=0;P<R;++P){let A=x.createElement("innerBoundaryIs");A.appendChild(a7e(o,I[P].positions,v,C)),T.push(A)}}return T}function s7e(o,f,m,x,y){let v=o.kmlDoc,C=o.valueGetter;if(!F(f))return;let T=f instanceof Pz;if(T&&C.getMaterialType(f.material)==="Image"){_Hi(o,f,y);return}let S=v.createElement("Polygon"),w=C.get(f.extrudedHeight,0);w>0&&S.appendChild(Ua(v,"extrude",!0));let E=T?gHi(o,f,w):yHi(o,f,w),L=E.length;for(let M=0;M<L;++M)S.appendChild(E[M]);let I=v.createElement("altitudeMode");I.appendChild(OZ(o,f.heightReference)),S.appendChild(I),m.push(S);let R=v.createElement("PolyStyle"),P=C.get(f.fill,!1);P&&R.appendChild(Ua(v,"fill",P)),zGe(o,f.material,R);let A=C.get(f.outline,!1);if(A){R.appendChild(Ua(v,"outline",A));let M=v.createElement("LineStyle"),V=C.get(f.outlineWidth,1);M.appendChild(Ua(v,"width",V));let G=C.getColor(f.outlineColor,Xe.BLACK);M.appendChild(Ua(v,"color",G)),M.appendChild(Ua(v,"colorMode","normal")),x.push(M)}x.push(R)}function _Hi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=o.externalFileHandler,C=x.createElement("GroundOverlay"),T=x.createElement("altitudeMode");T.appendChild(OZ(o,f.heightReference)),C.appendChild(T);let S=y.get(f.height);F(S)&&C.appendChild(Ua(x,"altitude",S));let w=y.get(f.coordinates),E=x.createElement("LatLonBox");E.appendChild(Ua(x,"north",be.toDegrees(w.north))),E.appendChild(Ua(x,"south",be.toDegrees(w.south))),E.appendChild(Ua(x,"east",be.toDegrees(w.east))),E.appendChild(Ua(x,"west",be.toDegrees(w.west))),C.appendChild(E);let L=y.get(f.material),I=v.texture(L.image),R=x.createElement("Icon");R.appendChild(Ua(x,"href",I)),C.appendChild(R);let P=L.color;F(P)&&C.appendChild(Ua(x,"color",gZ(L.color))),m.push(C)}function pmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("Model"),C=x.get(f.scale);if(F(C)){let w=m.createElement("scale");w.appendChild(Ua(m,"x",C)),w.appendChild(Ua(m,"y",C)),w.appendChild(Ua(m,"z",C)),v.appendChild(w)}let T=m.createElement("Link"),S=y.model(f,o.time);return T.appendChild(Ua(m,"href",S)),v.appendChild(T),v}function vHi(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter;if(!F(m))return;let S=f.position;if(!S.isConstant){cmt(o,f,m,x,y);return}let w=pmt(o,m),E=v.createElement("altitudeMode");E.appendChild(OZ(o,m.heightReference)),w.appendChild(E),T.get(S,void 0,xb),Gt.fromCartesian(xb,C,rv);let L=v.createElement("Location");L.appendChild(Ua(v,"longitude",be.toDegrees(rv.longitude))),L.appendChild(Ua(v,"latitude",be.toDegrees(rv.latitude))),L.appendChild(Ua(v,"altitude",rv.height)),w.appendChild(L),x.push(w)}function zGe(o,f,m){let x=o.kmlDoc,y=o.valueGetter;if(!F(f))return;let v=y.get(f);if(!F(v))return;let C,T=y.getMaterialType(f),S,w;switch(T){case"Image":C=gZ(Xe.WHITE);break;case"Color":case"Grid":case"PolylineGlow":case"PolylineArrow":case"PolylineDash":C=gZ(v.color);break;case"PolylineOutline":C=gZ(v.color),S=gZ(v.outlineColor),w=v.outlineWidth,m.appendChild(Ua(x,"outerColor",S,DE)),m.appendChild(Ua(x,"outerWidth",w,DE));break;case"Stripe":C=gZ(v.oddColor);break}F(C)&&(m.appendChild(Ua(x,"color",C)),m.appendChild(Ua(x,"colorMode","normal")))}function OZ(o,f){let m=o.kmlDoc,x=o.valueGetter.get(f,Mn.NONE),y;switch(x){case Mn.NONE:y=m.createTextNode("absolute");break;case Mn.CLAMP_TO_GROUND:y=m.createTextNode("clampToGround");break;case Mn.RELATIVE_TO_GROUND:y=m.createTextNode("relativeToGround");break}return y}function xZ(o,f){Array.isArray(o)||(o=[o]);let m=o.length,x=[];for(let y=0;y<m;++y)Gt.fromCartesian(o[y],f,rv),x.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${rv.height}`);return x.join(" ")}function Ua(o,f,m,x){m=m??"",typeof m=="boolean"&&(m=m?"1":"0");let y=F(x)?o.createElementNS(x,f):o.createElement(f),v=m==="string"&&m.indexOf("<")!==-1?o.createCDATASection(m):o.createTextNode(m);return y.appendChild(v),y}function gZ(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 fmt=HGe,mmt;typeof DOMParser<"u"&&(mmt=new DOMParser);var bHi=new Unt({stripPrefix:!1,email:!1,replaceFn:function(o,f){return f.urlMatchType==="scheme"||f.urlMatchType==="www"}}),ule=32,l7e=2414016,u7e=1,c7e=16093e3,h7e=.1,CHi=[null,void 0,"http://www.topografix.com/GPX/1/1"],sd={gpx:CHi};function THi(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 YGe(o,f){let m=P6(o,"id");return m=F(m)?m:du(),f.getOrCreateEntity(m)}function KGe(o){let f=d7e(o,"lon"),m=d7e(o,"lat"),x=bj(o,"ele",sd.gpx);return Z.fromDegrees(f,m,x)}function d7e(o,f){if(!F(o))return;let m=o.getAttribute(f);if(m!==null){let x=parseFloat(m);return isNaN(x)?void 0:x}}function P6(o,f){if(!F(o))return;let m=o.getAttribute(f);return m!==null?m:void 0}function iD(o,f,m){if(!F(o))return;let x=o.childNodes,y=x.length;for(let v=0;v<y;v++){let C=x[v];if(C.localName===f&&m.indexOf(C.namespaceURI)!==-1)return C}}function JGe(o,f,m){if(!F(o))return;let x=[],y=o.getElementsByTagName(f),v=y.length;for(let C=0;C<v;C++){let T=y[C];T.localName===f&&m.indexOf(T.namespaceURI)!==-1&&x.push(T)}return x}function bj(o,f,m){let x=iD(o,f,m);if(F(x)){let y=parseFloat(x.textContent);return isNaN(y)?void 0:y}}function Ib(o,f,m){let x=iD(o,f,m);if(F(x))return x.textContent.trim()}function xmt(o){let f=new oV;return f.width=ule,f.height=ule,f.scaleByDistance=new ea(l7e,u7e,c7e,h7e),f.pixelOffsetScaleByDistance=new ea(l7e,u7e,c7e,h7e),f.verticalOrigin=new Qc(jn.BOTTOM),f.image=o,f}function SHi(){let o=new Lz;return o.translucencyByDistance=new ea(3e6,1,5e6,0),o.pixelOffset=new rt(17,0),o.horizontalOrigin=ec.LEFT,o.font="16px sans-serif",o.style=f0.FILL_AND_OUTLINE,o}function gmt(o){let f=new bI;return f.width=4,f.material=new KM,f.material.color=F(o)?o:Xe.RED,f.material.outlineWidth=2,f.material.outlineColor=Xe.BLACK,f}var p7e={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"}},Cj;typeof document<"u"&&(Cj=document.createElement("div"));function jGe(o,f){let m,x="",y=Object.keys(p7e),v=y.length;for(m=0;m<v;m++){let E=y[m],L=p7e[E];L.value=Ib(o,L.tag,sd.gpx)??"",F(L.value)&&L.value!==""&&(x=`${x}<p>${L.text}: ${L.value}</p>`)}if(!F(x)||x==="")return;x=bHi.link(x),Cj.innerHTML=x;let C=Cj.querySelectorAll("a");for(m=0;m<C.length;m++)C[m].setAttribute("target","_blank");let T=Xe.WHITE,S=Xe.BLACK,w='<div class="cesium-infoBox-description-lighter" style="';return w+="overflow:auto;",w+="word-wrap:break-word;",w+=`background-color:${T.toCssColorString()};`,w+=`color:${S.toCssColorString()};`,w+='">',w+=`${Cj.innerHTML}</div>`,Cj.innerHTML="",w}function ymt(o,f,m,x){let y=KGe(f),v=YGe(f,m);v.position=y;let C=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,ule);v.billboard=xmt(C);let T=Ib(f,"name",sd.gpx);v.name=T,v.label=SHi(),v.label.text=T,v.description=jGe(f,v),x.clampToGround&&(v.billboard.heightReference=Mn.CLAMP_TO_GROUND,v.label.heightReference=Mn.CLAMP_TO_GROUND)}function wHi(o,f,m,x){let y=YGe(f,m);y.description=jGe(f,y);let v=JGe(f,"rtept",sd.gpx),C=new Array(v.length);for(let T=0;T<v.length;T++)ymt(o,v[T],m,x),C[T]=KGe(v[T]);y.polyline=gmt(x.routeColor),x.clampToGround&&(y.polyline.clampToGround=!0),y.polyline.positions=C}function EHi(o,f,m,x){let y=YGe(f,m);y.description=jGe(f,y);let v=JGe(f,"trkseg",sd.gpx),C=[],T=[],S,w=!0,E=new nS;for(let L=0;L<v.length;L++)S=LHi(v[L]),C=C.concat(S.positions),S.times.length>0?(T=T.concat(S.times),E.addSamples(T,C),w=w&&!0):w=!1;if(w){let L=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,ule);y.billboard=xmt(L),y.position=E,x.clampToGround&&(y.billboard.heightReference=Mn.CLAMP_TO_GROUND),y.availability=new k_,y.availability.addInterval(new js({start:T[0],stop:T[T.length-1]}))}y.polyline=gmt(x.trackColor),y.polyline.positions=C,x.clampToGround&&(y.polyline.clampToGround=!0)}function LHi(o){let f={positions:[],times:[]},m=JGe(o,"trkpt",sd.gpx),x;for(let y=0;y<m.length;y++){let v=KGe(m[y]);f.positions.push(v),x=Ib(m[y],"time",sd.gpx),F(x)&&f.times.push($t.fromIso8601(x))}return f}function PHi(o){let f=iD(o,"metadata",sd.gpx);if(F(f)){let m={name:Ib(f,"name",sd.gpx),desc:Ib(f,"desc",sd.gpx),author:IHi(f),copyright:AHi(f),link:_mt(f),time:Ib(f,"time",sd.gpx),keywords:Ib(f,"keywords",sd.gpx),bounds:MHi(f)};if(F(m.name)||F(m.desc)||F(m.author)||F(m.copyright)||F(m.link)||F(m.time)||F(m.keywords)||F(m.bounds))return m}}function IHi(o){let f=iD(o,"author",sd.gpx);if(F(f)){let m={name:Ib(f,"name",sd.gpx),email:RHi(f),link:_mt(f)};if(F(m.name)||F(m.email)||F(m.link))return m}}function RHi(o){let f=iD(o,"email",sd.gpx);if(F(f)){let m=Ib(f,"id",sd.gpx),x=Ib(f,"domain",sd.gpx);return`${m}@${x}`}}function _mt(o){let f=iD(o,"link",sd.gpx);if(F(f)){let m={href:P6(f,"href"),text:Ib(f,"text",sd.gpx),mimeType:Ib(f,"type",sd.gpx)};if(F(m.href)||F(m.text)||F(m.mimeType))return m}}function AHi(o){let f=iD(o,"copyright",sd.gpx);if(F(f)){let m={author:P6(f,"author"),year:Ib(f,"year",sd.gpx),license:Ib(f,"license",sd.gpx)};if(F(m.author)||F(m.year)||F(m.license))return m}}function MHi(o){let f=iD(o,"bounds",sd.gpx);if(F(f)){let m={minLat:bj(f,"minlat",sd.gpx),maxLat:bj(f,"maxlat",sd.gpx),minLon:bj(f,"minlon",sd.gpx),maxLon:bj(f,"maxlon",sd.gpx)};if(F(m.minLat)||F(m.maxLat)||F(m.minLon)||F(m.maxLon))return m}}var f7e={wpt:ymt,rte:wHi,trk:EHi};function VHi(o,f,m,x){let y=Object.keys(f7e),v=y.length;for(let C=0;C<v;C++){let T=y[C],S=f7e[T],w=f.childNodes,E=w.length;for(let L=0;L<E;L++){let I=w[L];I.localName===T&&sd.gpx.indexOf(I.namespaceURI)!==-1&&S(o,I,m,x)}}}function m7e(o,f,m){let x=o._entityCollection;x.removeAll();let y=f.documentElement,v=P6(y,"version"),C=P6(y,"creator"),T,S=PHi(y);F(S)&&(T=S.name),y.localName==="gpx"?VHi(o,y,x,m):console.log(`GPX - Unsupported node: ${y.localName}`);let w,E=x.computeAvailability(),L=E.start,I=E.stop,R=$t.equals(L,wn.MINIMUM_VALUE),P=$t.equals(I,wn.MAXIMUM_VALUE);if(!R||!P){let M;R&&(M=new Date,M.setHours(0,0,0,0),L=$t.fromDate(M)),P&&(M=new Date,M.setHours(24,0,0,0),I=$t.fromDate(M)),w=new r9,w.startTime=L,w.stopTime=I,w.currentTime=$t.clone(L),w.clockRange=Gx.LOOP_STOP,w.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,w.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(I,L)/60,1),31556900))}let A=!1;return o._name!==T&&(o._name=T,A=!0),o._creator!==C&&(o._creator=C,A=!0),GHi(o._metadata,S)&&(o._metadata=S,A=!0),o._version!==v&&(o._version=v,A=!0),w!==o._clock&&(A=!0,o._clock=w),A&&o._changed.raiseEvent(o),Sy.setLoading(o,!1),o}function GHi(o,f){return!F(o)&&!F(f)?!1:F(o)&&F(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 FHi(o,f,m,x){x=x??si.EMPTY_OBJECT;let y=m;if(typeof m=="string"||m instanceof Mr){m=Mr.createIfNeeded(m),y=m.fetchBlob();let v=o._resourceCredits,C=m.credits;if(F(C)){let T=C.length;for(let S=0;S<T;S++)v.push(C[S])}}return Promise.resolve(y).then(function(v){return v instanceof Blob?THi(v).then(function(C){let T,S;try{T=mmt.parseFromString(C,"application/xml")}catch(w){S=w.toString()}if(F(S)||T.body||T.documentElement.tagName==="parsererror"){let w=F(S)?S:T.documentElement.firstChild.nodeValue;throw w||(w=T.body.innerText),new Oi(w)}return m7e(o,T,x)}):m7e(o,v,x)}).catch(function(v){return o._error.raiseEvent(o,v),console.log(v),Promise.reject(v)})}function JH(){this._changed=new Tr,this._error=new Tr,this._loading=new Tr,this._clock=void 0,this._entityCollection=new kS(this),this._entityCluster=new AF,this._name=void 0,this._version=void 0,this._creator=void 0,this._metadata=void 0,this._isLoading=!1,this._pinBuilder=new b7}JH.load=function(o,f){return new JH().load(o,f)};Object.defineProperties(JH.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}}});JH.prototype.update=function(o){return!0};JH.prototype.load=function(o,f){if(!F(o))throw new wt("data is required.");f=f??si.EMPTY_OBJECT,Sy.setLoading(this,!0);let m=this._name,x=this;return FHi(this,this._entityCollection,o,f).then(function(){let y,v=x._entityCollection.computeAvailability(),C=v.start,T=v.stop,S=$t.equals(C,wn.MINIMUM_VALUE),w=$t.equals(T,wn.MAXIMUM_VALUE);if(!S||!w){let L;S&&(L=new Date,L.setHours(0,0,0,0),C=$t.fromDate(L)),w&&(L=new Date,L.setHours(24,0,0,0),T=$t.fromDate(L)),y=new r9,y.startTime=C,y.stopTime=T,y.currentTime=$t.clone(C),y.clockRange=Gx.LOOP_STOP,y.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,y.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(T,C)/60,1),31556900))}let E=!1;return y!==x._clock&&(x._clock=y,E=!0),m!==x._name&&(E=!0),E&&x._changed.raiseEvent(x),Sy.setLoading(x,!1),x}).catch(function(y){return Sy.setLoading(x,!1),x._error.raiseEvent(x,y),console.log(y),Promise.reject(y)})};var QGe=JH;function $q(){wt.throwInstantiationError()}$q.prototype.update=wt.throwInstantiationError;$q.prototype.getBoundingSphere=wt.throwInstantiationError;$q.prototype.isDestroyed=wt.throwInstantiationError;$q.prototype.destroy=wt.throwInstantiationError;var vmt=$q;function jH(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=o.width,x=o.height,y=o.depth,v=o.source,C=o.pixelFormat??zr.RGBA,T=o.pixelDataType??un.UNSIGNED_BYTE,S=zr.toInternalFormat(C,T,f);if(!F(m)||!F(x)||!F(y))throw new wt("options requires a source field to create an 3d texture. width or height or dimension fileds");if(Da.typeOf.number.greaterThan("width",m,0),m>co.maximumTextureSize)throw new wt("width must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("height",x,0),x>co.maximumTextureSize)throw new wt("height must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("dimensions",y,0),y>co.maximumTextureSize)throw new wt("dimension must be less than or equal to the maximum texture size");if(!zr.validate(C))throw new wt("Invalid options.pixelFormat.");if(!un.validate(T))throw new wt("Invalid options.pixelDatatype.");let w=!0,E=f._gl,L=E.TEXTURE_3D,I=E.createTexture();E.activeTexture(E.TEXTURE0),E.bindTexture(L,I);let R=4;if(F(v)&&F(v.arrayBufferView)&&(R=zr.alignmentInBytes(C,T,m)),E.pixelStorei(E.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),E.pixelStorei(E.UNPACK_FLIP_Y_WEBGL,!1),E.pixelStorei(E.UNPACK_ALIGNMENT,R),E.pixelStorei(E.UNPACK_COLORSPACE_CONVERSION_WEBGL,E.BROWSER_DEFAULT_WEBGL),F(v)&&F(v.arrayBufferView)){let P=v.arrayBufferView;E.texImage3D(L,0,S,m,x,y,0,C,un.toWebGLConstant(T,f),P),w=!0}E.bindTexture(L,null),this._id=du(),this._context=f,this._textureFilterAnisotropic=f._textureFilterAnisotropic,this._textureTarget=L,this._texture=I,this._internalFormat=S,this._pixelFormat=C,this._pixelDatatype=T,this._width=m,this._height=x,this._depth=y,this._dimensions=new Z(m,x,y),this._hasMinmap=!1,this._sizeInBytes=4,this._preMultiplyAlpha=!1,this._flipY=!1,this._initialized=w,this._sampler=void 0,this.sampler=F(o.sampler)?o.sampler:new Yo}jH.fromFramebuffer=function(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=f._gl,x=o.pixelFormat??zr.RGB,y=o.width??m.drawingBufferWidth,v=o.height??m.drawingBufferHeight,C=o.depth??128,T=o.framebuffer;return new jH({context:f,width:y,height:v,pixelFormat:x,source:{framebuffer:F(T)?T:f.defaultFramebuffer,width:y,height:v,depth:C}})};Object.defineProperties(jH.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,y=this._textureTarget;x.activeTexture(x.TEXTURE0),x.bindTexture(y,this._texture),x.texParameteri(y,x.TEXTURE_MIN_FILTER,f),x.texParameteri(y,x.TEXTURE_MAG_FILTER,m),x.texParameteri(y,x.TEXTURE_WRAP_R,o.wrapR),x.texParameteri(y,x.TEXTURE_WRAP_S,o.wrapS),x.texParameteri(y,x.TEXTURE_WRAP_T,o.wrapT),x.bindTexture(y,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}}});jH.prototype.isDestroyed=function(){return!1};jH.prototype.destory=function(){return this._context._gl.deleteTexture(this._texture),yr(this)};var qGe=jH,$Ge=`uniform sampler2D u_noiseTexture; + `}),o.textureUniformShader.andStyle=!0}function RUi(o){let f=Math.floor(o/256/256),m=Math.floor((o-f*256*256)/255),x=o-f*256*256-m*256,y=f.toString(16).padStart(2,"0"),v=m.toString(16).padStart(2,"0"),C=x.toString(16).padStart(2,"0");return"color('#"+y+v+C+"')"}function AUi(o){return"${id} === '"+o+"'"}function MUi(o){let f=o.pipelineIds,m=f.length,x=[];for(let y=0;y<m;y++){let v=f[y];x.push([AUi(v),RUi(y)])}x.push(["true","color('white')"]),o.style=new ZS({color:{conditions:x}})}function VUi(o){let f=o.flowLevels;if(f instanceof Array&&f.length===16){o.flowLevelMatrix=Ee.fromArray(f);return}o.flowLevelMatrix=new Ee}kH.prototype.init=function(o){let f=Math.sqrt(this.pipelineIds.length);f=Math.floor(f+1),this.width=f,this.height=f,VUi(this),PUi(this),IUi(this),MUi(this),this.oldCustomShader=this.tileset.customShader,this.tileset.customShader=this.textureUniformShader,this.oldStyle=this.tileset.style,this.tileset.style=this.style};function GUi(o){let f=o.pipelineTexture,m=o.serverDatas,x=o.textureData,y=0,v=Object.keys(m);v.length>0&&(v.forEach(C=>{let T=m[C];x[y++]=T}),f.copyFrom({source:{width:o.width,height:o.height,arrayBufferView:x}}))}function FUi(o,f){new Mr({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){})}kH.prototype.update=function(){let o=performance.now(),f=(o-this.startTime)/1e3;if(this.startTime=o,this.currentTime>this.nextRequestTime){let m=this;FUi(this,function(x,y){x.forEach(v=>{m.serverDatas[v.id]=v.flow}),m.nextRequestTime=(Number(m.currentTimestamp)-Number(y))/1e3,m.currentTimestamp=y,GUi(m)})}this.currentTime+=f,this.textureUniformShader.setUniform("u_time",this.currentTime)};kH.prototype.destroy=function(){this.tileset.customShader=this.oldCustomShader,this.tileset.style=this.oldStyle,this.pipelineTexture&&this.pipelineTexture.destroy(),this.textureData&&(this.textureData=null)};kH.fromUrl=async function(o){let{context:f,tileset:m,pipelineUrl:x,flowLevels:y,startTimestamp:v,imageWidth:C,imageHeight:T}=o,S=[],w=await new Mr({url:x,queryParameters:{timestamp:v}}).fetchJson();return w&&w.data&&w.data instanceof Array&&w.data.forEach(E=>{S.push(E.id)}),new kH(f,m,S,x,v,y,C,T)};var ade=kH,DUi=Xe.WHITE,NUi=Xe.BLACK,WUi=new rt(2,2);function UH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(UH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),repeat:Ii("repeat")});UH.prototype.getType=function(o){return"Checkerboard"};var ZUi=new $t;UH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(ZUi)),F(f)||(f={}),f.lightColor=Nt.getValueOrClonedDefault(this._evenColor,o,DUi,f.lightColor),f.darkColor=Nt.getValueOrClonedDefault(this._oddColor,o,NUi,f.darkColor),f.repeat=Nt.getValueOrDefault(this._repeat,o,WUi),f};UH.prototype.equals=function(o){return this===o||o instanceof UH&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._repeat,o._repeat)};var ele=UH,tle={id:void 0},QB=new Array(2);function N1e(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 qft(o,f,m,x){QB[0]=m,QB[1]=x.id,f[JSON.stringify(QB)]=x.definitionChanged.addEventListener(qp.prototype._onDefinitionChanged,o)}function $ft(o,f,m,x){QB[0]=m,QB[1]=x.id;let y=JSON.stringify(QB);f[y](),f[y]=void 0}function tD(o){if(o._shouldRecomposite=!0,o._suspendCount!==0)return;let f=o._collections,m=f.length,x=o._collectionsCopy,y=x.length,v,C,T,S,w,E=o._composite,L=new kS(o),I=o._eventHash,R;for(v=0;v<y;v++)for(w=x[v],w.collectionChanged.removeEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--)C=T[S],$ft(o,I,R,C);for(v=m-1;v>=0;v--)for(w=f[v],w.collectionChanged.addEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--){C=T[S],qft(o,I,R,C);let A=L.getById(C.id);F(A)||(A=E.getById(C.id),F(A)?N1e(A):(tle.id=C.id,A=new bd(tle)),L.add(A)),A.merge(C)}o._collectionsCopy=f.slice(0),E.suspendEvents(),E.removeAll();let P=L.values;for(v=0;v<P.length;v++)E.add(P[v]);E.resumeEvents()}function qp(o,f){this._owner=f,this._composite=new kS(this),this._suspendCount=0,this._collections=F(o)?o.slice():[],this._collectionsCopy=[],this._id=du(),this._eventHash={},tD(this),this._shouldRecomposite=!1}Object.defineProperties(qp.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}}});qp.prototype.addCollection=function(o,f){F(f)?this._collections.splice(f,0,o):(f=this._collections.length,this._collections.push(o)),tD(this)};qp.prototype.removeCollection=function(o){let f=this._collections.indexOf(o);return f!==-1?(this._collections.splice(f,1),tD(this),!0):!1};qp.prototype.removeAllCollections=function(){this._collections.length=0,tD(this)};qp.prototype.containsCollection=function(o){return this._collections.indexOf(o)!==-1};qp.prototype.contains=function(o){return this._composite.contains(o)};qp.prototype.indexOfCollection=function(o){return this._collections.indexOf(o)};qp.prototype.getCollection=function(o){return this._collections[o]};qp.prototype.getCollectionsLength=function(){return this._collections.length};function sde(o,f){return o.indexOf(f)}function emt(o,f,m){let x=o._collections;if(f=be.clamp(f,0,x.length-1),m=be.clamp(m,0,x.length-1),f===m)return;let y=x[f];x[f]=x[m],x[m]=y,tD(o)}qp.prototype.raiseCollection=function(o){let f=sde(this._collections,o);emt(this,f,f+1)};qp.prototype.lowerCollection=function(o){let f=sde(this._collections,o);emt(this,f,f-1)};qp.prototype.raiseCollectionToTop=function(o){let f=sde(this._collections,o);f!==this._collections.length-1&&(this._collections.splice(f,1),this._collections.push(o),tD(this))};qp.prototype.lowerCollectionToBottom=function(o){let f=sde(this._collections,o);f!==0&&(this._collections.splice(f,1),this._collections.splice(0,0,o),tD(this))};qp.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()};qp.prototype.resumeEvents=function(){this._suspendCount--,this._shouldRecomposite&&this._suspendCount===0&&(tD(this),this._shouldRecomposite=!1),this._composite.resumeEvents()};qp.prototype.computeAvailability=function(){return this._composite.computeAvailability()};qp.prototype.getById=function(o){return this._composite.getById(o)};qp.prototype._onCollectionChanged=function(o,f,m){let x=this._collectionsCopy,y=x.length,v=this._composite;v.suspendEvents();let C,T,S,w,E=m.length,L=this._eventHash,I=o.id;for(C=0;C<E;C++){let P=m[C];$ft(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),N1e(w)),w.merge(S));F(w)||v.removeById(A),w=void 0}let R=f.length;for(C=0;C<R;C++){let P=f[C];qft(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),F(w)?N1e(w):(tle.id=A,w=new bd(tle),v.add(w))),w.merge(S));w=void 0}v.resumeEvents()};qp.prototype._onDefinitionChanged=function(o,f,m,x){let y=this._collections,v=this._composite,C=y.length,T=o.id,S=v.getById(T),w=S[f],E=!F(w),L=!0;for(let I=C-1;I>=0;I--){let R=y[I].getById(o.id);if(F(R)){let P=R[f];if(F(P)){if(L)if(L=!1,F(P.merge)&&F(P.clone))w=P.clone(w);else{w=P;break}w.merge(P)}}}E&&S.propertyNames.indexOf(f)===-1&&S.addProperty(f),S[f]=w};var tmt=qp;function fF(){this._definitionChanged=new Tr,this._composite=new rS,this._composite.definitionChanged.addEventListener(fF.prototype._raiseDefinitionChanged,this)}Object.defineProperties(fF.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite._intervals}}});fF.prototype.getType=function(o){let f=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(f))return f.getType(o)};var OUi=new $t;fF.prototype.getValue=function(o,f){F(o)||(o=$t.now(OUi));let m=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(m))return m.getValue(o,f)};fF.prototype.equals=function(o){return this===o||o instanceof fF&&this._composite.equals(o._composite,Nt.equals)};fF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var ile=fF,XUi=be.factorial;function DGe(o,f,m,x,y,v){let C=0,T,S,w;if(x>0){for(S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(v.push(S),C+=DGe(o,f,m,x-1,y,v),v.splice(v.length-1,1))}return C}for(C=1,S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(C*=o-m[f[S]])}return C}var lde={type:"Hermite"};lde.getRequiredDataPoints=function(o,f){return f=f??0,Math.max(Math.floor((o+1)/(f+1)),2)};lde.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T,S,w,E,L=f.length,I=new Array(x);for(v=0;v<x;v++){y[v]=0;let M=new Array(L);for(I[v]=M,C=0;C<L;C++)M[C]=[]}let R=L,P=new Array(R);for(v=0;v<R;v++)P[v]=v;let A=L-1;for(S=0;S<x;S++){for(C=0;C<R;C++)E=P[C]*x+S,I[S][0].push(m[E]);for(v=1;v<R;v++){let M=!1;for(C=0;C<R-v;C++){let V=f[P[C]],G=f[P[C+v]],D;G-V<=0?(E=P[C]*x+x*v+S,D=m[E],I[S][v].push(D/XUi(v))):(D=I[S][v-1][C+1]-I[S][v-1][C],I[S][v].push(D/(G-V))),M=M||D!==0}M||(A=v-1)}}for(T=0,w=0;T<=w;T++)for(v=T;v<=A;v++){let M=DGe(o,P,f,T,v,[]);for(S=0;S<x;S++){let V=I[S][v][0];y[S+T*x]+=V*M}}return y};var kUi=[];lde.interpolate=function(o,f,m,x,y,v,C){let T=x*(v+1);F(C)||(C=new Array(T));for(let V=0;V<T;V++)C[V]=0;let S=f.length,w=new Array(S*(y+1)),E;for(E=0;E<S;E++)for(let V=0;V<y+1;V++)w[E*(y+1)+V]=E;let L=w.length,I=kUi,R=UUi(I,w,f,m,x,y),P=[],A=L*(L+1)/2,M=Math.min(R,v);for(let V=0;V<=M;V++)for(E=V;E<=R;E++){P.length=0;let G=DGe(o,w,f,V,E,P),D=Math.floor(E*(1-E)/2)+L*E;for(let N=0;N<x;N++){let k=Math.floor(N*A),U=I[k+D];C[N+V*x]+=U*G}}return C};function UUi(o,f,m,x,y,v){let C,T,S=-1,w=f.length,E=w*(w+1)/2;for(let L=0;L<y;L++){let I=Math.floor(L*E);for(C=0;C<w;C++)T=f[C]*y*(v+1)+L,o[I+C]=x[T];for(let R=1;R<w;R++){let P=0,A=Math.floor(R*(1-R)/2)+w*R,M=!1;for(C=0;C<w-R;C++){let V=m[f[C]],G=m[f[C+R]],D,N;if(G-V<=0)T=f[C]*y*(v+1)+y*R+L,D=x[T],N=D/be.factorial(R),o[I+A+P]=N,P++;else{let k=Math.floor((R-1)*(2-R)/2)+w*(R-1);D=o[I+k+C+1]-o[I+k+C],N=D/(G-V),o[I+A+P]=N,P++}M=M||D!==0}M&&(S=Math.max(S,R))}}return S}var NGe=lde,WGe={type:"Lagrange"};WGe.getRequiredDataPoints=function(o){return Math.max(o+1,2)};WGe.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T=f.length;for(v=0;v<x;v++)y[v]=0;for(v=0;v<T;v++){let S=1;for(C=0;C<T;C++)if(C!==v){let w=f[v]-f[C];S*=(o-f[C])/w}for(C=0;C<x;C++)y[C]+=S*m[v*x+C]}return y};var ZGe=WGe;function r2(o,f,m){this.clock=o??0,this.cone=f??0,this.magnitude=m??1}r2.fromCartesian3=function(o,f){let m=o.x,x=o.y,y=o.z,v=m*m+x*x;return F(f)||(f=new r2),f.clock=Math.atan2(x,m),f.cone=Math.atan2(Math.sqrt(v),y),f.magnitude=Math.sqrt(v+y*y),f};r2.clone=function(o,f){if(F(o))return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=o.magnitude,f):new r2(o.clock,o.cone,o.magnitude)};r2.normalize=function(o,f){return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=1,f):new r2(o.clock,o.cone,1)};r2.equals=function(o,f){return o===f||F(o)&&F(f)&&o.clock===f.clock&&o.cone===f.cone&&o.magnitude===f.magnitude};r2.equalsEpsilon=function(o,f,m){return m=m??0,o===f||F(o)&&F(f)&&Math.abs(o.clock-f.clock)<=m&&Math.abs(o.cone-f.cone)<=m&&Math.abs(o.magnitude-f.magnitude)<=m};r2.prototype.equals=function(o){return r2.equals(this,o)};r2.prototype.clone=function(o){return r2.clone(this,o)};r2.prototype.equalsEpsilon=function(o,f){return r2.equalsEpsilon(this,o,f)};r2.prototype.toString=function(){return`(${this.clock}, ${this.cone}, ${this.magnitude})`};var OGe=r2,ude=k0(MS(),1),BUi=Xe.WHITE,HUi=.1,zUi=new rt(8,8),YUi=new rt(0,0),KUi=new rt(1,1);function BH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(BH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._cellAlpha)&&Nt.isConstant(this._lineCount)&&Nt.isConstant(this._lineThickness)&&Nt.isConstant(this._lineOffset)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),cellAlpha:Ii("cellAlpha"),lineCount:Ii("lineCount"),lineThickness:Ii("lineThickness"),lineOffset:Ii("lineOffset")});BH.prototype.getType=function(o){return"Grid"};var JUi=new $t;BH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(JUi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,BUi,f.color),f.cellAlpha=Nt.getValueOrDefault(this._cellAlpha,o,HUi),f.lineCount=Nt.getValueOrClonedDefault(this._lineCount,o,zUi,f.lineCount),f.lineThickness=Nt.getValueOrClonedDefault(this._lineThickness,o,KUi,f.lineThickness),f.lineOffset=Nt.getValueOrClonedDefault(this._lineOffset,o,YUi,f.lineOffset),f};BH.prototype.equals=function(o){return this===o||o instanceof BH&&Nt.equals(this._color,o._color)&&Nt.equals(this._cellAlpha,o._cellAlpha)&&Nt.equals(this._lineCount,o._lineCount)&&Nt.equals(this._lineThickness,o._lineThickness)&&Nt.equals(this._lineOffset,o._lineOffset)};var rle=BH,jUi=Xe.WHITE,QUi=Xe.TRANSPARENT,qUi=16,$Ui=255;function HH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(HH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._gapColor)&&Nt.isConstant(this._dashLength)&&Nt.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),gapColor:Ii("gapColor"),dashLength:Ii("dashLength"),dashPattern:Ii("dashPattern")});HH.prototype.getType=function(o){return"PolylineDash"};var eBi=new $t;HH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(eBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,jUi,f.color),f.gapColor=Nt.getValueOrClonedDefault(this._gapColor,o,QUi,f.gapColor),f.dashLength=Nt.getValueOrDefault(this._dashLength,o,qUi,f.dashLength),f.dashPattern=Nt.getValueOrDefault(this._dashPattern,o,$Ui,f.dashPattern),f};HH.prototype.equals=function(o){return this===o||o instanceof HH&&Nt.equals(this._color,o._color)&&Nt.equals(this._gapColor,o._gapColor)&&Nt.equals(this._dashLength,o._dashLength)&&Nt.equals(this._dashPattern,o._dashPattern)};var Ml=HH,tBi=Xe.WHITE,iBi=.25,rBi=1;function zH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(zH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._glow)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),glowPower:Ii("glowPower"),taperPower:Ii("taperPower")});zH.prototype.getType=function(o){return"PolylineGlow"};var nBi=new $t;zH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(nBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,tBi,f.color),f.glowPower=Nt.getValueOrDefault(this._glowPower,o,iBi,f.glowPower),f.taperPower=Nt.getValueOrDefault(this._taperPower,o,rBi,f.taperPower),f};zH.prototype.equals=function(o){return this===o||o instanceof zH&&Nt.equals(this._color,o._color)&&Nt.equals(this._glowPower,o._glowPower)&&Nt.equals(this._taperPower,o._taperPower)};var nle=zH,oBi=Xe.WHITE,aBi=Xe.BLACK,sBi=1;function YH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(YH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._outlineColor)&&Nt.isConstant(this._outlineWidth)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),outlineColor:Ii("outlineColor"),outlineWidth:Ii("outlineWidth")});YH.prototype.getType=function(o){return"PolylineOutline"};var lBi=new $t;YH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(lBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,oBi,f.color),f.outlineColor=Nt.getValueOrClonedDefault(this._outlineColor,o,aBi,f.outlineColor),f.outlineWidth=Nt.getValueOrDefault(this._outlineWidth,o,sBi),f};YH.prototype.equals=function(o){return this===o||o instanceof YH&&Nt.equals(this._color,o._color)&&Nt.equals(this._outlineColor,o._outlineColor)&&Nt.equals(this._outlineWidth,o._outlineWidth)};var KM=YH;function mF(o){this._value=void 0,this._definitionChanged=new Tr,this._eventHelper=new bv,this.setValue(o)}Object.defineProperties(mF.prototype,{isConstant:{get:function(){let o=this._value;if(!F(o))return!0;let f=o.length;for(let m=0;m<f;m++)if(!Nt.isConstant(o[m]))return!1;return!0}},definitionChanged:{get:function(){return this._definitionChanged}}});var uBi=new $t;mF.prototype.getValue=function(o,f){F(o)||(o=$t.now(uBi));let m=this._value;if(!F(m))return;let x=m.length;F(f)||(f=new Array(x));let y=0,v=0;for(;y<x;){let C=this._value[y].getValue(o,f[y]);F(C)&&(f[v]=C,v++),y++}return f.length=v,f};mF.prototype.setValue=function(o){let f=this._eventHelper;if(f.removeAll(),F(o)){this._value=o.slice();let m=o.length;for(let x=0;x<m;x++){let y=o[x];F(y)&&f.add(y.definitionChanged,mF.prototype._raiseDefinitionChanged,this)}}else this._value=void 0;this._definitionChanged.raiseEvent(this)};mF.prototype.equals=function(o){return this===o||o instanceof mF&&Nt.arrayEquals(this._value,o._value)};mF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var cde=mF,cBi={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){F(x)||(x=[]),f=f??0,m=m??o.length;let y;for(let v=0,C=m-f+1;v<C;v++){let T=o[f+v];v===0||Math.abs(y-T)<Math.PI?x[v]=T:x[v]=T-be.TWO_PI,y=T}},unpackInterpolationResult:function(o,f,m,x,y){return y=o[0],y<0?y+be.TWO_PI:y}},FI=cBi,hBi={HORIZONTAL:0,VERTICAL:1},xF=Object.freeze(hBi),dBi=xF.HORIZONTAL,pBi=Xe.WHITE,fBi=Xe.BLACK,mBi=0,xBi=1;function KH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,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(KH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._orientation)&&Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._offset)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},orientation:Ii("orientation"),evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),offset:Ii("offset"),repeat:Ii("repeat")});KH.prototype.getType=function(o){return"Stripe"};var gBi=new $t;KH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(gBi)),F(f)||(f={}),f.horizontal=Nt.getValueOrDefault(this._orientation,o,dBi)===xF.HORIZONTAL,f.evenColor=Nt.getValueOrClonedDefault(this._evenColor,o,pBi,f.evenColor),f.oddColor=Nt.getValueOrClonedDefault(this._oddColor,o,fBi,f.oddColor),f.offset=Nt.getValueOrDefault(this._offset,o,mBi),f.repeat=Nt.getValueOrDefault(this._repeat,o,xBi),f};KH.prototype.equals=function(o){return this===o||o instanceof KH&&Nt.equals(this._orientation,o._orientation)&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._offset,o._offset)&&Nt.equals(this._repeat,o._repeat)};var ole=KH;function w6(o,f){this._velocityVectorProperty=new Tq(o,!0),this._subscription=void 0,this._ellipsoid=void 0,this._definitionChanged=new Tr,this.ellipsoid=f??yi.default;let m=this;this._velocityVectorProperty.definitionChanged.addEventListener(function(){m._definitionChanged.raiseEvent(m)})}Object.defineProperties(w6.prototype,{isConstant:{get:function(){return Nt.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 O6e=new Z,yBi=new Z,X6e=new Ut,_Bi=new $t;w6.prototype.getValue=function(o,f){F(o)||(o=$t.now(_Bi));let m=this._velocityVectorProperty._getValue(o,yBi,O6e);if(F(m))return _r.rotationMatrixFromPositionVelocity(O6e,m,this._ellipsoid,X6e),fr.fromRotationMatrix(X6e,f)};w6.prototype.equals=function(o){return this===o||o instanceof w6&&Nt.equals(this._velocityVectorProperty,o._velocityVectorProperty)&&(this._ellipsoid===o._ellipsoid||this._ellipsoid.equals(o._ellipsoid))};var XGe=w6,pM={COMPLETE:0,BELOW_ELLIPSOID_HORIZON:1,ABOVE_ELLIPSOID_HORIZON:2};pM.validate=function(o){return o===pM.COMPLETE||o===pM.BELOW_ELLIPSOID_HORIZON||o===pM.ABOVE_ELLIPSOID_HORIZON};pM.toString=function(o){switch(o){case pM.COMPLETE:return"COMPLETE";case pM.BELOW_ELLIPSOID_HORIZON:return"BELOW_ELLIPSOID_HORIZON";case pM.ABOVE_ELLIPSOID_HORIZON:return"ABOVE_ELLIPSOID_HORIZON";default:throw new wt("SensorVolumePortionToDisplay value is not valid and cannot be converted to a String.")}};var ale=pM;function gF(){}gF.packedLength=Z.packedLength;gF.unpack=Z.unpack;gF.pack=Z.pack;var W1e;function E6(o,f){return f[0]==="#"&&(f=W1e+f),L7.fromString(o,f)}function k6e(o,f,m){if(F(m.reference))return E6(f,m.reference);if(F(m.velocityReference)){let x=E6(f,m.velocityReference);switch(o){case Z:case gF:return new Tq(x,o===gF);case fr:return new XGe(x)}}throw new Oi(`${JSON.stringify(m)} is not valid CZML.`)}function vBi(o,f){return new Fr(function(m,x){return f(o.getValue(m,x))},o.isConstant)}var Lc=new Z,J2=new OGe,V_=new Gt,NO=new js,uoe=new fr;function bBi(o){let f=o.rgbaf;if(F(f))return f;let m=o.rgba;if(!F(m))return;let x=m.length;if(x===Xe.packedLength)return[Xe.byteToFloat(m[0]),Xe.byteToFloat(m[1]),Xe.byteToFloat(m[2]),Xe.byteToFloat(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=Xe.byteToFloat(m[y+1]),f[y+2]=Xe.byteToFloat(m[y+2]),f[y+3]=Xe.byteToFloat(m[y+3]),f[y+4]=Xe.byteToFloat(m[y+4]);return f}function U6e(o,f){let m=o.uri??o;return F(f)?f.getDerivedResource({url:m}):Mr.createIfNeeded(m)}function CBi(o){let f=o.wsen;if(F(f))return f;let m=o.wsenDegrees;if(!F(m))return;let x=m.length;if(x===vi.packedLength)return[be.toRadians(m[0]),be.toRadians(m[1]),be.toRadians(m[2]),be.toRadians(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=be.toRadians(m[y+1]),f[y+2]=be.toRadians(m[y+2]),f[y+3]=be.toRadians(m[y+3]),f[y+4]=be.toRadians(m[y+4]);return f}function TBi(o){let f=o.length;if(J2.magnitude=1,f===2)return J2.clock=o[0],J2.cone=o[1],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f/3*4);for(let x=0,y=0;x<f;x+=3,y+=4)m[y]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],Z.fromSpherical(J2,Lc),m[y+1]=Lc.x,m[y+2]=Lc.y,m[y+3]=Lc.z;return m}function SBi(o){let f=o.length;if(f===3)return J2.clock=o[0],J2.cone=o[1],J2.magnitude=o[2],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],J2.magnitude=o[x+3],Z.fromSpherical(J2,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function wBi(o){let f=o.length;if(f===3)return V_.longitude=o[0],V_.latitude=o[1],V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=o[x+1],V_.latitude=o[x+2],V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function EBi(o){let f=o.length;if(f===3)return V_.longitude=be.toRadians(o[0]),V_.latitude=be.toRadians(o[1]),V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=be.toRadians(o[x+1]),V_.latitude=be.toRadians(o[x+2]),V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function kGe(o){let f=o.cartesian;if(F(f))return f;let m=o.cartesianVelocity;if(F(m))return m;let x=o.unitCartesian;if(F(x))return x;let y=o.unitSpherical;if(F(y))return TBi(y);let v=o.spherical;if(F(v))return SBi(v);let C=o.cartographicRadians;if(F(C))return wBi(C);let T=o.cartographicDegrees;if(F(T))return EBi(T);throw new Oi(`${JSON.stringify(o)} is not a valid CZML interval.`)}function B6e(o,f){Z.unpack(o,f,Lc),Z.normalize(Lc,Lc),Z.pack(Lc,o,f)}function LBi(o){let f=kGe(o);if(f.length===3)return B6e(f,0),f;for(let m=1;m<f.length;m+=4)B6e(f,m);return f}function H6e(o,f){fr.unpack(o,f,uoe),fr.normalize(uoe,uoe),fr.pack(uoe,o,f)}function PBi(o){let f=o.unitQuaternion;if(F(f)){if(f.length===4)return H6e(f,0),f;for(let m=1;m<f.length;m+=5)H6e(f,m)}return f}function z6e(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")?Er:o.hasOwnProperty("cartesian2")?rt:o.hasOwnProperty("cartesian")||o.hasOwnProperty("spherical")||o.hasOwnProperty("cartographicRadians")||o.hasOwnProperty("cartographicDegrees")?Z:o.hasOwnProperty("unitCartesian")||o.hasOwnProperty("unitSpherical")?gF:o.hasOwnProperty("rgba")||o.hasOwnProperty("rgbaf")?Xe:o.hasOwnProperty("arcType")?qa:o.hasOwnProperty("classificationType")?hc:o.hasOwnProperty("colorBlendMode")?II:o.hasOwnProperty("cornerType")?ad:o.hasOwnProperty("heightReference")?Mn:o.hasOwnProperty("horizontalOrigin")?ec:o.hasOwnProperty("date")?$t:o.hasOwnProperty("labelStyle")?f0:o.hasOwnProperty("number")?Number:o.hasOwnProperty("nearFarScalar")?ea:o.hasOwnProperty("distanceDisplayCondition")?So:o.hasOwnProperty("object")||o.hasOwnProperty("value")?Object:o.hasOwnProperty("unitQuaternion")?fr:o.hasOwnProperty("shadowMode")?cl:o.hasOwnProperty("string")?String:o.hasOwnProperty("stripeOrientation")?xF:o.hasOwnProperty("wsen")||o.hasOwnProperty("wsenDegrees")?vi:o.hasOwnProperty("uri")?ude.default:o.hasOwnProperty("verticalOrigin")?jn:Object}function IBi(o,f,m){switch(o){case qa:return qa[f.arcType??f];case Array:return f.array;case Boolean:return f.boolean??f;case Er:return f.boundingRectangle;case rt:return f.cartesian2;case Z:return kGe(f);case gF:return LBi(f);case Xe:return bBi(f);case hc:return hc[f.classificationType??f];case II:return II[f.colorBlendMode??f];case ad:return ad[f.cornerType??f];case Mn:return Mn[f.heightReference??f];case ec:return ec[f.horizontalOrigin??f];case Image:return U6e(f,m);case $t:return $t.fromIso8601(f.date??f);case f0:return f0[f.labelStyle??f];case Number:return f.number??f;case ea:return f.nearFarScalar;case So:return f.distanceDisplayCondition;case Object:return f.object??f.value??f;case fr:return PBi(f);case FI:return f.number??f;case ale:return ale[f.portionToDisplay??f];case cl:return cl[f.shadowMode??f.shadows??f];case String:return f.string??f;case xF:return xF[f.stripeOrientation??f];case vi:return CBi(f);case ude.default:return U6e(f,m);case jn:return jn[f.verticalOrigin??f];default:throw new Oi(`Unknown CzmlDataSource interval type: ${o}`)}}var RBi={HERMITE:NGe,LAGRANGE:ZGe,LINEAR:Uue};function sle(o,f){let m=o.interpolationAlgorithm,x=o.interpolationDegree;(F(m)||F(x))&&f.setInterpolationOptions({interpolationAlgorithm:RBi[m],interpolationDegree:x});let y=o.forwardExtrapolationType;F(y)&&(f.forwardExtrapolationType=nI[y]);let v=o.forwardExtrapolationDuration;F(v)&&(f.forwardExtrapolationDuration=v);let C=o.backwardExtrapolationType;F(C)&&(f.backwardExtrapolationType=nI[C]);let T=o.backwardExtrapolationDuration;F(T)&&(f.backwardExtrapolationDuration=T)}var Y6e={iso8601:void 0};function X0(o){if(F(o))return Y6e.iso8601=o,js.fromIso8601(Y6e)}function UGe(o){let f=wn.MAXIMUM_INTERVAL.clone();return f.data=o,f}function K6e(o){let f=new rS;return f.intervals.addInterval(UGe(o)),f}function J6e(o){let f=new i1(o.referenceFrame);return f.intervals.addInterval(UGe(o)),f}function lle(o,f,m,x,y,v,C){let T=X0(x.interval);F(y)&&(F(T)?T=js.intersect(T,y,NO):T=y);let S,w,E,L=!F(x.reference)&&!F(x.velocityReference),I=F(T)&&!T.equals(wn.MAXIMUM_INTERVAL);if(x.delete===!0){if(!I){f[m]=void 0;return}return imt(f[m],T)}let R=!1;if(L){if(w=IBi(o,x,v),!F(w))return;S=o.packedLength??1,E=w.length??1,R=!F(x.array)&&typeof w!="string"&&E>S&&o!==Object}let P=typeof o.unpack=="function"&&o!==FI;if(!R&&!I){L?f[m]=new Qc(P?o.unpack(w,0):w):f[m]=k6e(o,C,x);return}let A=f[m],M,V=x.epoch;if(F(V)&&(M=$t.fromIso8601(V)),R&&!I){A instanceof uM||(f[m]=A=new uM(o)),A.addSamplesPackedArray(w,M),sle(x,A);return}let G;if(!R&&I){T=T.clone(),L?T.data=P?o.unpack(w,0):w:T.data=k6e(o,C,x),F(A)||(f[m]=A=L?new pH:new rS),L&&A instanceof pH?A.intervals.addInterval(T):A instanceof rS?(L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T)):(f[m]=A=K6e(A),L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T));return}F(A)||(f[m]=A=new rS),A instanceof rS||(f[m]=A=K6e(A));let D=A.intervals;G=D.findInterval(T),(!F(G)||!(G.data instanceof uM))&&(G=T.clone(),G.data=new uM(o),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),sle(x,G.data)}function imt(o,f){if(o instanceof uM){o.removeSamples(f);return}else if(o instanceof pH){o.intervals.removeInterval(f);return}else if(o instanceof rS){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,NO);y.isEmpty||imt(y.data,f)}m.removeInterval(f);return}}function Bi(o,f,m,x,y,v,C){if(F(x))if(Array.isArray(x))for(let T=0,S=x.length;T<S;++T)lle(o,f,m,x[T],y,v,C);else lle(o,f,m,x,y,v,C)}function j6e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,NO):C=x);let T=F(m.cartesianVelocity)?1:0,S=Z.packedLength*(T+1),w,E,L=!F(m.reference),I=F(C)&&!C.equals(wn.MAXIMUM_INTERVAL);if(m.delete===!0){if(!I){o[f]=void 0;return}return rmt(o[f],C)}let R,P=!1;if(L&&(F(m.referenceFrame)&&(R=pp[m.referenceFrame]),R=R??pp.FIXED,w=kGe(m),E=w.length??1,P=E>S),!P&&!I){L?o[f]=new hI(Z.unpack(w),R):o[f]=E6(v,m.reference);return}let A=o[f],M,V=m.epoch;if(F(V)&&(M=$t.fromIso8601(V)),P&&!I){(!(A instanceof nS)||F(R)&&A.referenceFrame!==R)&&(o[f]=A=new nS(R,T)),A.addSamplesPackedArray(w,M),sle(m,A);return}let G;if(!P&&I){C=C.clone(),L?C.data=Z.unpack(w):C.data=E6(v,m.reference),F(A)||(L?A=new MH(R):A=new i1(R),o[f]=A),L&&A instanceof MH&&F(R)&&A.referenceFrame===R?A.intervals.addInterval(C):A instanceof i1?(L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C)):(o[f]=A=J6e(A),L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C));return}F(A)?A instanceof i1||(o[f]=A=J6e(A)):o[f]=A=new i1(R);let D=A.intervals;G=D.findInterval(C),(!F(G)||!(G.data instanceof nS)||F(R)&&G.data.referenceFrame!==R)&&(G=C.clone(),G.data=new nS(R,T),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),sle(m,G.data)}function rmt(o,f){if(o instanceof nS){o.removeSamples(f);return}else if(o instanceof MH){o.intervals.removeInterval(f);return}else if(o instanceof i1){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,NO);y.isEmpty||rmt(y.data,f)}m.removeInterval(f);return}}function nmt(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)j6e(o,f,m[C],x,y,v);else j6e(o,f,m,x,y,v)}function Q6e(o,f,m,x){F(m.references)?hde(o,f,m.references,m.interval,x,cde,rS):(F(m.cartesian2)?m.array=rt.unpackArray(m.cartesian2):F(m.cartesian)&&(m.array=rt.unpackArray(m.cartesian)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function q6e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,NO):C=x);let T=o[f],S,w;if(F(C)){T instanceof ile||(T=new ile,o[f]=T);let L=T.intervals;w=L.findInterval({start:C.start,stop:C.stop}),F(w)?S=w.data:(w=C.clone(),L.addInterval(w))}else S=T;let E;F(m.solidColor)?(S instanceof Ba||(S=new Ba),E=m.solidColor,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.grid)?(S instanceof rle||(S=new rle),E=m.grid,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"cellAlpha",E.cellAlpha,void 0,y,v),Bi(rt,S,"lineCount",E.lineCount,void 0,y,v),Bi(rt,S,"lineThickness",E.lineThickness,void 0,y,v),Bi(rt,S,"lineOffset",E.lineOffset,void 0,y,v)):F(m.image)?(S instanceof O0||(S=new O0),E=m.image,Bi(Image,S,"image",E.image,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v),Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Boolean,S,"transparent",E.transparent,void 0,y,v)):F(m.stripe)?(S instanceof ole||(S=new ole),E=m.stripe,Bi(xF,S,"orientation",E.orientation,void 0,y,v),Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(Number,S,"offset",E.offset,void 0,y,v),Bi(Number,S,"repeat",E.repeat,void 0,y,v)):F(m.polylineOutline)?(S instanceof KM||(S=new KM),E=m.polylineOutline,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Xe,S,"outlineColor",E.outlineColor,void 0,y,v),Bi(Number,S,"outlineWidth",E.outlineWidth,void 0,y,v)):F(m.polylineGlow)?(S instanceof nle||(S=new nle),E=m.polylineGlow,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"glowPower",E.glowPower,void 0,y,v),Bi(Number,S,"taperPower",E.taperPower,void 0,y,v)):F(m.polylineArrow)?(S instanceof Mf||(S=new Mf),E=m.polylineArrow,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.polylineDash)?(S instanceof Ml||(S=new Ml),E=m.polylineDash,Bi(Xe,S,"color",E.color,void 0,void 0,v),Bi(Xe,S,"gapColor",E.gapColor,void 0,void 0,v),Bi(Number,S,"dashLength",E.dashLength,void 0,y,v),Bi(Number,S,"dashPattern",E.dashPattern,void 0,y,v)):F(m.checkerboard)&&(S instanceof ele||(S=new ele),E=m.checkerboard,Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v)),F(w)?w.data=S:o[f]=S}function S1(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)q6e(o,f,m[C],x,y,v);else q6e(o,f,m,x,y,v)}function ABi(o,f,m,x){let y=f.name;F(y)&&(o.name=f.name)}function MBi(o,f,m,x){let y=f.description;F(y)&&Bi(String,o,"description",y,void 0,x,m)}function VBi(o,f,m,x){let y=f.position;F(y)&&nmt(o,"position",y,void 0,x,m)}function GBi(o,f,m,x){let y=f.viewFrom;F(y)&&Bi(Z,o,"viewFrom",y,void 0,x,m)}function FBi(o,f,m,x){let y=f.orientation;F(y)&&Bi(fr,o,"orientation",y,void 0,x,m)}function DBi(o,f,m,x){let y=f.properties;if(F(y)){F(o.properties)||(o.properties=new qE);for(let v in y)if(y.hasOwnProperty(v)){o.properties.hasProperty(v)||o.properties.addProperty(v);let C=y[v];if(Array.isArray(C))for(let T=0,S=C.length;T<S;++T)lle(z6e(C[T]),o.properties,v,C[T],void 0,x,m);else lle(z6e(C),o.properties,v,C,void 0,x,m)}}}function hde(o,f,m,x,y,v,C){let T=m.map(function(S){return E6(y,S)});if(F(x)){x=X0(x);let S=o[f];if(!(S instanceof C)){let w=new C;w.intervals.addInterval(UGe(S)),o[f]=S=w}x.data=new v(T),S.intervals.addInterval(x)}else o[f]=new v(T)}function $6e(o,f,m,x){let y=m.references;F(y)?hde(o,f,y,m.interval,x,cde,rS):Bi(Array,o,f,m,void 0,void 0,x)}function e7e(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)$6e(o,f,m[y],x);else $6e(o,f,m,x)}function t7e(o,f,m,x){let y=m.references;F(y)?hde(o,f,y,m.interval,x,dH,i1):(F(m.cartesian)?m.array=Z.unpackArray(m.cartesian):F(m.cartographicRadians)?m.array=Z.fromRadiansArrayHeights(m.cartographicRadians,yi.default):F(m.cartographicDegrees)&&(m.array=Z.fromDegreesArrayHeights(m.cartographicDegrees,yi.default)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function Qq(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)t7e(o,f,m[y],x);else t7e(o,f,m,x)}function NBi(o){return Z.unpackArray(o)}function WBi(o){return Z.fromRadiansArrayHeights(o,yi.default)}function ZBi(o){return Z.fromDegreesArrayHeights(o,yi.default)}function i7e(o,f,m,x){let y=m.references;if(F(y)){let v=y.map(function(C){let T={};return hde(T,"positions",C,m.interval,x,dH,i1),T.positions});o[f]=new dH(v)}else F(m.cartesian)?m.array=m.cartesian.map(NBi):F(m.cartographicRadians)?m.array=m.cartographicRadians.map(WBi):F(m.cartographicDegrees)&&(m.array=m.cartographicDegrees.map(ZBi)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x)}function OBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)i7e(o,f,m[y],x);else i7e(o,f,m,x)}function XBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;y++)Q6e(o,f,m[y],x);else Q6e(o,f,m,x)}function kBi(o,f,m,x){let y=f.availability;if(!F(y))return;let v;if(Array.isArray(y))for(let C=0,T=y.length;C<T;++C)F(v)||(v=new k_),v.addInterval(X0(y[C]));else v=new k_,v.addInterval(X0(y));o.availability=v}function UBi(o,f,m,x,y){F(f)&&Bi(gF,o,"alignedAxis",f,m,x,y)}function BBi(o,f,m,x){let y=f.billboard;if(!F(y))return;let v=X0(y.interval),C=o.billboard;F(C)||(o.billboard=C=new oV),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Image,C,"image",y.image,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),UBi(C,y.alignedAxis,v,x,m),Bi(Boolean,C,"sizeInMeters",y.sizeInMeters,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(Er,C,"imageSubRegion",y.imageSubRegion,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function HBi(o,f,m,x){let y=f.box;if(!F(y))return;let v=X0(y.interval),C=o.box;F(C)||(o.box=C=new Tue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"dimensions",y.dimensions,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function zBi(o,f,m,x){let y=f.corridor;if(!F(y))return;let v=X0(y.interval),C=o.corridor;F(C)||(o.corridor=C=new Sue),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function YBi(o,f,m,x){let y=f.cylinder;if(!F(y))return;let v=X0(y.interval),C=o.cylinder;F(C)||(o.cylinder=C=new wue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"length",y.length,v,x,m),Bi(Number,C,"topRadius",y.topRadius,v,x,m),Bi(Number,C,"bottomRadius",y.bottomRadius,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(Number,C,"slices",y.slices,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function KBi(o,f){let m=o.version;if(F(m)&&typeof m=="string"){let v=m.split(".");if(v.length===2){if(v[0]!=="1")throw new Oi("Cesium only supports CZML version 1.");f._version=m}}if(!F(f._version))throw new Oi("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;F(o.name)&&(x.name=o.name);let y=o.clock;if(F(y)){let v=x.clock;F(v)?(v.interval=y.interval??v.interval,v.currentTime=y.currentTime??v.currentTime,v.range=y.range??v.range,v.step=y.step??v.step,v.multiplier=y.multiplier??v.multiplier):x.clock={interval:y.interval,currentTime:y.currentTime,range:y.range,step:y.step,multiplier:y.multiplier}}}function JBi(o,f,m,x){let y=f.ellipse;if(!F(y))return;let v=X0(y.interval),C=o.ellipse;F(C)||(o.ellipse=C=new Eue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"semiMajorAxis",y.semiMajorAxis,v,x,m),Bi(Number,C,"semiMinorAxis",y.semiMinorAxis,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function jBi(o,f,m,x){let y=f.ellipsoid;if(!F(y))return;let v=X0(y.interval),C=o.ellipsoid;F(C)||(o.ellipsoid=C=new Ez),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"radii",y.radii,v,x,m),Bi(Z,C,"innerRadii",y.innerRadii,v,x,m),Bi(Number,C,"minimumClock",y.minimumClock,v,x,m),Bi(Number,C,"maximumClock",y.maximumClock,v,x,m),Bi(Number,C,"minimumCone",y.minimumCone,v,x,m),Bi(Number,C,"maximumCone",y.maximumCone,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"stackPartitions",y.stackPartitions,v,x,m),Bi(Number,C,"slicePartitions",y.slicePartitions,v,x,m),Bi(Number,C,"subdivisions",y.subdivisions,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function QBi(o,f,m,x){let y=f.label;if(!F(y))return;let v=X0(y.interval),C=o.label;F(C)||(o.label=C=new Lz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(String,C,"text",y.text,v,x,m),Bi(String,C,"font",y.font,v,x,m),Bi(f0,C,"style",y.style,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Boolean,C,"showBackground",y.showBackground,v,x,m),Bi(Xe,C,"backgroundColor",y.backgroundColor,v,x,m),Bi(rt,C,"backgroundPadding",y.backgroundPadding,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"fillColor",y.fillColor,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function qBi(o,f,m,x){let y=f.model;if(!F(y))return;let v=X0(y.interval),C=o.model;F(C)||(o.model=C=new x7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ude.default,C,"uri",y.gltf,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Number,C,"minimumPixelSize",y.minimumPixelSize,v,x,m),Bi(Number,C,"maximumScale",y.maximumScale,v,x,m),Bi(Boolean,C,"incrementallyLoadTextures",y.incrementallyLoadTextures,v,x,m),Bi(Boolean,C,"runAnimations",y.runAnimations,v,x,m),Bi(Boolean,C,"clampAnimations",y.clampAnimations,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"silhouetteColor",y.silhouetteColor,v,x,m),Bi(Number,C,"silhouetteSize",y.silhouetteSize,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(II,C,"colorBlendMode",y.colorBlendMode,v,x,m),Bi(Number,C,"colorBlendAmount",y.colorBlendAmount,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m);let T,S,w=y.nodeTransformations;if(F(w))if(Array.isArray(w))for(T=0,S=w.length;T<S;++T)r7e(C,w[T],v,x,m);else r7e(C,w,v,x,m);let E=y.articulations;if(F(E))if(Array.isArray(E))for(T=0,S=E.length;T<S;++T)n7e(C,E[T],v,x,m);else n7e(C,E,v,x,m)}function r7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,NO):v=m);let C=o.nodeTransformations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];if(!F(L))continue;F(C)||(o.nodeTransformations=C=new qE),C.hasProperty(E)||C.addProperty(E);let I=C[E];F(I)||(C[E]=I=new Lue),Bi(Z,I,"translation",L.translation,v,x,y),Bi(fr,I,"rotation",L.rotation,v,x,y),Bi(Z,I,"scale",L.scale,v,x,y)}}function n7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,NO):v=m);let C=o.articulations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];F(L)&&(F(C)||(o.articulations=C=new qE),C.hasProperty(E)||C.addProperty(E),Bi(Number,C,E,L,v,x,y))}}function $Bi(o,f,m,x){let y=f.path;if(!F(y))return;let v=X0(y.interval),C=o.path;F(C)||(o.path=C=new g7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"leadTime",y.leadTime,v,x,m),Bi(Number,C,"trailTime",y.trailTime,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"resolution",y.resolution,v,x,m),S1(C,"material",y.material,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function eHi(o,f,m,x){let y=f.point;if(!F(y))return;let v=X0(y.interval),C=o.point;F(C)||(o.point=C=new Iue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"pixelSize",y.pixelSize,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function L6(o){this.polygon=o,this._definitionChanged=new Tr}Object.defineProperties(L6.prototype,{isConstant:{get:function(){let o=this.polygon._positions,f=this.polygon._holes;return(!F(o)||o.isConstant)&&(!F(f)||f.isConstant)}},definitionChanged:{get:function(){return this._definitionChanged}}});L6.prototype.getValue=function(o,f){let m;F(this.polygon._positions)&&(m=this.polygon._positions.getValue(o));let x;return F(this.polygon._holes)&&(x=this.polygon._holes.getValue(o),F(x)&&(x=x.map(function(y){return new Zn(y)}))),F(f)?(f.positions=m,f.holes=x,f):new Zn(m,x)};L6.prototype.equals=function(o){return this===o||o instanceof L6&&Nt.equals(this.polygon._positions,o.polygon._positions)&&Nt.equals(this.polygon._holes,o.polygon._holes)};function tHi(o,f,m,x){let y=f.polygon;if(!F(y))return;let v=X0(y.interval),C=o.polygon;F(C)||(o.polygon=C=new hl),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"_positions",y.positions,m),OBi(C,"_holes",y.holes,m),(F(C._positions)||F(C._holes))&&(C.hierarchy=new L6(C)),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Boolean,C,"perPositionHeight",y.perPositionHeight,v,x,m),Bi(Boolean,C,"closeTop",y.closeTop,v,x,m),Bi(Boolean,C,"closeBottom",y.closeBottom,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function iHi(o){return o?qa.GEODESIC:qa.NONE}function rHi(o,f,m,x){let y=f.polyline;if(!F(y))return;let v=X0(y.interval),C=o.polyline;if(F(C)||(o.polyline=C=new bI),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),S1(C,"material",y.material,v,x,m),S1(C,"depthFailMaterial",y.depthFailMaterial,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(Boolean,C,"clampToGround",y.clampToGround,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m),F(y.followSurface)&&!F(y.arcType)){let T={};Bi(Boolean,T,"followSurface",y.followSurface,v,x,m),C.arcType=vBi(T.followSurface,iHi)}}function nHi(o,f,m,x){let y=f.polylineVolume;if(!F(y))return;let v=X0(y.interval),C=o.polylineVolume;F(C)||(o.polylineVolume=C=new Rue),Qq(C,"positions",y.positions,m),XBi(C,"shape",y.shape,m),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function oHi(o,f,m,x){let y=f.rectangle;if(!F(y))return;let v=X0(y.interval),C=o.rectangle;F(C)||(o.rectangle=C=new Pz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(vi,C,"coordinates",y.coordinates,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function aHi(o,f,m,x){let y=f.tileset;if(!F(y))return;let v=X0(y.interval),C=o.tileset;F(C)||(o.tileset=C=new Pue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ude.default,C,"uri",y.uri,v,x,m),Bi(Number,C,"maximumScreenSpaceError",y.maximumScreenSpaceError,v,x,m)}function sHi(o,f,m,x){let y=f.wall;if(!F(y))return;let v=X0(y.interval),C=o.wall;F(C)||(o.wall=C=new y7),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),e7e(C,"minimumHeights",y.minimumHeights,m),e7e(C,"maximumHeights",y.maximumHeights,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function o7e(o,f,m,x,y){let v=o.id;if(F(v)||(v=du()),W1e=v,!F(y._version)&&v!=="document")throw new Oi("The first CZML packet is required to be the document object.");if(o.delete===!0)f.removeById(v);else if(v==="document")KBi(o,y);else{let C=f.getOrCreateEntity(v),T=o.parent;F(T)&&(C.parent=f.getOrCreateEntity(T));for(let S=m.length-1;S>-1;S--)m[S](C,o,f,x)}W1e=void 0}function lHi(o){let f,m=o._documentPacket.clock;if(!F(m)){if(!F(o._clock)){let y=o._entityCollection.computeAvailability();if(!y.start.equals(wn.MINIMUM_VALUE)){let v=y.start,C=y.stop,T=$t.secondsDifference(C,v),S=Math.round(T/120);return f=new r9,f.startTime=$t.clone(v),f.stopTime=$t.clone(C),f.clockRange=Gx.LOOP_STOP,f.multiplier=S,f.currentTime=$t.clone(v),f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,o._clock=f,!0}}return!1}F(o._clock)?f=o._clock.clone():(f=new r9,f.startTime=wn.MINIMUM_VALUE.clone(),f.stopTime=wn.MAXIMUM_VALUE.clone(),f.currentTime=wn.MINIMUM_VALUE.clone(),f.clockRange=Gx.LOOP_STOP,f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,f.multiplier=1);let x=X0(m.interval);return F(x)&&(f.startTime=x.start,f.stopTime=x.stop),F(m.currentTime)&&(f.currentTime=$t.fromIso8601(m.currentTime)),F(m.range)&&(f.clockRange=Gx[m.range]??Gx.LOOP_STOP),F(m.step)&&(f.clockStep=kd[m.step]??kd.SYSTEM_CLOCK_MULTIPLIER),F(m.multiplier)&&(f.multiplier=m.multiplier),f.equals(o._clock)?!1:(o._clock=f.clone(o._clock),!0)}function omt(o,f,m,x){m=m??si.EMPTY_OBJECT;let y=f,v=m.sourceUri,C=m.credit;if(typeof C=="string"&&(C=new Oa(C)),o._credit=C,typeof f=="string"||f instanceof Mr){f=Mr.createIfNeeded(f),y=f.fetchJson(),v=v??f.clone();let T=o._resourceCredits,S=f.credits;if(F(S)){let w=S.length;for(let E=0;E<w;E++)T.push(S[E])}}return v=Mr.createIfNeeded(v),Sy.setLoading(o,!0),Promise.resolve(y).then(function(T){return uHi(o,T,v,x)}).catch(function(T){return Sy.setLoading(o,!1),o._error.raiseEvent(o,T),console.log(T),Promise.reject(T)})}function uHi(o,f,m,x){Sy.setLoading(o,!0);let y=o._entityCollection;x&&(o._version=void 0,o._documentPacket=new amt,y.removeAll()),sm._processCzml(f,y,m,void 0,o);let v=lHi(o),C=o._documentPacket;return F(C.name)&&o._name!==C.name?(o._name=C.name,v=!0):!F(o._name)&&F(m)&&(o._name=v7(m.getUrlComponent()),v=!0),Sy.setLoading(o,!1),v&&o._changed.raiseEvent(o),o}function amt(){this.name=void 0,this.clock=void 0}function sm(o){this._name=o,this._changed=new Tr,this._error=new Tr,this._isLoading=!1,this._loading=new Tr,this._clock=void 0,this._documentPacket=new amt,this._version=void 0,this._entityCollection=new kS(this),this._entityCluster=new AF,this._credit=void 0,this._resourceCredits=[]}sm.load=function(o,f){return new sm().load(o,f)};Object.defineProperties(sm.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}}});sm.updaters=[BBi,HBi,zBi,YBi,JBi,jBi,QBi,qBi,ABi,MBi,$Bi,eHi,tHi,rHi,nHi,DBi,oHi,VBi,aHi,GBi,sHi,FBi,kBi];sm.registerUpdater=function(o){sm.updaters.includes(o)||sm.updaters.push(o)};sm.unregisterUpdater=function(o){if(sm.updaters.includes(o)){let f=sm.updaters.indexOf(o);sm.updaters.splice(f,1)}};sm.prototype.process=function(o,f){return omt(this,o,f,!1)};sm.prototype.load=function(o,f){return omt(this,o,f,!0)};sm.prototype.update=function(o){return!0};sm.processPacketData=Bi;sm.processPositionPacketData=nmt;sm.processMaterialPacketData=S1;sm._processCzml=function(o,f,m,x,y){if(x=x??sm.updaters,Array.isArray(o))for(let v=0,C=o.length;v<C;++v)o7e(o[v],f,x,m,y);else o7e(o,f,x,m,y)};var qq=sm,Z1e=32,cHi="http://www.opengis.net/kml/2.2",DE="http://www.google.com/kml/ext/2.2",hHi="http://www.w3.org/2000/xmlns/";function dde(o){this._files={},this._promises=[],this._count=0,this._modelCallback=o}var dHi=/^data:image\/([^,;]+)/;dde.prototype.texture=function(o){let f=this,m;if(typeof o=="string"||o instanceof Mr){if(o=Mr.createIfNeeded(o),!o.isDataUri)return o.url;let x=o.url.match(dHi);m=`texture_${++this._count}`,F(x)&&(m+=`.${x[1]}`);let y=o.fetchBlob().then(function(v){f._files[m]=v});return this._promises.push(y),m}if(o instanceof HTMLCanvasElement){m=`texture_${++this._count}.png`;let x=new Promise(y=>{o.toBlob(function(v){f._files[m]=v,y()})});return this._promises.push(x),m}return""};function pHi(o,f){return function(m){o._files[f]=m}}dde.prototype.model=function(o,f){let m=this._modelCallback;if(!F(m))throw new Oi("Encountered a model entity while exporting to KML, but no model callback was supplied.");let x={},y=m(o,f,x);for(let v in x)if(x.hasOwnProperty(v)){let C=Promise.resolve(x[v]);this._promises.push(C),C.then(pHi(this,v))}return y};Object.defineProperties(dde.prototype,{promise:{get:function(){return Promise.all(this._promises)}},files:{get:function(){return this._files}}});function pde(o){this._time=o}pde.prototype.get=function(o,f,m){let x;return F(o)&&(x=F(o.getValue)?o.getValue(this._time,m):o),x??f};pde.prototype.getColor=function(o,f){let m=this.get(o,f);if(F(m))return gZ(m)};pde.prototype.getMaterialType=function(o){if(F(o))return o.getType(this._time)};function BGe(){this._ids={},this._styles={},this._count=0}BGe.prototype.get=function(o){let f=this._ids,m=o.innerHTML;if(F(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};BGe.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 smt(){this._ids={}}smt.prototype.get=function(o){if(!F(o))return this.get(du());let f=this._ids;return F(f[o])?`${o.toString()}-${++f[o]}`:(f[o]=0,o)};function HGe(o){o=o??si.EMPTY_OBJECT;let f=o.entities,m=o.kmz??!1,x=HGe._createState(o),y=f.values.filter(function(w){return!F(w.parent)}),v=x.kmlDoc,C=v.documentElement;C.setAttributeNS(hHi,"xmlns:gx",DE);let T=v.createElement("Document");C.appendChild(T),umt(x,T,y),x.styleCache.save(T);let S=x.externalFileHandler;return S.promise.then(function(){let w=new XMLSerializer().serializeToString(x.kmlDoc);return m?fHi(w,S.files):{kml:w,externalFiles:S.files}})}function fHi(o,f){let m=oa("ThirdParty/Workers/z-worker-pako.js");cPe({workerScripts:{deflate:[m,"./pako_deflate.min.js"],inflate:[m,"./pako_inflate.min.js"]}});let x=new Cot,y=new Yti(x);return y.add("doc.kml",new pti(o)).then(function(){let v=Object.keys(f);return lmt(y,v,f,0)}).then(function(){return y.close()}).then(function(v){return{kmz:v}})}function lmt(o,f,m,x){if(f.length===x)return;let y=f[x];return o.add(y,new Oue(m[y])).then(function(){return lmt(o,f,m,x+1)})}HGe._createState=function(o){let f=o.entities,m=new BGe,x=f.computeAvailability(),y=F(o.time)?o.time:x.start,v=o.defaultAvailability??x,C=o.sampleDuration??60;v.start===wn.MINIMUM_VALUE?v.stop===wn.MAXIMUM_VALUE?v=new js:$t.addSeconds(v.stop,-10*C,v.start):v.stop===wn.MAXIMUM_VALUE&&$t.addSeconds(v.start,10*C,v.stop);let T=new dde(o.modelCallback);return{kmlDoc:document.implementation.createDocument(cHi,"kml"),ellipsoid:o.ellipsoid??yi.default,idManager:new smt,styleCache:m,externalFileHandler:T,time:y,valueGetter:new pde(y),sampleDuration:C,defaultAvailability:new k_([v])}};function umt(o,f,m){let x=o.kmlDoc,y=o.styleCache,v=o.valueGetter,C=o.idManager,T=m.length,S,w,E;for(let L=0;L<T;++L){let I=m[L];S=[],w=[],E=[],mHi(o,I,w,E),xHi(o,I.polyline,w,E),s7e(o,I.rectangle,w,E,S),s7e(o,I.polygon,w,E,S),vHi(o,I,I.model,w,E);let R,P=I.availability;F(P)&&(R=x.createElement("TimeSpan"),$t.equals(P.start,wn.MINIMUM_VALUE)||R.appendChild(Ua(x,"begin",$t.toIso8601(P.start))),$t.equals(P.stop,wn.MAXIMUM_VALUE)||R.appendChild(Ua(x,"end",$t.toIso8601(P.stop))));for(let V=0;V<S.length;++V){let G=S[V];G.setAttribute("id",C.get(I.id)),G.appendChild(Ua(x,"name",I.name)),G.appendChild(Ua(x,"visibility",I.show)),G.appendChild(Ua(x,"description",I.description)),F(R)&&G.appendChild(R),f.appendChild(G)}let A=w.length;if(A>0){let V=x.createElement("Placemark");V.setAttribute("id",C.get(I.id));let G=I.name,D=I.label;if(F(D)){let k=x.createElement("LabelStyle"),U=v.get(D.text);G=F(U)&&U.length>0?U:G;let B=v.getColor(D.fillColor);F(B)&&(k.appendChild(Ua(x,"color",B)),k.appendChild(Ua(x,"colorMode","normal")));let Y=v.get(D.scale);F(Y)&&k.appendChild(Ua(x,"scale",Y)),E.push(k)}V.appendChild(Ua(x,"name",G)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),F(R)&&V.appendChild(R),f.appendChild(V);let N=E.length;if(N>0){let k=x.createElement("Style");for(let U=0;U<N;++U)k.appendChild(E[U]);V.appendChild(Ua(x,"styleUrl",y.get(k)))}if(w.length===1)V.appendChild(w[0]);else if(w.length>1){let k=x.createElement("MultiGeometry");for(let U=0;U<A;++U)k.appendChild(w[U]);V.appendChild(k)}}let M=I._children;if(M.length>0){let V=x.createElement("Folder");V.setAttribute("id",C.get(I.id)),V.appendChild(Ua(x,"name",I.name)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),f.appendChild(V),umt(o,V,M)}}}var xb=new Z,rv=new Gt,TE=new $t;function mHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter,T=f.billboard??f.point;if(!F(T)&&!F(f.path))return;let S=f.position;if(!S.isConstant){cmt(o,f,T,m,x);return}C.get(S,void 0,xb);let w=Ua(y,"coordinates",xZ(xb,v)),E=y.createElement("Point"),L=y.createElement("altitudeMode");L.appendChild(OZ(o,T.heightReference)),E.appendChild(L),E.appendChild(w),m.push(E);let I=T instanceof oV?dmt(o,T):hmt(o,T);x.push(I)}function cmt(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter,S,w=f.position,E=!0;w instanceof i1?(S=w.intervals,E=!1):S=f.availability??o.defaultAvailability;let L=m instanceof x7,I,R,P,A=[];for(I=0;I<S.length;++I){let V=S.get(I),G=E?w:V.data,D=v.createElement("altitudeMode");G instanceof Mz?(G=G._value,D.appendChild(OZ(o,Mn.CLAMP_TO_GROUND))):F(m)?D.appendChild(OZ(o,m.heightReference)):D.appendChild(OZ(o,Mn.NONE));let N=[],k=[];if(G.isConstant){T.get(G,void 0,xb);let B=Ua(v,"coordinates",xZ(xb,C));N.push($t.toIso8601(V.start)),k.push(B),N.push($t.toIso8601(V.stop)),k.push(B)}else if(G instanceof nS)for(P=G._property._times,R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),G.getValueInReferenceFrame(P[R],pp.FIXED,xb),k.push(xZ(xb,C));else if(G instanceof uM){P=G._times;let B=G._values;for(R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),Z.fromArray(B,R*3,xb),k.push(xZ(xb,C))}else{let B=o.sampleDuration;V.start.clone(TE),V.isStartIncluded||$t.addSeconds(TE,B,TE);let Y=V.stop;for(;$t.lessThan(TE,Y);)G.getValue(TE,xb),N.push($t.toIso8601(TE)),k.push(xZ(xb,C)),$t.addSeconds(TE,B,TE);V.isStopIncluded&&$t.equals(TE,Y)&&(G.getValue(TE,xb),N.push($t.toIso8601(TE)),k.push(xZ(xb,C)))}let U=v.createElementNS(DE,"Track");U.appendChild(D);for(let B=0;B<N.length;++B){let Y=Ua(v,"when",N[B]),J=Ua(v,"coord",k[B],DE);U.appendChild(Y),U.appendChild(J)}L&&U.appendChild(pmt(o,m)),A.push(U)}if(A.length===1)x.push(A[0]);else if(A.length>1){let V=v.createElementNS(DE,"MultiTrack");for(I=0;I<A.length;++I)V.appendChild(A[I]);x.push(V)}if(F(m)&&!L){let V=m instanceof oV?dmt(o,m):hmt(o,m);y.push(V)}let M=f.path;if(F(M)){let V=T.get(M.width),G=M.material;if(F(G)||F(V)){let D=v.createElement("LineStyle");F(V)&&D.appendChild(Ua(v,"width",V)),zGe(o,G,D),y.push(D)}}}function hmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=m.createElement("IconStyle"),v=x.getColor(f.color);F(v)&&(y.appendChild(Ua(m,"color",v)),y.appendChild(Ua(m,"colorMode","normal")));let C=x.get(f.pixelSize);return F(C)&&y.appendChild(Ua(m,"scale",C/Z1e)),y}function dmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("IconStyle"),C=x.get(f.image);if(F(C)){C=y.texture(C);let I=m.createElement("Icon");I.appendChild(Ua(m,"href",C));let R=x.get(f.imageSubRegion);F(R)&&(I.appendChild(Ua(m,"x",R.x,DE)),I.appendChild(Ua(m,"y",R.y,DE)),I.appendChild(Ua(m,"w",R.width,DE)),I.appendChild(Ua(m,"h",R.height,DE))),v.appendChild(I)}let T=x.getColor(f.color);F(T)&&(v.appendChild(Ua(m,"color",T)),v.appendChild(Ua(m,"colorMode","normal")));let S=x.get(f.scale);F(S)&&v.appendChild(Ua(m,"scale",S));let w=x.get(f.pixelOffset);if(F(w)){S=S??1,rt.divideByScalar(w,S,w);let I=x.get(f.width,Z1e),R=x.get(f.height,Z1e),P=x.get(f.horizontalOrigin,ec.CENTER);P===ec.CENTER?w.x-=I*.5:P===ec.RIGHT&&(w.x-=I);let A=x.get(f.verticalOrigin,jn.CENTER);A===jn.TOP?w.y+=R:A===jn.CENTER&&(w.y+=R*.5);let M=m.createElement("hotSpot");M.setAttribute("x",-w.x),M.setAttribute("y",w.y),M.setAttribute("xunits","pixels"),M.setAttribute("yunits","pixels"),v.appendChild(M)}let E=x.get(f.rotation),L=x.get(f.alignedAxis);return F(E)&&Z.equals(Z.UNIT_Z,L)&&(E=be.toDegrees(-E),E===0&&(E=360),v.appendChild(Ua(m,"heading",E))),v}function xHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter;if(!F(f))return;let T=y.createElement("LineString"),S=y.createElement("altitudeMode"),w=C.get(f.clampToGround,!1),E;w?(T.appendChild(Ua(y,"tessellate",!0)),E=y.createTextNode("clampToGround")):E=y.createTextNode("absolute"),S.appendChild(E),T.appendChild(S);let L=f.positions,I=C.get(L),R=Ua(y,"coordinates",xZ(I,v));T.appendChild(R);let P=C.get(f.zIndex);w&&F(P)&&T.appendChild(Ua(y,"drawOrder",P,DE)),m.push(T);let A=y.createElement("LineStyle"),M=C.get(f.width);F(M)&&A.appendChild(Ua(y,"width",M)),zGe(o,f.material,A),x.push(A)}function gHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0);m>0&&(v=m);let C=f.coordinates,T=y.get(C),S=[],w=[vi.northeast,vi.southeast,vi.southwest,vi.northwest];for(let R=0;R<4;++R)w[R](T,rv),S.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${v}`);let E=Ua(x,"coordinates",S.join(" ")),L=x.createElement("outerBoundaryIs"),I=x.createElement("LinearRing");return I.appendChild(E),L.appendChild(I),[L]}function a7e(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=[],T=f.length;for(let E=0;E<T;++E)Gt.fromCartesian(f[E],v,rv),C.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${x?rv.height:m}`);let S=Ua(y,"coordinates",C.join(" ")),w=y.createElement("LinearRing");return w.appendChild(S),w}function yHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0),C=y.get(f.perPositionHeight,!1);!C&&m>0&&(v=m);let T=[],S=f.hierarchy,w=y.get(S),E=Array.isArray(w)?w:w.positions,L=x.createElement("outerBoundaryIs");L.appendChild(a7e(o,E,v,C)),T.push(L);let I=w.holes;if(F(I)){let R=I.length;for(let P=0;P<R;++P){let A=x.createElement("innerBoundaryIs");A.appendChild(a7e(o,I[P].positions,v,C)),T.push(A)}}return T}function s7e(o,f,m,x,y){let v=o.kmlDoc,C=o.valueGetter;if(!F(f))return;let T=f instanceof Pz;if(T&&C.getMaterialType(f.material)==="Image"){_Hi(o,f,y);return}let S=v.createElement("Polygon"),w=C.get(f.extrudedHeight,0);w>0&&S.appendChild(Ua(v,"extrude",!0));let E=T?gHi(o,f,w):yHi(o,f,w),L=E.length;for(let M=0;M<L;++M)S.appendChild(E[M]);let I=v.createElement("altitudeMode");I.appendChild(OZ(o,f.heightReference)),S.appendChild(I),m.push(S);let R=v.createElement("PolyStyle"),P=C.get(f.fill,!1);P&&R.appendChild(Ua(v,"fill",P)),zGe(o,f.material,R);let A=C.get(f.outline,!1);if(A){R.appendChild(Ua(v,"outline",A));let M=v.createElement("LineStyle"),V=C.get(f.outlineWidth,1);M.appendChild(Ua(v,"width",V));let G=C.getColor(f.outlineColor,Xe.BLACK);M.appendChild(Ua(v,"color",G)),M.appendChild(Ua(v,"colorMode","normal")),x.push(M)}x.push(R)}function _Hi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=o.externalFileHandler,C=x.createElement("GroundOverlay"),T=x.createElement("altitudeMode");T.appendChild(OZ(o,f.heightReference)),C.appendChild(T);let S=y.get(f.height);F(S)&&C.appendChild(Ua(x,"altitude",S));let w=y.get(f.coordinates),E=x.createElement("LatLonBox");E.appendChild(Ua(x,"north",be.toDegrees(w.north))),E.appendChild(Ua(x,"south",be.toDegrees(w.south))),E.appendChild(Ua(x,"east",be.toDegrees(w.east))),E.appendChild(Ua(x,"west",be.toDegrees(w.west))),C.appendChild(E);let L=y.get(f.material),I=v.texture(L.image),R=x.createElement("Icon");R.appendChild(Ua(x,"href",I)),C.appendChild(R);let P=L.color;F(P)&&C.appendChild(Ua(x,"color",gZ(L.color))),m.push(C)}function pmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("Model"),C=x.get(f.scale);if(F(C)){let w=m.createElement("scale");w.appendChild(Ua(m,"x",C)),w.appendChild(Ua(m,"y",C)),w.appendChild(Ua(m,"z",C)),v.appendChild(w)}let T=m.createElement("Link"),S=y.model(f,o.time);return T.appendChild(Ua(m,"href",S)),v.appendChild(T),v}function vHi(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter;if(!F(m))return;let S=f.position;if(!S.isConstant){cmt(o,f,m,x,y);return}let w=pmt(o,m),E=v.createElement("altitudeMode");E.appendChild(OZ(o,m.heightReference)),w.appendChild(E),T.get(S,void 0,xb),Gt.fromCartesian(xb,C,rv);let L=v.createElement("Location");L.appendChild(Ua(v,"longitude",be.toDegrees(rv.longitude))),L.appendChild(Ua(v,"latitude",be.toDegrees(rv.latitude))),L.appendChild(Ua(v,"altitude",rv.height)),w.appendChild(L),x.push(w)}function zGe(o,f,m){let x=o.kmlDoc,y=o.valueGetter;if(!F(f))return;let v=y.get(f);if(!F(v))return;let C,T=y.getMaterialType(f),S,w;switch(T){case"Image":C=gZ(Xe.WHITE);break;case"Color":case"Grid":case"PolylineGlow":case"PolylineArrow":case"PolylineDash":C=gZ(v.color);break;case"PolylineOutline":C=gZ(v.color),S=gZ(v.outlineColor),w=v.outlineWidth,m.appendChild(Ua(x,"outerColor",S,DE)),m.appendChild(Ua(x,"outerWidth",w,DE));break;case"Stripe":C=gZ(v.oddColor);break}F(C)&&(m.appendChild(Ua(x,"color",C)),m.appendChild(Ua(x,"colorMode","normal")))}function OZ(o,f){let m=o.kmlDoc,x=o.valueGetter.get(f,Mn.NONE),y;switch(x){case Mn.NONE:y=m.createTextNode("absolute");break;case Mn.CLAMP_TO_GROUND:y=m.createTextNode("clampToGround");break;case Mn.RELATIVE_TO_GROUND:y=m.createTextNode("relativeToGround");break}return y}function xZ(o,f){Array.isArray(o)||(o=[o]);let m=o.length,x=[];for(let y=0;y<m;++y)Gt.fromCartesian(o[y],f,rv),x.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${rv.height}`);return x.join(" ")}function Ua(o,f,m,x){m=m??"",typeof m=="boolean"&&(m=m?"1":"0");let y=F(x)?o.createElementNS(x,f):o.createElement(f),v=m==="string"&&m.indexOf("<")!==-1?o.createCDATASection(m):o.createTextNode(m);return y.appendChild(v),y}function gZ(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 fmt=HGe,mmt;typeof DOMParser<"u"&&(mmt=new DOMParser);var bHi=new Unt({stripPrefix:!1,email:!1,replaceFn:function(o,f){return f.urlMatchType==="scheme"||f.urlMatchType==="www"}}),ule=32,l7e=2414016,u7e=1,c7e=16093e3,h7e=.1,CHi=[null,void 0,"http://www.topografix.com/GPX/1/1"],sd={gpx:CHi};function THi(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 YGe(o,f){let m=P6(o,"id");return m=F(m)?m:du(),f.getOrCreateEntity(m)}function KGe(o){let f=d7e(o,"lon"),m=d7e(o,"lat"),x=bj(o,"ele",sd.gpx);return Z.fromDegrees(f,m,x)}function d7e(o,f){if(!F(o))return;let m=o.getAttribute(f);if(m!==null){let x=parseFloat(m);return isNaN(x)?void 0:x}}function P6(o,f){if(!F(o))return;let m=o.getAttribute(f);return m!==null?m:void 0}function iD(o,f,m){if(!F(o))return;let x=o.childNodes,y=x.length;for(let v=0;v<y;v++){let C=x[v];if(C.localName===f&&m.indexOf(C.namespaceURI)!==-1)return C}}function JGe(o,f,m){if(!F(o))return;let x=[],y=o.getElementsByTagName(f),v=y.length;for(let C=0;C<v;C++){let T=y[C];T.localName===f&&m.indexOf(T.namespaceURI)!==-1&&x.push(T)}return x}function bj(o,f,m){let x=iD(o,f,m);if(F(x)){let y=parseFloat(x.textContent);return isNaN(y)?void 0:y}}function Ib(o,f,m){let x=iD(o,f,m);if(F(x))return x.textContent.trim()}function xmt(o){let f=new oV;return f.width=ule,f.height=ule,f.scaleByDistance=new ea(l7e,u7e,c7e,h7e),f.pixelOffsetScaleByDistance=new ea(l7e,u7e,c7e,h7e),f.verticalOrigin=new Qc(jn.BOTTOM),f.image=o,f}function SHi(){let o=new Lz;return o.translucencyByDistance=new ea(3e6,1,5e6,0),o.pixelOffset=new rt(17,0),o.horizontalOrigin=ec.LEFT,o.font="16px sans-serif",o.style=f0.FILL_AND_OUTLINE,o}function gmt(o){let f=new bI;return f.width=4,f.material=new KM,f.material.color=F(o)?o:Xe.RED,f.material.outlineWidth=2,f.material.outlineColor=Xe.BLACK,f}var p7e={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"}},Cj;typeof document<"u"&&(Cj=document.createElement("div"));function jGe(o,f){let m,x="",y=Object.keys(p7e),v=y.length;for(m=0;m<v;m++){let E=y[m],L=p7e[E];L.value=Ib(o,L.tag,sd.gpx)??"",F(L.value)&&L.value!==""&&(x=`${x}<p>${L.text}: ${L.value}</p>`)}if(!F(x)||x==="")return;x=bHi.link(x),Cj.innerHTML=x;let C=Cj.querySelectorAll("a");for(m=0;m<C.length;m++)C[m].setAttribute("target","_blank");let T=Xe.WHITE,S=Xe.BLACK,w='<div class="cesium-infoBox-description-lighter" style="';return w+="overflow:auto;",w+="word-wrap:break-word;",w+=`background-color:${T.toCssColorString()};`,w+=`color:${S.toCssColorString()};`,w+='">',w+=`${Cj.innerHTML}</div>`,Cj.innerHTML="",w}function ymt(o,f,m,x){let y=KGe(f),v=YGe(f,m);v.position=y;let C=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,ule);v.billboard=xmt(C);let T=Ib(f,"name",sd.gpx);v.name=T,v.label=SHi(),v.label.text=T,v.description=jGe(f,v),x.clampToGround&&(v.billboard.heightReference=Mn.CLAMP_TO_GROUND,v.label.heightReference=Mn.CLAMP_TO_GROUND)}function wHi(o,f,m,x){let y=YGe(f,m);y.description=jGe(f,y);let v=JGe(f,"rtept",sd.gpx),C=new Array(v.length);for(let T=0;T<v.length;T++)ymt(o,v[T],m,x),C[T]=KGe(v[T]);y.polyline=gmt(x.routeColor),x.clampToGround&&(y.polyline.clampToGround=!0),y.polyline.positions=C}function EHi(o,f,m,x){let y=YGe(f,m);y.description=jGe(f,y);let v=JGe(f,"trkseg",sd.gpx),C=[],T=[],S,w=!0,E=new nS;for(let L=0;L<v.length;L++)S=LHi(v[L]),C=C.concat(S.positions),S.times.length>0?(T=T.concat(S.times),E.addSamples(T,C),w=w&&!0):w=!1;if(w){let L=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,ule);y.billboard=xmt(L),y.position=E,x.clampToGround&&(y.billboard.heightReference=Mn.CLAMP_TO_GROUND),y.availability=new k_,y.availability.addInterval(new js({start:T[0],stop:T[T.length-1]}))}y.polyline=gmt(x.trackColor),y.polyline.positions=C,x.clampToGround&&(y.polyline.clampToGround=!0)}function LHi(o){let f={positions:[],times:[]},m=JGe(o,"trkpt",sd.gpx),x;for(let y=0;y<m.length;y++){let v=KGe(m[y]);f.positions.push(v),x=Ib(m[y],"time",sd.gpx),F(x)&&f.times.push($t.fromIso8601(x))}return f}function PHi(o){let f=iD(o,"metadata",sd.gpx);if(F(f)){let m={name:Ib(f,"name",sd.gpx),desc:Ib(f,"desc",sd.gpx),author:IHi(f),copyright:AHi(f),link:_mt(f),time:Ib(f,"time",sd.gpx),keywords:Ib(f,"keywords",sd.gpx),bounds:MHi(f)};if(F(m.name)||F(m.desc)||F(m.author)||F(m.copyright)||F(m.link)||F(m.time)||F(m.keywords)||F(m.bounds))return m}}function IHi(o){let f=iD(o,"author",sd.gpx);if(F(f)){let m={name:Ib(f,"name",sd.gpx),email:RHi(f),link:_mt(f)};if(F(m.name)||F(m.email)||F(m.link))return m}}function RHi(o){let f=iD(o,"email",sd.gpx);if(F(f)){let m=Ib(f,"id",sd.gpx),x=Ib(f,"domain",sd.gpx);return`${m}@${x}`}}function _mt(o){let f=iD(o,"link",sd.gpx);if(F(f)){let m={href:P6(f,"href"),text:Ib(f,"text",sd.gpx),mimeType:Ib(f,"type",sd.gpx)};if(F(m.href)||F(m.text)||F(m.mimeType))return m}}function AHi(o){let f=iD(o,"copyright",sd.gpx);if(F(f)){let m={author:P6(f,"author"),year:Ib(f,"year",sd.gpx),license:Ib(f,"license",sd.gpx)};if(F(m.author)||F(m.year)||F(m.license))return m}}function MHi(o){let f=iD(o,"bounds",sd.gpx);if(F(f)){let m={minLat:bj(f,"minlat",sd.gpx),maxLat:bj(f,"maxlat",sd.gpx),minLon:bj(f,"minlon",sd.gpx),maxLon:bj(f,"maxlon",sd.gpx)};if(F(m.minLat)||F(m.maxLat)||F(m.minLon)||F(m.maxLon))return m}}var f7e={wpt:ymt,rte:wHi,trk:EHi};function VHi(o,f,m,x){let y=Object.keys(f7e),v=y.length;for(let C=0;C<v;C++){let T=y[C],S=f7e[T],w=f.childNodes,E=w.length;for(let L=0;L<E;L++){let I=w[L];I.localName===T&&sd.gpx.indexOf(I.namespaceURI)!==-1&&S(o,I,m,x)}}}function m7e(o,f,m){let x=o._entityCollection;x.removeAll();let y=f.documentElement,v=P6(y,"version"),C=P6(y,"creator"),T,S=PHi(y);F(S)&&(T=S.name),y.localName==="gpx"?VHi(o,y,x,m):console.log(`GPX - Unsupported node: ${y.localName}`);let w,E=x.computeAvailability(),L=E.start,I=E.stop,R=$t.equals(L,wn.MINIMUM_VALUE),P=$t.equals(I,wn.MAXIMUM_VALUE);if(!R||!P){let M;R&&(M=new Date,M.setHours(0,0,0,0),L=$t.fromDate(M)),P&&(M=new Date,M.setHours(24,0,0,0),I=$t.fromDate(M)),w=new r9,w.startTime=L,w.stopTime=I,w.currentTime=$t.clone(L),w.clockRange=Gx.LOOP_STOP,w.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,w.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(I,L)/60,1),31556900))}let A=!1;return o._name!==T&&(o._name=T,A=!0),o._creator!==C&&(o._creator=C,A=!0),GHi(o._metadata,S)&&(o._metadata=S,A=!0),o._version!==v&&(o._version=v,A=!0),w!==o._clock&&(A=!0,o._clock=w),A&&o._changed.raiseEvent(o),Sy.setLoading(o,!1),o}function GHi(o,f){return!F(o)&&!F(f)?!1:F(o)&&F(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 FHi(o,f,m,x){x=x??si.EMPTY_OBJECT;let y=m;if(typeof m=="string"||m instanceof Mr){m=Mr.createIfNeeded(m),y=m.fetchBlob();let v=o._resourceCredits,C=m.credits;if(F(C)){let T=C.length;for(let S=0;S<T;S++)v.push(C[S])}}return Promise.resolve(y).then(function(v){return v instanceof Blob?THi(v).then(function(C){let T,S;try{T=mmt.parseFromString(C,"application/xml")}catch(w){S=w.toString()}if(F(S)||T.body||T.documentElement.tagName==="parsererror"){let w=F(S)?S:T.documentElement.firstChild.nodeValue;throw w||(w=T.body.innerText),new Oi(w)}return m7e(o,T,x)}):m7e(o,v,x)}).catch(function(v){return o._error.raiseEvent(o,v),console.log(v),Promise.reject(v)})}function JH(){this._changed=new Tr,this._error=new Tr,this._loading=new Tr,this._clock=void 0,this._entityCollection=new kS(this),this._entityCluster=new AF,this._name=void 0,this._version=void 0,this._creator=void 0,this._metadata=void 0,this._isLoading=!1,this._pinBuilder=new b7}JH.load=function(o,f){return new JH().load(o,f)};Object.defineProperties(JH.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}}});JH.prototype.update=function(o){return!0};JH.prototype.load=function(o,f){if(!F(o))throw new wt("data is required.");f=f??si.EMPTY_OBJECT,Sy.setLoading(this,!0);let m=this._name,x=this;return FHi(this,this._entityCollection,o,f).then(function(){let y,v=x._entityCollection.computeAvailability(),C=v.start,T=v.stop,S=$t.equals(C,wn.MINIMUM_VALUE),w=$t.equals(T,wn.MAXIMUM_VALUE);if(!S||!w){let L;S&&(L=new Date,L.setHours(0,0,0,0),C=$t.fromDate(L)),w&&(L=new Date,L.setHours(24,0,0,0),T=$t.fromDate(L)),y=new r9,y.startTime=C,y.stopTime=T,y.currentTime=$t.clone(C),y.clockRange=Gx.LOOP_STOP,y.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,y.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(T,C)/60,1),31556900))}let E=!1;return y!==x._clock&&(x._clock=y,E=!0),m!==x._name&&(E=!0),E&&x._changed.raiseEvent(x),Sy.setLoading(x,!1),x}).catch(function(y){return Sy.setLoading(x,!1),x._error.raiseEvent(x,y),console.log(y),Promise.reject(y)})};var QGe=JH;function $q(){wt.throwInstantiationError()}$q.prototype.update=wt.throwInstantiationError;$q.prototype.getBoundingSphere=wt.throwInstantiationError;$q.prototype.isDestroyed=wt.throwInstantiationError;$q.prototype.destroy=wt.throwInstantiationError;var vmt=$q;function F4(o,f){this._tilingScheme=o,this._maximumLevel=f,this._rootNodes=[]}var lZ=new vi;function DHi(o,f,m,x){let y=x.length;for(let v=0;v<y;++v){let C=x[v];if(C.x===f&&C.y===m&&C.level===o)return!0}return!1}F4.prototype.addAvailableTileRange=function(o,f,m,x,y){let v=this._tilingScheme,C=this._rootNodes;if(o===0)for(let I=m;I<=y;++I)for(let R=f;R<=x;++R)DHi(o,R,I,C)||C.push(new tB(v,void 0,0,R,I));v.tileXYToRectangle(f,m,o,lZ);let T=lZ.west,S=lZ.north;v.tileXYToRectangle(x,y,o,lZ);let w=lZ.east,E=lZ.south,L=new XHi(o,T,E,w,S);for(let I=0;I<C.length;++I){let R=C[I];qGe(R.extent,L)&&kHi(this._maximumLevel,R,L)}};F4.prototype.computeMaximumLevelAtPosition=function(o){let f;for(let m=0;m<this._rootNodes.length;++m){let x=this._rootNodes[m];if(iB(x.extent,o)){f=x;break}}return F(f)?Tj(void 0,f,o):-1};var NHi=[],WHi=[],ZHi=new vi,OHi=new vi;F4.prototype.computeBestAvailableLevelOverRectangle=function(o){let f=NHi;f.length=0,o.east<o.west?(f.push(vi.fromRadians(-Math.PI,o.south,o.east,o.north,ZHi)),f.push(vi.fromRadians(o.west,o.south,Math.PI,o.north,OHi))):f.push(o);let m=WHi;m.length=0;let x;for(x=0;x<this._rootNodes.length;++x)Sj(m,this._rootNodes[x],f);for(x=m.length-1;x>=0;--x)if(F(m[x])&&m[x].length===0)return x;return 0};var x7e=new Gt;F4.prototype.isTileAvailable=function(o,f,m){let x=this._tilingScheme.tileXYToRectangle(f,m,o,lZ);return vi.center(x,x7e),this.computeMaximumLevelAtPosition(x7e)>=o};F4.prototype.computeChildMaskForTile=function(o,f,m){let x=o+1;if(x>=this._maximumLevel)return 0;let y=0;return y|=this.isTileAvailable(x,2*f,2*m+1)?1:0,y|=this.isTileAvailable(x,2*f+1,2*m+1)?2:0,y|=this.isTileAvailable(x,2*f,2*m)?4:0,y|=this.isTileAvailable(x,2*f+1,2*m)?8:0,y};function tB(o,f,m,x,y){this.tilingScheme=o,this.parent=f,this.level=m,this.x=x,this.y=y,this.extent=o.tileXYToRectangle(x,y,m),this.rectangles=[],this._sw=void 0,this._se=void 0,this._nw=void 0,this._ne=void 0}Object.defineProperties(tB.prototype,{nw:{get:function(){return this._nw||(this._nw=new tB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2)),this._nw}},ne:{get:function(){return this._ne||(this._ne=new tB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2)),this._ne}},sw:{get:function(){return this._sw||(this._sw=new tB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2+1)),this._sw}},se:{get:function(){return this._se||(this._se=new tB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2+1)),this._se}}});function XHi(o,f,m,x,y){this.level=o,this.west=f,this.south=m,this.east=x,this.north=y}function qGe(o,f){let m=Math.max(o.west,f.west),x=Math.max(o.south,f.south),y=Math.min(o.east,f.east),v=Math.min(o.north,f.north);return x<v&&m<y}function kHi(o,f,m){for(;f.level<o;)if(coe(f.nw.extent,m))f=f.nw;else if(coe(f.ne.extent,m))f=f.ne;else if(coe(f.sw.extent,m))f=f.sw;else if(coe(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=Nx(f.rectangles,m.level,UHi);x<0&&(x=~x),f.rectangles.splice(x,0,m)}}function UHi(o,f){return o.level-f}function coe(o,f){return f.west>=o.west&&f.east<=o.east&&f.south>=o.south&&f.north<=o.north}function iB(o,f){return f.longitude>=o.west&&f.longitude<=o.east&&f.latitude>=o.south&&f.latitude<=o.north}function Tj(o,f,m){let x=0,y=!1;for(;!y;){let v=f._nw&&iB(f._nw.extent,m),C=f._ne&&iB(f._ne.extent,m),T=f._sw&&iB(f._sw.extent,m),S=f._se&&iB(f._se.extent,m);if(v+C+T+S>1){v&&(x=Math.max(x,Tj(f,f._nw,m))),C&&(x=Math.max(x,Tj(f,f._ne,m))),T&&(x=Math.max(x,Tj(f,f._sw,m))),S&&(x=Math.max(x,Tj(f,f._se,m)));break}else v?f=f._nw:C?f=f._ne:T?f=f._sw:S?f=f._se:y=!0}for(;f!==o;){let v=f.rectangles;for(let C=v.length-1;C>=0&&v[C].level>x;--C){let T=v[C];iB(T,m)&&(x=T.level)}f=f.parent}return x}function Sj(o,f,m){if(!f)return;let x,y=!1;for(x=0;x<m.length;++x)y=y||qGe(f.extent,m[x]);if(!y)return;let v=f.rectangles;for(x=0;x<v.length;++x){let C=v[x];o[C.level]||(o[C.level]=m),o[C.level]=BHi(o[C.level],C)}Sj(o,f._nw,m),Sj(o,f._ne,m),Sj(o,f._sw,m),Sj(o,f._se,m)}function BHi(o,f){let m=[];for(let x=0;x<o.length;++x){let y=o[x];qGe(y,f)?(y.west<f.west&&m.push(new vi(y.west,y.south,f.west,y.north)),y.east>f.east&&m.push(new vi(f.east,y.south,y.east,y.north)),y.south<f.south&&m.push(new vi(Math.max(f.west,y.west),y.south,Math.min(f.east,y.east),f.south)),y.north>f.north&&m.push(new vi(Math.max(f.west,y.west),f.north,Math.min(f.east,y.east),y.north))):m.push(y)}return m}var kG=F4,HHi=15;function bmt(o){this.ellipsoid=o.ellipsoid??yi.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}bmt.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 zHi(o,f){let m=f.copyrightText;F(m)&&(o.credit=new Oa(m));let x=f.spatialReference,y=x.latestWkid??x.wkid,v=f.extent,C={ellipsoid:o.ellipsoid};if(y===4326||y===4490)C.rectangle=vi.fromDegrees(v.xmin,v.ymin,v.xmax,v.ymax),o.tilingScheme=new _h(C);else if(y===3857){let S=Math.PI*o.ellipsoid.maximumRadius;f.extent.xmax>S&&(f.extent.xmax=S),f.extent.ymax>S&&(f.extent.ymax=S),f.extent.xmin<-S&&(f.extent.xmin=-S),f.extent.ymin<-S&&(f.extent.ymin=-S),C.rectangleSouthwestInMeters=new rt(v.xmin,v.ymin),C.rectangleNortheastInMeters=new rt(v.xmax,v.ymax),o.tilingScheme=new xp(C)}else throw new Oi("Invalid spatial reference");let T=f.tileInfo;if(!F(T))throw new Oi("tileInfo is required");o.width=T.rows+1,o.height=T.cols+1,o.encoding=T.format==="LERC"?dF.LERC:dF.NONE,o.lodCount=T.lods.length-1,(o.hasAvailability=f.capabilities.indexOf("Tilemap")!==-1)&&(o.tilesAvailable=new kG(o.tilingScheme,o.lodCount),o.tilesAvailable.addAvailableTileRange(0,0,0,o.tilingScheme.getNumberOfXTilesAtLevel(0),o.tilingScheme.getNumberOfYTilesAtLevel(0)),o.tilesAvailabilityLoaded=new kG(o.tilingScheme,o.lodCount)),o.levelZeroMaximumGeometricError=H_.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."),F(f.minValues)&&F(f.maxValues)?o.terrainDataStructure={elementMultiplier:1,lowestEncodedHeight:f.minValues[0],highestEncodedHeight:f.maxValues[0]}:o.terrainDataStructure={elementMultiplier:1}}async function YHi(o,f,m){try{let x=await f.fetchJson();zHi(o,x)}catch(x){let y=`An error occurred while accessing ${f}.`;throw am.reportError(void 0,m,F(m)?m._errorEvent:void 0,y),x}}function yF(o){o=o??si.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 Tr}Object.defineProperties(yF.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}}});yF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash(),F(f.token)&&(m=m.getDerivedResource({queryParameters:{token:f.token}}));let x=m.getDerivedResource({queryParameters:{f:"pjson"}}),y=new bmt(f);await YHi(y,x);let v=new yF(f);return y.build(v),v._resource=m,v};yF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._resource.getDerivedResource({url:`tile/${m}/${f}/${o}`,request:x}),v=this._hasAvailability,C=Promise.resolve(!0),T;if(v&&!F($Ge(this,m+1,o*2,f*2))){let L=Cmt(this,m+1,o*2,f*2);C=L.promise,T=L.request}let S=y.fetchArrayBuffer();if(!F(S)||!F(C))return;let w=this,E=this._tilesAvailable;return Promise.all([S,C]).then(function(L){return new yL({buffer:L[0],width:w._width,height:w._height,childTileMask:v?E.computeChildMaskForTile(m,o,f):HHi,structure:w._terrainDataStructure,encoding:w._encoding})}).catch(async function(L){if(F(T)&&T.state===pc.CANCELLED){x.cancel();try{await x.deferred?.promise}catch{}return x.state=pc.CANCELLED,Promise.reject(L)}return Promise.reject(L)})};function $Ge(o,f,m,x){if(!o._hasAvailability)return;let y=o._tilesAvailabilityLoaded,v=o._tilesAvailable;if(f>o._lodCount)return!1;if(v.isTileAvailable(f,m,x))return!0;if(y.isTileAvailable(f,m,x))return!1}yF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};yF.prototype.getTileDataAvailable=function(o,f,m){if(!this._hasAvailability)return;let x=$Ge(this,m,o,f);if(F(x))return x;Cmt(this,m,o,f)};yF.prototype.loadTileDataAvailability=function(o,f,m){};function KHi(o,f,m,x){let y=f-1,v=m-1,C=x[o.y*f+o.x],T=[],S={startX:o.x,startY:o.y,endX:0,endY:0},w=new rt(o.x+1,o.y+1),E=!1,L=!1;for(;!(E&&L);){let I=w.x,R=L?w.y+1:w.y;if(!E){for(let P=o.y;P<R;++P)if(x[P*f+w.x]!==C){E=!0;break}E?(T.push(new rt(w.x,o.y)),--w.x,--I,S.endX=w.x):w.x===y?(S.endX=w.x,E=!0):++w.x}if(!L){let P=w.y*f;for(let A=o.x;A<=I;++A)if(x[P+A]!==C){L=!0;break}L?(T.push(new rt(o.x,w.y)),--w.y,S.endY=w.y):w.y===v?(S.endY=w.y,L=!0):++w.y}}return{endingIndices:T,range:S,value:C}}function JHi(o,f,m,x,y){let v=[];if(y.every(function(T){return T===y[0]}))return y[0]===1&&v.push({startX:o,startY:f,endX:o+m-1,endY:f+x-1}),v;let C=[new rt(0,0)];for(;C.length>0;){let T=C.pop(),S=KHi(T,m,x,y);if(S.value===1){let E=S.range;E.startX+=o,E.endX+=o,E.startY+=f,E.endY+=f,v.push(E)}let w=S.endingIndices;w.length>0&&(C=C.concat(w))}return v}function Cmt(o,f,m,x){if(!o._hasAvailability)return{};let y=Math.floor(m/128)*128,v=Math.floor(x/128)*128,C=Math.min(1<<f,128),T=`tilemap/${f}/${v}/${y}/${C}/${C}`,S=o._availableCache;if(F(S[T]))return S[T];let w=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN}),E=o._resource.getDerivedResource({url:T,request:w}).fetchJson();return F(E)?(E=E.then(function(L){let I=JHi(y,v,C,C,L.data);o._tilesAvailabilityLoaded.addAvailableTileRange(f,y,v,y+C,v+C);let R=o._tilesAvailable;for(let P=0;P<I.length;++P){let A=I[P];R.addAvailableTileRange(f,A.startX,A.startY,A.endX,A.endY)}return $Ge(o,f,m,x)}),S[T]={promise:E,request:w},E=E.finally(function(L){return delete S[T],L}),{promise:E,request:w}):{}}var fde=yF,Tmt="https://dev.virtualearth.net/REST/v1/Locations";function eFe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._key=f;let m={key:f};F(o.culture)&&(m.culture=o.culture),this._resource=new Mr({url:Tmt,queryParameters:m}),this._credit=new Oa('<img src="http://dev.virtualearth.net/Branding/logo_powered_by.png"/>',!1)}Object.defineProperties(eFe.prototype,{url:{get:function(){return Tmt}},key:{get:function(){return this._key}},credit:{get:function(){return this._credit}}});eFe.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,y=x[0],v=x[1],C=x[2],T=x[3];return{displayName:m.name,destination:vi.fromDegrees(v,y,T,C)}})})};var Smt=eFe;function tFe(){}Object.defineProperties(tFe.prototype,{credit:{get:function(){}}});tFe.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],y=f.length===3?+f[2]:300;if(isNaN(m)&&isNaN(x)){let v=/^(\d+.?\d*)([nsew])/i;for(let C=0;C<f.length;++C){let T=f[C].match(v);v.test(f[C])&&T.length===3&&(/^[ns]/i.test(T[2])?x=/^[n]/i.test(T[2])?+T[1]:-T[1]:/^[ew]/i.test(T[2])&&(m=/^[e]/i.test(T[2])?+T[1]:-T[1]))}}if(!isNaN(m)&&!isNaN(x)&&!isNaN(y)){let v={displayName:o,destination:Z.fromDegrees(m,x,y)};return Promise.resolve([v])}}return Promise.resolve([])};var wmt=tFe,jHi=new zt,g7e=new Z,HU=new Z;function QHi(o){let f=o.points,m=o.times;if(f.length<3){let x=m[0],y=1/(m[1]-x),v=f[0],C=f[1];return function(T,S){F(S)||(S=new Z);let w=(T-x)*y;return Z.lerp(v,C,w,S)}}return function(x,y){F(y)||(y=new Z);let v=o._lastTimeIndex=o.findTimeInterval(x,o._lastTimeIndex),C=(x-m[v])/(m[v+1]-m[v]),T=jHi;T.z=C,T.y=C*C,T.x=T.y*C,T.w=1;let S,w,E,L,I;return v===0?(S=f[0],w=f[1],E=o.firstTangent,L=Z.subtract(f[2],S,g7e),Z.multiplyByScalar(L,.5,L),I=Ee.multiplyByVector(p6.hermiteCoefficientMatrix,T,T)):v===f.length-2?(S=f[v],w=f[v+1],L=o.lastTangent,E=Z.subtract(w,f[v-1],g7e),Z.multiplyByScalar(E,.5,E),I=Ee.multiplyByVector(p6.hermiteCoefficientMatrix,T,T)):(S=f[v-1],w=f[v],E=f[v+1],L=f[v+2],I=Ee.multiplyByVector(rD.catmullRomCoefficientMatrix,T,T)),y=Z.multiplyByScalar(S,I.x,y),Z.multiplyByScalar(w,I.y,HU),Z.add(y,HU,y),Z.multiplyByScalar(E,I.z,HU),Z.add(y,HU,y),Z.multiplyByScalar(L,I.w,HU),Z.add(y,HU,y)}}var qHi=new Z,$Hi=new Z;function rD(o){o=o??si.EMPTY_OBJECT;let f=o.points,m=o.times,x=o.firstTangent,y=o.lastTangent;if(f.length>2&&(F(x)||(x=qHi,Z.multiplyByScalar(f[1],2,x),Z.subtract(x,f[2],x),Z.subtract(x,f[0],x),Z.multiplyByScalar(x,.5,x)),!F(y))){let v=f.length-1;y=$Hi,Z.multiplyByScalar(f[v-1],2,y),Z.subtract(f[v],y,y),Z.add(y,f[v-2],y),Z.multiplyByScalar(y,.5,y)}this._times=m,this._points=f,this._firstTangent=Z.clone(x),this._lastTangent=Z.clone(y),this._evaluateFunction=QHi(this),this._lastTimeIndex=0}Object.defineProperties(rD.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}}});rD.catmullRomCoefficientMatrix=new Ee(-.5,1,-.5,0,1.5,-2.5,0,1,-1.5,2,.5,0,.5,-.5,0,0);rD.prototype.findTimeInterval=B0.prototype.findTimeInterval;rD.prototype.wrapTime=B0.prototype.wrapTime;rD.prototype.clampTime=B0.prototype.clampTime;rD.prototype.evaluate=function(o,f){return this._evaluateFunction(o,f)};var Emt=rD,mde={};mde.clipTriangleAtAxisAlignedThreshold=function(o,f,m,x,y,v){F(v)?v.length=0:v=[];let C,T,S;f?(C=m<o,T=x<o,S=y<o):(C=m>o,T=x>o,S=y>o);let w=C+T+S,E,L,I,R,P,A;return w===1?C?(E=(o-m)/(x-m),L=(o-m)/(y-m),v.push(1),v.push(2),L!==1&&(v.push(-1),v.push(0),v.push(2),v.push(L)),E!==1&&(v.push(-1),v.push(0),v.push(1),v.push(E))):T?(I=(o-x)/(y-x),R=(o-x)/(m-x),v.push(2),v.push(0),R!==1&&(v.push(-1),v.push(1),v.push(0),v.push(R)),I!==1&&(v.push(-1),v.push(1),v.push(2),v.push(I))):S&&(P=(o-y)/(m-y),A=(o-y)/(x-y),v.push(0),v.push(1),A!==1&&(v.push(-1),v.push(2),v.push(1),v.push(A)),P!==1&&(v.push(-1),v.push(2),v.push(0),v.push(P))):w===2?!C&&m!==o?(R=(o-x)/(m-x),P=(o-y)/(m-y),v.push(0),v.push(-1),v.push(1),v.push(0),v.push(R),v.push(-1),v.push(2),v.push(0),v.push(P)):!T&&x!==o?(A=(o-y)/(x-y),E=(o-m)/(x-m),v.push(1),v.push(-1),v.push(2),v.push(1),v.push(A),v.push(-1),v.push(0),v.push(1),v.push(E)):!S&&y!==o&&(L=(o-m)/(y-m),I=(o-x)/(y-x),v.push(2),v.push(-1),v.push(0),v.push(2),v.push(L),v.push(-1),v.push(1),v.push(2),v.push(I)):w!==3&&(v.push(0),v.push(1),v.push(2)),v};mde.computeBarycentricCoordinates=function(o,f,m,x,y,v,C,T,S){let w=m-C,E=C-y,L=v-T,I=x-T,R=1/(L*w+E*I),P=f-T,A=o-C,M=(L*A+E*P)*R,V=(-I*A+w*P)*R,G=1-M-V;return F(S)?(S.x=M,S.y=V,S.z=G,S):new Z(M,V,G)};mde.computeLineSegmentLineSegmentIntersection=function(o,f,m,x,y,v,C,T,S){let w=(C-y)*(f-v)-(T-v)*(o-y),E=(m-o)*(f-v)-(x-f)*(o-y),L=(T-v)*(m-o)-(C-y)*(x-f);if(L===0)return;let I=w/L,R=E/L;if(I>=0&&I<=1&&R>=0&&R<=1)return F(S)||(S=new rt),S.x=o+I*(m-o),S.y=f+I*(x-f),S};var D4=mde;function _F(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 y(C,T){return x[C]-x[T]}function v(C,T){return m[C]-m[T]}this._westIndices=doe(o.westIndices,y,f),this._southIndices=doe(o.southIndices,v,f),this._eastIndices=doe(o.eastIndices,y,f),this._northIndices=doe(o.northIndices,v,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(_F.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}},canUpsample:{get:function(){return F(this._mesh)}}});var hoe=[];function doe(o,f,m){hoe.length=o.length;let x=!1;for(let y=0,v=o.length;y<v;++y)hoe[y]=o[y],x=x||y>0&&f(o[y-1],o[y])>0;return x?(hoe.sort(f),Fn.createTypedArray(m,hoe)):o}var Lmt="createVerticesFromQuantizedTerrainMesh",ezi=new mp(Lmt),tzi=new mp(Lmt,yO.maximumAsynchronousTasks);_F.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid,w=f.tileXYToRectangle(m,x,y),E=(T?tzi:ezi).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:w,relativeToCenter:this._boundingSphere.center,ellipsoid:S,exaggeration:v,exaggerationRelativeHeight:C,flattenPolygonHeight:this._flattenPolygonHeight,flattenPolygon:this._flattenPolygon});if(!F(E))return;let L=this;return Promise.resolve(E).then(function(I){let R=L._quantizedVertices.length/3,P=R+L._westIndices.length+L._southIndices.length+L._eastIndices.length+L._northIndices.length,A=Fn.createTypedArray(P,I.indices),M=new Float32Array(I.vertices),V=I.center,G=I.minimumHeight,D=I.maximumHeight,N=L._boundingSphere,k=L._orientedBoundingBox,U=Z.clone(I.occludeePointInScaledSpace)??L._horizonOcclusionPoint,B=I.vertexStride,Y=PS.clone(I.encoding);return L._mesh=new _O(V,M,A,I.indexCountWithoutSkirts,R,G,D,N,U,B,k,Y,I.westIndicesSouthToNorth,I.southIndicesEastToWest,I.eastIndicesNorthToSouth,I.northIndicesWestToEast),L._quantizedVertices=void 0,L._encodedNormals=void 0,L._indices=void 0,L._uValues=void 0,L._vValues=void 0,L._heightValues=void 0,L._westIndices=void 0,L._southIndices=void 0,L._eastIndices=void 0,L._northIndices=void 0,L._mesh})};var izi=new mp("upsampleQuantizedTerrainMesh",yO.maximumAsynchronousTasks);_F.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=izi.scheduleTask({vertices:T.vertices,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=Math.min(this._westSkirtHeight,this._eastSkirtHeight);R=Math.min(R,this._southSkirtHeight),R=Math.min(R,this._northSkirtHeight);let P=S?R*.5:this._westSkirtHeight,A=w?R*.5:this._southSkirtHeight,M=S?this._eastSkirtHeight:R*.5,V=w?this._northSkirtHeight:R*.5,G=this._credits,D=this;return Promise.resolve(I).then(function(N){let k=new Uint16Array(N.vertices),U=Fn.createTypedArray(k.length/3,N.indices),B;return F(N.encodedNormals)&&(B=new Uint8Array(N.encodedNormals)),new _F({quantizedVertices:k,indices:U,encodedNormals:B,minimumHeight:N.minimumHeight,maximumHeight:N.maximumHeight,boundingSphere:Ei.clone(N.boundingSphere),orientedBoundingBox:Tu.clone(N.orientedBoundingBox),horizonOcclusionPoint:Z.clone(N.horizonOcclusionPoint),westIndices:N.westIndices,southIndices:N.southIndices,eastIndices:N.eastIndices,northIndices:N.northIndices,westSkirtHeight:P,southSkirtHeight:A,eastSkirtHeight:M,northSkirtHeight:V,childTileMask:0,credits:G,createdByUpsampling:!0,flattenPolygonHeight:D._flattenPolygonHeight,flattenPolygon:D._flattenPolygon,flattenRectangle:D._flattenRectangle})})};var O1e=32767,Pmt=new Z;_F.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1);x*=O1e;let y=be.clamp((m-o.south)/o.height,0,1);return y*=O1e,F(this._mesh)?azi(this,x,y):szi(this,x,y)};function Imt(o,f,m,x,y,v,C,T){let S=Math.min(m,y,C),w=Math.max(m,y,C),E=Math.min(x,v,T),L=Math.max(x,v,T);return o>=S&&o<=w&&f>=E&&f<=L}var rzi=new rt,nzi=new rt,ozi=new rt;function azi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,rzi),R=v.decodeTextureCoordinates(y,E,nzi),P=v.decodeTextureCoordinates(y,L,ozi);if(Imt(f,m,I.x,I.y,R.x,R.y,P.x,P.y)){let A=D4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,Pmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}}function szi(o,f,m){let x=o._uValues,y=o._vValues,v=o._heightValues,C=o._indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=x[w],R=x[E],P=x[L],A=y[w],M=y[E],V=y[L];if(Imt(f,m,I,A,R,M,P,V)){let G=D4.computeBarycentricCoordinates(f,m,I,A,R,M,P,V,Pmt);if(G.x>=-1e-15&&G.y>=-1e-15&&G.z>=-1e-15){let D=G.x*v[w]+G.y*v[E]+G.z*v[L];return be.lerp(o._minimumHeight,o._maximumHeight,D/O1e)}}}}_F.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};_F.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var xde=_F;function lzi(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 Rmt(o){this.requestVertexNormals=o.requestVertexNormals??!1,this.requestWaterMask=o.requestWaterMask??!1,this.requestMetadata=o.requestMetadata??!0,this.ellipsoid=o.ellipsoid??yi.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=[]}Rmt.prototype.build=function(o){o._heightmapWidth=this.heightmapWidth,o._scheme=this.scheme;let f=F(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 Amt(o,f,m){if(!f.format){let M="The tile format is not specified in the layer.json file.";throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(!f.tiles||f.tiles.length===0){let M="The layer.json file does not specify any tile URL templates.";throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let x=!1,y=!1,v=!1,C=!0,T=!1;if(f.format==="heightmap-1.0")T=!0,F(o.heightmapStructure)||(o.heightmapStructure={heightScale:1/5,heightOffset:-1e3,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1,lowestEncodedHeight:0,highestEncodedHeight:256*256-1}),y=!0,o.requestWaterMask=!0;else if(f.format.indexOf("quantized-mesh-1.")!==0){let M=`The tile format "${f.format}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let S=f.tiles,w=f.maxzoom;o.overallMaxZoom=Math.max(o.overallMaxZoom,w);let E=[];if(F(f.valid_bounds)?E=f.valid_bounds:E=f.bounds,!f.projection||f.projection==="EPSG:4326")o.tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]});else if(f.projection==="EPSG:3857"){let M=Math.PI*o.ellipsoid.maximumRadius;E[0]<-M&&(E[0]=-M),E[1]<-M&&(E[1]=-M),E[2]>M&&(E[2]=M),E[3]>M&&(E[3]=M),o.tilingScheme=new xp({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]})}else{let M=`The projection "${f.projection}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.heightmapWidth,o.tilingScheme.getNumberOfXTilesAtLevel(0)),!f.scheme||f.scheme==="tms"||f.scheme==="slippyMap")o.scheme=f.scheme;else{let M=`The scheme "${f.scheme}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let L;F(f.extensions)&&f.extensions.indexOf("octvertexnormals")!==-1?x=!0:F(f.extensions)&&f.extensions.indexOf("vertexnormals")!==-1&&(x=!0,C=!1),F(f.extensions)&&f.extensions.indexOf("watermask")!==-1&&(y=!0),F(f.extensions)&&f.extensions.indexOf("metadata")!==-1&&(v=!0);let I=f.metadataAvailability,R=f.available,P;if(F(R)&&!F(I)){P=new kG(o.tilingScheme,R.length);for(let M=0;M<R.length;++M){let V=R[M],G=o.tilingScheme.getNumberOfYTilesAtLevel(M);F(o.overallAvailability[M])||(o.overallAvailability[M]=[]);for(let D=0;D<V.length;++D){let N=V[D],k=G-N.endY-1,U=G-N.startY-1;o.overallAvailability[M].push([N.startX,k,N.endX,U]),P.addAvailableTileRange(M,N.startX,k,N.endX,U)}}}else F(I)&&(L=new kG(o.tilingScheme,w),P=new kG(o.tilingScheme,w),o.overallAvailability[0]=[[0,0,1,0]],P.addAvailableTileRange(0,0,0,1,0));o.hasWaterMask=o.hasWaterMask||y,o.hasVertexNormals=o.hasVertexNormals||x,o.hasMetadata=o.hasMetadata||v,F(f.attribution)&&(o.attribution.length>0&&(o.attribution+=" "),o.attribution+=f.attribution),o.layers.push(new lzi({resource:o.lastResource,version:f.version,isHeightmap:T,tileUrlTemplates:S,availability:P,hasVertexNormals:x,hasWaterMask:y,hasMetadata:v,availabilityLevels:I,availabilityTilesLoaded:L,littleEndianExtensionSize:C}));let A=f.parentUrl;return F(A)?F(P)?(o.lastResource=o.lastResource.getDerivedResource({url:A}),o.lastResource.appendForwardSlash(),o.layerJsonResource=o.lastResource.getDerivedResource({url:"layer.json"}),await iFe(o),!0):(console.log("A layer.json can't have a parentUrl if it does't have an available array."),!0):!0}function uzi(o,f,m){let x=`An error occurred while accessing ${o.layerJsonResource.url}.`;if(F(f)&&(x+=` +${f.message}`),o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,x),o.previousError.retry)return iFe(o,m);throw new Oi(x)}async function czi(o,f,m){await Amt(o,f,m);let x=o.overallAvailability.length;if(x>0){let y=o.availability=new kG(o.tilingScheme,o.overallMaxZoom);for(let v=0;v<x;++v){let C=o.overallAvailability[v];for(let T=0;T<C.length;++T){let S=C[T];y.addAvailableTileRange(v,S[0],S[1],S[2],S[3])}}}if(o.attribution.length>0){let y=new Oa(o.attribution);o.tileCredits.push(y)}return!0}async function iFe(o,f){try{let m=await o.layerJsonResource.fetchJson();return czi(o,m,f)}catch(m){return F(m)&&m.statusCode===404?(await Amt(o,{tilejson:"2.1.0",format:"heightmap-1.0",version:"1.0.0",scheme:"tms",tiles:["{z}/{x}/{y}.terrain?v={version}"]},f),!0):uzi(o,m,f)}}function iL(o){o=o??si.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 Tr;let f=o.credit;typeof f=="string"&&(f=new Oa(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 Nve={OCT_VERTEX_NORMALS:1,WATER_MASK:2,METADATA:4};function y7e(o){return!F(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 hzi(o,f,m,x,y){let v=new Uint16Array(f,0,o._heightmapWidth*o._heightmapWidth);return new yL({buffer:v,childTileMask:new Uint8Array(f,v.byteLength,1)[0],waterMask:new Uint8Array(f,v.byteLength+1,f.byteLength-v.byteLength-1),width:o._heightmapWidth,height:o._heightmapWidth,structure:o._heightmapStructure,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon})}function dzi(o,f,m,x,y,v){let C=v.littleEndianExtensionSize,T=0,S=3,w=S+1,E=Float64Array.BYTES_PER_ELEMENT*S,L=Float64Array.BYTES_PER_ELEMENT*w,I=Uint16Array.BYTES_PER_ELEMENT*3,R=3,P=Uint16Array.BYTES_PER_ELEMENT,A=P*R,M=new DataView(f),V=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let G=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let D=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let N=new Ei(new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0)),M.getFloat64(T+E,!0));T+=L;let k=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let U=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let B=new Uint16Array(f,T,U*3);T+=U*I,U>64*1024&&(P=Uint32Array.BYTES_PER_ELEMENT,A=P*R);let Y=B.subarray(0,U),J=B.subarray(U,2*U),K=B.subarray(U*2,3*U);Ru.zigZagDeltaDecode(Y,J,K),T%P!==0&&(T+=P-T%P);let z=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let j=Fn.createTypedArrayFromArrayBuffer(U,f,T,z*R);T+=z*A;let q=0,O=j.length;for(let Se=0;Se<O;++Se){let Le=j[Se];j[Se]=q-Le,Le===0&&++q}let te=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ie=Fn.createTypedArrayFromArrayBuffer(U,f,T,te);T+=te*P;let re=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ee=Fn.createTypedArrayFromArrayBuffer(U,f,T,re);T+=re*P;let ae=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let oe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ae);T+=ae*P;let ce=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let pe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ce);T+=ce*P;let ue,he;for(;T<M.byteLength;){let Se=M.getUint8(T,!0);T+=Uint8Array.BYTES_PER_ELEMENT;let Le=M.getUint32(T,C);if(T+=Uint32Array.BYTES_PER_ELEMENT,Se===Nve.OCT_VERTEX_NORMALS&&o._requestVertexNormals)ue=new Uint8Array(f,T,U*2);else if(Se===Nve.WATER_MASK&&o._requestWaterMask)he=new Uint8Array(f,T,Le);else if(Se===Nve.METADATA&&o._requestMetadata){let Ve=M.getUint32(T,!0);if(Ve>0){let Oe=Q_(new Uint8Array(f),T+Uint32Array.BYTES_PER_ELEMENT,Ve).available;if(F(Oe))for(let $e=0;$e<Oe.length;++$e){let at=m+$e+1,dt=Oe[$e],gt=o._tilingScheme.getNumberOfYTilesAtLevel(at);for(let Et=0;Et<dt.length;++Et){let et=dt[Et],yt=gt-et.endY-1,Rt=gt-et.startY-1;o.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt),v.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt)}}}v.availabilityTilesLoaded.addAvailableTileRange(m,x,y,x,y)}T+=Le}let fe=o.getLevelMaximumGeometricError(m)*5,de=o._tilingScheme.tileXYToRectangle(x,y,m),Ce=Tu.fromRectangle(de,G,D,o._tilingScheme.ellipsoid);return new xde({center:V,minimumHeight:G,maximumHeight:D,boundingSphere:N,orientedBoundingBox:Ce,horizonOcclusionPoint:k,quantizedVertices:B,encodedNormals:ue,indices:j,westIndices:ie,southIndices:ee,eastIndices:oe,northIndices:pe,westSkirtHeight:fe,southSkirtHeight:fe,eastSkirtHeight:fe,northSkirtHeight:fe,childTileMask:o.availability.computeChildMaskForTile(m,x,y),waterMask:he,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon,flattenRectangle:{rectangle:de,minimumHeight:G,maximumHeight:D,ellipsoid:o._tilingScheme.ellipsoid}})}iL.prototype.requestTileGeometry=function(o,f,m,x){let y=this._layers,v,C=y.length,T=!1,S=Promise.resolve();if(C===1)v=y[0];else for(let w=0;w<C;++w){let E=y[w];if(!F(E.availability)||E.availability.isTileAvailable(m,o,f)){v=E;break}let L=rFe(this,o,f,m,E,w===0);L.result&&(T=!0,S=S.then(()=>L.promise))}return!F(v)&&T?S.then(()=>new Promise(w=>{setTimeout(()=>{let E=this.requestTileGeometry(o,f,m,x);w(E)},0)})):Mmt(this,o,f,m,v,x)};function Mmt(o,f,m,x,y,v){if(!F(y))return Promise.reject(new Oi("Terrain tile doesn't exist"));let C=y.tileUrlTemplates;if(C.length===0)return;let T;!o._scheme||o._scheme==="tms"?T=o._tilingScheme.getNumberOfYTilesAtLevel(x)-m-1:T=m;let S=[];o._requestVertexNormals&&y.hasVertexNormals&&S.push(y.littleEndianExtensionSize?"octvertexnormals":"vertexnormals"),o._requestWaterMask&&y.hasWaterMask&&S.push("watermask"),o._requestMetadata&&y.hasMetadata&&S.push("metadata");let w,E,L=C[(f+T+x)%C.length],I=y.resource;F(I._ionEndpoint)&&!F(I._ionEndpoint.externalType)?(S.length!==0&&(E={extensions:S.join("-")}),w=y7e(void 0)):w=y7e(S);let R=I.getDerivedResource({url:L,templateValues:{version:y.version,z:x,x:f,y:T},queryParameters:E,headers:w,request:v}).fetchArrayBuffer();if(F(R))return R.then(function(P){return F(P)?F(o._heightmapStructure)?hzi(o,P,x,f,m):dzi(o,P,x,f,m,y):Promise.reject(new Oi("Mesh buffer doesn't exist."))})}Object.defineProperties(iL.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}}});iL.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};iL.fromIonAssetId=async function(o,f){let m=await FG.fromAssetId(o);return iL.fromUrl(m,f)};iL.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash();let x=new Rmt(f);x.lastResource=m,x.layerJsonResource=x.lastResource.getDerivedResource({url:"layer.json"}),await iFe(x);let y=new iL(f);return x.build(y),y};iL.prototype.getTileDataAvailable=function(o,f,m){if(!F(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,y=x.length;for(let v=0;v<y;++v)if(rFe(this,o,f,m,x[v],v===0).result)return;return!1};iL.prototype.loadTileDataAvailability=function(o,f,m){if(!F(this._availability)||m>this._availability._maximumLevel||this._availability.isTileAvailable(m,o,f)||!this._hasMetadata)return;let x=this._layers,y=x.length;for(let v=0;v<y;++v){let C=rFe(this,o,f,m,x[v],v===0);if(F(C.promise))return C.promise}};function X1e(o,f,m,x){if(x===0)return;let y=o.availabilityLevels,v=x%y===0?x-y:(x/y|0)*y,C=1<<x-v,T=f/C|0,S=m/C|0;return{level:v,x:T,y:S}}function rFe(o,f,m,x,y,v){if(!F(y.availabilityLevels))return{result:!1};let C,T=function(){delete y.availabilityPromiseCache[C]},S=y.availabilityTilesLoaded,w=y.availability,E=X1e(y,f,m,x);for(;F(E);){if(w.isTileAvailable(E.level,E.x,E.y)&&!S.isTileAvailable(E.level,E.x,E.y)){let L;if(!v&&(C=`${E.level}-${E.x}-${E.y}`,L=y.availabilityPromiseCache[C],!F(L))){let I=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});L=Mmt(o,E.x,E.y,E.level,y,I),F(L)&&(y.availabilityPromiseCache[C]=L,L.then(T))}return{result:!0,promise:L}}E=X1e(y,E.x,E.y,E.level)}return{result:!1}}iL._getAvailabilityTile=X1e;var N4=iL;function JM(o){o=o??si.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 TS(m),this._workerName="createCircleGeometry"}JM.packedLength=TS.packedLength;JM.pack=function(o,f,m){return TS.pack(o._ellipseGeometry,f,m)};var _7e=new TS({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),dy={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new Yr,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};JM.unpack=function(o,f,m){let x=TS.unpack(o,f,_7e);return dy.center=Z.clone(x._center,dy.center),dy.ellipsoid=yi.clone(x._ellipsoid,dy.ellipsoid),dy.ellipsoid=yi.clone(x._ellipsoid,_7e._ellipsoid),dy.height=x._height,dy.extrudedHeight=x._extrudedHeight,dy.granularity=x._granularity,dy.vertexFormat=Yr.clone(x._vertexFormat,dy.vertexFormat),dy.stRotation=x._stRotation,dy.shadowVolume=x._shadowVolume,F(m)?(dy.semiMajorAxis=x._semiMajorAxis,dy.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new TS(dy),m):(dy.radius=x._semiMajorAxis,new JM(dy))};JM.createGeometry=function(o){return TS.createGeometry(o._ellipseGeometry)};JM.createShadowVolume=function(o,f,m){let x=o._ellipseGeometry._granularity,y=o._ellipseGeometry._ellipsoid,v=f(x,y),C=m(x,y);return new JM({center:o._ellipseGeometry._center,radius:o._ellipseGeometry._semiMajorAxis,ellipsoid:y,stRotation:o._ellipseGeometry._stRotation,granularity:x,extrudedHeight:v,height:C,vertexFormat:Yr.POSITION_ONLY,shadowVolume:!0})};Object.defineProperties(JM.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var Vmt=JM;function jH(o){o=o??si.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 LI(m),this._workerName="createCircleOutlineGeometry"}jH.packedLength=LI.packedLength;jH.pack=function(o,f,m){return LI.pack(o._ellipseGeometry,f,m)};var pzi=new LI({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),BC={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};jH.unpack=function(o,f,m){let x=LI.unpack(o,f,pzi);return BC.center=Z.clone(x._center,BC.center),BC.ellipsoid=yi.clone(x._ellipsoid,BC.ellipsoid),BC.height=x._height,BC.extrudedHeight=x._extrudedHeight,BC.granularity=x._granularity,BC.numberOfVerticalLines=x._numberOfVerticalLines,F(m)?(BC.semiMajorAxis=x._semiMajorAxis,BC.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new LI(BC),m):(BC.radius=x._semiMajorAxis,new jH(BC))};jH.createGeometry=function(o){return LI.createGeometry(o._ellipseGeometry)};var Gmt=jH;function fzi(o){return o=o??si.EMPTY_OBJECT,N4.fromIonAssetId(2426648,{requestVertexNormals:o.requestVertexNormals??!1})}var nFe=fzi;function mzi(o){return o=o??si.EMPTY_OBJECT,N4.fromIonAssetId(1,{requestVertexNormals:o.requestVertexNormals??!1,requestWaterMask:o.requestWaterMask??!1,ellipsoid:yi.WGS84})}var gde=mzi;function W4(o){o=o??si.EMPTY_OBJECT,this._callback=o.callback,this._tilingScheme=o.tilingScheme,F(this._tilingScheme)||(this._tilingScheme=new _h({ellipsoid:o.ellipsoid??yi.default})),this._width=o.width,this._height=o.height;let f=Math.max(this._width,this._height);this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new Tr;let m=o.credit;typeof m=="string"&&(m=new Oa(m)),this._credit=m}Object.defineProperties(W4.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}}});W4.prototype.requestTileGeometry=function(o,f,m,x){let y=this._callback(o,f,m);if(!F(y))return;let v=this._width,C=this._height;return Promise.resolve(y).then(function(T){let S=T;return Array.isArray(S)&&(S=new Float64Array(S)),new yL({buffer:S,width:v,height:C})})};W4.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};W4.prototype.getTileDataAvailable=function(o,f,m){};W4.prototype.loadTileDataAvailability=function(o,f,m){};var Fmt=W4,xzi=1953029805,gzi=2917034100;function oFe(o,f){if(oFe.passThroughDataForTesting)return f;let m=o.byteLength;if(m===0||m%4!==0)throw new Oi("The length of key must be greater than 0 and a multiple of 4.");let x=new DataView(f),y=x.getUint32(0,!0);if(y===xzi||y===gzi)return f;let v=new DataView(o),C=0,T=f.byteLength,S=T-T%8,w=m,E,L=8;for(;C<S;)for(L=(L+8)%24,E=L;C<S&&E<w;)x.setUint32(C,x.getUint32(C,!0)^v.getUint32(E,!0),!0),x.setUint32(C+4,x.getUint32(C+4,!0)^v.getUint32(E+4,!0),!0),C+=8,E+=24;if(C<T)for(E>=w&&(L=(L+8)%24,E=L);C<T;)x.setUint8(C,x.getUint8(C)^v.getUint8(E)),C++,E++}oFe.passThroughDataForTesting=!1;var aFe=oFe;function Dmt(o){this.proxy=o}Dmt.prototype.getURL=function(o){let f=this.proxy.indexOf("?")===-1?"?":"";return this.proxy+f+encodeURIComponent(o)};var Nmt=Dmt;function Wmt(o,f){return pL("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(Wmt,"EMPTY_OBJECT",{get:function(){return pL("defaultValue.EMPTY_OBJECT","defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead"),si.EMPTY_OBJECT}});var Zmt=Wmt;function yde(){wt.throwInstantiationError()}Object.defineProperties(yde.prototype,{credit:{get:wt.throwInstantiationError}});yde.getCreditsFromResult=function(o){if(F(o.attributions))return o.attributions.map(Oa.getIonCredit)};yde.prototype.geocode=wt.throwInstantiationError;var _de=yde,yzi={SEARCH:0,AUTOCOMPLETE:1},e$=Object.freeze(yzi);function Omt(){wt.throwInstantiationError()}Omt.createGeometry=function(o){wt.throwInstantiationError()};var Xmt=Omt,_zi=k0(j$e(),1);function vzi(o,f){return(o&f)!==0}var m1=vzi,bzi=[1,2,4,8],kmt=15,Czi=16,Tzi=64,Szi=128;function DI(o,f,m,x,y,v){this._bits=o,this.cnodeVersion=f,this.imageryVersion=m,this.terrainVersion=x,this.imageryProvider=y,this.terrainProvider=v,this.ancestorHasTerrain=!1,this.terrainState=void 0}DI.clone=function(o,f){return F(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 DI(o._bits,o.cnodeVersion,o.imageryVersion,o.terrainVersion,o.imageryProvider,o.terrainProvider),f.ancestorHasTerrain=o.ancestorHasTerrain,f.terrainState=o.terrainState,f};DI.prototype.setParent=function(o){this.ancestorHasTerrain=o.ancestorHasTerrain||this.hasTerrain()};DI.prototype.hasSubtree=function(){return m1(this._bits,Czi)};DI.prototype.hasImagery=function(){return m1(this._bits,Tzi)};DI.prototype.hasTerrain=function(){return m1(this._bits,Szi)};DI.prototype.hasChildren=function(){return m1(this._bits,kmt)};DI.prototype.hasChild=function(o){return m1(this._bits,bzi[o])};DI.prototype.getChildBitmask=function(){return this._bits&kmt};var sFe=DI;function wzi(o){let f=o.length,m=new ArrayBuffer(f),x=new Uint8Array(m);for(let y=0;y<f;++y)x[y]=o.charCodeAt(y);return m}var Ezi=wzi(`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 w1(o){this.imageryPresent=!0,this.protoImagery=void 0,this.terrainPresent=!0,this.negativeAltitudeExponentBias=32,this.negativeAltitudeThreshold=be.EPSILON12,this.providers={},this.key=void 0,this._resource=void 0,this._quadPacketVersion=1,this._tileInfo={},this._subtreePromises={}}Object.defineProperties(w1.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},resource:{get:function(){return this._resource}}});w1.fromUrl=async function(o){let f=o;typeof f!="string"&&!(f instanceof Mr)&&(f=o.url);let m=Mr.createIfNeeded(f);m.appendForwardSlash();let x=new w1;x._resource=m;try{await Lzi(x),await x.getQuadTreePacket("",x._quadPacketVersion)}catch(y){let v=`An error occurred while accessing ${Bmt(x,"",1).url}: ${y}`;throw new Oi(v)}return x};w1.tileXYToQuadKey=function(o,f,m){let x="";for(let y=m;y>=0;--y){let v=1<<y,C=0;m1(f,v)?m1(o,v)&&(C|=1):(C|=2,m1(o,v)||(C|=1)),x+=C}return x};w1.quadKeyToTileXY=function(o){let f=0,m=0,x=o.length-1;for(let y=x;y>=0;--y){let v=1<<y,C=+o[x-y];m1(C,2)?m1(C,1)||(f|=v):(m|=v,m1(C,1)&&(f|=v))}return{x:f,y:m,level:x}};w1.prototype.isValid=function(o){let f=this.getTileInformationFromQuadKey(o);if(F(f))return f!==null;let m=!0,x=o,y;for(;x.length>1;)if(y=x.substring(x.length-1),x=x.substring(0,x.length-1),f=this.getTileInformationFromQuadKey(x),F(f)){!f.hasSubtree()&&!f.hasChild(parseInt(y))&&(m=!1);break}else if(f===null){m=!1;break}return m};var Umt=new mp("decodeGoogleEarthEnterprisePacket");w1.prototype.getQuadTreePacket=function(o,f,m){f=f??1,o=o??"";let x=Bmt(this,o,f,m).fetchArrayBuffer();if(!F(x))return;let y=this._tileInfo,v=this.key;return x.then(function(C){return Umt.scheduleTask({buffer:C,quadKey:o,type:"Metadata",key:v},[C]).then(function(T){let S,w=-1;if(o!==""){w=o.length+1;let I=T[o];S=y[o],S._bits|=I._bits,delete T[o]}let E=Object.keys(T);E.sort(function(I,R){return I.length-R.length});let L=E.length;for(let I=0;I<L;++I){let R=E[I];if(T[R]!==null){let P=sFe.clone(T[R]),A=R.length;if(A===w)P.setParent(S);else if(A>1){let M=y[R.substring(0,R.length-1)];P.setParent(M)}y[R]=P}else y[R]=null}})})};w1.prototype.populateSubtree=function(o,f,m,x){let y=w1.tileXYToQuadKey(o,f,m);return k1e(this,y,x)};function k1e(o,f,m){let x=o._tileInfo,y=f,v=x[y];if(F(v)&&(!v.hasSubtree()||v.hasChildren()))return v;for(;v===void 0&&y.length>1;)y=y.substring(0,y.length-1),v=x[y];let C,T=o._subtreePromises,S=T[y];if(F(S))return S.then(function(){return C=new hm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),k1e(o,f,C)});if(!F(v)||!v.hasSubtree())return Promise.reject(new Oi(`Couldn't load metadata for tile ${f}`));if(S=o.getQuadTreePacket(y,v.cnodeVersion,m),!!F(S))return T[y]=S,S.then(function(){return C=new hm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),k1e(o,f,C)}).finally(function(){delete T[y]})}w1.prototype.getTileInformation=function(o,f,m){let x=w1.tileXYToQuadKey(o,f,m);return this._tileInfo[x]};w1.prototype.getTileInformationFromQuadKey=function(o){return this._tileInfo[o]};function Bmt(o,f,m,x){return o._resource.getDerivedResource({url:`flatfile?q2-0${f}-q.${m.toString()}`,request:x})}var Wve,Zve;function Lzi(o){let f=o._resource.getDerivedResource({url:"dbRoot.v5",queryParameters:{output:"proto"}});if(!F(Zve)){let m=oa("ThirdParty/google-earth-dbroot-parser.js"),x=window.cesiumGoogleEarthDbRootParser;Zve=Jle(m).then(function(){Wve=window.cesiumGoogleEarthDbRootParser(_zi),F(x)?window.cesiumGoogleEarthDbRootParser=x:delete window.cesiumGoogleEarthDbRootParser})}return Zve.then(function(){return f.fetchArrayBuffer()}).then(function(m){let x=Wve.EncryptedDbRootProto.decode(new Uint8Array(m)),y=x.encryptionData,v=y.byteOffset,C=v+y.byteLength,T=o.key=y.buffer.slice(v,C);y=x.dbrootData,v=y.byteOffset,C=v+y.byteLength;let S=y.buffer.slice(v,C);return Umt.scheduleTask({buffer:S,type:"DbRoot",key:T},[S])}).then(function(m){let x=Wve.DbRootProto.decode(new Uint8Array(m.buffer));if(o.imageryPresent=x.imageryPresent??o.imageryPresent,o.protoImagery=x.protoImagery,o.terrainPresent=x.terrainPresent??o.terrainPresent,F(x.endSnippet)&&F(x.endSnippet.model)){let T=x.endSnippet.model;o.negativeAltitudeExponentBias=T.negativeAltitudeExponentBias??o.negativeAltitudeExponentBias,o.negativeAltitudeThreshold=T.compressedNegativeAltitudeThreshold??o.negativeAltitudeThreshold}F(x.databaseVersion)&&(o._quadPacketVersion=x.databaseVersion.quadtreeVersion??o._quadPacketVersion);let y=o.providers,v=x.providerInfo??[],C=v.length;for(let T=0;T<C;++T){let S=v[T],w=S.copyrightString;F(w)&&(y[S.providerId]=new Oa(w.value))}}).catch(function(){console.log(`Failed to retrieve ${f.url}. Using defaults.`),o.key=Ezi})}var Z4=w1;function WO(o){o=o??si.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(WO.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){}}});var Hmt="createVerticesFromGoogleEarthEnterpriseBuffer",Pzi=new mp(Hmt),Izi=new mp(Hmt,yO.maximumAsynchronousTasks),v7e=new vi,Ove=new vi;WO.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid;f.tileXYToNativeRectangle(m,x,y,v7e),f.tileXYToRectangle(m,x,y,Ove);let w=S.cartographicToCartesian(vi.center(Ove)),E=40075.16/(1<<y);this._skirtHeight=Math.min(E*8,1e3);let L=(T?Izi:Pzi).scheduleTask({buffer:this._buffer,nativeRectangle:v7e,rectangle:Ove,relativeToCenter:w,ellipsoid:S,skirtHeight:this._skirtHeight,exaggeration:v,exaggerationRelativeHeight:C,includeWebMercatorT:!0,negativeAltitudeExponentBias:this._negativeAltitudeExponentBias,negativeElevationThreshold:this._negativeElevationThreshold});if(!F(L))return;let I=this;return L.then(function(R){return I._mesh=new _O(w,new Float32Array(R.vertices),new Uint16Array(R.indices),R.indexCountWithoutSkirts,R.vertexCountWithoutSkirts,R.minimumHeight,R.maximumHeight,Ei.clone(R.boundingSphere3D),Z.clone(R.occludeePointInScaledSpace),R.numberOfAttributes,Tu.clone(R.orientedBoundingBox),PS.clone(R.encoding),R.westIndicesSouthToNorth,R.southIndicesEastToWest,R.eastIndicesNorthToSouth,R.northIndicesWestToEast),I._minimumHeight=R.minimumHeight,I._maximumHeight=R.maximumHeight,I._buffer=void 0,I._mesh})};WO.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1),y=be.clamp((m-o.south)/o.height,0,1);return F(this._mesh)?Gzi(this,x,y):Nzi(this,x,y,o)};var Rzi=new mp("upsampleQuantizedTerrainMesh",yO.maximumAsynchronousTasks);WO.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=Rzi.scheduleTask({vertices:T.vertices,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=this;return I.then(function(P){let A=new Uint16Array(P.vertices),M=Fn.createTypedArray(A.length/3,P.indices),V=R._skirtHeight;return new xde({quantizedVertices:A,indices:M,minimumHeight:P.minimumHeight,maximumHeight:P.maximumHeight,boundingSphere:Ei.clone(P.boundingSphere),orientedBoundingBox:Tu.clone(P.orientedBoundingBox),horizonOcclusionPoint:Z.clone(P.horizonOcclusionPoint),westIndices:P.westIndices,southIndices:P.southIndices,eastIndices:P.eastIndices,northIndices:P.northIndices,westSkirtHeight:V,southSkirtHeight:V,eastSkirtHeight:V,northSkirtHeight:V,childTileMask:0,createdByUpsampling:!0,credits:R._credits})})};WO.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};WO.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var Azi=new rt,Mzi=new rt,Vzi=new rt,zmt=new Z;function Gzi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,Azi),R=v.decodeTextureCoordinates(y,E,Mzi),P=v.decodeTextureCoordinates(y,L,Vzi),A=D4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,zmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}var Fzi=Uint16Array.BYTES_PER_ELEMENT,b7e=Uint32Array.BYTES_PER_ELEMENT,Xve=Int32Array.BYTES_PER_ELEMENT,Dzi=Float32Array.BYTES_PER_ELEMENT,kve=Float64Array.BYTES_PER_ELEMENT;function Nzi(o,f,m,x){let y=o._buffer,v=0,C=0,T=0;m>.5?(f>.5?(v=2,C=.5):v=3,T=.5):f>.5&&(v=1,C=.5);let S=new DataView(y),w=0;for(let k=0;k<v;++k)w+=S.getUint32(w,!0),w+=b7e;w+=b7e,w+=2*kve;let E=be.toRadians(S.getFloat64(w,!0)*180);w+=kve;let L=be.toRadians(S.getFloat64(w,!0)*180);w+=kve;let I=x.width/E/2,R=x.height/L/2,P=S.getInt32(w,!0);w+=Xve;let A=S.getInt32(w,!0)*3;w+=Xve,w+=Xve;let M=new Array(P),V=new Array(P),G=new Array(P),D;for(D=0;D<P;++D)M[D]=C+S.getUint8(w++)*I,V[D]=T+S.getUint8(w++)*R,G[D]=S.getFloat32(w,!0)*6371010,w+=Dzi;let N=new Array(A);for(D=0;D<A;++D)N[D]=S.getUint16(w,!0),w+=Fzi;for(D=0;D<A;D+=3){let k=N[D],U=N[D+1],B=N[D+2],Y=M[k],J=M[U],K=M[B],z=V[k],j=V[U],q=V[B],O=D4.computeBarycentricCoordinates(f,m,Y,z,J,j,K,q,zmt);if(O.x>=-1e-15&&O.y>=-1e-15&&O.z>=-1e-15)return O.x*G[k]+O.y*G[U]+O.z*G[B]}}var cle=WO,BT={UNKNOWN:0,NONE:1,SELF:2,PARENT:3},poe=new $t;function vde(){this._terrainCache={},this._lastTidy=$t.now()}vde.prototype.add=function(o,f){this._terrainCache[o]={buffer:f,timestamp:$t.now()}};vde.prototype.get=function(o){let f=this._terrainCache[o];if(F(f))return delete this._terrainCache[o],f.buffer};vde.prototype.tidy=function(){if($t.now(poe),$t.secondsDifference(poe,this._lastTidy)>10){let o=this._terrainCache,f=Object.keys(o),m=f.length;for(let x=0;x<m;++x){let y=f[x],v=o[y];$t.secondsDifference(poe,v.timestamp)>10&&delete o[y]}$t.clone(poe,this._lastTidy)}};function vF(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._levelZeroMaximumGeometricError=40075.16,this._terrainCache=new vde,this._terrainPromises={},this._terrainRequests={},this._errorEvent=new Tr}Object.defineProperties(vF.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(){}}});vF.fromMetadata=function(o,f){if(!o.terrainPresent)throw new Oi(`The server ${o.url} doesn't have terrain`);let m=new vF(f);return m._metadata=o,m};var Wzi=new mp("decodeGoogleEarthEnterprisePacket");function C7e(o,f,m){let x=f.getChildBitmask();if(f.terrainState===BT.PARENT){x=0;for(let y=0;y<4;++y){let v=m.getTileInformationFromQuadKey(o+y.toString());F(v)&&v.hasTerrain()&&(x|=1<<y)}}return x}vF.prototype.requestTileGeometry=function(o,f,m,x){let y=Z4.tileXYToQuadKey(o,f,m),v=this._terrainCache,C=this._metadata,T=C.getTileInformationFromQuadKey(y);if(!F(T))return Promise.reject(new Oi("Terrain tile doesn't exist"));let S=T.terrainState;F(S)||(S=T.terrainState=BT.UNKNOWN);let w=v.get(y);if(F(w)){let V=C.providers[T.terrainProvider];return Promise.resolve(new cle({buffer:w,childTileMask:C7e(y,T,C),credits:F(V)?[V]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold}))}if(v.tidy(),T.ancestorHasTerrain){if(S===BT.NONE)return Promise.reject(new Oi("Terrain tile doesn't exist"))}else return Promise.resolve(new yL({buffer:new Uint8Array(16*16),width:16,height:16}));let E,L=y,I=-1;switch(S){case BT.SELF:I=T.terrainVersion;break;case BT.PARENT:L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),I=E.terrainVersion;break;case BT.UNKNOWN:T.hasTerrain()?I=T.terrainVersion:(L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),F(E)&&E.hasTerrain()&&(I=E.terrainVersion));break}if(I<0)return Promise.reject(new Oi("Terrain tile doesn't exist"));let R=this._terrainPromises,P=this._terrainRequests,A,M;if(F(R[L]))A=R[L],M=P[L];else{M=x;let V=Zzi(this,L,I,M).fetchArrayBuffer();if(!F(V))return;A=V.then(function(G){return F(G)?Wzi.scheduleTask({buffer:G,type:"Terrain",key:C.key},[G]).then(function(D){let N=C.getTileInformationFromQuadKey(L);N.terrainState=BT.SELF,v.add(L,D[0]);let k=N.terrainProvider,U=D.length-1;for(let B=0;B<U;++B){let Y=L+B.toString(),J=C.getTileInformationFromQuadKey(Y);F(J)&&(v.add(Y,D[B+1]),J.terrainState=BT.PARENT,J.terrainProvider===0&&(J.terrainProvider=k))}}):Promise.reject(new Oi("Failed to load terrain."))}),R[L]=A,P[L]=M,A=A.finally(function(){delete R[L],delete P[L]})}return A.then(function(){let V=v.get(y);if(F(V)){let G=C.providers[T.terrainProvider];return new cle({buffer:V,childTileMask:C7e(y,T,C),credits:F(G)?[G]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold})}return Promise.reject(new Oi("Failed to load terrain."))}).catch(function(V){return M.state===pc.CANCELLED?(x.state=M.state,Promise.reject(V)):(T.terrainState=BT.NONE,Promise.reject(V))})};vF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};vF.prototype.getTileDataAvailable=function(o,f,m){let x=this._metadata,y=Z4.tileXYToQuadKey(o,f,m),v=x.getTileInformation(o,f,m);if(v===null)return!1;if(F(v)){if(!v.ancestorHasTerrain)return!0;let C=v.terrainState;if(C===BT.NONE)return!1;if((!F(C)||C===BT.UNKNOWN)&&(v.terrainState=BT.UNKNOWN,!v.hasTerrain())){y=y.substring(0,y.length-1);let T=x.getTileInformationFromQuadKey(y);if(!F(T)||!T.hasTerrain())return!1}return!0}if(x.isValid(y)){let C=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});x.populateSubtree(o,f,m,C)}return!1};vF.prototype.loadTileDataAvailability=function(o,f,m){};function Zzi(o,f,m,x){return m=F(m)&&m>0?m:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1c-0${f}-t.${m.toString()}`,request:x})}var Ymt=vF,Ozi="https://maps.googleapis.com/maps/api/geocode/json",Kmt='<img alt="Google" src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align:-5px">';function lFe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._resource=new Mr({url:Ozi,queryParameters:{key:f}}),this._credit=new Oa(Kmt,!0)}Object.defineProperties(lFe.prototype,{credit:{get:function(){return this._credit}}});lFe.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 Oi(`GoogleGeocoderService got a bad response ${f.status}: ${f.error_message}`);return f.results.map(m=>{let x=m.geometry.viewport.southwest,y=m.geometry.viewport.northeast;return{displayName:m.formatted_address,destination:vi.fromDegrees(x.lng,x.lat,y.lng,y.lat),attribution:{html:Kmt,collapsible:!1}}})};var Jmt=lFe,bde={};bde.defaultApiKey=void 0;bde.mapTilesApiEndpoint=new Mr({url:"https://tile.googleapis.com/v1/"});bde.getDefaultCredit=function(){return new Oa('<img src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align: -5px" alt="Google">',!0)};var hQ=bde,t$={};t$.type=void 0;t$.getRequiredDataPoints=wt.throwInstantiationError;t$.interpolateOrderZero=wt.throwInstantiationError;t$.interpolate=wt.throwInstantiationError;var jmt=t$,Xzi={GOOGLE:"GOOGLE",BING:"BING",DEFAULT:"DEFAULT"},XZ=Object.freeze(Xzi);function uFe(o){this._url=Mr.createIfNeeded(o),this._url.appendForwardSlash()}Object.defineProperties(uFe.prototype,{url:{get:function(){return this._url}},credit:{get:function(){}}});uFe.prototype.geocode=async function(o,f){return this._url.getDerivedResource({url:f===e$.AUTOCOMPLETE?"autocomplete":"search",queryParameters:{text:o}}).fetchJson().then(function(m){return m.features.map(function(x){let y,v=x.bbox;if(F(v))y=vi.fromDegrees(v[0],v[1],v[2],v[3]);else{let C=x.geometry.coordinates[0],T=x.geometry.coordinates[1];y=Z.fromDegrees(C,T)}return{displayName:x.properties.label,destination:y,attributions:m.attributions}})})};var cFe=uFe;function kzi(o){if(!Object.values(XZ).some(f=>f===o))throw new wt(`Invalid geocodeProviderType: "${o}"`)}var Qmt=Object.freeze({[XZ.GOOGLE]:"google",[XZ.BING]:"bing",[XZ.DEFAULT]:void 0});function Uzi(o){return Qmt[o]}function Bzi(o){return Object.entries(Qmt).find(f=>f[1]===o)[0]}function hFe(o){o=o??si.EMPTY_OBJECT;let f=o.geocodeProviderType??XZ.DEFAULT,m=o.accessToken??GG.defaultAccessToken,x=Mr.createIfNeeded(o.server??GG.defaultServer);x.appendForwardSlash();let y=GG.getDefaultTokenCredit(m);F(y)&&o.scene.frameState.creditDisplay.addStaticCredit(Oa.clone(y));let v=x.getDerivedResource({url:"v1/geocode"});F(m)&&v.appendQueryParameters({access_token:m}),this._accessToken=m,this._server=x,this._pelias=new cFe(v),this.geocodeProviderType=f}Object.defineProperties(hFe.prototype,{credit:{get:function(){}},geocodeProviderType:{get:function(){return Bzi(this._pelias.url.queryParameters.geocoder)},set:function(o){kzi(o);let f={...this._pelias.url.queryParameters,geocoder:Uzi(o)};F(f.geocoder)||delete f.geocoder,this._pelias.url.setQueryParameters(f)}}});hFe.prototype.geocode=async function(o,f){return this._pelias.geocode(o,f)};var Cde=hFe,lm={};lm.ExportStatus=Object.freeze({NotStarted:"NotStarted",InProgress:"InProgress",Complete:"Complete",Invalid:"Invalid"});lm.ExportType=Object.freeze({IMODEL:"IMODEL",CESIUM:"CESIUM","3DTILES":"3DTILES"});lm.RealityDataType=Object.freeze({Cesium3DTiles:"Cesium3DTiles",PNTS:"PNTS",RealityMesh3DTiles:"RealityMesh3DTiles",Terrain3DTiles:"Terrain3DTiles",KML:"KML",GeoJSON:"GeoJSON",Unstructured:"Unstructured"});lm.defaultAccessToken=void 0;lm.defaultShareKey=void 0;lm._getAuthorizationHeader=function(){return F(lm.defaultShareKey)?`Basic ${lm.defaultShareKey}`:`Bearer ${lm.defaultAccessToken}`};lm.apiEndpoint=new Mr({url:"https://api.bentley.com"});lm.getExports=async function(o){let f=new Mr({url:`${lm.apiEndpoint}mesh-export`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json",Prefer:"return=representation"},queryParameters:{iModelId:o,exportType:lm.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 y=x.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${y}`)}else{if(m.statusCode===403)throw console.error(x.error.code,x.error.message),new Oi("Not allowed, forbidden");if(m.statusCode===422)throw new Oi(`Unprocessable Entity:${x.error.code} ${x.error.message}`);if(m.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${m.statusCode}`)}};lm.getRealityDataMetadata=async function(o,f){let m=new Mr({url:`${lm.apiEndpoint}reality-management/reality-data/${f}`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{return(await m.fetchJson()).realityData}catch(x){let y=JSON.parse(x.response);if(x.statusCode===401){let v=y.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${v}`)}else{if(x.statusCode===403)throw console.error(y.error.code,y.error.message),new Oi("Not allowed, forbidden");if(x.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(x.statusCode===422)throw new Oi(`Unprocessable Entity:${y.error.code} ${y.error.message}`);if(x.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${x.statusCode}`)}};lm.getRealityDataURL=async function(o,f,m){let x=new Mr({url:`${lm.apiEndpoint}reality-management/reality-data/${f}/readaccess`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{let y=(await x.fetchJson())._links.containerUrl.href,v=new URL(y);return v.pathname=`${v.pathname}/${m}`,v.toString()}catch(y){let v=JSON.parse(y.response);if(y.statusCode===401){let C=v.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${C}`)}else{if(y.statusCode===403)throw console.error(v.error.code,v.error.message),new Oi("Not allowed, forbidden");if(y.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(y.statusCode===422)throw new Oi(`Unprocessable Entity:${v.error.code} ${v.error.message}`);if(y.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${y.statusCode}`)}};var wg=lm,Hzi=new mp("transcodeCRNToDXT",Number.POSITIVE_INFINITY);function zzi(o){let f;if(o instanceof ArrayBuffer||ArrayBuffer.isView(o)?f=Promise.resolve(o):f=Mr.createIfNeeded(o).fetchArrayBuffer(),!!F(f))return f.then(function(m){if(!F(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)),Hzi.scheduleTask(m,x)}).then(function(m){return DS.clone(m)})}var qmt=zzi;function Tde(){wt.throwInstantiationError()}Object.defineProperties(Tde.prototype,{ellipsoid:{get:wt.throwInstantiationError}});Tde.prototype.project=wt.throwInstantiationError;Tde.prototype.unproject=wt.throwInstantiationError;var $mt=Tde;function O4(o){o=o??si.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(O4.prototype,{times:{get:function(){return this._times}},weights:{get:function(){return this._weights}}});O4.prototype.findTimeInterval=B0.prototype.findTimeInterval;O4.prototype.wrapTime=B0.prototype.wrapTime;O4.prototype.clampTime=B0.prototype.clampTime;O4.prototype.evaluate=function(o,f){let m=this.weights,x=this.times,y=this._lastTimeIndex=this.findTimeInterval(o,this._lastTimeIndex),v=(o-x[y])/(x[y+1]-x[y]);F(f)||(f=new Array(this._count));for(let C=0;C<this._count;C++){let T=y*this._count+C;f[C]=m[T]*(1-v)+m[T+this._count]*v}return f};var ext=O4;function dFe(o,f,m){o=Mr.createIfNeeded(o),o.appendForwardSlash(),o.setQueryParameters({key:f}),this._url=o,this._params=m??{},this._credit=new Oa('Geodata copyright <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',!1)}Object.defineProperties(dFe.prototype,{url:{get:function(){return this._url}},params:{get:function(){return this._params}},credit:{get:function(){return this._credit}}});dFe.prototype.geocode=async function(o){return this._url.getDerivedResource({url:"json",queryParameters:va(this._params,{q:o})}).fetchJson().then(function(f){return f.results.map(function(m){let x,y=m.bounds;if(F(y))x=vi.fromDegrees(y.southwest.lng,y.southwest.lat,y.northeast.lng,y.northeast.lat);else{let v=m.geometry.lat,C=m.geometry.lng;x=Z.fromDegrees(v,C)}return{displayName:m.formatted,destination:x}})})};var txt=dFe,Yzi={packedLength:void 0,pack:wt.throwInstantiationError,unpack:wt.throwInstantiationError},ixt=Yzi,Kzi={packedInterpolationLength:void 0,convertPackedArrayForInterpolation:wt.throwInstantiationError,unpackInterpolationResult:wt.throwInstantiationError},rxt=Kzi,Jzi=new Z;function jzi(o,f,m,x){let y=nue(o,f,m,x,Jzi);return F(y)?y.x>0&&y.y>0&&y.z>0:!1}var nxt=jzi;function oxt(){wt.throwInstantiationError()}oxt.prototype.getURL=wt.throwInstantiationError;var axt=oxt;function Qzi(o,f,m,x,y,v,C){let T=od.numberOfPoints(o,f,y),S,w=m.red,E=m.green,L=m.blue,I=m.alpha,R=x.red,P=x.green,A=x.blue,M=x.alpha;if(Xe.equals(m,x)){for(S=0;S<T;S++)v[C++]=Xe.floatToByte(w),v[C++]=Xe.floatToByte(E),v[C++]=Xe.floatToByte(L),v[C++]=Xe.floatToByte(I);return C}let V=(R-w)/T,G=(P-E)/T,D=(A-L)/T,N=(M-I)/T,k=C;for(S=0;S<T;S++)v[k++]=Xe.floatToByte(w+S*V),v[k++]=Xe.floatToByte(E+S*G),v[k++]=Xe.floatToByte(L+S*D),v[k++]=Xe.floatToByte(I+S*N);return k}function I6(o){o=o??si.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??qa.GEODESIC,this._granularity=o.granularity??be.RADIANS_PER_DEGREE,this._ellipsoid=o.ellipsoid??yi.default,this._workerName="createSimplePolylineGeometry";let y=1+f.length*Z.packedLength;y+=F(m)?1+m.length*Xe.packedLength:1,this.packedLength=y+yi.packedLength+3}I6.pack=function(o,f,m){m=m??0;let x,y=o._positions,v=y.length;for(f[m++]=v,x=0;x<v;++x,m+=Z.packedLength)Z.pack(y[x],f,m);let C=o._colors;for(v=F(C)?C.length:0,f[m++]=v,x=0;x<v;++x,m+=Xe.packedLength)Xe.pack(C[x],f,m);return yi.pack(o._ellipsoid,f,m),m+=yi.packedLength,f[m++]=o._colorsPerVertex?1:0,f[m++]=o._arcType,f[m]=o._granularity,f};I6.unpack=function(o,f,m){f=f??0;let x,y=o[f++],v=new Array(y);for(x=0;x<y;++x,f+=Z.packedLength)v[x]=Z.unpack(o,f);y=o[f++];let C=y>0?new Array(y):void 0;for(x=0;x<y;++x,f+=Xe.packedLength)C[x]=Xe.unpack(o,f);let T=yi.unpack(o,f);f+=yi.packedLength;let S=o[f++]===1,w=o[f++],E=o[f];return F(m)?(m._positions=v,m._colors=C,m._ellipsoid=T,m._colorsPerVertex=S,m._arcType=w,m._granularity=E,m):new I6({positions:v,colors:C,ellipsoid:T,colorsPerVertex:S,arcType:w,granularity:E})};var xae=new Array(2),gae=new Array(2),qzi={positions:xae,height:gae,ellipsoid:void 0,minDistance:void 0,granularity:void 0};I6.createGeometry=function(o){let f=o._positions,m=o._colors,x=o._colorsPerVertex,y=o._arcType,v=o._granularity,C=o._ellipsoid,T=be.chordLength(v,C.maximumRadius),S=F(m)&&!x,w,E=f.length,L,I,R,P,A=0;if(y===qa.GEODESIC||y===qa.RHUMB){let N,k,U;y===qa.GEODESIC?(N=be.chordLength(v,C.maximumRadius),k=od.numberOfPoints,U=od.generateArc):(N=v,k=od.numberOfPointsRhumbLine,U=od.generateRhumbArc);let B=od.extractHeights(f,C),Y=qzi;if(y===qa.GEODESIC?Y.minDistance=T:Y.granularity=v,Y.ellipsoid=C,S){let J=0;for(w=0;w<E-1;w++)J+=k(f[w],f[w+1],N)+1;L=new Float64Array(J*3),R=new Uint8Array(J*4),Y.positions=xae,Y.height=gae;let K=0;for(w=0;w<E-1;++w){xae[0]=f[w],xae[1]=f[w+1],gae[0]=B[w],gae[1]=B[w+1];let z=U(Y);if(F(m)){let j=z.length/3;P=m[w];for(let q=0;q<j;++q)R[K++]=Xe.floatToByte(P.red),R[K++]=Xe.floatToByte(P.green),R[K++]=Xe.floatToByte(P.blue),R[K++]=Xe.floatToByte(P.alpha)}L.set(z,A),A+=z.length}}else if(Y.positions=f,Y.height=B,L=new Float64Array(U(Y)),F(m)){for(R=new Uint8Array(L.length/3*4),w=0;w<E-1;++w){let K=f[w],z=f[w+1],j=m[w],q=m[w+1];A=Qzi(K,z,j,q,T,R,A)}let J=m[E-1];R[A++]=Xe.floatToByte(J.red),R[A++]=Xe.floatToByte(J.green),R[A++]=Xe.floatToByte(J.blue),R[A++]=Xe.floatToByte(J.alpha)}}else{I=S?E*2-2:E,L=new Float64Array(I*3),R=F(m)?new Uint8Array(I*4):void 0;let N=0,k=0;for(w=0;w<E;++w){let U=f[w];if(S&&w>0&&(Z.pack(U,L,N),N+=3,P=m[w-1],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha)),S&&w===E-1)break;Z.pack(U,L,N),N+=3,F(m)&&(P=m[w],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha))}}let M=new Zc;M.position=new Xr({componentDatatype:Qt.DOUBLE,componentsPerAttribute:3,values:L}),F(m)&&(M.color=new Xr({componentDatatype:Qt.UNSIGNED_BYTE,componentsPerAttribute:4,values:R,normalize:!0})),I=L.length/3;let V=(I-1)*2,G=Fn.createTypedArray(I,V),D=0;for(w=0;w<I-1;++w)G[D++]=w,G[D++]=w+1;return new xa({attributes:M,indices:G,primitiveType:pn.LINES,boundingSphere:Ei.fromPoints(f)})};var sxt=I6;function QH(o){let f=o.radius??1,m={radii:new Z(f,f,f),stackPartitions:o.stackPartitions,slicePartitions:o.slicePartitions,vertexFormat:o.vertexFormat};this._ellipsoidGeometry=new Jm(m),this._workerName="createSphereGeometry"}QH.packedLength=Jm.packedLength;QH.pack=function(o,f,m){return Jm.pack(o._ellipsoidGeometry,f,m)};var $zi=new Jm,O5={radius:void 0,radii:new Z,vertexFormat:new Yr,stackPartitions:void 0,slicePartitions:void 0};QH.unpack=function(o,f,m){let x=Jm.unpack(o,f,$zi);return O5.vertexFormat=Yr.clone(x._vertexFormat,O5.vertexFormat),O5.stackPartitions=x._stackPartitions,O5.slicePartitions=x._slicePartitions,F(m)?(Z.clone(x._radii,O5.radii),m._ellipsoidGeometry=new Jm(O5),m):(O5.radius=x._radii.x,new QH(O5))};QH.createGeometry=function(o){return Jm.createGeometry(o._ellipsoidGeometry)};var lxt=QH;function nD(o){}Object.defineProperties(nD.prototype,{ellipsoid:{get:wt.throwInstantiationError},rectangle:{get:wt.throwInstantiationError},projection:{get:wt.throwInstantiationError}});nD.prototype.getNumberOfXTilesAtLevel=wt.throwInstantiationError;nD.prototype.getNumberOfYTilesAtLevel=wt.throwInstantiationError;nD.prototype.rectangleToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToRectangle=wt.throwInstantiationError;nD.prototype.positionToTileXY=wt.throwInstantiationError;var uxt=nD;function L9(o){o=o??si.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??wn.MINIMUM_VALUE,this.tolerance=o.tolerance??1,this._seeking=!1,this._seekFunction=void 0,this._firstTickAfterSeek=!1}Object.defineProperties(L9.prototype,{clock:{get:function(){return this._clock},set:function(o){let f=this._clock;f!==o&&(F(f)&&(this._clockSubscription(),this._clockSubscription=void 0),F(o)&&(this._clockSubscription=o.onTick.addEventListener(L9.prototype._onTick,this)),this._clock=o)}},element:{get:function(){return this._element},set:function(o){let f=this._element;f!==o&&(F(f)&&f.removeEventListener("seeked",this._seekFunction,!1),F(o)&&(this._seeking=!1,this._seekFunction=e4i(this),o.addEventListener("seeked",this._seekFunction,!1)),this._element=o,this._seeking=!1,this._firstTickAfterSeek=!1)}}});L9.prototype.destroy=function(){return this.element=void 0,this.clock=void 0,yr(this)};L9.prototype.isDestroyed=function(){return!1};L9.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};L9.prototype._onTick=function(o){let f=this._element;if(!F(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 y=o.currentTime,v=this.epoch??wn.MINIMUM_VALUE,C=$t.secondsDifference(y,v),T=f.duration,S,w=f.currentTime;f.loop?(C=C%T,C<0&&(C=T-C),S=C):C>T?S=T:C<0?S=0:S=C;let E=x?this.tolerance??1:.001;Math.abs(S-w)>E&&(this._seeking=!0,f.currentTime=S)};function e4i(o){return function(){o._seeking=!1,o._firstTickAfterSeek=!0}}var cxt=L9;function t4i(o,f){this.rectangle=o,this.maxLevel=f}function hxt(o){this.ellipsoid=o.ellipsoid??yi.default,this.tilingScheme=void 0,this.heightmapWidth=void 0,this.heightmapHeight=void 0,this.levelZeroMaximumGeometricError=void 0,this.rectangles=[]}hxt.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 i4i(o,f){let m=f.getElementsByTagName("SRS")[0].textContent;if(m==="EPSG:4326")o.tilingScheme=new _h({ellipsoid:o.ellipsoid});else throw new Oi(`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=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.ellipsoid,Math.min(o.heightmapWidth,o.heightmapHeight),o.tilingScheme.getNumberOfXTilesAtLevel(0));let y=f.getElementsByTagName("DataExtent");for(let v=0;v<y.length;++v){let C=y[v],T=be.toRadians(parseFloat(C.getAttribute("minx"))),S=be.toRadians(parseFloat(C.getAttribute("miny"))),w=be.toRadians(parseFloat(C.getAttribute("maxx"))),E=be.toRadians(parseFloat(C.getAttribute("maxy"))),L=parseInt(C.getAttribute("maxlevel"),10);o.rectangles.push(new t4i(new vi(T,S,w,E),L))}}function r4i(o,f,m){let x=`An error occurred while accessing ${o.url}`;throw F(f)&&F(f.message)&&(x=`${x}: ${f.message}`),am.reportError(void 0,m,F(m)?m._errorEvent:void 0,x),new Oi(x)}async function n4i(o,f,m){try{let x=await f.fetchXML();i4i(o,x)}catch(x){r4i(f,x,m)}}function bF(o){o=o??si.EMPTY_OBJECT,this._errorEvent=new Tr,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 Oa(f)),this._credit=f,this._tilingScheme=void 0,this._rectangles=[]}Object.defineProperties(bF.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(){}}});bF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT;let m=new hxt(f),x=Mr.createIfNeeded(o);await n4i(m,x);let y=new bF(f);return m.build(y),y._resource=x,y};bF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._tilingScheme.getNumberOfYTilesAtLevel(m),v=this._resource.getDerivedResource({url:`${m}/${o}/${y-f-1}.tif`,queryParameters:{cesium:!0},request:x}).fetchImage({preferImageBitmap:!0});if(!F(v))return;let C=this;return Promise.resolve(v).then(function(T){return new yL({buffer:BZ(T),width:C._heightmapWidth,height:C._heightmapHeight,childTileMask:o4i(C,o,f,m),structure:C._terrainDataStructure})})};bF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};var dxt=new vi;function o4i(o,f,m,x){let y=o._tilingScheme,v=o._rectangles,C=y.tileXYToRectangle(f,m,x),T=0;for(let S=0;S<v.length&&T!==15;++S){let w=v[S];if(w.maxLevel<=x)continue;let E=w.rectangle,L=vi.intersection(E,C,dxt);F(L)&&(foe(y,E,f*2,m*2,x+1)&&(T|=4),foe(y,E,f*2+1,m*2,x+1)&&(T|=8),foe(y,E,f*2,m*2+1,x+1)&&(T|=1),foe(y,E,f*2+1,m*2+1,x+1)&&(T|=2))}return T}function foe(o,f,m,x,y){let v=o.tileXYToRectangle(m,x,y);return F(vi.intersection(v,f,dxt))}bF.prototype.getTileDataAvailable=function(o,f,m){};bF.prototype.loadTileDataAvailability=function(o,f,m){};var pxt=bF,a4i={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},fxt=Object.freeze(a4i);function s4i(o){switch(o){case bi.FLOAT:return"float";case bi.FLOAT_VEC2:return"vec2";case bi.FLOAT_VEC3:return"vec3";case bi.FLOAT_VEC4:return"vec4";case bi.FLOAT_MAT2:return"mat2";case bi.FLOAT_MAT3:return"mat3";case bi.FLOAT_MAT4:return"mat4";case bi.SAMPLER_2D:return"sampler2D";case bi.BOOL:return"bool"}}var mxt=s4i;function l4i(o,f,m){return function(){m.apply(o,arguments),f.apply(o,arguments)}}var pFe=l4i;function qH(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=o.width,x=o.height,y=o.depth,v=o.source,C=o.pixelFormat??zr.RGBA,T=o.pixelDataType??un.UNSIGNED_BYTE,S=zr.toInternalFormat(C,T,f);if(!F(m)||!F(x)||!F(y))throw new wt("options requires a source field to create an 3d texture. width or height or dimension fileds");if(Da.typeOf.number.greaterThan("width",m,0),m>co.maximumTextureSize)throw new wt("width must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("height",x,0),x>co.maximumTextureSize)throw new wt("height must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("dimensions",y,0),y>co.maximumTextureSize)throw new wt("dimension must be less than or equal to the maximum texture size");if(!zr.validate(C))throw new wt("Invalid options.pixelFormat.");if(!un.validate(T))throw new wt("Invalid options.pixelDatatype.");let w=!0,E=f._gl,L=E.TEXTURE_3D,I=E.createTexture();E.activeTexture(E.TEXTURE0),E.bindTexture(L,I);let R=4;if(F(v)&&F(v.arrayBufferView)&&(R=zr.alignmentInBytes(C,T,m)),E.pixelStorei(E.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),E.pixelStorei(E.UNPACK_FLIP_Y_WEBGL,!1),E.pixelStorei(E.UNPACK_ALIGNMENT,R),E.pixelStorei(E.UNPACK_COLORSPACE_CONVERSION_WEBGL,E.BROWSER_DEFAULT_WEBGL),F(v)&&F(v.arrayBufferView)){let P=v.arrayBufferView;E.texImage3D(L,0,S,m,x,y,0,C,un.toWebGLConstant(T,f),P),w=!0}E.bindTexture(L,null),this._id=du(),this._context=f,this._textureFilterAnisotropic=f._textureFilterAnisotropic,this._textureTarget=L,this._texture=I,this._internalFormat=S,this._pixelFormat=C,this._pixelDatatype=T,this._width=m,this._height=x,this._depth=y,this._dimensions=new Z(m,x,y),this._hasMinmap=!1,this._sizeInBytes=4,this._preMultiplyAlpha=!1,this._flipY=!1,this._initialized=w,this._sampler=void 0,this.sampler=F(o.sampler)?o.sampler:new Yo}qH.fromFramebuffer=function(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=f._gl,x=o.pixelFormat??zr.RGB,y=o.width??m.drawingBufferWidth,v=o.height??m.drawingBufferHeight,C=o.depth??128,T=o.framebuffer;return new qH({context:f,width:y,height:v,pixelFormat:x,source:{framebuffer:F(T)?T:f.defaultFramebuffer,width:y,height:v,depth:C}})};Object.defineProperties(qH.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,y=this._textureTarget;x.activeTexture(x.TEXTURE0),x.bindTexture(y,this._texture),x.texParameteri(y,x.TEXTURE_MIN_FILTER,f),x.texParameteri(y,x.TEXTURE_MAG_FILTER,m),x.texParameteri(y,x.TEXTURE_WRAP_R,o.wrapR),x.texParameteri(y,x.TEXTURE_WRAP_S,o.wrapS),x.texParameteri(y,x.TEXTURE_WRAP_T,o.wrapT),x.bindTexture(y,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}}});qH.prototype.isDestroyed=function(){return!1};qH.prototype.destory=function(){return this._context._gl.deleteTexture(this._texture),yr(this)};var fFe=qH,mFe=`uniform sampler2D u_noiseTexture; uniform vec3 u_noiseTextureDimensions; uniform float u_noiseDetail; in vec2 v_offset; @@ -20299,7 +20306,7 @@ #endif #endif } -`,eFe=`#ifdef INSTANCED +`,xFe=`#ifdef INSTANCED in vec2 direction; #endif in vec4 positionHighAndScaleX; @@ -20347,7 +20354,7 @@ v_slice = slice; v_brightness = brightness; } -`,tFe=`uniform vec3 u_noiseTextureDimensions; +`,gFe=`uniform vec3 u_noiseTextureDimensions; uniform float u_noiseDetail; uniform vec3 u_noiseOffset; in vec2 v_position; @@ -20439,7 +20446,7 @@ float worley2 = clamp(worleyFBMNoise(position, 3.0, 3.0), 0.0, 1.0); out_FragColor = vec4(worley0, worley1, worley2, 1.0); } -`,iFe=`uniform vec3 u_noiseTextureDimensions; +`,yFe=`uniform vec3 u_noiseTextureDimensions; in vec2 position; out vec2 v_position; @@ -20457,7 +20464,7 @@ transformedPos.y *= noiseTextureRows; v_position = transformedPos; } -`,rFe=` +`,_Fe=` in vec2 v_textureCoordinates; void main() @@ -20473,14 +20480,7 @@ out_FragColor = vec4(material.diffuse + material.emission, material.alpha); } -`;function F4(o,f){this._tilingScheme=o,this._maximumLevel=f,this._rootNodes=[]}var lZ=new vi;function DHi(o,f,m,x){let y=x.length;for(let v=0;v<y;++v){let C=x[v];if(C.x===f&&C.y===m&&C.level===o)return!0}return!1}F4.prototype.addAvailableTileRange=function(o,f,m,x,y){let v=this._tilingScheme,C=this._rootNodes;if(o===0)for(let I=m;I<=y;++I)for(let R=f;R<=x;++R)DHi(o,R,I,C)||C.push(new tB(v,void 0,0,R,I));v.tileXYToRectangle(f,m,o,lZ);let T=lZ.west,S=lZ.north;v.tileXYToRectangle(x,y,o,lZ);let w=lZ.east,E=lZ.south,L=new XHi(o,T,E,w,S);for(let I=0;I<C.length;++I){let R=C[I];nFe(R.extent,L)&&kHi(this._maximumLevel,R,L)}};F4.prototype.computeMaximumLevelAtPosition=function(o){let f;for(let m=0;m<this._rootNodes.length;++m){let x=this._rootNodes[m];if(iB(x.extent,o)){f=x;break}}return F(f)?Tj(void 0,f,o):-1};var NHi=[],WHi=[],ZHi=new vi,OHi=new vi;F4.prototype.computeBestAvailableLevelOverRectangle=function(o){let f=NHi;f.length=0,o.east<o.west?(f.push(vi.fromRadians(-Math.PI,o.south,o.east,o.north,ZHi)),f.push(vi.fromRadians(o.west,o.south,Math.PI,o.north,OHi))):f.push(o);let m=WHi;m.length=0;let x;for(x=0;x<this._rootNodes.length;++x)Sj(m,this._rootNodes[x],f);for(x=m.length-1;x>=0;--x)if(F(m[x])&&m[x].length===0)return x;return 0};var x7e=new Gt;F4.prototype.isTileAvailable=function(o,f,m){let x=this._tilingScheme.tileXYToRectangle(f,m,o,lZ);return vi.center(x,x7e),this.computeMaximumLevelAtPosition(x7e)>=o};F4.prototype.computeChildMaskForTile=function(o,f,m){let x=o+1;if(x>=this._maximumLevel)return 0;let y=0;return y|=this.isTileAvailable(x,2*f,2*m+1)?1:0,y|=this.isTileAvailable(x,2*f+1,2*m+1)?2:0,y|=this.isTileAvailable(x,2*f,2*m)?4:0,y|=this.isTileAvailable(x,2*f+1,2*m)?8:0,y};function tB(o,f,m,x,y){this.tilingScheme=o,this.parent=f,this.level=m,this.x=x,this.y=y,this.extent=o.tileXYToRectangle(x,y,m),this.rectangles=[],this._sw=void 0,this._se=void 0,this._nw=void 0,this._ne=void 0}Object.defineProperties(tB.prototype,{nw:{get:function(){return this._nw||(this._nw=new tB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2)),this._nw}},ne:{get:function(){return this._ne||(this._ne=new tB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2)),this._ne}},sw:{get:function(){return this._sw||(this._sw=new tB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2+1)),this._sw}},se:{get:function(){return this._se||(this._se=new tB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2+1)),this._se}}});function XHi(o,f,m,x,y){this.level=o,this.west=f,this.south=m,this.east=x,this.north=y}function nFe(o,f){let m=Math.max(o.west,f.west),x=Math.max(o.south,f.south),y=Math.min(o.east,f.east),v=Math.min(o.north,f.north);return x<v&&m<y}function kHi(o,f,m){for(;f.level<o;)if(coe(f.nw.extent,m))f=f.nw;else if(coe(f.ne.extent,m))f=f.ne;else if(coe(f.sw.extent,m))f=f.sw;else if(coe(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=Nx(f.rectangles,m.level,UHi);x<0&&(x=~x),f.rectangles.splice(x,0,m)}}function UHi(o,f){return o.level-f}function coe(o,f){return f.west>=o.west&&f.east<=o.east&&f.south>=o.south&&f.north<=o.north}function iB(o,f){return f.longitude>=o.west&&f.longitude<=o.east&&f.latitude>=o.south&&f.latitude<=o.north}function Tj(o,f,m){let x=0,y=!1;for(;!y;){let v=f._nw&&iB(f._nw.extent,m),C=f._ne&&iB(f._ne.extent,m),T=f._sw&&iB(f._sw.extent,m),S=f._se&&iB(f._se.extent,m);if(v+C+T+S>1){v&&(x=Math.max(x,Tj(f,f._nw,m))),C&&(x=Math.max(x,Tj(f,f._ne,m))),T&&(x=Math.max(x,Tj(f,f._sw,m))),S&&(x=Math.max(x,Tj(f,f._se,m)));break}else v?f=f._nw:C?f=f._ne:T?f=f._sw:S?f=f._se:y=!0}for(;f!==o;){let v=f.rectangles;for(let C=v.length-1;C>=0&&v[C].level>x;--C){let T=v[C];iB(T,m)&&(x=T.level)}f=f.parent}return x}function Sj(o,f,m){if(!f)return;let x,y=!1;for(x=0;x<m.length;++x)y=y||nFe(f.extent,m[x]);if(!y)return;let v=f.rectangles;for(x=0;x<v.length;++x){let C=v[x];o[C.level]||(o[C.level]=m),o[C.level]=BHi(o[C.level],C)}Sj(o,f._nw,m),Sj(o,f._ne,m),Sj(o,f._sw,m),Sj(o,f._se,m)}function BHi(o,f){let m=[];for(let x=0;x<o.length;++x){let y=o[x];nFe(y,f)?(y.west<f.west&&m.push(new vi(y.west,y.south,f.west,y.north)),y.east>f.east&&m.push(new vi(f.east,y.south,y.east,y.north)),y.south<f.south&&m.push(new vi(Math.max(f.west,y.west),y.south,Math.min(f.east,y.east),f.south)),y.north>f.north&&m.push(new vi(Math.max(f.west,y.west),f.north,Math.min(f.east,y.east),y.north))):m.push(y)}return m}var kG=F4,HHi=15;function bmt(o){this.ellipsoid=o.ellipsoid??yi.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}bmt.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 zHi(o,f){let m=f.copyrightText;F(m)&&(o.credit=new Oa(m));let x=f.spatialReference,y=x.latestWkid??x.wkid,v=f.extent,C={ellipsoid:o.ellipsoid};if(y===4326||y===4490)C.rectangle=vi.fromDegrees(v.xmin,v.ymin,v.xmax,v.ymax),o.tilingScheme=new _h(C);else if(y===3857){let S=Math.PI*o.ellipsoid.maximumRadius;f.extent.xmax>S&&(f.extent.xmax=S),f.extent.ymax>S&&(f.extent.ymax=S),f.extent.xmin<-S&&(f.extent.xmin=-S),f.extent.ymin<-S&&(f.extent.ymin=-S),C.rectangleSouthwestInMeters=new rt(v.xmin,v.ymin),C.rectangleNortheastInMeters=new rt(v.xmax,v.ymax),o.tilingScheme=new xp(C)}else throw new Oi("Invalid spatial reference");let T=f.tileInfo;if(!F(T))throw new Oi("tileInfo is required");o.width=T.rows+1,o.height=T.cols+1,o.encoding=T.format==="LERC"?dF.LERC:dF.NONE,o.lodCount=T.lods.length-1,(o.hasAvailability=f.capabilities.indexOf("Tilemap")!==-1)&&(o.tilesAvailable=new kG(o.tilingScheme,o.lodCount),o.tilesAvailable.addAvailableTileRange(0,0,0,o.tilingScheme.getNumberOfXTilesAtLevel(0),o.tilingScheme.getNumberOfYTilesAtLevel(0)),o.tilesAvailabilityLoaded=new kG(o.tilingScheme,o.lodCount)),o.levelZeroMaximumGeometricError=H_.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."),F(f.minValues)&&F(f.maxValues)?o.terrainDataStructure={elementMultiplier:1,lowestEncodedHeight:f.minValues[0],highestEncodedHeight:f.maxValues[0]}:o.terrainDataStructure={elementMultiplier:1}}async function YHi(o,f,m){try{let x=await f.fetchJson();zHi(o,x)}catch(x){let y=`An error occurred while accessing ${f}.`;throw am.reportError(void 0,m,F(m)?m._errorEvent:void 0,y),x}}function yF(o){o=o??si.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 Tr}Object.defineProperties(yF.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}}});yF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash(),F(f.token)&&(m=m.getDerivedResource({queryParameters:{token:f.token}}));let x=m.getDerivedResource({queryParameters:{f:"pjson"}}),y=new bmt(f);await YHi(y,x);let v=new yF(f);return y.build(v),v._resource=m,v};yF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._resource.getDerivedResource({url:`tile/${m}/${f}/${o}`,request:x}),v=this._hasAvailability,C=Promise.resolve(!0),T;if(v&&!F(oFe(this,m+1,o*2,f*2))){let L=Cmt(this,m+1,o*2,f*2);C=L.promise,T=L.request}let S=y.fetchArrayBuffer();if(!F(S)||!F(C))return;let w=this,E=this._tilesAvailable;return Promise.all([S,C]).then(function(L){return new yL({buffer:L[0],width:w._width,height:w._height,childTileMask:v?E.computeChildMaskForTile(m,o,f):HHi,structure:w._terrainDataStructure,encoding:w._encoding})}).catch(async function(L){if(F(T)&&T.state===pc.CANCELLED){x.cancel();try{await x.deferred?.promise}catch{}return x.state=pc.CANCELLED,Promise.reject(L)}return Promise.reject(L)})};function oFe(o,f,m,x){if(!o._hasAvailability)return;let y=o._tilesAvailabilityLoaded,v=o._tilesAvailable;if(f>o._lodCount)return!1;if(v.isTileAvailable(f,m,x))return!0;if(y.isTileAvailable(f,m,x))return!1}yF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};yF.prototype.getTileDataAvailable=function(o,f,m){if(!this._hasAvailability)return;let x=oFe(this,m,o,f);if(F(x))return x;Cmt(this,m,o,f)};yF.prototype.loadTileDataAvailability=function(o,f,m){};function KHi(o,f,m,x){let y=f-1,v=m-1,C=x[o.y*f+o.x],T=[],S={startX:o.x,startY:o.y,endX:0,endY:0},w=new rt(o.x+1,o.y+1),E=!1,L=!1;for(;!(E&&L);){let I=w.x,R=L?w.y+1:w.y;if(!E){for(let P=o.y;P<R;++P)if(x[P*f+w.x]!==C){E=!0;break}E?(T.push(new rt(w.x,o.y)),--w.x,--I,S.endX=w.x):w.x===y?(S.endX=w.x,E=!0):++w.x}if(!L){let P=w.y*f;for(let A=o.x;A<=I;++A)if(x[P+A]!==C){L=!0;break}L?(T.push(new rt(o.x,w.y)),--w.y,S.endY=w.y):w.y===v?(S.endY=w.y,L=!0):++w.y}}return{endingIndices:T,range:S,value:C}}function JHi(o,f,m,x,y){let v=[];if(y.every(function(T){return T===y[0]}))return y[0]===1&&v.push({startX:o,startY:f,endX:o+m-1,endY:f+x-1}),v;let C=[new rt(0,0)];for(;C.length>0;){let T=C.pop(),S=KHi(T,m,x,y);if(S.value===1){let E=S.range;E.startX+=o,E.endX+=o,E.startY+=f,E.endY+=f,v.push(E)}let w=S.endingIndices;w.length>0&&(C=C.concat(w))}return v}function Cmt(o,f,m,x){if(!o._hasAvailability)return{};let y=Math.floor(m/128)*128,v=Math.floor(x/128)*128,C=Math.min(1<<f,128),T=`tilemap/${f}/${v}/${y}/${C}/${C}`,S=o._availableCache;if(F(S[T]))return S[T];let w=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN}),E=o._resource.getDerivedResource({url:T,request:w}).fetchJson();return F(E)?(E=E.then(function(L){let I=JHi(y,v,C,C,L.data);o._tilesAvailabilityLoaded.addAvailableTileRange(f,y,v,y+C,v+C);let R=o._tilesAvailable;for(let P=0;P<I.length;++P){let A=I[P];R.addAvailableTileRange(f,A.startX,A.startY,A.endX,A.endY)}return oFe(o,f,m,x)}),S[T]={promise:E,request:w},E=E.finally(function(L){return delete S[T],L}),{promise:E,request:w}):{}}var fde=yF,Tmt="https://dev.virtualearth.net/REST/v1/Locations";function aFe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._key=f;let m={key:f};F(o.culture)&&(m.culture=o.culture),this._resource=new Mr({url:Tmt,queryParameters:m}),this._credit=new Oa('<img src="http://dev.virtualearth.net/Branding/logo_powered_by.png"/>',!1)}Object.defineProperties(aFe.prototype,{url:{get:function(){return Tmt}},key:{get:function(){return this._key}},credit:{get:function(){return this._credit}}});aFe.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,y=x[0],v=x[1],C=x[2],T=x[3];return{displayName:m.name,destination:vi.fromDegrees(v,y,T,C)}})})};var Smt=aFe;function sFe(){}Object.defineProperties(sFe.prototype,{credit:{get:function(){}}});sFe.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],y=f.length===3?+f[2]:300;if(isNaN(m)&&isNaN(x)){let v=/^(\d+.?\d*)([nsew])/i;for(let C=0;C<f.length;++C){let T=f[C].match(v);v.test(f[C])&&T.length===3&&(/^[ns]/i.test(T[2])?x=/^[n]/i.test(T[2])?+T[1]:-T[1]:/^[ew]/i.test(T[2])&&(m=/^[e]/i.test(T[2])?+T[1]:-T[1]))}}if(!isNaN(m)&&!isNaN(x)&&!isNaN(y)){let v={displayName:o,destination:Z.fromDegrees(m,x,y)};return Promise.resolve([v])}}return Promise.resolve([])};var wmt=sFe,jHi=new zt,g7e=new Z,HU=new Z;function QHi(o){let f=o.points,m=o.times;if(f.length<3){let x=m[0],y=1/(m[1]-x),v=f[0],C=f[1];return function(T,S){F(S)||(S=new Z);let w=(T-x)*y;return Z.lerp(v,C,w,S)}}return function(x,y){F(y)||(y=new Z);let v=o._lastTimeIndex=o.findTimeInterval(x,o._lastTimeIndex),C=(x-m[v])/(m[v+1]-m[v]),T=jHi;T.z=C,T.y=C*C,T.x=T.y*C,T.w=1;let S,w,E,L,I;return v===0?(S=f[0],w=f[1],E=o.firstTangent,L=Z.subtract(f[2],S,g7e),Z.multiplyByScalar(L,.5,L),I=Ee.multiplyByVector(p6.hermiteCoefficientMatrix,T,T)):v===f.length-2?(S=f[v],w=f[v+1],L=o.lastTangent,E=Z.subtract(w,f[v-1],g7e),Z.multiplyByScalar(E,.5,E),I=Ee.multiplyByVector(p6.hermiteCoefficientMatrix,T,T)):(S=f[v-1],w=f[v],E=f[v+1],L=f[v+2],I=Ee.multiplyByVector(rD.catmullRomCoefficientMatrix,T,T)),y=Z.multiplyByScalar(S,I.x,y),Z.multiplyByScalar(w,I.y,HU),Z.add(y,HU,y),Z.multiplyByScalar(E,I.z,HU),Z.add(y,HU,y),Z.multiplyByScalar(L,I.w,HU),Z.add(y,HU,y)}}var qHi=new Z,$Hi=new Z;function rD(o){o=o??si.EMPTY_OBJECT;let f=o.points,m=o.times,x=o.firstTangent,y=o.lastTangent;if(f.length>2&&(F(x)||(x=qHi,Z.multiplyByScalar(f[1],2,x),Z.subtract(x,f[2],x),Z.subtract(x,f[0],x),Z.multiplyByScalar(x,.5,x)),!F(y))){let v=f.length-1;y=$Hi,Z.multiplyByScalar(f[v-1],2,y),Z.subtract(f[v],y,y),Z.add(y,f[v-2],y),Z.multiplyByScalar(y,.5,y)}this._times=m,this._points=f,this._firstTangent=Z.clone(x),this._lastTangent=Z.clone(y),this._evaluateFunction=QHi(this),this._lastTimeIndex=0}Object.defineProperties(rD.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}}});rD.catmullRomCoefficientMatrix=new Ee(-.5,1,-.5,0,1.5,-2.5,0,1,-1.5,2,.5,0,.5,-.5,0,0);rD.prototype.findTimeInterval=B0.prototype.findTimeInterval;rD.prototype.wrapTime=B0.prototype.wrapTime;rD.prototype.clampTime=B0.prototype.clampTime;rD.prototype.evaluate=function(o,f){return this._evaluateFunction(o,f)};var Emt=rD,mde={};mde.clipTriangleAtAxisAlignedThreshold=function(o,f,m,x,y,v){F(v)?v.length=0:v=[];let C,T,S;f?(C=m<o,T=x<o,S=y<o):(C=m>o,T=x>o,S=y>o);let w=C+T+S,E,L,I,R,P,A;return w===1?C?(E=(o-m)/(x-m),L=(o-m)/(y-m),v.push(1),v.push(2),L!==1&&(v.push(-1),v.push(0),v.push(2),v.push(L)),E!==1&&(v.push(-1),v.push(0),v.push(1),v.push(E))):T?(I=(o-x)/(y-x),R=(o-x)/(m-x),v.push(2),v.push(0),R!==1&&(v.push(-1),v.push(1),v.push(0),v.push(R)),I!==1&&(v.push(-1),v.push(1),v.push(2),v.push(I))):S&&(P=(o-y)/(m-y),A=(o-y)/(x-y),v.push(0),v.push(1),A!==1&&(v.push(-1),v.push(2),v.push(1),v.push(A)),P!==1&&(v.push(-1),v.push(2),v.push(0),v.push(P))):w===2?!C&&m!==o?(R=(o-x)/(m-x),P=(o-y)/(m-y),v.push(0),v.push(-1),v.push(1),v.push(0),v.push(R),v.push(-1),v.push(2),v.push(0),v.push(P)):!T&&x!==o?(A=(o-y)/(x-y),E=(o-m)/(x-m),v.push(1),v.push(-1),v.push(2),v.push(1),v.push(A),v.push(-1),v.push(0),v.push(1),v.push(E)):!S&&y!==o&&(L=(o-m)/(y-m),I=(o-x)/(y-x),v.push(2),v.push(-1),v.push(0),v.push(2),v.push(L),v.push(-1),v.push(1),v.push(2),v.push(I)):w!==3&&(v.push(0),v.push(1),v.push(2)),v};mde.computeBarycentricCoordinates=function(o,f,m,x,y,v,C,T,S){let w=m-C,E=C-y,L=v-T,I=x-T,R=1/(L*w+E*I),P=f-T,A=o-C,M=(L*A+E*P)*R,V=(-I*A+w*P)*R,G=1-M-V;return F(S)?(S.x=M,S.y=V,S.z=G,S):new Z(M,V,G)};mde.computeLineSegmentLineSegmentIntersection=function(o,f,m,x,y,v,C,T,S){let w=(C-y)*(f-v)-(T-v)*(o-y),E=(m-o)*(f-v)-(x-f)*(o-y),L=(T-v)*(m-o)-(C-y)*(x-f);if(L===0)return;let I=w/L,R=E/L;if(I>=0&&I<=1&&R>=0&&R<=1)return F(S)||(S=new rt),S.x=o+I*(m-o),S.y=f+I*(x-f),S};var D4=mde;function _F(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 y(C,T){return x[C]-x[T]}function v(C,T){return m[C]-m[T]}this._westIndices=doe(o.westIndices,y,f),this._southIndices=doe(o.southIndices,v,f),this._eastIndices=doe(o.eastIndices,y,f),this._northIndices=doe(o.northIndices,v,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(_F.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}},canUpsample:{get:function(){return F(this._mesh)}}});var hoe=[];function doe(o,f,m){hoe.length=o.length;let x=!1;for(let y=0,v=o.length;y<v;++y)hoe[y]=o[y],x=x||y>0&&f(o[y-1],o[y])>0;return x?(hoe.sort(f),Fn.createTypedArray(m,hoe)):o}var Lmt="createVerticesFromQuantizedTerrainMesh",ezi=new mp(Lmt),tzi=new mp(Lmt,yO.maximumAsynchronousTasks);_F.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid,w=f.tileXYToRectangle(m,x,y),E=(T?tzi:ezi).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:w,relativeToCenter:this._boundingSphere.center,ellipsoid:S,exaggeration:v,exaggerationRelativeHeight:C,flattenPolygonHeight:this._flattenPolygonHeight,flattenPolygon:this._flattenPolygon});if(!F(E))return;let L=this;return Promise.resolve(E).then(function(I){let R=L._quantizedVertices.length/3,P=R+L._westIndices.length+L._southIndices.length+L._eastIndices.length+L._northIndices.length,A=Fn.createTypedArray(P,I.indices),M=new Float32Array(I.vertices),V=I.center,G=I.minimumHeight,D=I.maximumHeight,N=L._boundingSphere,k=L._orientedBoundingBox,U=Z.clone(I.occludeePointInScaledSpace)??L._horizonOcclusionPoint,B=I.vertexStride,Y=PS.clone(I.encoding);return L._mesh=new _O(V,M,A,I.indexCountWithoutSkirts,R,G,D,N,U,B,k,Y,I.westIndicesSouthToNorth,I.southIndicesEastToWest,I.eastIndicesNorthToSouth,I.northIndicesWestToEast),L._quantizedVertices=void 0,L._encodedNormals=void 0,L._indices=void 0,L._uValues=void 0,L._vValues=void 0,L._heightValues=void 0,L._westIndices=void 0,L._southIndices=void 0,L._eastIndices=void 0,L._northIndices=void 0,L._mesh})};var izi=new mp("upsampleQuantizedTerrainMesh",yO.maximumAsynchronousTasks);_F.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=izi.scheduleTask({vertices:T.vertices,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=Math.min(this._westSkirtHeight,this._eastSkirtHeight);R=Math.min(R,this._southSkirtHeight),R=Math.min(R,this._northSkirtHeight);let P=S?R*.5:this._westSkirtHeight,A=w?R*.5:this._southSkirtHeight,M=S?this._eastSkirtHeight:R*.5,V=w?this._northSkirtHeight:R*.5,G=this._credits,D=this;return Promise.resolve(I).then(function(N){let k=new Uint16Array(N.vertices),U=Fn.createTypedArray(k.length/3,N.indices),B;return F(N.encodedNormals)&&(B=new Uint8Array(N.encodedNormals)),new _F({quantizedVertices:k,indices:U,encodedNormals:B,minimumHeight:N.minimumHeight,maximumHeight:N.maximumHeight,boundingSphere:Ei.clone(N.boundingSphere),orientedBoundingBox:Tu.clone(N.orientedBoundingBox),horizonOcclusionPoint:Z.clone(N.horizonOcclusionPoint),westIndices:N.westIndices,southIndices:N.southIndices,eastIndices:N.eastIndices,northIndices:N.northIndices,westSkirtHeight:P,southSkirtHeight:A,eastSkirtHeight:M,northSkirtHeight:V,childTileMask:0,credits:G,createdByUpsampling:!0,flattenPolygonHeight:D._flattenPolygonHeight,flattenPolygon:D._flattenPolygon,flattenRectangle:D._flattenRectangle})})};var O1e=32767,Pmt=new Z;_F.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1);x*=O1e;let y=be.clamp((m-o.south)/o.height,0,1);return y*=O1e,F(this._mesh)?azi(this,x,y):szi(this,x,y)};function Imt(o,f,m,x,y,v,C,T){let S=Math.min(m,y,C),w=Math.max(m,y,C),E=Math.min(x,v,T),L=Math.max(x,v,T);return o>=S&&o<=w&&f>=E&&f<=L}var rzi=new rt,nzi=new rt,ozi=new rt;function azi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,rzi),R=v.decodeTextureCoordinates(y,E,nzi),P=v.decodeTextureCoordinates(y,L,ozi);if(Imt(f,m,I.x,I.y,R.x,R.y,P.x,P.y)){let A=D4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,Pmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}}function szi(o,f,m){let x=o._uValues,y=o._vValues,v=o._heightValues,C=o._indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=x[w],R=x[E],P=x[L],A=y[w],M=y[E],V=y[L];if(Imt(f,m,I,A,R,M,P,V)){let G=D4.computeBarycentricCoordinates(f,m,I,A,R,M,P,V,Pmt);if(G.x>=-1e-15&&G.y>=-1e-15&&G.z>=-1e-15){let D=G.x*v[w]+G.y*v[E]+G.z*v[L];return be.lerp(o._minimumHeight,o._maximumHeight,D/O1e)}}}}_F.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};_F.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var xde=_F;function lzi(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 Rmt(o){this.requestVertexNormals=o.requestVertexNormals??!1,this.requestWaterMask=o.requestWaterMask??!1,this.requestMetadata=o.requestMetadata??!0,this.ellipsoid=o.ellipsoid??yi.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=[]}Rmt.prototype.build=function(o){o._heightmapWidth=this.heightmapWidth,o._scheme=this.scheme;let f=F(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 Amt(o,f,m){if(!f.format){let M="The tile format is not specified in the layer.json file.";throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(!f.tiles||f.tiles.length===0){let M="The layer.json file does not specify any tile URL templates.";throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let x=!1,y=!1,v=!1,C=!0,T=!1;if(f.format==="heightmap-1.0")T=!0,F(o.heightmapStructure)||(o.heightmapStructure={heightScale:1/5,heightOffset:-1e3,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1,lowestEncodedHeight:0,highestEncodedHeight:256*256-1}),y=!0,o.requestWaterMask=!0;else if(f.format.indexOf("quantized-mesh-1.")!==0){let M=`The tile format "${f.format}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let S=f.tiles,w=f.maxzoom;o.overallMaxZoom=Math.max(o.overallMaxZoom,w);let E=[];if(F(f.valid_bounds)?E=f.valid_bounds:E=f.bounds,!f.projection||f.projection==="EPSG:4326")o.tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]});else if(f.projection==="EPSG:3857"){let M=Math.PI*o.ellipsoid.maximumRadius;E[0]<-M&&(E[0]=-M),E[1]<-M&&(E[1]=-M),E[2]>M&&(E[2]=M),E[3]>M&&(E[3]=M),o.tilingScheme=new xp({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]})}else{let M=`The projection "${f.projection}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.heightmapWidth,o.tilingScheme.getNumberOfXTilesAtLevel(0)),!f.scheme||f.scheme==="tms"||f.scheme==="slippyMap")o.scheme=f.scheme;else{let M=`The scheme "${f.scheme}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let L;F(f.extensions)&&f.extensions.indexOf("octvertexnormals")!==-1?x=!0:F(f.extensions)&&f.extensions.indexOf("vertexnormals")!==-1&&(x=!0,C=!1),F(f.extensions)&&f.extensions.indexOf("watermask")!==-1&&(y=!0),F(f.extensions)&&f.extensions.indexOf("metadata")!==-1&&(v=!0);let I=f.metadataAvailability,R=f.available,P;if(F(R)&&!F(I)){P=new kG(o.tilingScheme,R.length);for(let M=0;M<R.length;++M){let V=R[M],G=o.tilingScheme.getNumberOfYTilesAtLevel(M);F(o.overallAvailability[M])||(o.overallAvailability[M]=[]);for(let D=0;D<V.length;++D){let N=V[D],k=G-N.endY-1,U=G-N.startY-1;o.overallAvailability[M].push([N.startX,k,N.endX,U]),P.addAvailableTileRange(M,N.startX,k,N.endX,U)}}}else F(I)&&(L=new kG(o.tilingScheme,w),P=new kG(o.tilingScheme,w),o.overallAvailability[0]=[[0,0,1,0]],P.addAvailableTileRange(0,0,0,1,0));o.hasWaterMask=o.hasWaterMask||y,o.hasVertexNormals=o.hasVertexNormals||x,o.hasMetadata=o.hasMetadata||v,F(f.attribution)&&(o.attribution.length>0&&(o.attribution+=" "),o.attribution+=f.attribution),o.layers.push(new lzi({resource:o.lastResource,version:f.version,isHeightmap:T,tileUrlTemplates:S,availability:P,hasVertexNormals:x,hasWaterMask:y,hasMetadata:v,availabilityLevels:I,availabilityTilesLoaded:L,littleEndianExtensionSize:C}));let A=f.parentUrl;return F(A)?F(P)?(o.lastResource=o.lastResource.getDerivedResource({url:A}),o.lastResource.appendForwardSlash(),o.layerJsonResource=o.lastResource.getDerivedResource({url:"layer.json"}),await lFe(o),!0):(console.log("A layer.json can't have a parentUrl if it does't have an available array."),!0):!0}function uzi(o,f,m){let x=`An error occurred while accessing ${o.layerJsonResource.url}.`;if(F(f)&&(x+=` -${f.message}`),o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,x),o.previousError.retry)return lFe(o,m);throw new Oi(x)}async function czi(o,f,m){await Amt(o,f,m);let x=o.overallAvailability.length;if(x>0){let y=o.availability=new kG(o.tilingScheme,o.overallMaxZoom);for(let v=0;v<x;++v){let C=o.overallAvailability[v];for(let T=0;T<C.length;++T){let S=C[T];y.addAvailableTileRange(v,S[0],S[1],S[2],S[3])}}}if(o.attribution.length>0){let y=new Oa(o.attribution);o.tileCredits.push(y)}return!0}async function lFe(o,f){try{let m=await o.layerJsonResource.fetchJson();return czi(o,m,f)}catch(m){return F(m)&&m.statusCode===404?(await Amt(o,{tilejson:"2.1.0",format:"heightmap-1.0",version:"1.0.0",scheme:"tms",tiles:["{z}/{x}/{y}.terrain?v={version}"]},f),!0):uzi(o,m,f)}}function iL(o){o=o??si.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 Tr;let f=o.credit;typeof f=="string"&&(f=new Oa(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 Nve={OCT_VERTEX_NORMALS:1,WATER_MASK:2,METADATA:4};function y7e(o){return!F(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 hzi(o,f,m,x,y){let v=new Uint16Array(f,0,o._heightmapWidth*o._heightmapWidth);return new yL({buffer:v,childTileMask:new Uint8Array(f,v.byteLength,1)[0],waterMask:new Uint8Array(f,v.byteLength+1,f.byteLength-v.byteLength-1),width:o._heightmapWidth,height:o._heightmapWidth,structure:o._heightmapStructure,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon})}function dzi(o,f,m,x,y,v){let C=v.littleEndianExtensionSize,T=0,S=3,w=S+1,E=Float64Array.BYTES_PER_ELEMENT*S,L=Float64Array.BYTES_PER_ELEMENT*w,I=Uint16Array.BYTES_PER_ELEMENT*3,R=3,P=Uint16Array.BYTES_PER_ELEMENT,A=P*R,M=new DataView(f),V=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let G=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let D=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let N=new Ei(new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0)),M.getFloat64(T+E,!0));T+=L;let k=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let U=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let B=new Uint16Array(f,T,U*3);T+=U*I,U>64*1024&&(P=Uint32Array.BYTES_PER_ELEMENT,A=P*R);let Y=B.subarray(0,U),J=B.subarray(U,2*U),K=B.subarray(U*2,3*U);Ru.zigZagDeltaDecode(Y,J,K),T%P!==0&&(T+=P-T%P);let z=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let j=Fn.createTypedArrayFromArrayBuffer(U,f,T,z*R);T+=z*A;let q=0,O=j.length;for(let Se=0;Se<O;++Se){let Le=j[Se];j[Se]=q-Le,Le===0&&++q}let te=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ie=Fn.createTypedArrayFromArrayBuffer(U,f,T,te);T+=te*P;let re=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ee=Fn.createTypedArrayFromArrayBuffer(U,f,T,re);T+=re*P;let ae=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let oe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ae);T+=ae*P;let ce=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let pe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ce);T+=ce*P;let ue,he;for(;T<M.byteLength;){let Se=M.getUint8(T,!0);T+=Uint8Array.BYTES_PER_ELEMENT;let Le=M.getUint32(T,C);if(T+=Uint32Array.BYTES_PER_ELEMENT,Se===Nve.OCT_VERTEX_NORMALS&&o._requestVertexNormals)ue=new Uint8Array(f,T,U*2);else if(Se===Nve.WATER_MASK&&o._requestWaterMask)he=new Uint8Array(f,T,Le);else if(Se===Nve.METADATA&&o._requestMetadata){let Ve=M.getUint32(T,!0);if(Ve>0){let Oe=Q_(new Uint8Array(f),T+Uint32Array.BYTES_PER_ELEMENT,Ve).available;if(F(Oe))for(let $e=0;$e<Oe.length;++$e){let at=m+$e+1,dt=Oe[$e],gt=o._tilingScheme.getNumberOfYTilesAtLevel(at);for(let Et=0;Et<dt.length;++Et){let et=dt[Et],yt=gt-et.endY-1,Rt=gt-et.startY-1;o.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt),v.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt)}}}v.availabilityTilesLoaded.addAvailableTileRange(m,x,y,x,y)}T+=Le}let fe=o.getLevelMaximumGeometricError(m)*5,de=o._tilingScheme.tileXYToRectangle(x,y,m),Ce=Tu.fromRectangle(de,G,D,o._tilingScheme.ellipsoid);return new xde({center:V,minimumHeight:G,maximumHeight:D,boundingSphere:N,orientedBoundingBox:Ce,horizonOcclusionPoint:k,quantizedVertices:B,encodedNormals:ue,indices:j,westIndices:ie,southIndices:ee,eastIndices:oe,northIndices:pe,westSkirtHeight:fe,southSkirtHeight:fe,eastSkirtHeight:fe,northSkirtHeight:fe,childTileMask:o.availability.computeChildMaskForTile(m,x,y),waterMask:he,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon,flattenRectangle:{rectangle:de,minimumHeight:G,maximumHeight:D,ellipsoid:o._tilingScheme.ellipsoid}})}iL.prototype.requestTileGeometry=function(o,f,m,x){let y=this._layers,v,C=y.length,T=!1,S=Promise.resolve();if(C===1)v=y[0];else for(let w=0;w<C;++w){let E=y[w];if(!F(E.availability)||E.availability.isTileAvailable(m,o,f)){v=E;break}let L=uFe(this,o,f,m,E,w===0);L.result&&(T=!0,S=S.then(()=>L.promise))}return!F(v)&&T?S.then(()=>new Promise(w=>{setTimeout(()=>{let E=this.requestTileGeometry(o,f,m,x);w(E)},0)})):Mmt(this,o,f,m,v,x)};function Mmt(o,f,m,x,y,v){if(!F(y))return Promise.reject(new Oi("Terrain tile doesn't exist"));let C=y.tileUrlTemplates;if(C.length===0)return;let T;!o._scheme||o._scheme==="tms"?T=o._tilingScheme.getNumberOfYTilesAtLevel(x)-m-1:T=m;let S=[];o._requestVertexNormals&&y.hasVertexNormals&&S.push(y.littleEndianExtensionSize?"octvertexnormals":"vertexnormals"),o._requestWaterMask&&y.hasWaterMask&&S.push("watermask"),o._requestMetadata&&y.hasMetadata&&S.push("metadata");let w,E,L=C[(f+T+x)%C.length],I=y.resource;F(I._ionEndpoint)&&!F(I._ionEndpoint.externalType)?(S.length!==0&&(E={extensions:S.join("-")}),w=y7e(void 0)):w=y7e(S);let R=I.getDerivedResource({url:L,templateValues:{version:y.version,z:x,x:f,y:T},queryParameters:E,headers:w,request:v}).fetchArrayBuffer();if(F(R))return R.then(function(P){return F(P)?F(o._heightmapStructure)?hzi(o,P,x,f,m):dzi(o,P,x,f,m,y):Promise.reject(new Oi("Mesh buffer doesn't exist."))})}Object.defineProperties(iL.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}}});iL.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};iL.fromIonAssetId=async function(o,f){let m=await FG.fromAssetId(o);return iL.fromUrl(m,f)};iL.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash();let x=new Rmt(f);x.lastResource=m,x.layerJsonResource=x.lastResource.getDerivedResource({url:"layer.json"}),await lFe(x);let y=new iL(f);return x.build(y),y};iL.prototype.getTileDataAvailable=function(o,f,m){if(!F(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,y=x.length;for(let v=0;v<y;++v)if(uFe(this,o,f,m,x[v],v===0).result)return;return!1};iL.prototype.loadTileDataAvailability=function(o,f,m){if(!F(this._availability)||m>this._availability._maximumLevel||this._availability.isTileAvailable(m,o,f)||!this._hasMetadata)return;let x=this._layers,y=x.length;for(let v=0;v<y;++v){let C=uFe(this,o,f,m,x[v],v===0);if(F(C.promise))return C.promise}};function X1e(o,f,m,x){if(x===0)return;let y=o.availabilityLevels,v=x%y===0?x-y:(x/y|0)*y,C=1<<x-v,T=f/C|0,S=m/C|0;return{level:v,x:T,y:S}}function uFe(o,f,m,x,y,v){if(!F(y.availabilityLevels))return{result:!1};let C,T=function(){delete y.availabilityPromiseCache[C]},S=y.availabilityTilesLoaded,w=y.availability,E=X1e(y,f,m,x);for(;F(E);){if(w.isTileAvailable(E.level,E.x,E.y)&&!S.isTileAvailable(E.level,E.x,E.y)){let L;if(!v&&(C=`${E.level}-${E.x}-${E.y}`,L=y.availabilityPromiseCache[C],!F(L))){let I=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});L=Mmt(o,E.x,E.y,E.level,y,I),F(L)&&(y.availabilityPromiseCache[C]=L,L.then(T))}return{result:!0,promise:L}}E=X1e(y,E.x,E.y,E.level)}return{result:!1}}iL._getAvailabilityTile=X1e;var N4=iL;function JM(o){o=o??si.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 TS(m),this._workerName="createCircleGeometry"}JM.packedLength=TS.packedLength;JM.pack=function(o,f,m){return TS.pack(o._ellipseGeometry,f,m)};var _7e=new TS({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),dy={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new Yr,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};JM.unpack=function(o,f,m){let x=TS.unpack(o,f,_7e);return dy.center=Z.clone(x._center,dy.center),dy.ellipsoid=yi.clone(x._ellipsoid,dy.ellipsoid),dy.ellipsoid=yi.clone(x._ellipsoid,_7e._ellipsoid),dy.height=x._height,dy.extrudedHeight=x._extrudedHeight,dy.granularity=x._granularity,dy.vertexFormat=Yr.clone(x._vertexFormat,dy.vertexFormat),dy.stRotation=x._stRotation,dy.shadowVolume=x._shadowVolume,F(m)?(dy.semiMajorAxis=x._semiMajorAxis,dy.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new TS(dy),m):(dy.radius=x._semiMajorAxis,new JM(dy))};JM.createGeometry=function(o){return TS.createGeometry(o._ellipseGeometry)};JM.createShadowVolume=function(o,f,m){let x=o._ellipseGeometry._granularity,y=o._ellipseGeometry._ellipsoid,v=f(x,y),C=m(x,y);return new JM({center:o._ellipseGeometry._center,radius:o._ellipseGeometry._semiMajorAxis,ellipsoid:y,stRotation:o._ellipseGeometry._stRotation,granularity:x,extrudedHeight:v,height:C,vertexFormat:Yr.POSITION_ONLY,shadowVolume:!0})};Object.defineProperties(JM.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var Vmt=JM;function QH(o){o=o??si.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 LI(m),this._workerName="createCircleOutlineGeometry"}QH.packedLength=LI.packedLength;QH.pack=function(o,f,m){return LI.pack(o._ellipseGeometry,f,m)};var pzi=new LI({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),BC={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};QH.unpack=function(o,f,m){let x=LI.unpack(o,f,pzi);return BC.center=Z.clone(x._center,BC.center),BC.ellipsoid=yi.clone(x._ellipsoid,BC.ellipsoid),BC.height=x._height,BC.extrudedHeight=x._extrudedHeight,BC.granularity=x._granularity,BC.numberOfVerticalLines=x._numberOfVerticalLines,F(m)?(BC.semiMajorAxis=x._semiMajorAxis,BC.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new LI(BC),m):(BC.radius=x._semiMajorAxis,new QH(BC))};QH.createGeometry=function(o){return LI.createGeometry(o._ellipseGeometry)};var Gmt=QH;function fzi(o){return o=o??si.EMPTY_OBJECT,N4.fromIonAssetId(2426648,{requestVertexNormals:o.requestVertexNormals??!1})}var cFe=fzi;function mzi(o){return o=o??si.EMPTY_OBJECT,N4.fromIonAssetId(1,{requestVertexNormals:o.requestVertexNormals??!1,requestWaterMask:o.requestWaterMask??!1,ellipsoid:yi.WGS84})}var gde=mzi;function W4(o){o=o??si.EMPTY_OBJECT,this._callback=o.callback,this._tilingScheme=o.tilingScheme,F(this._tilingScheme)||(this._tilingScheme=new _h({ellipsoid:o.ellipsoid??yi.default})),this._width=o.width,this._height=o.height;let f=Math.max(this._width,this._height);this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new Tr;let m=o.credit;typeof m=="string"&&(m=new Oa(m)),this._credit=m}Object.defineProperties(W4.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}}});W4.prototype.requestTileGeometry=function(o,f,m,x){let y=this._callback(o,f,m);if(!F(y))return;let v=this._width,C=this._height;return Promise.resolve(y).then(function(T){let S=T;return Array.isArray(S)&&(S=new Float64Array(S)),new yL({buffer:S,width:v,height:C})})};W4.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};W4.prototype.getTileDataAvailable=function(o,f,m){};W4.prototype.loadTileDataAvailability=function(o,f,m){};var Fmt=W4,xzi=1953029805,gzi=2917034100;function hFe(o,f){if(hFe.passThroughDataForTesting)return f;let m=o.byteLength;if(m===0||m%4!==0)throw new Oi("The length of key must be greater than 0 and a multiple of 4.");let x=new DataView(f),y=x.getUint32(0,!0);if(y===xzi||y===gzi)return f;let v=new DataView(o),C=0,T=f.byteLength,S=T-T%8,w=m,E,L=8;for(;C<S;)for(L=(L+8)%24,E=L;C<S&&E<w;)x.setUint32(C,x.getUint32(C,!0)^v.getUint32(E,!0),!0),x.setUint32(C+4,x.getUint32(C+4,!0)^v.getUint32(E+4,!0),!0),C+=8,E+=24;if(C<T)for(E>=w&&(L=(L+8)%24,E=L);C<T;)x.setUint8(C,x.getUint8(C)^v.getUint8(E)),C++,E++}hFe.passThroughDataForTesting=!1;var dFe=hFe;function Dmt(o){this.proxy=o}Dmt.prototype.getURL=function(o){let f=this.proxy.indexOf("?")===-1?"?":"";return this.proxy+f+encodeURIComponent(o)};var Nmt=Dmt;function Wmt(o,f){return pL("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(Wmt,"EMPTY_OBJECT",{get:function(){return pL("defaultValue.EMPTY_OBJECT","defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead"),si.EMPTY_OBJECT}});var Zmt=Wmt;function yde(){wt.throwInstantiationError()}Object.defineProperties(yde.prototype,{credit:{get:wt.throwInstantiationError}});yde.getCreditsFromResult=function(o){if(F(o.attributions))return o.attributions.map(Oa.getIonCredit)};yde.prototype.geocode=wt.throwInstantiationError;var _de=yde,yzi={SEARCH:0,AUTOCOMPLETE:1},e$=Object.freeze(yzi);function Omt(){wt.throwInstantiationError()}Omt.createGeometry=function(o){wt.throwInstantiationError()};var Xmt=Omt,_zi=k0(j$e(),1);function vzi(o,f){return(o&f)!==0}var m1=vzi,bzi=[1,2,4,8],kmt=15,Czi=16,Tzi=64,Szi=128;function DI(o,f,m,x,y,v){this._bits=o,this.cnodeVersion=f,this.imageryVersion=m,this.terrainVersion=x,this.imageryProvider=y,this.terrainProvider=v,this.ancestorHasTerrain=!1,this.terrainState=void 0}DI.clone=function(o,f){return F(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 DI(o._bits,o.cnodeVersion,o.imageryVersion,o.terrainVersion,o.imageryProvider,o.terrainProvider),f.ancestorHasTerrain=o.ancestorHasTerrain,f.terrainState=o.terrainState,f};DI.prototype.setParent=function(o){this.ancestorHasTerrain=o.ancestorHasTerrain||this.hasTerrain()};DI.prototype.hasSubtree=function(){return m1(this._bits,Czi)};DI.prototype.hasImagery=function(){return m1(this._bits,Tzi)};DI.prototype.hasTerrain=function(){return m1(this._bits,Szi)};DI.prototype.hasChildren=function(){return m1(this._bits,kmt)};DI.prototype.hasChild=function(o){return m1(this._bits,bzi[o])};DI.prototype.getChildBitmask=function(){return this._bits&kmt};var pFe=DI;function wzi(o){let f=o.length,m=new ArrayBuffer(f),x=new Uint8Array(m);for(let y=0;y<f;++y)x[y]=o.charCodeAt(y);return m}var Ezi=wzi(`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 w1(o){this.imageryPresent=!0,this.protoImagery=void 0,this.terrainPresent=!0,this.negativeAltitudeExponentBias=32,this.negativeAltitudeThreshold=be.EPSILON12,this.providers={},this.key=void 0,this._resource=void 0,this._quadPacketVersion=1,this._tileInfo={},this._subtreePromises={}}Object.defineProperties(w1.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},resource:{get:function(){return this._resource}}});w1.fromUrl=async function(o){let f=o;typeof f!="string"&&!(f instanceof Mr)&&(f=o.url);let m=Mr.createIfNeeded(f);m.appendForwardSlash();let x=new w1;x._resource=m;try{await Lzi(x),await x.getQuadTreePacket("",x._quadPacketVersion)}catch(y){let v=`An error occurred while accessing ${Bmt(x,"",1).url}: ${y}`;throw new Oi(v)}return x};w1.tileXYToQuadKey=function(o,f,m){let x="";for(let y=m;y>=0;--y){let v=1<<y,C=0;m1(f,v)?m1(o,v)&&(C|=1):(C|=2,m1(o,v)||(C|=1)),x+=C}return x};w1.quadKeyToTileXY=function(o){let f=0,m=0,x=o.length-1;for(let y=x;y>=0;--y){let v=1<<y,C=+o[x-y];m1(C,2)?m1(C,1)||(f|=v):(m|=v,m1(C,1)&&(f|=v))}return{x:f,y:m,level:x}};w1.prototype.isValid=function(o){let f=this.getTileInformationFromQuadKey(o);if(F(f))return f!==null;let m=!0,x=o,y;for(;x.length>1;)if(y=x.substring(x.length-1),x=x.substring(0,x.length-1),f=this.getTileInformationFromQuadKey(x),F(f)){!f.hasSubtree()&&!f.hasChild(parseInt(y))&&(m=!1);break}else if(f===null){m=!1;break}return m};var Umt=new mp("decodeGoogleEarthEnterprisePacket");w1.prototype.getQuadTreePacket=function(o,f,m){f=f??1,o=o??"";let x=Bmt(this,o,f,m).fetchArrayBuffer();if(!F(x))return;let y=this._tileInfo,v=this.key;return x.then(function(C){return Umt.scheduleTask({buffer:C,quadKey:o,type:"Metadata",key:v},[C]).then(function(T){let S,w=-1;if(o!==""){w=o.length+1;let I=T[o];S=y[o],S._bits|=I._bits,delete T[o]}let E=Object.keys(T);E.sort(function(I,R){return I.length-R.length});let L=E.length;for(let I=0;I<L;++I){let R=E[I];if(T[R]!==null){let P=pFe.clone(T[R]),A=R.length;if(A===w)P.setParent(S);else if(A>1){let M=y[R.substring(0,R.length-1)];P.setParent(M)}y[R]=P}else y[R]=null}})})};w1.prototype.populateSubtree=function(o,f,m,x){let y=w1.tileXYToQuadKey(o,f,m);return k1e(this,y,x)};function k1e(o,f,m){let x=o._tileInfo,y=f,v=x[y];if(F(v)&&(!v.hasSubtree()||v.hasChildren()))return v;for(;v===void 0&&y.length>1;)y=y.substring(0,y.length-1),v=x[y];let C,T=o._subtreePromises,S=T[y];if(F(S))return S.then(function(){return C=new hm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),k1e(o,f,C)});if(!F(v)||!v.hasSubtree())return Promise.reject(new Oi(`Couldn't load metadata for tile ${f}`));if(S=o.getQuadTreePacket(y,v.cnodeVersion,m),!!F(S))return T[y]=S,S.then(function(){return C=new hm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),k1e(o,f,C)}).finally(function(){delete T[y]})}w1.prototype.getTileInformation=function(o,f,m){let x=w1.tileXYToQuadKey(o,f,m);return this._tileInfo[x]};w1.prototype.getTileInformationFromQuadKey=function(o){return this._tileInfo[o]};function Bmt(o,f,m,x){return o._resource.getDerivedResource({url:`flatfile?q2-0${f}-q.${m.toString()}`,request:x})}var Wve,Zve;function Lzi(o){let f=o._resource.getDerivedResource({url:"dbRoot.v5",queryParameters:{output:"proto"}});if(!F(Zve)){let m=oa("ThirdParty/google-earth-dbroot-parser.js"),x=window.cesiumGoogleEarthDbRootParser;Zve=Jle(m).then(function(){Wve=window.cesiumGoogleEarthDbRootParser(_zi),F(x)?window.cesiumGoogleEarthDbRootParser=x:delete window.cesiumGoogleEarthDbRootParser})}return Zve.then(function(){return f.fetchArrayBuffer()}).then(function(m){let x=Wve.EncryptedDbRootProto.decode(new Uint8Array(m)),y=x.encryptionData,v=y.byteOffset,C=v+y.byteLength,T=o.key=y.buffer.slice(v,C);y=x.dbrootData,v=y.byteOffset,C=v+y.byteLength;let S=y.buffer.slice(v,C);return Umt.scheduleTask({buffer:S,type:"DbRoot",key:T},[S])}).then(function(m){let x=Wve.DbRootProto.decode(new Uint8Array(m.buffer));if(o.imageryPresent=x.imageryPresent??o.imageryPresent,o.protoImagery=x.protoImagery,o.terrainPresent=x.terrainPresent??o.terrainPresent,F(x.endSnippet)&&F(x.endSnippet.model)){let T=x.endSnippet.model;o.negativeAltitudeExponentBias=T.negativeAltitudeExponentBias??o.negativeAltitudeExponentBias,o.negativeAltitudeThreshold=T.compressedNegativeAltitudeThreshold??o.negativeAltitudeThreshold}F(x.databaseVersion)&&(o._quadPacketVersion=x.databaseVersion.quadtreeVersion??o._quadPacketVersion);let y=o.providers,v=x.providerInfo??[],C=v.length;for(let T=0;T<C;++T){let S=v[T],w=S.copyrightString;F(w)&&(y[S.providerId]=new Oa(w.value))}}).catch(function(){console.log(`Failed to retrieve ${f.url}. Using defaults.`),o.key=Ezi})}var Z4=w1;function WO(o){o=o??si.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(WO.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){}}});var Hmt="createVerticesFromGoogleEarthEnterpriseBuffer",Pzi=new mp(Hmt),Izi=new mp(Hmt,yO.maximumAsynchronousTasks),v7e=new vi,Ove=new vi;WO.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid;f.tileXYToNativeRectangle(m,x,y,v7e),f.tileXYToRectangle(m,x,y,Ove);let w=S.cartographicToCartesian(vi.center(Ove)),E=40075.16/(1<<y);this._skirtHeight=Math.min(E*8,1e3);let L=(T?Izi:Pzi).scheduleTask({buffer:this._buffer,nativeRectangle:v7e,rectangle:Ove,relativeToCenter:w,ellipsoid:S,skirtHeight:this._skirtHeight,exaggeration:v,exaggerationRelativeHeight:C,includeWebMercatorT:!0,negativeAltitudeExponentBias:this._negativeAltitudeExponentBias,negativeElevationThreshold:this._negativeElevationThreshold});if(!F(L))return;let I=this;return L.then(function(R){return I._mesh=new _O(w,new Float32Array(R.vertices),new Uint16Array(R.indices),R.indexCountWithoutSkirts,R.vertexCountWithoutSkirts,R.minimumHeight,R.maximumHeight,Ei.clone(R.boundingSphere3D),Z.clone(R.occludeePointInScaledSpace),R.numberOfAttributes,Tu.clone(R.orientedBoundingBox),PS.clone(R.encoding),R.westIndicesSouthToNorth,R.southIndicesEastToWest,R.eastIndicesNorthToSouth,R.northIndicesWestToEast),I._minimumHeight=R.minimumHeight,I._maximumHeight=R.maximumHeight,I._buffer=void 0,I._mesh})};WO.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1),y=be.clamp((m-o.south)/o.height,0,1);return F(this._mesh)?Gzi(this,x,y):Nzi(this,x,y,o)};var Rzi=new mp("upsampleQuantizedTerrainMesh",yO.maximumAsynchronousTasks);WO.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=Rzi.scheduleTask({vertices:T.vertices,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=this;return I.then(function(P){let A=new Uint16Array(P.vertices),M=Fn.createTypedArray(A.length/3,P.indices),V=R._skirtHeight;return new xde({quantizedVertices:A,indices:M,minimumHeight:P.minimumHeight,maximumHeight:P.maximumHeight,boundingSphere:Ei.clone(P.boundingSphere),orientedBoundingBox:Tu.clone(P.orientedBoundingBox),horizonOcclusionPoint:Z.clone(P.horizonOcclusionPoint),westIndices:P.westIndices,southIndices:P.southIndices,eastIndices:P.eastIndices,northIndices:P.northIndices,westSkirtHeight:V,southSkirtHeight:V,eastSkirtHeight:V,northSkirtHeight:V,childTileMask:0,createdByUpsampling:!0,credits:R._credits})})};WO.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};WO.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var Azi=new rt,Mzi=new rt,Vzi=new rt,zmt=new Z;function Gzi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,Azi),R=v.decodeTextureCoordinates(y,E,Mzi),P=v.decodeTextureCoordinates(y,L,Vzi),A=D4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,zmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}var Fzi=Uint16Array.BYTES_PER_ELEMENT,b7e=Uint32Array.BYTES_PER_ELEMENT,Xve=Int32Array.BYTES_PER_ELEMENT,Dzi=Float32Array.BYTES_PER_ELEMENT,kve=Float64Array.BYTES_PER_ELEMENT;function Nzi(o,f,m,x){let y=o._buffer,v=0,C=0,T=0;m>.5?(f>.5?(v=2,C=.5):v=3,T=.5):f>.5&&(v=1,C=.5);let S=new DataView(y),w=0;for(let k=0;k<v;++k)w+=S.getUint32(w,!0),w+=b7e;w+=b7e,w+=2*kve;let E=be.toRadians(S.getFloat64(w,!0)*180);w+=kve;let L=be.toRadians(S.getFloat64(w,!0)*180);w+=kve;let I=x.width/E/2,R=x.height/L/2,P=S.getInt32(w,!0);w+=Xve;let A=S.getInt32(w,!0)*3;w+=Xve,w+=Xve;let M=new Array(P),V=new Array(P),G=new Array(P),D;for(D=0;D<P;++D)M[D]=C+S.getUint8(w++)*I,V[D]=T+S.getUint8(w++)*R,G[D]=S.getFloat32(w,!0)*6371010,w+=Dzi;let N=new Array(A);for(D=0;D<A;++D)N[D]=S.getUint16(w,!0),w+=Fzi;for(D=0;D<A;D+=3){let k=N[D],U=N[D+1],B=N[D+2],Y=M[k],J=M[U],K=M[B],z=V[k],j=V[U],q=V[B],O=D4.computeBarycentricCoordinates(f,m,Y,z,J,j,K,q,zmt);if(O.x>=-1e-15&&O.y>=-1e-15&&O.z>=-1e-15)return O.x*G[k]+O.y*G[U]+O.z*G[B]}}var cle=WO,BT={UNKNOWN:0,NONE:1,SELF:2,PARENT:3},poe=new $t;function vde(){this._terrainCache={},this._lastTidy=$t.now()}vde.prototype.add=function(o,f){this._terrainCache[o]={buffer:f,timestamp:$t.now()}};vde.prototype.get=function(o){let f=this._terrainCache[o];if(F(f))return delete this._terrainCache[o],f.buffer};vde.prototype.tidy=function(){if($t.now(poe),$t.secondsDifference(poe,this._lastTidy)>10){let o=this._terrainCache,f=Object.keys(o),m=f.length;for(let x=0;x<m;++x){let y=f[x],v=o[y];$t.secondsDifference(poe,v.timestamp)>10&&delete o[y]}$t.clone(poe,this._lastTidy)}};function vF(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._levelZeroMaximumGeometricError=40075.16,this._terrainCache=new vde,this._terrainPromises={},this._terrainRequests={},this._errorEvent=new Tr}Object.defineProperties(vF.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(){}}});vF.fromMetadata=function(o,f){if(!o.terrainPresent)throw new Oi(`The server ${o.url} doesn't have terrain`);let m=new vF(f);return m._metadata=o,m};var Wzi=new mp("decodeGoogleEarthEnterprisePacket");function C7e(o,f,m){let x=f.getChildBitmask();if(f.terrainState===BT.PARENT){x=0;for(let y=0;y<4;++y){let v=m.getTileInformationFromQuadKey(o+y.toString());F(v)&&v.hasTerrain()&&(x|=1<<y)}}return x}vF.prototype.requestTileGeometry=function(o,f,m,x){let y=Z4.tileXYToQuadKey(o,f,m),v=this._terrainCache,C=this._metadata,T=C.getTileInformationFromQuadKey(y);if(!F(T))return Promise.reject(new Oi("Terrain tile doesn't exist"));let S=T.terrainState;F(S)||(S=T.terrainState=BT.UNKNOWN);let w=v.get(y);if(F(w)){let V=C.providers[T.terrainProvider];return Promise.resolve(new cle({buffer:w,childTileMask:C7e(y,T,C),credits:F(V)?[V]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold}))}if(v.tidy(),T.ancestorHasTerrain){if(S===BT.NONE)return Promise.reject(new Oi("Terrain tile doesn't exist"))}else return Promise.resolve(new yL({buffer:new Uint8Array(16*16),width:16,height:16}));let E,L=y,I=-1;switch(S){case BT.SELF:I=T.terrainVersion;break;case BT.PARENT:L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),I=E.terrainVersion;break;case BT.UNKNOWN:T.hasTerrain()?I=T.terrainVersion:(L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),F(E)&&E.hasTerrain()&&(I=E.terrainVersion));break}if(I<0)return Promise.reject(new Oi("Terrain tile doesn't exist"));let R=this._terrainPromises,P=this._terrainRequests,A,M;if(F(R[L]))A=R[L],M=P[L];else{M=x;let V=Zzi(this,L,I,M).fetchArrayBuffer();if(!F(V))return;A=V.then(function(G){return F(G)?Wzi.scheduleTask({buffer:G,type:"Terrain",key:C.key},[G]).then(function(D){let N=C.getTileInformationFromQuadKey(L);N.terrainState=BT.SELF,v.add(L,D[0]);let k=N.terrainProvider,U=D.length-1;for(let B=0;B<U;++B){let Y=L+B.toString(),J=C.getTileInformationFromQuadKey(Y);F(J)&&(v.add(Y,D[B+1]),J.terrainState=BT.PARENT,J.terrainProvider===0&&(J.terrainProvider=k))}}):Promise.reject(new Oi("Failed to load terrain."))}),R[L]=A,P[L]=M,A=A.finally(function(){delete R[L],delete P[L]})}return A.then(function(){let V=v.get(y);if(F(V)){let G=C.providers[T.terrainProvider];return new cle({buffer:V,childTileMask:C7e(y,T,C),credits:F(G)?[G]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold})}return Promise.reject(new Oi("Failed to load terrain."))}).catch(function(V){return M.state===pc.CANCELLED?(x.state=M.state,Promise.reject(V)):(T.terrainState=BT.NONE,Promise.reject(V))})};vF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};vF.prototype.getTileDataAvailable=function(o,f,m){let x=this._metadata,y=Z4.tileXYToQuadKey(o,f,m),v=x.getTileInformation(o,f,m);if(v===null)return!1;if(F(v)){if(!v.ancestorHasTerrain)return!0;let C=v.terrainState;if(C===BT.NONE)return!1;if((!F(C)||C===BT.UNKNOWN)&&(v.terrainState=BT.UNKNOWN,!v.hasTerrain())){y=y.substring(0,y.length-1);let T=x.getTileInformationFromQuadKey(y);if(!F(T)||!T.hasTerrain())return!1}return!0}if(x.isValid(y)){let C=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});x.populateSubtree(o,f,m,C)}return!1};vF.prototype.loadTileDataAvailability=function(o,f,m){};function Zzi(o,f,m,x){return m=F(m)&&m>0?m:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1c-0${f}-t.${m.toString()}`,request:x})}var Ymt=vF,Ozi="https://maps.googleapis.com/maps/api/geocode/json",Kmt='<img alt="Google" src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align:-5px">';function fFe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._resource=new Mr({url:Ozi,queryParameters:{key:f}}),this._credit=new Oa(Kmt,!0)}Object.defineProperties(fFe.prototype,{credit:{get:function(){return this._credit}}});fFe.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 Oi(`GoogleGeocoderService got a bad response ${f.status}: ${f.error_message}`);return f.results.map(m=>{let x=m.geometry.viewport.southwest,y=m.geometry.viewport.northeast;return{displayName:m.formatted_address,destination:vi.fromDegrees(x.lng,x.lat,y.lng,y.lat),attribution:{html:Kmt,collapsible:!1}}})};var Jmt=fFe,bde={};bde.defaultApiKey=void 0;bde.mapTilesApiEndpoint=new Mr({url:"https://tile.googleapis.com/v1/"});bde.getDefaultCredit=function(){return new Oa('<img src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align: -5px" alt="Google">',!0)};var hQ=bde,t$={};t$.type=void 0;t$.getRequiredDataPoints=wt.throwInstantiationError;t$.interpolateOrderZero=wt.throwInstantiationError;t$.interpolate=wt.throwInstantiationError;var jmt=t$,Xzi={GOOGLE:"GOOGLE",BING:"BING",DEFAULT:"DEFAULT"},XZ=Object.freeze(Xzi);function mFe(o){this._url=Mr.createIfNeeded(o),this._url.appendForwardSlash()}Object.defineProperties(mFe.prototype,{url:{get:function(){return this._url}},credit:{get:function(){}}});mFe.prototype.geocode=async function(o,f){return this._url.getDerivedResource({url:f===e$.AUTOCOMPLETE?"autocomplete":"search",queryParameters:{text:o}}).fetchJson().then(function(m){return m.features.map(function(x){let y,v=x.bbox;if(F(v))y=vi.fromDegrees(v[0],v[1],v[2],v[3]);else{let C=x.geometry.coordinates[0],T=x.geometry.coordinates[1];y=Z.fromDegrees(C,T)}return{displayName:x.properties.label,destination:y,attributions:m.attributions}})})};var xFe=mFe;function kzi(o){if(!Object.values(XZ).some(f=>f===o))throw new wt(`Invalid geocodeProviderType: "${o}"`)}var Qmt=Object.freeze({[XZ.GOOGLE]:"google",[XZ.BING]:"bing",[XZ.DEFAULT]:void 0});function Uzi(o){return Qmt[o]}function Bzi(o){return Object.entries(Qmt).find(f=>f[1]===o)[0]}function gFe(o){o=o??si.EMPTY_OBJECT;let f=o.geocodeProviderType??XZ.DEFAULT,m=o.accessToken??GG.defaultAccessToken,x=Mr.createIfNeeded(o.server??GG.defaultServer);x.appendForwardSlash();let y=GG.getDefaultTokenCredit(m);F(y)&&o.scene.frameState.creditDisplay.addStaticCredit(Oa.clone(y));let v=x.getDerivedResource({url:"v1/geocode"});F(m)&&v.appendQueryParameters({access_token:m}),this._accessToken=m,this._server=x,this._pelias=new xFe(v),this.geocodeProviderType=f}Object.defineProperties(gFe.prototype,{credit:{get:function(){}},geocodeProviderType:{get:function(){return Bzi(this._pelias.url.queryParameters.geocoder)},set:function(o){kzi(o);let f={...this._pelias.url.queryParameters,geocoder:Uzi(o)};F(f.geocoder)||delete f.geocoder,this._pelias.url.setQueryParameters(f)}}});gFe.prototype.geocode=async function(o,f){return this._pelias.geocode(o,f)};var Cde=gFe,lm={};lm.ExportStatus=Object.freeze({NotStarted:"NotStarted",InProgress:"InProgress",Complete:"Complete",Invalid:"Invalid"});lm.ExportType=Object.freeze({IMODEL:"IMODEL",CESIUM:"CESIUM","3DTILES":"3DTILES"});lm.RealityDataType=Object.freeze({Cesium3DTiles:"Cesium3DTiles",PNTS:"PNTS",RealityMesh3DTiles:"RealityMesh3DTiles",Terrain3DTiles:"Terrain3DTiles",KML:"KML",GeoJSON:"GeoJSON",Unstructured:"Unstructured"});lm.defaultAccessToken=void 0;lm.defaultShareKey=void 0;lm._getAuthorizationHeader=function(){return F(lm.defaultShareKey)?`Basic ${lm.defaultShareKey}`:`Bearer ${lm.defaultAccessToken}`};lm.apiEndpoint=new Mr({url:"https://api.bentley.com"});lm.getExports=async function(o){let f=new Mr({url:`${lm.apiEndpoint}mesh-export`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json",Prefer:"return=representation"},queryParameters:{iModelId:o,exportType:lm.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 y=x.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${y}`)}else{if(m.statusCode===403)throw console.error(x.error.code,x.error.message),new Oi("Not allowed, forbidden");if(m.statusCode===422)throw new Oi(`Unprocessable Entity:${x.error.code} ${x.error.message}`);if(m.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${m.statusCode}`)}};lm.getRealityDataMetadata=async function(o,f){let m=new Mr({url:`${lm.apiEndpoint}reality-management/reality-data/${f}`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{return(await m.fetchJson()).realityData}catch(x){let y=JSON.parse(x.response);if(x.statusCode===401){let v=y.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${v}`)}else{if(x.statusCode===403)throw console.error(y.error.code,y.error.message),new Oi("Not allowed, forbidden");if(x.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(x.statusCode===422)throw new Oi(`Unprocessable Entity:${y.error.code} ${y.error.message}`);if(x.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${x.statusCode}`)}};lm.getRealityDataURL=async function(o,f,m){let x=new Mr({url:`${lm.apiEndpoint}reality-management/reality-data/${f}/readaccess`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{let y=(await x.fetchJson())._links.containerUrl.href,v=new URL(y);return v.pathname=`${v.pathname}/${m}`,v.toString()}catch(y){let v=JSON.parse(y.response);if(y.statusCode===401){let C=v.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${C}`)}else{if(y.statusCode===403)throw console.error(v.error.code,v.error.message),new Oi("Not allowed, forbidden");if(y.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(y.statusCode===422)throw new Oi(`Unprocessable Entity:${v.error.code} ${v.error.message}`);if(y.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${y.statusCode}`)}};var wg=lm,Hzi=new mp("transcodeCRNToDXT",Number.POSITIVE_INFINITY);function zzi(o){let f;if(o instanceof ArrayBuffer||ArrayBuffer.isView(o)?f=Promise.resolve(o):f=Mr.createIfNeeded(o).fetchArrayBuffer(),!!F(f))return f.then(function(m){if(!F(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)),Hzi.scheduleTask(m,x)}).then(function(m){return DS.clone(m)})}var qmt=zzi;function Tde(){wt.throwInstantiationError()}Object.defineProperties(Tde.prototype,{ellipsoid:{get:wt.throwInstantiationError}});Tde.prototype.project=wt.throwInstantiationError;Tde.prototype.unproject=wt.throwInstantiationError;var $mt=Tde;function O4(o){o=o??si.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(O4.prototype,{times:{get:function(){return this._times}},weights:{get:function(){return this._weights}}});O4.prototype.findTimeInterval=B0.prototype.findTimeInterval;O4.prototype.wrapTime=B0.prototype.wrapTime;O4.prototype.clampTime=B0.prototype.clampTime;O4.prototype.evaluate=function(o,f){let m=this.weights,x=this.times,y=this._lastTimeIndex=this.findTimeInterval(o,this._lastTimeIndex),v=(o-x[y])/(x[y+1]-x[y]);F(f)||(f=new Array(this._count));for(let C=0;C<this._count;C++){let T=y*this._count+C;f[C]=m[T]*(1-v)+m[T+this._count]*v}return f};var ext=O4;function yFe(o,f,m){o=Mr.createIfNeeded(o),o.appendForwardSlash(),o.setQueryParameters({key:f}),this._url=o,this._params=m??{},this._credit=new Oa('Geodata copyright <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',!1)}Object.defineProperties(yFe.prototype,{url:{get:function(){return this._url}},params:{get:function(){return this._params}},credit:{get:function(){return this._credit}}});yFe.prototype.geocode=async function(o){return this._url.getDerivedResource({url:"json",queryParameters:va(this._params,{q:o})}).fetchJson().then(function(f){return f.results.map(function(m){let x,y=m.bounds;if(F(y))x=vi.fromDegrees(y.southwest.lng,y.southwest.lat,y.northeast.lng,y.northeast.lat);else{let v=m.geometry.lat,C=m.geometry.lng;x=Z.fromDegrees(v,C)}return{displayName:m.formatted,destination:x}})})};var txt=yFe,Yzi={packedLength:void 0,pack:wt.throwInstantiationError,unpack:wt.throwInstantiationError},ixt=Yzi,Kzi={packedInterpolationLength:void 0,convertPackedArrayForInterpolation:wt.throwInstantiationError,unpackInterpolationResult:wt.throwInstantiationError},rxt=Kzi,Jzi=new Z;function jzi(o,f,m,x){let y=nue(o,f,m,x,Jzi);return F(y)?y.x>0&&y.y>0&&y.z>0:!1}var nxt=jzi;function oxt(){wt.throwInstantiationError()}oxt.prototype.getURL=wt.throwInstantiationError;var axt=oxt;function Qzi(o,f,m,x,y,v,C){let T=od.numberOfPoints(o,f,y),S,w=m.red,E=m.green,L=m.blue,I=m.alpha,R=x.red,P=x.green,A=x.blue,M=x.alpha;if(Xe.equals(m,x)){for(S=0;S<T;S++)v[C++]=Xe.floatToByte(w),v[C++]=Xe.floatToByte(E),v[C++]=Xe.floatToByte(L),v[C++]=Xe.floatToByte(I);return C}let V=(R-w)/T,G=(P-E)/T,D=(A-L)/T,N=(M-I)/T,k=C;for(S=0;S<T;S++)v[k++]=Xe.floatToByte(w+S*V),v[k++]=Xe.floatToByte(E+S*G),v[k++]=Xe.floatToByte(L+S*D),v[k++]=Xe.floatToByte(I+S*N);return k}function I6(o){o=o??si.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??qa.GEODESIC,this._granularity=o.granularity??be.RADIANS_PER_DEGREE,this._ellipsoid=o.ellipsoid??yi.default,this._workerName="createSimplePolylineGeometry";let y=1+f.length*Z.packedLength;y+=F(m)?1+m.length*Xe.packedLength:1,this.packedLength=y+yi.packedLength+3}I6.pack=function(o,f,m){m=m??0;let x,y=o._positions,v=y.length;for(f[m++]=v,x=0;x<v;++x,m+=Z.packedLength)Z.pack(y[x],f,m);let C=o._colors;for(v=F(C)?C.length:0,f[m++]=v,x=0;x<v;++x,m+=Xe.packedLength)Xe.pack(C[x],f,m);return yi.pack(o._ellipsoid,f,m),m+=yi.packedLength,f[m++]=o._colorsPerVertex?1:0,f[m++]=o._arcType,f[m]=o._granularity,f};I6.unpack=function(o,f,m){f=f??0;let x,y=o[f++],v=new Array(y);for(x=0;x<y;++x,f+=Z.packedLength)v[x]=Z.unpack(o,f);y=o[f++];let C=y>0?new Array(y):void 0;for(x=0;x<y;++x,f+=Xe.packedLength)C[x]=Xe.unpack(o,f);let T=yi.unpack(o,f);f+=yi.packedLength;let S=o[f++]===1,w=o[f++],E=o[f];return F(m)?(m._positions=v,m._colors=C,m._ellipsoid=T,m._colorsPerVertex=S,m._arcType=w,m._granularity=E,m):new I6({positions:v,colors:C,ellipsoid:T,colorsPerVertex:S,arcType:w,granularity:E})};var xae=new Array(2),gae=new Array(2),qzi={positions:xae,height:gae,ellipsoid:void 0,minDistance:void 0,granularity:void 0};I6.createGeometry=function(o){let f=o._positions,m=o._colors,x=o._colorsPerVertex,y=o._arcType,v=o._granularity,C=o._ellipsoid,T=be.chordLength(v,C.maximumRadius),S=F(m)&&!x,w,E=f.length,L,I,R,P,A=0;if(y===qa.GEODESIC||y===qa.RHUMB){let N,k,U;y===qa.GEODESIC?(N=be.chordLength(v,C.maximumRadius),k=od.numberOfPoints,U=od.generateArc):(N=v,k=od.numberOfPointsRhumbLine,U=od.generateRhumbArc);let B=od.extractHeights(f,C),Y=qzi;if(y===qa.GEODESIC?Y.minDistance=T:Y.granularity=v,Y.ellipsoid=C,S){let J=0;for(w=0;w<E-1;w++)J+=k(f[w],f[w+1],N)+1;L=new Float64Array(J*3),R=new Uint8Array(J*4),Y.positions=xae,Y.height=gae;let K=0;for(w=0;w<E-1;++w){xae[0]=f[w],xae[1]=f[w+1],gae[0]=B[w],gae[1]=B[w+1];let z=U(Y);if(F(m)){let j=z.length/3;P=m[w];for(let q=0;q<j;++q)R[K++]=Xe.floatToByte(P.red),R[K++]=Xe.floatToByte(P.green),R[K++]=Xe.floatToByte(P.blue),R[K++]=Xe.floatToByte(P.alpha)}L.set(z,A),A+=z.length}}else if(Y.positions=f,Y.height=B,L=new Float64Array(U(Y)),F(m)){for(R=new Uint8Array(L.length/3*4),w=0;w<E-1;++w){let K=f[w],z=f[w+1],j=m[w],q=m[w+1];A=Qzi(K,z,j,q,T,R,A)}let J=m[E-1];R[A++]=Xe.floatToByte(J.red),R[A++]=Xe.floatToByte(J.green),R[A++]=Xe.floatToByte(J.blue),R[A++]=Xe.floatToByte(J.alpha)}}else{I=S?E*2-2:E,L=new Float64Array(I*3),R=F(m)?new Uint8Array(I*4):void 0;let N=0,k=0;for(w=0;w<E;++w){let U=f[w];if(S&&w>0&&(Z.pack(U,L,N),N+=3,P=m[w-1],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha)),S&&w===E-1)break;Z.pack(U,L,N),N+=3,F(m)&&(P=m[w],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha))}}let M=new Zc;M.position=new Xr({componentDatatype:Qt.DOUBLE,componentsPerAttribute:3,values:L}),F(m)&&(M.color=new Xr({componentDatatype:Qt.UNSIGNED_BYTE,componentsPerAttribute:4,values:R,normalize:!0})),I=L.length/3;let V=(I-1)*2,G=Fn.createTypedArray(I,V),D=0;for(w=0;w<I-1;++w)G[D++]=w,G[D++]=w+1;return new xa({attributes:M,indices:G,primitiveType:pn.LINES,boundingSphere:Ei.fromPoints(f)})};var sxt=I6;function qH(o){let f=o.radius??1,m={radii:new Z(f,f,f),stackPartitions:o.stackPartitions,slicePartitions:o.slicePartitions,vertexFormat:o.vertexFormat};this._ellipsoidGeometry=new Jm(m),this._workerName="createSphereGeometry"}qH.packedLength=Jm.packedLength;qH.pack=function(o,f,m){return Jm.pack(o._ellipsoidGeometry,f,m)};var $zi=new Jm,O5={radius:void 0,radii:new Z,vertexFormat:new Yr,stackPartitions:void 0,slicePartitions:void 0};qH.unpack=function(o,f,m){let x=Jm.unpack(o,f,$zi);return O5.vertexFormat=Yr.clone(x._vertexFormat,O5.vertexFormat),O5.stackPartitions=x._stackPartitions,O5.slicePartitions=x._slicePartitions,F(m)?(Z.clone(x._radii,O5.radii),m._ellipsoidGeometry=new Jm(O5),m):(O5.radius=x._radii.x,new qH(O5))};qH.createGeometry=function(o){return Jm.createGeometry(o._ellipsoidGeometry)};var lxt=qH;function nD(o){}Object.defineProperties(nD.prototype,{ellipsoid:{get:wt.throwInstantiationError},rectangle:{get:wt.throwInstantiationError},projection:{get:wt.throwInstantiationError}});nD.prototype.getNumberOfXTilesAtLevel=wt.throwInstantiationError;nD.prototype.getNumberOfYTilesAtLevel=wt.throwInstantiationError;nD.prototype.rectangleToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToRectangle=wt.throwInstantiationError;nD.prototype.positionToTileXY=wt.throwInstantiationError;var uxt=nD;function L9(o){o=o??si.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??wn.MINIMUM_VALUE,this.tolerance=o.tolerance??1,this._seeking=!1,this._seekFunction=void 0,this._firstTickAfterSeek=!1}Object.defineProperties(L9.prototype,{clock:{get:function(){return this._clock},set:function(o){let f=this._clock;f!==o&&(F(f)&&(this._clockSubscription(),this._clockSubscription=void 0),F(o)&&(this._clockSubscription=o.onTick.addEventListener(L9.prototype._onTick,this)),this._clock=o)}},element:{get:function(){return this._element},set:function(o){let f=this._element;f!==o&&(F(f)&&f.removeEventListener("seeked",this._seekFunction,!1),F(o)&&(this._seeking=!1,this._seekFunction=e4i(this),o.addEventListener("seeked",this._seekFunction,!1)),this._element=o,this._seeking=!1,this._firstTickAfterSeek=!1)}}});L9.prototype.destroy=function(){return this.element=void 0,this.clock=void 0,yr(this)};L9.prototype.isDestroyed=function(){return!1};L9.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};L9.prototype._onTick=function(o){let f=this._element;if(!F(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 y=o.currentTime,v=this.epoch??wn.MINIMUM_VALUE,C=$t.secondsDifference(y,v),T=f.duration,S,w=f.currentTime;f.loop?(C=C%T,C<0&&(C=T-C),S=C):C>T?S=T:C<0?S=0:S=C;let E=x?this.tolerance??1:.001;Math.abs(S-w)>E&&(this._seeking=!0,f.currentTime=S)};function e4i(o){return function(){o._seeking=!1,o._firstTickAfterSeek=!0}}var cxt=L9;function t4i(o,f){this.rectangle=o,this.maxLevel=f}function hxt(o){this.ellipsoid=o.ellipsoid??yi.default,this.tilingScheme=void 0,this.heightmapWidth=void 0,this.heightmapHeight=void 0,this.levelZeroMaximumGeometricError=void 0,this.rectangles=[]}hxt.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 i4i(o,f){let m=f.getElementsByTagName("SRS")[0].textContent;if(m==="EPSG:4326")o.tilingScheme=new _h({ellipsoid:o.ellipsoid});else throw new Oi(`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=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.ellipsoid,Math.min(o.heightmapWidth,o.heightmapHeight),o.tilingScheme.getNumberOfXTilesAtLevel(0));let y=f.getElementsByTagName("DataExtent");for(let v=0;v<y.length;++v){let C=y[v],T=be.toRadians(parseFloat(C.getAttribute("minx"))),S=be.toRadians(parseFloat(C.getAttribute("miny"))),w=be.toRadians(parseFloat(C.getAttribute("maxx"))),E=be.toRadians(parseFloat(C.getAttribute("maxy"))),L=parseInt(C.getAttribute("maxlevel"),10);o.rectangles.push(new t4i(new vi(T,S,w,E),L))}}function r4i(o,f,m){let x=`An error occurred while accessing ${o.url}`;throw F(f)&&F(f.message)&&(x=`${x}: ${f.message}`),am.reportError(void 0,m,F(m)?m._errorEvent:void 0,x),new Oi(x)}async function n4i(o,f,m){try{let x=await f.fetchXML();i4i(o,x)}catch(x){r4i(f,x,m)}}function bF(o){o=o??si.EMPTY_OBJECT,this._errorEvent=new Tr,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 Oa(f)),this._credit=f,this._tilingScheme=void 0,this._rectangles=[]}Object.defineProperties(bF.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(){}}});bF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT;let m=new hxt(f),x=Mr.createIfNeeded(o);await n4i(m,x);let y=new bF(f);return m.build(y),y._resource=x,y};bF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._tilingScheme.getNumberOfYTilesAtLevel(m),v=this._resource.getDerivedResource({url:`${m}/${o}/${y-f-1}.tif`,queryParameters:{cesium:!0},request:x}).fetchImage({preferImageBitmap:!0});if(!F(v))return;let C=this;return Promise.resolve(v).then(function(T){return new yL({buffer:BZ(T),width:C._heightmapWidth,height:C._heightmapHeight,childTileMask:o4i(C,o,f,m),structure:C._terrainDataStructure})})};bF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};var dxt=new vi;function o4i(o,f,m,x){let y=o._tilingScheme,v=o._rectangles,C=y.tileXYToRectangle(f,m,x),T=0;for(let S=0;S<v.length&&T!==15;++S){let w=v[S];if(w.maxLevel<=x)continue;let E=w.rectangle,L=vi.intersection(E,C,dxt);F(L)&&(foe(y,E,f*2,m*2,x+1)&&(T|=4),foe(y,E,f*2+1,m*2,x+1)&&(T|=8),foe(y,E,f*2,m*2+1,x+1)&&(T|=1),foe(y,E,f*2+1,m*2+1,x+1)&&(T|=2))}return T}function foe(o,f,m,x,y){let v=o.tileXYToRectangle(m,x,y);return F(vi.intersection(v,f,dxt))}bF.prototype.getTileDataAvailable=function(o,f,m){};bF.prototype.loadTileDataAvailability=function(o,f,m){};var pxt=bF,a4i={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},fxt=Object.freeze(a4i);function s4i(o){switch(o){case bi.FLOAT:return"float";case bi.FLOAT_VEC2:return"vec2";case bi.FLOAT_VEC3:return"vec3";case bi.FLOAT_VEC4:return"vec4";case bi.FLOAT_MAT2:return"mat2";case bi.FLOAT_MAT3:return"mat3";case bi.FLOAT_MAT4:return"mat4";case bi.SAMPLER_2D:return"sampler2D";case bi.BOOL:return"bool"}}var mxt=s4i;function l4i(o,f,m){return function(){m.apply(o,arguments),f.apply(o,arguments)}}var _Fe=l4i,u4i=function(){var o=import.meta.url;return function(f){return f=f||{},f.ready}}(),yae={};yae.onRuntimeInitialized||(yae.onRuntimeInitialized=function(){},u4i(yae));var xxt=yae,j8=k0(J$e(),1),gxt={};(function(o,f){o.FlowEcharts=f(j8.default,o.Geoworld)})(gxt,function(o,f){return function(m){var x={};function y(v){if(x[v])return x[v].exports;var C=x[v]={i:v,l:!1,exports:{}};return m[v].call(C.exports,C,C.exports,y),C.l=!0,C.exports}return y.m=m,y.c=x,y.d=function(v,C,T){y.o(v,C)||Object.defineProperty(v,C,{enumerable:!0,get:T})},y.r=function(v){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},y.t=function(v,C){if(C&1&&(v=y(v)),C&8||C&4&&typeof v=="object"&&v&&v.__esModule)return v;var T=Object.create(null);if(y.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:v}),C&2&&typeof v!="string")for(var S in v)y.d(T,S,function(w){return v[w]}.bind(null,S));return T},y.n=function(v){var C=v&&v.__esModule?function(){return v.default}:function(){return v};return y.d(C,"a",C),C},y.o=function(v,C){return Object.prototype.hasOwnProperty.call(v,C)},y.p="",y(y.s=0)}([function(m,x,y){y(1);var v=y(7);m.exports=v},function(m,x,y){var v;v=function(C){return y(2).registerCoordinateSystem("GLMap",y(3)),y(5),y(6),y(2).registerAction({type:"GLMapRoam",event:"GLMapRoam",update:"updateLayout"},function(T,S){}),{version:"1.0.0"}}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=o},function(m,x,y){var v;v=function(C){var T=y(2);function S(w,E){this._GLMap=w,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=E}return S.prototype.dimensions=["lng","lat"],S.prototype.setMapOffset=function(w){this._mapOffset=w},S.prototype.getBMap=function(){return this._GLMap},S.prototype.dataToPoint=function(w){var E=be.toRadians(80),L=[99999,99999],I=Z.fromDegrees(w[0],w[1]);if(!I)return L;var R=this._GLMap.cartesianToCanvasCoordinates(I);if(!R)return L;var P=this._GLMap;return P.mode===gi.SCENE3D&&Z.angleBetween(P.camera.position,I)>E?!1:[R.x-this._mapOffset[0],R.y-this._mapOffset[1]]},S.prototype.pointToData=function(L){var E=this._mapOffset,L=this._bmap.project([L[0]+E[0],L[1]+E[1]]);return[L.lng,L.lat]},S.prototype.getViewRect=function(){var w=this._api;return new T.graphic.BoundingRect(0,0,w.getWidth(),w.getHeight())},S.prototype.getRoamTransform=function(){return T.matrix.create()},S.dimensions=S.prototype.dimensions,S.create=function(w,E){var L;w.eachComponent("GLMap",function(I){var R=E.getZr().painter.getViewportRoot(),P=T.glMap;L=new S(P,E),L.setMapOffset(I.__mapOffset||[0,0]),I.coordinateSystem=L}),w.eachSeries(function(I){I.get("coordinateSystem")==="GLMap"&&(I.coordinateSystem=L)})},S}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=f},function(m,x,y){var v;v=function(C){return y(2).extendComponentModel({type:"GLMap",getBMap:function(){return this.__GLMap},defaultOption:{roam:!1}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x,y){var v;v=function(C){return y(2).extendComponentView({type:"GLMap",init:function(T,S){this.api=S,j8.default.glMap.postRender.addEventListener(this.moveHandler,this)},moveHandler:function(){this.api.dispatchAction({type:"GLMapRoam"})},render:function(T,S,w){},dispose:function(T,S){j8.default.glMap.postRender.removeEventListener(this.moveHandler,this)}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){function y(v,C){this._mapContainer=v,this._overlay=this._createChartOverlay(),this._overlay.setOption(C)}y.prototype._createChartOverlay=function(){var v=this._mapContainer.scene;v.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=v.canvas.width+"px",C.style.height=v.canvas.height+"px",C.style.pointerEvents="none",C.setAttribute("id","echarts"),C.setAttribute("class","echartMap"),this._mapContainer.container.appendChild(C),this._echartsContainer=C,j8.default.glMap=v,j8.default.init(C)},y.prototype.dispose=function(){this._echartsContainer&&(this._mapContainer.container.removeChild(this._echartsContainer),this._echartsContainer=null),this._overlay&&(this._overlay.dispose(),this._overlay=null)},y.prototype.destroy=function(){this.dispose()},y.prototype.updateOverlay=function(v){this._overlay&&this._overlay.setOption(v)},y.prototype.getMap=function(){return this._mapContainer},y.prototype.getOverlay=function(){return this._overlay},m.exports=y}])});var Sde=gxt.FlowEcharts,c4i=new Z(1,1,1);function vFe(o){o=o??c4i,this._dimensions=Z.clone(o)}Object.defineProperties(vFe.prototype,{dimensions:{get:function(){return this._dimensions},set:function(o){Z.clone(o,this._dimensions)}}});var h4i=new Z;vFe.prototype.emit=function(o){let f=this._dimensions,m=Z.multiplyByScalar(f,.5,h4i),x=be.randomBetween(-m.x,m.x),y=be.randomBetween(-m.y,m.y),v=be.randomBetween(-m.z,m.z);o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var wde=vFe;function yR(){this.featurePropertiesDirty=!1}Object.defineProperties(yR.prototype,{featuresLength:{get:function(){wt.throwInstantiationError()}},pointsLength:{get:function(){wt.throwInstantiationError()}},trianglesLength:{get:function(){wt.throwInstantiationError()}},geometryByteLength:{get:function(){wt.throwInstantiationError()}},texturesByteLength:{get:function(){wt.throwInstantiationError()}},batchTableByteLength:{get:function(){wt.throwInstantiationError()}},innerContents:{get:function(){wt.throwInstantiationError()}},ready:{get:function(){wt.throwInstantiationError()}},tileset:{get:function(){wt.throwInstantiationError()}},tile:{get:function(){wt.throwInstantiationError()}},url:{get:function(){wt.throwInstantiationError()}},batchTable:{get:function(){wt.throwInstantiationError()}},metadata:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}},group:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}}});yR.prototype.hasProperty=function(o,f){wt.throwInstantiationError()};yR.prototype.getFeature=function(o){wt.throwInstantiationError()};yR.prototype.applyDebugSettings=function(o,f){wt.throwInstantiationError()};yR.prototype.applyStyle=function(o){wt.throwInstantiationError()};yR.prototype.update=function(o,f){wt.throwInstantiationError()};yR.prototype.pick=function(o,f,m){wt.throwInstantiationError()};yR.prototype.isDestroyed=function(){wt.throwInstantiationError()};yR.prototype.destroy=function(){wt.throwInstantiationError()};var yxt=yR;function i$(o){o=o??si.EMPTY_OBJECT,this._maximumSubtreeCount=o.maximumSubtreeCount??0,this._subtreeRequestCounter=0,this._queue=new Hhe({comparator:i$.comparator})}i$.prototype.addSubtree=function(o){let f=new d4i(o,this._subtreeRequestCounter);this._subtreeRequestCounter++,this._queue.insert(f);let m=o.implicitCoordinates;if(m.level>0){let x=m.getParentSubtreeCoordinates(),y=this.find(x)}if(this._maximumSubtreeCount>0)for(;this._queue.length>this._maximumSubtreeCount&&this._queue.getMinimum()!==f;)this._queue.removeMinimum()};i$.prototype.find=function(o){let f=this._queue,m=f.internalArray,x=f.length;for(let y=0;y<x;y++){let v=m[y],C=v.subtree.implicitCoordinates;if(o.isEqual(C))return v.subtree}};i$.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 d4i(o,f){this.subtree=o,this.stamp=f}var bFe=i$;function R6(o){o=o??si.EMPTY_OBJECT;let{className:f,names:m,types:x,componentTypes:y,shape:v,dimensions:C,paddingBefore:T=Z.ZERO.clone(),paddingAfter:S=Z.ZERO.clone(),globalTransform:w=Ee.IDENTITY.clone(),shapeTransform:E=Ee.IDENTITY.clone(),minBounds:L,maxBounds:I,minimumValues:R,maximumValues:P,maximumTileCount:A}=o;this._shapeTransform=E,this._globalTransform=w,this._shape=v,this._minBounds=L,this._maxBounds=I,this._dimensions=C,this._paddingBefore=T,this._paddingAfter=S,this._className=f,this._names=m,this._types=x,this._componentTypes=y,this._metadataOrder=v===Vb.ELLIPSOID?w9.Z_UP:w9.Y_UP,this._minimumValues=R,this._maximumValues=P,this._maximumTileCount=A,this._availableLevels=void 0,this._implicitTileset=void 0,this._subtreeCache=new bFe}Object.defineProperties(R6.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}}});R6.fromUrl=async function(o){let f=Mr.createIfNeeded(o),m=await f.fetchJson();f4i(m);let x=b4i(m,f);await x.load();let{root:y}=m,v=ld(m,"3DTILES_metadata")?m.extensions["3DTILES_metadata"]:m,C=new ahe({metadataJson:v,schema:x.schema}),T=y.content.extensions["3DTILES_content_voxels"],S=T.class,w=C4i(C,S);Object.assign(w,m4i(y)),F(y.transform)?w.globalTransform=Ee.unpack(y.transform):w.globalTransform=Ee.clone(Ee.IDENTITY),w.dimensions=Z.unpack(T.dimensions),w.maximumTileCount=p4i(C),F(T.padding)&&(w.paddingBefore=Z.unpack(T.padding.before),w.paddingAfter=Z.unpack(T.padding.after));let E=new R6(w),L=new uhe(f,y,x.schema);return E._implicitTileset=L,E._availableLevels=L.availableLevels,qh.unload(x),E};function p4i(o){if(F(o.tileset))return o.tileset.getPropertyBySemantic($ce.TILESET_TILE_COUNT)}function f4i(o){let f=o.root;if(!F(f.content))throw new Oi("Root must have content");if(!ld(f.content,"3DTILES_content_voxels"))throw new Oi("Root tile content must have 3DTILES_content_voxels extension");if(!ld(f,"3DTILES_implicit_tiling")&&!F(f.implicitTiling))throw new Oi("Root tile must have implicit tiling");if(!F(o.schema)&&!F(o.schemaUri)&&!ld(o,"3DTILES_metadata"))throw new Oi("Tileset must have a metadata schema")}function m4i(o){let f=o.boundingVolume;if(F(f.box))return _4i(f.box);if(F(f.region))return x4i(f.region);if(ld(f,"3DTILES_bounding_volume_cylinder"))return v4i(f.extensions["3DTILES_bounding_volume_cylinder"]);throw new Oi("Only box, region and 3DTILES_bounding_volume_cylinder are supported in Cesium3DTilesVoxelProvider")}function x4i(o){let f=o[0],m=o[1],x=o[2],y=o[3],v=o[4],C=o[5],T=Ee.fromScale(yi.WGS84.radii),S=new Z(f,m,v),w=new Z(x,y,C);return{shape:Vb.ELLIPSOID,minBounds:S,maxBounds:w,shapeTransform:T}}var g4i=new Z,y4i=new Ut;function _4i(o){let f=Tu.unpack(o),m=Ut.getScale(f.halfAxes,g4i),x=Ut.getRotation(f.halfAxes,y4i);return{shape:Vb.BOX,minBounds:Z.negate(m,new Z),maxBounds:Z.clone(m),shapeTransform:Ee.fromRotationTranslation(x,f.center)}}function v4i(o){let{minRadius:f,maxRadius:m,height:x,minAngle:y=-be.PI,maxAngle:v=be.PI,translation:C=[0,0,0],rotation:T=[0,0,0,1]}=o,S=-.5*x+C[2],w=.5*x+C[2],E=Ee.fromTranslationQuaternionRotationScale(Z.unpack(C),fr.unpack(T),Z.ONE);return{shape:Vb.CYLINDER,minBounds:Z.fromElements(f,y,S),maxBounds:Z.fromElements(m,v,w),shapeTransform:E}}function b4i(o,f){let{schemaUri:m,schema:x}=o;return F(m)?qh.getSchemaLoader({resource:f.getDerivedResource({url:m})}):qh.getSchemaLoader({schema:x})}function C4i(o,f){let{schema:m,statistics:x}=o,y=x?.classes[f],v=m.classes[f].properties,C=Object.entries(v).map(([R,P])=>{let{type:A,componentType:M}=P,V=y?.properties[R].min,G=y?.properties[R].max,D=fo.getComponentCount(A),N=T7e(V,D),k=T7e(G,D);return{id:R,type:A,componentType:M,minValue:N,maxValue:k}}),T=C.map(R=>R.id),S=C.map(R=>R.type),w=C.map(R=>R.componentType),E=C.map(R=>R.minValue),L=C.map(R=>R.maxValue),I=E.some(F);return{className:f,names:T,types:S,componentTypes:w,minimumValues:I?E:void 0,maximumValues:I?L:void 0}}function T7e(o,f){if(!F(o))return;let m=Array.isArray(o)?o:[o];return Array.from({length:f},(x,y)=>m[y])}async function T4i(o,f){let m=o._implicitTileset,x=o._subtreeCache,y=x.find(f);if(F(y))return y;let v=m.subtreeUriTemplate.getDerivedResource({templateValues:f.getTemplateValues()}),C=m.baseResource.getDerivedResource({url:v.url}),T=await C.fetchArrayBuffer();if(y=x.find(f),F(y))return y;let S=fq(T);return y=await qce.fromSubtreeJson(C,S.jsonPayload,S.binaryPayload,m,f),x.addSubtree(y),y}R6.prototype.requestData=async function(o){o=o??si.EMPTY_OBJECT;let{tileLevel:f=0,tileX:m=0,tileY:x=0,tileZ:y=0,keyframe:v=0}=o;if(v!==0)return Promise.reject("3D Tiles currently doesn't support time-dynamic data.");let C=this._implicitTileset,T=new che({subdivisionScheme:C.subdivisionScheme,subtreeLevels:C.subtreeLevels,level:f,x:m,y:x,z:y}),S=T.isSubtreeRoot()&&T.level>0,w=S?T.getParentSubtreeCoordinates():T.getSubtreeCoordinates(),E=await T4i(this,w);if(!(S?E.childSubtreeIsAvailableAtCoordinates:E.tileIsAvailableAtCoordinates).call(E,T))return Promise.reject(`Tile is not available at level ${f}, x ${m}, y ${x}, z ${y}.`);let{contentUriTemplates:L,baseResource:I}=C,R=L[0].getDerivedResource({templateValues:T.getTemplateValues()}),P=I.getDerivedResource({url:R.url});return Bhe.fromGltf(P)};var _xt=R6;function CFe(o){o=o??1,this._radius=o??1}Object.defineProperties(CFe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});CFe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,this._radius),x=m*Math.cos(f),y=m*Math.sin(f),v=0;o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.clone(Z.UNIT_Z,o.velocity)};var TFe=CFe,U1e={CUMULUS:0};U1e.validate=function(o){return o===U1e.CUMULUS};var hle=Object.freeze(U1e);function SL(o,f){if(o=o??si.EMPTY_OBJECT,this._show=o.show??!0,this._position=Z.clone(o.position??Z.ZERO),!F(o.scale)&&F(o.maximumSize))this._maximumSize=Z.clone(o.maximumSize),this._scale=new rt(this._maximumSize.x,this._maximumSize.y);else{this._scale=rt.clone(o.scale??new rt(20,12));let m=new Z(this._scale.x,this._scale.y,Math.min(this._scale.x,this._scale.y)/1.5);this._maximumSize=Z.clone(o.maximumSize??m)}this._slice=o.slice??-1,this._color=Xe.clone(o.color??Xe.WHITE),this._brightness=o.brightness??1,this._cloudCollection=f,this._index=-1}var S4i=SL.SHOW_INDEX=0,w4i=SL.POSITION_INDEX=1,E4i=SL.SCALE_INDEX=2,L4i=SL.MAXIMUM_SIZE_INDEX=3,P4i=SL.SLICE_INDEX=4,I4i=SL.BRIGHTNESS_INDEX=5,R4i=SL.COLOR_INDEX=6;SL.NUMBER_OF_PROPERTIES=7;function eZ(o,f){let m=o._cloudCollection;F(m)&&(m._updateCloud(o,f),o._dirty=!0)}Object.defineProperties(SL.prototype,{show:{get:function(){return this._show},set:function(o){this._show!==o&&(this._show=o,eZ(this,S4i))}},position:{get:function(){return this._position},set:function(o){let f=this._position;Z.equals(f,o)||(Z.clone(o,f),eZ(this,w4i))}},scale:{get:function(){return this._scale},set:function(o){let f=this._scale;rt.equals(f,o)||(rt.clone(o,f),eZ(this,E4i))}},maximumSize:{get:function(){return this._maximumSize},set:function(o){let f=this._maximumSize;Z.equals(f,o)||(Z.clone(o,f),eZ(this,L4i))}},color:{get:function(){return this._color},set:function(o){let f=this._color;Xe.equals(f,o)||(Xe.clone(o,f),eZ(this,R4i))}},slice:{get:function(){return this._slice},set:function(o){this._slice!==o&&(this._slice=o,eZ(this,P4i))}},brightness:{get:function(){return this._brightness},set:function(o){this._brightness!==o&&(this._brightness=o,eZ(this,I4i))}}});SL.prototype._destroy=function(){this._cloudCollection=void 0};var wL=SL,$C,moe=new Z,A4i={positionHighAndScaleX:0,positionLowAndScaleY:1,packedAttribute0:2,packedAttribute1:3,color:4},M4i={direction:0,positionHighAndScaleX:1,positionLowAndScaleY:2,packedAttribute0:3,packedAttribute1:4,color:5},V4i=wL.SHOW_INDEX,G4i=wL.POSITION_INDEX,F4i=wL.SCALE_INDEX,D4i=wL.MAXIMUM_SIZE_INDEX,N4i=wL.SLICE_INDEX,W4i=wL.BRIGHTNESS_INDEX,Z4i=wL.NUMBER_OF_PROPERTIES,O4i=wL.COLOR_INDEX;function EL(o){o=o??si.EMPTY_OBJECT,this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(Z4i),this._noiseTexture=void 0,this._textureSliceWidth=128,this._noiseTextureRows=4,this.noiseDetail=o.noiseDetail??16,this.noiseOffset=Z.clone(o.noiseOffset??Z.ZERO),this._loading=!1,this._ready=!1;let f=this;this._uniforms={u_noiseTexture:function(){return f._noiseTexture},u_noiseTextureDimensions:vxt(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 vxt(o){return function(){return moe.x=o._textureSliceWidth,moe.y=o._noiseTextureRows,moe.z=1/o._noiseTextureRows,moe}}Object.defineProperties(EL.prototype,{length:{get:function(){return SFe(this),this._clouds.length}}});function bxt(o){let f=o.length;for(let m=0;m<f;++m)o[m]&&o[m]._destroy()}EL.prototype.add=function(o){o=o??si.EMPTY_OBJECT;let f=o.cloudType??hle.CUMULUS,m;return f===hle.CUMULUS&&(m=new wL(o,this),m._index=this._clouds.length,this._clouds.push(m),this._createVertexArray=!0),m};EL.prototype.remove=function(o){return this.contains(o)?(this._clouds[o._index]=void 0,this._cloudsRemoved=!0,this._createVertexArray=!0,o._destroy(),!0):!1};EL.prototype.removeAll=function(){bxt(this._clouds),this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!0};function SFe(o){if(o._cloudsRemoved){o._cloudsRemoved=!1;let f=[],m=o._clouds,x=m.length;for(let y=0,v=0;y<x;++y){let C=m[y];F(C)&&(m._index=v++,f.push(C))}o._clouds=f}}EL.prototype._updateCloud=function(o,f){o._dirty||(this._cloudsToUpdate[this._cloudsToUpdateIndex++]=o),++this._propertiesChanged[f]};EL.prototype.contains=function(o){return F(o)&&o._cloudCollection===this};EL.prototype.get=function(o){return SFe(this),this._clouds[o]};var X4i=new Float32Array([-1,-1,1,-1,1,1,-1,1]),k4i=new Uint16Array([0,1,2,0,2,3]);function U4i(o){let f=mo.createVertexBuffer({context:o,typedArray:X4i,usage:rn.STATIC_DRAW}),m=mo.createIndexBuffer({context:o,typedArray:k4i,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),x=[{index:0,vertexBuffer:f,componentsPerAttribute:2,componentDatatype:Qt.FLOAT}];return new Cu({context:o,attributes:x,indexBuffer:m})}var wFe;function B4i(o){let f=o.cache.cloudCollection_indexBufferBatched;if(F(f))return f;let m=16384*6-6,x=new Uint16Array(m);for(let y=0,v=0;y<m;y+=6,v+=4)x[y]=v,x[y+1]=v+1,x[y+2]=v+2,x[y+3]=v,x[y+4]=v+2,x[y+5]=v+3;return f=mo.createIndexBuffer({context:o,typedArray:x,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferBatched=f,f}function H4i(o){let f=o.cache.cloudCollection_indexBufferInstanced;return F(f)||(f=mo.createIndexBuffer({context:o,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferInstanced=f),f}function z4i(o){let f=o.cache.cloudCollection_vertexBufferInstanced;return F(f)||(f=mo.createVertexBuffer({context:o,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:rn.STATIC_DRAW}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_vertexBufferInstanced=f),f}function Y4i(o,f,m){let x=[{index:$C.positionHighAndScaleX,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.positionLowAndScaleY,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute0,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute1,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.color,componentsPerAttribute:4,componentDatatype:Qt.UNSIGNED_BYTE,normalize:!0,usage:rn.STATIC_DRAW}];m&&x.push({index:$C.direction,componentsPerAttribute:2,componentDatatype:Qt.FLOAT,vertexBuffer:z4i(o)});let y=m?f:4*f;return new o7(o,x,y,m)}var Uve=new $u;function Cxt(o,f,m,x){let y,v=m[$C.positionHighAndScaleX],C=m[$C.positionLowAndScaleY],T=x.position;$u.fromCartesian(T,Uve);let S=x.scale,w=Uve.high,E=Uve.low;o._instanced?(y=x._index,v(y,w.x,w.y,w.z,S.x),C(y,E.x,E.y,E.z,S.y)):(y=x._index*4,v(y+0,w.x,w.y,w.z,S.x),v(y+1,w.x,w.y,w.z,S.x),v(y+2,w.x,w.y,w.z,S.x),v(y+3,w.x,w.y,w.z,S.x),C(y+0,E.x,E.y,E.z,S.y),C(y+1,E.x,E.y,E.z,S.y),C(y+2,E.x,E.y,E.z,S.y),C(y+3,E.x,E.y,E.z,S.y))}function Txt(o,f,m,x){let y,v=m[$C.packedAttribute0],C=x.show,T=x.brightness;o._instanced?(y=x._index,v(y,C,T,0,0)):(y=x._index*4,v(y+0,C,T,0,0),v(y+1,C,T,1,0),v(y+2,C,T,1,1),v(y+3,C,T,0,1))}function Sxt(o,f,m,x){let y,v=m[$C.packedAttribute1],C=x.maximumSize,T=x.slice;o._instanced?(y=x._index,v(y,C.x,C.y,C.z,T)):(y=x._index*4,v(y+0,C.x,C.y,C.z,T),v(y+1,C.x,C.y,C.z,T),v(y+2,C.x,C.y,C.z,T),v(y+3,C.x,C.y,C.z,T))}function wxt(o,f,m,x){let y,v=m[$C.color],C=x.color,T=Xe.floatToByte(C.red),S=Xe.floatToByte(C.green),w=Xe.floatToByte(C.blue),E=Xe.floatToByte(C.alpha);o._instanced?(y=x._index,v(y,T,S,w,E)):(y=x._index*4,v(y+0,T,S,w,E),v(y+1,T,S,w,E),v(y+2,T,S,w,E),v(y+3,T,S,w,E))}function K4i(o,f,m,x){Cxt(o,f,m,x),Txt(o,f,m,x),Sxt(o,f,m,x),wxt(o,f,m,x)}function J4i(o,f,m,x){let y=o,v=y._textureSliceWidth,C=y._noiseTextureRows,T=f.context;y._vaNoise=U4i(T),y._spNoise=xs.fromCache({context:T,vertexShaderSource:m,fragmentShaderSource:x,attributeLocations:{position:0}});let S=y.noiseDetail,w=y.noiseOffset;y._noiseTexture=new Rn({context:T,width:v*v/C,height:v*C,pixelDatatype:un.UNSIGNED_BYTE,pixelFormat:zr.RGBA,sampler:new Yo({wrapS:Xn.REPEAT,wrapT:Xn.REPEAT,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})});let E=new cV({vertexArray:y._vaNoise,shaderProgram:y._spNoise,outputTexture:y._noiseTexture,uniformMap:{u_noiseTextureDimensions:vxt(y),u_noiseDetail:function(){return S},u_noiseOffset:function(){return w}},persists:!1,owner:o,postExecute:function(L){y._ready=!0,y._loading=!1}});f.commandList.push(E),y._loading=!0}function j4i(o,f){let m=o,x=f.context;m._createVertexArray=!1,m._vaf=m._vaf&&m._vaf.destroy();let y=o._clouds,v=y.length;if(v>0){m._vaf=Y4i(x,v,m._instanced);let C=m._vaf.writers,T;for(T=0;T<v;++T){let S=y[T];K4i(o,f,C,S)}m._vaf.commit(wFe(x))}}var Q4i=[];function q4i(o,f){let m=f.context,x=o,y=x._clouds.length,v=x._cloudsToUpdate,C=x._cloudsToUpdateIndex,T=x._propertiesChanged,S=Q4i;S.length=0,(T[G4i]||T[F4i])&&S.push(Cxt),(T[V4i]||T[W4i])&&S.push(Txt),(T[D4i]||T[N4i])&&S.push(Sxt),T[O4i]&&S.push(wxt);let w=S.length,E=x._vaf.writers,L,I,R;if(C/y>.1){for(L=0;L<C;++L)for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._vaf.commit(wFe(m))}else{for(L=0;L<C;++L){for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._instanced?x._vaf.subCommit(I._index,1):x._vaf.subCommit(I._index*4,4)}x._vaf.endSubCommits()}x._cloudsToUpdateIndex=0}function $4i(o,f,m,x){let y=f.context,v=o,C=new Wr({defines:[],sources:[m]});v._instanced&&C.defines.push("INSTANCED");let T=new Wr({defines:[],sources:[x]});v.debugBillboards&&T.defines.push("DEBUG_BILLBOARDS"),v.debugEllipsoids&&T.defines.push("DEBUG_ELLIPSOIDS"),v._sp=xs.replaceCache({context:y,shaderProgram:v._sp,vertexShaderSource:C,fragmentShaderSource:T,attributeLocations:$C}),v._rs=cn.fromCache({depthTest:{enabled:!0,func:bi.LESS},depthMask:!1,blending:ru.ALPHA_BLEND}),v._spCreated=!0,v._compiledDebugBillboards=v.debugBillboards,v._compiledDebugEllipsoids=v.debugEllipsoids}function eYi(o,f){let m=o,x=f.passes,y=m._uniforms,v=f.commandList;if(x.render){let C=m._colorCommands,T=m._vaf.va,S=T.length;C.length=S;for(let w=0;w<S;w++){let E=C[w];F(E)||(E=C[w]=new En),E.pass=xr.TRANSLUCENT,E.owner=o,E.uniformMap=y,E.count=T[w].indicesCount,E.vertexArray=T[w].va,E.shaderProgram=m._sp,E.renderState=m._rs,m._instanced&&(E.count=6,E.instanceCount=m._clouds.length),v.push(E)}}}EL.prototype.update=function(o){if(SFe(this),!this.show)return;let f=this.debugBillboards||this.debugEllipsoids;this._ready=f?!0:F(this._noiseTexture),!this._ready&&!this._loading&&!f&&J4i(this,o,iFe,tFe),this._instanced=o.context.instancedArrays,$C=this._instanced?M4i:A4i,wFe=this._instanced?H4i:B4i;let m=this._clouds.length,x=this._cloudsToUpdate,y=this._cloudsToUpdateIndex;this._createVertexArray?j4i(this,o):y>0&&q4i(this,o),y>m*1.5&&(x.length=m),!(!F(this._vaf)||!F(this._vaf.va)||!this._ready&!f)&&((!this._spCreated||this.debugBillboards!==this._compiledDebugBillboards||this.debugEllipsoids!==this._compiledDebugEllipsoids)&&$4i(this,o,eFe,$Ge),eYi(this,o))};EL.prototype.isDestroyed=function(){return!1};EL.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(),bxt(this._clouds),yr(this)};var Ext=EL,tYi=be.toRadians(30);function EFe(o){this._angle=o??tYi}Object.defineProperties(EFe.prototype,{angle:{get:function(){return this._angle},set:function(o){this._angle=o}}});EFe.prototype.emit=function(o){let f=Math.tan(this._angle),m=be.randomBetween(0,be.TWO_PI),x=be.randomBetween(0,f),y=x*Math.cos(m),v=x*Math.sin(m),C=1;o.velocity=Z.fromElements(y,v,C,o.velocity),Z.normalize(o.velocity,o.velocity),o.position=Z.clone(Z.ZERO,o.position)};var X4=EFe,iYi=new Xe,rYi=new Xe,nYi=new Xe,oYi=new Xe,S7e=new zt,Q8=new Uint8Array(4);function w7e(o,f,m,x){let y=f.height===m.height?0:(o-f.height)/(m.height-f.height);return Xe.lerp(f.color,m.color,y,x)}function _ae(o,f){return{height:o,color:Xe.clone(f)}}function Lxt(o){return o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?f.height===x[m-1].height:!0,T=v?f.height===x[m+1].height:!0;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?Xe.equals(f.color,x[m-1].color):!1,T=v?Xe.equals(f.color,x[m+1].color):!1;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=y?Xe.equals(f.color,x[m-1].color):!1,C=y?f.height===x[m-1].height:!0;return!v||!C}),o}function aYi(o){let f,m,x=[],y=o.length;for(f=0;f<y;f++){let v=o[f],C=v.entries,T=C.length,S=[];for(m=0;m<T;m++){let R=C[m],P=be.clamp(R.height,Rb._minimumHeight,Rb._maximumHeight),A=Xe.clone(R.color,iYi);A.red*=A.alpha,A.green*=A.alpha,A.blue*=A.alpha,S.push(_ae(P,A))}let w=!0,E=!0;for(m=0;m<T-1;m++){let R=S[m+0],P=S[m+1];w=w&&R.height<=P.height,E=E&&R.height>=P.height}E?S=S.reverse():w||b4(S,function(R,P){return be.sign(R.height-P.height)});let L=v.extendDownwards??!1,I=v.extendUpwards??!1;S.length===1&&!L&&!I&&(L=!0,I=!0),L&&S.splice(0,0,_ae(Rb._minimumHeight,S[0].color)),I&&S.splice(S.length,0,_ae(Rb._maximumHeight,S[S.length-1].color)),S=Lxt(S),x.push(S)}return x}function sYi(o){let f=aYi(o),m=[],x=[],y;function v(S,w){m.push(_ae(S,w))}function C(S,w,E){let L=Xe.multiplyByScalar(E,1-w.alpha,oYi);L=Xe.add(L,w,L),v(S,L)}let T=f.length;for(y=0;y<T;y++){let S=f[y],w=0,E=0;x=m,m=[];let L=S.length,I=x.length;for(;w<L||E<I;){let R=w<L?S[w]:void 0,P=w>0?S[w-1]:void 0,A=w<L-1?S[w+1]:void 0,M=E<I?x[E]:void 0,V=E>0?x[E-1]:void 0,G=E<I-1?x[E+1]:void 0;if(F(R)&&F(M)&&R.height===M.height){let D=F(G)&&M.height===G.height,N=!F(V),k=!F(G),U=F(A)&&R.height===A.height,B=!F(P),Y=!F(A);D?U?(C(R.height,R.color,M.color),C(R.height,A.color,G.color)):B?(v(R.height,M.color),C(R.height,R.color,G.color)):Y?(C(R.height,R.color,M.color),v(R.height,G.color)):(C(R.height,R.color,M.color),C(R.height,R.color,G.color)):N?U?(v(R.height,R.color),C(R.height,A.color,M.color)):Y?(v(R.height,R.color),v(R.height,M.color)):(B||v(R.height,R.color),C(R.height,R.color,M.color)):k?U?(C(R.height,R.color,M.color),v(R.height,A.color)):B?(v(R.height,M.color),v(R.height,R.color)):Y?C(R.height,R.color,M.color):(C(R.height,R.color,M.color),v(R.height,R.color)):U?(C(R.height,R.color,M.color),C(R.height,A.color,M.color)):B?(v(R.height,M.color),C(R.height,R.color,M.color)):Y?(C(R.height,R.color,M.color),v(R.height,M.color)):C(R.height,R.color,M.color),w+=U?2:1,E+=D?2:1}else if(F(R)&&F(M)&&F(V)&&R.height<M.height){let D=w7e(R.height,V,M,nYi);F(P)?F(A)?C(R.height,R.color,D):(C(R.height,R.color,D),v(R.height,D)):(v(R.height,D),C(R.height,R.color,D)),w++}else if(F(M)&&F(R)&&F(P)&&M.height<R.height){let D=w7e(M.height,P,R,rYi);F(V)?F(G)?C(M.height,D,M.color):(C(M.height,D,M.color),v(M.height,D)):(v(M.height,D),C(M.height,D,M.color)),E++}else F(R)&&(!F(M)||R.height<M.height)?(F(M)&&!F(V)&&!F(A)?(v(R.height,R.color),v(R.height,Rb._emptyColor),v(M.height,Rb._emptyColor)):(!F(M)&&F(V)&&!F(P)&&(v(V.height,Rb._emptyColor),v(R.height,Rb._emptyColor)),v(R.height,R.color)),w++):F(M)&&(!F(R)||M.height<R.height)&&(v(M.height,M.color),E++)}}return Lxt(m)}function Rb(o){let{scene:f,layers:m}=o??si.EMPTY_OBJECT,{context:x}=f,y=sYi(m),v=y.length,C,T,S;if(Rb._useFloatTexture(x)){T=un.FLOAT,S=x.webgl2?zr.RED:zr.LUMINANCE,C=new Float32Array(v);for(let I=0;I<v;I++)C[I]=y[I].height}else{T=un.UNSIGNED_BYTE,S=zr.RGBA,C=new Uint8Array(v*4);for(let I=0;I<v;I++)zt.packFloat(y[I].height,S7e),zt.pack(S7e,C,I*4)}let w=Rn.create({context:x,pixelFormat:S,pixelDatatype:T,source:{arrayBufferView:C,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})}),E=new Uint8Array(v*4);for(let I=0;I<v;I++)y[I].color.toBytes(Q8),E[I*4+0]=Q8[0],E[I*4+1]=Q8[1],E[I*4+2]=Q8[2],E[I*4+3]=Q8[3];let L=Rn.create({context:x,pixelFormat:zr.RGBA,pixelDatatype:un.UNSIGNED_BYTE,source:{arrayBufferView:E,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})});return Co.fromType("ElevationBand",{heights:w,colors:L})}Rb._useFloatTexture=function(o){return o.floatingPointTexture};Rb._maximumHeight=5906376425472;Rb._minimumHeight=-5906376425472;Rb._emptyColor=new Xe(0,0,0,0);var Pxt=Rb;async function lYi(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??si.EMPTY_OBJECT,o.onlyUsingWithGoogleGeocoder||aa("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??hQ.defaultApiKey;if(!F(m))return uYi(f);let x,y=hQ.getDefaultCredit();F(y)&&(x=[y]);let v=new Mr({url:`${hQ.mapTilesApiEndpoint}3dtiles/root.json`,queryParameters:{key:m},credits:x});return _0.fromUrl(v,f)}var E7e={};async function uYi(o){let f=E7e[2275207];F(f)||(f=FG.fromAssetId(2275207),E7e[2275207]=f);let m=await f;return _0.fromUrl(m,o)}var Ixt=lYi;async function cYi(o){let f=await _0.fromIonAssetId(96188,o);o=o??si.EMPTY_OBJECT;let m=o.style;if(!F(m)){let x=(o.defaultColor??Xe.WHITE).toCssColorString();m=new ZS({color:`Boolean(\${feature['cesium#color']}) ? color(\${feature['cesium#color']}) : ${x}`})}return f.style=m,f}var Rxt=cYi;function hYi(o){o=o??si.EMPTY_OBJECT;let f=[],m=o.geometry;(!F(m.attributes)||!F(m.primitiveType))&&(m=m.constructor.createGeometry(m));let x=m.attributes,y=Ee.clone(o.modelMatrix??Ee.IDENTITY),v=o.length??1e4;if(F(x.normal)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"normal",v),attributes:{color:new yo(1,0,0,1)},modelMatrix:y})),F(x.tangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"tangent",v),attributes:{color:new yo(0,1,0,1)},modelMatrix:y})),F(x.bitangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"bitangent",v),attributes:{color:new yo(0,0,1,1)},modelMatrix:y})),f.length>0)return new ta({asynchronous:!1,geometryInstances:f,appearance:new ga({flat:!0,translucent:!1})})}var Axt=hYi;function r$(o){o=o??si.EMPTY_OBJECT;let f=o.attributeName,m=o.perInstanceAttribute;F(m)||(m=!1);let x=o.glslDatatype??"vec3",y=`v_${f}`,v;if(f==="normal"||f==="tangent"||f==="bitangent")v=`vec4 getColor() { return vec4((${y} + vec3(1.0)) * 0.5, 1.0); } +`,u4i=new Z(1,1,1);function vFe(o){o=o??u4i,this._dimensions=Z.clone(o)}Object.defineProperties(vFe.prototype,{dimensions:{get:function(){return this._dimensions},set:function(o){Z.clone(o,this._dimensions)}}});var c4i=new Z;vFe.prototype.emit=function(o){let f=this._dimensions,m=Z.multiplyByScalar(f,.5,c4i),x=be.randomBetween(-m.x,m.x),y=be.randomBetween(-m.y,m.y),v=be.randomBetween(-m.z,m.z);o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var Sde=vFe;function yR(){this.featurePropertiesDirty=!1}Object.defineProperties(yR.prototype,{featuresLength:{get:function(){wt.throwInstantiationError()}},pointsLength:{get:function(){wt.throwInstantiationError()}},trianglesLength:{get:function(){wt.throwInstantiationError()}},geometryByteLength:{get:function(){wt.throwInstantiationError()}},texturesByteLength:{get:function(){wt.throwInstantiationError()}},batchTableByteLength:{get:function(){wt.throwInstantiationError()}},innerContents:{get:function(){wt.throwInstantiationError()}},ready:{get:function(){wt.throwInstantiationError()}},tileset:{get:function(){wt.throwInstantiationError()}},tile:{get:function(){wt.throwInstantiationError()}},url:{get:function(){wt.throwInstantiationError()}},batchTable:{get:function(){wt.throwInstantiationError()}},metadata:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}},group:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}}});yR.prototype.hasProperty=function(o,f){wt.throwInstantiationError()};yR.prototype.getFeature=function(o){wt.throwInstantiationError()};yR.prototype.applyDebugSettings=function(o,f){wt.throwInstantiationError()};yR.prototype.applyStyle=function(o){wt.throwInstantiationError()};yR.prototype.update=function(o,f){wt.throwInstantiationError()};yR.prototype.pick=function(o,f,m){wt.throwInstantiationError()};yR.prototype.isDestroyed=function(){wt.throwInstantiationError()};yR.prototype.destroy=function(){wt.throwInstantiationError()};var xxt=yR;function i$(o){o=o??si.EMPTY_OBJECT,this._maximumSubtreeCount=o.maximumSubtreeCount??0,this._subtreeRequestCounter=0,this._queue=new Hhe({comparator:i$.comparator})}i$.prototype.addSubtree=function(o){let f=new h4i(o,this._subtreeRequestCounter);this._subtreeRequestCounter++,this._queue.insert(f);let m=o.implicitCoordinates;if(m.level>0){let x=m.getParentSubtreeCoordinates(),y=this.find(x)}if(this._maximumSubtreeCount>0)for(;this._queue.length>this._maximumSubtreeCount&&this._queue.getMinimum()!==f;)this._queue.removeMinimum()};i$.prototype.find=function(o){let f=this._queue,m=f.internalArray,x=f.length;for(let y=0;y<x;y++){let v=m[y],C=v.subtree.implicitCoordinates;if(o.isEqual(C))return v.subtree}};i$.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 h4i(o,f){this.subtree=o,this.stamp=f}var bFe=i$;function R6(o){o=o??si.EMPTY_OBJECT;let{className:f,names:m,types:x,componentTypes:y,shape:v,dimensions:C,paddingBefore:T=Z.ZERO.clone(),paddingAfter:S=Z.ZERO.clone(),globalTransform:w=Ee.IDENTITY.clone(),shapeTransform:E=Ee.IDENTITY.clone(),minBounds:L,maxBounds:I,minimumValues:R,maximumValues:P,maximumTileCount:A}=o;this._shapeTransform=E,this._globalTransform=w,this._shape=v,this._minBounds=L,this._maxBounds=I,this._dimensions=C,this._paddingBefore=T,this._paddingAfter=S,this._className=f,this._names=m,this._types=x,this._componentTypes=y,this._metadataOrder=v===Vb.ELLIPSOID?w9.Z_UP:w9.Y_UP,this._minimumValues=R,this._maximumValues=P,this._maximumTileCount=A,this._availableLevels=void 0,this._implicitTileset=void 0,this._subtreeCache=new bFe}Object.defineProperties(R6.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}}});R6.fromUrl=async function(o){let f=Mr.createIfNeeded(o),m=await f.fetchJson();p4i(m);let x=v4i(m,f);await x.load();let{root:y}=m,v=ld(m,"3DTILES_metadata")?m.extensions["3DTILES_metadata"]:m,C=new ahe({metadataJson:v,schema:x.schema}),T=y.content.extensions["3DTILES_content_voxels"],S=T.class,w=b4i(C,S);Object.assign(w,f4i(y)),F(y.transform)?w.globalTransform=Ee.unpack(y.transform):w.globalTransform=Ee.clone(Ee.IDENTITY),w.dimensions=Z.unpack(T.dimensions),w.maximumTileCount=d4i(C),F(T.padding)&&(w.paddingBefore=Z.unpack(T.padding.before),w.paddingAfter=Z.unpack(T.padding.after));let E=new R6(w),L=new uhe(f,y,x.schema);return E._implicitTileset=L,E._availableLevels=L.availableLevels,qh.unload(x),E};function d4i(o){if(F(o.tileset))return o.tileset.getPropertyBySemantic($ce.TILESET_TILE_COUNT)}function p4i(o){let f=o.root;if(!F(f.content))throw new Oi("Root must have content");if(!ld(f.content,"3DTILES_content_voxels"))throw new Oi("Root tile content must have 3DTILES_content_voxels extension");if(!ld(f,"3DTILES_implicit_tiling")&&!F(f.implicitTiling))throw new Oi("Root tile must have implicit tiling");if(!F(o.schema)&&!F(o.schemaUri)&&!ld(o,"3DTILES_metadata"))throw new Oi("Tileset must have a metadata schema")}function f4i(o){let f=o.boundingVolume;if(F(f.box))return y4i(f.box);if(F(f.region))return m4i(f.region);if(ld(f,"3DTILES_bounding_volume_cylinder"))return _4i(f.extensions["3DTILES_bounding_volume_cylinder"]);throw new Oi("Only box, region and 3DTILES_bounding_volume_cylinder are supported in Cesium3DTilesVoxelProvider")}function m4i(o){let f=o[0],m=o[1],x=o[2],y=o[3],v=o[4],C=o[5],T=Ee.fromScale(yi.WGS84.radii),S=new Z(f,m,v),w=new Z(x,y,C);return{shape:Vb.ELLIPSOID,minBounds:S,maxBounds:w,shapeTransform:T}}var x4i=new Z,g4i=new Ut;function y4i(o){let f=Tu.unpack(o),m=Ut.getScale(f.halfAxes,x4i),x=Ut.getRotation(f.halfAxes,g4i);return{shape:Vb.BOX,minBounds:Z.negate(m,new Z),maxBounds:Z.clone(m),shapeTransform:Ee.fromRotationTranslation(x,f.center)}}function _4i(o){let{minRadius:f,maxRadius:m,height:x,minAngle:y=-be.PI,maxAngle:v=be.PI,translation:C=[0,0,0],rotation:T=[0,0,0,1]}=o,S=-.5*x+C[2],w=.5*x+C[2],E=Ee.fromTranslationQuaternionRotationScale(Z.unpack(C),fr.unpack(T),Z.ONE);return{shape:Vb.CYLINDER,minBounds:Z.fromElements(f,y,S),maxBounds:Z.fromElements(m,v,w),shapeTransform:E}}function v4i(o,f){let{schemaUri:m,schema:x}=o;return F(m)?qh.getSchemaLoader({resource:f.getDerivedResource({url:m})}):qh.getSchemaLoader({schema:x})}function b4i(o,f){let{schema:m,statistics:x}=o,y=x?.classes[f],v=m.classes[f].properties,C=Object.entries(v).map(([R,P])=>{let{type:A,componentType:M}=P,V=y?.properties[R].min,G=y?.properties[R].max,D=fo.getComponentCount(A),N=T7e(V,D),k=T7e(G,D);return{id:R,type:A,componentType:M,minValue:N,maxValue:k}}),T=C.map(R=>R.id),S=C.map(R=>R.type),w=C.map(R=>R.componentType),E=C.map(R=>R.minValue),L=C.map(R=>R.maxValue),I=E.some(F);return{className:f,names:T,types:S,componentTypes:w,minimumValues:I?E:void 0,maximumValues:I?L:void 0}}function T7e(o,f){if(!F(o))return;let m=Array.isArray(o)?o:[o];return Array.from({length:f},(x,y)=>m[y])}async function C4i(o,f){let m=o._implicitTileset,x=o._subtreeCache,y=x.find(f);if(F(y))return y;let v=m.subtreeUriTemplate.getDerivedResource({templateValues:f.getTemplateValues()}),C=m.baseResource.getDerivedResource({url:v.url}),T=await C.fetchArrayBuffer();if(y=x.find(f),F(y))return y;let S=fq(T);return y=await qce.fromSubtreeJson(C,S.jsonPayload,S.binaryPayload,m,f),x.addSubtree(y),y}R6.prototype.requestData=async function(o){o=o??si.EMPTY_OBJECT;let{tileLevel:f=0,tileX:m=0,tileY:x=0,tileZ:y=0,keyframe:v=0}=o;if(v!==0)return Promise.reject("3D Tiles currently doesn't support time-dynamic data.");let C=this._implicitTileset,T=new che({subdivisionScheme:C.subdivisionScheme,subtreeLevels:C.subtreeLevels,level:f,x:m,y:x,z:y}),S=T.isSubtreeRoot()&&T.level>0,w=S?T.getParentSubtreeCoordinates():T.getSubtreeCoordinates(),E=await C4i(this,w);if(!(S?E.childSubtreeIsAvailableAtCoordinates:E.tileIsAvailableAtCoordinates).call(E,T))return Promise.reject(`Tile is not available at level ${f}, x ${m}, y ${x}, z ${y}.`);let{contentUriTemplates:L,baseResource:I}=C,R=L[0].getDerivedResource({templateValues:T.getTemplateValues()}),P=I.getDerivedResource({url:R.url});return Bhe.fromGltf(P)};var gxt=R6;function CFe(o){o=o??1,this._radius=o??1}Object.defineProperties(CFe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});CFe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,this._radius),x=m*Math.cos(f),y=m*Math.sin(f),v=0;o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.clone(Z.UNIT_Z,o.velocity)};var TFe=CFe,U1e={CUMULUS:0};U1e.validate=function(o){return o===U1e.CUMULUS};var hle=Object.freeze(U1e);function SL(o,f){if(o=o??si.EMPTY_OBJECT,this._show=o.show??!0,this._position=Z.clone(o.position??Z.ZERO),!F(o.scale)&&F(o.maximumSize))this._maximumSize=Z.clone(o.maximumSize),this._scale=new rt(this._maximumSize.x,this._maximumSize.y);else{this._scale=rt.clone(o.scale??new rt(20,12));let m=new Z(this._scale.x,this._scale.y,Math.min(this._scale.x,this._scale.y)/1.5);this._maximumSize=Z.clone(o.maximumSize??m)}this._slice=o.slice??-1,this._color=Xe.clone(o.color??Xe.WHITE),this._brightness=o.brightness??1,this._cloudCollection=f,this._index=-1}var T4i=SL.SHOW_INDEX=0,S4i=SL.POSITION_INDEX=1,w4i=SL.SCALE_INDEX=2,E4i=SL.MAXIMUM_SIZE_INDEX=3,L4i=SL.SLICE_INDEX=4,P4i=SL.BRIGHTNESS_INDEX=5,I4i=SL.COLOR_INDEX=6;SL.NUMBER_OF_PROPERTIES=7;function eZ(o,f){let m=o._cloudCollection;F(m)&&(m._updateCloud(o,f),o._dirty=!0)}Object.defineProperties(SL.prototype,{show:{get:function(){return this._show},set:function(o){this._show!==o&&(this._show=o,eZ(this,T4i))}},position:{get:function(){return this._position},set:function(o){let f=this._position;Z.equals(f,o)||(Z.clone(o,f),eZ(this,S4i))}},scale:{get:function(){return this._scale},set:function(o){let f=this._scale;rt.equals(f,o)||(rt.clone(o,f),eZ(this,w4i))}},maximumSize:{get:function(){return this._maximumSize},set:function(o){let f=this._maximumSize;Z.equals(f,o)||(Z.clone(o,f),eZ(this,E4i))}},color:{get:function(){return this._color},set:function(o){let f=this._color;Xe.equals(f,o)||(Xe.clone(o,f),eZ(this,I4i))}},slice:{get:function(){return this._slice},set:function(o){this._slice!==o&&(this._slice=o,eZ(this,L4i))}},brightness:{get:function(){return this._brightness},set:function(o){this._brightness!==o&&(this._brightness=o,eZ(this,P4i))}}});SL.prototype._destroy=function(){this._cloudCollection=void 0};var wL=SL,$C,moe=new Z,R4i={positionHighAndScaleX:0,positionLowAndScaleY:1,packedAttribute0:2,packedAttribute1:3,color:4},A4i={direction:0,positionHighAndScaleX:1,positionLowAndScaleY:2,packedAttribute0:3,packedAttribute1:4,color:5},M4i=wL.SHOW_INDEX,V4i=wL.POSITION_INDEX,G4i=wL.SCALE_INDEX,F4i=wL.MAXIMUM_SIZE_INDEX,D4i=wL.SLICE_INDEX,N4i=wL.BRIGHTNESS_INDEX,W4i=wL.NUMBER_OF_PROPERTIES,Z4i=wL.COLOR_INDEX;function EL(o){o=o??si.EMPTY_OBJECT,this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(W4i),this._noiseTexture=void 0,this._textureSliceWidth=128,this._noiseTextureRows=4,this.noiseDetail=o.noiseDetail??16,this.noiseOffset=Z.clone(o.noiseOffset??Z.ZERO),this._loading=!1,this._ready=!1;let f=this;this._uniforms={u_noiseTexture:function(){return f._noiseTexture},u_noiseTextureDimensions:yxt(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 yxt(o){return function(){return moe.x=o._textureSliceWidth,moe.y=o._noiseTextureRows,moe.z=1/o._noiseTextureRows,moe}}Object.defineProperties(EL.prototype,{length:{get:function(){return SFe(this),this._clouds.length}}});function _xt(o){let f=o.length;for(let m=0;m<f;++m)o[m]&&o[m]._destroy()}EL.prototype.add=function(o){o=o??si.EMPTY_OBJECT;let f=o.cloudType??hle.CUMULUS,m;return f===hle.CUMULUS&&(m=new wL(o,this),m._index=this._clouds.length,this._clouds.push(m),this._createVertexArray=!0),m};EL.prototype.remove=function(o){return this.contains(o)?(this._clouds[o._index]=void 0,this._cloudsRemoved=!0,this._createVertexArray=!0,o._destroy(),!0):!1};EL.prototype.removeAll=function(){_xt(this._clouds),this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!0};function SFe(o){if(o._cloudsRemoved){o._cloudsRemoved=!1;let f=[],m=o._clouds,x=m.length;for(let y=0,v=0;y<x;++y){let C=m[y];F(C)&&(m._index=v++,f.push(C))}o._clouds=f}}EL.prototype._updateCloud=function(o,f){o._dirty||(this._cloudsToUpdate[this._cloudsToUpdateIndex++]=o),++this._propertiesChanged[f]};EL.prototype.contains=function(o){return F(o)&&o._cloudCollection===this};EL.prototype.get=function(o){return SFe(this),this._clouds[o]};var O4i=new Float32Array([-1,-1,1,-1,1,1,-1,1]),X4i=new Uint16Array([0,1,2,0,2,3]);function k4i(o){let f=mo.createVertexBuffer({context:o,typedArray:O4i,usage:rn.STATIC_DRAW}),m=mo.createIndexBuffer({context:o,typedArray:X4i,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),x=[{index:0,vertexBuffer:f,componentsPerAttribute:2,componentDatatype:Qt.FLOAT}];return new Cu({context:o,attributes:x,indexBuffer:m})}var wFe;function U4i(o){let f=o.cache.cloudCollection_indexBufferBatched;if(F(f))return f;let m=16384*6-6,x=new Uint16Array(m);for(let y=0,v=0;y<m;y+=6,v+=4)x[y]=v,x[y+1]=v+1,x[y+2]=v+2,x[y+3]=v,x[y+4]=v+2,x[y+5]=v+3;return f=mo.createIndexBuffer({context:o,typedArray:x,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferBatched=f,f}function B4i(o){let f=o.cache.cloudCollection_indexBufferInstanced;return F(f)||(f=mo.createIndexBuffer({context:o,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferInstanced=f),f}function H4i(o){let f=o.cache.cloudCollection_vertexBufferInstanced;return F(f)||(f=mo.createVertexBuffer({context:o,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:rn.STATIC_DRAW}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_vertexBufferInstanced=f),f}function z4i(o,f,m){let x=[{index:$C.positionHighAndScaleX,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.positionLowAndScaleY,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute0,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute1,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.color,componentsPerAttribute:4,componentDatatype:Qt.UNSIGNED_BYTE,normalize:!0,usage:rn.STATIC_DRAW}];m&&x.push({index:$C.direction,componentsPerAttribute:2,componentDatatype:Qt.FLOAT,vertexBuffer:H4i(o)});let y=m?f:4*f;return new o7(o,x,y,m)}var Uve=new $u;function vxt(o,f,m,x){let y,v=m[$C.positionHighAndScaleX],C=m[$C.positionLowAndScaleY],T=x.position;$u.fromCartesian(T,Uve);let S=x.scale,w=Uve.high,E=Uve.low;o._instanced?(y=x._index,v(y,w.x,w.y,w.z,S.x),C(y,E.x,E.y,E.z,S.y)):(y=x._index*4,v(y+0,w.x,w.y,w.z,S.x),v(y+1,w.x,w.y,w.z,S.x),v(y+2,w.x,w.y,w.z,S.x),v(y+3,w.x,w.y,w.z,S.x),C(y+0,E.x,E.y,E.z,S.y),C(y+1,E.x,E.y,E.z,S.y),C(y+2,E.x,E.y,E.z,S.y),C(y+3,E.x,E.y,E.z,S.y))}function bxt(o,f,m,x){let y,v=m[$C.packedAttribute0],C=x.show,T=x.brightness;o._instanced?(y=x._index,v(y,C,T,0,0)):(y=x._index*4,v(y+0,C,T,0,0),v(y+1,C,T,1,0),v(y+2,C,T,1,1),v(y+3,C,T,0,1))}function Cxt(o,f,m,x){let y,v=m[$C.packedAttribute1],C=x.maximumSize,T=x.slice;o._instanced?(y=x._index,v(y,C.x,C.y,C.z,T)):(y=x._index*4,v(y+0,C.x,C.y,C.z,T),v(y+1,C.x,C.y,C.z,T),v(y+2,C.x,C.y,C.z,T),v(y+3,C.x,C.y,C.z,T))}function Txt(o,f,m,x){let y,v=m[$C.color],C=x.color,T=Xe.floatToByte(C.red),S=Xe.floatToByte(C.green),w=Xe.floatToByte(C.blue),E=Xe.floatToByte(C.alpha);o._instanced?(y=x._index,v(y,T,S,w,E)):(y=x._index*4,v(y+0,T,S,w,E),v(y+1,T,S,w,E),v(y+2,T,S,w,E),v(y+3,T,S,w,E))}function Y4i(o,f,m,x){vxt(o,f,m,x),bxt(o,f,m,x),Cxt(o,f,m,x),Txt(o,f,m,x)}function K4i(o,f,m,x){let y=o,v=y._textureSliceWidth,C=y._noiseTextureRows,T=f.context;y._vaNoise=k4i(T),y._spNoise=xs.fromCache({context:T,vertexShaderSource:m,fragmentShaderSource:x,attributeLocations:{position:0}});let S=y.noiseDetail,w=y.noiseOffset;y._noiseTexture=new Rn({context:T,width:v*v/C,height:v*C,pixelDatatype:un.UNSIGNED_BYTE,pixelFormat:zr.RGBA,sampler:new Yo({wrapS:Xn.REPEAT,wrapT:Xn.REPEAT,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})});let E=new cV({vertexArray:y._vaNoise,shaderProgram:y._spNoise,outputTexture:y._noiseTexture,uniformMap:{u_noiseTextureDimensions:yxt(y),u_noiseDetail:function(){return S},u_noiseOffset:function(){return w}},persists:!1,owner:o,postExecute:function(L){y._ready=!0,y._loading=!1}});f.commandList.push(E),y._loading=!0}function J4i(o,f){let m=o,x=f.context;m._createVertexArray=!1,m._vaf=m._vaf&&m._vaf.destroy();let y=o._clouds,v=y.length;if(v>0){m._vaf=z4i(x,v,m._instanced);let C=m._vaf.writers,T;for(T=0;T<v;++T){let S=y[T];Y4i(o,f,C,S)}m._vaf.commit(wFe(x))}}var j4i=[];function Q4i(o,f){let m=f.context,x=o,y=x._clouds.length,v=x._cloudsToUpdate,C=x._cloudsToUpdateIndex,T=x._propertiesChanged,S=j4i;S.length=0,(T[V4i]||T[G4i])&&S.push(vxt),(T[M4i]||T[N4i])&&S.push(bxt),(T[F4i]||T[D4i])&&S.push(Cxt),T[Z4i]&&S.push(Txt);let w=S.length,E=x._vaf.writers,L,I,R;if(C/y>.1){for(L=0;L<C;++L)for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._vaf.commit(wFe(m))}else{for(L=0;L<C;++L){for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._instanced?x._vaf.subCommit(I._index,1):x._vaf.subCommit(I._index*4,4)}x._vaf.endSubCommits()}x._cloudsToUpdateIndex=0}function q4i(o,f,m,x){let y=f.context,v=o,C=new Wr({defines:[],sources:[m]});v._instanced&&C.defines.push("INSTANCED");let T=new Wr({defines:[],sources:[x]});v.debugBillboards&&T.defines.push("DEBUG_BILLBOARDS"),v.debugEllipsoids&&T.defines.push("DEBUG_ELLIPSOIDS"),v._sp=xs.replaceCache({context:y,shaderProgram:v._sp,vertexShaderSource:C,fragmentShaderSource:T,attributeLocations:$C}),v._rs=cn.fromCache({depthTest:{enabled:!0,func:bi.LESS},depthMask:!1,blending:ru.ALPHA_BLEND}),v._spCreated=!0,v._compiledDebugBillboards=v.debugBillboards,v._compiledDebugEllipsoids=v.debugEllipsoids}function $4i(o,f){let m=o,x=f.passes,y=m._uniforms,v=f.commandList;if(x.render){let C=m._colorCommands,T=m._vaf.va,S=T.length;C.length=S;for(let w=0;w<S;w++){let E=C[w];F(E)||(E=C[w]=new En),E.pass=xr.TRANSLUCENT,E.owner=o,E.uniformMap=y,E.count=T[w].indicesCount,E.vertexArray=T[w].va,E.shaderProgram=m._sp,E.renderState=m._rs,m._instanced&&(E.count=6,E.instanceCount=m._clouds.length),v.push(E)}}}EL.prototype.update=function(o){if(SFe(this),!this.show)return;let f=this.debugBillboards||this.debugEllipsoids;this._ready=f?!0:F(this._noiseTexture),!this._ready&&!this._loading&&!f&&K4i(this,o,yFe,gFe),this._instanced=o.context.instancedArrays,$C=this._instanced?A4i:R4i,wFe=this._instanced?B4i:U4i;let m=this._clouds.length,x=this._cloudsToUpdate,y=this._cloudsToUpdateIndex;this._createVertexArray?J4i(this,o):y>0&&Q4i(this,o),y>m*1.5&&(x.length=m),!(!F(this._vaf)||!F(this._vaf.va)||!this._ready&!f)&&((!this._spCreated||this.debugBillboards!==this._compiledDebugBillboards||this.debugEllipsoids!==this._compiledDebugEllipsoids)&&q4i(this,o,xFe,mFe),$4i(this,o))};EL.prototype.isDestroyed=function(){return!1};EL.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(),_xt(this._clouds),yr(this)};var Sxt=EL,eYi=be.toRadians(30);function EFe(o){this._angle=o??eYi}Object.defineProperties(EFe.prototype,{angle:{get:function(){return this._angle},set:function(o){this._angle=o}}});EFe.prototype.emit=function(o){let f=Math.tan(this._angle),m=be.randomBetween(0,be.TWO_PI),x=be.randomBetween(0,f),y=x*Math.cos(m),v=x*Math.sin(m),C=1;o.velocity=Z.fromElements(y,v,C,o.velocity),Z.normalize(o.velocity,o.velocity),o.position=Z.clone(Z.ZERO,o.position)};var X4=EFe,tYi=new Xe,iYi=new Xe,rYi=new Xe,nYi=new Xe,S7e=new zt,j8=new Uint8Array(4);function w7e(o,f,m,x){let y=f.height===m.height?0:(o-f.height)/(m.height-f.height);return Xe.lerp(f.color,m.color,y,x)}function yae(o,f){return{height:o,color:Xe.clone(f)}}function wxt(o){return o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?f.height===x[m-1].height:!0,T=v?f.height===x[m+1].height:!0;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?Xe.equals(f.color,x[m-1].color):!1,T=v?Xe.equals(f.color,x[m+1].color):!1;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=y?Xe.equals(f.color,x[m-1].color):!1,C=y?f.height===x[m-1].height:!0;return!v||!C}),o}function oYi(o){let f,m,x=[],y=o.length;for(f=0;f<y;f++){let v=o[f],C=v.entries,T=C.length,S=[];for(m=0;m<T;m++){let R=C[m],P=be.clamp(R.height,Rb._minimumHeight,Rb._maximumHeight),A=Xe.clone(R.color,tYi);A.red*=A.alpha,A.green*=A.alpha,A.blue*=A.alpha,S.push(yae(P,A))}let w=!0,E=!0;for(m=0;m<T-1;m++){let R=S[m+0],P=S[m+1];w=w&&R.height<=P.height,E=E&&R.height>=P.height}E?S=S.reverse():w||b4(S,function(R,P){return be.sign(R.height-P.height)});let L=v.extendDownwards??!1,I=v.extendUpwards??!1;S.length===1&&!L&&!I&&(L=!0,I=!0),L&&S.splice(0,0,yae(Rb._minimumHeight,S[0].color)),I&&S.splice(S.length,0,yae(Rb._maximumHeight,S[S.length-1].color)),S=wxt(S),x.push(S)}return x}function aYi(o){let f=oYi(o),m=[],x=[],y;function v(S,w){m.push(yae(S,w))}function C(S,w,E){let L=Xe.multiplyByScalar(E,1-w.alpha,nYi);L=Xe.add(L,w,L),v(S,L)}let T=f.length;for(y=0;y<T;y++){let S=f[y],w=0,E=0;x=m,m=[];let L=S.length,I=x.length;for(;w<L||E<I;){let R=w<L?S[w]:void 0,P=w>0?S[w-1]:void 0,A=w<L-1?S[w+1]:void 0,M=E<I?x[E]:void 0,V=E>0?x[E-1]:void 0,G=E<I-1?x[E+1]:void 0;if(F(R)&&F(M)&&R.height===M.height){let D=F(G)&&M.height===G.height,N=!F(V),k=!F(G),U=F(A)&&R.height===A.height,B=!F(P),Y=!F(A);D?U?(C(R.height,R.color,M.color),C(R.height,A.color,G.color)):B?(v(R.height,M.color),C(R.height,R.color,G.color)):Y?(C(R.height,R.color,M.color),v(R.height,G.color)):(C(R.height,R.color,M.color),C(R.height,R.color,G.color)):N?U?(v(R.height,R.color),C(R.height,A.color,M.color)):Y?(v(R.height,R.color),v(R.height,M.color)):(B||v(R.height,R.color),C(R.height,R.color,M.color)):k?U?(C(R.height,R.color,M.color),v(R.height,A.color)):B?(v(R.height,M.color),v(R.height,R.color)):Y?C(R.height,R.color,M.color):(C(R.height,R.color,M.color),v(R.height,R.color)):U?(C(R.height,R.color,M.color),C(R.height,A.color,M.color)):B?(v(R.height,M.color),C(R.height,R.color,M.color)):Y?(C(R.height,R.color,M.color),v(R.height,M.color)):C(R.height,R.color,M.color),w+=U?2:1,E+=D?2:1}else if(F(R)&&F(M)&&F(V)&&R.height<M.height){let D=w7e(R.height,V,M,rYi);F(P)?F(A)?C(R.height,R.color,D):(C(R.height,R.color,D),v(R.height,D)):(v(R.height,D),C(R.height,R.color,D)),w++}else if(F(M)&&F(R)&&F(P)&&M.height<R.height){let D=w7e(M.height,P,R,iYi);F(V)?F(G)?C(M.height,D,M.color):(C(M.height,D,M.color),v(M.height,D)):(v(M.height,D),C(M.height,D,M.color)),E++}else F(R)&&(!F(M)||R.height<M.height)?(F(M)&&!F(V)&&!F(A)?(v(R.height,R.color),v(R.height,Rb._emptyColor),v(M.height,Rb._emptyColor)):(!F(M)&&F(V)&&!F(P)&&(v(V.height,Rb._emptyColor),v(R.height,Rb._emptyColor)),v(R.height,R.color)),w++):F(M)&&(!F(R)||M.height<R.height)&&(v(M.height,M.color),E++)}}return wxt(m)}function Rb(o){let{scene:f,layers:m}=o??si.EMPTY_OBJECT,{context:x}=f,y=aYi(m),v=y.length,C,T,S;if(Rb._useFloatTexture(x)){T=un.FLOAT,S=x.webgl2?zr.RED:zr.LUMINANCE,C=new Float32Array(v);for(let I=0;I<v;I++)C[I]=y[I].height}else{T=un.UNSIGNED_BYTE,S=zr.RGBA,C=new Uint8Array(v*4);for(let I=0;I<v;I++)zt.packFloat(y[I].height,S7e),zt.pack(S7e,C,I*4)}let w=Rn.create({context:x,pixelFormat:S,pixelDatatype:T,source:{arrayBufferView:C,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})}),E=new Uint8Array(v*4);for(let I=0;I<v;I++)y[I].color.toBytes(j8),E[I*4+0]=j8[0],E[I*4+1]=j8[1],E[I*4+2]=j8[2],E[I*4+3]=j8[3];let L=Rn.create({context:x,pixelFormat:zr.RGBA,pixelDatatype:un.UNSIGNED_BYTE,source:{arrayBufferView:E,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})});return Co.fromType("ElevationBand",{heights:w,colors:L})}Rb._useFloatTexture=function(o){return o.floatingPointTexture};Rb._maximumHeight=5906376425472;Rb._minimumHeight=-5906376425472;Rb._emptyColor=new Xe(0,0,0,0);var Ext=Rb;async function sYi(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??si.EMPTY_OBJECT,o.onlyUsingWithGoogleGeocoder||aa("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??hQ.defaultApiKey;if(!F(m))return lYi(f);let x,y=hQ.getDefaultCredit();F(y)&&(x=[y]);let v=new Mr({url:`${hQ.mapTilesApiEndpoint}3dtiles/root.json`,queryParameters:{key:m},credits:x});return _0.fromUrl(v,f)}var E7e={};async function lYi(o){let f=E7e[2275207];F(f)||(f=FG.fromAssetId(2275207),E7e[2275207]=f);let m=await f;return _0.fromUrl(m,o)}var Lxt=sYi;async function uYi(o){let f=await _0.fromIonAssetId(96188,o);o=o??si.EMPTY_OBJECT;let m=o.style;if(!F(m)){let x=(o.defaultColor??Xe.WHITE).toCssColorString();m=new ZS({color:`Boolean(\${feature['cesium#color']}) ? color(\${feature['cesium#color']}) : ${x}`})}return f.style=m,f}var Pxt=uYi;function cYi(o){o=o??si.EMPTY_OBJECT;let f=[],m=o.geometry;(!F(m.attributes)||!F(m.primitiveType))&&(m=m.constructor.createGeometry(m));let x=m.attributes,y=Ee.clone(o.modelMatrix??Ee.IDENTITY),v=o.length??1e4;if(F(x.normal)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"normal",v),attributes:{color:new yo(1,0,0,1)},modelMatrix:y})),F(x.tangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"tangent",v),attributes:{color:new yo(0,1,0,1)},modelMatrix:y})),F(x.bitangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"bitangent",v),attributes:{color:new yo(0,0,1,1)},modelMatrix:y})),f.length>0)return new ta({asynchronous:!1,geometryInstances:f,appearance:new ga({flat:!0,translucent:!1})})}var Ixt=cYi;function r$(o){o=o??si.EMPTY_OBJECT;let f=o.attributeName,m=o.perInstanceAttribute;F(m)||(m=!1);let x=o.glslDatatype??"vec3",y=`v_${f}`,v;if(f==="normal"||f==="tangent"||f==="bitangent")v=`vec4 getColor() { return vec4((${y} + vec3(1.0)) * 0.5, 1.0); } `;else switch(f==="st"&&(x="vec2"),x){case"float":v=`vec4 getColor() { return vec4(vec3(${y}), 1.0); } `;break;case"vec2":v=`vec4 getColor() { return vec4(${y}, 0.0, 1.0); } `;break;case"vec3":v=`vec4 getColor() { return vec4(${y}, 1.0); } @@ -20501,7 +20501,7 @@ void main() { out_FragColor = getColor(); -}`;this.material=void 0,this.translucent=o.translucent??!1,this._vertexShaderSource=o.vertexShaderSource??C,this._fragmentShaderSource=o.fragmentShaderSource??T,this._renderState=Sd.getDefaultRenderState(!1,!1,o.renderState),this._closed=o.closed??!1,this._attributeName=f,this._glslDatatype=x}Object.defineProperties(r$.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}}});r$.prototype.getFragmentShaderSource=Sd.prototype.getFragmentShaderSource;r$.prototype.isTranslucent=Sd.prototype.isTranslucent;r$.prototype.getRenderState=Sd.prototype.getRenderState;var Mxt=r$;function Ede(o){o=o??si.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}Ede.prototype.update=function(o){if(this.show){if(!F(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,F(this._primitive)&&this._primitive.destroy(),this.modelMatrix[12]===0&&this.modelMatrix[13]===0&&this.modelMatrix[14]===0&&(this.modelMatrix[14]=.01);let f=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_X],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.RED,Xe.RED],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),m=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Y],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.GREEN,Xe.GREEN],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),x=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Z],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.BLUE,Xe.BLUE],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this});this._primitive=new ta({geometryInstances:[f,m,x],appearance:new om,asynchronous:!1})}this._primitive.update(o)}};Ede.prototype.isDestroyed=function(){return!1};Ede.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),yr(this)};var LFe=Ede;function dYi(o){this.direction=Z.clone(o.direction),this.color=Xe.clone(o.color??Xe.WHITE),this.intensity=o.intensity??1}var k4=dYi;function wb(o){this._scene=o.scene,this.samplingWindow=o.samplingWindow??wb.defaultSettings.samplingWindow,this.quietPeriod=o.quietPeriod??wb.defaultSettings.quietPeriod,this.warmupPeriod=o.warmupPeriod??wb.defaultSettings.warmupPeriod,this.minimumFrameRateDuringWarmup=o.minimumFrameRateDuringWarmup??wb.defaultSettings.minimumFrameRateDuringWarmup,this.minimumFrameRateAfterWarmup=o.minimumFrameRateAfterWarmup??wb.defaultSettings.minimumFrameRateAfterWarmup,this._lowFrameRate=new Tr,this._nominalFrameRate=new Tr,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(y,v){pYi(f,v)}),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(){fYi(f)}this._visibilityChangeRemoveListener=void 0,F(m)&&(document.addEventListener(m,x,!1),this._visibilityChangeRemoveListener=function(){document.removeEventListener(m,x,!1)})}wb.defaultSettings={samplingWindow:5,quietPeriod:2,warmupPeriod:5,minimumFrameRateDuringWarmup:4,minimumFrameRateAfterWarmup:8};wb.fromScene=function(o){return(!F(o._frameRateMonitor)||o._frameRateMonitor.isDestroyed())&&(o._frameRateMonitor=new wb({scene:o})),o._frameRateMonitor};Object.defineProperties(wb.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}}});wb.prototype.pause=function(){++this._pauseCount,this._pauseCount===1&&(this._frameTimes.length=0,this._lastFramesPerSecond=void 0)};wb.prototype.unpause=function(){--this._pauseCount,this._pauseCount<=0&&(this._pauseCount=0,this._needsQuietPeriod=!0)};wb.prototype.isDestroyed=function(){return!1};wb.prototype.destroy=function(){return this._preUpdateRemoveListener(),F(this._visibilityChangeRemoveListener)&&this._visibilityChangeRemoveListener(),yr(this)};function pYi(o,f){if(o._pauseCount>0)return;let m=lh();if(o._needsQuietPeriod)o._needsQuietPeriod=!1,o._frameTimes.length=0,o._quietPeriodEndTime=m+o.quietPeriod/cc.SECONDS_PER_MILLISECOND,o._warmupPeriodEndTime=o._quietPeriodEndTime+(o.warmupPeriod+o.samplingWindow)/cc.SECONDS_PER_MILLISECOND;else if(m>=o._quietPeriodEndTime){o._frameTimes.push(m);let x=m-o.samplingWindow/cc.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 y=(m-o._frameTimes[0])/(o._frameTimes.length-1);o._lastFramesPerSecond=1e3/y;let v=1e3/(m>o._warmupPeriodEndTime?o.minimumFrameRateAfterWarmup:o.minimumFrameRateDuringWarmup);y>v?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 fYi(o){document[o._hiddenPropertyName]?o.pause():o.unpause()}var PFe=wb,mYi=k0(j$e(),1);function IFe(){this._image=new Image}IFe.prototype.isReady=function(){return!0};IFe.prototype.shouldDiscardImage=function(o){return o===this._image};function P9(o){o=o??si.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 _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=23,F(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new IFe),this._errorEvent=new Tr}Object.defineProperties(P9.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}}});P9.fromMetadata=function(o,f){if(!o.imageryPresent)throw new Oi(`The server ${o.url} doesn't have imagery`);let m=new P9(f);return m._metadata=o,m};P9.prototype.getTileCredits=function(o,f,m){let x=this._metadata,y=x.getTileInformation(o,f,m);if(F(y)){let v=x.providers[y.imageryProvider];if(F(v))return[v]}};P9.prototype.requestImage=function(o,f,m,x){let y=this._tileDiscardPolicy._image,v=this._metadata,C=Z4.tileXYToQuadKey(o,f,m),T=v.getTileInformation(o,f,m);if(!F(T)){if(v.isValid(C)){let w=new hm({throttle:x.throttle,throttleByServer:x.throttleByServer,type:x.type,priorityFunction:x.priorityFunction});v.populateSubtree(o,f,m,w);return}return Promise.resolve(y)}if(!T.hasImagery())return Promise.resolve(y);let S=xYi(this,T,o,f,m,x).fetchArrayBuffer();if(F(S))return S.then(function(w){dFe(v.key,w);let E=new Uint8Array(w),L,I=v.protoImagery;if((!F(I)||!I)&&(L=gYi(E)),!F(L)&&(!F(I)||I)){let R=yYi(E);L=R.imageType,E=R.imageData}return!F(L)||!F(E)?y:Jz({uint8Array:E,format:L,flipY:!0})})};P9.prototype.pickFeatures=function(o,f,m,x,y){};function xYi(o,f,m,x,y,v){let C=Z4.tileXYToQuadKey(m,x,y),T=f.imageryVersion;return T=F(T)&&T>0?T:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1-0${C}-i.${T.toString()}`,request:v})}function gYi(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 yYi(o){let f=mYi.Reader.create(o),m=f.len,x={};for(;f.pos<m;){let C=f.uint32(),T;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(T=x.copyrightIds,F(T)||(T=x.copyrightIds=[]),(C&7)===2){let S=f.uint32()+f.pos;for(;f.pos<S;)T.push(f.uint32())}else T.push(f.uint32());break;default:f.skipType(C&7);break}}let y=x.imageType;if(F(y))switch(y){case 0:x.imageType="image/jpeg";break;case 4:x.imageType="image/png";break;default:throw new Oi("GoogleEarthEnterpriseImageryProvider: Unsupported image type.")}let v=x.alphaType;return F(v)&&v!==0&&(console.log("GoogleEarthEnterpriseImageryProvider: External alpha not supported."),delete x.alphaType,delete x.imageAlpha),x}var Vxt=P9,_Yi=new Xe(1,1,1,.4),vYi=new Xe(0,1,0,.05),bYi=new Xe(0,.5,0,.2);function ZO(o){o=o??si.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=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._cells=o.cells??8,this._color=o.color??_Yi,this._glowColor=o.glowColor??vYi,this._glowWidth=o.glowWidth??6,this._backgroundColor=o.backgroundColor??bYi,this._errorEvent=new Tr,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._canvasSize=o.canvasSize??256,this._canvas=this._createGridCanvas()}Object.defineProperties(ZO.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}}});ZO.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()};ZO.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"),y=this._backgroundColor.toCssColorString();x.fillStyle=y,x.fillRect(f,f,m,m);let v=this._glowColor.toCssColorString();x.strokeStyle=v,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};ZO.prototype.getTileCredits=function(o,f,m){};ZO.prototype.requestImage=function(o,f,m,x){return Promise.resolve(this._canvas)};ZO.prototype.pickFeatures=function(o,f,m,x,y){};var Gxt=ZO,n$={};n$.createTilesetFromIModelId=async function(o,f){let{exports:m}=await wg.getExports(o);if(m.length>0&&m.every(T=>T.status===wg.ExportStatus.Invalid))throw new Oi(`All exports for this iModel are Invalid: ${o}`);let x=m.find(T=>T.status===wg.ExportStatus.Complete);if(!F(x))return;let y=new URL(x._links.mesh.href);y.pathname=`${y.pathname}/tileset.json`;let v=y.toString(),C=new Mr({url:v});return _0.fromUrl(C,f)};n$.createTilesetForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.Cesium3DTiles,wg.RealityDataType.PNTS,wg.RealityDataType.RealityMesh3DTiles,wg.RealityDataType.Terrain3DTiles].includes(m))throw new Oi(`Reality data type is not a mesh type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return _0.fromUrl(y,{maximumScreenSpaceError:4})};n$.createDataSourceForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.KML,wg.RealityDataType.GeoJSON].includes(m))throw new Oi(`Reality data type is not a data source type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return m===wg.RealityDataType.GeoJSON?qZ.load(y):I7.load(y)};n$.loadGeospatialFeatures=async function(o,f,m){let x=m??1e4,y=`${wg.apiEndpoint}geospatial-features/itwins/${o}/ogc/collections/${f}/items`,v=new Mr({url:y,headers:{Authorization:wg._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{limit:x,client:"CesiumJS"}});return qZ.load(v)};var Fxt=n$;function Dxt(){}Object.defineProperties(Dxt.prototype,{color:{get:wt.throwInstantiationError},intensity:{get:wt.throwInstantiationError}});var Nxt=Dxt,CYi=/\/$/,Wxt=new Oa('© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function U4(o){o=o??si.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=Mr.createIfNeeded(o.url??"https://api.mapbox.com/styles/v1/");this._styleId=f,this._accessToken=m;let y=o.tilesize??512;this._tilesize=y;let v=o.username??"mapbox";this._username=v;let C=F(o.scaleFactor)?"@2x":"",T=x.getUrlComponent();CYi.test(T)||(T+="/"),T+=`${this._username}/${f}/tiles/${this._tilesize}/{z}/{x}/{y}${C}`,x.url=T,x.setQueryParameters({access_token:m});let S;F(o.credit)?(S=o.credit,typeof S=="string"&&(S=new Oa(S))):S=Wxt,this._resource=x,this._imageryProvider=new Hb({url:x,credit:S,ellipsoid:o.ellipsoid,minimumLevel:o.minimumLevel,maximumLevel:o.maximumLevel,rectangle:o.rectangle})}Object.defineProperties(U4.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}}});U4.prototype.getTileCredits=function(o,f,m){};U4.prototype.requestImage=function(o,f,m,x){return this._imageryProvider.requestImage(o,f,m,x)};U4.prototype.pickFeatures=function(o,f,m,x,y){return this._imageryProvider.pickFeatures(o,f,m,x,y)};U4._defaultCredit=Wxt;var Zxt=U4;function RFe(o){}RFe.prototype.isReady=function(){return!0};RFe.prototype.shouldDiscardImage=function(o){return!1};var Oxt=RFe,TYi=new Oa("MapQuest, Open Street Map and contributors, CC-BY-SA");function vae(o){o=o??si.EMPTY_OBJECT;let f=Mr.createIfNeeded(o.url??"https://tile.openstreetmap.org/");f.appendForwardSlash(),f.url+=`{z}/{x}/{y}${o.retinaTiles?"@2x":""}.${o.fileExtension??"png"}`;let m=new xp({ellipsoid:o.ellipsoid}),x=256,y=256,v=o.minimumLevel??0,C=o.maximumLevel,T=o.rectangle??m.rectangle,S=m.positionToTileXY(vi.southwest(T),v),w=m.positionToTileXY(vi.northeast(T),v),E=(Math.abs(w.x-S.x)+1)*(Math.abs(w.y-S.y)+1),L=o.credit??TYi;typeof L=="string"&&(L=new Oa(L)),Hb.call(this,{url:f,credit:L,tilingScheme:m,tileWidth:x,tileHeight:y,minimumLevel:v,maximumLevel:C,rectangle:T})}F(Object.create)&&(vae.prototype=Object.create(Hb.prototype),vae.prototype.constructor=vae);var ME=vae,SYi=new rt(1,1);function AFe(o){o=o??si.EMPTY_OBJECT,this.mass=o.mass??1,this.position=Z.clone(o.position??Z.ZERO),this.velocity=Z.clone(o.velocity??Z.ZERO),this.life=o.life??Number.MAX_VALUE,this.image=o.image,this.startColor=Xe.clone(o.startColor??Xe.WHITE),this.endColor=Xe.clone(o.endColor??Xe.WHITE),this.startScale=o.startScale??1,this.endScale=o.endScale??1,this.imageSize=rt.clone(o.imageSize??SYi),this._age=0,this._normalizedAge=0,this._billboard=void 0}Object.defineProperties(AFe.prototype,{age:{get:function(){return this._age}},normalizedAge:{get:function(){return this._normalizedAge}}});var L7e=new Z;AFe.prototype.update=function(o,f){return Z.multiplyByScalar(this.velocity,o,L7e),Z.add(this.position,L7e,this.position),F(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 Lde=AFe;function Xxt(o){o=o??si.EMPTY_OBJECT,this.time=o.time??0,this.minimum=o.minimum??0,this.maximum=o.maximum??50,this._complete=!1}Object.defineProperties(Xxt.prototype,{complete:{get:function(){return this._complete}}});var B4=Xxt;function kxt(o){}kxt.prototype.emit=function(o){wt.throwInstantiationError()};var Uxt=kxt,P7e=new rt(1,1);function o$(o){o=o??si.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;F(f)||(f=new TFe(.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=Xe.clone(o.color??o.startColor??Xe.WHITE),this._endColor=Xe.clone(o.color??o.endColor??Xe.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=rt.clone(o.imageSize??o.minimumImageSize??P7e),this._maximumImageSize=rt.clone(o.imageSize??o.maximumImageSize??P7e),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 Tr,this._isComplete=!1,this._updateParticlePool=!0,this._particleEstimate=0}Object.defineProperties(o$.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){Xe.clone(o,this._startColor)}},endColor:{get:function(){return this._endColor},set:function(o){Xe.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 wYi(o){let f=o._emissionRate,m=o._maximumParticleLife,x=0,y=o._bursts;if(F(y)){let L=y.length;for(let I=0;I<L;++I)x+=y[I].maximum}let v=o._billboardCollection,C=o.image,T=Math.ceil(f*m+x),S=o._particles,w=o._particlePool,E=Math.max(T-S.length-w.length,0);for(let L=0;L<E;++L){let I=new Lde;I._billboard=v.add({image:C,show:!1}),w.push(I)}o._particleEstimate=T}function EYi(o){let f=o._particlePool.pop();return F(f)||(f=new Lde),f}function LYi(o,f){o._particlePool.push(f)}function PYi(o){let f=o._particles,m=o._particlePool,x=o._billboardCollection,y=f.length,v=m.length,C=o._particleEstimate,T=v-Math.max(C-y-v,0);for(let S=T;S<v;++S){let w=m[S];x.remove(w._billboard)}m.length=T}function IYi(o){F(o._billboard)&&(o._billboard.show=!1)}function I7e(o,f){let m=f._billboard;F(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=be.lerp(f.startColor.red,f.endColor.red,f.normalizedAge),y=be.lerp(f.startColor.green,f.endColor.green,f.normalizedAge),v=be.lerp(f.startColor.blue,f.endColor.blue,f.normalizedAge),C=be.lerp(f.startColor.alpha,f.endColor.alpha,f.normalizedAge);m.color=new Xe(x,y,v,C),m.scale=be.lerp(f.startScale,f.endScale,f.normalizedAge)}function RYi(o,f){f.startColor=Xe.clone(o._startColor,f.startColor),f.endColor=Xe.clone(o._endColor,f.endColor),f.startScale=o._startScale,f.endScale=o._endScale,f.image=o.image,f.life=be.randomBetween(o._minimumParticleLife,o._maximumParticleLife),f.mass=be.randomBetween(o._minimumMass,o._maximumMass),f.imageSize.x=be.randomBetween(o._minimumImageSize.x,o._maximumImageSize.x),f.imageSize.y=be.randomBetween(o._minimumImageSize.y,o._maximumImageSize.y),f._normalizedAge=0,f._age=0;let m=be.randomBetween(o._minimumSpeed,o._maximumSpeed);Z.multiplyByScalar(f.velocity,m,f.velocity),o._particles.push(f)}function AYi(o,f){if(o._isComplete)return 0;f=be.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),F(o.bursts)){let y=o.bursts.length;for(let v=0;v<y;v++){let C=o.bursts[v],T=o._currentTime;F(C)&&!C._complete&&T>C.time&&(x+=be.randomBetween(C.minimum,C.maximum),C._complete=!0)}}return x}var xoe=new Z;o$.prototype.update=function(o){if(!this.show)return;F(this._billboardCollection)||(this._billboardCollection=new jE),this._updateParticlePool&&(wYi(this),this._updateParticlePool=!1);let f=0;this._previousTime&&(f=$t.secondsDifference(o.time,this._previousTime)),f<0&&(f=0);let m=this._particles,x=this._emitter,y=this.updateCallback,v,C,T=m.length;for(v=0;v<T;++v)C=m[v],C.update(f,y)?I7e(this,C):(IYi(C),LYi(this,C),m[v]=m[T-1],--v,--T);m.length=T;let S=AYi(this,f);if(S>0&&F(x)){this._matrixDirty&&(this._combinedMatrix=Ee.multiply(this.modelMatrix,this.emitterModelMatrix,this._combinedMatrix),this._matrixDirty=!1);let w=this._combinedMatrix;for(v=0;v<S;v++)C=EYi(this),this._emitter.emit(C),Z.add(C.position,C.velocity,xoe),Ee.multiplyByPoint(w,xoe,xoe),C.position=Ee.multiplyByPoint(w,C.position,C.position),Z.subtract(xoe,C.position,C.velocity),Z.normalize(C.velocity,C.velocity),RYi(this,C),I7e(this,C)}if(this._billboardCollection.update(o),this._previousTime=$t.clone(o.time,this._previousTime),this._currentTime+=f,this._lifetime!==Number.MAX_VALUE&&this._currentTime>this._lifetime)if(this.loop){if(this._currentTime=be.mod(this._currentTime,this._lifetime),this.bursts){let w=this.bursts.length;for(v=0;v<w;v++)this.bursts[v]._complete=!1}}else this._isComplete=!0,this._complete.raiseEvent(this);o.frameNumber%120===0&&PYi(this)};o$.prototype.isDestroyed=function(){return!1};o$.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),yr(this)};var QS=o$;function W1(){wt.throwInstantiationError()}W1.computeDefaultLevelZeroMaximumGeometricError=function(o){return o.ellipsoid.maximumRadius*2*Math.PI*.25/(65*o.getNumberOfXTilesAtLevel(0))};Object.defineProperties(W1.prototype,{quadtree:{get:wt.throwInstantiationError,set:wt.throwInstantiationError},tilingScheme:{get:wt.throwInstantiationError},errorEvent:{get:wt.throwInstantiationError}});W1.prototype.update=wt.throwInstantiationError;W1.prototype.beginUpdate=wt.throwInstantiationError;W1.prototype.endUpdate=wt.throwInstantiationError;W1.prototype.getLevelMaximumGeometricError=wt.throwInstantiationError;W1.prototype.loadTile=wt.throwInstantiationError;W1.prototype.computeTileVisibility=wt.throwInstantiationError;W1.prototype.showTileThisFrame=wt.throwInstantiationError;W1.prototype.computeDistanceToTile=wt.throwInstantiationError;W1.prototype.isDestroyed=wt.throwInstantiationError;W1.prototype.destroy=wt.throwInstantiationError;var OO=W1;function MFe(o){o=o??1,this._radius=o??1}Object.defineProperties(MFe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});MFe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,be.PI),x=be.randomBetween(0,this._radius),y=x*Math.cos(f)*Math.sin(m),v=x*Math.sin(f)*Math.sin(m),C=x*Math.cos(m);o.position=Z.fromElements(y,v,C,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var H4=MFe;function a$(){}a$.prototype.evaluate=function(o,f){wt.throwInstantiationError()};a$.prototype.evaluateColor=function(o,f){wt.throwInstantiationError()};a$.prototype.getShaderFunction=function(o,f,m,x){wt.throwInstantiationError()};a$.prototype.getVariables=function(){wt.throwInstantiationError()};var Bxt=a$;function $H(o){this._ready=!1,this._provider=void 0,this._errorEvent=new Tr,this._readyEvent=new Tr,VYi(this,o)}Object.defineProperties($H.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}}});$H.fromWorldTerrain=function(o){return new $H(gde(o))};$H.fromWorldBathymetry=function(o){return new $H(cFe(o))};function MYi(o,f){o.numberOfListeners>0?o.raiseEvent(f):console.error(f)}async function VYi(o,f){let m;try{m=await Promise.resolve(f),o._provider=m,o._ready=!0,o._readyEvent.raiseEvent(m)}catch(x){MYi(o._errorEvent,x)}}var VFe=$H;function z4(){}z4.prototype.boundingVolume=void 0;z4.prototype.boundingSphere=void 0;z4.prototype.distanceToCamera=function(o){wt.throwInstantiationError()};z4.prototype.intersectPlane=function(o){wt.throwInstantiationError()};z4.prototype.createDebugVolume=function(o){wt.throwInstantiationError()};var Hxt=z4;function s$(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._color=o.color??Xe.YELLOW,this._errorEvent=new Tr,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(s$.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}}});s$.prototype.getTileCredits=function(o,f,m){};s$.prototype.requestImage=function(o,f,m,x){let y=document.createElement("canvas");y.width=256,y.height=256;let v=y.getContext("2d"),C=this._color.toCssColorString();return v.strokeStyle=C,v.lineWidth=2,v.strokeRect(1,1,255,255),v.font="bold 25px Arial",v.textAlign="center",v.fillStyle=C,v.fillText(`L: ${m}`,124,86),v.fillText(`X: ${o}`,124,136),v.fillText(`Y: ${f}`,124,186),Promise.resolve(y)};s$.prototype.pickFeatures=function(o,f,m,x,y){};var l$=s$;function GFe(o){wt.throwInstantiationError()}GFe.prototype.isReady=wt.throwInstantiationError;GFe.prototype.shouldDiscardImage=wt.throwInstantiationError;var zxt=GFe,GYi={START:0,LOADING:1,READY:2,UPSAMPLED_ONLY:3},Yxt=Object.freeze(GYi);function Pde(o,f){this.show=!0,F(o)||(o=new Er),this.rectangle=Er.clone(o),F(f)||(f=Co.fromType(Co.ColorType,{color:new Xe(1,1,1,1)})),this.material=f,this._material=void 0,this._overlayCommand=void 0,this._rs=void 0}Pde.prototype.update=function(o){if(!this.show)return;let f=this._rs;if((!F(f)||!Er.equals(f.viewport,this.rectangle))&&(this._rs=cn.fromCache({blending:ru.ALPHA_BLEND,viewport:this.rectangle})),o.passes.render){let m=o.context;if(this._material!==this.material||!F(this._overlayCommand)){this._material=this.material,F(this._overlayCommand)&&this._overlayCommand.shaderProgram.destroy();let x=new Wr({sources:[this._material.shaderSource,rFe]});this._overlayCommand=m.createViewportQuadCommand(x,{renderState:this._rs,uniformMap:this._material._uniforms,owner:this}),this._overlayCommand.pass=xr.OVERLAY}this._material.update(m),this._overlayCommand.renderState=this._rs,this._overlayCommand.uniformMap=this._material._uniforms,o.commandList.push(this._overlayCommand)}};Pde.prototype.isDestroyed=function(){return!1};Pde.prototype.destroy=function(){return F(this._overlayCommand)&&(this._overlayCommand.shaderProgram=this._overlayCommand.shaderProgram&&this._overlayCommand.shaderProgram.destroy()),yr(this)};var Y4=Pde;function FFe(){wt.throwInstantiationError()}Object.defineProperties(FFe.prototype,{globalTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shape:{get:wt.throwInstantiationError},minBounds:{get:wt.throwInstantiationError},maxBounds:{get:wt.throwInstantiationError},dimensions:{get:wt.throwInstantiationError},paddingBefore:{get:wt.throwInstantiationError},paddingAfter:{get:wt.throwInstantiationError},names:{get:wt.throwInstantiationError},types:{get:wt.throwInstantiationError},componentTypes:{get:wt.throwInstantiationError},minimumValues:{get:wt.throwInstantiationError},maximumValues:{get:wt.throwInstantiationError},maximumTileCount:{get:wt.throwInstantiationError},availableLevels:{get:wt.throwInstantiationError},keyframeCount:{get:wt.throwInstantiationError},timeIntervalCollection:{get:wt.throwInstantiationError}});FFe.prototype.requestData=function(o){wt.throwInstantiationError()};var Kxt=FFe;function XO(){wt.throwInstantiationError()}Object.defineProperties(XO.prototype,{orientedBoundingBox:{get:wt.throwInstantiationError},boundingSphere:{get:wt.throwInstantiationError},boundTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shaderUniforms:{get:wt.throwInstantiationError},shaderDefines:{get:wt.throwInstantiationError},shaderMaximumIntersectionsLength:{get:wt.throwInstantiationError}});XO.prototype.update=wt.throwInstantiationError;XO.prototype.computeOrientedBoundingBoxForTile=wt.throwInstantiationError;XO.prototype.computeOrientedBoundingBoxForSample=wt.throwInstantiationError;XO.DefaultMinBounds=wt.throwInstantiationError;XO.DefaultMaxBounds=wt.throwInstantiationError;var Jxt=XO,FYi=`in vec2 depth; +}`;this.material=void 0,this.translucent=o.translucent??!1,this._vertexShaderSource=o.vertexShaderSource??C,this._fragmentShaderSource=o.fragmentShaderSource??T,this._renderState=Sd.getDefaultRenderState(!1,!1,o.renderState),this._closed=o.closed??!1,this._attributeName=f,this._glslDatatype=x}Object.defineProperties(r$.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}}});r$.prototype.getFragmentShaderSource=Sd.prototype.getFragmentShaderSource;r$.prototype.isTranslucent=Sd.prototype.isTranslucent;r$.prototype.getRenderState=Sd.prototype.getRenderState;var Rxt=r$;function wde(o){o=o??si.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}wde.prototype.update=function(o){if(this.show){if(!F(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,F(this._primitive)&&this._primitive.destroy(),this.modelMatrix[12]===0&&this.modelMatrix[13]===0&&this.modelMatrix[14]===0&&(this.modelMatrix[14]=.01);let f=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_X],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.RED,Xe.RED],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),m=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Y],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.GREEN,Xe.GREEN],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),x=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Z],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.BLUE,Xe.BLUE],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this});this._primitive=new ta({geometryInstances:[f,m,x],appearance:new om,asynchronous:!1})}this._primitive.update(o)}};wde.prototype.isDestroyed=function(){return!1};wde.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),yr(this)};var LFe=wde;function hYi(o){this.direction=Z.clone(o.direction),this.color=Xe.clone(o.color??Xe.WHITE),this.intensity=o.intensity??1}var k4=hYi;function wb(o){this._scene=o.scene,this.samplingWindow=o.samplingWindow??wb.defaultSettings.samplingWindow,this.quietPeriod=o.quietPeriod??wb.defaultSettings.quietPeriod,this.warmupPeriod=o.warmupPeriod??wb.defaultSettings.warmupPeriod,this.minimumFrameRateDuringWarmup=o.minimumFrameRateDuringWarmup??wb.defaultSettings.minimumFrameRateDuringWarmup,this.minimumFrameRateAfterWarmup=o.minimumFrameRateAfterWarmup??wb.defaultSettings.minimumFrameRateAfterWarmup,this._lowFrameRate=new Tr,this._nominalFrameRate=new Tr,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(y,v){dYi(f,v)}),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(){pYi(f)}this._visibilityChangeRemoveListener=void 0,F(m)&&(document.addEventListener(m,x,!1),this._visibilityChangeRemoveListener=function(){document.removeEventListener(m,x,!1)})}wb.defaultSettings={samplingWindow:5,quietPeriod:2,warmupPeriod:5,minimumFrameRateDuringWarmup:4,minimumFrameRateAfterWarmup:8};wb.fromScene=function(o){return(!F(o._frameRateMonitor)||o._frameRateMonitor.isDestroyed())&&(o._frameRateMonitor=new wb({scene:o})),o._frameRateMonitor};Object.defineProperties(wb.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}}});wb.prototype.pause=function(){++this._pauseCount,this._pauseCount===1&&(this._frameTimes.length=0,this._lastFramesPerSecond=void 0)};wb.prototype.unpause=function(){--this._pauseCount,this._pauseCount<=0&&(this._pauseCount=0,this._needsQuietPeriod=!0)};wb.prototype.isDestroyed=function(){return!1};wb.prototype.destroy=function(){return this._preUpdateRemoveListener(),F(this._visibilityChangeRemoveListener)&&this._visibilityChangeRemoveListener(),yr(this)};function dYi(o,f){if(o._pauseCount>0)return;let m=lh();if(o._needsQuietPeriod)o._needsQuietPeriod=!1,o._frameTimes.length=0,o._quietPeriodEndTime=m+o.quietPeriod/cc.SECONDS_PER_MILLISECOND,o._warmupPeriodEndTime=o._quietPeriodEndTime+(o.warmupPeriod+o.samplingWindow)/cc.SECONDS_PER_MILLISECOND;else if(m>=o._quietPeriodEndTime){o._frameTimes.push(m);let x=m-o.samplingWindow/cc.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 y=(m-o._frameTimes[0])/(o._frameTimes.length-1);o._lastFramesPerSecond=1e3/y;let v=1e3/(m>o._warmupPeriodEndTime?o.minimumFrameRateAfterWarmup:o.minimumFrameRateDuringWarmup);y>v?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 pYi(o){document[o._hiddenPropertyName]?o.pause():o.unpause()}var PFe=wb,fYi=k0(j$e(),1);function IFe(){this._image=new Image}IFe.prototype.isReady=function(){return!0};IFe.prototype.shouldDiscardImage=function(o){return o===this._image};function P9(o){o=o??si.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 _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=23,F(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new IFe),this._errorEvent=new Tr}Object.defineProperties(P9.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}}});P9.fromMetadata=function(o,f){if(!o.imageryPresent)throw new Oi(`The server ${o.url} doesn't have imagery`);let m=new P9(f);return m._metadata=o,m};P9.prototype.getTileCredits=function(o,f,m){let x=this._metadata,y=x.getTileInformation(o,f,m);if(F(y)){let v=x.providers[y.imageryProvider];if(F(v))return[v]}};P9.prototype.requestImage=function(o,f,m,x){let y=this._tileDiscardPolicy._image,v=this._metadata,C=Z4.tileXYToQuadKey(o,f,m),T=v.getTileInformation(o,f,m);if(!F(T)){if(v.isValid(C)){let w=new hm({throttle:x.throttle,throttleByServer:x.throttleByServer,type:x.type,priorityFunction:x.priorityFunction});v.populateSubtree(o,f,m,w);return}return Promise.resolve(y)}if(!T.hasImagery())return Promise.resolve(y);let S=mYi(this,T,o,f,m,x).fetchArrayBuffer();if(F(S))return S.then(function(w){aFe(v.key,w);let E=new Uint8Array(w),L,I=v.protoImagery;if((!F(I)||!I)&&(L=xYi(E)),!F(L)&&(!F(I)||I)){let R=gYi(E);L=R.imageType,E=R.imageData}return!F(L)||!F(E)?y:Jz({uint8Array:E,format:L,flipY:!0})})};P9.prototype.pickFeatures=function(o,f,m,x,y){};function mYi(o,f,m,x,y,v){let C=Z4.tileXYToQuadKey(m,x,y),T=f.imageryVersion;return T=F(T)&&T>0?T:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1-0${C}-i.${T.toString()}`,request:v})}function xYi(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 gYi(o){let f=fYi.Reader.create(o),m=f.len,x={};for(;f.pos<m;){let C=f.uint32(),T;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(T=x.copyrightIds,F(T)||(T=x.copyrightIds=[]),(C&7)===2){let S=f.uint32()+f.pos;for(;f.pos<S;)T.push(f.uint32())}else T.push(f.uint32());break;default:f.skipType(C&7);break}}let y=x.imageType;if(F(y))switch(y){case 0:x.imageType="image/jpeg";break;case 4:x.imageType="image/png";break;default:throw new Oi("GoogleEarthEnterpriseImageryProvider: Unsupported image type.")}let v=x.alphaType;return F(v)&&v!==0&&(console.log("GoogleEarthEnterpriseImageryProvider: External alpha not supported."),delete x.alphaType,delete x.imageAlpha),x}var Axt=P9,yYi=new Xe(1,1,1,.4),_Yi=new Xe(0,1,0,.05),vYi=new Xe(0,.5,0,.2);function ZO(o){o=o??si.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=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._cells=o.cells??8,this._color=o.color??yYi,this._glowColor=o.glowColor??_Yi,this._glowWidth=o.glowWidth??6,this._backgroundColor=o.backgroundColor??vYi,this._errorEvent=new Tr,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._canvasSize=o.canvasSize??256,this._canvas=this._createGridCanvas()}Object.defineProperties(ZO.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}}});ZO.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()};ZO.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"),y=this._backgroundColor.toCssColorString();x.fillStyle=y,x.fillRect(f,f,m,m);let v=this._glowColor.toCssColorString();x.strokeStyle=v,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};ZO.prototype.getTileCredits=function(o,f,m){};ZO.prototype.requestImage=function(o,f,m,x){return Promise.resolve(this._canvas)};ZO.prototype.pickFeatures=function(o,f,m,x,y){};var Mxt=ZO,n$={};n$.createTilesetFromIModelId=async function(o,f){let{exports:m}=await wg.getExports(o);if(m.length>0&&m.every(T=>T.status===wg.ExportStatus.Invalid))throw new Oi(`All exports for this iModel are Invalid: ${o}`);let x=m.find(T=>T.status===wg.ExportStatus.Complete);if(!F(x))return;let y=new URL(x._links.mesh.href);y.pathname=`${y.pathname}/tileset.json`;let v=y.toString(),C=new Mr({url:v});return _0.fromUrl(C,f)};n$.createTilesetForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.Cesium3DTiles,wg.RealityDataType.PNTS,wg.RealityDataType.RealityMesh3DTiles,wg.RealityDataType.Terrain3DTiles].includes(m))throw new Oi(`Reality data type is not a mesh type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return _0.fromUrl(y,{maximumScreenSpaceError:4})};n$.createDataSourceForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.KML,wg.RealityDataType.GeoJSON].includes(m))throw new Oi(`Reality data type is not a data source type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return m===wg.RealityDataType.GeoJSON?qZ.load(y):I7.load(y)};n$.loadGeospatialFeatures=async function(o,f,m){let x=m??1e4,y=`${wg.apiEndpoint}geospatial-features/itwins/${o}/ogc/collections/${f}/items`,v=new Mr({url:y,headers:{Authorization:wg._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{limit:x,client:"CesiumJS"}});return qZ.load(v)};var Vxt=n$;function Gxt(){}Object.defineProperties(Gxt.prototype,{color:{get:wt.throwInstantiationError},intensity:{get:wt.throwInstantiationError}});var Fxt=Gxt,bYi=/\/$/,Dxt=new Oa('© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function U4(o){o=o??si.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=Mr.createIfNeeded(o.url??"https://api.mapbox.com/styles/v1/");this._styleId=f,this._accessToken=m;let y=o.tilesize??512;this._tilesize=y;let v=o.username??"mapbox";this._username=v;let C=F(o.scaleFactor)?"@2x":"",T=x.getUrlComponent();bYi.test(T)||(T+="/"),T+=`${this._username}/${f}/tiles/${this._tilesize}/{z}/{x}/{y}${C}`,x.url=T,x.setQueryParameters({access_token:m});let S;F(o.credit)?(S=o.credit,typeof S=="string"&&(S=new Oa(S))):S=Dxt,this._resource=x,this._imageryProvider=new Hb({url:x,credit:S,ellipsoid:o.ellipsoid,minimumLevel:o.minimumLevel,maximumLevel:o.maximumLevel,rectangle:o.rectangle})}Object.defineProperties(U4.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}}});U4.prototype.getTileCredits=function(o,f,m){};U4.prototype.requestImage=function(o,f,m,x){return this._imageryProvider.requestImage(o,f,m,x)};U4.prototype.pickFeatures=function(o,f,m,x,y){return this._imageryProvider.pickFeatures(o,f,m,x,y)};U4._defaultCredit=Dxt;var Nxt=U4;function RFe(o){}RFe.prototype.isReady=function(){return!0};RFe.prototype.shouldDiscardImage=function(o){return!1};var Wxt=RFe,CYi=new Oa("MapQuest, Open Street Map and contributors, CC-BY-SA");function _ae(o){o=o??si.EMPTY_OBJECT;let f=Mr.createIfNeeded(o.url??"https://tile.openstreetmap.org/");f.appendForwardSlash(),f.url+=`{z}/{x}/{y}${o.retinaTiles?"@2x":""}.${o.fileExtension??"png"}`;let m=new xp({ellipsoid:o.ellipsoid}),x=256,y=256,v=o.minimumLevel??0,C=o.maximumLevel,T=o.rectangle??m.rectangle,S=m.positionToTileXY(vi.southwest(T),v),w=m.positionToTileXY(vi.northeast(T),v),E=(Math.abs(w.x-S.x)+1)*(Math.abs(w.y-S.y)+1),L=o.credit??CYi;typeof L=="string"&&(L=new Oa(L)),Hb.call(this,{url:f,credit:L,tilingScheme:m,tileWidth:x,tileHeight:y,minimumLevel:v,maximumLevel:C,rectangle:T})}F(Object.create)&&(_ae.prototype=Object.create(Hb.prototype),_ae.prototype.constructor=_ae);var ME=_ae,TYi=new rt(1,1);function AFe(o){o=o??si.EMPTY_OBJECT,this.mass=o.mass??1,this.position=Z.clone(o.position??Z.ZERO),this.velocity=Z.clone(o.velocity??Z.ZERO),this.life=o.life??Number.MAX_VALUE,this.image=o.image,this.startColor=Xe.clone(o.startColor??Xe.WHITE),this.endColor=Xe.clone(o.endColor??Xe.WHITE),this.startScale=o.startScale??1,this.endScale=o.endScale??1,this.imageSize=rt.clone(o.imageSize??TYi),this._age=0,this._normalizedAge=0,this._billboard=void 0}Object.defineProperties(AFe.prototype,{age:{get:function(){return this._age}},normalizedAge:{get:function(){return this._normalizedAge}}});var L7e=new Z;AFe.prototype.update=function(o,f){return Z.multiplyByScalar(this.velocity,o,L7e),Z.add(this.position,L7e,this.position),F(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 Ede=AFe;function Zxt(o){o=o??si.EMPTY_OBJECT,this.time=o.time??0,this.minimum=o.minimum??0,this.maximum=o.maximum??50,this._complete=!1}Object.defineProperties(Zxt.prototype,{complete:{get:function(){return this._complete}}});var B4=Zxt;function Oxt(o){}Oxt.prototype.emit=function(o){wt.throwInstantiationError()};var Xxt=Oxt,P7e=new rt(1,1);function o$(o){o=o??si.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;F(f)||(f=new TFe(.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=Xe.clone(o.color??o.startColor??Xe.WHITE),this._endColor=Xe.clone(o.color??o.endColor??Xe.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=rt.clone(o.imageSize??o.minimumImageSize??P7e),this._maximumImageSize=rt.clone(o.imageSize??o.maximumImageSize??P7e),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 Tr,this._isComplete=!1,this._updateParticlePool=!0,this._particleEstimate=0}Object.defineProperties(o$.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){Xe.clone(o,this._startColor)}},endColor:{get:function(){return this._endColor},set:function(o){Xe.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 SYi(o){let f=o._emissionRate,m=o._maximumParticleLife,x=0,y=o._bursts;if(F(y)){let L=y.length;for(let I=0;I<L;++I)x+=y[I].maximum}let v=o._billboardCollection,C=o.image,T=Math.ceil(f*m+x),S=o._particles,w=o._particlePool,E=Math.max(T-S.length-w.length,0);for(let L=0;L<E;++L){let I=new Ede;I._billboard=v.add({image:C,show:!1}),w.push(I)}o._particleEstimate=T}function wYi(o){let f=o._particlePool.pop();return F(f)||(f=new Ede),f}function EYi(o,f){o._particlePool.push(f)}function LYi(o){let f=o._particles,m=o._particlePool,x=o._billboardCollection,y=f.length,v=m.length,C=o._particleEstimate,T=v-Math.max(C-y-v,0);for(let S=T;S<v;++S){let w=m[S];x.remove(w._billboard)}m.length=T}function PYi(o){F(o._billboard)&&(o._billboard.show=!1)}function I7e(o,f){let m=f._billboard;F(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=be.lerp(f.startColor.red,f.endColor.red,f.normalizedAge),y=be.lerp(f.startColor.green,f.endColor.green,f.normalizedAge),v=be.lerp(f.startColor.blue,f.endColor.blue,f.normalizedAge),C=be.lerp(f.startColor.alpha,f.endColor.alpha,f.normalizedAge);m.color=new Xe(x,y,v,C),m.scale=be.lerp(f.startScale,f.endScale,f.normalizedAge)}function IYi(o,f){f.startColor=Xe.clone(o._startColor,f.startColor),f.endColor=Xe.clone(o._endColor,f.endColor),f.startScale=o._startScale,f.endScale=o._endScale,f.image=o.image,f.life=be.randomBetween(o._minimumParticleLife,o._maximumParticleLife),f.mass=be.randomBetween(o._minimumMass,o._maximumMass),f.imageSize.x=be.randomBetween(o._minimumImageSize.x,o._maximumImageSize.x),f.imageSize.y=be.randomBetween(o._minimumImageSize.y,o._maximumImageSize.y),f._normalizedAge=0,f._age=0;let m=be.randomBetween(o._minimumSpeed,o._maximumSpeed);Z.multiplyByScalar(f.velocity,m,f.velocity),o._particles.push(f)}function RYi(o,f){if(o._isComplete)return 0;f=be.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),F(o.bursts)){let y=o.bursts.length;for(let v=0;v<y;v++){let C=o.bursts[v],T=o._currentTime;F(C)&&!C._complete&&T>C.time&&(x+=be.randomBetween(C.minimum,C.maximum),C._complete=!0)}}return x}var xoe=new Z;o$.prototype.update=function(o){if(!this.show)return;F(this._billboardCollection)||(this._billboardCollection=new jE),this._updateParticlePool&&(SYi(this),this._updateParticlePool=!1);let f=0;this._previousTime&&(f=$t.secondsDifference(o.time,this._previousTime)),f<0&&(f=0);let m=this._particles,x=this._emitter,y=this.updateCallback,v,C,T=m.length;for(v=0;v<T;++v)C=m[v],C.update(f,y)?I7e(this,C):(PYi(C),EYi(this,C),m[v]=m[T-1],--v,--T);m.length=T;let S=RYi(this,f);if(S>0&&F(x)){this._matrixDirty&&(this._combinedMatrix=Ee.multiply(this.modelMatrix,this.emitterModelMatrix,this._combinedMatrix),this._matrixDirty=!1);let w=this._combinedMatrix;for(v=0;v<S;v++)C=wYi(this),this._emitter.emit(C),Z.add(C.position,C.velocity,xoe),Ee.multiplyByPoint(w,xoe,xoe),C.position=Ee.multiplyByPoint(w,C.position,C.position),Z.subtract(xoe,C.position,C.velocity),Z.normalize(C.velocity,C.velocity),IYi(this,C),I7e(this,C)}if(this._billboardCollection.update(o),this._previousTime=$t.clone(o.time,this._previousTime),this._currentTime+=f,this._lifetime!==Number.MAX_VALUE&&this._currentTime>this._lifetime)if(this.loop){if(this._currentTime=be.mod(this._currentTime,this._lifetime),this.bursts){let w=this.bursts.length;for(v=0;v<w;v++)this.bursts[v]._complete=!1}}else this._isComplete=!0,this._complete.raiseEvent(this);o.frameNumber%120===0&&LYi(this)};o$.prototype.isDestroyed=function(){return!1};o$.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),yr(this)};var QS=o$;function W1(){wt.throwInstantiationError()}W1.computeDefaultLevelZeroMaximumGeometricError=function(o){return o.ellipsoid.maximumRadius*2*Math.PI*.25/(65*o.getNumberOfXTilesAtLevel(0))};Object.defineProperties(W1.prototype,{quadtree:{get:wt.throwInstantiationError,set:wt.throwInstantiationError},tilingScheme:{get:wt.throwInstantiationError},errorEvent:{get:wt.throwInstantiationError}});W1.prototype.update=wt.throwInstantiationError;W1.prototype.beginUpdate=wt.throwInstantiationError;W1.prototype.endUpdate=wt.throwInstantiationError;W1.prototype.getLevelMaximumGeometricError=wt.throwInstantiationError;W1.prototype.loadTile=wt.throwInstantiationError;W1.prototype.computeTileVisibility=wt.throwInstantiationError;W1.prototype.showTileThisFrame=wt.throwInstantiationError;W1.prototype.computeDistanceToTile=wt.throwInstantiationError;W1.prototype.isDestroyed=wt.throwInstantiationError;W1.prototype.destroy=wt.throwInstantiationError;var OO=W1;function MFe(o){o=o??1,this._radius=o??1}Object.defineProperties(MFe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});MFe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,be.PI),x=be.randomBetween(0,this._radius),y=x*Math.cos(f)*Math.sin(m),v=x*Math.sin(f)*Math.sin(m),C=x*Math.cos(m);o.position=Z.fromElements(y,v,C,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var H4=MFe;function a$(){}a$.prototype.evaluate=function(o,f){wt.throwInstantiationError()};a$.prototype.evaluateColor=function(o,f){wt.throwInstantiationError()};a$.prototype.getShaderFunction=function(o,f,m,x){wt.throwInstantiationError()};a$.prototype.getVariables=function(){wt.throwInstantiationError()};var kxt=a$;function $H(o){this._ready=!1,this._provider=void 0,this._errorEvent=new Tr,this._readyEvent=new Tr,MYi(this,o)}Object.defineProperties($H.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}}});$H.fromWorldTerrain=function(o){return new $H(gde(o))};$H.fromWorldBathymetry=function(o){return new $H(nFe(o))};function AYi(o,f){o.numberOfListeners>0?o.raiseEvent(f):console.error(f)}async function MYi(o,f){let m;try{m=await Promise.resolve(f),o._provider=m,o._ready=!0,o._readyEvent.raiseEvent(m)}catch(x){AYi(o._errorEvent,x)}}var VFe=$H;function z4(){}z4.prototype.boundingVolume=void 0;z4.prototype.boundingSphere=void 0;z4.prototype.distanceToCamera=function(o){wt.throwInstantiationError()};z4.prototype.intersectPlane=function(o){wt.throwInstantiationError()};z4.prototype.createDebugVolume=function(o){wt.throwInstantiationError()};var Uxt=z4;function s$(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._color=o.color??Xe.YELLOW,this._errorEvent=new Tr,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(s$.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}}});s$.prototype.getTileCredits=function(o,f,m){};s$.prototype.requestImage=function(o,f,m,x){let y=document.createElement("canvas");y.width=256,y.height=256;let v=y.getContext("2d"),C=this._color.toCssColorString();return v.strokeStyle=C,v.lineWidth=2,v.strokeRect(1,1,255,255),v.font="bold 25px Arial",v.textAlign="center",v.fillStyle=C,v.fillText(`L: ${m}`,124,86),v.fillText(`X: ${o}`,124,136),v.fillText(`Y: ${f}`,124,186),Promise.resolve(y)};s$.prototype.pickFeatures=function(o,f,m,x,y){};var l$=s$;function GFe(o){wt.throwInstantiationError()}GFe.prototype.isReady=wt.throwInstantiationError;GFe.prototype.shouldDiscardImage=wt.throwInstantiationError;var Bxt=GFe,VYi={START:0,LOADING:1,READY:2,UPSAMPLED_ONLY:3},Hxt=Object.freeze(VYi);function Lde(o,f){this.show=!0,F(o)||(o=new Er),this.rectangle=Er.clone(o),F(f)||(f=Co.fromType(Co.ColorType,{color:new Xe(1,1,1,1)})),this.material=f,this._material=void 0,this._overlayCommand=void 0,this._rs=void 0}Lde.prototype.update=function(o){if(!this.show)return;let f=this._rs;if((!F(f)||!Er.equals(f.viewport,this.rectangle))&&(this._rs=cn.fromCache({blending:ru.ALPHA_BLEND,viewport:this.rectangle})),o.passes.render){let m=o.context;if(this._material!==this.material||!F(this._overlayCommand)){this._material=this.material,F(this._overlayCommand)&&this._overlayCommand.shaderProgram.destroy();let x=new Wr({sources:[this._material.shaderSource,_Fe]});this._overlayCommand=m.createViewportQuadCommand(x,{renderState:this._rs,uniformMap:this._material._uniforms,owner:this}),this._overlayCommand.pass=xr.OVERLAY}this._material.update(m),this._overlayCommand.renderState=this._rs,this._overlayCommand.uniformMap=this._material._uniforms,o.commandList.push(this._overlayCommand)}};Lde.prototype.isDestroyed=function(){return!1};Lde.prototype.destroy=function(){return F(this._overlayCommand)&&(this._overlayCommand.shaderProgram=this._overlayCommand.shaderProgram&&this._overlayCommand.shaderProgram.destroy()),yr(this)};var Y4=Lde;function FFe(){wt.throwInstantiationError()}Object.defineProperties(FFe.prototype,{globalTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shape:{get:wt.throwInstantiationError},minBounds:{get:wt.throwInstantiationError},maxBounds:{get:wt.throwInstantiationError},dimensions:{get:wt.throwInstantiationError},paddingBefore:{get:wt.throwInstantiationError},paddingAfter:{get:wt.throwInstantiationError},names:{get:wt.throwInstantiationError},types:{get:wt.throwInstantiationError},componentTypes:{get:wt.throwInstantiationError},minimumValues:{get:wt.throwInstantiationError},maximumValues:{get:wt.throwInstantiationError},maximumTileCount:{get:wt.throwInstantiationError},availableLevels:{get:wt.throwInstantiationError},keyframeCount:{get:wt.throwInstantiationError},timeIntervalCollection:{get:wt.throwInstantiationError}});FFe.prototype.requestData=function(o){wt.throwInstantiationError()};var zxt=FFe;function XO(){wt.throwInstantiationError()}Object.defineProperties(XO.prototype,{orientedBoundingBox:{get:wt.throwInstantiationError},boundingSphere:{get:wt.throwInstantiationError},boundTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shaderUniforms:{get:wt.throwInstantiationError},shaderDefines:{get:wt.throwInstantiationError},shaderMaximumIntersectionsLength:{get:wt.throwInstantiationError}});XO.prototype.update=wt.throwInstantiationError;XO.prototype.computeOrientedBoundingBoxForTile=wt.throwInstantiationError;XO.prototype.computeOrientedBoundingBoxForSample=wt.throwInstantiationError;XO.DefaultMinBounds=wt.throwInstantiationError;XO.DefaultMaxBounds=wt.throwInstantiationError;var Yxt=XO,GYi=function(){var o=import.meta.url;return function(f){return f=f||{},f.ready}}(),vae={};vae.onRuntimeInitialized||(vae.onRuntimeInitialized=function(){},GYi(vae));var Kxt=vae,Q8=k0(J$e(),1),Jxt={};(function(o,f){o.FlowEcharts=f(Q8.default,o.Geoworld)})(Jxt,function(o,f){return function(m){var x={};function y(v){if(x[v])return x[v].exports;var C=x[v]={i:v,l:!1,exports:{}};return m[v].call(C.exports,C,C.exports,y),C.l=!0,C.exports}return y.m=m,y.c=x,y.d=function(v,C,T){y.o(v,C)||Object.defineProperty(v,C,{enumerable:!0,get:T})},y.r=function(v){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},y.t=function(v,C){if(C&1&&(v=y(v)),C&8||C&4&&typeof v=="object"&&v&&v.__esModule)return v;var T=Object.create(null);if(y.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:v}),C&2&&typeof v!="string")for(var S in v)y.d(T,S,function(w){return v[w]}.bind(null,S));return T},y.n=function(v){var C=v&&v.__esModule?function(){return v.default}:function(){return v};return y.d(C,"a",C),C},y.o=function(v,C){return Object.prototype.hasOwnProperty.call(v,C)},y.p="",y(y.s=0)}([function(m,x,y){y(1);var v=y(7);m.exports=v},function(m,x,y){var v;v=function(C){return y(2).registerCoordinateSystem("GLMap",y(3)),y(5),y(6),y(2).registerAction({type:"GLMapRoam",event:"GLMapRoam",update:"updateLayout"},function(T,S){}),{version:"1.0.0"}}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=o},function(m,x,y){var v;v=function(C){var T=y(2);function S(w,E){this._GLMap=w,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=E}return S.prototype.dimensions=["lng","lat"],S.prototype.setMapOffset=function(w){this._mapOffset=w},S.prototype.getBMap=function(){return this._GLMap},S.prototype.dataToPoint=function(w){var E=be.toRadians(80),L=[99999,99999],I=Z.fromDegrees(w[0],w[1]);if(!I)return L;var R=this._GLMap.cartesianToCanvasCoordinates(I);if(!R)return L;var P=this._GLMap;return P.mode===gi.SCENE3D&&Z.angleBetween(P.camera.position,I)>E?!1:[R.x-this._mapOffset[0],R.y-this._mapOffset[1]]},S.prototype.pointToData=function(L){var E=this._mapOffset,L=this._bmap.project([L[0]+E[0],L[1]+E[1]]);return[L.lng,L.lat]},S.prototype.getViewRect=function(){var w=this._api;return new T.graphic.BoundingRect(0,0,w.getWidth(),w.getHeight())},S.prototype.getRoamTransform=function(){return T.matrix.create()},S.dimensions=S.prototype.dimensions,S.create=function(w,E){var L;w.eachComponent("GLMap",function(I){var R=E.getZr().painter.getViewportRoot(),P=T.glMap;L=new S(P,E),L.setMapOffset(I.__mapOffset||[0,0]),I.coordinateSystem=L}),w.eachSeries(function(I){I.get("coordinateSystem")==="GLMap"&&(I.coordinateSystem=L)})},S}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=f},function(m,x,y){var v;v=function(C){return y(2).extendComponentModel({type:"GLMap",getBMap:function(){return this.__GLMap},defaultOption:{roam:!1}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x,y){var v;v=function(C){return y(2).extendComponentView({type:"GLMap",init:function(T,S){this.api=S,Q8.default.glMap.postRender.addEventListener(this.moveHandler,this)},moveHandler:function(){this.api.dispatchAction({type:"GLMapRoam"})},render:function(T,S,w){},dispose:function(T,S){Q8.default.glMap.postRender.removeEventListener(this.moveHandler,this)}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){function y(v,C){this._mapContainer=v,this._overlay=this._createChartOverlay(),this._overlay.setOption(C)}y.prototype._createChartOverlay=function(){var v=this._mapContainer.scene;v.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=v.canvas.width+"px",C.style.height=v.canvas.height+"px",C.style.pointerEvents="none",C.setAttribute("id","echarts"),C.setAttribute("class","echartMap"),this._mapContainer.container.appendChild(C),this._echartsContainer=C,Q8.default.glMap=v,Q8.default.init(C)},y.prototype.dispose=function(){this._echartsContainer&&(this._mapContainer.container.removeChild(this._echartsContainer),this._echartsContainer=null),this._overlay&&(this._overlay.dispose(),this._overlay=null)},y.prototype.destroy=function(){this.dispose()},y.prototype.updateOverlay=function(v){this._overlay&&this._overlay.setOption(v)},y.prototype.getMap=function(){return this._mapContainer},y.prototype.getOverlay=function(){return this._overlay},m.exports=y}])});var Pde=Jxt.FlowEcharts,FYi=`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); @@ -21125,7 +21125,7 @@ } } } - `}),D=new Vf({name:`${f}Composite`,stages:[V,G],inputPreviousStageTexture:!1});function N(k){Object.defineProperties(k,{showGlow:{get(){return S},set(U){S=U}},edgeGlow:{get(){return w},set(U){w=U}},edgeStrength:{get(){return E},set(U){E=U}},thresholdAngle:{get(){return x},set(U){x=U}},showOutlineOnly:{get(){return v},set(U){v=U}},edgeOnly:{get(){return L},set(U){L=U}},useSingleColor:{get(){return y},set(U){y=U}},outlineWidth:{get(){return m},set(U){m=U}},visibleEdgeColor:{get(){return C},set(U){C=U}},hiddenEdgeColor:{get(){return T},set(U){T=U}}})}return N(D),D._uniforms=D._uniforms||{},N(D._uniforms),D}function d$(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(d$.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}}});d$.prototype.addPolygon=function(o){this._primitive.addFlattenPolygon(o)};d$.prototype.clearPolygon=function(){this._primitive.clearFlattenPolygon()};d$.prototype.update=function(){this._primitive.update()};var aDe=d$;function p$(o){this._terrainFlatten=new kO(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(p$.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}}});p$.prototype.addPolygon=function(o){this._terrainFlatten.addPolygon(o)};p$.prototype.clearPolygon=function(){this._terrainFlatten.clearPolygon()};p$.prototype.update=function(){this._terrainFlatten.update()};var sDe=p$;function zKi(o,f,m){let x=new rt(15,30),y=new Z,v=function(C,T){y=Z.normalize(C.position,y),y=Z.multiplyByScalar(y,-1050,y),C.position=Z.add(C.position,y,C.position);let S=Z.distance(o.camera.position,C.position),w=1;m<1e5&&(w=.1/(m/1e5));let E=m*w;S>E?C.endColor.alpha=0:C.endColor.alpha=Xe.BLUE.alpha/(S/E+.1)};return new QS({modelMatrix:new Ee.fromTranslation(f),speed:-1,lifetime:15,emitter:new wde(new Z(m,m,m)),startScale:5,endScale:0,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/littleRain.png`,emissionRate:9e3,startColor:new Xe(.8,.8,.8,0),endColor:new Xe(.8,.8,.8,.9),imageSize:x,updateCallback:v})}function YKi(o,f,m){let x=new rt(12,12),y=new rt(12*2,12*2),v=new Z,C=function(T,S){v=Z.normalize(T.position,v),Z.multiplyByScalar(v,be.randomBetween(-30,-300),v),T.velocity=Z.add(T.velocity,v,T.velocity);let w=Z.distance(o.camera.position,T.position);w>m?T.endColor.alpha=0:T.endColor.alpha=1/(w/m+.1)};return new QS({modelMatrix:new Ee.fromTranslation(f),minimumSpeed:-1,maximumSpeed:0,lifetime:15,emitter:new wde(new Z(m,m,m)),startScale:.5,endScale:1,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/snow.png`,emissionRate:7e3,startColor:Xe.WHITE.withAlpha(0),endColor:Xe.WHITE.withAlpha(1),minimumImageSize:x,maximumImageSize:y,updateCallback:C})}function KKi(o,f){let m=_r.eastNorthUpToFixedFrame(o),x=Ee.multiplyByPoint(m,new Z(f*.5,f*.5,0),new Z),y=Ee.multiplyByPoint(m,new Z(f*.5,-f*.5,0),new Z),v=Ee.multiplyByPoint(m,new Z(-f*.5,-f*.5,0),new Z),C=Ee.multiplyByPoint(m,new Z(-f*.5,f*.5,0),new Z),T=Gt.fromCartesian(x),S=Gt.fromCartesian(y),w=Gt.fromCartesian(v),E=Gt.fromCartesian(C);return[be.toDegrees(T.longitude),be.toDegrees(T.latitude),-1e4,be.toDegrees(S.longitude),be.toDegrees(S.latitude),-1e4,be.toDegrees(w.longitude),be.toDegrees(w.latitude),-1e4,be.toDegrees(E.longitude),be.toDegrees(E.latitude),-1e4]}function Qu(o,f,m,x){this._scene=o,this._primitive=f,this._position=m,this._radius=x,f&&(this._tilesetWeather=new aDe(f)),o&&(this._terrainWeather=new sDe(o)),this._enableWeatherType=Qu.TYPE_NONE,this._region=KKi(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(Qu.prototype,{enableWeatherType:{get:function(){return this._enableWeatherType},set:function(o){this._enableWeatherType!==o&&(this._enableWeatherType!==Qu.TYPE_RAIN&&this._enableWeatherType!==Qu.TYPE_SNOW&&this._enableWeatherType!==Qu.TYPE_HEIGHT_FOG&&(o===Qu.TYPE_RAIN||o===Qu.TYPE_SNOW||o===Qu.TYPE_HEIGHT_FOG)&&(this.addPolygon(this._region),this.update()),(this._enableWeatherType===Qu.TYPE_RAIN||this._enableWeatherType===Qu.TYPE_SNOW||this._enableWeatherType===Qu.TYPE_HEIGHT_FOG)&&o!==Qu.TYPE_RAIN&&o!==Qu.TYPE_SNOW&&o!==Qu.TYPE_HEIGHT_FOG&&this.clearPolygon(),o===Qu.TYPE_RAIN?this.enableRainSnowFog(o):o===Qu.TYPE_SNOW?this.enableRainSnowFog(o):o===Qu.TYPE_HEIGHT_FOG?this.enableRainSnowFog(o):o===Qu.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)}}});Qu.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===Qu.TYPE_RAIN?(this._weatherParticle=zKi(f,m,x),f.primitives.add(this._weatherParticle)):o===Qu.TYPE_SNOW&&(this._weatherParticle=YKi(f,m,x),f.primitives.add(this._weatherParticle)),this._terrainWeather&&(this._terrainWeather.disabled=!0,o===Qu.TYPE_RAIN?this._terrainWeather.ripple=!0:o===Qu.TYPE_SNOW?this._terrainWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._terrainWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._terrainWeather.disabled=!0)),this._tilesetWeather&&(this._tilesetWeather.disabled=!0,o===Qu.TYPE_RAIN?this._tilesetWeather.ripple=!0:o===Qu.TYPE_SNOW?this._tilesetWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._tilesetWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._tilesetWeather.disabled=!0))};Qu.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)};Qu.prototype.addPolygon=function(){if(this._terrainWeather&&this._terrainWeather.addPolygon(this._region),this._tilesetWeather){let o=Uu.fromPositions({positions:Z.fromDegreesArrayHeights(this._region),perPositionHeight:!0});this._tilesetWeather.addPolygon(o)}};Qu.prototype.clearPolygon=function(){this._terrainWeather&&this._terrainWeather.clearPolygon(),this._tilesetWeather&&this._tilesetWeather.clearPolygon()};Qu.prototype.update=function(){this._terrainWeather&&this._terrainWeather.update(),this._tilesetWeather};Qu.TYPE_RAIN=0;Qu.TYPE_SNOW=1;Qu.TYPE_HEIGHT_FOG=2;Qu.TYPE_NONE=3;var Vde=Qu,txr=new qm({pass:sh.PICK}),JKi=new qm({pass:sh.RENDER}),jKi=new Xe(0,0,0,0);function UO(o){this.scene=o.scene;let f=this.scene.context;this.boxHeight=o.boxHeight,this.centerPosition=Gt.clone(o.centerPosition,new Gt(0,0,0)),this.size=o.size,this.viewPort=new Er(0,0,f.drawingBufferWidth,f.drawingBufferHeight),this.rect=this.calcRect(this.centerPosition,this.boxHeight,this.size),this.depthTexture=null,this.colorTexture=null,this.init()}UO.prototype.calcRect=function(o,f,m){o.height+=f;let x=Gt.toCartesian(o,yi.WGS84,new Z),y={heading:0,pitch:-90*3.1415926/180,roll:0};return{position:x,orientation:y,size:m}};UO.prototype.createPassState=function(o){let f=new $p(o);return f.blendingEnabled=!1,f.scissorTest={enabled:!1,rectangle:new Er},f.viewport=new Er,f};function QKi(o,f,m,x){let{width:y,height:v}=f;return Er.clone(f,x.scissorTest.rectangle),m.update(o,y,v),x.framebuffer=m.framebuffer,x.viewport.width=y,x.viewport.height=v,x}function qKi(o,f,m,x){let{context:y,frameState:v}=o,C=y.uniformState,T=f;o.view=T,QKi(y,T.viewport,m,x),o.jobScheduler.disableThisFrame(),o.updateFrameState(),v.invertClassification=!1,v.passes.pick=!1,v.passes.render=!0,v.tilesetPassState=JKi,v.passes.offscreen=!0,v.passes.heightField=!0,C.update(v),o.updateEnvironment(),o.updateAndExecuteCommands(x,jKi);let S=T.frustumCommandsList.length;if(console.log("numFrustums:",S),o.resolveFramebuffers(x),o.context.depthTexture){let w=T.frustumCommandsList.length;for(let E=0;E<w;++E){let L=o.picking.getPickDepth(o,E).getDepth(y,10,10);if(L&&L>0&&L<1){let I=T.frustumCommandsList[E],R=I.near*(E!==0?o.opaqueFrustumNearOffset:1),P=I.far,A=R+L*(P-R);console.log("depth",L),console.log("near",R),console.log("far",P),console.log("distance",A);break}}}return T.globeDepth.executeCopyDepth(y,x),o.view=o.defaultView,y.endFrame(),T.globeDepth._copyDepthFramebuffer.getColorTexture()}UO.prototype.init=function(){let o=this.scene,f=o.context,m=this.rect,x=this.boxHeight,y=this.viewPort,v=new Ts(o);v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x}),v.setView({destination:m.position,orientation:m.orientation,endTransform:Ee.IDENTITY}),v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x});let C=new N1(o,v,y),T=new Pc({name:"yes"}),S=this.createPassState(f),w=this;w.depthTexture=qKi(o,C,T,S),w.colorTexture=T.getColorTexture(0)};UO.prototype.getDepthTexture=function(){return this.depthTexture};UO.prototype.getColorTexture=function(){return this.colorTexture};UO.prototype.destroy=function(){};var lDe=UO,zU={baseShader:{shader:` + `}),D=new Vf({name:`${f}Composite`,stages:[V,G],inputPreviousStageTexture:!1});function N(k){Object.defineProperties(k,{showGlow:{get(){return S},set(U){S=U}},edgeGlow:{get(){return w},set(U){w=U}},edgeStrength:{get(){return E},set(U){E=U}},thresholdAngle:{get(){return x},set(U){x=U}},showOutlineOnly:{get(){return v},set(U){v=U}},edgeOnly:{get(){return L},set(U){L=U}},useSingleColor:{get(){return y},set(U){y=U}},outlineWidth:{get(){return m},set(U){m=U}},visibleEdgeColor:{get(){return C},set(U){C=U}},hiddenEdgeColor:{get(){return T},set(U){T=U}}})}return N(D),D._uniforms=D._uniforms||{},N(D._uniforms),D}function d$(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(d$.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}}});d$.prototype.addPolygon=function(o){this._primitive.addFlattenPolygon(o)};d$.prototype.clearPolygon=function(){this._primitive.clearFlattenPolygon()};d$.prototype.update=function(){this._primitive.update()};var aDe=d$;function p$(o){this._terrainFlatten=new kO(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(p$.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}}});p$.prototype.addPolygon=function(o){this._terrainFlatten.addPolygon(o)};p$.prototype.clearPolygon=function(){this._terrainFlatten.clearPolygon()};p$.prototype.update=function(){this._terrainFlatten.update()};var sDe=p$;function zKi(o,f,m){let x=new rt(15,30),y=new Z,v=function(C,T){y=Z.normalize(C.position,y),y=Z.multiplyByScalar(y,-1050,y),C.position=Z.add(C.position,y,C.position);let S=Z.distance(o.camera.position,C.position),w=1;m<1e5&&(w=.1/(m/1e5));let E=m*w;S>E?C.endColor.alpha=0:C.endColor.alpha=Xe.BLUE.alpha/(S/E+.1)};return new QS({modelMatrix:new Ee.fromTranslation(f),speed:-1,lifetime:15,emitter:new Sde(new Z(m,m,m)),startScale:5,endScale:0,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/littleRain.png`,emissionRate:9e3,startColor:new Xe(.8,.8,.8,0),endColor:new Xe(.8,.8,.8,.9),imageSize:x,updateCallback:v})}function YKi(o,f,m){let x=new rt(12,12),y=new rt(12*2,12*2),v=new Z,C=function(T,S){v=Z.normalize(T.position,v),Z.multiplyByScalar(v,be.randomBetween(-30,-300),v),T.velocity=Z.add(T.velocity,v,T.velocity);let w=Z.distance(o.camera.position,T.position);w>m?T.endColor.alpha=0:T.endColor.alpha=1/(w/m+.1)};return new QS({modelMatrix:new Ee.fromTranslation(f),minimumSpeed:-1,maximumSpeed:0,lifetime:15,emitter:new Sde(new Z(m,m,m)),startScale:.5,endScale:1,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/snow.png`,emissionRate:7e3,startColor:Xe.WHITE.withAlpha(0),endColor:Xe.WHITE.withAlpha(1),minimumImageSize:x,maximumImageSize:y,updateCallback:C})}function KKi(o,f){let m=_r.eastNorthUpToFixedFrame(o),x=Ee.multiplyByPoint(m,new Z(f*.5,f*.5,0),new Z),y=Ee.multiplyByPoint(m,new Z(f*.5,-f*.5,0),new Z),v=Ee.multiplyByPoint(m,new Z(-f*.5,-f*.5,0),new Z),C=Ee.multiplyByPoint(m,new Z(-f*.5,f*.5,0),new Z),T=Gt.fromCartesian(x),S=Gt.fromCartesian(y),w=Gt.fromCartesian(v),E=Gt.fromCartesian(C);return[be.toDegrees(T.longitude),be.toDegrees(T.latitude),-1e4,be.toDegrees(S.longitude),be.toDegrees(S.latitude),-1e4,be.toDegrees(w.longitude),be.toDegrees(w.latitude),-1e4,be.toDegrees(E.longitude),be.toDegrees(E.latitude),-1e4]}function Qu(o,f,m,x){this._scene=o,this._primitive=f,this._position=m,this._radius=x,f&&(this._tilesetWeather=new aDe(f)),o&&(this._terrainWeather=new sDe(o)),this._enableWeatherType=Qu.TYPE_NONE,this._region=KKi(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(Qu.prototype,{enableWeatherType:{get:function(){return this._enableWeatherType},set:function(o){this._enableWeatherType!==o&&(this._enableWeatherType!==Qu.TYPE_RAIN&&this._enableWeatherType!==Qu.TYPE_SNOW&&this._enableWeatherType!==Qu.TYPE_HEIGHT_FOG&&(o===Qu.TYPE_RAIN||o===Qu.TYPE_SNOW||o===Qu.TYPE_HEIGHT_FOG)&&(this.addPolygon(this._region),this.update()),(this._enableWeatherType===Qu.TYPE_RAIN||this._enableWeatherType===Qu.TYPE_SNOW||this._enableWeatherType===Qu.TYPE_HEIGHT_FOG)&&o!==Qu.TYPE_RAIN&&o!==Qu.TYPE_SNOW&&o!==Qu.TYPE_HEIGHT_FOG&&this.clearPolygon(),o===Qu.TYPE_RAIN?this.enableRainSnowFog(o):o===Qu.TYPE_SNOW?this.enableRainSnowFog(o):o===Qu.TYPE_HEIGHT_FOG?this.enableRainSnowFog(o):o===Qu.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)}}});Qu.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===Qu.TYPE_RAIN?(this._weatherParticle=zKi(f,m,x),f.primitives.add(this._weatherParticle)):o===Qu.TYPE_SNOW&&(this._weatherParticle=YKi(f,m,x),f.primitives.add(this._weatherParticle)),this._terrainWeather&&(this._terrainWeather.disabled=!0,o===Qu.TYPE_RAIN?this._terrainWeather.ripple=!0:o===Qu.TYPE_SNOW?this._terrainWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._terrainWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._terrainWeather.disabled=!0)),this._tilesetWeather&&(this._tilesetWeather.disabled=!0,o===Qu.TYPE_RAIN?this._tilesetWeather.ripple=!0:o===Qu.TYPE_SNOW?this._tilesetWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._tilesetWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._tilesetWeather.disabled=!0))};Qu.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)};Qu.prototype.addPolygon=function(){if(this._terrainWeather&&this._terrainWeather.addPolygon(this._region),this._tilesetWeather){let o=Uu.fromPositions({positions:Z.fromDegreesArrayHeights(this._region),perPositionHeight:!0});this._tilesetWeather.addPolygon(o)}};Qu.prototype.clearPolygon=function(){this._terrainWeather&&this._terrainWeather.clearPolygon(),this._tilesetWeather&&this._tilesetWeather.clearPolygon()};Qu.prototype.update=function(){this._terrainWeather&&this._terrainWeather.update(),this._tilesetWeather};Qu.TYPE_RAIN=0;Qu.TYPE_SNOW=1;Qu.TYPE_HEIGHT_FOG=2;Qu.TYPE_NONE=3;var Vde=Qu,txr=new qm({pass:sh.PICK}),JKi=new qm({pass:sh.RENDER}),jKi=new Xe(0,0,0,0);function UO(o){this.scene=o.scene;let f=this.scene.context;this.boxHeight=o.boxHeight,this.centerPosition=Gt.clone(o.centerPosition,new Gt(0,0,0)),this.size=o.size,this.viewPort=new Er(0,0,f.drawingBufferWidth,f.drawingBufferHeight),this.rect=this.calcRect(this.centerPosition,this.boxHeight,this.size),this.depthTexture=null,this.colorTexture=null,this.init()}UO.prototype.calcRect=function(o,f,m){o.height+=f;let x=Gt.toCartesian(o,yi.WGS84,new Z),y={heading:0,pitch:-90*3.1415926/180,roll:0};return{position:x,orientation:y,size:m}};UO.prototype.createPassState=function(o){let f=new $p(o);return f.blendingEnabled=!1,f.scissorTest={enabled:!1,rectangle:new Er},f.viewport=new Er,f};function QKi(o,f,m,x){let{width:y,height:v}=f;return Er.clone(f,x.scissorTest.rectangle),m.update(o,y,v),x.framebuffer=m.framebuffer,x.viewport.width=y,x.viewport.height=v,x}function qKi(o,f,m,x){let{context:y,frameState:v}=o,C=y.uniformState,T=f;o.view=T,QKi(y,T.viewport,m,x),o.jobScheduler.disableThisFrame(),o.updateFrameState(),v.invertClassification=!1,v.passes.pick=!1,v.passes.render=!0,v.tilesetPassState=JKi,v.passes.offscreen=!0,v.passes.heightField=!0,C.update(v),o.updateEnvironment(),o.updateAndExecuteCommands(x,jKi);let S=T.frustumCommandsList.length;if(console.log("numFrustums:",S),o.resolveFramebuffers(x),o.context.depthTexture){let w=T.frustumCommandsList.length;for(let E=0;E<w;++E){let L=o.picking.getPickDepth(o,E).getDepth(y,10,10);if(L&&L>0&&L<1){let I=T.frustumCommandsList[E],R=I.near*(E!==0?o.opaqueFrustumNearOffset:1),P=I.far,A=R+L*(P-R);console.log("depth",L),console.log("near",R),console.log("far",P),console.log("distance",A);break}}}return T.globeDepth.executeCopyDepth(y,x),o.view=o.defaultView,y.endFrame(),T.globeDepth._copyDepthFramebuffer.getColorTexture()}UO.prototype.init=function(){let o=this.scene,f=o.context,m=this.rect,x=this.boxHeight,y=this.viewPort,v=new Ts(o);v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x}),v.setView({destination:m.position,orientation:m.orientation,endTransform:Ee.IDENTITY}),v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x});let C=new N1(o,v,y),T=new Pc({name:"yes"}),S=this.createPassState(f),w=this;w.depthTexture=qKi(o,C,T,S),w.colorTexture=T.getColorTexture(0)};UO.prototype.getDepthTexture=function(){return this.depthTexture};UO.prototype.getColorTexture=function(){return this.colorTexture};UO.prototype.destroy=function(){};var lDe=UO,zU={baseShader:{shader:` const int textureSize = 512; // Render //const vec3 backgroundColor = vec3(0.2); @@ -22325,7 +22325,7 @@ void main() { getColor(); } - `;function Y7e(o,f,m,x){let y=new Uint8Array(f),v=Math.ceil(Math.sqrt(y.length));return new qGe({width:m,height:m,depth:m,context:o,pixelFormat:x?zr.RGBA:zr.RGB,pixelDataType:un.UNSIGNED_BYTE,source:{width:v,height:v,arrayBufferView:y},sampler:new Yo({wrapR:Xn.MIRRORED_REPEAT,wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function K7e(o,f,m){let x=f;return new Rn({context:o,source:x,sampler:new Yo({wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function vJi(o){let f=[],m=o.detail_noise_high,x=new Mr({url:m,queryParameters:{format:"bin"}});f.push(x.fetchArrayBuffer());let y=o.detail_noise,v=new Mr({url:y,queryParameters:{format:"bin"}});f.push(v.fetchArrayBuffer());let C=o.weather,T=new Mr({url:C,queryParameters:{format:"png"}});f.push(T.fetchImage());let S=o.mark_noise,w=new Mr({url:S,queryParameters:{format:"png"}});return f.push(w.fetchImage()),Promise.all(f)}function f$(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 y=this;vJi(f).then(function(v){let C=y.getUniforms(x,m.scene.context,v);y._postProcess=m.scene.postProcessStages.add(new Sa({fragmentShader:_Ji,uniforms:C}))}).catch(function(v){console.log(v)})}f$.prototype.getModelMatrix=function(o){if(this._modelMatrixDirty){let f=o.cartographicPosition,m=o.height,x=o.size,y=Ee.fromScale(x),v=_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.x,f.y));Ee.multiply(v,y,y);let C=Ee.fromTranslation(new Z(0,0,m));Ee.multiply(C,y,y),this._modelMatrixDirty=!1,this._modelMatrix=y}return this._modelMatrix};f$.prototype.getUniforms=function(o,f,m){let x=new Ee,y=new Ee,v=new Ee,C=0,T=null,S=null,w=null,E=null,L=this;return{u_inversModelView:function(){let I=L.getModelMatrix(L._coordinate);return Ee.multiply(o,I,x),Ee.inverse(x,y),y},u_inversModelMatrix:function(){let I=L.getModelMatrix(L._coordinate);return Ee.inverse(I,v),v},u_time:function(){return C+=.001,C},detail_map_high:function(){return S||(S=Y7e(f,m[0],32,!1)),S},detail_map:function(){return T||(T=Y7e(f,m[1],128,!0)),T},weather_map:function(){return w||(w=K7e(f,m[2],512)),w},mark_noise:function(){return E||(E=K7e(f,m[3],512)),E},wind_speed:function(){return L._cloudParam.wind_speed},wind_direction:function(){let I=new rt;return I.x=L._cloudParam.wind_direction_x,I.z=L._cloudParam.wind_direction_z,I},global_coverage:function(){return L._cloudParam.global_coverage},global_density:function(){return L._cloudParam.global_density},global_lightAbsorption:function(){return L._cloudParam.global_lightAbsorption},cloud_in_scatter:function(){return L._cloudParam.cloud_in_scatter},cloud_out_scatter:function(){return L._cloudParam.cloud_out_scatter},cloud_scatter_ratio:function(){return L._cloudParam.cloud_scatter_ratio},cloud_silver_intensity:function(){return L._cloudParam.cloud_silver_intensity},cloud_silver_exponent:function(){return L._cloudParam.cloud_silver_exponent},cloud_out_scatter_ambient:function(){return L._cloudParam.cloud_out_scatter_ambient},wind_animation:function(){return L._cloudParam.wind_animation},use_blue_noise:function(){return L._cloudParam.use_blue_noise},use_quarter_update:function(){return L._cloudParam.use_quarter_update},highlightScale:function(){return L._cloudParam.highlightScale},backScale:function(){return L._cloudParam.backScale},attenuationScale:function(){return L._cloudParam.attenuationScale}}};Object.defineProperties(f$.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}}});f$.prototype.update=function(){F(this._postProcess)&&this._enable&&(this._viewer.camera.positionCartographic.height>5e5?this._postProcess.enabled=!1:this._postProcess.enabled=!0)};var Nde=f$,J7e={baseShader:{shader:` + `;function Y7e(o,f,m,x){let y=new Uint8Array(f),v=Math.ceil(Math.sqrt(y.length));return new fFe({width:m,height:m,depth:m,context:o,pixelFormat:x?zr.RGBA:zr.RGB,pixelDataType:un.UNSIGNED_BYTE,source:{width:v,height:v,arrayBufferView:y},sampler:new Yo({wrapR:Xn.MIRRORED_REPEAT,wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function K7e(o,f,m){let x=f;return new Rn({context:o,source:x,sampler:new Yo({wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function vJi(o){let f=[],m=o.detail_noise_high,x=new Mr({url:m,queryParameters:{format:"bin"}});f.push(x.fetchArrayBuffer());let y=o.detail_noise,v=new Mr({url:y,queryParameters:{format:"bin"}});f.push(v.fetchArrayBuffer());let C=o.weather,T=new Mr({url:C,queryParameters:{format:"png"}});f.push(T.fetchImage());let S=o.mark_noise,w=new Mr({url:S,queryParameters:{format:"png"}});return f.push(w.fetchImage()),Promise.all(f)}function f$(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 y=this;vJi(f).then(function(v){let C=y.getUniforms(x,m.scene.context,v);y._postProcess=m.scene.postProcessStages.add(new Sa({fragmentShader:_Ji,uniforms:C}))}).catch(function(v){console.log(v)})}f$.prototype.getModelMatrix=function(o){if(this._modelMatrixDirty){let f=o.cartographicPosition,m=o.height,x=o.size,y=Ee.fromScale(x),v=_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.x,f.y));Ee.multiply(v,y,y);let C=Ee.fromTranslation(new Z(0,0,m));Ee.multiply(C,y,y),this._modelMatrixDirty=!1,this._modelMatrix=y}return this._modelMatrix};f$.prototype.getUniforms=function(o,f,m){let x=new Ee,y=new Ee,v=new Ee,C=0,T=null,S=null,w=null,E=null,L=this;return{u_inversModelView:function(){let I=L.getModelMatrix(L._coordinate);return Ee.multiply(o,I,x),Ee.inverse(x,y),y},u_inversModelMatrix:function(){let I=L.getModelMatrix(L._coordinate);return Ee.inverse(I,v),v},u_time:function(){return C+=.001,C},detail_map_high:function(){return S||(S=Y7e(f,m[0],32,!1)),S},detail_map:function(){return T||(T=Y7e(f,m[1],128,!0)),T},weather_map:function(){return w||(w=K7e(f,m[2],512)),w},mark_noise:function(){return E||(E=K7e(f,m[3],512)),E},wind_speed:function(){return L._cloudParam.wind_speed},wind_direction:function(){let I=new rt;return I.x=L._cloudParam.wind_direction_x,I.z=L._cloudParam.wind_direction_z,I},global_coverage:function(){return L._cloudParam.global_coverage},global_density:function(){return L._cloudParam.global_density},global_lightAbsorption:function(){return L._cloudParam.global_lightAbsorption},cloud_in_scatter:function(){return L._cloudParam.cloud_in_scatter},cloud_out_scatter:function(){return L._cloudParam.cloud_out_scatter},cloud_scatter_ratio:function(){return L._cloudParam.cloud_scatter_ratio},cloud_silver_intensity:function(){return L._cloudParam.cloud_silver_intensity},cloud_silver_exponent:function(){return L._cloudParam.cloud_silver_exponent},cloud_out_scatter_ambient:function(){return L._cloudParam.cloud_out_scatter_ambient},wind_animation:function(){return L._cloudParam.wind_animation},use_blue_noise:function(){return L._cloudParam.use_blue_noise},use_quarter_update:function(){return L._cloudParam.use_quarter_update},highlightScale:function(){return L._cloudParam.highlightScale},backScale:function(){return L._cloudParam.backScale},attenuationScale:function(){return L._cloudParam.attenuationScale}}};Object.defineProperties(f$.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}}});f$.prototype.update=function(){F(this._postProcess)&&this._enable&&(this._viewer.camera.positionCartographic.height>5e5?this._postProcess.enabled=!1:this._postProcess.enabled=!0)};var Nde=f$,J7e={baseShader:{shader:` const int textureSize = 512; // Render //const vec3 backgroundColor = vec3(0.0); @@ -23034,6 +23034,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; @@ -23217,15 +23247,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){ @@ -23253,6 +23284,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) @@ -23319,33 +23383,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; @@ -23402,7 +23485,7 @@ vec4 backgroundColor = texture(colorTexture, v_textureCoordinates); vec3 col = Render(ro, rd, backgroundColor.rgb); out_FragColor = vec4(col, 1.0); - }`,uniforms:{iWaterTexture:function(){return E.waterVideoTexture?(E.waterVideoTexture.sampler=QA,E.waterVideoTexture):v},iWaterImageTexture:function(){return E.waterImageTexture?(E.waterImageTexture.sampler=QA,E.waterImageTexture):v},iFlowImageTexture:function(){return E.flowImageTexture?(E.flowImageTexture.sampler=QA,E.flowImageTexture):v},iArrowTexture:function(){return E.arrowTexture?(E.arrowTexture.sampler=QA,E.arrowTexture):v},iFlowEnabled:function(){return E.flowEnabled},iTerrainTexture:function(){return E.terrainTexture?(E.terrainTexture.sampler=QA,E.terrainTexture):v},iWaterReflectTexture:function(){return A&&A.reflexImage?(A.reflexImage.sampler=QA,A.reflexImage):v},iWaterColorTexture:function(){return M?(M.sampler=QA,M):v},iNormalWater:function(){return S||v},iNormalWater1:function(){return w||v},iEnabelTerrainTexture:function(){return!0},u_size:function(){return P},u_height:function(){return x},iTime:function(){return V++,V*.03},u_transformDirectionViewToModel:function(){let N=m.uniformState.inverseView;return Ee.multiplyTransformation(T,N,new Ee)},u_cameraPositionUv:function(){let N=f.frameState.camera.positionWC;return Ee.multiplyByPoint(T,N,new Z)},u_cameraDirection:function(){return f.frameState.camera.directionWC},u_sunPositionUv:function(){let N=m.uniformState.sunPositionWC;return Ee.multiplyByPoint(T,N,new Z)},u_waterColor:function(){return E.waterColor},u_debug:function(){return E.debug},u_waterHeightLevelEnabled:function(){return E.waterHeightLevelEnabled},u_waterLevelHeights:function(){return I},u_waterLevelColors:function(){return R},u_alphaByDepth:function(){return E.alphaByDepth},u_bottomHeight:function(){return E._bottomHeight},u_topHeight:function(){return E._topHeight},u_offsetBottomHeight:function(){return E._offsetBottomHeight},u_offsetTopHeight:function(){return E._offsetTopHeight}}});let D=new Vf({inputPreviousStageTexture:!1,stages:[G],name:`${o}watereffect`});f.postProcessStages.add(D),this.waterProcess=D};jM.prototype.calcWaterRectSize=function(o,f){let m=o.west,x=o.east,y=o.south,v=o.north,C=ube(m,y,0,f),T=ube(x,y,0,f),S=ube(m,v,0,f),w=Z.magnitude(Z.subtract(T,C,new Z)),E=Z.magnitude(Z.subtract(S,C,new Z));return new rt(w,E)};jM.prototype.generateWaterReflectMap=function(){let o=this.scene,f=Gt.clone(this.centerPosition,new Gt);f.height=10;let m=Gt.toCartesian(f,yi.WGS84,new Z),x=_r.eastNorthUpToFixedFrame(m,yi.WGS84,new Ee);return new pDe({scene:o,waterCenter:m,waterMatrix:x})};jM.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`,y=`${this.flowUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,v=this;YJi([x,y]).then(C=>{v.waterImageTexture?f===v.currentIndex?(v.waterImageTexture.copyFrom({source:C[0]}),v.flowImageTexture.copyFrom({source:C[1]})):console.log("-------lost-----"):(v.waterImageTexture=new Rn({context:o,source:C[0],sampler:QA}),v.flowImageTexture=new Rn({context:o,source:C[1],sampler:BJi}))})}};jM.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)};jM.fromUrl=async function(o,f){let m=o.context,x=[oa("Assets/Textures/water/caustics.png"),oa("Assets/Textures/water/Water_1_M_Normal.jpg"),oa("Assets/Textures/water/Water_2_M_Normal.jpg"),oa("Assets/Textures/water/arrow.png"),f.terrainUrl],[y,v,C,T,S]=await zJi(x,m);return new jM({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:S,waterColorTexure:y,normalWaterTexture:v,normalWaterTexture1:C,arrowTexture:T,show:!0,waterHeightLevels:f.waterHeightLevels,alphaByDepth:f.alphaByDepth},o)};Object.defineProperties(jM.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 cD=jM,Tgt=`uniform sampler2D u_depthTexture; + }`,uniforms:{iWaterTexture:function(){return E.waterVideoTexture?(E.waterVideoTexture.sampler=QA,E.waterVideoTexture):v},iWaterImageTexture:function(){return E.waterImageTexture?(E.waterImageTexture.sampler=QA,E.waterImageTexture):v},iFlowImageTexture:function(){return E.flowImageTexture?(E.flowImageTexture.sampler=QA,E.flowImageTexture):v},iArrowTexture:function(){return E.arrowTexture?(E.arrowTexture.sampler=QA,E.arrowTexture):v},iFlowEnabled:function(){return E.flowEnabled},iTerrainTexture:function(){return E.terrainTexture?(E.terrainTexture.sampler=QA,E.terrainTexture):v},iWaterReflectTexture:function(){return A&&A.reflexImage?(A.reflexImage.sampler=QA,A.reflexImage):v},iWaterColorTexture:function(){return M?(M.sampler=QA,M):v},iNormalWater:function(){return S||v},iNormalWater1:function(){return w||v},iEnabelTerrainTexture:function(){return!0},u_size:function(){return P},u_height:function(){return x},iTime:function(){return V+=.01,V},u_transformDirectionViewToModel:function(){let N=m.uniformState.inverseView;return Ee.multiplyTransformation(T,N,new Ee)},u_cameraPositionUv:function(){let N=f.frameState.camera.positionWC;return Ee.multiplyByPoint(T,N,new Z)},u_cameraDirection:function(){return f.frameState.camera.directionWC},u_sunPositionUv:function(){let N=m.uniformState.sunPositionWC;return Ee.multiplyByPoint(T,N,new Z)},u_waterColor:function(){return E.waterColor},u_debug:function(){return E.debug},u_waterHeightLevelEnabled:function(){return E.waterHeightLevelEnabled},u_waterLevelHeights:function(){return I},u_waterLevelColors:function(){return R},u_alphaByDepth:function(){return E.alphaByDepth},u_bottomHeight:function(){return E._bottomHeight},u_topHeight:function(){return E._topHeight},u_offsetBottomHeight:function(){return E._offsetBottomHeight},u_offsetTopHeight:function(){return E._offsetTopHeight}}});let D=new Vf({inputPreviousStageTexture:!1,stages:[G],name:`${o}watereffect`});f.postProcessStages.add(D),this.waterProcess=D};jM.prototype.calcWaterRectSize=function(o,f){let m=o.west,x=o.east,y=o.south,v=o.north,C=ube(m,y,0,f),T=ube(x,y,0,f),S=ube(m,v,0,f),w=Z.magnitude(Z.subtract(T,C,new Z)),E=Z.magnitude(Z.subtract(S,C,new Z));return new rt(w,E)};jM.prototype.generateWaterReflectMap=function(){let o=this.scene,f=Gt.clone(this.centerPosition,new Gt);f.height=10;let m=Gt.toCartesian(f,yi.WGS84,new Z),x=_r.eastNorthUpToFixedFrame(m,yi.WGS84,new Ee);return new pDe({scene:o,waterCenter:m,waterMatrix:x})};jM.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`,y=`${this.flowUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,v=this;YJi([x,y]).then(C=>{v.waterImageTexture?f===v.currentIndex?(v.waterImageTexture.copyFrom({source:C[0]}),v.flowImageTexture.copyFrom({source:C[1]})):console.log("-------lost-----"):(v.waterImageTexture=new Rn({context:o,source:C[0],sampler:QA}),v.flowImageTexture=new Rn({context:o,source:C[1],sampler:BJi}))})}};jM.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)};jM.fromUrl=async function(o,f){let m=o.context,x=[oa("Assets/Textures/water/caustics.png"),oa("Assets/Textures/water/Water_1_M_Normal.jpg"),oa("Assets/Textures/water/Water_2_M_Normal.jpg"),oa("Assets/Textures/water/arrow.png"),f.terrainUrl],[y,v,C,T,S]=await zJi(x,m);return new jM({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:S,waterColorTexure:y,normalWaterTexture:v,normalWaterTexture1:C,arrowTexture:T,show:!0,waterHeightLevels:f.waterHeightLevels,alphaByDepth:f.alphaByDepth},o)};Object.defineProperties(jM.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 cD=jM,Tgt=`uniform sampler2D u_depthTexture; in vec2 v_textureCoordinates; @@ -23709,7 +23792,7 @@ </ul> `}var P8i=[{text:"Highlight",value:xI.HIGHLIGHT},{text:"Replace",value:xI.REPLACE},{text:"Mix",value:xI.MIX}],lqe=new Xe(1,1,0,.4),I8i=new Xe,woe=new Xe;function Ng(o,f){let m=this,x=o.canvas;this._eventHandler=new Lr(x),this._scene=o,this._performanceContainer=f,this._canvas=x,this._performanceDisplay=new Fq({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,sr.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=sr.observable({}),this.properties=[],sr.defineProperty(this,"properties",function(){let oe=[],ce=m._properties();for(let pe in ce)ce.hasOwnProperty(pe)&&oe.push(pe);return oe});let y=sr.observable();sr.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return y()},set:function(oe){y(oe),F(m._tileset)&&(m._tileset.dynamicScreenSpaceError=oe)}}),this.dynamicScreenSpaceError=!1;let v=sr.observable();sr.defineProperty(this,"colorBlendMode",{get:function(){return v()},set:function(oe){v(oe),F(m._tileset)&&(m._tileset.colorBlendMode=oe,m._scene.requestRender())}}),this.colorBlendMode=xI.HIGHLIGHT;let C=sr.observable(),T=sr.observable();sr.defineProperty(this,"picking",{get:function(){return T()},set:function(oe){T(oe),oe?m._eventHandler.setInputAction(function(ce){let pe=o.pick(ce.endPosition);if(pe instanceof Ss?(m.feature=pe,m.tile=pe.content.tile):F(pe)&&F(pe.content)?(m.feature=void 0,m.tile=pe.content.tile):(m.feature=void 0,m.tile=void 0),!!F(m._tileset)){if(C&&F(pe)&&F(pe.content)){let ue;o.pickPositionSupported&&(ue=o.pickPosition(ce.endPosition),F(ue)&&(m._tileset.debugPickPosition=ue)),m._tileset.debugPickedTile=pe.content.tile}else m._tileset.debugPickedTile=void 0;m._scene.requestRender()}},Si.MOUSE_MOVE):(m.feature=void 0,m.tile=void 0,m._eventHandler.removeInputAction(Si.MOUSE_MOVE))}}),this.picking=!0;let S=sr.observable();sr.defineProperty(this,"colorize",{get:function(){return S()},set:function(oe){S(oe),F(m._tileset)&&(m._tileset.debugColorizeTiles=oe,m._scene.requestRender())}}),this.colorize=!1;let w=sr.observable();sr.defineProperty(this,"wireframe",{get:function(){return w()},set:function(oe){w(oe),F(m._tileset)&&(m._tileset.debugWireframe=oe,m._scene.requestRender())}}),this.wireframe=!1;let E=sr.observable();sr.defineProperty(this,"showBoundingVolumes",{get:function(){return E()},set:function(oe){E(oe),F(m._tileset)&&(m._tileset.debugShowBoundingVolume=oe,m._scene.requestRender())}}),this.showBoundingVolumes=!1;let L=sr.observable();sr.defineProperty(this,"showContentBoundingVolumes",{get:function(){return L()},set:function(oe){L(oe),F(m._tileset)&&(m._tileset.debugShowContentBoundingVolume=oe,m._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let I=sr.observable();sr.defineProperty(this,"showRequestVolumes",{get:function(){return I()},set:function(oe){I(oe),F(m._tileset)&&(m._tileset.debugShowViewerRequestVolume=oe,m._scene.requestRender())}}),this.showRequestVolumes=!1;let R=sr.observable();sr.defineProperty(this,"freezeFrame",{get:function(){return R()},set:function(oe){R(oe),F(m._tileset)&&(m._tileset.debugFreezeFrame=oe,m._scene.debugShowFrustumPlanes=oe,m._scene.requestRender())}}),this.freezeFrame=!1,sr.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return C()},set:function(oe){C(oe),F(m._tileset)&&(m._tileset.debugPickedTileLabelOnly=oe,m._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let P=sr.observable();sr.defineProperty(this,"showGeometricError",{get:function(){return P()},set:function(oe){P(oe),F(m._tileset)&&(m._tileset.debugShowGeometricError=oe,m._scene.requestRender())}}),this.showGeometricError=!1;let A=sr.observable();sr.defineProperty(this,"showRenderingStatistics",{get:function(){return A()},set:function(oe){A(oe),F(m._tileset)&&(m._tileset.debugShowRenderingStatistics=oe,m._scene.requestRender())}}),this.showRenderingStatistics=!1;let M=sr.observable();sr.defineProperty(this,"showMemoryUsage",{get:function(){return M()},set:function(oe){M(oe),F(m._tileset)&&(m._tileset.debugShowMemoryUsage=oe,m._scene.requestRender())}}),this.showMemoryUsage=!1;let V=sr.observable();sr.defineProperty(this,"showUrl",{get:function(){return V()},set:function(oe){V(oe),F(m._tileset)&&(m._tileset.debugShowUrl=oe,m._scene.requestRender())}}),this.showUrl=!1;let G=sr.observable();sr.defineProperty(this,"maximumScreenSpaceError",{get:function(){return G()},set:function(oe){oe=Number(oe),isNaN(oe)||(G(oe),F(m._tileset)&&(m._tileset.maximumScreenSpaceError=oe))}}),this.maximumScreenSpaceError=16;let D=sr.observable();sr.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return D()},set:function(oe){oe=Number(oe),isNaN(oe)||(D(oe),F(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorDensity=oe))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,sr.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(D(),1/6)},set:function(oe){let ce=Math.pow(oe,6);D(ce),F(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorDensity=ce)}});let N=sr.observable();sr.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return N()},set:function(oe){oe=Number(oe),isNaN(oe)||(N(oe),F(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorFactor=oe))}}),this.dynamicScreenSpaceErrorFactor=24;let k=E8i(this),U=sr.observable();sr.defineProperty(this,"pickActive",{get:function(){return U()},set:function(oe){U(oe),oe?m._eventHandler.setInputAction(k,Si.LEFT_CLICK):m._eventHandler.removeInputAction(Si.LEFT_CLICK)}});let B=sr.observable();sr.defineProperty(this,"pointCloudShading",{get:function(){return B()},set:function(oe){B(oe),F(m._tileset)&&(m._tileset.pointCloudShading.attenuation=oe)}}),this.pointCloudShading=!1;let Y=sr.observable();sr.defineProperty(this,"geometricErrorScale",{get:function(){return Y()},set:function(oe){oe=Number(oe),isNaN(oe)||(Y(oe),F(m._tileset)&&(m._tileset.pointCloudShading.geometricErrorScale=oe))}}),this.geometricErrorScale=1;let J=sr.observable();sr.defineProperty(this,"maximumAttenuation",{get:function(){return J()},set:function(oe){oe=Number(oe),isNaN(oe)||(J(oe),F(m._tileset)&&(m._tileset.pointCloudShading.maximumAttenuation=oe===0?void 0:oe))}}),this.maximumAttenuation=0;let K=sr.observable();sr.defineProperty(this,"baseResolution",{get:function(){return K()},set:function(oe){oe=Number(oe),isNaN(oe)||(K(oe),F(m._tileset)&&(m._tileset.pointCloudShading.baseResolution=oe===0?void 0:oe))}}),this.baseResolution=0;let z=sr.observable();sr.defineProperty(this,"eyeDomeLighting",{get:function(){return z()},set:function(oe){z(oe),F(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLighting=oe)}}),this.eyeDomeLighting=!1;let j=sr.observable();sr.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return j()},set:function(oe){oe=Number(oe),isNaN(oe)||(j(oe),F(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLightingStrength=oe))}}),this.eyeDomeLightingStrength=1;let q=sr.observable();sr.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return q()},set:function(oe){oe=Number(oe),isNaN(oe)||(q(oe),F(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLightingRadius=oe))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let O=sr.observable();sr.defineProperty(this,"skipLevelOfDetail",{get:function(){return O()},set:function(oe){O(oe),F(m._tileset)&&(m._tileset.skipLevelOfDetail=oe)}}),this.skipLevelOfDetail=!0;let te=sr.observable();sr.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return te()},set:function(oe){oe=Number(oe),isNaN(oe)||(te(oe),F(m._tileset)&&(m._tileset.skipScreenSpaceErrorFactor=oe))}}),this.skipScreenSpaceErrorFactor=16;let ie=sr.observable();sr.defineProperty(this,"baseScreenSpaceError",{get:function(){return ie()},set:function(oe){oe=Number(oe),isNaN(oe)||(ie(oe),F(m._tileset)&&(m._tileset.baseScreenSpaceError=oe))}}),this.baseScreenSpaceError=1024;let re=sr.observable();sr.defineProperty(this,"skipLevels",{get:function(){return re()},set:function(oe){oe=Number(oe),isNaN(oe)||(re(oe),F(m._tileset)&&(m._tileset.skipLevels=oe))}}),this.skipLevels=1;let ee=sr.observable();sr.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return ee()},set:function(oe){ee(oe),F(m._tileset)&&(m._tileset.immediatelyLoadDesiredLevelOfDetail=oe)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let ae=sr.observable();sr.defineProperty(this,"loadSiblings",{get:function(){return ae()},set:function(oe){ae(oe),F(m._tileset)&&(m._tileset.loadSiblings=oe)}}),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()}),F(this._tileset)||Bgt(this,!0)}Object.defineProperties(Ng.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 P8i}},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,F(o)){this._properties(o.properties);let f=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],m=f.length;for(let y=0;y<m;++y){let v=f[y];this[v]=this[v]}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=N6(o,!1),this._pickStatisticsText=N6(o,!0),this._resourceCacheStatisticsText=Hgt(),Bgt(this,!1)}},feature:{get:function(){return this._feature},set:function(o){if(this._feature===o)return;let f=this._feature;F(f)&&!f.content.isDestroyed()&&(!this.colorize&&F(this._style)?f.color=F(this._style.color)?this._style.color.evaluateColor(f,I8i):Xe.WHITE:f.color=woe,this._scene.requestRender()),F(o)&&(Xe.clone(o.color,woe),o.color=lqe,this._scene.requestRender()),this._feature=o}},tile:{get:function(){return this._tile},set:function(o){if(this._tile===o)return;let f=this._tile;F(f)&&!f.isDestroyed()&&!J1e(f.content)&&(f.color=woe,this._scene.requestRender()),F(o)&&!J1e(o.content)&&(Xe.clone(o.color,woe),o.color=lqe,this._scene.requestRender()),this._tile=o}}});function J1e(o){if(!F(o))return!1;if(o.featuresLength>0)return!0;let f=o.innerContents;if(F(f)){let m=f.length;for(let x=0;x<m;++x)if(!J1e(f[x]))return!1;return!0}return!1}Ng.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};Ng.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Ng.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};Ng.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Ng.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};Ng.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};Ng.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};Ng.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};Ng.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};Ng.prototype.trimTilesCache=function(){F(this._tileset)&&this._tileset.trimLoadedTiles()};Ng.prototype.compileStyle=function(){let o=this._tileset;if(!(!F(o)||this.styleString===JSON.stringify(o.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new ZS(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(f){this._editorError=f.toString()}this.feature=this._feature,this.tile=this._tile}};Ng.prototype.styleEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,y=m.selectionEnd,v=y,C=m.value.slice(x,y).split(` `),T=C.length,S;if(f.shiftKey)for(S=0;S<T;++S)C[S][0]===" "&&(C[S][1]===" "?(C[S]=C[S].substr(2),v-=2):(C[S]=C[S].substr(1),v-=1));else for(S=0;S<T;++S)C[S]=` ${C[S]}`,v+=2;let w=C.join(` -`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileStyle();return!0};Ng.prototype._update=function(){let o=this._tileset;if(this.performance&&this._performanceDisplay.update(),F(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=N6(o,!1),this._pickStatisticsText=N6(o,!0),this._resourceCacheStatisticsText=Hgt())};Ng.prototype.isDestroyed=function(){return!1};Ng.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};Ng.getStatistics=N6;var TDe=Ng;function Xde(o,f){o=Qh(o);let m=document.createElement("div"),x=document.createElement("div");x.setAttribute("data-bind","visible: performance");let y=new TDe(f,x);this._viewModel=y,this._container=o,this._element=m;let v=document.createElement("div");v.textContent="3D Tiles Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleInspector"),m.appendChild(v),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 T=sI.createSection,S=sI.createCheckbox,w=sI.createRangeInput,E=sI.createButton,L=T(C,"Tileset","tilesetVisible","toggleTileset"),I=T(C,"Display","displayVisible","toggleDisplay"),R=T(C,"Update","updateVisible","toggleUpdate"),P=T(C,"Logging","loggingVisible","toggleLogging"),A=T(C,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),M=T(C,"Style","styleVisible","toggleStyle"),V=T(C,"Optimization","optimizationVisible","toggleOptimization"),G=document.createElement("div");G.className="field-group";let D=document.createElement("label");D.className="field-label",D.appendChild(document.createTextNode("Properties: "));let N=document.createElement("div");N.setAttribute("data-bind","text: properties"),G.appendChild(D),G.appendChild(N),L.appendChild(G),L.appendChild(E("Pick Tileset","togglePickTileset","pickActive")),L.appendChild(E("Trim Tiles Cache","trimTilesCache")),L.appendChild(S("Enable Picking","picking")),I.appendChild(S("Colorize","colorize"));let k=I.appendChild(S("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),U=document.createElement("p");U.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),U.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),U.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",k.appendChild(U),I.appendChild(S("Bounding Volumes","showBoundingVolumes")),I.appendChild(S("Content Volumes","showContentBoundingVolumes")),I.appendChild(S("Request Volumes","showRequestVolumes")),I.appendChild(S("Point Cloud Shading","pointCloudShading"));let B=document.createElement("div");B.setAttribute("data-bind","visible: pointCloudShading"),B.appendChild(w("Geometric Error Scale","geometricErrorScale",0,2,.01)),B.appendChild(w("Maximum Attenuation","maximumAttenuation",0,32,1)),B.appendChild(w("Base Resolution","baseResolution",0,1,.01)),B.appendChild(S("Eye Dome Lighting (EDL)","eyeDomeLighting")),I.appendChild(B);let Y=document.createElement("div");Y.setAttribute("data-bind","visible: eyeDomeLighting"),Y.appendChild(w("EDL Strength","eyeDomeLightingStrength",0,2,.1)),Y.appendChild(w("EDL Radius","eyeDomeLightingRadius",0,4,.1)),B.appendChild(Y),R.appendChild(S("Freeze Frame","freezeFrame")),R.appendChild(S("Dynamic Screen Space Error","dynamicScreenSpaceError"));let J=document.createElement("div");J.appendChild(w("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),R.appendChild(J);let K=document.createElement("div");K.setAttribute("data-bind","visible: dynamicScreenSpaceError"),K.appendChild(w("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),K.appendChild(w("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),R.appendChild(K),P.appendChild(S("Performance","performance")),P.appendChild(x),P.appendChild(S("Statistics","showStatistics"));let z=document.createElement("div");z.className="cesium-3dTilesInspector-statistics",z.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),P.appendChild(z),P.appendChild(S("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(S("Resource Cache Statistics","showResourceCacheStatistics"));let q=document.createElement("div");q.className="cesium-3dTilesInspector-statistics",q.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),P.appendChild(q);let O=document.createElement("div");M.appendChild(O),O.appendChild(document.createTextNode("Color Blend Mode: "));let te=document.createElement("select");te.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),O.appendChild(te);let ie=document.createElement("textarea");ie.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),O.className="cesium-cesiumInspector-styleEditor",O.appendChild(ie);let re=E("Compile (Ctrl+Enter)","compileStyle");O.appendChild(re);let ee=document.createElement("div");ee.className="cesium-cesiumInspector-error",ee.setAttribute("data-bind","text: editorError"),O.appendChild(ee),A.appendChild(S("Show Picked Only","showOnlyPickedTileDebugLabel")),A.appendChild(S("Geometric Error","showGeometricError")),A.appendChild(S("Rendering Statistics","showRenderingStatistics")),A.appendChild(S("Memory Usage (MB)","showMemoryUsage")),A.appendChild(S("Url","showUrl")),V.appendChild(S("Skip Tile LODs","skipLevelOfDetail"));let ae=document.createElement("div");ae.appendChild(w("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),V.appendChild(ae);let oe=document.createElement("div");oe.appendChild(w("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),V.appendChild(oe);let ce=document.createElement("div");ce.appendChild(w("Min. levels to skip","skipLevels",0,10,1)),V.appendChild(ce),V.appendChild(S("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),V.appendChild(S("Load siblings of visible tiles","loadSiblings")),sr.applyBindings(y,m)}Object.defineProperties(Xde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Xde.prototype.isDestroyed=function(){return!1};Xde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var SDe=Xde;function R8i(o){let f;if(F(o)){f="Command Statistics";let m=o.commandsInFrustums;for(let x in m)if(m.hasOwnProperty(x)){let y=parseInt(x,10),v;if(y===7)v="1, 2 and 3";else{let C=[];for(let T=2;T>=0;T--){let S=Math.pow(2,T);y>=S&&(C.push(T+1),y-=S)}v=C.reverse().join(" and ")}f+=`<br> ${m[x]} in frustum ${v}`}f+=`<br>Total: ${o.totalCommands}`}return f}function j1e(o,f,m){let x=Math.min(m,f);return x=Math.max(x,o),x}var A8i=new Ma,M8i=new Z;function g$(o,f){let m=this,x=o.canvas,y=new Lr(x);this._eventHandler=y,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 v=this._scene.globe;v.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="",sr.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=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._toggleGeneral=Il(function(){m.generalVisible=!m.generalVisible}),this._togglePrimitives=Il(function(){m.primitivesVisible=!m.primitivesVisible}),this._toggleTerrain=Il(function(){m.terrainVisible=!m.terrainVisible}),this._frustumsSubscription=sr.getObservable(this,"frustums").subscribe(function(w){m._scene.debugShowFrustums=w,m._scene.requestRender()}),this._frustumPlanesSubscription=sr.getObservable(this,"frustumPlanes").subscribe(function(w){m._scene.debugShowFrustumPlanes=w,m._scene.requestRender()}),this._performanceSubscription=sr.getObservable(this,"performance").subscribe(function(w){w?m._performanceDisplay=new Fq({container:m._performanceContainer}):m._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=Il(function(){return m._primitive.debugShowBoundingVolume=m.primitiveBoundingSphere,m._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=sr.getObservable(this,"primitiveBoundingSphere").subscribe(function(){m._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=Il(function(){if(m.primitiveReferenceFrame){let w=m._primitive.modelMatrix;m._modelMatrixPrimitive=new LFe({modelMatrix:w}),m._scene.primitives.add(m._modelMatrixPrimitive)}else F(m._modelMatrixPrimitive)&&(m._scene.primitives.remove(m._modelMatrixPrimitive),m._modelMatrixPrimitive=void 0);return m._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=sr.getObservable(this,"primitiveReferenceFrame").subscribe(function(){m._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=Il(function(){return m.filterPrimitive?m._scene.debugCommandFilter=function(w){return F(m._modelMatrixPrimitive)&&w.owner===m._modelMatrixPrimitive._primitive?!0:F(m._primitive)?w.owner===m._primitive||w.owner===m._primitive._billboardCollection||w.owner.primitive===m._primitive:!1}:m._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=sr.getObservable(this,"filterPrimitive").subscribe(function(){m._doFilterPrimitive(),m._scene.requestRender()}),this._wireframeSubscription=sr.getObservable(this,"wireframe").subscribe(function(w){v._surface.tileProvider._debug.wireframe=w,m._scene.requestRender()}),this._depthFrustumSubscription=sr.getObservable(this,"depthFrustum").subscribe(function(w){m._scene.debugShowDepthFrustum=w,m._scene.requestRender()}),this._incrementDepthFrustum=Il(function(){let w=m.depthFrustum+1;return m.depthFrustum=j1e(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._decrementDepthFrustum=Il(function(){let w=m.depthFrustum-1;return m.depthFrustum=j1e(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._suspendUpdatesSubscription=sr.getObservable(this,"suspendUpdates").subscribe(function(w){v._surface._debug.suspendLodUpdate=w,w||(m.filterTile=!1)});let C;this._showTileCoordinates=Il(function(){return m.tileCoordinates&&!F(C)?C=o.imageryLayers.addImageryProvider(new l$({tilingScheme:o.terrainProvider.tilingScheme})):!m.tileCoordinates&&F(C)&&(o.imageryLayers.remove(C),C=void 0),!0}),this._tileCoordinatesSubscription=sr.getObservable(this,"tileCoordinates").subscribe(function(){m._showTileCoordinates(),m._scene.requestRender()}),this._tileBoundingSphereSubscription=sr.getObservable(this,"tileBoundingSphere").subscribe(function(){m._showTileBoundingSphere(),m._scene.requestRender()}),this._showTileBoundingSphere=Il(function(){return m.tileBoundingSphere?v._surface.tileProvider._debug.boundingSphereTile=m._tile:v._surface.tileProvider._debug.boundingSphereTile=void 0,m._scene.requestRender(),!0}),this._doFilterTile=Il(function(){return m.filterTile?(m.suspendUpdates=!0,v._surface._tilesToRender=[],F(m._tile)&&m._tile.renderable&&v._surface._tilesToRender.push(m._tile)):m.suspendUpdates=!1,!0}),this._filterTileSubscription=sr.getObservable(this,"filterTile").subscribe(function(){m.doFilterTile(),m._scene.requestRender()});function T(w){let E=m._scene.pick({x:w.position.x,y:w.position.y});F(E)&&(m.primitive=F(E.collection)?E.collection:E.primitive),m._scene.requestRender(),m.pickPrimitiveActive=!1}this._pickPrimitive=Il(function(){m.pickPrimitiveActive=!m.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=sr.getObservable(this,"pickPrimitiveActive").subscribe(function(w){w?y.setInputAction(T,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)});function S(w){let E,L=v.ellipsoid,I=m._scene.camera.getPickRay(w.position,A8i),R=v.pick(I,m._scene,M8i);if(F(R)){let P=L.cartesianToCartographic(R),A=v._surface.tileProvider._tilesToRenderByTextureCount;for(let M=0;!E&&M<A.length;++M){let V=A[M];if(F(V))for(let G=0;!E&&G<V.length;++G){let D=V[G];vi.contains(D.rectangle,P)&&(E=D)}}}m.tile=E,m.pickTileActive=!1}this._pickTile=Il(function(){m.pickTileActive=!m.pickTileActive}),this._pickTileActiveSubscription=sr.getObservable(this,"pickTileActive").subscribe(function(w){w?y.setInputAction(S,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)}),this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()})}Object.defineProperties(g$.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 Il(function(){o.tile=o.tile.parent})}},selectNW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northwestChild})}},selectNE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northeastChild})}},selectSW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southwestChild})}},selectSE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(o){let f=this._primitive;o!==f&&(this.hasPickedPrimitive=!0,F(f)&&(f.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,F(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(F(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;F(m)&&F(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}}});g$.prototype._update=function(){this.frustums&&(this.frustumStatisticText=R8i(this._scene.debugFrustumStatistics));let o=this._scene.numberOfFrustums;this._numberOfFrustums=o,this.depthFrustum=j1e(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}`};g$.prototype.isDestroyed=function(){return!1};g$.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(),yr(this)};var wDe=g$;function kde(o,f){o=Qh(o);let m=document.createElement("div"),x=new wDe(f,m);this._viewModel=x,this._container=o;let y=document.createElement("div");this._element=y;let v=document.createElement("div");v.textContent="Cesium Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleDropDown"),y.appendChild(v),y.className="cesium-cesiumInspector",y.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",y.appendChild(C);let T=sI.createSection,S=sI.createCheckbox,w=T(C,"General","generalVisible","toggleGeneral"),E=S("Show Frustums","frustums"),L=document.createElement("div");L.className="cesium-cesiumInspector-frustumStatistics",L.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),E.appendChild(L),w.appendChild(E),w.appendChild(S("Show Frustum Planes","frustumPlanes")),w.appendChild(S("Performance Display","performance")),m.className="cesium-cesiumInspector-performanceDisplay",w.appendChild(m);let I=document.createElement("div");I.className="cesium-cesiumInspector-shaderCache",I.setAttribute("data-bind","html: shaderCacheText"),w.appendChild(I);let R=document.createElement("div");w.appendChild(R);let P=document.createElement("span");P.setAttribute("data-bind",'html: " Frustum:"'),R.appendChild(P);let A=document.createElement("span");A.setAttribute("data-bind","text: depthFrustumText"),R.appendChild(A);let M=document.createElement("input");M.type="button",M.value="-",M.className="cesium-cesiumInspector-pickButton",M.setAttribute("data-bind","click: decrementDepthFrustum"),R.appendChild(M);let V=document.createElement("input");V.type="button",V.value="+",V.className="cesium-cesiumInspector-pickButton",V.setAttribute("data-bind","click: incrementDepthFrustum"),R.appendChild(V);let G=T(C,"Primitives","primitivesVisible","togglePrimitives"),D=document.createElement("div");D.className="cesium-cesiumInspector-pickSection",G.appendChild(D);let N=document.createElement("input");N.type="button",N.value="Pick a primitive",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let k=document.createElement("div");k.className="cesium-cesiumInspector-center",k.appendChild(N),D.appendChild(k),D.appendChild(S("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),D.appendChild(S("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=S("Show only selected","filterPrimitive","hasPickedPrimitive"),D.appendChild(this._primitiveOnly);let U=T(C,"Terrain","terrainVisible","toggleTerrain"),B=document.createElement("div");B.className="cesium-cesiumInspector-pickSection",U.appendChild(B);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'),k=document.createElement("div"),k.appendChild(Y),k.className="cesium-cesiumInspector-center",B.appendChild(k);let J=document.createElement("div");B.appendChild(J);let K=document.createElement("input");K.type="button",K.value="Parent",K.className="cesium-cesiumInspector-pickButton",K.setAttribute("data-bind","click: selectParent");let z=document.createElement("input");z.type="button",z.value="NW",z.className="cesium-cesiumInspector-pickButton",z.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 q=document.createElement("input");q.type="button",q.value="SW",q.className="cesium-cesiumInspector-pickButton",q.setAttribute("data-bind","click: selectSW");let O=document.createElement("input");O.type="button",O.value="SE",O.className="cesium-cesiumInspector-pickButton",O.setAttribute("data-bind","click: selectSE");let te=document.createElement("div");te.className="cesium-cesiumInspector-tileText",J.className="cesium-cesiumInspector-frustumStatistics",J.appendChild(te),J.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:",J.appendChild(ie);let re=document.createElement("table"),ee=document.createElement("tr"),ae=document.createElement("tr"),oe=document.createElement("td");oe.appendChild(K);let ce=document.createElement("td");ce.appendChild(z);let pe=document.createElement("td");pe.appendChild(j),ee.appendChild(oe),ee.appendChild(ce),ee.appendChild(pe);let ue=document.createElement("td"),he=document.createElement("td");he.appendChild(q);let fe=document.createElement("td");fe.appendChild(O),ae.appendChild(ue),ae.appendChild(he),ae.appendChild(fe),re.appendChild(ee),re.appendChild(ae),J.appendChild(re),B.appendChild(S("Show bounding volume","tileBoundingSphere","hasPickedTile")),B.appendChild(S("Show only selected","filterTile","hasPickedTile")),U.appendChild(S("Wireframe","wireframe")),U.appendChild(S("Suspend LOD update","suspendUpdates")),U.appendChild(S("Show tile coordinates","tileCoordinates")),sr.applyBindings(x,this._element)}Object.defineProperties(kde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kde.prototype.isDestroyed=function(){return!1};kde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var EDe=kde;function Ude(o,f){F(f)||(f=document.body),f=Qh(f);let m=this,x=sr.observable(km.fullscreen),y=sr.observable(km.enabled),v=f.ownerDocument;this.isFullscreen=void 0,sr.defineProperty(this,"isFullscreen",{get:function(){return x()}}),this.isFullscreenEnabled=void 0,sr.defineProperty(this,"isFullscreenEnabled",{get:function(){return y()},set:function(C){y(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?x()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=Il(function(){km.fullscreen?km.exitFullscreen():km.requestFullscreen(m._fullscreenElement)},sr.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=Qh(o)??v.body,this._callback=function(){x(km.fullscreen)},v.addEventListener(km.changeEventName,this._callback)}Object.defineProperties(Ude.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(o){this._fullscreenElement=o}},command:{get:function(){return this._command}}});Ude.prototype.isDestroyed=function(){return!1};Ude.prototype.destroy=function(){document.removeEventListener(km.changeEventName,this._callback),yr(this)};var LDe=Ude,V8i="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",G8i="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 Bde(o,f){o=Qh(o);let m=new LDe(f,o);m._exitFullScreenPath=G8i,m._enterFullScreenPath=V8i;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),sr.applyBindings(m,x),this._container=o,this._viewModel=m,this._element=x}Object.defineProperties(Bde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Bde.prototype.isDestroyed=function(){return!1};Bde.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var PDe=Bde,uqe=1e3;function AS(o){F(o.geocoderServices)?this._geocoderServices=o.geocoderServices:this._geocoderServices=[new Cde({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 Tr,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=hqe,this._handleArrowUp=cqe;let f=this;this._suggestionsVisible=sr.pureComputed(function(){let x=sr.getObservable(f,"_suggestions")().length>0,y=sr.getObservable(f,"_showSuggestions")();return x&&y}),this._searchCommand=Il(function(x){if(x=x??e$.SEARCH,f._focusTextbox=!1,F(f._selectedSuggestion))return f.activateSuggestion(f._selectedSuggestion),!1;if(f.hideSuggestions(),f.isSearchInProgress)O8i(f);else return W8i(f,f._geocoderServices,x)}),this.deselectSuggestion=function(){f._selectedSuggestion=void 0},this.handleKeyDown=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38;return(v||C)&&y.preventDefault(),!0},this.handleKeyUp=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38,T=y.key==="Enter"||y.keyCode===13;return C?cqe(f):v?hqe(f):T&&f._searchCommand(),!0},this.activateSuggestion=function(x){f.hideSuggestions(),f._searchText=x.displayName;let y=x.destination;Kgt(f),f.destinationFound(f,y)},this.hideSuggestions=function(){f._showSuggestions=!1,f._selectedSuggestion=void 0},this.showSuggestions=function(){f._showSuggestions=!0},this.handleMouseover=function(x,y){x!==f._selectedSuggestion&&(f._selectedSuggestion=x)},this.keepExpanded=!1,this.autoComplete=o.autocomplete??!0,this.destinationFound=o.destinationFound??AS.flyToDestination,this._focusTextbox=!1,sr.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let m=sr.getObservable(this,"_searchText");m.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=m.subscribe(function(){AS._updateSearchSuggestions(f)}),this.isSearchInProgress=void 0,sr.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,sr.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(x){this._searchText=x}}),this.flightDuration=void 0,sr.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(x){this._flightDuration=x}})}Object.defineProperties(AS.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}}});AS.prototype.destroy=function(){this._suggestionSubscription.dispose()};function cqe(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],AS._adjustSuggestionsScroll(o,m)}function hqe(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],AS._adjustSuggestionsScroll(o,m)}function F8i(o,f){let m=F(f)?f.availability:void 0;return F(m)?cR(f,[o]).then(function(x){return o=x[0],o.height+=uqe,o}):(o.height+=uqe,Promise.resolve(o))}function D8i(o,f){let m=o._scene,x=m.ellipsoid,y=m.camera,v=m.terrainProvider,C=f,T;return f instanceof vi?be.equalsEpsilon(f.south,f.north,be.EPSILON7)&&be.equalsEpsilon(f.east,f.west,be.EPSILON7)?f=vi.center(f):T=hhe(f,m):f=x.cartesianToCartographic(f),F(T)||(T=F8i(f,v)),T.then(function(S){C=x.cartographicToCartesian(S)}).finally(function(){y.flyTo({destination:C,complete:function(){o._complete.raiseEvent()},duration:o._flightDuration,endTransform:Ee.IDENTITY})})}async function N8i(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 W8i(o,f,m){let x=o._searchText;if(Ygt(x)){o.showSuggestions();return}o._isSearchInProgress=!0,o._wasGeocodeCancelled=!1;let y,v;for(y=0;y<f.length;y++){if(o._wasGeocodeCancelled)return;if(v=await N8i(f[y],x,m),F(v)&&v.state==="fulfilled"&&v.value.length>0)break}if(o._wasGeocodeCancelled)return;o._isSearchInProgress=!1,RDe(o);let C=v.value;if(v.state==="fulfilled"&&F(C)&&C.length>0){o._searchText=C[0].displayName,o.destinationFound(o,C[0].destination);let T=zgt(o,_de.getCreditsFromResult(C[0]));F(T)||IDe(o,f[y].credit);return}o._searchText=`${x} (not found)`}function IDe(o,f){F(f)&&!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&(o._scene.frameState.creditDisplay.addStaticCredit(f),o._previousCredits.push(f))}function zgt(o,f){return F(f)&&f.forEach(m=>IDe(o,m)),f}function RDe(o){!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&o._previousCredits.forEach(f=>{o._scene.frameState.creditDisplay.removeStaticCredit(f)}),o._previousCredits.length=0}function Z8i(o,f){let m=Qh(o._viewContainer),x=m.getElementsByClassName("search-results")[0],y=m.getElementsByTagName("li")[f];if(f===0){x.scrollTop=0;return}let v=y.offsetTop;v+y.clientHeight>x.clientHeight?x.scrollTop=v+y.clientHeight:v<x.scrollTop&&(x.scrollTop=v)}function O8i(o){o._isSearchInProgress&&(o._isSearchInProgress=!1,o._wasGeocodeCancelled=!0)}function Ygt(o){return/^\s*$/.test(o)}function Kgt(o){sr.getObservable(o,"_suggestions").removeAll()}async function X8i(o){if(!o.autoComplete)return;let f=o._searchText;if(Kgt(o),RDe(o),!Ygt(f))for(let m of o._geocoderServices){let x=await m.geocode(f,e$.AUTOCOMPLETE);if(o._suggestions=o._suggestions.concat(x),x.length>0){let y=!0;x.forEach(v=>{let C=_de.getCreditsFromResult(v);y=y&&!F(C),zgt(o,C)}),y&&IDe(o,m.credit)}if(o._suggestions.length>=5)return}}AS.flyToDestination=D8i;AS._updateSearchSuggestions=X8i;AS._adjustSuggestionsScroll=Z8i;AS.prototype.isDestroyed=function(){return!1};AS.prototype.destroy=function(){return RDe(this),yr(this)};var ADe=AS,k8i="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",U8i="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 Hde(o){let f=Qh(o.container),m=new ADe(o);m._startSearchPath=k8i,m._stopSearchPath=U8i;let x=document.createElement("form");x.setAttribute("data-bind","submit: search");let y=document.createElement("input");y.type="search",y.className="cesium-geocoder-input",y.setAttribute("placeholder","Enter an address or landmark..."),y.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(){y.select()},0)},y.addEventListener("focus",this._onTextBoxFocus,!1),x.appendChild(y),this._textBox=y;let v=document.createElement("span");v.className="cesium-geocoder-searchButton",v.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),x.appendChild(v),f.appendChild(x);let C=document.createElement("div");C.className="search-results",C.setAttribute("data-bind","visible: _suggestionsVisible");let T=document.createElement("ul");T.setAttribute("data-bind","foreach: _suggestions");let S=document.createElement("li");T.appendChild(S),S.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),C.appendChild(T),f.appendChild(C),sr.applyBindings(m,x),sr.applyBindings(m,C),this._container=f,this._searchSuggestionsContainer=C,this._viewModel=m,this._form=x,this._onInputBegin=function(w){let E=w.target;typeof w.composedPath=="function"&&(E=w.composedPath()[0]),f.contains(E)||(m._focusTextbox=!1,m.hideSuggestions())},this._onInputEnd=function(w){m._focusTextbox=!0,m.showSuggestions()},ia.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(Hde.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});Hde.prototype.isDestroyed=function(){return!1};Hde.prototype.destroy=function(){let o=this._container;return ia.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(),sr.cleanNode(this._form),sr.cleanNode(this._searchSuggestionsContainer),o.removeChild(this._form),o.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),yr(this)};var MDe=Hde;function Jgt(o,f){this._scene=o,this._duration=f;let m=this;this._command=Il(function(){m._scene.camera.flyHome(m._duration)}),this.tooltip="View Home",sr.track(this,["tooltip"])}Object.defineProperties(Jgt.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 VDe=Jgt;function zde(o,f,m){o=Qh(o);let x=new VDe(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 y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-home-button",y.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),o.appendChild(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(zde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});zde.prototype.isDestroyed=function(){return!1};zde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var GDe=zde;function B8i(o,f){f.currentTarget.parentElement.parentElement.querySelector(`#${o.name}-expander`).classList.toggle("active"),f.currentTarget.textContent=f.currentTarget.textContent==="+"?"-":"+"}function jgt(o,f){sr.track(o);for(let m=0;m<o.sublayers.length;m++)jgt(o.sublayers[m],f)}function wle(o){return o.modelName==="FullModel"}function Qgt(o){return o.modelName==="Overview"}function qgt(o){return Qgt(o)||wle(o)}function dqe(o,f){if(qgt(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:sr.observable(!1),index:f.sublayers.length};return f.topLayers.push(m),f.sublayers.push(o),m}}function H8i(o,f){if(qgt(o)){f.sublayers.forEach(x=>x.visibility=!1),f.sublayers[o.index].visibility=!0;let m=document.getElementById("bsl-wrapper");wle(o)?(f.currentLevel=f.selectedLevel,m.style.display="block"):(f.selectedLevel=f.currentLevel,f.currentLevel="All",m.style.display="none")}}async function z8i(o,f){try{let m=o.getAttributeNames();for(let x=0;x<m.length;x++)if(m[x]==="BldgLevel"){let y=o.getAttributeValues(m[x]);for(let v=0;v<y.length;v++)f.push(y[v])}f.sort((x,y)=>x-y),f.unshift("All")}catch(m){console.log(`There was an error getting attributes: ${m}`)}}function Y8i(o){let f=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:sr.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:sr.observable(!0),index:-1}],currentLayer:sr.observable(),expandClickHandler:B8i,setOptionDisable:function(x,y){sr.applyBindingsToNode(x,{disable:y.disable},y)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(x){H8i(x,f.viewModel)});let m=o.sublayers;for(let x=0;x<m.length;x++){jgt(m[x],this.viewModel);let y=dqe(m[x],this.viewModel);F(y)&&(Qgt(y)||!F(this.viewModel.defaultLayer)&&wle(y))&&(this.viewModel.defaultLayer=y)}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=dqe(x,this.viewModel),this.viewModel.currentLayer.subscribe(function(y){o.show=wle(y)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return z8i(o,this.levels),this.viewModel.currentLevel.subscribe(function(x){x!=="All"?o.filterByAttributes([{name:"BldgLevel",values:[x]}]):o.filterByAttributes()}),this.viewModel}var FDe=Y8i;function K8i(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)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileStyle();return!0};Ng.prototype._update=function(){let o=this._tileset;if(this.performance&&this._performanceDisplay.update(),F(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=N6(o,!1),this._pickStatisticsText=N6(o,!0),this._resourceCacheStatisticsText=Hgt())};Ng.prototype.isDestroyed=function(){return!1};Ng.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};Ng.getStatistics=N6;var TDe=Ng;function Xde(o,f){o=Qh(o);let m=document.createElement("div"),x=document.createElement("div");x.setAttribute("data-bind","visible: performance");let y=new TDe(f,x);this._viewModel=y,this._container=o,this._element=m;let v=document.createElement("div");v.textContent="3D Tiles Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleInspector"),m.appendChild(v),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 T=sI.createSection,S=sI.createCheckbox,w=sI.createRangeInput,E=sI.createButton,L=T(C,"Tileset","tilesetVisible","toggleTileset"),I=T(C,"Display","displayVisible","toggleDisplay"),R=T(C,"Update","updateVisible","toggleUpdate"),P=T(C,"Logging","loggingVisible","toggleLogging"),A=T(C,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),M=T(C,"Style","styleVisible","toggleStyle"),V=T(C,"Optimization","optimizationVisible","toggleOptimization"),G=document.createElement("div");G.className="field-group";let D=document.createElement("label");D.className="field-label",D.appendChild(document.createTextNode("Properties: "));let N=document.createElement("div");N.setAttribute("data-bind","text: properties"),G.appendChild(D),G.appendChild(N),L.appendChild(G),L.appendChild(E("Pick Tileset","togglePickTileset","pickActive")),L.appendChild(E("Trim Tiles Cache","trimTilesCache")),L.appendChild(S("Enable Picking","picking")),I.appendChild(S("Colorize","colorize"));let k=I.appendChild(S("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),U=document.createElement("p");U.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),U.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),U.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",k.appendChild(U),I.appendChild(S("Bounding Volumes","showBoundingVolumes")),I.appendChild(S("Content Volumes","showContentBoundingVolumes")),I.appendChild(S("Request Volumes","showRequestVolumes")),I.appendChild(S("Point Cloud Shading","pointCloudShading"));let B=document.createElement("div");B.setAttribute("data-bind","visible: pointCloudShading"),B.appendChild(w("Geometric Error Scale","geometricErrorScale",0,2,.01)),B.appendChild(w("Maximum Attenuation","maximumAttenuation",0,32,1)),B.appendChild(w("Base Resolution","baseResolution",0,1,.01)),B.appendChild(S("Eye Dome Lighting (EDL)","eyeDomeLighting")),I.appendChild(B);let Y=document.createElement("div");Y.setAttribute("data-bind","visible: eyeDomeLighting"),Y.appendChild(w("EDL Strength","eyeDomeLightingStrength",0,2,.1)),Y.appendChild(w("EDL Radius","eyeDomeLightingRadius",0,4,.1)),B.appendChild(Y),R.appendChild(S("Freeze Frame","freezeFrame")),R.appendChild(S("Dynamic Screen Space Error","dynamicScreenSpaceError"));let J=document.createElement("div");J.appendChild(w("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),R.appendChild(J);let K=document.createElement("div");K.setAttribute("data-bind","visible: dynamicScreenSpaceError"),K.appendChild(w("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),K.appendChild(w("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),R.appendChild(K),P.appendChild(S("Performance","performance")),P.appendChild(x),P.appendChild(S("Statistics","showStatistics"));let z=document.createElement("div");z.className="cesium-3dTilesInspector-statistics",z.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),P.appendChild(z),P.appendChild(S("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(S("Resource Cache Statistics","showResourceCacheStatistics"));let q=document.createElement("div");q.className="cesium-3dTilesInspector-statistics",q.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),P.appendChild(q);let O=document.createElement("div");M.appendChild(O),O.appendChild(document.createTextNode("Color Blend Mode: "));let te=document.createElement("select");te.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),O.appendChild(te);let ie=document.createElement("textarea");ie.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),O.className="cesium-cesiumInspector-styleEditor",O.appendChild(ie);let re=E("Compile (Ctrl+Enter)","compileStyle");O.appendChild(re);let ee=document.createElement("div");ee.className="cesium-cesiumInspector-error",ee.setAttribute("data-bind","text: editorError"),O.appendChild(ee),A.appendChild(S("Show Picked Only","showOnlyPickedTileDebugLabel")),A.appendChild(S("Geometric Error","showGeometricError")),A.appendChild(S("Rendering Statistics","showRenderingStatistics")),A.appendChild(S("Memory Usage (MB)","showMemoryUsage")),A.appendChild(S("Url","showUrl")),V.appendChild(S("Skip Tile LODs","skipLevelOfDetail"));let ae=document.createElement("div");ae.appendChild(w("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),V.appendChild(ae);let oe=document.createElement("div");oe.appendChild(w("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),V.appendChild(oe);let ce=document.createElement("div");ce.appendChild(w("Min. levels to skip","skipLevels",0,10,1)),V.appendChild(ce),V.appendChild(S("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),V.appendChild(S("Load siblings of visible tiles","loadSiblings")),sr.applyBindings(y,m)}Object.defineProperties(Xde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Xde.prototype.isDestroyed=function(){return!1};Xde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var SDe=Xde;function R8i(o){let f;if(F(o)){f="Command Statistics";let m=o.commandsInFrustums;for(let x in m)if(m.hasOwnProperty(x)){let y=parseInt(x,10),v;if(y===7)v="1, 2 and 3";else{let C=[];for(let T=2;T>=0;T--){let S=Math.pow(2,T);y>=S&&(C.push(T+1),y-=S)}v=C.reverse().join(" and ")}f+=`<br> ${m[x]} in frustum ${v}`}f+=`<br>Total: ${o.totalCommands}`}return f}function j1e(o,f,m){let x=Math.min(m,f);return x=Math.max(x,o),x}var A8i=new Ma,M8i=new Z;function g$(o,f){let m=this,x=o.canvas,y=new Lr(x);this._eventHandler=y,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 v=this._scene.globe;v.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="",sr.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=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._toggleGeneral=Il(function(){m.generalVisible=!m.generalVisible}),this._togglePrimitives=Il(function(){m.primitivesVisible=!m.primitivesVisible}),this._toggleTerrain=Il(function(){m.terrainVisible=!m.terrainVisible}),this._frustumsSubscription=sr.getObservable(this,"frustums").subscribe(function(w){m._scene.debugShowFrustums=w,m._scene.requestRender()}),this._frustumPlanesSubscription=sr.getObservable(this,"frustumPlanes").subscribe(function(w){m._scene.debugShowFrustumPlanes=w,m._scene.requestRender()}),this._performanceSubscription=sr.getObservable(this,"performance").subscribe(function(w){w?m._performanceDisplay=new Fq({container:m._performanceContainer}):m._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=Il(function(){return m._primitive.debugShowBoundingVolume=m.primitiveBoundingSphere,m._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=sr.getObservable(this,"primitiveBoundingSphere").subscribe(function(){m._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=Il(function(){if(m.primitiveReferenceFrame){let w=m._primitive.modelMatrix;m._modelMatrixPrimitive=new LFe({modelMatrix:w}),m._scene.primitives.add(m._modelMatrixPrimitive)}else F(m._modelMatrixPrimitive)&&(m._scene.primitives.remove(m._modelMatrixPrimitive),m._modelMatrixPrimitive=void 0);return m._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=sr.getObservable(this,"primitiveReferenceFrame").subscribe(function(){m._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=Il(function(){return m.filterPrimitive?m._scene.debugCommandFilter=function(w){return F(m._modelMatrixPrimitive)&&w.owner===m._modelMatrixPrimitive._primitive?!0:F(m._primitive)?w.owner===m._primitive||w.owner===m._primitive._billboardCollection||w.owner.primitive===m._primitive:!1}:m._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=sr.getObservable(this,"filterPrimitive").subscribe(function(){m._doFilterPrimitive(),m._scene.requestRender()}),this._wireframeSubscription=sr.getObservable(this,"wireframe").subscribe(function(w){v._surface.tileProvider._debug.wireframe=w,m._scene.requestRender()}),this._depthFrustumSubscription=sr.getObservable(this,"depthFrustum").subscribe(function(w){m._scene.debugShowDepthFrustum=w,m._scene.requestRender()}),this._incrementDepthFrustum=Il(function(){let w=m.depthFrustum+1;return m.depthFrustum=j1e(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._decrementDepthFrustum=Il(function(){let w=m.depthFrustum-1;return m.depthFrustum=j1e(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._suspendUpdatesSubscription=sr.getObservable(this,"suspendUpdates").subscribe(function(w){v._surface._debug.suspendLodUpdate=w,w||(m.filterTile=!1)});let C;this._showTileCoordinates=Il(function(){return m.tileCoordinates&&!F(C)?C=o.imageryLayers.addImageryProvider(new l$({tilingScheme:o.terrainProvider.tilingScheme})):!m.tileCoordinates&&F(C)&&(o.imageryLayers.remove(C),C=void 0),!0}),this._tileCoordinatesSubscription=sr.getObservable(this,"tileCoordinates").subscribe(function(){m._showTileCoordinates(),m._scene.requestRender()}),this._tileBoundingSphereSubscription=sr.getObservable(this,"tileBoundingSphere").subscribe(function(){m._showTileBoundingSphere(),m._scene.requestRender()}),this._showTileBoundingSphere=Il(function(){return m.tileBoundingSphere?v._surface.tileProvider._debug.boundingSphereTile=m._tile:v._surface.tileProvider._debug.boundingSphereTile=void 0,m._scene.requestRender(),!0}),this._doFilterTile=Il(function(){return m.filterTile?(m.suspendUpdates=!0,v._surface._tilesToRender=[],F(m._tile)&&m._tile.renderable&&v._surface._tilesToRender.push(m._tile)):m.suspendUpdates=!1,!0}),this._filterTileSubscription=sr.getObservable(this,"filterTile").subscribe(function(){m.doFilterTile(),m._scene.requestRender()});function T(w){let E=m._scene.pick({x:w.position.x,y:w.position.y});F(E)&&(m.primitive=F(E.collection)?E.collection:E.primitive),m._scene.requestRender(),m.pickPrimitiveActive=!1}this._pickPrimitive=Il(function(){m.pickPrimitiveActive=!m.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=sr.getObservable(this,"pickPrimitiveActive").subscribe(function(w){w?y.setInputAction(T,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)});function S(w){let E,L=v.ellipsoid,I=m._scene.camera.getPickRay(w.position,A8i),R=v.pick(I,m._scene,M8i);if(F(R)){let P=L.cartesianToCartographic(R),A=v._surface.tileProvider._tilesToRenderByTextureCount;for(let M=0;!E&&M<A.length;++M){let V=A[M];if(F(V))for(let G=0;!E&&G<V.length;++G){let D=V[G];vi.contains(D.rectangle,P)&&(E=D)}}}m.tile=E,m.pickTileActive=!1}this._pickTile=Il(function(){m.pickTileActive=!m.pickTileActive}),this._pickTileActiveSubscription=sr.getObservable(this,"pickTileActive").subscribe(function(w){w?y.setInputAction(S,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)}),this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()})}Object.defineProperties(g$.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 Il(function(){o.tile=o.tile.parent})}},selectNW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northwestChild})}},selectNE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northeastChild})}},selectSW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southwestChild})}},selectSE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(o){let f=this._primitive;o!==f&&(this.hasPickedPrimitive=!0,F(f)&&(f.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,F(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(F(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;F(m)&&F(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}}});g$.prototype._update=function(){this.frustums&&(this.frustumStatisticText=R8i(this._scene.debugFrustumStatistics));let o=this._scene.numberOfFrustums;this._numberOfFrustums=o,this.depthFrustum=j1e(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}`};g$.prototype.isDestroyed=function(){return!1};g$.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(),yr(this)};var wDe=g$;function kde(o,f){o=Qh(o);let m=document.createElement("div"),x=new wDe(f,m);this._viewModel=x,this._container=o;let y=document.createElement("div");this._element=y;let v=document.createElement("div");v.textContent="Cesium Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleDropDown"),y.appendChild(v),y.className="cesium-cesiumInspector",y.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",y.appendChild(C);let T=sI.createSection,S=sI.createCheckbox,w=T(C,"General","generalVisible","toggleGeneral"),E=S("Show Frustums","frustums"),L=document.createElement("div");L.className="cesium-cesiumInspector-frustumStatistics",L.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),E.appendChild(L),w.appendChild(E),w.appendChild(S("Show Frustum Planes","frustumPlanes")),w.appendChild(S("Performance Display","performance")),m.className="cesium-cesiumInspector-performanceDisplay",w.appendChild(m);let I=document.createElement("div");I.className="cesium-cesiumInspector-shaderCache",I.setAttribute("data-bind","html: shaderCacheText"),w.appendChild(I);let R=document.createElement("div");w.appendChild(R);let P=document.createElement("span");P.setAttribute("data-bind",'html: " Frustum:"'),R.appendChild(P);let A=document.createElement("span");A.setAttribute("data-bind","text: depthFrustumText"),R.appendChild(A);let M=document.createElement("input");M.type="button",M.value="-",M.className="cesium-cesiumInspector-pickButton",M.setAttribute("data-bind","click: decrementDepthFrustum"),R.appendChild(M);let V=document.createElement("input");V.type="button",V.value="+",V.className="cesium-cesiumInspector-pickButton",V.setAttribute("data-bind","click: incrementDepthFrustum"),R.appendChild(V);let G=T(C,"Primitives","primitivesVisible","togglePrimitives"),D=document.createElement("div");D.className="cesium-cesiumInspector-pickSection",G.appendChild(D);let N=document.createElement("input");N.type="button",N.value="Pick a primitive",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let k=document.createElement("div");k.className="cesium-cesiumInspector-center",k.appendChild(N),D.appendChild(k),D.appendChild(S("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),D.appendChild(S("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=S("Show only selected","filterPrimitive","hasPickedPrimitive"),D.appendChild(this._primitiveOnly);let U=T(C,"Terrain","terrainVisible","toggleTerrain"),B=document.createElement("div");B.className="cesium-cesiumInspector-pickSection",U.appendChild(B);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'),k=document.createElement("div"),k.appendChild(Y),k.className="cesium-cesiumInspector-center",B.appendChild(k);let J=document.createElement("div");B.appendChild(J);let K=document.createElement("input");K.type="button",K.value="Parent",K.className="cesium-cesiumInspector-pickButton",K.setAttribute("data-bind","click: selectParent");let z=document.createElement("input");z.type="button",z.value="NW",z.className="cesium-cesiumInspector-pickButton",z.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 q=document.createElement("input");q.type="button",q.value="SW",q.className="cesium-cesiumInspector-pickButton",q.setAttribute("data-bind","click: selectSW");let O=document.createElement("input");O.type="button",O.value="SE",O.className="cesium-cesiumInspector-pickButton",O.setAttribute("data-bind","click: selectSE");let te=document.createElement("div");te.className="cesium-cesiumInspector-tileText",J.className="cesium-cesiumInspector-frustumStatistics",J.appendChild(te),J.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:",J.appendChild(ie);let re=document.createElement("table"),ee=document.createElement("tr"),ae=document.createElement("tr"),oe=document.createElement("td");oe.appendChild(K);let ce=document.createElement("td");ce.appendChild(z);let pe=document.createElement("td");pe.appendChild(j),ee.appendChild(oe),ee.appendChild(ce),ee.appendChild(pe);let ue=document.createElement("td"),he=document.createElement("td");he.appendChild(q);let fe=document.createElement("td");fe.appendChild(O),ae.appendChild(ue),ae.appendChild(he),ae.appendChild(fe),re.appendChild(ee),re.appendChild(ae),J.appendChild(re),B.appendChild(S("Show bounding volume","tileBoundingSphere","hasPickedTile")),B.appendChild(S("Show only selected","filterTile","hasPickedTile")),U.appendChild(S("Wireframe","wireframe")),U.appendChild(S("Suspend LOD update","suspendUpdates")),U.appendChild(S("Show tile coordinates","tileCoordinates")),sr.applyBindings(x,this._element)}Object.defineProperties(kde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kde.prototype.isDestroyed=function(){return!1};kde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var EDe=kde,uqe=1e3;function AS(o){F(o.geocoderServices)?this._geocoderServices=o.geocoderServices:this._geocoderServices=[new Cde({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 Tr,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=hqe,this._handleArrowUp=cqe;let f=this;this._suggestionsVisible=sr.pureComputed(function(){let x=sr.getObservable(f,"_suggestions")().length>0,y=sr.getObservable(f,"_showSuggestions")();return x&&y}),this._searchCommand=Il(function(x){if(x=x??e$.SEARCH,f._focusTextbox=!1,F(f._selectedSuggestion))return f.activateSuggestion(f._selectedSuggestion),!1;if(f.hideSuggestions(),f.isSearchInProgress)W8i(f);else return D8i(f,f._geocoderServices,x)}),this.deselectSuggestion=function(){f._selectedSuggestion=void 0},this.handleKeyDown=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38;return(v||C)&&y.preventDefault(),!0},this.handleKeyUp=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38,T=y.key==="Enter"||y.keyCode===13;return C?cqe(f):v?hqe(f):T&&f._searchCommand(),!0},this.activateSuggestion=function(x){f.hideSuggestions(),f._searchText=x.displayName;let y=x.destination;Kgt(f),f.destinationFound(f,y)},this.hideSuggestions=function(){f._showSuggestions=!1,f._selectedSuggestion=void 0},this.showSuggestions=function(){f._showSuggestions=!0},this.handleMouseover=function(x,y){x!==f._selectedSuggestion&&(f._selectedSuggestion=x)},this.keepExpanded=!1,this.autoComplete=o.autocomplete??!0,this.destinationFound=o.destinationFound??AS.flyToDestination,this._focusTextbox=!1,sr.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let m=sr.getObservable(this,"_searchText");m.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=m.subscribe(function(){AS._updateSearchSuggestions(f)}),this.isSearchInProgress=void 0,sr.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,sr.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(x){this._searchText=x}}),this.flightDuration=void 0,sr.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(x){this._flightDuration=x}})}Object.defineProperties(AS.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}}});AS.prototype.destroy=function(){this._suggestionSubscription.dispose()};function cqe(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],AS._adjustSuggestionsScroll(o,m)}function hqe(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],AS._adjustSuggestionsScroll(o,m)}function V8i(o,f){let m=F(f)?f.availability:void 0;return F(m)?cR(f,[o]).then(function(x){return o=x[0],o.height+=uqe,o}):(o.height+=uqe,Promise.resolve(o))}function G8i(o,f){let m=o._scene,x=m.ellipsoid,y=m.camera,v=m.terrainProvider,C=f,T;return f instanceof vi?be.equalsEpsilon(f.south,f.north,be.EPSILON7)&&be.equalsEpsilon(f.east,f.west,be.EPSILON7)?f=vi.center(f):T=hhe(f,m):f=x.cartesianToCartographic(f),F(T)||(T=V8i(f,v)),T.then(function(S){C=x.cartographicToCartesian(S)}).finally(function(){y.flyTo({destination:C,complete:function(){o._complete.raiseEvent()},duration:o._flightDuration,endTransform:Ee.IDENTITY})})}async function F8i(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 D8i(o,f,m){let x=o._searchText;if(Ygt(x)){o.showSuggestions();return}o._isSearchInProgress=!0,o._wasGeocodeCancelled=!1;let y,v;for(y=0;y<f.length;y++){if(o._wasGeocodeCancelled)return;if(v=await F8i(f[y],x,m),F(v)&&v.state==="fulfilled"&&v.value.length>0)break}if(o._wasGeocodeCancelled)return;o._isSearchInProgress=!1,PDe(o);let C=v.value;if(v.state==="fulfilled"&&F(C)&&C.length>0){o._searchText=C[0].displayName,o.destinationFound(o,C[0].destination);let T=zgt(o,_de.getCreditsFromResult(C[0]));F(T)||LDe(o,f[y].credit);return}o._searchText=`${x} (not found)`}function LDe(o,f){F(f)&&!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&(o._scene.frameState.creditDisplay.addStaticCredit(f),o._previousCredits.push(f))}function zgt(o,f){return F(f)&&f.forEach(m=>LDe(o,m)),f}function PDe(o){!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&o._previousCredits.forEach(f=>{o._scene.frameState.creditDisplay.removeStaticCredit(f)}),o._previousCredits.length=0}function N8i(o,f){let m=Qh(o._viewContainer),x=m.getElementsByClassName("search-results")[0],y=m.getElementsByTagName("li")[f];if(f===0){x.scrollTop=0;return}let v=y.offsetTop;v+y.clientHeight>x.clientHeight?x.scrollTop=v+y.clientHeight:v<x.scrollTop&&(x.scrollTop=v)}function W8i(o){o._isSearchInProgress&&(o._isSearchInProgress=!1,o._wasGeocodeCancelled=!0)}function Ygt(o){return/^\s*$/.test(o)}function Kgt(o){sr.getObservable(o,"_suggestions").removeAll()}async function Z8i(o){if(!o.autoComplete)return;let f=o._searchText;if(Kgt(o),PDe(o),!Ygt(f))for(let m of o._geocoderServices){let x=await m.geocode(f,e$.AUTOCOMPLETE);if(o._suggestions=o._suggestions.concat(x),x.length>0){let y=!0;x.forEach(v=>{let C=_de.getCreditsFromResult(v);y=y&&!F(C),zgt(o,C)}),y&&LDe(o,m.credit)}if(o._suggestions.length>=5)return}}AS.flyToDestination=G8i;AS._updateSearchSuggestions=Z8i;AS._adjustSuggestionsScroll=N8i;AS.prototype.isDestroyed=function(){return!1};AS.prototype.destroy=function(){return PDe(this),yr(this)};var IDe=AS,O8i="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",X8i="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 Ude(o){let f=Qh(o.container),m=new IDe(o);m._startSearchPath=O8i,m._stopSearchPath=X8i;let x=document.createElement("form");x.setAttribute("data-bind","submit: search");let y=document.createElement("input");y.type="search",y.className="cesium-geocoder-input",y.setAttribute("placeholder","Enter an address or landmark..."),y.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(){y.select()},0)},y.addEventListener("focus",this._onTextBoxFocus,!1),x.appendChild(y),this._textBox=y;let v=document.createElement("span");v.className="cesium-geocoder-searchButton",v.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),x.appendChild(v),f.appendChild(x);let C=document.createElement("div");C.className="search-results",C.setAttribute("data-bind","visible: _suggestionsVisible");let T=document.createElement("ul");T.setAttribute("data-bind","foreach: _suggestions");let S=document.createElement("li");T.appendChild(S),S.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),C.appendChild(T),f.appendChild(C),sr.applyBindings(m,x),sr.applyBindings(m,C),this._container=f,this._searchSuggestionsContainer=C,this._viewModel=m,this._form=x,this._onInputBegin=function(w){let E=w.target;typeof w.composedPath=="function"&&(E=w.composedPath()[0]),f.contains(E)||(m._focusTextbox=!1,m.hideSuggestions())},this._onInputEnd=function(w){m._focusTextbox=!0,m.showSuggestions()},ia.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(Ude.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});Ude.prototype.isDestroyed=function(){return!1};Ude.prototype.destroy=function(){let o=this._container;return ia.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(),sr.cleanNode(this._form),sr.cleanNode(this._searchSuggestionsContainer),o.removeChild(this._form),o.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),yr(this)};var RDe=Ude;function Jgt(o,f){this._scene=o,this._duration=f;let m=this;this._command=Il(function(){m._scene.camera.flyHome(m._duration)}),this.tooltip="View Home",sr.track(this,["tooltip"])}Object.defineProperties(Jgt.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 ADe=Jgt;function Bde(o,f,m){o=Qh(o);let x=new ADe(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 y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-home-button",y.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),o.appendChild(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(Bde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Bde.prototype.isDestroyed=function(){return!1};Bde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var MDe=Bde;function k8i(o,f){f.currentTarget.parentElement.parentElement.querySelector(`#${o.name}-expander`).classList.toggle("active"),f.currentTarget.textContent=f.currentTarget.textContent==="+"?"-":"+"}function jgt(o,f){sr.track(o);for(let m=0;m<o.sublayers.length;m++)jgt(o.sublayers[m],f)}function wle(o){return o.modelName==="FullModel"}function Qgt(o){return o.modelName==="Overview"}function qgt(o){return Qgt(o)||wle(o)}function dqe(o,f){if(qgt(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:sr.observable(!1),index:f.sublayers.length};return f.topLayers.push(m),f.sublayers.push(o),m}}function U8i(o,f){if(qgt(o)){f.sublayers.forEach(x=>x.visibility=!1),f.sublayers[o.index].visibility=!0;let m=document.getElementById("bsl-wrapper");wle(o)?(f.currentLevel=f.selectedLevel,m.style.display="block"):(f.selectedLevel=f.currentLevel,f.currentLevel="All",m.style.display="none")}}async function B8i(o,f){try{let m=o.getAttributeNames();for(let x=0;x<m.length;x++)if(m[x]==="BldgLevel"){let y=o.getAttributeValues(m[x]);for(let v=0;v<y.length;v++)f.push(y[v])}f.sort((x,y)=>x-y),f.unshift("All")}catch(m){console.log(`There was an error getting attributes: ${m}`)}}function H8i(o){let f=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:sr.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:sr.observable(!0),index:-1}],currentLayer:sr.observable(),expandClickHandler:k8i,setOptionDisable:function(x,y){sr.applyBindingsToNode(x,{disable:y.disable},y)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(x){U8i(x,f.viewModel)});let m=o.sublayers;for(let x=0;x<m.length;x++){jgt(m[x],this.viewModel);let y=dqe(m[x],this.viewModel);F(y)&&(Qgt(y)||!F(this.viewModel.defaultLayer)&&wle(y))&&(this.viewModel.defaultLayer=y)}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=dqe(x,this.viewModel),this.viewModel.currentLayer.subscribe(function(y){o.show=wle(y)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return B8i(o,this.levels),this.viewModel.currentLevel.subscribe(function(x){x!=="All"?o.filterByAttributes([{name:"BldgLevel",values:[x]}]):o.filterByAttributes()}),this.viewModel}var VDe=H8i;function z8i(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" @@ -23751,11 +23834,11 @@ </li> </ul> </ul> - </div>`,m.appendChild(x);let y=new FDe(f);sr.track(y),sr.applyBindings(y,m),F(y.defaultLayer)&&(y.currentLayer=y.defaultLayer)}var $gt=K8i,J8i="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",j8i="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 DDe(){this._cameraClicked=new Tr,this._closeClicked=new Tr,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",sr.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,sr.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?j8i:J8i}}),sr.defineProperty(this,"_bodyless",{get:function(){return!F(this.description)||this.description.length===0}})}DDe.prototype.maxHeightOffset=function(o){return`${this.maxHeight-o}px`};Object.defineProperties(DDe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var NDe=DDe;function Yde(o){o=Qh(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 y=document.createElement("button");y.type="button",y.className="cesium-infoBox-close",y.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),y.innerHTML="×",f.appendChild(y);let v=document.createElement("iframe");v.className="cesium-infoBox-iframe",v.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),v.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),v.setAttribute("allowfullscreen",!0),f.appendChild(v);let C=new NDe;sr.applyBindings(C,f),this._container=o,this._element=f,this._frame=v,this._viewModel=C,this._descriptionSubscription=void 0;let T=this;v.addEventListener("load",function(){let S=v.contentDocument,w=S.createElement("link");w.href=oa("Widgets/InfoBox/InfoBoxDescription.css"),w.rel="stylesheet",w.type="text/css";let E=S.createElement("div");E.className="cesium-infoBox-description",S.head.appendChild(w),S.body.appendChild(E),T._descriptionSubscription=Eb(C,"description",function(L){v.style.height="5px",E.innerHTML=L;let I=null,R=E.firstElementChild;if(R!==null&&E.childNodes.length===1){let A=window.getComputedStyle(R);if(A!==null){let M=A["background-color"],V=Xe.fromCssColorString(M);F(V)&&V.alpha!==0&&(I=A["background-color"])}}f.style["background-color"]=I;let P=E.getBoundingClientRect().height;v.style.height=`${P}px`})}),v.setAttribute("src","about:blank")}Object.defineProperties(Yde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});Yde.prototype.isDestroyed=function(){return!1};Yde.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),F(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),yr(this)};var WDe=Yde;function eyt(){this.showInstructions=!1;let o=this;this._command=Il(function(){o.showInstructions=!o.showInstructions}),this._showClick=Il(function(){o._touch=!1}),this._showTouch=Il(function(){o._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",sr.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(eyt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var ZDe=eyt;function Kde(o){let f=Qh(o.container),m=new ZDe,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 y=document.createElement("span");y.className="cesium-navigationHelpButton-wrapper",f.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",v.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),y.appendChild(v);let C=document.createElement("div");C.className="cesium-navigation-help",C.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),y.appendChild(C);let T=document.createElement("button");T.type="button",T.className="cesium-navigation-button cesium-navigation-button-left",T.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let S=document.createElement("img");S.src=oa("Widgets/Images/NavigationHelp/Mouse.svg"),S.className="cesium-navigation-button-icon",S.style.width="25px",S.style.height="25px",T.appendChild(S),T.appendChild(document.createTextNode("Mouse"));let w=document.createElement("button");w.type="button",w.className="cesium-navigation-button cesium-navigation-button-right",w.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let E=document.createElement("img");E.src=oa("Widgets/Images/NavigationHelp/Touch.svg"),E.className="cesium-navigation-button-icon",E.style.width="25px",E.style.height="25px",w.appendChild(E),w.appendChild(document.createTextNode("Touch")),C.appendChild(T),C.appendChild(w);let L=document.createElement("div");L.className="cesium-click-navigation-help cesium-navigation-help-instructions",L.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),L.innerHTML=` <table> <tr> <td><img src="${oa("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="${oa("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="${oa("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(L);let I=document.createElement("div");I.className="cesium-touch-navigation-help cesium-navigation-help-instructions",I.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),I.innerHTML=` <table> <tr> <td><img src="${oa("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="${oa("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="${oa("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="${oa("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(I),sr.applyBindings(m,y),this._container=f,this._viewModel=m,this._wrapper=y,this._closeInstructions=function(R){y.contains(R.target)||(m.showInstructions=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(Kde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Kde.prototype.isDestroyed=function(){return!1};Kde.prototype.destroy=function(){return ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var ODe=Kde;function Jde(o){this._scene=o,this._orthographic=o.camera.frustum instanceof $a,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=o.mode,sr.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let f=this;sr.defineProperty(this,"selectedTooltip",function(){return f._orthographic?f.tooltipOrthographic:f.tooltipPerspective}),this._toggleDropDown=Il(function(){f.sceneMode===gi.SCENE2D||f._flightInProgress||(f.dropDownVisible=!f.dropDownVisible)}),this._eventHelper=new bv,this._eventHelper.add(o.morphComplete,function(m,x,y,v){f.sceneMode=y,f._orthographic=y===gi.SCENE2D||f._scene.camera.frustum instanceof $a}),this._eventHelper.add(o.preRender,function(){f._flightInProgress=F(o.camera._currentFlight)}),this._switchToPerspective=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToPerspectiveFrustum(),f._orthographic=!1,f.dropDownVisible=!1)}),this._switchToOrthographic=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToOrthographicFrustum(),f._orthographic=!0,f.dropDownVisible=!1)}),this._sceneMode=gi}Object.defineProperties(Jde.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}}});Jde.prototype.isDestroyed=function(){return!1};Jde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var XDe=Jde,Q8i="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",q8i="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 jde(o,f){o=Qh(o);let m=new XDe(f);m._perspectivePath=Q8i,m._orthographicPath=q8i;let x=document.createElement("span");x.className="cesium-projectionPicker-wrapper cesium-toolbar-button",o.appendChild(x);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button",y.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'),y.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(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",v.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(v);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),sr.applyBindings(m,x),this._viewModel=m,this._container=o,this._wrapper=x,this._closeDropDown=function(T){x.contains(T.target)||(m.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(jde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});jde.prototype.isDestroyed=function(){return!1};jde.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var kDe=jde;function UDe(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,sr.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let f=this;this._dismissMessage=Il(function(){f.showingLowFrameRateMessage=!1,f.lowFrameRateMessageDismissed=!0});let m=PFe.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(UDe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});UDe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),yr(this)};var BDe=UDe;function Qde(o){let f=Qh(o.container),m=new BDe(o),x=document.createElement("div");x.className="cesium-performance-watchdog-message-area",x.setAttribute("data-bind","visible: showingLowFrameRateMessage");let y=document.createElement("button");y.setAttribute("type","button"),y.className="cesium-performance-watchdog-message-dismiss",y.innerHTML="×",y.setAttribute("data-bind","click: dismissMessage"),x.appendChild(y);let v=document.createElement("div");v.className="cesium-performance-watchdog-message",v.setAttribute("data-bind","html: lowFrameRateMessage"),x.appendChild(v),f.appendChild(x),sr.applyBindings(m,x),this._container=f,this._viewModel=m,this._element=x}Object.defineProperties(Qde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Qde.prototype.isDestroyed=function(){return!1};Qde.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var HDe=Qde;function qde(o,f){this._scene=o;let m=this,x=function(y,v,C,T){m.sceneMode=C,m.dropDownVisible=!1};this._eventHelper=new bv,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",sr.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,sr.defineProperty(this,"selectedTooltip",function(){let y=m.sceneMode;return y===gi.SCENE2D?m.tooltip2D:y===gi.SCENE3D?m.tooltip3D:m.tooltipColumbusView}),this._toggleDropDown=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._morphTo2D=Il(function(){o.morphTo2D(m._duration)}),this._morphTo3D=Il(function(){o.morphTo3D(m._duration)}),this._morphToColumbusView=Il(function(){o.morphToColumbusView(m._duration)}),this._sceneMode=gi}Object.defineProperties(qde.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}}});qde.prototype.isDestroyed=function(){return!1};qde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var zDe=qde,$8i="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",eji="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",tji="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 $de(o,f,m){o=Qh(o);let x=new zDe(f,m);x._globePath=$8i,x._flatMapPath=eji,x._columbusViewPath=tji;let y=document.createElement("span");y.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",o.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button",v.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'),v.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 -->',y.appendChild(v);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 }'),y.appendChild(C);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.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),y.appendChild(T);let S=document.createElement("button");S.type="button",S.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",S.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 }'),y.appendChild(S),sr.applyBindings(x,y),this._viewModel=x,this._container=o,this._wrapper=y,this._closeDropDown=function(w){y.contains(w.target)||(x.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties($de.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});$de.prototype.isDestroyed=function(){return!1};$de.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var YDe=$de,iji=new rt,Ele="-1000px";function y$(o,f,m){this._scene=o,this._screenPositionX=Ele,this._screenPositionY=Ele,this._tweens=o.tweens,this._container=m??document.body,this._selectionIndicatorElement=f,this._scale=1,this.position=void 0,this.showSelection=!1,sr.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,sr.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&F(this.position)}}),sr.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(x,y){return Ca.worldToWindowCoordinates(o,x,y)}}y$.prototype.update=function(){if(this.showSelection&&F(this.position)){let o=this.computeScreenSpacePosition(this.position,iji);if(!F(o))this._screenPositionX=Ele,this._screenPositionY=Ele;else{let f=this._container,m=f.parentNode.clientWidth,x=f.parentNode.clientHeight,y=this._selectionIndicatorElement.clientWidth,v=y*.5;o.x=Math.min(Math.max(o.x,-y),m+y)-v,o.y=Math.min(Math.max(o.y,-y),x+y)-v,this._screenPositionX=`${Math.floor(o.x+.25)}px`,this._screenPositionY=`${Math.floor(o.y+.25)}px`}}};y$.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};y$.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};Object.defineProperties(y$.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var KDe=y$;function e0e(o,f){o=Qh(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",y="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",v=document.createElementNS(x,"svg:svg");v.setAttribute("width",160),v.setAttribute("height",160),v.setAttribute("viewBox","0 0 160 160");let C=document.createElementNS(x,"g");C.setAttribute("transform","translate(80,80)"),v.appendChild(C);let T=document.createElementNS(x,"path");T.setAttribute("data-bind","attr: { transform: _transform }"),T.setAttribute("d",y),C.appendChild(T),m.appendChild(v);let S=new KDe(f,this._element,this._container);this._viewModel=S,sr.applyBindings(this._viewModel,this._element)}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(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),yr(this)};var JDe=e0e;function BO(o,f,m){this._color=o,this._height=f,this._base=m??0}BO.prototype.getHeight=function(){return this._height};BO.prototype.getBase=function(){return this._base};BO.prototype.getStartTime=function(){return this._start};BO.prototype.getStopTime=function(){return this._stop};BO.prototype.setRange=function(o,f){this._start=o,this._stop=f};BO.prototype.render=function(o){let f="";if(this._start&&this._stop&&this._color){let m=$t.secondsDifference(this._start,o.epochJulian),x=Math.round(o.timeBarWidth*o.getAlpha(m)),y=$t.secondsDifference(this._stop,o.epochJulian),v=Math.round(o.timeBarWidth*o.getAlpha(y))-x;x<0&&(v+=x,x=0),x+v>o.timeBarWidth&&(v=o.timeBarWidth-x),v>0&&(f=`<span class="cesium-timeline-highlight" style="left: ${x.toString()}px; width: ${v.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return f};var jDe=BO;function tyt(o,f,m,x){this.interval=o,this.height=f,this.color=m||new Xe(.5,.5,.5,1),this.backgroundColor=x||new Xe(0,0,0,0)}tyt.prototype.render=function(o,f){let m=this.interval.start,x=this.interval.stop,y=f.startJulian,v=$t.addSeconds(f.startJulian,f.duration,new $t);if($t.lessThan(m,y)&&$t.greaterThan(x,v))o.fillStyle=this.color.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height);else if($t.lessThanOrEquals(m,v)&&$t.greaterThanOrEquals(x,y)){let C,T,S;for(C=0;C<f.timeBarWidth;++C){let w=$t.addSeconds(f.startJulian,C/f.timeBarWidth*f.duration,new $t);!F(T)&&$t.greaterThanOrEquals(w,m)?T=C:!F(S)&&$t.greaterThanOrEquals(w,x)&&(S=C)}o.fillStyle=this.backgroundColor.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height),F(T)&&(F(S)||(S=f.timeBarWidth),o.fillStyle=this.color.toCssColorString(),o.fillRect(T,f.y,Math.max(S-T,1),this.height))}};var QDe=tyt,xbe=1e12,oS={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},q2={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},H5=[.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 Lv(o,f){o=Qh(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=oS.none,this._touchMode=q2.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=rji(this),this._onMouseUp=nji(this),this._onMouseMove=oji(this),this._onMouseWheel=aji(this),this._onTouchStart=sji(this),this._onTouchMove=uji(this),this._onTouchEnd=lji(this);let y=this._timeBarEle;m.addEventListener("mouseup",this._onMouseUp,!1),m.addEventListener("mousemove",this._onMouseMove,!1),y.addEventListener("mousedown",this._onMouseDown,!1),y.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),y.addEventListener("mousewheel",this._onMouseWheel,!1),y.addEventListener("touchstart",this._onTouchStart,!1),y.addEventListener("touchmove",this._onTouchMove,!1),y.addEventListener("touchend",this._onTouchEnd,!1),y.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},f.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Lv.prototype.addEventListener=function(o,f,m){this._topDiv.addEventListener(o,f,m)};Lv.prototype.removeEventListener=function(o,f,m){this._topDiv.removeEventListener(o,f,m)};Lv.prototype.isDestroyed=function(){return!1};Lv.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),yr(this)};Lv.prototype.addHighlightRange=function(o,f,m){let x=new jDe(o,f,m);return this._highlightRanges.push(x),this.resize(),x};Lv.prototype.addTrack=function(o,f,m,x){let y=new QDe(o,f,m,x);return this._trackList.push(y),this._lastHeight=void 0,this.resize(),y};Lv.prototype.zoomTo=function(o,f){if(this._startJulian=o,this._endJulian=f,this._timeBarSecondsSpan=$t.secondsDifference(f,o),this._clock&&this._clock.clockRange!==Gx.UNBOUNDED){let x=this._clock.startTime,y=this._clock.stopTime,v=$t.secondsDifference(y,x),C=$t.secondsDifference(x,this._startJulian),T=$t.secondsDifference(y,this._endJulian);this._timeBarSecondsSpan>=v?(this._timeBarSecondsSpan=v,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):C>0?(this._endJulian=$t.addSeconds(this._endJulian,C,new $t),this._startJulian=x,this._timeBarSecondsSpan=$t.secondsDifference(this._endJulian,this._startJulian)):T<0&&(this._startJulian=$t.addSeconds(this._startJulian,T,new $t),this._endJulian=y,this._timeBarSecondsSpan=$t.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)};Lv.prototype.zoomFrom=function(o){let f=$t.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($t.addSeconds(this._startJulian,f-f*o,new $t),$t.addSeconds(this._endJulian,m*o-m,new $t))};Lv.prototype.makeLabel=function(o){let f=new Date(o);return`${f.getFullYear()} ${f.getMonth()+1} ${f.getDate()-1} ${f.getHours()}:${f.getMinutes()}:${f.getSeconds()}`};Lv.prototype.smallestTicInPixels=7;Lv.prototype._makeTics=function(){let o=this._timeBarEle,f=$t.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan),x=m-8,y,v=this;this._needleEle.style.left=`${m.toString()}px`;let C="",T=.01,S=31536e6,w=1e-10,E=0,L=this._timeBarSecondsSpan;L<T?(L=T,this._timeBarSecondsSpan=T,this._endJulian=$t.addSeconds(this._startJulian,T,new $t)):L>S&&(L=S,this._timeBarSecondsSpan=S,this._endJulian=$t.addSeconds(this._startJulian,S,new $t));let I=this._timeBarEle.clientWidth;I<10&&(I=10);let R=this._startJulian,P=Math.min(L/I*1e-5,.4),A,M=$t.toGregorianDate(R);L>31536e4?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/100)*100,0))):L>31536e3?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/10)*10,0))):L>86400?A=$t.fromDate(new Date(Date.UTC(M.year,0))):A=$t.fromDate(new Date(Date.UTC(M.year,M.month,M.day)));let V=$t.secondsDifference(this._startJulian,$t.addSeconds(A,P,new $t)),G=V+L;this._epochJulian=A;function D(oe){return Math.floor(V/oe)*oe}function N(oe,ce){return Math.ceil(oe/ce+.5)*ce}function k(oe){return(oe-V)/L}function U(oe,ce){return oe-ce*Math.round(oe/ce)}this._rulerEle.innerHTML=this.makeLabel($t.addSeconds(this._endJulian,-T,new $t));let B=this._rulerEle.offsetWidth+20;B<30&&(B=180);let Y=E;E-=w;let J={startTime:V,startJulian:R,epochJulian:A,duration:L,timeBarWidth:I,getAlpha:k};this._highlightRanges.forEach(function(oe){C+=oe.render(J)});let K=0,z=0,j=0,q=B/I;q>1&&(q=1),q*=this._timeBarSecondsSpan;let O=-1,te=-1,ie=H5.length,re;for(re=0;re<ie;++re){let oe=H5[re];if(++O,K=oe,oe>q&&oe>E)break;te<0&&I*(oe/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(te=O)}if(O>0){for(;O>0;)if(--O,Math.abs(U(K,H5[O]))<1e-5){H5[O]>=E&&(z=H5[O]);break}if(te>=0)for(;te<O;){if(Math.abs(U(z,H5[te]))<1e-5&&H5[te]>=E){j=H5[te];break}++te}}E=Y,E>w&&j<1e-5&&Math.abs(E-K)>w&&(j=E,E<=K+w&&(z=0));let ee=-999999,ae;if(I*(j/this._timeBarSecondsSpan)>=3)for(y=D(j);y<=G;y=N(y,j))C+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(z/this._timeBarSecondsSpan)>=3)for(y=D(z);y<=G;y=N(y,z))C+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(K/this._timeBarSecondsSpan)>=2){this._mainTicSpan=K,G+=K,y=D(K);let oe=$t.computeTaiMinusUtc(A);for(;y<=G;){let ce=$t.addSeconds(R,y-V,new $t);if(K>2.1){let fe=$t.computeTaiMinusUtc(ce);Math.abs(fe-oe)>.1&&(y+=fe-oe,ce=$t.addSeconds(R,y-V,new $t))}let pe=Math.round(I*k(y)),ue=this.makeLabel(ce);this._rulerEle.innerHTML=ue,ae=this._rulerEle.offsetWidth,ae<10&&(ae=B);let he=pe-(ae/2-1);he>ee?(ee=he+ae+5,C+=`<span class="cesium-timeline-ticMain" style="left: ${pe.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${he.toString()}px;">${ue}</span>`):C+=`<span class="cesium-timeline-ticSub" style="left: ${pe.toString()}px;"></span>`,y=N(y,K)}}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),J.y=0,this._trackList.forEach(function(oe){oe.render(v._context,J),J.y+=oe.height})};Lv.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let o=this._scrubElement;if(F(this._scrubElement)){let f=$t.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`)}F(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo($t.addSeconds(this._startJulian,this._timelineDrag,new $t),$t.addSeconds(this._endJulian,this._timelineDrag,new $t)))};Lv.prototype._setTimeBarTime=function(o,f){if(o=Math.round(o),this._scrubJulian=$t.addSeconds(this._startJulian,f,new $t),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 rji(o){return function(f){o._mouseMode!==oS.touchOnly&&(f.button===0?(o._mouseMode=oS.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition="-16px 0"),o._onMouseMove(f)):(o._mouseX=f.clientX,f.button===2?o._mouseMode=oS.zoom:o._mouseMode=oS.slide)),f.preventDefault()}}function nji(o){return function(f){o._mouseMode=oS.none,o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0"),o._timelineDrag=0,o._timelineDragLocation=void 0}}function oji(o){return function(f){let m;if(o._mouseMode===oS.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===oS.slide){if(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0){let x=m*o._timeBarSecondsSpan/o._topDiv.clientWidth;o.zoomTo($t.addSeconds(o._startJulian,x,new $t),$t.addSeconds(o._endJulian,x,new $t))}}else o._mouseMode===oS.zoom&&(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0&&o.zoomFrom(Math.pow(1.01,m)))}}function aji(o){return function(f){let m=f.wheelDeltaY||f.wheelDelta||-f.detail;xbe=Math.max(Math.min(Math.abs(m),xbe),1),m/=xbe,o.zoomFrom(Math.pow(1.05,-m))}}function sji(o){return function(f){let m=f.touches.length,x,y,v=o._topDiv.getBoundingClientRect().left;f.preventDefault(),o._mouseMode=oS.touchOnly,m===1?(x=$t.secondsDifference(o._scrubJulian,o._startJulian),y=Math.round(x*o._topDiv.clientWidth/o._timeBarSecondsSpan+v),Math.abs(f.touches[0].clientX-y)<50?(o._touchMode=q2.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition=m===1?"-16px 0":"0 0")):(o._touchMode=q2.singleTap,o._touchState.centerX=f.touches[0].clientX-v)):m===2?(o._touchMode=q2.slideZoom,o._touchState.centerX=(f.touches[0].clientX+f.touches[1].clientX)*.5-v,o._touchState.spanX=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):o._touchMode=q2.ignore}}function lji(o){return function(f){let m=f.touches.length,x=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap?(o._touchMode=q2.scrub,o._onTouchMove(f)):o._touchMode===q2.scrub&&o._onTouchMove(f),o._mouseMode=oS.touchOnly,m!==1?o._touchMode=m>0?q2.ignore:q2.none:o._touchMode===q2.slideZoom&&(o._touchState.centerX=f.touches[0].clientX-x),o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0")}}function uji(o){return function(f){let m,x,y,v,C,T,S=1,w=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap&&(o._touchMode=q2.slideZoom),o._mouseMode=oS.touchOnly,o._touchMode===q2.scrub?(f.preventDefault(),f.changedTouches.length===1&&(x=f.changedTouches[0].clientX-w,x>=0&&x<=o._topDiv.clientWidth&&o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))):o._touchMode===q2.slideZoom&&(y=f.touches.length,y===2?(v=(f.touches[0].clientX+f.touches[1].clientX)*.5-w,C=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):y===1&&(v=f.touches[0].clientX-w,C=0),F(v)&&(C>0&&o._touchState.spanX>0?(S=o._touchState.spanX/C,T=$t.addSeconds(o._startJulian,(o._touchState.centerX*o._timeBarSecondsSpan-v*o._timeBarSecondsSpan*S)/o._topDiv.clientWidth,new $t)):(m=o._touchState.centerX-v,T=$t.addSeconds(o._startJulian,m*o._timeBarSecondsSpan/o._topDiv.clientWidth,new $t)),o.zoomTo(T,$t.addSeconds(T,o._timeBarSecondsSpan*S,new $t)),o._touchState.centerX=v,o._touchState.spanX=C))}}Lv.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 qDe=Lv;function iyt(o){let f=o.split(` + </div>`,m.appendChild(x);let y=new VDe(f);sr.track(y),sr.applyBindings(y,m),F(y.defaultLayer)&&(y.currentLayer=y.defaultLayer)}var $gt=z8i,Y8i="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",K8i="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 GDe(){this._cameraClicked=new Tr,this._closeClicked=new Tr,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",sr.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,sr.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?K8i:Y8i}}),sr.defineProperty(this,"_bodyless",{get:function(){return!F(this.description)||this.description.length===0}})}GDe.prototype.maxHeightOffset=function(o){return`${this.maxHeight-o}px`};Object.defineProperties(GDe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var FDe=GDe;function Hde(o){o=Qh(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 y=document.createElement("button");y.type="button",y.className="cesium-infoBox-close",y.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),y.innerHTML="×",f.appendChild(y);let v=document.createElement("iframe");v.className="cesium-infoBox-iframe",v.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),v.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),v.setAttribute("allowfullscreen",!0),f.appendChild(v);let C=new FDe;sr.applyBindings(C,f),this._container=o,this._element=f,this._frame=v,this._viewModel=C,this._descriptionSubscription=void 0;let T=this;v.addEventListener("load",function(){let S=v.contentDocument,w=S.createElement("link");w.href=oa("Widgets/InfoBox/InfoBoxDescription.css"),w.rel="stylesheet",w.type="text/css";let E=S.createElement("div");E.className="cesium-infoBox-description",S.head.appendChild(w),S.body.appendChild(E),T._descriptionSubscription=Eb(C,"description",function(L){v.style.height="5px",E.innerHTML=L;let I=null,R=E.firstElementChild;if(R!==null&&E.childNodes.length===1){let A=window.getComputedStyle(R);if(A!==null){let M=A["background-color"],V=Xe.fromCssColorString(M);F(V)&&V.alpha!==0&&(I=A["background-color"])}}f.style["background-color"]=I;let P=E.getBoundingClientRect().height;v.style.height=`${P}px`})}),v.setAttribute("src","about:blank")}Object.defineProperties(Hde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});Hde.prototype.isDestroyed=function(){return!1};Hde.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),F(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),yr(this)};var DDe=Hde;function eyt(){this.showInstructions=!1;let o=this;this._command=Il(function(){o.showInstructions=!o.showInstructions}),this._showClick=Il(function(){o._touch=!1}),this._showTouch=Il(function(){o._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",sr.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(eyt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var NDe=eyt;function zde(o){let f=Qh(o.container),m=new NDe,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 y=document.createElement("span");y.className="cesium-navigationHelpButton-wrapper",f.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",v.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),y.appendChild(v);let C=document.createElement("div");C.className="cesium-navigation-help",C.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),y.appendChild(C);let T=document.createElement("button");T.type="button",T.className="cesium-navigation-button cesium-navigation-button-left",T.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let S=document.createElement("img");S.src=oa("Widgets/Images/NavigationHelp/Mouse.svg"),S.className="cesium-navigation-button-icon",S.style.width="25px",S.style.height="25px",T.appendChild(S),T.appendChild(document.createTextNode("Mouse"));let w=document.createElement("button");w.type="button",w.className="cesium-navigation-button cesium-navigation-button-right",w.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let E=document.createElement("img");E.src=oa("Widgets/Images/NavigationHelp/Touch.svg"),E.className="cesium-navigation-button-icon",E.style.width="25px",E.style.height="25px",w.appendChild(E),w.appendChild(document.createTextNode("Touch")),C.appendChild(T),C.appendChild(w);let L=document.createElement("div");L.className="cesium-click-navigation-help cesium-navigation-help-instructions",L.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),L.innerHTML=` <table> <tr> <td><img src="${oa("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="${oa("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="${oa("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(L);let I=document.createElement("div");I.className="cesium-touch-navigation-help cesium-navigation-help-instructions",I.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),I.innerHTML=` <table> <tr> <td><img src="${oa("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="${oa("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="${oa("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="${oa("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(I),sr.applyBindings(m,y),this._container=f,this._viewModel=m,this._wrapper=y,this._closeInstructions=function(R){y.contains(R.target)||(m.showInstructions=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(zde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});zde.prototype.isDestroyed=function(){return!1};zde.prototype.destroy=function(){return ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var WDe=zde;function ZDe(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,sr.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let f=this;this._dismissMessage=Il(function(){f.showingLowFrameRateMessage=!1,f.lowFrameRateMessageDismissed=!0});let m=PFe.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(ZDe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});ZDe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),yr(this)};var ODe=ZDe;function Yde(o){let f=Qh(o.container),m=new ODe(o),x=document.createElement("div");x.className="cesium-performance-watchdog-message-area",x.setAttribute("data-bind","visible: showingLowFrameRateMessage");let y=document.createElement("button");y.setAttribute("type","button"),y.className="cesium-performance-watchdog-message-dismiss",y.innerHTML="×",y.setAttribute("data-bind","click: dismissMessage"),x.appendChild(y);let v=document.createElement("div");v.className="cesium-performance-watchdog-message",v.setAttribute("data-bind","html: lowFrameRateMessage"),x.appendChild(v),f.appendChild(x),sr.applyBindings(m,x),this._container=f,this._viewModel=m,this._element=x}Object.defineProperties(Yde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Yde.prototype.isDestroyed=function(){return!1};Yde.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var XDe=Yde;function Kde(o){this._scene=o,this._orthographic=o.camera.frustum instanceof $a,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=o.mode,sr.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let f=this;sr.defineProperty(this,"selectedTooltip",function(){return f._orthographic?f.tooltipOrthographic:f.tooltipPerspective}),this._toggleDropDown=Il(function(){f.sceneMode===gi.SCENE2D||f._flightInProgress||(f.dropDownVisible=!f.dropDownVisible)}),this._eventHelper=new bv,this._eventHelper.add(o.morphComplete,function(m,x,y,v){f.sceneMode=y,f._orthographic=y===gi.SCENE2D||f._scene.camera.frustum instanceof $a}),this._eventHelper.add(o.preRender,function(){f._flightInProgress=F(o.camera._currentFlight)}),this._switchToPerspective=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToPerspectiveFrustum(),f._orthographic=!1,f.dropDownVisible=!1)}),this._switchToOrthographic=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToOrthographicFrustum(),f._orthographic=!0,f.dropDownVisible=!1)}),this._sceneMode=gi}Object.defineProperties(Kde.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}}});Kde.prototype.isDestroyed=function(){return!1};Kde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var kDe=Kde,J8i="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",j8i="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 Jde(o,f){o=Qh(o);let m=new kDe(f);m._perspectivePath=J8i,m._orthographicPath=j8i;let x=document.createElement("span");x.className="cesium-projectionPicker-wrapper cesium-toolbar-button",o.appendChild(x);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button",y.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'),y.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(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",v.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(v);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),sr.applyBindings(m,x),this._viewModel=m,this._container=o,this._wrapper=x,this._closeDropDown=function(T){x.contains(T.target)||(m.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(Jde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Jde.prototype.isDestroyed=function(){return!1};Jde.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var UDe=Jde;function jde(o,f){this._scene=o;let m=this,x=function(y,v,C,T){m.sceneMode=C,m.dropDownVisible=!1};this._eventHelper=new bv,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",sr.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,sr.defineProperty(this,"selectedTooltip",function(){let y=m.sceneMode;return y===gi.SCENE2D?m.tooltip2D:y===gi.SCENE3D?m.tooltip3D:m.tooltipColumbusView}),this._toggleDropDown=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._morphTo2D=Il(function(){o.morphTo2D(m._duration)}),this._morphTo3D=Il(function(){o.morphTo3D(m._duration)}),this._morphToColumbusView=Il(function(){o.morphToColumbusView(m._duration)}),this._sceneMode=gi}Object.defineProperties(jde.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}}});jde.prototype.isDestroyed=function(){return!1};jde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var BDe=jde,Q8i="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",q8i="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",$8i="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 Qde(o,f,m){o=Qh(o);let x=new BDe(f,m);x._globePath=Q8i,x._flatMapPath=q8i,x._columbusViewPath=$8i;let y=document.createElement("span");y.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",o.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button",v.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'),v.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 -->',y.appendChild(v);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 }'),y.appendChild(C);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.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),y.appendChild(T);let S=document.createElement("button");S.type="button",S.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",S.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 }'),y.appendChild(S),sr.applyBindings(x,y),this._viewModel=x,this._container=o,this._wrapper=y,this._closeDropDown=function(w){y.contains(w.target)||(x.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(Qde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Qde.prototype.isDestroyed=function(){return!1};Qde.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var HDe=Qde,eji=new rt,Ele="-1000px";function y$(o,f,m){this._scene=o,this._screenPositionX=Ele,this._screenPositionY=Ele,this._tweens=o.tweens,this._container=m??document.body,this._selectionIndicatorElement=f,this._scale=1,this.position=void 0,this.showSelection=!1,sr.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,sr.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&F(this.position)}}),sr.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(x,y){return Ca.worldToWindowCoordinates(o,x,y)}}y$.prototype.update=function(){if(this.showSelection&&F(this.position)){let o=this.computeScreenSpacePosition(this.position,eji);if(!F(o))this._screenPositionX=Ele,this._screenPositionY=Ele;else{let f=this._container,m=f.parentNode.clientWidth,x=f.parentNode.clientHeight,y=this._selectionIndicatorElement.clientWidth,v=y*.5;o.x=Math.min(Math.max(o.x,-y),m+y)-v,o.y=Math.min(Math.max(o.y,-y),x+y)-v,this._screenPositionX=`${Math.floor(o.x+.25)}px`,this._screenPositionY=`${Math.floor(o.y+.25)}px`}}};y$.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};y$.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};Object.defineProperties(y$.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var zDe=y$;function qde(o,f){o=Qh(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",y="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",v=document.createElementNS(x,"svg:svg");v.setAttribute("width",160),v.setAttribute("height",160),v.setAttribute("viewBox","0 0 160 160");let C=document.createElementNS(x,"g");C.setAttribute("transform","translate(80,80)"),v.appendChild(C);let T=document.createElementNS(x,"path");T.setAttribute("data-bind","attr: { transform: _transform }"),T.setAttribute("d",y),C.appendChild(T),m.appendChild(v);let S=new zDe(f,this._element,this._container);this._viewModel=S,sr.applyBindings(this._viewModel,this._element)}Object.defineProperties(qde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});qde.prototype.isDestroyed=function(){return!1};qde.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),yr(this)};var YDe=qde;function BO(o,f,m){this._color=o,this._height=f,this._base=m??0}BO.prototype.getHeight=function(){return this._height};BO.prototype.getBase=function(){return this._base};BO.prototype.getStartTime=function(){return this._start};BO.prototype.getStopTime=function(){return this._stop};BO.prototype.setRange=function(o,f){this._start=o,this._stop=f};BO.prototype.render=function(o){let f="";if(this._start&&this._stop&&this._color){let m=$t.secondsDifference(this._start,o.epochJulian),x=Math.round(o.timeBarWidth*o.getAlpha(m)),y=$t.secondsDifference(this._stop,o.epochJulian),v=Math.round(o.timeBarWidth*o.getAlpha(y))-x;x<0&&(v+=x,x=0),x+v>o.timeBarWidth&&(v=o.timeBarWidth-x),v>0&&(f=`<span class="cesium-timeline-highlight" style="left: ${x.toString()}px; width: ${v.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return f};var KDe=BO;function tyt(o,f,m,x){this.interval=o,this.height=f,this.color=m||new Xe(.5,.5,.5,1),this.backgroundColor=x||new Xe(0,0,0,0)}tyt.prototype.render=function(o,f){let m=this.interval.start,x=this.interval.stop,y=f.startJulian,v=$t.addSeconds(f.startJulian,f.duration,new $t);if($t.lessThan(m,y)&&$t.greaterThan(x,v))o.fillStyle=this.color.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height);else if($t.lessThanOrEquals(m,v)&&$t.greaterThanOrEquals(x,y)){let C,T,S;for(C=0;C<f.timeBarWidth;++C){let w=$t.addSeconds(f.startJulian,C/f.timeBarWidth*f.duration,new $t);!F(T)&&$t.greaterThanOrEquals(w,m)?T=C:!F(S)&&$t.greaterThanOrEquals(w,x)&&(S=C)}o.fillStyle=this.backgroundColor.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height),F(T)&&(F(S)||(S=f.timeBarWidth),o.fillStyle=this.color.toCssColorString(),o.fillRect(T,f.y,Math.max(S-T,1),this.height))}};var JDe=tyt,xbe=1e12,oS={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},q2={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},H5=[.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 Lv(o,f){o=Qh(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=oS.none,this._touchMode=q2.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=tji(this),this._onMouseUp=iji(this),this._onMouseMove=rji(this),this._onMouseWheel=nji(this),this._onTouchStart=oji(this),this._onTouchMove=sji(this),this._onTouchEnd=aji(this);let y=this._timeBarEle;m.addEventListener("mouseup",this._onMouseUp,!1),m.addEventListener("mousemove",this._onMouseMove,!1),y.addEventListener("mousedown",this._onMouseDown,!1),y.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),y.addEventListener("mousewheel",this._onMouseWheel,!1),y.addEventListener("touchstart",this._onTouchStart,!1),y.addEventListener("touchmove",this._onTouchMove,!1),y.addEventListener("touchend",this._onTouchEnd,!1),y.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},f.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Lv.prototype.addEventListener=function(o,f,m){this._topDiv.addEventListener(o,f,m)};Lv.prototype.removeEventListener=function(o,f,m){this._topDiv.removeEventListener(o,f,m)};Lv.prototype.isDestroyed=function(){return!1};Lv.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),yr(this)};Lv.prototype.addHighlightRange=function(o,f,m){let x=new KDe(o,f,m);return this._highlightRanges.push(x),this.resize(),x};Lv.prototype.addTrack=function(o,f,m,x){let y=new JDe(o,f,m,x);return this._trackList.push(y),this._lastHeight=void 0,this.resize(),y};Lv.prototype.zoomTo=function(o,f){if(this._startJulian=o,this._endJulian=f,this._timeBarSecondsSpan=$t.secondsDifference(f,o),this._clock&&this._clock.clockRange!==Gx.UNBOUNDED){let x=this._clock.startTime,y=this._clock.stopTime,v=$t.secondsDifference(y,x),C=$t.secondsDifference(x,this._startJulian),T=$t.secondsDifference(y,this._endJulian);this._timeBarSecondsSpan>=v?(this._timeBarSecondsSpan=v,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):C>0?(this._endJulian=$t.addSeconds(this._endJulian,C,new $t),this._startJulian=x,this._timeBarSecondsSpan=$t.secondsDifference(this._endJulian,this._startJulian)):T<0&&(this._startJulian=$t.addSeconds(this._startJulian,T,new $t),this._endJulian=y,this._timeBarSecondsSpan=$t.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)};Lv.prototype.zoomFrom=function(o){let f=$t.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($t.addSeconds(this._startJulian,f-f*o,new $t),$t.addSeconds(this._endJulian,m*o-m,new $t))};Lv.prototype.makeLabel=function(o){let f=new Date(o);return`${f.getFullYear()} ${f.getMonth()+1} ${f.getDate()-1} ${f.getHours()}:${f.getMinutes()}:${f.getSeconds()}`};Lv.prototype.smallestTicInPixels=7;Lv.prototype._makeTics=function(){let o=this._timeBarEle,f=$t.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan),x=m-8,y,v=this;this._needleEle.style.left=`${m.toString()}px`;let C="",T=.01,S=31536e6,w=1e-10,E=0,L=this._timeBarSecondsSpan;L<T?(L=T,this._timeBarSecondsSpan=T,this._endJulian=$t.addSeconds(this._startJulian,T,new $t)):L>S&&(L=S,this._timeBarSecondsSpan=S,this._endJulian=$t.addSeconds(this._startJulian,S,new $t));let I=this._timeBarEle.clientWidth;I<10&&(I=10);let R=this._startJulian,P=Math.min(L/I*1e-5,.4),A,M=$t.toGregorianDate(R);L>31536e4?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/100)*100,0))):L>31536e3?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/10)*10,0))):L>86400?A=$t.fromDate(new Date(Date.UTC(M.year,0))):A=$t.fromDate(new Date(Date.UTC(M.year,M.month,M.day)));let V=$t.secondsDifference(this._startJulian,$t.addSeconds(A,P,new $t)),G=V+L;this._epochJulian=A;function D(oe){return Math.floor(V/oe)*oe}function N(oe,ce){return Math.ceil(oe/ce+.5)*ce}function k(oe){return(oe-V)/L}function U(oe,ce){return oe-ce*Math.round(oe/ce)}this._rulerEle.innerHTML=this.makeLabel($t.addSeconds(this._endJulian,-T,new $t));let B=this._rulerEle.offsetWidth+20;B<30&&(B=180);let Y=E;E-=w;let J={startTime:V,startJulian:R,epochJulian:A,duration:L,timeBarWidth:I,getAlpha:k};this._highlightRanges.forEach(function(oe){C+=oe.render(J)});let K=0,z=0,j=0,q=B/I;q>1&&(q=1),q*=this._timeBarSecondsSpan;let O=-1,te=-1,ie=H5.length,re;for(re=0;re<ie;++re){let oe=H5[re];if(++O,K=oe,oe>q&&oe>E)break;te<0&&I*(oe/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(te=O)}if(O>0){for(;O>0;)if(--O,Math.abs(U(K,H5[O]))<1e-5){H5[O]>=E&&(z=H5[O]);break}if(te>=0)for(;te<O;){if(Math.abs(U(z,H5[te]))<1e-5&&H5[te]>=E){j=H5[te];break}++te}}E=Y,E>w&&j<1e-5&&Math.abs(E-K)>w&&(j=E,E<=K+w&&(z=0));let ee=-999999,ae;if(I*(j/this._timeBarSecondsSpan)>=3)for(y=D(j);y<=G;y=N(y,j))C+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(z/this._timeBarSecondsSpan)>=3)for(y=D(z);y<=G;y=N(y,z))C+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(K/this._timeBarSecondsSpan)>=2){this._mainTicSpan=K,G+=K,y=D(K);let oe=$t.computeTaiMinusUtc(A);for(;y<=G;){let ce=$t.addSeconds(R,y-V,new $t);if(K>2.1){let fe=$t.computeTaiMinusUtc(ce);Math.abs(fe-oe)>.1&&(y+=fe-oe,ce=$t.addSeconds(R,y-V,new $t))}let pe=Math.round(I*k(y)),ue=this.makeLabel(ce);this._rulerEle.innerHTML=ue,ae=this._rulerEle.offsetWidth,ae<10&&(ae=B);let he=pe-(ae/2-1);he>ee?(ee=he+ae+5,C+=`<span class="cesium-timeline-ticMain" style="left: ${pe.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${he.toString()}px;">${ue}</span>`):C+=`<span class="cesium-timeline-ticSub" style="left: ${pe.toString()}px;"></span>`,y=N(y,K)}}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),J.y=0,this._trackList.forEach(function(oe){oe.render(v._context,J),J.y+=oe.height})};Lv.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let o=this._scrubElement;if(F(this._scrubElement)){let f=$t.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`)}F(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo($t.addSeconds(this._startJulian,this._timelineDrag,new $t),$t.addSeconds(this._endJulian,this._timelineDrag,new $t)))};Lv.prototype._setTimeBarTime=function(o,f){if(o=Math.round(o),this._scrubJulian=$t.addSeconds(this._startJulian,f,new $t),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 tji(o){return function(f){o._mouseMode!==oS.touchOnly&&(f.button===0?(o._mouseMode=oS.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition="-16px 0"),o._onMouseMove(f)):(o._mouseX=f.clientX,f.button===2?o._mouseMode=oS.zoom:o._mouseMode=oS.slide)),f.preventDefault()}}function iji(o){return function(f){o._mouseMode=oS.none,o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0"),o._timelineDrag=0,o._timelineDragLocation=void 0}}function rji(o){return function(f){let m;if(o._mouseMode===oS.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===oS.slide){if(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0){let x=m*o._timeBarSecondsSpan/o._topDiv.clientWidth;o.zoomTo($t.addSeconds(o._startJulian,x,new $t),$t.addSeconds(o._endJulian,x,new $t))}}else o._mouseMode===oS.zoom&&(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0&&o.zoomFrom(Math.pow(1.01,m)))}}function nji(o){return function(f){let m=f.wheelDeltaY||f.wheelDelta||-f.detail;xbe=Math.max(Math.min(Math.abs(m),xbe),1),m/=xbe,o.zoomFrom(Math.pow(1.05,-m))}}function oji(o){return function(f){let m=f.touches.length,x,y,v=o._topDiv.getBoundingClientRect().left;f.preventDefault(),o._mouseMode=oS.touchOnly,m===1?(x=$t.secondsDifference(o._scrubJulian,o._startJulian),y=Math.round(x*o._topDiv.clientWidth/o._timeBarSecondsSpan+v),Math.abs(f.touches[0].clientX-y)<50?(o._touchMode=q2.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition=m===1?"-16px 0":"0 0")):(o._touchMode=q2.singleTap,o._touchState.centerX=f.touches[0].clientX-v)):m===2?(o._touchMode=q2.slideZoom,o._touchState.centerX=(f.touches[0].clientX+f.touches[1].clientX)*.5-v,o._touchState.spanX=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):o._touchMode=q2.ignore}}function aji(o){return function(f){let m=f.touches.length,x=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap?(o._touchMode=q2.scrub,o._onTouchMove(f)):o._touchMode===q2.scrub&&o._onTouchMove(f),o._mouseMode=oS.touchOnly,m!==1?o._touchMode=m>0?q2.ignore:q2.none:o._touchMode===q2.slideZoom&&(o._touchState.centerX=f.touches[0].clientX-x),o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0")}}function sji(o){return function(f){let m,x,y,v,C,T,S=1,w=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap&&(o._touchMode=q2.slideZoom),o._mouseMode=oS.touchOnly,o._touchMode===q2.scrub?(f.preventDefault(),f.changedTouches.length===1&&(x=f.changedTouches[0].clientX-w,x>=0&&x<=o._topDiv.clientWidth&&o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))):o._touchMode===q2.slideZoom&&(y=f.touches.length,y===2?(v=(f.touches[0].clientX+f.touches[1].clientX)*.5-w,C=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):y===1&&(v=f.touches[0].clientX-w,C=0),F(v)&&(C>0&&o._touchState.spanX>0?(S=o._touchState.spanX/C,T=$t.addSeconds(o._startJulian,(o._touchState.centerX*o._timeBarSecondsSpan-v*o._timeBarSecondsSpan*S)/o._topDiv.clientWidth,new $t)):(m=o._touchState.centerX-v,T=$t.addSeconds(o._startJulian,m*o._timeBarSecondsSpan/o._topDiv.clientWidth,new $t)),o.zoomTo(T,$t.addSeconds(T,o._timeBarSecondsSpan*S,new $t)),o._touchState.centerX=v,o._touchState.spanX=C))}}Lv.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 jDe=Lv;function $de(o,f){F(f)||(f=document.body),f=Qh(f);let m=this,x=sr.observable(km.fullscreen),y=sr.observable(km.enabled),v=f.ownerDocument;this.isFullscreen=void 0,sr.defineProperty(this,"isFullscreen",{get:function(){return x()}}),this.isFullscreenEnabled=void 0,sr.defineProperty(this,"isFullscreenEnabled",{get:function(){return y()},set:function(C){y(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?x()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=Il(function(){km.fullscreen?km.exitFullscreen():km.requestFullscreen(m._fullscreenElement)},sr.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=Qh(o)??v.body,this._callback=function(){x(km.fullscreen)},v.addEventListener(km.changeEventName,this._callback)}Object.defineProperties($de.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(o){this._fullscreenElement=o}},command:{get:function(){return this._command}}});$de.prototype.isDestroyed=function(){return!1};$de.prototype.destroy=function(){document.removeEventListener(km.changeEventName,this._callback),yr(this)};var QDe=$de,lji="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",uji="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 e0e(o,f){o=Qh(o);let m=new QDe(f,o);m._exitFullScreenPath=uji,m._enterFullScreenPath=lji;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),sr.applyBindings(m,x),this._container=o,this._viewModel=m,this._element=x}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(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var qDe=e0e,cji=k0(tNt(),1);function hji(o){let f=!1,m=window.screen;return F(m)&&(F(m.lockOrientation)?f=m.lockOrientation(o):F(m.mozLockOrientation)?f=m.mozLockOrientation(o):F(m.msLockOrientation)?f=m.msLockOrientation(o):F(m.orientation&&m.orientation.lock)&&(f=m.orientation.lock(o))),f}function iyt(){let o=window.screen;F(o)&&(F(o.unlockOrientation)?o.unlockOrientation():F(o.mozUnlockOrientation)?o.mozUnlockOrientation():F(o.msUnlockOrientation)?o.msUnlockOrientation():F(o.orientation&&o.orientation.unlock)&&o.orientation.unlock())}function dji(o,f,m,x){x()||(m()?(f.useWebVR=!1,o._locked&&(iyt(),o._locked=!1),o._noSleep.disable(),km.exitFullscreen(),m(!1)):(km.fullscreen||km.requestFullscreen(o._vrElement),o._noSleep.enable(),o._locked||(o._locked=hji("landscape")),f.useWebVR=!0,m(!0)))}function t0e(o,f){let m=this,x=sr.observable(km.enabled),y=sr.observable(!1);this.isVRMode=void 0,sr.defineProperty(this,"isVRMode",{get:function(){return y()}}),this.isVREnabled=void 0,sr.defineProperty(this,"isVREnabled",{get:function(){return x()},set:function(C){x(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return x()?y()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let v=sr.observable(!1);this._isOrthographic=void 0,sr.defineProperty(this,"_isOrthographic",{get:function(){return v()}}),this._eventHelper=new bv,this._eventHelper.add(o.preRender,function(){v(o.camera.frustum instanceof $a)}),this._locked=!1,this._noSleep=new cji.default,this._command=Il(function(){dji(m,o,y,v)},sr.getObservable(this,"isVREnabled")),this._vrElement=Qh(f)??document.body,this._callback=function(){!km.fullscreen&&y()&&(o.useWebVR=!1,m._locked&&(iyt(),m._locked=!1),m._noSleep.disable(),y(!1))},document.addEventListener(km.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(km.changeEventName,this._callback),yr(this)};var $De=t0e,pji="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",fji="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 i0e(o,f,m){o=Qh(o);let x=new $De(f,m);x._exitVRPath=fji,x._enterVRPath=pji;let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-vrButton",y.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(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(i0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});i0e.prototype.isDestroyed=function(){return!1};i0e.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var eNe=i0e,pqe=new Ei;function ryt(o){let f=o.clock;f.currentTime=o.timeJulian,f.shouldAnimate=!1}function mji(o){let f=o.getPropertyIds(),m="";return f.forEach(function(x){let y=o.getProperty(x);F(y)&&(m+=`<tr><th>${x}</th><td>${y}</td></tr>`)}),m.length>0&&(m=`<table class="cesium-infoBox-defaultTable"><tbody>${m}</tbody></table>`),m}function xji(o){let f,m=[],x=o.getPropertyIds();for(f=0;f<x.length;f++){let v=x[f];/^name$/i.test(v)?m[0]=o.getProperty(v):/name/i.test(v)?m[1]=o.getProperty(v):/^title$/i.test(v)?m[2]=o.getProperty(v):/^(id|identifier)$/i.test(v)?m[3]=o.getProperty(v):/element/i.test(v)?m[4]=o.getProperty(v):/(id|identifier)$/i.test(v)&&(m[5]=o.getProperty(v))}let y=m.length;for(f=0;f<y;f++){let v=m[f];if(F(v)&&v!=="")return v}return"Unnamed Feature"}function fqe(o,f){let m=o.scene.pick(f.position);if(F(m)){let x=m.id??m.primitive.id;if(x instanceof bd)return x;if(m instanceof Ss)return new bd({name:xji(m),description:mji(m),feature:m})}if(F(o.scene.globe))return _ji(o,f.position)}var gji=new $t;function tNe(o,f){if(F(f)){let m=f.clock;if(F(m)&&F(o)){let x=m.startTime,y=m.stopTime;$t.equals(x,y)&&(y=$t.addSeconds(x,be.EPSILON2,gji)),o.updateFromClock(),o.zoomTo(x,y)}}}var yji=new Z;function _ji(o,f){let m=o.scene,x=m.camera.getPickRay(f),y=m.imageryLayers.pickImageryLayerFeatures(x,m);if(!F(y))return;let v=new bd({id:"Loading...",description:"Loading feature information..."});return y.then(function(C){if(o.selectedEntity!==v)return;if(!F(C)||C.length===0){o.selectedEntity=mqe();return}let T=C[0],S=new bd({id:T.name,description:T.description});if(F(T.position)){let w=o.scene.ellipsoid.cartographicToCartesian(T.position,yji);S.position=new hI(w)}o.selectedEntity=S},function(){o.selectedEntity===v&&(o.selectedEntity=mqe())}),v}function mqe(){return new bd({id:"None",description:"No features found."})}function vji(o,f){let m=o._geocoder,x=o._homeButton,y=o._sceneModePicker,v=o._projectionPicker,C=o._baseLayerPicker,T=o._animation,S=o._timeline,w=o._fullscreenButton,E=o._infoBox,L=o._selectionIndicator,I=f?"hidden":"visible";if(F(m)&&(m.container.style.visibility=I),F(x)&&(x.container.style.visibility=I),F(y)&&(y.container.style.visibility=I),F(v)&&(v.container.style.visibility=I),F(C)&&(C.container.style.visibility=I),F(T)&&(T.container.style.visibility=I),F(S)&&(S.container.style.visibility=I),F(w)&&w.viewModel.isFullscreenEnabled&&(w.container.style.visibility=I),F(E)&&(E.container.style.visibility=I),F(L)&&(L.container.style.visibility=I),o._container){let R=f||!F(w)?0:w.container.clientWidth;o._vrButton.container.style.right=`${R}px`,o.forceResize()}}function Wc(o,f){o=Qh(o),f=f??si.EMPTY_OBJECT;let m=(!F(f.globe)||f.globe!==!1)&&(!F(f.baseLayerPicker)||f.baseLayerPicker!==!1),x=this,y=document.createElement("div");y.className="cesium-viewer",o.appendChild(y);let v=document.createElement("div");v.className="cesium-viewer-cesiumWidgetContainer",y.appendChild(v);let C=document.createElement("div");C.className="cesium-viewer-bottom",y.appendChild(C);let T=f.scene3DOnly??!1,S,w,E=!1;F(f.clockViewModel)?(w=f.clockViewModel,S=w.clock):(S=new Az,w=new xDe(S),E=!0);let L=new A4(v,{baseLayer:m&&F(f.selectedImageryProviderViewModel)||F(f.baseLayer)||F(f.imageryProvider)?!1:void 0,clock:S,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:F(f.creditContainer)?f.creditContainer:C,creditViewport:f.creditViewport,dataSources:f.dataSources,scene3DOnly:T,shadows:f.shadows,terrainShadows:f.terrainShadows,mapMode2D:f.mapMode2D,blurActiveElementOnCanvasFocus:f.blurActiveElementOnCanvasFocus,requestRenderMode:f.requestRenderMode,maximumRenderTimeChange:f.maximumRenderTimeChange,depthPlaneEllipsoidOffset:f.depthPlaneEllipsoidOffset,msaaSamples:f.msaaSamples}),I=L.scene,R=new bv;R.add(S.onTick,Wc.prototype._onTick,this);let P;if(!F(f.selectionIndicator)||f.selectionIndicator!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-selectionIndicatorContainer",y.appendChild(ce),P=new YDe(ce,I)}let A;if(!F(f.infoBox)||f.infoBox!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-infoBoxContainer",y.appendChild(ce),A=new DDe(ce);let pe=A.viewModel;R.add(pe.cameraClicked,Wc.prototype._onInfoBoxCameraClicked,this),R.add(pe.closeClicked,Wc.prototype._onInfoBoxClockClicked,this)}let M=document.createElement("div");M.className="cesium-viewer-toolbar",y.appendChild(M);let V;if(!F(f.geocoder)||f.geocoder!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-geocoderContainer",M.appendChild(ce);let pe;typeof f.geocoder=="string"?pe=[new Cde({scene:I,geocodeProviderType:f.geocoder})]:F(f.geocoder)&&typeof f.geocoder!="boolean"&&(pe=Array.isArray(f.geocoder)?f.geocoder:[f.geocoder]),V=new RDe({container:ce,geocoderServices:pe,scene:I}),R.add(V.viewModel.search.beforeExecute,Wc.prototype._clearObjects,this)}let G;(!F(f.homeButton)||f.homeButton!==!1)&&(G=new MDe(M,I),F(V)&&R.add(G.viewModel.command.afterExecute,function(){let ce=V.viewModel;ce.searchText="",ce.isSearchInProgress&&ce.search()}),R.add(G.viewModel.command.beforeExecute,Wc.prototype._clearTrackedObject,this));let D;!T&&(!F(f.sceneModePicker)||f.sceneModePicker!==!1)&&(D=new HDe(M,I));let N;f.projectionPicker&&(N=new UDe(M,I));let k,U;if(m){let ce=f.imageryProviderViewModels??bDe(),pe=f.terrainProviderViewModels??CDe();k=new vDe(M,{globe:I.globe,imageryProviderViewModels:ce,selectedImageryProviderViewModel:f.selectedImageryProviderViewModel,terrainProviderViewModels:pe,selectedTerrainProviderViewModel:f.selectedTerrainProviderViewModel}),U=M.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}F(f.baseLayer)&&f.baseLayer!==!1&&(m&&(k.viewModel.selectedImagery=void 0),I.imageryLayers.removeAll(),I.imageryLayers.add(f.baseLayer)),F(f.terrainProvider)&&(m&&(k.viewModel.selectedTerrain=void 0),I.terrainProvider=f.terrainProvider),F(f.terrain)&&(m&&(I.globe.depthTestAgainstTerrain=!0),I.setTerrain(f.terrain));let B;if(!F(f.navigationHelpButton)||f.navigationHelpButton!==!1){let ce=!0;try{if(F(window.localStorage)){let pe=window.localStorage.getItem("cesium-hasSeenNavHelp");F(pe)&&pe?ce=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}B=new WDe({container:M,instructionsInitiallyVisible:f.navigationInstructionsInitiallyVisible??ce})}let Y;if(!F(f.animation)||f.animation!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-animationContainer",y.appendChild(ce),Y=new gDe(ce,new yDe(w))}let J;if(!F(f.timeline)||f.timeline!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-timelineContainer",y.appendChild(ce),J=new jDe(ce,S),J.addEventListener("settime",ryt,!1),J.zoomTo(S.startTime,S.stopTime)}let K,z,j;(!F(f.fullscreenButton)||f.fullscreenButton!==!1)&&(j=document.createElement("div"),j.className="cesium-viewer-fullscreenContainer",y.appendChild(j),K=new qDe(j,f.fullscreenElement),z=Eb(K.viewModel,"isFullscreenEnabled",function(ce){j.style.display=ce?"block":"none",F(J)&&(J.container.style.right=`${j.clientWidth}px`,J.resize())}));let q,O,te;if(f.vrButton){let ce=document.createElement("div");ce.className="cesium-viewer-vrContainer",y.appendChild(ce),q=new eNe(ce,I,f.fullScreenElement),O=Eb(q.viewModel,"isVREnabled",function(pe){ce.style.display=pe?"block":"none",F(K)&&(ce.style.right=`${j.clientWidth}px`),F(J)&&(J.container.style.right=`${ce.clientWidth}px`,J.resize())}),te=Eb(q.viewModel,"isVRMode",function(pe){vji(x,pe)})}this._baseLayerPickerDropDown=U,this._fullscreenSubscription=z,this._vrSubscription=O,this._vrModeSubscription=te,this._dataSourceChangedListeners={},this._container=o,this._bottomContainer=C,this._element=y,this._cesiumWidget=L,this._selectionIndicator=P,this._infoBox=A,this._clockViewModel=w,this._destroyClockViewModel=E,this._toolbar=M,this._homeButton=G,this._sceneModePicker=D,this._projectionPicker=N,this._baseLayerPicker=k,this._navigationHelpButton=B,this._animation=Y,this._timeline=J,this._fullscreenButton=K,this._vrButton=q,this._geocoder=V,this._eventHelper=R,this._lastWidth=0,this._lastHeight=0,this._enableInfoOrSelection=F(A)||F(P),this._selectedEntity=void 0,this._selectedEntityChanged=new Tr;let ie=this._cesiumWidget.dataSources,re=this._cesiumWidget.dataSourceDisplay;R.add(ie.dataSourceAdded,Wc.prototype._onDataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._onDataSourceRemoved,this),R.add(I.postUpdate,Wc.prototype.resize,this);let ee=ie.length;for(let ce=0;ce<ee;ce++)this._dataSourceAdded(ie,ie.get(ce));this._dataSourceAdded(void 0,re.defaultDataSource),R.add(ie.dataSourceAdded,Wc.prototype._dataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._dataSourceRemoved,this);function ae(ce){let pe=fqe(x,ce);F(pe)?Nt.getValueOrUndefined(pe.position,x.clock.currentTime)?x.trackedEntity=pe:x.zoomTo(pe):F(x.trackedEntity)&&(x.trackedEntity=void 0)}function oe(ce){x.selectedEntity=fqe(x,ce)}L.screenSpaceEventHandler.setInputAction(oe,Si.LEFT_CLICK),L.screenSpaceEventHandler.setInputAction(ae,Si.LEFT_DOUBLE_CLICK),L._canAnimateUpdateCallback=this._updateCanAnimate(this)}Object.defineProperties(Wc.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=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(o)?F(f)&&f.animateAppear():F(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,tNe(this._timeline,o))}}});Wc.prototype.extend=function(o,f){o(this,f)};Wc.prototype.resize=function(){let o=this._cesiumWidget,f=this._container,m=f.clientWidth,x=f.clientHeight,y=F(this._animation),v=F(this._timeline);if(o.resize(),m===this._lastWidth&&x===this._lastHeight)return;let C=x-125,T=this._baseLayerPickerDropDown;if(F(T)&&(T.style.maxHeight=`${C}px`),F(this._geocoder)){let P=this._geocoder.searchSuggestionsContainer;P.style.maxHeight=`${C}px`}F(this._infoBox)&&(this._infoBox.viewModel.maxHeight=C);let S=this._timeline,w,E=0,L=5,I=3,R=0;if(y&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let P=this._lastWidth;w=this._animation.container,m>900?(E=169,P<=900&&(w.style.width="169px",w.style.height="112px",this._animation.resize())):m>=600?(E=136,(P<600||P>900)&&(w.style.width="136px",w.style.height="90px",this._animation.resize())):(E=106,(P>600||P===0)&&(w.style.width="106px",w.style.height="70px",this._animation.resize())),L=E+5}if(v&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let P=this._fullscreenButton,A=this._vrButton,M=S.container,V=M.style;I=M.clientHeight+3,V.left=`${E}px`;let G=0;F(P)&&(G+=P.container.clientWidth),F(A)&&(G+=A.container.clientWidth),V.right=`${G}px`,S.resize()}!v&&F(this._fullscreenButton)&&(R=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${L}px`,this._bottomContainer.style.bottom=`${I}px`,this._bottomContainer.style.right=`${R}px`,this._lastWidth=m,this._lastHeight=x};Wc.prototype.forceResize=function(){this._lastWidth=0,this.resize()};Wc.prototype.render=function(){this._cesiumWidget.render()};Wc.prototype.isDestroyed=function(){return!1};Wc.prototype.destroy=function(){return F(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Si.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Si.LEFT_DOUBLE_CLICK)),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),F(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),F(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),F(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),F(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),F(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),F(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),F(this._timeline)&&(this._timeline.removeEventListener("settime",ryt,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),F(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),F(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),F(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),F(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(),yr(this)};Wc.prototype._dataSourceAdded=function(o,f){f.entities.collectionChanged.addEventListener(Wc.prototype._onEntityCollectionChanged,this)};Wc.prototype._dataSourceRemoved=function(o,f){let m=f.entities;m.collectionChanged.removeEventListener(Wc.prototype._onEntityCollectionChanged,this),F(this.selectedEntity)&&m.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};Wc.prototype._updateCanAnimate=function(o){return function(f){o._clockViewModel.canAnimate=f}};Wc.prototype._onTick=function(o){let f=o.currentTime,m,x=!1,y=this.selectedEntity,v=F(y)&&this._enableInfoOrSelection;v&&y.isShowing&&y.isAvailable(f)&&(this._cesiumWidget.dataSourceDisplay.getBoundingSphere(y,!0,pqe)!==Xo.FAILED?m=pqe.center:F(y.position)&&(m=y.position.getValue(f,m)),x=F(m));let C=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(C)&&(C.position=Z.clone(m,C.position),C.showSelection=v&&x,C.update());let T=F(this._infoBox)?this._infoBox.viewModel:void 0;F(T)&&(T.showInfo=v,T.enableCamera=x,T.isCameraTracking=this.trackedEntity===this.selectedEntity,v?(T.titleText=y.name??y.id,T.description=Nt.getValueOrDefault(y.description,f,"")):(T.titleText="",T.description=""))};Wc.prototype._onEntityCollectionChanged=function(o,f,m){let x=m.length;for(let y=0;y<x;y++){let v=m[y];this.selectedEntity===v&&(this.selectedEntity=void 0)}};Wc.prototype._onInfoBoxCameraClicked=function(o){if(o.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let f=this.selectedEntity.position;F(f)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};Wc.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};Wc.prototype._onInfoBoxClockClicked=function(o){this.selectedEntity=void 0};Wc.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};Wc.prototype._onDataSourceChanged=function(o){this.clockTrackedDataSource===o&&tNe(this.timeline,o)};Wc.prototype._onDataSourceAdded=function(o,f){this._cesiumWidget._automaticallyTrackDataSourceClocks&&f===this.clockTrackedDataSource&&tNe(this._timeline,f);let m=f.entities.id,x=this._eventHelper.add(f.changedEvent,Wc.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[m]=x};Wc.prototype._onDataSourceRemoved=function(o,f){let m=f.entities.id;this._dataSourceChangedListeners[m](),this._dataSourceChangedListeners[m]=void 0};Wc.prototype.zoomTo=function(o,f){return this._cesiumWidget.zoomTo(o,f)};Wc.prototype.flyTo=function(o,f){return this._cesiumWidget.flyTo(o,f)};var r0e=Wc;function bji(o){let f=document.createElement("div");f.className="cesium-viewer-cesium3DTilesInspectorContainer",o.container.appendChild(f);let m=new SDe(f,o.scene);Object.defineProperties(o,{cesium3DTilesInspector:{get:function(){return m}}})}var nyt=bji;function Cji(o){let f=document.createElement("div");f.className="cesium-viewer-cesiumInspectorContainer",o.container.appendChild(f);let m=new EDe(f,o.scene);Object.defineProperties(o,{cesiumInspector:{get:function(){return m}}})}var oyt=Cji;function Tji(o,f){f=f??si.EMPTY_OBJECT;let m=!0,x=f.flyToOnDrop??!0,y=new Tr,v=f.clearOnDrop??!0,C=f.dropTarget??o.container,T=f.clampToGround??!0,S=f.proxy;C=Qh(C),Object.defineProperties(o,{dropTarget:{get:function(){return C},set:function(E){xqe(C,w),C=E,gbe(C,w)}},dropEnabled:{get:function(){return m},set:function(E){E!==m&&(E?gbe(C,w):xqe(C,w),m=E)}},dropError:{get:function(){return y}},clearOnDrop:{get:function(){return v},set:function(E){v=E}},flyToOnDrop:{get:function(){return x},set:function(E){x=E}},proxy:{get:function(){return S},set:function(E){S=E}},clampToGround:{get:function(){return T},set:function(E){T=E}}});function w(E){kZ(E),v&&(o.entities.removeAll(),o.dataSources.removeAll());let L=E.dataTransfer.files,I=L.length;for(let R=0;R<I;R++){let P=L[R],A=new FileReader;A.onload=Sji(o,P,S,T),A.onerror=wji(o,P),A.readAsText(P)}}gbe(C,w),o.destroy=pFe(o,o.destroy,function(){o.dropEnabled=!1}),o._handleDrop=w}function kZ(o){o.stopPropagation(),o.preventDefault()}function xqe(o,f){let m=o;F(m)&&(m.removeEventListener("drop",f,!1),m.removeEventListener("dragenter",kZ,!1),m.removeEventListener("dragover",kZ,!1),m.removeEventListener("dragexit",kZ,!1))}function gbe(o,f){o.addEventListener("drop",f,!1),o.addEventListener("dragenter",kZ,!1),o.addEventListener("dragover",kZ,!1),o.addEventListener("dragexit",kZ,!1)}function Sji(o,f,m,x){let y=o.scene;return function(v){let C=f.name;try{let T;if(/\.czml$/i.test(C))T=qq.load(JSON.parse(v.target.result),{sourceUri:C});else if(/\.geojson$/i.test(C)||/\.json$/i.test(C)||/\.topojson$/i.test(C))T=qZ.load(JSON.parse(v.target.result),{sourceUri:C,clampToGround:x});else if(/\.(kml|kmz)$/i.test(C))T=I7.load(f,{sourceUri:C,proxy:m,camera:y.camera,canvas:y.canvas,clampToGround:x,screenOverlayContainer:o.container});else if(/\.gpx$/i.test(C))T=QGe.load(f,{sourceUri:C,proxy:m});else{o.dropError.raiseEvent(o,C,`Unrecognized file: ${C}`);return}F(T)&&o.dataSources.add(T).then(function(S){o.flyToOnDrop&&o.flyTo(S)}).catch(function(S){o.dropError.raiseEvent(o,C,S)})}catch(T){o.dropError.raiseEvent(o,C,T)}}}function wji(o,f){return function(m){o.dropError.raiseEvent(o,f.name,m.target.error)}}var ayt=Tji;function Eji(o,f){f=f??si.EMPTY_OBJECT;let m=new XDe({scene:o.scene,container:o.bottomContainer,lowFrameRateMessage:f.lowFrameRateMessage});Object.defineProperties(o,{performanceWatchdog:{get:function(){return m}}})}var syt=Eji;function lyt(o){let f=o.split(` `),m;for(m=0;m<f.length&&!f[m].match(/\S/);m++);if(m===f.length)return"";let x="",y=/^\s*/,v=f[m].match(y)[0].length;for(let C=m;C<f.length;C++){let T=f[C];T.match(y)[0].length>=v&&(T=T.slice(v)),x+=`${T} -`}return x}function qS(o){this._scene=o,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let f=this;function m(y){let{name:v,initialValue:C}=y;f._definedProperties.push(v);let T=y.setPrimitiveFunction;T===!0&&(T=function(E){f._voxelPrimitive[v]=E});let S=y.getPrimitiveFunction;S===!0&&(S=function(){f[v]=f._voxelPrimitive[v]}),F(S)&&f._getPrimitiveFunctions.push(S);let w=sr.observable();return sr.defineProperty(f,v,{get:function(){return w()},set:function(E){typeof C=="number"&&typeof E=="string"&&(E=Number(E),isNaN(E)&&(E=C)),typeof C=="boolean"&&typeof E=="number"&&(E=E===1),w(E),F(T)&&F(f._voxelPrimitive)&&(T(E),o.requestRender())}}),f[v]=C,w}function x(y,v){return function(C){let T=f._voxelPrimitive[y].clone();T[v]=C,f._voxelPrimitive[y]=T}}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 y=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=iyt(y)}}),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 y=f._voxelPrimitive.shape;f.shapeIsBox=y===Vb.BOX}}),m({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsEllipsoid=y===Vb.ELLIPSOID}}),m({name:"shapeIsCylinder",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsCylinder=y===Vb.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:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMaxLongitudeMax",initialValue:be.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:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMax",initialValue:be.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:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMaxLatitudeMax",initialValue:be.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:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMax",initialValue:be.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:-be.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingCylinderMaxAngleMax",initialValue:be.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:-be.PI}),m({name:"clippingCylinderMinAngleMax",initialValue:be.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&&HP(f)},getPrimitiveFunction:function(){f.translationX=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"translationY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationY=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationZ=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleX=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleY=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleZ=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"angleX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}})}var cji=new Z,hji=new Z,dji=new rs,pji=new Ut;function HP(o){let f=Z.fromElements(o.translationX,o.translationY,o.translationZ,cji),m=Z.fromElements(o.scaleX,o.scaleY,o.scaleZ,hji),x=dji;x.heading=o.angleX,x.pitch=o.angleY,x.roll=o.angleZ;let y=Ut.fromHeadingPitchRoll(x,pji),v=Ut.multiplyByScale(y,m,y);o._voxelPrimitive.modelMatrix=Ee.fromRotationTranslation(v,f,o._voxelPrimitive.modelMatrix)}Object.defineProperties(qS.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(o){if(F(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),!F(o))return;this._voxelPrimitive=o;let f=this;f._customShaderCompilationRemoveCallback=f._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(m){let x=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=iyt(x),F(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,HP(f)}}});qS.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};qS.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};qS.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};qS.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};qS.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};qS.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};qS.prototype.compileShader=function(){F(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new P1({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};qS.prototype.shaderEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,y=m.selectionEnd,v=y,C=m.value.slice(x,y).split(` +`}return x}function qS(o){this._scene=o,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let f=this;function m(y){let{name:v,initialValue:C}=y;f._definedProperties.push(v);let T=y.setPrimitiveFunction;T===!0&&(T=function(E){f._voxelPrimitive[v]=E});let S=y.getPrimitiveFunction;S===!0&&(S=function(){f[v]=f._voxelPrimitive[v]}),F(S)&&f._getPrimitiveFunctions.push(S);let w=sr.observable();return sr.defineProperty(f,v,{get:function(){return w()},set:function(E){typeof C=="number"&&typeof E=="string"&&(E=Number(E),isNaN(E)&&(E=C)),typeof C=="boolean"&&typeof E=="number"&&(E=E===1),w(E),F(T)&&F(f._voxelPrimitive)&&(T(E),o.requestRender())}}),f[v]=C,w}function x(y,v){return function(C){let T=f._voxelPrimitive[y].clone();T[v]=C,f._voxelPrimitive[y]=T}}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 y=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=lyt(y)}}),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 y=f._voxelPrimitive.shape;f.shapeIsBox=y===Vb.BOX}}),m({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsEllipsoid=y===Vb.ELLIPSOID}}),m({name:"shapeIsCylinder",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsCylinder=y===Vb.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:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMaxLongitudeMax",initialValue:be.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:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMax",initialValue:be.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:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMaxLatitudeMax",initialValue:be.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:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMax",initialValue:be.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:-be.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingCylinderMaxAngleMax",initialValue:be.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:-be.PI}),m({name:"clippingCylinderMinAngleMax",initialValue:be.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&&HP(f)},getPrimitiveFunction:function(){f.translationX=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"translationY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationY=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationZ=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleX=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleY=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleZ=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"angleX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}})}var Lji=new Z,Pji=new Z,Iji=new rs,Rji=new Ut;function HP(o){let f=Z.fromElements(o.translationX,o.translationY,o.translationZ,Lji),m=Z.fromElements(o.scaleX,o.scaleY,o.scaleZ,Pji),x=Iji;x.heading=o.angleX,x.pitch=o.angleY,x.roll=o.angleZ;let y=Ut.fromHeadingPitchRoll(x,Rji),v=Ut.multiplyByScale(y,m,y);o._voxelPrimitive.modelMatrix=Ee.fromRotationTranslation(v,f,o._voxelPrimitive.modelMatrix)}Object.defineProperties(qS.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(o){if(F(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),!F(o))return;this._voxelPrimitive=o;let f=this;f._customShaderCompilationRemoveCallback=f._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(m){let x=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=lyt(x),F(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,HP(f)}}});qS.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};qS.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};qS.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};qS.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};qS.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};qS.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};qS.prototype.compileShader=function(){F(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new P1({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};qS.prototype.shaderEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,y=m.selectionEnd,v=y,C=m.value.slice(x,y).split(` `),T=C.length,S;if(f.shiftKey)for(S=0;S<T;++S)C[S][0]===" "&&(C[S][1]===" "?(C[S]=C[S].substr(2),v-=2):(C[S]=C[S].substr(1),v-=1));else for(S=0;S<T;++S)C[S]=` ${C[S]}`,v+=2;let w=C.join(` -`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileShader();return!0};qS.prototype.isDestroyed=function(){return!1};qS.prototype.destroy=function(){let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};var $De=qS;function t0e(o,f){o=Qh(o);let m=document.createElement("div"),x=new $De(f);this._viewModel=x,this._container=o,this._element=m;let y=document.createElement("div");y.textContent="Voxel Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleInspector"),m.appendChild(y),m.className="cesium-cesiumInspector cesium-VoxelInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let v=document.createElement("div");v.className="cesium-cesiumInspector-dropDown",m.appendChild(v);let{createSection:C,createCheckbox:T,createRangeInput:S,createButton:w}=sI,E=C(v,"Display","displayVisible","toggleDisplay"),L=C(v,"Transform","transformVisible","toggleTransform"),I=C(v,"Clipping","clippingVisible","toggleClipping"),R=C(v,"Shader","shaderVisible","toggleShader");E.appendChild(T("Depth Test","depthTest")),E.appendChild(T("Show","show")),E.appendChild(T("Disable Update","disableUpdate")),E.appendChild(T("Debug Draw","debugDraw")),E.appendChild(T("Jitter","jitter")),E.appendChild(T("Nearest Sampling","nearestSampling")),E.appendChild(S("Screen Space Error","screenSpaceError",0,128)),E.appendChild(S("Step Size","stepSize",0,2));let P=10,A=10,M=be.PI;L.appendChild(S("Translation X","translationX",-P,+P)),L.appendChild(S("Translation Y","translationY",-P,+P)),L.appendChild(S("Translation Z","translationZ",-P,+P)),L.appendChild(S("Scale X","scaleX",0,+A)),L.appendChild(S("Scale Y","scaleY",0,+A)),L.appendChild(S("Scale Z","scaleZ",0,+A)),L.appendChild(S("Heading","angleX",-M,+M)),L.appendChild(S("Pitch","angleY",-M,+M)),L.appendChild(S("Roll","angleZ",-M,+M)),gbe("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ","shapeIsBox",I),gbe("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight","shapeIsEllipsoid",I),gbe("Max Radius","Min Radius","Max Angle","Min Angle","Max Height","Min Height","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxAngle","clippingCylinderMinAngle","clippingCylinderMaxHeight","clippingCylinderMinHeight","shapeIsCylinder",I);let V=document.createElement("div");R.appendChild(V);let G=document.createElement("textarea");G.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),V.className="cesium-cesiumInspector-styleEditor",V.appendChild(G);let D=w("Compile (Ctrl+Enter)","compileShader");V.appendChild(D);let N=document.createElement("label");N.style.display="block",N.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),V.appendChild(N),sr.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 sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};function gbe(o,f,m,x,y,v,C,T,S,w,E,L,I,R){let P=sI.createRangeInputWithDynamicMinMax,A=R.appendChild(document.createElement("div"));A.setAttribute("data-bind",`if: ${I}`),A.appendChild(P(o,C)),A.appendChild(P(f,T)),A.appendChild(P(m,S)),A.appendChild(P(x,w)),A.appendChild(P(y,E)),A.appendChild(P(v,L))}var eNe=t0e,fji=k0(tNt(),1);function mji(o){let f=!1,m=window.screen;return F(m)&&(F(m.lockOrientation)?f=m.lockOrientation(o):F(m.mozLockOrientation)?f=m.mozLockOrientation(o):F(m.msLockOrientation)?f=m.msLockOrientation(o):F(m.orientation&&m.orientation.lock)&&(f=m.orientation.lock(o))),f}function ryt(){let o=window.screen;F(o)&&(F(o.unlockOrientation)?o.unlockOrientation():F(o.mozUnlockOrientation)?o.mozUnlockOrientation():F(o.msUnlockOrientation)?o.msUnlockOrientation():F(o.orientation&&o.orientation.unlock)&&o.orientation.unlock())}function xji(o,f,m,x){x()||(m()?(f.useWebVR=!1,o._locked&&(ryt(),o._locked=!1),o._noSleep.disable(),km.exitFullscreen(),m(!1)):(km.fullscreen||km.requestFullscreen(o._vrElement),o._noSleep.enable(),o._locked||(o._locked=mji("landscape")),f.useWebVR=!0,m(!0)))}function i0e(o,f){let m=this,x=sr.observable(km.enabled),y=sr.observable(!1);this.isVRMode=void 0,sr.defineProperty(this,"isVRMode",{get:function(){return y()}}),this.isVREnabled=void 0,sr.defineProperty(this,"isVREnabled",{get:function(){return x()},set:function(C){x(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return x()?y()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let v=sr.observable(!1);this._isOrthographic=void 0,sr.defineProperty(this,"_isOrthographic",{get:function(){return v()}}),this._eventHelper=new bv,this._eventHelper.add(o.preRender,function(){v(o.camera.frustum instanceof $a)}),this._locked=!1,this._noSleep=new fji.default,this._command=Il(function(){xji(m,o,y,v)},sr.getObservable(this,"isVREnabled")),this._vrElement=Qh(f)??document.body,this._callback=function(){!km.fullscreen&&y()&&(o.useWebVR=!1,m._locked&&(ryt(),m._locked=!1),m._noSleep.disable(),y(!1))},document.addEventListener(km.changeEventName,this._callback)}Object.defineProperties(i0e.prototype,{vrElement:{get:function(){return this._vrElement},set:function(o){this._vrElement=o}},command:{get:function(){return this._command}}});i0e.prototype.isDestroyed=function(){return!1};i0e.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(km.changeEventName,this._callback),yr(this)};var tNe=i0e,gji="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",yji="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 r0e(o,f,m){o=Qh(o);let x=new tNe(f,m);x._exitVRPath=yji,x._enterVRPath=gji;let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-vrButton",y.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(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(r0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});r0e.prototype.isDestroyed=function(){return!1};r0e.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var iNe=r0e,pqe=new Ei;function nyt(o){let f=o.clock;f.currentTime=o.timeJulian,f.shouldAnimate=!1}function _ji(o){let f=o.getPropertyIds(),m="";return f.forEach(function(x){let y=o.getProperty(x);F(y)&&(m+=`<tr><th>${x}</th><td>${y}</td></tr>`)}),m.length>0&&(m=`<table class="cesium-infoBox-defaultTable"><tbody>${m}</tbody></table>`),m}function vji(o){let f,m=[],x=o.getPropertyIds();for(f=0;f<x.length;f++){let v=x[f];/^name$/i.test(v)?m[0]=o.getProperty(v):/name/i.test(v)?m[1]=o.getProperty(v):/^title$/i.test(v)?m[2]=o.getProperty(v):/^(id|identifier)$/i.test(v)?m[3]=o.getProperty(v):/element/i.test(v)?m[4]=o.getProperty(v):/(id|identifier)$/i.test(v)&&(m[5]=o.getProperty(v))}let y=m.length;for(f=0;f<y;f++){let v=m[f];if(F(v)&&v!=="")return v}return"Unnamed Feature"}function fqe(o,f){let m=o.scene.pick(f.position);if(F(m)){let x=m.id??m.primitive.id;if(x instanceof bd)return x;if(m instanceof Ss)return new bd({name:vji(m),description:_ji(m),feature:m})}if(F(o.scene.globe))return Tji(o,f.position)}var bji=new $t;function rNe(o,f){if(F(f)){let m=f.clock;if(F(m)&&F(o)){let x=m.startTime,y=m.stopTime;$t.equals(x,y)&&(y=$t.addSeconds(x,be.EPSILON2,bji)),o.updateFromClock(),o.zoomTo(x,y)}}}var Cji=new Z;function Tji(o,f){let m=o.scene,x=m.camera.getPickRay(f),y=m.imageryLayers.pickImageryLayerFeatures(x,m);if(!F(y))return;let v=new bd({id:"Loading...",description:"Loading feature information..."});return y.then(function(C){if(o.selectedEntity!==v)return;if(!F(C)||C.length===0){o.selectedEntity=mqe();return}let T=C[0],S=new bd({id:T.name,description:T.description});if(F(T.position)){let w=o.scene.ellipsoid.cartographicToCartesian(T.position,Cji);S.position=new hI(w)}o.selectedEntity=S},function(){o.selectedEntity===v&&(o.selectedEntity=mqe())}),v}function mqe(){return new bd({id:"None",description:"No features found."})}function Sji(o,f){let m=o._geocoder,x=o._homeButton,y=o._sceneModePicker,v=o._projectionPicker,C=o._baseLayerPicker,T=o._animation,S=o._timeline,w=o._fullscreenButton,E=o._infoBox,L=o._selectionIndicator,I=f?"hidden":"visible";if(F(m)&&(m.container.style.visibility=I),F(x)&&(x.container.style.visibility=I),F(y)&&(y.container.style.visibility=I),F(v)&&(v.container.style.visibility=I),F(C)&&(C.container.style.visibility=I),F(T)&&(T.container.style.visibility=I),F(S)&&(S.container.style.visibility=I),F(w)&&w.viewModel.isFullscreenEnabled&&(w.container.style.visibility=I),F(E)&&(E.container.style.visibility=I),F(L)&&(L.container.style.visibility=I),o._container){let R=f||!F(w)?0:w.container.clientWidth;o._vrButton.container.style.right=`${R}px`,o.forceResize()}}function Wc(o,f){o=Qh(o),f=f??si.EMPTY_OBJECT;let m=(!F(f.globe)||f.globe!==!1)&&(!F(f.baseLayerPicker)||f.baseLayerPicker!==!1),x=this,y=document.createElement("div");y.className="cesium-viewer",o.appendChild(y);let v=document.createElement("div");v.className="cesium-viewer-cesiumWidgetContainer",y.appendChild(v);let C=document.createElement("div");C.className="cesium-viewer-bottom",y.appendChild(C);let T=f.scene3DOnly??!1,S,w,E=!1;F(f.clockViewModel)?(w=f.clockViewModel,S=w.clock):(S=new Az,w=new xDe(S),E=!0);let L=new A4(v,{baseLayer:m&&F(f.selectedImageryProviderViewModel)||F(f.baseLayer)||F(f.imageryProvider)?!1:void 0,clock:S,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:F(f.creditContainer)?f.creditContainer:C,creditViewport:f.creditViewport,dataSources:f.dataSources,scene3DOnly:T,shadows:f.shadows,terrainShadows:f.terrainShadows,mapMode2D:f.mapMode2D,blurActiveElementOnCanvasFocus:f.blurActiveElementOnCanvasFocus,requestRenderMode:f.requestRenderMode,maximumRenderTimeChange:f.maximumRenderTimeChange,depthPlaneEllipsoidOffset:f.depthPlaneEllipsoidOffset,msaaSamples:f.msaaSamples}),I=L.scene,R=new bv;R.add(S.onTick,Wc.prototype._onTick,this);let P;if(!F(f.selectionIndicator)||f.selectionIndicator!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-selectionIndicatorContainer",y.appendChild(ce),P=new JDe(ce,I)}let A;if(!F(f.infoBox)||f.infoBox!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-infoBoxContainer",y.appendChild(ce),A=new WDe(ce);let pe=A.viewModel;R.add(pe.cameraClicked,Wc.prototype._onInfoBoxCameraClicked,this),R.add(pe.closeClicked,Wc.prototype._onInfoBoxClockClicked,this)}let M=document.createElement("div");M.className="cesium-viewer-toolbar",y.appendChild(M);let V;if(!F(f.geocoder)||f.geocoder!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-geocoderContainer",M.appendChild(ce);let pe;typeof f.geocoder=="string"?pe=[new Cde({scene:I,geocodeProviderType:f.geocoder})]:F(f.geocoder)&&typeof f.geocoder!="boolean"&&(pe=Array.isArray(f.geocoder)?f.geocoder:[f.geocoder]),V=new MDe({container:ce,geocoderServices:pe,scene:I}),R.add(V.viewModel.search.beforeExecute,Wc.prototype._clearObjects,this)}let G;(!F(f.homeButton)||f.homeButton!==!1)&&(G=new GDe(M,I),F(V)&&R.add(G.viewModel.command.afterExecute,function(){let ce=V.viewModel;ce.searchText="",ce.isSearchInProgress&&ce.search()}),R.add(G.viewModel.command.beforeExecute,Wc.prototype._clearTrackedObject,this));let D;!T&&(!F(f.sceneModePicker)||f.sceneModePicker!==!1)&&(D=new YDe(M,I));let N;f.projectionPicker&&(N=new kDe(M,I));let k,U;if(m){let ce=f.imageryProviderViewModels??bDe(),pe=f.terrainProviderViewModels??CDe();k=new vDe(M,{globe:I.globe,imageryProviderViewModels:ce,selectedImageryProviderViewModel:f.selectedImageryProviderViewModel,terrainProviderViewModels:pe,selectedTerrainProviderViewModel:f.selectedTerrainProviderViewModel}),U=M.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}F(f.baseLayer)&&f.baseLayer!==!1&&(m&&(k.viewModel.selectedImagery=void 0),I.imageryLayers.removeAll(),I.imageryLayers.add(f.baseLayer)),F(f.terrainProvider)&&(m&&(k.viewModel.selectedTerrain=void 0),I.terrainProvider=f.terrainProvider),F(f.terrain)&&(m&&(I.globe.depthTestAgainstTerrain=!0),I.setTerrain(f.terrain));let B;if(!F(f.navigationHelpButton)||f.navigationHelpButton!==!1){let ce=!0;try{if(F(window.localStorage)){let pe=window.localStorage.getItem("cesium-hasSeenNavHelp");F(pe)&&pe?ce=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}B=new ODe({container:M,instructionsInitiallyVisible:f.navigationInstructionsInitiallyVisible??ce})}let Y;if(!F(f.animation)||f.animation!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-animationContainer",y.appendChild(ce),Y=new gDe(ce,new yDe(w))}let J;if(!F(f.timeline)||f.timeline!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-timelineContainer",y.appendChild(ce),J=new qDe(ce,S),J.addEventListener("settime",nyt,!1),J.zoomTo(S.startTime,S.stopTime)}let K,z,j;(!F(f.fullscreenButton)||f.fullscreenButton!==!1)&&(j=document.createElement("div"),j.className="cesium-viewer-fullscreenContainer",y.appendChild(j),K=new PDe(j,f.fullscreenElement),z=Eb(K.viewModel,"isFullscreenEnabled",function(ce){j.style.display=ce?"block":"none",F(J)&&(J.container.style.right=`${j.clientWidth}px`,J.resize())}));let q,O,te;if(f.vrButton){let ce=document.createElement("div");ce.className="cesium-viewer-vrContainer",y.appendChild(ce),q=new iNe(ce,I,f.fullScreenElement),O=Eb(q.viewModel,"isVREnabled",function(pe){ce.style.display=pe?"block":"none",F(K)&&(ce.style.right=`${j.clientWidth}px`),F(J)&&(J.container.style.right=`${ce.clientWidth}px`,J.resize())}),te=Eb(q.viewModel,"isVRMode",function(pe){Sji(x,pe)})}this._baseLayerPickerDropDown=U,this._fullscreenSubscription=z,this._vrSubscription=O,this._vrModeSubscription=te,this._dataSourceChangedListeners={},this._container=o,this._bottomContainer=C,this._element=y,this._cesiumWidget=L,this._selectionIndicator=P,this._infoBox=A,this._clockViewModel=w,this._destroyClockViewModel=E,this._toolbar=M,this._homeButton=G,this._sceneModePicker=D,this._projectionPicker=N,this._baseLayerPicker=k,this._navigationHelpButton=B,this._animation=Y,this._timeline=J,this._fullscreenButton=K,this._vrButton=q,this._geocoder=V,this._eventHelper=R,this._lastWidth=0,this._lastHeight=0,this._enableInfoOrSelection=F(A)||F(P),this._selectedEntity=void 0,this._selectedEntityChanged=new Tr;let ie=this._cesiumWidget.dataSources,re=this._cesiumWidget.dataSourceDisplay;R.add(ie.dataSourceAdded,Wc.prototype._onDataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._onDataSourceRemoved,this),R.add(I.postUpdate,Wc.prototype.resize,this);let ee=ie.length;for(let ce=0;ce<ee;ce++)this._dataSourceAdded(ie,ie.get(ce));this._dataSourceAdded(void 0,re.defaultDataSource),R.add(ie.dataSourceAdded,Wc.prototype._dataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._dataSourceRemoved,this);function ae(ce){let pe=fqe(x,ce);F(pe)?Nt.getValueOrUndefined(pe.position,x.clock.currentTime)?x.trackedEntity=pe:x.zoomTo(pe):F(x.trackedEntity)&&(x.trackedEntity=void 0)}function oe(ce){x.selectedEntity=fqe(x,ce)}L.screenSpaceEventHandler.setInputAction(oe,Si.LEFT_CLICK),L.screenSpaceEventHandler.setInputAction(ae,Si.LEFT_DOUBLE_CLICK),L._canAnimateUpdateCallback=this._updateCanAnimate(this)}Object.defineProperties(Wc.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=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(o)?F(f)&&f.animateAppear():F(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,rNe(this._timeline,o))}}});Wc.prototype.extend=function(o,f){o(this,f)};Wc.prototype.resize=function(){let o=this._cesiumWidget,f=this._container,m=f.clientWidth,x=f.clientHeight,y=F(this._animation),v=F(this._timeline);if(o.resize(),m===this._lastWidth&&x===this._lastHeight)return;let C=x-125,T=this._baseLayerPickerDropDown;if(F(T)&&(T.style.maxHeight=`${C}px`),F(this._geocoder)){let P=this._geocoder.searchSuggestionsContainer;P.style.maxHeight=`${C}px`}F(this._infoBox)&&(this._infoBox.viewModel.maxHeight=C);let S=this._timeline,w,E=0,L=5,I=3,R=0;if(y&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let P=this._lastWidth;w=this._animation.container,m>900?(E=169,P<=900&&(w.style.width="169px",w.style.height="112px",this._animation.resize())):m>=600?(E=136,(P<600||P>900)&&(w.style.width="136px",w.style.height="90px",this._animation.resize())):(E=106,(P>600||P===0)&&(w.style.width="106px",w.style.height="70px",this._animation.resize())),L=E+5}if(v&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let P=this._fullscreenButton,A=this._vrButton,M=S.container,V=M.style;I=M.clientHeight+3,V.left=`${E}px`;let G=0;F(P)&&(G+=P.container.clientWidth),F(A)&&(G+=A.container.clientWidth),V.right=`${G}px`,S.resize()}!v&&F(this._fullscreenButton)&&(R=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${L}px`,this._bottomContainer.style.bottom=`${I}px`,this._bottomContainer.style.right=`${R}px`,this._lastWidth=m,this._lastHeight=x};Wc.prototype.forceResize=function(){this._lastWidth=0,this.resize()};Wc.prototype.render=function(){this._cesiumWidget.render()};Wc.prototype.isDestroyed=function(){return!1};Wc.prototype.destroy=function(){return F(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Si.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Si.LEFT_DOUBLE_CLICK)),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),F(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),F(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),F(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),F(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),F(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),F(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),F(this._timeline)&&(this._timeline.removeEventListener("settime",nyt,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),F(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),F(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),F(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),F(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(),yr(this)};Wc.prototype._dataSourceAdded=function(o,f){f.entities.collectionChanged.addEventListener(Wc.prototype._onEntityCollectionChanged,this)};Wc.prototype._dataSourceRemoved=function(o,f){let m=f.entities;m.collectionChanged.removeEventListener(Wc.prototype._onEntityCollectionChanged,this),F(this.selectedEntity)&&m.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};Wc.prototype._updateCanAnimate=function(o){return function(f){o._clockViewModel.canAnimate=f}};Wc.prototype._onTick=function(o){let f=o.currentTime,m,x=!1,y=this.selectedEntity,v=F(y)&&this._enableInfoOrSelection;v&&y.isShowing&&y.isAvailable(f)&&(this._cesiumWidget.dataSourceDisplay.getBoundingSphere(y,!0,pqe)!==Xo.FAILED?m=pqe.center:F(y.position)&&(m=y.position.getValue(f,m)),x=F(m));let C=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(C)&&(C.position=Z.clone(m,C.position),C.showSelection=v&&x,C.update());let T=F(this._infoBox)?this._infoBox.viewModel:void 0;F(T)&&(T.showInfo=v,T.enableCamera=x,T.isCameraTracking=this.trackedEntity===this.selectedEntity,v?(T.titleText=y.name??y.id,T.description=Nt.getValueOrDefault(y.description,f,"")):(T.titleText="",T.description=""))};Wc.prototype._onEntityCollectionChanged=function(o,f,m){let x=m.length;for(let y=0;y<x;y++){let v=m[y];this.selectedEntity===v&&(this.selectedEntity=void 0)}};Wc.prototype._onInfoBoxCameraClicked=function(o){if(o.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let f=this.selectedEntity.position;F(f)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};Wc.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};Wc.prototype._onInfoBoxClockClicked=function(o){this.selectedEntity=void 0};Wc.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};Wc.prototype._onDataSourceChanged=function(o){this.clockTrackedDataSource===o&&rNe(this.timeline,o)};Wc.prototype._onDataSourceAdded=function(o,f){this._cesiumWidget._automaticallyTrackDataSourceClocks&&f===this.clockTrackedDataSource&&rNe(this._timeline,f);let m=f.entities.id,x=this._eventHelper.add(f.changedEvent,Wc.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[m]=x};Wc.prototype._onDataSourceRemoved=function(o,f){let m=f.entities.id;this._dataSourceChangedListeners[m](),this._dataSourceChangedListeners[m]=void 0};Wc.prototype.zoomTo=function(o,f){return this._cesiumWidget.zoomTo(o,f)};Wc.prototype.flyTo=function(o,f){return this._cesiumWidget.flyTo(o,f)};var n0e=Wc;function wji(o){let f=document.createElement("div");f.className="cesium-viewer-cesium3DTilesInspectorContainer",o.container.appendChild(f);let m=new SDe(f,o.scene);Object.defineProperties(o,{cesium3DTilesInspector:{get:function(){return m}}})}var oyt=wji;function Eji(o){let f=document.createElement("div");f.className="cesium-viewer-cesiumInspectorContainer",o.container.appendChild(f);let m=new EDe(f,o.scene);Object.defineProperties(o,{cesiumInspector:{get:function(){return m}}})}var ayt=Eji;function Lji(o,f){f=f??si.EMPTY_OBJECT;let m=!0,x=f.flyToOnDrop??!0,y=new Tr,v=f.clearOnDrop??!0,C=f.dropTarget??o.container,T=f.clampToGround??!0,S=f.proxy;C=Qh(C),Object.defineProperties(o,{dropTarget:{get:function(){return C},set:function(E){xqe(C,w),C=E,ybe(C,w)}},dropEnabled:{get:function(){return m},set:function(E){E!==m&&(E?ybe(C,w):xqe(C,w),m=E)}},dropError:{get:function(){return y}},clearOnDrop:{get:function(){return v},set:function(E){v=E}},flyToOnDrop:{get:function(){return x},set:function(E){x=E}},proxy:{get:function(){return S},set:function(E){S=E}},clampToGround:{get:function(){return T},set:function(E){T=E}}});function w(E){kZ(E),v&&(o.entities.removeAll(),o.dataSources.removeAll());let L=E.dataTransfer.files,I=L.length;for(let R=0;R<I;R++){let P=L[R],A=new FileReader;A.onload=Pji(o,P,S,T),A.onerror=Iji(o,P),A.readAsText(P)}}ybe(C,w),o.destroy=_Fe(o,o.destroy,function(){o.dropEnabled=!1}),o._handleDrop=w}function kZ(o){o.stopPropagation(),o.preventDefault()}function xqe(o,f){let m=o;F(m)&&(m.removeEventListener("drop",f,!1),m.removeEventListener("dragenter",kZ,!1),m.removeEventListener("dragover",kZ,!1),m.removeEventListener("dragexit",kZ,!1))}function ybe(o,f){o.addEventListener("drop",f,!1),o.addEventListener("dragenter",kZ,!1),o.addEventListener("dragover",kZ,!1),o.addEventListener("dragexit",kZ,!1)}function Pji(o,f,m,x){let y=o.scene;return function(v){let C=f.name;try{let T;if(/\.czml$/i.test(C))T=qq.load(JSON.parse(v.target.result),{sourceUri:C});else if(/\.geojson$/i.test(C)||/\.json$/i.test(C)||/\.topojson$/i.test(C))T=qZ.load(JSON.parse(v.target.result),{sourceUri:C,clampToGround:x});else if(/\.(kml|kmz)$/i.test(C))T=I7.load(f,{sourceUri:C,proxy:m,camera:y.camera,canvas:y.canvas,clampToGround:x,screenOverlayContainer:o.container});else if(/\.gpx$/i.test(C))T=QGe.load(f,{sourceUri:C,proxy:m});else{o.dropError.raiseEvent(o,C,`Unrecognized file: ${C}`);return}F(T)&&o.dataSources.add(T).then(function(S){o.flyToOnDrop&&o.flyTo(S)}).catch(function(S){o.dropError.raiseEvent(o,C,S)})}catch(T){o.dropError.raiseEvent(o,C,T)}}}function Iji(o,f){return function(m){o.dropError.raiseEvent(o,f.name,m.target.error)}}var syt=Lji;function Rji(o,f){f=f??si.EMPTY_OBJECT;let m=new HDe({scene:o.scene,container:o.bottomContainer,lowFrameRateMessage:f.lowFrameRateMessage});Object.defineProperties(o,{performanceWatchdog:{get:function(){return m}}})}var lyt=Rji;function Aji(o){let f=document.createElement("div");f.className="cesium-viewer-voxelInspectorContainer",o.container.appendChild(f);let m=new eNe(f,o.scene);Object.defineProperties(o,{voxelInspector:{get:function(){return m}}})}var uyt=Aji;globalThis.CESIUM_VERSION="1.129";var o0e="1.129";we();var Vi={};Bie(Vi,{AlphaMode:()=>PH,AlphaPipelineStage:()=>GAe,AnchorPointDirect:()=>FRe,AnchorPointIndirect:()=>DRe,Animation:()=>gDe,AnimationViewModel:()=>yDe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>fde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>_ce,AtmospherePipelineStage:()=>pAe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>h5e,AutomaticUniforms:()=>vB,Axis:()=>D0,AxisAlignedBoundingBox:()=>m7,B3dmLoader:()=>KRe,B3dmParser:()=>YRe,Base64Encoder:()=>bae,BaseLayerPicker:()=>vDe,BaseLayerPickerViewModel:()=>_De,BatchTable:()=>Cz,BatchTableHierarchy:()=>Nce,BatchTexture:()=>KT,BatchTexturePipelineStage:()=>FAe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>oV,BillboardLoadState:()=>Om,BillboardTexture:()=>fz,BillboardVisualizer:()=>gIe,BingMapsGeocoderService:()=>Smt,BingMapsImageryProvider:()=>vO,BingMapsStyle:()=>phe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>hz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ehe,BoxEmitter:()=>wde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>yIe,BoxGraphics:()=>Tue,BoxOutlineGeometry:()=>BS,BrdfLutGenerator:()=>g3e,Buffer:()=>mo,BufferLoader:()=>j7,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>ZAe,CallbackPositionProperty:()=>PVe,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>C5e,CameraEventType:()=>Jc,CameraFlightPath:()=>qPe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>wmt,CatmullRomSpline:()=>Emt,Cesium3DContentGroup:()=>Jce,Cesium3DTile:()=>Wb,Cesium3DTileBatchTable:()=>dq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>yxt,Cesium3DTileContentFactory:()=>rhe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>r4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>she,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>bZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>ZS,Cesium3DTileStyleEngine:()=>CVe,Cesium3DTilesInspector:()=>SDe,Cesium3DTilesInspectorViewModel:()=>TDe,Cesium3DTilesVoxelProvider:()=>_xt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>SVe,Cesium3DTilesetCache:()=>vVe,Cesium3DTilesetGraphics:()=>Pue,Cesium3DTilesetHeatmap:()=>bVe,Cesium3DTilesetMetadata:()=>ahe,Cesium3DTilesetMostDetailedTraversal:()=>TVe,Cesium3DTilesetSkipTraversal:()=>wVe,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>LVe,CesiumInspector:()=>EDe,CesiumInspectorViewModel:()=>wDe,CesiumNavigation:()=>JFe,CesiumRenderPass:()=>nDe,CesiumTerrainProvider:()=>N4,CesiumWidget:()=>A4,Check:()=>Da,CheckerboardMaterialProperty:()=>ele,CircleEmitter:()=>TFe,CircleGeometry:()=>Vmt,CircleOutlineGeometry:()=>Gmt,CircleWaveMaterialProperty:()=>pz,ClassificationModelDrawCommand:()=>FMe,ClassificationPipelineStage:()=>DAe,ClassificationPrimitive:()=>Tz,ClassificationType:()=>hc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>kb,ClippingPolygonCollection:()=>Ry,Clock:()=>Az,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>xDe,CloudCollection:()=>Ext,CloudType:()=>hle,CollectionSource:()=>Uit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Wgt,CommandLoader:()=>jFe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>KMe,CompositeEntityCollection:()=>tmt,CompositeMaterialProperty:()=>ile,CompositePositionProperty:()=>i1,CompositeProperty:()=>rS,CompressedTextureBuffer:()=>DS,ComputeCommand:()=>cV,ComputeEngine:()=>l3e,ComputeRegionBox:()=>xxt,ConditionsExpression:()=>kLe,ConeEmitter:()=>X4,ConicArcSensor:()=>ble,ConicArcSensorCollection:()=>Agt,ConicArcSensorGeometry:()=>Tle,ConicArcSensorGraphics:()=>vle,ConicArcSensorOutlineGeometry:()=>Sle,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>eAe,ConstructionWorker:()=>Hit,ContentMetadata:()=>cVe,Context:()=>m3e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>lO,CoplanarPolygonGeometryLibrary:()=>DB,CoplanarPolygonOutlineGeometry:()=>tM,CornerType:()=>ad,CorrelationGroup:()=>NRe,CorridorGeometry:()=>N7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>bIe,CorridorGraphics:()=>Sue,CorridorOutlineGeometry:()=>vIe,Credit:()=>Oa,CreditDisplay:()=>y3e,CubeMap:()=>Ig,CubeMapFace:()=>ySe,CubicRealPolynomial:()=>r7,CullFace:()=>yh,CullingVolume:()=>pm,CumulusCloud:()=>wL,CustomDataSource:()=>Aue,CustomHeightmapTerrainProvider:()=>Fmt,CustomMercatorProjection:()=>xz,CustomShader:()=>P1,CustomShaderManagerEx:()=>yue,CustomShaderMode:()=>h7,CustomShaderPipelineStage:()=>zAe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Ert,CylinderGeometry:()=>W7,CylinderGeometryLibrary:()=>pce,CylinderGeometryUpdater:()=>CIe,CylinderGraphics:()=>wue,CylinderOutlineGeometry:()=>Z7,CzmlDataSource:()=>qq,DataSource:()=>Sy,DataSourceClock:()=>r9,DataSourceCollection:()=>mIe,DataSourceDisplay:()=>Cq,DebugAppearance:()=>Mxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>M5e,DebugModelMatrixPrimitive:()=>LFe,DefaultProxy:()=>Nmt,DepthFunction:()=>wy,DepthPlane:()=>b3e,DequantizationPipelineStage:()=>YAe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>C3e,DirectionalLight:()=>k4,DiscardEmptyTileImagePolicy:()=>fhe,DiscardMissingTileImagePolicy:()=>XVe,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>OFe,DoubleEndedPriorityQueue:()=>Hhe,DoublyLinkedList:()=>gq,DracoLoader:()=>Q7,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>k7,DynamicEnvironmentMapManager:()=>LH,DynamicGeometryBatch:()=>cce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>p7,EarthOrientationParameters:()=>JTe,EarthOrientationParametersSample:()=>i7,EasingFunction:()=>J_,EllipseGeometry:()=>TS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>TIe,EllipseGraphics:()=>Eue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>LIe,EllipsoidGraphics:()=>Ez,EllipsoidOutlineGeometry:()=>Fb,EllipsoidPrimitive:()=>a3e,EllipsoidRhumbLine:()=>lS,EllipsoidSurfaceAppearance:()=>iO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>IS,EllipsoidalOccluder:()=>k9,Empty3DTileContent:()=>x6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>kS,EntityView:()=>GVe,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>mb,ExpandByTerra:()=>Lrt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>eDe,FBXPrimitive:()=>Ade,FBXTreeParser:()=>$Fe,FeatureDataProvider:()=>Kue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>cq,FeatureJsonData:()=>Gz,FisheyeProjectionMap:()=>V7,FisheyeProjectionMapShader:()=>Bj,FlattenVS:()=>Egt,FlowEcharts:()=>Sde,Fog:()=>S3e,ForEach:()=>Or,FrameRateMonitor:()=>PFe,FrameState:()=>w3e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Vhe,FrustumGeometry:()=>Fz,FrustumOutlineGeometry:()=>M7,Fullscreen:()=>km,FullscreenButton:()=>PDe,FullscreenButtonViewModel:()=>LDe,GWBaiduImageryProvider:()=>Nz,GeoJsonDataSource:()=>qZ,GeoJsonLoader:()=>QRe,GeocodeType:()=>e$,Geocoder:()=>MDe,GeocoderService:()=>_de,GeocoderViewModel:()=>ADe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>JMe,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Xmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>jAe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>X7,GeometryVisualizer:()=>YIe,GetFeatureInfoFormat:()=>nQ,GifImageProperty:()=>gst,Globe:()=>t3e,GlobeDepth:()=>A3e,GlobeSurfaceShaderSet:()=>ZVe,GlobeSurfaceTile:()=>XM,GlobeSurfaceTileProvider:()=>qVe,GlobeTranslucency:()=>Rq,GlobeTranslucencyFramebuffer:()=>M3e,GlobeTranslucencyState:()=>L3e,GltfBufferViewLoader:()=>Cce,GltfDracoLoader:()=>Tce,GltfGpmLoader:()=>ZRe,GltfGpmLocal:()=>Dce,GltfImageLoader:()=>Sce,GltfIndexBufferLoader:()=>wce,GltfInstanceLoader:()=>Wce,GltfJsonLoader:()=>Pce,GltfLoader:()=>fO,GltfLoaderUtil:()=>WM,GltfMeshPrimitiveGpmLoader:()=>URe,GltfStructuralMetadataLoader:()=>VRe,GltfTextureLoader:()=>Ice,GltfVertexBufferLoader:()=>Rce,GoogleEarthEnterpriseImageryProvider:()=>Vxt,GoogleEarthEnterpriseMapsProvider:()=>BVe,GoogleEarthEnterpriseMetadata:()=>Z4,GoogleEarthEnterpriseTerrainData:()=>cle,GoogleEarthEnterpriseTerrainProvider:()=>Ymt,GoogleEarthEnterpriseTileInformation:()=>pFe,GoogleGeocoderService:()=>Jmt,GoogleMaps:()=>hQ,GpxDataSource:()=>QGe,Graticules:()=>nce,GregorianDate:()=>dz,GridImageryProvider:()=>Gxt,GridMaterialProperty:()=>rle,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>vz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>XS,GroupMetadata:()=>Ese,GwBufferAnalysis:()=>oce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>XTe,HeightMap:()=>bgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>dhe,HermitePolynomialApproximation:()=>NGe,HermiteSpline:()=>p6,HilbertOrder:()=>bse,HomeButton:()=>GDe,HomeButtonViewModel:()=>VDe,HorizontalOrigin:()=>ec,HugeAdapter:()=>hq,I3SBuildingSceneLayerExplorer:()=>$gt,I3SBuildingSceneLayerExplorerViewModel:()=>FDe,I3SDataProvider:()=>gR,I3SDecoder:()=>SGe,I3SFeature:()=>EGe,I3SField:()=>LGe,I3SGeometry:()=>Kse,I3SLayer:()=>qhe,I3SNode:()=>Jse,I3SStatistics:()=>IGe,I3SSublayer:()=>RGe,I3SSymbology:()=>PGe,I3dmLoader:()=>$Re,I3dmParser:()=>qRe,ITwinData:()=>Fxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>r3e,Iau2006XysData:()=>QTe,Iau2006XysSample:()=>rue,IauOrientationAxes:()=>n3e,IauOrientationParameters:()=>i3e,ImageBasedLighting:()=>aq,ImageBasedLightingPipelineStage:()=>mAe,ImageCombine:()=>mue,ImageMaterialProperty:()=>O0,Imagery:()=>_he,ImageryLayer:()=>Up,ImageryLayerCollection:()=>$Ve,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>wse,ImplicitAvailabilityBitstream:()=>Tse,ImplicitMetadataView:()=>Qce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>qce,ImplicitSubtreeCache:()=>bFe,ImplicitSubtreeMetadata:()=>$Me,ImplicitTileCoordinates:()=>che,ImplicitTileset:()=>uhe,IndexDatatype:()=>Fn,InfoBox:()=>WDe,InfoBoxViewModel:()=>NDe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>IAe,InterpolationAlgorithm:()=>jmt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>fc,Intersections2D:()=>D4,Interval:()=>VE,InvertClassification:()=>Ahe,Ion:()=>GG,IonGeocodeProviderType:()=>XZ,IonGeocoderService:()=>Cde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>HB,Iso8601:()=>wn,JobScheduler:()=>P3e,JobType:()=>G_,JsonMetadataTable:()=>H7,JulianDate:()=>$t,KTX2Transcoder:()=>BTe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>bPe,KmlDataSource:()=>I7,KmlLookAt:()=>CPe,KmlTour:()=>TPe,KmlTourFlyTo:()=>SPe,KmlTourWait:()=>EPe,Label:()=>bQ,LabelCollection:()=>tV,LabelGraphics:()=>Lz,LabelStyle:()=>f0,LabelVisualizer:()=>KIe,LagrangePolynomialApproximation:()=>ZGe,LeapSecond:()=>xh,Light:()=>Nxt,LightingModel:()=>uv,LightingPipelineStage:()=>qAe,LinearApproximation:()=>Uue,LinearSampler:()=>qI,LinearSpline:()=>uq,MTLLoader:()=>tDe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>$mt,MapboxImageryProvider:()=>bO,MapboxStyleImageryProvider:()=>Zxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>eMe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>zhe,MeshParser:()=>qFe,MeshPhongMaterial:()=>fQ,MeshPrimitiveGpmLocal:()=>kRe,MetadataClass:()=>Qz,MetadataClassProperty:()=>Kz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>RRe,MetadataEnumValue:()=>IRe,MetadataPicking:()=>I3e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>EM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Ace,MetadataSemantic:()=>$ce,MetadataTable:()=>dO,MetadataTableProperty:()=>aRe,MetadataType:()=>fo,MipmapHint:()=>Z9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>vMe,ModelAnimation:()=>aAe,ModelAnimationChannel:()=>nAe,ModelAnimationCollection:()=>sAe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>yAe,ModelArticulationStage:()=>gAe,ModelClippingPlanesPipelineStage:()=>bAe,ModelClippingPolygonsPipelineStage:()=>SAe,ModelColorPipelineStage:()=>f6,ModelComponents:()=>ll,ModelDrawCommand:()=>DMe,ModelDrawCommands:()=>ZMe,ModelFeature:()=>lAe,ModelFeatureTable:()=>uAe,ModelFlattenPipelineStage:()=>kMe,ModelGraphics:()=>x7,ModelLightingOptions:()=>MMe,ModelMatrixUpdateStage:()=>AAe,ModelNode:()=>wAe,ModelRenderResources:()=>wMe,ModelRuntimeNode:()=>VAe,ModelRuntimePrimitive:()=>gMe,ModelSceneGraph:()=>UMe,ModelSilhouettePipelineStage:()=>PMe,ModelSkin:()=>_Me,ModelSplitterPipelineStage:()=>RMe,ModelStatistics:()=>BMe,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>YMe,Moon:()=>s3e,MorphTargetsPipelineStage:()=>iMe,MorphWeightSpline:()=>ext,MortonOrder:()=>AH,MultiResourceImageryProvider:()=>Wz,MultiResourceTerrainProvider:()=>ace,Multiple3DTileContent:()=>mVe,MultisampleFramebuffer:()=>HRe,NavigationControl:()=>J4,NavigationHelpButton:()=>ODe,NavigationHelpButtonViewModel:()=>ZDe,NavigationUtils:()=>j4,NavigationViewModel:()=>dQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Oxt,NodeRenderResources:()=>AMe,NodeStatisticsPipelineStage:()=>MAe,NodeTransformationProperty:()=>Lue,OBJLoader:()=>rDe,OBJPrimitive:()=>Mde,OIT:()=>D3e,Occluder:()=>rce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Zz,OpenCageGeocoderService:()=>txt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>xIe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>xm,Packable:()=>ixt,PackableForInterpolation:()=>rxt,Particle:()=>Lde,ParticleBurst:()=>B4,ParticleEmitter:()=>Uxt,ParticleSystem:()=>QS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>g7,PathVisualizer:()=>IVe,PeliasGeocoderService:()=>xFe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Fq,PerformanceWatchdog:()=>HDe,PerformanceWatchdogViewModel:()=>BDe,PerspectiveFrustum:()=>mc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>G7,PerspectiveProjectionMapShader:()=>Hj,PerspectiveProjectionMapWithDepth:()=>F7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>R3e,PickDepthFramebuffer:()=>N3e,PickFramebuffer:()=>W3e,PickGlobeSlope:()=>Nft,PickedMetadataInfo:()=>aGe,Picking:()=>H3e,PickingPipelineStage:()=>rMe,PinBuilder:()=>b7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>PIe,PlaneGeometryUpdater:()=>AIe,PlaneGraphics:()=>iPe,PlaneOutlineGeometry:()=>IIe,PntsLoader:()=>HMe,PntsParser:()=>Yce,PointCloud:()=>CGe,PointCloudEyeDomeLighting:()=>sq,PointCloudShading:()=>i4,PointCloudStylingPipelineStage:()=>oMe,PointGraphics:()=>Iue,PointLight:()=>ede,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>iV,PointVisualizer:()=>RVe,PolygonDepth:()=>b9,PolygonDepthFS:()=>Bce,PolygonDepthVS:()=>Hce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>VIe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>MIe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>om,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>AVe,PolylineGlowMaterialProperty:()=>nle,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>KM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Wft,PolylineVisualizer:()=>VVe,PolylineVolumeGeometry:()=>GIe,PolylineVolumeGeometryLibrary:()=>u9,PolylineVolumeGeometryUpdater:()=>DIe,PolylineVolumeGraphics:()=>Rue,PolylineVolumeOutlineGeometry:()=>FIe,PositionProperty:()=>wz,PositionPropertyArray:()=>dH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>m5e,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>Ohe,PpeMetadata:()=>XRe,PpeSource:()=>Vgt,PpeTexture:()=>ORe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>iq,PrimitiveOutlineGenerator:()=>Gce,PrimitiveOutlinePipelineStage:()=>lMe,PrimitivePipeline:()=>jZ,PrimitiveRenderResources:()=>VMe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>uMe,PrimitiveType:()=>pn,ProjectionPicker:()=>kDe,ProjectionPickerViewModel:()=>XDe,Property:()=>Nt,PropertyArray:()=>cde,PropertyAttribute:()=>bce,PropertyAttributeProperty:()=>rRe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>Y7,PropertyTextureProperty:()=>tRe,ProviderViewModel:()=>Ef,Proxy:()=>axt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>She,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Xft,QuadtreeTile:()=>Aq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>OO,QuantizedMeshTerrainData:()=>xde,QuarticRealPolynomial:()=>pSe,Quaternion:()=>fr,QuaternionSpline:()=>iAe,Queue:()=>aV,RasterizeHtml:()=>M4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>yce,RectangleGeometry:()=>uO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>kIe,RectangleGraphics:()=>Pz,RectangleOutlineGeometry:()=>mce,RectangularSensor:()=>V6,RectangularSensorFS:()=>mle,RectangularSensorGraphics:()=>Mgt,RectangularSensorPrimitive:()=>cDe,RectangularSensorScanPlaneFS:()=>uDe,RectangularSensorVS:()=>Gde,RectangularSensorVisualizer:()=>hDe,ReferenceFrame:()=>pp,ReferenceProperty:()=>L7,RegionPolygonTexture:()=>DFe,RegionTexture:()=>NFe,RegionWeather:()=>Vde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Pb,Request:()=>hm,RequestErrorEvent:()=>zZ,RequestScheduler:()=>x1,RequestState:()=>pc,RequestType:()=>n2,ResetViewNavigationControl:()=>UFe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>zS,ResourceCacheStatistics:()=>MRe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>kB,S3MDataSource:()=>Hft,SDFSettings:()=>ev,SampledPositionProperty:()=>nS,SampledProperty:()=>uM,Sampler:()=>Yo,ScaledPositionProperty:()=>Mz,Scene:()=>VO,SceneFramebuffer:()=>Ghe,SceneHeightMap:()=>lDe,SceneHeightWaterPostProcessing:()=>XT,SceneHeightWaterPrimitive:()=>xgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>cMe,SceneModePicker:()=>YDe,SceneModePickerViewModel:()=>zDe,SceneTransforms:()=>Ca,SceneTransitioner:()=>b5e,ScreenSpaceCameraController:()=>P5e,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>m6,SelectionIndicator:()=>JDe,SelectionIndicatorViewModel:()=>KDe,Sensor:()=>ygt,SensorVolumePortionToDisplay:()=>ale,ShaderBuilder:()=>kce,ShaderCache:()=>c3e,ShaderDestination:()=>Ji,ShaderFunction:()=>SMe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>CMe,ShadowMap:()=>PV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>gM,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>v6,SimplePolylineGeometry:()=>sxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>dMe,SkyAtmosphere:()=>zq,SkyBox:()=>GO,SlopeArrow:()=>Dde,SpatialNode:()=>iGe,Spdcf:()=>WRe,SpecularEnvironmentCubeMap:()=>_9,SphereEmitter:()=>H4,SphereGeometry:()=>lxt,SphereOutlineGeometry:()=>sV,Spherical:()=>OGe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>Khe,SpotLight:()=>Yft,StaticGeometryColorBatch:()=>hM,StaticGeometryPerMaterialBatch:()=>dM,StaticGroundGeometryColorBatch:()=>use,StaticGroundGeometryPerMaterialBatch:()=>zIe,StaticGroundPolylinePerMaterialBatch:()=>MVe,StaticOutlineGeometryBatch:()=>cse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>tAe,Stereographic:()=>Lb,StorageType:()=>IH,StripeMaterialProperty:()=>ole,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>v9,StyleExpression:()=>Bxt,Sun:()=>vGe,SunLight:()=>C4,SunPostProcess:()=>A5e,SupportedImageFormats:()=>GRe,SvgPathBindingHandler:()=>mDe,TaskProcessor:()=>mp,Terrain:()=>VFe,TerrainData:()=>yO,TerrainEncoding:()=>PS,TerrainFillMesh:()=>Che,TerrainFlatten:()=>kO,TerrainFlattenPolygonTexture:()=>WFe,TerrainMesh:()=>_O,TerrainOffsetProperty:()=>dce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>sDe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>qGe,TextureAtlas:()=>aue,TextureCache:()=>h3e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>OLe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>oue,TextureUniform:()=>cue,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>LS,TileBoundingS2Cell:()=>xVe,TileBoundingSphere:()=>bV,TileBoundingVolume:()=>Hxt,TileCoordinatesImageryProvider:()=>l$,TileDiscardPolicy:()=>zxt,TileEdge:()=>hs,TileImagery:()=>vhe,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>dVe,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>am,TileReplacementQueue:()=>Ehe,TileSelectionResult:()=>fa,TileState:()=>Yxt,Tileset3DTileContent:()=>eVe,TilesetMetadata:()=>_Ve,TilesetPipelineStage:()=>cAe,TilesetRegionWeather:()=>aDe,TilingScheme:()=>uxt,TimeConstants:()=>cc,TimeDynamicImagery:()=>yhe,TimeDynamicPointCloud:()=>Jhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>MH,TimeIntervalCollectionProperty:()=>pH,TimeStandard:()=>cu,Timeline:()=>qDe,TimelineHighlightRange:()=>jDe,TimelineTrack:()=>QDe,Tipsify:()=>mSe,ToggleButtonViewModel:()=>gB,Tonemapper:()=>SZ,TrackingReferenceFrame:()=>wB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>U3e,TridiagonalSystemSolver:()=>Zce,TrustedServers:()=>qle,TweenCollection:()=>Uhe,UniformState:()=>d3e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>jft,UrlTemplateImageryProvider:()=>Hb,UserInterfaceControl:()=>Rde,Utils:()=>TL,VERSION:()=>o0e,VRButton:()=>iNe,VRButtonViewModel:()=>tNe,VRTheWorldTerrainProvider:()=>pxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>RH,Vector3DTileClampedPolylines:()=>aVe,Vector3DTileContent:()=>uVe,Vector3DTileGeometry:()=>dZ,Vector3DTilePoints:()=>tVe,Vector3DTilePolygons:()=>iVe,Vector3DTilePolylines:()=>ihe,Vector3DTilePrimitive:()=>jce,VelocityOrientationProperty:()=>XGe,VelocityVectorProperty:()=>Tq,VertexArray:()=>Cu,VertexArrayFacade:()=>o7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>fMe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>cxt,View:()=>N1,ViewShed:()=>Igt,ViewShedMap:()=>I4,ViewShedMapShader:()=>XG,Viewer:()=>n0e,ViewportQuad:()=>Y4,Visibility:()=>Rl,Visualizer:()=>vmt,VolumeCloud:()=>Nde,VoxelBoxShape:()=>Xq,VoxelCell:()=>V5e,VoxelContent:()=>Bhe,VoxelCylinderShape:()=>kq,VoxelEllipsoidShape:()=>Uq,VoxelInspector:()=>eNe,VoxelInspectorViewModel:()=>$De,VoxelMetadataOrder:()=>w9,VoxelPrimitive:()=>Hq,VoxelProvider:()=>Kxt,VoxelRenderResources:()=>K5e,VoxelShape:()=>Jxt,VoxelShapeType:()=>Vb,VoxelTraversal:()=>rGe,VulkanConstants:()=>fxt,WallGeometry:()=>UIe,WallGeometryLibrary:()=>xce,WallGeometryUpdater:()=>HIe,WallGraphics:()=>y7,WallOutlineGeometry:()=>BIe,WaterFS:()=>jPe,WaterHeightMap:()=>Cgt,WaterMaterialProperty:()=>Qft,WaterPipelinePrimitive:()=>ade,WaterPostProcessing:()=>yle,WaterPostProcessingEx:()=>_le,WaterPrimitive:()=>Wde,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>dDe,WaterReflectImageEx:()=>pDe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>CO,WebMapTileServiceImageryProvider:()=>wV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>xp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Xce,WireframePipelineStage:()=>xMe,ZoomNavigationControl:()=>dle,_shadersAcesTonemappingStage:()=>z3e,_shadersAdditiveBlend:()=>I5e,_shadersAdjustTranslucentFS:()=>Wse,_shadersAllMaterialAppearanceFS:()=>ZPe,_shadersAllMaterialAppearanceVS:()=>OPe,_shadersAmbientOcclusionGenerate:()=>Y3e,_shadersAmbientOcclusionModulate:()=>K3e,_shadersAspectRampMaterial:()=>vSe,_shadersAtmosphereCommon:()=>g9,_shadersAtmosphereStageFS:()=>hAe,_shadersAtmosphereStageVS:()=>dAe,_shadersBasicMaterialAppearanceFS:()=>XPe,_shadersBasicMaterialAppearanceVS:()=>kPe,_shadersBillboardCollectionFS:()=>bLe,_shadersBillboardCollectionVS:()=>CLe,_shadersBlackAndWhite:()=>J3e,_shadersBloomComposite:()=>j3e,_shadersBrdfLutGeneratorFS:()=>x3e,_shadersBrightPass:()=>R5e,_shadersBrightness:()=>Q3e,_shadersBumpMapMaterial:()=>bSe,_shadersCPUStylingStageFS:()=>WAe,_shadersCPUStylingStageVS:()=>NAe,_shadersCheckerboardMaterial:()=>CSe,_shadersCloudCollectionFS:()=>$Ge,_shadersCloudCollectionVS:()=>eFe,_shadersCloudNoiseFS:()=>tFe,_shadersCloudNoiseVS:()=>iFe,_shadersCompareAndPackTranslucentDepth:()=>k3e,_shadersCompositeOITFS:()=>V3e,_shadersCompositeTranslucentClassification:()=>oQ,_shadersComputeIrradianceFS:()=>jIe,_shadersComputeRadianceMapFS:()=>QIe,_shadersContrastBias:()=>q3e,_shadersConvolveSpecularMapFS:()=>qIe,_shadersConvolveSpecularMapVS:()=>$Ie,_shadersCustomShaderStageFS:()=>XAe,_shadersCustomShaderStageVS:()=>OAe,_shadersCzmBuiltins:()=>Ij,_shadersDepthOfField:()=>$3e,_shadersDepthPlaneFS:()=>_3e,_shadersDepthPlaneVS:()=>v3e,_shadersDepthView:()=>e5e,_shadersDepthViewPacked:()=>Tgt,_shadersDotMaterial:()=>TSe,_shadersEdgeDetection:()=>t5e,_shadersElevationBandMaterial:()=>SSe,_shadersElevationContourMaterial:()=>wSe,_shadersElevationRampMaterial:()=>ESe,_shadersEllipsoidFS:()=>Dse,_shadersEllipsoidSurfaceAppearanceFS:()=>HPe,_shadersEllipsoidSurfaceAppearanceVS:()=>zPe,_shadersEllipsoidVS:()=>Nse,_shadersFXAA:()=>n5e,_shadersFXAA3_11:()=>c5e,_shadersFadeMaterial:()=>LSe,_shadersFeatureIdStageFS:()=>kAe,_shadersFeatureIdStageVS:()=>UAe,_shadersFilmicTonemapping:()=>i5e,_shadersGaussianBlur1D:()=>T6,_shadersGeometryStageFS:()=>KAe,_shadersGeometryStageVS:()=>JAe,_shadersGlobeFS:()=>DVe,_shadersGlobeVS:()=>NVe,_shadersGridMaterial:()=>PSe,_shadersGroundAtmosphere:()=>Ise,_shadersHSBToRGB:()=>_Ee,_shadersHSLToRGB:()=>vEe,_shadersImageBasedLightingStageFS:()=>fAe,_shadersInstancingStageCommon:()=>EAe,_shadersInstancingStageVS:()=>LAe,_shadersIntersectBox:()=>O5e,_shadersIntersectClippingPlanes:()=>Z5e,_shadersIntersectCylinder:()=>X5e,_shadersIntersectDepth:()=>W5e,_shadersIntersectEllipsoid:()=>k5e,_shadersIntersectLongitude:()=>Xse,_shadersIntersection:()=>lQ,_shadersIntersectionUtils:()=>N5e,_shadersLegacyInstancingStageVS:()=>PAe,_shadersLensFlare:()=>o5e,_shadersLightingStageFS:()=>QAe,_shadersMaterialStageFS:()=>$Ae,_shadersMegatexture:()=>Y5e,_shadersMetadataStageFS:()=>BAe,_shadersMetadataStageVS:()=>HAe,_shadersModelClippingPlanesStageFS:()=>vAe,_shadersModelClippingPolygonsStageFS:()=>TAe,_shadersModelClippingPolygonsStageVS:()=>CAe,_shadersModelColorStageFS:()=>_Ae,_shadersModelFS:()=>WMe,_shadersModelFlattenStageFS:()=>XMe,_shadersModelFlattenStageVS:()=>OMe,_shadersModelSilhouetteStageFS:()=>EMe,_shadersModelSilhouetteStageVS:()=>LMe,_shadersModelSplitterStageFS:()=>IMe,_shadersModelVS:()=>NMe,_shadersModifiedReinhardTonemapping:()=>a5e,_shadersMorphTargetsStageVS:()=>tMe,_shadersNightVision:()=>s5e,_shadersNormalMapMaterial:()=>ISe,_shadersOctree:()=>z5e,_shadersPassThrough:()=>kM,_shadersPassThroughDepth:()=>C6,_shadersPbrNeutralTonemapping:()=>r5e,_shadersPerInstanceColorAppearanceFS:()=>$Le,_shadersPerInstanceColorAppearanceVS:()=>ePe,_shadersPerInstanceFlatColorAppearanceFS:()=>vue,_shadersPerInstanceFlatColorAppearanceVS:()=>tPe,_shadersPointCloudEyeDomeLighting:()=>zRe,_shadersPointCloudStylingStageVS:()=>nMe,_shadersPointPrimitiveCollectionFS:()=>nB,_shadersPointPrimitiveCollectionVS:()=>LLe,_shadersPolygonSignedDistanceFS:()=>JIe,_shadersPolylineArrowMaterial:()=>RSe,_shadersPolylineColorAppearanceVS:()=>JLe,_shadersPolylineCommon:()=>K9,_shadersPolylineDashMaterial:()=>ASe,_shadersPolylineFS:()=>bue,_shadersPolylineGlowMaterial:()=>MSe,_shadersPolylineMaterialAppearanceVS:()=>jLe,_shadersPolylineOutlineMaterial:()=>VSe,_shadersPolylineShadowVolumeFS:()=>HLe,_shadersPolylineShadowVolumeMorphFS:()=>zLe,_shadersPolylineShadowVolumeMorphVS:()=>YLe,_shadersPolylineShadowVolumeVS:()=>KLe,_shadersPolylineVS:()=>YPe,_shadersPostProcessRain:()=>Sgt,_shadersPostProcessSnow:()=>wgt,_shadersPrimitiveOutlineStageFS:()=>sMe,_shadersPrimitiveOutlineStageVS:()=>aMe,_shadersRGBToHSB:()=>zEe,_shadersRGBToHSL:()=>YEe,_shadersRGBToXYZ:()=>KEe,_shadersReinhardTonemapping:()=>l5e,_shadersReprojectWebMercatorFS:()=>YVe,_shadersReprojectWebMercatorVS:()=>KVe,_shadersRimLightingMaterial:()=>GSe,_shadersSelectedFeatureIdStageCommon:()=>yse,_shadersShadowVolumeAppearanceFS:()=>Cue,_shadersShadowVolumeAppearanceVS:()=>qLe,_shadersShadowVolumeFS:()=>PQ,_shadersSilhouette:()=>u5e,_shadersSkinningStageVS:()=>hMe,_shadersSkyAtmosphereCommon:()=>Hse,_shadersSkyAtmosphereFS:()=>dGe,_shadersSkyAtmosphereVS:()=>pGe,_shadersSkyBoxFS:()=>mGe,_shadersSkyBoxVS:()=>xGe,_shadersSlopeRampMaterial:()=>FSe,_shadersStripeMaterial:()=>DSe,_shadersSunFS:()=>gGe,_shadersSunTextureFS:()=>yGe,_shadersSunVS:()=>_Ge,_shadersTexturedMaterialAppearanceFS:()=>UPe,_shadersTexturedMaterialAppearanceVS:()=>BPe,_shadersVector3DTileClampedPolylinesFS:()=>oVe,_shadersVector3DTileClampedPolylinesVS:()=>nVe,_shadersVector3DTilePolylinesVS:()=>rVe,_shadersVectorTileVS:()=>vse,_shadersVerticalExaggerationStageVS:()=>pMe,_shadersViewportQuadFS:()=>rFe,_shadersViewportQuadVS:()=>Phe,_shadersVoxelFS:()=>F5e,_shadersVoxelUtils:()=>G5e,_shadersVoxelVS:()=>D5e,_shadersWater:()=>WSe,_shadersWaterMaskMaterial:()=>NSe,_shadersXYZToRGB:()=>yLe,_shadersacesTonemapping:()=>Nwe,_shadersalphaWeight:()=>Wwe,_shadersantialias:()=>Zwe,_shadersapplyHSBShift:()=>Owe,_shadersapproximateSphericalCoordinates:()=>Xwe,_shadersapproximateTanh:()=>kwe,_shadersbackFacing:()=>Uwe,_shadersbranchFreeTernary:()=>Bwe,_shaderscascadeColor:()=>Hwe,_shaderscascadeDistance:()=>zwe,_shaderscascadeMatrix:()=>Ywe,_shaderscascadeWeights:()=>Kwe,_shadersclipPolygons:()=>Jwe,_shaderscolumbusViewMorph:()=>jwe,_shaderscomputeAtmosphereColor:()=>Qwe,_shaderscomputeGroundAtmosphereScattering:()=>qwe,_shaderscomputePosition:()=>$we,_shaderscomputeScattering:()=>eEe,_shadersconvertUvToBox:()=>U5e,_shadersconvertUvToCylinder:()=>B5e,_shadersconvertUvToEllipsoid:()=>H5e,_shaderscosineAndSine:()=>tEe,_shadersdecompressTextureCoordinates:()=>iEe,_shadersdegreesPerRadian:()=>HSe,_shadersdepthClamp:()=>rEe,_shadersdepthRange:()=>zSe,_shadersdepthRangeStruct:()=>Iwe,_shaderseastNorthUpToEyeCoordinates:()=>nEe,_shadersellipsoidContainsPoint:()=>oEe,_shadersellipsoidTextureCoordinates:()=>aEe,_shadersepsilon1:()=>YSe,_shadersepsilon2:()=>KSe,_shadersepsilon3:()=>JSe,_shadersepsilon4:()=>jSe,_shadersepsilon5:()=>QSe,_shadersepsilon6:()=>qSe,_shadersepsilon7:()=>$Se,_shadersequalsEpsilon:()=>sEe,_shaderseyeOffset:()=>lEe,_shaderseyeToWindowCoordinates:()=>uEe,_shadersfastApproximateAtan:()=>cEe,_shadersfog:()=>hEe,_shadersgammaCorrect:()=>dEe,_shadersgeodeticSurfaceNormal:()=>pEe,_shadersgetDefaultMaterial:()=>fEe,_shadersgetDynamicAtmosphereLightDirection:()=>mEe,_shadersgetLambertDiffuse:()=>xEe,_shadersgetSpecular:()=>gEe,_shadersgetWaterNoise:()=>yEe,_shadershue:()=>bEe,_shadersinfinity:()=>ewe,_shadersinverseGamma:()=>CEe,_shadersisEmpty:()=>TEe,_shadersisFull:()=>SEe,_shaderslatitudeToWebMercatorFraction:()=>wEe,_shaderslineDistance:()=>LEe,_shaderslinearToSrgb:()=>EEe,_shadersluminance:()=>PEe,_shadersmaterial:()=>Rwe,_shadersmaterialInput:()=>Awe,_shadersmaximumComponent:()=>IEe,_shadersmetersPerPixel:()=>REe,_shadersmodelMaterial:()=>Mwe,_shadersmodelToWindowCoordinates:()=>AEe,_shadersmodelVertexOutput:()=>Vwe,_shadersmultiplyWithColorBalance:()=>MEe,_shadersnearFarScalar:()=>VEe,_shadersoctDecode:()=>GEe,_shadersoneOverPi:()=>twe,_shadersoneOverTwoPi:()=>iwe,_shaderspackDepth:()=>FEe,_shaderspassCesium3DTile:()=>rwe,_shaderspassCesium3DTileClassification:()=>nwe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>owe,_shaderspassClassification:()=>awe,_shaderspassCompute:()=>swe,_shaderspassEnvironment:()=>lwe,_shaderspassGlobe:()=>uwe,_shaderspassOpaque:()=>cwe,_shaderspassOverlay:()=>hwe,_shaderspassTerrainClassification:()=>dwe,_shaderspassTranslucent:()=>pwe,_shaderspassVoxels:()=>fwe,_shaderspbrLighting:()=>DEe,_shaderspbrNeutralTonemapping:()=>NEe,_shadersphong:()=>WEe,_shaderspi:()=>mwe,_shaderspiOverFour:()=>xwe,_shaderspiOverSix:()=>gwe,_shaderspiOverThree:()=>ywe,_shaderspiOverTwo:()=>_we,_shadersplaneDistance:()=>ZEe,_shaderspointAlongRay:()=>OEe,_shadersradiansPerDegree:()=>vwe,_shadersray:()=>Gwe,_shadersrayEllipsoidIntersectionInterval:()=>XEe,_shadersraySegment:()=>Fwe,_shadersraySphereIntersectionInterval:()=>kEe,_shadersreadDepth:()=>UEe,_shadersreadNonPerspective:()=>BEe,_shadersreverseLogDepth:()=>HEe,_shadersround:()=>JEe,_shaderssaturation:()=>jEe,_shaderssceneMode2D:()=>bwe,_shaderssceneMode3D:()=>Cwe,_shaderssceneModeColumbusView:()=>Twe,_shaderssceneModeMorphing:()=>Swe,_shadersshadowDepthCompare:()=>QEe,_shadersshadowParameters:()=>Dwe,_shadersshadowVisibility:()=>qEe,_shaderssignNotZero:()=>$Ee,_shaderssolarRadius:()=>wwe,_shaderssphericalHarmonics:()=>eLe,_shaderssrgbToLinear:()=>tLe,_shaderstangentToEyeSpaceMatrix:()=>iLe,_shaderstextureCube:()=>rLe,_shadersthreePiOver2:()=>Ewe,_shaderstransformPlane:()=>nLe,_shaderstranslateRelativeToEye:()=>oLe,_shaderstranslucentPhong:()=>aLe,_shaderstranspose:()=>sLe,_shaderstwoPi:()=>Lwe,_shadersunpackClippingExtents:()=>lLe,_shadersunpackDepth:()=>uLe,_shadersunpackFloat:()=>cLe,_shadersunpackUint:()=>hLe,_shadersvalueTransform:()=>dLe,_shadersvertexLogDepth:()=>pLe,_shaderswebMercatorMaxLatitude:()=>Pwe,_shaderswindowToEyeCoordinates:()=>fLe,_shaderswriteDepthClamp:()=>mLe,_shaderswriteLogDepth:()=>xLe,_shaderswriteNonPerspective:()=>gLe,addBuffer:()=>_Re,addDefaults:()=>hRe,addExtensionsRequired:()=>xRe,addExtensionsUsed:()=>pO,addPipelineExtras:()=>q7,addToArray:()=>n1,appendForwardSlash:()=>DTe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>nue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>j5e,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>hhe,createBillboardPointCallback:()=>the,createBlurStage:()=>fle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>bDe,createDefaultTerrainProviderViewModels:()=>CDe,createEdgeStage:()=>Q4,createElevationBandMaterial:()=>Pxt,createFragmentFromTemplate:()=>ZFe,createGooglePhotorealistic3DTileset:()=>Ixt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Rxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>vb,createTangentSpaceDebugPrimitive:()=>Axt,createTaskProcessorWorker:()=>Ggt,createUniform:()=>kSe,createUniformArray:()=>BSe,createWorldBathymetryAsync:()=>cFe,createWorldImageryAsync:()=>zB,createWorldTerrainAsync:()=>gde,decodeGoogleEarthEnterpriseData:()=>dFe,decodeVectorPolylinePositions:()=>sVe,defaultValue:()=>Zmt,defer:()=>fp,defined:()=>F,demodernizeShader:()=>_Le,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>fmt,fflate_module:()=>QFe,findAccessorMinMax:()=>$7,findContentMetadata:()=>nhe,findGroupMetadata:()=>ohe,findTileMetadata:()=>fVe,forEachTextureInMaterial:()=>Lce,formatError:()=>_H,fragment:()=>Lgt,freezeRenderState:()=>utt,getAbsoluteUri:()=>$B,getAccessorByteStride:()=>XF,getBaseUri:()=>WTe,getBinaryAccessor:()=>CM,getClipAndStyleCode:()=>bGe,getClippingFunction:()=>wq,getComponentReader:()=>U7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>v7,getImageFromTypedArray:()=>ZLe,getImagePixels:()=>BZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>jz,getMetadataClassProperty:()=>oGe,getMetadataProperty:()=>sGe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>D7,isBitSet:()=>m1,isBlobUri:()=>Kle,isCrossOriginUrl:()=>HZ,isDataUri:()=>e7,isLeapYear:()=>YZ,knockout:()=>sr,knockout_3_5_1:()=>VV,knockout_es5:()=>fDe,libgif:()=>oIe,loadAndExecuteScript:()=>Jle,loadCRN:()=>qmt,loadCubeMap:()=>fGe,loadDDS:()=>$le,loadImageFromTypedArray:()=>Jz,loadKTX2:()=>IF,loadView:()=>Ide,mergeSort:()=>b4,moveTechniqueRenderStates:()=>mRe,moveTechniquesToExtension:()=>gRe,numberOfComponentsForType:()=>hO,objFS:()=>iDe,objectToQuery:()=>jle,oneTimeWarning:()=>aa,packer:()=>ULe,parseBatchTable:()=>$z,parseDefines:()=>oDe,parseFeatureMetadataLegacy:()=>lRe,parseGlb:()=>pRe,parseResponseHeaders:()=>ZTe,parseStructuralMetadata:()=>sRe,pickModel:()=>zMe,pointInsideTriangle:()=>nxt,preprocess3DTileContent:()=>fq,processVoxelProperties:()=>J5e,queryToObject:()=>lI,rasterizeHTML_allinone:()=>VGe,readAccessorPacked:()=>vRe,removeExtension:()=>h6,removeExtensionsRequired:()=>dRe,removeExtensionsUsed:()=>Ece,removePipelineExtras:()=>fRe,removeUnusedElements:()=>yRe,remove_primitive:()=>M6,resizeImageToNextPowerOfTwo:()=>EQ,sampleTerrain:()=>Sq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>eue,srgbToLinear:()=>jhe,subdivideArray:()=>QLe,subscribeAndEvaluate:()=>Eb,svgCompassGyro:()=>HFe,svgCompassOuterRing:()=>BFe,svgCompassRotationMarker:()=>zFe,svgReset:()=>XFe,turf:()=>Po,updateAccessorComponentTypes:()=>bRe,updateVersion:()=>SRe,usesExtension:()=>um,vertex:()=>Pgt,viewerCesium3DTilesInspectorMixin:()=>oyt,viewerCesiumInspectorMixin:()=>ayt,viewerCesiumNavigationMixin:()=>igt,viewerDragDropMixin:()=>syt,viewerPerformanceWatchdogMixin:()=>lyt,viewerVoxelInspectorMixin:()=>uyt,webGLConstantToGlslType:()=>mxt,wrapFunction:()=>_Fe,writeTextToCanvas:()=>H9});we();we();function _$(o=!0){this.async=o}_$.prototype.getXmlHttpRequest=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("MsXml2.XmlHttp")};_$.prototype.includeJsText=function(o,f){if(o!=null){var m=document.createElement("script");m.type="text/javascript",m.text=f,o.appendChild(m)}};_$.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)}};_$.prototype.addJs=function(o,f,m){var x=this.getXmlHttpRequest(),y=this;x.onreadystatechange=function(){x.readyState===4&&(x.status===200||x.status===304?y.includeJsSrc(o,f,m):console.log("XML request error: "+x.statusText+" ("+x.status+")"))},x.open("GET",f,y.async),x.send(null),x.status===404?console.log(f+" is not found"):y.includeJsText(o,x.responseText)};var ex=_$;we();we();var Mji={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"}},$r=Object.freeze(Mji);we();we();we();function Vji(o,f){return o??f}var Ff=Vji;we();var hyt=`// author: \u5F20\u4E39\u948A +`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileShader();return!0};qS.prototype.isDestroyed=function(){return!1};qS.prototype.destroy=function(){let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};var iNe=qS;function n0e(o,f){o=Qh(o);let m=document.createElement("div"),x=new iNe(f);this._viewModel=x,this._container=o,this._element=m;let y=document.createElement("div");y.textContent="Voxel Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleInspector"),m.appendChild(y),m.className="cesium-cesiumInspector cesium-VoxelInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let v=document.createElement("div");v.className="cesium-cesiumInspector-dropDown",m.appendChild(v);let{createSection:C,createCheckbox:T,createRangeInput:S,createButton:w}=sI,E=C(v,"Display","displayVisible","toggleDisplay"),L=C(v,"Transform","transformVisible","toggleTransform"),I=C(v,"Clipping","clippingVisible","toggleClipping"),R=C(v,"Shader","shaderVisible","toggleShader");E.appendChild(T("Depth Test","depthTest")),E.appendChild(T("Show","show")),E.appendChild(T("Disable Update","disableUpdate")),E.appendChild(T("Debug Draw","debugDraw")),E.appendChild(T("Jitter","jitter")),E.appendChild(T("Nearest Sampling","nearestSampling")),E.appendChild(S("Screen Space Error","screenSpaceError",0,128)),E.appendChild(S("Step Size","stepSize",0,2));let P=10,A=10,M=be.PI;L.appendChild(S("Translation X","translationX",-P,+P)),L.appendChild(S("Translation Y","translationY",-P,+P)),L.appendChild(S("Translation Z","translationZ",-P,+P)),L.appendChild(S("Scale X","scaleX",0,+A)),L.appendChild(S("Scale Y","scaleY",0,+A)),L.appendChild(S("Scale Z","scaleZ",0,+A)),L.appendChild(S("Heading","angleX",-M,+M)),L.appendChild(S("Pitch","angleY",-M,+M)),L.appendChild(S("Roll","angleZ",-M,+M)),ybe("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ","shapeIsBox",I),ybe("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight","shapeIsEllipsoid",I),ybe("Max Radius","Min Radius","Max Angle","Min Angle","Max Height","Min Height","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxAngle","clippingCylinderMinAngle","clippingCylinderMaxHeight","clippingCylinderMinHeight","shapeIsCylinder",I);let V=document.createElement("div");R.appendChild(V);let G=document.createElement("textarea");G.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),V.className="cesium-cesiumInspector-styleEditor",V.appendChild(G);let D=w("Compile (Ctrl+Enter)","compileShader");V.appendChild(D);let N=document.createElement("label");N.style.display="block",N.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),V.appendChild(N),sr.applyBindings(x,m)}Object.defineProperties(n0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});n0e.prototype.isDestroyed=function(){return!1};n0e.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};function ybe(o,f,m,x,y,v,C,T,S,w,E,L,I,R){let P=sI.createRangeInputWithDynamicMinMax,A=R.appendChild(document.createElement("div"));A.setAttribute("data-bind",`if: ${I}`),A.appendChild(P(o,C)),A.appendChild(P(f,T)),A.appendChild(P(m,S)),A.appendChild(P(x,w)),A.appendChild(P(y,E)),A.appendChild(P(v,L))}var rNe=n0e;function Aji(o){let f=document.createElement("div");f.className="cesium-viewer-voxelInspectorContainer",o.container.appendChild(f);let m=new rNe(f,o.scene);Object.defineProperties(o,{voxelInspector:{get:function(){return m}}})}var uyt=Aji;globalThis.CESIUM_VERSION="1.129";var o0e="1.129";we();var Vi={};Bie(Vi,{AlphaMode:()=>PH,AlphaPipelineStage:()=>GAe,AnchorPointDirect:()=>FRe,AnchorPointIndirect:()=>DRe,Animation:()=>gDe,AnimationViewModel:()=>yDe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>fde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>_ce,AtmospherePipelineStage:()=>pAe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>h5e,AutomaticUniforms:()=>vB,Axis:()=>D0,AxisAlignedBoundingBox:()=>m7,B3dmLoader:()=>KRe,B3dmParser:()=>YRe,Base64Encoder:()=>bae,BaseLayerPicker:()=>vDe,BaseLayerPickerViewModel:()=>_De,BatchTable:()=>Cz,BatchTableHierarchy:()=>Nce,BatchTexture:()=>KT,BatchTexturePipelineStage:()=>FAe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>oV,BillboardLoadState:()=>Om,BillboardTexture:()=>fz,BillboardVisualizer:()=>gIe,BingMapsGeocoderService:()=>Smt,BingMapsImageryProvider:()=>vO,BingMapsStyle:()=>phe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>hz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ehe,BoxEmitter:()=>Sde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>yIe,BoxGraphics:()=>Tue,BoxOutlineGeometry:()=>BS,BrdfLutGenerator:()=>g3e,Buffer:()=>mo,BufferLoader:()=>j7,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>ZAe,CallbackPositionProperty:()=>PVe,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>C5e,CameraEventType:()=>Jc,CameraFlightPath:()=>qPe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>wmt,CatmullRomSpline:()=>Emt,Cesium3DContentGroup:()=>Jce,Cesium3DTile:()=>Wb,Cesium3DTileBatchTable:()=>dq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>xxt,Cesium3DTileContentFactory:()=>rhe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>r4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>she,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>bZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>ZS,Cesium3DTileStyleEngine:()=>CVe,Cesium3DTilesInspector:()=>SDe,Cesium3DTilesInspectorViewModel:()=>TDe,Cesium3DTilesVoxelProvider:()=>gxt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>SVe,Cesium3DTilesetCache:()=>vVe,Cesium3DTilesetGraphics:()=>Pue,Cesium3DTilesetHeatmap:()=>bVe,Cesium3DTilesetMetadata:()=>ahe,Cesium3DTilesetMostDetailedTraversal:()=>TVe,Cesium3DTilesetSkipTraversal:()=>wVe,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>LVe,CesiumInspector:()=>EDe,CesiumInspectorViewModel:()=>wDe,CesiumNavigation:()=>JFe,CesiumRenderPass:()=>nDe,CesiumTerrainProvider:()=>N4,CesiumWidget:()=>A4,Check:()=>Da,CheckerboardMaterialProperty:()=>ele,CircleEmitter:()=>TFe,CircleGeometry:()=>Vmt,CircleOutlineGeometry:()=>Gmt,CircleWaveMaterialProperty:()=>pz,ClassificationModelDrawCommand:()=>FMe,ClassificationPipelineStage:()=>DAe,ClassificationPrimitive:()=>Tz,ClassificationType:()=>hc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>kb,ClippingPolygonCollection:()=>Ry,Clock:()=>Az,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>xDe,CloudCollection:()=>Sxt,CloudType:()=>hle,CollectionSource:()=>Uit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Wgt,CommandLoader:()=>jFe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>KMe,CompositeEntityCollection:()=>tmt,CompositeMaterialProperty:()=>ile,CompositePositionProperty:()=>i1,CompositeProperty:()=>rS,CompressedTextureBuffer:()=>DS,ComputeCommand:()=>cV,ComputeEngine:()=>l3e,ComputeRegionBox:()=>Kxt,ConditionsExpression:()=>kLe,ConeEmitter:()=>X4,ConicArcSensor:()=>ble,ConicArcSensorCollection:()=>Agt,ConicArcSensorGeometry:()=>Tle,ConicArcSensorGraphics:()=>vle,ConicArcSensorOutlineGeometry:()=>Sle,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>eAe,ConstructionWorker:()=>Hit,ContentMetadata:()=>cVe,Context:()=>m3e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>lO,CoplanarPolygonGeometryLibrary:()=>DB,CoplanarPolygonOutlineGeometry:()=>tM,CornerType:()=>ad,CorrelationGroup:()=>NRe,CorridorGeometry:()=>N7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>bIe,CorridorGraphics:()=>Sue,CorridorOutlineGeometry:()=>vIe,Credit:()=>Oa,CreditDisplay:()=>y3e,CubeMap:()=>Ig,CubeMapFace:()=>ySe,CubicRealPolynomial:()=>r7,CullFace:()=>yh,CullingVolume:()=>pm,CumulusCloud:()=>wL,CustomDataSource:()=>Aue,CustomHeightmapTerrainProvider:()=>Fmt,CustomMercatorProjection:()=>xz,CustomShader:()=>P1,CustomShaderManagerEx:()=>yue,CustomShaderMode:()=>h7,CustomShaderPipelineStage:()=>zAe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Ert,CylinderGeometry:()=>W7,CylinderGeometryLibrary:()=>pce,CylinderGeometryUpdater:()=>CIe,CylinderGraphics:()=>wue,CylinderOutlineGeometry:()=>Z7,CzmlDataSource:()=>qq,DataSource:()=>Sy,DataSourceClock:()=>r9,DataSourceCollection:()=>mIe,DataSourceDisplay:()=>Cq,DebugAppearance:()=>Rxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>M5e,DebugModelMatrixPrimitive:()=>LFe,DefaultProxy:()=>Nmt,DepthFunction:()=>wy,DepthPlane:()=>b3e,DequantizationPipelineStage:()=>YAe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>C3e,DirectionalLight:()=>k4,DiscardEmptyTileImagePolicy:()=>fhe,DiscardMissingTileImagePolicy:()=>XVe,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>OFe,DoubleEndedPriorityQueue:()=>Hhe,DoublyLinkedList:()=>gq,DracoLoader:()=>Q7,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>k7,DynamicEnvironmentMapManager:()=>LH,DynamicGeometryBatch:()=>cce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>p7,EarthOrientationParameters:()=>JTe,EarthOrientationParametersSample:()=>i7,EasingFunction:()=>J_,EllipseGeometry:()=>TS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>TIe,EllipseGraphics:()=>Eue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>LIe,EllipsoidGraphics:()=>Ez,EllipsoidOutlineGeometry:()=>Fb,EllipsoidPrimitive:()=>a3e,EllipsoidRhumbLine:()=>lS,EllipsoidSurfaceAppearance:()=>iO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>IS,EllipsoidalOccluder:()=>k9,Empty3DTileContent:()=>x6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>kS,EntityView:()=>GVe,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>mb,ExpandByTerra:()=>Lrt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>eDe,FBXPrimitive:()=>Ade,FBXTreeParser:()=>$Fe,FeatureDataProvider:()=>Kue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>cq,FeatureJsonData:()=>Gz,FisheyeProjectionMap:()=>V7,FisheyeProjectionMapShader:()=>Bj,FlattenVS:()=>Egt,FlowEcharts:()=>Pde,Fog:()=>S3e,ForEach:()=>Or,FrameRateMonitor:()=>PFe,FrameState:()=>w3e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Vhe,FrustumGeometry:()=>Fz,FrustumOutlineGeometry:()=>M7,Fullscreen:()=>km,FullscreenButton:()=>qDe,FullscreenButtonViewModel:()=>QDe,GWBaiduImageryProvider:()=>Nz,GeoJsonDataSource:()=>qZ,GeoJsonLoader:()=>QRe,GeocodeType:()=>e$,Geocoder:()=>RDe,GeocoderService:()=>_de,GeocoderViewModel:()=>IDe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>JMe,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Xmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>jAe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>X7,GeometryVisualizer:()=>YIe,GetFeatureInfoFormat:()=>nQ,GifImageProperty:()=>gst,Globe:()=>t3e,GlobeDepth:()=>A3e,GlobeSurfaceShaderSet:()=>ZVe,GlobeSurfaceTile:()=>XM,GlobeSurfaceTileProvider:()=>qVe,GlobeTranslucency:()=>Rq,GlobeTranslucencyFramebuffer:()=>M3e,GlobeTranslucencyState:()=>L3e,GltfBufferViewLoader:()=>Cce,GltfDracoLoader:()=>Tce,GltfGpmLoader:()=>ZRe,GltfGpmLocal:()=>Dce,GltfImageLoader:()=>Sce,GltfIndexBufferLoader:()=>wce,GltfInstanceLoader:()=>Wce,GltfJsonLoader:()=>Pce,GltfLoader:()=>fO,GltfLoaderUtil:()=>WM,GltfMeshPrimitiveGpmLoader:()=>URe,GltfStructuralMetadataLoader:()=>VRe,GltfTextureLoader:()=>Ice,GltfVertexBufferLoader:()=>Rce,GoogleEarthEnterpriseImageryProvider:()=>Axt,GoogleEarthEnterpriseMapsProvider:()=>BVe,GoogleEarthEnterpriseMetadata:()=>Z4,GoogleEarthEnterpriseTerrainData:()=>cle,GoogleEarthEnterpriseTerrainProvider:()=>Ymt,GoogleEarthEnterpriseTileInformation:()=>sFe,GoogleGeocoderService:()=>Jmt,GoogleMaps:()=>hQ,GpxDataSource:()=>QGe,Graticules:()=>nce,GregorianDate:()=>dz,GridImageryProvider:()=>Mxt,GridMaterialProperty:()=>rle,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>vz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>XS,GroupMetadata:()=>Ese,GwBufferAnalysis:()=>oce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>XTe,HeightMap:()=>bgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>dhe,HermitePolynomialApproximation:()=>NGe,HermiteSpline:()=>p6,HilbertOrder:()=>bse,HomeButton:()=>MDe,HomeButtonViewModel:()=>ADe,HorizontalOrigin:()=>ec,HugeAdapter:()=>hq,I3SBuildingSceneLayerExplorer:()=>$gt,I3SBuildingSceneLayerExplorerViewModel:()=>VDe,I3SDataProvider:()=>gR,I3SDecoder:()=>SGe,I3SFeature:()=>EGe,I3SField:()=>LGe,I3SGeometry:()=>Kse,I3SLayer:()=>qhe,I3SNode:()=>Jse,I3SStatistics:()=>IGe,I3SSublayer:()=>RGe,I3SSymbology:()=>PGe,I3dmLoader:()=>$Re,I3dmParser:()=>qRe,ITwinData:()=>Vxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>r3e,Iau2006XysData:()=>QTe,Iau2006XysSample:()=>rue,IauOrientationAxes:()=>n3e,IauOrientationParameters:()=>i3e,ImageBasedLighting:()=>aq,ImageBasedLightingPipelineStage:()=>mAe,ImageCombine:()=>mue,ImageMaterialProperty:()=>O0,Imagery:()=>_he,ImageryLayer:()=>Up,ImageryLayerCollection:()=>$Ve,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>wse,ImplicitAvailabilityBitstream:()=>Tse,ImplicitMetadataView:()=>Qce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>qce,ImplicitSubtreeCache:()=>bFe,ImplicitSubtreeMetadata:()=>$Me,ImplicitTileCoordinates:()=>che,ImplicitTileset:()=>uhe,IndexDatatype:()=>Fn,InfoBox:()=>DDe,InfoBoxViewModel:()=>FDe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>IAe,InterpolationAlgorithm:()=>jmt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>fc,Intersections2D:()=>D4,Interval:()=>VE,InvertClassification:()=>Ahe,Ion:()=>GG,IonGeocodeProviderType:()=>XZ,IonGeocoderService:()=>Cde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>HB,Iso8601:()=>wn,JobScheduler:()=>P3e,JobType:()=>G_,JsonMetadataTable:()=>H7,JulianDate:()=>$t,KTX2Transcoder:()=>BTe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>bPe,KmlDataSource:()=>I7,KmlLookAt:()=>CPe,KmlTour:()=>TPe,KmlTourFlyTo:()=>SPe,KmlTourWait:()=>EPe,Label:()=>bQ,LabelCollection:()=>tV,LabelGraphics:()=>Lz,LabelStyle:()=>f0,LabelVisualizer:()=>KIe,LagrangePolynomialApproximation:()=>ZGe,LeapSecond:()=>xh,Light:()=>Fxt,LightingModel:()=>uv,LightingPipelineStage:()=>qAe,LinearApproximation:()=>Uue,LinearSampler:()=>qI,LinearSpline:()=>uq,MTLLoader:()=>tDe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>$mt,MapboxImageryProvider:()=>bO,MapboxStyleImageryProvider:()=>Nxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>eMe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>zhe,MeshParser:()=>qFe,MeshPhongMaterial:()=>fQ,MeshPrimitiveGpmLocal:()=>kRe,MetadataClass:()=>Qz,MetadataClassProperty:()=>Kz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>RRe,MetadataEnumValue:()=>IRe,MetadataPicking:()=>I3e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>EM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Ace,MetadataSemantic:()=>$ce,MetadataTable:()=>dO,MetadataTableProperty:()=>aRe,MetadataType:()=>fo,MipmapHint:()=>Z9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>vMe,ModelAnimation:()=>aAe,ModelAnimationChannel:()=>nAe,ModelAnimationCollection:()=>sAe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>yAe,ModelArticulationStage:()=>gAe,ModelClippingPlanesPipelineStage:()=>bAe,ModelClippingPolygonsPipelineStage:()=>SAe,ModelColorPipelineStage:()=>f6,ModelComponents:()=>ll,ModelDrawCommand:()=>DMe,ModelDrawCommands:()=>ZMe,ModelFeature:()=>lAe,ModelFeatureTable:()=>uAe,ModelFlattenPipelineStage:()=>kMe,ModelGraphics:()=>x7,ModelLightingOptions:()=>MMe,ModelMatrixUpdateStage:()=>AAe,ModelNode:()=>wAe,ModelRenderResources:()=>wMe,ModelRuntimeNode:()=>VAe,ModelRuntimePrimitive:()=>gMe,ModelSceneGraph:()=>UMe,ModelSilhouettePipelineStage:()=>PMe,ModelSkin:()=>_Me,ModelSplitterPipelineStage:()=>RMe,ModelStatistics:()=>BMe,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>YMe,Moon:()=>s3e,MorphTargetsPipelineStage:()=>iMe,MorphWeightSpline:()=>ext,MortonOrder:()=>AH,MultiResourceImageryProvider:()=>Wz,MultiResourceTerrainProvider:()=>ace,Multiple3DTileContent:()=>mVe,MultisampleFramebuffer:()=>HRe,NavigationControl:()=>J4,NavigationHelpButton:()=>WDe,NavigationHelpButtonViewModel:()=>NDe,NavigationUtils:()=>j4,NavigationViewModel:()=>dQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Wxt,NodeRenderResources:()=>AMe,NodeStatisticsPipelineStage:()=>MAe,NodeTransformationProperty:()=>Lue,OBJLoader:()=>rDe,OBJPrimitive:()=>Mde,OIT:()=>D3e,Occluder:()=>rce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Zz,OpenCageGeocoderService:()=>txt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>xIe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>xm,Packable:()=>ixt,PackableForInterpolation:()=>rxt,Particle:()=>Ede,ParticleBurst:()=>B4,ParticleEmitter:()=>Xxt,ParticleSystem:()=>QS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>g7,PathVisualizer:()=>IVe,PeliasGeocoderService:()=>cFe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Fq,PerformanceWatchdog:()=>XDe,PerformanceWatchdogViewModel:()=>ODe,PerspectiveFrustum:()=>mc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>G7,PerspectiveProjectionMapShader:()=>Hj,PerspectiveProjectionMapWithDepth:()=>F7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>R3e,PickDepthFramebuffer:()=>N3e,PickFramebuffer:()=>W3e,PickGlobeSlope:()=>Nft,PickedMetadataInfo:()=>aGe,Picking:()=>H3e,PickingPipelineStage:()=>rMe,PinBuilder:()=>b7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>PIe,PlaneGeometryUpdater:()=>AIe,PlaneGraphics:()=>iPe,PlaneOutlineGeometry:()=>IIe,PntsLoader:()=>HMe,PntsParser:()=>Yce,PointCloud:()=>CGe,PointCloudEyeDomeLighting:()=>sq,PointCloudShading:()=>i4,PointCloudStylingPipelineStage:()=>oMe,PointGraphics:()=>Iue,PointLight:()=>ede,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>iV,PointVisualizer:()=>RVe,PolygonDepth:()=>b9,PolygonDepthFS:()=>Bce,PolygonDepthVS:()=>Hce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>VIe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>MIe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>om,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>AVe,PolylineGlowMaterialProperty:()=>nle,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>KM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Wft,PolylineVisualizer:()=>VVe,PolylineVolumeGeometry:()=>GIe,PolylineVolumeGeometryLibrary:()=>u9,PolylineVolumeGeometryUpdater:()=>DIe,PolylineVolumeGraphics:()=>Rue,PolylineVolumeOutlineGeometry:()=>FIe,PositionProperty:()=>wz,PositionPropertyArray:()=>dH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>m5e,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>Ohe,PpeMetadata:()=>XRe,PpeSource:()=>Vgt,PpeTexture:()=>ORe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>iq,PrimitiveOutlineGenerator:()=>Gce,PrimitiveOutlinePipelineStage:()=>lMe,PrimitivePipeline:()=>jZ,PrimitiveRenderResources:()=>VMe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>uMe,PrimitiveType:()=>pn,ProjectionPicker:()=>UDe,ProjectionPickerViewModel:()=>kDe,Property:()=>Nt,PropertyArray:()=>cde,PropertyAttribute:()=>bce,PropertyAttributeProperty:()=>rRe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>Y7,PropertyTextureProperty:()=>tRe,ProviderViewModel:()=>Ef,Proxy:()=>axt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>She,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Xft,QuadtreeTile:()=>Aq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>OO,QuantizedMeshTerrainData:()=>xde,QuarticRealPolynomial:()=>pSe,Quaternion:()=>fr,QuaternionSpline:()=>iAe,Queue:()=>aV,RasterizeHtml:()=>M4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>yce,RectangleGeometry:()=>uO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>kIe,RectangleGraphics:()=>Pz,RectangleOutlineGeometry:()=>mce,RectangularSensor:()=>V6,RectangularSensorFS:()=>mle,RectangularSensorGraphics:()=>Mgt,RectangularSensorPrimitive:()=>cDe,RectangularSensorScanPlaneFS:()=>uDe,RectangularSensorVS:()=>Gde,RectangularSensorVisualizer:()=>hDe,ReferenceFrame:()=>pp,ReferenceProperty:()=>L7,RegionPolygonTexture:()=>DFe,RegionTexture:()=>NFe,RegionWeather:()=>Vde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Pb,Request:()=>hm,RequestErrorEvent:()=>zZ,RequestScheduler:()=>x1,RequestState:()=>pc,RequestType:()=>n2,ResetViewNavigationControl:()=>UFe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>zS,ResourceCacheStatistics:()=>MRe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>kB,S3MDataSource:()=>Hft,SDFSettings:()=>ev,SampledPositionProperty:()=>nS,SampledProperty:()=>uM,Sampler:()=>Yo,ScaledPositionProperty:()=>Mz,Scene:()=>VO,SceneFramebuffer:()=>Ghe,SceneHeightMap:()=>lDe,SceneHeightWaterPostProcessing:()=>XT,SceneHeightWaterPrimitive:()=>xgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>cMe,SceneModePicker:()=>HDe,SceneModePickerViewModel:()=>BDe,SceneTransforms:()=>Ca,SceneTransitioner:()=>b5e,ScreenSpaceCameraController:()=>P5e,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>m6,SelectionIndicator:()=>YDe,SelectionIndicatorViewModel:()=>zDe,Sensor:()=>ygt,SensorVolumePortionToDisplay:()=>ale,ShaderBuilder:()=>kce,ShaderCache:()=>c3e,ShaderDestination:()=>Ji,ShaderFunction:()=>SMe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>CMe,ShadowMap:()=>PV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>gM,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>v6,SimplePolylineGeometry:()=>sxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>dMe,SkyAtmosphere:()=>zq,SkyBox:()=>GO,SlopeArrow:()=>Dde,SpatialNode:()=>iGe,Spdcf:()=>WRe,SpecularEnvironmentCubeMap:()=>_9,SphereEmitter:()=>H4,SphereGeometry:()=>lxt,SphereOutlineGeometry:()=>sV,Spherical:()=>OGe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>Khe,SpotLight:()=>Yft,StaticGeometryColorBatch:()=>hM,StaticGeometryPerMaterialBatch:()=>dM,StaticGroundGeometryColorBatch:()=>use,StaticGroundGeometryPerMaterialBatch:()=>zIe,StaticGroundPolylinePerMaterialBatch:()=>MVe,StaticOutlineGeometryBatch:()=>cse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>tAe,Stereographic:()=>Lb,StorageType:()=>IH,StripeMaterialProperty:()=>ole,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>v9,StyleExpression:()=>kxt,Sun:()=>vGe,SunLight:()=>C4,SunPostProcess:()=>A5e,SupportedImageFormats:()=>GRe,SvgPathBindingHandler:()=>mDe,TaskProcessor:()=>mp,Terrain:()=>VFe,TerrainData:()=>yO,TerrainEncoding:()=>PS,TerrainFillMesh:()=>Che,TerrainFlatten:()=>kO,TerrainFlattenPolygonTexture:()=>WFe,TerrainMesh:()=>_O,TerrainOffsetProperty:()=>dce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>sDe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>fFe,TextureAtlas:()=>aue,TextureCache:()=>h3e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>OLe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>oue,TextureUniform:()=>cue,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>LS,TileBoundingS2Cell:()=>xVe,TileBoundingSphere:()=>bV,TileBoundingVolume:()=>Uxt,TileCoordinatesImageryProvider:()=>l$,TileDiscardPolicy:()=>Bxt,TileEdge:()=>hs,TileImagery:()=>vhe,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>dVe,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>am,TileReplacementQueue:()=>Ehe,TileSelectionResult:()=>fa,TileState:()=>Hxt,Tileset3DTileContent:()=>eVe,TilesetMetadata:()=>_Ve,TilesetPipelineStage:()=>cAe,TilesetRegionWeather:()=>aDe,TilingScheme:()=>uxt,TimeConstants:()=>cc,TimeDynamicImagery:()=>yhe,TimeDynamicPointCloud:()=>Jhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>MH,TimeIntervalCollectionProperty:()=>pH,TimeStandard:()=>cu,Timeline:()=>jDe,TimelineHighlightRange:()=>KDe,TimelineTrack:()=>JDe,Tipsify:()=>mSe,ToggleButtonViewModel:()=>gB,Tonemapper:()=>SZ,TrackingReferenceFrame:()=>wB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>U3e,TridiagonalSystemSolver:()=>Zce,TrustedServers:()=>qle,TweenCollection:()=>Uhe,UniformState:()=>d3e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>jft,UrlTemplateImageryProvider:()=>Hb,UserInterfaceControl:()=>Rde,Utils:()=>TL,VERSION:()=>o0e,VRButton:()=>eNe,VRButtonViewModel:()=>$De,VRTheWorldTerrainProvider:()=>pxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>RH,Vector3DTileClampedPolylines:()=>aVe,Vector3DTileContent:()=>uVe,Vector3DTileGeometry:()=>dZ,Vector3DTilePoints:()=>tVe,Vector3DTilePolygons:()=>iVe,Vector3DTilePolylines:()=>ihe,Vector3DTilePrimitive:()=>jce,VelocityOrientationProperty:()=>XGe,VelocityVectorProperty:()=>Tq,VertexArray:()=>Cu,VertexArrayFacade:()=>o7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>fMe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>cxt,View:()=>N1,ViewShed:()=>Igt,ViewShedMap:()=>I4,ViewShedMapShader:()=>XG,Viewer:()=>r0e,ViewportQuad:()=>Y4,Visibility:()=>Rl,Visualizer:()=>vmt,VolumeCloud:()=>Nde,VoxelBoxShape:()=>Xq,VoxelCell:()=>V5e,VoxelContent:()=>Bhe,VoxelCylinderShape:()=>kq,VoxelEllipsoidShape:()=>Uq,VoxelInspector:()=>rNe,VoxelInspectorViewModel:()=>iNe,VoxelMetadataOrder:()=>w9,VoxelPrimitive:()=>Hq,VoxelProvider:()=>zxt,VoxelRenderResources:()=>K5e,VoxelShape:()=>Yxt,VoxelShapeType:()=>Vb,VoxelTraversal:()=>rGe,VulkanConstants:()=>fxt,WallGeometry:()=>UIe,WallGeometryLibrary:()=>xce,WallGeometryUpdater:()=>HIe,WallGraphics:()=>y7,WallOutlineGeometry:()=>BIe,WaterFS:()=>jPe,WaterHeightMap:()=>Cgt,WaterMaterialProperty:()=>Qft,WaterPipelinePrimitive:()=>ade,WaterPostProcessing:()=>yle,WaterPostProcessingEx:()=>_le,WaterPrimitive:()=>Wde,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>dDe,WaterReflectImageEx:()=>pDe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>CO,WebMapTileServiceImageryProvider:()=>wV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>xp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Xce,WireframePipelineStage:()=>xMe,ZoomNavigationControl:()=>dle,_shadersAcesTonemappingStage:()=>z3e,_shadersAdditiveBlend:()=>I5e,_shadersAdjustTranslucentFS:()=>Wse,_shadersAllMaterialAppearanceFS:()=>ZPe,_shadersAllMaterialAppearanceVS:()=>OPe,_shadersAmbientOcclusionGenerate:()=>Y3e,_shadersAmbientOcclusionModulate:()=>K3e,_shadersAspectRampMaterial:()=>vSe,_shadersAtmosphereCommon:()=>g9,_shadersAtmosphereStageFS:()=>hAe,_shadersAtmosphereStageVS:()=>dAe,_shadersBasicMaterialAppearanceFS:()=>XPe,_shadersBasicMaterialAppearanceVS:()=>kPe,_shadersBillboardCollectionFS:()=>bLe,_shadersBillboardCollectionVS:()=>CLe,_shadersBlackAndWhite:()=>J3e,_shadersBloomComposite:()=>j3e,_shadersBrdfLutGeneratorFS:()=>x3e,_shadersBrightPass:()=>R5e,_shadersBrightness:()=>Q3e,_shadersBumpMapMaterial:()=>bSe,_shadersCPUStylingStageFS:()=>WAe,_shadersCPUStylingStageVS:()=>NAe,_shadersCheckerboardMaterial:()=>CSe,_shadersCloudCollectionFS:()=>mFe,_shadersCloudCollectionVS:()=>xFe,_shadersCloudNoiseFS:()=>gFe,_shadersCloudNoiseVS:()=>yFe,_shadersCompareAndPackTranslucentDepth:()=>k3e,_shadersCompositeOITFS:()=>V3e,_shadersCompositeTranslucentClassification:()=>oQ,_shadersComputeIrradianceFS:()=>jIe,_shadersComputeRadianceMapFS:()=>QIe,_shadersContrastBias:()=>q3e,_shadersConvolveSpecularMapFS:()=>qIe,_shadersConvolveSpecularMapVS:()=>$Ie,_shadersCustomShaderStageFS:()=>XAe,_shadersCustomShaderStageVS:()=>OAe,_shadersCzmBuiltins:()=>Ij,_shadersDepthOfField:()=>$3e,_shadersDepthPlaneFS:()=>_3e,_shadersDepthPlaneVS:()=>v3e,_shadersDepthView:()=>e5e,_shadersDepthViewPacked:()=>Tgt,_shadersDotMaterial:()=>TSe,_shadersEdgeDetection:()=>t5e,_shadersElevationBandMaterial:()=>SSe,_shadersElevationContourMaterial:()=>wSe,_shadersElevationRampMaterial:()=>ESe,_shadersEllipsoidFS:()=>Dse,_shadersEllipsoidSurfaceAppearanceFS:()=>HPe,_shadersEllipsoidSurfaceAppearanceVS:()=>zPe,_shadersEllipsoidVS:()=>Nse,_shadersFXAA:()=>n5e,_shadersFXAA3_11:()=>c5e,_shadersFadeMaterial:()=>LSe,_shadersFeatureIdStageFS:()=>kAe,_shadersFeatureIdStageVS:()=>UAe,_shadersFilmicTonemapping:()=>i5e,_shadersGaussianBlur1D:()=>T6,_shadersGeometryStageFS:()=>KAe,_shadersGeometryStageVS:()=>JAe,_shadersGlobeFS:()=>DVe,_shadersGlobeVS:()=>NVe,_shadersGridMaterial:()=>PSe,_shadersGroundAtmosphere:()=>Ise,_shadersHSBToRGB:()=>_Ee,_shadersHSLToRGB:()=>vEe,_shadersImageBasedLightingStageFS:()=>fAe,_shadersInstancingStageCommon:()=>EAe,_shadersInstancingStageVS:()=>LAe,_shadersIntersectBox:()=>O5e,_shadersIntersectClippingPlanes:()=>Z5e,_shadersIntersectCylinder:()=>X5e,_shadersIntersectDepth:()=>W5e,_shadersIntersectEllipsoid:()=>k5e,_shadersIntersectLongitude:()=>Xse,_shadersIntersection:()=>lQ,_shadersIntersectionUtils:()=>N5e,_shadersLegacyInstancingStageVS:()=>PAe,_shadersLensFlare:()=>o5e,_shadersLightingStageFS:()=>QAe,_shadersMaterialStageFS:()=>$Ae,_shadersMegatexture:()=>Y5e,_shadersMetadataStageFS:()=>BAe,_shadersMetadataStageVS:()=>HAe,_shadersModelClippingPlanesStageFS:()=>vAe,_shadersModelClippingPolygonsStageFS:()=>TAe,_shadersModelClippingPolygonsStageVS:()=>CAe,_shadersModelColorStageFS:()=>_Ae,_shadersModelFS:()=>WMe,_shadersModelFlattenStageFS:()=>XMe,_shadersModelFlattenStageVS:()=>OMe,_shadersModelSilhouetteStageFS:()=>EMe,_shadersModelSilhouetteStageVS:()=>LMe,_shadersModelSplitterStageFS:()=>IMe,_shadersModelVS:()=>NMe,_shadersModifiedReinhardTonemapping:()=>a5e,_shadersMorphTargetsStageVS:()=>tMe,_shadersNightVision:()=>s5e,_shadersNormalMapMaterial:()=>ISe,_shadersOctree:()=>z5e,_shadersPassThrough:()=>kM,_shadersPassThroughDepth:()=>C6,_shadersPbrNeutralTonemapping:()=>r5e,_shadersPerInstanceColorAppearanceFS:()=>$Le,_shadersPerInstanceColorAppearanceVS:()=>ePe,_shadersPerInstanceFlatColorAppearanceFS:()=>vue,_shadersPerInstanceFlatColorAppearanceVS:()=>tPe,_shadersPointCloudEyeDomeLighting:()=>zRe,_shadersPointCloudStylingStageVS:()=>nMe,_shadersPointPrimitiveCollectionFS:()=>nB,_shadersPointPrimitiveCollectionVS:()=>LLe,_shadersPolygonSignedDistanceFS:()=>JIe,_shadersPolylineArrowMaterial:()=>RSe,_shadersPolylineColorAppearanceVS:()=>JLe,_shadersPolylineCommon:()=>K9,_shadersPolylineDashMaterial:()=>ASe,_shadersPolylineFS:()=>bue,_shadersPolylineGlowMaterial:()=>MSe,_shadersPolylineMaterialAppearanceVS:()=>jLe,_shadersPolylineOutlineMaterial:()=>VSe,_shadersPolylineShadowVolumeFS:()=>HLe,_shadersPolylineShadowVolumeMorphFS:()=>zLe,_shadersPolylineShadowVolumeMorphVS:()=>YLe,_shadersPolylineShadowVolumeVS:()=>KLe,_shadersPolylineVS:()=>YPe,_shadersPostProcessRain:()=>Sgt,_shadersPostProcessSnow:()=>wgt,_shadersPrimitiveOutlineStageFS:()=>sMe,_shadersPrimitiveOutlineStageVS:()=>aMe,_shadersRGBToHSB:()=>zEe,_shadersRGBToHSL:()=>YEe,_shadersRGBToXYZ:()=>KEe,_shadersReinhardTonemapping:()=>l5e,_shadersReprojectWebMercatorFS:()=>YVe,_shadersReprojectWebMercatorVS:()=>KVe,_shadersRimLightingMaterial:()=>GSe,_shadersSelectedFeatureIdStageCommon:()=>yse,_shadersShadowVolumeAppearanceFS:()=>Cue,_shadersShadowVolumeAppearanceVS:()=>qLe,_shadersShadowVolumeFS:()=>PQ,_shadersSilhouette:()=>u5e,_shadersSkinningStageVS:()=>hMe,_shadersSkyAtmosphereCommon:()=>Hse,_shadersSkyAtmosphereFS:()=>dGe,_shadersSkyAtmosphereVS:()=>pGe,_shadersSkyBoxFS:()=>mGe,_shadersSkyBoxVS:()=>xGe,_shadersSlopeRampMaterial:()=>FSe,_shadersStripeMaterial:()=>DSe,_shadersSunFS:()=>gGe,_shadersSunTextureFS:()=>yGe,_shadersSunVS:()=>_Ge,_shadersTexturedMaterialAppearanceFS:()=>UPe,_shadersTexturedMaterialAppearanceVS:()=>BPe,_shadersVector3DTileClampedPolylinesFS:()=>oVe,_shadersVector3DTileClampedPolylinesVS:()=>nVe,_shadersVector3DTilePolylinesVS:()=>rVe,_shadersVectorTileVS:()=>vse,_shadersVerticalExaggerationStageVS:()=>pMe,_shadersViewportQuadFS:()=>_Fe,_shadersViewportQuadVS:()=>Phe,_shadersVoxelFS:()=>F5e,_shadersVoxelUtils:()=>G5e,_shadersVoxelVS:()=>D5e,_shadersWater:()=>WSe,_shadersWaterMaskMaterial:()=>NSe,_shadersXYZToRGB:()=>yLe,_shadersacesTonemapping:()=>Nwe,_shadersalphaWeight:()=>Wwe,_shadersantialias:()=>Zwe,_shadersapplyHSBShift:()=>Owe,_shadersapproximateSphericalCoordinates:()=>Xwe,_shadersapproximateTanh:()=>kwe,_shadersbackFacing:()=>Uwe,_shadersbranchFreeTernary:()=>Bwe,_shaderscascadeColor:()=>Hwe,_shaderscascadeDistance:()=>zwe,_shaderscascadeMatrix:()=>Ywe,_shaderscascadeWeights:()=>Kwe,_shadersclipPolygons:()=>Jwe,_shaderscolumbusViewMorph:()=>jwe,_shaderscomputeAtmosphereColor:()=>Qwe,_shaderscomputeGroundAtmosphereScattering:()=>qwe,_shaderscomputePosition:()=>$we,_shaderscomputeScattering:()=>eEe,_shadersconvertUvToBox:()=>U5e,_shadersconvertUvToCylinder:()=>B5e,_shadersconvertUvToEllipsoid:()=>H5e,_shaderscosineAndSine:()=>tEe,_shadersdecompressTextureCoordinates:()=>iEe,_shadersdegreesPerRadian:()=>HSe,_shadersdepthClamp:()=>rEe,_shadersdepthRange:()=>zSe,_shadersdepthRangeStruct:()=>Iwe,_shaderseastNorthUpToEyeCoordinates:()=>nEe,_shadersellipsoidContainsPoint:()=>oEe,_shadersellipsoidTextureCoordinates:()=>aEe,_shadersepsilon1:()=>YSe,_shadersepsilon2:()=>KSe,_shadersepsilon3:()=>JSe,_shadersepsilon4:()=>jSe,_shadersepsilon5:()=>QSe,_shadersepsilon6:()=>qSe,_shadersepsilon7:()=>$Se,_shadersequalsEpsilon:()=>sEe,_shaderseyeOffset:()=>lEe,_shaderseyeToWindowCoordinates:()=>uEe,_shadersfastApproximateAtan:()=>cEe,_shadersfog:()=>hEe,_shadersgammaCorrect:()=>dEe,_shadersgeodeticSurfaceNormal:()=>pEe,_shadersgetDefaultMaterial:()=>fEe,_shadersgetDynamicAtmosphereLightDirection:()=>mEe,_shadersgetLambertDiffuse:()=>xEe,_shadersgetSpecular:()=>gEe,_shadersgetWaterNoise:()=>yEe,_shadershue:()=>bEe,_shadersinfinity:()=>ewe,_shadersinverseGamma:()=>CEe,_shadersisEmpty:()=>TEe,_shadersisFull:()=>SEe,_shaderslatitudeToWebMercatorFraction:()=>wEe,_shaderslineDistance:()=>LEe,_shaderslinearToSrgb:()=>EEe,_shadersluminance:()=>PEe,_shadersmaterial:()=>Rwe,_shadersmaterialInput:()=>Awe,_shadersmaximumComponent:()=>IEe,_shadersmetersPerPixel:()=>REe,_shadersmodelMaterial:()=>Mwe,_shadersmodelToWindowCoordinates:()=>AEe,_shadersmodelVertexOutput:()=>Vwe,_shadersmultiplyWithColorBalance:()=>MEe,_shadersnearFarScalar:()=>VEe,_shadersoctDecode:()=>GEe,_shadersoneOverPi:()=>twe,_shadersoneOverTwoPi:()=>iwe,_shaderspackDepth:()=>FEe,_shaderspassCesium3DTile:()=>rwe,_shaderspassCesium3DTileClassification:()=>nwe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>owe,_shaderspassClassification:()=>awe,_shaderspassCompute:()=>swe,_shaderspassEnvironment:()=>lwe,_shaderspassGlobe:()=>uwe,_shaderspassOpaque:()=>cwe,_shaderspassOverlay:()=>hwe,_shaderspassTerrainClassification:()=>dwe,_shaderspassTranslucent:()=>pwe,_shaderspassVoxels:()=>fwe,_shaderspbrLighting:()=>DEe,_shaderspbrNeutralTonemapping:()=>NEe,_shadersphong:()=>WEe,_shaderspi:()=>mwe,_shaderspiOverFour:()=>xwe,_shaderspiOverSix:()=>gwe,_shaderspiOverThree:()=>ywe,_shaderspiOverTwo:()=>_we,_shadersplaneDistance:()=>ZEe,_shaderspointAlongRay:()=>OEe,_shadersradiansPerDegree:()=>vwe,_shadersray:()=>Gwe,_shadersrayEllipsoidIntersectionInterval:()=>XEe,_shadersraySegment:()=>Fwe,_shadersraySphereIntersectionInterval:()=>kEe,_shadersreadDepth:()=>UEe,_shadersreadNonPerspective:()=>BEe,_shadersreverseLogDepth:()=>HEe,_shadersround:()=>JEe,_shaderssaturation:()=>jEe,_shaderssceneMode2D:()=>bwe,_shaderssceneMode3D:()=>Cwe,_shaderssceneModeColumbusView:()=>Twe,_shaderssceneModeMorphing:()=>Swe,_shadersshadowDepthCompare:()=>QEe,_shadersshadowParameters:()=>Dwe,_shadersshadowVisibility:()=>qEe,_shaderssignNotZero:()=>$Ee,_shaderssolarRadius:()=>wwe,_shaderssphericalHarmonics:()=>eLe,_shaderssrgbToLinear:()=>tLe,_shaderstangentToEyeSpaceMatrix:()=>iLe,_shaderstextureCube:()=>rLe,_shadersthreePiOver2:()=>Ewe,_shaderstransformPlane:()=>nLe,_shaderstranslateRelativeToEye:()=>oLe,_shaderstranslucentPhong:()=>aLe,_shaderstranspose:()=>sLe,_shaderstwoPi:()=>Lwe,_shadersunpackClippingExtents:()=>lLe,_shadersunpackDepth:()=>uLe,_shadersunpackFloat:()=>cLe,_shadersunpackUint:()=>hLe,_shadersvalueTransform:()=>dLe,_shadersvertexLogDepth:()=>pLe,_shaderswebMercatorMaxLatitude:()=>Pwe,_shaderswindowToEyeCoordinates:()=>fLe,_shaderswriteDepthClamp:()=>mLe,_shaderswriteLogDepth:()=>xLe,_shaderswriteNonPerspective:()=>gLe,addBuffer:()=>_Re,addDefaults:()=>hRe,addExtensionsRequired:()=>xRe,addExtensionsUsed:()=>pO,addPipelineExtras:()=>q7,addToArray:()=>n1,appendForwardSlash:()=>DTe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>nue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>j5e,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>hhe,createBillboardPointCallback:()=>the,createBlurStage:()=>fle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>bDe,createDefaultTerrainProviderViewModels:()=>CDe,createEdgeStage:()=>Q4,createElevationBandMaterial:()=>Ext,createFragmentFromTemplate:()=>ZFe,createGooglePhotorealistic3DTileset:()=>Lxt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Pxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>vb,createTangentSpaceDebugPrimitive:()=>Ixt,createTaskProcessorWorker:()=>Ggt,createUniform:()=>kSe,createUniformArray:()=>BSe,createWorldBathymetryAsync:()=>nFe,createWorldImageryAsync:()=>zB,createWorldTerrainAsync:()=>gde,decodeGoogleEarthEnterpriseData:()=>aFe,decodeVectorPolylinePositions:()=>sVe,defaultValue:()=>Zmt,defer:()=>fp,defined:()=>F,demodernizeShader:()=>_Le,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>fmt,fflate_module:()=>QFe,findAccessorMinMax:()=>$7,findContentMetadata:()=>nhe,findGroupMetadata:()=>ohe,findTileMetadata:()=>fVe,forEachTextureInMaterial:()=>Lce,formatError:()=>_H,fragment:()=>Lgt,freezeRenderState:()=>utt,getAbsoluteUri:()=>$B,getAccessorByteStride:()=>XF,getBaseUri:()=>WTe,getBinaryAccessor:()=>CM,getClipAndStyleCode:()=>bGe,getClippingFunction:()=>wq,getComponentReader:()=>U7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>v7,getImageFromTypedArray:()=>ZLe,getImagePixels:()=>BZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>jz,getMetadataClassProperty:()=>oGe,getMetadataProperty:()=>sGe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>D7,isBitSet:()=>m1,isBlobUri:()=>Kle,isCrossOriginUrl:()=>HZ,isDataUri:()=>e7,isLeapYear:()=>YZ,knockout:()=>sr,knockout_3_5_1:()=>VV,knockout_es5:()=>fDe,libgif:()=>oIe,loadAndExecuteScript:()=>Jle,loadCRN:()=>qmt,loadCubeMap:()=>fGe,loadDDS:()=>$le,loadImageFromTypedArray:()=>Jz,loadKTX2:()=>IF,loadView:()=>Ide,mergeSort:()=>b4,moveTechniqueRenderStates:()=>mRe,moveTechniquesToExtension:()=>gRe,numberOfComponentsForType:()=>hO,objFS:()=>iDe,objectToQuery:()=>jle,oneTimeWarning:()=>aa,packer:()=>ULe,parseBatchTable:()=>$z,parseDefines:()=>oDe,parseFeatureMetadataLegacy:()=>lRe,parseGlb:()=>pRe,parseResponseHeaders:()=>ZTe,parseStructuralMetadata:()=>sRe,pickModel:()=>zMe,pointInsideTriangle:()=>nxt,preprocess3DTileContent:()=>fq,processVoxelProperties:()=>J5e,queryToObject:()=>lI,rasterizeHTML_allinone:()=>VGe,readAccessorPacked:()=>vRe,removeExtension:()=>h6,removeExtensionsRequired:()=>dRe,removeExtensionsUsed:()=>Ece,removePipelineExtras:()=>fRe,removeUnusedElements:()=>yRe,remove_primitive:()=>M6,resizeImageToNextPowerOfTwo:()=>EQ,sampleTerrain:()=>Sq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>eue,srgbToLinear:()=>jhe,subdivideArray:()=>QLe,subscribeAndEvaluate:()=>Eb,svgCompassGyro:()=>HFe,svgCompassOuterRing:()=>BFe,svgCompassRotationMarker:()=>zFe,svgReset:()=>XFe,turf:()=>Po,updateAccessorComponentTypes:()=>bRe,updateVersion:()=>SRe,usesExtension:()=>um,vertex:()=>Pgt,viewerCesium3DTilesInspectorMixin:()=>nyt,viewerCesiumInspectorMixin:()=>oyt,viewerCesiumNavigationMixin:()=>igt,viewerDragDropMixin:()=>ayt,viewerPerformanceWatchdogMixin:()=>syt,viewerVoxelInspectorMixin:()=>uyt,webGLConstantToGlslType:()=>mxt,wrapFunction:()=>pFe,writeTextToCanvas:()=>H9});we();we();function _$(o=!0){this.async=o}_$.prototype.getXmlHttpRequest=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("MsXml2.XmlHttp")};_$.prototype.includeJsText=function(o,f){if(o!=null){var m=document.createElement("script");m.type="text/javascript",m.text=f,o.appendChild(m)}};_$.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)}};_$.prototype.addJs=function(o,f,m){var x=this.getXmlHttpRequest(),y=this;x.onreadystatechange=function(){x.readyState===4&&(x.status===200||x.status===304?y.includeJsSrc(o,f,m):console.log("XML request error: "+x.statusText+" ("+x.status+")"))},x.open("GET",f,y.async),x.send(null),x.status===404?console.log(f+" is not found"):y.includeJsText(o,x.responseText)};var ex=_$;we();we();var Mji={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"}},$r=Object.freeze(Mji);we();we();we();function Vji(o,f){return o??f}var Ff=Vji;we();var hyt=`// author: \u5F20\u4E39\u948A czm_material czm_getMaterial(czm_materialInput materialInput) { czm_material material = czm_getDefaultMaterial(materialInput); @@ -25399,7 +25482,7 @@ `||w===E){v=Math.max(v,C),y.push(C),C=0,T+=S;continue}var I=f[w+1]||o.font,R=Dfe(I,L);m.push(R),C+=R;var P=Anr(I);x.push(P),S=Math.max(S,P)}return{width:v,height:T,widths:m,heights:x,lineWidths:y}}function NTt(o,f,m,x,y,v,C,T,S,w,E){o.save(),m!==1&&(o.globalAlpha*=m),f&&o.setTransform.apply(o,f),x.contextInstructions?(o.translate(S,w),o.scale(E[0],E[1]),Mnr(x,o)):E[0]<0||E[1]<0?(o.translate(S,w),o.scale(E[0],E[1]),o.drawImage(x,y,v,C,T,0,0,C,T)):o.drawImage(x,y,v,C,T,S,w,C*E[0],T*E[1]),o.restore()}function Mnr(o,f){for(var m=o.contextInstructions,x=0,y=m.length;x<y;x+=2)Array.isArray(m[x+1])?f[m[x]].apply(f,m[x+1]):f[m[x]]=m[x+1]}var Vnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Gnr=function(o){Vnr(f,o);function f(m){var x=this,y=m.rotateWithView!==void 0?m.rotateWithView:!1;return x=o.call(this,{opacity:1,rotateWithView:y,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 y=this.renderOptions_,v=Wf(y.size*m,y.size*m);this.draw_(y,v,m),x=v.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 bh.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,y){if(x===0||this.points_===1/0||m!=="bevel"&&m!=="miter")return x;var v=this.radius_,C=this.radius2_===void 0?v:this.radius2_;if(v<C){var T=v;v=C,C=T}var S=this.radius2_===void 0?this.points_:this.points_*2,w=2*Math.PI/S,E=C*Math.sin(w),L=Math.sqrt(C*C-E*E),I=v-L,R=Math.sqrt(E*E+I*I),P=R/E;if(m==="miter"&&P<=y)return P*x;var A=x/2/P,M=x/2*(I/R),V=Math.sqrt((v+A)*(v+A)+M*M),G=V-v;if(this.radius2_===void 0||m==="bevel")return G*2;var D=v*Math.sin(w),N=Math.sqrt(v*v-D*D),k=C-N,U=Math.sqrt(D*D+k*k),B=U/D;if(B<=y){var Y=B*x/2-C-v;return 2*Math.max(G,Y)}return G*2},f.prototype.createRenderOptions=function(){var m=MR,x=0,y=null,v=0,C,T=0;this.stroke_&&(C=this.stroke_.getColor(),C===null&&(C=QV),C=$b(C),T=this.stroke_.getWidth(),T===void 0&&(T=$V),y=this.stroke_.getLineDash(),v=this.stroke_.getLineDashOffset(),m=this.stroke_.getLineJoin(),m===void 0&&(m=MR),x=this.stroke_.getMiterLimit(),x===void 0&&(x=jV));var S=this.calculateLineJoinSize_(m,T,x),w=Math.max(this.radius_,this.radius2_||0),E=Math.ceil(2*w+S);return{strokeStyle:C,strokeWidth:T,size:E,lineDash:y,lineDashOffset:v,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,y){if(x.scale(y,y),x.translate(m.size/2,m.size/2),this.createPath_(x),this.fill_){var v=this.fill_.getColor();v===null&&(v=eC),x.fillStyle=$b(v),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(),y=0;if(typeof x=="string"&&(x=xX(x)),x===null?y=1:Array.isArray(x)&&(y=x.length===4?x[3]:1),y===0){var v=Wf(m.size,m.size);this.hitDetectionCanvas_=v.canvas,this.drawHitDetectionCanvas_(m,v)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},f.prototype.createPath_=function(m){var x=this.points_,y=this.radius_;if(x===1/0)m.arc(0,0,y,0,2*Math.PI);else{var v=this.radius2_===void 0?y:this.radius2_;this.radius2_!==void 0&&(x*=2);for(var C=this.angle_-Math.PI/2,T=2*Math.PI/x,S=0;S<x;S++){var w=C+S*T,E=S%2===0?y:v;m.lineTo(E*Math.cos(w),E*Math.sin(w))}m.closePath()}},f.prototype.drawHitDetectionCanvas_=function(m,x){x.translate(m.size/2,m.size/2),this.createPath_(x),x.fillStyle=eC,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}(Gfe),WTt=Gnr;var Fnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Dnr=function(o){Fnr(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}(WTt),ZTt=Dnr;we();var Nnr=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}(),_X=Nnr;we();var Wnr=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}(),Zee=Wnr;var XTt=function(){function o(f){var m=f||{};this.geometry_=null,this.geometryFunction_=OTt,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_=OTt,this.geometry_=f},o.prototype.setZIndex=function(f){this.zIndex_=f},o}();function kTt(o){var f;if(typeof o=="function")f=o;else{var m;if(Array.isArray(o))m=o;else{Su(typeof o.getZIndex=="function",41);var x=o;m=[x]}f=function(){return m}}return f}var aOe=null;function UTt(o,f){if(!aOe){var m=new _X({color:"rgba(255,255,255,0.4)"}),x=new Zee({color:"#3399CC",width:1.25});aOe=[new XTt({image:new ZTt({fill:m,stroke:x,radius:5}),fill:m,stroke:x})]}return aOe}function OTt(o){return o.getGeometry()}var BTt=XTt;we();we();var Wfe={POINT:"point",LINE:"line"};var Znr="#333",Onr=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_=sf(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 _X({color:Znr}),this.maxAngle_=m.maxAngle!==void 0?m.maxAngle:Math.PI/4,this.placement_=m.placement!==void 0?m.placement:Wfe.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_=sf(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}(),HTt=Onr;we();we();we();we();we();var Nh={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 Xnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),knr=function(o){Xnr(f,o);function f(m){var x=o.call(this)||this;x.on,x.once,x.un,x.background_=m.background;var y=ox({},m);return typeof m.properties=="object"&&(delete y.properties,ox(y,m.properties)),y[Nh.OPACITY]=m.opacity!==void 0?m.opacity:1,Su(typeof y[Nh.OPACITY]=="number",64),y[Nh.VISIBLE]=m.visible!==void 0?m.visible:!0,y[Nh.Z_INDEX]=m.zIndex,y[Nh.MAX_RESOLUTION]=m.maxResolution!==void 0?m.maxResolution:1/0,y[Nh.MIN_RESOLUTION]=m.minResolution!==void 0?m.minResolution:0,y[Nh.MIN_ZOOM]=m.minZoom!==void 0?m.minZoom:-1/0,y[Nh.MAX_ZOOM]=m.maxZoom!==void 0?m.maxZoom:1/0,x.className_=y.className!==void 0?y.className:"ol-layer",delete y.className,x.setProperties(y),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},y=this.getZIndex();return x.opacity=Mv(Math.round(this.getOpacity()*100)/100,0,1),x.visible=this.getVisible(),x.extent=this.getExtent(),x.zIndex=y===void 0&&!x.managed?1/0:y,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 Us()},f.prototype.getLayerStatesArray=function(m){return Us()},f.prototype.getExtent=function(){return this.get(Nh.EXTENT)},f.prototype.getMaxResolution=function(){return this.get(Nh.MAX_RESOLUTION)},f.prototype.getMinResolution=function(){return this.get(Nh.MIN_RESOLUTION)},f.prototype.getMinZoom=function(){return this.get(Nh.MIN_ZOOM)},f.prototype.getMaxZoom=function(){return this.get(Nh.MAX_ZOOM)},f.prototype.getOpacity=function(){return this.get(Nh.OPACITY)},f.prototype.getSourceState=function(){return Us()},f.prototype.getVisible=function(){return this.get(Nh.VISIBLE)},f.prototype.getZIndex=function(){return this.get(Nh.Z_INDEX)},f.prototype.setBackground=function(m){this.background_=m,this.changed()},f.prototype.setExtent=function(m){this.set(Nh.EXTENT,m)},f.prototype.setMaxResolution=function(m){this.set(Nh.MAX_RESOLUTION,m)},f.prototype.setMinResolution=function(m){this.set(Nh.MIN_RESOLUTION,m)},f.prototype.setMaxZoom=function(m){this.set(Nh.MAX_ZOOM,m)},f.prototype.setMinZoom=function(m){this.set(Nh.MIN_ZOOM,m)},f.prototype.setOpacity=function(m){Su(typeof m=="number",64),this.set(Nh.OPACITY,m)},f.prototype.setVisible=function(m){this.set(Nh.VISIBLE,m)},f.prototype.setZIndex=function(m){this.set(Nh.Z_INDEX,m)},f.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),o.prototype.disposeInternal.call(this)},f}(fw),zTt=knr;we();var Oee={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var Unr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Bnr=function(o){Unr(f,o);function f(m){var x=this,y=ox({},m);delete y.source,x=o.call(this,y)||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(Nh.SOURCE,x.handleSourcePropertyChange_);var v=m.source?m.source:null;return x.setSource(v),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(Nh.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_&&(Dy(this.sourceChangeKey_),this.sourceChangeKey_=null);var m=this.getSource();m&&(this.sourceChangeKey_=Vv(m,wd.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 y=this.getRenderer();if(y.prepareFrame(m))return this.rendered=!0,y.renderFrame(m,x)},f.prototype.unrender=function(){this.rendered=!1},f.prototype.setMapInternal=function(m){m||this.unrender(),this.set(Nh.MAP,m)},f.prototype.getMapInternal=function(){return this.get(Nh.MAP)},f.prototype.setMap=function(m){this.mapPrecomposeKey_&&(Dy(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),m||this.changed(),this.mapRenderKey_&&(Dy(this.mapRenderKey_),this.mapRenderKey_=null),m&&(this.mapPrecomposeKey_=Vv(m,Oee.PRECOMPOSE,function(x){var y=x,v=y.frameState.layerStatesArray,C=this.getLayerState(!1);Su(!v.some(function(T){return T.layer===C.layer}),67),v.push(C)},this),this.mapRenderKey_=Vv(this,wd.CHANGE,m.render,m),this.changed())},f.prototype.setSource=function(m){this.set(Nh.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}(zTt);var YTt=Bnr;var JTt=x5(uOe(),1);var Hnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),KTt={RENDER_ORDER:"renderOrder"},znr=function(o){Hnr(f,o);function f(m){var x=this,y=m||{},v=ox({},y);return delete v.style,delete v.renderBuffer,delete v.updateWhileAnimating,delete v.updateWhileInteracting,x=o.call(this,v)||this,x.declutter_=y.declutter!==void 0?y.declutter:!1,x.renderBuffer_=y.renderBuffer!==void 0?y.renderBuffer:100,x.style_=null,x.styleFunction_=void 0,x.setStyle(y.style),x.updateWhileAnimating_=y.updateWhileAnimating!==void 0?y.updateWhileAnimating:!1,x.updateWhileInteracting_=y.updateWhileInteracting!==void 0?y.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(KTt.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 JTt.default(9)),this.getRenderer().renderDeclutter(m)},f.prototype.setRenderOrder=function(m){this.set(KTt.RENDER_ORDER,m)},f.prototype.setStyle=function(m){this.style_=m!==void 0?m:UTt,this.styleFunction_=m===null?void 0:kTt(this.style_),this.changed()},f}(YTt),jTt=znr;we();we();we();we();var Xee={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},kee=[Xee.FILL],VR=[Xee.STROKE],e3=[Xee.BEGIN_PATH],cOe=[Xee.CLOSE_PATH],Es=Xee;we();var Ynr=function(){function o(){}return o.prototype.drawCustom=function(f,m,x,y){},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}(),Zfe=Ynr;var Knr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Jnr=function(o){Knr(f,o);function f(m,x,y,v){var C=o.call(this)||this;return C.tolerance=m,C.maxExtent=x,C.pixelRatio=v,C.maxLineWidth=0,C.resolution=y,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(y){return y*x})},f.prototype.appendFlatPointCoordinates=function(m,x){for(var y=this.getBufferedMaxExtent(),v=this.tmpCoordinate_,C=this.coordinates,T=C.length,S=0,w=m.length;S<w;S+=x)v[0]=m[S],v[1]=m[S+1],IR(y,v)&&(C[T++]=v[0],C[T++]=v[1]);return T},f.prototype.appendFlatLineCoordinates=function(m,x,y,v,C,T){var S=this.coordinates,w=S.length,E=this.getBufferedMaxExtent();T&&(x+=v);var L=m[x],I=m[x+1],R=this.tmpCoordinate_,P=!0,A,M,V;for(A=x+v;A<y;A+=v)R[0]=m[A],R[1]=m[A+1],V=lfe(E,R),V!==M?(P&&(S[w++]=L,S[w++]=I,P=!1),S[w++]=R[0],S[w++]=R[1]):V===ax.INTERSECTING?(S[w++]=R[0],S[w++]=R[1],P=!1):P=!0,L=R[0],I=R[1],M=V;return(C&&P||A===x+v)&&(S[w++]=L,S[w++]=I),w},f.prototype.drawCustomCoordinates_=function(m,x,y,v,C){for(var T=0,S=y.length;T<S;++T){var w=y[T],E=this.appendFlatLineCoordinates(m,x,w,v,!1,!1);C.push(E),x=w}return x},f.prototype.drawCustom=function(m,x,y,v){this.beginGeometry(m,x);var C=m.getType(),T=m.getStride(),S=this.coordinates.length,w,E,L,I,R;switch(C){case"MultiPolygon":w=m.getOrientedFlatCoordinates(),I=[];var P=m.getEndss();R=0;for(var A=0,M=P.length;A<M;++A){var V=[];R=this.drawCustomCoordinates_(w,R,P[A],T,V),I.push(V)}this.instructions.push([Es.CUSTOM,S,I,m,y,Gee]),this.hitDetectionInstructions.push([Es.CUSTOM,S,I,m,v||y,Gee]);break;case"Polygon":case"MultiLineString":L=[],w=C=="Polygon"?m.getOrientedFlatCoordinates():m.getFlatCoordinates(),R=this.drawCustomCoordinates_(w,0,m.getEnds(),T,L),this.instructions.push([Es.CUSTOM,S,L,m,y,zD]),this.hitDetectionInstructions.push([Es.CUSTOM,S,L,m,v||y,zD]);break;case"LineString":case"Circle":w=m.getFlatCoordinates(),E=this.appendFlatLineCoordinates(w,0,w.length,T,!1,!1),this.instructions.push([Es.CUSTOM,S,E,m,y,xw]),this.hitDetectionInstructions.push([Es.CUSTOM,S,E,m,v||y,xw]);break;case"MultiPoint":w=m.getFlatCoordinates(),E=this.appendFlatPointCoordinates(w,T),E>S&&(this.instructions.push([Es.CUSTOM,S,E,m,y,xw]),this.hitDetectionInstructions.push([Es.CUSTOM,S,E,m,v||y,xw]));break;case"Point":w=m.getFlatCoordinates(),this.coordinates.push(w[0],w[1]),E=this.coordinates.length,this.instructions.push([Es.CUSTOM,S,E,m,y]),this.hitDetectionInstructions.push([Es.CUSTOM,S,E,m,v||y]);break;default:}this.endGeometry(x)},f.prototype.beginGeometry=function(m,x){this.beginGeometryInstruction1_=[Es.BEGIN_GEOMETRY,x,0,m],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Es.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,y=m.length,v,C,T=-1;for(x=0;x<y;++x)v=m[x],C=v[0],C==Es.END_GEOMETRY?T=x:C==Es.BEGIN_GEOMETRY&&(v[2]=x,HCt(this.hitDetectionInstructions,T,x),T=-1)},f.prototype.setFillStrokeStyle=function(m,x){var y=this.state;if(m){var v=m.getColor();y.fillStyle=$b(v||eC)}else y.fillStyle=void 0;if(x){var C=x.getColor();y.strokeStyle=$b(C||QV);var T=x.getLineCap();y.lineCap=T!==void 0?T:gX;var S=x.getLineDash();y.lineDash=S?S.slice():KV;var w=x.getLineDashOffset();y.lineDashOffset=w||JV;var E=x.getLineJoin();y.lineJoin=E!==void 0?E:MR;var L=x.getWidth();y.lineWidth=L!==void 0?L:$V;var I=x.getMiterLimit();y.miterLimit=I!==void 0?I:jV,y.lineWidth>this.maxLineWidth&&(this.maxLineWidth=y.lineWidth,this.bufferedMaxExtent_=null)}else y.strokeStyle=void 0,y.lineCap=void 0,y.lineDash=null,y.lineDashOffset=void 0,y.lineJoin=void 0,y.lineWidth=void 0,y.miterLimit=void 0},f.prototype.createFill=function(m){var x=m.fillStyle,y=[Es.SET_FILL_STYLE,x];return typeof x!="string"&&y.push(!0),y},f.prototype.applyStroke=function(m){this.instructions.push(this.createStroke(m))},f.prototype.createStroke=function(m){return[Es.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 y=m.fillStyle;(typeof y!="string"||m.currentFillStyle!=y)&&(y!==void 0&&this.instructions.push(x.call(this,m)),m.currentFillStyle=y)},f.prototype.updateStrokeStyle=function(m,x){var y=m.strokeStyle,v=m.lineCap,C=m.lineDash,T=m.lineDashOffset,S=m.lineJoin,w=m.lineWidth,E=m.miterLimit;(m.currentStrokeStyle!=y||m.currentLineCap!=v||C!=m.currentLineDash&&!LR(m.currentLineDash,C)||m.currentLineDashOffset!=T||m.currentLineJoin!=S||m.currentLineWidth!=w||m.currentMiterLimit!=E)&&(y!==void 0&&x.call(this,m),m.currentStrokeStyle=y,m.currentLineCap=v,m.currentLineDash=C,m.currentLineDashOffset=T,m.currentLineJoin=S,m.currentLineWidth=w,m.currentMiterLimit=E)},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=[Es.END_GEOMETRY,m];this.instructions.push(x),this.hitDetectionInstructions.push(x)},f.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=u1t(this.maxExtent),this.maxLineWidth>0)){var m=this.resolution*(this.maxLineWidth+1)/2;ZL(this.bufferedMaxExtent_,m,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},f}(Zfe),GR=Jnr;we();var jnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Qnr=function(o){jnr(f,o);function f(m,x,y,v){var C=o.call(this,m,x,y,v)||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 y=m.getFlatCoordinates(),v=m.getStride(),C=this.coordinates.length,T=this.appendFlatPointCoordinates(y,v);this.instructions.push([Es.DRAW_IMAGE,C,T,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([Es.DRAW_IMAGE,C,T,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 y=m.getFlatCoordinates(),v=m.getStride(),C=this.coordinates.length,T=this.appendFlatPointCoordinates(y,v);this.instructions.push([Es.DRAW_IMAGE,C,T,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([Es.DRAW_IMAGE,C,T,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 y=m.getAnchor(),v=m.getSize(),C=m.getOrigin();this.imagePixelRatio_=m.getPixelRatio(this.pixelRatio),this.anchorX_=y[0],this.anchorY_=y[1],this.hitDetectionImage_=m.getHitDetectionImage(),this.image_=m.getImage(this.pixelRatio),this.height_=v[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_=v[0],this.declutterMode_=m.getDeclutterMode(),this.declutterImageWithText_=x},f}(GR),QTt=Qnr;we();var qnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),$nr=function(o){qnr(f,o);function f(m,x,y,v){return o.call(this,m,x,y,v)||this}return f.prototype.drawFlatCoordinates_=function(m,x,y,v){var C=this.coordinates.length,T=this.appendFlatLineCoordinates(m,x,y,v,!1,!1),S=[Es.MOVE_TO_LINE_TO,C,T];return this.instructions.push(S),this.hitDetectionInstructions.push(S),y},f.prototype.drawLineString=function(m,x){var y=this.state,v=y.strokeStyle,C=y.lineWidth;if(!(v===void 0||C===void 0)){this.updateStrokeStyle(y,this.applyStroke),this.beginGeometry(m,x),this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,KV,JV],e3);var T=m.getFlatCoordinates(),S=m.getStride();this.drawFlatCoordinates_(T,0,T.length,S),this.hitDetectionInstructions.push(VR),this.endGeometry(x)}},f.prototype.drawMultiLineString=function(m,x){var y=this.state,v=y.strokeStyle,C=y.lineWidth;if(!(v===void 0||C===void 0)){this.updateStrokeStyle(y,this.applyStroke),this.beginGeometry(m,x),this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset],e3);for(var T=m.getEnds(),S=m.getFlatCoordinates(),w=m.getStride(),E=0,L=0,I=T.length;L<I;++L)E=this.drawFlatCoordinates_(S,E,T[L],w);this.hitDetectionInstructions.push(VR),this.endGeometry(x)}},f.prototype.finish=function(){var m=this.state;return m.lastStroke!=null&&m.lastStroke!=this.coordinates.length&&this.instructions.push(VR),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(VR),m.lastStroke=this.coordinates.length),m.lastStroke=0,o.prototype.applyStroke.call(this,m),this.instructions.push(e3)},f}(GR),qTt=$nr;we();var eor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),tor=function(o){eor(f,o);function f(m,x,y,v){return o.call(this,m,x,y,v)||this}return f.prototype.drawFlatCoordinatess_=function(m,x,y,v){var C=this.state,T=C.fillStyle!==void 0,S=C.strokeStyle!==void 0,w=y.length;this.instructions.push(e3),this.hitDetectionInstructions.push(e3);for(var E=0;E<w;++E){var L=y[E],I=this.coordinates.length,R=this.appendFlatLineCoordinates(m,x,L,v,!0,!S),P=[Es.MOVE_TO_LINE_TO,I,R];this.instructions.push(P),this.hitDetectionInstructions.push(P),S&&(this.instructions.push(cOe),this.hitDetectionInstructions.push(cOe)),x=L}return T&&(this.instructions.push(kee),this.hitDetectionInstructions.push(kee)),S&&(this.instructions.push(VR),this.hitDetectionInstructions.push(VR)),x},f.prototype.drawCircle=function(m,x){var y=this.state,v=y.fillStyle,C=y.strokeStyle;if(!(v===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),y.fillStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_FILL_STYLE,eC]),y.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset]);var T=m.getFlatCoordinates(),S=m.getStride(),w=this.coordinates.length;this.appendFlatLineCoordinates(T,0,T.length,S,!1,!1);var E=[Es.CIRCLE,w];this.instructions.push(e3,E),this.hitDetectionInstructions.push(e3,E),y.fillStyle!==void 0&&(this.instructions.push(kee),this.hitDetectionInstructions.push(kee)),y.strokeStyle!==void 0&&(this.instructions.push(VR),this.hitDetectionInstructions.push(VR)),this.endGeometry(x)}},f.prototype.drawPolygon=function(m,x){var y=this.state,v=y.fillStyle,C=y.strokeStyle;if(!(v===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),y.fillStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_FILL_STYLE,eC]),y.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset]);var T=m.getEnds(),S=m.getOrientedFlatCoordinates(),w=m.getStride();this.drawFlatCoordinatess_(S,0,T,w),this.endGeometry(x)}},f.prototype.drawMultiPolygon=function(m,x){var y=this.state,v=y.fillStyle,C=y.strokeStyle;if(!(v===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),y.fillStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_FILL_STYLE,eC]),y.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset]);for(var T=m.getEndss(),S=m.getOrientedFlatCoordinates(),w=m.getStride(),E=0,L=0,I=T.length;L<I;++L)E=this.drawFlatCoordinatess_(S,E,T[L],w);this.endGeometry(x)}},f.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var m=this.tolerance;if(m!==0)for(var x=this.coordinates,y=0,v=x.length;y<v;++y)x[y]=HD(x[y],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}(GR),hOe=tor;we();we();function $Tt(o,f,m,x,y){var v=m,C=m,T=0,S=0,w=m,E,L,I,R,P,A,M,V,G,D;for(L=m;L<x;L+=y){var N=f[L],k=f[L+1];P!==void 0&&(G=N-P,D=k-A,R=Math.sqrt(G*G+D*D),M!==void 0&&(S+=I,E=Math.acos((M*G+V*D)/(I*R)),E>o&&(S>T&&(T=S,v=w,C=L),S=0,w=L-y)),I=R,M=G,V=D),P=N,A=k}return S+=R,S>T?[w,L]:[v,C]}var ior=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),hK={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},ror=function(o){ior(f,o);function f(m,x,y,v){var C=o.call(this,m,x,y,v)||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 y=this.textFillState_,v=this.textStrokeState_,C=this.textState_;if(!(this.text_===""||!C||!y&&!v)){var T=this.coordinates,S=T.length,w=m.getType(),E=null,L=m.getStride();if(C.placement===Wfe.LINE&&(w=="LineString"||w=="MultiLineString"||w=="Polygon"||w=="MultiPolygon")){if(!Ed(this.getBufferedMaxExtent(),m.getExtent()))return;var I=void 0;if(E=m.getFlatCoordinates(),w=="LineString")I=[E.length];else if(w=="MultiLineString")I=m.getEnds();else if(w=="Polygon")I=m.getEnds().slice(0,1);else if(w=="MultiPolygon"){var R=m.getEndss();I=[];for(var P=0,A=R.length;P<A;++P)I.push(R[P][0])}this.beginGeometry(m,x);for(var M=C.textAlign,V=0,G=void 0,D=0,N=I.length;D<N;++D){if(M==null){var k=$Tt(C.maxAngle,E,V,I[D],L);V=k[0],G=k[1]}else G=I[D];for(var P=V;P<G;P+=L)T.push(E[P],E[P+1]);var U=T.length;V=I[D],this.drawChars_(S,U),S=U}this.endGeometry(x)}else{var B=C.overflow?null:[];switch(w){case"Point":case"MultiPoint":E=m.getFlatCoordinates();break;case"LineString":E=m.getFlatMidpoint();break;case"Circle":E=m.getCenter();break;case"MultiLineString":E=m.getFlatMidpoints(),L=2;break;case"Polygon":E=m.getFlatInteriorPoint(),C.overflow||B.push(E[2]/this.resolution),L=3;break;case"MultiPolygon":var Y=m.getFlatInteriorPoints();E=[];for(var P=0,A=Y.length;P<A;P+=3)C.overflow||B.push(Y[P+2]/this.resolution),E.push(Y[P],Y[P+1]);if(E.length===0)return;L=2;break;default:}var U=this.appendFlatPointCoordinates(E,L);if(U===S)return;if(B&&(U-S)/2!==E.length/L){var J=S/2;B=B.filter(function(ee,ae){var oe=T[(J+ae)*2]===E[ae*L]&&T[(J+ae)*2+1]===E[ae*L+1];return oe||--J,oe})}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 K=C.padding;if(K!=qV&&(C.scale[0]<0||C.scale[1]<0)){var z=C.padding[0],j=C.padding[1],q=C.padding[2],O=C.padding[3];C.scale[0]<0&&(j=-j,O=-O),C.scale[1]<0&&(z=-z,q=-q),K=[z,j,q,O]}var te=this.pixelRatio;this.instructions.push([Es.DRAW_IMAGE,S,U,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,K==qV?qV:K.map(function(ee){return ee*te}),!!C.backgroundFill,!!C.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,B]);var ie=1/te;this.hitDetectionInstructions.push([Es.DRAW_IMAGE,S,U,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[ie,ie],NaN,void 0,this.declutterImageWithText_,K,!!C.backgroundFill,!!C.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,B]),this.endGeometry(x)}}},f.prototype.saveTextStates_=function(){var m=this.textStrokeState_,x=this.textState_,y=this.textFillState_,v=this.strokeKey_;m&&(v in this.strokeStates||(this.strokeStates[v]={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||jD,justify:x.justify,textBaseline:x.textBaseline||yX,scale:x.scale});var T=this.fillKey_;y&&(T in this.fillStates||(this.fillStates[T]={fillStyle:y.fillStyle}))},f.prototype.drawChars_=function(m,x){var y=this.textStrokeState_,v=this.textState_,C=this.strokeKey_,T=this.textKey_,S=this.fillKey_;this.saveTextStates_();var w=this.pixelRatio,E=hK[v.textBaseline],L=this.textOffsetY_*w,I=this.text_,R=y?y.lineWidth*Math.abs(v.scale[0])/2:0;this.instructions.push([Es.DRAW_CHARS,m,x,E,v.overflow,S,v.maxAngle,w,L,C,R*w,I,T,1]),this.hitDetectionInstructions.push([Es.DRAW_CHARS,m,x,E,v.overflow,S,v.maxAngle,1,L,C,R,I,T,1/w])},f.prototype.setTextStyle=function(m,x){var y,v,C;if(!m)this.text_="";else{var T=m.getFill();T?(v=this.textFillState_,v||(v={},this.textFillState_=v),v.fillStyle=$b(T.getColor()||eC)):(v=null,this.textFillState_=v);var S=m.getStroke();if(!S)C=null,this.textStrokeState_=C;else{C=this.textStrokeState_,C||(C={},this.textStrokeState_=C);var w=S.getLineDash(),E=S.getLineDashOffset(),L=S.getWidth(),I=S.getMiterLimit();C.lineCap=S.getLineCap()||gX,C.lineDash=w?w.slice():KV,C.lineDashOffset=E===void 0?JV:E,C.lineJoin=S.getLineJoin()||MR,C.lineWidth=L===void 0?$V:L,C.miterLimit=I===void 0?jV:I,C.strokeStyle=$b(S.getColor()||QV)}y=this.textState_;var R=m.getFont()||Nfe;GTt(R);var P=m.getScaleArray();y.overflow=m.getOverflow(),y.font=R,y.maxAngle=m.getMaxAngle(),y.placement=m.getPlacement(),y.textAlign=m.getTextAlign(),y.justify=m.getJustify(),y.textBaseline=m.getTextBaseline()||yX,y.backgroundFill=m.getBackgroundFill(),y.backgroundStroke=m.getBackgroundStroke(),y.padding=m.getPadding()||qV,y.scale=P===void 0?[1,1]:P;var A=m.getOffsetX(),M=m.getOffsetY(),V=m.getRotateWithView(),G=m.getRotation();this.text_=m.getText()||"",this.textOffsetX_=A===void 0?0:A,this.textOffsetY_=M===void 0?0:M,this.textRotateWithView_=V===void 0?!1:V,this.textRotation_=G===void 0?0:G,this.strokeKey_=C?(typeof C.strokeStyle=="string"?C.strokeStyle:mu(C.strokeStyle))+C.lineCap+C.lineDashOffset+"|"+C.lineWidth+C.lineJoin+C.miterLimit+"["+C.lineDash.join()+"]":"",this.textKey_=y.font+y.scale+(y.textAlign||"?")+(y.justify||"?")+(y.textBaseline||"?"),this.fillKey_=v?typeof v.fillStyle=="string"?v.fillStyle:"|"+mu(v.fillStyle):""}this.declutterImageWithText_=x},f}(GR),eSt=ror;var nor={Circle:hOe,Default:GR,Image:QTt,LineString:qTt,Polygon:hOe,Text:eSt},oor=function(){function o(f,m,x,y){this.tolerance_=f,this.maxExtent_=m,this.pixelRatio_=y,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 y in x){var v=x[y].finish();f[m][y]=v}}return f},o.prototype.getBuilder=function(f,m){var x=f!==void 0?f.toString():"0",y=this.buildersByZIndex_[x];y===void 0&&(y={},this.buildersByZIndex_[x]=y);var v=y[m];if(v===void 0){var C=nor[m];v=new C(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),y[m]=v}return v},o}(),dOe=oor;we();we();we();function tSt(o,f,m,x,y,v,C,T,S,w,E,L){var I=o[f],R=o[f+1],P=0,A=0,M=0,V=0;function G(){P=I,A=R,f+=x,I=o[f],R=o[f+1],V+=M,M=Math.sqrt((I-P)*(I-P)+(R-A)*(R-A))}do G();while(f<m-x&&V+M<v);for(var D=M===0?0:(v-V)/M,N=dw(P,I,D),k=dw(A,R,D),U=f-x,B=V,Y=v+T*S(w,y,E);f<m-x&&V+M<Y;)G();D=M===0?0:(Y-V)/M;var J=dw(P,I,D),K=dw(A,R,D),z;if(L){var j=[N,k,J,K];wfe(j,0,4,2,L,j,j),z=j[0]>j[2]}else z=N>J;var q=Math.PI,O=[],te=U+x===f;f=U,M=0,V=B,I=o[f],R=o[f+1];var ie;if(te){G(),ie=Math.atan2(R-A,I-P),z&&(ie+=ie>0?-q:q);var re=(J+N)/2,ee=(K+k)/2;return O[0]=[re,ee,(Y-v)/2,ie,y],O}y=y.replace(/\n/g," ");for(var ae=0,oe=y.length;ae<oe;){G();var ce=Math.atan2(R-A,I-P);if(z&&(ce+=ce>0?-q:q),ie!==void 0){var pe=ce-ie;if(pe+=pe>q?-2*q:pe<-q?2*q:0,Math.abs(pe)>C)return null}ie=ce;for(var ue=ae,he=0;ae<oe;++ae){var fe=z?oe-ae-1:ae,de=T*S(w,y[fe],E);if(f+x<m&&V+M<v+he+de/2)break;he+=de}if(ae!==ue){var Ce=z?y.substring(oe-ue,oe-ae):y.substring(ue,ae);D=M===0?0:(v+he/2-V)/M;var re=dw(P,I,D),ee=dw(A,R,D);O.push([re,ee,he/2,ce,Ce]),v+=he}}return O}var dK=Zg(),QD=[],t3=[],i3=[],qD=[];function iSt(o){return o[3].declutterBox}var aor=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 rSt(o,f){return(f==="start"||f==="end")&&!aor.test(o)&&(f=f==="start"?"left":"right"),hK[f]}function sor(o,f,m){return m>0&&o.push(` `,""),o.push(f,""),o}var lor=function(){function o(f,m,x,y){this.overlaps=x,this.pixelRatio=m,this.resolution=f,this.alignFill_,this.instructions=y.instructions,this.coordinates=y.coordinates,this.coordinateCache_={},this.renderedTransform_=Ny(),this.hitDetectionInstructions=y.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=y.fillStates||{},this.strokeStates=y.strokeStates||{},this.textStates=y.textStates||{},this.widths_={},this.labels_={}}return o.prototype.createLabel=function(f,m,x,y){var v=f+m+x+y;if(this.labels_[v])return this.labels_[v];var C=y?this.strokeStates[y]:null,T=x?this.fillStates[x]:null,S=this.textStates[m],w=this.pixelRatio,E=[S.scale[0]*w,S.scale[1]*w],L=Array.isArray(f),I=S.justify?hK[S.justify]:rSt(Array.isArray(f)?f[0]:f,S.textAlign||jD),R=y&&C.lineWidth?C.lineWidth:0,P=L?f:f.split(` `).reduce(sor,[]),A=DTt(S,P),M=A.width,V=A.height,G=A.widths,D=A.heights,N=A.lineWidths,k=M+R,U=[],B=(k+2)*E[0],Y=(V+R)*E[1],J={width:B<0?Math.floor(B):Math.ceil(B),height:Y<0?Math.floor(Y):Math.ceil(Y),contextInstructions:U};if((E[0]!=1||E[1]!=1)&&U.push("scale",E),y){U.push("strokeStyle",C.strokeStyle),U.push("lineWidth",R),U.push("lineCap",C.lineCap),U.push("lineJoin",C.lineJoin),U.push("miterLimit",C.miterLimit);var K=BD?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;K.prototype.setLineDash&&(U.push("setLineDash",[C.lineDash]),U.push("lineDashOffset",C.lineDashOffset))}x&&U.push("fillStyle",T.fillStyle),U.push("textBaseline","middle"),U.push("textAlign","center");for(var z=.5-I,j=I*k+z*R,q=[],O=[],te=0,ie=0,re=0,ee=0,ae,oe=0,ce=P.length;oe<ce;oe+=2){var pe=P[oe];if(pe===` -`){ie+=te,te=0,j=I*k+z*R,++ee;continue}var ue=P[oe+1]||S.font;ue!==ae&&(y&&q.push("font",ue),x&&O.push("font",ue),ae=ue),te=Math.max(te,D[re]);var he=[pe,j+z*G[re]+I*(G[re]-N[ee]),.5*(R+te)+ie];j+=G[re],y&&q.push("strokeText",he),x&&O.push("fillText",he),++re}return Array.prototype.push.apply(U,q),Array.prototype.push.apply(U,O),this.labels_[v]=J,J},o.prototype.replayTextBackground_=function(f,m,x,y,v,C,T){f.beginPath(),f.moveTo.apply(f,m),f.lineTo.apply(f,x),f.lineTo.apply(f,y),f.lineTo.apply(f,v),f.lineTo.apply(f,m),C&&(this.alignFill_=C[2],this.fill_(f)),T&&(this.setStrokeStyle_(f,T),f.stroke())},o.prototype.calculateImageOrLabelDimensions_=function(f,m,x,y,v,C,T,S,w,E,L,I,R,P,A,M){T*=I[0],S*=I[1];var V=x-T,G=y-S,D=v+w>f?f-w:v,N=C+E>m?m-E:C,k=P[3]+D*I[0]+P[1],U=P[0]+N*I[1]+P[2],B=V-P[3],Y=G-P[0];(A||L!==0)&&(QD[0]=B,qD[0]=B,QD[1]=Y,t3[1]=Y,t3[0]=B+k,i3[0]=t3[0],i3[1]=Y+U,qD[1]=i3[1]);var J;return L!==0?(J=d2(Ny(),x,y,1,1,L,-x,-y),Zf(J,QD),Zf(J,t3),Zf(J,i3),Zf(J,qD),K1(Math.min(QD[0],t3[0],i3[0],qD[0]),Math.min(QD[1],t3[1],i3[1],qD[1]),Math.max(QD[0],t3[0],i3[0],qD[0]),Math.max(QD[1],t3[1],i3[1],qD[1]),dK)):K1(Math.min(B,B+k),Math.min(Y,Y+U),Math.max(B,B+k),Math.max(Y,Y+U),dK),R&&(V=Math.round(V),G=Math.round(G)),{drawImageX:V,drawImageY:G,drawImageW:D,drawImageH:N,originX:w,originY:E,declutterBox:{minX:dK[0],minY:dK[1],maxX:dK[2],maxY:dK[3],value:M},canvasTransform:J,scale:I}},o.prototype.replayImageOrLabel_=function(f,m,x,y,v,C,T){var S=!!(C||T),w=y.declutterBox,E=f.canvas,L=T?T[2]*y.scale[0]/2:0,I=w.minX-L<=E.width/m&&w.maxX+L>=0&&w.minY-L<=E.height/m&&w.maxY+L>=0;return I&&(S&&this.replayTextBackground_(f,QD,t3,i3,qD,C,T),NTt(f,y.canvasTransform,v,x,y.originX,y.originY,y.drawImageW,y.drawImageH,y.drawImageX,y.drawImageY,y.scale)),!0},o.prototype.fill_=function(f){if(this.alignFill_){var m=Zf(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,y){var v=this.textStates[m],C=this.createLabel(f,m,y,x),T=this.strokeStates[x],S=this.pixelRatio,w=rSt(Array.isArray(f)?f[0]:f,v.textAlign||jD),E=hK[v.textBaseline||yX],L=T&&T.lineWidth?T.lineWidth:0,I=C.width/S-2*v.scale[0],R=w*I+2*(.5-w)*L,P=E*C.height/S+2*(.5-E)*L;return{label:C,anchorX:R,anchorY:P}},o.prototype.execute_=function(f,m,x,y,v,C,T,S){var w;this.pixelCoordinates_&&LR(x,this.renderedTransform_)?w=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),w=Qb(this.coordinates,0,this.coordinates.length,2,x,this.pixelCoordinates_),eTt(this.renderedTransform_,x));for(var E=0,L=y.length,I=0,R,P,A,M,V,G,D,N,k,U,B,Y,J=0,K=0,z=null,j=null,q=this.coordinateCache_,O=this.viewRotation_,te=Math.round(Math.atan2(-x[1],x[0])*1e12)/1e12,ie={context:f,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:O},re=this.instructions!=y||this.overlaps?0:200,ee,ae,oe,ce;E<L;){var pe=y[E],ue=pe[0];switch(ue){case Es.BEGIN_GEOMETRY:ee=pe[1],ce=pe[3],ee.getGeometry()?T!==void 0&&!Ed(T,ce.getExtent())?E=pe[2]+1:++E:E=pe[2];break;case Es.BEGIN_PATH:J>re&&(this.fill_(f),J=0),K>re&&(f.stroke(),K=0),!J&&!K&&(f.beginPath(),M=NaN,V=NaN),++E;break;case Es.CIRCLE:I=pe[1];var he=w[I],fe=w[I+1],de=w[I+2],Ce=w[I+3],Se=de-he,Le=Ce-fe,Ve=Math.sqrt(Se*Se+Le*Le);f.moveTo(he+Ve,fe),f.arc(he,fe,Ve,0,2*Math.PI,!0),++E;break;case Es.CLOSE_PATH:f.closePath(),++E;break;case Es.CUSTOM:I=pe[1],R=pe[2];var Oe=pe[3],$e=pe[4],at=pe.length==6?pe[5]:void 0;ie.geometry=Oe,ie.feature=ee,E in q||(q[E]=[]);var dt=q[E];at?at(w,I,R,2,dt):(dt[0]=w[I],dt[1]=w[I+1],dt.length=2),$e(dt,ie),++E;break;case Es.DRAW_IMAGE:I=pe[1],R=pe[2],N=pe[3],P=pe[4],A=pe[5];var gt=pe[6],Et=pe[7],et=pe[8],yt=pe[9],Rt=pe[10],Vt=pe[11],_t=pe[12],se=pe[13],ve=pe[14],je=pe[15];if(!N&&pe.length>=20){k=pe[19],U=pe[20],B=pe[21],Y=pe[22];var Ft=this.drawLabelWithPointPlacement_(k,U,B,Y);N=Ft.label,pe[3]=N;var kt=pe[23];P=(Ft.anchorX-kt)*this.pixelRatio,pe[4]=P;var bt=pe[24];A=(Ft.anchorY-bt)*this.pixelRatio,pe[5]=A,gt=N.height,pe[6]=gt,se=N.width,pe[13]=se}var lt=void 0;pe.length>25&&(lt=pe[25]);var ot=void 0,tt=void 0,ze=void 0;pe.length>17?(ot=pe[16],tt=pe[17],ze=pe[18]):(ot=qV,tt=!1,ze=!1),Rt&&te?Vt+=O:!Rt&&!te&&(Vt-=O);for(var ct=0;I<R;I+=2)if(!(lt&<[ct++]<se/this.pixelRatio)){var Wt=this.calculateImageOrLabelDimensions_(N.width,N.height,w[I],w[I+1],se,gt,P,A,et,yt,Vt,_t,v,ot,tt||ze,ee),Tt=[f,m,N,Wt,Et,tt?z:null,ze?j:null];if(S){if(ve==="none")continue;if(ve==="obstacle"){S.insert(Wt.declutterBox);continue}else{var Ht=void 0,Ci=void 0;if(je){var Yt=R-I;if(!je[Yt]){je[Yt]=Tt;continue}if(Ht=je[Yt],delete je[Yt],Ci=iSt(Ht),S.collides(Ci))continue}if(S.collides(Wt.declutterBox))continue;Ht&&(S.insert(Ci),this.replayImageOrLabel_.apply(this,Ht)),S.insert(Wt.declutterBox)}}this.replayImageOrLabel_.apply(this,Tt)}++E;break;case Es.DRAW_CHARS:var li=pe[1],Ne=pe[2],Ze=pe[3],De=pe[4];Y=pe[5];var He=pe[6],Ue=pe[7],ft=pe[8];B=pe[9];var St=pe[10];k=pe[11],U=pe[12];var Be=[pe[13],pe[13]],st=this.textStates[U],At=st.font,Mt=[st.scale[0]*Ue,st.scale[1]*Ue],It=void 0;At in this.widths_?It=this.widths_[At]:(It={},this.widths_[At]=It);var ui=Lfe(w,li,Ne,2),Ai=Math.abs(Mt[0])*oOe(At,k,It);if(De||Ai<=ui){var wi=this.textStates[U].textAlign,zi=(ui-Ai)*hK[wi],Ri=tSt(w,li,Ne,2,k,zi,He,Math.abs(Mt[0]),oOe,At,It,te?0:this.viewRotation_);e:if(Ri){var Ot=[],Kt=void 0,ri=void 0,ii=void 0,ci=void 0,Gi=void 0;if(B)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,"",B),P=Gi[2]+(Mt[0]<0?-St:St),A=Ze*ci.height+(.5-Ze)*2*St*Mt[1]/Mt[0]-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,qV,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}if(Y)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,Y,""),P=Gi[2],A=Ze*ci.height-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,qV,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}S&&S.load(Ot.map(iSt));for(var Ki=0,ar=Ot.length;Ki<ar;++Ki)this.replayImageOrLabel_.apply(this,Ot[Ki])}}++E;break;case Es.END_GEOMETRY:if(C!==void 0){ee=pe[1];var Ir=C(ee,ce);if(Ir)return Ir}++E;break;case Es.FILL:re?J++:this.fill_(f),++E;break;case Es.MOVE_TO_LINE_TO:for(I=pe[1],R=pe[2],ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(G!==M||D!==V)&&(f.moveTo(ae,oe),M=G,V=D),I+=2;I<R;I+=2)ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(I==R-2||G!==M||D!==V)&&(f.lineTo(ae,oe),M=G,V=D);++E;break;case Es.SET_FILL_STYLE:z=pe,this.alignFill_=pe[2],J&&(this.fill_(f),J=0,K&&(f.stroke(),K=0)),f.fillStyle=pe[1],++E;break;case Es.SET_STROKE_STYLE:j=pe,K&&(f.stroke(),K=0),this.setStrokeStyle_(f,pe),++E;break;case Es.STROKE:re?K++:f.stroke(),++E;break;default:++E;break}}J&&this.fill_(f),K&&f.stroke()},o.prototype.execute=function(f,m,x,y,v,C){this.viewRotation_=y,this.execute_(f,m,x,this.instructions,v,void 0,void 0,C)},o.prototype.executeHitDetection=function(f,m,x,y,v){return this.viewRotation_=x,this.execute_(f,1,m,this.hitDetectionInstructions,!0,y,v)},o}(),nSt=lor;var pOe=["Polygon","Circle","LineString","Image","Text","Default"],uor=function(){function o(f,m,x,y,v,C){this.maxExtent_=f,this.overlaps_=y,this.pixelRatio_=x,this.resolution_=m,this.renderBuffer_=C,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Ny(),this.createExecutors_(v)}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 y=f[m];for(var v in y){var C=y[v];x[v]=new nSt(this.resolution_,this.pixelRatio_,this.overlaps_,C)}}},o.prototype.hasExecutors=function(f){for(var m in this.executorsByZIndex_)for(var x=this.executorsByZIndex_[m],y=0,v=f.length;y<v;++y)if(f[y]in x)return!0;return!1},o.prototype.forEachFeatureAtCoordinate=function(f,m,x,y,v,C){y=Math.round(y);var T=y*2+1,S=d2(this.hitDetectionTransform_,y+.5,y+.5,1/m,-1/m,-x,-f[0],-f[1]),w=!this.hitDetectionContext_;w&&(this.hitDetectionContext_=Wf(T,T));var E=this.hitDetectionContext_;E.canvas.width!==T||E.canvas.height!==T?(E.canvas.width=T,E.canvas.height=T):w||E.clearRect(0,0,T,T);var L;this.renderBuffer_!==void 0&&(L=Zg(),cX(L,f),ZL(L,m*(this.renderBuffer_+y),L));var I=cor(y),R;function P(U,B){for(var Y=E.getImageData(0,0,T,T).data,J=0,K=I.length;J<K;J++)if(Y[I[J]]>0){if(!C||R!=="Image"&&R!=="Text"||C.indexOf(U)!==-1){var z=(I[J]-3)/4,j=y-z%T,q=y-(z/T|0),O=v(U,B,j*j+q*q);if(O)return O}E.clearRect(0,0,T,T);break}}var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(DL);var M,V,G,D,N;for(M=A.length-1;M>=0;--M){var k=A[M].toString();for(G=this.executorsByZIndex_[k],V=pOe.length-1;V>=0;--V)if(R=pOe[V],D=G[R],D!==void 0&&(N=D.executeHitDetection(E,S,x,P,L),N))return N}},o.prototype.getClipCoords=function(f){var m=this.maxExtent_;if(!m)return null;var x=m[0],y=m[1],v=m[2],C=m[3],T=[x,y,x,C,v,C,v,y];return Qb(T,0,8,2,f,T),T},o.prototype.isEmpty=function(){return NL(this.executorsByZIndex_)},o.prototype.execute=function(f,m,x,y,v,C,T){var S=Object.keys(this.executorsByZIndex_).map(Number);S.sort(DL),this.maxExtent_&&(f.save(),this.clip(f,x));var w=C||pOe,E,L,I,R,P,A;for(T&&S.reverse(),E=0,L=S.length;E<L;++E){var M=S[E].toString();for(P=this.executorsByZIndex_[M],I=0,R=w.length;I<R;++I){var V=w[I];A=P[V],A!==void 0&&A.execute(f,m,x,y,v,T)}}this.maxExtent_&&f.restore()},o}(),fOe={};function cor(o){if(fOe[o]!==void 0)return fOe[o];for(var f=o*2+1,m=o*o,x=new Array(m+1),y=0;y<=o;++y)for(var v=0;v<=o;++v){var C=y*y+v*v;if(C>m)break;var T=x[C];T||(T=[],x[C]=T),T.push(((o+y)*f+(o+v))*4+3),y>0&&T.push(((o-y)*f+(o+v))*4+3),v>0&&(T.push(((o+y)*f+(o-v))*4+3),y>0&&T.push(((o-y)*f+(o-v))*4+3))}for(var S=[],y=0,w=x.length;y<w;++y)x[y]&&S.push.apply(S,x[y]);return fOe[o]=S,S}var mOe=uor;we();we();we();var hor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),dor=function(o){hor(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 Us()},f.prototype.getData=function(m){return null},f.prototype.prepareFrame=function(m){return Us()},f.prototype.renderFrame=function(m,x){return Us()},f.prototype.loadedTileCallback=function(m,x,y){m[x]||(m[x]={}),m[x][y.tileCoord.toString()]=y},f.prototype.createLoadedTileFinder=function(m,x,y){return function(v,C){var T=this.loadedTileCallback.bind(this,y,v);return m.forEachLoadedTile(x,v,C,T)}.bind(this)},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){},f.prototype.getDataAtPixel=function(m,x,y){return null},f.prototype.getLayer=function(){return this.layer_},f.prototype.handleFontsChanged=function(){},f.prototype.handleImageChange_=function(m){var x=m.target;x.getState()===bh.LOADED&&this.renderIfReadyAndVisible()},f.prototype.loadImage=function(m){var x=m.getState();return x!=bh.LOADED&&x!=bh.ERROR&&m.addEventListener(wd.CHANGE,this.boundHandleImageChange_),x==bh.IDLE&&(m.load(),x=m.getState()),x==bh.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}(xfe),oSt=dor;we();var por=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),mor=function(o){por(f,o);function f(m,x,y,v){var C=o.call(this,m)||this;return C.inversePixelTransform=x,C.frameState=y,C.context=v,C}return f}(hw),aSt=mor;var xor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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 pK=null;function gor(){var o=document.createElement("canvas");o.width=1,o.height=1,pK=o.getContext("2d")}var yor=function(o){xor(f,o);function f(m){var x=o.call(this,m)||this;return x.container=null,x.renderedResolution,x.tempTransform=Ny(),x.pixelTransform=Ny(),x.inversePixelTransform=Ny(),x.context=null,x.containerReused=!1,x.pixelContext_=null,x.frameState=null,x}return f.prototype.getImageData=function(m,x,y){pK||gor(),pK.clearRect(0,0,1,1);var v;try{pK.drawImage(m,x,y,1,1,0,0,1,1),v=pK.getImageData(0,0,1,1).data}catch{return pK=null,null}return v},f.prototype.getBackground=function(m){var x=this.getLayer(),y=x.getBackground();return typeof y=="function"&&(y=y(m.viewState.resolution)),y||void 0},f.prototype.useContainer=function(m,x,y){var v=this.getLayer().getClassName(),C,T;if(m&&m.className===v&&(!y||m&&m.style.backgroundColor&&LR(xX(m.style.backgroundColor),xX(y)))){var S=m.firstElementChild;S instanceof HTMLCanvasElement&&(T=S.getContext("2d"))}if(T&&T.canvas.style.transform===x?(this.container=m,this.context=T,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){C=document.createElement("div"),C.className=v;var w=C.style;w.position="absolute",w.width="100%",w.height="100%",T=Wf();var S=T.canvas;C.appendChild(S),w=S.style,w.position="absolute",w.left="0",w.transformOrigin="top left",this.container=C,this.context=T}!this.containerReused&&y&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=y)},f.prototype.clipUnrotated=function(m,x,y){var v=jb(y),C=iK(y),T=tK(y),S=eK(y);Zf(x.coordinateToPixelTransform,v),Zf(x.coordinateToPixelTransform,C),Zf(x.coordinateToPixelTransform,T),Zf(x.coordinateToPixelTransform,S);var w=this.inversePixelTransform;Zf(w,v),Zf(w,C),Zf(w,T),Zf(w,S),m.save(),m.beginPath(),m.moveTo(Math.round(v[0]),Math.round(v[1])),m.lineTo(Math.round(C[0]),Math.round(C[1])),m.lineTo(Math.round(T[0]),Math.round(T[1])),m.lineTo(Math.round(S[0]),Math.round(S[1])),m.clip()},f.prototype.dispatchRenderEvent_=function(m,x,y){var v=this.getLayer();if(v.hasListener(m)){var C=new aSt(m,this.inversePixelTransform,y,x);v.dispatchEvent(C)}},f.prototype.preRender=function(m,x){this.frameState=x,this.dispatchRenderEvent_(Oee.PRERENDER,m,x)},f.prototype.postRender=function(m,x){this.dispatchRenderEvent_(Oee.POSTRENDER,m,x)},f.prototype.getRenderTransform=function(m,x,y,v,C,T,S){var w=C/2,E=T/2,L=v/x,I=-L,R=-m[0]+S,P=-m[1];return d2(this.tempTransform,w,E,L,I,-y,R,P)},f.prototype.getDataAtPixel=function(m,x,y){var v=Zf(this.inversePixelTransform,m.slice()),C=this.context,T=this.getLayer(),S=T.getExtent();if(S){var w=Zf(x.pixelToCoordinateTransform,m.slice());if(!IR(S,w))return null}var E=Math.round(v[0]),L=Math.round(v[1]),I=this.pixelContext_;if(!I){var R=document.createElement("canvas");R.width=1,R.height=1,I=R.getContext("2d"),this.pixelContext_=I}I.clearRect(0,0,1,1);var P;try{I.drawImage(C.canvas,E,L,1,1,0,0,1,1),P=I.getImageData(0,0,1,1).data}catch(A){return A.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}(oSt),sSt=yor;we();we();we();var _or=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),vor=function(o){_or(f,o);function f(m,x,y,v){var C=o.call(this)||this;return C.extent=m,C.pixelRatio_=y,C.resolution=x,C.state=v,C}return f.prototype.changed=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.getExtent=function(){return this.extent},f.prototype.getImage=function(){return Us()},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(){Us()},f}(PR),lSt=vor;var bor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),BDr=function(o){bor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,y,bh.IDLE)||this;return S.src_=v,S.image_=new Image,C!==null&&(S.image_.crossOrigin=C),S.unlisten_=null,S.state=bh.IDLE,S.imageLoadFunction_=T,S}return f.prototype.getImage=function(){return this.image_},f.prototype.handleImageError_=function(){this.state=bh.ERROR,this.unlistenImage_(),this.changed()},f.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=Fy(this.extent)/this.image_.height),this.state=bh.LOADED,this.unlistenImage_(),this.changed()},f.prototype.load=function(){(this.state==bh.IDLE||this.state==bh.ERROR)&&(this.state=bh.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.setImage=function(m){this.image_=m,this.resolution=Fy(this.extent)/this.image_.height},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(lSt);function Uee(o,f,m){var x=o,y=!0,v=!1,C=!1,T=[rK(x,wd.LOAD,function(){C=!0,v||f()})];return x.src&&z1t?(v=!0,x.decode().then(function(){y&&f()}).catch(function(S){y&&(C?f():m())})):T.push(rK(x,wd.ERROR,m)),function(){y=!1,T.forEach(Dy)}}var Cor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Tor=function(o){Cor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,T)||this;return S.crossOrigin_=v,S.src_=y,S.key=y,S.image_=new Image,v!==null&&(S.image_.crossOrigin=v),S.unlisten_=null,S.tileLoadFunction_=C,S}return f.prototype.getImage=function(){return this.image_},f.prototype.setImage=function(m){this.image_=m,this.state=Qo.LOADED,this.unlistenImage_(),this.changed()},f.prototype.handleImageError_=function(){this.state=Qo.ERROR,this.unlistenImage_(),this.image_=Sor(),this.changed()},f.prototype.handleImageLoad_=function(){var m=this.image_;m.naturalWidth&&m.naturalHeight?this.state=Qo.LOADED:this.state=Qo.EMPTY,this.unlistenImage_(),this.changed()},f.prototype.load=function(){this.state==Qo.ERROR&&(this.state=Qo.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Qo.IDLE&&(this.state=Qo.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(WD);function Sor(){var o=Wf(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var uSt=Tor;we();we();var cSt=.5;we();var wor=10,hSt=.25,Eor=function(){function o(f,m,x,y,v,C){this.sourceProj_=f,this.targetProj_=m;var T={},S=dX(this.targetProj_,this.sourceProj_);this.transformInv_=function(D){var N=D[0]+"/"+D[1];return T[N]||(T[N]=S(D)),T[N]},this.maxSourceExtent_=y,this.errorThresholdSquared_=v*v,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!y&&!!this.sourceProj_.getExtent()&&af(y)==af(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?af(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?af(this.targetProj_.getExtent()):null;var w=jb(x),E=iK(x),L=tK(x),I=eK(x),R=this.transformInv_(w),P=this.transformInv_(E),A=this.transformInv_(L),M=this.transformInv_(I),V=wor+(C?Math.max(0,Math.ceil(o1t(bee(x)/(C*C*256*256)))):0);if(this.addQuad_(w,E,L,I,R,P,A,M,V),this.wrapsXInSource_){var G=1/0;this.triangles_.forEach(function(D,N,k){G=Math.min(G,D.source[0][0],D.source[1][0],D.source[2][0])}),this.triangles_.forEach(function(D){if(Math.max(D.source[0][0],D.source[1][0],D.source[2][0])-G>this.sourceWorldWidth_/2){var N=[[D.source[0][0],D.source[0][1]],[D.source[1][0],D.source[1][1]],[D.source[2][0],D.source[2][1]]];N[0][0]-G>this.sourceWorldWidth_/2&&(N[0][0]-=this.sourceWorldWidth_),N[1][0]-G>this.sourceWorldWidth_/2&&(N[1][0]-=this.sourceWorldWidth_),N[2][0]-G>this.sourceWorldWidth_/2&&(N[2][0]-=this.sourceWorldWidth_);var k=Math.min(N[0][0],N[1][0],N[2][0]),U=Math.max(N[0][0],N[1][0],N[2][0]);U-k<this.sourceWorldWidth_/2&&(D.source=N)}}.bind(this))}T={}}return o.prototype.addTriangle_=function(f,m,x,y,v,C){this.triangles_.push({source:[y,v,C],target:[f,m,x]})},o.prototype.addQuad_=function(f,m,x,y,v,C,T,S,w){var E=_ee([v,C,T,S]),L=this.sourceWorldWidth_?af(E)/this.sourceWorldWidth_:null,I=this.sourceWorldWidth_,R=this.sourceProj_.canWrapX()&&L>.5&&L<1,P=!1;if(w>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var A=_ee([f,m,x,y]),M=af(A)/this.targetWorldWidth_;P=M>hSt||P}!R&&this.sourceProj_.isGlobal()&&L&&(P=L>hSt||P)}if(!(!P&&this.maxSourceExtent_&&isFinite(E[0])&&isFinite(E[1])&&isFinite(E[2])&&isFinite(E[3])&&!Ed(E,this.maxSourceExtent_))){var V=0;if(!P&&(!isFinite(v[0])||!isFinite(v[1])||!isFinite(C[0])||!isFinite(C[1])||!isFinite(T[0])||!isFinite(T[1])||!isFinite(S[0])||!isFinite(S[1]))){if(w>0)P=!0;else if(V=(!isFinite(v[0])||!isFinite(v[1])?8:0)+(!isFinite(C[0])||!isFinite(C[1])?4:0)+(!isFinite(T[0])||!isFinite(T[1])?2:0)+(!isFinite(S[0])||!isFinite(S[1])?1:0),V!=1&&V!=2&&V!=4&&V!=8)return}if(w>0){if(!P){var G=[(f[0]+x[0])/2,(f[1]+x[1])/2],D=this.transformInv_(G),N=void 0;if(R){var k=(QY(v[0],I)+QY(T[0],I))/2;N=k-QY(D[0],I)}else N=(v[0]+T[0])/2-D[0];var U=(v[1]+T[1])/2-D[1],B=N*N+U*U;P=B>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],J=this.transformInv_(Y),K=[(y[0]+f[0])/2,(y[1]+f[1])/2],z=this.transformInv_(K);this.addQuad_(f,m,Y,K,v,C,J,z,w-1),this.addQuad_(K,Y,x,y,z,J,T,S,w-1)}else{var j=[(f[0]+m[0])/2,(f[1]+m[1])/2],q=this.transformInv_(j),O=[(x[0]+y[0])/2,(x[1]+y[1])/2],te=this.transformInv_(O);this.addQuad_(f,j,O,y,v,q,te,S,w-1),this.addQuad_(j,m,x,O,q,C,T,te,w-1)}return}}if(R){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(V&11)==0&&this.addTriangle_(f,x,y,v,T,S),(V&14)==0&&this.addTriangle_(f,x,m,v,T,C),V&&((V&13)==0&&this.addTriangle_(m,y,f,C,S,v),(V&7)==0&&this.addTriangle_(m,y,x,C,S,T))}},o.prototype.calculateSourceExtent=function(){var f=Zg();return this.triangles_.forEach(function(m,x,y){var v=m.source;cX(f,v[0]),cX(f,v[1]),cX(f,v[2])}),f},o.prototype.getTriangles=function(){return this.triangles_},o}(),dSt=Eor;we();we();var Bee={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},pSt={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0};var xOe,yOe=[];function fSt(o,f,m,x,y){o.beginPath(),o.moveTo(0,0),o.lineTo(f,m),o.lineTo(x,y),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(f,x)+1,Math.max(m,y)),o.restore()}function gOe(o,f){return Math.abs(o[f*4]-210)>2||Math.abs(o[f*4+3]-.75*255)>2}function Lor(){if(xOe===void 0){var o=document.createElement("canvas").getContext("2d");o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",fSt(o,4,5,4,0),fSt(o,4,5,0,5);var f=o.getImageData(0,0,3,3).data;xOe=gOe(f,0)||gOe(f,4)||gOe(f,8)}return xOe}function mSt(o,f,m,x){var y=_fe(m,f,o),v=W9e(f,x,m),C=f.getMetersPerUnit();C!==void 0&&(v*=C);var T=o.getMetersPerUnit();T!==void 0&&(v/=T);var S=o.getExtent();if(!S||IR(S,y)){var w=W9e(o,v,y)/v;isFinite(w)&&w>0&&(v/=w)}return v}function xSt(o,f,m,x){var y=zV(m),v=mSt(o,f,y,x);return(!isFinite(v)||v<=0)&&hfe(m,function(C){return v=mSt(o,f,C,x),isFinite(v)&&v>0}),v}function gSt(o,f,m,x,y,v,C,T,S,w,E,L){var I=Wf(Math.round(m*o),Math.round(m*f),yOe);if(L||ox(I,Bee),S.length===0)return I.canvas;I.scale(m,m);function R(N){return Math.round(N*m)/m}I.globalCompositeOperation="lighter";var P=Zg();S.forEach(function(N,k,U){c1t(P,N.extent)});var A=af(P),M=Fy(P),V=Wf(Math.round(m*A/x),Math.round(m*M/x));L||ox(V,Bee);var G=m/x;S.forEach(function(N,k,U){var B=N.extent[0]-P[0],Y=-(N.extent[3]-P[3]),J=af(N.extent),K=Fy(N.extent);N.image.width>0&&N.image.height>0&&V.drawImage(N.image,w,w,N.image.width-2*w,N.image.height-2*w,B*G,Y*G,J*G,K*G)});var D=jb(C);return T.getTriangles().forEach(function(N,k,U){var B=N.source,Y=N.target,J=B[0][0],K=B[0][1],z=B[1][0],j=B[1][1],q=B[2][0],O=B[2][1],te=R((Y[0][0]-D[0])/v),ie=R(-(Y[0][1]-D[1])/v),re=R((Y[1][0]-D[0])/v),ee=R(-(Y[1][1]-D[1])/v),ae=R((Y[2][0]-D[0])/v),oe=R(-(Y[2][1]-D[1])/v),ce=J,pe=K;J=0,K=0,z-=ce,j-=pe,q-=ce,O-=pe;var ue=[[z,j,0,0,re-te],[q,O,0,0,ae-te],[0,0,z,j,ee-ie],[0,0,q,O,oe-ie]],he=s1t(ue);if(!!he){if(I.save(),I.beginPath(),Lor()||!L){I.moveTo(re,ee);for(var fe=4,de=te-re,Ce=ie-ee,Se=0;Se<fe;Se++)I.lineTo(re+R((Se+1)*de/fe),ee+R(Se*Ce/(fe-1))),Se!=fe-1&&I.lineTo(re+R((Se+1)*de/fe),ee+R((Se+1)*Ce/(fe-1)));I.lineTo(ae,oe)}else I.moveTo(re,ee),I.lineTo(te,ie),I.lineTo(ae,oe);I.clip(),I.transform(he[0],he[2],he[1],he[3],te,ie),I.translate(P[0]-ce,P[3]-pe),I.scale(x/m,-x/m),I.drawImage(V.canvas,0,0),I.restore()}}),E&&(I.save(),I.globalCompositeOperation="source-over",I.strokeStyle="black",I.lineWidth=1,T.getTriangles().forEach(function(N,k,U){var B=N.target,Y=(B[0][0]-D[0])/v,J=-(B[0][1]-D[1])/v,K=(B[1][0]-D[0])/v,z=-(B[1][1]-D[1])/v,j=(B[2][0]-D[0])/v,q=-(B[2][1]-D[1])/v;I.beginPath(),I.moveTo(K,z),I.lineTo(Y,J),I.lineTo(j,q),I.closePath(),I.stroke()}),I.restore()),I.canvas}var Por=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Ior=function(o){Por(f,o);function f(m,x,y,v,C,T,S,w,E,L,I,R){var P=o.call(this,C,Qo.IDLE,{interpolate:!!R})||this;P.renderEdges_=I!==void 0?I:!1,P.pixelRatio_=S,P.gutter_=w,P.canvas_=null,P.sourceTileGrid_=x,P.targetTileGrid_=v,P.wrappedTileCoord_=T||C,P.sourceTiles_=[],P.sourcesListenerKeys_=null,P.sourceZ_=0;var A=v.getTileCoordExtent(P.wrappedTileCoord_),M=P.targetTileGrid_.getExtent(),V=P.sourceTileGrid_.getExtent(),G=M?RR(A,M):A;if(bee(G)===0)return P.state=Qo.EMPTY,P;var D=m.getExtent();D&&(V?V=RR(V,D):V=D);var N=v.getResolution(P.wrappedTileCoord_[0]),k=xSt(m,y,G,N);if(!isFinite(k)||k<=0)return P.state=Qo.EMPTY,P;var U=L!==void 0?L:cSt;if(P.triangulation_=new dSt(m,y,G,V,k*U,N),P.triangulation_.getTriangles().length===0)return P.state=Qo.EMPTY,P;P.sourceZ_=x.getZForResolution(k);var B=P.triangulation_.calculateSourceExtent();if(V&&(m.canWrapX()?(B[1]=Mv(B[1],V[1],V[3]),B[3]=Mv(B[3],V[1],V[3])):B=RR(B,V)),!bee(B))P.state=Qo.EMPTY;else{for(var Y=x.getTileRangeForExtentAndZ(B,P.sourceZ_),J=Y.minX;J<=Y.maxX;J++)for(var K=Y.minY;K<=Y.maxY;K++){var z=E(P.sourceZ_,J,K,S);z&&P.sourceTiles_.push(z)}P.sourceTiles_.length===0&&(P.state=Qo.EMPTY)}return P}return f.prototype.getImage=function(){return this.canvas_},f.prototype.reproject_=function(){var m=[];if(this.sourceTiles_.forEach(function(E,L,I){E&&E.getState()==Qo.LOADED&&m.push({extent:this.sourceTileGrid_.getTileCoordExtent(E.tileCoord),image:E.getImage()})}.bind(this)),this.sourceTiles_.length=0,m.length===0)this.state=Qo.ERROR;else{var x=this.wrappedTileCoord_[0],y=this.targetTileGrid_.getTileSize(x),v=typeof y=="number"?y:y[0],C=typeof y=="number"?y:y[1],T=this.targetTileGrid_.getResolution(x),S=this.sourceTileGrid_.getResolution(this.sourceZ_),w=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=gSt(v,C,this.pixelRatio_,S,this.sourceTileGrid_.getExtent(),T,w,this.triangulation_,m,this.gutter_,this.renderEdges_,this.interpolate),this.state=Qo.LOADED}this.changed()},f.prototype.load=function(){if(this.state==Qo.IDLE){this.state=Qo.LOADING,this.changed();var m=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();if(C==Qo.IDLE||C==Qo.LOADING){m++;var T=Vv(x,wd.CHANGE,function(S){var w=x.getState();(w==Qo.LOADED||w==Qo.ERROR||w==Qo.EMPTY)&&(Dy(T),m--,m===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(T)}}.bind(this)),m===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();C==Qo.IDLE&&x.load()})}},f.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Dy),this.sourcesListenerKeys_=null},f.prototype.release=function(){this.canvas_&&(Tfe(this.canvas_.getContext("2d")),yOe.push(this.canvas_),this.canvas_=null),o.prototype.release.call(this)},f}(WD),ySt=Ior;var Ror=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Aor=function(o){Ror(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=Zg(),x.tmpTileRange_=new nfe(0,0,0,0),x}return f.prototype.isDrawableTile=function(m){var x=this.getLayer(),y=m.getState(),v=x.getUseInterimTilesOnError();return y==Qo.LOADED||y==Qo.EMPTY||y==Qo.ERROR&&!v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState.projection,S=this.getLayer(),w=S.getSource(),E=w.getTile(m,x,y,C,T);return E.getState()==Qo.ERROR&&(S.getUseInterimTilesOnError()?S.getPreload()>0&&(this.newTiles_=!0):E.setState(Qo.LOADED)),this.isDrawableTile(E)||(E=E.getInterimTile()),E},f.prototype.getData=function(m){var x=this.frameState;if(!x)return null;var y=this.getLayer(),v=Zf(x.pixelToCoordinateTransform,m.slice()),C=y.getExtent();if(C&&!IR(C,v))return null;for(var T=x.pixelRatio,S=x.viewState.projection,w=x.viewState,E=y.getRenderSource(),L=E.getTileGridForProjection(w.projection),I=E.getTilePixelRatio(x.pixelRatio),R=L.getZForResolution(w.resolution);R>=L.getMinZoom();--R){var P=L.getTileCoordForCoordAndZ(v,R),A=E.getTile(R,P[1],P[2],T,S);if(!(A instanceof uSt||A instanceof ySt))return null;if(A.getState()===Qo.LOADED){var M=L.getOrigin(R),V=sf(L.getTileSize(R)),G=L.getResolution(R),D=Math.floor(I*((v[0]-M[0])/G-P[1]*V[0])),N=Math.floor(I*((M[1]-v[1])/G-P[2]*V[1])),k=Math.round(I*E.getGutterForProjection(w.projection));return this.getImageData(A.getImage(),D+k,N+k)}}return null},f.prototype.loadedTileCallback=function(m,x,y){return this.isDrawableTile(y)?o.prototype.loadedTileCallback.call(this,m,x,y):!1},f.prototype.prepareFrame=function(m){return!!this.getLayer().getSource()},f.prototype.renderFrame=function(m,x){var y=m.layerStatesArray[m.layerIndex],v=m.viewState,C=v.projection,T=v.resolution,S=v.center,w=v.rotation,E=m.pixelRatio,L=this.getLayer(),I=L.getSource(),R=I.getRevision(),P=I.getTileGridForProjection(C),A=P.getZForResolution(T,I.zDirection),M=P.getResolution(A),V=m.extent,G=m.viewState.resolution,D=I.getTilePixelRatio(E),N=Math.round(af(V)/G*E),k=Math.round(Fy(V)/G*E),U=y.extent&&vfe(y.extent,C);U&&(V=RR(V,vfe(y.extent,C)));var B=M*N/2/D,Y=M*k/2/D,J=[S[0]-B,S[1]-Y,S[0]+B,S[1]+Y],K=P.getTileRangeForExtentAndZ(V,A),z={};z[A]={};var j=this.createLoadedTileFinder(I,C,z),q=this.tmpExtent,O=this.tmpTileRange_;this.newTiles_=!1;for(var te=w?R9e(v.center,G,w,m.size):void 0,ie=K.minX;ie<=K.maxX;++ie)for(var re=K.minY;re<=K.maxY;++re)if(!(w&&!P.tileCoordIntersectsViewport([A,ie,re],te))){var ee=this.getTile(A,ie,re,m);if(this.isDrawableTile(ee)){var ae=mu(this);if(ee.getState()==Qo.LOADED){z[A][ee.tileCoord.toString()]=ee;var oe=ee.inTransition(ae);oe&&y.opacity!==1&&(ee.endTransition(ae),oe=!1),!this.newTiles_&&(oe||this.renderedTiles.indexOf(ee)===-1)&&(this.newTiles_=!0)}if(ee.getAlpha(ae,m.time)===1)continue}var ce=P.getTileCoordChildTileRange(ee.tileCoord,O,q),pe=!1;ce&&(pe=j(A+1,ce)),pe||P.forEachTileCoordParentTileRange(ee.tileCoord,j,O,q)}var ue=M/T*E/D;d2(this.pixelTransform,m.size[0]/2,m.size[1]/2,1/E,1/E,w,-N/2,-k/2);var he=rTt(this.pixelTransform);this.useContainer(x,he,this.getBackground(m));var fe=this.context,de=fe.canvas;iTt(this.inversePixelTransform,this.pixelTransform),d2(this.tempTransform,N/2,k/2,ue,ue,0,-N/2,-k/2),de.width!=N||de.height!=k?(de.width=N,de.height=k):this.containerReused||fe.clearRect(0,0,N,k),U&&this.clipUnrotated(fe,m,U),I.getInterpolate()||ox(fe,Bee),this.preRender(fe,m),this.renderedTiles.length=0;var Ce=Object.keys(z).map(Number);Ce.sort(DL);var Se,Le,Ve;y.opacity===1&&(!this.containerReused||I.getOpaque(m.viewState.projection))?Ce=Ce.reverse():(Se=[],Le=[]);for(var Oe=Ce.length-1;Oe>=0;--Oe){var $e=Ce[Oe],at=I.getTilePixelSize($e,E,C),dt=P.getResolution($e),gt=dt/M,Et=at[0]*gt*ue,et=at[1]*gt*ue,yt=P.getTileCoordForCoordAndZ(jb(J),$e),Rt=P.getTileCoordExtent(yt),Vt=Zf(this.tempTransform,[D*(Rt[0]-J[0])/M,D*(J[3]-Rt[3])/M]),_t=D*I.getGutterForProjection(C),se=z[$e];for(var ve in se){var ee=se[ve],je=ee.tileCoord,Ft=yt[1]-je[1],kt=Math.round(Vt[0]-(Ft-1)*Et),bt=yt[2]-je[2],lt=Math.round(Vt[1]-(bt-1)*et),ie=Math.round(Vt[0]-Ft*Et),re=Math.round(Vt[1]-bt*et),ot=kt-ie,tt=lt-re,ze=A===$e,oe=ze&&ee.getAlpha(mu(this),m.time)!==1,ct=!1;if(!oe)if(Se){Ve=[ie,re,ie+ot,re,ie+ot,re+tt,ie,re+tt];for(var Wt=0,Tt=Se.length;Wt<Tt;++Wt)if(A!==$e&&$e<Le[Wt]){var Ht=Se[Wt];Ed([ie,re,ie+ot,re+tt],[Ht[0],Ht[3],Ht[4],Ht[7]])&&(ct||(fe.save(),ct=!0),fe.beginPath(),fe.moveTo(Ve[0],Ve[1]),fe.lineTo(Ve[2],Ve[3]),fe.lineTo(Ve[4],Ve[5]),fe.lineTo(Ve[6],Ve[7]),fe.moveTo(Ht[6],Ht[7]),fe.lineTo(Ht[4],Ht[5]),fe.lineTo(Ht[2],Ht[3]),fe.lineTo(Ht[0],Ht[1]),fe.clip())}Se.push(Ve),Le.push($e)}else fe.clearRect(ie,re,ot,tt);this.drawTileImage(ee,m,ie,re,ot,tt,_t,ze),Se&&!oe?(ct&&fe.restore(),this.renderedTiles.unshift(ee)):this.renderedTiles.push(ee),this.updateUsedTiles(m.usedTiles,I,ee)}}return this.renderedRevision=R,this.renderedResolution=M,this.extentChanged=!this.renderedExtent_||!OD(this.renderedExtent_,J),this.renderedExtent_=J,this.renderedPixelRatio=E,this.renderedProjection=C,this.manageTilePyramid(m,I,P,E,C,V,A,L.getPreload()),this.scheduleExpireCache(m,I),this.postRender(fe,m),y.extent&&fe.restore(),ox(fe,pSt),he!==de.style.transform&&(de.style.transform=he),this.container},f.prototype.drawTileImage=function(m,x,y,v,C,T,S,w){var E=this.getTileImage(m);if(!!E){var L=mu(this),I=x.layerStatesArray[x.layerIndex],R=I.opacity*(w?m.getAlpha(L,x.time):1),P=R!==this.context.globalAlpha;P&&(this.context.save(),this.context.globalAlpha=R),this.context.drawImage(E,S,S,E.width-2*S,E.height-2*S,y,v,C,T),P&&this.context.restore(),R!==I.opacity?x.animate=!0:w&&m.endTransition(L)}},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 y=function(v,C,T){var S=mu(v);S in T.usedTiles&&v.expireCache(T.viewState.projection,T.usedTiles[S])}.bind(null,x);m.postRenderFunctions.push(y)}},f.prototype.updateUsedTiles=function(m,x,y){var v=mu(x);v in m||(m[v]={}),m[v][y.getKey()]=!0},f.prototype.manageTilePyramid=function(m,x,y,v,C,T,S,w,E){var L=mu(x);L in m.wantedTiles||(m.wantedTiles[L]={});var I=m.wantedTiles[L],R=m.tileQueue,P=y.getMinZoom(),A=m.viewState.rotation,M=A?R9e(m.viewState.center,m.viewState.resolution,A,m.size):void 0,V=0,G,D,N,k,U,B;for(B=P;B<=S;++B)for(D=y.getTileRangeForExtentAndZ(T,B,D),N=y.getResolution(B),k=D.minX;k<=D.maxX;++k)for(U=D.minY;U<=D.maxY;++U)A&&!y.tileCoordIntersectsViewport([B,k,U],M)||(S-B<=w?(++V,G=x.getTile(B,k,U,v,C),G.getState()==Qo.IDLE&&(I[G.getKey()]=!0,R.isKeyQueued(G.getKey())||R.enqueue([G,L,y.getTileCoordCenter(G.tileCoord),N])),E!==void 0&&E(G)):x.useTile(B,k,U,C));x.updateCacheSize(V,C)},f}(sSt),_St=Aor;we();var FR={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};we();var vX={ANIMATING:0,INTERACTING:1};we();we();var Mor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Vor=function(o){Mor(f,o);function f(m,x,y,v,C,T,S){var w=o.call(this)||this;return w.context_=m,w.pixelRatio_=x,w.extent_=y,w.transform_=v,w.viewRotation_=C,w.squaredTolerance_=T,w.userTransform_=S,w.contextFillState_=null,w.contextStrokeState_=null,w.contextTextState_=null,w.fillState_=null,w.strokeState_=null,w.image_=null,w.imageAnchorX_=0,w.imageAnchorY_=0,w.imageHeight_=0,w.imageOpacity_=0,w.imageOriginX_=0,w.imageOriginY_=0,w.imageRotateWithView_=!1,w.imageRotation_=0,w.imageScale_=[0,0],w.imageWidth_=0,w.text_="",w.textOffsetX_=0,w.textOffsetY_=0,w.textRotateWithView_=!1,w.textRotation_=0,w.textScale_=[0,0],w.textFillState_=null,w.textStrokeState_=null,w.textState_=null,w.pixelCoordinates_=[],w.tmpLocalTransform_=Ny(),w}return f.prototype.drawImages_=function(m,x,y,v){if(!!this.image_){var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.tmpLocalTransform_,w=T.globalAlpha;this.imageOpacity_!=1&&(T.globalAlpha=w*this.imageOpacity_);var E=this.imageRotation_;this.imageRotateWithView_&&(E+=this.viewRotation_);for(var L=0,I=C.length;L<I;L+=2){var R=C[L]-this.imageAnchorX_,P=C[L+1]-this.imageAnchorY_;if(E!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){var A=R+this.imageAnchorX_,M=P+this.imageAnchorY_;d2(S,A,M,1,1,E,-A,-M),T.setTransform.apply(T,S),T.translate(A,M),T.scale(this.imageScale_[0],this.imageScale_[1]),T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),T.setTransform(1,0,0,1,0,0)}else T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,R,P,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(T.globalAlpha=w)}},f.prototype.drawText_=function(m,x,y,v){if(!(!this.textState_||this.text_==="")){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.textRotation_;for(this.textRotateWithView_&&(S+=this.viewRotation_);x<y;x+=v){var w=C[x]+this.textOffsetX_,E=C[x+1]+this.textOffsetY_;if(S!==0||this.textScale_[0]!=1||this.textScale_[1]!=1){var L=d2(this.tmpLocalTransform_,w,E,1,1,S,-w,-E);T.setTransform.apply(T,L),T.translate(w,E),T.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&T.strokeText(this.text_,0,0),this.textFillState_&&T.fillText(this.text_,0,0),T.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&T.strokeText(this.text_,w,E),this.textFillState_&&T.fillText(this.text_,w,E)}}},f.prototype.moveToLineTo_=function(m,x,y,v,C){var T=this.context_,S=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_);T.moveTo(S[0],S[1]);var w=S.length;C&&(w-=2);for(var E=2;E<w;E+=2)T.lineTo(S[E],S[E+1]);return C&&T.closePath(),y},f.prototype.drawRings_=function(m,x,y,v){for(var C=0,T=y.length;C<T;++C)x=this.moveToLineTo_(m,x,y[C],v,!0);return x},f.prototype.drawCircle=function(m){if(!!Ed(this.extent_,m.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=uTt(m,this.transform_,this.pixelCoordinates_),y=x[2]-x[0],v=x[3]-x[1],C=Math.sqrt(y*y+v*v),T=this.context_;T.beginPath(),T.arc(x[0],x[1],C,0,2*Math.PI),this.fillState_&&T.fill(),this.strokeState_&&T.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 y=x.getGeometryFunction()(m);!y||!Ed(this.extent_,y.getExtent())||(this.setStyle(x),this.drawGeometry(y))},f.prototype.drawGeometryCollection=function(m){for(var x=m.getGeometriesArray(),y=0,v=x.length;y<v;++y)this.drawGeometry(x[y])},f.prototype.drawPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawMultiPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawLineString=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var x=this.context_,y=m.getFlatCoordinates();x.beginPath(),this.moveToLineTo_(y,0,y.length,m.getStride(),!1),x.stroke()}if(this.text_!==""){var v=m.getFlatMidpoint();this.drawText_(v,0,2,2)}}},f.prototype.drawMultiLineString=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getExtent();if(!!Ed(this.extent_,x)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var y=this.context_,v=m.getFlatCoordinates(),C=0,T=m.getEnds(),S=m.getStride();y.beginPath();for(var w=0,E=T.length;w<E;++w)C=this.moveToLineTo_(v,C,T[w],S,!1);y.stroke()}if(this.text_!==""){var L=m.getFlatMidpoints();this.drawText_(L,0,L.length,2)}}},f.prototype.drawPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(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 y=m.getFlatInteriorPoint();this.drawText_(y,0,2,2)}}},f.prototype.drawMultiPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(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_,y=m.getOrientedFlatCoordinates(),v=0,C=m.getEndss(),T=m.getStride();x.beginPath();for(var S=0,w=C.length;S<w;++S){var E=C[S];v=this.drawRings_(y,v,E,T)}this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var L=m.getFlatInteriorPoints();this.drawText_(L,0,L.length,2)}}},f.prototype.setContextFillState_=function(m){var x=this.context_,y=this.contextFillState_;y?y.fillStyle!=m.fillStyle&&(y.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_,y=this.contextStrokeState_;y?(y.lineCap!=m.lineCap&&(y.lineCap=m.lineCap,x.lineCap=m.lineCap),x.setLineDash&&(LR(y.lineDash,m.lineDash)||x.setLineDash(y.lineDash=m.lineDash),y.lineDashOffset!=m.lineDashOffset&&(y.lineDashOffset=m.lineDashOffset,x.lineDashOffset=m.lineDashOffset)),y.lineJoin!=m.lineJoin&&(y.lineJoin=m.lineJoin,x.lineJoin=m.lineJoin),y.lineWidth!=m.lineWidth&&(y.lineWidth=m.lineWidth,x.lineWidth=m.lineWidth),y.miterLimit!=m.miterLimit&&(y.miterLimit=m.miterLimit,x.miterLimit=m.miterLimit),y.strokeStyle!=m.strokeStyle&&(y.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_,y=this.contextTextState_,v=m.textAlign?m.textAlign:jD;y?(y.font!=m.font&&(y.font=m.font,x.font=m.font),y.textAlign!=v&&(y.textAlign=v,x.textAlign=v),y.textBaseline!=m.textBaseline&&(y.textBaseline=m.textBaseline,x.textBaseline=m.textBaseline)):(x.font=m.font,x.textAlign=v,x.textBaseline=m.textBaseline,this.contextTextState_={font:m.font,textAlign:v,textBaseline:m.textBaseline})},f.prototype.setFillStrokeStyle=function(m,x){var y=this;if(!m)this.fillState_=null;else{var v=m.getColor();this.fillState_={fillStyle:$b(v||eC)}}if(!x)this.strokeState_=null;else{var C=x.getColor(),T=x.getLineCap(),S=x.getLineDash(),w=x.getLineDashOffset(),E=x.getLineJoin(),L=x.getWidth(),I=x.getMiterLimit(),R=S||KV;this.strokeState_={lineCap:T!==void 0?T:gX,lineDash:this.pixelRatio_===1?R:R.map(function(P){return P*y.pixelRatio_}),lineDashOffset:(w||JV)*this.pixelRatio_,lineJoin:E!==void 0?E:MR,lineWidth:(L!==void 0?L:$V)*this.pixelRatio_,miterLimit:I!==void 0?I:jV,strokeStyle:$b(C||QV)}}},f.prototype.setImageStyle=function(m){var x;if(!m||!(x=m.getSize())){this.image_=null;return}var y=m.getAnchor(),v=m.getOrigin();this.image_=m.getImage(this.pixelRatio_),this.imageAnchorX_=y[0]*this.pixelRatio_,this.imageAnchorY_=y[1]*this.pixelRatio_,this.imageHeight_=x[1]*this.pixelRatio_,this.imageOpacity_=m.getOpacity(),this.imageOriginX_=v[0],this.imageOriginY_=v[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 y=x.getColor();this.textFillState_={fillStyle:$b(y||eC)}}var v=m.getStroke();if(!v)this.textStrokeState_=null;else{var C=v.getColor(),T=v.getLineCap(),S=v.getLineDash(),w=v.getLineDashOffset(),E=v.getLineJoin(),L=v.getWidth(),I=v.getMiterLimit();this.textStrokeState_={lineCap:T!==void 0?T:gX,lineDash:S||KV,lineDashOffset:w||JV,lineJoin:E!==void 0?E:MR,lineWidth:L!==void 0?L:$V,miterLimit:I!==void 0?I:jV,strokeStyle:$b(C||QV)}}var R=m.getFont(),P=m.getOffsetX(),A=m.getOffsetY(),M=m.getRotateWithView(),V=m.getRotation(),G=m.getScaleArray(),D=m.getText(),N=m.getTextAlign(),k=m.getTextBaseline();this.textState_={font:R!==void 0?R:Nfe,textAlign:N!==void 0?N:jD,textBaseline:k!==void 0?k:yX},this.text_=D!==void 0?Array.isArray(D)?D.reduce(function(U,B,Y){return U+=Y%2?" ":B},""):D:"",this.textOffsetX_=P!==void 0?this.pixelRatio_*P:0,this.textOffsetY_=A!==void 0?this.pixelRatio_*A:0,this.textRotateWithView_=M!==void 0?M:!1,this.textRotation_=V!==void 0?V:0,this.textScale_=[this.pixelRatio_*G[0],this.pixelRatio_*G[1]]}},f}(Zfe),vSt=Vor;we();var DR={FRACTION:"fraction",PIXELS:"pixels"};we();we();we();var J1={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};we();we();var Gor=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 y=bSt(f,m,x);return y in this.cache_?this.cache_[y]:null},o.prototype.set=function(f,m,x,y){var v=bSt(f,m,x);this.cache_[v]=y,++this.cacheSize_},o.prototype.setSize=function(f){this.maxCacheSize_=f,this.expire()},o}();function bSt(o,f,m){var x=m?Ffe(m):"null";return f+":"+o+":"+x}var _Oe=new Gor;var For=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Hee=null,Dor=function(o){For(f,o);function f(m,x,y,v,C,T){var S=o.call(this)||this;return S.hitDetectionImage_=null,S.image_=m||new Image,v!==null&&(S.image_.crossOrigin=v),S.canvas_={},S.color_=T,S.unlisten_=null,S.imageState_=C,S.size_=y,S.src_=x,S.tainted_,S}return f.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===bh.LOADED){Hee||(Hee=Wf(1,1)),Hee.drawImage(this.image_,0,0);try{Hee.getImageData(0,0,1,1),this.tainted_=!1}catch{Hee=null,this.tainted_=!0}}return this.tainted_===!0},f.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.handleImageError_=function(){this.imageState_=bh.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.handleImageLoad_=function(){this.imageState_=bh.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],y=Wf(m,x);y.fillRect(0,0,m,x),this.hitDetectionImage_=y.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_==bh.IDLE){this.imageState_=bh.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},f.prototype.replaceColor_=function(m){if(!(!this.color_||this.canvas_[m]||this.imageState_!==bh.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 y=x.getContext("2d");if(y.scale(m,m),y.drawImage(this.image_,0,0),y.globalCompositeOperation="multiply",y.globalCompositeOperation==="multiply"||this.isTainted_())y.fillStyle=Ffe(this.color_),y.fillRect(0,0,x.width/m,x.height/m),y.globalCompositeOperation="destination-in",y.drawImage(this.image_,0,0);else{for(var v=y.getImageData(0,0,x.width,x.height),C=v.data,T=this.color_[0]/255,S=this.color_[1]/255,w=this.color_[2]/255,E=this.color_[3],L=0,I=C.length;L<I;L+=4)C[L]*=T,C[L+1]*=S,C[L+2]*=w,C[L+3]*=E;y.putImageData(v,0,0)}}},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(PR);function CSt(o,f,m,x,y,v){var C=_Oe.get(f,x,v);return C||(C=new Dor(o,f,m,x,y,v),_Oe.set(f,x,v,C)),C}var Nor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Wor=function(o){Nor(f,o);function f(m){var x=this,y=m||{},v=y.opacity!==void 0?y.opacity:1,C=y.rotation!==void 0?y.rotation:0,T=y.scale!==void 0?y.scale:1,S=y.rotateWithView!==void 0?y.rotateWithView:!1;x=o.call(this,{opacity:v,rotation:C,scale:T,displacement:y.displacement!==void 0?y.displacement:[0,0],rotateWithView:S,declutterMode:y.declutterMode})||this,x.anchor_=y.anchor!==void 0?y.anchor:[.5,.5],x.normalizedAnchor_=null,x.anchorOrigin_=y.anchorOrigin!==void 0?y.anchorOrigin:J1.TOP_LEFT,x.anchorXUnits_=y.anchorXUnits!==void 0?y.anchorXUnits:DR.FRACTION,x.anchorYUnits_=y.anchorYUnits!==void 0?y.anchorYUnits:DR.FRACTION,x.crossOrigin_=y.crossOrigin!==void 0?y.crossOrigin:null;var w=y.img!==void 0?y.img:null;x.imgSize_=y.imgSize;var E=y.src;Su(!(E!==void 0&&w),4),Su(!w||w&&x.imgSize_,5),(E===void 0||E.length===0)&&w&&(E=w.src||mu(w)),Su(E!==void 0&&E.length>0,6);var L=y.src!==void 0?bh.IDLE:bh.LOADED;return x.color_=y.color!==void 0?xX(y.color):null,x.iconImage_=CSt(w,E,x.imgSize_!==void 0?x.imgSize_:null,x.crossOrigin_,L,x.color_),x.offset_=y.offset!==void 0?y.offset:[0,0],x.offsetOrigin_=y.offsetOrigin!==void 0?y.offsetOrigin:J1.TOP_LEFT,x.origin_=null,x.size_=y.size!==void 0?y.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_==DR.FRACTION||this.anchorYUnits_==DR.FRACTION){if(!x)return null;m=this.anchor_.slice(),this.anchorXUnits_==DR.FRACTION&&(m[0]*=x[0]),this.anchorYUnits_==DR.FRACTION&&(m[1]*=x[1])}if(this.anchorOrigin_!=J1.TOP_LEFT){if(!x)return null;m===this.anchor_&&(m=this.anchor_.slice()),(this.anchorOrigin_==J1.TOP_RIGHT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=-m[0]+x[0]),(this.anchorOrigin_==J1.BOTTOM_LEFT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=-m[1]+x[1])}this.normalizedAnchor_=m}var y=this.getDisplacement();return[m[0]-y[0],m[1]+y[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_!=J1.TOP_LEFT){var x=this.getSize(),y=this.iconImage_.getSize();if(!x||!y)return null;m=m.slice(),(this.offsetOrigin_==J1.TOP_RIGHT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=y[0]-x[0]-m[0]),(this.offsetOrigin_==J1.BOTTOM_LEFT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=y[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(wd.CHANGE,m)},f.prototype.load=function(){this.iconImage_.load()},f.prototype.unlistenImageChange=function(m){this.iconImage_.removeEventListener(wd.CHANGE,m)},f}(Gfe),vOe=Wor;var r3=.5;function TSt(o,f,m,x,y,v,C){var T=o[0]*r3,S=o[1]*r3,w=Wf(T,S);w.imageSmoothingEnabled=!1;for(var E=w.canvas,L=new vSt(w,r3,y,null,C),I=m.length,R=Math.floor((256*256*256-1)/I),P={},A=1;A<=I;++A){var M=m[A-1],V=M.getStyleFunction()||x;if(!!x){var G=V(M,v);if(!!G){Array.isArray(G)||(G=[G]);for(var D=A*R,N="#"+("000000"+D.toString(16)).slice(-6),k=0,U=G.length;k<U;++k){var B=G[k],Y=B.getGeometryFunction()(M);if(!(!Y||!Ed(y,Y.getExtent()))){var J=B.clone(),K=J.getFill();K&&K.setColor(N);var z=J.getStroke();z&&(z.setColor(N),z.setLineDash(null)),J.setText(void 0);var j=B.getImage();if(j&&j.getOpacity()!==0){var q=j.getImageSize();if(!q)continue;var O=Wf(q[0],q[1],void 0,{alpha:!1}),te=O.canvas;O.fillStyle=N,O.fillRect(0,0,te.width,te.height),J.setImage(new vOe({img:te,imgSize:q,anchor:j.getAnchor(),anchorXUnits:DR.PIXELS,anchorYUnits:DR.PIXELS,offset:j.getOrigin(),opacity:1,size:j.getSize(),scale:j.getScale(),rotation:j.getRotation(),rotateWithView:j.getRotateWithView()}))}var ie=J.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,J)}}}}}for(var ee=Object.keys(P).map(Number).sort(DL),A=0,ae=ee.length;A<ae;++A){var re=P[ee[A]];for(var oe in re)for(var ce=re[oe],k=0,U=ce.length;k<U;k+=2){L.setStyle(ce[k+1]);for(var pe=0,ue=f.length;pe<ue;++pe)L.setTransform(f[pe]),L.drawGeometry(ce[k])}}return w.getImageData(0,0,E.width,E.height)}function SSt(o,f,m){var x=[];if(m){var y=Math.floor(Math.round(o[0])*r3),v=Math.floor(Math.round(o[1])*r3),C=(Mv(y,0,m.width-1)+Mv(v,0,m.height-1)*m.width)*4,T=m.data[C],S=m.data[C+1],w=m.data[C+2],E=w+256*(S+256*T),L=Math.floor((256*256*256-1)/f.length);E&&E%L===0&&x.push(f[E/L-1])}return x}we();var Zor=.5,wSt={Point:Yor,LineString:Bor,Polygon:Jor,MultiPoint:Kor,MultiLineString:Hor,MultiPolygon:zor,GeometryCollection:Uor,Circle:Xor};function ESt(o,f){var m=Oor(o,f);return m*m}function Oor(o,f){return Zor*o/f}function Xor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Circle");T.setFillStrokeStyle(v,C),T.drawCircle(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function bOe(o,f,m,x,y,v,C){var T=!1,S=m.getImage();if(S){var w=S.getImageState();w==bh.LOADED||w==bh.ERROR?S.unlistenImageChange(y):(w==bh.IDLE&&S.load(),S.listenImageChange(y),T=!0)}return kor(o,f,m,x,v,C),T}function kor(o,f,m,x,y,v){var C=m.getGeometryFunction()(f);if(!!C){var T=C.simplifyTransformed(x,y),S=m.getRenderer();if(S)LSt(o,T,m,f);else{var w=wSt[T.getType()];w(o,T,m,f,v)}}}function LSt(o,f,m,x){if(f.getType()=="GeometryCollection"){for(var y=f.getGeometries(),v=0,C=y.length;v<C;++v)LSt(o,y[v],m,x);return}var T=o.getBuilder(m.getZIndex(),"Default");T.drawCustom(f,x,m.getRenderer(),m.getHitDetectionRenderer())}function Uor(o,f,m,x,y){var v=f.getGeometriesArray(),C,T;for(C=0,T=v.length;C<T;++C){var S=wSt[v[C].getType()];S(o,v[C],m,x,y)}}function Bor(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function Hor(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawMultiLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function zor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(C||v){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawMultiPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function Yor(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function Kor(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawMultiPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawMultiPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function Jor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}var jor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Qor={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},qor={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},$or=function(o){jor(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_=Ny(),x}return f.prototype.prepareTile=function(m,x,y){var v,C=m.getState();return(C===Qo.LOADED||C===Qo.ERROR)&&(this.updateExecutorGroup_(m,x,y),this.tileImageNeedsRender_(m)&&(v=!0)),v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState,S=T.resolution,w=T.projection,E=this.getLayer(),L=E.getSource().getTile(m,x,y,C,w),I=v.viewHints,R=!(I[vX.ANIMATING]||I[vX.INTERACTING]);(R||!L.wantedResolution)&&(L.wantedResolution=S);var P=this.prepareTile(L,C,w);return P&&(R||Date.now()-v.time<8)&&E.getRenderMode()!==FR.VECTOR&&this.renderTileImage_(L,v),o.prototype.getTile.call(this,m,x,y,v)},f.prototype.isDrawableTile=function(m){var x=this.getLayer();return o.prototype.isDrawableTile.call(this,m)&&(x.getRenderMode()===FR.VECTOR?mu(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,y){var v=this.getLayer(),C=v.getRevision(),T=v.getRenderOrder()||null,S=m.wantedResolution,w=m.getReplayState(v);if(!(!w.dirty&&w.renderedResolution===S&&w.renderedRevision==C&&w.renderedRenderOrder==T)){var E=v.getSource(),L=v.getDeclutter(),I=E.getTileGrid(),R=E.getTileGridForProjection(y),P=R.getTileCoordExtent(m.wrappedTileCoord),A=E.getSourceTiles(x,y,m),M=mu(v);delete m.hitDetectionImageData[M],m.executorGroups[M]=[],L&&(m.declutterExecutorGroups[M]=[]),w.dirty=!1;for(var V=function(k,U){var B=A[k];if(B.getState()!=Qo.LOADED)return"continue";var Y=B.tileCoord,J=I.getTileCoordExtent(Y),K=RR(P,J),z=ZL(K,v.getRenderBuffer()*S,G.tmpExtent),j=OD(J,K)?null:z,q=new dOe(0,z,S,x),O=L?new dOe(0,K,S,x):void 0,te=ESt(S,x),ie=function(fe){var de,Ce=fe.getStyleFunction()||v.getStyleFunction();if(Ce&&(de=Ce(fe,S)),de){var Se=this.renderFeature(fe,te,de,q,O);w.dirty=w.dirty||Se}},re=B.getFeatures();T&&T!==w.renderedRenderOrder&&re.sort(T);for(var ee=0,ae=re.length;ee<ae;++ee){var oe=re[ee];(!j||Ed(j,oe.getGeometry().getExtent()))&&ie.call(G,oe)}var ce=q.finish(),pe=v.getRenderMode()!==FR.VECTOR&&L&&A.length===1?null:K,ue=new mOe(pe,S,x,E.getOverlaps(),ce,v.getRenderBuffer());if(m.executorGroups[M].push(ue),O){var he=new mOe(null,S,x,E.getOverlaps(),O.finish(),v.getRenderBuffer());m.declutterExecutorGroups[M].push(he)}},G=this,D=0,N=A.length;D<N;++D)V(D,N);w.renderedRevision=C,w.renderedRenderOrder=T,w.renderedResolution=S}},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){var T=x.viewState.resolution,S=x.viewState.rotation;y=y??0;var w=this.getLayer(),E=w.getSource(),L=E.getTileGridForProjection(x.viewState.projection),I=_ee([m]);ZL(I,T*y,I);for(var R={},P=function(N,k,U){var B=N.getId();B===void 0&&(B=mu(N));var Y=R[B];if(Y){if(Y!==!0&&U<Y.distanceSq){if(U===0)return R[B]=!0,C.splice(C.lastIndexOf(Y),1),v(N,w,k);Y.geometry=k,Y.distanceSq=U}}else{if(U===0)return R[B]=!0,v(N,w,k);C.push(R[B]={feature:N,layer:w,geometry:k,distanceSq:U,callback:v})}},A=this.renderedTiles,M,V=function(N,k){var U=A[N],B=L.getTileCoordExtent(U.wrappedTileCoord);if(!Ed(B,I))return"continue";var Y=mu(w),J=[U.executorGroups[Y]],K=U.declutterExecutorGroups[Y];K&&J.push(K),J.some(function(z){for(var j=z===K?x.declutterTree.all().map(function(ie){return ie.value}):null,q=0,O=z.length;q<O;++q){var te=z[q];if(M=te.forEachFeatureAtCoordinate(m,T,S,y,P,j),M)return!0}})},G=0,D=A.length;!M&&G<D;++G)V(G,D);return M},f.prototype.getFeatures=function(m){return new Promise(function(x,y){for(var v=this.getLayer(),C=mu(v),T=v.getSource(),S=this.renderedProjection,w=S.getExtent(),E=this.renderedResolution,L=T.getTileGridForProjection(S),I=Zf(this.renderedPixelToCoordinateTransform_,m.slice()),R=L.getTileCoordForCoordAndResolution(I,E),P,A=0,M=this.renderedTiles.length;A<M;++A)if(R.toString()===this.renderedTiles[A].tileCoord.toString()){if(P=this.renderedTiles[A],P.getState()===Qo.LOADED){var V=L.getTileCoordExtent(P.tileCoord);T.getWrapX()&&S.canWrapX()&&!qY(w,V)&&I1t(I,S);break}P=void 0}if(!P||P.loadingSourceTiles>0){x([]);return}var G=L.getTileCoordExtent(P.wrappedTileCoord),D=jb(G),N=[(I[0]-D[0])/E,(D[1]-I[1])/E],k=P.getSourceTiles().reduce(function(K,z){return K.concat(z.getFeatures())},[]),U=P.hitDetectionImageData[C];if(!U&&!this.animatingOrInteracting_){var B=sf(L.getTileSize(L.getZForResolution(E,T.zDirection))),Y=this.renderedRotation_,J=[this.getRenderTransform(L.getTileCoordCenter(P.wrappedTileCoord),E,0,r3,B[0]*r3,B[1]*r3,0)];U=TSt(B,J,k,v.getStyleFunction(),L.getTileCoordExtent(P.wrappedTileCoord),P.getReplayState(v).renderedResolution,Y),P.hitDetectionImageData[C]=U}x(SSt(N,k,U))}.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,y=x.globalAlpha;x.globalAlpha=this.getLayer().getOpacity();for(var v=m.viewHints,C=!(v[vX.ANIMATING]||v[vX.INTERACTING]),T=this.renderedTiles,S=0,w=T.length;S<w;++S){var E=T[S],L=E.declutterExecutorGroups[mu(this.getLayer())];if(L)for(var I=L.length-1;I>=0;--I)L[I].execute(this.context,1,this.getTileRenderTransform(E,m),m.viewState.rotation,C,void 0,m.declutterTree)}x.globalAlpha=y},f.prototype.getTileRenderTransform=function(m,x){var y=x.pixelRatio,v=x.viewState,C=v.center,T=v.resolution,S=v.rotation,w=x.size,E=Math.round(w[0]*y),L=Math.round(w[1]*y),I=this.getLayer().getSource(),R=I.getTileGridForProjection(x.viewState.projection),P=m.tileCoord,A=R.getTileCoordExtent(m.wrappedTileCoord),M=R.getTileCoordExtent(P,this.tmpExtent)[0]-A[0],V=Sfe(Lee(this.inversePixelTransform.slice(),1/y,1/y),this.getRenderTransform(C,T,S,y,E,L,M));return V},f.prototype.renderFrame=function(m,x){var y=m.viewHints,v=!(y[vX.ANIMATING]||y[vX.INTERACTING]);o.prototype.renderFrame.call(this,m,x),this.renderedPixelToCoordinateTransform_=m.pixelToCoordinateTransform.slice(),this.renderedRotation_=m.viewState.rotation;var C=this.getLayer(),T=C.getRenderMode(),S=this.context,w=S.globalAlpha;S.globalAlpha=C.getOpacity();for(var E=qor[T],L=m.viewState,I=L.rotation,R=C.getSource(),P=R.getTileGridForProjection(L.projection),A=P.getZForResolution(L.resolution,R.zDirection),M=this.renderedTiles,V=[],G=[],D=!0,N=M.length-1;N>=0;--N){var k=M[N];D=D&&!k.getReplayState(C).dirty;var U=k.executorGroups[mu(C)].filter(function(re){return re.hasExecutors(E)});if(U.length!==0){var B=this.getTileRenderTransform(k,m),Y=k.tileCoord[0],J=!1,K=U[0].getClipCoords(B);if(K){for(var z=0,j=V.length;z<j;++z)if(A!==Y&&Y<G[z]){var q=V[z];Ed([K[0],K[3],K[4],K[7]],[q[0],q[3],q[4],q[7]])&&(J||(S.save(),J=!0),S.beginPath(),S.moveTo(K[0],K[1]),S.lineTo(K[2],K[3]),S.lineTo(K[4],K[5]),S.lineTo(K[6],K[7]),S.moveTo(q[6],q[7]),S.lineTo(q[4],q[5]),S.lineTo(q[2],q[3]),S.lineTo(q[0],q[1]),S.clip())}V.push(K),G.push(Y)}for(var O=0,te=U.length;O<te;++O){var ie=U[O];ie.execute(S,1,B,I,v,E)}J&&S.restore()}}return S.globalAlpha=w,this.ready=D,this.container},f.prototype.renderFeature=function(m,x,y,v,C){if(!y)return!1;var T=!1;if(Array.isArray(y))for(var S=0,w=y.length;S<w;++S)T=bOe(v,m,y[S],x,this.boundHandleStyleImageChange_,void 0,C)||T;else T=bOe(v,m,y,x,this.boundHandleStyleImageChange_,void 0,C);return T},f.prototype.tileImageNeedsRender_=function(m){var x=this.getLayer();if(x.getRenderMode()===FR.VECTOR)return!1;var y=m.getReplayState(x),v=x.getRevision(),C=m.wantedResolution;return y.renderedTileResolution!==C||y.renderedTileRevision!==v},f.prototype.renderTileImage_=function(m,x){var y=this.getLayer(),v=m.getReplayState(y),C=y.getRevision(),T=m.executorGroups[mu(y)];v.renderedTileRevision=C;var S=m.wrappedTileCoord,w=S[0],E=y.getSource(),L=x.pixelRatio,I=x.viewState,R=I.projection,P=E.getTileGridForProjection(R),A=P.getResolution(m.tileCoord[0]),M=x.pixelRatio/m.wantedResolution*A,V=P.getResolution(w),G=m.getContext(y);L=Math.round(Math.max(L,M/L));var D=E.getTilePixelSize(w,L,R);G.canvas.width=D[0],G.canvas.height=D[1];var N=L/M;if(N!==1){var k=k9e(this.tmpTransform_);Lee(k,N,N),G.setTransform.apply(G,k)}var U=P.getTileCoordExtent(S,this.tmpExtent),B=M/V,Y=k9e(this.tmpTransform_);Lee(Y,B,-B),tTt(Y,-U[0],-U[3]);for(var J=0,K=T.length;J<K;++J){var z=T[J];z.execute(G,N,Y,0,!0,Qor[y.getRenderMode()])}v.renderedTileResolution=m.wantedResolution},f}(_St),PSt=$or;we();var zee={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var ear=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),tar=function(o){ear(f,o);function f(m){var x=this,y=m||{},v=ox({},y);delete v.preload,delete v.useInterimTilesOnError,x=o.call(this,v)||this,x.on,x.once,x.un,y.renderMode===FR.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),y.renderMode=void 0);var C=y.renderMode||FR.HYBRID;return Su(C==FR.HYBRID||C==FR.VECTOR,28),x.renderMode_=C,x.setPreload(y.preload?y.preload:0),x.setUseInterimTilesOnError(y.useInterimTilesOnError!==void 0?y.useInterimTilesOnError:!0),x.getBackground,x.setBackground,x}return f.prototype.createRenderer=function(){return new PSt(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(zee.PRELOAD)},f.prototype.getUseInterimTilesOnError=function(){return this.get(zee.USE_INTERIM_TILES_ON_ERROR)},f.prototype.setPreload=function(m){this.set(zee.PRELOAD,m)},f.prototype.setUseInterimTilesOnError=function(m){this.set(zee.USE_INTERIM_TILES_ON_ERROR,m)},f}(jTt),ISt=tar;we();we();we();var $D={ADD:"add",REMOVE:"remove"};var ASt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),RSt={LENGTH:"length"},Ofe=function(o){ASt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.element=x,v.index=y,v}return f}(hw);var iar=function(o){ASt(f,o);function f(m,x){var y=o.call(this)||this;y.on,y.once,y.un;var v=x||{};if(y.unique_=!!v.unique,y.array_=m||[],y.unique_)for(var C=0,T=y.array_.length;C<T;++C)y.assertUnique_(y.array_[C],C);return y.updateLength_(),y}return f.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},f.prototype.extend=function(m){for(var x=0,y=m.length;x<y;++x)this.push(m[x]);return this},f.prototype.forEach=function(m){for(var x=this.array_,y=0,v=x.length;y<v;++y)m(x[y],y,x)},f.prototype.getArray=function(){return this.array_},f.prototype.item=function(m){return this.array_[m]},f.prototype.getLength=function(){return this.get(RSt.LENGTH)},f.prototype.insertAt=function(m,x){this.unique_&&this.assertUnique_(x),this.array_.splice(m,0,x),this.updateLength_(),this.dispatchEvent(new Ofe($D.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_,y=0,v=x.length;y<v;++y)if(x[y]===m)return this.removeAt(y)},f.prototype.removeAt=function(m){var x=this.array_[m];return this.array_.splice(m,1),this.updateLength_(),this.dispatchEvent(new Ofe($D.REMOVE,x,m)),x},f.prototype.setAt=function(m,x){var y=this.getLength();if(m<y){this.unique_&&this.assertUnique_(x,m);var v=this.array_[m];this.array_[m]=x,this.dispatchEvent(new Ofe($D.REMOVE,v,m)),this.dispatchEvent(new Ofe($D.ADD,x,m))}else{for(var C=y;C<m;++C)this.insertAt(C,void 0);this.insertAt(m,x)}},f.prototype.updateLength_=function(){this.set(RSt.LENGTH,this.array_.length)},f.prototype.assertUnique_=function(m,x){for(var y=0,v=this.array_.length;y<v;++y)if(this.array_[y]===m&&y!==x)throw new tfe(58)},f}(fw),MSt=iar;we();var VSt=x5(uOe(),1);var rar=function(){function o(f){this.rbush_=new VSt.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_[mu(m)]=x},o.prototype.load=function(f,m){for(var x=new Array(m.length),y=0,v=m.length;y<v;y++){var C=f[y],T=m[y],S={minX:C[0],minY:C[1],maxX:C[2],maxY:C[3],value:T};x[y]=S,this.items_[mu(T)]=S}this.rbush_.load(x)},o.prototype.remove=function(f){var m=mu(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_[mu(m)],y=[x.minX,x.minY,x.maxX,x.maxY];OD(y,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(y){return y.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,y=0,v=f.length;y<v;y++)if(x=m(f[y]),x)return x;return x},o.prototype.isEmpty=function(){return NL(this.items_)},o.prototype.clear=function(){this.rbush_.clear(),this.items_={}},o.prototype.getExtent=function(f){var m=this.rbush_.toJSON();return K1(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}(),COe=rar;we();var gw={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};we();function GSt(o,f){return[[-1/0,-1/0,1/0,1/0]]}var FSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),eN=function(o){FSt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.feature=x,v.features=y,v}return f}(hw);var nar=function(o){FSt(f,o);function f(m){var x=this,y=m||{};x=o.call(this,{attributions:y.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:y.wrapX!==void 0?y.wrapX:!0})||this,x.on,x.once,x.un,x.loader_=lX,x.format_=y.format,x.overlaps_=y.overlaps===void 0?!0:y.overlaps,x.url_=y.url,y.loader!==void 0?x.loader_=y.loader:x.url_!==void 0&&(Su(x.format_,7),x.loader_=X9e(x.url_,x.format_)),x.strategy_=y.strategy!==void 0?y.strategy:GSt;var v=y.useSpatialIndex!==void 0?y.useSpatialIndex:!0;x.featuresRtree_=v?new COe:null,x.loadedExtentsRtree_=new COe,x.loadingExtentsCount_=0,x.nullGeometryFeatures_={},x.idIndex_={},x.uidIndex_={},x.featureChangeKeys_={},x.featuresCollection_=null;var C,T;return Array.isArray(y.features)?T=y.features:y.features&&(C=y.features,T=C.getArray()),!v&&C===void 0&&(C=new MSt(T)),T!==void 0&&x.addFeaturesInternal(T),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=mu(m);if(!this.addToIndex_(x,m)){this.featuresCollection_&&this.featuresCollection_.remove(m);return}this.setupChangeEvents_(x,m);var y=m.getGeometry();if(y){var v=y.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(v,m)}else this.nullGeometryFeatures_[x]=m;this.dispatchEvent(new eN(gw.ADDFEATURE,m))},f.prototype.setupChangeEvents_=function(m,x){this.featureChangeKeys_[m]=[Vv(x,wd.CHANGE,this.handleFeatureChange_,this),Vv(x,ffe.PROPERTYCHANGE,this.handleFeatureChange_,this)]},f.prototype.addToIndex_=function(m,x){var y=!0,v=x.getId();return v!==void 0&&(v.toString()in this.idIndex_?y=!1:this.idIndex_[v.toString()]=x),y&&(Su(!(m in this.uidIndex_),30),this.uidIndex_[m]=x),y},f.prototype.addFeatures=function(m){this.addFeaturesInternal(m),this.changed()},f.prototype.addFeaturesInternal=function(m){for(var x=[],y=[],v=[],C=0,T=m.length;C<T;C++){var S=m[C],w=mu(S);this.addToIndex_(w,S)&&y.push(S)}for(var C=0,E=y.length;C<E;C++){var S=y[C],w=mu(S);this.setupChangeEvents_(w,S);var L=S.getGeometry();if(L){var I=L.getExtent();x.push(I),v.push(S)}else this.nullGeometryFeatures_[w]=S}if(this.featuresRtree_&&this.featuresRtree_.load(x,v),this.hasListener(gw.ADDFEATURE))for(var C=0,R=y.length;C<R;C++)this.dispatchEvent(new eN(gw.ADDFEATURE,y[C]))},f.prototype.bindFeaturesCollection_=function(m){var x=!1;this.addEventListener(gw.ADDFEATURE,function(y){x||(x=!0,m.push(y.feature),x=!1)}),this.addEventListener(gw.REMOVEFEATURE,function(y){x||(x=!0,m.remove(y.feature),x=!1)}),m.addEventListener($D.ADD,function(y){x||(x=!0,this.addFeature(y.element),x=!1)}.bind(this)),m.addEventListener($D.REMOVE,function(y){x||(x=!0,this.removeFeature(y.element),x=!1)}.bind(this)),this.featuresCollection_=m},f.prototype.clear=function(m){if(m){for(var x in this.featureChangeKeys_){var y=this.featureChangeKeys_[x];y.forEach(Dy)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var v=function(S){this.removeFeatureInternal(S)}.bind(this);this.featuresRtree_.forEach(v);for(var C in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[C])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var T=new eN(gw.CLEAR);this.dispatchEvent(T),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 y=[m[0],m[1],m[0],m[1]];return this.forEachFeatureInExtent(y,function(v){var C=v.getGeometry();if(C.intersectsCoordinate(m))return x(v)})},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(y){var v=y.getGeometry();if(v.intersectsExtent(m)){var C=x(y);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(),NL(this.nullGeometryFeatures_)||Gy(m,JCt(this.nullGeometryFeatures_))),m},f.prototype.getFeaturesAtCoordinate=function(m){var x=[];return this.forEachFeatureAtCoordinateDirect(m,function(y){x.push(y)}),x},f.prototype.getFeaturesInExtent=function(m,x){var y=this;if(this.featuresRtree_){var v=x&&x.canWrapX()&&this.getWrapX();if(!v)return this.featuresRtree_.getInExtent(m);var C=m1t(m,x);return[].concat.apply([],C.map(function(T){return y.featuresRtree_.getInExtent(T)}))}else return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},f.prototype.getClosestFeatureToCoordinate=function(m,x){var y=m[0],v=m[1],C=null,T=[NaN,NaN],S=1/0,w=[-1/0,-1/0,1/0,1/0],E=x||YCt;return this.featuresRtree_.forEachInExtent(w,function(L){if(E(L)){var I=L.getGeometry(),R=S;if(S=I.closestPointXY(y,v,T,S),S<R){C=L;var P=Math.sqrt(S);w[0]=y-P,w[1]=v-P,w[2]=y+P,w[3]=v+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,y=mu(x),v=x.getGeometry();if(!v)y in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(x),this.nullGeometryFeatures_[y]=x);else{var C=v.getExtent();y in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[y],this.featuresRtree_&&this.featuresRtree_.insert(C,x)):this.featuresRtree_&&this.featuresRtree_.update(C,x)}var T=x.getId();if(T!==void 0){var S=T.toString();this.idIndex_[S]!==x&&(this.removeFromIdIndex_(x),this.idIndex_[S]=x)}else this.removeFromIdIndex_(x),this.uidIndex_[y]=x;this.changed(),this.dispatchEvent(new eN(gw.CHANGEFEATURE,x))},f.prototype.hasFeature=function(m){var x=m.getId();return x!==void 0?x in this.idIndex_:mu(m)in this.uidIndex_},f.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&NL(this.nullGeometryFeatures_):this.featuresCollection_?this.featuresCollection_.getLength()===0:!0},f.prototype.loadFeatures=function(m,x,y){for(var v=this.loadedExtentsRtree_,C=this.strategy_(m,x,y),T=function(L,I){var R=C[L],P=v.forEachInExtent(R,function(A){return qY(A.extent,R)});P||(++S.loadingExtentsCount_,S.dispatchEvent(new eN(gw.FEATURESLOADSTART)),S.loader_.call(S,R,x,y,function(A){--this.loadingExtentsCount_,this.dispatchEvent(new eN(gw.FEATURESLOADEND,void 0,A))}.bind(S),function(){--this.loadingExtentsCount_,this.dispatchEvent(new eN(gw.FEATURESLOADERROR))}.bind(S)),v.insert(R,{extent:R.slice()}))},S=this,w=0,E=C.length;w<E;++w)T(w,E);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_,y;x.forEachInExtent(m,function(v){if(OD(v.extent,m))return y=v,!0}),y&&x.remove(y)},f.prototype.removeFeature=function(m){if(!!m){var x=mu(m);x in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[x]:this.featuresRtree_&&this.featuresRtree_.remove(m);var y=this.removeFeatureInternal(m);y&&this.changed()}},f.prototype.removeFeatureInternal=function(m){var x=mu(m),y=this.featureChangeKeys_[x];if(!!y){y.forEach(Dy),delete this.featureChangeKeys_[x];var v=m.getId();return v!==void 0&&delete this.idIndex_[v.toString()],delete this.uidIndex_[x],this.dispatchEvent(new eN(gw.REMOVEFEATURE,m)),m}},f.prototype.removeFromIdIndex_=function(m){var x=!1;for(var y in this.idIndex_)if(this.idIndex_[y]===m){delete this.idIndex_[y],x=!0;break}return x},f.prototype.setLoader=function(m){this.loader_=m},f.prototype.setUrl=function(m){Su(this.format_,7),this.url_=m,this.setLoader(X9e(m,this.format_))},f}(bfe),DSt=nar;var oar={toDegrees:P9e,toFeature:ITt,transform:_fe,VectorSource:DSt},Xfe=class extends gm{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 wV(f);else if(m==="mapbox")x=new bO(f);else if(m==="arcgis")x=await d1.fromUrl(f.url,f);else if(m==="wms")x=new CO(f);else if(m==="multi")x=new Wz(f);else if(m==="single")x=await V1.fromUrl(f.url,f);else if(m==="tms"){let v=f.west??void 0,C=f.south??void 0,T=f.east??void 0,S=f.north??void 0;F(v)&&F(C)&&F(T)&&F(S)&&(f.rectangle=new vi(be.toRadians(v),be.toRadians(C),be.toRadians(T),be.toRadians(S))),F(f.fileExtension)&&f.fileExtension==="json"&&(f.callback=this.processGeoJson()),x=await _L.fromUrl(f.url,f)}else if(m==="baidu")x=new Nz(f);else if(m==="gaode"||m==="geovis"||m==="qqmap")x=new Hb(f);else if(m==="mapworld")x=new wV(f);else if(m==="osm")x=new ME(f);else if(m==="bingmap")x=await vO.fromUrl(f.url,f);else if(m==="mvt"){if(F(f.coreMap)||(f.coreMap=this._earthCtrl.coreMap),f.mvtConfig){let v=this.getVectorTileLayer(f.mvtConfig),C=f.projection?f.projection:"EPSG:3857";f.vectorTileLayer=v,f.projection=V1t(C)}x=new Zz(f,oar)}x!==null&&(this._primitive=this._earthCtrl.imageryLayers.addImageryProvider(x,f.zIndex),this._primitive._layerIndex=f.zIndex),m==="ion"&&(this._primitive=Up.fromProviderAsync(WG.fromAssetId(f.assetId),f),this._earthCtrl.imageryLayers.add(this._primitive),this._primitive._layerIndex=f.zIndex);let y=f.groupName||this._earthCtrl.language.GROUP_NWE_IMAGERY_LAYER;f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(y,{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,y=f.fillColor?f.fillColor:"rgba(68,197,19,0.5)",v=f.strokeColor?f.strokeColor:"rgba(0,31,255,1)",C=f.strokeWidth?f.strokeWidth:1,T=f.textColor?f.textColor:"#000",S=f.textStrokeColor?f.textStrokeColor:"#ff7d00",w=f.selectColor?f.selectColor:"#ff0000",E=f.selectGe_Id?f.selectGe_Id:[],L=f.geId?f.geId:"",I=new J1t({format:new ATt,tileSize:x,url:m}),R=function(A,M){let V=new BTt({fill:new _X({color:y}),stroke:new Zee({color:v,width:C}),text:new HTt({font:"80px Arial",textBaseline:"middle",text:A.get("name")||A.get("id")||"",fill:new _X({color:T}),stroke:new Zee({color:S,width:3})})});return E.includes(A.get(L))&&V.getFill().setColor(w),V};return new ISt({source:I,style:R})}checkWModels(f){return F(this._wModels[f])}removeInstance(f,m){let y=this._wModels[f];if(F(y)){let v=y.geometryInstances;if(F(v))for(let C=0;C<v.length;C++)v[C].id}}removeWModels(f){if(F(this._parameter.retain)&&this._parameter.retain)return;let m=this,x=m._wModels[f];if(F(x)){for(let y=0;y<m._instance[f].length;y++)m.instanceId.has(m._instance[f][y])&&m.instanceId.delete(m._instance[f][y]);m._instance[f]=[],m._wModels[f]=void 0}}convertCoordinates(f){let m=[];for(let x=0;x<f.length;x++){let y=f[x];for(let v=0;v<y.length;v++)Array.prototype.push.apply(m,y[v])}return m}processGeoJson(){let f=this,m=f._parameter.modelHeightKey??"\u5C42\u9AD8",x=f._parameter.modelColor??Xe.BLUE;function y(C){f.removeWModels(C)}function v(C,T){if(!F(T)||f.checkWModels(T))return;let S=[],w=yo.fromColor(x);f._instance[T]||(f._instance[T]=[]);let E;for(let L=0;L<C.features.length;L++){let I=C.features[L];if(I.geometry.type==="Polygon"){let R=I.id;if(!f.instanceId.has(R)){let P=f.convertCoordinates(I.geometry.coordinates),A=Z.fromDegreesArray(P);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(A),extrudedHeight:E}),id:R,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(R,T),f._instance[T].push(R)}}else if(I.geometry.type==="MultiPolygon"){let R=I.geometry.coordinates;for(let P=0;P<R.length;P++){let A=I.id+L;if(!f.instanceId.has(A)){let M=R[P],V=f.convertCoordinates(M),G=Z.fromDegreesArray(V);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(G),extrudedHeight:E}),id:A,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(A,T),f._instance[T].push(A)}}}else console.info(I.geometry.type)}if(S.length>0){let L=f._earthCtrl.primitives.add(new ta({geometryInstances:S,allowPicking:!1,appearance:new ga({flat:!1,faceForward:!1,translucent:!1})}));f._wModels[T]=L}}return{callback:v,removePrimitive:y}}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(y){let v=As.export(f);console.log("imageobj",v),m(v)})})}async flyTo(f={}){let m=f;function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="wms"){let y=await this._primitive.imageryProvider.capabilitiesRes;if(!y.length)return;if(y[0]<180&&y[0]>-180)m.destination=f.destination??vi.fromDegrees(y[0],y[1],y[2],y[3]);else{let v=x(y[0],y[1]),C=x(y[2],y[3]);m.destination=f.destination??vi.fromDegrees(v.lon,v.lat,C.lon,C.lat)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Xfe.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],y=f.mEarthCtrl.entities.getById(x);y.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 TOe=Xfe;we();we();var aar=function(o,f,m,x){let y=m,v=x;var C=f.west,T=f.east,S=f.south,w=f.north,E=T-C,L=w-S,I=o.longitude*180/Math.PI,R=o.latitude*180/Math.PI;return o.normalizedLongitude=(I-C)/E*m,o.normalizedLatitude=(R-S)/L*x,o},sar=function(o,f,m,x){var y=[],v=o[0].longitude!==void 0;return o.forEach(function(C){var T=[],S=v?C:tN.scene.globe.ellipsoid.cartesianToCartographic(C);S=aar(S,f,m,x),T.push(S.normalizedLongitude),T.push(S.normalizedLatitude),y.push(T)}),y},lar=function(o,f,m){var x=32,y=f.west*be.DEGREES_PER_RADIAN,v=f.east*be.DEGREES_PER_RADIAN,C=f.south*be.DEGREES_PER_RADIAN,T=f.north*be.DEGREES_PER_RADIAN,S=new vi(y,C,v,T),w=sar(o,S,x,x),E=uar(w,"#FF0000",x,x);return E},uar=function(o,f,m,x,y){if(y===void 0){var y=document.createElement("canvas");y.width=m,y.height=x}var v=y.getContext("2d");if(!(o.length<=0)){v.moveTo(o[0][0],o[0][1]);for(var C=0;C<o.length;C++)v.lineTo(o[C][0],o[C][1]);return f!=null&&f!=null&&(v.fillStyle=f,v.fill()),y}};function NR(o,f){return Math.floor(Math.random()*(f-o+1))+o}function car(){return globalThis.GEOWORLD_BASE_URL+"Workers/ParseElevationWorker.js"}function har(o,f){var m=fp();return NR=lar(o.vertices,f,o.heights[0]),NR.timeStamp=o.timeStamp,NR.mtHeight=o.heights,NR.mtType=o.mtType,NR.fromKML=o.fromKML,NR.rect=o.rectangle,NR.level=o.level,m.resolve(NR),m.promise}function dar(o,f){return Math.floor(Math.random()*(f-o+1))+o}function par(o,f){var m=fp(),x=[];return o.forEach(function(y){x.push(har(y,f))}),Promise.all(x).then(function(y){var v=y[0].lenght,C=function(w,E){return E.timeStamp-w.timeStamp};if(y.length===1)m.resolve(y[0]);else{var T=y.sort(C),S=T.shift();T.forEach(function(w){S.forEach(function(E,L){E===NR&&w[L]!==NR&&(S[L]=w[L])})}),m.resolve(S)}}),m.promise}var tN,NSt=!1;function zd(o,f){if(tN=o,!F(f))throw new wt("options is required.");this._errorEvent=new Tr,this._modelFloorMasks={},this._credit=f.credit,typeof this._credit=="string"&&(this._credit=new Oa(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 v=new XMLHttpRequest;v.open("GET",f.cacheUrl?f.cacheUrl+"/0/0/0.mpt":m._firstRequest,!1),v.onload=function(){var C=new DOMParser,T=C.parseFromString(v.responseText,"text/xml"),S=F(T.childNodes)&&T.childNodes.length>0;m.setFormatMPT(!S)},v.onerror=function(){m.setFormatMPT(!1)},v.send()}(),f.cacheUrl&&(this.isCache=!0,this.cacheLevel=f.cacheLevel||16,this._cacheUrl=f.cacheUrl+"/{z}/{x}/{y}.mpt");let y=this._maxTerrainLevel;this._availability={computeMaximumLevelAtPosition:function(v){return Math.min(y,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 _h,this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f.heightMapWidth*4,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._workerPool=new ew({workerPath:car()},Vi),this._pendingRequests=0,this._requestGridSize=8,this._requestsCache={},this._requestsCacheKeys=[],this.errorEvent.addEventListener(function(v){},this)}zd._geometricErrorFactor=2;Object.defineProperties(zd.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}}});zd.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)))}};zd.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)*zd._geometricErrorFactor};zd.prototype.createKeyFromTile=function(o,f,m){return o+"_"+f+"_"+m};zd.prototype.getTileDataAvailable=function(o,f,m){var x=Math.min(this._maxTerrainLevel,25);return this._isMPT?!0:m<x};zd.prototype.requestFactorForLevel=function(o){var f=Math.log(this._requestGridSize)/Math.log(2);return f=Math.min(f,o),Math.pow(2,f)};zd.prototype.getRequestBaseTerrainUrl=function(o,f,m,x){return this.getRequestUrl(o,f,m,x)};zd.prototype.getRequestElevationLayer=function(o,f,m){return this.getRequestUrl(o,f,m,!1,!0)};zd.prototype.getRequestUrl=function(T,S,w,x,y){var v=w,C=x!=null?this.requestFactorForLevel(w):1,T=x!=null?(T-T%C)/C:T,S=x!=null?(S-S%C)/C:S,w=x!=null?w-Math.log(C)/Math.log(2):w;if(this.isCache&&w!==0&&w<=this.cacheLevel)return this._cacheUrl.replace("{x}",T).replace("{y}",S).replace("{z}",w);var E=this.tilingScheme.tileXYToNativeRectangle(T,S,w),L=this.heightMapWidth*C===256&&x?1:0;y&&(L=0);var I=this._urlTemplate.replace("{south}",E.south).replace("{north}",E.north).replace("{west}",E.west).replace("{east}",E.east).replace("{optimizedOnly}",L).replace("{width}",this.heightMapWidth*C).replace("{height}",this.heightMapHeight*C).replace("{s}",this.sTag(T,S,w));return I+"&level="+w+"&origLevel="+v};zd.prototype.isT_Inside_E=function(o,f){return o.west>=f.west*be.DEGREES_PER_RADIAN&&o.east<=f.east*be.DEGREES_PER_RADIAN&&o.south>=f.south*be.DEGREES_PER_RADIAN&&o.north<=f.north*be.DEGREES_PER_RADIAN};zd.prototype.isT_Intersects_E=function(o,f){var m=o.west*be.RADIANS_PER_DEGREE,x=o.east*be.RADIANS_PER_DEGREE,y=o.south*be.RADIANS_PER_DEGREE,v=o.north*be.RADIANS_PER_DEGREE,C=new vi(m,y,x,v),T=vi.intersection(C,f,new vi);return T};zd.prototype.sTag=function(o,f,m){if(this._subdomains==null)return"";var x=(o+f+m)%this._subdomains.length;return this._subdomains[x]};zd.prototype.refreshElevationLayer=function(o){if(o.rectangle&&tN.scene.globe._surface._levelZeroTiles!==void 0){var f=this.findDirectParent(o.rectangle,!0);f.freeResources()}};zd.prototype.findDirectParent=function(o,f){var m=function(v,C,T){var S=T?4.1:2.1;if(v._rectangle.width<=C.width*S&&vi.contains(v._rectangle,vi.center(C)))return v;for(var w=v.children.length,E=0;E<w;E++){var L=v.children[E];if(vi.contains(L._rectangle,vi.center(C)))return m(L,C,T)}return null};if(o.width==Math.PI)return null;for(var x=0;x<tN.scene.globe._surface._levelZeroTiles.length;x++){var y=m(tN.scene.globe._surface._levelZeroTiles[x],o,f);if(y)return y}return null};zd.prototype.isTileAvailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);if(y&&y.data&&y.data.terrainData){if(!(y.data.terrainData._childTileMask>0))return!1;for(var v=y.children.length,C=0;C<v;C++){var T=y.children[C];if(vi.equals(T._rectangle,x))return y.data.terrainData._childTileMask&1<<C}}return!0};zd.prototype.markTileAsUnavailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);y&&y.data&&y.data.terrainData&&y.data.terrainData._childTileMask>0&&y.children.some(function(v,C){if(vi.equals(v._rectangle,x)){switch(C){case 0:y.data.terrainData._childTileMask&=-5;break;case 1:y.data.terrainData._childTileMask&=-9;break;case 2:y.data.terrainData._childTileMask&=-2;break;case 3:y.data.terrainData._childTileMask&=-3;break;default:}return!0}return!1})};zd.prototype.requestBaseTerrainTileGeometry=function(o,f,m,x){return this.requestTileGeometryBuffers(o,f,m,x)};zd.prototype.requestElevationLayerTileGeometry=function(o,f,m,x,y){return this.requestTileGeometryBuffers(o,f,m,x,y)};zd.prototype.requestTileGeometryBuffers=function(o,f,m,x,y){var v=this,C=15,T={};T.requestedRectangle=this.tilingScheme.tileXYToNativeRectangle(o,f,m),T.layer=y;var I,S,w,E,L=fp(),I=this.requestTileHeightBuffer(o,f,m,x,void 0,y);return I===void 0?void 0:(S=this.requestTileHeightBuffer(o+1,f,m,x,!0,y),w=this.requestTileHeightBuffer(o,f+1,m,x,!0,y),E=this.requestTileHeightBuffer(o+1,f+1,m,x,!0,y),Promise.all([I,S,w,E]).then(function(R){if(NSt==0){if(R[0].myReject!=null&&R[0].myReject){L.reject();return}for(var P=v.heightMapWidth+1,A=v.heightMapHeight+1,M=new Float32Array(P*A),V=R[0].isFloor,G=0;G<P;G++)for(var D=0;D<A;D++){var N=G,k=D,U=0;D===P-1&&(k=0,U=1,V&&(U=0,k=P-2)),G===A-1&&(N=0,U=2);var B=G*P+D,Y=N*v.heightMapWidth+k;R[U]!==null&&(R[U].myReject==null||!R[U].myReject)&&(M[B]=R[U][Y])}(R[3].myReject==null||!R[3].myReject)&&(M[P*A-1]=R[3][0]);var J=v.arrayToHeightmapTerrainData(M,P,A,C);T.buffer=J,L.resolve(T)}else{var J=v.arrayToHeightmapTerrainData(R[0],v.heightMapWidth,v.heightMapHeight);T.buffer=J,L.resolve(T)}}).catch(function(){L.reject()}),L.promise)};zd.prototype.requestTileGeometry=function(o,f,m,x){var y=this,v=[],C=y.tilingScheme.tileXYToNativeRectangle(o,f,m);this._allElevationLayers!=null&&this._allElevationLayers.length>0&&m>7?this._allElevationLayers.forEach(function(S,w){var E=w.show;if(E){var L=w.rectangle;y.isT_Inside_E(C,L)?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w))):y.isT_Intersects_E(C,L)!=null?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w)),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)))}else y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))}):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)));var T=fp();return Promise.all(v).then(function(S){if(S.length===1)S.layer!==void 0&&console.log("missing scale and offset"),T.resolve(S[0].buffer);else if(S.length>1){var w=S.filter(function(P){return P.layer!==void 0}),E=S.filter(function(P){return P.layer===void 0});if(w.length===0)T.resolve(S[0].buffer);else{var L=w[w.length-1],I=E[E.length-1],R={tolerance:L.layer.nullTolerance,nullValueNumber:L.layer.nullValueNumber,verticesX:L.layer.polygonVerticesX,verticesY:L.layer.polygonVerticesY,scale:L.layer.scale??1,offset:L.layer.offset??0};T.resolve(y.mergeBuffers(I.buffer,L.buffer,R,I.requestedRectangle))}}else T.reject()}).catch(function(){T.reject()}),T.promise};zd.prototype.mergeBuffers=function(o,f,m,x){var y,v,C,T,S,w=33,E=33,L=x.west,I=x.north,R=x.east,P=x.south,A=x.width/w,M=x.height/E,V=m.scale,G=m.offset,D=m.nullValueNumber,N=m.tolerance,k=D!==void 0&&N!==void 0;if(k)var U=m.nullValueNumber??0,B=Number(m.tolerance)??0;var Y=new Float32Array(w*E);for(y=0,S=I;y<E;y++,S+=M)for(v=0,T=L;v<w;v++,T+=A)C=y*w+v,k?Y[C]=!f._buffer[C]||f._buffer[C]>=U-B&&f._buffer[C]<=U+B?o._buffer[C]:f._buffer[C]*V+G:Y[C]=f._buffer[C]?f._buffer[C]*V+G:o._buffer[C];return this.arrayToHeightmapTerrainData(Y,w,E,15)};zd.prototype.requestTileHeightBuffer=function(o,f,m,x,y,v){var C=this;if(!isNaN(o+f+m)){(!F(x)||x===!1)&&(x=new hm({defer:!0}));var T=x.defer==0;y=T??!1;var S=fp();if(NSt==0){var w;if(v!==void 0)v.getUrlFromSTag=function(j,q,O){return v.subdomains===void 0?v.url:v.subdomains[0]+"/SG"},w=this.getRequestElevationLayer(o,f,m).replace(this._options.url,v.getUrlFromSTag(o,f,m)+"/Elevation").replace(this._options.layerName,v.name),v.format==="mpt"&&(w=w.replace("image/png","image/mpt"));else{w=this.getRequestBaseTerrainUrl(o,f,m,T||y);var E=tN.terrainProvider.tilingScheme.tileXYToRectangle(o,f,m),L=tN.terrainProvider._modifyTerrainObjects,I=fp();if(L!==void 0){var R=[];if(L.forEach(function(j){j.show&&vi.intersection(E,j.rectangle,new vi)!=null&&R.push(j)}),R.length>0)if(R.length===1&&R[0].modelFloorBestLevel&&m>R[0].modelFloorBestLevel)I.resolve("NoMerge");else{var P=par(R,E,m);Promise.resolve(P).then(function(j){I.resolve(j)}).catch(function(j){console.log(j)})}else I.resolve("NoMerge")}else I.resolve("NoMerge");var A=fp(),M=[].filter(function(j){return j._selectedTiles.length>0});if(M.length===1&&M[0].level&&m>M[0].level)A.resolve("NoFloor");else{var V=!1,G=32,D=65535;M.forEach(function(j){if(j.ready&&j.show&&j.rootFloorRectangle!==void 0&&vi.intersection(E,j.rootFloorRectangle)!==void 0){for(var q=new Uint16Array(G*G),O=E.west,te=E.south,ie=(E.east-E.west)/32,re=(E.north-E.south)/32,ee,ae=0;ae<G;ae++)for(var oe=0;oe<G;oe++){var ce=O+ie*oe+ie/2,pe=E.north-re*ae-re/2,ue=new Gt(ce,pe);ee=D;var he=j.getHRMTFP(j,ue,!0);he!=null&&he.content&&he.content._model&&he.content._model.floor&&(ee=he.content._model.floor.getHeight(ue.longitude,ue.latitude)),ee!==D&&(ee+=1.5),q[ae*G+oe]=ee}V=!0,A.resolve(q)}}),V||A.resolve("NoFloor")}var N=tN.scene.globe.ellipsoid}if(this._requestsCache.hasOwnProperty(w)===!1){if(this._requestsCache[w]={},this._requestsCacheKeys.push(w),this._requestsCacheKeys.length>100){for(var k=0;k<50;k++)delete this._requestsCache[this._requestsCacheKeys[k]];this._requestsCacheKeys.splice(0,50)}}else{var U=this._requestsCacheKeys.indexOf(w);this._requestsCacheKeys.splice(U,1),this._requestsCacheKeys.push(w)}var B=this._requestsCache[w];if(B.dataLoaded===void 0&&(T?B.dataLoaded=Mr.fetchArrayBuffer(w):B.dataLoaded=Mr.fetchArrayBuffer(w),!F(B.dataLoaded)))return;var Y=this;this._pendingRequests++,Promise.resolve(B.dataLoaded).then(function(j){B.workerFinished===void 0&&(B.workerFinished=Y._workerPool.queueWorkItem({buffer:j,isElevation:v!==void 0,level:m})),Promise.all([B.workerFinished,I.promise,A.promise]).then(function(q){var O=q[1]!==void 0&&q[1]!=="NoMerge",te=q[2]!==void 0&&q[2]!=="NoFloor";if(q[0].rejected){for(var ie=Y.heightMapWidth*Y.heightMapHeight,re=new Int16Array(ie),ee=0,ae=0;ae<ie;ae++)re[ae]=300;return m>2&&(re.myReject=!0),S.resolve(re),S.promise}var oe=Y.extractTileHeightBuffer(q[0].buffer,o,f,m);if(Y._pendingRequests--,O)for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[1].mtHeight[0]}if(te){for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[2][pe]===65535||q[2][pe]>10500?oe[pe]:q[2][pe]}oe.isFloor=!0}S.resolve(oe)}).catch(function(){for(var q=Y.heightMapWidth*Y.heightMapHeight,O=new Int16Array(q),te=0,ie=0;ie<q;ie++)O[ie]=300;return m>2&&(O.myReject=!0),S.resolve(O),S.promise})}).catch(function(){Y._pendingRequests--,S.reject()})}else{for(var J=this.heightMapWidth*this.heightMapHeight,K=new Int16Array(J),z=dar(0,1500),k=0;k<J;k++)K[k]=z;S.resolve(K)}return S.promise}};zd.prototype.extractTileHeightBuffer=function(o,f,m,x){try{for(var y=this.requestFactorForLevel(x),v=f%y,C=m%y,T=new Float32Array(this.heightMapWidth*this.heightMapHeight),S=1e6,w=-1e5,E=0;E<this.heightMapHeight;E++)for(var L=0;L<this.heightMapWidth;L++){var I=E+C*this.heightMapHeight,R=L+v*this.heightMapWidth,P=E*this.heightMapWidth+L,A=I*this.heightMapWidth*y+R;o[A]>w&&(w=o[A]),o[A]<S&&(S=o[A]),T[P]=o[A]}}catch(M){console.log(M.message)}return T};zd.prototype.arrayToHeightmapTerrainData=function(o,f,m,x){F(o)===!1&&(o=new Int16Array(f*m));var y={buffer:o,width:f,height:m,childTileMask:x};return new yL(y)};var WSt=zd;var kfe=class extends gm{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,y=m.sourceType??"ctb";try{if(y!=="ude"){if(y==="ctb")x=await N4.fromUrl(m.url,m);else if(y==="multi")x=new ace(this._earthCtrl);else if(y==="sgs")f&&(Ty.hasVertexNormals=!0),x=new WSt(this._earthCtrl.coreMap,m);else if(y==="arcgis")x=await fde.fromUrl(m.url,m);else if(y==="mapworld"){let C=m.cesium;C.GeoTerrainProvider||new ex(!1).addJs(document.body,`${window.SmartEarthRootUrl}Workers/cesiumTdt.js`);let T=[],S=m.subdomains;for(let w=0;w<S.length;w++){let E=`${m.url.replace("{s}",S[w])}mapservice/swdx?T=elv_c&tk=3ec79cf7a9dcc6bb18411a5414b148cb`;T.push(E)}x=new C.GeoTerrainProvider({urls:T})}}x!==null&&(this._primitive=x,this._coreMap.terrainProvider=x);let v=m.groupName||this._earthCtrl.language.GROUP_NWE_TERRAIN_LAYER;m.addTree&&(m.addTree=void 0,m.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(v,{id:m.id||this._earthCtrl.factory.createUUID(),name:m.name||y,sourceType:"TerrainProvider",item:this,feature:m,checked:this._primitive.show}))}catch(v){console.error(v)}}removeFromMap(){this._primitive!==null&&(this._coreMap.terrainProvider=new IS)}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(y){let v=As.export(f);console.log("terraobj",v),m(v)})})}flyTo(f={}){let m=f;m.orientation=f.orientation??{heading:be.toRadians(0),pitch:be.toRadians(-60),roll:be.toRadians(0)};function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="ctb"||this._parameter.sourceType==="arcgis"){if(this._primitive._tilingScheme.bounds[0]<180&&this._primitive._tilingScheme.bounds[0]>-180){let y=this._primitive._tilingScheme.bounds,v=(y[0]+y[2])/2,C=(y[1]+y[3])/2,T=f.height||1e4;m.destination=f.destination??Z.fromDegrees(v,C,T)}else{let y=this._primitive._tilingScheme.bounds,v=x(y[0],y[1]),C=x(y[2],y[3]),T=(v.lon+C.lon)/2,S=(v.lat+C.lat)/2,w=f.height||1e4;m.destination=f.destination??Z.fromDegrees(T,S,w)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(kfe.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 SOe=kfe;we();var Ufe=class extends gm{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 _0.fromUrl(f.url,f),F(f.transform)&&this.transform(f.transform,m)):f.sourceType==="osgb"?m=await _0.fromUrl(f.url,f):f.sourceType==="i3s"?m=await gR.fromUrl(f.url,f):f.sourceType==="s3m"?(F(f.context)||(f.context=this._earthCtrl.viewer.scene.context),m=new tpe(f),await m.readyPromise):(f.sourceType==="ude_block"||f.sourceType==="ude_model")&&(f.skipLevelOfDetail=!0,m=await _0.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(){F(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(y){let v=As.export(f);console.log("modellayerobj",v),m(v)})})}transform(f,m){let x=m._primitive,y=Ut.fromRotationX(be.toRadians(f.pitch)),v=Ut.fromRotationY(be.toRadians(f.roll)),C=Ut.fromRotationZ(be.toRadians(f.heading)),T=Ee.fromRotationTranslation(y),S=Ee.fromRotationTranslation(v),w=Ee.fromRotationTranslation(C),E=Z.fromDegrees(f.lon,f.lat,f.alt),L=_r.eastNorthUpToFixedFrame(E);Ee.multiply(L,T,L),Ee.multiply(L,S,L),Ee.multiply(L,w,L),x._root.transform=L}setHeight(f){if(f=Number(f),!isNaN(f)&&this._primitive!==void 0&&this._primitive.boundingSphere!==void 0){let m=this._primitive.boundingSphere.center,x=Gt.fromCartesian(m),y=Z.fromRadians(x.longitude,x.latitude,0),v=Z.fromRadians(x.longitude,x.latitude,f),C=Z.subtract(v,y,new Z);this._primitive.modelMatrix=Ee.fromTranslation(C)}}};Object.defineProperties(Ufe.prototype,{parameter:{get:function(){return this._parameter}},readyPromise:{get:function(){return this._primitive.readyPromise}},show:{get:function(){return F(this._primitive)?this._primitive.show:!1},set:function(o){F(this._primitive)&&(this._primitive.show=o)}},sourceType:{get:function(){return F(this._parameter)?this._parameter.sourceType:!1}},dataUrl:{get:function(){return F(this._parameter)?this._parameter.url:!1}},boundingSphere:{get:function(){return F(this._primitive)&&this._primitive.boundingSphere?this._primitive.boundingSphere:null}},modelMatrix:{get:function(){return F(this._primitive)?this._primitive.modelMatrix:!1},set:function(o){F(this._primitive)&&(this._primitive.modelMatrix=o)}},name:{get:function(){return F(this._parameter)?this._parameter.name:!1},set:function(o){F(this._parameter)&&(this._parameter.name=o)}}});var wOe=Ufe;we();var Bfe=class extends gm{constructor(f,m){super(f),this._rtti="FeatureLayer",this._primitive=null,this._parameter=m}finalize(){}addToMap(){let f=this._parameter;this._primitive=new Kue(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 y=m[x];for(let v=0;v<y.propertyNames.length;v++){let C=y.propertyNames[v];if(!!y[C]){typeof f.near<"u"&&typeof f.far<"u"&&(y[C].distanceDisplayCondition=new So(f.near,f.far));for(let T in f)if(Object.hasOwnProperty.call(f,T)){let S=f[T];y[C][T]&&(y[C][T]=S)}if(f.pointHeight){let T=Gt.fromCartesian(y.position._value),S=Math.toDegrees(T.longitude),w=Math.toDegrees(T.latitude);y.position=Z.fromDegrees(S,w,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(y){let v=As.export(f);console.log("fireObj",v),m(v)})})}};Object.defineProperties(Bfe.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 EOe=Bfe;we();function Hfe(o){this._earthCtrl=o,this._path="",this._layerWork=null}Object.defineProperties(Hfe.prototype,{});Hfe.prototype.addToMap=function(o){F(this._layerWork)?this._layerWork.updateOverlay(o):this._layerWork=new Sde(this._earthCtrl.coreMap,o)};Hfe.prototype.removeFromMap=function(){this._layerWork.dispose()};var LOe=Hfe;we();var far={IMAGERYPROVIDERS:"imageryProviders",TERRAINPROVIDERS:"terrainProviders",MODELLAYERS:"modelLayers",FEATURELAYERS:"featureLayers",USERSCENE:"userScene"},Ms=Object.freeze(far);we();var zfe=class extends gm{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??Xe.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 Gz(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(y){let v=As.export(f);console.log("waterObj",v),m(v)})})}};Object.defineProperties(zfe.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 POe=zfe;we();var IOe=class extends gm{constructor(f,m){super(f),this._parameter=m,this._viewer=f.coreMap,this._cesium=Vi}addToMap(){let f=this._parameter,m,x;F(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 y;f.url?y=new this._cesium.SingleTileImageryProvider({url:f.url}):f.imageryProvider?y=f.imageryProvider:y=new _L({url:"http://103.25.37.71:4020/gisserver/tmsserver/earth_tms"});let v=new A4(x,{baseLayer:Up.fromProviderAsync(y),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}});v._innerCreditContainer.style.display="none",v.scene.screenSpaceCameraController.enableRotate=!1,v.scene.screenSpaceCameraController.enableZoom=!1,v.scene.screenSpaceCameraController.enableTilt=!1;let C=this;function T(){let S=C._viewer.camera.position,w=Gt.fromCartesian(S);v.camera.setView({destination:Gt.toCartesian(w),orientation:{heading:C._viewer.camera.heading,pitch:C._viewer.camera.pitch,roll:C._viewer.camera.roll}})}return C._viewer.scene.preRender.addEventListener(T),this.close=function(){C._viewer.scene.preRender.removeEventListener(T),v.destroy(),m.remove(),C.close=void 0},this}removeFromMap(){this.close&&this.close()}},ROe=IOe;we();var ZSt=new zt;function mar(o,f,m){let x=o.length,y,v,C;if(m){y=zr.LUMINANCE,v=un.FLOAT,C=new Float32Array(x);for(let T=0;T<x;T++)C[T]=o[T]}else{y=zr.RGBA,v=un.UNSIGNED_BYTE,C=new Uint8Array(x*4);for(let T=0;T<x;T++)zt.packFloat(o[T],ZSt),zt.pack(ZSt,C,T*4)}return new Rn.create({context:f,pixelFormat:y,pixelDatatype:v,source:{width:x,height:1,arrayBufferView:C},flipY:!1,sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})})}var Yfe=[];function xar(o,f,m,x){Ee.toArray(Ee.IDENTITY,Yfe);let y=new Co({fabric:{type:"spotMaterial",source:` +`){ie+=te,te=0,j=I*k+z*R,++ee;continue}var ue=P[oe+1]||S.font;ue!==ae&&(y&&q.push("font",ue),x&&O.push("font",ue),ae=ue),te=Math.max(te,D[re]);var he=[pe,j+z*G[re]+I*(G[re]-N[ee]),.5*(R+te)+ie];j+=G[re],y&&q.push("strokeText",he),x&&O.push("fillText",he),++re}return Array.prototype.push.apply(U,q),Array.prototype.push.apply(U,O),this.labels_[v]=J,J},o.prototype.replayTextBackground_=function(f,m,x,y,v,C,T){f.beginPath(),f.moveTo.apply(f,m),f.lineTo.apply(f,x),f.lineTo.apply(f,y),f.lineTo.apply(f,v),f.lineTo.apply(f,m),C&&(this.alignFill_=C[2],this.fill_(f)),T&&(this.setStrokeStyle_(f,T),f.stroke())},o.prototype.calculateImageOrLabelDimensions_=function(f,m,x,y,v,C,T,S,w,E,L,I,R,P,A,M){T*=I[0],S*=I[1];var V=x-T,G=y-S,D=v+w>f?f-w:v,N=C+E>m?m-E:C,k=P[3]+D*I[0]+P[1],U=P[0]+N*I[1]+P[2],B=V-P[3],Y=G-P[0];(A||L!==0)&&(QD[0]=B,qD[0]=B,QD[1]=Y,t3[1]=Y,t3[0]=B+k,i3[0]=t3[0],i3[1]=Y+U,qD[1]=i3[1]);var J;return L!==0?(J=d2(Ny(),x,y,1,1,L,-x,-y),Zf(J,QD),Zf(J,t3),Zf(J,i3),Zf(J,qD),K1(Math.min(QD[0],t3[0],i3[0],qD[0]),Math.min(QD[1],t3[1],i3[1],qD[1]),Math.max(QD[0],t3[0],i3[0],qD[0]),Math.max(QD[1],t3[1],i3[1],qD[1]),dK)):K1(Math.min(B,B+k),Math.min(Y,Y+U),Math.max(B,B+k),Math.max(Y,Y+U),dK),R&&(V=Math.round(V),G=Math.round(G)),{drawImageX:V,drawImageY:G,drawImageW:D,drawImageH:N,originX:w,originY:E,declutterBox:{minX:dK[0],minY:dK[1],maxX:dK[2],maxY:dK[3],value:M},canvasTransform:J,scale:I}},o.prototype.replayImageOrLabel_=function(f,m,x,y,v,C,T){var S=!!(C||T),w=y.declutterBox,E=f.canvas,L=T?T[2]*y.scale[0]/2:0,I=w.minX-L<=E.width/m&&w.maxX+L>=0&&w.minY-L<=E.height/m&&w.maxY+L>=0;return I&&(S&&this.replayTextBackground_(f,QD,t3,i3,qD,C,T),NTt(f,y.canvasTransform,v,x,y.originX,y.originY,y.drawImageW,y.drawImageH,y.drawImageX,y.drawImageY,y.scale)),!0},o.prototype.fill_=function(f){if(this.alignFill_){var m=Zf(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,y){var v=this.textStates[m],C=this.createLabel(f,m,y,x),T=this.strokeStates[x],S=this.pixelRatio,w=rSt(Array.isArray(f)?f[0]:f,v.textAlign||jD),E=hK[v.textBaseline||yX],L=T&&T.lineWidth?T.lineWidth:0,I=C.width/S-2*v.scale[0],R=w*I+2*(.5-w)*L,P=E*C.height/S+2*(.5-E)*L;return{label:C,anchorX:R,anchorY:P}},o.prototype.execute_=function(f,m,x,y,v,C,T,S){var w;this.pixelCoordinates_&&LR(x,this.renderedTransform_)?w=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),w=Qb(this.coordinates,0,this.coordinates.length,2,x,this.pixelCoordinates_),eTt(this.renderedTransform_,x));for(var E=0,L=y.length,I=0,R,P,A,M,V,G,D,N,k,U,B,Y,J=0,K=0,z=null,j=null,q=this.coordinateCache_,O=this.viewRotation_,te=Math.round(Math.atan2(-x[1],x[0])*1e12)/1e12,ie={context:f,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:O},re=this.instructions!=y||this.overlaps?0:200,ee,ae,oe,ce;E<L;){var pe=y[E],ue=pe[0];switch(ue){case Es.BEGIN_GEOMETRY:ee=pe[1],ce=pe[3],ee.getGeometry()?T!==void 0&&!Ed(T,ce.getExtent())?E=pe[2]+1:++E:E=pe[2];break;case Es.BEGIN_PATH:J>re&&(this.fill_(f),J=0),K>re&&(f.stroke(),K=0),!J&&!K&&(f.beginPath(),M=NaN,V=NaN),++E;break;case Es.CIRCLE:I=pe[1];var he=w[I],fe=w[I+1],de=w[I+2],Ce=w[I+3],Se=de-he,Le=Ce-fe,Ve=Math.sqrt(Se*Se+Le*Le);f.moveTo(he+Ve,fe),f.arc(he,fe,Ve,0,2*Math.PI,!0),++E;break;case Es.CLOSE_PATH:f.closePath(),++E;break;case Es.CUSTOM:I=pe[1],R=pe[2];var Oe=pe[3],$e=pe[4],at=pe.length==6?pe[5]:void 0;ie.geometry=Oe,ie.feature=ee,E in q||(q[E]=[]);var dt=q[E];at?at(w,I,R,2,dt):(dt[0]=w[I],dt[1]=w[I+1],dt.length=2),$e(dt,ie),++E;break;case Es.DRAW_IMAGE:I=pe[1],R=pe[2],N=pe[3],P=pe[4],A=pe[5];var gt=pe[6],Et=pe[7],et=pe[8],yt=pe[9],Rt=pe[10],Vt=pe[11],_t=pe[12],se=pe[13],ve=pe[14],je=pe[15];if(!N&&pe.length>=20){k=pe[19],U=pe[20],B=pe[21],Y=pe[22];var Ft=this.drawLabelWithPointPlacement_(k,U,B,Y);N=Ft.label,pe[3]=N;var kt=pe[23];P=(Ft.anchorX-kt)*this.pixelRatio,pe[4]=P;var bt=pe[24];A=(Ft.anchorY-bt)*this.pixelRatio,pe[5]=A,gt=N.height,pe[6]=gt,se=N.width,pe[13]=se}var lt=void 0;pe.length>25&&(lt=pe[25]);var ot=void 0,tt=void 0,ze=void 0;pe.length>17?(ot=pe[16],tt=pe[17],ze=pe[18]):(ot=qV,tt=!1,ze=!1),Rt&&te?Vt+=O:!Rt&&!te&&(Vt-=O);for(var ct=0;I<R;I+=2)if(!(lt&<[ct++]<se/this.pixelRatio)){var Wt=this.calculateImageOrLabelDimensions_(N.width,N.height,w[I],w[I+1],se,gt,P,A,et,yt,Vt,_t,v,ot,tt||ze,ee),Tt=[f,m,N,Wt,Et,tt?z:null,ze?j:null];if(S){if(ve==="none")continue;if(ve==="obstacle"){S.insert(Wt.declutterBox);continue}else{var Ht=void 0,Ci=void 0;if(je){var Yt=R-I;if(!je[Yt]){je[Yt]=Tt;continue}if(Ht=je[Yt],delete je[Yt],Ci=iSt(Ht),S.collides(Ci))continue}if(S.collides(Wt.declutterBox))continue;Ht&&(S.insert(Ci),this.replayImageOrLabel_.apply(this,Ht)),S.insert(Wt.declutterBox)}}this.replayImageOrLabel_.apply(this,Tt)}++E;break;case Es.DRAW_CHARS:var li=pe[1],Ne=pe[2],Ze=pe[3],De=pe[4];Y=pe[5];var He=pe[6],Ue=pe[7],ft=pe[8];B=pe[9];var St=pe[10];k=pe[11],U=pe[12];var Be=[pe[13],pe[13]],st=this.textStates[U],At=st.font,Mt=[st.scale[0]*Ue,st.scale[1]*Ue],It=void 0;At in this.widths_?It=this.widths_[At]:(It={},this.widths_[At]=It);var ui=Lfe(w,li,Ne,2),Ai=Math.abs(Mt[0])*oOe(At,k,It);if(De||Ai<=ui){var wi=this.textStates[U].textAlign,zi=(ui-Ai)*hK[wi],Ri=tSt(w,li,Ne,2,k,zi,He,Math.abs(Mt[0]),oOe,At,It,te?0:this.viewRotation_);e:if(Ri){var Ot=[],Kt=void 0,ri=void 0,ii=void 0,ci=void 0,Gi=void 0;if(B)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,"",B),P=Gi[2]+(Mt[0]<0?-St:St),A=Ze*ci.height+(.5-Ze)*2*St*Mt[1]/Mt[0]-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,qV,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}if(Y)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,Y,""),P=Gi[2],A=Ze*ci.height-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,qV,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}S&&S.load(Ot.map(iSt));for(var Ki=0,ar=Ot.length;Ki<ar;++Ki)this.replayImageOrLabel_.apply(this,Ot[Ki])}}++E;break;case Es.END_GEOMETRY:if(C!==void 0){ee=pe[1];var Ir=C(ee,ce);if(Ir)return Ir}++E;break;case Es.FILL:re?J++:this.fill_(f),++E;break;case Es.MOVE_TO_LINE_TO:for(I=pe[1],R=pe[2],ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(G!==M||D!==V)&&(f.moveTo(ae,oe),M=G,V=D),I+=2;I<R;I+=2)ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(I==R-2||G!==M||D!==V)&&(f.lineTo(ae,oe),M=G,V=D);++E;break;case Es.SET_FILL_STYLE:z=pe,this.alignFill_=pe[2],J&&(this.fill_(f),J=0,K&&(f.stroke(),K=0)),f.fillStyle=pe[1],++E;break;case Es.SET_STROKE_STYLE:j=pe,K&&(f.stroke(),K=0),this.setStrokeStyle_(f,pe),++E;break;case Es.STROKE:re?K++:f.stroke(),++E;break;default:++E;break}}J&&this.fill_(f),K&&f.stroke()},o.prototype.execute=function(f,m,x,y,v,C){this.viewRotation_=y,this.execute_(f,m,x,this.instructions,v,void 0,void 0,C)},o.prototype.executeHitDetection=function(f,m,x,y,v){return this.viewRotation_=x,this.execute_(f,1,m,this.hitDetectionInstructions,!0,y,v)},o}(),nSt=lor;var pOe=["Polygon","Circle","LineString","Image","Text","Default"],uor=function(){function o(f,m,x,y,v,C){this.maxExtent_=f,this.overlaps_=y,this.pixelRatio_=x,this.resolution_=m,this.renderBuffer_=C,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Ny(),this.createExecutors_(v)}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 y=f[m];for(var v in y){var C=y[v];x[v]=new nSt(this.resolution_,this.pixelRatio_,this.overlaps_,C)}}},o.prototype.hasExecutors=function(f){for(var m in this.executorsByZIndex_)for(var x=this.executorsByZIndex_[m],y=0,v=f.length;y<v;++y)if(f[y]in x)return!0;return!1},o.prototype.forEachFeatureAtCoordinate=function(f,m,x,y,v,C){y=Math.round(y);var T=y*2+1,S=d2(this.hitDetectionTransform_,y+.5,y+.5,1/m,-1/m,-x,-f[0],-f[1]),w=!this.hitDetectionContext_;w&&(this.hitDetectionContext_=Wf(T,T));var E=this.hitDetectionContext_;E.canvas.width!==T||E.canvas.height!==T?(E.canvas.width=T,E.canvas.height=T):w||E.clearRect(0,0,T,T);var L;this.renderBuffer_!==void 0&&(L=Zg(),cX(L,f),ZL(L,m*(this.renderBuffer_+y),L));var I=cor(y),R;function P(U,B){for(var Y=E.getImageData(0,0,T,T).data,J=0,K=I.length;J<K;J++)if(Y[I[J]]>0){if(!C||R!=="Image"&&R!=="Text"||C.indexOf(U)!==-1){var z=(I[J]-3)/4,j=y-z%T,q=y-(z/T|0),O=v(U,B,j*j+q*q);if(O)return O}E.clearRect(0,0,T,T);break}}var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(DL);var M,V,G,D,N;for(M=A.length-1;M>=0;--M){var k=A[M].toString();for(G=this.executorsByZIndex_[k],V=pOe.length-1;V>=0;--V)if(R=pOe[V],D=G[R],D!==void 0&&(N=D.executeHitDetection(E,S,x,P,L),N))return N}},o.prototype.getClipCoords=function(f){var m=this.maxExtent_;if(!m)return null;var x=m[0],y=m[1],v=m[2],C=m[3],T=[x,y,x,C,v,C,v,y];return Qb(T,0,8,2,f,T),T},o.prototype.isEmpty=function(){return NL(this.executorsByZIndex_)},o.prototype.execute=function(f,m,x,y,v,C,T){var S=Object.keys(this.executorsByZIndex_).map(Number);S.sort(DL),this.maxExtent_&&(f.save(),this.clip(f,x));var w=C||pOe,E,L,I,R,P,A;for(T&&S.reverse(),E=0,L=S.length;E<L;++E){var M=S[E].toString();for(P=this.executorsByZIndex_[M],I=0,R=w.length;I<R;++I){var V=w[I];A=P[V],A!==void 0&&A.execute(f,m,x,y,v,T)}}this.maxExtent_&&f.restore()},o}(),fOe={};function cor(o){if(fOe[o]!==void 0)return fOe[o];for(var f=o*2+1,m=o*o,x=new Array(m+1),y=0;y<=o;++y)for(var v=0;v<=o;++v){var C=y*y+v*v;if(C>m)break;var T=x[C];T||(T=[],x[C]=T),T.push(((o+y)*f+(o+v))*4+3),y>0&&T.push(((o-y)*f+(o+v))*4+3),v>0&&(T.push(((o+y)*f+(o-v))*4+3),y>0&&T.push(((o-y)*f+(o-v))*4+3))}for(var S=[],y=0,w=x.length;y<w;++y)x[y]&&S.push.apply(S,x[y]);return fOe[o]=S,S}var mOe=uor;we();we();we();var hor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),dor=function(o){hor(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 Us()},f.prototype.getData=function(m){return null},f.prototype.prepareFrame=function(m){return Us()},f.prototype.renderFrame=function(m,x){return Us()},f.prototype.loadedTileCallback=function(m,x,y){m[x]||(m[x]={}),m[x][y.tileCoord.toString()]=y},f.prototype.createLoadedTileFinder=function(m,x,y){return function(v,C){var T=this.loadedTileCallback.bind(this,y,v);return m.forEachLoadedTile(x,v,C,T)}.bind(this)},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){},f.prototype.getDataAtPixel=function(m,x,y){return null},f.prototype.getLayer=function(){return this.layer_},f.prototype.handleFontsChanged=function(){},f.prototype.handleImageChange_=function(m){var x=m.target;x.getState()===bh.LOADED&&this.renderIfReadyAndVisible()},f.prototype.loadImage=function(m){var x=m.getState();return x!=bh.LOADED&&x!=bh.ERROR&&m.addEventListener(wd.CHANGE,this.boundHandleImageChange_),x==bh.IDLE&&(m.load(),x=m.getState()),x==bh.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}(xfe),oSt=dor;we();var por=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),mor=function(o){por(f,o);function f(m,x,y,v){var C=o.call(this,m)||this;return C.inversePixelTransform=x,C.frameState=y,C.context=v,C}return f}(hw),aSt=mor;var xor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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 pK=null;function gor(){var o=document.createElement("canvas");o.width=1,o.height=1,pK=o.getContext("2d")}var yor=function(o){xor(f,o);function f(m){var x=o.call(this,m)||this;return x.container=null,x.renderedResolution,x.tempTransform=Ny(),x.pixelTransform=Ny(),x.inversePixelTransform=Ny(),x.context=null,x.containerReused=!1,x.pixelContext_=null,x.frameState=null,x}return f.prototype.getImageData=function(m,x,y){pK||gor(),pK.clearRect(0,0,1,1);var v;try{pK.drawImage(m,x,y,1,1,0,0,1,1),v=pK.getImageData(0,0,1,1).data}catch{return pK=null,null}return v},f.prototype.getBackground=function(m){var x=this.getLayer(),y=x.getBackground();return typeof y=="function"&&(y=y(m.viewState.resolution)),y||void 0},f.prototype.useContainer=function(m,x,y){var v=this.getLayer().getClassName(),C,T;if(m&&m.className===v&&(!y||m&&m.style.backgroundColor&&LR(xX(m.style.backgroundColor),xX(y)))){var S=m.firstElementChild;S instanceof HTMLCanvasElement&&(T=S.getContext("2d"))}if(T&&T.canvas.style.transform===x?(this.container=m,this.context=T,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){C=document.createElement("div"),C.className=v;var w=C.style;w.position="absolute",w.width="100%",w.height="100%",T=Wf();var S=T.canvas;C.appendChild(S),w=S.style,w.position="absolute",w.left="0",w.transformOrigin="top left",this.container=C,this.context=T}!this.containerReused&&y&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=y)},f.prototype.clipUnrotated=function(m,x,y){var v=jb(y),C=iK(y),T=tK(y),S=eK(y);Zf(x.coordinateToPixelTransform,v),Zf(x.coordinateToPixelTransform,C),Zf(x.coordinateToPixelTransform,T),Zf(x.coordinateToPixelTransform,S);var w=this.inversePixelTransform;Zf(w,v),Zf(w,C),Zf(w,T),Zf(w,S),m.save(),m.beginPath(),m.moveTo(Math.round(v[0]),Math.round(v[1])),m.lineTo(Math.round(C[0]),Math.round(C[1])),m.lineTo(Math.round(T[0]),Math.round(T[1])),m.lineTo(Math.round(S[0]),Math.round(S[1])),m.clip()},f.prototype.dispatchRenderEvent_=function(m,x,y){var v=this.getLayer();if(v.hasListener(m)){var C=new aSt(m,this.inversePixelTransform,y,x);v.dispatchEvent(C)}},f.prototype.preRender=function(m,x){this.frameState=x,this.dispatchRenderEvent_(Oee.PRERENDER,m,x)},f.prototype.postRender=function(m,x){this.dispatchRenderEvent_(Oee.POSTRENDER,m,x)},f.prototype.getRenderTransform=function(m,x,y,v,C,T,S){var w=C/2,E=T/2,L=v/x,I=-L,R=-m[0]+S,P=-m[1];return d2(this.tempTransform,w,E,L,I,-y,R,P)},f.prototype.getDataAtPixel=function(m,x,y){var v=Zf(this.inversePixelTransform,m.slice()),C=this.context,T=this.getLayer(),S=T.getExtent();if(S){var w=Zf(x.pixelToCoordinateTransform,m.slice());if(!IR(S,w))return null}var E=Math.round(v[0]),L=Math.round(v[1]),I=this.pixelContext_;if(!I){var R=document.createElement("canvas");R.width=1,R.height=1,I=R.getContext("2d"),this.pixelContext_=I}I.clearRect(0,0,1,1);var P;try{I.drawImage(C.canvas,E,L,1,1,0,0,1,1),P=I.getImageData(0,0,1,1).data}catch(A){return A.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}(oSt),sSt=yor;we();we();we();var _or=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),vor=function(o){_or(f,o);function f(m,x,y,v){var C=o.call(this)||this;return C.extent=m,C.pixelRatio_=y,C.resolution=x,C.state=v,C}return f.prototype.changed=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.getExtent=function(){return this.extent},f.prototype.getImage=function(){return Us()},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(){Us()},f}(PR),lSt=vor;var bor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),BDr=function(o){bor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,y,bh.IDLE)||this;return S.src_=v,S.image_=new Image,C!==null&&(S.image_.crossOrigin=C),S.unlisten_=null,S.state=bh.IDLE,S.imageLoadFunction_=T,S}return f.prototype.getImage=function(){return this.image_},f.prototype.handleImageError_=function(){this.state=bh.ERROR,this.unlistenImage_(),this.changed()},f.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=Fy(this.extent)/this.image_.height),this.state=bh.LOADED,this.unlistenImage_(),this.changed()},f.prototype.load=function(){(this.state==bh.IDLE||this.state==bh.ERROR)&&(this.state=bh.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.setImage=function(m){this.image_=m,this.resolution=Fy(this.extent)/this.image_.height},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(lSt);function Uee(o,f,m){var x=o,y=!0,v=!1,C=!1,T=[rK(x,wd.LOAD,function(){C=!0,v||f()})];return x.src&&z1t?(v=!0,x.decode().then(function(){y&&f()}).catch(function(S){y&&(C?f():m())})):T.push(rK(x,wd.ERROR,m)),function(){y=!1,T.forEach(Dy)}}var Cor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Tor=function(o){Cor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,T)||this;return S.crossOrigin_=v,S.src_=y,S.key=y,S.image_=new Image,v!==null&&(S.image_.crossOrigin=v),S.unlisten_=null,S.tileLoadFunction_=C,S}return f.prototype.getImage=function(){return this.image_},f.prototype.setImage=function(m){this.image_=m,this.state=Qo.LOADED,this.unlistenImage_(),this.changed()},f.prototype.handleImageError_=function(){this.state=Qo.ERROR,this.unlistenImage_(),this.image_=Sor(),this.changed()},f.prototype.handleImageLoad_=function(){var m=this.image_;m.naturalWidth&&m.naturalHeight?this.state=Qo.LOADED:this.state=Qo.EMPTY,this.unlistenImage_(),this.changed()},f.prototype.load=function(){this.state==Qo.ERROR&&(this.state=Qo.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Qo.IDLE&&(this.state=Qo.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(WD);function Sor(){var o=Wf(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var uSt=Tor;we();we();var cSt=.5;we();var wor=10,hSt=.25,Eor=function(){function o(f,m,x,y,v,C){this.sourceProj_=f,this.targetProj_=m;var T={},S=dX(this.targetProj_,this.sourceProj_);this.transformInv_=function(D){var N=D[0]+"/"+D[1];return T[N]||(T[N]=S(D)),T[N]},this.maxSourceExtent_=y,this.errorThresholdSquared_=v*v,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!y&&!!this.sourceProj_.getExtent()&&af(y)==af(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?af(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?af(this.targetProj_.getExtent()):null;var w=jb(x),E=iK(x),L=tK(x),I=eK(x),R=this.transformInv_(w),P=this.transformInv_(E),A=this.transformInv_(L),M=this.transformInv_(I),V=wor+(C?Math.max(0,Math.ceil(o1t(bee(x)/(C*C*256*256)))):0);if(this.addQuad_(w,E,L,I,R,P,A,M,V),this.wrapsXInSource_){var G=1/0;this.triangles_.forEach(function(D,N,k){G=Math.min(G,D.source[0][0],D.source[1][0],D.source[2][0])}),this.triangles_.forEach(function(D){if(Math.max(D.source[0][0],D.source[1][0],D.source[2][0])-G>this.sourceWorldWidth_/2){var N=[[D.source[0][0],D.source[0][1]],[D.source[1][0],D.source[1][1]],[D.source[2][0],D.source[2][1]]];N[0][0]-G>this.sourceWorldWidth_/2&&(N[0][0]-=this.sourceWorldWidth_),N[1][0]-G>this.sourceWorldWidth_/2&&(N[1][0]-=this.sourceWorldWidth_),N[2][0]-G>this.sourceWorldWidth_/2&&(N[2][0]-=this.sourceWorldWidth_);var k=Math.min(N[0][0],N[1][0],N[2][0]),U=Math.max(N[0][0],N[1][0],N[2][0]);U-k<this.sourceWorldWidth_/2&&(D.source=N)}}.bind(this))}T={}}return o.prototype.addTriangle_=function(f,m,x,y,v,C){this.triangles_.push({source:[y,v,C],target:[f,m,x]})},o.prototype.addQuad_=function(f,m,x,y,v,C,T,S,w){var E=_ee([v,C,T,S]),L=this.sourceWorldWidth_?af(E)/this.sourceWorldWidth_:null,I=this.sourceWorldWidth_,R=this.sourceProj_.canWrapX()&&L>.5&&L<1,P=!1;if(w>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var A=_ee([f,m,x,y]),M=af(A)/this.targetWorldWidth_;P=M>hSt||P}!R&&this.sourceProj_.isGlobal()&&L&&(P=L>hSt||P)}if(!(!P&&this.maxSourceExtent_&&isFinite(E[0])&&isFinite(E[1])&&isFinite(E[2])&&isFinite(E[3])&&!Ed(E,this.maxSourceExtent_))){var V=0;if(!P&&(!isFinite(v[0])||!isFinite(v[1])||!isFinite(C[0])||!isFinite(C[1])||!isFinite(T[0])||!isFinite(T[1])||!isFinite(S[0])||!isFinite(S[1]))){if(w>0)P=!0;else if(V=(!isFinite(v[0])||!isFinite(v[1])?8:0)+(!isFinite(C[0])||!isFinite(C[1])?4:0)+(!isFinite(T[0])||!isFinite(T[1])?2:0)+(!isFinite(S[0])||!isFinite(S[1])?1:0),V!=1&&V!=2&&V!=4&&V!=8)return}if(w>0){if(!P){var G=[(f[0]+x[0])/2,(f[1]+x[1])/2],D=this.transformInv_(G),N=void 0;if(R){var k=(QY(v[0],I)+QY(T[0],I))/2;N=k-QY(D[0],I)}else N=(v[0]+T[0])/2-D[0];var U=(v[1]+T[1])/2-D[1],B=N*N+U*U;P=B>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],J=this.transformInv_(Y),K=[(y[0]+f[0])/2,(y[1]+f[1])/2],z=this.transformInv_(K);this.addQuad_(f,m,Y,K,v,C,J,z,w-1),this.addQuad_(K,Y,x,y,z,J,T,S,w-1)}else{var j=[(f[0]+m[0])/2,(f[1]+m[1])/2],q=this.transformInv_(j),O=[(x[0]+y[0])/2,(x[1]+y[1])/2],te=this.transformInv_(O);this.addQuad_(f,j,O,y,v,q,te,S,w-1),this.addQuad_(j,m,x,O,q,C,T,te,w-1)}return}}if(R){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(V&11)==0&&this.addTriangle_(f,x,y,v,T,S),(V&14)==0&&this.addTriangle_(f,x,m,v,T,C),V&&((V&13)==0&&this.addTriangle_(m,y,f,C,S,v),(V&7)==0&&this.addTriangle_(m,y,x,C,S,T))}},o.prototype.calculateSourceExtent=function(){var f=Zg();return this.triangles_.forEach(function(m,x,y){var v=m.source;cX(f,v[0]),cX(f,v[1]),cX(f,v[2])}),f},o.prototype.getTriangles=function(){return this.triangles_},o}(),dSt=Eor;we();we();var Bee={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},pSt={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0};var xOe,yOe=[];function fSt(o,f,m,x,y){o.beginPath(),o.moveTo(0,0),o.lineTo(f,m),o.lineTo(x,y),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(f,x)+1,Math.max(m,y)),o.restore()}function gOe(o,f){return Math.abs(o[f*4]-210)>2||Math.abs(o[f*4+3]-.75*255)>2}function Lor(){if(xOe===void 0){var o=document.createElement("canvas").getContext("2d");o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",fSt(o,4,5,4,0),fSt(o,4,5,0,5);var f=o.getImageData(0,0,3,3).data;xOe=gOe(f,0)||gOe(f,4)||gOe(f,8)}return xOe}function mSt(o,f,m,x){var y=_fe(m,f,o),v=W9e(f,x,m),C=f.getMetersPerUnit();C!==void 0&&(v*=C);var T=o.getMetersPerUnit();T!==void 0&&(v/=T);var S=o.getExtent();if(!S||IR(S,y)){var w=W9e(o,v,y)/v;isFinite(w)&&w>0&&(v/=w)}return v}function xSt(o,f,m,x){var y=zV(m),v=mSt(o,f,y,x);return(!isFinite(v)||v<=0)&&hfe(m,function(C){return v=mSt(o,f,C,x),isFinite(v)&&v>0}),v}function gSt(o,f,m,x,y,v,C,T,S,w,E,L){var I=Wf(Math.round(m*o),Math.round(m*f),yOe);if(L||ox(I,Bee),S.length===0)return I.canvas;I.scale(m,m);function R(N){return Math.round(N*m)/m}I.globalCompositeOperation="lighter";var P=Zg();S.forEach(function(N,k,U){c1t(P,N.extent)});var A=af(P),M=Fy(P),V=Wf(Math.round(m*A/x),Math.round(m*M/x));L||ox(V,Bee);var G=m/x;S.forEach(function(N,k,U){var B=N.extent[0]-P[0],Y=-(N.extent[3]-P[3]),J=af(N.extent),K=Fy(N.extent);N.image.width>0&&N.image.height>0&&V.drawImage(N.image,w,w,N.image.width-2*w,N.image.height-2*w,B*G,Y*G,J*G,K*G)});var D=jb(C);return T.getTriangles().forEach(function(N,k,U){var B=N.source,Y=N.target,J=B[0][0],K=B[0][1],z=B[1][0],j=B[1][1],q=B[2][0],O=B[2][1],te=R((Y[0][0]-D[0])/v),ie=R(-(Y[0][1]-D[1])/v),re=R((Y[1][0]-D[0])/v),ee=R(-(Y[1][1]-D[1])/v),ae=R((Y[2][0]-D[0])/v),oe=R(-(Y[2][1]-D[1])/v),ce=J,pe=K;J=0,K=0,z-=ce,j-=pe,q-=ce,O-=pe;var ue=[[z,j,0,0,re-te],[q,O,0,0,ae-te],[0,0,z,j,ee-ie],[0,0,q,O,oe-ie]],he=s1t(ue);if(!!he){if(I.save(),I.beginPath(),Lor()||!L){I.moveTo(re,ee);for(var fe=4,de=te-re,Ce=ie-ee,Se=0;Se<fe;Se++)I.lineTo(re+R((Se+1)*de/fe),ee+R(Se*Ce/(fe-1))),Se!=fe-1&&I.lineTo(re+R((Se+1)*de/fe),ee+R((Se+1)*Ce/(fe-1)));I.lineTo(ae,oe)}else I.moveTo(re,ee),I.lineTo(te,ie),I.lineTo(ae,oe);I.clip(),I.transform(he[0],he[2],he[1],he[3],te,ie),I.translate(P[0]-ce,P[3]-pe),I.scale(x/m,-x/m),I.drawImage(V.canvas,0,0),I.restore()}}),E&&(I.save(),I.globalCompositeOperation="source-over",I.strokeStyle="black",I.lineWidth=1,T.getTriangles().forEach(function(N,k,U){var B=N.target,Y=(B[0][0]-D[0])/v,J=-(B[0][1]-D[1])/v,K=(B[1][0]-D[0])/v,z=-(B[1][1]-D[1])/v,j=(B[2][0]-D[0])/v,q=-(B[2][1]-D[1])/v;I.beginPath(),I.moveTo(K,z),I.lineTo(Y,J),I.lineTo(j,q),I.closePath(),I.stroke()}),I.restore()),I.canvas}var Por=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Ior=function(o){Por(f,o);function f(m,x,y,v,C,T,S,w,E,L,I,R){var P=o.call(this,C,Qo.IDLE,{interpolate:!!R})||this;P.renderEdges_=I!==void 0?I:!1,P.pixelRatio_=S,P.gutter_=w,P.canvas_=null,P.sourceTileGrid_=x,P.targetTileGrid_=v,P.wrappedTileCoord_=T||C,P.sourceTiles_=[],P.sourcesListenerKeys_=null,P.sourceZ_=0;var A=v.getTileCoordExtent(P.wrappedTileCoord_),M=P.targetTileGrid_.getExtent(),V=P.sourceTileGrid_.getExtent(),G=M?RR(A,M):A;if(bee(G)===0)return P.state=Qo.EMPTY,P;var D=m.getExtent();D&&(V?V=RR(V,D):V=D);var N=v.getResolution(P.wrappedTileCoord_[0]),k=xSt(m,y,G,N);if(!isFinite(k)||k<=0)return P.state=Qo.EMPTY,P;var U=L!==void 0?L:cSt;if(P.triangulation_=new dSt(m,y,G,V,k*U,N),P.triangulation_.getTriangles().length===0)return P.state=Qo.EMPTY,P;P.sourceZ_=x.getZForResolution(k);var B=P.triangulation_.calculateSourceExtent();if(V&&(m.canWrapX()?(B[1]=Mv(B[1],V[1],V[3]),B[3]=Mv(B[3],V[1],V[3])):B=RR(B,V)),!bee(B))P.state=Qo.EMPTY;else{for(var Y=x.getTileRangeForExtentAndZ(B,P.sourceZ_),J=Y.minX;J<=Y.maxX;J++)for(var K=Y.minY;K<=Y.maxY;K++){var z=E(P.sourceZ_,J,K,S);z&&P.sourceTiles_.push(z)}P.sourceTiles_.length===0&&(P.state=Qo.EMPTY)}return P}return f.prototype.getImage=function(){return this.canvas_},f.prototype.reproject_=function(){var m=[];if(this.sourceTiles_.forEach(function(E,L,I){E&&E.getState()==Qo.LOADED&&m.push({extent:this.sourceTileGrid_.getTileCoordExtent(E.tileCoord),image:E.getImage()})}.bind(this)),this.sourceTiles_.length=0,m.length===0)this.state=Qo.ERROR;else{var x=this.wrappedTileCoord_[0],y=this.targetTileGrid_.getTileSize(x),v=typeof y=="number"?y:y[0],C=typeof y=="number"?y:y[1],T=this.targetTileGrid_.getResolution(x),S=this.sourceTileGrid_.getResolution(this.sourceZ_),w=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=gSt(v,C,this.pixelRatio_,S,this.sourceTileGrid_.getExtent(),T,w,this.triangulation_,m,this.gutter_,this.renderEdges_,this.interpolate),this.state=Qo.LOADED}this.changed()},f.prototype.load=function(){if(this.state==Qo.IDLE){this.state=Qo.LOADING,this.changed();var m=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();if(C==Qo.IDLE||C==Qo.LOADING){m++;var T=Vv(x,wd.CHANGE,function(S){var w=x.getState();(w==Qo.LOADED||w==Qo.ERROR||w==Qo.EMPTY)&&(Dy(T),m--,m===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(T)}}.bind(this)),m===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();C==Qo.IDLE&&x.load()})}},f.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Dy),this.sourcesListenerKeys_=null},f.prototype.release=function(){this.canvas_&&(Tfe(this.canvas_.getContext("2d")),yOe.push(this.canvas_),this.canvas_=null),o.prototype.release.call(this)},f}(WD),ySt=Ior;var Ror=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Aor=function(o){Ror(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=Zg(),x.tmpTileRange_=new nfe(0,0,0,0),x}return f.prototype.isDrawableTile=function(m){var x=this.getLayer(),y=m.getState(),v=x.getUseInterimTilesOnError();return y==Qo.LOADED||y==Qo.EMPTY||y==Qo.ERROR&&!v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState.projection,S=this.getLayer(),w=S.getSource(),E=w.getTile(m,x,y,C,T);return E.getState()==Qo.ERROR&&(S.getUseInterimTilesOnError()?S.getPreload()>0&&(this.newTiles_=!0):E.setState(Qo.LOADED)),this.isDrawableTile(E)||(E=E.getInterimTile()),E},f.prototype.getData=function(m){var x=this.frameState;if(!x)return null;var y=this.getLayer(),v=Zf(x.pixelToCoordinateTransform,m.slice()),C=y.getExtent();if(C&&!IR(C,v))return null;for(var T=x.pixelRatio,S=x.viewState.projection,w=x.viewState,E=y.getRenderSource(),L=E.getTileGridForProjection(w.projection),I=E.getTilePixelRatio(x.pixelRatio),R=L.getZForResolution(w.resolution);R>=L.getMinZoom();--R){var P=L.getTileCoordForCoordAndZ(v,R),A=E.getTile(R,P[1],P[2],T,S);if(!(A instanceof uSt||A instanceof ySt))return null;if(A.getState()===Qo.LOADED){var M=L.getOrigin(R),V=sf(L.getTileSize(R)),G=L.getResolution(R),D=Math.floor(I*((v[0]-M[0])/G-P[1]*V[0])),N=Math.floor(I*((M[1]-v[1])/G-P[2]*V[1])),k=Math.round(I*E.getGutterForProjection(w.projection));return this.getImageData(A.getImage(),D+k,N+k)}}return null},f.prototype.loadedTileCallback=function(m,x,y){return this.isDrawableTile(y)?o.prototype.loadedTileCallback.call(this,m,x,y):!1},f.prototype.prepareFrame=function(m){return!!this.getLayer().getSource()},f.prototype.renderFrame=function(m,x){var y=m.layerStatesArray[m.layerIndex],v=m.viewState,C=v.projection,T=v.resolution,S=v.center,w=v.rotation,E=m.pixelRatio,L=this.getLayer(),I=L.getSource(),R=I.getRevision(),P=I.getTileGridForProjection(C),A=P.getZForResolution(T,I.zDirection),M=P.getResolution(A),V=m.extent,G=m.viewState.resolution,D=I.getTilePixelRatio(E),N=Math.round(af(V)/G*E),k=Math.round(Fy(V)/G*E),U=y.extent&&vfe(y.extent,C);U&&(V=RR(V,vfe(y.extent,C)));var B=M*N/2/D,Y=M*k/2/D,J=[S[0]-B,S[1]-Y,S[0]+B,S[1]+Y],K=P.getTileRangeForExtentAndZ(V,A),z={};z[A]={};var j=this.createLoadedTileFinder(I,C,z),q=this.tmpExtent,O=this.tmpTileRange_;this.newTiles_=!1;for(var te=w?R9e(v.center,G,w,m.size):void 0,ie=K.minX;ie<=K.maxX;++ie)for(var re=K.minY;re<=K.maxY;++re)if(!(w&&!P.tileCoordIntersectsViewport([A,ie,re],te))){var ee=this.getTile(A,ie,re,m);if(this.isDrawableTile(ee)){var ae=mu(this);if(ee.getState()==Qo.LOADED){z[A][ee.tileCoord.toString()]=ee;var oe=ee.inTransition(ae);oe&&y.opacity!==1&&(ee.endTransition(ae),oe=!1),!this.newTiles_&&(oe||this.renderedTiles.indexOf(ee)===-1)&&(this.newTiles_=!0)}if(ee.getAlpha(ae,m.time)===1)continue}var ce=P.getTileCoordChildTileRange(ee.tileCoord,O,q),pe=!1;ce&&(pe=j(A+1,ce)),pe||P.forEachTileCoordParentTileRange(ee.tileCoord,j,O,q)}var ue=M/T*E/D;d2(this.pixelTransform,m.size[0]/2,m.size[1]/2,1/E,1/E,w,-N/2,-k/2);var he=rTt(this.pixelTransform);this.useContainer(x,he,this.getBackground(m));var fe=this.context,de=fe.canvas;iTt(this.inversePixelTransform,this.pixelTransform),d2(this.tempTransform,N/2,k/2,ue,ue,0,-N/2,-k/2),de.width!=N||de.height!=k?(de.width=N,de.height=k):this.containerReused||fe.clearRect(0,0,N,k),U&&this.clipUnrotated(fe,m,U),I.getInterpolate()||ox(fe,Bee),this.preRender(fe,m),this.renderedTiles.length=0;var Ce=Object.keys(z).map(Number);Ce.sort(DL);var Se,Le,Ve;y.opacity===1&&(!this.containerReused||I.getOpaque(m.viewState.projection))?Ce=Ce.reverse():(Se=[],Le=[]);for(var Oe=Ce.length-1;Oe>=0;--Oe){var $e=Ce[Oe],at=I.getTilePixelSize($e,E,C),dt=P.getResolution($e),gt=dt/M,Et=at[0]*gt*ue,et=at[1]*gt*ue,yt=P.getTileCoordForCoordAndZ(jb(J),$e),Rt=P.getTileCoordExtent(yt),Vt=Zf(this.tempTransform,[D*(Rt[0]-J[0])/M,D*(J[3]-Rt[3])/M]),_t=D*I.getGutterForProjection(C),se=z[$e];for(var ve in se){var ee=se[ve],je=ee.tileCoord,Ft=yt[1]-je[1],kt=Math.round(Vt[0]-(Ft-1)*Et),bt=yt[2]-je[2],lt=Math.round(Vt[1]-(bt-1)*et),ie=Math.round(Vt[0]-Ft*Et),re=Math.round(Vt[1]-bt*et),ot=kt-ie,tt=lt-re,ze=A===$e,oe=ze&&ee.getAlpha(mu(this),m.time)!==1,ct=!1;if(!oe)if(Se){Ve=[ie,re,ie+ot,re,ie+ot,re+tt,ie,re+tt];for(var Wt=0,Tt=Se.length;Wt<Tt;++Wt)if(A!==$e&&$e<Le[Wt]){var Ht=Se[Wt];Ed([ie,re,ie+ot,re+tt],[Ht[0],Ht[3],Ht[4],Ht[7]])&&(ct||(fe.save(),ct=!0),fe.beginPath(),fe.moveTo(Ve[0],Ve[1]),fe.lineTo(Ve[2],Ve[3]),fe.lineTo(Ve[4],Ve[5]),fe.lineTo(Ve[6],Ve[7]),fe.moveTo(Ht[6],Ht[7]),fe.lineTo(Ht[4],Ht[5]),fe.lineTo(Ht[2],Ht[3]),fe.lineTo(Ht[0],Ht[1]),fe.clip())}Se.push(Ve),Le.push($e)}else fe.clearRect(ie,re,ot,tt);this.drawTileImage(ee,m,ie,re,ot,tt,_t,ze),Se&&!oe?(ct&&fe.restore(),this.renderedTiles.unshift(ee)):this.renderedTiles.push(ee),this.updateUsedTiles(m.usedTiles,I,ee)}}return this.renderedRevision=R,this.renderedResolution=M,this.extentChanged=!this.renderedExtent_||!OD(this.renderedExtent_,J),this.renderedExtent_=J,this.renderedPixelRatio=E,this.renderedProjection=C,this.manageTilePyramid(m,I,P,E,C,V,A,L.getPreload()),this.scheduleExpireCache(m,I),this.postRender(fe,m),y.extent&&fe.restore(),ox(fe,pSt),he!==de.style.transform&&(de.style.transform=he),this.container},f.prototype.drawTileImage=function(m,x,y,v,C,T,S,w){var E=this.getTileImage(m);if(!!E){var L=mu(this),I=x.layerStatesArray[x.layerIndex],R=I.opacity*(w?m.getAlpha(L,x.time):1),P=R!==this.context.globalAlpha;P&&(this.context.save(),this.context.globalAlpha=R),this.context.drawImage(E,S,S,E.width-2*S,E.height-2*S,y,v,C,T),P&&this.context.restore(),R!==I.opacity?x.animate=!0:w&&m.endTransition(L)}},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 y=function(v,C,T){var S=mu(v);S in T.usedTiles&&v.expireCache(T.viewState.projection,T.usedTiles[S])}.bind(null,x);m.postRenderFunctions.push(y)}},f.prototype.updateUsedTiles=function(m,x,y){var v=mu(x);v in m||(m[v]={}),m[v][y.getKey()]=!0},f.prototype.manageTilePyramid=function(m,x,y,v,C,T,S,w,E){var L=mu(x);L in m.wantedTiles||(m.wantedTiles[L]={});var I=m.wantedTiles[L],R=m.tileQueue,P=y.getMinZoom(),A=m.viewState.rotation,M=A?R9e(m.viewState.center,m.viewState.resolution,A,m.size):void 0,V=0,G,D,N,k,U,B;for(B=P;B<=S;++B)for(D=y.getTileRangeForExtentAndZ(T,B,D),N=y.getResolution(B),k=D.minX;k<=D.maxX;++k)for(U=D.minY;U<=D.maxY;++U)A&&!y.tileCoordIntersectsViewport([B,k,U],M)||(S-B<=w?(++V,G=x.getTile(B,k,U,v,C),G.getState()==Qo.IDLE&&(I[G.getKey()]=!0,R.isKeyQueued(G.getKey())||R.enqueue([G,L,y.getTileCoordCenter(G.tileCoord),N])),E!==void 0&&E(G)):x.useTile(B,k,U,C));x.updateCacheSize(V,C)},f}(sSt),_St=Aor;we();var FR={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};we();var vX={ANIMATING:0,INTERACTING:1};we();we();var Mor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Vor=function(o){Mor(f,o);function f(m,x,y,v,C,T,S){var w=o.call(this)||this;return w.context_=m,w.pixelRatio_=x,w.extent_=y,w.transform_=v,w.viewRotation_=C,w.squaredTolerance_=T,w.userTransform_=S,w.contextFillState_=null,w.contextStrokeState_=null,w.contextTextState_=null,w.fillState_=null,w.strokeState_=null,w.image_=null,w.imageAnchorX_=0,w.imageAnchorY_=0,w.imageHeight_=0,w.imageOpacity_=0,w.imageOriginX_=0,w.imageOriginY_=0,w.imageRotateWithView_=!1,w.imageRotation_=0,w.imageScale_=[0,0],w.imageWidth_=0,w.text_="",w.textOffsetX_=0,w.textOffsetY_=0,w.textRotateWithView_=!1,w.textRotation_=0,w.textScale_=[0,0],w.textFillState_=null,w.textStrokeState_=null,w.textState_=null,w.pixelCoordinates_=[],w.tmpLocalTransform_=Ny(),w}return f.prototype.drawImages_=function(m,x,y,v){if(!!this.image_){var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.tmpLocalTransform_,w=T.globalAlpha;this.imageOpacity_!=1&&(T.globalAlpha=w*this.imageOpacity_);var E=this.imageRotation_;this.imageRotateWithView_&&(E+=this.viewRotation_);for(var L=0,I=C.length;L<I;L+=2){var R=C[L]-this.imageAnchorX_,P=C[L+1]-this.imageAnchorY_;if(E!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){var A=R+this.imageAnchorX_,M=P+this.imageAnchorY_;d2(S,A,M,1,1,E,-A,-M),T.setTransform.apply(T,S),T.translate(A,M),T.scale(this.imageScale_[0],this.imageScale_[1]),T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),T.setTransform(1,0,0,1,0,0)}else T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,R,P,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(T.globalAlpha=w)}},f.prototype.drawText_=function(m,x,y,v){if(!(!this.textState_||this.text_==="")){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.textRotation_;for(this.textRotateWithView_&&(S+=this.viewRotation_);x<y;x+=v){var w=C[x]+this.textOffsetX_,E=C[x+1]+this.textOffsetY_;if(S!==0||this.textScale_[0]!=1||this.textScale_[1]!=1){var L=d2(this.tmpLocalTransform_,w,E,1,1,S,-w,-E);T.setTransform.apply(T,L),T.translate(w,E),T.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&T.strokeText(this.text_,0,0),this.textFillState_&&T.fillText(this.text_,0,0),T.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&T.strokeText(this.text_,w,E),this.textFillState_&&T.fillText(this.text_,w,E)}}},f.prototype.moveToLineTo_=function(m,x,y,v,C){var T=this.context_,S=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_);T.moveTo(S[0],S[1]);var w=S.length;C&&(w-=2);for(var E=2;E<w;E+=2)T.lineTo(S[E],S[E+1]);return C&&T.closePath(),y},f.prototype.drawRings_=function(m,x,y,v){for(var C=0,T=y.length;C<T;++C)x=this.moveToLineTo_(m,x,y[C],v,!0);return x},f.prototype.drawCircle=function(m){if(!!Ed(this.extent_,m.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=uTt(m,this.transform_,this.pixelCoordinates_),y=x[2]-x[0],v=x[3]-x[1],C=Math.sqrt(y*y+v*v),T=this.context_;T.beginPath(),T.arc(x[0],x[1],C,0,2*Math.PI),this.fillState_&&T.fill(),this.strokeState_&&T.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 y=x.getGeometryFunction()(m);!y||!Ed(this.extent_,y.getExtent())||(this.setStyle(x),this.drawGeometry(y))},f.prototype.drawGeometryCollection=function(m){for(var x=m.getGeometriesArray(),y=0,v=x.length;y<v;++y)this.drawGeometry(x[y])},f.prototype.drawPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawMultiPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawLineString=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var x=this.context_,y=m.getFlatCoordinates();x.beginPath(),this.moveToLineTo_(y,0,y.length,m.getStride(),!1),x.stroke()}if(this.text_!==""){var v=m.getFlatMidpoint();this.drawText_(v,0,2,2)}}},f.prototype.drawMultiLineString=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getExtent();if(!!Ed(this.extent_,x)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var y=this.context_,v=m.getFlatCoordinates(),C=0,T=m.getEnds(),S=m.getStride();y.beginPath();for(var w=0,E=T.length;w<E;++w)C=this.moveToLineTo_(v,C,T[w],S,!1);y.stroke()}if(this.text_!==""){var L=m.getFlatMidpoints();this.drawText_(L,0,L.length,2)}}},f.prototype.drawPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(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 y=m.getFlatInteriorPoint();this.drawText_(y,0,2,2)}}},f.prototype.drawMultiPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(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_,y=m.getOrientedFlatCoordinates(),v=0,C=m.getEndss(),T=m.getStride();x.beginPath();for(var S=0,w=C.length;S<w;++S){var E=C[S];v=this.drawRings_(y,v,E,T)}this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var L=m.getFlatInteriorPoints();this.drawText_(L,0,L.length,2)}}},f.prototype.setContextFillState_=function(m){var x=this.context_,y=this.contextFillState_;y?y.fillStyle!=m.fillStyle&&(y.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_,y=this.contextStrokeState_;y?(y.lineCap!=m.lineCap&&(y.lineCap=m.lineCap,x.lineCap=m.lineCap),x.setLineDash&&(LR(y.lineDash,m.lineDash)||x.setLineDash(y.lineDash=m.lineDash),y.lineDashOffset!=m.lineDashOffset&&(y.lineDashOffset=m.lineDashOffset,x.lineDashOffset=m.lineDashOffset)),y.lineJoin!=m.lineJoin&&(y.lineJoin=m.lineJoin,x.lineJoin=m.lineJoin),y.lineWidth!=m.lineWidth&&(y.lineWidth=m.lineWidth,x.lineWidth=m.lineWidth),y.miterLimit!=m.miterLimit&&(y.miterLimit=m.miterLimit,x.miterLimit=m.miterLimit),y.strokeStyle!=m.strokeStyle&&(y.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_,y=this.contextTextState_,v=m.textAlign?m.textAlign:jD;y?(y.font!=m.font&&(y.font=m.font,x.font=m.font),y.textAlign!=v&&(y.textAlign=v,x.textAlign=v),y.textBaseline!=m.textBaseline&&(y.textBaseline=m.textBaseline,x.textBaseline=m.textBaseline)):(x.font=m.font,x.textAlign=v,x.textBaseline=m.textBaseline,this.contextTextState_={font:m.font,textAlign:v,textBaseline:m.textBaseline})},f.prototype.setFillStrokeStyle=function(m,x){var y=this;if(!m)this.fillState_=null;else{var v=m.getColor();this.fillState_={fillStyle:$b(v||eC)}}if(!x)this.strokeState_=null;else{var C=x.getColor(),T=x.getLineCap(),S=x.getLineDash(),w=x.getLineDashOffset(),E=x.getLineJoin(),L=x.getWidth(),I=x.getMiterLimit(),R=S||KV;this.strokeState_={lineCap:T!==void 0?T:gX,lineDash:this.pixelRatio_===1?R:R.map(function(P){return P*y.pixelRatio_}),lineDashOffset:(w||JV)*this.pixelRatio_,lineJoin:E!==void 0?E:MR,lineWidth:(L!==void 0?L:$V)*this.pixelRatio_,miterLimit:I!==void 0?I:jV,strokeStyle:$b(C||QV)}}},f.prototype.setImageStyle=function(m){var x;if(!m||!(x=m.getSize())){this.image_=null;return}var y=m.getAnchor(),v=m.getOrigin();this.image_=m.getImage(this.pixelRatio_),this.imageAnchorX_=y[0]*this.pixelRatio_,this.imageAnchorY_=y[1]*this.pixelRatio_,this.imageHeight_=x[1]*this.pixelRatio_,this.imageOpacity_=m.getOpacity(),this.imageOriginX_=v[0],this.imageOriginY_=v[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 y=x.getColor();this.textFillState_={fillStyle:$b(y||eC)}}var v=m.getStroke();if(!v)this.textStrokeState_=null;else{var C=v.getColor(),T=v.getLineCap(),S=v.getLineDash(),w=v.getLineDashOffset(),E=v.getLineJoin(),L=v.getWidth(),I=v.getMiterLimit();this.textStrokeState_={lineCap:T!==void 0?T:gX,lineDash:S||KV,lineDashOffset:w||JV,lineJoin:E!==void 0?E:MR,lineWidth:L!==void 0?L:$V,miterLimit:I!==void 0?I:jV,strokeStyle:$b(C||QV)}}var R=m.getFont(),P=m.getOffsetX(),A=m.getOffsetY(),M=m.getRotateWithView(),V=m.getRotation(),G=m.getScaleArray(),D=m.getText(),N=m.getTextAlign(),k=m.getTextBaseline();this.textState_={font:R!==void 0?R:Nfe,textAlign:N!==void 0?N:jD,textBaseline:k!==void 0?k:yX},this.text_=D!==void 0?Array.isArray(D)?D.reduce(function(U,B,Y){return U+=Y%2?" ":B},""):D:"",this.textOffsetX_=P!==void 0?this.pixelRatio_*P:0,this.textOffsetY_=A!==void 0?this.pixelRatio_*A:0,this.textRotateWithView_=M!==void 0?M:!1,this.textRotation_=V!==void 0?V:0,this.textScale_=[this.pixelRatio_*G[0],this.pixelRatio_*G[1]]}},f}(Zfe),vSt=Vor;we();var DR={FRACTION:"fraction",PIXELS:"pixels"};we();we();we();var J1={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};we();we();var Gor=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 y=bSt(f,m,x);return y in this.cache_?this.cache_[y]:null},o.prototype.set=function(f,m,x,y){var v=bSt(f,m,x);this.cache_[v]=y,++this.cacheSize_},o.prototype.setSize=function(f){this.maxCacheSize_=f,this.expire()},o}();function bSt(o,f,m){var x=m?Ffe(m):"null";return f+":"+o+":"+x}var _Oe=new Gor;var For=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Hee=null,Dor=function(o){For(f,o);function f(m,x,y,v,C,T){var S=o.call(this)||this;return S.hitDetectionImage_=null,S.image_=m||new Image,v!==null&&(S.image_.crossOrigin=v),S.canvas_={},S.color_=T,S.unlisten_=null,S.imageState_=C,S.size_=y,S.src_=x,S.tainted_,S}return f.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===bh.LOADED){Hee||(Hee=Wf(1,1)),Hee.drawImage(this.image_,0,0);try{Hee.getImageData(0,0,1,1),this.tainted_=!1}catch{Hee=null,this.tainted_=!0}}return this.tainted_===!0},f.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.handleImageError_=function(){this.imageState_=bh.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.handleImageLoad_=function(){this.imageState_=bh.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],y=Wf(m,x);y.fillRect(0,0,m,x),this.hitDetectionImage_=y.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_==bh.IDLE){this.imageState_=bh.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},f.prototype.replaceColor_=function(m){if(!(!this.color_||this.canvas_[m]||this.imageState_!==bh.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 y=x.getContext("2d");if(y.scale(m,m),y.drawImage(this.image_,0,0),y.globalCompositeOperation="multiply",y.globalCompositeOperation==="multiply"||this.isTainted_())y.fillStyle=Ffe(this.color_),y.fillRect(0,0,x.width/m,x.height/m),y.globalCompositeOperation="destination-in",y.drawImage(this.image_,0,0);else{for(var v=y.getImageData(0,0,x.width,x.height),C=v.data,T=this.color_[0]/255,S=this.color_[1]/255,w=this.color_[2]/255,E=this.color_[3],L=0,I=C.length;L<I;L+=4)C[L]*=T,C[L+1]*=S,C[L+2]*=w,C[L+3]*=E;y.putImageData(v,0,0)}}},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(PR);function CSt(o,f,m,x,y,v){var C=_Oe.get(f,x,v);return C||(C=new Dor(o,f,m,x,y,v),_Oe.set(f,x,v,C)),C}var Nor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Wor=function(o){Nor(f,o);function f(m){var x=this,y=m||{},v=y.opacity!==void 0?y.opacity:1,C=y.rotation!==void 0?y.rotation:0,T=y.scale!==void 0?y.scale:1,S=y.rotateWithView!==void 0?y.rotateWithView:!1;x=o.call(this,{opacity:v,rotation:C,scale:T,displacement:y.displacement!==void 0?y.displacement:[0,0],rotateWithView:S,declutterMode:y.declutterMode})||this,x.anchor_=y.anchor!==void 0?y.anchor:[.5,.5],x.normalizedAnchor_=null,x.anchorOrigin_=y.anchorOrigin!==void 0?y.anchorOrigin:J1.TOP_LEFT,x.anchorXUnits_=y.anchorXUnits!==void 0?y.anchorXUnits:DR.FRACTION,x.anchorYUnits_=y.anchorYUnits!==void 0?y.anchorYUnits:DR.FRACTION,x.crossOrigin_=y.crossOrigin!==void 0?y.crossOrigin:null;var w=y.img!==void 0?y.img:null;x.imgSize_=y.imgSize;var E=y.src;Su(!(E!==void 0&&w),4),Su(!w||w&&x.imgSize_,5),(E===void 0||E.length===0)&&w&&(E=w.src||mu(w)),Su(E!==void 0&&E.length>0,6);var L=y.src!==void 0?bh.IDLE:bh.LOADED;return x.color_=y.color!==void 0?xX(y.color):null,x.iconImage_=CSt(w,E,x.imgSize_!==void 0?x.imgSize_:null,x.crossOrigin_,L,x.color_),x.offset_=y.offset!==void 0?y.offset:[0,0],x.offsetOrigin_=y.offsetOrigin!==void 0?y.offsetOrigin:J1.TOP_LEFT,x.origin_=null,x.size_=y.size!==void 0?y.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_==DR.FRACTION||this.anchorYUnits_==DR.FRACTION){if(!x)return null;m=this.anchor_.slice(),this.anchorXUnits_==DR.FRACTION&&(m[0]*=x[0]),this.anchorYUnits_==DR.FRACTION&&(m[1]*=x[1])}if(this.anchorOrigin_!=J1.TOP_LEFT){if(!x)return null;m===this.anchor_&&(m=this.anchor_.slice()),(this.anchorOrigin_==J1.TOP_RIGHT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=-m[0]+x[0]),(this.anchorOrigin_==J1.BOTTOM_LEFT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=-m[1]+x[1])}this.normalizedAnchor_=m}var y=this.getDisplacement();return[m[0]-y[0],m[1]+y[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_!=J1.TOP_LEFT){var x=this.getSize(),y=this.iconImage_.getSize();if(!x||!y)return null;m=m.slice(),(this.offsetOrigin_==J1.TOP_RIGHT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=y[0]-x[0]-m[0]),(this.offsetOrigin_==J1.BOTTOM_LEFT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=y[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(wd.CHANGE,m)},f.prototype.load=function(){this.iconImage_.load()},f.prototype.unlistenImageChange=function(m){this.iconImage_.removeEventListener(wd.CHANGE,m)},f}(Gfe),vOe=Wor;var r3=.5;function TSt(o,f,m,x,y,v,C){var T=o[0]*r3,S=o[1]*r3,w=Wf(T,S);w.imageSmoothingEnabled=!1;for(var E=w.canvas,L=new vSt(w,r3,y,null,C),I=m.length,R=Math.floor((256*256*256-1)/I),P={},A=1;A<=I;++A){var M=m[A-1],V=M.getStyleFunction()||x;if(!!x){var G=V(M,v);if(!!G){Array.isArray(G)||(G=[G]);for(var D=A*R,N="#"+("000000"+D.toString(16)).slice(-6),k=0,U=G.length;k<U;++k){var B=G[k],Y=B.getGeometryFunction()(M);if(!(!Y||!Ed(y,Y.getExtent()))){var J=B.clone(),K=J.getFill();K&&K.setColor(N);var z=J.getStroke();z&&(z.setColor(N),z.setLineDash(null)),J.setText(void 0);var j=B.getImage();if(j&&j.getOpacity()!==0){var q=j.getImageSize();if(!q)continue;var O=Wf(q[0],q[1],void 0,{alpha:!1}),te=O.canvas;O.fillStyle=N,O.fillRect(0,0,te.width,te.height),J.setImage(new vOe({img:te,imgSize:q,anchor:j.getAnchor(),anchorXUnits:DR.PIXELS,anchorYUnits:DR.PIXELS,offset:j.getOrigin(),opacity:1,size:j.getSize(),scale:j.getScale(),rotation:j.getRotation(),rotateWithView:j.getRotateWithView()}))}var ie=J.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,J)}}}}}for(var ee=Object.keys(P).map(Number).sort(DL),A=0,ae=ee.length;A<ae;++A){var re=P[ee[A]];for(var oe in re)for(var ce=re[oe],k=0,U=ce.length;k<U;k+=2){L.setStyle(ce[k+1]);for(var pe=0,ue=f.length;pe<ue;++pe)L.setTransform(f[pe]),L.drawGeometry(ce[k])}}return w.getImageData(0,0,E.width,E.height)}function SSt(o,f,m){var x=[];if(m){var y=Math.floor(Math.round(o[0])*r3),v=Math.floor(Math.round(o[1])*r3),C=(Mv(y,0,m.width-1)+Mv(v,0,m.height-1)*m.width)*4,T=m.data[C],S=m.data[C+1],w=m.data[C+2],E=w+256*(S+256*T),L=Math.floor((256*256*256-1)/f.length);E&&E%L===0&&x.push(f[E/L-1])}return x}we();var Zor=.5,wSt={Point:Yor,LineString:Bor,Polygon:Jor,MultiPoint:Kor,MultiLineString:Hor,MultiPolygon:zor,GeometryCollection:Uor,Circle:Xor};function ESt(o,f){var m=Oor(o,f);return m*m}function Oor(o,f){return Zor*o/f}function Xor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Circle");T.setFillStrokeStyle(v,C),T.drawCircle(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function bOe(o,f,m,x,y,v,C){var T=!1,S=m.getImage();if(S){var w=S.getImageState();w==bh.LOADED||w==bh.ERROR?S.unlistenImageChange(y):(w==bh.IDLE&&S.load(),S.listenImageChange(y),T=!0)}return kor(o,f,m,x,v,C),T}function kor(o,f,m,x,y,v){var C=m.getGeometryFunction()(f);if(!!C){var T=C.simplifyTransformed(x,y),S=m.getRenderer();if(S)LSt(o,T,m,f);else{var w=wSt[T.getType()];w(o,T,m,f,v)}}}function LSt(o,f,m,x){if(f.getType()=="GeometryCollection"){for(var y=f.getGeometries(),v=0,C=y.length;v<C;++v)LSt(o,y[v],m,x);return}var T=o.getBuilder(m.getZIndex(),"Default");T.drawCustom(f,x,m.getRenderer(),m.getHitDetectionRenderer())}function Uor(o,f,m,x,y){var v=f.getGeometriesArray(),C,T;for(C=0,T=v.length;C<T;++C){var S=wSt[v[C].getType()];S(o,v[C],m,x,y)}}function Bor(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function Hor(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawMultiLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function zor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(C||v){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawMultiPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function Yor(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function Kor(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawMultiPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawMultiPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function Jor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}var jor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),Qor={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},qor={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},$or=function(o){jor(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_=Ny(),x}return f.prototype.prepareTile=function(m,x,y){var v,C=m.getState();return(C===Qo.LOADED||C===Qo.ERROR)&&(this.updateExecutorGroup_(m,x,y),this.tileImageNeedsRender_(m)&&(v=!0)),v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState,S=T.resolution,w=T.projection,E=this.getLayer(),L=E.getSource().getTile(m,x,y,C,w),I=v.viewHints,R=!(I[vX.ANIMATING]||I[vX.INTERACTING]);(R||!L.wantedResolution)&&(L.wantedResolution=S);var P=this.prepareTile(L,C,w);return P&&(R||Date.now()-v.time<8)&&E.getRenderMode()!==FR.VECTOR&&this.renderTileImage_(L,v),o.prototype.getTile.call(this,m,x,y,v)},f.prototype.isDrawableTile=function(m){var x=this.getLayer();return o.prototype.isDrawableTile.call(this,m)&&(x.getRenderMode()===FR.VECTOR?mu(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,y){var v=this.getLayer(),C=v.getRevision(),T=v.getRenderOrder()||null,S=m.wantedResolution,w=m.getReplayState(v);if(!(!w.dirty&&w.renderedResolution===S&&w.renderedRevision==C&&w.renderedRenderOrder==T)){var E=v.getSource(),L=v.getDeclutter(),I=E.getTileGrid(),R=E.getTileGridForProjection(y),P=R.getTileCoordExtent(m.wrappedTileCoord),A=E.getSourceTiles(x,y,m),M=mu(v);delete m.hitDetectionImageData[M],m.executorGroups[M]=[],L&&(m.declutterExecutorGroups[M]=[]),w.dirty=!1;for(var V=function(k,U){var B=A[k];if(B.getState()!=Qo.LOADED)return"continue";var Y=B.tileCoord,J=I.getTileCoordExtent(Y),K=RR(P,J),z=ZL(K,v.getRenderBuffer()*S,G.tmpExtent),j=OD(J,K)?null:z,q=new dOe(0,z,S,x),O=L?new dOe(0,K,S,x):void 0,te=ESt(S,x),ie=function(fe){var de,Ce=fe.getStyleFunction()||v.getStyleFunction();if(Ce&&(de=Ce(fe,S)),de){var Se=this.renderFeature(fe,te,de,q,O);w.dirty=w.dirty||Se}},re=B.getFeatures();T&&T!==w.renderedRenderOrder&&re.sort(T);for(var ee=0,ae=re.length;ee<ae;++ee){var oe=re[ee];(!j||Ed(j,oe.getGeometry().getExtent()))&&ie.call(G,oe)}var ce=q.finish(),pe=v.getRenderMode()!==FR.VECTOR&&L&&A.length===1?null:K,ue=new mOe(pe,S,x,E.getOverlaps(),ce,v.getRenderBuffer());if(m.executorGroups[M].push(ue),O){var he=new mOe(null,S,x,E.getOverlaps(),O.finish(),v.getRenderBuffer());m.declutterExecutorGroups[M].push(he)}},G=this,D=0,N=A.length;D<N;++D)V(D,N);w.renderedRevision=C,w.renderedRenderOrder=T,w.renderedResolution=S}},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){var T=x.viewState.resolution,S=x.viewState.rotation;y=y??0;var w=this.getLayer(),E=w.getSource(),L=E.getTileGridForProjection(x.viewState.projection),I=_ee([m]);ZL(I,T*y,I);for(var R={},P=function(N,k,U){var B=N.getId();B===void 0&&(B=mu(N));var Y=R[B];if(Y){if(Y!==!0&&U<Y.distanceSq){if(U===0)return R[B]=!0,C.splice(C.lastIndexOf(Y),1),v(N,w,k);Y.geometry=k,Y.distanceSq=U}}else{if(U===0)return R[B]=!0,v(N,w,k);C.push(R[B]={feature:N,layer:w,geometry:k,distanceSq:U,callback:v})}},A=this.renderedTiles,M,V=function(N,k){var U=A[N],B=L.getTileCoordExtent(U.wrappedTileCoord);if(!Ed(B,I))return"continue";var Y=mu(w),J=[U.executorGroups[Y]],K=U.declutterExecutorGroups[Y];K&&J.push(K),J.some(function(z){for(var j=z===K?x.declutterTree.all().map(function(ie){return ie.value}):null,q=0,O=z.length;q<O;++q){var te=z[q];if(M=te.forEachFeatureAtCoordinate(m,T,S,y,P,j),M)return!0}})},G=0,D=A.length;!M&&G<D;++G)V(G,D);return M},f.prototype.getFeatures=function(m){return new Promise(function(x,y){for(var v=this.getLayer(),C=mu(v),T=v.getSource(),S=this.renderedProjection,w=S.getExtent(),E=this.renderedResolution,L=T.getTileGridForProjection(S),I=Zf(this.renderedPixelToCoordinateTransform_,m.slice()),R=L.getTileCoordForCoordAndResolution(I,E),P,A=0,M=this.renderedTiles.length;A<M;++A)if(R.toString()===this.renderedTiles[A].tileCoord.toString()){if(P=this.renderedTiles[A],P.getState()===Qo.LOADED){var V=L.getTileCoordExtent(P.tileCoord);T.getWrapX()&&S.canWrapX()&&!qY(w,V)&&I1t(I,S);break}P=void 0}if(!P||P.loadingSourceTiles>0){x([]);return}var G=L.getTileCoordExtent(P.wrappedTileCoord),D=jb(G),N=[(I[0]-D[0])/E,(D[1]-I[1])/E],k=P.getSourceTiles().reduce(function(K,z){return K.concat(z.getFeatures())},[]),U=P.hitDetectionImageData[C];if(!U&&!this.animatingOrInteracting_){var B=sf(L.getTileSize(L.getZForResolution(E,T.zDirection))),Y=this.renderedRotation_,J=[this.getRenderTransform(L.getTileCoordCenter(P.wrappedTileCoord),E,0,r3,B[0]*r3,B[1]*r3,0)];U=TSt(B,J,k,v.getStyleFunction(),L.getTileCoordExtent(P.wrappedTileCoord),P.getReplayState(v).renderedResolution,Y),P.hitDetectionImageData[C]=U}x(SSt(N,k,U))}.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,y=x.globalAlpha;x.globalAlpha=this.getLayer().getOpacity();for(var v=m.viewHints,C=!(v[vX.ANIMATING]||v[vX.INTERACTING]),T=this.renderedTiles,S=0,w=T.length;S<w;++S){var E=T[S],L=E.declutterExecutorGroups[mu(this.getLayer())];if(L)for(var I=L.length-1;I>=0;--I)L[I].execute(this.context,1,this.getTileRenderTransform(E,m),m.viewState.rotation,C,void 0,m.declutterTree)}x.globalAlpha=y},f.prototype.getTileRenderTransform=function(m,x){var y=x.pixelRatio,v=x.viewState,C=v.center,T=v.resolution,S=v.rotation,w=x.size,E=Math.round(w[0]*y),L=Math.round(w[1]*y),I=this.getLayer().getSource(),R=I.getTileGridForProjection(x.viewState.projection),P=m.tileCoord,A=R.getTileCoordExtent(m.wrappedTileCoord),M=R.getTileCoordExtent(P,this.tmpExtent)[0]-A[0],V=Sfe(Lee(this.inversePixelTransform.slice(),1/y,1/y),this.getRenderTransform(C,T,S,y,E,L,M));return V},f.prototype.renderFrame=function(m,x){var y=m.viewHints,v=!(y[vX.ANIMATING]||y[vX.INTERACTING]);o.prototype.renderFrame.call(this,m,x),this.renderedPixelToCoordinateTransform_=m.pixelToCoordinateTransform.slice(),this.renderedRotation_=m.viewState.rotation;var C=this.getLayer(),T=C.getRenderMode(),S=this.context,w=S.globalAlpha;S.globalAlpha=C.getOpacity();for(var E=qor[T],L=m.viewState,I=L.rotation,R=C.getSource(),P=R.getTileGridForProjection(L.projection),A=P.getZForResolution(L.resolution,R.zDirection),M=this.renderedTiles,V=[],G=[],D=!0,N=M.length-1;N>=0;--N){var k=M[N];D=D&&!k.getReplayState(C).dirty;var U=k.executorGroups[mu(C)].filter(function(re){return re.hasExecutors(E)});if(U.length!==0){var B=this.getTileRenderTransform(k,m),Y=k.tileCoord[0],J=!1,K=U[0].getClipCoords(B);if(K){for(var z=0,j=V.length;z<j;++z)if(A!==Y&&Y<G[z]){var q=V[z];Ed([K[0],K[3],K[4],K[7]],[q[0],q[3],q[4],q[7]])&&(J||(S.save(),J=!0),S.beginPath(),S.moveTo(K[0],K[1]),S.lineTo(K[2],K[3]),S.lineTo(K[4],K[5]),S.lineTo(K[6],K[7]),S.moveTo(q[6],q[7]),S.lineTo(q[4],q[5]),S.lineTo(q[2],q[3]),S.lineTo(q[0],q[1]),S.clip())}V.push(K),G.push(Y)}for(var O=0,te=U.length;O<te;++O){var ie=U[O];ie.execute(S,1,B,I,v,E)}J&&S.restore()}}return S.globalAlpha=w,this.ready=D,this.container},f.prototype.renderFeature=function(m,x,y,v,C){if(!y)return!1;var T=!1;if(Array.isArray(y))for(var S=0,w=y.length;S<w;++S)T=bOe(v,m,y[S],x,this.boundHandleStyleImageChange_,void 0,C)||T;else T=bOe(v,m,y,x,this.boundHandleStyleImageChange_,void 0,C);return T},f.prototype.tileImageNeedsRender_=function(m){var x=this.getLayer();if(x.getRenderMode()===FR.VECTOR)return!1;var y=m.getReplayState(x),v=x.getRevision(),C=m.wantedResolution;return y.renderedTileResolution!==C||y.renderedTileRevision!==v},f.prototype.renderTileImage_=function(m,x){var y=this.getLayer(),v=m.getReplayState(y),C=y.getRevision(),T=m.executorGroups[mu(y)];v.renderedTileRevision=C;var S=m.wrappedTileCoord,w=S[0],E=y.getSource(),L=x.pixelRatio,I=x.viewState,R=I.projection,P=E.getTileGridForProjection(R),A=P.getResolution(m.tileCoord[0]),M=x.pixelRatio/m.wantedResolution*A,V=P.getResolution(w),G=m.getContext(y);L=Math.round(Math.max(L,M/L));var D=E.getTilePixelSize(w,L,R);G.canvas.width=D[0],G.canvas.height=D[1];var N=L/M;if(N!==1){var k=k9e(this.tmpTransform_);Lee(k,N,N),G.setTransform.apply(G,k)}var U=P.getTileCoordExtent(S,this.tmpExtent),B=M/V,Y=k9e(this.tmpTransform_);Lee(Y,B,-B),tTt(Y,-U[0],-U[3]);for(var J=0,K=T.length;J<K;++J){var z=T[J];z.execute(G,N,Y,0,!0,Qor[y.getRenderMode()])}v.renderedTileResolution=m.wantedResolution},f}(_St),PSt=$or;we();var zee={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var ear=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),tar=function(o){ear(f,o);function f(m){var x=this,y=m||{},v=ox({},y);delete v.preload,delete v.useInterimTilesOnError,x=o.call(this,v)||this,x.on,x.once,x.un,y.renderMode===FR.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),y.renderMode=void 0);var C=y.renderMode||FR.HYBRID;return Su(C==FR.HYBRID||C==FR.VECTOR,28),x.renderMode_=C,x.setPreload(y.preload?y.preload:0),x.setUseInterimTilesOnError(y.useInterimTilesOnError!==void 0?y.useInterimTilesOnError:!0),x.getBackground,x.setBackground,x}return f.prototype.createRenderer=function(){return new PSt(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(zee.PRELOAD)},f.prototype.getUseInterimTilesOnError=function(){return this.get(zee.USE_INTERIM_TILES_ON_ERROR)},f.prototype.setPreload=function(m){this.set(zee.PRELOAD,m)},f.prototype.setUseInterimTilesOnError=function(m){this.set(zee.USE_INTERIM_TILES_ON_ERROR,m)},f}(jTt),ISt=tar;we();we();we();var $D={ADD:"add",REMOVE:"remove"};var ASt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),RSt={LENGTH:"length"},Ofe=function(o){ASt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.element=x,v.index=y,v}return f}(hw);var iar=function(o){ASt(f,o);function f(m,x){var y=o.call(this)||this;y.on,y.once,y.un;var v=x||{};if(y.unique_=!!v.unique,y.array_=m||[],y.unique_)for(var C=0,T=y.array_.length;C<T;++C)y.assertUnique_(y.array_[C],C);return y.updateLength_(),y}return f.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},f.prototype.extend=function(m){for(var x=0,y=m.length;x<y;++x)this.push(m[x]);return this},f.prototype.forEach=function(m){for(var x=this.array_,y=0,v=x.length;y<v;++y)m(x[y],y,x)},f.prototype.getArray=function(){return this.array_},f.prototype.item=function(m){return this.array_[m]},f.prototype.getLength=function(){return this.get(RSt.LENGTH)},f.prototype.insertAt=function(m,x){this.unique_&&this.assertUnique_(x),this.array_.splice(m,0,x),this.updateLength_(),this.dispatchEvent(new Ofe($D.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_,y=0,v=x.length;y<v;++y)if(x[y]===m)return this.removeAt(y)},f.prototype.removeAt=function(m){var x=this.array_[m];return this.array_.splice(m,1),this.updateLength_(),this.dispatchEvent(new Ofe($D.REMOVE,x,m)),x},f.prototype.setAt=function(m,x){var y=this.getLength();if(m<y){this.unique_&&this.assertUnique_(x,m);var v=this.array_[m];this.array_[m]=x,this.dispatchEvent(new Ofe($D.REMOVE,v,m)),this.dispatchEvent(new Ofe($D.ADD,x,m))}else{for(var C=y;C<m;++C)this.insertAt(C,void 0);this.insertAt(m,x)}},f.prototype.updateLength_=function(){this.set(RSt.LENGTH,this.array_.length)},f.prototype.assertUnique_=function(m,x){for(var y=0,v=this.array_.length;y<v;++y)if(this.array_[y]===m&&y!==x)throw new tfe(58)},f}(fw),MSt=iar;we();var VSt=x5(uOe(),1);var rar=function(){function o(f){this.rbush_=new VSt.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_[mu(m)]=x},o.prototype.load=function(f,m){for(var x=new Array(m.length),y=0,v=m.length;y<v;y++){var C=f[y],T=m[y],S={minX:C[0],minY:C[1],maxX:C[2],maxY:C[3],value:T};x[y]=S,this.items_[mu(T)]=S}this.rbush_.load(x)},o.prototype.remove=function(f){var m=mu(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_[mu(m)],y=[x.minX,x.minY,x.maxX,x.maxY];OD(y,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(y){return y.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,y=0,v=f.length;y<v;y++)if(x=m(f[y]),x)return x;return x},o.prototype.isEmpty=function(){return NL(this.items_)},o.prototype.clear=function(){this.rbush_.clear(),this.items_={}},o.prototype.getExtent=function(f){var m=this.rbush_.toJSON();return K1(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}(),COe=rar;we();var gw={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};we();function GSt(o,f){return[[-1/0,-1/0,1/0,1/0]]}var FSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},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)}}(),eN=function(o){FSt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.feature=x,v.features=y,v}return f}(hw);var nar=function(o){FSt(f,o);function f(m){var x=this,y=m||{};x=o.call(this,{attributions:y.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:y.wrapX!==void 0?y.wrapX:!0})||this,x.on,x.once,x.un,x.loader_=lX,x.format_=y.format,x.overlaps_=y.overlaps===void 0?!0:y.overlaps,x.url_=y.url,y.loader!==void 0?x.loader_=y.loader:x.url_!==void 0&&(Su(x.format_,7),x.loader_=X9e(x.url_,x.format_)),x.strategy_=y.strategy!==void 0?y.strategy:GSt;var v=y.useSpatialIndex!==void 0?y.useSpatialIndex:!0;x.featuresRtree_=v?new COe:null,x.loadedExtentsRtree_=new COe,x.loadingExtentsCount_=0,x.nullGeometryFeatures_={},x.idIndex_={},x.uidIndex_={},x.featureChangeKeys_={},x.featuresCollection_=null;var C,T;return Array.isArray(y.features)?T=y.features:y.features&&(C=y.features,T=C.getArray()),!v&&C===void 0&&(C=new MSt(T)),T!==void 0&&x.addFeaturesInternal(T),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=mu(m);if(!this.addToIndex_(x,m)){this.featuresCollection_&&this.featuresCollection_.remove(m);return}this.setupChangeEvents_(x,m);var y=m.getGeometry();if(y){var v=y.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(v,m)}else this.nullGeometryFeatures_[x]=m;this.dispatchEvent(new eN(gw.ADDFEATURE,m))},f.prototype.setupChangeEvents_=function(m,x){this.featureChangeKeys_[m]=[Vv(x,wd.CHANGE,this.handleFeatureChange_,this),Vv(x,ffe.PROPERTYCHANGE,this.handleFeatureChange_,this)]},f.prototype.addToIndex_=function(m,x){var y=!0,v=x.getId();return v!==void 0&&(v.toString()in this.idIndex_?y=!1:this.idIndex_[v.toString()]=x),y&&(Su(!(m in this.uidIndex_),30),this.uidIndex_[m]=x),y},f.prototype.addFeatures=function(m){this.addFeaturesInternal(m),this.changed()},f.prototype.addFeaturesInternal=function(m){for(var x=[],y=[],v=[],C=0,T=m.length;C<T;C++){var S=m[C],w=mu(S);this.addToIndex_(w,S)&&y.push(S)}for(var C=0,E=y.length;C<E;C++){var S=y[C],w=mu(S);this.setupChangeEvents_(w,S);var L=S.getGeometry();if(L){var I=L.getExtent();x.push(I),v.push(S)}else this.nullGeometryFeatures_[w]=S}if(this.featuresRtree_&&this.featuresRtree_.load(x,v),this.hasListener(gw.ADDFEATURE))for(var C=0,R=y.length;C<R;C++)this.dispatchEvent(new eN(gw.ADDFEATURE,y[C]))},f.prototype.bindFeaturesCollection_=function(m){var x=!1;this.addEventListener(gw.ADDFEATURE,function(y){x||(x=!0,m.push(y.feature),x=!1)}),this.addEventListener(gw.REMOVEFEATURE,function(y){x||(x=!0,m.remove(y.feature),x=!1)}),m.addEventListener($D.ADD,function(y){x||(x=!0,this.addFeature(y.element),x=!1)}.bind(this)),m.addEventListener($D.REMOVE,function(y){x||(x=!0,this.removeFeature(y.element),x=!1)}.bind(this)),this.featuresCollection_=m},f.prototype.clear=function(m){if(m){for(var x in this.featureChangeKeys_){var y=this.featureChangeKeys_[x];y.forEach(Dy)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var v=function(S){this.removeFeatureInternal(S)}.bind(this);this.featuresRtree_.forEach(v);for(var C in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[C])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var T=new eN(gw.CLEAR);this.dispatchEvent(T),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 y=[m[0],m[1],m[0],m[1]];return this.forEachFeatureInExtent(y,function(v){var C=v.getGeometry();if(C.intersectsCoordinate(m))return x(v)})},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(y){var v=y.getGeometry();if(v.intersectsExtent(m)){var C=x(y);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(),NL(this.nullGeometryFeatures_)||Gy(m,JCt(this.nullGeometryFeatures_))),m},f.prototype.getFeaturesAtCoordinate=function(m){var x=[];return this.forEachFeatureAtCoordinateDirect(m,function(y){x.push(y)}),x},f.prototype.getFeaturesInExtent=function(m,x){var y=this;if(this.featuresRtree_){var v=x&&x.canWrapX()&&this.getWrapX();if(!v)return this.featuresRtree_.getInExtent(m);var C=m1t(m,x);return[].concat.apply([],C.map(function(T){return y.featuresRtree_.getInExtent(T)}))}else return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},f.prototype.getClosestFeatureToCoordinate=function(m,x){var y=m[0],v=m[1],C=null,T=[NaN,NaN],S=1/0,w=[-1/0,-1/0,1/0,1/0],E=x||YCt;return this.featuresRtree_.forEachInExtent(w,function(L){if(E(L)){var I=L.getGeometry(),R=S;if(S=I.closestPointXY(y,v,T,S),S<R){C=L;var P=Math.sqrt(S);w[0]=y-P,w[1]=v-P,w[2]=y+P,w[3]=v+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,y=mu(x),v=x.getGeometry();if(!v)y in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(x),this.nullGeometryFeatures_[y]=x);else{var C=v.getExtent();y in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[y],this.featuresRtree_&&this.featuresRtree_.insert(C,x)):this.featuresRtree_&&this.featuresRtree_.update(C,x)}var T=x.getId();if(T!==void 0){var S=T.toString();this.idIndex_[S]!==x&&(this.removeFromIdIndex_(x),this.idIndex_[S]=x)}else this.removeFromIdIndex_(x),this.uidIndex_[y]=x;this.changed(),this.dispatchEvent(new eN(gw.CHANGEFEATURE,x))},f.prototype.hasFeature=function(m){var x=m.getId();return x!==void 0?x in this.idIndex_:mu(m)in this.uidIndex_},f.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&NL(this.nullGeometryFeatures_):this.featuresCollection_?this.featuresCollection_.getLength()===0:!0},f.prototype.loadFeatures=function(m,x,y){for(var v=this.loadedExtentsRtree_,C=this.strategy_(m,x,y),T=function(L,I){var R=C[L],P=v.forEachInExtent(R,function(A){return qY(A.extent,R)});P||(++S.loadingExtentsCount_,S.dispatchEvent(new eN(gw.FEATURESLOADSTART)),S.loader_.call(S,R,x,y,function(A){--this.loadingExtentsCount_,this.dispatchEvent(new eN(gw.FEATURESLOADEND,void 0,A))}.bind(S),function(){--this.loadingExtentsCount_,this.dispatchEvent(new eN(gw.FEATURESLOADERROR))}.bind(S)),v.insert(R,{extent:R.slice()}))},S=this,w=0,E=C.length;w<E;++w)T(w,E);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_,y;x.forEachInExtent(m,function(v){if(OD(v.extent,m))return y=v,!0}),y&&x.remove(y)},f.prototype.removeFeature=function(m){if(!!m){var x=mu(m);x in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[x]:this.featuresRtree_&&this.featuresRtree_.remove(m);var y=this.removeFeatureInternal(m);y&&this.changed()}},f.prototype.removeFeatureInternal=function(m){var x=mu(m),y=this.featureChangeKeys_[x];if(!!y){y.forEach(Dy),delete this.featureChangeKeys_[x];var v=m.getId();return v!==void 0&&delete this.idIndex_[v.toString()],delete this.uidIndex_[x],this.dispatchEvent(new eN(gw.REMOVEFEATURE,m)),m}},f.prototype.removeFromIdIndex_=function(m){var x=!1;for(var y in this.idIndex_)if(this.idIndex_[y]===m){delete this.idIndex_[y],x=!0;break}return x},f.prototype.setLoader=function(m){this.loader_=m},f.prototype.setUrl=function(m){Su(this.format_,7),this.url_=m,this.setLoader(X9e(m,this.format_))},f}(bfe),DSt=nar;var oar={toDegrees:P9e,toFeature:ITt,transform:_fe,VectorSource:DSt},Xfe=class extends gm{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 wV(f);else if(m==="mapbox")x=new bO(f);else if(m==="arcgis")x=await d1.fromUrl(f.url,f);else if(m==="wms")x=new CO(f);else if(m==="multi")x=new Wz(f);else if(m==="single")x=await V1.fromUrl(f.url,f);else if(m==="tms"){let v=f.west??void 0,C=f.south??void 0,T=f.east??void 0,S=f.north??void 0;F(v)&&F(C)&&F(T)&&F(S)&&(f.rectangle=new vi(be.toRadians(v),be.toRadians(C),be.toRadians(T),be.toRadians(S))),F(f.fileExtension)&&f.fileExtension==="json"&&(f.callback=this.processGeoJson()),x=await _L.fromUrl(f.url,f)}else if(m==="baidu")x=new Nz(f);else if(m==="gaode"||m==="geovis"||m==="qqmap")x=new Hb(f);else if(m==="mapworld")x=new wV(f);else if(m==="osm")x=new ME(f);else if(m==="bingmap")x=await vO.fromUrl(f.url,f);else if(m==="mvt"){if(F(f.coreMap)||(f.coreMap=this._earthCtrl.coreMap),f.mvtConfig){let v=this.getVectorTileLayer(f.mvtConfig),C=f.projection?f.projection:"EPSG:3857";f.vectorTileLayer=v,f.projection=V1t(C)}x=new Zz(f,oar)}x!==null&&(this._primitive=this._earthCtrl.imageryLayers.addImageryProvider(x,f.zIndex),this._primitive._layerIndex=f.zIndex),m==="ion"&&(this._primitive=Up.fromProviderAsync(WG.fromAssetId(f.assetId),f),this._earthCtrl.imageryLayers.add(this._primitive),this._primitive._layerIndex=f.zIndex);let y=f.groupName||this._earthCtrl.language.GROUP_NWE_IMAGERY_LAYER;f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(y,{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,y=f.fillColor?f.fillColor:"rgba(68,197,19,0.5)",v=f.strokeColor?f.strokeColor:"rgba(0,31,255,1)",C=f.strokeWidth?f.strokeWidth:1,T=f.textColor?f.textColor:"#000",S=f.textStrokeColor?f.textStrokeColor:"#ff7d00",w=f.selectColor?f.selectColor:"#ff0000",E=f.selectGe_Id?f.selectGe_Id:[],L=f.geId?f.geId:"",I=new J1t({format:new ATt,tileSize:x,url:m}),R=function(A,M){let V=new BTt({fill:new _X({color:y}),stroke:new Zee({color:v,width:C}),text:new HTt({font:"80px Arial",textBaseline:"middle",text:A.get("name")||A.get("id")||"",fill:new _X({color:T}),stroke:new Zee({color:S,width:3})})});return E.includes(A.get(L))&&V.getFill().setColor(w),V};return new ISt({source:I,style:R})}checkWModels(f){return F(this._wModels[f])}removeInstance(f,m){let y=this._wModels[f];if(F(y)){let v=y.geometryInstances;if(F(v))for(let C=0;C<v.length;C++)v[C].id}}removeWModels(f){if(F(this._parameter.retain)&&this._parameter.retain)return;let m=this,x=m._wModels[f];if(F(x)){for(let y=0;y<m._instance[f].length;y++)m.instanceId.has(m._instance[f][y])&&m.instanceId.delete(m._instance[f][y]);m._instance[f]=[],m._wModels[f]=void 0}}convertCoordinates(f){let m=[];for(let x=0;x<f.length;x++){let y=f[x];for(let v=0;v<y.length;v++)Array.prototype.push.apply(m,y[v])}return m}processGeoJson(){let f=this,m=f._parameter.modelHeightKey??"\u5C42\u9AD8",x=f._parameter.modelColor??Xe.BLUE;function y(C){f.removeWModels(C)}function v(C,T){if(!F(T)||f.checkWModels(T))return;let S=[],w=yo.fromColor(x);f._instance[T]||(f._instance[T]=[]);let E;for(let L=0;L<C.features.length;L++){let I=C.features[L];if(I.geometry.type==="Polygon"){let R=I.id;if(!f.instanceId.has(R)){let P=f.convertCoordinates(I.geometry.coordinates),A=Z.fromDegreesArray(P);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(A),extrudedHeight:E}),id:R,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(R,T),f._instance[T].push(R)}}else if(I.geometry.type==="MultiPolygon"){let R=I.geometry.coordinates;for(let P=0;P<R.length;P++){let A=I.id+L;if(!f.instanceId.has(A)){let M=R[P],V=f.convertCoordinates(M),G=Z.fromDegreesArray(V);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(G),extrudedHeight:E}),id:A,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(A,T),f._instance[T].push(A)}}}else console.info(I.geometry.type)}if(S.length>0){let L=f._earthCtrl.primitives.add(new ta({geometryInstances:S,allowPicking:!1,appearance:new ga({flat:!1,faceForward:!1,translucent:!1})}));f._wModels[T]=L}}return{callback:v,removePrimitive:y}}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(y){let v=As.export(f);console.log("imageobj",v),m(v)})})}async flyTo(f={}){let m=f;function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="wms"){let y=await this._primitive.imageryProvider.capabilitiesRes;if(!y.length)return;if(y[0]<180&&y[0]>-180)m.destination=f.destination??vi.fromDegrees(y[0],y[1],y[2],y[3]);else{let v=x(y[0],y[1]),C=x(y[2],y[3]);m.destination=f.destination??vi.fromDegrees(v.lon,v.lat,C.lon,C.lat)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Xfe.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],y=f.mEarthCtrl.entities.getById(x);y.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 TOe=Xfe;we();we();var aar=function(o,f,m,x){let y=m,v=x;var C=f.west,T=f.east,S=f.south,w=f.north,E=T-C,L=w-S,I=o.longitude*180/Math.PI,R=o.latitude*180/Math.PI;return o.normalizedLongitude=(I-C)/E*m,o.normalizedLatitude=(R-S)/L*x,o},sar=function(o,f,m,x){var y=[],v=o[0].longitude!==void 0;return o.forEach(function(C){var T=[],S=v?C:tN.scene.globe.ellipsoid.cartesianToCartographic(C);S=aar(S,f,m,x),T.push(S.normalizedLongitude),T.push(S.normalizedLatitude),y.push(T)}),y},lar=function(o,f,m){var x=32,y=f.west*be.DEGREES_PER_RADIAN,v=f.east*be.DEGREES_PER_RADIAN,C=f.south*be.DEGREES_PER_RADIAN,T=f.north*be.DEGREES_PER_RADIAN,S=new vi(y,C,v,T),w=sar(o,S,x,x),E=uar(w,"#FF0000",x,x);return E},uar=function(o,f,m,x,y){if(y===void 0){var y=document.createElement("canvas");y.width=m,y.height=x}var v=y.getContext("2d");if(!(o.length<=0)){v.moveTo(o[0][0],o[0][1]);for(var C=0;C<o.length;C++)v.lineTo(o[C][0],o[C][1]);return f!=null&&f!=null&&(v.fillStyle=f,v.fill()),y}};function NR(o,f){return Math.floor(Math.random()*(f-o+1))+o}function car(){return globalThis.GEOWORLD_BASE_URL+"Workers/ParseElevationWorker.js"}function har(o,f){var m=fp();return NR=lar(o.vertices,f,o.heights[0]),NR.timeStamp=o.timeStamp,NR.mtHeight=o.heights,NR.mtType=o.mtType,NR.fromKML=o.fromKML,NR.rect=o.rectangle,NR.level=o.level,m.resolve(NR),m.promise}function dar(o,f){return Math.floor(Math.random()*(f-o+1))+o}function par(o,f){var m=fp(),x=[];return o.forEach(function(y){x.push(har(y,f))}),Promise.all(x).then(function(y){var v=y[0].lenght,C=function(w,E){return E.timeStamp-w.timeStamp};if(y.length===1)m.resolve(y[0]);else{var T=y.sort(C),S=T.shift();T.forEach(function(w){S.forEach(function(E,L){E===NR&&w[L]!==NR&&(S[L]=w[L])})}),m.resolve(S)}}),m.promise}var tN,NSt=!1;function zd(o,f){if(tN=o,!F(f))throw new wt("options is required.");this._errorEvent=new Tr,this._modelFloorMasks={},this._credit=f.credit,typeof this._credit=="string"&&(this._credit=new Oa(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 v=new XMLHttpRequest;v.open("GET",f.cacheUrl?f.cacheUrl+"/0/0/0.mpt":m._firstRequest,!1),v.onload=function(){var C=new DOMParser,T=C.parseFromString(v.responseText,"text/xml"),S=F(T.childNodes)&&T.childNodes.length>0;m.setFormatMPT(!S)},v.onerror=function(){m.setFormatMPT(!1)},v.send()}(),f.cacheUrl&&(this.isCache=!0,this.cacheLevel=f.cacheLevel||16,this._cacheUrl=f.cacheUrl+"/{z}/{x}/{y}.mpt");let y=this._maxTerrainLevel;this._availability={computeMaximumLevelAtPosition:function(v){return Math.min(y,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 _h,this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f.heightMapWidth*4,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._workerPool=new ew({workerPath:car()},Vi),this._pendingRequests=0,this._requestGridSize=8,this._requestsCache={},this._requestsCacheKeys=[],this.errorEvent.addEventListener(function(v){},this)}zd._geometricErrorFactor=2;Object.defineProperties(zd.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}}});zd.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)))}};zd.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)*zd._geometricErrorFactor};zd.prototype.createKeyFromTile=function(o,f,m){return o+"_"+f+"_"+m};zd.prototype.getTileDataAvailable=function(o,f,m){var x=Math.min(this._maxTerrainLevel,25);return this._isMPT?!0:m<x};zd.prototype.requestFactorForLevel=function(o){var f=Math.log(this._requestGridSize)/Math.log(2);return f=Math.min(f,o),Math.pow(2,f)};zd.prototype.getRequestBaseTerrainUrl=function(o,f,m,x){return this.getRequestUrl(o,f,m,x)};zd.prototype.getRequestElevationLayer=function(o,f,m){return this.getRequestUrl(o,f,m,!1,!0)};zd.prototype.getRequestUrl=function(T,S,w,x,y){var v=w,C=x!=null?this.requestFactorForLevel(w):1,T=x!=null?(T-T%C)/C:T,S=x!=null?(S-S%C)/C:S,w=x!=null?w-Math.log(C)/Math.log(2):w;if(this.isCache&&w!==0&&w<=this.cacheLevel)return this._cacheUrl.replace("{x}",T).replace("{y}",S).replace("{z}",w);var E=this.tilingScheme.tileXYToNativeRectangle(T,S,w),L=this.heightMapWidth*C===256&&x?1:0;y&&(L=0);var I=this._urlTemplate.replace("{south}",E.south).replace("{north}",E.north).replace("{west}",E.west).replace("{east}",E.east).replace("{optimizedOnly}",L).replace("{width}",this.heightMapWidth*C).replace("{height}",this.heightMapHeight*C).replace("{s}",this.sTag(T,S,w));return I+"&level="+w+"&origLevel="+v};zd.prototype.isT_Inside_E=function(o,f){return o.west>=f.west*be.DEGREES_PER_RADIAN&&o.east<=f.east*be.DEGREES_PER_RADIAN&&o.south>=f.south*be.DEGREES_PER_RADIAN&&o.north<=f.north*be.DEGREES_PER_RADIAN};zd.prototype.isT_Intersects_E=function(o,f){var m=o.west*be.RADIANS_PER_DEGREE,x=o.east*be.RADIANS_PER_DEGREE,y=o.south*be.RADIANS_PER_DEGREE,v=o.north*be.RADIANS_PER_DEGREE,C=new vi(m,y,x,v),T=vi.intersection(C,f,new vi);return T};zd.prototype.sTag=function(o,f,m){if(this._subdomains==null)return"";var x=(o+f+m)%this._subdomains.length;return this._subdomains[x]};zd.prototype.refreshElevationLayer=function(o){if(o.rectangle&&tN.scene.globe._surface._levelZeroTiles!==void 0){var f=this.findDirectParent(o.rectangle,!0);f.freeResources()}};zd.prototype.findDirectParent=function(o,f){var m=function(v,C,T){var S=T?4.1:2.1;if(v._rectangle.width<=C.width*S&&vi.contains(v._rectangle,vi.center(C)))return v;for(var w=v.children.length,E=0;E<w;E++){var L=v.children[E];if(vi.contains(L._rectangle,vi.center(C)))return m(L,C,T)}return null};if(o.width==Math.PI)return null;for(var x=0;x<tN.scene.globe._surface._levelZeroTiles.length;x++){var y=m(tN.scene.globe._surface._levelZeroTiles[x],o,f);if(y)return y}return null};zd.prototype.isTileAvailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);if(y&&y.data&&y.data.terrainData){if(!(y.data.terrainData._childTileMask>0))return!1;for(var v=y.children.length,C=0;C<v;C++){var T=y.children[C];if(vi.equals(T._rectangle,x))return y.data.terrainData._childTileMask&1<<C}}return!0};zd.prototype.markTileAsUnavailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);y&&y.data&&y.data.terrainData&&y.data.terrainData._childTileMask>0&&y.children.some(function(v,C){if(vi.equals(v._rectangle,x)){switch(C){case 0:y.data.terrainData._childTileMask&=-5;break;case 1:y.data.terrainData._childTileMask&=-9;break;case 2:y.data.terrainData._childTileMask&=-2;break;case 3:y.data.terrainData._childTileMask&=-3;break;default:}return!0}return!1})};zd.prototype.requestBaseTerrainTileGeometry=function(o,f,m,x){return this.requestTileGeometryBuffers(o,f,m,x)};zd.prototype.requestElevationLayerTileGeometry=function(o,f,m,x,y){return this.requestTileGeometryBuffers(o,f,m,x,y)};zd.prototype.requestTileGeometryBuffers=function(o,f,m,x,y){var v=this,C=15,T={};T.requestedRectangle=this.tilingScheme.tileXYToNativeRectangle(o,f,m),T.layer=y;var I,S,w,E,L=fp(),I=this.requestTileHeightBuffer(o,f,m,x,void 0,y);return I===void 0?void 0:(S=this.requestTileHeightBuffer(o+1,f,m,x,!0,y),w=this.requestTileHeightBuffer(o,f+1,m,x,!0,y),E=this.requestTileHeightBuffer(o+1,f+1,m,x,!0,y),Promise.all([I,S,w,E]).then(function(R){if(NSt==0){if(R[0].myReject!=null&&R[0].myReject){L.reject();return}for(var P=v.heightMapWidth+1,A=v.heightMapHeight+1,M=new Float32Array(P*A),V=R[0].isFloor,G=0;G<P;G++)for(var D=0;D<A;D++){var N=G,k=D,U=0;D===P-1&&(k=0,U=1,V&&(U=0,k=P-2)),G===A-1&&(N=0,U=2);var B=G*P+D,Y=N*v.heightMapWidth+k;R[U]!==null&&(R[U].myReject==null||!R[U].myReject)&&(M[B]=R[U][Y])}(R[3].myReject==null||!R[3].myReject)&&(M[P*A-1]=R[3][0]);var J=v.arrayToHeightmapTerrainData(M,P,A,C);T.buffer=J,L.resolve(T)}else{var J=v.arrayToHeightmapTerrainData(R[0],v.heightMapWidth,v.heightMapHeight);T.buffer=J,L.resolve(T)}}).catch(function(){L.reject()}),L.promise)};zd.prototype.requestTileGeometry=function(o,f,m,x){var y=this,v=[],C=y.tilingScheme.tileXYToNativeRectangle(o,f,m);this._allElevationLayers!=null&&this._allElevationLayers.length>0&&m>7?this._allElevationLayers.forEach(function(S,w){var E=w.show;if(E){var L=w.rectangle;y.isT_Inside_E(C,L)?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w))):y.isT_Intersects_E(C,L)!=null?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w)),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)))}else y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))}):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)));var T=fp();return Promise.all(v).then(function(S){if(S.length===1)S.layer!==void 0&&console.log("missing scale and offset"),T.resolve(S[0].buffer);else if(S.length>1){var w=S.filter(function(P){return P.layer!==void 0}),E=S.filter(function(P){return P.layer===void 0});if(w.length===0)T.resolve(S[0].buffer);else{var L=w[w.length-1],I=E[E.length-1],R={tolerance:L.layer.nullTolerance,nullValueNumber:L.layer.nullValueNumber,verticesX:L.layer.polygonVerticesX,verticesY:L.layer.polygonVerticesY,scale:L.layer.scale??1,offset:L.layer.offset??0};T.resolve(y.mergeBuffers(I.buffer,L.buffer,R,I.requestedRectangle))}}else T.reject()}).catch(function(){T.reject()}),T.promise};zd.prototype.mergeBuffers=function(o,f,m,x){var y,v,C,T,S,w=33,E=33,L=x.west,I=x.north,R=x.east,P=x.south,A=x.width/w,M=x.height/E,V=m.scale,G=m.offset,D=m.nullValueNumber,N=m.tolerance,k=D!==void 0&&N!==void 0;if(k)var U=m.nullValueNumber??0,B=Number(m.tolerance)??0;var Y=new Float32Array(w*E);for(y=0,S=I;y<E;y++,S+=M)for(v=0,T=L;v<w;v++,T+=A)C=y*w+v,k?Y[C]=!f._buffer[C]||f._buffer[C]>=U-B&&f._buffer[C]<=U+B?o._buffer[C]:f._buffer[C]*V+G:Y[C]=f._buffer[C]?f._buffer[C]*V+G:o._buffer[C];return this.arrayToHeightmapTerrainData(Y,w,E,15)};zd.prototype.requestTileHeightBuffer=function(o,f,m,x,y,v){var C=this;if(!isNaN(o+f+m)){(!F(x)||x===!1)&&(x=new hm({defer:!0}));var T=x.defer==0;y=T??!1;var S=fp();if(NSt==0){var w;if(v!==void 0)v.getUrlFromSTag=function(j,q,O){return v.subdomains===void 0?v.url:v.subdomains[0]+"/SG"},w=this.getRequestElevationLayer(o,f,m).replace(this._options.url,v.getUrlFromSTag(o,f,m)+"/Elevation").replace(this._options.layerName,v.name),v.format==="mpt"&&(w=w.replace("image/png","image/mpt"));else{w=this.getRequestBaseTerrainUrl(o,f,m,T||y);var E=tN.terrainProvider.tilingScheme.tileXYToRectangle(o,f,m),L=tN.terrainProvider._modifyTerrainObjects,I=fp();if(L!==void 0){var R=[];if(L.forEach(function(j){j.show&&vi.intersection(E,j.rectangle,new vi)!=null&&R.push(j)}),R.length>0)if(R.length===1&&R[0].modelFloorBestLevel&&m>R[0].modelFloorBestLevel)I.resolve("NoMerge");else{var P=par(R,E,m);Promise.resolve(P).then(function(j){I.resolve(j)}).catch(function(j){console.log(j)})}else I.resolve("NoMerge")}else I.resolve("NoMerge");var A=fp(),M=[].filter(function(j){return j._selectedTiles.length>0});if(M.length===1&&M[0].level&&m>M[0].level)A.resolve("NoFloor");else{var V=!1,G=32,D=65535;M.forEach(function(j){if(j.ready&&j.show&&j.rootFloorRectangle!==void 0&&vi.intersection(E,j.rootFloorRectangle)!==void 0){for(var q=new Uint16Array(G*G),O=E.west,te=E.south,ie=(E.east-E.west)/32,re=(E.north-E.south)/32,ee,ae=0;ae<G;ae++)for(var oe=0;oe<G;oe++){var ce=O+ie*oe+ie/2,pe=E.north-re*ae-re/2,ue=new Gt(ce,pe);ee=D;var he=j.getHRMTFP(j,ue,!0);he!=null&&he.content&&he.content._model&&he.content._model.floor&&(ee=he.content._model.floor.getHeight(ue.longitude,ue.latitude)),ee!==D&&(ee+=1.5),q[ae*G+oe]=ee}V=!0,A.resolve(q)}}),V||A.resolve("NoFloor")}var N=tN.scene.globe.ellipsoid}if(this._requestsCache.hasOwnProperty(w)===!1){if(this._requestsCache[w]={},this._requestsCacheKeys.push(w),this._requestsCacheKeys.length>100){for(var k=0;k<50;k++)delete this._requestsCache[this._requestsCacheKeys[k]];this._requestsCacheKeys.splice(0,50)}}else{var U=this._requestsCacheKeys.indexOf(w);this._requestsCacheKeys.splice(U,1),this._requestsCacheKeys.push(w)}var B=this._requestsCache[w];if(B.dataLoaded===void 0&&(T?B.dataLoaded=Mr.fetchArrayBuffer(w):B.dataLoaded=Mr.fetchArrayBuffer(w),!F(B.dataLoaded)))return;var Y=this;this._pendingRequests++,Promise.resolve(B.dataLoaded).then(function(j){B.workerFinished===void 0&&(B.workerFinished=Y._workerPool.queueWorkItem({buffer:j,isElevation:v!==void 0,level:m})),Promise.all([B.workerFinished,I.promise,A.promise]).then(function(q){var O=q[1]!==void 0&&q[1]!=="NoMerge",te=q[2]!==void 0&&q[2]!=="NoFloor";if(q[0].rejected){for(var ie=Y.heightMapWidth*Y.heightMapHeight,re=new Int16Array(ie),ee=0,ae=0;ae<ie;ae++)re[ae]=300;return m>2&&(re.myReject=!0),S.resolve(re),S.promise}var oe=Y.extractTileHeightBuffer(q[0].buffer,o,f,m);if(Y._pendingRequests--,O)for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[1].mtHeight[0]}if(te){for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[2][pe]===65535||q[2][pe]>10500?oe[pe]:q[2][pe]}oe.isFloor=!0}S.resolve(oe)}).catch(function(){for(var q=Y.heightMapWidth*Y.heightMapHeight,O=new Int16Array(q),te=0,ie=0;ie<q;ie++)O[ie]=300;return m>2&&(O.myReject=!0),S.resolve(O),S.promise})}).catch(function(){Y._pendingRequests--,S.reject()})}else{for(var J=this.heightMapWidth*this.heightMapHeight,K=new Int16Array(J),z=dar(0,1500),k=0;k<J;k++)K[k]=z;S.resolve(K)}return S.promise}};zd.prototype.extractTileHeightBuffer=function(o,f,m,x){try{for(var y=this.requestFactorForLevel(x),v=f%y,C=m%y,T=new Float32Array(this.heightMapWidth*this.heightMapHeight),S=1e6,w=-1e5,E=0;E<this.heightMapHeight;E++)for(var L=0;L<this.heightMapWidth;L++){var I=E+C*this.heightMapHeight,R=L+v*this.heightMapWidth,P=E*this.heightMapWidth+L,A=I*this.heightMapWidth*y+R;o[A]>w&&(w=o[A]),o[A]<S&&(S=o[A]),T[P]=o[A]}}catch(M){console.log(M.message)}return T};zd.prototype.arrayToHeightmapTerrainData=function(o,f,m,x){F(o)===!1&&(o=new Int16Array(f*m));var y={buffer:o,width:f,height:m,childTileMask:x};return new yL(y)};var WSt=zd;var kfe=class extends gm{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,y=m.sourceType??"ctb";try{if(y!=="ude"){if(y==="ctb")x=await N4.fromUrl(m.url,m);else if(y==="multi")x=new ace(this._earthCtrl);else if(y==="sgs")f&&(Ty.hasVertexNormals=!0),x=new WSt(this._earthCtrl.coreMap,m);else if(y==="arcgis")x=await fde.fromUrl(m.url,m);else if(y==="mapworld"){let C=m.cesium;C.GeoTerrainProvider||new ex(!1).addJs(document.body,`${window.SmartEarthRootUrl}Workers/cesiumTdt.js`);let T=[],S=m.subdomains;for(let w=0;w<S.length;w++){let E=`${m.url.replace("{s}",S[w])}mapservice/swdx?T=elv_c&tk=3ec79cf7a9dcc6bb18411a5414b148cb`;T.push(E)}x=new C.GeoTerrainProvider({urls:T})}}x!==null&&(this._primitive=x,this._coreMap.terrainProvider=x);let v=m.groupName||this._earthCtrl.language.GROUP_NWE_TERRAIN_LAYER;m.addTree&&(m.addTree=void 0,m.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(v,{id:m.id||this._earthCtrl.factory.createUUID(),name:m.name||y,sourceType:"TerrainProvider",item:this,feature:m,checked:this._primitive.show}))}catch(v){console.error(v)}}removeFromMap(){this._primitive!==null&&(this._coreMap.terrainProvider=new IS)}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(y){let v=As.export(f);console.log("terraobj",v),m(v)})})}flyTo(f={}){let m=f;m.orientation=f.orientation??{heading:be.toRadians(0),pitch:be.toRadians(-60),roll:be.toRadians(0)};function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="ctb"||this._parameter.sourceType==="arcgis"){if(this._primitive._tilingScheme.bounds[0]<180&&this._primitive._tilingScheme.bounds[0]>-180){let y=this._primitive._tilingScheme.bounds,v=(y[0]+y[2])/2,C=(y[1]+y[3])/2,T=f.height||1e4;m.destination=f.destination??Z.fromDegrees(v,C,T)}else{let y=this._primitive._tilingScheme.bounds,v=x(y[0],y[1]),C=x(y[2],y[3]),T=(v.lon+C.lon)/2,S=(v.lat+C.lat)/2,w=f.height||1e4;m.destination=f.destination??Z.fromDegrees(T,S,w)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(kfe.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 SOe=kfe;we();var Ufe=class extends gm{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 _0.fromUrl(f.url,f),F(f.transform)&&this.transform(f.transform,m)):f.sourceType==="osgb"?m=await _0.fromUrl(f.url,f):f.sourceType==="i3s"?m=await gR.fromUrl(f.url,f):f.sourceType==="s3m"?(F(f.context)||(f.context=this._earthCtrl.viewer.scene.context),m=new tpe(f),await m.readyPromise):(f.sourceType==="ude_block"||f.sourceType==="ude_model")&&(f.skipLevelOfDetail=!0,m=await _0.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(){F(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(y){let v=As.export(f);console.log("modellayerobj",v),m(v)})})}transform(f,m){let x=m._primitive,y=Ut.fromRotationX(be.toRadians(f.pitch)),v=Ut.fromRotationY(be.toRadians(f.roll)),C=Ut.fromRotationZ(be.toRadians(f.heading)),T=Ee.fromRotationTranslation(y),S=Ee.fromRotationTranslation(v),w=Ee.fromRotationTranslation(C),E=Z.fromDegrees(f.lon,f.lat,f.alt),L=_r.eastNorthUpToFixedFrame(E);Ee.multiply(L,T,L),Ee.multiply(L,S,L),Ee.multiply(L,w,L),x._root.transform=L}setHeight(f){if(f=Number(f),!isNaN(f)&&this._primitive!==void 0&&this._primitive.boundingSphere!==void 0){let m=this._primitive.boundingSphere.center,x=Gt.fromCartesian(m),y=Z.fromRadians(x.longitude,x.latitude,0),v=Z.fromRadians(x.longitude,x.latitude,f),C=Z.subtract(v,y,new Z);this._primitive.modelMatrix=Ee.fromTranslation(C)}}};Object.defineProperties(Ufe.prototype,{parameter:{get:function(){return this._parameter}},readyPromise:{get:function(){return this._primitive.readyPromise}},show:{get:function(){return F(this._primitive)?this._primitive.show:!1},set:function(o){F(this._primitive)&&(this._primitive.show=o)}},sourceType:{get:function(){return F(this._parameter)?this._parameter.sourceType:!1}},dataUrl:{get:function(){return F(this._parameter)?this._parameter.url:!1}},boundingSphere:{get:function(){return F(this._primitive)&&this._primitive.boundingSphere?this._primitive.boundingSphere:null}},modelMatrix:{get:function(){return F(this._primitive)?this._primitive.modelMatrix:!1},set:function(o){F(this._primitive)&&(this._primitive.modelMatrix=o)}},name:{get:function(){return F(this._parameter)?this._parameter.name:!1},set:function(o){F(this._parameter)&&(this._parameter.name=o)}}});var wOe=Ufe;we();var Bfe=class extends gm{constructor(f,m){super(f),this._rtti="FeatureLayer",this._primitive=null,this._parameter=m}finalize(){}addToMap(){let f=this._parameter;this._primitive=new Kue(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 y=m[x];for(let v=0;v<y.propertyNames.length;v++){let C=y.propertyNames[v];if(!!y[C]){typeof f.near<"u"&&typeof f.far<"u"&&(y[C].distanceDisplayCondition=new So(f.near,f.far));for(let T in f)if(Object.hasOwnProperty.call(f,T)){let S=f[T];y[C][T]&&(y[C][T]=S)}if(f.pointHeight){let T=Gt.fromCartesian(y.position._value),S=Math.toDegrees(T.longitude),w=Math.toDegrees(T.latitude);y.position=Z.fromDegrees(S,w,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(y){let v=As.export(f);console.log("fireObj",v),m(v)})})}};Object.defineProperties(Bfe.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 EOe=Bfe;we();function Hfe(o){this._earthCtrl=o,this._path="",this._layerWork=null}Object.defineProperties(Hfe.prototype,{});Hfe.prototype.addToMap=function(o){F(this._layerWork)?this._layerWork.updateOverlay(o):this._layerWork=new Pde(this._earthCtrl.coreMap,o)};Hfe.prototype.removeFromMap=function(){this._layerWork.dispose()};var LOe=Hfe;we();var far={IMAGERYPROVIDERS:"imageryProviders",TERRAINPROVIDERS:"terrainProviders",MODELLAYERS:"modelLayers",FEATURELAYERS:"featureLayers",USERSCENE:"userScene"},Ms=Object.freeze(far);we();var zfe=class extends gm{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??Xe.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 Gz(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(y){let v=As.export(f);console.log("waterObj",v),m(v)})})}};Object.defineProperties(zfe.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 POe=zfe;we();var IOe=class extends gm{constructor(f,m){super(f),this._parameter=m,this._viewer=f.coreMap,this._cesium=Vi}addToMap(){let f=this._parameter,m,x;F(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 y;f.url?y=new this._cesium.SingleTileImageryProvider({url:f.url}):f.imageryProvider?y=f.imageryProvider:y=new _L({url:"http://103.25.37.71:4020/gisserver/tmsserver/earth_tms"});let v=new A4(x,{baseLayer:Up.fromProviderAsync(y),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}});v._innerCreditContainer.style.display="none",v.scene.screenSpaceCameraController.enableRotate=!1,v.scene.screenSpaceCameraController.enableZoom=!1,v.scene.screenSpaceCameraController.enableTilt=!1;let C=this;function T(){let S=C._viewer.camera.position,w=Gt.fromCartesian(S);v.camera.setView({destination:Gt.toCartesian(w),orientation:{heading:C._viewer.camera.heading,pitch:C._viewer.camera.pitch,roll:C._viewer.camera.roll}})}return C._viewer.scene.preRender.addEventListener(T),this.close=function(){C._viewer.scene.preRender.removeEventListener(T),v.destroy(),m.remove(),C.close=void 0},this}removeFromMap(){this.close&&this.close()}},ROe=IOe;we();var ZSt=new zt;function mar(o,f,m){let x=o.length,y,v,C;if(m){y=zr.LUMINANCE,v=un.FLOAT,C=new Float32Array(x);for(let T=0;T<x;T++)C[T]=o[T]}else{y=zr.RGBA,v=un.UNSIGNED_BYTE,C=new Uint8Array(x*4);for(let T=0;T<x;T++)zt.packFloat(o[T],ZSt),zt.pack(ZSt,C,T*4)}return new Rn.create({context:f,pixelFormat:y,pixelDatatype:v,source:{width:x,height:1,arrayBufferView:C},flipY:!1,sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})})}var Yfe=[];function xar(o,f,m,x){Ee.toArray(Ee.IDENTITY,Yfe);let y=new Co({fabric:{type:"spotMaterial",source:` # define Spot_Texture_Width ${f.length} ${m?"#define use_texture_float":""} float getPointComponent(int idx, float invTexSize) @@ -33711,7 +33794,7 @@ \r }\r \r -`};class gt{constructor(se,ve){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)]=ve,this[je(1099)]=ve[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)}}]}),kt=(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)}}]})),bt=(this[je(933)]=this[je(1099)][je(866)]({layout:kt,entries:[{binding:0,resource:{buffer:this.renderEngine[je(688)]}}]}),this.device[je(917)]({bindGroupLayouts:this[je(702)].multiDrawIndirect?[Ft]:[Ft,kt]})),lt=at[je(1022)];this[je(702)][je(1035)]?lt=lt[je(926)](je(904),""):(lt=lt[je(926)](je(929),je(1009)),lt+=je(1093)),se=this[je(1099)][je(720)]({code:q[je(1022)]+lt}),this[je(955)]=this[je(1099)][je(950)]({layout:bt,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)]||((ve=this.device[je(968)]({colorFormats:[this[je(1017)].format],depthStencilFormat:this.alpha_depth_Texture[je(980)]}))[je(689)](0,this.alpha_BingGroup),ve[je(501)](this[je(955)]),ve[je(689)](1,this[je(933)]),ve.drawIndirect(this.renderEngine[je(812)],0),this.alpha_RenderBundle=ve[je(1091)]()),this[je(546)]()}[o(991)](se){var ve=o,je=se.beginRenderPass(this[ve(1028)]);this.renderEngine[ve(1035)]?(je[ve(689)](0,this.alpha_BingGroup),je[ve(501)](this[ve(955)]),je.multiDrawIndirect(this[ve(688)],0,393216,this[ve(812)],0)):je.executeBundles([this[ve(1083)]]),je[ve(482)](),this[ve(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 ve=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:ve,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:[ve]}),compute:{module:this.device[se(720)]({code:dt[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(585)](se){var ve=o,je=se[ve(911)]();je[ve(689)](0,this[ve(924)]),je.setPipeline(this.edgeMergeComputePipeline),je[ve(624)](this[ve(702)][ve(752)],this[ve(702)][ve(899)]),je[ve(482)](),se.copyTextureToTexture({texture:this[ve(893)]},{texture:this.renderEngine[ve(502)]},{width:this.edgeMerge_color_Texture[ve(412)],height:this[ve(893)][ve(864)]})}}let Et={code:o(664)};class et{constructor(se,ve){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)]=ve,this[je(1099)]=ve.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)]}}]}),ve=this[je(1099)][je(917)]({bindGroupLayouts:[se]}),se=this[je(1099)][je(720)]({code:q[je(1022)]+Et.code}),this.alpha_Pipeline=this[je(1099)][je(950)]({layout:ve,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 ve=o;this[ve(1031)].instancesCount!==0&&((se=se[ve(675)](this[ve(1028)]))[ve(689)](0,this[ve(1054)]),se.setPipeline(this[ve(955)]),se.draw(8*this[ve(1031)][ve(1069)]),se[ve(482)]())}}class yt{constructor(se){var ve=o;this.fig=se,this[ve(778)]=0,this[ve(700)]=0,this[ve(1035)]=!1,this[ve(710)]=!0,this.readTemp_noLocking=!0,this[ve(1e3)]=!0,this[ve(983)]=!0,this[ve(837)]=!0,this[ve(425)]=1,this[ve(628)]=2,this[ve(767)]=3,this.vm_target_meshLod=4,this[ve(934)]=5,this[ve(561)]=6,this[ve(903)]=7,this[ve(1025)]=32,this[ve(804)]=new Float32Array(9),this[ve(795)]=20,this.spaceTotalCount=0,this[ve(598)]=10,this[ve(775)]=1e6,this[ve(858)]=new ArrayBuffer(64),this[ve(653)]=new Uint32Array([10,0,0,0]),this[ve(786)]=1e5,this[ve(915)]=Math.ceil(this.lightBodiesAssociateCount/1024),this[ve(764)]=1e6,this[ve(540)]=4096,this[ve(944)]=new Float32Array(128),this[ve(697)]=new Uint32Array(this[ve(944)][ve(877)]),this[ve(819)]=128,this[ve(1047)]=32,this[ve(881)]=this[ve(819)]-(this.blur_filterSize-1),this.blur_batch=[4,4],this[ve(630)]=0,this[ve(518)]=new Float32Array(4),this[ve(541)]=new Float32Array(128),this.volumeRender_Uniform_DataView=new Float32Array(128),this[ve(667)]=new Float32Array(128),this[ve(719)]=new Uint32Array(this[ve(667)].buffer),this.renderToCanvas_Uniform_DataView=new Float32Array([1,1,.1]),this[ve(681)]=new Uint32Array([27,0,0,0]),this.lastPickPositionValue=D[ve(807)](),this[ve(872)]=!0,this.allow_read_renderMaterial=!0,this[ve(954)]=!1,navigator[ve(437)].requestAdapter({powerPreference:"high-performance"}).then(je=>{var Ft=ve;if(je!==null){this[Ft(947)]=je;var kt,bt=Array[Ft(1050)](je[Ft(840)]||[]),lt={};for(kt in je[Ft(608)])lt[kt]=je[Ft(608)][kt];je[Ft(935)]({requiredFeatures:bt,requiredLimits:lt})[Ft(442)](ze=>{var tt=Ft;this[tt(1099)]=ze,this[tt(778)]=ze.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__&&((ze=document.createElement(tt(1088))).style=tt(558),document[tt(455)].appendChild(ze),this[tt(797)]=ze[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)}),(ze=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)](ze),this[tt(733)]=ze[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)}),(ze=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)](ze),this.context3=ze[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)}),(ze=document.createElement(tt(1088))).style=tt(716),document[tt(455)][tt(621)](ze),this[tt(657)]=ze[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 ze=this[tt(1099)].createCommandEncoder(),ct=ze[tt(675)]({colorAttachments:[null]});this[tt(1035)]=!!ct.multiDrawIndirect,ct.end(),ze[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 gt(this[se(1031)],this),this[se(869)]=new et(this.fig,this),globalThis.__ser_isDev__&&this[se(1010)]()}[o(560)](se){var ve=o,je=performance.now();switch(se.target){case this[ve(425)]:if(se[ve(1016)]&&se[ve(563)])this[ve(680)][ve(605)],se[ve(1016)],se.buf[ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(680)],se[ve(1016)],se[ve(563)]);else if(se[ve(413)])for(var Ft in se[ve(413)])this[ve(1099)].queue[ve(1039)](this.modelVmBuffer,~~Ft,se[ve(413)][Ft]);else se[ve(1089)]&&this[ve(1099)].queue[ve(1039)](this[ve(680)],se[ve(1016)],new ArrayBuffer(se[ve(1089)]));break;case this[ve(628)]:this.instanceVmBuffer[ve(605)],se.vmOffset,se[ve(563)].byteLength,this[ve(1099)][ve(704)][ve(1039)](this.instanceVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(767)]:this[ve(1092)][ve(605)],se[ve(1016)],se[ve(563)].byteLength,this[ve(1099)].queue.writeBuffer(this.meshVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(419)]:this[ve(580)][ve(605)],se[ve(1016)],se[ve(563)][ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(580)],se.vmOffset,se[ve(563)]);break;case this.vm_target_meshLod_up:this.updateMeshOffset_VmBuffer[ve(605)],se[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,se.buf);var kt=this[ve(1099)][ve(981)]();this[ve(421)](kt,se[ve(815)]),this[ve(1099)][ve(704)][ve(635)]([kt[ve(1091)]()]);break;case this[ve(561)]:this[ve(1099)][ve(704)].writeTexture({texture:this[ve(962)],origin:se[ve(534)]},se.albedo_buf,se[ve(743)],se.size),se[ve(671)]&&this[ve(1099)].queue[ve(458)]({texture:this.normal_Texture,origin:se.origin},se[ve(671)],se[ve(743)],se[ve(605)]),se[ve(423)]&&this[ve(1099)][ve(704)][ve(458)]({texture:this[ve(777)],origin:se[ve(534)]},se[ve(423)],se[ve(743)],se[ve(605)]);break;case this[ve(903)]:this[ve(792)].size,se[ve(1016)],se.buf[ve(829)],this.device[ve(704)][ve(1039)](this.operateVmBuffer,se[ve(1016)],se[ve(563)])}je<performance[ve(495)]()-5&&console.log(ve(927),performance.now()-je,se[ve(723)])}OrganizeMeshVmData(se){var ve=o,je,Ft=this[ve(1099)][ve(981)]();for(je of se[ve(937)])this[ve(711)][ve(605)],je[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,je[ve(563)]),this[ve(421)](Ft,je[ve(815)]);for(let bt=0;bt<se[ve(652)][ve(800)];bt+=3){let lt=se[ve(652)][bt],ot=se[ve(652)][bt+1],tt=se.copyList[bt+2];for(;;){if(!(tt>this[ve(647)][ve(605)])){Ft.copyBufferToBuffer(this[ve(1092)],ot,this[ve(647)],0,tt),Ft.copyBufferToBuffer(this.copyVmBuffer,0,this.meshVmBuffer,lt,tt);break}var kt=this[ve(647)][ve(605)];Ft[ve(913)](this[ve(1092)],ot,this[ve(647)],0,kt),Ft.copyBufferToBuffer(this[ve(647)],0,this[ve(1092)],lt,kt),ot+=kt,lt+=kt,tt-=kt}}this[ve(1099)][ve(704)].submit([Ft[ve(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 ve=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)}}]}),ve=(this[se(960)]=this[se(1099)][se(866)]({layout:ve,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:[ve]}));this[se(1097)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:q.code+k[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],instanceItemVmSize:this.instanceItemVmSize}}})}[o(1117)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(1097)]),se.setBindGroup(0,this[ve(960)]),se[ve(624)](Math.ceil(this[ve(1031)].instancesCount/this[ve(1099)][ve(608)][ve(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 ve=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)}}]}),ve=(this[se(544)]=this[se(1099)].createBindGroup({layout:ve,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:[ve]})),ve=(this[se(668)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+U.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:ve,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:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+B[se(1022)]+O[se(1022)]}),entryPoint:se(817),constants:{multiDrawIndirect:this.multiDrawIndirect?1:0}}})}[o(462)](se){var ve=o;this.fig[ve(1069)]!==1&&(se.copyBufferToBuffer(this[ve(1056)],0,this[ve(812)],0,this[ve(812)][ve(605)]),(se=se.beginComputePass()).setPipeline(this[ve(668)]),se[ve(689)](0,this.MakeCommandComputeBingGroup),se[ve(624)](Math.ceil(this[ve(1031)][ve(1069)]/this[ve(1099)][ve(608)][ve(963)])),se.setPipeline(this[ve(565)]),se.setBindGroup(0,this[ve(734)]),se.dispatchWorkgroups(1),se[ve(482)]())}[o(612)](){var se=o;this.updateMeshOffset_VmBuffer=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST});var ve=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)}}]}),ve=(this[se(1041)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this.updateMeshOffset_VmBuffer}},{binding:1,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this.updateMeshOffsetComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:K[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)].maxComputeInvocationsPerWorkgroup}}})}[o(421)](se,ve){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)](ve/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,ve=-2147483648,je=(this[se(1099)][se(704)][se(1039)](this.readMesh_atomic_VmBuffer,0,new Int32Array([je,je,je,ve,ve,ve])),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:q.code+z.code+ae[se(1022)]+O[se(1022)]+oe.code}),entryPoint:se(817),constants:{spaceUnit:this.spaceUnit}}})}[o(725)](se){var ve=o;this[ve(1099)].queue[ve(1039)](this[ve(443)],0,this[ve(858)]),se=se.beginComputePass({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(492)]),se.setBindGroup(0,this.readMeshComputeBingGroup),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)][se(720)]({code:ie.code+oe[se(1022)]}),entryPoint:se(817),constants:{lightBodiesSize:this[se(795)],spaceTotalCount:this[se(1107)]}}})}LightBodiesAssociate(se){var ve=o;this[ve(653)][0]+=this[ve(786)],this[ve(653)][0]*this.lightBodiesSize>this[ve(1107)]&&(this[ve(653)][0]=10),this[ve(1099)][ve(704)][ve(1039)](this[ve(906)],0,this[ve(653)]),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:6,endOfPassWriteIndex:7}}),se[ve(689)](0,this[ve(998)]),se.setPipeline(this[ve(779)]),se.dispatchWorkgroups(this[ve(915)]),se.end()}[o(823)](){var se=o,ve=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)}}]}),ve=(this[se(1015)]=this.device[se(866)]({layout:ve,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:[ve]}));this[se(676)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:O.code+te.code+oe.code}),entryPoint:"main",constants:{}}}),this[se(1040)]=this[se(1099)].createComputePipeline({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:O.code+re[se(1022)]+oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(718)](se){var ve=o,je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:2,endOfPassWriteIndex:3}});je[ve(689)](0,this[ve(1015)]),je.setPipeline(this[ve(676)]),je[ve(624)](Math[ve(552)](this[ve(764)]/128)),je.end(),this.LightBodiesRemoveDuplicatesIndirect(se)}[o(818)](){var se=o,ve=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)}}]}),ve=(this.LightBodiesRemoveDuplicatesComputeBingGroup=this[se(1099)][se(866)]({layout:ve,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:[ve]}));this.LightBodiesRemoveDuplicatesComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:ee[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(694)](se){var ve=o;se=se[ve(911)](),se.setBindGroup(0,this[ve(713)]),se.setPipeline(this[ve(1055)]),se.dispatchWorkgroupsIndirect(this[ve(551)],0),se.end()}LightBodiesRemoveDuplicatesIndirectIntend(){var se=o,ve=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)}}]}),ve=(this[se(1078)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:2,resource:{buffer:this[se(1002)]}},{binding:3,resource:{buffer:this[se(551)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(1077)]=this.device[se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:se(433)}),entryPoint:"main",constants:{lightBodiesBounceCount:this[se(764)]}}})}LightBodiesRemoveDuplicatesIndirect(se){var ve=o;se=se[ve(911)](),se[ve(689)](0,this[ve(1078)]),se[ve(501)](this[ve(1077)]),se.dispatchWorkgroups(1),se[ve(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 ve=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:ve,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)]?[ve]:[ve,je]})),kt=Y[se(1022)];this.multiDrawIndirect?kt=kt[se(926)]("@group(1) @binding(0) var<storage,read> renderIndex: array<u32>;",""):(kt=kt[se(926)]("let ri = vec2<u32>(input.instanceIndex,input.vertexIndex);",se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt});this.meshRenderPipeline=this[se(1099)][se(950)]({layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,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)]||((bt=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)]),bt[se(501)](this[se(1087)]),bt[se(689)](1,this[se(481)]),bt[se(1044)](this[se(812)],0),this[se(874)]=bt.finish())}[o(939)](se){var ve=o;se[ve(913)](this.meshRenderAtomic_InitData_VmBuffer,0,this[ve(717)],0,16),se[ve(913)](this[ve(1056)],0,this[ve(907)],0,this[ve(907)].size),se=se[ve(675)](this[ve(974)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(789)]),se[ve(501)](this[ve(1087)]),se[ve(1035)](this[ve(688)],0,393216,this.indirect_render_VmBuffer,0)):se[ve(834)]([this[ve(874)]]),se[ve(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 ve=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:ve,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)]?[ve]:[ve,je]})),kt=J[se(1022)];this[se(1035)]?kt=kt[se(926)](se(904),""):(kt=kt[se(926)](se(929),se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt+O.code});this[se(1104)]=this[se(1099)].createRenderPipeline({label:se(1104),layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,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)]||((bt=this[se(1099)][se(968)]({colorFormats:[this[se(500)][se(980)]],depthStencilFormat:this[se(559)][se(980)]}))[se(689)](0,this[se(414)]),bt[se(501)](this.renderShadowPipeline),bt[se(689)](1,this.renderShadowBindGroup_renderIndex),bt[se(1044)](this[se(812)],0),this[se(496)]=bt[se(1091)]())}[o(537)](se){var ve=o;this.renderShadowRenderPassDescriptor[ve(1052)][ve(703)]=this[ve(707)],se=se[ve(675)](this[ve(1049)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(414)]),se.setPipeline(this.renderShadowPipeline),se[ve(1035)](this[ve(688)],0,393216,this[ve(812)],0)):se[ve(834)]([this[ve(496)]]),se[ve(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 ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ve=(this[se(691)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(907)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this.device[se(917)]({bindGroupLayouts:[ve]}));this[se(1007)]=this.device.createComputePipeline({layout:ve,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 ve=o;se[ve(913)](this[ve(907)],4,this[ve(596)],0,4),se=se[ve(911)](),se[ve(689)](0,this.dynamicSpaceComputeBingGroup),se[ve(501)](this.dynamicSpaceComputePipeline),se[ve(538)](this.dynamicSpaceIndirect_VmBuffer,0),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this.device.createShaderModule({code:ae[se(1022)]+Se.code}),entryPoint:se(817),constants:{}}})}[o(428)](se){var ve=o;this[ve(944)][ve(895)](this[ve(1031)][ve(1008)]),this[ve(944)][ve(895)](this.fig[ve(838)],16),this[ve(944)][ve(895)](this[ve(1031)][ve(640)],32),this[ve(944)][ve(895)](this[ve(1031)][ve(1024)],48),this.ssrReflections_Uniform_DataView[64]=this.fig[ve(509)][ve(1108)],this.ssrReflections_Uniform_DataView[65]=this[ve(1031)].cameraParameter.far,this[ve(944)][66]=5,this[ve(944)][67]=2e3,this.ssrReflections_Uniform_DataView[68]=.5,this[ve(944)][69]=.2,this[ve(944)][70]=.95,this.ssrReflections_Uniform_DataView[71]=20,this[ve(944)][72]=1,this.ssrReflections_Uniform_DataView[73]=.9,this[ve(697)][74]=4294967295*Math.random(),this[ve(697)][75]=4294967295*Math[ve(1080)](),this.ssrReflections_Uniform_DataViewU32[76]=4294967295*Math[ve(1080)](),this[ve(1099)].queue[ve(1039)](this.ssrReflections_Uniform_VmBuffer,0,this.ssrReflections_Uniform_DataView);var je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}});je[ve(689)](0,this[ve(961)]),je[ve(501)](this.ssrReflectionsComputePipeline),je.dispatchWorkgroups(this[ve(752)],this[ve(899)]),je.end(),se[ve(603)]({texture:this.ssr_color_accumulated_Texture},{texture:this.ssr_color_Texture},{width:this[ve(1105)][ve(412)],height:this.ssr_color_Texture[ve(864)]})}ImageBlurIntend(){var se=o;this[se(891)]=this[se(1099)].createComputePipeline({layout:se(772),compute:{module:this.device[se(720)]({code:ce.code})}});var ve,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)]}),kt=Ft,bt=(ve=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage[se(844)]}),new Uint32Array(ve.getMappedRange())[0]=0,ve[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)](bt,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:bt}}]}),this[se(591)]=this.device.createBindGroup({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:kt[se(1045)]()},{binding:2,resource:Ft[se(1045)]()},{binding:3,resource:{buffer:ve}}]}),this[se(418)]=this[se(1099)][se(866)]({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:Ft[se(1045)]()},{binding:2,resource:kt.createView()},{binding:3,resource:{buffer:je}}]})}[o(529)](se){var ve=o;if(0<this[ve(630)]){var je=se[ve(911)]();je.setPipeline(this.blurComputePipeline),je[ve(689)](0,this[ve(1027)]);for(let Ft=0;Ft<this[ve(630)];++Ft)je[ve(689)](1,this[ve(591)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)].canvas[ve(864)]/this[ve(533)][1])),je[ve(689)](1,this[ve(418)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)][ve(1088)].height/this[ve(533)][1]));je[ve(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 ve=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:ve,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:pe.code}));this[se(841)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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 ve=o;!this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(995)]||this[ve(1031)][ve(835)][ve(953)].mouse.downLeftX==this.fig[ve(835)][ve(953)].mouse[ve(507)]&&this.fig[ve(835)].status[ve(450)][ve(679)]==this[ve(1031)][ve(835)][ve(953)][ve(450)].clientY?this[ve(518)][ve(895)]([0,0,0,0]):this[ve(518)][ve(895)]([(this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(507)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(715)])/this.finalColor_Texture[ve(412)],(this[ve(1031)][ve(835)].status[ve(450)][ve(783)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(679)])/this[ve(502)][ve(864)],1]),this[ve(1099)][ve(704)][ve(1039)](this[ve(982)],0,this[ve(518)]),this[ve(791)][ve(566)][0][ve(703)]=this.context[ve(696)]()[ve(1045)](),se=se[ve(675)](this[ve(791)]),se.setPipeline(this.finalDisplayPipeline),se[ve(689)](0,this[ve(851)]),se[ve(729)](6),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q.code+Oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(444)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(862)]),se[ve(689)](0,this[ve(996)]),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(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 kt=se;Ft[kt(871)]()[kt(442)](bt=>{var lt=kt;bt=new Float32Array(bt),this[lt(1099)][lt(704)].writeTexture({texture:this.volumeRender_3dData_Texture},bt,{bytesPerRow:7200,rowsPerImage:1800},[3600,1800,50])})});var ve=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:ve}]}),this[se(615)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[je]}),compute:{module:this[se(1099)].createShaderModule({code:Le[se(1022)]+q[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(440)](se){var ve=o;this[ve(543)][ve(895)](this[ve(1031)][ve(640)]),this.volumeRender_Uniform_DataView[ve(895)](this[ve(1031)][ve(587)],16),this[ve(1099)].queue[ve(1039)](this[ve(856)],0,this.volumeRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se.setPipeline(this[ve(615)]),se[ve(689)](0,this.volumeRenderComputeBingGroup),se[ve(624)](this.readMesh_dispatchWorkgroupsX,this[ve(899)]),se[ve(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)](kt=>{var bt=Ft;this[bt(945)].size,kt[bt(829)],this[bt(1099)][bt(704)][bt(1039)](this[bt(945)],0,kt)})}),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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)][se(720)]({code:Ve.code+q.code+ae[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(949)](se){var ve=o;this.streamRender_Uniform_DataView.set(this.fig.projectToPixelMatrix),this[ve(667)][ve(895)](this[ve(1031)].viewMatrix,16),this[ve(667)][ve(895)]([.4,5,.95],32),this[ve(719)][ve(895)]([4294967295*Math.random(),4294967295*Math[ve(1080)](),4294967295*Math[ve(1080)]()],35),this[ve(1099)][ve(704)].writeBuffer(this[ve(843)],0,this.streamRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(570)]),se[ve(689)](0,this[ve(494)]),se[ve(624)](this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(1010)](){var se=o,ve=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:ve,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)]})),ve=(this[se(852)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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:ve,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:he[se(1022)]})),ve=(this[se(916)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),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:ve,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:fe[se(1022)]})),ve=(this[se(641)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),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:ve,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:de[se(1022)]}));this.renderDebugTest4Pipeline=this[se(1099)].createRenderPipeline({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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 ve=o;this.renderDebugTestRenderPassDescriptor[ve(566)][0].view=this.context1[ve(696)]()[ve(1045)]();var je=se[ve(675)](this[ve(430)]),je=(je[ve(501)](this[ve(852)]),je[ve(689)](0,this.renderDebugTest1BindGroup),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this[ve(733)][ve(696)]().createView(),se.beginRenderPass(this[ve(430)])),je=(je[ve(501)](this[ve(916)]),je.setBindGroup(0,this[ve(727)]),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this.context3[ve(696)]()[ve(1045)](),se[ve(675)](this.renderDebugTestRenderPassDescriptor)),je=(je[ve(501)](this[ve(641)]),je.setBindGroup(0,this.renderDebugTest3BindGroup),je.draw(6),je[ve(482)](),this[ve(430)].colorAttachments[0][ve(703)]=this[ve(657)][ve(696)]()[ve(1045)](),se.beginRenderPass(this[ve(430)]));je[ve(501)](this[ve(989)]),je[ve(689)](0,this.renderDebugTest4BindGroup),je[ve(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 ve=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)}}]}),ve=(this[se(928)]=this[se(1099)][se(866)]({layout:ve,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:[ve]})),je=this[se(1099)][se(720)]({code:q[se(1022)]+$e.code});this[se(805)]=this[se(1099)].createRenderPipeline({label:se(781),layout:ve,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 ve=o;this[ve(1004)][0]=this[ve(1031)][ve(672)][ve(859)].frameState.useLogDepth?1:0,this[ve(1004)][1]=this[ve(1031)][ve(672)].scene.context[ve(420)][ve(1003)].x,this[ve(1004)][2]=this.fig[ve(672)][ve(859)][ve(504)][ve(420)][ve(794)],this[ve(1099)][ve(704)][ve(1039)](this[ve(659)],0,this[ve(1004)]),this[ve(660)][ve(566)][0][ve(703)]=this[ve(504)][ve(696)]()[ve(1045)](),this.renderToCanvasRenderPassDescriptor.colorAttachments[1].view=this[ve(506)][ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(660)]),se.setPipeline(this.renderToCanvasPipeline),se[ve(689)](0,this[ve(928)]),se.draw(6),se[ve(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]})),ve=this[se(1099)][se(720)]({code:q[se(1022)]+Ce[se(1022)]}),je={layout:je,vertex:{module:ve,entryPoint:"vert_main",buffers:[],constants:{spaceUnit:this[se(598)],lightBodiesSize:this[se(795)]}},fragment:{module:ve,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 ve=o;this[ve(1099)][ve(704)][ve(1039)](this[ve(888)],0,this[ve(681)]),this[ve(1051)].colorAttachments[0].view=this.context[ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(1051)]),se.setPipeline(this.voxelRenderPipeline),se.setBindGroup(0,this[ve(684)]),se[ve(1044)](this[ve(951)],0),se[ve(482)]()}[o(806)](se,ve){return new Promise((je,Ft)=>{var kt=wh,bt;this[kt(983)]?(this[kt(983)]=!1,(bt=this.device[kt(981)]())[kt(809)]({texture:this[kt(793)],mipLevel:0,origin:{x:se,y:ve},aspect:kt(768)},{buffer:this[kt(497)],offset:0,bytesPerRow:256*Math[kt(552)](4*this[kt(793)][kt(412)]/256),rowsPerImage:1},{width:1,height:1}),this.device.queue.submit([bt[kt(1091)]()]),this[kt(497)][kt(705)](GPUMapMode[kt(470)]).then(()=>{var lt=kt,ot=this[lt(497)][lt(827)](0,4),ot=new Uint32Array(ot)[0];this[lt(497)].unmap(),this.readPickId_noLocking=!0,je(ot)})):Ft()})}[o(669)](se,ve){let je=(Ft,kt)=>{var bt=wh,lt=this[bt(1099)][bt(981)]();lt[bt(809)]({texture:this[bt(1102)],mipLevel:0,origin:{x:se,y:ve},aspect:bt(768)},{buffer:this.readPickPosition_VmBuffer,offset:0,bytesPerRow:256*Math[bt(552)](4*this[bt(1102)][bt(412)]*4/256),rowsPerImage:1},{width:1,height:1}),this.device[bt(704)][bt(635)]([lt[bt(1091)]()]),this.readPickPosition_VmBuffer[bt(705)](GPUMapMode[bt(470)])[bt(442)](()=>{var ot=bt,tt=this[ot(774)][ot(827)](0,16),tt=Array[ot(1050)](new Float32Array(tt));this[ot(774)][ot(484)](),this.readPickPosition_noLocking=!0,tt[3]!=0&&D[ot(987)](tt,this[ot(1031)][ot(910)],this[ot(979)]),Ft(this.lastPickPositionValue)})};return new Promise((Ft,kt)=>{var bt=wh;this[bt(837)]?(this[bt(837)]=!1,je(Ft)):setTimeout(()=>{je(Ft)},10)})}[o(771)](){var se=o,ve;this[se(872)]&&this.fig.directData_Heartbeat&&(this[se(872)]=!1,this[se(1031)][se(606)]=!1,(ve=this.device[se(981)]())[se(913)](this[se(1056)],0,this[se(788)],0,4),this[se(1117)](ve),ve[se(913)](this.instancesArea_atomicData_VmBuffer,0,this[se(556)],0,4),ve[se(913)](this[se(985)],0,this[se(556)],4,this[se(985)][se(605)]),this.device.queue[se(635)]([ve[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,ve=this[se(1099)][se(981)]();ve.copyBufferToBuffer(this.zeroVmBuffer,0,this.meshRender_transparentColorData_VmBuffer,0,this[se(569)][se(605)]),this[se(1099)][se(704)][se(635)]([ve[se(1091)]()])}[o(991)](){var se=o;this[se(771)]();var ve=this[se(1099)][se(981)]();this[se(462)](ve),this[se(939)](ve),this[se(537)](ve),this[se(1031)].gi&&this[se(824)](ve),ve.copyBufferToBuffer(this[se(1056)],0,this[se(604)],0,this[se(604)][se(605)]),this[se(725)](ve),this[se(965)]&&this[se(1031)].kj&&ve[se(913)](this[se(946)],0,this[se(459)],0,128),this[se(1e3)]&&this[se(1031)][se(642)]&&ve[se(913)](this.lightInfo_VmBuffer,32,this.readTemp_VmBuffer2,0,64),this[se(808)]&&this[se(954)]&&ve[se(913)](this[se(920)],0,this.renderMaterial_read_VmBuffer,0,this[se(920)][se(605)]),this[se(486)].Render(ve),this[se(869)][se(991)](ve),globalThis[se(589)]&&this[se(973)](ve),this.fig[se(672)]?this[se(465)](ve):this[se(686)](ve),this[se(1031)].ksh&&this[se(814)](ve),this[se(710)]&&this.fig.xn&&(ve[se(803)](this[se(883)],0,10,this[se(692)],0),ve.copyBufferToBuffer(this[se(692)],0,this.timestampQueryResultBuffer,0,this.timestampQueryResultBuffer.size)),this[se(1099)][se(704)][se(635)]([ve[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 Rt{get[o(1046)](){var se=o;return this[se(845)]}set[o(1046)](se){var ve=o;this[ve(845)]=D[ve(760)](se)}get[o(723)](){return this._target}set[o(723)](se){var ve=o;this[ve(562)]=D[ve(760)](se)}get[o(796)](){var se=o,ve=D[se(665)](0,0,-1);return D[se(802)](ve,this[se(1116)])}constructor(se,ve){var je=o;if(this[je(845)]=D[je(807)](0,0,0),this[je(562)]=D[je(807)](1,1,1),this[je(1116)]=V[je(626)](),this.worldMatrix=M[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:D[je(807)](),upLeft_position:D[je(807)]()},se){let Ft=(bt,lt)=>{var ot=je;switch(bt[ot(1022)]){case"KeyW":this.status[ot(521)][ot(848)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(816):this[ot(953)].keyboard[ot(1057)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1090):this[ot(953)][ot(521)].left=lt,bt[ot(1096)](),bt.stopPropagation();break;case"KeyD":this[ot(953)][ot(521)][ot(1034)]=lt,bt.preventDefault(),bt[ot(517)]();break;case ot(755):this[ot(953)][ot(521)].up=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(855):this.status[ot(521)].down=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(901):this[ot(953)][ot(521)][ot(1058)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"KeyO":this[ot(953)][ot(521)][ot(693)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(446):case ot(1023):this[ot(953)][ot(521)][ot(427)]=lt,bt.preventDefault(),bt[ot(517)]();break;case"KeyK":case ot(594):this[ot(953)][ot(521)][ot(1061)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1086):case ot(532):this[ot(953)][ot(521)][ot(773)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(434):case ot(519):this[ot(953)][ot(521)][ot(861)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"ControlLeft":this[ot(953)].keyboard[ot(511)]=lt;break;case ot(970):this.status[ot(521)][ot(478)]=lt;break;case"KeyC":this[ot(953)][ot(521)][ot(651)]=lt;break;case ot(464):this.status.keyboard[ot(1030)]=lt}},kt=(window[je(801)](je(499),bt=>Ft(bt,!0)),window[je(801)]("keyup",bt=>Ft(bt,!1)),se[je(801)]("contextmenu",function(bt){var lt=je;bt[lt(1096)]()}),(bt,lt)=>{var ot=je;switch(this.status[ot(450)][ot(988)]=bt[ot(988)],bt.button){case 0:(this[ot(953)][ot(450)][ot(995)]=lt)?(this[ot(953)][ot(450)][ot(715)]=bt.clientX,this[ot(953)][ot(450)][ot(679)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot,ct;this[ze(953)][ze(416)]=D[ze(807)](tt[0],tt[1],tt[2]),tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&this.status.keyboard[ze(511)]&&(tt=this[ze(953)][ze(416)],ct=D.subtract(this.position,tt),D.normalize(ct,ct),ct=D.add(tt,D[ze(708)](ct,20)),this.setTargetAndPosition(tt,ct))})):(this.status[ot(450)][ot(424)]=bt.clientX,this.status[ot(450)][ot(880)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt.clientY).then(tt=>{var ze=ot;this[ze(953)][ze(436)]=D[ze(807)](tt[0],tt[1],tt[2]),this[ze(953)].downLeft_position[0]!=0&&this[ze(953)][ze(416)][1]!=0&&this[ze(953)][ze(416)][2]!=0&&this[ze(953)].upLeft_position[0]!=0&&this[ze(953)][ze(436)][1]!=0&&this[ze(953)].upLeft_position[2]!=0&&(D[ze(601)](this[ze(845)],D[ze(601)](this[ze(953)].upLeft_position,this[ze(953)].downLeft_position),this[ze(845)]),this.computeMatrix())}));break;case 1:this[ot(953)][ot(450)][ot(460)]=lt;break;case 2:(this.status[ot(450)].right=lt)?(this[ot(953)][ot(450)].downRightX=bt.clientX,this[ot(953)][ot(450)][ot(524)]=bt[ot(783)],ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot;tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&(this[ze(723)]=D.create(tt[0],tt[1],tt[2]))})):(this[ot(953)][ot(450)].upRightX=bt[ot(507)],this[ot(953)][ot(450)][ot(798)]=bt[ot(783)])}});se[je(887)][je(595)]=je(536),se[je(801)](je(1006),bt=>kt(bt,!0)),se.addEventListener(je(994),bt=>kt(bt,!1)),se[je(801)](je(972),bt=>{var lt=je;this[lt(953)][lt(450)][lt(507)]=bt.clientX,this[lt(953)].mouse[lt(783)]=bt[lt(783)],(this[lt(953)][lt(450)][lt(995)]||this[lt(953)][lt(450)].right)&&(this[lt(953)][lt(450)][lt(884)]-=bt[lt(884)],this[lt(953)][lt(450)][lt(757)]-=bt[lt(757)])}),se[je(801)](je(460),bt=>{var lt=je;this[lt(953)][lt(450)].scroll+=Math[lt(469)](bt.deltaY),bt[lt(1096)](),bt[lt(517)]()},{passive:!1})}}[o(1079)](kt,bt,je=D.create(0,1,0)){var Ft=o;D[Ft(760)](kt,this[Ft(562)]),D[Ft(760)](bt,this[Ft(845)]);var bt=D.normalize(D[Ft(601)](bt,kt)),kt=D[Ft(665)](0,0,1),kt=(this[Ft(1116)]=V.rotationTo(kt,bt),D[Ft(802)](D[Ft(665)](0,1,0),this[Ft(1116)])),bt=D[Ft(542)](kt,je);1e-7<D.length(bt)&&(kt=Math[Ft(785)](D.dot(kt,je)),je=V.fromAxisAngle(D[Ft(1085)](bt),kt),this[Ft(1116)]=V[Ft(645)](je,this[Ft(1116)])),this[Ft(568)]()}update(se){var ve=o,je,Ft=D[ve(802)](D[ve(665)](1,0,0),this.orientation),kt=D[ve(802)](D[ve(665)](0,1,0),this[ve(1116)]),bt=D[ve(802)](D[ve(665)](0,0,1),this[ve(1116)]);this[ve(953)][ve(450)][ve(884)]===0&&this[ve(953)][ve(450)][ve(757)]===0||(this[ve(953)].mouse[ve(988)]===2?(je=this[ve(953)].mouse.movementX*this[ve(948)]*se,se=this[ve(953)][ve(450)][ve(757)]*this.rotationSpeed*se,se=V.fromAxisAngle(Ft,se),je=V[ve(997)](kt,je),se=V[ve(645)](se,je),je=D[ve(601)](this._position,this[ve(562)]),je=D.transformQuat(je,se),D.add(this[ve(562)],je,this[ve(845)]),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])):this[ve(953)].mouse[ve(988)]),this.status[ve(450)][ve(576)]!==0&&(je=this.status[ve(450)][ve(576)]*this[ve(670)],D[ve(987)](this[ve(845)],D[ve(708)](bt,je),this[ve(845)])),this[ve(953)][ve(521)].up&&D[ve(987)](this[ve(845)],D[ve(708)](kt,this[ve(953)][ve(521)].shiftLeft?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(1064)]&&D.add(this[ve(845)],D.scale(kt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this._position),this[ve(953)][ve(521)][ve(995)]&&D[ve(987)](this._position,D[ve(708)](Ft,-(this.status.keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this[ve(953)][ve(521)][ve(1034)]&&D[ve(987)](this[ve(845)],D[ve(708)](Ft,this[ve(953)].keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(848)]&&D.add(this._position,D[ve(708)](bt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this.status[ve(521)][ve(1057)]&&D[ve(987)](this[ve(845)],D[ve(708)](bt,this[ve(953)][ve(521)].shiftLeft?4*this.keyboardSpeed:this[ve(476)]),this[ve(845)]),this[ve(953)][ve(521)][ve(1058)]&&(se=V[ve(997)](bt,-.01),this[ve(1116)]=V.multiply(se,this[ve(1116)])),this[ve(953)][ve(521)][ve(693)]&&(je=V[ve(997)](bt,.01),this.orientation=V.multiply(je,this.orientation)),this[ve(953)][ve(521)][ve(773)]&&(se=V[ve(997)](kt,.01),this.orientation=V[ve(645)](se,this[ve(1116)])),this.status[ve(521)].rightHeading&&(bt=V[ve(997)](kt,-.01),this[ve(1116)]=V[ve(645)](bt,this[ve(1116)])),this[ve(953)][ve(521)][ve(427)]&&(je=V[ve(997)](Ft,.01),this.orientation=V[ve(645)](je,this[ve(1116)])),this.status[ve(521)][ve(1061)]&&(se=V[ve(997)](Ft,-.01),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])),this.status.keyboard[ve(651)]&&(this[ve(476)]-=.01*this[ve(476)],this.keyboardSpeed<.01)&&(this[ve(476)]=.01),this[ve(953)][ve(521)].speedUp&&(this.keyboardSpeed*=1.01),this[ve(568)](),this.status[ve(450)][ve(884)]=0,this.status[ve(450)][ve(757)]=0,this.status[ve(450)][ve(576)]=0}[o(568)](){var se=o;M[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 Vt{constructor(se){var ve=o;if(this[ve(1114)]=M,this[ve(930)]=N,this[ve(923)]=D,this[ve(754)]=G,this[ve(520)]=V,this[ve(677)]=1,this.dataCallBack={},this.modelData={},this[ve(606)]=!0,this.spaceIndex_Heartbeat=!0,this.xn=!1,this[ve(654)]=!1,this.kj=!1,this.kj2=!1,this.gi=!1,this[ve(922)]={type:1,direction:D[ve(1085)](D.create(-.378604181697245,.8191225954117374,.4309258025313624)),color:D[ve(807)](1,1,1)},this[ve(509)]={fov:2*Math.PI/5,aspect:1,near:.1,far:1e3},this[ve(1069)]=0,this[ve(910)]=D.create(),this.OnInitialized=()=>{},this[ve(886)]=(kt,bt)=>{},this[ve(573)]=kt=>{},this[ve(984)]="",this[ve(1005)]="",this[ve(737)]=Date[ve(495)](),this[ve(553)]=0,this.tempRL=!0,this[ve(479)]=!1,this[ve(745)]=new Float64Array(84),console[ve(826)]("ser_V20250613"),se&&se[ve(1074)]&&se[ve(993)]){if(this[ve(993)]=se[ve(993)],this[ve(672)]=se[ve(1074)],se.Widget.scene.ser)return void console[ve(505)](ve(1059));this.cesiumWidget[ve(859)][ve(555)]=this}this.cesiumWidget?(this[ve(1088)]=new OffscreenCanvas(this[ve(672)][ve(859)][ve(1088)].width,this[ve(672)].scene.canvas[ve(864)]),this.depthCanvas=new OffscreenCanvas(this[ve(672)][ve(859)].canvas[ve(412)],this[ve(672)][ve(859)][ve(1088)][ve(864)]),this[ve(835)]=new Rt(null,this)):(this[ve(1088)]=document[ve(602)](ve(1088)),this.canvas[ve(412)]=1920,this[ve(1088)][ve(864)]=970,document[ve(455)].appendChild(this[ve(1088)]),this[ve(835)]=new Rt(this[ve(1088)],this),this.camera[ve(1079)](D[ve(807)](0,0,0),D[ve(807)](0,100,0),D[ve(807)](0,1,0))),this[ve(1084)]=[],this[ve(735)]=new ArrayBuffer(512),this[ve(439)]=new Float32Array(this[ve(735)]),this[ve(952)]=new Uint32Array(this.scene_dataBuffer),this[ve(547)]=new ArrayBuffer(96),this[ve(1075)]=new Float32Array(this[ve(547)]),this.lightInfo_dataViewF32[0]=this[ve(922)][ve(468)],this[ve(1075)][ve(895)](this.lightInfo.direction,1),this[ve(1075)].set(this[ve(922)][ve(431)],4),this[ve(1008)]=M[ve(626)](),this[ve(587)]=M[ve(626)](),this[ve(838)]=M.identity(),this[ve(640)]=M[ve(626)](),this.projectionViewMatrix=M[ve(626)](),this[ve(1024)]=M[ve(626)]();let je=!1,Ft=(kt,bt)=>{var lt=ve;switch(kt[lt(1022)]){case lt(650):je=bt,kt[lt(1096)](),kt[lt(517)]();break;case lt(638):bt||(this[lt(479)]=!this[lt(479)])}};window[ve(801)](ve(499),kt=>Ft(kt,!0)),window[ve(801)](ve(575),kt=>Ft(kt,!1)),this[ve(702)]=new yt(this),se=new v(new URL(f.p+f.u(671),f.b)),this[ve(1067)]=se[ve(759)](),this[ve(1067)][ve(801)](ve(622),kt=>{var bt=ve;if(kt[bt(836)])switch(kt[bt(836)][bt(999)]){case bt(925):this[bt(925)][kt.data.cbId]?(kt[bt(836)][bt(832)](bt(914))?this.dataCallBack[kt[bt(836)][bt(941)]].resolve(kt[bt(836)][bt(914)]):kt[bt(836)][bt(832)](bt(593))&&this[bt(925)][kt.data[bt(941)]][bt(593)](kt[bt(836)][bt(593)]),delete this.dataCallBack[kt[bt(836)][bt(941)]]):globalThis[bt(564)](kt.data);break;case bt(617):for(var lt in kt[bt(836)][bt(512)])this.modelData[bt(832)](lt)?Object[bt(726)](this.modelData[lt],kt[bt(836)].modelData[lt]):this[bt(512)][lt]=kt[bt(836)][bt(512)][lt];this[bt(432)](),this.OnModelServer(kt.data[bt(512)],kt[bt(836)][bt(1109)]);break;case bt(573):this[bt(573)](kt[bt(836)][bt(839)]);break;case bt(560):if(kt[bt(836)].targets)for(var ot of kt.data.targets)this[bt(702)].UpVmData(ot);else this.renderEngine[bt(560)](kt[bt(836)]);break;case bt(992):this[bt(702)][bt(908)](kt[bt(836)]);break;case bt(771):this[bt(702)].VisibleTreeUpdate();break;case bt(699):this[bt(1069)]=kt[bt(836)][bt(1069)];break;case bt(581):this[bt(606)]=!0;break;case bt(847):this[bt(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 ve=o;se[ve(592)]("/")!==se[ve(800)]-1&&(se+="/");var je=this[ve(1084)][ve(800)];for(let Ft=0;Ft<this[ve(1084)][ve(800)];Ft++)if(this.serverList[Ft]===se)return Ft;return this.serverList[ve(918)](se),this[ve(1067)][ve(564)]({msgType:ve(1103),serverUrl:se,serverId:je}),je}[o(545)](){let se=()=>{var ve=wh;this[ve(991)](),requestAnimationFrame(se)};requestAnimationFrame(se)}[o(842)](){var se=o;this.cesiumWidget?(ve=this[se(672)][se(859)][se(504)].uniformState,this[se(1005)]=ve[se(747)][se(770)](),this.projectionMatrix=M.frustumReverseZ(ve[se(685)].z,ve._frustumPlanes.w,ve[se(685)].y,ve[se(685)].x,ve._currentFrustum.x,ve[se(490)].y)):this[se(838)]=M[se(1113)](this.cameraParameter.fov,this[se(509)].aspect,this[se(509)][se(1108)],this.cameraParameter[se(475)]),this[se(640)]=M[se(584)](this.projectionMatrix);var ve=M.setTranslation(M.scale(M.identity(),D.create(.5,.5,1)),D[se(807)](.5,.5,0)),ve=M[se(645)](ve,this[se(838)]);this[se(1024)]=M[se(645)]([this[se(1088)].width,0,0,0,0,this[se(1088)].height,0,0,0,0,1,0,0,0,0,1],ve)}[o(991)](){var se=o,ve,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)]())):(ve=((je=Date[se(495)]())-this[se(737)])/1e3,this[se(737)]=je,this[se(835)].update(ve)),this.oldCameraData===this[se(835)][se(761)][se(770)]()&&this.instancesCount!==0||(this[se(984)]=this[se(835)][se(761)].toString(),je=D[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)]()),(ve=Array.from(this.camera[se(761)]))[12]-=this[se(910)][0],ve[13]-=this[se(910)][1],ve[14]-=this[se(910)][2],M[se(760)](ve,this[se(587)]),this[se(1008)]=M[se(584)](ve),M[se(645)](this.projectionMatrix,this.viewMatrix,this[se(574)]),this[se(706)]=M[se(584)](this[se(574)]),this[se(672)]&&(je=M[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]=ve[12],this.scene_dataViewF32[50]=ve[13],this[se(439)][51]=ve[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:M.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 ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([1]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)][ve(564)]({msgType:ve(892),modelId:se,status:1}))}HideModel(se){var ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([0]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)].postMessage({msgType:ve(892),modelId:se,status:0}))}PickId(se,ve){var je=o;return this[je(702)][je(806)](se,ve).then(Ft=>new Promise((kt,bt)=>{var lt=je,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:tt=>{kt(tt)},reject:tt=>{bt()}},this[lt(1067)][lt(564)]({msgType:lt(616),instancePtr:Ft,cbId:ot})}))}[o(527)](se,ve){var je=o;return this.renderEngine[je(806)](se,ve)}[o(577)](se,ve){var je=o;return this[je(702)].PickPosition(se,ve)}[o(766)](se,ve){var je=o,Ft;this[je(512)][se]&&((Ft=this[je(512)][se])[je(503)]=Array[je(1050)](ve),(ve=Array.from(ve))[12]-=this.accuracyOffset[0],ve[13]-=this[je(910)][1],ve[14]-=this[je(910)][2],ve=new Float32Array(ve),this.renderEngine.device.queue[je(1039)](this[je(702)][je(680)],4*Ft[je(1016)],ve),this.ddWorker[je(564)]({msgType:je(766),modelId:se,modelMatrixArr:Ft[je(503)]}))}[o(432)](){var se=o;for(var ve in this.modelData){var je,ve=this[se(512)][ve];ve[se(1016)]&&((je=Array.from(ve.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*ve[se(1016)],je))}this[se(868)](),this.UpdateExplodeAccuracyOffset()}CreateMaterial(se){return new Promise((ve,je)=>{var Ft=wh,kt=Date[Ft(495)]();this[Ft(925)][kt]={resolve:ve,reject:je},this[Ft(1067)].postMessage({msgType:Ft(634),color:se,cbId:kt})})}[o(898)](se,ve,je,Ft){var kt=o;this[kt(1067)][kt(564)]({msgType:kt(898),modelId:se,materialId:ve,color:je,overlay:Ft})}GetMaterial(se,ve){return new Promise((je,Ft)=>{var kt=wh,bt=Date.now();this[kt(925)][bt]={resolve:lt=>{je(lt)},reject:lt=>{Ft()}},this[kt(1067)][kt(564)]({msgType:kt(879),modelId:se,materialId:ve,cbId:bt})})}SetInstanceMaterialByInstancePtr(se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this.renderEngine.instanceVmBuffer,4*(se+23),new Uint32Array([ve]))}[o(513)](se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this[je(702)][je(666)],4*(se+22),new Uint32Array([ve]))}SetInstanceMaterial(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(810),materialPtr:se,idBuffer:ve.buffer},[ve[je(877)]])}SetInstanceStatus(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(969),status:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(896)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(896),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}[o(477)](se){var ve=o;se=new Uint32Array(se),this[ve(1067)][ve(564)]({msgType:ve(477),idBuffer:se.buffer},[se[ve(877)]])}[o(878)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(878),materialPtr:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(1070)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:"SetInstanceStatusByComponentIds",status:se,idBuffer:ve.buffer},[ve.buffer])}[o(746)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(746),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}CancelInstanceTransformByComponentIds(se){var ve=o;se=new Uint32Array(se),this[ve(1067)].postMessage({msgType:ve(739),idBuffer:se[ve(877)]},[se.buffer])}SetInstanceMaterialByExtendedPropertiesId(se,ve){var je=o;this.ddWorker.postMessage({msgType:je(597),materialPtr:se,extendedPropertiesIds:ve})}[o(662)](se,ve){var je=o;this.ddWorker[je(564)]({msgType:"SetInstanceStatusByExtendedPropertiesId",status:se,extendedPropertiesIds:ve})}[o(609)](se,ve){var je=o;this[je(1067)][je(564)]({msgType:je(609),transform:se,extendedPropertiesIds:ve})}[o(977)](se){var ve=o;this[ve(1067)][ve(564)]({msgType:ve(977),extendedPropertiesIds:se})}[o(776)](se,ve,je,Ft){return new Promise((kt,bt)=>{var lt=wh,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:kt,reject:bt},this[lt(1067)][lt(564)]({msgType:lt(776),x1:se,y1:ve,x2:je,y2:Ft,width:this[lt(1088)].width,height:this[lt(1088)][lt(864)],cbId:ot})})}[o(1012)](se,ve,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*(ve?-1:1),this[Ft(745)].set(je,4);for(let bt=1;bt<=Math[Ft(811)](this[Ft(745)][0]);bt+=1){var kt=D[Ft(1085)]([this.clipPlane[4*bt],this[Ft(745)][4*bt+1],this[Ft(745)][4*bt+2]]);this[Ft(745)][4*bt]=kt[0],this[Ft(745)][4*bt+1]=kt[1],this[Ft(745)][4*bt+2]=kt[2]}}this[Ft(868)]()}[o(868)](){var se=o,ve=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],M[se(584)](je,je));for(let Wt=1;Wt<=Math[se(811)](this[se(745)][0]);Wt++){var ct=this[se(745)][4*Wt],kt=this.clipPlane[4*Wt+1],bt=this[se(745)][4*Wt+2],lt=this[se(745)][4*Wt+3],ot=ct*Ft[0]+kt*Ft[1]+bt*Ft[2]+lt*Ft[3],tt=ct*Ft[4]+kt*Ft[5]+bt*Ft[6]+lt*Ft[7],ze=ct*Ft[8]+kt*Ft[9]+bt*Ft[10]+lt*Ft[11],ct=ct*Ft[12]+kt*Ft[13]+bt*Ft[14]+lt*Ft[15];ve[4*Wt]=ot,ve[4*Wt+1]=tt,ve[4*Wt+2]=ze,ve[4*Wt+3]=ct}ve[0]=this[se(745)][0]}else ve[0]=0;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(449)],0,ve)}SetExplode(se,ve,je,Ft,kt){var bt=o;se===void 0||Number.isNaN(se)||(this[bt(702)][bt(804)][0]=se),ve===void 0||Number[bt(1021)](ve)||(this[bt(702)][bt(804)][1]=ve),je===void 0||Number.isNaN(je)||(this[bt(702)].explodeParam[2]=je),Ft&&3<=Ft.length&&(this[bt(702)][bt(804)][3]=Ft[0],this.renderEngine[bt(804)][4]=Ft[1],this.renderEngine.explodeParam[5]=Ft[2]),kt&&3<=kt.length&&(se=D[bt(1085)](kt),this[bt(702)][bt(804)][6]=se[0],this[bt(702)][bt(804)][7]=se[1],this[bt(702)][bt(804)][8]=se[2]),this.UpdateExplodeAccuracyOffset()}[o(1112)](){var se=o,ve=new Float32Array(this[se(702)][se(804)]);ve[3]-=this.accuracyOffset[0],ve[4]-=this.accuracyOffset[1],ve[5]-=this[se(910)][2],this[se(702)][se(1099)][se(704)].writeBuffer(this.renderEngine[se(792)],0,ve)}[o(765)](){var se=o;let ve=this[se(672)][se(859)];if(!ve.initFine){ve[se(456)]=!0;let je={sources:[se(722)],defines:[]},Ft=new this[se(993)].ShaderSource({sources:[se(644)],defines:[]}),kt=new this[se(993)][se(860)](je),bt=ve.context[se(867)].getShaderProgram({vertexShaderSource:Ft,fragmentShaderSource:kt}),lt=new this.Cesium[se(673)]({context:ve.context,attributes:[]}),ot=(lt[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)]}),ze={bimColorTexture:()=>(this[se(991)](),ve[se(1100)]?ve.serColorTexture[se(453)]({source:ve[se(555)][se(1088)],skipColorSpaceConversion:!0}):ve.serColorTexture=new this.Cesium[se(1038)]({context:ve[se(504)],source:ve.ser[se(1088)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(1100)]),bimDepthTexture:()=>(ve.serDepthTexture?ve.serDepthTexture[se(453)]({source:ve.ser[se(515)],skipColorSpaceConversion:!0}):ve[se(890)]=new this[se(993)][se(1038)]({context:ve[se(504)],source:ve[se(555)][se(515)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(890)])},ct=new this[se(993)][se(828)]({x:0,y:0,z:0},6379137),Wt=new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)].Pass.OPAQUE,boundingVolume:ct});Wt.derivedCommands[se(487)]={command:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id},Wt[se(674)][se(487)][se(885)][se(674)]={depth:{command:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id,depthOnlyCommand:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})}},Wt.derivedCommands[se(649)]={shaderProgramId:bt.id,depthOnlyCommand:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})},Wt.fine=!0,ve.primitives[se(987)]({fine:!0,isDestroyed:()=>!1,update:()=>{ve.frameState.commandList.push(Wt)}})}}}return m}};function wh(o,f){var m=mge();return wh=function(x,y){x=x-411;var v=m[x];return v},wh(o,f)}typeof exports=="object"&&nie(698)==typeof module?module.exports=fge():nie(728)==typeof define&&define[nie(567)]?define([],fge):nie(698)==typeof exports?exports[nie(555)]=fge():Imr.ser=fge();function C2(o){this._earthCtrl=o,this._viewer=o.viewer,this._fig=null,this.serverAddress=""}C2.prototype.create=async function(){let o=this;return this._fig=new ser.serMain({Cesium:Vi,Widget:o._viewer}),await new Promise(f=>{o._fig.OnInitialized=()=>{f(o)}})};C2.prototype.setModelTransform=function(o,f){let m=Ee.toArray(_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.lon,f.lat,f.height)));if(f.roll){let x=be.toRadians(f.roll??0),y=Ee.fromRotationTranslation(Ut.fromRotationZ(x));Ee.multiply(m,y,m)}this._fig.SetModelTransform(o,m)};C2.prototype.showModel=function(o){this._fig.ShowModel(o)};C2.prototype.hideModel=function(o){this._fig.HideModel(o)};C2.prototype.destroy=function(){this._fig.Destroy()};C2.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})}})};C2.prototype.getModelBoundingSphere=function(o){let f=this.modelList[o],m=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box),{}),x=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box,3),{});return Ei.fromPoints([m,x],new Ei)};C2.prototype.clickSem=function(o){let f=this,m=0;f._viewer.screenSpaceEventHandler.setInputAction(function(y){m!==0&&(f._fig.SetInstanceStatusByInstancePtr(m,1),m=0),f._fig.PickId(y.position.x,y.position.y).then(v=>{v&&(m=v.instancePtr,f._fig.SetInstanceStatusByInstancePtr(v.instancePtr,2)),o&&o(v)})},Si.LEFT_CLICK)};C2.prototype.unSelect=function(o){o!==0&&this._fig.SetInstanceStatusByInstancePtr(o,1)};C2.prototype.pickWorldPosition=function(o,f,m){this._fig.PickWorldPosition(o,f).then(x=>{m&&m(x)})};C2.prototype.semModeClipping=function(o){let f=this;return new kxe(f._earthCtrl,f._fig,o)};C2.prototype.setMaterialColor=function(o,f,m,x){this._fig.SetMaterialColor(o,f,[m.red,m.green,m.blue,m.alpha],x)};C2.prototype.choice=function(o){return o=o??{},o.bim=o.ser??this._fig,new Uxe(o,this._earthCtrl,Vi)};C2.prototype.setExplode=function(o,f,m,x,y){this._fig.SetExplode(o,f,m,x,y)};C2.prototype.showComponent=function(o){o.showComponentArr.length>0&&this._fig.SetInstanceStatus(o.status,o.showComponentArr)};var MMt=C2;var Rmr=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(y,v){o.materials[v].extensions.KHR_technique_webgl.values=o.materials[v].values,o.materials[v].extensions.KHR_techniques_webgl=o.materials[v].extensions.KHR_technique_webgl;let C=o.materials[v].extensions.KHR_techniques_webgl;for(let T in C.values){let S=x[C.technique].uniforms;for(let w in S)if(S[w]===T){C.values[w]=C.values[T],delete C.values[T];break}}}),x.forEach(function(y){for(let v in y.attributes){let C=y.attributes[v];y.attributes[v]=y.parameters[C]}for(let v in y.uniforms){let C=y.uniforms[v];y.uniforms[v]=y.parameters[C]}})}},gge=typeof window<"u"?window:typeof self<"u"?self:{},xge=setTimeout(()=>{xge=void 0,gge.logSmartEarth&&gge.logSmartEarth()},1e4);function VMt(o,f){ia.supportsImageRenderingPixelated()&&(o.viewer.resolutionScale=f?window.devicePixelRatio:1),o.viewer.scene.fxaa=f,o.viewer.scene.postProcessStages.fxaa.enabled=f}function id(o,f={},m,x,y){this._core=new Yb(this),this._cesium=Vi,xge&&(clearTimeout(xge),xge=void 0,f.VERSION!==!1&&gge.logSmartEarth&&gge.logSmartEarth()),this.G=65535,m=m??si.EMPTY_OBJECT,F(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=$vt();let v=f.language??vp.ZH_CN;this.i18n=new PMt(v),f.toolbar=f.toolbar??!1,f.baseLayerPicker=f.baseLayerPicker??!1,f.shadows=!1,f.skyAtmosphere=new zq,f.terrainShadows=cl.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:T=!1}=C;f.contextOptions={webgl:{alpha:T,preserveDrawingBuffer:!0},failIfMajorPerformanceCaveat:!1,ellipsoidCoordinates:f.ellipsoidCoordinates},f.navigation=!0,f.disableRightClickMenu=!0,typeof f=="string"?f.baseLayer=new Up(new V1({url:f})):(f.url&&(f.baseLayer=new Up(new V1({url:f.url}))),this._core.extend(f,f,!0));let S=F(f.baseLayer),w;if(f.baseLayerPicker){S=!0;let R=this.getAllImageryView();if(f.basemaps)f.basemaps.forEach(P=>{f.imageryProviderViewModels.push(R[P])});else for(let P in R)f.imageryProviderViewModels.push(R[P])}else!f.imageryProvider&&!f.baseLayer?(w=Up.fromProviderAsync(V1.fromUrl(`${globalThis.GEOWORLD_BASE_URL}Workers/image/earth.jpg`)),f.baseLayer=w):(S=!0,f.imageryProvider&&(f.baseLayer=Up.fromProviderAsync(f.imageryProvider)));let E={destination:Z.fromDegrees(f.x?f.x:93.53987,f.y?f.y:24.77445,f.z?f.z:257935006e-1),orientation:{heading:be.toRadians(f.heading??0),pitch:be.toRadians(f.pitch??-90),roll:be.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 n0e(o,f),this._tree=x,this._Viewer.scene.globe.baseColor=Xe.WHITE,this._Viewer.shadowMap.size=2048,this._Viewer._cesiumWidget._creditContainer.style.display="none",this._Viewer.terrainShadows=cl.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 R="rgba(0,0,0,0)";this._Viewer.scene.backgroundColor=Xe.fromCssColorString(R),this._Viewer.scene.light=new k4({direction:new Z(1,-.9,-.9)}),f.backgroundImage&&(this._Viewer.container.style.backgroundImage=`url(${f.backgroundImage})`)}else this._Viewer.scene.globe.depthTestAgainstTerrain=!0;if(f.defaultImagery&&!S&&window.navigator.onLine&&this.judgeOnline().then(async R=>{R&&(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(w))}).catch(R=>{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 n9e(this),this._camera=new bZe(this),this._measure=new YZe(this),this._shapeTool=new yCt(this),this._editTool=new QZe(this),this._factory=new T3(this),this._tools=new XWe(this),this._edit=new Ake(this),this._analysis=new iUe(this),this._userScene=new rke(this,m),this._view=new zRt(this),this._bim=new jRt(this),this._ser=new MMt(this),this._MilitaryPlotting=new lUe(this),this._atmosphere=new ibt(this),this._simulate=new AMt(this),f.infoBar&&(this._infoBar=new bIt(this)),f.maxViewHeight&&(this._Viewer.scene.screenSpaceCameraController.maximumZoomDistance=f.maxViewHeight),f.minViewHeight||f.maxViewPitch){this.minViewHeight=f.minViewHeight,this.maxViewPitch=f.maxViewPitch&&be.toRadians(f.maxViewPitch);let R=0,P=this._Viewer.scene,A=!1;if(this.maxViewPitch){let M=new Lr(this._Viewer.scene.canvas);M.setInputAction(()=>{A=!0},Si.MIDDLE_DOWN),M.setInputAction(()=>{A=!1},Si.MIDDLE_UP),M.setInputAction(()=>{A=!0},Si.RIGHT_DOWN),M.setInputAction(()=>{A=!1},Si.RIGHT_UP)}this._Viewer.scene.preRender.addEventListener(()=>{let M=this._Viewer.camera;if(!(!M||!M.positionCartographic)){if(this.maxViewPitch){let V=M.pitch;A&&V>this.maxViewPitch?(V=this.maxViewPitch,M.setView({destination:this.oldPosition||M.position.clone(),orientation:{heading:M.heading,pitch:V,roll:0}})):this.oldPosition=M.position.clone()}if(this.minViewHeight){R=P.globe.getHeight(M.positionCartographic)||R;let G,D,N=M.positionCartographic.height-R;this._Viewer.scene.globe.translucency.enabled||this._Analysis&&(this._Analysis._UndergroundMode&&this._Analysis._UndergroundMode.isUndergroundMode||this._Analysis._StreetView&&this._Analysis._StreetView.isStreetView)?(G=M.positionCartographic.height<-200,D=-200):(G=N<this.minViewHeight,D=R+this.minViewHeight);let k=M.pitch<0?M.pitch:0;G?M.setView({destination:this.oldPosition||Z.fromRadians(M.positionCartographic.longitude,M.positionCartographic.latitude,D),orientation:{heading:M.heading,pitch:k,roll:0}}):this.oldPosition=M.position.clone()}}})}let L={};Ts.DEFAULT_VIEW_RECTANGLE=vi.fromDegrees(79,0,130,60),f.navigationOption=f.navigationOption??si.EMPTY_OBJECT,L.defaultResetView=f.navigationOption.defaultResetView??Gt.fromCartesian(E.destination),L.enableCompass=f.navigationOption.enableCompass??!0,L.enableZoomControls=f.navigationOption.enableZoomControls??!0,L.enableDistanceLegend=f.navigationOption.enableDistanceLegend??!0,L.enableCompassOuterRing=f.navigationOption.enableCompassOuterRing??!0,this._Viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(this._cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._Viewer.extend(this._cesium.viewerCesiumNavigationMixin,L),this.camera.setView(E),y&&typeof y=="function"&&y(),CIt.parse(this,m),f.mouseDownView&&this.mouseDownView(!0),f.printLog&&this.addLogo(),Object.defineProperties(Ay.prototype,{_cachedGltf:{configurable:!0,set:function(R){this._vtxf_cachedGltf=R,this._vtxf_cachedGltf&&this._vtxf_cachedGltf._gltf&&Rmr(this._vtxf_cachedGltf._gltf)},get:function(){return this._vtxf_cachedGltf}}}),f.disableRightClickMenu&&(document.oncontextmenu=function(){return!1});let I=function(R){if(R.cesiumWidget._supportsImageRenderingPixelated&&window&&window.devicePixelRatio){let A=window.devicePixelRatio;for(;A>=2;)A/=2;R.resolutionScale=A}};G1.prototype.getRenderedBestLevelInfo=function(){let R=this.getRenderedLevelInfo(),P=0;for(let A in R)P<Number(A)&&(P=Number(A));return{bestLevel:P,count:R[P]}},G1.prototype.getRenderedLevelInfo=function(){let R=[];return this._tilesToRender.forEach(function(P){R[P.level]===void 0&&(R[P.level]=0,R[P.level]++)}),R},VMt(this,!0)}Object.defineProperties(id.prototype,{environment:{get:function(){return this._environment}},entities:{get:function(){return this._Viewer.dataSourceDisplay.defaultDataSource.entities}},enableAA:{set:function(o){VMt(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 Yb(this)),this._Core}},Analysis:{get:function(){return this._Analysis||(this._Analysis=new BIt(this._Viewer,Vi)),this._Analysis}},Creator:{get:function(){return this._Creator||(this._Creator=new dge(this._Viewer,Vi)),this._Creator}},projectTree:{get:function(){return this._ProjectTree||(this._ProjectTree=new EMt(this._Viewer,Vi,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 wt(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._bim}},ser:{get:function(){if(!this._ser)throw new wt(`${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}}});id.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($2.createBrightnessStage()),this.coreMap.scene.brightness.enabled=f,this.coreMap.scene.brightness.uniforms.brightness=Number(m)};id.prototype.judgeOnline=function(){let o=document.createElement("img"),f=new Promise((x,y)=>{let v=setTimeout(()=>{o&&(o.src="",o.remove(),o=null),clearTimeout(v),y("Timeout")},5e3)}),m=new Promise((x,y)=>{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])};id.prototype.addLogo=function(){let o=this;queueMicrotask(()=>{let f=` +`};class gt{constructor(se,ve){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)]=ve,this[je(1099)]=ve[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)}}]}),kt=(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)}}]})),bt=(this[je(933)]=this[je(1099)][je(866)]({layout:kt,entries:[{binding:0,resource:{buffer:this.renderEngine[je(688)]}}]}),this.device[je(917)]({bindGroupLayouts:this[je(702)].multiDrawIndirect?[Ft]:[Ft,kt]})),lt=at[je(1022)];this[je(702)][je(1035)]?lt=lt[je(926)](je(904),""):(lt=lt[je(926)](je(929),je(1009)),lt+=je(1093)),se=this[je(1099)][je(720)]({code:q[je(1022)]+lt}),this[je(955)]=this[je(1099)][je(950)]({layout:bt,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)]||((ve=this.device[je(968)]({colorFormats:[this[je(1017)].format],depthStencilFormat:this.alpha_depth_Texture[je(980)]}))[je(689)](0,this.alpha_BingGroup),ve[je(501)](this[je(955)]),ve[je(689)](1,this[je(933)]),ve.drawIndirect(this.renderEngine[je(812)],0),this.alpha_RenderBundle=ve[je(1091)]()),this[je(546)]()}[o(991)](se){var ve=o,je=se.beginRenderPass(this[ve(1028)]);this.renderEngine[ve(1035)]?(je[ve(689)](0,this.alpha_BingGroup),je[ve(501)](this[ve(955)]),je.multiDrawIndirect(this[ve(688)],0,393216,this[ve(812)],0)):je.executeBundles([this[ve(1083)]]),je[ve(482)](),this[ve(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 ve=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:ve,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:[ve]}),compute:{module:this.device[se(720)]({code:dt[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(585)](se){var ve=o,je=se[ve(911)]();je[ve(689)](0,this[ve(924)]),je.setPipeline(this.edgeMergeComputePipeline),je[ve(624)](this[ve(702)][ve(752)],this[ve(702)][ve(899)]),je[ve(482)](),se.copyTextureToTexture({texture:this[ve(893)]},{texture:this.renderEngine[ve(502)]},{width:this.edgeMerge_color_Texture[ve(412)],height:this[ve(893)][ve(864)]})}}let Et={code:o(664)};class et{constructor(se,ve){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)]=ve,this[je(1099)]=ve.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)]}}]}),ve=this[je(1099)][je(917)]({bindGroupLayouts:[se]}),se=this[je(1099)][je(720)]({code:q[je(1022)]+Et.code}),this.alpha_Pipeline=this[je(1099)][je(950)]({layout:ve,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 ve=o;this[ve(1031)].instancesCount!==0&&((se=se[ve(675)](this[ve(1028)]))[ve(689)](0,this[ve(1054)]),se.setPipeline(this[ve(955)]),se.draw(8*this[ve(1031)][ve(1069)]),se[ve(482)]())}}class yt{constructor(se){var ve=o;this.fig=se,this[ve(778)]=0,this[ve(700)]=0,this[ve(1035)]=!1,this[ve(710)]=!0,this.readTemp_noLocking=!0,this[ve(1e3)]=!0,this[ve(983)]=!0,this[ve(837)]=!0,this[ve(425)]=1,this[ve(628)]=2,this[ve(767)]=3,this.vm_target_meshLod=4,this[ve(934)]=5,this[ve(561)]=6,this[ve(903)]=7,this[ve(1025)]=32,this[ve(804)]=new Float32Array(9),this[ve(795)]=20,this.spaceTotalCount=0,this[ve(598)]=10,this[ve(775)]=1e6,this[ve(858)]=new ArrayBuffer(64),this[ve(653)]=new Uint32Array([10,0,0,0]),this[ve(786)]=1e5,this[ve(915)]=Math.ceil(this.lightBodiesAssociateCount/1024),this[ve(764)]=1e6,this[ve(540)]=4096,this[ve(944)]=new Float32Array(128),this[ve(697)]=new Uint32Array(this[ve(944)][ve(877)]),this[ve(819)]=128,this[ve(1047)]=32,this[ve(881)]=this[ve(819)]-(this.blur_filterSize-1),this.blur_batch=[4,4],this[ve(630)]=0,this[ve(518)]=new Float32Array(4),this[ve(541)]=new Float32Array(128),this.volumeRender_Uniform_DataView=new Float32Array(128),this[ve(667)]=new Float32Array(128),this[ve(719)]=new Uint32Array(this[ve(667)].buffer),this.renderToCanvas_Uniform_DataView=new Float32Array([1,1,.1]),this[ve(681)]=new Uint32Array([27,0,0,0]),this.lastPickPositionValue=D[ve(807)](),this[ve(872)]=!0,this.allow_read_renderMaterial=!0,this[ve(954)]=!1,navigator[ve(437)].requestAdapter({powerPreference:"high-performance"}).then(je=>{var Ft=ve;if(je!==null){this[Ft(947)]=je;var kt,bt=Array[Ft(1050)](je[Ft(840)]||[]),lt={};for(kt in je[Ft(608)])lt[kt]=je[Ft(608)][kt];je[Ft(935)]({requiredFeatures:bt,requiredLimits:lt})[Ft(442)](ze=>{var tt=Ft;this[tt(1099)]=ze,this[tt(778)]=ze.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__&&((ze=document.createElement(tt(1088))).style=tt(558),document[tt(455)].appendChild(ze),this[tt(797)]=ze[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)}),(ze=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)](ze),this[tt(733)]=ze[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)}),(ze=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)](ze),this.context3=ze[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)}),(ze=document.createElement(tt(1088))).style=tt(716),document[tt(455)][tt(621)](ze),this[tt(657)]=ze[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 ze=this[tt(1099)].createCommandEncoder(),ct=ze[tt(675)]({colorAttachments:[null]});this[tt(1035)]=!!ct.multiDrawIndirect,ct.end(),ze[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 gt(this[se(1031)],this),this[se(869)]=new et(this.fig,this),globalThis.__ser_isDev__&&this[se(1010)]()}[o(560)](se){var ve=o,je=performance.now();switch(se.target){case this[ve(425)]:if(se[ve(1016)]&&se[ve(563)])this[ve(680)][ve(605)],se[ve(1016)],se.buf[ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(680)],se[ve(1016)],se[ve(563)]);else if(se[ve(413)])for(var Ft in se[ve(413)])this[ve(1099)].queue[ve(1039)](this.modelVmBuffer,~~Ft,se[ve(413)][Ft]);else se[ve(1089)]&&this[ve(1099)].queue[ve(1039)](this[ve(680)],se[ve(1016)],new ArrayBuffer(se[ve(1089)]));break;case this[ve(628)]:this.instanceVmBuffer[ve(605)],se.vmOffset,se[ve(563)].byteLength,this[ve(1099)][ve(704)][ve(1039)](this.instanceVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(767)]:this[ve(1092)][ve(605)],se[ve(1016)],se[ve(563)].byteLength,this[ve(1099)].queue.writeBuffer(this.meshVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(419)]:this[ve(580)][ve(605)],se[ve(1016)],se[ve(563)][ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(580)],se.vmOffset,se[ve(563)]);break;case this.vm_target_meshLod_up:this.updateMeshOffset_VmBuffer[ve(605)],se[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,se.buf);var kt=this[ve(1099)][ve(981)]();this[ve(421)](kt,se[ve(815)]),this[ve(1099)][ve(704)][ve(635)]([kt[ve(1091)]()]);break;case this[ve(561)]:this[ve(1099)][ve(704)].writeTexture({texture:this[ve(962)],origin:se[ve(534)]},se.albedo_buf,se[ve(743)],se.size),se[ve(671)]&&this[ve(1099)].queue[ve(458)]({texture:this.normal_Texture,origin:se.origin},se[ve(671)],se[ve(743)],se[ve(605)]),se[ve(423)]&&this[ve(1099)][ve(704)][ve(458)]({texture:this[ve(777)],origin:se[ve(534)]},se[ve(423)],se[ve(743)],se[ve(605)]);break;case this[ve(903)]:this[ve(792)].size,se[ve(1016)],se.buf[ve(829)],this.device[ve(704)][ve(1039)](this.operateVmBuffer,se[ve(1016)],se[ve(563)])}je<performance[ve(495)]()-5&&console.log(ve(927),performance.now()-je,se[ve(723)])}OrganizeMeshVmData(se){var ve=o,je,Ft=this[ve(1099)][ve(981)]();for(je of se[ve(937)])this[ve(711)][ve(605)],je[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,je[ve(563)]),this[ve(421)](Ft,je[ve(815)]);for(let bt=0;bt<se[ve(652)][ve(800)];bt+=3){let lt=se[ve(652)][bt],ot=se[ve(652)][bt+1],tt=se.copyList[bt+2];for(;;){if(!(tt>this[ve(647)][ve(605)])){Ft.copyBufferToBuffer(this[ve(1092)],ot,this[ve(647)],0,tt),Ft.copyBufferToBuffer(this.copyVmBuffer,0,this.meshVmBuffer,lt,tt);break}var kt=this[ve(647)][ve(605)];Ft[ve(913)](this[ve(1092)],ot,this[ve(647)],0,kt),Ft.copyBufferToBuffer(this[ve(647)],0,this[ve(1092)],lt,kt),ot+=kt,lt+=kt,tt-=kt}}this[ve(1099)][ve(704)].submit([Ft[ve(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 ve=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)}}]}),ve=(this[se(960)]=this[se(1099)][se(866)]({layout:ve,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:[ve]}));this[se(1097)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:q.code+k[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],instanceItemVmSize:this.instanceItemVmSize}}})}[o(1117)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(1097)]),se.setBindGroup(0,this[ve(960)]),se[ve(624)](Math.ceil(this[ve(1031)].instancesCount/this[ve(1099)][ve(608)][ve(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 ve=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)}}]}),ve=(this[se(544)]=this[se(1099)].createBindGroup({layout:ve,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:[ve]})),ve=(this[se(668)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+U.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:ve,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:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+B[se(1022)]+O[se(1022)]}),entryPoint:se(817),constants:{multiDrawIndirect:this.multiDrawIndirect?1:0}}})}[o(462)](se){var ve=o;this.fig[ve(1069)]!==1&&(se.copyBufferToBuffer(this[ve(1056)],0,this[ve(812)],0,this[ve(812)][ve(605)]),(se=se.beginComputePass()).setPipeline(this[ve(668)]),se[ve(689)](0,this.MakeCommandComputeBingGroup),se[ve(624)](Math.ceil(this[ve(1031)][ve(1069)]/this[ve(1099)][ve(608)][ve(963)])),se.setPipeline(this[ve(565)]),se.setBindGroup(0,this[ve(734)]),se.dispatchWorkgroups(1),se[ve(482)]())}[o(612)](){var se=o;this.updateMeshOffset_VmBuffer=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST});var ve=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)}}]}),ve=(this[se(1041)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this.updateMeshOffset_VmBuffer}},{binding:1,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this.updateMeshOffsetComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:K[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)].maxComputeInvocationsPerWorkgroup}}})}[o(421)](se,ve){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)](ve/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,ve=-2147483648,je=(this[se(1099)][se(704)][se(1039)](this.readMesh_atomic_VmBuffer,0,new Int32Array([je,je,je,ve,ve,ve])),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:q.code+z.code+ae[se(1022)]+O[se(1022)]+oe.code}),entryPoint:se(817),constants:{spaceUnit:this.spaceUnit}}})}[o(725)](se){var ve=o;this[ve(1099)].queue[ve(1039)](this[ve(443)],0,this[ve(858)]),se=se.beginComputePass({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(492)]),se.setBindGroup(0,this.readMeshComputeBingGroup),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)][se(720)]({code:ie.code+oe[se(1022)]}),entryPoint:se(817),constants:{lightBodiesSize:this[se(795)],spaceTotalCount:this[se(1107)]}}})}LightBodiesAssociate(se){var ve=o;this[ve(653)][0]+=this[ve(786)],this[ve(653)][0]*this.lightBodiesSize>this[ve(1107)]&&(this[ve(653)][0]=10),this[ve(1099)][ve(704)][ve(1039)](this[ve(906)],0,this[ve(653)]),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:6,endOfPassWriteIndex:7}}),se[ve(689)](0,this[ve(998)]),se.setPipeline(this[ve(779)]),se.dispatchWorkgroups(this[ve(915)]),se.end()}[o(823)](){var se=o,ve=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)}}]}),ve=(this[se(1015)]=this.device[se(866)]({layout:ve,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:[ve]}));this[se(676)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:O.code+te.code+oe.code}),entryPoint:"main",constants:{}}}),this[se(1040)]=this[se(1099)].createComputePipeline({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:O.code+re[se(1022)]+oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(718)](se){var ve=o,je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:2,endOfPassWriteIndex:3}});je[ve(689)](0,this[ve(1015)]),je.setPipeline(this[ve(676)]),je[ve(624)](Math[ve(552)](this[ve(764)]/128)),je.end(),this.LightBodiesRemoveDuplicatesIndirect(se)}[o(818)](){var se=o,ve=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)}}]}),ve=(this.LightBodiesRemoveDuplicatesComputeBingGroup=this[se(1099)][se(866)]({layout:ve,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:[ve]}));this.LightBodiesRemoveDuplicatesComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:ee[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(694)](se){var ve=o;se=se[ve(911)](),se.setBindGroup(0,this[ve(713)]),se.setPipeline(this[ve(1055)]),se.dispatchWorkgroupsIndirect(this[ve(551)],0),se.end()}LightBodiesRemoveDuplicatesIndirectIntend(){var se=o,ve=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)}}]}),ve=(this[se(1078)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:2,resource:{buffer:this[se(1002)]}},{binding:3,resource:{buffer:this[se(551)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(1077)]=this.device[se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:se(433)}),entryPoint:"main",constants:{lightBodiesBounceCount:this[se(764)]}}})}LightBodiesRemoveDuplicatesIndirect(se){var ve=o;se=se[ve(911)](),se[ve(689)](0,this[ve(1078)]),se[ve(501)](this[ve(1077)]),se.dispatchWorkgroups(1),se[ve(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 ve=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:ve,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)]?[ve]:[ve,je]})),kt=Y[se(1022)];this.multiDrawIndirect?kt=kt[se(926)]("@group(1) @binding(0) var<storage,read> renderIndex: array<u32>;",""):(kt=kt[se(926)]("let ri = vec2<u32>(input.instanceIndex,input.vertexIndex);",se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt});this.meshRenderPipeline=this[se(1099)][se(950)]({layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,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)]||((bt=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)]),bt[se(501)](this[se(1087)]),bt[se(689)](1,this[se(481)]),bt[se(1044)](this[se(812)],0),this[se(874)]=bt.finish())}[o(939)](se){var ve=o;se[ve(913)](this.meshRenderAtomic_InitData_VmBuffer,0,this[ve(717)],0,16),se[ve(913)](this[ve(1056)],0,this[ve(907)],0,this[ve(907)].size),se=se[ve(675)](this[ve(974)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(789)]),se[ve(501)](this[ve(1087)]),se[ve(1035)](this[ve(688)],0,393216,this.indirect_render_VmBuffer,0)):se[ve(834)]([this[ve(874)]]),se[ve(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 ve=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:ve,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)]?[ve]:[ve,je]})),kt=J[se(1022)];this[se(1035)]?kt=kt[se(926)](se(904),""):(kt=kt[se(926)](se(929),se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt+O.code});this[se(1104)]=this[se(1099)].createRenderPipeline({label:se(1104),layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,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)]||((bt=this[se(1099)][se(968)]({colorFormats:[this[se(500)][se(980)]],depthStencilFormat:this[se(559)][se(980)]}))[se(689)](0,this[se(414)]),bt[se(501)](this.renderShadowPipeline),bt[se(689)](1,this.renderShadowBindGroup_renderIndex),bt[se(1044)](this[se(812)],0),this[se(496)]=bt[se(1091)]())}[o(537)](se){var ve=o;this.renderShadowRenderPassDescriptor[ve(1052)][ve(703)]=this[ve(707)],se=se[ve(675)](this[ve(1049)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(414)]),se.setPipeline(this.renderShadowPipeline),se[ve(1035)](this[ve(688)],0,393216,this[ve(812)],0)):se[ve(834)]([this[ve(496)]]),se[ve(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 ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ve=(this[se(691)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(907)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this.device[se(917)]({bindGroupLayouts:[ve]}));this[se(1007)]=this.device.createComputePipeline({layout:ve,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 ve=o;se[ve(913)](this[ve(907)],4,this[ve(596)],0,4),se=se[ve(911)](),se[ve(689)](0,this.dynamicSpaceComputeBingGroup),se[ve(501)](this.dynamicSpaceComputePipeline),se[ve(538)](this.dynamicSpaceIndirect_VmBuffer,0),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this.device.createShaderModule({code:ae[se(1022)]+Se.code}),entryPoint:se(817),constants:{}}})}[o(428)](se){var ve=o;this[ve(944)][ve(895)](this[ve(1031)][ve(1008)]),this[ve(944)][ve(895)](this.fig[ve(838)],16),this[ve(944)][ve(895)](this[ve(1031)][ve(640)],32),this[ve(944)][ve(895)](this[ve(1031)][ve(1024)],48),this.ssrReflections_Uniform_DataView[64]=this.fig[ve(509)][ve(1108)],this.ssrReflections_Uniform_DataView[65]=this[ve(1031)].cameraParameter.far,this[ve(944)][66]=5,this[ve(944)][67]=2e3,this.ssrReflections_Uniform_DataView[68]=.5,this[ve(944)][69]=.2,this[ve(944)][70]=.95,this.ssrReflections_Uniform_DataView[71]=20,this[ve(944)][72]=1,this.ssrReflections_Uniform_DataView[73]=.9,this[ve(697)][74]=4294967295*Math.random(),this[ve(697)][75]=4294967295*Math[ve(1080)](),this.ssrReflections_Uniform_DataViewU32[76]=4294967295*Math[ve(1080)](),this[ve(1099)].queue[ve(1039)](this.ssrReflections_Uniform_VmBuffer,0,this.ssrReflections_Uniform_DataView);var je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}});je[ve(689)](0,this[ve(961)]),je[ve(501)](this.ssrReflectionsComputePipeline),je.dispatchWorkgroups(this[ve(752)],this[ve(899)]),je.end(),se[ve(603)]({texture:this.ssr_color_accumulated_Texture},{texture:this.ssr_color_Texture},{width:this[ve(1105)][ve(412)],height:this.ssr_color_Texture[ve(864)]})}ImageBlurIntend(){var se=o;this[se(891)]=this[se(1099)].createComputePipeline({layout:se(772),compute:{module:this.device[se(720)]({code:ce.code})}});var ve,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)]}),kt=Ft,bt=(ve=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage[se(844)]}),new Uint32Array(ve.getMappedRange())[0]=0,ve[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)](bt,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:bt}}]}),this[se(591)]=this.device.createBindGroup({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:kt[se(1045)]()},{binding:2,resource:Ft[se(1045)]()},{binding:3,resource:{buffer:ve}}]}),this[se(418)]=this[se(1099)][se(866)]({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:Ft[se(1045)]()},{binding:2,resource:kt.createView()},{binding:3,resource:{buffer:je}}]})}[o(529)](se){var ve=o;if(0<this[ve(630)]){var je=se[ve(911)]();je.setPipeline(this.blurComputePipeline),je[ve(689)](0,this[ve(1027)]);for(let Ft=0;Ft<this[ve(630)];++Ft)je[ve(689)](1,this[ve(591)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)].canvas[ve(864)]/this[ve(533)][1])),je[ve(689)](1,this[ve(418)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)][ve(1088)].height/this[ve(533)][1]));je[ve(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 ve=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:ve,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:pe.code}));this[se(841)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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 ve=o;!this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(995)]||this[ve(1031)][ve(835)][ve(953)].mouse.downLeftX==this.fig[ve(835)][ve(953)].mouse[ve(507)]&&this.fig[ve(835)].status[ve(450)][ve(679)]==this[ve(1031)][ve(835)][ve(953)][ve(450)].clientY?this[ve(518)][ve(895)]([0,0,0,0]):this[ve(518)][ve(895)]([(this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(507)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(715)])/this.finalColor_Texture[ve(412)],(this[ve(1031)][ve(835)].status[ve(450)][ve(783)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(679)])/this[ve(502)][ve(864)],1]),this[ve(1099)][ve(704)][ve(1039)](this[ve(982)],0,this[ve(518)]),this[ve(791)][ve(566)][0][ve(703)]=this.context[ve(696)]()[ve(1045)](),se=se[ve(675)](this[ve(791)]),se.setPipeline(this.finalDisplayPipeline),se[ve(689)](0,this[ve(851)]),se[ve(729)](6),se[ve(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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q.code+Oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(444)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(862)]),se[ve(689)](0,this[ve(996)]),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(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 kt=se;Ft[kt(871)]()[kt(442)](bt=>{var lt=kt;bt=new Float32Array(bt),this[lt(1099)][lt(704)].writeTexture({texture:this.volumeRender_3dData_Texture},bt,{bytesPerRow:7200,rowsPerImage:1800},[3600,1800,50])})});var ve=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:ve}]}),this[se(615)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[je]}),compute:{module:this[se(1099)].createShaderModule({code:Le[se(1022)]+q[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(440)](se){var ve=o;this[ve(543)][ve(895)](this[ve(1031)][ve(640)]),this.volumeRender_Uniform_DataView[ve(895)](this[ve(1031)][ve(587)],16),this[ve(1099)].queue[ve(1039)](this[ve(856)],0,this.volumeRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se.setPipeline(this[ve(615)]),se[ve(689)](0,this.volumeRenderComputeBingGroup),se[ve(624)](this.readMesh_dispatchWorkgroupsX,this[ve(899)]),se[ve(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)](kt=>{var bt=Ft;this[bt(945)].size,kt[bt(829)],this[bt(1099)][bt(704)][bt(1039)](this[bt(945)],0,kt)})}),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 ve=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:ve,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:[ve]}),compute:{module:this[se(1099)][se(720)]({code:Ve.code+q.code+ae[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(949)](se){var ve=o;this.streamRender_Uniform_DataView.set(this.fig.projectToPixelMatrix),this[ve(667)][ve(895)](this[ve(1031)].viewMatrix,16),this[ve(667)][ve(895)]([.4,5,.95],32),this[ve(719)][ve(895)]([4294967295*Math.random(),4294967295*Math[ve(1080)](),4294967295*Math[ve(1080)]()],35),this[ve(1099)][ve(704)].writeBuffer(this[ve(843)],0,this.streamRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(570)]),se[ve(689)](0,this[ve(494)]),se[ve(624)](this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(1010)](){var se=o,ve=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:ve,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)]})),ve=(this[se(852)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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:ve,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:he[se(1022)]})),ve=(this[se(916)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),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:ve,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:fe[se(1022)]})),ve=(this[se(641)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),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:ve,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:de[se(1022)]}));this.renderDebugTest4Pipeline=this[se(1099)].createRenderPipeline({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),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 ve=o;this.renderDebugTestRenderPassDescriptor[ve(566)][0].view=this.context1[ve(696)]()[ve(1045)]();var je=se[ve(675)](this[ve(430)]),je=(je[ve(501)](this[ve(852)]),je[ve(689)](0,this.renderDebugTest1BindGroup),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this[ve(733)][ve(696)]().createView(),se.beginRenderPass(this[ve(430)])),je=(je[ve(501)](this[ve(916)]),je.setBindGroup(0,this[ve(727)]),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this.context3[ve(696)]()[ve(1045)](),se[ve(675)](this.renderDebugTestRenderPassDescriptor)),je=(je[ve(501)](this[ve(641)]),je.setBindGroup(0,this.renderDebugTest3BindGroup),je.draw(6),je[ve(482)](),this[ve(430)].colorAttachments[0][ve(703)]=this[ve(657)][ve(696)]()[ve(1045)](),se.beginRenderPass(this[ve(430)]));je[ve(501)](this[ve(989)]),je[ve(689)](0,this.renderDebugTest4BindGroup),je[ve(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 ve=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)}}]}),ve=(this[se(928)]=this[se(1099)][se(866)]({layout:ve,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:[ve]})),je=this[se(1099)][se(720)]({code:q[se(1022)]+$e.code});this[se(805)]=this[se(1099)].createRenderPipeline({label:se(781),layout:ve,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 ve=o;this[ve(1004)][0]=this[ve(1031)][ve(672)][ve(859)].frameState.useLogDepth?1:0,this[ve(1004)][1]=this[ve(1031)][ve(672)].scene.context[ve(420)][ve(1003)].x,this[ve(1004)][2]=this.fig[ve(672)][ve(859)][ve(504)][ve(420)][ve(794)],this[ve(1099)][ve(704)][ve(1039)](this[ve(659)],0,this[ve(1004)]),this[ve(660)][ve(566)][0][ve(703)]=this[ve(504)][ve(696)]()[ve(1045)](),this.renderToCanvasRenderPassDescriptor.colorAttachments[1].view=this[ve(506)][ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(660)]),se.setPipeline(this.renderToCanvasPipeline),se[ve(689)](0,this[ve(928)]),se.draw(6),se[ve(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]})),ve=this[se(1099)][se(720)]({code:q[se(1022)]+Ce[se(1022)]}),je={layout:je,vertex:{module:ve,entryPoint:"vert_main",buffers:[],constants:{spaceUnit:this[se(598)],lightBodiesSize:this[se(795)]}},fragment:{module:ve,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 ve=o;this[ve(1099)][ve(704)][ve(1039)](this[ve(888)],0,this[ve(681)]),this[ve(1051)].colorAttachments[0].view=this.context[ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(1051)]),se.setPipeline(this.voxelRenderPipeline),se.setBindGroup(0,this[ve(684)]),se[ve(1044)](this[ve(951)],0),se[ve(482)]()}[o(806)](se,ve){return new Promise((je,Ft)=>{var kt=wh,bt;this[kt(983)]?(this[kt(983)]=!1,(bt=this.device[kt(981)]())[kt(809)]({texture:this[kt(793)],mipLevel:0,origin:{x:se,y:ve},aspect:kt(768)},{buffer:this[kt(497)],offset:0,bytesPerRow:256*Math[kt(552)](4*this[kt(793)][kt(412)]/256),rowsPerImage:1},{width:1,height:1}),this.device.queue.submit([bt[kt(1091)]()]),this[kt(497)][kt(705)](GPUMapMode[kt(470)]).then(()=>{var lt=kt,ot=this[lt(497)][lt(827)](0,4),ot=new Uint32Array(ot)[0];this[lt(497)].unmap(),this.readPickId_noLocking=!0,je(ot)})):Ft()})}[o(669)](se,ve){let je=(Ft,kt)=>{var bt=wh,lt=this[bt(1099)][bt(981)]();lt[bt(809)]({texture:this[bt(1102)],mipLevel:0,origin:{x:se,y:ve},aspect:bt(768)},{buffer:this.readPickPosition_VmBuffer,offset:0,bytesPerRow:256*Math[bt(552)](4*this[bt(1102)][bt(412)]*4/256),rowsPerImage:1},{width:1,height:1}),this.device[bt(704)][bt(635)]([lt[bt(1091)]()]),this.readPickPosition_VmBuffer[bt(705)](GPUMapMode[bt(470)])[bt(442)](()=>{var ot=bt,tt=this[ot(774)][ot(827)](0,16),tt=Array[ot(1050)](new Float32Array(tt));this[ot(774)][ot(484)](),this.readPickPosition_noLocking=!0,tt[3]!=0&&D[ot(987)](tt,this[ot(1031)][ot(910)],this[ot(979)]),Ft(this.lastPickPositionValue)})};return new Promise((Ft,kt)=>{var bt=wh;this[bt(837)]?(this[bt(837)]=!1,je(Ft)):setTimeout(()=>{je(Ft)},10)})}[o(771)](){var se=o,ve;this[se(872)]&&this.fig.directData_Heartbeat&&(this[se(872)]=!1,this[se(1031)][se(606)]=!1,(ve=this.device[se(981)]())[se(913)](this[se(1056)],0,this[se(788)],0,4),this[se(1117)](ve),ve[se(913)](this.instancesArea_atomicData_VmBuffer,0,this[se(556)],0,4),ve[se(913)](this[se(985)],0,this[se(556)],4,this[se(985)][se(605)]),this.device.queue[se(635)]([ve[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,ve=this[se(1099)][se(981)]();ve.copyBufferToBuffer(this.zeroVmBuffer,0,this.meshRender_transparentColorData_VmBuffer,0,this[se(569)][se(605)]),this[se(1099)][se(704)][se(635)]([ve[se(1091)]()])}[o(991)](){var se=o;this[se(771)]();var ve=this[se(1099)][se(981)]();this[se(462)](ve),this[se(939)](ve),this[se(537)](ve),this[se(1031)].gi&&this[se(824)](ve),ve.copyBufferToBuffer(this[se(1056)],0,this[se(604)],0,this[se(604)][se(605)]),this[se(725)](ve),this[se(965)]&&this[se(1031)].kj&&ve[se(913)](this[se(946)],0,this[se(459)],0,128),this[se(1e3)]&&this[se(1031)][se(642)]&&ve[se(913)](this.lightInfo_VmBuffer,32,this.readTemp_VmBuffer2,0,64),this[se(808)]&&this[se(954)]&&ve[se(913)](this[se(920)],0,this.renderMaterial_read_VmBuffer,0,this[se(920)][se(605)]),this[se(486)].Render(ve),this[se(869)][se(991)](ve),globalThis[se(589)]&&this[se(973)](ve),this.fig[se(672)]?this[se(465)](ve):this[se(686)](ve),this[se(1031)].ksh&&this[se(814)](ve),this[se(710)]&&this.fig.xn&&(ve[se(803)](this[se(883)],0,10,this[se(692)],0),ve.copyBufferToBuffer(this[se(692)],0,this.timestampQueryResultBuffer,0,this.timestampQueryResultBuffer.size)),this[se(1099)][se(704)][se(635)]([ve[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 Rt{get[o(1046)](){var se=o;return this[se(845)]}set[o(1046)](se){var ve=o;this[ve(845)]=D[ve(760)](se)}get[o(723)](){return this._target}set[o(723)](se){var ve=o;this[ve(562)]=D[ve(760)](se)}get[o(796)](){var se=o,ve=D[se(665)](0,0,-1);return D[se(802)](ve,this[se(1116)])}constructor(se,ve){var je=o;if(this[je(845)]=D[je(807)](0,0,0),this[je(562)]=D[je(807)](1,1,1),this[je(1116)]=V[je(626)](),this.worldMatrix=M[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:D[je(807)](),upLeft_position:D[je(807)]()},se){let Ft=(bt,lt)=>{var ot=je;switch(bt[ot(1022)]){case"KeyW":this.status[ot(521)][ot(848)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(816):this[ot(953)].keyboard[ot(1057)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1090):this[ot(953)][ot(521)].left=lt,bt[ot(1096)](),bt.stopPropagation();break;case"KeyD":this[ot(953)][ot(521)][ot(1034)]=lt,bt.preventDefault(),bt[ot(517)]();break;case ot(755):this[ot(953)][ot(521)].up=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(855):this.status[ot(521)].down=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(901):this[ot(953)][ot(521)][ot(1058)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"KeyO":this[ot(953)][ot(521)][ot(693)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(446):case ot(1023):this[ot(953)][ot(521)][ot(427)]=lt,bt.preventDefault(),bt[ot(517)]();break;case"KeyK":case ot(594):this[ot(953)][ot(521)][ot(1061)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1086):case ot(532):this[ot(953)][ot(521)][ot(773)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(434):case ot(519):this[ot(953)][ot(521)][ot(861)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"ControlLeft":this[ot(953)].keyboard[ot(511)]=lt;break;case ot(970):this.status[ot(521)][ot(478)]=lt;break;case"KeyC":this[ot(953)][ot(521)][ot(651)]=lt;break;case ot(464):this.status.keyboard[ot(1030)]=lt}},kt=(window[je(801)](je(499),bt=>Ft(bt,!0)),window[je(801)]("keyup",bt=>Ft(bt,!1)),se[je(801)]("contextmenu",function(bt){var lt=je;bt[lt(1096)]()}),(bt,lt)=>{var ot=je;switch(this.status[ot(450)][ot(988)]=bt[ot(988)],bt.button){case 0:(this[ot(953)][ot(450)][ot(995)]=lt)?(this[ot(953)][ot(450)][ot(715)]=bt.clientX,this[ot(953)][ot(450)][ot(679)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot,ct;this[ze(953)][ze(416)]=D[ze(807)](tt[0],tt[1],tt[2]),tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&this.status.keyboard[ze(511)]&&(tt=this[ze(953)][ze(416)],ct=D.subtract(this.position,tt),D.normalize(ct,ct),ct=D.add(tt,D[ze(708)](ct,20)),this.setTargetAndPosition(tt,ct))})):(this.status[ot(450)][ot(424)]=bt.clientX,this.status[ot(450)][ot(880)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt.clientY).then(tt=>{var ze=ot;this[ze(953)][ze(436)]=D[ze(807)](tt[0],tt[1],tt[2]),this[ze(953)].downLeft_position[0]!=0&&this[ze(953)][ze(416)][1]!=0&&this[ze(953)][ze(416)][2]!=0&&this[ze(953)].upLeft_position[0]!=0&&this[ze(953)][ze(436)][1]!=0&&this[ze(953)].upLeft_position[2]!=0&&(D[ze(601)](this[ze(845)],D[ze(601)](this[ze(953)].upLeft_position,this[ze(953)].downLeft_position),this[ze(845)]),this.computeMatrix())}));break;case 1:this[ot(953)][ot(450)][ot(460)]=lt;break;case 2:(this.status[ot(450)].right=lt)?(this[ot(953)][ot(450)].downRightX=bt.clientX,this[ot(953)][ot(450)][ot(524)]=bt[ot(783)],ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot;tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&(this[ze(723)]=D.create(tt[0],tt[1],tt[2]))})):(this[ot(953)][ot(450)].upRightX=bt[ot(507)],this[ot(953)][ot(450)][ot(798)]=bt[ot(783)])}});se[je(887)][je(595)]=je(536),se[je(801)](je(1006),bt=>kt(bt,!0)),se.addEventListener(je(994),bt=>kt(bt,!1)),se[je(801)](je(972),bt=>{var lt=je;this[lt(953)][lt(450)][lt(507)]=bt.clientX,this[lt(953)].mouse[lt(783)]=bt[lt(783)],(this[lt(953)][lt(450)][lt(995)]||this[lt(953)][lt(450)].right)&&(this[lt(953)][lt(450)][lt(884)]-=bt[lt(884)],this[lt(953)][lt(450)][lt(757)]-=bt[lt(757)])}),se[je(801)](je(460),bt=>{var lt=je;this[lt(953)][lt(450)].scroll+=Math[lt(469)](bt.deltaY),bt[lt(1096)](),bt[lt(517)]()},{passive:!1})}}[o(1079)](kt,bt,je=D.create(0,1,0)){var Ft=o;D[Ft(760)](kt,this[Ft(562)]),D[Ft(760)](bt,this[Ft(845)]);var bt=D.normalize(D[Ft(601)](bt,kt)),kt=D[Ft(665)](0,0,1),kt=(this[Ft(1116)]=V.rotationTo(kt,bt),D[Ft(802)](D[Ft(665)](0,1,0),this[Ft(1116)])),bt=D[Ft(542)](kt,je);1e-7<D.length(bt)&&(kt=Math[Ft(785)](D.dot(kt,je)),je=V.fromAxisAngle(D[Ft(1085)](bt),kt),this[Ft(1116)]=V[Ft(645)](je,this[Ft(1116)])),this[Ft(568)]()}update(se){var ve=o,je,Ft=D[ve(802)](D[ve(665)](1,0,0),this.orientation),kt=D[ve(802)](D[ve(665)](0,1,0),this[ve(1116)]),bt=D[ve(802)](D[ve(665)](0,0,1),this[ve(1116)]);this[ve(953)][ve(450)][ve(884)]===0&&this[ve(953)][ve(450)][ve(757)]===0||(this[ve(953)].mouse[ve(988)]===2?(je=this[ve(953)].mouse.movementX*this[ve(948)]*se,se=this[ve(953)][ve(450)][ve(757)]*this.rotationSpeed*se,se=V.fromAxisAngle(Ft,se),je=V[ve(997)](kt,je),se=V[ve(645)](se,je),je=D[ve(601)](this._position,this[ve(562)]),je=D.transformQuat(je,se),D.add(this[ve(562)],je,this[ve(845)]),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])):this[ve(953)].mouse[ve(988)]),this.status[ve(450)][ve(576)]!==0&&(je=this.status[ve(450)][ve(576)]*this[ve(670)],D[ve(987)](this[ve(845)],D[ve(708)](bt,je),this[ve(845)])),this[ve(953)][ve(521)].up&&D[ve(987)](this[ve(845)],D[ve(708)](kt,this[ve(953)][ve(521)].shiftLeft?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(1064)]&&D.add(this[ve(845)],D.scale(kt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this._position),this[ve(953)][ve(521)][ve(995)]&&D[ve(987)](this._position,D[ve(708)](Ft,-(this.status.keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this[ve(953)][ve(521)][ve(1034)]&&D[ve(987)](this[ve(845)],D[ve(708)](Ft,this[ve(953)].keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(848)]&&D.add(this._position,D[ve(708)](bt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this.status[ve(521)][ve(1057)]&&D[ve(987)](this[ve(845)],D[ve(708)](bt,this[ve(953)][ve(521)].shiftLeft?4*this.keyboardSpeed:this[ve(476)]),this[ve(845)]),this[ve(953)][ve(521)][ve(1058)]&&(se=V[ve(997)](bt,-.01),this[ve(1116)]=V.multiply(se,this[ve(1116)])),this[ve(953)][ve(521)][ve(693)]&&(je=V[ve(997)](bt,.01),this.orientation=V.multiply(je,this.orientation)),this[ve(953)][ve(521)][ve(773)]&&(se=V[ve(997)](kt,.01),this.orientation=V[ve(645)](se,this[ve(1116)])),this.status[ve(521)].rightHeading&&(bt=V[ve(997)](kt,-.01),this[ve(1116)]=V[ve(645)](bt,this[ve(1116)])),this[ve(953)][ve(521)][ve(427)]&&(je=V[ve(997)](Ft,.01),this.orientation=V[ve(645)](je,this[ve(1116)])),this.status[ve(521)][ve(1061)]&&(se=V[ve(997)](Ft,-.01),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])),this.status.keyboard[ve(651)]&&(this[ve(476)]-=.01*this[ve(476)],this.keyboardSpeed<.01)&&(this[ve(476)]=.01),this[ve(953)][ve(521)].speedUp&&(this.keyboardSpeed*=1.01),this[ve(568)](),this.status[ve(450)][ve(884)]=0,this.status[ve(450)][ve(757)]=0,this.status[ve(450)][ve(576)]=0}[o(568)](){var se=o;M[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 Vt{constructor(se){var ve=o;if(this[ve(1114)]=M,this[ve(930)]=N,this[ve(923)]=D,this[ve(754)]=G,this[ve(520)]=V,this[ve(677)]=1,this.dataCallBack={},this.modelData={},this[ve(606)]=!0,this.spaceIndex_Heartbeat=!0,this.xn=!1,this[ve(654)]=!1,this.kj=!1,this.kj2=!1,this.gi=!1,this[ve(922)]={type:1,direction:D[ve(1085)](D.create(-.378604181697245,.8191225954117374,.4309258025313624)),color:D[ve(807)](1,1,1)},this[ve(509)]={fov:2*Math.PI/5,aspect:1,near:.1,far:1e3},this[ve(1069)]=0,this[ve(910)]=D.create(),this.OnInitialized=()=>{},this[ve(886)]=(kt,bt)=>{},this[ve(573)]=kt=>{},this[ve(984)]="",this[ve(1005)]="",this[ve(737)]=Date[ve(495)](),this[ve(553)]=0,this.tempRL=!0,this[ve(479)]=!1,this[ve(745)]=new Float64Array(84),console[ve(826)]("ser_V20250613"),se&&se[ve(1074)]&&se[ve(993)]){if(this[ve(993)]=se[ve(993)],this[ve(672)]=se[ve(1074)],se.Widget.scene.ser)return void console[ve(505)](ve(1059));this.cesiumWidget[ve(859)][ve(555)]=this}this.cesiumWidget?(this[ve(1088)]=new OffscreenCanvas(this[ve(672)][ve(859)][ve(1088)].width,this[ve(672)].scene.canvas[ve(864)]),this.depthCanvas=new OffscreenCanvas(this[ve(672)][ve(859)].canvas[ve(412)],this[ve(672)][ve(859)][ve(1088)][ve(864)]),this[ve(835)]=new Rt(null,this)):(this[ve(1088)]=document[ve(602)](ve(1088)),this.canvas[ve(412)]=1920,this[ve(1088)][ve(864)]=970,document[ve(455)].appendChild(this[ve(1088)]),this[ve(835)]=new Rt(this[ve(1088)],this),this.camera[ve(1079)](D[ve(807)](0,0,0),D[ve(807)](0,100,0),D[ve(807)](0,1,0))),this[ve(1084)]=[],this[ve(735)]=new ArrayBuffer(512),this[ve(439)]=new Float32Array(this[ve(735)]),this[ve(952)]=new Uint32Array(this.scene_dataBuffer),this[ve(547)]=new ArrayBuffer(96),this[ve(1075)]=new Float32Array(this[ve(547)]),this.lightInfo_dataViewF32[0]=this[ve(922)][ve(468)],this[ve(1075)][ve(895)](this.lightInfo.direction,1),this[ve(1075)].set(this[ve(922)][ve(431)],4),this[ve(1008)]=M[ve(626)](),this[ve(587)]=M[ve(626)](),this[ve(838)]=M.identity(),this[ve(640)]=M[ve(626)](),this.projectionViewMatrix=M[ve(626)](),this[ve(1024)]=M[ve(626)]();let je=!1,Ft=(kt,bt)=>{var lt=ve;switch(kt[lt(1022)]){case lt(650):je=bt,kt[lt(1096)](),kt[lt(517)]();break;case lt(638):bt||(this[lt(479)]=!this[lt(479)])}};window[ve(801)](ve(499),kt=>Ft(kt,!0)),window[ve(801)](ve(575),kt=>Ft(kt,!1)),this[ve(702)]=new yt(this),se=new v(new URL(f.p+f.u(671),f.b)),this[ve(1067)]=se[ve(759)](),this[ve(1067)][ve(801)](ve(622),kt=>{var bt=ve;if(kt[bt(836)])switch(kt[bt(836)][bt(999)]){case bt(925):this[bt(925)][kt.data.cbId]?(kt[bt(836)][bt(832)](bt(914))?this.dataCallBack[kt[bt(836)][bt(941)]].resolve(kt[bt(836)][bt(914)]):kt[bt(836)][bt(832)](bt(593))&&this[bt(925)][kt.data[bt(941)]][bt(593)](kt[bt(836)][bt(593)]),delete this.dataCallBack[kt[bt(836)][bt(941)]]):globalThis[bt(564)](kt.data);break;case bt(617):for(var lt in kt[bt(836)][bt(512)])this.modelData[bt(832)](lt)?Object[bt(726)](this.modelData[lt],kt[bt(836)].modelData[lt]):this[bt(512)][lt]=kt[bt(836)][bt(512)][lt];this[bt(432)](),this.OnModelServer(kt.data[bt(512)],kt[bt(836)][bt(1109)]);break;case bt(573):this[bt(573)](kt[bt(836)][bt(839)]);break;case bt(560):if(kt[bt(836)].targets)for(var ot of kt.data.targets)this[bt(702)].UpVmData(ot);else this.renderEngine[bt(560)](kt[bt(836)]);break;case bt(992):this[bt(702)][bt(908)](kt[bt(836)]);break;case bt(771):this[bt(702)].VisibleTreeUpdate();break;case bt(699):this[bt(1069)]=kt[bt(836)][bt(1069)];break;case bt(581):this[bt(606)]=!0;break;case bt(847):this[bt(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 ve=o;se[ve(592)]("/")!==se[ve(800)]-1&&(se+="/");var je=this[ve(1084)][ve(800)];for(let Ft=0;Ft<this[ve(1084)][ve(800)];Ft++)if(this.serverList[Ft]===se)return Ft;return this.serverList[ve(918)](se),this[ve(1067)][ve(564)]({msgType:ve(1103),serverUrl:se,serverId:je}),je}[o(545)](){let se=()=>{var ve=wh;this[ve(991)](),requestAnimationFrame(se)};requestAnimationFrame(se)}[o(842)](){var se=o;this.cesiumWidget?(ve=this[se(672)][se(859)][se(504)].uniformState,this[se(1005)]=ve[se(747)][se(770)](),this.projectionMatrix=M.frustumReverseZ(ve[se(685)].z,ve._frustumPlanes.w,ve[se(685)].y,ve[se(685)].x,ve._currentFrustum.x,ve[se(490)].y)):this[se(838)]=M[se(1113)](this.cameraParameter.fov,this[se(509)].aspect,this[se(509)][se(1108)],this.cameraParameter[se(475)]),this[se(640)]=M[se(584)](this.projectionMatrix);var ve=M.setTranslation(M.scale(M.identity(),D.create(.5,.5,1)),D[se(807)](.5,.5,0)),ve=M[se(645)](ve,this[se(838)]);this[se(1024)]=M[se(645)]([this[se(1088)].width,0,0,0,0,this[se(1088)].height,0,0,0,0,1,0,0,0,0,1],ve)}[o(991)](){var se=o,ve,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)]())):(ve=((je=Date[se(495)]())-this[se(737)])/1e3,this[se(737)]=je,this[se(835)].update(ve)),this.oldCameraData===this[se(835)][se(761)][se(770)]()&&this.instancesCount!==0||(this[se(984)]=this[se(835)][se(761)].toString(),je=D[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)]()),(ve=Array.from(this.camera[se(761)]))[12]-=this[se(910)][0],ve[13]-=this[se(910)][1],ve[14]-=this[se(910)][2],M[se(760)](ve,this[se(587)]),this[se(1008)]=M[se(584)](ve),M[se(645)](this.projectionMatrix,this.viewMatrix,this[se(574)]),this[se(706)]=M[se(584)](this[se(574)]),this[se(672)]&&(je=M[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]=ve[12],this.scene_dataViewF32[50]=ve[13],this[se(439)][51]=ve[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:M.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 ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([1]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)][ve(564)]({msgType:ve(892),modelId:se,status:1}))}HideModel(se){var ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([0]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)].postMessage({msgType:ve(892),modelId:se,status:0}))}PickId(se,ve){var je=o;return this[je(702)][je(806)](se,ve).then(Ft=>new Promise((kt,bt)=>{var lt=je,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:tt=>{kt(tt)},reject:tt=>{bt()}},this[lt(1067)][lt(564)]({msgType:lt(616),instancePtr:Ft,cbId:ot})}))}[o(527)](se,ve){var je=o;return this.renderEngine[je(806)](se,ve)}[o(577)](se,ve){var je=o;return this[je(702)].PickPosition(se,ve)}[o(766)](se,ve){var je=o,Ft;this[je(512)][se]&&((Ft=this[je(512)][se])[je(503)]=Array[je(1050)](ve),(ve=Array.from(ve))[12]-=this.accuracyOffset[0],ve[13]-=this[je(910)][1],ve[14]-=this[je(910)][2],ve=new Float32Array(ve),this.renderEngine.device.queue[je(1039)](this[je(702)][je(680)],4*Ft[je(1016)],ve),this.ddWorker[je(564)]({msgType:je(766),modelId:se,modelMatrixArr:Ft[je(503)]}))}[o(432)](){var se=o;for(var ve in this.modelData){var je,ve=this[se(512)][ve];ve[se(1016)]&&((je=Array.from(ve.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*ve[se(1016)],je))}this[se(868)](),this.UpdateExplodeAccuracyOffset()}CreateMaterial(se){return new Promise((ve,je)=>{var Ft=wh,kt=Date[Ft(495)]();this[Ft(925)][kt]={resolve:ve,reject:je},this[Ft(1067)].postMessage({msgType:Ft(634),color:se,cbId:kt})})}[o(898)](se,ve,je,Ft){var kt=o;this[kt(1067)][kt(564)]({msgType:kt(898),modelId:se,materialId:ve,color:je,overlay:Ft})}GetMaterial(se,ve){return new Promise((je,Ft)=>{var kt=wh,bt=Date.now();this[kt(925)][bt]={resolve:lt=>{je(lt)},reject:lt=>{Ft()}},this[kt(1067)][kt(564)]({msgType:kt(879),modelId:se,materialId:ve,cbId:bt})})}SetInstanceMaterialByInstancePtr(se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this.renderEngine.instanceVmBuffer,4*(se+23),new Uint32Array([ve]))}[o(513)](se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this[je(702)][je(666)],4*(se+22),new Uint32Array([ve]))}SetInstanceMaterial(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(810),materialPtr:se,idBuffer:ve.buffer},[ve[je(877)]])}SetInstanceStatus(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(969),status:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(896)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(896),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}[o(477)](se){var ve=o;se=new Uint32Array(se),this[ve(1067)][ve(564)]({msgType:ve(477),idBuffer:se.buffer},[se[ve(877)]])}[o(878)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(878),materialPtr:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(1070)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:"SetInstanceStatusByComponentIds",status:se,idBuffer:ve.buffer},[ve.buffer])}[o(746)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(746),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}CancelInstanceTransformByComponentIds(se){var ve=o;se=new Uint32Array(se),this[ve(1067)].postMessage({msgType:ve(739),idBuffer:se[ve(877)]},[se.buffer])}SetInstanceMaterialByExtendedPropertiesId(se,ve){var je=o;this.ddWorker.postMessage({msgType:je(597),materialPtr:se,extendedPropertiesIds:ve})}[o(662)](se,ve){var je=o;this.ddWorker[je(564)]({msgType:"SetInstanceStatusByExtendedPropertiesId",status:se,extendedPropertiesIds:ve})}[o(609)](se,ve){var je=o;this[je(1067)][je(564)]({msgType:je(609),transform:se,extendedPropertiesIds:ve})}[o(977)](se){var ve=o;this[ve(1067)][ve(564)]({msgType:ve(977),extendedPropertiesIds:se})}[o(776)](se,ve,je,Ft){return new Promise((kt,bt)=>{var lt=wh,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:kt,reject:bt},this[lt(1067)][lt(564)]({msgType:lt(776),x1:se,y1:ve,x2:je,y2:Ft,width:this[lt(1088)].width,height:this[lt(1088)][lt(864)],cbId:ot})})}[o(1012)](se,ve,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*(ve?-1:1),this[Ft(745)].set(je,4);for(let bt=1;bt<=Math[Ft(811)](this[Ft(745)][0]);bt+=1){var kt=D[Ft(1085)]([this.clipPlane[4*bt],this[Ft(745)][4*bt+1],this[Ft(745)][4*bt+2]]);this[Ft(745)][4*bt]=kt[0],this[Ft(745)][4*bt+1]=kt[1],this[Ft(745)][4*bt+2]=kt[2]}}this[Ft(868)]()}[o(868)](){var se=o,ve=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],M[se(584)](je,je));for(let Wt=1;Wt<=Math[se(811)](this[se(745)][0]);Wt++){var ct=this[se(745)][4*Wt],kt=this.clipPlane[4*Wt+1],bt=this[se(745)][4*Wt+2],lt=this[se(745)][4*Wt+3],ot=ct*Ft[0]+kt*Ft[1]+bt*Ft[2]+lt*Ft[3],tt=ct*Ft[4]+kt*Ft[5]+bt*Ft[6]+lt*Ft[7],ze=ct*Ft[8]+kt*Ft[9]+bt*Ft[10]+lt*Ft[11],ct=ct*Ft[12]+kt*Ft[13]+bt*Ft[14]+lt*Ft[15];ve[4*Wt]=ot,ve[4*Wt+1]=tt,ve[4*Wt+2]=ze,ve[4*Wt+3]=ct}ve[0]=this[se(745)][0]}else ve[0]=0;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(449)],0,ve)}SetExplode(se,ve,je,Ft,kt){var bt=o;se===void 0||Number.isNaN(se)||(this[bt(702)][bt(804)][0]=se),ve===void 0||Number[bt(1021)](ve)||(this[bt(702)][bt(804)][1]=ve),je===void 0||Number.isNaN(je)||(this[bt(702)].explodeParam[2]=je),Ft&&3<=Ft.length&&(this[bt(702)][bt(804)][3]=Ft[0],this.renderEngine[bt(804)][4]=Ft[1],this.renderEngine.explodeParam[5]=Ft[2]),kt&&3<=kt.length&&(se=D[bt(1085)](kt),this[bt(702)][bt(804)][6]=se[0],this[bt(702)][bt(804)][7]=se[1],this[bt(702)][bt(804)][8]=se[2]),this.UpdateExplodeAccuracyOffset()}[o(1112)](){var se=o,ve=new Float32Array(this[se(702)][se(804)]);ve[3]-=this.accuracyOffset[0],ve[4]-=this.accuracyOffset[1],ve[5]-=this[se(910)][2],this[se(702)][se(1099)][se(704)].writeBuffer(this.renderEngine[se(792)],0,ve)}[o(765)](){var se=o;let ve=this[se(672)][se(859)];if(!ve.initFine){ve[se(456)]=!0;let je={sources:[se(722)],defines:[]},Ft=new this[se(993)].ShaderSource({sources:[se(644)],defines:[]}),kt=new this[se(993)][se(860)](je),bt=ve.context[se(867)].getShaderProgram({vertexShaderSource:Ft,fragmentShaderSource:kt}),lt=new this.Cesium[se(673)]({context:ve.context,attributes:[]}),ot=(lt[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)]}),ze={bimColorTexture:()=>(this[se(991)](),ve[se(1100)]?ve.serColorTexture[se(453)]({source:ve[se(555)][se(1088)],skipColorSpaceConversion:!0}):ve.serColorTexture=new this.Cesium[se(1038)]({context:ve[se(504)],source:ve.ser[se(1088)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(1100)]),bimDepthTexture:()=>(ve.serDepthTexture?ve.serDepthTexture[se(453)]({source:ve.ser[se(515)],skipColorSpaceConversion:!0}):ve[se(890)]=new this[se(993)][se(1038)]({context:ve[se(504)],source:ve[se(555)][se(515)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(890)])},ct=new this[se(993)][se(828)]({x:0,y:0,z:0},6379137),Wt=new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)].Pass.OPAQUE,boundingVolume:ct});Wt.derivedCommands[se(487)]={command:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id},Wt[se(674)][se(487)][se(885)][se(674)]={depth:{command:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id,depthOnlyCommand:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})}},Wt.derivedCommands[se(649)]={shaderProgramId:bt.id,depthOnlyCommand:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})},Wt.fine=!0,ve.primitives[se(987)]({fine:!0,isDestroyed:()=>!1,update:()=>{ve.frameState.commandList.push(Wt)}})}}}return m}};function wh(o,f){var m=mge();return wh=function(x,y){x=x-411;var v=m[x];return v},wh(o,f)}typeof exports=="object"&&nie(698)==typeof module?module.exports=fge():nie(728)==typeof define&&define[nie(567)]?define([],fge):nie(698)==typeof exports?exports[nie(555)]=fge():Imr.ser=fge();function C2(o){this._earthCtrl=o,this._viewer=o.viewer,this._fig=null,this.serverAddress=""}C2.prototype.create=async function(){let o=this;return this._fig=new ser.serMain({Cesium:Vi,Widget:o._viewer}),await new Promise(f=>{o._fig.OnInitialized=()=>{f(o)}})};C2.prototype.setModelTransform=function(o,f){let m=Ee.toArray(_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.lon,f.lat,f.height)));if(f.roll){let x=be.toRadians(f.roll??0),y=Ee.fromRotationTranslation(Ut.fromRotationZ(x));Ee.multiply(m,y,m)}this._fig.SetModelTransform(o,m)};C2.prototype.showModel=function(o){this._fig.ShowModel(o)};C2.prototype.hideModel=function(o){this._fig.HideModel(o)};C2.prototype.destroy=function(){this._fig.Destroy()};C2.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})}})};C2.prototype.getModelBoundingSphere=function(o){let f=this.modelList[o],m=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box),{}),x=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box,3),{});return Ei.fromPoints([m,x],new Ei)};C2.prototype.clickSem=function(o){let f=this,m=0;f._viewer.screenSpaceEventHandler.setInputAction(function(y){m!==0&&(f._fig.SetInstanceStatusByInstancePtr(m,1),m=0),f._fig.PickId(y.position.x,y.position.y).then(v=>{v&&(m=v.instancePtr,f._fig.SetInstanceStatusByInstancePtr(v.instancePtr,2)),o&&o(v)})},Si.LEFT_CLICK)};C2.prototype.unSelect=function(o){o!==0&&this._fig.SetInstanceStatusByInstancePtr(o,1)};C2.prototype.pickWorldPosition=function(o,f,m){this._fig.PickWorldPosition(o,f).then(x=>{m&&m(x)})};C2.prototype.semModeClipping=function(o){let f=this;return new kxe(f._earthCtrl,f._fig,o)};C2.prototype.setMaterialColor=function(o,f,m,x){this._fig.SetMaterialColor(o,f,[m.red,m.green,m.blue,m.alpha],x)};C2.prototype.choice=function(o){return o=o??{},o.bim=o.ser??this._fig,new Uxe(o,this._earthCtrl,Vi)};C2.prototype.setExplode=function(o,f,m,x,y){this._fig.SetExplode(o,f,m,x,y)};C2.prototype.showComponent=function(o){o.showComponentArr.length>0&&this._fig.SetInstanceStatus(o.status,o.showComponentArr)};var MMt=C2;var Rmr=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(y,v){o.materials[v].extensions.KHR_technique_webgl.values=o.materials[v].values,o.materials[v].extensions.KHR_techniques_webgl=o.materials[v].extensions.KHR_technique_webgl;let C=o.materials[v].extensions.KHR_techniques_webgl;for(let T in C.values){let S=x[C.technique].uniforms;for(let w in S)if(S[w]===T){C.values[w]=C.values[T],delete C.values[T];break}}}),x.forEach(function(y){for(let v in y.attributes){let C=y.attributes[v];y.attributes[v]=y.parameters[C]}for(let v in y.uniforms){let C=y.uniforms[v];y.uniforms[v]=y.parameters[C]}})}},gge=typeof window<"u"?window:typeof self<"u"?self:{},xge=setTimeout(()=>{xge=void 0,gge.logSmartEarth&&gge.logSmartEarth()},1e4);function VMt(o,f){ia.supportsImageRenderingPixelated()&&(o.viewer.resolutionScale=f?window.devicePixelRatio:1),o.viewer.scene.fxaa=f,o.viewer.scene.postProcessStages.fxaa.enabled=f}function id(o,f={},m,x,y){this._core=new Yb(this),this._cesium=Vi,xge&&(clearTimeout(xge),xge=void 0,f.VERSION!==!1&&gge.logSmartEarth&&gge.logSmartEarth()),this.G=65535,m=m??si.EMPTY_OBJECT,F(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=$vt();let v=f.language??vp.ZH_CN;this.i18n=new PMt(v),f.toolbar=f.toolbar??!1,f.baseLayerPicker=f.baseLayerPicker??!1,f.shadows=!1,f.skyAtmosphere=new zq,f.terrainShadows=cl.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:T=!1}=C;f.contextOptions={webgl:{alpha:T,preserveDrawingBuffer:!0},failIfMajorPerformanceCaveat:!1,ellipsoidCoordinates:f.ellipsoidCoordinates},f.navigation=!0,f.disableRightClickMenu=!0,typeof f=="string"?f.baseLayer=new Up(new V1({url:f})):(f.url&&(f.baseLayer=new Up(new V1({url:f.url}))),this._core.extend(f,f,!0));let S=F(f.baseLayer),w;if(f.baseLayerPicker){S=!0;let R=this.getAllImageryView();if(f.basemaps)f.basemaps.forEach(P=>{f.imageryProviderViewModels.push(R[P])});else for(let P in R)f.imageryProviderViewModels.push(R[P])}else!f.imageryProvider&&!f.baseLayer?(w=Up.fromProviderAsync(V1.fromUrl(`${globalThis.GEOWORLD_BASE_URL}Workers/image/earth.jpg`)),f.baseLayer=w):(S=!0,f.imageryProvider&&(f.baseLayer=Up.fromProviderAsync(f.imageryProvider)));let E={destination:Z.fromDegrees(f.x?f.x:93.53987,f.y?f.y:24.77445,f.z?f.z:257935006e-1),orientation:{heading:be.toRadians(f.heading??0),pitch:be.toRadians(f.pitch??-90),roll:be.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 r0e(o,f),this._tree=x,this._Viewer.scene.globe.baseColor=Xe.WHITE,this._Viewer.shadowMap.size=2048,this._Viewer._cesiumWidget._creditContainer.style.display="none",this._Viewer.terrainShadows=cl.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 R="rgba(0,0,0,0)";this._Viewer.scene.backgroundColor=Xe.fromCssColorString(R),this._Viewer.scene.light=new k4({direction:new Z(1,-.9,-.9)}),f.backgroundImage&&(this._Viewer.container.style.backgroundImage=`url(${f.backgroundImage})`)}else this._Viewer.scene.globe.depthTestAgainstTerrain=!0;if(f.defaultImagery&&!S&&window.navigator.onLine&&this.judgeOnline().then(async R=>{R&&(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(w))}).catch(R=>{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 n9e(this),this._camera=new bZe(this),this._measure=new YZe(this),this._shapeTool=new yCt(this),this._editTool=new QZe(this),this._factory=new T3(this),this._tools=new XWe(this),this._edit=new Ake(this),this._analysis=new iUe(this),this._userScene=new rke(this,m),this._view=new zRt(this),this._bim=new jRt(this),this._ser=new MMt(this),this._MilitaryPlotting=new lUe(this),this._atmosphere=new ibt(this),this._simulate=new AMt(this),f.infoBar&&(this._infoBar=new bIt(this)),f.maxViewHeight&&(this._Viewer.scene.screenSpaceCameraController.maximumZoomDistance=f.maxViewHeight),f.minViewHeight||f.maxViewPitch){this.minViewHeight=f.minViewHeight,this.maxViewPitch=f.maxViewPitch&&be.toRadians(f.maxViewPitch);let R=0,P=this._Viewer.scene,A=!1;if(this.maxViewPitch){let M=new Lr(this._Viewer.scene.canvas);M.setInputAction(()=>{A=!0},Si.MIDDLE_DOWN),M.setInputAction(()=>{A=!1},Si.MIDDLE_UP),M.setInputAction(()=>{A=!0},Si.RIGHT_DOWN),M.setInputAction(()=>{A=!1},Si.RIGHT_UP)}this._Viewer.scene.preRender.addEventListener(()=>{let M=this._Viewer.camera;if(!(!M||!M.positionCartographic)){if(this.maxViewPitch){let V=M.pitch;A&&V>this.maxViewPitch?(V=this.maxViewPitch,M.setView({destination:this.oldPosition||M.position.clone(),orientation:{heading:M.heading,pitch:V,roll:0}})):this.oldPosition=M.position.clone()}if(this.minViewHeight){R=P.globe.getHeight(M.positionCartographic)||R;let G,D,N=M.positionCartographic.height-R;this._Viewer.scene.globe.translucency.enabled||this._Analysis&&(this._Analysis._UndergroundMode&&this._Analysis._UndergroundMode.isUndergroundMode||this._Analysis._StreetView&&this._Analysis._StreetView.isStreetView)?(G=M.positionCartographic.height<-200,D=-200):(G=N<this.minViewHeight,D=R+this.minViewHeight);let k=M.pitch<0?M.pitch:0;G?M.setView({destination:this.oldPosition||Z.fromRadians(M.positionCartographic.longitude,M.positionCartographic.latitude,D),orientation:{heading:M.heading,pitch:k,roll:0}}):this.oldPosition=M.position.clone()}}})}let L={};Ts.DEFAULT_VIEW_RECTANGLE=vi.fromDegrees(79,0,130,60),f.navigationOption=f.navigationOption??si.EMPTY_OBJECT,L.defaultResetView=f.navigationOption.defaultResetView??Gt.fromCartesian(E.destination),L.enableCompass=f.navigationOption.enableCompass??!0,L.enableZoomControls=f.navigationOption.enableZoomControls??!0,L.enableDistanceLegend=f.navigationOption.enableDistanceLegend??!0,L.enableCompassOuterRing=f.navigationOption.enableCompassOuterRing??!0,this._Viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(this._cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._Viewer.extend(this._cesium.viewerCesiumNavigationMixin,L),this.camera.setView(E),y&&typeof y=="function"&&y(),CIt.parse(this,m),f.mouseDownView&&this.mouseDownView(!0),f.printLog&&this.addLogo(),Object.defineProperties(Ay.prototype,{_cachedGltf:{configurable:!0,set:function(R){this._vtxf_cachedGltf=R,this._vtxf_cachedGltf&&this._vtxf_cachedGltf._gltf&&Rmr(this._vtxf_cachedGltf._gltf)},get:function(){return this._vtxf_cachedGltf}}}),f.disableRightClickMenu&&(document.oncontextmenu=function(){return!1});let I=function(R){if(R.cesiumWidget._supportsImageRenderingPixelated&&window&&window.devicePixelRatio){let A=window.devicePixelRatio;for(;A>=2;)A/=2;R.resolutionScale=A}};G1.prototype.getRenderedBestLevelInfo=function(){let R=this.getRenderedLevelInfo(),P=0;for(let A in R)P<Number(A)&&(P=Number(A));return{bestLevel:P,count:R[P]}},G1.prototype.getRenderedLevelInfo=function(){let R=[];return this._tilesToRender.forEach(function(P){R[P.level]===void 0&&(R[P.level]=0,R[P.level]++)}),R},VMt(this,!0)}Object.defineProperties(id.prototype,{environment:{get:function(){return this._environment}},entities:{get:function(){return this._Viewer.dataSourceDisplay.defaultDataSource.entities}},enableAA:{set:function(o){VMt(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 Yb(this)),this._Core}},Analysis:{get:function(){return this._Analysis||(this._Analysis=new BIt(this._Viewer,Vi)),this._Analysis}},Creator:{get:function(){return this._Creator||(this._Creator=new dge(this._Viewer,Vi)),this._Creator}},projectTree:{get:function(){return this._ProjectTree||(this._ProjectTree=new EMt(this._Viewer,Vi,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 wt(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._bim}},ser:{get:function(){if(!this._ser)throw new wt(`${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}}});id.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($2.createBrightnessStage()),this.coreMap.scene.brightness.enabled=f,this.coreMap.scene.brightness.uniforms.brightness=Number(m)};id.prototype.judgeOnline=function(){let o=document.createElement("img"),f=new Promise((x,y)=>{let v=setTimeout(()=>{o&&(o.src="",o.remove(),o=null),clearTimeout(v),y("Timeout")},5e3)}),m=new Promise((x,y)=>{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])};id.prototype.addLogo=function(){let o=this;queueMicrotask(()=>{let f=` uniform sampler2D colorTexture; uniform sampler2D logoTexture; uniform vec2 logoSize; -- Gitblit v1.9.3