mars3d-wind 3.5.16 → 3.5.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D平台插件,支持气象 风向图 功能插件 mars3d-wind
3
3
  *
4
- * 版本信息:v3.5.16
5
- * 编译日期:2023-07-17 18:16:31
4
+ * 版本信息:v3.5.18
5
+ * 编译日期:2023-07-31 17:54:06
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2023-03-17
8
8
  */
@@ -11,5 +11,5 @@
11
11
  typeof define === 'function' && define.amd ? define(['exports', 'mars3d'], factory) :
12
12
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars3d-wind"] = {}, global.mars3d));
13
13
  })(this, (function (exports, mars3d) {
14
- 'use strict';const _0x37cdfb=_0x1ac2;(function(_0x18a103,_0xcc91e5){const _0x33dc1a=_0x1ac2,_0x1ed3b7=_0x18a103();while(!![]){try{const _0x10c4bc=-parseInt(_0x33dc1a(0x234))/0x1*(parseInt(_0x33dc1a(0x27d))/0x2)+-parseInt(_0x33dc1a(0x294))/0x3*(parseInt(_0x33dc1a(0x211))/0x4)+parseInt(_0x33dc1a(0x1be))/0x5+-parseInt(_0x33dc1a(0x268))/0x6+-parseInt(_0x33dc1a(0x256))/0x7+-parseInt(_0x33dc1a(0x1c4))/0x8*(-parseInt(_0x33dc1a(0x222))/0x9)+parseInt(_0x33dc1a(0x20a))/0xa;if(_0x10c4bc===_0xcc91e5)break;else _0x1ed3b7['push'](_0x1ed3b7['shift']());}catch(_0x1312cc){_0x1ed3b7['push'](_0x1ed3b7['shift']());}}}(_0x3311,0x30f91));function _interopNamespace(_0xa6584d){const _0x27d49b=_0x1ac2;if(_0xa6584d&&_0xa6584d['__esModule'])return _0xa6584d;var _0x467ec2=Object['create'](null);return _0xa6584d&&Object[_0x27d49b(0x1fe)](_0xa6584d)['forEach'](function(_0x489155){const _0x1fe7b9=_0x27d49b;if(_0x489155!==_0x1fe7b9(0x1b5)){var _0x1e6b02=Object[_0x1fe7b9(0x1c2)](_0xa6584d,_0x489155);Object['defineProperty'](_0x467ec2,_0x489155,_0x1e6b02['get']?_0x1e6b02:{'enumerable':!![],'get':function(){return _0xa6584d[_0x489155];}});}}),_0x467ec2['default']=_0xa6584d,_0x467ec2;}var mars3d__namespace=_interopNamespace(mars3d);const Cesium$7=mars3d__namespace['Cesium'];function getU(_0x586d88,_0xfe9ee0){const _0x1cc095=_0x586d88*Math['cos'](Cesium$7['Math']['toRadians'](_0xfe9ee0));return _0x1cc095;}function getV(_0x26dac9,_0x4fa77d){const _0x85c36f=_0x26dac9*Math['sin'](Cesium$7['Math']['toRadians'](_0x4fa77d));return _0x85c36f;}function getSpeed(_0x1bc610,_0x304381){const _0x335540=_0x1ac2,_0x39b789=Math['sqrt'](Math['pow'](_0x1bc610,0x2)+Math[_0x335540(0x2a3)](_0x304381,0x2));return _0x39b789;}function _0x1ac2(_0x95032d,_0x2e92cd){const _0x3311e0=_0x3311();return _0x1ac2=function(_0x1ac217,_0x3f2db){_0x1ac217=_0x1ac217-0x1b0;let _0x35b616=_0x3311e0[_0x1ac217];return _0x35b616;},_0x1ac2(_0x95032d,_0x2e92cd);}function getDirection(_0x117c48,_0x343d3f){let _0x4cd68f=Cesium$7['Math']['toDegrees'](Math['atan2'](_0x343d3f,_0x117c48));return _0x4cd68f+=_0x4cd68f<0x0?0x168:0x0,_0x4cd68f;}var WindUtil={'__proto__':null,'getU':getU,'getV':getV,'getSpeed':getSpeed,'getDirection':getDirection};const Cesium$6=mars3d__namespace['Cesium'];class CustomPrimitive{constructor(_0x7675b0){const _0x1d77f4=_0x1ac2;this[_0x1d77f4(0x1fc)]=_0x7675b0['commandType'],this['geometry']=_0x7675b0['geometry'],this['attributeLocations']=_0x7675b0['attributeLocations'],this[_0x1d77f4(0x27f)]=_0x7675b0['primitiveType'],this['uniformMap']=_0x7675b0[_0x1d77f4(0x1e8)],this['vertexShaderSource']=_0x7675b0['vertexShaderSource'],this['fragmentShaderSource']=_0x7675b0['fragmentShaderSource'],this['rawRenderState']=_0x7675b0[_0x1d77f4(0x20f)],this['framebuffer']=_0x7675b0['framebuffer'],this[_0x1d77f4(0x24d)]=_0x7675b0[_0x1d77f4(0x24d)],this['autoClear']=_0x7675b0['autoClear']??![],this['preExecute']=_0x7675b0[_0x1d77f4(0x26b)],this['show']=!![],this['commandToExecute']=undefined,this[_0x1d77f4(0x259)]=undefined,this['autoClear']&&(this[_0x1d77f4(0x259)]=new Cesium$6['ClearCommand']({'color':new Cesium$6['Color'](0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':this['framebuffer'],'pass':Cesium$6['Pass']['OPAQUE']}));}['createCommand'](_0x529957){const _0x4f7894=_0x1ac2;switch(this[_0x4f7894(0x1fc)]){case'Draw':{const _0x5bf448=Cesium$6[_0x4f7894(0x237)]['fromGeometry']({'context':_0x529957,'geometry':this[_0x4f7894(0x1f7)],'attributeLocations':this['attributeLocations'],'bufferUsage':Cesium$6[_0x4f7894(0x229)]['STATIC_DRAW']}),_0x3ed897=Cesium$6['ShaderProgram'][_0x4f7894(0x1c3)]({'context':_0x529957,'attributeLocations':this[_0x4f7894(0x279)],'vertexShaderSource':this['vertexShaderSource'],'fragmentShaderSource':this['fragmentShaderSource']}),_0x5a5a7f=Cesium$6['RenderState']['fromCache'](this['rawRenderState']);return new Cesium$6['DrawCommand']({'primitiveType':this['primitiveType'],'shaderProgram':_0x3ed897,'vertexArray':_0x5bf448,'modelMatrix':Cesium$6[_0x4f7894(0x247)][_0x4f7894(0x232)],'renderState':_0x5a5a7f,'uniformMap':this['uniformMap'],'castShadows':![],'receiveShadows':![],'framebuffer':this[_0x4f7894(0x214)],'pass':Cesium$6['Pass']['OPAQUE'],'pickOnly':!![],'owner':this});}case'Compute':{return new Cesium$6[(_0x4f7894(0x208))]({'owner':this,'fragmentShaderSource':this[_0x4f7894(0x236)],'uniformMap':this['uniformMap'],'outputTexture':this['outputTexture'],'persists':!![]});}}}['setGeometry'](_0x2cb138,_0x156bb9){const _0x4d9e55=_0x1ac2;this[_0x4d9e55(0x1f7)]=_0x156bb9;const _0x3f4f4c=Cesium$6['VertexArray']['fromGeometry']({'context':_0x2cb138,'geometry':this['geometry'],'attributeLocations':this['attributeLocations'],'bufferUsage':Cesium$6[_0x4d9e55(0x229)][_0x4d9e55(0x283)]});this['commandToExecute']['vertexArray']=_0x3f4f4c;}['update'](_0x17d3fd){const _0x408110=_0x1ac2;if(!this[_0x408110(0x1cb)])return;if(_0x17d3fd[_0x408110(0x1f2)]!==Cesium$6[_0x408110(0x1d9)]['SCENE3D'])return;!Cesium$6['defined'](this['commandToExecute'])&&(this['commandToExecute']=this['createCommand'](_0x17d3fd[_0x408110(0x26f)])),Cesium$6[_0x408110(0x1d3)](this['preExecute'])&&this[_0x408110(0x26b)](),Cesium$6['defined'](this['clearCommand'])&&_0x17d3fd[_0x408110(0x243)]['push'](this[_0x408110(0x259)]),_0x17d3fd['commandList']['push'](this['commandToExecute']);}[_0x37cdfb(0x22f)](){return![];}['destroy'](){const _0x2f9f42=_0x37cdfb;if(this['clearCommand']){var _0x267306,_0x4abc63;(_0x267306=this[_0x2f9f42(0x259)])!==null&&_0x267306!==void 0x0&&_0x267306[_0x2f9f42(0x1e4)]&&this['clearCommand'][_0x2f9f42(0x1e4)]['destroy'](),(_0x4abc63=this['clearCommand'])!==null&&_0x4abc63!==void 0x0&&_0x4abc63['shaderProgram']&&this[_0x2f9f42(0x259)]['shaderProgram']['destroy'](),delete this['clearCommand'];}return this[_0x2f9f42(0x1cd)]&&(this['commandToExecute']['vertexArray']&&this['commandToExecute']['vertexArray'][_0x2f9f42(0x27a)](),this['commandToExecute'][_0x2f9f42(0x20d)]&&this['commandToExecute'][_0x2f9f42(0x20d)][_0x2f9f42(0x27a)](),delete this['commandToExecute']),Cesium$6['destroyObject'](this);}}const Cesium$5=mars3d__namespace['Cesium'],Util=(function(){const _0x2e6aa9=function(){const _0x1b368c=_0x1ac2,_0x354ba6=new Cesium$5['Geometry']({'attributes':new Cesium$5['GeometryAttributes']({'position':new Cesium$5[(_0x1b368c(0x1bd))]({'componentDatatype':Cesium$5[_0x1b368c(0x1cf)]['FLOAT'],'componentsPerAttribute':0x3,'values':new Float32Array([-0x1,-0x1,0x0,0x1,-0x1,0x0,0x1,0x1,0x0,-0x1,0x1,0x0])}),'st':new Cesium$5['GeometryAttribute']({'componentDatatype':Cesium$5['ComponentDatatype']['FLOAT'],'componentsPerAttribute':0x2,'values':new Float32Array([0x0,0x0,0x1,0x0,0x1,0x1,0x0,0x1])})}),'indices':new Uint32Array([0x3,0x2,0x0,0x0,0x2,0x1])});return _0x354ba6;},_0x5cec75=function(_0xc83045,_0x2fd762){const _0x581646=_0x1ac2;if(Cesium$5['defined'](_0x2fd762)){const _0x1d1591={};_0x1d1591[_0x581646(0x262)]=_0x2fd762,_0xc83045['source']=_0x1d1591;}const _0x1be952=new Cesium$5[(_0x581646(0x282))](_0xc83045);return _0x1be952;},_0x2e02cd=function(_0x29677a,_0x92cecf,_0x530376){const _0x16da7f=new Cesium$5['Framebuffer']({'context':_0x29677a,'colorTextures':[_0x92cecf],'depthTexture':_0x530376});return _0x16da7f;},_0x5a05af=function(_0x4fc98d){const _0xb21c3=_0x1ac2,_0x36280b=!![],_0x454bc5=![],_0x4fec0f={'viewport':_0x4fc98d[_0xb21c3(0x1ce)],'depthTest':_0x4fc98d['depthTest'],'depthMask':_0x4fc98d['depthMask'],'blending':_0x4fc98d['blending']},_0x3eef28=Cesium$5['Appearance']['getDefaultRenderState'](_0x36280b,_0x454bc5,_0x4fec0f);return _0x3eef28;},_0x52e530=function(_0xfe6568){const _0x1851ca=_0x1ac2,_0x1d7606={},_0x13846f=Cesium$5['Math']['mod'](_0xfe6568['west'],Cesium$5['Math']['TWO_PI']),_0x3e385a=Cesium$5['Math']['mod'](_0xfe6568[_0x1851ca(0x219)],Cesium$5['Math'][_0x1851ca(0x1cc)]),_0x34abb1=_0xfe6568['width'];let _0x5932a0,_0xdab9db;_0x34abb1>Cesium$5['Math']['THREE_PI_OVER_TWO']?(_0x5932a0=0x0,_0xdab9db=Cesium$5['Math'][_0x1851ca(0x1cc)]):_0x3e385a-_0x13846f<_0x34abb1?(_0x5932a0=_0x13846f,_0xdab9db=_0x13846f+_0x34abb1):(_0x5932a0=_0x13846f,_0xdab9db=_0x3e385a);_0x1d7606['lon']={'min':Cesium$5['Math']['toDegrees'](_0x5932a0),'max':Cesium$5['Math']['toDegrees'](_0xdab9db)};const _0x104e4b=_0xfe6568[_0x1851ca(0x29c)],_0x519c17=_0xfe6568['north'],_0x4b4675=_0xfe6568['height'],_0x4f3b11=_0x4b4675>Cesium$5['Math']['PI']/0xc?_0x4b4675/0x2:0x0;let _0x1b95de=Cesium$5['Math']['clampToLatitudeRange'](_0x104e4b-_0x4f3b11),_0x3368b6=Cesium$5['Math'][_0x1851ca(0x228)](_0x519c17+_0x4f3b11);return _0x1b95de<-Cesium$5[_0x1851ca(0x1f4)]['PI_OVER_THREE']&&(_0x1b95de=-Cesium$5['Math']['PI_OVER_TWO']),_0x3368b6>Cesium$5['Math']['PI_OVER_THREE']&&(_0x3368b6=Cesium$5[_0x1851ca(0x1f4)]['PI_OVER_TWO']),_0x1d7606['lat']={'min':Cesium$5['Math'][_0x1851ca(0x24b)](_0x1b95de),'max':Cesium$5['Math']['toDegrees'](_0x3368b6)},_0x1d7606;};return{'getFullscreenQuad':_0x2e6aa9,'createTexture':_0x5cec75,'createFramebuffer':_0x2e02cd,'createRawRenderState':_0x5a05af,'viewRectangleToLonLatRange':_0x52e530};}());var segmentDraw_vert=_0x37cdfb(0x274),segmentDraw_frag='uniform\x20sampler2D\x20colorTable;\x0a\x0ain\x20float\x20speedNormalization;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20out_FragColor\x20=\x20texture(colorTable,\x20vec2(speedNormalization,\x200.0));\x0a}\x0a',fullscreen_vert='in\x20vec3\x20position;\x0ain\x20vec2\x20st;\x0a\x0aout\x20vec2\x20textureCoordinate;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20textureCoordinate\x20=\x20st;\x0a\x20\x20\x20\x20gl_Position\x20=\x20vec4(position,\x201.0);\x0a}\x0a',trailDraw_frag='uniform\x20sampler2D\x20segmentsColorTexture;\x0auniform\x20sampler2D\x20segmentsDepthTexture;\x0a\x0auniform\x20sampler2D\x20currentTrailsColor;\x0auniform\x20sampler2D\x20trailsDepthTexture;\x0a\x0auniform\x20float\x20fadeOpacity;\x0a\x0ain\x20vec2\x20textureCoordinate;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20pointsColor\x20=\x20texture(segmentsColorTexture,\x20textureCoordinate);\x0a\x20\x20\x20\x20vec4\x20trailsColor\x20=\x20texture(currentTrailsColor,\x20textureCoordinate);\x0a\x0a\x20\x20\x20\x20trailsColor\x20=\x20floor(fadeOpacity\x20*\x20255.0\x20*\x20trailsColor)\x20/\x20255.0;\x20//\x20make\x20sure\x20the\x20trailsColor\x20will\x20be\x20strictly\x20decreased\x0a\x0a\x20\x20\x20\x20float\x20pointsDepth\x20=\x20texture(segmentsDepthTexture,\x20textureCoordinate).r;\x0a\x20\x20\x20\x20float\x20trailsDepth\x20=\x20texture(trailsDepthTexture,\x20textureCoordinate).r;\x0a\x20\x20\x20\x20float\x20globeDepth\x20=\x20czm_unpackDepth(texture(czm_globeDepthTexture,\x20textureCoordinate));\x0a\x0a\x20\x20\x20\x20out_FragColor\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20if\x20(pointsDepth\x20<\x20globeDepth)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20out_FragColor\x20+\x20pointsColor;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20if\x20(trailsDepth\x20<\x20globeDepth)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20out_FragColor\x20+\x20trailsColor;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20gl_FragDepth\x20=\x20min(pointsDepth,\x20trailsDepth);\x0a}\x0a',screenDraw_frag='uniform\x20sampler2D\x20trailsColorTexture;\x0auniform\x20sampler2D\x20trailsDepthTexture;\x0a\x0ain\x20vec2\x20textureCoordinate;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20trailsColor\x20=\x20texture(trailsColorTexture,\x20textureCoordinate);\x0a\x20\x20\x20\x20float\x20trailsDepth\x20=\x20texture(trailsDepthTexture,\x20textureCoordinate).r;\x0a\x20\x20\x20\x20float\x20globeDepth\x20=\x20czm_unpackDepth(texture(czm_globeDepthTexture,\x20textureCoordinate));\x0a\x0a\x20\x20\x20\x20if\x20(trailsDepth\x20<\x20globeDepth)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20trailsColor;\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20}\x0a}\x0a';const Cesium$4=mars3d__namespace['Cesium'];class ParticlesRendering{constructor(_0x177ec9,_0x38bf8f,_0x25f797,_0x524f83,_0x1bca94){const _0x27115b=_0x37cdfb;this[_0x27115b(0x1ba)](_0x177ec9,_0x38bf8f,_0x25f797['colors']),this['createRenderingFramebuffers'](_0x177ec9),this['createRenderingPrimitives'](_0x177ec9,_0x25f797,_0x524f83,_0x1bca94);}['createRenderingTextures'](_0x24412c,_0x2778e6,_0x25d117){const _0x552ff0=_0x37cdfb,_0x2759bd={'context':_0x24412c,'width':_0x24412c[_0x552ff0(0x27b)],'height':_0x24412c[_0x552ff0(0x22a)],'pixelFormat':Cesium$4['PixelFormat']['RGBA'],'pixelDatatype':Cesium$4['PixelDatatype']['UNSIGNED_BYTE']},_0x52dd6b={'context':_0x24412c,'width':_0x24412c['drawingBufferWidth'],'height':_0x24412c[_0x552ff0(0x22a)],'pixelFormat':Cesium$4['PixelFormat']['DEPTH_COMPONENT'],'pixelDatatype':Cesium$4[_0x552ff0(0x24c)]['UNSIGNED_INT']},_0xcf58fb=_0x25d117['length'],_0x2f3984=new Float32Array(_0xcf58fb*0x3);for(let _0x44fe27=0x0;_0x44fe27<_0xcf58fb;_0x44fe27++){const _0x180f26=Cesium$4[_0x552ff0(0x255)]['fromCssColorString'](_0x25d117[_0x44fe27]);_0x2f3984[0x3*_0x44fe27]=_0x180f26['red'],_0x2f3984[0x3*_0x44fe27+0x1]=_0x180f26[_0x552ff0(0x202)],_0x2f3984[0x3*_0x44fe27+0x2]=_0x180f26[_0x552ff0(0x297)];}const _0xd101ed={'context':_0x24412c,'width':_0xcf58fb,'height':0x1,'pixelFormat':Cesium$4['PixelFormat'][_0x552ff0(0x209)],'pixelDatatype':Cesium$4[_0x552ff0(0x24c)][_0x552ff0(0x288)],'sampler':new Cesium$4[(_0x552ff0(0x220))]({'minificationFilter':Cesium$4[_0x552ff0(0x1f3)][_0x552ff0(0x292)],'magnificationFilter':Cesium$4[_0x552ff0(0x1d6)][_0x552ff0(0x292)]})};this['textures']={'segmentsColor':Util[_0x552ff0(0x1c0)](_0x2759bd),'segmentsDepth':Util['createTexture'](_0x52dd6b),'currentTrailsColor':Util['createTexture'](_0x2759bd),'currentTrailsDepth':Util['createTexture'](_0x52dd6b),'nextTrailsColor':Util['createTexture'](_0x2759bd),'nextTrailsDepth':Util[_0x552ff0(0x1c0)](_0x52dd6b),'colorTable':Util['createTexture'](_0xd101ed,_0x2f3984)};}['createRenderingFramebuffers'](_0x1a98fd){const _0x555516=_0x37cdfb;this['framebuffers']={'segments':Util['createFramebuffer'](_0x1a98fd,this['textures']['segmentsColor'],this['textures']['segmentsDepth']),'currentTrails':Util['createFramebuffer'](_0x1a98fd,this[_0x555516(0x240)]['currentTrailsColor'],this['textures']['currentTrailsDepth']),'nextTrails':Util['createFramebuffer'](_0x1a98fd,this[_0x555516(0x240)][_0x555516(0x1fa)],this[_0x555516(0x240)]['nextTrailsDepth'])};}['createSegmentsGeometry'](_0x3319cb){const _0x89e7c5=_0x37cdfb,_0x556ecd=0x4;let _0x58bb7c=[];for(let _0x4b0376=0x0;_0x4b0376<_0x3319cb[_0x89e7c5(0x249)];_0x4b0376++){for(let _0x6e44a9=0x0;_0x6e44a9<_0x3319cb['particlesTextureSize'];_0x6e44a9++){for(let _0x32375c=0x0;_0x32375c<_0x556ecd;_0x32375c++){_0x58bb7c['push'](_0x4b0376/_0x3319cb[_0x89e7c5(0x249)]),_0x58bb7c['push'](_0x6e44a9/_0x3319cb[_0x89e7c5(0x249)]);}}}_0x58bb7c=new Float32Array(_0x58bb7c);let _0x3ce646=[];const _0x1f04ec=[-0x1,0x1],_0x16b477=[-0x1,0x1];for(let _0x824d9c=0x0;_0x824d9c<_0x3319cb['maxParticles'];_0x824d9c++){for(let _0x55408d=0x0;_0x55408d<_0x556ecd/0x2;_0x55408d++){for(let _0x58f571=0x0;_0x58f571<_0x556ecd/0x2;_0x58f571++){_0x3ce646[_0x89e7c5(0x284)](_0x1f04ec[_0x55408d]),_0x3ce646[_0x89e7c5(0x284)](_0x16b477[_0x58f571]),_0x3ce646['push'](0x0);}}}_0x3ce646=new Float32Array(_0x3ce646);const _0xf22b82=0x6*_0x3319cb[_0x89e7c5(0x1d7)],_0x18c838=new Uint32Array(_0xf22b82);for(let _0x44ffcc=0x0,_0x49b7a3=0x0,_0xe60a69=0x0;_0x44ffcc<_0x3319cb['maxParticles'];_0x44ffcc++){_0x18c838[_0x49b7a3++]=_0xe60a69+0x0,_0x18c838[_0x49b7a3++]=_0xe60a69+0x1,_0x18c838[_0x49b7a3++]=_0xe60a69+0x2,_0x18c838[_0x49b7a3++]=_0xe60a69+0x2,_0x18c838[_0x49b7a3++]=_0xe60a69+0x1,_0x18c838[_0x49b7a3++]=_0xe60a69+0x3,_0xe60a69+=0x4;}const _0x4cd7bf=new Cesium$4['Geometry']({'attributes':new Cesium$4['GeometryAttributes']({'st':new Cesium$4[(_0x89e7c5(0x1bd))]({'componentDatatype':Cesium$4['ComponentDatatype']['FLOAT'],'componentsPerAttribute':0x2,'values':_0x58bb7c}),'normal':new Cesium$4['GeometryAttribute']({'componentDatatype':Cesium$4[_0x89e7c5(0x1cf)][_0x89e7c5(0x288)],'componentsPerAttribute':0x3,'values':_0x3ce646})}),'indices':_0x18c838});return _0x4cd7bf;}['createRenderingPrimitives'](_0x19d4d0,_0x2c347e,_0x264f1a,_0xc6e24b){const _0x5ef416=_0x37cdfb,_0x3c1658=this;this['primitives']={'segments':new CustomPrimitive({'commandType':'Draw','attributeLocations':{'st':0x0,'normal':0x1},'geometry':this[_0x5ef416(0x1c5)](_0x2c347e),'primitiveType':Cesium$4['PrimitiveType']['TRIANGLES'],'uniformMap':{'currentParticlesPosition':function(){return _0xc6e24b['particlesTextures']['currentParticlesPosition'];},'postProcessingPosition':function(){const _0x253437=_0x5ef416;return _0xc6e24b[_0x253437(0x235)][_0x253437(0x20b)];},'postProcessingSpeed':function(){const _0x17c6df=_0x5ef416;return _0xc6e24b[_0x17c6df(0x235)]['postProcessingSpeed'];},'colorTable':function(){const _0x142eb9=_0x5ef416;return _0x3c1658[_0x142eb9(0x240)][_0x142eb9(0x21b)];},'aspect':function(){const _0x39eef1=_0x5ef416;return _0x19d4d0[_0x39eef1(0x27b)]/_0x19d4d0[_0x39eef1(0x22a)];},'pixelSize':function(){const _0x4aeee0=_0x5ef416;return _0x264f1a[_0x4aeee0(0x212)];},'lineWidth':function(){return _0x2c347e['lineWidth'];},'particleHeight':function(){return _0x2c347e['particleHeight'];}},'vertexShaderSource':new Cesium$4['ShaderSource']({'sources':[segmentDraw_vert]}),'fragmentShaderSource':new Cesium$4[(_0x5ef416(0x221))]({'sources':[segmentDraw_frag]}),'rawRenderState':Util[_0x5ef416(0x1c6)]({'viewport':undefined,'depthTest':{'enabled':!![]},'depthMask':!![]}),'framebuffer':this['framebuffers']['segments'],'autoClear':!![]}),'trails':new CustomPrimitive({'commandType':_0x5ef416(0x20c),'attributeLocations':{'position':0x0,'st':0x1},'geometry':Util['getFullscreenQuad'](),'primitiveType':Cesium$4['PrimitiveType']['TRIANGLES'],'uniformMap':{'segmentsColorTexture':function(){const _0x59a2bf=_0x5ef416;return _0x3c1658['textures'][_0x59a2bf(0x24a)];},'segmentsDepthTexture':function(){return _0x3c1658['textures']['segmentsDepth'];},'currentTrailsColor':function(){const _0x11647e=_0x5ef416;return _0x3c1658['framebuffers'][_0x11647e(0x241)]['getColorTexture'](0x0);},'trailsDepthTexture':function(){const _0x396a6b=_0x5ef416;return _0x3c1658[_0x396a6b(0x1ee)]['currentTrails']['depthTexture'];},'fadeOpacity':function(){return _0x2c347e['fadeOpacity'];}},'vertexShaderSource':new Cesium$4['ShaderSource']({'defines':['DISABLE_GL_POSITION_LOG_DEPTH'],'sources':[fullscreen_vert]}),'fragmentShaderSource':new Cesium$4['ShaderSource']({'defines':['DISABLE_LOG_DEPTH_FRAGMENT_WRITE'],'sources':[trailDraw_frag]}),'rawRenderState':Util['createRawRenderState']({'viewport':undefined,'depthTest':{'enabled':!![],'func':Cesium$4[_0x5ef416(0x1df)]['ALWAYS']},'depthMask':!![]}),'framebuffer':this[_0x5ef416(0x1ee)]['nextTrails'],'autoClear':!![],'preExecute':function(){const _0x51a43c=_0x5ef416,_0x1e09b0=_0x3c1658['framebuffers']['currentTrails'];_0x3c1658['framebuffers']['currentTrails']=_0x3c1658['framebuffers']['nextTrails'],_0x3c1658['framebuffers'][_0x51a43c(0x216)]=_0x1e09b0,_0x3c1658[_0x51a43c(0x1dc)]['trails']['commandToExecute']['framebuffer']=_0x3c1658[_0x51a43c(0x1ee)]['nextTrails'],_0x3c1658['primitives']['trails']['clearCommand'][_0x51a43c(0x214)]=_0x3c1658['framebuffers'][_0x51a43c(0x216)];}}),'screen':new CustomPrimitive({'commandType':'Draw','attributeLocations':{'position':0x0,'st':0x1},'geometry':Util['getFullscreenQuad'](),'primitiveType':Cesium$4[_0x5ef416(0x1d0)][_0x5ef416(0x1b6)],'uniformMap':{'trailsColorTexture':function(){const _0x5ca88e=_0x5ef416;return _0x3c1658['framebuffers'][_0x5ca88e(0x216)][_0x5ca88e(0x25f)](0x0);},'trailsDepthTexture':function(){const _0x35fbd4=_0x5ef416;return _0x3c1658[_0x35fbd4(0x1ee)][_0x35fbd4(0x216)]['depthTexture'];}},'vertexShaderSource':new Cesium$4[(_0x5ef416(0x221))]({'defines':['DISABLE_GL_POSITION_LOG_DEPTH'],'sources':[fullscreen_vert]}),'fragmentShaderSource':new Cesium$4['ShaderSource']({'defines':['DISABLE_LOG_DEPTH_FRAGMENT_WRITE'],'sources':[screenDraw_frag]}),'rawRenderState':Util['createRawRenderState']({'viewport':undefined,'depthTest':{'enabled':![]},'depthMask':!![],'blending':{'enabled':!![]}}),'framebuffer':undefined})};}}var getWind_frag='//\x20the\x20size\x20of\x20UV\x20textures:\x20width\x20=\x20lon,\x20height\x20=\x20lat*lev\x0auniform\x20sampler2D\x20U;\x20//\x20eastward\x20wind\x0auniform\x20sampler2D\x20V;\x20//\x20northward\x20wind\x0a\x0auniform\x20sampler2D\x20currentParticlesPosition;\x20//\x20(lon,\x20lat,\x20lev)\x0a\x0auniform\x20vec3\x20dimension;\x20//\x20(lon,\x20lat,\x20lev)\x0auniform\x20vec3\x20minimum;\x20//\x20minimum\x20of\x20each\x20dimension\x0auniform\x20vec3\x20maximum;\x20//\x20maximum\x20of\x20each\x20dimension\x0auniform\x20vec3\x20interval;\x20//\x20interval\x20of\x20each\x20dimension\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0avec2\x20mapPositionToNormalizedIndex2D(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20ensure\x20the\x20range\x20of\x20longitude\x20and\x20latitude\x0a\x20\x20\x20\x20lonLatLev.x\x20=\x20mod(lonLatLev.x,\x20360.0);\x0a\x20\x20\x20\x20lonLatLev.y\x20=\x20clamp(lonLatLev.y,\x20-90.0,\x2090.0);\x0a\x0a\x20\x20\x20\x20vec3\x20index3D\x20=\x20vec3(0.0);\x0a\x20\x20\x20\x20index3D.x\x20=\x20(lonLatLev.x\x20-\x20minimum.x)\x20/\x20interval.x;\x0a\x20\x20\x20\x20index3D.y\x20=\x20(lonLatLev.y\x20-\x20minimum.y)\x20/\x20interval.y;\x0a\x20\x20\x20\x20index3D.z\x20=\x20(lonLatLev.z\x20-\x20minimum.z)\x20/\x20interval.z;\x0a\x0a\x20\x20\x20\x20//\x20the\x20st\x20texture\x20coordinate\x20corresponding\x20to\x20(col,\x20row)\x20index\x0a\x20\x20\x20\x20//\x20example\x0a\x20\x20\x20\x20//\x20data\x20array\x20is\x20[0,\x201,\x202,\x203,\x204,\x205],\x20width\x20=\x203,\x20height\x20=\x202\x0a\x20\x20\x20\x20//\x20the\x20content\x20of\x20texture\x20will\x20be\x0a\x20\x20\x20\x20//\x20t\x201.0\x0a\x20\x20\x20\x20//\x20\x20\x20\x20|\x20\x203\x204\x205\x0a\x20\x20\x20\x20//\x20\x20\x20\x20|\x0a\x20\x20\x20\x20//\x20\x20\x20\x20|\x20\x200\x201\x202\x0a\x20\x20\x20\x20//\x20\x20\x200.0------1.0\x20s\x0a\x0a\x20\x20\x20\x20vec2\x20index2D\x20=\x20vec2(index3D.x,\x20index3D.z\x20*\x20dimension.y\x20+\x20index3D.y);\x0a\x20\x20\x20\x20vec2\x20normalizedIndex2D\x20=\x20vec2(index2D.x\x20/\x20dimension.x,\x20index2D.y\x20/\x20(dimension.y\x20*\x20dimension.z));\x0a\x20\x20\x20\x20return\x20normalizedIndex2D;\x0a}\x0a\x0afloat\x20getWind(sampler2D\x20windTexture,\x20vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20vec2\x20normalizedIndex2D\x20=\x20mapPositionToNormalizedIndex2D(lonLatLev);\x0a\x20\x20\x20\x20float\x20result\x20=\x20texture(windTexture,\x20normalizedIndex2D).r;\x0a\x20\x20\x20\x20return\x20result;\x0a}\x0a\x0aconst\x20mat4\x20kernelMatrix\x20=\x20mat4(\x0a\x20\x20\x20\x200.0,\x20-1.0,\x202.0,\x20-1.0,\x20//\x20first\x20column\x0a\x20\x20\x20\x202.0,\x200.0,\x20-5.0,\x203.0,\x20//\x20second\x20column\x0a\x20\x20\x20\x200.0,\x201.0,\x204.0,\x20-3.0,\x20//\x20third\x20column\x0a\x20\x20\x20\x200.0,\x200.0,\x20-1.0,\x201.0\x20//\x20fourth\x20column\x0a);\x0afloat\x20oneDimensionInterpolation(float\x20t,\x20float\x20p0,\x20float\x20p1,\x20float\x20p2,\x20float\x20p3)\x20{\x0a\x20\x20\x20\x20vec4\x20tVec4\x20=\x20vec4(1.0,\x20t,\x20t\x20*\x20t,\x20t\x20*\x20t\x20*\x20t);\x0a\x20\x20\x20\x20tVec4\x20=\x20tVec4\x20/\x202.0;\x0a\x20\x20\x20\x20vec4\x20pVec4\x20=\x20vec4(p0,\x20p1,\x20p2,\x20p3);\x0a\x20\x20\x20\x20return\x20dot((tVec4\x20*\x20kernelMatrix),\x20pVec4);\x0a}\x0a\x0afloat\x20calculateB(sampler2D\x20windTexture,\x20float\x20t,\x20float\x20lon,\x20float\x20lat,\x20float\x20lev)\x20{\x0a\x20\x20\x20\x20float\x20lon0\x20=\x20floor(lon)\x20-\x201.0\x20*\x20interval.x;\x0a\x20\x20\x20\x20float\x20lon1\x20=\x20floor(lon);\x0a\x20\x20\x20\x20float\x20lon2\x20=\x20floor(lon)\x20+\x201.0\x20*\x20interval.x;\x0a\x20\x20\x20\x20float\x20lon3\x20=\x20floor(lon)\x20+\x202.0\x20*\x20interval.x;\x0a\x0a\x20\x20\x20\x20float\x20p0\x20=\x20getWind(windTexture,\x20vec3(lon0,\x20lat,\x20lev));\x0a\x20\x20\x20\x20float\x20p1\x20=\x20getWind(windTexture,\x20vec3(lon1,\x20lat,\x20lev));\x0a\x20\x20\x20\x20float\x20p2\x20=\x20getWind(windTexture,\x20vec3(lon2,\x20lat,\x20lev));\x0a\x20\x20\x20\x20float\x20p3\x20=\x20getWind(windTexture,\x20vec3(lon3,\x20lat,\x20lev));\x0a\x0a\x20\x20\x20\x20return\x20oneDimensionInterpolation(t,\x20p0,\x20p1,\x20p2,\x20p3);\x0a}\x0a\x0afloat\x20interpolateOneTexture(sampler2D\x20windTexture,\x20vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20float\x20lon\x20=\x20lonLatLev.x;\x0a\x20\x20\x20\x20float\x20lat\x20=\x20lonLatLev.y;\x0a\x20\x20\x20\x20float\x20lev\x20=\x20lonLatLev.z;\x0a\x0a\x20\x20\x20\x20float\x20lat0\x20=\x20floor(lat)\x20-\x201.0\x20*\x20interval.y;\x0a\x20\x20\x20\x20float\x20lat1\x20=\x20floor(lat);\x0a\x20\x20\x20\x20float\x20lat2\x20=\x20floor(lat)\x20+\x201.0\x20*\x20interval.y;\x0a\x20\x20\x20\x20float\x20lat3\x20=\x20floor(lat)\x20+\x202.0\x20*\x20interval.y;\x0a\x0a\x20\x20\x20\x20vec2\x20coefficient\x20=\x20lonLatLev.xy\x20-\x20floor(lonLatLev.xy);\x0a\x20\x20\x20\x20float\x20b0\x20=\x20calculateB(windTexture,\x20coefficient.x,\x20lon,\x20lat0,\x20lev);\x0a\x20\x20\x20\x20float\x20b1\x20=\x20calculateB(windTexture,\x20coefficient.x,\x20lon,\x20lat1,\x20lev);\x0a\x20\x20\x20\x20float\x20b2\x20=\x20calculateB(windTexture,\x20coefficient.x,\x20lon,\x20lat2,\x20lev);\x0a\x20\x20\x20\x20float\x20b3\x20=\x20calculateB(windTexture,\x20coefficient.x,\x20lon,\x20lat3,\x20lev);\x0a\x0a\x20\x20\x20\x20return\x20oneDimensionInterpolation(coefficient.y,\x20b0,\x20b1,\x20b2,\x20b3);\x0a}\x0a\x0avec3\x20bicubic(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20https://en.wikipedia.org/wiki/Bicubic_interpolation#Bicubic_convolution_algorithm\x0a\x20\x20\x20\x20float\x20u\x20=\x20interpolateOneTexture(U,\x20lonLatLev);\x0a\x20\x20\x20\x20float\x20v\x20=\x20interpolateOneTexture(V,\x20lonLatLev);\x0a\x20\x20\x20\x20float\x20w\x20=\x200.0;\x0a\x20\x20\x20\x20return\x20vec3(u,\x20v,\x20w);\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20texture\x20coordinate\x20must\x20be\x20normalized\x0a\x20\x20\x20\x20vec3\x20lonLatLev\x20=\x20texture(currentParticlesPosition,\x20v_textureCoordinates).rgb;\x0a\x20\x20\x20\x20vec3\x20windVector\x20=\x20bicubic(lonLatLev);\x0a\x20\x20\x20\x20out_FragColor\x20=\x20vec4(windVector,\x200.0);\x0a}\x0a',updateSpeed_frag='uniform\x20sampler2D\x20currentParticlesSpeed;\x20//\x20(u,\x20v,\x20w,\x20normalization)\x0auniform\x20sampler2D\x20particlesWind;\x0a\x0a//\x20used\x20to\x20calculate\x20the\x20wind\x20norm\x0auniform\x20vec2\x20uSpeedRange;\x20//\x20(min,\x20max);\x0auniform\x20vec2\x20vSpeedRange;\x0auniform\x20float\x20pixelSize;\x0auniform\x20float\x20speedFactor;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0afloat\x20calculateWindNorm(vec3\x20speed)\x20{\x0a\x20\x20\x20\x20vec3\x20percent\x20=\x20vec3(0.0);\x0a\x20\x20\x20\x20percent.x\x20=\x20(speed.x\x20-\x20uSpeedRange.x)\x20/\x20(uSpeedRange.y\x20-\x20uSpeedRange.x);\x0a\x20\x20\x20\x20percent.y\x20=\x20(speed.y\x20-\x20vSpeedRange.x)\x20/\x20(vSpeedRange.y\x20-\x20vSpeedRange.x);\x0a\x20\x20\x20\x20float\x20normalization\x20=\x20length(percent);\x0a\x0a\x20\x20\x20\x20return\x20normalization;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20texture\x20coordinate\x20must\x20be\x20normalized\x0a\x20\x20\x20\x20//\x20vec3\x20currentSpeed\x20=\x20texture(currentParticlesSpeed,\x20v_textureCoordinates).rgb;\x0a\x20\x20\x20\x20vec3\x20windVector\x20=\x20texture(particlesWind,\x20v_textureCoordinates).rgb;\x0a\x0a\x20\x20\x20\x20vec4\x20nextSpeed\x20=\x20vec4(speedFactor\x20*\x20pixelSize\x20*\x20windVector,\x20calculateWindNorm(windVector));\x0a\x20\x20\x20\x20out_FragColor\x20=\x20nextSpeed;\x0a}\x0a',updatePosition_frag='uniform\x20sampler2D\x20currentParticlesPosition;\x20//\x20(lon,\x20lat,\x20lev)\x0auniform\x20sampler2D\x20currentParticlesSpeed;\x20//\x20(u,\x20v,\x20w,\x20normalization)\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0avec2\x20lengthOfLonLat(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20unit\x20conversion:\x20meters\x20->\x20longitude\x20latitude\x20degrees\x0a\x20\x20\x20\x20//\x20see\x20https://en.wikipedia.org/wiki/Geographic_coordinate_system#Length_of_a_degree\x20for\x20detail\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20the\x20length\x20of\x20a\x20degree\x20of\x20latitude\x20and\x20longitude\x20in\x20meters\x0a\x20\x20\x20\x20float\x20latitude\x20=\x20radians(lonLatLev.y);\x0a\x0a\x20\x20\x20\x20float\x20term1\x20=\x20111132.92;\x0a\x20\x20\x20\x20float\x20term2\x20=\x20559.82\x20*\x20cos(2.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20term3\x20=\x201.175\x20*\x20cos(4.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20term4\x20=\x200.0023\x20*\x20cos(6.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20latLength\x20=\x20term1\x20-\x20term2\x20+\x20term3\x20-\x20term4;\x0a\x0a\x20\x20\x20\x20float\x20term5\x20=\x20111412.84\x20*\x20cos(latitude);\x0a\x20\x20\x20\x20float\x20term6\x20=\x2093.5\x20*\x20cos(3.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20term7\x20=\x200.118\x20*\x20cos(5.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20longLength\x20=\x20term5\x20-\x20term6\x20+\x20term7;\x0a\x0a\x20\x20\x20\x20return\x20vec2(longLength,\x20latLength);\x0a}\x0a\x0avoid\x20updatePosition(vec3\x20lonLatLev,\x20vec3\x20speed)\x20{\x0a\x20\x20\x20\x20vec2\x20lonLatLength\x20=\x20lengthOfLonLat(lonLatLev);\x0a\x20\x20\x20\x20float\x20u\x20=\x20speed.x\x20/\x20lonLatLength.x;\x0a\x20\x20\x20\x20float\x20v\x20=\x20speed.y\x20/\x20lonLatLength.y;\x0a\x20\x20\x20\x20float\x20w\x20=\x200.0;\x0a\x20\x20\x20\x20vec3\x20windVectorInLonLatLev\x20=\x20vec3(u,\x20v,\x20w);\x0a\x0a\x20\x20\x20\x20vec3\x20nextParticle\x20=\x20lonLatLev\x20+\x20windVectorInLonLatLev;\x0a\x0a\x20\x20\x20\x20out_FragColor\x20=\x20vec4(nextParticle,\x200.0);\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20texture\x20coordinate\x20must\x20be\x20normalized\x0a\x20\x20\x20\x20vec3\x20lonLatLev\x20=\x20texture(currentParticlesPosition,\x20v_textureCoordinates).rgb;\x0a\x20\x20\x20\x20vec3\x20speed\x20=\x20texture(currentParticlesSpeed,\x20v_textureCoordinates).rgb;\x0a\x0a\x20\x20\x20\x20updatePosition(lonLatLev,\x20speed);\x0a}\x0a',postProcessingPosition_frag='uniform\x20sampler2D\x20nextParticlesPosition;\x0auniform\x20sampler2D\x20nextParticlesSpeed;\x20//\x20(u,\x20v,\x20w,\x20normalization)\x0a\x0a//\x20range\x20(min,\x20max)\x0auniform\x20vec2\x20lonRange;\x0auniform\x20vec2\x20latRange;\x0a\x0auniform\x20float\x20randomCoefficient;\x20//\x20use\x20to\x20improve\x20the\x20pseudo-random\x20generator\x0auniform\x20float\x20dropRate;\x20//\x20drop\x20rate\x20is\x20a\x20chance\x20a\x20particle\x20will\x20restart\x20at\x20random\x20position\x20to\x20avoid\x20degeneration\x0auniform\x20float\x20dropRateBump;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0a//\x20pseudo-random\x20generator\x0aconst\x20vec3\x20randomConstants\x20=\x20vec3(12.9898,\x2078.233,\x204375.85453);\x0aconst\x20vec2\x20normalRange\x20=\x20vec2(0.0,\x201.0);\x0afloat\x20rand(vec2\x20seed,\x20vec2\x20range)\x20{\x0a\x20\x20\x20\x20vec2\x20randomSeed\x20=\x20randomCoefficient\x20*\x20seed;\x0a\x20\x20\x20\x20float\x20temp\x20=\x20dot(randomConstants.xy,\x20randomSeed);\x0a\x20\x20\x20\x20temp\x20=\x20fract(sin(temp)\x20*\x20(randomConstants.z\x20+\x20temp));\x0a\x20\x20\x20\x20return\x20temp\x20*\x20(range.y\x20-\x20range.x)\x20+\x20range.x;\x0a}\x0a\x0avec3\x20generateRandomParticle(vec2\x20seed,\x20float\x20lev)\x20{\x0a\x20\x20\x20\x20//\x20ensure\x20the\x20longitude\x20is\x20in\x20[0,\x20360]\x0a\x20\x20\x20\x20float\x20randomLon\x20=\x20mod(rand(seed,\x20lonRange),\x20360.0);\x0a\x20\x20\x20\x20float\x20randomLat\x20=\x20rand(-seed,\x20latRange);\x0a\x0a\x20\x20\x20\x20return\x20vec3(randomLon,\x20randomLat,\x20lev);\x0a}\x0a\x0abool\x20particleOutbound(vec3\x20particle)\x20{\x0a\x20\x20\x20\x20return\x20particle.y\x20<\x20-90.0\x20||\x20particle.y\x20>\x2090.0;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec3\x20nextParticle\x20=\x20texture(nextParticlesPosition,\x20v_textureCoordinates).rgb;\x0a\x20\x20\x20\x20vec4\x20nextSpeed\x20=\x20texture(nextParticlesSpeed,\x20v_textureCoordinates);\x0a\x20\x20\x20\x20float\x20particleDropRate\x20=\x20dropRate\x20+\x20dropRateBump\x20*\x20nextSpeed.a;\x0a\x0a\x20\x20\x20\x20vec2\x20seed1\x20=\x20nextParticle.xy\x20+\x20v_textureCoordinates;\x0a\x20\x20\x20\x20vec2\x20seed2\x20=\x20nextSpeed.xy\x20+\x20v_textureCoordinates;\x0a\x20\x20\x20\x20vec3\x20randomParticle\x20=\x20generateRandomParticle(seed1,\x20nextParticle.z);\x0a\x20\x20\x20\x20float\x20randomNumber\x20=\x20rand(seed2,\x20normalRange);\x0a\x0a\x20\x20\x20\x20if\x20(randomNumber\x20<\x20particleDropRate\x20||\x20particleOutbound(nextParticle))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20vec4(randomParticle,\x201.0);\x20//\x201.0\x20means\x20this\x20is\x20a\x20random\x20particle\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20vec4(nextParticle,\x200.0);\x0a\x20\x20\x20\x20}\x0a}\x0a',postProcessingSpeed_frag='uniform\x20sampler2D\x20postProcessingPosition;\x0auniform\x20sampler2D\x20nextParticlesSpeed;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20randomParticle\x20=\x20texture(postProcessingPosition,\x20v_textureCoordinates);\x0a\x20\x20\x20\x20vec4\x20particleSpeed\x20=\x20texture(nextParticlesSpeed,\x20v_textureCoordinates);\x0a\x0a\x20\x20\x20\x20if\x20(randomParticle.a\x20>\x200.0)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20particleSpeed;\x0a\x20\x20\x20\x20}\x0a}\x0a';const Cesium$3=mars3d__namespace['Cesium'];class ParticlesComputing{constructor(_0x24e9b8,_0x4012d9,_0x1b0da9,_0xa1818f){this['data']=_0x4012d9,this['createWindTextures'](_0x24e9b8,_0x4012d9),this['createParticlesTextures'](_0x24e9b8,_0x1b0da9,_0xa1818f),this['createComputingPrimitives'](_0x4012d9,_0x1b0da9,_0xa1818f);}[_0x37cdfb(0x286)](_0x197346,_0x1a5f53){const _0x59ba8c=_0x37cdfb,_0x579c7b={'context':_0x197346,'width':_0x1a5f53['dimensions']['lon'],'height':_0x1a5f53[_0x59ba8c(0x1bf)]['lat']*(_0x1a5f53['dimensions']['lev']||0x1),'pixelFormat':Cesium$3['PixelFormat']['LUMINANCE'],'pixelDatatype':Cesium$3[_0x59ba8c(0x24c)][_0x59ba8c(0x288)],'flipY':![],'sampler':new Cesium$3['Sampler']({'minificationFilter':Cesium$3['TextureMinificationFilter']['NEAREST'],'magnificationFilter':Cesium$3['TextureMagnificationFilter']['NEAREST']})};this['windTextures']={'U':Util[_0x59ba8c(0x1c0)](_0x579c7b,_0x1a5f53['U'][_0x59ba8c(0x25e)]),'V':Util['createTexture'](_0x579c7b,_0x1a5f53['V']['array'])};}['createParticlesTextures'](_0x52b161,_0x55e6cf,_0x5c1b30){const _0x1183dc=_0x37cdfb,_0x23b5a7={'context':_0x52b161,'width':_0x55e6cf['particlesTextureSize'],'height':_0x55e6cf['particlesTextureSize'],'pixelFormat':Cesium$3['PixelFormat']['RGBA'],'pixelDatatype':Cesium$3['PixelDatatype']['FLOAT'],'flipY':![],'sampler':new Cesium$3['Sampler']({'minificationFilter':Cesium$3[_0x1183dc(0x1f3)]['NEAREST'],'magnificationFilter':Cesium$3['TextureMagnificationFilter']['NEAREST']})},_0x47f987=this[_0x1183dc(0x280)](_0x55e6cf[_0x1183dc(0x1d7)],_0x5c1b30),_0x2f09e3=new Float32Array(0x4*_0x55e6cf['maxParticles'])[_0x1183dc(0x23a)](0x0);this['particlesTextures']={'particlesWind':Util['createTexture'](_0x23b5a7),'currentParticlesPosition':Util[_0x1183dc(0x1c0)](_0x23b5a7,_0x47f987),'nextParticlesPosition':Util['createTexture'](_0x23b5a7,_0x47f987),'currentParticlesSpeed':Util['createTexture'](_0x23b5a7,_0x2f09e3),'nextParticlesSpeed':Util[_0x1183dc(0x1c0)](_0x23b5a7,_0x2f09e3),'postProcessingPosition':Util[_0x1183dc(0x1c0)](_0x23b5a7,_0x47f987),'postProcessingSpeed':Util['createTexture'](_0x23b5a7,_0x2f09e3)};}['randomizeParticles'](_0x501fcf,_0x531ad7){const _0x1669b3=_0x37cdfb,_0x2f6fdb=new Float32Array(0x4*_0x501fcf);for(let _0x1b6b3c=0x0;_0x1b6b3c<_0x501fcf;_0x1b6b3c++){_0x2f6fdb[0x4*_0x1b6b3c]=Cesium$3['Math']['randomBetween'](_0x531ad7[_0x1669b3(0x251)]['x'],_0x531ad7['lonRange']['y']),_0x2f6fdb[0x4*_0x1b6b3c+0x1]=Cesium$3['Math']['randomBetween'](_0x531ad7['latRange']['x'],_0x531ad7['latRange']['y']),_0x2f6fdb[0x4*_0x1b6b3c+0x2]=Cesium$3['Math']['randomBetween'](this[_0x1669b3(0x24e)]['lev']['min'],this['data']['lev']['max']),_0x2f6fdb[0x4*_0x1b6b3c+0x3]=0x0;}return _0x2f6fdb;}['destroyParticlesTextures'](){const _0x3322c4=_0x37cdfb;Object['keys'](this['particlesTextures'])[_0x3322c4(0x1bb)](_0x3b77ff=>{this['particlesTextures'][_0x3b77ff]['destroy']();});}['createComputingPrimitives'](_0x1d9fae,_0x44c9ca,_0x51dc99){const _0x133141=_0x37cdfb,_0x4eec33=new Cesium$3['Cartesian3'](_0x1d9fae['dimensions']['lon'],_0x1d9fae['dimensions']['lat'],_0x1d9fae['dimensions']['lev']),_0x208cfc=new Cesium$3['Cartesian3'](_0x1d9fae['lon'][_0x133141(0x225)],_0x1d9fae[_0x133141(0x29f)]['min'],_0x1d9fae['lev'][_0x133141(0x225)]),_0x1b98d8=new Cesium$3['Cartesian3'](_0x1d9fae['lon']['max'],_0x1d9fae['lat'][_0x133141(0x291)],_0x1d9fae[_0x133141(0x217)]['max']),_0x22927f=new Cesium$3['Cartesian3']((_0x1b98d8['x']-_0x208cfc['x'])/(_0x4eec33['x']-0x1),(_0x1b98d8['y']-_0x208cfc['y'])/(_0x4eec33['y']-0x1),_0x4eec33['z']>0x1?(_0x1b98d8['z']-_0x208cfc['z'])/(_0x4eec33['z']-0x1):0x1),_0x4552d9=new Cesium$3['Cartesian2'](_0x1d9fae['U']['min'],_0x1d9fae['U']['max']),_0x413571=new Cesium$3['Cartesian2'](_0x1d9fae['V']['min'],_0x1d9fae['V'][_0x133141(0x291)]),_0x2ce43f=this;this['primitives']={'getWind':new CustomPrimitive({'commandType':'Compute','uniformMap':{'U':function(){return _0x2ce43f['windTextures']['U'];},'V':function(){return _0x2ce43f['windTextures']['V'];},'currentParticlesPosition':function(){const _0x1cad89=_0x133141;return _0x2ce43f['particlesTextures'][_0x1cad89(0x230)];},'dimension':function(){return _0x4eec33;},'minimum':function(){return _0x208cfc;},'maximum':function(){return _0x1b98d8;},'interval':function(){return _0x22927f;}},'fragmentShaderSource':new Cesium$3['ShaderSource']({'sources':[getWind_frag]}),'outputTexture':this[_0x133141(0x235)]['particlesWind'],'preExecute':function(){const _0x4a3bd7=_0x133141;_0x2ce43f[_0x4a3bd7(0x1dc)]['getWind']['commandToExecute']['outputTexture']=_0x2ce43f['particlesTextures']['particlesWind'];}}),'updateSpeed':new CustomPrimitive({'commandType':'Compute','uniformMap':{'currentParticlesSpeed':function(){return _0x2ce43f['particlesTextures']['currentParticlesSpeed'];},'particlesWind':function(){return _0x2ce43f['particlesTextures']['particlesWind'];},'uSpeedRange':function(){return _0x4552d9;},'vSpeedRange':function(){return _0x413571;},'pixelSize':function(){const _0x18f2ee=_0x133141;return _0x51dc99[_0x18f2ee(0x212)];},'speedFactor':function(){return _0x44c9ca['speedFactor'];}},'fragmentShaderSource':new Cesium$3['ShaderSource']({'sources':[updateSpeed_frag]}),'outputTexture':this['particlesTextures'][_0x133141(0x200)],'preExecute':function(){const _0x4a8ebf=_0x133141,_0x2d9689=_0x2ce43f[_0x4a8ebf(0x235)][_0x4a8ebf(0x28b)];_0x2ce43f['particlesTextures']['currentParticlesSpeed']=_0x2ce43f['particlesTextures']['postProcessingSpeed'],_0x2ce43f[_0x4a8ebf(0x235)][_0x4a8ebf(0x22b)]=_0x2d9689,_0x2ce43f['primitives']['updateSpeed'][_0x4a8ebf(0x1cd)]['outputTexture']=_0x2ce43f['particlesTextures']['nextParticlesSpeed'];}}),'updatePosition':new CustomPrimitive({'commandType':'Compute','uniformMap':{'currentParticlesPosition':function(){return _0x2ce43f['particlesTextures']['currentParticlesPosition'];},'currentParticlesSpeed':function(){const _0x2ce500=_0x133141;return _0x2ce43f['particlesTextures'][_0x2ce500(0x28b)];}},'fragmentShaderSource':new Cesium$3[(_0x133141(0x221))]({'sources':[updatePosition_frag]}),'outputTexture':this[_0x133141(0x235)]['nextParticlesPosition'],'preExecute':function(){const _0x140340=_0x133141,_0x442ef9=_0x2ce43f['particlesTextures']['currentParticlesPosition'];_0x2ce43f['particlesTextures']['currentParticlesPosition']=_0x2ce43f['particlesTextures']['postProcessingPosition'],_0x2ce43f['particlesTextures']['postProcessingPosition']=_0x442ef9,_0x2ce43f[_0x140340(0x1dc)]['updatePosition']['commandToExecute']['outputTexture']=_0x2ce43f['particlesTextures']['nextParticlesPosition'];}}),'postProcessingPosition':new CustomPrimitive({'commandType':'Compute','uniformMap':{'nextParticlesPosition':function(){const _0x373348=_0x133141;return _0x2ce43f[_0x373348(0x235)]['nextParticlesPosition'];},'nextParticlesSpeed':function(){return _0x2ce43f['particlesTextures']['nextParticlesSpeed'];},'lonRange':function(){const _0x51328f=_0x133141;return _0x51dc99[_0x51328f(0x251)];},'latRange':function(){const _0x25c650=_0x133141;return _0x51dc99[_0x25c650(0x1f9)];},'randomCoefficient':function(){const _0x268eb9=_0x133141,_0x180334=Math[_0x268eb9(0x28a)]();return _0x180334;},'dropRate':function(){return _0x44c9ca['dropRate'];},'dropRateBump':function(){return _0x44c9ca['dropRateBump'];}},'fragmentShaderSource':new Cesium$3[(_0x133141(0x221))]({'sources':[postProcessingPosition_frag]}),'outputTexture':this['particlesTextures']['postProcessingPosition'],'preExecute':function(){const _0x37ee34=_0x133141;_0x2ce43f['primitives']['postProcessingPosition']['commandToExecute'][_0x37ee34(0x24d)]=_0x2ce43f['particlesTextures']['postProcessingPosition'];}}),'postProcessingSpeed':new CustomPrimitive({'commandType':_0x133141(0x245),'uniformMap':{'postProcessingPosition':function(){const _0x3b36c9=_0x133141;return _0x2ce43f['particlesTextures'][_0x3b36c9(0x20b)];},'nextParticlesSpeed':function(){const _0x1f0f4b=_0x133141;return _0x2ce43f['particlesTextures'][_0x1f0f4b(0x200)];}},'fragmentShaderSource':new Cesium$3['ShaderSource']({'sources':[postProcessingSpeed_frag]}),'outputTexture':this['particlesTextures']['postProcessingSpeed'],'preExecute':function(){const _0x59cdda=_0x133141;_0x2ce43f['primitives']['postProcessingSpeed'][_0x59cdda(0x1cd)]['outputTexture']=_0x2ce43f['particlesTextures'][_0x59cdda(0x22b)];}})};}}const Cesium$2=mars3d__namespace['Cesium'];class ParticleSystem{constructor(_0x342a13,_0x1b1e5b,_0x243eae,_0xc3465f){const _0x55aa41=_0x37cdfb;this['context']=_0x342a13,_0x1b1e5b={..._0x1b1e5b},_0x1b1e5b[_0x55aa41(0x266)]&&_0x1b1e5b['vdata']&&(_0x1b1e5b['dimensions']={},_0x1b1e5b['dimensions']['lon']=_0x1b1e5b[_0x55aa41(0x22d)],_0x1b1e5b[_0x55aa41(0x1bf)]['lat']=_0x1b1e5b[_0x55aa41(0x203)],_0x1b1e5b[_0x55aa41(0x1bf)]['lev']=_0x1b1e5b[_0x55aa41(0x217)]||0x1,_0x1b1e5b['lon']={},_0x1b1e5b['lon']['min']=_0x1b1e5b['xmin'],_0x1b1e5b['lon']['max']=_0x1b1e5b[_0x55aa41(0x261)],_0x1b1e5b[_0x55aa41(0x29f)]={},_0x1b1e5b['lat'][_0x55aa41(0x225)]=_0x1b1e5b['ymin'],_0x1b1e5b['lat']['max']=_0x1b1e5b['ymax'],_0x1b1e5b['lev']={},_0x1b1e5b['lev']['min']=_0x1b1e5b['levmin']??0x1,_0x1b1e5b['lev'][_0x55aa41(0x291)]=_0x1b1e5b['levmax']??0x1,_0x1b1e5b['U']={},_0x1b1e5b['U']['array']=new Float32Array(_0x1b1e5b[_0x55aa41(0x266)]),_0x1b1e5b['U']['min']=_0x1b1e5b['umin']??Math['min'](..._0x1b1e5b['udata']),_0x1b1e5b['U']['max']=_0x1b1e5b[_0x55aa41(0x29a)]??Math['max'](..._0x1b1e5b['udata']),_0x1b1e5b['V']={},_0x1b1e5b['V']['array']=new Float32Array(_0x1b1e5b['vdata']),_0x1b1e5b['V'][_0x55aa41(0x225)]=_0x1b1e5b['vmin']??Math['min'](..._0x1b1e5b['vdata']),_0x1b1e5b['V']['max']=_0x1b1e5b['vmax']??Math['max'](..._0x1b1e5b['vdata'])),this['data']=_0x1b1e5b,this[_0x55aa41(0x242)]=_0x243eae,this['viewerParameters']=_0xc3465f,this['particlesComputing']=new ParticlesComputing(this['context'],this['data'],this[_0x55aa41(0x242)],this['viewerParameters']),this['particlesRendering']=new ParticlesRendering(this['context'],this['data'],this[_0x55aa41(0x242)],this['viewerParameters'],this['particlesComputing']);}['canvasResize'](_0x1ac419){const _0x19f43d=_0x37cdfb;this['particlesComputing']['destroyParticlesTextures'](),Object['keys'](this['particlesComputing'][_0x19f43d(0x26d)])['forEach'](_0x29d81e=>{this['particlesComputing']['windTextures'][_0x29d81e]['destroy']();}),this['particlesRendering']['textures']['colorTable'][_0x19f43d(0x27a)](),Object['keys'](this['particlesRendering']['framebuffers'])['forEach'](_0x27b323=>{const _0x2d3484=_0x19f43d;this['particlesRendering'][_0x2d3484(0x1ee)][_0x27b323][_0x2d3484(0x27a)]();}),this['context']=_0x1ac419,this['particlesComputing']=new ParticlesComputing(this['context'],this['data'],this['options'],this['viewerParameters']),this['particlesRendering']=new ParticlesRendering(this['context'],this['data'],this['options'],this['viewerParameters'],this['particlesComputing']);}[_0x37cdfb(0x1d8)](){const _0x250cdd=_0x37cdfb,_0x1df3ab=new Cesium$2['ClearCommand']({'color':new Cesium$2[(_0x250cdd(0x255))](0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':undefined,'pass':Cesium$2['Pass'][_0x250cdd(0x21f)]});Object[_0x250cdd(0x1fe)](this[_0x250cdd(0x227)]['framebuffers'])[_0x250cdd(0x1bb)](_0x4fa410=>{const _0x344d50=_0x250cdd;_0x1df3ab['framebuffer']=this[_0x344d50(0x227)][_0x344d50(0x1ee)][_0x4fa410],_0x1df3ab[_0x344d50(0x271)](this[_0x344d50(0x26f)]);});}['refreshParticles'](_0x2b5b54){const _0x4d8601=_0x37cdfb;this[_0x4d8601(0x1d8)](),this['particlesComputing']['destroyParticlesTextures'](),this['particlesComputing']['createParticlesTextures'](this['context'],this['options'],this['viewerParameters']);if(_0x2b5b54){const _0x3e869a=this['particlesRendering']['createSegmentsGeometry'](this[_0x4d8601(0x242)]);this[_0x4d8601(0x227)]['primitives'][_0x4d8601(0x218)]['geometry']=_0x3e869a;const _0xf9ab71=Cesium$2[_0x4d8601(0x237)][_0x4d8601(0x1f5)]({'context':this['context'],'geometry':_0x3e869a,'attributeLocations':this['particlesRendering']['primitives']['segments']['attributeLocations'],'bufferUsage':Cesium$2['BufferUsage']['STATIC_DRAW']});this['particlesRendering']['primitives']['segments']['commandToExecute'][_0x4d8601(0x1e4)]=_0xf9ab71;}}['setOptions'](_0x5ea907){let _0x46d009=![];this['options']['maxParticles']!==_0x5ea907['maxParticles']&&(_0x46d009=!![]),Object['keys'](_0x5ea907)['forEach'](_0xd05bb7=>{this['options'][_0xd05bb7]=_0x5ea907[_0xd05bb7];}),this['refreshParticles'](_0x46d009);}['applyViewerParameters'](_0x5d0cd6){const _0x5dcbbb=_0x37cdfb;Object[_0x5dcbbb(0x1fe)](_0x5d0cd6)['forEach'](_0x5ea70e=>{this['viewerParameters'][_0x5ea70e]=_0x5d0cd6[_0x5ea70e];}),this['refreshParticles'](![]);}['destroy'](){const _0x38cda3=_0x37cdfb;clearTimeout(this['canrefresh']),this[_0x38cda3(0x1b7)]['destroyParticlesTextures'](),Object['keys'](this['particlesComputing'][_0x38cda3(0x26d)])[_0x38cda3(0x1bb)](_0x2a1c64=>{const _0x2b1131=_0x38cda3;this['particlesComputing'][_0x2b1131(0x26d)][_0x2a1c64]['destroy']();}),this[_0x38cda3(0x227)]['textures']['colorTable'][_0x38cda3(0x27a)](),Object[_0x38cda3(0x1fe)](this['particlesRendering'][_0x38cda3(0x1ee)])['forEach'](_0xa30faa=>{const _0x4e9cd0=_0x38cda3;this['particlesRendering'][_0x4e9cd0(0x1ee)][_0xa30faa]['destroy']();});for(const _0x624a94 in this){delete this[_0x624a94];}}}const Cesium$1=mars3d__namespace[_0x37cdfb(0x1b8)],BaseLayer$1=mars3d__namespace['layer']['BaseLayer'],DEF_OPTIONS={'particlesNumber':0x1000,'fixedHeight':0x0,'fadeOpacity':0.996,'dropRate':0.003,'dropRateBump':0.01,'speedFactor':0.5,'lineWidth':0x2,'colors':[_0x37cdfb(0x1da)]};class WindLayer extends BaseLayer$1{constructor(_0x448a1d={}){const _0x380d4d=_0x37cdfb;_0x448a1d={...DEF_OPTIONS,..._0x448a1d},super(_0x448a1d),this[_0x380d4d(0x2a1)](_0x448a1d);}get[_0x37cdfb(0x285)](){const _0x2ffbda=_0x37cdfb;return this[_0x2ffbda(0x1dc)];}get['data'](){return this['_data'];}set['data'](_0x34b931){this['setData'](_0x34b931);}get['colors'](){const _0x2b9dc5=_0x37cdfb;return this[_0x2b9dc5(0x242)]['colors'];}set['colors'](_0x3c8386){const _0x264333=_0x37cdfb;this['options']['colors']=_0x3c8386,this[_0x264333(0x275)]&&this[_0x264333(0x275)]['setOptions']({'colors':_0x3c8386}),this['resize']();}['_mountedHook'](){}[_0x37cdfb(0x205)](){const _0x4fe29d=_0x37cdfb;this['scene']=this['_map']['scene'],this['camera']=this['_map']['camera'],this['primitives']=new Cesium$1[(_0x4fe29d(0x287))](),this[_0x4fe29d(0x23b)]['scene']['primitives']['add'](this['primitives']),this['viewerParameters']={'lonRange':new Cesium$1['Cartesian2'](),'latRange':new Cesium$1['Cartesian2'](),'pixelSize':0x0},this[_0x4fe29d(0x29b)]=new Cesium$1[(_0x4fe29d(0x299))](Cesium$1[_0x4fe29d(0x26c)]['ZERO'],0.99*0x615299),this['updateViewerParameters'](),window['addEventListener']('resize',this[_0x4fe29d(0x1e1)]['bind'](this),![]),this['mouse_down']=![],this['mouse_move']=![],this['_map']['on'](mars3d__namespace[_0x4fe29d(0x1f1)][_0x4fe29d(0x1e6)],this[_0x4fe29d(0x1ff)],this),this['_map']['on'](mars3d__namespace['EventType']['mouseDown'],this[_0x4fe29d(0x23e)],this),this['_map']['on'](mars3d__namespace['EventType'][_0x4fe29d(0x289)],this['_onMouseUpEvent'],this),this[_0x4fe29d(0x23b)]['on'](mars3d__namespace[_0x4fe29d(0x1f1)][_0x4fe29d(0x1b4)],this['_onMouseMoveEvent'],this),this['_data']&&this['setData'](this['_data']);}['_removedHook'](){const _0x594794=_0x37cdfb;window['removeEventListener']('resize',this['resize']),this['_map']['off'](mars3d__namespace[_0x594794(0x1f1)][_0x594794(0x25b)],this['_onMap_preRenderEvent'],this),this['_map']['off'](mars3d__namespace[_0x594794(0x1f1)][_0x594794(0x1e6)],this[_0x594794(0x1ff)],this),this['_map']['off'](mars3d__namespace['EventType'][_0x594794(0x1b3)],this[_0x594794(0x23e)],this),this['_map']['off'](mars3d__namespace['EventType'][_0x594794(0x289)],this[_0x594794(0x278)],this),this[_0x594794(0x23b)]['off'](mars3d__namespace['EventType'][_0x594794(0x1b4)],this[_0x594794(0x28e)],this),this['primitives'][_0x594794(0x210)](),this[_0x594794(0x23b)]['scene'][_0x594794(0x1dc)]['remove'](this['primitives']);}['resize'](){const _0x5473fd=_0x37cdfb;if(!this['show']||!this['particleSystem'])return;this[_0x5473fd(0x1dc)][_0x5473fd(0x1cb)]=![],this[_0x5473fd(0x1dc)][_0x5473fd(0x210)](),this['_map']['once'](mars3d__namespace['EventType']['preRender'],this[_0x5473fd(0x258)],this);}['_onMap_preRenderEvent'](_0x3788ab){const _0x1be522=_0x37cdfb;this['particleSystem']['canvasResize'](this['scene'][_0x1be522(0x26f)]),this[_0x1be522(0x1b0)](),this['primitives'][_0x1be522(0x1cb)]=!![];}['_onMapWhellEvent'](_0x48ad8a){const _0x5d4701=_0x37cdfb;clearTimeout(this['refreshTimer']);if(!this['show']||!this['particleSystem'])return;this[_0x5d4701(0x1dc)]['show']=![],this[_0x5d4701(0x298)]=setTimeout(()=>{if(!this['show'])return;this['redraw']();},0xc8);}['_onMouseDownEvent'](_0x4cb74a){const _0x544d11=_0x37cdfb;this[_0x544d11(0x246)]=!![];}['_onMouseMoveEvent'](_0x299b6d){const _0x238919=_0x37cdfb;if(!this['show']||!this[_0x238919(0x275)])return;this[_0x238919(0x246)]&&(this['primitives']['show']=![],this['mouse_move']=!![]);}['_onMouseUpEvent'](_0x20fb16){const _0x5c0b24=_0x37cdfb;if(!this['show']||!this['particleSystem'])return;this['mouse_down']&&this['mouse_move']&&this['redraw'](),this[_0x5c0b24(0x1dc)][_0x5c0b24(0x1cb)]=!![],this['mouse_down']=![],this['mouse_move']=![];}['redraw'](){if(!this['_map']||!this['show'])return;this['updateViewerParameters'](),this['particleSystem']['applyViewerParameters'](this['viewerParameters']),this['primitives']['show']=!![];}['setData'](_0x4557f2){const _0x1e85fe=_0x37cdfb;this['_data']=_0x4557f2,this['particleSystem']&&this[_0x1e85fe(0x275)][_0x1e85fe(0x27a)](),this[_0x1e85fe(0x275)]=new ParticleSystem(this['scene']['context'],_0x4557f2,this['getOptions'](),this[_0x1e85fe(0x257)]),this[_0x1e85fe(0x1b0)]();}['_setOptionsHook'](_0x138409,_0x4e962d){const _0x383fb1=_0x37cdfb;if(_0x138409)for(const _0x5bc4aa in _0x138409){this[_0x5bc4aa]=_0x138409[_0x5bc4aa];}this[_0x383fb1(0x275)]&&this['particleSystem']['setOptions'](this[_0x383fb1(0x265)]());}['getOptions'](){const _0x309c74=_0x37cdfb,_0x22bd85=Math['ceil'](Math['sqrt'](this['particlesNumber']));return this[_0x309c74(0x1d1)]=_0x22bd85*_0x22bd85,{'particlesTextureSize':_0x22bd85,'maxParticles':this['particlesNumber'],'particleHeight':this['fixedHeight'],'fadeOpacity':this['fadeOpacity'],'dropRate':this['dropRate'],'dropRateBump':this[_0x309c74(0x1e0)],'speedFactor':this[_0x309c74(0x22e)],'lineWidth':this['lineWidth'],'colors':this[_0x309c74(0x2a0)]};}[_0x37cdfb(0x1b0)](){const _0x72943d=_0x37cdfb;this['primitives'][_0x72943d(0x226)](this['particleSystem']['particlesComputing']['primitives'][_0x72943d(0x1f6)]),this['primitives']['add'](this['particleSystem'][_0x72943d(0x1b7)]['primitives']['updateSpeed']),this['primitives']['add'](this['particleSystem']['particlesComputing'][_0x72943d(0x1dc)][_0x72943d(0x29e)]),this['primitives']['add'](this['particleSystem'][_0x72943d(0x1b7)]['primitives']['postProcessingPosition']),this['primitives'][_0x72943d(0x226)](this['particleSystem'][_0x72943d(0x1b7)]['primitives'][_0x72943d(0x22b)]),this[_0x72943d(0x1dc)][_0x72943d(0x226)](this['particleSystem']['particlesRendering'][_0x72943d(0x1dc)]['segments']),this['primitives']['add'](this['particleSystem']['particlesRendering']['primitives']['trails']),this['primitives']['add'](this['particleSystem']['particlesRendering']['primitives'][_0x72943d(0x276)]);}['updateViewerParameters'](){const _0x53ec64=_0x37cdfb;let _0x329b18=this['camera'][_0x53ec64(0x1d2)](this['scene']['globe'][_0x53ec64(0x1c7)]);if(!_0x329b18){const _0x57100a=this[_0x53ec64(0x23b)]['getExtent']();_0x329b18=Cesium$1['Rectangle']['fromDegrees'](_0x57100a['xmin'],_0x57100a[_0x53ec64(0x21a)],_0x57100a[_0x53ec64(0x261)],_0x57100a['ymax']);}const _0x24c8a3=Util[_0x53ec64(0x281)](_0x329b18);this['viewerParameters'][_0x53ec64(0x251)]['x']=_0x24c8a3['lon']['min'],this['viewerParameters']['lonRange']['y']=_0x24c8a3[_0x53ec64(0x22c)]['max'],this[_0x53ec64(0x257)][_0x53ec64(0x1f9)]['x']=_0x24c8a3[_0x53ec64(0x29f)]['min'],this['viewerParameters']['latRange']['y']=_0x24c8a3['lat']['max'];const _0x38d75e=this['camera'][_0x53ec64(0x1ec)](this['globeBoundingSphere'],this['scene'][_0x53ec64(0x27b)],this[_0x53ec64(0x27e)]['drawingBufferHeight']);_0x38d75e>0x0&&(this['viewerParameters']['pixelSize']=_0x38d75e);}}mars3d__namespace['LayerUtil'][_0x37cdfb(0x238)](_0x37cdfb(0x1ef),WindLayer),mars3d__namespace[_0x37cdfb(0x285)]['WindLayer']=WindLayer;class CanvasParticle{constructor(){const _0x2f779f=_0x37cdfb;this['lng']=null,this[_0x2f779f(0x29f)]=null,this['tlng']=null,this['tlat']=null,this[_0x2f779f(0x263)]=null;}['destroy'](){for(const _0x4731d5 in this){delete this[_0x4731d5];}}}class CanvasWindField{constructor(_0x5c6d70){this['setOptions'](_0x5c6d70);}get['speedRate'](){const _0x433eaa=_0x37cdfb;return this[_0x433eaa(0x272)];}set[_0x37cdfb(0x1f0)](_0x4afed2){const _0x170d55=_0x37cdfb;this[_0x170d55(0x272)]=(0x64-(_0x4afed2>0x63?0x63:_0x4afed2))*0x64,this['_calc_speedRate']=[(this['xmax']-this['xmin'])/this['_speedRate'],(this['ymax']-this['ymin'])/this[_0x170d55(0x272)]];}get['maxAge'](){const _0x3fb3a6=_0x37cdfb;return this[_0x3fb3a6(0x28d)];}set['maxAge'](_0x4d02f3){this['_maxAge']=_0x4d02f3;}['setOptions'](_0x4f9dac){const _0x24e372=_0x37cdfb;this[_0x24e372(0x242)]=_0x4f9dac,this[_0x24e372(0x1e5)]=_0x4f9dac[_0x24e372(0x1e5)]||0x78,this[_0x24e372(0x1f0)]=_0x4f9dac[_0x24e372(0x1f0)]||0x32,this['particles']=[];const _0x3d0489=_0x4f9dac[_0x24e372(0x1d1)]||0x1000;for(let _0x3df1b9=0x0;_0x3df1b9<_0x3d0489;_0x3df1b9++){const _0x32a867=this['_randomParticle'](new CanvasParticle());this['particles'][_0x24e372(0x284)](_0x32a867);}}['setDate'](_0x1c313b){const _0x539663=_0x37cdfb;this['rows']=_0x1c313b['rows'],this['cols']=_0x1c313b['cols'],this['xmin']=_0x1c313b['xmin'],this[_0x539663(0x261)]=_0x1c313b[_0x539663(0x261)],this['ymin']=_0x1c313b['ymin'],this['ymax']=_0x1c313b['ymax'],this[_0x539663(0x25c)]=[];const _0x297e66=_0x1c313b['udata'],_0x46dc08=_0x1c313b['vdata'];let _0xd09880=![];_0x297e66['length']===this['rows']&&_0x297e66[0x0]['length']===this[_0x539663(0x22d)]&&(_0xd09880=!![]);let _0x270f31=0x0,_0x4c437e=null,_0x55c4d0=null;for(let _0x428dd8=0x0;_0x428dd8<this[_0x539663(0x203)];_0x428dd8++){_0x4c437e=[];for(let _0x39444c=0x0;_0x39444c<this['cols'];_0x39444c++,_0x270f31++){_0xd09880?_0x55c4d0=this[_0x539663(0x204)](_0x297e66[_0x428dd8][_0x39444c],_0x46dc08[_0x428dd8][_0x39444c]):_0x55c4d0=this[_0x539663(0x204)](_0x297e66[_0x270f31],_0x46dc08[_0x270f31]),_0x4c437e['push'](_0x55c4d0);}this[_0x539663(0x25c)]['push'](_0x4c437e);}this['options']['reverseY']&&this[_0x539663(0x25c)]['reverse']();}[_0x37cdfb(0x296)](){const _0x469391=_0x37cdfb;delete this[_0x469391(0x203)],delete this[_0x469391(0x22d)],delete this[_0x469391(0x25d)],delete this['xmax'],delete this['ymin'],delete this['ymax'],delete this['grid'],delete this['particles'];}['toGridXY'](_0x494e7e,_0x35bb09){const _0xce4147=_0x37cdfb,_0x4ce72f=(_0x494e7e-this['xmin'])/(this[_0xce4147(0x261)]-this['xmin'])*(this[_0xce4147(0x22d)]-0x1),_0x20865e=(this['ymax']-_0x35bb09)/(this[_0xce4147(0x277)]-this['ymin'])*(this['rows']-0x1);return[_0x4ce72f,_0x20865e];}['getUVByXY'](_0x14ca6c,_0x56b941){const _0x648ee0=_0x37cdfb;if(_0x14ca6c<0x0||_0x14ca6c>=this['cols']||_0x56b941>=this['rows'])return[0x0,0x0,0x0];const _0x106177=Math['floor'](_0x14ca6c),_0x22a2e8=Math['floor'](_0x56b941);if(_0x106177===_0x14ca6c&&_0x22a2e8===_0x56b941)return this['grid'][_0x56b941][_0x14ca6c];const _0x3c119f=_0x106177+0x1,_0x4c6b44=_0x22a2e8+0x1,_0xe93078=this['getUVByXY'](_0x106177,_0x22a2e8),_0x5c1244=this['getUVByXY'](_0x3c119f,_0x22a2e8),_0x2bd62a=this['getUVByXY'](_0x106177,_0x4c6b44),_0x1558ad=this[_0x648ee0(0x1d4)](_0x3c119f,_0x4c6b44);let _0x1374f4=null;try{_0x1374f4=this['_bilinearInterpolation'](_0x14ca6c-_0x106177,_0x56b941-_0x22a2e8,_0xe93078,_0x5c1244,_0x2bd62a,_0x1558ad);}catch(_0x136e91){console[_0x648ee0(0x1b1)](_0x14ca6c,_0x56b941);}return _0x1374f4;}[_0x37cdfb(0x1bc)](_0x4bad71,_0x23d1a6,_0x1991eb,_0x1c677c,_0x2f644b,_0x299375){const _0x45b5e1=_0x37cdfb,_0x5e2478=0x1-_0x4bad71,_0x5aaffb=0x1-_0x23d1a6,_0x32c503=_0x5e2478*_0x5aaffb,_0x3210d6=_0x4bad71*_0x5aaffb,_0x1309fa=_0x5e2478*_0x23d1a6,_0x3598be=_0x4bad71*_0x23d1a6,_0x23a073=_0x1991eb[0x0]*_0x32c503+_0x1c677c[0x0]*_0x3210d6+_0x2f644b[0x0]*_0x1309fa+_0x299375[0x0]*_0x3598be,_0x422331=_0x1991eb[0x1]*_0x32c503+_0x1c677c[0x1]*_0x3210d6+_0x2f644b[0x1]*_0x1309fa+_0x299375[0x1]*_0x3598be;return this[_0x45b5e1(0x204)](_0x23a073,_0x422331);}['_calcUV'](_0x23653f,_0x185e8b){return[+_0x23653f,+_0x185e8b,Math['sqrt'](_0x23653f*_0x23653f+_0x185e8b*_0x185e8b)];}['getUVByPoint'](_0x1b504d,_0x372c73){const _0x14c138=_0x37cdfb;if(!this['isInExtent'](_0x1b504d,_0x372c73))return null;const _0x3b2d3b=this[_0x14c138(0x207)](_0x1b504d,_0x372c73),_0x50fb6a=this['getUVByXY'](_0x3b2d3b[0x0],_0x3b2d3b[0x1]);return _0x50fb6a;}[_0x37cdfb(0x2a2)](_0x18fcaa,_0x228c18){const _0x28beed=_0x37cdfb;return _0x18fcaa>=this['xmin']&&_0x18fcaa<=this[_0x28beed(0x261)]&&_0x228c18>=this['ymin']&&_0x228c18<=this['ymax']?!![]:![];}['getRandomLatLng'](){const _0x4fb516=_0x37cdfb,_0x5bdd7c=fRandomByfloat(this['xmin'],this['xmax']),_0x1c8895=fRandomByfloat(this[_0x4fb516(0x21a)],this['ymax']);return{'lat':_0x1c8895,'lng':_0x5bdd7c};}['getParticles'](){const _0x4e7fd8=_0x37cdfb;let _0x397c2f,_0x54fa94,_0x508a56;for(let _0x16304c=0x0,_0x4613f4=this['particles'][_0x4e7fd8(0x1e2)];_0x16304c<_0x4613f4;_0x16304c++){let _0xa762cb=this['particles'][_0x16304c];_0xa762cb['age']<=0x0&&(_0xa762cb=this[_0x4e7fd8(0x1e7)](_0xa762cb));if(_0xa762cb['age']>0x0){const _0x2dd2d6=_0xa762cb['tlng'],_0x369ee1=_0xa762cb[_0x4e7fd8(0x26e)];_0x508a56=this['getUVByPoint'](_0x2dd2d6,_0x369ee1),_0x508a56?(_0x397c2f=_0x2dd2d6+this['_calc_speedRate'][0x0]*_0x508a56[0x0],_0x54fa94=_0x369ee1+this['_calc_speedRate'][0x1]*_0x508a56[0x1],_0xa762cb['lng']=_0x2dd2d6,_0xa762cb[_0x4e7fd8(0x29f)]=_0x369ee1,_0xa762cb[_0x4e7fd8(0x23d)]=_0x397c2f,_0xa762cb['tlat']=_0x54fa94,_0xa762cb[_0x4e7fd8(0x263)]--):_0xa762cb['age']=0x0;}}return this['particles'];}['_randomParticle'](_0x30c242){const _0x55ea7b=_0x37cdfb;let _0x2388a6,_0x254c6f;for(let _0x42bc03=0x0;_0x42bc03<0x1e;_0x42bc03++){_0x2388a6=this['getRandomLatLng'](),_0x254c6f=this[_0x55ea7b(0x1c9)](_0x2388a6['lng'],_0x2388a6['lat']);if(_0x254c6f&&_0x254c6f[0x2]>0x0)break;}if(!_0x254c6f)return _0x30c242;const _0x5ef07f=_0x2388a6['lng']+this['_calc_speedRate'][0x0]*_0x254c6f[0x0],_0x489b68=_0x2388a6[_0x55ea7b(0x29f)]+this[_0x55ea7b(0x264)][0x1]*_0x254c6f[0x1];return _0x30c242['lng']=_0x2388a6['lng'],_0x30c242['lat']=_0x2388a6['lat'],_0x30c242['tlng']=_0x5ef07f,_0x30c242['tlat']=_0x489b68,_0x30c242[_0x55ea7b(0x263)]=Math[_0x55ea7b(0x224)](Math['random']()*this['maxAge']),_0x30c242;}[_0x37cdfb(0x27a)](){for(const _0x37e0f1 in this){delete this[_0x37e0f1];}}}function fRandomByfloat(_0x3bfa2b,_0x5bc585){return _0x3bfa2b+Math['random']()*(_0x5bc585-_0x3bfa2b);}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class CanvasWindLayer extends BaseLayer{constructor(_0x40395b={}){const _0x5ef6ea=_0x37cdfb;super(_0x40395b),this['_setOptionsHook'](_0x40395b),this[_0x5ef6ea(0x21c)]=null;}[_0x37cdfb(0x2a1)](_0x4347d0,_0x5e8b86){const _0x5aac33=_0x37cdfb;this['frameTime']=0x3e8/(_0x4347d0['frameRate']||0xa),this[_0x5aac33(0x273)]=this['options']['pointerEvents']??![],this[_0x5aac33(0x253)]=_0x4347d0[_0x5aac33(0x253)]||'#ffffff',this['lineWidth']=_0x4347d0['lineWidth']||0x1,this['fixedHeight']=_0x4347d0[_0x5aac33(0x206)]??0x0,this['reverseY']=_0x4347d0['reverseY']??![],this['windField']&&this[_0x5aac33(0x267)]['setOptions'](_0x4347d0);}get['layer'](){return this['canvas'];}get['canvasWidth'](){const _0x3766b9=_0x37cdfb;return this[_0x3766b9(0x23b)][_0x3766b9(0x27e)]['canvas']['clientWidth'];}get[_0x37cdfb(0x1b9)](){const _0x51c7e3=_0x37cdfb;return this['_map']['scene']['canvas'][_0x51c7e3(0x231)];}get['pointerEvents'](){const _0x6f5c50=_0x37cdfb;return this[_0x6f5c50(0x273)];}set[_0x37cdfb(0x25a)](_0xf282d0){const _0x50470a=_0x37cdfb;this['_pointerEvents']=_0xf282d0;if(!this['canvas'])return;_0xf282d0?this['canvas']['style']['pointer-events']=_0x50470a(0x1db):this[_0x50470a(0x21c)]['style']['pointer-events']='none';}get['particlesNumber'](){const _0x133358=_0x37cdfb;return this[_0x133358(0x242)]['particlesNumber'];}set['particlesNumber'](_0x49918e){this['options']['particlesNumber']=_0x49918e,clearTimeout(this['_canrefresh']),this['_canrefresh']=setTimeout(()=>{const _0x12a219=_0x1ac2;this[_0x12a219(0x250)]();},0x1f4);}get['speedRate'](){return this['options']['speedRate'];}set['speedRate'](_0x2756eb){const _0x109665=_0x37cdfb;this['options']['speedRate']=_0x2756eb,this['windField']&&(this['windField'][_0x109665(0x1f0)]=_0x2756eb);}get['maxAge'](){const _0x130ed3=_0x37cdfb;return this['options'][_0x130ed3(0x1e5)];}set[_0x37cdfb(0x1e5)](_0x3d770c){const _0x5d9460=_0x37cdfb;this['options']['maxAge']=_0x3d770c,this['windField']&&(this[_0x5d9460(0x267)]['maxAge']=_0x3d770c);}get[_0x37cdfb(0x24e)](){return this['windData'];}set[_0x37cdfb(0x24e)](_0x39f598){const _0x50453a=_0x37cdfb;this[_0x50453a(0x239)](_0x39f598);}['_showHook'](_0x2807f3){const _0x25f343=_0x37cdfb;_0x2807f3?this['_addedHook']():(this[_0x25f343(0x260)]&&(this['options']['data']=this['windData']),this['_removedHook']());}[_0x37cdfb(0x1dd)](){const _0x55dec4=_0x37cdfb;this['options']['worker']?this['initWorker']():this[_0x55dec4(0x267)]=new CanvasWindField(this['options']);}[_0x37cdfb(0x205)](){const _0x34f542=_0x37cdfb;this[_0x34f542(0x21c)]=this[_0x34f542(0x26a)](),this['canvasContext']=this['canvas'][_0x34f542(0x252)]('2d',{'willReadFrequently':!![]}),this['bindEvent'](),this['options']['data']&&this['setData'](this[_0x34f542(0x242)]['data']);}['_removedHook'](){const _0x5d4f94=_0x37cdfb;this[_0x5d4f94(0x296)](),this[_0x5d4f94(0x1c1)](),this[_0x5d4f94(0x21c)]&&(this['_map']['container'][_0x5d4f94(0x23f)](this['canvas']),delete this['canvas']);}['_createCanvas'](){const _0x306b77=_0x37cdfb,_0x359788=mars3d__namespace[_0x306b77(0x1f8)][_0x306b77(0x215)]('canvas',_0x306b77(0x1b2),this['_map']['container']);return _0x359788['style']['position']='absolute',_0x359788['style']['top']=_0x306b77(0x21d),_0x359788['style']['left']=_0x306b77(0x21d),_0x359788[_0x306b77(0x270)]['width']=this[_0x306b77(0x23b)][_0x306b77(0x27e)][_0x306b77(0x21c)][_0x306b77(0x1fb)]+'px',_0x359788['style']['height']=this['_map']['scene']['canvas'][_0x306b77(0x231)]+'px',_0x359788[_0x306b77(0x270)]['pointerEvents']=this['_pointerEvents']?'auto':_0x306b77(0x201),_0x359788['style']['zIndex']=this['options']['zIndex']??0x9,_0x359788[_0x306b77(0x1ca)]=this[_0x306b77(0x23b)]['scene'][_0x306b77(0x21c)]['clientWidth'],_0x359788['height']=this['_map']['scene']['canvas'][_0x306b77(0x231)],_0x359788;}['resize'](){const _0x5388fa=_0x37cdfb;this['canvas']&&(this[_0x5388fa(0x21c)]['style']['width']=this['_map']['scene']['canvas'][_0x5388fa(0x1fb)]+'px',this['canvas']['style']['height']=this['_map'][_0x5388fa(0x27e)][_0x5388fa(0x21c)]['clientHeight']+'px',this['canvas']['width']=this['_map']['scene']['canvas']['clientWidth'],this['canvas'][_0x5388fa(0x27c)]=this['_map'][_0x5388fa(0x27e)]['canvas']['clientHeight']);}[_0x37cdfb(0x1ea)](){const _0x4acccb=_0x37cdfb,_0x5ed13e=this;let _0x3575d7=Date['now']();(function _0x34bc5e(){const _0x46c857=_0x1ac2;_0x5ed13e['animateFrame']=window['requestAnimationFrame'](_0x34bc5e);if(_0x5ed13e['show']&&_0x5ed13e['windField']){const _0x46d0b4=Date['now'](),_0x2fd23f=_0x46d0b4-_0x3575d7;_0x2fd23f>_0x5ed13e['frameTime']&&(_0x3575d7=_0x46d0b4-_0x2fd23f%_0x5ed13e[_0x46c857(0x1e9)],_0x5ed13e[_0x46c857(0x1e3)]());}}(),window['addEventListener']('resize',this[_0x4acccb(0x1e1)]['bind'](this),![]),this[_0x4acccb(0x246)]=![],this['mouse_move']=![],this['options'][_0x4acccb(0x24f)]&&(this['_map']['on'](mars3d__namespace['EventType']['wheel'],this['_onMapWhellEvent'],this),this['_map']['on'](mars3d__namespace[_0x4acccb(0x1f1)][_0x4acccb(0x1b3)],this[_0x4acccb(0x23e)],this),this['_map']['on'](mars3d__namespace['EventType']['mouseUp'],this['_onMouseUpEvent'],this)));}['unbindEvent'](){const _0x23778e=_0x37cdfb;window['cancelAnimationFrame'](this['animateFrame']),delete this['animateFrame'],window[_0x23778e(0x1d5)](_0x23778e(0x1e1),this['resize']),this['options'][_0x23778e(0x24f)]&&(this['_map'][_0x23778e(0x1c8)](mars3d__namespace['EventType']['wheel'],this['_onMapWhellEvent'],this),this['_map'][_0x23778e(0x1c8)](mars3d__namespace['EventType'][_0x23778e(0x1b3)],this[_0x23778e(0x23e)],this),this['_map']['off'](mars3d__namespace['EventType'][_0x23778e(0x289)],this['_onMouseUpEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['mouseMove'],this[_0x23778e(0x28e)],this));}['_onMapWhellEvent'](_0x547664){const _0x151ed6=_0x37cdfb;clearTimeout(this['refreshTimer']);if(!this['show']||!this['canvas'])return;this['canvas'][_0x151ed6(0x270)]['visibility']='hidden',this[_0x151ed6(0x298)]=setTimeout(()=>{const _0x10c940=_0x151ed6;if(!this['show'])return;this['redraw'](),this['canvas']['style']['visibility']=_0x10c940(0x1ed);},0xc8);}['_onMouseDownEvent'](_0x1cf918){const _0x58b4a8=_0x37cdfb;this[_0x58b4a8(0x246)]=!![],this['_map'][_0x58b4a8(0x1c8)](mars3d__namespace['EventType'][_0x58b4a8(0x1b4)],this['_onMouseMoveEvent'],this),this[_0x58b4a8(0x23b)]['on'](mars3d__namespace['EventType'][_0x58b4a8(0x1b4)],this['_onMouseMoveEvent'],this);}[_0x37cdfb(0x28e)](_0x136e3f){const _0x4e005c=_0x37cdfb;if(!this['show']||!this[_0x4e005c(0x21c)])return;this['mouse_down']&&(this['canvas']['style'][_0x4e005c(0x223)]=_0x4e005c(0x28c),this['mouse_move']=!![]);}[_0x37cdfb(0x278)](_0x50b265){const _0x3d5819=_0x37cdfb;if(!this[_0x3d5819(0x1cb)]||!this['canvas'])return;this[_0x3d5819(0x23b)][_0x3d5819(0x1c8)](mars3d__namespace['EventType']['mouseMove'],this[_0x3d5819(0x28e)],this),this['mouse_down']&&this[_0x3d5819(0x233)]&&this['redraw'](),this['canvas']['style']['visibility']='visible',this['mouse_down']=![],this[_0x3d5819(0x233)]=![];}['setData'](_0x45d414){const _0x73f753=_0x37cdfb;this['clear'](),this['windData']=_0x45d414,this[_0x73f753(0x267)]['setDate'](_0x45d414),this['redraw']();}[_0x37cdfb(0x250)](){if(!this['show'])return;this['windField']['setOptions'](this['options']),this['update']();}['update'](){const _0x589554=_0x37cdfb;if(this['_updateIng'])return;this['_updateIng']=!![];if(this['worker'])this['windField']['update']();else{const _0x17f5ce=this['windField']['getParticles']();this['_drawLines'](_0x17f5ce);}this[_0x589554(0x20e)]=![];}[_0x37cdfb(0x293)](_0x313b64){const _0x193d42=_0x37cdfb;this['canvasContext']['globalCompositeOperation']='destination-in',this['canvasContext']['fillRect'](0x0,0x0,this['canvasWidth'],this[_0x193d42(0x1b9)]),this['canvasContext']['globalCompositeOperation']='lighter',this['canvasContext']['globalAlpha']=0.9,this['canvasContext'][_0x193d42(0x213)](),this['canvasContext']['lineWidth']=this['lineWidth'],this[_0x193d42(0x1fd)]['strokeStyle']=this['color'];const _0x28c889=this['_map']['scene']['mode']!==Cesium['SceneMode'][_0x193d42(0x1de)],_0x45cf53=this[_0x193d42(0x23c)]*0.25;for(let _0x588e4f=0x0,_0x3af52c=_0x313b64['length'];_0x588e4f<_0x3af52c;_0x588e4f++){const _0x1fe6b9=_0x313b64[_0x588e4f],_0x3e7383=this['_tomap'](_0x1fe6b9[_0x193d42(0x254)],_0x1fe6b9['lat'],_0x1fe6b9),_0xa4da36=this[_0x193d42(0x269)](_0x1fe6b9[_0x193d42(0x23d)],_0x1fe6b9[_0x193d42(0x26e)],_0x1fe6b9);if(!_0x3e7383||!_0xa4da36)continue;if(_0x28c889&&Math['abs'](_0x3e7383[0x0]-_0xa4da36[0x0])>=_0x45cf53)continue;this[_0x193d42(0x1fd)]['moveTo'](_0x3e7383[0x0],_0x3e7383[0x1]),this['canvasContext']['lineTo'](_0xa4da36[0x0],_0xa4da36[0x1]);}this['canvasContext']['stroke']();}['_tomap'](_0x303591,_0x247af6,_0x85ca72){const _0xa051e2=_0x37cdfb,_0x376249=Cesium['Cartesian3']['fromDegrees'](_0x303591,_0x247af6,this[_0xa051e2(0x206)]),_0x10808b=this[_0xa051e2(0x23b)][_0xa051e2(0x27e)];if(_0x10808b[_0xa051e2(0x1f2)]===Cesium['SceneMode']['SCENE3D']){const _0x3be2c0=new Cesium['EllipsoidalOccluder'](_0x10808b[_0xa051e2(0x295)]['ellipsoid'],_0x10808b['camera']['positionWC']),_0x844274=_0x3be2c0['isPointVisible'](_0x376249);if(!_0x844274)return _0x85ca72[_0xa051e2(0x263)]=0x0,null;}const _0x1cdcf8=Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](this[_0xa051e2(0x23b)]['scene'],_0x376249);return _0x1cdcf8?[_0x1cdcf8['x'],_0x1cdcf8['y']]:null;}['clear'](){const _0x5007d6=_0x37cdfb;this['windField']['clear'](),delete this[_0x5007d6(0x260)];}[_0x37cdfb(0x248)](){const _0x1214a8=_0x37cdfb;this['worker']=new Worker(this['options']['worker']),this[_0x1214a8(0x244)]['onmessage']=_0x5edde1=>{this['_drawLines'](_0x5edde1['data']['particles']),this['_updateIng2']=![];},this['windField']={'init':_0x2db339=>{const _0x10963b=_0x1214a8;this[_0x10963b(0x244)]['postMessage']({'type':'init','options':_0x2db339});},'setOptions':_0x1e8fdd=>{const _0x1494c4=_0x1214a8;this[_0x1494c4(0x244)]['postMessage']({'type':'setOptions','options':_0x1e8fdd});},'setDate':_0xa744b6=>{const _0x459807=_0x1214a8;this['worker'][_0x459807(0x290)]({'type':'setDate','data':_0xa744b6});},'update':()=>{const _0x1ee80e=_0x1214a8;if(this[_0x1ee80e(0x29d)])return;this[_0x1ee80e(0x29d)]=!![],this[_0x1ee80e(0x244)][_0x1ee80e(0x290)]({'type':'update'});},'clear':()=>{this['worker']['postMessage']({'type':'clear'});}},this[_0x1214a8(0x267)][_0x1214a8(0x1eb)](this['options']);}}mars3d__namespace['LayerUtil']['register']('canvasWind',CanvasWindLayer),mars3d__namespace['layer']['CanvasWindLayer']=CanvasWindLayer,mars3d__namespace['CanvasWindField']=CanvasWindField,mars3d__namespace['WindUtil']=WindUtil,exports[_0x37cdfb(0x28f)]=CanvasWindField,exports[_0x37cdfb(0x21e)]=CanvasWindLayer,exports['WindLayer']=WindLayer,exports['WindUtil']=WindUtil,Object['defineProperty'](exports,'__esModule',{'value':!![]});function _0x3311(){const _0x3aa9b3=['isDestroyed','currentParticlesPosition','clientHeight','IDENTITY','mouse_move','46XRAGkN','particlesTextures','fragmentShaderSource','VertexArray','register','setData','fill','_map','canvasWidth','tlng','_onMouseDownEvent','removeChild','textures','currentTrails','options','commandList','worker','Compute','mouse_down','Matrix4','initWorker','particlesTextureSize','segmentsColor','toDegrees','PixelDatatype','outputTexture','data','mouseHidden','redraw','lonRange','getContext','color','lng','Color','1009533xFEZZU','viewerParameters','_onMap_preRenderEvent','clearCommand','pointerEvents','preRender','grid','xmin','array','getColorTexture','windData','xmax','arrayBufferView','age','_calc_speedRate','getOptions','udata','windField','890760ekejYZ','_tomap','_createCanvas','preExecute','Cartesian3','windTextures','tlat','context','style','execute','_speedRate','_pointerEvents','in\x20vec2\x20st;\x0a//\x20it\x20is\x20not\x20normal\x20itself,\x20but\x20used\x20to\x20control\x20normal\x0ain\x20vec3\x20normal;\x20//\x20(point\x20to\x20use,\x20offset\x20sign,\x20not\x20used\x20component)\x0a\x0auniform\x20sampler2D\x20currentParticlesPosition;\x0auniform\x20sampler2D\x20postProcessingPosition;\x0auniform\x20sampler2D\x20postProcessingSpeed;\x0a\x0auniform\x20float\x20particleHeight;\x0a\x0auniform\x20float\x20aspect;\x0auniform\x20float\x20pixelSize;\x0auniform\x20float\x20lineWidth;\x0a\x0aout\x20float\x20speedNormalization;\x0a\x0avec3\x20convertCoordinate(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20WGS84\x20(lon,\x20lat,\x20lev)\x20->\x20ECEF\x20(x,\x20y,\x20z)\x0a\x20\x20\x20\x20//\x20see\x20https://en.wikipedia.org/wiki/Geographic_coordinate_conversion#From_geodetic_to_ECEF_coordinates\x20for\x20detail\x0a\x0a\x20\x20\x20\x20//\x20WGS\x2084\x20geometric\x20constants\x0a\x20\x20\x20\x20float\x20a\x20=\x206378137.0;\x20//\x20Semi-major\x20axis\x0a\x20\x20\x20\x20float\x20b\x20=\x206356752.3142;\x20//\x20Semi-minor\x20axis\x0a\x20\x20\x20\x20float\x20e2\x20=\x206.69437999014e-3;\x20//\x20First\x20eccentricity\x20squared\x0a\x0a\x20\x20\x20\x20float\x20latitude\x20=\x20radians(lonLatLev.y);\x0a\x20\x20\x20\x20float\x20longitude\x20=\x20radians(lonLatLev.x);\x0a\x0a\x20\x20\x20\x20float\x20cosLat\x20=\x20cos(latitude);\x0a\x20\x20\x20\x20float\x20sinLat\x20=\x20sin(latitude);\x0a\x20\x20\x20\x20float\x20cosLon\x20=\x20cos(longitude);\x0a\x20\x20\x20\x20float\x20sinLon\x20=\x20sin(longitude);\x0a\x0a\x20\x20\x20\x20float\x20N_Phi\x20=\x20a\x20/\x20sqrt(1.0\x20-\x20e2\x20*\x20sinLat\x20*\x20sinLat);\x0a\x20\x20\x20\x20float\x20h\x20=\x20particleHeight;\x20//\x20it\x20should\x20be\x20high\x20enough\x20otherwise\x20the\x20particle\x20may\x20not\x20pass\x20the\x20terrain\x20depth\x20test\x0a\x0a\x20\x20\x20\x20vec3\x20cartesian\x20=\x20vec3(0.0);\x0a\x20\x20\x20\x20cartesian.x\x20=\x20(N_Phi\x20+\x20h)\x20*\x20cosLat\x20*\x20cosLon;\x0a\x20\x20\x20\x20cartesian.y\x20=\x20(N_Phi\x20+\x20h)\x20*\x20cosLat\x20*\x20sinLon;\x0a\x20\x20\x20\x20cartesian.z\x20=\x20((b\x20*\x20b)\x20/\x20(a\x20*\x20a)\x20*\x20N_Phi\x20+\x20h)\x20*\x20sinLat;\x0a\x20\x20\x20\x20return\x20cartesian;\x0a}\x0a\x0avec4\x20calcProjectedCoordinate(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20the\x20range\x20of\x20longitude\x20in\x20Cesium\x20is\x20[-180,\x20180]\x20but\x20the\x20range\x20of\x20longitude\x20in\x20the\x20NetCDF\x20file\x20is\x20[0,\x20360]\x0a\x20\x20\x20\x20//\x20[0,\x20180]\x20is\x20corresponding\x20to\x20[0,\x20180]\x20and\x20[180,\x20360]\x20is\x20corresponding\x20to\x20[-180,\x200]\x0a\x20\x20\x20\x20lonLatLev.x\x20=\x20mod(lonLatLev.x\x20+\x20180.0,\x20360.0)\x20-\x20180.0;\x0a\x20\x20\x20\x20vec3\x20particlePosition\x20=\x20convertCoordinate(lonLatLev);\x0a\x20\x20\x20\x20vec4\x20projectedCoordinate\x20=\x20czm_modelViewProjection\x20*\x20vec4(particlePosition,\x201.0);\x0a\x20\x20\x20\x20return\x20projectedCoordinate;\x0a}\x0a\x0avec4\x20calcOffset(vec4\x20currentProjectedCoordinate,\x20vec4\x20nextProjectedCoordinate,\x20float\x20offsetSign)\x20{\x0a\x20\x20\x20\x20vec2\x20aspectVec2\x20=\x20vec2(aspect,\x201.0);\x0a\x20\x20\x20\x20vec2\x20currentXY\x20=\x20(currentProjectedCoordinate.xy\x20/\x20currentProjectedCoordinate.w)\x20*\x20aspectVec2;\x0a\x20\x20\x20\x20vec2\x20nextXY\x20=\x20(nextProjectedCoordinate.xy\x20/\x20nextProjectedCoordinate.w)\x20*\x20aspectVec2;\x0a\x0a\x20\x20\x20\x20float\x20offsetLength\x20=\x20lineWidth\x20/\x202.0;\x0a\x20\x20\x20\x20vec2\x20direction\x20=\x20normalize(nextXY\x20-\x20currentXY);\x0a\x20\x20\x20\x20vec2\x20normalVector\x20=\x20vec2(-direction.y,\x20direction.x);\x0a\x20\x20\x20\x20normalVector.x\x20=\x20normalVector.x\x20/\x20aspect;\x0a\x20\x20\x20\x20normalVector\x20=\x20offsetLength\x20*\x20normalVector;\x0a\x0a\x20\x20\x20\x20vec4\x20offset\x20=\x20vec4(offsetSign\x20*\x20normalVector,\x200.0,\x200.0);\x0a\x20\x20\x20\x20return\x20offset;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec2\x20particleIndex\x20=\x20st;\x0a\x0a\x20\x20\x20\x20vec3\x20currentPosition\x20=\x20texture(currentParticlesPosition,\x20particleIndex).rgb;\x0a\x20\x20\x20\x20vec4\x20nextPosition\x20=\x20texture(postProcessingPosition,\x20particleIndex);\x0a\x0a\x20\x20\x20\x20vec4\x20currentProjectedCoordinate\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20vec4\x20nextProjectedCoordinate\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20if\x20(nextPosition.w\x20>\x200.0)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20currentProjectedCoordinate\x20=\x20calcProjectedCoordinate(currentPosition);\x0a\x20\x20\x20\x20\x20\x20\x20\x20nextProjectedCoordinate\x20=\x20calcProjectedCoordinate(currentPosition);\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20currentProjectedCoordinate\x20=\x20calcProjectedCoordinate(currentPosition);\x0a\x20\x20\x20\x20\x20\x20\x20\x20nextProjectedCoordinate\x20=\x20calcProjectedCoordinate(nextPosition.xyz);\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20float\x20pointToUse\x20=\x20normal.x;\x20//\x20-1\x20is\x20currentProjectedCoordinate\x20and\x20+1\x20is\x20nextProjectedCoordinate\x0a\x20\x20\x20\x20float\x20offsetSign\x20=\x20normal.y;\x0a\x0a\x20\x20\x20\x20vec4\x20offset\x20=\x20pixelSize\x20*\x20calcOffset(currentProjectedCoordinate,\x20nextProjectedCoordinate,\x20offsetSign);\x0a\x20\x20\x20\x20if\x20(pointToUse\x20<\x200.0)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20currentProjectedCoordinate\x20+\x20offset;\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20nextProjectedCoordinate\x20+\x20offset;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20speedNormalization\x20=\x20texture(postProcessingSpeed,\x20particleIndex).a;\x0a}\x0a','particleSystem','screen','ymax','_onMouseUpEvent','attributeLocations','destroy','drawingBufferWidth','height','2798lbAzkB','scene','primitiveType','randomizeParticles','viewRectangleToLonLatRange','Texture','STATIC_DRAW','push','layer','createWindTextures','PrimitiveCollection','FLOAT','mouseUp','random','currentParticlesSpeed','hidden','_maxAge','_onMouseMoveEvent','CanvasWindField','postMessage','max','LINEAR','_drawLines','198546KzqQGF','globe','clear','blue','refreshTimer','BoundingSphere','umax','globeBoundingSphere','south','_updateIng2','updatePosition','lat','colors','_setOptionsHook','isInExtent','pow','addPrimitives','log','mars3d-canvasWind','mouseDown','mouseMove','default','TRIANGLES','particlesComputing','Cesium','canvasHeight','createRenderingTextures','forEach','_bilinearInterpolation','GeometryAttribute','873055TcQvvX','dimensions','createTexture','unbindEvent','getOwnPropertyDescriptor','fromCache','250144OMMdQg','createSegmentsGeometry','createRawRenderState','ellipsoid','off','getUVByPoint','width','show','TWO_PI','commandToExecute','viewport','ComponentDatatype','PrimitiveType','particlesNumber','computeViewRectangle','defined','getUVByXY','removeEventListener','TextureMagnificationFilter','maxParticles','clearFramebuffers','SceneMode','rgb(206,255,255)','all','primitives','_mountedHook','SCENE3D','DepthFunction','dropRateBump','resize','length','update','vertexArray','maxAge','wheel','_randomParticle','uniformMap','frameTime','bindEvent','init','getPixelSize','visible','framebuffers','wind','speedRate','EventType','mode','TextureMinificationFilter','Math','fromGeometry','getWind','geometry','DomUtil','latRange','nextTrailsColor','clientWidth','commandType','canvasContext','keys','_onMapWhellEvent','nextParticlesSpeed','none','green','rows','_calcUV','_addedHook','fixedHeight','toGridXY','ComputeCommand','RGB','1677850cyyTsi','postProcessingPosition','Draw','shaderProgram','_updateIng','rawRenderState','removeAll','4KlTcjK','pixelSize','beginPath','framebuffer','create','nextTrails','lev','segments','east','ymin','colorTable','canvas','0px','CanvasWindLayer','OPAQUE','Sampler','ShaderSource','81uBLqyh','visibility','round','min','add','particlesRendering','clampToLatitudeRange','BufferUsage','drawingBufferHeight','postProcessingSpeed','lon','cols','speedFactor'];_0x3311=function(){return _0x3aa9b3;};return _0x3311();}
14
+ 'use strict';const _0x19f4f9=_0x14b2;(function(_0x54cf24,_0x3439df){const _0x4c3c5b=_0x14b2,_0x3ab828=_0x54cf24();while(!![]){try{const _0xc53c7d=parseInt(_0x4c3c5b(0x164))/0x1*(-parseInt(_0x4c3c5b(0xda))/0x2)+parseInt(_0x4c3c5b(0xac))/0x3*(parseInt(_0x4c3c5b(0x135))/0x4)+parseInt(_0x4c3c5b(0x156))/0x5+parseInt(_0x4c3c5b(0x144))/0x6+-parseInt(_0x4c3c5b(0x145))/0x7*(-parseInt(_0x4c3c5b(0xcb))/0x8)+-parseInt(_0x4c3c5b(0x149))/0x9*(parseInt(_0x4c3c5b(0x160))/0xa)+-parseInt(_0x4c3c5b(0x174))/0xb*(-parseInt(_0x4c3c5b(0x12b))/0xc);if(_0xc53c7d===_0x3439df)break;else _0x3ab828['push'](_0x3ab828['shift']());}catch(_0xd3b8ba){_0x3ab828['push'](_0x3ab828['shift']());}}}(_0x55a2,0x49f28));function _interopNamespace(_0x5cd1aa){if(_0x5cd1aa&&_0x5cd1aa['__esModule'])return _0x5cd1aa;var _0x4716b1=Object['create'](null);return _0x5cd1aa&&Object['keys'](_0x5cd1aa)['forEach'](function(_0x3db586){const _0x17f64a=_0x14b2;if(_0x3db586!==_0x17f64a(0x109)){var _0x3ddf8f=Object[_0x17f64a(0x171)](_0x5cd1aa,_0x3db586);Object['defineProperty'](_0x4716b1,_0x3db586,_0x3ddf8f[_0x17f64a(0x11c)]?_0x3ddf8f:{'enumerable':!![],'get':function(){return _0x5cd1aa[_0x3db586];}});}}),_0x4716b1['default']=_0x5cd1aa,_0x4716b1;}var mars3d__namespace=_interopNamespace(mars3d);const Cesium$7=mars3d__namespace['Cesium'];function getU(_0x408da3,_0x167024){const _0x27ac9a=_0x408da3*Math['cos'](Cesium$7['Math']['toRadians'](_0x167024));return _0x27ac9a;}function getV(_0x2c1c32,_0xe74089){const _0x57a090=_0x14b2,_0x2c578a=_0x2c1c32*Math['sin'](Cesium$7['Math'][_0x57a090(0xe9)](_0xe74089));return _0x2c578a;}function getSpeed(_0x5f2477,_0x1014f8){const _0x1a3a4c=Math['sqrt'](Math['pow'](_0x5f2477,0x2)+Math['pow'](_0x1014f8,0x2));return _0x1a3a4c;}function getDirection(_0x3b769d,_0x1d5329){let _0x18aff5=Cesium$7['Math']['toDegrees'](Math['atan2'](_0x1d5329,_0x3b769d));return _0x18aff5+=_0x18aff5<0x0?0x168:0x0,_0x18aff5;}var WindUtil={'__proto__':null,'getU':getU,'getV':getV,'getSpeed':getSpeed,'getDirection':getDirection};const Cesium$6=mars3d__namespace['Cesium'];class CustomPrimitive{constructor(_0x2090fc){const _0x46363c=_0x14b2;this['commandType']=_0x2090fc['commandType'],this['geometry']=_0x2090fc['geometry'],this['attributeLocations']=_0x2090fc[_0x46363c(0x8c)],this['primitiveType']=_0x2090fc[_0x46363c(0x166)],this[_0x46363c(0x116)]=_0x2090fc['uniformMap'],this[_0x46363c(0xbb)]=_0x2090fc[_0x46363c(0xbb)],this['fragmentShaderSource']=_0x2090fc['fragmentShaderSource'],this['rawRenderState']=_0x2090fc['rawRenderState'],this['framebuffer']=_0x2090fc['framebuffer'],this['outputTexture']=_0x2090fc['outputTexture'],this['autoClear']=_0x2090fc[_0x46363c(0x124)]??![],this['preExecute']=_0x2090fc['preExecute'],this['show']=!![],this['commandToExecute']=undefined,this['clearCommand']=undefined,this['autoClear']&&(this['clearCommand']=new Cesium$6['ClearCommand']({'color':new Cesium$6['Color'](0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':this[_0x46363c(0x138)],'pass':Cesium$6[_0x46363c(0x86)]['OPAQUE']}));}['createCommand'](_0x6f0210){const _0x4a6063=_0x14b2;switch(this['commandType']){case'Draw':{const _0x97b33a=Cesium$6['VertexArray']['fromGeometry']({'context':_0x6f0210,'geometry':this[_0x4a6063(0x161)],'attributeLocations':this['attributeLocations'],'bufferUsage':Cesium$6['BufferUsage']['STATIC_DRAW']}),_0x223ce4=Cesium$6['ShaderProgram']['fromCache']({'context':_0x6f0210,'attributeLocations':this['attributeLocations'],'vertexShaderSource':this['vertexShaderSource'],'fragmentShaderSource':this[_0x4a6063(0xfc)]}),_0x3e7160=Cesium$6['RenderState'][_0x4a6063(0xe7)](this['rawRenderState']);return new Cesium$6['DrawCommand']({'primitiveType':this['primitiveType'],'shaderProgram':_0x223ce4,'vertexArray':_0x97b33a,'modelMatrix':Cesium$6[_0x4a6063(0x15b)]['IDENTITY'],'renderState':_0x3e7160,'uniformMap':this['uniformMap'],'castShadows':![],'receiveShadows':![],'framebuffer':this['framebuffer'],'pass':Cesium$6['Pass'][_0x4a6063(0xab)],'pickOnly':!![],'owner':this});}case _0x4a6063(0xd0):{return new Cesium$6[(_0x4a6063(0xe8))]({'owner':this,'fragmentShaderSource':this['fragmentShaderSource'],'uniformMap':this['uniformMap'],'outputTexture':this['outputTexture'],'persists':!![]});}}}[_0x19f4f9(0xb4)](_0x52fe53,_0x48a254){const _0x4d8d34=_0x19f4f9;this[_0x4d8d34(0x161)]=_0x48a254;const _0x3ee20f=Cesium$6[_0x4d8d34(0xce)]['fromGeometry']({'context':_0x52fe53,'geometry':this[_0x4d8d34(0x161)],'attributeLocations':this[_0x4d8d34(0x8c)],'bufferUsage':Cesium$6[_0x4d8d34(0x153)]['STATIC_DRAW']});this['commandToExecute']['vertexArray']=_0x3ee20f;}['update'](_0x3c6359){const _0x2c1a67=_0x19f4f9;if(!this['show'])return;if(_0x3c6359['mode']!==Cesium$6[_0x2c1a67(0x13f)]['SCENE3D'])return;!Cesium$6['defined'](this[_0x2c1a67(0x9e)])&&(this[_0x2c1a67(0x9e)]=this['createCommand'](_0x3c6359['context'])),Cesium$6[_0x2c1a67(0x163)](this['preExecute'])&&this[_0x2c1a67(0x13e)](),Cesium$6[_0x2c1a67(0x163)](this['clearCommand'])&&_0x3c6359['commandList']['push'](this[_0x2c1a67(0x10e)]),_0x3c6359['commandList']['push'](this['commandToExecute']);}[_0x19f4f9(0x83)](){return![];}['destroy'](){const _0x4f4852=_0x19f4f9;if(this[_0x4f4852(0x10e)]){var _0x595ce6,_0x5f2bc6;(_0x595ce6=this['clearCommand'])!==null&&_0x595ce6!==void 0x0&&_0x595ce6['vertexArray']&&this[_0x4f4852(0x10e)]['vertexArray']['destroy'](),(_0x5f2bc6=this['clearCommand'])!==null&&_0x5f2bc6!==void 0x0&&_0x5f2bc6[_0x4f4852(0x151)]&&this['clearCommand'][_0x4f4852(0x151)]['destroy'](),delete this['clearCommand'];}return this[_0x4f4852(0x9e)]&&(this['commandToExecute']['vertexArray']&&this['commandToExecute'][_0x4f4852(0x10c)]['destroy'](),this[_0x4f4852(0x9e)]['shaderProgram']&&this['commandToExecute']['shaderProgram']['destroy'](),delete this['commandToExecute']),Cesium$6[_0x4f4852(0x119)](this);}}function _0x55a2(){const _0x520d25=['lonRange','1519760bgSoCf','tlat','CanvasWindLayer','segments','getColorTexture','Matrix4','_map','latRange','scene','bind','5841140qabrHn','geometry','ymax','defined','36643enlwcc','canvasContext','primitiveType','height','dimensions','_createCanvas','udata','windTextures','Cesium','setOptions','worker','isPointVisible','ShaderSource','getOwnPropertyDescriptor','getOptions','Framebuffer','3554507HPdsWG','isDestroyed','reverse','colors','Pass','createRenderingPrimitives','particles','getFullscreenQuad','Cartesian3','globe','attributeLocations','removeChild','createSegmentsGeometry','uniform\x20sampler2D\x20postProcessingPosition;\x0auniform\x20sampler2D\x20nextParticlesSpeed;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20randomParticle\x20=\x20texture(postProcessingPosition,\x20v_textureCoordinates);\x0a\x20\x20\x20\x20vec4\x20particleSpeed\x20=\x20texture(nextParticlesSpeed,\x20v_textureCoordinates);\x0a\x0a\x20\x20\x20\x20if\x20(randomParticle.a\x20>\x200.0)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20particleSpeed;\x0a\x20\x20\x20\x20}\x0a}\x0a','Math','particlesTextureSize','Draw','uniform\x20sampler2D\x20currentParticlesSpeed;\x20//\x20(u,\x20v,\x20w,\x20normalization)\x0auniform\x20sampler2D\x20particlesWind;\x0a\x0a//\x20used\x20to\x20calculate\x20the\x20wind\x20norm\x0auniform\x20vec2\x20uSpeedRange;\x20//\x20(min,\x20max);\x0auniform\x20vec2\x20vSpeedRange;\x0auniform\x20float\x20pixelSize;\x0auniform\x20float\x20speedFactor;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0afloat\x20calculateWindNorm(vec3\x20speed)\x20{\x0a\x20\x20\x20\x20vec3\x20percent\x20=\x20vec3(0.0);\x0a\x20\x20\x20\x20percent.x\x20=\x20(speed.x\x20-\x20uSpeedRange.x)\x20/\x20(uSpeedRange.y\x20-\x20uSpeedRange.x);\x0a\x20\x20\x20\x20percent.y\x20=\x20(speed.y\x20-\x20vSpeedRange.x)\x20/\x20(vSpeedRange.y\x20-\x20vSpeedRange.x);\x0a\x20\x20\x20\x20float\x20normalization\x20=\x20length(percent);\x0a\x0a\x20\x20\x20\x20return\x20normalization;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20texture\x20coordinate\x20must\x20be\x20normalized\x0a\x20\x20\x20\x20//\x20vec3\x20currentSpeed\x20=\x20texture(currentParticlesSpeed,\x20v_textureCoordinates).rgb;\x0a\x20\x20\x20\x20vec3\x20windVector\x20=\x20texture(particlesWind,\x20v_textureCoordinates).rgb;\x0a\x0a\x20\x20\x20\x20vec4\x20nextSpeed\x20=\x20vec4(speedFactor\x20*\x20pixelSize\x20*\x20windVector,\x20calculateWindNorm(windVector));\x0a\x20\x20\x20\x20out_FragColor\x20=\x20nextSpeed;\x0a}\x0a','data','layer','getUVByXY','init','EventType','left','mouseHidden','_speedRate','primitives','lev','commandToExecute','UNSIGNED_BYTE','lat','unbindEvent','_onMouseDownEvent','particleSystem','particlesComputing','Sampler','options','redraw','viewerParameters','particlesTextures','DISABLE_GL_POSITION_LOG_DEPTH','OPAQUE','1512885JJQXqz','windData','isInExtent','_addedHook','width','Geometry','ymin','trails','setGeometry','age','createRawRenderState','ellipsoid','RGB','now','maxParticles','vertexShaderSource','_bilinearInterpolation','fixedHeight','pixelSize','clearFramebuffers','fill','maxAge','getContext','keys','tlng','destroy','PI_OVER_TWO','TextureMinificationFilter','min','outputTexture','postMessage','1816uPHAPZ','clear','color','VertexArray','canvasWidth','Compute','mouseMove','currentParticlesSpeed','vmax','once','toGridXY','grid','_onMapWhellEvent','xmin','colorTable','30vARUHc','windField','destination-in','setData','off','_randomParticle','array','getUVByPoint','currentTrailsDepth','WindUtil','mouseDown','refreshTimer','clampToLatitudeRange','fromCache','ComputeCommand','toRadians','refreshParticles','clientHeight','xmax','rgb(206,255,255)','camera','initWorker','FLOAT','fromDegrees','max','createParticlesTextures','arrayBufferView','postProcessingSpeed','segmentsDepth','abs','nextTrailsColor','_onMouseMoveEvent','nextTrails','textures','fragmentShaderSource','mode','_drawLines','LUMINANCE','_tomap','setDate','random','removeEventListener','postProcessingPosition','vdata','Cartesian2','visible','TWO_PI','default','resize','speedRate','vertexArray','currentParticlesPosition','clearCommand','context','SCENE3D','mouse_down','createRenderingTextures','clientWidth','wgs84ToWindowCoordinates','nextParticlesPosition','uniformMap','update','reverseY','destroyObject','lineWidth','rows','get','applyViewerParameters','viewRectangleToLonLatRange','canvas','defineProperty','DISABLE_LOG_DEPTH_FRAGMENT_WRITE','ceil','createTexture','autoClear','bindEvent','globeBoundingSphere','particlesNumber','framebuffers','wind','PixelFormat','12HRyWsO','Texture','pointerEvents','add','auto','fadeOpacity','stroke','style','red','_calcUV','4osxTIh','_onMouseUpEvent','show','framebuffer','cols','lon','NEAREST','canvasWind','nextParticlesSpeed','preExecute','SceneMode','particlesRendering','0px','_updateIng2','north','653448qkJYgh','6055ooDFaj','particleHeight','RGBA','mouseUp','9yYUfjo','TextureMagnificationFilter','mouse_move','currentTrails','updateViewerParameters','fillRect','umin','cancelAnimationFrame','shaderProgram','lng','BufferUsage','_canrefresh'];_0x55a2=function(){return _0x520d25;};return _0x55a2();}const Cesium$5=mars3d__namespace[_0x19f4f9(0x16c)],Util=(function(){const _0x581f22=function(){const _0x50ede4=_0x14b2,_0x3e895=new Cesium$5[(_0x50ede4(0xb1))]({'attributes':new Cesium$5['GeometryAttributes']({'position':new Cesium$5['GeometryAttribute']({'componentDatatype':Cesium$5['ComponentDatatype']['FLOAT'],'componentsPerAttribute':0x3,'values':new Float32Array([-0x1,-0x1,0x0,0x1,-0x1,0x0,0x1,0x1,0x0,-0x1,0x1,0x0])}),'st':new Cesium$5['GeometryAttribute']({'componentDatatype':Cesium$5['ComponentDatatype']['FLOAT'],'componentsPerAttribute':0x2,'values':new Float32Array([0x0,0x0,0x1,0x0,0x1,0x1,0x0,0x1])})}),'indices':new Uint32Array([0x3,0x2,0x0,0x0,0x2,0x1])});return _0x3e895;},_0x1ce051=function(_0x3b7fd2,_0x102cf4){const _0xf66d94=_0x14b2;if(Cesium$5[_0xf66d94(0x163)](_0x102cf4)){const _0x48fa02={};_0x48fa02[_0xf66d94(0xf4)]=_0x102cf4,_0x3b7fd2['source']=_0x48fa02;}const _0x91f378=new Cesium$5[(_0xf66d94(0x12c))](_0x3b7fd2);return _0x91f378;},_0x50f605=function(_0x3141f2,_0x147e1f,_0x331153){const _0x5e707b=_0x14b2,_0x961a14=new Cesium$5[(_0x5e707b(0x173))]({'context':_0x3141f2,'colorTextures':[_0x147e1f],'depthTexture':_0x331153});return _0x961a14;},_0x2e9b86=function(_0x197a87){const _0xbed125=!![],_0x373049=![],_0x429422={'viewport':_0x197a87['viewport'],'depthTest':_0x197a87['depthTest'],'depthMask':_0x197a87['depthMask'],'blending':_0x197a87['blending']},_0x50bf8b=Cesium$5['Appearance']['getDefaultRenderState'](_0xbed125,_0x373049,_0x429422);return _0x50bf8b;},_0x41834d=function(_0x29949e){const _0x2af823=_0x14b2,_0x31b110={},_0x384b33=Cesium$5['Math']['mod'](_0x29949e['west'],Cesium$5['Math']['TWO_PI']),_0x2eb557=Cesium$5['Math']['mod'](_0x29949e['east'],Cesium$5[_0x2af823(0x90)][_0x2af823(0x108)]),_0x3bbea4=_0x29949e['width'];let _0x3413e0,_0x2432e0;_0x3bbea4>Cesium$5['Math']['THREE_PI_OVER_TWO']?(_0x3413e0=0x0,_0x2432e0=Cesium$5['Math']['TWO_PI']):_0x2eb557-_0x384b33<_0x3bbea4?(_0x3413e0=_0x384b33,_0x2432e0=_0x384b33+_0x3bbea4):(_0x3413e0=_0x384b33,_0x2432e0=_0x2eb557);_0x31b110[_0x2af823(0x13a)]={'min':Cesium$5[_0x2af823(0x90)]['toDegrees'](_0x3413e0),'max':Cesium$5['Math']['toDegrees'](_0x2432e0)};const _0x324e34=_0x29949e['south'],_0x141b8a=_0x29949e[_0x2af823(0x143)],_0x375b56=_0x29949e[_0x2af823(0x167)],_0x3f7eec=_0x375b56>Cesium$5['Math']['PI']/0xc?_0x375b56/0x2:0x0;let _0x460ab4=Cesium$5['Math']['clampToLatitudeRange'](_0x324e34-_0x3f7eec),_0x4d8549=Cesium$5['Math'][_0x2af823(0xe6)](_0x141b8a+_0x3f7eec);return _0x460ab4<-Cesium$5['Math']['PI_OVER_THREE']&&(_0x460ab4=-Cesium$5['Math'][_0x2af823(0xc6)]),_0x4d8549>Cesium$5['Math']['PI_OVER_THREE']&&(_0x4d8549=Cesium$5['Math']['PI_OVER_TWO']),_0x31b110[_0x2af823(0xa0)]={'min':Cesium$5[_0x2af823(0x90)]['toDegrees'](_0x460ab4),'max':Cesium$5['Math']['toDegrees'](_0x4d8549)},_0x31b110;};return{'getFullscreenQuad':_0x581f22,'createTexture':_0x1ce051,'createFramebuffer':_0x50f605,'createRawRenderState':_0x2e9b86,'viewRectangleToLonLatRange':_0x41834d};}());var segmentDraw_vert='in\x20vec2\x20st;\x0a//\x20it\x20is\x20not\x20normal\x20itself,\x20but\x20used\x20to\x20control\x20normal\x0ain\x20vec3\x20normal;\x20//\x20(point\x20to\x20use,\x20offset\x20sign,\x20not\x20used\x20component)\x0a\x0auniform\x20sampler2D\x20currentParticlesPosition;\x0auniform\x20sampler2D\x20postProcessingPosition;\x0auniform\x20sampler2D\x20postProcessingSpeed;\x0a\x0auniform\x20float\x20particleHeight;\x0a\x0auniform\x20float\x20aspect;\x0auniform\x20float\x20pixelSize;\x0auniform\x20float\x20lineWidth;\x0a\x0aout\x20float\x20speedNormalization;\x0a\x0avec3\x20convertCoordinate(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20WGS84\x20(lon,\x20lat,\x20lev)\x20->\x20ECEF\x20(x,\x20y,\x20z)\x0a\x20\x20\x20\x20//\x20see\x20https://en.wikipedia.org/wiki/Geographic_coordinate_conversion#From_geodetic_to_ECEF_coordinates\x20for\x20detail\x0a\x0a\x20\x20\x20\x20//\x20WGS\x2084\x20geometric\x20constants\x0a\x20\x20\x20\x20float\x20a\x20=\x206378137.0;\x20//\x20Semi-major\x20axis\x0a\x20\x20\x20\x20float\x20b\x20=\x206356752.3142;\x20//\x20Semi-minor\x20axis\x0a\x20\x20\x20\x20float\x20e2\x20=\x206.69437999014e-3;\x20//\x20First\x20eccentricity\x20squared\x0a\x0a\x20\x20\x20\x20float\x20latitude\x20=\x20radians(lonLatLev.y);\x0a\x20\x20\x20\x20float\x20longitude\x20=\x20radians(lonLatLev.x);\x0a\x0a\x20\x20\x20\x20float\x20cosLat\x20=\x20cos(latitude);\x0a\x20\x20\x20\x20float\x20sinLat\x20=\x20sin(latitude);\x0a\x20\x20\x20\x20float\x20cosLon\x20=\x20cos(longitude);\x0a\x20\x20\x20\x20float\x20sinLon\x20=\x20sin(longitude);\x0a\x0a\x20\x20\x20\x20float\x20N_Phi\x20=\x20a\x20/\x20sqrt(1.0\x20-\x20e2\x20*\x20sinLat\x20*\x20sinLat);\x0a\x20\x20\x20\x20float\x20h\x20=\x20particleHeight;\x20//\x20it\x20should\x20be\x20high\x20enough\x20otherwise\x20the\x20particle\x20may\x20not\x20pass\x20the\x20terrain\x20depth\x20test\x0a\x0a\x20\x20\x20\x20vec3\x20cartesian\x20=\x20vec3(0.0);\x0a\x20\x20\x20\x20cartesian.x\x20=\x20(N_Phi\x20+\x20h)\x20*\x20cosLat\x20*\x20cosLon;\x0a\x20\x20\x20\x20cartesian.y\x20=\x20(N_Phi\x20+\x20h)\x20*\x20cosLat\x20*\x20sinLon;\x0a\x20\x20\x20\x20cartesian.z\x20=\x20((b\x20*\x20b)\x20/\x20(a\x20*\x20a)\x20*\x20N_Phi\x20+\x20h)\x20*\x20sinLat;\x0a\x20\x20\x20\x20return\x20cartesian;\x0a}\x0a\x0avec4\x20calcProjectedCoordinate(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20the\x20range\x20of\x20longitude\x20in\x20Cesium\x20is\x20[-180,\x20180]\x20but\x20the\x20range\x20of\x20longitude\x20in\x20the\x20NetCDF\x20file\x20is\x20[0,\x20360]\x0a\x20\x20\x20\x20//\x20[0,\x20180]\x20is\x20corresponding\x20to\x20[0,\x20180]\x20and\x20[180,\x20360]\x20is\x20corresponding\x20to\x20[-180,\x200]\x0a\x20\x20\x20\x20lonLatLev.x\x20=\x20mod(lonLatLev.x\x20+\x20180.0,\x20360.0)\x20-\x20180.0;\x0a\x20\x20\x20\x20vec3\x20particlePosition\x20=\x20convertCoordinate(lonLatLev);\x0a\x20\x20\x20\x20vec4\x20projectedCoordinate\x20=\x20czm_modelViewProjection\x20*\x20vec4(particlePosition,\x201.0);\x0a\x20\x20\x20\x20return\x20projectedCoordinate;\x0a}\x0a\x0avec4\x20calcOffset(vec4\x20currentProjectedCoordinate,\x20vec4\x20nextProjectedCoordinate,\x20float\x20offsetSign)\x20{\x0a\x20\x20\x20\x20vec2\x20aspectVec2\x20=\x20vec2(aspect,\x201.0);\x0a\x20\x20\x20\x20vec2\x20currentXY\x20=\x20(currentProjectedCoordinate.xy\x20/\x20currentProjectedCoordinate.w)\x20*\x20aspectVec2;\x0a\x20\x20\x20\x20vec2\x20nextXY\x20=\x20(nextProjectedCoordinate.xy\x20/\x20nextProjectedCoordinate.w)\x20*\x20aspectVec2;\x0a\x0a\x20\x20\x20\x20float\x20offsetLength\x20=\x20lineWidth\x20/\x202.0;\x0a\x20\x20\x20\x20vec2\x20direction\x20=\x20normalize(nextXY\x20-\x20currentXY);\x0a\x20\x20\x20\x20vec2\x20normalVector\x20=\x20vec2(-direction.y,\x20direction.x);\x0a\x20\x20\x20\x20normalVector.x\x20=\x20normalVector.x\x20/\x20aspect;\x0a\x20\x20\x20\x20normalVector\x20=\x20offsetLength\x20*\x20normalVector;\x0a\x0a\x20\x20\x20\x20vec4\x20offset\x20=\x20vec4(offsetSign\x20*\x20normalVector,\x200.0,\x200.0);\x0a\x20\x20\x20\x20return\x20offset;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec2\x20particleIndex\x20=\x20st;\x0a\x0a\x20\x20\x20\x20vec3\x20currentPosition\x20=\x20texture(currentParticlesPosition,\x20particleIndex).rgb;\x0a\x20\x20\x20\x20vec4\x20nextPosition\x20=\x20texture(postProcessingPosition,\x20particleIndex);\x0a\x0a\x20\x20\x20\x20vec4\x20currentProjectedCoordinate\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20vec4\x20nextProjectedCoordinate\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20if\x20(nextPosition.w\x20>\x200.0)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20currentProjectedCoordinate\x20=\x20calcProjectedCoordinate(currentPosition);\x0a\x20\x20\x20\x20\x20\x20\x20\x20nextProjectedCoordinate\x20=\x20calcProjectedCoordinate(currentPosition);\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20currentProjectedCoordinate\x20=\x20calcProjectedCoordinate(currentPosition);\x0a\x20\x20\x20\x20\x20\x20\x20\x20nextProjectedCoordinate\x20=\x20calcProjectedCoordinate(nextPosition.xyz);\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20float\x20pointToUse\x20=\x20normal.x;\x20//\x20-1\x20is\x20currentProjectedCoordinate\x20and\x20+1\x20is\x20nextProjectedCoordinate\x0a\x20\x20\x20\x20float\x20offsetSign\x20=\x20normal.y;\x0a\x0a\x20\x20\x20\x20vec4\x20offset\x20=\x20pixelSize\x20*\x20calcOffset(currentProjectedCoordinate,\x20nextProjectedCoordinate,\x20offsetSign);\x0a\x20\x20\x20\x20if\x20(pointToUse\x20<\x200.0)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20currentProjectedCoordinate\x20+\x20offset;\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20nextProjectedCoordinate\x20+\x20offset;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20speedNormalization\x20=\x20texture(postProcessingSpeed,\x20particleIndex).a;\x0a}\x0a',segmentDraw_frag='uniform\x20sampler2D\x20colorTable;\x0a\x0ain\x20float\x20speedNormalization;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20out_FragColor\x20=\x20texture(colorTable,\x20vec2(speedNormalization,\x200.0));\x0a}\x0a',fullscreen_vert='in\x20vec3\x20position;\x0ain\x20vec2\x20st;\x0a\x0aout\x20vec2\x20textureCoordinate;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20textureCoordinate\x20=\x20st;\x0a\x20\x20\x20\x20gl_Position\x20=\x20vec4(position,\x201.0);\x0a}\x0a',trailDraw_frag='uniform\x20sampler2D\x20segmentsColorTexture;\x0auniform\x20sampler2D\x20segmentsDepthTexture;\x0a\x0auniform\x20sampler2D\x20currentTrailsColor;\x0auniform\x20sampler2D\x20trailsDepthTexture;\x0a\x0auniform\x20float\x20fadeOpacity;\x0a\x0ain\x20vec2\x20textureCoordinate;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20pointsColor\x20=\x20texture(segmentsColorTexture,\x20textureCoordinate);\x0a\x20\x20\x20\x20vec4\x20trailsColor\x20=\x20texture(currentTrailsColor,\x20textureCoordinate);\x0a\x0a\x20\x20\x20\x20trailsColor\x20=\x20floor(fadeOpacity\x20*\x20255.0\x20*\x20trailsColor)\x20/\x20255.0;\x20//\x20make\x20sure\x20the\x20trailsColor\x20will\x20be\x20strictly\x20decreased\x0a\x0a\x20\x20\x20\x20float\x20pointsDepth\x20=\x20texture(segmentsDepthTexture,\x20textureCoordinate).r;\x0a\x20\x20\x20\x20float\x20trailsDepth\x20=\x20texture(trailsDepthTexture,\x20textureCoordinate).r;\x0a\x20\x20\x20\x20float\x20globeDepth\x20=\x20czm_unpackDepth(texture(czm_globeDepthTexture,\x20textureCoordinate));\x0a\x0a\x20\x20\x20\x20out_FragColor\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20if\x20(pointsDepth\x20<\x20globeDepth)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20out_FragColor\x20+\x20pointsColor;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20if\x20(trailsDepth\x20<\x20globeDepth)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20out_FragColor\x20+\x20trailsColor;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20gl_FragDepth\x20=\x20min(pointsDepth,\x20trailsDepth);\x0a}\x0a',screenDraw_frag='uniform\x20sampler2D\x20trailsColorTexture;\x0auniform\x20sampler2D\x20trailsDepthTexture;\x0a\x0ain\x20vec2\x20textureCoordinate;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20trailsColor\x20=\x20texture(trailsColorTexture,\x20textureCoordinate);\x0a\x20\x20\x20\x20float\x20trailsDepth\x20=\x20texture(trailsDepthTexture,\x20textureCoordinate).r;\x0a\x20\x20\x20\x20float\x20globeDepth\x20=\x20czm_unpackDepth(texture(czm_globeDepthTexture,\x20textureCoordinate));\x0a\x0a\x20\x20\x20\x20if\x20(trailsDepth\x20<\x20globeDepth)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20trailsColor;\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20vec4(0.0);\x0a\x20\x20\x20\x20}\x0a}\x0a';const Cesium$4=mars3d__namespace['Cesium'];class ParticlesRendering{constructor(_0x50ee01,_0x4f024d,_0x2aa186,_0x3dc591,_0x25d564){const _0xb7a95e=_0x19f4f9;this[_0xb7a95e(0x112)](_0x50ee01,_0x4f024d,_0x2aa186['colors']),this['createRenderingFramebuffers'](_0x50ee01),this[_0xb7a95e(0x87)](_0x50ee01,_0x2aa186,_0x3dc591,_0x25d564);}[_0x19f4f9(0x112)](_0x2e80a2,_0x572e92,_0x556a07){const _0x2f23b8=_0x19f4f9,_0xf81ced={'context':_0x2e80a2,'width':_0x2e80a2['drawingBufferWidth'],'height':_0x2e80a2['drawingBufferHeight'],'pixelFormat':Cesium$4['PixelFormat'][_0x2f23b8(0x147)],'pixelDatatype':Cesium$4['PixelDatatype'][_0x2f23b8(0x9f)]},_0x3edf00={'context':_0x2e80a2,'width':_0x2e80a2['drawingBufferWidth'],'height':_0x2e80a2['drawingBufferHeight'],'pixelFormat':Cesium$4['PixelFormat']['DEPTH_COMPONENT'],'pixelDatatype':Cesium$4['PixelDatatype']['UNSIGNED_INT']},_0x59db98=_0x556a07['length'],_0x1ac11f=new Float32Array(_0x59db98*0x3);for(let _0x53049f=0x0;_0x53049f<_0x59db98;_0x53049f++){const _0x44923d=Cesium$4['Color']['fromCssColorString'](_0x556a07[_0x53049f]);_0x1ac11f[0x3*_0x53049f]=_0x44923d[_0x2f23b8(0x133)],_0x1ac11f[0x3*_0x53049f+0x1]=_0x44923d['green'],_0x1ac11f[0x3*_0x53049f+0x2]=_0x44923d['blue'];}const _0x5a41a4={'context':_0x2e80a2,'width':_0x59db98,'height':0x1,'pixelFormat':Cesium$4[_0x2f23b8(0x12a)][_0x2f23b8(0xb8)],'pixelDatatype':Cesium$4['PixelDatatype']['FLOAT'],'sampler':new Cesium$4['Sampler']({'minificationFilter':Cesium$4['TextureMinificationFilter']['LINEAR'],'magnificationFilter':Cesium$4['TextureMagnificationFilter']['LINEAR']})};this[_0x2f23b8(0xfb)]={'segmentsColor':Util['createTexture'](_0xf81ced),'segmentsDepth':Util[_0x2f23b8(0x123)](_0x3edf00),'currentTrailsColor':Util['createTexture'](_0xf81ced),'currentTrailsDepth':Util['createTexture'](_0x3edf00),'nextTrailsColor':Util['createTexture'](_0xf81ced),'nextTrailsDepth':Util['createTexture'](_0x3edf00),'colorTable':Util[_0x2f23b8(0x123)](_0x5a41a4,_0x1ac11f)};}['createRenderingFramebuffers'](_0x385b51){const _0x46a85d=_0x19f4f9;this['framebuffers']={'segments':Util['createFramebuffer'](_0x385b51,this['textures']['segmentsColor'],this['textures']['segmentsDepth']),'currentTrails':Util['createFramebuffer'](_0x385b51,this['textures']['currentTrailsColor'],this[_0x46a85d(0xfb)][_0x46a85d(0xe2)]),'nextTrails':Util['createFramebuffer'](_0x385b51,this['textures'][_0x46a85d(0xf8)],this[_0x46a85d(0xfb)]['nextTrailsDepth'])};}['createSegmentsGeometry'](_0x51e53c){const _0x5cae97=0x4;let _0x1a88e6=[];for(let _0x24997f=0x0;_0x24997f<_0x51e53c['particlesTextureSize'];_0x24997f++){for(let _0x2b2a07=0x0;_0x2b2a07<_0x51e53c['particlesTextureSize'];_0x2b2a07++){for(let _0x6e19d8=0x0;_0x6e19d8<_0x5cae97;_0x6e19d8++){_0x1a88e6['push'](_0x24997f/_0x51e53c['particlesTextureSize']),_0x1a88e6['push'](_0x2b2a07/_0x51e53c['particlesTextureSize']);}}}_0x1a88e6=new Float32Array(_0x1a88e6);let _0x2937c8=[];const _0x4795c5=[-0x1,0x1],_0x1d0476=[-0x1,0x1];for(let _0x151c2c=0x0;_0x151c2c<_0x51e53c['maxParticles'];_0x151c2c++){for(let _0x5255af=0x0;_0x5255af<_0x5cae97/0x2;_0x5255af++){for(let _0x19d208=0x0;_0x19d208<_0x5cae97/0x2;_0x19d208++){_0x2937c8['push'](_0x4795c5[_0x5255af]),_0x2937c8['push'](_0x1d0476[_0x19d208]),_0x2937c8['push'](0x0);}}}_0x2937c8=new Float32Array(_0x2937c8);const _0x4db80f=0x6*_0x51e53c['maxParticles'],_0x5e80ba=new Uint32Array(_0x4db80f);for(let _0x165ca4=0x0,_0x4aaa4c=0x0,_0x1b3d62=0x0;_0x165ca4<_0x51e53c['maxParticles'];_0x165ca4++){_0x5e80ba[_0x4aaa4c++]=_0x1b3d62+0x0,_0x5e80ba[_0x4aaa4c++]=_0x1b3d62+0x1,_0x5e80ba[_0x4aaa4c++]=_0x1b3d62+0x2,_0x5e80ba[_0x4aaa4c++]=_0x1b3d62+0x2,_0x5e80ba[_0x4aaa4c++]=_0x1b3d62+0x1,_0x5e80ba[_0x4aaa4c++]=_0x1b3d62+0x3,_0x1b3d62+=0x4;}const _0x13857c=new Cesium$4['Geometry']({'attributes':new Cesium$4['GeometryAttributes']({'st':new Cesium$4['GeometryAttribute']({'componentDatatype':Cesium$4['ComponentDatatype']['FLOAT'],'componentsPerAttribute':0x2,'values':_0x1a88e6}),'normal':new Cesium$4['GeometryAttribute']({'componentDatatype':Cesium$4['ComponentDatatype']['FLOAT'],'componentsPerAttribute':0x3,'values':_0x2937c8})}),'indices':_0x5e80ba});return _0x13857c;}['createRenderingPrimitives'](_0x500e05,_0x59a5ae,_0x3d9acc,_0x183cec){const _0xafa1c5=_0x19f4f9,_0x45a64e=this;this['primitives']={'segments':new CustomPrimitive({'commandType':'Draw','attributeLocations':{'st':0x0,'normal':0x1},'geometry':this[_0xafa1c5(0x8e)](_0x59a5ae),'primitiveType':Cesium$4['PrimitiveType']['TRIANGLES'],'uniformMap':{'currentParticlesPosition':function(){return _0x183cec['particlesTextures']['currentParticlesPosition'];},'postProcessingPosition':function(){const _0x1f4664=_0xafa1c5;return _0x183cec[_0x1f4664(0xa9)]['postProcessingPosition'];},'postProcessingSpeed':function(){return _0x183cec['particlesTextures']['postProcessingSpeed'];},'colorTable':function(){return _0x45a64e['textures']['colorTable'];},'aspect':function(){return _0x500e05['drawingBufferWidth']/_0x500e05['drawingBufferHeight'];},'pixelSize':function(){const _0x26ace4=_0xafa1c5;return _0x3d9acc[_0x26ace4(0xbe)];},'lineWidth':function(){const _0x4bb8b0=_0xafa1c5;return _0x59a5ae[_0x4bb8b0(0x11a)];},'particleHeight':function(){const _0x32f40e=_0xafa1c5;return _0x59a5ae[_0x32f40e(0x146)];}},'vertexShaderSource':new Cesium$4['ShaderSource']({'sources':[segmentDraw_vert]}),'fragmentShaderSource':new Cesium$4[(_0xafa1c5(0x170))]({'sources':[segmentDraw_frag]}),'rawRenderState':Util[_0xafa1c5(0xb6)]({'viewport':undefined,'depthTest':{'enabled':!![]},'depthMask':!![]}),'framebuffer':this['framebuffers']['segments'],'autoClear':!![]}),'trails':new CustomPrimitive({'commandType':'Draw','attributeLocations':{'position':0x0,'st':0x1},'geometry':Util[_0xafa1c5(0x89)](),'primitiveType':Cesium$4['PrimitiveType']['TRIANGLES'],'uniformMap':{'segmentsColorTexture':function(){return _0x45a64e['textures']['segmentsColor'];},'segmentsDepthTexture':function(){const _0x4d4ff4=_0xafa1c5;return _0x45a64e['textures'][_0x4d4ff4(0xf6)];},'currentTrailsColor':function(){const _0x435ce6=_0xafa1c5;return _0x45a64e[_0x435ce6(0x128)]['currentTrails']['getColorTexture'](0x0);},'trailsDepthTexture':function(){return _0x45a64e['framebuffers']['currentTrails']['depthTexture'];},'fadeOpacity':function(){return _0x59a5ae['fadeOpacity'];}},'vertexShaderSource':new Cesium$4['ShaderSource']({'defines':['DISABLE_GL_POSITION_LOG_DEPTH'],'sources':[fullscreen_vert]}),'fragmentShaderSource':new Cesium$4[(_0xafa1c5(0x170))]({'defines':['DISABLE_LOG_DEPTH_FRAGMENT_WRITE'],'sources':[trailDraw_frag]}),'rawRenderState':Util[_0xafa1c5(0xb6)]({'viewport':undefined,'depthTest':{'enabled':!![],'func':Cesium$4['DepthFunction']['ALWAYS']},'depthMask':!![]}),'framebuffer':this['framebuffers']['nextTrails'],'autoClear':!![],'preExecute':function(){const _0x2dedc6=_0xafa1c5,_0x4bbd46=_0x45a64e['framebuffers'][_0x2dedc6(0x14c)];_0x45a64e['framebuffers']['currentTrails']=_0x45a64e[_0x2dedc6(0x128)]['nextTrails'],_0x45a64e['framebuffers']['nextTrails']=_0x4bbd46,_0x45a64e[_0x2dedc6(0x9c)][_0x2dedc6(0xb3)][_0x2dedc6(0x9e)]['framebuffer']=_0x45a64e['framebuffers'][_0x2dedc6(0xfa)],_0x45a64e['primitives']['trails']['clearCommand']['framebuffer']=_0x45a64e['framebuffers']['nextTrails'];}}),'screen':new CustomPrimitive({'commandType':_0xafa1c5(0x92),'attributeLocations':{'position':0x0,'st':0x1},'geometry':Util['getFullscreenQuad'](),'primitiveType':Cesium$4['PrimitiveType']['TRIANGLES'],'uniformMap':{'trailsColorTexture':function(){const _0x420449=_0xafa1c5;return _0x45a64e[_0x420449(0x128)]['nextTrails'][_0x420449(0x15a)](0x0);},'trailsDepthTexture':function(){const _0x45295c=_0xafa1c5;return _0x45a64e[_0x45295c(0x128)]['nextTrails']['depthTexture'];}},'vertexShaderSource':new Cesium$4[(_0xafa1c5(0x170))]({'defines':[_0xafa1c5(0xaa)],'sources':[fullscreen_vert]}),'fragmentShaderSource':new Cesium$4['ShaderSource']({'defines':[_0xafa1c5(0x121)],'sources':[screenDraw_frag]}),'rawRenderState':Util[_0xafa1c5(0xb6)]({'viewport':undefined,'depthTest':{'enabled':![]},'depthMask':!![],'blending':{'enabled':!![]}}),'framebuffer':undefined})};}}var getWind_frag='//\x20the\x20size\x20of\x20UV\x20textures:\x20width\x20=\x20lon,\x20height\x20=\x20lat*lev\x0auniform\x20sampler2D\x20U;\x20//\x20eastward\x20wind\x0auniform\x20sampler2D\x20V;\x20//\x20northward\x20wind\x0a\x0auniform\x20sampler2D\x20currentParticlesPosition;\x20//\x20(lon,\x20lat,\x20lev)\x0a\x0auniform\x20vec3\x20dimension;\x20//\x20(lon,\x20lat,\x20lev)\x0auniform\x20vec3\x20minimum;\x20//\x20minimum\x20of\x20each\x20dimension\x0auniform\x20vec3\x20maximum;\x20//\x20maximum\x20of\x20each\x20dimension\x0auniform\x20vec3\x20interval;\x20//\x20interval\x20of\x20each\x20dimension\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0avec2\x20mapPositionToNormalizedIndex2D(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20ensure\x20the\x20range\x20of\x20longitude\x20and\x20latitude\x0a\x20\x20\x20\x20lonLatLev.x\x20=\x20mod(lonLatLev.x,\x20360.0);\x0a\x20\x20\x20\x20lonLatLev.y\x20=\x20clamp(lonLatLev.y,\x20-90.0,\x2090.0);\x0a\x0a\x20\x20\x20\x20vec3\x20index3D\x20=\x20vec3(0.0);\x0a\x20\x20\x20\x20index3D.x\x20=\x20(lonLatLev.x\x20-\x20minimum.x)\x20/\x20interval.x;\x0a\x20\x20\x20\x20index3D.y\x20=\x20(lonLatLev.y\x20-\x20minimum.y)\x20/\x20interval.y;\x0a\x20\x20\x20\x20index3D.z\x20=\x20(lonLatLev.z\x20-\x20minimum.z)\x20/\x20interval.z;\x0a\x0a\x20\x20\x20\x20//\x20the\x20st\x20texture\x20coordinate\x20corresponding\x20to\x20(col,\x20row)\x20index\x0a\x20\x20\x20\x20//\x20example\x0a\x20\x20\x20\x20//\x20data\x20array\x20is\x20[0,\x201,\x202,\x203,\x204,\x205],\x20width\x20=\x203,\x20height\x20=\x202\x0a\x20\x20\x20\x20//\x20the\x20content\x20of\x20texture\x20will\x20be\x0a\x20\x20\x20\x20//\x20t\x201.0\x0a\x20\x20\x20\x20//\x20\x20\x20\x20|\x20\x203\x204\x205\x0a\x20\x20\x20\x20//\x20\x20\x20\x20|\x0a\x20\x20\x20\x20//\x20\x20\x20\x20|\x20\x200\x201\x202\x0a\x20\x20\x20\x20//\x20\x20\x200.0------1.0\x20s\x0a\x0a\x20\x20\x20\x20vec2\x20index2D\x20=\x20vec2(index3D.x,\x20index3D.z\x20*\x20dimension.y\x20+\x20index3D.y);\x0a\x20\x20\x20\x20vec2\x20normalizedIndex2D\x20=\x20vec2(index2D.x\x20/\x20dimension.x,\x20index2D.y\x20/\x20(dimension.y\x20*\x20dimension.z));\x0a\x20\x20\x20\x20return\x20normalizedIndex2D;\x0a}\x0a\x0afloat\x20getWind(sampler2D\x20windTexture,\x20vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20vec2\x20normalizedIndex2D\x20=\x20mapPositionToNormalizedIndex2D(lonLatLev);\x0a\x20\x20\x20\x20float\x20result\x20=\x20texture(windTexture,\x20normalizedIndex2D).r;\x0a\x20\x20\x20\x20return\x20result;\x0a}\x0a\x0aconst\x20mat4\x20kernelMatrix\x20=\x20mat4(\x0a\x20\x20\x20\x200.0,\x20-1.0,\x202.0,\x20-1.0,\x20//\x20first\x20column\x0a\x20\x20\x20\x202.0,\x200.0,\x20-5.0,\x203.0,\x20//\x20second\x20column\x0a\x20\x20\x20\x200.0,\x201.0,\x204.0,\x20-3.0,\x20//\x20third\x20column\x0a\x20\x20\x20\x200.0,\x200.0,\x20-1.0,\x201.0\x20//\x20fourth\x20column\x0a);\x0afloat\x20oneDimensionInterpolation(float\x20t,\x20float\x20p0,\x20float\x20p1,\x20float\x20p2,\x20float\x20p3)\x20{\x0a\x20\x20\x20\x20vec4\x20tVec4\x20=\x20vec4(1.0,\x20t,\x20t\x20*\x20t,\x20t\x20*\x20t\x20*\x20t);\x0a\x20\x20\x20\x20tVec4\x20=\x20tVec4\x20/\x202.0;\x0a\x20\x20\x20\x20vec4\x20pVec4\x20=\x20vec4(p0,\x20p1,\x20p2,\x20p3);\x0a\x20\x20\x20\x20return\x20dot((tVec4\x20*\x20kernelMatrix),\x20pVec4);\x0a}\x0a\x0afloat\x20calculateB(sampler2D\x20windTexture,\x20float\x20t,\x20float\x20lon,\x20float\x20lat,\x20float\x20lev)\x20{\x0a\x20\x20\x20\x20float\x20lon0\x20=\x20floor(lon)\x20-\x201.0\x20*\x20interval.x;\x0a\x20\x20\x20\x20float\x20lon1\x20=\x20floor(lon);\x0a\x20\x20\x20\x20float\x20lon2\x20=\x20floor(lon)\x20+\x201.0\x20*\x20interval.x;\x0a\x20\x20\x20\x20float\x20lon3\x20=\x20floor(lon)\x20+\x202.0\x20*\x20interval.x;\x0a\x0a\x20\x20\x20\x20float\x20p0\x20=\x20getWind(windTexture,\x20vec3(lon0,\x20lat,\x20lev));\x0a\x20\x20\x20\x20float\x20p1\x20=\x20getWind(windTexture,\x20vec3(lon1,\x20lat,\x20lev));\x0a\x20\x20\x20\x20float\x20p2\x20=\x20getWind(windTexture,\x20vec3(lon2,\x20lat,\x20lev));\x0a\x20\x20\x20\x20float\x20p3\x20=\x20getWind(windTexture,\x20vec3(lon3,\x20lat,\x20lev));\x0a\x0a\x20\x20\x20\x20return\x20oneDimensionInterpolation(t,\x20p0,\x20p1,\x20p2,\x20p3);\x0a}\x0a\x0afloat\x20interpolateOneTexture(sampler2D\x20windTexture,\x20vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20float\x20lon\x20=\x20lonLatLev.x;\x0a\x20\x20\x20\x20float\x20lat\x20=\x20lonLatLev.y;\x0a\x20\x20\x20\x20float\x20lev\x20=\x20lonLatLev.z;\x0a\x0a\x20\x20\x20\x20float\x20lat0\x20=\x20floor(lat)\x20-\x201.0\x20*\x20interval.y;\x0a\x20\x20\x20\x20float\x20lat1\x20=\x20floor(lat);\x0a\x20\x20\x20\x20float\x20lat2\x20=\x20floor(lat)\x20+\x201.0\x20*\x20interval.y;\x0a\x20\x20\x20\x20float\x20lat3\x20=\x20floor(lat)\x20+\x202.0\x20*\x20interval.y;\x0a\x0a\x20\x20\x20\x20vec2\x20coefficient\x20=\x20lonLatLev.xy\x20-\x20floor(lonLatLev.xy);\x0a\x20\x20\x20\x20float\x20b0\x20=\x20calculateB(windTexture,\x20coefficient.x,\x20lon,\x20lat0,\x20lev);\x0a\x20\x20\x20\x20float\x20b1\x20=\x20calculateB(windTexture,\x20coefficient.x,\x20lon,\x20lat1,\x20lev);\x0a\x20\x20\x20\x20float\x20b2\x20=\x20calculateB(windTexture,\x20coefficient.x,\x20lon,\x20lat2,\x20lev);\x0a\x20\x20\x20\x20float\x20b3\x20=\x20calculateB(windTexture,\x20coefficient.x,\x20lon,\x20lat3,\x20lev);\x0a\x0a\x20\x20\x20\x20return\x20oneDimensionInterpolation(coefficient.y,\x20b0,\x20b1,\x20b2,\x20b3);\x0a}\x0a\x0avec3\x20bicubic(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20https://en.wikipedia.org/wiki/Bicubic_interpolation#Bicubic_convolution_algorithm\x0a\x20\x20\x20\x20float\x20u\x20=\x20interpolateOneTexture(U,\x20lonLatLev);\x0a\x20\x20\x20\x20float\x20v\x20=\x20interpolateOneTexture(V,\x20lonLatLev);\x0a\x20\x20\x20\x20float\x20w\x20=\x200.0;\x0a\x20\x20\x20\x20return\x20vec3(u,\x20v,\x20w);\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20texture\x20coordinate\x20must\x20be\x20normalized\x0a\x20\x20\x20\x20vec3\x20lonLatLev\x20=\x20texture(currentParticlesPosition,\x20v_textureCoordinates).rgb;\x0a\x20\x20\x20\x20vec3\x20windVector\x20=\x20bicubic(lonLatLev);\x0a\x20\x20\x20\x20out_FragColor\x20=\x20vec4(windVector,\x200.0);\x0a}\x0a',updateSpeed_frag=_0x19f4f9(0x93),updatePosition_frag='uniform\x20sampler2D\x20currentParticlesPosition;\x20//\x20(lon,\x20lat,\x20lev)\x0auniform\x20sampler2D\x20currentParticlesSpeed;\x20//\x20(u,\x20v,\x20w,\x20normalization)\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0avec2\x20lengthOfLonLat(vec3\x20lonLatLev)\x20{\x0a\x20\x20\x20\x20//\x20unit\x20conversion:\x20meters\x20->\x20longitude\x20latitude\x20degrees\x0a\x20\x20\x20\x20//\x20see\x20https://en.wikipedia.org/wiki/Geographic_coordinate_system#Length_of_a_degree\x20for\x20detail\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20the\x20length\x20of\x20a\x20degree\x20of\x20latitude\x20and\x20longitude\x20in\x20meters\x0a\x20\x20\x20\x20float\x20latitude\x20=\x20radians(lonLatLev.y);\x0a\x0a\x20\x20\x20\x20float\x20term1\x20=\x20111132.92;\x0a\x20\x20\x20\x20float\x20term2\x20=\x20559.82\x20*\x20cos(2.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20term3\x20=\x201.175\x20*\x20cos(4.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20term4\x20=\x200.0023\x20*\x20cos(6.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20latLength\x20=\x20term1\x20-\x20term2\x20+\x20term3\x20-\x20term4;\x0a\x0a\x20\x20\x20\x20float\x20term5\x20=\x20111412.84\x20*\x20cos(latitude);\x0a\x20\x20\x20\x20float\x20term6\x20=\x2093.5\x20*\x20cos(3.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20term7\x20=\x200.118\x20*\x20cos(5.0\x20*\x20latitude);\x0a\x20\x20\x20\x20float\x20longLength\x20=\x20term5\x20-\x20term6\x20+\x20term7;\x0a\x0a\x20\x20\x20\x20return\x20vec2(longLength,\x20latLength);\x0a}\x0a\x0avoid\x20updatePosition(vec3\x20lonLatLev,\x20vec3\x20speed)\x20{\x0a\x20\x20\x20\x20vec2\x20lonLatLength\x20=\x20lengthOfLonLat(lonLatLev);\x0a\x20\x20\x20\x20float\x20u\x20=\x20speed.x\x20/\x20lonLatLength.x;\x0a\x20\x20\x20\x20float\x20v\x20=\x20speed.y\x20/\x20lonLatLength.y;\x0a\x20\x20\x20\x20float\x20w\x20=\x200.0;\x0a\x20\x20\x20\x20vec3\x20windVectorInLonLatLev\x20=\x20vec3(u,\x20v,\x20w);\x0a\x0a\x20\x20\x20\x20vec3\x20nextParticle\x20=\x20lonLatLev\x20+\x20windVectorInLonLatLev;\x0a\x0a\x20\x20\x20\x20out_FragColor\x20=\x20vec4(nextParticle,\x200.0);\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20texture\x20coordinate\x20must\x20be\x20normalized\x0a\x20\x20\x20\x20vec3\x20lonLatLev\x20=\x20texture(currentParticlesPosition,\x20v_textureCoordinates).rgb;\x0a\x20\x20\x20\x20vec3\x20speed\x20=\x20texture(currentParticlesSpeed,\x20v_textureCoordinates).rgb;\x0a\x0a\x20\x20\x20\x20updatePosition(lonLatLev,\x20speed);\x0a}\x0a',postProcessingPosition_frag='uniform\x20sampler2D\x20nextParticlesPosition;\x0auniform\x20sampler2D\x20nextParticlesSpeed;\x20//\x20(u,\x20v,\x20w,\x20normalization)\x0a\x0a//\x20range\x20(min,\x20max)\x0auniform\x20vec2\x20lonRange;\x0auniform\x20vec2\x20latRange;\x0a\x0auniform\x20float\x20randomCoefficient;\x20//\x20use\x20to\x20improve\x20the\x20pseudo-random\x20generator\x0auniform\x20float\x20dropRate;\x20//\x20drop\x20rate\x20is\x20a\x20chance\x20a\x20particle\x20will\x20restart\x20at\x20random\x20position\x20to\x20avoid\x20degeneration\x0auniform\x20float\x20dropRateBump;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0a//\x20pseudo-random\x20generator\x0aconst\x20vec3\x20randomConstants\x20=\x20vec3(12.9898,\x2078.233,\x204375.85453);\x0aconst\x20vec2\x20normalRange\x20=\x20vec2(0.0,\x201.0);\x0afloat\x20rand(vec2\x20seed,\x20vec2\x20range)\x20{\x0a\x20\x20\x20\x20vec2\x20randomSeed\x20=\x20randomCoefficient\x20*\x20seed;\x0a\x20\x20\x20\x20float\x20temp\x20=\x20dot(randomConstants.xy,\x20randomSeed);\x0a\x20\x20\x20\x20temp\x20=\x20fract(sin(temp)\x20*\x20(randomConstants.z\x20+\x20temp));\x0a\x20\x20\x20\x20return\x20temp\x20*\x20(range.y\x20-\x20range.x)\x20+\x20range.x;\x0a}\x0a\x0avec3\x20generateRandomParticle(vec2\x20seed,\x20float\x20lev)\x20{\x0a\x20\x20\x20\x20//\x20ensure\x20the\x20longitude\x20is\x20in\x20[0,\x20360]\x0a\x20\x20\x20\x20float\x20randomLon\x20=\x20mod(rand(seed,\x20lonRange),\x20360.0);\x0a\x20\x20\x20\x20float\x20randomLat\x20=\x20rand(-seed,\x20latRange);\x0a\x0a\x20\x20\x20\x20return\x20vec3(randomLon,\x20randomLat,\x20lev);\x0a}\x0a\x0abool\x20particleOutbound(vec3\x20particle)\x20{\x0a\x20\x20\x20\x20return\x20particle.y\x20<\x20-90.0\x20||\x20particle.y\x20>\x2090.0;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec3\x20nextParticle\x20=\x20texture(nextParticlesPosition,\x20v_textureCoordinates).rgb;\x0a\x20\x20\x20\x20vec4\x20nextSpeed\x20=\x20texture(nextParticlesSpeed,\x20v_textureCoordinates);\x0a\x20\x20\x20\x20float\x20particleDropRate\x20=\x20dropRate\x20+\x20dropRateBump\x20*\x20nextSpeed.a;\x0a\x0a\x20\x20\x20\x20vec2\x20seed1\x20=\x20nextParticle.xy\x20+\x20v_textureCoordinates;\x0a\x20\x20\x20\x20vec2\x20seed2\x20=\x20nextSpeed.xy\x20+\x20v_textureCoordinates;\x0a\x20\x20\x20\x20vec3\x20randomParticle\x20=\x20generateRandomParticle(seed1,\x20nextParticle.z);\x0a\x20\x20\x20\x20float\x20randomNumber\x20=\x20rand(seed2,\x20normalRange);\x0a\x0a\x20\x20\x20\x20if\x20(randomNumber\x20<\x20particleDropRate\x20||\x20particleOutbound(nextParticle))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20vec4(randomParticle,\x201.0);\x20//\x201.0\x20means\x20this\x20is\x20a\x20random\x20particle\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20out_FragColor\x20=\x20vec4(nextParticle,\x200.0);\x0a\x20\x20\x20\x20}\x0a}\x0a',postProcessingSpeed_frag=_0x19f4f9(0x8f);const Cesium$3=mars3d__namespace['Cesium'];class ParticlesComputing{constructor(_0x54229f,_0xdd7a0c,_0x4f809e,_0x4356d4){const _0x78e2a3=_0x19f4f9;this['data']=_0xdd7a0c,this['createWindTextures'](_0x54229f,_0xdd7a0c),this[_0x78e2a3(0xf3)](_0x54229f,_0x4f809e,_0x4356d4),this['createComputingPrimitives'](_0xdd7a0c,_0x4f809e,_0x4356d4);}['createWindTextures'](_0x42907f,_0x464730){const _0x1597f8=_0x19f4f9,_0x3a191b={'context':_0x42907f,'width':_0x464730[_0x1597f8(0x168)]['lon'],'height':_0x464730['dimensions']['lat']*(_0x464730[_0x1597f8(0x168)][_0x1597f8(0x9d)]||0x1),'pixelFormat':Cesium$3['PixelFormat'][_0x1597f8(0xff)],'pixelDatatype':Cesium$3['PixelDatatype'][_0x1597f8(0xf0)],'flipY':![],'sampler':new Cesium$3['Sampler']({'minificationFilter':Cesium$3[_0x1597f8(0xc7)]['NEAREST'],'magnificationFilter':Cesium$3[_0x1597f8(0x14a)]['NEAREST']})};this['windTextures']={'U':Util[_0x1597f8(0x123)](_0x3a191b,_0x464730['U']['array']),'V':Util['createTexture'](_0x3a191b,_0x464730['V']['array'])};}[_0x19f4f9(0xf3)](_0x1f5f1f,_0x4132ad,_0x40a021){const _0x2886e3=_0x19f4f9,_0x2755ab={'context':_0x1f5f1f,'width':_0x4132ad[_0x2886e3(0x91)],'height':_0x4132ad['particlesTextureSize'],'pixelFormat':Cesium$3['PixelFormat']['RGBA'],'pixelDatatype':Cesium$3['PixelDatatype'][_0x2886e3(0xf0)],'flipY':![],'sampler':new Cesium$3[(_0x2886e3(0xa5))]({'minificationFilter':Cesium$3[_0x2886e3(0xc7)][_0x2886e3(0x13b)],'magnificationFilter':Cesium$3['TextureMagnificationFilter']['NEAREST']})},_0x211cf0=this['randomizeParticles'](_0x4132ad['maxParticles'],_0x40a021),_0x3e68fb=new Float32Array(0x4*_0x4132ad[_0x2886e3(0xba)])[_0x2886e3(0xc0)](0x0);this['particlesTextures']={'particlesWind':Util['createTexture'](_0x2755ab),'currentParticlesPosition':Util['createTexture'](_0x2755ab,_0x211cf0),'nextParticlesPosition':Util['createTexture'](_0x2755ab,_0x211cf0),'currentParticlesSpeed':Util['createTexture'](_0x2755ab,_0x3e68fb),'nextParticlesSpeed':Util['createTexture'](_0x2755ab,_0x3e68fb),'postProcessingPosition':Util['createTexture'](_0x2755ab,_0x211cf0),'postProcessingSpeed':Util['createTexture'](_0x2755ab,_0x3e68fb)};}['randomizeParticles'](_0x439171,_0x3e459f){const _0xce97e5=_0x19f4f9,_0x1f46f6=new Float32Array(0x4*_0x439171);for(let _0x9b8f1f=0x0;_0x9b8f1f<_0x439171;_0x9b8f1f++){_0x1f46f6[0x4*_0x9b8f1f]=Cesium$3[_0xce97e5(0x90)]['randomBetween'](_0x3e459f['lonRange']['x'],_0x3e459f['lonRange']['y']),_0x1f46f6[0x4*_0x9b8f1f+0x1]=Cesium$3['Math']['randomBetween'](_0x3e459f['latRange']['x'],_0x3e459f[_0xce97e5(0x15d)]['y']),_0x1f46f6[0x4*_0x9b8f1f+0x2]=Cesium$3[_0xce97e5(0x90)]['randomBetween'](this[_0xce97e5(0x94)]['lev']['min'],this['data'][_0xce97e5(0x9d)]['max']),_0x1f46f6[0x4*_0x9b8f1f+0x3]=0x0;}return _0x1f46f6;}['destroyParticlesTextures'](){const _0x3f9f5a=_0x19f4f9;Object['keys'](this[_0x3f9f5a(0xa9)])['forEach'](_0xf78055=>{const _0x2279ca=_0x3f9f5a;this[_0x2279ca(0xa9)][_0xf78055]['destroy']();});}['createComputingPrimitives'](_0x261b8c,_0x18ab39,_0x35068b){const _0x5e2fd7=_0x19f4f9,_0x13b856=new Cesium$3[(_0x5e2fd7(0x8a))](_0x261b8c['dimensions'][_0x5e2fd7(0x13a)],_0x261b8c[_0x5e2fd7(0x168)]['lat'],_0x261b8c[_0x5e2fd7(0x168)]['lev']),_0xc684c5=new Cesium$3['Cartesian3'](_0x261b8c['lon']['min'],_0x261b8c['lat'][_0x5e2fd7(0xc8)],_0x261b8c['lev']['min']),_0x1c0149=new Cesium$3['Cartesian3'](_0x261b8c[_0x5e2fd7(0x13a)]['max'],_0x261b8c['lat']['max'],_0x261b8c['lev']['max']),_0x5db3ab=new Cesium$3[(_0x5e2fd7(0x8a))]((_0x1c0149['x']-_0xc684c5['x'])/(_0x13b856['x']-0x1),(_0x1c0149['y']-_0xc684c5['y'])/(_0x13b856['y']-0x1),_0x13b856['z']>0x1?(_0x1c0149['z']-_0xc684c5['z'])/(_0x13b856['z']-0x1):0x1),_0x59277d=new Cesium$3[(_0x5e2fd7(0x106))](_0x261b8c['U']['min'],_0x261b8c['U'][_0x5e2fd7(0xf2)]),_0x34bb1c=new Cesium$3['Cartesian2'](_0x261b8c['V'][_0x5e2fd7(0xc8)],_0x261b8c['V']['max']),_0x4e06a3=this;this['primitives']={'getWind':new CustomPrimitive({'commandType':'Compute','uniformMap':{'U':function(){const _0x1011d1=_0x5e2fd7;return _0x4e06a3[_0x1011d1(0x16b)]['U'];},'V':function(){return _0x4e06a3['windTextures']['V'];},'currentParticlesPosition':function(){return _0x4e06a3['particlesTextures']['currentParticlesPosition'];},'dimension':function(){return _0x13b856;},'minimum':function(){return _0xc684c5;},'maximum':function(){return _0x1c0149;},'interval':function(){return _0x5db3ab;}},'fragmentShaderSource':new Cesium$3[(_0x5e2fd7(0x170))]({'sources':[getWind_frag]}),'outputTexture':this['particlesTextures']['particlesWind'],'preExecute':function(){_0x4e06a3['primitives']['getWind']['commandToExecute']['outputTexture']=_0x4e06a3['particlesTextures']['particlesWind'];}}),'updateSpeed':new CustomPrimitive({'commandType':'Compute','uniformMap':{'currentParticlesSpeed':function(){return _0x4e06a3['particlesTextures']['currentParticlesSpeed'];},'particlesWind':function(){return _0x4e06a3['particlesTextures']['particlesWind'];},'uSpeedRange':function(){return _0x59277d;},'vSpeedRange':function(){return _0x34bb1c;},'pixelSize':function(){return _0x35068b['pixelSize'];},'speedFactor':function(){return _0x18ab39['speedFactor'];}},'fragmentShaderSource':new Cesium$3[(_0x5e2fd7(0x170))]({'sources':[updateSpeed_frag]}),'outputTexture':this[_0x5e2fd7(0xa9)]['nextParticlesSpeed'],'preExecute':function(){const _0xd141=_0x5e2fd7,_0x1558cf=_0x4e06a3['particlesTextures']['currentParticlesSpeed'];_0x4e06a3['particlesTextures'][_0xd141(0xd2)]=_0x4e06a3['particlesTextures']['postProcessingSpeed'],_0x4e06a3['particlesTextures'][_0xd141(0xf5)]=_0x1558cf,_0x4e06a3['primitives']['updateSpeed']['commandToExecute']['outputTexture']=_0x4e06a3['particlesTextures'][_0xd141(0x13d)];}}),'updatePosition':new CustomPrimitive({'commandType':'Compute','uniformMap':{'currentParticlesPosition':function(){return _0x4e06a3['particlesTextures']['currentParticlesPosition'];},'currentParticlesSpeed':function(){const _0x1606e4=_0x5e2fd7;return _0x4e06a3[_0x1606e4(0xa9)][_0x1606e4(0xd2)];}},'fragmentShaderSource':new Cesium$3['ShaderSource']({'sources':[updatePosition_frag]}),'outputTexture':this['particlesTextures'][_0x5e2fd7(0x115)],'preExecute':function(){const _0x5523df=_0x5e2fd7,_0x1206cb=_0x4e06a3['particlesTextures']['currentParticlesPosition'];_0x4e06a3[_0x5523df(0xa9)][_0x5523df(0x10d)]=_0x4e06a3['particlesTextures'][_0x5523df(0x104)],_0x4e06a3['particlesTextures'][_0x5523df(0x104)]=_0x1206cb,_0x4e06a3['primitives']['updatePosition']['commandToExecute']['outputTexture']=_0x4e06a3['particlesTextures']['nextParticlesPosition'];}}),'postProcessingPosition':new CustomPrimitive({'commandType':'Compute','uniformMap':{'nextParticlesPosition':function(){return _0x4e06a3['particlesTextures']['nextParticlesPosition'];},'nextParticlesSpeed':function(){const _0x2a9b34=_0x5e2fd7;return _0x4e06a3['particlesTextures'][_0x2a9b34(0x13d)];},'lonRange':function(){return _0x35068b['lonRange'];},'latRange':function(){return _0x35068b['latRange'];},'randomCoefficient':function(){const _0xd12554=_0x5e2fd7,_0x1c98a3=Math[_0xd12554(0x102)]();return _0x1c98a3;},'dropRate':function(){return _0x18ab39['dropRate'];},'dropRateBump':function(){return _0x18ab39['dropRateBump'];}},'fragmentShaderSource':new Cesium$3['ShaderSource']({'sources':[postProcessingPosition_frag]}),'outputTexture':this['particlesTextures']['postProcessingPosition'],'preExecute':function(){const _0x314f42=_0x5e2fd7;_0x4e06a3['primitives']['postProcessingPosition'][_0x314f42(0x9e)][_0x314f42(0xc9)]=_0x4e06a3['particlesTextures']['postProcessingPosition'];}}),'postProcessingSpeed':new CustomPrimitive({'commandType':_0x5e2fd7(0xd0),'uniformMap':{'postProcessingPosition':function(){return _0x4e06a3['particlesTextures']['postProcessingPosition'];},'nextParticlesSpeed':function(){return _0x4e06a3['particlesTextures']['nextParticlesSpeed'];}},'fragmentShaderSource':new Cesium$3['ShaderSource']({'sources':[postProcessingSpeed_frag]}),'outputTexture':this['particlesTextures']['postProcessingSpeed'],'preExecute':function(){const _0x36e078=_0x5e2fd7;_0x4e06a3['primitives'][_0x36e078(0xf5)]['commandToExecute']['outputTexture']=_0x4e06a3['particlesTextures']['postProcessingSpeed'];}})};}}const Cesium$2=mars3d__namespace['Cesium'];function _0x14b2(_0xa062ae,_0x38608d){const _0x55a282=_0x55a2();return _0x14b2=function(_0x14b2be,_0x1580fe){_0x14b2be=_0x14b2be-0x83;let _0xb4168c=_0x55a282[_0x14b2be];return _0xb4168c;},_0x14b2(_0xa062ae,_0x38608d);}class ParticleSystem{constructor(_0x4bc117,_0xff2396,_0x3ed695,_0x5b3fc0){const _0x2aa02a=_0x19f4f9;this['context']=_0x4bc117,_0xff2396={..._0xff2396},_0xff2396[_0x2aa02a(0x16a)]&&_0xff2396['vdata']&&(_0xff2396[_0x2aa02a(0x168)]={},_0xff2396[_0x2aa02a(0x168)]['lon']=_0xff2396['cols'],_0xff2396['dimensions']['lat']=_0xff2396[_0x2aa02a(0x11b)],_0xff2396['dimensions']['lev']=_0xff2396['lev']||0x1,_0xff2396['lon']={},_0xff2396['lon']['min']=_0xff2396['xmin'],_0xff2396['lon']['max']=_0xff2396[_0x2aa02a(0xec)],_0xff2396[_0x2aa02a(0xa0)]={},_0xff2396[_0x2aa02a(0xa0)]['min']=_0xff2396['ymin'],_0xff2396['lat']['max']=_0xff2396[_0x2aa02a(0x162)],_0xff2396['lev']={},_0xff2396['lev']['min']=_0xff2396['levmin']??0x1,_0xff2396['lev']['max']=_0xff2396['levmax']??0x1,_0xff2396['U']={},_0xff2396['U'][_0x2aa02a(0xe0)]=new Float32Array(_0xff2396[_0x2aa02a(0x16a)]),_0xff2396['U']['min']=_0xff2396[_0x2aa02a(0x14f)]??Math[_0x2aa02a(0xc8)](..._0xff2396['udata']),_0xff2396['U']['max']=_0xff2396['umax']??Math[_0x2aa02a(0xf2)](..._0xff2396['udata']),_0xff2396['V']={},_0xff2396['V']['array']=new Float32Array(_0xff2396[_0x2aa02a(0x105)]),_0xff2396['V']['min']=_0xff2396['vmin']??Math['min'](..._0xff2396[_0x2aa02a(0x105)]),_0xff2396['V']['max']=_0xff2396[_0x2aa02a(0xd3)]??Math['max'](..._0xff2396[_0x2aa02a(0x105)])),this['data']=_0xff2396,this[_0x2aa02a(0xa6)]=_0x3ed695,this['viewerParameters']=_0x5b3fc0,this['particlesComputing']=new ParticlesComputing(this['context'],this['data'],this['options'],this['viewerParameters']),this[_0x2aa02a(0x140)]=new ParticlesRendering(this['context'],this['data'],this['options'],this[_0x2aa02a(0xa8)],this[_0x2aa02a(0xa4)]);}['canvasResize'](_0x48e916){const _0x6cacbc=_0x19f4f9;this['particlesComputing']['destroyParticlesTextures'](),Object[_0x6cacbc(0xc3)](this['particlesComputing']['windTextures'])['forEach'](_0x1af2a7=>{const _0xe9b7b8=_0x6cacbc;this['particlesComputing']['windTextures'][_0x1af2a7][_0xe9b7b8(0xc5)]();}),this[_0x6cacbc(0x140)]['textures'][_0x6cacbc(0xd9)]['destroy'](),Object['keys'](this['particlesRendering']['framebuffers'])['forEach'](_0xd4b801=>{this['particlesRendering']['framebuffers'][_0xd4b801]['destroy']();}),this['context']=_0x48e916,this['particlesComputing']=new ParticlesComputing(this['context'],this['data'],this[_0x6cacbc(0xa6)],this['viewerParameters']),this[_0x6cacbc(0x140)]=new ParticlesRendering(this['context'],this[_0x6cacbc(0x94)],this['options'],this[_0x6cacbc(0xa8)],this['particlesComputing']);}['clearFramebuffers'](){const _0xf2a8d4=_0x19f4f9,_0x478f16=new Cesium$2['ClearCommand']({'color':new Cesium$2['Color'](0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':undefined,'pass':Cesium$2['Pass'][_0xf2a8d4(0xab)]});Object['keys'](this['particlesRendering']['framebuffers'])['forEach'](_0x2754c1=>{const _0x296849=_0xf2a8d4;_0x478f16[_0x296849(0x138)]=this['particlesRendering']['framebuffers'][_0x2754c1],_0x478f16['execute'](this['context']);});}[_0x19f4f9(0xea)](_0x4f4d73){const _0x57ec3b=_0x19f4f9;this[_0x57ec3b(0xbf)](),this['particlesComputing']['destroyParticlesTextures'](),this[_0x57ec3b(0xa4)]['createParticlesTextures'](this['context'],this['options'],this['viewerParameters']);if(_0x4f4d73){const _0x5588ec=this['particlesRendering']['createSegmentsGeometry'](this['options']);this[_0x57ec3b(0x140)]['primitives'][_0x57ec3b(0x159)]['geometry']=_0x5588ec;const _0x35e93c=Cesium$2[_0x57ec3b(0xce)]['fromGeometry']({'context':this[_0x57ec3b(0x10f)],'geometry':_0x5588ec,'attributeLocations':this['particlesRendering'][_0x57ec3b(0x9c)][_0x57ec3b(0x159)][_0x57ec3b(0x8c)],'bufferUsage':Cesium$2['BufferUsage']['STATIC_DRAW']});this['particlesRendering']['primitives']['segments'][_0x57ec3b(0x9e)]['vertexArray']=_0x35e93c;}}['setOptions'](_0x36500c){const _0x59562b=_0x19f4f9;let _0x987ce8=![];this['options'][_0x59562b(0xba)]!==_0x36500c[_0x59562b(0xba)]&&(_0x987ce8=!![]),Object['keys'](_0x36500c)['forEach'](_0xc6e628=>{this['options'][_0xc6e628]=_0x36500c[_0xc6e628];}),this[_0x59562b(0xea)](_0x987ce8);}[_0x19f4f9(0x11d)](_0x13dd2f){const _0x1183fb=_0x19f4f9;Object['keys'](_0x13dd2f)['forEach'](_0x427927=>{this['viewerParameters'][_0x427927]=_0x13dd2f[_0x427927];}),this[_0x1183fb(0xea)](![]);}['destroy'](){const _0x4c737f=_0x19f4f9;clearTimeout(this['canrefresh']),this[_0x4c737f(0xa4)]['destroyParticlesTextures'](),Object['keys'](this[_0x4c737f(0xa4)]['windTextures'])['forEach'](_0x415349=>{this['particlesComputing']['windTextures'][_0x415349]['destroy']();}),this['particlesRendering'][_0x4c737f(0xfb)]['colorTable']['destroy'](),Object[_0x4c737f(0xc3)](this['particlesRendering']['framebuffers'])['forEach'](_0x499b56=>{this['particlesRendering']['framebuffers'][_0x499b56]['destroy']();});for(const _0x7411a in this){delete this[_0x7411a];}}}const Cesium$1=mars3d__namespace['Cesium'],BaseLayer$1=mars3d__namespace['layer']['BaseLayer'],DEF_OPTIONS={'particlesNumber':0x1000,'fixedHeight':0x0,'fadeOpacity':0.996,'dropRate':0.003,'dropRateBump':0.01,'speedFactor':0.5,'lineWidth':0x2,'colors':[_0x19f4f9(0xed)]};class WindLayer extends BaseLayer$1{constructor(_0x469764={}){_0x469764={...DEF_OPTIONS,..._0x469764},super(_0x469764),this['_setOptionsHook'](_0x469764);}get[_0x19f4f9(0x95)](){return this['primitives'];}get['data'](){return this['_data'];}set[_0x19f4f9(0x94)](_0x5479a5){this['setData'](_0x5479a5);}get['colors'](){const _0x2f4562=_0x19f4f9;return this['options'][_0x2f4562(0x85)];}set['colors'](_0x33accc){const _0x330299=_0x19f4f9;this['options'][_0x330299(0x85)]=_0x33accc,this['particleSystem']&&this[_0x330299(0xa3)]['setOptions']({'colors':_0x33accc}),this[_0x330299(0x10a)]();}['_mountedHook'](){}[_0x19f4f9(0xaf)](){const _0x5b38a4=_0x19f4f9;this[_0x5b38a4(0x15e)]=this['_map']['scene'],this['camera']=this['_map']['camera'],this['primitives']=new Cesium$1['PrimitiveCollection'](),this[_0x5b38a4(0x15c)]['scene']['primitives']['add'](this['primitives']),this[_0x5b38a4(0xa8)]={'lonRange':new Cesium$1['Cartesian2'](),'latRange':new Cesium$1['Cartesian2'](),'pixelSize':0x0},this[_0x5b38a4(0x126)]=new Cesium$1['BoundingSphere'](Cesium$1[_0x5b38a4(0x8a)]['ZERO'],0.99*0x615299),this[_0x5b38a4(0x14d)](),window['addEventListener']('resize',this['resize'][_0x5b38a4(0x15f)](this),![]),this['mouse_down']=![],this['mouse_move']=![],this[_0x5b38a4(0x15c)]['on'](mars3d__namespace[_0x5b38a4(0x98)]['wheel'],this[_0x5b38a4(0xd7)],this),this['_map']['on'](mars3d__namespace[_0x5b38a4(0x98)]['mouseDown'],this['_onMouseDownEvent'],this),this[_0x5b38a4(0x15c)]['on'](mars3d__namespace['EventType'][_0x5b38a4(0x148)],this['_onMouseUpEvent'],this),this[_0x5b38a4(0x15c)]['on'](mars3d__namespace[_0x5b38a4(0x98)][_0x5b38a4(0xd1)],this[_0x5b38a4(0xf9)],this),this['_data']&&this[_0x5b38a4(0xdd)](this['_data']);}['_removedHook'](){const _0xabdf09=_0x19f4f9;window[_0xabdf09(0x103)]('resize',this[_0xabdf09(0x10a)]),this[_0xabdf09(0x15c)][_0xabdf09(0xde)](mars3d__namespace['EventType']['preRender'],this['_onMap_preRenderEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['wheel'],this[_0xabdf09(0xd7)],this),this['_map']['off'](mars3d__namespace['EventType'][_0xabdf09(0xe4)],this[_0xabdf09(0xa2)],this),this['_map']['off'](mars3d__namespace['EventType']['mouseUp'],this['_onMouseUpEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['mouseMove'],this['_onMouseMoveEvent'],this),this['primitives']['removeAll'](),this['_map']['scene'][_0xabdf09(0x9c)]['remove'](this['primitives']);}['resize'](){const _0x516086=_0x19f4f9;if(!this['show']||!this['particleSystem'])return;this['primitives']['show']=![],this['primitives']['removeAll'](),this['_map'][_0x516086(0xd4)](mars3d__namespace['EventType']['preRender'],this['_onMap_preRenderEvent'],this);}['_onMap_preRenderEvent'](_0x459a1e){const _0x126f4b=_0x19f4f9;this[_0x126f4b(0xa3)]['canvasResize'](this['scene']['context']),this['addPrimitives'](),this[_0x126f4b(0x9c)]['show']=!![];}['_onMapWhellEvent'](_0x4aa89c){clearTimeout(this['refreshTimer']);if(!this['show']||!this['particleSystem'])return;this['primitives']['show']=![],this['refreshTimer']=setTimeout(()=>{if(!this['show'])return;this['redraw']();},0xc8);}['_onMouseDownEvent'](_0x301203){this['mouse_down']=!![];}[_0x19f4f9(0xf9)](_0x2c366d){const _0xc13829=_0x19f4f9;if(!this['show']||!this['particleSystem'])return;this[_0xc13829(0x111)]&&(this['primitives'][_0xc13829(0x137)]=![],this['mouse_move']=!![]);}[_0x19f4f9(0x136)](_0x241791){const _0x45d23d=_0x19f4f9;if(!this['show']||!this[_0x45d23d(0xa3)])return;this['mouse_down']&&this['mouse_move']&&this[_0x45d23d(0xa7)](),this[_0x45d23d(0x9c)][_0x45d23d(0x137)]=!![],this['mouse_down']=![],this[_0x45d23d(0x14b)]=![];}[_0x19f4f9(0xa7)](){const _0x15be6e=_0x19f4f9;if(!this['_map']||!this['show'])return;this['updateViewerParameters'](),this[_0x15be6e(0xa3)]['applyViewerParameters'](this[_0x15be6e(0xa8)]),this['primitives']['show']=!![];}[_0x19f4f9(0xdd)](_0x2ab967){const _0x393d84=_0x19f4f9;this['_data']=_0x2ab967,this['particleSystem']&&this['particleSystem']['destroy'](),this['particleSystem']=new ParticleSystem(this['scene']['context'],_0x2ab967,this[_0x393d84(0x172)](),this[_0x393d84(0xa8)]),this['addPrimitives']();}['_setOptionsHook'](_0x485675,_0x4bd2cd){const _0x5eacda=_0x19f4f9;if(_0x485675)for(const _0x3aa4e4 in _0x485675){this[_0x3aa4e4]=_0x485675[_0x3aa4e4];}this['particleSystem']&&this[_0x5eacda(0xa3)][_0x5eacda(0x16d)](this['getOptions']());}['getOptions'](){const _0x241022=_0x19f4f9,_0x584565=Math[_0x241022(0x122)](Math['sqrt'](this['particlesNumber']));return this['particlesNumber']=_0x584565*_0x584565,{'particlesTextureSize':_0x584565,'maxParticles':this['particlesNumber'],'particleHeight':this['fixedHeight'],'fadeOpacity':this[_0x241022(0x130)],'dropRate':this['dropRate'],'dropRateBump':this['dropRateBump'],'speedFactor':this['speedFactor'],'lineWidth':this['lineWidth'],'colors':this['colors']};}['addPrimitives'](){const _0x221267=_0x19f4f9;this['primitives']['add'](this['particleSystem']['particlesComputing'][_0x221267(0x9c)]['getWind']),this['primitives']['add'](this['particleSystem']['particlesComputing']['primitives']['updateSpeed']),this['primitives'][_0x221267(0x12e)](this['particleSystem']['particlesComputing']['primitives']['updatePosition']),this['primitives']['add'](this['particleSystem']['particlesComputing'][_0x221267(0x9c)][_0x221267(0x104)]),this['primitives'][_0x221267(0x12e)](this['particleSystem']['particlesComputing']['primitives']['postProcessingSpeed']),this['primitives']['add'](this['particleSystem'][_0x221267(0x140)]['primitives'][_0x221267(0x159)]),this['primitives']['add'](this[_0x221267(0xa3)]['particlesRendering']['primitives']['trails']),this['primitives'][_0x221267(0x12e)](this[_0x221267(0xa3)]['particlesRendering']['primitives']['screen']);}['updateViewerParameters'](){const _0xdeec07=_0x19f4f9;let _0x40a3f0=this['camera']['computeViewRectangle'](this[_0xdeec07(0x15e)][_0xdeec07(0x8b)][_0xdeec07(0xb7)]);if(!_0x40a3f0){const _0x2fc09e=this['_map']['getExtent']();_0x40a3f0=Cesium$1['Rectangle'][_0xdeec07(0xf1)](_0x2fc09e['xmin'],_0x2fc09e['ymin'],_0x2fc09e['xmax'],_0x2fc09e['ymax']);}const _0x4ce5b0=Util[_0xdeec07(0x11e)](_0x40a3f0);this[_0xdeec07(0xa8)]['lonRange']['x']=_0x4ce5b0['lon']['min'],this['viewerParameters'][_0xdeec07(0x155)]['y']=_0x4ce5b0[_0xdeec07(0x13a)]['max'],this[_0xdeec07(0xa8)]['latRange']['x']=_0x4ce5b0['lat']['min'],this[_0xdeec07(0xa8)]['latRange']['y']=_0x4ce5b0['lat']['max'];const _0x4c5dc0=this[_0xdeec07(0xee)]['getPixelSize'](this['globeBoundingSphere'],this['scene']['drawingBufferWidth'],this['scene']['drawingBufferHeight']);_0x4c5dc0>0x0&&(this[_0xdeec07(0xa8)]['pixelSize']=_0x4c5dc0);}}mars3d__namespace['LayerUtil']['register'](_0x19f4f9(0x129),WindLayer),mars3d__namespace[_0x19f4f9(0x95)]['WindLayer']=WindLayer;class CanvasParticle{constructor(){const _0x30d441=_0x19f4f9;this['lng']=null,this['lat']=null,this['tlng']=null,this['tlat']=null,this[_0x30d441(0xb5)]=null;}['destroy'](){for(const _0x202201 in this){delete this[_0x202201];}}}class CanvasWindField{constructor(_0x13f7eb){this['setOptions'](_0x13f7eb);}get[_0x19f4f9(0x10b)](){const _0x51d7b5=_0x19f4f9;return this[_0x51d7b5(0x9b)];}set['speedRate'](_0x26df05){const _0x34ac61=_0x19f4f9;this['_speedRate']=(0x64-(_0x26df05>0x63?0x63:_0x26df05))*0x64,this['_calc_speedRate']=[(this['xmax']-this[_0x34ac61(0xd8)])/this[_0x34ac61(0x9b)],(this['ymax']-this[_0x34ac61(0xb2)])/this['_speedRate']];}get[_0x19f4f9(0xc1)](){return this['_maxAge'];}set[_0x19f4f9(0xc1)](_0x4d603d){this['_maxAge']=_0x4d603d;}['setOptions'](_0x2edd6e){this['options']=_0x2edd6e,this['maxAge']=_0x2edd6e['maxAge']||0x78,this['speedRate']=_0x2edd6e['speedRate']||0x32,this['particles']=[];const _0x5b2274=_0x2edd6e['particlesNumber']||0x1000;for(let _0x1e4fa3=0x0;_0x1e4fa3<_0x5b2274;_0x1e4fa3++){const _0x247a76=this['_randomParticle'](new CanvasParticle());this['particles']['push'](_0x247a76);}}['setDate'](_0x507ae6){const _0x492a37=_0x19f4f9;this[_0x492a37(0x11b)]=_0x507ae6['rows'],this[_0x492a37(0x139)]=_0x507ae6['cols'],this['xmin']=_0x507ae6[_0x492a37(0xd8)],this['xmax']=_0x507ae6['xmax'],this['ymin']=_0x507ae6['ymin'],this['ymax']=_0x507ae6[_0x492a37(0x162)],this['grid']=[];const _0x5bbf32=_0x507ae6[_0x492a37(0x16a)],_0x24bead=_0x507ae6['vdata'];let _0x41373f=![];_0x5bbf32['length']===this[_0x492a37(0x11b)]&&_0x5bbf32[0x0]['length']===this['cols']&&(_0x41373f=!![]);let _0x5d6008=0x0,_0x5f4ea2=null,_0xb9dda7=null;for(let _0x4ad367=0x0;_0x4ad367<this['rows'];_0x4ad367++){_0x5f4ea2=[];for(let _0xc26e21=0x0;_0xc26e21<this['cols'];_0xc26e21++,_0x5d6008++){_0x41373f?_0xb9dda7=this[_0x492a37(0x134)](_0x5bbf32[_0x4ad367][_0xc26e21],_0x24bead[_0x4ad367][_0xc26e21]):_0xb9dda7=this['_calcUV'](_0x5bbf32[_0x5d6008],_0x24bead[_0x5d6008]),_0x5f4ea2['push'](_0xb9dda7);}this['grid']['push'](_0x5f4ea2);}this[_0x492a37(0xa6)]['reverseY']&&this[_0x492a37(0xd6)][_0x492a37(0x84)]();}['clear'](){const _0x4d62eb=_0x19f4f9;delete this['rows'],delete this['cols'],delete this[_0x4d62eb(0xd8)],delete this['xmax'],delete this[_0x4d62eb(0xb2)],delete this['ymax'],delete this['grid'],delete this['particles'];}['toGridXY'](_0x499030,_0x5c097d){const _0x492905=_0x19f4f9,_0x2b9265=(_0x499030-this[_0x492905(0xd8)])/(this['xmax']-this['xmin'])*(this['cols']-0x1),_0xfa728c=(this['ymax']-_0x5c097d)/(this['ymax']-this['ymin'])*(this['rows']-0x1);return[_0x2b9265,_0xfa728c];}['getUVByXY'](_0x2f1cb9,_0x257605){const _0x592ed7=_0x19f4f9;if(_0x2f1cb9<0x0||_0x2f1cb9>=this[_0x592ed7(0x139)]||_0x257605>=this['rows'])return[0x0,0x0,0x0];const _0x6ce094=Math['floor'](_0x2f1cb9),_0x6aa0ad=Math['floor'](_0x257605);if(_0x6ce094===_0x2f1cb9&&_0x6aa0ad===_0x257605)return this['grid'][_0x257605][_0x2f1cb9];const _0x4a4b9b=_0x6ce094+0x1,_0x27b1f3=_0x6aa0ad+0x1,_0x5ea464=this[_0x592ed7(0x96)](_0x6ce094,_0x6aa0ad),_0x53a14f=this['getUVByXY'](_0x4a4b9b,_0x6aa0ad),_0x137403=this['getUVByXY'](_0x6ce094,_0x27b1f3),_0x157c14=this[_0x592ed7(0x96)](_0x4a4b9b,_0x27b1f3);let _0x49225b=null;try{_0x49225b=this[_0x592ed7(0xbc)](_0x2f1cb9-_0x6ce094,_0x257605-_0x6aa0ad,_0x5ea464,_0x53a14f,_0x137403,_0x157c14);}catch(_0x3d4e3f){console['log'](_0x2f1cb9,_0x257605);}return _0x49225b;}[_0x19f4f9(0xbc)](_0x2994e6,_0xdb6839,_0x55295a,_0x18bb9b,_0x149732,_0x5741aa){const _0x1fdc04=_0x19f4f9,_0x39158d=0x1-_0x2994e6,_0x2cfd9f=0x1-_0xdb6839,_0x365d95=_0x39158d*_0x2cfd9f,_0x45eacc=_0x2994e6*_0x2cfd9f,_0x3fe938=_0x39158d*_0xdb6839,_0x58e8d1=_0x2994e6*_0xdb6839,_0x567ffc=_0x55295a[0x0]*_0x365d95+_0x18bb9b[0x0]*_0x45eacc+_0x149732[0x0]*_0x3fe938+_0x5741aa[0x0]*_0x58e8d1,_0x1979ff=_0x55295a[0x1]*_0x365d95+_0x18bb9b[0x1]*_0x45eacc+_0x149732[0x1]*_0x3fe938+_0x5741aa[0x1]*_0x58e8d1;return this[_0x1fdc04(0x134)](_0x567ffc,_0x1979ff);}[_0x19f4f9(0x134)](_0x5470c9,_0x434f65){return[+_0x5470c9,+_0x434f65,Math['sqrt'](_0x5470c9*_0x5470c9+_0x434f65*_0x434f65)];}['getUVByPoint'](_0xacd70,_0x48414d){const _0x2409ad=_0x19f4f9;if(!this[_0x2409ad(0xae)](_0xacd70,_0x48414d))return null;const _0x1f9e92=this[_0x2409ad(0xd5)](_0xacd70,_0x48414d),_0x1e7992=this['getUVByXY'](_0x1f9e92[0x0],_0x1f9e92[0x1]);return _0x1e7992;}['isInExtent'](_0x5d3c64,_0x3bd20c){const _0x118fdc=_0x19f4f9;return _0x5d3c64>=this['xmin']&&_0x5d3c64<=this[_0x118fdc(0xec)]&&_0x3bd20c>=this['ymin']&&_0x3bd20c<=this['ymax']?!![]:![];}['getRandomLatLng'](){const _0xcb6b24=fRandomByfloat(this['xmin'],this['xmax']),_0x5d7b05=fRandomByfloat(this['ymin'],this['ymax']);return{'lat':_0x5d7b05,'lng':_0xcb6b24};}['getParticles'](){const _0x36d03a=_0x19f4f9;let _0x10308d,_0x4482fd,_0x557900;for(let _0x3c02b4=0x0,_0x19a29f=this['particles']['length'];_0x3c02b4<_0x19a29f;_0x3c02b4++){let _0x4ca650=this['particles'][_0x3c02b4];_0x4ca650['age']<=0x0&&(_0x4ca650=this[_0x36d03a(0xdf)](_0x4ca650));if(_0x4ca650['age']>0x0){const _0x20d4df=_0x4ca650['tlng'],_0x3bf8ed=_0x4ca650['tlat'];_0x557900=this[_0x36d03a(0xe1)](_0x20d4df,_0x3bf8ed),_0x557900?(_0x10308d=_0x20d4df+this['_calc_speedRate'][0x0]*_0x557900[0x0],_0x4482fd=_0x3bf8ed+this['_calc_speedRate'][0x1]*_0x557900[0x1],_0x4ca650['lng']=_0x20d4df,_0x4ca650['lat']=_0x3bf8ed,_0x4ca650[_0x36d03a(0xc4)]=_0x10308d,_0x4ca650[_0x36d03a(0x157)]=_0x4482fd,_0x4ca650['age']--):_0x4ca650[_0x36d03a(0xb5)]=0x0;}}return this['particles'];}['_randomParticle'](_0x6774cf){const _0x6fd24=_0x19f4f9;let _0x206b1f,_0x19baf6;for(let _0x23b10e=0x0;_0x23b10e<0x1e;_0x23b10e++){_0x206b1f=this['getRandomLatLng'](),_0x19baf6=this['getUVByPoint'](_0x206b1f['lng'],_0x206b1f['lat']);if(_0x19baf6&&_0x19baf6[0x2]>0x0)break;}if(!_0x19baf6)return _0x6774cf;const _0x334311=_0x206b1f[_0x6fd24(0x152)]+this['_calc_speedRate'][0x0]*_0x19baf6[0x0],_0x4baf18=_0x206b1f[_0x6fd24(0xa0)]+this['_calc_speedRate'][0x1]*_0x19baf6[0x1];return _0x6774cf['lng']=_0x206b1f['lng'],_0x6774cf['lat']=_0x206b1f[_0x6fd24(0xa0)],_0x6774cf[_0x6fd24(0xc4)]=_0x334311,_0x6774cf['tlat']=_0x4baf18,_0x6774cf[_0x6fd24(0xb5)]=Math['round'](Math['random']()*this[_0x6fd24(0xc1)]),_0x6774cf;}['destroy'](){for(const _0x9366f5 in this){delete this[_0x9366f5];}}}function fRandomByfloat(_0x38d8b5,_0x21a22e){return _0x38d8b5+Math['random']()*(_0x21a22e-_0x38d8b5);}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class CanvasWindLayer extends BaseLayer{constructor(_0x522434={}){super(_0x522434),this['_setOptionsHook'](_0x522434),this['canvas']=null;}['_setOptionsHook'](_0x189566,_0x2ac194){const _0x27abd5=_0x19f4f9;this['frameTime']=0x3e8/(_0x189566['frameRate']||0xa),this['_pointerEvents']=this['options'][_0x27abd5(0x12d)]??![],this[_0x27abd5(0xcd)]=_0x189566['color']||'#ffffff',this['lineWidth']=_0x189566['lineWidth']||0x1,this['fixedHeight']=_0x189566[_0x27abd5(0xbd)]??0x0,this[_0x27abd5(0x118)]=_0x189566['reverseY']??![],this['windField']&&this['windField']['setOptions'](_0x189566);}get['layer'](){return this['canvas'];}get[_0x19f4f9(0xcf)](){const _0x547af1=_0x19f4f9;return this['_map']['scene']['canvas'][_0x547af1(0x113)];}get['canvasHeight'](){return this['_map']['scene']['canvas']['clientHeight'];}get[_0x19f4f9(0x12d)](){return this['_pointerEvents'];}set['pointerEvents'](_0x17fdb9){const _0x21211c=_0x19f4f9;this['_pointerEvents']=_0x17fdb9;if(!this['canvas'])return;_0x17fdb9?this[_0x21211c(0x11f)]['style']['pointer-events']='all':this['canvas']['style']['pointer-events']='none';}get[_0x19f4f9(0x127)](){const _0x2e72f6=_0x19f4f9;return this['options'][_0x2e72f6(0x127)];}set['particlesNumber'](_0x2949c7){const _0x33e2d2=_0x19f4f9;this['options']['particlesNumber']=_0x2949c7,clearTimeout(this[_0x33e2d2(0x154)]),this['_canrefresh']=setTimeout(()=>{const _0x4187ff=_0x33e2d2;this[_0x4187ff(0xa7)]();},0x1f4);}get['speedRate'](){return this['options']['speedRate'];}set[_0x19f4f9(0x10b)](_0x373634){const _0x95393a=_0x19f4f9;this['options']['speedRate']=_0x373634,this[_0x95393a(0xdb)]&&(this['windField']['speedRate']=_0x373634);}get['maxAge'](){return this['options']['maxAge'];}set[_0x19f4f9(0xc1)](_0x27ccf5){const _0x1e5484=_0x19f4f9;this[_0x1e5484(0xa6)]['maxAge']=_0x27ccf5,this['windField']&&(this[_0x1e5484(0xdb)]['maxAge']=_0x27ccf5);}get[_0x19f4f9(0x94)](){return this['windData'];}set['data'](_0xdfddc3){this['setData'](_0xdfddc3);}['_showHook'](_0x6f1fbd){const _0x2eed9f=_0x19f4f9;_0x6f1fbd?this[_0x2eed9f(0xaf)]():(this['windData']&&(this['options']['data']=this[_0x2eed9f(0xad)]),this['_removedHook']());}['_mountedHook'](){this['options']['worker']?this['initWorker']():this['windField']=new CanvasWindField(this['options']);}['_addedHook'](){const _0x96b1e=_0x19f4f9;this['canvas']=this[_0x96b1e(0x169)](),this['canvasContext']=this['canvas'][_0x96b1e(0xc2)]('2d',{'willReadFrequently':!![]}),this[_0x96b1e(0x125)](),this['options']['data']&&this['setData'](this['options'][_0x96b1e(0x94)]);}['_removedHook'](){const _0x27cc5e=_0x19f4f9;this['clear'](),this[_0x27cc5e(0xa1)](),this['canvas']&&(this['_map']['container'][_0x27cc5e(0x8d)](this['canvas']),delete this[_0x27cc5e(0x11f)]);}[_0x19f4f9(0x169)](){const _0x1b1f89=_0x19f4f9,_0x3e913a=mars3d__namespace['DomUtil']['create']('canvas','mars3d-canvasWind',this['_map']['container']);return _0x3e913a['style']['position']='absolute',_0x3e913a['style']['top']='0px',_0x3e913a[_0x1b1f89(0x132)][_0x1b1f89(0x99)]=_0x1b1f89(0x141),_0x3e913a['style']['width']=this['_map']['scene']['canvas']['clientWidth']+'px',_0x3e913a[_0x1b1f89(0x132)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x3e913a['style'][_0x1b1f89(0x12d)]=this['_pointerEvents']?_0x1b1f89(0x12f):'none',_0x3e913a['style']['zIndex']=this['options']['zIndex']??0x9,_0x3e913a[_0x1b1f89(0xb0)]=this['_map']['scene']['canvas']['clientWidth'],_0x3e913a['height']=this[_0x1b1f89(0x15c)]['scene'][_0x1b1f89(0x11f)]['clientHeight'],_0x3e913a;}['resize'](){const _0x595f2b=_0x19f4f9;this['canvas']&&(this['canvas'][_0x595f2b(0x132)][_0x595f2b(0xb0)]=this['_map']['scene']['canvas']['clientWidth']+'px',this[_0x595f2b(0x11f)]['style'][_0x595f2b(0x167)]=this['_map']['scene']['canvas'][_0x595f2b(0xeb)]+'px',this['canvas']['width']=this['_map'][_0x595f2b(0x15e)]['canvas']['clientWidth'],this['canvas']['height']=this['_map'][_0x595f2b(0x15e)]['canvas']['clientHeight']);}['bindEvent'](){const _0x364f59=_0x19f4f9,_0x390724=this;let _0x1647be=Date['now']();(function _0xf8f4e(){const _0x32ae33=_0x14b2;_0x390724['animateFrame']=window['requestAnimationFrame'](_0xf8f4e);if(_0x390724['show']&&_0x390724['windField']){const _0x142566=Date[_0x32ae33(0xb9)](),_0x2a2706=_0x142566-_0x1647be;_0x2a2706>_0x390724['frameTime']&&(_0x1647be=_0x142566-_0x2a2706%_0x390724['frameTime'],_0x390724[_0x32ae33(0x117)]());}}(),window['addEventListener'](_0x364f59(0x10a),this['resize']['bind'](this),![]),this[_0x364f59(0x111)]=![],this[_0x364f59(0x14b)]=![],this['options']['mouseHidden']&&(this['_map']['on'](mars3d__namespace['EventType']['wheel'],this[_0x364f59(0xd7)],this),this['_map']['on'](mars3d__namespace['EventType']['mouseDown'],this['_onMouseDownEvent'],this),this['_map']['on'](mars3d__namespace[_0x364f59(0x98)][_0x364f59(0x148)],this[_0x364f59(0x136)],this)));}['unbindEvent'](){const _0x519ec0=_0x19f4f9;window[_0x519ec0(0x150)](this['animateFrame']),delete this['animateFrame'],window[_0x519ec0(0x103)](_0x519ec0(0x10a),this['resize']),this[_0x519ec0(0xa6)][_0x519ec0(0x9a)]&&(this[_0x519ec0(0x15c)]['off'](mars3d__namespace['EventType']['wheel'],this['_onMapWhellEvent'],this),this[_0x519ec0(0x15c)]['off'](mars3d__namespace[_0x519ec0(0x98)]['mouseDown'],this['_onMouseDownEvent'],this),this[_0x519ec0(0x15c)][_0x519ec0(0xde)](mars3d__namespace['EventType'][_0x519ec0(0x148)],this[_0x519ec0(0x136)],this),this[_0x519ec0(0x15c)]['off'](mars3d__namespace['EventType'][_0x519ec0(0xd1)],this['_onMouseMoveEvent'],this));}[_0x19f4f9(0xd7)](_0x4f7f0a){const _0x51d8f5=_0x19f4f9;clearTimeout(this[_0x51d8f5(0xe5)]);if(!this[_0x51d8f5(0x137)]||!this['canvas'])return;this['canvas']['style']['visibility']='hidden',this['refreshTimer']=setTimeout(()=>{const _0x41a471=_0x51d8f5;if(!this['show'])return;this['redraw'](),this[_0x41a471(0x11f)]['style']['visibility']=_0x41a471(0x107);},0xc8);}['_onMouseDownEvent'](_0x518529){const _0xc2edb7=_0x19f4f9;this['mouse_down']=!![],this[_0xc2edb7(0x15c)]['off'](mars3d__namespace['EventType']['mouseMove'],this['_onMouseMoveEvent'],this),this[_0xc2edb7(0x15c)]['on'](mars3d__namespace['EventType']['mouseMove'],this[_0xc2edb7(0xf9)],this);}['_onMouseMoveEvent'](_0x51aed5){const _0xdffd39=_0x19f4f9;if(!this['show']||!this['canvas'])return;this[_0xdffd39(0x111)]&&(this[_0xdffd39(0x11f)]['style']['visibility']='hidden',this[_0xdffd39(0x14b)]=!![]);}['_onMouseUpEvent'](_0x91d268){const _0x36e873=_0x19f4f9;if(!this['show']||!this[_0x36e873(0x11f)])return;this['_map']['off'](mars3d__namespace['EventType']['mouseMove'],this['_onMouseMoveEvent'],this),this[_0x36e873(0x111)]&&this['mouse_move']&&this['redraw'](),this['canvas']['style']['visibility']='visible',this['mouse_down']=![],this[_0x36e873(0x14b)]=![];}['setData'](_0x47bc1b){const _0x2682b2=_0x19f4f9;this['clear'](),this[_0x2682b2(0xad)]=_0x47bc1b,this[_0x2682b2(0xdb)]['setDate'](_0x47bc1b),this['redraw']();}['redraw'](){const _0x176d10=_0x19f4f9;if(!this[_0x176d10(0x137)])return;this['windField']['setOptions'](this['options']),this['update']();}[_0x19f4f9(0x117)](){const _0x97519f=_0x19f4f9;if(this['_updateIng'])return;this['_updateIng']=!![];if(this['worker'])this['windField']['update']();else{const _0x2c8d0e=this[_0x97519f(0xdb)]['getParticles']();this['_drawLines'](_0x2c8d0e);}this['_updateIng']=![];}['_drawLines'](_0x17d9db){const _0x5e109d=_0x19f4f9;this['canvasContext']['globalCompositeOperation']=_0x5e109d(0xdc),this[_0x5e109d(0x165)][_0x5e109d(0x14e)](0x0,0x0,this['canvasWidth'],this['canvasHeight']),this['canvasContext']['globalCompositeOperation']='lighter',this[_0x5e109d(0x165)]['globalAlpha']=0.9,this['canvasContext']['beginPath'](),this['canvasContext']['lineWidth']=this[_0x5e109d(0x11a)],this[_0x5e109d(0x165)]['strokeStyle']=this[_0x5e109d(0xcd)];const _0x242787=this['_map']['scene'][_0x5e109d(0xfd)]!==Cesium['SceneMode'][_0x5e109d(0x110)],_0x14fb97=this[_0x5e109d(0xcf)]*0.25;for(let _0xfecbf4=0x0,_0x2d911a=_0x17d9db['length'];_0xfecbf4<_0x2d911a;_0xfecbf4++){const _0x1d6371=_0x17d9db[_0xfecbf4],_0x231459=this[_0x5e109d(0x100)](_0x1d6371[_0x5e109d(0x152)],_0x1d6371[_0x5e109d(0xa0)],_0x1d6371),_0x35a3ee=this[_0x5e109d(0x100)](_0x1d6371[_0x5e109d(0xc4)],_0x1d6371['tlat'],_0x1d6371);if(!_0x231459||!_0x35a3ee)continue;if(_0x242787&&Math[_0x5e109d(0xf7)](_0x231459[0x0]-_0x35a3ee[0x0])>=_0x14fb97)continue;this[_0x5e109d(0x165)]['moveTo'](_0x231459[0x0],_0x231459[0x1]),this[_0x5e109d(0x165)]['lineTo'](_0x35a3ee[0x0],_0x35a3ee[0x1]);}this['canvasContext'][_0x5e109d(0x131)]();}['_tomap'](_0x2181eb,_0x1f4881,_0x3f5ac4){const _0x13a48f=_0x19f4f9,_0x2bd393=Cesium['Cartesian3']['fromDegrees'](_0x2181eb,_0x1f4881,this[_0x13a48f(0xbd)]),_0x14d455=this['_map']['scene'];if(_0x14d455['mode']===Cesium['SceneMode']['SCENE3D']){const _0x3fd86a=new Cesium['EllipsoidalOccluder'](_0x14d455[_0x13a48f(0x8b)]['ellipsoid'],_0x14d455['camera']['positionWC']),_0x2cf7f3=_0x3fd86a[_0x13a48f(0x16f)](_0x2bd393);if(!_0x2cf7f3)return _0x3f5ac4['age']=0x0,null;}const _0x422dda=Cesium['SceneTransforms'][_0x13a48f(0x114)](this['_map'][_0x13a48f(0x15e)],_0x2bd393);return _0x422dda?[_0x422dda['x'],_0x422dda['y']]:null;}['clear'](){const _0x17715c=_0x19f4f9;this['windField'][_0x17715c(0xcc)](),delete this['windData'];}[_0x19f4f9(0xef)](){const _0x74939c=_0x19f4f9;this['worker']=new Worker(this['options'][_0x74939c(0x16e)]),this['worker']['onmessage']=_0x1796cb=>{const _0x365255=_0x74939c;this[_0x365255(0xfe)](_0x1796cb['data'][_0x365255(0x88)]),this['_updateIng2']=![];},this['windField']={'init':_0x3820e1=>{const _0x8bb263=_0x74939c;this['worker'][_0x8bb263(0xca)]({'type':'init','options':_0x3820e1});},'setOptions':_0x31c764=>{const _0x5a97a2=_0x74939c;this['worker']['postMessage']({'type':_0x5a97a2(0x16d),'options':_0x31c764});},'setDate':_0x522adc=>{const _0x57493b=_0x74939c;this['worker']['postMessage']({'type':_0x57493b(0x101),'data':_0x522adc});},'update':()=>{const _0x8e7a56=_0x74939c;if(this['_updateIng2'])return;this[_0x8e7a56(0x142)]=!![],this['worker']['postMessage']({'type':_0x8e7a56(0x117)});},'clear':()=>{this['worker']['postMessage']({'type':'clear'});}},this['windField'][_0x74939c(0x97)](this['options']);}}mars3d__namespace['LayerUtil']['register'](_0x19f4f9(0x13c),CanvasWindLayer),mars3d__namespace['layer']['CanvasWindLayer']=CanvasWindLayer,mars3d__namespace['CanvasWindField']=CanvasWindField,mars3d__namespace['WindUtil']=WindUtil,exports['CanvasWindField']=CanvasWindField,exports[_0x19f4f9(0x158)]=CanvasWindLayer,exports['WindLayer']=WindLayer,exports[_0x19f4f9(0xe3)]=WindUtil,Object[_0x19f4f9(0x120)](exports,'__esModule',{'value':!![]});
15
15
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mars3d-wind",
3
- "version": "3.5.16",
3
+ "version": "3.5.18",
4
4
  "description": "Mars3D平台插件,支持气象 风向图 功能插件",
5
5
  "main": "dist/mars3d-wind.js",
6
6
  "files": [
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "peerDependencies": {},
10
10
  "devDependencies": {
11
- "mars3d": "~3.5.16"
11
+ "mars3d": "~3.5.18"
12
12
  },
13
13
  "scripts": {
14
14
  "lint": "eslint ./src/**/*.{js,ts} --fix"