@nika-js/onlymap 0.11.6 → 0.11.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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/dist/{basemap-jgiazq81.js → basemap-BrQCDtfj.js} +2 -2
- package/dist/elements/om-map.d.ts +20 -1
- package/dist/elements/om-overlay.d.ts +8 -0
- package/dist/{geoparquet-BqlfpNfW.js → geoparquet-BSQY5PIo.js} +1 -1
- package/dist/{globe-view-BwEj9ar9.js → globe-view-CGXyelOy.js} +1 -1
- package/dist/{hillshade-50jNXHyP.js → hillshade-BtfW1P2c.js} +1 -1
- package/dist/{index-jPifVRWa.js → index-Bl8RF_ZY.js} +1 -1
- package/dist/{index-BBeBWH6b.js → index-CNderrhB.js} +1 -1
- package/dist/{index-mLeavkEr.js → index-CPoNS0ZN.js} +305 -271
- package/dist/{index-CiSq4_Va.js → index-Clg4OPrB.js} +1 -1
- package/dist/{index-CCVeg1y8.js → index-CtsYIqaJ.js} +3 -3
- package/dist/{index-BPRV9yxf.js → index-CvLkkFyD.js} +2 -2
- package/dist/{index-ALKRO96X.js → index-Df36FLVl.js} +1 -1
- package/dist/{index-BVIktcJJ.js → index-riq9qTYh.js} +3 -3
- package/dist/{index-CmfYI2km.js → index-wHUqi1zW.js} +1 -1
- package/dist/{lerc-B9Q9wT5l.js → lerc-B31CKJ6m.js} +1 -1
- package/dist/onlymap.standalone.js +739 -705
- package/dist/onlymapjs.js +1 -1
- package/dist/{post-process-effect-Dzn0f8iO.js → post-process-effect-8OT9O84M.js} +1 -1
- package/dist/{raster-C-WM-KNb.js → raster-Dx2oylKT.js} +3 -3
- package/dist/{raster-pipeline-qYYrkOdi.js → raster-pipeline-CPM9CeZ0.js} +1 -1
- package/dist/{text-on-path-1qHOZW1K.js → text-on-path-Bki2IUm0.js} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-CqHkmYTv.js → zarr-CsY2lbLD.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/llms.txt +1 -0
- package/package.json +1 -1
- package/skills/onlymapjs/SKILL.md +2 -1
- package/skills/onlymapjs/references/syntax.md +4 -2
|
@@ -91,7 +91,7 @@ $h("maptiler-satellite", {
|
|
|
91
91
|
label: "MapTiler Satellite",
|
|
92
92
|
requiresKey: "maptiler"
|
|
93
93
|
});
|
|
94
|
-
function
|
|
94
|
+
function Br(e) {
|
|
95
95
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
96
96
|
}
|
|
97
97
|
const Sz = /* @__PURE__ */ new WeakSet();
|
|
@@ -2868,7 +2868,7 @@ var qs;
|
|
|
2868
2868
|
(function(e) {
|
|
2869
2869
|
e[e.YEAR_MONTH = 0] = "YEAR_MONTH", e[e.DAY_TIME = 1] = "DAY_TIME", e[e.MONTH_DAY_NANO = 2] = "MONTH_DAY_NANO";
|
|
2870
2870
|
})(qs || (qs = {}));
|
|
2871
|
-
const mU = 2, Rh = 4, JB = 4,
|
|
2871
|
+
const mU = 2, Rh = 4, JB = 4, Fr = 4, ku = new Int32Array(2), zz = new Float32Array(ku.buffer), jz = new Float64Array(ku.buffer), dF = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
|
|
2872
2872
|
var zP;
|
|
2873
2873
|
(function(e) {
|
|
2874
2874
|
e[e.UTF8_BYTES = 1] = "UTF8_BYTES", e[e.UTF16_STRING = 2] = "UTF16_STRING";
|
|
@@ -3330,7 +3330,7 @@ let jo = class bIA {
|
|
|
3330
3330
|
* Finalize a buffer, poiting to the given `root_table`.
|
|
3331
3331
|
*/
|
|
3332
3332
|
finish(A, t, i) {
|
|
3333
|
-
const r = i ?
|
|
3333
|
+
const r = i ? Fr : 0;
|
|
3334
3334
|
if (t) {
|
|
3335
3335
|
const s = t;
|
|
3336
3336
|
if (this.prep(this.minalign, Rh + JB + r), s.length != JB)
|
|
@@ -3461,7 +3461,7 @@ let eS = class ZQ {
|
|
|
3461
3461
|
return (t || new ZQ()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3462
3462
|
}
|
|
3463
3463
|
static getSizePrefixedRootAsBodyCompression(A, t) {
|
|
3464
|
-
return A.setPosition(A.position() +
|
|
3464
|
+
return A.setPosition(A.position() + Fr), (t || new ZQ()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3465
3465
|
}
|
|
3466
3466
|
/**
|
|
3467
3467
|
* Compressor library.
|
|
@@ -3562,7 +3562,7 @@ let eS = class ZQ {
|
|
|
3562
3562
|
return (t || new jP()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3563
3563
|
}
|
|
3564
3564
|
static getSizePrefixedRootAsRecordBatch(A, t) {
|
|
3565
|
-
return A.setPosition(A.position() +
|
|
3565
|
+
return A.setPosition(A.position() + Fr), (t || new jP()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3566
3566
|
}
|
|
3567
3567
|
/**
|
|
3568
3568
|
* number of records / rows. The arrays in the batch should all have this
|
|
@@ -3641,7 +3641,7 @@ let eS = class ZQ {
|
|
|
3641
3641
|
return (t || new ZP()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3642
3642
|
}
|
|
3643
3643
|
static getSizePrefixedRootAsDictionaryBatch(A, t) {
|
|
3644
|
-
return A.setPosition(A.position() +
|
|
3644
|
+
return A.setPosition(A.position() + Fr), (t || new ZP()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3645
3645
|
}
|
|
3646
3646
|
id() {
|
|
3647
3647
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3695,7 +3695,7 @@ class mI {
|
|
|
3695
3695
|
return (t || new mI()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3696
3696
|
}
|
|
3697
3697
|
static getSizePrefixedRootAsInt(A, t) {
|
|
3698
|
-
return A.setPosition(A.position() +
|
|
3698
|
+
return A.setPosition(A.position() + Fr), (t || new mI()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3699
3699
|
}
|
|
3700
3700
|
bitWidth() {
|
|
3701
3701
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3732,7 +3732,7 @@ class HB {
|
|
|
3732
3732
|
return (t || new HB()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3733
3733
|
}
|
|
3734
3734
|
static getSizePrefixedRootAsDictionaryEncoding(A, t) {
|
|
3735
|
-
return A.setPosition(A.position() +
|
|
3735
|
+
return A.setPosition(A.position() + Fr), (t || new HB()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3736
3736
|
}
|
|
3737
3737
|
/**
|
|
3738
3738
|
* The known dictionary id in the application where this data is used. In
|
|
@@ -3798,7 +3798,7 @@ class yo {
|
|
|
3798
3798
|
return (t || new yo()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3799
3799
|
}
|
|
3800
3800
|
static getSizePrefixedRootAsKeyValue(A, t) {
|
|
3801
|
-
return A.setPosition(A.position() +
|
|
3801
|
+
return A.setPosition(A.position() + Fr), (t || new yo()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3802
3802
|
}
|
|
3803
3803
|
key(A) {
|
|
3804
3804
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3835,7 +3835,7 @@ let Zz = class tS {
|
|
|
3835
3835
|
return (t || new tS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3836
3836
|
}
|
|
3837
3837
|
static getSizePrefixedRootAsBinary(A, t) {
|
|
3838
|
-
return A.setPosition(A.position() +
|
|
3838
|
+
return A.setPosition(A.position() + Fr), (t || new tS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3839
3839
|
}
|
|
3840
3840
|
static startBinary(A) {
|
|
3841
3841
|
A.startObject(0);
|
|
@@ -3857,7 +3857,7 @@ let Zz = class tS {
|
|
|
3857
3857
|
return (t || new iS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3858
3858
|
}
|
|
3859
3859
|
static getSizePrefixedRootAsBool(A, t) {
|
|
3860
|
-
return A.setPosition(A.position() +
|
|
3860
|
+
return A.setPosition(A.position() + Fr), (t || new iS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3861
3861
|
}
|
|
3862
3862
|
static startBool(A) {
|
|
3863
3863
|
A.startObject(0);
|
|
@@ -3879,7 +3879,7 @@ let Zz = class tS {
|
|
|
3879
3879
|
return (t || new Up()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3880
3880
|
}
|
|
3881
3881
|
static getSizePrefixedRootAsDate(A, t) {
|
|
3882
|
-
return A.setPosition(A.position() +
|
|
3882
|
+
return A.setPosition(A.position() + Fr), (t || new Up()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3883
3883
|
}
|
|
3884
3884
|
unit() {
|
|
3885
3885
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3908,7 +3908,7 @@ let Zz = class tS {
|
|
|
3908
3908
|
return (t || new vu()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3909
3909
|
}
|
|
3910
3910
|
static getSizePrefixedRootAsDecimal(A, t) {
|
|
3911
|
-
return A.setPosition(A.position() +
|
|
3911
|
+
return A.setPosition(A.position() + Fr), (t || new vu()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3912
3912
|
}
|
|
3913
3913
|
/**
|
|
3914
3914
|
* Total number of decimal digits
|
|
@@ -3961,7 +3961,7 @@ let Zz = class tS {
|
|
|
3961
3961
|
return (t || new Pp()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3962
3962
|
}
|
|
3963
3963
|
static getSizePrefixedRootAsDuration(A, t) {
|
|
3964
|
-
return A.setPosition(A.position() +
|
|
3964
|
+
return A.setPosition(A.position() + Fr), (t || new Pp()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3965
3965
|
}
|
|
3966
3966
|
unit() {
|
|
3967
3967
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3990,7 +3990,7 @@ let Zz = class tS {
|
|
|
3990
3990
|
return (t || new Jp()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3991
3991
|
}
|
|
3992
3992
|
static getSizePrefixedRootAsFixedSizeBinary(A, t) {
|
|
3993
|
-
return A.setPosition(A.position() +
|
|
3993
|
+
return A.setPosition(A.position() + Fr), (t || new Jp()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
3994
3994
|
}
|
|
3995
3995
|
/**
|
|
3996
3996
|
* Number of bytes per value
|
|
@@ -4022,7 +4022,7 @@ let Zz = class tS {
|
|
|
4022
4022
|
return (t || new Hp()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4023
4023
|
}
|
|
4024
4024
|
static getSizePrefixedRootAsFixedSizeList(A, t) {
|
|
4025
|
-
return A.setPosition(A.position() +
|
|
4025
|
+
return A.setPosition(A.position() + Fr), (t || new Hp()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4026
4026
|
}
|
|
4027
4027
|
/**
|
|
4028
4028
|
* Number of list items per value
|
|
@@ -4055,7 +4055,7 @@ class Fh {
|
|
|
4055
4055
|
return (t || new Fh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4056
4056
|
}
|
|
4057
4057
|
static getSizePrefixedRootAsFloatingPoint(A, t) {
|
|
4058
|
-
return A.setPosition(A.position() +
|
|
4058
|
+
return A.setPosition(A.position() + Fr), (t || new Fh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4059
4059
|
}
|
|
4060
4060
|
precision() {
|
|
4061
4061
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4085,7 +4085,7 @@ class Nh {
|
|
|
4085
4085
|
return (t || new Nh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4086
4086
|
}
|
|
4087
4087
|
static getSizePrefixedRootAsInterval(A, t) {
|
|
4088
|
-
return A.setPosition(A.position() +
|
|
4088
|
+
return A.setPosition(A.position() + Fr), (t || new Nh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4089
4089
|
}
|
|
4090
4090
|
unit() {
|
|
4091
4091
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4115,7 +4115,7 @@ let $z = class rS {
|
|
|
4115
4115
|
return (t || new rS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4116
4116
|
}
|
|
4117
4117
|
static getSizePrefixedRootAsLargeBinary(A, t) {
|
|
4118
|
-
return A.setPosition(A.position() +
|
|
4118
|
+
return A.setPosition(A.position() + Fr), (t || new rS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4119
4119
|
}
|
|
4120
4120
|
static startLargeBinary(A) {
|
|
4121
4121
|
A.startObject(0);
|
|
@@ -4137,7 +4137,7 @@ let $z = class rS {
|
|
|
4137
4137
|
return (t || new sS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4138
4138
|
}
|
|
4139
4139
|
static getSizePrefixedRootAsLargeUtf8(A, t) {
|
|
4140
|
-
return A.setPosition(A.position() +
|
|
4140
|
+
return A.setPosition(A.position() + Fr), (t || new sS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4141
4141
|
}
|
|
4142
4142
|
static startLargeUtf8(A) {
|
|
4143
4143
|
A.startObject(0);
|
|
@@ -4159,7 +4159,7 @@ let $z = class rS {
|
|
|
4159
4159
|
return (t || new nS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4160
4160
|
}
|
|
4161
4161
|
static getSizePrefixedRootAsList(A, t) {
|
|
4162
|
-
return A.setPosition(A.position() +
|
|
4162
|
+
return A.setPosition(A.position() + Fr), (t || new nS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4163
4163
|
}
|
|
4164
4164
|
static startList(A) {
|
|
4165
4165
|
A.startObject(0);
|
|
@@ -4181,7 +4181,7 @@ let $z = class rS {
|
|
|
4181
4181
|
return (t || new Yp()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4182
4182
|
}
|
|
4183
4183
|
static getSizePrefixedRootAsMap(A, t) {
|
|
4184
|
-
return A.setPosition(A.position() +
|
|
4184
|
+
return A.setPosition(A.position() + Fr), (t || new Yp()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4185
4185
|
}
|
|
4186
4186
|
/**
|
|
4187
4187
|
* Set to true if the keys within each value are sorted
|
|
@@ -4213,7 +4213,7 @@ let $z = class rS {
|
|
|
4213
4213
|
return (t || new oS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4214
4214
|
}
|
|
4215
4215
|
static getSizePrefixedRootAsNull(A, t) {
|
|
4216
|
-
return A.setPosition(A.position() +
|
|
4216
|
+
return A.setPosition(A.position() + Fr), (t || new oS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4217
4217
|
}
|
|
4218
4218
|
static startNull(A) {
|
|
4219
4219
|
A.startObject(0);
|
|
@@ -4236,7 +4236,7 @@ class hd {
|
|
|
4236
4236
|
return (t || new hd()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4237
4237
|
}
|
|
4238
4238
|
static getSizePrefixedRootAsStruct_(A, t) {
|
|
4239
|
-
return A.setPosition(A.position() +
|
|
4239
|
+
return A.setPosition(A.position() + Fr), (t || new hd()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4240
4240
|
}
|
|
4241
4241
|
static startStruct_(A) {
|
|
4242
4242
|
A.startObject(0);
|
|
@@ -4259,7 +4259,7 @@ class ec {
|
|
|
4259
4259
|
return (t || new ec()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4260
4260
|
}
|
|
4261
4261
|
static getSizePrefixedRootAsTime(A, t) {
|
|
4262
|
-
return A.setPosition(A.position() +
|
|
4262
|
+
return A.setPosition(A.position() + Fr), (t || new ec()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4263
4263
|
}
|
|
4264
4264
|
unit() {
|
|
4265
4265
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4296,7 +4296,7 @@ class tc {
|
|
|
4296
4296
|
return (t || new tc()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4297
4297
|
}
|
|
4298
4298
|
static getSizePrefixedRootAsTimestamp(A, t) {
|
|
4299
|
-
return A.setPosition(A.position() +
|
|
4299
|
+
return A.setPosition(A.position() + Fr), (t || new tc()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4300
4300
|
}
|
|
4301
4301
|
unit() {
|
|
4302
4302
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4333,7 +4333,7 @@ class Pg {
|
|
|
4333
4333
|
return (t || new Pg()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4334
4334
|
}
|
|
4335
4335
|
static getSizePrefixedRootAsUnion(A, t) {
|
|
4336
|
-
return A.setPosition(A.position() +
|
|
4336
|
+
return A.setPosition(A.position() + Fr), (t || new Pg()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4337
4337
|
}
|
|
4338
4338
|
mode() {
|
|
4339
4339
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4387,7 +4387,7 @@ let ij = class aS {
|
|
|
4387
4387
|
return (t || new aS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4388
4388
|
}
|
|
4389
4389
|
static getSizePrefixedRootAsUtf8(A, t) {
|
|
4390
|
-
return A.setPosition(A.position() +
|
|
4390
|
+
return A.setPosition(A.position() + Fr), (t || new aS()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4391
4391
|
}
|
|
4392
4392
|
static startUtf8(A) {
|
|
4393
4393
|
A.startObject(0);
|
|
@@ -4414,7 +4414,7 @@ let WI = class RN {
|
|
|
4414
4414
|
return (t || new RN()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4415
4415
|
}
|
|
4416
4416
|
static getSizePrefixedRootAsField(A, t) {
|
|
4417
|
-
return A.setPosition(A.position() +
|
|
4417
|
+
return A.setPosition(A.position() + Fr), (t || new RN()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4418
4418
|
}
|
|
4419
4419
|
name(A) {
|
|
4420
4420
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4524,7 +4524,7 @@ let WI = class RN {
|
|
|
4524
4524
|
return (t || new LB()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4525
4525
|
}
|
|
4526
4526
|
static getSizePrefixedRootAsSchema(A, t) {
|
|
4527
|
-
return A.setPosition(A.position() +
|
|
4527
|
+
return A.setPosition(A.position() + Fr), (t || new LB()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4528
4528
|
}
|
|
4529
4529
|
/**
|
|
4530
4530
|
* endianness of the buffer
|
|
@@ -6471,7 +6471,7 @@ const HxA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
6471
6471
|
setBool: JxA,
|
|
6472
6472
|
truncateBitmap: fb
|
|
6473
6473
|
}, Symbol.toStringTag, { value: "Module" })), YxA = -1;
|
|
6474
|
-
class
|
|
6474
|
+
class mr {
|
|
6475
6475
|
get typeId() {
|
|
6476
6476
|
return this.type.typeId;
|
|
6477
6477
|
}
|
|
@@ -6505,7 +6505,7 @@ class yr {
|
|
|
6505
6505
|
constructor(A, t, i, r, s, n = [], o) {
|
|
6506
6506
|
this.type = A, this.children = n, this.dictionary = o, this.offset = Math.floor(Math.max(t || 0, 0)), this.length = Math.floor(Math.max(i || 0, 0)), this._nullCount = Math.floor(Math.max(r || 0, -1));
|
|
6507
6507
|
let a;
|
|
6508
|
-
s instanceof
|
|
6508
|
+
s instanceof mr ? (this.stride = s.stride, this.values = s.values, this.typeIds = s.typeIds, this.nullBitmap = s.nullBitmap, this.valueOffsets = s.valueOffsets) : (this.stride = Sh(A), s && ((a = s[0]) && (this.valueOffsets = a), (a = s[1]) && (this.values = a), (a = s[2]) && (this.nullBitmap = a), (a = s[3]) && (this.typeIds = a)));
|
|
6509
6509
|
}
|
|
6510
6510
|
getValid(A) {
|
|
6511
6511
|
const { type: t } = this;
|
|
@@ -6535,7 +6535,7 @@ class yr {
|
|
|
6535
6535
|
return i !== !!t && (this._nullCount = this.nullCount + (t ? -1 : 1)), t;
|
|
6536
6536
|
}
|
|
6537
6537
|
clone(A = this.type, t = this.offset, i = this.length, r = this._nullCount, s = this, n = this.children) {
|
|
6538
|
-
return new
|
|
6538
|
+
return new mr(A, t, i, r, s, n, this.dictionary);
|
|
6539
6539
|
}
|
|
6540
6540
|
slice(A, t) {
|
|
6541
6541
|
const { stride: i, typeId: r, children: s } = this, n = +(this._nullCount === 0) - 1, o = r === 16 ? i : 1, a = this._sliceBuffers(A, t, i, r);
|
|
@@ -6567,97 +6567,97 @@ class yr {
|
|
|
6567
6567
|
return A.map((r) => r.slice(t, i));
|
|
6568
6568
|
}
|
|
6569
6569
|
}
|
|
6570
|
-
|
|
6570
|
+
mr.prototype.children = Object.freeze([]);
|
|
6571
6571
|
class xS extends zi {
|
|
6572
6572
|
visit(A) {
|
|
6573
6573
|
return this.getVisitFn(A.type).call(this, A);
|
|
6574
6574
|
}
|
|
6575
6575
|
visitNull(A) {
|
|
6576
6576
|
const { ["type"]: t, ["offset"]: i = 0, ["length"]: r = 0 } = A;
|
|
6577
|
-
return new
|
|
6577
|
+
return new mr(t, i, r, r);
|
|
6578
6578
|
}
|
|
6579
6579
|
visitBool(A) {
|
|
6580
6580
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length >> 3, ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6581
|
-
return new
|
|
6581
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6582
6582
|
}
|
|
6583
6583
|
visitInt(A) {
|
|
6584
6584
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length, ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6585
|
-
return new
|
|
6585
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6586
6586
|
}
|
|
6587
6587
|
visitFloat(A) {
|
|
6588
6588
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length, ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6589
|
-
return new
|
|
6589
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6590
6590
|
}
|
|
6591
6591
|
visitUtf8(A) {
|
|
6592
6592
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.data), s = nr(A.nullBitmap), n = kp(A.valueOffsets), { ["length"]: o = n.length - 1, ["nullCount"]: a = A.nullBitmap ? -1 : 0 } = A;
|
|
6593
|
-
return new
|
|
6593
|
+
return new mr(t, i, o, a, [n, r, s]);
|
|
6594
6594
|
}
|
|
6595
6595
|
visitLargeUtf8(A) {
|
|
6596
6596
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.data), s = nr(A.nullBitmap), n = WP(A.valueOffsets), { ["length"]: o = n.length - 1, ["nullCount"]: a = A.nullBitmap ? -1 : 0 } = A;
|
|
6597
|
-
return new
|
|
6597
|
+
return new mr(t, i, o, a, [n, r, s]);
|
|
6598
6598
|
}
|
|
6599
6599
|
visitBinary(A) {
|
|
6600
6600
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.data), s = nr(A.nullBitmap), n = kp(A.valueOffsets), { ["length"]: o = n.length - 1, ["nullCount"]: a = A.nullBitmap ? -1 : 0 } = A;
|
|
6601
|
-
return new
|
|
6601
|
+
return new mr(t, i, o, a, [n, r, s]);
|
|
6602
6602
|
}
|
|
6603
6603
|
visitLargeBinary(A) {
|
|
6604
6604
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.data), s = nr(A.nullBitmap), n = WP(A.valueOffsets), { ["length"]: o = n.length - 1, ["nullCount"]: a = A.nullBitmap ? -1 : 0 } = A;
|
|
6605
|
-
return new
|
|
6605
|
+
return new mr(t, i, o, a, [n, r, s]);
|
|
6606
6606
|
}
|
|
6607
6607
|
visitFixedSizeBinary(A) {
|
|
6608
6608
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / Sh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6609
|
-
return new
|
|
6609
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6610
6610
|
}
|
|
6611
6611
|
visitDate(A) {
|
|
6612
6612
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / Sh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6613
|
-
return new
|
|
6613
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6614
6614
|
}
|
|
6615
6615
|
visitTimestamp(A) {
|
|
6616
6616
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / Sh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6617
|
-
return new
|
|
6617
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6618
6618
|
}
|
|
6619
6619
|
visitTime(A) {
|
|
6620
6620
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / Sh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6621
|
-
return new
|
|
6621
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6622
6622
|
}
|
|
6623
6623
|
visitDecimal(A) {
|
|
6624
6624
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / Sh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6625
|
-
return new
|
|
6625
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6626
6626
|
}
|
|
6627
6627
|
visitList(A) {
|
|
6628
6628
|
const { ["type"]: t, ["offset"]: i = 0, ["child"]: r } = A, s = nr(A.nullBitmap), n = kp(A.valueOffsets), { ["length"]: o = n.length - 1, ["nullCount"]: a = A.nullBitmap ? -1 : 0 } = A;
|
|
6629
|
-
return new
|
|
6629
|
+
return new mr(t, i, o, a, [n, void 0, s], [r]);
|
|
6630
6630
|
}
|
|
6631
6631
|
visitStruct(A) {
|
|
6632
6632
|
const { ["type"]: t, ["offset"]: i = 0, ["children"]: r = [] } = A, s = nr(A.nullBitmap), { length: n = r.reduce((a, { length: g }) => Math.max(a, g), 0), nullCount: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6633
|
-
return new
|
|
6633
|
+
return new mr(t, i, n, o, [void 0, void 0, s], r);
|
|
6634
6634
|
}
|
|
6635
6635
|
visitUnion(A) {
|
|
6636
6636
|
const { ["type"]: t, ["offset"]: i = 0, ["children"]: r = [] } = A, s = hr(t.ArrayType, A.typeIds), { ["length"]: n = s.length, ["nullCount"]: o = -1 } = A;
|
|
6637
6637
|
if (zt.isSparseUnion(t))
|
|
6638
|
-
return new
|
|
6638
|
+
return new mr(t, i, n, o, [void 0, void 0, void 0, s], r);
|
|
6639
6639
|
const a = kp(A.valueOffsets);
|
|
6640
|
-
return new
|
|
6640
|
+
return new mr(t, i, n, o, [a, void 0, void 0, s], r);
|
|
6641
6641
|
}
|
|
6642
6642
|
visitDictionary(A) {
|
|
6643
6643
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.indices.ArrayType, A.data), { ["dictionary"]: n = new Li([new xS().visit({ type: t.dictionary })]) } = A, { ["length"]: o = s.length, ["nullCount"]: a = A.nullBitmap ? -1 : 0 } = A;
|
|
6644
|
-
return new
|
|
6644
|
+
return new mr(t, i, o, a, [void 0, s, r], [], n);
|
|
6645
6645
|
}
|
|
6646
6646
|
visitInterval(A) {
|
|
6647
6647
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / Sh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6648
|
-
return new
|
|
6648
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6649
6649
|
}
|
|
6650
6650
|
visitDuration(A) {
|
|
6651
6651
|
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length, ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6652
|
-
return new
|
|
6652
|
+
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6653
6653
|
}
|
|
6654
6654
|
visitFixedSizeList(A) {
|
|
6655
6655
|
const { ["type"]: t, ["offset"]: i = 0, ["child"]: r = new xS().visit({ type: t.valueType }) } = A, s = nr(A.nullBitmap), { ["length"]: n = r.length / Sh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6656
|
-
return new
|
|
6656
|
+
return new mr(t, i, n, o, [void 0, void 0, s], [r]);
|
|
6657
6657
|
}
|
|
6658
6658
|
visitMap(A) {
|
|
6659
6659
|
const { ["type"]: t, ["offset"]: i = 0, ["child"]: r = new xS().visit({ type: t.childType }) } = A, s = nr(A.nullBitmap), n = kp(A.valueOffsets), { ["length"]: o = n.length - 1, ["nullCount"]: a = A.nullBitmap ? -1 : 0 } = A;
|
|
6660
|
-
return new
|
|
6660
|
+
return new mr(t, i, o, a, [n, void 0, s], [r]);
|
|
6661
6661
|
}
|
|
6662
6662
|
}
|
|
6663
6663
|
const KxA = new xS();
|
|
@@ -6942,7 +6942,7 @@ let Li = class XQ {
|
|
|
6942
6942
|
constructor(A) {
|
|
6943
6943
|
var t, i, r;
|
|
6944
6944
|
const s = A[0] instanceof XQ ? A.flatMap((o) => o.data) : A;
|
|
6945
|
-
if (s.length === 0 || s.some((o) => !(o instanceof
|
|
6945
|
+
if (s.length === 0 || s.some((o) => !(o instanceof mr)))
|
|
6946
6946
|
throw new TypeError("Vector constructor expects an Array of Data instances.");
|
|
6947
6947
|
const n = (t = s[0]) === null || t === void 0 ? void 0 : t.type;
|
|
6948
6948
|
switch (s.length) {
|
|
@@ -7200,7 +7200,7 @@ class UM extends Li {
|
|
|
7200
7200
|
}
|
|
7201
7201
|
function L2(e) {
|
|
7202
7202
|
if (e) {
|
|
7203
|
-
if (e instanceof
|
|
7203
|
+
if (e instanceof mr)
|
|
7204
7204
|
return new Li([e]);
|
|
7205
7205
|
if (e instanceof Li)
|
|
7206
7206
|
return new Li(e.data);
|
|
@@ -7237,7 +7237,7 @@ function L2(e) {
|
|
|
7237
7237
|
throw new Error("Unrecognized input");
|
|
7238
7238
|
}
|
|
7239
7239
|
function zxA(e) {
|
|
7240
|
-
return e instanceof
|
|
7240
|
+
return e instanceof mr ? [e] : e instanceof Li ? e.data : L2(e).data;
|
|
7241
7241
|
}
|
|
7242
7242
|
function jxA(e) {
|
|
7243
7243
|
if (!e || e.length <= 0)
|
|
@@ -7598,7 +7598,7 @@ class fI {
|
|
|
7598
7598
|
return (t || new fI()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
7599
7599
|
}
|
|
7600
7600
|
static getSizePrefixedRootAsFooter(A, t) {
|
|
7601
|
-
return A.setPosition(A.position() +
|
|
7601
|
+
return A.setPosition(A.position() + Fr), (t || new fI()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
7602
7602
|
}
|
|
7603
7603
|
version() {
|
|
7604
7604
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -7678,7 +7678,7 @@ class fI {
|
|
|
7678
7678
|
A.finish(t, void 0, !0);
|
|
7679
7679
|
}
|
|
7680
7680
|
}
|
|
7681
|
-
class
|
|
7681
|
+
class _r {
|
|
7682
7682
|
constructor(A = [], t, i, r = bn.V5) {
|
|
7683
7683
|
this.fields = A || [], this.metadata = t || /* @__PURE__ */ new Map(), i || (i = A8(this.fields)), this.dictionaries = i, this.metadataVersion = r;
|
|
7684
7684
|
}
|
|
@@ -7699,7 +7699,7 @@ class vr {
|
|
|
7699
7699
|
*/
|
|
7700
7700
|
select(A) {
|
|
7701
7701
|
const t = new Set(A), i = this.fields.filter((r) => t.has(r.name));
|
|
7702
|
-
return new
|
|
7702
|
+
return new _r(i, this.metadata);
|
|
7703
7703
|
}
|
|
7704
7704
|
/**
|
|
7705
7705
|
* Construct a new Schema containing only fields at the specified indices.
|
|
@@ -7709,26 +7709,26 @@ class vr {
|
|
|
7709
7709
|
*/
|
|
7710
7710
|
selectAt(A) {
|
|
7711
7711
|
const t = A.map((i) => this.fields[i]).filter(Boolean);
|
|
7712
|
-
return new
|
|
7712
|
+
return new _r(t, this.metadata);
|
|
7713
7713
|
}
|
|
7714
7714
|
assign(...A) {
|
|
7715
|
-
const t = A[0] instanceof
|
|
7715
|
+
const t = A[0] instanceof _r ? A[0] : Array.isArray(A[0]) ? new _r(A[0]) : new _r(A), i = [...this.fields], r = fF(fF(/* @__PURE__ */ new Map(), this.metadata), t.metadata), s = t.fields.filter((o) => {
|
|
7716
7716
|
const a = i.findIndex((g) => g.name === o.name);
|
|
7717
7717
|
return ~a ? (i[a] = o.clone({
|
|
7718
7718
|
metadata: fF(fF(/* @__PURE__ */ new Map(), i[a].metadata), o.metadata)
|
|
7719
7719
|
})) && !1 : !0;
|
|
7720
7720
|
}), n = A8(s, /* @__PURE__ */ new Map());
|
|
7721
|
-
return new
|
|
7721
|
+
return new _r([...i, ...s], r, new Map([...this.dictionaries, ...n]));
|
|
7722
7722
|
}
|
|
7723
7723
|
}
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
class
|
|
7724
|
+
_r.prototype.fields = null;
|
|
7725
|
+
_r.prototype.metadata = null;
|
|
7726
|
+
_r.prototype.dictionaries = null;
|
|
7727
|
+
class Rr {
|
|
7728
7728
|
/** @nocollapse */
|
|
7729
7729
|
static new(...A) {
|
|
7730
7730
|
let [t, i, r, s] = A;
|
|
7731
|
-
return A[0] && typeof A[0] == "object" && ({ name: t } = A[0], i === void 0 && (i = A[0].type), r === void 0 && (r = A[0].nullable), s === void 0 && (s = A[0].metadata)), new
|
|
7731
|
+
return A[0] && typeof A[0] == "object" && ({ name: t } = A[0], i === void 0 && (i = A[0].type), r === void 0 && (r = A[0].nullable), s === void 0 && (s = A[0].metadata)), new Rr(`${t}`, i, r, s);
|
|
7732
7732
|
}
|
|
7733
7733
|
constructor(A, t, i = !1, r) {
|
|
7734
7734
|
this.name = A, this.type = t, this.nullable = i, this.metadata = r || /* @__PURE__ */ new Map();
|
|
@@ -7744,13 +7744,13 @@ class br {
|
|
|
7744
7744
|
}
|
|
7745
7745
|
clone(...A) {
|
|
7746
7746
|
let [t, i, r, s] = A;
|
|
7747
|
-
return !A[0] || typeof A[0] != "object" ? [t = this.name, i = this.type, r = this.nullable, s = this.metadata] = A : { name: t = this.name, type: i = this.type, nullable: r = this.nullable, metadata: s = this.metadata } = A[0],
|
|
7747
|
+
return !A[0] || typeof A[0] != "object" ? [t = this.name, i = this.type, r = this.nullable, s = this.metadata] = A : { name: t = this.name, type: i = this.type, nullable: r = this.nullable, metadata: s = this.metadata } = A[0], Rr.new(t, i, r, s);
|
|
7748
7748
|
}
|
|
7749
7749
|
}
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7750
|
+
Rr.prototype.type = null;
|
|
7751
|
+
Rr.prototype.name = null;
|
|
7752
|
+
Rr.prototype.nullable = null;
|
|
7753
|
+
Rr.prototype.metadata = null;
|
|
7754
7754
|
function fF(e, A) {
|
|
7755
7755
|
return new Map([...e || /* @__PURE__ */ new Map(), ...A || /* @__PURE__ */ new Map()]);
|
|
7756
7756
|
}
|
|
@@ -7772,12 +7772,12 @@ class yb {
|
|
|
7772
7772
|
/** @nocollapse */
|
|
7773
7773
|
static decode(A) {
|
|
7774
7774
|
A = new $xA(nr(A));
|
|
7775
|
-
const t = fI.getRootAsFooter(A), i =
|
|
7775
|
+
const t = fI.getRootAsFooter(A), i = _r.decode(t.schema(), /* @__PURE__ */ new Map(), t.version());
|
|
7776
7776
|
return new AGA(i, t);
|
|
7777
7777
|
}
|
|
7778
7778
|
/** @nocollapse */
|
|
7779
7779
|
static encode(A) {
|
|
7780
|
-
const t = new XxA(), i =
|
|
7780
|
+
const t = new XxA(), i = _r.encode(t, A.schema);
|
|
7781
7781
|
fI.startRecordBatchesVector(t, A.numRecordBatches);
|
|
7782
7782
|
for (const n of [...A.recordBatches()].slice().reverse())
|
|
7783
7783
|
Kh.encode(t, n);
|
|
@@ -7864,7 +7864,7 @@ let du = class fh {
|
|
|
7864
7864
|
return (t || new fh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
7865
7865
|
}
|
|
7866
7866
|
static getSizePrefixedRootAsMessage(A, t) {
|
|
7867
|
-
return A.setPosition(A.position() +
|
|
7867
|
+
return A.setPosition(A.position() + Fr), (t || new fh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
7868
7868
|
}
|
|
7869
7869
|
version() {
|
|
7870
7870
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -8004,7 +8004,7 @@ class eGA extends zi {
|
|
|
8004
8004
|
}
|
|
8005
8005
|
const SU = new eGA();
|
|
8006
8006
|
function tGA(e, A = /* @__PURE__ */ new Map()) {
|
|
8007
|
-
return new
|
|
8007
|
+
return new _r(rGA(e, A), NN(e.metadata), A);
|
|
8008
8008
|
}
|
|
8009
8009
|
function alA(e) {
|
|
8010
8010
|
return new ug(e.count, glA(e.columns), IlA(e.columns), null);
|
|
@@ -8013,10 +8013,10 @@ function iGA(e) {
|
|
|
8013
8013
|
return new Rl(alA(e.data), e.id, e.isDelta);
|
|
8014
8014
|
}
|
|
8015
8015
|
function rGA(e, A) {
|
|
8016
|
-
return (e.fields || []).filter(Boolean).map((t) =>
|
|
8016
|
+
return (e.fields || []).filter(Boolean).map((t) => Rr.fromJSON(t, A));
|
|
8017
8017
|
}
|
|
8018
8018
|
function Ij(e, A) {
|
|
8019
|
-
return (e.children || []).filter(Boolean).map((t) =>
|
|
8019
|
+
return (e.children || []).filter(Boolean).map((t) => Rr.fromJSON(t, A));
|
|
8020
8020
|
}
|
|
8021
8021
|
function glA(e) {
|
|
8022
8022
|
return (e || []).reduce((A, t) => [
|
|
@@ -8037,7 +8037,7 @@ function sGA(e) {
|
|
|
8037
8037
|
}
|
|
8038
8038
|
function nGA(e, A) {
|
|
8039
8039
|
let t, i, r, s, n, o;
|
|
8040
|
-
return !A || !(s = e.dictionary) ? (n = lj(e, Ij(e, A)), r = new
|
|
8040
|
+
return !A || !(s = e.dictionary) ? (n = lj(e, Ij(e, A)), r = new Rr(e.name, n, e.nullable, NN(e.metadata))) : A.has(t = s.id) ? (i = (i = s.indexType) ? cj(i) : new IC(), o = new BC(A.get(t), i, t, s.isOrdered), r = new Rr(e.name, o, e.nullable, NN(e.metadata))) : (i = (i = s.indexType) ? cj(i) : new IC(), A.set(t, n = lj(e, Ij(e, A))), o = new BC(n, i, t, s.isOrdered), r = new Rr(e.name, o, e.nullable, NN(e.metadata))), r || null;
|
|
8041
8041
|
}
|
|
8042
8042
|
function NN(e = []) {
|
|
8043
8043
|
return new Map(e.map(({ key: A, value: t }) => [A, t]));
|
|
@@ -8138,11 +8138,11 @@ class Ga {
|
|
|
8138
8138
|
static encode(A) {
|
|
8139
8139
|
const t = new oGA();
|
|
8140
8140
|
let i = -1;
|
|
8141
|
-
return A.isSchema() ? i =
|
|
8141
|
+
return A.isSchema() ? i = _r.encode(t, A.header()) : A.isRecordBatch() ? i = ug.encode(t, A.header()) : A.isDictionaryBatch() && (i = Rl.encode(t, A.header())), du.startMessage(t), du.addVersion(t, bn.V5), du.addHeader(t, i), du.addHeaderType(t, A.headerType), du.addBodyLength(t, BigInt(A.bodyLength)), du.finishMessageBuffer(t, du.endMessage(t)), t.asUint8Array();
|
|
8142
8142
|
}
|
|
8143
8143
|
/** @nocollapse */
|
|
8144
8144
|
static from(A, t = 0) {
|
|
8145
|
-
if (A instanceof
|
|
8145
|
+
if (A instanceof _r)
|
|
8146
8146
|
return new Ga(0, bn.V5, Lr.Schema, A);
|
|
8147
8147
|
if (A instanceof ug)
|
|
8148
8148
|
return new Ga(t, bn.V5, Lr.RecordBatch, A);
|
|
@@ -8240,7 +8240,7 @@ function gGA(e, A) {
|
|
|
8240
8240
|
return (() => {
|
|
8241
8241
|
switch (A) {
|
|
8242
8242
|
case Lr.Schema:
|
|
8243
|
-
return
|
|
8243
|
+
return _r.fromJSON(e);
|
|
8244
8244
|
case Lr.RecordBatch:
|
|
8245
8245
|
return ug.fromJSON(e);
|
|
8246
8246
|
case Lr.DictionaryBatch:
|
|
@@ -8253,7 +8253,7 @@ function IGA(e, A) {
|
|
|
8253
8253
|
return (() => {
|
|
8254
8254
|
switch (A) {
|
|
8255
8255
|
case Lr.Schema:
|
|
8256
|
-
return
|
|
8256
|
+
return _r.decode(e.header(new mh()), /* @__PURE__ */ new Map(), e.version());
|
|
8257
8257
|
case Lr.RecordBatch:
|
|
8258
8258
|
return ug.decode(e.header(new yh()), e.version());
|
|
8259
8259
|
case Lr.DictionaryBatch:
|
|
@@ -8262,12 +8262,12 @@ function IGA(e, A) {
|
|
|
8262
8262
|
throw new Error(`Unrecognized Message type: { name: ${Lr[A]}, type: ${A} }`);
|
|
8263
8263
|
});
|
|
8264
8264
|
}
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8265
|
+
Rr.encode = pGA;
|
|
8266
|
+
Rr.decode = dGA;
|
|
8267
|
+
Rr.fromJSON = nGA;
|
|
8268
|
+
_r.encode = fGA;
|
|
8269
|
+
_r.decode = cGA;
|
|
8270
|
+
_r.fromJSON = tGA;
|
|
8271
8271
|
ug.encode = yGA;
|
|
8272
8272
|
ug.decode = lGA;
|
|
8273
8273
|
ug.fromJSON = alA;
|
|
@@ -8282,7 +8282,7 @@ Jx.encode = llA;
|
|
|
8282
8282
|
Jx.decode = clA;
|
|
8283
8283
|
function cGA(e, A = /* @__PURE__ */ new Map(), t = bn.V5) {
|
|
8284
8284
|
const i = QGA(e, A);
|
|
8285
|
-
return new
|
|
8285
|
+
return new _r(i, MN(e), A, t);
|
|
8286
8286
|
}
|
|
8287
8287
|
function lGA(e, A = bn.V5) {
|
|
8288
8288
|
return new ug(e.length(), uGA(e), EGA(e, A), clA(e.compression()));
|
|
@@ -8311,18 +8311,18 @@ function EGA(e, A) {
|
|
|
8311
8311
|
function QGA(e, A) {
|
|
8312
8312
|
const t = [];
|
|
8313
8313
|
for (let i, r = -1, s = -1, n = e.fieldsLength(); ++r < n; )
|
|
8314
|
-
(i = e.fields(r)) && (t[++s] =
|
|
8314
|
+
(i = e.fields(r)) && (t[++s] = Rr.decode(i, A));
|
|
8315
8315
|
return t;
|
|
8316
8316
|
}
|
|
8317
8317
|
function hj(e, A) {
|
|
8318
8318
|
const t = [];
|
|
8319
8319
|
for (let i, r = -1, s = -1, n = e.childrenLength(); ++r < n; )
|
|
8320
|
-
(i = e.children(r)) && (t[++s] =
|
|
8320
|
+
(i = e.children(r)) && (t[++s] = Rr.decode(i, A));
|
|
8321
8321
|
return t;
|
|
8322
8322
|
}
|
|
8323
8323
|
function dGA(e, A) {
|
|
8324
8324
|
let t, i, r, s, n, o;
|
|
8325
|
-
return !A || !(o = e.dictionary()) ? (r = Cj(e, hj(e, A)), i = new
|
|
8325
|
+
return !A || !(o = e.dictionary()) ? (r = Cj(e, hj(e, A)), i = new Rr(e.name(), r, e.nullable(), MN(e))) : A.has(t = Gs(o.id())) ? (s = (s = o.indexType()) ? Bj(s) : new IC(), n = new BC(A.get(t), s, t, o.isOrdered()), i = new Rr(e.name(), n, e.nullable(), MN(e))) : (s = (s = o.indexType()) ? Bj(s) : new IC(), A.set(t, r = Cj(e, hj(e, A))), n = new BC(r, s, t, o.isOrdered()), i = new Rr(e.name(), n, e.nullable(), MN(e))), i || null;
|
|
8326
8326
|
}
|
|
8327
8327
|
function MN(e) {
|
|
8328
8328
|
const A = /* @__PURE__ */ new Map();
|
|
@@ -8412,7 +8412,7 @@ function clA(e) {
|
|
|
8412
8412
|
return e ? new Jx(e.codec(), e.method()) : null;
|
|
8413
8413
|
}
|
|
8414
8414
|
function fGA(e, A) {
|
|
8415
|
-
const t = A.fields.map((s) =>
|
|
8415
|
+
const t = A.fields.map((s) => Rr.encode(e, s));
|
|
8416
8416
|
mh.startFieldsVector(e, t.length);
|
|
8417
8417
|
const i = mh.createFieldsVector(e, t), r = A.metadata && A.metadata.size > 0 ? mh.createCustomMetadataVector(e, [...A.metadata].map(([s, n]) => {
|
|
8418
8418
|
const o = e.createString(`${s}`), a = e.createString(`${n}`);
|
|
@@ -8425,7 +8425,7 @@ function pGA(e, A) {
|
|
|
8425
8425
|
const s = A.type;
|
|
8426
8426
|
let n = A.typeId;
|
|
8427
8427
|
zt.isDictionary(s) ? (n = s.dictionary.typeId, r = SU.visit(s, e), i = SU.visit(s.dictionary, e)) : i = SU.visit(s, e);
|
|
8428
|
-
const o = (s.children || []).map((l) =>
|
|
8428
|
+
const o = (s.children || []).map((l) => Rr.encode(e, l)), a = WI.createChildrenVector(e, o), g = A.metadata && A.metadata.size > 0 ? WI.createCustomMetadataVector(e, [...A.metadata].map(([l, C]) => {
|
|
8429
8429
|
const Q = e.createString(`${l}`), f = e.createString(`${C}`);
|
|
8430
8430
|
return yo.startKeyValue(e), yo.addKey(e, Q), yo.addValue(e, f), yo.endKeyValue(e);
|
|
8431
8431
|
})) : -1;
|
|
@@ -9068,7 +9068,7 @@ class Z4 extends zi {
|
|
|
9068
9068
|
super(), this.nodesIndex = -1, this.buffersIndex = -1, this.bytes = A, this.nodes = t, this.buffers = i, this.dictionaries = r, this.metadataVersion = s;
|
|
9069
9069
|
}
|
|
9070
9070
|
visit(A) {
|
|
9071
|
-
return super.visit(A instanceof
|
|
9071
|
+
return super.visit(A instanceof Rr ? A.type : A);
|
|
9072
9072
|
}
|
|
9073
9073
|
visitNull(A, { length: t } = this.nextFieldNode()) {
|
|
9074
9074
|
return di({ type: A, length: t });
|
|
@@ -9344,7 +9344,7 @@ class dlA extends Pa {
|
|
|
9344
9344
|
if (this.numChildren > 0)
|
|
9345
9345
|
throw new Error("FixedSizeListBuilder can only have one child.");
|
|
9346
9346
|
const i = this.children.push(A);
|
|
9347
|
-
return this.type = new Vd(this.type.listSize, new
|
|
9347
|
+
return this.type = new Vd(this.type.listSize, new Rr(t, A.type, !0)), i;
|
|
9348
9348
|
}
|
|
9349
9349
|
}
|
|
9350
9350
|
class J2 extends xC {
|
|
@@ -9416,7 +9416,7 @@ class MlA extends Ym {
|
|
|
9416
9416
|
addChild(A, t = "0") {
|
|
9417
9417
|
if (this.numChildren > 0)
|
|
9418
9418
|
throw new Error("ListBuilder can only have one child.");
|
|
9419
|
-
return this.children[this.numChildren] = A, this.type = new IE(new
|
|
9419
|
+
return this.children[this.numChildren] = A, this.type = new IE(new Rr(t, A.type, !0)), this.numChildren - 1;
|
|
9420
9420
|
}
|
|
9421
9421
|
_flushPending(A) {
|
|
9422
9422
|
const t = this._offsets, [i] = this.children;
|
|
@@ -9441,7 +9441,7 @@ class vlA extends Ym {
|
|
|
9441
9441
|
addChild(A, t = `${this.numChildren}`) {
|
|
9442
9442
|
if (this.numChildren > 0)
|
|
9443
9443
|
throw new Error("ListBuilder can only have one child.");
|
|
9444
|
-
return this.children[this.numChildren] = A, this.type = new zd(new
|
|
9444
|
+
return this.children[this.numChildren] = A, this.type = new zd(new Rr(t, A.type, !0), this.type.keysSorted), this.numChildren - 1;
|
|
9445
9445
|
}
|
|
9446
9446
|
_flushPending(A) {
|
|
9447
9447
|
const t = this._offsets, [i] = this.children;
|
|
@@ -9482,7 +9482,7 @@ class xlA extends Pa {
|
|
|
9482
9482
|
}
|
|
9483
9483
|
addChild(A, t = `${this.numChildren}`) {
|
|
9484
9484
|
const i = this.children.push(A);
|
|
9485
|
-
return this.type = new Rn([...this.type.children, new
|
|
9485
|
+
return this.type = new Rn([...this.type.children, new Rr(t, A.type, !0)]), i;
|
|
9486
9486
|
}
|
|
9487
9487
|
}
|
|
9488
9488
|
class Ff extends xC {
|
|
@@ -9534,7 +9534,7 @@ class Hx extends Pa {
|
|
|
9534
9534
|
s?.set(A, t), this.length = Math.max(A + 1, this.length);
|
|
9535
9535
|
}
|
|
9536
9536
|
addChild(A, t = `${this.children.length}`) {
|
|
9537
|
-
const i = this.children.push(A), { type: { children: r, mode: s, typeIds: n } } = this, o = [...r, new
|
|
9537
|
+
const i = this.children.push(A), { type: { children: r, mode: s, typeIds: n } } = this, o = [...r, new Rr(t, A.type)];
|
|
9538
9538
|
return this.type = new cE(s, [...n, i], o), i;
|
|
9539
9539
|
}
|
|
9540
9540
|
/** @ignore */
|
|
@@ -9875,13 +9875,13 @@ function CC(e) {
|
|
|
9875
9875
|
return t;
|
|
9876
9876
|
}
|
|
9877
9877
|
function mK(e, A) {
|
|
9878
|
-
if (e instanceof
|
|
9878
|
+
if (e instanceof mr || e instanceof Li || e.type instanceof zt || ArrayBuffer.isView(e))
|
|
9879
9879
|
return L2(e);
|
|
9880
9880
|
const t = { type: A ?? vN(e), nullValues: [null] }, i = [...UlA(t)(e)], r = i.length === 1 ? i[0] : i.reduce((s, n) => s.concat(n));
|
|
9881
9881
|
return zt.isDictionary(r.type) ? r.memoize() : r;
|
|
9882
9882
|
}
|
|
9883
9883
|
function KGA(e) {
|
|
9884
|
-
const A = mK(e), t = new xs(new
|
|
9884
|
+
const A = mK(e), t = new xs(new _r(A.type.children), A.data[0]);
|
|
9885
9885
|
return new Ks(t);
|
|
9886
9886
|
}
|
|
9887
9887
|
function vN(e) {
|
|
@@ -9925,12 +9925,12 @@ function vN(e) {
|
|
|
9925
9925
|
if (t + A === e.length) {
|
|
9926
9926
|
const g = e, l = vN(g[g.findIndex((C) => C != null)]);
|
|
9927
9927
|
if (g.every((C) => C == null || LlA(l, vN(C))))
|
|
9928
|
-
return new IE(new
|
|
9928
|
+
return new IE(new Rr("", l, !0));
|
|
9929
9929
|
} else if (i + A === e.length) {
|
|
9930
9930
|
const g = /* @__PURE__ */ new Map();
|
|
9931
9931
|
for (const l of e)
|
|
9932
9932
|
for (const C of Object.keys(l))
|
|
9933
|
-
!g.has(C) && l[C] != null && g.set(C, new
|
|
9933
|
+
!g.has(C) && l[C] != null && g.set(C, new Rr(C, vN([l[C]]), !0));
|
|
9934
9934
|
return new Rn([...g.values()]);
|
|
9935
9935
|
}
|
|
9936
9936
|
throw new TypeError("Unable to infer Vector type from input values, explicit type declaration expected.");
|
|
@@ -10018,32 +10018,32 @@ class Ks {
|
|
|
10018
10018
|
constructor(...A) {
|
|
10019
10019
|
var t, i;
|
|
10020
10020
|
if (A.length === 0)
|
|
10021
|
-
return this.batches = [], this.schema = new
|
|
10021
|
+
return this.batches = [], this.schema = new _r([]), this._offsets = [0], this;
|
|
10022
10022
|
let r, s;
|
|
10023
|
-
A[0] instanceof
|
|
10023
|
+
A[0] instanceof _r && (r = A.shift()), A.at(-1) instanceof Uint32Array && (s = A.pop());
|
|
10024
10024
|
const n = (a) => {
|
|
10025
10025
|
if (a) {
|
|
10026
10026
|
if (a instanceof xs)
|
|
10027
10027
|
return [a];
|
|
10028
10028
|
if (a instanceof Ks)
|
|
10029
10029
|
return a.batches;
|
|
10030
|
-
if (a instanceof
|
|
10030
|
+
if (a instanceof mr) {
|
|
10031
10031
|
if (a.type instanceof Rn)
|
|
10032
|
-
return [new xs(new
|
|
10032
|
+
return [new xs(new _r(a.type.children), a)];
|
|
10033
10033
|
} else {
|
|
10034
10034
|
if (Array.isArray(a))
|
|
10035
10035
|
return a.flatMap((g) => n(g));
|
|
10036
10036
|
if (typeof a[Symbol.iterator] == "function")
|
|
10037
10037
|
return [...a].flatMap((g) => n(g));
|
|
10038
10038
|
if (typeof a == "object") {
|
|
10039
|
-
const g = Object.keys(a), l = g.map((f) => new Li([a[f]])), C = r ?? new
|
|
10039
|
+
const g = Object.keys(a), l = g.map((f) => new Li([a[f]])), C = r ?? new _r(g.map((f, D) => new Rr(String(f), l[D].type, l[D].nullable))), [, Q] = bU(C, l);
|
|
10040
10040
|
return Q.length === 0 ? [new xs(a)] : Q;
|
|
10041
10041
|
}
|
|
10042
10042
|
}
|
|
10043
10043
|
}
|
|
10044
10044
|
return [];
|
|
10045
10045
|
}, o = A.flatMap((a) => n(a));
|
|
10046
|
-
if (r = (i = r ?? ((t = o[0]) === null || t === void 0 ? void 0 : t.schema)) !== null && i !== void 0 ? i : new
|
|
10046
|
+
if (r = (i = r ?? ((t = o[0]) === null || t === void 0 ? void 0 : t.schema)) !== null && i !== void 0 ? i : new _r([]), !(r instanceof _r))
|
|
10047
10047
|
throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");
|
|
10048
10048
|
for (const a of o) {
|
|
10049
10049
|
if (!(a instanceof xs))
|
|
@@ -10261,7 +10261,7 @@ class xs {
|
|
|
10261
10261
|
constructor(...A) {
|
|
10262
10262
|
switch (A.length) {
|
|
10263
10263
|
case 2: {
|
|
10264
|
-
if ([this.schema] = A, !(this.schema instanceof
|
|
10264
|
+
if ([this.schema] = A, !(this.schema instanceof _r))
|
|
10265
10265
|
throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");
|
|
10266
10266
|
if ([
|
|
10267
10267
|
,
|
|
@@ -10270,17 +10270,17 @@ class xs {
|
|
|
10270
10270
|
type: new Rn(this.schema.fields),
|
|
10271
10271
|
children: this.schema.fields.map((t) => di({ type: t.type, nullCount: 0 }))
|
|
10272
10272
|
})
|
|
10273
|
-
] = A, !(this.data instanceof
|
|
10273
|
+
] = A, !(this.data instanceof mr))
|
|
10274
10274
|
throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");
|
|
10275
10275
|
[this.schema, this.data] = Qj(this.schema, this.data.children);
|
|
10276
10276
|
break;
|
|
10277
10277
|
}
|
|
10278
10278
|
case 1: {
|
|
10279
|
-
const [t] = A, { fields: i, children: r, length: s } = Object.keys(t).reduce((a, g, l) => (a.children[l] = t[g], a.length = Math.max(a.length, t[g].length), a.fields[l] =
|
|
10279
|
+
const [t] = A, { fields: i, children: r, length: s } = Object.keys(t).reduce((a, g, l) => (a.children[l] = t[g], a.length = Math.max(a.length, t[g].length), a.fields[l] = Rr.new({ name: g, type: t[g].type, nullable: !0 }), a), {
|
|
10280
10280
|
length: 0,
|
|
10281
10281
|
fields: new Array(),
|
|
10282
10282
|
children: new Array()
|
|
10283
|
-
}), n = new
|
|
10283
|
+
}), n = new _r(i), o = di({ type: new Rn(i), length: s, children: r, nullCount: 0 });
|
|
10284
10284
|
[this.schema, this.data] = Qj(n, o.children, s);
|
|
10285
10285
|
break;
|
|
10286
10286
|
}
|
|
@@ -10404,7 +10404,7 @@ class xs {
|
|
|
10404
10404
|
if (A > -1 && A < this.numCols) {
|
|
10405
10405
|
t || (t = new Li([di({ type: new bl(), length: this.numRows })]));
|
|
10406
10406
|
const s = i.fields.slice(), n = r.children.slice(), o = s[A].clone({ type: t.type });
|
|
10407
|
-
[s[A], n[A]] = [o, t.data[0]], i = new
|
|
10407
|
+
[s[A], n[A]] = [o, t.data[0]], i = new _r(s, new Map(this.schema.metadata)), r = di({ type: new Rn(s), children: n });
|
|
10408
10408
|
}
|
|
10409
10409
|
return new xs(i, r);
|
|
10410
10410
|
}
|
|
@@ -12073,7 +12073,7 @@ const dkA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
12073
12073
|
get CompressionType() {
|
|
12074
12074
|
return dl;
|
|
12075
12075
|
},
|
|
12076
|
-
Data:
|
|
12076
|
+
Data: mr,
|
|
12077
12077
|
DataType: zt,
|
|
12078
12078
|
DateBuilder: P2,
|
|
12079
12079
|
DateDay: tcA,
|
|
@@ -12100,7 +12100,7 @@ const dkA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
12100
12100
|
DurationNanosecondBuilder: IK,
|
|
12101
12101
|
DurationSecond: H_A,
|
|
12102
12102
|
DurationSecondBuilder: oK,
|
|
12103
|
-
Field:
|
|
12103
|
+
Field: Rr,
|
|
12104
12104
|
FixedSizeBinary: db,
|
|
12105
12105
|
FixedSizeBinaryBuilder: iK,
|
|
12106
12106
|
FixedSizeList: Vd,
|
|
@@ -12165,7 +12165,7 @@ const dkA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
12165
12165
|
RecordBatchStreamReader: nm,
|
|
12166
12166
|
RecordBatchStreamWriter: W2,
|
|
12167
12167
|
RecordBatchWriter: q2,
|
|
12168
|
-
Schema:
|
|
12168
|
+
Schema: _r,
|
|
12169
12169
|
SparseUnion: W_A,
|
|
12170
12170
|
SparseUnionBuilder: GlA,
|
|
12171
12171
|
Struct: Rn,
|
|
@@ -12233,13 +12233,13 @@ function AhA(e) {
|
|
|
12233
12233
|
return fkA(e);
|
|
12234
12234
|
}
|
|
12235
12235
|
function fkA(e) {
|
|
12236
|
-
return new
|
|
12236
|
+
return new _r(e.fields.map((A) => gS(A)), ehA(e.metadata));
|
|
12237
12237
|
}
|
|
12238
12238
|
function ehA(e) {
|
|
12239
12239
|
return e ? new Map(Object.entries(e)) : /* @__PURE__ */ new Map();
|
|
12240
12240
|
}
|
|
12241
12241
|
function gS(e) {
|
|
12242
|
-
return new
|
|
12242
|
+
return new Rr(e.name, pkA(e.type), e.nullable, ehA(e.metadata));
|
|
12243
12243
|
}
|
|
12244
12244
|
function pkA(e) {
|
|
12245
12245
|
if (typeof e == "object")
|
|
@@ -12587,12 +12587,12 @@ function* _kA(e, A) {
|
|
|
12587
12587
|
for (let l = 0; l < r; ++l) {
|
|
12588
12588
|
const C = RkA(e, g, l);
|
|
12589
12589
|
if (n[l].append(C), a++, a >= s) {
|
|
12590
|
-
const f = n.map((G) => G.flush()), D = new
|
|
12590
|
+
const f = n.map((G) => G.flush()), D = new mr(o, 0, a, 0, void 0, f);
|
|
12591
12591
|
yield new xs(t, D), a = 0;
|
|
12592
12592
|
}
|
|
12593
12593
|
}
|
|
12594
12594
|
if (a > 0) {
|
|
12595
|
-
const g = n.map((C) => C.flush()), l = new
|
|
12595
|
+
const g = n.map((C) => C.flush()), l = new mr(o, 0, a, 0, void 0, g);
|
|
12596
12596
|
yield new xs(t, l), a = 0;
|
|
12597
12597
|
}
|
|
12598
12598
|
n.map((g) => g.finish());
|
|
@@ -12930,13 +12930,13 @@ function zkA(e) {
|
|
|
12930
12930
|
for (const t in e) {
|
|
12931
12931
|
const i = e[t];
|
|
12932
12932
|
if (i.type === Float32Array) {
|
|
12933
|
-
const r = /* @__PURE__ */ new Map(), s = new
|
|
12933
|
+
const r = /* @__PURE__ */ new Map(), s = new Rr(i.name, new x2(), i.nullable, r);
|
|
12934
12934
|
A.push(s);
|
|
12935
12935
|
}
|
|
12936
12936
|
}
|
|
12937
12937
|
if (A.length === 0)
|
|
12938
12938
|
throw new Error("No arrow convertible fields");
|
|
12939
|
-
return new
|
|
12939
|
+
return new _r(A);
|
|
12940
12940
|
}
|
|
12941
12941
|
function jkA(e, A) {
|
|
12942
12942
|
const t = [];
|
|
@@ -13133,7 +13133,7 @@ class tLA {
|
|
|
13133
13133
|
}
|
|
13134
13134
|
/** Extract a record batch flushing the currently accumulated data in the builders */
|
|
13135
13135
|
_getArrowRecordBatch() {
|
|
13136
|
-
const { arrowBuilders: A, arrowSchema: t } = this, i = A.map((a) => a.flush()), r = i[0].length, s = new Rn(t.fields), n = new
|
|
13136
|
+
const { arrowBuilders: A, arrowSchema: t } = this, i = A.map((a) => a.flush()), r = i[0].length, s = new Rn(t.fields), n = new mr(s, 0, r, 0, void 0, i);
|
|
13137
13137
|
return new xs(t, n);
|
|
13138
13138
|
}
|
|
13139
13139
|
}
|
|
@@ -51636,7 +51636,7 @@ var Yr = (function(e) {
|
|
|
51636
51636
|
}
|
|
51637
51637
|
A.preloadedImages = {}, A.preloadedAudios = {};
|
|
51638
51638
|
var Ut = null, ei = "data:application/octet-stream;base64,";
|
|
51639
|
-
function
|
|
51639
|
+
function Cr(WA) {
|
|
51640
51640
|
return String.prototype.startsWith ? WA.startsWith(ei) : WA.indexOf(ei) === 0;
|
|
51641
51641
|
}
|
|
51642
51642
|
var vi, rr;
|
|
@@ -51691,7 +51691,7 @@ var Yr = (function(e) {
|
|
|
51691
51691
|
}
|
|
51692
51692
|
}
|
|
51693
51693
|
function Ar(WA) {
|
|
51694
|
-
if (
|
|
51694
|
+
if (Cr(WA))
|
|
51695
51695
|
return Vi(WA.slice(ei.length));
|
|
51696
51696
|
}
|
|
51697
51697
|
var Wn = {
|
|
@@ -51773,7 +51773,7 @@ var Yr = (function(e) {
|
|
|
51773
51773
|
var M = 0, k = 0, J = 0, V = 0, $ = 0, IA = 0, uA = 0, mA = 0, DA = 0, FA = 0, PA = 0;
|
|
51774
51774
|
if (PA = vA, vA = vA + 16 | 0, DA = PA, FA = PA + 8 | 0, mA = DA, E[mA >> 2] = p, E[mA + 4 >> 2] = w, (S | 0) < 0)
|
|
51775
51775
|
return FA = 2, vA = PA, FA | 0;
|
|
51776
|
-
if (M = N, E[M >> 2] = p, E[M + 4 >> 2] = w, M = (R | 0) != 0, M && (E[R >> 2] = 0),
|
|
51776
|
+
if (M = N, E[M >> 2] = p, E[M + 4 >> 2] = w, M = (R | 0) != 0, M && (E[R >> 2] = 0), pr(p, w) | 0)
|
|
51777
51777
|
return FA = 9, vA = PA, FA | 0;
|
|
51778
51778
|
E[FA >> 2] = 0;
|
|
51779
51779
|
A: do
|
|
@@ -51783,14 +51783,14 @@ var Yr = (function(e) {
|
|
|
51783
51783
|
if (!($ | uA)) {
|
|
51784
51784
|
if (M = Ls(M, w, 4, FA, DA) | 0, M | 0)
|
|
51785
51785
|
break A;
|
|
51786
|
-
if (w = DA, M = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0,
|
|
51786
|
+
if (w = DA, M = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0, pr(M, w) | 0) {
|
|
51787
51787
|
M = 9;
|
|
51788
51788
|
break A;
|
|
51789
51789
|
}
|
|
51790
51790
|
}
|
|
51791
51791
|
if (M = Ls(M, w, E[26864 + (uA << 2) >> 2] | 0, FA, DA) | 0, M | 0)
|
|
51792
51792
|
break A;
|
|
51793
|
-
if (w = DA, M = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0, p = N + (IA << 3) | 0, E[p >> 2] = M, E[p + 4 >> 2] = w, E[R + (IA << 2) >> 2] = mA, p = $ + 1 | 0, k = (p | 0) == (mA | 0), J = uA + 1 | 0, V = (J | 0) == 6,
|
|
51793
|
+
if (w = DA, M = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0, p = N + (IA << 3) | 0, E[p >> 2] = M, E[p + 4 >> 2] = w, E[R + (IA << 2) >> 2] = mA, p = $ + 1 | 0, k = (p | 0) == (mA | 0), J = uA + 1 | 0, V = (J | 0) == 6, pr(M, w) | 0) {
|
|
51794
51794
|
M = 9;
|
|
51795
51795
|
break A;
|
|
51796
51796
|
}
|
|
@@ -51805,14 +51805,14 @@ var Yr = (function(e) {
|
|
|
51805
51805
|
if (!($ | uA)) {
|
|
51806
51806
|
if (M = Ls(M, w, 4, FA, DA) | 0, M | 0)
|
|
51807
51807
|
break A;
|
|
51808
|
-
if (w = DA, M = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0,
|
|
51808
|
+
if (w = DA, M = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0, pr(M, w) | 0) {
|
|
51809
51809
|
M = 9;
|
|
51810
51810
|
break A;
|
|
51811
51811
|
}
|
|
51812
51812
|
}
|
|
51813
51813
|
if (M = Ls(M, w, E[26864 + (uA << 2) >> 2] | 0, FA, DA) | 0, M | 0)
|
|
51814
51814
|
break A;
|
|
51815
|
-
if (w = DA, M = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0, p = N + (IA << 3) | 0, E[p >> 2] = M, E[p + 4 >> 2] = w, p = $ + 1 | 0, k = (p | 0) == (mA | 0), J = uA + 1 | 0, V = (J | 0) == 6,
|
|
51815
|
+
if (w = DA, M = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0, p = N + (IA << 3) | 0, E[p >> 2] = M, E[p + 4 >> 2] = w, p = $ + 1 | 0, k = (p | 0) == (mA | 0), J = uA + 1 | 0, V = (J | 0) == 6, pr(M, w) | 0) {
|
|
51816
51816
|
M = 9;
|
|
51817
51817
|
break A;
|
|
51818
51818
|
}
|
|
@@ -52040,14 +52040,14 @@ var Yr = (function(e) {
|
|
|
52040
52040
|
return DA = N, E[DA >> 2] = p, E[DA + 4 >> 2] = w, DA = 0, vA = FA, DA | 0;
|
|
52041
52041
|
E[DA >> 2] = 0;
|
|
52042
52042
|
A: do
|
|
52043
|
-
if (
|
|
52043
|
+
if (pr(p, w) | 0)
|
|
52044
52044
|
p = 9;
|
|
52045
52045
|
else {
|
|
52046
52046
|
R = 0, uA = p;
|
|
52047
52047
|
do {
|
|
52048
52048
|
if (p = Ls(uA, w, 4, DA, mA) | 0, p | 0)
|
|
52049
52049
|
break A;
|
|
52050
|
-
if (w = mA, uA = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0, R = R + 1 | 0,
|
|
52050
|
+
if (w = mA, uA = E[w >> 2] | 0, w = E[w + 4 >> 2] | 0, R = R + 1 | 0, pr(uA, w) | 0) {
|
|
52051
52051
|
p = 9;
|
|
52052
52052
|
break A;
|
|
52053
52053
|
}
|
|
@@ -52059,7 +52059,7 @@ var Yr = (function(e) {
|
|
|
52059
52059
|
if (p = mA, p = Ls(E[p >> 2] | 0, E[p + 4 >> 2] | 0, k, DA, mA) | 0, p | 0)
|
|
52060
52060
|
break A;
|
|
52061
52061
|
if ((M | 0) != (IA | 0))
|
|
52062
|
-
if (V = mA, J = E[V >> 2] | 0, V = E[V + 4 >> 2] | 0, p = N + (R << 3) | 0, E[p >> 2] = J, E[p + 4 >> 2] = V, !(
|
|
52062
|
+
if (V = mA, J = E[V >> 2] | 0, V = E[V + 4 >> 2] | 0, p = N + (R << 3) | 0, E[p >> 2] = J, E[p + 4 >> 2] = V, !(pr(J, V) | 0))
|
|
52063
52063
|
p = R + 1 | 0;
|
|
52064
52064
|
else {
|
|
52065
52065
|
p = 9;
|
|
@@ -52075,7 +52075,7 @@ var Yr = (function(e) {
|
|
|
52075
52075
|
for (k = mA, V = E[R >> 2] | 0, J = 0, R = p, M = E[k >> 2] | 0, k = E[k + 4 >> 2] | 0; ; ) {
|
|
52076
52076
|
if (p = Ls(M, k, V, DA, mA) | 0, p | 0)
|
|
52077
52077
|
break A;
|
|
52078
|
-
if (k = mA, M = E[k >> 2] | 0, k = E[k + 4 >> 2] | 0, p = N + (R << 3) | 0, E[p >> 2] = M, E[p + 4 >> 2] = k, p = R + 1 | 0,
|
|
52078
|
+
if (k = mA, M = E[k >> 2] | 0, k = E[k + 4 >> 2] | 0, p = N + (R << 3) | 0, E[p >> 2] = M, E[p + 4 >> 2] = k, p = R + 1 | 0, pr(M, k) | 0) {
|
|
52079
52079
|
p = 9;
|
|
52080
52080
|
break A;
|
|
52081
52081
|
}
|
|
@@ -52130,7 +52130,7 @@ var Yr = (function(e) {
|
|
|
52130
52130
|
function qC(p, w, S, N) {
|
|
52131
52131
|
p = p | 0, w = w | 0, S = S | 0, N = N | 0;
|
|
52132
52132
|
var R = 0, M = 0, k = 0, J = 0, V = 0, $ = 0;
|
|
52133
|
-
for (J = vA, vA = vA + 16 | 0, M = J, k = J + 8 | 0, R = (
|
|
52133
|
+
for (J = vA, vA = vA + 16 | 0, M = J, k = J + 8 | 0, R = (pr(p, w) | 0) == 0, R = R ? 1 : 2; ; ) {
|
|
52134
52134
|
if (E[k >> 2] = 0, $ = (Ls(p, w, R, k, M) | 0) == 0, V = M, $ & ((E[V >> 2] | 0) == (S | 0) ? (E[V + 4 >> 2] | 0) == (N | 0) : 0)) {
|
|
52135
52135
|
p = 4;
|
|
52136
52136
|
break;
|
|
@@ -52496,7 +52496,7 @@ var Yr = (function(e) {
|
|
|
52496
52496
|
function gi(p, w) {
|
|
52497
52497
|
return p = p | 0, w = w | 0, E[848 + (p * 28 | 0) + (w << 2) >> 2] | 0;
|
|
52498
52498
|
}
|
|
52499
|
-
function
|
|
52499
|
+
function Nr(p, w) {
|
|
52500
52500
|
return p = p | 0, w = w | 0, (E[848 + (p * 28 | 0) >> 2] | 0) == (w | 0) ? (w = 0, w | 0) : (E[848 + (p * 28 | 0) + 4 >> 2] | 0) == (w | 0) ? (w = 1, w | 0) : (E[848 + (p * 28 | 0) + 8 >> 2] | 0) == (w | 0) ? (w = 2, w | 0) : (E[848 + (p * 28 | 0) + 12 >> 2] | 0) == (w | 0) ? (w = 3, w | 0) : (E[848 + (p * 28 | 0) + 16 >> 2] | 0) == (w | 0) ? (w = 4, w | 0) : (E[848 + (p * 28 | 0) + 20 >> 2] | 0) == (w | 0) ? (w = 5, w | 0) : ((E[848 + (p * 28 | 0) + 24 >> 2] | 0) == (w | 0) ? 6 : 7) | 0;
|
|
52501
52501
|
}
|
|
52502
52502
|
function GI() {
|
|
@@ -52617,7 +52617,7 @@ var Yr = (function(e) {
|
|
|
52617
52617
|
if (R = er(w | 0, S | 0, 6, 0) | 0, M = NA() | 0, V) {
|
|
52618
52618
|
k = 0, J = 0;
|
|
52619
52619
|
do
|
|
52620
|
-
gt = p + (J << 3) | 0, gt = ((
|
|
52620
|
+
gt = p + (J << 3) | 0, gt = ((pr(E[gt >> 2] | 0, E[gt + 4 >> 2] | 0) | 0) != 0) << 31 >> 31, R = Ct(R | 0, M | 0, gt | 0, ((gt | 0) < 0) << 31 >> 31 | 0) | 0, M = NA() | 0, J = Ct(J | 0, k | 0, 1, 0) | 0, k = NA() | 0;
|
|
52621
52621
|
while ((k | 0) < (S | 0) | (k | 0) == (S | 0) & J >>> 0 < w >>> 0);
|
|
52622
52622
|
ce = R, be = M;
|
|
52623
52623
|
} else
|
|
@@ -52913,7 +52913,7 @@ var Yr = (function(e) {
|
|
|
52913
52913
|
else if ((M | 0) == 7)
|
|
52914
52914
|
M = 5;
|
|
52915
52915
|
else {
|
|
52916
|
-
if ((M | 0) == 1 | (k | 0) == 1 &&
|
|
52916
|
+
if ((M | 0) == 1 | (k | 0) == 1 && pr(V, $) | 0) {
|
|
52917
52917
|
M = 5;
|
|
52918
52918
|
break;
|
|
52919
52919
|
}
|
|
@@ -52951,7 +52951,7 @@ var Yr = (function(e) {
|
|
|
52951
52951
|
case 7:
|
|
52952
52952
|
return S = 0, S | 0;
|
|
52953
52953
|
}
|
|
52954
|
-
return S = w & -2130706433 | 134217728, !(!0 & (w & 2013265920 | 0) == 268435456) || !0 & (w & 117440512 | 0) == 16777216 & (
|
|
52954
|
+
return S = w & -2130706433 | 134217728, !(!0 & (w & 2013265920 | 0) == 268435456) || !0 & (w & 117440512 | 0) == 16777216 & (pr(p, S) | 0) != 0 ? (S = 0, S | 0) : (S = jC(p, S) | 0, S | 0);
|
|
52955
52955
|
}
|
|
52956
52956
|
function Jl(p, w, S) {
|
|
52957
52957
|
p = p | 0, w = w | 0, S = S | 0;
|
|
@@ -52961,12 +52961,12 @@ var Yr = (function(e) {
|
|
|
52961
52961
|
function sI(p, w, S) {
|
|
52962
52962
|
p = p | 0, w = w | 0, S = S | 0;
|
|
52963
52963
|
var N = 0, R = 0;
|
|
52964
|
-
return R = (
|
|
52964
|
+
return R = (pr(p, w) | 0) == 0, w = w & -2130706433, N = S, E[N >> 2] = R ? p : 0, E[N + 4 >> 2] = R ? w | 285212672 : 0, N = S + 8 | 0, E[N >> 2] = p, E[N + 4 >> 2] = w | 301989888, N = S + 16 | 0, E[N >> 2] = p, E[N + 4 >> 2] = w | 318767104, N = S + 24 | 0, E[N >> 2] = p, E[N + 4 >> 2] = w | 335544320, N = S + 32 | 0, E[N >> 2] = p, E[N + 4 >> 2] = w | 352321536, S = S + 40 | 0, E[S >> 2] = p, E[S + 4 >> 2] = w | 369098752, 0;
|
|
52965
52965
|
}
|
|
52966
52966
|
function pg(p, w, S) {
|
|
52967
52967
|
p = p | 0, w = w | 0, S = S | 0;
|
|
52968
52968
|
var N = 0, R = 0, M = 0, k = 0;
|
|
52969
|
-
return k = vA, vA = vA + 16 | 0, R = k, M = w & -2130706433 | 134217728, !0 & (w & 2013265920 | 0) == 268435456 ? (N = it(p | 0, w | 0, 56) | 0, NA() | 0, N = Rw(p, M, N & 7) | 0, (N | 0) == -1 ? (E[S >> 2] = 0, M = 6, vA = k, M | 0) : (nI(p, M, R) | 0 && Nt(27634, 27035, 282, 27050), w = it(p | 0, w | 0, 52) | 0, NA() | 0, w = w & 15,
|
|
52969
|
+
return k = vA, vA = vA + 16 | 0, R = k, M = w & -2130706433 | 134217728, !0 & (w & 2013265920 | 0) == 268435456 ? (N = it(p | 0, w | 0, 56) | 0, NA() | 0, N = Rw(p, M, N & 7) | 0, (N | 0) == -1 ? (E[S >> 2] = 0, M = 6, vA = k, M | 0) : (nI(p, M, R) | 0 && Nt(27634, 27035, 282, 27050), w = it(p | 0, w | 0, 52) | 0, NA() | 0, w = w & 15, pr(p, M) | 0 ? zC(R, w, N, 2, S) : Mc(R, w, N, 2, S), M = 0, vA = k, M | 0)) : (M = 6, vA = k, M | 0);
|
|
52970
52970
|
}
|
|
52971
52971
|
function WC(p, w, S) {
|
|
52972
52972
|
p = p | 0, w = w | 0, S = S | 0;
|
|
@@ -53326,12 +53326,12 @@ var Yr = (function(e) {
|
|
|
53326
53326
|
break A;
|
|
53327
53327
|
}
|
|
53328
53328
|
while (!1);
|
|
53329
|
-
S = qa(7, 0, R, ((R | 0) < 0) << 31 >> 31) | 0, S = er(S | 0, NA() | 0, 5, 0) | 0, S = Ct(S | 0, NA() | 0, -5, -1) | 0, S =
|
|
53329
|
+
S = qa(7, 0, R, ((R | 0) < 0) << 31 >> 31) | 0, S = er(S | 0, NA() | 0, 5, 0) | 0, S = Ct(S | 0, NA() | 0, -5, -1) | 0, S = xr(S | 0, NA() | 0, 6, 0) | 0, S = Ct(S | 0, NA() | 0, 1, 0) | 0, R = NA() | 0;
|
|
53330
53330
|
}
|
|
53331
53331
|
while (!1);
|
|
53332
53332
|
return k = N, E[k >> 2] = S, E[k + 4 >> 2] = R, k = 0, k | 0;
|
|
53333
53333
|
}
|
|
53334
|
-
function
|
|
53334
|
+
function pr(p, w) {
|
|
53335
53335
|
p = p | 0, w = w | 0;
|
|
53336
53336
|
var S = 0, N = 0, R = 0;
|
|
53337
53337
|
if (R = it(p | 0, w | 0, 45) | 0, NA() | 0, !(Ot(R & 127) | 0))
|
|
@@ -53478,7 +53478,7 @@ var Yr = (function(e) {
|
|
|
53478
53478
|
ft = 85;
|
|
53479
53479
|
break;
|
|
53480
53480
|
}
|
|
53481
|
-
if (Ke =
|
|
53481
|
+
if (Ke = xr(S | 0, N | 0, 6, 0) | 0, NA() | 0, Ke = sn(Ke, 8) | 0, !Ke) {
|
|
53482
53482
|
ft = 48;
|
|
53483
53483
|
break;
|
|
53484
53484
|
}
|
|
@@ -54536,7 +54536,7 @@ var Yr = (function(e) {
|
|
|
54536
54536
|
R = 5, $ = 42;
|
|
54537
54537
|
break;
|
|
54538
54538
|
}
|
|
54539
|
-
if (uA = V + (((V | 0) != 0 & M) << 31 >> 31) | 0, uA | 0 && ($ = ye - mA | 0, $ = qa(7, 0, $, (($ | 0) < 0) << 31 >> 31) | 0, IA = NA() | 0, M ? (M = er($ | 0, IA | 0, 5, 0) | 0, M = Ct(M | 0, NA() | 0, -5, -1) | 0, M =
|
|
54539
|
+
if (uA = V + (((V | 0) != 0 & M) << 31 >> 31) | 0, uA | 0 && ($ = ye - mA | 0, $ = qa(7, 0, $, (($ | 0) < 0) << 31 >> 31) | 0, IA = NA() | 0, M ? (M = er($ | 0, IA | 0, 5, 0) | 0, M = Ct(M | 0, NA() | 0, -5, -1) | 0, M = xr(M | 0, NA() | 0, 6, 0) | 0, M = Ct(M | 0, NA() | 0, 1, 0) | 0, V = NA() | 0) : (M = $, V = IA), mA = uA + -1 | 0, mA = er($ | 0, IA | 0, mA | 0, ((mA | 0) < 0) << 31 >> 31 | 0) | 0, mA = Ct(M | 0, V | 0, mA | 0, NA() | 0) | 0, uA = NA() | 0, IA = N, IA = Ct(mA | 0, uA | 0, E[IA >> 2] | 0, E[IA + 4 >> 2] | 0) | 0, uA = NA() | 0, mA = N, E[mA >> 2] = IA, E[mA + 4 >> 2] = uA), (DA | 0) <= (S | 0)) {
|
|
54540
54540
|
$ = 37;
|
|
54541
54541
|
break;
|
|
54542
54542
|
}
|
|
@@ -54597,15 +54597,15 @@ var Yr = (function(e) {
|
|
|
54597
54597
|
J = IA - V | 0, J = qa(7, 0, J, ((J | 0) < 0) << 31 >> 31) | 0, S = NA() | 0;
|
|
54598
54598
|
do
|
|
54599
54599
|
if (k)
|
|
54600
|
-
if (k = er(J | 0, S | 0, 5, 0) | 0, k = Ct(k | 0, NA() | 0, -5, -1) | 0, k =
|
|
54601
|
-
w = Ct(p | 0, w | 0, -1, -1) | 0, w = Fs(w | 0, NA() | 0, k | 0, R | 0) | 0, k = NA() | 0, mA = M, FA = E[mA >> 2] | 0, mA = E[mA + 4 >> 2] | 0, PA = ($ + N | 0) * 3 | 0, DA = Bt(7, 0, PA | 0) | 0, mA = mA & ~(NA() | 0), N =
|
|
54600
|
+
if (k = er(J | 0, S | 0, 5, 0) | 0, k = Ct(k | 0, NA() | 0, -5, -1) | 0, k = xr(k | 0, NA() | 0, 6, 0) | 0, R = NA() | 0, (w | 0) > (R | 0) | (w | 0) == (R | 0) & p >>> 0 > k >>> 0) {
|
|
54601
|
+
w = Ct(p | 0, w | 0, -1, -1) | 0, w = Fs(w | 0, NA() | 0, k | 0, R | 0) | 0, k = NA() | 0, mA = M, FA = E[mA >> 2] | 0, mA = E[mA + 4 >> 2] | 0, PA = ($ + N | 0) * 3 | 0, DA = Bt(7, 0, PA | 0) | 0, mA = mA & ~(NA() | 0), N = xr(w | 0, k | 0, J | 0, S | 0) | 0, p = NA() | 0, R = Ct(N | 0, p | 0, 2, 0) | 0, PA = Bt(R | 0, NA() | 0, PA | 0) | 0, mA = NA() | 0 | mA, R = M, E[R >> 2] = PA | FA & ~DA, E[R + 4 >> 2] = mA, p = er(N | 0, p | 0, J | 0, S | 0) | 0, p = Fs(w | 0, k | 0, p | 0, NA() | 0) | 0, k = 0, w = NA() | 0;
|
|
54602
54602
|
break;
|
|
54603
54603
|
} else {
|
|
54604
54604
|
PA = M, DA = E[PA >> 2] | 0, PA = E[PA + 4 >> 2] | 0, FA = Bt(7, 0, ($ + N | 0) * 3 | 0) | 0, PA = PA & ~(NA() | 0), k = M, E[k >> 2] = DA & ~FA, E[k + 4 >> 2] = PA, k = 1;
|
|
54605
54605
|
break;
|
|
54606
54606
|
}
|
|
54607
54607
|
else
|
|
54608
|
-
DA = M, R = E[DA >> 2] | 0, DA = E[DA + 4 >> 2] | 0, N = ($ + N | 0) * 3 | 0, mA = Bt(7, 0, N | 0) | 0, DA = DA & ~(NA() | 0), PA =
|
|
54608
|
+
DA = M, R = E[DA >> 2] | 0, DA = E[DA + 4 >> 2] | 0, N = ($ + N | 0) * 3 | 0, mA = Bt(7, 0, N | 0) | 0, DA = DA & ~(NA() | 0), PA = xr(p | 0, w | 0, J | 0, S | 0) | 0, k = NA() | 0, N = Bt(PA | 0, k | 0, N | 0) | 0, DA = NA() | 0 | DA, FA = M, E[FA >> 2] = N | R & ~mA, E[FA + 4 >> 2] = DA, k = er(PA | 0, k | 0, J | 0, S | 0) | 0, p = Fs(p | 0, w | 0, k | 0, NA() | 0) | 0, k = 0, w = NA() | 0;
|
|
54609
54609
|
while (!1);
|
|
54610
54610
|
if ((IA | 0) > (V | 0))
|
|
54611
54611
|
N = ~V, V = V + 1 | 0;
|
|
@@ -54620,7 +54620,7 @@ var Yr = (function(e) {
|
|
|
54620
54620
|
if ((IA | 0) < 1)
|
|
54621
54621
|
return PA = 0, vA = uA, PA | 0;
|
|
54622
54622
|
for (R = J ^ 15, k = 1; ; )
|
|
54623
|
-
if (FA = IA - k | 0, FA = qa(7, 0, FA, ((FA | 0) < 0) << 31 >> 31) | 0, PA = NA() | 0, V = M, S = E[V >> 2] | 0, V = E[V + 4 >> 2] | 0, J = (R - k | 0) * 3 | 0, N = Bt(7, 0, J | 0) | 0, V = V & ~(NA() | 0), mA =
|
|
54623
|
+
if (FA = IA - k | 0, FA = qa(7, 0, FA, ((FA | 0) < 0) << 31 >> 31) | 0, PA = NA() | 0, V = M, S = E[V >> 2] | 0, V = E[V + 4 >> 2] | 0, J = (R - k | 0) * 3 | 0, N = Bt(7, 0, J | 0) | 0, V = V & ~(NA() | 0), mA = xr(p | 0, w | 0, FA | 0, PA | 0) | 0, DA = NA() | 0, J = Bt(mA | 0, DA | 0, J | 0) | 0, V = NA() | 0 | V, $ = M, E[$ >> 2] = J | S & ~N, E[$ + 4 >> 2] = V, PA = er(mA | 0, DA | 0, FA | 0, PA | 0) | 0, p = Fs(p | 0, w | 0, PA | 0, NA() | 0) | 0, w = NA() | 0, (IA | 0) <= (k | 0)) {
|
|
54624
54624
|
w = 0;
|
|
54625
54625
|
break;
|
|
54626
54626
|
} else
|
|
@@ -54630,7 +54630,7 @@ var Yr = (function(e) {
|
|
|
54630
54630
|
function gQ(p, w, S, N) {
|
|
54631
54631
|
p = p | 0, w = w | 0, S = S | 0, N = N | 0;
|
|
54632
54632
|
var R = 0, M = 0, k = 0;
|
|
54633
|
-
R = it(w | 0, S | 0, 52) | 0, NA() | 0, R = R & 15, (w | 0) == 0 & (S | 0) == 0 | ((N | 0) > 15 | (R | 0) > (N | 0)) ? (M = -1, w = -1, S = 0, R = 0) : (w = _c(w, S, R + 1 | 0, N) | 0, k = (NA() | 0) & -15728641, S = Bt(N | 0, 0, 52) | 0, S = w | S, k = k | (NA() | 0), w = (
|
|
54633
|
+
R = it(w | 0, S | 0, 52) | 0, NA() | 0, R = R & 15, (w | 0) == 0 & (S | 0) == 0 | ((N | 0) > 15 | (R | 0) > (N | 0)) ? (M = -1, w = -1, S = 0, R = 0) : (w = _c(w, S, R + 1 | 0, N) | 0, k = (NA() | 0) & -15728641, S = Bt(N | 0, 0, 52) | 0, S = w | S, k = k | (NA() | 0), w = (pr(S, k) | 0) == 0, M = R, w = w ? -1 : N, R = k), k = p, E[k >> 2] = S, E[k + 4 >> 2] = R, E[p + 8 >> 2] = M, E[p + 12 >> 2] = w;
|
|
54634
54634
|
}
|
|
54635
54635
|
function hB(p, w, S, N) {
|
|
54636
54636
|
p = p | 0, w = w | 0, S = S | 0, N = N | 0;
|
|
@@ -54639,7 +54639,7 @@ var Yr = (function(e) {
|
|
|
54639
54639
|
S = N, E[S >> 2] = 0, E[S + 4 >> 2] = 0, E[M >> 2] = -1, E[N + 12 >> 2] = -1;
|
|
54640
54640
|
return;
|
|
54641
54641
|
}
|
|
54642
|
-
if (p = _c(p, w, R + 1 | 0, S) | 0, M = (NA() | 0) & -15728641, R = Bt(S | 0, 0, 52) | 0, R = p | R, M = M | (NA() | 0), p = N, E[p >> 2] = R, E[p + 4 >> 2] = M, p = N + 12 | 0,
|
|
54642
|
+
if (p = _c(p, w, R + 1 | 0, S) | 0, M = (NA() | 0) & -15728641, R = Bt(S | 0, 0, 52) | 0, R = p | R, M = M | (NA() | 0), p = N, E[p >> 2] = R, E[p + 4 >> 2] = M, p = N + 12 | 0, pr(R, M) | 0) {
|
|
54643
54643
|
E[p >> 2] = S;
|
|
54644
54644
|
return;
|
|
54645
54645
|
} else {
|
|
@@ -54896,9 +54896,9 @@ var Yr = (function(e) {
|
|
|
54896
54896
|
if (V = it(p | 0, w | 0, 45) | 0, NA() | 0, V = V & 127, $ = it(S | 0, N | 0, 45) | 0, NA() | 0, $ = $ & 127, V >>> 0 > 121 | $ >>> 0 > 121)
|
|
54897
54897
|
return ne = 5, vA = ye, ne | 0;
|
|
54898
54898
|
if (DA = (V | 0) != ($ | 0), DA) {
|
|
54899
|
-
if (k =
|
|
54899
|
+
if (k = Nr(V, $) | 0, (k | 0) == 7)
|
|
54900
54900
|
return ne = 1, vA = ye, ne | 0;
|
|
54901
|
-
J =
|
|
54901
|
+
J = Nr($, V) | 0, (J | 0) == 7 ? Nt(27291, 27315, 164, 27325) : (PA = k, M = J);
|
|
54902
54902
|
} else
|
|
54903
54903
|
PA = 0, M = 0;
|
|
54904
54904
|
uA = Ot(V) | 0, mA = Ot($) | 0, E[ne >> 2] = 0, E[ne + 4 >> 2] = 0, E[ne + 8 >> 2] = 0, E[ne + 12 >> 2] = 0;
|
|
@@ -55327,7 +55327,7 @@ var Yr = (function(e) {
|
|
|
55327
55327
|
break A;
|
|
55328
55328
|
}
|
|
55329
55329
|
}
|
|
55330
|
-
if (J =
|
|
55330
|
+
if (J = Nr(R, ce) | 0, (J | 0) == 7 && Nt(27291, 27315, 432, 27506), S = N, M = E[S >> 2] | 0, S = E[S + 4 >> 2] | 0, (V | 0) > 0) {
|
|
55331
55331
|
k = 0;
|
|
55332
55332
|
do
|
|
55333
55333
|
M = yg(M, S) | 0, S = NA() | 0, De = N, E[De >> 2] = M, E[De + 4 >> 2] = S, k = k + 1 | 0;
|
|
@@ -55377,7 +55377,7 @@ var Yr = (function(e) {
|
|
|
55377
55377
|
var M = 0, k = 0, J = 0, V = 0, $ = 0;
|
|
55378
55378
|
return V = vA, vA = vA + 32 | 0, k = V + 12 | 0, J = V, M = jl(p, w, p, w, k) | 0, M | 0 ? (J = M, vA = V, J | 0) : (p = jl(p, w, S, N, J) | 0, p | 0 ? (J = p, vA = V, J | 0) : (p = (E[k >> 2] | 0) - (E[J >> 2] | 0) | 0, $ = (p | 0) < 0, N = $ ? 0 - p | 0 : 0, S = N + ((E[k + 4 >> 2] | 0) - (E[J + 4 >> 2] | 0)) | 0, w = (S | 0) < 0, N = (E[k + 8 >> 2] | 0) - (E[J + 8 >> 2] | 0) + N + (w ? 0 - S | 0 : 0) | 0, M = (N | 0) < 0, k = M ? 0 : N, N = M ? N : 0, M = (w ? 0 : S) - N | 0, N = ($ ? 0 : p) - (w ? S : 0) - N | 0, J = (M | 0) < (N | 0) ? M : N, J = (k | 0) < (J | 0) ? k : J, J = (J | 0) > 0 ? J : 0, k = k - J | 0, M = M - J | 0, J = N - J | 0, J = (J | 0) > -1 ? J : 0 - J | 0, M = (M | 0) > -1 ? M : 0 - M | 0, k = (k | 0) > -1 ? k : 0 - k | 0, k = (M | 0) > (k | 0) ? M : k, k = (J | 0) > (k | 0) ? J : k, J = R, E[J >> 2] = k, E[J + 4 >> 2] = ((k | 0) < 0) << 31 >> 31, J = 0, vA = V, J | 0));
|
|
55379
55379
|
}
|
|
55380
|
-
function
|
|
55380
|
+
function yr(p, w, S, N, R) {
|
|
55381
55381
|
p = p | 0, w = w | 0, S = S | 0, N = N | 0, R = R | 0;
|
|
55382
55382
|
var M = 0, k = 0;
|
|
55383
55383
|
return k = vA, vA = vA + 16 | 0, M = k, p = eu(p, w, S, N, M) | 0, p | 0 ? (M = p, vA = k, M | 0) : (S = M, S = Ct(E[S >> 2] | 0, E[S + 4 >> 2] | 0, 1, 0) | 0, N = NA() | 0, M = R, E[M >> 2] = S, E[M + 4 >> 2] = N, M = 0, vA = k, M | 0);
|
|
@@ -55648,7 +55648,7 @@ var Yr = (function(e) {
|
|
|
55648
55648
|
S = it(S | 0, R | 0, 45) | 0, NA() | 0;
|
|
55649
55649
|
break;
|
|
55650
55650
|
}
|
|
55651
|
-
return IA = (V | 0) == 0 & (
|
|
55651
|
+
return IA = (V | 0) == 0 & (pr(S, R) | 0) != 0, IA = Bt((IA ? 2 : 1) + V | 0, 0, M | 0) | 0, $ = NA() | 0 | w & ~J, IA = IA | p & ~k, ai($ | 0), vA = uA, IA | 0;
|
|
55652
55652
|
}
|
|
55653
55653
|
while (!1);
|
|
55654
55654
|
return S = S & 127, S >>> 0 > 120 ? ($ = 0, IA = 0, ai($ | 0), vA = uA, IA | 0) : (Ol(IA, 0, S + 1 | 0, 0), $ = E[IA + 4 >> 2] | 0, IA = E[IA >> 2] | 0, ai($ | 0), vA = uA, IA | 0);
|
|
@@ -55966,7 +55966,7 @@ var Yr = (function(e) {
|
|
|
55966
55966
|
function Rw(p, w, S) {
|
|
55967
55967
|
p = p | 0, w = w | 0, S = S | 0;
|
|
55968
55968
|
var N = 0, R = 0, M = 0;
|
|
55969
|
-
if (M = vA, vA = vA + 16 | 0, R = M, N =
|
|
55969
|
+
if (M = vA, vA = vA + 16 | 0, R = M, N = pr(p, w) | 0, (S + -1 | 0) >>> 0 > 5 || (N = (N | 0) != 0, (S | 0) == 1 & N))
|
|
55970
55970
|
return R = -1, vA = M, R | 0;
|
|
55971
55971
|
do
|
|
55972
55972
|
if (sh(p, w, R) | 0)
|
|
@@ -56055,12 +56055,12 @@ var Yr = (function(e) {
|
|
|
56055
56055
|
function Da(p, w, S, N) {
|
|
56056
56056
|
p = p | 0, w = w | 0, S = S | 0, N = N | 0;
|
|
56057
56057
|
var R = 0, M = 0, k = 0, J = 0, V = 0, $ = 0, IA = 0, uA = 0, mA = 0, DA = 0, FA = 0, PA = 0, ne = 0, ye = 0, JA = 0, be = 0;
|
|
56058
|
-
if (be = vA, vA = vA + 32 | 0, JA = be + 24 | 0, ne = be + 20 | 0, FA = be + 8 | 0, DA = be + 16 | 0, mA = be, V = (
|
|
56058
|
+
if (be = vA, vA = vA + 32 | 0, JA = be + 24 | 0, ne = be + 20 | 0, FA = be + 8 | 0, DA = be + 16 | 0, mA = be, V = (pr(p, w) | 0) == 0, V = V ? 6 : 5, IA = it(p | 0, w | 0, 52) | 0, NA() | 0, IA = IA & 15, V >>> 0 <= S >>> 0)
|
|
56059
56059
|
return N = 2, vA = be, N | 0;
|
|
56060
56060
|
uA = (IA | 0) == 0, !uA && (PA = Bt(7, 0, (IA ^ 15) * 3 | 0) | 0, (PA & p | 0) == 0 & ((NA() | 0) & w | 0) == 0) ? R = S : M = 4;
|
|
56061
56061
|
A: do
|
|
56062
56062
|
if ((M | 0) == 4) {
|
|
56063
|
-
if (R = (
|
|
56063
|
+
if (R = (pr(p, w) | 0) != 0, ((R ? 4 : 5) | 0) < (S | 0) || sh(p, w, JA) | 0 || (M = (E[JA >> 2] | 0) + S | 0, R ? R = 26768 + (((M | 0) % 5 | 0) << 2) | 0 : R = 26800 + (((M | 0) % 6 | 0) << 2) | 0, PA = E[R >> 2] | 0, (PA | 0) == 7))
|
|
56064
56064
|
return N = 1, vA = be, N | 0;
|
|
56065
56065
|
E[ne >> 2] = 0, R = Ls(p, w, PA, ne, FA) | 0;
|
|
56066
56066
|
do
|
|
@@ -56068,12 +56068,12 @@ var Yr = (function(e) {
|
|
|
56068
56068
|
if (J = FA, $ = E[J >> 2] | 0, J = E[J + 4 >> 2] | 0, k = J >>> 0 < w >>> 0 | (J | 0) == (w | 0) & $ >>> 0 < p >>> 0, M = k ? $ : p, k = k ? J : w, !uA && (uA = Bt(7, 0, (IA ^ 15) * 3 | 0) | 0, ($ & uA | 0) == 0 & (J & (NA() | 0) | 0) == 0))
|
|
56069
56069
|
R = S;
|
|
56070
56070
|
else {
|
|
56071
|
-
if (J = (S + -1 + V | 0) % (V | 0) | 0, R =
|
|
56071
|
+
if (J = (S + -1 + V | 0) % (V | 0) | 0, R = pr(p, w) | 0, (J | 0) < 0 && Nt(27634, 27636, 248, 27661), V = (R | 0) != 0, ((V ? 4 : 5) | 0) < (J | 0) && Nt(27634, 27636, 248, 27661), sh(p, w, JA) | 0 && Nt(27634, 27636, 248, 27661), R = (E[JA >> 2] | 0) + J | 0, V ? R = 26768 + (((R | 0) % 5 | 0) << 2) | 0 : R = 26800 + (((R | 0) % 6 | 0) << 2) | 0, J = E[R >> 2] | 0, (J | 0) == 7 && Nt(27634, 27636, 248, 27661), E[DA >> 2] = 0, R = Ls(p, w, J, DA, mA) | 0, R | 0)
|
|
56072
56072
|
break;
|
|
56073
56073
|
$ = mA, V = E[$ >> 2] | 0, $ = E[$ + 4 >> 2] | 0;
|
|
56074
56074
|
do
|
|
56075
56075
|
if ($ >>> 0 < k >>> 0 | ($ | 0) == (k | 0) & V >>> 0 < M >>> 0) {
|
|
56076
|
-
if (
|
|
56076
|
+
if (pr(V, $) | 0 ? M = qC(V, $, p, w) | 0 : M = E[26864 + ((((E[DA >> 2] | 0) + (E[26832 + (J << 2) >> 2] | 0) | 0) % 6 | 0) << 2) >> 2] | 0, R = pr(V, $) | 0, (M + -1 | 0) >>> 0 > 5) {
|
|
56077
56077
|
R = -1, M = V, k = $;
|
|
56078
56078
|
break;
|
|
56079
56079
|
}
|
|
@@ -56099,7 +56099,7 @@ var Yr = (function(e) {
|
|
|
56099
56099
|
J = FA, $ = E[J >> 2] | 0, J = E[J + 4 >> 2] | 0;
|
|
56100
56100
|
}
|
|
56101
56101
|
if ((M | 0) == ($ | 0) & (k | 0) == (J | 0)) {
|
|
56102
|
-
if (V = (
|
|
56102
|
+
if (V = (pr($, J) | 0) != 0, V ? p = qC($, J, p, w) | 0 : p = E[26864 + ((((E[ne >> 2] | 0) + (E[26832 + (PA << 2) >> 2] | 0) | 0) % 6 | 0) << 2) >> 2] | 0, R = pr($, J) | 0, (p + -1 | 0) >>> 0 <= 5 && (ye = (R | 0) != 0, !((p | 0) == 1 & ye)))
|
|
56103
56103
|
do
|
|
56104
56104
|
if (sh($, J, JA) | 0)
|
|
56105
56105
|
R = -1;
|
|
@@ -56127,12 +56127,12 @@ var Yr = (function(e) {
|
|
|
56127
56127
|
function QB(p, w, S) {
|
|
56128
56128
|
p = p | 0, w = w | 0, S = S | 0;
|
|
56129
56129
|
var N = 0, R = 0, M = 0;
|
|
56130
|
-
return M = (
|
|
56130
|
+
return M = (pr(p, w) | 0) == 0, N = Da(p, w, 0, S) | 0, R = (N | 0) == 0, M ? !R || (N = Da(p, w, 1, S + 8 | 0) | 0, N | 0) || (N = Da(p, w, 2, S + 16 | 0) | 0, N | 0) || (N = Da(p, w, 3, S + 24 | 0) | 0, N | 0) || (N = Da(p, w, 4, S + 32 | 0) | 0, N) ? (M = N, M | 0) : Da(p, w, 5, S + 40 | 0) | 0 : !R || (N = Da(p, w, 1, S + 8 | 0) | 0, N | 0) || (N = Da(p, w, 2, S + 16 | 0) | 0, N | 0) || (N = Da(p, w, 3, S + 24 | 0) | 0, N | 0) || (N = Da(p, w, 4, S + 32 | 0) | 0, N | 0) ? (M = N, M | 0) : (M = S + 40 | 0, E[M >> 2] = 0, E[M + 4 >> 2] = 0, M = 0, M | 0);
|
|
56131
56131
|
}
|
|
56132
56132
|
function iu(p, w, S) {
|
|
56133
56133
|
p = p | 0, w = w | 0, S = S | 0;
|
|
56134
56134
|
var N = 0, R = 0, M = 0, k = 0, J = 0, V = 0;
|
|
56135
|
-
return V = vA, vA = vA + 192 | 0, R = V, M = V + 168 | 0, k = it(p | 0, w | 0, 56) | 0, NA() | 0, k = k & 7, J = w & -2130706433 | 134217728, N = nI(p, J, M) | 0, N | 0 ? (J = N, vA = V, J | 0) : (w = it(p | 0, w | 0, 52) | 0, NA() | 0, w = w & 15,
|
|
56135
|
+
return V = vA, vA = vA + 192 | 0, R = V, M = V + 168 | 0, k = it(p | 0, w | 0, 56) | 0, NA() | 0, k = k & 7, J = w & -2130706433 | 134217728, N = nI(p, J, M) | 0, N | 0 ? (J = N, vA = V, J | 0) : (w = it(p | 0, w | 0, 52) | 0, NA() | 0, w = w & 15, pr(p, J) | 0 ? zC(M, w, k, 1, R) : Mc(M, w, k, 1, R), J = R + 8 | 0, E[S >> 2] = E[J >> 2], E[S + 4 >> 2] = E[J + 4 >> 2], E[S + 8 >> 2] = E[J + 8 >> 2], E[S + 12 >> 2] = E[J + 12 >> 2], J = 0, vA = V, J | 0);
|
|
56136
56136
|
}
|
|
56137
56137
|
function nh(p, w) {
|
|
56138
56138
|
p = p | 0, w = w | 0;
|
|
@@ -57100,7 +57100,7 @@ var Yr = (function(e) {
|
|
|
57100
57100
|
}
|
|
57101
57101
|
return k = 0, R | 0 && (E[R >> 2] = p, E[R + 4 >> 2] = w), DA = (M | 0) >>> 31 | ($ | k) << 1 | (k << 1 | M >>> 31) & 0 | V, FA = (M << 1 | 0) & -2 | J, ai(DA | 0), FA | 0;
|
|
57102
57102
|
}
|
|
57103
|
-
function
|
|
57103
|
+
function xr(p, w, S, N) {
|
|
57104
57104
|
p = p | 0, w = w | 0, S = S | 0, N = N | 0;
|
|
57105
57105
|
var R = 0, M = 0, k = 0, J = 0, V = 0, $ = 0;
|
|
57106
57106
|
return $ = w >> 31 | ((w | 0) < 0 ? -1 : 0) << 1, V = ((w | 0) < 0 ? -1 : 0) >> 31 | ((w | 0) < 0 ? -1 : 0) << 1, M = N >> 31 | ((N | 0) < 0 ? -1 : 0) << 1, R = ((N | 0) < 0 ? -1 : 0) >> 31 | ((N | 0) < 0 ? -1 : 0) << 1, J = Fs($ ^ p | 0, V ^ w | 0, $ | 0, V | 0) | 0, k = NA() | 0, p = M ^ $, w = R ^ V, Fs((ou(J, k, Fs(M ^ S | 0, R ^ N | 0, M | 0, R | 0) | 0, NA() | 0, 0) | 0) ^ p | 0, (NA() | 0) ^ w | 0, p | 0, w | 0) | 0;
|
|
@@ -57210,7 +57210,7 @@ var Yr = (function(e) {
|
|
|
57210
57210
|
}
|
|
57211
57211
|
var lI = [mB, iQ, Jr, Tl];
|
|
57212
57212
|
return {
|
|
57213
|
-
___divdi3:
|
|
57213
|
+
___divdi3: xr,
|
|
57214
57214
|
___muldi3: er,
|
|
57215
57215
|
___remdi3: Wa,
|
|
57216
57216
|
___uremdi3: ko,
|
|
@@ -57265,12 +57265,12 @@ var Yr = (function(e) {
|
|
|
57265
57265
|
_gridDiskDistances: XE,
|
|
57266
57266
|
_gridDistance: eu,
|
|
57267
57267
|
_gridPathCells: s0,
|
|
57268
|
-
_gridPathCellsSize:
|
|
57268
|
+
_gridPathCellsSize: yr,
|
|
57269
57269
|
_gridRing: AQ,
|
|
57270
57270
|
_gridRingUnsafe: OC,
|
|
57271
57271
|
_i64Add: Ct,
|
|
57272
57272
|
_i64Subtract: Fs,
|
|
57273
|
-
_isPentagon:
|
|
57273
|
+
_isPentagon: pr,
|
|
57274
57274
|
_isResClassIII: xc,
|
|
57275
57275
|
_isValidCell: jC,
|
|
57276
57276
|
_isValidDirectedEdge: ma,
|
|
@@ -57322,7 +57322,7 @@ var Yr = (function(e) {
|
|
|
57322
57322
|
A._free = rt._free, A._getBaseCellNumber = rt._getBaseCellNumber, A._getDirectedEdgeDestination = rt._getDirectedEdgeDestination, A._getDirectedEdgeOrigin = rt._getDirectedEdgeOrigin, A._getHexagonAreaAvgKm2 = rt._getHexagonAreaAvgKm2, A._getHexagonAreaAvgM2 = rt._getHexagonAreaAvgM2, A._getHexagonEdgeLengthAvgKm = rt._getHexagonEdgeLengthAvgKm, A._getHexagonEdgeLengthAvgM = rt._getHexagonEdgeLengthAvgM, A._getIcosahedronFaces = rt._getIcosahedronFaces, A._getIndexDigit = rt._getIndexDigit, A._getNumCells = rt._getNumCells, A._getPentagons = rt._getPentagons, A._getRes0Cells = rt._getRes0Cells, A._getResolution = rt._getResolution, A._greatCircleDistanceKm = rt._greatCircleDistanceKm, A._greatCircleDistanceM = rt._greatCircleDistanceM, A._greatCircleDistanceRads = rt._greatCircleDistanceRads, A._gridDisk = rt._gridDisk, A._gridDiskDistances = rt._gridDiskDistances, A._gridDistance = rt._gridDistance, A._gridPathCells = rt._gridPathCells, A._gridPathCellsSize = rt._gridPathCellsSize, A._gridRing = rt._gridRing, A._gridRingUnsafe = rt._gridRingUnsafe, A._i64Add = rt._i64Add, A._i64Subtract = rt._i64Subtract, A._isPentagon = rt._isPentagon, A._isResClassIII = rt._isResClassIII, A._isValidCell = rt._isValidCell, A._isValidDirectedEdge = rt._isValidDirectedEdge, A._isValidIndex = rt._isValidIndex, A._isValidVertex = rt._isValidVertex, A._latLngToCell = rt._latLngToCell, A._llvm_ctlz_i64 = rt._llvm_ctlz_i64, A._llvm_maxnum_f64 = rt._llvm_maxnum_f64, A._llvm_minnum_f64 = rt._llvm_minnum_f64, A._llvm_round_f64 = rt._llvm_round_f64, A._localIjToCell = rt._localIjToCell, A._malloc = rt._malloc, A._maxFaceCount = rt._maxFaceCount, A._maxGridDiskSize = rt._maxGridDiskSize, A._maxPolygonToCellsSize = rt._maxPolygonToCellsSize, A._maxPolygonToCellsSizeExperimental = rt._maxPolygonToCellsSizeExperimental, A._memcpy = rt._memcpy, A._memmove = rt._memmove, A._memset = rt._memset, A._originToDirectedEdges = rt._originToDirectedEdges, A._pentagonCount = rt._pentagonCount, A._polygonToCells = rt._polygonToCells, A._polygonToCellsExperimental = rt._polygonToCellsExperimental, A._readInt64AsDoubleFromPointer = rt._readInt64AsDoubleFromPointer, A._res0CellCount = rt._res0CellCount, A._reverseDirectedEdge = rt._reverseDirectedEdge, A._round = rt._round, A._sbrk = rt._sbrk, A._sizeOfCellBoundary = rt._sizeOfCellBoundary, A._sizeOfCoordIJ = rt._sizeOfCoordIJ, A._sizeOfGeoLoop = rt._sizeOfGeoLoop, A._sizeOfGeoPolygon = rt._sizeOfGeoPolygon, A._sizeOfH3Index = rt._sizeOfH3Index, A._sizeOfLatLng = rt._sizeOfLatLng, A._sizeOfLinkedGeoPolygon = rt._sizeOfLinkedGeoPolygon, A._uncompactCells = rt._uncompactCells, A._uncompactCellsSize = rt._uncompactCellsSize, A._vertexToLatLng = rt._vertexToLatLng, A.establishStackSpace = rt.establishStackSpace;
|
|
57323
57323
|
var kA = A.stackAlloc = rt.stackAlloc, KA = A.stackRestore = rt.stackRestore, Ie = A.stackSave = rt.stackSave;
|
|
57324
57324
|
if (A.dynCall_iii = rt.dynCall_iii, A.asm = rt, A.cwrap = W, A.setValue = f, A.getValue = D, Ut) {
|
|
57325
|
-
|
|
57325
|
+
Cr(Ut) || (Ut = s(Ut));
|
|
57326
57326
|
{
|
|
57327
57327
|
Wt();
|
|
57328
57328
|
var Je = function(WA) {
|
|
@@ -71172,7 +71172,7 @@ const iae = {
|
|
|
71172
71172
|
UNSIGNED_INT: 5125,
|
|
71173
71173
|
FLOAT: 5126,
|
|
71174
71174
|
DOUBLE: 5130
|
|
71175
|
-
},
|
|
71175
|
+
}, kr = {
|
|
71176
71176
|
...iae,
|
|
71177
71177
|
...no
|
|
71178
71178
|
}, z3 = {
|
|
@@ -71313,7 +71313,7 @@ class mq {
|
|
|
71313
71313
|
hasProperty(A) {
|
|
71314
71314
|
return !!this.json[A];
|
|
71315
71315
|
}
|
|
71316
|
-
getGlobalProperty(A, t =
|
|
71316
|
+
getGlobalProperty(A, t = kr.UNSIGNED_INT, i = 1) {
|
|
71317
71317
|
const r = this.json[A];
|
|
71318
71318
|
return r && Number.isFinite(r.byteOffset) ? this._getTypedArrayFromBinary(A, t, i, 1, r.byteOffset) : r;
|
|
71319
71319
|
}
|
|
@@ -71734,7 +71734,7 @@ function MdA(e, A, t) {
|
|
|
71734
71734
|
n[o * 3] = l[0], n[o * 3 + 1] = l[1], n[o * 3 + 2] = l[2];
|
|
71735
71735
|
}
|
|
71736
71736
|
return {
|
|
71737
|
-
type:
|
|
71737
|
+
type: kr.UNSIGNED_BYTE,
|
|
71738
71738
|
value: n,
|
|
71739
71739
|
size: 3,
|
|
71740
71740
|
normalized: !0
|
|
@@ -71747,19 +71747,19 @@ function MdA(e, A, t) {
|
|
|
71747
71747
|
n[o * 3] = a[0], n[o * 3 + 1] = a[1], n[o * 3 + 2] = a[2];
|
|
71748
71748
|
}
|
|
71749
71749
|
return {
|
|
71750
|
-
type:
|
|
71750
|
+
type: kr.UNSIGNED_BYTE,
|
|
71751
71751
|
value: n,
|
|
71752
71752
|
size: 3,
|
|
71753
71753
|
normalized: !0
|
|
71754
71754
|
};
|
|
71755
71755
|
}
|
|
71756
71756
|
return A && A.length === s * 3 ? {
|
|
71757
|
-
type:
|
|
71757
|
+
type: kr.UNSIGNED_BYTE,
|
|
71758
71758
|
value: A,
|
|
71759
71759
|
size: 3,
|
|
71760
71760
|
normalized: !0
|
|
71761
71761
|
} : {
|
|
71762
|
-
type:
|
|
71762
|
+
type: kr.UNSIGNED_BYTE,
|
|
71763
71763
|
value: A || new Uint8ClampedArray(),
|
|
71764
71764
|
size: 4,
|
|
71765
71765
|
normalized: !0
|
|
@@ -71774,20 +71774,20 @@ function pae(e, A) {
|
|
|
71774
71774
|
for (let i = 0; i < (e.pointsLength || 0); i++)
|
|
71775
71775
|
aae(A[i * 2], A[i * 2 + 1], bAA), bAA.toArray(t, i * 3);
|
|
71776
71776
|
return {
|
|
71777
|
-
type:
|
|
71777
|
+
type: kr.FLOAT,
|
|
71778
71778
|
size: 2,
|
|
71779
71779
|
value: t
|
|
71780
71780
|
};
|
|
71781
71781
|
}
|
|
71782
71782
|
return {
|
|
71783
|
-
type:
|
|
71783
|
+
type: kr.FLOAT,
|
|
71784
71784
|
size: 2,
|
|
71785
71785
|
value: A
|
|
71786
71786
|
};
|
|
71787
71787
|
}
|
|
71788
71788
|
function yae(e, A, t) {
|
|
71789
71789
|
return e.isQuantized ? t["3d-tiles"] && t["3d-tiles"].decodeQuantizedPositions ? (e.isQuantized = !1, mae(e, A)) : {
|
|
71790
|
-
type:
|
|
71790
|
+
type: kr.UNSIGNED_SHORT,
|
|
71791
71791
|
value: A,
|
|
71792
71792
|
size: 3,
|
|
71793
71793
|
normalized: !0
|
|
@@ -71816,7 +71816,7 @@ function Sae(e) {
|
|
|
71816
71816
|
const A = new mq(e.featureTableJson, e.featureTableBinary), t = A.getGlobalProperty("POINTS_LENGTH");
|
|
71817
71817
|
if (!Number.isFinite(t))
|
|
71818
71818
|
throw new Error("POINTS_LENGTH must be defined");
|
|
71819
|
-
A.featuresLength = t, e.featuresLength = t, e.pointsLength = t, e.pointCount = t, e.rtcCenter = A.getGlobalProperty("RTC_CENTER",
|
|
71819
|
+
A.featuresLength = t, e.featuresLength = t, e.pointsLength = t, e.pointCount = t, e.rtcCenter = A.getGlobalProperty("RTC_CENTER", kr.FLOAT, 3);
|
|
71820
71820
|
const i = Nae(e, A);
|
|
71821
71821
|
return { featureTable: A, batchTable: i };
|
|
71822
71822
|
}
|
|
@@ -71828,12 +71828,12 @@ function bae(e, A, t) {
|
|
|
71828
71828
|
batchIds: null
|
|
71829
71829
|
}, !e.attributes.positions) {
|
|
71830
71830
|
if (A.hasProperty("POSITION"))
|
|
71831
|
-
e.attributes.positions = A.getPropertyArray("POSITION",
|
|
71831
|
+
e.attributes.positions = A.getPropertyArray("POSITION", kr.FLOAT, 3);
|
|
71832
71832
|
else if (A.hasProperty("POSITION_QUANTIZED")) {
|
|
71833
|
-
const i = A.getPropertyArray("POSITION_QUANTIZED",
|
|
71834
|
-
if (e.isQuantized = !0, e.quantizedRange = 65535, e.quantizedVolumeScale = A.getGlobalProperty("QUANTIZED_VOLUME_SCALE",
|
|
71833
|
+
const i = A.getPropertyArray("POSITION_QUANTIZED", kr.UNSIGNED_SHORT, 3);
|
|
71834
|
+
if (e.isQuantized = !0, e.quantizedRange = 65535, e.quantizedVolumeScale = A.getGlobalProperty("QUANTIZED_VOLUME_SCALE", kr.FLOAT, 3), !e.quantizedVolumeScale)
|
|
71835
71835
|
throw new Error("QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");
|
|
71836
|
-
if (e.quantizedVolumeOffset = A.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",
|
|
71836
|
+
if (e.quantizedVolumeOffset = A.getGlobalProperty("QUANTIZED_VOLUME_OFFSET", kr.FLOAT, 3), !e.quantizedVolumeOffset)
|
|
71837
71837
|
throw new Error("QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");
|
|
71838
71838
|
e.attributes.positions = yae(e, i, t);
|
|
71839
71839
|
}
|
|
@@ -71849,9 +71849,9 @@ function Rae(e, A, t) {
|
|
|
71849
71849
|
batchIds: null
|
|
71850
71850
|
}, !e.attributes.colors) {
|
|
71851
71851
|
let i = null;
|
|
71852
|
-
A.hasProperty("RGBA") ? (i = A.getPropertyArray("RGBA",
|
|
71852
|
+
A.hasProperty("RGBA") ? (i = A.getPropertyArray("RGBA", kr.UNSIGNED_BYTE, 4), e.isTranslucent = !0) : A.hasProperty("RGB") ? i = A.getPropertyArray("RGB", kr.UNSIGNED_BYTE, 3) : A.hasProperty("RGB565") && (i = A.getPropertyArray("RGB565", kr.UNSIGNED_SHORT, 1), e.isRGB565 = !0), e.attributes.colors = MdA(e, i, t);
|
|
71853
71853
|
}
|
|
71854
|
-
A.hasProperty("CONSTANT_RGBA") && (e.constantRGBA = A.getGlobalProperty("CONSTANT_RGBA",
|
|
71854
|
+
A.hasProperty("CONSTANT_RGBA") && (e.constantRGBA = A.getGlobalProperty("CONSTANT_RGBA", kr.UNSIGNED_BYTE, 4));
|
|
71855
71855
|
}
|
|
71856
71856
|
function Fae(e, A) {
|
|
71857
71857
|
if (e.attributes = e.attributes || {
|
|
@@ -71861,12 +71861,12 @@ function Fae(e, A) {
|
|
|
71861
71861
|
batchIds: null
|
|
71862
71862
|
}, !e.attributes.normals) {
|
|
71863
71863
|
let t = null;
|
|
71864
|
-
A.hasProperty("NORMAL") ? t = A.getPropertyArray("NORMAL",
|
|
71864
|
+
A.hasProperty("NORMAL") ? t = A.getPropertyArray("NORMAL", kr.FLOAT, 3) : A.hasProperty("NORMAL_OCT16P") && (t = A.getPropertyArray("NORMAL_OCT16P", kr.UNSIGNED_BYTE, 2), e.isOctEncoded16P = !0), e.attributes.normals = pae(e, t);
|
|
71865
71865
|
}
|
|
71866
71866
|
}
|
|
71867
71867
|
function Nae(e, A) {
|
|
71868
71868
|
let t = null;
|
|
71869
|
-
if (!e.batchIds && A.hasProperty("BATCH_ID") && (e.batchIds = A.getPropertyArray("BATCH_ID",
|
|
71869
|
+
if (!e.batchIds && A.hasProperty("BATCH_ID") && (e.batchIds = A.getPropertyArray("BATCH_ID", kr.UNSIGNED_SHORT, 1), e.batchIds)) {
|
|
71870
71870
|
const i = A.getGlobalProperty("BATCH_LENGTH");
|
|
71871
71871
|
if (!i)
|
|
71872
71872
|
throw new Error("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");
|
|
@@ -71978,7 +71978,7 @@ async function xae(e, A, t, i, r) {
|
|
|
71978
71978
|
function Gae(e, A, t, i, r) {
|
|
71979
71979
|
t = GG(e, A, t), t = wq(e, A, t), t = Dq(e, A, t), t = vdA(e, A, t, i);
|
|
71980
71980
|
const s = new mq(e.featureTableJson, e.featureTableBinary);
|
|
71981
|
-
return e.rtcCenter = s.getGlobalProperty("RTC_CENTER",
|
|
71981
|
+
return e.rtcCenter = s.getGlobalProperty("RTC_CENTER", kr.FLOAT, 3), t;
|
|
71982
71982
|
}
|
|
71983
71983
|
async function kae(e, A, t, i, r) {
|
|
71984
71984
|
return t = Lae(e, A, t, i), await _dA(e, e.gltfFormat || 0, i, r), t;
|
|
@@ -71993,7 +71993,7 @@ function Lae(e, A, t, i, r) {
|
|
|
71993
71993
|
const n = new mq(e.featureTableJson, e.featureTableBinary), o = n.getGlobalProperty("INSTANCES_LENGTH");
|
|
71994
71994
|
if (n.featuresLength = o, !Number.isFinite(o))
|
|
71995
71995
|
throw new Error("i3dm parser: INSTANCES_LENGTH must be defined");
|
|
71996
|
-
e.eastNorthUp = n.getGlobalProperty("EAST_NORTH_UP"), e.rtcCenter = n.getGlobalProperty("RTC_CENTER",
|
|
71996
|
+
e.eastNorthUp = n.getGlobalProperty("EAST_NORTH_UP"), e.rtcCenter = n.getGlobalProperty("RTC_CENTER", kr.FLOAT, 3);
|
|
71997
71997
|
const a = new NdA(e.batchTableJson, e.batchTableBinary, o);
|
|
71998
71998
|
return Uae(e, n, a, o), t;
|
|
71999
71999
|
}
|
|
@@ -72004,13 +72004,13 @@ function Uae(e, A, t, i) {
|
|
|
72004
72004
|
for (let G = 0; G < i; G++) {
|
|
72005
72005
|
let U;
|
|
72006
72006
|
if (A.hasProperty("POSITION"))
|
|
72007
|
-
U = A.getProperty("POSITION",
|
|
72007
|
+
U = A.getProperty("POSITION", kr.FLOAT, 3, G, s);
|
|
72008
72008
|
else if (A.hasProperty("POSITION_QUANTIZED")) {
|
|
72009
|
-
U = A.getProperty("POSITION_QUANTIZED",
|
|
72010
|
-
const nA = A.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",
|
|
72009
|
+
U = A.getProperty("POSITION_QUANTIZED", kr.UNSIGNED_SHORT, 3, G, s);
|
|
72010
|
+
const nA = A.getGlobalProperty("QUANTIZED_VOLUME_OFFSET", kr.FLOAT, 3);
|
|
72011
72011
|
if (!nA)
|
|
72012
72012
|
throw new Error("i3dm parser: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");
|
|
72013
|
-
const lA = A.getGlobalProperty("QUANTIZED_VOLUME_SCALE",
|
|
72013
|
+
const lA = A.getGlobalProperty("QUANTIZED_VOLUME_SCALE", kr.FLOAT, 3);
|
|
72014
72014
|
if (!lA)
|
|
72015
72015
|
throw new Error("i3dm parser: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");
|
|
72016
72016
|
const CA = 65535;
|
|
@@ -72019,21 +72019,21 @@ function Uae(e, A, t, i) {
|
|
|
72019
72019
|
}
|
|
72020
72020
|
if (!U)
|
|
72021
72021
|
throw new Error("i3dm: POSITION or POSITION_QUANTIZED must be defined for each instance.");
|
|
72022
|
-
if (s.copy(U), g.translation = s, e.normalUp = A.getProperty("NORMAL_UP",
|
|
72022
|
+
if (s.copy(U), g.translation = s, e.normalUp = A.getProperty("NORMAL_UP", kr.FLOAT, 3, G, C), e.normalRight = A.getProperty("NORMAL_RIGHT", kr.FLOAT, 3, G, Q), e.normalUp) {
|
|
72023
72023
|
if (!e.normalRight)
|
|
72024
72024
|
throw new Error("i3dm: Custom orientation requires both NORMAL_UP and NORMAL_RIGHT.");
|
|
72025
72025
|
e.hasCustomOrientation = !0;
|
|
72026
72026
|
} else {
|
|
72027
|
-
if (e.octNormalUp = A.getProperty("NORMAL_UP_OCT32P",
|
|
72027
|
+
if (e.octNormalUp = A.getProperty("NORMAL_UP_OCT32P", kr.UNSIGNED_SHORT, 2, G, C), e.octNormalRight = A.getProperty("NORMAL_RIGHT_OCT32P", kr.UNSIGNED_SHORT, 2, G, Q), e.octNormalUp)
|
|
72028
72028
|
throw e.octNormalRight ? new Error("i3dm: oct-encoded orientation not implemented") : new Error("i3dm: oct-encoded orientation requires NORMAL_UP_OCT32P and NORMAL_RIGHT_OCT32P");
|
|
72029
72029
|
e.eastNorthUp ? (Ds.WGS84.eastNorthUpToFixedFrame(s, l), l.getRotationMatrix3(n)) : n.identity();
|
|
72030
72030
|
}
|
|
72031
72031
|
o.fromMatrix3(n), g.rotation = o, a.set(1, 1, 1);
|
|
72032
|
-
const Y = A.getProperty("SCALE",
|
|
72032
|
+
const Y = A.getProperty("SCALE", kr.FLOAT, 1, G, f);
|
|
72033
72033
|
Number.isFinite(Y) && a.multiplyByScalar(Y);
|
|
72034
|
-
const O = A.getProperty("SCALE_NON_UNIFORM",
|
|
72034
|
+
const O = A.getProperty("SCALE_NON_UNIFORM", kr.FLOAT, 3, G, C);
|
|
72035
72035
|
O && a.scale(O), g.scale = a;
|
|
72036
|
-
let W = A.getProperty("BATCH_ID",
|
|
72036
|
+
let W = A.getProperty("BATCH_ID", kr.UNSIGNED_SHORT, 1, G, D);
|
|
72037
72037
|
W === void 0 && (W = G);
|
|
72038
72038
|
const AA = new $t().fromQuaternion(g.rotation);
|
|
72039
72039
|
l.identity(), l.translate(g.translation), l.multiplyRight(AA), l.scale(g.scale);
|
|
@@ -82736,42 +82736,42 @@ function zh(e, A) {
|
|
|
82736
82736
|
function fE(e, A) {
|
|
82737
82737
|
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Zhe.test(String.fromCharCode(e)) : A === !1 ? !1 : WJ(e, A0A) || WJ(e, Whe);
|
|
82738
82738
|
}
|
|
82739
|
-
var
|
|
82739
|
+
var Gr = function(A, t) {
|
|
82740
82740
|
t === void 0 && (t = {}), this.label = A, this.keyword = t.keyword, this.beforeExpr = !!t.beforeExpr, this.startsExpr = !!t.startsExpr, this.isLoop = !!t.isLoop, this.isAssign = !!t.isAssign, this.prefix = !!t.prefix, this.postfix = !!t.postfix, this.binop = t.binop || null, this.updateContext = null;
|
|
82741
82741
|
};
|
|
82742
82742
|
function OI(e, A) {
|
|
82743
|
-
return new
|
|
82743
|
+
return new Gr(e, { beforeExpr: !0, binop: A });
|
|
82744
82744
|
}
|
|
82745
82745
|
var qI = { beforeExpr: !0 }, xg = { startsExpr: !0 }, Wq = {};
|
|
82746
|
-
function
|
|
82747
|
-
return A === void 0 && (A = {}), A.keyword = e, Wq[e] = new
|
|
82746
|
+
function Dr(e, A) {
|
|
82747
|
+
return A === void 0 && (A = {}), A.keyword = e, Wq[e] = new Gr(e, A);
|
|
82748
82748
|
}
|
|
82749
82749
|
var TA = {
|
|
82750
|
-
num: new
|
|
82751
|
-
regexp: new
|
|
82752
|
-
string: new
|
|
82753
|
-
name: new
|
|
82754
|
-
privateId: new
|
|
82755
|
-
eof: new
|
|
82750
|
+
num: new Gr("num", xg),
|
|
82751
|
+
regexp: new Gr("regexp", xg),
|
|
82752
|
+
string: new Gr("string", xg),
|
|
82753
|
+
name: new Gr("name", xg),
|
|
82754
|
+
privateId: new Gr("privateId", xg),
|
|
82755
|
+
eof: new Gr("eof"),
|
|
82756
82756
|
// Punctuation token types.
|
|
82757
|
-
bracketL: new
|
|
82758
|
-
bracketR: new
|
|
82759
|
-
braceL: new
|
|
82760
|
-
braceR: new
|
|
82761
|
-
parenL: new
|
|
82762
|
-
parenR: new
|
|
82763
|
-
comma: new
|
|
82764
|
-
semi: new
|
|
82765
|
-
colon: new
|
|
82766
|
-
dot: new
|
|
82767
|
-
question: new
|
|
82768
|
-
questionDot: new
|
|
82769
|
-
arrow: new
|
|
82770
|
-
template: new
|
|
82771
|
-
invalidTemplate: new
|
|
82772
|
-
ellipsis: new
|
|
82773
|
-
backQuote: new
|
|
82774
|
-
dollarBraceL: new
|
|
82757
|
+
bracketL: new Gr("[", { beforeExpr: !0, startsExpr: !0 }),
|
|
82758
|
+
bracketR: new Gr("]"),
|
|
82759
|
+
braceL: new Gr("{", { beforeExpr: !0, startsExpr: !0 }),
|
|
82760
|
+
braceR: new Gr("}"),
|
|
82761
|
+
parenL: new Gr("(", { beforeExpr: !0, startsExpr: !0 }),
|
|
82762
|
+
parenR: new Gr(")"),
|
|
82763
|
+
comma: new Gr(",", qI),
|
|
82764
|
+
semi: new Gr(";", qI),
|
|
82765
|
+
colon: new Gr(":", qI),
|
|
82766
|
+
dot: new Gr("."),
|
|
82767
|
+
question: new Gr("?", qI),
|
|
82768
|
+
questionDot: new Gr("?."),
|
|
82769
|
+
arrow: new Gr("=>", qI),
|
|
82770
|
+
template: new Gr("template"),
|
|
82771
|
+
invalidTemplate: new Gr("invalidTemplate"),
|
|
82772
|
+
ellipsis: new Gr("...", qI),
|
|
82773
|
+
backQuote: new Gr("`", xg),
|
|
82774
|
+
dollarBraceL: new Gr("${", { beforeExpr: !0, startsExpr: !0 }),
|
|
82775
82775
|
// Operators. These carry several kinds of properties to help the
|
|
82776
82776
|
// parser use them properly (the presence of these properties is
|
|
82777
82777
|
// what categorizes them as operators).
|
|
@@ -82785,10 +82785,10 @@ var TA = {
|
|
|
82785
82785
|
// `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
|
|
82786
82786
|
// binary operators with a very low precedence, that should result
|
|
82787
82787
|
// in AssignmentExpression nodes.
|
|
82788
|
-
eq: new
|
|
82789
|
-
assign: new
|
|
82790
|
-
incDec: new
|
|
82791
|
-
prefix: new
|
|
82788
|
+
eq: new Gr("=", { beforeExpr: !0, isAssign: !0 }),
|
|
82789
|
+
assign: new Gr("_=", { beforeExpr: !0, isAssign: !0 }),
|
|
82790
|
+
incDec: new Gr("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
|
|
82791
|
+
prefix: new Gr("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
82792
82792
|
logicalOR: OI("||", 1),
|
|
82793
82793
|
logicalAND: OI("&&", 2),
|
|
82794
82794
|
bitwiseOR: OI("|", 3),
|
|
@@ -82797,48 +82797,48 @@ var TA = {
|
|
|
82797
82797
|
equality: OI("==/!=/===/!==", 6),
|
|
82798
82798
|
relational: OI("</>/<=/>=", 7),
|
|
82799
82799
|
bitShift: OI("<</>>/>>>", 8),
|
|
82800
|
-
plusMin: new
|
|
82800
|
+
plusMin: new Gr("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
|
|
82801
82801
|
modulo: OI("%", 10),
|
|
82802
82802
|
star: OI("*", 10),
|
|
82803
82803
|
slash: OI("/", 10),
|
|
82804
|
-
starstar: new
|
|
82804
|
+
starstar: new Gr("**", { beforeExpr: !0 }),
|
|
82805
82805
|
coalesce: OI("??", 1),
|
|
82806
82806
|
// Keyword token types.
|
|
82807
|
-
_break:
|
|
82808
|
-
_case:
|
|
82809
|
-
_catch:
|
|
82810
|
-
_continue:
|
|
82811
|
-
_debugger:
|
|
82812
|
-
_default:
|
|
82813
|
-
_do:
|
|
82814
|
-
_else:
|
|
82815
|
-
_finally:
|
|
82816
|
-
_for:
|
|
82817
|
-
_function:
|
|
82818
|
-
_if:
|
|
82819
|
-
_return:
|
|
82820
|
-
_switch:
|
|
82821
|
-
_throw:
|
|
82822
|
-
_try:
|
|
82823
|
-
_var:
|
|
82824
|
-
_const:
|
|
82825
|
-
_while:
|
|
82826
|
-
_with:
|
|
82827
|
-
_new:
|
|
82828
|
-
_this:
|
|
82829
|
-
_super:
|
|
82830
|
-
_class:
|
|
82831
|
-
_extends:
|
|
82832
|
-
_export:
|
|
82833
|
-
_import:
|
|
82834
|
-
_null:
|
|
82835
|
-
_true:
|
|
82836
|
-
_false:
|
|
82837
|
-
_in:
|
|
82838
|
-
_instanceof:
|
|
82839
|
-
_typeof:
|
|
82840
|
-
_void:
|
|
82841
|
-
_delete:
|
|
82807
|
+
_break: Dr("break"),
|
|
82808
|
+
_case: Dr("case", qI),
|
|
82809
|
+
_catch: Dr("catch"),
|
|
82810
|
+
_continue: Dr("continue"),
|
|
82811
|
+
_debugger: Dr("debugger"),
|
|
82812
|
+
_default: Dr("default", qI),
|
|
82813
|
+
_do: Dr("do", { isLoop: !0, beforeExpr: !0 }),
|
|
82814
|
+
_else: Dr("else", qI),
|
|
82815
|
+
_finally: Dr("finally"),
|
|
82816
|
+
_for: Dr("for", { isLoop: !0 }),
|
|
82817
|
+
_function: Dr("function", xg),
|
|
82818
|
+
_if: Dr("if"),
|
|
82819
|
+
_return: Dr("return", qI),
|
|
82820
|
+
_switch: Dr("switch"),
|
|
82821
|
+
_throw: Dr("throw", qI),
|
|
82822
|
+
_try: Dr("try"),
|
|
82823
|
+
_var: Dr("var"),
|
|
82824
|
+
_const: Dr("const"),
|
|
82825
|
+
_while: Dr("while", { isLoop: !0 }),
|
|
82826
|
+
_with: Dr("with"),
|
|
82827
|
+
_new: Dr("new", { beforeExpr: !0, startsExpr: !0 }),
|
|
82828
|
+
_this: Dr("this", xg),
|
|
82829
|
+
_super: Dr("super", xg),
|
|
82830
|
+
_class: Dr("class", xg),
|
|
82831
|
+
_extends: Dr("extends", qI),
|
|
82832
|
+
_export: Dr("export"),
|
|
82833
|
+
_import: Dr("import", xg),
|
|
82834
|
+
_null: Dr("null", xg),
|
|
82835
|
+
_true: Dr("true", xg),
|
|
82836
|
+
_false: Dr("false", xg),
|
|
82837
|
+
_in: Dr("in", { beforeExpr: !0, binop: 7 }),
|
|
82838
|
+
_instanceof: Dr("instanceof", { beforeExpr: !0, binop: 7 }),
|
|
82839
|
+
_typeof: Dr("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
82840
|
+
_void: Dr("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
82841
|
+
_delete: Dr("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
82842
82842
|
}, jg = /\r\n?|\n|\u2028|\u2029/, Xhe = new RegExp(jg.source, "g");
|
|
82843
82843
|
function ow(e) {
|
|
82844
82844
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
@@ -85347,14 +85347,14 @@ si.regexp_eatFixedHexDigits = function(e, A) {
|
|
|
85347
85347
|
};
|
|
85348
85348
|
var $q = function(A) {
|
|
85349
85349
|
this.type = A.type, this.value = A.value, this.start = A.start, this.end = A.end, A.options.locations && (this.loc = new qG(A, A.startLoc, A.endLoc)), A.options.ranges && (this.range = [A.start, A.end]);
|
|
85350
|
-
},
|
|
85351
|
-
|
|
85350
|
+
}, fr = co.prototype;
|
|
85351
|
+
fr.next = function(e) {
|
|
85352
85352
|
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new $q(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
85353
85353
|
};
|
|
85354
|
-
|
|
85354
|
+
fr.getToken = function() {
|
|
85355
85355
|
return this.next(), new $q(this);
|
|
85356
85356
|
};
|
|
85357
|
-
typeof Symbol < "u" && (
|
|
85357
|
+
typeof Symbol < "u" && (fr[Symbol.iterator] = function() {
|
|
85358
85358
|
var e = this;
|
|
85359
85359
|
return {
|
|
85360
85360
|
next: function() {
|
|
@@ -85366,7 +85366,7 @@ typeof Symbol < "u" && (dr[Symbol.iterator] = function() {
|
|
|
85366
85366
|
}
|
|
85367
85367
|
};
|
|
85368
85368
|
});
|
|
85369
|
-
|
|
85369
|
+
fr.nextToken = function() {
|
|
85370
85370
|
var e = this.curContext();
|
|
85371
85371
|
if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
|
|
85372
85372
|
return this.finishToken(TA.eof);
|
|
@@ -85374,20 +85374,20 @@ dr.nextToken = function() {
|
|
|
85374
85374
|
return e.override(this);
|
|
85375
85375
|
this.readToken(this.fullCharCodeAtPos());
|
|
85376
85376
|
};
|
|
85377
|
-
|
|
85377
|
+
fr.readToken = function(e) {
|
|
85378
85378
|
return zh(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
85379
85379
|
};
|
|
85380
|
-
|
|
85380
|
+
fr.fullCharCodeAt = function(e) {
|
|
85381
85381
|
var A = this.input.charCodeAt(e);
|
|
85382
85382
|
if (A <= 55295 || A >= 56320)
|
|
85383
85383
|
return A;
|
|
85384
85384
|
var t = this.input.charCodeAt(e + 1);
|
|
85385
85385
|
return t <= 56319 || t >= 57344 ? A : (A << 10) + t - 56613888;
|
|
85386
85386
|
};
|
|
85387
|
-
|
|
85387
|
+
fr.fullCharCodeAtPos = function() {
|
|
85388
85388
|
return this.fullCharCodeAt(this.pos);
|
|
85389
85389
|
};
|
|
85390
|
-
|
|
85390
|
+
fr.skipBlockComment = function() {
|
|
85391
85391
|
var e = this.options.onComment && this.curPosition(), A = this.pos, t = this.input.indexOf("*/", this.pos += 2);
|
|
85392
85392
|
if (t === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = t + 2, this.options.locations)
|
|
85393
85393
|
for (var i = void 0, r = A; (i = i0A(this.input, r, this.pos)) > -1; )
|
|
@@ -85401,7 +85401,7 @@ dr.skipBlockComment = function() {
|
|
|
85401
85401
|
this.curPosition()
|
|
85402
85402
|
);
|
|
85403
85403
|
};
|
|
85404
|
-
|
|
85404
|
+
fr.skipLineComment = function(e) {
|
|
85405
85405
|
for (var A = this.pos, t = this.options.onComment && this.curPosition(), i = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !ow(i); )
|
|
85406
85406
|
i = this.input.charCodeAt(++this.pos);
|
|
85407
85407
|
this.options.onComment && this.options.onComment(
|
|
@@ -85413,7 +85413,7 @@ dr.skipLineComment = function(e) {
|
|
|
85413
85413
|
this.curPosition()
|
|
85414
85414
|
);
|
|
85415
85415
|
};
|
|
85416
|
-
|
|
85416
|
+
fr.skipSpace = function() {
|
|
85417
85417
|
A: for (; this.pos < this.input.length; ) {
|
|
85418
85418
|
var e = this.input.charCodeAt(this.pos);
|
|
85419
85419
|
switch (e) {
|
|
@@ -85448,27 +85448,27 @@ dr.skipSpace = function() {
|
|
|
85448
85448
|
}
|
|
85449
85449
|
}
|
|
85450
85450
|
};
|
|
85451
|
-
|
|
85451
|
+
fr.finishToken = function(e, A) {
|
|
85452
85452
|
this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
|
|
85453
85453
|
var t = this.type;
|
|
85454
85454
|
this.type = e, this.value = A, this.updateContext(t);
|
|
85455
85455
|
};
|
|
85456
|
-
|
|
85456
|
+
fr.readToken_dot = function() {
|
|
85457
85457
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
85458
85458
|
if (e >= 48 && e <= 57)
|
|
85459
85459
|
return this.readNumber(!0);
|
|
85460
85460
|
var A = this.input.charCodeAt(this.pos + 2);
|
|
85461
85461
|
return this.options.ecmaVersion >= 6 && e === 46 && A === 46 ? (this.pos += 3, this.finishToken(TA.ellipsis)) : (++this.pos, this.finishToken(TA.dot));
|
|
85462
85462
|
};
|
|
85463
|
-
|
|
85463
|
+
fr.readToken_slash = function() {
|
|
85464
85464
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
85465
85465
|
return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(TA.assign, 2) : this.finishOp(TA.slash, 1);
|
|
85466
85466
|
};
|
|
85467
|
-
|
|
85467
|
+
fr.readToken_mult_modulo_exp = function(e) {
|
|
85468
85468
|
var A = this.input.charCodeAt(this.pos + 1), t = 1, i = e === 42 ? TA.star : TA.modulo;
|
|
85469
85469
|
return this.options.ecmaVersion >= 7 && e === 42 && A === 42 && (++t, i = TA.starstar, A = this.input.charCodeAt(this.pos + 2)), A === 61 ? this.finishOp(TA.assign, t + 1) : this.finishOp(i, t);
|
|
85470
85470
|
};
|
|
85471
|
-
|
|
85471
|
+
fr.readToken_pipe_amp = function(e) {
|
|
85472
85472
|
var A = this.input.charCodeAt(this.pos + 1);
|
|
85473
85473
|
if (A === e) {
|
|
85474
85474
|
if (this.options.ecmaVersion >= 12) {
|
|
@@ -85480,23 +85480,23 @@ dr.readToken_pipe_amp = function(e) {
|
|
|
85480
85480
|
}
|
|
85481
85481
|
return A === 61 ? this.finishOp(TA.assign, 2) : this.finishOp(e === 124 ? TA.bitwiseOR : TA.bitwiseAND, 1);
|
|
85482
85482
|
};
|
|
85483
|
-
|
|
85483
|
+
fr.readToken_caret = function() {
|
|
85484
85484
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
85485
85485
|
return e === 61 ? this.finishOp(TA.assign, 2) : this.finishOp(TA.bitwiseXOR, 1);
|
|
85486
85486
|
};
|
|
85487
|
-
|
|
85487
|
+
fr.readToken_plus_min = function(e) {
|
|
85488
85488
|
var A = this.input.charCodeAt(this.pos + 1);
|
|
85489
85489
|
return A === e ? A === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || jg.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(TA.incDec, 2) : A === 61 ? this.finishOp(TA.assign, 2) : this.finishOp(TA.plusMin, 1);
|
|
85490
85490
|
};
|
|
85491
|
-
|
|
85491
|
+
fr.readToken_lt_gt = function(e) {
|
|
85492
85492
|
var A = this.input.charCodeAt(this.pos + 1), t = 1;
|
|
85493
85493
|
return A === e ? (t = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + t) === 61 ? this.finishOp(TA.assign, t + 1) : this.finishOp(TA.bitShift, t)) : A === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (A === 61 && (t = 2), this.finishOp(TA.relational, t));
|
|
85494
85494
|
};
|
|
85495
|
-
|
|
85495
|
+
fr.readToken_eq_excl = function(e) {
|
|
85496
85496
|
var A = this.input.charCodeAt(this.pos + 1);
|
|
85497
85497
|
return A === 61 ? this.finishOp(TA.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && A === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(TA.arrow)) : this.finishOp(e === 61 ? TA.eq : TA.prefix, 1);
|
|
85498
85498
|
};
|
|
85499
|
-
|
|
85499
|
+
fr.readToken_question = function() {
|
|
85500
85500
|
var e = this.options.ecmaVersion;
|
|
85501
85501
|
if (e >= 11) {
|
|
85502
85502
|
var A = this.input.charCodeAt(this.pos + 1);
|
|
@@ -85516,13 +85516,13 @@ dr.readToken_question = function() {
|
|
|
85516
85516
|
}
|
|
85517
85517
|
return this.finishOp(TA.question, 1);
|
|
85518
85518
|
};
|
|
85519
|
-
|
|
85519
|
+
fr.readToken_numberSign = function() {
|
|
85520
85520
|
var e = this.options.ecmaVersion, A = 35;
|
|
85521
85521
|
if (e >= 13 && (++this.pos, A = this.fullCharCodeAtPos(), zh(A, !0) || A === 92))
|
|
85522
85522
|
return this.finishToken(TA.privateId, this.readWord1());
|
|
85523
85523
|
this.raise(this.pos, "Unexpected character '" + yC(A) + "'");
|
|
85524
85524
|
};
|
|
85525
|
-
|
|
85525
|
+
fr.getTokenFromCode = function(e) {
|
|
85526
85526
|
switch (e) {
|
|
85527
85527
|
// The interpretation of a dot depends on whether it is followed
|
|
85528
85528
|
// by a digit or another two dots.
|
|
@@ -85609,11 +85609,11 @@ dr.getTokenFromCode = function(e) {
|
|
|
85609
85609
|
}
|
|
85610
85610
|
this.raise(this.pos, "Unexpected character '" + yC(e) + "'");
|
|
85611
85611
|
};
|
|
85612
|
-
|
|
85612
|
+
fr.finishOp = function(e, A) {
|
|
85613
85613
|
var t = this.input.slice(this.pos, this.pos + A);
|
|
85614
85614
|
return this.pos += A, this.finishToken(e, t);
|
|
85615
85615
|
};
|
|
85616
|
-
|
|
85616
|
+
fr.readRegexp = function() {
|
|
85617
85617
|
for (var e, A, t = this.pos; ; ) {
|
|
85618
85618
|
this.pos >= this.input.length && this.raise(t, "Unterminated regular expression");
|
|
85619
85619
|
var i = this.input.charAt(this.pos);
|
|
@@ -85643,7 +85643,7 @@ dr.readRegexp = function() {
|
|
|
85643
85643
|
}
|
|
85644
85644
|
return this.finishToken(TA.regexp, { pattern: r, flags: n, value: a });
|
|
85645
85645
|
};
|
|
85646
|
-
|
|
85646
|
+
fr.readInt = function(e, A, t) {
|
|
85647
85647
|
for (var i = this.options.ecmaVersion >= 12 && A === void 0, r = t && this.input.charCodeAt(this.pos) === 48, s = this.pos, n = 0, o = 0, a = 0, g = A ?? 1 / 0; a < g; ++a, ++this.pos) {
|
|
85648
85648
|
var l = this.input.charCodeAt(this.pos), C = void 0;
|
|
85649
85649
|
if (i && l === 95) {
|
|
@@ -85662,13 +85662,13 @@ function FBe(e, A) {
|
|
|
85662
85662
|
function G0A(e) {
|
|
85663
85663
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
85664
85664
|
}
|
|
85665
|
-
|
|
85665
|
+
fr.readRadixNumber = function(e) {
|
|
85666
85666
|
var A = this.pos;
|
|
85667
85667
|
this.pos += 2;
|
|
85668
85668
|
var t = this.readInt(e);
|
|
85669
85669
|
return t == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (t = G0A(this.input.slice(A, this.pos)), ++this.pos) : zh(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(TA.num, t);
|
|
85670
85670
|
};
|
|
85671
|
-
|
|
85671
|
+
fr.readNumber = function(e) {
|
|
85672
85672
|
var A = this.pos;
|
|
85673
85673
|
!e && this.readInt(10, void 0, !0) === null && this.raise(A, "Invalid number");
|
|
85674
85674
|
var t = this.pos - A >= 2 && this.input.charCodeAt(A) === 48;
|
|
@@ -85682,7 +85682,7 @@ dr.readNumber = function(e) {
|
|
|
85682
85682
|
var s = FBe(this.input.slice(A, this.pos), t);
|
|
85683
85683
|
return this.finishToken(TA.num, s);
|
|
85684
85684
|
};
|
|
85685
|
-
|
|
85685
|
+
fr.readCodePoint = function() {
|
|
85686
85686
|
var e = this.input.charCodeAt(this.pos), A;
|
|
85687
85687
|
if (e === 123) {
|
|
85688
85688
|
this.options.ecmaVersion < 6 && this.unexpected();
|
|
@@ -85692,7 +85692,7 @@ dr.readCodePoint = function() {
|
|
|
85692
85692
|
A = this.readHexChar(4);
|
|
85693
85693
|
return A;
|
|
85694
85694
|
};
|
|
85695
|
-
|
|
85695
|
+
fr.readString = function(e) {
|
|
85696
85696
|
for (var A = "", t = ++this.pos; ; ) {
|
|
85697
85697
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
|
|
85698
85698
|
var i = this.input.charCodeAt(this.pos);
|
|
@@ -85703,7 +85703,7 @@ dr.readString = function(e) {
|
|
|
85703
85703
|
return A += this.input.slice(t, this.pos++), this.finishToken(TA.string, A);
|
|
85704
85704
|
};
|
|
85705
85705
|
var k0A = {};
|
|
85706
|
-
|
|
85706
|
+
fr.tryReadTemplateToken = function() {
|
|
85707
85707
|
this.inTemplateElement = !0;
|
|
85708
85708
|
try {
|
|
85709
85709
|
this.readTmplToken();
|
|
@@ -85715,12 +85715,12 @@ dr.tryReadTemplateToken = function() {
|
|
|
85715
85715
|
}
|
|
85716
85716
|
this.inTemplateElement = !1;
|
|
85717
85717
|
};
|
|
85718
|
-
|
|
85718
|
+
fr.invalidStringToken = function(e, A) {
|
|
85719
85719
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
85720
85720
|
throw k0A;
|
|
85721
85721
|
this.raise(e, A);
|
|
85722
85722
|
};
|
|
85723
|
-
|
|
85723
|
+
fr.readTmplToken = function() {
|
|
85724
85724
|
for (var e = "", A = this.pos; ; ) {
|
|
85725
85725
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
|
|
85726
85726
|
var t = this.input.charCodeAt(this.pos);
|
|
@@ -85745,7 +85745,7 @@ dr.readTmplToken = function() {
|
|
|
85745
85745
|
++this.pos;
|
|
85746
85746
|
}
|
|
85747
85747
|
};
|
|
85748
|
-
|
|
85748
|
+
fr.readInvalidTemplateToken = function() {
|
|
85749
85749
|
for (; this.pos < this.input.length; this.pos++)
|
|
85750
85750
|
switch (this.input[this.pos]) {
|
|
85751
85751
|
case "\\":
|
|
@@ -85770,7 +85770,7 @@ dr.readInvalidTemplateToken = function() {
|
|
|
85770
85770
|
}
|
|
85771
85771
|
this.raise(this.start, "Unterminated template");
|
|
85772
85772
|
};
|
|
85773
|
-
|
|
85773
|
+
fr.readEscapedChar = function(e) {
|
|
85774
85774
|
var A = this.input.charCodeAt(++this.pos);
|
|
85775
85775
|
switch (++this.pos, A) {
|
|
85776
85776
|
case 110:
|
|
@@ -85826,11 +85826,11 @@ dr.readEscapedChar = function(e) {
|
|
|
85826
85826
|
return ow(A) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(A);
|
|
85827
85827
|
}
|
|
85828
85828
|
};
|
|
85829
|
-
|
|
85829
|
+
fr.readHexChar = function(e) {
|
|
85830
85830
|
var A = this.pos, t = this.readInt(16, e);
|
|
85831
85831
|
return t === null && this.invalidStringToken(A, "Bad character escape sequence"), t;
|
|
85832
85832
|
};
|
|
85833
|
-
|
|
85833
|
+
fr.readWord1 = function() {
|
|
85834
85834
|
this.containsEsc = !1;
|
|
85835
85835
|
for (var e = "", A = !0, t = this.pos, i = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
85836
85836
|
var r = this.fullCharCodeAtPos();
|
|
@@ -85848,7 +85848,7 @@ dr.readWord1 = function() {
|
|
|
85848
85848
|
}
|
|
85849
85849
|
return e + this.input.slice(t, this.pos);
|
|
85850
85850
|
};
|
|
85851
|
-
|
|
85851
|
+
fr.readWord = function() {
|
|
85852
85852
|
var e = this.readWord1(), A = TA.name;
|
|
85853
85853
|
return this.keywords.test(e) && (A = Wq[e]), this.finishToken(A, e);
|
|
85854
85854
|
};
|
|
@@ -85861,7 +85861,7 @@ co.acorn = {
|
|
|
85861
85861
|
SourceLocation: qG,
|
|
85862
85862
|
getLineInfo: n0A,
|
|
85863
85863
|
Node: jG,
|
|
85864
|
-
TokenType:
|
|
85864
|
+
TokenType: Gr,
|
|
85865
85865
|
tokTypes: TA,
|
|
85866
85866
|
keywordTypes: Wq,
|
|
85867
85867
|
TokContext: el,
|
|
@@ -91135,8 +91135,8 @@ function Ede(e, A, t, i) {
|
|
|
91135
91135
|
for (let xe = 0; xe < i.length; xe++) i[xe] > g && (g = i[xe]);
|
|
91136
91136
|
const l = g > 65535, C = a ? l ? new Uint32Array(r * 3) : new Uint16Array(r * 3) : void 0, Q = new Uint32Array(r * 3);
|
|
91137
91137
|
for (let xe = 0; xe < r; xe++) {
|
|
91138
|
-
const fe = A[xe * 3], He = A[xe * 3 + 1], Re = A[xe * 3 + 2], Qe = e[fe * 3], Ge = e[fe * 3 + 1], we = e[fe * 3 + 2], We = e[He * 3], nt = e[He * 3 + 1], ze = e[He * 3 + 2], at = e[Re * 3], Tt = e[Re * 3 + 1], Ai = e[Re * 3 + 2], Wt = We - Qe, Ui = nt - Ge, Ut = ze - we, ei = at - Qe,
|
|
91139
|
-
let rr = Ui * vi - Ut *
|
|
91138
|
+
const fe = A[xe * 3], He = A[xe * 3 + 1], Re = A[xe * 3 + 2], Qe = e[fe * 3], Ge = e[fe * 3 + 1], we = e[fe * 3 + 2], We = e[He * 3], nt = e[He * 3 + 1], ze = e[He * 3 + 2], at = e[Re * 3], Tt = e[Re * 3 + 1], Ai = e[Re * 3 + 2], Wt = We - Qe, Ui = nt - Ge, Ut = ze - we, ei = at - Qe, Cr = Tt - Ge, vi = Ai - we;
|
|
91139
|
+
let rr = Ui * vi - Ut * Cr, Pr = Ut * ei - Wt * vi, es = Wt * Cr - Ui * ei;
|
|
91140
91140
|
const os = Math.hypot(rr, Pr, es) || 1;
|
|
91141
91141
|
rr /= os, Pr /= os, es /= os;
|
|
91142
91142
|
const Qs = xe * 9;
|
|
@@ -91680,30 +91680,30 @@ const k6 = `
|
|
|
91680
91680
|
.omni-legend-field { font-size: 10px; color: var(--om-widget-muted, #6b7280); margin-bottom: 2px; }
|
|
91681
91681
|
.omni-legend-entry .omni-swatch-cluster { border-radius: 50%; width: 12px; height: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 7px; font-weight: 700; line-height: 1; }
|
|
91682
91682
|
`;
|
|
91683
|
-
function kde(e) {
|
|
91683
|
+
function kde(e, A) {
|
|
91684
91684
|
return `
|
|
91685
|
-
<div class="omni-legend-sub">
|
|
91686
|
-
<div class="omni-legend-entry"><span class="omni-swatch omni-swatch-cluster" style="background:${
|
|
91685
|
+
<div class="omni-legend-sub" data-layer="${Br(A)}">
|
|
91686
|
+
<div class="omni-legend-entry"><span class="omni-swatch omni-swatch-cluster" style="background:${Br(e)}">n</span><span>n points, clustered — click to expand</span></div>
|
|
91687
91687
|
</div>`;
|
|
91688
91688
|
}
|
|
91689
|
-
function Lde(e) {
|
|
91689
|
+
function Lde(e, A) {
|
|
91690
91690
|
if (e.kind === "ramp") {
|
|
91691
|
-
const
|
|
91691
|
+
const r = `linear-gradient(to right, ${e.colors.map(Br).join(", ")})`;
|
|
91692
91692
|
return `
|
|
91693
|
-
<div class="omni-legend-sub">
|
|
91694
|
-
<div class="omni-legend-field">${
|
|
91695
|
-
<div class="omni-legend-ramp" style="background:${
|
|
91696
|
-
<div class="omni-legend-ramp-labels"><span>${
|
|
91693
|
+
<div class="omni-legend-sub" data-layer="${Br(A)}">
|
|
91694
|
+
<div class="omni-legend-field">${Br(e.field)}</div>
|
|
91695
|
+
<div class="omni-legend-ramp" style="background:${r}"></div>
|
|
91696
|
+
<div class="omni-legend-ramp-labels"><span>${Br(e.domain[0].toLocaleString("en-US"))}</span><span>${Br(e.domain[1].toLocaleString("en-US"))}</span></div>
|
|
91697
91697
|
</div>`;
|
|
91698
91698
|
}
|
|
91699
|
-
const
|
|
91700
|
-
(
|
|
91701
|
-
<div class="omni-legend-entry"><span class="omni-swatch" style="background:${
|
|
91702
|
-
).join(""),
|
|
91703
|
-
<div class="omni-legend-entry"><span class="omni-swatch" style="background:${
|
|
91699
|
+
const t = e.entries.map(
|
|
91700
|
+
(r) => `
|
|
91701
|
+
<div class="omni-legend-entry"><span class="omni-swatch" style="background:${Br(r.color)}"></span><span>${Br(r.label)}</span></div>`
|
|
91702
|
+
).join(""), i = e.kind === "categories" && e.defaultColor ? `
|
|
91703
|
+
<div class="omni-legend-entry"><span class="omni-swatch" style="background:${Br(e.defaultColor)}"></span><span>other</span></div>` : "";
|
|
91704
91704
|
return `
|
|
91705
|
-
<div class="omni-legend-sub">
|
|
91706
|
-
<div class="omni-legend-field">${
|
|
91705
|
+
<div class="omni-legend-sub" data-layer="${Br(A)}">
|
|
91706
|
+
<div class="omni-legend-field">${Br(e.field)}</div>${t}${i}
|
|
91707
91707
|
</div>`;
|
|
91708
91708
|
}
|
|
91709
91709
|
Ws("legend", {
|
|
@@ -91713,14 +91713,14 @@ Ws("legend", {
|
|
|
91713
91713
|
const t = A.getAttribute("title") ?? "Legend", i = A.hasAttribute("interactive");
|
|
91714
91714
|
let r = A.$(".omni-panel");
|
|
91715
91715
|
r || (r = document.createElement("div"), r.className = "omni-panel", A.root.appendChild(r)), r.innerHTML = `
|
|
91716
|
-
<h4>${
|
|
91716
|
+
<h4>${Br(t)}</h4>
|
|
91717
91717
|
${e.layers.map((s) => {
|
|
91718
91718
|
const n = s.color ?? (s.legend?.kind === "ramp" ? s.legend.colors[0] : s.legend?.entries[0]?.color) ?? "#999";
|
|
91719
91719
|
return `
|
|
91720
|
-
<div class="omni-row">
|
|
91721
|
-
<span class="omni-swatch" style="background:${
|
|
91722
|
-
${i ? `<label><input type="checkbox" ${s.visible ? "checked" : ""} data-emit="toggle-layer" data-layer="${
|
|
91723
|
-
</div>${s.legend && s.visible ? Lde(s.legend) : ""}${s.cluster && s.visible ? kde(n) : ""}`;
|
|
91720
|
+
<div class="omni-row" data-layer="${Br(s.id)}">
|
|
91721
|
+
<span class="omni-swatch" style="background:${Br(n)}"></span>
|
|
91722
|
+
${i ? `<label><input type="checkbox" ${s.visible ? "checked" : ""} data-emit="toggle-layer" data-layer="${Br(s.id)}"> ${Br(s.label ?? s.id)}</label>` : `<span>${Br(s.label ?? s.id)}</span>`}
|
|
91723
|
+
</div>${s.legend && s.visible ? Lde(s.legend, s.id) : ""}${s.cluster && s.visible ? kde(n, s.id) : ""}`;
|
|
91724
91724
|
}).join("")}
|
|
91725
91725
|
`;
|
|
91726
91726
|
}
|
|
@@ -91732,8 +91732,8 @@ Ws("layer-switcher", {
|
|
|
91732
91732
|
let t = A.$(".omni-panel");
|
|
91733
91733
|
t || (t = document.createElement("div"), t.className = "omni-panel", A.root.appendChild(t)), t.innerHTML = e.layers.map(
|
|
91734
91734
|
(i) => `
|
|
91735
|
-
<div class="omni-row">
|
|
91736
|
-
<label><input type="checkbox" ${i.visible ? "checked" : ""} data-emit="toggle-layer" data-layer="${
|
|
91735
|
+
<div class="omni-row" data-layer="${Br(i.id)}">
|
|
91736
|
+
<label><input type="checkbox" ${i.visible ? "checked" : ""} data-emit="toggle-layer" data-layer="${Br(i.id)}"> ${Br(i.label ?? i.id)}</label>
|
|
91737
91737
|
</div>`
|
|
91738
91738
|
).join("");
|
|
91739
91739
|
}
|
|
@@ -91813,12 +91813,12 @@ Ws("basemap-switcher", {
|
|
|
91813
91813
|
), r = A.closest("om-map")?.getAttribute("basemap") ?? "maplibre", s = A.getAttribute("title") ?? "Basemap";
|
|
91814
91814
|
let n = A.$(".omni-panel");
|
|
91815
91815
|
n || (n = document.createElement("div"), n.className = "omni-panel", A.root.appendChild(n)), n.innerHTML = `
|
|
91816
|
-
<h4>${
|
|
91816
|
+
<h4>${Br(s)}</h4>
|
|
91817
91817
|
${i.map((o) => {
|
|
91818
91818
|
const a = PP().get(o)?.label ?? o;
|
|
91819
91819
|
return `
|
|
91820
91820
|
<div class="omni-row">
|
|
91821
|
-
<label><input type="radio" name="omni-basemap" ${o === r ? "checked" : ""} data-emit="set-basemap" data-basemap="${
|
|
91821
|
+
<label><input type="radio" name="omni-basemap" ${o === r ? "checked" : ""} data-emit="set-basemap" data-basemap="${Br(o)}"> ${Br(a)}</label>
|
|
91822
91822
|
</div>`;
|
|
91823
91823
|
}).join("")}
|
|
91824
91824
|
`;
|
|
@@ -92073,9 +92073,9 @@ Ws("player", {
|
|
|
92073
92073
|
}
|
|
92074
92074
|
const n = r.getAttribute("id") ?? "";
|
|
92075
92075
|
s.innerHTML = `
|
|
92076
|
-
<button type="button" class="pp" data-emit="story-play" data-story="${
|
|
92076
|
+
<button type="button" class="pp" data-emit="story-play" data-story="${Br(n)}" aria-label="Play">▶</button>
|
|
92077
92077
|
<input type="range" class="seek" min="0" max="0" step="1" value="0"
|
|
92078
|
-
data-emit="story-seek" data-story="${
|
|
92078
|
+
data-emit="story-seek" data-story="${Br(n)}" aria-label="Seek">
|
|
92079
92079
|
<span class="time">0:00 / 0:00</span>
|
|
92080
92080
|
`, A.root.appendChild(s);
|
|
92081
92081
|
const o = s.querySelector(".pp"), a = s.querySelector(".seek"), g = s.querySelector(".time");
|
|
@@ -92170,13 +92170,13 @@ function biA(e) {
|
|
|
92170
92170
|
return e.toFixed(2).replace(/\.?0+$/, "");
|
|
92171
92171
|
}
|
|
92172
92172
|
function Vde(e) {
|
|
92173
|
-
if (!e) return
|
|
92174
|
-
if (e.poleWarning) return
|
|
92173
|
+
if (!e) return Br("Pick a mode, then click the map.");
|
|
92174
|
+
if (e.poleWarning) return Br("Footprint unavailable (ring encloses a pole).");
|
|
92175
92175
|
if (e.segments < 3 || e.areaMeters2 == null)
|
|
92176
|
-
return
|
|
92176
|
+
return Br("Click the map to outline the footprint, double-click to close.");
|
|
92177
92177
|
if (e.cutMeters3 == null) {
|
|
92178
92178
|
const l = `Area: ${ov(e.areaMeters2, e.units)} · Perimeter: ${DI(e.perimeterMeters, e.units)}`;
|
|
92179
|
-
return
|
|
92179
|
+
return Br(e.footprintClosed ? `${l} — sampling elevation…` : l);
|
|
92180
92180
|
}
|
|
92181
92181
|
const A = e.baseSurface === "custom" ? `<button type="button" class="vol-flat-toggle${e.flatTargetPlane ? " active" : ""}" data-act="flat-target-plane" aria-pressed="${e.flatTargetPlane ? "true" : "false"}">${e.flatTargetPlane ? "✓ " : ""}Flat target plane</button>` : "", t = e.netMeters3 ?? 0, i = e.cutErrorM3 != null && e.cutErrorM3 > 0 ? ` ±${Su(e.cutErrorM3, e.units)}` : "", r = e.fillErrorM3 != null && e.fillErrorM3 > 0 ? ` ±${Su(e.fillErrorM3, e.units)}` : "", s = [
|
|
92182
92182
|
["Cut (removed)", Su(e.cutMeters3 ?? 0, e.units) + i],
|
|
@@ -92187,9 +92187,9 @@ function Vde(e) {
|
|
|
92187
92187
|
["Perimeter", DI(e.perimeterMeters, e.units)]
|
|
92188
92188
|
];
|
|
92189
92189
|
e.baseSurface && s.push(["Base surface", e.baseSurface]), e.cellSizeM != null && s.push(["Cell size", DI(e.cellSizeM, e.units)]);
|
|
92190
|
-
const n = e.nodataFraction != null && e.nodataFraction > 0.01 ? `<div class="vol-stale">⚠ ${Math.round(e.nodataFraction * 100)}% of the footprint has no elevation data — totals under-report.</div>` : "", o = s.map(([l, C]) => `<div class="vol-row"><span>${
|
|
92190
|
+
const n = e.nodataFraction != null && e.nodataFraction > 0.01 ? `<div class="vol-stale">⚠ ${Math.round(e.nodataFraction * 100)}% of the footprint has no elevation data — totals under-report.</div>` : "", o = s.map(([l, C]) => `<div class="vol-row"><span>${Br(l)}</span><b>${Br(C)}</b></div>`).join("") + n, a = [];
|
|
92191
92191
|
e.cutAdjustedMeters3 != null && a.push([`Cut, loose (×${biA(e.swell ?? 1)} swell)`, Su(e.cutAdjustedMeters3, e.units)]), e.fillAdjustedMeters3 != null && a.push([`Fill, loose (÷${biA(e.shrink ?? 1)} shrink)`, Su(e.fillAdjustedMeters3, e.units)]), e.cutMassKg != null && a.push(["Cut tonnage", k7(e.cutMassKg, e.units)]), e.fillMassKg != null && a.push(["Fill tonnage", k7(e.fillMassKg, e.units)]);
|
|
92192
|
-
const g = a.length ? `<div class="vol-material-label">Material</div>${a.map(([l, C]) => `<div class="vol-row"><span>${
|
|
92192
|
+
const g = a.length ? `<div class="vol-material-label">Material</div>${a.map(([l, C]) => `<div class="vol-row"><span>${Br(l)}</span><b>${Br(C)}</b></div>`).join("")}` : "";
|
|
92193
92193
|
return A + o + g + (e.stale ? '<div class="vol-stale">Updating…</div>' : "");
|
|
92194
92194
|
}
|
|
92195
92195
|
Ws("measure", {
|
|
@@ -92332,7 +92332,7 @@ Ws("effects", {
|
|
|
92332
92332
|
const t = A.closest("om-map"), i = A.getAttribute("title") ?? "Finish";
|
|
92333
92333
|
let r = A.$(".omni-effects");
|
|
92334
92334
|
r || (r = document.createElement("div"), r.className = "omni-effects", r.innerHTML = `
|
|
92335
|
-
<h4>${
|
|
92335
|
+
<h4>${Br(i)}</h4>
|
|
92336
92336
|
<div class="omni-effects-presets">
|
|
92337
92337
|
${["none", ...nv].map(
|
|
92338
92338
|
(o) => `
|
|
@@ -92355,7 +92355,7 @@ Ws("lighting", {
|
|
|
92355
92355
|
const t = A.closest("om-map"), i = A.getAttribute("title") ?? "Lighting";
|
|
92356
92356
|
let r = A.$(".omni-lighting");
|
|
92357
92357
|
r || (r = document.createElement("div"), r.className = "omni-lighting", r.innerHTML = `
|
|
92358
|
-
<h4>${
|
|
92358
|
+
<h4>${Br(i)}</h4>
|
|
92359
92359
|
<div class="omni-lighting-presets">
|
|
92360
92360
|
${["default", ...FO].map(
|
|
92361
92361
|
(g) => `
|
|
@@ -92434,7 +92434,7 @@ Ws("clip-box", {
|
|
|
92434
92434
|
r = document.createElement("div"), r.className = "omni-clip-box";
|
|
92435
92435
|
const g = (C, Q) => `<input type="number" step="any" data-field="${C}" aria-label="${Q}">`;
|
|
92436
92436
|
r.innerHTML = `
|
|
92437
|
-
<h4>${
|
|
92437
|
+
<h4>${Br(i)}</h4>
|
|
92438
92438
|
<div class="omni-clip-box-grid">
|
|
92439
92439
|
<span></span><span>Lng</span><span>Lat</span><span>Elev (m)</span>
|
|
92440
92440
|
<span>Min</span>${g("minLng", "Min longitude")}${g("minLat", "Min latitude")}${g("minElev", "Min elevation")}
|
|
@@ -98162,7 +98162,7 @@ function imA({ layerIRs: e, core: A, mapEl: t, selection: i, history: r, feature
|
|
|
98162
98162
|
}
|
|
98163
98163
|
};
|
|
98164
98164
|
}
|
|
98165
|
-
const rmA = "0.11.
|
|
98165
|
+
const rmA = "0.11.7", Zpe = "https://om-api.nika.eco/v1/t", tE = { endpoint: Zpe };
|
|
98166
98166
|
function Xpe(e) {
|
|
98167
98167
|
for (const A of Object.keys(e))
|
|
98168
98168
|
tE[A] = e[A];
|
|
@@ -100476,6 +100476,10 @@ class cme extends KE {
|
|
|
100476
100476
|
overlayFlushPending = !1;
|
|
100477
100477
|
errorPanel = null;
|
|
100478
100478
|
runtimeErrors = [];
|
|
100479
|
+
/** Host diagnostics channel (the `diagnostics` property) — see its setter. */
|
|
100480
|
+
diagnosticsOn = !1;
|
|
100481
|
+
/** The last merged static + runtime report, while anyone is listening. */
|
|
100482
|
+
lastDiagnostics = null;
|
|
100479
100483
|
/** Dedup guard for the approximate-BIM-georeferencing warning — same shape as applyLicenseGates' own `warned` set, keyed per layer id. */
|
|
100480
100484
|
warnedApproximatePlacement = /* @__PURE__ */ new Set();
|
|
100481
100485
|
/** Dedup guard for the no-terrain-for-elevation error — same shape as `warnedApproximatePlacement`. */
|
|
@@ -101599,18 +101603,38 @@ class cme extends KE {
|
|
|
101599
101603
|
reportRuntimeErrorInternal(A) {
|
|
101600
101604
|
this.runtimeErrors.push(A), this.runtimeErrors.length > nme && this.runtimeErrors.shift(), this.publishValidation();
|
|
101601
101605
|
}
|
|
101606
|
+
/**
|
|
101607
|
+
* A host's own diagnostics channel — a PROPERTY, never an attribute. While
|
|
101608
|
+
* `true`, the map validates on every reconcile and fires
|
|
101609
|
+
* `om-validation-error` exactly as `validate="silent"` would, with no
|
|
101610
|
+
* on-page panel and without touching the document. For an editor that
|
|
101611
|
+
* autosaves the DOM (writing `validate` there would save it into the user's
|
|
101612
|
+
* file) or a preview that must not change what it shows. An authored
|
|
101613
|
+
* `validate` attribute still decides whether the panel appears.
|
|
101614
|
+
*/
|
|
101615
|
+
get diagnostics() {
|
|
101616
|
+
return this.diagnosticsOn;
|
|
101617
|
+
}
|
|
101618
|
+
set diagnostics(A) {
|
|
101619
|
+
const t = A === !0;
|
|
101620
|
+
t !== this.diagnosticsOn && (this.diagnosticsOn = t, !t && this.getAttribute("validate") === null && (this.lastDiagnostics = null), this.publishValidation());
|
|
101621
|
+
}
|
|
101622
|
+
/** The latest merged static + runtime report — `null` until the map is
|
|
101623
|
+
* validating (a `validate` attribute, or `diagnostics = true`). For a host
|
|
101624
|
+
* that starts listening after the first reconcile. */
|
|
101625
|
+
getDiagnostics() {
|
|
101626
|
+
return this.lastDiagnostics;
|
|
101627
|
+
}
|
|
101602
101628
|
publishValidation() {
|
|
101603
101629
|
const A = this.getAttribute("validate");
|
|
101604
|
-
if (A === null)
|
|
101605
|
-
this.errorPanel?.destroy(), this.errorPanel = null;
|
|
101630
|
+
if (A === null && (this.errorPanel?.destroy(), this.errorPanel = null, !this.diagnosticsOn))
|
|
101606
101631
|
return;
|
|
101607
|
-
}
|
|
101608
101632
|
const t = dmA(this), i = this.runtimeErrors.filter((n) => n.severity === "error"), r = this.runtimeErrors.filter((n) => n.severity === "warning"), s = {
|
|
101609
101633
|
valid: t.valid && i.length === 0,
|
|
101610
101634
|
errors: [...t.errors, ...i],
|
|
101611
101635
|
warnings: [...t.warnings, ...r]
|
|
101612
101636
|
};
|
|
101613
|
-
if (this.dispatchEvent(new CustomEvent("om-validation-error", { detail: s })), A === "silent") {
|
|
101637
|
+
if (this.lastDiagnostics = s, this.dispatchEvent(new CustomEvent("om-validation-error", { detail: s })), A === null || A === "silent") {
|
|
101614
101638
|
this.errorPanel?.destroy(), this.errorPanel = null;
|
|
101615
101639
|
return;
|
|
101616
101640
|
}
|
|
@@ -101749,7 +101773,7 @@ function pme(e) {
|
|
|
101749
101773
|
function T1(e, A) {
|
|
101750
101774
|
return e.replace(dme, (t, i, r, s) => {
|
|
101751
101775
|
const n = i !== void 0, o = i ?? r, a = A[o], g = a == null ? "" : String(a);
|
|
101752
|
-
return n ? g : fme(e, s) && pme(g) ? (console.warn(`[onlymapjs] Blocked an unsafe URL scheme interpolated into {{${o}}} (href/src reject javascript:/non-image data:).`), "") :
|
|
101776
|
+
return n ? g : fme(e, s) && pme(g) ? (console.warn(`[onlymapjs] Blocked an unsafe URL scheme interpolated into {{${o}}} (href/src reject javascript:/non-image data:).`), "") : Br(g);
|
|
101753
101777
|
});
|
|
101754
101778
|
}
|
|
101755
101779
|
const _rA = {
|
|
@@ -101812,6 +101836,16 @@ class yme extends KE {
|
|
|
101812
101836
|
disconnectedCallback() {
|
|
101813
101837
|
this.mapEl?.unregisterOverlayInternal(this), this.mapEl = null;
|
|
101814
101838
|
}
|
|
101839
|
+
/**
|
|
101840
|
+
* The template this overlay renders, `{{fields}}` and all — read-only. The
|
|
101841
|
+
* authored content moves into the shadow root and is shown with its fields
|
|
101842
|
+
* filled in, so neither the light DOM nor the rendered text still holds the
|
|
101843
|
+
* template; a tool that needs to know which fields a popup shows (an
|
|
101844
|
+
* element picker naming what it reads) reads it here.
|
|
101845
|
+
*/
|
|
101846
|
+
get templateSource() {
|
|
101847
|
+
return this.template;
|
|
101848
|
+
}
|
|
101815
101849
|
/**
|
|
101816
101850
|
* Replaces the overlay's content template (used by the internal, runtime-
|
|
101817
101851
|
* managed tooltip overlay the `show-tooltip` action drives — see
|
|
@@ -108550,7 +108584,7 @@ const PRe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
108550
108584
|
_BinaryReader: TRe,
|
|
108551
108585
|
_zipBatchIterators: IwA
|
|
108552
108586
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
108553
|
-
function
|
|
108587
|
+
function dr(e) {
|
|
108554
108588
|
return e && e.normalize && e.normalize(), e && e.textContent || "";
|
|
108555
108589
|
}
|
|
108556
108590
|
function Bi(e, A) {
|
|
@@ -108562,7 +108596,7 @@ function dwA(e) {
|
|
|
108562
108596
|
if (e) {
|
|
108563
108597
|
const t = Bi(e, "line");
|
|
108564
108598
|
if (t) {
|
|
108565
|
-
const i =
|
|
108599
|
+
const i = dr(Bi(t, "color")), r = parseFloat(dr(Bi(t, "opacity"))), s = parseFloat(dr(Bi(t, "width")));
|
|
108566
108600
|
i && (A.stroke = i), isNaN(r) || (A["stroke-opacity"] = r), isNaN(s) || (A["stroke-width"] = s * 96 / 25.4);
|
|
108567
108601
|
}
|
|
108568
108602
|
}
|
|
@@ -108578,7 +108612,7 @@ function fwA(e) {
|
|
|
108578
108612
|
if (r === "gpxtpx:TrackPointExtension")
|
|
108579
108613
|
A = A.concat(fwA(i));
|
|
108580
108614
|
else {
|
|
108581
|
-
const s =
|
|
108615
|
+
const s = dr(i);
|
|
108582
108616
|
A.push([r, isNaN(s) ? s : parseFloat(s)]);
|
|
108583
108617
|
}
|
|
108584
108618
|
}
|
|
@@ -108588,7 +108622,7 @@ function LH(e, A) {
|
|
|
108588
108622
|
const t = {};
|
|
108589
108623
|
let i, r;
|
|
108590
108624
|
for (r = 0; r < A.length; r++)
|
|
108591
|
-
i = Bi(e, A[r]), i && (t[A[r]] =
|
|
108625
|
+
i = Bi(e, A[r]), i && (t[A[r]] = dr(i));
|
|
108592
108626
|
return t;
|
|
108593
108627
|
}
|
|
108594
108628
|
function a5(e) {
|
|
@@ -108605,7 +108639,7 @@ function a5(e) {
|
|
|
108605
108639
|
);
|
|
108606
108640
|
for (let r = 0; r < t.length; r++) {
|
|
108607
108641
|
const s = t[r];
|
|
108608
|
-
s.parentNode.parentNode === e && (A[s.tagName.replace(":", "_")] =
|
|
108642
|
+
s.parentNode.parentNode === e && (A[s.tagName.replace(":", "_")] = dr(s));
|
|
108609
108643
|
}
|
|
108610
108644
|
const i = e.getElementsByTagName("link");
|
|
108611
108645
|
i.length && (A.links = []);
|
|
@@ -108624,12 +108658,12 @@ function pwA(e) {
|
|
|
108624
108658
|
parseFloat(e.getAttribute("lat"))
|
|
108625
108659
|
], t = Bi(e, "ele"), i = Bi(e, "time");
|
|
108626
108660
|
if (t) {
|
|
108627
|
-
const r = parseFloat(
|
|
108661
|
+
const r = parseFloat(dr(t));
|
|
108628
108662
|
isNaN(r) || A.push(r);
|
|
108629
108663
|
}
|
|
108630
108664
|
return {
|
|
108631
108665
|
coordinates: A,
|
|
108632
|
-
time: i ?
|
|
108666
|
+
time: i ? dr(i) : null,
|
|
108633
108667
|
extendedValues: fwA(Bi(e, "extensions"))
|
|
108634
108668
|
};
|
|
108635
108669
|
}
|
|
@@ -108767,21 +108801,21 @@ function mwA(e, A) {
|
|
|
108767
108801
|
const o = e.getElementsByTagNameNS(qRe, i);
|
|
108768
108802
|
o.length && (s = o[0]);
|
|
108769
108803
|
}
|
|
108770
|
-
const n = parseFloat(
|
|
108804
|
+
const n = parseFloat(dr(s));
|
|
108771
108805
|
isNaN(n) || t.push([r, n]);
|
|
108772
108806
|
}
|
|
108773
108807
|
return t;
|
|
108774
108808
|
}
|
|
108775
108809
|
function jRe(e) {
|
|
108776
|
-
const A =
|
|
108810
|
+
const A = dr(Bi(e, "LongitudeDegrees")), t = dr(Bi(e, "LatitudeDegrees"));
|
|
108777
108811
|
if (!A.length || !t.length)
|
|
108778
108812
|
return null;
|
|
108779
108813
|
const i = [parseFloat(A), parseFloat(t)], r = Bi(e, "AltitudeMeters"), s = Bi(e, "HeartRateBpm"), n = Bi(e, "Time");
|
|
108780
108814
|
let o;
|
|
108781
|
-
return r && (o = parseFloat(
|
|
108815
|
+
return r && (o = parseFloat(dr(r)), isNaN(o) || i.push(o)), {
|
|
108782
108816
|
coordinates: i,
|
|
108783
|
-
time: n ?
|
|
108784
|
-
heartRate: s ? parseFloat(
|
|
108817
|
+
time: n ? dr(n) : null,
|
|
108818
|
+
heartRate: s ? parseFloat(dr(s)) : null,
|
|
108785
108819
|
extensions: mwA(e, WRe)
|
|
108786
108820
|
};
|
|
108787
108821
|
}
|
|
@@ -108807,7 +108841,7 @@ function dsA(e) {
|
|
|
108807
108841
|
const A = e.getElementsByTagName("Track"), t = [], i = [], r = [], s = [];
|
|
108808
108842
|
let n;
|
|
108809
108843
|
const o = zRe(mwA(e, VRe)), a = Bi(e, "Name");
|
|
108810
|
-
a && (o.name =
|
|
108844
|
+
a && (o.name = dr(a));
|
|
108811
108845
|
for (let g = 0; g < A.length; g++)
|
|
108812
108846
|
n = ZRe(A[g], "Trackpoint"), n && (t.push(n.line), n.times.length && i.push(n.times), n.heartRates.length && r.push(n.heartRates), s.push(n.extendedProperties));
|
|
108813
108847
|
for (let g = 0; g < s.length; g++) {
|
|
@@ -108880,12 +108914,12 @@ function UH(e) {
|
|
|
108880
108914
|
}
|
|
108881
108915
|
const VQ = ["Polygon", "LineString", "Point", "Track", "gx:Track"];
|
|
108882
108916
|
function O1(e, A, t) {
|
|
108883
|
-
let i =
|
|
108917
|
+
let i = dr(Bi(A, "color")) || "";
|
|
108884
108918
|
const r = t == "stroke" || t === "fill" ? t : t + "-color";
|
|
108885
108919
|
i.substr(0, 1) === "#" && (i = i.substr(1)), i.length === 6 || i.length === 3 ? e[r] = i : i.length === 8 && (e[t + "-opacity"] = parseInt(i.substr(0, 2), 16) / 255, e[r] = "#" + i.substr(6, 2) + i.substr(4, 2) + i.substr(2, 2));
|
|
108886
108920
|
}
|
|
108887
108921
|
function q1(e, A, t, i) {
|
|
108888
|
-
const r = parseFloat(
|
|
108922
|
+
const r = parseFloat(dr(Bi(A, t)));
|
|
108889
108923
|
isNaN(r) || (e[i] = r);
|
|
108890
108924
|
}
|
|
108891
108925
|
function iFe(e) {
|
|
@@ -108893,9 +108927,9 @@ function iFe(e) {
|
|
|
108893
108927
|
const t = [], i = [];
|
|
108894
108928
|
A.length === 0 && (A = e.getElementsByTagName("gx:coord"));
|
|
108895
108929
|
for (let s = 0; s < A.length; s++)
|
|
108896
|
-
t.push(
|
|
108930
|
+
t.push(dr(A[s]).split(" ").map(parseFloat));
|
|
108897
108931
|
const r = e.getElementsByTagName("when");
|
|
108898
|
-
for (let s = 0; s < r.length; s++) i.push(
|
|
108932
|
+
for (let s = 0; s < r.length; s++) i.push(dr(r[s]));
|
|
108899
108933
|
return {
|
|
108900
108934
|
coords: t,
|
|
108901
108935
|
times: i
|
|
@@ -108916,17 +108950,17 @@ function IM(e) {
|
|
|
108916
108950
|
if (A = t[r], VQ[i] === "Point")
|
|
108917
108951
|
n.push({
|
|
108918
108952
|
type: "Point",
|
|
108919
|
-
coordinates: wwA(
|
|
108953
|
+
coordinates: wwA(dr(Bi(A, "coordinates")))
|
|
108920
108954
|
});
|
|
108921
108955
|
else if (VQ[i] === "LineString")
|
|
108922
108956
|
n.push({
|
|
108923
108957
|
type: "LineString",
|
|
108924
|
-
coordinates: psA(
|
|
108958
|
+
coordinates: psA(dr(Bi(A, "coordinates")))
|
|
108925
108959
|
});
|
|
108926
108960
|
else if (VQ[i] === "Polygon") {
|
|
108927
108961
|
const a = A.getElementsByTagName("LinearRing"), g = [];
|
|
108928
108962
|
for (s = 0; s < a.length; s++)
|
|
108929
|
-
g.push(psA(
|
|
108963
|
+
g.push(psA(dr(Bi(a[s], "coordinates"))));
|
|
108930
108964
|
n.push({
|
|
108931
108965
|
type: "Polygon",
|
|
108932
108966
|
coordinates: g
|
|
@@ -108947,9 +108981,9 @@ function IM(e) {
|
|
|
108947
108981
|
function rFe(e, A, t, i) {
|
|
108948
108982
|
const r = IM(e);
|
|
108949
108983
|
let s;
|
|
108950
|
-
const n = {}, o =
|
|
108951
|
-
let g =
|
|
108952
|
-
const l =
|
|
108984
|
+
const n = {}, o = dr(Bi(e, "name")), a = dr(Bi(e, "address"));
|
|
108985
|
+
let g = dr(Bi(e, "styleUrl"));
|
|
108986
|
+
const l = dr(Bi(e, "description")), C = Bi(e, "TimeSpan"), Q = Bi(e, "TimeStamp"), f = Bi(e, "ExtendedData");
|
|
108953
108987
|
let D = Bi(e, "IconStyle"), G = Bi(e, "LabelStyle"), U = Bi(e, "LineStyle"), Y = Bi(e, "PolyStyle");
|
|
108954
108988
|
const O = Bi(e, "visibility");
|
|
108955
108989
|
if (o && (n.name = o), a && (n.address = a), g) {
|
|
@@ -108958,10 +108992,10 @@ function rFe(e, A, t, i) {
|
|
|
108958
108992
|
AA && (D || (D = Bi(AA, "IconStyle")), G || (G = Bi(AA, "LabelStyle")), U || (U = Bi(AA, "LineStyle")), Y || (Y = Bi(AA, "PolyStyle")));
|
|
108959
108993
|
}
|
|
108960
108994
|
if (l && (n.description = l), C) {
|
|
108961
|
-
const AA =
|
|
108995
|
+
const AA = dr(Bi(C, "begin")), eA = dr(Bi(C, "end"));
|
|
108962
108996
|
n.timespan = { begin: AA, end: eA };
|
|
108963
108997
|
}
|
|
108964
|
-
if (Q && (n.timestamp =
|
|
108998
|
+
if (Q && (n.timestamp = dr(Bi(Q, "when"))), D) {
|
|
108965
108999
|
O1(n, D, "icon"), q1(n, D, "scale", "icon-scale"), q1(n, D, "heading", "icon-heading");
|
|
108966
109000
|
const AA = Bi(D, "hotSpot");
|
|
108967
109001
|
if (AA) {
|
|
@@ -108970,25 +109004,25 @@ function rFe(e, A, t, i) {
|
|
|
108970
109004
|
}
|
|
108971
109005
|
const eA = Bi(D, "Icon");
|
|
108972
109006
|
if (eA) {
|
|
108973
|
-
const nA =
|
|
109007
|
+
const nA = dr(Bi(eA, "href"));
|
|
108974
109008
|
nA && (n.icon = nA);
|
|
108975
109009
|
}
|
|
108976
109010
|
}
|
|
108977
109011
|
if (G && (O1(n, G, "label"), q1(n, G, "scale", "label-scale")), U && (O1(n, U, "stroke"), q1(n, U, "width", "stroke-width")), Y) {
|
|
108978
109012
|
O1(n, Y, "fill");
|
|
108979
|
-
const AA =
|
|
109013
|
+
const AA = dr(Bi(Y, "fill")), eA = dr(Bi(Y, "outline"));
|
|
108980
109014
|
AA && (n["fill-opacity"] = AA === "1" ? n["fill-opacity"] || 1 : 0), eA && (n["stroke-opacity"] = eA === "1" ? n["stroke-opacity"] || 1 : 0);
|
|
108981
109015
|
}
|
|
108982
109016
|
if (f) {
|
|
108983
109017
|
const AA = f.getElementsByTagName("Data"), eA = f.getElementsByTagName("SimpleData");
|
|
108984
109018
|
for (s = 0; s < AA.length; s++)
|
|
108985
|
-
n[AA[s].getAttribute("name")] =
|
|
109019
|
+
n[AA[s].getAttribute("name")] = dr(
|
|
108986
109020
|
Bi(AA[s], "value")
|
|
108987
109021
|
);
|
|
108988
109022
|
for (s = 0; s < eA.length; s++)
|
|
108989
|
-
n[eA[s].getAttribute("name")] =
|
|
109023
|
+
n[eA[s].getAttribute("name")] = dr(eA[s]);
|
|
108990
109024
|
}
|
|
108991
|
-
O && (n.visibility =
|
|
109025
|
+
O && (n.visibility = dr(O)), r.coordTimes.length && (n.coordinateProperties = {
|
|
108992
109026
|
times: r.coordTimes.length === 1 ? r.coordTimes[0] : r.coordTimes
|
|
108993
109027
|
});
|
|
108994
109028
|
const W = {
|
|
@@ -109014,7 +109048,7 @@ function* sFe(e) {
|
|
|
109014
109048
|
).toString(16);
|
|
109015
109049
|
const a = n[o].getElementsByTagName("Pair"), g = {};
|
|
109016
109050
|
for (let l = 0; l < a.length; l++)
|
|
109017
|
-
g[
|
|
109051
|
+
g[dr(Bi(a[l], "key"))] = dr(
|
|
109018
109052
|
Bi(a[l], "styleUrl")
|
|
109019
109053
|
);
|
|
109020
109054
|
i["#" + n[o].getAttribute("id")] = g;
|
|
@@ -109848,9 +109882,9 @@ function DwA() {
|
|
|
109848
109882
|
function ei() {
|
|
109849
109883
|
}
|
|
109850
109884
|
ei.prototype.nodeType = Q, g(ei, XA);
|
|
109851
|
-
function
|
|
109885
|
+
function Cr() {
|
|
109852
109886
|
}
|
|
109853
|
-
|
|
109887
|
+
Cr.prototype = {
|
|
109854
109888
|
data: "",
|
|
109855
109889
|
substringData: function(kA, KA) {
|
|
109856
109890
|
return this.data.substring(kA, kA + KA);
|
|
@@ -109871,7 +109905,7 @@ function DwA() {
|
|
|
109871
109905
|
var Je = this.data.substring(0, kA), ue = this.data.substring(kA + KA);
|
|
109872
109906
|
Ie = Je + Ie + ue, this.nodeValue = this.data = Ie, this.length = Ie.length;
|
|
109873
109907
|
}
|
|
109874
|
-
}, g(
|
|
109908
|
+
}, g(Cr, XA);
|
|
109875
109909
|
function vi() {
|
|
109876
109910
|
}
|
|
109877
109911
|
vi.prototype = {
|
|
@@ -109883,19 +109917,19 @@ function DwA() {
|
|
|
109883
109917
|
var Je = this.ownerDocument.createTextNode(Ie);
|
|
109884
109918
|
return this.parentNode && this.parentNode.insertBefore(Je, this.nextSibling), Je;
|
|
109885
109919
|
}
|
|
109886
|
-
}, g(vi,
|
|
109920
|
+
}, g(vi, Cr);
|
|
109887
109921
|
function rr() {
|
|
109888
109922
|
}
|
|
109889
109923
|
rr.prototype = {
|
|
109890
109924
|
nodeName: "#comment",
|
|
109891
109925
|
nodeType: O
|
|
109892
|
-
}, g(rr,
|
|
109926
|
+
}, g(rr, Cr);
|
|
109893
109927
|
function Pr() {
|
|
109894
109928
|
}
|
|
109895
109929
|
Pr.prototype = {
|
|
109896
109930
|
nodeName: "#cdata-section",
|
|
109897
109931
|
nodeType: D
|
|
109898
|
-
}, g(Pr,
|
|
109932
|
+
}, g(Pr, Cr);
|
|
109899
109933
|
function es() {
|
|
109900
109934
|
}
|
|
109901
109935
|
es.prototype.nodeType = AA, g(es, XA);
|
|
@@ -112301,8 +112335,8 @@ function aFe() {
|
|
|
112301
112335
|
function dA(Ut) {
|
|
112302
112336
|
if (Ut > 65535) {
|
|
112303
112337
|
Ut -= 65536;
|
|
112304
|
-
var ei = 55296 + (Ut >> 10),
|
|
112305
|
-
return String.fromCharCode(ei,
|
|
112338
|
+
var ei = 55296 + (Ut >> 10), Cr = 56320 + (Ut & 1023);
|
|
112339
|
+
return String.fromCharCode(ei, Cr);
|
|
112306
112340
|
} else
|
|
112307
112341
|
return String.fromCharCode(Ut);
|
|
112308
112342
|
}
|
|
@@ -112873,7 +112907,7 @@ const FwA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
112873
112907
|
KMLLoader: bwA,
|
|
112874
112908
|
TCXLoader: RwA
|
|
112875
112909
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
112876
|
-
var Vr,
|
|
112910
|
+
var Vr, br = ((Vr = {})[Vr.Byte = 0] = "Byte", Vr[Vr.UByte = 1] = "UByte", Vr[Vr.Bool = 2] = "Bool", Vr[Vr.Short = 3] = "Short", Vr[Vr.UShort = 4] = "UShort", Vr[Vr.Int = 5] = "Int", Vr[Vr.UInt = 6] = "UInt", Vr[Vr.Long = 7] = "Long", Vr[Vr.ULong = 8] = "ULong", Vr[Vr.Float = 9] = "Float", Vr[Vr.Double = 10] = "Double", Vr[Vr.String = 11] = "String", Vr[Vr.Json = 12] = "Json", Vr[Vr.DateTime = 13] = "DateTime", Vr[Vr.Binary = 14] = "Binary", Vr);
|
|
112877
112911
|
class gn {
|
|
112878
112912
|
bb = null;
|
|
112879
112913
|
bb_pos = 0;
|
|
@@ -112884,7 +112918,7 @@ class gn {
|
|
|
112884
112918
|
return (t || new gn()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
112885
112919
|
}
|
|
112886
112920
|
static getSizePrefixedRootAsColumn(A, t) {
|
|
112887
|
-
return A.setPosition(A.position() +
|
|
112921
|
+
return A.setPosition(A.position() + Fr), (t || new gn()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
112888
112922
|
}
|
|
112889
112923
|
name(A) {
|
|
112890
112924
|
let t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -112892,7 +112926,7 @@ class gn {
|
|
|
112892
112926
|
}
|
|
112893
112927
|
type() {
|
|
112894
112928
|
let A = this.bb.__offset(this.bb_pos, 6);
|
|
112895
|
-
return A ? this.bb.readUint8(this.bb_pos + A) :
|
|
112929
|
+
return A ? this.bb.readUint8(this.bb_pos + A) : br.Byte;
|
|
112896
112930
|
}
|
|
112897
112931
|
title(A) {
|
|
112898
112932
|
let t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -112937,7 +112971,7 @@ class gn {
|
|
|
112937
112971
|
A.addFieldOffset(0, t, 0);
|
|
112938
112972
|
}
|
|
112939
112973
|
static addType(A, t) {
|
|
112940
|
-
A.addFieldInt8(1, t,
|
|
112974
|
+
A.addFieldInt8(1, t, br.Byte);
|
|
112941
112975
|
}
|
|
112942
112976
|
static addTitle(A, t) {
|
|
112943
112977
|
A.addFieldOffset(2, t, 0);
|
|
@@ -112974,7 +113008,7 @@ class gn {
|
|
|
112974
113008
|
return gn.startColumn(A), gn.addName(A, t), gn.addType(A, i), gn.addTitle(A, r), gn.addDescription(A, s), gn.addWidth(A, n), gn.addPrecision(A, o), gn.addScale(A, a), gn.addNullable(A, g), gn.addUnique(A, l), gn.addPrimaryKey(A, C), gn.addMetadata(A, Q), gn.endColumn(A);
|
|
112975
113009
|
}
|
|
112976
113010
|
}
|
|
112977
|
-
var
|
|
113011
|
+
var Er, vr = ((Er = {})[Er.Unknown = 0] = "Unknown", Er[Er.Point = 1] = "Point", Er[Er.LineString = 2] = "LineString", Er[Er.Polygon = 3] = "Polygon", Er[Er.MultiPoint = 4] = "MultiPoint", Er[Er.MultiLineString = 5] = "MultiLineString", Er[Er.MultiPolygon = 6] = "MultiPolygon", Er[Er.GeometryCollection = 7] = "GeometryCollection", Er[Er.CircularString = 8] = "CircularString", Er[Er.CompoundCurve = 9] = "CompoundCurve", Er[Er.CurvePolygon = 10] = "CurvePolygon", Er[Er.MultiCurve = 11] = "MultiCurve", Er[Er.MultiSurface = 12] = "MultiSurface", Er[Er.Curve = 13] = "Curve", Er[Er.Surface = 14] = "Surface", Er[Er.PolyhedralSurface = 15] = "PolyhedralSurface", Er[Er.TIN = 16] = "TIN", Er[Er.Triangle = 17] = "Triangle", Er);
|
|
112978
113012
|
let Oo = class Gg {
|
|
112979
113013
|
bb = null;
|
|
112980
113014
|
bb_pos = 0;
|
|
@@ -112985,7 +113019,7 @@ let Oo = class Gg {
|
|
|
112985
113019
|
return (t || new Gg()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
112986
113020
|
}
|
|
112987
113021
|
static getSizePrefixedRootAsGeometry(A, t) {
|
|
112988
|
-
return A.setPosition(A.position() +
|
|
113022
|
+
return A.setPosition(A.position() + Fr), (t || new Gg()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
112989
113023
|
}
|
|
112990
113024
|
ends(A) {
|
|
112991
113025
|
let t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -113057,7 +113091,7 @@ let Oo = class Gg {
|
|
|
113057
113091
|
}
|
|
113058
113092
|
type() {
|
|
113059
113093
|
let A = this.bb.__offset(this.bb_pos, 16);
|
|
113060
|
-
return A ? this.bb.readUint8(this.bb_pos + A) :
|
|
113094
|
+
return A ? this.bb.readUint8(this.bb_pos + A) : vr.Unknown;
|
|
113061
113095
|
}
|
|
113062
113096
|
parts(A, t) {
|
|
113063
113097
|
let i = this.bb.__offset(this.bb_pos, 18);
|
|
@@ -113137,7 +113171,7 @@ let Oo = class Gg {
|
|
|
113137
113171
|
A.startVector(8, t, 8);
|
|
113138
113172
|
}
|
|
113139
113173
|
static addType(A, t) {
|
|
113140
|
-
A.addFieldInt8(6, t,
|
|
113174
|
+
A.addFieldInt8(6, t, vr.Unknown);
|
|
113141
113175
|
}
|
|
113142
113176
|
static addParts(A, t) {
|
|
113143
113177
|
A.addFieldOffset(7, t, 0);
|
|
@@ -113166,7 +113200,7 @@ let Oo = class Gg {
|
|
|
113166
113200
|
return (t || new xu()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
113167
113201
|
}
|
|
113168
113202
|
static getSizePrefixedRootAsFeature(A, t) {
|
|
113169
|
-
return A.setPosition(A.position() +
|
|
113203
|
+
return A.setPosition(A.position() + Fr), (t || new xu()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
113170
113204
|
}
|
|
113171
113205
|
geometry(A) {
|
|
113172
113206
|
let t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -113281,7 +113315,7 @@ class og {
|
|
|
113281
113315
|
return (t || new og()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
113282
113316
|
}
|
|
113283
113317
|
static getSizePrefixedRootAsCrs(A, t) {
|
|
113284
|
-
return A.setPosition(A.position() +
|
|
113318
|
+
return A.setPosition(A.position() + Fr), (t || new og()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
113285
113319
|
}
|
|
113286
113320
|
org(A) {
|
|
113287
113321
|
let t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -113345,7 +113379,7 @@ class pI {
|
|
|
113345
113379
|
return (t || new pI()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
113346
113380
|
}
|
|
113347
113381
|
static getSizePrefixedRootAsHeader(A, t) {
|
|
113348
|
-
return A.setPosition(A.position() +
|
|
113382
|
+
return A.setPosition(A.position() + Fr), (t || new pI()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
113349
113383
|
}
|
|
113350
113384
|
name(A) {
|
|
113351
113385
|
let t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -113365,7 +113399,7 @@ class pI {
|
|
|
113365
113399
|
}
|
|
113366
113400
|
geometryType() {
|
|
113367
113401
|
let A = this.bb.__offset(this.bb_pos, 8);
|
|
113368
|
-
return A ? this.bb.readUint8(this.bb_pos + A) :
|
|
113402
|
+
return A ? this.bb.readUint8(this.bb_pos + A) : vr.Unknown;
|
|
113369
113403
|
}
|
|
113370
113404
|
hasZ() {
|
|
113371
113405
|
let A = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -113433,7 +113467,7 @@ class pI {
|
|
|
113433
113467
|
A.startVector(8, t, 8);
|
|
113434
113468
|
}
|
|
113435
113469
|
static addGeometryType(A, t) {
|
|
113436
|
-
A.addFieldInt8(2, t,
|
|
113470
|
+
A.addFieldInt8(2, t, vr.Unknown);
|
|
113437
113471
|
}
|
|
113438
113472
|
static addHasZ(A, t) {
|
|
113439
113473
|
A.addFieldInt8(3, +t, 0);
|
|
@@ -114560,7 +114594,7 @@ function xsA(e) {
|
|
|
114560
114594
|
}
|
|
114561
114595
|
function GwA(e, A) {
|
|
114562
114596
|
let t, i, r, s, n, o, a, g = A;
|
|
114563
|
-
g ===
|
|
114597
|
+
g === vr.Unknown && (g = g2(e.getType())), g === vr.MultiLineString || g === vr.Polygon ? (e.getFlatCoordinates && (t = e.getFlatCoordinates()), a = e.getEnds()) : g === vr.MultiPolygon ? o = e.getPolygons().map((C) => GwA(C, vr.Polygon)) : e.getFlatCoordinates && (t = e.getFlatCoordinates());
|
|
114564
114598
|
let l = e.getLayout?.() ?? "XY";
|
|
114565
114599
|
if (t && (l === "XY" ? i = t : l === "XYZ" ? [i, r] = xsA(t) : l === "XYM" ? [i, s] = xsA(t) : l === "XYZM" && ([i, r, s] = (function(C) {
|
|
114566
114600
|
let Q = C.length / 4, f = Array(2 * Q), D = Array(Q), G = Array(Q);
|
|
@@ -114581,7 +114615,7 @@ function tP(e, A) {
|
|
|
114581
114615
|
return t;
|
|
114582
114616
|
}
|
|
114583
114617
|
function g2(e) {
|
|
114584
|
-
return e ?
|
|
114618
|
+
return e ? vr[e] : vr.Unknown;
|
|
114585
114619
|
}
|
|
114586
114620
|
let GsA = new TextEncoder(), ksA = new TextDecoder();
|
|
114587
114621
|
function xFe(e, A, t, i, r) {
|
|
@@ -114597,42 +114631,42 @@ function kwA(e, A, t) {
|
|
|
114597
114631
|
if (i) for (let f = 0; f < i.length; f++) {
|
|
114598
114632
|
let D = i[f], G = A[D.name];
|
|
114599
114633
|
if (G !== null) switch (g(2), a.setUint16(s, f, !0), s += 2, D.type) {
|
|
114600
|
-
case
|
|
114634
|
+
case br.Bool:
|
|
114601
114635
|
g(1), a.setUint8(s, G), s += 1;
|
|
114602
114636
|
break;
|
|
114603
|
-
case
|
|
114637
|
+
case br.Short:
|
|
114604
114638
|
g(2), a.setInt16(s, G, !0), s += 2;
|
|
114605
114639
|
break;
|
|
114606
|
-
case
|
|
114640
|
+
case br.UShort:
|
|
114607
114641
|
g(2), a.setUint16(s, G, !0), s += 2;
|
|
114608
114642
|
break;
|
|
114609
|
-
case
|
|
114643
|
+
case br.Int:
|
|
114610
114644
|
g(4), a.setInt32(s, G, !0), s += 4;
|
|
114611
114645
|
break;
|
|
114612
|
-
case
|
|
114646
|
+
case br.UInt:
|
|
114613
114647
|
g(4), a.setUint32(s, G, !0), s += 4;
|
|
114614
114648
|
break;
|
|
114615
|
-
case
|
|
114649
|
+
case br.Long:
|
|
114616
114650
|
g(8), a.setBigInt64(s, BigInt(G), !0), s += 8;
|
|
114617
114651
|
break;
|
|
114618
|
-
case
|
|
114652
|
+
case br.Float:
|
|
114619
114653
|
g(4), a.setFloat32(s, G, !0), s += 4;
|
|
114620
114654
|
break;
|
|
114621
|
-
case
|
|
114655
|
+
case br.Double:
|
|
114622
114656
|
g(8), a.setFloat64(s, G, !0), s += 8;
|
|
114623
114657
|
break;
|
|
114624
|
-
case
|
|
114625
|
-
case
|
|
114658
|
+
case br.DateTime:
|
|
114659
|
+
case br.String: {
|
|
114626
114660
|
let U = GsA.encode(G);
|
|
114627
114661
|
g(4), a.setUint32(s, U.length, !0), s += 4, g(U.length), o.set(U, s), s += U.length;
|
|
114628
114662
|
break;
|
|
114629
114663
|
}
|
|
114630
|
-
case
|
|
114664
|
+
case br.Json: {
|
|
114631
114665
|
let U = GsA.encode(JSON.stringify(G));
|
|
114632
114666
|
g(4), a.setUint32(s, U.length, !0), s += 4, g(U.length), o.set(U, s), s += U.length;
|
|
114633
114667
|
break;
|
|
114634
114668
|
}
|
|
114635
|
-
case
|
|
114669
|
+
case br.Binary:
|
|
114636
114670
|
g(4), a.setUint32(s, G.length, !0), s += 4, g(G.length), o.set(G, s), s += G.length;
|
|
114637
114671
|
break;
|
|
114638
114672
|
default:
|
|
@@ -114657,53 +114691,53 @@ function B5(e, A) {
|
|
|
114657
114691
|
n += 2;
|
|
114658
114692
|
let a = A[o], g = a.name;
|
|
114659
114693
|
switch (a.type) {
|
|
114660
|
-
case
|
|
114694
|
+
case br.Bool:
|
|
114661
114695
|
t[g] = !!r.getUint8(n), n += 1;
|
|
114662
114696
|
break;
|
|
114663
|
-
case
|
|
114697
|
+
case br.Byte:
|
|
114664
114698
|
t[g] = r.getInt8(n), n += 1;
|
|
114665
114699
|
break;
|
|
114666
|
-
case
|
|
114700
|
+
case br.UByte:
|
|
114667
114701
|
t[g] = r.getUint8(n), n += 1;
|
|
114668
114702
|
break;
|
|
114669
|
-
case
|
|
114703
|
+
case br.Short:
|
|
114670
114704
|
t[g] = r.getInt16(n, !0), n += 2;
|
|
114671
114705
|
break;
|
|
114672
|
-
case
|
|
114706
|
+
case br.UShort:
|
|
114673
114707
|
t[g] = r.getUint16(n, !0), n += 2;
|
|
114674
114708
|
break;
|
|
114675
|
-
case
|
|
114709
|
+
case br.Int:
|
|
114676
114710
|
t[g] = r.getInt32(n, !0), n += 4;
|
|
114677
114711
|
break;
|
|
114678
|
-
case
|
|
114712
|
+
case br.UInt:
|
|
114679
114713
|
t[g] = r.getUint32(n, !0), n += 4;
|
|
114680
114714
|
break;
|
|
114681
|
-
case
|
|
114715
|
+
case br.Long:
|
|
114682
114716
|
t[g] = Number(r.getBigInt64(n, !0)), n += 8;
|
|
114683
114717
|
break;
|
|
114684
|
-
case
|
|
114718
|
+
case br.ULong:
|
|
114685
114719
|
t[g] = Number(r.getBigUint64(n, !0)), n += 8;
|
|
114686
114720
|
break;
|
|
114687
|
-
case
|
|
114721
|
+
case br.Float:
|
|
114688
114722
|
t[g] = r.getFloat32(n, !0), n += 4;
|
|
114689
114723
|
break;
|
|
114690
|
-
case
|
|
114724
|
+
case br.Double:
|
|
114691
114725
|
t[g] = r.getFloat64(n, !0), n += 8;
|
|
114692
114726
|
break;
|
|
114693
|
-
case
|
|
114694
|
-
case
|
|
114727
|
+
case br.DateTime:
|
|
114728
|
+
case br.String: {
|
|
114695
114729
|
let l = r.getUint32(n, !0);
|
|
114696
114730
|
n += 4, t[g] = ksA.decode(i.subarray(n, n + l)), n += l;
|
|
114697
114731
|
break;
|
|
114698
114732
|
}
|
|
114699
|
-
case
|
|
114733
|
+
case br.Json: {
|
|
114700
114734
|
let l = r.getUint32(n, !0);
|
|
114701
114735
|
n += 4;
|
|
114702
114736
|
let C = ksA.decode(i.subarray(n, n + l));
|
|
114703
114737
|
t[g] = JSON.parse(C), n += l;
|
|
114704
114738
|
break;
|
|
114705
114739
|
}
|
|
114706
|
-
case
|
|
114740
|
+
case br.Binary: {
|
|
114707
114741
|
let l = r.getUint32(n, !0);
|
|
114708
114742
|
n += 4, t[g] = i.subarray(n, n + l), n += l;
|
|
114709
114743
|
break;
|
|
@@ -114717,9 +114751,9 @@ function B5(e, A) {
|
|
|
114717
114751
|
function LwA(e) {
|
|
114718
114752
|
let A;
|
|
114719
114753
|
for (let t of e) {
|
|
114720
|
-
if (A ===
|
|
114754
|
+
if (A === vr.Unknown) break;
|
|
114721
114755
|
let i = t.getGeometry ? g2(t.getGeometry().getType()) : g2(t.geometry.type);
|
|
114722
|
-
A === void 0 ? A = i : A !== i && (A =
|
|
114756
|
+
A === void 0 ? A = i : A !== i && (A = vr.Unknown);
|
|
114723
114757
|
}
|
|
114724
114758
|
if (A === void 0) throw Error("Could not infer geometry type for collection of features.");
|
|
114725
114759
|
return A;
|
|
@@ -114803,11 +114837,11 @@ async function kFe(e, A = !1, t = {}) {
|
|
|
114803
114837
|
}
|
|
114804
114838
|
function PwA(e, A) {
|
|
114805
114839
|
return { name: A, type: (function(t) {
|
|
114806
|
-
if (typeof t == "boolean") return
|
|
114807
|
-
if (typeof t == "number") return
|
|
114808
|
-
if (typeof t == "string" || t === null) return
|
|
114809
|
-
if (t instanceof Uint8Array) return
|
|
114810
|
-
if (typeof t == "object") return
|
|
114840
|
+
if (typeof t == "boolean") return br.Bool;
|
|
114841
|
+
if (typeof t == "number") return br.Double;
|
|
114842
|
+
if (typeof t == "string" || t === null) return br.String;
|
|
114843
|
+
if (t instanceof Uint8Array) return br.Binary;
|
|
114844
|
+
if (typeof t == "object") return br.Json;
|
|
114811
114845
|
throw Error(`Unknown type (value '${t}')`);
|
|
114812
114846
|
})(e[A]), title: null, description: null, width: -1, precision: -1, scale: -1, nullable: !0, unique: !1, primary_key: !1 };
|
|
114813
114847
|
}
|
|
@@ -114819,8 +114853,8 @@ function UFe(e, A = !1, t = {}) {
|
|
|
114819
114853
|
}
|
|
114820
114854
|
const TFe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
114821
114855
|
__proto__: null,
|
|
114822
|
-
ColumnType:
|
|
114823
|
-
GeometryType:
|
|
114856
|
+
ColumnType: br,
|
|
114857
|
+
GeometryType: vr,
|
|
114824
114858
|
deserialize: LFe,
|
|
114825
114859
|
parseProperties: B5,
|
|
114826
114860
|
readMetadata: UFe,
|
|
@@ -114853,31 +114887,31 @@ function JwA(e) {
|
|
|
114853
114887
|
}
|
|
114854
114888
|
function KH(e, A) {
|
|
114855
114889
|
let t = A;
|
|
114856
|
-
if (t ===
|
|
114890
|
+
if (t === vr.Unknown && (t = e.type()), t === vr.GeometryCollection) {
|
|
114857
114891
|
let r = [];
|
|
114858
114892
|
for (let s = 0; s < e.partsLength(); s++) {
|
|
114859
114893
|
let n = e.parts(s), o = n.type();
|
|
114860
114894
|
r.push(KH(n, o));
|
|
114861
114895
|
}
|
|
114862
|
-
return { type:
|
|
114896
|
+
return { type: vr[t], geometries: r };
|
|
114863
114897
|
}
|
|
114864
|
-
if (t ===
|
|
114898
|
+
if (t === vr.MultiPolygon) {
|
|
114865
114899
|
let r = [];
|
|
114866
|
-
for (let s = 0; s < e.partsLength(); s++) r.push(KH(e.parts(s),
|
|
114867
|
-
return { type:
|
|
114900
|
+
for (let s = 0; s < e.partsLength(); s++) r.push(KH(e.parts(s), vr.Polygon));
|
|
114901
|
+
return { type: vr[t], coordinates: r.map((s) => s.coordinates) };
|
|
114868
114902
|
}
|
|
114869
114903
|
let i = (function(r, s) {
|
|
114870
114904
|
let n = r.xyArray(), o = r.zArray();
|
|
114871
114905
|
switch (s) {
|
|
114872
|
-
case
|
|
114906
|
+
case vr.Point: {
|
|
114873
114907
|
let a = Array.from(n);
|
|
114874
114908
|
return o && a.push(o[0]), a;
|
|
114875
114909
|
}
|
|
114876
|
-
case
|
|
114877
|
-
case
|
|
114910
|
+
case vr.MultiPoint:
|
|
114911
|
+
case vr.LineString:
|
|
114878
114912
|
return tP(n, o);
|
|
114879
|
-
case
|
|
114880
|
-
case
|
|
114913
|
+
case vr.MultiLineString:
|
|
114914
|
+
case vr.Polygon:
|
|
114881
114915
|
return (function(a, g, l) {
|
|
114882
114916
|
let C;
|
|
114883
114917
|
if (!l || l.length === 0) return [tP(a, g)];
|
|
@@ -114886,7 +114920,7 @@ function KH(e, A) {
|
|
|
114886
114920
|
})(n, o, r.endsArray());
|
|
114887
114921
|
}
|
|
114888
114922
|
})(e, t);
|
|
114889
|
-
return { type:
|
|
114923
|
+
return { type: vr[t], coordinates: i };
|
|
114890
114924
|
}
|
|
114891
114925
|
function d5(e, A, t) {
|
|
114892
114926
|
let i = t.columns;
|
|
@@ -119099,7 +119133,7 @@ function tnA(e, A) {
|
|
|
119099
119133
|
}
|
|
119100
119134
|
function uDA(e, A) {
|
|
119101
119135
|
let t;
|
|
119102
|
-
if (t = A ===
|
|
119136
|
+
if (t = A === vr.Unknown ? e?.type() : A, !e) return;
|
|
119103
119137
|
let i = e.xyArray();
|
|
119104
119138
|
if (i) {
|
|
119105
119139
|
let r = Array.from(i), s = e.zArray(), n = e.mArray(), o = e.endsArray(), a = "XY", g = 2;
|
|
@@ -119110,21 +119144,21 @@ function uDA(e, A) {
|
|
|
119110
119144
|
})(r, Array.from(s), Array.from(n)), g = 4) : s ? (a = "XYZ", r = tnA(r, Array.from(s)), g = 3) : n && (a = "XYM", r = tnA(r, Array.from(n)), g = 3);
|
|
119111
119145
|
let l = o ? Array.from(o.map((C) => C * g)) : [r.length];
|
|
119112
119146
|
switch (t) {
|
|
119113
|
-
case
|
|
119147
|
+
case vr.Point:
|
|
119114
119148
|
return new L_(r);
|
|
119115
|
-
case
|
|
119149
|
+
case vr.MultiPoint:
|
|
119116
119150
|
return new Rk(r, a);
|
|
119117
|
-
case
|
|
119151
|
+
case vr.LineString:
|
|
119118
119152
|
return new Fm(r, a);
|
|
119119
|
-
case
|
|
119153
|
+
case vr.MultiLineString:
|
|
119120
119154
|
return new k_(r, a, l);
|
|
119121
|
-
case
|
|
119155
|
+
case vr.Polygon:
|
|
119122
119156
|
return new Nm(r, a, l);
|
|
119123
119157
|
}
|
|
119124
119158
|
}
|
|
119125
|
-
if (t ===
|
|
119159
|
+
if (t === vr.MultiPolygon) {
|
|
119126
119160
|
let r = e.partsLength(), s = Array(r);
|
|
119127
|
-
for (let n = 0; n < r; n++) s[n] = uDA(e.parts(n),
|
|
119161
|
+
for (let n = 0; n < r; n++) s[n] = uDA(e.parts(n), vr.Polygon);
|
|
119128
119162
|
return new U_(s);
|
|
119129
119163
|
}
|
|
119130
119164
|
throw Error("Unknown type");
|
|
@@ -125431,9 +125465,9 @@ function Yve(e, A) {
|
|
|
125431
125465
|
if (at > s)
|
|
125432
125466
|
if (ze >= Hve && ze <= LnA) {
|
|
125433
125467
|
let Ai = Pve[ze];
|
|
125434
|
-
const Wt = at - s - 1, Ui = Jve[ze], Ut = (1 << Ui) - 1, ei = Wt & Ut,
|
|
125435
|
-
if (Ai += ei * ze,
|
|
125436
|
-
const vi = xve(U, Tt, Ai, ze,
|
|
125468
|
+
const Wt = at - s - 1, Ui = Jve[ze], Ut = (1 << Ui) - 1, ei = Wt & Ut, Cr = Wt >> Ui;
|
|
125469
|
+
if (Ai += ei * ze, Cr < _ve) {
|
|
125470
|
+
const vi = xve(U, Tt, Ai, ze, Cr);
|
|
125437
125471
|
if (Tt += vi, t += vi, AA -= vi, Tt >= Y) {
|
|
125438
125472
|
A.write(U, D);
|
|
125439
125473
|
for (let rr = 0; rr < Tt - Y; rr++)
|
|
@@ -126718,7 +126752,7 @@ async function H_e(e, A = {}) {
|
|
|
126718
126752
|
const at = C.GetGeometry(Q, ze.id), Tt = C.GetVertexArray(at.GetVertexData(), at.GetVertexDataSize()), Ai = C.GetIndexArray(at.GetIndexData(), at.GetIndexDataSize()), Wt = ze.matrix, Ui = ze.colour.map((vi) => Math.round(vi * 1e3) / 1e3).join(","), Ut = SA ? `${nt} ${Ui}` : Ui;
|
|
126719
126753
|
let ei = rA.get(Ut);
|
|
126720
126754
|
ei || (ei = { positions: [], normals: [], featureIds: [], indices: [], colour: ze.colour, label: `colour-${rA.size}`, cellKey: nt }, rA.set(Ut, ei));
|
|
126721
|
-
const
|
|
126755
|
+
const Cr = ei.featureIds.length;
|
|
126722
126756
|
for (let vi = 0; vi < Tt.length; vi += 6) {
|
|
126723
126757
|
const [rr, Pr, es] = [Tt[vi], Tt[vi + 1], Tt[vi + 2]], os = Wt[0] * rr + Wt[4] * Pr + Wt[8] * es + Wt[12], Qs = Wt[1] * rr + Wt[5] * Pr + Wt[9] * es + Wt[13], bs = Wt[2] * rr + Wt[6] * Pr + Wt[10] * es + Wt[14], [ks, Wi, ki] = [Tt[vi + 3], Tt[vi + 4], Tt[vi + 5]];
|
|
126724
126758
|
ei.positions.push(os, Qs, bs), ei.normals.push(Wt[0] * ks + Wt[4] * Wi + Wt[8] * ki, Wt[1] * ks + Wt[5] * Wi + Wt[9] * ki, Wt[2] * ks + Wt[6] * Wi + Wt[10] * ki), ei.featureIds.push(Qe);
|
|
@@ -126726,7 +126760,7 @@ async function H_e(e, A = {}) {
|
|
|
126726
126760
|
for (let Ar = 0; Ar < 3; Ar++)
|
|
126727
126761
|
Ir[Ar] < sA[Ar] && (sA[Ar] = Ir[Ar]), Ir[Ar] > tA[Ar] && (tA[Ar] = Ir[Ar]), Ir[Ar] < Vi[Ar] && (Vi[Ar] = Ir[Ar]), Ir[Ar] > Vi[Ar + 3] && (Vi[Ar + 3] = Ir[Ar]);
|
|
126728
126762
|
}
|
|
126729
|
-
for (let vi = 0; vi < Ai.length; vi++) ei.indices.push(
|
|
126763
|
+
for (let vi = 0; vi < Ai.length; vi++) ei.indices.push(Cr + Ai[vi]);
|
|
126730
126764
|
dA += Tt.length / 6, at.delete();
|
|
126731
126765
|
}
|
|
126732
126766
|
(He + 1) % 250 === 0 && (t(`Reading geometry… ${He + 1}/${CA.length} elements`), await new Promise((ze) => setTimeout(ze)));
|
|
@@ -126779,7 +126813,7 @@ async function H_e(e, A = {}) {
|
|
|
126779
126813
|
for (const Wi of Wt)
|
|
126780
126814
|
for (let ki = 0; ki < 3; ki++)
|
|
126781
126815
|
Wi[ki] < Ut[ki] && (Ut[ki] = Wi[ki]), Wi[ki + 3] > ei[ki] && (ei[ki] = Wi[ki + 3]);
|
|
126782
|
-
const
|
|
126816
|
+
const Cr = (Ut[0] + ei[0]) / 2, vi = (Ut[1] + ei[1]) / 2, rr = (Ut[2] + ei[2]) / 2, Pr = Math.max((ei[0] - Ut[0]) / 2, 0.5), es = Math.max((ei[1] - Ut[1]) / 2, 0.5), os = Math.max((ei[2] - Ut[2]) / 2, 0.5), Qs = [Cr, vi, rr, Pr, 0, 0, 0, es, 0, 0, 0, os], bs = jnA(Ai, Ui, Wt), ks = XA(bs, `cell-${nt}.glb`);
|
|
126783
126817
|
we.push({ boundingVolume: { box: Qs }, geometricError: 0, content: { uri: ks } });
|
|
126784
126818
|
}
|
|
126785
126819
|
l("glb"), Ne = {
|
|
@@ -128280,76 +128314,76 @@ const Dxe = {
|
|
|
128280
128314
|
[Ft.GeoKeyDirectory]: !0,
|
|
128281
128315
|
[Ft.GeoDoubleParams]: !0
|
|
128282
128316
|
};
|
|
128283
|
-
var
|
|
128317
|
+
var Sr;
|
|
128284
128318
|
(function(e) {
|
|
128285
128319
|
e.None = "application/octet-stream", e.Jbig = "image/jbig", e.Dcs = "image/x-kodak-dcs", e.PackBits = "application/packbits", e.Jpeg = "image/jpeg", e.Jp2000 = "image/jp2", e.JpegXl = "image/jpegxl", e.Webp = "image/webp", e.Zstd = "application/zstd", e.Lzw = "application/lzw", e.Deflate = "application/deflate", e.Lerc = "application/lerc", e.Lzma = "application/x-lzma";
|
|
128286
|
-
})(
|
|
128320
|
+
})(Sr || (Sr = {}));
|
|
128287
128321
|
const kSA = {
|
|
128288
|
-
[bi.None]:
|
|
128289
|
-
[bi.Lzw]:
|
|
128290
|
-
[bi.Jpeg6]:
|
|
128291
|
-
[bi.Jpeg]:
|
|
128292
|
-
[bi.DeflateOther]:
|
|
128293
|
-
[bi.Deflate]:
|
|
128294
|
-
[bi.Lerc]:
|
|
128295
|
-
[bi.Lzma]:
|
|
128296
|
-
[bi.Jp2000]:
|
|
128297
|
-
[bi.Zstd]:
|
|
128298
|
-
[bi.Webp]:
|
|
128299
|
-
[bi.JpegXl]:
|
|
128300
|
-
[bi.Ccittrle]:
|
|
128301
|
-
[bi.CcittT4]:
|
|
128302
|
-
[bi.CcittT6]:
|
|
128303
|
-
[bi.T85]:
|
|
128304
|
-
[bi.T43]:
|
|
128305
|
-
[bi.Next]:
|
|
128306
|
-
[bi.Ccittrlew]:
|
|
128307
|
-
[bi.PackBits]:
|
|
128308
|
-
[bi.ThunderScan]:
|
|
128309
|
-
[bi.It8ctpad]:
|
|
128310
|
-
[bi.It8lw]:
|
|
128311
|
-
[bi.It8mp]:
|
|
128312
|
-
[bi.It8bl]:
|
|
128313
|
-
[bi.PixarFilm]:
|
|
128314
|
-
[bi.PixarLog]:
|
|
128315
|
-
[bi.Dcs]:
|
|
128316
|
-
[bi.Jbig]:
|
|
128317
|
-
[bi.SgiLog]:
|
|
128318
|
-
[bi.SgiLog24]:
|
|
128319
|
-
[bi.JpegXlDng17]:
|
|
128322
|
+
[bi.None]: Sr.None,
|
|
128323
|
+
[bi.Lzw]: Sr.Lzw,
|
|
128324
|
+
[bi.Jpeg6]: Sr.Jpeg,
|
|
128325
|
+
[bi.Jpeg]: Sr.Jpeg,
|
|
128326
|
+
[bi.DeflateOther]: Sr.Deflate,
|
|
128327
|
+
[bi.Deflate]: Sr.Deflate,
|
|
128328
|
+
[bi.Lerc]: Sr.Lerc,
|
|
128329
|
+
[bi.Lzma]: Sr.Lzma,
|
|
128330
|
+
[bi.Jp2000]: Sr.Jp2000,
|
|
128331
|
+
[bi.Zstd]: Sr.Zstd,
|
|
128332
|
+
[bi.Webp]: Sr.Webp,
|
|
128333
|
+
[bi.JpegXl]: Sr.JpegXl,
|
|
128334
|
+
[bi.Ccittrle]: Sr.None,
|
|
128335
|
+
[bi.CcittT4]: Sr.None,
|
|
128336
|
+
[bi.CcittT6]: Sr.None,
|
|
128337
|
+
[bi.T85]: Sr.Jbig,
|
|
128338
|
+
[bi.T43]: Sr.Jbig,
|
|
128339
|
+
[bi.Next]: Sr.None,
|
|
128340
|
+
[bi.Ccittrlew]: Sr.None,
|
|
128341
|
+
[bi.PackBits]: Sr.PackBits,
|
|
128342
|
+
[bi.ThunderScan]: Sr.None,
|
|
128343
|
+
[bi.It8ctpad]: Sr.None,
|
|
128344
|
+
[bi.It8lw]: Sr.None,
|
|
128345
|
+
[bi.It8mp]: Sr.None,
|
|
128346
|
+
[bi.It8bl]: Sr.None,
|
|
128347
|
+
[bi.PixarFilm]: Sr.None,
|
|
128348
|
+
[bi.PixarLog]: Sr.None,
|
|
128349
|
+
[bi.Dcs]: Sr.Dcs,
|
|
128350
|
+
[bi.Jbig]: Sr.Jbig,
|
|
128351
|
+
[bi.SgiLog]: Sr.None,
|
|
128352
|
+
[bi.SgiLog24]: Sr.None,
|
|
128353
|
+
[bi.JpegXlDng17]: Sr.JpegXl
|
|
128320
128354
|
};
|
|
128321
128355
|
function Sxe(e) {
|
|
128322
128356
|
return e == null ? null : kSA[e];
|
|
128323
128357
|
}
|
|
128324
|
-
var
|
|
128358
|
+
var Qr;
|
|
128325
128359
|
(function(e) {
|
|
128326
128360
|
e[e.Uint8 = 1] = "Uint8", e[e.Ascii = 2] = "Ascii", e[e.Uint16 = 3] = "Uint16", e[e.Uint32 = 4] = "Uint32", e[e.Rational = 5] = "Rational", e[e.Int8 = 6] = "Int8", e[e.Undefined = 7] = "Undefined", e[e.Int16 = 8] = "Int16", e[e.Int32 = 9] = "Int32", e[e.SignedRational = 10] = "SignedRational", e[e.Float32 = 11] = "Float32", e[e.Float64 = 12] = "Float64", e[e.Ifd = 13] = "Ifd", e[e.Uint64 = 16] = "Uint64", e[e.Int64 = 17] = "Int64", e[e.Ifd8 = 18] = "Ifd8";
|
|
128327
|
-
})(
|
|
128361
|
+
})(Qr || (Qr = {}));
|
|
128328
128362
|
var oC;
|
|
128329
128363
|
(function(e) {
|
|
128330
128364
|
e[e.BigTiff = 43] = "BigTiff", e[e.Tiff = 42] = "Tiff";
|
|
128331
128365
|
})(oC || (oC = {}));
|
|
128332
128366
|
function Kf(e) {
|
|
128333
128367
|
switch (e) {
|
|
128334
|
-
case
|
|
128335
|
-
case
|
|
128336
|
-
case
|
|
128337
|
-
case
|
|
128368
|
+
case Qr.Uint8:
|
|
128369
|
+
case Qr.Ascii:
|
|
128370
|
+
case Qr.Int8:
|
|
128371
|
+
case Qr.Undefined:
|
|
128338
128372
|
return 1;
|
|
128339
|
-
case
|
|
128340
|
-
case
|
|
128373
|
+
case Qr.Uint16:
|
|
128374
|
+
case Qr.Int16:
|
|
128341
128375
|
return 2;
|
|
128342
|
-
case
|
|
128343
|
-
case
|
|
128344
|
-
case
|
|
128345
|
-
case
|
|
128376
|
+
case Qr.Uint32:
|
|
128377
|
+
case Qr.Int32:
|
|
128378
|
+
case Qr.Float32:
|
|
128379
|
+
case Qr.Ifd:
|
|
128346
128380
|
return 4;
|
|
128347
|
-
case
|
|
128348
|
-
case
|
|
128349
|
-
case
|
|
128350
|
-
case
|
|
128351
|
-
case
|
|
128352
|
-
case
|
|
128381
|
+
case Qr.Rational:
|
|
128382
|
+
case Qr.SignedRational:
|
|
128383
|
+
case Qr.Float64:
|
|
128384
|
+
case Qr.Uint64:
|
|
128385
|
+
case Qr.Int64:
|
|
128386
|
+
case Qr.Ifd8:
|
|
128353
128387
|
return 8;
|
|
128354
128388
|
default:
|
|
128355
128389
|
throw new Error(`Invalid fieldType ${String(e)}`);
|
|
@@ -128390,43 +128424,43 @@ bxe[0] = 1;
|
|
|
128390
128424
|
const coA = Rxe[0] === 1;
|
|
128391
128425
|
function loA(e, A, t, i) {
|
|
128392
128426
|
switch (e) {
|
|
128393
|
-
case
|
|
128427
|
+
case Qr.Ascii:
|
|
128394
128428
|
return String.fromCharCode(A.getUint8(t));
|
|
128395
|
-
case
|
|
128396
|
-
case
|
|
128429
|
+
case Qr.Undefined:
|
|
128430
|
+
case Qr.Uint8:
|
|
128397
128431
|
return A.getUint8(t);
|
|
128398
|
-
case
|
|
128432
|
+
case Qr.Int8:
|
|
128399
128433
|
return A.getInt8(t);
|
|
128400
|
-
case
|
|
128434
|
+
case Qr.Uint16:
|
|
128401
128435
|
return A.getUint16(t, i);
|
|
128402
|
-
case
|
|
128436
|
+
case Qr.Int16:
|
|
128403
128437
|
return A.getInt16(t, i);
|
|
128404
|
-
case
|
|
128405
|
-
case
|
|
128438
|
+
case Qr.Uint32:
|
|
128439
|
+
case Qr.Ifd:
|
|
128406
128440
|
return A.getUint32(t, i);
|
|
128407
|
-
case
|
|
128441
|
+
case Qr.Int32:
|
|
128408
128442
|
return A.getInt32(t, i);
|
|
128409
|
-
case
|
|
128443
|
+
case Qr.Rational:
|
|
128410
128444
|
return [A.getUint32(t, i), A.getUint32(t + 4, i)];
|
|
128411
|
-
case
|
|
128445
|
+
case Qr.SignedRational:
|
|
128412
128446
|
return [A.getInt32(t, i), A.getInt32(t + 4, i)];
|
|
128413
|
-
case
|
|
128447
|
+
case Qr.Float64:
|
|
128414
128448
|
return A.getFloat64(t, i);
|
|
128415
|
-
case
|
|
128449
|
+
case Qr.Float32:
|
|
128416
128450
|
return A.getFloat32(t, i);
|
|
128417
|
-
case
|
|
128451
|
+
case Qr.Uint64:
|
|
128418
128452
|
return LSA(A, t, i);
|
|
128419
128453
|
default:
|
|
128420
|
-
throw new Error(`Unknown read type "${e}" "${
|
|
128454
|
+
throw new Error(`Unknown read type "${e}" "${Qr[e]}"`);
|
|
128421
128455
|
}
|
|
128422
128456
|
}
|
|
128423
128457
|
function TSA(e, A, t, i, r) {
|
|
128424
128458
|
switch (r) {
|
|
128425
|
-
case
|
|
128459
|
+
case Qr.Uint8:
|
|
128426
128460
|
return new Uint8Array(A.buffer.slice(A.byteOffset + t, A.byteOffset + t + i));
|
|
128427
|
-
case
|
|
128461
|
+
case Qr.Uint16:
|
|
128428
128462
|
return e.isLittleEndian !== coA ? null : new Uint16Array(A.buffer.slice(A.byteOffset + t, A.byteOffset + t + i));
|
|
128429
|
-
case
|
|
128463
|
+
case Qr.Uint32:
|
|
128430
128464
|
return e.isLittleEndian !== coA ? null : new Uint32Array(A.buffer.slice(A.byteOffset + t, A.byteOffset + t + i));
|
|
128431
128465
|
}
|
|
128432
128466
|
return null;
|
|
@@ -128438,7 +128472,7 @@ function pf(e, A, t, i, r, s) {
|
|
|
128438
128472
|
return A && Dxe[A] ? [g] : g;
|
|
128439
128473
|
}
|
|
128440
128474
|
switch (r) {
|
|
128441
|
-
case
|
|
128475
|
+
case Qr.Ascii:
|
|
128442
128476
|
return String.fromCharCode.apply(null, new Uint8Array(t.buffer, i, o - 1));
|
|
128443
128477
|
}
|
|
128444
128478
|
if (A === Ft.TileOffsets || A === Ft.TileByteCounts || A === Ft.StripOffsets || A === Ft.StripByteCounts) {
|
|
@@ -128891,7 +128925,7 @@ class Lxe {
|
|
|
128891
128925
|
throw new Error(`Failed to fetch bytes from offset:${A} wanted:${t} got:${r.byteLength}`);
|
|
128892
128926
|
let s = this.value(Ft.Compression);
|
|
128893
128927
|
s == null && (s = bi.None);
|
|
128894
|
-
const n = Sxe(s) ??
|
|
128928
|
+
const n = Sxe(s) ?? Sr.None;
|
|
128895
128929
|
return s === bi.Jpeg ? { mimeType: n, bytes: this.getJpegHeader(r), compression: s } : { mimeType: n, bytes: r, compression: s };
|
|
128896
128930
|
}
|
|
128897
128931
|
/**
|
|
@@ -143288,7 +143322,7 @@ function MOe() {
|
|
|
143288
143322
|
}
|
|
143289
143323
|
}));
|
|
143290
143324
|
}
|
|
143291
|
-
let ei,
|
|
143325
|
+
let ei, Cr;
|
|
143292
143326
|
function vi(B, I, h, d) {
|
|
143293
143327
|
return B.addEventListener(I, h, d), { unsubscribe: () => {
|
|
143294
143328
|
B.removeEventListener(I, h, d);
|
|
@@ -143825,7 +143859,7 @@ function MOe() {
|
|
|
143825
143859
|
return new gi(b);
|
|
143826
143860
|
}
|
|
143827
143861
|
}
|
|
143828
|
-
class
|
|
143862
|
+
class Nr extends Error {
|
|
143829
143863
|
constructor(I) {
|
|
143830
143864
|
super(I), this.name = "RuntimeError";
|
|
143831
143865
|
}
|
|
@@ -143853,10 +143887,10 @@ function MOe() {
|
|
|
143853
143887
|
}
|
|
143854
143888
|
static interpolate(I, h, d) {
|
|
143855
143889
|
const y = I.values, b = h.values;
|
|
143856
|
-
if (y.length !== b.length) throw new
|
|
143890
|
+
if (y.length !== b.length) throw new Nr(`Cannot interpolate values of different length. from: ${I.toString()}, to: ${h.toString()}`);
|
|
143857
143891
|
const v = [];
|
|
143858
143892
|
for (let x = 0; x < y.length; x += 2) {
|
|
143859
|
-
if (y[x] !== b[x]) throw new
|
|
143893
|
+
if (y[x] !== b[x]) throw new Nr(`Cannot interpolate values containing mismatched anchors. from[${x}]: ${y[x]}, to[${x}]: ${b[x]}`);
|
|
143860
143894
|
v.push(y[x]);
|
|
143861
143895
|
const [P, T] = y[x + 1], [q, H] = b[x + 1];
|
|
143862
143896
|
v.push([xI(P, q, d), xI(T, H, d)]);
|
|
@@ -143993,7 +144027,7 @@ function MOe() {
|
|
|
143993
144027
|
for (let h = 0; h < this.args.length; h++) {
|
|
143994
144028
|
const d = this.args[h].evaluate(I);
|
|
143995
144029
|
if (!eI(this.type, gs(d))) return d;
|
|
143996
|
-
if (h === this.args.length - 1) throw new
|
|
144030
|
+
if (h === this.args.length - 1) throw new Nr(`Expected value to be of type ${Nt(this.type)}, but found ${Nt(gs(d))} instead.`);
|
|
143997
144031
|
}
|
|
143998
144032
|
throw new Error();
|
|
143999
144033
|
}
|
|
@@ -144035,7 +144069,7 @@ function MOe() {
|
|
|
144035
144069
|
if (b) return b;
|
|
144036
144070
|
} else if (Array.isArray(h) && (d = h.length < 3 || h.length > 4 ? `Invalid rgba value ${JSON.stringify(h)}: expected an array containing either three or four numeric values.` : Ul(h[0], h[1], h[2], h[3]), !d)) return new Ot(h[0] / 255, h[1] / 255, h[2] / 255, h[3]);
|
|
144037
144071
|
}
|
|
144038
|
-
throw new
|
|
144072
|
+
throw new Nr(d || `Could not parse color from value '${typeof h == "string" ? h : JSON.stringify(h)}'`);
|
|
144039
144073
|
}
|
|
144040
144074
|
case "padding": {
|
|
144041
144075
|
let h;
|
|
@@ -144044,7 +144078,7 @@ function MOe() {
|
|
|
144044
144078
|
const y = jn.parse(h);
|
|
144045
144079
|
if (y) return y;
|
|
144046
144080
|
}
|
|
144047
|
-
throw new
|
|
144081
|
+
throw new Nr(`Could not parse padding from value '${typeof h == "string" ? h : JSON.stringify(h)}'`);
|
|
144048
144082
|
}
|
|
144049
144083
|
case "numberArray": {
|
|
144050
144084
|
let h;
|
|
@@ -144053,7 +144087,7 @@ function MOe() {
|
|
|
144053
144087
|
const y = ts.parse(h);
|
|
144054
144088
|
if (y) return y;
|
|
144055
144089
|
}
|
|
144056
|
-
throw new
|
|
144090
|
+
throw new Nr(`Could not parse numberArray from value '${typeof h == "string" ? h : JSON.stringify(h)}'`);
|
|
144057
144091
|
}
|
|
144058
144092
|
case "colorArray": {
|
|
144059
144093
|
let h;
|
|
@@ -144062,7 +144096,7 @@ function MOe() {
|
|
|
144062
144096
|
const y = gi.parse(h);
|
|
144063
144097
|
if (y) return y;
|
|
144064
144098
|
}
|
|
144065
|
-
throw new
|
|
144099
|
+
throw new Nr(`Could not parse colorArray from value '${typeof h == "string" ? h : JSON.stringify(h)}'`);
|
|
144066
144100
|
}
|
|
144067
144101
|
case "variableAnchorOffsetCollection": {
|
|
144068
144102
|
let h;
|
|
@@ -144071,7 +144105,7 @@ function MOe() {
|
|
|
144071
144105
|
const y = lo.parse(h);
|
|
144072
144106
|
if (y) return y;
|
|
144073
144107
|
}
|
|
144074
|
-
throw new
|
|
144108
|
+
throw new Nr(`Could not parse variableAnchorOffsetCollection from value '${typeof h == "string" ? h : JSON.stringify(h)}'`);
|
|
144075
144109
|
}
|
|
144076
144110
|
case "number": {
|
|
144077
144111
|
let h = null;
|
|
@@ -144080,7 +144114,7 @@ function MOe() {
|
|
|
144080
144114
|
const y = Number(h);
|
|
144081
144115
|
if (!isNaN(y)) return y;
|
|
144082
144116
|
}
|
|
144083
|
-
throw new
|
|
144117
|
+
throw new Nr(`Could not convert ${JSON.stringify(h)} to number.`);
|
|
144084
144118
|
}
|
|
144085
144119
|
case "formatted":
|
|
144086
144120
|
return vo.fromString(Fc(this.args[0].evaluate(I)));
|
|
@@ -144235,9 +144269,9 @@ function MOe() {
|
|
|
144235
144269
|
}
|
|
144236
144270
|
evaluate(I) {
|
|
144237
144271
|
const h = this.index.evaluate(I), d = this.input.evaluate(I);
|
|
144238
|
-
if (h < 0) throw new
|
|
144239
|
-
if (h >= d.length) throw new
|
|
144240
|
-
if (h !== Math.floor(h)) throw new
|
|
144272
|
+
if (h < 0) throw new Nr(`Array index out of bounds: ${h} < 0.`);
|
|
144273
|
+
if (h >= d.length) throw new Nr(`Array index out of bounds: ${h} > ${d.length - 1}.`);
|
|
144274
|
+
if (h !== Math.floor(h)) throw new Nr(`Array index must be an integer, but found ${h} instead.`);
|
|
144241
144275
|
return d[h];
|
|
144242
144276
|
}
|
|
144243
144277
|
eachChild(I) {
|
|
@@ -144259,8 +144293,8 @@ function MOe() {
|
|
|
144259
144293
|
evaluate(I) {
|
|
144260
144294
|
const h = this.needle.evaluate(I), d = this.haystack.evaluate(I);
|
|
144261
144295
|
if (!d) return !1;
|
|
144262
|
-
if (!dg(h, ["boolean", "string", "number", "null"])) throw new
|
|
144263
|
-
if (!dg(d, ["string", "array"])) throw new
|
|
144296
|
+
if (!dg(h, ["boolean", "string", "number", "null"])) throw new Nr(`Expected first argument to be of type boolean, string, number or null, but found ${Nt(gs(h))} instead.`);
|
|
144297
|
+
if (!dg(d, ["string", "array"])) throw new Nr(`Expected second argument to be of type array or string, but found ${Nt(gs(d))} instead.`);
|
|
144264
144298
|
return d.indexOf(h) >= 0;
|
|
144265
144299
|
}
|
|
144266
144300
|
eachChild(I) {
|
|
@@ -144287,14 +144321,14 @@ function MOe() {
|
|
|
144287
144321
|
}
|
|
144288
144322
|
evaluate(I) {
|
|
144289
144323
|
const h = this.needle.evaluate(I), d = this.haystack.evaluate(I);
|
|
144290
|
-
if (!dg(h, ["boolean", "string", "number", "null"])) throw new
|
|
144324
|
+
if (!dg(h, ["boolean", "string", "number", "null"])) throw new Nr(`Expected first argument to be of type boolean, string, number or null, but found ${Nt(gs(h))} instead.`);
|
|
144291
144325
|
let y;
|
|
144292
144326
|
if (this.fromIndex && (y = this.fromIndex.evaluate(I)), dg(d, ["string"])) {
|
|
144293
144327
|
const b = d.indexOf(h, y);
|
|
144294
144328
|
return b === -1 ? -1 : [...d.slice(0, b)].length;
|
|
144295
144329
|
}
|
|
144296
144330
|
if (dg(d, ["array"])) return d.indexOf(h, y);
|
|
144297
|
-
throw new
|
|
144331
|
+
throw new Nr(`Expected second argument to be of type array or string, but found ${Nt(gs(d))} instead.`);
|
|
144298
144332
|
}
|
|
144299
144333
|
eachChild(I) {
|
|
144300
144334
|
I(this.needle), I(this.haystack), this.fromIndex && I(this.fromIndex);
|
|
@@ -144403,7 +144437,7 @@ function MOe() {
|
|
|
144403
144437
|
let y;
|
|
144404
144438
|
if (this.endIndex && (y = this.endIndex.evaluate(I)), dg(h, ["string"])) return [...h].slice(d, y).join("");
|
|
144405
144439
|
if (dg(h, ["array"])) return h.slice(d, y);
|
|
144406
|
-
throw new
|
|
144440
|
+
throw new Nr(`Expected first argument to be of type array or string, but found ${Nt(gs(h))} instead.`);
|
|
144407
144441
|
}
|
|
144408
144442
|
eachChild(I) {
|
|
144409
144443
|
I(this.input), I(this.beginIndex), this.endIndex && I(this.endIndex);
|
|
@@ -144419,7 +144453,7 @@ function MOe() {
|
|
|
144419
144453
|
if (x === h || I < y) return x;
|
|
144420
144454
|
b = x + 1;
|
|
144421
144455
|
} else {
|
|
144422
|
-
if (!(d > I)) throw new
|
|
144456
|
+
if (!(d > I)) throw new Nr("Input is not a number.");
|
|
144423
144457
|
v = x - 1;
|
|
144424
144458
|
}
|
|
144425
144459
|
return 0;
|
|
@@ -144663,7 +144697,7 @@ function MOe() {
|
|
|
144663
144697
|
const v = this.lhs.evaluate(b), x = this.rhs.evaluate(b);
|
|
144664
144698
|
if (d && this.hasUntypedArgument) {
|
|
144665
144699
|
const P = gs(v), T = gs(x);
|
|
144666
|
-
if (P.kind !== T.kind || P.kind !== "string" && P.kind !== "number") throw new
|
|
144700
|
+
if (P.kind !== T.kind || P.kind !== "string" && P.kind !== "number") throw new Nr(`Expected arguments for "${B}" to be (string, string) or (number, number), but found (${P.kind}, ${T.kind}) instead.`);
|
|
144667
144701
|
}
|
|
144668
144702
|
if (this.collator && !d && this.hasUntypedArgument) {
|
|
144669
144703
|
const P = gs(v), T = gs(x);
|
|
@@ -144727,7 +144761,7 @@ function MOe() {
|
|
|
144727
144761
|
return !1;
|
|
144728
144762
|
}
|
|
144729
144763
|
}
|
|
144730
|
-
class
|
|
144764
|
+
class pr {
|
|
144731
144765
|
constructor(I, h, d, y, b, v) {
|
|
144732
144766
|
this.type = ge, this.number = I, this.locale = h, this.currency = d, this.unit = y, this.minFractionDigits = b, this.maxFractionDigits = v;
|
|
144733
144767
|
}
|
|
@@ -144747,7 +144781,7 @@ function MOe() {
|
|
|
144747
144781
|
let P = null;
|
|
144748
144782
|
if (y["min-fraction-digits"] && (P = h.parse(y["min-fraction-digits"], 1, YA), !P)) return null;
|
|
144749
144783
|
let T = null;
|
|
144750
|
-
return y["max-fraction-digits"] && (T = h.parse(y["max-fraction-digits"], 1, YA), !T) ? null : new
|
|
144784
|
+
return y["max-fraction-digits"] && (T = h.parse(y["max-fraction-digits"], 1, YA), !T) ? null : new pr(d, b, v, x, P, T);
|
|
144751
144785
|
}
|
|
144752
144786
|
evaluate(I) {
|
|
144753
144787
|
return new Intl.NumberFormat(this.locale ? this.locale.evaluate(I) : [], { style: this.currency ? "currency" : this.unit ? "unit" : "decimal", currency: this.currency ? this.currency.evaluate(I) : void 0, unit: this.unit ? this.unit.evaluate(I) : void 0, minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits.evaluate(I) : void 0, maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits.evaluate(I) : void 0 }).format(this.number.evaluate(I));
|
|
@@ -144842,7 +144876,7 @@ function MOe() {
|
|
|
144842
144876
|
const h = this.input.evaluate(I);
|
|
144843
144877
|
if (typeof h == "string") return [...h].length;
|
|
144844
144878
|
if (Array.isArray(h)) return h.length;
|
|
144845
|
-
throw new
|
|
144879
|
+
throw new Nr(`Expected value to be of type string or array, but found ${Nt(gs(h))} instead.`);
|
|
144846
144880
|
}
|
|
144847
144881
|
eachChild(I) {
|
|
144848
144882
|
I(this.input);
|
|
@@ -145217,7 +145251,7 @@ function MOe() {
|
|
|
145217
145251
|
for (const h of B) for (const d of h) if (Oa(d, I, !0)) return !0;
|
|
145218
145252
|
return !1;
|
|
145219
145253
|
}
|
|
145220
|
-
function
|
|
145254
|
+
function yr(B, I, h, d = 1 / 0) {
|
|
145221
145255
|
const y = Au(B), b = Au(I);
|
|
145222
145256
|
if (d !== 1 / 0 && CQ(y, b, h) >= d) return d;
|
|
145223
145257
|
if (fn(y, b)) {
|
|
@@ -145368,7 +145402,7 @@ function MOe() {
|
|
|
145368
145402
|
x = Math.min(x, qa(P.coordinates, !0, T, v, x));
|
|
145369
145403
|
break;
|
|
145370
145404
|
case "Polygon":
|
|
145371
|
-
x = Math.min(x,
|
|
145405
|
+
x = Math.min(x, yr(T, P.coordinates, v, x));
|
|
145372
145406
|
}
|
|
145373
145407
|
if (x === 0) return x;
|
|
145374
145408
|
}
|
|
@@ -145403,7 +145437,7 @@ function MOe() {
|
|
|
145403
145437
|
return !1;
|
|
145404
145438
|
}
|
|
145405
145439
|
}
|
|
145406
|
-
const $l = { "==": rQ, "!=": e0, ">": Kl, "<": jC, ">=": cB, "<=": Ol, array: Bo, at: sr, boolean: Bo, case: ma, coalesce: Mc, collator: LI, format: vc, image: _c, in: _i, "index-of": Pl, interpolate: Rs, "interpolate-hcl": Rs, "interpolate-lab": Rs, length: _o, let: Jr, literal: Ya, match: or, number: Bo, "number-format":
|
|
145440
|
+
const $l = { "==": rQ, "!=": e0, ">": Kl, "<": jC, ">=": cB, "<=": Ol, array: Bo, at: sr, boolean: Bo, case: ma, coalesce: Mc, collator: LI, format: vc, image: _c, in: _i, "index-of": Pl, interpolate: Rs, "interpolate-hcl": Rs, "interpolate-lab": Rs, length: _o, let: Jr, literal: Ya, match: or, number: Bo, "number-format": pr, object: Bo, slice: Jl, step: pg, string: Bo, "to-boolean": rI, "to-color": rI, "to-number": rI, "to-string": rI, var: Tl, within: kc, distance: wg, "global-state": Xl };
|
|
145407
145441
|
class wa {
|
|
145408
145442
|
constructor(I, h, d, y) {
|
|
145409
145443
|
this.name = I, this.type = h, this._evaluate = d, this.args = y;
|
|
@@ -145466,7 +145500,7 @@ function MOe() {
|
|
|
145466
145500
|
function Ah(B, [I, h, d, y]) {
|
|
145467
145501
|
I = I.evaluate(B), h = h.evaluate(B), d = d.evaluate(B);
|
|
145468
145502
|
const b = y ? y.evaluate(B) : 1, v = Ul(I, h, d, b);
|
|
145469
|
-
if (v) throw new
|
|
145503
|
+
if (v) throw new Nr(v);
|
|
145470
145504
|
return new Ot(I / 255, h / 255, d / 255, b, !1);
|
|
145471
145505
|
}
|
|
145472
145506
|
function QQ(B, I) {
|
|
@@ -145645,7 +145679,7 @@ function MOe() {
|
|
|
145645
145679
|
return rh(h, B.default, I.default);
|
|
145646
145680
|
}
|
|
145647
145681
|
wa.register($l, { error: [{ kind: "error" }, [ge], (B, [I]) => {
|
|
145648
|
-
throw new
|
|
145682
|
+
throw new Nr(I.evaluate(B));
|
|
145649
145683
|
}], typeof: [ge, [Ye], (B, [I]) => Nt(gs(I.evaluate(B)))], "to-rgba": [NA(YA, 4), [tt], (B, [I]) => {
|
|
145650
145684
|
const [h, d, y, b] = I.evaluate(B).rgb;
|
|
145651
145685
|
return [255 * h, 255 * d, 255 * y, b];
|
|
@@ -145731,7 +145765,7 @@ function MOe() {
|
|
|
145731
145765
|
try {
|
|
145732
145766
|
const x = this.expression.evaluate(this._evaluator);
|
|
145733
145767
|
if (x == null || typeof x == "number" && x != x) return this._defaultValue;
|
|
145734
|
-
if (this._enumValues && !(x in this._enumValues)) throw new
|
|
145768
|
+
if (this._enumValues && !(x in this._enumValues)) throw new Nr(`Expected value to be one of ${Object.keys(this._enumValues).map(((P) => JSON.stringify(P))).join(", ")}, but found ${JSON.stringify(x)} instead.`);
|
|
145735
145769
|
return x;
|
|
145736
145770
|
} catch (x) {
|
|
145737
145771
|
return this._warningHistory[x.message] || (this._warningHistory[x.message] = !0, typeof console < "u" && console.warn(x.message)), this._defaultValue;
|
|
@@ -145920,7 +145954,7 @@ function MOe() {
|
|
|
145920
145954
|
const I = B.value;
|
|
145921
145955
|
return I ? [new xA(B.key, I, "constants have been deprecated as of v8")] : [];
|
|
145922
145956
|
}
|
|
145923
|
-
function
|
|
145957
|
+
function xr(B) {
|
|
145924
145958
|
return B instanceof Number || B instanceof String || B instanceof Boolean ? B.valueOf() : B;
|
|
145925
145959
|
}
|
|
145926
145960
|
function Hc(B) {
|
|
@@ -145930,7 +145964,7 @@ function MOe() {
|
|
|
145930
145964
|
for (const h in B) I[h] = Hc(B[h]);
|
|
145931
145965
|
return I;
|
|
145932
145966
|
}
|
|
145933
|
-
return
|
|
145967
|
+
return xr(B);
|
|
145934
145968
|
}
|
|
145935
145969
|
function er(B) {
|
|
145936
145970
|
const I = B.key, h = B.value, d = B.valueSpec || {}, y = B.objectElementValidators || {}, b = B.style, v = B.styleSpec, x = B.validateSpec;
|
|
@@ -145973,7 +146007,7 @@ function MOe() {
|
|
|
145973
146007
|
return y === "number" && h != h && (y = "NaN"), y !== "number" ? [new xA(I, h, `number expected, ${y} found`)] : "minimum" in d && h < d.minimum ? [new xA(I, h, `${h} is less than the minimum value ${d.minimum}`)] : "maximum" in d && h > d.maximum ? [new xA(I, h, `${h} is greater than the maximum value ${d.maximum}`)] : [];
|
|
145974
146008
|
}
|
|
145975
146009
|
function fB(B) {
|
|
145976
|
-
const I = B.valueSpec, h =
|
|
146010
|
+
const I = B.valueSpec, h = xr(B.value.type);
|
|
145977
146011
|
let d, y, b, v = {};
|
|
145978
146012
|
const x = h !== "categorical" && B.value.property === void 0, P = !x, T = Pi(B.value.stops) === "array" && Pi(B.value.stops[0]) === "array" && Pi(B.value.stops[0][0]) === "object", q = er({ key: B.key, value: B.value, valueSpec: B.styleSpec.function, validateSpec: B.validateSpec, style: B.style, styleSpec: B.styleSpec, objectElementValidators: { stops: function(j) {
|
|
145979
146013
|
if (h === "identity") return [new xA(j.key, j.value, 'identity function may not have a "stops" property')];
|
|
@@ -145993,13 +146027,13 @@ function MOe() {
|
|
|
145993
146027
|
if (Pi(BA[0]) !== "object") return [new xA(pA, BA, `object expected, ${Pi(BA[0])} found`)];
|
|
145994
146028
|
if (BA[0].zoom === void 0) return [new xA(pA, BA, "object stop key must have zoom")];
|
|
145995
146029
|
if (BA[0].value === void 0) return [new xA(pA, BA, "object stop key must have value")];
|
|
145996
|
-
if (b && b >
|
|
145997
|
-
|
|
146030
|
+
if (b && b > xr(BA[0].zoom)) return [new xA(pA, BA[0].zoom, "stop zoom values must appear in ascending order")];
|
|
146031
|
+
xr(BA[0].zoom) !== b && (b = xr(BA[0].zoom), y = void 0, v = {}), cA = cA.concat(er({ key: `${pA}[0]`, value: BA[0], valueSpec: { zoom: {} }, validateSpec: j.validateSpec, style: j.style, styleSpec: j.styleSpec, objectElementValidators: { zoom: ko, value: iA } }));
|
|
145998
146032
|
} else cA = cA.concat(iA({ key: `${pA}[0]`, value: BA[0], validateSpec: j.validateSpec, style: j.style, styleSpec: j.styleSpec }, BA));
|
|
145999
146033
|
return iu(Hc(BA[1])) ? cA.concat([new xA(`${pA}[1]`, BA[1], "expressions are not allowed in function stops.")]) : cA.concat(j.validateSpec({ key: `${pA}[1]`, value: BA[1], valueSpec: I, validateSpec: j.validateSpec, style: j.style, styleSpec: j.styleSpec }));
|
|
146000
146034
|
}
|
|
146001
146035
|
function iA(j, cA) {
|
|
146002
|
-
const BA = Pi(j.value), pA =
|
|
146036
|
+
const BA = Pi(j.value), pA = xr(j.value), yA = j.value !== null ? j.value : cA;
|
|
146003
146037
|
if (d) {
|
|
146004
146038
|
if (BA !== d) return [new xA(j.key, yA, `${BA} stop domain type must match previous stop domain type ${d}`)];
|
|
146005
146039
|
} else d = BA;
|
|
@@ -146030,7 +146064,7 @@ function MOe() {
|
|
|
146030
146064
|
}
|
|
146031
146065
|
function gI(B) {
|
|
146032
146066
|
const I = B.key, h = B.value, d = B.valueSpec, y = [];
|
|
146033
|
-
return Array.isArray(d.values) ? d.values.indexOf(
|
|
146067
|
+
return Array.isArray(d.values) ? d.values.indexOf(xr(h)) === -1 && y.push(new xA(I, h, `expected one of [${d.values.join(", ")}], ${JSON.stringify(h)} found`)) : Object.keys(d.values).indexOf(xr(h)) === -1 && y.push(new xA(I, h, `expected one of [${Object.keys(d.values).join(", ")}], ${JSON.stringify(h)} found`)), y;
|
|
146034
146068
|
}
|
|
146035
146069
|
function Yc(B) {
|
|
146036
146070
|
return su(Hc(B.value)) ? it(oe({}, B, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : pB(B);
|
|
@@ -146041,19 +146075,19 @@ function MOe() {
|
|
|
146041
146075
|
const d = B.styleSpec;
|
|
146042
146076
|
let y, b = [];
|
|
146043
146077
|
if (I.length < 1) return [new xA(h, I, "filter array must have at least 1 element")];
|
|
146044
|
-
switch (b = b.concat(gI({ key: `${h}[0]`, value: I[0], valueSpec: d.filter_operator, style: B.style, styleSpec: B.styleSpec })),
|
|
146078
|
+
switch (b = b.concat(gI({ key: `${h}[0]`, value: I[0], valueSpec: d.filter_operator, style: B.style, styleSpec: B.styleSpec })), xr(I[0])) {
|
|
146045
146079
|
case "<":
|
|
146046
146080
|
case "<=":
|
|
146047
146081
|
case ">":
|
|
146048
146082
|
case ">=":
|
|
146049
|
-
I.length >= 2 &&
|
|
146083
|
+
I.length >= 2 && xr(I[1]) === "$type" && b.push(new xA(h, I, `"$type" cannot be use with operator "${I[0]}"`));
|
|
146050
146084
|
case "==":
|
|
146051
146085
|
case "!=":
|
|
146052
146086
|
I.length !== 3 && b.push(new xA(h, I, `filter array for operator "${I[0]}" must have 3 elements`));
|
|
146053
146087
|
case "in":
|
|
146054
146088
|
case "!in":
|
|
146055
146089
|
I.length >= 2 && (y = Pi(I[1]), y !== "string" && b.push(new xA(`${h}[1]`, I[1], `string expected, ${y} found`)));
|
|
146056
|
-
for (let v = 2; v < I.length; v++) y = Pi(I[v]),
|
|
146090
|
+
for (let v = 2; v < I.length; v++) y = Pi(I[v]), xr(I[1]) === "$type" ? b = b.concat(gI({ key: `${h}[${v}]`, value: I[v], valueSpec: d.geometry_type, style: B.style, styleSpec: B.styleSpec })) : y !== "string" && y !== "number" && y !== "boolean" && b.push(new xA(`${h}[${v}]`, I[v], `string, number, or boolean expected, ${y} found`));
|
|
146057
146091
|
break;
|
|
146058
146092
|
case "any":
|
|
146059
146093
|
case "all":
|
|
@@ -146077,7 +146111,7 @@ function MOe() {
|
|
|
146077
146111
|
if (Pi(v) === "string" && ih(q) && !q.tokens && (H = /^{([^}]+)}$/.exec(v))) return [new xA(h, v, `"${x}" does not support interpolation syntax
|
|
146078
146112
|
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(H[1])} }\`.`)];
|
|
146079
146113
|
const iA = [];
|
|
146080
|
-
return B.layerType === "symbol" && x === "text-font" && tu(Hc(v)) &&
|
|
146114
|
+
return B.layerType === "symbol" && x === "text-font" && tu(Hc(v)) && xr(v.type) === "identity" && iA.push(new xA(h, v, '"text-font" does not support identity functions')), iA.concat(d({ key: B.key, value: v, valueSpec: q, style: y, styleSpec: b, expressionContext: "property", propertyType: I, propertyKey: x }));
|
|
146081
146115
|
}
|
|
146082
146116
|
function Sa(B) {
|
|
146083
146117
|
return yB(B, "paint");
|
|
@@ -146091,13 +146125,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
146091
146125
|
const y = B.value, b = B.key, v = B.style, x = B.styleSpec;
|
|
146092
146126
|
if (Pi(y) !== "object") return [new xA(b, y, `object expected, ${Pi(y)} found`)];
|
|
146093
146127
|
y.type || y.ref || d.push(new xA(b, y, 'either "type" or "ref" is required'));
|
|
146094
|
-
let P =
|
|
146095
|
-
const T =
|
|
146128
|
+
let P = xr(y.type);
|
|
146129
|
+
const T = xr(y.ref);
|
|
146096
146130
|
if (y.id) {
|
|
146097
|
-
const q =
|
|
146131
|
+
const q = xr(y.id);
|
|
146098
146132
|
for (let H = 0; H < B.arrayIndex; H++) {
|
|
146099
146133
|
const iA = v.layers[H];
|
|
146100
|
-
|
|
146134
|
+
xr(iA.id) === q && d.push(new xA(b, y.id, `duplicate layer id "${y.id}", previously used at line ${iA.id.__line__}`));
|
|
146101
146135
|
}
|
|
146102
146136
|
}
|
|
146103
146137
|
if ("ref" in y) {
|
|
@@ -146105,10 +146139,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
146105
146139
|
["type", "source", "source-layer", "filter", "layout"].forEach(((H) => {
|
|
146106
146140
|
H in y && d.push(new xA(b, y[H], `"${H}" is prohibited for ref layers`));
|
|
146107
146141
|
})), v.layers.forEach(((H) => {
|
|
146108
|
-
|
|
146109
|
-
})), q ? q.ref ? d.push(new xA(b, y.ref, "ref cannot reference another ref layer")) : P =
|
|
146142
|
+
xr(H.id) === T && (q = H);
|
|
146143
|
+
})), q ? q.ref ? d.push(new xA(b, y.ref, "ref cannot reference another ref layer")) : P = xr(q.type) : d.push(new xA(b, y.ref, `ref layer "${T}" not found`));
|
|
146110
146144
|
} else if (P !== "background") if (y.source) {
|
|
146111
|
-
const q = v.sources && v.sources[y.source], H = q &&
|
|
146145
|
+
const q = v.sources && v.sources[y.source], H = q && xr(q.type);
|
|
146112
146146
|
q ? H === "vector" && P === "raster" ? d.push(new xA(b, y.source, `layer "${y.id}" requires a raster source`)) : H !== "raster-dem" && P === "hillshade" || H !== "raster-dem" && P === "color-relief" ? d.push(new xA(b, y.source, `layer "${y.id}" requires a raster-dem source`)) : H === "raster" && P !== "raster" ? d.push(new xA(b, y.source, `layer "${y.id}" requires a vector source`)) : H !== "vector" || y["source-layer"] ? H === "raster-dem" && P !== "hillshade" && P !== "color-relief" ? d.push(new xA(b, y.source, "raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")) : P !== "line" || !y.paint || !y.paint["line-gradient"] || H === "geojson" && q.lineMetrics || d.push(new xA(b, y, `layer "${y.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : d.push(new xA(b, y, `layer "${y.id}" must specify a "source-layer"`)) : d.push(new xA(b, y.source, `source "${y.source}" not found`));
|
|
146113
146147
|
} else d.push(new xA(b, y, 'missing required property "source"'));
|
|
146114
146148
|
return P === "raster" && (!((I = y.paint) === null || I === void 0) && I.resampling) && (!((h = y.paint) === null || h === void 0) && h["raster-resampling"]) && d.push(new xA(b, y.paint, `layer "${y.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)), d = d.concat(er({ key: b, value: y, valueSpec: x.layer, style: B.style, styleSpec: B.styleSpec, validateSpec: B.validateSpec, objectElementValidators: { "*": () => [], type: () => B.validateSpec({ key: `${b}.type`, value: y.type, valueSpec: x.layer.type, style: B.style, styleSpec: B.styleSpec, validateSpec: B.validateSpec, object: y, objectKey: "type" }), filter: Yc, layout: (q) => er({ layer: y, key: q.key, value: q.value, style: q.style, styleSpec: q.styleSpec, validateSpec: q.validateSpec, objectElementValidators: { "*": (H) => au(oe({ layerType: P }, H)) } }), paint: (q) => er({ layer: y, key: q.key, value: q.value, style: q.style, styleSpec: q.styleSpec, validateSpec: q.validateSpec, objectElementValidators: { "*": (H) => Sa(oe({ layerType: P }, H)) } }) } })), d;
|
|
@@ -146128,7 +146162,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
146128
146162
|
function pQ(B) {
|
|
146129
146163
|
const I = B.value, h = B.key, d = B.styleSpec, y = B.style, b = B.validateSpec;
|
|
146130
146164
|
if (!I.type) return [new xA(h, I, '"type" is required')];
|
|
146131
|
-
const v =
|
|
146165
|
+
const v = xr(I.type);
|
|
146132
146166
|
let x;
|
|
146133
146167
|
switch (v) {
|
|
146134
146168
|
case "vector":
|
|
@@ -146142,7 +146176,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
146142
146176
|
const pA = Pi(H);
|
|
146143
146177
|
if (H === void 0) return BA;
|
|
146144
146178
|
if (pA !== "object") return BA.push(new xA("source_raster_dem", H, `object expected, ${pA} found`)), BA;
|
|
146145
|
-
const yA =
|
|
146179
|
+
const yA = xr(H.encoding) === "custom", GA = ["redFactor", "greenFactor", "blueFactor", "baseShift"], bA = P.value.encoding ? `"${P.value.encoding}"` : "Default";
|
|
146146
146180
|
for (const LA in H) !yA && GA.includes(LA) ? BA.push(new xA(LA, H[LA], `In "${q}": "${LA}" is only valid when "encoding" is set to "custom". ${bA} encoding found`)) : j[LA] ? BA = BA.concat(P.validateSpec({ key: LA, value: H[LA], valueSpec: j[LA], validateSpec: P.validateSpec, style: cA, styleSpec: iA })) : BA.push(new xA(LA, H[LA], `unknown property "${LA}"`));
|
|
146147
146181
|
return BA;
|
|
146148
146182
|
})({ sourceName: h, value: I, style: B.style, styleSpec: d, validateSpec: b }), x;
|
|
@@ -146282,7 +146316,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
146282
146316
|
} };
|
|
146283
146317
|
function M(B) {
|
|
146284
146318
|
const I = B.value, h = B.valueSpec, d = B.styleSpec;
|
|
146285
|
-
return B.validateSpec = M, h.expression && tu(
|
|
146319
|
+
return B.validateSpec = M, h.expression && tu(xr(I)) ? fB(B) : h.expression && iu(Hc(I)) ? it(B) : h.type && R[h.type] ? R[h.type](B) : er(oe({}, B, { valueSpec: h.type ? d[h.type] : h }));
|
|
146286
146320
|
}
|
|
146287
146321
|
function k(B) {
|
|
146288
146322
|
const I = B.value, h = B.key, d = cI(B);
|
|
@@ -147691,7 +147725,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
147691
147725
|
return 256 * (B = fe(Math.floor(B), 0, 255)) + fe(Math.floor(I), 0, 255);
|
|
147692
147726
|
}
|
|
147693
147727
|
Rt.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, pe("SegmentVector", Rt);
|
|
147694
|
-
const
|
|
147728
|
+
const Mr = rs([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]), zs = rs([{ name: "a_dasharray_from", components: 4, type: "Uint16" }, { name: "a_dasharray_to", components: 4, type: "Uint16" }]);
|
|
147695
147729
|
var qr, on, yn, Lo = { exports: {} }, Ps = { exports: {} }, sa = { exports: {} }, uo = (function() {
|
|
147696
147730
|
if (yn) return Lo.exports;
|
|
147697
147731
|
yn = 1;
|
|
@@ -147939,7 +147973,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
147939
147973
|
return (h = I.patterns) === null || h === void 0 ? void 0 : h[this.layerId];
|
|
147940
147974
|
}
|
|
147941
147975
|
getVertexAttributes() {
|
|
147942
|
-
return
|
|
147976
|
+
return Mr.members;
|
|
147943
147977
|
}
|
|
147944
147978
|
emplace(I, h, d, y) {
|
|
147945
147979
|
I.emplace(h, d.tlbr[0], d.tlbr[1], d.tlbr[2], d.tlbr[3], y.tlbr[0], y.tlbr[1], y.tlbr[2], y.tlbr[3], d.pixelRatio, y.pixelRatio);
|
|
@@ -149495,8 +149529,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
149495
149529
|
for (const Xe of j) {
|
|
149496
149530
|
const $e = [], Ve = [];
|
|
149497
149531
|
for (const Pe of Xe) {
|
|
149498
|
-
const ut = Pe.x, St = Pe.y, mt = pA[0] * ut + pA[4] * St + pA[12], pt = pA[1] * ut + pA[5] * St + pA[13], ci = pA[2] * ut + pA[6] * St + pA[14],
|
|
149499
|
-
ws.z =
|
|
149532
|
+
const ut = Pe.x, St = Pe.y, mt = pA[0] * ut + pA[4] * St + pA[12], pt = pA[1] * ut + pA[5] * St + pA[13], ci = pA[2] * ut + pA[6] * St + pA[14], ur = pA[3] * ut + pA[7] * St + pA[15], wr = ci + OA, Hr = ur + jA, Ho = mt + Ee, Js = pt + de, Un = ci + Oe, Ao = ur + Le, ws = new a((mt + bA) / Hr, (pt + LA) / Hr);
|
|
149533
|
+
ws.z = wr / Hr, $e.push(ws);
|
|
149500
149534
|
const Qo = new a(Ho / Ao, Js / Ao);
|
|
149501
149535
|
Qo.z = Un / Ao, Ve.push(Qo);
|
|
149502
149536
|
}
|
|
@@ -150427,8 +150461,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
150427
150461
|
for (let mt = 1; mt < St; mt++) {
|
|
150428
150462
|
let pt = mt / St;
|
|
150429
150463
|
if (pt !== 0.5) {
|
|
150430
|
-
const
|
|
150431
|
-
pt += pt *
|
|
150464
|
+
const ur = pt - 0.5;
|
|
150465
|
+
pt += pt * ur * (pt - 1) * ((1.0904 + OA * (OA * (3.55645 - 1.43519 * OA) - 3.2452)) * ur * ur + (0.848013 + OA * (0.215638 * OA - 1.06021)));
|
|
150432
150466
|
}
|
|
150433
150467
|
const ci = GA.sub(yA)._mult(pt)._add(yA)._unit()._mult(Le ? -1 : 1);
|
|
150434
150468
|
this.addHalfVertex(cA, ci.x, ci.y, !1, Le, 0, j);
|
|
@@ -151137,7 +151171,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
151137
151171
|
})(BA, yA);
|
|
151138
151172
|
const LA = [], OA = { positionedLines: LA, text: BA.toString(), top: q[1], bottom: q[1], left: q[0], right: q[0], writingMode: H, iconsInText: !1, verticalizable: !1 };
|
|
151139
151173
|
return (function(jA, Ee, de, Oe, Le, Xe, $e, Ve, Pe, ut, St, mt) {
|
|
151140
|
-
let pt = 0, ci = 0,
|
|
151174
|
+
let pt = 0, ci = 0, ur = 0, wr = 0;
|
|
151141
151175
|
const Hr = Ve === "right" ? 1 : Ve === "left" ? 0 : 0.5, Ho = Xn / mt;
|
|
151142
151176
|
let Js = 0;
|
|
151143
151177
|
for (const ws of Le) {
|
|
@@ -151165,9 +151199,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
151165
151199
|
const { rect: zc, metrics: sD, baselineOffset: Qu } = NB;
|
|
151166
151200
|
to.y += Qu, to.scale = _s.scale, to.metrics = sD, to.rect = zc, ga.push(to), Hs ? (jA.verticalizable = !0, pt += ("imageName" in _s ? sD.advance : Xn) * _s.scale + ut) : pt += sD.advance * _s.scale + ut, Xa++;
|
|
151167
151201
|
}
|
|
151168
|
-
ga.length !== 0 && (
|
|
151202
|
+
ga.length !== 0 && (ur = Math.max(pt - ut, ur), p1A(ga, 0, ga.length - 1, Hr)), pt = 0, aa.lineOffset = Math.max(Za, (Qo - 1) * Xn);
|
|
151169
151203
|
const HI = Xe * Qo + Za;
|
|
151170
|
-
ci += HI,
|
|
151204
|
+
ci += HI, wr = Math.max(HI, wr), ++Js;
|
|
151171
151205
|
}
|
|
151172
151206
|
const { horizontalAlign: Un, verticalAlign: Ao } = xL($e);
|
|
151173
151207
|
(function(ws, Qo, aa, ga, Za, Yo, Xa, HI, eo) {
|
|
@@ -151175,7 +151209,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
151175
151209
|
let wn = 0;
|
|
151176
151210
|
wn = Yo !== Xa ? -HI * ga - -17 : -ga * eo * Xa + 0.5 * Xa;
|
|
151177
151211
|
for (const Hs of ws) for (const to of Hs.positionedGlyphs) to.x += _s, to.y += wn;
|
|
151178
|
-
})(jA.positionedLines, Hr, Un, Ao,
|
|
151212
|
+
})(jA.positionedLines, Hr, Un, Ao, ur, wr, Xe, ci, Le.length), jA.top += -Ao * ci, jA.bottom = jA.top + ci, jA.left += -Un * ur, jA.right = jA.left + ur;
|
|
151179
151213
|
})(OA, I, h, d, pA, v, x, P, H, T, iA, cA), !(function(jA) {
|
|
151180
151214
|
for (const Ee of jA) if (Ee.positionedGlyphs.length !== 0) return !1;
|
|
151181
151215
|
return !0;
|
|
@@ -152795,11 +152829,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
152795
152829
|
const St = Oe + Le, mt = $e;
|
|
152796
152830
|
let pt = $e;
|
|
152797
152831
|
const ci = $e + Ve;
|
|
152798
|
-
let
|
|
152832
|
+
let ur = 0, wr = 0;
|
|
152799
152833
|
for (; ut < St && pt < ci; ) {
|
|
152800
152834
|
const Hr = de[ut] >>> Pe & 255;
|
|
152801
|
-
if (Pe += 8, ut += Pe >>> 5, Pe &= 31,
|
|
152802
|
-
else if (
|
|
152835
|
+
if (Pe += 8, ut += Pe >>> 5, Pe &= 31, ur |= (127 & Hr) << wr, 128 & Hr) Xe[pt++] = 0 | ur, ur = 0, wr = 0;
|
|
152836
|
+
else if (wr += 7, wr > 28) throw new Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${wr}, partial=${ur}, decoded=${pt - mt}/${Ve}, inPos=${ut}, inEnd=${St})`);
|
|
152803
152837
|
}
|
|
152804
152838
|
if (pt !== ci) throw new Error(`FastPFOR VByte: truncated stream (decoded=${pt - mt}, expected=${Ve}, consumedWords=${ut - Oe}/${Le}, vbyteStart=${Oe}, vbyteEnd=${St})`);
|
|
152805
152839
|
})(yA, LA, yA.length - LA | 0, jA, OA, GA - OA | 0), jA;
|
|
@@ -153548,14 +153582,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
153548
153582
|
case tr.DELTA:
|
|
153549
153583
|
if (Pe.logicalLevelTechnique2 === tr.RLE) {
|
|
153550
153584
|
const mt = Pe;
|
|
153551
|
-
if (!ut) return (function(pt, ci,
|
|
153552
|
-
const
|
|
153585
|
+
if (!ut) return (function(pt, ci, ur) {
|
|
153586
|
+
const wr = new BigInt64Array(ur);
|
|
153553
153587
|
let Hr = 0, Ho = 0n;
|
|
153554
153588
|
for (let Js = 0; Js < ci; Js++) {
|
|
153555
153589
|
const Un = Number(pt[Js]), Ao = ba(pt[Js + ci]);
|
|
153556
|
-
for (let ws = 0; ws < Un; ws++) Ho += Ao,
|
|
153590
|
+
for (let ws = 0; ws < Un; ws++) Ho += Ao, wr[Hr++] = Ho;
|
|
153557
153591
|
}
|
|
153558
|
-
return
|
|
153592
|
+
return wr;
|
|
153559
153593
|
})(Ve, mt.runs, mt.numRleValues);
|
|
153560
153594
|
St = v9(Ve = XL(Ve, mt.runs, mt.numRleValues));
|
|
153561
153595
|
} else St = v9(Ve);
|
|
@@ -153566,14 +153600,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
153566
153600
|
ci = 0;
|
|
153567
153601
|
for (let Hr = 0; Hr < pt; Hr++) ci += Number(mt[Hr]);
|
|
153568
153602
|
}
|
|
153569
|
-
const
|
|
153570
|
-
let
|
|
153603
|
+
const ur = new BigInt64Array(ci);
|
|
153604
|
+
let wr = 0;
|
|
153571
153605
|
for (let Hr = 0; Hr < pt; Hr++) {
|
|
153572
153606
|
const Ho = Number(mt[Hr]);
|
|
153573
153607
|
let Js = mt[Hr + pt];
|
|
153574
|
-
Js = ba(Js),
|
|
153608
|
+
Js = ba(Js), ur.fill(Js, wr, wr + Ho), wr += Ho;
|
|
153575
153609
|
}
|
|
153576
|
-
return
|
|
153610
|
+
return ur;
|
|
153577
153611
|
})(Ve, Pe.runs, Pe.numRleValues);
|
|
153578
153612
|
break;
|
|
153579
153613
|
case tr.NONE:
|
|
@@ -154252,7 +154286,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154252
154286
|
(b.textFitWidth || b.textFitHeight) && (T = g9(B)), yA = lF(q, 0, Pe[0]), bA = lF(H, 0, Pe[1]), GA = lF(q, Pe[0], Pe[2]), LA = lF(H, Pe[1], Pe[3]), OA = Pe[0] - yA, Ee = Pe[1] - bA, jA = ut - GA, de = St - LA;
|
|
154253
154287
|
}
|
|
154254
154288
|
const Oe = T.x1, Le = T.y1, Xe = T.x2 - Oe, $e = T.y2 - Le, Ve = (Pe, ut, St, mt) => {
|
|
154255
|
-
const pt = hF(Pe.stretch - yA, GA, Xe, Oe), ci = BF(Pe.fixed - OA, jA, Pe.stretch, j),
|
|
154289
|
+
const pt = hF(Pe.stretch - yA, GA, Xe, Oe), ci = BF(Pe.fixed - OA, jA, Pe.stretch, j), ur = hF(ut.stretch - bA, LA, $e, Le), wr = BF(ut.fixed - Ee, de, ut.stretch, cA), Hr = hF(St.stretch - yA, GA, Xe, Oe), Ho = BF(St.fixed - OA, jA, St.stretch, j), Js = hF(mt.stretch - bA, LA, $e, Le), Un = BF(mt.fixed - Ee, de, mt.stretch, cA), Ao = new a(pt, ur), ws = new a(Hr, ur), Qo = new a(Hr, Js), aa = new a(pt, Js), ga = new a(ci / v, wr / v), Za = new a(Ho / v, Un / v), Yo = I * Math.PI / 180;
|
|
154256
154290
|
if (Yo) {
|
|
154257
154291
|
const eo = Math.sin(Yo), _s = Math.cos(Yo), wn = [_s, -eo, eo, _s];
|
|
154258
154292
|
Ao._matMult(wn), ws._matMult(wn), aa._matMult(wn), Qo._matMult(wn);
|
|
@@ -154487,20 +154521,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154487
154521
|
let iA = b.textMaxSize.evaluate(I, {});
|
|
154488
154522
|
iA === void 0 && (iA = v);
|
|
154489
154523
|
const j = B.layers[0].layout, cA = j.get("icon-offset").evaluate(I, {}, q), BA = Qz(h.horizontal), pA = v / 24, yA = B.tilePixelRatio * pA, GA = B.tilePixelRatio * iA / 24, bA = B.tilePixelRatio * x, LA = B.tilePixelRatio * j.get("symbol-spacing"), OA = j.get("text-padding") * B.tilePixelRatio, jA = (function(St, mt, pt, ci = 1) {
|
|
154490
|
-
const
|
|
154491
|
-
return [
|
|
154524
|
+
const ur = St.get("icon-padding").evaluate(mt, {}, pt), wr = ur?.values;
|
|
154525
|
+
return [wr[0] * ci, wr[1] * ci, wr[2] * ci, wr[3] * ci];
|
|
154492
154526
|
})(j, I, q, B.tilePixelRatio), Ee = j.get("text-max-angle") / 180 * Math.PI, de = j.get("text-rotation-alignment") !== "viewport" && j.get("symbol-placement") !== "point", Oe = j.get("icon-rotation-alignment") === "map" && j.get("symbol-placement") !== "point", Le = j.get("symbol-placement"), Xe = LA / 2, $e = j.get("icon-text-fit");
|
|
154493
154527
|
let Ve;
|
|
154494
154528
|
d && $e !== "none" && (B.allowVerticalPlacement && h.vertical && (Ve = I9(d, h.vertical, $e, j.get("icon-text-fit-padding"), cA, pA)), BA && (d = I9(d, BA, $e, j.get("icon-text-fit-padding"), cA, pA)));
|
|
154495
154529
|
const Pe = q ? H.line.getGranularityForZoomLevel(q.z) : 1, ut = (St, mt) => {
|
|
154496
|
-
mt.x < 0 || mt.x >= HA || mt.y < 0 || mt.y >= HA || (function(pt, ci,
|
|
154497
|
-
const Qu = pt.addToLineVertexArray(ci,
|
|
154530
|
+
mt.x < 0 || mt.x >= HA || mt.y < 0 || mt.y >= HA || (function(pt, ci, ur, wr, Hr, Ho, Js, Un, Ao, ws, Qo, aa, ga, Za, Yo, Xa, HI, eo, _s, wn, Hs, to, NB, zc, sD) {
|
|
154531
|
+
const Qu = pt.addToLineVertexArray(ci, ur);
|
|
154498
154532
|
let _Q, q0, W0, V0, dz = 0, fz = 0, pz = 0, yz = 0, IU = -1, cU = -1;
|
|
154499
154533
|
const MB = {};
|
|
154500
154534
|
let mz = Zn("");
|
|
154501
|
-
if (pt.allowVerticalPlacement &&
|
|
154535
|
+
if (pt.allowVerticalPlacement && wr.vertical) {
|
|
154502
154536
|
const Ia = Un.layout.get("text-rotate").evaluate(Hs, {}, zc) + 90;
|
|
154503
|
-
W0 = new CF(Ao, ci, ws, Qo, aa,
|
|
154537
|
+
W0 = new CF(Ao, ci, ws, Qo, aa, wr.vertical, ga, Za, Yo, Ia), Js && (V0 = new CF(Ao, ci, ws, Qo, aa, Js, HI, eo, Yo, Ia));
|
|
154504
154538
|
}
|
|
154505
154539
|
if (Hr) {
|
|
154506
154540
|
const Ia = Un.layout.get("icon-rotate").evaluate(Hs, {}), BI = Un.layout.get("icon-text-fit") !== "none", xQ = hz(Hr, Ia, NB, BI), Zc = Js ? hz(Js, Ia, NB, BI) : void 0;
|
|
@@ -154509,18 +154543,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154509
154543
|
let Ch = null;
|
|
154510
154544
|
GQ.kind === "source" ? (Ch = [RB * Un.layout.get("icon-size").evaluate(Hs, {})], Ch[0] > lu && ze(`${pt.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : GQ.kind === "composite" && (Ch = [RB * to.compositeIconSizes[0].evaluate(Hs, {}, zc), RB * to.compositeIconSizes[1].evaluate(Hs, {}, zc)], (Ch[0] > lu || Ch[1] > lu) && ze(`${pt.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), pt.addSymbols(pt.icon, xQ, Ch, wn, _s, Hs, n.ax.none, ci, Qu.lineStartIndex, Qu.lineLength, -1, zc), IU = pt.icon.placedSymbolArray.length - 1, Zc && (fz = 4 * Zc.length, pt.addSymbols(pt.icon, Zc, Ch, wn, _s, Hs, n.ax.vertical, ci, Qu.lineStartIndex, Qu.lineLength, -1, zc), cU = pt.icon.placedSymbolArray.length - 1);
|
|
154511
154545
|
}
|
|
154512
|
-
const wz = Object.keys(
|
|
154546
|
+
const wz = Object.keys(wr.horizontal);
|
|
154513
154547
|
for (const Ia of wz) {
|
|
154514
|
-
const BI =
|
|
154548
|
+
const BI = wr.horizontal[Ia];
|
|
154515
154549
|
if (!_Q) {
|
|
154516
154550
|
mz = Zn(BI.text);
|
|
154517
154551
|
const Zc = Un.layout.get("text-rotate").evaluate(Hs, {}, zc);
|
|
154518
154552
|
_Q = new CF(Ao, ci, ws, Qo, aa, BI, ga, Za, Yo, Zc);
|
|
154519
154553
|
}
|
|
154520
154554
|
const xQ = BI.positionedLines.length === 1;
|
|
154521
|
-
if (pz += Ez(pt, ci, BI, Ho, Un, Yo, Hs, Xa, Qu,
|
|
154555
|
+
if (pz += Ez(pt, ci, BI, Ho, Un, Yo, Hs, Xa, Qu, wr.vertical ? n.ax.horizontal : n.ax.horizontalOnly, xQ ? wz : [Ia], MB, IU, to, zc), xQ) break;
|
|
154522
154556
|
}
|
|
154523
|
-
|
|
154557
|
+
wr.vertical && (yz += Ez(pt, ci, wr.vertical, Ho, Un, Yo, Hs, Xa, Qu, n.ax.vertical, ["vertical"], MB, cU, to, zc));
|
|
154524
154558
|
const QNA = _Q ? _Q.boxStartIndex : pt.collisionBoxArray.length, dNA = _Q ? _Q.boxEndIndex : pt.collisionBoxArray.length, fNA = W0 ? W0.boxStartIndex : pt.collisionBoxArray.length, pNA = W0 ? W0.boxEndIndex : pt.collisionBoxArray.length, yNA = q0 ? q0.boxStartIndex : pt.collisionBoxArray.length, mNA = q0 ? q0.boxEndIndex : pt.collisionBoxArray.length, wNA = V0 ? V0.boxStartIndex : pt.collisionBoxArray.length, DNA = V0 ? V0.boxEndIndex : pt.collisionBoxArray.length;
|
|
154525
154559
|
let jc = -1;
|
|
154526
154560
|
const uF = (Ia, BI) => Ia?.circleDiameter ? Math.max(Ia.circleDiameter, BI) : BI;
|
|
@@ -154564,17 +154598,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154564
154598
|
if (!Ve.rect) continue;
|
|
154565
154599
|
const Pe = Ve.rect || {};
|
|
154566
154600
|
let ut = 4, St = !0, mt = 1, pt = 0;
|
|
154567
|
-
const ci = (jA || Oe) && Ve.vertical,
|
|
154601
|
+
const ci = (jA || Oe) && Ve.vertical, ur = Ve.metrics.advance * Ve.scale / 2;
|
|
154568
154602
|
if (Oe && bA.verticalizable && (pt = $e.lineOffset / 2 - (Ve.imageName ? -(Xn - Ve.metrics.width * Ve.scale) / 2 : (Ve.scale - 1) * Xn)), Ve.imageName) {
|
|
154569
154603
|
const eo = de[Ve.imageName];
|
|
154570
154604
|
St = eo.sdf, mt = eo.pixelRatio, ut = 1 / mt;
|
|
154571
154605
|
}
|
|
154572
|
-
const
|
|
154573
|
-
let Hr = jA ? [0, 0] : [Ve.x +
|
|
154606
|
+
const wr = jA ? [Ve.x + ur, Ve.y] : [0, 0];
|
|
154607
|
+
let Hr = jA ? [0, 0] : [Ve.x + ur + LA[0], Ve.y + LA[1] - pt], Ho = [0, 0];
|
|
154574
154608
|
ci && (Ho = Hr, Hr = [0, 0]);
|
|
154575
|
-
const Js = Ve.metrics.isDoubleResolution ? 2 : 1, Un = (Ve.metrics.left - ut) * Ve.scale -
|
|
154609
|
+
const Js = Ve.metrics.isDoubleResolution ? 2 : 1, Un = (Ve.metrics.left - ut) * Ve.scale - ur + Hr[0], Ao = (-Ve.metrics.top - ut) * Ve.scale + Hr[1], ws = Un + Pe.w / Js * Ve.scale / mt, Qo = Ao + Pe.h / Js * Ve.scale / mt, aa = new a(Un, Ao), ga = new a(ws, Ao), Za = new a(Un, Qo), Yo = new a(ws, Qo);
|
|
154576
154610
|
if (ci) {
|
|
154577
|
-
const eo = new a(-
|
|
154611
|
+
const eo = new a(-ur, ur - -17), _s = -Math.PI / 2, wn = 12 - ur, Hs = new a(22 - wn, -(Ve.imageName ? wn : 0)), to = new a(...Ho);
|
|
154578
154612
|
aa._rotateAround(_s, eo)._add(Hs)._add(to), ga._rotateAround(_s, eo)._add(Hs)._add(to), Za._rotateAround(_s, eo)._add(Hs)._add(to), Yo._rotateAround(_s, eo)._add(Hs)._add(to);
|
|
154579
154613
|
}
|
|
154580
154614
|
if (Le) {
|
|
@@ -154582,7 +154616,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154582
154616
|
aa._matMult(wn), ga._matMult(wn), Za._matMult(wn), Yo._matMult(wn);
|
|
154583
154617
|
}
|
|
154584
154618
|
const Xa = new a(0, 0), HI = new a(0, 0);
|
|
154585
|
-
Xe.push({ tl: aa, tr: ga, bl: Za, br: Yo, tex: Pe, writingMode: bA.writingMode, glyphOffset:
|
|
154619
|
+
Xe.push({ tl: aa, tr: ga, bl: Za, br: Yo, tex: Pe, writingMode: bA.writingMode, glyphOffset: wr, sectionIndex: Ve.sectionIndex, isSDF: St, pixelOffsetTL: Xa, pixelOffsetBR: HI, minFontScaleX: 0, minFontScaleY: 0 });
|
|
154586
154620
|
}
|
|
154587
154621
|
return Xe;
|
|
154588
154622
|
})(0, h, x, y, b, v, d, B.allowVerticalPlacement), pA = B.textSizeData;
|
|
@@ -155196,9 +155230,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
155196
155230
|
}
|
|
155197
155231
|
return (function(b, v, x, P, T) {
|
|
155198
155232
|
const q = b.width, H = b.height;
|
|
155199
|
-
ei &&
|
|
155200
|
-
const iA =
|
|
155201
|
-
return
|
|
155233
|
+
ei && Cr || (ei = new OffscreenCanvas(q, H), Cr = ei.getContext("2d", { willReadFrequently: !0 })), ei.width = q, ei.height = H, Cr.drawImage(b, 0, 0, q, H);
|
|
155234
|
+
const iA = Cr.getImageData(v, x, P, T);
|
|
155235
|
+
return Cr.clearRect(0, 0, q, H), iA.data;
|
|
155202
155236
|
})(B, I, h, d, y);
|
|
155203
155237
|
}));
|
|
155204
155238
|
}, n.cZ = QV, n.c_ = class {
|
|
@@ -156937,7 +156971,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
156937
156971
|
function ei(_) {
|
|
156938
156972
|
return _.type === "GeometryCollection" ? _.geometries.flatMap(((c) => ei(c))) : Ut(_.coordinates);
|
|
156939
156973
|
}
|
|
156940
|
-
function
|
|
156974
|
+
function Cr(_) {
|
|
156941
156975
|
const c = new We();
|
|
156942
156976
|
let u;
|
|
156943
156977
|
switch (_.type) {
|
|
@@ -157014,7 +157048,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
157014
157048
|
}
|
|
157015
157049
|
getBounds() {
|
|
157016
157050
|
return o._(this, void 0, void 0, (function* () {
|
|
157017
|
-
return
|
|
157051
|
+
return Cr(yield this.getData());
|
|
157018
157052
|
}));
|
|
157019
157053
|
}
|
|
157020
157054
|
setClusterOptions(c) {
|
|
@@ -157124,7 +157158,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
157124
157158
|
return c.removeAll || this._options.cluster ? void 0 : m;
|
|
157125
157159
|
}
|
|
157126
157160
|
_getShouldReloadTileOptions(c) {
|
|
157127
|
-
if (c) return { affectedBounds: c.filter(Boolean).map(((u) =>
|
|
157161
|
+
if (c) return { affectedBounds: c.filter(Boolean).map(((u) => Cr(u))) };
|
|
157128
157162
|
}
|
|
157129
157163
|
shouldReloadTile(c, { affectedBounds: u }) {
|
|
157130
157164
|
if (c.state === "loading") return !0;
|
|
@@ -158466,20 +158500,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
158466
158500
|
const st = 2.5 * _e;
|
|
158467
158501
|
if (oA) {
|
|
158468
158502
|
const Zt = this.projectPathToScreenSpace(wt, Ce);
|
|
158469
|
-
wt = Zt.some(((
|
|
158503
|
+
wt = Zt.some(((Mr) => Mr.signedDistanceFromCamera <= 0)) ? [] : Zt.map(((Mr) => Mr.point));
|
|
158470
158504
|
}
|
|
158471
158505
|
let Rt = [];
|
|
158472
158506
|
if (wt.length > 0) {
|
|
158473
|
-
const Zt = wt[0].clone(),
|
|
158474
|
-
for (let zs = 1; zs < wt.length; zs++) Zt.x = Math.min(Zt.x, wt[zs].x), Zt.y = Math.min(Zt.y, wt[zs].y),
|
|
158475
|
-
Rt = Zt.x >= je.x &&
|
|
158507
|
+
const Zt = wt[0].clone(), Mr = wt[0].clone();
|
|
158508
|
+
for (let zs = 1; zs < wt.length; zs++) Zt.x = Math.min(Zt.x, wt[zs].x), Zt.y = Math.min(Zt.y, wt[zs].y), Mr.x = Math.max(Mr.x, wt[zs].x), Mr.y = Math.max(Mr.y, wt[zs].y);
|
|
158509
|
+
Rt = Zt.x >= je.x && Mr.x <= Ze.x && Zt.y >= je.y && Mr.y <= Ze.y ? [wt] : Mr.x < je.x || Zt.x > Ze.x || Mr.y < je.y || Zt.y > Ze.y ? [] : o.aG([wt], je.x, je.y, Ze.x, Ze.y);
|
|
158476
158510
|
}
|
|
158477
158511
|
for (const Zt of Rt) {
|
|
158478
158512
|
lt.reset(Zt, 0.25 * _e);
|
|
158479
|
-
let
|
|
158480
|
-
|
|
158481
|
-
for (let zs = 0; zs <
|
|
158482
|
-
const qr = zs / Math.max(
|
|
158513
|
+
let Mr = 0;
|
|
158514
|
+
Mr = lt.length <= 0.5 * _e ? 1 : Math.ceil(lt.paddedLength / st) + 1;
|
|
158515
|
+
for (let zs = 0; zs < Mr; zs++) {
|
|
158516
|
+
const qr = zs / Math.max(Mr - 1, 1), on = lt.lerp(qr), yn = on.x + ds, Lo = on.y + ds;
|
|
158483
158517
|
zA.push(yn, Lo, _e, 0);
|
|
158484
158518
|
const Ps = yn - _e, sa = Lo - _e, uo = yn + _e, Zn = Lo + _e;
|
|
158485
158519
|
if (se && (se = this.isOffscreen(Ps, sa, uo, Zn)), le || (le = this.isInsideGrid(Ps, sa, uo, Zn)), c !== "always" && this.grid.hitTestCircle(yn, Lo, _e, c, aA) && (Ae = !0, !X)) return { circles: [], offscreen: !1, collisionDetected: Ae };
|
|
@@ -158558,8 +158592,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
158558
158592
|
let fA = 1, wA = 0, UA = 0, zA = 1;
|
|
158559
158593
|
const ee = c.anchorPointX + z[0], $A = c.anchorPointY + z[1];
|
|
158560
158594
|
if (K && !L) {
|
|
158561
|
-
const wt = this.projectAndGetPerspectiveRatio(ee + 1, $A, F, oA, EA), st = wt.x - X.x, Rt = Math.atan((wt.y - X.y) / st) + (st < 0 ? Math.PI : 0), Zt = Math.sin(Rt),
|
|
158562
|
-
fA =
|
|
158595
|
+
const wt = this.projectAndGetPerspectiveRatio(ee + 1, $A, F, oA, EA), st = wt.x - X.x, Rt = Math.atan((wt.y - X.y) / st) + (st < 0 ? Math.PI : 0), Zt = Math.sin(Rt), Mr = Math.cos(Rt);
|
|
158596
|
+
fA = Mr, wA = Zt, UA = -Zt, zA = Mr;
|
|
158563
158597
|
} else if (!K && L) {
|
|
158564
158598
|
const wt = Qt(this.transform);
|
|
158565
158599
|
fA = wt.vecEast[0], wA = wt.vecEast[1], UA = wt.vecSouth[0], zA = wt.vecSouth[1];
|
|
@@ -158653,7 +158687,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
158653
158687
|
const { bucket: F, layout: L, translationText: K, translationIcon: z, unwrappedTileID: X, pitchedLabelPlaneMatrix: oA, textPixelRatio: aA, holdingForFade: EA, collisionBoxArray: fA, partiallyEvaluatedTextSize: wA, collisionGroup: UA } = c.parameters, zA = L.get("text-optional"), ee = L.get("icon-optional"), $A = o.aN(L, "text-overlap", "text-allow-overlap"), te = $A === "always", Ce = o.aN(L, "icon-overlap", "icon-allow-overlap"), ie = Ce === "always", Ae = L.get("text-rotation-alignment") === "map", le = L.get("text-pitch-alignment") === "map", se = L.get("icon-text-fit") !== "none", _e = L.get("symbol-z-order") === "viewport-y", je = te && (ie || !F.hasIconData() || ee), Ze = ie && (te || !F.hasTextData() || zA);
|
|
158654
158688
|
!F.collisionArrays && fA && F.deserializeCollisionBoxes(fA);
|
|
158655
158689
|
const lt = this.retainedQueryData[F.bucketInstanceId].tileID, It = this._getTerrainElevationFunc(lt), Jt = this.transform.getFastPathSimpleProjectionMatrix(lt), wt = (st, Rt, Zt) => {
|
|
158656
|
-
var
|
|
158690
|
+
var Mr, zs;
|
|
158657
158691
|
if (u[st.crossTileID]) return;
|
|
158658
158692
|
if (EA) return void (this.placements[st.crossTileID] = new ZE(!1, !1, !1));
|
|
158659
158693
|
let qr = !1, on = !1, yn = !0, Lo = null, Ps = { box: null, placeable: !1, offscreen: null, occluded: !1 }, sa = { placeable: !1 }, uo = null, Zn = null, Uo = null, ah = 0, gh = 0, Ih = 0;
|
|
@@ -158682,7 +158716,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
158682
158716
|
return F.allowVerticalPlacement && st.numVerticalGlyphVertices > 0 && cs ? Ms(cs, o.ax.vertical) : { box: null, offscreen: null };
|
|
158683
158717
|
})), PI(Ps?.placeable);
|
|
158684
158718
|
} else {
|
|
158685
|
-
let Ms = o.aM[(zs = (
|
|
158719
|
+
let Ms = o.aM[(zs = (Mr = this.prevPlacement) === null || Mr === void 0 ? void 0 : Mr.variableOffsets[st.crossTileID]) === null || zs === void 0 ? void 0 : zs.anchor];
|
|
158686
158720
|
const cs = (vs, SB, y0) => {
|
|
158687
158721
|
const qc = vs.x2 - vs.x1, Uw = vs.y2 - vs.y1, OR = st.textBoxScale, Tw = se && Ce === "never" ? SB : null;
|
|
158688
158722
|
let lh = null, hh = $A === "never" ? 1 : 2, Bh = "never";
|
|
@@ -159845,7 +159879,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
159845
159879
|
`;
|
|
159846
159880
|
})), staticAttributes: m, staticUniforms: K };
|
|
159847
159881
|
}
|
|
159848
|
-
class
|
|
159882
|
+
class Nr {
|
|
159849
159883
|
constructor(c, u, m) {
|
|
159850
159884
|
this.vertexBuffer = c, this.indexBuffer = u, this.segments = m;
|
|
159851
159885
|
}
|
|
@@ -159900,7 +159934,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
159900
159934
|
const z = c.createVertexBuffer(K, GI.members), X = o.aV.simpleSegment(0, 0, 4, 2), oA = new o.aW();
|
|
159901
159935
|
oA.emplaceBack(1, 0, 2), oA.emplaceBack(1, 2, 3);
|
|
159902
159936
|
const aA = c.createIndexBuffer(oA);
|
|
159903
|
-
return this._cachedMesh = new
|
|
159937
|
+
return this._cachedMesh = new Nr(z, aA, X), this._cachedMesh;
|
|
159904
159938
|
}
|
|
159905
159939
|
recalculate() {
|
|
159906
159940
|
}
|
|
@@ -160835,7 +160869,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
160835
160869
|
const F = new o.aU();
|
|
160836
160870
|
F.emplaceBack(-1, -1), F.emplaceBack(2, -1), F.emplaceBack(-1, 2);
|
|
160837
160871
|
const L = new o.aW();
|
|
160838
|
-
L.emplaceBack(0, 1, 2), this._fullscreenTriangle = new
|
|
160872
|
+
L.emplaceBack(0, 1, 2), this._fullscreenTriangle = new Nr(u.createVertexBuffer(F, GI.members), u.createIndexBuffer(L), o.aV.simpleSegment(0, 0, F.length, L.length)), this._resultBuffer = new Uint8Array(4), u.activeTexture.set(m.TEXTURE1);
|
|
160839
160873
|
const K = m.createTexture();
|
|
160840
160874
|
m.bindTexture(m.TEXTURE_2D, K), m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_S, m.CLAMP_TO_EDGE), m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_T, m.CLAMP_TO_EDGE), m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MIN_FILTER, m.NEAREST), m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MAG_FILTER, m.NEAREST), m.texImage2D(m.TEXTURE_2D, 0, this._texFormat, this._texWidth, this._texHeight, 0, this._texFormat, this._texType, null), this._fbo = u.createFramebuffer(this._texWidth, this._texHeight, !1, !1), this._fbo.colorAttachment.set(K), ma(m) && (this._pbo = m.createBuffer(), m.bindBuffer(m.PIXEL_PACK_BUFFER, this._pbo), m.bufferData(m.PIXEL_PACK_BUFFER, 4, m.STREAM_READ), m.bindBuffer(m.PIXEL_PACK_BUFFER, null));
|
|
160841
160875
|
}
|
|
@@ -160951,7 +160985,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
160951
160985
|
if (m in this._tileMeshCache) return this._tileMeshCache[m];
|
|
160952
160986
|
const F = (function(L, K) {
|
|
160953
160987
|
const z = pg(K, "16bit"), X = o.aU.deserialize({ arrayBuffer: z.vertices, length: z.vertices.byteLength / 2 / 2 }), oA = o.aW.deserialize({ arrayBuffer: z.indices, length: z.indices.byteLength / 2 / 3 });
|
|
160954
|
-
return new
|
|
160988
|
+
return new Nr(L.createVertexBuffer(X, GI.members), L.createIndexBuffer(oA), o.aV.simpleSegment(0, 0, X.length, oA.length));
|
|
160955
160989
|
})(c, u);
|
|
160956
160990
|
return this._tileMeshCache[m] = F, F;
|
|
160957
160991
|
}
|
|
@@ -161221,12 +161255,12 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
161221
161255
|
o.b1(ee, ee);
|
|
161222
161256
|
const $A = o.b2([], oA[0], oA[3]);
|
|
161223
161257
|
o.b1($A, $A), aA.push(o.aZ([], wA, X)), c.y >= (1 << c.z) / 2 && aA.push(o.aZ([], Rs(o.a6 / 2, 0, c.x, c.y, c.z), X)), c.y < (1 << c.z) / 2 && aA.push(o.aZ([], Rs(o.a6 / 2, o.a6, c.x, c.y, c.z), X));
|
|
161224
|
-
const te =
|
|
161258
|
+
const te = pr(wA, aA), Ce = pr(zA, aA), ie = [-wA[0], -wA[1], -wA[2], te.max], Ae = [wA[0], wA[1], wA[2], -te.min], le = [-zA[0], -zA[1], -zA[2], Ce.max], se = [zA[0], zA[1], zA[2], -Ce.min], _e = [...ee, 0], je = [...$A, 0], Ze = [];
|
|
161225
161259
|
return c.y === 0 ? Ze.push(o.bC(je, _e, ie), o.bC(je, _e, Ae)) : Ze.push(o.bC(le, _e, ie), o.bC(le, _e, Ae), o.bC(le, je, ie), o.bC(le, je, Ae)), c.y === (1 << c.z) - 1 ? Ze.push(o.bC(je, _e, ie), o.bC(je, _e, Ae)) : Ze.push(o.bC(se, _e, ie), o.bC(se, _e, Ae), o.bC(se, je, ie), o.bC(se, je, Ae)), new Kl(Ze, [ie, Ae, le, se, _e, je], EA, fA);
|
|
161226
161260
|
}
|
|
161227
161261
|
}
|
|
161228
161262
|
}
|
|
161229
|
-
function
|
|
161263
|
+
function pr(_, c) {
|
|
161230
161264
|
let u = 1 / 0, m = -1 / 0;
|
|
161231
161265
|
for (const F of c) {
|
|
161232
161266
|
const L = o.b3(_, F);
|
|
@@ -163104,7 +163138,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163104
163138
|
this.buffer && (this.context.gl.deleteBuffer(this.buffer), delete this.buffer);
|
|
163105
163139
|
}
|
|
163106
163140
|
}
|
|
163107
|
-
class
|
|
163141
|
+
class yr {
|
|
163108
163142
|
constructor(c) {
|
|
163109
163143
|
this.gl = c.gl, this.default = this.getDefault(), this.current = this.default, this.dirty = !1;
|
|
163110
163144
|
}
|
|
@@ -163120,7 +163154,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163120
163154
|
this.set(this.default);
|
|
163121
163155
|
}
|
|
163122
163156
|
}
|
|
163123
|
-
class s0 extends
|
|
163157
|
+
class s0 extends yr {
|
|
163124
163158
|
getDefault() {
|
|
163125
163159
|
return o.bo.transparent;
|
|
163126
163160
|
}
|
|
@@ -163129,7 +163163,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163129
163163
|
(c.r !== u.r || c.g !== u.g || c.b !== u.b || c.a !== u.a || this.dirty) && (this.gl.clearColor(c.r, c.g, c.b, c.a), this.current = c, this.dirty = !1);
|
|
163130
163164
|
}
|
|
163131
163165
|
}
|
|
163132
|
-
class CB extends
|
|
163166
|
+
class CB extends yr {
|
|
163133
163167
|
getDefault() {
|
|
163134
163168
|
return 1;
|
|
163135
163169
|
}
|
|
@@ -163137,7 +163171,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163137
163171
|
(c !== this.current || this.dirty) && (this.gl.clearDepth(c), this.current = c, this.dirty = !1);
|
|
163138
163172
|
}
|
|
163139
163173
|
}
|
|
163140
|
-
class qa extends
|
|
163174
|
+
class qa extends yr {
|
|
163141
163175
|
getDefault() {
|
|
163142
163176
|
return 0;
|
|
163143
163177
|
}
|
|
@@ -163145,7 +163179,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163145
163179
|
(c !== this.current || this.dirty) && (this.gl.clearStencil(c), this.current = c, this.dirty = !1);
|
|
163146
163180
|
}
|
|
163147
163181
|
}
|
|
163148
|
-
class Zl extends
|
|
163182
|
+
class Zl extends yr {
|
|
163149
163183
|
getDefault() {
|
|
163150
163184
|
return [!0, !0, !0, !0];
|
|
163151
163185
|
}
|
|
@@ -163154,7 +163188,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163154
163188
|
(c[0] !== u[0] || c[1] !== u[1] || c[2] !== u[2] || c[3] !== u[3] || this.dirty) && (this.gl.colorMask(c[0], c[1], c[2], c[3]), this.current = c, this.dirty = !1);
|
|
163155
163189
|
}
|
|
163156
163190
|
}
|
|
163157
|
-
class EQ extends
|
|
163191
|
+
class EQ extends yr {
|
|
163158
163192
|
getDefault() {
|
|
163159
163193
|
return !0;
|
|
163160
163194
|
}
|
|
@@ -163162,7 +163196,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163162
163196
|
(c !== this.current || this.dirty) && (this.gl.depthMask(c), this.current = c, this.dirty = !1);
|
|
163163
163197
|
}
|
|
163164
163198
|
}
|
|
163165
|
-
class wg extends
|
|
163199
|
+
class wg extends yr {
|
|
163166
163200
|
getDefault() {
|
|
163167
163201
|
return 255;
|
|
163168
163202
|
}
|
|
@@ -163170,7 +163204,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163170
163204
|
(c !== this.current || this.dirty) && (this.gl.stencilMask(c), this.current = c, this.dirty = !1);
|
|
163171
163205
|
}
|
|
163172
163206
|
}
|
|
163173
|
-
class Xl extends
|
|
163207
|
+
class Xl extends yr {
|
|
163174
163208
|
getDefault() {
|
|
163175
163209
|
return { func: this.gl.ALWAYS, ref: 0, mask: 255 };
|
|
163176
163210
|
}
|
|
@@ -163179,7 +163213,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163179
163213
|
(c.func !== u.func || c.ref !== u.ref || c.mask !== u.mask || this.dirty) && (this.gl.stencilFunc(c.func, c.ref, c.mask), this.current = c, this.dirty = !1);
|
|
163180
163214
|
}
|
|
163181
163215
|
}
|
|
163182
|
-
class $l extends
|
|
163216
|
+
class $l extends yr {
|
|
163183
163217
|
getDefault() {
|
|
163184
163218
|
const c = this.gl;
|
|
163185
163219
|
return [c.KEEP, c.KEEP, c.KEEP];
|
|
@@ -163189,7 +163223,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163189
163223
|
(c[0] !== u[0] || c[1] !== u[1] || c[2] !== u[2] || this.dirty) && (this.gl.stencilOp(c[0], c[1], c[2]), this.current = c, this.dirty = !1);
|
|
163190
163224
|
}
|
|
163191
163225
|
}
|
|
163192
|
-
class wa extends
|
|
163226
|
+
class wa extends yr {
|
|
163193
163227
|
getDefault() {
|
|
163194
163228
|
return !1;
|
|
163195
163229
|
}
|
|
@@ -163199,7 +163233,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163199
163233
|
c ? u.enable(u.STENCIL_TEST) : u.disable(u.STENCIL_TEST), this.current = c, this.dirty = !1;
|
|
163200
163234
|
}
|
|
163201
163235
|
}
|
|
163202
|
-
class Ah extends
|
|
163236
|
+
class Ah extends yr {
|
|
163203
163237
|
getDefault() {
|
|
163204
163238
|
return [0, 1];
|
|
163205
163239
|
}
|
|
@@ -163208,7 +163242,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163208
163242
|
(c[0] !== u[0] || c[1] !== u[1] || this.dirty) && (this.gl.depthRange(c[0], c[1]), this.current = c, this.dirty = !1);
|
|
163209
163243
|
}
|
|
163210
163244
|
}
|
|
163211
|
-
class QQ extends
|
|
163245
|
+
class QQ extends yr {
|
|
163212
163246
|
getDefault() {
|
|
163213
163247
|
return !1;
|
|
163214
163248
|
}
|
|
@@ -163218,7 +163252,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163218
163252
|
c ? u.enable(u.DEPTH_TEST) : u.disable(u.DEPTH_TEST), this.current = c, this.dirty = !1;
|
|
163219
163253
|
}
|
|
163220
163254
|
}
|
|
163221
|
-
class Uc extends
|
|
163255
|
+
class Uc extends yr {
|
|
163222
163256
|
getDefault() {
|
|
163223
163257
|
return this.gl.LESS;
|
|
163224
163258
|
}
|
|
@@ -163226,7 +163260,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163226
163260
|
(c !== this.current || this.dirty) && (this.gl.depthFunc(c), this.current = c, this.dirty = !1);
|
|
163227
163261
|
}
|
|
163228
163262
|
}
|
|
163229
|
-
class oI extends
|
|
163263
|
+
class oI extends yr {
|
|
163230
163264
|
getDefault() {
|
|
163231
163265
|
return !1;
|
|
163232
163266
|
}
|
|
@@ -163236,7 +163270,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163236
163270
|
c ? u.enable(u.BLEND) : u.disable(u.BLEND), this.current = c, this.dirty = !1;
|
|
163237
163271
|
}
|
|
163238
163272
|
}
|
|
163239
|
-
class eh extends
|
|
163273
|
+
class eh extends yr {
|
|
163240
163274
|
getDefault() {
|
|
163241
163275
|
const c = this.gl;
|
|
163242
163276
|
return [c.ONE, c.ZERO];
|
|
@@ -163246,7 +163280,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163246
163280
|
(c[0] !== u[0] || c[1] !== u[1] || this.dirty) && (this.gl.blendFunc(c[0], c[1]), this.current = c, this.dirty = !1);
|
|
163247
163281
|
}
|
|
163248
163282
|
}
|
|
163249
|
-
class uB extends
|
|
163283
|
+
class uB extends yr {
|
|
163250
163284
|
getDefault() {
|
|
163251
163285
|
return o.bo.transparent;
|
|
163252
163286
|
}
|
|
@@ -163255,7 +163289,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163255
163289
|
(c.r !== u.r || c.g !== u.g || c.b !== u.b || c.a !== u.a || this.dirty) && (this.gl.blendColor(c.r, c.g, c.b, c.a), this.current = c, this.dirty = !1);
|
|
163256
163290
|
}
|
|
163257
163291
|
}
|
|
163258
|
-
class TI extends
|
|
163292
|
+
class TI extends yr {
|
|
163259
163293
|
getDefault() {
|
|
163260
163294
|
return this.gl.FUNC_ADD;
|
|
163261
163295
|
}
|
|
@@ -163263,7 +163297,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163263
163297
|
(c !== this.current || this.dirty) && (this.gl.blendEquation(c), this.current = c, this.dirty = !1);
|
|
163264
163298
|
}
|
|
163265
163299
|
}
|
|
163266
|
-
class EB extends
|
|
163300
|
+
class EB extends yr {
|
|
163267
163301
|
getDefault() {
|
|
163268
163302
|
return !1;
|
|
163269
163303
|
}
|
|
@@ -163273,7 +163307,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163273
163307
|
c ? u.enable(u.CULL_FACE) : u.disable(u.CULL_FACE), this.current = c, this.dirty = !1;
|
|
163274
163308
|
}
|
|
163275
163309
|
}
|
|
163276
|
-
class n0 extends
|
|
163310
|
+
class n0 extends yr {
|
|
163277
163311
|
getDefault() {
|
|
163278
163312
|
return this.gl.BACK;
|
|
163279
163313
|
}
|
|
@@ -163281,7 +163315,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163281
163315
|
(c !== this.current || this.dirty) && (this.gl.cullFace(c), this.current = c, this.dirty = !1);
|
|
163282
163316
|
}
|
|
163283
163317
|
}
|
|
163284
|
-
class th extends
|
|
163318
|
+
class th extends yr {
|
|
163285
163319
|
getDefault() {
|
|
163286
163320
|
return this.gl.CCW;
|
|
163287
163321
|
}
|
|
@@ -163289,7 +163323,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163289
163323
|
(c !== this.current || this.dirty) && (this.gl.frontFace(c), this.current = c, this.dirty = !1);
|
|
163290
163324
|
}
|
|
163291
163325
|
}
|
|
163292
|
-
class ih extends
|
|
163326
|
+
class ih extends yr {
|
|
163293
163327
|
getDefault() {
|
|
163294
163328
|
return null;
|
|
163295
163329
|
}
|
|
@@ -163297,7 +163331,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163297
163331
|
(c !== this.current || this.dirty) && (this.gl.useProgram(c), this.current = c, this.dirty = !1);
|
|
163298
163332
|
}
|
|
163299
163333
|
}
|
|
163300
|
-
class o0 extends
|
|
163334
|
+
class o0 extends yr {
|
|
163301
163335
|
getDefault() {
|
|
163302
163336
|
return this.gl.TEXTURE0;
|
|
163303
163337
|
}
|
|
@@ -163305,7 +163339,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163305
163339
|
(c !== this.current || this.dirty) && (this.gl.activeTexture(c), this.current = c, this.dirty = !1);
|
|
163306
163340
|
}
|
|
163307
163341
|
}
|
|
163308
|
-
class dQ extends
|
|
163342
|
+
class dQ extends yr {
|
|
163309
163343
|
getDefault() {
|
|
163310
163344
|
const c = this.gl;
|
|
163311
163345
|
return [0, 0, c.drawingBufferWidth, c.drawingBufferHeight];
|
|
@@ -163315,7 +163349,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163315
163349
|
(c[0] !== u[0] || c[1] !== u[1] || c[2] !== u[2] || c[3] !== u[3] || this.dirty) && (this.gl.viewport(c[0], c[1], c[2], c[3]), this.current = c, this.dirty = !1);
|
|
163316
163350
|
}
|
|
163317
163351
|
}
|
|
163318
|
-
class Pi extends
|
|
163352
|
+
class Pi extends yr {
|
|
163319
163353
|
getDefault() {
|
|
163320
163354
|
return null;
|
|
163321
163355
|
}
|
|
@@ -163325,7 +163359,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163325
163359
|
u.bindFramebuffer(u.FRAMEBUFFER, c), this.current = c, this.dirty = !1;
|
|
163326
163360
|
}
|
|
163327
163361
|
}
|
|
163328
|
-
class tu extends
|
|
163362
|
+
class tu extends yr {
|
|
163329
163363
|
getDefault() {
|
|
163330
163364
|
return null;
|
|
163331
163365
|
}
|
|
@@ -163335,7 +163369,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163335
163369
|
u.bindRenderbuffer(u.RENDERBUFFER, c), this.current = c, this.dirty = !1;
|
|
163336
163370
|
}
|
|
163337
163371
|
}
|
|
163338
|
-
class bw extends
|
|
163372
|
+
class bw extends yr {
|
|
163339
163373
|
getDefault() {
|
|
163340
163374
|
return null;
|
|
163341
163375
|
}
|
|
@@ -163345,7 +163379,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163345
163379
|
u.bindTexture(u.TEXTURE_2D, c), this.current = c, this.dirty = !1;
|
|
163346
163380
|
}
|
|
163347
163381
|
}
|
|
163348
|
-
class a0 extends
|
|
163382
|
+
class a0 extends yr {
|
|
163349
163383
|
getDefault() {
|
|
163350
163384
|
return null;
|
|
163351
163385
|
}
|
|
@@ -163355,7 +163389,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163355
163389
|
u.bindBuffer(u.ARRAY_BUFFER, c), this.current = c, this.dirty = !1;
|
|
163356
163390
|
}
|
|
163357
163391
|
}
|
|
163358
|
-
class rh extends
|
|
163392
|
+
class rh extends yr {
|
|
163359
163393
|
getDefault() {
|
|
163360
163394
|
return null;
|
|
163361
163395
|
}
|
|
@@ -163364,7 +163398,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163364
163398
|
u.bindBuffer(u.ELEMENT_ARRAY_BUFFER, c), this.current = c, this.dirty = !1;
|
|
163365
163399
|
}
|
|
163366
163400
|
}
|
|
163367
|
-
class g0 extends
|
|
163401
|
+
class g0 extends yr {
|
|
163368
163402
|
getDefault() {
|
|
163369
163403
|
return null;
|
|
163370
163404
|
}
|
|
@@ -163375,7 +163409,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163375
163409
|
ma(m) ? m.bindVertexArray(c) : (u = m.getExtension("OES_vertex_array_object")) === null || u === void 0 || u.bindVertexArrayOES(c), this.current = c, this.dirty = !1;
|
|
163376
163410
|
}
|
|
163377
163411
|
}
|
|
163378
|
-
class Rw extends
|
|
163412
|
+
class Rw extends yr {
|
|
163379
163413
|
getDefault() {
|
|
163380
163414
|
return 4;
|
|
163381
163415
|
}
|
|
@@ -163385,7 +163419,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163385
163419
|
u.pixelStorei(u.UNPACK_ALIGNMENT, c), this.current = c, this.dirty = !1;
|
|
163386
163420
|
}
|
|
163387
163421
|
}
|
|
163388
|
-
class sh extends
|
|
163422
|
+
class sh extends yr {
|
|
163389
163423
|
getDefault() {
|
|
163390
163424
|
return !1;
|
|
163391
163425
|
}
|
|
@@ -163395,7 +163429,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163395
163429
|
u.pixelStorei(u.UNPACK_PREMULTIPLY_ALPHA_WEBGL, c), this.current = c, this.dirty = !1;
|
|
163396
163430
|
}
|
|
163397
163431
|
}
|
|
163398
|
-
class Da extends
|
|
163432
|
+
class Da extends yr {
|
|
163399
163433
|
getDefault() {
|
|
163400
163434
|
return !1;
|
|
163401
163435
|
}
|
|
@@ -163405,7 +163439,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163405
163439
|
u.pixelStorei(u.UNPACK_FLIP_Y_WEBGL, c), this.current = c, this.dirty = !1;
|
|
163406
163440
|
}
|
|
163407
163441
|
}
|
|
163408
|
-
class QB extends
|
|
163442
|
+
class QB extends yr {
|
|
163409
163443
|
constructor(c, u) {
|
|
163410
163444
|
super(c), this.context = c, this.parent = u;
|
|
163411
163445
|
}
|
|
@@ -163616,7 +163650,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163616
163650
|
if (!Rt) continue;
|
|
163617
163651
|
const Zt = F ? Rt.text : Rt.icon;
|
|
163618
163652
|
if (!Zt?.segments.get().length || !Zt.hasVisibleVertices) continue;
|
|
163619
|
-
const
|
|
163653
|
+
const Mr = Zt.programConfigurations.get(u.id), zs = F || Rt.sdfIcons, qr = F ? Rt.textSizeData : Rt.iconSizeData, on = Ce || $A.pitch !== 0, yn = _.useProgram(is(zs, F, Rt), Mr), Lo = o.aw(qr, $A.zoom), Ps = (wA = _.style.map.terrain) === null || wA === void 0 ? void 0 : wA.getTerrainData(wt);
|
|
163620
163654
|
let sa, uo, Zn, Uo, ah = [0, 0], gh = null;
|
|
163621
163655
|
if (F) uo = st.glyphAtlasTexture, Zn = ee.LINEAR, sa = st.glyphAtlasTexture.size, Rt.iconsInText && (ah = st.imageAtlasTexture.size, gh = st.imageAtlasTexture, Uo = on || _.options.rotating || _.options.zooming || qr.kind === "composite" || qr.kind === "camera" ? ee.LINEAR : ee.NEAREST);
|
|
163622
163656
|
else {
|
|
@@ -163701,7 +163735,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163701
163735
|
function ou(_, c, u, m, F, L) {
|
|
163702
163736
|
(F || _.lineAtlas.dirty) && (c.activeTexture.set(u.TEXTURE0), _.lineAtlas.bind(c)), m.updatePaintBuffers(L);
|
|
163703
163737
|
}
|
|
163704
|
-
function
|
|
163738
|
+
function xr(_, c, u, m, F, L, K) {
|
|
163705
163739
|
const z = L.gradients[F.id];
|
|
163706
163740
|
let X = z.texture;
|
|
163707
163741
|
F.gradientVersion !== z.version && (X = Fs(_, c, u, m, F, L, K, z)), u.activeTexture.set(m.TEXTURE0), X.bind(F.stepInterpolant ? m.NEAREST : m.LINEAR, m.CLAMP_TO_EDGE);
|
|
@@ -163867,7 +163901,7 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163867
163901
|
const u = new o.aU();
|
|
163868
163902
|
u.emplaceBack(-1, -1), u.emplaceBack(1, -1), u.emplaceBack(1, 1), u.emplaceBack(-1, 1);
|
|
163869
163903
|
const m = new o.aW();
|
|
163870
|
-
m.emplaceBack(0, 1, 2), m.emplaceBack(0, 2, 3), c.mesh = new
|
|
163904
|
+
m.emplaceBack(0, 1, 2), m.emplaceBack(0, 2, 3), c.mesh = new Nr(_.createVertexBuffer(u, GI.members), _.createIndexBuffer(m), o.aV.simpleSegment(0, 0, u.length, m.length));
|
|
163871
163905
|
}
|
|
163872
163906
|
return c.mesh;
|
|
163873
163907
|
}
|
|
@@ -163962,10 +163996,10 @@ uniform ${aA} ${EA} u_${fA};
|
|
|
163962
163996
|
je.setConstantDashPositions(on, yn);
|
|
163963
163997
|
}
|
|
163964
163998
|
const Rt = ie.getProjectionData({ overscaledTileID: le, applyGlobeMatrix: !K, applyTerrainMatrix: !0 }), Zt = ie.getPixelScale();
|
|
163965
|
-
let
|
|
163966
|
-
UA ? (
|
|
163999
|
+
let Mr;
|
|
164000
|
+
UA ? (Mr = Wl(_, se, u, Zt, ee), l0(te, Ce, se, je, ee)) : fA && zA ? (Mr = lQ(_, se, u, Zt, ee, _e.lineClipsArray.length), Hc(_, c, te, Ce, u, _e, le, je, ee)) : fA ? (Mr = cQ(_, se, u, Zt, ee), ou(_, te, Ce, je, It, ee)) : zA ? (Mr = i0(_, se, u, Zt, _e.lineClipsArray.length), xr(_, c, te, Ce, u, _e, le)) : Mr = kn(_, se, u, Zt);
|
|
163967
164001
|
const zs = _.stencilModeForClipping(le);
|
|
163968
|
-
lt.draw(te, Ce.TRIANGLES, oA, zs, aA, sr.disabled,
|
|
164002
|
+
lt.draw(te, Ce.TRIANGLES, oA, zs, aA, sr.disabled, Mr, Jt, Rt, u.id, _e.layoutVertexBuffer, _e.indexBuffer, _e.segments, u.paint, _.transform.zoom, je, _e.layoutVertexBuffer2), Ae = !1;
|
|
163969
164003
|
}
|
|
163970
164004
|
}, fill: function(_, c, u, m, F) {
|
|
163971
164005
|
const L = u.paint.get("fill-color"), K = u.paint.get("fill-opacity");
|
|
@@ -164135,7 +164169,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
164135
164169
|
const X = new o.aW();
|
|
164136
164170
|
X.emplaceBack(1, 0, 2), X.emplaceBack(1, 2, 3), this.quadTriangleIndexBuffer = c.createIndexBuffer(X);
|
|
164137
164171
|
const oA = this.context.gl;
|
|
164138
|
-
this.stencilClearMode = new or({ func: oA.ALWAYS, mask: 0 }, 0, 255, oA.ZERO, oA.ZERO, oA.ZERO), this.tileExtentMesh = new
|
|
164172
|
+
this.stencilClearMode = new or({ func: oA.ALWAYS, mask: 0 }, 0, 255, oA.ZERO, oA.ZERO, oA.ZERO), this.tileExtentMesh = new Nr(this.tileExtentBuffer, this.quadTriangleIndexBuffer, this.tileExtentSegments);
|
|
164139
164173
|
}
|
|
164140
164174
|
clearStencil() {
|
|
164141
164175
|
const c = this.context, u = c.gl;
|
|
@@ -166120,7 +166154,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
166120
166154
|
const ie = X.length, Ae = ie + 2 * (aA + 1);
|
|
166121
166155
|
for (const se of [0, 1]) for (let _e = 0; _e <= aA; _e++) for (const je of [0, 1]) X.emplaceBack(se * o.a6, _e * EA, je);
|
|
166122
166156
|
for (let se = 0; se < 2 * aA; se += 2) oA.emplaceBack(ie + se, ie + se + 1, ie + se + 3), oA.emplaceBack(ie + se, ie + se + 3, ie + se + 2), oA.emplaceBack(Ae + se, Ae + se + 3, Ae + se + 1), oA.emplaceBack(Ae + se, Ae + se + 2, Ae + se + 3);
|
|
166123
|
-
const le = new
|
|
166157
|
+
const le = new Nr(z.createVertexBuffer(X, eL.members), z.createIndexBuffer(oA), o.aV.simpleSegment(0, 0, X.length, oA.length));
|
|
166124
166158
|
return this._meshCache[K] = le, le;
|
|
166125
166159
|
}
|
|
166126
166160
|
getMeshFrameDelta(c) {
|
|
@@ -171830,7 +171864,7 @@ var iV = /* @__PURE__ */ (() => {
|
|
|
171830
171864
|
return A[hA].C[arguments.length].apply(this, arguments);
|
|
171831
171865
|
}, A[hA].C = [], A[hA].C[oe.O] = oe;
|
|
171832
171866
|
}
|
|
171833
|
-
},
|
|
171867
|
+
}, Cr = (hA, xA, oe) => {
|
|
171834
171868
|
if (A.hasOwnProperty(hA)) {
|
|
171835
171869
|
if (oe === void 0 || A[hA].C !== void 0 && A[hA].C[oe] !== void 0)
|
|
171836
171870
|
throw new xe(`Cannot register public name '${hA}' twice`);
|
|
@@ -172037,7 +172071,7 @@ var iV = /* @__PURE__ */ (() => {
|
|
|
172037
172071
|
},
|
|
172038
172072
|
d: (hA, xA, oe, Se, MA, qA, YA) => {
|
|
172039
172073
|
var ge = vi(xA, oe);
|
|
172040
|
-
hA = VA(hA), hA = ks(hA), MA = es(Se, MA),
|
|
172074
|
+
hA = VA(hA), hA = ks(hA), MA = es(Se, MA), Cr(hA, function() {
|
|
172041
172075
|
bs(`Cannot call ${hA} due to unbound types`, ge);
|
|
172042
172076
|
}, xA - 1), Re(ge, function(Be) {
|
|
172043
172077
|
var tt = hA, ht = hA;
|
|
@@ -172562,19 +172596,19 @@ var w6e = (typeof document < "u" && document.currentScript && document.currentSc
|
|
|
172562
172596
|
for (var WA = [], he = 0; he < ae; he++)
|
|
172563
172597
|
WA.push(D[Fe + 4 * he >> 2]);
|
|
172564
172598
|
return WA;
|
|
172565
|
-
},
|
|
172599
|
+
}, Cr, vi = (ae, Fe) => {
|
|
172566
172600
|
var WA = [];
|
|
172567
172601
|
return function() {
|
|
172568
172602
|
if (WA.length = 0, Object.assign(WA, arguments), ae.includes("j")) {
|
|
172569
172603
|
var he = A["dynCall_" + ae];
|
|
172570
172604
|
he = WA && WA.length ? he.apply(null, [Fe].concat(WA)) : he.call(null, Fe);
|
|
172571
172605
|
} else
|
|
172572
|
-
he =
|
|
172606
|
+
he = Cr.get(Fe).apply(null, WA);
|
|
172573
172607
|
return he;
|
|
172574
172608
|
};
|
|
172575
172609
|
}, rr = (ae, Fe) => {
|
|
172576
172610
|
ae = ZA(ae);
|
|
172577
|
-
var WA = ae.includes("j") ? vi(ae, Fe) :
|
|
172611
|
+
var WA = ae.includes("j") ? vi(ae, Fe) : Cr.get(Fe);
|
|
172578
172612
|
if (typeof WA != "function")
|
|
172579
172613
|
throw new Ne(`unknown function pointer with signature ${ae}: ${Fe}`);
|
|
172580
172614
|
return WA;
|
|
@@ -172946,7 +172980,7 @@ return ret;
|
|
|
172946
172980
|
return !1;
|
|
172947
172981
|
} }, Ie = (function() {
|
|
172948
172982
|
function ae(WA) {
|
|
172949
|
-
return Ie = WA.exports, o = Ie.r, Y(),
|
|
172983
|
+
return Ie = WA.exports, o = Ie.r, Y(), Cr = Ie.w, W.unshift(Ie.s), nA--, A.monitorRunDependencies?.(nA), nA == 0 && lA && (WA = lA, lA = null, WA()), Ie;
|
|
172950
172984
|
}
|
|
172951
172985
|
var Fe = { a: KA };
|
|
172952
172986
|
if (nA++, A.monitorRunDependencies?.(nA), A.instantiateWasm)
|
|
@@ -173180,7 +173214,7 @@ var N6e = (typeof document < "u" && document.currentScript?.src, function(e = {}
|
|
|
173180
173214
|
t[MA].D[YA] = qA;
|
|
173181
173215
|
} else
|
|
173182
173216
|
t[MA] = qA, YA !== void 0 && (t[MA].J = YA);
|
|
173183
|
-
},
|
|
173217
|
+
}, Cr = (MA, qA) => {
|
|
173184
173218
|
for (var YA = [], ge = 0; ge < MA; ge++)
|
|
173185
173219
|
YA.push(U[qA + 4 * ge >> 2]);
|
|
173186
173220
|
return YA;
|
|
@@ -173333,7 +173367,7 @@ var N6e = (typeof document < "u" && document.currentScript?.src, function(e = {}
|
|
|
173333
173367
|
}, h: (MA) => Qe(MA, ze), e: (MA, qA, YA) => {
|
|
173334
173368
|
qA = XA(qA), Qe(MA, { name: qA, fromWireType: (ge) => ge, toWireType: (ge, Be) => Be, argPackAdvance: 8, readValueFromPointer: at(qA, YA), F: null });
|
|
173335
173369
|
}, d: (MA, qA, YA, ge, Be, tt, ht) => {
|
|
173336
|
-
var Qt =
|
|
173370
|
+
var Qt = Cr(qA, YA);
|
|
173337
173371
|
MA = XA(MA), MA = ks(MA), Be = es(ge, Be), ei(MA, function() {
|
|
173338
173372
|
bs(`Cannot call ${MA} due to unbound types`, Qt);
|
|
173339
173373
|
}, qA - 1), He(
|