m4-w-fast 1.0.0 → 1.0.2
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/README.md +27 -2
- package/dist/index.js +9 -1
- package/dist/intersect.worker.js +9 -1
- package/dist/isoBands.worker.js +1 -1
- package/dist/readFile.d.ts +15 -6
- package/dist/readFile.js +1 -1
- package/package.json +15 -13
package/dist/readFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x28c5(_0xb6aad9,_0x587ec4){const _0x5956d4=a3_0x5956();return a3_0x28c5=function(_0x28c547,_0x541a2d){_0x28c547=_0x28c547-0x10f;let _0x35b9d7=_0x5956d4[_0x28c547];return _0x35b9d7;},a3_0x28c5(_0xb6aad9,_0x587ec4);}const a3_0x1255da=a3_0x28c5;(function(_0xe817f4,_0x3f0485){const _0x59338e=a3_0x28c5,_0x200740=_0xe817f4();while(!![]){try{const _0x54ac62=-parseInt(_0x59338e(0x10f))/0x1+-parseInt(_0x59338e(0x110))/0x2*(-parseInt(_0x59338e(0x12f))/0x3)+-parseInt(_0x59338e(0x147))/0x4+parseInt(_0x59338e(0x113))/0x5*(-parseInt(_0x59338e(0x15e))/0x6)+-parseInt(_0x59338e(0x12a))/0x7+-parseInt(_0x59338e(0x11c))/0x8+parseInt(_0x59338e(0x117))/0x9*(parseInt(_0x59338e(0x12d))/0xa);if(_0x54ac62===_0x3f0485)break;else _0x200740['push'](_0x200740['shift']());}catch(_0x531a02){_0x200740['push'](_0x200740['shift']());}}}(a3_0x5956,0xc4a23));function a3_0x5956(){const _0x15c447=['1366782TwsqWL','sort','minVal','module','该时次文件数据异常','latLineNum','get','points','onerror','964382bsIHmd','2465308tcwzJm','from','error','10srYLqZ','isArray','isNaN','terminate','9XZqxaj','sortFeaturesByArea','length','min','toNumber','2482616pBHpPI','ceil','isobands','times','postMessage','trim','getIsoColor','size','breaks','max','indexOf','flat','getIsoBandsFastByWorker','forEach','9366105nxTqGE','lat','getGridPoints','27688030RVPKct','clipDataByJson','3mkaKTg','getIsoBands','该时次未获取到文件','all','abs','setJson','lngLineNum','getJson','features','properties','map','onmessage','floor','rgba(','hardwareConcurrency','push','gjLng','chunkArray','FeatureCollection','maxVal','slice','getIsoLines','Polygon','Feature','510912trsmWR','getIsoBandsFastBase','data','contour','minLng','coordinates','filter','geometry','__area','jsonMap','minLat','val','json','string','gjLat','getIsoBandsFast','plus','split','featureCollection','getBreaks','rgba(255,255,255,0)','filePath','isolines'];a3_0x5956=function(){return _0x15c447;};return a3_0x5956();}import*as a3_0x447ddd from'@turf/turf';import a3_0x53cded from'big.js';import{contours}from'd3-contour';export class _readFileDiamond4{[a3_0x1255da(0x15c)];[a3_0x1255da(0x153)]=[];[a3_0x1255da(0x13f)]=0x0;[a3_0x1255da(0x155)]=0x0;['lngLineNum']=0x0;[a3_0x1255da(0x163)]=0x0;[a3_0x1255da(0x14b)]=0x0;['minLat']=0x0;[a3_0x1255da(0x150)]=new Map();[a3_0x1255da(0x142)]=-Infinity;[a3_0x1255da(0x160)]=Infinity;constructor(_0x564798){const _0x2f3661=a3_0x1255da;this[_0x2f3661(0x15c)]=_0x564798;}async['start'](){const _0x1bc5e6=a3_0x1255da,_0x9ab7f4=await fetch(this['filePath']);if(!_0x9ab7f4['ok'])return _0x1bc5e6(0x131);const _0x56ad50=await _0x9ab7f4['text'](),_0x267c6d=_0x56ad50['split']('\x0a');if(_0x267c6d['length']<0x4)return _0x1bc5e6(0x162);const _0x47201d=(_0x267c6d[0x1]??'')[_0x1bc5e6(0x121)]()['split'](/\s+/);let _0x4bd325=0x2;while(_0x47201d[_0x1bc5e6(0x119)]<0x13){_0x47201d['push'](...(_0x267c6d[_0x4bd325]??'')[_0x1bc5e6(0x121)]()[_0x1bc5e6(0x158)](/\s+/)),_0x4bd325++;}this[_0x1bc5e6(0x13f)]=Number(_0x47201d[0x6]);const _0x12d3b8=Number(_0x47201d[0x8]),_0x114ebd=Number(_0x47201d[0xa]),_0x5d6328=Number(_0x47201d[0xb]);this[_0x1bc5e6(0x135)]=Number(_0x47201d[0xc]),this[_0x1bc5e6(0x163)]=Number(_0x47201d[0xd]),this['minLng']=_0x12d3b8,this[_0x1bc5e6(0x151)]=_0x114ebd,this['gjLat']=Math[_0x1bc5e6(0x133)](Number(_0x47201d[0x7]))*(_0x114ebd>_0x5d6328?-0x1:0x1);const _0x25817b=this[_0x1bc5e6(0x135)],_0x23f09e=this[_0x1bc5e6(0x163)],_0x4faacb=_0x25817b*_0x23f09e;if(_0x4faacb===0x0)return;const _0x42aca6=Array['from']({'length':this[_0x1bc5e6(0x135)]});for(let _0x1558e1=0x0;_0x1558e1<this[_0x1bc5e6(0x135)];_0x1558e1++){_0x42aca6[_0x1558e1]=a3_0x53cded(_0x12d3b8)[_0x1bc5e6(0x157)](a3_0x53cded(_0x1558e1)[_0x1bc5e6(0x11f)](this[_0x1bc5e6(0x13f)]))[_0x1bc5e6(0x11b)]();}const _0x3488d2=Array[_0x1bc5e6(0x111)]({'length':this['latLineNum']});for(let _0x1e793b=0x0;_0x1e793b<this['latLineNum'];_0x1e793b++){_0x3488d2[_0x1e793b]=a3_0x53cded(_0x114ebd)[_0x1bc5e6(0x157)](a3_0x53cded(_0x1e793b)['times'](this[_0x1bc5e6(0x155)]))[_0x1bc5e6(0x11b)]();}this[_0x1bc5e6(0x153)]=Array[_0x1bc5e6(0x111)]({'length':this[_0x1bc5e6(0x135)]*this['latLineNum']});let _0x2de998=0x0;for(let _0x377139=_0x4bd325;_0x377139<_0x267c6d[_0x1bc5e6(0x119)]&&_0x2de998<_0x4faacb;_0x377139++){const _0x44d599=_0x267c6d[_0x377139]??'',_0x2f8cca=_0x44d599[_0x1bc5e6(0x121)]()[_0x1bc5e6(0x158)](/\s+/);if(!_0x2f8cca)continue;for(let _0x488624=0x0;_0x488624<_0x2f8cca['length'];_0x488624++){const _0x39746b=Number(_0x2f8cca[_0x488624]);this[_0x1bc5e6(0x142)]=Math[_0x1bc5e6(0x125)](this[_0x1bc5e6(0x142)],_0x39746b),this[_0x1bc5e6(0x160)]=Math[_0x1bc5e6(0x11a)](this[_0x1bc5e6(0x160)],_0x39746b);const _0x3c24b0=Math[_0x1bc5e6(0x13b)](_0x2de998/_0x25817b),_0x4a9834=_0x2de998%_0x25817b,_0x798314=_0x42aca6[_0x4a9834],_0x4d7f13=_0x3488d2[_0x3c24b0];_0x4d7f13&&_0x798314&&(this[_0x1bc5e6(0x153)][_0x2de998]={'lat':_0x4d7f13,'lng':_0x798314,'val':_0x39746b}),_0x2de998++;}}this[_0x1bc5e6(0x153)]=this['json']['filter'](_0x54582c=>_0x54582c!==undefined);}[a3_0x1255da(0x136)](){const _0x10bb61=a3_0x1255da;return this[_0x10bb61(0x153)];}[a3_0x1255da(0x134)](_0x4759dc){const _0x68eb12=a3_0x1255da;this[_0x68eb12(0x153)]=_0x4759dc,this[_0x68eb12(0x150)]=new Map(),this[_0x68eb12(0x153)][_0x68eb12(0x129)](_0x1fb37c=>{const _0x2e12de=_0x68eb12;this[_0x2e12de(0x150)]['set'](_0x1fb37c['lng']+'-'+_0x1fb37c[_0x2e12de(0x12b)],_0x1fb37c['val']);});}['getBreaks'](){const _0x186e43=a3_0x1255da,_0x5ae6fa=Math['max'](...this[_0x186e43(0x153)]['map'](_0x4cb449=>_0x4cb449[_0x186e43(0x152)])),_0x16d164=Math[_0x186e43(0x11a)](...this[_0x186e43(0x153)]['map'](_0x7e9865=>_0x7e9865[_0x186e43(0x152)])),_0x229071=[];for(let _0x1998eb=_0x16d164-0x1;_0x1998eb<_0x5ae6fa+0x1;_0x1998eb++){_0x229071['push'](_0x1998eb);}return _0x229071;}[a3_0x1255da(0x12c)](){const _0x31f728=a3_0x1255da,_0x4e02fa=this['json']['map'](_0x43d3af=>[_0x43d3af['lng'],_0x43d3af[_0x31f728(0x12b)]]),_0xf6f983=a3_0x447ddd[_0x31f728(0x165)](_0x4e02fa),_0xf9d8ab=this[_0x31f728(0x150)];return _0xf6f983[_0x31f728(0x137)]['forEach'](_0xccf1fe=>{const _0x4e33fc=_0x31f728;_0xccf1fe['properties']={'z':_0xf9d8ab[_0x4e33fc(0x164)](_0xccf1fe[_0x4e33fc(0x14e)]['coordinates'][0x0]+'-'+_0xccf1fe['geometry'][_0x4e33fc(0x14c)][0x1])||0x0};}),_0xf6f983;}[a3_0x1255da(0x144)](_0x479347=[]){const _0x3d81c8=a3_0x1255da;_0x479347[_0x3d81c8(0x119)]===0x0&&(_0x479347=this[_0x3d81c8(0x15a)]());const _0x7148c2=this['getGridPoints']();return a3_0x447ddd[_0x3d81c8(0x15d)](_0x7148c2,_0x479347,{'zProperty':'z'});}[a3_0x1255da(0x130)](_0x4044da=[]){const _0xb6eb29=a3_0x1255da;_0x4044da['length']===0x0&&(_0x4044da=this['getBreaks']());const _0x4b85c5=this[_0xb6eb29(0x12c)]();return a3_0x447ddd[_0xb6eb29(0x11e)](_0x4b85c5,_0x4044da,{'zProperty':'z'});}[a3_0x1255da(0x122)](_0x290a5f,_0x4bfb48,_0x4a7073){const _0x1facf7=a3_0x1255da;let _0x236f93=_0x1facf7(0x15b);for(let _0x4adb69=0x0;_0x4adb69<_0x4bfb48[_0x1facf7(0x119)]-0x1;_0x4adb69++){_0x4adb69<_0x4bfb48[_0x1facf7(0x119)]-0x1&&(_0x4bfb48[_0x4adb69]+'-'+_0x4bfb48[_0x4adb69+0x1]===_0x290a5f&&(typeof _0x4a7073[_0x4adb69]=='string'?_0x236f93=_0x4a7073[_0x4adb69]:_0x236f93=_0x1facf7(0x13c)+_0x4a7073[_0x4adb69][0x0]+','+_0x4a7073[_0x4adb69][0x1]+','+_0x4a7073[_0x4adb69][0x2]+','+(_0x4a7073[_0x4adb69][0x3]||_0x4a7073[_0x4adb69][0x3]===0x0?_0x4a7073[_0x4adb69][0x3]:0x1)+')'));}return _0x236f93;}[a3_0x1255da(0x156)](_0x48f8ac=[]){const _0x2ce628=a3_0x1255da,_0x4d6259=this[_0x2ce628(0x148)](_0x48f8ac);let _0x390de1=[];const {values:_0xf6f4c1,nx:_0x19edbe,ny:_0x3f15af}=_0x4d6259;_0x48f8ac=_0x4d6259[_0x2ce628(0x124)];if(!_0xf6f4c1)return{'type':_0x2ce628(0x141),'features':[]};const _0x13433e=contours()[_0x2ce628(0x123)]([_0x19edbe,_0x3f15af]);for(let _0x134c4c=0x0;_0x134c4c<_0x48f8ac['length'];_0x134c4c++){const _0x270e92=_0x48f8ac[_0x134c4c];if(_0x270e92<this[_0x2ce628(0x160)]||_0x270e92>this['maxVal'])continue;const _0x1fe71f=_0x13433e[_0x2ce628(0x14a)](_0xf6f4c1,_0x270e92);if(!_0x1fe71f||!_0x1fe71f['coordinates'])continue;for(const _0x1c5b7e of _0x1fe71f[_0x2ce628(0x14c)]){let _0xce3e5f=[];if(Array[_0x2ce628(0x114)](_0x1c5b7e)&&_0x1c5b7e[_0x2ce628(0x119)]>0x0&&Array[_0x2ce628(0x114)](_0x1c5b7e[0x0])&&typeof _0x1c5b7e[0x0][0x0]==='number')_0xce3e5f=[_0x1c5b7e];else{if(Array['isArray'](_0x1c5b7e))_0xce3e5f=_0x1c5b7e;else continue;}for(const _0x4b3ff3 of _0xce3e5f){const _0x3ad8a1=_0x4b3ff3[_0x2ce628(0x139)](_0x3387c1=>{const _0x6af77d=_0x2ce628,_0xe8b49b=_0x3387c1[0x0],_0x4d4a6f=_0x3387c1[0x1];if(_0xe8b49b==null||_0x4d4a6f==null||Number['isNaN'](_0xe8b49b)||Number[_0x6af77d(0x115)](_0x4d4a6f))return null;const _0x5d9a53=a3_0x53cded(this[_0x6af77d(0x14b)])['plus'](a3_0x53cded(_0xe8b49b)['times'](this[_0x6af77d(0x13f)]))[_0x6af77d(0x11b)](),_0x10073c=a3_0x53cded(this[_0x6af77d(0x151)])[_0x6af77d(0x157)](a3_0x53cded(_0x4d4a6f)[_0x6af77d(0x11f)](this[_0x6af77d(0x155)]))[_0x6af77d(0x11b)]();return[_0x5d9a53,_0x10073c];})[_0x2ce628(0x14d)](_0x1fde8e=>_0x1fde8e!==null),_0x52fb29=_0x3ad8a1['filter']((_0xc21086,_0x503f6c,_0x48eda8)=>{if(_0x503f6c===0x0)return!![];const _0x2920ef=_0x48eda8[_0x503f6c-0x1];return!(_0xc21086[0x0]===_0x2920ef[0x0]&&_0xc21086[0x1]===_0x2920ef[0x1]);});if(_0x52fb29[_0x2ce628(0x119)]<0x3)continue;const _0x4dcd21=_0x52fb29[0x0],_0x322535=_0x52fb29[_0x52fb29[_0x2ce628(0x119)]-0x1];(_0x4dcd21[0x0]!==_0x322535[0x0]||_0x4dcd21[0x1]!==_0x322535[0x1])&&_0x52fb29[_0x2ce628(0x13e)]([_0x4dcd21[0x0],_0x4dcd21[0x1]]),_0x390de1['push']({'type':_0x2ce628(0x146),'properties':{'z':_0x270e92},'geometry':{'type':_0x2ce628(0x145),'coordinates':[_0x52fb29]}});}}}return _0x390de1=this[_0x2ce628(0x118)](_0x390de1),{'type':_0x2ce628(0x141),'features':_0x390de1};}['getColorFast'](_0x5b6d40,_0x2c9f4d,_0x5afd5a){const _0x3cfc4f=a3_0x1255da;let _0x20537d=_0x3cfc4f(0x15b);const _0x561aa6=_0x2c9f4d[_0x3cfc4f(0x126)](_0x5b6d40);if(typeof _0x5afd5a[_0x561aa6]==_0x3cfc4f(0x154))_0x20537d=_0x5afd5a[_0x561aa6];else _0x561aa6!==-0x1&&(_0x20537d=_0x3cfc4f(0x13c)+_0x5afd5a[_0x561aa6][0x0]+','+_0x5afd5a[_0x561aa6][0x1]+','+_0x5afd5a[_0x561aa6][0x2]+','+(_0x5afd5a[_0x561aa6][0x3]||_0x5afd5a[_0x561aa6][0x3]===0x0?_0x5afd5a[_0x561aa6][0x3]:0x1)+')');return _0x20537d;}[a3_0x1255da(0x140)]=(_0x3c3514,_0x4f41db)=>{const _0x484c89=a3_0x1255da,_0x3bab74=[],_0x2ee38f=Math[_0x484c89(0x125)](0x1,Math[_0x484c89(0x11d)](_0x3c3514[_0x484c89(0x119)]/_0x4f41db));for(let _0x24dda5=0x0;_0x24dda5<_0x4f41db;_0x24dda5++){_0x3bab74[_0x484c89(0x13e)](_0x3c3514[_0x484c89(0x143)](_0x24dda5*_0x2ee38f,(_0x24dda5+0x1)*_0x2ee38f));}return _0x3bab74;};[a3_0x1255da(0x12e)]=async(_0x127cdc,_0x47ec3b,_0x166f39)=>{const _0xb4ec96=a3_0x1255da,_0x4d2c8d=(navigator[_0xb4ec96(0x13d)]>0x8?0x8:navigator[_0xb4ec96(0x13d)])||0x4,_0x1119da=Math[_0xb4ec96(0x11a)](_0x4d2c8d,Math[_0xb4ec96(0x125)](0x1,_0x127cdc[_0xb4ec96(0x137)][_0xb4ec96(0x119)])),_0x2507ad=this[_0xb4ec96(0x140)](_0x127cdc[_0xb4ec96(0x137)],_0x1119da),_0x235fa5=[],_0x57d927=_0x2507ad[_0xb4ec96(0x139)](_0x49e2fb=>{const _0x21732b=_0xb4ec96,_0x5c8ee1=new Worker(_0x166f39,{'type':_0x21732b(0x161)});return _0x235fa5[_0x21732b(0x13e)](_0x5c8ee1),new Promise(_0x26729f=>{const _0x3a4290=_0x21732b;_0x5c8ee1[_0x3a4290(0x13a)]=_0x562e73=>{const _0x2201a9=_0x3a4290;_0x26729f(_0x562e73[_0x2201a9(0x149)]['features']);},_0x5c8ee1[_0x3a4290(0x166)]=_0x592034=>{const _0x22300f=_0x3a4290;console[_0x22300f(0x112)](_0x592034);debugger;},_0x5c8ee1[_0x3a4290(0x120)]({'isoChunk':_0x49e2fb,'gansuFeatures':_0x47ec3b[_0x3a4290(0x137)]});});}),_0xc80cdf=await Promise[_0xb4ec96(0x132)](_0x57d927);_0x235fa5['forEach'](_0x4da5f6=>_0x4da5f6['terminate']());const _0x465cb9=_0xc80cdf[_0xb4ec96(0x127)]();return a3_0x447ddd[_0xb4ec96(0x159)](_0x465cb9);};[a3_0x1255da(0x128)]=async(_0x5c6664=[],_0x79997a)=>{const _0x390a29=a3_0x1255da,_0x1992ce=this[_0x390a29(0x148)](_0x5c6664);let _0x512eb4=[];const {values:_0x803d2a,nx:_0x3a6bc9,ny:_0x21ee23}=_0x1992ce;_0x5c6664=_0x1992ce[_0x390a29(0x124)];if(!_0x803d2a)return{'type':_0x390a29(0x141),'features':[]};const _0x5f3502=[],_0x3c9a44=(navigator[_0x390a29(0x13d)]>0x8?0x8:navigator['hardwareConcurrency'])||0x4,_0x1b8cc1=Math['min'](_0x3c9a44,Math[_0x390a29(0x125)](0x1,_0x5c6664['length'])),_0x297515=this[_0x390a29(0x140)](_0x5c6664,_0x1b8cc1),_0x5f4760=_0x297515[_0x390a29(0x139)](_0x572729=>{const _0x256ca4=_0x390a29,_0x1f9055=new Worker(_0x79997a,{'type':'module'});return _0x5f3502[_0x256ca4(0x13e)](_0x1f9055),new Promise(_0x2c9db8=>{const _0x1ea556=_0x256ca4;_0x1f9055[_0x1ea556(0x13a)]=_0x393903=>{const _0x28d7a3=_0x1ea556;_0x2c9db8(_0x393903[_0x28d7a3(0x149)][_0x28d7a3(0x137)]);},_0x1f9055[_0x1ea556(0x166)]=_0x475e69=>{const _0x30e55c=_0x1ea556;console[_0x30e55c(0x112)](_0x475e69);debugger;},_0x1f9055[_0x1ea556(0x120)]({'breaks':_0x572729,'values':_0x803d2a,'nx':_0x3a6bc9,'ny':_0x21ee23,'minVal':this[_0x1ea556(0x160)],'maxVal':this[_0x1ea556(0x142)],'minLng':this[_0x1ea556(0x14b)],'minLat':this[_0x1ea556(0x151)],'gjLng':this[_0x1ea556(0x13f)],'gjLat':this[_0x1ea556(0x155)]});});}),_0x459421=await Promise[_0x390a29(0x132)](_0x5f4760);return _0x5f3502[_0x390a29(0x129)](_0xa383d2=>_0xa383d2[_0x390a29(0x116)]()),_0x459421[_0x390a29(0x129)](_0x4f3e01=>{const _0x444c60=_0x390a29;_0x512eb4[_0x444c60(0x13e)](..._0x4f3e01);}),_0x512eb4=this[_0x390a29(0x118)](_0x512eb4),{'type':'FeatureCollection','features':_0x512eb4};};['getIsoBandsFastBase']=(_0x50ed5e=[])=>{const _0x299417=a3_0x1255da;if(this[_0x299417(0x153)][_0x299417(0x119)]===0x0)return{'type':'FeatureCollection','features':[]};if(_0x50ed5e[_0x299417(0x119)]===0x0)_0x50ed5e=this[_0x299417(0x15a)]();const _0xa8b2c2=this[_0x299417(0x153)][_0x299417(0x139)](_0x513319=>_0x513319[_0x299417(0x152)]),_0x132a3f=this[_0x299417(0x135)],_0x214253=this['latLineNum'];return{'values':_0xa8b2c2,'breaks':_0x50ed5e,'nx':_0x132a3f,'ny':_0x214253};};['sortFeaturesByArea']=_0x922f8=>{const _0x541730=a3_0x1255da;return _0x922f8[_0x541730(0x139)](_0x5b2ef3=>{const _0x40920e=_0x541730;try{const _0x1441e3=a3_0x447ddd['area'](_0x5b2ef3)||0x0;_0x5b2ef3[_0x40920e(0x138)]={..._0x5b2ef3[_0x40920e(0x138)]||{},'__area':_0x1441e3};}catch{_0x5b2ef3['properties']={..._0x5b2ef3[_0x40920e(0x138)]||{},'__area':0x0};}return _0x5b2ef3;})[_0x541730(0x15f)]((_0x4c8fc7,_0x4cafb5)=>_0x4cafb5[_0x541730(0x138)][_0x541730(0x14f)]-_0x4c8fc7[_0x541730(0x138)][_0x541730(0x14f)])['filter'](_0x7da7b5=>_0x7da7b5[_0x541730(0x138)]&&_0x541730(0x14f)in _0x7da7b5[_0x541730(0x138)]&&_0x7da7b5['properties'][_0x541730(0x14f)]!==0x0)[_0x541730(0x139)](_0x4f3f7e=>{const _0x21bfd9=_0x541730;if(_0x4f3f7e[_0x21bfd9(0x138)]&&_0x21bfd9(0x14f)in _0x4f3f7e['properties']){const {__area:_0x1065d2,..._0x4694ea}=_0x4f3f7e[_0x21bfd9(0x138)];_0x4f3f7e[_0x21bfd9(0x138)]=_0x4694ea;}return _0x4f3f7e;});};}export default _readFileDiamond4;
|
|
1
|
+
const a3_0x1d888f=a3_0x377c;(function(_0x54cbad,_0x47af9f){const _0x5ae985=a3_0x377c,_0x4ec90a=_0x54cbad();while(!![]){try{const _0x4703ab=parseInt(_0x5ae985(0xd0))/0x1*(-parseInt(_0x5ae985(0x9d))/0x2)+-parseInt(_0x5ae985(0x95))/0x3*(parseInt(_0x5ae985(0xa7))/0x4)+parseInt(_0x5ae985(0xd2))/0x5+-parseInt(_0x5ae985(0xe0))/0x6+-parseInt(_0x5ae985(0xe8))/0x7+-parseInt(_0x5ae985(0xc6))/0x8+parseInt(_0x5ae985(0xdf))/0x9;if(_0x4703ab===_0x47af9f)break;else _0x4ec90a['push'](_0x4ec90a['shift']());}catch(_0x38951c){_0x4ec90a['push'](_0x4ec90a['shift']());}}}(a3_0x289d,0x356db));function a3_0x377c(_0x4670a9,_0x2ef7ca){const _0x289d36=a3_0x289d();return a3_0x377c=function(_0x377c88,_0x3329e1){_0x377c88=_0x377c88-0x92;let _0x523266=_0x289d36[_0x377c88];return _0x523266;},a3_0x377c(_0x4670a9,_0x2ef7ca);}import{points as a3_0x3f2eb6,featureCollection as a3_0x503e6e}from'@turf/helpers';import a3_0x27c84a from'@turf/isolines';import a3_0x2ad98e from'@turf/isobands';import a3_0x16ae44 from'@turf/area';import a3_0x5e6a0f from'decimal.js';import{contours}from'd3-contour';function a3_0x289d(){const _0x1b016c=['area','_maskCacheKey','maxVal','getIsoColor','minLat','lat','Polygon','terminate','slice','text','getIsoBandsByLayerBreak','sortFeaturesByArea','val','latLineNum','data','isNaN','size','length','trim','ceil','2068120TEVtwC','coordinates','jsonMap','thresholds','undefined','getIsoBandsFastByWorker','lngLineNum','gjLng','onerror','json','98SreDJW','toNumber','1059275iLFwkx','minLng','fill','number','abs','__area','max','times','module','contours','rgba(','getIsoBandsFast','map','8920710gSsPZG','967746jmSpgf','error','getIsoBandsFastBase','start','split','chunkArray','minVal','ring','384454qUbcsw','features','join','FeatureCollection','sort','from','push','clipDataByJson','plus','hardwareConcurrency','6gjdHQA','filePath','get','string','gjLat','all','Feature','_maskCache','8260AQWmqx','flat','lng','getBreaks','properties','isArray','values','filter','forEach','set','209468hSKwfi','geometry','breaks','contour','该时次未获取到文件','onmessage','getGridPoints','min','该时次文件数据异常','getColorFast','postMessage'];a3_0x289d=function(){return _0x1b016c;};return a3_0x289d();}export class _readFileDiamond4{['filePath'];[a3_0x1d888f(0xcf)]=[];['gjLng']=0x0;[a3_0x1d888f(0x99)]=0x0;[a3_0x1d888f(0xcc)]=0x0;[a3_0x1d888f(0xbf)]=0x0;[a3_0x1d888f(0xd3)]=0x0;[a3_0x1d888f(0xb6)]=0x0;[a3_0x1d888f(0xc8)]=new Map();[a3_0x1d888f(0xb4)]=-Infinity;[a3_0x1d888f(0xe6)]=Infinity;[a3_0x1d888f(0xb3)]='';['_maskCache']=new Map();constructor(_0x378765){const _0x1f0d7d=a3_0x1d888f;this[_0x1f0d7d(0x96)]=_0x378765;}async[a3_0x1d888f(0xe3)](){const _0x5666c6=a3_0x1d888f,_0x4f37ae=await fetch(this[_0x5666c6(0x96)]);if(!_0x4f37ae['ok'])return _0x5666c6(0xab);const _0x2b4990=await _0x4f37ae[_0x5666c6(0xbb)](),_0xf893da=_0x2b4990[_0x5666c6(0xe4)]('\x0a');if(_0xf893da[_0x5666c6(0xc3)]<0x4)return _0x5666c6(0xaf);const _0x196a53=(_0xf893da[0x1]??'')[_0x5666c6(0xc4)]()[_0x5666c6(0xe4)](/\s+/);let _0x2725c6=0x2;while(_0x196a53['length']<0x13){_0x196a53[_0x5666c6(0xee)](...(_0xf893da[_0x2725c6]??'')['trim']()[_0x5666c6(0xe4)](/\s+/)),_0x2725c6++;}this['gjLng']=Number(_0x196a53[0x6]);const _0x57496f=Number(_0x196a53[0x8]),_0xeca14a=Number(_0x196a53[0xa]),_0x22bc5f=Number(_0x196a53[0xb]);this['lngLineNum']=Number(_0x196a53[0xc]),this['latLineNum']=Number(_0x196a53[0xd]),this[_0x5666c6(0xd3)]=_0x57496f,this[_0x5666c6(0xb6)]=_0xeca14a,this[_0x5666c6(0x99)]=Math['abs'](Number(_0x196a53[0x7]))*(_0xeca14a>_0x22bc5f?-0x1:0x1);const _0x3c9224=this['lngLineNum'],_0x58c1a4=this[_0x5666c6(0xbf)],_0x39e571=_0x3c9224*_0x58c1a4;if(_0x39e571===0x0)return;const _0x5efac6=Array['from']({'length':this[_0x5666c6(0xcc)]});for(let _0x544e0c=0x0;_0x544e0c<this[_0x5666c6(0xcc)];_0x544e0c++){_0x5efac6[_0x544e0c]=new a3_0x5e6a0f(_0x57496f)['plus'](new a3_0x5e6a0f(_0x544e0c)[_0x5666c6(0xd9)](this[_0x5666c6(0xcd)]))[_0x5666c6(0xd1)]();}const _0x5e678c=Array[_0x5666c6(0xed)]({'length':this['latLineNum']});for(let _0x316b68=0x0;_0x316b68<this[_0x5666c6(0xbf)];_0x316b68++){_0x5e678c[_0x316b68]=new a3_0x5e6a0f(_0xeca14a)['plus'](new a3_0x5e6a0f(_0x316b68)[_0x5666c6(0xd9)](this[_0x5666c6(0x99)]))[_0x5666c6(0xd1)]();}this[_0x5666c6(0xcf)]=Array[_0x5666c6(0xed)]({'length':this['lngLineNum']*this[_0x5666c6(0xbf)]});let _0x248bc4=0x0;for(let _0x2ac47a=_0x2725c6;_0x2ac47a<_0xf893da['length']&&_0x248bc4<_0x39e571;_0x2ac47a++){const _0x4a5dd6=_0xf893da[_0x2ac47a]??'',_0x31181c=_0x4a5dd6[_0x5666c6(0xc4)]()['split'](/\s+/);if(!_0x31181c)continue;for(let _0x345df0=0x0;_0x345df0<_0x31181c[_0x5666c6(0xc3)];_0x345df0++){const _0x12079e=Number(_0x31181c[_0x345df0]);this[_0x5666c6(0xb4)]=Math[_0x5666c6(0xd8)](this[_0x5666c6(0xb4)],_0x12079e),this[_0x5666c6(0xe6)]=Math[_0x5666c6(0xae)](this[_0x5666c6(0xe6)],_0x12079e);const _0x212d3d=Math['floor'](_0x248bc4/_0x3c9224),_0x5b450d=_0x248bc4%_0x3c9224,_0x3ab563=_0x5efac6[_0x5b450d],_0x1bc71f=_0x5e678c[_0x212d3d];_0x1bc71f&&_0x3ab563&&(this['json'][_0x248bc4]={'lat':_0x1bc71f,'lng':_0x3ab563,'val':_0x12079e}),_0x248bc4++;}}this[_0x5666c6(0xcf)]=this[_0x5666c6(0xcf)][_0x5666c6(0xa4)](_0x35e34a=>_0x35e34a!==undefined);}['getJson'](){const _0x581a46=a3_0x1d888f;return this[_0x581a46(0xcf)];}['setJson'](_0x1a32a9){const _0x58c31a=a3_0x1d888f;this[_0x58c31a(0xcf)]=_0x1a32a9,this[_0x58c31a(0xc8)]=new Map(),this['json'][_0x58c31a(0xa5)](_0x491bd9=>{const _0x131fbe=_0x58c31a;this[_0x131fbe(0xc8)][_0x131fbe(0xa6)](_0x491bd9['lng']+'-'+_0x491bd9[_0x131fbe(0xb7)],_0x491bd9[_0x131fbe(0xbe)]);});}[a3_0x1d888f(0xa0)](){const _0xc18861=a3_0x1d888f,_0x3553d5=Math[_0xc18861(0xd8)](...this[_0xc18861(0xcf)][_0xc18861(0xde)](_0x3c3ee2=>_0x3c3ee2['val'])),_0x5127a7=Math[_0xc18861(0xae)](...this[_0xc18861(0xcf)][_0xc18861(0xde)](_0x17a5a9=>_0x17a5a9['val'])),_0x58baa0=[];for(let _0x5f34e3=_0x5127a7-0x1;_0x5f34e3<_0x3553d5+0x1;_0x5f34e3++){_0x58baa0['push'](_0x5f34e3);}return _0x58baa0;}[a3_0x1d888f(0xad)](){const _0x13473a=a3_0x1d888f,_0x186957=this[_0x13473a(0xcf)][_0x13473a(0xde)](_0x49d986=>[_0x49d986[_0x13473a(0x9f)],_0x49d986[_0x13473a(0xb7)]]),_0x423887=a3_0x3f2eb6(_0x186957),_0x402adc=this['jsonMap'];return _0x423887['features'][_0x13473a(0xa5)](_0x386081=>{const _0x24a093=_0x13473a;_0x386081[_0x24a093(0xa1)]={'z':_0x402adc[_0x24a093(0x97)](_0x386081[_0x24a093(0xa8)][_0x24a093(0xc7)][0x0]+'-'+_0x386081['geometry']['coordinates'][0x1])||0x0};}),_0x423887;}['getIsoLines'](_0x4ca60a=[]){const _0x58b3f2=a3_0x1d888f;_0x4ca60a[_0x58b3f2(0xc3)]===0x0&&(_0x4ca60a=this[_0x58b3f2(0xa0)]());const _0x22d2c6=this['getGridPoints']();return a3_0x27c84a(_0x22d2c6,_0x4ca60a,{'zProperty':'z'});}['getIsoBands'](_0x2fd2b5=[]){const _0x1f6481=a3_0x1d888f;_0x2fd2b5[_0x1f6481(0xc3)]===0x0&&(_0x2fd2b5=this[_0x1f6481(0xa0)]());const _0x3901a0=this[_0x1f6481(0xad)]();return a3_0x2ad98e(_0x3901a0,_0x2fd2b5,{'zProperty':'z'});}[a3_0x1d888f(0xb5)](_0x5e1ea5,_0x3a2a6d,_0x317433){const _0x746306=a3_0x1d888f;let _0x1b0743='rgba(255,255,255,0)';for(let _0x163885=0x0;_0x163885<_0x3a2a6d[_0x746306(0xc3)]-0x1;_0x163885++){_0x163885<_0x3a2a6d['length']-0x1&&(_0x3a2a6d[_0x163885]+'-'+_0x3a2a6d[_0x163885+0x1]===_0x5e1ea5&&(typeof _0x317433[_0x163885]==_0x746306(0x98)?_0x1b0743=_0x317433[_0x163885]:_0x1b0743='rgba('+_0x317433[_0x163885][0x0]+','+_0x317433[_0x163885][0x1]+','+_0x317433[_0x163885][0x2]+','+(_0x317433[_0x163885][0x3]||_0x317433[_0x163885][0x3]===0x0?_0x317433[_0x163885][0x3]:0x1)+')'));}return _0x1b0743;}[a3_0x1d888f(0xdd)](_0x1b47b1=[]){const _0x1a6a2a=a3_0x1d888f,_0x3dfb10=this[_0x1a6a2a(0xe2)](_0x1b47b1);let _0x507fc3=[];const {values:_0x120991,nx:_0x28329a,ny:_0x3e1536}=_0x3dfb10;_0x1b47b1=_0x3dfb10['breaks'];if(!_0x120991)return{'type':'FeatureCollection','features':[]};const _0x141250=contours()[_0x1a6a2a(0xc2)]([_0x28329a,_0x3e1536]);for(let _0x55fe82=0x0;_0x55fe82<_0x1b47b1['length'];_0x55fe82++){const _0x34f9f7=_0x1b47b1[_0x55fe82];if(_0x34f9f7<this[_0x1a6a2a(0xe6)]||_0x34f9f7>this[_0x1a6a2a(0xb4)])continue;const _0x1a1bb1=_0x141250[_0x1a6a2a(0xaa)](_0x120991,_0x34f9f7);if(!_0x1a1bb1||!_0x1a1bb1[_0x1a6a2a(0xc7)])continue;for(const _0x46112d of _0x1a1bb1[_0x1a6a2a(0xc7)]){let _0x4f4493=[];if(Array[_0x1a6a2a(0xa2)](_0x46112d)&&_0x46112d[_0x1a6a2a(0xc3)]>0x0&&Array[_0x1a6a2a(0xa2)](_0x46112d[0x0])&&typeof _0x46112d[0x0][0x0]===_0x1a6a2a(0xd5))_0x4f4493=[_0x46112d];else{if(Array[_0x1a6a2a(0xa2)](_0x46112d))_0x4f4493=_0x46112d;else continue;}for(const _0x371724 of _0x4f4493){const _0x16bdb7=_0x371724['map'](_0x20a3bc=>{const _0x67e30=_0x1a6a2a,_0x5d3151=_0x20a3bc[0x0],_0x404c69=_0x20a3bc[0x1];if(_0x5d3151==null||_0x404c69==null||Number[_0x67e30(0xc1)](_0x5d3151)||Number[_0x67e30(0xc1)](_0x404c69))return null;const _0x41ef28=new a3_0x5e6a0f(this['minLng'])[_0x67e30(0x93)](new a3_0x5e6a0f(_0x5d3151)[_0x67e30(0xd9)](this[_0x67e30(0xcd)]))['toNumber'](),_0x371fa7=new a3_0x5e6a0f(this[_0x67e30(0xb6)])['plus'](new a3_0x5e6a0f(_0x404c69)[_0x67e30(0xd9)](this[_0x67e30(0x99)]))[_0x67e30(0xd1)]();return[_0x41ef28,_0x371fa7];})[_0x1a6a2a(0xa4)](_0x29cdfa=>_0x29cdfa!==null),_0x2afb7b=_0x16bdb7[_0x1a6a2a(0xa4)]((_0x1193e6,_0x361dee,_0x5eda38)=>{if(_0x361dee===0x0)return!![];const _0x12f671=_0x5eda38[_0x361dee-0x1];return!(_0x1193e6[0x0]===_0x12f671[0x0]&&_0x1193e6[0x1]===_0x12f671[0x1]);});if(_0x2afb7b[_0x1a6a2a(0xc3)]<0x3)continue;const _0x5865ba=_0x2afb7b[0x0],_0x3624bd=_0x2afb7b[_0x2afb7b[_0x1a6a2a(0xc3)]-0x1];(_0x5865ba[0x0]!==_0x3624bd[0x0]||_0x5865ba[0x1]!==_0x3624bd[0x1])&&_0x2afb7b[_0x1a6a2a(0xee)]([_0x5865ba[0x0],_0x5865ba[0x1]]),_0x507fc3[_0x1a6a2a(0xee)]({'type':'Feature','properties':{'z':_0x34f9f7},'geometry':{'type':'Polygon','coordinates':[_0x2afb7b]}});}}}return _0x507fc3=this['sortFeaturesByArea'](_0x507fc3),{'type':_0x1a6a2a(0xeb),'features':_0x507fc3};}['clearMaskCache'](){const _0x598434=a3_0x1d888f;this[_0x598434(0x9c)]['clear']();}[a3_0x1d888f(0xbc)]=(_0x4ad07f=[],_0x4c23ba)=>{const _0x152bed=a3_0x1d888f;if(typeof _0x4c23ba!=='undefined'&&this[_0x152bed(0x9c)][_0x152bed(0x97)](_0x4c23ba)){const _0x50c30b=this[_0x152bed(0x9c)][_0x152bed(0x97)](_0x4c23ba)||[],_0x54706a=this[_0x152bed(0xbd)]?this[_0x152bed(0xbd)](_0x50c30b):_0x50c30b;return{'type':_0x152bed(0xeb),'features':_0x54706a};}const _0x473061=this['getIsoBandsFastBase'](_0x4ad07f);if(!_0x473061||!_0x473061[_0x152bed(0xa3)])return{'type':_0x152bed(0xeb),'features':[]};const {values:_0x3b8483,nx:_0x1a03da,ny:_0x50edac}=_0x473061,_0x5c0b9e=_0x473061[_0x152bed(0xa9)]||_0x4ad07f;if(!_0x3b8483||!_0x1a03da||!_0x50edac||!_0x5c0b9e||_0x5c0b9e[_0x152bed(0xc3)]===0x0)return{'type':_0x152bed(0xeb),'features':[]};const _0x3224fe=_0x5c0b9e[_0x152bed(0xea)](',');if(this[_0x152bed(0xb3)]!==_0x3224fe){this[_0x152bed(0xb3)]=_0x3224fe,this[_0x152bed(0x9c)]['clear']();const _0x446670=this[_0x152bed(0xd3)],_0x3bfc9e=this[_0x152bed(0xb6)],_0x4c8c90=this[_0x152bed(0xcd)],_0x31701a=this[_0x152bed(0x99)],_0x3bda68=_0x3b7b28=>{let _0x2e0565=0x0;for(let _0x1e5118=0x0,_0x2e21db=_0x3b7b28['length'];_0x1e5118<_0x2e21db;_0x1e5118++){const _0x52f48=_0x3b7b28[_0x1e5118][0x0],_0x53df5d=_0x3b7b28[_0x1e5118][0x1],_0x38c133=_0x3b7b28[(_0x1e5118+0x1)%_0x2e21db][0x0],_0x21fc9b=_0x3b7b28[(_0x1e5118+0x1)%_0x2e21db][0x1];if(_0x52f48==null||_0x53df5d==null||_0x38c133==null||_0x21fc9b==null)continue;_0x2e0565+=_0x52f48*_0x21fc9b-_0x38c133*_0x53df5d;}return _0x2e0565/0x2;},_0x440b2e=(_0x55e1c2,_0x3562ed)=>{const _0x1b754e=_0x152bed;if(!_0x55e1c2)return![];const _0x430e00=_0x55e1c2[0x0],_0xfedba1=_0x55e1c2[0x1];let _0x157755=![];for(let _0x3f415d=0x0,_0x3d6db6=_0x3562ed[_0x1b754e(0xc3)]-0x1;_0x3f415d<_0x3562ed[_0x1b754e(0xc3)];_0x3d6db6=_0x3f415d++){const _0x546c54=_0x3562ed[_0x3f415d][0x0],_0x7c31de=_0x3562ed[_0x3f415d][0x1],_0xb889e4=_0x3562ed[_0x3d6db6][0x0],_0x140dd7=_0x3562ed[_0x3d6db6][0x1],_0xab7bb9=_0x7c31de>_0xfedba1!==_0x140dd7>_0xfedba1&&_0x430e00<(_0xb889e4-_0x546c54)*(_0xfedba1-_0x7c31de)/(_0x140dd7-_0x7c31de)+_0x546c54;if(_0xab7bb9)_0x157755=!_0x157755;}return _0x157755;},_0x2cc2b2=_0x57ee9b=>{const _0xa1b5c8=_0x152bed,_0x295973=[];let _0x3c40b8=null,_0x343660=null;for(let _0x1073c1=0x0;_0x1073c1<_0x57ee9b[_0xa1b5c8(0xc3)];_0x1073c1++){const _0x129b98=_0x57ee9b[_0x1073c1];if(!_0x129b98)continue;const _0x362f12=_0x129b98[0x0],_0x1d9a3b=_0x129b98[0x1];if(_0x362f12==null||_0x1d9a3b==null||Number[_0xa1b5c8(0xc1)](_0x362f12)||Number[_0xa1b5c8(0xc1)](_0x1d9a3b))continue;const _0x27519f=_0x446670+_0x362f12*_0x4c8c90,_0x339e3d=_0x3bfc9e+_0x1d9a3b*_0x31701a;if(_0x3c40b8!==null&&_0x343660!==null&&_0x3c40b8===_0x27519f&&_0x343660===_0x339e3d){_0x3c40b8=_0x27519f,_0x343660=_0x339e3d;continue;}_0x295973[_0xa1b5c8(0xee)]([_0x27519f,_0x339e3d]),_0x3c40b8=_0x27519f,_0x343660=_0x339e3d;}if(_0x295973[_0xa1b5c8(0xc3)]===0x0)return _0x295973;const _0x2f91a2=_0x295973[0x0],_0x427774=_0x295973[_0x295973[_0xa1b5c8(0xc3)]-0x1];if(_0x2f91a2[0x0]!==_0x427774[0x0]||_0x2f91a2[0x1]!==_0x427774[0x1])_0x295973[_0xa1b5c8(0xee)]([_0x2f91a2[0x0],_0x2f91a2[0x1]]);return _0x295973;},_0x386991=_0x5c0b9e[_0x152bed(0xc3)]-0x1;for(let _0x1d8566=0x0;_0x1d8566<_0x5c0b9e[_0x152bed(0xc3)];_0x1d8566++){const _0x52c7da=_0x5c0b9e[_0x1d8566],_0x5abaa0=_0x1d8566<_0x386991?_0x5c0b9e[_0x1d8566+0x1]:Infinity,_0x541827=Array['from']({'length':_0x3b8483[_0x152bed(0xc3)]});let _0x9af374=![];for(let _0x2684a2=0x0;_0x2684a2<_0x3b8483['length'];_0x2684a2++){const _0x1816ac=_0x3b8483[_0x2684a2],_0xe4b668=_0x1816ac>=_0x52c7da&&_0x1816ac<_0x5abaa0?0x1:0x0;if(_0xe4b668)_0x9af374=!![];_0x541827[_0x2684a2]=_0xe4b668;}if(!_0x9af374)continue;const _0x2d9029=contours()[_0x152bed(0xc2)]([_0x1a03da,_0x50edac])[_0x152bed(0xc9)]([0.5]),_0x7fa66d=_0x2d9029[_0x152bed(0xdb)]?_0x2d9029[_0x152bed(0xdb)](_0x541827):_0x2d9029(_0x541827);if(!_0x7fa66d||_0x7fa66d[_0x152bed(0xc3)]===0x0)continue;const _0x336411=[];for(const _0x55e8a2 of _0x7fa66d){const _0x28de49=_0x55e8a2&&_0x55e8a2[_0x152bed(0xc7)];if(!_0x28de49)continue;for(const _0xbbed1c of _0x28de49){let _0x3cf724=[];if(Array['isArray'](_0xbbed1c)&&_0xbbed1c[_0x152bed(0xc3)]>0x0&&typeof _0xbbed1c[0x0][0x0]===_0x152bed(0xd5))_0x3cf724=[_0xbbed1c];else{if(Array[_0x152bed(0xa2)](_0xbbed1c))_0x3cf724=_0xbbed1c;else continue;}const _0x4d1f95=_0x3cf724[_0x152bed(0xde)](_0x30e21a=>({'ring':_0x30e21a,'area':Math[_0x152bed(0xd6)](_0x3bda68(_0x30e21a))}))['sort']((_0x25636c,_0x3d37ee)=>_0x3d37ee[_0x152bed(0xb2)]-_0x25636c[_0x152bed(0xb2)]),_0x595c5c=Array['from']({'length':_0x4d1f95['length']})[_0x152bed(0xd4)](![]);for(let _0x465cd8=0x0;_0x465cd8<_0x4d1f95['length'];_0x465cd8++){if(_0x595c5c[_0x465cd8])continue;const _0x1c1ea6=_0x4d1f95[_0x465cd8]['ring'];_0x595c5c[_0x465cd8]=!![];const _0x14bd3e=[];for(let _0x271eb8=0x0;_0x271eb8<_0x4d1f95['length'];_0x271eb8++){if(_0x595c5c[_0x271eb8])continue;const _0x6b2427=_0x4d1f95[_0x271eb8][_0x152bed(0xe7)],_0x47ae92=_0x6b2427[0x0];_0x47ae92&&_0x440b2e(_0x47ae92,_0x1c1ea6)&&(_0x14bd3e[_0x152bed(0xee)](_0x6b2427),_0x595c5c[_0x271eb8]=!![]);}const _0x23ec13=_0x2cc2b2(_0x1c1ea6);if(_0x23ec13[_0x152bed(0xc3)]<0x4)continue;const _0x24aad1=[];for(const _0x41ae4e of _0x14bd3e){const _0x25c01b=_0x2cc2b2(_0x41ae4e);if(_0x25c01b[_0x152bed(0xc3)]>=0x4)_0x24aad1[_0x152bed(0xee)](_0x25c01b);}_0x336411[_0x152bed(0xee)]({'type':_0x152bed(0x9b),'properties':{'z':_0x52c7da},'geometry':{'type':_0x152bed(0xb8),'coordinates':[_0x23ec13,..._0x24aad1]}});}}}_0x336411[_0x152bed(0xc3)]&&this[_0x152bed(0x9c)]['set'](_0x52c7da,_0x336411);}}if(typeof _0x4c23ba!==_0x152bed(0xca)){const _0x2bb395=this[_0x152bed(0x9c)][_0x152bed(0x97)](_0x4c23ba)||[],_0xa4afc8=this[_0x152bed(0xbd)]?this[_0x152bed(0xbd)](_0x2bb395):_0x2bb395;return{'type':_0x152bed(0xeb),'features':_0xa4afc8};}const _0x5c0422=[];for(const _0x42487d of this[_0x152bed(0x9c)][_0x152bed(0xa3)]()){_0x5c0422[_0x152bed(0xee)](..._0x42487d);}const _0xbbb3c3=this[_0x152bed(0xbd)]?this['sortFeaturesByArea'](_0x5c0422):_0x5c0422;return{'type':'FeatureCollection','features':_0xbbb3c3};};[a3_0x1d888f(0xb0)](_0x2880e5,_0x1a7822,_0x592b47){const _0x2d482c=a3_0x1d888f;let _0x151416='rgba(255,255,255,0)';const _0x41b734=_0x1a7822['indexOf'](_0x2880e5);if(typeof _0x592b47[_0x41b734]==_0x2d482c(0x98))_0x151416=_0x592b47[_0x41b734];else _0x41b734!==-0x1&&(_0x151416=_0x2d482c(0xdc)+_0x592b47[_0x41b734][0x0]+','+_0x592b47[_0x41b734][0x1]+','+_0x592b47[_0x41b734][0x2]+','+(_0x592b47[_0x41b734][0x3]||_0x592b47[_0x41b734][0x3]===0x0?_0x592b47[_0x41b734][0x3]:0x1)+')');return _0x151416;}[a3_0x1d888f(0xe5)]=(_0x9ab906,_0x57df55)=>{const _0x5f2801=a3_0x1d888f,_0xfb0989=[],_0x58288f=Math[_0x5f2801(0xd8)](0x1,Math[_0x5f2801(0xc5)](_0x9ab906[_0x5f2801(0xc3)]/_0x57df55));for(let _0x470302=0x0;_0x470302<_0x57df55;_0x470302++){_0xfb0989[_0x5f2801(0xee)](_0x9ab906[_0x5f2801(0xba)](_0x470302*_0x58288f,(_0x470302+0x1)*_0x58288f));}return _0xfb0989;};[a3_0x1d888f(0x92)]=async(_0x1e7a5c,_0x4e9e79,_0x2b8ec4)=>{const _0x51d140=a3_0x1d888f,_0x1c89d4=navigator[_0x51d140(0x94)]-0x4||0x1,_0x2b2751=Math[_0x51d140(0xae)](_0x1c89d4,Math['max'](0x1,_0x1e7a5c[_0x51d140(0xe9)][_0x51d140(0xc3)])),_0x3b7ebe=this[_0x51d140(0xe5)](_0x1e7a5c[_0x51d140(0xe9)],_0x2b2751),_0x4a6ef2=[],_0x405586=_0x3b7ebe['map'](_0x52f5d5=>{const _0x35320b=_0x51d140,_0xe13639=new Worker(_0x2b8ec4,{'type':'module'});return _0x4a6ef2[_0x35320b(0xee)](_0xe13639),new Promise(_0x2a2759=>{const _0x55d627=_0x35320b;_0xe13639[_0x55d627(0xac)]=_0x211ca5=>{const _0x303a07=_0x55d627;_0x2a2759(_0x211ca5[_0x303a07(0xc0)]['features']);},_0xe13639['onerror']=_0x4af65f=>{const _0x4efbee=_0x55d627;console[_0x4efbee(0xe1)](_0x4af65f);},_0xe13639['postMessage']({'isoChunk':_0x52f5d5,'gansuFeatures':_0x4e9e79[_0x55d627(0xe9)]});});}),_0x14ceaa=await Promise['all'](_0x405586);_0x4a6ef2[_0x51d140(0xa5)](_0x54a954=>_0x54a954[_0x51d140(0xb9)]());const _0x18f73a=_0x14ceaa[_0x51d140(0x9e)]();return a3_0x503e6e(_0x18f73a);};[a3_0x1d888f(0xcb)]=async(_0x1578e8=[],_0x4a8ed1)=>{const _0x52d10c=a3_0x1d888f,_0x2ed3af=this[_0x52d10c(0xe2)](_0x1578e8);let _0x35158f=[];const {values:_0x17837a,nx:_0x5e64f7,ny:_0x231326}=_0x2ed3af;_0x1578e8=_0x2ed3af[_0x52d10c(0xa9)];if(!_0x17837a)return{'type':_0x52d10c(0xeb),'features':[]};const _0x186cd5=[],_0x20c03f=navigator[_0x52d10c(0x94)]-0x4||0x1,_0x4ec665=Math['min'](_0x20c03f,Math['max'](0x1,_0x1578e8['length'])),_0x4a1f1d=this[_0x52d10c(0xe5)](_0x1578e8,_0x4ec665),_0x2021f9=_0x4a1f1d[_0x52d10c(0xde)](_0x40c0b2=>{const _0x5234ff=_0x52d10c,_0x1ac1dc=new Worker(_0x4a8ed1,{'type':_0x5234ff(0xda)});return _0x186cd5['push'](_0x1ac1dc),new Promise(_0x4ad383=>{const _0x344e11=_0x5234ff;_0x1ac1dc[_0x344e11(0xac)]=_0x4755b4=>{const _0x2bc3c9=_0x344e11;_0x4ad383(_0x4755b4[_0x2bc3c9(0xc0)][_0x2bc3c9(0xe9)]);},_0x1ac1dc[_0x344e11(0xce)]=_0x4e2316=>{const _0x5a2f45=_0x344e11;console[_0x5a2f45(0xe1)](_0x4e2316);},_0x1ac1dc[_0x344e11(0xb1)]({'breaks':_0x40c0b2,'values':_0x17837a,'nx':_0x5e64f7,'ny':_0x231326,'minVal':this['minVal'],'maxVal':this[_0x344e11(0xb4)],'minLng':this[_0x344e11(0xd3)],'minLat':this[_0x344e11(0xb6)],'gjLng':this[_0x344e11(0xcd)],'gjLat':this[_0x344e11(0x99)]});});}),_0x1e96af=await Promise[_0x52d10c(0x9a)](_0x2021f9);return _0x186cd5['forEach'](_0x27a63f=>_0x27a63f[_0x52d10c(0xb9)]()),_0x1e96af[_0x52d10c(0xa5)](_0x5ded36=>{const _0x415302=_0x52d10c;_0x35158f[_0x415302(0xee)](..._0x5ded36);}),_0x35158f=this[_0x52d10c(0xbd)](_0x35158f),{'type':'FeatureCollection','features':_0x35158f};};[a3_0x1d888f(0xe2)]=(_0x31b303=[])=>{const _0x4971aa=a3_0x1d888f;if(this[_0x4971aa(0xcf)][_0x4971aa(0xc3)]===0x0)return{'type':_0x4971aa(0xeb),'features':[]};if(_0x31b303['length']===0x0)_0x31b303=this[_0x4971aa(0xa0)]();const _0x577d4e=this[_0x4971aa(0xcf)][_0x4971aa(0xde)](_0x2a6c66=>_0x2a6c66[_0x4971aa(0xbe)]),_0x309ae7=this['lngLineNum'],_0x5bd8e8=this[_0x4971aa(0xbf)];return{'values':_0x577d4e,'breaks':_0x31b303,'nx':_0x309ae7,'ny':_0x5bd8e8};};[a3_0x1d888f(0xbd)]=_0x131d11=>{const _0x45cbda=a3_0x1d888f;return _0x131d11[_0x45cbda(0xde)](_0x47792f=>{const _0x2bbab8=_0x45cbda;try{const _0x1b9935=a3_0x16ae44(_0x47792f)||0x0;_0x47792f[_0x2bbab8(0xa1)]={..._0x47792f[_0x2bbab8(0xa1)]||{},'__area':_0x1b9935};}catch{_0x47792f[_0x2bbab8(0xa1)]={..._0x47792f[_0x2bbab8(0xa1)]||{},'__area':0x0};}return _0x47792f;})[_0x45cbda(0xec)]((_0x12c35a,_0x1e8e15)=>_0x1e8e15[_0x45cbda(0xa1)][_0x45cbda(0xd7)]-_0x12c35a['properties'][_0x45cbda(0xd7)])[_0x45cbda(0xa4)](_0x5f1a0b=>_0x5f1a0b[_0x45cbda(0xa1)]&&'__area'in _0x5f1a0b[_0x45cbda(0xa1)]&&_0x5f1a0b['properties'][_0x45cbda(0xd7)]!==0x0)[_0x45cbda(0xde)](_0xcd4162=>{const _0x550a8e=_0x45cbda;if(_0xcd4162[_0x550a8e(0xa1)]&&_0x550a8e(0xd7)in _0xcd4162[_0x550a8e(0xa1)]){const {__area:_0x17a3d4,..._0x13cd31}=_0xcd4162['properties'];_0xcd4162[_0x550a8e(0xa1)]=_0x13cd31;}return _0xcd4162;});};}export default _readFileDiamond4;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "m4-w-fast",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,23 +10,19 @@
|
|
|
10
10
|
"import": "./dist/index.js",
|
|
11
11
|
"require": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
-
"./
|
|
14
|
-
"./
|
|
15
|
-
"./dist/isoBands.worker.js": "./dist/isoBands.worker.js",
|
|
16
|
-
"./dist/isoBands.worker": "./dist/isoBands.worker.js"
|
|
13
|
+
"./isoBands.worker.js": "./dist/isoBands.worker.js",
|
|
14
|
+
"./intersect.worker.js": "./dist/intersect.worker.js"
|
|
17
15
|
},
|
|
18
16
|
"scripts": {
|
|
19
17
|
"build:types": "tsc -p tsconfig.build.json",
|
|
20
18
|
"obfuscate": "javascript-obfuscator dist --output dist",
|
|
21
|
-
"build": "npm run build:types && npm run obfuscate",
|
|
22
|
-
"prepublishOnly": "npm run build"
|
|
19
|
+
"build": "npm run build:types && npm run build:rollup && npm run obfuscate",
|
|
20
|
+
"prepublishOnly": "npm run build",
|
|
21
|
+
"build:rollup": "rollup -c"
|
|
23
22
|
},
|
|
24
23
|
"author": "wangrl",
|
|
25
24
|
"license": "ISC",
|
|
26
25
|
"type": "module",
|
|
27
|
-
"bin": {
|
|
28
|
-
"w-m4-fast": "dist/index.js"
|
|
29
|
-
},
|
|
30
26
|
"files": [
|
|
31
27
|
"dist",
|
|
32
28
|
"package.json",
|
|
@@ -41,21 +37,27 @@
|
|
|
41
37
|
},
|
|
42
38
|
"peerDependencies": {
|
|
43
39
|
"@turf/turf": "^6.5.0",
|
|
44
|
-
"big.js": "^7",
|
|
45
40
|
"d3-contour": "^4"
|
|
46
41
|
},
|
|
47
42
|
"dependencies": {
|
|
43
|
+
"@turf/area": "^7.2.0",
|
|
44
|
+
"@turf/isobands": "^7.2.0",
|
|
45
|
+
"@turf/isolines": "^7.2.0",
|
|
48
46
|
"@turf/turf": "^6.5.0",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
47
|
+
"d3-contour": "^4",
|
|
48
|
+
"decimal.js": "^10.6.0"
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
51
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
52
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
53
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
53
54
|
"@tsconfig/node20": "^20.1.2",
|
|
54
55
|
"@types/big.js": "^6.2.2",
|
|
55
56
|
"@types/d3-contour": "^3.0.6",
|
|
56
57
|
"@types/geojson": "latest",
|
|
57
58
|
"esbuild": "^0.25.11",
|
|
58
59
|
"javascript-obfuscator": "^4.1.1",
|
|
60
|
+
"rollup": "^4.52.5",
|
|
59
61
|
"typescript": "latest"
|
|
60
62
|
}
|
|
61
63
|
}
|