m4-w-fast 1.0.5 → 1.0.6

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.
package/dist/readFile.js CHANGED
@@ -1 +1 @@
1
- const a3_0x3067b7=a3_0x3b79;(function(_0x1d88d3,_0x4b8207){const _0x3a2edc=a3_0x3b79,_0x2f103d=_0x1d88d3();while(!![]){try{const _0x2d0f21=parseInt(_0x3a2edc(0x8b))/0x1*(-parseInt(_0x3a2edc(0x9e))/0x2)+parseInt(_0x3a2edc(0xd0))/0x3*(-parseInt(_0x3a2edc(0xa4))/0x4)+-parseInt(_0x3a2edc(0xd2))/0x5*(-parseInt(_0x3a2edc(0x92))/0x6)+-parseInt(_0x3a2edc(0x9a))/0x7*(-parseInt(_0x3a2edc(0xd6))/0x8)+-parseInt(_0x3a2edc(0xb5))/0x9*(-parseInt(_0x3a2edc(0xb0))/0xa)+parseInt(_0x3a2edc(0xbb))/0xb+-parseInt(_0x3a2edc(0x8a))/0xc;if(_0x2d0f21===_0x4b8207)break;else _0x2f103d['push'](_0x2f103d['shift']());}catch(_0x13da4a){_0x2f103d['push'](_0x2f103d['shift']());}}}(a3_0xabf4,0xaf882));function a3_0xabf4(){const _0x5a47a5=['FeatureCollection','ceil','getBreaks','min','length','values','onerror','8364097ssTqCn','_maskCacheKey','filePath','error','5386SUGpGn','sort','chunkArray','minLat','getJsonData','string','46156AKVFdx','该时次未获取到文件','clipDataByJson','该时次文件数据异常','isArray','coordinates','Polygon','plusOffset','sortFeaturesByArea','push','filter','plus','142510GDdhel','split','flat','times','area','423VzcjJp','ring','minVal','terminate','hardwareConcurrency','setParams','4674197XFZxTn','max','onmessage','convertTemKtoC','fill','gjLat','minus','join','postMessage','replace','clear','__area','_maskCache','rgba(','undefined','gjLng','features','get','minLng','toNumber','isNaN','306PWJPTS','from','425gLSjtQ','getMinMax','contours','start','8jmCPNa','maxVal','getIsoBandsFastByWorker','map','forEach','slice','8249364nMOdJc','134DyHXCT','Feature','properties','trim','abs','thresholds','data','46212tmVeqp'];a3_0xabf4=function(){return _0x5a47a5;};return a3_0xabf4();}import{contours}from'd3-contour';function a3_0x3b79(_0x43641f,_0x21ab60){const _0xabf4c9=a3_0xabf4();return a3_0x3b79=function(_0x3b799b,_0x4cb45b){_0x3b799b=_0x3b799b-0x8a;let _0x59ba4f=_0xabf4c9[_0x3b799b];return _0x59ba4f;},a3_0x3b79(_0x43641f,_0x21ab60);}import a3_0x573b69 from'@turf/area';import{featureCollection as a3_0x39625f}from'@turf/helpers';import a3_0x31e825 from'decimal.js';export class readFileM4{[a3_0x3067b7(0x9c)]='';['nx']=0x0;['ny']=0x0;[a3_0x3067b7(0xcd)]=0x0;['minLat']=0x0;['gjLng']=0x0;[a3_0x3067b7(0xc0)]=0x0;[a3_0x3067b7(0x98)]=[];[a3_0x3067b7(0xd7)]=-Infinity;[a3_0x3067b7(0xb7)]=Infinity;['_maskCacheKey']='';[a3_0x3067b7(0xc7)]=new Map();constructor(_0x451464){this['filePath']=_0x451464||'';}async[a3_0x3067b7(0xd5)](_0x45fe80){const _0x58735b=a3_0x3067b7,_0x407deb=await fetch(this['filePath']);if(!_0x407deb['ok'])return new Promise((_0xe2b0fb,_0x53f014)=>{const _0x1d705a=a3_0x3b79;_0x53f014(_0x1d705a(0xa5));});const _0x11f0dd=await _0x407deb['text'](),_0x2f7a40=_0x11f0dd[_0x58735b(0xc4)](/\r\n/g,'\x0a')[_0x58735b(0xc4)](/\r/g,'\x0a')['split']('\x0a');if(_0x2f7a40[_0x58735b(0x97)]<0x4)return new Promise((_0x45d974,_0x208b3b)=>{const _0x20733e=_0x58735b;_0x208b3b(_0x20733e(0xa7));});const _0x29a683=(_0x2f7a40[0x1]??'')[_0x58735b(0x8e)]()[_0x58735b(0xb1)](/\s+/);let _0x2a6e02=0x2;while(_0x29a683['length']<0x13){_0x29a683[_0x58735b(0xad)](...(_0x2f7a40[_0x2a6e02]??'')[_0x58735b(0x8e)]()[_0x58735b(0xb1)](/\s+/)),_0x2a6e02++;}this[_0x58735b(0xca)]=Number(_0x29a683[0x6]);const _0x56e8bc=Number(_0x29a683[0x8]),_0x32f6dd=Number(_0x29a683[0xa]),_0x47aca9=Number(_0x29a683[0xb]);this['nx']=Number(_0x29a683[0xc]),this['ny']=Number(_0x29a683[0xd]),this['minLng']=_0x56e8bc,this[_0x58735b(0xa1)]=_0x32f6dd,this[_0x58735b(0xc0)]=Math['abs'](Number(_0x29a683[0x7]))*(_0x32f6dd>_0x47aca9?-0x1:0x1);const _0x351037=this['nx']*this['ny'];let _0x106cec=0x0;for(let _0x57bfbb=_0x2a6e02;_0x57bfbb<_0x2f7a40[_0x58735b(0x97)]&&_0x106cec<_0x351037;_0x57bfbb++){const _0x439e0d=_0x2f7a40[_0x57bfbb][_0x58735b(0x8e)]()??'',_0x501d08=_0x439e0d[_0x58735b(0xb1)](/\s+/);if(!_0x501d08||_0x501d08[_0x58735b(0x97)]===0x0)continue;for(let _0xdb88af=0x0;_0xdb88af<_0x501d08[_0x58735b(0x97)]&&_0x106cec<_0x351037;_0xdb88af++){let _0x94377e=Number(_0x501d08[_0xdb88af]);if(_0x45fe80?.[_0x58735b(0xbe)])_0x94377e=new a3_0x31e825(_0x94377e)[_0x58735b(0xc1)](272.15)['toNumber']();else _0x45fe80?.[_0x58735b(0xab)]&&(_0x94377e=new a3_0x31e825(_0x94377e)[_0x58735b(0xaf)](_0x45fe80['plusOffset'])['toNumber']());this[_0x58735b(0x98)][_0x58735b(0xad)](_0x94377e),this[_0x58735b(0xb7)]=Math['min'](this[_0x58735b(0xb7)],_0x94377e),this['maxVal']=Math['max'](this['maxVal'],_0x94377e),_0x106cec++;}}}[a3_0x3067b7(0xba)](_0x8a8929,_0x8cb8d4){const _0x352d4a=a3_0x3067b7;this['nx']=_0x8a8929['nx'],this['ny']=_0x8a8929['ny'],this[_0x352d4a(0xcd)]=_0x8a8929[_0x352d4a(0xcd)],this[_0x352d4a(0xa1)]=_0x8a8929[_0x352d4a(0xa1)],this[_0x352d4a(0xca)]=_0x8a8929['gjLng'],this[_0x352d4a(0xc0)]=_0x8a8929[_0x352d4a(0xc0)];if(_0x8cb8d4?.[_0x352d4a(0xbe)])for(let _0x1742d0=0x0;_0x1742d0<_0x8a8929[_0x352d4a(0x98)][_0x352d4a(0x97)];_0x1742d0++){_0x8a8929['values'][_0x1742d0]=new a3_0x31e825(_0x8a8929['values'][_0x1742d0])[_0x352d4a(0xc1)](272.15)[_0x352d4a(0xce)]();}else{if(_0x8cb8d4?.['plusOffset'])for(let _0x263666=0x0;_0x263666<_0x8a8929[_0x352d4a(0x98)][_0x352d4a(0x97)];_0x263666++){_0x8a8929[_0x352d4a(0x98)][_0x263666]=new a3_0x31e825(_0x8a8929[_0x352d4a(0x98)][_0x263666])['plus'](_0x8cb8d4[_0x352d4a(0xab)])[_0x352d4a(0xce)]();}else this[_0x352d4a(0x98)]=_0x8a8929['values'];}this[_0x352d4a(0xd3)]();}['getIsoBandsFast'](_0x4f62d8){const _0x634340=a3_0x3067b7;if(this['values'][_0x634340(0x97)]===0x0)return{'type':_0x634340(0x93),'features':[]};let _0x3df956=[];if(_0x4f62d8[_0x634340(0x97)]===0x0)_0x4f62d8=this[_0x634340(0x95)]();const _0x3dae56=contours()['size']([this['nx'],this['ny']]);for(let _0x3d8084=0x0;_0x3d8084<_0x4f62d8[_0x634340(0x97)];_0x3d8084++){const _0x95ed4e=_0x4f62d8[_0x3d8084],_0x43ade7=_0x3d8084<_0x4f62d8[_0x634340(0x97)]-0x1?_0x4f62d8[_0x3d8084+0x1]:Infinity;if(_0x95ed4e<this[_0x634340(0xb7)]&&_0x43ade7<this[_0x634340(0xb7)])continue;if(_0x95ed4e>this[_0x634340(0xd7)]&&_0x43ade7>this[_0x634340(0xd7)])continue;const _0x3fb5f7=_0x3dae56['contour'](this[_0x634340(0x98)],_0x95ed4e);if(!_0x3fb5f7||!_0x3fb5f7[_0x634340(0xa9)])continue;for(const _0x598927 of _0x3fb5f7[_0x634340(0xa9)]){let _0x8bbfc=[];if(Array['isArray'](_0x598927)&&_0x598927[_0x634340(0x97)]>0x0&&Array[_0x634340(0xa8)](_0x598927[0x0])&&typeof _0x598927[0x0][0x0]==='number')_0x8bbfc=[_0x598927];else{if(Array[_0x634340(0xa8)](_0x598927))_0x8bbfc=_0x598927;else continue;}for(const _0x10b338 of _0x8bbfc){const _0x42381e=_0x10b338[_0x634340(0xd9)](_0x1b9881=>{const _0xc8abc7=_0x634340,_0x4228cd=_0x1b9881[0x0],_0x38bb0f=_0x1b9881[0x1];if(_0x4228cd==null||_0x38bb0f==null||Number[_0xc8abc7(0xcf)](_0x4228cd)||Number[_0xc8abc7(0xcf)](_0x38bb0f))return null;const _0x2d1684=new a3_0x31e825(this[_0xc8abc7(0xcd)])['plus'](new a3_0x31e825(_0x4228cd)[_0xc8abc7(0xb3)](this[_0xc8abc7(0xca)]))['toNumber'](),_0x3900f8=new a3_0x31e825(this[_0xc8abc7(0xa1)])[_0xc8abc7(0xaf)](new a3_0x31e825(_0x38bb0f)[_0xc8abc7(0xb3)](this[_0xc8abc7(0xc0)]))[_0xc8abc7(0xce)]();return[_0x2d1684,_0x3900f8];})[_0x634340(0xae)](_0xe1527b=>_0xe1527b!==null),_0x1a9ce0=_0x42381e[_0x634340(0xae)]((_0x1208dc,_0x23c120,_0x3a7b3b)=>{if(_0x23c120===0x0)return!![];const _0x1066cc=_0x3a7b3b[_0x23c120-0x1];return!(_0x1208dc[0x0]===_0x1066cc[0x0]&&_0x1208dc[0x1]===_0x1066cc[0x1]);});if(_0x1a9ce0[_0x634340(0x97)]<0x3)continue;const _0x393116=_0x1a9ce0[0x0],_0x35ed40=_0x1a9ce0[_0x1a9ce0[_0x634340(0x97)]-0x1];(_0x393116[0x0]!==_0x35ed40[0x0]||_0x393116[0x1]!==_0x35ed40[0x1])&&_0x1a9ce0[_0x634340(0xad)]([_0x393116[0x0],_0x393116[0x1]]),_0x3df956[_0x634340(0xad)]({'type':_0x634340(0x8c),'properties':{'z':_0x95ed4e},'geometry':{'type':'Polygon','coordinates':[_0x1a9ce0]}});}}}return _0x3df956=this[_0x634340(0xac)](_0x3df956),{'type':_0x634340(0x93),'features':_0x3df956};}['getColorFast'](_0x4fa4f7,_0x6dfe79,_0x181574){const _0x2dc032=a3_0x3067b7;let _0x5b2403='rgba(255,255,255,0)';const _0x143e45=_0x6dfe79['indexOf'](_0x4fa4f7);if(typeof _0x181574[_0x143e45]==_0x2dc032(0xa3))_0x5b2403=_0x181574[_0x143e45];else _0x143e45!==-0x1&&(_0x5b2403=_0x2dc032(0xc8)+_0x181574[_0x143e45][0x0]+','+_0x181574[_0x143e45][0x1]+','+_0x181574[_0x143e45][0x2]+','+(_0x181574[_0x143e45][0x3]||_0x181574[_0x143e45][0x3]===0x0?_0x181574[_0x143e45][0x3]:0x1)+')');return _0x5b2403;}async[a3_0x3067b7(0xa6)](_0x1fb9b9,_0x559877,_0x5d9e9b,_0x43ac01){const _0x475341=a3_0x3067b7,_0x12612f=_0x43ac01?_0x43ac01:navigator[_0x475341(0xb9)]-0x4||0x1,_0x22950a=Math[_0x475341(0x96)](_0x12612f,Math['max'](0x1,_0x1fb9b9['features'][_0x475341(0x97)])),_0x475228=this[_0x475341(0xa0)](_0x1fb9b9[_0x475341(0xcb)],_0x22950a),_0x2a6a10=[],_0x50a4b6=_0x475228[_0x475341(0xd9)](_0x36c052=>{const _0x1199fb=_0x475341,_0x2778f6=new Worker(_0x5d9e9b,{'type':'module'});return _0x2a6a10[_0x1199fb(0xad)](_0x2778f6),new Promise(_0xc5b05c=>{const _0x4698df=_0x1199fb;_0x2778f6[_0x4698df(0xbd)]=_0xda1806=>{const _0x5a7af8=_0x4698df;_0xc5b05c(_0xda1806[_0x5a7af8(0x91)][_0x5a7af8(0xcb)]);},_0x2778f6['onerror']=_0x1b7835=>{const _0x1f1919=_0x4698df;console[_0x1f1919(0x9d)](_0x1b7835);},_0x2778f6[_0x4698df(0xc3)]({'isoChunk':_0x36c052,'gansuFeatures':_0x559877[_0x4698df(0xcb)]});});}),_0x16a9a8=await Promise['all'](_0x50a4b6);_0x2a6a10[_0x475341(0xda)](_0x77c826=>_0x77c826[_0x475341(0xb8)]());const _0x9fc314=_0x16a9a8[_0x475341(0xb2)]();return a3_0x39625f(_0x9fc314);}async[a3_0x3067b7(0xd8)](_0x5dab85,_0x2c7e27,_0x556f17){const _0x4290dd=a3_0x3067b7;if(this[_0x4290dd(0x98)][_0x4290dd(0x97)]===0x0)return{'type':_0x4290dd(0x93),'features':[]};let _0x369e89=[];if(_0x5dab85[_0x4290dd(0x97)]===0x0)_0x5dab85=this[_0x4290dd(0x95)]();const _0x44eade=[],_0x3377e0=_0x556f17?_0x556f17:navigator[_0x4290dd(0xb9)]-0x4||0x1,_0x51dbdf=Math[_0x4290dd(0x96)](_0x3377e0,Math['max'](0x1,_0x5dab85['length'])),_0x3dc93a=this[_0x4290dd(0xa0)](_0x5dab85,_0x51dbdf),_0x389253=_0x3dc93a[_0x4290dd(0xd9)](_0x28a57b=>{const _0x54d4a6=_0x4290dd,_0x219bf7=new Worker(_0x2c7e27,{'type':'module'});return _0x44eade[_0x54d4a6(0xad)](_0x219bf7),new Promise(_0x56498b=>{const _0x4c9b19=_0x54d4a6;_0x219bf7[_0x4c9b19(0xbd)]=_0x4fa46b=>{const _0x2f0e83=_0x4c9b19;_0x56498b(_0x4fa46b[_0x2f0e83(0x91)][_0x2f0e83(0xcb)]);},_0x219bf7[_0x4c9b19(0x99)]=_0x1b0073=>{const _0x1d3a74=_0x4c9b19;console[_0x1d3a74(0x9d)](_0x1b0073);},_0x219bf7['postMessage']({'breaks':_0x28a57b,'values':this[_0x4c9b19(0x98)],'nx':this['nx'],'ny':this['ny'],'minVal':this[_0x4c9b19(0xb7)],'maxVal':this['maxVal'],'minLng':this[_0x4c9b19(0xcd)],'minLat':this[_0x4c9b19(0xa1)],'gjLng':this[_0x4c9b19(0xca)],'gjLat':this[_0x4c9b19(0xc0)]});});}),_0x584178=await Promise['all'](_0x389253);return _0x44eade[_0x4290dd(0xda)](_0x3ae2f6=>_0x3ae2f6[_0x4290dd(0xb8)]()),_0x584178['forEach'](_0x3f2a9f=>{_0x369e89['push'](..._0x3f2a9f);}),_0x369e89=this[_0x4290dd(0xac)](_0x369e89),{'type':_0x4290dd(0x93),'features':_0x369e89};}['clearMaskCache'](){const _0xd479ea=a3_0x3067b7;this[_0xd479ea(0xc7)][_0xd479ea(0xc5)]();}['getIsoBandsByLayerBreak'](_0x1d373e=[],_0x3d3d59){const _0x3b4e1b=a3_0x3067b7;if(typeof _0x3d3d59!=='undefined'&&this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xcc)](_0x3d3d59)){const _0x3dd1ee=this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xcc)](_0x3d3d59)||[],_0x4b6c72=this['sortFeaturesByArea']?this[_0x3b4e1b(0xac)](_0x3dd1ee):_0x3dd1ee;return{'type':'FeatureCollection','features':_0x4b6c72};}if(this['values'][_0x3b4e1b(0x97)]===0x0)return{'type':'FeatureCollection','features':[]};if(_0x1d373e[_0x3b4e1b(0x97)]===0x0)_0x1d373e=this[_0x3b4e1b(0x95)]();const _0x447a16=_0x1d373e[_0x3b4e1b(0xc2)](',');if(this[_0x3b4e1b(0x9b)]!==_0x447a16){this['_maskCacheKey']=_0x447a16,this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xc5)]();const _0x56e639=this['minLng'],_0x344828=this[_0x3b4e1b(0xa1)],_0x2f4e38=this[_0x3b4e1b(0xca)],_0x96ec2c=this['gjLat'],_0x1f36aa=_0x4fceb2=>{const _0x568475=_0x3b4e1b;let _0xdd6525=0x0;for(let _0x399a6c=0x0,_0x366629=_0x4fceb2[_0x568475(0x97)];_0x399a6c<_0x366629;_0x399a6c++){const _0x2c7daa=_0x4fceb2[_0x399a6c][0x0],_0x884a5c=_0x4fceb2[_0x399a6c][0x1],_0x1c7fec=_0x4fceb2[(_0x399a6c+0x1)%_0x366629][0x0],_0xfcc32b=_0x4fceb2[(_0x399a6c+0x1)%_0x366629][0x1];if(_0x2c7daa==null||_0x884a5c==null||_0x1c7fec==null||_0xfcc32b==null)continue;_0xdd6525+=_0x2c7daa*_0xfcc32b-_0x1c7fec*_0x884a5c;}return _0xdd6525/0x2;},_0x11c61a=(_0x25ed18,_0x440af7)=>{const _0x15abff=_0x3b4e1b;if(!_0x25ed18)return![];const _0x435373=_0x25ed18[0x0],_0x2f9ab8=_0x25ed18[0x1];let _0x4bc8ea=![];for(let _0x2ac60b=0x0,_0x469370=_0x440af7[_0x15abff(0x97)]-0x1;_0x2ac60b<_0x440af7['length'];_0x469370=_0x2ac60b++){const _0xfc3634=_0x440af7[_0x2ac60b][0x0],_0x5a5541=_0x440af7[_0x2ac60b][0x1],_0x51b1f3=_0x440af7[_0x469370][0x0],_0x3719cf=_0x440af7[_0x469370][0x1],_0x52a7b1=_0x5a5541>_0x2f9ab8!==_0x3719cf>_0x2f9ab8&&_0x435373<(_0x51b1f3-_0xfc3634)*(_0x2f9ab8-_0x5a5541)/(_0x3719cf-_0x5a5541)+_0xfc3634;if(_0x52a7b1)_0x4bc8ea=!_0x4bc8ea;}return _0x4bc8ea;},_0x312cfe=_0x439903=>{const _0xd29b22=_0x3b4e1b,_0x4a868a=[];let _0x471065=null,_0x30fe31=null;for(let _0x2aad98=0x0;_0x2aad98<_0x439903[_0xd29b22(0x97)];_0x2aad98++){const _0x31361a=_0x439903[_0x2aad98];if(!_0x31361a)continue;const _0xfa2e0a=_0x31361a[0x0],_0xc2c22a=_0x31361a[0x1];if(_0xfa2e0a==null||_0xc2c22a==null||Number[_0xd29b22(0xcf)](_0xfa2e0a)||Number[_0xd29b22(0xcf)](_0xc2c22a))continue;const _0x11e668=_0x56e639+_0xfa2e0a*_0x2f4e38,_0x571779=_0x344828+_0xc2c22a*_0x96ec2c;if(_0x471065!==null&&_0x30fe31!==null&&_0x471065===_0x11e668&&_0x30fe31===_0x571779){_0x471065=_0x11e668,_0x30fe31=_0x571779;continue;}_0x4a868a[_0xd29b22(0xad)]([_0x11e668,_0x571779]),_0x471065=_0x11e668,_0x30fe31=_0x571779;}if(_0x4a868a[_0xd29b22(0x97)]===0x0)return _0x4a868a;const _0x15a4c6=_0x4a868a[0x0],_0xd30b29=_0x4a868a[_0x4a868a[_0xd29b22(0x97)]-0x1];if(_0x15a4c6[0x0]!==_0xd30b29[0x0]||_0x15a4c6[0x1]!==_0xd30b29[0x1])_0x4a868a[_0xd29b22(0xad)]([_0x15a4c6[0x0],_0x15a4c6[0x1]]);return _0x4a868a;},_0x11205f=_0x1d373e['length']-0x1;for(let _0x12097c=0x0;_0x12097c<_0x1d373e[_0x3b4e1b(0x97)];_0x12097c++){const _0x113fb5=_0x1d373e[_0x12097c],_0x57cbbd=_0x12097c<_0x11205f?_0x1d373e[_0x12097c+0x1]:Infinity,_0x2ac7e1=Array[_0x3b4e1b(0xd1)]({'length':this[_0x3b4e1b(0x98)][_0x3b4e1b(0x97)]});let _0xd879fe=![];for(let _0x4b4368=0x0;_0x4b4368<this[_0x3b4e1b(0x98)]['length'];_0x4b4368++){const _0x4c6e2=this['values'][_0x4b4368],_0x1b86d1=_0x4c6e2>=_0x113fb5&&_0x4c6e2<_0x57cbbd?0x1:0x0;if(_0x1b86d1)_0xd879fe=!![];_0x2ac7e1[_0x4b4368]=_0x1b86d1;}if(!_0xd879fe)continue;const _0x38809a=contours()['size']([this['nx'],this['ny']])[_0x3b4e1b(0x90)]([0.5]),_0x37b4e5=_0x38809a[_0x3b4e1b(0xd4)]?_0x38809a[_0x3b4e1b(0xd4)](_0x2ac7e1):_0x38809a(_0x2ac7e1);if(!_0x37b4e5||_0x37b4e5['length']===0x0)continue;const _0x57cc08=[];for(const _0x387957 of _0x37b4e5){const _0x86b5da=_0x387957&&_0x387957['coordinates'];if(!_0x86b5da)continue;for(const _0xed480f of _0x86b5da){let _0x34e77a=[];if(Array[_0x3b4e1b(0xa8)](_0xed480f)&&_0xed480f[_0x3b4e1b(0x97)]>0x0&&typeof _0xed480f[0x0][0x0]==='number')_0x34e77a=[_0xed480f];else{if(Array['isArray'](_0xed480f))_0x34e77a=_0xed480f;else continue;}const _0x479843=_0x34e77a[_0x3b4e1b(0xd9)](_0x183d44=>({'ring':_0x183d44,'area':Math[_0x3b4e1b(0x8f)](_0x1f36aa(_0x183d44))}))[_0x3b4e1b(0x9f)]((_0x347764,_0x33a3dc)=>_0x33a3dc[_0x3b4e1b(0xb4)]-_0x347764[_0x3b4e1b(0xb4)]),_0x588054=Array[_0x3b4e1b(0xd1)]({'length':_0x479843['length']})[_0x3b4e1b(0xbf)](![]);for(let _0x59c702=0x0;_0x59c702<_0x479843[_0x3b4e1b(0x97)];_0x59c702++){if(_0x588054[_0x59c702])continue;const _0xa9f39=_0x479843[_0x59c702][_0x3b4e1b(0xb6)];_0x588054[_0x59c702]=!![];const _0x3d1bbb=[];for(let _0x8a88d2=0x0;_0x8a88d2<_0x479843[_0x3b4e1b(0x97)];_0x8a88d2++){if(_0x588054[_0x8a88d2])continue;const _0x398491=_0x479843[_0x8a88d2]['ring'],_0x3ba4bc=_0x398491[0x0];_0x3ba4bc&&_0x11c61a(_0x3ba4bc,_0xa9f39)&&(_0x3d1bbb[_0x3b4e1b(0xad)](_0x398491),_0x588054[_0x8a88d2]=!![]);}const _0x5e079c=_0x312cfe(_0xa9f39);if(_0x5e079c['length']<0x4)continue;const _0xdc697e=[];for(const _0x3d546e of _0x3d1bbb){const _0x716e2a=_0x312cfe(_0x3d546e);if(_0x716e2a[_0x3b4e1b(0x97)]>=0x4)_0xdc697e[_0x3b4e1b(0xad)](_0x716e2a);}_0x57cc08[_0x3b4e1b(0xad)]({'type':_0x3b4e1b(0x8c),'properties':{'z':_0x113fb5},'geometry':{'type':_0x3b4e1b(0xaa),'coordinates':[_0x5e079c,..._0xdc697e]}});}}}_0x57cc08['length']&&this[_0x3b4e1b(0xc7)]['set'](_0x113fb5,_0x57cc08);}}if(typeof _0x3d3d59!==_0x3b4e1b(0xc9)){const _0x20f1e5=this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xcc)](_0x3d3d59)||[],_0x5093f0=this['sortFeaturesByArea']?this[_0x3b4e1b(0xac)](_0x20f1e5):_0x20f1e5;return{'type':'FeatureCollection','features':_0x5093f0};}const _0xc99210=[];for(const _0x34d7d9 of this['_maskCache'][_0x3b4e1b(0x98)]()){_0xc99210['push'](..._0x34d7d9);}const _0x1138fc=this[_0x3b4e1b(0xac)]?this['sortFeaturesByArea'](_0xc99210):_0xc99210;return{'type':_0x3b4e1b(0x93),'features':_0x1138fc};}[a3_0x3067b7(0xa2)](){const _0x9cded=a3_0x3067b7,_0x2de815=Array[_0x9cded(0xd1)]({'length':this['nx']});for(let _0x39bfbc=0x0;_0x39bfbc<this['nx'];_0x39bfbc++){_0x2de815[_0x39bfbc]=new a3_0x31e825(this[_0x9cded(0xcd)])[_0x9cded(0xaf)](new a3_0x31e825(_0x39bfbc)[_0x9cded(0xb3)](this['gjLng']))[_0x9cded(0xce)]();}const _0x154efe=Array[_0x9cded(0xd1)]({'length':this['ny']});for(let _0x308036=0x0;_0x308036<this['ny'];_0x308036++){_0x154efe[_0x308036]=new a3_0x31e825(this[_0x9cded(0xa1)])[_0x9cded(0xaf)](new a3_0x31e825(_0x308036)[_0x9cded(0xb3)](this['gjLat']))[_0x9cded(0xce)]();}const _0x5d05ca=Array[_0x9cded(0xd1)]({'length':this['nx']*this['ny']});for(let _0x4e9016=0x0;_0x4e9016<this[_0x9cded(0x98)][_0x9cded(0x97)];_0x4e9016++){const _0x139fb8=Math['floor'](_0x4e9016/this['nx']),_0x60ba17=_0x4e9016%this['nx'],_0x30b95e=_0x2de815[_0x60ba17],_0x4d7ed4=_0x154efe[_0x139fb8],_0x303473=this[_0x9cded(0x98)][_0x4e9016];_0x4d7ed4&&_0x30b95e&&(_0x5d05ca[_0x4e9016]={'lng':_0x30b95e,'lat':_0x4d7ed4,'val':_0x303473});}return _0x5d05ca;}[a3_0x3067b7(0xd3)](){const _0x544126=a3_0x3067b7;let _0x1a729a=-Infinity,_0x3a3334=Infinity;for(let _0x23963f=0x0;_0x23963f<this[_0x544126(0x98)][_0x544126(0x97)];_0x23963f++){const _0x3bfd05=this[_0x544126(0x98)][_0x23963f];if(_0x3bfd05>_0x1a729a)_0x1a729a=_0x3bfd05;if(_0x3bfd05<_0x3a3334)_0x3a3334=_0x3bfd05;}this['minVal']=_0x3a3334,this[_0x544126(0xd7)]=_0x1a729a;}['getBreaks'](){const _0x34d204=a3_0x3067b7,_0x37a157=[];if(this['minVal']===Infinity||this['maxVal']===-Infinity)return _0x37a157;for(let _0x4fe7a2=this['minVal']-0x1;_0x4fe7a2<=this[_0x34d204(0xd7)]+0x1;_0x4fe7a2++){_0x37a157[_0x34d204(0xad)](_0x4fe7a2);}return _0x37a157;}[a3_0x3067b7(0xac)](_0x48cab8){const _0x529b0e=a3_0x3067b7;return _0x48cab8[_0x529b0e(0xd9)](_0x52f3d9=>{const _0x222b6a=_0x529b0e;try{const _0x11d909=a3_0x573b69(_0x52f3d9)||0x0;_0x52f3d9['properties']={..._0x52f3d9[_0x222b6a(0x8d)]||{},'__area':_0x11d909};}catch{_0x52f3d9[_0x222b6a(0x8d)]={..._0x52f3d9['properties']||{},'__area':0x0};}return _0x52f3d9;})[_0x529b0e(0x9f)]((_0x422dd9,_0x2f0b0e)=>_0x2f0b0e['properties'][_0x529b0e(0xc6)]-_0x422dd9[_0x529b0e(0x8d)][_0x529b0e(0xc6)])[_0x529b0e(0xae)](_0x4f394f=>_0x4f394f[_0x529b0e(0x8d)]&&_0x529b0e(0xc6)in _0x4f394f[_0x529b0e(0x8d)]&&_0x4f394f[_0x529b0e(0x8d)]['__area']!==0x0)[_0x529b0e(0xd9)](_0x255e0c=>{const _0xc541d0=_0x529b0e;if(_0x255e0c['properties']&&_0xc541d0(0xc6)in _0x255e0c[_0xc541d0(0x8d)]){const {__area:_0x4962a4,..._0x42ec37}=_0x255e0c[_0xc541d0(0x8d)];_0x255e0c[_0xc541d0(0x8d)]=_0x42ec37;}return _0x255e0c;});}['chunkArray']=(_0x4379fc,_0x337ddf)=>{const _0x193aa4=a3_0x3067b7,_0x1610db=[],_0x55b2db=Math[_0x193aa4(0xbc)](0x1,Math[_0x193aa4(0x94)](_0x4379fc['length']/_0x337ddf));for(let _0x4002ee=0x0;_0x4002ee<_0x337ddf;_0x4002ee++){_0x1610db['push'](_0x4379fc[_0x193aa4(0xdb)](_0x4002ee*_0x55b2db,(_0x4002ee+0x1)*_0x55b2db));}return _0x1610db;};}export default readFileM4;
1
+ const a3_0xab1a38=a3_0xb1cd;(function(_0x37cd28,_0x49b34a){const _0x8a11f6=a3_0xb1cd,_0x5fd5a7=_0x37cd28();while(!![]){try{const _0x442620=-parseInt(_0x8a11f6(0xee))/0x1*(parseInt(_0x8a11f6(0xea))/0x2)+-parseInt(_0x8a11f6(0x11d))/0x3*(parseInt(_0x8a11f6(0xe3))/0x4)+-parseInt(_0x8a11f6(0x114))/0x5*(parseInt(_0x8a11f6(0xd2))/0x6)+parseInt(_0x8a11f6(0x106))/0x7*(-parseInt(_0x8a11f6(0xf0))/0x8)+parseInt(_0x8a11f6(0x10e))/0x9+parseInt(_0x8a11f6(0x118))/0xa*(parseInt(_0x8a11f6(0xde))/0xb)+parseInt(_0x8a11f6(0x117))/0xc*(parseInt(_0x8a11f6(0xf2))/0xd);if(_0x442620===_0x49b34a)break;else _0x5fd5a7['push'](_0x5fd5a7['shift']());}catch(_0x17e681){_0x5fd5a7['push'](_0x5fd5a7['shift']());}}}(a3_0x2416,0xc5a92));import{contours}from'd3-contour';function a3_0xb1cd(_0x511af4,_0x341d12){const _0x241640=a3_0x2416();return a3_0xb1cd=function(_0xb1cd78,_0x3e7ad3){_0xb1cd78=_0xb1cd78-0xd1;let _0xc11333=_0x241640[_0xb1cd78];return _0xc11333;},a3_0xb1cd(_0x511af4,_0x341d12);}import a3_0x542ccd from'@turf/area';import{featureCollection as a3_0x191b72}from'@turf/helpers';import a3_0x58bab9 from'decimal.js';export class readFileM4{[a3_0xab1a38(0x11c)]='';['nx']=0x0;['ny']=0x0;[a3_0xab1a38(0x122)]=0x0;['minLat']=0x0;['gjLng']=0x0;[a3_0xab1a38(0xdd)]=0x0;[a3_0xab1a38(0x110)]=[];[a3_0xab1a38(0xd3)]=-Infinity;[a3_0xab1a38(0xe7)]=Infinity;[a3_0xab1a38(0x109)]='';[a3_0xab1a38(0xda)]=new Map();constructor(_0x10a06c){const _0x4a4673=a3_0xab1a38;this[_0x4a4673(0x11c)]=_0x10a06c||'';}async[a3_0xab1a38(0x128)](_0x53f4b8){const _0x2f843e=a3_0xab1a38,_0x2224a5=await fetch(this[_0x2f843e(0x11c)]);if(!_0x2224a5['ok'])return new Promise((_0x5d9429,_0xeab5a2)=>{const _0x115683=_0x2f843e;_0xeab5a2(_0x115683(0x10f));});const _0x36ecfc=await _0x2224a5[_0x2f843e(0x105)](),_0xe0953d=_0x36ecfc[_0x2f843e(0x102)](/\r\n/g,'\x0a')[_0x2f843e(0x102)](/\r/g,'\x0a')['split']('\x0a');if(_0xe0953d['length']<0x4)return new Promise((_0x430402,_0x120486)=>{_0x120486('该时次文件数据异常');});const _0x39847f=(_0xe0953d[0x1]??'')[_0x2f843e(0x125)]()[_0x2f843e(0x103)](/\s+/);let _0x54c7d5=0x2;while(_0x39847f['length']<0x13){_0x39847f[_0x2f843e(0xdc)](...(_0xe0953d[_0x54c7d5]??'')['trim']()['split'](/\s+/)),_0x54c7d5++;}this['gjLng']=Number(_0x39847f[0x6]);const _0xbad6c6=Number(_0x39847f[0x8]),_0x5ce8cd=Number(_0x39847f[0xa]),_0x377df8=Number(_0x39847f[0xb]);this['nx']=Number(_0x39847f[0xc]),this['ny']=Number(_0x39847f[0xd]),this[_0x2f843e(0x122)]=_0xbad6c6,this['minLat']=_0x5ce8cd,this['gjLat']=Math[_0x2f843e(0xff)](Number(_0x39847f[0x7]))*(_0x5ce8cd>_0x377df8?-0x1:0x1);const _0x171051=this['nx']*this['ny'];let _0x4cbdbc=0x0;for(let _0x236136=_0x54c7d5;_0x236136<_0xe0953d[_0x2f843e(0xe0)]&&_0x4cbdbc<_0x171051;_0x236136++){const _0x2fe628=_0xe0953d[_0x236136][_0x2f843e(0x125)]()??'',_0x3244f7=_0x2fe628[_0x2f843e(0x103)](/\s+/);if(!_0x3244f7||_0x3244f7[_0x2f843e(0xe0)]===0x0)continue;for(let _0x1888d0=0x0;_0x1888d0<_0x3244f7[_0x2f843e(0xe0)]&&_0x4cbdbc<_0x171051;_0x1888d0++){let _0x7f485c=Number(_0x3244f7[_0x1888d0]);if(_0x53f4b8?.[_0x2f843e(0xd7)])_0x7f485c=new a3_0x58bab9(_0x7f485c)['minus'](272.15)[_0x2f843e(0x11f)]();else _0x53f4b8?.[_0x2f843e(0x10c)]&&(_0x7f485c=new a3_0x58bab9(_0x7f485c)['plus'](_0x53f4b8['plusOffset'])[_0x2f843e(0x11f)]());this[_0x2f843e(0x110)][_0x2f843e(0xdc)](_0x7f485c),this[_0x2f843e(0xe7)]=Math[_0x2f843e(0xd8)](this[_0x2f843e(0xe7)],_0x7f485c),this[_0x2f843e(0xd3)]=Math[_0x2f843e(0xfc)](this[_0x2f843e(0xd3)],_0x7f485c),_0x4cbdbc++;}}}[a3_0xab1a38(0xdb)](_0x13a580,_0x47e130){const _0x3fb397=a3_0xab1a38;this['nx']=_0x13a580['nx'],this['ny']=_0x13a580['ny'],this[_0x3fb397(0x122)]=_0x13a580[_0x3fb397(0x122)],this[_0x3fb397(0x10b)]=_0x13a580['minLat'],this[_0x3fb397(0xf8)]=_0x13a580[_0x3fb397(0xf8)],this['gjLat']=_0x13a580[_0x3fb397(0xdd)];if(_0x47e130?.[_0x3fb397(0xd7)])for(let _0x56a6d9=0x0;_0x56a6d9<_0x13a580[_0x3fb397(0x110)][_0x3fb397(0xe0)];_0x56a6d9++){_0x13a580[_0x3fb397(0x110)][_0x56a6d9]=new a3_0x58bab9(_0x13a580[_0x3fb397(0x110)][_0x56a6d9])[_0x3fb397(0xfe)](272.15)[_0x3fb397(0x11f)]();}else{if(_0x47e130?.[_0x3fb397(0x10c)])for(let _0x38efe7=0x0;_0x38efe7<_0x13a580[_0x3fb397(0x110)]['length'];_0x38efe7++){_0x13a580[_0x3fb397(0x110)][_0x38efe7]=new a3_0x58bab9(_0x13a580[_0x3fb397(0x110)][_0x38efe7])['plus'](_0x47e130[_0x3fb397(0x10c)])['toNumber']();}else this[_0x3fb397(0x110)]=_0x13a580[_0x3fb397(0x110)];}this[_0x3fb397(0xf7)]();}['getIsoBandsFast'](_0x163062){const _0x19a2ce=a3_0xab1a38;if(this[_0x19a2ce(0x110)]['length']===0x0)return{'type':_0x19a2ce(0x11b),'features':[]};let _0x25501a=[];if(_0x163062[_0x19a2ce(0xe0)]===0x0)_0x163062=this['getBreaks']();const _0x32222a=[];for(let _0x776c5e=0x0;_0x776c5e<_0x163062[_0x19a2ce(0xe0)];_0x776c5e++){const _0x5b866d=_0x163062[_0x776c5e],_0x2317f=_0x776c5e<_0x163062[_0x19a2ce(0xe0)]-0x1?_0x163062[_0x776c5e+0x1]:Infinity;if(_0x5b866d<this[_0x19a2ce(0xe7)]&&_0x2317f<this[_0x19a2ce(0xe7)])continue;if(_0x5b866d>this[_0x19a2ce(0xd3)]&&_0x2317f>this[_0x19a2ce(0xd3)])continue;_0x32222a[_0x19a2ce(0xdc)](_0x5b866d);}const _0x53e7da=contours()['size']([this['nx'],this['ny']])[_0x19a2ce(0xd9)](_0x32222a),_0x325193=_0x53e7da(this['values']);for(const _0x316c01 of _0x325193){for(const _0x488681 of _0x316c01[_0x19a2ce(0xf1)]){if(Array['isArray'](_0x488681))for(const _0x396fb7 of _0x488681){_0x396fb7[_0x19a2ce(0xfa)](_0x40d0f1=>{const _0x40f3c5=_0x19a2ce,_0x11b5b9=_0x40d0f1[0x0],_0xbe95b5=_0x40d0f1[0x1];if(_0x11b5b9==null||_0xbe95b5==null||Number['isNaN'](_0x11b5b9)||Number[_0x40f3c5(0xec)](_0xbe95b5))return null;const _0x4d1d44=new a3_0x58bab9(this['minLng'])[_0x40f3c5(0x121)](new a3_0x58bab9(_0x11b5b9)['times'](this['gjLng']))[_0x40f3c5(0x11f)](),_0x1b0684=new a3_0x58bab9(this[_0x40f3c5(0x10b)])[_0x40f3c5(0x121)](new a3_0x58bab9(_0xbe95b5)[_0x40f3c5(0x11e)](this[_0x40f3c5(0xdd)]))['toNumber']();_0x40d0f1[0x0]=_0x4d1d44,_0x40d0f1[0x1]=_0x1b0684;});}}_0x25501a['push']({'type':_0x19a2ce(0x10a),'properties':{'z':_0x316c01[_0x19a2ce(0xf3)]},'geometry':_0x316c01});}return{'type':'FeatureCollection','features':_0x25501a};}[a3_0xab1a38(0xe2)](_0x30aa69,_0x66e3c0,_0x3cdd63){const _0x5d1b66=a3_0xab1a38;let _0x4fc787=_0x5d1b66(0x124);const _0x3c5057=_0x66e3c0['indexOf'](_0x30aa69);if(typeof _0x3cdd63[_0x3c5057]==_0x5d1b66(0xf6))_0x4fc787=_0x3cdd63[_0x3c5057];else _0x3c5057!==-0x1&&(_0x4fc787=_0x5d1b66(0xf4)+_0x3cdd63[_0x3c5057][0x0]+','+_0x3cdd63[_0x3c5057][0x1]+','+_0x3cdd63[_0x3c5057][0x2]+','+(_0x3cdd63[_0x3c5057][0x3]||_0x3cdd63[_0x3c5057][0x3]===0x0?_0x3cdd63[_0x3c5057][0x3]:0x1)+')');return _0x4fc787;}async[a3_0xab1a38(0xfd)](_0x3b43d9,_0x255e4f,_0x218cc1,_0xa1d6b7){const _0x51ce8d=a3_0xab1a38,_0x221fd0=_0xa1d6b7?_0xa1d6b7:navigator[_0x51ce8d(0xe8)]-0x4||0x1,_0x3d42db=Math[_0x51ce8d(0xd8)](_0x221fd0,Math[_0x51ce8d(0xfc)](0x1,_0x3b43d9[_0x51ce8d(0x129)][_0x51ce8d(0xe0)])),_0x2862af=this[_0x51ce8d(0x104)](_0x3b43d9['features'],_0x3d42db),_0x14536b=[],_0x25d42e=_0x2862af[_0x51ce8d(0x101)](_0x39c867=>{const _0xb9007e=_0x51ce8d,_0x43cc5b=new Worker(_0x218cc1,{'type':'module'});return _0x14536b[_0xb9007e(0xdc)](_0x43cc5b),new Promise(_0x53aa49=>{const _0x3aa13f=_0xb9007e;_0x43cc5b[_0x3aa13f(0xeb)]=_0x5cc63a=>{const _0x6e1ffc=_0x3aa13f;_0x53aa49(_0x5cc63a[_0x6e1ffc(0xef)][_0x6e1ffc(0x129)]);},_0x43cc5b[_0x3aa13f(0x120)]=_0x303e4c=>{const _0x3b9819=_0x3aa13f;console[_0x3b9819(0x115)](_0x303e4c);},_0x43cc5b[_0x3aa13f(0xdf)]({'isoChunk':_0x39c867,'gansuFeatures':_0x255e4f[_0x3aa13f(0x129)]});});}),_0x21443b=await Promise[_0x51ce8d(0xe9)](_0x25d42e);_0x14536b['forEach'](_0x51feeb=>_0x51feeb[_0x51ce8d(0x100)]());const _0xefd557=_0x21443b[_0x51ce8d(0xe4)]();return a3_0x191b72(_0xefd557);}async['getIsoBandsFastByWorker'](_0x3c72c9,_0x5728e7,_0x28eb5d){const _0x50fae9=a3_0xab1a38;if(this[_0x50fae9(0x110)][_0x50fae9(0xe0)]===0x0)return{'type':_0x50fae9(0x11b),'features':[]};let _0x51a76c=[];if(_0x3c72c9[_0x50fae9(0xe0)]===0x0)_0x3c72c9=this[_0x50fae9(0x116)]();const _0x4645cd=[],_0x5050f2=_0x28eb5d?_0x28eb5d:navigator[_0x50fae9(0xe8)]-0x4||0x1,_0x2c1a49=Math[_0x50fae9(0xd8)](_0x5050f2,Math['max'](0x1,_0x3c72c9['length'])),_0x2035ab=this['chunkArray'](_0x3c72c9,_0x2c1a49),_0x4a63c7=_0x2035ab[_0x50fae9(0x101)](_0x108b25=>{const _0x10b62e=_0x50fae9,_0x4719c0=new Worker(_0x5728e7,{'type':_0x10b62e(0xf5)});return _0x4645cd[_0x10b62e(0xdc)](_0x4719c0),new Promise(_0x42898a=>{const _0x4d2051=_0x10b62e;_0x4719c0[_0x4d2051(0xeb)]=_0x51e8ea=>{const _0xcda422=_0x4d2051;_0x42898a(_0x51e8ea[_0xcda422(0xef)]['features']);},_0x4719c0['onerror']=_0x269aae=>{const _0x40bf25=_0x4d2051;console[_0x40bf25(0x115)](_0x269aae);},_0x4719c0[_0x4d2051(0xdf)]({'breaks':_0x108b25,'values':this[_0x4d2051(0x110)],'nx':this['nx'],'ny':this['ny'],'minVal':this[_0x4d2051(0xe7)],'maxVal':this['maxVal'],'minLng':this[_0x4d2051(0x122)],'minLat':this[_0x4d2051(0x10b)],'gjLng':this[_0x4d2051(0xf8)],'gjLat':this[_0x4d2051(0xdd)]});});}),_0x511555=await Promise[_0x50fae9(0xe9)](_0x4a63c7);return _0x4645cd[_0x50fae9(0xfa)](_0x359103=>_0x359103[_0x50fae9(0x100)]()),_0x511555[_0x50fae9(0xfa)](_0x206b82=>{const _0x2080d4=_0x50fae9;_0x51a76c[_0x2080d4(0xdc)](..._0x206b82);}),_0x51a76c=this['sortFeaturesByArea'](_0x51a76c),{'type':'FeatureCollection','features':_0x51a76c};}[a3_0xab1a38(0x10d)](){const _0x480daa=a3_0xab1a38;this[_0x480daa(0xda)][_0x480daa(0xfb)]();}[a3_0xab1a38(0x127)](_0xa2cd96=[],_0x1ef406){const _0x417620=a3_0xab1a38;if(typeof _0x1ef406!==_0x417620(0xd5)&&this[_0x417620(0xda)][_0x417620(0xd6)](_0x1ef406)){const _0x22b4a4=this[_0x417620(0xda)]['get'](_0x1ef406)||[],_0x3b3ea7=this[_0x417620(0xe1)]?this[_0x417620(0xe1)](_0x22b4a4):_0x22b4a4;return{'type':_0x417620(0x11b),'features':_0x3b3ea7};}if(this[_0x417620(0x110)][_0x417620(0xe0)]===0x0)return{'type':_0x417620(0x11b),'features':[]};if(_0xa2cd96[_0x417620(0xe0)]===0x0)_0xa2cd96=this[_0x417620(0x116)]();const _0x5924f0=_0xa2cd96[_0x417620(0x108)](',');if(this[_0x417620(0x109)]!==_0x5924f0){this[_0x417620(0x109)]=_0x5924f0,this[_0x417620(0xda)][_0x417620(0xfb)]();const _0x2bcf71=this[_0x417620(0x122)],_0x4d2d0a=this[_0x417620(0x10b)],_0x214136=this[_0x417620(0xf8)],_0x301e53=this[_0x417620(0xdd)],_0x4e5ded=_0x48e8dd=>{let _0x8ee551=0x0;for(let _0x45ba24=0x0,_0x1f99e7=_0x48e8dd['length'];_0x45ba24<_0x1f99e7;_0x45ba24++){const _0x6269ec=_0x48e8dd[_0x45ba24][0x0],_0x537cef=_0x48e8dd[_0x45ba24][0x1],_0x7c7509=_0x48e8dd[(_0x45ba24+0x1)%_0x1f99e7][0x0],_0x5b3e5f=_0x48e8dd[(_0x45ba24+0x1)%_0x1f99e7][0x1];if(_0x6269ec==null||_0x537cef==null||_0x7c7509==null||_0x5b3e5f==null)continue;_0x8ee551+=_0x6269ec*_0x5b3e5f-_0x7c7509*_0x537cef;}return _0x8ee551/0x2;},_0x55bd91=(_0xaa2902,_0x5497bf)=>{const _0xe0e668=_0x417620;if(!_0xaa2902)return![];const _0x4b429e=_0xaa2902[0x0],_0x3034f6=_0xaa2902[0x1];let _0x42efc9=![];for(let _0x1f0aa8=0x0,_0xe97ff7=_0x5497bf[_0xe0e668(0xe0)]-0x1;_0x1f0aa8<_0x5497bf[_0xe0e668(0xe0)];_0xe97ff7=_0x1f0aa8++){const _0x33ada7=_0x5497bf[_0x1f0aa8][0x0],_0x2595f6=_0x5497bf[_0x1f0aa8][0x1],_0x31525e=_0x5497bf[_0xe97ff7][0x0],_0x12750a=_0x5497bf[_0xe97ff7][0x1],_0x52ce23=_0x2595f6>_0x3034f6!==_0x12750a>_0x3034f6&&_0x4b429e<(_0x31525e-_0x33ada7)*(_0x3034f6-_0x2595f6)/(_0x12750a-_0x2595f6)+_0x33ada7;if(_0x52ce23)_0x42efc9=!_0x42efc9;}return _0x42efc9;},_0x28b79a=_0x1e93c7=>{const _0x52b392=_0x417620,_0x28cfd8=[];let _0x1d2c5d=null,_0xdd72a4=null;for(let _0x13a924=0x0;_0x13a924<_0x1e93c7[_0x52b392(0xe0)];_0x13a924++){const _0x5d837a=_0x1e93c7[_0x13a924];if(!_0x5d837a)continue;const _0x5d19ea=_0x5d837a[0x0],_0x4190dd=_0x5d837a[0x1];if(_0x5d19ea==null||_0x4190dd==null||Number[_0x52b392(0xec)](_0x5d19ea)||Number[_0x52b392(0xec)](_0x4190dd))continue;const _0x2f059b=_0x2bcf71+_0x5d19ea*_0x214136,_0x473e13=_0x4d2d0a+_0x4190dd*_0x301e53;if(_0x1d2c5d!==null&&_0xdd72a4!==null&&_0x1d2c5d===_0x2f059b&&_0xdd72a4===_0x473e13){_0x1d2c5d=_0x2f059b,_0xdd72a4=_0x473e13;continue;}_0x28cfd8[_0x52b392(0xdc)]([_0x2f059b,_0x473e13]),_0x1d2c5d=_0x2f059b,_0xdd72a4=_0x473e13;}if(_0x28cfd8[_0x52b392(0xe0)]===0x0)return _0x28cfd8;const _0x10a459=_0x28cfd8[0x0],_0x256d37=_0x28cfd8[_0x28cfd8[_0x52b392(0xe0)]-0x1];if(_0x10a459[0x0]!==_0x256d37[0x0]||_0x10a459[0x1]!==_0x256d37[0x1])_0x28cfd8[_0x52b392(0xdc)]([_0x10a459[0x0],_0x10a459[0x1]]);return _0x28cfd8;},_0x5f1767=_0xa2cd96[_0x417620(0xe0)]-0x1;for(let _0xee1567=0x0;_0xee1567<_0xa2cd96[_0x417620(0xe0)];_0xee1567++){const _0xa5b0ec=_0xa2cd96[_0xee1567],_0x314bd6=_0xee1567<_0x5f1767?_0xa2cd96[_0xee1567+0x1]:Infinity,_0x214ff0=Array[_0x417620(0xed)]({'length':this[_0x417620(0x110)][_0x417620(0xe0)]});let _0x3aa4fb=![];for(let _0x3657b4=0x0;_0x3657b4<this[_0x417620(0x110)][_0x417620(0xe0)];_0x3657b4++){const _0x405a2a=this[_0x417620(0x110)][_0x3657b4],_0x30113e=_0x405a2a>=_0xa5b0ec&&_0x405a2a<_0x314bd6?0x1:0x0;if(_0x30113e)_0x3aa4fb=!![];_0x214ff0[_0x3657b4]=_0x30113e;}if(!_0x3aa4fb)continue;const _0x271719=contours()[_0x417620(0xf9)]([this['nx'],this['ny']])[_0x417620(0xd9)]([0.5]),_0x33b424=_0x271719[_0x417620(0x126)]?_0x271719[_0x417620(0x126)](_0x214ff0):_0x271719(_0x214ff0);if(!_0x33b424||_0x33b424[_0x417620(0xe0)]===0x0)continue;const _0xdd82a6=[];for(const _0x31b5a8 of _0x33b424){const _0x127560=_0x31b5a8&&_0x31b5a8[_0x417620(0xf1)];if(!_0x127560)continue;for(const _0x3ca4df of _0x127560){let _0x16a428=[];if(Array['isArray'](_0x3ca4df)&&_0x3ca4df[_0x417620(0xe0)]>0x0&&typeof _0x3ca4df[0x0][0x0]==='number')_0x16a428=[_0x3ca4df];else{if(Array[_0x417620(0x11a)](_0x3ca4df))_0x16a428=_0x3ca4df;else continue;}const _0x389f14=_0x16a428[_0x417620(0x101)](_0x52c6e3=>({'ring':_0x52c6e3,'area':Math[_0x417620(0xff)](_0x4e5ded(_0x52c6e3))}))['sort']((_0x50126b,_0x21ba53)=>_0x21ba53[_0x417620(0xd1)]-_0x50126b[_0x417620(0xd1)]),_0x3e1e20=Array[_0x417620(0xed)]({'length':_0x389f14[_0x417620(0xe0)]})['fill'](![]);for(let _0x405e22=0x0;_0x405e22<_0x389f14[_0x417620(0xe0)];_0x405e22++){if(_0x3e1e20[_0x405e22])continue;const _0x35d827=_0x389f14[_0x405e22][_0x417620(0x111)];_0x3e1e20[_0x405e22]=!![];const _0x47e128=[];for(let _0x44e5eb=0x0;_0x44e5eb<_0x389f14[_0x417620(0xe0)];_0x44e5eb++){if(_0x3e1e20[_0x44e5eb])continue;const _0x418c38=_0x389f14[_0x44e5eb][_0x417620(0x111)],_0x3c7625=_0x418c38[0x0];_0x3c7625&&_0x55bd91(_0x3c7625,_0x35d827)&&(_0x47e128[_0x417620(0xdc)](_0x418c38),_0x3e1e20[_0x44e5eb]=!![]);}const _0x1b3c94=_0x28b79a(_0x35d827);if(_0x1b3c94['length']<0x4)continue;const _0x5c7983=[];for(const _0x97d1a4 of _0x47e128){const _0x364e96=_0x28b79a(_0x97d1a4);if(_0x364e96['length']>=0x4)_0x5c7983[_0x417620(0xdc)](_0x364e96);}_0xdd82a6[_0x417620(0xdc)]({'type':_0x417620(0x10a),'properties':{'z':_0xa5b0ec},'geometry':{'type':'Polygon','coordinates':[_0x1b3c94,..._0x5c7983]}});}}}_0xdd82a6[_0x417620(0xe0)]&&this[_0x417620(0xda)][_0x417620(0xd4)](_0xa5b0ec,_0xdd82a6);}}if(typeof _0x1ef406!==_0x417620(0xd5)){const _0x4daee8=this['_maskCache'][_0x417620(0xd6)](_0x1ef406)||[],_0x509faf=this[_0x417620(0xe1)]?this['sortFeaturesByArea'](_0x4daee8):_0x4daee8;return{'type':'FeatureCollection','features':_0x509faf};}const _0x561052=[];for(const _0xf866a3 of this[_0x417620(0xda)][_0x417620(0x110)]()){_0x561052[_0x417620(0xdc)](..._0xf866a3);}const _0x3208d4=this[_0x417620(0xe1)]?this[_0x417620(0xe1)](_0x561052):_0x561052;return{'type':'FeatureCollection','features':_0x3208d4};}[a3_0xab1a38(0x107)](){const _0x492ebd=a3_0xab1a38,_0x3af93a=Array['from']({'length':this['nx']});for(let _0x387989=0x0;_0x387989<this['nx'];_0x387989++){_0x3af93a[_0x387989]=new a3_0x58bab9(this[_0x492ebd(0x122)])['plus'](new a3_0x58bab9(_0x387989)['times'](this[_0x492ebd(0xf8)]))[_0x492ebd(0x11f)]();}const _0x36583a=Array['from']({'length':this['ny']});for(let _0x1a8879=0x0;_0x1a8879<this['ny'];_0x1a8879++){_0x36583a[_0x1a8879]=new a3_0x58bab9(this[_0x492ebd(0x10b)])['plus'](new a3_0x58bab9(_0x1a8879)[_0x492ebd(0x11e)](this[_0x492ebd(0xdd)]))[_0x492ebd(0x11f)]();}const _0x1f5e52=Array['from']({'length':this['nx']*this['ny']});for(let _0x122d13=0x0;_0x122d13<this[_0x492ebd(0x110)][_0x492ebd(0xe0)];_0x122d13++){const _0x59daac=Math[_0x492ebd(0x119)](_0x122d13/this['nx']),_0x3f3ae1=_0x122d13%this['nx'],_0xf7d88b=_0x3af93a[_0x3f3ae1],_0xd2a0ea=_0x36583a[_0x59daac],_0x2db974=this[_0x492ebd(0x110)][_0x122d13];_0xd2a0ea&&_0xf7d88b&&(_0x1f5e52[_0x122d13]={'lng':_0xf7d88b,'lat':_0xd2a0ea,'val':_0x2db974});}return _0x1f5e52;}[a3_0xab1a38(0xf7)](){const _0x5e6647=a3_0xab1a38;let _0x298e94=-Infinity,_0x2061ad=Infinity;for(let _0x6ca544=0x0;_0x6ca544<this[_0x5e6647(0x110)][_0x5e6647(0xe0)];_0x6ca544++){const _0x346bd3=this['values'][_0x6ca544];if(_0x346bd3>_0x298e94)_0x298e94=_0x346bd3;if(_0x346bd3<_0x2061ad)_0x2061ad=_0x346bd3;}this['minVal']=_0x2061ad,this[_0x5e6647(0xd3)]=_0x298e94;}[a3_0xab1a38(0x116)](){const _0x1940be=a3_0xab1a38,_0x13979a=[];if(this['minVal']===Infinity||this[_0x1940be(0xd3)]===-Infinity)return _0x13979a;for(let _0x3400c3=this[_0x1940be(0xe7)]-0x1;_0x3400c3<=this[_0x1940be(0xd3)]+0x1;_0x3400c3++){_0x13979a[_0x1940be(0xdc)](_0x3400c3);}return _0x13979a;}[a3_0xab1a38(0xe1)](_0x21aa85){const _0x220b1a=a3_0xab1a38;return _0x21aa85[_0x220b1a(0x101)](_0x44791e=>{const _0x3a1af2=_0x220b1a;try{const _0x19a7c2=a3_0x542ccd(_0x44791e)||0x0;_0x44791e[_0x3a1af2(0xe5)]={..._0x44791e['properties']||{},'__area':_0x19a7c2};}catch{_0x44791e[_0x3a1af2(0xe5)]={..._0x44791e[_0x3a1af2(0xe5)]||{},'__area':0x0};}return _0x44791e;})[_0x220b1a(0xe6)]((_0x4b1ce1,_0x2ac477)=>_0x2ac477[_0x220b1a(0xe5)][_0x220b1a(0x113)]-_0x4b1ce1[_0x220b1a(0xe5)][_0x220b1a(0x113)])[_0x220b1a(0x123)](_0x51e5c9=>_0x51e5c9[_0x220b1a(0xe5)]&&'__area'in _0x51e5c9[_0x220b1a(0xe5)]&&_0x51e5c9['properties'][_0x220b1a(0x113)]!==0x0)['map'](_0x1607e2=>{const _0x2189a8=_0x220b1a;if(_0x1607e2[_0x2189a8(0xe5)]&&_0x2189a8(0x113)in _0x1607e2[_0x2189a8(0xe5)]){const {__area:_0x4e24f1,..._0x290146}=_0x1607e2[_0x2189a8(0xe5)];_0x1607e2['properties']=_0x290146;}return _0x1607e2;});}['chunkArray']=(_0x265562,_0x1e619d)=>{const _0x28b89=a3_0xab1a38,_0x262b94=[],_0x4836db=Math[_0x28b89(0xfc)](0x1,Math[_0x28b89(0x112)](_0x265562[_0x28b89(0xe0)]/_0x1e619d));for(let _0x5073df=0x0;_0x5073df<_0x1e619d;_0x5073df++){_0x262b94[_0x28b89(0xdc)](_0x265562['slice'](_0x5073df*_0x4836db,(_0x5073df+0x1)*_0x4836db));}return _0x262b94;};}export default readFileM4;function a3_0x2416(){const _0x345a32=['flat','properties','sort','minVal','hardwareConcurrency','all','16KlNncg','onmessage','isNaN','from','152144fdVPWv','data','192LCoRZt','coordinates','1563263KFbgsC','value','rgba(','module','string','getMinMax','gjLng','size','forEach','clear','max','clipDataByJson','minus','abs','terminate','map','replace','split','chunkArray','text','136941DSCxTd','getJsonData','join','_maskCacheKey','Feature','minLat','plusOffset','clearMaskCache','4458510AEeSSO','该时次未获取到文件','values','ring','ceil','__area','4943590tamlSI','error','getBreaks','252Xrwmye','130xvNqiv','floor','isArray','FeatureCollection','filePath','192sQetiw','times','toNumber','onerror','plus','minLng','filter','rgba(255,255,255,0)','trim','contours','getIsoBandsByLayerBreak','start','features','area','6YZXqhE','maxVal','set','undefined','get','convertTemKtoC','min','thresholds','_maskCache','setParams','push','gjLat','1022549cJRryW','postMessage','length','sortFeaturesByArea','getColorFast','46508TWdYWg'];a3_0x2416=function(){return _0x345a32;};return a3_0x2416();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "m4-w-fast",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",