m4-w-fast 1.0.1 → 1.0.3

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_0x34f088=a3_0x4316;(function(_0x21d8ca,_0x4dd45b){const _0x2a57c6=a3_0x4316,_0x450b94=_0x21d8ca();while(!![]){try{const _0x279b74=parseInt(_0x2a57c6(0xa1))/0x1+-parseInt(_0x2a57c6(0x93))/0x2+-parseInt(_0x2a57c6(0x9c))/0x3*(parseInt(_0x2a57c6(0x75))/0x4)+parseInt(_0x2a57c6(0x87))/0x5+parseInt(_0x2a57c6(0x6e))/0x6*(parseInt(_0x2a57c6(0x94))/0x7)+-parseInt(_0x2a57c6(0x99))/0x8+parseInt(_0x2a57c6(0xb4))/0x9;if(_0x279b74===_0x4dd45b)break;else _0x450b94['push'](_0x450b94['shift']());}catch(_0x1b72f6){_0x450b94['push'](_0x450b94['shift']());}}}(a3_0x41ec,0xeba17));import{points as a3_0x4a740f,featureCollection as a3_0x1dc05c}from'@turf/helpers';import a3_0x2e7201 from'@turf/isolines';import a3_0x4dfc4f from'@turf/isobands';import a3_0x129b5f from'@turf/area';function a3_0x41ec(){const _0x353213=['coordinates','hardwareConcurrency','该时次文件数据异常','getIsoLines','maxVal','plus','5082570CjYaMa','split','filePath','number','__area','minVal','getBreaks','13396thMgyD','contour','slice','isArray','onmessage','geometry','jsonMap','string','all','val','chunkArray','error','minLng','min','times','minLat','json','sort','1083605UhEhVj','terminate','FeatureCollection','getGridPoints','lat','forEach','getIsoBandsFast','lngLineNum','rgba(255,255,255,0)','map','get','isNaN','3016144FphbKK','14mEAaVy','properties','filter','from','latLineNum','2055304rDJCJj','getIsoColor','gjLng','861TDHwuv','该时次未获取到文件','lng','max','trim','954494QhYlJy','postMessage','onerror','setJson','getJson','breaks','module','Polygon','getIsoBands','features','indexOf','set','push','toNumber','getIsoBandsFastBase','getIsoBandsFastByWorker','floor','clipDataByJson','length','7432974HZrMxf','gjLat','text','sortFeaturesByArea'];a3_0x41ec=function(){return _0x353213;};return a3_0x41ec();}function a3_0x4316(_0x291ff4,_0x5c1023){const _0x41ec64=a3_0x41ec();return a3_0x4316=function(_0x43164e,_0x41d3af){_0x43164e=_0x43164e-0x65;let _0x534bf1=_0x41ec64[_0x43164e];return _0x534bf1;},a3_0x4316(_0x291ff4,_0x5c1023);}import a3_0x383de4 from'decimal.js';import{contours}from'd3-contour';export class _readFileDiamond4{[a3_0x34f088(0x70)];[a3_0x34f088(0x85)]=[];[a3_0x34f088(0x9b)]=0x0;[a3_0x34f088(0x65)]=0x0;[a3_0x34f088(0x8e)]=0x0;[a3_0x34f088(0x98)]=0x0;['minLng']=0x0;['minLat']=0x0;[a3_0x34f088(0x7b)]=new Map();['maxVal']=-Infinity;['minVal']=Infinity;constructor(_0x3556c7){const _0x5696a5=a3_0x34f088;this[_0x5696a5(0x70)]=_0x3556c7;}async['start'](){const _0x1969cb=a3_0x34f088,_0x1bd20f=await fetch(this[_0x1969cb(0x70)]);if(!_0x1bd20f['ok'])return _0x1969cb(0x9d);const _0x169f0c=await _0x1bd20f[_0x1969cb(0x66)](),_0x4961dd=_0x169f0c['split']('\x0a');if(_0x4961dd['length']<0x4)return _0x1969cb(0x6a);const _0x32b387=(_0x4961dd[0x1]??'')[_0x1969cb(0xa0)]()[_0x1969cb(0x6f)](/\s+/);let _0x5d3b8e=0x2;while(_0x32b387[_0x1969cb(0xb3)]<0x13){_0x32b387[_0x1969cb(0xad)](...(_0x4961dd[_0x5d3b8e]??'')['trim']()[_0x1969cb(0x6f)](/\s+/)),_0x5d3b8e++;}this[_0x1969cb(0x9b)]=Number(_0x32b387[0x6]);const _0xf562e2=Number(_0x32b387[0x8]),_0x1bf1d2=Number(_0x32b387[0xa]),_0xac5258=Number(_0x32b387[0xb]);this['lngLineNum']=Number(_0x32b387[0xc]),this[_0x1969cb(0x98)]=Number(_0x32b387[0xd]),this[_0x1969cb(0x81)]=_0xf562e2,this[_0x1969cb(0x84)]=_0x1bf1d2,this['gjLat']=Math['abs'](Number(_0x32b387[0x7]))*(_0x1bf1d2>_0xac5258?-0x1:0x1);const _0x1a8956=this[_0x1969cb(0x8e)],_0x274aa1=this[_0x1969cb(0x98)],_0x51969c=_0x1a8956*_0x274aa1;if(_0x51969c===0x0)return;const _0x4d4a31=Array[_0x1969cb(0x97)]({'length':this['lngLineNum']});for(let _0x46d9f=0x0;_0x46d9f<this[_0x1969cb(0x8e)];_0x46d9f++){_0x4d4a31[_0x46d9f]=new a3_0x383de4(_0xf562e2)[_0x1969cb(0x6d)](new a3_0x383de4(_0x46d9f)[_0x1969cb(0x83)](this[_0x1969cb(0x9b)]))[_0x1969cb(0xae)]();}const _0x41d91c=Array[_0x1969cb(0x97)]({'length':this[_0x1969cb(0x98)]});for(let _0xa0917c=0x0;_0xa0917c<this['latLineNum'];_0xa0917c++){_0x41d91c[_0xa0917c]=new a3_0x383de4(_0x1bf1d2)[_0x1969cb(0x6d)](new a3_0x383de4(_0xa0917c)['times'](this[_0x1969cb(0x65)]))['toNumber']();}this[_0x1969cb(0x85)]=Array[_0x1969cb(0x97)]({'length':this['lngLineNum']*this['latLineNum']});let _0x193767=0x0;for(let _0x100855=_0x5d3b8e;_0x100855<_0x4961dd[_0x1969cb(0xb3)]&&_0x193767<_0x51969c;_0x100855++){const _0x5a94b5=_0x4961dd[_0x100855]??'',_0x216815=_0x5a94b5[_0x1969cb(0xa0)]()['split'](/\s+/);if(!_0x216815)continue;for(let _0x45e773=0x0;_0x45e773<_0x216815['length'];_0x45e773++){const _0x379914=Number(_0x216815[_0x45e773]);this[_0x1969cb(0x6c)]=Math[_0x1969cb(0x9f)](this[_0x1969cb(0x6c)],_0x379914),this[_0x1969cb(0x73)]=Math[_0x1969cb(0x82)](this['minVal'],_0x379914);const _0x363519=Math[_0x1969cb(0xb1)](_0x193767/_0x1a8956),_0x862dad=_0x193767%_0x1a8956,_0xdabb64=_0x4d4a31[_0x862dad],_0x3aa044=_0x41d91c[_0x363519];_0x3aa044&&_0xdabb64&&(this[_0x1969cb(0x85)][_0x193767]={'lat':_0x3aa044,'lng':_0xdabb64,'val':_0x379914}),_0x193767++;}}this['json']=this[_0x1969cb(0x85)][_0x1969cb(0x96)](_0x9ed716=>_0x9ed716!==undefined);}[a3_0x34f088(0xa5)](){const _0x109dd3=a3_0x34f088;return this[_0x109dd3(0x85)];}[a3_0x34f088(0xa4)](_0x4ec173){const _0x489d46=a3_0x34f088;this[_0x489d46(0x85)]=_0x4ec173,this[_0x489d46(0x7b)]=new Map(),this[_0x489d46(0x85)][_0x489d46(0x8c)](_0x145b59=>{const _0x55b0c7=_0x489d46;this[_0x55b0c7(0x7b)][_0x55b0c7(0xac)](_0x145b59['lng']+'-'+_0x145b59[_0x55b0c7(0x8b)],_0x145b59[_0x55b0c7(0x7e)]);});}[a3_0x34f088(0x74)](){const _0xdb5a16=a3_0x34f088,_0x4c9ada=Math[_0xdb5a16(0x9f)](...this[_0xdb5a16(0x85)][_0xdb5a16(0x90)](_0x9324fb=>_0x9324fb['val'])),_0x18a7c3=Math[_0xdb5a16(0x82)](...this[_0xdb5a16(0x85)][_0xdb5a16(0x90)](_0x494218=>_0x494218[_0xdb5a16(0x7e)])),_0x4fcdbc=[];for(let _0x43ead0=_0x18a7c3-0x1;_0x43ead0<_0x4c9ada+0x1;_0x43ead0++){_0x4fcdbc[_0xdb5a16(0xad)](_0x43ead0);}return _0x4fcdbc;}['getGridPoints'](){const _0x5427a5=a3_0x34f088,_0x413264=this[_0x5427a5(0x85)][_0x5427a5(0x90)](_0x29449b=>[_0x29449b[_0x5427a5(0x9e)],_0x29449b['lat']]),_0x13a4fa=a3_0x4a740f(_0x413264),_0x453e5e=this['jsonMap'];return _0x13a4fa[_0x5427a5(0xaa)][_0x5427a5(0x8c)](_0x57b635=>{const _0x3a9147=_0x5427a5;_0x57b635['properties']={'z':_0x453e5e[_0x3a9147(0x91)](_0x57b635['geometry'][_0x3a9147(0x68)][0x0]+'-'+_0x57b635[_0x3a9147(0x7a)]['coordinates'][0x1])||0x0};}),_0x13a4fa;}[a3_0x34f088(0x6b)](_0x45c647=[]){const _0x4c17c1=a3_0x34f088;_0x45c647[_0x4c17c1(0xb3)]===0x0&&(_0x45c647=this[_0x4c17c1(0x74)]());const _0x3dc87e=this[_0x4c17c1(0x8a)]();return a3_0x2e7201(_0x3dc87e,_0x45c647,{'zProperty':'z'});}[a3_0x34f088(0xa9)](_0x345e71=[]){const _0x1899cd=a3_0x34f088;_0x345e71[_0x1899cd(0xb3)]===0x0&&(_0x345e71=this[_0x1899cd(0x74)]());const _0x235d6e=this['getGridPoints']();return a3_0x4dfc4f(_0x235d6e,_0x345e71,{'zProperty':'z'});}[a3_0x34f088(0x9a)](_0x1ace18,_0xfcfa95,_0x2c4200){const _0xf25e1d=a3_0x34f088;let _0x2541d1=_0xf25e1d(0x8f);for(let _0x5b312c=0x0;_0x5b312c<_0xfcfa95[_0xf25e1d(0xb3)]-0x1;_0x5b312c++){_0x5b312c<_0xfcfa95[_0xf25e1d(0xb3)]-0x1&&(_0xfcfa95[_0x5b312c]+'-'+_0xfcfa95[_0x5b312c+0x1]===_0x1ace18&&(typeof _0x2c4200[_0x5b312c]==_0xf25e1d(0x7c)?_0x2541d1=_0x2c4200[_0x5b312c]:_0x2541d1='rgba('+_0x2c4200[_0x5b312c][0x0]+','+_0x2c4200[_0x5b312c][0x1]+','+_0x2c4200[_0x5b312c][0x2]+','+(_0x2c4200[_0x5b312c][0x3]||_0x2c4200[_0x5b312c][0x3]===0x0?_0x2c4200[_0x5b312c][0x3]:0x1)+')'));}return _0x2541d1;}[a3_0x34f088(0x8d)](_0x496ec3=[]){const _0x22fe05=a3_0x34f088,_0x25df52=this[_0x22fe05(0xaf)](_0x496ec3);let _0x252d47=[];const {values:_0x1c22bc,nx:_0x57d1a9,ny:_0x566021}=_0x25df52;_0x496ec3=_0x25df52[_0x22fe05(0xa6)];if(!_0x1c22bc)return{'type':_0x22fe05(0x89),'features':[]};const _0x2a8901=contours()['size']([_0x57d1a9,_0x566021]);for(let _0x15c37d=0x0;_0x15c37d<_0x496ec3[_0x22fe05(0xb3)];_0x15c37d++){const _0x189c86=_0x496ec3[_0x15c37d];if(_0x189c86<this[_0x22fe05(0x73)]||_0x189c86>this['maxVal'])continue;const _0x902811=_0x2a8901[_0x22fe05(0x76)](_0x1c22bc,_0x189c86);if(!_0x902811||!_0x902811[_0x22fe05(0x68)])continue;for(const _0x1d5bd6 of _0x902811[_0x22fe05(0x68)]){let _0x5937e5=[];if(Array[_0x22fe05(0x78)](_0x1d5bd6)&&_0x1d5bd6[_0x22fe05(0xb3)]>0x0&&Array[_0x22fe05(0x78)](_0x1d5bd6[0x0])&&typeof _0x1d5bd6[0x0][0x0]===_0x22fe05(0x71))_0x5937e5=[_0x1d5bd6];else{if(Array['isArray'](_0x1d5bd6))_0x5937e5=_0x1d5bd6;else continue;}for(const _0x39e544 of _0x5937e5){const _0x468798=_0x39e544[_0x22fe05(0x90)](_0x46b502=>{const _0xf61d9d=_0x22fe05,_0x1b61fe=_0x46b502[0x0],_0x1ae4f0=_0x46b502[0x1];if(_0x1b61fe==null||_0x1ae4f0==null||Number[_0xf61d9d(0x92)](_0x1b61fe)||Number[_0xf61d9d(0x92)](_0x1ae4f0))return null;const _0x1055a5=new a3_0x383de4(this[_0xf61d9d(0x81)])[_0xf61d9d(0x6d)](new a3_0x383de4(_0x1b61fe)['times'](this[_0xf61d9d(0x9b)]))[_0xf61d9d(0xae)](),_0x42c71a=new a3_0x383de4(this['minLat'])['plus'](new a3_0x383de4(_0x1ae4f0)[_0xf61d9d(0x83)](this[_0xf61d9d(0x65)]))['toNumber']();return[_0x1055a5,_0x42c71a];})[_0x22fe05(0x96)](_0xf272c9=>_0xf272c9!==null),_0x2d1193=_0x468798['filter']((_0x25bac2,_0x48744e,_0x4c1e42)=>{if(_0x48744e===0x0)return!![];const _0x1aabaf=_0x4c1e42[_0x48744e-0x1];return!(_0x25bac2[0x0]===_0x1aabaf[0x0]&&_0x25bac2[0x1]===_0x1aabaf[0x1]);});if(_0x2d1193[_0x22fe05(0xb3)]<0x3)continue;const _0x4f72bf=_0x2d1193[0x0],_0x216011=_0x2d1193[_0x2d1193['length']-0x1];(_0x4f72bf[0x0]!==_0x216011[0x0]||_0x4f72bf[0x1]!==_0x216011[0x1])&&_0x2d1193[_0x22fe05(0xad)]([_0x4f72bf[0x0],_0x4f72bf[0x1]]),_0x252d47[_0x22fe05(0xad)]({'type':'Feature','properties':{'z':_0x189c86},'geometry':{'type':_0x22fe05(0xa8),'coordinates':[_0x2d1193]}});}}}return _0x252d47=this[_0x22fe05(0x67)](_0x252d47),{'type':_0x22fe05(0x89),'features':_0x252d47};}['getColorFast'](_0x55cc2f,_0x27a4a4,_0x108349){const _0x2330e7=a3_0x34f088;let _0x18a792=_0x2330e7(0x8f);const _0x49bdf2=_0x27a4a4[_0x2330e7(0xab)](_0x55cc2f);if(typeof _0x108349[_0x49bdf2]=='string')_0x18a792=_0x108349[_0x49bdf2];else _0x49bdf2!==-0x1&&(_0x18a792='rgba('+_0x108349[_0x49bdf2][0x0]+','+_0x108349[_0x49bdf2][0x1]+','+_0x108349[_0x49bdf2][0x2]+','+(_0x108349[_0x49bdf2][0x3]||_0x108349[_0x49bdf2][0x3]===0x0?_0x108349[_0x49bdf2][0x3]:0x1)+')');return _0x18a792;}[a3_0x34f088(0x7f)]=(_0x32373a,_0x5423f8)=>{const _0x55f589=a3_0x34f088,_0x2ac52a=[],_0x1af0fa=Math[_0x55f589(0x9f)](0x1,Math['ceil'](_0x32373a['length']/_0x5423f8));for(let _0x506929=0x0;_0x506929<_0x5423f8;_0x506929++){_0x2ac52a['push'](_0x32373a[_0x55f589(0x77)](_0x506929*_0x1af0fa,(_0x506929+0x1)*_0x1af0fa));}return _0x2ac52a;};[a3_0x34f088(0xb2)]=async(_0x3755da,_0x3b4e70,_0x545263)=>{const _0x387170=a3_0x34f088,_0x3ff54d=navigator['hardwareConcurrency']-0x4||0x1,_0x19f914=Math[_0x387170(0x82)](_0x3ff54d,Math[_0x387170(0x9f)](0x1,_0x3755da[_0x387170(0xaa)][_0x387170(0xb3)])),_0x1f21dd=this[_0x387170(0x7f)](_0x3755da[_0x387170(0xaa)],_0x19f914),_0x5779de=[],_0x2a05cf=_0x1f21dd['map'](_0x3fcf8a=>{const _0x2ec8c9=_0x387170,_0x327ed3=new Worker(_0x545263,{'type':_0x2ec8c9(0xa7)});return _0x5779de[_0x2ec8c9(0xad)](_0x327ed3),new Promise(_0x2e2288=>{const _0x59517c=_0x2ec8c9;_0x327ed3['onmessage']=_0x5594ba=>{const _0x39fc86=a3_0x4316;_0x2e2288(_0x5594ba['data'][_0x39fc86(0xaa)]);},_0x327ed3[_0x59517c(0xa3)]=_0x34806a=>{const _0x546a2b=_0x59517c;console[_0x546a2b(0x80)](_0x34806a);},_0x327ed3[_0x59517c(0xa2)]({'isoChunk':_0x3fcf8a,'gansuFeatures':_0x3b4e70[_0x59517c(0xaa)]});});}),_0x409d8b=await Promise[_0x387170(0x7d)](_0x2a05cf);_0x5779de['forEach'](_0x2ccf32=>_0x2ccf32[_0x387170(0x88)]());const _0x32cf96=_0x409d8b['flat']();return a3_0x1dc05c(_0x32cf96);};[a3_0x34f088(0xb0)]=async(_0xaed971=[],_0x25bd90)=>{const _0x582dc=a3_0x34f088,_0x55942e=this['getIsoBandsFastBase'](_0xaed971);let _0x429b6a=[];const {values:_0x16126c,nx:_0x1a2fb1,ny:_0x598c5d}=_0x55942e;_0xaed971=_0x55942e[_0x582dc(0xa6)];if(!_0x16126c)return{'type':_0x582dc(0x89),'features':[]};const _0x586486=[],_0x308262=navigator[_0x582dc(0x69)]-0x4||0x1,_0x47a6ba=Math[_0x582dc(0x82)](_0x308262,Math['max'](0x1,_0xaed971[_0x582dc(0xb3)])),_0x237f4e=this[_0x582dc(0x7f)](_0xaed971,_0x47a6ba),_0x446135=_0x237f4e[_0x582dc(0x90)](_0x16b162=>{const _0x481c23=_0x582dc,_0x49733e=new Worker(_0x25bd90,{'type':_0x481c23(0xa7)});return _0x586486[_0x481c23(0xad)](_0x49733e),new Promise(_0x561b08=>{const _0x5487c3=_0x481c23;_0x49733e[_0x5487c3(0x79)]=_0xf157d3=>{const _0x34f238=_0x5487c3;_0x561b08(_0xf157d3['data'][_0x34f238(0xaa)]);},_0x49733e[_0x5487c3(0xa3)]=_0x545adb=>{console['error'](_0x545adb);},_0x49733e['postMessage']({'breaks':_0x16b162,'values':_0x16126c,'nx':_0x1a2fb1,'ny':_0x598c5d,'minVal':this[_0x5487c3(0x73)],'maxVal':this[_0x5487c3(0x6c)],'minLng':this[_0x5487c3(0x81)],'minLat':this['minLat'],'gjLng':this['gjLng'],'gjLat':this[_0x5487c3(0x65)]});});}),_0x394e0f=await Promise[_0x582dc(0x7d)](_0x446135);return _0x586486[_0x582dc(0x8c)](_0x2ae4db=>_0x2ae4db[_0x582dc(0x88)]()),_0x394e0f[_0x582dc(0x8c)](_0x4403ac=>{_0x429b6a['push'](..._0x4403ac);}),_0x429b6a=this[_0x582dc(0x67)](_0x429b6a),{'type':_0x582dc(0x89),'features':_0x429b6a};};[a3_0x34f088(0xaf)]=(_0x360646=[])=>{const _0x23397f=a3_0x34f088;if(this[_0x23397f(0x85)][_0x23397f(0xb3)]===0x0)return{'type':_0x23397f(0x89),'features':[]};if(_0x360646[_0x23397f(0xb3)]===0x0)_0x360646=this[_0x23397f(0x74)]();const _0x5af15e=this[_0x23397f(0x85)]['map'](_0x3b94ad=>_0x3b94ad[_0x23397f(0x7e)]),_0x3d9cbc=this[_0x23397f(0x8e)],_0x5f35dd=this[_0x23397f(0x98)];return{'values':_0x5af15e,'breaks':_0x360646,'nx':_0x3d9cbc,'ny':_0x5f35dd};};['sortFeaturesByArea']=_0x50f123=>{const _0x7b576c=a3_0x34f088;return _0x50f123[_0x7b576c(0x90)](_0x277b59=>{const _0xe052d7=_0x7b576c;try{const _0x5619a3=a3_0x129b5f(_0x277b59)||0x0;_0x277b59[_0xe052d7(0x95)]={..._0x277b59[_0xe052d7(0x95)]||{},'__area':_0x5619a3};}catch{_0x277b59[_0xe052d7(0x95)]={..._0x277b59['properties']||{},'__area':0x0};}return _0x277b59;})[_0x7b576c(0x86)]((_0x2ac93b,_0x52b6db)=>_0x52b6db[_0x7b576c(0x95)][_0x7b576c(0x72)]-_0x2ac93b[_0x7b576c(0x95)][_0x7b576c(0x72)])['filter'](_0x24d810=>_0x24d810[_0x7b576c(0x95)]&&_0x7b576c(0x72)in _0x24d810['properties']&&_0x24d810[_0x7b576c(0x95)][_0x7b576c(0x72)]!==0x0)[_0x7b576c(0x90)](_0x176e49=>{const _0x50fadd=_0x7b576c;if(_0x176e49[_0x50fadd(0x95)]&&_0x50fadd(0x72)in _0x176e49['properties']){const {__area:_0x5b4249,..._0x3be169}=_0x176e49[_0x50fadd(0x95)];_0x176e49[_0x50fadd(0x95)]=_0x3be169;}return _0x176e49;});};}export default _readFileDiamond4;
1
+ const a3_0x18cdf3=a3_0x2ba9;(function(_0x226380,_0x582047){const _0x26b6df=a3_0x2ba9,_0x82f293=_0x226380();while(!![]){try{const _0x5df156=-parseInt(_0x26b6df(0x1ac))/0x1+parseInt(_0x26b6df(0x1d5))/0x2+-parseInt(_0x26b6df(0x1ae))/0x3*(parseInt(_0x26b6df(0x1c5))/0x4)+parseInt(_0x26b6df(0x1a3))/0x5*(parseInt(_0x26b6df(0x1c7))/0x6)+-parseInt(_0x26b6df(0x1c2))/0x7+parseInt(_0x26b6df(0x1b6))/0x8+-parseInt(_0x26b6df(0x1a6))/0x9;if(_0x5df156===_0x582047)break;else _0x82f293['push'](_0x82f293['shift']());}catch(_0x118a4b){_0x82f293['push'](_0x82f293['shift']());}}}(a3_0x41a2,0x541ed));function a3_0x2ba9(_0x54fff2,_0x4efac1){const _0x41a231=a3_0x41a2();return a3_0x2ba9=function(_0x2ba9b5,_0xf4f334){_0x2ba9b5=_0x2ba9b5-0x1a3;let _0x11d2bd=_0x41a231[_0x2ba9b5];return _0x11d2bd;},a3_0x2ba9(_0x54fff2,_0x4efac1);}import{points as a3_0x8ef7e,featureCollection as a3_0x523364}from'@turf/helpers';import a3_0x3e5aab from'@turf/isolines';import a3_0xb0d9d from'@turf/isobands';import a3_0x1af063 from'@turf/area';import a3_0x1267b0 from'decimal.js';function a3_0x41a2(){const _0x475002=['replace','abs','maxVal','split','592291jiKscj','Polygon','from','16HhPSvs','lat','406302qjIwZa','map','contours','onerror','undefined','error','convertTemKtoC','getGridPoints','length','geometry','push','getIsoBandsFast','getIsoLines','getIsoBandsFastBase','976336SlpIKZ','minLng','getIsoBandsByLayerBreak','properties','terminate','max','__area','gjLng','rgba(255,255,255,0)','ring','该时次未获取到文件','data','minVal','Feature','isArray','FeatureCollection','thresholds','clipDataByJson','getColorFast','json','set','toNumber','jsonMap','size','chunkArray','hardwareConcurrency','times','get','all','floor','clearMaskCache','filePath','sortFeaturesByArea','flat','min','values','indexOf','number','postMessage','val','breaks','getBreaks','minLat','20qXqJJR','rgba(','isNaN','749898KjBoFA','lngLineNum','clear','module','features','gjLat','56940cMwYPe','forEach','154221ebJajk','_maskCache','area','lng','plus','getIsoBandsFastByWorker','latLineNum','setJson','128192YSMqiI','coordinates','sort','string','start','onmessage','ceil','getIsoBands'];a3_0x41a2=function(){return _0x475002;};return a3_0x41a2();}import{contours}from'd3-contour';export class _readFileDiamond4{[a3_0x18cdf3(0x1f4)];['json']=[];[a3_0x18cdf3(0x1dc)]=0x0;[a3_0x18cdf3(0x1ab)]=0x0;[a3_0x18cdf3(0x1a7)]=0x0;['latLineNum']=0x0;[a3_0x18cdf3(0x1d6)]=0x0;[a3_0x18cdf3(0x1ff)]=0x0;[a3_0x18cdf3(0x1eb)]=new Map();[a3_0x18cdf3(0x1c0)]=-Infinity;['minVal']=Infinity;['_maskCacheKey']='';[a3_0x18cdf3(0x1af)]=new Map();constructor(_0x3d8003){const _0x34f428=a3_0x18cdf3;this[_0x34f428(0x1f4)]=_0x3d8003;}async[a3_0x18cdf3(0x1ba)](_0x5c27b9){const _0xce6dbd=a3_0x18cdf3,_0x1a3c5a=await fetch(this['filePath']);if(!_0x1a3c5a['ok'])return _0xce6dbd(0x1df);const _0x100b70=await _0x1a3c5a['text'](),_0xce9c1f=_0x100b70[_0xce6dbd(0x1be)](/\r\n/g,'\x0a')[_0xce6dbd(0x1be)](/\r/g,'\x0a')[_0xce6dbd(0x1c1)]('\x0a');if(_0xce9c1f['length']<0x4)return'该时次文件数据异常';const _0x3f927f=(_0xce9c1f[0x1]??'')['trim']()[_0xce6dbd(0x1c1)](/\s+/);let _0x18e0c8=0x2;while(_0x3f927f[_0xce6dbd(0x1cf)]<0x13){_0x3f927f[_0xce6dbd(0x1d1)](...(_0xce9c1f[_0x18e0c8]??'')['trim']()['split'](/\s+/)),_0x18e0c8++;}this[_0xce6dbd(0x1dc)]=Number(_0x3f927f[0x6]);const _0x422287=Number(_0x3f927f[0x8]),_0x45acbe=Number(_0x3f927f[0xa]),_0x4a1e28=Number(_0x3f927f[0xb]);this[_0xce6dbd(0x1a7)]=Number(_0x3f927f[0xc]),this[_0xce6dbd(0x1b4)]=Number(_0x3f927f[0xd]),this[_0xce6dbd(0x1d6)]=_0x422287,this[_0xce6dbd(0x1ff)]=_0x45acbe,this[_0xce6dbd(0x1ab)]=Math['abs'](Number(_0x3f927f[0x7]))*(_0x45acbe>_0x4a1e28?-0x1:0x1);const _0x2066c5=this[_0xce6dbd(0x1a7)],_0x3c252e=this[_0xce6dbd(0x1b4)],_0x16ffa9=_0x2066c5*_0x3c252e;if(_0x16ffa9===0x0)return;const _0x3de32a=Array['from']({'length':this[_0xce6dbd(0x1a7)]});for(let _0x3c36f0=0x0;_0x3c36f0<this[_0xce6dbd(0x1a7)];_0x3c36f0++){_0x3de32a[_0x3c36f0]=new a3_0x1267b0(_0x422287)[_0xce6dbd(0x1b2)](new a3_0x1267b0(_0x3c36f0)[_0xce6dbd(0x1ef)](this[_0xce6dbd(0x1dc)]))[_0xce6dbd(0x1ea)]();}const _0x347e56=Array['from']({'length':this[_0xce6dbd(0x1b4)]});for(let _0x391ef7=0x0;_0x391ef7<this[_0xce6dbd(0x1b4)];_0x391ef7++){_0x347e56[_0x391ef7]=new a3_0x1267b0(_0x45acbe)[_0xce6dbd(0x1b2)](new a3_0x1267b0(_0x391ef7)[_0xce6dbd(0x1ef)](this[_0xce6dbd(0x1ab)]))[_0xce6dbd(0x1ea)]();}this['json']=Array[_0xce6dbd(0x1c4)]({'length':this[_0xce6dbd(0x1a7)]*this[_0xce6dbd(0x1b4)]});let _0x1bcc34=0x0;for(let _0x432940=_0x18e0c8;_0x432940<_0xce9c1f['length']&&_0x1bcc34<_0x16ffa9;_0x432940++){const _0x1fdd6a=_0xce9c1f[_0x432940]??'',_0x71367=_0x1fdd6a['trim']()[_0xce6dbd(0x1c1)](/\s+/);if(!_0x71367)continue;for(let _0x560c40=0x0;_0x560c40<_0x71367[_0xce6dbd(0x1cf)];_0x560c40++){let _0xb179c8=Number(_0x71367[_0x560c40]);_0x5c27b9?.[_0xce6dbd(0x1cd)]&&(_0xb179c8=new a3_0x1267b0(_0xb179c8)['minus'](272.15)[_0xce6dbd(0x1ea)]());this[_0xce6dbd(0x1c0)]=Math['max'](this[_0xce6dbd(0x1c0)],_0xb179c8),this[_0xce6dbd(0x1e1)]=Math[_0xce6dbd(0x1f7)](this[_0xce6dbd(0x1e1)],_0xb179c8);const _0x3853ce=Math[_0xce6dbd(0x1f2)](_0x1bcc34/_0x2066c5),_0x5daf3a=_0x1bcc34%_0x2066c5,_0x32711e=_0x3de32a[_0x5daf3a],_0x135fb6=_0x347e56[_0x3853ce];_0x135fb6&&_0x32711e&&(this['json'][_0x1bcc34]={'lat':_0x135fb6,'lng':_0x32711e,'val':_0xb179c8}),_0x1bcc34++;}}this[_0xce6dbd(0x1e8)]=this['json']['filter'](_0x3f4b84=>_0x3f4b84!==undefined);}['getJson'](){const _0xd47927=a3_0x18cdf3;return this[_0xd47927(0x1e8)];}[a3_0x18cdf3(0x1b5)](_0x259594){const _0x2566cb=a3_0x18cdf3;this[_0x2566cb(0x1e8)]=_0x259594,this[_0x2566cb(0x1eb)]=new Map(),this[_0x2566cb(0x1e8)]['forEach'](_0x19471d=>{const _0x38397a=_0x2566cb;this[_0x38397a(0x1eb)][_0x38397a(0x1e9)](_0x19471d['lng']+'-'+_0x19471d[_0x38397a(0x1c6)],_0x19471d[_0x38397a(0x1fc)]);});}[a3_0x18cdf3(0x1fe)](){const _0x3f08fe=a3_0x18cdf3,_0x4ba12c=Math[_0x3f08fe(0x1da)](...this['json'][_0x3f08fe(0x1c8)](_0x2e0ac3=>_0x2e0ac3[_0x3f08fe(0x1fc)])),_0x5b483a=Math[_0x3f08fe(0x1f7)](...this['json']['map'](_0x4958ac=>_0x4958ac['val'])),_0x426da0=[];for(let _0x305520=_0x5b483a-0x1;_0x305520<_0x4ba12c+0x1;_0x305520++){_0x426da0[_0x3f08fe(0x1d1)](_0x305520);}return _0x426da0;}[a3_0x18cdf3(0x1ce)](){const _0x2bb88a=a3_0x18cdf3,_0x20d490=this[_0x2bb88a(0x1e8)]['map'](_0x50d1c8=>[_0x50d1c8[_0x2bb88a(0x1b1)],_0x50d1c8[_0x2bb88a(0x1c6)]]),_0x4abdab=a3_0x8ef7e(_0x20d490),_0x435b62=this[_0x2bb88a(0x1eb)];return _0x4abdab['features']['forEach'](_0x503dff=>{const _0x5433ce=_0x2bb88a;_0x503dff[_0x5433ce(0x1d8)]={'z':_0x435b62['get'](_0x503dff[_0x5433ce(0x1d0)][_0x5433ce(0x1b7)][0x0]+'-'+_0x503dff[_0x5433ce(0x1d0)]['coordinates'][0x1])||0x0};}),_0x4abdab;}[a3_0x18cdf3(0x1d3)](_0x49e5ad=[]){const _0x382d39=a3_0x18cdf3;_0x49e5ad['length']===0x0&&(_0x49e5ad=this[_0x382d39(0x1fe)]());const _0x382199=this['getGridPoints']();return a3_0x3e5aab(_0x382199,_0x49e5ad,{'zProperty':'z'});}[a3_0x18cdf3(0x1bd)](_0x315cb8=[]){const _0x58ec91=a3_0x18cdf3;_0x315cb8['length']===0x0&&(_0x315cb8=this[_0x58ec91(0x1fe)]());const _0x2e6c9f=this[_0x58ec91(0x1ce)]();return a3_0xb0d9d(_0x2e6c9f,_0x315cb8,{'zProperty':'z'});}['getIsoColor'](_0x3775f7,_0xa61abd,_0x47529f){const _0x3f85a2=a3_0x18cdf3;let _0x599fba=_0x3f85a2(0x1dd);for(let _0x44211a=0x0;_0x44211a<_0xa61abd[_0x3f85a2(0x1cf)]-0x1;_0x44211a++){_0x44211a<_0xa61abd[_0x3f85a2(0x1cf)]-0x1&&(_0xa61abd[_0x44211a]+'-'+_0xa61abd[_0x44211a+0x1]===_0x3775f7&&(typeof _0x47529f[_0x44211a]=='string'?_0x599fba=_0x47529f[_0x44211a]:_0x599fba=_0x3f85a2(0x1a4)+_0x47529f[_0x44211a][0x0]+','+_0x47529f[_0x44211a][0x1]+','+_0x47529f[_0x44211a][0x2]+','+(_0x47529f[_0x44211a][0x3]||_0x47529f[_0x44211a][0x3]===0x0?_0x47529f[_0x44211a][0x3]:0x1)+')'));}return _0x599fba;}[a3_0x18cdf3(0x1d2)](_0x5b73d4=[]){const _0x5e61d1=a3_0x18cdf3,_0x321e3b=this[_0x5e61d1(0x1d4)](_0x5b73d4);let _0x405339=[];const {values:_0x580eea,nx:_0x21f104,ny:_0x2b8f49}=_0x321e3b;_0x5b73d4=_0x321e3b['breaks'];if(!_0x580eea)return{'type':_0x5e61d1(0x1e4),'features':[]};const _0x1d4ff7=contours()[_0x5e61d1(0x1ec)]([_0x21f104,_0x2b8f49]);for(let _0x9aea68=0x0;_0x9aea68<_0x5b73d4[_0x5e61d1(0x1cf)];_0x9aea68++){const _0x539410=_0x5b73d4[_0x9aea68];if(_0x539410<this[_0x5e61d1(0x1e1)]||_0x539410>this[_0x5e61d1(0x1c0)])continue;const _0x5f4494=_0x1d4ff7['contour'](_0x580eea,_0x539410);if(!_0x5f4494||!_0x5f4494[_0x5e61d1(0x1b7)])continue;for(const _0x5380f2 of _0x5f4494[_0x5e61d1(0x1b7)]){let _0x22cea4=[];if(Array[_0x5e61d1(0x1e3)](_0x5380f2)&&_0x5380f2[_0x5e61d1(0x1cf)]>0x0&&Array[_0x5e61d1(0x1e3)](_0x5380f2[0x0])&&typeof _0x5380f2[0x0][0x0]===_0x5e61d1(0x1fa))_0x22cea4=[_0x5380f2];else{if(Array[_0x5e61d1(0x1e3)](_0x5380f2))_0x22cea4=_0x5380f2;else continue;}for(const _0x280027 of _0x22cea4){const _0x2dd4f5=_0x280027[_0x5e61d1(0x1c8)](_0x321fcc=>{const _0x340712=_0x5e61d1,_0x13632c=_0x321fcc[0x0],_0x2a0ace=_0x321fcc[0x1];if(_0x13632c==null||_0x2a0ace==null||Number[_0x340712(0x1a5)](_0x13632c)||Number[_0x340712(0x1a5)](_0x2a0ace))return null;const _0x579545=new a3_0x1267b0(this[_0x340712(0x1d6)])[_0x340712(0x1b2)](new a3_0x1267b0(_0x13632c)['times'](this['gjLng']))[_0x340712(0x1ea)](),_0x35d948=new a3_0x1267b0(this['minLat'])['plus'](new a3_0x1267b0(_0x2a0ace)[_0x340712(0x1ef)](this[_0x340712(0x1ab)]))[_0x340712(0x1ea)]();return[_0x579545,_0x35d948];})['filter'](_0x252d3c=>_0x252d3c!==null),_0x57b9aa=_0x2dd4f5['filter']((_0x7269c,_0x9b61c4,_0x48cbdf)=>{if(_0x9b61c4===0x0)return!![];const _0x2168e3=_0x48cbdf[_0x9b61c4-0x1];return!(_0x7269c[0x0]===_0x2168e3[0x0]&&_0x7269c[0x1]===_0x2168e3[0x1]);});if(_0x57b9aa[_0x5e61d1(0x1cf)]<0x3)continue;const _0xe7e20d=_0x57b9aa[0x0],_0x5456dd=_0x57b9aa[_0x57b9aa[_0x5e61d1(0x1cf)]-0x1];(_0xe7e20d[0x0]!==_0x5456dd[0x0]||_0xe7e20d[0x1]!==_0x5456dd[0x1])&&_0x57b9aa[_0x5e61d1(0x1d1)]([_0xe7e20d[0x0],_0xe7e20d[0x1]]),_0x405339[_0x5e61d1(0x1d1)]({'type':'Feature','properties':{'z':_0x539410},'geometry':{'type':_0x5e61d1(0x1c3),'coordinates':[_0x57b9aa]}});}}}return _0x405339=this[_0x5e61d1(0x1f5)](_0x405339),{'type':_0x5e61d1(0x1e4),'features':_0x405339};}[a3_0x18cdf3(0x1f3)](){const _0x40d1e3=a3_0x18cdf3;this[_0x40d1e3(0x1af)][_0x40d1e3(0x1a8)]();}[a3_0x18cdf3(0x1d7)]=(_0x3793eb=[],_0x457ce1)=>{const _0x222732=a3_0x18cdf3;if(typeof _0x457ce1!==_0x222732(0x1cb)&&this[_0x222732(0x1af)]['get'](_0x457ce1)){const _0x418f3e=this[_0x222732(0x1af)][_0x222732(0x1f0)](_0x457ce1)||[],_0x48f759=this[_0x222732(0x1f5)]?this[_0x222732(0x1f5)](_0x418f3e):_0x418f3e;return{'type':_0x222732(0x1e4),'features':_0x48f759};}const _0x45d1ad=this[_0x222732(0x1d4)](_0x3793eb);if(!_0x45d1ad||!_0x45d1ad[_0x222732(0x1f8)])return{'type':_0x222732(0x1e4),'features':[]};const {values:_0x908b21,nx:_0x4e91de,ny:_0x368330}=_0x45d1ad,_0x206347=_0x45d1ad['breaks']||_0x3793eb;if(!_0x908b21||!_0x4e91de||!_0x368330||!_0x206347||_0x206347[_0x222732(0x1cf)]===0x0)return{'type':_0x222732(0x1e4),'features':[]};const _0x1825ab=_0x206347['join'](',');if(this['_maskCacheKey']!==_0x1825ab){this['_maskCacheKey']=_0x1825ab,this[_0x222732(0x1af)]['clear']();const _0x48daaa=this[_0x222732(0x1d6)],_0x521e95=this[_0x222732(0x1ff)],_0x4d2a5d=this['gjLng'],_0x3c07b2=this[_0x222732(0x1ab)],_0x2034ed=_0x526ba2=>{const _0x5d2069=_0x222732;let _0x50874b=0x0;for(let _0xb382c2=0x0,_0x1e2980=_0x526ba2[_0x5d2069(0x1cf)];_0xb382c2<_0x1e2980;_0xb382c2++){const _0x1a72e3=_0x526ba2[_0xb382c2][0x0],_0x5cb2cd=_0x526ba2[_0xb382c2][0x1],_0x496d75=_0x526ba2[(_0xb382c2+0x1)%_0x1e2980][0x0],_0x4ec39a=_0x526ba2[(_0xb382c2+0x1)%_0x1e2980][0x1];if(_0x1a72e3==null||_0x5cb2cd==null||_0x496d75==null||_0x4ec39a==null)continue;_0x50874b+=_0x1a72e3*_0x4ec39a-_0x496d75*_0x5cb2cd;}return _0x50874b/0x2;},_0x4489a2=(_0x54ef2d,_0x7dddb0)=>{const _0x414304=_0x222732;if(!_0x54ef2d)return![];const _0x147f65=_0x54ef2d[0x0],_0x52e15e=_0x54ef2d[0x1];let _0x5e57f0=![];for(let _0x19eca9=0x0,_0x3ad160=_0x7dddb0['length']-0x1;_0x19eca9<_0x7dddb0[_0x414304(0x1cf)];_0x3ad160=_0x19eca9++){const _0x38458d=_0x7dddb0[_0x19eca9][0x0],_0x19875d=_0x7dddb0[_0x19eca9][0x1],_0x136ec8=_0x7dddb0[_0x3ad160][0x0],_0x444499=_0x7dddb0[_0x3ad160][0x1],_0x4d799f=_0x19875d>_0x52e15e!==_0x444499>_0x52e15e&&_0x147f65<(_0x136ec8-_0x38458d)*(_0x52e15e-_0x19875d)/(_0x444499-_0x19875d)+_0x38458d;if(_0x4d799f)_0x5e57f0=!_0x5e57f0;}return _0x5e57f0;},_0x40e25f=_0x2249ee=>{const _0x10df87=_0x222732,_0x7ba3b1=[];let _0x481d02=null,_0xb1ac57=null;for(let _0x2afb49=0x0;_0x2afb49<_0x2249ee[_0x10df87(0x1cf)];_0x2afb49++){const _0xa8de96=_0x2249ee[_0x2afb49];if(!_0xa8de96)continue;const _0x1b89fe=_0xa8de96[0x0],_0x4e7ff7=_0xa8de96[0x1];if(_0x1b89fe==null||_0x4e7ff7==null||Number[_0x10df87(0x1a5)](_0x1b89fe)||Number[_0x10df87(0x1a5)](_0x4e7ff7))continue;const _0xb47924=_0x48daaa+_0x1b89fe*_0x4d2a5d,_0x3f0313=_0x521e95+_0x4e7ff7*_0x3c07b2;if(_0x481d02!==null&&_0xb1ac57!==null&&_0x481d02===_0xb47924&&_0xb1ac57===_0x3f0313){_0x481d02=_0xb47924,_0xb1ac57=_0x3f0313;continue;}_0x7ba3b1[_0x10df87(0x1d1)]([_0xb47924,_0x3f0313]),_0x481d02=_0xb47924,_0xb1ac57=_0x3f0313;}if(_0x7ba3b1[_0x10df87(0x1cf)]===0x0)return _0x7ba3b1;const _0x41db1a=_0x7ba3b1[0x0],_0x3c4c32=_0x7ba3b1[_0x7ba3b1[_0x10df87(0x1cf)]-0x1];if(_0x41db1a[0x0]!==_0x3c4c32[0x0]||_0x41db1a[0x1]!==_0x3c4c32[0x1])_0x7ba3b1['push']([_0x41db1a[0x0],_0x41db1a[0x1]]);return _0x7ba3b1;},_0x24a687=_0x206347[_0x222732(0x1cf)]-0x1;for(let _0x46d966=0x0;_0x46d966<_0x206347[_0x222732(0x1cf)];_0x46d966++){const _0x5b4c27=_0x206347[_0x46d966],_0x4025a5=_0x46d966<_0x24a687?_0x206347[_0x46d966+0x1]:Infinity,_0x3a9930=Array[_0x222732(0x1c4)]({'length':_0x908b21[_0x222732(0x1cf)]});let _0x37bed8=![];for(let _0x1a2e6d=0x0;_0x1a2e6d<_0x908b21[_0x222732(0x1cf)];_0x1a2e6d++){const _0x306745=_0x908b21[_0x1a2e6d],_0x55c3a5=_0x306745>=_0x5b4c27&&_0x306745<_0x4025a5?0x1:0x0;if(_0x55c3a5)_0x37bed8=!![];_0x3a9930[_0x1a2e6d]=_0x55c3a5;}if(!_0x37bed8)continue;const _0x264cf3=contours()['size']([_0x4e91de,_0x368330])[_0x222732(0x1e5)]([0.5]),_0x2f42d1=_0x264cf3[_0x222732(0x1c9)]?_0x264cf3['contours'](_0x3a9930):_0x264cf3(_0x3a9930);if(!_0x2f42d1||_0x2f42d1[_0x222732(0x1cf)]===0x0)continue;const _0x2ef8f2=[];for(const _0x536707 of _0x2f42d1){const _0x583d99=_0x536707&&_0x536707[_0x222732(0x1b7)];if(!_0x583d99)continue;for(const _0x9d40e7 of _0x583d99){let _0x1c564d=[];if(Array[_0x222732(0x1e3)](_0x9d40e7)&&_0x9d40e7[_0x222732(0x1cf)]>0x0&&typeof _0x9d40e7[0x0][0x0]===_0x222732(0x1fa))_0x1c564d=[_0x9d40e7];else{if(Array[_0x222732(0x1e3)](_0x9d40e7))_0x1c564d=_0x9d40e7;else continue;}const _0x3966f1=_0x1c564d['map'](_0x372c9e=>({'ring':_0x372c9e,'area':Math[_0x222732(0x1bf)](_0x2034ed(_0x372c9e))}))[_0x222732(0x1b8)]((_0x2cdfd4,_0x2d96e3)=>_0x2d96e3[_0x222732(0x1b0)]-_0x2cdfd4[_0x222732(0x1b0)]),_0x4e7cc3=Array[_0x222732(0x1c4)]({'length':_0x3966f1[_0x222732(0x1cf)]})['fill'](![]);for(let _0x4138d9=0x0;_0x4138d9<_0x3966f1[_0x222732(0x1cf)];_0x4138d9++){if(_0x4e7cc3[_0x4138d9])continue;const _0xe33ff4=_0x3966f1[_0x4138d9][_0x222732(0x1de)];_0x4e7cc3[_0x4138d9]=!![];const _0xe87e7e=[];for(let _0x55b4e0=0x0;_0x55b4e0<_0x3966f1['length'];_0x55b4e0++){if(_0x4e7cc3[_0x55b4e0])continue;const _0x405434=_0x3966f1[_0x55b4e0][_0x222732(0x1de)],_0x1b8e00=_0x405434[0x0];_0x1b8e00&&_0x4489a2(_0x1b8e00,_0xe33ff4)&&(_0xe87e7e[_0x222732(0x1d1)](_0x405434),_0x4e7cc3[_0x55b4e0]=!![]);}const _0x5892f3=_0x40e25f(_0xe33ff4);if(_0x5892f3[_0x222732(0x1cf)]<0x4)continue;const _0x10bf97=[];for(const _0x1e8e78 of _0xe87e7e){const _0x3ae9fa=_0x40e25f(_0x1e8e78);if(_0x3ae9fa[_0x222732(0x1cf)]>=0x4)_0x10bf97['push'](_0x3ae9fa);}_0x2ef8f2[_0x222732(0x1d1)]({'type':_0x222732(0x1e2),'properties':{'z':_0x5b4c27},'geometry':{'type':_0x222732(0x1c3),'coordinates':[_0x5892f3,..._0x10bf97]}});}}}_0x2ef8f2[_0x222732(0x1cf)]&&this[_0x222732(0x1af)]['set'](_0x5b4c27,_0x2ef8f2);}}if(typeof _0x457ce1!==_0x222732(0x1cb)){const _0x5d618f=this[_0x222732(0x1af)][_0x222732(0x1f0)](_0x457ce1)||[],_0x4abc24=this[_0x222732(0x1f5)]?this[_0x222732(0x1f5)](_0x5d618f):_0x5d618f;return{'type':_0x222732(0x1e4),'features':_0x4abc24};}const _0x254706=[];for(const _0x312d45 of this['_maskCache']['values']()){_0x254706[_0x222732(0x1d1)](..._0x312d45);}const _0x420f24=this[_0x222732(0x1f5)]?this[_0x222732(0x1f5)](_0x254706):_0x254706;return{'type':_0x222732(0x1e4),'features':_0x420f24};};[a3_0x18cdf3(0x1e7)](_0x12a45c,_0x5c12c8,_0x434213){const _0x4dfc92=a3_0x18cdf3;let _0x4fc167=_0x4dfc92(0x1dd);const _0x344811=_0x5c12c8[_0x4dfc92(0x1f9)](_0x12a45c);if(typeof _0x434213[_0x344811]==_0x4dfc92(0x1b9))_0x4fc167=_0x434213[_0x344811];else _0x344811!==-0x1&&(_0x4fc167=_0x4dfc92(0x1a4)+_0x434213[_0x344811][0x0]+','+_0x434213[_0x344811][0x1]+','+_0x434213[_0x344811][0x2]+','+(_0x434213[_0x344811][0x3]||_0x434213[_0x344811][0x3]===0x0?_0x434213[_0x344811][0x3]:0x1)+')');return _0x4fc167;}['chunkArray']=(_0x39d923,_0x493f5b)=>{const _0xfc3d5e=a3_0x18cdf3,_0x2808b2=[],_0xd8ed29=Math[_0xfc3d5e(0x1da)](0x1,Math[_0xfc3d5e(0x1bc)](_0x39d923[_0xfc3d5e(0x1cf)]/_0x493f5b));for(let _0x2b5871=0x0;_0x2b5871<_0x493f5b;_0x2b5871++){_0x2808b2[_0xfc3d5e(0x1d1)](_0x39d923['slice'](_0x2b5871*_0xd8ed29,(_0x2b5871+0x1)*_0xd8ed29));}return _0x2808b2;};[a3_0x18cdf3(0x1e6)]=async(_0x609131,_0x16f13d,_0x486277)=>{const _0x2a3246=a3_0x18cdf3,_0x309668=navigator['hardwareConcurrency']-0x4||0x1,_0x251397=Math[_0x2a3246(0x1f7)](_0x309668,Math[_0x2a3246(0x1da)](0x1,_0x609131[_0x2a3246(0x1aa)][_0x2a3246(0x1cf)])),_0x5285c1=this[_0x2a3246(0x1ed)](_0x609131[_0x2a3246(0x1aa)],_0x251397),_0x24c6b4=[],_0x53e132=_0x5285c1[_0x2a3246(0x1c8)](_0x396676=>{const _0x85092e=_0x2a3246,_0x2f4e1a=new Worker(_0x486277,{'type':_0x85092e(0x1a9)});return _0x24c6b4[_0x85092e(0x1d1)](_0x2f4e1a),new Promise(_0x1cdac8=>{const _0x5bcbe9=_0x85092e;_0x2f4e1a[_0x5bcbe9(0x1bb)]=_0x34f20a=>{const _0x3e8bef=_0x5bcbe9;_0x1cdac8(_0x34f20a['data'][_0x3e8bef(0x1aa)]);},_0x2f4e1a[_0x5bcbe9(0x1ca)]=_0x2d957d=>{const _0x4be82b=_0x5bcbe9;console[_0x4be82b(0x1cc)](_0x2d957d);},_0x2f4e1a[_0x5bcbe9(0x1fb)]({'isoChunk':_0x396676,'gansuFeatures':_0x16f13d[_0x5bcbe9(0x1aa)]});});}),_0x2c28b2=await Promise[_0x2a3246(0x1f1)](_0x53e132);_0x24c6b4['forEach'](_0x420a7c=>_0x420a7c[_0x2a3246(0x1d9)]());const _0x2e5335=_0x2c28b2[_0x2a3246(0x1f6)]();return a3_0x523364(_0x2e5335);};[a3_0x18cdf3(0x1b3)]=async(_0x4b4d30=[],_0x24593e)=>{const _0x237df1=a3_0x18cdf3,_0x5b8e3a=this[_0x237df1(0x1d4)](_0x4b4d30);let _0x2630a6=[];const {values:_0x4fa4bb,nx:_0x42d62d,ny:_0x18e9c2}=_0x5b8e3a;_0x4b4d30=_0x5b8e3a[_0x237df1(0x1fd)];if(!_0x4fa4bb)return{'type':_0x237df1(0x1e4),'features':[]};const _0x442b0a=[],_0x1b1b30=navigator[_0x237df1(0x1ee)]-0x4||0x1,_0x37f81f=Math[_0x237df1(0x1f7)](_0x1b1b30,Math[_0x237df1(0x1da)](0x1,_0x4b4d30[_0x237df1(0x1cf)])),_0xa12d0a=this['chunkArray'](_0x4b4d30,_0x37f81f),_0x1150d4=_0xa12d0a['map'](_0x8a21ee=>{const _0x31373a=_0x237df1,_0x171584=new Worker(_0x24593e,{'type':_0x31373a(0x1a9)});return _0x442b0a['push'](_0x171584),new Promise(_0x50f711=>{const _0x37d6ca=_0x31373a;_0x171584['onmessage']=_0x49f22d=>{const _0x3fe73d=a3_0x2ba9;_0x50f711(_0x49f22d[_0x3fe73d(0x1e0)][_0x3fe73d(0x1aa)]);},_0x171584[_0x37d6ca(0x1ca)]=_0x7b6439=>{const _0x2ce7d2=_0x37d6ca;console[_0x2ce7d2(0x1cc)](_0x7b6439);},_0x171584['postMessage']({'breaks':_0x8a21ee,'values':_0x4fa4bb,'nx':_0x42d62d,'ny':_0x18e9c2,'minVal':this[_0x37d6ca(0x1e1)],'maxVal':this['maxVal'],'minLng':this[_0x37d6ca(0x1d6)],'minLat':this[_0x37d6ca(0x1ff)],'gjLng':this[_0x37d6ca(0x1dc)],'gjLat':this[_0x37d6ca(0x1ab)]});});}),_0x9b030b=await Promise[_0x237df1(0x1f1)](_0x1150d4);return _0x442b0a['forEach'](_0x3f7ece=>_0x3f7ece[_0x237df1(0x1d9)]()),_0x9b030b[_0x237df1(0x1ad)](_0x1dcd29=>{const _0x3fdc54=_0x237df1;_0x2630a6[_0x3fdc54(0x1d1)](..._0x1dcd29);}),_0x2630a6=this[_0x237df1(0x1f5)](_0x2630a6),{'type':_0x237df1(0x1e4),'features':_0x2630a6};};['getIsoBandsFastBase']=(_0x5ea905=[])=>{const _0x76fbaa=a3_0x18cdf3;if(this[_0x76fbaa(0x1e8)][_0x76fbaa(0x1cf)]===0x0)return{'type':_0x76fbaa(0x1e4),'features':[]};if(_0x5ea905['length']===0x0)_0x5ea905=this['getBreaks']();const _0x5052f4=this[_0x76fbaa(0x1e8)][_0x76fbaa(0x1c8)](_0xf00bc3=>_0xf00bc3[_0x76fbaa(0x1fc)]),_0x491dbd=this[_0x76fbaa(0x1a7)],_0x5b36ab=this[_0x76fbaa(0x1b4)];return{'values':_0x5052f4,'breaks':_0x5ea905,'nx':_0x491dbd,'ny':_0x5b36ab};};['sortFeaturesByArea']=_0x4f729a=>{const _0x5ec77c=a3_0x18cdf3;return _0x4f729a[_0x5ec77c(0x1c8)](_0x37ca96=>{const _0x230268=_0x5ec77c;try{const _0x2b5b9d=a3_0x1af063(_0x37ca96)||0x0;_0x37ca96['properties']={..._0x37ca96[_0x230268(0x1d8)]||{},'__area':_0x2b5b9d};}catch{_0x37ca96[_0x230268(0x1d8)]={..._0x37ca96[_0x230268(0x1d8)]||{},'__area':0x0};}return _0x37ca96;})[_0x5ec77c(0x1b8)]((_0x2bd17d,_0xb49305)=>_0xb49305[_0x5ec77c(0x1d8)][_0x5ec77c(0x1db)]-_0x2bd17d['properties'][_0x5ec77c(0x1db)])['filter'](_0x1fd0a5=>_0x1fd0a5[_0x5ec77c(0x1d8)]&&'__area'in _0x1fd0a5[_0x5ec77c(0x1d8)]&&_0x1fd0a5[_0x5ec77c(0x1d8)]['__area']!==0x0)[_0x5ec77c(0x1c8)](_0x3b57d2=>{const _0x4c869b=_0x5ec77c;if(_0x3b57d2[_0x4c869b(0x1d8)]&&'__area'in _0x3b57d2[_0x4c869b(0x1d8)]){const {__area:_0x2b1053,..._0x261f28}=_0x3b57d2[_0x4c869b(0x1d8)];_0x3b57d2[_0x4c869b(0x1d8)]=_0x261f28;}return _0x3b57d2;});};}export default _readFileDiamond4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "m4-w-fast",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -37,7 +37,6 @@
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@turf/turf": "^6.5.0",
40
- "big.js": "^7",
41
40
  "d3-contour": "^4"
42
41
  },
43
42
  "dependencies": {
@@ -45,7 +44,6 @@
45
44
  "@turf/isobands": "^7.2.0",
46
45
  "@turf/isolines": "^7.2.0",
47
46
  "@turf/turf": "^6.5.0",
48
- "big.js": "^7",
49
47
  "d3-contour": "^4",
50
48
  "decimal.js": "^10.6.0"
51
49
  },