@reearth/core 0.0.7-alpha.45 → 0.0.7-alpha.46

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/dist/core.js CHANGED
@@ -77,16 +77,16 @@ function requireReactJsxRuntime_development() {
77
77
  var Pe = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
78
78
  function se(al) {
79
79
  {
80
- for (var nf = arguments.length, lf = new Array(nf > 1 ? nf - 1 : 0), bf = 1; bf < nf; bf++)
81
- lf[bf - 1] = arguments[bf];
82
- mt("error", al, lf);
80
+ for (var nf = arguments.length, uf = new Array(nf > 1 ? nf - 1 : 0), bf = 1; bf < nf; bf++)
81
+ uf[bf - 1] = arguments[bf];
82
+ mt("error", al, uf);
83
83
  }
84
84
  }
85
- function mt(al, nf, lf) {
85
+ function mt(al, nf, uf) {
86
86
  {
87
- var bf = Pe.ReactDebugCurrentFrame, Lf = bf.getStackAddendum();
88
- Lf !== "" && (nf += "%s", lf = lf.concat([Lf]));
89
- var Ff = lf.map(function(If) {
87
+ var bf = Pe.ReactDebugCurrentFrame, Of = bf.getStackAddendum();
88
+ Of !== "" && (nf += "%s", uf = uf.concat([Of]));
89
+ var Ff = uf.map(function(If) {
90
90
  return String(If);
91
91
  });
92
92
  Ff.unshift("Warning: " + nf), Function.prototype.apply.call(console[al], console, Ff);
@@ -101,12 +101,12 @@ function requireReactJsxRuntime_development() {
101
101
  // with.
102
102
  al.$$typeof === fa || al.getModuleId !== void 0));
103
103
  }
104
- function Ra(al, nf, lf) {
104
+ function Ra(al, nf, uf) {
105
105
  var bf = al.displayName;
106
106
  if (bf)
107
107
  return bf;
108
- var Lf = nf.displayName || nf.name || "";
109
- return Lf !== "" ? lf + "(" + Lf + ")" : lf;
108
+ var Of = nf.displayName || nf.name || "";
109
+ return Of !== "" ? uf + "(" + Of + ")" : uf;
110
110
  }
111
111
  function ma(al) {
112
112
  return al.displayName || "Context";
@@ -138,15 +138,15 @@ function requireReactJsxRuntime_development() {
138
138
  var nf = al;
139
139
  return ma(nf) + ".Consumer";
140
140
  case h:
141
- var lf = al;
142
- return ma(lf._context) + ".Provider";
141
+ var uf = al;
142
+ return ma(uf._context) + ".Provider";
143
143
  case y:
144
144
  return Ra(al, al.render, "ForwardRef");
145
145
  case L:
146
146
  var bf = al.displayName || null;
147
147
  return bf !== null ? bf : yt(al.type) || "Memo";
148
148
  case F: {
149
- var Lf = al, Ff = Lf._payload, If = Lf._init;
149
+ var Of = al, Ff = Of._payload, If = Of._init;
150
150
  try {
151
151
  return yt(If(Ff));
152
152
  } catch {
@@ -156,14 +156,14 @@ function requireReactJsxRuntime_development() {
156
156
  }
157
157
  return null;
158
158
  }
159
- var lt = Object.assign, pi = 0, ba, Sc, ms, Xs, yu, Nl, pu;
159
+ var lt = Object.assign, pi = 0, ba, Sc, Xs, ms, yu, Nl, pu;
160
160
  function Ru() {
161
161
  }
162
162
  Ru.__reactDisabledLog = !0;
163
163
  function Vd() {
164
164
  {
165
165
  if (pi === 0) {
166
- ba = console.log, Sc = console.info, ms = console.warn, Xs = console.error, yu = console.group, Nl = console.groupCollapsed, pu = console.groupEnd;
166
+ ba = console.log, Sc = console.info, Xs = console.warn, ms = console.error, yu = console.group, Nl = console.groupCollapsed, pu = console.groupEnd;
167
167
  var al = {
168
168
  configurable: !0,
169
169
  enumerable: !0,
@@ -199,10 +199,10 @@ function requireReactJsxRuntime_development() {
199
199
  value: Sc
200
200
  }),
201
201
  warn: lt({}, al, {
202
- value: ms
202
+ value: Xs
203
203
  }),
204
204
  error: lt({}, al, {
205
- value: Xs
205
+ value: ms
206
206
  }),
207
207
  group: lt({}, al, {
208
208
  value: yu
@@ -218,14 +218,14 @@ function requireReactJsxRuntime_development() {
218
218
  pi < 0 && se("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
219
219
  }
220
220
  }
221
- var uf = Pe.ReactCurrentDispatcher, hf;
222
- function mf(al, nf, lf) {
221
+ var lf = Pe.ReactCurrentDispatcher, hf;
222
+ function mf(al, nf, uf) {
223
223
  {
224
224
  if (hf === void 0)
225
225
  try {
226
226
  throw Error();
227
- } catch (Lf) {
228
- var bf = Lf.stack.trim().match(/\n( *(at )?)/);
227
+ } catch (Of) {
228
+ var bf = Of.stack.trim().match(/\n( *(at )?)/);
229
229
  hf = bf && bf[1] || "";
230
230
  }
231
231
  return `
@@ -241,16 +241,16 @@ function requireReactJsxRuntime_development() {
241
241
  if (!al || pf)
242
242
  return "";
243
243
  {
244
- var lf = sf.get(al);
245
- if (lf !== void 0)
246
- return lf;
244
+ var uf = sf.get(al);
245
+ if (uf !== void 0)
246
+ return uf;
247
247
  }
248
248
  var bf;
249
249
  pf = !0;
250
- var Lf = Error.prepareStackTrace;
250
+ var Of = Error.prepareStackTrace;
251
251
  Error.prepareStackTrace = void 0;
252
252
  var Ff;
253
- Ff = uf.current, uf.current = null, Vd();
253
+ Ff = lf.current, lf.current = null, Vd();
254
254
  try {
255
255
  if (nf) {
256
256
  var If = function() {
@@ -303,19 +303,19 @@ function requireReactJsxRuntime_development() {
303
303
  }
304
304
  }
305
305
  } finally {
306
- pf = !1, uf.current = Ff, Gd(), Error.prepareStackTrace = Lf;
306
+ pf = !1, lf.current = Ff, Gd(), Error.prepareStackTrace = Of;
307
307
  }
308
308
  var bp = al ? al.displayName || al.name : "", cp = bp ? mf(bp) : "";
309
309
  return typeof al == "function" && sf.set(al, cp), cp;
310
310
  }
311
- function vf(al, nf, lf) {
311
+ function vf(al, nf, uf) {
312
312
  return Tf(al, !1);
313
313
  }
314
314
  function Wa(al) {
315
315
  var nf = al.prototype;
316
316
  return !!(nf && nf.isReactComponent);
317
317
  }
318
- function af(al, nf, lf) {
318
+ function af(al, nf, uf) {
319
319
  if (al == null)
320
320
  return "";
321
321
  if (typeof al == "function")
@@ -333,11 +333,11 @@ function requireReactJsxRuntime_development() {
333
333
  case y:
334
334
  return vf(al.render);
335
335
  case L:
336
- return af(al.type, nf, lf);
336
+ return af(al.type, nf, uf);
337
337
  case F: {
338
- var bf = al, Lf = bf._payload, Ff = bf._init;
338
+ var bf = al, Of = bf._payload, Ff = bf._init;
339
339
  try {
340
- return af(Ff(Lf), nf, lf);
340
+ return af(Ff(Of), nf, uf);
341
341
  } catch {
342
342
  }
343
343
  }
@@ -347,12 +347,12 @@ function requireReactJsxRuntime_development() {
347
347
  var Xd = Object.prototype.hasOwnProperty, gd = {}, pd = Pe.ReactDebugCurrentFrame;
348
348
  function Zd(al) {
349
349
  if (al) {
350
- var nf = al._owner, lf = af(al.type, al._source, nf ? nf.type : null);
351
- pd.setExtraStackFrame(lf);
350
+ var nf = al._owner, uf = af(al.type, al._source, nf ? nf.type : null);
351
+ pd.setExtraStackFrame(uf);
352
352
  } else
353
353
  pd.setExtraStackFrame(null);
354
354
  }
355
- function cf(al, nf, lf, bf, Lf) {
355
+ function cf(al, nf, uf, bf, Of) {
356
356
  {
357
357
  var Ff = Function.call.bind(Xd);
358
358
  for (var If in al)
@@ -360,14 +360,14 @@ function requireReactJsxRuntime_development() {
360
360
  var Vf = void 0;
361
361
  try {
362
362
  if (typeof al[If] != "function") {
363
- var Gf = Error((bf || "React class") + ": " + lf + " type `" + If + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof al[If] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
363
+ var Gf = Error((bf || "React class") + ": " + uf + " type `" + If + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof al[If] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
364
364
  throw Gf.name = "Invariant Violation", Gf;
365
365
  }
366
- Vf = al[If](nf, If, bf, lf, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
366
+ Vf = al[If](nf, If, bf, uf, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
367
367
  } catch (Df) {
368
368
  Vf = Df;
369
369
  }
370
- Vf && !(Vf instanceof Error) && (Zd(Lf), se("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", bf || "React class", lf, If, typeof Vf), Zd(null)), Vf instanceof Error && !(Vf.message in gd) && (gd[Vf.message] = !0, Zd(Lf), se("Failed %s type: %s", lf, Vf.message), Zd(null));
370
+ Vf && !(Vf instanceof Error) && (Zd(Of), se("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", bf || "React class", uf, If, typeof Vf), Zd(null)), Vf instanceof Error && !(Vf.message in gd) && (gd[Vf.message] = !0, Zd(Of), se("Failed %s type: %s", uf, Vf.message), Zd(null));
371
371
  }
372
372
  }
373
373
  }
@@ -377,8 +377,8 @@ function requireReactJsxRuntime_development() {
377
377
  }
378
378
  function df(al) {
379
379
  {
380
- var nf = typeof Symbol == "function" && Symbol.toStringTag, lf = nf && al[Symbol.toStringTag] || al.constructor.name || "Object";
381
- return lf;
380
+ var nf = typeof Symbol == "function" && Symbol.toStringTag, uf = nf && al[Symbol.toStringTag] || al.constructor.name || "Object";
381
+ return uf;
382
382
  }
383
383
  }
384
384
  function Cf(al) {
@@ -422,34 +422,34 @@ function requireReactJsxRuntime_development() {
422
422
  }
423
423
  function jf(al, nf) {
424
424
  {
425
- var lf = function() {
425
+ var uf = function() {
426
426
  $f || ($f = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", nf));
427
427
  };
428
- lf.isReactWarning = !0, Object.defineProperty(al, "key", {
429
- get: lf,
428
+ uf.isReactWarning = !0, Object.defineProperty(al, "key", {
429
+ get: uf,
430
430
  configurable: !0
431
431
  });
432
432
  }
433
433
  }
434
434
  function rp(al, nf) {
435
435
  {
436
- var lf = function() {
436
+ var uf = function() {
437
437
  xf || (xf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", nf));
438
438
  };
439
- lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
440
- get: lf,
439
+ uf.isReactWarning = !0, Object.defineProperty(al, "ref", {
440
+ get: uf,
441
441
  configurable: !0
442
442
  });
443
443
  }
444
444
  }
445
- var tp = function(al, nf, lf, bf, Lf, Ff, If) {
445
+ var tp = function(al, nf, uf, bf, Of, Ff, If) {
446
446
  var Vf = {
447
447
  // This tag allows us to uniquely identify this as a React Element
448
448
  $$typeof: n,
449
449
  // Built-in properties that belong on the element
450
450
  type: al,
451
451
  key: nf,
452
- ref: lf,
452
+ ref: uf,
453
453
  props: If,
454
454
  // Record the component responsible for creating this element.
455
455
  _owner: Ff
@@ -468,13 +468,13 @@ function requireReactJsxRuntime_development() {
468
468
  configurable: !1,
469
469
  enumerable: !1,
470
470
  writable: !1,
471
- value: Lf
471
+ value: Of
472
472
  }), Object.freeze && (Object.freeze(Vf.props), Object.freeze(Vf)), Vf;
473
473
  };
474
- function np(al, nf, lf, bf, Lf) {
474
+ function np(al, nf, uf, bf, Of) {
475
475
  {
476
476
  var Ff, If = {}, Vf = null, Gf = null;
477
- lf !== void 0 && (_f(lf), Vf = "" + lf), Yf(nf) && (_f(nf.key), Vf = "" + nf.key), wf(nf) && (Gf = nf.ref, Nf(nf, Lf));
477
+ uf !== void 0 && (_f(uf), Vf = "" + uf), Yf(nf) && (_f(nf.key), Vf = "" + nf.key), wf(nf) && (Gf = nf.ref, Nf(nf, Of));
478
478
  for (Ff in nf)
479
479
  Xd.call(nf, Ff) && !Af.hasOwnProperty(Ff) && (If[Ff] = nf[Ff]);
480
480
  if (al && al.defaultProps) {
@@ -486,16 +486,16 @@ function requireReactJsxRuntime_development() {
486
486
  var Zf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
487
487
  Vf && jf(If, Zf), Gf && rp(If, Zf);
488
488
  }
489
- return tp(al, Vf, Gf, Lf, bf, Pf.current, If);
489
+ return tp(al, Vf, Gf, Of, bf, Pf.current, If);
490
490
  }
491
491
  }
492
- var Sf = Pe.ReactCurrentOwner, Of = Pe.ReactDebugCurrentFrame;
492
+ var Sf = Pe.ReactCurrentOwner, Lf = Pe.ReactDebugCurrentFrame;
493
493
  function kf(al) {
494
494
  if (al) {
495
- var nf = al._owner, lf = af(al.type, al._source, nf ? nf.type : null);
496
- Of.setExtraStackFrame(lf);
495
+ var nf = al._owner, uf = af(al.type, al._source, nf ? nf.type : null);
496
+ Lf.setExtraStackFrame(uf);
497
497
  } else
498
- Of.setExtraStackFrame(null);
498
+ Lf.setExtraStackFrame(null);
499
499
  }
500
500
  var Bf;
501
501
  Bf = !1;
@@ -522,10 +522,10 @@ Check the render method of \`` + al + "`.";
522
522
  {
523
523
  var nf = ep();
524
524
  if (!nf) {
525
- var lf = typeof al == "string" ? al : al.displayName || al.name;
526
- lf && (nf = `
525
+ var uf = typeof al == "string" ? al : al.displayName || al.name;
526
+ uf && (nf = `
527
527
 
528
- Check the top-level render call using <` + lf + ">.");
528
+ Check the top-level render call using <` + uf + ">.");
529
529
  }
530
530
  return nf;
531
531
  }
@@ -535,12 +535,12 @@ Check the top-level render call using <` + lf + ">.");
535
535
  if (!al._store || al._store.validated || al.key != null)
536
536
  return;
537
537
  al._store.validated = !0;
538
- var lf = tf(nf);
539
- if (Ef[lf])
538
+ var uf = tf(nf);
539
+ if (Ef[uf])
540
540
  return;
541
- Ef[lf] = !0;
541
+ Ef[uf] = !0;
542
542
  var bf = "";
543
- al && al._owner && al._owner !== Sf.current && (bf = " It was passed a child from " + yt(al._owner.type) + "."), kf(al), se('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', lf, bf), kf(null);
543
+ al && al._owner && al._owner !== Sf.current && (bf = " It was passed a child from " + yt(al._owner.type) + "."), kf(al), se('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', uf, bf), kf(null);
544
544
  }
545
545
  }
546
546
  function Mf(al, nf) {
@@ -548,16 +548,16 @@ Check the top-level render call using <` + lf + ">.");
548
548
  if (typeof al != "object")
549
549
  return;
550
550
  if (rf(al))
551
- for (var lf = 0; lf < al.length; lf++) {
552
- var bf = al[lf];
551
+ for (var uf = 0; uf < al.length; uf++) {
552
+ var bf = al[uf];
553
553
  Qf(bf) && gf(bf, nf);
554
554
  }
555
555
  else if (Qf(al))
556
556
  al._store && (al._store.validated = !0);
557
557
  else if (al) {
558
- var Lf = nt(al);
559
- if (typeof Lf == "function" && Lf !== al.entries)
560
- for (var Ff = Lf.call(al), If; !(If = Ff.next()).done; )
558
+ var Of = nt(al);
559
+ if (typeof Of == "function" && Of !== al.entries)
560
+ for (var Ff = Of.call(al), If; !(If = Ff.next()).done; )
561
561
  Qf(If.value) && gf(If.value, nf);
562
562
  }
563
563
  }
@@ -567,30 +567,30 @@ Check the top-level render call using <` + lf + ">.");
567
567
  var nf = al.type;
568
568
  if (nf == null || typeof nf == "string")
569
569
  return;
570
- var lf;
570
+ var uf;
571
571
  if (typeof nf == "function")
572
- lf = nf.propTypes;
572
+ uf = nf.propTypes;
573
573
  else if (typeof nf == "object" && (nf.$$typeof === y || // Note: Memo only checks outer props here.
574
574
  // Inner props are checked in the reconciler.
575
575
  nf.$$typeof === L))
576
- lf = nf.propTypes;
576
+ uf = nf.propTypes;
577
577
  else
578
578
  return;
579
- if (lf) {
579
+ if (uf) {
580
580
  var bf = yt(nf);
581
- cf(lf, al.props, "prop", bf, al);
581
+ cf(uf, al.props, "prop", bf, al);
582
582
  } else if (nf.PropTypes !== void 0 && !Bf) {
583
583
  Bf = !0;
584
- var Lf = yt(nf);
585
- se("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Lf || "Unknown");
584
+ var Of = yt(nf);
585
+ se("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Of || "Unknown");
586
586
  }
587
587
  typeof nf.getDefaultProps == "function" && !nf.getDefaultProps.isReactClassApproved && se("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
588
588
  }
589
589
  }
590
590
  function Xf(al) {
591
591
  {
592
- for (var nf = Object.keys(al.props), lf = 0; lf < nf.length; lf++) {
593
- var bf = nf[lf];
592
+ for (var nf = Object.keys(al.props), uf = 0; uf < nf.length; uf++) {
593
+ var bf = nf[uf];
594
594
  if (bf !== "children" && bf !== "key") {
595
595
  kf(al), se("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", bf), kf(null);
596
596
  break;
@@ -599,7 +599,7 @@ Check the top-level render call using <` + lf + ">.");
599
599
  al.ref !== null && (kf(al), se("Invalid attribute `ref` supplied to `React.Fragment`."), kf(null));
600
600
  }
601
601
  }
602
- function qf(al, nf, lf, bf, Lf, Ff) {
602
+ function qf(al, nf, uf, bf, Of, Ff) {
603
603
  {
604
604
  var If = La(al);
605
605
  if (!If) {
@@ -610,7 +610,7 @@ Check the top-level render call using <` + lf + ">.");
610
610
  var Df;
611
611
  al === null ? Df = "null" : rf(al) ? Df = "array" : al !== void 0 && al.$$typeof === n ? (Df = "<" + (yt(al.type) || "Unknown") + " />", Vf = " Did you accidentally export a JSX literal instead of a component?") : Df = typeof al, se("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Df, Vf);
612
612
  }
613
- var Zf = np(al, nf, lf, Lf, Ff);
613
+ var Zf = np(al, nf, uf, Of, Ff);
614
614
  if (Zf == null)
615
615
  return Zf;
616
616
  if (If) {
@@ -629,11 +629,11 @@ Check the top-level render call using <` + lf + ">.");
629
629
  return al === s ? Xf(Zf) : Wf(Zf), Zf;
630
630
  }
631
631
  }
632
- function up(al, nf, lf) {
633
- return qf(al, nf, lf, !0);
632
+ function up(al, nf, uf) {
633
+ return qf(al, nf, uf, !0);
634
634
  }
635
- function dp(al, nf, lf) {
636
- return qf(al, nf, lf, !1);
635
+ function dp(al, nf, uf) {
636
+ return qf(al, nf, uf, !1);
637
637
  }
638
638
  var pp = dp, mp = up;
639
639
  reactJsxRuntime_development.Fragment = s, reactJsxRuntime_development.jsx = pp, reactJsxRuntime_development.jsxs = mp;
@@ -1393,45 +1393,45 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
1393
1393
  t[SUSPENSE_PROMISE].b,
1394
1394
  t[SUSPENSE_PROMISE].o
1395
1395
  ), promiseAbortMap = /* @__PURE__ */ new WeakMap(), hasInitialValue = (t) => "init" in t, READ_ATOM = "r", WRITE_ATOM = "w", COMMIT_ATOM = "c", SUBSCRIBE_ATOM = "s", RESTORE_ATOMS = "h", createStore = (t) => {
1396
- const n = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new WeakMap(), d = (ms, Xs, yu) => {
1397
- let Nl = c.get(Xs);
1398
- Nl || (Nl = /* @__PURE__ */ new Map(), c.set(Xs, Nl)), yu.then(() => {
1399
- Nl.get(ms) === yu && (Nl.delete(ms), Nl.size || c.delete(Xs));
1400
- }), Nl.set(ms, yu);
1401
- }, h = (ms) => {
1402
- const Xs = /* @__PURE__ */ new Set(), yu = c.get(ms);
1403
- return yu && (c.delete(ms), yu.forEach((Nl, pu) => {
1404
- cancelSuspensePromise(Nl), Xs.add(pu);
1405
- })), Xs;
1406
- }, p = /* @__PURE__ */ new WeakMap(), y = (ms) => {
1407
- let Xs = p.get(ms);
1408
- return Xs || (Xs = /* @__PURE__ */ new Map(), p.set(ms, Xs)), Xs;
1409
- }, S = (ms, Xs) => {
1410
- if (ms) {
1411
- const yu = y(ms);
1412
- let Nl = yu.get(Xs);
1413
- return Nl || (Nl = S(ms.p, Xs), Nl && "p" in Nl && isSuspensePromiseAlreadyCancelled(Nl.p) && (Nl = void 0), Nl && yu.set(Xs, Nl)), Nl;
1414
- }
1415
- return n.get(Xs);
1416
- }, P = (ms, Xs, yu) => {
1417
- if (ms)
1418
- y(ms).set(Xs, yu);
1396
+ const n = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new WeakMap(), d = (Xs, ms, yu) => {
1397
+ let Nl = c.get(ms);
1398
+ Nl || (Nl = /* @__PURE__ */ new Map(), c.set(ms, Nl)), yu.then(() => {
1399
+ Nl.get(Xs) === yu && (Nl.delete(Xs), Nl.size || c.delete(ms));
1400
+ }), Nl.set(Xs, yu);
1401
+ }, h = (Xs) => {
1402
+ const ms = /* @__PURE__ */ new Set(), yu = c.get(Xs);
1403
+ return yu && (c.delete(Xs), yu.forEach((Nl, pu) => {
1404
+ cancelSuspensePromise(Nl), ms.add(pu);
1405
+ })), ms;
1406
+ }, p = /* @__PURE__ */ new WeakMap(), y = (Xs) => {
1407
+ let ms = p.get(Xs);
1408
+ return ms || (ms = /* @__PURE__ */ new Map(), p.set(Xs, ms)), ms;
1409
+ }, S = (Xs, ms) => {
1410
+ if (Xs) {
1411
+ const yu = y(Xs);
1412
+ let Nl = yu.get(ms);
1413
+ return Nl || (Nl = S(Xs.p, ms), Nl && "p" in Nl && isSuspensePromiseAlreadyCancelled(Nl.p) && (Nl = void 0), Nl && yu.set(ms, Nl)), Nl;
1414
+ }
1415
+ return n.get(ms);
1416
+ }, P = (Xs, ms, yu) => {
1417
+ if (Xs)
1418
+ y(Xs).set(ms, yu);
1419
1419
  else {
1420
- const Nl = n.get(Xs);
1421
- n.set(Xs, yu), s.has(Xs) || s.set(Xs, Nl);
1420
+ const Nl = n.get(ms);
1421
+ n.set(ms, yu), s.has(ms) || s.set(ms, Nl);
1422
1422
  }
1423
- }, L = (ms, Xs = /* @__PURE__ */ new Map(), yu) => {
1423
+ }, L = (Xs, ms = /* @__PURE__ */ new Map(), yu) => {
1424
1424
  if (!yu)
1425
- return Xs;
1425
+ return ms;
1426
1426
  const Nl = /* @__PURE__ */ new Map();
1427
1427
  let pu = !1;
1428
1428
  return yu.forEach((Ru) => {
1429
1429
  var Vd;
1430
- const Gd = ((Vd = S(ms, Ru)) == null ? void 0 : Vd.r) || 0;
1431
- Nl.set(Ru, Gd), Xs.get(Ru) !== Gd && (pu = !0);
1432
- }), Xs.size === Nl.size && !pu ? Xs : Nl;
1433
- }, F = (ms, Xs, yu, Nl, pu) => {
1434
- const Ru = S(ms, Xs);
1430
+ const Gd = ((Vd = S(Xs, Ru)) == null ? void 0 : Vd.r) || 0;
1431
+ Nl.set(Ru, Gd), ms.get(Ru) !== Gd && (pu = !0);
1432
+ }), ms.size === Nl.size && !pu ? ms : Nl;
1433
+ }, F = (Xs, ms, yu, Nl, pu) => {
1434
+ const Ru = S(Xs, ms);
1435
1435
  if (Ru) {
1436
1436
  if (pu && (!("p" in Ru) || !isEqualSuspensePromise(Ru.p, pu)))
1437
1437
  return Ru;
@@ -1441,14 +1441,14 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
1441
1441
  v: yu,
1442
1442
  r: (Ru == null ? void 0 : Ru.r) || 0,
1443
1443
  y: !0,
1444
- d: L(ms, Ru == null ? void 0 : Ru.d, Nl)
1444
+ d: L(Xs, Ru == null ? void 0 : Ru.d, Nl)
1445
1445
  };
1446
1446
  let Gd = !(Ru != null && Ru.y);
1447
- return !Ru || !("v" in Ru) || !Object.is(Ru.v, yu) ? (Gd = !0, ++Vd.r, Vd.d.has(Xs) && (Vd.d = new Map(Vd.d).set(Xs, Vd.r))) : Vd.d !== Ru.d && (Vd.d.size !== Ru.d.size || !Array.from(Vd.d.keys()).every((uf) => Ru.d.has(uf))) && (Gd = !0, Promise.resolve().then(() => {
1448
- yt(ms);
1449
- })), Ru && !Gd ? Ru : (P(ms, Xs, Vd), Vd);
1450
- }, N = (ms, Xs, yu, Nl, pu) => {
1451
- const Ru = S(ms, Xs);
1447
+ return !Ru || !("v" in Ru) || !Object.is(Ru.v, yu) ? (Gd = !0, ++Vd.r, Vd.d.has(ms) && (Vd.d = new Map(Vd.d).set(ms, Vd.r))) : Vd.d !== Ru.d && (Vd.d.size !== Ru.d.size || !Array.from(Vd.d.keys()).every((lf) => Ru.d.has(lf))) && (Gd = !0, Promise.resolve().then(() => {
1448
+ yt(Xs);
1449
+ })), Ru && !Gd ? Ru : (P(Xs, ms, Vd), Vd);
1450
+ }, N = (Xs, ms, yu, Nl, pu) => {
1451
+ const Ru = S(Xs, ms);
1452
1452
  if (Ru) {
1453
1453
  if (pu && (!("p" in Ru) || !isEqualSuspensePromise(Ru.p, pu)))
1454
1454
  return Ru;
@@ -1458,76 +1458,76 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
1458
1458
  e: yu,
1459
1459
  r: ((Ru == null ? void 0 : Ru.r) || 0) + 1,
1460
1460
  y: !0,
1461
- d: L(ms, Ru == null ? void 0 : Ru.d, Nl)
1461
+ d: L(Xs, Ru == null ? void 0 : Ru.d, Nl)
1462
1462
  };
1463
- return P(ms, Xs, Vd), Vd;
1464
- }, W = (ms, Xs, yu, Nl) => {
1465
- const pu = S(ms, Xs);
1463
+ return P(Xs, ms, Vd), Vd;
1464
+ }, W = (Xs, ms, yu, Nl) => {
1465
+ const pu = S(Xs, ms);
1466
1466
  if (pu && "p" in pu) {
1467
1467
  if (isEqualSuspensePromise(pu.p, yu) && !isSuspensePromiseAlreadyCancelled(pu.p))
1468
1468
  return pu.y ? pu : { ...pu, y: !0 };
1469
1469
  cancelSuspensePromise(pu.p);
1470
1470
  }
1471
- d(ms, Xs, yu);
1471
+ d(Xs, ms, yu);
1472
1472
  const Ru = {
1473
1473
  p: yu,
1474
1474
  r: ((pu == null ? void 0 : pu.r) || 0) + 1,
1475
1475
  y: !0,
1476
- d: L(ms, pu == null ? void 0 : pu.d, Nl)
1476
+ d: L(Xs, pu == null ? void 0 : pu.d, Nl)
1477
1477
  };
1478
- return P(ms, Xs, Ru), Ru;
1479
- }, z = (ms, Xs, yu, Nl) => {
1478
+ return P(Xs, ms, Ru), Ru;
1479
+ }, z = (Xs, ms, yu, Nl) => {
1480
1480
  if (yu instanceof Promise) {
1481
1481
  const pu = createSuspensePromise(
1482
1482
  yu,
1483
1483
  yu.then((Ru) => {
1484
- F(ms, Xs, Ru, Nl, pu);
1484
+ F(Xs, ms, Ru, Nl, pu);
1485
1485
  }).catch((Ru) => {
1486
1486
  if (Ru instanceof Promise)
1487
1487
  return isSuspensePromise(Ru) ? Ru.then(() => {
1488
- Pe(ms, Xs, !0);
1488
+ Pe(Xs, ms, !0);
1489
1489
  }) : Ru;
1490
- N(ms, Xs, Ru, Nl, pu);
1490
+ N(Xs, ms, Ru, Nl, pu);
1491
1491
  })
1492
1492
  );
1493
1493
  return W(
1494
- ms,
1495
1494
  Xs,
1495
+ ms,
1496
1496
  pu,
1497
1497
  Nl
1498
1498
  );
1499
1499
  }
1500
1500
  return F(
1501
- ms,
1502
1501
  Xs,
1502
+ ms,
1503
1503
  yu,
1504
1504
  Nl
1505
1505
  );
1506
- }, nt = (ms, Xs) => {
1507
- const yu = S(ms, Xs);
1506
+ }, nt = (Xs, ms) => {
1507
+ const yu = S(Xs, ms);
1508
1508
  if (yu) {
1509
1509
  const Nl = {
1510
1510
  ...yu,
1511
1511
  y: !1
1512
1512
  };
1513
- P(ms, Xs, Nl);
1513
+ P(Xs, ms, Nl);
1514
1514
  }
1515
- }, Pe = (ms, Xs, yu) => {
1515
+ }, Pe = (Xs, ms, yu) => {
1516
1516
  if (!yu) {
1517
- const pu = S(ms, Xs);
1517
+ const pu = S(Xs, ms);
1518
1518
  if (pu) {
1519
1519
  if (pu.y && "p" in pu && !isSuspensePromiseAlreadyCancelled(pu.p))
1520
1520
  return pu;
1521
1521
  if (pu.d.forEach((Ru, Vd) => {
1522
- if (Vd !== Xs)
1522
+ if (Vd !== ms)
1523
1523
  if (!o.has(Vd))
1524
- Pe(ms, Vd);
1524
+ Pe(Xs, Vd);
1525
1525
  else {
1526
- const Gd = S(ms, Vd);
1527
- Gd && !Gd.y && Pe(ms, Vd);
1526
+ const Gd = S(Xs, Vd);
1527
+ Gd && !Gd.y && Pe(Xs, Vd);
1528
1528
  }
1529
1529
  }), Array.from(pu.d).every(([Ru, Vd]) => {
1530
- const Gd = S(ms, Ru);
1530
+ const Gd = S(Xs, Ru);
1531
1531
  return Gd && !("p" in Gd) && Gd.r === Vd;
1532
1532
  }))
1533
1533
  return pu.y ? pu : { ...pu, y: !0 };
@@ -1535,9 +1535,9 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
1535
1535
  }
1536
1536
  const Nl = /* @__PURE__ */ new Set();
1537
1537
  try {
1538
- const pu = Xs.read((Ru) => {
1538
+ const pu = ms.read((Ru) => {
1539
1539
  Nl.add(Ru);
1540
- const Vd = Ru === Xs ? S(ms, Ru) : Pe(ms, Ru);
1540
+ const Vd = Ru === ms ? S(Xs, Ru) : Pe(Xs, Ru);
1541
1541
  if (Vd) {
1542
1542
  if ("e" in Vd)
1543
1543
  throw Vd.e;
@@ -1549,92 +1549,92 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
1549
1549
  return Ru.init;
1550
1550
  throw new Error("no atom init");
1551
1551
  });
1552
- return z(ms, Xs, pu, Nl);
1552
+ return z(Xs, ms, pu, Nl);
1553
1553
  } catch (pu) {
1554
1554
  if (pu instanceof Promise) {
1555
1555
  const Ru = isSuspensePromise(pu) && isSuspensePromiseAlreadyCancelled(pu) ? copySuspensePromise(pu) : createSuspensePromise(pu, pu);
1556
1556
  return W(
1557
- ms,
1558
1557
  Xs,
1558
+ ms,
1559
1559
  Ru,
1560
1560
  Nl
1561
1561
  );
1562
1562
  }
1563
- return N(ms, Xs, pu, Nl);
1563
+ return N(Xs, ms, pu, Nl);
1564
1564
  }
1565
- }, se = (ms, Xs) => Pe(Xs, ms), mt = (ms, Xs) => {
1566
- let yu = o.get(Xs);
1567
- return yu || (yu = La(ms, Xs)), yu;
1568
- }, kt = (ms, Xs) => !Xs.l.size && (!Xs.t.size || Xs.t.size === 1 && Xs.t.has(ms)), mn = (ms, Xs) => {
1569
- const yu = o.get(Xs);
1570
- yu && kt(Xs, yu) && Ra(ms, Xs);
1571
- }, _i = (ms, Xs) => {
1572
- const yu = o.get(Xs);
1565
+ }, se = (Xs, ms) => Pe(ms, Xs), mt = (Xs, ms) => {
1566
+ let yu = o.get(ms);
1567
+ return yu || (yu = La(Xs, ms)), yu;
1568
+ }, kt = (Xs, ms) => !ms.l.size && (!ms.t.size || ms.t.size === 1 && ms.t.has(Xs)), mn = (Xs, ms) => {
1569
+ const yu = o.get(ms);
1570
+ yu && kt(ms, yu) && Ra(Xs, ms);
1571
+ }, _i = (Xs, ms) => {
1572
+ const yu = o.get(ms);
1573
1573
  yu == null || yu.t.forEach((Nl) => {
1574
- Nl !== Xs && (nt(ms, Nl), _i(ms, Nl));
1574
+ Nl !== ms && (nt(Xs, Nl), _i(Xs, Nl));
1575
1575
  });
1576
- }, zi = (ms, Xs, yu) => {
1576
+ }, zi = (Xs, ms, yu) => {
1577
1577
  let Nl = !0;
1578
- const pu = (Gd, uf) => {
1579
- const hf = Pe(ms, Gd);
1578
+ const pu = (Gd, lf) => {
1579
+ const hf = Pe(Xs, Gd);
1580
1580
  if ("e" in hf)
1581
1581
  throw hf.e;
1582
1582
  if ("p" in hf) {
1583
- if (uf != null && uf.unstable_promise)
1583
+ if (lf != null && lf.unstable_promise)
1584
1584
  return hf.p.then(() => {
1585
- const mf = S(ms, Gd);
1585
+ const mf = S(Xs, Gd);
1586
1586
  return mf && "p" in mf && mf.p === hf.p ? new Promise((pf) => setTimeout(pf)).then(
1587
- () => pu(Gd, uf)
1588
- ) : pu(Gd, uf);
1587
+ () => pu(Gd, lf)
1588
+ ) : pu(Gd, lf);
1589
1589
  });
1590
1590
  throw hf.p;
1591
1591
  }
1592
1592
  if ("v" in hf)
1593
1593
  return hf.v;
1594
1594
  throw new Error("no value found");
1595
- }, Ru = (Gd, uf) => {
1595
+ }, Ru = (Gd, lf) => {
1596
1596
  let hf;
1597
- if (Gd === Xs) {
1597
+ if (Gd === ms) {
1598
1598
  if (!hasInitialValue(Gd))
1599
1599
  throw new Error("atom not writable");
1600
1600
  h(Gd).forEach((yf) => {
1601
- yf !== ms && z(yf, Gd, uf);
1601
+ yf !== Xs && z(yf, Gd, lf);
1602
1602
  });
1603
- const pf = S(ms, Gd), sf = z(ms, Gd, uf);
1604
- pf !== sf && _i(ms, Gd);
1603
+ const pf = S(Xs, Gd), sf = z(Xs, Gd, lf);
1604
+ pf !== sf && _i(Xs, Gd);
1605
1605
  } else
1606
- hf = zi(ms, Gd, uf);
1607
- return Nl || yt(ms), hf;
1608
- }, Vd = Xs.write(pu, Ru, yu);
1606
+ hf = zi(Xs, Gd, lf);
1607
+ return Nl || yt(Xs), hf;
1608
+ }, Vd = ms.write(pu, Ru, yu);
1609
1609
  return Nl = !1, Vd;
1610
- }, Sa = (ms, Xs, yu) => {
1611
- const Nl = zi(yu, ms, Xs);
1610
+ }, Sa = (Xs, ms, yu) => {
1611
+ const Nl = zi(yu, Xs, ms);
1612
1612
  return yt(yu), Nl;
1613
- }, fa = (ms) => !!ms.write, La = (ms, Xs, yu) => {
1613
+ }, fa = (Xs) => !!Xs.write, La = (Xs, ms, yu) => {
1614
1614
  const Nl = {
1615
1615
  t: new Set(yu && [yu]),
1616
1616
  l: /* @__PURE__ */ new Set()
1617
1617
  };
1618
- if (o.set(Xs, Nl), Pe(void 0, Xs).d.forEach((Ru, Vd) => {
1618
+ if (o.set(ms, Nl), Pe(void 0, ms).d.forEach((Ru, Vd) => {
1619
1619
  const Gd = o.get(Vd);
1620
- Gd ? Gd.t.add(Xs) : Vd !== Xs && La(ms, Vd, Xs);
1621
- }), fa(Xs) && Xs.onMount) {
1622
- const Ru = (Gd) => Sa(Xs, Gd, ms), Vd = Xs.onMount(Ru);
1623
- ms = void 0, Vd && (Nl.u = Vd);
1620
+ Gd ? Gd.t.add(ms) : Vd !== ms && La(Xs, Vd, ms);
1621
+ }), fa(ms) && ms.onMount) {
1622
+ const Ru = (Gd) => Sa(ms, Gd, Xs), Vd = ms.onMount(Ru);
1623
+ Xs = void 0, Vd && (Nl.u = Vd);
1624
1624
  }
1625
1625
  return Nl;
1626
- }, Ra = (ms, Xs) => {
1626
+ }, Ra = (Xs, ms) => {
1627
1627
  var yu;
1628
- const Nl = (yu = o.get(Xs)) == null ? void 0 : yu.u;
1629
- Nl && Nl(), o.delete(Xs);
1630
- const pu = S(ms, Xs);
1628
+ const Nl = (yu = o.get(ms)) == null ? void 0 : yu.u;
1629
+ Nl && Nl(), o.delete(ms);
1630
+ const pu = S(Xs, ms);
1631
1631
  pu && ("p" in pu && cancelSuspensePromise(pu.p), pu.d.forEach((Ru, Vd) => {
1632
- if (Vd !== Xs) {
1632
+ if (Vd !== ms) {
1633
1633
  const Gd = o.get(Vd);
1634
- Gd && (Gd.t.delete(Xs), kt(Vd, Gd) && Ra(ms, Vd));
1634
+ Gd && (Gd.t.delete(ms), kt(Vd, Gd) && Ra(Xs, Vd));
1635
1635
  }
1636
1636
  }));
1637
- }, ma = (ms, Xs, yu, Nl) => {
1637
+ }, ma = (Xs, ms, yu, Nl) => {
1638
1638
  const pu = new Set(yu.d.keys());
1639
1639
  Nl == null || Nl.forEach((Ru, Vd) => {
1640
1640
  if (pu.has(Vd)) {
@@ -1642,25 +1642,25 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
1642
1642
  return;
1643
1643
  }
1644
1644
  const Gd = o.get(Vd);
1645
- Gd && (Gd.t.delete(Xs), kt(Vd, Gd) && Ra(ms, Vd));
1645
+ Gd && (Gd.t.delete(ms), kt(Vd, Gd) && Ra(Xs, Vd));
1646
1646
  }), pu.forEach((Ru) => {
1647
1647
  const Vd = o.get(Ru);
1648
- Vd ? Vd.t.add(Xs) : o.has(Xs) && La(ms, Ru, Xs);
1648
+ Vd ? Vd.t.add(ms) : o.has(ms) && La(Xs, Ru, ms);
1649
1649
  });
1650
- }, yt = (ms) => {
1651
- if (ms) {
1652
- y(ms).forEach((yu, Nl) => {
1650
+ }, yt = (Xs) => {
1651
+ if (Xs) {
1652
+ y(Xs).forEach((yu, Nl) => {
1653
1653
  const pu = n.get(Nl);
1654
1654
  if (yu !== pu) {
1655
1655
  const Ru = o.get(Nl);
1656
- Ru == null || Ru.l.forEach((Vd) => Vd(ms));
1656
+ Ru == null || Ru.l.forEach((Vd) => Vd(Xs));
1657
1657
  }
1658
1658
  });
1659
1659
  return;
1660
1660
  }
1661
1661
  for (; s.size; ) {
1662
- const Xs = Array.from(s);
1663
- s.clear(), Xs.forEach(([yu, Nl]) => {
1662
+ const ms = Array.from(s);
1663
+ s.clear(), ms.forEach(([yu, Nl]) => {
1664
1664
  const pu = S(void 0, yu);
1665
1665
  if (pu && pu.d !== (Nl == null ? void 0 : Nl.d) && ma(void 0, yu, pu, Nl == null ? void 0 : Nl.d), Nl && !Nl.y && (pu != null && pu.y))
1666
1666
  return;
@@ -1668,22 +1668,22 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
1668
1668
  Ru == null || Ru.l.forEach((Vd) => Vd());
1669
1669
  });
1670
1670
  }
1671
- }, lt = (ms) => {
1672
- y(ms).forEach((yu, Nl) => {
1671
+ }, lt = (Xs) => {
1672
+ y(Xs).forEach((yu, Nl) => {
1673
1673
  const pu = n.get(Nl);
1674
- (!pu || yu.r > pu.r || yu.y !== pu.y || yu.r === pu.r && yu.d !== pu.d) && (n.set(Nl, yu), yu.d !== (pu == null ? void 0 : pu.d) && ma(ms, Nl, yu, pu == null ? void 0 : pu.d));
1674
+ (!pu || yu.r > pu.r || yu.y !== pu.y || yu.r === pu.r && yu.d !== pu.d) && (n.set(Nl, yu), yu.d !== (pu == null ? void 0 : pu.d) && ma(Xs, Nl, yu, pu == null ? void 0 : pu.d));
1675
1675
  });
1676
- }, pi = (ms, Xs) => {
1677
- Xs && lt(Xs), yt(void 0);
1678
- }, ba = (ms, Xs, yu) => {
1679
- const pu = mt(yu, ms).l;
1680
- return pu.add(Xs), () => {
1681
- pu.delete(Xs), mn(yu, ms);
1676
+ }, pi = (Xs, ms) => {
1677
+ ms && lt(ms), yt(void 0);
1678
+ }, ba = (Xs, ms, yu) => {
1679
+ const pu = mt(yu, Xs).l;
1680
+ return pu.add(ms), () => {
1681
+ pu.delete(ms), mn(yu, Xs);
1682
1682
  };
1683
- }, Sc = (ms, Xs) => {
1684
- for (const [yu, Nl] of ms)
1685
- hasInitialValue(yu) && (z(Xs, yu, Nl), _i(Xs, yu));
1686
- yt(Xs);
1683
+ }, Sc = (Xs, ms) => {
1684
+ for (const [yu, Nl] of Xs)
1685
+ hasInitialValue(yu) && (z(ms, yu, Nl), _i(ms, yu));
1686
+ yt(ms);
1687
1687
  };
1688
1688
  return {
1689
1689
  [READ_ATOM]: se,
@@ -3397,14 +3397,14 @@ function convertLegacyLayerItem(t) {
3397
3397
  geometry: {
3398
3398
  type: "Polygon",
3399
3399
  coordinates: t.property.default.polygon.map(
3400
- (Sc) => Sc.map((ms) => [ms.lng, ms.lat, ms.height])
3400
+ (Sc) => Sc.map((Xs) => [Xs.lng, Xs.lat, Xs.height])
3401
3401
  )
3402
3402
  }
3403
3403
  }
3404
3404
  });
3405
3405
  else if (t.extensionId === "rect") {
3406
3406
  if (n = "polygon", s = ["rect", "height"], (F = (L = t.property) == null ? void 0 : L.default) != null && F.rect) {
3407
- const Sc = (W = (N = t.property) == null ? void 0 : N.default) == null ? void 0 : W.rect, ms = t.property.default.height;
3407
+ const Sc = (W = (N = t.property) == null ? void 0 : N.default) == null ? void 0 : W.rect, Xs = t.property.default.height;
3408
3408
  o = {
3409
3409
  type: "geojson",
3410
3410
  value: {
@@ -3413,11 +3413,11 @@ function convertLegacyLayerItem(t) {
3413
3413
  type: "Polygon",
3414
3414
  coordinates: [
3415
3415
  [
3416
- [Sc.west, Sc.north, ms],
3417
- [Sc.east, Sc.north, ms],
3418
- [Sc.east, Sc.south, ms],
3419
- [Sc.west, Sc.south, ms],
3420
- [Sc.west, Sc.north, ms]
3416
+ [Sc.west, Sc.north, Xs],
3417
+ [Sc.east, Sc.north, Xs],
3418
+ [Sc.east, Sc.south, Xs],
3419
+ [Sc.west, Sc.south, Xs],
3420
+ [Sc.west, Sc.north, Xs]
3421
3421
  ]
3422
3422
  ]
3423
3423
  }
@@ -3505,9 +3505,9 @@ function convertLegacyLayerItem(t) {
3505
3505
  }
3506
3506
  }));
3507
3507
  const c = n && t.property ? Object.fromEntries(
3508
- Object.entries(t.property).flatMap(([Sc, ms]) => {
3509
- if (!(Array.isArray(ms) || Sc === "id" || !ms || typeof ms != "object"))
3510
- return Object.entries(ms).filter(([Xs]) => !(s != null && s.includes(Xs)));
3508
+ Object.entries(t.property).flatMap(([Sc, Xs]) => {
3509
+ if (!(Array.isArray(Xs) || Sc === "id" || !Xs || typeof Xs != "object"))
3510
+ return Object.entries(Xs).filter(([ms]) => !(s != null && s.includes(ms)));
3511
3511
  }).filter((Sc) => !!Sc)
3512
3512
  ) : void 0;
3513
3513
  return omitBy(
@@ -8451,17 +8451,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
8451
8451
  return nt;
8452
8452
  }
8453
8453
  function h(N, W, z, nt, Pe, se) {
8454
- var mt, kt, mn = N.file, _i = N.compression, zi = se !== S.utf8encode, Sa = p.transformTo("string", se(mn.name)), fa = p.transformTo("string", S.utf8encode(mn.name)), La = mn.comment, Ra = p.transformTo("string", se(La)), ma = p.transformTo("string", S.utf8encode(La)), yt = fa.length !== mn.name.length, lt = ma.length !== La.length, pi = "", ba = "", Sc = "", ms = mn.dir, Xs = mn.date, yu = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
8454
+ var mt, kt, mn = N.file, _i = N.compression, zi = se !== S.utf8encode, Sa = p.transformTo("string", se(mn.name)), fa = p.transformTo("string", S.utf8encode(mn.name)), La = mn.comment, Ra = p.transformTo("string", se(La)), ma = p.transformTo("string", S.utf8encode(La)), yt = fa.length !== mn.name.length, lt = ma.length !== La.length, pi = "", ba = "", Sc = "", Xs = mn.dir, ms = mn.date, yu = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
8455
8455
  W && !z || (yu.crc32 = N.crc32, yu.compressedSize = N.compressedSize, yu.uncompressedSize = N.uncompressedSize);
8456
8456
  var Nl = 0;
8457
8457
  W && (Nl |= 8), zi || !yt && !lt || (Nl |= 2048);
8458
8458
  var pu = 0, Ru = 0;
8459
- ms && (pu |= 16), Pe === "UNIX" ? (Ru = 798, pu |= function(Gd, uf) {
8459
+ Xs && (pu |= 16), Pe === "UNIX" ? (Ru = 798, pu |= function(Gd, lf) {
8460
8460
  var hf = Gd;
8461
- return Gd || (hf = uf ? 16893 : 33204), (65535 & hf) << 16;
8462
- }(mn.unixPermissions, ms)) : (Ru = 20, pu |= function(Gd) {
8461
+ return Gd || (hf = lf ? 16893 : 33204), (65535 & hf) << 16;
8462
+ }(mn.unixPermissions, Xs)) : (Ru = 20, pu |= function(Gd) {
8463
8463
  return 63 & (Gd || 0);
8464
- }(mn.dosPermissions)), mt = Xs.getUTCHours(), mt <<= 6, mt |= Xs.getUTCMinutes(), mt <<= 5, mt |= Xs.getUTCSeconds() / 2, kt = Xs.getUTCFullYear() - 1980, kt <<= 4, kt |= Xs.getUTCMonth() + 1, kt <<= 5, kt |= Xs.getUTCDate(), yt && (ba = d(1, 1) + d(P(Sa), 4) + fa, pi += "up" + d(ba.length, 2) + ba), lt && (Sc = d(1, 1) + d(P(Ra), 4) + ma, pi += "uc" + d(Sc.length, 2) + Sc);
8464
+ }(mn.dosPermissions)), mt = ms.getUTCHours(), mt <<= 6, mt |= ms.getUTCMinutes(), mt <<= 5, mt |= ms.getUTCSeconds() / 2, kt = ms.getUTCFullYear() - 1980, kt <<= 4, kt |= ms.getUTCMonth() + 1, kt <<= 5, kt |= ms.getUTCDate(), yt && (ba = d(1, 1) + d(P(Sa), 4) + fa, pi += "up" + d(ba.length, 2) + ba), lt && (Sc = d(1, 1) + d(P(Ra), 4) + ma, pi += "uc" + d(Sc.length, 2) + Sc);
8465
8465
  var Vd = "";
8466
8466
  return Vd += `
8467
8467
  \0`, Vd += d(Nl, 2), Vd += _i.magic, Vd += d(mt, 2), Vd += d(kt, 2), Vd += d(yu.crc32, 4), Vd += d(yu.compressedSize, 4), Vd += d(yu.uncompressedSize, 4), Vd += d(Sa.length, 2), Vd += d(pi.length, 2), { fileRecord: L.LOCAL_FILE_HEADER + Vd + Sa + pi, dirRecord: L.CENTRAL_FILE_HEADER + d(Ru, 2) + Vd + d(Ra.length, 2) + "\0\0\0\0" + d(pu, 4) + d(nt, 4) + Sa + pi + Ra };
@@ -9827,10 +9827,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9827
9827
  };
9828
9828
  }, {}], 46: [function(o, s, c) {
9829
9829
  var d, h = o("../utils/common"), p = o("./trees"), y = o("./adler32"), S = o("./crc32"), P = o("./messages"), L = 0, F = 4, N = 0, W = -2, z = -1, nt = 4, Pe = 2, se = 8, mt = 9, kt = 286, mn = 30, _i = 19, zi = 2 * kt + 1, Sa = 15, fa = 3, La = 258, Ra = La + fa + 1, ma = 42, yt = 113, lt = 1, pi = 2, ba = 3, Sc = 4;
9830
- function ms(Wa, af) {
9830
+ function Xs(Wa, af) {
9831
9831
  return Wa.msg = P[af], af;
9832
9832
  }
9833
- function Xs(Wa) {
9833
+ function ms(Wa) {
9834
9834
  return (Wa << 1) - (4 < Wa ? 9 : 0);
9835
9835
  }
9836
9836
  function yu(Wa) {
@@ -9868,7 +9868,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9868
9868
  while ((af = ff[af & Cf]) > rf && --pd != 0);
9869
9869
  return cf <= Wa.lookahead ? cf : Wa.lookahead;
9870
9870
  }
9871
- function uf(Wa) {
9871
+ function lf(Wa) {
9872
9872
  var af, Xd, gd, pd, Zd, cf, of, rf, df, Cf, ff = Wa.w_size;
9873
9873
  do {
9874
9874
  if (pd = Wa.window_size - Wa.lookahead - Wa.strstart, Wa.strstart >= ff + (ff - Ra)) {
@@ -9888,7 +9888,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9888
9888
  function hf(Wa, af) {
9889
9889
  for (var Xd, gd; ; ) {
9890
9890
  if (Wa.lookahead < Ra) {
9891
- if (uf(Wa), Wa.lookahead < Ra && af === L)
9891
+ if (lf(Wa), Wa.lookahead < Ra && af === L)
9892
9892
  return lt;
9893
9893
  if (Wa.lookahead === 0)
9894
9894
  break;
@@ -9910,7 +9910,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9910
9910
  function mf(Wa, af) {
9911
9911
  for (var Xd, gd, pd; ; ) {
9912
9912
  if (Wa.lookahead < Ra) {
9913
- if (uf(Wa), Wa.lookahead < Ra && af === L)
9913
+ if (lf(Wa), Wa.lookahead < Ra && af === L)
9914
9914
  return lt;
9915
9915
  if (Wa.lookahead === 0)
9916
9916
  break;
@@ -9936,7 +9936,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9936
9936
  }
9937
9937
  function yf(Wa) {
9938
9938
  var af;
9939
- return Wa && Wa.state ? (Wa.total_in = Wa.total_out = 0, Wa.data_type = Pe, (af = Wa.state).pending = 0, af.pending_out = 0, af.wrap < 0 && (af.wrap = -af.wrap), af.status = af.wrap ? ma : yt, Wa.adler = af.wrap === 2 ? 0 : 1, af.last_flush = L, p._tr_init(af), N) : ms(Wa, W);
9939
+ return Wa && Wa.state ? (Wa.total_in = Wa.total_out = 0, Wa.data_type = Pe, (af = Wa.state).pending = 0, af.pending_out = 0, af.wrap < 0 && (af.wrap = -af.wrap), af.status = af.wrap ? ma : yt, Wa.adler = af.wrap === 2 ? 0 : 1, af.last_flush = L, p._tr_init(af), N) : Xs(Wa, W);
9940
9940
  }
9941
9941
  function Tf(Wa) {
9942
9942
  var af = yf(Wa);
@@ -9949,7 +9949,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9949
9949
  return W;
9950
9950
  var cf = 1;
9951
9951
  if (af === z && (af = 6), gd < 0 ? (cf = 0, gd = -gd) : 15 < gd && (cf = 2, gd -= 16), pd < 1 || mt < pd || Xd !== se || gd < 8 || 15 < gd || af < 0 || 9 < af || Zd < 0 || nt < Zd)
9952
- return ms(Wa, W);
9952
+ return Xs(Wa, W);
9953
9953
  gd === 8 && (gd = 9);
9954
9954
  var of = new sf();
9955
9955
  return (Wa.state = of).strm = Wa, of.wrap = cf, of.gzhead = null, of.w_bits = gd, of.w_size = 1 << of.w_bits, of.w_mask = of.w_size - 1, of.hash_bits = pd + 7, of.hash_size = 1 << of.hash_bits, of.hash_mask = of.hash_size - 1, of.hash_shift = ~~((of.hash_bits + fa - 1) / fa), of.window = new h.Buf8(2 * of.w_size), of.head = new h.Buf16(of.hash_size), of.prev = new h.Buf16(of.w_size), of.lit_bufsize = 1 << pd + 6, of.pending_buf_size = 4 * of.lit_bufsize, of.pending_buf = new h.Buf8(of.pending_buf_size), of.d_buf = 1 * of.lit_bufsize, of.l_buf = 3 * of.lit_bufsize, of.level = af, of.strategy = Zd, of.method = Xd, Tf(Wa);
@@ -9958,7 +9958,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9958
9958
  var Xd = 65535;
9959
9959
  for (Xd > Wa.pending_buf_size - 5 && (Xd = Wa.pending_buf_size - 5); ; ) {
9960
9960
  if (Wa.lookahead <= 1) {
9961
- if (uf(Wa), Wa.lookahead === 0 && af === L)
9961
+ if (lf(Wa), Wa.lookahead === 0 && af === L)
9962
9962
  return lt;
9963
9963
  if (Wa.lookahead === 0)
9964
9964
  break;
@@ -9976,9 +9976,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9976
9976
  }, c.deflate = function(Wa, af) {
9977
9977
  var Xd, gd, pd, Zd;
9978
9978
  if (!Wa || !Wa.state || 5 < af || af < 0)
9979
- return Wa ? ms(Wa, W) : W;
9979
+ return Wa ? Xs(Wa, W) : W;
9980
9980
  if (gd = Wa.state, !Wa.output || !Wa.input && Wa.avail_in !== 0 || gd.status === 666 && af !== F)
9981
- return ms(Wa, Wa.avail_out === 0 ? -5 : W);
9981
+ return Xs(Wa, Wa.avail_out === 0 ? -5 : W);
9982
9982
  if (gd.strm = Wa, Xd = gd.last_flush, gd.last_flush = af, gd.status === ma)
9983
9983
  if (gd.wrap === 2)
9984
9984
  Wa.adler = 0, Ru(gd, 31), Ru(gd, 139), Ru(gd, 8), gd.gzhead ? (Ru(gd, (gd.gzhead.text ? 1 : 0) + (gd.gzhead.hcrc ? 2 : 0) + (gd.gzhead.extra ? 4 : 0) + (gd.gzhead.name ? 8 : 0) + (gd.gzhead.comment ? 16 : 0)), Ru(gd, 255 & gd.gzhead.time), Ru(gd, gd.gzhead.time >> 8 & 255), Ru(gd, gd.gzhead.time >> 16 & 255), Ru(gd, gd.gzhead.time >> 24 & 255), Ru(gd, gd.level === 9 ? 2 : 2 <= gd.strategy || gd.level < 2 ? 4 : 0), Ru(gd, 255 & gd.gzhead.os), gd.gzhead.extra && gd.gzhead.extra.length && (Ru(gd, 255 & gd.gzhead.extra.length), Ru(gd, gd.gzhead.extra.length >> 8 & 255)), gd.gzhead.hcrc && (Wa.adler = S(Wa.adler, gd.pending_buf, gd.pending, 0)), gd.gzindex = 0, gd.status = 69) : (Ru(gd, 0), Ru(gd, 0), Ru(gd, 0), Ru(gd, 0), Ru(gd, 0), Ru(gd, gd.level === 9 ? 2 : 2 <= gd.strategy || gd.level < 2 ? 4 : 0), Ru(gd, 3), gd.status = yt);
@@ -10022,14 +10022,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10022
10022
  if (gd.status === 103 && (gd.gzhead.hcrc ? (gd.pending + 2 > gd.pending_buf_size && Nl(Wa), gd.pending + 2 <= gd.pending_buf_size && (Ru(gd, 255 & Wa.adler), Ru(gd, Wa.adler >> 8 & 255), Wa.adler = 0, gd.status = yt)) : gd.status = yt), gd.pending !== 0) {
10023
10023
  if (Nl(Wa), Wa.avail_out === 0)
10024
10024
  return gd.last_flush = -1, N;
10025
- } else if (Wa.avail_in === 0 && Xs(af) <= Xs(Xd) && af !== F)
10026
- return ms(Wa, -5);
10025
+ } else if (Wa.avail_in === 0 && ms(af) <= ms(Xd) && af !== F)
10026
+ return Xs(Wa, -5);
10027
10027
  if (gd.status === 666 && Wa.avail_in !== 0)
10028
- return ms(Wa, -5);
10028
+ return Xs(Wa, -5);
10029
10029
  if (Wa.avail_in !== 0 || gd.lookahead !== 0 || af !== L && gd.status !== 666) {
10030
10030
  var of = gd.strategy === 2 ? function(rf, df) {
10031
10031
  for (var Cf; ; ) {
10032
- if (rf.lookahead === 0 && (uf(rf), rf.lookahead === 0)) {
10032
+ if (rf.lookahead === 0 && (lf(rf), rf.lookahead === 0)) {
10033
10033
  if (df === L)
10034
10034
  return lt;
10035
10035
  break;
@@ -10041,7 +10041,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10041
10041
  }(gd, af) : gd.strategy === 3 ? function(rf, df) {
10042
10042
  for (var Cf, ff, _f, Pf, Af = rf.window; ; ) {
10043
10043
  if (rf.lookahead <= La) {
10044
- if (uf(rf), rf.lookahead <= La && df === L)
10044
+ if (lf(rf), rf.lookahead <= La && df === L)
10045
10045
  return lt;
10046
10046
  if (rf.lookahead === 0)
10047
10047
  break;
@@ -10066,15 +10066,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10066
10066
  return af !== F ? N : gd.wrap <= 0 ? 1 : (gd.wrap === 2 ? (Ru(gd, 255 & Wa.adler), Ru(gd, Wa.adler >> 8 & 255), Ru(gd, Wa.adler >> 16 & 255), Ru(gd, Wa.adler >> 24 & 255), Ru(gd, 255 & Wa.total_in), Ru(gd, Wa.total_in >> 8 & 255), Ru(gd, Wa.total_in >> 16 & 255), Ru(gd, Wa.total_in >> 24 & 255)) : (Vd(gd, Wa.adler >>> 16), Vd(gd, 65535 & Wa.adler)), Nl(Wa), 0 < gd.wrap && (gd.wrap = -gd.wrap), gd.pending !== 0 ? N : 1);
10067
10067
  }, c.deflateEnd = function(Wa) {
10068
10068
  var af;
10069
- return Wa && Wa.state ? (af = Wa.state.status) !== ma && af !== 69 && af !== 73 && af !== 91 && af !== 103 && af !== yt && af !== 666 ? ms(Wa, W) : (Wa.state = null, af === yt ? ms(Wa, -3) : N) : W;
10069
+ return Wa && Wa.state ? (af = Wa.state.status) !== ma && af !== 69 && af !== 73 && af !== 91 && af !== 103 && af !== yt && af !== 666 ? Xs(Wa, W) : (Wa.state = null, af === yt ? Xs(Wa, -3) : N) : W;
10070
10070
  }, c.deflateSetDictionary = function(Wa, af) {
10071
10071
  var Xd, gd, pd, Zd, cf, of, rf, df, Cf = af.length;
10072
10072
  if (!Wa || !Wa.state || (Zd = (Xd = Wa.state).wrap) === 2 || Zd === 1 && Xd.status !== ma || Xd.lookahead)
10073
10073
  return W;
10074
- for (Zd === 1 && (Wa.adler = y(Wa.adler, af, Cf, 0)), Xd.wrap = 0, Cf >= Xd.w_size && (Zd === 0 && (yu(Xd.head), Xd.strstart = 0, Xd.block_start = 0, Xd.insert = 0), df = new h.Buf8(Xd.w_size), h.arraySet(df, af, Cf - Xd.w_size, Xd.w_size, 0), af = df, Cf = Xd.w_size), cf = Wa.avail_in, of = Wa.next_in, rf = Wa.input, Wa.avail_in = Cf, Wa.next_in = 0, Wa.input = af, uf(Xd); Xd.lookahead >= fa; ) {
10074
+ for (Zd === 1 && (Wa.adler = y(Wa.adler, af, Cf, 0)), Xd.wrap = 0, Cf >= Xd.w_size && (Zd === 0 && (yu(Xd.head), Xd.strstart = 0, Xd.block_start = 0, Xd.insert = 0), df = new h.Buf8(Xd.w_size), h.arraySet(df, af, Cf - Xd.w_size, Xd.w_size, 0), af = df, Cf = Xd.w_size), cf = Wa.avail_in, of = Wa.next_in, rf = Wa.input, Wa.avail_in = Cf, Wa.next_in = 0, Wa.input = af, lf(Xd); Xd.lookahead >= fa; ) {
10075
10075
  for (gd = Xd.strstart, pd = Xd.lookahead - (fa - 1); Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[gd + fa - 1]) & Xd.hash_mask, Xd.prev[gd & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = gd, gd++, --pd; )
10076
10076
  ;
10077
- Xd.strstart = gd, Xd.lookahead = fa - 1, uf(Xd);
10077
+ Xd.strstart = gd, Xd.lookahead = fa - 1, lf(Xd);
10078
10078
  }
10079
10079
  return Xd.strstart += Xd.lookahead, Xd.block_start = Xd.strstart, Xd.insert = Xd.lookahead, Xd.lookahead = 0, Xd.match_length = Xd.prev_length = fa - 1, Xd.match_available = 0, Wa.next_in = of, Wa.input = rf, Wa.avail_in = cf, Xd.wrap = Zd, N;
10080
10080
  }, c.deflateInfo = "pako deflate (from Nodeca project)";
@@ -10212,10 +10212,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10212
10212
  c.inflateReset = kt, c.inflateReset2 = mn, c.inflateResetKeep = mt, c.inflateInit = function(ma) {
10213
10213
  return _i(ma, 15);
10214
10214
  }, c.inflateInit2 = _i, c.inflate = function(ma, yt) {
10215
- var lt, pi, ba, Sc, ms, Xs, yu, Nl, pu, Ru, Vd, Gd, uf, hf, mf, pf, sf, yf, Tf, vf, Wa, af, Xd, gd, pd = 0, Zd = new d.Buf8(4), cf = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
10215
+ var lt, pi, ba, Sc, Xs, ms, yu, Nl, pu, Ru, Vd, Gd, lf, hf, mf, pf, sf, yf, Tf, vf, Wa, af, Xd, gd, pd = 0, Zd = new d.Buf8(4), cf = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
10216
10216
  if (!ma || !ma.state || !ma.output || !ma.input && ma.avail_in !== 0)
10217
10217
  return N;
10218
- (lt = ma.state).mode === 12 && (lt.mode = 13), ms = ma.next_out, ba = ma.output, yu = ma.avail_out, Sc = ma.next_in, pi = ma.input, Xs = ma.avail_in, Nl = lt.hold, pu = lt.bits, Ru = Xs, Vd = yu, af = F;
10218
+ (lt = ma.state).mode === 12 && (lt.mode = 13), Xs = ma.next_out, ba = ma.output, yu = ma.avail_out, Sc = ma.next_in, pi = ma.input, ms = ma.avail_in, Nl = lt.hold, pu = lt.bits, Ru = ms, Vd = yu, af = F;
10219
10219
  e:
10220
10220
  for (; ; )
10221
10221
  switch (lt.mode) {
@@ -10225,9 +10225,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10225
10225
  break;
10226
10226
  }
10227
10227
  for (; pu < 16; ) {
10228
- if (Xs === 0)
10228
+ if (ms === 0)
10229
10229
  break e;
10230
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10230
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10231
10231
  }
10232
10232
  if (2 & lt.wrap && Nl === 35615) {
10233
10233
  Zd[lt.check = 0] = 255 & Nl, Zd[1] = Nl >>> 8 & 255, lt.check = p(lt.check, Zd, 2, 0), pu = Nl = 0, lt.mode = 2;
@@ -10251,9 +10251,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10251
10251
  break;
10252
10252
  case 2:
10253
10253
  for (; pu < 16; ) {
10254
- if (Xs === 0)
10254
+ if (ms === 0)
10255
10255
  break e;
10256
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10256
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10257
10257
  }
10258
10258
  if (lt.flags = Nl, (255 & lt.flags) != 8) {
10259
10259
  ma.msg = "unknown compression method", lt.mode = 30;
@@ -10266,51 +10266,51 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10266
10266
  lt.head && (lt.head.text = Nl >> 8 & 1), 512 & lt.flags && (Zd[0] = 255 & Nl, Zd[1] = Nl >>> 8 & 255, lt.check = p(lt.check, Zd, 2, 0)), pu = Nl = 0, lt.mode = 3;
10267
10267
  case 3:
10268
10268
  for (; pu < 32; ) {
10269
- if (Xs === 0)
10269
+ if (ms === 0)
10270
10270
  break e;
10271
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10271
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10272
10272
  }
10273
10273
  lt.head && (lt.head.time = Nl), 512 & lt.flags && (Zd[0] = 255 & Nl, Zd[1] = Nl >>> 8 & 255, Zd[2] = Nl >>> 16 & 255, Zd[3] = Nl >>> 24 & 255, lt.check = p(lt.check, Zd, 4, 0)), pu = Nl = 0, lt.mode = 4;
10274
10274
  case 4:
10275
10275
  for (; pu < 16; ) {
10276
- if (Xs === 0)
10276
+ if (ms === 0)
10277
10277
  break e;
10278
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10278
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10279
10279
  }
10280
10280
  lt.head && (lt.head.xflags = 255 & Nl, lt.head.os = Nl >> 8), 512 & lt.flags && (Zd[0] = 255 & Nl, Zd[1] = Nl >>> 8 & 255, lt.check = p(lt.check, Zd, 2, 0)), pu = Nl = 0, lt.mode = 5;
10281
10281
  case 5:
10282
10282
  if (1024 & lt.flags) {
10283
10283
  for (; pu < 16; ) {
10284
- if (Xs === 0)
10284
+ if (ms === 0)
10285
10285
  break e;
10286
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10286
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10287
10287
  }
10288
10288
  lt.length = Nl, lt.head && (lt.head.extra_len = Nl), 512 & lt.flags && (Zd[0] = 255 & Nl, Zd[1] = Nl >>> 8 & 255, lt.check = p(lt.check, Zd, 2, 0)), pu = Nl = 0;
10289
10289
  } else
10290
10290
  lt.head && (lt.head.extra = null);
10291
10291
  lt.mode = 6;
10292
10292
  case 6:
10293
- if (1024 & lt.flags && (Xs < (Gd = lt.length) && (Gd = Xs), Gd && (lt.head && (Wa = lt.head.extra_len - lt.length, lt.head.extra || (lt.head.extra = new Array(lt.head.extra_len)), d.arraySet(lt.head.extra, pi, Sc, Gd, Wa)), 512 & lt.flags && (lt.check = p(lt.check, pi, Gd, Sc)), Xs -= Gd, Sc += Gd, lt.length -= Gd), lt.length))
10293
+ if (1024 & lt.flags && (ms < (Gd = lt.length) && (Gd = ms), Gd && (lt.head && (Wa = lt.head.extra_len - lt.length, lt.head.extra || (lt.head.extra = new Array(lt.head.extra_len)), d.arraySet(lt.head.extra, pi, Sc, Gd, Wa)), 512 & lt.flags && (lt.check = p(lt.check, pi, Gd, Sc)), ms -= Gd, Sc += Gd, lt.length -= Gd), lt.length))
10294
10294
  break e;
10295
10295
  lt.length = 0, lt.mode = 7;
10296
10296
  case 7:
10297
10297
  if (2048 & lt.flags) {
10298
- if (Xs === 0)
10298
+ if (ms === 0)
10299
10299
  break e;
10300
- for (Gd = 0; Wa = pi[Sc + Gd++], lt.head && Wa && lt.length < 65536 && (lt.head.name += String.fromCharCode(Wa)), Wa && Gd < Xs; )
10300
+ for (Gd = 0; Wa = pi[Sc + Gd++], lt.head && Wa && lt.length < 65536 && (lt.head.name += String.fromCharCode(Wa)), Wa && Gd < ms; )
10301
10301
  ;
10302
- if (512 & lt.flags && (lt.check = p(lt.check, pi, Gd, Sc)), Xs -= Gd, Sc += Gd, Wa)
10302
+ if (512 & lt.flags && (lt.check = p(lt.check, pi, Gd, Sc)), ms -= Gd, Sc += Gd, Wa)
10303
10303
  break e;
10304
10304
  } else
10305
10305
  lt.head && (lt.head.name = null);
10306
10306
  lt.length = 0, lt.mode = 8;
10307
10307
  case 8:
10308
10308
  if (4096 & lt.flags) {
10309
- if (Xs === 0)
10309
+ if (ms === 0)
10310
10310
  break e;
10311
- for (Gd = 0; Wa = pi[Sc + Gd++], lt.head && Wa && lt.length < 65536 && (lt.head.comment += String.fromCharCode(Wa)), Wa && Gd < Xs; )
10311
+ for (Gd = 0; Wa = pi[Sc + Gd++], lt.head && Wa && lt.length < 65536 && (lt.head.comment += String.fromCharCode(Wa)), Wa && Gd < ms; )
10312
10312
  ;
10313
- if (512 & lt.flags && (lt.check = p(lt.check, pi, Gd, Sc)), Xs -= Gd, Sc += Gd, Wa)
10313
+ if (512 & lt.flags && (lt.check = p(lt.check, pi, Gd, Sc)), ms -= Gd, Sc += Gd, Wa)
10314
10314
  break e;
10315
10315
  } else
10316
10316
  lt.head && (lt.head.comment = null);
@@ -10318,9 +10318,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10318
10318
  case 9:
10319
10319
  if (512 & lt.flags) {
10320
10320
  for (; pu < 16; ) {
10321
- if (Xs === 0)
10321
+ if (ms === 0)
10322
10322
  break e;
10323
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10323
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10324
10324
  }
10325
10325
  if (Nl !== (65535 & lt.check)) {
10326
10326
  ma.msg = "header crc mismatch", lt.mode = 30;
@@ -10332,14 +10332,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10332
10332
  break;
10333
10333
  case 10:
10334
10334
  for (; pu < 32; ) {
10335
- if (Xs === 0)
10335
+ if (ms === 0)
10336
10336
  break e;
10337
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10337
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10338
10338
  }
10339
10339
  ma.adler = lt.check = Pe(Nl), pu = Nl = 0, lt.mode = 11;
10340
10340
  case 11:
10341
10341
  if (lt.havedict === 0)
10342
- return ma.next_out = ms, ma.avail_out = yu, ma.next_in = Sc, ma.avail_in = Xs, lt.hold = Nl, lt.bits = pu, 2;
10342
+ return ma.next_out = Xs, ma.avail_out = yu, ma.next_in = Sc, ma.avail_in = ms, lt.hold = Nl, lt.bits = pu, 2;
10343
10343
  ma.adler = lt.check = 1, lt.mode = 12;
10344
10344
  case 12:
10345
10345
  if (yt === 5 || yt === 6)
@@ -10350,9 +10350,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10350
10350
  break;
10351
10351
  }
10352
10352
  for (; pu < 3; ) {
10353
- if (Xs === 0)
10353
+ if (ms === 0)
10354
10354
  break e;
10355
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10355
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10356
10356
  }
10357
10357
  switch (lt.last = 1 & Nl, pu -= 1, 3 & (Nl >>>= 1)) {
10358
10358
  case 0:
@@ -10373,9 +10373,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10373
10373
  break;
10374
10374
  case 14:
10375
10375
  for (Nl >>>= 7 & pu, pu -= 7 & pu; pu < 32; ) {
10376
- if (Xs === 0)
10376
+ if (ms === 0)
10377
10377
  break e;
10378
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10378
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10379
10379
  }
10380
10380
  if ((65535 & Nl) != (Nl >>> 16 ^ 65535)) {
10381
10381
  ma.msg = "invalid stored block lengths", lt.mode = 30;
@@ -10387,18 +10387,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10387
10387
  lt.mode = 16;
10388
10388
  case 16:
10389
10389
  if (Gd = lt.length) {
10390
- if (Xs < Gd && (Gd = Xs), yu < Gd && (Gd = yu), Gd === 0)
10390
+ if (ms < Gd && (Gd = ms), yu < Gd && (Gd = yu), Gd === 0)
10391
10391
  break e;
10392
- d.arraySet(ba, pi, Sc, Gd, ms), Xs -= Gd, Sc += Gd, yu -= Gd, ms += Gd, lt.length -= Gd;
10392
+ d.arraySet(ba, pi, Sc, Gd, Xs), ms -= Gd, Sc += Gd, yu -= Gd, Xs += Gd, lt.length -= Gd;
10393
10393
  break;
10394
10394
  }
10395
10395
  lt.mode = 12;
10396
10396
  break;
10397
10397
  case 17:
10398
10398
  for (; pu < 14; ) {
10399
- if (Xs === 0)
10399
+ if (ms === 0)
10400
10400
  break e;
10401
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10401
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10402
10402
  }
10403
10403
  if (lt.nlen = 257 + (31 & Nl), Nl >>>= 5, pu -= 5, lt.ndist = 1 + (31 & Nl), Nl >>>= 5, pu -= 5, lt.ncode = 4 + (15 & Nl), Nl >>>= 4, pu -= 4, 286 < lt.nlen || 30 < lt.ndist) {
10404
10404
  ma.msg = "too many length or distance symbols", lt.mode = 30;
@@ -10408,9 +10408,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10408
10408
  case 18:
10409
10409
  for (; lt.have < lt.ncode; ) {
10410
10410
  for (; pu < 3; ) {
10411
- if (Xs === 0)
10411
+ if (ms === 0)
10412
10412
  break e;
10413
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10413
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10414
10414
  }
10415
10415
  lt.lens[cf[lt.have++]] = 7 & Nl, Nl >>>= 3, pu -= 3;
10416
10416
  }
@@ -10424,18 +10424,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10424
10424
  case 19:
10425
10425
  for (; lt.have < lt.nlen + lt.ndist; ) {
10426
10426
  for (; pf = (pd = lt.lencode[Nl & (1 << lt.lenbits) - 1]) >>> 16 & 255, sf = 65535 & pd, !((mf = pd >>> 24) <= pu); ) {
10427
- if (Xs === 0)
10427
+ if (ms === 0)
10428
10428
  break e;
10429
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10429
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10430
10430
  }
10431
10431
  if (sf < 16)
10432
10432
  Nl >>>= mf, pu -= mf, lt.lens[lt.have++] = sf;
10433
10433
  else {
10434
10434
  if (sf === 16) {
10435
10435
  for (gd = mf + 2; pu < gd; ) {
10436
- if (Xs === 0)
10436
+ if (ms === 0)
10437
10437
  break e;
10438
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10438
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10439
10439
  }
10440
10440
  if (Nl >>>= mf, pu -= mf, lt.have === 0) {
10441
10441
  ma.msg = "invalid bit length repeat", lt.mode = 30;
@@ -10444,16 +10444,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10444
10444
  Wa = lt.lens[lt.have - 1], Gd = 3 + (3 & Nl), Nl >>>= 2, pu -= 2;
10445
10445
  } else if (sf === 17) {
10446
10446
  for (gd = mf + 3; pu < gd; ) {
10447
- if (Xs === 0)
10447
+ if (ms === 0)
10448
10448
  break e;
10449
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10449
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10450
10450
  }
10451
10451
  pu -= mf, Wa = 0, Gd = 3 + (7 & (Nl >>>= mf)), Nl >>>= 3, pu -= 3;
10452
10452
  } else {
10453
10453
  for (gd = mf + 7; pu < gd; ) {
10454
- if (Xs === 0)
10454
+ if (ms === 0)
10455
10455
  break e;
10456
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10456
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10457
10457
  }
10458
10458
  pu -= mf, Wa = 0, Gd = 11 + (127 & (Nl >>>= mf)), Nl >>>= 7, pu -= 7;
10459
10459
  }
@@ -10484,20 +10484,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10484
10484
  case 20:
10485
10485
  lt.mode = 21;
10486
10486
  case 21:
10487
- if (6 <= Xs && 258 <= yu) {
10488
- ma.next_out = ms, ma.avail_out = yu, ma.next_in = Sc, ma.avail_in = Xs, lt.hold = Nl, lt.bits = pu, y(ma, Vd), ms = ma.next_out, ba = ma.output, yu = ma.avail_out, Sc = ma.next_in, pi = ma.input, Xs = ma.avail_in, Nl = lt.hold, pu = lt.bits, lt.mode === 12 && (lt.back = -1);
10487
+ if (6 <= ms && 258 <= yu) {
10488
+ ma.next_out = Xs, ma.avail_out = yu, ma.next_in = Sc, ma.avail_in = ms, lt.hold = Nl, lt.bits = pu, y(ma, Vd), Xs = ma.next_out, ba = ma.output, yu = ma.avail_out, Sc = ma.next_in, pi = ma.input, ms = ma.avail_in, Nl = lt.hold, pu = lt.bits, lt.mode === 12 && (lt.back = -1);
10489
10489
  break;
10490
10490
  }
10491
10491
  for (lt.back = 0; pf = (pd = lt.lencode[Nl & (1 << lt.lenbits) - 1]) >>> 16 & 255, sf = 65535 & pd, !((mf = pd >>> 24) <= pu); ) {
10492
- if (Xs === 0)
10492
+ if (ms === 0)
10493
10493
  break e;
10494
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10494
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10495
10495
  }
10496
10496
  if (pf && !(240 & pf)) {
10497
10497
  for (yf = mf, Tf = pf, vf = sf; pf = (pd = lt.lencode[vf + ((Nl & (1 << yf + Tf) - 1) >> yf)]) >>> 16 & 255, sf = 65535 & pd, !(yf + (mf = pd >>> 24) <= pu); ) {
10498
- if (Xs === 0)
10498
+ if (ms === 0)
10499
10499
  break e;
10500
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10500
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10501
10501
  }
10502
10502
  Nl >>>= yf, pu -= yf, lt.back += yf;
10503
10503
  }
@@ -10517,24 +10517,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10517
10517
  case 22:
10518
10518
  if (lt.extra) {
10519
10519
  for (gd = lt.extra; pu < gd; ) {
10520
- if (Xs === 0)
10520
+ if (ms === 0)
10521
10521
  break e;
10522
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10522
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10523
10523
  }
10524
10524
  lt.length += Nl & (1 << lt.extra) - 1, Nl >>>= lt.extra, pu -= lt.extra, lt.back += lt.extra;
10525
10525
  }
10526
10526
  lt.was = lt.length, lt.mode = 23;
10527
10527
  case 23:
10528
10528
  for (; pf = (pd = lt.distcode[Nl & (1 << lt.distbits) - 1]) >>> 16 & 255, sf = 65535 & pd, !((mf = pd >>> 24) <= pu); ) {
10529
- if (Xs === 0)
10529
+ if (ms === 0)
10530
10530
  break e;
10531
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10531
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10532
10532
  }
10533
10533
  if (!(240 & pf)) {
10534
10534
  for (yf = mf, Tf = pf, vf = sf; pf = (pd = lt.distcode[vf + ((Nl & (1 << yf + Tf) - 1) >> yf)]) >>> 16 & 255, sf = 65535 & pd, !(yf + (mf = pd >>> 24) <= pu); ) {
10535
- if (Xs === 0)
10535
+ if (ms === 0)
10536
10536
  break e;
10537
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10537
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10538
10538
  }
10539
10539
  Nl >>>= yf, pu -= yf, lt.back += yf;
10540
10540
  }
@@ -10546,9 +10546,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10546
10546
  case 24:
10547
10547
  if (lt.extra) {
10548
10548
  for (gd = lt.extra; pu < gd; ) {
10549
- if (Xs === 0)
10549
+ if (ms === 0)
10550
10550
  break e;
10551
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10551
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10552
10552
  }
10553
10553
  lt.offset += Nl & (1 << lt.extra) - 1, Nl >>>= lt.extra, pu -= lt.extra, lt.back += lt.extra;
10554
10554
  }
@@ -10565,26 +10565,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10565
10565
  ma.msg = "invalid distance too far back", lt.mode = 30;
10566
10566
  break;
10567
10567
  }
10568
- uf = Gd > lt.wnext ? (Gd -= lt.wnext, lt.wsize - Gd) : lt.wnext - Gd, Gd > lt.length && (Gd = lt.length), hf = lt.window;
10568
+ lf = Gd > lt.wnext ? (Gd -= lt.wnext, lt.wsize - Gd) : lt.wnext - Gd, Gd > lt.length && (Gd = lt.length), hf = lt.window;
10569
10569
  } else
10570
- hf = ba, uf = ms - lt.offset, Gd = lt.length;
10571
- for (yu < Gd && (Gd = yu), yu -= Gd, lt.length -= Gd; ba[ms++] = hf[uf++], --Gd; )
10570
+ hf = ba, lf = Xs - lt.offset, Gd = lt.length;
10571
+ for (yu < Gd && (Gd = yu), yu -= Gd, lt.length -= Gd; ba[Xs++] = hf[lf++], --Gd; )
10572
10572
  ;
10573
10573
  lt.length === 0 && (lt.mode = 21);
10574
10574
  break;
10575
10575
  case 26:
10576
10576
  if (yu === 0)
10577
10577
  break e;
10578
- ba[ms++] = lt.length, yu--, lt.mode = 21;
10578
+ ba[Xs++] = lt.length, yu--, lt.mode = 21;
10579
10579
  break;
10580
10580
  case 27:
10581
10581
  if (lt.wrap) {
10582
10582
  for (; pu < 32; ) {
10583
- if (Xs === 0)
10583
+ if (ms === 0)
10584
10584
  break e;
10585
- Xs--, Nl |= pi[Sc++] << pu, pu += 8;
10585
+ ms--, Nl |= pi[Sc++] << pu, pu += 8;
10586
10586
  }
10587
- if (Vd -= yu, ma.total_out += Vd, lt.total += Vd, Vd && (ma.adler = lt.check = lt.flags ? p(lt.check, ba, Vd, ms - Vd) : h(lt.check, ba, Vd, ms - Vd)), Vd = yu, (lt.flags ? Nl : Pe(Nl)) !== lt.check) {
10587
+ if (Vd -= yu, ma.total_out += Vd, lt.total += Vd, Vd && (ma.adler = lt.check = lt.flags ? p(lt.check, ba, Vd, Xs - Vd) : h(lt.check, ba, Vd, Xs - Vd)), Vd = yu, (lt.flags ? Nl : Pe(Nl)) !== lt.check) {
10588
10588
  ma.msg = "incorrect data check", lt.mode = 30;
10589
10589
  break;
10590
10590
  }
@@ -10594,9 +10594,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10594
10594
  case 28:
10595
10595
  if (lt.wrap && lt.flags) {
10596
10596
  for (; pu < 32; ) {
10597
- if (Xs === 0)
10597
+ if (ms === 0)
10598
10598
  break e;
10599
- Xs--, Nl += pi[Sc++] << pu, pu += 8;
10599
+ ms--, Nl += pi[Sc++] << pu, pu += 8;
10600
10600
  }
10601
10601
  if (Nl !== (4294967295 & lt.total)) {
10602
10602
  ma.msg = "incorrect length check", lt.mode = 30;
@@ -10617,7 +10617,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10617
10617
  default:
10618
10618
  return N;
10619
10619
  }
10620
- return ma.next_out = ms, ma.avail_out = yu, ma.next_in = Sc, ma.avail_in = Xs, lt.hold = Nl, lt.bits = pu, (lt.wsize || Vd !== ma.avail_out && lt.mode < 30 && (lt.mode < 27 || yt !== 4)) && Ra(ma, ma.output, ma.next_out, Vd - ma.avail_out) ? (lt.mode = 31, -4) : (Ru -= ma.avail_in, Vd -= ma.avail_out, ma.total_in += Ru, ma.total_out += Vd, lt.total += Vd, lt.wrap && Vd && (ma.adler = lt.check = lt.flags ? p(lt.check, ba, Vd, ma.next_out - Vd) : h(lt.check, ba, Vd, ma.next_out - Vd)), ma.data_type = lt.bits + (lt.last ? 64 : 0) + (lt.mode === 12 ? 128 : 0) + (lt.mode === 20 || lt.mode === 15 ? 256 : 0), (Ru == 0 && Vd === 0 || yt === 4) && af === F && (af = -5), af);
10620
+ return ma.next_out = Xs, ma.avail_out = yu, ma.next_in = Sc, ma.avail_in = ms, lt.hold = Nl, lt.bits = pu, (lt.wsize || Vd !== ma.avail_out && lt.mode < 30 && (lt.mode < 27 || yt !== 4)) && Ra(ma, ma.output, ma.next_out, Vd - ma.avail_out) ? (lt.mode = 31, -4) : (Ru -= ma.avail_in, Vd -= ma.avail_out, ma.total_in += Ru, ma.total_out += Vd, lt.total += Vd, lt.wrap && Vd && (ma.adler = lt.check = lt.flags ? p(lt.check, ba, Vd, ma.next_out - Vd) : h(lt.check, ba, Vd, ma.next_out - Vd)), ma.data_type = lt.bits + (lt.last ? 64 : 0) + (lt.mode === 12 ? 128 : 0) + (lt.mode === 20 || lt.mode === 15 ? 256 : 0), (Ru == 0 && Vd === 0 || yt === 4) && af === F && (af = -5), af);
10621
10621
  }, c.inflateEnd = function(ma) {
10622
10622
  if (!ma || !ma.state)
10623
10623
  return N;
@@ -10633,7 +10633,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10633
10633
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(o, s, c) {
10634
10634
  var d = o("../utils/common"), h = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], p = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], y = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], S = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
10635
10635
  s.exports = function(P, L, F, N, W, z, nt, Pe) {
10636
- var se, mt, kt, mn, _i, zi, Sa, fa, La, Ra = Pe.bits, ma = 0, yt = 0, lt = 0, pi = 0, ba = 0, Sc = 0, ms = 0, Xs = 0, yu = 0, Nl = 0, pu = null, Ru = 0, Vd = new d.Buf16(16), Gd = new d.Buf16(16), uf = null, hf = 0;
10636
+ var se, mt, kt, mn, _i, zi, Sa, fa, La, Ra = Pe.bits, ma = 0, yt = 0, lt = 0, pi = 0, ba = 0, Sc = 0, Xs = 0, ms = 0, yu = 0, Nl = 0, pu = null, Ru = 0, Vd = new d.Buf16(16), Gd = new d.Buf16(16), lf = null, hf = 0;
10637
10637
  for (ma = 0; ma <= 15; ma++)
10638
10638
  Vd[ma] = 0;
10639
10639
  for (yt = 0; yt < N; yt++)
@@ -10644,19 +10644,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10644
10644
  return W[z++] = 20971520, W[z++] = 20971520, Pe.bits = 1, 0;
10645
10645
  for (lt = 1; lt < pi && Vd[lt] === 0; lt++)
10646
10646
  ;
10647
- for (ba < lt && (ba = lt), ma = Xs = 1; ma <= 15; ma++)
10648
- if (Xs <<= 1, (Xs -= Vd[ma]) < 0)
10647
+ for (ba < lt && (ba = lt), ma = ms = 1; ma <= 15; ma++)
10648
+ if (ms <<= 1, (ms -= Vd[ma]) < 0)
10649
10649
  return -1;
10650
- if (0 < Xs && (P === 0 || pi !== 1))
10650
+ if (0 < ms && (P === 0 || pi !== 1))
10651
10651
  return -1;
10652
10652
  for (Gd[1] = 0, ma = 1; ma < 15; ma++)
10653
10653
  Gd[ma + 1] = Gd[ma] + Vd[ma];
10654
10654
  for (yt = 0; yt < N; yt++)
10655
10655
  L[F + yt] !== 0 && (nt[Gd[L[F + yt]]++] = yt);
10656
- if (zi = P === 0 ? (pu = uf = nt, 19) : P === 1 ? (pu = h, Ru -= 257, uf = p, hf -= 257, 256) : (pu = y, uf = S, -1), ma = lt, _i = z, ms = yt = Nl = 0, kt = -1, mn = (yu = 1 << (Sc = ba)) - 1, P === 1 && 852 < yu || P === 2 && 592 < yu)
10656
+ if (zi = P === 0 ? (pu = lf = nt, 19) : P === 1 ? (pu = h, Ru -= 257, lf = p, hf -= 257, 256) : (pu = y, lf = S, -1), ma = lt, _i = z, Xs = yt = Nl = 0, kt = -1, mn = (yu = 1 << (Sc = ba)) - 1, P === 1 && 852 < yu || P === 2 && 592 < yu)
10657
10657
  return 1;
10658
10658
  for (; ; ) {
10659
- for (Sa = ma - ms, La = nt[yt] < zi ? (fa = 0, nt[yt]) : nt[yt] > zi ? (fa = uf[hf + nt[yt]], pu[Ru + nt[yt]]) : (fa = 96, 0), se = 1 << ma - ms, lt = mt = 1 << Sc; W[_i + (Nl >> ms) + (mt -= se)] = Sa << 24 | fa << 16 | La | 0, mt !== 0; )
10659
+ for (Sa = ma - Xs, La = nt[yt] < zi ? (fa = 0, nt[yt]) : nt[yt] > zi ? (fa = lf[hf + nt[yt]], pu[Ru + nt[yt]]) : (fa = 96, 0), se = 1 << ma - Xs, lt = mt = 1 << Sc; W[_i + (Nl >> Xs) + (mt -= se)] = Sa << 24 | fa << 16 | La | 0, mt !== 0; )
10660
10660
  ;
10661
10661
  for (se = 1 << ma - 1; Nl & se; )
10662
10662
  se >>= 1;
@@ -10666,14 +10666,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10666
10666
  ma = L[F + nt[yt]];
10667
10667
  }
10668
10668
  if (ba < ma && (Nl & mn) !== kt) {
10669
- for (ms === 0 && (ms = ba), _i += lt, Xs = 1 << (Sc = ma - ms); Sc + ms < pi && !((Xs -= Vd[Sc + ms]) <= 0); )
10670
- Sc++, Xs <<= 1;
10669
+ for (Xs === 0 && (Xs = ba), _i += lt, ms = 1 << (Sc = ma - Xs); Sc + Xs < pi && !((ms -= Vd[Sc + Xs]) <= 0); )
10670
+ Sc++, ms <<= 1;
10671
10671
  if (yu += 1 << Sc, P === 1 && 852 < yu || P === 2 && 592 < yu)
10672
10672
  return 1;
10673
10673
  W[kt = Nl & mn] = ba << 24 | Sc << 16 | _i - z | 0;
10674
10674
  }
10675
10675
  }
10676
- return Nl !== 0 && (W[_i + Nl] = ma - ms << 24 | 64 << 16 | 0), Pe.bits = ba, 0;
10676
+ return Nl !== 0 && (W[_i + Nl] = ma - Xs << 24 | 64 << 16 | 0), Pe.bits = ba, 0;
10677
10677
  };
10678
10678
  }, { "../utils/common": 41 }], 51: [function(o, s, c) {
10679
10679
  s.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
@@ -10693,7 +10693,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10693
10693
  y(lt);
10694
10694
  var pi = new Array(P);
10695
10695
  y(pi);
10696
- var ba, Sc, ms, Xs = new Array(N);
10696
+ var ba, Sc, Xs, ms = new Array(N);
10697
10697
  function yu(pd, Zd, cf, of, rf) {
10698
10698
  this.static_tree = pd, this.extra_bits = Zd, this.extra_base = cf, this.elems = of, this.max_length = rf, this.has_stree = pd && pd.length;
10699
10699
  }
@@ -10712,7 +10712,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10712
10712
  function Gd(pd, Zd, cf) {
10713
10713
  Vd(pd, cf[2 * Zd], cf[2 * Zd + 1]);
10714
10714
  }
10715
- function uf(pd, Zd) {
10715
+ function lf(pd, Zd) {
10716
10716
  for (var cf = 0; cf |= 1 & pd, pd >>>= 1, cf <<= 1, 0 < --Zd; )
10717
10717
  ;
10718
10718
  return cf >>> 1;
@@ -10723,7 +10723,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10723
10723
  df[of] = Cf = Cf + cf[of - 1] << 1;
10724
10724
  for (rf = 0; rf <= Zd; rf++) {
10725
10725
  var ff = pd[2 * rf + 1];
10726
- ff !== 0 && (pd[2 * rf] = uf(df[ff]++, ff));
10726
+ ff !== 0 && (pd[2 * rf] = lf(df[ff]++, ff));
10727
10727
  }
10728
10728
  }
10729
10729
  function mf(pd) {
@@ -10751,7 +10751,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10751
10751
  function Tf(pd, Zd, cf) {
10752
10752
  var of, rf, df, Cf, ff = 0;
10753
10753
  if (pd.last_lit !== 0)
10754
- for (; of = pd.pending_buf[pd.d_buf + 2 * ff] << 8 | pd.pending_buf[pd.d_buf + 2 * ff + 1], rf = pd.pending_buf[pd.l_buf + ff], ff++, of === 0 ? Gd(pd, rf, Zd) : (Gd(pd, (df = lt[rf]) + L + 1, Zd), (Cf = zi[df]) !== 0 && Vd(pd, rf -= pi[df], Cf), Gd(pd, df = pu(--of), cf), (Cf = Sa[df]) !== 0 && Vd(pd, of -= Xs[df], Cf)), ff < pd.last_lit; )
10754
+ for (; of = pd.pending_buf[pd.d_buf + 2 * ff] << 8 | pd.pending_buf[pd.d_buf + 2 * ff + 1], rf = pd.pending_buf[pd.l_buf + ff], ff++, of === 0 ? Gd(pd, rf, Zd) : (Gd(pd, (df = lt[rf]) + L + 1, Zd), (Cf = zi[df]) !== 0 && Vd(pd, rf -= pi[df], Cf), Gd(pd, df = pu(--of), cf), (Cf = Sa[df]) !== 0 && Vd(pd, of -= ms[df], Cf)), ff < pd.last_lit; )
10755
10755
  ;
10756
10756
  Gd(pd, mt, Zd);
10757
10757
  }
@@ -10766,11 +10766,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10766
10766
  for (rf = _f; cf = pd.heap[1], pd.heap[1] = pd.heap[pd.heap_len--], yf(pd, df, 1), of = pd.heap[1], pd.heap[--pd.heap_max] = cf, pd.heap[--pd.heap_max] = of, df[2 * rf] = df[2 * cf] + df[2 * of], pd.depth[rf] = (pd.depth[cf] >= pd.depth[of] ? pd.depth[cf] : pd.depth[of]) + 1, df[2 * cf + 1] = df[2 * of + 1] = rf, pd.heap[1] = rf++, yf(pd, df, 1), 2 <= pd.heap_len; )
10767
10767
  ;
10768
10768
  pd.heap[--pd.heap_max] = pd.heap[1], function(Af, $f) {
10769
- var xf, wf, Yf, Nf, jf, rp, tp = $f.dyn_tree, np = $f.max_code, Sf = $f.stat_desc.static_tree, Of = $f.stat_desc.has_stree, kf = $f.stat_desc.extra_bits, Bf = $f.stat_desc.extra_base, Qf = $f.stat_desc.max_length, ep = 0;
10769
+ var xf, wf, Yf, Nf, jf, rp, tp = $f.dyn_tree, np = $f.max_code, Sf = $f.stat_desc.static_tree, Lf = $f.stat_desc.has_stree, kf = $f.stat_desc.extra_bits, Bf = $f.stat_desc.extra_base, Qf = $f.stat_desc.max_length, ep = 0;
10770
10770
  for (Nf = 0; Nf <= nt; Nf++)
10771
10771
  Af.bl_count[Nf] = 0;
10772
10772
  for (tp[2 * Af.heap[Af.heap_max] + 1] = 0, xf = Af.heap_max + 1; xf < z; xf++)
10773
- Qf < (Nf = tp[2 * tp[2 * (wf = Af.heap[xf]) + 1] + 1] + 1) && (Nf = Qf, ep++), tp[2 * wf + 1] = Nf, np < wf || (Af.bl_count[Nf]++, jf = 0, Bf <= wf && (jf = kf[wf - Bf]), rp = tp[2 * wf], Af.opt_len += rp * (Nf + jf), Of && (Af.static_len += rp * (Sf[2 * wf + 1] + jf)));
10773
+ Qf < (Nf = tp[2 * tp[2 * (wf = Af.heap[xf]) + 1] + 1] + 1) && (Nf = Qf, ep++), tp[2 * wf + 1] = Nf, np < wf || (Af.bl_count[Nf]++, jf = 0, Bf <= wf && (jf = kf[wf - Bf]), rp = tp[2 * wf], Af.opt_len += rp * (Nf + jf), Lf && (Af.static_len += rp * (Sf[2 * wf + 1] + jf)));
10774
10774
  if (ep !== 0) {
10775
10775
  do {
10776
10776
  for (Nf = Qf - 1; Af.bl_count[Nf] === 0; )
@@ -10800,7 +10800,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10800
10800
  df = rf, Pf = (ff = 0) === Cf ? (_f = 138, 3) : rf === Cf ? (_f = 6, 3) : (_f = 7, 4);
10801
10801
  }
10802
10802
  }
10803
- y(Xs);
10803
+ y(ms);
10804
10804
  var Xd = !1;
10805
10805
  function gd(pd, Zd, cf, of) {
10806
10806
  Vd(pd, (S << 1) + (of ? 1 : 0), 3), function(rf, df, Cf, ff) {
@@ -10814,10 +10814,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10814
10814
  for (pi[rf] = of, Zd = 0; Zd < 1 << zi[rf]; Zd++)
10815
10815
  lt[of++] = rf;
10816
10816
  for (lt[of - 1] = rf, rf = df = 0; rf < 16; rf++)
10817
- for (Xs[rf] = df, Zd = 0; Zd < 1 << Sa[rf]; Zd++)
10817
+ for (ms[rf] = df, Zd = 0; Zd < 1 << Sa[rf]; Zd++)
10818
10818
  yt[df++] = rf;
10819
10819
  for (df >>= 7; rf < N; rf++)
10820
- for (Xs[rf] = df << 7, Zd = 0; Zd < 1 << Sa[rf] - 7; Zd++)
10820
+ for (ms[rf] = df << 7, Zd = 0; Zd < 1 << Sa[rf] - 7; Zd++)
10821
10821
  yt[256 + df++] = rf;
10822
10822
  for (cf = 0; cf <= nt; cf++)
10823
10823
  Cf[cf] = 0;
@@ -10830,9 +10830,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10830
10830
  for (; Zd <= 287; )
10831
10831
  Ra[2 * Zd + 1] = 8, Zd++, Cf[8]++;
10832
10832
  for (hf(Ra, F + 1, Cf), Zd = 0; Zd < N; Zd++)
10833
- ma[2 * Zd + 1] = 5, ma[2 * Zd] = uf(Zd, 5);
10834
- ba = new yu(Ra, zi, L + 1, F, nt), Sc = new yu(ma, Sa, 0, N, nt), ms = new yu(new Array(0), fa, 0, W, se);
10835
- }(), Xd = !0), pd.l_desc = new Nl(pd.dyn_ltree, ba), pd.d_desc = new Nl(pd.dyn_dtree, Sc), pd.bl_desc = new Nl(pd.bl_tree, ms), pd.bi_buf = 0, pd.bi_valid = 0, mf(pd);
10833
+ ma[2 * Zd + 1] = 5, ma[2 * Zd] = lf(Zd, 5);
10834
+ ba = new yu(Ra, zi, L + 1, F, nt), Sc = new yu(ma, Sa, 0, N, nt), Xs = new yu(new Array(0), fa, 0, W, se);
10835
+ }(), Xd = !0), pd.l_desc = new Nl(pd.dyn_ltree, ba), pd.d_desc = new Nl(pd.dyn_dtree, Sc), pd.bl_desc = new Nl(pd.bl_tree, Xs), pd.bi_buf = 0, pd.bi_valid = 0, mf(pd);
10836
10836
  }, c._tr_stored_block = gd, c._tr_flush_block = function(pd, Zd, cf, of) {
10837
10837
  var rf, df, Cf = 0;
10838
10838
  0 < pd.level ? (pd.strm.data_type === 2 && (pd.strm.data_type = function(ff) {
@@ -14351,9 +14351,9 @@ function computeAtom(t) {
14351
14351
  void 0,
14352
14352
  _i.data.idProperty
14353
14353
  );
14354
- return yt.length === (ma == null ? void 0 : ma.length) ? !yt.every((Sc, ms) => {
14355
- const Xs = ma[ms];
14356
- return isEqual({ ...Sc, id: "" }, { ...Xs, id: "" });
14354
+ return yt.length === (ma == null ? void 0 : ma.length) ? !yt.every((Sc, Xs) => {
14355
+ const ms = ma[Xs];
14356
+ return isEqual({ ...Sc, id: "" }, { ...ms, id: "" });
14357
14357
  }) : !0;
14358
14358
  }, Ra = await evalLayer(_i, { getFeatures: async (ma, yt) => {
14359
14359
  const lt = mt(y.get), pi = lt(zi, ma, yt);
@@ -14898,7 +14898,7 @@ function useHooks$a({
14898
14898
  pi(Xd, { _updateStyle: ((gd == null ? void 0 : gd._updateStyle) ?? -1) + 1 });
14899
14899
  },
14900
14900
  [pi]
14901
- ), { select: Sc, selectFeature: ms, selectFeatures: Xs, selectedLayer: yu, selectedFeature: Nl } = useSelection({
14901
+ ), { select: Sc, selectFeature: Xs, selectFeatures: ms, selectedLayer: yu, selectedFeature: Nl } = useSelection({
14902
14902
  initialSelectedLayer: s,
14903
14903
  getLazyLayer: fa,
14904
14904
  onLayerSelect: d,
@@ -14927,7 +14927,7 @@ function useHooks$a({
14927
14927
  ), Gd = useCallback(
14928
14928
  (Xd) => typeof Xd == "object" && Object.getPrototypeOf(Xd) === zi,
14929
14929
  [zi]
14930
- ), uf = useCallback(() => [...Pe() ?? [], ...kt.current].map((Xd) => fa(Xd.id)).filter((Xd) => !!Xd), [fa, Pe]), hf = useCallback(
14930
+ ), lf = useCallback(() => [...Pe() ?? [], ...kt.current].map((Xd) => fa(Xd.id)).filter((Xd) => !!Xd), [fa, Pe]), hf = useCallback(
14931
14931
  (Xd) => walkLayers([...Pe() ?? [], ...kt.current], (gd, pd, Zd) => {
14932
14932
  const cf = fa(gd.id);
14933
14933
  if (cf)
@@ -15001,7 +15001,7 @@ function useHooks$a({
15001
15001
  isLayer: Ru,
15002
15002
  isComputedLayer: Gd,
15003
15003
  isTempLayer: Vd,
15004
- layers: uf,
15004
+ layers: lf,
15005
15005
  walk: hf,
15006
15006
  find: mf,
15007
15007
  findAll: pf,
@@ -15010,8 +15010,8 @@ function useHooks$a({
15010
15010
  hide: Tf,
15011
15011
  show: vf,
15012
15012
  select: Sc,
15013
- selectFeature: ms,
15014
- selectFeatures: Xs,
15013
+ selectFeature: Xs,
15014
+ selectFeatures: ms,
15015
15015
  selectedLayer: yu,
15016
15016
  selectedFeature: Nl,
15017
15017
  overriddenLayers: Wa
@@ -15027,7 +15027,7 @@ function useHooks$a({
15027
15027
  Ru,
15028
15028
  Gd,
15029
15029
  Vd,
15030
- uf,
15030
+ lf,
15031
15031
  hf,
15032
15032
  mf,
15033
15033
  pf,
@@ -15036,8 +15036,8 @@ function useHooks$a({
15036
15036
  Tf,
15037
15037
  vf,
15038
15038
  Sc,
15039
- ms,
15040
15039
  Xs,
15040
+ ms,
15041
15041
  yu,
15042
15042
  Nl,
15043
15043
  Wa
@@ -16202,8 +16202,8 @@ function resolveActions(t, n, o, s, c, d, h) {
16202
16202
  }
16203
16203
  case choose: {
16204
16204
  var mn = z, _i = (nt = mn.conds.find(function(Sc) {
16205
- var ms = toGuard(Sc.cond, t.options.guards);
16206
- return !ms || evaluateGuard(t, ms, y, s, d ? void 0 : n);
16205
+ var Xs = toGuard(Sc.cond, t.options.guards);
16206
+ return !Xs || evaluateGuard(t, Xs, y, s, d ? void 0 : n);
16207
16207
  })) === null || nt === void 0 ? void 0 : nt.actions;
16208
16208
  if (!_i)
16209
16209
  return [];
@@ -16238,9 +16238,9 @@ function resolveActions(t, n, o, s, c, d, h) {
16238
16238
  else if (lt && S) {
16239
16239
  var pi = S.length - 1, ba = __assign$1(__assign$1({}, yt), {
16240
16240
  exec: function(Sc) {
16241
- for (var ms = [], Xs = 1; Xs < arguments.length; Xs++)
16242
- ms[Xs - 1] = arguments[Xs];
16243
- lt.apply(void 0, __spreadArray([S[pi]], __read$2(ms), !1));
16241
+ for (var Xs = [], ms = 1; ms < arguments.length; ms++)
16242
+ Xs[ms - 1] = arguments[ms];
16243
+ lt.apply(void 0, __spreadArray([S[pi]], __read$2(Xs), !1));
16244
16244
  }
16245
16245
  });
16246
16246
  yt = ba;
@@ -18105,10 +18105,10 @@ var NULL_EVENT = "", STATE_IDENTIFIER = "#", WILDCARD = "*", EMPTY_OBJECT = {},
18105
18105
  done: W,
18106
18106
  tags: getTagsFromConfiguration(N),
18107
18107
  machine: this
18108
- }), ms = s !== Ra;
18109
- Sc.changed = d.name === update$2 || ms;
18110
- var Xs = Sc.history;
18111
- Xs && delete Xs.history;
18108
+ }), Xs = s !== Ra;
18109
+ Sc.changed = d.name === update$2 || Xs;
18110
+ var ms = Sc.history;
18111
+ ms && delete ms.history;
18112
18112
  var yu = !W && (this._transient || L.some(function(Vd) {
18113
18113
  return Vd._transient;
18114
18114
  }));
@@ -18122,8 +18122,8 @@ var NULL_EVENT = "", STATE_IDENTIFIER = "#", WILDCARD = "*", EMPTY_OBJECT = {},
18122
18122
  var pu = yt.shift();
18123
18123
  Nl = this.resolveRaisedTransition(Nl, pu._event, d, c);
18124
18124
  }
18125
- var Ru = Nl.changed || (Xs ? !!Nl.actions.length || ms || typeof Xs.value != typeof Nl.value || !stateValuesEqual(Nl.value, Xs.value) : void 0);
18126
- return Nl.changed = Ru, Nl.history = Xs, Nl;
18125
+ var Ru = Nl.changed || (ms ? !!Nl.actions.length || Xs || typeof ms.value != typeof Nl.value || !stateValuesEqual(Nl.value, ms.value) : void 0);
18126
+ return Nl.changed = Ru, Nl.history = ms, Nl;
18127
18127
  }, t.prototype.getStateNode = function(n) {
18128
18128
  if (isStateId(n))
18129
18129
  return this.machine.getStateNodeById(n);
@@ -19357,7 +19357,7 @@ const usePluginSketchLayer = ({
19357
19357
  ]
19358
19358
  ), Sa = useCallback(
19359
19359
  (Ru) => {
19360
- var Vd, Gd, uf, hf, mf, pf, sf, yf, Tf, vf;
19360
+ var Vd, Gd, lf, hf, mf, pf, sf, yf, Tf, vf;
19361
19361
  if (!(o || Ru.lng === void 0 || Ru.lat === void 0 || Ru.height === void 0 || Ru.x === void 0 || Ru.y === void 0 || !n.current)) {
19362
19362
  if (P.current = [Ru.lng, Ru.lat, Ru.height], t.matches("drawing")) {
19363
19363
  invariant$1(t.context.type != null), invariant$1(t.context.controlPoints != null);
@@ -19372,7 +19372,7 @@ const usePluginSketchLayer = ({
19372
19372
  } else if (t.matches("extruding")) {
19373
19373
  invariant$1((L == null ? void 0 : L.controlPoints) != null);
19374
19374
  let Wa;
19375
- if (t.context.type !== "extrudedRectangle" ? Wa = (uf = n.current) == null ? void 0 : uf.getExtrudedHeight(
19375
+ if (t.context.type !== "extrudedRectangle" ? Wa = (lf = n.current) == null ? void 0 : lf.getExtrudedHeight(
19376
19376
  L == null ? void 0 : L.controlPoints[((Gd = L == null ? void 0 : L.controlPoints) == null ? void 0 : Gd.length) - 1],
19377
19377
  [Ru.x, Ru.y]
19378
19378
  ) : t.context.originalControlPoint && (Wa = (hf = n.current) == null ? void 0 : hf.getExtrudedHeight(
@@ -19450,7 +19450,7 @@ const usePluginSketchLayer = ({
19450
19450
  ]
19451
19451
  ), fa = useCallback(
19452
19452
  (Ru) => {
19453
- var Vd, Gd, uf, hf, mf;
19453
+ var Vd, Gd, lf, hf, mf;
19454
19454
  if (!(o || Ru.lng === void 0 || Ru.lat === void 0 || Ru.height === void 0 || Ru.x === void 0 || Ru.y === void 0 || !n.current) && (movingStatus.some(t.matches) && (p({
19455
19455
  type: "RELEASE",
19456
19456
  controlPoints: t.context.controlPoints ?? [],
@@ -19468,7 +19468,7 @@ const usePluginSketchLayer = ({
19468
19468
  5
19469
19469
  ))))) {
19470
19470
  if (t.matches("drawing")) {
19471
- const pf = (uf = n.current) == null ? void 0 : uf.toXYZ(Ru.lng, Ru.lat, Ru.height);
19471
+ const pf = (lf = n.current) == null ? void 0 : lf.toXYZ(Ru.lng, Ru.lat, Ru.height);
19472
19472
  if (pf == null)
19473
19473
  return;
19474
19474
  if (t.context.type === "marker") {
@@ -19588,13 +19588,13 @@ const usePluginSketchLayer = ({
19588
19588
  (Vd = ma.current) == null || Vd.call(ma, Ru);
19589
19589
  },
19590
19590
  [ma]
19591
- ), ms = useCallback(
19591
+ ), Xs = useCallback(
19592
19592
  (Ru) => {
19593
19593
  var Vd;
19594
19594
  (Vd = yt.current) == null || Vd.call(yt, Ru);
19595
19595
  },
19596
19596
  [yt]
19597
- ), Xs = useCallback(
19597
+ ), ms = useCallback(
19598
19598
  (Ru) => {
19599
19599
  var Vd;
19600
19600
  (Vd = lt.current) == null || Vd.call(lt, Ru);
@@ -19611,9 +19611,9 @@ const usePluginSketchLayer = ({
19611
19611
  (Ru = ba.current) == null || Ru.call(ba);
19612
19612
  }, [ba]), pu = useRef(!1);
19613
19613
  return useEffect(() => {
19614
- var Ru, Vd, Gd, uf, hf;
19615
- pu.current || !n.current || (pu.current = !0, (Ru = n.current) == null || Ru.onMouseDown(Sc), (Vd = n.current) == null || Vd.onMouseMove(ms), (Gd = n.current) == null || Gd.onMouseUp(Xs), (uf = n.current) == null || uf.onDoubleClick(yu), (hf = n.current) == null || hf.onRightClick(Nl));
19616
- }, [n, Sc, ms, Xs, yu, Nl]), {};
19614
+ var Ru, Vd, Gd, lf, hf;
19615
+ pu.current || !n.current || (pu.current = !0, (Ru = n.current) == null || Ru.onMouseDown(Sc), (Vd = n.current) == null || Vd.onMouseMove(Xs), (Gd = n.current) == null || Gd.onMouseUp(ms), (lf = n.current) == null || lf.onDoubleClick(yu), (hf = n.current) == null || hf.onRightClick(Nl));
19616
+ }, [n, Sc, Xs, ms, yu, Nl]), {};
19617
19617
  };
19618
19618
  function hasDuplicate(t, n, o) {
19619
19619
  return (o == null ? void 0 : o.some((s) => t(n, s, 0, 1e-7))) === !0;
@@ -19777,7 +19777,7 @@ function useHooks$9({
19777
19777
  ...tf,
19778
19778
  appearance: merge(cloneDeep(gf.appearance), tf.appearance)
19779
19779
  }));
19780
- }, []), [yt, lt] = useState(null), [pi, ba] = useState(0), [Sc, ms] = useState(), [Xs, yu] = useState(), [Nl, pu] = useState(), [Ru, Vd] = useState(), Gd = useRef(null), uf = useRef(), hf = useMemo(() => Pe.matches("editing"), [Pe]), mf = useCallback(() => {
19780
+ }, []), [yt, lt] = useState(null), [pi, ba] = useState(0), [Sc, Xs] = useState(), [ms, yu] = useState(), [Nl, pu] = useState(), [Ru, Vd] = useState(), Gd = useRef(null), lf = useRef(), hf = useMemo(() => Pe.matches("editing"), [Pe]), mf = useCallback(() => {
19781
19781
  var Mf;
19782
19782
  const tf = mt === "marker" ? Gd.current : yt;
19783
19783
  if (tf == null)
@@ -19802,7 +19802,7 @@ function useHooks$9({
19802
19802
  });
19803
19803
  }, [pi, yt, c, n]), sf = useCallback(
19804
19804
  (tf) => {
19805
- if (ba(0), ms(void 0), Pe.context.type == null || Pe.context.controlPoints == null) {
19805
+ if (ba(0), Xs(void 0), Pe.context.type == null || Pe.context.controlPoints == null) {
19806
19806
  lt(null);
19807
19807
  return;
19808
19808
  }
@@ -19853,7 +19853,7 @@ function useHooks$9({
19853
19853
  onLayerSelect: N
19854
19854
  }), cf = useCallback(
19855
19855
  (tf) => {
19856
- var Mf, Wf, Xf, qf, up, dp, pp, mp, al, nf, lf, bf, Lf, Ff, If;
19856
+ var Mf, Wf, Xf, qf, up, dp, pp, mp, al, nf, uf, bf, Of, Ff, If;
19857
19857
  if (z == null || z(tf), !Pe.matches("idle") || !tf)
19858
19858
  return;
19859
19859
  const gf = (Wf = (Mf = tf == null ? void 0 : tf.feature) == null ? void 0 : Mf.properties) == null ? void 0 : Wf.type;
@@ -19873,9 +19873,9 @@ function useHooks$9({
19873
19873
  }), lt({
19874
19874
  type: gf,
19875
19875
  controlPoints: (mp = (pp = tf == null ? void 0 : tf.feature) == null ? void 0 : pp.properties) == null ? void 0 : mp.positions
19876
- }), (nf = (al = tf == null ? void 0 : tf.feature) == null ? void 0 : al.properties) != null && nf.extrudedHeight && (ba(tf.feature.properties.extrudedHeight), ms(
19876
+ }), (nf = (al = tf == null ? void 0 : tf.feature) == null ? void 0 : al.properties) != null && nf.extrudedHeight && (ba(tf.feature.properties.extrudedHeight), Xs(
19877
19877
  (If = n.current) == null ? void 0 : If.getExtrudedPoint(
19878
- (Ff = (lf = tf == null ? void 0 : tf.feature) == null ? void 0 : lf.properties) == null ? void 0 : Ff.positions[((Lf = (bf = tf == null ? void 0 : tf.feature) == null ? void 0 : bf.properties) == null ? void 0 : Lf.positions.length) - 1],
19878
+ (Ff = (uf = tf == null ? void 0 : tf.feature) == null ? void 0 : uf.properties) == null ? void 0 : Ff.positions[((Of = (bf = tf == null ? void 0 : tf.feature) == null ? void 0 : bf.properties) == null ? void 0 : Of.positions.length) - 1],
19879
19879
  tf.feature.properties.extrudedHeight
19880
19880
  )
19881
19881
  ));
@@ -19916,12 +19916,12 @@ function useHooks$9({
19916
19916
  send: se,
19917
19917
  setGeometryOptions: lt,
19918
19918
  markerGeometryRef: Gd,
19919
- pointerLocationRef: uf,
19919
+ pointerLocationRef: lf,
19920
19920
  geometryOptions: yt,
19921
19921
  updateGeometryOptions: sf,
19922
19922
  extrudedHeight: pi,
19923
19923
  setExtrudedHeight: ba,
19924
- setExtrudedPoint: ms,
19924
+ setExtrudedPoint: Xs,
19925
19925
  updateCentroidPoints: Tf,
19926
19926
  createFeature: mf,
19927
19927
  handleFeatureCreate: gd,
@@ -19939,7 +19939,7 @@ function useHooks$9({
19939
19939
  return;
19940
19940
  if (tf.key === "Escape") {
19941
19941
  se({ type: "CANCEL" });
19942
- const Xf = uf.current != null ? (gf = n.current) == null ? void 0 : gf.toXYZ(...uf.current) : void 0;
19942
+ const Xf = lf.current != null ? (gf = n.current) == null ? void 0 : gf.toXYZ(...lf.current) : void 0;
19943
19943
  sf(Xf);
19944
19944
  } else if (tf.key === "Delete" && Pe.matches("idle") && (c != null && c.id)) {
19945
19945
  const Xf = (Mf = o.current) == null ? void 0 : Mf.selectedLayer();
@@ -20030,11 +20030,11 @@ function useHooks$9({
20030
20030
  }) : !gf && ((Pe.context.type === "polygon" || Pe.context.type === "extrudedPolygon") && Pe.context.controlPoints.length > 3 || Pe.context.type === "polyline" && Pe.context.controlPoints.length > 2) && Vd(tf));
20031
20031
  },
20032
20032
  [Pe, se]
20033
- ), Of = useGet(mt), kf = useGet(La);
20033
+ ), Lf = useGet(mt), kf = useGet(La);
20034
20034
  useImperativeHandle(
20035
20035
  t,
20036
20036
  () => ({
20037
- getType: Of,
20037
+ getType: Lf,
20038
20038
  setType: zi,
20039
20039
  getOptions: kf,
20040
20040
  overrideOptions: ma,
@@ -20045,7 +20045,7 @@ function useHooks$9({
20045
20045
  onEditFeatureChange: Nf.current
20046
20046
  }),
20047
20047
  [
20048
- Of,
20048
+ Lf,
20049
20049
  zi,
20050
20050
  kf,
20051
20051
  ma,
@@ -20110,7 +20110,7 @@ function useHooks$9({
20110
20110
  catchedExtrudedPoint: tp,
20111
20111
  extrudedHeight: pi,
20112
20112
  extrudedPoint: Sc,
20113
- centroidBasePoint: Xs,
20113
+ centroidBasePoint: ms,
20114
20114
  centroidExtrudedPoint: Nl,
20115
20115
  geometryOptions: yt,
20116
20116
  color: La.color,
@@ -20259,16 +20259,16 @@ function Gt$1() {
20259
20259
  var Pe = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
20260
20260
  function se(al) {
20261
20261
  {
20262
- for (var nf = arguments.length, lf = new Array(nf > 1 ? nf - 1 : 0), bf = 1; bf < nf; bf++)
20263
- lf[bf - 1] = arguments[bf];
20264
- mt("error", al, lf);
20262
+ for (var nf = arguments.length, uf = new Array(nf > 1 ? nf - 1 : 0), bf = 1; bf < nf; bf++)
20263
+ uf[bf - 1] = arguments[bf];
20264
+ mt("error", al, uf);
20265
20265
  }
20266
20266
  }
20267
- function mt(al, nf, lf) {
20267
+ function mt(al, nf, uf) {
20268
20268
  {
20269
- var bf = Pe.ReactDebugCurrentFrame, Lf = bf.getStackAddendum();
20270
- Lf !== "" && (nf += "%s", lf = lf.concat([Lf]));
20271
- var Ff = lf.map(function(If) {
20269
+ var bf = Pe.ReactDebugCurrentFrame, Of = bf.getStackAddendum();
20270
+ Of !== "" && (nf += "%s", uf = uf.concat([Of]));
20271
+ var Ff = uf.map(function(If) {
20272
20272
  return String(If);
20273
20273
  });
20274
20274
  Ff.unshift("Warning: " + nf), Function.prototype.apply.call(console[al], console, Ff);
@@ -20283,12 +20283,12 @@ function Gt$1() {
20283
20283
  // with.
20284
20284
  al.$$typeof === fa || al.getModuleId !== void 0));
20285
20285
  }
20286
- function Ra(al, nf, lf) {
20286
+ function Ra(al, nf, uf) {
20287
20287
  var bf = al.displayName;
20288
20288
  if (bf)
20289
20289
  return bf;
20290
- var Lf = nf.displayName || nf.name || "";
20291
- return Lf !== "" ? lf + "(" + Lf + ")" : lf;
20290
+ var Of = nf.displayName || nf.name || "";
20291
+ return Of !== "" ? uf + "(" + Of + ")" : uf;
20292
20292
  }
20293
20293
  function ma(al) {
20294
20294
  return al.displayName || "Context";
@@ -20320,15 +20320,15 @@ function Gt$1() {
20320
20320
  var nf = al;
20321
20321
  return ma(nf) + ".Consumer";
20322
20322
  case h:
20323
- var lf = al;
20324
- return ma(lf._context) + ".Provider";
20323
+ var uf = al;
20324
+ return ma(uf._context) + ".Provider";
20325
20325
  case y:
20326
20326
  return Ra(al, al.render, "ForwardRef");
20327
20327
  case L:
20328
20328
  var bf = al.displayName || null;
20329
20329
  return bf !== null ? bf : yt(al.type) || "Memo";
20330
20330
  case F: {
20331
- var Lf = al, Ff = Lf._payload, If = Lf._init;
20331
+ var Of = al, Ff = Of._payload, If = Of._init;
20332
20332
  try {
20333
20333
  return yt(If(Ff));
20334
20334
  } catch {
@@ -20338,14 +20338,14 @@ function Gt$1() {
20338
20338
  }
20339
20339
  return null;
20340
20340
  }
20341
- var lt = Object.assign, pi = 0, ba, Sc, ms, Xs, yu, Nl, pu;
20341
+ var lt = Object.assign, pi = 0, ba, Sc, Xs, ms, yu, Nl, pu;
20342
20342
  function Ru() {
20343
20343
  }
20344
20344
  Ru.__reactDisabledLog = !0;
20345
20345
  function Vd() {
20346
20346
  {
20347
20347
  if (pi === 0) {
20348
- ba = console.log, Sc = console.info, ms = console.warn, Xs = console.error, yu = console.group, Nl = console.groupCollapsed, pu = console.groupEnd;
20348
+ ba = console.log, Sc = console.info, Xs = console.warn, ms = console.error, yu = console.group, Nl = console.groupCollapsed, pu = console.groupEnd;
20349
20349
  var al = {
20350
20350
  configurable: !0,
20351
20351
  enumerable: !0,
@@ -20381,10 +20381,10 @@ function Gt$1() {
20381
20381
  value: Sc
20382
20382
  }),
20383
20383
  warn: lt({}, al, {
20384
- value: ms
20384
+ value: Xs
20385
20385
  }),
20386
20386
  error: lt({}, al, {
20387
- value: Xs
20387
+ value: ms
20388
20388
  }),
20389
20389
  group: lt({}, al, {
20390
20390
  value: yu
@@ -20400,14 +20400,14 @@ function Gt$1() {
20400
20400
  pi < 0 && se("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
20401
20401
  }
20402
20402
  }
20403
- var uf = Pe.ReactCurrentDispatcher, hf;
20404
- function mf(al, nf, lf) {
20403
+ var lf = Pe.ReactCurrentDispatcher, hf;
20404
+ function mf(al, nf, uf) {
20405
20405
  {
20406
20406
  if (hf === void 0)
20407
20407
  try {
20408
20408
  throw Error();
20409
- } catch (Lf) {
20410
- var bf = Lf.stack.trim().match(/\n( *(at )?)/);
20409
+ } catch (Of) {
20410
+ var bf = Of.stack.trim().match(/\n( *(at )?)/);
20411
20411
  hf = bf && bf[1] || "";
20412
20412
  }
20413
20413
  return `
@@ -20423,16 +20423,16 @@ function Gt$1() {
20423
20423
  if (!al || pf)
20424
20424
  return "";
20425
20425
  {
20426
- var lf = sf.get(al);
20427
- if (lf !== void 0)
20428
- return lf;
20426
+ var uf = sf.get(al);
20427
+ if (uf !== void 0)
20428
+ return uf;
20429
20429
  }
20430
20430
  var bf;
20431
20431
  pf = !0;
20432
- var Lf = Error.prepareStackTrace;
20432
+ var Of = Error.prepareStackTrace;
20433
20433
  Error.prepareStackTrace = void 0;
20434
20434
  var Ff;
20435
- Ff = uf.current, uf.current = null, Vd();
20435
+ Ff = lf.current, lf.current = null, Vd();
20436
20436
  try {
20437
20437
  if (nf) {
20438
20438
  var If = function() {
@@ -20485,19 +20485,19 @@ function Gt$1() {
20485
20485
  }
20486
20486
  }
20487
20487
  } finally {
20488
- pf = !1, uf.current = Ff, Gd(), Error.prepareStackTrace = Lf;
20488
+ pf = !1, lf.current = Ff, Gd(), Error.prepareStackTrace = Of;
20489
20489
  }
20490
20490
  var bp = al ? al.displayName || al.name : "", cp = bp ? mf(bp) : "";
20491
20491
  return typeof al == "function" && sf.set(al, cp), cp;
20492
20492
  }
20493
- function vf(al, nf, lf) {
20493
+ function vf(al, nf, uf) {
20494
20494
  return Tf(al, !1);
20495
20495
  }
20496
20496
  function Wa(al) {
20497
20497
  var nf = al.prototype;
20498
20498
  return !!(nf && nf.isReactComponent);
20499
20499
  }
20500
- function af(al, nf, lf) {
20500
+ function af(al, nf, uf) {
20501
20501
  if (al == null)
20502
20502
  return "";
20503
20503
  if (typeof al == "function")
@@ -20515,11 +20515,11 @@ function Gt$1() {
20515
20515
  case y:
20516
20516
  return vf(al.render);
20517
20517
  case L:
20518
- return af(al.type, nf, lf);
20518
+ return af(al.type, nf, uf);
20519
20519
  case F: {
20520
- var bf = al, Lf = bf._payload, Ff = bf._init;
20520
+ var bf = al, Of = bf._payload, Ff = bf._init;
20521
20521
  try {
20522
- return af(Ff(Lf), nf, lf);
20522
+ return af(Ff(Of), nf, uf);
20523
20523
  } catch {
20524
20524
  }
20525
20525
  }
@@ -20529,12 +20529,12 @@ function Gt$1() {
20529
20529
  var Xd = Object.prototype.hasOwnProperty, gd = {}, pd = Pe.ReactDebugCurrentFrame;
20530
20530
  function Zd(al) {
20531
20531
  if (al) {
20532
- var nf = al._owner, lf = af(al.type, al._source, nf ? nf.type : null);
20533
- pd.setExtraStackFrame(lf);
20532
+ var nf = al._owner, uf = af(al.type, al._source, nf ? nf.type : null);
20533
+ pd.setExtraStackFrame(uf);
20534
20534
  } else
20535
20535
  pd.setExtraStackFrame(null);
20536
20536
  }
20537
- function cf(al, nf, lf, bf, Lf) {
20537
+ function cf(al, nf, uf, bf, Of) {
20538
20538
  {
20539
20539
  var Ff = Function.call.bind(Xd);
20540
20540
  for (var If in al)
@@ -20542,14 +20542,14 @@ function Gt$1() {
20542
20542
  var Vf = void 0;
20543
20543
  try {
20544
20544
  if (typeof al[If] != "function") {
20545
- var Gf = Error((bf || "React class") + ": " + lf + " type `" + If + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof al[If] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
20545
+ var Gf = Error((bf || "React class") + ": " + uf + " type `" + If + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof al[If] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
20546
20546
  throw Gf.name = "Invariant Violation", Gf;
20547
20547
  }
20548
- Vf = al[If](nf, If, bf, lf, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
20548
+ Vf = al[If](nf, If, bf, uf, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
20549
20549
  } catch (Df) {
20550
20550
  Vf = Df;
20551
20551
  }
20552
- Vf && !(Vf instanceof Error) && (Zd(Lf), se("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", bf || "React class", lf, If, typeof Vf), Zd(null)), Vf instanceof Error && !(Vf.message in gd) && (gd[Vf.message] = !0, Zd(Lf), se("Failed %s type: %s", lf, Vf.message), Zd(null));
20552
+ Vf && !(Vf instanceof Error) && (Zd(Of), se("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", bf || "React class", uf, If, typeof Vf), Zd(null)), Vf instanceof Error && !(Vf.message in gd) && (gd[Vf.message] = !0, Zd(Of), se("Failed %s type: %s", uf, Vf.message), Zd(null));
20553
20553
  }
20554
20554
  }
20555
20555
  }
@@ -20559,8 +20559,8 @@ function Gt$1() {
20559
20559
  }
20560
20560
  function df(al) {
20561
20561
  {
20562
- var nf = typeof Symbol == "function" && Symbol.toStringTag, lf = nf && al[Symbol.toStringTag] || al.constructor.name || "Object";
20563
- return lf;
20562
+ var nf = typeof Symbol == "function" && Symbol.toStringTag, uf = nf && al[Symbol.toStringTag] || al.constructor.name || "Object";
20563
+ return uf;
20564
20564
  }
20565
20565
  }
20566
20566
  function Cf(al) {
@@ -20604,34 +20604,34 @@ function Gt$1() {
20604
20604
  }
20605
20605
  function jf(al, nf) {
20606
20606
  {
20607
- var lf = function() {
20607
+ var uf = function() {
20608
20608
  $f || ($f = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", nf));
20609
20609
  };
20610
- lf.isReactWarning = !0, Object.defineProperty(al, "key", {
20611
- get: lf,
20610
+ uf.isReactWarning = !0, Object.defineProperty(al, "key", {
20611
+ get: uf,
20612
20612
  configurable: !0
20613
20613
  });
20614
20614
  }
20615
20615
  }
20616
20616
  function rp(al, nf) {
20617
20617
  {
20618
- var lf = function() {
20618
+ var uf = function() {
20619
20619
  xf || (xf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", nf));
20620
20620
  };
20621
- lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
20622
- get: lf,
20621
+ uf.isReactWarning = !0, Object.defineProperty(al, "ref", {
20622
+ get: uf,
20623
20623
  configurable: !0
20624
20624
  });
20625
20625
  }
20626
20626
  }
20627
- var tp = function(al, nf, lf, bf, Lf, Ff, If) {
20627
+ var tp = function(al, nf, uf, bf, Of, Ff, If) {
20628
20628
  var Vf = {
20629
20629
  // This tag allows us to uniquely identify this as a React Element
20630
20630
  $$typeof: n,
20631
20631
  // Built-in properties that belong on the element
20632
20632
  type: al,
20633
20633
  key: nf,
20634
- ref: lf,
20634
+ ref: uf,
20635
20635
  props: If,
20636
20636
  // Record the component responsible for creating this element.
20637
20637
  _owner: Ff
@@ -20650,13 +20650,13 @@ function Gt$1() {
20650
20650
  configurable: !1,
20651
20651
  enumerable: !1,
20652
20652
  writable: !1,
20653
- value: Lf
20653
+ value: Of
20654
20654
  }), Object.freeze && (Object.freeze(Vf.props), Object.freeze(Vf)), Vf;
20655
20655
  };
20656
- function np(al, nf, lf, bf, Lf) {
20656
+ function np(al, nf, uf, bf, Of) {
20657
20657
  {
20658
20658
  var Ff, If = {}, Vf = null, Gf = null;
20659
- lf !== void 0 && (_f(lf), Vf = "" + lf), Yf(nf) && (_f(nf.key), Vf = "" + nf.key), wf(nf) && (Gf = nf.ref, Nf(nf, Lf));
20659
+ uf !== void 0 && (_f(uf), Vf = "" + uf), Yf(nf) && (_f(nf.key), Vf = "" + nf.key), wf(nf) && (Gf = nf.ref, Nf(nf, Of));
20660
20660
  for (Ff in nf)
20661
20661
  Xd.call(nf, Ff) && !Af.hasOwnProperty(Ff) && (If[Ff] = nf[Ff]);
20662
20662
  if (al && al.defaultProps) {
@@ -20668,16 +20668,16 @@ function Gt$1() {
20668
20668
  var Zf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
20669
20669
  Vf && jf(If, Zf), Gf && rp(If, Zf);
20670
20670
  }
20671
- return tp(al, Vf, Gf, Lf, bf, Pf.current, If);
20671
+ return tp(al, Vf, Gf, Of, bf, Pf.current, If);
20672
20672
  }
20673
20673
  }
20674
- var Sf = Pe.ReactCurrentOwner, Of = Pe.ReactDebugCurrentFrame;
20674
+ var Sf = Pe.ReactCurrentOwner, Lf = Pe.ReactDebugCurrentFrame;
20675
20675
  function kf(al) {
20676
20676
  if (al) {
20677
- var nf = al._owner, lf = af(al.type, al._source, nf ? nf.type : null);
20678
- Of.setExtraStackFrame(lf);
20677
+ var nf = al._owner, uf = af(al.type, al._source, nf ? nf.type : null);
20678
+ Lf.setExtraStackFrame(uf);
20679
20679
  } else
20680
- Of.setExtraStackFrame(null);
20680
+ Lf.setExtraStackFrame(null);
20681
20681
  }
20682
20682
  var Bf;
20683
20683
  Bf = !1;
@@ -20704,10 +20704,10 @@ Check the render method of \`` + al + "`.";
20704
20704
  {
20705
20705
  var nf = ep();
20706
20706
  if (!nf) {
20707
- var lf = typeof al == "string" ? al : al.displayName || al.name;
20708
- lf && (nf = `
20707
+ var uf = typeof al == "string" ? al : al.displayName || al.name;
20708
+ uf && (nf = `
20709
20709
 
20710
- Check the top-level render call using <` + lf + ">.");
20710
+ Check the top-level render call using <` + uf + ">.");
20711
20711
  }
20712
20712
  return nf;
20713
20713
  }
@@ -20717,12 +20717,12 @@ Check the top-level render call using <` + lf + ">.");
20717
20717
  if (!al._store || al._store.validated || al.key != null)
20718
20718
  return;
20719
20719
  al._store.validated = !0;
20720
- var lf = tf(nf);
20721
- if (Ef[lf])
20720
+ var uf = tf(nf);
20721
+ if (Ef[uf])
20722
20722
  return;
20723
- Ef[lf] = !0;
20723
+ Ef[uf] = !0;
20724
20724
  var bf = "";
20725
- al && al._owner && al._owner !== Sf.current && (bf = " It was passed a child from " + yt(al._owner.type) + "."), kf(al), se('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', lf, bf), kf(null);
20725
+ al && al._owner && al._owner !== Sf.current && (bf = " It was passed a child from " + yt(al._owner.type) + "."), kf(al), se('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', uf, bf), kf(null);
20726
20726
  }
20727
20727
  }
20728
20728
  function Mf(al, nf) {
@@ -20730,16 +20730,16 @@ Check the top-level render call using <` + lf + ">.");
20730
20730
  if (typeof al != "object")
20731
20731
  return;
20732
20732
  if (rf(al))
20733
- for (var lf = 0; lf < al.length; lf++) {
20734
- var bf = al[lf];
20733
+ for (var uf = 0; uf < al.length; uf++) {
20734
+ var bf = al[uf];
20735
20735
  Qf(bf) && gf(bf, nf);
20736
20736
  }
20737
20737
  else if (Qf(al))
20738
20738
  al._store && (al._store.validated = !0);
20739
20739
  else if (al) {
20740
- var Lf = nt(al);
20741
- if (typeof Lf == "function" && Lf !== al.entries)
20742
- for (var Ff = Lf.call(al), If; !(If = Ff.next()).done; )
20740
+ var Of = nt(al);
20741
+ if (typeof Of == "function" && Of !== al.entries)
20742
+ for (var Ff = Of.call(al), If; !(If = Ff.next()).done; )
20743
20743
  Qf(If.value) && gf(If.value, nf);
20744
20744
  }
20745
20745
  }
@@ -20749,30 +20749,30 @@ Check the top-level render call using <` + lf + ">.");
20749
20749
  var nf = al.type;
20750
20750
  if (nf == null || typeof nf == "string")
20751
20751
  return;
20752
- var lf;
20752
+ var uf;
20753
20753
  if (typeof nf == "function")
20754
- lf = nf.propTypes;
20754
+ uf = nf.propTypes;
20755
20755
  else if (typeof nf == "object" && (nf.$$typeof === y || // Note: Memo only checks outer props here.
20756
20756
  // Inner props are checked in the reconciler.
20757
20757
  nf.$$typeof === L))
20758
- lf = nf.propTypes;
20758
+ uf = nf.propTypes;
20759
20759
  else
20760
20760
  return;
20761
- if (lf) {
20761
+ if (uf) {
20762
20762
  var bf = yt(nf);
20763
- cf(lf, al.props, "prop", bf, al);
20763
+ cf(uf, al.props, "prop", bf, al);
20764
20764
  } else if (nf.PropTypes !== void 0 && !Bf) {
20765
20765
  Bf = !0;
20766
- var Lf = yt(nf);
20767
- se("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Lf || "Unknown");
20766
+ var Of = yt(nf);
20767
+ se("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Of || "Unknown");
20768
20768
  }
20769
20769
  typeof nf.getDefaultProps == "function" && !nf.getDefaultProps.isReactClassApproved && se("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
20770
20770
  }
20771
20771
  }
20772
20772
  function Xf(al) {
20773
20773
  {
20774
- for (var nf = Object.keys(al.props), lf = 0; lf < nf.length; lf++) {
20775
- var bf = nf[lf];
20774
+ for (var nf = Object.keys(al.props), uf = 0; uf < nf.length; uf++) {
20775
+ var bf = nf[uf];
20776
20776
  if (bf !== "children" && bf !== "key") {
20777
20777
  kf(al), se("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", bf), kf(null);
20778
20778
  break;
@@ -20781,7 +20781,7 @@ Check the top-level render call using <` + lf + ">.");
20781
20781
  al.ref !== null && (kf(al), se("Invalid attribute `ref` supplied to `React.Fragment`."), kf(null));
20782
20782
  }
20783
20783
  }
20784
- function qf(al, nf, lf, bf, Lf, Ff) {
20784
+ function qf(al, nf, uf, bf, Of, Ff) {
20785
20785
  {
20786
20786
  var If = La(al);
20787
20787
  if (!If) {
@@ -20792,7 +20792,7 @@ Check the top-level render call using <` + lf + ">.");
20792
20792
  var Df;
20793
20793
  al === null ? Df = "null" : rf(al) ? Df = "array" : al !== void 0 && al.$$typeof === n ? (Df = "<" + (yt(al.type) || "Unknown") + " />", Vf = " Did you accidentally export a JSX literal instead of a component?") : Df = typeof al, se("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Df, Vf);
20794
20794
  }
20795
- var Zf = np(al, nf, lf, Lf, Ff);
20795
+ var Zf = np(al, nf, uf, Of, Ff);
20796
20796
  if (Zf == null)
20797
20797
  return Zf;
20798
20798
  if (If) {
@@ -20811,11 +20811,11 @@ Check the top-level render call using <` + lf + ">.");
20811
20811
  return al === s ? Xf(Zf) : Wf(Zf), Zf;
20812
20812
  }
20813
20813
  }
20814
- function up(al, nf, lf) {
20815
- return qf(al, nf, lf, !0);
20814
+ function up(al, nf, uf) {
20815
+ return qf(al, nf, uf, !0);
20816
20816
  }
20817
- function dp(al, nf, lf) {
20818
- return qf(al, nf, lf, !1);
20817
+ function dp(al, nf, uf) {
20818
+ return qf(al, nf, uf, !1);
20819
20819
  }
20820
20820
  var pp = dp, mp = up;
20821
20821
  pe$1.Fragment = s, pe$1.jsx = pp, pe$1.jsxs = mp;
@@ -20981,15 +20981,15 @@ const Wt$1 = ({
20981
20981
  var ba;
20982
20982
  if (!N.current)
20983
20983
  return;
20984
- const Sc = N.current, ms = Object.keys(pi), Xs = Object.keys(h || []), yu = ms.concat(
20985
- Object.keys(se.current).filter((Ru) => !ms.includes(Ru))
20984
+ const Sc = N.current, Xs = Object.keys(pi), ms = Object.keys(h || []), yu = Xs.concat(
20985
+ Object.keys(se.current).filter((Ru) => !Xs.includes(Ru))
20986
20986
  ).filter((Ru) => se.current[Ru] !== pi[Ru]).map((Ru) => [Ru, se.current[Ru], pi[Ru]]), Nl = [];
20987
20987
  for (const [Ru, Vd, Gd] of yu)
20988
20988
  if (d != null && d.includes(Ru))
20989
20989
  Nl.push(Ru);
20990
- else if (ve$1(Xs, Ru)) {
20991
- const uf = h == null ? void 0 : h[Ru], hf = Sc[uf];
20992
- hf instanceof Event$2 && (typeof Vd > "u" ? (hf.addEventListener(Gd), nt.current[uf] = Gd) : typeof Gd > "u" ? (hf.removeEventListener(Vd), delete nt.current[uf]) : (hf.removeEventListener(Vd), hf.addEventListener(Gd)));
20990
+ else if (ve$1(ms, Ru)) {
20991
+ const lf = h == null ? void 0 : h[Ru], hf = Sc[lf];
20992
+ hf instanceof Event$2 && (typeof Vd > "u" ? (hf.addEventListener(Gd), nt.current[lf] = Gd) : typeof Gd > "u" ? (hf.removeEventListener(Vd), delete nt.current[lf]) : (hf.removeEventListener(Vd), hf.addEventListener(Gd)));
20993
20993
  } else
20994
20994
  Ru !== "children" && !Ie$1.includes(Ru) && !(p != null && p.includes(Ru)) && (Sc[Ru] = Gd);
20995
20995
  const pu = P ? (ba = z.current) == null ? void 0 : ba[ce$1] : Sa;
@@ -21007,18 +21007,18 @@ const Wt$1 = ({
21007
21007
  // eslint-disable-line react-hooks/exhaustive-deps
21008
21008
  ), ma = useCallback(async () => {
21009
21009
  var pi;
21010
- await new Promise((Xs) => queueMicrotask(() => Xs(void 0)));
21010
+ await new Promise((ms) => queueMicrotask(() => ms(void 0)));
21011
21011
  const ba = n == null ? void 0 : n(W, Pe.current, _i.current);
21012
21012
  let Sc;
21013
21013
  if (J(ba) ? Sc = await ba : Sc = ba, Array.isArray(Sc) ? (N.current = Sc[0], zi.current = Sc[1]) : N.current = Sc, y)
21014
21014
  await Ra(Pe.current);
21015
21015
  else {
21016
21016
  if (N.current && h) {
21017
- const Xs = N.current;
21017
+ const ms = N.current;
21018
21018
  for (const yu of Object.keys(Pe.current)) {
21019
21019
  const Nl = h[yu];
21020
21020
  if (Nl) {
21021
- const pu = Pe.current[yu], Ru = Xs[Nl];
21021
+ const pu = Pe.current[yu], Ru = ms[Nl];
21022
21022
  pu && Ru instanceof Event$2 && Ru.addEventListener(pu);
21023
21023
  }
21024
21024
  }
@@ -21029,19 +21029,19 @@ const Wt$1 = ({
21029
21029
  ...W,
21030
21030
  ...s(N.current, W, L, zi.current)
21031
21031
  });
21032
- const ms = P ? (pi = z.current) == null ? void 0 : pi[ce$1] : Sa;
21033
- S && ms && N.current && ms.setEvents(P ? null : N.current, Pe.current), La.current || kt(!0);
21032
+ const Xs = P ? (pi = z.current) == null ? void 0 : pi[ce$1] : Sa;
21033
+ S && Xs && N.current && Xs.setEvents(P ? null : N.current, Pe.current), La.current || kt(!0);
21034
21034
  }, []), yt = useCallback(() => {
21035
21035
  kt(!1), mn.current = !1;
21036
21036
  }, []), lt = useCallback(async () => {
21037
21037
  var pi, ba;
21038
- await new Promise((ms) => queueMicrotask(() => ms(void 0))), fa.current && (await fa.current, fa.current = void 0), N.current && o && o(N.current, W, _i.current, zi.current);
21038
+ await new Promise((Xs) => queueMicrotask(() => Xs(void 0))), fa.current && (await fa.current, fa.current = void 0), N.current && o && o(N.current, W, _i.current, zi.current);
21039
21039
  const Sc = P ? (pi = z.current) == null ? void 0 : pi[ce$1] : Sa;
21040
21040
  if (S && Sc && N.current && Sc.clearEvents(P ? null : N.current), N.current && !It$1(N.current)) {
21041
- const ms = Object.keys(nt.current);
21042
- for (const Xs of ms) {
21043
- const yu = N.current[Xs];
21044
- (ba = yu == null ? void 0 : yu.removeEventListener) == null || ba.call(yu, nt.current[Xs]);
21041
+ const Xs = Object.keys(nt.current);
21042
+ for (const ms of Xs) {
21043
+ const yu = N.current[ms];
21044
+ (ba = yu == null ? void 0 : yu.removeEventListener) == null || ba.call(yu, nt.current[ms]);
21045
21045
  }
21046
21046
  }
21047
21047
  nt.current = {}, z.current = void 0, zi.current = void 0, N.current = void 0;
@@ -24186,11 +24186,11 @@ var js$2 = {};
24186
24186
  if (ba[ba.length - 1][Sc] !== ba[0][Sc])
24187
24187
  throw new Error("First and last Position are not equivalent.");
24188
24188
  }
24189
- var ms = {
24189
+ var Xs = {
24190
24190
  type: "Polygon",
24191
24191
  coordinates: Ra
24192
24192
  };
24193
- return n(ms, ma, yt);
24193
+ return n(Xs, ma, yt);
24194
24194
  }
24195
24195
  t.polygon = d;
24196
24196
  function h(Ra, ma, yt) {
@@ -25689,10 +25689,10 @@ const getRectangeParamsFromSpace = (t) => {
25689
25689
  useWindowEvent("keydown", (sf) => {
25690
25690
  sf.code === "Escape" && ba();
25691
25691
  });
25692
- const ms = useRef(!1), Xs = useRef(lt);
25693
- Xs.current = lt;
25692
+ const Xs = useRef(!1), ms = useRef(lt);
25693
+ ms.current = lt;
25694
25694
  const yu = useCallback((sf) => {
25695
- Xs.current(sf);
25695
+ ms.current(sf);
25696
25696
  }, []), Nl = useRef(pi);
25697
25697
  Nl.current = pi;
25698
25698
  const pu = useCallback((sf) => {
@@ -25703,13 +25703,13 @@ const getRectangeParamsFromSpace = (t) => {
25703
25703
  Ru.current();
25704
25704
  }, []);
25705
25705
  useEffect(() => {
25706
- ms.current || !n.current || (ms.current = !0, n.current.onMouseUp(yu), n.current.onMouseMove(pu), n.current.onRightClick(Vd));
25706
+ Xs.current || !n.current || (Xs.current = !0, n.current.onMouseUp(yu), n.current.onMouseMove(pu), n.current.onRightClick(Vd));
25707
25707
  }, [n, yu, pu, Vd]);
25708
25708
  const Gd = useRef(p);
25709
25709
  Gd.current = p;
25710
- const uf = useRef(yt);
25711
- uf.current = yt, useEffect(() => {
25712
- pf.current || c !== "spatialId" && Gd.current !== "idle" && uf.current();
25710
+ const lf = useRef(yt);
25711
+ lf.current = yt, useEffect(() => {
25712
+ pf.current || c !== "spatialId" && Gd.current !== "idle" && lf.current();
25713
25713
  }, [c]);
25714
25714
  const hf = useRef([]), mf = useCallback((sf) => {
25715
25715
  hf.current.push(sf);
@@ -25897,8 +25897,8 @@ function MapFn({
25897
25897
  geoidRef: pi,
25898
25898
  selectedLayer: ba,
25899
25899
  requestingRenderMode: Sc,
25900
- handleLayerSelect: ms,
25901
- handleEngineLayerSelect: Xs,
25900
+ handleLayerSelect: Xs,
25901
+ handleEngineLayerSelect: ms,
25902
25902
  sketchEditingFeature: yu,
25903
25903
  setSketchEditingFeature: Nl,
25904
25904
  handleEngineMount: pu,
@@ -25911,7 +25911,7 @@ function MapFn({
25911
25911
  onLayerSelect: L,
25912
25912
  onMount: mn,
25913
25913
  onAPIReady: _i
25914
- }), uf = useMemo(
25914
+ }), lf = useMemo(
25915
25915
  () => ({
25916
25916
  layerId: ba.layerId,
25917
25917
  featureId: ba.featureId
@@ -25924,12 +25924,12 @@ function MapFn({
25924
25924
  ref: Ra,
25925
25925
  isBuilt: o,
25926
25926
  isEditable: s,
25927
- selectedLayerId: uf,
25927
+ selectedLayerId: lf,
25928
25928
  layerSelectionReason: hf,
25929
25929
  layersRef: ma,
25930
25930
  requestingRenderMode: Sc,
25931
25931
  timelineManagerRef: y,
25932
- onLayerSelect: Xs,
25932
+ onLayerSelect: ms,
25933
25933
  featureFlags: kt,
25934
25934
  onMount: pu,
25935
25935
  ...zi,
@@ -25953,7 +25953,7 @@ function MapFn({
25953
25953
  viewerProperty: zi.property,
25954
25954
  requestingRenderMode: Sc,
25955
25955
  sketchEditingFeature: yu,
25956
- onLayerSelect: ms,
25956
+ onLayerSelect: Xs,
25957
25957
  onMount: Ru
25958
25958
  }
25959
25959
  ),
@@ -25966,7 +25966,7 @@ function MapFn({
25966
25966
  interactionMode: S,
25967
25967
  selectedFeature: P,
25968
25968
  SketchComponent: fa == null ? void 0 : fa.sketchComponent,
25969
- onLayerSelect: ms,
25969
+ onLayerSelect: Xs,
25970
25970
  overrideInteractionMode: F,
25971
25971
  onSketchTypeChange: N,
25972
25972
  onSketchFeatureCreate: W,
@@ -27441,8 +27441,8 @@ function scaleToGeodeticSurface(t, n, o, s, c) {
27441
27441
  let mn = (1 - z) * Cartesian3.magnitude(t) / (0.5 * Cartesian3.magnitude(kt)), _i = 0, zi, Sa, fa, La, Ra, ma, yt, lt, pi, ba, Sc;
27442
27442
  do {
27443
27443
  mn -= _i, fa = 1 / (1 + mn * Pe), La = 1 / (1 + mn * se), Ra = 1 / (1 + mn * mt), ma = fa * fa, yt = La * La, lt = Ra * Ra, pi = ma * fa, ba = yt * La, Sc = lt * Ra, zi = L * ma + F * yt + N * lt - 1, Sa = L * pi * Pe + F * ba * se + N * Sc * mt;
27444
- const ms = -2 * Sa;
27445
- _i = zi / ms;
27444
+ const Xs = -2 * Sa;
27445
+ _i = zi / Xs;
27446
27446
  } while (Math.abs(zi) > CesiumMath.EPSILON12);
27447
27447
  return defined(c) ? (c.x = d * fa, c.y = h * La, c.z = p * Ra, c) : new Cartesian3(
27448
27448
  d * fa,
@@ -28900,8 +28900,8 @@ Matrix4.getRotation = function(t, n) {
28900
28900
  };
28901
28901
  Matrix4.multiply = function(t, n, o) {
28902
28902
  Check.typeOf.object("left", t), Check.typeOf.object("right", n), Check.typeOf.object("result", o);
28903
- const s = t[0], c = t[1], d = t[2], h = t[3], p = t[4], y = t[5], S = t[6], P = t[7], L = t[8], F = t[9], N = t[10], W = t[11], z = t[12], nt = t[13], Pe = t[14], se = t[15], mt = n[0], kt = n[1], mn = n[2], _i = n[3], zi = n[4], Sa = n[5], fa = n[6], La = n[7], Ra = n[8], ma = n[9], yt = n[10], lt = n[11], pi = n[12], ba = n[13], Sc = n[14], ms = n[15], Xs = s * mt + p * kt + L * mn + z * _i, yu = c * mt + y * kt + F * mn + nt * _i, Nl = d * mt + S * kt + N * mn + Pe * _i, pu = h * mt + P * kt + W * mn + se * _i, Ru = s * zi + p * Sa + L * fa + z * La, Vd = c * zi + y * Sa + F * fa + nt * La, Gd = d * zi + S * Sa + N * fa + Pe * La, uf = h * zi + P * Sa + W * fa + se * La, hf = s * Ra + p * ma + L * yt + z * lt, mf = c * Ra + y * ma + F * yt + nt * lt, pf = d * Ra + S * ma + N * yt + Pe * lt, sf = h * Ra + P * ma + W * yt + se * lt, yf = s * pi + p * ba + L * Sc + z * ms, Tf = c * pi + y * ba + F * Sc + nt * ms, vf = d * pi + S * ba + N * Sc + Pe * ms, Wa = h * pi + P * ba + W * Sc + se * ms;
28904
- return o[0] = Xs, o[1] = yu, o[2] = Nl, o[3] = pu, o[4] = Ru, o[5] = Vd, o[6] = Gd, o[7] = uf, o[8] = hf, o[9] = mf, o[10] = pf, o[11] = sf, o[12] = yf, o[13] = Tf, o[14] = vf, o[15] = Wa, o;
28903
+ const s = t[0], c = t[1], d = t[2], h = t[3], p = t[4], y = t[5], S = t[6], P = t[7], L = t[8], F = t[9], N = t[10], W = t[11], z = t[12], nt = t[13], Pe = t[14], se = t[15], mt = n[0], kt = n[1], mn = n[2], _i = n[3], zi = n[4], Sa = n[5], fa = n[6], La = n[7], Ra = n[8], ma = n[9], yt = n[10], lt = n[11], pi = n[12], ba = n[13], Sc = n[14], Xs = n[15], ms = s * mt + p * kt + L * mn + z * _i, yu = c * mt + y * kt + F * mn + nt * _i, Nl = d * mt + S * kt + N * mn + Pe * _i, pu = h * mt + P * kt + W * mn + se * _i, Ru = s * zi + p * Sa + L * fa + z * La, Vd = c * zi + y * Sa + F * fa + nt * La, Gd = d * zi + S * Sa + N * fa + Pe * La, lf = h * zi + P * Sa + W * fa + se * La, hf = s * Ra + p * ma + L * yt + z * lt, mf = c * Ra + y * ma + F * yt + nt * lt, pf = d * Ra + S * ma + N * yt + Pe * lt, sf = h * Ra + P * ma + W * yt + se * lt, yf = s * pi + p * ba + L * Sc + z * Xs, Tf = c * pi + y * ba + F * Sc + nt * Xs, vf = d * pi + S * ba + N * Sc + Pe * Xs, Wa = h * pi + P * ba + W * Sc + se * Xs;
28904
+ return o[0] = ms, o[1] = yu, o[2] = Nl, o[3] = pu, o[4] = Ru, o[5] = Vd, o[6] = Gd, o[7] = lf, o[8] = hf, o[9] = mf, o[10] = pf, o[11] = sf, o[12] = yf, o[13] = Tf, o[14] = vf, o[15] = Wa, o;
28905
28905
  };
28906
28906
  Matrix4.add = function(t, n, o) {
28907
28907
  return Check.typeOf.object("left", t), Check.typeOf.object("right", n), Check.typeOf.object("result", o), o[0] = t[0] + n[0], o[1] = t[1] + n[1], o[2] = t[2] + n[2], o[3] = t[3] + n[3], o[4] = t[4] + n[4], o[5] = t[5] + n[5], o[6] = t[6] + n[6], o[7] = t[7] + n[7], o[8] = t[8] + n[8], o[9] = t[9] + n[9], o[10] = t[10] + n[10], o[11] = t[11] + n[11], o[12] = t[12] + n[12], o[13] = t[13] + n[13], o[14] = t[14] + n[14], o[15] = t[15] + n[15], o;
@@ -28911,8 +28911,8 @@ Matrix4.subtract = function(t, n, o) {
28911
28911
  };
28912
28912
  Matrix4.multiplyTransformation = function(t, n, o) {
28913
28913
  Check.typeOf.object("left", t), Check.typeOf.object("right", n), Check.typeOf.object("result", o);
28914
- const s = t[0], c = t[1], d = t[2], h = t[4], p = t[5], y = t[6], S = t[8], P = t[9], L = t[10], F = t[12], N = t[13], W = t[14], z = n[0], nt = n[1], Pe = n[2], se = n[4], mt = n[5], kt = n[6], mn = n[8], _i = n[9], zi = n[10], Sa = n[12], fa = n[13], La = n[14], Ra = s * z + h * nt + S * Pe, ma = c * z + p * nt + P * Pe, yt = d * z + y * nt + L * Pe, lt = s * se + h * mt + S * kt, pi = c * se + p * mt + P * kt, ba = d * se + y * mt + L * kt, Sc = s * mn + h * _i + S * zi, ms = c * mn + p * _i + P * zi, Xs = d * mn + y * _i + L * zi, yu = s * Sa + h * fa + S * La + F, Nl = c * Sa + p * fa + P * La + N, pu = d * Sa + y * fa + L * La + W;
28915
- return o[0] = Ra, o[1] = ma, o[2] = yt, o[3] = 0, o[4] = lt, o[5] = pi, o[6] = ba, o[7] = 0, o[8] = Sc, o[9] = ms, o[10] = Xs, o[11] = 0, o[12] = yu, o[13] = Nl, o[14] = pu, o[15] = 1, o;
28914
+ const s = t[0], c = t[1], d = t[2], h = t[4], p = t[5], y = t[6], S = t[8], P = t[9], L = t[10], F = t[12], N = t[13], W = t[14], z = n[0], nt = n[1], Pe = n[2], se = n[4], mt = n[5], kt = n[6], mn = n[8], _i = n[9], zi = n[10], Sa = n[12], fa = n[13], La = n[14], Ra = s * z + h * nt + S * Pe, ma = c * z + p * nt + P * Pe, yt = d * z + y * nt + L * Pe, lt = s * se + h * mt + S * kt, pi = c * se + p * mt + P * kt, ba = d * se + y * mt + L * kt, Sc = s * mn + h * _i + S * zi, Xs = c * mn + p * _i + P * zi, ms = d * mn + y * _i + L * zi, yu = s * Sa + h * fa + S * La + F, Nl = c * Sa + p * fa + P * La + N, pu = d * Sa + y * fa + L * La + W;
28915
+ return o[0] = Ra, o[1] = ma, o[2] = yt, o[3] = 0, o[4] = lt, o[5] = pi, o[6] = ba, o[7] = 0, o[8] = Sc, o[9] = Xs, o[10] = ms, o[11] = 0, o[12] = yu, o[13] = Nl, o[14] = pu, o[15] = 1, o;
28916
28916
  };
28917
28917
  Matrix4.multiplyByMatrix3 = function(t, n, o) {
28918
28918
  Check.typeOf.object("matrix", t), Check.typeOf.object("rotation", n), Check.typeOf.object("result", o);
@@ -28981,9 +28981,9 @@ Matrix4.inverse = function(t, n) {
28981
28981
  Check.typeOf.object("matrix", t), Check.typeOf.object("result", n);
28982
28982
  const o = t[0], s = t[4], c = t[8], d = t[12], h = t[1], p = t[5], y = t[9], S = t[13], P = t[2], L = t[6], F = t[10], N = t[14], W = t[3], z = t[7], nt = t[11], Pe = t[15];
28983
28983
  let se = F * Pe, mt = N * nt, kt = L * Pe, mn = N * z, _i = L * nt, zi = F * z, Sa = P * Pe, fa = N * W, La = P * nt, Ra = F * W, ma = P * z, yt = L * W;
28984
- const lt = se * p + mn * y + _i * S - (mt * p + kt * y + zi * S), pi = mt * h + Sa * y + Ra * S - (se * h + fa * y + La * S), ba = kt * h + fa * p + ma * S - (mn * h + Sa * p + yt * S), Sc = zi * h + La * p + yt * y - (_i * h + Ra * p + ma * y), ms = mt * s + kt * c + zi * d - (se * s + mn * c + _i * d), Xs = se * o + fa * c + La * d - (mt * o + Sa * c + Ra * d), yu = mn * o + Sa * s + yt * d - (kt * o + fa * s + ma * d), Nl = _i * o + Ra * s + ma * c - (zi * o + La * s + yt * c);
28984
+ const lt = se * p + mn * y + _i * S - (mt * p + kt * y + zi * S), pi = mt * h + Sa * y + Ra * S - (se * h + fa * y + La * S), ba = kt * h + fa * p + ma * S - (mn * h + Sa * p + yt * S), Sc = zi * h + La * p + yt * y - (_i * h + Ra * p + ma * y), Xs = mt * s + kt * c + zi * d - (se * s + mn * c + _i * d), ms = se * o + fa * c + La * d - (mt * o + Sa * c + Ra * d), yu = mn * o + Sa * s + yt * d - (kt * o + fa * s + ma * d), Nl = _i * o + Ra * s + ma * c - (zi * o + La * s + yt * c);
28985
28985
  se = c * S, mt = d * y, kt = s * S, mn = d * p, _i = s * y, zi = c * p, Sa = o * S, fa = d * h, La = o * y, Ra = c * h, ma = o * p, yt = s * h;
28986
- const pu = se * z + mn * nt + _i * Pe - (mt * z + kt * nt + zi * Pe), Ru = mt * W + Sa * nt + Ra * Pe - (se * W + fa * nt + La * Pe), Vd = kt * W + fa * z + ma * Pe - (mn * W + Sa * z + yt * Pe), Gd = zi * W + La * z + yt * nt - (_i * W + Ra * z + ma * nt), uf = kt * F + zi * N + mt * L - (_i * N + se * L + mn * F), hf = La * N + se * P + fa * F - (Sa * F + Ra * N + mt * P), mf = Sa * L + yt * N + mn * P - (ma * N + kt * P + fa * L), pf = ma * F + _i * P + Ra * L - (La * L + yt * F + zi * P);
28986
+ const pu = se * z + mn * nt + _i * Pe - (mt * z + kt * nt + zi * Pe), Ru = mt * W + Sa * nt + Ra * Pe - (se * W + fa * nt + La * Pe), Vd = kt * W + fa * z + ma * Pe - (mn * W + Sa * z + yt * Pe), Gd = zi * W + La * z + yt * nt - (_i * W + Ra * z + ma * nt), lf = kt * F + zi * N + mt * L - (_i * N + se * L + mn * F), hf = La * N + se * P + fa * F - (Sa * F + Ra * N + mt * P), mf = Sa * L + yt * N + mn * P - (ma * N + kt * P + fa * L), pf = ma * F + _i * P + Ra * L - (La * L + yt * F + zi * P);
28987
28987
  let sf = o * lt + s * pi + c * ba + d * Sc;
28988
28988
  if (Math.abs(sf) < CesiumMath.EPSILON21) {
28989
28989
  if (Matrix3.equalsEpsilon(
@@ -28999,7 +28999,7 @@ Matrix4.inverse = function(t, n) {
28999
28999
  "matrix is not invertible because its determinate is zero."
29000
29000
  );
29001
29001
  }
29002
- return sf = 1 / sf, n[0] = lt * sf, n[1] = pi * sf, n[2] = ba * sf, n[3] = Sc * sf, n[4] = ms * sf, n[5] = Xs * sf, n[6] = yu * sf, n[7] = Nl * sf, n[8] = pu * sf, n[9] = Ru * sf, n[10] = Vd * sf, n[11] = Gd * sf, n[12] = uf * sf, n[13] = hf * sf, n[14] = mf * sf, n[15] = pf * sf, n;
29002
+ return sf = 1 / sf, n[0] = lt * sf, n[1] = pi * sf, n[2] = ba * sf, n[3] = Sc * sf, n[4] = Xs * sf, n[5] = ms * sf, n[6] = yu * sf, n[7] = Nl * sf, n[8] = pu * sf, n[9] = Ru * sf, n[10] = Vd * sf, n[11] = Gd * sf, n[12] = lf * sf, n[13] = hf * sf, n[14] = mf * sf, n[15] = pf * sf, n;
29003
29003
  };
29004
29004
  Matrix4.inverseTransformation = function(t, n) {
29005
29005
  Check.typeOf.object("matrix", t), Check.typeOf.object("result", n);
@@ -29717,25 +29717,25 @@ function requirePunycode() {
29717
29717
  return mn(Ru + (kt + 1) * yu / (yu + L));
29718
29718
  }
29719
29719
  function ba(yu) {
29720
- var Nl = [], pu = yu.length, Ru, Vd = 0, Gd = W, uf = N, hf, mf, pf, sf, yf, Tf, vf, Wa, af;
29720
+ var Nl = [], pu = yu.length, Ru, Vd = 0, Gd = W, lf = N, hf, mf, pf, sf, yf, Tf, vf, Wa, af;
29721
29721
  for (hf = yu.lastIndexOf(z), hf < 0 && (hf = 0), mf = 0; mf < hf; ++mf)
29722
29722
  yu.charCodeAt(mf) >= 128 && Sa("not-basic"), Nl.push(yu.charCodeAt(mf));
29723
29723
  for (pf = hf > 0 ? hf + 1 : 0; pf < pu; ) {
29724
- for (sf = Vd, yf = 1, Tf = y; pf >= pu && Sa("invalid-input"), vf = yt(yu.charCodeAt(pf++)), (vf >= y || vf > mn((p - Vd) / yf)) && Sa("overflow"), Vd += vf * yf, Wa = Tf <= uf ? S : Tf >= uf + P ? P : Tf - uf, !(vf < Wa); Tf += y)
29724
+ for (sf = Vd, yf = 1, Tf = y; pf >= pu && Sa("invalid-input"), vf = yt(yu.charCodeAt(pf++)), (vf >= y || vf > mn((p - Vd) / yf)) && Sa("overflow"), Vd += vf * yf, Wa = Tf <= lf ? S : Tf >= lf + P ? P : Tf - lf, !(vf < Wa); Tf += y)
29725
29725
  af = y - Wa, yf > mn(p / af) && Sa("overflow"), yf *= af;
29726
- Ru = Nl.length + 1, uf = pi(Vd - sf, Ru, sf == 0), mn(Vd / Ru) > p - Gd && Sa("overflow"), Gd += mn(Vd / Ru), Vd %= Ru, Nl.splice(Vd++, 0, Gd);
29726
+ Ru = Nl.length + 1, lf = pi(Vd - sf, Ru, sf == 0), mn(Vd / Ru) > p - Gd && Sa("overflow"), Gd += mn(Vd / Ru), Vd %= Ru, Nl.splice(Vd++, 0, Gd);
29727
29727
  }
29728
29728
  return ma(Nl);
29729
29729
  }
29730
29730
  function Sc(yu) {
29731
- var Nl, pu, Ru, Vd, Gd, uf, hf, mf, pf, sf, yf, Tf = [], vf, Wa, af, Xd;
29732
- for (yu = Ra(yu), vf = yu.length, Nl = W, pu = 0, Gd = N, uf = 0; uf < vf; ++uf)
29733
- yf = yu[uf], yf < 128 && Tf.push(_i(yf));
29731
+ var Nl, pu, Ru, Vd, Gd, lf, hf, mf, pf, sf, yf, Tf = [], vf, Wa, af, Xd;
29732
+ for (yu = Ra(yu), vf = yu.length, Nl = W, pu = 0, Gd = N, lf = 0; lf < vf; ++lf)
29733
+ yf = yu[lf], yf < 128 && Tf.push(_i(yf));
29734
29734
  for (Ru = Vd = Tf.length, Vd && Tf.push(z); Ru < vf; ) {
29735
- for (hf = p, uf = 0; uf < vf; ++uf)
29736
- yf = yu[uf], yf >= Nl && yf < hf && (hf = yf);
29737
- for (Wa = Ru + 1, hf - Nl > mn((p - pu) / Wa) && Sa("overflow"), pu += (hf - Nl) * Wa, Nl = hf, uf = 0; uf < vf; ++uf)
29738
- if (yf = yu[uf], yf < Nl && ++pu > p && Sa("overflow"), yf == Nl) {
29735
+ for (hf = p, lf = 0; lf < vf; ++lf)
29736
+ yf = yu[lf], yf >= Nl && yf < hf && (hf = yf);
29737
+ for (Wa = Ru + 1, hf - Nl > mn((p - pu) / Wa) && Sa("overflow"), pu += (hf - Nl) * Wa, Nl = hf, lf = 0; lf < vf; ++lf)
29738
+ if (yf = yu[lf], yf < Nl && ++pu > p && Sa("overflow"), yf == Nl) {
29739
29739
  for (mf = pu, pf = y; sf = pf <= Gd ? S : pf >= Gd + P ? P : pf - Gd, !(mf < sf); pf += y)
29740
29740
  Xd = mf - sf, af = y - sf, Tf.push(
29741
29741
  _i(lt(sf + Xd % af, 0))
@@ -29746,12 +29746,12 @@ function requirePunycode() {
29746
29746
  }
29747
29747
  return Tf.join("");
29748
29748
  }
29749
- function ms(yu) {
29749
+ function Xs(yu) {
29750
29750
  return La(yu, function(Nl) {
29751
29751
  return nt.test(Nl) ? ba(Nl.slice(4).toLowerCase()) : Nl;
29752
29752
  });
29753
29753
  }
29754
- function Xs(yu) {
29754
+ function ms(yu) {
29755
29755
  return La(yu, function(Nl) {
29756
29756
  return Pe.test(Nl) ? "xn--" + Sc(Nl) : Nl;
29757
29757
  });
@@ -29776,8 +29776,8 @@ function requirePunycode() {
29776
29776
  },
29777
29777
  decode: ba,
29778
29778
  encode: Sc,
29779
- toASCII: Xs,
29780
- toUnicode: ms
29779
+ toASCII: ms,
29780
+ toUnicode: Xs
29781
29781
  }, s && c)
29782
29782
  if (t.exports == s)
29783
29783
  c.exports = h;
@@ -30110,8 +30110,8 @@ function requireSecondLevelDomains() {
30110
30110
  else
30111
30111
  pi[lt] = !0;
30112
30112
  for (ba = 0, Sc = yt.length; ba < Sc; ba++) {
30113
- var ms = pi && pi[yt[ba]] !== void 0 || !pi && lt.test(yt[ba]);
30114
- ms && (yt.splice(ba, 1), Sc--, ba--);
30113
+ var Xs = pi && pi[yt[ba]] !== void 0 || !pi && lt.test(yt[ba]);
30114
+ Xs && (yt.splice(ba, 1), Sc--, ba--);
30115
30115
  }
30116
30116
  return yt;
30117
30117
  }
@@ -30336,9 +30336,9 @@ function requireSecondLevelDomains() {
30336
30336
  pi ? Sc = function(Nl) {
30337
30337
  return h[lt](h[pi](Nl));
30338
30338
  } : Sc = h[lt];
30339
- for (var ms = (ba + "").split(yt), Xs = 0, yu = ms.length; Xs < yu; Xs++)
30340
- ms[Xs] = Sc(ms[Xs]);
30341
- return ms.join(yt);
30339
+ for (var Xs = (ba + "").split(yt), ms = 0, yu = Xs.length; ms < yu; ms++)
30340
+ Xs[ms] = Sc(Xs[ms]);
30341
+ return Xs.join(yt);
30342
30342
  };
30343
30343
  };
30344
30344
  h.decodePath = _i("/", "decodePathSegment"), h.decodeUrnPath = _i(":", "decodeUrnPathSegment"), h.recodePath = _i("/", "encodePathSegment", "decode"), h.recodeUrnPath = _i(":", "encodeUrnPathSegment", "decode"), h.encodeReserved = mn("reserved", "encode"), h.parse = function(yt, lt) {
@@ -30352,8 +30352,8 @@ function requireSecondLevelDomains() {
30352
30352
  if (pi === -1 && (pi = yt.length), yt.charAt(0) === "[")
30353
30353
  ba = yt.indexOf("]"), lt.hostname = yt.substring(1, ba) || null, lt.port = yt.substring(ba + 2, pi) || null, lt.port === "/" && (lt.port = null);
30354
30354
  else {
30355
- var ms = yt.indexOf(":"), Xs = yt.indexOf("/"), yu = yt.indexOf(":", ms + 1);
30356
- yu !== -1 && (Xs === -1 || yu < Xs) ? (lt.hostname = yt.substring(0, pi) || null, lt.port = null) : (Sc = yt.substring(0, pi).split(":"), lt.hostname = Sc[0] || null, lt.port = Sc[1] || null);
30355
+ var Xs = yt.indexOf(":"), ms = yt.indexOf("/"), yu = yt.indexOf(":", Xs + 1);
30356
+ yu !== -1 && (ms === -1 || yu < ms) ? (lt.hostname = yt.substring(0, pi) || null, lt.port = null) : (Sc = yt.substring(0, pi).split(":"), lt.hostname = Sc[0] || null, lt.port = Sc[1] || null);
30357
30357
  }
30358
30358
  return lt.hostname && yt.substring(pi).charAt(0) !== "/" && (pi++, yt = "/" + yt), lt.preventInvalidHostname && h.ensureValidHostname(lt.hostname, lt.protocol), lt.port && h.ensureValidPort(lt.port), yt.substring(pi) || "/";
30359
30359
  }, h.parseAuthority = function(yt, lt) {
@@ -30361,15 +30361,15 @@ function requireSecondLevelDomains() {
30361
30361
  }, h.parseUserinfo = function(yt, lt) {
30362
30362
  var pi = yt, ba = yt.indexOf("\\");
30363
30363
  ba !== -1 && (yt = yt.replace(/\\/g, "/"));
30364
- var Sc = yt.indexOf("/"), ms = yt.lastIndexOf("@", Sc > -1 ? Sc : yt.length - 1), Xs;
30365
- return ms > -1 && (Sc === -1 || ms < Sc) ? (Xs = yt.substring(0, ms).split(":"), lt.username = Xs[0] ? h.decode(Xs[0]) : null, Xs.shift(), lt.password = Xs[0] ? h.decode(Xs.join(":")) : null, yt = pi.substring(ms + 1)) : (lt.username = null, lt.password = null), yt;
30364
+ var Sc = yt.indexOf("/"), Xs = yt.lastIndexOf("@", Sc > -1 ? Sc : yt.length - 1), ms;
30365
+ return Xs > -1 && (Sc === -1 || Xs < Sc) ? (ms = yt.substring(0, Xs).split(":"), lt.username = ms[0] ? h.decode(ms[0]) : null, ms.shift(), lt.password = ms[0] ? h.decode(ms.join(":")) : null, yt = pi.substring(Xs + 1)) : (lt.username = null, lt.password = null), yt;
30366
30366
  }, h.parseQuery = function(yt, lt) {
30367
30367
  if (!yt)
30368
30368
  return {};
30369
30369
  if (yt = yt.replace(/&+/g, "&").replace(/^\?*&*|&+$/g, ""), !yt)
30370
30370
  return {};
30371
- for (var pi = {}, ba = yt.split("&"), Sc = ba.length, ms, Xs, yu, Nl = 0; Nl < Sc; Nl++)
30372
- ms = ba[Nl].split("="), Xs = h.decodeQuery(ms.shift(), lt), yu = ms.length ? h.decodeQuery(ms.join("="), lt) : null, Xs !== "__proto__" && (S.call(pi, Xs) ? ((typeof pi[Xs] == "string" || pi[Xs] === null) && (pi[Xs] = [pi[Xs]]), pi[Xs].push(yu)) : pi[Xs] = yu);
30371
+ for (var pi = {}, ba = yt.split("&"), Sc = ba.length, Xs, ms, yu, Nl = 0; Nl < Sc; Nl++)
30372
+ Xs = ba[Nl].split("="), ms = h.decodeQuery(Xs.shift(), lt), yu = Xs.length ? h.decodeQuery(Xs.join("="), lt) : null, ms !== "__proto__" && (S.call(pi, ms) ? ((typeof pi[ms] == "string" || pi[ms] === null) && (pi[ms] = [pi[ms]]), pi[ms].push(yu)) : pi[ms] = yu);
30373
30373
  return pi;
30374
30374
  }, h.build = function(yt) {
30375
30375
  var lt = "", pi = !1;
@@ -30387,14 +30387,14 @@ function requireSecondLevelDomains() {
30387
30387
  var lt = "";
30388
30388
  return yt.username && (lt += h.encode(yt.username)), yt.password && (lt += ":" + h.encode(yt.password)), lt && (lt += "@"), lt;
30389
30389
  }, h.buildQuery = function(yt, lt, pi) {
30390
- var ba = "", Sc, ms, Xs, yu;
30391
- for (ms in yt)
30392
- if (ms !== "__proto__" && S.call(yt, ms))
30393
- if (F(yt[ms]))
30394
- for (Sc = {}, Xs = 0, yu = yt[ms].length; Xs < yu; Xs++)
30395
- yt[ms][Xs] !== void 0 && Sc[yt[ms][Xs] + ""] === void 0 && (ba += "&" + h.buildQueryParameter(ms, yt[ms][Xs], pi), lt !== !0 && (Sc[yt[ms][Xs] + ""] = !0));
30390
+ var ba = "", Sc, Xs, ms, yu;
30391
+ for (Xs in yt)
30392
+ if (Xs !== "__proto__" && S.call(yt, Xs))
30393
+ if (F(yt[Xs]))
30394
+ for (Sc = {}, ms = 0, yu = yt[Xs].length; ms < yu; ms++)
30395
+ yt[Xs][ms] !== void 0 && Sc[yt[Xs][ms] + ""] === void 0 && (ba += "&" + h.buildQueryParameter(Xs, yt[Xs][ms], pi), lt !== !0 && (Sc[yt[Xs][ms] + ""] = !0));
30396
30396
  else
30397
- yt[ms] !== void 0 && (ba += "&" + h.buildQueryParameter(ms, yt[ms], pi));
30397
+ yt[Xs] !== void 0 && (ba += "&" + h.buildQueryParameter(Xs, yt[Xs], pi));
30398
30398
  return ba.substring(1);
30399
30399
  }, h.buildQueryParameter = function(yt, lt, pi) {
30400
30400
  return h.encodeQuery(yt, pi) + (lt !== null ? "=" + h.encodeQuery(lt, pi) : "");
@@ -30420,16 +30420,16 @@ function requireSecondLevelDomains() {
30420
30420
  else
30421
30421
  throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");
30422
30422
  }, h.removeQuery = function(yt, lt, pi) {
30423
- var ba, Sc, ms;
30423
+ var ba, Sc, Xs;
30424
30424
  if (F(lt))
30425
30425
  for (ba = 0, Sc = lt.length; ba < Sc; ba++)
30426
30426
  yt[lt[ba]] = void 0;
30427
30427
  else if (L(lt) === "RegExp")
30428
- for (ms in yt)
30429
- lt.test(ms) && (yt[ms] = void 0);
30428
+ for (Xs in yt)
30429
+ lt.test(Xs) && (yt[Xs] = void 0);
30430
30430
  else if (typeof lt == "object")
30431
- for (ms in lt)
30432
- S.call(lt, ms) && h.removeQuery(yt, ms, lt[ms]);
30431
+ for (Xs in lt)
30432
+ S.call(lt, Xs) && h.removeQuery(yt, Xs, lt[Xs]);
30433
30433
  else if (typeof lt == "string")
30434
30434
  pi !== void 0 ? L(pi) === "RegExp" ? !F(yt[lt]) && pi.test(yt[lt]) ? yt[lt] = void 0 : yt[lt] = N(yt[lt], pi) : yt[lt] === String(pi) && (!F(pi) || pi.length === 1) ? yt[lt] = void 0 : F(yt[lt]) && (yt[lt] = N(yt[lt], pi)) : yt[lt] = void 0;
30435
30435
  else
@@ -30444,8 +30444,8 @@ function requireSecondLevelDomains() {
30444
30444
  return !0;
30445
30445
  return !1;
30446
30446
  case "Object":
30447
- for (var ms in lt)
30448
- if (S.call(lt, ms) && !h.hasQuery(yt, ms, lt[ms]))
30447
+ for (var Xs in lt)
30448
+ if (S.call(lt, Xs) && !h.hasQuery(yt, Xs, lt[Xs]))
30449
30449
  return !1;
30450
30450
  return !0;
30451
30451
  default:
@@ -30455,8 +30455,8 @@ function requireSecondLevelDomains() {
30455
30455
  case "Undefined":
30456
30456
  return lt in yt;
30457
30457
  case "Boolean":
30458
- var Xs = !!(F(yt[lt]) ? yt[lt].length : yt[lt]);
30459
- return pi === Xs;
30458
+ var ms = !!(F(yt[lt]) ? yt[lt].length : yt[lt]);
30459
+ return pi === ms;
30460
30460
  case "Function":
30461
30461
  return !!pi(yt[lt], lt, yt);
30462
30462
  case "Array":
@@ -30477,8 +30477,8 @@ function requireSecondLevelDomains() {
30477
30477
  for (var yt = [], lt = [], pi = 0, ba = 0; ba < arguments.length; ba++) {
30478
30478
  var Sc = new h(arguments[ba]);
30479
30479
  yt.push(Sc);
30480
- for (var ms = Sc.segment(), Xs = 0; Xs < ms.length; Xs++)
30481
- typeof ms[Xs] == "string" && lt.push(ms[Xs]), ms[Xs] && pi++;
30480
+ for (var Xs = Sc.segment(), ms = 0; ms < Xs.length; ms++)
30481
+ typeof Xs[ms] == "string" && lt.push(Xs[ms]), Xs[ms] && pi++;
30482
30482
  }
30483
30483
  if (!lt.length || !pi)
30484
30484
  return new h("");
@@ -30494,7 +30494,7 @@ function requireSecondLevelDomains() {
30494
30494
  return ba < 1 ? yt.charAt(0) === lt.charAt(0) && yt.charAt(0) === "/" ? "/" : "" : ((yt.charAt(ba) !== "/" || lt.charAt(ba) !== "/") && (ba = yt.substring(0, ba).lastIndexOf("/")), yt.substring(0, ba + 1));
30495
30495
  }, h.withinString = function(yt, lt, pi) {
30496
30496
  pi || (pi = {});
30497
- var ba = pi.start || h.findUri.start, Sc = pi.end || h.findUri.end, ms = pi.trim || h.findUri.trim, Xs = pi.parens || h.findUri.parens, yu = /[a-z0-9-]=["']?$/i;
30497
+ var ba = pi.start || h.findUri.start, Sc = pi.end || h.findUri.end, Xs = pi.trim || h.findUri.trim, ms = pi.parens || h.findUri.parens, yu = /[a-z0-9-]=["']?$/i;
30498
30498
  for (ba.lastIndex = 0; ; ) {
30499
30499
  var Nl = ba.exec(yt);
30500
30500
  if (!Nl)
@@ -30505,14 +30505,14 @@ function requireSecondLevelDomains() {
30505
30505
  if (Ru && yu.test(Ru))
30506
30506
  continue;
30507
30507
  }
30508
- for (var Vd = pu + yt.slice(pu).search(Sc), Gd = yt.slice(pu, Vd), uf = -1; ; ) {
30509
- var hf = Xs.exec(Gd);
30508
+ for (var Vd = pu + yt.slice(pu).search(Sc), Gd = yt.slice(pu, Vd), lf = -1; ; ) {
30509
+ var hf = ms.exec(Gd);
30510
30510
  if (!hf)
30511
30511
  break;
30512
30512
  var mf = hf.index + hf[0].length;
30513
- uf = Math.max(uf, mf);
30513
+ lf = Math.max(lf, mf);
30514
30514
  }
30515
- if (uf > -1 ? Gd = Gd.slice(0, uf) + Gd.slice(uf).replace(ms, "") : Gd = Gd.replace(ms, ""), !(Gd.length <= Nl[0].length) && !(pi.ignore && pi.ignore.test(Gd))) {
30515
+ if (lf > -1 ? Gd = Gd.slice(0, lf) + Gd.slice(lf).replace(Xs, "") : Gd = Gd.replace(Xs, ""), !(Gd.length <= Nl[0].length) && !(pi.ignore && pi.ignore.test(Gd))) {
30516
30516
  Vd = pu + Gd.length;
30517
30517
  var pf = lt(Gd, pu, Vd, yt);
30518
30518
  if (pf === void 0) {
@@ -30584,22 +30584,22 @@ function requireSecondLevelDomains() {
30584
30584
  this._string = "", this._parts = h._parts();
30585
30585
  var ba = yt instanceof h, Sc = typeof yt == "object" && (yt.hostname || yt.path || yt.pathname);
30586
30586
  if (yt.nodeName) {
30587
- var ms = h.getDomAttribute(yt);
30588
- yt = yt[ms] || "", Sc = !1;
30587
+ var Xs = h.getDomAttribute(yt);
30588
+ yt = yt[Xs] || "", Sc = !1;
30589
30589
  }
30590
30590
  if (!ba && Sc && yt.pathname !== void 0 && (yt = yt.toString()), typeof yt == "string" || yt instanceof String)
30591
30591
  this._parts = h.parse(String(yt), this._parts);
30592
30592
  else if (ba || Sc) {
30593
- var Xs = ba ? yt._parts : yt;
30594
- for (pi in Xs)
30595
- pi !== "query" && S.call(this._parts, pi) && (this._parts[pi] = Xs[pi]);
30596
- Xs.query && this.query(Xs.query, !1);
30593
+ var ms = ba ? yt._parts : yt;
30594
+ for (pi in ms)
30595
+ pi !== "query" && S.call(this._parts, pi) && (this._parts[pi] = ms[pi]);
30596
+ ms.query && this.query(ms.query, !1);
30597
30597
  } else
30598
30598
  throw new TypeError("invalid input");
30599
30599
  return this.build(!lt), this;
30600
30600
  }, y.is = function(yt) {
30601
- var lt = !1, pi = !1, ba = !1, Sc = !1, ms = !1, Xs = !1, yu = !1, Nl = !this._parts.urn;
30602
- switch (this._parts.hostname && (Nl = !1, pi = h.ip4_expression.test(this._parts.hostname), ba = h.ip6_expression.test(this._parts.hostname), lt = pi || ba, Sc = !lt, ms = Sc && s && s.has(this._parts.hostname), Xs = Sc && h.idn_expression.test(this._parts.hostname), yu = Sc && h.punycode_expression.test(this._parts.hostname)), yt.toLowerCase()) {
30601
+ var lt = !1, pi = !1, ba = !1, Sc = !1, Xs = !1, ms = !1, yu = !1, Nl = !this._parts.urn;
30602
+ switch (this._parts.hostname && (Nl = !1, pi = h.ip4_expression.test(this._parts.hostname), ba = h.ip6_expression.test(this._parts.hostname), lt = pi || ba, Sc = !lt, Xs = Sc && s && s.has(this._parts.hostname), ms = Sc && h.idn_expression.test(this._parts.hostname), yu = Sc && h.punycode_expression.test(this._parts.hostname)), yt.toLowerCase()) {
30603
30603
  case "relative":
30604
30604
  return Nl;
30605
30605
  case "absolute":
@@ -30608,7 +30608,7 @@ function requireSecondLevelDomains() {
30608
30608
  case "name":
30609
30609
  return Sc;
30610
30610
  case "sld":
30611
- return ms;
30611
+ return Xs;
30612
30612
  case "ip":
30613
30613
  return lt;
30614
30614
  case "ip4":
@@ -30620,7 +30620,7 @@ function requireSecondLevelDomains() {
30620
30620
  case "inet6":
30621
30621
  return ba;
30622
30622
  case "idn":
30623
- return Xs;
30623
+ return ms;
30624
30624
  case "url":
30625
30625
  return !this._parts.urn;
30626
30626
  case "urn":
@@ -30695,10 +30695,10 @@ function requireSecondLevelDomains() {
30695
30695
  var pi = this._parts.hostname.length - this.domain().length - 1;
30696
30696
  return this._parts.hostname.substring(0, pi) || "";
30697
30697
  } else {
30698
- var ba = this._parts.hostname.length - this.domain().length, Sc = this._parts.hostname.substring(0, ba), ms = new RegExp("^" + P(Sc));
30698
+ var ba = this._parts.hostname.length - this.domain().length, Sc = this._parts.hostname.substring(0, ba), Xs = new RegExp("^" + P(Sc));
30699
30699
  if (yt && yt.charAt(yt.length - 1) !== "." && (yt += "."), yt.indexOf(":") !== -1)
30700
30700
  throw new TypeError("Domains cannot contain colons");
30701
- return yt && h.ensureValidHostname(yt, this._parts.protocol), this._parts.hostname = this._parts.hostname.replace(ms, yt), this.build(!lt), this;
30701
+ return yt && h.ensureValidHostname(yt, this._parts.protocol), this._parts.hostname = this._parts.hostname.replace(Xs, yt), this.build(!lt), this;
30702
30702
  }
30703
30703
  }, y.domain = function(yt, lt) {
30704
30704
  if (this._parts.urn)
@@ -30760,8 +30760,8 @@ function requireSecondLevelDomains() {
30760
30760
  var pi = this._parts.path.length - this.filename().length - 1, ba = this._parts.path.substring(0, pi) || (this._parts.hostname ? "/" : "");
30761
30761
  return yt ? h.decodePath(ba) : ba;
30762
30762
  } else {
30763
- var Sc = this._parts.path.length - this.filename().length, ms = this._parts.path.substring(0, Sc), Xs = new RegExp("^" + P(ms));
30764
- return this.is("relative") || (yt || (yt = "/"), yt.charAt(0) !== "/" && (yt = "/" + yt)), yt && yt.charAt(yt.length - 1) !== "/" && (yt += "/"), yt = h.recodePath(yt), this._parts.path = this._parts.path.replace(Xs, yt), this.build(!lt), this;
30763
+ var Sc = this._parts.path.length - this.filename().length, Xs = this._parts.path.substring(0, Sc), ms = new RegExp("^" + P(Xs));
30764
+ return this.is("relative") || (yt || (yt = "/"), yt.charAt(0) !== "/" && (yt = "/" + yt)), yt && yt.charAt(yt.length - 1) !== "/" && (yt += "/"), yt = h.recodePath(yt), this._parts.path = this._parts.path.replace(ms, yt), this.build(!lt), this;
30765
30765
  }
30766
30766
  }, y.filename = function(yt, lt) {
30767
30767
  if (this._parts.urn)
@@ -30774,8 +30774,8 @@ function requireSecondLevelDomains() {
30774
30774
  } else {
30775
30775
  var Sc = !1;
30776
30776
  yt.charAt(0) === "/" && (yt = yt.substring(1)), yt.match(/\.?\//) && (Sc = !0);
30777
- var ms = new RegExp(P(this.filename()) + "$");
30778
- return yt = h.recodePath(yt), this._parts.path = this._parts.path.replace(ms, yt), Sc ? this.normalizePath(lt) : this.build(!lt), this;
30777
+ var Xs = new RegExp(P(this.filename()) + "$");
30778
+ return yt = h.recodePath(yt), this._parts.path = this._parts.path.replace(Xs, yt), Sc ? this.normalizePath(lt) : this.build(!lt), this;
30779
30779
  }
30780
30780
  }, y.suffix = function(yt, lt) {
30781
30781
  if (this._parts.urn)
@@ -30783,13 +30783,13 @@ function requireSecondLevelDomains() {
30783
30783
  if (yt === void 0 || yt === !0) {
30784
30784
  if (!this._parts.path || this._parts.path === "/")
30785
30785
  return "";
30786
- var pi = this.filename(), ba = pi.lastIndexOf("."), Sc, ms;
30787
- return ba === -1 ? "" : (Sc = pi.substring(ba + 1), ms = /^[a-z0-9%]+$/i.test(Sc) ? Sc : "", yt ? h.decodePathSegment(ms) : ms);
30786
+ var pi = this.filename(), ba = pi.lastIndexOf("."), Sc, Xs;
30787
+ return ba === -1 ? "" : (Sc = pi.substring(ba + 1), Xs = /^[a-z0-9%]+$/i.test(Sc) ? Sc : "", yt ? h.decodePathSegment(Xs) : Xs);
30788
30788
  } else {
30789
30789
  yt.charAt(0) === "." && (yt = yt.substring(1));
30790
- var Xs = this.suffix(), yu;
30791
- if (Xs)
30792
- yt ? yu = new RegExp(P(Xs) + "$") : yu = new RegExp(P("." + Xs) + "$");
30790
+ var ms = this.suffix(), yu;
30791
+ if (ms)
30792
+ yt ? yu = new RegExp(P(ms) + "$") : yu = new RegExp(P("." + ms) + "$");
30793
30793
  else {
30794
30794
  if (!yt)
30795
30795
  return this;
@@ -30798,35 +30798,35 @@ function requireSecondLevelDomains() {
30798
30798
  return yu && (yt = h.recodePath(yt), this._parts.path = this._parts.path.replace(yu, yt)), this.build(!lt), this;
30799
30799
  }
30800
30800
  }, y.segment = function(yt, lt, pi) {
30801
- var ba = this._parts.urn ? ":" : "/", Sc = this.path(), ms = Sc.substring(0, 1) === "/", Xs = Sc.split(ba);
30801
+ var ba = this._parts.urn ? ":" : "/", Sc = this.path(), Xs = Sc.substring(0, 1) === "/", ms = Sc.split(ba);
30802
30802
  if (yt !== void 0 && typeof yt != "number" && (pi = lt, lt = yt, yt = void 0), yt !== void 0 && typeof yt != "number")
30803
30803
  throw new Error('Bad segment "' + yt + '", must be 0-based integer');
30804
- if (ms && Xs.shift(), yt < 0 && (yt = Math.max(Xs.length + yt, 0)), lt === void 0)
30805
- return yt === void 0 ? Xs : Xs[yt];
30806
- if (yt === null || Xs[yt] === void 0)
30804
+ if (Xs && ms.shift(), yt < 0 && (yt = Math.max(ms.length + yt, 0)), lt === void 0)
30805
+ return yt === void 0 ? ms : ms[yt];
30806
+ if (yt === null || ms[yt] === void 0)
30807
30807
  if (F(lt)) {
30808
- Xs = [];
30808
+ ms = [];
30809
30809
  for (var yu = 0, Nl = lt.length; yu < Nl; yu++)
30810
- !lt[yu].length && (!Xs.length || !Xs[Xs.length - 1].length) || (Xs.length && !Xs[Xs.length - 1].length && Xs.pop(), Xs.push(nt(lt[yu])));
30810
+ !lt[yu].length && (!ms.length || !ms[ms.length - 1].length) || (ms.length && !ms[ms.length - 1].length && ms.pop(), ms.push(nt(lt[yu])));
30811
30811
  } else
30812
- (lt || typeof lt == "string") && (lt = nt(lt), Xs[Xs.length - 1] === "" ? Xs[Xs.length - 1] = lt : Xs.push(lt));
30812
+ (lt || typeof lt == "string") && (lt = nt(lt), ms[ms.length - 1] === "" ? ms[ms.length - 1] = lt : ms.push(lt));
30813
30813
  else
30814
- lt ? Xs[yt] = nt(lt) : Xs.splice(yt, 1);
30815
- return ms && Xs.unshift(""), this.path(Xs.join(ba), pi);
30814
+ lt ? ms[yt] = nt(lt) : ms.splice(yt, 1);
30815
+ return Xs && ms.unshift(""), this.path(ms.join(ba), pi);
30816
30816
  }, y.segmentCoded = function(yt, lt, pi) {
30817
- var ba, Sc, ms;
30817
+ var ba, Sc, Xs;
30818
30818
  if (typeof yt != "number" && (pi = lt, lt = yt, yt = void 0), lt === void 0) {
30819
30819
  if (ba = this.segment(yt, lt, pi), !F(ba))
30820
30820
  ba = ba !== void 0 ? h.decode(ba) : void 0;
30821
30821
  else
30822
- for (Sc = 0, ms = ba.length; Sc < ms; Sc++)
30822
+ for (Sc = 0, Xs = ba.length; Sc < Xs; Sc++)
30823
30823
  ba[Sc] = h.decode(ba[Sc]);
30824
30824
  return ba;
30825
30825
  }
30826
30826
  if (!F(lt))
30827
30827
  lt = typeof lt == "string" || lt instanceof String ? h.encode(lt) : lt;
30828
30828
  else
30829
- for (Sc = 0, ms = lt.length; Sc < ms; Sc++)
30829
+ for (Sc = 0, Xs = lt.length; Sc < Xs; Sc++)
30830
30830
  lt[Sc] = h.encode(lt[Sc]);
30831
30831
  return this.segment(yt, lt, pi);
30832
30832
  };
@@ -30875,13 +30875,13 @@ function requireSecondLevelDomains() {
30875
30875
  if (this._parts.path === "/")
30876
30876
  return this;
30877
30877
  lt = h.recodePath(lt);
30878
- var pi, ba = "", Sc, ms;
30878
+ var pi, ba = "", Sc, Xs;
30879
30879
  for (lt.charAt(0) !== "/" && (pi = !0, lt = "/" + lt), (lt.slice(-3) === "/.." || lt.slice(-2) === "/.") && (lt += "/"), lt = lt.replace(/(\/(\.\/)+)|(\/\.$)/g, "/").replace(/\/{2,}/g, "/"), pi && (ba = lt.substring(1).match(/^(\.\.\/)+/) || "", ba && (ba = ba[0])); Sc = lt.search(/\/\.\.(\/|$)/), Sc !== -1; ) {
30880
30880
  if (Sc === 0) {
30881
30881
  lt = lt.substring(3);
30882
30882
  continue;
30883
30883
  }
30884
- ms = lt.substring(0, Sc).lastIndexOf("/"), ms === -1 && (ms = Sc), lt = lt.substring(0, ms) + lt.substring(Sc + 3);
30884
+ Xs = lt.substring(0, Sc).lastIndexOf("/"), Xs === -1 && (Xs = Sc), lt = lt.substring(0, Xs) + lt.substring(Sc + 3);
30885
30885
  }
30886
30886
  return pi && this.is("relative") && (lt = ba + lt.substring(1)), this._parts.path = lt, this.build(!yt), this;
30887
30887
  }, y.normalizePathname = y.normalizePath, y.normalizeQuery = function(yt) {
@@ -30911,29 +30911,29 @@ function requireSecondLevelDomains() {
30911
30911
  yt.username("").password("").normalize();
30912
30912
  var lt = "";
30913
30913
  if (yt._parts.protocol && (lt += yt._parts.protocol + "://"), yt._parts.hostname && (yt.is("punycode") && n ? (lt += n.toUnicode(yt._parts.hostname), yt._parts.port && (lt += ":" + yt._parts.port)) : lt += yt.host()), yt._parts.hostname && yt._parts.path && yt._parts.path.charAt(0) !== "/" && (lt += "/"), lt += yt.path(!0), yt._parts.query) {
30914
- for (var pi = "", ba = 0, Sc = yt._parts.query.split("&"), ms = Sc.length; ba < ms; ba++) {
30915
- var Xs = (Sc[ba] || "").split("=");
30916
- pi += "&" + h.decodeQuery(Xs[0], this._parts.escapeQuerySpace).replace(/&/g, "%26"), Xs[1] !== void 0 && (pi += "=" + h.decodeQuery(Xs[1], this._parts.escapeQuerySpace).replace(/&/g, "%26"));
30914
+ for (var pi = "", ba = 0, Sc = yt._parts.query.split("&"), Xs = Sc.length; ba < Xs; ba++) {
30915
+ var ms = (Sc[ba] || "").split("=");
30916
+ pi += "&" + h.decodeQuery(ms[0], this._parts.escapeQuerySpace).replace(/&/g, "%26"), ms[1] !== void 0 && (pi += "=" + h.decodeQuery(ms[1], this._parts.escapeQuerySpace).replace(/&/g, "%26"));
30917
30917
  }
30918
30918
  lt += "?" + pi.substring(1);
30919
30919
  }
30920
30920
  return lt += h.decodeQuery(yt.hash(), !0), lt;
30921
30921
  }, y.absoluteTo = function(yt) {
30922
- var lt = this.clone(), pi = ["protocol", "username", "password", "hostname", "port"], ba, Sc, ms;
30922
+ var lt = this.clone(), pi = ["protocol", "username", "password", "hostname", "port"], ba, Sc, Xs;
30923
30923
  if (this._parts.urn)
30924
30924
  throw new Error("URNs do not have any generally defined hierarchical components");
30925
30925
  if (yt instanceof h || (yt = new h(yt)), lt._parts.protocol || (lt._parts.protocol = yt._parts.protocol, this._parts.hostname))
30926
30926
  return lt;
30927
- for (Sc = 0; ms = pi[Sc]; Sc++)
30928
- lt._parts[ms] = yt._parts[ms];
30927
+ for (Sc = 0; Xs = pi[Sc]; Sc++)
30928
+ lt._parts[Xs] = yt._parts[Xs];
30929
30929
  return lt._parts.path ? (lt._parts.path.substring(-2) === ".." && (lt._parts.path += "/"), lt.path().charAt(0) !== "/" && (ba = yt.directory(), ba = ba || (yt.path().indexOf("/") === 0 ? "/" : ""), lt._parts.path = (ba ? ba + "/" : "") + lt._parts.path, lt.normalizePath())) : (lt._parts.path = yt._parts.path, lt._parts.query || (lt._parts.query = yt._parts.query)), lt.build(), lt;
30930
30930
  }, y.relativeTo = function(yt) {
30931
- var lt = this.clone().normalize(), pi, ba, Sc, ms, Xs;
30931
+ var lt = this.clone().normalize(), pi, ba, Sc, Xs, ms;
30932
30932
  if (lt._parts.urn)
30933
30933
  throw new Error("URNs do not have any generally defined hierarchical components");
30934
- if (yt = new h(yt).normalize(), pi = lt._parts, ba = yt._parts, ms = lt.path(), Xs = yt.path(), ms.charAt(0) !== "/")
30934
+ if (yt = new h(yt).normalize(), pi = lt._parts, ba = yt._parts, Xs = lt.path(), ms = yt.path(), Xs.charAt(0) !== "/")
30935
30935
  throw new Error("URI is already relative");
30936
- if (Xs.charAt(0) !== "/")
30936
+ if (ms.charAt(0) !== "/")
30937
30937
  throw new Error("Cannot calculate a URI relative to another relative URI");
30938
30938
  if (pi.protocol === ba.protocol && (pi.protocol = null), pi.username !== ba.username || pi.password !== ba.password || pi.protocol !== null || pi.username !== null || pi.password !== null)
30939
30939
  return lt.build();
@@ -30941,19 +30941,19 @@ function requireSecondLevelDomains() {
30941
30941
  pi.hostname = null, pi.port = null;
30942
30942
  else
30943
30943
  return lt.build();
30944
- if (ms === Xs)
30944
+ if (Xs === ms)
30945
30945
  return pi.path = "", lt.build();
30946
- if (Sc = h.commonPath(ms, Xs), !Sc)
30946
+ if (Sc = h.commonPath(Xs, ms), !Sc)
30947
30947
  return lt.build();
30948
30948
  var yu = ba.path.substring(Sc.length).replace(/[^\/]*$/, "").replace(/.*?\//g, "../");
30949
30949
  return pi.path = yu + pi.path.substring(Sc.length) || "./", lt.build();
30950
30950
  }, y.equals = function(yt) {
30951
- var lt = this.clone(), pi = new h(yt), ba = {}, Sc = {}, ms = {}, Xs, yu, Nl;
30951
+ var lt = this.clone(), pi = new h(yt), ba = {}, Sc = {}, Xs = {}, ms, yu, Nl;
30952
30952
  if (lt.normalize(), pi.normalize(), lt.toString() === pi.toString())
30953
30953
  return !0;
30954
- if (Xs = lt.query(), yu = pi.query(), lt.query(""), pi.query(""), lt.toString() !== pi.toString() || Xs.length !== yu.length)
30954
+ if (ms = lt.query(), yu = pi.query(), lt.query(""), pi.query(""), lt.toString() !== pi.toString() || ms.length !== yu.length)
30955
30955
  return !1;
30956
- ba = h.parseQuery(Xs, this._parts.escapeQuerySpace), Sc = h.parseQuery(yu, this._parts.escapeQuerySpace);
30956
+ ba = h.parseQuery(ms, this._parts.escapeQuerySpace), Sc = h.parseQuery(yu, this._parts.escapeQuerySpace);
30957
30957
  for (Nl in ba)
30958
30958
  if (S.call(ba, Nl)) {
30959
30959
  if (F(ba[Nl])) {
@@ -30961,10 +30961,10 @@ function requireSecondLevelDomains() {
30961
30961
  return !1;
30962
30962
  } else if (ba[Nl] !== Sc[Nl])
30963
30963
  return !1;
30964
- ms[Nl] = !0;
30964
+ Xs[Nl] = !0;
30965
30965
  }
30966
30966
  for (Nl in Sc)
30967
- if (S.call(Sc, Nl) && !ms[Nl])
30967
+ if (S.call(Sc, Nl) && !Xs[Nl])
30968
30968
  return !1;
30969
30969
  return !0;
30970
30970
  }, y.preventInvalidHostname = function(yt) {
@@ -34864,7 +34864,7 @@ function computeRealRoots(t, n, o, s) {
34864
34864
  P * S >= y * L ? (Nl = c, pu = F, Ru = -2 * d * F + c * N) : (Nl = p, pu = W, Ru = -p * N + 2 * h * W);
34865
34865
  const Gd = -(Ru < 0 ? -1 : 1) * Math.abs(Nl) * Math.sqrt(-z);
34866
34866
  Pe = -Ru + Gd;
34867
- const uf = Pe / 2, hf = uf < 0 ? -Math.pow(-uf, 1 / 3) : Math.pow(uf, 1 / 3), mf = Pe === Gd ? -hf : -pu / hf;
34867
+ const lf = Pe / 2, hf = lf < 0 ? -Math.pow(-lf, 1 / 3) : Math.pow(lf, 1 / 3), mf = Pe === Gd ? -hf : -pu / hf;
34868
34868
  return nt = pu <= 0 ? hf + mf : -Ru / (hf * hf + mf * mf + pu), P * S >= y * L ? [(nt - d) / c] : [-p / (nt + h)];
34869
34869
  }
34870
34870
  const se = F, mt = -2 * d * F + c * N, kt = W, mn = -p * N + 2 * h * W, _i = Math.sqrt(z), zi = Math.sqrt(3) / 2;
@@ -34875,7 +34875,7 @@ function computeRealRoots(t, n, o, s) {
34875
34875
  let La = nt * (-fa / 2 - zi * Math.sin(Sa));
34876
34876
  const Ra = Pe + La > 2 * d ? Pe - d : La - d, ma = c, yt = Ra / ma;
34877
34877
  Sa = Math.abs(Math.atan2(p * _i, -mn) / 3), nt = 2 * Math.sqrt(-kt), fa = Math.cos(Sa), Pe = nt * fa, La = nt * (-fa / 2 - zi * Math.sin(Sa));
34878
- const lt = -p, pi = Pe + La < 2 * h ? Pe + h : La + h, ba = lt / pi, Sc = ma * pi, ms = -Ra * pi - ma * lt, Xs = Ra * lt, yu = (h * ms - d * Xs) / (-d * ms + h * Sc);
34878
+ const lt = -p, pi = Pe + La < 2 * h ? Pe + h : La + h, ba = lt / pi, Sc = ma * pi, Xs = -Ra * pi - ma * lt, ms = Ra * lt, yu = (h * Xs - d * ms) / (-d * Xs + h * Sc);
34879
34879
  return yt <= yu ? yt <= ba ? yu <= ba ? [yt, yu, ba] : [yt, ba, yu] : [ba, yt, yu] : yt <= ba ? [yu, yt, ba] : yu <= ba ? [yu, ba, yt] : [ba, yu, yt];
34880
34880
  }
34881
34881
  CubicRealPolynomial.computeRealRoots = function(t, n, o, s) {
@@ -35816,11 +35816,11 @@ OrientedBoundingBox.fromRectangle = function(t, n, o, s, c) {
35816
35816
  ma,
35817
35817
  scratchPerimeterCartesianNC
35818
35818
  );
35819
- let ms = s.cartographicToCartesian(
35819
+ let Xs = s.cartographicToCartesian(
35820
35820
  yt,
35821
35821
  scratchPerimeterCartesianNW
35822
35822
  );
35823
- const Xs = s.cartographicToCartesian(
35823
+ const ms = s.cartographicToCartesian(
35824
35824
  lt,
35825
35825
  scratchPerimeterCartesianCW
35826
35826
  );
@@ -35835,15 +35835,15 @@ OrientedBoundingBox.fromRectangle = function(t, n, o, s, c) {
35835
35835
  Sc,
35836
35836
  scratchPerimeterProjectedNC
35837
35837
  ), Ru = fa.projectPointToNearestOnPlane(
35838
- ms,
35838
+ Xs,
35839
35839
  scratchPerimeterProjectedNW
35840
35840
  ), Vd = fa.projectPointToNearestOnPlane(
35841
- Xs,
35841
+ ms,
35842
35842
  scratchPerimeterProjectedCW
35843
35843
  ), Gd = fa.projectPointToNearestOnPlane(
35844
35844
  yu,
35845
35845
  scratchPerimeterProjectedSW
35846
- ), uf = fa.projectPointToNearestOnPlane(
35846
+ ), lf = fa.projectPointToNearestOnPlane(
35847
35847
  Nl,
35848
35848
  scratchPerimeterProjectedSC
35849
35849
  );
@@ -35851,14 +35851,14 @@ OrientedBoundingBox.fromRectangle = function(t, n, o, s, c) {
35851
35851
  Ru.x,
35852
35852
  Vd.x,
35853
35853
  Gd.x
35854
- ), h = -d, y = Math.max(Ru.y, pu.y), p = Math.min(Gd.y, uf.y), yt.height = pi.height = n, ms = s.cartographicToCartesian(
35854
+ ), h = -d, y = Math.max(Ru.y, pu.y), p = Math.min(Gd.y, lf.y), yt.height = pi.height = n, Xs = s.cartographicToCartesian(
35855
35855
  yt,
35856
35856
  scratchPerimeterCartesianNW
35857
35857
  ), yu = s.cartographicToCartesian(
35858
35858
  pi,
35859
35859
  scratchPerimeterCartesianSW
35860
35860
  ), S = Math.min(
35861
- Plane.getPointDistance(L, ms),
35861
+ Plane.getPointDistance(L, Xs),
35862
35862
  Plane.getPointDistance(L, yu)
35863
35863
  ), P = o, fromPlaneExtents(
35864
35864
  fa.origin,
@@ -38222,12 +38222,12 @@ Tipsify.tipsify = function(t) {
38222
38222
  return -1;
38223
38223
  }
38224
38224
  function h(Ra, ma, yt, lt, pi, ba, Sc) {
38225
- let ms = -1, Xs, yu = -1, Nl = 0;
38225
+ let Xs = -1, ms, yu = -1, Nl = 0;
38226
38226
  for (; Nl < yt.length; ) {
38227
38227
  const pu = yt[Nl];
38228
- lt[pu].numLiveTriangles && (Xs = 0, pi - lt[pu].timeStamp + 2 * lt[pu].numLiveTriangles <= ma && (Xs = pi - lt[pu].timeStamp), (Xs > yu || yu === -1) && (yu = Xs, ms = pu)), ++Nl;
38228
+ lt[pu].numLiveTriangles && (ms = 0, pi - lt[pu].timeStamp + 2 * lt[pu].numLiveTriangles <= ma && (ms = pi - lt[pu].timeStamp), (ms > yu || yu === -1) && (yu = ms, Xs = pu)), ++Nl;
38229
38229
  }
38230
- return ms === -1 ? d(lt, ba, Ra, Sc) : ms;
38230
+ return Xs === -1 ? d(lt, ba, Ra, Sc) : Xs;
38231
38231
  }
38232
38232
  if (!defined(n))
38233
38233
  throw new DeveloperError("indices is required.");
@@ -39312,19 +39312,19 @@ function splitLongitudeTriangles(t) {
39312
39312
  if (defined(yt) && yt.positions.length > 3) {
39313
39313
  const lt = yt.positions, pi = yt.indices, ba = pi.length;
39314
39314
  for (let Sc = 0; Sc < ba; ++Sc) {
39315
- const ms = pi[Sc], Xs = lt[ms];
39316
- Xs.y < 0 ? (z = W.attributes, nt = W.indices, Pe = kt) : (z = N.attributes, nt = N.indices, Pe = mn), se = insertSplitPoint(
39315
+ const Xs = pi[Sc], ms = lt[Xs];
39316
+ ms.y < 0 ? (z = W.attributes, nt = W.indices, Pe = kt) : (z = N.attributes, nt = N.indices, Pe = mn), se = insertSplitPoint(
39317
39317
  z,
39318
39318
  nt,
39319
39319
  Pe,
39320
39320
  P,
39321
- ms < 3 ? mt + ms : -1,
39322
- Xs
39321
+ Xs < 3 ? mt + Xs : -1,
39322
+ ms
39323
39323
  ), computeTriangleAttributes(
39324
39324
  zi,
39325
39325
  Sa,
39326
39326
  fa,
39327
- Xs,
39327
+ ms,
39328
39328
  s,
39329
39329
  c,
39330
39330
  h,
@@ -39683,10 +39683,10 @@ function splitLongitudePolyline(t) {
39683
39683
  if (yt /= Cartesian3.magnitudeSquared(
39684
39684
  Cartesian3.subtract(mt, se, cartesian3Scratch3)
39685
39685
  ), defined(y)) {
39686
- const lt = Cartesian4.fromArray(y, nt * 4, cartesian4Scratch0), pi = Cartesian4.fromArray(y, Pe * 4, cartesian4Scratch0), ba = CesiumMath.lerp(lt.x, pi.x, yt), Sc = CesiumMath.lerp(lt.y, pi.y, yt), ms = CesiumMath.lerp(lt.z, pi.z, yt), Xs = CesiumMath.lerp(lt.w, pi.w, yt);
39686
+ const lt = Cartesian4.fromArray(y, nt * 4, cartesian4Scratch0), pi = Cartesian4.fromArray(y, Pe * 4, cartesian4Scratch0), ba = CesiumMath.lerp(lt.x, pi.x, yt), Sc = CesiumMath.lerp(lt.y, pi.y, yt), Xs = CesiumMath.lerp(lt.z, pi.z, yt), ms = CesiumMath.lerp(lt.w, pi.w, yt);
39687
39687
  for (F = nt * 4; F < nt * 4 + 2 * 4; ++F)
39688
39688
  kt.color.values.push(y[F]);
39689
- for (kt.color.values.push(ba, Sc, ms, Xs), kt.color.values.push(ba, Sc, ms, Xs), _i.color.values.push(ba, Sc, ms, Xs), _i.color.values.push(ba, Sc, ms, Xs), F = Pe * 4; F < Pe * 4 + 2 * 4; ++F)
39689
+ for (kt.color.values.push(ba, Sc, Xs, ms), kt.color.values.push(ba, Sc, Xs, ms), _i.color.values.push(ba, Sc, Xs, ms), _i.color.values.push(ba, Sc, Xs, ms), F = Pe * 4; F < Pe * 4 + 2 * 4; ++F)
39690
39690
  _i.color.values.push(y[F]);
39691
39691
  }
39692
39692
  if (defined(p)) {
@@ -40556,11 +40556,11 @@ function vincentyInverseFormula(t, n, o, s, c, d, h) {
40556
40556
  Ra
40557
40557
  );
40558
40558
  } while (Math.abs(mt - kt) > CesiumMath.EPSILON12);
40559
- const ma = La * (n * n - o * o) / (o * o), yt = 1 + ma * (4096 + ma * (ma * (320 - 175 * ma) - 768)) / 16384, lt = ma * (256 + ma * (ma * (74 - 47 * ma) - 128)) / 1024, pi = Ra * Ra, ba = lt * fa * (Ra + lt * (Sa * (2 * pi - 1) - lt * Ra * (4 * fa * fa - 3) * (4 * pi - 3) / 6) / 4), Sc = o * yt * (zi - ba), ms = Math.atan2(
40559
+ const ma = La * (n * n - o * o) / (o * o), yt = 1 + ma * (4096 + ma * (ma * (320 - 175 * ma) - 768)) / 16384, lt = ma * (256 + ma * (ma * (74 - 47 * ma) - 128)) / 1024, pi = Ra * Ra, ba = lt * fa * (Ra + lt * (Sa * (2 * pi - 1) - lt * Ra * (4 * fa * fa - 3) * (4 * pi - 3) / 6) / 4), Sc = o * yt * (zi - ba), Xs = Math.atan2(
40560
40560
  N * _i,
40561
40561
  nt - se * mn
40562
- ), Xs = Math.atan2(L * _i, nt * mn - se);
40563
- t._distance = Sc, t._startHeading = ms, t._endHeading = Xs, t._uSquared = ma;
40562
+ ), ms = Math.atan2(L * _i, nt * mn - se);
40563
+ t._distance = Sc, t._startHeading = Xs, t._endHeading = ms, t._uSquared = ma;
40564
40564
  }
40565
40565
  const scratchCart1 = new Cartesian3(), scratchCart2 = new Cartesian3();
40566
40566
  function computeProperties(t, n, o, s) {
@@ -41168,13 +41168,13 @@ GroundPolylineGeometry.createGeometry = function(t) {
41168
41168
  return;
41169
41169
  const Sa = [], fa = [], La = [], Ra = [];
41170
41170
  let ma = previousBottomScratch, yt = vertexBottomScratch, lt = vertexTopScratch, pi = nextBottomScratch, ba = vertexNormalScratch;
41171
- const Sc = zi[0], ms = zi[1], Xs = zi[_i - 1];
41171
+ const Sc = zi[0], Xs = zi[1], ms = zi[_i - 1];
41172
41172
  for (ma = getPosition$1(
41173
41173
  s,
41174
- Xs,
41174
+ ms,
41175
41175
  p,
41176
41176
  ma
41177
- ), pi = getPosition$1(s, ms, p, pi), yt = getPosition$1(
41177
+ ), pi = getPosition$1(s, Xs, p, pi), yt = getPosition$1(
41178
41178
  s,
41179
41179
  Sc,
41180
41180
  p,
@@ -41187,13 +41187,13 @@ GroundPolylineGeometry.createGeometry = function(t) {
41187
41187
  ba
41188
41188
  ) : ba = computeRightNormal(
41189
41189
  Sc,
41190
- ms,
41190
+ Xs,
41191
41191
  y,
41192
41192
  s,
41193
41193
  ba
41194
41194
  ), Cartesian3.pack(ba, fa, 0), Cartesian3.pack(yt, La, 0), Cartesian3.pack(lt, Ra, 0), Sa.push(Sc.latitude), Sa.push(Sc.longitude), interpolateSegment(
41195
41195
  Sc,
41196
- ms,
41196
+ Xs,
41197
41197
  p,
41198
41198
  y,
41199
41199
  c,
@@ -41466,7 +41466,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41466
41466
  ), ba += Cartesian3.distance(yt, lt), y += 3;
41467
41467
  let Sc;
41468
41468
  y = 3;
41469
- let ms = 0, Xs = 0, yu = 0, Nl = 0, pu = !1, Ru = Cartesian3.unpack(
41469
+ let Xs = 0, ms = 0, yu = 0, Nl = 0, pu = !1, Ru = Cartesian3.unpack(
41470
41470
  o,
41471
41471
  0,
41472
41472
  segmentEndBottomScratch
@@ -41486,7 +41486,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41486
41486
  Gd
41487
41487
  ));
41488
41488
  }
41489
- let uf = 0, hf = 0, mf = 0;
41489
+ let lf = 0, hf = 0, mf = 0;
41490
41490
  for (p = 0; p < P; p++) {
41491
41491
  const vf = Cartesian3.clone(Ru, segmentStartBottomScratch), Wa = Cartesian3.clone(Vd, segmentStartTopScratch);
41492
41492
  let af = Cartesian3.clone(
@@ -41504,7 +41504,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41504
41504
  c,
41505
41505
  y,
41506
41506
  segmentEndNormalScratch
41507
- ), pu = breakMiter(Gd, vf, Ru, Vd), Ra.latitude = d[ms], Ra.longitude = d[ms + 1], ma.latitude = d[ms + 2], ma.longitude = d[ms + 3];
41507
+ ), pu = breakMiter(Gd, vf, Ru, Vd), Ra.latitude = d[Xs], Ra.longitude = d[Xs + 1], ma.latitude = d[Xs + 2], ma.longitude = d[Xs + 3];
41508
41508
  let Xd, gd, pd, Zd;
41509
41509
  if (h) {
41510
41510
  const tf = nudgeCartographic(Ra, ma);
@@ -41566,7 +41566,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41566
41566
  endPlaneNormalScratch
41567
41567
  );
41568
41568
  Af = Cartesian3.normalize(Af, Af);
41569
- const $f = cf / ba, xf = uf / ba;
41569
+ const $f = cf / ba, xf = lf / ba;
41570
41570
  let wf = 0, Yf, Nf, jf, rp = 0, tp = 0;
41571
41571
  if (h) {
41572
41572
  wf = Cartesian3.distance(Xd, gd), Yf = EncodedCartesian3.fromCartesian(
@@ -41581,7 +41581,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41581
41581
  jf.x = jf.y, jf.y = -tf, rp = wf / La, tp = hf / La;
41582
41582
  }
41583
41583
  for (Sc = 0; Sc < 8; Sc++) {
41584
- const tf = Nl + Sc * 4, gf = Xs + Sc * 2, Mf = tf + 3, Wf = Sc < 4 ? 1 : -1, Xf = Sc === 2 || Sc === 3 || Sc === 6 || Sc === 7 ? 1 : -1;
41584
+ const tf = Nl + Sc * 4, gf = ms + Sc * 2, Mf = tf + 3, Wf = Sc < 4 ? 1 : -1, Xf = Sc === 2 || Sc === 3 || Sc === 6 || Sc === 7 ? 1 : -1;
41585
41585
  Cartesian3.pack(of.high, nt, tf), nt[Mf] = rf.x, Cartesian3.pack(of.low, Pe, tf), Pe[Mf] = rf.y, Cartesian3.pack(
41586
41586
  _f,
41587
41587
  se,
@@ -41598,7 +41598,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41598
41598
  let qf = xf * Xf;
41599
41599
  qf === 0 && Xf < 0 && (qf = 9), kt[Mf] = qf, h && (mn[tf] = Yf.high.x, mn[tf + 1] = Yf.high.y, mn[tf + 2] = Yf.low.x, mn[tf + 3] = Yf.low.y, zi[tf] = -pd.y, zi[tf + 1] = pd.x, zi[tf + 2] = Zd.y, zi[tf + 3] = -Zd.x, _i[tf] = Nf.x, _i[tf + 1] = Nf.y, _i[tf + 2] = jf.x, _i[tf + 3] = jf.y, Sa[gf] = rp * Wf, qf = tp * Xf, qf === 0 && Xf < 0 && (qf = 9), Sa[gf + 1] = qf);
41600
41600
  }
41601
- const np = adjustHeightStartBottomScratch, Sf = adjustHeightEndBottomScratch, Of = adjustHeightStartTopScratch, kf = adjustHeightEndTopScratch, Bf = Rectangle.fromCartographicArray(
41601
+ const np = adjustHeightStartBottomScratch, Sf = adjustHeightEndBottomScratch, Lf = adjustHeightStartTopScratch, kf = adjustHeightEndTopScratch, Bf = Rectangle.fromCartographicArray(
41602
41602
  getHeightCartographics,
41603
41603
  getHeightRectangleScratch
41604
41604
  ), Qf = ApproximateTerrainHeights.getMinimumMaximumHeights(
@@ -41611,7 +41611,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41611
41611
  ep,
41612
41612
  ip,
41613
41613
  np,
41614
- Of
41614
+ Lf
41615
41615
  ), adjustHeights(
41616
41616
  Ru,
41617
41617
  Vd,
@@ -41629,7 +41629,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41629
41629
  np,
41630
41630
  Ef,
41631
41631
  np
41632
- ), Cartesian3.add(Sf, Ef, Sf), Cartesian3.add(Of, Ef, Of), Cartesian3.add(kf, Ef, kf), nudgeXZ(np, Sf), nudgeXZ(Of, kf), Cartesian3.pack(np, z, yu), Cartesian3.pack(Sf, z, yu + 3), Cartesian3.pack(kf, z, yu + 6), Cartesian3.pack(Of, z, yu + 9), Ef = Cartesian3.multiplyByScalar(
41632
+ ), Cartesian3.add(Sf, Ef, Sf), Cartesian3.add(Lf, Ef, Lf), Cartesian3.add(kf, Ef, kf), nudgeXZ(np, Sf), nudgeXZ(Lf, kf), Cartesian3.pack(np, z, yu), Cartesian3.pack(Sf, z, yu + 3), Cartesian3.pack(kf, z, yu + 6), Cartesian3.pack(Lf, z, yu + 9), Ef = Cartesian3.multiplyByScalar(
41633
41633
  ff,
41634
41634
  -2 * CesiumMath.EPSILON5,
41635
41635
  normalNudgeScratch
@@ -41637,7 +41637,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41637
41637
  np,
41638
41638
  Ef,
41639
41639
  np
41640
- ), Cartesian3.add(Sf, Ef, Sf), Cartesian3.add(Of, Ef, Of), Cartesian3.add(kf, Ef, kf), nudgeXZ(np, Sf), nudgeXZ(Of, kf), Cartesian3.pack(
41640
+ ), Cartesian3.add(Sf, Ef, Sf), Cartesian3.add(Lf, Ef, Lf), Cartesian3.add(kf, Ef, kf), nudgeXZ(np, Sf), nudgeXZ(Lf, kf), Cartesian3.pack(
41641
41641
  np,
41642
41642
  z,
41643
41643
  yu + 12
@@ -41645,7 +41645,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41645
41645
  Sf,
41646
41646
  z,
41647
41647
  yu + 15
41648
- ), Cartesian3.pack(kf, z, yu + 18), Cartesian3.pack(Of, z, yu + 21), ms += 2, y += 3, Xs += 16, yu += 24, Nl += 32, uf += cf, hf += wf;
41648
+ ), Cartesian3.pack(kf, z, yu + 18), Cartesian3.pack(Lf, z, yu + 21), Xs += 2, y += 3, ms += 16, yu += 24, Nl += 32, lf += cf, hf += wf;
41649
41649
  }
41650
41650
  y = 0;
41651
41651
  let pf = 0;
@@ -63306,8 +63306,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
63306
63306
  },
63307
63307
  readFields: function(lt, pi, ba) {
63308
63308
  for (ba = ba || this.length; this.pos < ba; ) {
63309
- var Sc = this.readVarint(), ms = Sc >> 3, Xs = this.pos;
63310
- this.type = Sc & 7, lt(ms, pi, this), this.pos === Xs && this.skip(Sc);
63309
+ var Sc = this.readVarint(), Xs = Sc >> 3, ms = this.pos;
63310
+ this.type = Sc & 7, lt(Xs, pi, this), this.pos === ms && this.skip(Sc);
63311
63311
  }
63312
63312
  return pi;
63313
63313
  },
@@ -63576,9 +63576,9 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
63576
63576
  }
63577
63577
  };
63578
63578
  function y(lt, pi, ba) {
63579
- var Sc = ba.buf, ms, Xs;
63580
- if (Xs = Sc[ba.pos++], ms = (Xs & 112) >> 4, Xs < 128 || (Xs = Sc[ba.pos++], ms |= (Xs & 127) << 3, Xs < 128) || (Xs = Sc[ba.pos++], ms |= (Xs & 127) << 10, Xs < 128) || (Xs = Sc[ba.pos++], ms |= (Xs & 127) << 17, Xs < 128) || (Xs = Sc[ba.pos++], ms |= (Xs & 127) << 24, Xs < 128) || (Xs = Sc[ba.pos++], ms |= (Xs & 1) << 31, Xs < 128))
63581
- return P(lt, ms, pi);
63579
+ var Sc = ba.buf, Xs, ms;
63580
+ if (ms = Sc[ba.pos++], Xs = (ms & 112) >> 4, ms < 128 || (ms = Sc[ba.pos++], Xs |= (ms & 127) << 3, ms < 128) || (ms = Sc[ba.pos++], Xs |= (ms & 127) << 10, ms < 128) || (ms = Sc[ba.pos++], Xs |= (ms & 127) << 17, ms < 128) || (ms = Sc[ba.pos++], Xs |= (ms & 127) << 24, ms < 128) || (ms = Sc[ba.pos++], Xs |= (ms & 1) << 31, ms < 128))
63581
+ return P(lt, Xs, pi);
63582
63582
  throw new Error("Expected varint not more than 10 bytes");
63583
63583
  }
63584
63584
  function S(lt) {
@@ -63603,8 +63603,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
63603
63603
  function W(lt, pi, ba) {
63604
63604
  var Sc = pi <= 16383 ? 1 : pi <= 2097151 ? 2 : pi <= 268435455 ? 3 : Math.floor(Math.log(pi) / (Math.LN2 * 7));
63605
63605
  ba.realloc(Sc);
63606
- for (var ms = ba.pos - 1; ms >= lt; ms--)
63607
- ba.buf[ms + Sc] = ba.buf[ms];
63606
+ for (var Xs = ba.pos - 1; Xs >= lt; Xs--)
63607
+ ba.buf[Xs + Sc] = ba.buf[Xs];
63608
63608
  }
63609
63609
  function z(lt, pi) {
63610
63610
  for (var ba = 0; ba < lt.length; ba++)
@@ -63652,12 +63652,12 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
63652
63652
  return (lt[pi] | lt[pi + 1] << 8 | lt[pi + 2] << 16) + (lt[pi + 3] << 24);
63653
63653
  }
63654
63654
  function Ra(lt, pi, ba) {
63655
- for (var Sc = "", ms = pi; ms < ba; ) {
63656
- var Xs = lt[ms], yu = null, Nl = Xs > 239 ? 4 : Xs > 223 ? 3 : Xs > 191 ? 2 : 1;
63657
- if (ms + Nl > ba)
63655
+ for (var Sc = "", Xs = pi; Xs < ba; ) {
63656
+ var ms = lt[Xs], yu = null, Nl = ms > 239 ? 4 : ms > 223 ? 3 : ms > 191 ? 2 : 1;
63657
+ if (Xs + Nl > ba)
63658
63658
  break;
63659
63659
  var pu, Ru, Vd;
63660
- Nl === 1 ? Xs < 128 && (yu = Xs) : Nl === 2 ? (pu = lt[ms + 1], (pu & 192) === 128 && (yu = (Xs & 31) << 6 | pu & 63, yu <= 127 && (yu = null))) : Nl === 3 ? (pu = lt[ms + 1], Ru = lt[ms + 2], (pu & 192) === 128 && (Ru & 192) === 128 && (yu = (Xs & 15) << 12 | (pu & 63) << 6 | Ru & 63, (yu <= 2047 || yu >= 55296 && yu <= 57343) && (yu = null))) : Nl === 4 && (pu = lt[ms + 1], Ru = lt[ms + 2], Vd = lt[ms + 3], (pu & 192) === 128 && (Ru & 192) === 128 && (Vd & 192) === 128 && (yu = (Xs & 15) << 18 | (pu & 63) << 12 | (Ru & 63) << 6 | Vd & 63, (yu <= 65535 || yu >= 1114112) && (yu = null))), yu === null ? (yu = 65533, Nl = 1) : yu > 65535 && (yu -= 65536, Sc += String.fromCharCode(yu >>> 10 & 1023 | 55296), yu = 56320 | yu & 1023), Sc += String.fromCharCode(yu), ms += Nl;
63660
+ Nl === 1 ? ms < 128 && (yu = ms) : Nl === 2 ? (pu = lt[Xs + 1], (pu & 192) === 128 && (yu = (ms & 31) << 6 | pu & 63, yu <= 127 && (yu = null))) : Nl === 3 ? (pu = lt[Xs + 1], Ru = lt[Xs + 2], (pu & 192) === 128 && (Ru & 192) === 128 && (yu = (ms & 15) << 12 | (pu & 63) << 6 | Ru & 63, (yu <= 2047 || yu >= 55296 && yu <= 57343) && (yu = null))) : Nl === 4 && (pu = lt[Xs + 1], Ru = lt[Xs + 2], Vd = lt[Xs + 3], (pu & 192) === 128 && (Ru & 192) === 128 && (Vd & 192) === 128 && (yu = (ms & 15) << 18 | (pu & 63) << 12 | (Ru & 63) << 6 | Vd & 63, (yu <= 65535 || yu >= 1114112) && (yu = null))), yu === null ? (yu = 65533, Nl = 1) : yu > 65535 && (yu -= 65536, Sc += String.fromCharCode(yu >>> 10 & 1023 | 55296), yu = 56320 | yu & 1023), Sc += String.fromCharCode(yu), Xs += Nl;
63661
63661
  }
63662
63662
  return Sc;
63663
63663
  }
@@ -63665,21 +63665,21 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
63665
63665
  return p.decode(lt.subarray(pi, ba));
63666
63666
  }
63667
63667
  function yt(lt, pi, ba) {
63668
- for (var Sc = 0, ms, Xs; Sc < pi.length; Sc++) {
63669
- if (ms = pi.charCodeAt(Sc), ms > 55295 && ms < 57344)
63670
- if (Xs)
63671
- if (ms < 56320) {
63672
- lt[ba++] = 239, lt[ba++] = 191, lt[ba++] = 189, Xs = ms;
63668
+ for (var Sc = 0, Xs, ms; Sc < pi.length; Sc++) {
63669
+ if (Xs = pi.charCodeAt(Sc), Xs > 55295 && Xs < 57344)
63670
+ if (ms)
63671
+ if (Xs < 56320) {
63672
+ lt[ba++] = 239, lt[ba++] = 191, lt[ba++] = 189, ms = Xs;
63673
63673
  continue;
63674
63674
  } else
63675
- ms = Xs - 55296 << 10 | ms - 56320 | 65536, Xs = null;
63675
+ Xs = ms - 55296 << 10 | Xs - 56320 | 65536, ms = null;
63676
63676
  else {
63677
- ms > 56319 || Sc + 1 === pi.length ? (lt[ba++] = 239, lt[ba++] = 191, lt[ba++] = 189) : Xs = ms;
63677
+ Xs > 56319 || Sc + 1 === pi.length ? (lt[ba++] = 239, lt[ba++] = 191, lt[ba++] = 189) : ms = Xs;
63678
63678
  continue;
63679
63679
  }
63680
63680
  else
63681
- Xs && (lt[ba++] = 239, lt[ba++] = 191, lt[ba++] = 189, Xs = null);
63682
- ms < 128 ? lt[ba++] = ms : (ms < 2048 ? lt[ba++] = ms >> 6 | 192 : (ms < 65536 ? lt[ba++] = ms >> 12 | 224 : (lt[ba++] = ms >> 18 | 240, lt[ba++] = ms >> 12 & 63 | 128), lt[ba++] = ms >> 6 & 63 | 128), lt[ba++] = ms & 63 | 128);
63681
+ ms && (lt[ba++] = 239, lt[ba++] = 191, lt[ba++] = 189, ms = null);
63682
+ Xs < 128 ? lt[ba++] = Xs : (Xs < 2048 ? lt[ba++] = Xs >> 6 | 192 : (Xs < 65536 ? lt[ba++] = Xs >> 12 | 224 : (lt[ba++] = Xs >> 18 | 240, lt[ba++] = Xs >> 12 & 63 | 128), lt[ba++] = Xs >> 6 & 63 | 128), lt[ba++] = Xs & 63 | 128);
63683
63683
  }
63684
63684
  return ba;
63685
63685
  }
@@ -63693,8 +63693,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
63693
63693
  (function zi(Sa, fa, La, Ra, ma) {
63694
63694
  for (; Ra > La; ) {
63695
63695
  if (Ra - La > 600) {
63696
- var yt = Ra - La + 1, lt = fa - La + 1, pi = Math.log(yt), ba = 0.5 * Math.exp(2 * pi / 3), Sc = 0.5 * Math.sqrt(pi * ba * (yt - ba) / yt) * (lt - yt / 2 < 0 ? -1 : 1), ms = Math.max(La, Math.floor(fa - lt * ba / yt + Sc)), Xs = Math.min(Ra, Math.floor(fa + (yt - lt) * ba / yt + Sc));
63697
- zi(Sa, fa, ms, Xs, ma);
63696
+ var yt = Ra - La + 1, lt = fa - La + 1, pi = Math.log(yt), ba = 0.5 * Math.exp(2 * pi / 3), Sc = 0.5 * Math.sqrt(pi * ba * (yt - ba) / yt) * (lt - yt / 2 < 0 ? -1 : 1), Xs = Math.max(La, Math.floor(fa - lt * ba / yt + Sc)), ms = Math.min(Ra, Math.floor(fa + (yt - lt) * ba / yt + Sc));
63697
+ zi(Sa, fa, Xs, ms, ma);
63698
63698
  }
63699
63699
  var yu = Sa[fa], Nl = La, pu = Ra;
63700
63700
  for (s(Sa, La, fa), ma(Sa[Ra], yu) > 0 && s(Sa, La, Ra); Nl < pu; ) {
@@ -63889,8 +63889,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
63889
63889
  this.data = nt([se, mt]), this.data.height = se.height + 1, this.data.leaf = !1, p(this.data, this.toBBox);
63890
63890
  }, d.prototype._chooseSplitIndex = function(se, mt, kt) {
63891
63891
  for (var mn, _i, zi, Sa, fa, La, Ra, ma = 1 / 0, yt = 1 / 0, lt = mt; lt <= kt - mt; lt++) {
63892
- var pi = y(se, 0, lt, this.toBBox), ba = y(se, lt, kt, this.toBBox), Sc = (_i = pi, zi = ba, Sa = void 0, fa = void 0, La = void 0, Ra = void 0, Sa = Math.max(_i.minX, zi.minX), fa = Math.max(_i.minY, zi.minY), La = Math.min(_i.maxX, zi.maxX), Ra = Math.min(_i.maxY, zi.maxY), Math.max(0, La - Sa) * Math.max(0, Ra - fa)), ms = F(pi) + F(ba);
63893
- Sc < ma ? (ma = Sc, mn = lt, yt = ms < yt ? ms : yt) : Sc === ma && ms < yt && (yt = ms, mn = lt);
63892
+ var pi = y(se, 0, lt, this.toBBox), ba = y(se, lt, kt, this.toBBox), Sc = (_i = pi, zi = ba, Sa = void 0, fa = void 0, La = void 0, Ra = void 0, Sa = Math.max(_i.minX, zi.minX), fa = Math.max(_i.minY, zi.minY), La = Math.min(_i.maxX, zi.maxX), Ra = Math.min(_i.maxY, zi.maxY), Math.max(0, La - Sa) * Math.max(0, Ra - fa)), Xs = F(pi) + F(ba);
63893
+ Sc < ma ? (ma = Sc, mn = lt, yt = Xs < yt ? Xs : yt) : Sc === ma && Xs < yt && (yt = Xs, mn = lt);
63894
63894
  }
63895
63895
  return mn || kt - mt;
63896
63896
  }, d.prototype._chooseSplitAxis = function(se, mt, kt) {
@@ -65474,11 +65474,11 @@ function simplepolygon(t) {
65474
65474
  );
65475
65475
  var c = o.length, d = isects(
65476
65476
  t,
65477
- function(Vd, Gd, uf, hf, mf, pf, sf, yf, Tf, vf, Wa, af) {
65477
+ function(Vd, Gd, lf, hf, mf, pf, sf, yf, Tf, vf, Wa, af) {
65478
65478
  return [
65479
65479
  Vd,
65480
65480
  Gd,
65481
- uf,
65481
+ lf,
65482
65482
  hf,
65483
65483
  mf,
65484
65484
  pf,
@@ -65499,8 +65499,8 @@ function simplepolygon(t) {
65499
65499
  winding: windingOfRing(t.geometry.coordinates[se])
65500
65500
  })
65501
65501
  );
65502
- var Xs = featureCollection$2(zi);
65503
- return yu(), Nl(), Xs;
65502
+ var ms = featureCollection$2(zi);
65503
+ return yu(), Nl(), ms;
65504
65504
  }
65505
65505
  for (var p = [], y = [], se = 0; se < n; se++) {
65506
65506
  p.push([]);
@@ -65547,8 +65547,8 @@ function simplepolygon(t) {
65547
65547
  );
65548
65548
  for (var P = y.length, se = 0; se < p.length; se++)
65549
65549
  for (var S = 0; S < p[se].length; S++)
65550
- p[se][S].sort(function(Gd, uf) {
65551
- return Gd.param < uf.param ? -1 : 1;
65550
+ p[se][S].sort(function(Gd, lf) {
65551
+ return Gd.param < lf.param ? -1 : 1;
65552
65552
  });
65553
65553
  for (var L = [], se = 0; se < P; se++)
65554
65554
  L.push({
@@ -65623,7 +65623,7 @@ function simplepolygon(t) {
65623
65623
  }
65624
65624
  if (Sc != null && Pe.splice(Sc, 1), equalArrays$1(pi, y[ba].ringAndEdge1)) {
65625
65625
  if (pi = y[ba].ringAndEdge2, y[ba].ringAndEdge2Walkable = !1, y[ba].ringAndEdge1Walkable) {
65626
- var ms = { isect: ba };
65626
+ var Xs = { isect: ba };
65627
65627
  isConvex(
65628
65628
  [
65629
65629
  y[lt].coord,
@@ -65631,12 +65631,12 @@ function simplepolygon(t) {
65631
65631
  y[y[ba].nxtIsectAlongRingAndEdge2].coord
65632
65632
  ],
65633
65633
  Ra == 1
65634
- ) ? (ms.parent = La, ms.winding = -Ra) : (ms.parent = ma, ms.winding = Ra), Pe.push(ms);
65634
+ ) ? (Xs.parent = La, Xs.winding = -Ra) : (Xs.parent = ma, Xs.winding = Ra), Pe.push(Xs);
65635
65635
  }
65636
65636
  lt = ba, ba = y[ba].nxtIsectAlongRingAndEdge2;
65637
65637
  } else {
65638
65638
  if (pi = y[ba].ringAndEdge1, y[ba].ringAndEdge1Walkable = !1, y[ba].ringAndEdge2Walkable) {
65639
- var ms = { isect: ba };
65639
+ var Xs = { isect: ba };
65640
65640
  isConvex(
65641
65641
  [
65642
65642
  y[lt].coord,
@@ -65644,7 +65644,7 @@ function simplepolygon(t) {
65644
65644
  y[y[ba].nxtIsectAlongRingAndEdge1].coord
65645
65645
  ],
65646
65646
  Ra == 1
65647
- ) ? (ms.parent = La, ms.winding = -Ra) : (ms.parent = ma, ms.winding = Ra), Pe.push(ms);
65647
+ ) ? (Xs.parent = La, Xs.winding = -Ra) : (Xs.parent = ma, Xs.winding = Ra), Pe.push(Xs);
65648
65648
  }
65649
65649
  lt = ba, ba = y[ba].nxtIsectAlongRingAndEdge1;
65650
65650
  }
@@ -65658,37 +65658,37 @@ function simplepolygon(t) {
65658
65658
  })
65659
65659
  );
65660
65660
  }
65661
- var Xs = featureCollection$2(zi);
65661
+ var ms = featureCollection$2(zi);
65662
65662
  yu(), Nl();
65663
65663
  function yu() {
65664
- for (var Ru = [], Vd = 0; Vd < Xs.features.length; Vd++)
65665
- Xs.features[Vd].properties.parent == -1 && Ru.push(Vd);
65664
+ for (var Ru = [], Vd = 0; Vd < ms.features.length; Vd++)
65665
+ ms.features[Vd].properties.parent == -1 && Ru.push(Vd);
65666
65666
  if (Ru.length > 1)
65667
65667
  for (var Vd = 0; Vd < Ru.length; Vd++) {
65668
- for (var Gd = -1, uf = 1 / 0, hf = 0; hf < Xs.features.length; hf++)
65668
+ for (var Gd = -1, lf = 1 / 0, hf = 0; hf < ms.features.length; hf++)
65669
65669
  Ru[Vd] != hf && booleanPointInPolygon(
65670
- Xs.features[Ru[Vd]].geometry.coordinates[0][0],
65671
- Xs.features[hf],
65670
+ ms.features[Ru[Vd]].geometry.coordinates[0][0],
65671
+ ms.features[hf],
65672
65672
  { ignoreBoundary: !0 }
65673
- ) && area(Xs.features[hf]) < uf && (Gd = hf);
65674
- Xs.features[Ru[Vd]].properties.parent = Gd;
65673
+ ) && area(ms.features[hf]) < lf && (Gd = hf);
65674
+ ms.features[Ru[Vd]].properties.parent = Gd;
65675
65675
  }
65676
65676
  }
65677
65677
  function Nl() {
65678
- for (var Ru = 0; Ru < Xs.features.length; Ru++)
65679
- if (Xs.features[Ru].properties.parent == -1) {
65680
- var Vd = Xs.features[Ru].properties.winding;
65681
- Xs.features[Ru].properties.netWinding = Vd, pu(Ru, Vd);
65678
+ for (var Ru = 0; Ru < ms.features.length; Ru++)
65679
+ if (ms.features[Ru].properties.parent == -1) {
65680
+ var Vd = ms.features[Ru].properties.winding;
65681
+ ms.features[Ru].properties.netWinding = Vd, pu(Ru, Vd);
65682
65682
  }
65683
65683
  }
65684
65684
  function pu(Ru, Vd) {
65685
- for (var Gd = 0; Gd < Xs.features.length; Gd++)
65686
- if (Xs.features[Gd].properties.parent == Ru) {
65687
- var uf = Vd + Xs.features[Gd].properties.winding;
65688
- Xs.features[Gd].properties.netWinding = uf, pu(Gd, uf);
65685
+ for (var Gd = 0; Gd < ms.features.length; Gd++)
65686
+ if (ms.features[Gd].properties.parent == Ru) {
65687
+ var lf = Vd + ms.features[Gd].properties.winding;
65688
+ ms.features[Gd].properties.netWinding = lf, pu(Gd, lf);
65689
65689
  }
65690
65690
  }
65691
- return Xs;
65691
+ return ms;
65692
65692
  }
65693
65693
  var PseudoVtx = function(t, n, o, s, c) {
65694
65694
  this.coord = t, this.param = n, this.ringAndEdgeIn = o, this.ringAndEdgeOut = s, this.nxtIsectAlongEdgeIn = c;
@@ -67639,9 +67639,9 @@ const useHooks$6 = ({
67639
67639
  },
67640
67640
  [c]
67641
67641
  ), yt = useRef(), lt = useCallback(
67642
- (Ru, { position: Vd, oppositePosition: Gd, pointLocal: uf, index: hf, layerId: mf }) => {
67642
+ (Ru, { position: Vd, oppositePosition: Gd, pointLocal: lf, index: hf, layerId: mf }) => {
67643
67643
  var Af;
67644
- if (Ra.current !== hf || !Vd || !Gd || !uf || !c)
67644
+ if (Ra.current !== hf || !Vd || !Gd || !lf || !c)
67645
67645
  return;
67646
67646
  const pf = Ru.startPosition;
67647
67647
  if (yt.current === void 0) {
@@ -67659,7 +67659,7 @@ const useHooks$6 = ({
67659
67659
  Tf
67660
67660
  );
67661
67661
  yt.current = sf.clone();
67662
- const Xd = Cartesian3$1.normalize(uf, new Cartesian3$1()), gd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(1, 0, 0), Xd)), pd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 1, 0), Xd)), Zd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 0, 1), Xd)), cf = gd && pd && Zd;
67662
+ const Xd = Cartesian3$1.normalize(lf, new Cartesian3$1()), gd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(1, 0, 0), Xd)), pd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 1, 0), Xd)), Zd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 0, 1), Xd)), cf = gd && pd && Zd;
67663
67663
  if (Wa < 0 && (Xd.x && Xd.y && Xd.y ? af / Math.sqrt(2) : af) < 20)
67664
67664
  return;
67665
67665
  const of = Cartesian3$1.multiplyByScalar(
@@ -67722,18 +67722,18 @@ const useHooks$6 = ({
67722
67722
  c && (ba.current = Vd, updateMapController(c, !1));
67723
67723
  },
67724
67724
  [c]
67725
- ), ms = useRef(), Xs = useCallback(
67725
+ ), Xs = useRef(), ms = useCallback(
67726
67726
  (Ru, { index: Vd, layerId: Gd }) => {
67727
67727
  var Wa;
67728
67728
  if (ba.current !== Vd)
67729
67729
  return;
67730
- const uf = Ru.startPosition;
67731
- if (ms.current === void 0) {
67732
- ms.current = uf.x;
67730
+ const lf = Ru.startPosition;
67731
+ if (Xs.current === void 0) {
67732
+ Xs.current = lf.x;
67733
67733
  return;
67734
67734
  }
67735
- const hf = uf.x - ms.current;
67736
- ms.current = uf.x;
67735
+ const hf = lf.x - Xs.current;
67736
+ Xs.current = lf.x;
67737
67737
  const mf = 0.05, pf = new HeadingPitchRoll$1(0, 0, 0);
67738
67738
  pf.heading = -hf * mf, pf.pitch = 0, pf.roll = 0;
67739
67739
  const sf = new Quaternion$1();
@@ -67757,7 +67757,7 @@ const useHooks$6 = ({
67757
67757
  },
67758
67758
  [mn, d, s]
67759
67759
  ), yu = useCallback(() => {
67760
- c && (ba.current = void 0, ms.current = void 0, updateMapController(c, !0));
67760
+ c && (ba.current = void 0, Xs.current = void 0, updateMapController(c, !0));
67761
67761
  }, [c]);
67762
67762
  useEffect(() => {
67763
67763
  document.body.style.cursor = Pe || "default";
@@ -67776,7 +67776,7 @@ const useHooks$6 = ({
67776
67776
  handlePointMouseMove: lt,
67777
67777
  handlePointMouseUp: pi,
67778
67778
  handleEdgeMouseDown: Sc,
67779
- handleEdgeMouseMove: Xs,
67779
+ handleEdgeMouseMove: ms,
67780
67780
  handleEdgeMouseUp: yu
67781
67781
  };
67782
67782
  }, useHooks$5 = ({
@@ -68112,12 +68112,12 @@ const useHooks$6 = ({
68112
68112
  handleEdgeMouseUp: lt
68113
68113
  } = useHooks$6({ property: n, geometry: o, feature: d, onLayerEdit: h }), pi = (S + y + P) / 3 * 0.05, [ba, Sc] = [c == null ? void 0 : c.id, d == null ? void 0 : d.id];
68114
68114
  return !s || !p ? null : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
68115
- SIDE_PLANES.map((ms, Xs) => /* @__PURE__ */ jsxRuntimeExports.jsx(
68115
+ SIDE_PLANES.map((Xs, ms) => /* @__PURE__ */ jsxRuntimeExports.jsx(
68116
68116
  Side,
68117
68117
  {
68118
- layerId: `${ba}-plane-${SIDE_PLANE_NAMES[Xs]}`,
68119
- featureId: `${Sc}-plane-${SIDE_PLANE_NAMES[Xs]}`,
68120
- planeLocal: ms,
68118
+ layerId: `${ba}-plane-${SIDE_PLANE_NAMES[ms]}`,
68119
+ featureId: `${Sc}-plane-${SIDE_PLANE_NAMES[ms]}`,
68120
+ planeLocal: Xs,
68121
68121
  fill: kt.fill,
68122
68122
  fillColor: kt.fillColor,
68123
68123
  outlineColor: kt.outlineColor,
@@ -68128,38 +68128,38 @@ const useHooks$6 = ({
68128
68128
  distanceDisplayCondition: Sa,
68129
68129
  hideIndicator: se
68130
68130
  },
68131
- `${ba}-plane-${SIDE_PLANE_NAMES[Xs]}`
68131
+ `${ba}-plane-${SIDE_PLANE_NAMES[ms]}`
68132
68132
  )),
68133
- BOX_EDGES.map((ms, Xs) => /* @__PURE__ */ jsxRuntimeExports.jsx(
68133
+ BOX_EDGES.map((Xs, ms) => /* @__PURE__ */ jsxRuntimeExports.jsx(
68134
68134
  Edge,
68135
68135
  {
68136
- featureId: `${Sc}-edge${ms.isDraggable ? "-draggable" : ""}-${Xs}`,
68137
- layerId: `${ba}-edge${ms.isDraggable ? "-draggable" : ""}-${Xs}`,
68138
- index: Xs,
68139
- edge: ms,
68140
- isHovered: mt ? nt === Xs || !ms.isDraggable && !!z : !1,
68141
- width: ms.isDraggable && mt ? kt.draggableOutlineWidth : kt.outlineWidth,
68142
- fillColor: ms.isDraggable ? kt.draggableOutlineColor : kt.outlineColor,
68143
- hoverColor: mt ? ms.isDraggable ? kt.activeDraggableOutlineColor : kt.activeOutlineColor : void 0,
68136
+ featureId: `${Sc}-edge${Xs.isDraggable ? "-draggable" : ""}-${ms}`,
68137
+ layerId: `${ba}-edge${Xs.isDraggable ? "-draggable" : ""}-${ms}`,
68138
+ index: ms,
68139
+ edge: Xs,
68140
+ isHovered: mt ? nt === ms || !Xs.isDraggable && !!z : !1,
68141
+ width: Xs.isDraggable && mt ? kt.draggableOutlineWidth : kt.outlineWidth,
68142
+ fillColor: Xs.isDraggable ? kt.draggableOutlineColor : kt.outlineColor,
68143
+ hoverColor: mt ? Xs.isDraggable ? kt.activeDraggableOutlineColor : kt.activeOutlineColor : void 0,
68144
68144
  trs: mn,
68145
- onMouseDown: ms.isDraggable && mt ? ma : void 0,
68146
- onMouseMove: ms.isDraggable && mt ? yt : void 0,
68147
- onMouseUp: ms.isDraggable && mt ? lt : void 0,
68145
+ onMouseDown: Xs.isDraggable && mt ? ma : void 0,
68146
+ onMouseMove: Xs.isDraggable && mt ? yt : void 0,
68147
+ onMouseUp: Xs.isDraggable && mt ? lt : void 0,
68148
68148
  availability: zi,
68149
68149
  distanceDisplayCondition: Sa,
68150
68150
  hideIndicator: se
68151
68151
  },
68152
- `${ba}-edge-${Xs}`
68152
+ `${ba}-edge-${ms}`
68153
68153
  )),
68154
- N && SCALE_POINTS.map((ms, Xs) => /* @__PURE__ */ jsxRuntimeExports.jsx(
68154
+ N && SCALE_POINTS.map((Xs, ms) => /* @__PURE__ */ jsxRuntimeExports.jsx(
68155
68155
  ScalePoints,
68156
68156
  {
68157
68157
  layerId: `${ba}-scale-point`,
68158
68158
  featureId: `${Sc}-scale-point`,
68159
- index: Xs,
68160
- scalePoint: ms,
68159
+ index: ms,
68160
+ scalePoint: Xs,
68161
68161
  trs: mn,
68162
- isHovered: mt ? Pe === Xs : !1,
68162
+ isHovered: mt ? Pe === ms : !1,
68163
68163
  pointFillColor: mt ? _i.pointFillColor : void 0,
68164
68164
  pointOutlineColor: mt ? _i.pointOutlineColor : void 0,
68165
68165
  hoverPointOutlineColor: mt ? _i.activePointOutlineColor : void 0,
@@ -68172,7 +68172,7 @@ const useHooks$6 = ({
68172
68172
  length: pi
68173
68173
  },
68174
68174
  visiblePoint: N,
68175
- visibleAxisLine: W && Pe === Xs,
68175
+ visibleAxisLine: W && Pe === ms,
68176
68176
  onPointMouseDown: mt ? fa : void 0,
68177
68177
  onPointMouseMove: mt ? La : void 0,
68178
68178
  onPointMouseUp: mt ? Ra : void 0,
@@ -68180,7 +68180,7 @@ const useHooks$6 = ({
68180
68180
  distanceDisplayCondition: Sa,
68181
68181
  hideIndicator: se
68182
68182
  },
68183
- `${ba}-scale-point-${Xs}`
68183
+ `${ba}-scale-point-${ms}`
68184
68184
  ))
68185
68185
  ] });
68186
68186
  }), config$c = {
@@ -71671,18 +71671,18 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
71671
71671
  imageShadowColor: pi,
71672
71672
  imageShadowBlur: ba,
71673
71673
  imageShadowPositionX: Sc,
71674
- imageShadowPositionY: ms,
71675
- eyeOffset: Xs,
71674
+ imageShadowPositionY: Xs,
71675
+ eyeOffset: ms,
71676
71676
  pixelOffset: yu,
71677
71677
  heightReference: Nl,
71678
71678
  hideIndicator: pu
71679
71679
  } = t ?? {}, { useTransition: Ru, translate: Vd } = (c == null ? void 0 : c.transition) ?? {}, Gd = useMemo(
71680
71680
  () => Vd ? Cartesian3$1.fromDegrees(...Vd) : void 0,
71681
71681
  [Vd]
71682
- ), uf = useRef(Gd);
71683
- uf.current = Gd;
71682
+ ), lf = useRef(Gd);
71683
+ lf.current = Gd;
71684
71684
  const hf = useMemo(
71685
- () => Ru ? new CallbackProperty$1(() => uf.current, !1) : void 0,
71685
+ () => Ru ? new CallbackProperty$1(() => lf.current, !1) : void 0,
71686
71686
  [Ru]
71687
71687
  ), mf = useMemo(() => h ? Cartesian3$1.fromDegrees(h[0], h[1], h[2]) : void 0, [h]), pf = useMemo(() => S && h && typeof h[2] == "number" ? [
71688
71688
  Cartesian3$1.fromDegrees(h[0], h[1], h[2]),
@@ -71695,13 +71695,13 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
71695
71695
  shadowColor: pi,
71696
71696
  shadowBlur: ba,
71697
71697
  shadowOffsetX: Sc,
71698
- shadowOffsetY: ms
71698
+ shadowOffsetY: Xs
71699
71699
  }), Wa = useMemo(
71700
71700
  () => yu ? new Cartesian2$1(...yu) : void 0,
71701
71701
  [yu]
71702
71702
  ), af = useMemo(
71703
- () => Xs ? new Cartesian3$1(...Xs) : void 0,
71704
- [Xs]
71703
+ () => ms ? new Cartesian3$1(...ms) : void 0,
71704
+ [ms]
71705
71705
  ), Xd = useMemo(() => {
71706
71706
  if (Wa)
71707
71707
  return Wa;
@@ -71949,7 +71949,7 @@ function Model({
71949
71949
  )
71950
71950
  ),
71951
71951
  [yt, z, nt, P, Pe]
71952
- ), ms = useMemo(() => zi ? toColor(Sa) : void 0, [zi, Sa]), Xs = useMemo(() => toColor(La), [La]), yu = useMemo(() => toColor(ma), [ma]), Nl = useMemo(() => toTimeInterval(h == null ? void 0 : h.interval), [h == null ? void 0 : h.interval]), pu = useMemo(
71952
+ ), Xs = useMemo(() => zi ? toColor(Sa) : void 0, [zi, Sa]), ms = useMemo(() => toColor(La), [La]), yu = useMemo(() => toColor(ma), [ma]), Nl = useMemo(() => toTimeInterval(h == null ? void 0 : h.interval), [h == null ? void 0 : h.interval]), pu = useMemo(
71953
71953
  () => toDistanceDisplayCondition(o == null ? void 0 : o.near, o == null ? void 0 : o.far),
71954
71954
  [o == null ? void 0 : o.near, o == null ? void 0 : o.far]
71955
71955
  ), Ru = useMemo(() => {
@@ -71969,16 +71969,16 @@ function Model({
71969
71969
  (mf = (hf = s == null ? void 0 : s.scene) == null ? void 0 : hf.imageBasedLighting) == null ? void 0 : mf.specularEnvironmentMaps,
71970
71970
  (sf = (pf = s == null ? void 0 : s.scene) == null ? void 0 : pf.imageBasedLighting) == null ? void 0 : sf.sphericalHarmonicCoefficients,
71971
71971
  (Tf = (yf = s == null ? void 0 : s.scene) == null ? void 0 : yf.imageBasedLighting) == null ? void 0 : Tf.intensity
71972
- ]), { viewer: Vd } = $e$1(), { requestRender: Gd } = useContext(), uf = useRef(!1);
71972
+ ]), { viewer: Vd } = $e$1(), { requestRender: Gd } = useContext(), lf = useRef(!1);
71973
71973
  return useSceneEvent("postRender", () => {
71974
71974
  const vf = Vd == null ? void 0 : Vd.scene.primitives, Wa = (vf == null ? void 0 : vf.length) ?? 0;
71975
- if (!(!uf.current || !Ru))
71975
+ if (!(!lf.current || !Ru))
71976
71976
  for (let af = 0; af < Wa; af++) {
71977
71977
  const Xd = vf == null ? void 0 : vf.get(af);
71978
- Xd instanceof Model$1 && Xd.id && Xd.id.id === t && (Xd.imageBasedLighting = Ru, uf.current = !1, Gd == null || Gd());
71978
+ Xd instanceof Model$1 && Xd.id && Xd.id.id === t && (Xd.imageBasedLighting = Ru, lf.current = !1, Gd == null || Gd());
71979
71979
  }
71980
71980
  }), useEffect(() => {
71981
- Ru && (uf.current = !0);
71981
+ Ru && (lf.current = !0);
71982
71982
  }, [Ru]), useEffect(() => {
71983
71983
  Gd == null || Gd();
71984
71984
  }), (y ? h : !h) || !n || !L || !ba ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -72001,8 +72001,8 @@ function Model({
72001
72001
  customShader: pi === !1 ? NonPBRLightingShader : pi === "withTexture" ? NonPBRWithTextureLightingShader : void 0,
72002
72002
  colorBlendMode: colorBlendMode(zi),
72003
72003
  colorBlendAmount: fa,
72004
- color: ms,
72005
- lightColor: Xs,
72004
+ color: Xs,
72005
+ lightColor: ms,
72006
72006
  runAnimations: mn,
72007
72007
  silhouetteColor: yu,
72008
72008
  silhouetteSize: Ra ? lt : void 0,
@@ -74234,8 +74234,8 @@ function Cc(t, n, o, s, c) {
74234
74234
  let mn = (1 - z) * m.magnitude(t) / (0.5 * m.magnitude(kt)), _i = 0, zi, Sa, fa, La, Ra, ma, yt, lt, pi, ba, Sc;
74235
74235
  do {
74236
74236
  mn -= _i, fa = 1 / (1 + mn * Pe), La = 1 / (1 + mn * se), Ra = 1 / (1 + mn * mt), ma = fa * fa, yt = La * La, lt = Ra * Ra, pi = ma * fa, ba = yt * La, Sc = lt * Ra, zi = L * ma + F * yt + N * lt - 1, Sa = L * pi * Pe + F * ba * se + N * Sc * mt;
74237
- const ms = -2 * Sa;
74238
- _i = zi / ms;
74237
+ const Xs = -2 * Sa;
74238
+ _i = zi / Xs;
74239
74239
  } while (Math.abs(zi) > T.EPSILON12);
74240
74240
  return X(c) ? (c.x = d * fa, c.y = h * La, c.z = p * Ra, c) : new m(
74241
74241
  d * fa,
@@ -81075,24 +81075,24 @@ ql.default = {
81075
81075
  });
81076
81076
  }
81077
81077
  return new (Ra || (Ra = Promise))(function(lt, pi) {
81078
- function ba(Xs) {
81078
+ function ba(ms) {
81079
81079
  try {
81080
- ms(ma.next(Xs));
81080
+ Xs(ma.next(ms));
81081
81081
  } catch (yu) {
81082
81082
  pi(yu);
81083
81083
  }
81084
81084
  }
81085
- function Sc(Xs) {
81085
+ function Sc(ms) {
81086
81086
  try {
81087
- ms(ma.throw(Xs));
81087
+ Xs(ma.throw(ms));
81088
81088
  } catch (yu) {
81089
81089
  pi(yu);
81090
81090
  }
81091
81091
  }
81092
- function ms(Xs) {
81093
- Xs.done ? lt(Xs.value) : yt(Xs.value).then(ba, Sc);
81092
+ function Xs(ms) {
81093
+ ms.done ? lt(ms.value) : yt(ms.value).then(ba, Sc);
81094
81094
  }
81095
- ms((ma = ma.apply(fa, La || [])).next());
81095
+ Xs((ma = ma.apply(fa, La || [])).next());
81096
81096
  });
81097
81097
  }, o = rt && rt.__importDefault || function(fa) {
81098
81098
  return fa && fa.__esModule ? fa : { default: fa };
@@ -81834,7 +81834,7 @@ function Resource({
81834
81834
  onComputedFeatureFetch: s,
81835
81835
  onComputedFeatureDelete: c
81836
81836
  }) {
81837
- var lt, pi, ba, Sc, ms, Xs;
81837
+ var lt, pi, ba, Sc, Xs, ms;
81838
81838
  const {
81839
81839
  show: d = !0,
81840
81840
  clampToGround: h,
@@ -81859,19 +81859,19 @@ function Resource({
81859
81859
  const Nl = [], pu = [];
81860
81860
  yu.entities.values.forEach((Ru) => {
81861
81861
  var hf;
81862
- const Vd = attachStyle(Ru, o, evalFeature, nt.clock.currentTime), [Gd, uf] = Vd || [];
81862
+ const Vd = attachStyle(Ru, o, evalFeature, nt.clock.currentTime), [Gd, lf] = Vd || [];
81863
81863
  attachTag(Ru, {
81864
81864
  layerId: o == null ? void 0 : o.id,
81865
81865
  featureId: Gd == null ? void 0 : Gd.id,
81866
- hideIndicator: (hf = uf == null ? void 0 : uf.resource) == null ? void 0 : hf.hideIndicator
81867
- }), Gd && !se.current.has(Gd.id) && (Nl.push(Gd), Pe.current.push({ feature: Gd, raw: Ru }), se.current.add(Gd.id)), uf && pu.push(uf);
81866
+ hideIndicator: (hf = lf == null ? void 0 : lf.resource) == null ? void 0 : hf.hideIndicator
81867
+ }), Gd && !se.current.has(Gd.id) && (Nl.push(Gd), Pe.current.push({ feature: Gd, raw: Ru }), se.current.add(Gd.id)), lf && pu.push(lf);
81868
81868
  }), N !== "geojson" && (s == null || s(Nl, pu)), _i == null || _i();
81869
81869
  },
81870
81870
  [o, nt, s, N, _i]
81871
81871
  ), fa = useRef({
81872
81872
  start: (pi = (lt = zi == null ? void 0 : zi.current) == null ? void 0 : lt.timeline) == null ? void 0 : pi.start,
81873
81873
  stop: (Sc = (ba = zi == null ? void 0 : zi.current) == null ? void 0 : ba.timeline) == null ? void 0 : Sc.stop,
81874
- current: (Xs = (ms = zi == null ? void 0 : zi.current) == null ? void 0 : ms.timeline) == null ? void 0 : Xs.current
81874
+ current: (ms = (Xs = zi == null ? void 0 : zi.current) == null ? void 0 : Xs.timeline) == null ? void 0 : ms.current
81875
81875
  }), La = useCallback(
81876
81876
  (yu) => {
81877
81877
  var Nl, pu;
@@ -82171,11 +82171,11 @@ const BUILTIN_BOX_SIDE_PLANES = [
82171
82171
  if (sf < yf)
82172
82172
  return pu + (yf - sf);
82173
82173
  }
82174
- })(), Vd = new Cartesian2$1(yu.startPosition.x, yu.startPosition.y), Gd = new Cartesian2$1(yu.endPosition.x, yu.endPosition.y), uf = Cartesian2$1.subtract(
82174
+ })(), Vd = new Cartesian2$1(yu.startPosition.x, yu.startPosition.y), Gd = new Cartesian2$1(yu.endPosition.x, yu.endPosition.y), lf = Cartesian2$1.subtract(
82175
82175
  Gd,
82176
82176
  Vd,
82177
82177
  new Cartesian2$1()
82178
- ), hf = new Cartesian3$1(0, 0, uf.y < 0 ? -1 : 1), { moveAmount: mf } = computeMoveAmount(
82178
+ ), hf = new Cartesian3$1(0, 0, lf.y < 0 ? -1 : 1), { moveAmount: mf } = computeMoveAmount(
82179
82179
  N.scene,
82180
82180
  {
82181
82181
  startPosition: Vd,
@@ -82289,10 +82289,10 @@ const BUILTIN_BOX_SIDE_PLANES = [
82289
82289
  },
82290
82290
  [Sc]
82291
82291
  );
82292
- const ms = useMemo(
82292
+ const Xs = useMemo(
82293
82293
  () => ({ ...mn, ...mt, allowEnterGround: c }),
82294
82294
  [mn, mt, c]
82295
- ), Xs = useMemo(
82295
+ ), ms = useMemo(
82296
82296
  () => o ? {
82297
82297
  visible: s,
82298
82298
  handleLayerEdit: ba,
@@ -82300,9 +82300,9 @@ const BUILTIN_BOX_SIDE_PLANES = [
82300
82300
  type: "Point",
82301
82301
  coordinates: Pe || d || [0, 0, 0]
82302
82302
  },
82303
- property: ms
82303
+ property: Xs
82304
82304
  } : void 0,
82305
- [ms, d, Pe, ba, o, s]
82305
+ [Xs, d, Pe, ba, o, s]
82306
82306
  );
82307
82307
  return {
82308
82308
  ...t,
@@ -82314,7 +82314,7 @@ const BUILTIN_BOX_SIDE_PLANES = [
82314
82314
  pitch: o ? mt == null ? void 0 : mt.pitch : t == null ? void 0 : t.pitch,
82315
82315
  roll: o ? mt == null ? void 0 : mt.roll : t == null ? void 0 : t.roll,
82316
82316
  coordinates: o ? Pe : t == null ? void 0 : t.coordinates,
82317
- builtinBoxProps: Xs
82317
+ builtinBoxProps: ms
82318
82318
  };
82319
82319
  };
82320
82320
  function getLayerId$1(t) {
@@ -82481,129 +82481,134 @@ const useDrawClipping = ({
82481
82481
  evalFeature: p,
82482
82482
  onComputedFeatureFetch: y,
82483
82483
  shouldUseFeatureIndex: S,
82484
- isTilesetReady: P
82484
+ isTilesetReady: P,
82485
+ useExternalStyle: L
82485
82486
  }) => {
82486
- const L = useRef([]), F = useRef(s), N = useRef(/* @__PURE__ */ new Set()), W = (s == null ? void 0 : s.id) || t, z = useRefValue(W), nt = useCallback(
82487
- async (yt) => {
82488
- var pi;
82489
- const lt = (pi = F == null ? void 0 : F.current) == null ? void 0 : pi.layer;
82490
- if ((lt == null ? void 0 : lt.type) === "simple" && (yt != null && yt.feature)) {
82491
- const ba = yt.raw, Sc = getTag(ba), ms = c && !(ba instanceof Model$1) ? convertCesium3DTileFeatureProperties(ba) : {}, Xs = S ? h.current.includes((Sc == null ? void 0 : Sc.featureId) ?? "") : Sc == null ? void 0 : Sc.isFeatureSelected, yu = p(lt, { ...yt == null ? void 0 : yt.feature, properties: ms }), Nl = yu == null ? void 0 : yu["3dtiles"];
82492
- return COMMON_STYLE_PROPERTIES.forEach(({ name: pu, convert: Ru }) => {
82493
- var Gd, uf;
82494
- const Vd = convertStyle(Nl == null ? void 0 : Nl[pu], Ru);
82495
- pu === "color" ? (ba.color = DEFAULT_FEATURE_COLOR, Vd !== void 0 && (ba.color = Vd), Xs && typeof ((Gd = lt["3dtiles"]) == null ? void 0 : Gd.selectedFeatureColor) == "string" && (ba.color = toColor((uf = lt["3dtiles"]) == null ? void 0 : uf.selectedFeatureColor) ?? Vd)) : Vd !== void 0 && (ba[pu] = Vd);
82496
- }), ba instanceof Cesium3DTilePointFeature && POINT_STYLE_PROPERTIES.forEach(({ name: pu, convert: Ru }) => {
82497
- const Vd = convertStyle(Nl == null ? void 0 : Nl[pu], Ru);
82498
- Vd !== void 0 && (ba[pu] = Vd);
82499
- }), "style" in ba && (ba.style = new Cesium3DTileStyle(
82500
- // TODO: Convert value if it's necessary
82501
- MODEL_STYLE_PROPERTIES.reduce((pu, { name: Ru, convert: Vd }) => {
82502
- const Gd = convertStyle(Nl == null ? void 0 : Nl[Ru], Vd);
82503
- return Gd === void 0 ? pu : { ...pu, [Ru]: Gd };
82504
- }, {})
82505
- )), attachTag(yt.raw, {
82506
- layerId: W,
82507
- featureId: yt.feature.id,
82508
- computedFeature: yu,
82509
- isFeatureSelected: Sc == null ? void 0 : Sc.isFeatureSelected
82510
- }), yu;
82487
+ const F = useRef([]), N = useRef(s), W = useRef(/* @__PURE__ */ new Set()), z = (s == null ? void 0 : s.id) || t, nt = useRefValue(z), Pe = useCallback(
82488
+ async (lt) => {
82489
+ var ba;
82490
+ const pi = (ba = N == null ? void 0 : N.current) == null ? void 0 : ba.layer;
82491
+ if ((pi == null ? void 0 : pi.type) === "simple" && (lt != null && lt.feature)) {
82492
+ const Sc = lt.raw, Xs = getTag(Sc), ms = c && !(Sc instanceof Model$1) ? convertCesium3DTileFeatureProperties(Sc) : {}, yu = S ? h.current.includes((Xs == null ? void 0 : Xs.featureId) ?? "") : Xs == null ? void 0 : Xs.isFeatureSelected, Nl = p(pi, { ...lt == null ? void 0 : lt.feature, properties: ms });
82493
+ if (!L) {
82494
+ const pu = Nl == null ? void 0 : Nl["3dtiles"];
82495
+ COMMON_STYLE_PROPERTIES.forEach(({ name: Ru, convert: Vd }) => {
82496
+ var lf, hf;
82497
+ const Gd = convertStyle(pu == null ? void 0 : pu[Ru], Vd);
82498
+ Ru === "color" ? (Sc.color = DEFAULT_FEATURE_COLOR, Gd !== void 0 && (Sc.color = Gd), yu && typeof ((lf = pi["3dtiles"]) == null ? void 0 : lf.selectedFeatureColor) == "string" && (Sc.color = toColor((hf = pi["3dtiles"]) == null ? void 0 : hf.selectedFeatureColor) ?? Gd)) : Gd !== void 0 && (Sc[Ru] = Gd);
82499
+ }), Sc instanceof Cesium3DTilePointFeature && POINT_STYLE_PROPERTIES.forEach(({ name: Ru, convert: Vd }) => {
82500
+ const Gd = convertStyle(pu == null ? void 0 : pu[Ru], Vd);
82501
+ Gd !== void 0 && (Sc[Ru] = Gd);
82502
+ }), "style" in Sc && (Sc.style = new Cesium3DTileStyle(
82503
+ // TODO: Convert value if it's necessary
82504
+ MODEL_STYLE_PROPERTIES.reduce((Ru, { name: Vd, convert: Gd }) => {
82505
+ const lf = convertStyle(pu == null ? void 0 : pu[Vd], Gd);
82506
+ return lf === void 0 ? Ru : { ...Ru, [Vd]: lf };
82507
+ }, {})
82508
+ ));
82509
+ }
82510
+ return attachTag(lt.raw, {
82511
+ layerId: z,
82512
+ featureId: lt.feature.id,
82513
+ computedFeature: Nl,
82514
+ isFeatureSelected: Xs == null ? void 0 : Xs.isFeatureSelected
82515
+ }), Nl;
82511
82516
  }
82512
82517
  },
82513
- [p, W, c, S, h]
82514
- ), Pe = useCallback(
82515
- async (yt) => {
82516
- if (yt.tileset.isDestroyed())
82518
+ [p, z, c, S, h, L]
82519
+ ), se = useCallback(
82520
+ async (lt) => {
82521
+ if (lt.tileset.isDestroyed())
82517
82522
  return;
82518
- const lt = /* @__PURE__ */ new Set();
82519
- await lookupFeatures(yt.content, async (pi, ba, Sc) => {
82523
+ const pi = /* @__PURE__ */ new Set();
82524
+ await lookupFeatures(lt.content, async (ba, Sc, Xs) => {
82520
82525
  const ms = {
82521
- feature: makeFeatureFrom3DTile(pi, ba, o),
82522
- raw: pi
82526
+ feature: makeFeatureFrom3DTile(ba, Sc, o),
82527
+ raw: ba
82523
82528
  };
82524
82529
  attachTag(ms.raw, {
82525
- layerId: z.current,
82530
+ layerId: nt.current,
82526
82531
  featureId: ms.feature.id
82527
- }), Sc != null && S && d.addFeature(ba, Sc, ms.feature.id), await nt(ms), L.current.push(ms), N.current.add(ms.feature.id), lt.add(pick(ms.feature, ["id", "type", "range"]));
82528
- }), y == null || y(Array.from(lt.values()), []);
82532
+ }), Xs != null && S && d.addFeature(Sc, Xs, ms.feature.id), await Pe(ms), F.current.push(ms), W.current.add(ms.feature.id), pi.add(pick(ms.feature, ["id", "type", "range"]));
82533
+ }), y == null || y(Array.from(pi.values()), []);
82529
82534
  },
82530
82535
  [
82531
- L,
82532
- nt,
82536
+ F,
82537
+ Pe,
82533
82538
  y,
82534
82539
  o,
82535
82540
  d,
82536
82541
  S,
82537
- z
82542
+ nt
82538
82543
  ]
82539
- ), se = useRef(Pe);
82540
- se.current = Pe, useEffect(
82544
+ ), mt = useRef(se);
82545
+ mt.current = se, useEffect(
82541
82546
  () => {
82542
- var yt;
82543
- return (yt = n.current) == null ? void 0 : yt.tileLoad.addEventListener(
82544
- (lt) => se.current(lt)
82547
+ var lt;
82548
+ return (lt = n.current) == null ? void 0 : lt.tileLoad.addEventListener(
82549
+ (pi) => mt.current(pi)
82545
82550
  );
82546
82551
  },
82547
82552
  [n, P]
82548
82553
  );
82549
- const mt = useCallback(
82550
- async (yt) => {
82551
- yt.tileset.isDestroyed() || !S || await lookupFeatures(yt.content, async (lt, pi) => {
82552
- d.deleteFeature(makeFeatureId(lt, pi, o));
82554
+ const kt = useCallback(
82555
+ async (lt) => {
82556
+ lt.tileset.isDestroyed() || !S || await lookupFeatures(lt.content, async (pi, ba) => {
82557
+ d.deleteFeature(makeFeatureId(pi, ba, o));
82553
82558
  });
82554
82559
  },
82555
82560
  [o, d, S]
82556
- ), kt = useRef(mt);
82557
- kt.current = mt, useEffect(
82561
+ ), mn = useRef(kt);
82562
+ mn.current = kt, useEffect(
82558
82563
  () => {
82559
- var yt;
82560
- return (yt = n.current) == null ? void 0 : yt.tileUnload.addEventListener(
82561
- (lt) => kt.current(lt)
82564
+ var lt;
82565
+ return (lt = n.current) == null ? void 0 : lt.tileUnload.addEventListener(
82566
+ (pi) => mn.current(pi)
82562
82567
  );
82563
82568
  },
82564
82569
  [n, P]
82565
82570
  ), useEffect(() => {
82566
- F.current = s;
82571
+ N.current = s;
82567
82572
  }, [s]);
82568
- const mn = useMemo(() => {
82569
- var yt;
82570
- return (yt = extractSimpleLayer(s)) == null ? void 0 : yt["3dtiles"];
82571
- }, [s]), _i = usePick(mn, TILESET_APPEARANCE_FIELDS), zi = S ? 0 : s == null ? void 0 : s.layer._updateStyle, Sa = useRef(zi), fa = useRef();
82573
+ const _i = useMemo(() => {
82574
+ var lt;
82575
+ return (lt = extractSimpleLayer(s)) == null ? void 0 : lt["3dtiles"];
82576
+ }, [s]), zi = usePick(_i, TILESET_APPEARANCE_FIELDS), Sa = S ? 0 : s == null ? void 0 : s.layer._updateStyle, fa = useRef(Sa), La = useRef();
82572
82577
  useEffect(() => {
82573
- fa.current = Date.now();
82574
- }, [_i, zi]);
82575
- const La = useCallback(
82576
- async (yt, lt) => new Promise(
82577
- (pi) => requestAnimationFrame(() => {
82578
- if (fa.current && fa.current > lt) {
82579
- pi(void 0);
82578
+ La.current = Date.now();
82579
+ }, [zi, Sa]);
82580
+ const Ra = useCallback(
82581
+ async (lt, pi) => new Promise(
82582
+ (ba) => requestAnimationFrame(() => {
82583
+ if (La.current && La.current > pi) {
82584
+ ba(void 0);
82580
82585
  return;
82581
82586
  }
82582
- (_i || zi) && nt(yt), pi(void 0);
82587
+ (zi || Sa) && Pe(lt), ba(void 0);
82583
82588
  })
82584
82589
  ),
82585
- [_i, nt, zi]
82586
- ), Ra = useCallback(
82587
- async (yt) => {
82588
- const lt = [];
82589
- let pi = !1;
82590
- for (const ba of L.current) {
82591
- if (fa.current && fa.current > yt) {
82592
- pi = !0;
82590
+ [zi, Pe, Sa]
82591
+ ), ma = useCallback(
82592
+ async (lt) => {
82593
+ const pi = [];
82594
+ let ba = !1;
82595
+ for (const Sc of F.current) {
82596
+ if (La.current && La.current > lt) {
82597
+ ba = !0;
82593
82598
  break;
82594
82599
  }
82595
- lt.push(La(ba, yt)), lt.length > MAX_NUMBER_OF_CONCURRENT_COMPUTING_FEATURES && (await Promise.all(lt), lt.length = 0);
82600
+ pi.push(Ra(Sc, lt)), pi.length > MAX_NUMBER_OF_CONCURRENT_COMPUTING_FEATURES && (await Promise.all(pi), pi.length = 0);
82596
82601
  }
82597
- pi || await Promise.all(lt), Sa.current = zi, lt.length = 0;
82602
+ ba || await Promise.all(pi), fa.current = Sa, pi.length = 0;
82598
82603
  },
82599
- [La, zi]
82600
- ), { requestRender: ma } = useContext();
82604
+ [Ra, Sa]
82605
+ ), { requestRender: yt } = useContext();
82601
82606
  useEffect(() => {
82602
82607
  (async () => {
82603
- const lt = Date.now();
82604
- await Ra(lt), ma == null || ma();
82608
+ const pi = Date.now();
82609
+ await ma(pi), yt == null || yt();
82605
82610
  })();
82606
- }, [Ra, ma, zi]);
82611
+ }, [ma, yt, Sa]);
82607
82612
  }, useHooks$2 = ({
82608
82613
  id: t,
82609
82614
  boxId: n,
@@ -82640,10 +82645,10 @@ const useDrawClipping = ({
82640
82645
  visible: pi = !0,
82641
82646
  direction: ba = "inside",
82642
82647
  builtinBoxProps: Sc,
82643
- allowEnterGround: ms
82644
- } = useClippingBox({ clipping: mt, boxId: n }), [Xs, yu] = useState(), { url: Nl, type: pu, idProperty: Ru, googleMapApiKey: Vd } = useData(d), Gd = !mn && !!Ru, [uf, hf] = useState(!1), [mf, pf] = useState(!1), [sf, yf] = useState(!1), Tf = useRef(lt), vf = useMemo(() => {
82645
- var Sf, Of;
82646
- return (!((Sf = Tf.current) != null && Sf.length) || !((Of = Tf.current) != null && Of.every(
82648
+ allowEnterGround: Xs
82649
+ } = useClippingBox({ clipping: mt, boxId: n }), [ms, yu] = useState(), { url: Nl, type: pu, idProperty: Ru, googleMapApiKey: Vd } = useData(d), Gd = !mn && !!Ru, [lf, hf] = useState(!1), [mf, pf] = useState(!1), [sf, yf] = useState(!1), Tf = useRef(lt), vf = useMemo(() => {
82650
+ var Sf, Lf;
82651
+ return (!((Sf = Tf.current) != null && Sf.length) || !((Lf = Tf.current) != null && Lf.every(
82647
82652
  (kf, Bf) => {
82648
82653
  var Qf, ep, ip, Ef, tf, gf;
82649
82654
  return ((Qf = kf.normal) == null ? void 0 : Qf.x) === ((ep = lt == null ? void 0 : lt[Bf].normal) == null ? void 0 : ep.x) && ((ip = kf.normal) == null ? void 0 : ip.y) === ((Ef = lt == null ? void 0 : lt[Bf].normal) == null ? void 0 : Ef.y) && ((tf = kf.normal) == null ? void 0 : tf.z) === ((gf = lt == null ? void 0 : lt[Bf].normal) == null ? void 0 : gf.z) && kf.distance === (lt == null ? void 0 : lt[Bf].distance);
@@ -82653,9 +82658,9 @@ const useDrawClipping = ({
82653
82658
  () => new ClippingPlaneCollection({
82654
82659
  planes: vf == null ? void 0 : vf.map(
82655
82660
  (Sf) => {
82656
- var Of, kf, Bf;
82661
+ var Lf, kf, Bf;
82657
82662
  return new ClippingPlane(
82658
- new Cartesian3$1((Of = Sf.normal) == null ? void 0 : Of.x, (kf = Sf.normal) == null ? void 0 : kf.y, (Bf = Sf.normal) == null ? void 0 : Bf.z),
82663
+ new Cartesian3$1((Lf = Sf.normal) == null ? void 0 : Lf.x, (kf = Sf.normal) == null ? void 0 : kf.y, (Bf = Sf.normal) == null ? void 0 : Bf.z),
82659
82664
  (Sf.distance || 0) * Wa
82660
82665
  );
82661
82666
  }
@@ -82671,9 +82676,9 @@ const useDrawClipping = ({
82671
82676
  new ClippingPlaneCollection({
82672
82677
  planes: vf == null ? void 0 : vf.map(
82673
82678
  (Sf) => {
82674
- var Of, kf, Bf;
82679
+ var Lf, kf, Bf;
82675
82680
  return new ClippingPlane(
82676
- new Cartesian3$1((Of = Sf.normal) == null ? void 0 : Of.x, (kf = Sf.normal) == null ? void 0 : kf.y, (Bf = Sf.normal) == null ? void 0 : Bf.z),
82681
+ new Cartesian3$1((Lf = Sf.normal) == null ? void 0 : Lf.x, (kf = Sf.normal) == null ? void 0 : kf.y, (Bf = Sf.normal) == null ? void 0 : Bf.z),
82677
82682
  (Sf.distance || 0) * Wa
82678
82683
  );
82679
82684
  }
@@ -82692,7 +82697,7 @@ const useDrawClipping = ({
82692
82697
  tilesetRef: L,
82693
82698
  viewer: P,
82694
82699
  clippingPlanes: af,
82695
- isTilesetReady: uf
82700
+ isTilesetReady: lf
82696
82701
  }), [Zd] = useState(() => new TilesetFeatureIndex()), cf = useCallback(
82697
82702
  (Sf) => {
82698
82703
  Sf != null && Sf.cesiumElement && attachTag(Sf.cesiumElement, {
@@ -82706,19 +82711,19 @@ const useDrawClipping = ({
82706
82711
  rf.current = kt;
82707
82712
  const [df] = useState(() => /* @__PURE__ */ new Map());
82708
82713
  useEffect(() => {
82709
- !L.current || !Gd || !uf || Object.assign(L.current, {
82714
+ !L.current || !Gd || !lf || Object.assign(L.current, {
82710
82715
  onSelectFeature: (Sf) => {
82711
- const Of = getTag(Sf);
82712
- Of != null && Of.featureId && (of.current.push(Of.featureId), df.set(Of.featureId, Sf.color)), rf.current && (Sf.color = toColor(rf.current) ?? Sf.color);
82716
+ const Lf = getTag(Sf);
82717
+ Lf != null && Lf.featureId && (of.current.push(Lf.featureId), df.set(Lf.featureId, Sf.color)), rf.current && (Sf.color = toColor(rf.current) ?? Sf.color);
82713
82718
  },
82714
82719
  onUnselectFeature: (Sf) => {
82715
- const Of = getTag(Sf);
82716
- Of != null && Of.featureId && (of.current = of.current.filter(
82717
- (kf) => kf !== Of.featureId
82718
- )), Sf.color = df.get((Of == null ? void 0 : Of.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
82720
+ const Lf = getTag(Sf);
82721
+ Lf != null && Lf.featureId && (of.current = of.current.filter(
82722
+ (kf) => kf !== Lf.featureId
82723
+ )), Sf.color = df.get((Lf == null ? void 0 : Lf.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
82719
82724
  }
82720
82725
  });
82721
- }, [df, Zd, Gd, uf]), useFeature({
82726
+ }, [df, Zd, Gd, lf]), useFeature({
82722
82727
  id: t,
82723
82728
  tilesetRef: L,
82724
82729
  layer: d,
@@ -82729,35 +82734,36 @@ const useDrawClipping = ({
82729
82734
  featureIndex: Zd,
82730
82735
  selectedFeatureIdsRef: of,
82731
82736
  shouldUseFeatureIndex: Gd,
82732
- isTilesetReady: uf
82737
+ isTilesetReady: lf,
82738
+ useExternalStyle: !!nt
82733
82739
  });
82734
82740
  const [Cf, ff] = useState(0), _f = useRef(!1), Pf = useCallback(
82735
82741
  (Sf) => {
82736
- _f.current || !P || ms || (_f.current = !0, sampleTerrainHeightFromCartesian(P.scene, Sf).then((Of) => {
82737
- ff(Of ?? 0), _f.current = !1;
82742
+ _f.current || !P || Xs || (_f.current = !0, sampleTerrainHeightFromCartesian(P.scene, Sf).then((Lf) => {
82743
+ ff(Lf ?? 0), _f.current = !1;
82738
82744
  }));
82739
82745
  },
82740
- [ms, P]
82746
+ [Xs, P]
82741
82747
  );
82742
82748
  useEffect(() => {
82743
82749
  if (mt != null && mt.draw)
82744
82750
  return;
82745
- const Sf = La || (fa ? [fa.lng, fa.lat, fa.height ?? 0] : void 0), Of = Cartesian3$1.fromDegrees((Sf == null ? void 0 : Sf[0]) || 0, (Sf == null ? void 0 : Sf[1]) || 0, (Sf == null ? void 0 : Sf[2]) || 0);
82751
+ const Sf = La || (fa ? [fa.lng, fa.lat, fa.height ?? 0] : void 0), Lf = Cartesian3$1.fromDegrees((Sf == null ? void 0 : Sf[0]) || 0, (Sf == null ? void 0 : Sf[1]) || 0, (Sf == null ? void 0 : Sf[2]) || 0);
82746
82752
  (async () => {
82747
- if (!L.current || !uf)
82753
+ if (!L.current || !lf)
82748
82754
  return;
82749
82755
  const Bf = L.current.clippingPlanesOriginMatrix.clone(), Qf = new Cartesian3$1(_i || 100, Sa || 100, zi || 100);
82750
- if (!ms) {
82751
- const tf = new TranslationRotationScale$1(Of, void 0, Qf);
82752
- translationWithClamping(tf, !!ms, Cf), Of.x = tf.translation.x, Of.y = tf.translation.y, Of.z = tf.translation.z;
82756
+ if (!Xs) {
82757
+ const tf = new TranslationRotationScale$1(Lf, void 0, Qf);
82758
+ translationWithClamping(tf, !!Xs, Cf), Lf.x = tf.translation.x, Lf.y = tf.translation.y, Lf.z = tf.translation.z;
82753
82759
  }
82754
82760
  const ep = Ra && yt && ma ? new HeadingPitchRoll$1(Ra, yt, ma) : void 0, ip = Matrix4$1.multiply(
82755
- ep ? Matrix4$1.fromRotationTranslation(Matrix3$1.fromHeadingPitchRoll(ep), Of) : Transforms$1.eastNorthUpToFixedFrame(Of),
82761
+ ep ? Matrix4$1.fromRotationTranslation(Matrix3$1.fromHeadingPitchRoll(ep), Lf) : Transforms$1.eastNorthUpToFixedFrame(Lf),
82756
82762
  Matrix4$1.fromScale(Qf, new Matrix4$1()),
82757
82763
  new Matrix4$1()
82758
82764
  ), Ef = Matrix4$1.inverse(Bf, new Matrix4$1());
82759
82765
  Matrix4$1.multiply(Ef, ip, af.modelMatrix);
82760
- })(), ms || Pf(Of);
82766
+ })(), Xs || Pf(Lf);
82761
82767
  }, [
82762
82768
  _i,
82763
82769
  Sa,
@@ -82769,10 +82775,10 @@ const useDrawClipping = ({
82769
82775
  La,
82770
82776
  af.modelMatrix,
82771
82777
  Pf,
82772
- ms,
82778
+ Xs,
82773
82779
  Cf,
82774
82780
  mt == null ? void 0 : mt.draw,
82775
- uf
82781
+ lf
82776
82782
  ]), useEffect(() => {
82777
82783
  mt != null && mt.draw || (af.enabled = pi);
82778
82784
  }, [af, pi, mt == null ? void 0 : mt.draw]), useEffect(() => {
@@ -82780,10 +82786,10 @@ const useDrawClipping = ({
82780
82786
  }, [af, ba, mt == null ? void 0 : mt.draw]), useEffect(() => {
82781
82787
  mt != null && mt.draw || (af.removeAll(), vf == null || vf.forEach(
82782
82788
  (Sf) => {
82783
- var Of, kf, Bf;
82789
+ var Lf, kf, Bf;
82784
82790
  return af.add(
82785
82791
  new ClippingPlane(
82786
- new Cartesian3$1((Of = Sf.normal) == null ? void 0 : Of.x, (kf = Sf.normal) == null ? void 0 : kf.y, (Bf = Sf.normal) == null ? void 0 : Bf.z),
82792
+ new Cartesian3$1((Lf = Sf.normal) == null ? void 0 : Lf.x, (kf = Sf.normal) == null ? void 0 : kf.y, (Bf = Sf.normal) == null ? void 0 : Bf.z),
82787
82793
  (Sf.distance || 0) * Wa
82788
82794
  )
82789
82795
  );
@@ -82796,16 +82802,23 @@ const useDrawClipping = ({
82796
82802
  }
82797
82803
  (async () => {
82798
82804
  const Sf = await fetch(nt);
82799
- Sf.ok && yu(new Cesium3DTileStyle(await Sf.json()));
82805
+ if (!Sf.ok) {
82806
+ console.warn("Failed to fetch style from:", nt);
82807
+ return;
82808
+ }
82809
+ const Lf = await Sf.json(), kf = new Cesium3DTileStyle(Lf);
82810
+ yu(kf);
82800
82811
  })();
82801
- }, [nt]);
82812
+ }, [nt]), useEffect(() => {
82813
+ ms && L.current && lf && (L.current.style = ms);
82814
+ }, [ms, lf]);
82802
82815
  const Af = useMemo(() => pu !== "google-photorealistic" || !o ? null : (async () => {
82803
82816
  try {
82804
82817
  return Vd ? (await createGooglePhotorealistic3DTileset(Vd)).resource : IonResource.fromAssetId(2275207, {
82805
82818
  accessToken: h == null ? void 0 : h.cesiumIonAccessToken
82806
82819
  });
82807
- } catch (Of) {
82808
- throw console.error(`Error loading Photorealistic 3D Tiles tileset: ${Of}`), Of;
82820
+ } catch (Lf) {
82821
+ throw console.error(`Error loading Photorealistic 3D Tiles tileset: ${Lf}`), Lf;
82809
82822
  }
82810
82823
  })(), [pu, o, Vd, h == null ? void 0 : h.cesiumIonAccessToken]), $f = useMemo(() => pu === "osm-buildings" && o ? IonResource.fromAssetId(96188, {
82811
82824
  accessToken: h == null ? void 0 : h.cesiumIonAccessToken
@@ -82813,11 +82826,11 @@ const useDrawClipping = ({
82813
82826
  var Qf, ep, ip, Ef, tf, gf, Mf, Wf, Xf, qf;
82814
82827
  if (!(s != null && s.specularEnvironmentMaps) && !(s != null && s.sphericalHarmonicCoefficients) && !((ep = (Qf = c == null ? void 0 : c.scene) == null ? void 0 : Qf.imageBasedLighting) != null && ep.specularEnvironmentMaps) && !((Ef = (ip = c == null ? void 0 : c.scene) == null ? void 0 : ip.imageBasedLighting) != null && Ef.sphericalHarmonicCoefficients))
82815
82828
  return;
82816
- const Sf = new ImageBasedLighting(), Of = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((gf = (tf = c == null ? void 0 : c.scene) == null ? void 0 : tf.imageBasedLighting) == null ? void 0 : gf.specularEnvironmentMaps), kf = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((Wf = (Mf = c == null ? void 0 : c.scene) == null ? void 0 : Mf.imageBasedLighting) == null ? void 0 : Wf.intensity), Bf = arrayToCartecian3(
82829
+ const Sf = new ImageBasedLighting(), Lf = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((gf = (tf = c == null ? void 0 : c.scene) == null ? void 0 : tf.imageBasedLighting) == null ? void 0 : gf.specularEnvironmentMaps), kf = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((Wf = (Mf = c == null ? void 0 : c.scene) == null ? void 0 : Mf.imageBasedLighting) == null ? void 0 : Wf.intensity), Bf = arrayToCartecian3(
82817
82830
  (s == null ? void 0 : s.sphericalHarmonicCoefficients) ?? ((qf = (Xf = c == null ? void 0 : c.scene) == null ? void 0 : Xf.imageBasedLighting) == null ? void 0 : qf.sphericalHarmonicCoefficients),
82818
82831
  kf
82819
82832
  );
82820
- return Of && (Sf.specularEnvironmentMaps = Of), Bf && (Sf.sphericalHarmonicCoefficients = Bf), Sf;
82833
+ return Lf && (Sf.specularEnvironmentMaps = Lf), Bf && (Sf.sphericalHarmonicCoefficients = Bf), Sf;
82821
82834
  }, [
82822
82835
  s == null ? void 0 : s.specularEnvironmentMaps,
82823
82836
  s == null ? void 0 : s.sphericalHarmonicCoefficients,
@@ -82838,7 +82851,7 @@ const useDrawClipping = ({
82838
82851
  }), [pu, N]), {
82839
82852
  tilesetUrl: $f,
82840
82853
  ref: cf,
82841
- style: Xs,
82854
+ style: ms,
82842
82855
  clippingPlanes: af,
82843
82856
  drawClippingEnabled: gd,
82844
82857
  drawClippingEdgeProps: pd,
@@ -83023,8 +83036,8 @@ function Feature$1({
83023
83036
  return console.error(`Error rendering component ${_i}`, lt), null;
83024
83037
  }
83025
83038
  }, N = useMemo(() => !p || !h || !Array.isArray(h) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: h.map((Pe) => {
83026
- var fa, La, Ra, ma, yt, lt, pi, ba, Sc, ms, Xs, yu;
83027
- const [se] = components[Pe] ?? [], mt = t.layer.visible !== !1 && !n, kt = !!((Ra = (La = (fa = s.viewerProperty) == null ? void 0 : fa.scene) == null ? void 0 : La.imageBasedLighting) != null && Ra.sphericalHarmonicCoefficients), mn = !!((lt = (yt = (ma = s.viewerProperty) == null ? void 0 : ma.scene) == null ? void 0 : yt.imageBasedLighting) != null && lt.specularEnvironmentMaps), _i = ((pi = t == null ? void 0 : t.layer) == null ? void 0 : pi.type) === "simple" && !!((Sc = (ba = t == null ? void 0 : t.layer) == null ? void 0 : ba["3dtiles"]) != null && Sc.sphericalHarmonicCoefficients), zi = ((ms = t == null ? void 0 : t.layer) == null ? void 0 : ms.type) === "simple" && !!((yu = (Xs = t == null ? void 0 : t.layer) == null ? void 0 : Xs["3dtiles"]) != null && yu.specularEnvironmentMaps), Sa = P + generateIDWithMD5(
83039
+ var fa, La, Ra, ma, yt, lt, pi, ba, Sc, Xs, ms, yu;
83040
+ const [se] = components[Pe] ?? [], mt = t.layer.visible !== !1 && !n, kt = !!((Ra = (La = (fa = s.viewerProperty) == null ? void 0 : fa.scene) == null ? void 0 : La.imageBasedLighting) != null && Ra.sphericalHarmonicCoefficients), mn = !!((lt = (yt = (ma = s.viewerProperty) == null ? void 0 : ma.scene) == null ? void 0 : yt.imageBasedLighting) != null && lt.specularEnvironmentMaps), _i = ((pi = t == null ? void 0 : t.layer) == null ? void 0 : pi.type) === "simple" && !!((Sc = (ba = t == null ? void 0 : t.layer) == null ? void 0 : ba["3dtiles"]) != null && Sc.sphericalHarmonicCoefficients), zi = ((Xs = t == null ? void 0 : t.layer) == null ? void 0 : Xs.type) === "simple" && !!((yu = (ms = t == null ? void 0 : t.layer) == null ? void 0 : ms["3dtiles"]) != null && yu.specularEnvironmentMaps), Sa = P + generateIDWithMD5(
83028
83041
  `${(t == null ? void 0 : t.id) || ""}_${Pe}_${mt}_${kt}_${mn}_${_i}}_${zi}`
83029
83042
  );
83030
83043
  return /* @__PURE__ */ createElement(
@@ -84854,7 +84867,7 @@ const useOverrideGlobeShader = ({
84854
84867
  }) => {
84855
84868
  var h, p, y, S, P, L, F, N, W, z, nt;
84856
84869
  const o = useMemo(() => {
84857
- var se, mt, kt, mn, _i, zi, Sa, fa, La, Ra, ma, yt, lt, pi, ba, Sc, ms, Xs, yu, Nl, pu, Ru, Vd, Gd, uf, hf, mf;
84870
+ var se, mt, kt, mn, _i, zi, Sa, fa, La, Ra, ma, yt, lt, pi, ba, Sc, Xs, ms, yu, Nl, pu, Ru, Vd, Gd, lf, hf, mf;
84858
84871
  let Pe;
84859
84872
  return ((mt = (se = n == null ? void 0 : n.scene) == null ? void 0 : se.light) == null ? void 0 : mt.type) === "sunLight" ? Pe = new SunLight({
84860
84873
  color: (mn = (kt = n.scene) == null ? void 0 : kt.light) != null && mn.color ? Color$3.fromCssColorString(n.scene.light.color) : void 0,
@@ -84863,11 +84876,11 @@ const useOverrideGlobeShader = ({
84863
84876
  direction: new Cartesian3$1(
84864
84877
  ((ma = (Ra = (La = n == null ? void 0 : n.scene) == null ? void 0 : La.light) == null ? void 0 : Ra.direction) == null ? void 0 : ma[0]) ?? 1,
84865
84878
  ((pi = (lt = (yt = n == null ? void 0 : n.scene) == null ? void 0 : yt.light) == null ? void 0 : lt.direction) == null ? void 0 : pi[1]) ?? 0,
84866
- ((ms = (Sc = (ba = n == null ? void 0 : n.scene) == null ? void 0 : ba.light) == null ? void 0 : Sc.direction) == null ? void 0 : ms[2]) ?? 0
84879
+ ((Xs = (Sc = (ba = n == null ? void 0 : n.scene) == null ? void 0 : ba.light) == null ? void 0 : Sc.direction) == null ? void 0 : Xs[2]) ?? 0
84867
84880
  ),
84868
- color: (yu = (Xs = n.scene) == null ? void 0 : Xs.light) != null && yu.color ? Color$3.fromCssColorString(n.scene.light.color) : void 0,
84881
+ color: (yu = (ms = n.scene) == null ? void 0 : ms.light) != null && yu.color ? Color$3.fromCssColorString(n.scene.light.color) : void 0,
84869
84882
  intensity: (pu = (Nl = n.scene) == null ? void 0 : Nl.light) == null ? void 0 : pu.intensity
84870
- }) : (Pe = (Vd = (Ru = t.current) == null ? void 0 : Ru.cesiumElement) == null ? void 0 : Vd.scene.light, Pe && (Pe.color = (uf = (Gd = n == null ? void 0 : n.scene) == null ? void 0 : Gd.light) != null && uf.color ? Color$3.fromCssColorString(n.scene.light.color) : Pe.color, Pe.intensity = (mf = (hf = n == null ? void 0 : n.scene) == null ? void 0 : hf.light) != null && mf.intensity ? n.scene.light.intensity : Pe.intensity)), Pe;
84883
+ }) : (Pe = (Vd = (Ru = t.current) == null ? void 0 : Ru.cesiumElement) == null ? void 0 : Vd.scene.light, Pe && (Pe.color = (lf = (Gd = n == null ? void 0 : n.scene) == null ? void 0 : Gd.light) != null && lf.color ? Color$3.fromCssColorString(n.scene.light.color) : Pe.color, Pe.intensity = (mf = (hf = n == null ? void 0 : n.scene) == null ? void 0 : hf.light) != null && mf.intensity ? n.scene.light.intensity : Pe.intensity)), Pe;
84871
84884
  }, [
84872
84885
  t,
84873
84886
  (p = (h = n == null ? void 0 : n.scene) == null ? void 0 : h.light) == null ? void 0 : p.type,
@@ -84922,7 +84935,7 @@ const useOverrideGlobeShader = ({
84922
84935
  onMount: fa,
84923
84936
  onCreditsUpdate: La
84924
84937
  }) => {
84925
- var of, rf, df, Cf, ff, _f, Pf, Af, $f, xf, wf, Yf, Nf, jf, rp, tp, np, Sf, Of, kf, Bf, Qf, ep, ip;
84938
+ var of, rf, df, Cf, ff, _f, Pf, Af, $f, xf, wf, Yf, Nf, jf, rp, tp, np, Sf, Lf, kf, Bf, Qf, ep, ip;
84926
84939
  const Ra = useRef(null), ma = typeof (d == null ? void 0 : d.cesiumIonAccessToken) == "string" && d.cesiumIonAccessToken ? d.cesiumIonAccessToken : Ion.defaultAccessToken, yt = useEngineRef(t, Ra), lt = useLayerSelectWithRect({
84927
84940
  cesium: Ra,
84928
84941
  engineAPI: yt,
@@ -84932,11 +84945,11 @@ const useOverrideGlobeShader = ({
84932
84945
  featureFlags: p
84933
84946
  });
84934
84947
  useEffect(() => {
84935
- var Wf, Xf, qf, up, dp, pp, mp, al, nf, lf, bf, Lf, Ff, If;
84948
+ var Wf, Xf, qf, up, dp, pp, mp, al, nf, uf, bf, Of, Ff, If;
84936
84949
  const Ef = (Xf = (Wf = Ra == null ? void 0 : Ra.current) == null ? void 0 : Wf.cesiumElement) == null ? void 0 : Xf.shadowMap;
84937
84950
  if (!Ef)
84938
84951
  return;
84939
- Ef.softShadows = ((dp = (up = (qf = n == null ? void 0 : n.scene) == null ? void 0 : qf.shadow) == null ? void 0 : up.shadowMap) == null ? void 0 : dp.softShadows) ?? !1, Ef.darkness = ((al = (mp = (pp = n == null ? void 0 : n.scene) == null ? void 0 : pp.shadow) == null ? void 0 : mp.shadowMap) == null ? void 0 : al.darkness) ?? 0.3, Ef.size = ((bf = (lf = (nf = n == null ? void 0 : n.scene) == null ? void 0 : nf.shadow) == null ? void 0 : lf.shadowMap) == null ? void 0 : bf.size) ?? 2048, Ef.maximumDistance = ((If = (Ff = (Lf = n == null ? void 0 : n.scene) == null ? void 0 : Lf.shadow) == null ? void 0 : Ff.shadowMap) == null ? void 0 : If.maximumDistance) ?? 5e3, Ef.fadingEnabled = !0, Ef.normalOffset = !0;
84952
+ Ef.softShadows = ((dp = (up = (qf = n == null ? void 0 : n.scene) == null ? void 0 : qf.shadow) == null ? void 0 : up.shadowMap) == null ? void 0 : dp.softShadows) ?? !1, Ef.darkness = ((al = (mp = (pp = n == null ? void 0 : n.scene) == null ? void 0 : pp.shadow) == null ? void 0 : mp.shadowMap) == null ? void 0 : al.darkness) ?? 0.3, Ef.size = ((bf = (uf = (nf = n == null ? void 0 : n.scene) == null ? void 0 : nf.shadow) == null ? void 0 : uf.shadowMap) == null ? void 0 : bf.size) ?? 2048, Ef.maximumDistance = ((If = (Ff = (Of = n == null ? void 0 : n.scene) == null ? void 0 : Of.shadow) == null ? void 0 : Ff.shadowMap) == null ? void 0 : If.maximumDistance) ?? 5e3, Ef.fadingEnabled = !0, Ef.normalOffset = !0;
84940
84953
  const tf = {
84941
84954
  polygonOffsetFactor: 1.1,
84942
84955
  polygonOffsetUnits: 4,
@@ -84980,16 +84993,16 @@ const useOverrideGlobeShader = ({
84980
84993
  return;
84981
84994
  const Mf = getTag(gf);
84982
84995
  if (gf instanceof Entity$2 && !(Mf != null && Mf.hideIndicator) ? Ef.selectedEntity = gf : Ef.selectedEntity = void 0, pi.current = gf, !gf && (s != null && s.featureId)) {
84983
- const nf = [], lf = (Xf = h == null ? void 0 : h.current) == null ? void 0 : Xf.findAll(
84996
+ const nf = [], uf = (Xf = h == null ? void 0 : h.current) == null ? void 0 : Xf.findAll(
84984
84997
  (bf) => {
84985
- var Lf, Ff;
84986
- return bf.type === "simple" && !!((Lf = bf.data) != null && Lf.type) && nf.includes((Ff = bf.data) == null ? void 0 : Ff.type);
84998
+ var Of, Ff;
84999
+ return bf.type === "simple" && !!((Of = bf.data) != null && Of.type) && nf.includes((Ff = bf.data) == null ? void 0 : Ff.type);
84987
85000
  }
84988
85001
  );
84989
- if (lf != null && lf.length) {
84990
- const [bf, Lf] = (() => {
85002
+ if (uf != null && uf.length) {
85003
+ const [bf, Of] = (() => {
84991
85004
  var Ff;
84992
- for (const If of lf) {
85005
+ for (const If of uf) {
84993
85006
  const Vf = (Ff = If.computed) == null ? void 0 : Ff.features.find(
84994
85007
  (Gf) => Gf.id !== (s == null ? void 0 : s.featureId)
84995
85008
  );
@@ -84997,23 +85010,23 @@ const useOverrideGlobeShader = ({
84997
85010
  return [Vf, If.id];
84998
85011
  }
84999
85012
  })() || [];
85000
- z == null || z(Lf, bf == null ? void 0 : bf.id);
85013
+ z == null || z(Of, bf == null ? void 0 : bf.id);
85001
85014
  }
85002
85015
  }
85003
85016
  if (!(Mf != null && Mf.unselectable)) {
85004
85017
  if (gf && gf instanceof Cesium3DTileFeature) {
85005
85018
  const nf = getTag(gf);
85006
85019
  if (nf) {
85007
- const lf = tileProperties(gf);
85020
+ const uf = tileProperties(gf);
85008
85021
  z == null || z(
85009
85022
  nf.layerId,
85010
85023
  String(nf.featureId),
85011
- lf.length ? {
85024
+ uf.length ? {
85012
85025
  defaultInfobox: {
85013
85026
  title: gf.getProperty("name"),
85014
85027
  content: {
85015
85028
  type: "table",
85016
- value: lf
85029
+ value: uf
85017
85030
  }
85018
85031
  }
85019
85032
  } : void 0,
@@ -85023,7 +85036,7 @@ const useOverrideGlobeShader = ({
85023
85036
  return;
85024
85037
  }
85025
85038
  if (gf) {
85026
- const nf = Mf != null && Mf.layerId ? ((qf = h == null ? void 0 : h.current) == null ? void 0 : qf.overriddenLayers().find((lf) => lf.id === Mf.layerId)) ?? ((up = h == null ? void 0 : h.current) == null ? void 0 : up.findById(Mf.layerId)) : void 0;
85039
+ const nf = Mf != null && Mf.layerId ? ((qf = h == null ? void 0 : h.current) == null ? void 0 : qf.overriddenLayers().find((uf) => uf.id === Mf.layerId)) ?? ((up = h == null ? void 0 : h.current) == null ? void 0 : up.findById(Mf.layerId)) : void 0;
85027
85040
  z == null || z(
85028
85041
  Mf == null ? void 0 : Mf.layerId,
85029
85042
  Mf == null ? void 0 : Mf.featureId,
@@ -85058,12 +85071,12 @@ const useOverrideGlobeShader = ({
85058
85071
  cesium: Ra,
85059
85072
  sphericalHarmonicCoefficients: Sc,
85060
85073
  globeShadowDarkness: (Sf = (np = n == null ? void 0 : n.scene) == null ? void 0 : np.shadow) == null ? void 0 : Sf.darkness,
85061
- globeImageBasedLighting: (kf = (Of = n == null ? void 0 : n.scene) == null ? void 0 : Of.imageBasedLighting) == null ? void 0 : kf.enabled,
85074
+ globeImageBasedLighting: (kf = (Lf = n == null ? void 0 : n.scene) == null ? void 0 : Lf.imageBasedLighting) == null ? void 0 : kf.enabled,
85062
85075
  enableLighting: (Bf = n == null ? void 0 : n.globe) == null ? void 0 : Bf.enableLighting,
85063
85076
  hasVertexNormals: ((Qf = n == null ? void 0 : n.terrain) == null ? void 0 : Qf.enabled) && n.terrain.normal,
85064
85077
  terrain: n == null ? void 0 : n.terrain
85065
85078
  });
85066
- const ms = useCallback(
85079
+ const Xs = useCallback(
85067
85080
  (Ef, tf, gf) => {
85068
85081
  var Mf, Wf;
85069
85082
  if (((Mf = yt.mouseEventCallbacks[Ef]) == null ? void 0 : Mf.length) > 0) {
@@ -85078,7 +85091,7 @@ const useOverrideGlobeShader = ({
85078
85091
  }
85079
85092
  },
85080
85093
  [yt]
85081
- ), Xs = useCallback(
85094
+ ), ms = useCallback(
85082
85095
  (Ef) => {
85083
85096
  yt.mouseEventCallbacks.wheel.length > 0 && yt.mouseEventCallbacks.wheel.forEach((tf) => tf({ delta: Ef }));
85084
85097
  },
@@ -85099,17 +85112,17 @@ const useOverrideGlobeShader = ({
85099
85112
  mouseEnter: void 0,
85100
85113
  mouseLeave: void 0,
85101
85114
  wheel: (tf) => {
85102
- Xs(tf);
85115
+ ms(tf);
85103
85116
  }
85104
85117
  };
85105
85118
  return Object.keys(Ef).forEach((tf) => {
85106
85119
  tf !== "wheel" && (Ef[tf] = (gf, Mf) => {
85107
- ms(tf, gf, Mf);
85120
+ Xs(tf, gf, Mf);
85108
85121
  });
85109
85122
  }), Ef;
85110
- }, [ms, Xs]), Nl = useCallback(
85123
+ }, [Xs, ms]), Nl = useCallback(
85111
85124
  async (Ef, tf) => {
85112
- var Xf, qf, up, dp, pp, mp, al, nf, lf, bf, Lf, Ff, If, Vf;
85125
+ var Xf, qf, up, dp, pp, mp, al, nf, uf, bf, Of, Ff, If, Vf;
85113
85126
  if ((Xf = yu.click) == null || Xf.call(yu, Ef, tf), !(p & FEATURE_FLAGS.SINGLE_SELECTION))
85114
85127
  return;
85115
85128
  const gf = (qf = Ra.current) == null ? void 0 : qf.cesiumElement;
@@ -85174,14 +85187,14 @@ const useOverrideGlobeShader = ({
85174
85187
  const op = (Ap = cp == null ? void 0 : cp.data) == null ? void 0 : Ap.appearanceType;
85175
85188
  return op && ((sg = ($m = (Jp = cp == null ? void 0 : cp.data) == null ? void 0 : Jp.feature) == null ? void 0 : $m[op]) == null ? void 0 : sg.show) !== !1;
85176
85189
  }), bp = (al = Kf == null ? void 0 : Kf.data) == null ? void 0 : al.appearanceType;
85177
- if (bp && ((bf = (lf = (nf = Kf == null ? void 0 : Kf.data) == null ? void 0 : nf.feature) == null ? void 0 : lf[bp]) == null ? void 0 : bf.show) !== !1) {
85190
+ if (bp && ((bf = (uf = (nf = Kf == null ? void 0 : Kf.data) == null ? void 0 : nf.feature) == null ? void 0 : uf[bp]) == null ? void 0 : bf.show) !== !1) {
85178
85191
  const cp = getTag(Kf.imageryLayer), op = Kf.position;
85179
85192
  op && requestAnimationFrame(() => {
85180
85193
  cp != null && cp.hideIndicator || (gf.selectedEntity = new Entity$2({
85181
85194
  position: Cartographic$1.toCartesian(op)
85182
85195
  }));
85183
85196
  });
85184
- const Ap = cp != null && cp.layerId ? ((Lf = h == null ? void 0 : h.current) == null ? void 0 : Lf.overriddenLayers().find(($m) => $m.id === cp.layerId)) ?? ((Ff = h == null ? void 0 : h.current) == null ? void 0 : Ff.findById(cp.layerId)) : void 0, Jp = getEntityContent(
85197
+ const Ap = cp != null && cp.layerId ? ((Of = h == null ? void 0 : h.current) == null ? void 0 : Of.overriddenLayers().find(($m) => $m.id === cp.layerId)) ?? ((Ff = h == null ? void 0 : h.current) == null ? void 0 : Ff.findById(cp.layerId)) : void 0, Jp = getEntityContent(
85185
85198
  Kf.data.feature ?? Kf,
85186
85199
  gf.clock.currentTime ?? new JulianDate$1(),
85187
85200
  cp != null && cp.layerId ? (Vf = (If = Ap == null ? void 0 : Ap.infobox) == null ? void 0 : If.property) == null ? void 0 : Vf.defaultContent : void 0
@@ -85290,7 +85303,7 @@ const useOverrideGlobeShader = ({
85290
85303
  }
85291
85304
  }));
85292
85305
  }, [o, y]);
85293
- const { sceneLight: uf, sceneBackgroundColor: hf, sceneMsaaSamples: mf, sceneMode: pf } = useViewerProperty({
85306
+ const { sceneLight: lf, sceneBackgroundColor: hf, sceneMsaaSamples: mf, sceneMode: pf } = useViewerProperty({
85294
85307
  property: n,
85295
85308
  cesium: Ra
85296
85309
  });
@@ -85326,7 +85339,7 @@ const useOverrideGlobeShader = ({
85326
85339
  mouseEventHandles: yu,
85327
85340
  layerSelectWithRectEventHandlers: lt,
85328
85341
  context: Gd,
85329
- sceneLight: uf,
85342
+ sceneLight: lf,
85330
85343
  sceneBackgroundColor: hf,
85331
85344
  sceneMsaaSamples: mf,
85332
85345
  sceneMode: pf,
@@ -88745,8 +88758,8 @@ function createAnimationState(t) {
88745
88758
  const ba = Ra[pi], Sc = ma[pi];
88746
88759
  if (N.hasOwnProperty(pi))
88747
88760
  continue;
88748
- let ms = !1;
88749
- isKeyframesTarget(ba) && isKeyframesTarget(Sc) ? ms = !shallowCompare(ba, Sc) : ms = ba !== Sc, ms ? ba != null ? lt(pi) : F.add(pi) : ba !== void 0 && F.has(pi) ? lt(pi) : se.protectedKeys[pi] = !0;
88761
+ let Xs = !1;
88762
+ isKeyframesTarget(ba) && isKeyframesTarget(Sc) ? Xs = !shallowCompare(ba, Sc) : Xs = ba !== Sc, Xs ? ba != null ? lt(pi) : F.add(pi) : ba !== void 0 && F.has(pi) ? lt(pi) : se.protectedKeys[pi] = !0;
88750
88763
  }
88751
88764
  se.prevProp = mt, se.prevResolvedValues = Ra, se.isActive && (N = { ...N, ...Ra }), s && t.blockInitialAnimation && (Sa = !1), Sa && (!_i || fa) && L.push(...La.map((pi) => ({
88752
88765
  animation: pi,
@@ -91169,18 +91182,18 @@ const Cesium = ({
91169
91182
  onLayerLoad: lt,
91170
91183
  onCreditsUpdate: pi
91171
91184
  }, ba) => {
91172
- var gd, pd, Zd, cf, of, rf, df, Cf, ff, _f, Pf, Af, $f, xf, wf, Yf, Nf, jf, rp, tp, np, Sf, Of, kf, Bf, Qf, ep, ip, Ef, tf, gf, Mf, Wf, Xf, qf, up, dp, pp, mp, al, nf, lf;
91185
+ var gd, pd, Zd, cf, of, rf, df, Cf, ff, _f, Pf, Af, $f, xf, wf, Yf, Nf, jf, rp, tp, np, Sf, Lf, kf, Bf, Qf, ep, ip, Ef, tf, gf, Mf, Wf, Xf, qf, up, dp, pp, mp, al, nf, uf;
91173
91186
  const {
91174
91187
  cesium: Sc,
91175
- mouseEventHandles: ms,
91176
- cesiumIonAccessToken: Xs,
91188
+ mouseEventHandles: Xs,
91189
+ cesiumIonAccessToken: ms,
91177
91190
  context: yu,
91178
91191
  layerSelectWithRectEventHandlers: Nl,
91179
91192
  sceneLight: pu,
91180
91193
  sceneBackgroundColor: Ru,
91181
91194
  sceneMsaaSamples: Vd,
91182
91195
  sceneMode: Gd,
91183
- cameraViewBoundaries: uf,
91196
+ cameraViewBoundaries: lf,
91184
91197
  cameraViewOuterBoundaries: hf,
91185
91198
  cameraViewBoundariesMaterial: mf,
91186
91199
  handleCameraChange: pf,
@@ -91248,19 +91261,19 @@ const Cesium = ({
91248
91261
  },
91249
91262
  shadows: !!((pd = (gd = o == null ? void 0 : o.scene) == null ? void 0 : gd.shadow) != null && pd.enabled),
91250
91263
  onClick: Tf,
91251
- onDoubleClick: ms.doubleClick,
91252
- onMouseDown: ms.mouseDown,
91253
- onMouseUp: ms.mouseUp,
91254
- onRightClick: ms.rightClick,
91255
- onRightDown: ms.rightDown,
91256
- onRightUp: ms.rightUp,
91257
- onMiddleClick: ms.middleClick,
91258
- onMiddleDown: ms.middleDown,
91259
- onMiddleUp: ms.middleUp,
91260
- onMouseMove: ms.mouseMove,
91261
- onMouseEnter: ms.mouseEnter,
91262
- onMouseLeave: ms.mouseLeave,
91263
- onWheel: ms.wheel,
91264
+ onDoubleClick: Xs.doubleClick,
91265
+ onMouseDown: Xs.mouseDown,
91266
+ onMouseUp: Xs.mouseUp,
91267
+ onRightClick: Xs.rightClick,
91268
+ onRightDown: Xs.rightDown,
91269
+ onRightUp: Xs.rightUp,
91270
+ onMiddleClick: Xs.middleClick,
91271
+ onMiddleDown: Xs.middleDown,
91272
+ onMiddleUp: Xs.middleUp,
91273
+ onMouseMove: Xs.mouseMove,
91274
+ onMouseEnter: Xs.mouseEnter,
91275
+ onMouseLeave: Xs.mouseLeave,
91276
+ onWheel: Xs.wheel,
91264
91277
  children: [
91265
91278
  /* @__PURE__ */ jsxRuntimeExports.jsx(Event, { onMount: vf, onUnmount: Wa }),
91266
91279
  /* @__PURE__ */ jsxRuntimeExports.jsx(ReearthClock, { timelineManagerRef: se }),
@@ -91268,7 +91281,7 @@ const Cesium = ({
91268
91281
  ImageryLayers,
91269
91282
  {
91270
91283
  tiles: o == null ? void 0 : o.tiles,
91271
- cesiumIonAccessToken: Xs,
91284
+ cesiumIonAccessToken: ms,
91272
91285
  onTilesChange: af
91273
91286
  }
91274
91287
  ),
@@ -91340,10 +91353,10 @@ const Cesium = ({
91340
91353
  onMoveEnd: sf
91341
91354
  }
91342
91355
  ),
91343
- uf && ((_f = (ff = o == null ? void 0 : o.camera) == null ? void 0 : ff.limiter) == null ? void 0 : _f.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
91356
+ lf && ((_f = (ff = o == null ? void 0 : o.camera) == null ? void 0 : ff.limiter) == null ? void 0 : _f.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
91344
91357
  ua$1,
91345
91358
  {
91346
- positions: uf,
91359
+ positions: lf,
91347
91360
  width: 1,
91348
91361
  material: Color$3.RED,
91349
91362
  arcType: ArcType$2.RHUMB
@@ -91374,7 +91387,7 @@ const Cesium = ({
91374
91387
  ),
91375
91388
  /* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((jf = (Nf = o == null ? void 0 : o.sky) == null ? void 0 : Nf.skyBox) == null ? void 0 : jf.show) ?? !0 }),
91376
91389
  /* @__PURE__ */ jsxRuntimeExports.jsx(Vs, { enabled: ((tp = (rp = o == null ? void 0 : o.sky) == null ? void 0 : rp.fog) == null ? void 0 : tp.enabled) ?? !0, density: (Sf = (np = o == null ? void 0 : o.sky) == null ? void 0 : np.fog) == null ? void 0 : Sf.density }),
91377
- /* @__PURE__ */ jsxRuntimeExports.jsx(Ga$1, { show: ((kf = (Of = o == null ? void 0 : o.sky) == null ? void 0 : Of.sun) == null ? void 0 : kf.show) ?? !0 }),
91390
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Ga$1, { show: ((kf = (Lf = o == null ? void 0 : o.sky) == null ? void 0 : Lf.sun) == null ? void 0 : kf.show) ?? !0 }),
91378
91391
  /* @__PURE__ */ jsxRuntimeExports.jsx(ea, { show: ((Qf = (Bf = o == null ? void 0 : o.sky) == null ? void 0 : Bf.moon) == null ? void 0 : Qf.show) ?? !0 }),
91379
91392
  /* @__PURE__ */ jsxRuntimeExports.jsx(
91380
91393
  _a$2,
@@ -91389,7 +91402,7 @@ const Cesium = ({
91389
91402
  Globe,
91390
91403
  {
91391
91404
  property: o,
91392
- cesiumIonAccessToken: Xs,
91405
+ cesiumIonAccessToken: ms,
91393
91406
  onTerrainProviderChange: Xd
91394
91407
  }
91395
91408
  ),
@@ -91400,7 +91413,7 @@ const Cesium = ({
91400
91413
  ...AMBIENT_OCCLUSION_QUALITY[((up = (qf = o == null ? void 0 : o.render) == null ? void 0 : qf.ambientOcclusion) == null ? void 0 : up.quality) || "low"],
91401
91414
  enabled: !!((pp = (dp = o == null ? void 0 : o.render) == null ? void 0 : dp.ambientOcclusion) != null && pp.enabled),
91402
91415
  intensity: ((al = (mp = o == null ? void 0 : o.render) == null ? void 0 : mp.ambientOcclusion) == null ? void 0 : al.intensity) ?? 100,
91403
- outputType: (lf = (nf = o == null ? void 0 : o.render) == null ? void 0 : nf.ambientOcclusion) != null && lf.ambientOcclusionOnly ? AmbientOcclusionOutputType.Occlusion : null
91416
+ outputType: (uf = (nf = o == null ? void 0 : o.render) == null ? void 0 : nf.ambientOcclusion) != null && uf.ambientOcclusionOnly ? AmbientOcclusionOutputType.Occlusion : null
91404
91417
  }
91405
91418
  )
91406
91419
  ]
@@ -91422,7 +91435,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
91422
91435
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
91423
91436
  ] });
91424
91437
  }
91425
- const version = "0.0.7-alpha.45", useCoreAPI = ({ viewerProperty: t }) => {
91438
+ const version = "0.0.7-alpha.46", useCoreAPI = ({ viewerProperty: t }) => {
91426
91439
  const n = useRef(t);
91427
91440
  n.current = t;
91428
91441
  const o = useMemo(
@@ -91492,8 +91505,8 @@ function useHooks({
91492
91505
  wrapperRef: F
91493
91506
  }), [W, z] = useState({}), [nt, Pe] = useState(), [se, mt] = useState(), kt = useCallback(
91494
91507
  async (xf, wf, Yf, Nf, jf) => {
91495
- var Sf, Of, kf, Bf, Qf, ep, ip, Ef, tf, gf, Mf, Wf;
91496
- const rp = ((Of = (Sf = W.layer) == null ? void 0 : Sf.layer) == null ? void 0 : Of.type) === "simple" && ((Qf = (Bf = (kf = W.layer) == null ? void 0 : kf.layer) == null ? void 0 : Bf.data) == null ? void 0 : Qf.isSketchLayer);
91508
+ var Sf, Lf, kf, Bf, Qf, ep, ip, Ef, tf, gf, Mf, Wf;
91509
+ const rp = ((Lf = (Sf = W.layer) == null ? void 0 : Sf.layer) == null ? void 0 : Lf.type) === "simple" && ((Qf = (Bf = (kf = W.layer) == null ? void 0 : kf.layer) == null ? void 0 : Bf.data) == null ? void 0 : Qf.isSketchLayer);
91497
91510
  if (W.layerId === xf && W.featureId === wf && !rp)
91498
91511
  return;
91499
91512
  const tp = await (Yf == null ? void 0 : Yf()), np = xf && wf ? (rp ? (ep = tp == null ? void 0 : tp.features) == null ? void 0 : ep.find((Xf) => Xf.id === wf) : (tf = (ip = L.current) == null ? void 0 : (Ef = ip.engine).findComputedFeatureById) == null ? void 0 : tf.call(Ef, xf, wf)) ?? (jf == null ? void 0 : jf.feature) : void 0;
@@ -91519,9 +91532,9 @@ function useHooks({
91519
91532
  }, []), ba = useCallback((xf) => {
91520
91533
  var wf;
91521
91534
  (wf = lt.current) == null || wf.call(lt, xf);
91522
- }, []), Sc = useRef(), ms = useCallback((xf) => {
91535
+ }, []), Sc = useRef(), Xs = useCallback((xf) => {
91523
91536
  Sc.current = xf;
91524
- }, []), Xs = useCallback((xf) => {
91537
+ }, []), ms = useCallback((xf) => {
91525
91538
  var wf;
91526
91539
  (wf = Sc.current) == null || wf.call(Sc, xf);
91527
91540
  }, []), yu = useRef(), Nl = useCallback((xf) => {
@@ -91534,11 +91547,11 @@ function useHooks({
91534
91547
  }, []), Gd = useCallback((xf) => {
91535
91548
  var wf;
91536
91549
  (wf = Ru.current) == null || wf.call(Ru, xf);
91537
- }, []), uf = useRef(), hf = useCallback((xf) => {
91538
- uf.current = xf;
91550
+ }, []), lf = useRef(), hf = useCallback((xf) => {
91551
+ lf.current = xf;
91539
91552
  }, []), mf = useCallback((xf) => {
91540
91553
  var wf;
91541
- (wf = uf.current) == null || wf.call(uf, xf);
91554
+ (wf = lf.current) == null || wf.call(lf, xf);
91542
91555
  }, []), pf = useRef(), sf = useCallback((xf) => {
91543
91556
  pf.current = xf;
91544
91557
  }, []), yf = useCallback((xf) => {
@@ -91593,7 +91606,7 @@ function useHooks({
91593
91606
  onSketchPluginFeatureUpdate: Xd,
91594
91607
  onSketchPluginFeatureDelete: Zd,
91595
91608
  onSketchTypeChange: rf,
91596
- onLayerVisibility: ms,
91609
+ onLayerVisibility: Xs,
91597
91610
  onLayerLoad: Nl,
91598
91611
  onLayerEdit: pi,
91599
91612
  onLayerSelectWithRectStart: Vd,
@@ -91612,7 +91625,7 @@ function useHooks({
91612
91625
  Xd,
91613
91626
  Zd,
91614
91627
  rf,
91615
- ms,
91628
+ Xs,
91616
91629
  Nl,
91617
91630
  Vd,
91618
91631
  hf,
@@ -91649,7 +91662,7 @@ function useHooks({
91649
91662
  handleSketchPluginFeatureUpdate: gd,
91650
91663
  handleSketchPluginFeatureDelete: cf,
91651
91664
  handleSketchTypeChange: df,
91652
- handleLayerVisibility: Xs,
91665
+ handleLayerVisibility: ms,
91653
91666
  handleLayerLoad: pu,
91654
91667
  handleLayerSelectWithRectStart: Gd,
91655
91668
  handleLayerSelectWithRectMove: mf,
@@ -91705,15 +91718,15 @@ const CoreVisualizer = memo$1(
91705
91718
  mapRef: pi,
91706
91719
  wrapperRef: ba,
91707
91720
  selectedFeature: Sc,
91708
- camera: ms,
91709
- featureFlags: Xs,
91721
+ camera: Xs,
91722
+ featureFlags: ms,
91710
91723
  isLayerDragging: yu,
91711
91724
  timelineManagerRef: Nl,
91712
91725
  cameraForceHorizontalRoll: pu,
91713
91726
  coreContextValue: Ru,
91714
91727
  containerStyle: Vd,
91715
91728
  overriddenInteractionMode: Gd,
91716
- handleLayerSelect: uf,
91729
+ handleLayerSelect: lf,
91717
91730
  handleLayerDrag: hf,
91718
91731
  handleLayerDrop: mf,
91719
91732
  handleLayerEdit: pf,
@@ -91753,7 +91766,7 @@ const CoreVisualizer = memo$1(
91753
91766
  engine: t,
91754
91767
  layers: c,
91755
91768
  engines,
91756
- camera: ms,
91769
+ camera: Xs,
91757
91770
  cameraForceHorizontalRoll: pu,
91758
91771
  clusters: d,
91759
91772
  hiddenLayers: y,
@@ -91762,7 +91775,7 @@ const CoreVisualizer = memo$1(
91762
91775
  meta: N,
91763
91776
  displayCredits: W,
91764
91777
  style: z,
91765
- featureFlags: Xs,
91778
+ featureFlags: ms,
91766
91779
  shouldRender: F,
91767
91780
  property: s,
91768
91781
  time: P,
@@ -91774,7 +91787,7 @@ const CoreVisualizer = memo$1(
91774
91787
  onCameraChange: sf,
91775
91788
  onLayerDrag: hf,
91776
91789
  onLayerDrop: mf,
91777
- onLayerSelect: uf,
91790
+ onLayerSelect: lf,
91778
91791
  onLayerEdit: pf,
91779
91792
  overrideInteractionMode: yf,
91780
91793
  onSketchFeatureCreate: fa,