m4-w-fast 1.0.6 → 1.0.7
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 +2 -0
- package/dist/index.js +1 -1
- package/dist/intersect.worker.js +2 -2
- package/dist/isoBands.worker.js +1 -1
- package/dist/readFile.d.ts +8 -0
- package/dist/readFile.js +1 -1
- package/package.json +1 -1
package/dist/readFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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();}
|
|
1
|
+
function a3_0x3ba0(_0x52ce72,_0x12bc60){const _0x23fe86=a3_0x23fe();return a3_0x3ba0=function(_0x3ba044,_0x5b0bdd){_0x3ba044=_0x3ba044-0x1d9;let _0x1625ca=_0x23fe86[_0x3ba044];return _0x1625ca;},a3_0x3ba0(_0x52ce72,_0x12bc60);}const a3_0x410f6c=a3_0x3ba0;(function(_0x1f17c1,_0x50dce0){const _0x10a894=a3_0x3ba0,_0x2462cb=_0x1f17c1();while(!![]){try{const _0x5c7e03=-parseInt(_0x10a894(0x20b))/0x1+parseInt(_0x10a894(0x1ed))/0x2*(-parseInt(_0x10a894(0x1e2))/0x3)+-parseInt(_0x10a894(0x1f6))/0x4*(-parseInt(_0x10a894(0x1e0))/0x5)+parseInt(_0x10a894(0x1f3))/0x6*(-parseInt(_0x10a894(0x21d))/0x7)+-parseInt(_0x10a894(0x23b))/0x8*(parseInt(_0x10a894(0x1f9))/0x9)+-parseInt(_0x10a894(0x20f))/0xa+parseInt(_0x10a894(0x21a))/0xb;if(_0x5c7e03===_0x50dce0)break;else _0x2462cb['push'](_0x2462cb['shift']());}catch(_0x28fa01){_0x2462cb['push'](_0x2462cb['shift']());}}}(a3_0x23fe,0x6a623));import{contours}from'd3-contour';import a3_0x4e0606 from'@turf/area';import{featureCollection as a3_0x461e3a}from'@turf/helpers';import a3_0x1ddee9 from'decimal.js';export class readFileM4{['filePath']='';['nx']=0x0;['ny']=0x0;[a3_0x410f6c(0x227)]=0x0;['minLat']=0x0;[a3_0x410f6c(0x23c)]=0x0;[a3_0x410f6c(0x207)]=0x0;['values']=[];[a3_0x410f6c(0x230)]=-Infinity;[a3_0x410f6c(0x200)]=Infinity;[a3_0x410f6c(0x220)]='';[a3_0x410f6c(0x22c)]=new Map();constructor(_0x21fd05){const _0x2e4ed1=a3_0x410f6c;this[_0x2e4ed1(0x21b)]=_0x21fd05||'';}async[a3_0x410f6c(0x228)](_0x231152){const _0x5c11c9=a3_0x410f6c,_0x7ef2ef=await fetch(this[_0x5c11c9(0x21b)]);if(!_0x7ef2ef['ok'])return new Promise((_0x45b3aa,_0x41e9df)=>{_0x41e9df('该时次未获取到文件');});const _0x5db7e8=await _0x7ef2ef[_0x5c11c9(0x20c)](),_0x10d038=_0x5db7e8[_0x5c11c9(0x22d)](/\r\n/g,'\x0a')[_0x5c11c9(0x22d)](/\r/g,'\x0a')['split']('\x0a');if(_0x10d038[_0x5c11c9(0x236)]<0x4)return new Promise((_0x5e5474,_0x15df21)=>{const _0x1acc9a=_0x5c11c9;_0x15df21(_0x1acc9a(0x211));});const _0xdcf709=(_0x10d038[0x1]??'')[_0x5c11c9(0x233)]()[_0x5c11c9(0x209)](/\s+/);let _0x40f809=0x2;while(_0xdcf709[_0x5c11c9(0x236)]<0x13){_0xdcf709['push'](...(_0x10d038[_0x40f809]??'')[_0x5c11c9(0x233)]()[_0x5c11c9(0x209)](/\s+/)),_0x40f809++;}this[_0x5c11c9(0x23c)]=Number(_0xdcf709[0x6]);const _0x2a7a99=Number(_0xdcf709[0x8]),_0x1c6aae=Number(_0xdcf709[0xa]),_0x2c1c29=Number(_0xdcf709[0xb]);this['nx']=Number(_0xdcf709[0xc]),this['ny']=Number(_0xdcf709[0xd]),this[_0x5c11c9(0x227)]=_0x2a7a99,this[_0x5c11c9(0x224)]=_0x1c6aae,this[_0x5c11c9(0x207)]=Math[_0x5c11c9(0x223)](Number(_0xdcf709[0x7]))*(_0x1c6aae>_0x2c1c29?-0x1:0x1);const _0x55cc67=this['nx']*this['ny'];let _0x4d1008=0x0;for(let _0x43c282=_0x40f809;_0x43c282<_0x10d038[_0x5c11c9(0x236)]&&_0x4d1008<_0x55cc67;_0x43c282++){const _0x13975b=_0x10d038[_0x43c282][_0x5c11c9(0x233)]()??'',_0x4d46d1=_0x13975b[_0x5c11c9(0x209)](/\s+/);if(!_0x4d46d1||_0x4d46d1[_0x5c11c9(0x236)]===0x0)continue;for(let _0x19dc77=0x0;_0x19dc77<_0x4d46d1[_0x5c11c9(0x236)]&&_0x4d1008<_0x55cc67;_0x19dc77++){let _0xd8f0c8=Number(_0x4d46d1[_0x19dc77]);if(_0x231152?.['convertTemKtoC'])_0xd8f0c8=new a3_0x1ddee9(_0xd8f0c8)['minus'](272.15)['toNumber']();else _0x231152?.[_0x5c11c9(0x1dd)]&&(_0xd8f0c8=new a3_0x1ddee9(_0xd8f0c8)['plus'](_0x231152['plusOffset'])[_0x5c11c9(0x225)]());this['values'][_0x5c11c9(0x217)](_0xd8f0c8),this[_0x5c11c9(0x200)]=Math[_0x5c11c9(0x1f8)](this['minVal'],_0xd8f0c8),this[_0x5c11c9(0x230)]=Math[_0x5c11c9(0x222)](this[_0x5c11c9(0x230)],_0xd8f0c8),_0x4d1008++;}}}[a3_0x410f6c(0x232)](_0x15171b,_0x5d8530){const _0x309b78=a3_0x410f6c;this['nx']=_0x15171b['nx'],this['ny']=_0x15171b['ny'],this['minLng']=_0x15171b[_0x309b78(0x227)],this['minLat']=_0x15171b[_0x309b78(0x224)],this['gjLng']=_0x15171b['gjLng'],this[_0x309b78(0x207)]=_0x15171b[_0x309b78(0x207)];if(_0x5d8530?.[_0x309b78(0x221)])for(let _0x2b4a34=0x0;_0x2b4a34<_0x15171b['values'][_0x309b78(0x236)];_0x2b4a34++){_0x15171b[_0x309b78(0x21c)][_0x2b4a34]=new a3_0x1ddee9(_0x15171b[_0x309b78(0x21c)][_0x2b4a34])['minus'](272.15)[_0x309b78(0x225)]();}else{if(_0x5d8530?.[_0x309b78(0x1dd)])for(let _0x56c300=0x0;_0x56c300<_0x15171b[_0x309b78(0x21c)][_0x309b78(0x236)];_0x56c300++){_0x15171b[_0x309b78(0x21c)][_0x56c300]=new a3_0x1ddee9(_0x15171b[_0x309b78(0x21c)][_0x56c300])[_0x309b78(0x1e8)](_0x5d8530[_0x309b78(0x1dd)])[_0x309b78(0x225)]();}else this[_0x309b78(0x21c)]=_0x15171b[_0x309b78(0x21c)];}this[_0x309b78(0x237)]();}[a3_0x410f6c(0x20e)](_0x1c8c67){const _0x471b8b=a3_0x410f6c;if(this[_0x471b8b(0x21c)]['length']===0x0)return{'type':'FeatureCollection','features':[]};let _0x24f1c3=[];if(_0x1c8c67['length']===0x0)_0x1c8c67=this[_0x471b8b(0x1df)]();const _0x5e0ca4=[];for(let _0x48c5e5=0x0;_0x48c5e5<_0x1c8c67[_0x471b8b(0x236)];_0x48c5e5++){const _0x255f49=_0x1c8c67[_0x48c5e5],_0x2cc574=_0x48c5e5<_0x1c8c67[_0x471b8b(0x236)]-0x1?_0x1c8c67[_0x48c5e5+0x1]:Infinity;if(_0x255f49<this[_0x471b8b(0x200)]&&_0x2cc574<this[_0x471b8b(0x200)])continue;if(_0x255f49>this['maxVal']&&_0x2cc574>this[_0x471b8b(0x230)])continue;_0x5e0ca4[_0x471b8b(0x217)](_0x255f49);}const _0x52f30b=contours()[_0x471b8b(0x1e7)]([this['nx'],this['ny']])['thresholds'](_0x5e0ca4),_0x195d5e=_0x52f30b(this[_0x471b8b(0x21c)]);for(const _0x18f7b7 of _0x195d5e){for(const _0x5bb1bb of _0x18f7b7[_0x471b8b(0x201)]){if(Array[_0x471b8b(0x215)](_0x5bb1bb))for(const _0x3200cc of _0x5bb1bb){_0x3200cc[_0x471b8b(0x20d)](_0xa31996=>{const _0x2a3de9=_0x471b8b,_0x254ff0=_0xa31996[0x0],_0x542d23=_0xa31996[0x1];if(_0x254ff0==null||_0x542d23==null||Number[_0x2a3de9(0x1dc)](_0x254ff0)||Number[_0x2a3de9(0x1dc)](_0x542d23))return null;const _0x1fbf07=new a3_0x1ddee9(this[_0x2a3de9(0x227)])[_0x2a3de9(0x1e8)](new a3_0x1ddee9(_0x254ff0)[_0x2a3de9(0x22b)](this[_0x2a3de9(0x23c)]))[_0x2a3de9(0x225)](),_0x5bb007=new a3_0x1ddee9(this[_0x2a3de9(0x224)])['plus'](new a3_0x1ddee9(_0x542d23)['times'](this['gjLat']))['toNumber']();_0xa31996[0x0]=_0x1fbf07,_0xa31996[0x1]=_0x5bb007;});}}_0x24f1c3['push']({'type':_0x471b8b(0x1ee),'properties':{'z':_0x18f7b7[_0x471b8b(0x1e9)]},'geometry':_0x18f7b7});}return{'type':'FeatureCollection','features':_0x24f1c3};}[a3_0x410f6c(0x22e)](_0x2d5a1f,_0x381346){const _0x41325f=a3_0x410f6c;if(this[_0x41325f(0x21c)][_0x41325f(0x236)]===0x0)return{'type':_0x41325f(0x1e3),'features':[]};let _0x173847=[];if(_0x2d5a1f[_0x41325f(0x236)]===0x0)_0x2d5a1f=this[_0x41325f(0x1df)]();const _0x1023c3=[];for(let _0x436c9c=0x0;_0x436c9c<_0x2d5a1f['length'];_0x436c9c++){const _0x148186=_0x2d5a1f[_0x436c9c],_0x4b3597=_0x436c9c<_0x2d5a1f['length']-0x1?_0x2d5a1f[_0x436c9c+0x1]:Infinity;if(_0x148186<this['minVal']&&_0x4b3597<this[_0x41325f(0x200)])continue;if(_0x148186>this['maxVal']&&_0x4b3597>this[_0x41325f(0x230)])continue;_0x1023c3[_0x41325f(0x217)](_0x148186);}const _0x1c91fc=contours()[_0x41325f(0x1e7)]([this['nx'],this['ny']])[_0x41325f(0x1f2)](_0x1023c3),_0x22b651=_0x1c91fc(this['values']),_0x549d9f=this[_0x41325f(0x227)],_0x9b506a=this[_0x41325f(0x224)],_0x16ac35=_0x549d9f+this['nx']*this['gjLng'],_0x3e7f64=_0x9b506a+this['ny']*this['gjLat'],_0x321a24=_0x16ac35-_0x549d9f,_0x24e8fb=_0x3e7f64-_0x9b506a,_0x3a6c05=_0x381346?.['width']||0x400,_0x9062f7=_0x381346?.[_0x41325f(0x235)]||Math[_0x41325f(0x222)](0x1,Math['round'](_0x3a6c05*(_0x24e8fb/Math[_0x41325f(0x222)](1e-12,_0x321a24)))),_0x3d228c=_0x381346?.[_0x41325f(0x204)]||(typeof devicePixelRatio!=='undefined'?devicePixelRatio:0x1),_0x175d82=document[_0x41325f(0x1ea)](_0x41325f(0x1d9));if(!_0x175d82)return null;const _0x10dba1=_0x175d82['getContext']('2d');if(!_0x10dba1)return null;_0x175d82[_0x41325f(0x1e1)]=_0x3a6c05*_0x3d228c,_0x175d82[_0x41325f(0x235)]=_0x9062f7*_0x3d228c,_0x10dba1[_0x41325f(0x214)](_0x3d228c,_0x3d228c);for(const _0x388e5d of _0x22b651){const _0x2cf730=_0x388e5d['value'];_0x10dba1[_0x41325f(0x1e4)]();for(const _0xd99508 of _0x388e5d[_0x41325f(0x201)]){if(Array['isArray'](_0xd99508))for(const _0x2f9341 of _0xd99508){_0x2f9341[_0x41325f(0x20d)]((_0x5f1e14,_0x486b62)=>{const _0x2c609f=_0x41325f,_0x154f44=(_0x5f1e14[0x0]-_0x549d9f)/_0x321a24*_0x3a6c05,_0x59ef98=_0x9062f7-(_0x5f1e14[0x1]-_0x9b506a)/_0x24e8fb*_0x9062f7;_0x486b62===0x0?_0x10dba1[_0x2c609f(0x239)](_0x154f44,_0x59ef98):_0x10dba1[_0x2c609f(0x23a)](_0x154f44,_0x59ef98);});}}_0x10dba1[_0x41325f(0x216)](),_0x10dba1[_0x41325f(0x212)]=this[_0x41325f(0x206)](_0x2cf730,_0x2d5a1f,[]),_0x10dba1[_0x41325f(0x20a)]();}return _0x175d82;}[a3_0x410f6c(0x206)](_0x12a6b6,_0x2296b3,_0x398cab){const _0x21d15a=a3_0x410f6c;let _0x461f62='rgba(255,255,255,0)';const _0x999250=_0x2296b3[_0x21d15a(0x226)](_0x12a6b6);if(typeof _0x398cab[_0x999250]==_0x21d15a(0x21e))_0x461f62=_0x398cab[_0x999250];else _0x999250!==-0x1&&(_0x461f62='rgba('+_0x398cab[_0x999250][0x0]+','+_0x398cab[_0x999250][0x1]+','+_0x398cab[_0x999250][0x2]+','+(_0x398cab[_0x999250][0x3]||_0x398cab[_0x999250][0x3]===0x0?_0x398cab[_0x999250][0x3]:0x1)+')');return _0x461f62;}async[a3_0x410f6c(0x1e6)](_0x1056a0,_0x52d7b7,_0x24931,_0x7b5450){const _0x4888f3=a3_0x410f6c,_0x5db121=_0x7b5450?_0x7b5450:navigator[_0x4888f3(0x1fb)]-0x4||0x1,_0x2737e7=Math[_0x4888f3(0x1f8)](_0x5db121,Math[_0x4888f3(0x222)](0x1,_0x1056a0[_0x4888f3(0x238)][_0x4888f3(0x236)])),_0x306828=this['chunkArray'](_0x1056a0[_0x4888f3(0x238)],_0x2737e7),_0x59ee45=[],_0x22cea1=_0x306828[_0x4888f3(0x1f4)](_0xacfb8b=>{const _0x1da0fd=_0x4888f3,_0x1fdc13=new Worker(_0x24931,{'type':_0x1da0fd(0x1e5)});return _0x59ee45[_0x1da0fd(0x217)](_0x1fdc13),new Promise(_0x3e4d0c=>{const _0x589bd4=_0x1da0fd;_0x1fdc13[_0x589bd4(0x1fc)]=_0x5e29fd=>{const _0x146caf=_0x589bd4;_0x3e4d0c(_0x5e29fd[_0x146caf(0x203)]['features']);},_0x1fdc13['onerror']=_0x2d466b=>{const _0x57bff7=_0x589bd4;console[_0x57bff7(0x1f7)](_0x2d466b);},_0x1fdc13[_0x589bd4(0x1f1)]({'isoChunk':_0xacfb8b,'gansuFeatures':_0x52d7b7[_0x589bd4(0x238)]});});}),_0x2cb358=await Promise[_0x4888f3(0x205)](_0x22cea1);_0x59ee45[_0x4888f3(0x20d)](_0x1c1914=>_0x1c1914['terminate']());const _0x49ff41=_0x2cb358[_0x4888f3(0x208)]();return a3_0x461e3a(_0x49ff41);}async[a3_0x410f6c(0x1de)](_0x2436fb,_0x1450c0,_0x3bfd51){const _0x361dc7=a3_0x410f6c;if(this[_0x361dc7(0x21c)][_0x361dc7(0x236)]===0x0)return{'type':_0x361dc7(0x1e3),'features':[]};let _0x12a450=[];if(_0x2436fb[_0x361dc7(0x236)]===0x0)_0x2436fb=this[_0x361dc7(0x1df)]();const _0x2017aa=[],_0x257e9c=_0x3bfd51?_0x3bfd51:navigator['hardwareConcurrency']-0x4||0x1,_0x4df9b8=Math['min'](_0x257e9c,Math[_0x361dc7(0x222)](0x1,_0x2436fb[_0x361dc7(0x236)])),_0x18cdd6=this[_0x361dc7(0x1f0)](_0x2436fb,_0x4df9b8),_0x2bfce3=_0x18cdd6[_0x361dc7(0x1f4)](_0x5a4996=>{const _0x14037f=_0x361dc7,_0x2ed949=new Worker(_0x1450c0,{'type':_0x14037f(0x1e5)});return _0x2017aa['push'](_0x2ed949),new Promise(_0x26d955=>{const _0x29bcc3=_0x14037f;_0x2ed949['onmessage']=_0x529e23=>{const _0x2c93a7=a3_0x3ba0;_0x26d955(_0x529e23[_0x2c93a7(0x203)][_0x2c93a7(0x238)]);},_0x2ed949[_0x29bcc3(0x1fa)]=_0x227a23=>{const _0x482c2a=_0x29bcc3;console[_0x482c2a(0x1f7)](_0x227a23);},_0x2ed949[_0x29bcc3(0x1f1)]({'breaks':_0x5a4996,'values':this[_0x29bcc3(0x21c)],'nx':this['nx'],'ny':this['ny'],'minVal':this[_0x29bcc3(0x200)],'maxVal':this['maxVal'],'minLng':this[_0x29bcc3(0x227)],'minLat':this['minLat'],'gjLng':this[_0x29bcc3(0x23c)],'gjLat':this[_0x29bcc3(0x207)]});});}),_0xcfdae5=await Promise['all'](_0x2bfce3);return _0x2017aa[_0x361dc7(0x20d)](_0x25a002=>_0x25a002[_0x361dc7(0x210)]()),_0xcfdae5[_0x361dc7(0x20d)](_0x4aa6fa=>{const _0x3a5a8d=_0x361dc7;_0x12a450[_0x3a5a8d(0x217)](..._0x4aa6fa);}),_0x12a450=this[_0x361dc7(0x1db)](_0x12a450),{'type':_0x361dc7(0x1e3),'features':_0x12a450};}[a3_0x410f6c(0x1da)](){const _0x2f5c26=a3_0x410f6c;this[_0x2f5c26(0x22c)][_0x2f5c26(0x21f)]();}[a3_0x410f6c(0x231)](_0x20eca2=[],_0x22044b){const _0x156927=a3_0x410f6c;if(typeof _0x22044b!==_0x156927(0x1fd)&&this[_0x156927(0x22c)][_0x156927(0x1fe)](_0x22044b)){const _0x342f51=this[_0x156927(0x22c)][_0x156927(0x1fe)](_0x22044b)||[],_0x217c68=this['sortFeaturesByArea']?this['sortFeaturesByArea'](_0x342f51):_0x342f51;return{'type':_0x156927(0x1e3),'features':_0x217c68};}if(this[_0x156927(0x21c)][_0x156927(0x236)]===0x0)return{'type':_0x156927(0x1e3),'features':[]};if(_0x20eca2['length']===0x0)_0x20eca2=this[_0x156927(0x1df)]();const _0x508b02=_0x20eca2['join'](',');if(this[_0x156927(0x220)]!==_0x508b02){this[_0x156927(0x220)]=_0x508b02,this['_maskCache']['clear']();const _0x263530=this[_0x156927(0x227)],_0x4c67ca=this[_0x156927(0x224)],_0x12ad27=this[_0x156927(0x23c)],_0x19d22b=this[_0x156927(0x207)],_0x1c00f5=_0xe2d203=>{const _0x13685d=_0x156927;let _0x107f6d=0x0;for(let _0x1a08fd=0x0,_0x1c49f1=_0xe2d203[_0x13685d(0x236)];_0x1a08fd<_0x1c49f1;_0x1a08fd++){const _0x28cfe8=_0xe2d203[_0x1a08fd][0x0],_0x5e35a1=_0xe2d203[_0x1a08fd][0x1],_0x43536c=_0xe2d203[(_0x1a08fd+0x1)%_0x1c49f1][0x0],_0x3b04dd=_0xe2d203[(_0x1a08fd+0x1)%_0x1c49f1][0x1];if(_0x28cfe8==null||_0x5e35a1==null||_0x43536c==null||_0x3b04dd==null)continue;_0x107f6d+=_0x28cfe8*_0x3b04dd-_0x43536c*_0x5e35a1;}return _0x107f6d/0x2;},_0x56262d=(_0x106ba7,_0x1cc119)=>{const _0x4f0cae=_0x156927;if(!_0x106ba7)return![];const _0x49d99a=_0x106ba7[0x0],_0x521f1e=_0x106ba7[0x1];let _0x44600d=![];for(let _0x3c773a=0x0,_0x297bc5=_0x1cc119[_0x4f0cae(0x236)]-0x1;_0x3c773a<_0x1cc119[_0x4f0cae(0x236)];_0x297bc5=_0x3c773a++){const _0x14de8f=_0x1cc119[_0x3c773a][0x0],_0x100ddc=_0x1cc119[_0x3c773a][0x1],_0x485006=_0x1cc119[_0x297bc5][0x0],_0x549368=_0x1cc119[_0x297bc5][0x1],_0x378177=_0x100ddc>_0x521f1e!==_0x549368>_0x521f1e&&_0x49d99a<(_0x485006-_0x14de8f)*(_0x521f1e-_0x100ddc)/(_0x549368-_0x100ddc)+_0x14de8f;if(_0x378177)_0x44600d=!_0x44600d;}return _0x44600d;},_0x27e03b=_0x313fe5=>{const _0x90442=_0x156927,_0x15b2ee=[];let _0x1148b4=null,_0x373c6b=null;for(let _0x512db4=0x0;_0x512db4<_0x313fe5[_0x90442(0x236)];_0x512db4++){const _0x3b6234=_0x313fe5[_0x512db4];if(!_0x3b6234)continue;const _0x38dd84=_0x3b6234[0x0],_0x144abc=_0x3b6234[0x1];if(_0x38dd84==null||_0x144abc==null||Number[_0x90442(0x1dc)](_0x38dd84)||Number[_0x90442(0x1dc)](_0x144abc))continue;const _0x3d056f=_0x263530+_0x38dd84*_0x12ad27,_0x29c26e=_0x4c67ca+_0x144abc*_0x19d22b;if(_0x1148b4!==null&&_0x373c6b!==null&&_0x1148b4===_0x3d056f&&_0x373c6b===_0x29c26e){_0x1148b4=_0x3d056f,_0x373c6b=_0x29c26e;continue;}_0x15b2ee[_0x90442(0x217)]([_0x3d056f,_0x29c26e]),_0x1148b4=_0x3d056f,_0x373c6b=_0x29c26e;}if(_0x15b2ee['length']===0x0)return _0x15b2ee;const _0x3a3631=_0x15b2ee[0x0],_0x22847a=_0x15b2ee[_0x15b2ee['length']-0x1];if(_0x3a3631[0x0]!==_0x22847a[0x0]||_0x3a3631[0x1]!==_0x22847a[0x1])_0x15b2ee[_0x90442(0x217)]([_0x3a3631[0x0],_0x3a3631[0x1]]);return _0x15b2ee;},_0x24d44c=_0x20eca2['length']-0x1;for(let _0x2d77a8=0x0;_0x2d77a8<_0x20eca2[_0x156927(0x236)];_0x2d77a8++){const _0x33e734=_0x20eca2[_0x2d77a8],_0x1e695b=_0x2d77a8<_0x24d44c?_0x20eca2[_0x2d77a8+0x1]:Infinity,_0x2255b9=Array['from']({'length':this[_0x156927(0x21c)][_0x156927(0x236)]});let _0x5a4c57=![];for(let _0x2b934d=0x0;_0x2b934d<this[_0x156927(0x21c)]['length'];_0x2b934d++){const _0x95c1cd=this[_0x156927(0x21c)][_0x2b934d],_0x480860=_0x95c1cd>=_0x33e734&&_0x95c1cd<_0x1e695b?0x1:0x0;if(_0x480860)_0x5a4c57=!![];_0x2255b9[_0x2b934d]=_0x480860;}if(!_0x5a4c57)continue;const _0x20de04=contours()['size']([this['nx'],this['ny']])['thresholds']([0.5]),_0x5b2413=_0x20de04[_0x156927(0x1ef)]?_0x20de04[_0x156927(0x1ef)](_0x2255b9):_0x20de04(_0x2255b9);if(!_0x5b2413||_0x5b2413[_0x156927(0x236)]===0x0)continue;const _0x372551=[];for(const _0x5837e4 of _0x5b2413){const _0x5910db=_0x5837e4&&_0x5837e4[_0x156927(0x201)];if(!_0x5910db)continue;for(const _0x489fae of _0x5910db){let _0x1b146d=[];if(Array['isArray'](_0x489fae)&&_0x489fae['length']>0x0&&typeof _0x489fae[0x0][0x0]===_0x156927(0x1ff))_0x1b146d=[_0x489fae];else{if(Array[_0x156927(0x215)](_0x489fae))_0x1b146d=_0x489fae;else continue;}const _0x4d8787=_0x1b146d[_0x156927(0x1f4)](_0x53698a=>({'ring':_0x53698a,'area':Math[_0x156927(0x223)](_0x1c00f5(_0x53698a))}))[_0x156927(0x22f)]((_0x40bfb3,_0x11992e)=>_0x11992e['area']-_0x40bfb3['area']),_0x2a9691=Array[_0x156927(0x213)]({'length':_0x4d8787['length']})[_0x156927(0x20a)](![]);for(let _0x3202c7=0x0;_0x3202c7<_0x4d8787[_0x156927(0x236)];_0x3202c7++){if(_0x2a9691[_0x3202c7])continue;const _0x13b32d=_0x4d8787[_0x3202c7][_0x156927(0x234)];_0x2a9691[_0x3202c7]=!![];const _0x23c67d=[];for(let _0x5de863=0x0;_0x5de863<_0x4d8787[_0x156927(0x236)];_0x5de863++){if(_0x2a9691[_0x5de863])continue;const _0x58568b=_0x4d8787[_0x5de863][_0x156927(0x234)],_0x1ad908=_0x58568b[0x0];_0x1ad908&&_0x56262d(_0x1ad908,_0x13b32d)&&(_0x23c67d[_0x156927(0x217)](_0x58568b),_0x2a9691[_0x5de863]=!![]);}const _0x4313ad=_0x27e03b(_0x13b32d);if(_0x4313ad[_0x156927(0x236)]<0x4)continue;const _0x4a3428=[];for(const _0x1da59b of _0x23c67d){const _0x2a77c6=_0x27e03b(_0x1da59b);if(_0x2a77c6[_0x156927(0x236)]>=0x4)_0x4a3428[_0x156927(0x217)](_0x2a77c6);}_0x372551[_0x156927(0x217)]({'type':_0x156927(0x1ee),'properties':{'z':_0x33e734},'geometry':{'type':_0x156927(0x202),'coordinates':[_0x4313ad,..._0x4a3428]}});}}}_0x372551[_0x156927(0x236)]&&this[_0x156927(0x22c)][_0x156927(0x218)](_0x33e734,_0x372551);}}if(typeof _0x22044b!=='undefined'){const _0x40a3ac=this[_0x156927(0x22c)][_0x156927(0x1fe)](_0x22044b)||[],_0x38a1d5=this[_0x156927(0x1db)]?this[_0x156927(0x1db)](_0x40a3ac):_0x40a3ac;return{'type':'FeatureCollection','features':_0x38a1d5};}const _0x5c71ed=[];for(const _0x45fbe5 of this[_0x156927(0x22c)][_0x156927(0x21c)]()){_0x5c71ed[_0x156927(0x217)](..._0x45fbe5);}const _0x2c0765=this['sortFeaturesByArea']?this['sortFeaturesByArea'](_0x5c71ed):_0x5c71ed;return{'type':_0x156927(0x1e3),'features':_0x2c0765};}['getJsonData'](){const _0xf6a536=a3_0x410f6c,_0x2e7a8d=Array[_0xf6a536(0x213)]({'length':this['nx']});for(let _0x239ddf=0x0;_0x239ddf<this['nx'];_0x239ddf++){_0x2e7a8d[_0x239ddf]=new a3_0x1ddee9(this[_0xf6a536(0x227)])[_0xf6a536(0x1e8)](new a3_0x1ddee9(_0x239ddf)[_0xf6a536(0x22b)](this['gjLng']))[_0xf6a536(0x225)]();}const _0x2fe1d8=Array[_0xf6a536(0x213)]({'length':this['ny']});for(let _0x13bad3=0x0;_0x13bad3<this['ny'];_0x13bad3++){_0x2fe1d8[_0x13bad3]=new a3_0x1ddee9(this[_0xf6a536(0x224)])[_0xf6a536(0x1e8)](new a3_0x1ddee9(_0x13bad3)['times'](this['gjLat']))[_0xf6a536(0x225)]();}const _0x28d68a=Array[_0xf6a536(0x213)]({'length':this['nx']*this['ny']});for(let _0x473c3f=0x0;_0x473c3f<this[_0xf6a536(0x21c)][_0xf6a536(0x236)];_0x473c3f++){const _0x2c3cd5=Math[_0xf6a536(0x1eb)](_0x473c3f/this['nx']),_0x29b6cf=_0x473c3f%this['nx'],_0x5221c6=_0x2e7a8d[_0x29b6cf],_0x2aab5c=_0x2fe1d8[_0x2c3cd5],_0x21c19d=this['values'][_0x473c3f];_0x2aab5c&&_0x5221c6&&(_0x28d68a[_0x473c3f]={'lng':_0x5221c6,'lat':_0x2aab5c,'val':_0x21c19d});}return _0x28d68a;}[a3_0x410f6c(0x237)](){const _0x402c30=a3_0x410f6c;let _0x2fe8cf=-Infinity,_0x38efd9=Infinity;for(let _0x1cad6b=0x0;_0x1cad6b<this[_0x402c30(0x21c)][_0x402c30(0x236)];_0x1cad6b++){const _0x40a59c=this[_0x402c30(0x21c)][_0x1cad6b];if(_0x40a59c>_0x2fe8cf)_0x2fe8cf=_0x40a59c;if(_0x40a59c<_0x38efd9)_0x38efd9=_0x40a59c;}this['minVal']=_0x38efd9,this[_0x402c30(0x230)]=_0x2fe8cf;}[a3_0x410f6c(0x1df)](){const _0x2c60c9=a3_0x410f6c,_0x3d0f39=[];if(this[_0x2c60c9(0x200)]===Infinity||this[_0x2c60c9(0x230)]===-Infinity)return _0x3d0f39;for(let _0x1bc66e=this['minVal']-0x1;_0x1bc66e<=this[_0x2c60c9(0x230)]+0x1;_0x1bc66e++){_0x3d0f39[_0x2c60c9(0x217)](_0x1bc66e);}return _0x3d0f39;}['sortFeaturesByArea'](_0x25b453){const _0x58f845=a3_0x410f6c;return _0x25b453[_0x58f845(0x1f4)](_0x435633=>{const _0x433f7f=_0x58f845;try{const _0x473b60=a3_0x4e0606(_0x435633)||0x0;_0x435633[_0x433f7f(0x22a)]={..._0x435633[_0x433f7f(0x22a)]||{},'__area':_0x473b60};}catch{_0x435633['properties']={..._0x435633[_0x433f7f(0x22a)]||{},'__area':0x0};}return _0x435633;})[_0x58f845(0x22f)]((_0x125fdf,_0x421e04)=>_0x421e04[_0x58f845(0x22a)][_0x58f845(0x1f5)]-_0x125fdf[_0x58f845(0x22a)][_0x58f845(0x1f5)])[_0x58f845(0x219)](_0x57d05a=>_0x57d05a[_0x58f845(0x22a)]&&_0x58f845(0x1f5)in _0x57d05a[_0x58f845(0x22a)]&&_0x57d05a[_0x58f845(0x22a)][_0x58f845(0x1f5)]!==0x0)['map'](_0xa9b774=>{const _0x68c916=_0x58f845;if(_0xa9b774['properties']&&_0x68c916(0x1f5)in _0xa9b774[_0x68c916(0x22a)]){const {__area:_0x50cda6,..._0xc58d9d}=_0xa9b774[_0x68c916(0x22a)];_0xa9b774[_0x68c916(0x22a)]=_0xc58d9d;}return _0xa9b774;});}['chunkArray']=(_0x313142,_0x59aaf9)=>{const _0x2a0fa7=a3_0x410f6c,_0x43e1e1=[],_0x101c20=Math[_0x2a0fa7(0x222)](0x1,Math[_0x2a0fa7(0x229)](_0x313142[_0x2a0fa7(0x236)]/_0x59aaf9));for(let _0x15aae5=0x0;_0x15aae5<_0x59aaf9;_0x15aae5++){_0x43e1e1[_0x2a0fa7(0x217)](_0x313142[_0x2a0fa7(0x1ec)](_0x15aae5*_0x101c20,(_0x15aae5+0x1)*_0x101c20));}return _0x43e1e1;};}export default readFileM4;function a3_0x23fe(){const _0x211826=['27893052hAzBLR','filePath','values','56CAJmPQ','string','clear','_maskCacheKey','convertTemKtoC','max','abs','minLat','toNumber','indexOf','minLng','start','ceil','properties','times','_maskCache','replace','getIsoBandsImage','sort','maxVal','getIsoBandsByLayerBreak','setParams','trim','ring','height','length','getMinMax','features','moveTo','lineTo','8nkJYlS','gjLng','canvas','clearMaskCache','sortFeaturesByArea','isNaN','plusOffset','getIsoBandsFastByWorker','getBreaks','5RpDXGA','width','263964rFVGCI','FeatureCollection','beginPath','module','clipDataByJson','size','plus','value','createElement','floor','slice','16zFKSnk','Feature','contours','chunkArray','postMessage','thresholds','275838tgYOhb','map','__area','791228CZqnZW','error','min','5341509jEagbL','onerror','hardwareConcurrency','onmessage','undefined','get','number','minVal','coordinates','Polygon','data','pixelRatio','all','getColorFast','gjLat','flat','split','fill','62542DvTWqY','text','forEach','getIsoBandsFast','5700610bahaUS','terminate','该时次文件数据异常','fillStyle','from','scale','isArray','closePath','push','set','filter'];a3_0x23fe=function(){return _0x211826;};return a3_0x23fe();}
|