@reearth/core 0.0.7-alpha.4 → 0.0.7-alpha.5

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
@@ -8,10 +8,10 @@ var Cf = (t, n, o) => (ug(t, n, "read from private field"), o ? o.call(t) : n.ge
8
8
  if (n.has(t))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  n instanceof WeakSet ? n.add(t) : n.set(t, o);
11
- }, tp = (t, n, o, s) => (ug(t, n, "write to private field"), s ? s.call(t, o) : n.set(t, o), o);
11
+ }, ep = (t, n, o, s) => (ug(t, n, "write to private field"), s ? s.call(t, o) : n.set(t, o), o);
12
12
  var ag = (t, n, o, s) => ({
13
13
  set _(c) {
14
- tp(t, n, c, o);
14
+ ep(t, n, c, o);
15
15
  },
16
16
  get _() {
17
17
  return Cf(t, n, s);
@@ -78,14 +78,14 @@ function requireReactJsxRuntime_development() {
78
78
  var nt = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
79
79
  function J(sf) {
80
80
  {
81
- for (var xf = arguments.length, _f = new Array(xf > 1 ? xf - 1 : 0), Ff = 1; Ff < xf; Ff++)
82
- _f[Ff - 1] = arguments[Ff];
81
+ for (var xf = arguments.length, _f = new Array(xf > 1 ? xf - 1 : 0), Lf = 1; Lf < xf; Lf++)
82
+ _f[Lf - 1] = arguments[Lf];
83
83
  lt("error", sf, _f);
84
84
  }
85
85
  }
86
86
  function lt(sf, xf, _f) {
87
87
  {
88
- var Ff = nt.ReactDebugCurrentFrame, jf = Ff.getStackAddendum();
88
+ var Lf = nt.ReactDebugCurrentFrame, jf = Lf.getStackAddendum();
89
89
  jf !== "" && (xf += "%s", _f = _f.concat([jf]));
90
90
  var Hf = _f.map(function($f) {
91
91
  return String($f);
@@ -103,9 +103,9 @@ function requireReactJsxRuntime_development() {
103
103
  sf.$$typeof === md || sf.getModuleId !== void 0));
104
104
  }
105
105
  function nf(sf, xf, _f) {
106
- var Ff = sf.displayName;
107
- if (Ff)
108
- return Ff;
106
+ var Lf = sf.displayName;
107
+ if (Lf)
108
+ return Lf;
109
109
  var jf = xf.displayName || xf.name || "";
110
110
  return jf !== "" ? _f + "(" + jf + ")" : _f;
111
111
  }
@@ -144,8 +144,8 @@ function requireReactJsxRuntime_development() {
144
144
  case y:
145
145
  return nf(sf, sf.render, "ForwardRef");
146
146
  case F:
147
- var Ff = sf.displayName || null;
148
- return Ff !== null ? Ff : yt(sf.type) || "Memo";
147
+ var Lf = sf.displayName || null;
148
+ return Lf !== null ? Lf : yt(sf.type) || "Memo";
149
149
  case N: {
150
150
  var jf = sf, Hf = jf._payload, $f = jf._init;
151
151
  try {
@@ -220,34 +220,34 @@ function requireReactJsxRuntime_development() {
220
220
  }
221
221
  }
222
222
  var Sf = nt.ReactCurrentDispatcher, wf;
223
- function Vf(sf, xf, _f) {
223
+ function If(sf, xf, _f) {
224
224
  {
225
225
  if (wf === void 0)
226
226
  try {
227
227
  throw Error();
228
228
  } catch (jf) {
229
- var Ff = jf.stack.trim().match(/\n( *(at )?)/);
230
- wf = Ff && Ff[1] || "";
229
+ var Lf = jf.stack.trim().match(/\n( *(at )?)/);
230
+ wf = Lf && Lf[1] || "";
231
231
  }
232
232
  return `
233
233
  ` + wf + sf;
234
234
  }
235
235
  }
236
- var Lf = !1, Pf;
236
+ var Of = !1, Mf;
237
237
  {
238
238
  var Xf = typeof WeakMap == "function" ? WeakMap : Map;
239
- Pf = new Xf();
239
+ Mf = new Xf();
240
240
  }
241
241
  function Bf(sf, xf) {
242
- if (!sf || Lf)
242
+ if (!sf || Of)
243
243
  return "";
244
244
  {
245
- var _f = Pf.get(sf);
245
+ var _f = Mf.get(sf);
246
246
  if (_f !== void 0)
247
247
  return _f;
248
248
  }
249
- var Ff;
250
- Lf = !0;
249
+ var Lf;
250
+ Of = !0;
251
251
  var jf = Error.prepareStackTrace;
252
252
  Error.prepareStackTrace = void 0;
253
253
  var Hf;
@@ -265,14 +265,14 @@ function requireReactJsxRuntime_development() {
265
265
  try {
266
266
  Reflect.construct($f, []);
267
267
  } catch (Mp) {
268
- Ff = Mp;
268
+ Lf = Mp;
269
269
  }
270
270
  Reflect.construct(sf, [], $f);
271
271
  } else {
272
272
  try {
273
273
  $f.call();
274
274
  } catch (Mp) {
275
- Ff = Mp;
275
+ Lf = Mp;
276
276
  }
277
277
  sf.call($f.prototype);
278
278
  }
@@ -280,36 +280,36 @@ function requireReactJsxRuntime_development() {
280
280
  try {
281
281
  throw Error();
282
282
  } catch (Mp) {
283
- Ff = Mp;
283
+ Lf = Mp;
284
284
  }
285
285
  sf();
286
286
  }
287
287
  } catch (Mp) {
288
- if (Mp && Ff && typeof Mp.stack == "string") {
288
+ if (Mp && Lf && typeof Mp.stack == "string") {
289
289
  for (var Uf = Mp.stack.split(`
290
- `), pp = Ff.stack.split(`
291
- `), ep = Uf.length - 1, op = pp.length - 1; ep >= 1 && op >= 0 && Uf[ep] !== pp[op]; )
290
+ `), pp = Lf.stack.split(`
291
+ `), qf = Uf.length - 1, op = pp.length - 1; qf >= 1 && op >= 0 && Uf[qf] !== pp[op]; )
292
292
  op--;
293
- for (; ep >= 1 && op >= 0; ep--, op--)
294
- if (Uf[ep] !== pp[op]) {
295
- if (ep !== 1 || op !== 1)
293
+ for (; qf >= 1 && op >= 0; qf--, op--)
294
+ if (Uf[qf] !== pp[op]) {
295
+ if (qf !== 1 || op !== 1)
296
296
  do
297
- if (ep--, op--, op < 0 || Uf[ep] !== pp[op]) {
297
+ if (qf--, op--, op < 0 || Uf[qf] !== pp[op]) {
298
298
  var gp = `
299
- ` + Uf[ep].replace(" at new ", " at ");
300
- return sf.displayName && gp.includes("<anonymous>") && (gp = gp.replace("<anonymous>", sf.displayName)), typeof sf == "function" && Pf.set(sf, gp), gp;
299
+ ` + Uf[qf].replace(" at new ", " at ");
300
+ return sf.displayName && gp.includes("<anonymous>") && (gp = gp.replace("<anonymous>", sf.displayName)), typeof sf == "function" && Mf.set(sf, gp), gp;
301
301
  }
302
- while (ep >= 1 && op >= 0);
302
+ while (qf >= 1 && op >= 0);
303
303
  break;
304
304
  }
305
305
  }
306
306
  } finally {
307
- Lf = !1, Sf.current = Hf, mf(), Error.prepareStackTrace = jf;
307
+ Of = !1, Sf.current = Hf, mf(), Error.prepareStackTrace = jf;
308
308
  }
309
- var kp = sf ? sf.displayName || sf.name : "", qm = kp ? Vf(kp) : "";
310
- return typeof sf == "function" && Pf.set(sf, qm), qm;
309
+ var kp = sf ? sf.displayName || sf.name : "", qm = kp ? If(kp) : "";
310
+ return typeof sf == "function" && Mf.set(sf, qm), qm;
311
311
  }
312
- function Tf(sf, xf, _f) {
312
+ function kf(sf, xf, _f) {
313
313
  return Bf(sf, !1);
314
314
  }
315
315
  function Xd(sf) {
@@ -322,21 +322,21 @@ function requireReactJsxRuntime_development() {
322
322
  if (typeof sf == "function")
323
323
  return Bf(sf, Xd(sf));
324
324
  if (typeof sf == "string")
325
- return Vf(sf);
325
+ return If(sf);
326
326
  switch (sf) {
327
327
  case E:
328
- return Vf("Suspense");
328
+ return If("Suspense");
329
329
  case L:
330
- return Vf("SuspenseList");
330
+ return If("SuspenseList");
331
331
  }
332
332
  if (typeof sf == "object")
333
333
  switch (sf.$$typeof) {
334
334
  case y:
335
- return Tf(sf.render);
335
+ return kf(sf.render);
336
336
  case F:
337
337
  return gf(sf.type, xf, _f);
338
338
  case N: {
339
- var Ff = sf, jf = Ff._payload, Hf = Ff._init;
339
+ var Lf = sf, jf = Lf._payload, Hf = Lf._init;
340
340
  try {
341
341
  return gf(Hf(jf), xf, _f);
342
342
  } catch {
@@ -345,66 +345,66 @@ function requireReactJsxRuntime_development() {
345
345
  }
346
346
  return "";
347
347
  }
348
- var yf = Object.prototype.hasOwnProperty, hf = {}, df = nt.ReactDebugCurrentFrame;
349
- function bf(sf) {
348
+ var bf = Object.prototype.hasOwnProperty, hf = {}, df = nt.ReactDebugCurrentFrame;
349
+ function yf(sf) {
350
350
  if (sf) {
351
351
  var xf = sf._owner, _f = gf(sf.type, sf._source, xf ? xf.type : null);
352
352
  df.setExtraStackFrame(_f);
353
353
  } else
354
354
  df.setExtraStackFrame(null);
355
355
  }
356
- function Ef(sf, xf, _f, Ff, jf) {
356
+ function Ef(sf, xf, _f, Lf, jf) {
357
357
  {
358
- var Hf = Function.call.bind(yf);
358
+ var Hf = Function.call.bind(bf);
359
359
  for (var $f in sf)
360
360
  if (Hf(sf, $f)) {
361
361
  var Uf = void 0;
362
362
  try {
363
363
  if (typeof sf[$f] != "function") {
364
- var pp = Error((Ff || "React class") + ": " + _f + " type `" + $f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof sf[$f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
364
+ var pp = Error((Lf || "React class") + ": " + _f + " type `" + $f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof sf[$f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
365
365
  throw pp.name = "Invariant Violation", pp;
366
366
  }
367
- Uf = sf[$f](xf, $f, Ff, _f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
368
- } catch (ep) {
369
- Uf = ep;
367
+ Uf = sf[$f](xf, $f, Lf, _f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
368
+ } catch (qf) {
369
+ Uf = qf;
370
370
  }
371
- Uf && !(Uf instanceof Error) && (bf(jf), J("%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).", Ff || "React class", _f, $f, typeof Uf), bf(null)), Uf instanceof Error && !(Uf.message in hf) && (hf[Uf.message] = !0, bf(jf), J("Failed %s type: %s", _f, Uf.message), bf(null));
371
+ Uf && !(Uf instanceof Error) && (yf(jf), J("%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).", Lf || "React class", _f, $f, typeof Uf), yf(null)), Uf instanceof Error && !(Uf.message in hf) && (hf[Uf.message] = !0, yf(jf), J("Failed %s type: %s", _f, Uf.message), yf(null));
372
372
  }
373
373
  }
374
374
  }
375
- var Rf = Array.isArray;
375
+ var Tf = Array.isArray;
376
376
  function vf(sf) {
377
- return Rf(sf);
377
+ return Tf(sf);
378
378
  }
379
- function Of(sf) {
379
+ function Vf(sf) {
380
380
  {
381
381
  var xf = typeof Symbol == "function" && Symbol.toStringTag, _f = xf && sf[Symbol.toStringTag] || sf.constructor.name || "Object";
382
382
  return _f;
383
383
  }
384
384
  }
385
- function Gf(sf) {
385
+ function Af(sf) {
386
386
  try {
387
- return If(sf), !1;
387
+ return Pf(sf), !1;
388
388
  } catch {
389
389
  return !0;
390
390
  }
391
391
  }
392
- function If(sf) {
392
+ function Pf(sf) {
393
393
  return "" + sf;
394
394
  }
395
395
  function zf(sf) {
396
- if (Gf(sf))
397
- return J("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Of(sf)), If(sf);
396
+ if (Af(sf))
397
+ return J("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Vf(sf)), Pf(sf);
398
398
  }
399
- var Mf = nt.ReactCurrentOwner, Df = {
399
+ var Rf = nt.ReactCurrentOwner, Gf = {
400
400
  key: !0,
401
401
  ref: !0,
402
402
  __self: !0,
403
403
  __source: !0
404
- }, np, Qf, qf;
405
- qf = {};
406
- function kf(sf) {
407
- if (yf.call(sf, "ref")) {
404
+ }, np, tp, Qf;
405
+ Qf = {};
406
+ function Df(sf) {
407
+ if (bf.call(sf, "ref")) {
408
408
  var xf = Object.getOwnPropertyDescriptor(sf, "ref").get;
409
409
  if (xf && xf.isReactWarning)
410
410
  return !1;
@@ -412,7 +412,7 @@ function requireReactJsxRuntime_development() {
412
412
  return sf.ref !== void 0;
413
413
  }
414
414
  function Zf(sf) {
415
- if (yf.call(sf, "key")) {
415
+ if (bf.call(sf, "key")) {
416
416
  var xf = Object.getOwnPropertyDescriptor(sf, "key").get;
417
417
  if (xf && xf.isReactWarning)
418
418
  return !1;
@@ -420,9 +420,9 @@ function requireReactJsxRuntime_development() {
420
420
  return sf.key !== void 0;
421
421
  }
422
422
  function rp(sf, xf) {
423
- if (typeof sf.ref == "string" && Mf.current && xf && Mf.current.stateNode !== xf) {
424
- var _f = yt(Mf.current.type);
425
- qf[_f] || (J('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', yt(Mf.current.type), sf.ref), qf[_f] = !0);
423
+ if (typeof sf.ref == "string" && Rf.current && xf && Rf.current.stateNode !== xf) {
424
+ var _f = yt(Rf.current.type);
425
+ Qf[_f] || (J('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', yt(Rf.current.type), sf.ref), Qf[_f] = !0);
426
426
  }
427
427
  }
428
428
  function lp(sf, xf) {
@@ -439,7 +439,7 @@ function requireReactJsxRuntime_development() {
439
439
  function dp(sf, xf) {
440
440
  {
441
441
  var _f = function() {
442
- Qf || (Qf = !0, J("%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)", xf));
442
+ tp || (tp = !0, J("%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)", xf));
443
443
  };
444
444
  _f.isReactWarning = !0, Object.defineProperty(sf, "ref", {
445
445
  get: _f,
@@ -447,7 +447,7 @@ function requireReactJsxRuntime_development() {
447
447
  });
448
448
  }
449
449
  }
450
- var hp = function(sf, xf, _f, Ff, jf, Hf, $f) {
450
+ var hp = function(sf, xf, _f, Lf, jf, Hf, $f) {
451
451
  var Uf = {
452
452
  // This tag allows us to uniquely identify this as a React Element
453
453
  $$typeof: n,
@@ -468,7 +468,7 @@ function requireReactJsxRuntime_development() {
468
468
  configurable: !1,
469
469
  enumerable: !1,
470
470
  writable: !1,
471
- value: Ff
471
+ value: Lf
472
472
  }), Object.defineProperty(Uf, "_source", {
473
473
  configurable: !1,
474
474
  enumerable: !1,
@@ -476,26 +476,26 @@ function requireReactJsxRuntime_development() {
476
476
  value: jf
477
477
  }), Object.freeze && (Object.freeze(Uf.props), Object.freeze(Uf)), Uf;
478
478
  };
479
- function mp(sf, xf, _f, Ff, jf) {
479
+ function mp(sf, xf, _f, Lf, jf) {
480
480
  {
481
481
  var Hf, $f = {}, Uf = null, pp = null;
482
- _f !== void 0 && (zf(_f), Uf = "" + _f), Zf(xf) && (zf(xf.key), Uf = "" + xf.key), kf(xf) && (pp = xf.ref, rp(xf, jf));
482
+ _f !== void 0 && (zf(_f), Uf = "" + _f), Zf(xf) && (zf(xf.key), Uf = "" + xf.key), Df(xf) && (pp = xf.ref, rp(xf, jf));
483
483
  for (Hf in xf)
484
- yf.call(xf, Hf) && !Df.hasOwnProperty(Hf) && ($f[Hf] = xf[Hf]);
484
+ bf.call(xf, Hf) && !Gf.hasOwnProperty(Hf) && ($f[Hf] = xf[Hf]);
485
485
  if (sf && sf.defaultProps) {
486
- var ep = sf.defaultProps;
487
- for (Hf in ep)
488
- $f[Hf] === void 0 && ($f[Hf] = ep[Hf]);
486
+ var qf = sf.defaultProps;
487
+ for (Hf in qf)
488
+ $f[Hf] === void 0 && ($f[Hf] = qf[Hf]);
489
489
  }
490
490
  if (Uf || pp) {
491
491
  var op = typeof sf == "function" ? sf.displayName || sf.name || "Unknown" : sf;
492
492
  Uf && lp($f, op), pp && dp($f, op);
493
493
  }
494
- return hp(sf, Uf, pp, jf, Ff, Mf.current, $f);
494
+ return hp(sf, Uf, pp, jf, Lf, Rf.current, $f);
495
495
  }
496
496
  }
497
497
  var cp = nt.ReactCurrentOwner, Nf = nt.ReactDebugCurrentFrame;
498
- function Af(sf) {
498
+ function Ff(sf) {
499
499
  if (sf) {
500
500
  var xf = sf._owner, _f = gf(sf.type, sf._source, xf ? xf.type : null);
501
501
  Nf.setExtraStackFrame(_f);
@@ -552,8 +552,8 @@ Check the top-level render call using <` + _f + ">.");
552
552
  if (ip[_f])
553
553
  return;
554
554
  ip[_f] = !0;
555
- var Ff = "";
556
- sf && sf._owner && sf._owner !== cp.current && (Ff = " It was passed a child from " + yt(sf._owner.type) + "."), Af(sf), J('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _f, Ff), Af(null);
555
+ var Lf = "";
556
+ sf && sf._owner && sf._owner !== cp.current && (Lf = " It was passed a child from " + yt(sf._owner.type) + "."), Ff(sf), J('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _f, Lf), Ff(null);
557
557
  }
558
558
  }
559
559
  function Tp(sf, xf) {
@@ -562,8 +562,8 @@ Check the top-level render call using <` + _f + ">.");
562
562
  return;
563
563
  if (vf(sf))
564
564
  for (var _f = 0; _f < sf.length; _f++) {
565
- var Ff = sf[_f];
566
- Kf(Ff) && Cp(Ff, xf);
565
+ var Lf = sf[_f];
566
+ Kf(Lf) && Cp(Lf, xf);
567
567
  }
568
568
  else if (Kf(sf))
569
569
  sf._store && (sf._store.validated = !0);
@@ -590,8 +590,8 @@ Check the top-level render call using <` + _f + ">.");
590
590
  else
591
591
  return;
592
592
  if (_f) {
593
- var Ff = yt(xf);
594
- Ef(_f, sf.props, "prop", Ff, sf);
593
+ var Lf = yt(xf);
594
+ Ef(_f, sf.props, "prop", Lf, sf);
595
595
  } else if (xf.PropTypes !== void 0 && !Yf) {
596
596
  Yf = !0;
597
597
  var jf = yt(xf);
@@ -603,16 +603,16 @@ Check the top-level render call using <` + _f + ">.");
603
603
  function _p(sf) {
604
604
  {
605
605
  for (var xf = Object.keys(sf.props), _f = 0; _f < xf.length; _f++) {
606
- var Ff = xf[_f];
607
- if (Ff !== "children" && Ff !== "key") {
608
- Af(sf), J("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ff), Af(null);
606
+ var Lf = xf[_f];
607
+ if (Lf !== "children" && Lf !== "key") {
608
+ Ff(sf), J("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Lf), Ff(null);
609
609
  break;
610
610
  }
611
611
  }
612
- sf.ref !== null && (Af(sf), J("Invalid attribute `ref` supplied to `React.Fragment`."), Af(null));
612
+ sf.ref !== null && (Ff(sf), J("Invalid attribute `ref` supplied to `React.Fragment`."), Ff(null));
613
613
  }
614
614
  }
615
- function vp(sf, xf, _f, Ff, jf, Hf) {
615
+ function vp(sf, xf, _f, Lf, jf, Hf) {
616
616
  {
617
617
  var $f = tf(sf);
618
618
  if (!$f) {
@@ -620,8 +620,8 @@ Check the top-level render call using <` + _f + ">.");
620
620
  (sf === void 0 || typeof sf == "object" && sf !== null && Object.keys(sf).length === 0) && (Uf += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
621
621
  var pp = up(jf);
622
622
  pp ? Uf += pp : Uf += fp();
623
- var ep;
624
- sf === null ? ep = "null" : vf(sf) ? ep = "array" : sf !== void 0 && sf.$$typeof === n ? (ep = "<" + (yt(sf.type) || "Unknown") + " />", Uf = " Did you accidentally export a JSX literal instead of a component?") : ep = typeof sf, J("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ep, Uf);
623
+ var qf;
624
+ sf === null ? qf = "null" : vf(sf) ? qf = "array" : sf !== void 0 && sf.$$typeof === n ? (qf = "<" + (yt(sf.type) || "Unknown") + " />", Uf = " Did you accidentally export a JSX literal instead of a component?") : qf = typeof sf, J("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", qf, Uf);
625
625
  }
626
626
  var op = mp(sf, xf, _f, jf, Hf);
627
627
  if (op == null)
@@ -629,7 +629,7 @@ Check the top-level render call using <` + _f + ">.");
629
629
  if ($f) {
630
630
  var gp = xf.children;
631
631
  if (gp !== void 0)
632
- if (Ff)
632
+ if (Lf)
633
633
  if (vf(gp)) {
634
634
  for (var kp = 0; kp < gp.length; kp++)
635
635
  Tp(gp[kp], sf);
@@ -770,6 +770,7 @@ const engineRefKeys = {
770
770
  findByTags: 1,
771
771
  hide: 1,
772
772
  isLayer: 1,
773
+ isComputedLayer: 1,
773
774
  layers: 1,
774
775
  override: 1,
775
776
  replace: 1,
@@ -1402,7 +1403,7 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
1402
1403
  d: z(af, mf == null ? void 0 : mf.d, pf)
1403
1404
  };
1404
1405
  let wf = !(mf != null && mf.y);
1405
- return !mf || !("v" in mf) || !Object.is(mf.v, cf) ? (wf = !0, ++Sf.r, Sf.d.has(rf) && (Sf.d = new Map(Sf.d).set(rf, Sf.r))) : Sf.d !== mf.d && (Sf.d.size !== mf.d.size || !Array.from(Sf.d.keys()).every((Vf) => mf.d.has(Vf))) && (wf = !0, Promise.resolve().then(() => {
1406
+ return !mf || !("v" in mf) || !Object.is(mf.v, cf) ? (wf = !0, ++Sf.r, Sf.d.has(rf) && (Sf.d = new Map(Sf.d).set(rf, Sf.r))) : Sf.d !== mf.d && (Sf.d.size !== mf.d.size || !Array.from(Sf.d.keys()).every((If) => mf.d.has(If))) && (wf = !0, Promise.resolve().then(() => {
1406
1407
  sl(af);
1407
1408
  })), mf && !wf ? mf : (N(af, rf, Sf), Sf);
1408
1409
  }, W = (af, rf, cf, pf, ff) => {
@@ -1534,42 +1535,42 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
1534
1535
  });
1535
1536
  }, md = (af, rf, cf) => {
1536
1537
  let pf = !0;
1537
- const ff = (wf, Vf) => {
1538
- const Lf = lt(af, wf);
1539
- if ("e" in Lf)
1540
- throw Lf.e;
1541
- if ("p" in Lf) {
1542
- if (Vf != null && Vf.unstable_promise)
1543
- return Lf.p.then(() => {
1544
- const Pf = F(af, wf);
1545
- return Pf && "p" in Pf && Pf.p === Lf.p ? new Promise((Xf) => setTimeout(Xf)).then(
1546
- () => ff(wf, Vf)
1547
- ) : ff(wf, Vf);
1538
+ const ff = (wf, If) => {
1539
+ const Of = lt(af, wf);
1540
+ if ("e" in Of)
1541
+ throw Of.e;
1542
+ if ("p" in Of) {
1543
+ if (If != null && If.unstable_promise)
1544
+ return Of.p.then(() => {
1545
+ const Mf = F(af, wf);
1546
+ return Mf && "p" in Mf && Mf.p === Of.p ? new Promise((Xf) => setTimeout(Xf)).then(
1547
+ () => ff(wf, If)
1548
+ ) : ff(wf, If);
1548
1549
  });
1549
1550
  throw (define_import_meta_env_default && "production") !== "production" && console.info(
1550
1551
  "Reading pending atom state in write operation. We throw a promise for now.",
1551
1552
  wf
1552
- ), Lf.p;
1553
+ ), Of.p;
1553
1554
  }
1554
- if ("v" in Lf)
1555
- return Lf.v;
1555
+ if ("v" in Of)
1556
+ return Of.v;
1556
1557
  throw (define_import_meta_env_default && "production") !== "production" && console.warn(
1557
1558
  "[Bug] no value found while reading atom in write operation. This is probably a bug.",
1558
1559
  wf
1559
1560
  ), new Error("no value found");
1560
- }, mf = (wf, Vf) => {
1561
- let Lf;
1561
+ }, mf = (wf, If) => {
1562
+ let Of;
1562
1563
  if (wf === rf) {
1563
1564
  if (!hasInitialValue(wf))
1564
1565
  throw new Error("atom not writable");
1565
- y(wf).forEach((Tf) => {
1566
- Tf !== af && nt(Tf, wf, Vf);
1566
+ y(wf).forEach((kf) => {
1567
+ kf !== af && nt(kf, wf, If);
1567
1568
  });
1568
- const Xf = F(af, wf), Bf = nt(af, wf, Vf);
1569
+ const Xf = F(af, wf), Bf = nt(af, wf, If);
1569
1570
  Xf !== Bf && Gd(af, wf);
1570
1571
  } else
1571
- Lf = md(af, wf, Vf);
1572
- return pf || sl(af), Lf;
1572
+ Of = md(af, wf, If);
1573
+ return pf || sl(af), Of;
1573
1574
  }, Sf = rf.write(ff, mf, cf);
1574
1575
  return pf = !1, Sf;
1575
1576
  }, tf = (af, rf, cf) => {
@@ -9834,8 +9835,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9834
9835
  Xd[gf] = 0;
9835
9836
  }
9836
9837
  function rf(Xd) {
9837
- var gf = Xd.state, yf = gf.pending;
9838
- yf > Xd.avail_out && (yf = Xd.avail_out), yf !== 0 && (h.arraySet(Xd.output, gf.pending_buf, gf.pending_out, yf, Xd.next_out), Xd.next_out += yf, gf.pending_out += yf, Xd.total_out += yf, Xd.avail_out -= yf, gf.pending -= yf, gf.pending === 0 && (gf.pending_out = 0));
9838
+ var gf = Xd.state, bf = gf.pending;
9839
+ bf > Xd.avail_out && (bf = Xd.avail_out), bf !== 0 && (h.arraySet(Xd.output, gf.pending_buf, gf.pending_out, bf, Xd.next_out), Xd.next_out += bf, gf.pending_out += bf, Xd.total_out += bf, Xd.avail_out -= bf, gf.pending -= bf, gf.pending === 0 && (gf.pending_out = 0));
9839
9840
  }
9840
9841
  function cf(Xd, gf) {
9841
9842
  p._tr_flush_block(Xd, 0 <= Xd.block_start ? Xd.block_start : -1, Xd.strstart - Xd.block_start, gf), Xd.block_start = Xd.strstart, rf(Xd.strm);
@@ -9847,51 +9848,51 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9847
9848
  Xd.pending_buf[Xd.pending++] = gf >>> 8 & 255, Xd.pending_buf[Xd.pending++] = 255 & gf;
9848
9849
  }
9849
9850
  function mf(Xd, gf) {
9850
- var yf, hf, df = Xd.max_chain_length, bf = Xd.strstart, Ef = Xd.prev_length, Rf = Xd.nice_match, vf = Xd.strstart > Xd.w_size - nf ? Xd.strstart - (Xd.w_size - nf) : 0, Of = Xd.window, Gf = Xd.w_mask, If = Xd.prev, zf = Xd.strstart + tf, Mf = Of[bf + Ef - 1], Df = Of[bf + Ef];
9851
- Xd.prev_length >= Xd.good_match && (df >>= 2), Rf > Xd.lookahead && (Rf = Xd.lookahead);
9851
+ var bf, hf, df = Xd.max_chain_length, yf = Xd.strstart, Ef = Xd.prev_length, Tf = Xd.nice_match, vf = Xd.strstart > Xd.w_size - nf ? Xd.strstart - (Xd.w_size - nf) : 0, Vf = Xd.window, Af = Xd.w_mask, Pf = Xd.prev, zf = Xd.strstart + tf, Rf = Vf[yf + Ef - 1], Gf = Vf[yf + Ef];
9852
+ Xd.prev_length >= Xd.good_match && (df >>= 2), Tf > Xd.lookahead && (Tf = Xd.lookahead);
9852
9853
  do
9853
- if (Of[(yf = gf) + Ef] === Df && Of[yf + Ef - 1] === Mf && Of[yf] === Of[bf] && Of[++yf] === Of[bf + 1]) {
9854
- bf += 2, yf++;
9854
+ if (Vf[(bf = gf) + Ef] === Gf && Vf[bf + Ef - 1] === Rf && Vf[bf] === Vf[yf] && Vf[++bf] === Vf[yf + 1]) {
9855
+ yf += 2, bf++;
9855
9856
  do
9856
9857
  ;
9857
- while (Of[++bf] === Of[++yf] && Of[++bf] === Of[++yf] && Of[++bf] === Of[++yf] && Of[++bf] === Of[++yf] && Of[++bf] === Of[++yf] && Of[++bf] === Of[++yf] && Of[++bf] === Of[++yf] && Of[++bf] === Of[++yf] && bf < zf);
9858
- if (hf = tf - (zf - bf), bf = zf - tf, Ef < hf) {
9859
- if (Xd.match_start = gf, Rf <= (Ef = hf))
9858
+ while (Vf[++yf] === Vf[++bf] && Vf[++yf] === Vf[++bf] && Vf[++yf] === Vf[++bf] && Vf[++yf] === Vf[++bf] && Vf[++yf] === Vf[++bf] && Vf[++yf] === Vf[++bf] && Vf[++yf] === Vf[++bf] && Vf[++yf] === Vf[++bf] && yf < zf);
9859
+ if (hf = tf - (zf - yf), yf = zf - tf, Ef < hf) {
9860
+ if (Xd.match_start = gf, Tf <= (Ef = hf))
9860
9861
  break;
9861
- Mf = Of[bf + Ef - 1], Df = Of[bf + Ef];
9862
+ Rf = Vf[yf + Ef - 1], Gf = Vf[yf + Ef];
9862
9863
  }
9863
9864
  }
9864
- while ((gf = If[gf & Gf]) > vf && --df != 0);
9865
+ while ((gf = Pf[gf & Af]) > vf && --df != 0);
9865
9866
  return Ef <= Xd.lookahead ? Ef : Xd.lookahead;
9866
9867
  }
9867
9868
  function Sf(Xd) {
9868
- var gf, yf, hf, df, bf, Ef, Rf, vf, Of, Gf, If = Xd.w_size;
9869
+ var gf, bf, hf, df, yf, Ef, Tf, vf, Vf, Af, Pf = Xd.w_size;
9869
9870
  do {
9870
- if (df = Xd.window_size - Xd.lookahead - Xd.strstart, Xd.strstart >= If + (If - nf)) {
9871
- for (h.arraySet(Xd.window, Xd.window, If, If, 0), Xd.match_start -= If, Xd.strstart -= If, Xd.block_start -= If, gf = yf = Xd.hash_size; hf = Xd.head[--gf], Xd.head[gf] = If <= hf ? hf - If : 0, --yf; )
9871
+ if (df = Xd.window_size - Xd.lookahead - Xd.strstart, Xd.strstart >= Pf + (Pf - nf)) {
9872
+ for (h.arraySet(Xd.window, Xd.window, Pf, Pf, 0), Xd.match_start -= Pf, Xd.strstart -= Pf, Xd.block_start -= Pf, gf = bf = Xd.hash_size; hf = Xd.head[--gf], Xd.head[gf] = Pf <= hf ? hf - Pf : 0, --bf; )
9872
9873
  ;
9873
- for (gf = yf = If; hf = Xd.prev[--gf], Xd.prev[gf] = If <= hf ? hf - If : 0, --yf; )
9874
+ for (gf = bf = Pf; hf = Xd.prev[--gf], Xd.prev[gf] = Pf <= hf ? hf - Pf : 0, --bf; )
9874
9875
  ;
9875
- df += If;
9876
+ df += Pf;
9876
9877
  }
9877
9878
  if (Xd.strm.avail_in === 0)
9878
9879
  break;
9879
- if (Ef = Xd.strm, Rf = Xd.window, vf = Xd.strstart + Xd.lookahead, Of = df, Gf = void 0, Gf = Ef.avail_in, Of < Gf && (Gf = Of), yf = Gf === 0 ? 0 : (Ef.avail_in -= Gf, h.arraySet(Rf, Ef.input, Ef.next_in, Gf, vf), Ef.state.wrap === 1 ? Ef.adler = y(Ef.adler, Rf, Gf, vf) : Ef.state.wrap === 2 && (Ef.adler = E(Ef.adler, Rf, Gf, vf)), Ef.next_in += Gf, Ef.total_in += Gf, Gf), Xd.lookahead += yf, Xd.lookahead + Xd.insert >= md)
9880
- for (bf = Xd.strstart - Xd.insert, Xd.ins_h = Xd.window[bf], Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[bf + 1]) & Xd.hash_mask; Xd.insert && (Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[bf + md - 1]) & Xd.hash_mask, Xd.prev[bf & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = bf, bf++, Xd.insert--, !(Xd.lookahead + Xd.insert < md)); )
9880
+ if (Ef = Xd.strm, Tf = Xd.window, vf = Xd.strstart + Xd.lookahead, Vf = df, Af = void 0, Af = Ef.avail_in, Vf < Af && (Af = Vf), bf = Af === 0 ? 0 : (Ef.avail_in -= Af, h.arraySet(Tf, Ef.input, Ef.next_in, Af, vf), Ef.state.wrap === 1 ? Ef.adler = y(Ef.adler, Tf, Af, vf) : Ef.state.wrap === 2 && (Ef.adler = E(Ef.adler, Tf, Af, vf)), Ef.next_in += Af, Ef.total_in += Af, Af), Xd.lookahead += bf, Xd.lookahead + Xd.insert >= md)
9881
+ for (yf = Xd.strstart - Xd.insert, Xd.ins_h = Xd.window[yf], Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[yf + 1]) & Xd.hash_mask; Xd.insert && (Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[yf + md - 1]) & Xd.hash_mask, Xd.prev[yf & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = yf, yf++, Xd.insert--, !(Xd.lookahead + Xd.insert < md)); )
9881
9882
  ;
9882
9883
  } while (Xd.lookahead < nf && Xd.strm.avail_in !== 0);
9883
9884
  }
9884
9885
  function wf(Xd, gf) {
9885
- for (var yf, hf; ; ) {
9886
+ for (var bf, hf; ; ) {
9886
9887
  if (Xd.lookahead < nf) {
9887
9888
  if (Sf(Xd), Xd.lookahead < nf && gf === F)
9888
9889
  return Ee;
9889
9890
  if (Xd.lookahead === 0)
9890
9891
  break;
9891
9892
  }
9892
- if (yf = 0, Xd.lookahead >= md && (Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[Xd.strstart + md - 1]) & Xd.hash_mask, yf = Xd.prev[Xd.strstart & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = Xd.strstart), yf !== 0 && Xd.strstart - yf <= Xd.w_size - nf && (Xd.match_length = mf(Xd, yf)), Xd.match_length >= md)
9893
+ if (bf = 0, Xd.lookahead >= md && (Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[Xd.strstart + md - 1]) & Xd.hash_mask, bf = Xd.prev[Xd.strstart & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = Xd.strstart), bf !== 0 && Xd.strstart - bf <= Xd.w_size - nf && (Xd.match_length = mf(Xd, bf)), Xd.match_length >= md)
9893
9894
  if (hf = p._tr_tally(Xd, Xd.strstart - Xd.match_start, Xd.match_length - md), Xd.lookahead -= Xd.match_length, Xd.match_length <= Xd.max_lazy_match && Xd.lookahead >= md) {
9894
- for (Xd.match_length--; Xd.strstart++, Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[Xd.strstart + md - 1]) & Xd.hash_mask, yf = Xd.prev[Xd.strstart & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = Xd.strstart, --Xd.match_length != 0; )
9895
+ for (Xd.match_length--; Xd.strstart++, Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[Xd.strstart + md - 1]) & Xd.hash_mask, bf = Xd.prev[Xd.strstart & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = Xd.strstart, --Xd.match_length != 0; )
9895
9896
  ;
9896
9897
  Xd.strstart++;
9897
9898
  } else
@@ -9903,16 +9904,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9903
9904
  }
9904
9905
  return Xd.insert = Xd.strstart < md - 1 ? Xd.strstart : md - 1, gf === N ? (cf(Xd, !0), Xd.strm.avail_out === 0 ? Zd : of) : Xd.last_lit && (cf(Xd, !1), Xd.strm.avail_out === 0) ? Ee : sl;
9905
9906
  }
9906
- function Vf(Xd, gf) {
9907
- for (var yf, hf, df; ; ) {
9907
+ function If(Xd, gf) {
9908
+ for (var bf, hf, df; ; ) {
9908
9909
  if (Xd.lookahead < nf) {
9909
9910
  if (Sf(Xd), Xd.lookahead < nf && gf === F)
9910
9911
  return Ee;
9911
9912
  if (Xd.lookahead === 0)
9912
9913
  break;
9913
9914
  }
9914
- if (yf = 0, Xd.lookahead >= md && (Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[Xd.strstart + md - 1]) & Xd.hash_mask, yf = Xd.prev[Xd.strstart & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = Xd.strstart), Xd.prev_length = Xd.match_length, Xd.prev_match = Xd.match_start, Xd.match_length = md - 1, yf !== 0 && Xd.prev_length < Xd.max_lazy_match && Xd.strstart - yf <= Xd.w_size - nf && (Xd.match_length = mf(Xd, yf), Xd.match_length <= 5 && (Xd.strategy === 1 || Xd.match_length === md && 4096 < Xd.strstart - Xd.match_start) && (Xd.match_length = md - 1)), Xd.prev_length >= md && Xd.match_length <= Xd.prev_length) {
9915
- for (df = Xd.strstart + Xd.lookahead - md, hf = p._tr_tally(Xd, Xd.strstart - 1 - Xd.prev_match, Xd.prev_length - md), Xd.lookahead -= Xd.prev_length - 1, Xd.prev_length -= 2; ++Xd.strstart <= df && (Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[Xd.strstart + md - 1]) & Xd.hash_mask, yf = Xd.prev[Xd.strstart & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = Xd.strstart), --Xd.prev_length != 0; )
9915
+ if (bf = 0, Xd.lookahead >= md && (Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[Xd.strstart + md - 1]) & Xd.hash_mask, bf = Xd.prev[Xd.strstart & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = Xd.strstart), Xd.prev_length = Xd.match_length, Xd.prev_match = Xd.match_start, Xd.match_length = md - 1, bf !== 0 && Xd.prev_length < Xd.max_lazy_match && Xd.strstart - bf <= Xd.w_size - nf && (Xd.match_length = mf(Xd, bf), Xd.match_length <= 5 && (Xd.strategy === 1 || Xd.match_length === md && 4096 < Xd.strstart - Xd.match_start) && (Xd.match_length = md - 1)), Xd.prev_length >= md && Xd.match_length <= Xd.prev_length) {
9916
+ for (df = Xd.strstart + Xd.lookahead - md, hf = p._tr_tally(Xd, Xd.strstart - 1 - Xd.prev_match, Xd.prev_length - md), Xd.lookahead -= Xd.prev_length - 1, Xd.prev_length -= 2; ++Xd.strstart <= df && (Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[Xd.strstart + md - 1]) & Xd.hash_mask, bf = Xd.prev[Xd.strstart & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = Xd.strstart), --Xd.prev_length != 0; )
9916
9917
  ;
9917
9918
  if (Xd.match_available = 0, Xd.match_length = md - 1, Xd.strstart++, hf && (cf(Xd, !1), Xd.strm.avail_out === 0))
9918
9919
  return Ee;
@@ -9924,10 +9925,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9924
9925
  }
9925
9926
  return Xd.match_available && (hf = p._tr_tally(Xd, 0, Xd.window[Xd.strstart - 1]), Xd.match_available = 0), Xd.insert = Xd.strstart < md - 1 ? Xd.strstart : md - 1, gf === N ? (cf(Xd, !0), Xd.strm.avail_out === 0 ? Zd : of) : Xd.last_lit && (cf(Xd, !1), Xd.strm.avail_out === 0) ? Ee : sl;
9926
9927
  }
9927
- function Lf(Xd, gf, yf, hf, df) {
9928
- this.good_length = Xd, this.max_lazy = gf, this.nice_length = yf, this.max_chain = hf, this.func = df;
9928
+ function Of(Xd, gf, bf, hf, df) {
9929
+ this.good_length = Xd, this.max_lazy = gf, this.nice_length = bf, this.max_chain = hf, this.func = df;
9929
9930
  }
9930
- function Pf() {
9931
+ function Mf() {
9931
9932
  this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = J, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new h.Buf16(2 * Vd), this.dyn_dtree = new h.Buf16(2 * (2 * pi + 1)), this.bl_tree = new h.Buf16(2 * (2 * Ai + 1)), af(this.dyn_ltree), af(this.dyn_dtree), af(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new h.Buf16(Gd + 1), this.heap = new h.Buf16(2 * mt + 1), af(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new h.Buf16(2 * mt + 1), af(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
9932
9933
  }
9933
9934
  function Xf(Xd) {
@@ -9936,23 +9937,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9936
9937
  }
9937
9938
  function Bf(Xd) {
9938
9939
  var gf = Xf(Xd);
9939
- return gf === z && function(yf) {
9940
- yf.window_size = 2 * yf.w_size, af(yf.head), yf.max_lazy_match = d[yf.level].max_lazy, yf.good_match = d[yf.level].good_length, yf.nice_match = d[yf.level].nice_length, yf.max_chain_length = d[yf.level].max_chain, yf.strstart = 0, yf.block_start = 0, yf.lookahead = 0, yf.insert = 0, yf.match_length = yf.prev_length = md - 1, yf.match_available = 0, yf.ins_h = 0;
9940
+ return gf === z && function(bf) {
9941
+ bf.window_size = 2 * bf.w_size, af(bf.head), bf.max_lazy_match = d[bf.level].max_lazy, bf.good_match = d[bf.level].good_length, bf.nice_match = d[bf.level].nice_length, bf.max_chain_length = d[bf.level].max_chain, bf.strstart = 0, bf.block_start = 0, bf.lookahead = 0, bf.insert = 0, bf.match_length = bf.prev_length = md - 1, bf.match_available = 0, bf.ins_h = 0;
9941
9942
  }(Xd.state), gf;
9942
9943
  }
9943
- function Tf(Xd, gf, yf, hf, df, bf) {
9944
+ function kf(Xd, gf, bf, hf, df, yf) {
9944
9945
  if (!Xd)
9945
9946
  return H;
9946
9947
  var Ef = 1;
9947
- if (gf === W && (gf = 6), hf < 0 ? (Ef = 0, hf = -hf) : 15 < hf && (Ef = 2, hf -= 16), df < 1 || lt < df || yf !== J || hf < 8 || 15 < hf || gf < 0 || 9 < gf || bf < 0 || oe < bf)
9948
+ if (gf === W && (gf = 6), hf < 0 ? (Ef = 0, hf = -hf) : 15 < hf && (Ef = 2, hf -= 16), df < 1 || lt < df || bf !== J || hf < 8 || 15 < hf || gf < 0 || 9 < gf || yf < 0 || oe < yf)
9948
9949
  return uf(Xd, H);
9949
9950
  hf === 8 && (hf = 9);
9950
- var Rf = new Pf();
9951
- return (Xd.state = Rf).strm = Xd, Rf.wrap = Ef, Rf.gzhead = null, Rf.w_bits = hf, Rf.w_size = 1 << Rf.w_bits, Rf.w_mask = Rf.w_size - 1, Rf.hash_bits = df + 7, Rf.hash_size = 1 << Rf.hash_bits, Rf.hash_mask = Rf.hash_size - 1, Rf.hash_shift = ~~((Rf.hash_bits + md - 1) / md), Rf.window = new h.Buf8(2 * Rf.w_size), Rf.head = new h.Buf16(Rf.hash_size), Rf.prev = new h.Buf16(Rf.w_size), Rf.lit_bufsize = 1 << df + 6, Rf.pending_buf_size = 4 * Rf.lit_bufsize, Rf.pending_buf = new h.Buf8(Rf.pending_buf_size), Rf.d_buf = 1 * Rf.lit_bufsize, Rf.l_buf = 3 * Rf.lit_bufsize, Rf.level = gf, Rf.strategy = bf, Rf.method = yf, Bf(Xd);
9951
+ var Tf = new Mf();
9952
+ return (Xd.state = Tf).strm = Xd, Tf.wrap = Ef, Tf.gzhead = null, Tf.w_bits = hf, Tf.w_size = 1 << Tf.w_bits, Tf.w_mask = Tf.w_size - 1, Tf.hash_bits = df + 7, Tf.hash_size = 1 << Tf.hash_bits, Tf.hash_mask = Tf.hash_size - 1, Tf.hash_shift = ~~((Tf.hash_bits + md - 1) / md), Tf.window = new h.Buf8(2 * Tf.w_size), Tf.head = new h.Buf16(Tf.hash_size), Tf.prev = new h.Buf16(Tf.w_size), Tf.lit_bufsize = 1 << df + 6, Tf.pending_buf_size = 4 * Tf.lit_bufsize, Tf.pending_buf = new h.Buf8(Tf.pending_buf_size), Tf.d_buf = 1 * Tf.lit_bufsize, Tf.l_buf = 3 * Tf.lit_bufsize, Tf.level = gf, Tf.strategy = yf, Tf.method = bf, Bf(Xd);
9952
9953
  }
9953
- d = [new Lf(0, 0, 0, 0, function(Xd, gf) {
9954
- var yf = 65535;
9955
- for (yf > Xd.pending_buf_size - 5 && (yf = Xd.pending_buf_size - 5); ; ) {
9954
+ d = [new Of(0, 0, 0, 0, function(Xd, gf) {
9955
+ var bf = 65535;
9956
+ for (bf > Xd.pending_buf_size - 5 && (bf = Xd.pending_buf_size - 5); ; ) {
9956
9957
  if (Xd.lookahead <= 1) {
9957
9958
  if (Sf(Xd), Xd.lookahead === 0 && gf === F)
9958
9959
  return Ee;
@@ -9960,22 +9961,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9960
9961
  break;
9961
9962
  }
9962
9963
  Xd.strstart += Xd.lookahead, Xd.lookahead = 0;
9963
- var hf = Xd.block_start + yf;
9964
+ var hf = Xd.block_start + bf;
9964
9965
  if ((Xd.strstart === 0 || Xd.strstart >= hf) && (Xd.lookahead = Xd.strstart - hf, Xd.strstart = hf, cf(Xd, !1), Xd.strm.avail_out === 0) || Xd.strstart - Xd.block_start >= Xd.w_size - nf && (cf(Xd, !1), Xd.strm.avail_out === 0))
9965
9966
  return Ee;
9966
9967
  }
9967
9968
  return Xd.insert = 0, gf === N ? (cf(Xd, !0), Xd.strm.avail_out === 0 ? Zd : of) : (Xd.strstart > Xd.block_start && (cf(Xd, !1), Xd.strm.avail_out), Ee);
9968
- }), new Lf(4, 4, 8, 4, wf), new Lf(4, 5, 16, 8, wf), new Lf(4, 6, 32, 32, wf), new Lf(4, 4, 16, 16, Vf), new Lf(8, 16, 32, 32, Vf), new Lf(8, 16, 128, 128, Vf), new Lf(8, 32, 128, 256, Vf), new Lf(32, 128, 258, 1024, Vf), new Lf(32, 258, 258, 4096, Vf)], c.deflateInit = function(Xd, gf) {
9969
- return Tf(Xd, gf, J, 15, 8, 0);
9970
- }, c.deflateInit2 = Tf, c.deflateReset = Bf, c.deflateResetKeep = Xf, c.deflateSetHeader = function(Xd, gf) {
9969
+ }), new Of(4, 4, 8, 4, wf), new Of(4, 5, 16, 8, wf), new Of(4, 6, 32, 32, wf), new Of(4, 4, 16, 16, If), new Of(8, 16, 32, 32, If), new Of(8, 16, 128, 128, If), new Of(8, 32, 128, 256, If), new Of(32, 128, 258, 1024, If), new Of(32, 258, 258, 4096, If)], c.deflateInit = function(Xd, gf) {
9970
+ return kf(Xd, gf, J, 15, 8, 0);
9971
+ }, c.deflateInit2 = kf, c.deflateReset = Bf, c.deflateResetKeep = Xf, c.deflateSetHeader = function(Xd, gf) {
9971
9972
  return Xd && Xd.state ? Xd.state.wrap !== 2 ? H : (Xd.state.gzhead = gf, z) : H;
9972
9973
  }, c.deflate = function(Xd, gf) {
9973
- var yf, hf, df, bf;
9974
+ var bf, hf, df, yf;
9974
9975
  if (!Xd || !Xd.state || 5 < gf || gf < 0)
9975
9976
  return Xd ? uf(Xd, H) : H;
9976
9977
  if (hf = Xd.state, !Xd.output || !Xd.input && Xd.avail_in !== 0 || hf.status === 666 && gf !== N)
9977
9978
  return uf(Xd, Xd.avail_out === 0 ? -5 : H);
9978
- if (hf.strm = Xd, yf = hf.last_flush, hf.last_flush = gf, hf.status === ef)
9979
+ if (hf.strm = Xd, bf = hf.last_flush, hf.last_flush = gf, hf.status === ef)
9979
9980
  if (hf.wrap === 2)
9980
9981
  Xd.adler = 0, pf(hf, 31), pf(hf, 139), pf(hf, 8), hf.gzhead ? (pf(hf, (hf.gzhead.text ? 1 : 0) + (hf.gzhead.hcrc ? 2 : 0) + (hf.gzhead.extra ? 4 : 0) + (hf.gzhead.name ? 8 : 0) + (hf.gzhead.comment ? 16 : 0)), pf(hf, 255 & hf.gzhead.time), pf(hf, hf.gzhead.time >> 8 & 255), pf(hf, hf.gzhead.time >> 16 & 255), pf(hf, hf.gzhead.time >> 24 & 255), pf(hf, hf.level === 9 ? 2 : 2 <= hf.strategy || hf.level < 2 ? 4 : 0), pf(hf, 255 & hf.gzhead.os), hf.gzhead.extra && hf.gzhead.extra.length && (pf(hf, 255 & hf.gzhead.extra.length), pf(hf, hf.gzhead.extra.length >> 8 & 255)), hf.gzhead.hcrc && (Xd.adler = E(Xd.adler, hf.pending_buf, hf.pending, 0)), hf.gzindex = 0, hf.status = 69) : (pf(hf, 0), pf(hf, 0), pf(hf, 0), pf(hf, 0), pf(hf, 0), pf(hf, hf.level === 9 ? 2 : 2 <= hf.strategy || hf.level < 2 ? 4 : 0), pf(hf, 3), hf.status = yt);
9981
9982
  else {
@@ -9994,12 +9995,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
9994
9995
  df = hf.pending;
9995
9996
  do {
9996
9997
  if (hf.pending === hf.pending_buf_size && (hf.gzhead.hcrc && hf.pending > df && (Xd.adler = E(Xd.adler, hf.pending_buf, hf.pending - df, df)), rf(Xd), df = hf.pending, hf.pending === hf.pending_buf_size)) {
9997
- bf = 1;
9998
+ yf = 1;
9998
9999
  break;
9999
10000
  }
10000
- bf = hf.gzindex < hf.gzhead.name.length ? 255 & hf.gzhead.name.charCodeAt(hf.gzindex++) : 0, pf(hf, bf);
10001
- } while (bf !== 0);
10002
- hf.gzhead.hcrc && hf.pending > df && (Xd.adler = E(Xd.adler, hf.pending_buf, hf.pending - df, df)), bf === 0 && (hf.gzindex = 0, hf.status = 91);
10001
+ yf = hf.gzindex < hf.gzhead.name.length ? 255 & hf.gzhead.name.charCodeAt(hf.gzindex++) : 0, pf(hf, yf);
10002
+ } while (yf !== 0);
10003
+ hf.gzhead.hcrc && hf.pending > df && (Xd.adler = E(Xd.adler, hf.pending_buf, hf.pending - df, df)), yf === 0 && (hf.gzindex = 0, hf.status = 91);
10003
10004
  } else
10004
10005
  hf.status = 91;
10005
10006
  if (hf.status === 91)
@@ -10007,56 +10008,56 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10007
10008
  df = hf.pending;
10008
10009
  do {
10009
10010
  if (hf.pending === hf.pending_buf_size && (hf.gzhead.hcrc && hf.pending > df && (Xd.adler = E(Xd.adler, hf.pending_buf, hf.pending - df, df)), rf(Xd), df = hf.pending, hf.pending === hf.pending_buf_size)) {
10010
- bf = 1;
10011
+ yf = 1;
10011
10012
  break;
10012
10013
  }
10013
- bf = hf.gzindex < hf.gzhead.comment.length ? 255 & hf.gzhead.comment.charCodeAt(hf.gzindex++) : 0, pf(hf, bf);
10014
- } while (bf !== 0);
10015
- hf.gzhead.hcrc && hf.pending > df && (Xd.adler = E(Xd.adler, hf.pending_buf, hf.pending - df, df)), bf === 0 && (hf.status = 103);
10014
+ yf = hf.gzindex < hf.gzhead.comment.length ? 255 & hf.gzhead.comment.charCodeAt(hf.gzindex++) : 0, pf(hf, yf);
10015
+ } while (yf !== 0);
10016
+ hf.gzhead.hcrc && hf.pending > df && (Xd.adler = E(Xd.adler, hf.pending_buf, hf.pending - df, df)), yf === 0 && (hf.status = 103);
10016
10017
  } else
10017
10018
  hf.status = 103;
10018
10019
  if (hf.status === 103 && (hf.gzhead.hcrc ? (hf.pending + 2 > hf.pending_buf_size && rf(Xd), hf.pending + 2 <= hf.pending_buf_size && (pf(hf, 255 & Xd.adler), pf(hf, Xd.adler >> 8 & 255), Xd.adler = 0, hf.status = yt)) : hf.status = yt), hf.pending !== 0) {
10019
10020
  if (rf(Xd), Xd.avail_out === 0)
10020
10021
  return hf.last_flush = -1, z;
10021
- } else if (Xd.avail_in === 0 && lf(gf) <= lf(yf) && gf !== N)
10022
+ } else if (Xd.avail_in === 0 && lf(gf) <= lf(bf) && gf !== N)
10022
10023
  return uf(Xd, -5);
10023
10024
  if (hf.status === 666 && Xd.avail_in !== 0)
10024
10025
  return uf(Xd, -5);
10025
10026
  if (Xd.avail_in !== 0 || hf.lookahead !== 0 || gf !== F && hf.status !== 666) {
10026
- var Rf = hf.strategy === 2 ? function(vf, Of) {
10027
- for (var Gf; ; ) {
10027
+ var Tf = hf.strategy === 2 ? function(vf, Vf) {
10028
+ for (var Af; ; ) {
10028
10029
  if (vf.lookahead === 0 && (Sf(vf), vf.lookahead === 0)) {
10029
- if (Of === F)
10030
+ if (Vf === F)
10030
10031
  return Ee;
10031
10032
  break;
10032
10033
  }
10033
- if (vf.match_length = 0, Gf = p._tr_tally(vf, 0, vf.window[vf.strstart]), vf.lookahead--, vf.strstart++, Gf && (cf(vf, !1), vf.strm.avail_out === 0))
10034
+ if (vf.match_length = 0, Af = p._tr_tally(vf, 0, vf.window[vf.strstart]), vf.lookahead--, vf.strstart++, Af && (cf(vf, !1), vf.strm.avail_out === 0))
10034
10035
  return Ee;
10035
10036
  }
10036
- return vf.insert = 0, Of === N ? (cf(vf, !0), vf.strm.avail_out === 0 ? Zd : of) : vf.last_lit && (cf(vf, !1), vf.strm.avail_out === 0) ? Ee : sl;
10037
- }(hf, gf) : hf.strategy === 3 ? function(vf, Of) {
10038
- for (var Gf, If, zf, Mf, Df = vf.window; ; ) {
10037
+ return vf.insert = 0, Vf === N ? (cf(vf, !0), vf.strm.avail_out === 0 ? Zd : of) : vf.last_lit && (cf(vf, !1), vf.strm.avail_out === 0) ? Ee : sl;
10038
+ }(hf, gf) : hf.strategy === 3 ? function(vf, Vf) {
10039
+ for (var Af, Pf, zf, Rf, Gf = vf.window; ; ) {
10039
10040
  if (vf.lookahead <= tf) {
10040
- if (Sf(vf), vf.lookahead <= tf && Of === F)
10041
+ if (Sf(vf), vf.lookahead <= tf && Vf === F)
10041
10042
  return Ee;
10042
10043
  if (vf.lookahead === 0)
10043
10044
  break;
10044
10045
  }
10045
- if (vf.match_length = 0, vf.lookahead >= md && 0 < vf.strstart && (If = Df[zf = vf.strstart - 1]) === Df[++zf] && If === Df[++zf] && If === Df[++zf]) {
10046
- Mf = vf.strstart + tf;
10046
+ if (vf.match_length = 0, vf.lookahead >= md && 0 < vf.strstart && (Pf = Gf[zf = vf.strstart - 1]) === Gf[++zf] && Pf === Gf[++zf] && Pf === Gf[++zf]) {
10047
+ Rf = vf.strstart + tf;
10047
10048
  do
10048
10049
  ;
10049
- while (If === Df[++zf] && If === Df[++zf] && If === Df[++zf] && If === Df[++zf] && If === Df[++zf] && If === Df[++zf] && If === Df[++zf] && If === Df[++zf] && zf < Mf);
10050
- vf.match_length = tf - (Mf - zf), vf.match_length > vf.lookahead && (vf.match_length = vf.lookahead);
10050
+ while (Pf === Gf[++zf] && Pf === Gf[++zf] && Pf === Gf[++zf] && Pf === Gf[++zf] && Pf === Gf[++zf] && Pf === Gf[++zf] && Pf === Gf[++zf] && Pf === Gf[++zf] && zf < Rf);
10051
+ vf.match_length = tf - (Rf - zf), vf.match_length > vf.lookahead && (vf.match_length = vf.lookahead);
10051
10052
  }
10052
- if (vf.match_length >= md ? (Gf = p._tr_tally(vf, 1, vf.match_length - md), vf.lookahead -= vf.match_length, vf.strstart += vf.match_length, vf.match_length = 0) : (Gf = p._tr_tally(vf, 0, vf.window[vf.strstart]), vf.lookahead--, vf.strstart++), Gf && (cf(vf, !1), vf.strm.avail_out === 0))
10053
+ if (vf.match_length >= md ? (Af = p._tr_tally(vf, 1, vf.match_length - md), vf.lookahead -= vf.match_length, vf.strstart += vf.match_length, vf.match_length = 0) : (Af = p._tr_tally(vf, 0, vf.window[vf.strstart]), vf.lookahead--, vf.strstart++), Af && (cf(vf, !1), vf.strm.avail_out === 0))
10053
10054
  return Ee;
10054
10055
  }
10055
- return vf.insert = 0, Of === N ? (cf(vf, !0), vf.strm.avail_out === 0 ? Zd : of) : vf.last_lit && (cf(vf, !1), vf.strm.avail_out === 0) ? Ee : sl;
10056
+ return vf.insert = 0, Vf === N ? (cf(vf, !0), vf.strm.avail_out === 0 ? Zd : of) : vf.last_lit && (cf(vf, !1), vf.strm.avail_out === 0) ? Ee : sl;
10056
10057
  }(hf, gf) : d[hf.level].func(hf, gf);
10057
- if (Rf !== Zd && Rf !== of || (hf.status = 666), Rf === Ee || Rf === Zd)
10058
+ if (Tf !== Zd && Tf !== of || (hf.status = 666), Tf === Ee || Tf === Zd)
10058
10059
  return Xd.avail_out === 0 && (hf.last_flush = -1), z;
10059
- if (Rf === sl && (gf === 1 ? p._tr_align(hf) : gf !== 5 && (p._tr_stored_block(hf, 0, 0, !1), gf === 3 && (af(hf.head), hf.lookahead === 0 && (hf.strstart = 0, hf.block_start = 0, hf.insert = 0))), rf(Xd), Xd.avail_out === 0))
10060
+ if (Tf === sl && (gf === 1 ? p._tr_align(hf) : gf !== 5 && (p._tr_stored_block(hf, 0, 0, !1), gf === 3 && (af(hf.head), hf.lookahead === 0 && (hf.strstart = 0, hf.block_start = 0, hf.insert = 0))), rf(Xd), Xd.avail_out === 0))
10060
10061
  return hf.last_flush = -1, z;
10061
10062
  }
10062
10063
  return gf !== N ? z : hf.wrap <= 0 ? 1 : (hf.wrap === 2 ? (pf(hf, 255 & Xd.adler), pf(hf, Xd.adler >> 8 & 255), pf(hf, Xd.adler >> 16 & 255), pf(hf, Xd.adler >> 24 & 255), pf(hf, 255 & Xd.total_in), pf(hf, Xd.total_in >> 8 & 255), pf(hf, Xd.total_in >> 16 & 255), pf(hf, Xd.total_in >> 24 & 255)) : (ff(hf, Xd.adler >>> 16), ff(hf, 65535 & Xd.adler)), rf(Xd), 0 < hf.wrap && (hf.wrap = -hf.wrap), hf.pending !== 0 ? z : 1);
@@ -10064,15 +10065,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10064
10065
  var gf;
10065
10066
  return Xd && Xd.state ? (gf = Xd.state.status) !== ef && gf !== 69 && gf !== 73 && gf !== 91 && gf !== 103 && gf !== yt && gf !== 666 ? uf(Xd, H) : (Xd.state = null, gf === yt ? uf(Xd, -3) : z) : H;
10066
10067
  }, c.deflateSetDictionary = function(Xd, gf) {
10067
- var yf, hf, df, bf, Ef, Rf, vf, Of, Gf = gf.length;
10068
- if (!Xd || !Xd.state || (bf = (yf = Xd.state).wrap) === 2 || bf === 1 && yf.status !== ef || yf.lookahead)
10068
+ var bf, hf, df, yf, Ef, Tf, vf, Vf, Af = gf.length;
10069
+ if (!Xd || !Xd.state || (yf = (bf = Xd.state).wrap) === 2 || yf === 1 && bf.status !== ef || bf.lookahead)
10069
10070
  return H;
10070
- for (bf === 1 && (Xd.adler = y(Xd.adler, gf, Gf, 0)), yf.wrap = 0, Gf >= yf.w_size && (bf === 0 && (af(yf.head), yf.strstart = 0, yf.block_start = 0, yf.insert = 0), Of = new h.Buf8(yf.w_size), h.arraySet(Of, gf, Gf - yf.w_size, yf.w_size, 0), gf = Of, Gf = yf.w_size), Ef = Xd.avail_in, Rf = Xd.next_in, vf = Xd.input, Xd.avail_in = Gf, Xd.next_in = 0, Xd.input = gf, Sf(yf); yf.lookahead >= md; ) {
10071
- for (hf = yf.strstart, df = yf.lookahead - (md - 1); yf.ins_h = (yf.ins_h << yf.hash_shift ^ yf.window[hf + md - 1]) & yf.hash_mask, yf.prev[hf & yf.w_mask] = yf.head[yf.ins_h], yf.head[yf.ins_h] = hf, hf++, --df; )
10071
+ for (yf === 1 && (Xd.adler = y(Xd.adler, gf, Af, 0)), bf.wrap = 0, Af >= bf.w_size && (yf === 0 && (af(bf.head), bf.strstart = 0, bf.block_start = 0, bf.insert = 0), Vf = new h.Buf8(bf.w_size), h.arraySet(Vf, gf, Af - bf.w_size, bf.w_size, 0), gf = Vf, Af = bf.w_size), Ef = Xd.avail_in, Tf = Xd.next_in, vf = Xd.input, Xd.avail_in = Af, Xd.next_in = 0, Xd.input = gf, Sf(bf); bf.lookahead >= md; ) {
10072
+ for (hf = bf.strstart, df = bf.lookahead - (md - 1); bf.ins_h = (bf.ins_h << bf.hash_shift ^ bf.window[hf + md - 1]) & bf.hash_mask, bf.prev[hf & bf.w_mask] = bf.head[bf.ins_h], bf.head[bf.ins_h] = hf, hf++, --df; )
10072
10073
  ;
10073
- yf.strstart = hf, yf.lookahead = md - 1, Sf(yf);
10074
+ bf.strstart = hf, bf.lookahead = md - 1, Sf(bf);
10074
10075
  }
10075
- return yf.strstart += yf.lookahead, yf.block_start = yf.strstart, yf.insert = yf.lookahead, yf.lookahead = 0, yf.match_length = yf.prev_length = md - 1, yf.match_available = 0, Xd.next_in = Rf, Xd.input = vf, Xd.avail_in = Ef, yf.wrap = bf, z;
10076
+ return bf.strstart += bf.lookahead, bf.block_start = bf.strstart, bf.insert = bf.lookahead, bf.lookahead = 0, bf.match_length = bf.prev_length = md - 1, bf.match_available = 0, Xd.next_in = Tf, Xd.input = vf, Xd.avail_in = Ef, bf.wrap = yf, z;
10076
10077
  }, c.deflateInfo = "pako deflate (from Nodeca project)";
10077
10078
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(o, s, c) {
10078
10079
  s.exports = function() {
@@ -10208,7 +10209,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10208
10209
  c.inflateReset = mt, c.inflateReset2 = pi, c.inflateResetKeep = lt, c.inflateInit = function(ef) {
10209
10210
  return Ai(ef, 15);
10210
10211
  }, c.inflateInit2 = Ai, c.inflate = function(ef, yt) {
10211
- var Ee, sl, Zd, of, uf, lf, af, rf, cf, pf, ff, mf, Sf, wf, Vf, Lf, Pf, Xf, Bf, Tf, Xd, gf, yf, hf, df = 0, bf = new d.Buf8(4), Ef = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
10212
+ var Ee, sl, Zd, of, uf, lf, af, rf, cf, pf, ff, mf, Sf, wf, If, Of, Mf, Xf, Bf, kf, Xd, gf, bf, hf, df = 0, yf = new d.Buf8(4), Ef = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
10212
10213
  if (!ef || !ef.state || !ef.output || !ef.input && ef.avail_in !== 0)
10213
10214
  return z;
10214
10215
  (Ee = ef.state).mode === 12 && (Ee.mode = 13), uf = ef.next_out, Zd = ef.output, af = ef.avail_out, of = ef.next_in, sl = ef.input, lf = ef.avail_in, rf = Ee.hold, cf = Ee.bits, pf = lf, ff = af, gf = N;
@@ -10226,7 +10227,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10226
10227
  lf--, rf += sl[of++] << cf, cf += 8;
10227
10228
  }
10228
10229
  if (2 & Ee.wrap && rf === 35615) {
10229
- bf[Ee.check = 0] = 255 & rf, bf[1] = rf >>> 8 & 255, Ee.check = p(Ee.check, bf, 2, 0), cf = rf = 0, Ee.mode = 2;
10230
+ yf[Ee.check = 0] = 255 & rf, yf[1] = rf >>> 8 & 255, Ee.check = p(Ee.check, yf, 2, 0), cf = rf = 0, Ee.mode = 2;
10230
10231
  break;
10231
10232
  }
10232
10233
  if (Ee.flags = 0, Ee.head && (Ee.head.done = !1), !(1 & Ee.wrap) || (((255 & rf) << 8) + (rf >> 8)) % 31) {
@@ -10259,21 +10260,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10259
10260
  ef.msg = "unknown header flags set", Ee.mode = 30;
10260
10261
  break;
10261
10262
  }
10262
- Ee.head && (Ee.head.text = rf >> 8 & 1), 512 & Ee.flags && (bf[0] = 255 & rf, bf[1] = rf >>> 8 & 255, Ee.check = p(Ee.check, bf, 2, 0)), cf = rf = 0, Ee.mode = 3;
10263
+ Ee.head && (Ee.head.text = rf >> 8 & 1), 512 & Ee.flags && (yf[0] = 255 & rf, yf[1] = rf >>> 8 & 255, Ee.check = p(Ee.check, yf, 2, 0)), cf = rf = 0, Ee.mode = 3;
10263
10264
  case 3:
10264
10265
  for (; cf < 32; ) {
10265
10266
  if (lf === 0)
10266
10267
  break e;
10267
10268
  lf--, rf += sl[of++] << cf, cf += 8;
10268
10269
  }
10269
- Ee.head && (Ee.head.time = rf), 512 & Ee.flags && (bf[0] = 255 & rf, bf[1] = rf >>> 8 & 255, bf[2] = rf >>> 16 & 255, bf[3] = rf >>> 24 & 255, Ee.check = p(Ee.check, bf, 4, 0)), cf = rf = 0, Ee.mode = 4;
10270
+ Ee.head && (Ee.head.time = rf), 512 & Ee.flags && (yf[0] = 255 & rf, yf[1] = rf >>> 8 & 255, yf[2] = rf >>> 16 & 255, yf[3] = rf >>> 24 & 255, Ee.check = p(Ee.check, yf, 4, 0)), cf = rf = 0, Ee.mode = 4;
10270
10271
  case 4:
10271
10272
  for (; cf < 16; ) {
10272
10273
  if (lf === 0)
10273
10274
  break e;
10274
10275
  lf--, rf += sl[of++] << cf, cf += 8;
10275
10276
  }
10276
- Ee.head && (Ee.head.xflags = 255 & rf, Ee.head.os = rf >> 8), 512 & Ee.flags && (bf[0] = 255 & rf, bf[1] = rf >>> 8 & 255, Ee.check = p(Ee.check, bf, 2, 0)), cf = rf = 0, Ee.mode = 5;
10277
+ Ee.head && (Ee.head.xflags = 255 & rf, Ee.head.os = rf >> 8), 512 & Ee.flags && (yf[0] = 255 & rf, yf[1] = rf >>> 8 & 255, Ee.check = p(Ee.check, yf, 2, 0)), cf = rf = 0, Ee.mode = 5;
10277
10278
  case 5:
10278
10279
  if (1024 & Ee.flags) {
10279
10280
  for (; cf < 16; ) {
@@ -10281,7 +10282,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10281
10282
  break e;
10282
10283
  lf--, rf += sl[of++] << cf, cf += 8;
10283
10284
  }
10284
- Ee.length = rf, Ee.head && (Ee.head.extra_len = rf), 512 & Ee.flags && (bf[0] = 255 & rf, bf[1] = rf >>> 8 & 255, Ee.check = p(Ee.check, bf, 2, 0)), cf = rf = 0;
10285
+ Ee.length = rf, Ee.head && (Ee.head.extra_len = rf), 512 & Ee.flags && (yf[0] = 255 & rf, yf[1] = rf >>> 8 & 255, Ee.check = p(Ee.check, yf, 2, 0)), cf = rf = 0;
10285
10286
  } else
10286
10287
  Ee.head && (Ee.head.extra = null);
10287
10288
  Ee.mode = 6;
@@ -10412,46 +10413,46 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10412
10413
  }
10413
10414
  for (; Ee.have < 19; )
10414
10415
  Ee.lens[Ef[Ee.have++]] = 0;
10415
- if (Ee.lencode = Ee.lendyn, Ee.lenbits = 7, yf = { bits: Ee.lenbits }, gf = E(0, Ee.lens, 0, 19, Ee.lencode, 0, Ee.work, yf), Ee.lenbits = yf.bits, gf) {
10416
+ if (Ee.lencode = Ee.lendyn, Ee.lenbits = 7, bf = { bits: Ee.lenbits }, gf = E(0, Ee.lens, 0, 19, Ee.lencode, 0, Ee.work, bf), Ee.lenbits = bf.bits, gf) {
10416
10417
  ef.msg = "invalid code lengths set", Ee.mode = 30;
10417
10418
  break;
10418
10419
  }
10419
10420
  Ee.have = 0, Ee.mode = 19;
10420
10421
  case 19:
10421
10422
  for (; Ee.have < Ee.nlen + Ee.ndist; ) {
10422
- for (; Lf = (df = Ee.lencode[rf & (1 << Ee.lenbits) - 1]) >>> 16 & 255, Pf = 65535 & df, !((Vf = df >>> 24) <= cf); ) {
10423
+ for (; Of = (df = Ee.lencode[rf & (1 << Ee.lenbits) - 1]) >>> 16 & 255, Mf = 65535 & df, !((If = df >>> 24) <= cf); ) {
10423
10424
  if (lf === 0)
10424
10425
  break e;
10425
10426
  lf--, rf += sl[of++] << cf, cf += 8;
10426
10427
  }
10427
- if (Pf < 16)
10428
- rf >>>= Vf, cf -= Vf, Ee.lens[Ee.have++] = Pf;
10428
+ if (Mf < 16)
10429
+ rf >>>= If, cf -= If, Ee.lens[Ee.have++] = Mf;
10429
10430
  else {
10430
- if (Pf === 16) {
10431
- for (hf = Vf + 2; cf < hf; ) {
10431
+ if (Mf === 16) {
10432
+ for (hf = If + 2; cf < hf; ) {
10432
10433
  if (lf === 0)
10433
10434
  break e;
10434
10435
  lf--, rf += sl[of++] << cf, cf += 8;
10435
10436
  }
10436
- if (rf >>>= Vf, cf -= Vf, Ee.have === 0) {
10437
+ if (rf >>>= If, cf -= If, Ee.have === 0) {
10437
10438
  ef.msg = "invalid bit length repeat", Ee.mode = 30;
10438
10439
  break;
10439
10440
  }
10440
10441
  Xd = Ee.lens[Ee.have - 1], mf = 3 + (3 & rf), rf >>>= 2, cf -= 2;
10441
- } else if (Pf === 17) {
10442
- for (hf = Vf + 3; cf < hf; ) {
10442
+ } else if (Mf === 17) {
10443
+ for (hf = If + 3; cf < hf; ) {
10443
10444
  if (lf === 0)
10444
10445
  break e;
10445
10446
  lf--, rf += sl[of++] << cf, cf += 8;
10446
10447
  }
10447
- cf -= Vf, Xd = 0, mf = 3 + (7 & (rf >>>= Vf)), rf >>>= 3, cf -= 3;
10448
+ cf -= If, Xd = 0, mf = 3 + (7 & (rf >>>= If)), rf >>>= 3, cf -= 3;
10448
10449
  } else {
10449
- for (hf = Vf + 7; cf < hf; ) {
10450
+ for (hf = If + 7; cf < hf; ) {
10450
10451
  if (lf === 0)
10451
10452
  break e;
10452
10453
  lf--, rf += sl[of++] << cf, cf += 8;
10453
10454
  }
10454
- cf -= Vf, Xd = 0, mf = 11 + (127 & (rf >>>= Vf)), rf >>>= 7, cf -= 7;
10455
+ cf -= If, Xd = 0, mf = 11 + (127 & (rf >>>= If)), rf >>>= 7, cf -= 7;
10455
10456
  }
10456
10457
  if (Ee.have + mf > Ee.nlen + Ee.ndist) {
10457
10458
  ef.msg = "invalid bit length repeat", Ee.mode = 30;
@@ -10467,11 +10468,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10467
10468
  ef.msg = "invalid code -- missing end-of-block", Ee.mode = 30;
10468
10469
  break;
10469
10470
  }
10470
- if (Ee.lenbits = 9, yf = { bits: Ee.lenbits }, gf = E(L, Ee.lens, 0, Ee.nlen, Ee.lencode, 0, Ee.work, yf), Ee.lenbits = yf.bits, gf) {
10471
+ if (Ee.lenbits = 9, bf = { bits: Ee.lenbits }, gf = E(L, Ee.lens, 0, Ee.nlen, Ee.lencode, 0, Ee.work, bf), Ee.lenbits = bf.bits, gf) {
10471
10472
  ef.msg = "invalid literal/lengths set", Ee.mode = 30;
10472
10473
  break;
10473
10474
  }
10474
- if (Ee.distbits = 6, Ee.distcode = Ee.distdyn, yf = { bits: Ee.distbits }, gf = E(F, Ee.lens, Ee.nlen, Ee.ndist, Ee.distcode, 0, Ee.work, yf), Ee.distbits = yf.bits, gf) {
10475
+ if (Ee.distbits = 6, Ee.distcode = Ee.distdyn, bf = { bits: Ee.distbits }, gf = E(F, Ee.lens, Ee.nlen, Ee.ndist, Ee.distcode, 0, Ee.work, bf), Ee.distbits = bf.bits, gf) {
10475
10476
  ef.msg = "invalid distances set", Ee.mode = 30;
10476
10477
  break;
10477
10478
  }
@@ -10484,32 +10485,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10484
10485
  ef.next_out = uf, ef.avail_out = af, ef.next_in = of, ef.avail_in = lf, Ee.hold = rf, Ee.bits = cf, y(ef, ff), uf = ef.next_out, Zd = ef.output, af = ef.avail_out, of = ef.next_in, sl = ef.input, lf = ef.avail_in, rf = Ee.hold, cf = Ee.bits, Ee.mode === 12 && (Ee.back = -1);
10485
10486
  break;
10486
10487
  }
10487
- for (Ee.back = 0; Lf = (df = Ee.lencode[rf & (1 << Ee.lenbits) - 1]) >>> 16 & 255, Pf = 65535 & df, !((Vf = df >>> 24) <= cf); ) {
10488
+ for (Ee.back = 0; Of = (df = Ee.lencode[rf & (1 << Ee.lenbits) - 1]) >>> 16 & 255, Mf = 65535 & df, !((If = df >>> 24) <= cf); ) {
10488
10489
  if (lf === 0)
10489
10490
  break e;
10490
10491
  lf--, rf += sl[of++] << cf, cf += 8;
10491
10492
  }
10492
- if (Lf && !(240 & Lf)) {
10493
- for (Xf = Vf, Bf = Lf, Tf = Pf; Lf = (df = Ee.lencode[Tf + ((rf & (1 << Xf + Bf) - 1) >> Xf)]) >>> 16 & 255, Pf = 65535 & df, !(Xf + (Vf = df >>> 24) <= cf); ) {
10493
+ if (Of && !(240 & Of)) {
10494
+ for (Xf = If, Bf = Of, kf = Mf; Of = (df = Ee.lencode[kf + ((rf & (1 << Xf + Bf) - 1) >> Xf)]) >>> 16 & 255, Mf = 65535 & df, !(Xf + (If = df >>> 24) <= cf); ) {
10494
10495
  if (lf === 0)
10495
10496
  break e;
10496
10497
  lf--, rf += sl[of++] << cf, cf += 8;
10497
10498
  }
10498
10499
  rf >>>= Xf, cf -= Xf, Ee.back += Xf;
10499
10500
  }
10500
- if (rf >>>= Vf, cf -= Vf, Ee.back += Vf, Ee.length = Pf, Lf === 0) {
10501
+ if (rf >>>= If, cf -= If, Ee.back += If, Ee.length = Mf, Of === 0) {
10501
10502
  Ee.mode = 26;
10502
10503
  break;
10503
10504
  }
10504
- if (32 & Lf) {
10505
+ if (32 & Of) {
10505
10506
  Ee.back = -1, Ee.mode = 12;
10506
10507
  break;
10507
10508
  }
10508
- if (64 & Lf) {
10509
+ if (64 & Of) {
10509
10510
  ef.msg = "invalid literal/length code", Ee.mode = 30;
10510
10511
  break;
10511
10512
  }
10512
- Ee.extra = 15 & Lf, Ee.mode = 22;
10513
+ Ee.extra = 15 & Of, Ee.mode = 22;
10513
10514
  case 22:
10514
10515
  if (Ee.extra) {
10515
10516
  for (hf = Ee.extra; cf < hf; ) {
@@ -10521,24 +10522,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10521
10522
  }
10522
10523
  Ee.was = Ee.length, Ee.mode = 23;
10523
10524
  case 23:
10524
- for (; Lf = (df = Ee.distcode[rf & (1 << Ee.distbits) - 1]) >>> 16 & 255, Pf = 65535 & df, !((Vf = df >>> 24) <= cf); ) {
10525
+ for (; Of = (df = Ee.distcode[rf & (1 << Ee.distbits) - 1]) >>> 16 & 255, Mf = 65535 & df, !((If = df >>> 24) <= cf); ) {
10525
10526
  if (lf === 0)
10526
10527
  break e;
10527
10528
  lf--, rf += sl[of++] << cf, cf += 8;
10528
10529
  }
10529
- if (!(240 & Lf)) {
10530
- for (Xf = Vf, Bf = Lf, Tf = Pf; Lf = (df = Ee.distcode[Tf + ((rf & (1 << Xf + Bf) - 1) >> Xf)]) >>> 16 & 255, Pf = 65535 & df, !(Xf + (Vf = df >>> 24) <= cf); ) {
10530
+ if (!(240 & Of)) {
10531
+ for (Xf = If, Bf = Of, kf = Mf; Of = (df = Ee.distcode[kf + ((rf & (1 << Xf + Bf) - 1) >> Xf)]) >>> 16 & 255, Mf = 65535 & df, !(Xf + (If = df >>> 24) <= cf); ) {
10531
10532
  if (lf === 0)
10532
10533
  break e;
10533
10534
  lf--, rf += sl[of++] << cf, cf += 8;
10534
10535
  }
10535
10536
  rf >>>= Xf, cf -= Xf, Ee.back += Xf;
10536
10537
  }
10537
- if (rf >>>= Vf, cf -= Vf, Ee.back += Vf, 64 & Lf) {
10538
+ if (rf >>>= If, cf -= If, Ee.back += If, 64 & Of) {
10538
10539
  ef.msg = "invalid distance code", Ee.mode = 30;
10539
10540
  break;
10540
10541
  }
10541
- Ee.offset = Pf, Ee.extra = 15 & Lf, Ee.mode = 24;
10542
+ Ee.offset = Mf, Ee.extra = 15 & Of, Ee.mode = 24;
10542
10543
  case 24:
10543
10544
  if (Ee.extra) {
10544
10545
  for (hf = Ee.extra; cf < hf; ) {
@@ -10676,8 +10677,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10676
10677
  }, {}], 52: [function(o, s, c) {
10677
10678
  var d = o("../utils/common"), h = 0, p = 1;
10678
10679
  function y(df) {
10679
- for (var bf = df.length; 0 <= --bf; )
10680
- df[bf] = 0;
10680
+ for (var yf = df.length; 0 <= --yf; )
10681
+ df[yf] = 0;
10681
10682
  }
10682
10683
  var E = 0, L = 29, F = 256, N = F + 1 + L, z = 30, H = 19, W = 2 * N + 1, oe = 15, nt = 16, J = 7, lt = 256, mt = 16, pi = 17, Ai = 18, Vd = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], Gd = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], md = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], tf = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], nf = new Array(2 * (N + 2));
10683
10684
  y(nf);
@@ -10690,174 +10691,174 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10690
10691
  var sl = new Array(L);
10691
10692
  y(sl);
10692
10693
  var Zd, of, uf, lf = new Array(z);
10693
- function af(df, bf, Ef, Rf, vf) {
10694
- this.static_tree = df, this.extra_bits = bf, this.extra_base = Ef, this.elems = Rf, this.max_length = vf, this.has_stree = df && df.length;
10694
+ function af(df, yf, Ef, Tf, vf) {
10695
+ this.static_tree = df, this.extra_bits = yf, this.extra_base = Ef, this.elems = Tf, this.max_length = vf, this.has_stree = df && df.length;
10695
10696
  }
10696
- function rf(df, bf) {
10697
- this.dyn_tree = df, this.max_code = 0, this.stat_desc = bf;
10697
+ function rf(df, yf) {
10698
+ this.dyn_tree = df, this.max_code = 0, this.stat_desc = yf;
10698
10699
  }
10699
10700
  function cf(df) {
10700
10701
  return df < 256 ? yt[df] : yt[256 + (df >>> 7)];
10701
10702
  }
10702
- function pf(df, bf) {
10703
- df.pending_buf[df.pending++] = 255 & bf, df.pending_buf[df.pending++] = bf >>> 8 & 255;
10703
+ function pf(df, yf) {
10704
+ df.pending_buf[df.pending++] = 255 & yf, df.pending_buf[df.pending++] = yf >>> 8 & 255;
10704
10705
  }
10705
- function ff(df, bf, Ef) {
10706
- df.bi_valid > nt - Ef ? (df.bi_buf |= bf << df.bi_valid & 65535, pf(df, df.bi_buf), df.bi_buf = bf >> nt - df.bi_valid, df.bi_valid += Ef - nt) : (df.bi_buf |= bf << df.bi_valid & 65535, df.bi_valid += Ef);
10706
+ function ff(df, yf, Ef) {
10707
+ df.bi_valid > nt - Ef ? (df.bi_buf |= yf << df.bi_valid & 65535, pf(df, df.bi_buf), df.bi_buf = yf >> nt - df.bi_valid, df.bi_valid += Ef - nt) : (df.bi_buf |= yf << df.bi_valid & 65535, df.bi_valid += Ef);
10707
10708
  }
10708
- function mf(df, bf, Ef) {
10709
- ff(df, Ef[2 * bf], Ef[2 * bf + 1]);
10709
+ function mf(df, yf, Ef) {
10710
+ ff(df, Ef[2 * yf], Ef[2 * yf + 1]);
10710
10711
  }
10711
- function Sf(df, bf) {
10712
- for (var Ef = 0; Ef |= 1 & df, df >>>= 1, Ef <<= 1, 0 < --bf; )
10712
+ function Sf(df, yf) {
10713
+ for (var Ef = 0; Ef |= 1 & df, df >>>= 1, Ef <<= 1, 0 < --yf; )
10713
10714
  ;
10714
10715
  return Ef >>> 1;
10715
10716
  }
10716
- function wf(df, bf, Ef) {
10717
- var Rf, vf, Of = new Array(oe + 1), Gf = 0;
10718
- for (Rf = 1; Rf <= oe; Rf++)
10719
- Of[Rf] = Gf = Gf + Ef[Rf - 1] << 1;
10720
- for (vf = 0; vf <= bf; vf++) {
10721
- var If = df[2 * vf + 1];
10722
- If !== 0 && (df[2 * vf] = Sf(Of[If]++, If));
10717
+ function wf(df, yf, Ef) {
10718
+ var Tf, vf, Vf = new Array(oe + 1), Af = 0;
10719
+ for (Tf = 1; Tf <= oe; Tf++)
10720
+ Vf[Tf] = Af = Af + Ef[Tf - 1] << 1;
10721
+ for (vf = 0; vf <= yf; vf++) {
10722
+ var Pf = df[2 * vf + 1];
10723
+ Pf !== 0 && (df[2 * vf] = Sf(Vf[Pf]++, Pf));
10723
10724
  }
10724
10725
  }
10725
- function Vf(df) {
10726
- var bf;
10727
- for (bf = 0; bf < N; bf++)
10728
- df.dyn_ltree[2 * bf] = 0;
10729
- for (bf = 0; bf < z; bf++)
10730
- df.dyn_dtree[2 * bf] = 0;
10731
- for (bf = 0; bf < H; bf++)
10732
- df.bl_tree[2 * bf] = 0;
10726
+ function If(df) {
10727
+ var yf;
10728
+ for (yf = 0; yf < N; yf++)
10729
+ df.dyn_ltree[2 * yf] = 0;
10730
+ for (yf = 0; yf < z; yf++)
10731
+ df.dyn_dtree[2 * yf] = 0;
10732
+ for (yf = 0; yf < H; yf++)
10733
+ df.bl_tree[2 * yf] = 0;
10733
10734
  df.dyn_ltree[2 * lt] = 1, df.opt_len = df.static_len = 0, df.last_lit = df.matches = 0;
10734
10735
  }
10735
- function Lf(df) {
10736
+ function Of(df) {
10736
10737
  8 < df.bi_valid ? pf(df, df.bi_buf) : 0 < df.bi_valid && (df.pending_buf[df.pending++] = df.bi_buf), df.bi_buf = 0, df.bi_valid = 0;
10737
10738
  }
10738
- function Pf(df, bf, Ef, Rf) {
10739
- var vf = 2 * bf, Of = 2 * Ef;
10740
- return df[vf] < df[Of] || df[vf] === df[Of] && Rf[bf] <= Rf[Ef];
10739
+ function Mf(df, yf, Ef, Tf) {
10740
+ var vf = 2 * yf, Vf = 2 * Ef;
10741
+ return df[vf] < df[Vf] || df[vf] === df[Vf] && Tf[yf] <= Tf[Ef];
10741
10742
  }
10742
- function Xf(df, bf, Ef) {
10743
- for (var Rf = df.heap[Ef], vf = Ef << 1; vf <= df.heap_len && (vf < df.heap_len && Pf(bf, df.heap[vf + 1], df.heap[vf], df.depth) && vf++, !Pf(bf, Rf, df.heap[vf], df.depth)); )
10743
+ function Xf(df, yf, Ef) {
10744
+ for (var Tf = df.heap[Ef], vf = Ef << 1; vf <= df.heap_len && (vf < df.heap_len && Mf(yf, df.heap[vf + 1], df.heap[vf], df.depth) && vf++, !Mf(yf, Tf, df.heap[vf], df.depth)); )
10744
10745
  df.heap[Ef] = df.heap[vf], Ef = vf, vf <<= 1;
10745
- df.heap[Ef] = Rf;
10746
+ df.heap[Ef] = Tf;
10746
10747
  }
10747
- function Bf(df, bf, Ef) {
10748
- var Rf, vf, Of, Gf, If = 0;
10748
+ function Bf(df, yf, Ef) {
10749
+ var Tf, vf, Vf, Af, Pf = 0;
10749
10750
  if (df.last_lit !== 0)
10750
- for (; Rf = df.pending_buf[df.d_buf + 2 * If] << 8 | df.pending_buf[df.d_buf + 2 * If + 1], vf = df.pending_buf[df.l_buf + If], If++, Rf === 0 ? mf(df, vf, bf) : (mf(df, (Of = Ee[vf]) + F + 1, bf), (Gf = Vd[Of]) !== 0 && ff(df, vf -= sl[Of], Gf), mf(df, Of = cf(--Rf), Ef), (Gf = Gd[Of]) !== 0 && ff(df, Rf -= lf[Of], Gf)), If < df.last_lit; )
10751
+ for (; Tf = df.pending_buf[df.d_buf + 2 * Pf] << 8 | df.pending_buf[df.d_buf + 2 * Pf + 1], vf = df.pending_buf[df.l_buf + Pf], Pf++, Tf === 0 ? mf(df, vf, yf) : (mf(df, (Vf = Ee[vf]) + F + 1, yf), (Af = Vd[Vf]) !== 0 && ff(df, vf -= sl[Vf], Af), mf(df, Vf = cf(--Tf), Ef), (Af = Gd[Vf]) !== 0 && ff(df, Tf -= lf[Vf], Af)), Pf < df.last_lit; )
10751
10752
  ;
10752
- mf(df, lt, bf);
10753
+ mf(df, lt, yf);
10753
10754
  }
10754
- function Tf(df, bf) {
10755
- var Ef, Rf, vf, Of = bf.dyn_tree, Gf = bf.stat_desc.static_tree, If = bf.stat_desc.has_stree, zf = bf.stat_desc.elems, Mf = -1;
10755
+ function kf(df, yf) {
10756
+ var Ef, Tf, vf, Vf = yf.dyn_tree, Af = yf.stat_desc.static_tree, Pf = yf.stat_desc.has_stree, zf = yf.stat_desc.elems, Rf = -1;
10756
10757
  for (df.heap_len = 0, df.heap_max = W, Ef = 0; Ef < zf; Ef++)
10757
- Of[2 * Ef] !== 0 ? (df.heap[++df.heap_len] = Mf = Ef, df.depth[Ef] = 0) : Of[2 * Ef + 1] = 0;
10758
+ Vf[2 * Ef] !== 0 ? (df.heap[++df.heap_len] = Rf = Ef, df.depth[Ef] = 0) : Vf[2 * Ef + 1] = 0;
10758
10759
  for (; df.heap_len < 2; )
10759
- Of[2 * (vf = df.heap[++df.heap_len] = Mf < 2 ? ++Mf : 0)] = 1, df.depth[vf] = 0, df.opt_len--, If && (df.static_len -= Gf[2 * vf + 1]);
10760
- for (bf.max_code = Mf, Ef = df.heap_len >> 1; 1 <= Ef; Ef--)
10761
- Xf(df, Of, Ef);
10762
- for (vf = zf; Ef = df.heap[1], df.heap[1] = df.heap[df.heap_len--], Xf(df, Of, 1), Rf = df.heap[1], df.heap[--df.heap_max] = Ef, df.heap[--df.heap_max] = Rf, Of[2 * vf] = Of[2 * Ef] + Of[2 * Rf], df.depth[vf] = (df.depth[Ef] >= df.depth[Rf] ? df.depth[Ef] : df.depth[Rf]) + 1, Of[2 * Ef + 1] = Of[2 * Rf + 1] = vf, df.heap[1] = vf++, Xf(df, Of, 1), 2 <= df.heap_len; )
10760
+ Vf[2 * (vf = df.heap[++df.heap_len] = Rf < 2 ? ++Rf : 0)] = 1, df.depth[vf] = 0, df.opt_len--, Pf && (df.static_len -= Af[2 * vf + 1]);
10761
+ for (yf.max_code = Rf, Ef = df.heap_len >> 1; 1 <= Ef; Ef--)
10762
+ Xf(df, Vf, Ef);
10763
+ for (vf = zf; Ef = df.heap[1], df.heap[1] = df.heap[df.heap_len--], Xf(df, Vf, 1), Tf = df.heap[1], df.heap[--df.heap_max] = Ef, df.heap[--df.heap_max] = Tf, Vf[2 * vf] = Vf[2 * Ef] + Vf[2 * Tf], df.depth[vf] = (df.depth[Ef] >= df.depth[Tf] ? df.depth[Ef] : df.depth[Tf]) + 1, Vf[2 * Ef + 1] = Vf[2 * Tf + 1] = vf, df.heap[1] = vf++, Xf(df, Vf, 1), 2 <= df.heap_len; )
10763
10764
  ;
10764
- df.heap[--df.heap_max] = df.heap[1], function(Df, np) {
10765
- var Qf, qf, kf, Zf, rp, lp, dp = np.dyn_tree, hp = np.max_code, mp = np.stat_desc.static_tree, cp = np.stat_desc.has_stree, Nf = np.stat_desc.extra_bits, Af = np.stat_desc.extra_base, Yf = np.stat_desc.max_length, Kf = 0;
10765
+ df.heap[--df.heap_max] = df.heap[1], function(Gf, np) {
10766
+ var tp, Qf, Df, Zf, rp, lp, dp = np.dyn_tree, hp = np.max_code, mp = np.stat_desc.static_tree, cp = np.stat_desc.has_stree, Nf = np.stat_desc.extra_bits, Ff = np.stat_desc.extra_base, Yf = np.stat_desc.max_length, Kf = 0;
10766
10767
  for (Zf = 0; Zf <= oe; Zf++)
10767
- Df.bl_count[Zf] = 0;
10768
- for (dp[2 * Df.heap[Df.heap_max] + 1] = 0, Qf = Df.heap_max + 1; Qf < W; Qf++)
10769
- Yf < (Zf = dp[2 * dp[2 * (qf = Df.heap[Qf]) + 1] + 1] + 1) && (Zf = Yf, Kf++), dp[2 * qf + 1] = Zf, hp < qf || (Df.bl_count[Zf]++, rp = 0, Af <= qf && (rp = Nf[qf - Af]), lp = dp[2 * qf], Df.opt_len += lp * (Zf + rp), cp && (Df.static_len += lp * (mp[2 * qf + 1] + rp)));
10768
+ Gf.bl_count[Zf] = 0;
10769
+ for (dp[2 * Gf.heap[Gf.heap_max] + 1] = 0, tp = Gf.heap_max + 1; tp < W; tp++)
10770
+ Yf < (Zf = dp[2 * dp[2 * (Qf = Gf.heap[tp]) + 1] + 1] + 1) && (Zf = Yf, Kf++), dp[2 * Qf + 1] = Zf, hp < Qf || (Gf.bl_count[Zf]++, rp = 0, Ff <= Qf && (rp = Nf[Qf - Ff]), lp = dp[2 * Qf], Gf.opt_len += lp * (Zf + rp), cp && (Gf.static_len += lp * (mp[2 * Qf + 1] + rp)));
10770
10771
  if (Kf !== 0) {
10771
10772
  do {
10772
- for (Zf = Yf - 1; Df.bl_count[Zf] === 0; )
10773
+ for (Zf = Yf - 1; Gf.bl_count[Zf] === 0; )
10773
10774
  Zf--;
10774
- Df.bl_count[Zf]--, Df.bl_count[Zf + 1] += 2, Df.bl_count[Yf]--, Kf -= 2;
10775
+ Gf.bl_count[Zf]--, Gf.bl_count[Zf + 1] += 2, Gf.bl_count[Yf]--, Kf -= 2;
10775
10776
  } while (0 < Kf);
10776
10777
  for (Zf = Yf; Zf !== 0; Zf--)
10777
- for (qf = Df.bl_count[Zf]; qf !== 0; )
10778
- hp < (kf = Df.heap[--Qf]) || (dp[2 * kf + 1] !== Zf && (Df.opt_len += (Zf - dp[2 * kf + 1]) * dp[2 * kf], dp[2 * kf + 1] = Zf), qf--);
10778
+ for (Qf = Gf.bl_count[Zf]; Qf !== 0; )
10779
+ hp < (Df = Gf.heap[--tp]) || (dp[2 * Df + 1] !== Zf && (Gf.opt_len += (Zf - dp[2 * Df + 1]) * dp[2 * Df], dp[2 * Df + 1] = Zf), Qf--);
10779
10780
  }
10780
- }(df, bf), wf(Of, Mf, df.bl_count);
10781
- }
10782
- function Xd(df, bf, Ef) {
10783
- var Rf, vf, Of = -1, Gf = bf[1], If = 0, zf = 7, Mf = 4;
10784
- for (Gf === 0 && (zf = 138, Mf = 3), bf[2 * (Ef + 1) + 1] = 65535, Rf = 0; Rf <= Ef; Rf++)
10785
- vf = Gf, Gf = bf[2 * (Rf + 1) + 1], ++If < zf && vf === Gf || (If < Mf ? df.bl_tree[2 * vf] += If : vf !== 0 ? (vf !== Of && df.bl_tree[2 * vf]++, df.bl_tree[2 * mt]++) : If <= 10 ? df.bl_tree[2 * pi]++ : df.bl_tree[2 * Ai]++, Of = vf, Mf = (If = 0) === Gf ? (zf = 138, 3) : vf === Gf ? (zf = 6, 3) : (zf = 7, 4));
10786
- }
10787
- function gf(df, bf, Ef) {
10788
- var Rf, vf, Of = -1, Gf = bf[1], If = 0, zf = 7, Mf = 4;
10789
- for (Gf === 0 && (zf = 138, Mf = 3), Rf = 0; Rf <= Ef; Rf++)
10790
- if (vf = Gf, Gf = bf[2 * (Rf + 1) + 1], !(++If < zf && vf === Gf)) {
10791
- if (If < Mf)
10792
- for (; mf(df, vf, df.bl_tree), --If != 0; )
10781
+ }(df, yf), wf(Vf, Rf, df.bl_count);
10782
+ }
10783
+ function Xd(df, yf, Ef) {
10784
+ var Tf, vf, Vf = -1, Af = yf[1], Pf = 0, zf = 7, Rf = 4;
10785
+ for (Af === 0 && (zf = 138, Rf = 3), yf[2 * (Ef + 1) + 1] = 65535, Tf = 0; Tf <= Ef; Tf++)
10786
+ vf = Af, Af = yf[2 * (Tf + 1) + 1], ++Pf < zf && vf === Af || (Pf < Rf ? df.bl_tree[2 * vf] += Pf : vf !== 0 ? (vf !== Vf && df.bl_tree[2 * vf]++, df.bl_tree[2 * mt]++) : Pf <= 10 ? df.bl_tree[2 * pi]++ : df.bl_tree[2 * Ai]++, Vf = vf, Rf = (Pf = 0) === Af ? (zf = 138, 3) : vf === Af ? (zf = 6, 3) : (zf = 7, 4));
10787
+ }
10788
+ function gf(df, yf, Ef) {
10789
+ var Tf, vf, Vf = -1, Af = yf[1], Pf = 0, zf = 7, Rf = 4;
10790
+ for (Af === 0 && (zf = 138, Rf = 3), Tf = 0; Tf <= Ef; Tf++)
10791
+ if (vf = Af, Af = yf[2 * (Tf + 1) + 1], !(++Pf < zf && vf === Af)) {
10792
+ if (Pf < Rf)
10793
+ for (; mf(df, vf, df.bl_tree), --Pf != 0; )
10793
10794
  ;
10794
10795
  else
10795
- vf !== 0 ? (vf !== Of && (mf(df, vf, df.bl_tree), If--), mf(df, mt, df.bl_tree), ff(df, If - 3, 2)) : If <= 10 ? (mf(df, pi, df.bl_tree), ff(df, If - 3, 3)) : (mf(df, Ai, df.bl_tree), ff(df, If - 11, 7));
10796
- Of = vf, Mf = (If = 0) === Gf ? (zf = 138, 3) : vf === Gf ? (zf = 6, 3) : (zf = 7, 4);
10796
+ vf !== 0 ? (vf !== Vf && (mf(df, vf, df.bl_tree), Pf--), mf(df, mt, df.bl_tree), ff(df, Pf - 3, 2)) : Pf <= 10 ? (mf(df, pi, df.bl_tree), ff(df, Pf - 3, 3)) : (mf(df, Ai, df.bl_tree), ff(df, Pf - 11, 7));
10797
+ Vf = vf, Rf = (Pf = 0) === Af ? (zf = 138, 3) : vf === Af ? (zf = 6, 3) : (zf = 7, 4);
10797
10798
  }
10798
10799
  }
10799
10800
  y(lf);
10800
- var yf = !1;
10801
- function hf(df, bf, Ef, Rf) {
10802
- ff(df, (E << 1) + (Rf ? 1 : 0), 3), function(vf, Of, Gf, If) {
10803
- Lf(vf), If && (pf(vf, Gf), pf(vf, ~Gf)), d.arraySet(vf.pending_buf, vf.window, Of, Gf, vf.pending), vf.pending += Gf;
10804
- }(df, bf, Ef, !0);
10801
+ var bf = !1;
10802
+ function hf(df, yf, Ef, Tf) {
10803
+ ff(df, (E << 1) + (Tf ? 1 : 0), 3), function(vf, Vf, Af, Pf) {
10804
+ Of(vf), Pf && (pf(vf, Af), pf(vf, ~Af)), d.arraySet(vf.pending_buf, vf.window, Vf, Af, vf.pending), vf.pending += Af;
10805
+ }(df, yf, Ef, !0);
10805
10806
  }
10806
10807
  c._tr_init = function(df) {
10807
- yf || (function() {
10808
- var bf, Ef, Rf, vf, Of, Gf = new Array(oe + 1);
10809
- for (vf = Rf = 0; vf < L - 1; vf++)
10810
- for (sl[vf] = Rf, bf = 0; bf < 1 << Vd[vf]; bf++)
10811
- Ee[Rf++] = vf;
10812
- for (Ee[Rf - 1] = vf, vf = Of = 0; vf < 16; vf++)
10813
- for (lf[vf] = Of, bf = 0; bf < 1 << Gd[vf]; bf++)
10814
- yt[Of++] = vf;
10815
- for (Of >>= 7; vf < z; vf++)
10816
- for (lf[vf] = Of << 7, bf = 0; bf < 1 << Gd[vf] - 7; bf++)
10817
- yt[256 + Of++] = vf;
10808
+ bf || (function() {
10809
+ var yf, Ef, Tf, vf, Vf, Af = new Array(oe + 1);
10810
+ for (vf = Tf = 0; vf < L - 1; vf++)
10811
+ for (sl[vf] = Tf, yf = 0; yf < 1 << Vd[vf]; yf++)
10812
+ Ee[Tf++] = vf;
10813
+ for (Ee[Tf - 1] = vf, vf = Vf = 0; vf < 16; vf++)
10814
+ for (lf[vf] = Vf, yf = 0; yf < 1 << Gd[vf]; yf++)
10815
+ yt[Vf++] = vf;
10816
+ for (Vf >>= 7; vf < z; vf++)
10817
+ for (lf[vf] = Vf << 7, yf = 0; yf < 1 << Gd[vf] - 7; yf++)
10818
+ yt[256 + Vf++] = vf;
10818
10819
  for (Ef = 0; Ef <= oe; Ef++)
10819
- Gf[Ef] = 0;
10820
- for (bf = 0; bf <= 143; )
10821
- nf[2 * bf + 1] = 8, bf++, Gf[8]++;
10822
- for (; bf <= 255; )
10823
- nf[2 * bf + 1] = 9, bf++, Gf[9]++;
10824
- for (; bf <= 279; )
10825
- nf[2 * bf + 1] = 7, bf++, Gf[7]++;
10826
- for (; bf <= 287; )
10827
- nf[2 * bf + 1] = 8, bf++, Gf[8]++;
10828
- for (wf(nf, N + 1, Gf), bf = 0; bf < z; bf++)
10829
- ef[2 * bf + 1] = 5, ef[2 * bf] = Sf(bf, 5);
10820
+ Af[Ef] = 0;
10821
+ for (yf = 0; yf <= 143; )
10822
+ nf[2 * yf + 1] = 8, yf++, Af[8]++;
10823
+ for (; yf <= 255; )
10824
+ nf[2 * yf + 1] = 9, yf++, Af[9]++;
10825
+ for (; yf <= 279; )
10826
+ nf[2 * yf + 1] = 7, yf++, Af[7]++;
10827
+ for (; yf <= 287; )
10828
+ nf[2 * yf + 1] = 8, yf++, Af[8]++;
10829
+ for (wf(nf, N + 1, Af), yf = 0; yf < z; yf++)
10830
+ ef[2 * yf + 1] = 5, ef[2 * yf] = Sf(yf, 5);
10830
10831
  Zd = new af(nf, Vd, F + 1, N, oe), of = new af(ef, Gd, 0, z, oe), uf = new af(new Array(0), md, 0, H, J);
10831
- }(), yf = !0), df.l_desc = new rf(df.dyn_ltree, Zd), df.d_desc = new rf(df.dyn_dtree, of), df.bl_desc = new rf(df.bl_tree, uf), df.bi_buf = 0, df.bi_valid = 0, Vf(df);
10832
- }, c._tr_stored_block = hf, c._tr_flush_block = function(df, bf, Ef, Rf) {
10833
- var vf, Of, Gf = 0;
10834
- 0 < df.level ? (df.strm.data_type === 2 && (df.strm.data_type = function(If) {
10835
- var zf, Mf = 4093624447;
10836
- for (zf = 0; zf <= 31; zf++, Mf >>>= 1)
10837
- if (1 & Mf && If.dyn_ltree[2 * zf] !== 0)
10832
+ }(), bf = !0), df.l_desc = new rf(df.dyn_ltree, Zd), df.d_desc = new rf(df.dyn_dtree, of), df.bl_desc = new rf(df.bl_tree, uf), df.bi_buf = 0, df.bi_valid = 0, If(df);
10833
+ }, c._tr_stored_block = hf, c._tr_flush_block = function(df, yf, Ef, Tf) {
10834
+ var vf, Vf, Af = 0;
10835
+ 0 < df.level ? (df.strm.data_type === 2 && (df.strm.data_type = function(Pf) {
10836
+ var zf, Rf = 4093624447;
10837
+ for (zf = 0; zf <= 31; zf++, Rf >>>= 1)
10838
+ if (1 & Rf && Pf.dyn_ltree[2 * zf] !== 0)
10838
10839
  return h;
10839
- if (If.dyn_ltree[18] !== 0 || If.dyn_ltree[20] !== 0 || If.dyn_ltree[26] !== 0)
10840
+ if (Pf.dyn_ltree[18] !== 0 || Pf.dyn_ltree[20] !== 0 || Pf.dyn_ltree[26] !== 0)
10840
10841
  return p;
10841
10842
  for (zf = 32; zf < F; zf++)
10842
- if (If.dyn_ltree[2 * zf] !== 0)
10843
+ if (Pf.dyn_ltree[2 * zf] !== 0)
10843
10844
  return p;
10844
10845
  return h;
10845
- }(df)), Tf(df, df.l_desc), Tf(df, df.d_desc), Gf = function(If) {
10846
+ }(df)), kf(df, df.l_desc), kf(df, df.d_desc), Af = function(Pf) {
10846
10847
  var zf;
10847
- for (Xd(If, If.dyn_ltree, If.l_desc.max_code), Xd(If, If.dyn_dtree, If.d_desc.max_code), Tf(If, If.bl_desc), zf = H - 1; 3 <= zf && If.bl_tree[2 * tf[zf] + 1] === 0; zf--)
10848
+ for (Xd(Pf, Pf.dyn_ltree, Pf.l_desc.max_code), Xd(Pf, Pf.dyn_dtree, Pf.d_desc.max_code), kf(Pf, Pf.bl_desc), zf = H - 1; 3 <= zf && Pf.bl_tree[2 * tf[zf] + 1] === 0; zf--)
10848
10849
  ;
10849
- return If.opt_len += 3 * (zf + 1) + 5 + 5 + 4, zf;
10850
- }(df), vf = df.opt_len + 3 + 7 >>> 3, (Of = df.static_len + 3 + 7 >>> 3) <= vf && (vf = Of)) : vf = Of = Ef + 5, Ef + 4 <= vf && bf !== -1 ? hf(df, bf, Ef, Rf) : df.strategy === 4 || Of === vf ? (ff(df, 2 + (Rf ? 1 : 0), 3), Bf(df, nf, ef)) : (ff(df, 4 + (Rf ? 1 : 0), 3), function(If, zf, Mf, Df) {
10850
+ return Pf.opt_len += 3 * (zf + 1) + 5 + 5 + 4, zf;
10851
+ }(df), vf = df.opt_len + 3 + 7 >>> 3, (Vf = df.static_len + 3 + 7 >>> 3) <= vf && (vf = Vf)) : vf = Vf = Ef + 5, Ef + 4 <= vf && yf !== -1 ? hf(df, yf, Ef, Tf) : df.strategy === 4 || Vf === vf ? (ff(df, 2 + (Tf ? 1 : 0), 3), Bf(df, nf, ef)) : (ff(df, 4 + (Tf ? 1 : 0), 3), function(Pf, zf, Rf, Gf) {
10851
10852
  var np;
10852
- for (ff(If, zf - 257, 5), ff(If, Mf - 1, 5), ff(If, Df - 4, 4), np = 0; np < Df; np++)
10853
- ff(If, If.bl_tree[2 * tf[np] + 1], 3);
10854
- gf(If, If.dyn_ltree, zf - 1), gf(If, If.dyn_dtree, Mf - 1);
10855
- }(df, df.l_desc.max_code + 1, df.d_desc.max_code + 1, Gf + 1), Bf(df, df.dyn_ltree, df.dyn_dtree)), Vf(df), Rf && Lf(df);
10856
- }, c._tr_tally = function(df, bf, Ef) {
10857
- return df.pending_buf[df.d_buf + 2 * df.last_lit] = bf >>> 8 & 255, df.pending_buf[df.d_buf + 2 * df.last_lit + 1] = 255 & bf, df.pending_buf[df.l_buf + df.last_lit] = 255 & Ef, df.last_lit++, bf === 0 ? df.dyn_ltree[2 * Ef]++ : (df.matches++, bf--, df.dyn_ltree[2 * (Ee[Ef] + F + 1)]++, df.dyn_dtree[2 * cf(bf)]++), df.last_lit === df.lit_bufsize - 1;
10853
+ for (ff(Pf, zf - 257, 5), ff(Pf, Rf - 1, 5), ff(Pf, Gf - 4, 4), np = 0; np < Gf; np++)
10854
+ ff(Pf, Pf.bl_tree[2 * tf[np] + 1], 3);
10855
+ gf(Pf, Pf.dyn_ltree, zf - 1), gf(Pf, Pf.dyn_dtree, Rf - 1);
10856
+ }(df, df.l_desc.max_code + 1, df.d_desc.max_code + 1, Af + 1), Bf(df, df.dyn_ltree, df.dyn_dtree)), If(df), Tf && Of(df);
10857
+ }, c._tr_tally = function(df, yf, Ef) {
10858
+ return df.pending_buf[df.d_buf + 2 * df.last_lit] = yf >>> 8 & 255, df.pending_buf[df.d_buf + 2 * df.last_lit + 1] = 255 & yf, df.pending_buf[df.l_buf + df.last_lit] = 255 & Ef, df.last_lit++, yf === 0 ? df.dyn_ltree[2 * Ef]++ : (df.matches++, yf--, df.dyn_ltree[2 * (Ee[Ef] + F + 1)]++, df.dyn_dtree[2 * cf(yf)]++), df.last_lit === df.lit_bufsize - 1;
10858
10859
  }, c._tr_align = function(df) {
10859
- ff(df, 2, 3), mf(df, lt, nf), function(bf) {
10860
- bf.bi_valid === 16 ? (pf(bf, bf.bi_buf), bf.bi_buf = 0, bf.bi_valid = 0) : 8 <= bf.bi_valid && (bf.pending_buf[bf.pending++] = 255 & bf.bi_buf, bf.bi_buf >>= 8, bf.bi_valid -= 8);
10860
+ ff(df, 2, 3), mf(df, lt, nf), function(yf) {
10861
+ yf.bi_valid === 16 ? (pf(yf, yf.bi_buf), yf.bi_buf = 0, yf.bi_valid = 0) : 8 <= yf.bi_valid && (yf.pending_buf[yf.pending++] = 255 & yf.bi_buf, yf.bi_buf >>= 8, yf.bi_valid -= 8);
10861
10862
  }(df);
10862
10863
  };
10863
10864
  }, { "../utils/common": 41 }], 53: [function(o, s, c) {
@@ -14710,166 +14711,166 @@ function useHooks$9({
14710
14711
  engineRef: h
14711
14712
  }) {
14712
14713
  const p = useMemo(() => /* @__PURE__ */ new Map(), []), [y, E] = useState([]), L = useMemo(() => /* @__PURE__ */ new Map(), []), F = useMemo(() => /* @__PURE__ */ new Map(), []), [N, { add: z, remove: H }] = useSet(), W = useCallback(
14713
- (Tf) => N.has(Tf) || !!(o != null && o.includes(Tf)),
14714
+ (Xd) => N.has(Xd) || !!(o != null && o.includes(Xd)),
14714
14715
  [N, o]
14715
- ), oe = useGet(t), [nt, J] = useState([]), lt = useRef([]), mt = useMemo(() => [...flattenLayers(t ?? []), ...flattenLayers(nt)].map((Xd) => {
14716
- var df, bf;
14717
- const gf = y.find((Ef) => Ef.id === Xd.id);
14718
- if (!gf)
14719
- return Xd;
14720
- const yf = ((df = gf.data) == null ? void 0 : df.value) ?? (Xd.type === "simple" ? (bf = Xd.data) == null ? void 0 : bf.value : void 0), hf = deepAssign(
14716
+ ), oe = useGet(t), [nt, J] = useState([]), lt = useRef([]), mt = useMemo(() => [...flattenLayers(t ?? []), ...flattenLayers(nt)].map((gf) => {
14717
+ var yf, Ef;
14718
+ const bf = y.find((Tf) => Tf.id === gf.id);
14719
+ if (!bf)
14720
+ return gf;
14721
+ const hf = ((yf = bf.data) == null ? void 0 : yf.value) ?? (gf.type === "simple" ? (Ef = gf.data) == null ? void 0 : Ef.value : void 0), df = deepAssign(
14721
14722
  {
14722
- ...Xd,
14723
- ...Xd.type === "simple" && Xd.data ? { data: omit(Xd.data, "value") } : {}
14723
+ ...gf,
14724
+ ...gf.type === "simple" && gf.data ? { data: omit(gf.data, "value") } : {}
14724
14725
  },
14725
- { ...gf, ...gf.data ? { data: omit(gf.data, "value") } : {} }
14726
+ { ...bf, ...bf.data ? { data: omit(bf.data, "value") } : {} }
14726
14727
  );
14727
- return yf && hf.data && (hf.data.value = yf), hf;
14728
+ return hf && df.data && (df.data.value = hf), df;
14728
14729
  }), [nt, t, y]), pi = useAtomValue(
14729
14730
  useMemo(
14730
- () => atom((Tf) => (Xd) => {
14731
- const gf = L.get(Xd);
14732
- return gf ? Tf(gf) : void 0;
14731
+ () => atom((Xd) => (gf) => {
14732
+ const bf = L.get(gf);
14733
+ return bf ? Xd(bf) : void 0;
14733
14734
  }),
14734
14735
  [L]
14735
14736
  )
14736
14737
  ), Ai = useMemo(() => objectFromGetter(
14737
14738
  // id and layer should not be accessible
14738
14739
  computedLayerKeys,
14739
- function(Tf) {
14740
- const Xd = this.id;
14741
- if (!Xd || typeof Xd != "string")
14740
+ function(Xd) {
14741
+ const gf = this.id;
14742
+ if (!gf || typeof gf != "string")
14742
14743
  throw new Error("layer ID is not specified");
14743
- const gf = pi(Xd);
14744
- if (gf)
14745
- return gf[Tf];
14746
- }
14747
- ), [pi]), Vd = useMemo(() => objectFromGetter(layerKeys, function(Tf) {
14748
- var yf, hf, df, bf;
14749
- const Xd = this.id;
14750
- if (!Xd || typeof Xd != "string")
14744
+ const bf = pi(gf);
14745
+ if (bf)
14746
+ return bf[Xd];
14747
+ }
14748
+ ), [pi]), Vd = useMemo(() => objectFromGetter(layerKeys, function(Xd) {
14749
+ var hf, df, yf, Ef;
14750
+ const gf = this.id;
14751
+ if (!gf || typeof gf != "string")
14751
14752
  throw new Error("layer ID is not specified");
14752
- const gf = p.get(Xd);
14753
- if (gf) {
14754
- if (Tf === "pluginId")
14755
- return (yf = gf.compat) != null && yf.extensionId ? "reearth" : void 0;
14756
- if (Tf === "extensionId")
14757
- return (hf = gf.compat) == null ? void 0 : hf.extensionId;
14758
- if (Tf === "properties")
14759
- return gf.type === "simple" ? gf.properties : void 0;
14760
- if (Tf === "property")
14761
- return (df = gf.compat) == null ? void 0 : df.property;
14762
- if (Tf === "propertyId")
14763
- return (bf = gf.compat) == null ? void 0 : bf.propertyId;
14764
- if (Tf === "isVisible")
14765
- return gf.visible;
14766
- if (Tf === "computed") {
14767
- if (!pi(gf.id))
14753
+ const bf = p.get(gf);
14754
+ if (bf) {
14755
+ if (Xd === "pluginId")
14756
+ return (hf = bf.compat) != null && hf.extensionId ? "reearth" : void 0;
14757
+ if (Xd === "extensionId")
14758
+ return (df = bf.compat) == null ? void 0 : df.extensionId;
14759
+ if (Xd === "properties")
14760
+ return bf.type === "simple" ? bf.properties : void 0;
14761
+ if (Xd === "property")
14762
+ return (yf = bf.compat) == null ? void 0 : yf.property;
14763
+ if (Xd === "propertyId")
14764
+ return (Ef = bf.compat) == null ? void 0 : Ef.propertyId;
14765
+ if (Xd === "isVisible")
14766
+ return bf.visible;
14767
+ if (Xd === "computed") {
14768
+ if (!pi(bf.id))
14768
14769
  return;
14769
- const Rf = Object.create(Ai);
14770
- return Rf.id = Xd, Rf;
14770
+ const vf = Object.create(Ai);
14771
+ return vf.id = gf, vf;
14771
14772
  }
14772
- return gf[Tf];
14773
+ return bf[Xd];
14773
14774
  }
14774
14775
  }), [pi, p, Ai]), Gd = useCallback(
14775
- (Tf) => {
14776
- const Xd = F.get(Tf);
14777
- if (Xd)
14778
- return Xd;
14779
- if (!p.has(Tf))
14776
+ (Xd) => {
14777
+ const gf = F.get(Xd);
14778
+ if (gf)
14779
+ return gf;
14780
+ if (!p.has(Xd))
14780
14781
  return;
14781
- const gf = Object.create(Vd);
14782
- return gf.id = Tf, F.set(Tf, gf), gf;
14782
+ const bf = Object.create(Vd);
14783
+ return bf.id = Xd, F.set(Xd, bf), bf;
14783
14784
  },
14784
14785
  [p, F, Vd]
14785
14786
  ), md = useCallback(
14786
- (...Tf) => Tf.map((Xd) => Gd(Xd)),
14787
+ (...Xd) => Xd.map((gf) => Gd(gf)),
14787
14788
  [Gd]
14788
14789
  ), tf = useCallback(
14789
- (Tf) => {
14790
- if (!isValidLayer(Tf))
14790
+ (Xd) => {
14791
+ if (!isValidLayer(Xd))
14791
14792
  return;
14792
- const Xd = compat(Tf);
14793
- if (!Xd)
14793
+ const gf = compat(Xd);
14794
+ if (!gf)
14794
14795
  return;
14795
- const gf = { ...Xd, id: v4() };
14796
- walkLayers([gf], (hf) => {
14797
- var df, bf;
14798
- hf.id || (hf.id = v4()), (bf = (df = hf.infobox) == null ? void 0 : df.blocks) == null || bf.forEach((Ef) => {
14799
- Ef.id || (Ef.id = v4());
14800
- }), p.set(hf.id, hf), L.set(hf.id, computeAtom());
14801
- }), lt.current = [...lt.current, gf], J((hf) => [...hf, gf]);
14802
- const yf = Gd(gf.id);
14803
- if (!yf)
14796
+ const bf = { ...gf, id: v4() };
14797
+ walkLayers([bf], (df) => {
14798
+ var yf, Ef;
14799
+ df.id || (df.id = v4()), (Ef = (yf = df.infobox) == null ? void 0 : yf.blocks) == null || Ef.forEach((Tf) => {
14800
+ Tf.id || (Tf.id = v4());
14801
+ }), p.set(df.id, df), L.set(df.id, computeAtom());
14802
+ }), lt.current = [...lt.current, bf], J((df) => [...df, bf]);
14803
+ const hf = Gd(bf.id);
14804
+ if (!hf)
14804
14805
  throw new Error("layer not found");
14805
- return yf;
14806
+ return hf;
14806
14807
  },
14807
14808
  [L, Gd, p]
14808
14809
  ), nf = useCallback(
14809
- (...Tf) => Tf.map((Xd) => tf(Xd)),
14810
+ (...Xd) => Xd.map((gf) => tf(gf)),
14810
14811
  [tf]
14811
14812
  ), ef = useCallback(
14812
- (...Tf) => {
14813
- const Xd = Tf.filter(isValidLayer).map(compat).filter((gf) => !!gf);
14814
- J((gf) => (replaceLayers(gf, (yf) => {
14815
- const hf = Xd.findIndex((df) => df.id === yf.id);
14816
- if (hf >= 0) {
14817
- const df = { ...Xd[hf] };
14818
- return lt.current[hf] = df, p.set(df.id, df), df;
14813
+ (...Xd) => {
14814
+ const gf = Xd.filter(isValidLayer).map(compat).filter((bf) => !!bf);
14815
+ J((bf) => (replaceLayers(bf, (hf) => {
14816
+ const df = gf.findIndex((yf) => yf.id === hf.id);
14817
+ if (df >= 0) {
14818
+ const yf = { ...gf[df] };
14819
+ return lt.current[df] = yf, p.set(yf.id, yf), yf;
14819
14820
  }
14820
- }), [...gf]));
14821
+ }), [...bf]));
14821
14822
  },
14822
14823
  [p]
14823
14824
  ), yt = useRef(y), Ee = useCallback(
14824
- (Tf, Xd) => {
14825
- var If, zf, Mf, Df, np;
14826
- const gf = p.get(Tf);
14827
- if (!gf)
14825
+ (Xd, gf) => {
14826
+ var zf, Rf, Gf, np, tp;
14827
+ const bf = p.get(Xd);
14828
+ if (!bf)
14828
14829
  return;
14829
- const yf = yt.current.find((Qf) => Qf.id === Tf), hf = ((If = Xd == null ? void 0 : Xd.data) == null ? void 0 : If.value) ?? ((zf = yf == null ? void 0 : yf.data) == null ? void 0 : zf.value), df = deepAssign(
14830
+ const hf = yt.current.find((Qf) => Qf.id === Xd), df = ((zf = gf == null ? void 0 : gf.data) == null ? void 0 : zf.value) ?? ((Rf = hf == null ? void 0 : hf.data) == null ? void 0 : Rf.value), yf = deepAssign(
14830
14831
  {
14831
- ...yf || {},
14832
- ...yf != null && yf.data ? { data: omit(yf.data, "value") } : {}
14832
+ ...hf || {},
14833
+ ...hf != null && hf.data ? { data: omit(hf.data, "value") } : {}
14833
14834
  },
14834
14835
  {
14835
- ...Xd || {},
14836
- ...Xd != null && Xd.data ? { data: omit(Xd.data, "value") } : {}
14836
+ ...gf || {},
14837
+ ...gf != null && gf.data ? { data: omit(gf.data, "value") } : {}
14837
14838
  }
14838
14839
  );
14839
- hf && df.data && (df.data.value = hf);
14840
- const bf = Xd == null ? void 0 : Xd.property, Ef = compat({
14841
- ...gf.compat && bf ? {
14842
- type: gf.type === "group" ? "group" : "item",
14843
- extensionId: gf.compat.extensionId,
14840
+ df && yf.data && (yf.data.value = df);
14841
+ const Ef = gf == null ? void 0 : gf.property, Tf = compat({
14842
+ ...bf.compat && Ef ? {
14843
+ type: bf.type === "group" ? "group" : "item",
14844
+ extensionId: bf.compat.extensionId,
14844
14845
  property: {
14845
14846
  default: {
14846
- ...((Mf = gf.compat.property) == null ? void 0 : Mf.default) || {},
14847
- ...bf.default || {}
14847
+ ...((Gf = bf.compat.property) == null ? void 0 : Gf.default) || {},
14848
+ ...Ef.default || {}
14848
14849
  }
14849
14850
  }
14850
14851
  } : {},
14851
- ...!gf.compat && bf ? { property: bf } : {},
14852
- ...df
14852
+ ...!bf.compat && Ef ? { property: Ef } : {},
14853
+ ...yf
14853
14854
  });
14854
- if (!Ef)
14855
+ if (!Tf)
14855
14856
  return;
14856
- gf.type === "simple" && ((Df = gf.data) != null && Df.value) && // If data isn't cachable, reuse layer id for performance.
14857
+ bf.type === "simple" && ((np = bf.data) != null && np.value) && // If data isn't cachable, reuse layer id for performance.
14857
14858
  DATA_CACHE_KEYS.some((Qf) => {
14858
- var qf;
14859
- return !((qf = gf.data) != null && qf[Qf]);
14860
- }) && Object.isExtensible(gf.data.value) && Ef.type === "simple" && ((np = Ef == null ? void 0 : Ef.data) != null && np.value) && (Ef.data.value.id = Tf);
14861
- const Rf = { id: Tf, ...omit(Ef, "id", "type", "children") }, vf = yt.current, Of = vf.findIndex((Qf) => Qf.id === Tf), Gf = Of < 0 ? [...vf, Rf] : [
14862
- ...vf.slice(0, Of),
14863
- Rf,
14864
- ...vf.slice(Of + 1)
14859
+ var Df;
14860
+ return !((Df = bf.data) != null && Df[Qf]);
14861
+ }) && Object.isExtensible(bf.data.value) && Tf.type === "simple" && ((tp = Tf == null ? void 0 : Tf.data) != null && tp.value) && (Tf.data.value.id = Xd);
14862
+ const vf = { id: Xd, ...omit(Tf, "id", "type", "children") }, Vf = yt.current, Af = Vf.findIndex((Qf) => Qf.id === Xd), Pf = Af < 0 ? [...Vf, vf] : [
14863
+ ...Vf.slice(0, Af),
14864
+ vf,
14865
+ ...Vf.slice(Af + 1)
14865
14866
  ];
14866
- yt.current = Gf, E(Gf);
14867
+ yt.current = Pf, E(Pf);
14867
14868
  },
14868
14869
  [p]
14869
14870
  ), sl = useCallback(
14870
- (Tf) => {
14871
- const Xd = yt.current.find((gf) => gf.id === Tf);
14872
- Ee(Tf, { _updateStyle: ((Xd == null ? void 0 : Xd._updateStyle) ?? -1) + 1 });
14871
+ (Xd) => {
14872
+ const gf = yt.current.find((bf) => bf.id === Xd);
14873
+ Ee(Xd, { _updateStyle: ((gf == null ? void 0 : gf._updateStyle) ?? -1) + 1 });
14873
14874
  },
14874
14875
  [Ee]
14875
14876
  ), { select: Zd, selectFeature: of, selectFeatures: uf, selectedLayer: lf, selectedFeature: af } = useSelection({
@@ -14879,83 +14880,86 @@ function useHooks$9({
14879
14880
  updateStyle: sl,
14880
14881
  engineRef: h
14881
14882
  }), rf = useCallback(
14882
- (...Tf) => {
14883
- Tf.find((hf) => hf === (s == null ? void 0 : s.layerId)) && Zd(), J((hf) => {
14884
- const df = [], bf = filterLayers(hf, (Ef) => Tf.includes(Ef.id) ? (df.push(Ef), !0) : !1);
14885
- return df.map((Ef) => Ef.id).forEach((Ef) => {
14886
- p.delete(Ef), L.delete(Ef), F.delete(Ef), H(Ef);
14883
+ (...Xd) => {
14884
+ Xd.find((df) => df === (s == null ? void 0 : s.layerId)) && Zd(), J((df) => {
14885
+ const yf = [], Ef = filterLayers(df, (Tf) => Xd.includes(Tf.id) ? (yf.push(Tf), !0) : !1);
14886
+ return yf.map((Tf) => Tf.id).forEach((Tf) => {
14887
+ p.delete(Tf), L.delete(Tf), F.delete(Tf), H(Tf);
14887
14888
  }), lt.current = lt.current.filter(
14888
- (Ef) => !df.find((Rf) => Rf.id === Ef.id)
14889
- ), bf;
14889
+ (Tf) => !yf.find((vf) => vf.id === Tf.id)
14890
+ ), Ef;
14890
14891
  });
14891
- const yf = yt.current.filter((hf) => !Tf.includes(hf.id));
14892
- yt.current = yf, E(yf);
14892
+ const hf = yt.current.filter((df) => !Xd.includes(df.id));
14893
+ yt.current = hf, E(hf);
14893
14894
  },
14894
14895
  [p, L, F, s, H, Zd]
14895
14896
  ), cf = useCallback(
14896
- (Tf) => typeof Tf == "object" && Object.getPrototypeOf(Tf) === Vd,
14897
+ (Xd) => typeof Xd == "object" && Object.getPrototypeOf(Xd) === Vd,
14897
14898
  [Vd]
14898
- ), pf = useCallback(() => [...oe() ?? [], ...lt.current].map((Tf) => Gd(Tf.id)).filter((Tf) => !!Tf), [Gd, oe]), ff = useCallback(
14899
- (Tf) => walkLayers([...oe() ?? [], ...lt.current], (Xd, gf, yf) => {
14900
- const hf = Gd(Xd.id);
14901
- if (hf)
14902
- return Tf(
14903
- hf,
14904
- gf,
14905
- yf.map((df) => Gd(df.id)).filter((df) => !!df)
14899
+ ), pf = useCallback(
14900
+ (Xd) => typeof Xd == "object" && Object.getPrototypeOf(Xd) === Ai,
14901
+ [Ai]
14902
+ ), ff = useCallback(() => [...oe() ?? [], ...lt.current].map((Xd) => Gd(Xd.id)).filter((Xd) => !!Xd), [Gd, oe]), mf = useCallback(
14903
+ (Xd) => walkLayers([...oe() ?? [], ...lt.current], (gf, bf, hf) => {
14904
+ const df = Gd(gf.id);
14905
+ if (df)
14906
+ return Xd(
14907
+ df,
14908
+ bf,
14909
+ hf.map((yf) => Gd(yf.id)).filter((yf) => !!yf)
14906
14910
  );
14907
14911
  }),
14908
14912
  [Gd, oe]
14909
- ), mf = useCallback(
14910
- (Tf) => ff((...Xd) => Tf(...Xd) ? Xd[0] : void 0),
14911
- [ff]
14912
14913
  ), Sf = useCallback(
14913
- (Tf) => {
14914
- const Xd = [];
14915
- return ff((...gf) => {
14916
- Tf(...gf) && Xd.push(gf[0]);
14917
- }), Xd;
14918
- },
14919
- [ff]
14914
+ (Xd) => mf((...gf) => Xd(...gf) ? gf[0] : void 0),
14915
+ [mf]
14920
14916
  ), wf = useCallback(
14921
- (...Tf) => Sf(
14922
- (Xd) => {
14923
- var gf;
14924
- return !!((gf = Xd.tags) != null && gf.some(
14925
- (yf) => {
14926
- var hf;
14927
- return Tf.includes(yf.id) || !!((hf = yf.tags) != null && hf.some((df) => Tf.includes(df.id)));
14917
+ (Xd) => {
14918
+ const gf = [];
14919
+ return mf((...bf) => {
14920
+ Xd(...bf) && gf.push(bf[0]);
14921
+ }), gf;
14922
+ },
14923
+ [mf]
14924
+ ), If = useCallback(
14925
+ (...Xd) => wf(
14926
+ (gf) => {
14927
+ var bf;
14928
+ return !!((bf = gf.tags) != null && bf.some(
14929
+ (hf) => {
14930
+ var df;
14931
+ return Xd.includes(hf.id) || !!((df = hf.tags) != null && df.some((yf) => Xd.includes(yf.id)));
14928
14932
  }
14929
14933
  ));
14930
14934
  }
14931
14935
  ),
14932
- [Sf]
14933
- ), Vf = useCallback(
14934
- (...Tf) => Sf(
14935
- (Xd) => {
14936
- var gf;
14937
- return !!((gf = Xd.tags) != null && gf.some(
14938
- (yf) => {
14939
- var hf;
14940
- return Tf.includes(yf.label) || !!((hf = yf.tags) != null && hf.some((df) => Tf.includes(df.label)));
14936
+ [wf]
14937
+ ), Of = useCallback(
14938
+ (...Xd) => wf(
14939
+ (gf) => {
14940
+ var bf;
14941
+ return !!((bf = gf.tags) != null && bf.some(
14942
+ (hf) => {
14943
+ var df;
14944
+ return Xd.includes(hf.label) || !!((df = hf.tags) != null && df.some((yf) => Xd.includes(yf.label)));
14941
14945
  }
14942
14946
  ));
14943
14947
  }
14944
14948
  ),
14945
- [Sf]
14946
- ), Lf = useCallback(
14947
- (...Tf) => {
14948
- for (const Xd of Tf)
14949
- z(Xd);
14949
+ [wf]
14950
+ ), Mf = useCallback(
14951
+ (...Xd) => {
14952
+ for (const gf of Xd)
14953
+ z(gf);
14950
14954
  },
14951
14955
  [z]
14952
- ), Pf = useCallback(
14953
- (...Tf) => {
14954
- for (const Xd of Tf)
14955
- H(Xd);
14956
+ ), Xf = useCallback(
14957
+ (...Xd) => {
14958
+ for (const gf of Xd)
14959
+ H(gf);
14956
14960
  },
14957
14961
  [H]
14958
- ), Xf = useCallback(() => y, [y]);
14962
+ ), Bf = useCallback(() => y, [y]);
14959
14963
  useImperativeHandle(
14960
14964
  n,
14961
14965
  () => ({
@@ -14967,20 +14971,21 @@ function useHooks$9({
14967
14971
  deleteLayer: rf,
14968
14972
  findByIds: md,
14969
14973
  isLayer: cf,
14970
- layers: pf,
14971
- walk: ff,
14972
- find: mf,
14973
- findAll: Sf,
14974
- findByTags: wf,
14975
- findByTagLabels: Vf,
14976
- hide: Lf,
14977
- show: Pf,
14974
+ isComputedLayer: pf,
14975
+ layers: ff,
14976
+ walk: mf,
14977
+ find: Sf,
14978
+ findAll: wf,
14979
+ findByTags: If,
14980
+ findByTagLabels: Of,
14981
+ hide: Mf,
14982
+ show: Xf,
14978
14983
  select: Zd,
14979
14984
  selectFeature: of,
14980
14985
  selectFeatures: uf,
14981
14986
  selectedLayer: lf,
14982
14987
  selectedFeature: af,
14983
- overriddenLayers: Xf
14988
+ overriddenLayers: Bf
14984
14989
  }),
14985
14990
  [
14986
14991
  Gd,
@@ -14996,30 +15001,31 @@ function useHooks$9({
14996
15001
  mf,
14997
15002
  Sf,
14998
15003
  wf,
14999
- Vf,
15000
- Lf,
15001
- Pf,
15004
+ If,
15005
+ Of,
15006
+ Mf,
15007
+ Xf,
15002
15008
  Zd,
15003
15009
  of,
15004
15010
  uf,
15005
15011
  lf,
15006
15012
  af,
15007
- Xf
15013
+ Bf
15008
15014
  ]
15009
15015
  );
15010
- const Bf = useRef([]);
15016
+ const kf = useRef([]);
15011
15017
  return useLayoutEffect(() => {
15012
- var hf;
15013
- const Tf = /* @__PURE__ */ new Set();
15014
- walkLayers(t ?? [], (df) => {
15015
- Tf.add(df.id), L.has(df.id) || L.set(df.id, computeAtom()), p.set(df.id, df);
15018
+ var df;
15019
+ const Xd = /* @__PURE__ */ new Set();
15020
+ walkLayers(t ?? [], (yf) => {
15021
+ Xd.add(yf.id), L.has(yf.id) || L.set(yf.id, computeAtom()), p.set(yf.id, yf);
15016
15022
  });
15017
- const Xd = (hf = Bf.current) == null ? void 0 : hf.filter((df) => !Tf.has(df.id)).map((df) => df.id);
15018
- Xd == null || Xd.forEach((df) => {
15019
- L.delete(df), p.delete(df), F.delete(df), H(df);
15023
+ const gf = (df = kf.current) == null ? void 0 : df.filter((yf) => !Xd.has(yf.id)).map((yf) => yf.id);
15024
+ gf == null || gf.forEach((yf) => {
15025
+ L.delete(yf), p.delete(yf), F.delete(yf), H(yf);
15020
15026
  });
15021
- const yf = yt.current.filter((df) => !(Xd != null && Xd.includes(df.id)));
15022
- yt.current = yf, E(yf), Bf.current = t;
15027
+ const hf = yt.current.filter((yf) => !(gf != null && gf.includes(yf.id)));
15028
+ yt.current = hf, E(hf), kf.current = t;
15023
15029
  }, [L, t, p, F, E, H]), useEffect(() => {
15024
15030
  !c || c.current === FORCE_REQUEST_RENDER || (c.current = REQUEST_RENDER_ONCE);
15025
15031
  }, [mt, y, N, c]), { atomMap: L, flattenedLayers: mt, isHidden: W };
@@ -18867,11 +18873,11 @@ function useHooks$8({
18867
18873
  }, []), [mt, pi] = useState(null), [Ai, Vd] = useState(0), Gd = useRef(null), md = useRef(), tf = useCallback((Xd, gf) => {
18868
18874
  N(Xd), H(gf ?? "editor");
18869
18875
  }, []), nf = useCallback(() => {
18870
- var yf;
18876
+ var bf;
18871
18877
  const Xd = F === "marker" ? Gd.current : mt;
18872
18878
  if (Xd == null)
18873
18879
  return null;
18874
- const gf = (yf = n.current) == null ? void 0 : yf.createGeometry(Xd);
18880
+ const gf = (bf = n.current) == null ? void 0 : bf.createGeometry(Xd);
18875
18881
  return gf == null || F !== "polyline" && gf.type === "LineString" ? null : feature(gf, {
18876
18882
  id: v4(),
18877
18883
  type: Xd.type,
@@ -18892,8 +18898,8 @@ function useHooks$8({
18892
18898
  [E, pi, Vd]
18893
18899
  ), yt = useCallback(
18894
18900
  (Xd) => {
18895
- var yf;
18896
- const gf = (yf = o.current) == null ? void 0 : yf.add({
18901
+ var bf;
18902
+ const gf = (bf = o.current) == null ? void 0 : bf.add({
18897
18903
  type: "simple",
18898
18904
  data: {
18899
18905
  type: "geojson",
@@ -18910,7 +18916,7 @@ function useHooks$8({
18910
18916
  [o, nt.appearance]
18911
18917
  ), Ee = useCallback(
18912
18918
  (Xd, gf) => {
18913
- var yf, hf, df, bf, Ef;
18919
+ var bf, hf, df, yf, Ef;
18914
18920
  return Xd.type !== "simple" ? {} : ((Ef = o.current) == null || Ef.override(Xd.id, {
18915
18921
  data: {
18916
18922
  ...Xd.data,
@@ -18918,7 +18924,7 @@ function useHooks$8({
18918
18924
  value: {
18919
18925
  type: "FeatureCollection",
18920
18926
  features: [
18921
- ...((bf = (df = (hf = (yf = Xd.computed) == null ? void 0 : yf.layer) == null ? void 0 : hf.data) == null ? void 0 : df.value) == null ? void 0 : bf.features) ?? [],
18927
+ ...((yf = (df = (hf = (bf = Xd.computed) == null ? void 0 : bf.layer) == null ? void 0 : hf.data) == null ? void 0 : df.value) == null ? void 0 : yf.features) ?? [],
18922
18928
  { ...gf, id: gf.properties.id }
18923
18929
  ]
18924
18930
  }
@@ -18928,15 +18934,15 @@ function useHooks$8({
18928
18934
  [o]
18929
18935
  ), sl = useCallback(
18930
18936
  (Xd, gf) => {
18931
- var yf, hf, df, bf, Ef, Rf;
18932
- Xd.type !== "simple" || ((yf = Xd.computed) == null ? void 0 : yf.layer.type) !== "simple" || (Rf = o.current) == null || Rf.override(Xd.id, {
18937
+ var bf, hf, df, yf, Ef, Tf;
18938
+ Xd.type !== "simple" || ((bf = Xd.computed) == null ? void 0 : bf.layer.type) !== "simple" || (Tf = o.current) == null || Tf.override(Xd.id, {
18933
18939
  data: {
18934
18940
  ...Xd.data,
18935
18941
  type: "geojson",
18936
18942
  value: {
18937
18943
  type: "FeatureCollection",
18938
18944
  features: [
18939
- ...(((Ef = (bf = (df = (hf = Xd.computed) == null ? void 0 : hf.layer) == null ? void 0 : df.data) == null ? void 0 : bf.value) == null ? void 0 : Ef.features) ?? []).filter(
18945
+ ...(((Ef = (yf = (df = (hf = Xd.computed) == null ? void 0 : hf.layer) == null ? void 0 : df.data) == null ? void 0 : yf.value) == null ? void 0 : Ef.features) ?? []).filter(
18940
18946
  (vf) => vf.id !== gf
18941
18947
  )
18942
18948
  ]
@@ -18947,7 +18953,7 @@ function useHooks$8({
18947
18953
  [o]
18948
18954
  ), Zd = useCallback(
18949
18955
  (Xd) => {
18950
- var gf, yf, hf;
18956
+ var gf, bf, hf;
18951
18957
  if (N(void 0), z === "editor") {
18952
18958
  h == null || h(Xd);
18953
18959
  return;
@@ -18955,21 +18961,21 @@ function useHooks$8({
18955
18961
  if (nt.dataOnly)
18956
18962
  p == null || p({ feature: Xd });
18957
18963
  else {
18958
- const df = (gf = o.current) == null ? void 0 : gf.selectedLayer(), { layerId: bf, featureId: Ef } = ((yf = df == null ? void 0 : df.id) == null ? void 0 : yf.length) !== PLUGIN_LAYER_ID_LENGTH || df.type !== "simple" || ((hf = df.computed) == null ? void 0 : hf.layer.type) !== "simple" ? yt(Xd) : Ee(df, Xd);
18959
- bf && Ef && (requestAnimationFrame(() => {
18964
+ const df = (gf = o.current) == null ? void 0 : gf.selectedLayer(), { layerId: yf, featureId: Ef } = ((bf = df == null ? void 0 : df.id) == null ? void 0 : bf.length) !== PLUGIN_LAYER_ID_LENGTH || df.type !== "simple" || ((hf = df.computed) == null ? void 0 : hf.layer.type) !== "simple" ? yt(Xd) : Ee(df, Xd);
18965
+ yf && Ef && (requestAnimationFrame(() => {
18960
18966
  y == null || y(
18961
- bf,
18967
+ yf,
18962
18968
  Ef,
18963
- bf ? () => new Promise((Rf) => {
18969
+ yf ? () => new Promise((Tf) => {
18964
18970
  queueMicrotask(() => {
18965
- var vf, Of, Gf;
18966
- Rf((Gf = (Of = (vf = o.current) == null ? void 0 : vf.findById) == null ? void 0 : Of.call(vf, bf)) == null ? void 0 : Gf.computed);
18971
+ var vf, Vf, Af;
18972
+ Tf((Af = (Vf = (vf = o.current) == null ? void 0 : vf.findById) == null ? void 0 : Vf.call(vf, yf)) == null ? void 0 : Af.computed);
18967
18973
  });
18968
18974
  }) : void 0,
18969
18975
  void 0,
18970
18976
  void 0
18971
18977
  );
18972
- }), p == null || p({ layerId: bf, featureId: Ef, feature: Xd }));
18978
+ }), p == null || p({ layerId: yf, featureId: Ef, feature: Xd }));
18973
18979
  }
18974
18980
  },
18975
18981
  [
@@ -18984,11 +18990,11 @@ function useHooks$8({
18984
18990
  ]
18985
18991
  ), of = useCallback(
18986
18992
  (Xd) => {
18987
- var yf;
18993
+ var bf;
18988
18994
  if (W || !F || Xd.lng === void 0 || Xd.lat === void 0 || Xd.height === void 0 || Xd.x === void 0 || Xd.y === void 0 || !E.matches("idle"))
18989
18995
  return;
18990
18996
  invariant$1(E.context.lastControlPoint == null);
18991
- const gf = (yf = n.current) == null ? void 0 : yf.toXYZ(Xd.lng, Xd.lat, Xd.height);
18997
+ const gf = (bf = n.current) == null ? void 0 : bf.toXYZ(Xd.lng, Xd.lat, Xd.height);
18992
18998
  gf != null && (L({
18993
18999
  type: {
18994
19000
  marker: "MARKER",
@@ -19007,7 +19013,7 @@ function useHooks$8({
19007
19013
  [E, W, F, n, L]
19008
19014
  ), uf = useCallback(
19009
19015
  (Xd) => {
19010
- var gf, yf;
19016
+ var gf, bf;
19011
19017
  if (!(W || Xd.lng === void 0 || Xd.lat === void 0 || Xd.height === void 0 || Xd.x === void 0 || Xd.y === void 0 || !n.current)) {
19012
19018
  if (md.current = [Xd.lng, Xd.lat, Xd.height], E.matches("drawing")) {
19013
19019
  invariant$1(E.context.type != null), invariant$1(E.context.controlPoints != null);
@@ -19017,7 +19023,7 @@ function useHooks$8({
19017
19023
  ef(hf);
19018
19024
  } else if (E.matches("extruding")) {
19019
19025
  invariant$1(E.context.lastControlPoint != null);
19020
- const hf = (yf = n.current) == null ? void 0 : yf.getExtrudedHeight(
19026
+ const hf = (bf = n.current) == null ? void 0 : bf.getExtrudedHeight(
19021
19027
  E.context.lastControlPoint,
19022
19028
  [Xd.x, Xd.y]
19023
19029
  );
@@ -19028,8 +19034,8 @@ function useHooks$8({
19028
19034
  [W, E, n, ef, Vd]
19029
19035
  ), lf = useCallback(
19030
19036
  (Xd) => {
19031
- var gf, yf, hf, df, bf;
19032
- if (!(W || Xd.lng === void 0 || Xd.lat === void 0 || Xd.height === void 0 || Xd.x === void 0 || Xd.y === void 0 || !n.current) && !(((gf = E.context.controlPoints) == null ? void 0 : gf.length) === 1 && E.context.lastPointerPosition != null && E.context.type !== "marker" && ((yf = n.current) != null && yf.equalsEpsilon2d(
19037
+ var gf, bf, hf, df, yf;
19038
+ if (!(W || Xd.lng === void 0 || Xd.lat === void 0 || Xd.height === void 0 || Xd.x === void 0 || Xd.y === void 0 || !n.current) && !(((gf = E.context.controlPoints) == null ? void 0 : gf.length) === 1 && E.context.lastPointerPosition != null && E.context.type !== "marker" && ((bf = n.current) != null && bf.equalsEpsilon2d(
19033
19039
  [Xd.x, Xd.y],
19034
19040
  E.context.lastPointerPosition,
19035
19041
  0,
@@ -19044,10 +19050,10 @@ function useHooks$8({
19044
19050
  type: E.context.type,
19045
19051
  controlPoints: [Ef]
19046
19052
  };
19047
- const Rf = nf();
19048
- if (Gd.current = null, Rf == null)
19053
+ const Tf = nf();
19054
+ if (Gd.current = null, Tf == null)
19049
19055
  return;
19050
- Zd(Rf), L({ type: "CREATE" }), pi(null);
19056
+ Zd(Tf), L({ type: "CREATE" }), pi(null);
19051
19057
  return;
19052
19058
  }
19053
19059
  if (hasDuplicate(
@@ -19056,11 +19062,11 @@ function useHooks$8({
19056
19062
  E.context.controlPoints
19057
19063
  ))
19058
19064
  return;
19059
- if (E.context.type === "circle" || E.context.type === "rectangle" && ((bf = E.context.controlPoints) == null ? void 0 : bf.length) === 2) {
19060
- const Rf = nf();
19061
- if (Rf == null)
19065
+ if (E.context.type === "circle" || E.context.type === "rectangle" && ((yf = E.context.controlPoints) == null ? void 0 : yf.length) === 2) {
19066
+ const Tf = nf();
19067
+ if (Tf == null)
19062
19068
  return;
19063
- Zd(Rf), L({ type: "CREATE" }), pi(null);
19069
+ Zd(Tf), L({ type: "CREATE" }), pi(null);
19064
19070
  return;
19065
19071
  } else {
19066
19072
  if (Xd.x === void 0 || Xd.y === void 0)
@@ -19093,19 +19099,19 @@ function useHooks$8({
19093
19099
  var gf;
19094
19100
  if (!(W || Xd.lng === void 0 || Xd.lat === void 0 || Xd.height === void 0 || Xd.x === void 0 || Xd.y === void 0)) {
19095
19101
  if (E.matches("drawing.extrudedPolygon")) {
19096
- const yf = (gf = n.current) == null ? void 0 : gf.toXYZ(Xd.lng, Xd.lat, Xd.height);
19097
- if (yf == null)
19102
+ const bf = (gf = n.current) == null ? void 0 : gf.toXYZ(Xd.lng, Xd.lat, Xd.height);
19103
+ if (bf == null)
19098
19104
  return;
19099
19105
  L({
19100
19106
  type: "EXTRUDE",
19101
19107
  pointerPosition: [Xd.x, Xd.y],
19102
- controlPoint: yf
19108
+ controlPoint: bf
19103
19109
  });
19104
19110
  } else if (E.matches("drawing.polyline") || E.matches("drawing.polygon")) {
19105
- const yf = nf();
19106
- if (yf == null)
19111
+ const bf = nf();
19112
+ if (bf == null)
19107
19113
  return;
19108
- Zd(yf), L({ type: "CREATE" }), pi(null);
19114
+ Zd(bf), L({ type: "CREATE" }), pi(null);
19109
19115
  }
19110
19116
  }
19111
19117
  },
@@ -19128,19 +19134,19 @@ function useHooks$8({
19128
19134
  (gf = cf.current) == null || gf.call(cf, Xd);
19129
19135
  },
19130
19136
  [cf]
19131
- ), Vf = useCallback(
19137
+ ), If = useCallback(
19132
19138
  (Xd) => {
19133
19139
  var gf;
19134
19140
  (gf = pf.current) == null || gf.call(pf, Xd);
19135
19141
  },
19136
19142
  [pf]
19137
- ), Lf = useCallback(
19143
+ ), Of = useCallback(
19138
19144
  (Xd) => {
19139
19145
  var gf;
19140
19146
  (gf = ff.current) == null || gf.call(ff, Xd);
19141
19147
  },
19142
19148
  [ff]
19143
- ), Pf = useCallback(
19149
+ ), Mf = useCallback(
19144
19150
  (Xd) => {
19145
19151
  var gf;
19146
19152
  (gf = mf.current) == null || gf.call(mf, Xd);
@@ -19151,10 +19157,10 @@ function useHooks$8({
19151
19157
  (Xd = Sf.current) == null || Xd.call(Sf);
19152
19158
  }, [Sf]);
19153
19159
  useEffect(() => {
19154
- var Xd, gf, yf, hf, df;
19155
- (Xd = n.current) == null || Xd.onMouseDown(wf), (gf = n.current) == null || gf.onMouseMove(Vf), (yf = n.current) == null || yf.onMouseUp(Lf), (hf = n.current) == null || hf.onDoubleClick(Pf), (df = n.current) == null || df.onRightClick(Xf);
19156
- }, [n, wf, Vf, Lf, Pf, Xf]), useWindowEvent("keydown", (Xd) => {
19157
- var gf, yf, hf;
19160
+ var Xd, gf, bf, hf, df;
19161
+ (Xd = n.current) == null || Xd.onMouseDown(wf), (gf = n.current) == null || gf.onMouseMove(If), (bf = n.current) == null || bf.onMouseUp(Of), (hf = n.current) == null || hf.onDoubleClick(Mf), (df = n.current) == null || df.onRightClick(Xf);
19162
+ }, [n, wf, If, Of, Mf, Xf]), useWindowEvent("keydown", (Xd) => {
19163
+ var gf, bf, hf;
19158
19164
  if (F !== void 0)
19159
19165
  if (Xd.code === "Space")
19160
19166
  oe(!0), c == null || c("move");
@@ -19166,7 +19172,7 @@ function useHooks$8({
19166
19172
  const df = md.current != null ? (gf = n.current) == null ? void 0 : gf.toXYZ(...md.current) : void 0;
19167
19173
  ef(df);
19168
19174
  } else if (Xd.key === "Delete" && E.matches("idle") && (s != null && s.id)) {
19169
- const df = (yf = o.current) == null ? void 0 : yf.selectedLayer();
19175
+ const df = (bf = o.current) == null ? void 0 : bf.selectedLayer();
19170
19176
  ((hf = df == null ? void 0 : df.id) == null ? void 0 : hf.length) === PLUGIN_LAYER_ID_LENGTH && sl(df, s.id);
19171
19177
  }
19172
19178
  }
@@ -19183,16 +19189,16 @@ function useHooks$8({
19183
19189
  c,
19184
19190
  d
19185
19191
  ]);
19186
- const Bf = useGet(F), Tf = useGet(nt);
19192
+ const Bf = useGet(F), kf = useGet(nt);
19187
19193
  return useImperativeHandle(
19188
19194
  t,
19189
19195
  () => ({
19190
19196
  getType: Bf,
19191
19197
  setType: tf,
19192
- getOptions: Tf,
19198
+ getOptions: kf,
19193
19199
  overrideOptions: lt
19194
19200
  }),
19195
- [Bf, tf, Tf, lt]
19201
+ [Bf, tf, kf, lt]
19196
19202
  ), {
19197
19203
  state: E,
19198
19204
  extrudedHeight: Ai,
@@ -19587,14 +19593,14 @@ function Gt$1() {
19587
19593
  var nt = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
19588
19594
  function J(sf) {
19589
19595
  {
19590
- for (var xf = arguments.length, _f = new Array(xf > 1 ? xf - 1 : 0), Ff = 1; Ff < xf; Ff++)
19591
- _f[Ff - 1] = arguments[Ff];
19596
+ for (var xf = arguments.length, _f = new Array(xf > 1 ? xf - 1 : 0), Lf = 1; Lf < xf; Lf++)
19597
+ _f[Lf - 1] = arguments[Lf];
19592
19598
  lt("error", sf, _f);
19593
19599
  }
19594
19600
  }
19595
19601
  function lt(sf, xf, _f) {
19596
19602
  {
19597
- var Ff = nt.ReactDebugCurrentFrame, jf = Ff.getStackAddendum();
19603
+ var Lf = nt.ReactDebugCurrentFrame, jf = Lf.getStackAddendum();
19598
19604
  jf !== "" && (xf += "%s", _f = _f.concat([jf]));
19599
19605
  var Hf = _f.map(function($f) {
19600
19606
  return String($f);
@@ -19612,9 +19618,9 @@ function Gt$1() {
19612
19618
  sf.$$typeof === md || sf.getModuleId !== void 0));
19613
19619
  }
19614
19620
  function nf(sf, xf, _f) {
19615
- var Ff = sf.displayName;
19616
- if (Ff)
19617
- return Ff;
19621
+ var Lf = sf.displayName;
19622
+ if (Lf)
19623
+ return Lf;
19618
19624
  var jf = xf.displayName || xf.name || "";
19619
19625
  return jf !== "" ? _f + "(" + jf + ")" : _f;
19620
19626
  }
@@ -19653,8 +19659,8 @@ function Gt$1() {
19653
19659
  case y:
19654
19660
  return nf(sf, sf.render, "ForwardRef");
19655
19661
  case F:
19656
- var Ff = sf.displayName || null;
19657
- return Ff !== null ? Ff : yt(sf.type) || "Memo";
19662
+ var Lf = sf.displayName || null;
19663
+ return Lf !== null ? Lf : yt(sf.type) || "Memo";
19658
19664
  case N: {
19659
19665
  var jf = sf, Hf = jf._payload, $f = jf._init;
19660
19666
  try {
@@ -19729,34 +19735,34 @@ function Gt$1() {
19729
19735
  }
19730
19736
  }
19731
19737
  var Sf = nt.ReactCurrentDispatcher, wf;
19732
- function Vf(sf, xf, _f) {
19738
+ function If(sf, xf, _f) {
19733
19739
  {
19734
19740
  if (wf === void 0)
19735
19741
  try {
19736
19742
  throw Error();
19737
19743
  } catch (jf) {
19738
- var Ff = jf.stack.trim().match(/\n( *(at )?)/);
19739
- wf = Ff && Ff[1] || "";
19744
+ var Lf = jf.stack.trim().match(/\n( *(at )?)/);
19745
+ wf = Lf && Lf[1] || "";
19740
19746
  }
19741
19747
  return `
19742
19748
  ` + wf + sf;
19743
19749
  }
19744
19750
  }
19745
- var Lf = !1, Pf;
19751
+ var Of = !1, Mf;
19746
19752
  {
19747
19753
  var Xf = typeof WeakMap == "function" ? WeakMap : Map;
19748
- Pf = new Xf();
19754
+ Mf = new Xf();
19749
19755
  }
19750
19756
  function Bf(sf, xf) {
19751
- if (!sf || Lf)
19757
+ if (!sf || Of)
19752
19758
  return "";
19753
19759
  {
19754
- var _f = Pf.get(sf);
19760
+ var _f = Mf.get(sf);
19755
19761
  if (_f !== void 0)
19756
19762
  return _f;
19757
19763
  }
19758
- var Ff;
19759
- Lf = !0;
19764
+ var Lf;
19765
+ Of = !0;
19760
19766
  var jf = Error.prepareStackTrace;
19761
19767
  Error.prepareStackTrace = void 0;
19762
19768
  var Hf;
@@ -19774,14 +19780,14 @@ function Gt$1() {
19774
19780
  try {
19775
19781
  Reflect.construct($f, []);
19776
19782
  } catch (Mp) {
19777
- Ff = Mp;
19783
+ Lf = Mp;
19778
19784
  }
19779
19785
  Reflect.construct(sf, [], $f);
19780
19786
  } else {
19781
19787
  try {
19782
19788
  $f.call();
19783
19789
  } catch (Mp) {
19784
- Ff = Mp;
19790
+ Lf = Mp;
19785
19791
  }
19786
19792
  sf.call($f.prototype);
19787
19793
  }
@@ -19789,36 +19795,36 @@ function Gt$1() {
19789
19795
  try {
19790
19796
  throw Error();
19791
19797
  } catch (Mp) {
19792
- Ff = Mp;
19798
+ Lf = Mp;
19793
19799
  }
19794
19800
  sf();
19795
19801
  }
19796
19802
  } catch (Mp) {
19797
- if (Mp && Ff && typeof Mp.stack == "string") {
19803
+ if (Mp && Lf && typeof Mp.stack == "string") {
19798
19804
  for (var Uf = Mp.stack.split(`
19799
- `), pp = Ff.stack.split(`
19800
- `), ep = Uf.length - 1, op = pp.length - 1; ep >= 1 && op >= 0 && Uf[ep] !== pp[op]; )
19805
+ `), pp = Lf.stack.split(`
19806
+ `), qf = Uf.length - 1, op = pp.length - 1; qf >= 1 && op >= 0 && Uf[qf] !== pp[op]; )
19801
19807
  op--;
19802
- for (; ep >= 1 && op >= 0; ep--, op--)
19803
- if (Uf[ep] !== pp[op]) {
19804
- if (ep !== 1 || op !== 1)
19808
+ for (; qf >= 1 && op >= 0; qf--, op--)
19809
+ if (Uf[qf] !== pp[op]) {
19810
+ if (qf !== 1 || op !== 1)
19805
19811
  do
19806
- if (ep--, op--, op < 0 || Uf[ep] !== pp[op]) {
19812
+ if (qf--, op--, op < 0 || Uf[qf] !== pp[op]) {
19807
19813
  var gp = `
19808
- ` + Uf[ep].replace(" at new ", " at ");
19809
- return sf.displayName && gp.includes("<anonymous>") && (gp = gp.replace("<anonymous>", sf.displayName)), typeof sf == "function" && Pf.set(sf, gp), gp;
19814
+ ` + Uf[qf].replace(" at new ", " at ");
19815
+ return sf.displayName && gp.includes("<anonymous>") && (gp = gp.replace("<anonymous>", sf.displayName)), typeof sf == "function" && Mf.set(sf, gp), gp;
19810
19816
  }
19811
- while (ep >= 1 && op >= 0);
19817
+ while (qf >= 1 && op >= 0);
19812
19818
  break;
19813
19819
  }
19814
19820
  }
19815
19821
  } finally {
19816
- Lf = !1, Sf.current = Hf, mf(), Error.prepareStackTrace = jf;
19822
+ Of = !1, Sf.current = Hf, mf(), Error.prepareStackTrace = jf;
19817
19823
  }
19818
- var kp = sf ? sf.displayName || sf.name : "", qm = kp ? Vf(kp) : "";
19819
- return typeof sf == "function" && Pf.set(sf, qm), qm;
19824
+ var kp = sf ? sf.displayName || sf.name : "", qm = kp ? If(kp) : "";
19825
+ return typeof sf == "function" && Mf.set(sf, qm), qm;
19820
19826
  }
19821
- function Tf(sf, xf, _f) {
19827
+ function kf(sf, xf, _f) {
19822
19828
  return Bf(sf, !1);
19823
19829
  }
19824
19830
  function Xd(sf) {
@@ -19831,21 +19837,21 @@ function Gt$1() {
19831
19837
  if (typeof sf == "function")
19832
19838
  return Bf(sf, Xd(sf));
19833
19839
  if (typeof sf == "string")
19834
- return Vf(sf);
19840
+ return If(sf);
19835
19841
  switch (sf) {
19836
19842
  case E:
19837
- return Vf("Suspense");
19843
+ return If("Suspense");
19838
19844
  case L:
19839
- return Vf("SuspenseList");
19845
+ return If("SuspenseList");
19840
19846
  }
19841
19847
  if (typeof sf == "object")
19842
19848
  switch (sf.$$typeof) {
19843
19849
  case y:
19844
- return Tf(sf.render);
19850
+ return kf(sf.render);
19845
19851
  case F:
19846
19852
  return gf(sf.type, xf, _f);
19847
19853
  case N: {
19848
- var Ff = sf, jf = Ff._payload, Hf = Ff._init;
19854
+ var Lf = sf, jf = Lf._payload, Hf = Lf._init;
19849
19855
  try {
19850
19856
  return gf(Hf(jf), xf, _f);
19851
19857
  } catch {
@@ -19854,66 +19860,66 @@ function Gt$1() {
19854
19860
  }
19855
19861
  return "";
19856
19862
  }
19857
- var yf = Object.prototype.hasOwnProperty, hf = {}, df = nt.ReactDebugCurrentFrame;
19858
- function bf(sf) {
19863
+ var bf = Object.prototype.hasOwnProperty, hf = {}, df = nt.ReactDebugCurrentFrame;
19864
+ function yf(sf) {
19859
19865
  if (sf) {
19860
19866
  var xf = sf._owner, _f = gf(sf.type, sf._source, xf ? xf.type : null);
19861
19867
  df.setExtraStackFrame(_f);
19862
19868
  } else
19863
19869
  df.setExtraStackFrame(null);
19864
19870
  }
19865
- function Ef(sf, xf, _f, Ff, jf) {
19871
+ function Ef(sf, xf, _f, Lf, jf) {
19866
19872
  {
19867
- var Hf = Function.call.bind(yf);
19873
+ var Hf = Function.call.bind(bf);
19868
19874
  for (var $f in sf)
19869
19875
  if (Hf(sf, $f)) {
19870
19876
  var Uf = void 0;
19871
19877
  try {
19872
19878
  if (typeof sf[$f] != "function") {
19873
- var pp = Error((Ff || "React class") + ": " + _f + " type `" + $f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof sf[$f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
19879
+ var pp = Error((Lf || "React class") + ": " + _f + " type `" + $f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof sf[$f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
19874
19880
  throw pp.name = "Invariant Violation", pp;
19875
19881
  }
19876
- Uf = sf[$f](xf, $f, Ff, _f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
19877
- } catch (ep) {
19878
- Uf = ep;
19882
+ Uf = sf[$f](xf, $f, Lf, _f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
19883
+ } catch (qf) {
19884
+ Uf = qf;
19879
19885
  }
19880
- Uf && !(Uf instanceof Error) && (bf(jf), J("%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).", Ff || "React class", _f, $f, typeof Uf), bf(null)), Uf instanceof Error && !(Uf.message in hf) && (hf[Uf.message] = !0, bf(jf), J("Failed %s type: %s", _f, Uf.message), bf(null));
19886
+ Uf && !(Uf instanceof Error) && (yf(jf), J("%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).", Lf || "React class", _f, $f, typeof Uf), yf(null)), Uf instanceof Error && !(Uf.message in hf) && (hf[Uf.message] = !0, yf(jf), J("Failed %s type: %s", _f, Uf.message), yf(null));
19881
19887
  }
19882
19888
  }
19883
19889
  }
19884
- var Rf = Array.isArray;
19890
+ var Tf = Array.isArray;
19885
19891
  function vf(sf) {
19886
- return Rf(sf);
19892
+ return Tf(sf);
19887
19893
  }
19888
- function Of(sf) {
19894
+ function Vf(sf) {
19889
19895
  {
19890
19896
  var xf = typeof Symbol == "function" && Symbol.toStringTag, _f = xf && sf[Symbol.toStringTag] || sf.constructor.name || "Object";
19891
19897
  return _f;
19892
19898
  }
19893
19899
  }
19894
- function Gf(sf) {
19900
+ function Af(sf) {
19895
19901
  try {
19896
- return If(sf), !1;
19902
+ return Pf(sf), !1;
19897
19903
  } catch {
19898
19904
  return !0;
19899
19905
  }
19900
19906
  }
19901
- function If(sf) {
19907
+ function Pf(sf) {
19902
19908
  return "" + sf;
19903
19909
  }
19904
19910
  function zf(sf) {
19905
- if (Gf(sf))
19906
- return J("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Of(sf)), If(sf);
19911
+ if (Af(sf))
19912
+ return J("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Vf(sf)), Pf(sf);
19907
19913
  }
19908
- var Mf = nt.ReactCurrentOwner, Df = {
19914
+ var Rf = nt.ReactCurrentOwner, Gf = {
19909
19915
  key: !0,
19910
19916
  ref: !0,
19911
19917
  __self: !0,
19912
19918
  __source: !0
19913
- }, np, Qf, qf;
19914
- qf = {};
19915
- function kf(sf) {
19916
- if (yf.call(sf, "ref")) {
19919
+ }, np, tp, Qf;
19920
+ Qf = {};
19921
+ function Df(sf) {
19922
+ if (bf.call(sf, "ref")) {
19917
19923
  var xf = Object.getOwnPropertyDescriptor(sf, "ref").get;
19918
19924
  if (xf && xf.isReactWarning)
19919
19925
  return !1;
@@ -19921,7 +19927,7 @@ function Gt$1() {
19921
19927
  return sf.ref !== void 0;
19922
19928
  }
19923
19929
  function Zf(sf) {
19924
- if (yf.call(sf, "key")) {
19930
+ if (bf.call(sf, "key")) {
19925
19931
  var xf = Object.getOwnPropertyDescriptor(sf, "key").get;
19926
19932
  if (xf && xf.isReactWarning)
19927
19933
  return !1;
@@ -19929,9 +19935,9 @@ function Gt$1() {
19929
19935
  return sf.key !== void 0;
19930
19936
  }
19931
19937
  function rp(sf, xf) {
19932
- if (typeof sf.ref == "string" && Mf.current && xf && Mf.current.stateNode !== xf) {
19933
- var _f = yt(Mf.current.type);
19934
- qf[_f] || (J('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', yt(Mf.current.type), sf.ref), qf[_f] = !0);
19938
+ if (typeof sf.ref == "string" && Rf.current && xf && Rf.current.stateNode !== xf) {
19939
+ var _f = yt(Rf.current.type);
19940
+ Qf[_f] || (J('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', yt(Rf.current.type), sf.ref), Qf[_f] = !0);
19935
19941
  }
19936
19942
  }
19937
19943
  function lp(sf, xf) {
@@ -19948,7 +19954,7 @@ function Gt$1() {
19948
19954
  function dp(sf, xf) {
19949
19955
  {
19950
19956
  var _f = function() {
19951
- Qf || (Qf = !0, J("%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)", xf));
19957
+ tp || (tp = !0, J("%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)", xf));
19952
19958
  };
19953
19959
  _f.isReactWarning = !0, Object.defineProperty(sf, "ref", {
19954
19960
  get: _f,
@@ -19956,7 +19962,7 @@ function Gt$1() {
19956
19962
  });
19957
19963
  }
19958
19964
  }
19959
- var hp = function(sf, xf, _f, Ff, jf, Hf, $f) {
19965
+ var hp = function(sf, xf, _f, Lf, jf, Hf, $f) {
19960
19966
  var Uf = {
19961
19967
  // This tag allows us to uniquely identify this as a React Element
19962
19968
  $$typeof: n,
@@ -19977,7 +19983,7 @@ function Gt$1() {
19977
19983
  configurable: !1,
19978
19984
  enumerable: !1,
19979
19985
  writable: !1,
19980
- value: Ff
19986
+ value: Lf
19981
19987
  }), Object.defineProperty(Uf, "_source", {
19982
19988
  configurable: !1,
19983
19989
  enumerable: !1,
@@ -19985,26 +19991,26 @@ function Gt$1() {
19985
19991
  value: jf
19986
19992
  }), Object.freeze && (Object.freeze(Uf.props), Object.freeze(Uf)), Uf;
19987
19993
  };
19988
- function mp(sf, xf, _f, Ff, jf) {
19994
+ function mp(sf, xf, _f, Lf, jf) {
19989
19995
  {
19990
19996
  var Hf, $f = {}, Uf = null, pp = null;
19991
- _f !== void 0 && (zf(_f), Uf = "" + _f), Zf(xf) && (zf(xf.key), Uf = "" + xf.key), kf(xf) && (pp = xf.ref, rp(xf, jf));
19997
+ _f !== void 0 && (zf(_f), Uf = "" + _f), Zf(xf) && (zf(xf.key), Uf = "" + xf.key), Df(xf) && (pp = xf.ref, rp(xf, jf));
19992
19998
  for (Hf in xf)
19993
- yf.call(xf, Hf) && !Df.hasOwnProperty(Hf) && ($f[Hf] = xf[Hf]);
19999
+ bf.call(xf, Hf) && !Gf.hasOwnProperty(Hf) && ($f[Hf] = xf[Hf]);
19994
20000
  if (sf && sf.defaultProps) {
19995
- var ep = sf.defaultProps;
19996
- for (Hf in ep)
19997
- $f[Hf] === void 0 && ($f[Hf] = ep[Hf]);
20001
+ var qf = sf.defaultProps;
20002
+ for (Hf in qf)
20003
+ $f[Hf] === void 0 && ($f[Hf] = qf[Hf]);
19998
20004
  }
19999
20005
  if (Uf || pp) {
20000
20006
  var op = typeof sf == "function" ? sf.displayName || sf.name || "Unknown" : sf;
20001
20007
  Uf && lp($f, op), pp && dp($f, op);
20002
20008
  }
20003
- return hp(sf, Uf, pp, jf, Ff, Mf.current, $f);
20009
+ return hp(sf, Uf, pp, jf, Lf, Rf.current, $f);
20004
20010
  }
20005
20011
  }
20006
20012
  var cp = nt.ReactCurrentOwner, Nf = nt.ReactDebugCurrentFrame;
20007
- function Af(sf) {
20013
+ function Ff(sf) {
20008
20014
  if (sf) {
20009
20015
  var xf = sf._owner, _f = gf(sf.type, sf._source, xf ? xf.type : null);
20010
20016
  Nf.setExtraStackFrame(_f);
@@ -20061,8 +20067,8 @@ Check the top-level render call using <` + _f + ">.");
20061
20067
  if (ip[_f])
20062
20068
  return;
20063
20069
  ip[_f] = !0;
20064
- var Ff = "";
20065
- sf && sf._owner && sf._owner !== cp.current && (Ff = " It was passed a child from " + yt(sf._owner.type) + "."), Af(sf), J('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _f, Ff), Af(null);
20070
+ var Lf = "";
20071
+ sf && sf._owner && sf._owner !== cp.current && (Lf = " It was passed a child from " + yt(sf._owner.type) + "."), Ff(sf), J('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _f, Lf), Ff(null);
20066
20072
  }
20067
20073
  }
20068
20074
  function Tp(sf, xf) {
@@ -20071,8 +20077,8 @@ Check the top-level render call using <` + _f + ">.");
20071
20077
  return;
20072
20078
  if (vf(sf))
20073
20079
  for (var _f = 0; _f < sf.length; _f++) {
20074
- var Ff = sf[_f];
20075
- Kf(Ff) && Cp(Ff, xf);
20080
+ var Lf = sf[_f];
20081
+ Kf(Lf) && Cp(Lf, xf);
20076
20082
  }
20077
20083
  else if (Kf(sf))
20078
20084
  sf._store && (sf._store.validated = !0);
@@ -20099,8 +20105,8 @@ Check the top-level render call using <` + _f + ">.");
20099
20105
  else
20100
20106
  return;
20101
20107
  if (_f) {
20102
- var Ff = yt(xf);
20103
- Ef(_f, sf.props, "prop", Ff, sf);
20108
+ var Lf = yt(xf);
20109
+ Ef(_f, sf.props, "prop", Lf, sf);
20104
20110
  } else if (xf.PropTypes !== void 0 && !Yf) {
20105
20111
  Yf = !0;
20106
20112
  var jf = yt(xf);
@@ -20112,16 +20118,16 @@ Check the top-level render call using <` + _f + ">.");
20112
20118
  function _p(sf) {
20113
20119
  {
20114
20120
  for (var xf = Object.keys(sf.props), _f = 0; _f < xf.length; _f++) {
20115
- var Ff = xf[_f];
20116
- if (Ff !== "children" && Ff !== "key") {
20117
- Af(sf), J("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ff), Af(null);
20121
+ var Lf = xf[_f];
20122
+ if (Lf !== "children" && Lf !== "key") {
20123
+ Ff(sf), J("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Lf), Ff(null);
20118
20124
  break;
20119
20125
  }
20120
20126
  }
20121
- sf.ref !== null && (Af(sf), J("Invalid attribute `ref` supplied to `React.Fragment`."), Af(null));
20127
+ sf.ref !== null && (Ff(sf), J("Invalid attribute `ref` supplied to `React.Fragment`."), Ff(null));
20122
20128
  }
20123
20129
  }
20124
- function vp(sf, xf, _f, Ff, jf, Hf) {
20130
+ function vp(sf, xf, _f, Lf, jf, Hf) {
20125
20131
  {
20126
20132
  var $f = tf(sf);
20127
20133
  if (!$f) {
@@ -20129,8 +20135,8 @@ Check the top-level render call using <` + _f + ">.");
20129
20135
  (sf === void 0 || typeof sf == "object" && sf !== null && Object.keys(sf).length === 0) && (Uf += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
20130
20136
  var pp = up(jf);
20131
20137
  pp ? Uf += pp : Uf += fp();
20132
- var ep;
20133
- sf === null ? ep = "null" : vf(sf) ? ep = "array" : sf !== void 0 && sf.$$typeof === n ? (ep = "<" + (yt(sf.type) || "Unknown") + " />", Uf = " Did you accidentally export a JSX literal instead of a component?") : ep = typeof sf, J("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ep, Uf);
20138
+ var qf;
20139
+ sf === null ? qf = "null" : vf(sf) ? qf = "array" : sf !== void 0 && sf.$$typeof === n ? (qf = "<" + (yt(sf.type) || "Unknown") + " />", Uf = " Did you accidentally export a JSX literal instead of a component?") : qf = typeof sf, J("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", qf, Uf);
20134
20140
  }
20135
20141
  var op = mp(sf, xf, _f, jf, Hf);
20136
20142
  if (op == null)
@@ -20138,7 +20144,7 @@ Check the top-level render call using <` + _f + ">.");
20138
20144
  if ($f) {
20139
20145
  var gp = xf.children;
20140
20146
  if (gp !== void 0)
20141
- if (Ff)
20147
+ if (Lf)
20142
20148
  if (vf(gp)) {
20143
20149
  for (var kp = 0; kp < gp.length; kp++)
20144
20150
  Tp(gp[kp], sf);
@@ -24777,8 +24783,8 @@ Matrix4.getRotation = function(t, n) {
24777
24783
  };
24778
24784
  Matrix4.multiply = function(t, n, o) {
24779
24785
  Check.typeOf.object("left", t), Check.typeOf.object("right", n), Check.typeOf.object("result", o);
24780
- const s = t[0], c = t[1], d = t[2], h = t[3], p = t[4], y = t[5], E = t[6], L = t[7], F = t[8], N = t[9], z = t[10], H = t[11], W = t[12], oe = t[13], nt = t[14], J = t[15], lt = n[0], mt = n[1], pi = n[2], Ai = n[3], Vd = n[4], Gd = n[5], md = n[6], tf = n[7], nf = n[8], ef = n[9], yt = n[10], Ee = n[11], sl = n[12], Zd = n[13], of = n[14], uf = n[15], lf = s * lt + p * mt + F * pi + W * Ai, af = c * lt + y * mt + N * pi + oe * Ai, rf = d * lt + E * mt + z * pi + nt * Ai, cf = h * lt + L * mt + H * pi + J * Ai, pf = s * Vd + p * Gd + F * md + W * tf, ff = c * Vd + y * Gd + N * md + oe * tf, mf = d * Vd + E * Gd + z * md + nt * tf, Sf = h * Vd + L * Gd + H * md + J * tf, wf = s * nf + p * ef + F * yt + W * Ee, Vf = c * nf + y * ef + N * yt + oe * Ee, Lf = d * nf + E * ef + z * yt + nt * Ee, Pf = h * nf + L * ef + H * yt + J * Ee, Xf = s * sl + p * Zd + F * of + W * uf, Bf = c * sl + y * Zd + N * of + oe * uf, Tf = d * sl + E * Zd + z * of + nt * uf, Xd = h * sl + L * Zd + H * of + J * uf;
24781
- return o[0] = lf, o[1] = af, o[2] = rf, o[3] = cf, o[4] = pf, o[5] = ff, o[6] = mf, o[7] = Sf, o[8] = wf, o[9] = Vf, o[10] = Lf, o[11] = Pf, o[12] = Xf, o[13] = Bf, o[14] = Tf, o[15] = Xd, o;
24786
+ const s = t[0], c = t[1], d = t[2], h = t[3], p = t[4], y = t[5], E = t[6], L = t[7], F = t[8], N = t[9], z = t[10], H = t[11], W = t[12], oe = t[13], nt = t[14], J = t[15], lt = n[0], mt = n[1], pi = n[2], Ai = n[3], Vd = n[4], Gd = n[5], md = n[6], tf = n[7], nf = n[8], ef = n[9], yt = n[10], Ee = n[11], sl = n[12], Zd = n[13], of = n[14], uf = n[15], lf = s * lt + p * mt + F * pi + W * Ai, af = c * lt + y * mt + N * pi + oe * Ai, rf = d * lt + E * mt + z * pi + nt * Ai, cf = h * lt + L * mt + H * pi + J * Ai, pf = s * Vd + p * Gd + F * md + W * tf, ff = c * Vd + y * Gd + N * md + oe * tf, mf = d * Vd + E * Gd + z * md + nt * tf, Sf = h * Vd + L * Gd + H * md + J * tf, wf = s * nf + p * ef + F * yt + W * Ee, If = c * nf + y * ef + N * yt + oe * Ee, Of = d * nf + E * ef + z * yt + nt * Ee, Mf = h * nf + L * ef + H * yt + J * Ee, Xf = s * sl + p * Zd + F * of + W * uf, Bf = c * sl + y * Zd + N * of + oe * uf, kf = d * sl + E * Zd + z * of + nt * uf, Xd = h * sl + L * Zd + H * of + J * uf;
24787
+ return o[0] = lf, o[1] = af, o[2] = rf, o[3] = cf, o[4] = pf, o[5] = ff, o[6] = mf, o[7] = Sf, o[8] = wf, o[9] = If, o[10] = Of, o[11] = Mf, o[12] = Xf, o[13] = Bf, o[14] = kf, o[15] = Xd, o;
24782
24788
  };
24783
24789
  Matrix4.add = function(t, n, o) {
24784
24790
  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;
@@ -24860,9 +24866,9 @@ Matrix4.inverse = function(t, n) {
24860
24866
  let J = N * nt, lt = z * oe, mt = F * nt, pi = z * W, Ai = F * oe, Vd = N * W, Gd = L * nt, md = z * H, tf = L * oe, nf = N * H, ef = L * W, yt = F * H;
24861
24867
  const Ee = J * p + pi * y + Ai * E - (lt * p + mt * y + Vd * E), sl = lt * h + Gd * y + nf * E - (J * h + md * y + tf * E), Zd = mt * h + md * p + ef * E - (pi * h + Gd * p + yt * E), of = Vd * h + tf * p + yt * y - (Ai * h + nf * p + ef * y), uf = lt * s + mt * c + Vd * d - (J * s + pi * c + Ai * d), lf = J * o + md * c + tf * d - (lt * o + Gd * c + nf * d), af = pi * o + Gd * s + yt * d - (mt * o + md * s + ef * d), rf = Ai * o + nf * s + ef * c - (Vd * o + tf * s + yt * c);
24862
24868
  J = c * E, lt = d * y, mt = s * E, pi = d * p, Ai = s * y, Vd = c * p, Gd = o * E, md = d * h, tf = o * y, nf = c * h, ef = o * p, yt = s * h;
24863
- const cf = J * W + pi * oe + Ai * nt - (lt * W + mt * oe + Vd * nt), pf = lt * H + Gd * oe + nf * nt - (J * H + md * oe + tf * nt), ff = mt * H + md * W + ef * nt - (pi * H + Gd * W + yt * nt), mf = Vd * H + tf * W + yt * oe - (Ai * H + nf * W + ef * oe), Sf = mt * N + Vd * z + lt * F - (Ai * z + J * F + pi * N), wf = tf * z + J * L + md * N - (Gd * N + nf * z + lt * L), Vf = Gd * F + yt * z + pi * L - (ef * z + mt * L + md * F), Lf = ef * N + Ai * L + nf * F - (tf * F + yt * N + Vd * L);
24864
- let Pf = o * Ee + s * sl + c * Zd + d * of;
24865
- if (Math.abs(Pf) < CesiumMath$1.EPSILON21) {
24869
+ const cf = J * W + pi * oe + Ai * nt - (lt * W + mt * oe + Vd * nt), pf = lt * H + Gd * oe + nf * nt - (J * H + md * oe + tf * nt), ff = mt * H + md * W + ef * nt - (pi * H + Gd * W + yt * nt), mf = Vd * H + tf * W + yt * oe - (Ai * H + nf * W + ef * oe), Sf = mt * N + Vd * z + lt * F - (Ai * z + J * F + pi * N), wf = tf * z + J * L + md * N - (Gd * N + nf * z + lt * L), If = Gd * F + yt * z + pi * L - (ef * z + mt * L + md * F), Of = ef * N + Ai * L + nf * F - (tf * F + yt * N + Vd * L);
24870
+ let Mf = o * Ee + s * sl + c * Zd + d * of;
24871
+ if (Math.abs(Mf) < CesiumMath$1.EPSILON21) {
24866
24872
  if (Matrix3.equalsEpsilon(
24867
24873
  Matrix4.getMatrix3(t, scratchInverseRotation),
24868
24874
  scratchMatrix3Zero,
@@ -24876,7 +24882,7 @@ Matrix4.inverse = function(t, n) {
24876
24882
  "matrix is not invertible because its determinate is zero."
24877
24883
  );
24878
24884
  }
24879
- return Pf = 1 / Pf, n[0] = Ee * Pf, n[1] = sl * Pf, n[2] = Zd * Pf, n[3] = of * Pf, n[4] = uf * Pf, n[5] = lf * Pf, n[6] = af * Pf, n[7] = rf * Pf, n[8] = cf * Pf, n[9] = pf * Pf, n[10] = ff * Pf, n[11] = mf * Pf, n[12] = Sf * Pf, n[13] = wf * Pf, n[14] = Vf * Pf, n[15] = Lf * Pf, n;
24885
+ return Mf = 1 / Mf, n[0] = Ee * Mf, n[1] = sl * Mf, n[2] = Zd * Mf, n[3] = of * Mf, n[4] = uf * Mf, n[5] = lf * Mf, n[6] = af * Mf, n[7] = rf * Mf, n[8] = cf * Mf, n[9] = pf * Mf, n[10] = ff * Mf, n[11] = mf * Mf, n[12] = Sf * Mf, n[13] = wf * Mf, n[14] = If * Mf, n[15] = Of * Mf, n;
24880
24886
  };
24881
24887
  Matrix4.inverseTransformation = function(t, n) {
24882
24888
  Check.typeOf.object("matrix", t), Check.typeOf.object("result", n);
@@ -32549,30 +32555,30 @@ function requirePunycode() {
32549
32555
  return pi(pf + (mt + 1) * af / (af + F));
32550
32556
  }
32551
32557
  function Zd(af) {
32552
- var rf = [], cf = af.length, pf, ff = 0, mf = H, Sf = z, wf, Vf, Lf, Pf, Xf, Bf, Tf, Xd, gf;
32553
- for (wf = af.lastIndexOf(W), wf < 0 && (wf = 0), Vf = 0; Vf < wf; ++Vf)
32554
- af.charCodeAt(Vf) >= 128 && Gd("not-basic"), rf.push(af.charCodeAt(Vf));
32555
- for (Lf = wf > 0 ? wf + 1 : 0; Lf < cf; ) {
32556
- for (Pf = ff, Xf = 1, Bf = y; Lf >= cf && Gd("invalid-input"), Tf = yt(af.charCodeAt(Lf++)), (Tf >= y || Tf > pi((p - ff) / Xf)) && Gd("overflow"), ff += Tf * Xf, Xd = Bf <= Sf ? E : Bf >= Sf + L ? L : Bf - Sf, !(Tf < Xd); Bf += y)
32558
+ var rf = [], cf = af.length, pf, ff = 0, mf = H, Sf = z, wf, If, Of, Mf, Xf, Bf, kf, Xd, gf;
32559
+ for (wf = af.lastIndexOf(W), wf < 0 && (wf = 0), If = 0; If < wf; ++If)
32560
+ af.charCodeAt(If) >= 128 && Gd("not-basic"), rf.push(af.charCodeAt(If));
32561
+ for (Of = wf > 0 ? wf + 1 : 0; Of < cf; ) {
32562
+ for (Mf = ff, Xf = 1, Bf = y; Of >= cf && Gd("invalid-input"), kf = yt(af.charCodeAt(Of++)), (kf >= y || kf > pi((p - ff) / Xf)) && Gd("overflow"), ff += kf * Xf, Xd = Bf <= Sf ? E : Bf >= Sf + L ? L : Bf - Sf, !(kf < Xd); Bf += y)
32557
32563
  gf = y - Xd, Xf > pi(p / gf) && Gd("overflow"), Xf *= gf;
32558
- pf = rf.length + 1, Sf = sl(ff - Pf, pf, Pf == 0), pi(ff / pf) > p - mf && Gd("overflow"), mf += pi(ff / pf), ff %= pf, rf.splice(ff++, 0, mf);
32564
+ pf = rf.length + 1, Sf = sl(ff - Mf, pf, Mf == 0), pi(ff / pf) > p - mf && Gd("overflow"), mf += pi(ff / pf), ff %= pf, rf.splice(ff++, 0, mf);
32559
32565
  }
32560
32566
  return ef(rf);
32561
32567
  }
32562
32568
  function of(af) {
32563
- var rf, cf, pf, ff, mf, Sf, wf, Vf, Lf, Pf, Xf, Bf = [], Tf, Xd, gf, yf;
32564
- for (af = nf(af), Tf = af.length, rf = H, cf = 0, mf = z, Sf = 0; Sf < Tf; ++Sf)
32569
+ var rf, cf, pf, ff, mf, Sf, wf, If, Of, Mf, Xf, Bf = [], kf, Xd, gf, bf;
32570
+ for (af = nf(af), kf = af.length, rf = H, cf = 0, mf = z, Sf = 0; Sf < kf; ++Sf)
32565
32571
  Xf = af[Sf], Xf < 128 && Bf.push(Ai(Xf));
32566
- for (pf = ff = Bf.length, ff && Bf.push(W); pf < Tf; ) {
32567
- for (wf = p, Sf = 0; Sf < Tf; ++Sf)
32572
+ for (pf = ff = Bf.length, ff && Bf.push(W); pf < kf; ) {
32573
+ for (wf = p, Sf = 0; Sf < kf; ++Sf)
32568
32574
  Xf = af[Sf], Xf >= rf && Xf < wf && (wf = Xf);
32569
- for (Xd = pf + 1, wf - rf > pi((p - cf) / Xd) && Gd("overflow"), cf += (wf - rf) * Xd, rf = wf, Sf = 0; Sf < Tf; ++Sf)
32575
+ for (Xd = pf + 1, wf - rf > pi((p - cf) / Xd) && Gd("overflow"), cf += (wf - rf) * Xd, rf = wf, Sf = 0; Sf < kf; ++Sf)
32570
32576
  if (Xf = af[Sf], Xf < rf && ++cf > p && Gd("overflow"), Xf == rf) {
32571
- for (Vf = cf, Lf = y; Pf = Lf <= mf ? E : Lf >= mf + L ? L : Lf - mf, !(Vf < Pf); Lf += y)
32572
- yf = Vf - Pf, gf = y - Pf, Bf.push(
32573
- Ai(Ee(Pf + yf % gf, 0))
32574
- ), Vf = pi(yf / gf);
32575
- Bf.push(Ai(Ee(Vf, 0))), mf = sl(cf, Xd, pf == ff), cf = 0, ++pf;
32577
+ for (If = cf, Of = y; Mf = Of <= mf ? E : Of >= mf + L ? L : Of - mf, !(If < Mf); Of += y)
32578
+ bf = If - Mf, gf = y - Mf, Bf.push(
32579
+ Ai(Ee(Mf + bf % gf, 0))
32580
+ ), If = pi(bf / gf);
32581
+ Bf.push(Ai(Ee(If, 0))), mf = sl(cf, Xd, pf == ff), cf = 0, ++pf;
32576
32582
  }
32577
32583
  ++cf, ++rf;
32578
32584
  }
@@ -33341,17 +33347,17 @@ function requireSecondLevelDomains() {
33341
33347
  var wf = lf.exec(mf);
33342
33348
  if (!wf)
33343
33349
  break;
33344
- var Vf = wf.index + wf[0].length;
33345
- Sf = Math.max(Sf, Vf);
33350
+ var If = wf.index + wf[0].length;
33351
+ Sf = Math.max(Sf, If);
33346
33352
  }
33347
33353
  if (Sf > -1 ? mf = mf.slice(0, Sf) + mf.slice(Sf).replace(uf, "") : mf = mf.replace(uf, ""), !(mf.length <= rf[0].length) && !(sl.ignore && sl.ignore.test(mf))) {
33348
33354
  ff = cf + mf.length;
33349
- var Lf = Ee(mf, cf, ff, yt);
33350
- if (Lf === void 0) {
33355
+ var Of = Ee(mf, cf, ff, yt);
33356
+ if (Of === void 0) {
33351
33357
  Zd.lastIndex = ff;
33352
33358
  continue;
33353
33359
  }
33354
- Lf = String(Lf), yt = yt.slice(0, cf) + Lf + yt.slice(ff), Zd.lastIndex = cf + Lf.length;
33360
+ Of = String(Of), yt = yt.slice(0, cf) + Of + yt.slice(ff), Zd.lastIndex = cf + Of.length;
33355
33361
  }
33356
33362
  }
33357
33363
  return Zd.lastIndex = 0, yt;
@@ -45899,8 +45905,8 @@ function computeRealRoots(t, n, o, s) {
45899
45905
  L * E >= y * F ? (rf = c, cf = N, pf = -2 * d * N + c * z) : (rf = p, cf = H, pf = -p * z + 2 * h * H);
45900
45906
  const mf = -(pf < 0 ? -1 : 1) * Math.abs(rf) * Math.sqrt(-W);
45901
45907
  nt = -pf + mf;
45902
- const Sf = nt / 2, wf = Sf < 0 ? -Math.pow(-Sf, 1 / 3) : Math.pow(Sf, 1 / 3), Vf = nt === mf ? -wf : -cf / wf;
45903
- return oe = cf <= 0 ? wf + Vf : -pf / (wf * wf + Vf * Vf + cf), L * E >= y * F ? [(oe - d) / c] : [-p / (oe + h)];
45908
+ const Sf = nt / 2, wf = Sf < 0 ? -Math.pow(-Sf, 1 / 3) : Math.pow(Sf, 1 / 3), If = nt === mf ? -wf : -cf / wf;
45909
+ return oe = cf <= 0 ? wf + If : -pf / (wf * wf + If * If + cf), L * E >= y * F ? [(oe - d) / c] : [-p / (oe + h)];
45904
45910
  }
45905
45911
  const J = N, lt = -2 * d * N + c * z, mt = H, pi = -p * z + 2 * h * H, Ai = Math.sqrt(W), Vd = Math.sqrt(3) / 2;
45906
45912
  let Gd = Math.abs(Math.atan2(c * Ai, -lt) / 3);
@@ -53846,19 +53852,19 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
53846
53852
  segmentEndNormalScratch
53847
53853
  );
53848
53854
  if (t) {
53849
- const Tf = Cartesian3.unpack(
53855
+ const kf = Cartesian3.unpack(
53850
53856
  o,
53851
53857
  o.length - 6,
53852
53858
  segmentStartBottomScratch
53853
53859
  );
53854
- breakMiter(mf, Tf, pf, ff) && (mf = Cartesian3.negate(
53860
+ breakMiter(mf, kf, pf, ff) && (mf = Cartesian3.negate(
53855
53861
  mf,
53856
53862
  mf
53857
53863
  ));
53858
53864
  }
53859
- let Sf = 0, wf = 0, Vf = 0;
53865
+ let Sf = 0, wf = 0, If = 0;
53860
53866
  for (p = 0; p < L; p++) {
53861
- const Tf = Cartesian3.clone(pf, segmentStartBottomScratch), Xd = Cartesian3.clone(ff, segmentStartTopScratch);
53867
+ const kf = Cartesian3.clone(pf, segmentStartBottomScratch), Xd = Cartesian3.clone(ff, segmentStartTopScratch);
53862
53868
  let gf = Cartesian3.clone(
53863
53869
  mf,
53864
53870
  segmentStartNormalScratch
@@ -53874,25 +53880,25 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
53874
53880
  c,
53875
53881
  y,
53876
53882
  segmentEndNormalScratch
53877
- ), cf = breakMiter(mf, Tf, pf, ff), nf.latitude = d[uf], nf.longitude = d[uf + 1], ef.latitude = d[uf + 2], ef.longitude = d[uf + 3];
53878
- let yf, hf, df, bf;
53883
+ ), cf = breakMiter(mf, kf, pf, ff), nf.latitude = d[uf], nf.longitude = d[uf + 1], ef.latitude = d[uf + 2], ef.longitude = d[uf + 3];
53884
+ let bf, hf, df, yf;
53879
53885
  if (h) {
53880
53886
  const ip = nudgeCartographic(nf, ef);
53881
- yf = n.project(nf, segmentStart2DScratch), hf = n.project(ef, segmentEnd2DScratch);
53882
- const bp = direction(hf, yf, forwardOffset2DScratch);
53883
- bp.y = Math.abs(bp.y), df = segmentStartNormal2DScratch, bf = segmentEndNormal2DScratch, ip === 0 || Cartesian3.dot(bp, Cartesian3.UNIT_Y) > MITER_BREAK_SMALL ? (df = projectNormal(
53887
+ bf = n.project(nf, segmentStart2DScratch), hf = n.project(ef, segmentEnd2DScratch);
53888
+ const bp = direction(hf, bf, forwardOffset2DScratch);
53889
+ bp.y = Math.abs(bp.y), df = segmentStartNormal2DScratch, yf = segmentEndNormal2DScratch, ip === 0 || Cartesian3.dot(bp, Cartesian3.UNIT_Y) > MITER_BREAK_SMALL ? (df = projectNormal(
53884
53890
  n,
53885
53891
  nf,
53886
53892
  gf,
53887
- yf,
53893
+ bf,
53888
53894
  segmentStartNormal2DScratch
53889
- ), bf = projectNormal(
53895
+ ), yf = projectNormal(
53890
53896
  n,
53891
53897
  ef,
53892
53898
  mf,
53893
53899
  hf,
53894
53900
  segmentEndNormal2DScratch
53895
- )) : ip === 1 ? (bf = projectNormal(
53901
+ )) : ip === 1 ? (yf = projectNormal(
53896
53902
  n,
53897
53903
  ef,
53898
53904
  mf,
@@ -53904,79 +53910,79 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
53904
53910
  n,
53905
53911
  nf,
53906
53912
  gf,
53907
- yf,
53913
+ bf,
53908
53914
  segmentStartNormal2DScratch
53909
- ), bf.x = 0, bf.y = CesiumMath$1.sign(
53915
+ ), yf.x = 0, yf.y = CesiumMath$1.sign(
53910
53916
  nf.longitude - ef.longitude
53911
- ), bf.z = 0);
53917
+ ), yf.z = 0);
53912
53918
  }
53913
- const Ef = Cartesian3.distance(Xd, ff), Rf = EncodedCartesian3.fromCartesian(
53914
- Tf,
53919
+ const Ef = Cartesian3.distance(Xd, ff), Tf = EncodedCartesian3.fromCartesian(
53920
+ kf,
53915
53921
  encodeScratch
53916
53922
  ), vf = Cartesian3.subtract(
53917
53923
  pf,
53918
- Tf,
53924
+ kf,
53919
53925
  offsetScratch
53920
- ), Of = Cartesian3.normalize(vf, rightScratch);
53921
- let Gf = Cartesian3.subtract(Xd, Tf, startUpScratch);
53922
- Gf = Cartesian3.normalize(Gf, Gf);
53923
- let If = Cartesian3.cross(Of, Gf, rightScratch);
53924
- If = Cartesian3.normalize(If, If);
53926
+ ), Vf = Cartesian3.normalize(vf, rightScratch);
53927
+ let Af = Cartesian3.subtract(Xd, kf, startUpScratch);
53928
+ Af = Cartesian3.normalize(Af, Af);
53929
+ let Pf = Cartesian3.cross(Vf, Af, rightScratch);
53930
+ Pf = Cartesian3.normalize(Pf, Pf);
53925
53931
  let zf = Cartesian3.cross(
53926
- Gf,
53932
+ Af,
53927
53933
  gf,
53928
53934
  startPlaneNormalScratch
53929
53935
  );
53930
53936
  zf = Cartesian3.normalize(zf, zf);
53931
- let Mf = Cartesian3.subtract(ff, pf, endUpScratch);
53932
- Mf = Cartesian3.normalize(Mf, Mf);
53933
- let Df = Cartesian3.cross(
53937
+ let Rf = Cartesian3.subtract(ff, pf, endUpScratch);
53938
+ Rf = Cartesian3.normalize(Rf, Rf);
53939
+ let Gf = Cartesian3.cross(
53934
53940
  mf,
53935
- Mf,
53941
+ Rf,
53936
53942
  endPlaneNormalScratch
53937
53943
  );
53938
- Df = Cartesian3.normalize(Df, Df);
53939
- const np = Ef / Zd, Qf = Sf / Zd;
53940
- let qf = 0, kf, Zf, rp, lp = 0, dp = 0;
53944
+ Gf = Cartesian3.normalize(Gf, Gf);
53945
+ const np = Ef / Zd, tp = Sf / Zd;
53946
+ let Qf = 0, Df, Zf, rp, lp = 0, dp = 0;
53941
53947
  if (h) {
53942
- qf = Cartesian3.distance(yf, hf), kf = EncodedCartesian3.fromCartesian(
53943
- yf,
53948
+ Qf = Cartesian3.distance(bf, hf), Df = EncodedCartesian3.fromCartesian(
53949
+ bf,
53944
53950
  encodeScratch2D
53945
53951
  ), Zf = Cartesian3.subtract(
53946
53952
  hf,
53947
- yf,
53953
+ bf,
53948
53954
  forwardOffset2DScratch
53949
53955
  ), rp = Cartesian3.normalize(Zf, right2DScratch);
53950
53956
  const ip = rp.x;
53951
- rp.x = rp.y, rp.y = -ip, lp = qf / tf, dp = wf / tf;
53957
+ rp.x = rp.y, rp.y = -ip, lp = Qf / tf, dp = wf / tf;
53952
53958
  }
53953
53959
  for (of = 0; of < 8; of++) {
53954
53960
  const ip = rf + of * 4, bp = lf + of * 2, Cp = ip + 3, Tp = of < 4 ? 1 : -1, wp = of === 2 || of === 3 || of === 6 || of === 7 ? 1 : -1;
53955
- Cartesian3.pack(Rf.high, oe, ip), oe[Cp] = vf.x, Cartesian3.pack(Rf.low, nt, ip), nt[Cp] = vf.y, Cartesian3.pack(
53961
+ Cartesian3.pack(Tf.high, oe, ip), oe[Cp] = vf.x, Cartesian3.pack(Tf.low, nt, ip), nt[Cp] = vf.y, Cartesian3.pack(
53956
53962
  zf,
53957
53963
  J,
53958
53964
  ip
53959
53965
  ), J[Cp] = vf.z, Cartesian3.pack(
53960
- Df,
53966
+ Gf,
53961
53967
  lt,
53962
53968
  ip
53963
53969
  ), lt[Cp] = np * Tp, Cartesian3.pack(
53964
- If,
53970
+ Pf,
53965
53971
  mt,
53966
53972
  ip
53967
53973
  );
53968
- let _p = Qf * wp;
53969
- _p === 0 && wp < 0 && (_p = 9), mt[Cp] = _p, h && (pi[ip] = kf.high.x, pi[ip + 1] = kf.high.y, pi[ip + 2] = kf.low.x, pi[ip + 3] = kf.low.y, Vd[ip] = -df.y, Vd[ip + 1] = df.x, Vd[ip + 2] = bf.y, Vd[ip + 3] = -bf.x, Ai[ip] = Zf.x, Ai[ip + 1] = Zf.y, Ai[ip + 2] = rp.x, Ai[ip + 3] = rp.y, Gd[bp] = lp * Tp, _p = dp * wp, _p === 0 && wp < 0 && (_p = 9), Gd[bp + 1] = _p);
53974
+ let _p = tp * wp;
53975
+ _p === 0 && wp < 0 && (_p = 9), mt[Cp] = _p, h && (pi[ip] = Df.high.x, pi[ip + 1] = Df.high.y, pi[ip + 2] = Df.low.x, pi[ip + 3] = Df.low.y, Vd[ip] = -df.y, Vd[ip + 1] = df.x, Vd[ip + 2] = yf.y, Vd[ip + 3] = -yf.x, Ai[ip] = Zf.x, Ai[ip + 1] = Zf.y, Ai[ip + 2] = rp.x, Ai[ip + 3] = rp.y, Gd[bp] = lp * Tp, _p = dp * wp, _p === 0 && wp < 0 && (_p = 9), Gd[bp + 1] = _p);
53970
53976
  }
53971
- const hp = adjustHeightStartBottomScratch, mp = adjustHeightEndBottomScratch, cp = adjustHeightStartTopScratch, Nf = adjustHeightEndTopScratch, Af = Rectangle.fromCartographicArray(
53977
+ const hp = adjustHeightStartBottomScratch, mp = adjustHeightEndBottomScratch, cp = adjustHeightStartTopScratch, Nf = adjustHeightEndTopScratch, Ff = Rectangle.fromCartographicArray(
53972
53978
  getHeightCartographics,
53973
53979
  getHeightRectangleScratch
53974
53980
  ), Yf = ApproximateTerrainHeights.getMinimumMaximumHeights(
53975
- Af,
53981
+ Ff,
53976
53982
  E
53977
53983
  ), Kf = Yf.minimumTerrainHeight, fp = Yf.maximumTerrainHeight;
53978
- Vf += Math.abs(Kf), Vf += Math.abs(fp), adjustHeights(
53979
- Tf,
53984
+ If += Math.abs(Kf), If += Math.abs(fp), adjustHeights(
53985
+ kf,
53980
53986
  Xd,
53981
53987
  Kf,
53982
53988
  fp,
@@ -53991,7 +53997,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
53991
53997
  Nf
53992
53998
  );
53993
53999
  let up = Cartesian3.multiplyByScalar(
53994
- If,
54000
+ Pf,
53995
54001
  CesiumMath$1.EPSILON5,
53996
54002
  normalNudgeScratch
53997
54003
  );
@@ -54000,7 +54006,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
54000
54006
  up,
54001
54007
  hp
54002
54008
  ), Cartesian3.add(mp, up, mp), Cartesian3.add(cp, up, cp), Cartesian3.add(Nf, up, Nf), nudgeXZ(hp, mp), nudgeXZ(cp, Nf), Cartesian3.pack(hp, W, af), Cartesian3.pack(mp, W, af + 3), Cartesian3.pack(Nf, W, af + 6), Cartesian3.pack(cp, W, af + 9), up = Cartesian3.multiplyByScalar(
54003
- If,
54009
+ Pf,
54004
54010
  -2 * CesiumMath$1.EPSILON5,
54005
54011
  normalNudgeScratch
54006
54012
  ), Cartesian3.add(
@@ -54015,29 +54021,29 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
54015
54021
  mp,
54016
54022
  W,
54017
54023
  af + 15
54018
- ), Cartesian3.pack(Nf, W, af + 18), Cartesian3.pack(cp, W, af + 21), uf += 2, y += 3, lf += 16, af += 24, rf += 32, Sf += Ef, wf += qf;
54024
+ ), Cartesian3.pack(Nf, W, af + 18), Cartesian3.pack(cp, W, af + 21), uf += 2, y += 3, lf += 16, af += 24, rf += 32, Sf += Ef, wf += Qf;
54019
54025
  }
54020
54026
  y = 0;
54021
- let Lf = 0;
54027
+ let Of = 0;
54022
54028
  for (p = 0; p < L; p++) {
54023
54029
  for (of = 0; of < REFERENCE_INDICES_LENGTH; of++)
54024
- H[y + of] = REFERENCE_INDICES[of] + Lf;
54025
- Lf += 8, y += REFERENCE_INDICES_LENGTH;
54030
+ H[y + of] = REFERENCE_INDICES[of] + Of;
54031
+ Of += 8, y += REFERENCE_INDICES_LENGTH;
54026
54032
  }
54027
- const Pf = scratchBoundingSpheres;
54033
+ const Mf = scratchBoundingSpheres;
54028
54034
  BoundingSphere.fromVertices(
54029
54035
  o,
54030
54036
  Cartesian3.ZERO,
54031
54037
  3,
54032
- Pf[0]
54038
+ Mf[0]
54033
54039
  ), BoundingSphere.fromVertices(
54034
54040
  s,
54035
54041
  Cartesian3.ZERO,
54036
54042
  3,
54037
- Pf[1]
54043
+ Mf[1]
54038
54044
  );
54039
- const Xf = BoundingSphere.fromBoundingSpheres(Pf);
54040
- Xf.radius += Vf / (L * 2);
54045
+ const Xf = BoundingSphere.fromBoundingSpheres(Mf);
54046
+ Xf.radius += If / (L * 2);
54041
54047
  const Bf = {
54042
54048
  position: new GeometryAttribute({
54043
54049
  componentDatatype: ComponentDatatype$1.DOUBLE,
@@ -61873,18 +61879,18 @@ function simplepolygon(t) {
61873
61879
  );
61874
61880
  var c = o.length, d = isects(
61875
61881
  t,
61876
- function(ff, mf, Sf, wf, Vf, Lf, Pf, Xf, Bf, Tf, Xd, gf) {
61882
+ function(ff, mf, Sf, wf, If, Of, Mf, Xf, Bf, kf, Xd, gf) {
61877
61883
  return [
61878
61884
  ff,
61879
61885
  mf,
61880
61886
  Sf,
61881
61887
  wf,
61882
- Vf,
61883
- Lf,
61884
- Pf,
61888
+ If,
61889
+ Of,
61890
+ Mf,
61885
61891
  Xf,
61886
61892
  Bf,
61887
- Tf,
61893
+ kf,
61888
61894
  Xd,
61889
61895
  gf
61890
61896
  ];
@@ -62539,9 +62545,9 @@ const Pm = class Pm {
62539
62545
  const o = getUintArray(n);
62540
62546
  if (!o)
62541
62547
  return [];
62542
- tp(Pm, zm, !0);
62548
+ ep(Pm, zm, !0);
62543
62549
  const s = new Pm(n, o);
62544
- return tp(Pm, zm, !1), s;
62550
+ return ep(Pm, zm, !1), s;
62545
62551
  }
62546
62552
  push(n) {
62547
62553
  this.heap[this.length++] = n;
@@ -62676,7 +62682,7 @@ const pg = class pg {
62676
62682
  const Ai = o ? getUintArray(o) : Array;
62677
62683
  if (!Ai)
62678
62684
  throw new Error("invalid max value: " + o);
62679
- if (tp(this, Wp, o), tp(this, zp, z), this.maxEntrySize = H || Cf(this, zp), this.sizeCalculation = W, this.sizeCalculation) {
62685
+ if (ep(this, Wp, o), ep(this, zp, z), this.maxEntrySize = H || Cf(this, zp), this.sizeCalculation = W, this.sizeCalculation) {
62680
62686
  if (!Cf(this, zp) && !this.maxEntrySize)
62681
62687
  throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
62682
62688
  if (typeof this.sizeCalculation != "function")
@@ -62684,7 +62690,7 @@ const pg = class pg {
62684
62690
  }
62685
62691
  if (oe !== void 0 && typeof oe != "function")
62686
62692
  throw new TypeError("fetchMethod must be a function if specified");
62687
- if (tp(this, Bm, oe), tp(this, wm, !!oe), tp(this, Ip, /* @__PURE__ */ new Map()), tp(this, xp, new Array(o).fill(void 0)), tp(this, ap, new Array(o).fill(void 0)), tp(this, Gp, new Ai(o)), tp(this, Xp, new Ai(o)), tp(this, Lp, 0), tp(this, Vp, 0), tp(this, Hp, Stack.create(o)), tp(this, Pp, 0), tp(this, Bp, 0), typeof E == "function" && tp(this, jp, E), typeof L == "function" ? (tp(this, Zp, L), tp(this, Op, [])) : (tp(this, Zp, void 0), tp(this, Op, void 0)), tp(this, Yp, !!Cf(this, jp)), tp(this, Np, !!Cf(this, Zp)), this.noDisposeOnSet = !!F, this.noUpdateTTL = !!N, this.noDeleteOnFetchRejection = !!nt, this.allowStaleOnFetchRejection = !!lt, this.allowStaleOnFetchAbort = !!mt, this.ignoreFetchAbort = !!pi, this.maxEntrySize !== 0) {
62693
+ if (ep(this, Bm, oe), ep(this, wm, !!oe), ep(this, Ip, /* @__PURE__ */ new Map()), ep(this, xp, new Array(o).fill(void 0)), ep(this, ap, new Array(o).fill(void 0)), ep(this, Gp, new Ai(o)), ep(this, Xp, new Ai(o)), ep(this, Lp, 0), ep(this, Vp, 0), ep(this, Hp, Stack.create(o)), ep(this, Pp, 0), ep(this, Bp, 0), typeof E == "function" && ep(this, jp, E), typeof L == "function" ? (ep(this, Zp, L), ep(this, Op, [])) : (ep(this, Zp, void 0), ep(this, Op, void 0)), ep(this, Yp, !!Cf(this, jp)), ep(this, Np, !!Cf(this, Zp)), this.noDisposeOnSet = !!F, this.noUpdateTTL = !!N, this.noDeleteOnFetchRejection = !!nt, this.allowStaleOnFetchRejection = !!lt, this.allowStaleOnFetchAbort = !!mt, this.ignoreFetchAbort = !!pi, this.maxEntrySize !== 0) {
62688
62694
  if (Cf(this, zp) !== 0 && !isPosInt(Cf(this, zp)))
62689
62695
  throw new TypeError("maxSize must be a positive integer if specified");
62690
62696
  if (!isPosInt(this.maxEntrySize))
@@ -62961,7 +62967,7 @@ const pg = class pg {
62961
62967
  return y && (y.set = "miss", y.maxEntrySizeExceeded = !0), this.delete(n), this;
62962
62968
  let F = Cf(this, Pp) === 0 ? void 0 : Cf(this, Ip).get(n);
62963
62969
  if (F === void 0)
62964
- F = Cf(this, Pp) === 0 ? Cf(this, Vp) : Cf(this, Hp).length !== 0 ? Cf(this, Hp).pop() : Cf(this, Pp) === Cf(this, Wp) ? Jf(this, jm, sg).call(this, !1) : Cf(this, Pp), Cf(this, xp)[F] = n, Cf(this, ap)[F] = o, Cf(this, Ip).set(n, F), Cf(this, Gp)[Cf(this, Vp)] = F, Cf(this, Xp)[F] = Cf(this, Vp), tp(this, Vp, F), ag(this, Pp)._++, Cf(this, $m).call(this, F, L, y), y && (y.set = "add"), E = !1;
62970
+ F = Cf(this, Pp) === 0 ? Cf(this, Vp) : Cf(this, Hp).length !== 0 ? Cf(this, Hp).pop() : Cf(this, Pp) === Cf(this, Wp) ? Jf(this, jm, sg).call(this, !1) : Cf(this, Pp), Cf(this, xp)[F] = n, Cf(this, ap)[F] = o, Cf(this, Ip).set(n, F), Cf(this, Gp)[Cf(this, Vp)] = F, Cf(this, Xp)[F] = Cf(this, Vp), ep(this, Vp, F), ag(this, Pp)._++, Cf(this, $m).call(this, F, L, y), y && (y.set = "add"), E = !1;
62965
62971
  else {
62966
62972
  Jf(this, Dm, eg).call(this, F);
62967
62973
  const W = Cf(this, ap)[F];
@@ -63134,7 +63140,7 @@ const pg = class pg {
63134
63140
  else {
63135
63141
  Cf(this, Am).call(this, p);
63136
63142
  const y = Cf(this, ap)[p];
63137
- Jf(this, yp, Sp).call(this, y) ? y.__abortController.abort(new Error("deleted")) : (Cf(this, Yp) || Cf(this, Np)) && (Cf(this, Yp) && ((s = Cf(this, jp)) == null || s.call(this, y, n, "delete")), Cf(this, Np) && ((c = Cf(this, Op)) == null || c.push([y, n, "delete"]))), Cf(this, Ip).delete(n), Cf(this, xp)[p] = void 0, Cf(this, ap)[p] = void 0, p === Cf(this, Vp) ? tp(this, Vp, Cf(this, Xp)[p]) : p === Cf(this, Lp) ? tp(this, Lp, Cf(this, Gp)[p]) : (Cf(this, Gp)[Cf(this, Xp)[p]] = Cf(this, Gp)[p], Cf(this, Xp)[Cf(this, Gp)[p]] = Cf(this, Xp)[p]), ag(this, Pp)._--, Cf(this, Hp).push(p);
63143
+ Jf(this, yp, Sp).call(this, y) ? y.__abortController.abort(new Error("deleted")) : (Cf(this, Yp) || Cf(this, Np)) && (Cf(this, Yp) && ((s = Cf(this, jp)) == null || s.call(this, y, n, "delete")), Cf(this, Np) && ((c = Cf(this, Op)) == null || c.push([y, n, "delete"]))), Cf(this, Ip).delete(n), Cf(this, xp)[p] = void 0, Cf(this, ap)[p] = void 0, p === Cf(this, Vp) ? ep(this, Vp, Cf(this, Xp)[p]) : p === Cf(this, Lp) ? ep(this, Lp, Cf(this, Gp)[p]) : (Cf(this, Gp)[Cf(this, Xp)[p]] = Cf(this, Gp)[p], Cf(this, Xp)[Cf(this, Gp)[p]] = Cf(this, Xp)[p]), ag(this, Pp)._--, Cf(this, Hp).push(p);
63138
63144
  }
63139
63145
  }
63140
63146
  if (Cf(this, Np) && ((d = Cf(this, Op)) != null && d.length)) {
@@ -63159,7 +63165,7 @@ const pg = class pg {
63159
63165
  Cf(this, Yp) && ((n = Cf(this, jp)) == null || n.call(this, d, h, "delete")), Cf(this, Np) && ((o = Cf(this, Op)) == null || o.push([d, h, "delete"]));
63160
63166
  }
63161
63167
  }
63162
- if (Cf(this, Ip).clear(), Cf(this, ap).fill(void 0), Cf(this, xp).fill(void 0), Cf(this, $p) && Cf(this, qp) && (Cf(this, $p).fill(0), Cf(this, qp).fill(0)), Cf(this, Qp) && Cf(this, Qp).fill(0), tp(this, Lp, 0), tp(this, Vp, 0), Cf(this, Hp).length = 0, tp(this, Bp, 0), tp(this, Pp, 0), Cf(this, Np) && Cf(this, Op)) {
63168
+ if (Cf(this, Ip).clear(), Cf(this, ap).fill(void 0), Cf(this, xp).fill(void 0), Cf(this, $p) && Cf(this, qp) && (Cf(this, $p).fill(0), Cf(this, qp).fill(0)), Cf(this, Qp) && Cf(this, Qp).fill(0), ep(this, Lp, 0), ep(this, Vp, 0), Cf(this, Hp).length = 0, ep(this, Bp, 0), ep(this, Pp, 0), Cf(this, Np) && Cf(this, Op)) {
63163
63169
  const c = Cf(this, Op);
63164
63170
  let d;
63165
63171
  for (; d = c == null ? void 0 : c.shift(); )
@@ -63169,16 +63175,16 @@ const pg = class pg {
63169
63175
  };
63170
63176
  Wp = new WeakMap(), zp = new WeakMap(), jp = new WeakMap(), Zp = new WeakMap(), Bm = new WeakMap(), Pp = new WeakMap(), Bp = new WeakMap(), Ip = new WeakMap(), xp = new WeakMap(), ap = new WeakMap(), Gp = new WeakMap(), Xp = new WeakMap(), Lp = new WeakMap(), Vp = new WeakMap(), Hp = new WeakMap(), Op = new WeakMap(), Qp = new WeakMap(), qp = new WeakMap(), $p = new WeakMap(), Yp = new WeakMap(), wm = new WeakMap(), Np = new WeakMap(), tg = new WeakSet(), dg = function() {
63171
63177
  const n = new ZeroArray(Cf(this, Wp)), o = new ZeroArray(Cf(this, Wp));
63172
- tp(this, $p, n), tp(this, qp, o), tp(this, ng, (d, h, p = perf.now()) => {
63178
+ ep(this, $p, n), ep(this, qp, o), ep(this, ng, (d, h, p = perf.now()) => {
63173
63179
  if (o[d] = h !== 0 ? p : 0, n[d] = h, h !== 0 && this.ttlAutopurge) {
63174
63180
  const y = setTimeout(() => {
63175
63181
  Cf(this, Up).call(this, d) && this.delete(Cf(this, xp)[d]);
63176
63182
  }, h + 1);
63177
63183
  y.unref && y.unref();
63178
63184
  }
63179
- }), tp(this, Om, (d) => {
63185
+ }), ep(this, Om, (d) => {
63180
63186
  o[d] = n[d] !== 0 ? perf.now() : 0;
63181
- }), tp(this, vm, (d, h) => {
63187
+ }), ep(this, vm, (d, h) => {
63182
63188
  if (n[h]) {
63183
63189
  const p = n[h], y = o[h];
63184
63190
  d.ttl = p, d.start = y, d.now = s || c(), d.remainingTTL = d.now + p - y;
@@ -63197,12 +63203,12 @@ Wp = new WeakMap(), zp = new WeakMap(), jp = new WeakMap(), Zp = new WeakMap(),
63197
63203
  this.getRemainingTTL = (d) => {
63198
63204
  const h = Cf(this, Ip).get(d);
63199
63205
  return h === void 0 ? 0 : n[h] === 0 || o[h] === 0 ? 1 / 0 : o[h] + n[h] - (s || c());
63200
- }, tp(this, Up, (d) => n[d] !== 0 && o[d] !== 0 && (s || c()) - o[d] > n[d]);
63206
+ }, ep(this, Up, (d) => n[d] !== 0 && o[d] !== 0 && (s || c()) - o[d] > n[d]);
63201
63207
  }, Om = new WeakMap(), vm = new WeakMap(), ng = new WeakMap(), Up = new WeakMap(), lg = new WeakSet(), gg = function() {
63202
63208
  const n = new ZeroArray(Cf(this, Wp));
63203
- tp(this, Bp, 0), tp(this, Qp, n), tp(this, Am, (o) => {
63204
- tp(this, Bp, Cf(this, Bp) - n[o]), n[o] = 0;
63205
- }), tp(this, ig, (o, s, c, d) => {
63209
+ ep(this, Bp, 0), ep(this, Qp, n), ep(this, Am, (o) => {
63210
+ ep(this, Bp, Cf(this, Bp) - n[o]), n[o] = 0;
63211
+ }), ep(this, ig, (o, s, c, d) => {
63206
63212
  if (Jf(this, yp, Sp).call(this, s))
63207
63213
  return 0;
63208
63214
  if (!isPosInt(c))
@@ -63214,13 +63220,13 @@ Wp = new WeakMap(), zp = new WeakMap(), jp = new WeakMap(), Zp = new WeakMap(),
63214
63220
  } else
63215
63221
  throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
63216
63222
  return c;
63217
- }), tp(this, $m, (o, s, c) => {
63223
+ }), ep(this, $m, (o, s, c) => {
63218
63224
  if (n[o] = s, Cf(this, zp)) {
63219
63225
  const d = Cf(this, zp) - n[o];
63220
63226
  for (; Cf(this, Bp) > d; )
63221
63227
  Jf(this, jm, sg).call(this, !0);
63222
63228
  }
63223
- tp(this, Bp, Cf(this, Bp) + n[o]), c && (c.entrySize = s, c.totalCalculatedSize = Cf(this, Bp));
63229
+ ep(this, Bp, Cf(this, Bp) + n[o]), c && (c.entrySize = s, c.totalCalculatedSize = Cf(this, Bp));
63224
63230
  });
63225
63231
  }, Am = new WeakMap(), $m = new WeakMap(), ig = new WeakMap(), Kp = new WeakSet(), _m = function* ({ allowStale: n = this.allowStale } = {}) {
63226
63232
  if (Cf(this, Pp))
@@ -63235,7 +63241,7 @@ Wp = new WeakMap(), zp = new WeakMap(), jp = new WeakMap(), Zp = new WeakMap(),
63235
63241
  }, jm = new WeakSet(), sg = function(n) {
63236
63242
  var d, h;
63237
63243
  const o = Cf(this, Lp), s = Cf(this, xp)[o], c = Cf(this, ap)[o];
63238
- return Cf(this, wm) && Jf(this, yp, Sp).call(this, c) ? c.__abortController.abort(new Error("evicted")) : (Cf(this, Yp) || Cf(this, Np)) && (Cf(this, Yp) && ((d = Cf(this, jp)) == null || d.call(this, c, s, "evict")), Cf(this, Np) && ((h = Cf(this, Op)) == null || h.push([c, s, "evict"]))), Cf(this, Am).call(this, o), n && (Cf(this, xp)[o] = void 0, Cf(this, ap)[o] = void 0, Cf(this, Hp).push(o)), Cf(this, Pp) === 1 ? (tp(this, Lp, tp(this, Vp, 0)), Cf(this, Hp).length = 0) : tp(this, Lp, Cf(this, Gp)[o]), Cf(this, Ip).delete(s), ag(this, Pp)._--, o;
63244
+ return Cf(this, wm) && Jf(this, yp, Sp).call(this, c) ? c.__abortController.abort(new Error("evicted")) : (Cf(this, Yp) || Cf(this, Np)) && (Cf(this, Yp) && ((d = Cf(this, jp)) == null || d.call(this, c, s, "evict")), Cf(this, Np) && ((h = Cf(this, Op)) == null || h.push([c, s, "evict"]))), Cf(this, Am).call(this, o), n && (Cf(this, xp)[o] = void 0, Cf(this, ap)[o] = void 0, Cf(this, Hp).push(o)), Cf(this, Pp) === 1 ? (ep(this, Lp, ep(this, Vp, 0)), Cf(this, Hp).length = 0) : ep(this, Lp, Cf(this, Gp)[o]), Cf(this, Ip).delete(s), ag(this, Pp)._--, o;
63239
63245
  }, Qm = new WeakSet(), cg = function(n, o, s, c) {
63240
63246
  const d = o === void 0 ? void 0 : Cf(this, ap)[o];
63241
63247
  if (Jf(this, yp, Sp).call(this, d))
@@ -63282,7 +63288,7 @@ Wp = new WeakMap(), zp = new WeakMap(), jp = new WeakMap(), Zp = new WeakMap(),
63282
63288
  }, og = new WeakSet(), fg = function(n, o) {
63283
63289
  Cf(this, Xp)[o] = n, Cf(this, Gp)[n] = o;
63284
63290
  }, Dm = new WeakSet(), eg = function(n) {
63285
- n !== Cf(this, Vp) && (n === Cf(this, Lp) ? tp(this, Lp, Cf(this, Gp)[n]) : Jf(this, og, fg).call(this, Cf(this, Xp)[n], Cf(this, Gp)[n]), Jf(this, og, fg).call(this, Cf(this, Vp), n), tp(this, Vp, n));
63291
+ n !== Cf(this, Vp) && (n === Cf(this, Lp) ? ep(this, Lp, Cf(this, Gp)[n]) : Jf(this, og, fg).call(this, Cf(this, Xp)[n], Cf(this, Gp)[n]), Jf(this, og, fg).call(this, Cf(this, Vp), n), ep(this, Vp, n));
63286
63292
  };
63287
63293
  let LRUCache = pg;
63288
63294
  const SIDE_PLANES = [
@@ -64019,30 +64025,30 @@ const useHooks$6 = ({
64019
64025
  },
64020
64026
  [c]
64021
64027
  ), yt = useRef(), Ee = useCallback(
64022
- (pf, { position: ff, oppositePosition: mf, pointLocal: Sf, index: wf, layerId: Vf }) => {
64023
- var Df;
64028
+ (pf, { position: ff, oppositePosition: mf, pointLocal: Sf, index: wf, layerId: If }) => {
64029
+ var Gf;
64024
64030
  if (nf.current !== wf || !ff || !mf || !Sf || !c)
64025
64031
  return;
64026
- const Lf = pf.startPosition;
64032
+ const Of = pf.startPosition;
64027
64033
  if (yt.current === void 0) {
64028
- yt.current = new Cartesian2$1(Lf.x, Lf.y);
64034
+ yt.current = new Cartesian2$1(Of.x, Of.y);
64029
64035
  return;
64030
64036
  }
64031
- const Pf = new Cartesian2$1(Lf.x, Lf.y), Xf = Cartesian3$1.subtract(ff, mf, new Cartesian3$1()), Bf = Cartesian3$1.magnitude(Xf), Tf = Cartesian3$1.normalize(Xf, new Cartesian3$1()), { scaleAmount: Xd, pixelLengthAfterScaling: gf } = computeMouseMoveAmount(
64037
+ const Mf = new Cartesian2$1(Of.x, Of.y), Xf = Cartesian3$1.subtract(ff, mf, new Cartesian3$1()), Bf = Cartesian3$1.magnitude(Xf), kf = Cartesian3$1.normalize(Xf, new Cartesian3$1()), { scaleAmount: Xd, pixelLengthAfterScaling: gf } = computeMouseMoveAmount(
64032
64038
  c.scene,
64033
64039
  {
64034
64040
  startPosition: yt.current,
64035
- endPosition: Pf
64041
+ endPosition: Mf
64036
64042
  },
64037
64043
  ff,
64038
- Tf,
64044
+ kf,
64039
64045
  Bf
64040
64046
  );
64041
- yt.current = Pf.clone();
64042
- const yf = Cartesian3$1.normalize(Sf, new Cartesian3$1()), hf = Math.abs(Cartesian3$1.dot(new Cartesian3$1(1, 0, 0), yf)), df = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 1, 0), yf)), bf = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 0, 1), yf)), Ef = hf && df && bf;
64043
- if (Xd < 0 && (yf.x && yf.y && yf.y ? gf / Math.sqrt(2) : gf) < 20)
64047
+ yt.current = Mf.clone();
64048
+ const bf = Cartesian3$1.normalize(Sf, new Cartesian3$1()), hf = Math.abs(Cartesian3$1.dot(new Cartesian3$1(1, 0, 0), bf)), df = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 1, 0), bf)), yf = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 0, 1), bf)), Ef = hf && df && yf;
64049
+ if (Xd < 0 && (bf.x && bf.y && bf.y ? gf / Math.sqrt(2) : gf) < 20)
64044
64050
  return;
64045
- const Rf = Cartesian3$1.multiplyByScalar(
64051
+ const Tf = Cartesian3$1.multiplyByScalar(
64046
64052
  // Taking abs because scaling step is independent of axis direction
64047
64053
  // Scaling step is negative when scaling down and positive when scaling up
64048
64054
  Cartesian3$1.abs(
@@ -64050,46 +64056,46 @@ const useHooks$6 = ({
64050
64056
  Cartesian3$1.multiplyComponents(
64051
64057
  pi.scale,
64052
64058
  // For proportional scaling we scale equally along xyz
64053
- Ef ? new Cartesian3$1(1, 1, 1) : yf,
64059
+ Ef ? new Cartesian3$1(1, 1, 1) : bf,
64054
64060
  new Cartesian3$1()
64055
64061
  ),
64056
64062
  new Cartesian3$1()
64057
64063
  ),
64058
64064
  Xd,
64059
64065
  new Cartesian3$1()
64060
- ), vf = Cartesian3$1.multiplyByScalar(Xf, Xd / 2, new Cartesian3$1()), Of = yf.z < 0, Gf = Xd > 0;
64061
- !J && Gf && Of && Cartographic$1.fromCartesian(
64066
+ ), vf = Cartesian3$1.multiplyByScalar(Xf, Xd / 2, new Cartesian3$1()), Vf = bf.z < 0, Af = Xd > 0;
64067
+ !J && Af && Vf && Cartographic$1.fromCartesian(
64062
64068
  pi.translation,
64063
64069
  void 0,
64064
64070
  new Cartographic$1()
64065
- ).height - pi.scale.z / 2 - Math.abs(vf.z) < 0 && (Rf.z = 0);
64066
- const If = new Cartesian3$1(), zf = new Cartesian3$1();
64067
- Cartesian3$1.add(pi.scale, Rf, If), Cartesian3$1.add(pi.translation, vf, zf);
64068
- const Mf = c == null ? void 0 : c.scene.globe.ellipsoid.cartesianToCartographic(
64071
+ ).height - pi.scale.z / 2 - Math.abs(vf.z) < 0 && (Tf.z = 0);
64072
+ const Pf = new Cartesian3$1(), zf = new Cartesian3$1();
64073
+ Cartesian3$1.add(pi.scale, Tf, Pf), Cartesian3$1.add(pi.translation, vf, zf);
64074
+ const Rf = c == null ? void 0 : c.scene.globe.ellipsoid.cartesianToCartographic(
64069
64075
  zf
64070
64076
  );
64071
64077
  s == null || s({
64072
- layerId: Vf,
64078
+ layerId: If,
64073
64079
  scale: {
64074
- width: If.x,
64075
- length: If.y,
64076
- height: If.z,
64080
+ width: Pf.x,
64081
+ length: Pf.y,
64082
+ height: Pf.z,
64077
64083
  location: {
64078
- lat: Math$1.toDegrees(Mf == null ? void 0 : Mf.latitude),
64079
- lng: Math$1.toDegrees(Mf == null ? void 0 : Mf.longitude),
64080
- height: Mf == null ? void 0 : Mf.height
64084
+ lat: Math$1.toDegrees(Rf == null ? void 0 : Rf.latitude),
64085
+ lng: Math$1.toDegrees(Rf == null ? void 0 : Rf.longitude),
64086
+ height: Rf == null ? void 0 : Rf.height
64081
64087
  }
64082
64088
  }
64083
- }), (Df = d == null ? void 0 : d.onLayerEdit) == null || Df.call(d, {
64084
- layerId: Vf,
64089
+ }), (Gf = d == null ? void 0 : d.onLayerEdit) == null || Gf.call(d, {
64090
+ layerId: If,
64085
64091
  scale: {
64086
- width: If.x,
64087
- length: If.y,
64088
- height: If.z,
64092
+ width: Pf.x,
64093
+ length: Pf.y,
64094
+ height: Pf.z,
64089
64095
  location: {
64090
- lat: Math$1.toDegrees(Mf == null ? void 0 : Mf.latitude),
64091
- lng: Math$1.toDegrees(Mf == null ? void 0 : Mf.longitude),
64092
- height: Mf == null ? void 0 : Mf.height
64096
+ lat: Math$1.toDegrees(Rf == null ? void 0 : Rf.latitude),
64097
+ lng: Math$1.toDegrees(Rf == null ? void 0 : Rf.longitude),
64098
+ height: Rf == null ? void 0 : Rf.height
64093
64099
  }
64094
64100
  }
64095
64101
  });
@@ -64114,24 +64120,24 @@ const useHooks$6 = ({
64114
64120
  }
64115
64121
  const wf = Sf.x - uf.current;
64116
64122
  uf.current = Sf.x;
64117
- const Vf = 0.05, Lf = new HeadingPitchRoll$1(0, 0, 0);
64118
- Lf.heading = -wf * Vf, Lf.pitch = 0, Lf.roll = 0;
64119
- const Pf = new Quaternion$1();
64120
- Quaternion$1.multiply(pi.rotation, Quaternion$1.fromHeadingPitchRoll(Lf), Pf);
64121
- const { heading: Xf, pitch: Bf, roll: Tf } = HeadingPitchRoll$1.fromQuaternion(Pf);
64123
+ const If = 0.05, Of = new HeadingPitchRoll$1(0, 0, 0);
64124
+ Of.heading = -wf * If, Of.pitch = 0, Of.roll = 0;
64125
+ const Mf = new Quaternion$1();
64126
+ Quaternion$1.multiply(pi.rotation, Quaternion$1.fromHeadingPitchRoll(Of), Mf);
64127
+ const { heading: Xf, pitch: Bf, roll: kf } = HeadingPitchRoll$1.fromQuaternion(Mf);
64122
64128
  s == null || s({
64123
64129
  layerId: mf,
64124
64130
  rotate: {
64125
64131
  heading: Xf,
64126
64132
  pitch: Bf,
64127
- roll: Tf
64133
+ roll: kf
64128
64134
  }
64129
64135
  }), (Xd = d == null ? void 0 : d.onLayerEdit) == null || Xd.call(d, {
64130
64136
  layerId: mf,
64131
64137
  rotate: {
64132
64138
  heading: Xf,
64133
64139
  pitch: Bf,
64134
- roll: Tf
64140
+ roll: kf
64135
64141
  }
64136
64142
  });
64137
64143
  },
@@ -66705,11 +66711,11 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
66705
66711
  const wf = useMemo(
66706
66712
  () => pf ? new CallbackProperty$1(() => Sf.current, !1) : void 0,
66707
66713
  [pf]
66708
- ), Vf = useMemo(() => h ? Cartesian3$1.fromDegrees(h[0], h[1], h[2]) : void 0, [h]), Lf = useMemo(() => E && h && typeof h[2] == "number" ? [
66714
+ ), If = useMemo(() => h ? Cartesian3$1.fromDegrees(h[0], h[1], h[2]) : void 0, [h]), Of = useMemo(() => E && h && typeof h[2] == "number" ? [
66709
66715
  Cartesian3$1.fromDegrees(h[0], h[1], h[2]),
66710
66716
  Cartesian3$1.fromDegrees(h[0], h[1], 0)
66711
- ] : void 0, [h, E]), Pf = !F || F === "image", [Xf, Bf, Tf] = useIcon({
66712
- image: Pf ? Vd : void 0,
66717
+ ] : void 0, [h, E]), Mf = !F || F === "image", [Xf, Bf, kf] = useIcon({
66718
+ image: Mf ? Vd : void 0,
66713
66719
  imageSize: Gd,
66714
66720
  crop: yt,
66715
66721
  shadow: Ee,
@@ -66723,45 +66729,45 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
66723
66729
  ), gf = useMemo(
66724
66730
  () => lf ? new Cartesian3$1(...lf) : void 0,
66725
66731
  [lf]
66726
- ), yf = useMemo(() => {
66732
+ ), bf = useMemo(() => {
66727
66733
  if (Xd)
66728
66734
  return Xd;
66729
- const Qf = 15, qf = (Pf ? Bf : L) / 2 + Qf, kf = (Pf ? Tf : L) / 2 + Qf;
66735
+ const tp = 15, Qf = (Mf ? Bf : L) / 2 + tp, Df = (Mf ? kf : L) / 2 + tp;
66730
66736
  return new Cartesian2$1(
66731
- J.includes("left") || J.includes("right") ? qf * (J.includes("left") ? -1 : 1) : 0,
66732
- J.includes("top") || J.includes("bottom") ? kf * (J.includes("top") ? -1 : 1) : 0
66737
+ J.includes("left") || J.includes("right") ? Qf * (J.includes("left") ? -1 : 1) : 0,
66738
+ J.includes("top") || J.includes("bottom") ? Df * (J.includes("top") ? -1 : 1) : 0
66733
66739
  );
66734
- }, [Pf, Bf, L, Tf, J, Xd]), hf = useMemo(() => Color$3.WHITE.withAlpha(0.4), []), df = useRef(null), bf = getTag((np = df.current) == null ? void 0 : np.cesiumElement), Ef = useMemo(
66740
+ }, [Mf, Bf, L, kf, J, Xd]), hf = useMemo(() => Color$3.WHITE.withAlpha(0.4), []), df = useRef(null), yf = getTag((np = df.current) == null ? void 0 : np.cesiumElement), Ef = useMemo(
66735
66741
  () => {
66736
- var Qf, qf;
66742
+ var tp, Qf;
66737
66743
  return toColor$1(
66738
- bf != null && bf.isFeatureSelected && typeof ((Qf = c == null ? void 0 : c.marker) == null ? void 0 : Qf.selectedFeatureColor) == "string" ? (qf = c.marker) == null ? void 0 : qf.selectedFeatureColor : ef
66744
+ yf != null && yf.isFeatureSelected && typeof ((tp = c == null ? void 0 : c.marker) == null ? void 0 : tp.selectedFeatureColor) == "string" ? (Qf = c.marker) == null ? void 0 : Qf.selectedFeatureColor : ef
66739
66745
  );
66740
66746
  },
66741
- [ef, c, bf == null ? void 0 : bf.isFeatureSelected]
66742
- ), Rf = useMemo(
66747
+ [ef, c, yf == null ? void 0 : yf.isFeatureSelected]
66748
+ ), Tf = useMemo(
66743
66749
  () => {
66744
- var Qf, qf;
66750
+ var tp, Qf;
66745
66751
  return toColor$1(
66746
- bf != null && bf.isFeatureSelected && typeof ((Qf = c == null ? void 0 : c.marker) == null ? void 0 : Qf.selectedFeatureColor) == "string" ? (qf = c.marker) == null ? void 0 : qf.selectedFeatureColor : N
66752
+ yf != null && yf.isFeatureSelected && typeof ((tp = c == null ? void 0 : c.marker) == null ? void 0 : tp.selectedFeatureColor) == "string" ? (Qf = c.marker) == null ? void 0 : Qf.selectedFeatureColor : N
66747
66753
  );
66748
66754
  },
66749
- [N, c, bf == null ? void 0 : bf.isFeatureSelected]
66750
- ), vf = useMemo(() => toColor$1(z), [z]), Of = useMemo(() => toColor$1(oe == null ? void 0 : oe.color), [oe == null ? void 0 : oe.color]), Gf = useMemo(
66755
+ [N, c, yf == null ? void 0 : yf.isFeatureSelected]
66756
+ ), vf = useMemo(() => toColor$1(z), [z]), Vf = useMemo(() => toColor$1(oe == null ? void 0 : oe.color), [oe == null ? void 0 : oe.color]), Af = useMemo(
66751
66757
  () => toColor$1(mt),
66752
66758
  [mt]
66753
- ), If = useMemo(
66759
+ ), Pf = useMemo(
66754
66760
  // https://cesium.com/learn/cesiumjs/ref-doc/LabelGraphics.html?classFilter=labelgra#backgroundPadding
66755
66761
  () => new Cartesian2$1(pi || 7, Ai || 5),
66756
66762
  [pi, Ai]
66757
- ), zf = useMemo(() => toTimeInterval(d == null ? void 0 : d.interval), [d == null ? void 0 : d.interval]), Mf = useMemo(
66763
+ ), zf = useMemo(() => toTimeInterval(d == null ? void 0 : d.interval), [d == null ? void 0 : d.interval]), Rf = useMemo(
66758
66764
  () => toDistanceDisplayCondition(t == null ? void 0 : t.near, t == null ? void 0 : t.far),
66759
66765
  [t == null ? void 0 : t.near, t == null ? void 0 : t.far]
66760
- ), Df = useMemo(() => String(nt), [nt]);
66766
+ ), Gf = useMemo(() => String(nt), [nt]);
66761
66767
  return useEffect(() => {
66762
66768
  p == null || p();
66763
- }), !Vf || !o || !y ? null : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
66764
- Lf && /* @__PURE__ */ jsxRuntimeExports.jsx(
66769
+ }), !If || !o || !y ? null : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
66770
+ Of && /* @__PURE__ */ jsxRuntimeExports.jsx(
66765
66771
  EntityExt,
66766
66772
  {
66767
66773
  layerId: c == null ? void 0 : c.id,
@@ -66773,10 +66779,10 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
66773
66779
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
66774
66780
  ua$1,
66775
66781
  {
66776
- positions: Lf,
66782
+ positions: Of,
66777
66783
  material: hf,
66778
66784
  width: 0.5,
66779
- distanceDisplayCondition: Mf
66785
+ distanceDisplayCondition: Rf
66780
66786
  }
66781
66787
  )
66782
66788
  }
@@ -66785,7 +66791,7 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
66785
66791
  EntityExt,
66786
66792
  {
66787
66793
  id: n,
66788
- position: pf ? wf : mf ?? Vf,
66794
+ position: pf ? wf : mf ?? If,
66789
66795
  layerId: c == null ? void 0 : c.id,
66790
66796
  featureId: d == null ? void 0 : d.id,
66791
66797
  ref: df,
@@ -66798,11 +66804,11 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
66798
66804
  oa$1,
66799
66805
  {
66800
66806
  pixelSize: L,
66801
- color: Rf,
66807
+ color: Tf,
66802
66808
  outlineColor: vf,
66803
66809
  outlineWidth: H,
66804
66810
  heightReference: heightReference(rf),
66805
- distanceDisplayCondition: Mf
66811
+ distanceDisplayCondition: Rf
66806
66812
  }
66807
66813
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
66808
66814
  gs$1,
@@ -66812,7 +66818,7 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
66812
66818
  horizontalOrigin: ho$1(tf),
66813
66819
  verticalOrigin: vo$1(nf),
66814
66820
  heightReference: heightReference(rf),
66815
- distanceDisplayCondition: Mf,
66821
+ distanceDisplayCondition: Rf,
66816
66822
  sizeInMeters: md,
66817
66823
  pixelOffset: Xd,
66818
66824
  eyeOffset: gf
@@ -66823,15 +66829,15 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
66823
66829
  {
66824
66830
  horizontalOrigin: J === "right" || J == "righttop" || J === "rightbottom" ? HorizontalOrigin$2.LEFT : J === "left" || J === "lefttop" || J === "leftbottom" ? HorizontalOrigin$2.RIGHT : HorizontalOrigin$2.CENTER,
66825
66831
  verticalOrigin: J === "bottom" || J === "rightbottom" || J === "leftbottom" ? VerticalOrigin$2.TOP : J === "top" || J === "righttop" || J === "lefttop" ? VerticalOrigin$2.BOTTOM : VerticalOrigin$2.CENTER,
66826
- pixelOffset: yf,
66827
- fillColor: Of,
66832
+ pixelOffset: bf,
66833
+ fillColor: Vf,
66828
66834
  font: toCSSFont(oe, { fontSize: 30 }),
66829
- text: Df,
66835
+ text: Gf,
66830
66836
  showBackground: lt,
66831
- backgroundColor: Gf,
66832
- backgroundPadding: If,
66837
+ backgroundColor: Af,
66838
+ backgroundPadding: Pf,
66833
66839
  heightReference: heightReference(rf),
66834
- distanceDisplayCondition: Mf
66840
+ distanceDisplayCondition: Rf
66835
66841
  }
66836
66842
  )
66837
66843
  ]
@@ -66931,7 +66937,7 @@ function Model({
66931
66937
  layer: d,
66932
66938
  feature: h
66933
66939
  }) {
66934
- var wf, Vf, Lf, Pf, Xf, Bf;
66940
+ var wf, If, Of, Mf, Xf, Bf;
66935
66941
  const p = extractSimpleLayerData(d), y = (p == null ? void 0 : p.type) === "gltf", E = useMemo(
66936
66942
  () => (c == null ? void 0 : c.type) === "Point" ? c.coordinates : o != null && o.location ? [o.location.lng, o.location.lat, o.height ?? 0] : void 0,
66937
66943
  [c == null ? void 0 : c.coordinates, c == null ? void 0 : c.type, o == null ? void 0 : o.height, o == null ? void 0 : o.location]
@@ -66974,29 +66980,29 @@ function Model({
66974
66980
  () => toDistanceDisplayCondition(o == null ? void 0 : o.near, o == null ? void 0 : o.far),
66975
66981
  [o == null ? void 0 : o.near, o == null ? void 0 : o.far]
66976
66982
  ), pf = useMemo(() => {
66977
- var hf, df, bf, Ef, Rf, vf, Of, Gf, If, zf;
66978
- const Tf = new ImageBasedLighting();
66979
- if (!(o != null && o.specularEnvironmentMaps) && !(o != null && o.sphericalHarmonicCoefficients) && !((df = (hf = s == null ? void 0 : s.scene) == null ? void 0 : hf.imageBasedLighting) != null && df.specularEnvironmentMaps) && !((Ef = (bf = s == null ? void 0 : s.scene) == null ? void 0 : bf.imageBasedLighting) != null && Ef.sphericalHarmonicCoefficients))
66980
- return Tf;
66981
- const Xd = (o == null ? void 0 : o.specularEnvironmentMaps) ?? ((vf = (Rf = s == null ? void 0 : s.scene) == null ? void 0 : Rf.imageBasedLighting) == null ? void 0 : vf.specularEnvironmentMaps), gf = (o == null ? void 0 : o.imageBasedLightIntensity) ?? ((Gf = (Of = s == null ? void 0 : s.scene) == null ? void 0 : Of.imageBasedLighting) == null ? void 0 : Gf.intensity), yf = arrayToCartecian3(
66982
- (o == null ? void 0 : o.sphericalHarmonicCoefficients) ?? ((zf = (If = s == null ? void 0 : s.scene) == null ? void 0 : If.imageBasedLighting) == null ? void 0 : zf.sphericalHarmonicCoefficients),
66983
+ var hf, df, yf, Ef, Tf, vf, Vf, Af, Pf, zf;
66984
+ const kf = new ImageBasedLighting();
66985
+ if (!(o != null && o.specularEnvironmentMaps) && !(o != null && o.sphericalHarmonicCoefficients) && !((df = (hf = s == null ? void 0 : s.scene) == null ? void 0 : hf.imageBasedLighting) != null && df.specularEnvironmentMaps) && !((Ef = (yf = s == null ? void 0 : s.scene) == null ? void 0 : yf.imageBasedLighting) != null && Ef.sphericalHarmonicCoefficients))
66986
+ return kf;
66987
+ const Xd = (o == null ? void 0 : o.specularEnvironmentMaps) ?? ((vf = (Tf = s == null ? void 0 : s.scene) == null ? void 0 : Tf.imageBasedLighting) == null ? void 0 : vf.specularEnvironmentMaps), gf = (o == null ? void 0 : o.imageBasedLightIntensity) ?? ((Af = (Vf = s == null ? void 0 : s.scene) == null ? void 0 : Vf.imageBasedLighting) == null ? void 0 : Af.intensity), bf = arrayToCartecian3(
66988
+ (o == null ? void 0 : o.sphericalHarmonicCoefficients) ?? ((zf = (Pf = s == null ? void 0 : s.scene) == null ? void 0 : Pf.imageBasedLighting) == null ? void 0 : zf.sphericalHarmonicCoefficients),
66983
66989
  gf
66984
66990
  );
66985
- return Xd && (Tf.specularEnvironmentMaps = Xd), yf && (Tf.sphericalHarmonicCoefficients = yf), Tf;
66991
+ return Xd && (kf.specularEnvironmentMaps = Xd), bf && (kf.sphericalHarmonicCoefficients = bf), kf;
66986
66992
  }, [
66987
66993
  o == null ? void 0 : o.specularEnvironmentMaps,
66988
66994
  o == null ? void 0 : o.sphericalHarmonicCoefficients,
66989
66995
  o == null ? void 0 : o.imageBasedLightIntensity,
66990
- (Vf = (wf = s == null ? void 0 : s.scene) == null ? void 0 : wf.imageBasedLighting) == null ? void 0 : Vf.specularEnvironmentMaps,
66991
- (Pf = (Lf = s == null ? void 0 : s.scene) == null ? void 0 : Lf.imageBasedLighting) == null ? void 0 : Pf.sphericalHarmonicCoefficients,
66996
+ (If = (wf = s == null ? void 0 : s.scene) == null ? void 0 : wf.imageBasedLighting) == null ? void 0 : If.specularEnvironmentMaps,
66997
+ (Mf = (Of = s == null ? void 0 : s.scene) == null ? void 0 : Of.imageBasedLighting) == null ? void 0 : Mf.sphericalHarmonicCoefficients,
66992
66998
  (Bf = (Xf = s == null ? void 0 : s.scene) == null ? void 0 : Xf.imageBasedLighting) == null ? void 0 : Bf.intensity
66993
66999
  ]), { viewer: ff } = De$1(), { requestRender: mf } = useContext(), Sf = useRef(!1);
66994
67000
  return useSceneEvent("postRender", () => {
66995
- const Tf = ff == null ? void 0 : ff.scene.primitives, Xd = (Tf == null ? void 0 : Tf.length) ?? 0;
67001
+ const kf = ff == null ? void 0 : ff.scene.primitives, Xd = (kf == null ? void 0 : kf.length) ?? 0;
66996
67002
  if (!(!Sf.current || !pf))
66997
67003
  for (let gf = 0; gf < Xd; gf++) {
66998
- const yf = Tf == null ? void 0 : Tf.get(gf);
66999
- yf instanceof Model$1 && yf.id && yf.id.id === t && (yf.imageBasedLighting = pf, Sf.current = !1, mf == null || mf());
67004
+ const bf = kf == null ? void 0 : kf.get(gf);
67005
+ bf instanceof Model$1 && bf.id && bf.id.id === t && (bf.imageBasedLighting = pf, Sf.current = !1, mf == null || mf());
67000
67006
  }
67001
67007
  }), useEffect(() => {
67002
67008
  pf && (Sf.current = !0);
@@ -77181,15 +77187,15 @@ const BUILTIN_BOX_SIDE_PLANES = [
77181
77187
  if (W.current) {
77182
77188
  const cf = (nt == null ? void 0 : nt[2]) || 0, pf = (() => {
77183
77189
  if (!c) {
77184
- const Pf = cf - ((lt == null ? void 0 : lt.height) || 0) / 2, Xf = tf.current;
77185
- if (Pf < Xf)
77186
- return cf + (Xf - Pf);
77190
+ const Mf = cf - ((lt == null ? void 0 : lt.height) || 0) / 2, Xf = tf.current;
77191
+ if (Mf < Xf)
77192
+ return cf + (Xf - Mf);
77187
77193
  }
77188
77194
  })(), ff = new Cartesian2$1(af.startPosition.x, af.startPosition.y), mf = new Cartesian2$1(af.endPosition.x, af.endPosition.y), Sf = Cartesian2$1.subtract(
77189
77195
  mf,
77190
77196
  ff,
77191
77197
  new Cartesian2$1()
77192
- ), wf = new Cartesian3$1(0, 0, Sf.y < 0 ? -1 : 1), { moveAmount: Vf } = computeMoveAmount(
77198
+ ), wf = new Cartesian3$1(0, 0, Sf.y < 0 ? -1 : 1), { moveAmount: If } = computeMoveAmount(
77193
77199
  z.scene,
77194
77200
  {
77195
77201
  startPosition: ff,
@@ -77197,11 +77203,11 @@ const BUILTIN_BOX_SIDE_PLANES = [
77197
77203
  },
77198
77204
  rf,
77199
77205
  wf
77200
- ), Lf = Cartesian3$1.multiplyByScalar(wf, Vf, new Cartesian3$1());
77201
- J((Pf) => [
77202
- (Pf == null ? void 0 : Pf[0]) || 0,
77203
- (Pf == null ? void 0 : Pf[1]) || 0,
77204
- (pf || (Pf == null ? void 0 : Pf[2]) || 0) + Lf.z
77206
+ ), Of = Cartesian3$1.multiplyByScalar(wf, If, new Cartesian3$1());
77207
+ J((Mf) => [
77208
+ (Mf == null ? void 0 : Mf[0]) || 0,
77209
+ (Mf == null ? void 0 : Mf[1]) || 0,
77210
+ (pf || (Mf == null ? void 0 : Mf[2]) || 0) + Of.z
77205
77211
  ]);
77206
77212
  } else {
77207
77213
  const cf = af.endPosition ? getLocationFromScreen(z.scene, af.endPosition.x, af.endPosition.y, !c) : void 0;
@@ -77635,7 +77641,7 @@ const useDrawClipping = ({
77635
77641
  onComputedFeatureFetch: y,
77636
77642
  onLayerFetch: E
77637
77643
  }) => {
77638
- var zf, Mf, Df, np, Qf, qf;
77644
+ var zf, Rf, Gf, np, tp, Qf;
77639
77645
  const { viewer: L } = De$1(), F = useRef(), { onLayerLoad: N } = useContext(), z = useRef(d == null ? void 0 : d.id);
77640
77646
  z.current = d == null ? void 0 : d.id;
77641
77647
  const {
@@ -77661,22 +77667,22 @@ const useDrawClipping = ({
77661
77667
  direction: Zd = "inside",
77662
77668
  builtinBoxProps: of,
77663
77669
  allowEnterGround: uf
77664
- } = useClippingBox({ clipping: J, boxId: n }), [lf, af] = useState(), { url: rf, type: cf, idProperty: pf } = useData(d), ff = !pi && !!pf, [mf, Sf] = useState(!1), wf = useRef(Ee), Vf = useMemo(() => {
77665
- var kf, Zf;
77666
- return (!((kf = wf.current) != null && kf.length) || !((Zf = wf.current) != null && Zf.every(
77670
+ } = useClippingBox({ clipping: J, boxId: n }), [lf, af] = useState(), { url: rf, type: cf, idProperty: pf } = useData(d), ff = !pi && !!pf, [mf, Sf] = useState(!1), wf = useRef(Ee), If = useMemo(() => {
77671
+ var Df, Zf;
77672
+ return (!((Df = wf.current) != null && Df.length) || !((Zf = wf.current) != null && Zf.every(
77667
77673
  (rp, lp) => {
77668
- var dp, hp, mp, cp, Nf, Af;
77669
- return ((dp = rp.normal) == null ? void 0 : dp.x) === ((hp = Ee == null ? void 0 : Ee[lp].normal) == null ? void 0 : hp.x) && ((mp = rp.normal) == null ? void 0 : mp.y) === ((cp = Ee == null ? void 0 : Ee[lp].normal) == null ? void 0 : cp.y) && ((Nf = rp.normal) == null ? void 0 : Nf.z) === ((Af = Ee == null ? void 0 : Ee[lp].normal) == null ? void 0 : Af.z) && rp.distance === (Ee == null ? void 0 : Ee[lp].distance);
77674
+ var dp, hp, mp, cp, Nf, Ff;
77675
+ return ((dp = rp.normal) == null ? void 0 : dp.x) === ((hp = Ee == null ? void 0 : Ee[lp].normal) == null ? void 0 : hp.x) && ((mp = rp.normal) == null ? void 0 : mp.y) === ((cp = Ee == null ? void 0 : Ee[lp].normal) == null ? void 0 : cp.y) && ((Nf = rp.normal) == null ? void 0 : Nf.z) === ((Ff = Ee == null ? void 0 : Ee[lp].normal) == null ? void 0 : Ff.z) && rp.distance === (Ee == null ? void 0 : Ee[lp].distance);
77670
77676
  }
77671
77677
  ))) && (wf.current = Ee), wf.current;
77672
- }, [Ee]), Lf = Zd === "inside" ? -1 : 1, [Pf] = useState(
77678
+ }, [Ee]), Of = Zd === "inside" ? -1 : 1, [Mf] = useState(
77673
77679
  () => new ClippingPlaneCollection({
77674
- planes: Vf == null ? void 0 : Vf.map(
77675
- (kf) => {
77680
+ planes: If == null ? void 0 : If.map(
77681
+ (Df) => {
77676
77682
  var Zf, rp, lp;
77677
77683
  return new ClippingPlane(
77678
- new Cartesian3$1((Zf = kf.normal) == null ? void 0 : Zf.x, (rp = kf.normal) == null ? void 0 : rp.y, (lp = kf.normal) == null ? void 0 : lp.z),
77679
- (kf.distance || 0) * Lf
77684
+ new Cartesian3$1((Zf = Df.normal) == null ? void 0 : Zf.x, (rp = Df.normal) == null ? void 0 : rp.y, (lp = Df.normal) == null ? void 0 : lp.z),
77685
+ (Df.distance || 0) * Of
77680
77686
  );
77681
77687
  }
77682
77688
  ),
@@ -77688,34 +77694,34 @@ const useDrawClipping = ({
77688
77694
  ...J == null ? void 0 : J.draw,
77689
77695
  tilesetRef: F,
77690
77696
  viewer: L,
77691
- clippingPlanes: Pf,
77697
+ clippingPlanes: Mf,
77692
77698
  isTilesetReady: mf
77693
- }), [Tf] = useState(() => new TilesetFeatureIndex()), Xd = useCallback(
77694
- (kf) => {
77695
- kf != null && kf.cesiumElement && attachTag(kf.cesiumElement, {
77699
+ }), [kf] = useState(() => new TilesetFeatureIndex()), Xd = useCallback(
77700
+ (Df) => {
77701
+ Df != null && Df.cesiumElement && attachTag(Df.cesiumElement, {
77696
77702
  layerId: (d == null ? void 0 : d.id) || t,
77697
- featureIndex: ff ? Tf : void 0,
77703
+ featureIndex: ff ? kf : void 0,
77698
77704
  appearanceType: "3dtiles"
77699
- }), d != null && d.id && (kf != null && kf.cesiumElement) && ((kf == null ? void 0 : kf.cesiumElement)[layerIdField] = d.id), F.current = kf == null ? void 0 : kf.cesiumElement;
77705
+ }), d != null && d.id && (Df != null && Df.cesiumElement) && ((Df == null ? void 0 : Df.cesiumElement)[layerIdField] = d.id), F.current = Df == null ? void 0 : Df.cesiumElement;
77700
77706
  },
77701
- [t, d == null ? void 0 : d.id, Tf, ff]
77702
- ), gf = useRef([]), yf = useRef(mt);
77703
- yf.current = mt;
77707
+ [t, d == null ? void 0 : d.id, kf, ff]
77708
+ ), gf = useRef([]), bf = useRef(mt);
77709
+ bf.current = mt;
77704
77710
  const [hf] = useState(() => /* @__PURE__ */ new Map());
77705
77711
  useEffect(() => {
77706
77712
  !F.current || !ff || !mf || Object.assign(F.current, {
77707
- onSelectFeature: (kf) => {
77708
- const Zf = getTag(kf);
77709
- Zf != null && Zf.featureId && (gf.current.push(Zf.featureId), hf.set(Zf.featureId, kf.color)), yf.current && (kf.color = toColor(yf.current) ?? kf.color);
77713
+ onSelectFeature: (Df) => {
77714
+ const Zf = getTag(Df);
77715
+ Zf != null && Zf.featureId && (gf.current.push(Zf.featureId), hf.set(Zf.featureId, Df.color)), bf.current && (Df.color = toColor(bf.current) ?? Df.color);
77710
77716
  },
77711
- onUnselectFeature: (kf) => {
77712
- const Zf = getTag(kf);
77717
+ onUnselectFeature: (Df) => {
77718
+ const Zf = getTag(Df);
77713
77719
  Zf != null && Zf.featureId && (gf.current = gf.current.filter(
77714
77720
  (rp) => rp !== Zf.featureId
77715
- )), kf.color = hf.get((Zf == null ? void 0 : Zf.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
77721
+ )), Df.color = hf.get((Zf == null ? void 0 : Zf.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
77716
77722
  }
77717
77723
  });
77718
- }, [hf, Tf, ff, mf]), useFeature({
77724
+ }, [hf, kf, ff, mf]), useFeature({
77719
77725
  id: t,
77720
77726
  tileset: F,
77721
77727
  layer: d,
@@ -77723,15 +77729,15 @@ const useDrawClipping = ({
77723
77729
  viewer: L,
77724
77730
  evalFeature: p,
77725
77731
  onComputedFeatureFetch: y,
77726
- featureIndex: Tf,
77732
+ featureIndex: kf,
77727
77733
  selectedFeatureIdsRef: gf,
77728
77734
  shouldUseFeatureIndex: ff,
77729
77735
  isTilesetReady: mf
77730
77736
  });
77731
- const [df, bf] = useState(0), Ef = useRef(!1), Rf = useCallback(
77732
- (kf) => {
77733
- Ef.current || !L || uf || (Ef.current = !0, sampleTerrainHeightFromCartesian(L.scene, kf).then((Zf) => {
77734
- bf(Zf ?? 0), Ef.current = !1;
77737
+ const [df, yf] = useState(0), Ef = useRef(!1), Tf = useCallback(
77738
+ (Df) => {
77739
+ Ef.current || !L || uf || (Ef.current = !0, sampleTerrainHeightFromCartesian(L.scene, Df).then((Zf) => {
77740
+ yf(Zf ?? 0), Ef.current = !1;
77735
77741
  }));
77736
77742
  },
77737
77743
  [uf, L]
@@ -77739,7 +77745,7 @@ const useDrawClipping = ({
77739
77745
  useEffect(() => {
77740
77746
  if (J != null && J.draw)
77741
77747
  return;
77742
- const kf = tf || (md ? [md.lng, md.lat, md.height ?? 0] : void 0), Zf = Cartesian3$1.fromDegrees((kf == null ? void 0 : kf[0]) || 0, (kf == null ? void 0 : kf[1]) || 0, (kf == null ? void 0 : kf[2]) || 0);
77748
+ const Df = tf || (md ? [md.lng, md.lat, md.height ?? 0] : void 0), Zf = Cartesian3$1.fromDegrees((Df == null ? void 0 : Df[0]) || 0, (Df == null ? void 0 : Df[1]) || 0, (Df == null ? void 0 : Df[2]) || 0);
77743
77749
  (async () => {
77744
77750
  if (!F.current || !mf)
77745
77751
  return;
@@ -77753,8 +77759,8 @@ const useDrawClipping = ({
77753
77759
  Matrix4$1.fromScale(dp, new Matrix4$1()),
77754
77760
  new Matrix4$1()
77755
77761
  ), cp = Matrix4$1.inverse(lp, new Matrix4$1());
77756
- Matrix4$1.multiply(cp, mp, Pf.modelMatrix);
77757
- })(), uf || Rf(Zf);
77762
+ Matrix4$1.multiply(cp, mp, Mf.modelMatrix);
77763
+ })(), uf || Tf(Zf);
77758
77764
  }, [
77759
77765
  Ai,
77760
77766
  Gd,
@@ -77764,81 +77770,81 @@ const useDrawClipping = ({
77764
77770
  ef,
77765
77771
  md,
77766
77772
  tf,
77767
- Pf.modelMatrix,
77768
- Rf,
77773
+ Mf.modelMatrix,
77774
+ Tf,
77769
77775
  uf,
77770
77776
  df,
77771
77777
  J == null ? void 0 : J.draw,
77772
77778
  mf
77773
77779
  ]), useEffect(() => {
77774
- J != null && J.draw || (Pf.enabled = sl);
77775
- }, [Pf, sl, J == null ? void 0 : J.draw]), useEffect(() => {
77776
- J != null && J.draw || (Pf.unionClippingRegions = Zd === "outside");
77777
- }, [Pf, Zd, J == null ? void 0 : J.draw]), useEffect(() => {
77778
- J != null && J.draw || (Pf.removeAll(), Vf == null || Vf.forEach(
77779
- (kf) => {
77780
+ J != null && J.draw || (Mf.enabled = sl);
77781
+ }, [Mf, sl, J == null ? void 0 : J.draw]), useEffect(() => {
77782
+ J != null && J.draw || (Mf.unionClippingRegions = Zd === "outside");
77783
+ }, [Mf, Zd, J == null ? void 0 : J.draw]), useEffect(() => {
77784
+ J != null && J.draw || (Mf.removeAll(), If == null || If.forEach(
77785
+ (Df) => {
77780
77786
  var Zf, rp, lp;
77781
- return Pf.add(
77787
+ return Mf.add(
77782
77788
  new ClippingPlane(
77783
- new Cartesian3$1((Zf = kf.normal) == null ? void 0 : Zf.x, (rp = kf.normal) == null ? void 0 : rp.y, (lp = kf.normal) == null ? void 0 : lp.z),
77784
- (kf.distance || 0) * Lf
77789
+ new Cartesian3$1((Zf = Df.normal) == null ? void 0 : Zf.x, (rp = Df.normal) == null ? void 0 : rp.y, (lp = Df.normal) == null ? void 0 : lp.z),
77790
+ (Df.distance || 0) * Of
77785
77791
  )
77786
77792
  );
77787
77793
  }
77788
77794
  ));
77789
- }, [Vf, Pf, Lf, J == null ? void 0 : J.draw]), useEffect(() => {
77795
+ }, [If, Mf, Of, J == null ? void 0 : J.draw]), useEffect(() => {
77790
77796
  if (!W) {
77791
77797
  af(void 0);
77792
77798
  return;
77793
77799
  }
77794
77800
  (async () => {
77795
- const kf = await fetch(W);
77796
- kf.ok && af(new Cesium3DTileStyle(await kf.json()));
77801
+ const Df = await fetch(W);
77802
+ Df.ok && af(new Cesium3DTileStyle(await Df.json()));
77797
77803
  })();
77798
77804
  }, [W]);
77799
77805
  const vf = useMemo(() => {
77800
77806
  if (cf !== "google-photorealistic" || !o)
77801
77807
  return;
77802
- const kf = GoogleMaps, Zf = defaultValue$2(lt, kf.defaultApiKey), rp = kf.getDefaultApiKeyCredit(Zf);
77808
+ const Df = GoogleMaps, Zf = defaultValue$2(lt, Df.defaultApiKey), rp = Df.getDefaultApiKeyCredit(Zf);
77803
77809
  return new Resource$2({
77804
- url: `${kf.mapTilesApiEndpoint}3dtiles/root.json`,
77810
+ url: `${Df.mapTilesApiEndpoint}3dtiles/root.json`,
77805
77811
  queryParameters: { key: Zf },
77806
77812
  credits: rp ? [rp] : void 0
77807
77813
  });
77808
- }, [lt, cf, o]), Of = useMemo(() => cf === "osm-buildings" && o ? IonResource.fromAssetId(96188, {
77814
+ }, [lt, cf, o]), Vf = useMemo(() => cf === "osm-buildings" && o ? IonResource.fromAssetId(96188, {
77809
77815
  accessToken: h == null ? void 0 : h.cesiumIonAccessToken
77810
- }) : vf || (cf === "3dtiles" && o ? rf ?? H : null), [o, H, rf, cf, h, vf]), Gf = useMemo(() => {
77811
- var dp, hp, mp, cp, Nf, Af, Yf, Kf, fp, up;
77816
+ }) : vf || (cf === "3dtiles" && o ? rf ?? H : null), [o, H, rf, cf, h, vf]), Af = useMemo(() => {
77817
+ var dp, hp, mp, cp, Nf, Ff, Yf, Kf, fp, up;
77812
77818
  if (!(s != null && s.specularEnvironmentMaps) && !(s != null && s.sphericalHarmonicCoefficients) && !((hp = (dp = c == null ? void 0 : c.scene) == null ? void 0 : dp.imageBasedLighting) != null && hp.specularEnvironmentMaps) && !((cp = (mp = c == null ? void 0 : c.scene) == null ? void 0 : mp.imageBasedLighting) != null && cp.sphericalHarmonicCoefficients))
77813
77819
  return;
77814
- const kf = new ImageBasedLighting(), Zf = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((Af = (Nf = c == null ? void 0 : c.scene) == null ? void 0 : Nf.imageBasedLighting) == null ? void 0 : Af.specularEnvironmentMaps), rp = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((Kf = (Yf = c == null ? void 0 : c.scene) == null ? void 0 : Yf.imageBasedLighting) == null ? void 0 : Kf.intensity), lp = arrayToCartecian3(
77820
+ const Df = new ImageBasedLighting(), Zf = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((Ff = (Nf = c == null ? void 0 : c.scene) == null ? void 0 : Nf.imageBasedLighting) == null ? void 0 : Ff.specularEnvironmentMaps), rp = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((Kf = (Yf = c == null ? void 0 : c.scene) == null ? void 0 : Yf.imageBasedLighting) == null ? void 0 : Kf.intensity), lp = arrayToCartecian3(
77815
77821
  (s == null ? void 0 : s.sphericalHarmonicCoefficients) ?? ((up = (fp = c == null ? void 0 : c.scene) == null ? void 0 : fp.imageBasedLighting) == null ? void 0 : up.sphericalHarmonicCoefficients),
77816
77822
  rp
77817
77823
  );
77818
- return Zf && (kf.specularEnvironmentMaps = Zf), lp && (kf.sphericalHarmonicCoefficients = lp), kf;
77824
+ return Zf && (Df.specularEnvironmentMaps = Zf), lp && (Df.sphericalHarmonicCoefficients = lp), Df;
77819
77825
  }, [
77820
77826
  s == null ? void 0 : s.specularEnvironmentMaps,
77821
77827
  s == null ? void 0 : s.sphericalHarmonicCoefficients,
77822
77828
  s == null ? void 0 : s.imageBasedLightIntensity,
77823
- (Mf = (zf = c == null ? void 0 : c.scene) == null ? void 0 : zf.imageBasedLighting) == null ? void 0 : Mf.specularEnvironmentMaps,
77824
- (np = (Df = c == null ? void 0 : c.scene) == null ? void 0 : Df.imageBasedLighting) == null ? void 0 : np.sphericalHarmonicCoefficients,
77825
- (qf = (Qf = c == null ? void 0 : c.scene) == null ? void 0 : Qf.imageBasedLighting) == null ? void 0 : qf.intensity
77826
- ]), If = useCallback(
77827
- (kf) => {
77828
- Sf(!0), E == null || E({ properties: kf.properties }), N == null || N({ layerId: z.current });
77829
+ (Rf = (zf = c == null ? void 0 : c.scene) == null ? void 0 : zf.imageBasedLighting) == null ? void 0 : Rf.specularEnvironmentMaps,
77830
+ (np = (Gf = c == null ? void 0 : c.scene) == null ? void 0 : Gf.imageBasedLighting) == null ? void 0 : np.sphericalHarmonicCoefficients,
77831
+ (Qf = (tp = c == null ? void 0 : c.scene) == null ? void 0 : tp.imageBasedLighting) == null ? void 0 : Qf.intensity
77832
+ ]), Pf = useCallback(
77833
+ (Df) => {
77834
+ Sf(!0), E == null || E({ properties: Df.properties }), N == null || N({ layerId: z.current });
77829
77835
  },
77830
77836
  [E, N]
77831
77837
  );
77832
77838
  return {
77833
- tilesetUrl: Of,
77839
+ tilesetUrl: Vf,
77834
77840
  ref: Xd,
77835
77841
  style: lf,
77836
- clippingPlanes: Pf,
77842
+ clippingPlanes: Mf,
77837
77843
  drawClippingEnabled: Xf,
77838
77844
  drawClippingEdgeProps: Bf,
77839
77845
  builtinBoxProps: of,
77840
- imageBasedLighting: Gf,
77841
- handleReady: If
77846
+ imageBasedLighting: Af,
77847
+ handleReady: Pf
77842
77848
  };
77843
77849
  };
77844
77850
  function Tileset({
@@ -79779,7 +79785,7 @@ const useIBL = ({
79779
79785
  }) => {
79780
79786
  var h, p, y, E, L, F, N, z, H, W, oe;
79781
79787
  const o = useMemo(() => {
79782
- var J, lt, mt, pi, Ai, Vd, Gd, md, tf, nf, ef, yt, Ee, sl, Zd, of, uf, lf, af, rf, cf, pf, ff, mf, Sf, wf, Vf;
79788
+ var J, lt, mt, pi, Ai, Vd, Gd, md, tf, nf, ef, yt, Ee, sl, Zd, of, uf, lf, af, rf, cf, pf, ff, mf, Sf, wf, If;
79783
79789
  let nt;
79784
79790
  return ((lt = (J = n == null ? void 0 : n.scene) == null ? void 0 : J.light) == null ? void 0 : lt.type) === "sunLight" ? nt = new SunLight({
79785
79791
  color: (pi = (mt = n.scene) == null ? void 0 : mt.light) != null && pi.color ? Color$3.fromCssColorString(n.scene.light.color) : void 0,
@@ -79792,7 +79798,7 @@ const useIBL = ({
79792
79798
  ),
79793
79799
  color: (af = (lf = n.scene) == null ? void 0 : lf.light) != null && af.color ? Color$3.fromCssColorString(n.scene.light.color) : void 0,
79794
79800
  intensity: (cf = (rf = n.scene) == null ? void 0 : rf.light) == null ? void 0 : cf.intensity
79795
- }) : (nt = (ff = (pf = t.current) == null ? void 0 : pf.cesiumElement) == null ? void 0 : ff.scene.light, nt && (nt.color = (Sf = (mf = n == null ? void 0 : n.scene) == null ? void 0 : mf.light) != null && Sf.color ? Color$3.fromCssColorString(n.scene.light.color) : nt.color, nt.intensity = (Vf = (wf = n == null ? void 0 : n.scene) == null ? void 0 : wf.light) != null && Vf.intensity ? n.scene.light.intensity : nt.intensity)), nt;
79801
+ }) : (nt = (ff = (pf = t.current) == null ? void 0 : pf.cesiumElement) == null ? void 0 : ff.scene.light, nt && (nt.color = (Sf = (mf = n == null ? void 0 : n.scene) == null ? void 0 : mf.light) != null && Sf.color ? Color$3.fromCssColorString(n.scene.light.color) : nt.color, nt.intensity = (If = (wf = n == null ? void 0 : n.scene) == null ? void 0 : wf.light) != null && If.intensity ? n.scene.light.intensity : nt.intensity)), nt;
79796
79802
  }, [
79797
79803
  t,
79798
79804
  (p = (h = n == null ? void 0 : n.scene) == null ? void 0 : h.light) == null ? void 0 : p.type,
@@ -79846,7 +79852,7 @@ const useIBL = ({
79846
79852
  onCameraChange: Gd,
79847
79853
  onMount: md
79848
79854
  }) => {
79849
- var yf, hf, df, bf, Ef, Rf, vf, Of, Gf, If, zf, Mf, Df, np, Qf, qf, kf, Zf, rp, lp, dp, hp, mp, cp;
79855
+ var bf, hf, df, yf, Ef, Tf, vf, Vf, Af, Pf, zf, Rf, Gf, np, tp, Qf, Df, Zf, rp, lp, dp, hp, mp, cp;
79850
79856
  const tf = useRef(null), nf = typeof (d == null ? void 0 : d.cesiumIonAccessToken) == "string" && d.cesiumIonAccessToken ? d.cesiumIonAccessToken : Ion.defaultAccessToken, ef = useEngineRef(t, tf), yt = useLayerSelectWithRect({
79851
79857
  cesium: tf,
79852
79858
  engineAPI: ef,
@@ -79861,7 +79867,7 @@ const useIBL = ({
79861
79867
  if (!Nf)
79862
79868
  return;
79863
79869
  Nf.softShadows = ((Cp = (bp = (ip = n == null ? void 0 : n.scene) == null ? void 0 : ip.shadow) == null ? void 0 : bp.shadowMap) == null ? void 0 : Cp.softShadows) ?? !1, Nf.darkness = ((_p = (wp = (Tp = n == null ? void 0 : n.scene) == null ? void 0 : Tp.shadow) == null ? void 0 : wp.shadowMap) == null ? void 0 : _p.darkness) ?? 0.3, Nf.size = ((Rp = (Ep = (vp = n == null ? void 0 : n.scene) == null ? void 0 : vp.shadow) == null ? void 0 : Ep.shadowMap) == null ? void 0 : Rp.size) ?? 2048, Nf.maximumDistance = ((sf = (Fp = (Dp = n == null ? void 0 : n.scene) == null ? void 0 : Dp.shadow) == null ? void 0 : Fp.shadowMap) == null ? void 0 : sf.maximumDistance) ?? 5e3, Nf.fadingEnabled = !0, Nf.normalOffset = !0;
79864
- const Af = {
79870
+ const Ff = {
79865
79871
  polygonOffsetFactor: 1.1,
79866
79872
  polygonOffsetUnits: 4,
79867
79873
  normalOffsetScale: 0.5,
@@ -79883,12 +79889,12 @@ const useIBL = ({
79883
79889
  normalShadingSmooth: 0.1,
79884
79890
  depthBias: 5e-4
79885
79891
  };
79886
- Nf._terrainBias && Object.assign(Nf._terrainBias, Af), Nf._primitiveBias && Object.assign(Nf._primitiveBias, Yf), Nf._pointBias && Object.assign(Nf._pointBias, Kf);
79892
+ Nf._terrainBias && Object.assign(Nf._terrainBias, Ff), Nf._primitiveBias && Object.assign(Nf._primitiveBias, Yf), Nf._pointBias && Object.assign(Nf._pointBias, Kf);
79887
79893
  }, [
79888
- (df = (hf = (yf = n == null ? void 0 : n.scene) == null ? void 0 : yf.shadow) == null ? void 0 : hf.shadowMap) == null ? void 0 : df.softShadows,
79889
- (Rf = (Ef = (bf = n == null ? void 0 : n.scene) == null ? void 0 : bf.shadow) == null ? void 0 : Ef.shadowMap) == null ? void 0 : Rf.darkness,
79890
- (Gf = (Of = (vf = n == null ? void 0 : n.scene) == null ? void 0 : vf.shadow) == null ? void 0 : Of.shadowMap) == null ? void 0 : Gf.size,
79891
- (Mf = (zf = (If = n == null ? void 0 : n.scene) == null ? void 0 : If.shadow) == null ? void 0 : zf.shadowMap) == null ? void 0 : Mf.maximumDistance
79894
+ (df = (hf = (bf = n == null ? void 0 : n.scene) == null ? void 0 : bf.shadow) == null ? void 0 : hf.shadowMap) == null ? void 0 : df.softShadows,
79895
+ (Tf = (Ef = (yf = n == null ? void 0 : n.scene) == null ? void 0 : yf.shadow) == null ? void 0 : Ef.shadowMap) == null ? void 0 : Tf.darkness,
79896
+ (Af = (Vf = (vf = n == null ? void 0 : n.scene) == null ? void 0 : vf.shadow) == null ? void 0 : Vf.shadowMap) == null ? void 0 : Af.size,
79897
+ (Rf = (zf = (Pf = n == null ? void 0 : n.scene) == null ? void 0 : Pf.shadow) == null ? void 0 : zf.shadowMap) == null ? void 0 : Rf.maximumDistance
79892
79898
  ]);
79893
79899
  const Ee = useRef(), sl = useRef();
79894
79900
  useEffect(() => {
@@ -79896,8 +79902,8 @@ const useIBL = ({
79896
79902
  const Nf = (fp = tf.current) == null ? void 0 : fp.cesiumElement;
79897
79903
  if (!Nf || Nf.isDestroyed() || sl.current === (s == null ? void 0 : s.featureId) && (s == null ? void 0 : s.featureId) !== void 0)
79898
79904
  return;
79899
- const Af = getTag(Ee.current);
79900
- if (!(Af != null && Af.featureId) && (Af != null && Af.layerId) && (s != null && s.layerId) && (Af == null ? void 0 : Af.layerId) === s.layerId || Af != null && Af.featureId && (s != null && s.featureId) && (Af == null ? void 0 : Af.featureId) === s.featureId)
79905
+ const Ff = getTag(Ee.current);
79906
+ if (!(Ff != null && Ff.featureId) && (Ff != null && Ff.layerId) && (s != null && s.layerId) && (Ff == null ? void 0 : Ff.layerId) === s.layerId || Ff != null && Ff.featureId && (s != null && s.featureId) && (Ff == null ? void 0 : Ff.featureId) === s.featureId)
79901
79907
  return;
79902
79908
  const Yf = findEntity(Nf, void 0, s == null ? void 0 : s.featureId) || findEntity(Nf, s == null ? void 0 : s.layerId);
79903
79909
  if (Ee.current === Yf)
@@ -79967,34 +79973,34 @@ const useIBL = ({
79967
79973
  }, [tf, s, W, h, p]);
79968
79974
  const Zd = useMemo(
79969
79975
  () => {
79970
- var Nf, Af, Yf, Kf, fp, up;
79971
- return (Af = (Nf = n == null ? void 0 : n.scene) == null ? void 0 : Nf.imageBasedLighting) != null && Af.sphericalHarmonicCoefficients ? arrayToCartecian3(
79976
+ var Nf, Ff, Yf, Kf, fp, up;
79977
+ return (Ff = (Nf = n == null ? void 0 : n.scene) == null ? void 0 : Nf.imageBasedLighting) != null && Ff.sphericalHarmonicCoefficients ? arrayToCartecian3(
79972
79978
  (Kf = (Yf = n == null ? void 0 : n.scene) == null ? void 0 : Yf.imageBasedLighting) == null ? void 0 : Kf.sphericalHarmonicCoefficients,
79973
79979
  (up = (fp = n == null ? void 0 : n.scene) == null ? void 0 : fp.imageBasedLighting) == null ? void 0 : up.intensity
79974
79980
  ) : void 0;
79975
79981
  },
79976
79982
  [
79977
- (np = (Df = n == null ? void 0 : n.scene) == null ? void 0 : Df.imageBasedLighting) == null ? void 0 : np.sphericalHarmonicCoefficients,
79978
- (qf = (Qf = n == null ? void 0 : n.scene) == null ? void 0 : Qf.imageBasedLighting) == null ? void 0 : qf.intensity
79983
+ (np = (Gf = n == null ? void 0 : n.scene) == null ? void 0 : Gf.imageBasedLighting) == null ? void 0 : np.sphericalHarmonicCoefficients,
79984
+ (Qf = (tp = n == null ? void 0 : n.scene) == null ? void 0 : tp.imageBasedLighting) == null ? void 0 : Qf.intensity
79979
79985
  ]
79980
79986
  );
79981
79987
  useOverrideGlobeShader({
79982
79988
  cesium: tf,
79983
79989
  sphericalHarmonicCoefficients: Zd,
79984
- globeShadowDarkness: (Zf = (kf = n == null ? void 0 : n.scene) == null ? void 0 : kf.shadow) == null ? void 0 : Zf.darkness,
79990
+ globeShadowDarkness: (Zf = (Df = n == null ? void 0 : n.scene) == null ? void 0 : Df.shadow) == null ? void 0 : Zf.darkness,
79985
79991
  globeImageBasedLighting: (lp = (rp = n == null ? void 0 : n.scene) == null ? void 0 : rp.imageBasedLighting) == null ? void 0 : lp.enabled,
79986
79992
  enableLighting: (dp = n == null ? void 0 : n.globe) == null ? void 0 : dp.enableLighting,
79987
79993
  hasVertexNormals: ((hp = n == null ? void 0 : n.terrain) == null ? void 0 : hp.enabled) && n.terrain.normal,
79988
79994
  terrain: n == null ? void 0 : n.terrain
79989
79995
  });
79990
79996
  const of = useCallback(
79991
- (Nf, Af, Yf) => {
79997
+ (Nf, Ff, Yf) => {
79992
79998
  var Kf, fp;
79993
79999
  if (((Kf = ef.mouseEventCallbacks[Nf]) == null ? void 0 : Kf.length) > 0) {
79994
80000
  const up = (fp = tf.current) == null ? void 0 : fp.cesiumElement;
79995
80001
  if (!up || up.isDestroyed())
79996
80002
  return;
79997
- const ip = makeMouseEventProps(up, Af);
80003
+ const ip = makeMouseEventProps(up, Ff);
79998
80004
  if (!ip)
79999
80005
  return;
80000
80006
  const bp = getLayerId(Yf);
@@ -80004,7 +80010,7 @@ const useIBL = ({
80004
80010
  [ef]
80005
80011
  ), uf = useCallback(
80006
80012
  (Nf) => {
80007
- ef.mouseEventCallbacks.wheel.length > 0 && ef.mouseEventCallbacks.wheel.forEach((Af) => Af({ delta: Nf }));
80013
+ ef.mouseEventCallbacks.wheel.length > 0 && ef.mouseEventCallbacks.wheel.forEach((Ff) => Ff({ delta: Nf }));
80008
80014
  },
80009
80015
  [ef]
80010
80016
  ), lf = useMemo(() => {
@@ -80022,78 +80028,78 @@ const useIBL = ({
80022
80028
  mouseMove: void 0,
80023
80029
  mouseEnter: void 0,
80024
80030
  mouseLeave: void 0,
80025
- wheel: (Af) => {
80026
- uf(Af);
80031
+ wheel: (Ff) => {
80032
+ uf(Ff);
80027
80033
  }
80028
80034
  };
80029
- return Object.keys(Nf).forEach((Af) => {
80030
- Af !== "wheel" && (Nf[Af] = (Yf, Kf) => {
80031
- of(Af, Yf, Kf);
80035
+ return Object.keys(Nf).forEach((Ff) => {
80036
+ Ff !== "wheel" && (Nf[Ff] = (Yf, Kf) => {
80037
+ of(Ff, Yf, Kf);
80032
80038
  });
80033
80039
  }), Nf;
80034
80040
  }, [of, uf]), af = useCallback(
80035
- async (Nf, Af) => {
80041
+ async (Nf, Ff) => {
80036
80042
  var up, ip, bp, Cp, Tp, wp, _p, vp, Ep, Rp, Dp, Fp, sf, xf;
80037
- if ((up = lf.click) == null || up.call(lf, Nf, Af), !(p & FEATURE_FLAGS.SINGLE_SELECTION))
80043
+ if ((up = lf.click) == null || up.call(lf, Nf, Ff), !(p & FEATURE_FLAGS.SINGLE_SELECTION))
80038
80044
  return;
80039
80045
  const Yf = (ip = tf.current) == null ? void 0 : ip.cesiumElement;
80040
80046
  if (!Yf || Yf.isDestroyed())
80041
80047
  return;
80042
80048
  sl.current = void 0;
80043
80049
  const Kf = findEntity(Yf, void 0, s == null ? void 0 : s.featureId) || findEntity(Yf, s == null ? void 0 : s.layerId), fp = getTag(Kf);
80044
- if ((!Kf || Kf instanceof Entity$2 && (fp != null && fp.hideIndicator)) && (Yf.selectedEntity = void 0), Af && "id" in Af && Af.id instanceof Entity$2 && isSelectable(Af.id)) {
80045
- const _f = getTag(Af.id), Ff = _f != null && _f.layerId ? ((bp = h == null ? void 0 : h.current) == null ? void 0 : bp.overriddenLayers().find((jf) => jf.id === _f.layerId)) ?? ((Cp = h == null ? void 0 : h.current) == null ? void 0 : Cp.findById(_f.layerId)) : void 0;
80050
+ if ((!Kf || Kf instanceof Entity$2 && (fp != null && fp.hideIndicator)) && (Yf.selectedEntity = void 0), Ff && "id" in Ff && Ff.id instanceof Entity$2 && isSelectable(Ff.id)) {
80051
+ const _f = getTag(Ff.id), Lf = _f != null && _f.layerId ? ((bp = h == null ? void 0 : h.current) == null ? void 0 : bp.overriddenLayers().find((jf) => jf.id === _f.layerId)) ?? ((Cp = h == null ? void 0 : h.current) == null ? void 0 : Cp.findById(_f.layerId)) : void 0;
80046
80052
  W == null || W(
80047
80053
  _f == null ? void 0 : _f.layerId,
80048
80054
  _f == null ? void 0 : _f.featureId,
80049
- Af.id.description || Af.id.properties ? {
80055
+ Ff.id.description || Ff.id.properties ? {
80050
80056
  defaultInfobox: {
80051
- title: (Ff == null ? void 0 : Ff.title) ?? Af.id.name,
80057
+ title: (Lf == null ? void 0 : Lf.title) ?? Ff.id.name,
80052
80058
  content: getEntityContent(
80053
- Af.id,
80059
+ Ff.id,
80054
80060
  Yf.clock.currentTime ?? new JulianDate$1(),
80055
- _f != null && _f.layerId ? (wp = (Tp = Ff == null ? void 0 : Ff.infobox) == null ? void 0 : Tp.property) == null ? void 0 : wp.defaultContent : void 0
80061
+ _f != null && _f.layerId ? (wp = (Tp = Lf == null ? void 0 : Lf.infobox) == null ? void 0 : Tp.property) == null ? void 0 : wp.defaultContent : void 0
80056
80062
  )
80057
80063
  }
80058
80064
  } : void 0
80059
- ), Ee.current = Af.id, Af.id instanceof Entity$2 && !(_f != null && _f.hideIndicator) ? Yf.selectedEntity = Af.id : Yf.selectedEntity = void 0;
80065
+ ), Ee.current = Ff.id, Ff.id instanceof Entity$2 && !(_f != null && _f.hideIndicator) ? Yf.selectedEntity = Ff.id : Yf.selectedEntity = void 0;
80060
80066
  return;
80061
80067
  }
80062
- if (Af && (Af instanceof Cesium3DTileFeature || Af instanceof Cesium3DTilePointFeature)) {
80063
- const _f = getTag(Af);
80068
+ if (Ff && (Ff instanceof Cesium3DTileFeature || Ff instanceof Cesium3DTilePointFeature)) {
80069
+ const _f = getTag(Ff);
80064
80070
  if (_f) {
80065
- const Ff = tileProperties(Af);
80071
+ const Lf = tileProperties(Ff);
80066
80072
  W == null || W(
80067
80073
  _f.layerId,
80068
80074
  String(_f.featureId),
80069
- Ff.length ? {
80075
+ Lf.length ? {
80070
80076
  defaultInfobox: {
80071
- title: Af.getProperty("name"),
80077
+ title: Ff.getProperty("name"),
80072
80078
  content: {
80073
80079
  type: "table",
80074
- value: tileProperties(Af)
80080
+ value: tileProperties(Ff)
80075
80081
  }
80076
80082
  }
80077
80083
  } : void 0,
80078
80084
  { feature: _f.computedFeature }
80079
- ), Ee.current = Af;
80085
+ ), Ee.current = Ff;
80080
80086
  }
80081
80087
  return;
80082
80088
  }
80083
- if (Af && "content" in Af && Af.content && typeof Af.content == "object" && "_model" in Af.content && Af.content._model instanceof Model$1) {
80084
- const _f = Af.content._model, Ff = getTag(_f);
80085
- Ff && (W == null || W(Ff.layerId, String(Ff.featureId)), Ee.current = _f);
80089
+ if (Ff && "content" in Ff && Ff.content && typeof Ff.content == "object" && "_model" in Ff.content && Ff.content._model instanceof Model$1) {
80090
+ const _f = Ff.content._model, Lf = getTag(_f);
80091
+ Lf && (W == null || W(Lf.layerId, String(Lf.featureId)), Ee.current = _f);
80086
80092
  return;
80087
80093
  }
80088
- if (Af != null && Af.primitive && (Af.primitive instanceof Primitive$1 || Af.primitive instanceof GroundPrimitive$1)) {
80089
- const _f = Af.primitive, Ff = getTag(_f);
80090
- Ff && (W == null || W(Ff.layerId, String(Ff.featureId)), Ee.current = _f);
80094
+ if (Ff != null && Ff.primitive && (Ff.primitive instanceof Primitive$1 || Ff.primitive instanceof GroundPrimitive$1)) {
80095
+ const _f = Ff.primitive, Lf = getTag(_f);
80096
+ Lf && (W == null || W(Lf.layerId, String(Lf.featureId)), Ee.current = _f);
80091
80097
  return;
80092
80098
  }
80093
- if (Af === void 0 && Nf.position) {
80094
- const _f = Yf.scene, Ff = _f.camera.getPickRay(Nf.position);
80095
- if (Ff) {
80096
- const jf = await _f.imageryLayers.pickImageryLayerFeatures(Ff, _f), Hf = jf == null ? void 0 : jf[0], $f = (_p = Hf == null ? void 0 : Hf.data) == null ? void 0 : _p.appearanceType;
80099
+ if (Ff === void 0 && Nf.position) {
80100
+ const _f = Yf.scene, Lf = _f.camera.getPickRay(Nf.position);
80101
+ if (Lf) {
80102
+ const jf = await _f.imageryLayers.pickImageryLayerFeatures(Lf, _f), Hf = jf == null ? void 0 : jf[0], $f = (_p = Hf == null ? void 0 : Hf.data) == null ? void 0 : _p.appearanceType;
80097
80103
  if ($f && ((Rp = (Ep = (vp = Hf == null ? void 0 : Hf.data) == null ? void 0 : vp.feature) == null ? void 0 : Ep[$f]) == null ? void 0 : Rp.show) !== !1) {
80098
80104
  const Uf = getTag(Hf.imageryLayer), pp = Hf.position;
80099
80105
  pp && requestAnimationFrame(() => {
@@ -80101,17 +80107,17 @@ const useIBL = ({
80101
80107
  position: Cartographic$1.toCartesian(pp)
80102
80108
  }));
80103
80109
  });
80104
- const ep = Uf != null && Uf.layerId ? ((Dp = h == null ? void 0 : h.current) == null ? void 0 : Dp.overriddenLayers().find((gp) => gp.id === Uf.layerId)) ?? ((Fp = h == null ? void 0 : h.current) == null ? void 0 : Fp.findById(Uf.layerId)) : void 0, op = getEntityContent(
80110
+ const qf = Uf != null && Uf.layerId ? ((Dp = h == null ? void 0 : h.current) == null ? void 0 : Dp.overriddenLayers().find((gp) => gp.id === Uf.layerId)) ?? ((Fp = h == null ? void 0 : h.current) == null ? void 0 : Fp.findById(Uf.layerId)) : void 0, op = getEntityContent(
80105
80111
  Hf.data.feature ?? Hf,
80106
80112
  Yf.clock.currentTime ?? new JulianDate$1(),
80107
- Uf != null && Uf.layerId ? (xf = (sf = ep == null ? void 0 : ep.infobox) == null ? void 0 : sf.property) == null ? void 0 : xf.defaultContent : void 0
80113
+ Uf != null && Uf.layerId ? (xf = (sf = qf == null ? void 0 : qf.infobox) == null ? void 0 : sf.property) == null ? void 0 : xf.defaultContent : void 0
80108
80114
  );
80109
80115
  sl.current = Hf.data.featureId, W == null || W(
80110
80116
  Hf.data.layerId,
80111
80117
  Hf.data.featureId,
80112
80118
  op.value.length ? {
80113
80119
  defaultInfobox: {
80114
- title: (ep == null ? void 0 : ep.title) ?? Hf.name,
80120
+ title: (qf == null ? void 0 : qf.title) ?? Hf.name,
80115
80121
  content: op
80116
80122
  }
80117
80123
  } : void 0,
@@ -80141,13 +80147,13 @@ const useIBL = ({
80141
80147
  setE2ECesiumViewer(void 0);
80142
80148
  };
80143
80149
  }, [(mp = tf.current) == null ? void 0 : mp.cesiumElement]), useEffect(() => {
80144
- var Af;
80145
- const Nf = (Af = tf.current) == null ? void 0 : Af.cesiumElement;
80150
+ var Ff;
80151
+ const Nf = (Ff = tf.current) == null ? void 0 : Ff.cesiumElement;
80146
80152
  !Nf || Nf.isDestroyed() || Nf.scene.requestRender();
80147
80153
  });
80148
80154
  const rf = useCallback(() => {
80149
- var Af;
80150
- const Nf = (Af = tf.current) == null ? void 0 : Af.cesiumElement;
80155
+ var Ff;
80156
+ const Nf = (Ff = tf.current) == null ? void 0 : Ff.cesiumElement;
80151
80157
  !Nf || Nf.isDestroyed() || Nf.scene.requestRender();
80152
80158
  }, []), cf = useMemo(
80153
80159
  () => ({
@@ -80167,8 +80173,8 @@ const useIBL = ({
80167
80173
  [c, ef, J, Ai, Vd, y]
80168
80174
  );
80169
80175
  useEffect(() => {
80170
- var Af, Yf, Kf;
80171
- const Nf = (Yf = (Af = tf.current) == null ? void 0 : Af.cesiumElement) == null ? void 0 : Yf.scene.globe;
80176
+ var Ff, Yf, Kf;
80177
+ const Nf = (Yf = (Ff = tf.current) == null ? void 0 : Ff.cesiumElement) == null ? void 0 : Yf.scene.globe;
80172
80178
  if (Nf) {
80173
80179
  const fp = Nf._surface;
80174
80180
  fp && (fp.tileProvider._debug.wireframe = ((Kf = n == null ? void 0 : n.debug) == null ? void 0 : Kf.showGlobeWireframe) ?? !1);
@@ -80195,12 +80201,12 @@ const useIBL = ({
80195
80201
  useLayerDragDrop({ cesium: tf, onLayerDrag: oe, onLayerDrop: nt, isLayerDraggable: E }), useExplicitRender({ cesium: tf, requestingRenderMode: N, isLayerDragging: L, shouldRender: F, property: n });
80196
80202
  const {
80197
80203
  cameraViewBoundaries: wf,
80198
- cameraViewOuterBoundaries: Vf,
80199
- cameraViewBoundariesMaterial: Lf,
80200
- handleCameraChange: Pf,
80204
+ cameraViewOuterBoundaries: If,
80205
+ cameraViewBoundariesMaterial: Of,
80206
+ handleCameraChange: Mf,
80201
80207
  handleCameraMoveEnd: Xf,
80202
80208
  mountCamera: Bf,
80203
- unmountCamera: Tf
80209
+ unmountCamera: kf
80204
80210
  } = useCamera({
80205
80211
  cesium: tf,
80206
80212
  property: n,
@@ -80212,8 +80218,8 @@ const useIBL = ({
80212
80218
  }), Xd = useCallback(() => {
80213
80219
  Bf == null || Bf(), md == null || md();
80214
80220
  }, [Bf, md]), gf = useCallback(() => {
80215
- Tf == null || Tf();
80216
- }, [Tf]);
80221
+ kf == null || kf();
80222
+ }, [kf]);
80217
80223
  return {
80218
80224
  cesium: tf,
80219
80225
  cesiumIonAccessToken: nf,
@@ -80225,9 +80231,9 @@ const useIBL = ({
80225
80231
  sceneMsaaSamples: mf,
80226
80232
  sceneMode: Sf,
80227
80233
  cameraViewBoundaries: wf,
80228
- cameraViewOuterBoundaries: Vf,
80229
- cameraViewBoundariesMaterial: Lf,
80230
- handleCameraChange: Pf,
80234
+ cameraViewOuterBoundaries: If,
80235
+ cameraViewBoundariesMaterial: Of,
80236
+ handleCameraChange: Mf,
80231
80237
  handleCameraMoveEnd: Xf,
80232
80238
  handleUpdate: rf,
80233
80239
  handleClick: af,
@@ -85835,7 +85841,7 @@ const Cesium = ({
85835
85841
  onLayerVisibility: ef,
85836
85842
  onLayerLoad: yt
85837
85843
  }, Ee) => {
85838
- var Tf, Xd, gf, yf, hf, df, bf, Ef, Rf, vf, Of, Gf, If, zf, Mf, Df, np, Qf, qf, kf, Zf, rp, lp, dp, hp, mp, cp, Nf, Af, Yf, Kf, fp, up, ip, bp, Cp, Tp, wp, _p, vp, Ep, Rp;
85844
+ var kf, Xd, gf, bf, hf, df, yf, Ef, Tf, vf, Vf, Af, Pf, zf, Rf, Gf, np, tp, Qf, Df, Zf, rp, lp, dp, hp, mp, cp, Nf, Ff, Yf, Kf, fp, up, ip, bp, Cp, Tp, wp, _p, vp, Ep, Rp;
85839
85845
  const {
85840
85846
  cesium: sl,
85841
85847
  mouseEventHandles: Zd,
@@ -85850,9 +85856,9 @@ const Cesium = ({
85850
85856
  cameraViewOuterBoundaries: mf,
85851
85857
  cameraViewBoundariesMaterial: Sf,
85852
85858
  handleCameraChange: wf,
85853
- handleCameraMoveEnd: Vf,
85854
- handleUpdate: Lf,
85855
- handleClick: Pf,
85859
+ handleCameraMoveEnd: If,
85860
+ handleUpdate: Of,
85861
+ handleClick: Mf,
85856
85862
  handleMount: Xf,
85857
85863
  handleUnmount: Bf
85858
85864
  } = useHooks$1({
@@ -85887,7 +85893,7 @@ const Cesium = ({
85887
85893
  Aa$1,
85888
85894
  {
85889
85895
  ref: sl,
85890
- onUpdate: Lf,
85896
+ onUpdate: Of,
85891
85897
  className: t,
85892
85898
  requestRenderMode: !0,
85893
85899
  animation: !1,
@@ -85909,8 +85915,8 @@ const Cesium = ({
85909
85915
  cursor: L ? "grab" : void 0,
85910
85916
  ...n
85911
85917
  },
85912
- shadows: !!((Xd = (Tf = o == null ? void 0 : o.scene) == null ? void 0 : Tf.shadow) != null && Xd.enabled),
85913
- onClick: Pf,
85918
+ shadows: !!((Xd = (kf = o == null ? void 0 : o.scene) == null ? void 0 : kf.shadow) != null && Xd.enabled),
85919
+ onClick: Mf,
85914
85920
  onDoubleClick: Zd.doubleClick,
85915
85921
  onMouseDown: Zd.mouseDown,
85916
85922
  onMouseUp: Zd.mouseUp,
@@ -85984,7 +85990,7 @@ const Cesium = ({
85984
85990
  /* @__PURE__ */ jsxRuntimeExports.jsx(
85985
85991
  Ta$1,
85986
85992
  {
85987
- maximumZoomDistance: (yf = (gf = o == null ? void 0 : o.camera) == null ? void 0 : gf.limiter) != null && yf.enabled ? ((bf = (df = (hf = o.camera) == null ? void 0 : hf.limiter) == null ? void 0 : df.targetArea) == null ? void 0 : bf.height) ?? Number.POSITIVE_INFINITY : Number.POSITIVE_INFINITY,
85993
+ maximumZoomDistance: (bf = (gf = o == null ? void 0 : o.camera) == null ? void 0 : gf.limiter) != null && bf.enabled ? ((yf = (df = (hf = o.camera) == null ? void 0 : hf.limiter) == null ? void 0 : df.targetArea) == null ? void 0 : yf.height) ?? Number.POSITIVE_INFINITY : Number.POSITIVE_INFINITY,
85988
85994
  enableCollisionDetection: !((Ef = o == null ? void 0 : o.camera) != null && Ef.allowEnterGround)
85989
85995
  }
85990
85996
  ),
@@ -85993,10 +85999,10 @@ const Cesium = ({
85993
85999
  {
85994
86000
  percentageChanged: 0.2,
85995
86001
  onChange: wf,
85996
- onMoveEnd: Vf
86002
+ onMoveEnd: If
85997
86003
  }
85998
86004
  ),
85999
- ff && ((vf = (Rf = o == null ? void 0 : o.camera) == null ? void 0 : Rf.limiter) == null ? void 0 : vf.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86005
+ ff && ((vf = (Tf = o == null ? void 0 : o.camera) == null ? void 0 : Tf.limiter) == null ? void 0 : vf.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86000
86006
  ua$1,
86001
86007
  {
86002
86008
  positions: ff,
@@ -86005,7 +86011,7 @@ const Cesium = ({
86005
86011
  arcType: ArcType$2.RHUMB
86006
86012
  }
86007
86013
  ) }),
86008
- mf && ((Gf = (Of = o == null ? void 0 : o.camera) == null ? void 0 : Of.limiter) == null ? void 0 : Gf.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86014
+ mf && ((Af = (Vf = o == null ? void 0 : o.camera) == null ? void 0 : Vf.limiter) == null ? void 0 : Af.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86009
86015
  ua$1,
86010
86016
  {
86011
86017
  positions: mf,
@@ -86022,21 +86028,21 @@ const Cesium = ({
86022
86028
  mode: pf,
86023
86029
  msaaSamples: cf,
86024
86030
  useDepthPicking: !1,
86025
- useWebVR: !!((If = o == null ? void 0 : o.scene) != null && If.vr) || void 0,
86031
+ useWebVR: !!((Pf = o == null ? void 0 : o.scene) != null && Pf.vr) || void 0,
86026
86032
  debugShowFramesPerSecond: !!((zf = o == null ? void 0 : o.debug) != null && zf.showFramesPerSecond),
86027
- verticalExaggerationRelativeHeight: (Mf = o == null ? void 0 : o.scene) == null ? void 0 : Mf.verticalExaggerationRelativeHeight,
86028
- verticalExaggeration: (Df = o == null ? void 0 : o.scene) == null ? void 0 : Df.verticalExaggeration
86033
+ verticalExaggerationRelativeHeight: (Rf = o == null ? void 0 : o.scene) == null ? void 0 : Rf.verticalExaggerationRelativeHeight,
86034
+ verticalExaggeration: (Gf = o == null ? void 0 : o.scene) == null ? void 0 : Gf.verticalExaggeration
86029
86035
  }
86030
86036
  ),
86031
- /* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((Qf = (np = o == null ? void 0 : o.sky) == null ? void 0 : np.skyBox) == null ? void 0 : Qf.show) ?? !0 }),
86032
- /* @__PURE__ */ jsxRuntimeExports.jsx(Vs$1, { enabled: ((kf = (qf = o == null ? void 0 : o.sky) == null ? void 0 : qf.fog) == null ? void 0 : kf.enabled) ?? !0, density: (rp = (Zf = o == null ? void 0 : o.sky) == null ? void 0 : Zf.fog) == null ? void 0 : rp.density }),
86037
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((tp = (np = o == null ? void 0 : o.sky) == null ? void 0 : np.skyBox) == null ? void 0 : tp.show) ?? !0 }),
86038
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Vs$1, { enabled: ((Df = (Qf = o == null ? void 0 : o.sky) == null ? void 0 : Qf.fog) == null ? void 0 : Df.enabled) ?? !0, density: (rp = (Zf = o == null ? void 0 : o.sky) == null ? void 0 : Zf.fog) == null ? void 0 : rp.density }),
86033
86039
  /* @__PURE__ */ jsxRuntimeExports.jsx(Ga$1, { show: ((dp = (lp = o == null ? void 0 : o.sky) == null ? void 0 : lp.sun) == null ? void 0 : dp.show) ?? !0 }),
86034
86040
  /* @__PURE__ */ jsxRuntimeExports.jsx(ea$1, { show: ((mp = (hp = o == null ? void 0 : o.sky) == null ? void 0 : hp.moon) == null ? void 0 : mp.show) ?? !0 }),
86035
86041
  /* @__PURE__ */ jsxRuntimeExports.jsx(
86036
86042
  _a$2,
86037
86043
  {
86038
86044
  show: ((Nf = (cp = o == null ? void 0 : o.sky) == null ? void 0 : cp.skyAtmosphere) == null ? void 0 : Nf.show) ?? !0,
86039
- atmosphereLightIntensity: (Yf = (Af = o == null ? void 0 : o.sky) == null ? void 0 : Af.skyAtmosphere) == null ? void 0 : Yf.lightIntensity,
86045
+ atmosphereLightIntensity: (Yf = (Ff = o == null ? void 0 : o.sky) == null ? void 0 : Ff.skyAtmosphere) == null ? void 0 : Yf.lightIntensity,
86040
86046
  saturationShift: (fp = (Kf = o == null ? void 0 : o.sky) == null ? void 0 : Kf.skyAtmosphere) == null ? void 0 : fp.saturationShift,
86041
86047
  brightnessShift: (ip = (up = o == null ? void 0 : o.sky) == null ? void 0 : up.skyAtmosphere) == null ? void 0 : ip.brightnessShift
86042
86048
  }
@@ -86071,7 +86077,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
86071
86077
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
86072
86078
  ] });
86073
86079
  }
86074
- const version = "0.0.7-alpha.4", useCoreAPI = ({ viewerProperty: t }) => {
86080
+ const version = "0.0.7-alpha.5", useCoreAPI = ({ viewerProperty: t }) => {
86075
86081
  const n = useRef(t);
86076
86082
  n.current = t;
86077
86083
  const o = useMemo(
@@ -86140,20 +86146,20 @@ function useHooks({
86140
86146
  const N = useRef(null), z = useViewport({
86141
86147
  wrapperRef: N
86142
86148
  }), [H, W] = useState({}), [oe, nt] = useState(), [J, lt] = useState(), mt = useCallback(
86143
- async (Mf, Df, np, Qf, qf) => {
86149
+ async (Rf, Gf, np, tp, Qf) => {
86144
86150
  var rp, lp, dp, hp, mp, cp;
86145
- if (H.layerId === Mf && H.featureId === Df)
86151
+ if (H.layerId === Rf && H.featureId === Gf)
86146
86152
  return;
86147
- const kf = await (np == null ? void 0 : np()), Zf = Mf && Df ? ((dp = (rp = F.current) == null ? void 0 : (lp = rp.engine).findComputedFeatureById) == null ? void 0 : dp.call(lp, Mf, Df)) ?? (qf == null ? void 0 : qf.feature) : void 0;
86153
+ const Df = await (np == null ? void 0 : np()), Zf = Rf && Gf ? ((dp = (rp = F.current) == null ? void 0 : (lp = rp.engine).findComputedFeatureById) == null ? void 0 : dp.call(lp, Rf, Gf)) ?? (Qf == null ? void 0 : Qf.feature) : void 0;
86148
86154
  nt(
86149
- Mf && Df ? (cp = (hp = F.current) == null ? void 0 : (mp = hp.engine).findFeatureById) == null ? void 0 : cp.call(mp, Mf, Df) : void 0
86155
+ Rf && Gf ? (cp = (hp = F.current) == null ? void 0 : (mp = hp.engine).findFeatureById) == null ? void 0 : cp.call(mp, Rf, Gf) : void 0
86150
86156
  ), lt(Zf), W(
86151
- (Nf) => Nf.layerId === Mf && Nf.featureId === Df ? Nf : { layerId: Mf, featureId: Df, layer: kf, reason: Qf }
86152
- ), c == null || c(Mf, np, Zf, Qf);
86157
+ (Nf) => Nf.layerId === Rf && Nf.featureId === Gf ? Nf : { layerId: Rf, featureId: Gf, layer: Df, reason: tp }
86158
+ ), c == null || c(Rf, np, Zf, tp);
86153
86159
  },
86154
86160
  [H, c]
86155
- ), pi = useRef(), [Ai, Vd] = useValue(t, d), [Gd, md] = useState(!1), tf = useCallback((Mf) => {
86156
- md(!!Mf);
86161
+ ), pi = useRef(), [Ai, Vd] = useValue(t, d), [Gd, md] = useState(!1), tf = useCallback((Rf) => {
86162
+ md(!!Rf);
86157
86163
  }, []), [nf, ef] = useValue(
86158
86164
  n,
86159
86165
  h
@@ -86163,63 +86169,63 @@ function useHooks({
86163
86169
  yt === "sketch" ? "crosshair" : yt === "move" ? "grab" : "auto"
86164
86170
  );
86165
86171
  }, [yt]);
86166
- const Zd = INTERACTION_MODES[yt], of = useRef(), uf = useCallback((Mf) => {
86167
- of.current = Mf;
86168
- }, []), lf = useCallback((Mf) => {
86169
- var Df;
86170
- (Df = of.current) == null || Df.call(of, Mf);
86171
- }, []), af = useRef(), rf = useCallback((Mf) => {
86172
- af.current = Mf;
86173
- }, []), cf = useCallback((Mf) => {
86174
- var Df;
86175
- (Df = af.current) == null || Df.call(af, Mf);
86176
- }, []), pf = useRef(), ff = useCallback((Mf) => {
86177
- pf.current = Mf;
86178
- }, []), mf = useCallback((Mf) => {
86179
- var Df;
86180
- (Df = pf.current) == null || Df.call(pf, Mf);
86181
- }, []), Sf = useRef(), wf = useCallback((Mf) => {
86182
- Sf.current = Mf;
86183
- }, []), Vf = useCallback((Mf) => {
86184
- var Df;
86185
- (Df = Sf.current) == null || Df.call(Sf, Mf);
86186
- }, []), Lf = useRef(), Pf = useCallback((Mf) => {
86187
- Lf.current = Mf;
86188
- }, []), Xf = useCallback((Mf) => {
86189
- var Df;
86190
- (Df = Lf.current) == null || Df.call(Lf, Mf);
86191
- }, []), Bf = useRef(), Tf = useCallback((Mf) => {
86192
- Bf.current = Mf;
86193
- }, []), Xd = useCallback((Mf) => {
86194
- var Df;
86195
- (Df = Bf.current) == null || Df.call(Bf, Mf);
86196
- }, []), gf = useRef([]), yf = useCallback((Mf) => {
86197
- gf.current.push(Mf);
86198
- }, []), hf = useCallback((Mf) => {
86199
- gf.current.forEach((Df) => Df(Mf));
86200
- }, []), df = useRef([]), bf = useCallback((Mf) => {
86201
- df.current.push(Mf);
86172
+ const Zd = INTERACTION_MODES[yt], of = useRef(), uf = useCallback((Rf) => {
86173
+ of.current = Rf;
86174
+ }, []), lf = useCallback((Rf) => {
86175
+ var Gf;
86176
+ (Gf = of.current) == null || Gf.call(of, Rf);
86177
+ }, []), af = useRef(), rf = useCallback((Rf) => {
86178
+ af.current = Rf;
86179
+ }, []), cf = useCallback((Rf) => {
86180
+ var Gf;
86181
+ (Gf = af.current) == null || Gf.call(af, Rf);
86182
+ }, []), pf = useRef(), ff = useCallback((Rf) => {
86183
+ pf.current = Rf;
86184
+ }, []), mf = useCallback((Rf) => {
86185
+ var Gf;
86186
+ (Gf = pf.current) == null || Gf.call(pf, Rf);
86187
+ }, []), Sf = useRef(), wf = useCallback((Rf) => {
86188
+ Sf.current = Rf;
86189
+ }, []), If = useCallback((Rf) => {
86190
+ var Gf;
86191
+ (Gf = Sf.current) == null || Gf.call(Sf, Rf);
86192
+ }, []), Of = useRef(), Mf = useCallback((Rf) => {
86193
+ Of.current = Rf;
86194
+ }, []), Xf = useCallback((Rf) => {
86195
+ var Gf;
86196
+ (Gf = Of.current) == null || Gf.call(Of, Rf);
86197
+ }, []), Bf = useRef(), kf = useCallback((Rf) => {
86198
+ Bf.current = Rf;
86199
+ }, []), Xd = useCallback((Rf) => {
86200
+ var Gf;
86201
+ (Gf = Bf.current) == null || Gf.call(Bf, Rf);
86202
+ }, []), gf = useRef([]), bf = useCallback((Rf) => {
86203
+ gf.current.push(Rf);
86204
+ }, []), hf = useCallback((Rf) => {
86205
+ gf.current.forEach((Gf) => Gf(Rf));
86206
+ }, []), df = useRef([]), yf = useCallback((Rf) => {
86207
+ df.current.push(Rf);
86202
86208
  }, []), Ef = useCallback(
86203
- (Mf, Df) => {
86204
- df.current.forEach((np) => np(Mf)), E == null || E(Mf, Df);
86209
+ (Rf, Gf) => {
86210
+ df.current.forEach((np) => np(Rf)), E == null || E(Rf, Gf);
86205
86211
  },
86206
86212
  [E]
86207
86213
  );
86208
86214
  useEffect(() => {
86209
- var Mf, Df;
86210
- o && ((Df = (Mf = F.current) == null ? void 0 : Mf.engine) == null || Df.lookAtLayer(o), p == null || p(void 0));
86215
+ var Rf, Gf;
86216
+ o && ((Gf = (Rf = F.current) == null ? void 0 : Rf.engine) == null || Gf.lookAtLayer(o), p == null || p(void 0));
86211
86217
  }, [o, p]);
86212
- const [Rf, vf] = useState(!1), Of = useCallback(() => {
86218
+ const [Tf, vf] = useState(!1), Vf = useCallback(() => {
86213
86219
  vf(!0);
86214
- }, []), Gf = useCallback(
86215
- (Mf, Df, np) => {
86216
- var kf;
86220
+ }, []), Af = useCallback(
86221
+ (Rf, Gf, np) => {
86222
+ var Df;
86217
86223
  vf(!1);
86218
- const Qf = (kf = F.current) == null ? void 0 : kf.layers.findById(Mf), qf = Qf != null && Qf.property.default.location ? "default.location" : Qf != null && Qf.property.default.position ? "default.position" : void 0;
86219
- np && Qf && Qf.propertyId && qf && (y == null || y(Qf.propertyId, qf, np));
86224
+ const tp = (Df = F.current) == null ? void 0 : Df.layers.findById(Rf), Qf = tp != null && tp.property.default.location ? "default.location" : tp != null && tp.property.default.position ? "default.position" : void 0;
86225
+ np && tp && tp.propertyId && Qf && (y == null || y(tp.propertyId, Qf, np));
86220
86226
  },
86221
86227
  [y, F]
86222
- ), If = useMemo(
86228
+ ), Pf = useMemo(
86223
86229
  () => ({
86224
86230
  interactionMode: yt,
86225
86231
  selectedLayer: H,
@@ -86227,14 +86233,14 @@ function useHooks({
86227
86233
  viewport: z,
86228
86234
  handleCameraForceHorizontalRollChange: tf,
86229
86235
  handleInteractionModeChange: ef,
86230
- onSketchPluginFeatureCreate: yf,
86231
- onSketchTypeChange: bf,
86236
+ onSketchPluginFeatureCreate: bf,
86237
+ onSketchTypeChange: yf,
86232
86238
  onLayerVisibility: rf,
86233
86239
  onLayerLoad: ff,
86234
86240
  onLayerEdit: uf,
86235
86241
  onLayerSelectWithRectStart: wf,
86236
- onLayerSelectWithRectMove: Pf,
86237
- onLayerSelectWithRectEnd: Tf
86242
+ onLayerSelectWithRectMove: Mf,
86243
+ onLayerSelectWithRectEnd: kf
86238
86244
  }),
86239
86245
  [
86240
86246
  yt,
@@ -86244,13 +86250,13 @@ function useHooks({
86244
86250
  ef,
86245
86251
  tf,
86246
86252
  uf,
86247
- yf,
86248
86253
  bf,
86254
+ yf,
86249
86255
  rf,
86250
86256
  ff,
86251
86257
  wf,
86252
- Pf,
86253
- Tf
86258
+ Mf,
86259
+ kf
86254
86260
  ]
86255
86261
  ), zf = useMemo(
86256
86262
  () => ({
@@ -86267,15 +86273,15 @@ function useHooks({
86267
86273
  selectedFeature: oe,
86268
86274
  camera: Ai,
86269
86275
  featureFlags: Zd,
86270
- isLayerDragging: Rf,
86276
+ isLayerDragging: Tf,
86271
86277
  timelineManagerRef: pi,
86272
86278
  cursor: Ee,
86273
86279
  cameraForceHorizontalRoll: Gd,
86274
- coreContextValue: If,
86280
+ coreContextValue: Pf,
86275
86281
  containerStyle: zf,
86276
86282
  handleLayerSelect: mt,
86277
- handleLayerDrag: Of,
86278
- handleLayerDrop: Gf,
86283
+ handleLayerDrag: Vf,
86284
+ handleLayerDrop: Af,
86279
86285
  handleLayerEdit: lf,
86280
86286
  handleCameraChange: Vd,
86281
86287
  handleInteractionModeChange: ef,
@@ -86283,7 +86289,7 @@ function useHooks({
86283
86289
  handleSketchTypeChange: Ef,
86284
86290
  handleLayerVisibility: cf,
86285
86291
  handleLayerLoad: mf,
86286
- handleLayerSelectWithRectStart: Vf,
86292
+ handleLayerSelectWithRectStart: If,
86287
86293
  handleLayerSelectWithRectMove: Xf,
86288
86294
  handleLayerSelectWithRectEnd: Xd
86289
86295
  };
@@ -86347,12 +86353,12 @@ const CoreVisualizer = memo$1(
86347
86353
  handleCameraChange: mf,
86348
86354
  handleInteractionModeChange: Sf,
86349
86355
  handleSketchPluginFeatureCreate: wf,
86350
- handleSketchTypeChange: Vf,
86351
- handleLayerVisibility: Lf,
86352
- handleLayerLoad: Pf,
86356
+ handleSketchTypeChange: If,
86357
+ handleLayerVisibility: Of,
86358
+ handleLayerLoad: Mf,
86353
86359
  handleLayerSelectWithRectStart: Xf,
86354
86360
  handleLayerSelectWithRectMove: Bf,
86355
- handleLayerSelectWithRectEnd: Tf
86361
+ handleLayerSelectWithRectEnd: kf
86356
86362
  } = useHooks(
86357
86363
  {
86358
86364
  camera: E,
@@ -86404,13 +86410,13 @@ const CoreVisualizer = memo$1(
86404
86410
  overrideInteractionMode: Sf,
86405
86411
  onSketchFeatureCreate: Gd,
86406
86412
  onSketchPluginFeatureCreate: wf,
86407
- onSketchTypeChange: Vf,
86413
+ onSketchTypeChange: If,
86408
86414
  onMount: Ai,
86409
- onLayerVisibility: Lf,
86410
- onLayerLoad: Pf,
86415
+ onLayerVisibility: Of,
86416
+ onLayerLoad: Mf,
86411
86417
  onLayerSelectWithRectStart: Xf,
86412
86418
  onLayerSelectWithRectMove: Bf,
86413
- onLayerSelectWithRectEnd: Tf
86419
+ onLayerSelectWithRectEnd: kf
86414
86420
  }
86415
86421
  ),
86416
86422
  /* @__PURE__ */ jsxRuntimeExports.jsx(coreContext.Provider, { value: lf, children: oe })