@mapsindoors/map-template 1.31.0 → 1.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{combo-box-item.entry-b6fecd19.mjs → combo-box-item.entry-ced029f6.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +15 -15
- package/dist/mapsindoors-webcomponent.es.js +209 -209
- package/dist/mapsindoors-webcomponent.umd.js +12 -12
- package/dist/{mi-card_2.entry-a2b3db5d.mjs → mi-card_2.entry-9ea619e9.mjs} +1 -1
- package/dist/{mi-chip.entry-7b3d5b57.mjs → mi-chip.entry-408ba7f9.mjs} +1 -1
- package/dist/{mi-column.entry-243b925e.mjs → mi-column.entry-748998e1.mjs} +1 -1
- package/dist/{mi-combo-box.entry-978a9229.mjs → mi-combo-box.entry-a9ffcb48.mjs} +1 -1
- package/dist/{mi-data-table.entry-f60e75f9.mjs → mi-data-table.entry-51f3cc08.mjs} +1 -1
- package/dist/{mi-distance_2.entry-7e0fa6aa.mjs → mi-distance_2.entry-6161962c.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-8a99bc3d.mjs → mi-dropdown-item.entry-a1d3336a.mjs} +1 -1
- package/dist/{mi-dropdown.entry-40bd9459.mjs → mi-dropdown.entry-a4ac60d8.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-5687660c.mjs → mi-floor-selector.entry-a642fb7f.mjs} +1 -1
- package/dist/{mi-keyboard.entry-e08158df.mjs → mi-keyboard.entry-1c49bf32.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-425cf933.mjs → mi-list-item-category.entry-775b5466.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-a7027ccb.mjs → mi-list-item-location.entry-c5f94330.mjs} +1 -1
- package/dist/{mi-list.entry-c2ccd9f6.mjs → mi-list.entry-d1116b2f.mjs} +1 -1
- package/dist/{mi-location-booking.entry-88b92c0c.mjs → mi-location-booking.entry-ed1f1a5b.mjs} +1 -1
- package/dist/{mi-location-info.entry-abcc2682.mjs → mi-location-info.entry-d20a7949.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-2a946c3b.mjs → mi-map-googlemaps.entry-171dd72f.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-286d0d16.mjs → mi-map-mapbox.entry-001feeea.mjs} +1 -1
- package/dist/{mi-metric-card.entry-f05c0313.mjs → mi-metric-card.entry-c6c676ef.mjs} +1 -1
- package/dist/{mi-my-position.entry-30c5426b.mjs → mi-my-position.entry-4eb327ce.mjs} +1 -1
- package/dist/{mi-notification.entry-ff8b7a44.mjs → mi-notification.entry-21fe91f1.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-515d5180.mjs → mi-route-instructions-heading.entry-9f2a4e3c.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver-legacy.entry-98525b5d.mjs → mi-route-instructions-maneuver-legacy.entry-9370f60f.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver.entry-16565631.mjs → mi-route-instructions-maneuver.entry-8e68deb2.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-aff28e77.mjs → mi-route-instructions-step-legacy.entry-fd5a59a8.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-4f44881c.mjs → mi-route-instructions-step.entry-74f1da74.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-99b51935.mjs → mi-route-instructions.entry-193096a0.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-cb3e15d8.mjs → mi-scroll-buttons.entry-52af85cd.mjs} +1 -1
- package/dist/{mi-search.entry-5b066d7a.mjs → mi-search.entry-0ea1a4c9.mjs} +1 -1
- package/dist/{mi-share-sms.entry-27f15601.mjs → mi-share-sms.entry-2fb2f338.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-8045cb28.mjs → mi-step-switcher.entry-5c3f76d3.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-4674daa7.mjs → mi-tab-panel.entry-bb2b45e2.mjs} +1 -1
- package/dist/{mi-tab.entry-57173a21.mjs → mi-tab.entry-d275a098.mjs} +1 -1
- package/dist/{mi-tabs.entry-ab07b9fc.mjs → mi-tabs.entry-082c28a2.mjs} +1 -1
- package/dist/{mi-time.entry-69604d4e.mjs → mi-time.entry-7e36ba71.mjs} +1 -1
- package/dist/{reactcomponent-881c8b75.mjs → reactcomponent-f570a4d8.mjs} +341 -341
- package/package.json +1 -1
|
@@ -135,14 +135,14 @@ function ND() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var _e = Object.assign, zn = 0,
|
|
138
|
+
var _e = Object.assign, zn = 0, pn, ze, hn, wn, Rt, gt, ht;
|
|
139
139
|
function Ot() {
|
|
140
140
|
}
|
|
141
141
|
Ot.__reactDisabledLog = !0;
|
|
142
142
|
function Ft() {
|
|
143
143
|
{
|
|
144
144
|
if (zn === 0) {
|
|
145
|
-
|
|
145
|
+
pn = console.log, ze = console.info, hn = console.warn, wn = console.error, Rt = console.group, gt = console.groupCollapsed, ht = console.groupEnd;
|
|
146
146
|
var et = {
|
|
147
147
|
configurable: !0,
|
|
148
148
|
enumerable: !0,
|
|
@@ -172,16 +172,16 @@ function ND() {
|
|
|
172
172
|
};
|
|
173
173
|
Object.defineProperties(console, {
|
|
174
174
|
log: _e({}, et, {
|
|
175
|
-
value:
|
|
175
|
+
value: pn
|
|
176
176
|
}),
|
|
177
177
|
info: _e({}, et, {
|
|
178
178
|
value: ze
|
|
179
179
|
}),
|
|
180
180
|
warn: _e({}, et, {
|
|
181
|
-
value:
|
|
181
|
+
value: hn
|
|
182
182
|
}),
|
|
183
183
|
error: _e({}, et, {
|
|
184
|
-
value:
|
|
184
|
+
value: wn
|
|
185
185
|
}),
|
|
186
186
|
group: _e({}, et, {
|
|
187
187
|
value: Rt
|
|
@@ -213,8 +213,8 @@ function ND() {
|
|
|
213
213
|
}
|
|
214
214
|
var le = !1, Pe;
|
|
215
215
|
{
|
|
216
|
-
var
|
|
217
|
-
Pe = new
|
|
216
|
+
var Sn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
|
+
Pe = new Sn();
|
|
218
218
|
}
|
|
219
219
|
function ie(et, $t) {
|
|
220
220
|
if (!et || le)
|
|
@@ -641,7 +641,7 @@ function FD(d) {
|
|
|
641
641
|
}
|
|
642
642
|
return h;
|
|
643
643
|
}
|
|
644
|
-
var UD = FD,
|
|
644
|
+
var UD = FD, Cn = UD;
|
|
645
645
|
function jD(d) {
|
|
646
646
|
return !!d && typeof d.then == "function";
|
|
647
647
|
}
|
|
@@ -649,7 +649,7 @@ var Si = jD;
|
|
|
649
649
|
function VD(d, h) {
|
|
650
650
|
if (d != null)
|
|
651
651
|
return d;
|
|
652
|
-
throw
|
|
652
|
+
throw Cn(h ?? "Got unexpected null or undefined");
|
|
653
653
|
}
|
|
654
654
|
var Di = VD;
|
|
655
655
|
function On(d, h, p) {
|
|
@@ -662,34 +662,34 @@ function On(d, h, p) {
|
|
|
662
662
|
}
|
|
663
663
|
class of {
|
|
664
664
|
getValue() {
|
|
665
|
-
throw
|
|
665
|
+
throw Cn("BaseLoadable");
|
|
666
666
|
}
|
|
667
667
|
toPromise() {
|
|
668
|
-
throw
|
|
668
|
+
throw Cn("BaseLoadable");
|
|
669
669
|
}
|
|
670
670
|
valueMaybe() {
|
|
671
|
-
throw
|
|
671
|
+
throw Cn("BaseLoadable");
|
|
672
672
|
}
|
|
673
673
|
valueOrThrow() {
|
|
674
|
-
throw
|
|
674
|
+
throw Cn(`Loadable expected value, but in "${this.state}" state`);
|
|
675
675
|
}
|
|
676
676
|
promiseMaybe() {
|
|
677
|
-
throw
|
|
677
|
+
throw Cn("BaseLoadable");
|
|
678
678
|
}
|
|
679
679
|
promiseOrThrow() {
|
|
680
|
-
throw
|
|
680
|
+
throw Cn(`Loadable expected promise, but in "${this.state}" state`);
|
|
681
681
|
}
|
|
682
682
|
errorMaybe() {
|
|
683
|
-
throw
|
|
683
|
+
throw Cn("BaseLoadable");
|
|
684
684
|
}
|
|
685
685
|
errorOrThrow() {
|
|
686
|
-
throw
|
|
686
|
+
throw Cn(`Loadable expected error, but in "${this.state}" state`);
|
|
687
687
|
}
|
|
688
688
|
is(h) {
|
|
689
689
|
return h.state === this.state && h.contents === this.contents;
|
|
690
690
|
}
|
|
691
691
|
map(h) {
|
|
692
|
-
throw
|
|
692
|
+
throw Cn("BaseLoadable");
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
class $D extends of {
|
|
@@ -867,7 +867,7 @@ function tk(d, h) {
|
|
|
867
867
|
if (v == null || v === "")
|
|
868
868
|
return;
|
|
869
869
|
if (!["true", "false"].includes(v))
|
|
870
|
-
throw
|
|
870
|
+
throw Cn(`process.env.${d} value must be 'true', 'false', or empty: ${v}`);
|
|
871
871
|
h(v === "true");
|
|
872
872
|
}
|
|
873
873
|
function ek(d, h) {
|
|
@@ -1162,7 +1162,7 @@ var Pk = Rk(function(d) {
|
|
|
1162
1162
|
hash: Kt,
|
|
1163
1163
|
key: Se,
|
|
1164
1164
|
value: ce,
|
|
1165
|
-
_modify:
|
|
1165
|
+
_modify: hn
|
|
1166
1166
|
};
|
|
1167
1167
|
}, q = function(mt, Kt, Se) {
|
|
1168
1168
|
return {
|
|
@@ -1170,7 +1170,7 @@ var Pk = Rk(function(d) {
|
|
|
1170
1170
|
edit: mt,
|
|
1171
1171
|
hash: Kt,
|
|
1172
1172
|
children: Se,
|
|
1173
|
-
_modify:
|
|
1173
|
+
_modify: wn
|
|
1174
1174
|
};
|
|
1175
1175
|
}, Nt = function(mt, Kt, Se) {
|
|
1176
1176
|
return {
|
|
@@ -1206,7 +1206,7 @@ var Pk = Rk(function(d) {
|
|
|
1206
1206
|
return q(mt, Se, [Be, ce]);
|
|
1207
1207
|
var Ce = U(Kt, Se), at = U(Kt, Ee);
|
|
1208
1208
|
return Nt(mt, X(Ce) | X(at), Ce === at ? [St(mt, Kt + g, Se, ce, Ee, Be)] : Ce < at ? [ce, Be] : [Be, ce]);
|
|
1209
|
-
},
|
|
1209
|
+
}, pn = function(mt, Kt, Se, ce, Ee, Be, Ce, at) {
|
|
1210
1210
|
for (var xt = Ee.length, Mt = 0; Mt < xt; ++Mt) {
|
|
1211
1211
|
var Bt = Ee[Mt];
|
|
1212
1212
|
if (Se(Ce, Bt.key)) {
|
|
@@ -1218,16 +1218,16 @@ var Pk = Rk(function(d) {
|
|
|
1218
1218
|
return Xt === T ? Ee : (++at.value, it(mt, xt, Jt(Kt, ce, Ce, Xt), Ee));
|
|
1219
1219
|
}, ze = function(mt, Kt) {
|
|
1220
1220
|
return mt === Kt.edit;
|
|
1221
|
-
},
|
|
1221
|
+
}, hn = function(mt, Kt, Se, ce, Ee, Be, Ce) {
|
|
1222
1222
|
if (Kt(Be, this.key)) {
|
|
1223
1223
|
var at = ce(this.value);
|
|
1224
1224
|
return at === this.value ? this : at === T ? (--Ce.value, Vt) : ze(mt, this) ? (this.value = at, this) : Jt(mt, Ee, Be, at);
|
|
1225
1225
|
}
|
|
1226
1226
|
var xt = ce();
|
|
1227
1227
|
return xt === T ? this : (++Ce.value, zn(mt, Se, this.hash, this, Ee, Jt(mt, Ee, Be, xt)));
|
|
1228
|
-
},
|
|
1228
|
+
}, wn = function(mt, Kt, Se, ce, Ee, Be, Ce) {
|
|
1229
1229
|
if (Ee === this.hash) {
|
|
1230
|
-
var at = ze(mt, this), xt =
|
|
1230
|
+
var at = ze(mt, this), xt = pn(at, mt, Kt, this.hash, this.children, ce, Be, Ce);
|
|
1231
1231
|
return xt === this.children ? this : xt.length > 1 ? q(mt, this.hash, xt) : xt[0];
|
|
1232
1232
|
}
|
|
1233
1233
|
var Mt = ce();
|
|
@@ -1363,11 +1363,11 @@ var Pk = Rk(function(d) {
|
|
|
1363
1363
|
ht.prototype.modifyHash = function(St, mt, Kt) {
|
|
1364
1364
|
return Pe(Kt, St, mt, this);
|
|
1365
1365
|
};
|
|
1366
|
-
var
|
|
1366
|
+
var Sn = p.modify = function(St, mt, Kt) {
|
|
1367
1367
|
return Pe(St, Kt._config.hash(mt), mt, Kt);
|
|
1368
1368
|
};
|
|
1369
1369
|
ht.prototype.modify = function(St, mt) {
|
|
1370
|
-
return
|
|
1370
|
+
return Sn(mt, St, this);
|
|
1371
1371
|
};
|
|
1372
1372
|
var ie = p.setHash = function(St, mt, Kt, Se) {
|
|
1373
1373
|
return Pe(D(Kt), St, mt, Se);
|
|
@@ -1960,7 +1960,7 @@ function IO(d, h, {
|
|
|
1960
1960
|
const v = i3(d, h, p);
|
|
1961
1961
|
if (v.state === "loading") {
|
|
1962
1962
|
const w = `Tried to set atom or selector "${p}" using an updater function while the current state is pending, this is not currently supported.`;
|
|
1963
|
-
throw Ki(w),
|
|
1963
|
+
throw Ki(w), Cn(w);
|
|
1964
1964
|
} else if (v.state === "hasError")
|
|
1965
1965
|
throw v.contents;
|
|
1966
1966
|
return g(v.contents);
|
|
@@ -2451,7 +2451,7 @@ class mf {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
}),
|
|
2453
2453
|
addTransactionMetadata: () => {
|
|
2454
|
-
throw
|
|
2454
|
+
throw Cn("Cannot subscribe to Snapshots");
|
|
2455
2455
|
}
|
|
2456
2456
|
};
|
|
2457
2457
|
for (const g of this._store.getState().knownAtoms)
|
|
@@ -2461,7 +2461,7 @@ class mf {
|
|
|
2461
2461
|
retain() {
|
|
2462
2462
|
if (this._refCount <= 0) {
|
|
2463
2463
|
if (process.env.NODE_ENV !== "production")
|
|
2464
|
-
throw
|
|
2464
|
+
throw Cn("Snapshot has already been released.");
|
|
2465
2465
|
Ki("Attempt to retain() Snapshot that was already released.");
|
|
2466
2466
|
}
|
|
2467
2467
|
this._refCount++;
|
|
@@ -2653,7 +2653,7 @@ const {
|
|
|
2653
2653
|
useState: Xz
|
|
2654
2654
|
} = Kn;
|
|
2655
2655
|
function zc() {
|
|
2656
|
-
throw
|
|
2656
|
+
throw Cn("This component must be used inside a <RecoilRoot> component.");
|
|
2657
2657
|
}
|
|
2658
2658
|
const T3 = Object.freeze({
|
|
2659
2659
|
storeID: x3(),
|
|
@@ -2666,7 +2666,7 @@ const T3 = Object.freeze({
|
|
|
2666
2666
|
let ny = !1;
|
|
2667
2667
|
function ET(d) {
|
|
2668
2668
|
if (ny)
|
|
2669
|
-
throw
|
|
2669
|
+
throw Cn("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");
|
|
2670
2670
|
const h = d.getState();
|
|
2671
2671
|
if (h.nextTree === null) {
|
|
2672
2672
|
Ti("recoil_memory_managament_2020") && Ti("recoil_release_on_cascading_update_killswitch_2021") && h.commitDepth > 0 && w3(d);
|
|
@@ -2976,11 +2976,11 @@ function By(d, h, p) {
|
|
|
2976
2976
|
w.add(v), E6 && Si(d.contents) && d.contents.finally(() => {
|
|
2977
2977
|
w.delete(v);
|
|
2978
2978
|
});
|
|
2979
|
-
}) : d.state === "hasError" ? d.contents :
|
|
2979
|
+
}) : d.state === "hasError" ? d.contents : Cn(`Invalid value of loadable atom "${h.key}"`);
|
|
2980
2980
|
}
|
|
2981
2981
|
function ar(d, h) {
|
|
2982
2982
|
if (!w6(d))
|
|
2983
|
-
throw
|
|
2983
|
+
throw Cn(`Invalid argument to ${h}: expected an atom or selector but got ${String(d)}`);
|
|
2984
2984
|
}
|
|
2985
2985
|
function A6() {
|
|
2986
2986
|
const d = iu(), h = xo(), [, p] = zy([]), g = Wc(/* @__PURE__ */ new Set());
|
|
@@ -3093,7 +3093,7 @@ function M6(d) {
|
|
|
3093
3093
|
}, v).release;
|
|
3094
3094
|
}, [h, d, v, p]), E = b6();
|
|
3095
3095
|
if (E == null)
|
|
3096
|
-
throw
|
|
3096
|
+
throw Cn("Recoil hooks must be used in components contained within a <RecoilRoot> component.");
|
|
3097
3097
|
const C = v6(E, g, w), T = Wc(C);
|
|
3098
3098
|
return _l(() => {
|
|
3099
3099
|
T.current = C;
|
|
@@ -3428,14 +3428,14 @@ class _B {
|
|
|
3428
3428
|
if (this._changes.has(g.key))
|
|
3429
3429
|
return this._changes.get(g.key);
|
|
3430
3430
|
if (!PT(g))
|
|
3431
|
-
throw
|
|
3431
|
+
throw Cn("Reading selectors within atomicUpdate is not supported");
|
|
3432
3432
|
const v = pB(this._store, g, this._treeState);
|
|
3433
3433
|
if (v.state === "hasValue")
|
|
3434
3434
|
return v.contents;
|
|
3435
|
-
throw v.state === "hasError" ? v.contents :
|
|
3435
|
+
throw v.state === "hasError" ? v.contents : Cn(`Expected Recoil atom ${g.key} to have a value, but it is in a loading state.`);
|
|
3436
3436
|
}), On(this, "set", (g, v) => {
|
|
3437
3437
|
if (!PT(g))
|
|
3438
|
-
throw
|
|
3438
|
+
throw Cn("Setting selectors within atomicUpdate is not supported");
|
|
3439
3439
|
if (typeof v == "function") {
|
|
3440
3440
|
const w = this.get(g);
|
|
3441
3441
|
this._changes.set(g.key, v(w));
|
|
@@ -3501,7 +3501,7 @@ function U3(d, h, p, g) {
|
|
|
3501
3501
|
if (TB(() => {
|
|
3502
3502
|
const C = "useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";
|
|
3503
3503
|
if (typeof h != "function")
|
|
3504
|
-
throw
|
|
3504
|
+
throw Cn(C);
|
|
3505
3505
|
const T = JE({
|
|
3506
3506
|
...g ?? {},
|
|
3507
3507
|
// flowlint-line unclear-type:off
|
|
@@ -3520,7 +3520,7 @@ function U3(d, h, p, g) {
|
|
|
3520
3520
|
}
|
|
3521
3521
|
}), D = h(T);
|
|
3522
3522
|
if (typeof D != "function")
|
|
3523
|
-
throw
|
|
3523
|
+
throw Cn(C);
|
|
3524
3524
|
v = D(...p);
|
|
3525
3525
|
}), v instanceof F3 && (process.env.NODE_ENV !== "production" ? go(!1, "batchUpdates should return immediately") : go(!1)), Si(v))
|
|
3526
3526
|
v = v.finally(() => {
|
|
@@ -3804,7 +3804,7 @@ function Vr(d, h, p) {
|
|
|
3804
3804
|
return JSON.stringify(d);
|
|
3805
3805
|
case "function":
|
|
3806
3806
|
if ((h == null ? void 0 : h.allowFunctions) !== !0)
|
|
3807
|
-
throw
|
|
3807
|
+
throw Cn("Attempt to serialize function in a Recoil cache key");
|
|
3808
3808
|
return `__FUNCTION(${d.name})__`;
|
|
3809
3809
|
}
|
|
3810
3810
|
if (d === null)
|
|
@@ -3864,7 +3864,7 @@ function sN(d) {
|
|
|
3864
3864
|
case "value":
|
|
3865
3865
|
return (h) => wf(h);
|
|
3866
3866
|
}
|
|
3867
|
-
throw
|
|
3867
|
+
throw Cn(`Unrecognized equality policy ${d}`);
|
|
3868
3868
|
}
|
|
3869
3869
|
function aN(d, h, p, g) {
|
|
3870
3870
|
switch (d) {
|
|
@@ -3886,7 +3886,7 @@ function aN(d, h, p, g) {
|
|
|
3886
3886
|
mapNodeValue: p
|
|
3887
3887
|
});
|
|
3888
3888
|
}
|
|
3889
|
-
throw
|
|
3889
|
+
throw Cn(`Unrecognized eviction policy ${d}`);
|
|
3890
3890
|
}
|
|
3891
3891
|
var lN = oN;
|
|
3892
3892
|
function cN(d) {
|
|
@@ -3974,9 +3974,9 @@ function W3(d) {
|
|
|
3974
3974
|
} = d, w = d.set != null ? d.set : void 0;
|
|
3975
3975
|
if (process.env.NODE_ENV !== "production") {
|
|
3976
3976
|
if (typeof p != "string")
|
|
3977
|
-
throw
|
|
3977
|
+
throw Cn("A key option with a unique string value must be provided when creating a selector.");
|
|
3978
3978
|
if (typeof g != "function")
|
|
3979
|
-
throw
|
|
3979
|
+
throw Cn("Selectors must specify a get callback option to get the selector value.");
|
|
3980
3980
|
}
|
|
3981
3981
|
const E = /* @__PURE__ */ new Set(), C = lN(v ?? {
|
|
3982
3982
|
equality: "reference",
|
|
@@ -3995,7 +3995,7 @@ function W3(d) {
|
|
|
3995
3995
|
return wN(p) !== void 0 && !B();
|
|
3996
3996
|
}
|
|
3997
3997
|
function Q(ht, Ot, Ft, fe, nt) {
|
|
3998
|
-
|
|
3998
|
+
pn(Ot, fe, nt), it(ht, Ft);
|
|
3999
3999
|
}
|
|
4000
4000
|
function it(ht, Ot) {
|
|
4001
4001
|
_e(ht, Ot) && jt(ht), Et(Ot, !0);
|
|
@@ -4048,8 +4048,8 @@ function W3(d) {
|
|
|
4048
4048
|
if (ie != null)
|
|
4049
4049
|
return ie.loadingLoadable.contents;
|
|
4050
4050
|
}
|
|
4051
|
-
const [Pe,
|
|
4052
|
-
if (Pe.state !== "loading" && Q(ht, Ft, nt, Pe,
|
|
4051
|
+
const [Pe, Sn] = Vt(ht, Ft, nt);
|
|
4052
|
+
if (Pe.state !== "loading" && Q(ht, Ft, nt, Pe, Sn), Pe.state === "hasError")
|
|
4053
4053
|
throw Pe.contents;
|
|
4054
4054
|
return Pe.contents;
|
|
4055
4055
|
}).catch((xe) => {
|
|
@@ -4064,8 +4064,8 @@ function W3(d) {
|
|
|
4064
4064
|
function ct(ht, Ot, Ft, fe) {
|
|
4065
4065
|
var nt, ne, xe, le;
|
|
4066
4066
|
if (_e(ht, fe) || Ot.version === ((nt = ht.getState()) === null || nt === void 0 || (ne = nt.currentTree) === null || ne === void 0 ? void 0 : ne.version) || Ot.version === ((xe = ht.getState()) === null || xe === void 0 || (le = xe.nextTree) === null || le === void 0 ? void 0 : le.version)) {
|
|
4067
|
-
var Pe,
|
|
4068
|
-
xN(p, Ft, ht, (Pe = (
|
|
4067
|
+
var Pe, Sn, ie;
|
|
4068
|
+
xN(p, Ft, ht, (Pe = (Sn = ht.getState()) === null || Sn === void 0 || (ie = Sn.nextTree) === null || ie === void 0 ? void 0 : ie.version) !== null && Pe !== void 0 ? Pe : ht.getState().currentTree.version);
|
|
4069
4069
|
}
|
|
4070
4070
|
for (const Ze of Ft)
|
|
4071
4071
|
E.add(Ze);
|
|
@@ -4076,7 +4076,7 @@ function W3(d) {
|
|
|
4076
4076
|
const xe = () => {
|
|
4077
4077
|
fe(), ne = !1;
|
|
4078
4078
|
};
|
|
4079
|
-
let le, Pe = !1,
|
|
4079
|
+
let le, Pe = !1, Sn;
|
|
4080
4080
|
const ie = {
|
|
4081
4081
|
loadingDepKey: null,
|
|
4082
4082
|
loadingDepPromise: null
|
|
@@ -4093,11 +4093,11 @@ function W3(d) {
|
|
|
4093
4093
|
case "loading":
|
|
4094
4094
|
throw ie.loadingDepKey = Lt, ie.loadingDepPromise = V.contents, V.contents;
|
|
4095
4095
|
}
|
|
4096
|
-
throw
|
|
4096
|
+
throw Cn("Invalid Loadable state");
|
|
4097
4097
|
}
|
|
4098
4098
|
const gi = (Lt) => (...V) => {
|
|
4099
4099
|
if (ne)
|
|
4100
|
-
throw
|
|
4100
|
+
throw Cn("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");
|
|
4101
4101
|
return h == null && (process.env.NODE_ENV !== "production" ? go(!1, "Recoil Value can never be null") : go(!1)), AN(
|
|
4102
4102
|
ht,
|
|
4103
4103
|
Lt,
|
|
@@ -4116,7 +4116,7 @@ function W3(d) {
|
|
|
4116
4116
|
} catch (Lt) {
|
|
4117
4117
|
le = Lt, Si(le) ? le = bt(ht, le, Ot, Ze, Ft, ie).finally(xe) : (Pe = !0, xe());
|
|
4118
4118
|
}
|
|
4119
|
-
return Pe ?
|
|
4119
|
+
return Pe ? Sn = Rd(le) : Si(le) ? Sn = _N(le) : Sn = R_(le), nt = !1, Oe(ht, Ft, Ze), ct(ht, Ot, new Set(Ze.keys()), Ft), [Sn, Ze];
|
|
4120
4120
|
}
|
|
4121
4121
|
function Ht(ht, Ot) {
|
|
4122
4122
|
let Ft = Ot.atomValues.get(p);
|
|
@@ -4130,7 +4130,7 @@ function W3(d) {
|
|
|
4130
4130
|
}
|
|
4131
4131
|
});
|
|
4132
4132
|
} catch (ne) {
|
|
4133
|
-
throw
|
|
4133
|
+
throw Cn(`Problem with cache lookup for selector "${p}": ${ne.message}`);
|
|
4134
4134
|
}
|
|
4135
4135
|
if (Ft) {
|
|
4136
4136
|
var nt;
|
|
@@ -4148,7 +4148,7 @@ function W3(d) {
|
|
|
4148
4148
|
return ((nt = fe.loadingLoadable) === null || nt === void 0 ? void 0 : nt.state) === "loading" && ot(ht, fe.executionID), fe.loadingLoadable;
|
|
4149
4149
|
}
|
|
4150
4150
|
const ne = MN(), [xe, le] = Vt(ht, Ot, ne);
|
|
4151
|
-
return xe.state === "loading" ? (de(ht, ne, xe, le, Ot), ot(ht, ne)) : (jt(ht),
|
|
4151
|
+
return xe.state === "loading" ? (de(ht, ne, xe, le, Ot), ot(ht, ne)) : (jt(ht), pn(Ot, xe, le)), xe;
|
|
4152
4152
|
}
|
|
4153
4153
|
function q(ht, Ot) {
|
|
4154
4154
|
const Ft = m3([D.has(ht) ? [Di(D.get(ht))] : [], uf(Ry(D, ([nt]) => nt !== ht), ([, nt]) => nt)]);
|
|
@@ -4196,18 +4196,18 @@ function W3(d) {
|
|
|
4196
4196
|
function zn(ht) {
|
|
4197
4197
|
return Array.from(ht.entries()).map(([Ot, Ft]) => [Ot, Ft.contents]);
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4199
|
+
function pn(ht, Ot, Ft) {
|
|
4200
4200
|
process.env.NODE_ENV !== "production" && Ot.state !== "loading" && !d.dangerouslyAllowMutability && oy(Ot.contents), ht.atomValues.set(p, Ot);
|
|
4201
4201
|
try {
|
|
4202
4202
|
C.set(zn(Ft), Ot);
|
|
4203
4203
|
} catch (fe) {
|
|
4204
|
-
throw
|
|
4204
|
+
throw Cn(`Problem with setting cache for selector "${p}": ${fe.message}`);
|
|
4205
4205
|
}
|
|
4206
4206
|
}
|
|
4207
4207
|
function ze(ht) {
|
|
4208
4208
|
if (Fc.includes(p)) {
|
|
4209
4209
|
const Ot = `Recoil selector has circular dependencies: ${Fc.slice(Fc.indexOf(p)).join(" → ")}`;
|
|
4210
|
-
return Rd(
|
|
4210
|
+
return Rd(Cn(Ot));
|
|
4211
4211
|
}
|
|
4212
4212
|
Fc.push(p);
|
|
4213
4213
|
try {
|
|
@@ -4216,14 +4216,14 @@ function W3(d) {
|
|
|
4216
4216
|
Fc.pop();
|
|
4217
4217
|
}
|
|
4218
4218
|
}
|
|
4219
|
-
function
|
|
4219
|
+
function hn(ht, Ot) {
|
|
4220
4220
|
const Ft = Ot.atomValues.get(p);
|
|
4221
4221
|
return Ft ?? C.get((fe) => {
|
|
4222
4222
|
var nt;
|
|
4223
4223
|
return typeof fe != "string" && (process.env.NODE_ENV !== "production" ? go(!1, "Cache nodeKey is type string") : go(!1)), (nt = yN(ht, Ot, fe)) === null || nt === void 0 ? void 0 : nt.contents;
|
|
4224
4224
|
});
|
|
4225
4225
|
}
|
|
4226
|
-
function
|
|
4226
|
+
function wn(ht, Ot) {
|
|
4227
4227
|
return ze(() => Jt(ht, Ot));
|
|
4228
4228
|
}
|
|
4229
4229
|
function Rt(ht) {
|
|
@@ -4241,8 +4241,8 @@ function W3(d) {
|
|
|
4241
4241
|
return w != null ? h = OT({
|
|
4242
4242
|
key: p,
|
|
4243
4243
|
nodeType: "selector",
|
|
4244
|
-
peek:
|
|
4245
|
-
get:
|
|
4244
|
+
peek: hn,
|
|
4245
|
+
get: wn,
|
|
4246
4246
|
set: (Ot, Ft, fe) => {
|
|
4247
4247
|
let nt = !1;
|
|
4248
4248
|
const ne = /* @__PURE__ */ new Map();
|
|
@@ -4250,20 +4250,20 @@ function W3(d) {
|
|
|
4250
4250
|
key: ie
|
|
4251
4251
|
}) {
|
|
4252
4252
|
if (nt)
|
|
4253
|
-
throw
|
|
4253
|
+
throw Cn("Recoil: Async selector sets are not currently supported.");
|
|
4254
4254
|
const Ze = Pd(Ot, Ft, ie);
|
|
4255
4255
|
if (Ze.state === "hasValue")
|
|
4256
4256
|
return Ze.contents;
|
|
4257
4257
|
if (Ze.state === "loading") {
|
|
4258
4258
|
const ei = `Getting value of asynchronous atom or selector "${ie}" in a pending state while setting selector "${p}" is not yet supported.`;
|
|
4259
|
-
throw Ki(ei),
|
|
4259
|
+
throw Ki(ei), Cn(ei);
|
|
4260
4260
|
} else
|
|
4261
4261
|
throw Ze.contents;
|
|
4262
4262
|
}
|
|
4263
4263
|
function le(ie, Ze) {
|
|
4264
4264
|
if (nt) {
|
|
4265
4265
|
const Lt = "Recoil: Async selector sets are not currently supported.";
|
|
4266
|
-
throw Ki(Lt),
|
|
4266
|
+
throw Ki(Lt), Cn(Lt);
|
|
4267
4267
|
}
|
|
4268
4268
|
const ei = typeof Ze == "function" ? (
|
|
4269
4269
|
// cast to any because we can't restrict type S from being a function itself without losing support for opaque types
|
|
@@ -4275,13 +4275,13 @@ function W3(d) {
|
|
|
4275
4275
|
function Pe(ie) {
|
|
4276
4276
|
le(ie, bN);
|
|
4277
4277
|
}
|
|
4278
|
-
const
|
|
4278
|
+
const Sn = w({
|
|
4279
4279
|
set: le,
|
|
4280
4280
|
get: xe,
|
|
4281
4281
|
reset: Pe
|
|
4282
4282
|
}, fe);
|
|
4283
|
-
if (
|
|
4284
|
-
throw Si(
|
|
4283
|
+
if (Sn !== void 0)
|
|
4284
|
+
throw Si(Sn) ? Cn("Recoil: Async selector sets are not currently supported.") : Cn("Recoil: selector set should be a void function.");
|
|
4285
4285
|
return nt = !0, ne;
|
|
4286
4286
|
},
|
|
4287
4287
|
init: U,
|
|
@@ -4294,8 +4294,8 @@ function W3(d) {
|
|
|
4294
4294
|
}) : h = OT({
|
|
4295
4295
|
key: p,
|
|
4296
4296
|
nodeType: "selector",
|
|
4297
|
-
peek:
|
|
4298
|
-
get:
|
|
4297
|
+
peek: hn,
|
|
4298
|
+
get: wn,
|
|
4299
4299
|
init: U,
|
|
4300
4300
|
invalidate: Rt,
|
|
4301
4301
|
clearCache: gt,
|
|
@@ -4393,7 +4393,7 @@ function NN(d) {
|
|
|
4393
4393
|
return kN(ot, Rt);
|
|
4394
4394
|
}, zn = function(Rt) {
|
|
4395
4395
|
return _e(Rt).toPromise();
|
|
4396
|
-
},
|
|
4396
|
+
}, pn = function(Rt) {
|
|
4397
4397
|
var gt;
|
|
4398
4398
|
const ht = RN(ot, (gt = ot.getState().nextTree) !== null && gt !== void 0 ? gt : ot.getState().currentTree, Rt.key);
|
|
4399
4399
|
return de && Rt.key === h && !(Nt instanceof bs) ? {
|
|
@@ -4414,7 +4414,7 @@ function NN(d) {
|
|
|
4414
4414
|
}, Ft)));
|
|
4415
4415
|
} else {
|
|
4416
4416
|
if (Si(gt))
|
|
4417
|
-
throw
|
|
4417
|
+
throw Cn("Setting atoms to async values is not implemented.");
|
|
4418
4418
|
typeof gt != "function" && (jt = {
|
|
4419
4419
|
effect: Rt,
|
|
4420
4420
|
value: Uc(gt)
|
|
@@ -4430,7 +4430,7 @@ function NN(d) {
|
|
|
4430
4430
|
}, Ot;
|
|
4431
4431
|
} : Uc(gt));
|
|
4432
4432
|
}
|
|
4433
|
-
},
|
|
4433
|
+
}, hn = (Rt) => () => ze(Rt)(oa), wn = (Rt) => (gt) => {
|
|
4434
4434
|
var ht;
|
|
4435
4435
|
const {
|
|
4436
4436
|
release: Ot
|
|
@@ -4443,9 +4443,9 @@ function NN(d) {
|
|
|
4443
4443
|
ne || (Ki("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"), ne = nt);
|
|
4444
4444
|
const xe = (fe = nt.atomValues.get(h)) !== null && fe !== void 0 ? fe : E;
|
|
4445
4445
|
if (xe.state === "hasValue") {
|
|
4446
|
-
var le, Pe,
|
|
4446
|
+
var le, Pe, Sn, ie;
|
|
4447
4447
|
const Ze = xe.contents, ei = (le = ne.atomValues.get(h)) !== null && le !== void 0 ? le : E, gi = ei.state === "hasValue" ? ei.contents : oa;
|
|
4448
|
-
((Pe = jt) === null || Pe === void 0 ? void 0 : Pe.effect) !== Rt || ((
|
|
4448
|
+
((Pe = jt) === null || Pe === void 0 ? void 0 : Pe.effect) !== Rt || ((Sn = jt) === null || Sn === void 0 ? void 0 : Sn.value) !== Ze ? gt(Ze, gi, !nt.atomValues.has(h)) : ((ie = jt) === null || ie === void 0 ? void 0 : ie.effect) === Rt && (jt = null);
|
|
4449
4449
|
}
|
|
4450
4450
|
}, h);
|
|
4451
4451
|
T.set(ot, [...(ht = T.get(ot)) !== null && ht !== void 0 ? ht : [], Ot]);
|
|
@@ -4458,11 +4458,11 @@ function NN(d) {
|
|
|
4458
4458
|
parentStoreID_UNSTABLE: ot.parentStoreID,
|
|
4459
4459
|
trigger: bt,
|
|
4460
4460
|
setSelf: ze(Rt),
|
|
4461
|
-
resetSelf:
|
|
4462
|
-
onSet:
|
|
4461
|
+
resetSelf: hn(Rt),
|
|
4462
|
+
onSet: wn(Rt),
|
|
4463
4463
|
getPromise: zn,
|
|
4464
4464
|
getLoadable: _e,
|
|
4465
|
-
getInfo_UNSTABLE:
|
|
4465
|
+
getInfo_UNSTABLE: pn
|
|
4466
4466
|
});
|
|
4467
4467
|
if (gt != null) {
|
|
4468
4468
|
var Jt;
|
|
@@ -4532,7 +4532,7 @@ function NN(d) {
|
|
|
4532
4532
|
}
|
|
4533
4533
|
function Uy(d) {
|
|
4534
4534
|
if (process.env.NODE_ENV !== "production" && typeof d.key != "string")
|
|
4535
|
-
throw
|
|
4535
|
+
throw Cn("A key option with a unique string value must be provided when creating an atom.");
|
|
4536
4536
|
const {
|
|
4537
4537
|
// @fb-only: scopeRules_APPEND_ONLY_READ_THE_DOCS,
|
|
4538
4538
|
...h
|
|
@@ -4641,7 +4641,7 @@ function ZN(d) {
|
|
|
4641
4641
|
case "value":
|
|
4642
4642
|
return (h) => wf(h);
|
|
4643
4643
|
}
|
|
4644
|
-
throw
|
|
4644
|
+
throw Cn(`Unrecognized equality policy ${d}`);
|
|
4645
4645
|
}
|
|
4646
4646
|
function HN(d, h, p) {
|
|
4647
4647
|
switch (d) {
|
|
@@ -4660,7 +4660,7 @@ function HN(d, h, p) {
|
|
|
4660
4660
|
maxSize: 1
|
|
4661
4661
|
});
|
|
4662
4662
|
}
|
|
4663
|
-
throw
|
|
4663
|
+
throw Cn(`Unrecognized eviction policy ${d}`);
|
|
4664
4664
|
}
|
|
4665
4665
|
var J3 = qN;
|
|
4666
4666
|
const {
|
|
@@ -4726,7 +4726,7 @@ function QN(d) {
|
|
|
4726
4726
|
try {
|
|
4727
4727
|
E = g.get(v);
|
|
4728
4728
|
} catch (U) {
|
|
4729
|
-
throw
|
|
4729
|
+
throw Cn(`Problem with cache lookup for selector ${d.key}: ${U.message}`);
|
|
4730
4730
|
}
|
|
4731
4731
|
if (E != null)
|
|
4732
4732
|
return E;
|
|
@@ -4774,7 +4774,7 @@ var nF = eF;
|
|
|
4774
4774
|
const iF = Ts({
|
|
4775
4775
|
key: "__error",
|
|
4776
4776
|
get: (d) => () => {
|
|
4777
|
-
throw
|
|
4777
|
+
throw Cn(d);
|
|
4778
4778
|
},
|
|
4779
4779
|
// TODO Why?
|
|
4780
4780
|
cachePolicyForParams_UNSTABLE: {
|
|
@@ -5395,7 +5395,7 @@ const YF = (d, h, ...p) => {
|
|
|
5395
5395
|
if (w)
|
|
5396
5396
|
return w[g];
|
|
5397
5397
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
5398
|
-
return $F(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-
|
|
5398
|
+
return $F(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-ced029f6.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-9ea619e9.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-408ba7f9.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-748998e1.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-a9ffcb48.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-51f3cc08.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-6161962c.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-a1d3336a.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-a4ac60d8.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-a642fb7f.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-1c49bf32.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-775b5466.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-c5f94330.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-d1116b2f.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-ed1f1a5b.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-d20a7949.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-171dd72f.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-001feeea.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-c6c676ef.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-4eb327ce.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-21fe91f1.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-9f2a4e3c.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-9370f60f.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-8e68deb2.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-fd5a59a8.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-74f1da74.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-193096a0.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-52af85cd.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-0ea1a4c9.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-2fb2f338.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-5c3f76d3.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-bb2b45e2.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-d275a098.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-082c28a2.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-7e36ba71.mjs") }), `./${v}.entry.js`).then((E) => (ZT.set(v, E), E[g]), ma);
|
|
5399
5399
|
}, Wd = /* @__PURE__ */ new Map(), su = typeof window < "u" ? window : {}, _o = su.document || { head: {} }, Yi = {
|
|
5400
5400
|
$flags$: 0,
|
|
5401
5401
|
$resourcesUrl$: "",
|
|
@@ -5840,15 +5840,15 @@ class Qd extends Af {
|
|
|
5840
5840
|
_e.push(zn[ze]);
|
|
5841
5841
|
else
|
|
5842
5842
|
this.options.saveMissingTo === "all" ? _e = this.languageUtils.toResolveHierarchy(p.lng || this.language) : _e.push(p.lng || this.language);
|
|
5843
|
-
const
|
|
5844
|
-
const Rt = Ht &&
|
|
5845
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(ze, T,
|
|
5843
|
+
const pn = (ze, hn, wn) => {
|
|
5844
|
+
const Rt = Ht && wn !== U ? wn : Oe;
|
|
5845
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(ze, T, hn, Rt, jt, p) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(ze, T, hn, Rt, jt, p), this.emit("missingKey", ze, T, hn, U);
|
|
5846
5846
|
};
|
|
5847
5847
|
this.options.saveMissing && (this.options.saveMissingPlurals && Vt ? _e.forEach((ze) => {
|
|
5848
|
-
this.pluralResolver.getSuffixes(ze, p).forEach((
|
|
5849
|
-
|
|
5848
|
+
this.pluralResolver.getSuffixes(ze, p).forEach((hn) => {
|
|
5849
|
+
pn([ze], E + hn, p[`defaultValue${hn}`] || Nt);
|
|
5850
5850
|
});
|
|
5851
|
-
}) :
|
|
5851
|
+
}) : pn(_e, E, Nt));
|
|
5852
5852
|
}
|
|
5853
5853
|
U = this.extendTranslation(U, h, p, B, g), ct && U === E && this.options.appendNamespaceToMissingKey && (U = `${T}:${E}`), (ct || bt) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? U = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${T}:${E}` : E, bt ? U : void 0) : U = this.options.parseMissingKeyHandler(U));
|
|
5854
5854
|
}
|
|
@@ -7930,7 +7930,7 @@ var SA = { exports: {} };
|
|
|
7930
7930
|
return e * Oe;
|
|
7931
7931
|
}
|
|
7932
7932
|
const zn = [[0, 0], [1, 0], [1, 1], [0, 1]];
|
|
7933
|
-
function
|
|
7933
|
+
function pn(e) {
|
|
7934
7934
|
if (e <= 0)
|
|
7935
7935
|
return 0;
|
|
7936
7936
|
if (e >= 1)
|
|
@@ -7944,17 +7944,17 @@ var SA = { exports: {} };
|
|
|
7944
7944
|
t = Math.min(t, o.x), n = Math.min(n, o.y), i = Math.max(i, o.x), r = Math.max(r, o.y);
|
|
7945
7945
|
return { min: new q(t, n), max: new q(i, r) };
|
|
7946
7946
|
}
|
|
7947
|
-
function
|
|
7947
|
+
function hn(e, t, n = 0, i = !0) {
|
|
7948
7948
|
const r = new q(n, n), o = e.sub(r), s = t.add(r), a = [o, new q(s.x, o.y), s, new q(o.x, s.y)];
|
|
7949
7949
|
return i && a.push(o.clone()), a;
|
|
7950
7950
|
}
|
|
7951
|
-
function
|
|
7951
|
+
function wn(e, t, n, i) {
|
|
7952
7952
|
const r = new Vt(e, t, n, i);
|
|
7953
7953
|
return function(o) {
|
|
7954
7954
|
return r.solve(o);
|
|
7955
7955
|
};
|
|
7956
7956
|
}
|
|
7957
|
-
const Rt =
|
|
7957
|
+
const Rt = wn(0.25, 0.1, 0.25, 1);
|
|
7958
7958
|
function gt(e, t, n) {
|
|
7959
7959
|
return Math.min(n, Math.max(t, e));
|
|
7960
7960
|
}
|
|
@@ -8006,7 +8006,7 @@ var SA = { exports: {} };
|
|
|
8006
8006
|
return t ? (t ^ Math.random() * (16 >> t / 4)).toString(16) : ([1e7] + -[1e3] + -4e3 + -8e3 + -1e11).replace(/[018]/g, e);
|
|
8007
8007
|
}();
|
|
8008
8008
|
}
|
|
8009
|
-
function
|
|
8009
|
+
function Sn(e) {
|
|
8010
8010
|
return e <= 1 ? 1 : Math.pow(2, Math.ceil(Math.log(e) / Math.LN2));
|
|
8011
8011
|
}
|
|
8012
8012
|
function ie(e) {
|
|
@@ -8841,7 +8841,7 @@ var SA = { exports: {} };
|
|
|
8841
8841
|
}
|
|
8842
8842
|
}
|
|
8843
8843
|
var SC = Wf;
|
|
8844
|
-
const ga = { kind: "null" }, ue = { kind: "number" },
|
|
8844
|
+
const ga = { kind: "null" }, ue = { kind: "number" }, En = { kind: "string" }, Dn = { kind: "boolean" }, Lr = { kind: "color" }, _a = { kind: "object" }, In = { kind: "value" }, bu = { kind: "collator" }, Ml = { kind: "formatted" }, Il = { kind: "resolvedImage" };
|
|
8845
8845
|
function lr(e, t) {
|
|
8846
8846
|
return { kind: "array", itemType: e, N: t };
|
|
8847
8847
|
}
|
|
@@ -8852,7 +8852,7 @@ var SA = { exports: {} };
|
|
|
8852
8852
|
}
|
|
8853
8853
|
return e.kind;
|
|
8854
8854
|
}
|
|
8855
|
-
const TC = [ga, ue,
|
|
8855
|
+
const TC = [ga, ue, En, Dn, Lr, Ml, _a, lr(In), Il];
|
|
8856
8856
|
function Rl(e, t) {
|
|
8857
8857
|
if (t.kind === "error")
|
|
8858
8858
|
return null;
|
|
@@ -9049,7 +9049,7 @@ var SA = { exports: {} };
|
|
|
9049
9049
|
if (e === null)
|
|
9050
9050
|
return ga;
|
|
9051
9051
|
if (typeof e == "string")
|
|
9052
|
-
return
|
|
9052
|
+
return En;
|
|
9053
9053
|
if (typeof e == "boolean")
|
|
9054
9054
|
return Dn;
|
|
9055
9055
|
if (typeof e == "number")
|
|
@@ -9117,7 +9117,7 @@ var SA = { exports: {} };
|
|
|
9117
9117
|
return this.message;
|
|
9118
9118
|
}
|
|
9119
9119
|
};
|
|
9120
|
-
const np = { string:
|
|
9120
|
+
const np = { string: En, number: ue, boolean: Dn, object: _a };
|
|
9121
9121
|
class ip {
|
|
9122
9122
|
constructor(t, n) {
|
|
9123
9123
|
this.type = t, this.args = n;
|
|
@@ -9203,7 +9203,7 @@ var SA = { exports: {} };
|
|
|
9203
9203
|
if (a["font-scale"] && (l = n.parse(a["font-scale"], 1, ue), !l))
|
|
9204
9204
|
return null;
|
|
9205
9205
|
let c = null;
|
|
9206
|
-
if (a["text-font"] && (c = n.parse(a["text-font"], 1, lr(
|
|
9206
|
+
if (a["text-font"] && (c = n.parse(a["text-font"], 1, lr(En)), !c))
|
|
9207
9207
|
return null;
|
|
9208
9208
|
let u = null;
|
|
9209
9209
|
if (a["text-color"] && (u = n.parse(a["text-color"], 1, Lr), !u))
|
|
@@ -9252,12 +9252,12 @@ var SA = { exports: {} };
|
|
|
9252
9252
|
static parse(t, n) {
|
|
9253
9253
|
if (t.length < 2)
|
|
9254
9254
|
return n.error("Expected two or more arguments.");
|
|
9255
|
-
const i = n.parse(t[1], 1,
|
|
9255
|
+
const i = n.parse(t[1], 1, En);
|
|
9256
9256
|
if (!i)
|
|
9257
9257
|
return n.error("No image name provided.");
|
|
9258
9258
|
if (t.length === 2)
|
|
9259
9259
|
return new Ol(i);
|
|
9260
|
-
const r = n.parse(t[2], 1,
|
|
9260
|
+
const r = n.parse(t[2], 1, En);
|
|
9261
9261
|
return r ? new Ol(i, r) : n.error("Secondary image variant is not a string.");
|
|
9262
9262
|
}
|
|
9263
9263
|
evaluate(t) {
|
|
@@ -9277,7 +9277,7 @@ var SA = { exports: {} };
|
|
|
9277
9277
|
function Un(e) {
|
|
9278
9278
|
return e instanceof Number ? "number" : e instanceof String ? "string" : e instanceof Boolean ? "boolean" : Array.isArray(e) ? "array" : e === null ? "null" : typeof e;
|
|
9279
9279
|
}
|
|
9280
|
-
const EC = { "to-boolean": Dn, "to-color": Lr, "to-number": ue, "to-string":
|
|
9280
|
+
const EC = { "to-boolean": Dn, "to-color": Lr, "to-number": ue, "to-string": En };
|
|
9281
9281
|
class rp {
|
|
9282
9282
|
constructor(t, n) {
|
|
9283
9283
|
this.type = t, this.args = n;
|
|
@@ -9507,7 +9507,7 @@ var SA = { exports: {} };
|
|
|
9507
9507
|
if (!o)
|
|
9508
9508
|
return null;
|
|
9509
9509
|
let s = null;
|
|
9510
|
-
return i.locale && (s = n.parse(i.locale, 1,
|
|
9510
|
+
return i.locale && (s = n.parse(i.locale, 1, En), !s) ? null : new Tu(r, o, s);
|
|
9511
9511
|
}
|
|
9512
9512
|
evaluate(t) {
|
|
9513
9513
|
return new Qf(this.caseSensitive.evaluate(t), this.diacriticSensitive.evaluate(t), this.locale ? this.locale.evaluate(t) : null);
|
|
@@ -10750,7 +10750,7 @@ var SA = { exports: {} };
|
|
|
10750
10750
|
if (t.length !== 3)
|
|
10751
10751
|
return n.error(`Expected 2 arguments, but found ${t.length - 1} instead.`);
|
|
10752
10752
|
const i = n.parse(t[1], 1, In), r = n.parse(t[2], 2, In);
|
|
10753
|
-
return i && r ? Xf(i.type, [Dn,
|
|
10753
|
+
return i && r ? Xf(i.type, [Dn, En, ue, ga, In]) ? new Pp(i, r) : n.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ii(i.type)} instead`) : null;
|
|
10754
10754
|
}
|
|
10755
10755
|
evaluate(t) {
|
|
10756
10756
|
const n = this.needle.evaluate(t), i = this.haystack.evaluate(t);
|
|
@@ -10783,7 +10783,7 @@ var SA = { exports: {} };
|
|
|
10783
10783
|
const i = n.parse(t[1], 1, In), r = n.parse(t[2], 2, In);
|
|
10784
10784
|
if (!i || !r)
|
|
10785
10785
|
return null;
|
|
10786
|
-
if (!Xf(i.type, [Dn,
|
|
10786
|
+
if (!Xf(i.type, [Dn, En, ue, ga, In]))
|
|
10787
10787
|
return n.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ii(i.type)} instead`);
|
|
10788
10788
|
if (t.length === 4) {
|
|
10789
10789
|
const o = n.parse(t[3], 3, ue);
|
|
@@ -10943,7 +10943,7 @@ var SA = { exports: {} };
|
|
|
10943
10943
|
const i = n.parse(t[1], 1, In), r = n.parse(t[2], 2, ue);
|
|
10944
10944
|
if (!i || !r)
|
|
10945
10945
|
return null;
|
|
10946
|
-
if (!Xf(i.type, [lr(In),
|
|
10946
|
+
if (!Xf(i.type, [lr(In), En, In]))
|
|
10947
10947
|
return n.error(`Expected first argument to be of type array or string, but found ${Ii(i.type)} instead`);
|
|
10948
10948
|
if (t.length === 4) {
|
|
10949
10949
|
const o = n.parse(t[3], 3, ue);
|
|
@@ -11067,7 +11067,7 @@ var SA = { exports: {} };
|
|
|
11067
11067
|
});
|
|
11068
11068
|
class kp {
|
|
11069
11069
|
constructor(t, n, i, r, o, s) {
|
|
11070
|
-
this.type =
|
|
11070
|
+
this.type = En, this.number = t, this.locale = n, this.currency = i, this.unit = r, this.minFractionDigits = o, this.maxFractionDigits = s;
|
|
11071
11071
|
}
|
|
11072
11072
|
static parse(t, n) {
|
|
11073
11073
|
if (t.length !== 3)
|
|
@@ -11079,13 +11079,13 @@ var SA = { exports: {} };
|
|
|
11079
11079
|
if (typeof r != "object" || Array.isArray(r))
|
|
11080
11080
|
return n.error("NumberFormat options argument must be an object.");
|
|
11081
11081
|
let o = null;
|
|
11082
|
-
if (r.locale && (o = n.parse(r.locale, 1,
|
|
11082
|
+
if (r.locale && (o = n.parse(r.locale, 1, En), !o))
|
|
11083
11083
|
return null;
|
|
11084
11084
|
let s = null;
|
|
11085
|
-
if (r.currency && (s = n.parse(r.currency, 1,
|
|
11085
|
+
if (r.currency && (s = n.parse(r.currency, 1, En), !s))
|
|
11086
11086
|
return null;
|
|
11087
11087
|
let a = null;
|
|
11088
|
-
if (r.unit && (a = n.parse(r.unit, 1,
|
|
11088
|
+
if (r.unit && (a = n.parse(r.unit, 1, En), !a))
|
|
11089
11089
|
return null;
|
|
11090
11090
|
let l = null;
|
|
11091
11091
|
if (r["min-fraction-digits"] && (l = n.parse(r["min-fraction-digits"], 1, ue), !l))
|
|
@@ -11198,9 +11198,9 @@ var SA = { exports: {} };
|
|
|
11198
11198
|
function Os(e) {
|
|
11199
11199
|
return { type: e };
|
|
11200
11200
|
}
|
|
11201
|
-
eo.register(s1, { error: [{ kind: "error" }, [
|
|
11201
|
+
eo.register(s1, { error: [{ kind: "error" }, [En], (e, [t]) => {
|
|
11202
11202
|
throw new Gi(t.evaluate(e));
|
|
11203
|
-
}], typeof: [
|
|
11203
|
+
}], typeof: [En, [In], (e, [t]) => Ii(Fi(t.evaluate(e)))], "to-rgba": [lr(ue, 4), [Lr], (e, [t]) => t.evaluate(e).toArray()], rgb: [Lr, [ue, ue, ue], a1], rgba: [Lr, [ue, ue, ue, ue], a1], hsl: [Lr, [ue, ue, ue], l1], hsla: [Lr, [ue, ue, ue, ue], l1], has: { type: Dn, overloads: [[[En], (e, [t]) => c1(t.evaluate(e), e.properties())], [[En, _a], (e, [t, n]) => c1(t.evaluate(e), n.evaluate(e))]] }, get: { type: In, overloads: [[[En], (e, [t]) => Bp(t.evaluate(e), e.properties())], [[En, _a], (e, [t, n]) => Bp(t.evaluate(e), n.evaluate(e))]] }, config: { type: In, overloads: [[[En], (e, [t]) => d1(e, t.evaluate(e), "")], [[En, En], (e, [t, n]) => d1(e, t.evaluate(e), n.evaluate(e))]] }, "feature-state": [In, [En], (e, [t]) => Bp(t.evaluate(e), e.featureState || {})], properties: [_a, [], (e) => e.properties()], "geometry-type": [En, [], (e) => e.geometryType()], id: [In, [], (e) => e.id()], zoom: [ue, [], (e) => e.globals.zoom], pitch: [ue, [], (e) => e.globals.pitch || 0], "distance-from-center": [ue, [], (e) => e.distanceFromCenter()], "measure-light": [ue, [En], (e, [t]) => e.measureLight(t.evaluate(e))], "heatmap-density": [ue, [], (e) => e.globals.heatmapDensity || 0], "line-progress": [ue, [], (e) => e.globals.lineProgress || 0], "raster-value": [ue, [], (e) => e.globals.rasterValue || 0], "sky-radial-progress": [ue, [], (e) => e.globals.skyRadialProgress || 0], accumulated: [In, [], (e) => e.globals.accumulated === void 0 ? null : e.globals.accumulated], "+": [ue, Os(ue), (e, t) => {
|
|
11204
11204
|
let n = 0;
|
|
11205
11205
|
for (const i of t)
|
|
11206
11206
|
n += i.evaluate(e);
|
|
@@ -11213,31 +11213,31 @@ var SA = { exports: {} };
|
|
|
11213
11213
|
}], "-": { type: ue, overloads: [[[ue, ue], (e, [t, n]) => t.evaluate(e) - n.evaluate(e)], [[ue], (e, [t]) => -t.evaluate(e)]] }, "/": [ue, [ue, ue], (e, [t, n]) => t.evaluate(e) / n.evaluate(e)], "%": [ue, [ue, ue], (e, [t, n]) => t.evaluate(e) % n.evaluate(e)], ln2: [ue, [], () => Math.LN2], pi: [ue, [], () => Math.PI], e: [ue, [], () => Math.E], "^": [ue, [ue, ue], (e, [t, n]) => Math.pow(t.evaluate(e), n.evaluate(e))], sqrt: [ue, [ue], (e, [t]) => Math.sqrt(t.evaluate(e))], log10: [ue, [ue], (e, [t]) => Math.log(t.evaluate(e)) / Math.LN10], ln: [ue, [ue], (e, [t]) => Math.log(t.evaluate(e))], log2: [ue, [ue], (e, [t]) => Math.log(t.evaluate(e)) / Math.LN2], sin: [ue, [ue], (e, [t]) => Math.sin(t.evaluate(e))], cos: [ue, [ue], (e, [t]) => Math.cos(t.evaluate(e))], tan: [ue, [ue], (e, [t]) => Math.tan(t.evaluate(e))], asin: [ue, [ue], (e, [t]) => Math.asin(t.evaluate(e))], acos: [ue, [ue], (e, [t]) => Math.acos(t.evaluate(e))], atan: [ue, [ue], (e, [t]) => Math.atan(t.evaluate(e))], min: [ue, Os(ue), (e, t) => Math.min(...t.map((n) => n.evaluate(e)))], max: [ue, Os(ue), (e, t) => Math.max(...t.map((n) => n.evaluate(e)))], abs: [ue, [ue], (e, [t]) => Math.abs(t.evaluate(e))], round: [ue, [ue], (e, [t]) => {
|
|
11214
11214
|
const n = t.evaluate(e);
|
|
11215
11215
|
return n < 0 ? -Math.round(-n) : Math.round(n);
|
|
11216
|
-
}], floor: [ue, [ue], (e, [t]) => Math.floor(t.evaluate(e))], ceil: [ue, [ue], (e, [t]) => Math.ceil(t.evaluate(e))], "filter-==": [Dn, [
|
|
11216
|
+
}], floor: [ue, [ue], (e, [t]) => Math.floor(t.evaluate(e))], ceil: [ue, [ue], (e, [t]) => Math.ceil(t.evaluate(e))], "filter-==": [Dn, [En, In], (e, [t, n]) => e.properties()[t.value] === n.value], "filter-id-==": [Dn, [In], (e, [t]) => e.id() === t.value], "filter-type-==": [Dn, [En], (e, [t]) => e.geometryType() === t.value], "filter-<": [Dn, [En, In], (e, [t, n]) => {
|
|
11217
11217
|
const i = e.properties()[t.value], r = n.value;
|
|
11218
11218
|
return typeof i == typeof r && i < r;
|
|
11219
11219
|
}], "filter-id-<": [Dn, [In], (e, [t]) => {
|
|
11220
11220
|
const n = e.id(), i = t.value;
|
|
11221
11221
|
return typeof n == typeof i && n < i;
|
|
11222
|
-
}], "filter->": [Dn, [
|
|
11222
|
+
}], "filter->": [Dn, [En, In], (e, [t, n]) => {
|
|
11223
11223
|
const i = e.properties()[t.value], r = n.value;
|
|
11224
11224
|
return typeof i == typeof r && i > r;
|
|
11225
11225
|
}], "filter-id->": [Dn, [In], (e, [t]) => {
|
|
11226
11226
|
const n = e.id(), i = t.value;
|
|
11227
11227
|
return typeof n == typeof i && n > i;
|
|
11228
|
-
}], "filter-<=": [Dn, [
|
|
11228
|
+
}], "filter-<=": [Dn, [En, In], (e, [t, n]) => {
|
|
11229
11229
|
const i = e.properties()[t.value], r = n.value;
|
|
11230
11230
|
return typeof i == typeof r && i <= r;
|
|
11231
11231
|
}], "filter-id-<=": [Dn, [In], (e, [t]) => {
|
|
11232
11232
|
const n = e.id(), i = t.value;
|
|
11233
11233
|
return typeof n == typeof i && n <= i;
|
|
11234
|
-
}], "filter->=": [Dn, [
|
|
11234
|
+
}], "filter->=": [Dn, [En, In], (e, [t, n]) => {
|
|
11235
11235
|
const i = e.properties()[t.value], r = n.value;
|
|
11236
11236
|
return typeof i == typeof r && i >= r;
|
|
11237
11237
|
}], "filter-id->=": [Dn, [In], (e, [t]) => {
|
|
11238
11238
|
const n = e.id(), i = t.value;
|
|
11239
11239
|
return typeof n == typeof i && n >= i;
|
|
11240
|
-
}], "filter-has": [Dn, [In], (e, [t]) => t.value in e.properties()], "filter-has-id": [Dn, [], (e) => e.id() !== null && e.id() !== void 0], "filter-type-in": [Dn, [lr(
|
|
11240
|
+
}], "filter-has": [Dn, [In], (e, [t]) => t.value in e.properties()], "filter-has-id": [Dn, [], (e) => e.id() !== null && e.id() !== void 0], "filter-type-in": [Dn, [lr(En)], (e, [t]) => t.value.indexOf(e.geometryType()) >= 0], "filter-id-in": [Dn, [lr(In)], (e, [t]) => t.value.indexOf(e.id()) >= 0], "filter-in-small": [Dn, [En, lr(In)], (e, [t, n]) => n.value.indexOf(e.properties()[t.value]) >= 0], "filter-in-large": [Dn, [En, lr(In)], (e, [t, n]) => function(i, r, o, s) {
|
|
11241
11241
|
for (; o <= s; ) {
|
|
11242
11242
|
const a = o + s >> 1;
|
|
11243
11243
|
if (r[a] === i)
|
|
@@ -11255,10 +11255,10 @@ var SA = { exports: {} };
|
|
|
11255
11255
|
if (n.evaluate(e))
|
|
11256
11256
|
return !0;
|
|
11257
11257
|
return !1;
|
|
11258
|
-
}]] }, "!": [Dn, [Dn], (e, [t]) => !t.evaluate(e)], "is-supported-script": [Dn, [
|
|
11258
|
+
}]] }, "!": [Dn, [Dn], (e, [t]) => !t.evaluate(e)], "is-supported-script": [Dn, [En], (e, [t]) => {
|
|
11259
11259
|
const n = e.globals && e.globals.isSupportedScript;
|
|
11260
11260
|
return !n || n(t.evaluate(e));
|
|
11261
|
-
}], upcase: [
|
|
11261
|
+
}], upcase: [En, [En], (e, [t]) => t.evaluate(e).toUpperCase()], downcase: [En, [En], (e, [t]) => t.evaluate(e).toLowerCase()], concat: [En, Os(In), (e, t) => t.map((n) => Ll(n.evaluate(e))).join("")], "resolved-locale": [En, [bu], (e, [t]) => t.evaluate(e).resolvedLocale()], random: [ue, [ue, ue, In], (e, t) => {
|
|
11262
11262
|
const [n, i, r] = t.map((s) => s.evaluate(e));
|
|
11263
11263
|
if (n > i || n === i)
|
|
11264
11264
|
return n;
|
|
@@ -11419,7 +11419,7 @@ var SA = { exports: {} };
|
|
|
11419
11419
|
}
|
|
11420
11420
|
function Wo(e, t, n) {
|
|
11421
11421
|
const i = new H0($l, [], t ? function(o) {
|
|
11422
|
-
const s = { color: Lr, string:
|
|
11422
|
+
const s = { color: Lr, string: En, number: ue, enum: En, boolean: Dn, formatted: Ml, resolvedImage: Il };
|
|
11423
11423
|
return o.type === "array" ? lr(s[o.value] || In, o.length) : s[o.type];
|
|
11424
11424
|
}(t) : void 0, void 0, void 0, n), r = i.parse(e, void 0, void 0, void 0, t && t.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
|
11425
11425
|
return r ? f1(new Up(r, t, n)) : zs(i.errors);
|
|
@@ -12416,7 +12416,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
12416
12416
|
return s.possiblyEvaluate(t, n, i);
|
|
12417
12417
|
{
|
|
12418
12418
|
const a = (r - this.begin) / (this.end - this.begin);
|
|
12419
|
-
return this.property.interpolate(s.possiblyEvaluate(t, n, i), o,
|
|
12419
|
+
return this.property.interpolate(s.possiblyEvaluate(t, n, i), o, pn(a));
|
|
12420
12420
|
}
|
|
12421
12421
|
}
|
|
12422
12422
|
return o;
|
|
@@ -14741,7 +14741,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
14741
14741
|
return e;
|
|
14742
14742
|
});
|
|
14743
14743
|
Ke.forEach = GM;
|
|
14744
|
-
var
|
|
14744
|
+
var dn = {};
|
|
14745
14745
|
function Mm(e) {
|
|
14746
14746
|
return Mm = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
14747
14747
|
return typeof t;
|
|
@@ -14749,48 +14749,48 @@ Use an identity property function instead: ${_}.`)];
|
|
|
14749
14749
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
14750
14750
|
}, Mm(e);
|
|
14751
14751
|
}
|
|
14752
|
-
Object.defineProperty(
|
|
14752
|
+
Object.defineProperty(dn, "__esModule", { value: !0 }), dn.create = Gv, dn.clone = function(e) {
|
|
14753
14753
|
var t = new zr.ARRAY_TYPE(4);
|
|
14754
14754
|
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t;
|
|
14755
|
-
},
|
|
14755
|
+
}, dn.fromValues = function(e, t, n, i) {
|
|
14756
14756
|
var r = new zr.ARRAY_TYPE(4);
|
|
14757
14757
|
return r[0] = e, r[1] = t, r[2] = n, r[3] = i, r;
|
|
14758
|
-
},
|
|
14758
|
+
}, dn.copy = function(e, t) {
|
|
14759
14759
|
return e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e;
|
|
14760
|
-
},
|
|
14760
|
+
}, dn.set = function(e, t, n, i, r) {
|
|
14761
14761
|
return e[0] = t, e[1] = n, e[2] = i, e[3] = r, e;
|
|
14762
|
-
},
|
|
14762
|
+
}, dn.add = function(e, t, n) {
|
|
14763
14763
|
return e[0] = t[0] + n[0], e[1] = t[1] + n[1], e[2] = t[2] + n[2], e[3] = t[3] + n[3], e;
|
|
14764
|
-
},
|
|
14764
|
+
}, dn.subtract = qv, dn.multiply = Zv, dn.divide = Hv, dn.ceil = function(e, t) {
|
|
14765
14765
|
return e[0] = Math.ceil(t[0]), e[1] = Math.ceil(t[1]), e[2] = Math.ceil(t[2]), e[3] = Math.ceil(t[3]), e;
|
|
14766
|
-
},
|
|
14766
|
+
}, dn.floor = function(e, t) {
|
|
14767
14767
|
return e[0] = Math.floor(t[0]), e[1] = Math.floor(t[1]), e[2] = Math.floor(t[2]), e[3] = Math.floor(t[3]), e;
|
|
14768
|
-
},
|
|
14768
|
+
}, dn.min = function(e, t, n) {
|
|
14769
14769
|
return e[0] = Math.min(t[0], n[0]), e[1] = Math.min(t[1], n[1]), e[2] = Math.min(t[2], n[2]), e[3] = Math.min(t[3], n[3]), e;
|
|
14770
|
-
},
|
|
14770
|
+
}, dn.max = function(e, t, n) {
|
|
14771
14771
|
return e[0] = Math.max(t[0], n[0]), e[1] = Math.max(t[1], n[1]), e[2] = Math.max(t[2], n[2]), e[3] = Math.max(t[3], n[3]), e;
|
|
14772
|
-
},
|
|
14772
|
+
}, dn.round = function(e, t) {
|
|
14773
14773
|
return e[0] = Math.round(t[0]), e[1] = Math.round(t[1]), e[2] = Math.round(t[2]), e[3] = Math.round(t[3]), e;
|
|
14774
|
-
},
|
|
14774
|
+
}, dn.scale = function(e, t, n) {
|
|
14775
14775
|
return e[0] = t[0] * n, e[1] = t[1] * n, e[2] = t[2] * n, e[3] = t[3] * n, e;
|
|
14776
|
-
},
|
|
14776
|
+
}, dn.scaleAndAdd = function(e, t, n, i) {
|
|
14777
14777
|
return e[0] = t[0] + n[0] * i, e[1] = t[1] + n[1] * i, e[2] = t[2] + n[2] * i, e[3] = t[3] + n[3] * i, e;
|
|
14778
|
-
},
|
|
14778
|
+
}, dn.distance = Wv, dn.squaredDistance = Xv, dn.length = Yv, dn.squaredLength = Kv, dn.negate = function(e, t) {
|
|
14779
14779
|
return e[0] = -t[0], e[1] = -t[1], e[2] = -t[2], e[3] = -t[3], e;
|
|
14780
|
-
},
|
|
14780
|
+
}, dn.inverse = function(e, t) {
|
|
14781
14781
|
return e[0] = 1 / t[0], e[1] = 1 / t[1], e[2] = 1 / t[2], e[3] = 1 / t[3], e;
|
|
14782
|
-
},
|
|
14782
|
+
}, dn.normalize = function(e, t) {
|
|
14783
14783
|
var n = t[0], i = t[1], r = t[2], o = t[3], s = n * n + i * i + r * r + o * o;
|
|
14784
14784
|
return s > 0 && (s = 1 / Math.sqrt(s)), e[0] = n * s, e[1] = i * s, e[2] = r * s, e[3] = o * s, e;
|
|
14785
|
-
},
|
|
14785
|
+
}, dn.dot = function(e, t) {
|
|
14786
14786
|
return e[0] * t[0] + e[1] * t[1] + e[2] * t[2] + e[3] * t[3];
|
|
14787
|
-
},
|
|
14787
|
+
}, dn.cross = function(e, t, n, i) {
|
|
14788
14788
|
var r = n[0] * i[1] - n[1] * i[0], o = n[0] * i[2] - n[2] * i[0], s = n[0] * i[3] - n[3] * i[0], a = n[1] * i[2] - n[2] * i[1], l = n[1] * i[3] - n[3] * i[1], c = n[2] * i[3] - n[3] * i[2], u = t[0], f = t[1], m = t[2], _ = t[3];
|
|
14789
14789
|
return e[0] = f * c - m * l + _ * a, e[1] = -u * c + m * s - _ * o, e[2] = u * l - f * s + _ * r, e[3] = -u * a + f * o - m * r, e;
|
|
14790
|
-
},
|
|
14790
|
+
}, dn.lerp = function(e, t, n, i) {
|
|
14791
14791
|
var r = t[0], o = t[1], s = t[2], a = t[3];
|
|
14792
14792
|
return e[0] = r + i * (n[0] - r), e[1] = o + i * (n[1] - o), e[2] = s + i * (n[2] - s), e[3] = a + i * (n[3] - a), e;
|
|
14793
|
-
},
|
|
14793
|
+
}, dn.random = function(e, t) {
|
|
14794
14794
|
var n, i, r, o, s, a;
|
|
14795
14795
|
t = t || 1;
|
|
14796
14796
|
do
|
|
@@ -14801,22 +14801,22 @@ Use an identity property function instead: ${_}.`)];
|
|
|
14801
14801
|
while (a >= 1);
|
|
14802
14802
|
var l = Math.sqrt((1 - s) / a);
|
|
14803
14803
|
return e[0] = t * n, e[1] = t * i, e[2] = t * r * l, e[3] = t * o * l, e;
|
|
14804
|
-
},
|
|
14804
|
+
}, dn.transformMat4 = function(e, t, n) {
|
|
14805
14805
|
var i = t[0], r = t[1], o = t[2], s = t[3];
|
|
14806
14806
|
return e[0] = n[0] * i + n[4] * r + n[8] * o + n[12] * s, e[1] = n[1] * i + n[5] * r + n[9] * o + n[13] * s, e[2] = n[2] * i + n[6] * r + n[10] * o + n[14] * s, e[3] = n[3] * i + n[7] * r + n[11] * o + n[15] * s, e;
|
|
14807
|
-
},
|
|
14807
|
+
}, dn.transformQuat = function(e, t, n) {
|
|
14808
14808
|
var i = t[0], r = t[1], o = t[2], s = n[0], a = n[1], l = n[2], c = n[3], u = c * i + a * o - l * r, f = c * r + l * i - s * o, m = c * o + s * r - a * i, _ = -s * i - a * r - l * o;
|
|
14809
14809
|
return e[0] = u * c + _ * -s + f * -l - m * -a, e[1] = f * c + _ * -a + m * -s - u * -l, e[2] = m * c + _ * -l + u * -a - f * -s, e[3] = t[3], e;
|
|
14810
|
-
},
|
|
14810
|
+
}, dn.zero = function(e) {
|
|
14811
14811
|
return e[0] = 0, e[1] = 0, e[2] = 0, e[3] = 0, e;
|
|
14812
|
-
},
|
|
14812
|
+
}, dn.str = function(e) {
|
|
14813
14813
|
return "vec4(" + e[0] + ", " + e[1] + ", " + e[2] + ", " + e[3] + ")";
|
|
14814
|
-
},
|
|
14814
|
+
}, dn.exactEquals = function(e, t) {
|
|
14815
14815
|
return e[0] === t[0] && e[1] === t[1] && e[2] === t[2] && e[3] === t[3];
|
|
14816
|
-
},
|
|
14816
|
+
}, dn.equals = function(e, t) {
|
|
14817
14817
|
var n = e[0], i = e[1], r = e[2], o = e[3], s = t[0], a = t[1], l = t[2], c = t[3];
|
|
14818
14818
|
return Math.abs(n - s) <= zr.EPSILON * Math.max(1, Math.abs(n), Math.abs(s)) && Math.abs(i - a) <= zr.EPSILON * Math.max(1, Math.abs(i), Math.abs(a)) && Math.abs(r - l) <= zr.EPSILON * Math.max(1, Math.abs(r), Math.abs(l)) && Math.abs(o - c) <= zr.EPSILON * Math.max(1, Math.abs(o), Math.abs(c));
|
|
14819
|
-
},
|
|
14819
|
+
}, dn.forEach = dn.sqrLen = dn.len = dn.sqrDist = dn.dist = dn.div = dn.mul = dn.sub = void 0;
|
|
14820
14820
|
var zr = function(e, t) {
|
|
14821
14821
|
if (e && e.__esModule)
|
|
14822
14822
|
return e;
|
|
@@ -14868,7 +14868,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
14868
14868
|
var t = e[0], n = e[1], i = e[2], r = e[3];
|
|
14869
14869
|
return t * t + n * n + i * i + r * r;
|
|
14870
14870
|
}
|
|
14871
|
-
|
|
14871
|
+
dn.sub = qv, dn.mul = Zv, dn.div = Hv, dn.dist = Wv, dn.sqrDist = Xv, dn.len = Yv, dn.sqrLen = Kv;
|
|
14872
14872
|
var qM = function() {
|
|
14873
14873
|
var e = Gv();
|
|
14874
14874
|
return function(t, n, i, r, o, s) {
|
|
@@ -14885,7 +14885,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
14885
14885
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
14886
14886
|
}, Im(e);
|
|
14887
14887
|
}
|
|
14888
|
-
|
|
14888
|
+
dn.forEach = qM, Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.create = Rm, Xe.identity = function(e) {
|
|
14889
14889
|
return e[0] = 0, e[1] = 0, e[2] = 0, e[3] = 1, e;
|
|
14890
14890
|
}, Xe.setAxisAngle = Qv, Xe.getAxisAngle = function(e, t) {
|
|
14891
14891
|
var n = 2 * Math.acos(t[3]), i = Math.sin(n / 2);
|
|
@@ -14926,7 +14926,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
14926
14926
|
}, Xe.str = function(e) {
|
|
14927
14927
|
return "quat(" + e[0] + ", " + e[1] + ", " + e[2] + ", " + e[3] + ")";
|
|
14928
14928
|
}, Xe.setAxes = Xe.sqlerp = Xe.rotationTo = Xe.equals = Xe.exactEquals = Xe.normalize = Xe.sqrLen = Xe.squaredLength = Xe.len = Xe.length = Xe.lerp = Xe.dot = Xe.scale = Xe.mul = Xe.add = Xe.set = Xe.copy = Xe.fromValues = Xe.clone = void 0;
|
|
14929
|
-
var $s = nh(ji), ZM = nh(Wn), ko = nh(Ke), Er = nh(
|
|
14929
|
+
var $s = nh(ji), ZM = nh(Wn), ko = nh(Ke), Er = nh(dn);
|
|
14930
14930
|
function Jv(e) {
|
|
14931
14931
|
if (typeof WeakMap != "function")
|
|
14932
14932
|
return null;
|
|
@@ -15310,7 +15310,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
15310
15310
|
Ui.quat2 = iI;
|
|
15311
15311
|
var rI = oo(on);
|
|
15312
15312
|
Ui.vec2 = rI;
|
|
15313
|
-
var oI = oo(Ke), H = Ui.vec3 = oI, sI = oo(
|
|
15313
|
+
var oI = oo(Ke), H = Ui.vec3 = oI, sI = oo(dn);
|
|
15314
15314
|
function Ax(e) {
|
|
15315
15315
|
if (typeof WeakMap != "function")
|
|
15316
15316
|
return null;
|
|
@@ -15379,7 +15379,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
15379
15379
|
this.wrap = t, this.canonical = n, this.key = Ql(t, n.z, n.z, n.x, n.y);
|
|
15380
15380
|
}
|
|
15381
15381
|
}
|
|
15382
|
-
class
|
|
15382
|
+
class An {
|
|
15383
15383
|
constructor(t, n, i, r, o) {
|
|
15384
15384
|
this.overscaledZ = t, this.wrap = n, this.canonical = new Br(i, +r, +o), this.key = n === 0 && t === i ? this.canonical.key : Ql(n, t, i, r, o);
|
|
15385
15385
|
}
|
|
@@ -15388,7 +15388,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
15388
15388
|
}
|
|
15389
15389
|
scaledTo(t) {
|
|
15390
15390
|
const n = this.canonical.z - t;
|
|
15391
|
-
return t > this.canonical.z ? new
|
|
15391
|
+
return t > this.canonical.z ? new An(t, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y) : new An(t, this.wrap, t, this.canonical.x >> n, this.canonical.y >> n);
|
|
15392
15392
|
}
|
|
15393
15393
|
calculateScaledKey(t, n = !0) {
|
|
15394
15394
|
if (this.overscaledZ === t && n)
|
|
@@ -15408,18 +15408,18 @@ Use an identity property function instead: ${_}.`)];
|
|
|
15408
15408
|
}
|
|
15409
15409
|
children(t) {
|
|
15410
15410
|
if (this.overscaledZ >= t)
|
|
15411
|
-
return [new
|
|
15411
|
+
return [new An(this.overscaledZ + 1, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y)];
|
|
15412
15412
|
const n = this.canonical.z + 1, i = 2 * this.canonical.x, r = 2 * this.canonical.y;
|
|
15413
|
-
return [new
|
|
15413
|
+
return [new An(n, this.wrap, n, i, r), new An(n, this.wrap, n, i + 1, r), new An(n, this.wrap, n, i, r + 1), new An(n, this.wrap, n, i + 1, r + 1)];
|
|
15414
15414
|
}
|
|
15415
15415
|
isLessThan(t) {
|
|
15416
15416
|
return this.wrap < t.wrap || !(this.wrap > t.wrap) && (this.overscaledZ < t.overscaledZ || !(this.overscaledZ > t.overscaledZ) && (this.canonical.x < t.canonical.x || !(this.canonical.x > t.canonical.x) && this.canonical.y < t.canonical.y));
|
|
15417
15417
|
}
|
|
15418
15418
|
wrapped() {
|
|
15419
|
-
return new
|
|
15419
|
+
return new An(this.overscaledZ, 0, this.canonical.z, this.canonical.x, this.canonical.y);
|
|
15420
15420
|
}
|
|
15421
15421
|
unwrapTo(t) {
|
|
15422
|
-
return new
|
|
15422
|
+
return new An(this.overscaledZ, t, this.canonical.z, this.canonical.x, this.canonical.y);
|
|
15423
15423
|
}
|
|
15424
15424
|
overscaleFactor() {
|
|
15425
15425
|
return Math.pow(2, this.overscaledZ - this.canonical.z);
|
|
@@ -15438,12 +15438,12 @@ Use an identity property function instead: ${_}.`)];
|
|
|
15438
15438
|
}
|
|
15439
15439
|
const Ix = [(e) => {
|
|
15440
15440
|
let t = e.canonical.x - 1, n = e.wrap;
|
|
15441
|
-
return t < 0 && (t = (1 << e.canonical.z) - 1, n--), new
|
|
15441
|
+
return t < 0 && (t = (1 << e.canonical.z) - 1, n--), new An(e.overscaledZ, n, e.canonical.z, t, e.canonical.y);
|
|
15442
15442
|
}, (e) => {
|
|
15443
15443
|
let t = e.canonical.x + 1, n = e.wrap;
|
|
15444
|
-
return t === 1 << e.canonical.z && (t = 0, n++), new
|
|
15445
|
-
}, (e) => new
|
|
15446
|
-
ye(Br, "CanonicalTileID"), ye(
|
|
15444
|
+
return t === 1 << e.canonical.z && (t = 0, n++), new An(e.overscaledZ, n, e.canonical.z, t, e.canonical.y);
|
|
15445
|
+
}, (e) => new An(e.overscaledZ, e.wrap, e.canonical.z, e.canonical.x, (e.canonical.y === 0 ? 1 << e.canonical.z : e.canonical.y) - 1), (e) => new An(e.overscaledZ, e.wrap, e.canonical.z, e.canonical.x, e.canonical.y === (1 << e.canonical.z) - 1 ? 0 : e.canonical.y + 1)];
|
|
15446
|
+
ye(Br, "CanonicalTileID"), ye(An, "OverscaledTileID", { omit: ["projMatrix", "expandedProjMatrix"] });
|
|
15447
15447
|
class sh {
|
|
15448
15448
|
constructor(t, n) {
|
|
15449
15449
|
this.pos = t, this.dir = n;
|
|
@@ -17622,7 +17622,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
17622
17622
|
const n = this._source();
|
|
17623
17623
|
if (this.isUsingMockSource() || !n || t.y < 0 || t.y > 1)
|
|
17624
17624
|
return !1;
|
|
17625
|
-
const i = n.getSource().maxzoom, r = 1 << i, o = Math.floor(t.x), s = Math.floor((t.x - o) * r), a = Math.floor(t.y * r), l = this.findDEMTileFor(new
|
|
17625
|
+
const i = n.getSource().maxzoom, r = 1 << i, o = Math.floor(t.x), s = Math.floor((t.x - o) * r), a = Math.floor(t.y * r), l = this.findDEMTileFor(new An(i, o, i, s, a));
|
|
17626
17626
|
return !(!l || !l.dem);
|
|
17627
17627
|
}
|
|
17628
17628
|
getAtPointOrZero(t, n = 0) {
|
|
@@ -17635,7 +17635,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
17635
17635
|
const r = this._source();
|
|
17636
17636
|
if (!r || t.y < 0 || t.y > 1)
|
|
17637
17637
|
return n;
|
|
17638
|
-
const o = r.getSource().maxzoom, s = 1 << o, a = Math.floor(t.x), l = t.x - a, c = new
|
|
17638
|
+
const o = r.getSource().maxzoom, s = 1 << o, a = Math.floor(t.x), l = t.x - a, c = new An(o, a, o, Math.floor(l * s), Math.floor(t.y * s)), u = this.findDEMTileFor(c);
|
|
17639
17639
|
if (!u || !u.dem)
|
|
17640
17640
|
return n;
|
|
17641
17641
|
const f = u.dem, m = 1 << u.tileID.canonical.z, _ = (l * m - u.tileID.canonical.x) * f.dim, y = (t.y * m - u.tileID.canonical.y) * f.dim, x = Math.floor(_), b = Math.floor(y);
|
|
@@ -18097,7 +18097,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
18097
18097
|
}
|
|
18098
18098
|
let bn = 0, un = 0;
|
|
18099
18099
|
for (let De = 0; De < te.length(); De++) {
|
|
18100
|
-
const Ae = te.getSection(De),
|
|
18100
|
+
const Ae = te.getSection(De), fn = te.getSectionIndex(De), vn = te.getCodePoint(De);
|
|
18101
18101
|
let Qe = Ae.scale, Zn = null, bi = null, $n = null, ti = $i, Ei = 0;
|
|
18102
18102
|
const wi = !(F === oi.horizontal || !tt && !Wp(vn) || tt && (Ih[vn] || (At = vn, be.Arabic(At) || be["Arabic Supplement"](At) || be["Arabic Extended-A"](At) || be["Arabic Presentation Forms-A"](At) || be["Arabic Presentation Forms-B"](At))));
|
|
18103
18103
|
if (Ae.imageName) {
|
|
@@ -18126,7 +18126,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
18126
18126
|
} else
|
|
18127
18127
|
Ei = kb + (ee - Qe) * $i;
|
|
18128
18128
|
}
|
|
18129
|
-
wi ? (P.verticalizable = !0, Ue.push({ glyph: vn, imageName: $n, x: Y, y: J + Ei, vertical: wi, scale: Qe, localGlyph: Zn.localGlyph, fontStack: Ae.fontStack, sectionIndex:
|
|
18129
|
+
wi ? (P.verticalizable = !0, Ue.push({ glyph: vn, imageName: $n, x: Y, y: J + Ei, vertical: wi, scale: Qe, localGlyph: Zn.localGlyph, fontStack: Ae.fontStack, sectionIndex: fn, metrics: Zn, rect: bi }), Y += ti * Qe + K) : (Ue.push({ glyph: vn, imageName: $n, x: Y, y: J + Ei, vertical: wi, scale: Qe, localGlyph: Zn.localGlyph, fontStack: Ae.fontStack, sectionIndex: fn, metrics: Zn, rect: bi }), Y += Zn.advance * Qe + K);
|
|
18130
18130
|
}
|
|
18131
18131
|
Ue.length !== 0 && (ut = Math.max(Y - K, ut), ft ? Fb(Ue, pt, we, un, j * ee / 2) : Fb(Ue, pt, we, 0, j / 2)), Y = 0;
|
|
18132
18132
|
const je = j * ee + we;
|
|
@@ -18794,7 +18794,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
18794
18794
|
const { x: Ct, y: _t, z: Pt } = m.projectTilePoint(ft.x, ft.y, wt);
|
|
18795
18795
|
At = { anchor: new Uo(Ct, _t, Pt, 0, void 0), up: m.upVector(wt, ft.x, ft.y) };
|
|
18796
18796
|
}
|
|
18797
|
-
(function(Ct, _t, Pt, te, ee, ae, he, Ue, we, bn, un, je, De, Ae,
|
|
18797
|
+
(function(Ct, _t, Pt, te, ee, ae, he, Ue, we, bn, un, je, De, Ae, fn, vn, Qe, Zn, bi, $n, ti, Ei, wi, ii, Fn, qi, po) {
|
|
18798
18798
|
const jo = Ct.addToLineVertexArray(_t, te);
|
|
18799
18799
|
let Vo, Lc, Dc, Md, oT, sT, aT, lT = 0, cT = 0, uT = 0, hT = 0, v_ = -1, x_ = -1;
|
|
18800
18800
|
const mo = {};
|
|
@@ -18803,7 +18803,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
18803
18803
|
let w_ = 0, S_ = 0;
|
|
18804
18804
|
if (we._unevaluatedLayout.getValue("text-radial-offset") === void 0 ? [w_, S_] = we.layout.get("text-offset").evaluate(ti, {}, Fn).map((yr) => yr * $i) : (w_ = we.layout.get("text-radial-offset").evaluate(ti, {}, Fn) * $i, S_ = _g), Ct.allowVerticalPlacement && ee.vertical) {
|
|
18805
18805
|
const yr = ee.vertical;
|
|
18806
|
-
if (
|
|
18806
|
+
if (fn)
|
|
18807
18807
|
sT = xg(yr), Ue && (aT = xg(Ue));
|
|
18808
18808
|
else {
|
|
18809
18809
|
const vr = we.layout.get("text-rotate").evaluate(ti, {}, Fn) + 90;
|
|
@@ -18819,12 +18819,12 @@ Use an identity property function instead: ${_}.`)];
|
|
|
18819
18819
|
}
|
|
18820
18820
|
for (const yr in ee.horizontal) {
|
|
18821
18821
|
const vr = ee.horizontal[yr];
|
|
18822
|
-
Vo || (dT = ym(vr.text),
|
|
18822
|
+
Vo || (dT = ym(vr.text), fn ? oT = xg(vr) : Vo = kh(bn, ta, _t, un, je, De, vr, Ae, we.layout.get("text-rotate").evaluate(ti, {}, Fn), vn));
|
|
18823
18823
|
const ol = vr.positionedLines.length === 1;
|
|
18824
|
-
if (uT += Jb(Ct, Pt, _t, vr, he, we,
|
|
18824
|
+
if (uT += Jb(Ct, Pt, _t, vr, he, we, fn, ti, vn, jo, ee.vertical ? oi.horizontal : oi.horizontalOnly, ol ? Object.keys(ee.horizontal) : [yr], mo, v_, Ei, ii, Fn, qi), ol)
|
|
18825
18825
|
break;
|
|
18826
18826
|
}
|
|
18827
|
-
ee.vertical && (hT += Jb(Ct, Pt, _t, ee.vertical, he, we,
|
|
18827
|
+
ee.vertical && (hT += Jb(Ct, Pt, _t, ee.vertical, he, we, fn, ti, vn, jo, oi.vertical, ["vertical"], mo, x_, Ei, ii, Fn, qi));
|
|
18828
18828
|
let xs = -1;
|
|
18829
18829
|
const T_ = (yr, vr) => yr ? Math.max(yr, vr) : vr;
|
|
18830
18830
|
xs = T_(oT, xs), xs = T_(sT, xs), xs = T_(aT, xs);
|
|
@@ -18898,22 +18898,22 @@ Use an identity property function instead: ${_}.`)];
|
|
|
18898
18898
|
let we = [0, 0], bn = [0, 0], un = !1;
|
|
18899
18899
|
z || (te ? (bn = [ft.x + ee + K[0], ft.y + K[1] - Pt], un = !0) : we = [ft.x + ee + L[0], ft.y + L[1] - Pt]);
|
|
18900
18900
|
const je = he.w * ft.scale / (_t * (ft.localGlyph ? Wr : 1)), De = he.h * ft.scale / (_t * (ft.localGlyph ? Wr : 1));
|
|
18901
|
-
let Ae,
|
|
18901
|
+
let Ae, fn, vn, Qe;
|
|
18902
18902
|
if (te) {
|
|
18903
18903
|
const $n = ft.y - J, ti = new q(-ee, ee - $n), Ei = -Math.PI / 2, wi = new q(...bn);
|
|
18904
18904
|
Ae = new q(-ee + we[0], we[1]), Ae._rotateAround(Ei, ti)._add(wi), Ae.x += -$n + ee, Ae.y -= (ae.left - At) * ft.scale;
|
|
18905
18905
|
const ii = ft.imageName ? ae.advance * ft.scale : $i * ft.scale, Fn = String.fromCodePoint(ft.glyph);
|
|
18906
|
-
OR(Fn) ? Ae.x += (1 - At) * ft.scale : zR(Fn) ? Ae.x += ii - ae.height * ft.scale + (-At - 1) * ft.scale : Ae.x += ft.imageName || ae.width + 2 * At === he.w && ae.height + 2 * At === he.h ? (ii - De) / 2 : (ii - (ae.height + 2 * At) * ft.scale) / 2,
|
|
18906
|
+
OR(Fn) ? Ae.x += (1 - At) * ft.scale : zR(Fn) ? Ae.x += ii - ae.height * ft.scale + (-At - 1) * ft.scale : Ae.x += ft.imageName || ae.width + 2 * At === he.w && ae.height + 2 * At === he.h ? (ii - De) / 2 : (ii - (ae.height + 2 * At) * ft.scale) / 2, fn = new q(Ae.x, Ae.y - je), vn = new q(Ae.x + De, Ae.y), Qe = new q(Ae.x + De, Ae.y - je);
|
|
18907
18907
|
} else {
|
|
18908
18908
|
const $n = (ae.left - At) * ft.scale - ee + we[0], ti = (-ae.top - At) * ft.scale + we[1], Ei = $n + je, wi = ti + De;
|
|
18909
|
-
Ae = new q($n, ti),
|
|
18909
|
+
Ae = new q($n, ti), fn = new q(Ei, ti), vn = new q($n, wi), Qe = new q(Ei, wi);
|
|
18910
18910
|
}
|
|
18911
18911
|
if (F) {
|
|
18912
18912
|
let $n;
|
|
18913
|
-
$n = z ? new q(0, 0) : un ? new q(K[0], K[1]) : new q(L[0], L[1]), Ae._rotateAround(F, $n),
|
|
18913
|
+
$n = z ? new q(0, 0) : un ? new q(K[0], K[1]) : new q(L[0], L[1]), Ae._rotateAround(F, $n), fn._rotateAround(F, $n), vn._rotateAround(F, $n), Qe._rotateAround(F, $n);
|
|
18914
18914
|
}
|
|
18915
18915
|
const Zn = new q(0, 0), bi = new q(0, 0);
|
|
18916
|
-
W.push({ tl: Ae, tr:
|
|
18916
|
+
W.push({ tl: Ae, tr: fn, bl: vn, br: Qe, texPrimary: wt, texSecondary: void 0, writingMode: P.writingMode, glyphOffset: Ue, sectionIndex: ft.sectionIndex, isSDF: Ct, pixelOffsetTL: Zn, pixelOffsetBR: bi, minFontScaleX: 0, minFontScaleY: 0 });
|
|
18917
18917
|
}
|
|
18918
18918
|
}
|
|
18919
18919
|
return W;
|
|
@@ -20828,12 +20828,12 @@ Use an identity property function instead: ${_}.`)];
|
|
|
20828
20828
|
}
|
|
20829
20829
|
nn.disabled = new nn({ func: 519, mask: 0 }, 0, 0, Ag, Ag, Ag);
|
|
20830
20830
|
const Hh = 771;
|
|
20831
|
-
class
|
|
20831
|
+
class Tn {
|
|
20832
20832
|
constructor(t, n, i, r) {
|
|
20833
20833
|
this.blendFunction = t, this.blendColor = n, this.mask = i, this.blendEquation = r;
|
|
20834
20834
|
}
|
|
20835
20835
|
}
|
|
20836
|
-
|
|
20836
|
+
Tn.Replace = [1, 0, 1, 0], Tn.disabled = new Tn(Tn.Replace, en.transparent, [!1, !1, !1, !1]), Tn.unblended = new Tn(Tn.Replace, en.transparent, [!0, !0, !0, !0]), Tn.alphaBlended = new Tn([1, Hh, 1, Hh], en.transparent, [!0, !0, !0, !0]), Tn.multiply = new Tn([774, 0, 774, 0], en.transparent, [!0, !0, !0, !0]);
|
|
20837
20837
|
const Cg = 1029, Mg = 2305;
|
|
20838
20838
|
class sn {
|
|
20839
20839
|
constructor(t, n, i) {
|
|
@@ -20879,7 +20879,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
20879
20879
|
t.test.func !== this.gl.ALWAYS || t.mask ? (this.stencilTest.set(!0), this.stencilMask.set(t.mask), this.stencilOp.set([t.fail, t.depthFail, t.pass]), this.stencilFunc.set({ func: t.test.func, ref: t.ref, mask: t.test.mask })) : this.stencilTest.set(!1);
|
|
20880
20880
|
}
|
|
20881
20881
|
setColorMode(t) {
|
|
20882
|
-
Nt(t.blendFunction,
|
|
20882
|
+
Nt(t.blendFunction, Tn.Replace) ? this.blend.set(!1) : (this.blend.set(!0), this.blendFunc.set(t.blendFunction), this.blendColor.set(t.blendColor), t.blendEquation ? this.blendEquation.set(t.blendEquation) : this.blendEquation.setDefault()), this.colorMask.set(t.mask);
|
|
20883
20883
|
}
|
|
20884
20884
|
unbindVAO() {
|
|
20885
20885
|
this.bindVertexArrayOES.set(null);
|
|
@@ -21072,7 +21072,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
21072
21072
|
if (this.transform = t, !this._sourceLoaded || this._paused || this.transform.freezeTileCoverage || this.usedForTerrain && !i)
|
|
21073
21073
|
return;
|
|
21074
21074
|
let o;
|
|
21075
|
-
if (this.updateCacheSize(t, n), this.transform.projection.name !== "globe" && this.handleWrapJump(this.transform.center.lng), this._shadowCasterTiles = {}, this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? o = t.getVisibleUnwrappedCoordinates(this._source.tileID).map((l) => new
|
|
21075
|
+
if (this.updateCacheSize(t, n), this.transform.projection.name !== "globe" && this.handleWrapJump(this.transform.center.lng), this._shadowCasterTiles = {}, this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? o = t.getVisibleUnwrappedCoordinates(this._source.tileID).map((l) => new An(l.canonical.z, l.wrap, l.canonical.z, l.canonical.x, l.canonical.y)) : (o = t.coveringTiles({ tileSize: n || this._source.tileSize, minzoom: this._source.minzoom, maxzoom: this._source.maxzoom, roundZoom: this._source.roundZoom && !i, reparseOverscaled: this._source.reparseOverscaled, isTerrainDEM: this.usedForTerrain }), this._source.hasTile && (o = o.filter((l) => this._source.hasTile(l)))) : o = [], o.length > 0 && this.castsShadows && r && this.transform.projection.name !== "globe" && !this.usedForTerrain && !Ig(this._source.type)) {
|
|
21076
21076
|
const l = t.coveringZoomLevel({ tileSize: n || this._source.tileSize, roundZoom: this._source.roundZoom && !i }), c = Math.min(l, this._source.maxzoom), u = t.extendTileCoverForShadows(o, r, c);
|
|
21077
21077
|
for (const f of u)
|
|
21078
21078
|
this._shadowCasterTiles[f.key] = !0, o.push(f);
|
|
@@ -21946,7 +21946,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
21946
21946
|
return r;
|
|
21947
21947
|
for (const s of t) {
|
|
21948
21948
|
const a = s.canonical, l = s.overscaledZ, c = s.wrap, u = 1 << a.z, f = a.x + 1 < u, m = a.x > 0, _ = a.y + 1 < u, y = a.y > 0, x = s.wrap - (m ? 0 : 1), b = s.wrap + (f ? 0 : 1), S = m ? a.x - 1 : u - 1, A = f ? a.x + 1 : 0;
|
|
21949
|
-
n[0] < 0 ? (r.push(new
|
|
21949
|
+
n[0] < 0 ? (r.push(new An(l, b, a.z, A, a.y)), n[1] < 0 && _ && (r.push(new An(l, c, a.z, a.x, a.y + 1)), r.push(new An(l, b, a.z, A, a.y + 1))), n[1] > 0 && y && (r.push(new An(l, c, a.z, a.x, a.y - 1)), r.push(new An(l, b, a.z, A, a.y - 1)))) : n[0] > 0 ? (r.push(new An(l, x, a.z, S, a.y)), n[1] < 0 && _ && (r.push(new An(l, c, a.z, a.x, a.y + 1)), r.push(new An(l, x, a.z, S, a.y + 1))), n[1] > 0 && y && (r.push(new An(l, c, a.z, a.x, a.y - 1)), r.push(new An(l, x, a.z, S, a.y - 1)))) : n[1] < 0 && _ ? r.push(new An(l, c, a.z, a.x, a.y + 1)) : y && r.push(new An(l, c, a.z, a.x, a.y - 1));
|
|
21950
21950
|
}
|
|
21951
21951
|
if (r.length > 1) {
|
|
21952
21952
|
r.sort((l, c) => l.overscaledZ - c.overscaledZ || l.wrap - c.wrap || l.canonical.z - c.canonical.z || l.canonical.x - c.canonical.x || l.canonical.y - c.canonical.y);
|
|
@@ -22034,7 +22034,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
22034
22034
|
if (Y.zoom !== $ && rt(Y))
|
|
22035
22035
|
for (let wt = 0; wt < 4; wt++) {
|
|
22036
22036
|
const At = (J << 1) + wt % 2, Ct = (ut << 1) + (wt >> 1), _t = { aabb: s ? Y.aabb.quadrant(wt) : ew(this, c, Y.zoom + 1, At, Ct, Y.wrap, Y.minZ, Y.maxZ, this.projection), zoom: Y.zoom + 1, x: At, y: Ct, wrap: Y.wrap, fullyVisible: pt, tileID: void 0, shouldSplit: void 0, minZ: Y.minZ, maxZ: Y.maxZ };
|
|
22037
|
-
o && !f && (_t.tileID = new
|
|
22037
|
+
o && !f && (_t.tileID = new An(Y.zoom + 1 === $ ? W : Y.zoom + 1, Y.wrap, Y.zoom + 1, At, Ct), tt(_t)), N.push(_t);
|
|
22038
22038
|
}
|
|
22039
22039
|
else {
|
|
22040
22040
|
const wt = Y.zoom === $ ? W : Y.zoom;
|
|
@@ -22049,7 +22049,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
22049
22049
|
if (Pt === 0)
|
|
22050
22050
|
continue;
|
|
22051
22051
|
}
|
|
22052
|
-
const At = u[0] - (0.5 + J + (Y.wrap << Y.zoom)) * (1 << n - Y.zoom), Ct = u[1] - 0.5 - ut, _t = Y.tileID ? Y.tileID : new
|
|
22052
|
+
const At = u[0] - (0.5 + J + (Y.wrap << Y.zoom)) * (1 << n - Y.zoom), Ct = u[1] - 0.5 - ut, _t = Y.tileID ? Y.tileID : new An(wt, Y.wrap, Y.zoom, J, ut);
|
|
22053
22053
|
j.push({ tileID: _t, distanceSq: At * At + Ct * Ct });
|
|
22054
22054
|
}
|
|
22055
22055
|
}
|
|
@@ -23486,8 +23486,8 @@ Use an identity property function instead: ${_}.`)];
|
|
|
23486
23486
|
wt = !wt;
|
|
23487
23487
|
}
|
|
23488
23488
|
if (m) {
|
|
23489
|
-
const je = this.layoutVertexExtArray, De = f.projectTilePoint(_t.x, _t.y, r), Ae = f.projectTilePoint(Pt.x, Pt.y, r),
|
|
23490
|
-
Sc(je, De,
|
|
23489
|
+
const je = this.layoutVertexExtArray, De = f.projectTilePoint(_t.x, _t.y, r), Ae = f.projectTilePoint(Pt.x, Pt.y, r), fn = f.upVector(r, _t.x, _t.y), vn = f.upVector(r, Pt.x, Pt.y);
|
|
23490
|
+
Sc(je, De, fn), Sc(je, De, fn), Sc(je, Ae, vn), Sc(je, Ae, vn);
|
|
23491
23491
|
}
|
|
23492
23492
|
}
|
|
23493
23493
|
_ && (N += tt.length - 1), b && M && this.zoom >= 17 && (J.length !== 0 && L(J, J[0]) && J.pop(), this.groundEffect.addData(J, z, c, M > 0));
|
|
@@ -24097,13 +24097,13 @@ Use an identity property function instead: ${_}.`)];
|
|
|
24097
24097
|
for (const we of tt) {
|
|
24098
24098
|
const bn = [], un = [];
|
|
24099
24099
|
for (const je of we) {
|
|
24100
|
-
const De = je.x + J.x, Ae = je.y + J.y,
|
|
24100
|
+
const De = je.x + J.x, Ae = je.y + J.y, fn = K.projection.projectTilePoint(De, Ae, Ct), vn = K.projection.upVector(Ct, je.x, je.y);
|
|
24101
24101
|
let Qe = rt, Zn = Y;
|
|
24102
24102
|
if (pt) {
|
|
24103
24103
|
const bi = s2(De, Ae, rt, Y, pt, ft, wt, At);
|
|
24104
24104
|
Qe += bi.base, Zn += bi.top;
|
|
24105
24105
|
}
|
|
24106
|
-
rt !== 0 ? he(ee,
|
|
24106
|
+
rt !== 0 ? he(ee, fn.x + vn[0] * te * Qe, fn.y + vn[1] * te * Qe, fn.z + vn[2] * te * Qe) : he(ee, fn.x, fn.y, fn.z), he(ae, fn.x + vn[0] * te * Zn, fn.y + vn[1] * te * Zn, fn.z + vn[2] * te * Zn), H.transformMat4(ee, ee, ut), H.transformMat4(ae, ae, ut), bn.push(new Qa(ee[0], ee[1], ee[2])), un.push(new Qa(ae[0], ae[1], ae[2]));
|
|
24107
24107
|
}
|
|
24108
24108
|
_t.push(bn), Pt.push(un);
|
|
24109
24109
|
}
|
|
@@ -24128,7 +24128,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
24128
24128
|
for (const ae of K) {
|
|
24129
24129
|
const he = [], Ue = [];
|
|
24130
24130
|
for (const we of ae) {
|
|
24131
|
-
const bn = we.x + Y.x, un = we.y + Y.y, je = J[0] * bn + J[4] * un + J[12], De = J[1] * bn + J[5] * un + J[13], Ae = J[2] * bn + J[6] * un + J[14],
|
|
24131
|
+
const bn = we.x + Y.x, un = we.y + Y.y, je = J[0] * bn + J[4] * un + J[12], De = J[1] * bn + J[5] * un + J[13], Ae = J[2] * bn + J[6] * un + J[14], fn = J[3] * bn + J[7] * un + J[15], vn = je + ft, Qe = De + wt, Zn = Ae + At, bi = Math.max(fn + Ct, 1e-5), $n = je + _t, ti = De + Pt, Ei = Ae + te, wi = Math.max(fn + ee, 1e-5);
|
|
24132
24132
|
he.push(new Qa(vn / bi, Qe / bi, Zn / bi)), Ue.push(new Qa($n / wi, ti / wi, Ei / wi));
|
|
24133
24133
|
}
|
|
24134
24134
|
ut.push(he), pt.push(Ue);
|
|
@@ -24817,7 +24817,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
24817
24817
|
i = [o], r = n.isPointAboveHorizon(o);
|
|
24818
24818
|
} else {
|
|
24819
24819
|
const o = q.convert(t[0]), s = q.convert(t[1]);
|
|
24820
|
-
i = [o, s], r =
|
|
24820
|
+
i = [o, s], r = hn(o, s).every((a) => n.isPointAboveHorizon(a));
|
|
24821
24821
|
}
|
|
24822
24822
|
return new Bg(i, n.getCameraPoint(), r, n);
|
|
24823
24823
|
}
|
|
@@ -24825,10 +24825,10 @@ Use an identity property function instead: ${_}.`)];
|
|
|
24825
24825
|
return this.screenBounds.length === 1;
|
|
24826
24826
|
}
|
|
24827
24827
|
bufferedScreenGeometry(t) {
|
|
24828
|
-
return
|
|
24828
|
+
return hn(this.screenBounds[0], this.screenBounds.length === 1 ? this.screenBounds[0] : this.screenBounds[1], t);
|
|
24829
24829
|
}
|
|
24830
24830
|
bufferedCameraGeometry(t) {
|
|
24831
|
-
const n = this.screenBounds[0], i = this.screenBounds.length === 1 ? this.screenBounds[0].add(new q(1, 1)) : this.screenBounds[1], r =
|
|
24831
|
+
const n = this.screenBounds[0], i = this.screenBounds.length === 1 ? this.screenBounds[0].add(new q(1, 1)) : this.screenBounds[1], r = hn(n, i, 0, !1);
|
|
24832
24832
|
return this.cameraPoint.y > i.y && (this.cameraPoint.x > n.x && this.cameraPoint.x < i.x ? r.splice(3, 0, this.cameraPoint) : this.cameraPoint.x >= i.x ? r[2] = this.cameraPoint : this.cameraPoint.x <= n.x && (r[3] = this.cameraPoint)), function(o, s) {
|
|
24833
24833
|
const a = [];
|
|
24834
24834
|
for (let l = 0; l < o.length; l++) {
|
|
@@ -24839,7 +24839,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
24839
24839
|
}(r, t);
|
|
24840
24840
|
}
|
|
24841
24841
|
bufferedCameraGeometryGlobe(t) {
|
|
24842
|
-
const n = this.screenBounds[0], i = this.screenBounds.length === 1 ? this.screenBounds[0].add(new q(1, 1)) : this.screenBounds[1], r =
|
|
24842
|
+
const n = this.screenBounds[0], i = this.screenBounds.length === 1 ? this.screenBounds[0].add(new q(1, 1)) : this.screenBounds[1], r = hn(n, i, t), o = this.cameraPoint.clone();
|
|
24843
24843
|
switch (3 * ((o.y > n.y) + (o.y > i.y)) + ((o.x > n.x) + (o.x > i.x))) {
|
|
24844
24844
|
case 0:
|
|
24845
24845
|
r[0] = o, r[4] = o.clone();
|
|
@@ -24991,7 +24991,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
24991
24991
|
return this.positions[i];
|
|
24992
24992
|
}
|
|
24993
24993
|
trim() {
|
|
24994
|
-
const t = this.width, n = this.height =
|
|
24994
|
+
const t = this.width, n = this.height = Sn(this.nextRow);
|
|
24995
24995
|
this.image.resize({ width: t, height: n });
|
|
24996
24996
|
}
|
|
24997
24997
|
getKey(t, n) {
|
|
@@ -25096,7 +25096,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
25096
25096
|
ye(A2, "GlyphAtlas");
|
|
25097
25097
|
class Q4 {
|
|
25098
25098
|
constructor(t) {
|
|
25099
|
-
this.tileID = new
|
|
25099
|
+
this.tileID = new An(t.tileID.overscaledZ, t.tileID.wrap, t.tileID.canonical.z, t.tileID.canonical.x, t.tileID.canonical.y), this.tileZoom = t.tileZoom, this.uid = t.uid, this.zoom = t.zoom, this.canonical = t.tileID.canonical, this.pixelRatio = t.pixelRatio, this.tileSize = t.tileSize, this.source = t.source, this.scope = t.scope, this.overscaling = this.tileID.overscaleFactor(), this.showCollisionBoxes = t.showCollisionBoxes, this.collectResourceTiming = !!t.collectResourceTiming, this.promoteId = t.promoteId, this.isSymbolTile = t.isSymbolTile, this.tileTransform = Zs(t.tileID.canonical, t.projection), this.projection = t.projection, this.brightness = t.brightness, this.extraShadowCaster = !!t.extraShadowCaster;
|
|
25100
25100
|
}
|
|
25101
25101
|
parse(t, n, i, r, o) {
|
|
25102
25102
|
this.status = "parsing", this.data = t, this.collisionBoxArray = new _m();
|
|
@@ -25825,7 +25825,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
25825
25825
|
}
|
|
25826
25826
|
_getNeighboringTiles(e) {
|
|
25827
25827
|
const t = e.canonical, n = Math.pow(2, t.z), i = (t.x - 1 + n) % n, r = t.x === 0 ? e.wrap - 1 : e.wrap, o = (t.x + 1 + n) % n, s = t.x + 1 === n ? e.wrap + 1 : e.wrap, a = {};
|
|
25828
|
-
return a[new
|
|
25828
|
+
return a[new An(e.overscaledZ, r, t.z, i, t.y).key] = { backfilled: !1 }, a[new An(e.overscaledZ, s, t.z, o, t.y).key] = { backfilled: !1 }, t.y > 0 && (a[new An(e.overscaledZ, r, t.z, i, t.y - 1).key] = { backfilled: !1 }, a[new An(e.overscaledZ, e.wrap, t.z, t.x, t.y - 1).key] = { backfilled: !1 }, a[new An(e.overscaledZ, s, t.z, o, t.y - 1).key] = { backfilled: !1 }), t.y + 1 < n && (a[new An(e.overscaledZ, r, t.z, i, t.y + 1).key] = { backfilled: !1 }, a[new An(e.overscaledZ, e.wrap, t.z, t.x, t.y + 1).key] = { backfilled: !1 }, a[new An(e.overscaledZ, s, t.z, o, t.y + 1).key] = { backfilled: !1 }), a;
|
|
25829
25829
|
}
|
|
25830
25830
|
}, geojson: class extends Mi {
|
|
25831
25831
|
constructor(e, t, n, i) {
|
|
@@ -26708,16 +26708,16 @@ Use an identity property function instead: ${_}.`)];
|
|
|
26708
26708
|
if (Ue) {
|
|
26709
26709
|
he(Ue);
|
|
26710
26710
|
const je = (Ae) => {
|
|
26711
|
-
let
|
|
26711
|
+
let fn = oi.horizontal;
|
|
26712
26712
|
if (o.allowVerticalPlacement && !Ae && this.prevPlacement) {
|
|
26713
26713
|
const vn = this.prevPlacement.placedOrientations[K];
|
|
26714
|
-
vn && (this.placedOrientations[K] = vn,
|
|
26714
|
+
vn && (this.placedOrientations[K] = vn, fn = vn, this.markUsedOrientation(o, fn, $));
|
|
26715
26715
|
}
|
|
26716
|
-
return
|
|
26717
|
-
}, De = (Ae,
|
|
26716
|
+
return fn;
|
|
26717
|
+
}, De = (Ae, fn) => {
|
|
26718
26718
|
if (o.allowVerticalPlacement && tt > 0 && F.verticalTextBox) {
|
|
26719
26719
|
for (const vn of o.writingModes)
|
|
26720
|
-
if (vn === oi.vertical ? (wt =
|
|
26720
|
+
if (vn === oi.vertical ? (wt = fn(), At = wt) : wt = Ae(), wt && wt.box && wt.box.length)
|
|
26721
26721
|
break;
|
|
26722
26722
|
} else
|
|
26723
26723
|
wt = Ae();
|
|
@@ -26728,7 +26728,7 @@ Use an identity property function instead: ${_}.`)];
|
|
|
26728
26728
|
const Qe = this.prevPlacement.variableOffsets[K];
|
|
26729
26729
|
Ae.indexOf(Qe.anchor) > 0 && (Ae = Ae.filter((Zn) => Zn !== Qe.anchor), Ae.unshift(Qe.anchor));
|
|
26730
26730
|
}
|
|
26731
|
-
const
|
|
26731
|
+
const fn = (Qe, Zn, bi) => {
|
|
26732
26732
|
const $n = o.getSymbolInstanceTextSize(y, $, this.transform.zoom, W), ti = (Qe.x2 - Qe.x1) * $n + 2 * Qe.padding, Ei = (Qe.y2 - Qe.y1) * $n + 2 * Qe.padding, wi = $.hasIconTextFit && !R ? Zn : null;
|
|
26733
26733
|
wi && he(wi);
|
|
26734
26734
|
let ii = { box: [], offscreen: !1, occluded: !1 };
|
|
@@ -26742,9 +26742,9 @@ Use an identity property function instead: ${_}.`)];
|
|
|
26742
26742
|
}
|
|
26743
26743
|
return ii;
|
|
26744
26744
|
};
|
|
26745
|
-
De(() =>
|
|
26745
|
+
De(() => fn(Ue, F.iconBox, oi.horizontal), () => {
|
|
26746
26746
|
const Qe = F.verticalTextBox;
|
|
26747
|
-
return Qe && he(Qe), o.allowVerticalPlacement && !(wt && wt.box && wt.box.length) && tt > 0 && Qe ?
|
|
26747
|
+
return Qe && he(Qe), o.allowVerticalPlacement && !(wt && wt.box && wt.box.length) && tt > 0 && Qe ? fn(Qe, F.verticalIconBox, oi.vertical) : { box: null, offscreen: null, occluded: null };
|
|
26748
26748
|
}), wt && (rt = wt.box, J = wt.offscreen, ut = wt.occluded);
|
|
26749
26749
|
const vn = je(!(!wt || !wt.box));
|
|
26750
26750
|
if (!rt && this.prevPlacement) {
|
|
@@ -26752,13 +26752,13 @@ Use an identity property function instead: ${_}.`)];
|
|
|
26752
26752
|
Qe && (this.variableOffsets[K] = Qe, this.markUsedJustification(o, Qe.anchor, $, vn));
|
|
26753
26753
|
}
|
|
26754
26754
|
} else {
|
|
26755
|
-
const Ae = (
|
|
26756
|
-
const Qe = o.getSymbolInstanceTextSize(y, $, this.transform.zoom, W), Zn = this.collisionIndex.placeCollisionBox(o, Qe,
|
|
26755
|
+
const Ae = (fn, vn) => {
|
|
26756
|
+
const Qe = o.getSymbolInstanceTextSize(y, $, this.transform.zoom, W), Zn = this.collisionIndex.placeCollisionBox(o, Qe, fn, new q(0, 0), I, f, a, b.predicate);
|
|
26757
26757
|
return Zn && Zn.box && Zn.box.length && (this.markUsedOrientation(o, vn, $), this.placedOrientations[K] = vn), Zn;
|
|
26758
26758
|
};
|
|
26759
26759
|
De(() => Ae(Ue, oi.horizontal), () => {
|
|
26760
|
-
const
|
|
26761
|
-
return o.allowVerticalPlacement && tt > 0 &&
|
|
26760
|
+
const fn = F.verticalTextBox;
|
|
26761
|
+
return o.allowVerticalPlacement && tt > 0 && fn ? (he(fn), Ae(fn, oi.vertical)) : { box: null, offscreen: null, occluded: null };
|
|
26762
26762
|
}), je(!!(wt && wt.box && wt.box.length));
|
|
26763
26763
|
}
|
|
26764
26764
|
}
|
|
@@ -26769,8 +26769,8 @@ Use an identity property function instead: ${_}.`)];
|
|
|
26769
26769
|
if (F.iconFeatureIndex && (ae = F.iconFeatureIndex), F.iconBox) {
|
|
26770
26770
|
const je = (De) => {
|
|
26771
26771
|
he(De);
|
|
26772
|
-
const Ae = $.hasIconTextFit && ft ? n_(ft.x, ft.y, M, P, this.transform.angle) : new q(0, 0),
|
|
26773
|
-
return this.collisionIndex.placeCollisionBox(o,
|
|
26772
|
+
const Ae = $.hasIconTextFit && ft ? n_(ft.x, ft.y, M, P, this.transform.angle) : new q(0, 0), fn = o.getSymbolInstanceIconSize(x, this.transform.zoom, $.placedIconSymbolIndex);
|
|
26773
|
+
return this.collisionIndex.placeCollisionBox(o, fn, De, Ae, R, f, a, b.predicate);
|
|
26774
26774
|
};
|
|
26775
26775
|
At && At.box && At.box.length && F.verticalIconBox ? (Pt = je(F.verticalIconBox), Y = Pt.box.length > 0) : (Pt = je(F.iconBox), Y = Pt.box.length > 0), J = J && Pt.offscreen, pt = Pt.occluded;
|
|
26776
26776
|
}
|
|
@@ -29320,7 +29320,7 @@ uniform ${f} ${m} u_${_};
|
|
|
29320
29320
|
}
|
|
29321
29321
|
i.bindFramebuffer.set(a.framebuffer), i.viewport.set([0, 0, s, s]);
|
|
29322
29322
|
const { tileBoundsBuffer: l, tileBoundsIndexBuffer: c, tileBoundsSegments: u } = e.getMercatorTileBoundsBuffers(), f = [];
|
|
29323
|
-
e.linearFloatFilteringSupported() && f.push("TERRAIN_DEM_FLOAT_FORMAT"), e.getOrCreateProgram("hillshadePrepare", { defines: f }).draw(e, r.TRIANGLES, Fe.disabled, nn.disabled,
|
|
29323
|
+
e.linearFloatFilteringSupported() && f.push("TERRAIN_DEM_FLOAT_FORMAT"), e.getOrCreateProgram("hillshadePrepare", { defines: f }).draw(e, r.TRIANGLES, Fe.disabled, nn.disabled, Tn.unblended, sn.disabled, ((m, _) => {
|
|
29324
29324
|
const y = _.stride, x = st.create();
|
|
29325
29325
|
return st.ortho(x, 0, yt, -yt, 0, 0, 1), st.translate(x, x, [0, -yt, 0]), { u_matrix: x, u_image: 1, u_dimension: [y, y], u_zoom: m.overscaledZ };
|
|
29326
29326
|
})(t.tileID, o), n.id, l, c, u), t.needsHillshadePrepare = !1;
|
|
@@ -29426,7 +29426,7 @@ uniform ${f} ${m} u_${_};
|
|
|
29426
29426
|
this.renderCache.forEach((t) => t.fb.destroy()), this.renderCache = [], this.renderCachePool = [], this.proxyCachedFBO = {};
|
|
29427
29427
|
}
|
|
29428
29428
|
}
|
|
29429
|
-
class yS extends
|
|
29429
|
+
class yS extends An {
|
|
29430
29430
|
constructor(t, n, i) {
|
|
29431
29431
|
super(t.overscaledZ, t.wrap, t.canonical.z, t.canonical.x, t.canonical.y), this.proxyTileKey = n, this.projMatrix = i;
|
|
29432
29432
|
}
|
|
@@ -29691,7 +29691,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
29691
29691
|
const rt = f.getTile(tt), Y = nn.disabled, J = u.prevTerrainTileForTile[tt.key], ut = u.terrainTileForTile[tt.key];
|
|
29692
29692
|
pS(J, ut) && nl.newMorphing(tt.key, J, ut, _, 250), y.activeTexture.set(x.TEXTURE0), rt.texture && rt.texture.bind(x.LINEAR, x.CLAMP_TO_EDGE);
|
|
29693
29693
|
const pt = nl.getMorphValuesForProxy(tt.key), ft = pt ? 1 : 0;
|
|
29694
|
-
pt && Eo($, { morphing: { srcDemTile: pt.from, dstDemTile: pt.to, phase:
|
|
29694
|
+
pt && Eo($, { morphing: { srcDemTile: pt.from, dstDemTile: pt.to, phase: pn(pt.phase) } });
|
|
29695
29695
|
const wt = lh(tt.canonical), At = dI(wt.getCenter().lat), Ct = Vx(tt.canonical, wt, At, W.worldSize / W._pixelsPerMercatorPixel), _t = os(Ar(tt.canonical)), Pt = fS(W.expandedFarZProjMatrix, j, L, _t, Vi(W.zoom), O, W.frustumCorners.TL, W.frustumCorners.TR, W.frustumCorners.BR, W.frustumCorners.BL, W.globeCenterInViewSpace, W.globeRadius, N, F, Ct);
|
|
29696
29696
|
if (R(tt, ft), b && (u.setupElevationDraw(rt, b, $), c.uploadCommonUniforms(y, b, tt.toUnwrapped()), z)) {
|
|
29697
29697
|
const [te, ee, ae] = z.getGridBuffers(At, F !== 0);
|
|
@@ -29738,7 +29738,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
29738
29738
|
pS(j, $) && nl.newMorphing(O.key, j, $, l, 250), c.activeTexture.set(u.TEXTURE0), z.texture && z.texture.bind(u.LINEAR, u.CLAMP_TO_EDGE);
|
|
29739
29739
|
const W = nl.getMorphValuesForProxy(O.key), F = W ? 1 : 0;
|
|
29740
29740
|
let K;
|
|
29741
|
-
W && (K = { morphing: { srcDemTile: W.from, dstDemTile: W.to, phase:
|
|
29741
|
+
W && (K = { morphing: { srcDemTile: W.from, dstDemTile: W.to, phase: pn(W.phase) } });
|
|
29742
29742
|
const tt = dS(O.projMatrix, VL(O.canonical, A.renderWorldCopies) ? I / 10 : I, R);
|
|
29743
29743
|
if (x(F), !f)
|
|
29744
29744
|
continue;
|
|
@@ -29978,11 +29978,11 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
29978
29978
|
}
|
|
29979
29979
|
_renderTileClippingMasks(t, n) {
|
|
29980
29980
|
const i = this.painter, r = this.painter.context, o = r.gl;
|
|
29981
|
-
i._tileClippingMaskIDs = {}, r.setColorMode(
|
|
29981
|
+
i._tileClippingMaskIDs = {}, r.setColorMode(Tn.disabled), r.setDepthMode(Fe.disabled);
|
|
29982
29982
|
const s = i.getOrCreateProgram("clippingMask");
|
|
29983
29983
|
for (const a of t) {
|
|
29984
29984
|
const l = i._tileClippingMaskIDs[a.key] = --n;
|
|
29985
|
-
s.draw(i, o.TRIANGLES, Fe.disabled, new nn({ func: o.ALWAYS, mask: 0 }, l, 255, o.KEEP, o.KEEP, o.REPLACE),
|
|
29985
|
+
s.draw(i, o.TRIANGLES, Fe.disabled, new nn({ func: o.ALWAYS, mask: 0 }, l, 255, o.KEEP, o.KEEP, o.REPLACE), Tn.disabled, sn.disabled, s_(a.projMatrix), "$clipping", i.tileExtentBuffer, i.quadTriangleIndexBuffer, i.tileExtentSegments);
|
|
29986
29986
|
}
|
|
29987
29987
|
}
|
|
29988
29988
|
pointCoordinate(t) {
|
|
@@ -30014,7 +30014,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
30014
30014
|
const m = s.getOrCreateProgram("terrainDepth"), _ = new Fe(f.LESS, Fe.ReadWrite, s.depthRangeFor3D);
|
|
30015
30015
|
for (const y of c) {
|
|
30016
30016
|
const x = l.getTile(y), b = dS(y.projMatrix, 0, [0, 0, 0]);
|
|
30017
|
-
a.setupElevationDraw(x, m), m.draw(s, f.TRIANGLES, _, nn.disabled,
|
|
30017
|
+
a.setupElevationDraw(x, m), m.draw(s, f.TRIANGLES, _, nn.disabled, Tn.unblended, sn.backCCW, b, "terrain_depth", a.gridBuffer, a.gridIndexBuffer, a.gridNoSkirtSegments);
|
|
30018
30018
|
}
|
|
30019
30019
|
}(t, this, i, this.proxyCoords);
|
|
30020
30020
|
}
|
|
@@ -30093,7 +30093,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
30093
30093
|
const f = n.getSource().maxzoom;
|
|
30094
30094
|
if (t.canonical.z >= f) {
|
|
30095
30095
|
const m = t.canonical.z - f;
|
|
30096
|
-
n.getSource().reparseOverscaled ? (a = Math.max(t.canonical.z + 2, n.transform.tileZoom), s = new
|
|
30096
|
+
n.getSource().reparseOverscaled ? (a = Math.max(t.canonical.z + 2, n.transform.tileZoom), s = new An(a, t.wrap, f, t.canonical.x >> m, t.canonical.y >> m)) : m !== 0 && (a = f, s = new An(a, t.wrap, f, t.canonical.x >> m, t.canonical.y >> m));
|
|
30097
30097
|
}
|
|
30098
30098
|
s.key !== t.key && (c.push(s.key), i = n.getTile(s));
|
|
30099
30099
|
}
|
|
@@ -30260,7 +30260,7 @@ ${i.vertexSource}`;
|
|
|
30260
30260
|
for (const L in M[R])
|
|
30261
30261
|
P[R][L] && P[R][L].set(P.program, L, M[R][L].current);
|
|
30262
30262
|
};
|
|
30263
|
-
c && c.setUniforms(b.program, m, b.binderUniforms, a, { zoom: l }), S("fixedUniforms", this, b), S("terrainUniforms", this, b), S("globeUniforms", this, b), S("fogUniforms", this, b), S("lightsUniforms", this, b), S("shadowUniforms", this, b), y.bind(), m.setColorMode(new
|
|
30263
|
+
c && c.setUniforms(b.program, m, b.binderUniforms, a, { zoom: l }), S("fixedUniforms", this, b), S("terrainUniforms", this, b), S("globeUniforms", this, b), S("fogUniforms", this, b), S("lightsUniforms", this, b), S("shadowUniforms", this, b), y.bind(), m.setColorMode(new Tn([_.ONE, _.ONE_MINUS_SRC_ALPHA, _.ZERO, _.ONE], en.transparent, [!0, !0, !0, !1])), m.setDepthMode(new Fe(n.func === _.LESS ? _.LEQUAL : n.func, Fe.ReadOnly, n.range)), m.setStencilMode(nn.disabled);
|
|
30264
30264
|
const A = 3 * s.primitiveLength * 2, I = 3 * s.primitiveOffset * 2 * 2;
|
|
30265
30265
|
u && u > 1 ? _.drawElementsInstanced(_.LINES, A, _.UNSIGNED_SHORT, I, u) : _.drawElements(_.LINES, A, _.UNSIGNED_SHORT, I), o.bind(), m.program.set(this.program), m.setDepthMode(n), m.setStencilMode(i), m.setColorMode(r);
|
|
30266
30266
|
}
|
|
@@ -30460,11 +30460,11 @@ ${i.vertexSource}`;
|
|
|
30460
30460
|
const ii = x.elevation, Fn = ii ? ii.getAtTileOffsetFunc(W, x.center.lat, x.worldSize, K.getProjection()) : null, qi = xw(he, F.tileID.canonical, S, b, x, K.getProjection(), Ue);
|
|
30461
30461
|
u4(K, he, e, r, qi, un, S, c, Fn, W);
|
|
30462
30462
|
}
|
|
30463
|
-
const Ae = A || r && O || De,
|
|
30463
|
+
const Ae = A || r && O || De, fn = e.translatePosMatrix(he, F, o, s), vn = Ae ? LS : we, Qe = e.translatePosMatrix(un, F, o, s, !0), Zn = K.getProjection().createInversionMatrix(x, W.canonical), bi = n.paint.get("icon-image-cross-fade").constantOr(0), $n = [];
|
|
30464
30464
|
e.terrainRenderModeElevated() && S && $n.push("PITCH_WITH_MAP_TERRAIN"), te && ($n.push("PROJECTION_GLOBE_VIEW"), Ae && $n.push("PROJECTED_POS_ON_VIEWPORT")), bi > 0 && $n.push("ICON_TRANSITION"), tt.zOffsetVertexBuffer && $n.push("Z_OFFSET");
|
|
30465
30465
|
const ti = Y && n.paint.get(r ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
|
30466
30466
|
let Ei;
|
|
30467
|
-
Y ? Ei = K.iconsInText ? s5(J.kind, pt, I, S, e,
|
|
30467
|
+
Y ? Ei = K.iconsInText ? s5(J.kind, pt, I, S, e, fn, vn, Qe, ft, _t, W, ae, L, Zn, ee, K.getProjection()) : MS(J.kind, pt, I, S, e, fn, vn, Qe, r, ft, !0, W, ae, L, Zn, ee, K.getProjection()) : (u < 1 && $n.push("SATURATION"), Ei = CS(J.kind, pt, I, S, e, fn, vn, Qe, r, ft, W, ae, L, Zn, ee, K.getProjection(), u, bi));
|
|
30468
30468
|
const wi = { program: e.getOrCreateProgram(d5(Y, r, K), { config: rt, defines: $n }), buffers: tt, uniformValues: Ei, atlasTexture: wt, atlasTextureIcon: Pt, atlasInterpolation: At, atlasInterpolationIcon: Ct, isSDF: Y, hasHalo: ti, tile: F, labelPlaneMatrixInv: bn };
|
|
30469
30469
|
if (R && K.canOverlap) {
|
|
30470
30470
|
M = !0;
|
|
@@ -30744,7 +30744,7 @@ ${i.vertexSource}`;
|
|
|
30744
30744
|
F.clearRect(0, 0, $.width, $.height), F.shadowColor = "white", F.shadowBlur = 2, F.lineWidth = 1.5, F.strokeStyle = "white", F.textBaseline = "top", F.font = "bold 36px Open Sans, sans-serif", F.fillText(j, 5, 5), F.strokeText(j, 5, 5), N.debugOverlayTexture.update($), N.debugOverlayTexture.bind(W.LINEAR, W.CLAMP_TO_EDGE);
|
|
30745
30745
|
}(e, P);
|
|
30746
30746
|
const L = u._tileDebugTextBuffer || e.debugBuffer, O = u._tileDebugTextIndexBuffer || e.quadTriangleIndexBuffer, z = u._tileDebugTextSegments || e.debugSegments;
|
|
30747
|
-
c.draw(e, o.TRIANGLES, f, m,
|
|
30747
|
+
c.draw(e, o.TRIANGLES, f, m, Tn.alphaBlended, sn.disabled, TS(l, en.transparent, M), y, L, O, z, null, null, null, [u._globeTileDebugTextBuffer]);
|
|
30748
30748
|
}
|
|
30749
30749
|
function OS(e, t, n, i) {
|
|
30750
30750
|
_d(e, 0, t + n / 2, e.transform.width, n, i);
|
|
@@ -30767,7 +30767,7 @@ ${i.vertexSource}`;
|
|
|
30767
30767
|
}
|
|
30768
30768
|
function rl(e, t, n, i, r, o) {
|
|
30769
30769
|
const s = e.context.gl, a = t.paint.get("sky-atmosphere-color"), l = t.paint.get("sky-atmosphere-halo-color"), c = t.paint.get("sky-atmosphere-sun-intensity"), u = ((f, m, _, y, x) => ({ u_matrix_3f: f, u_sun_direction: m, u_sun_intensity: _, u_color_tint_r: [y.r, y.g, y.b, y.a], u_color_tint_m: [x.r, x.g, x.b, x.a], u_luminance: 5e-5 }))(rr.fromMat4(rr.create(), i), r, c, a, l);
|
|
30770
|
-
s.framebufferTexture2D(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0, s.TEXTURE_CUBE_MAP_POSITIVE_X + o, t.skyboxTexture, 0), n.draw(e, s.TRIANGLES, Fe.disabled, nn.disabled,
|
|
30770
|
+
s.framebufferTexture2D(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0, s.TEXTURE_CUBE_MAP_POSITIVE_X + o, t.skyboxTexture, 0), n.draw(e, s.TRIANGLES, Fe.disabled, nn.disabled, Tn.unblended, sn.frontCW, u, "skyboxCapture", t.skyboxGeometry.vertexBuffer, t.skyboxGeometry.indexBuffer, t.skyboxGeometry.segment);
|
|
30771
30771
|
}
|
|
30772
30772
|
const C5 = kn([{ type: "Float32", name: "a_pos", components: 3 }, { type: "Float32", name: "a_uv", components: 2 }]);
|
|
30773
30773
|
class M5 {
|
|
@@ -30784,7 +30784,7 @@ ${i.vertexSource}`;
|
|
|
30784
30784
|
const I5 = kn([{ type: "Float32", name: "a_pos_3f", components: 3 }, { type: "Float32", name: "a_uv", components: 2 }, { type: "Float32", name: "a_size_scale", components: 1 }, { type: "Float32", name: "a_fade_opacity", components: 1 }]);
|
|
30785
30785
|
class R5 {
|
|
30786
30786
|
constructor() {
|
|
30787
|
-
this.colorModeAlphaBlendedWriteRGB = new
|
|
30787
|
+
this.colorModeAlphaBlendedWriteRGB = new Tn([1, Hh, 1, Hh], en.transparent, [!0, !0, !0, !1]), this.colorModeWriteAlpha = new Tn([1, 0, 1, 0], en.transparent, [!1, !1, !1, !0]);
|
|
30788
30788
|
}
|
|
30789
30789
|
update(t) {
|
|
30790
30790
|
const n = t.context;
|
|
@@ -30939,7 +30939,7 @@ ${i.vertexSource}`;
|
|
|
30939
30939
|
else {
|
|
30940
30940
|
c_(_, y, m, e), x = e.getOrCreateProgram("model", { defines: _, overrideFog: f });
|
|
30941
30941
|
const R = m.material, M = R.pbrMetallicRoughness, P = t.paint.get("model-opacity"), L = t.paint.get("model-emissive-strength").constantOr(0);
|
|
30942
|
-
b = a_(o.expandedProjMatrix, Float32Array.from(n.matrix), new Float32Array(16), e, P, M.baseColorFactor, R.emissiveFactor, M.metallicFactor, M.roughnessFactor, R, L, t, r), c && (s.shadowUniformsInitialized ? x.setShadowUniformValues(a, c.getShadowUniformValues()) : (c.setupShadows(o.toUnwrapped(), x, "model-tile", o.overscaledZ), s.shadowUniformsInitialized = !0)), S = A.shouldRenderCutoff || P < 1 || R.alphaMode !== "OPAQUE" ?
|
|
30942
|
+
b = a_(o.expandedProjMatrix, Float32Array.from(n.matrix), new Float32Array(16), e, P, M.baseColorFactor, R.emissiveFactor, M.metallicFactor, M.roughnessFactor, R, L, t, r), c && (s.shadowUniformsInitialized ? x.setShadowUniformValues(a, c.getShadowUniformValues()) : (c.setupShadows(o.toUnwrapped(), x, "model-tile", o.overscaledZ), s.shadowUniformsInitialized = !0)), S = A.shouldRenderCutoff || P < 1 || R.alphaMode !== "OPAQUE" ? Tn.alphaBlended : Tn.unblended;
|
|
30943
30943
|
}
|
|
30944
30944
|
e.uploadCommonUniforms(a, x, o.toUnwrapped(), null, A);
|
|
30945
30945
|
const I = m.material.doubleSided ? sn.disabled : sn.backCCW;
|
|
@@ -31054,7 +31054,7 @@ ${i.vertexSource}`;
|
|
|
31054
31054
|
}, heatmap: function(e, t, n, i) {
|
|
31055
31055
|
if (n.paint.get("heatmap-opacity") !== 0)
|
|
31056
31056
|
if (e.renderPass === "offscreen") {
|
|
31057
|
-
const r = e.context, o = r.gl, s = nn.disabled, a = new
|
|
31057
|
+
const r = e.context, o = r.gl, s = nn.disabled, a = new Tn([o.ONE, o.ONE, o.ONE, o.ONE], en.transparent, [!0, !0, !0, !0]);
|
|
31058
31058
|
(function(_, y, x, b) {
|
|
31059
31059
|
const S = _.gl, A = y.width * b, I = y.height * b;
|
|
31060
31060
|
_.activeTexture.set(S.TEXTURE1), _.viewport.set([0, 0, A, I]);
|
|
@@ -31130,7 +31130,7 @@ ${i.vertexSource}`;
|
|
|
31130
31130
|
let wt = 256;
|
|
31131
31131
|
if (n.stepInterpolant) {
|
|
31132
31132
|
const At = t.getSource().maxzoom, Ct = L.canonical.z === At ? Math.ceil(1 << e.transform.maxZoom - L.canonical.z) : 1;
|
|
31133
|
-
wt = gt(
|
|
31133
|
+
wt = gt(Sn(z.maxLineLength / yt * 1024 * Ct), 256, R.maxTextureSize);
|
|
31134
31134
|
}
|
|
31135
31135
|
pt.gradient = mh({ expression: n.gradientExpression(), evaluationKey: "lineProgress", resolution: wt, image: pt.gradient || void 0, clips: z.lineClipsArray }), pt.texture ? pt.texture.update(pt.gradient) : pt.texture = new hi(R, pt.gradient, M.RGBA), pt.version = n.gradientVersion, ft = pt.texture;
|
|
31136
31136
|
}
|
|
@@ -31187,17 +31187,17 @@ ${i.vertexSource}`;
|
|
|
31187
31187
|
const f = !n.paint.get("fill-extrusion-pattern").constantOr(1);
|
|
31188
31188
|
if (!l) {
|
|
31189
31189
|
const m = new Fe(e.context.gl.LEQUAL, Fe.ReadWrite, e.depthRangeFor3D);
|
|
31190
|
-
c === 0 && r === 1 && f ? gd(e, t, n, i, m, nn.disabled,
|
|
31190
|
+
c === 0 && r === 1 && f ? gd(e, t, n, i, m, nn.disabled, Tn.unblended, u) : (gd(e, t, n, i, m, nn.disabled, Tn.disabled, u), gd(e, t, n, i, m, e.stencilModeFor3D(), e.colorModeForRenderPass(), u), e.resetStencilClippingMasks());
|
|
31191
31191
|
}
|
|
31192
31192
|
if (e.style.enable3dLights() && f && (!a && e.transform.projection.name !== "globe" || l)) {
|
|
31193
31193
|
const m = n.paint.get("fill-extrusion-opacity"), _ = n.paint.get("fill-extrusion-ambient-occlusion-intensity"), y = n.paint.get("fill-extrusion-ambient-occlusion-ground-radius"), x = n.paint.get("fill-extrusion-flood-light-intensity"), b = n.paint.get("fill-extrusion-flood-light-color").toArray01().slice(0, 3), S = _ > 0 && y > 0, A = x > 0, I = (M, P, L) => (1 - L) * M + L * P, R = (M) => {
|
|
31194
31194
|
const P = e.depthModeForSublayer(1, Fe.ReadOnly, s.LEQUAL, !0), L = n.paint.get(M ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), O = I(0.1, 3, L), z = e._showOverdrawInspector;
|
|
31195
31195
|
if (!z) {
|
|
31196
|
-
const N = new nn({ func: s.ALWAYS, mask: 255 }, 255, 255, s.KEEP, s.KEEP, s.REPLACE), j = new
|
|
31196
|
+
const N = new nn({ func: s.ALWAYS, mask: 255 }, 255, 255, s.KEEP, s.KEEP, s.REPLACE), j = new Tn([s.ONE, s.ONE, s.ONE, s.ONE], en.transparent, [!1, !1, !1, !0], s.MIN);
|
|
31197
31197
|
il(e, t, n, i, P, N, j, sn.disabled, M, "sdf", m, _, y, x, b, O, u, !1);
|
|
31198
31198
|
}
|
|
31199
31199
|
{
|
|
31200
|
-
const N = z ? nn.disabled : new nn({ func: s.EQUAL, mask: 255 }, 255, 255, s.KEEP, s.DECR, s.DECR), j = z ? e.colorModeForRenderPass() : new
|
|
31200
|
+
const N = z ? nn.disabled : new nn({ func: s.EQUAL, mask: 255 }, 255, 255, s.KEEP, s.DECR, s.DECR), j = z ? e.colorModeForRenderPass() : new Tn([s.ONE_MINUS_DST_ALPHA, s.DST_ALPHA, s.ONE, s.ONE], en.transparent, [!0, !0, !0, !0]);
|
|
31201
31201
|
il(e, t, n, i, P, N, j, sn.disabled, M, "color", m, _, y, x, b, O, u, !1);
|
|
31202
31202
|
}
|
|
31203
31203
|
};
|
|
@@ -31205,19 +31205,19 @@ ${i.vertexSource}`;
|
|
|
31205
31205
|
const M = (P, L, O) => {
|
|
31206
31206
|
const z = e.depthModeForSublayer(1, Fe.ReadOnly, s.LEQUAL, !1), N = n.paint.get(P ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), j = I(0.1, 3, N);
|
|
31207
31207
|
{
|
|
31208
|
-
const $ = new
|
|
31208
|
+
const $ = new Tn([s.ONE, s.ONE, s.ONE, s.ONE], en.transparent, [!1, !1, !1, !0]);
|
|
31209
31209
|
il(e, t, n, i, z, nn.disabled, $, sn.disabled, P, "clear", m, _, y, x, b, j, u, L);
|
|
31210
31210
|
}
|
|
31211
31211
|
{
|
|
31212
|
-
const $ = new nn({ func: s.ALWAYS, mask: 255 }, 255, 255, s.KEEP, s.KEEP, s.REPLACE), W = new
|
|
31212
|
+
const $ = new nn({ func: s.ALWAYS, mask: 255 }, 255, 255, s.KEEP, s.KEEP, s.REPLACE), W = new Tn([s.ONE, s.ONE, s.ONE, s.ONE], en.transparent, [!1, !1, !1, !0], s.MIN);
|
|
31213
31213
|
il(e, t, n, i, z, $, W, sn.disabled, P, "sdf", m, _, y, x, b, j, u, L);
|
|
31214
31214
|
}
|
|
31215
31215
|
{
|
|
31216
|
-
const $ = P ? s.ZERO : s.ONE_MINUS_DST_ALPHA, W = new nn({ func: s.EQUAL, mask: 255 }, 255, 255, s.KEEP, s.DECR, s.DECR), F = new
|
|
31216
|
+
const $ = P ? s.ZERO : s.ONE_MINUS_DST_ALPHA, W = new nn({ func: s.EQUAL, mask: 255 }, 255, 255, s.KEEP, s.DECR, s.DECR), F = new Tn([$, s.DST_ALPHA, s.ONE_MINUS_DST_ALPHA, s.ZERO], en.transparent, [!0, !0, !0, !0]);
|
|
31217
31217
|
il(e, t, n, i, z, W, F, sn.disabled, P, "color", m, _, y, x, b, j, u, L);
|
|
31218
31218
|
}
|
|
31219
31219
|
{
|
|
31220
|
-
const $ = new
|
|
31220
|
+
const $ = new Tn([s.ONE, s.ONE, s.ONE, P ? s.ZERO : s.ONE], en.transparent, [!1, !1, !1, !0], P ? s.FUNC_ADD : s.MAX);
|
|
31221
31221
|
il(e, t, n, i, z, nn.disabled, $, sn.disabled, P, "clear", m, _, y, x, b, j, u, L, O);
|
|
31222
31222
|
}
|
|
31223
31223
|
};
|
|
@@ -31509,8 +31509,8 @@ ${i.vertexSource}`;
|
|
|
31509
31509
|
continue;
|
|
31510
31510
|
const De = { defines: [] }, Ae = [];
|
|
31511
31511
|
c_(De.defines, Ae, un, S), 4 & At || De.defines.push("DIFFUSE_SHADED"), ft && De.defines.push("SHADOWS_SINGLE_CASCADE");
|
|
31512
|
-
const
|
|
31513
|
-
if (
|
|
31512
|
+
const fn = S.renderPass === "shadow";
|
|
31513
|
+
if (fn) {
|
|
31514
31514
|
u_(un, te, S, I);
|
|
31515
31515
|
continue;
|
|
31516
31516
|
}
|
|
@@ -31523,11 +31523,11 @@ ${i.vertexSource}`;
|
|
|
31523
31523
|
}
|
|
31524
31524
|
}
|
|
31525
31525
|
const Qe = S.getOrCreateProgram("model", De);
|
|
31526
|
-
!
|
|
31526
|
+
!fn && O && (O.useNormalOffset = !!un.normalBuffer, O.setupShadowsFromMatrix(te, Qe, O.useNormalOffset)), S.uploadCommonUniforms(M, Qe, ut.toUnwrapped(), vn);
|
|
31527
31527
|
const Zn = un.material, bi = Zn.pbrMetallicRoughness;
|
|
31528
31528
|
bi.metallicFactor = 0.9, bi.roughnessFactor = 0.5;
|
|
31529
31529
|
const $n = 0, ti = a_(new Float32Array(we), new Float32Array(he), new Float32Array(Ue), S, F, bi.baseColorFactor, Zn.emissiveFactor, bi.metallicFactor, bi.roughnessFactor, Zn, $n, I);
|
|
31530
|
-
Qe.draw(S, M.gl.TRIANGLES, J && !je ? K : tt, nn.disabled, Y ? je || F < 1 || Ct.hasTranslucentParts ?
|
|
31530
|
+
Qe.draw(S, M.gl.TRIANGLES, J && !je ? K : tt, nn.disabled, Y ? je || F < 1 || Ct.hasTranslucentParts ? Tn.alphaBlended : Tn.unblended : Tn.disabled, sn.backCCW, ti, I.id, un.vertexBuffer, un.indexBuffer, un.segments, I.paint, S.transform.zoom, void 0, Ae);
|
|
31531
31531
|
}
|
|
31532
31532
|
}
|
|
31533
31533
|
}
|
|
@@ -31559,7 +31559,7 @@ ${i.vertexSource}`;
|
|
|
31559
31559
|
yd(S, e, n, f[S.modelIndex], nn.disabled, e.colorModeForRenderPass());
|
|
31560
31560
|
else {
|
|
31561
31561
|
for (const S of x)
|
|
31562
|
-
yd(S, e, n, f[S.modelIndex], nn.disabled,
|
|
31562
|
+
yd(S, e, n, f[S.modelIndex], nn.disabled, Tn.disabled);
|
|
31563
31563
|
for (const S of x)
|
|
31564
31564
|
yd(S, e, n, f[S.modelIndex], e.stencilModeFor3D(), e.colorModeForRenderPass());
|
|
31565
31565
|
e.resetStencilClippingMasks();
|
|
@@ -31648,7 +31648,7 @@ ${i.vertexSource}`;
|
|
|
31648
31648
|
}
|
|
31649
31649
|
clearStencil() {
|
|
31650
31650
|
const t = this.context.gl;
|
|
31651
|
-
this.nextStencilID = 1, this.currentStencilSource = void 0, this._tileClippingMaskIDs = {}, this.getOrCreateProgram("clippingMask").draw(this, t.TRIANGLES, Fe.disabled, this.stencilClearMode,
|
|
31651
|
+
this.nextStencilID = 1, this.currentStencilSource = void 0, this._tileClippingMaskIDs = {}, this.getOrCreateProgram("clippingMask").draw(this, t.TRIANGLES, Fe.disabled, this.stencilClearMode, Tn.disabled, sn.disabled, s_(this.identityMat), "$clipping", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);
|
|
31652
31652
|
}
|
|
31653
31653
|
resetStencilClippingMasks() {
|
|
31654
31654
|
this.terrain || (this.currentStencilSource = void 0, this._tileClippingMaskIDs = {});
|
|
@@ -31668,12 +31668,12 @@ ${i.vertexSource}`;
|
|
|
31668
31668
|
}
|
|
31669
31669
|
this.currentStencilSource = n.id;
|
|
31670
31670
|
const r = this.context, o = r.gl;
|
|
31671
|
-
this.nextStencilID + i.length > 256 && this.clearStencil(), r.setColorMode(
|
|
31671
|
+
this.nextStencilID + i.length > 256 && this.clearStencil(), r.setColorMode(Tn.disabled), r.setDepthMode(Fe.disabled);
|
|
31672
31672
|
const s = this.getOrCreateProgram("clippingMask");
|
|
31673
31673
|
this._tileClippingMaskIDs = {};
|
|
31674
31674
|
for (const a of i) {
|
|
31675
31675
|
const l = n.getTile(a), c = this._tileClippingMaskIDs[a.key] = this.nextStencilID++, { tileBoundsBuffer: u, tileBoundsIndexBuffer: f, tileBoundsSegments: m } = this.getTileBoundsBuffers(l);
|
|
31676
|
-
s.draw(this, o.TRIANGLES, Fe.disabled, new nn({ func: o.ALWAYS, mask: 0 }, c, 255, o.KEEP, o.KEEP, o.REPLACE),
|
|
31676
|
+
s.draw(this, o.TRIANGLES, Fe.disabled, new nn({ func: o.ALWAYS, mask: 0 }, c, 255, o.KEEP, o.KEEP, o.REPLACE), Tn.disabled, sn.disabled, s_(a.projMatrix), "$clipping", u, f, m);
|
|
31677
31677
|
}
|
|
31678
31678
|
}
|
|
31679
31679
|
stencilModeFor3D() {
|
|
@@ -31700,11 +31700,11 @@ ${i.vertexSource}`;
|
|
|
31700
31700
|
}
|
|
31701
31701
|
colorModeForRenderPass() {
|
|
31702
31702
|
const t = this.context.gl;
|
|
31703
|
-
return this._showOverdrawInspector ? new
|
|
31703
|
+
return this._showOverdrawInspector ? new Tn([t.CONSTANT_COLOR, t.ONE, t.CONSTANT_COLOR, t.ONE], new en(0.125, 0.125, 0.125, 0), [!0, !0, !0, !0]) : this.renderPass === "opaque" ? Tn.unblended : Tn.alphaBlended;
|
|
31704
31704
|
}
|
|
31705
31705
|
colorModeForDrapableLayerRenderPass(t) {
|
|
31706
31706
|
const n = this.context.gl;
|
|
31707
|
-
return (() => this.style && this.style.enable3dLights() && this.terrain && this.terrain.renderingToTexture)() && this.renderPass === "translucent" ? new
|
|
31707
|
+
return (() => this.style && this.style.enable3dLights() && this.terrain && this.terrain.renderingToTexture)() && this.renderPass === "translucent" ? new Tn([n.ONE, n.ONE_MINUS_SRC_ALPHA, n.CONSTANT_ALPHA, n.ONE_MINUS_SRC_ALPHA], new en(0, 0, 0, t === void 0 ? 0 : t), [!0, !0, !0, !0]) : this.colorModeForRenderPass();
|
|
31708
31708
|
}
|
|
31709
31709
|
depthModeForSublayer(t, n, i, r = !1) {
|
|
31710
31710
|
if (!this.opaquePassEnabledForLayer() && !r)
|
|
@@ -32169,11 +32169,11 @@ ${i.vertexSource}`;
|
|
|
32169
32169
|
const f = u.toUnwrapped(), m = t.isTileAffectedByFog(u), _ = t.getOrCreateProgram("groundShadow", { defines: s, overrideFog: m });
|
|
32170
32170
|
this.setupShadows(f, _), t.uploadCommonUniforms(i, _, f, null, a);
|
|
32171
32171
|
const y = { u_matrix: t.transform.calculateProjMatrix(f), u_ground_shadow_factor: l };
|
|
32172
|
-
_.draw(t, i.gl.TRIANGLES, c, nn.disabled,
|
|
32172
|
+
_.draw(t, i.gl.TRIANGLES, c, nn.disabled, Tn.multiply, sn.disabled, y, "ground_shadow", t.tileExtentBuffer, t.quadTriangleIndexBuffer, t.tileExtentSegments, {}, t.transform.zoom, null, null);
|
|
32173
32173
|
}
|
|
32174
32174
|
}
|
|
32175
32175
|
getShadowPassColorMode() {
|
|
32176
|
-
return this.painter._shadowMapDebug ?
|
|
32176
|
+
return this.painter._shadowMapDebug ? Tn.unblended : Tn.disabled;
|
|
32177
32177
|
}
|
|
32178
32178
|
getShadowPassDepthMode() {
|
|
32179
32179
|
return this._depthMode;
|
|
@@ -33660,7 +33660,7 @@ ${i.vertexSource}`;
|
|
|
33660
33660
|
let u = t ? `/${s}/${a}/${i}` : `${i}/${a}/${s}`;
|
|
33661
33661
|
return (l || c) && (u += "/" + Math.round(10 * l) / 10), c && (u += `/${Math.round(c)}`), u;
|
|
33662
33662
|
}
|
|
33663
|
-
const xd = { linearity: 0.3, easing:
|
|
33663
|
+
const xd = { linearity: 0.3, easing: wn(0, 0, 0.3, 1) }, H5 = nt({ deceleration: 2500, maxSpeed: 1400 }, xd), W5 = nt({ deceleration: 20, maxSpeed: 1400 }, xd), X5 = nt({ deceleration: 1e3, maxSpeed: 360 }, xd), Y5 = nt({ deceleration: 1e3, maxSpeed: 90 }, xd);
|
|
33664
33664
|
class K5 {
|
|
33665
33665
|
constructor(t) {
|
|
33666
33666
|
this._map = t, this.clear();
|
|
@@ -34405,7 +34405,7 @@ ${i.vertexSource}`;
|
|
|
34405
34405
|
let n = Rt;
|
|
34406
34406
|
if (this._prevEase) {
|
|
34407
34407
|
const i = this._prevEase, r = (He.now() - i.start) / i.duration, o = i.easing(r + 0.01) - i.easing(r), s = 0.27 / Math.sqrt(o * o + 1e-4) * 0.01;
|
|
34408
|
-
n =
|
|
34408
|
+
n = wn(s, Math.sqrt(0.0729 - s * s), 0.25, 1);
|
|
34409
34409
|
}
|
|
34410
34410
|
return this._prevEase = { start: He.now(), duration: t, easing: n }, n;
|
|
34411
34411
|
}
|
|
@@ -35477,7 +35477,7 @@ ${i.vertexSource}`;
|
|
|
35477
35477
|
return this._start;
|
|
35478
35478
|
if (t >= this._endTime)
|
|
35479
35479
|
return this._end;
|
|
35480
|
-
const n =
|
|
35480
|
+
const n = pn((t - this._startTime) / (this._endTime - this._startTime));
|
|
35481
35481
|
return this._start * (1 - n) + this._end * n;
|
|
35482
35482
|
}
|
|
35483
35483
|
isEasing(t) {
|
|
@@ -36772,7 +36772,7 @@ ${i.vertexSource}`;
|
|
|
36772
36772
|
$g = He.resolveURL(t), Gg || (Gg = new Ks(Mc(), new Mi())), Gg.broadcast("setDracoUrl", $g);
|
|
36773
36773
|
})(e);
|
|
36774
36774
|
}, setNow: He.setNow, restoreNow: He.restoreNow };
|
|
36775
|
-
C.A = b2, C.D = Mh, C.E = yt, C.F = hg, C.K = hd, C.O =
|
|
36775
|
+
C.A = b2, C.D = Mh, C.E = yt, C.F = hg, C.K = hd, C.O = An, C.P = q, C.T = Uw, C.V = Sh, C.a = wh, C.b = yb, C.c = nd, C.d = class extends Mi {
|
|
36776
36776
|
constructor(e, t, n, i, r, o) {
|
|
36777
36777
|
super(), this.actor = e, this.layerIndex = t, this.availableImages = n, this.loadVectorData = r || M2, this.loading = {}, this.loaded = {}, this.deduped = new C2(e.scheduler), this.isSpriteLoaded = i, this.scheduler = e.scheduler, this.brightness = o;
|
|
36778
36778
|
}
|
|
@@ -37046,9 +37046,9 @@ ${i.vertexSource}`;
|
|
|
37046
37046
|
Z[G] = new Ht(Lt[G].features, V), Z[G].name = G, Z[G].version = V.version, Z[G].extent = V.extent;
|
|
37047
37047
|
return Jt({ layers: Z });
|
|
37048
37048
|
}, Tt.exports.GeoJSONWrapper = Ht;
|
|
37049
|
-
var
|
|
37050
|
-
const ze = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (Lt) => Lt },
|
|
37051
|
-
var
|
|
37049
|
+
var pn = C.g(Tt.exports);
|
|
37050
|
+
const ze = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (Lt) => Lt }, hn = Math.fround || (wn = new Float32Array(1), (Lt) => (wn[0] = +Lt, wn[0]));
|
|
37051
|
+
var wn;
|
|
37052
37052
|
const Rt = 3, gt = 5, ht = 6;
|
|
37053
37053
|
class Ot {
|
|
37054
37054
|
constructor(V) {
|
|
@@ -37064,7 +37064,7 @@ ${i.vertexSource}`;
|
|
|
37064
37064
|
const Te = V[kt];
|
|
37065
37065
|
if (!Te.geometry)
|
|
37066
37066
|
continue;
|
|
37067
|
-
const [Le, Re] = Te.geometry.coordinates, Nn =
|
|
37067
|
+
const [Le, Re] = Te.geometry.coordinates, Nn = hn(nt(Le)), Xn = hn(ne(Re));
|
|
37068
37068
|
re.push(Nn, Xn, 1 / 0, kt, -1, 1), this.options.reduce && re.push(0);
|
|
37069
37069
|
}
|
|
37070
37070
|
let ve = this.trees[It + 1] = this._createTree(re);
|
|
@@ -37573,7 +37573,7 @@ ${i.vertexSource}`;
|
|
|
37573
37573
|
};
|
|
37574
37574
|
}();
|
|
37575
37575
|
var Pe = C.g(le.exports);
|
|
37576
|
-
function
|
|
37576
|
+
function Sn(Lt, V) {
|
|
37577
37577
|
const Z = Lt.tileID.canonical;
|
|
37578
37578
|
if (!this._geoJSONIndex)
|
|
37579
37579
|
return V(null, null);
|
|
@@ -37613,12 +37613,12 @@ ${i.vertexSource}`;
|
|
|
37613
37613
|
}(this._features[re]);
|
|
37614
37614
|
}
|
|
37615
37615
|
}(G.features);
|
|
37616
|
-
let Dt =
|
|
37616
|
+
let Dt = pn(It);
|
|
37617
37617
|
Dt.byteOffset === 0 && Dt.byteLength === Dt.buffer.byteLength || (Dt = new Uint8Array(Dt)), V(null, { vectorTile: It, rawData: Dt.buffer });
|
|
37618
37618
|
}
|
|
37619
37619
|
class ie extends C.d {
|
|
37620
37620
|
constructor(V, Z, G, It, Dt, re) {
|
|
37621
|
-
super(V, Z, G, It,
|
|
37621
|
+
super(V, Z, G, It, Sn, re), Dt && (this.loadGeoJSON = Dt);
|
|
37622
37622
|
}
|
|
37623
37623
|
loadData(V, Z) {
|
|
37624
37624
|
const G = V && V.request, It = G && G.collectResourceTiming;
|
|
@@ -38639,9 +38639,9 @@ function F7() {
|
|
|
38639
38639
|
}
|
|
38640
38640
|
}
|
|
38641
38641
|
}
|
|
38642
|
-
var ct = T, Vt = D, Ht = C, Jt = E, q = h, Nt = k, de = g, Oe = Q, jt = X, _e = p, zn = w,
|
|
38643
|
-
function
|
|
38644
|
-
return
|
|
38642
|
+
var ct = T, Vt = D, Ht = C, Jt = E, q = h, Nt = k, de = g, Oe = Q, jt = X, _e = p, zn = w, pn = v, ze = B, hn = !1;
|
|
38643
|
+
function wn(ie) {
|
|
38644
|
+
return hn || (hn = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Rt(ie) || bt(ie) === T;
|
|
38645
38645
|
}
|
|
38646
38646
|
function Rt(ie) {
|
|
38647
38647
|
return bt(ie) === D;
|
|
@@ -38676,10 +38676,10 @@ function F7() {
|
|
|
38676
38676
|
function Pe(ie) {
|
|
38677
38677
|
return bt(ie) === v;
|
|
38678
38678
|
}
|
|
38679
|
-
function
|
|
38679
|
+
function Sn(ie) {
|
|
38680
38680
|
return bt(ie) === B;
|
|
38681
38681
|
}
|
|
38682
|
-
fi.AsyncMode = ct, fi.ConcurrentMode = Vt, fi.ContextConsumer = Ht, fi.ContextProvider = Jt, fi.Element = q, fi.ForwardRef = Nt, fi.Fragment = de, fi.Lazy = Oe, fi.Memo = jt, fi.Portal = _e, fi.Profiler = zn, fi.StrictMode =
|
|
38682
|
+
fi.AsyncMode = ct, fi.ConcurrentMode = Vt, fi.ContextConsumer = Ht, fi.ContextProvider = Jt, fi.Element = q, fi.ForwardRef = Nt, fi.Fragment = de, fi.Lazy = Oe, fi.Memo = jt, fi.Portal = _e, fi.Profiler = zn, fi.StrictMode = pn, fi.Suspense = ze, fi.isAsyncMode = wn, fi.isConcurrentMode = Rt, fi.isContextConsumer = gt, fi.isContextProvider = ht, fi.isElement = Ot, fi.isForwardRef = Ft, fi.isFragment = fe, fi.isLazy = nt, fi.isMemo = ne, fi.isPortal = xe, fi.isProfiler = le, fi.isStrictMode = Pe, fi.isSuspense = Sn, fi.isValidElementType = vt, fi.typeOf = bt;
|
|
38683
38683
|
}()), fi;
|
|
38684
38684
|
}
|
|
38685
38685
|
var mE;
|
|
@@ -38804,8 +38804,8 @@ function j7() {
|
|
|
38804
38804
|
function Tt(Rt) {
|
|
38805
38805
|
if (process.env.NODE_ENV !== "production")
|
|
38806
38806
|
var gt = {}, ht = 0;
|
|
38807
|
-
function Ot(fe, nt, ne, xe, le, Pe,
|
|
38808
|
-
if (xe = xe || U, Pe = Pe || ne,
|
|
38807
|
+
function Ot(fe, nt, ne, xe, le, Pe, Sn) {
|
|
38808
|
+
if (xe = xe || U, Pe = Pe || ne, Sn !== p) {
|
|
38809
38809
|
if (T) {
|
|
38810
38810
|
var ie = new Error(
|
|
38811
38811
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -38826,7 +38826,7 @@ function j7() {
|
|
|
38826
38826
|
}
|
|
38827
38827
|
function Et(Rt) {
|
|
38828
38828
|
function gt(ht, Ot, Ft, fe, nt, ne) {
|
|
38829
|
-
var xe = ht[Ot], le =
|
|
38829
|
+
var xe = ht[Ot], le = pn(xe);
|
|
38830
38830
|
if (le !== Rt) {
|
|
38831
38831
|
var Pe = ze(xe);
|
|
38832
38832
|
return new it(
|
|
@@ -38847,7 +38847,7 @@ function j7() {
|
|
|
38847
38847
|
return new it("Property `" + nt + "` of component `" + Ft + "` has invalid PropType notation inside arrayOf.");
|
|
38848
38848
|
var ne = ht[Ot];
|
|
38849
38849
|
if (!Array.isArray(ne)) {
|
|
38850
|
-
var xe =
|
|
38850
|
+
var xe = pn(ne);
|
|
38851
38851
|
return new it("Invalid " + fe + " `" + nt + "` of type " + ("`" + xe + "` supplied to `" + Ft + "`, expected an array."));
|
|
38852
38852
|
}
|
|
38853
38853
|
for (var le = 0; le < ne.length; le++) {
|
|
@@ -38863,7 +38863,7 @@ function j7() {
|
|
|
38863
38863
|
function Rt(gt, ht, Ot, Ft, fe) {
|
|
38864
38864
|
var nt = gt[ht];
|
|
38865
38865
|
if (!C(nt)) {
|
|
38866
|
-
var ne =
|
|
38866
|
+
var ne = pn(nt);
|
|
38867
38867
|
return new it("Invalid " + Ft + " `" + fe + "` of type " + ("`" + ne + "` supplied to `" + Ot + "`, expected a single ReactElement."));
|
|
38868
38868
|
}
|
|
38869
38869
|
return null;
|
|
@@ -38874,7 +38874,7 @@ function j7() {
|
|
|
38874
38874
|
function Rt(gt, ht, Ot, Ft, fe) {
|
|
38875
38875
|
var nt = gt[ht];
|
|
38876
38876
|
if (!d.isValidElementType(nt)) {
|
|
38877
|
-
var ne =
|
|
38877
|
+
var ne = pn(nt);
|
|
38878
38878
|
return new it("Invalid " + Ft + " `" + fe + "` of type " + ("`" + ne + "` supplied to `" + Ot + "`, expected a single ReactElement type."));
|
|
38879
38879
|
}
|
|
38880
38880
|
return null;
|
|
@@ -38884,7 +38884,7 @@ function j7() {
|
|
|
38884
38884
|
function Vt(Rt) {
|
|
38885
38885
|
function gt(ht, Ot, Ft, fe, nt) {
|
|
38886
38886
|
if (!(ht[Ot] instanceof Rt)) {
|
|
38887
|
-
var ne = Rt.name || U, xe =
|
|
38887
|
+
var ne = Rt.name || U, xe = wn(ht[Ot]);
|
|
38888
38888
|
return new it("Invalid " + fe + " `" + nt + "` of type " + ("`" + xe + "` supplied to `" + Ft + "`, expected ") + ("instance of `" + ne + "`."));
|
|
38889
38889
|
}
|
|
38890
38890
|
return null;
|
|
@@ -38900,7 +38900,7 @@ function j7() {
|
|
|
38900
38900
|
for (var ne = ht[Ot], xe = 0; xe < Rt.length; xe++)
|
|
38901
38901
|
if (Q(ne, Rt[xe]))
|
|
38902
38902
|
return null;
|
|
38903
|
-
var le = JSON.stringify(Rt, function(
|
|
38903
|
+
var le = JSON.stringify(Rt, function(Sn, ie) {
|
|
38904
38904
|
var Ze = ze(ie);
|
|
38905
38905
|
return Ze === "symbol" ? String(ie) : ie;
|
|
38906
38906
|
});
|
|
@@ -38912,7 +38912,7 @@ function j7() {
|
|
|
38912
38912
|
function gt(ht, Ot, Ft, fe, nt) {
|
|
38913
38913
|
if (typeof Rt != "function")
|
|
38914
38914
|
return new it("Property `" + nt + "` of component `" + Ft + "` has invalid PropType notation inside objectOf.");
|
|
38915
|
-
var ne = ht[Ot], xe =
|
|
38915
|
+
var ne = ht[Ot], xe = pn(ne);
|
|
38916
38916
|
if (xe !== "object")
|
|
38917
38917
|
return new it("Invalid " + fe + " `" + nt + "` of type " + ("`" + xe + "` supplied to `" + Ft + "`, expected an object."));
|
|
38918
38918
|
for (var le in ne)
|
|
@@ -38932,12 +38932,12 @@ function j7() {
|
|
|
38932
38932
|
var ht = Rt[gt];
|
|
38933
38933
|
if (typeof ht != "function")
|
|
38934
38934
|
return w(
|
|
38935
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
38935
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + hn(ht) + " at index " + gt + "."
|
|
38936
38936
|
), E;
|
|
38937
38937
|
}
|
|
38938
38938
|
function Ot(Ft, fe, nt, ne, xe) {
|
|
38939
38939
|
for (var le = [], Pe = 0; Pe < Rt.length; Pe++) {
|
|
38940
|
-
var
|
|
38940
|
+
var Sn = Rt[Pe], ie = Sn(Ft, fe, nt, ne, xe, p);
|
|
38941
38941
|
if (ie == null)
|
|
38942
38942
|
return null;
|
|
38943
38943
|
ie.data && g(ie.data, "expectedType") && le.push(ie.data.expectedType);
|
|
@@ -38960,16 +38960,16 @@ function j7() {
|
|
|
38960
38960
|
}
|
|
38961
38961
|
function Oe(Rt) {
|
|
38962
38962
|
function gt(ht, Ot, Ft, fe, nt) {
|
|
38963
|
-
var ne = ht[Ot], xe =
|
|
38963
|
+
var ne = ht[Ot], xe = pn(ne);
|
|
38964
38964
|
if (xe !== "object")
|
|
38965
38965
|
return new it("Invalid " + fe + " `" + nt + "` of type `" + xe + "` " + ("supplied to `" + Ft + "`, expected `object`."));
|
|
38966
38966
|
for (var le in Rt) {
|
|
38967
38967
|
var Pe = Rt[le];
|
|
38968
38968
|
if (typeof Pe != "function")
|
|
38969
38969
|
return de(Ft, fe, nt, le, ze(Pe));
|
|
38970
|
-
var
|
|
38971
|
-
if (
|
|
38972
|
-
return
|
|
38970
|
+
var Sn = Pe(ne, le, Ft, fe, nt + "." + le, p);
|
|
38971
|
+
if (Sn)
|
|
38972
|
+
return Sn;
|
|
38973
38973
|
}
|
|
38974
38974
|
return null;
|
|
38975
38975
|
}
|
|
@@ -38977,20 +38977,20 @@ function j7() {
|
|
|
38977
38977
|
}
|
|
38978
38978
|
function jt(Rt) {
|
|
38979
38979
|
function gt(ht, Ot, Ft, fe, nt) {
|
|
38980
|
-
var ne = ht[Ot], xe =
|
|
38980
|
+
var ne = ht[Ot], xe = pn(ne);
|
|
38981
38981
|
if (xe !== "object")
|
|
38982
38982
|
return new it("Invalid " + fe + " `" + nt + "` of type `" + xe + "` " + ("supplied to `" + Ft + "`, expected `object`."));
|
|
38983
38983
|
var le = h({}, ht[Ot], Rt);
|
|
38984
38984
|
for (var Pe in le) {
|
|
38985
|
-
var
|
|
38986
|
-
if (g(Rt, Pe) && typeof
|
|
38987
|
-
return de(Ft, fe, nt, Pe, ze(
|
|
38988
|
-
if (!
|
|
38985
|
+
var Sn = Rt[Pe];
|
|
38986
|
+
if (g(Rt, Pe) && typeof Sn != "function")
|
|
38987
|
+
return de(Ft, fe, nt, Pe, ze(Sn));
|
|
38988
|
+
if (!Sn)
|
|
38989
38989
|
return new it(
|
|
38990
38990
|
"Invalid " + fe + " `" + nt + "` key `" + Pe + "` supplied to `" + Ft + "`.\nBad object: " + JSON.stringify(ht[Ot], null, " ") + `
|
|
38991
38991
|
Valid keys: ` + JSON.stringify(Object.keys(Rt), null, " ")
|
|
38992
38992
|
);
|
|
38993
|
-
var ie =
|
|
38993
|
+
var ie = Sn(ne, Pe, Ft, fe, nt + "." + Pe, p);
|
|
38994
38994
|
if (ie)
|
|
38995
38995
|
return ie;
|
|
38996
38996
|
}
|
|
@@ -39034,14 +39034,14 @@ Valid keys: ` + JSON.stringify(Object.keys(Rt), null, " ")
|
|
|
39034
39034
|
function zn(Rt, gt) {
|
|
39035
39035
|
return Rt === "symbol" ? !0 : gt ? gt["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && gt instanceof Symbol : !1;
|
|
39036
39036
|
}
|
|
39037
|
-
function
|
|
39037
|
+
function pn(Rt) {
|
|
39038
39038
|
var gt = typeof Rt;
|
|
39039
39039
|
return Array.isArray(Rt) ? "array" : Rt instanceof RegExp ? "object" : zn(gt, Rt) ? "symbol" : gt;
|
|
39040
39040
|
}
|
|
39041
39041
|
function ze(Rt) {
|
|
39042
39042
|
if (typeof Rt > "u" || Rt === null)
|
|
39043
39043
|
return "" + Rt;
|
|
39044
|
-
var gt =
|
|
39044
|
+
var gt = pn(Rt);
|
|
39045
39045
|
if (gt === "object") {
|
|
39046
39046
|
if (Rt instanceof Date)
|
|
39047
39047
|
return "date";
|
|
@@ -39050,7 +39050,7 @@ Valid keys: ` + JSON.stringify(Object.keys(Rt), null, " ")
|
|
|
39050
39050
|
}
|
|
39051
39051
|
return gt;
|
|
39052
39052
|
}
|
|
39053
|
-
function
|
|
39053
|
+
function hn(Rt) {
|
|
39054
39054
|
var gt = ze(Rt);
|
|
39055
39055
|
switch (gt) {
|
|
39056
39056
|
case "array":
|
|
@@ -39064,7 +39064,7 @@ Valid keys: ` + JSON.stringify(Object.keys(Rt), null, " ")
|
|
|
39064
39064
|
return gt;
|
|
39065
39065
|
}
|
|
39066
39066
|
}
|
|
39067
|
-
function
|
|
39067
|
+
function wn(Rt) {
|
|
39068
39068
|
return !Rt.constructor || !Rt.constructor.name ? U : Rt.constructor.name;
|
|
39069
39069
|
}
|
|
39070
39070
|
return X.checkPropTypes = v, X.resetWarningCache = v.resetWarningCache, X.PropTypes = X, X;
|
|
@@ -39959,7 +39959,7 @@ const kf = Ln({
|
|
|
39959
39959
|
default: !1
|
|
39960
39960
|
});
|
|
39961
39961
|
function HA({ onBack: d, onStartWayfinding: h, onSetSize: p, snapPointSwiped: g, onStartDirections: v }) {
|
|
39962
|
-
const { t: w } = Qr(), E = si(null), C = si(null), T = si(null), [D, k] = ke(!1), [B, U] = ke(!1), [X, Q] = ke(!1), [it, Tt] = ke(null), Et = me(Ir), ot = me(As), [vt, bt] = d9(ot, T), ct = uu(), Vt = me(bo), Ht = me(Cs), Jt = me(qy), [q, Nt] = ke(), [de, Oe] = ke(), jt = ha("(min-width: 992px)"), _e = me(Of), zn = me(a0), [, ,
|
|
39962
|
+
const { t: w } = Qr(), E = si(null), C = si(null), T = si(null), [D, k] = ke(!1), [B, U] = ke(!1), [X, Q] = ke(!1), [it, Tt] = ke(null), Et = me(Ir), ot = me(As), [vt, bt] = d9(ot, T), ct = uu(), Vt = me(bo), Ht = me(Cs), Jt = me(qy), [q, Nt] = ke(), [de, Oe] = ke(), jt = ha("(min-width: 992px)"), _e = me(Of), zn = me(a0), [, , pn] = ZA(de, q, Jt, _e, zn);
|
|
39963
39963
|
Ie(() => {
|
|
39964
39964
|
k(!1), U(!1), Q(!1), Tt(null), ot && (E.current.location = ot, Tt(Et.getDisplayRule(ot)), Nt(ot)), Ht && Oe(Ht);
|
|
39965
39965
|
}, [ot, Et, Ht]);
|
|
@@ -39967,12 +39967,12 @@ function HA({ onBack: d, onStartWayfinding: h, onSetSize: p, snapPointSwiped: g,
|
|
|
39967
39967
|
typeof p == "function" && p(nt);
|
|
39968
39968
|
}
|
|
39969
39969
|
Ie(() => {
|
|
39970
|
-
g !== void 0 && (k(g === Li.MAX), g === Li.MAX ?
|
|
39970
|
+
g !== void 0 && (k(g === Li.MAX), g === Li.MAX ? wn() : Rt());
|
|
39971
39971
|
}, [g]);
|
|
39972
|
-
function
|
|
39973
|
-
D === !1 ? (ze(Li.MAX),
|
|
39972
|
+
function hn() {
|
|
39973
|
+
D === !1 ? (ze(Li.MAX), wn()) : (ze(Li.FIT), Rt());
|
|
39974
39974
|
}
|
|
39975
|
-
function
|
|
39975
|
+
function wn() {
|
|
39976
39976
|
requestAnimationFrame(() => {
|
|
39977
39977
|
k(!0), gt();
|
|
39978
39978
|
});
|
|
@@ -40014,21 +40014,21 @@ function HA({ onBack: d, onStartWayfinding: h, onSetSize: p, snapPointSwiped: g,
|
|
|
40014
40014
|
] }, nt)) }),
|
|
40015
40015
|
ot.properties.description && !D && /* @__PURE__ */ dt.jsxs("section", { className: "location-details__description", children: [
|
|
40016
40016
|
/* @__PURE__ */ dt.jsx("div", { ref: T, children: ot.properties.description }),
|
|
40017
|
-
(vt || bt) && /* @__PURE__ */ dt.jsx("button", { onClick: () =>
|
|
40017
|
+
(vt || bt) && /* @__PURE__ */ dt.jsx("button", { onClick: () => hn(), children: w("Read full description") })
|
|
40018
40018
|
] }),
|
|
40019
40019
|
ot.properties.description && D && /* @__PURE__ */ dt.jsxs("section", { className: "location-details__description location-details__description--full prevent-scroll", ...ct, children: [
|
|
40020
40020
|
/* @__PURE__ */ dt.jsx("div", { children: ot.properties.description }),
|
|
40021
|
-
bt && /* @__PURE__ */ dt.jsx("button", { onClick: () =>
|
|
40021
|
+
bt && /* @__PURE__ */ dt.jsx("button", { onClick: () => hn(), children: w("Close") })
|
|
40022
40022
|
] })
|
|
40023
40023
|
] }),
|
|
40024
40024
|
Ht && jt ? /* @__PURE__ */ dt.jsx(
|
|
40025
40025
|
"button",
|
|
40026
40026
|
{
|
|
40027
|
-
disabled: !
|
|
40027
|
+
disabled: !pn,
|
|
40028
40028
|
onClick: () => Ft(),
|
|
40029
|
-
className: `location-details__wayfinding ${
|
|
40029
|
+
className: `location-details__wayfinding ${pn ? "" : "location-details--no-route"}`,
|
|
40030
40030
|
style: { background: Vt },
|
|
40031
|
-
children: w(
|
|
40031
|
+
children: w(pn ? "Start directions" : "Directions not available")
|
|
40032
40032
|
}
|
|
40033
40033
|
) : /* @__PURE__ */ dt.jsx(
|
|
40034
40034
|
"button",
|
|
@@ -40213,7 +40213,7 @@ const Xi = {
|
|
|
40213
40213
|
FROM: "FROM"
|
|
40214
40214
|
}, T9 = "data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";
|
|
40215
40215
|
function YA({ onStartDirections: d, onBack: h, directionsToLocation: p, directionsFromLocation: g, onSetSize: v, isActive: w }) {
|
|
40216
|
-
const { t: E } = Qr(), C = si(), T = si(), D = si(), k = si(), B = me(qy), U = me(Mf), X = me(As), Q = me(Zy), it = me(bo), [Tt, Et] = ke(), [, ot] = tn(s0), [vt, bt] = ke(!0), [ct, Vt] = ke(!1), [Ht, Jt] = ke([]), [q, Nt] = ke(), [de, Oe] = ke(), jt = me(a0), _e = uu(), [zn,
|
|
40216
|
+
const { t: E } = Qr(), C = si(), T = si(), D = si(), k = si(), B = me(qy), U = me(Mf), X = me(As), Q = me(Zy), it = me(bo), [Tt, Et] = ke(), [, ot] = tn(s0), [vt, bt] = ke(!0), [ct, Vt] = ke(!1), [Ht, Jt] = ke([]), [q, Nt] = ke(), [de, Oe] = ke(), jt = me(a0), _e = uu(), [zn, pn] = ke(!1), [ze, hn] = tn(Of), [wn, Rt] = ke(!1), gt = me(cu), ht = me(b9), [Ot, Ft, fe] = ZA(de, q, B, ze, jt);
|
|
40217
40217
|
function nt(G) {
|
|
40218
40218
|
return Q === sr.Google && G.properties.type === "google_places" ? g9(G) : Q === sr.Mapbox && G.properties.type === "mapbox_places" ? x9(G, gt) : Promise.resolve(G);
|
|
40219
40219
|
}
|
|
@@ -40222,15 +40222,15 @@ function YA({ onStartDirections: d, onBack: h, directionsToLocation: p, directio
|
|
|
40222
40222
|
Nt(It), D.current.setDisplayText(It.properties.name);
|
|
40223
40223
|
}, () => ot(!1)) : Tt === Xi.FROM && nt(G).then((It) => {
|
|
40224
40224
|
Oe(It), k.current.setDisplayText(It.properties.name);
|
|
40225
|
-
}, () => ot(!1)),
|
|
40225
|
+
}, () => ot(!1)), pn(!1), Vt(!1), Jt([]), Rt(!1);
|
|
40226
40226
|
}
|
|
40227
40227
|
function xe(G, It) {
|
|
40228
40228
|
if (Et(It), ot(!0), G.length === 0)
|
|
40229
|
-
bt(!1),
|
|
40229
|
+
bt(!1), pn(!1), Jt([]);
|
|
40230
40230
|
else {
|
|
40231
40231
|
bt(!0), Jt(G);
|
|
40232
40232
|
const Dt = G.filter((re) => re.properties.type === "google_places").length > 0;
|
|
40233
|
-
|
|
40233
|
+
pn(Dt);
|
|
40234
40234
|
}
|
|
40235
40235
|
}
|
|
40236
40236
|
function le(G) {
|
|
@@ -40238,19 +40238,19 @@ function YA({ onStartDirections: d, onBack: h, directionsToLocation: p, directio
|
|
|
40238
40238
|
}
|
|
40239
40239
|
function Pe() {
|
|
40240
40240
|
const G = yy(U);
|
|
40241
|
-
Tt === Xi.TO ? (D.current.setDisplayText(G.properties.name), Nt(G)) : Tt === Xi.FROM && (k.current.setDisplayText(G.properties.name), Oe(G)), Jt([]), ot(!0), bt(!0),
|
|
40241
|
+
Tt === Xi.TO ? (D.current.setDisplayText(G.properties.name), Nt(G)) : Tt === Xi.FROM && (k.current.setDisplayText(G.properties.name), Oe(G)), Jt([]), ot(!0), bt(!0), pn(!1), Vt(!1), Rt(!1);
|
|
40242
40242
|
}
|
|
40243
|
-
function
|
|
40243
|
+
function Sn(G) {
|
|
40244
40244
|
(de == null ? void 0 : de.id) === "USER_POSITION" && G === Xi.TO || (q == null ? void 0 : q.id) === "USER_POSITION" && G === Xi.FROM ? Rt(!1) : Rt(!0);
|
|
40245
40245
|
}
|
|
40246
40246
|
function ie(G) {
|
|
40247
|
-
|
|
40247
|
+
Sn(G);
|
|
40248
40248
|
}
|
|
40249
40249
|
function Ze(G) {
|
|
40250
|
-
Et(G), Lt(G), ot(!0),
|
|
40250
|
+
Et(G), Lt(G), ot(!0), pn(!1), Sn(G);
|
|
40251
40251
|
}
|
|
40252
40252
|
function ei(G) {
|
|
40253
|
-
Rt(!0), Et(G), gi(G), Jt([]), ot(!0),
|
|
40253
|
+
Rt(!0), Et(G), gi(G), Jt([]), ot(!0), pn(!1), bt(!0);
|
|
40254
40254
|
}
|
|
40255
40255
|
function gi(G) {
|
|
40256
40256
|
G === Xi.TO ? Nt() : G === Xi.FROM && Oe();
|
|
@@ -40278,7 +40278,7 @@ function YA({ onStartDirections: d, onBack: h, directionsToLocation: p, directio
|
|
|
40278
40278
|
}
|
|
40279
40279
|
}
|
|
40280
40280
|
}, [w, p, g]), Ie(() => {
|
|
40281
|
-
Q === sr.Mapbox && (
|
|
40281
|
+
Q === sr.Mapbox && (pn(!1), Jt(Ht.filter((G) => G.properties.type !== "google_places")));
|
|
40282
40282
|
}, [Q]), Ie(() => {
|
|
40283
40283
|
X && (Nt(X), D.current.setDisplayText(X.properties.name));
|
|
40284
40284
|
}, [X]), /* @__PURE__ */ dt.jsxs("div", { className: "wayfinding", ref: C, children: [
|
|
@@ -40340,8 +40340,8 @@ function YA({ onStartDirections: d, onBack: h, directionsToLocation: p, directio
|
|
|
40340
40340
|
] })
|
|
40341
40341
|
] }),
|
|
40342
40342
|
!fe && /* @__PURE__ */ dt.jsx("p", { className: "wayfinding__error", children: E("No route found") }),
|
|
40343
|
-
!vt && !
|
|
40344
|
-
U &&
|
|
40343
|
+
!vt && !wn && /* @__PURE__ */ dt.jsx("p", { className: "wayfinding__error", children: E("Nothing was found") }),
|
|
40344
|
+
U && wn && /* @__PURE__ */ dt.jsxs("button", { type: "button", className: "wayfinding__use-current-position", onClick: () => Pe(), children: [
|
|
40345
40345
|
/* @__PURE__ */ dt.jsx(y9, {}),
|
|
40346
40346
|
E("My position")
|
|
40347
40347
|
] }),
|
|
@@ -40359,10 +40359,10 @@ function YA({ onStartDirections: d, onBack: h, directionsToLocation: p, directio
|
|
|
40359
40359
|
),
|
|
40360
40360
|
zn && /* @__PURE__ */ dt.jsx("img", { className: "wayfinding__google", alt: "Powered by Google", src: _9 })
|
|
40361
40361
|
] }) }),
|
|
40362
|
-
!ct && !
|
|
40362
|
+
!ct && !wn && fe && !zn && de && q && /* @__PURE__ */ dt.jsxs("div", { className: "wayfinding__details", ref: T, children: [
|
|
40363
40363
|
/* @__PURE__ */ dt.jsxs("div", { className: "wayfinding__settings", children: [
|
|
40364
40364
|
/* @__PURE__ */ dt.jsx(XA, {}),
|
|
40365
|
-
/* @__PURE__ */ dt.jsx("div", { className: "wayfinding__travel", children: /* @__PURE__ */ dt.jsxs(v9, { selectionChanged: (G) =>
|
|
40365
|
+
/* @__PURE__ */ dt.jsx("div", { className: "wayfinding__travel", children: /* @__PURE__ */ dt.jsxs(v9, { selectionChanged: (G) => hn(G[0].value), children: [
|
|
40366
40366
|
/* @__PURE__ */ dt.jsxs("mi-dropdown-item", { selected: !0, value: ra.WALKING, children: [
|
|
40367
40367
|
/* @__PURE__ */ dt.jsx(CE, {}),
|
|
40368
40368
|
E("Walk")
|
|
@@ -40563,13 +40563,13 @@ function JA({ isOpen: d, onBack: h, onSetSize: p, snapPointSwiped: g, onRouteFin
|
|
|
40563
40563
|
if (C(null), d && X) {
|
|
40564
40564
|
k(X.totalTime);
|
|
40565
40565
|
const ze = Math.min(window.innerHeight, window.innerWidth) * 0.06;
|
|
40566
|
-
Zi == null || Zi.setRoute(null), Zi = null, Promise.all([Ht(ze), Jt(ze)]).then(([
|
|
40566
|
+
Zi == null || Zi.setRoute(null), Zi = null, Promise.all([Ht(ze), Jt(ze)]).then(([hn, wn]) => {
|
|
40567
40567
|
Zi = new window.mapsindoors.directions.DirectionsRenderer({
|
|
40568
40568
|
mapsIndoors: B,
|
|
40569
40569
|
fitBoundsPadding: {
|
|
40570
40570
|
top: ze,
|
|
40571
|
-
bottom:
|
|
40572
|
-
left:
|
|
40571
|
+
bottom: hn,
|
|
40572
|
+
left: wn,
|
|
40573
40573
|
right: ze
|
|
40574
40574
|
}
|
|
40575
40575
|
}), Zi.setRoute(X.directionsResult), Zi.setStepIndex(0), T.current.location = X.destinationLocation, X.destinationLocation.id === "USER_POSITION" ? C(null) : C(B.getDisplayRule(X.destinationLocation));
|
|
@@ -40577,25 +40577,25 @@ function JA({ isOpen: d, onBack: h, onSetSize: p, snapPointSwiped: g, onRouteFin
|
|
|
40577
40577
|
}
|
|
40578
40578
|
}, [d, X, B, U]);
|
|
40579
40579
|
function Ht(ze) {
|
|
40580
|
-
return new Promise((
|
|
40580
|
+
return new Promise((hn) => {
|
|
40581
40581
|
if (ot)
|
|
40582
|
-
Et ? Ky().then((
|
|
40582
|
+
Et ? Ky().then((wn) => hn(wn)) : hn(ze);
|
|
40583
40583
|
else
|
|
40584
|
-
return DA();
|
|
40584
|
+
return DA().then((wn) => hn(wn));
|
|
40585
40585
|
});
|
|
40586
40586
|
}
|
|
40587
40587
|
function Jt(ze) {
|
|
40588
|
-
return new Promise((
|
|
40589
|
-
ot ? Et ?
|
|
40588
|
+
return new Promise((hn) => {
|
|
40589
|
+
ot ? Et ? hn(ze) : Qy().then((wn) => hn(wn)) : hn(ze);
|
|
40590
40590
|
});
|
|
40591
40591
|
}
|
|
40592
40592
|
Ie(() => {
|
|
40593
40593
|
!d && Zi && jt();
|
|
40594
40594
|
}, [d]);
|
|
40595
40595
|
function q() {
|
|
40596
|
-
return X ? X.directionsResult.legs.reduce((ze,
|
|
40597
|
-
for (const
|
|
40598
|
-
const Rt =
|
|
40596
|
+
return X ? X.directionsResult.legs.reduce((ze, hn) => {
|
|
40597
|
+
for (const wn in hn.steps) {
|
|
40598
|
+
const Rt = hn.steps[wn];
|
|
40599
40599
|
ze.push(Rt);
|
|
40600
40600
|
}
|
|
40601
40601
|
return ze;
|
|
@@ -40614,16 +40614,16 @@ function JA({ isOpen: d, onBack: h, onSetSize: p, snapPointSwiped: g, onRouteFin
|
|
|
40614
40614
|
Zi == null || Zi.setRoute(null), Zi = null;
|
|
40615
40615
|
}
|
|
40616
40616
|
function _e() {
|
|
40617
|
-
Q(0), Tt(!1),
|
|
40617
|
+
Q(0), Tt(!1), pn(Li.FIT);
|
|
40618
40618
|
}
|
|
40619
40619
|
function zn() {
|
|
40620
40620
|
_e(), jt(), h();
|
|
40621
40621
|
}
|
|
40622
|
-
function
|
|
40622
|
+
function pn(ze) {
|
|
40623
40623
|
typeof p == "function" && p(ze);
|
|
40624
40624
|
}
|
|
40625
40625
|
return Ie(() => {
|
|
40626
|
-
|
|
40626
|
+
pn(it ? Li.MAX : Li.FIT);
|
|
40627
40627
|
}, [it]), Ie(() => {
|
|
40628
40628
|
d && g && Tt(g === Li.MAX);
|
|
40629
40629
|
}, [d, g]), /* @__PURE__ */ dt.jsxs("div", { className: "directions", style: { display: Vt ? "block" : "grid" }, children: [
|
|
@@ -40686,25 +40686,25 @@ const QA = Ln({
|
|
|
40686
40686
|
});
|
|
40687
40687
|
function tC({ onSetSize: d }) {
|
|
40688
40688
|
const { t: h } = Qr(), p = si(), g = si(), v = si(), [w, E] = ke(!0), [C, T] = ke([]), D = me(Rf), k = me(QA), [B, U] = ke(!1), X = si(), [Q, it] = ke(), Tt = uu(), Et = me(bo), [ot, vt] = ke(), bt = me(Ir), [, ct] = tn(Wy), [, Vt] = tn(As), [, Ht] = tn(o0), [Jt, q] = tn(Pf), Nt = me(hu), de = ha("(min-width: 992px)"), Oe = me(Cs), [jt, _e] = ke(!1), zn = me(WA);
|
|
40689
|
-
function
|
|
40689
|
+
function pn(nt) {
|
|
40690
40690
|
window.mapsindoors.services.LocationsService.getLocations({
|
|
40691
40691
|
categories: nt
|
|
40692
|
-
}).then(
|
|
40692
|
+
}).then(wn);
|
|
40693
40693
|
}
|
|
40694
40694
|
function ze(nt) {
|
|
40695
|
-
it(nt),
|
|
40695
|
+
it(nt), hn(Li.MAX), Q === nt ? (T([]), it(null), ct([]), g.current.getValue() && g.current.triggerSearch()) : g.current.getValue() ? g.current.triggerSearch() : pn(nt);
|
|
40696
40696
|
}
|
|
40697
|
-
function
|
|
40697
|
+
function hn(nt) {
|
|
40698
40698
|
typeof d == "function" && d(nt);
|
|
40699
40699
|
}
|
|
40700
|
-
function
|
|
40700
|
+
function wn(nt) {
|
|
40701
40701
|
T(nt), ct(nt), U(nt.length === 0);
|
|
40702
40702
|
}
|
|
40703
40703
|
function Rt() {
|
|
40704
|
-
T([]), U(!1), Q &&
|
|
40704
|
+
T([]), U(!1), Q && pn(Q), ct([]), v.current !== null && v.current.clearInputField();
|
|
40705
40705
|
}
|
|
40706
40706
|
function gt() {
|
|
40707
|
-
|
|
40707
|
+
hn(Li.MAX), E(!1), g.current.getInputField();
|
|
40708
40708
|
const nt = p.current.closest(".sheet");
|
|
40709
40709
|
nt ? nt.addEventListener("transitionend", () => {
|
|
40710
40710
|
g.current.focusInput();
|
|
@@ -40760,7 +40760,7 @@ function tC({ onSetSize: d }) {
|
|
|
40760
40760
|
ref: g,
|
|
40761
40761
|
mapsindoors: !0,
|
|
40762
40762
|
placeholder: h("Search by name, category, building..."),
|
|
40763
|
-
results: (nt) =>
|
|
40763
|
+
results: (nt) => wn(nt),
|
|
40764
40764
|
clicked: () => gt(),
|
|
40765
40765
|
cleared: () => Rt(),
|
|
40766
40766
|
category: Q,
|
|
@@ -42591,7 +42591,7 @@ const RU = Ln({
|
|
|
42591
42591
|
});
|
|
42592
42592
|
A8();
|
|
42593
42593
|
function PU({ apiKey: d, gmApiKey: h, mapboxAccessToken: p, venue: g, locationId: v, primaryColor: w, logo: E, appUserRoles: C, directionsFrom: T, directionsTo: D, externalIDs: k, tileStyle: B, startZoomLevel: U, bearing: X, pitch: Q, gmMapId: it, useMapProviderModule: Tt, kioskOriginLocationId: Et, language: ot, supportsUrlParameters: vt, useKeyboard: bt, timeout: ct }) {
|
|
42594
|
-
const [, Vt] = tn(Hy), [, Ht] = tn(Cf), [, Jt] = tn(cu), [q, Nt] = tn(t0), [de, Oe] = tn(Jy), [, jt] = tn(LA), [_e, zn] = tn(As), [
|
|
42594
|
+
const [, Vt] = tn(Hy), [, Ht] = tn(Cf), [, Jt] = tn(cu), [q, Nt] = tn(t0), [de, Oe] = tn(Jy), [, jt] = tn(LA), [_e, zn] = tn(As), [pn, ze] = tn(Rf), [, hn] = tn(Lf), [, wn] = tn(bo), [, Rt] = tn(n0), [, gt] = tn(wA), ht = me(Ir), [Ot, Ft] = tn(hu), [, fe] = tn(Cs), [, nt] = tn(RA), [, ne] = tn(kA), xe = OA(), [, le] = tn(RU), [, Pe] = tn(QA), [Sn, ie] = ke(!0), [Ze, ei] = ke(!0), gi = RE(T), Lt = RE(D), [V, Z] = ke(!1), [, G] = tn(If), [It, Dt] = tn(Wy), [re, ve] = ke(), [kt, Te] = ke(), [, Le] = tn(Xy), [, Re] = tn(EA), [, Nn] = tn(PA), [, Xn] = tn(au), [, _i] = tn(lu), Hn = ha("(min-width: 992px)"), Jn = ha("(max-width: 991px)"), Gn = B9(), Ai = e0(), [St, mt, Kt, Se, ce, Ee] = z9(), Be = si(), [Ce, at] = ke(!1), xt = me(zf), [Mt, Bt] = ke(0);
|
|
42595
42595
|
function zt() {
|
|
42596
42596
|
return new Promise((Qt) => {
|
|
42597
42597
|
if (window.mapsindoors !== void 0)
|
|
@@ -42612,7 +42612,7 @@ function PU({ apiKey: d, gmApiKey: h, mapboxAccessToken: p, venue: g, locationId
|
|
|
42612
42612
|
if (Ce) {
|
|
42613
42613
|
const Qt = ot || navigator.language;
|
|
42614
42614
|
window.mapsindoors.MapsIndoors.setLanguage(Qt), window.mapsindoors.services.LocationsService.once("update_completed", () => {
|
|
42615
|
-
|
|
42615
|
+
pn.length > 0 && Wt(g), de.length > 0 && window.mapsindoors.services.VenuesService.getVenues().then((Ne) => {
|
|
42616
42616
|
Ne = Ne.map((pe) => (pe.image = kt.venueImages[pe.name.toLowerCase()], pe)), Oe(Ne);
|
|
42617
42617
|
}), _e && window.mapsindoors.services.LocationsService.getLocation(_e.id).then((Ne) => zn(Ne));
|
|
42618
42618
|
}), Ot ? tr.changeLanguage(Qt) : d7(Qt), Ft(Qt);
|
|
@@ -42643,7 +42643,7 @@ function PU({ apiKey: d, gmApiKey: h, mapboxAccessToken: p, venue: g, locationId
|
|
|
42643
42643
|
G(Qt);
|
|
42644
42644
|
}) : G([]));
|
|
42645
42645
|
}, [k, Ce]), Ie(() => {
|
|
42646
|
-
Ce && (
|
|
42646
|
+
Ce && (hn(v), v && window.mapsindoors.services.LocationsService.getLocation(v).then((Qt) => {
|
|
42647
42647
|
Qt && (Ai(Qt.properties.venueId), zn(Qt));
|
|
42648
42648
|
}));
|
|
42649
42649
|
}, [v, Ce, Mt]), Ie(() => {
|
|
@@ -42655,7 +42655,7 @@ function PU({ apiKey: d, gmApiKey: h, mapboxAccessToken: p, venue: g, locationId
|
|
|
42655
42655
|
}, [g]), Ie(() => {
|
|
42656
42656
|
Re(B);
|
|
42657
42657
|
}, [B]), Ie(() => {
|
|
42658
|
-
|
|
42658
|
+
wn(w);
|
|
42659
42659
|
}, [w]), Ie(() => {
|
|
42660
42660
|
Nn(U);
|
|
42661
42661
|
}, [U]), Ie(() => {
|
|
@@ -42710,7 +42710,7 @@ function PU({ apiKey: d, gmApiKey: h, mapboxAccessToken: p, venue: g, locationId
|
|
|
42710
42710
|
return /* @__PURE__ */ dt.jsxs("div", { className: `mapsindoors-map ${Be.current ? "mapsindoors-map--hide-elements" : "mapsindoors-map--show-elements"} ${Ze ? "mapsindoors-map--show-my-position" : "mapsindoors-map--hide-my-position"}`, children: [
|
|
42711
42711
|
/* @__PURE__ */ dt.jsx(F9, {}),
|
|
42712
42712
|
!q && /* @__PURE__ */ dt.jsx(B7, {}),
|
|
42713
|
-
de.length > 1 &&
|
|
42713
|
+
de.length > 1 && Sn && /* @__PURE__ */ dt.jsx(
|
|
42714
42714
|
e9,
|
|
42715
42715
|
{
|
|
42716
42716
|
onOpen: () => St(ce.VENUE_SELECTOR),
|
|
@@ -42759,8 +42759,8 @@ function BU(d) {
|
|
|
42759
42759
|
return Ie(() => {
|
|
42760
42760
|
var de, Oe;
|
|
42761
42761
|
const g = window.location.search, v = new URLSearchParams(g), w = {
|
|
42762
|
-
apiKey: "
|
|
42763
|
-
venue: "
|
|
42762
|
+
apiKey: "mapspeople3d",
|
|
42763
|
+
venue: "AUSTIN",
|
|
42764
42764
|
logo: "https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg",
|
|
42765
42765
|
primaryColor: "#005655",
|
|
42766
42766
|
// --brand-colors-dark-pine-100 from MIDT
|