m4-w-fast 1.0.3 → 1.0.4
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 +54 -0
- package/dist/index.js +1 -9
- package/dist/intersect.worker.js +2 -2
- package/dist/isoBands.worker.js +1 -1
- package/dist/readFile.d.ts +125 -53
- package/dist/readFile.js +1 -1
- package/package.json +63 -63
package/dist/readFile.d.ts
CHANGED
|
@@ -1,84 +1,156 @@
|
|
|
1
|
-
import type { FeatureCollection, Polygon, MultiPolygon, GeoJsonProperties } from 'geojson';
|
|
2
|
-
export declare class
|
|
1
|
+
import type { Feature, FeatureCollection, Polygon, MultiPolygon, GeoJsonProperties } from 'geojson';
|
|
2
|
+
export declare class readFileM4 {
|
|
3
3
|
filePath: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
gjLat: number;
|
|
7
|
-
lngLineNum: number;
|
|
8
|
-
latLineNum: number;
|
|
4
|
+
nx: number;
|
|
5
|
+
ny: number;
|
|
9
6
|
minLng: number;
|
|
10
7
|
minLat: number;
|
|
11
|
-
|
|
8
|
+
gjLng: number;
|
|
9
|
+
gjLat: number;
|
|
10
|
+
values: number[];
|
|
12
11
|
maxVal: number;
|
|
13
12
|
minVal: number;
|
|
14
13
|
private _maskCacheKey;
|
|
15
14
|
private _maskCache;
|
|
16
|
-
|
|
15
|
+
/**
|
|
16
|
+
* filePath 可选
|
|
17
|
+
* - filePath -> async start(config?: ReadConfig)
|
|
18
|
+
* - !filePath -> setParams(params: ParamsConfig, config?: ReadConfig)
|
|
19
|
+
* @param filePath
|
|
20
|
+
*/
|
|
21
|
+
constructor(filePath?: string);
|
|
22
|
+
/**
|
|
23
|
+
* 开始解析文件
|
|
24
|
+
* @param config
|
|
25
|
+
*/
|
|
17
26
|
start(config?: ReadConfig): Promise<"该时次未获取到文件" | "该时次文件数据异常" | undefined>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* fast 模式
|
|
27
|
+
/**
|
|
28
|
+
* 自定义数据, 使用他不需要接文件, 也不需要执行start(). 但是需要提供详细的数据
|
|
29
|
+
* @param params
|
|
30
|
+
* @param config
|
|
31
|
+
*/
|
|
32
|
+
setParams(params: ParamsConfig, config?: ReadConfig): void;
|
|
33
|
+
/**
|
|
34
|
+
* 获取等值带
|
|
27
35
|
* @param breaks
|
|
28
36
|
*/
|
|
29
|
-
getIsoBandsFast(breaks
|
|
37
|
+
getIsoBandsFast(breaks: number[]): {
|
|
38
|
+
type: string;
|
|
39
|
+
features: Feature<import("geojson").Geometry, GeoJsonProperties>[];
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* 提取分级对应的颜色
|
|
43
|
+
* @param z 当前分级
|
|
44
|
+
* @param level 分级数组
|
|
45
|
+
* @param color 分级颜色数组
|
|
46
|
+
*/
|
|
47
|
+
getColorFast(z: number | string, level: (number | string)[], color: (number[] | string)[]): string;
|
|
48
|
+
/**
|
|
49
|
+
* 裁剪数据
|
|
50
|
+
* @param iosBands 等值带数据
|
|
51
|
+
* @param json 裁剪范围数据
|
|
52
|
+
* @param intersectWorkerUrl 裁剪 Worker 脚本 URL
|
|
53
|
+
* @param useCpuCount 可选,使用的 CPU 核心数
|
|
54
|
+
*/
|
|
55
|
+
clipDataByJson(iosBands: FeatureCollection, json: FeatureCollection, intersectWorkerUrl: string, useCpuCount?: number): Promise<import("@turf/helpers").FeatureCollection<Polygon | MultiPolygon, GeoJsonProperties>>;
|
|
56
|
+
/**
|
|
57
|
+
* 使用 Worker 多线程获取等值带
|
|
58
|
+
* @param breaks 等值带分级
|
|
59
|
+
* @param bandsWorkerUrl 等值带计算 Worker 脚本 URL
|
|
60
|
+
* @param useCpuCount 可选,使用的 CPU 核心数
|
|
61
|
+
*/
|
|
62
|
+
getIsoBandsFastByWorker(breaks: number[], bandsWorkerUrl: string, useCpuCount?: number): Promise<FeatureCollection>;
|
|
63
|
+
/**
|
|
64
|
+
* 清理等值带缓存 (缓存只在 getIsoBandsByLayerBreak 方法中使用)
|
|
65
|
+
*/
|
|
30
66
|
clearMaskCache(): void;
|
|
31
67
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
68
|
+
* 获取等值带 (支持按层获取或全部层合并获取)
|
|
69
|
+
* - 单层因为数据丢失可能不准确
|
|
34
70
|
* @param breaks
|
|
35
71
|
* @param layerLower
|
|
36
72
|
*/
|
|
37
|
-
getIsoBandsByLayerBreak
|
|
73
|
+
getIsoBandsByLayerBreak(breaks?: number[], layerLower?: number): {
|
|
74
|
+
type: string;
|
|
75
|
+
features: Feature<import("geojson").Geometry, GeoJsonProperties>[];
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 获取 JSON 数据数组
|
|
79
|
+
* @return JSONData[]
|
|
80
|
+
*/
|
|
81
|
+
getJsonData(): JSONData[];
|
|
82
|
+
/**
|
|
83
|
+
* 获取最大最小值
|
|
84
|
+
* @private
|
|
85
|
+
*/
|
|
86
|
+
private getMinMax;
|
|
87
|
+
/**
|
|
88
|
+
* 获取分级
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
private getBreaks;
|
|
38
92
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param
|
|
41
|
-
* @
|
|
42
|
-
* @param color
|
|
93
|
+
* 按面积排序
|
|
94
|
+
* @param fc
|
|
95
|
+
* @private
|
|
43
96
|
*/
|
|
44
|
-
|
|
97
|
+
private sortFeaturesByArea;
|
|
45
98
|
/**
|
|
46
99
|
* 数组分块
|
|
47
100
|
* @param arr
|
|
48
101
|
* @param parts
|
|
49
102
|
*/
|
|
50
103
|
private chunkArray;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* 读取文件对数据的处理
|
|
107
|
+
*/
|
|
108
|
+
interface ReadConfig {
|
|
51
109
|
/**
|
|
52
|
-
*
|
|
53
|
-
* @param iosBands
|
|
54
|
-
* @param json
|
|
55
|
-
* @param workerUrl
|
|
110
|
+
* 是否将温度从开尔文转换为摄氏度(如果数据确实是温度的话)
|
|
56
111
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
112
|
+
convertTemKtoC?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* 附加偏移量 (如果需要对数值进行调整)
|
|
115
|
+
*/
|
|
116
|
+
plusOffset?: number;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 设置数据参数
|
|
120
|
+
*/
|
|
121
|
+
interface ParamsConfig {
|
|
122
|
+
/**
|
|
123
|
+
* 数据值数组
|
|
124
|
+
*/
|
|
125
|
+
values: number[];
|
|
126
|
+
/**
|
|
127
|
+
* 栅格列数
|
|
128
|
+
*/
|
|
129
|
+
nx: number;
|
|
130
|
+
/**
|
|
131
|
+
* 栅格行数
|
|
132
|
+
*/
|
|
133
|
+
ny: number;
|
|
134
|
+
/**
|
|
135
|
+
* 最小经度
|
|
136
|
+
*/
|
|
137
|
+
minLng: number;
|
|
138
|
+
/**
|
|
139
|
+
* 最小纬度
|
|
140
|
+
*/
|
|
141
|
+
minLat: number;
|
|
142
|
+
/**
|
|
143
|
+
* 经度分辨率
|
|
144
|
+
*/
|
|
145
|
+
gjLng: number;
|
|
146
|
+
/**
|
|
147
|
+
* 纬度分辨率
|
|
148
|
+
*/
|
|
149
|
+
gjLat: number;
|
|
75
150
|
}
|
|
76
151
|
interface JSONData {
|
|
77
152
|
lat: number;
|
|
78
153
|
lng: number;
|
|
79
154
|
val: number;
|
|
80
155
|
}
|
|
81
|
-
|
|
82
|
-
convertTemKtoC: boolean;
|
|
83
|
-
}
|
|
84
|
-
export default _readFileDiamond4;
|
|
156
|
+
export default readFileM4;
|
package/dist/readFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
const a3_0x24c936=a3_0x3954;(function(_0x567b2a,_0x48e957){const _0x419b0b=a3_0x3954,_0x4e653f=_0x567b2a();while(!![]){try{const _0x1b04f4=-parseInt(_0x419b0b(0xc4))/0x1*(-parseInt(_0x419b0b(0xea))/0x2)+parseInt(_0x419b0b(0xfd))/0x3+-parseInt(_0x419b0b(0xbc))/0x4*(-parseInt(_0x419b0b(0xf1))/0x5)+-parseInt(_0x419b0b(0xc8))/0x6*(-parseInt(_0x419b0b(0xec))/0x7)+parseInt(_0x419b0b(0xc5))/0x8+-parseInt(_0x419b0b(0xd9))/0x9+parseInt(_0x419b0b(0xd7))/0xa*(-parseInt(_0x419b0b(0xef))/0xb);if(_0x1b04f4===_0x48e957)break;else _0x4e653f['push'](_0x4e653f['shift']());}catch(_0xe7937c){_0x4e653f['push'](_0x4e653f['shift']());}}}(a3_0x36c2,0xcab76));function a3_0x36c2(){const _0x4f171b=['postMessage','replace','220TkMzJq','split','2317995eRjxHA','floor','hardwareConcurrency','plus','thresholds','gjLat','coordinates','slice','filePath','convertTemKtoC','sort','onmessage','clear','min','map','getIsoBandsByLayerBreak','error','3646mwUZDt','minVal','1540413hPCGMw','size','filter','1177099iLOHSr','set','809445tpaWoX','features','length','_maskCache','push','get','ceil','abs','all','join','properties','rgba(','1540071OZoatt','module','contour','minLat','data','toNumber','start','number','getMinMax','sortFeaturesByArea','getIsoBandsFastByWorker','maxVal','max','undefined','times','minLng','Polygon','onerror','indexOf','terminate','chunkArray','from','28BbEtjr','getBreaks','gjLng','Feature','isNaN','forEach','FeatureCollection','contours','813iqhAmj','746728QNpJVd','rgba(255,255,255,0)','string','6JQiWpO','trim','values','ring','flat','minus','plusOffset','isArray','getJsonData','该时次未获取到文件','_maskCacheKey','__area','area'];a3_0x36c2=function(){return _0x4f171b;};return a3_0x36c2();}import{contours}from'd3-contour';import a3_0x93638c from'@turf/area';import{featureCollection as a3_0x476a7b}from'@turf/helpers';import a3_0x416a62 from'decimal.js';export class readFileM4{[a3_0x24c936(0xe1)]='';['nx']=0x0;['ny']=0x0;[a3_0x24c936(0xb5)]=0x0;[a3_0x24c936(0x100)]=0x0;[a3_0x24c936(0xbe)]=0x0;['gjLat']=0x0;[a3_0x24c936(0xca)]=[];[a3_0x24c936(0xb1)]=-Infinity;[a3_0x24c936(0xeb)]=Infinity;[a3_0x24c936(0xd2)]='';['_maskCache']=new Map();constructor(_0x374afd){const _0x395d4a=a3_0x24c936;this[_0x395d4a(0xe1)]=_0x374afd||'';}async[a3_0x24c936(0x103)](_0xeb17df){const _0x424f98=a3_0x24c936,_0x7b4e13=await fetch(this[_0x424f98(0xe1)]);if(!_0x7b4e13['ok'])return _0x424f98(0xd1);const _0x1a2f59=await _0x7b4e13['text'](),_0x4efb6b=_0x1a2f59[_0x424f98(0xd6)](/\r\n/g,'\x0a')[_0x424f98(0xd6)](/\r/g,'\x0a')['split']('\x0a');if(_0x4efb6b['length']<0x4)return'该时次文件数据异常';const _0x1e975c=(_0x4efb6b[0x1]??'')[_0x424f98(0xc9)]()[_0x424f98(0xd8)](/\s+/);let _0x1fe310=0x2;while(_0x1e975c[_0x424f98(0xf3)]<0x13){_0x1e975c[_0x424f98(0xf5)](...(_0x4efb6b[_0x1fe310]??'')[_0x424f98(0xc9)]()[_0x424f98(0xd8)](/\s+/)),_0x1fe310++;}this[_0x424f98(0xbe)]=Number(_0x1e975c[0x6]);const _0x4fc7a7=Number(_0x1e975c[0x8]),_0x20d88c=Number(_0x1e975c[0xa]),_0x201338=Number(_0x1e975c[0xb]);this['nx']=Number(_0x1e975c[0xc]),this['ny']=Number(_0x1e975c[0xd]),this[_0x424f98(0xb5)]=_0x4fc7a7,this[_0x424f98(0x100)]=_0x20d88c,this[_0x424f98(0xde)]=Math[_0x424f98(0xf8)](Number(_0x1e975c[0x7]))*(_0x20d88c>_0x201338?-0x1:0x1);const _0x96ff17=this['nx']*this['ny'];let _0x3449cc=0x0;for(let _0x54a26f=_0x1fe310;_0x54a26f<_0x4efb6b[_0x424f98(0xf3)]&&_0x3449cc<_0x96ff17;_0x54a26f++){const _0x439343=_0x4efb6b[_0x54a26f]['trim']()??'',_0x4549fc=_0x439343[_0x424f98(0xd8)](/\s+/);if(!_0x4549fc||_0x4549fc[_0x424f98(0xf3)]===0x0)continue;for(let _0x3bc7f2=0x0;_0x3bc7f2<_0x4549fc[_0x424f98(0xf3)]&&_0x3449cc<_0x96ff17;_0x3bc7f2++){let _0xc66225=Number(_0x4549fc[_0x3bc7f2]);if(_0xeb17df?.[_0x424f98(0xe2)])_0xc66225=new a3_0x416a62(_0xc66225)[_0x424f98(0xcd)](272.15)[_0x424f98(0x102)]();else _0xeb17df?.['plusOffset']&&(_0xc66225=new a3_0x416a62(_0xc66225)[_0x424f98(0xdc)](_0xeb17df[_0x424f98(0xce)])['toNumber']());this[_0x424f98(0xca)][_0x424f98(0xf5)](_0xc66225),this[_0x424f98(0xeb)]=Math[_0x424f98(0xe6)](this[_0x424f98(0xeb)],_0xc66225),this[_0x424f98(0xb1)]=Math[_0x424f98(0xb2)](this[_0x424f98(0xb1)],_0xc66225),_0x3449cc++;}}}['setParams'](_0x334b9a,_0x4e1c3c){const _0x53ca64=a3_0x24c936;this['nx']=_0x334b9a['nx'],this['ny']=_0x334b9a['ny'],this['minLng']=_0x334b9a[_0x53ca64(0xb5)],this[_0x53ca64(0x100)]=_0x334b9a[_0x53ca64(0x100)],this[_0x53ca64(0xbe)]=_0x334b9a[_0x53ca64(0xbe)],this[_0x53ca64(0xde)]=_0x334b9a['gjLat'];if(_0x4e1c3c?.[_0x53ca64(0xe2)])for(let _0x1dab05=0x0;_0x1dab05<_0x334b9a[_0x53ca64(0xca)][_0x53ca64(0xf3)];_0x1dab05++){_0x334b9a['values'][_0x1dab05]=new a3_0x416a62(_0x334b9a[_0x53ca64(0xca)][_0x1dab05])[_0x53ca64(0xcd)](272.15)['toNumber']();}else{if(_0x4e1c3c?.[_0x53ca64(0xce)])for(let _0x25287c=0x0;_0x25287c<_0x334b9a[_0x53ca64(0xca)][_0x53ca64(0xf3)];_0x25287c++){_0x334b9a[_0x53ca64(0xca)][_0x25287c]=new a3_0x416a62(_0x334b9a[_0x53ca64(0xca)][_0x25287c])[_0x53ca64(0xdc)](_0x4e1c3c[_0x53ca64(0xce)])[_0x53ca64(0x102)]();}else this[_0x53ca64(0xca)]=_0x334b9a[_0x53ca64(0xca)];}this['getMinMax']();}['getIsoBandsFast'](_0x5929f1){const _0x4ec63b=a3_0x24c936;if(this[_0x4ec63b(0xca)][_0x4ec63b(0xf3)]===0x0)return{'type':_0x4ec63b(0xc2),'features':[]};let _0x342a2e=[];if(_0x5929f1['length']===0x0)_0x5929f1=this[_0x4ec63b(0xbd)]();const _0x5a1445=contours()[_0x4ec63b(0xed)]([this['nx'],this['ny']]);for(let _0x210b08=0x0;_0x210b08<_0x5929f1[_0x4ec63b(0xf3)];_0x210b08++){const _0x517e65=_0x5929f1[_0x210b08];if(_0x517e65<this['minVal']||_0x517e65>this[_0x4ec63b(0xb1)])continue;const _0x2d6d88=_0x5a1445[_0x4ec63b(0xff)](this['values'],_0x517e65);if(!_0x2d6d88||!_0x2d6d88[_0x4ec63b(0xdf)])continue;for(const _0x15bf74 of _0x2d6d88['coordinates']){let _0x590067=[];if(Array[_0x4ec63b(0xcf)](_0x15bf74)&&_0x15bf74[_0x4ec63b(0xf3)]>0x0&&Array['isArray'](_0x15bf74[0x0])&&typeof _0x15bf74[0x0][0x0]===_0x4ec63b(0x104))_0x590067=[_0x15bf74];else{if(Array['isArray'](_0x15bf74))_0x590067=_0x15bf74;else continue;}for(const _0x14b599 of _0x590067){const _0x4ad555=_0x14b599['map'](_0x54690b=>{const _0x1ea786=_0x4ec63b,_0x315067=_0x54690b[0x0],_0x35a114=_0x54690b[0x1];if(_0x315067==null||_0x35a114==null||Number['isNaN'](_0x315067)||Number[_0x1ea786(0xc0)](_0x35a114))return null;const _0x37b7a4=new a3_0x416a62(this[_0x1ea786(0xb5)])[_0x1ea786(0xdc)](new a3_0x416a62(_0x315067)['times'](this['gjLng']))[_0x1ea786(0x102)](),_0x2a64cf=new a3_0x416a62(this[_0x1ea786(0x100)])['plus'](new a3_0x416a62(_0x35a114)[_0x1ea786(0xb4)](this['gjLat']))[_0x1ea786(0x102)]();return[_0x37b7a4,_0x2a64cf];})[_0x4ec63b(0xee)](_0x16dc8d=>_0x16dc8d!==null),_0x5f138f=_0x4ad555[_0x4ec63b(0xee)]((_0x7f4795,_0xac0539,_0x4e0799)=>{if(_0xac0539===0x0)return!![];const _0x25775b=_0x4e0799[_0xac0539-0x1];return!(_0x7f4795[0x0]===_0x25775b[0x0]&&_0x7f4795[0x1]===_0x25775b[0x1]);});if(_0x5f138f[_0x4ec63b(0xf3)]<0x3)continue;const _0x32886a=_0x5f138f[0x0],_0x53c0bf=_0x5f138f[_0x5f138f[_0x4ec63b(0xf3)]-0x1];(_0x32886a[0x0]!==_0x53c0bf[0x0]||_0x32886a[0x1]!==_0x53c0bf[0x1])&&_0x5f138f[_0x4ec63b(0xf5)]([_0x32886a[0x0],_0x32886a[0x1]]),_0x342a2e[_0x4ec63b(0xf5)]({'type':'Feature','properties':{'z':_0x517e65},'geometry':{'type':'Polygon','coordinates':[_0x5f138f]}});}}}return _0x342a2e=this[_0x4ec63b(0x106)](_0x342a2e),{'type':'FeatureCollection','features':_0x342a2e};}['getColorFast'](_0x5c0faf,_0x1054d7,_0x4f6afa){const _0x4bb2a1=a3_0x24c936;let _0x2da264=_0x4bb2a1(0xc6);const _0x89a6e=_0x1054d7[_0x4bb2a1(0xb8)](_0x5c0faf);if(typeof _0x4f6afa[_0x89a6e]==_0x4bb2a1(0xc7))_0x2da264=_0x4f6afa[_0x89a6e];else _0x89a6e!==-0x1&&(_0x2da264=_0x4bb2a1(0xfc)+_0x4f6afa[_0x89a6e][0x0]+','+_0x4f6afa[_0x89a6e][0x1]+','+_0x4f6afa[_0x89a6e][0x2]+','+(_0x4f6afa[_0x89a6e][0x3]||_0x4f6afa[_0x89a6e][0x3]===0x0?_0x4f6afa[_0x89a6e][0x3]:0x1)+')');return _0x2da264;}async['clipDataByJson'](_0x4954a4,_0x3a29a6,_0x3b9733,_0x5bc9b8){const _0x30eb0d=a3_0x24c936,_0x3cf7b2=_0x5bc9b8?_0x5bc9b8:navigator[_0x30eb0d(0xdb)]-0x4||0x1,_0x5928f8=Math[_0x30eb0d(0xe6)](_0x3cf7b2,Math['max'](0x1,_0x4954a4[_0x30eb0d(0xf2)][_0x30eb0d(0xf3)])),_0x305639=this[_0x30eb0d(0xba)](_0x4954a4[_0x30eb0d(0xf2)],_0x5928f8),_0x1fb94e=[],_0x22487f=_0x305639['map'](_0x5bac0d=>{const _0x371861=_0x30eb0d,_0x279189=new Worker(_0x3b9733,{'type':_0x371861(0xfe)});return _0x1fb94e[_0x371861(0xf5)](_0x279189),new Promise(_0x1042de=>{const _0x422cc5=_0x371861;_0x279189[_0x422cc5(0xe4)]=_0x374db3=>{const _0x4a4e9c=_0x422cc5;_0x1042de(_0x374db3[_0x4a4e9c(0x101)][_0x4a4e9c(0xf2)]);},_0x279189[_0x422cc5(0xb7)]=_0x3427be=>{console['error'](_0x3427be);},_0x279189[_0x422cc5(0xd5)]({'isoChunk':_0x5bac0d,'gansuFeatures':_0x3a29a6['features']});});}),_0x3bf1cc=await Promise[_0x30eb0d(0xf9)](_0x22487f);_0x1fb94e[_0x30eb0d(0xc1)](_0x37dfaa=>_0x37dfaa[_0x30eb0d(0xb9)]());const _0x24a93=_0x3bf1cc[_0x30eb0d(0xcc)]();return a3_0x476a7b(_0x24a93);}async[a3_0x24c936(0x107)](_0xe18980,_0x248b4d,_0x34f607){const _0x4e81f7=a3_0x24c936;if(this[_0x4e81f7(0xca)]['length']===0x0)return{'type':'FeatureCollection','features':[]};let _0x5d857d=[];if(_0xe18980['length']===0x0)_0xe18980=this[_0x4e81f7(0xbd)]();const _0x2ac722=[],_0x36b545=_0x34f607?_0x34f607:navigator['hardwareConcurrency']-0x4||0x1,_0x25eb7b=Math[_0x4e81f7(0xe6)](_0x36b545,Math['max'](0x1,_0xe18980[_0x4e81f7(0xf3)])),_0x5305e6=this[_0x4e81f7(0xba)](_0xe18980,_0x25eb7b),_0xece630=_0x5305e6['map'](_0x2d5dcc=>{const _0xe2686c=_0x4e81f7,_0x2e41c6=new Worker(_0x248b4d,{'type':_0xe2686c(0xfe)});return _0x2ac722[_0xe2686c(0xf5)](_0x2e41c6),new Promise(_0x152837=>{const _0x7d6e7e=_0xe2686c;_0x2e41c6['onmessage']=_0x28b12c=>{const _0x1f55bd=a3_0x3954;_0x152837(_0x28b12c[_0x1f55bd(0x101)][_0x1f55bd(0xf2)]);},_0x2e41c6[_0x7d6e7e(0xb7)]=_0x25bc5d=>{const _0x1a8477=_0x7d6e7e;console[_0x1a8477(0xe9)](_0x25bc5d);},_0x2e41c6[_0x7d6e7e(0xd5)]({'breaks':_0x2d5dcc,'values':this[_0x7d6e7e(0xca)],'nx':this['nx'],'ny':this['ny'],'minVal':this[_0x7d6e7e(0xeb)],'maxVal':this[_0x7d6e7e(0xb1)],'minLng':this['minLng'],'minLat':this[_0x7d6e7e(0x100)],'gjLng':this['gjLng'],'gjLat':this[_0x7d6e7e(0xde)]});});}),_0x5d6099=await Promise[_0x4e81f7(0xf9)](_0xece630);return _0x2ac722[_0x4e81f7(0xc1)](_0x88a902=>_0x88a902[_0x4e81f7(0xb9)]()),_0x5d6099['forEach'](_0x2d3c1f=>{const _0x188f94=_0x4e81f7;_0x5d857d[_0x188f94(0xf5)](..._0x2d3c1f);}),_0x5d857d=this[_0x4e81f7(0x106)](_0x5d857d),{'type':_0x4e81f7(0xc2),'features':_0x5d857d};}['clearMaskCache'](){const _0x514bb9=a3_0x24c936;this[_0x514bb9(0xf4)][_0x514bb9(0xe5)]();}[a3_0x24c936(0xe8)](_0x547bb5=[],_0x40b618){const _0x2a5a3d=a3_0x24c936;if(typeof _0x40b618!==_0x2a5a3d(0xb3)&&this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xf6)](_0x40b618)){const _0x2d3ec1=this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xf6)](_0x40b618)||[],_0x3be543=this[_0x2a5a3d(0x106)]?this['sortFeaturesByArea'](_0x2d3ec1):_0x2d3ec1;return{'type':'FeatureCollection','features':_0x3be543};}if(this[_0x2a5a3d(0xca)][_0x2a5a3d(0xf3)]===0x0)return{'type':_0x2a5a3d(0xc2),'features':[]};if(_0x547bb5['length']===0x0)_0x547bb5=this[_0x2a5a3d(0xbd)]();const _0x20e2f0=_0x547bb5[_0x2a5a3d(0xfa)](',');if(this[_0x2a5a3d(0xd2)]!==_0x20e2f0){this[_0x2a5a3d(0xd2)]=_0x20e2f0,this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xe5)]();const _0x585ad2=this[_0x2a5a3d(0xb5)],_0x1d1fd9=this[_0x2a5a3d(0x100)],_0x2939a9=this[_0x2a5a3d(0xbe)],_0x50e76f=this['gjLat'],_0x52bbc2=_0x1ec452=>{const _0x565675=_0x2a5a3d;let _0x10ef08=0x0;for(let _0x5d2e71=0x0,_0x3e59af=_0x1ec452[_0x565675(0xf3)];_0x5d2e71<_0x3e59af;_0x5d2e71++){const _0x591f94=_0x1ec452[_0x5d2e71][0x0],_0x584cc8=_0x1ec452[_0x5d2e71][0x1],_0x4516dd=_0x1ec452[(_0x5d2e71+0x1)%_0x3e59af][0x0],_0x5f0ea2=_0x1ec452[(_0x5d2e71+0x1)%_0x3e59af][0x1];if(_0x591f94==null||_0x584cc8==null||_0x4516dd==null||_0x5f0ea2==null)continue;_0x10ef08+=_0x591f94*_0x5f0ea2-_0x4516dd*_0x584cc8;}return _0x10ef08/0x2;},_0x232e03=(_0x17179b,_0x1fccc5)=>{const _0x46ec77=_0x2a5a3d;if(!_0x17179b)return![];const _0x2f229c=_0x17179b[0x0],_0x2ab30b=_0x17179b[0x1];let _0x148b31=![];for(let _0x143dda=0x0,_0x2668c4=_0x1fccc5[_0x46ec77(0xf3)]-0x1;_0x143dda<_0x1fccc5[_0x46ec77(0xf3)];_0x2668c4=_0x143dda++){const _0x4b1651=_0x1fccc5[_0x143dda][0x0],_0x26a324=_0x1fccc5[_0x143dda][0x1],_0x11d3e0=_0x1fccc5[_0x2668c4][0x0],_0x4ae403=_0x1fccc5[_0x2668c4][0x1],_0x1b5143=_0x26a324>_0x2ab30b!==_0x4ae403>_0x2ab30b&&_0x2f229c<(_0x11d3e0-_0x4b1651)*(_0x2ab30b-_0x26a324)/(_0x4ae403-_0x26a324)+_0x4b1651;if(_0x1b5143)_0x148b31=!_0x148b31;}return _0x148b31;},_0x42e5ce=_0x408511=>{const _0x51b013=_0x2a5a3d,_0x1325e5=[];let _0x1ada14=null,_0x2b1b82=null;for(let _0x2314d4=0x0;_0x2314d4<_0x408511[_0x51b013(0xf3)];_0x2314d4++){const _0x4433d8=_0x408511[_0x2314d4];if(!_0x4433d8)continue;const _0x59a28d=_0x4433d8[0x0],_0x1d86da=_0x4433d8[0x1];if(_0x59a28d==null||_0x1d86da==null||Number[_0x51b013(0xc0)](_0x59a28d)||Number[_0x51b013(0xc0)](_0x1d86da))continue;const _0x1d8dea=_0x585ad2+_0x59a28d*_0x2939a9,_0x38ccc4=_0x1d1fd9+_0x1d86da*_0x50e76f;if(_0x1ada14!==null&&_0x2b1b82!==null&&_0x1ada14===_0x1d8dea&&_0x2b1b82===_0x38ccc4){_0x1ada14=_0x1d8dea,_0x2b1b82=_0x38ccc4;continue;}_0x1325e5['push']([_0x1d8dea,_0x38ccc4]),_0x1ada14=_0x1d8dea,_0x2b1b82=_0x38ccc4;}if(_0x1325e5[_0x51b013(0xf3)]===0x0)return _0x1325e5;const _0x21101d=_0x1325e5[0x0],_0x280888=_0x1325e5[_0x1325e5['length']-0x1];if(_0x21101d[0x0]!==_0x280888[0x0]||_0x21101d[0x1]!==_0x280888[0x1])_0x1325e5[_0x51b013(0xf5)]([_0x21101d[0x0],_0x21101d[0x1]]);return _0x1325e5;},_0x381e25=_0x547bb5['length']-0x1;for(let _0x35de55=0x0;_0x35de55<_0x547bb5[_0x2a5a3d(0xf3)];_0x35de55++){const _0x5f1599=_0x547bb5[_0x35de55],_0x3cf077=_0x35de55<_0x381e25?_0x547bb5[_0x35de55+0x1]:Infinity,_0x9d6d65=Array[_0x2a5a3d(0xbb)]({'length':this[_0x2a5a3d(0xca)][_0x2a5a3d(0xf3)]});let _0x35f75b=![];for(let _0x461f54=0x0;_0x461f54<this[_0x2a5a3d(0xca)][_0x2a5a3d(0xf3)];_0x461f54++){const _0x5e1d65=this[_0x2a5a3d(0xca)][_0x461f54],_0x15ba18=_0x5e1d65>=_0x5f1599&&_0x5e1d65<_0x3cf077?0x1:0x0;if(_0x15ba18)_0x35f75b=!![];_0x9d6d65[_0x461f54]=_0x15ba18;}if(!_0x35f75b)continue;const _0x1ee964=contours()[_0x2a5a3d(0xed)]([this['nx'],this['ny']])[_0x2a5a3d(0xdd)]([0.5]),_0x2e1f48=_0x1ee964[_0x2a5a3d(0xc3)]?_0x1ee964[_0x2a5a3d(0xc3)](_0x9d6d65):_0x1ee964(_0x9d6d65);if(!_0x2e1f48||_0x2e1f48[_0x2a5a3d(0xf3)]===0x0)continue;const _0xf0b7f3=[];for(const _0x1f5894 of _0x2e1f48){const _0x459ef2=_0x1f5894&&_0x1f5894['coordinates'];if(!_0x459ef2)continue;for(const _0x18c657 of _0x459ef2){let _0x3f2e42=[];if(Array[_0x2a5a3d(0xcf)](_0x18c657)&&_0x18c657[_0x2a5a3d(0xf3)]>0x0&&typeof _0x18c657[0x0][0x0]===_0x2a5a3d(0x104))_0x3f2e42=[_0x18c657];else{if(Array['isArray'](_0x18c657))_0x3f2e42=_0x18c657;else continue;}const _0x50119f=_0x3f2e42[_0x2a5a3d(0xe7)](_0xfe6330=>({'ring':_0xfe6330,'area':Math[_0x2a5a3d(0xf8)](_0x52bbc2(_0xfe6330))}))[_0x2a5a3d(0xe3)]((_0x8ff393,_0x58ed15)=>_0x58ed15['area']-_0x8ff393[_0x2a5a3d(0xd4)]),_0x45ca6d=Array[_0x2a5a3d(0xbb)]({'length':_0x50119f[_0x2a5a3d(0xf3)]})['fill'](![]);for(let _0xb4c33d=0x0;_0xb4c33d<_0x50119f[_0x2a5a3d(0xf3)];_0xb4c33d++){if(_0x45ca6d[_0xb4c33d])continue;const _0x4098f2=_0x50119f[_0xb4c33d]['ring'];_0x45ca6d[_0xb4c33d]=!![];const _0x30e754=[];for(let _0x19aaa1=0x0;_0x19aaa1<_0x50119f[_0x2a5a3d(0xf3)];_0x19aaa1++){if(_0x45ca6d[_0x19aaa1])continue;const _0x3d2ae1=_0x50119f[_0x19aaa1][_0x2a5a3d(0xcb)],_0x2c6ef3=_0x3d2ae1[0x0];_0x2c6ef3&&_0x232e03(_0x2c6ef3,_0x4098f2)&&(_0x30e754['push'](_0x3d2ae1),_0x45ca6d[_0x19aaa1]=!![]);}const _0x1bebed=_0x42e5ce(_0x4098f2);if(_0x1bebed[_0x2a5a3d(0xf3)]<0x4)continue;const _0x598383=[];for(const _0x370cb1 of _0x30e754){const _0x2620c1=_0x42e5ce(_0x370cb1);if(_0x2620c1[_0x2a5a3d(0xf3)]>=0x4)_0x598383['push'](_0x2620c1);}_0xf0b7f3[_0x2a5a3d(0xf5)]({'type':_0x2a5a3d(0xbf),'properties':{'z':_0x5f1599},'geometry':{'type':_0x2a5a3d(0xb6),'coordinates':[_0x1bebed,..._0x598383]}});}}}_0xf0b7f3[_0x2a5a3d(0xf3)]&&this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xf0)](_0x5f1599,_0xf0b7f3);}}if(typeof _0x40b618!==_0x2a5a3d(0xb3)){const _0xda184d=this[_0x2a5a3d(0xf4)]['get'](_0x40b618)||[],_0x4876fc=this[_0x2a5a3d(0x106)]?this[_0x2a5a3d(0x106)](_0xda184d):_0xda184d;return{'type':_0x2a5a3d(0xc2),'features':_0x4876fc};}const _0x12b57c=[];for(const _0x2c3601 of this[_0x2a5a3d(0xf4)]['values']()){_0x12b57c[_0x2a5a3d(0xf5)](..._0x2c3601);}const _0xf6cabe=this['sortFeaturesByArea']?this[_0x2a5a3d(0x106)](_0x12b57c):_0x12b57c;return{'type':_0x2a5a3d(0xc2),'features':_0xf6cabe};}[a3_0x24c936(0xd0)](){const _0x52baad=a3_0x24c936,_0x57ecd6=Array['from']({'length':this['nx']});for(let _0x2efe0a=0x0;_0x2efe0a<this['nx'];_0x2efe0a++){_0x57ecd6[_0x2efe0a]=new a3_0x416a62(this[_0x52baad(0xb5)])[_0x52baad(0xdc)](new a3_0x416a62(_0x2efe0a)[_0x52baad(0xb4)](this[_0x52baad(0xbe)]))['toNumber']();}const _0x206df1=Array[_0x52baad(0xbb)]({'length':this['ny']});for(let _0x2f6ead=0x0;_0x2f6ead<this['ny'];_0x2f6ead++){_0x206df1[_0x2f6ead]=new a3_0x416a62(this[_0x52baad(0x100)])[_0x52baad(0xdc)](new a3_0x416a62(_0x2f6ead)[_0x52baad(0xb4)](this['gjLat']))['toNumber']();}const _0x37d7bb=Array[_0x52baad(0xbb)]({'length':this['nx']*this['ny']});for(let _0x3fa1a=0x0;_0x3fa1a<this['values']['length'];_0x3fa1a++){const _0x3db113=Math[_0x52baad(0xda)](_0x3fa1a/this['nx']),_0x333399=_0x3fa1a%this['nx'],_0x39f276=_0x57ecd6[_0x333399],_0x53e80d=_0x206df1[_0x3db113],_0x2f7b25=this[_0x52baad(0xca)][_0x3fa1a];_0x53e80d&&_0x39f276&&(_0x37d7bb[_0x3fa1a]={'lng':_0x39f276,'lat':_0x53e80d,'val':_0x2f7b25});}return _0x37d7bb;}[a3_0x24c936(0x105)](){const _0x4adbc4=a3_0x24c936;let _0x25ec50=-Infinity,_0x71fec3=Infinity;for(let _0x19760a=0x0;_0x19760a<this[_0x4adbc4(0xca)][_0x4adbc4(0xf3)];_0x19760a++){const _0x4ea90e=this[_0x4adbc4(0xca)][_0x19760a];if(_0x4ea90e>_0x25ec50)_0x25ec50=_0x4ea90e;if(_0x4ea90e<_0x71fec3)_0x71fec3=_0x4ea90e;}this['minVal']=_0x71fec3,this[_0x4adbc4(0xb1)]=_0x25ec50;}[a3_0x24c936(0xbd)](){const _0x42284c=a3_0x24c936,_0x5fd282=[];if(this[_0x42284c(0xeb)]===Infinity||this[_0x42284c(0xb1)]===-Infinity)return _0x5fd282;for(let _0x3e17ce=this['minVal']-0x1;_0x3e17ce<=this['maxVal']+0x1;_0x3e17ce++){_0x5fd282[_0x42284c(0xf5)](_0x3e17ce);}return _0x5fd282;}['sortFeaturesByArea'](_0x2310b8){const _0x3c3ed0=a3_0x24c936;return _0x2310b8[_0x3c3ed0(0xe7)](_0xf448c9=>{const _0x1e4ffd=_0x3c3ed0;try{const _0x148109=a3_0x93638c(_0xf448c9)||0x0;_0xf448c9['properties']={..._0xf448c9[_0x1e4ffd(0xfb)]||{},'__area':_0x148109};}catch{_0xf448c9['properties']={..._0xf448c9[_0x1e4ffd(0xfb)]||{},'__area':0x0};}return _0xf448c9;})['sort']((_0x161818,_0x114342)=>_0x114342[_0x3c3ed0(0xfb)]['__area']-_0x161818[_0x3c3ed0(0xfb)]['__area'])[_0x3c3ed0(0xee)](_0x11833e=>_0x11833e[_0x3c3ed0(0xfb)]&&_0x3c3ed0(0xd3)in _0x11833e[_0x3c3ed0(0xfb)]&&_0x11833e['properties']['__area']!==0x0)[_0x3c3ed0(0xe7)](_0x112b06=>{const _0x486153=_0x3c3ed0;if(_0x112b06[_0x486153(0xfb)]&&_0x486153(0xd3)in _0x112b06[_0x486153(0xfb)]){const {__area:_0x1e9c8f,..._0x55be81}=_0x112b06[_0x486153(0xfb)];_0x112b06['properties']=_0x55be81;}return _0x112b06;});}[a3_0x24c936(0xba)]=(_0x4d97ce,_0x3378f4)=>{const _0x310bc7=a3_0x24c936,_0x3a60c0=[],_0x306f8d=Math['max'](0x1,Math[_0x310bc7(0xf7)](_0x4d97ce[_0x310bc7(0xf3)]/_0x3378f4));for(let _0xe7a060=0x0;_0xe7a060<_0x3378f4;_0xe7a060++){_0x3a60c0[_0x310bc7(0xf5)](_0x4d97ce[_0x310bc7(0xe0)](_0xe7a060*_0x306f8d,(_0xe7a060+0x1)*_0x306f8d));}return _0x3a60c0;};}function a3_0x3954(_0x4c3c00,_0x36afbd){const _0x36c2d3=a3_0x36c2();return a3_0x3954=function(_0x39544b,_0x47dc04){_0x39544b=_0x39544b-0xb1;let _0x33556a=_0x36c2d3[_0x39544b];return _0x33556a;},a3_0x3954(_0x4c3c00,_0x36afbd);}export default readFileM4;
|
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "m4-w-fast",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./isoBands.worker.js": "./dist/isoBands.worker.js",
|
|
14
|
-
"./intersect.worker.js": "./dist/intersect.worker.js"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build:types": "tsc -p tsconfig.build.json",
|
|
18
|
-
"obfuscate": "javascript-obfuscator dist --output dist",
|
|
19
|
-
"build": "npm run build:types && npm run build:rollup && npm run obfuscate",
|
|
20
|
-
"prepublishOnly": "npm run build",
|
|
21
|
-
"build:rollup": "rollup -c"
|
|
22
|
-
},
|
|
23
|
-
"author": "wangrl",
|
|
24
|
-
"license": "ISC",
|
|
25
|
-
"type": "module",
|
|
26
|
-
"files": [
|
|
27
|
-
"dist",
|
|
28
|
-
"package.json",
|
|
29
|
-
"README.md"
|
|
30
|
-
],
|
|
31
|
-
"keywords": [
|
|
32
|
-
"m4",
|
|
33
|
-
"turf"
|
|
34
|
-
],
|
|
35
|
-
"publishConfig": {
|
|
36
|
-
"registry": "https://registry.npmjs.org/"
|
|
37
|
-
},
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"@turf/turf": "^6.5.0",
|
|
40
|
-
"d3-contour": "^4"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@turf/area": "^7.2.0",
|
|
44
|
-
"@turf/isobands": "^7.2.0",
|
|
45
|
-
"@turf/isolines": "^7.2.0",
|
|
46
|
-
"@turf/turf": "^6.5.0",
|
|
47
|
-
"d3-contour": "^4",
|
|
48
|
-
"decimal.js": "^10.6.0"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@rollup/plugin-commonjs": "^29.0.0",
|
|
52
|
-
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
53
|
-
"@rollup/plugin-typescript": "^12.3.0",
|
|
54
|
-
"@tsconfig/node20": "^20.1.2",
|
|
55
|
-
"@types/big.js": "^6.2.2",
|
|
56
|
-
"@types/d3-contour": "^3.0.6",
|
|
57
|
-
"@types/geojson": "latest",
|
|
58
|
-
"esbuild": "^0.25.11",
|
|
59
|
-
"javascript-obfuscator": "^4.1.1",
|
|
60
|
-
"rollup": "^4.52.5",
|
|
61
|
-
"typescript": "latest"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "m4-w-fast",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./isoBands.worker.js": "./dist/isoBands.worker.js",
|
|
14
|
+
"./intersect.worker.js": "./dist/intersect.worker.js"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
18
|
+
"obfuscate": "javascript-obfuscator dist --output dist",
|
|
19
|
+
"build": "npm run build:types && npm run build:rollup && npm run obfuscate",
|
|
20
|
+
"prepublishOnly": "npm run build",
|
|
21
|
+
"build:rollup": "rollup -c"
|
|
22
|
+
},
|
|
23
|
+
"author": "wangrl",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"package.json",
|
|
29
|
+
"README.md"
|
|
30
|
+
],
|
|
31
|
+
"keywords": [
|
|
32
|
+
"m4",
|
|
33
|
+
"turf"
|
|
34
|
+
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"registry": "https://registry.npmjs.org/"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@turf/turf": "^6.5.0",
|
|
40
|
+
"d3-contour": "^4"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@turf/area": "^7.2.0",
|
|
44
|
+
"@turf/isobands": "^7.2.0",
|
|
45
|
+
"@turf/isolines": "^7.2.0",
|
|
46
|
+
"@turf/turf": "^6.5.0",
|
|
47
|
+
"d3-contour": "^4",
|
|
48
|
+
"decimal.js": "^10.6.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
52
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
53
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
54
|
+
"@tsconfig/node20": "^20.1.2",
|
|
55
|
+
"@types/big.js": "^6.2.2",
|
|
56
|
+
"@types/d3-contour": "^3.0.6",
|
|
57
|
+
"@types/geojson": "latest",
|
|
58
|
+
"esbuild": "^0.25.11",
|
|
59
|
+
"javascript-obfuscator": "^4.1.1",
|
|
60
|
+
"rollup": "^4.52.5",
|
|
61
|
+
"typescript": "latest"
|
|
62
|
+
}
|
|
63
|
+
}
|