globe.gl 2.45.1 → 2.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/globe.gl.js +165 -37
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +4 -4
- package/package.json +5 -5
package/dist/globe.gl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 2.45.
|
|
1
|
+
// Version 2.45.2 globe.gl - https://github.com/vasturiano/globe.gl
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -65127,13 +65127,6 @@ void main() {
|
|
|
65127
65127
|
obj.children.forEach(_deallocate$1);
|
|
65128
65128
|
}
|
|
65129
65129
|
};
|
|
65130
|
-
var emptyObject$1 = function emptyObject(obj) {
|
|
65131
|
-
if (obj && obj.children) while (obj.children.length) {
|
|
65132
|
-
var childObj = obj.children[0];
|
|
65133
|
-
obj.remove(childObj);
|
|
65134
|
-
_deallocate$1(childObj);
|
|
65135
|
-
}
|
|
65136
|
-
};
|
|
65137
65130
|
|
|
65138
65131
|
function polar2Cartesian$3(lat, lng, r) {
|
|
65139
65132
|
var phi = (90 - lat) * Math.PI / 180;
|
|
@@ -65284,7 +65277,7 @@ void main() {
|
|
|
65284
65277
|
l.forEach(function (d) {
|
|
65285
65278
|
if (d.obj) {
|
|
65286
65279
|
_this.remove(d.obj);
|
|
65287
|
-
|
|
65280
|
+
_deallocate$1(d.obj);
|
|
65288
65281
|
delete d.obj;
|
|
65289
65282
|
}
|
|
65290
65283
|
});
|
|
@@ -65352,7 +65345,7 @@ void main() {
|
|
|
65352
65345
|
_classPrivateFieldGet2$2(_tilesMeta, this)[l] && _classPrivateFieldGet2$2(_tilesMeta, this)[l].forEach(function (d) {
|
|
65353
65346
|
if (d.obj) {
|
|
65354
65347
|
_this2.remove(d.obj);
|
|
65355
|
-
|
|
65348
|
+
_deallocate$1(d.obj);
|
|
65356
65349
|
delete d.obj;
|
|
65357
65350
|
}
|
|
65358
65351
|
});
|
|
@@ -69448,7 +69441,7 @@ void main() {
|
|
|
69448
69441
|
const splitter = 134217729;
|
|
69449
69442
|
const resulterrbound = (3 + 8 * epsilon$1) * epsilon$1;
|
|
69450
69443
|
|
|
69451
|
-
// fast_expansion_sum_zeroelim routine from
|
|
69444
|
+
// fast_expansion_sum_zeroelim routine from original code
|
|
69452
69445
|
function sum(elen, e, flen, f, h) {
|
|
69453
69446
|
let Q, Qnew, hh, bvirt;
|
|
69454
69447
|
let enow = e[0];
|
|
@@ -69713,8 +69706,19 @@ void main() {
|
|
|
69713
69706
|
const EPSILON$1 = Math.pow(2, -52);
|
|
69714
69707
|
const EDGE_STACK = new Uint32Array(512);
|
|
69715
69708
|
|
|
69709
|
+
/** @template {ArrayLike<number>} T */
|
|
69716
69710
|
class Delaunator {
|
|
69717
69711
|
|
|
69712
|
+
/**
|
|
69713
|
+
* Constructs a delaunay triangulation object given an array of points (`[x, y]` by default).
|
|
69714
|
+
* `getX` and `getY` are optional functions of the form `(point) => value` for custom point formats.
|
|
69715
|
+
*
|
|
69716
|
+
* @template P
|
|
69717
|
+
* @param {P[]} points
|
|
69718
|
+
* @param {(p: P) => number} [getX]
|
|
69719
|
+
* @param {(p: P) => number} [getY]
|
|
69720
|
+
*/
|
|
69721
|
+
// @ts-expect-error TS2322
|
|
69718
69722
|
static from(points, getX = defaultGetX, getY = defaultGetY) {
|
|
69719
69723
|
const n = points.length;
|
|
69720
69724
|
const coords = new Float64Array(n * 2);
|
|
@@ -69728,6 +69732,12 @@ void main() {
|
|
|
69728
69732
|
return new Delaunator(coords);
|
|
69729
69733
|
}
|
|
69730
69734
|
|
|
69735
|
+
/**
|
|
69736
|
+
* Constructs a delaunay triangulation object given an array of point coordinates of the form:
|
|
69737
|
+
* `[x0, y0, x1, y1, ...]` (use a typed array for best performance). Duplicate points are skipped.
|
|
69738
|
+
*
|
|
69739
|
+
* @param {T} coords
|
|
69740
|
+
*/
|
|
69731
69741
|
constructor(coords) {
|
|
69732
69742
|
const n = coords.length >> 1;
|
|
69733
69743
|
if (n > 0 && typeof coords[0] !== 'number') throw new Error('Expected coords to contain numbers.');
|
|
@@ -69736,23 +69746,44 @@ void main() {
|
|
|
69736
69746
|
|
|
69737
69747
|
// arrays that will store the triangulation graph
|
|
69738
69748
|
const maxTriangles = Math.max(2 * n - 5, 0);
|
|
69739
|
-
this._triangles = new Uint32Array(maxTriangles * 3);
|
|
69740
|
-
this._halfedges = new Int32Array(maxTriangles * 3);
|
|
69749
|
+
/** @private */ this._triangles = new Uint32Array(maxTriangles * 3);
|
|
69750
|
+
/** @private */ this._halfedges = new Int32Array(maxTriangles * 3);
|
|
69741
69751
|
|
|
69742
69752
|
// temporary arrays for tracking the edges of the advancing convex hull
|
|
69743
|
-
this._hashSize = Math.ceil(Math.sqrt(n));
|
|
69744
|
-
this._hullPrev = new Uint32Array(n); // edge to prev edge
|
|
69745
|
-
this._hullNext = new Uint32Array(n); // edge to next edge
|
|
69746
|
-
this._hullTri = new Uint32Array(n); // edge to adjacent triangle
|
|
69747
|
-
this._hullHash = new Int32Array(this._hashSize); // angular edge hash
|
|
69753
|
+
/** @private */ this._hashSize = Math.ceil(Math.sqrt(n));
|
|
69754
|
+
/** @private */ this._hullPrev = new Uint32Array(n); // edge to prev edge
|
|
69755
|
+
/** @private */ this._hullNext = new Uint32Array(n); // edge to next edge
|
|
69756
|
+
/** @private */ this._hullTri = new Uint32Array(n); // edge to adjacent triangle
|
|
69757
|
+
/** @private */ this._hullHash = new Int32Array(this._hashSize); // angular edge hash
|
|
69748
69758
|
|
|
69749
69759
|
// temporary arrays for sorting points
|
|
69750
|
-
this._ids = new Uint32Array(n);
|
|
69751
|
-
this._dists = new Float64Array(n);
|
|
69760
|
+
/** @private */ this._ids = new Uint32Array(n);
|
|
69761
|
+
/** @private */ this._dists = new Float64Array(n);
|
|
69762
|
+
|
|
69763
|
+
/** @private */ this.trianglesLen = 0;
|
|
69764
|
+
/** @private */ this._cx = 0;
|
|
69765
|
+
/** @private */ this._cy = 0;
|
|
69766
|
+
/** @private */ this._hullStart = 0;
|
|
69767
|
+
|
|
69768
|
+
|
|
69769
|
+
/** A `Uint32Array` array of indices that reference points on the convex hull of the input data, counter-clockwise. */
|
|
69770
|
+
this.hull = this._triangles;
|
|
69771
|
+
/** A `Uint32Array` array of triangle vertex indices (each group of three numbers forms a triangle). All triangles are directed counterclockwise. */
|
|
69772
|
+
this.triangles = this._triangles;
|
|
69773
|
+
/**
|
|
69774
|
+
* A `Int32Array` array of triangle half-edge indices that allows you to traverse the triangulation.
|
|
69775
|
+
* `i`-th half-edge in the array corresponds to vertex `triangles[i]` the half-edge is coming from.
|
|
69776
|
+
* `halfedges[i]` is the index of a twin half-edge in an adjacent triangle (or `-1` for outer half-edges on the convex hull).
|
|
69777
|
+
*/
|
|
69778
|
+
this.halfedges = this._halfedges;
|
|
69752
69779
|
|
|
69753
69780
|
this.update();
|
|
69754
69781
|
}
|
|
69755
69782
|
|
|
69783
|
+
/**
|
|
69784
|
+
* Updates the triangulation if you modified `delaunay.coords` values in place, avoiding expensive memory allocations.
|
|
69785
|
+
* Useful for iterative relaxation algorithms such as Lloyd's.
|
|
69786
|
+
*/
|
|
69756
69787
|
update() {
|
|
69757
69788
|
const {coords, _hullPrev: hullPrev, _hullNext: hullNext, _hullTri: hullTri, _hullHash: hullHash} = this;
|
|
69758
69789
|
const n = coords.length >> 1;
|
|
@@ -69775,7 +69806,7 @@ void main() {
|
|
|
69775
69806
|
const cx = (minX + maxX) / 2;
|
|
69776
69807
|
const cy = (minY + maxY) / 2;
|
|
69777
69808
|
|
|
69778
|
-
let i0, i1, i2;
|
|
69809
|
+
let i0 = 0, i1 = 0, i2 = 0;
|
|
69779
69810
|
|
|
69780
69811
|
// pick a seed point close to the center
|
|
69781
69812
|
for (let i = 0, minDist = Infinity; i < n; i++) {
|
|
@@ -69833,7 +69864,7 @@ void main() {
|
|
|
69833
69864
|
}
|
|
69834
69865
|
this.hull = hull.subarray(0, j);
|
|
69835
69866
|
this.triangles = new Uint32Array(0);
|
|
69836
|
-
this.halfedges = new
|
|
69867
|
+
this.halfedges = new Int32Array(0);
|
|
69837
69868
|
return;
|
|
69838
69869
|
}
|
|
69839
69870
|
|
|
@@ -69881,7 +69912,7 @@ void main() {
|
|
|
69881
69912
|
this.trianglesLen = 0;
|
|
69882
69913
|
this._addTriangle(i0, i1, i2, -1, -1, -1);
|
|
69883
69914
|
|
|
69884
|
-
for (let k = 0, xp, yp; k < this._ids.length; k++) {
|
|
69915
|
+
for (let k = 0, xp = 0, yp = 0; k < this._ids.length; k++) {
|
|
69885
69916
|
const i = this._ids[k];
|
|
69886
69917
|
const x = coords[2 * i];
|
|
69887
69918
|
const y = coords[2 * i + 1];
|
|
@@ -69963,10 +69994,23 @@ void main() {
|
|
|
69963
69994
|
this.halfedges = this._halfedges.subarray(0, this.trianglesLen);
|
|
69964
69995
|
}
|
|
69965
69996
|
|
|
69997
|
+
/**
|
|
69998
|
+
* Calculate an angle-based key for the edge hash used for advancing convex hull.
|
|
69999
|
+
*
|
|
70000
|
+
* @param {number} x
|
|
70001
|
+
* @param {number} y
|
|
70002
|
+
* @private
|
|
70003
|
+
*/
|
|
69966
70004
|
_hashKey(x, y) {
|
|
69967
70005
|
return Math.floor(pseudoAngle(x - this._cx, y - this._cy) * this._hashSize) % this._hashSize;
|
|
69968
70006
|
}
|
|
69969
70007
|
|
|
70008
|
+
/**
|
|
70009
|
+
* Flip an edge in a pair of triangles if it doesn't satisfy the Delaunay condition.
|
|
70010
|
+
*
|
|
70011
|
+
* @param {number} a
|
|
70012
|
+
* @private
|
|
70013
|
+
*/
|
|
69970
70014
|
_legalize(a) {
|
|
69971
70015
|
const {_triangles: triangles, _halfedges: halfedges, coords} = this;
|
|
69972
70016
|
|
|
@@ -70022,7 +70066,7 @@ void main() {
|
|
|
70022
70066
|
|
|
70023
70067
|
const hbl = halfedges[bl];
|
|
70024
70068
|
|
|
70025
|
-
// edge swapped on the other side of the hull (rare); fix the
|
|
70069
|
+
// edge swapped on the other side of the hull (rare); fix the half-edge reference
|
|
70026
70070
|
if (hbl === -1) {
|
|
70027
70071
|
let e = this._hullStart;
|
|
70028
70072
|
do {
|
|
@@ -70052,12 +70096,28 @@ void main() {
|
|
|
70052
70096
|
return ar;
|
|
70053
70097
|
}
|
|
70054
70098
|
|
|
70099
|
+
/**
|
|
70100
|
+
* Link two half-edges to each other.
|
|
70101
|
+
* @param {number} a
|
|
70102
|
+
* @param {number} b
|
|
70103
|
+
* @private
|
|
70104
|
+
*/
|
|
70055
70105
|
_link(a, b) {
|
|
70056
70106
|
this._halfedges[a] = b;
|
|
70057
70107
|
if (b !== -1) this._halfedges[b] = a;
|
|
70058
70108
|
}
|
|
70059
70109
|
|
|
70060
|
-
|
|
70110
|
+
/**
|
|
70111
|
+
* Add a new triangle given vertex indices and adjacent half-edge ids.
|
|
70112
|
+
*
|
|
70113
|
+
* @param {number} i0
|
|
70114
|
+
* @param {number} i1
|
|
70115
|
+
* @param {number} i2
|
|
70116
|
+
* @param {number} a
|
|
70117
|
+
* @param {number} b
|
|
70118
|
+
* @param {number} c
|
|
70119
|
+
* @private
|
|
70120
|
+
*/
|
|
70061
70121
|
_addTriangle(i0, i1, i2, a, b, c) {
|
|
70062
70122
|
const t = this.trianglesLen;
|
|
70063
70123
|
|
|
@@ -70075,18 +70135,43 @@ void main() {
|
|
|
70075
70135
|
}
|
|
70076
70136
|
}
|
|
70077
70137
|
|
|
70078
|
-
|
|
70138
|
+
/**
|
|
70139
|
+
* Monotonically increases with real angle, but doesn't need expensive trigonometry.
|
|
70140
|
+
*
|
|
70141
|
+
* @param {number} dx
|
|
70142
|
+
* @param {number} dy
|
|
70143
|
+
*/
|
|
70079
70144
|
function pseudoAngle(dx, dy) {
|
|
70080
70145
|
const p = dx / (Math.abs(dx) + Math.abs(dy));
|
|
70081
70146
|
return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]
|
|
70082
70147
|
}
|
|
70083
70148
|
|
|
70149
|
+
/**
|
|
70150
|
+
* Squared distance between two points.
|
|
70151
|
+
*
|
|
70152
|
+
* @param {number} ax
|
|
70153
|
+
* @param {number} ay
|
|
70154
|
+
* @param {number} bx
|
|
70155
|
+
* @param {number} by
|
|
70156
|
+
*/
|
|
70084
70157
|
function dist(ax, ay, bx, by) {
|
|
70085
70158
|
const dx = ax - bx;
|
|
70086
70159
|
const dy = ay - by;
|
|
70087
70160
|
return dx * dx + dy * dy;
|
|
70088
70161
|
}
|
|
70089
70162
|
|
|
70163
|
+
/**
|
|
70164
|
+
* Check whether point P is inside a circle formed by points A, B, C.
|
|
70165
|
+
*
|
|
70166
|
+
* @param {number} ax
|
|
70167
|
+
* @param {number} ay
|
|
70168
|
+
* @param {number} bx
|
|
70169
|
+
* @param {number} by
|
|
70170
|
+
* @param {number} cx
|
|
70171
|
+
* @param {number} cy
|
|
70172
|
+
* @param {number} px
|
|
70173
|
+
* @param {number} py
|
|
70174
|
+
*/
|
|
70090
70175
|
function inCircle(ax, ay, bx, by, cx, cy, px, py) {
|
|
70091
70176
|
const dx = ax - px;
|
|
70092
70177
|
const dy = ay - py;
|
|
@@ -70104,6 +70189,16 @@ void main() {
|
|
|
70104
70189
|
ap * (ex * fy - ey * fx) < 0;
|
|
70105
70190
|
}
|
|
70106
70191
|
|
|
70192
|
+
/**
|
|
70193
|
+
* Squared radius of the circle formed by points A, B, C.
|
|
70194
|
+
*
|
|
70195
|
+
* @param {number} ax
|
|
70196
|
+
* @param {number} ay
|
|
70197
|
+
* @param {number} bx
|
|
70198
|
+
* @param {number} by
|
|
70199
|
+
* @param {number} cx
|
|
70200
|
+
* @param {number} cy
|
|
70201
|
+
*/
|
|
70107
70202
|
function circumradius(ax, ay, bx, by, cx, cy) {
|
|
70108
70203
|
const dx = bx - ax;
|
|
70109
70204
|
const dy = by - ay;
|
|
@@ -70120,6 +70215,16 @@ void main() {
|
|
|
70120
70215
|
return x * x + y * y;
|
|
70121
70216
|
}
|
|
70122
70217
|
|
|
70218
|
+
/**
|
|
70219
|
+
* Get coordinates of a circumcenter for points A, B, C.
|
|
70220
|
+
*
|
|
70221
|
+
* @param {number} ax
|
|
70222
|
+
* @param {number} ay
|
|
70223
|
+
* @param {number} bx
|
|
70224
|
+
* @param {number} by
|
|
70225
|
+
* @param {number} cx
|
|
70226
|
+
* @param {number} cy
|
|
70227
|
+
*/
|
|
70123
70228
|
function circumcenter(ax, ay, bx, by, cx, cy) {
|
|
70124
70229
|
const dx = bx - ax;
|
|
70125
70230
|
const dy = by - ay;
|
|
@@ -70136,6 +70241,14 @@ void main() {
|
|
|
70136
70241
|
return {x, y};
|
|
70137
70242
|
}
|
|
70138
70243
|
|
|
70244
|
+
/**
|
|
70245
|
+
* Sort points by distance via an array of point indices and an array of calculated distances.
|
|
70246
|
+
*
|
|
70247
|
+
* @param {Uint32Array} ids
|
|
70248
|
+
* @param {Float64Array} dists
|
|
70249
|
+
* @param {number} left
|
|
70250
|
+
* @param {number} right
|
|
70251
|
+
*/
|
|
70139
70252
|
function quicksort(ids, dists, left, right) {
|
|
70140
70253
|
if (right - left <= 20) {
|
|
70141
70254
|
for (let i = left + 1; i <= right; i++) {
|
|
@@ -70175,15 +70288,22 @@ void main() {
|
|
|
70175
70288
|
}
|
|
70176
70289
|
}
|
|
70177
70290
|
|
|
70291
|
+
/**
|
|
70292
|
+
* @param {Uint32Array} arr
|
|
70293
|
+
* @param {number} i
|
|
70294
|
+
* @param {number} j
|
|
70295
|
+
*/
|
|
70178
70296
|
function swap(arr, i, j) {
|
|
70179
70297
|
const tmp = arr[i];
|
|
70180
70298
|
arr[i] = arr[j];
|
|
70181
70299
|
arr[j] = tmp;
|
|
70182
70300
|
}
|
|
70183
70301
|
|
|
70302
|
+
/** @param {[number, number]} p */
|
|
70184
70303
|
function defaultGetX(p) {
|
|
70185
70304
|
return p[0];
|
|
70186
70305
|
}
|
|
70306
|
+
/** @param {[number, number]} p */
|
|
70187
70307
|
function defaultGetY(p) {
|
|
70188
70308
|
return p[1];
|
|
70189
70309
|
}
|
|
@@ -169685,9 +169805,9 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
169685
169805
|
state.tileEngine.clearTiles();
|
|
169686
169806
|
},
|
|
169687
169807
|
_destructor: function _destructor(state) {
|
|
169688
|
-
|
|
169689
|
-
|
|
169690
|
-
|
|
169808
|
+
_deallocate(state.globeObj);
|
|
169809
|
+
_deallocate(state.tileEngine);
|
|
169810
|
+
_deallocate(state.graticulesObj);
|
|
169691
169811
|
}
|
|
169692
169812
|
},
|
|
169693
169813
|
stateInit: function stateInit() {
|
|
@@ -169750,7 +169870,9 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
169750
169870
|
!globeMaterial.color && (globeMaterial.color = new THREE$h.Color(0x000000));
|
|
169751
169871
|
} else {
|
|
169752
169872
|
new THREE$h.TextureLoader().load(state.globeImageUrl, function (texture) {
|
|
169873
|
+
var _globeMaterial$map;
|
|
169753
169874
|
texture.colorSpace = THREE$h.SRGBColorSpace;
|
|
169875
|
+
(_globeMaterial$map = globeMaterial.map) === null || _globeMaterial$map === void 0 || _globeMaterial$map.dispose(); // GC previous texture
|
|
169754
169876
|
globeMaterial.map = texture;
|
|
169755
169877
|
globeMaterial.color = null;
|
|
169756
169878
|
globeMaterial.needsUpdate = true;
|
|
@@ -169766,6 +169888,8 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
169766
169888
|
globeMaterial.needsUpdate = true;
|
|
169767
169889
|
} else {
|
|
169768
169890
|
state.bumpImageUrl && new THREE$h.TextureLoader().load(state.bumpImageUrl, function (texture) {
|
|
169891
|
+
var _globeMaterial$bumpMa;
|
|
169892
|
+
(_globeMaterial$bumpMa = globeMaterial.bumpMap) === null || _globeMaterial$bumpMa === void 0 || _globeMaterial$bumpMa.dispose(); // GC previous texture
|
|
169769
169893
|
globeMaterial.bumpMap = texture;
|
|
169770
169894
|
globeMaterial.needsUpdate = true;
|
|
169771
169895
|
});
|
|
@@ -169775,7 +169899,7 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
169775
169899
|
if (state.atmosphereObj) {
|
|
169776
169900
|
// recycle previous atmosphere object
|
|
169777
169901
|
state.scene.remove(state.atmosphereObj);
|
|
169778
|
-
|
|
169902
|
+
_deallocate(state.atmosphereObj);
|
|
169779
169903
|
}
|
|
169780
169904
|
if (state.atmosphereColor && state.atmosphereAltitude) {
|
|
169781
169905
|
var obj = state.atmosphereObj = new GlowMesh(state.globeObj.geometry, {
|
|
@@ -169910,7 +170034,7 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
169910
170034
|
fn(obj, dId);
|
|
169911
170035
|
var removeFn = function removeFn() {
|
|
169912
170036
|
_this3.scene.remove(obj);
|
|
169913
|
-
|
|
170037
|
+
_deallocate(obj);
|
|
169914
170038
|
delete d[_classPrivateFieldGet2(_objBindAttr, _this3)];
|
|
169915
170039
|
};
|
|
169916
170040
|
_classPrivateFieldGet2(_removeDelay, _this3) ? setTimeout(removeFn, _classPrivateFieldGet2(_removeDelay, _this3)) : removeFn();
|
|
@@ -179944,7 +180068,7 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
179944
180068
|
return [event.pageX, event.pageY];
|
|
179945
180069
|
}
|
|
179946
180070
|
|
|
179947
|
-
var n,l,u,t,i,r,o,e,f,c,s,a,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function _(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) void 0===e[o]&&(e[o]=l.defaultProps[o]);return m(l,e,i,r,null)}function m(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function k(n){return n.children}function x(n,l){this.props=n,this.context=l;}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?S(n):null}function C(n){if(n.__P&&n.__d){var u=n.__v,t=u.__e,i=[],r=[],o=w({},u);o.__v=u.__v+1,l.vnode&&l.vnode(o),z(n.__P,o,u,n.__n,n.__P.namespaceURI,32&u.__u?[t]:null,i,null==t?S(u):t,!!(32&u.__u),r),o.__v=u.__v,o.__.__k[o.__i]=o,V(i,o,r),u.__e=u.__=null,o.__e!=t&&M(o);}}function M(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),M(n)}function $(n){(!n.__d&&(n.__d=true)&&i.push(n)&&!I.__r++||r!=l.debounceRendering)&&((r=l.debounceRendering)||o)(I);}function I(){try{for(var n,l=1;i.length;)i.length>l&&i.sort(e),n=i.shift(),l=i.length,C(n);}finally{i.length=I.__r=0;}}function P(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,d,w,g,_,m=t&&t.__k||v,b=l.length;for(f=A(u,l,m,f,b),a=0;a<b;a++)null!=(y=u.__k[a])&&(h=-1!=y.__i&&m[y.__i]||p,y.__i=a,g=z(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&D(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),(_=!!(4&y.__u))||h.__k===y.__k?f=H(y,f,n,_):"function"==typeof y.type&&void 0!==g?f=g:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function A(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=n.__k[r]=m(null,o,null,null,null):d(o)?o=n.__k[r]=m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[r]=m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[r]=o,f=r+h,o.__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=T(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),E(e,e));return t}function H(n,l,u,t){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=H(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=S(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function T(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==e||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return -1}function j(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px";}function F(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||j(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||j(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function O(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function z(n,u,t,i,r,o,e,f,c,s){var a,h,p,y,_,m,b,S,C,M,$,I,A,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof T)try{if(S=u.props,C=T.prototype&&T.prototype.render,M=(a=T.contextType)&&i[a.__c],$=a?M?M.props.value:a.__:i,t.__c?b=(h=u.__c=t.__c).__=h.__E:(C?u.__c=h=new T(S,$):(u.__c=h=new x(S,$),h.constructor=T,h.render=G),M&&M.sub(h),h.state||(h.state={}),h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,T.getDerivedStateFromProps(S,h.__s))),y=h.props,_=h.state,h.__v=u,p)C&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(C&&null==T.getDerivedStateFromProps&&S!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(S,$),u.__v==t.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(S,h.__s,$)){u.__v!=t.__v&&(h.props=S,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),v.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(S,h.__s,$),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,m);});}if(h.context=$,h.props=S,h.__P=n,h.__e=!1,I=l.__r,A=0,C)h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),v.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(m=h.getSnapshotBeforeUpdate(y,_)),H=null!=a&&a.type===k&&null==a.key?q(a.props.children):a,f=P(n,d(H)?H:[H],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),b&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else {for(L=o.length;L--;)g(o[L]);N(u);}else u.__e=t.__e,u.__k=t.__k,n.then||N(u);l.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=B(t.__e,u,t,i,r,o,e,c,s);return (a=l.diffed)&&a(u),128&u.__u?void 0:f}function N(n){n&&(n.__c&&(n.__c.__e=true),n.__k&&n.__k.some(N));}function V(n,u,t){for(var i=0;i<t.length;i++)D(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function q(n){return "object"!=typeof n||null==n||n.__b>0?n:d(n)?n.map(q):w({},n)}function B(u,t,i,r,o,e,f,c,s){var a,h,v,y,w,_,m,b=i.props||p,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=false),e=null;}if(null==x)b===k||c&&u.data==k||(u.data=k);else {if(e=e&&n.call(u.childNodes),!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)w=b[a],"dangerouslySetInnerHTML"==a?v=w:"children"==a||a in k||"value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k||F(u,a,null,w,o);for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||F(u,a,w,b[a],o);if(h)c||v&&(h.__html==v.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),P("template"==t.type?u.content:u,d(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&F(u,a,_,b[a],o),a="checked",null!=m&&m!=u[a]&&F(u,a,m,b[a],o));}return u}function D(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l.__e(n,t);}}function E(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||D(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&E(i[r],u,t||"function"!=typeof n.type);t||g(n.__e),n.__c=n.__=n.__e=void 0;}function G(n,l,u){return this.constructor(n,u)}function J(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r="function"=="undefined")?null:t.__k,e=[],f=[],z(t,u=(t).__k=_(k,null,[u]),o||p,p,t.namespaceURI,o?null:t.firstChild?n.call(t.childNodes):null,e,o?o.__e:t.firstChild,r,f),V(e,u,f);}function Q(l,u,t){var i,r,o,e,f=w({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=void 0===u[o]&&null!=e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,r||l.ref,null)}n=v.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u=0,t=function(n){return null!=n&&void 0===n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),$(this));},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),$(this));},x.prototype.render=k,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},I.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=O(false),a=O(true);
|
|
180071
|
+
var n,l,u,t,i,r,o,e,f,c,s,a,h,p,v,d={},w=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function m(n,l){for(var u in l)n[u]=l[u];return n}function b(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function k(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) void 0===e[o]&&(e[o]=l.defaultProps[o]);return x(l,e,i,r,null)}function x(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function S(n){return n.children}function C(n,l){this.props=n,this.context=l;}function $(n,l){if(null==l)return n.__?$(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?$(n):null}function I(n){if(n.__P&&n.__d){var u=n.__v,t=u.__e,i=[],r=[],o=m({},u);o.__v=u.__v+1,l.vnode&&l.vnode(o),q(n.__P,o,u,n.__n,n.__P.namespaceURI,32&u.__u?[t]:null,i,null==t?$(u):t,!!(32&u.__u),r),o.__v=u.__v,o.__.__k[o.__i]=o,D(i,o,r),u.__e=u.__=null,o.__e!=t&&P(o);}}function P(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),P(n)}function A(n){(!n.__d&&(n.__d=true)&&i.push(n)&&!H.__r++||r!=l.debounceRendering)&&((r=l.debounceRendering)||o)(H);}function H(){try{for(var n,l=1;i.length;)i.length>l&&i.sort(e),n=i.shift(),l=i.length,I(n);}finally{i.length=H.__r=0;}}function L(n,l,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,_,g,m=t&&t.__k||w,b=l.length;for(f=T(u,l,m,f,b),a=0;a<b;a++)null!=(p=u.__k[a])&&(h=-1!=p.__i&&m[p.__i]||d,p.__i=a,_=q(n,p,h,i,r,o,e,f,c,s),v=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&J(h.ref,null,p),s.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),(g=!!(4&p.__u))||h.__k===p.__k?(f=j(p,f,n,g),g&&h.__e&&(h.__e=null)):"function"==typeof p.type&&void 0!==_?f=_:v&&(f=v.nextSibling),p.__u&=-7);return u.__e=y,f}function T(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=n.__k[r]=x(null,o,null,null,null):g(o)?o=n.__k[r]=x(S,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[r]=x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[r]=o,f=r+h,o.__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=O(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=$(e)),K(e,e));return t}function j(n,l,u,t){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=j(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=$(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function O(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==e||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return -1}function z(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||_.test(l)?u:u+"px";}function N(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||z(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||z(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(a,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u[s]=t[s]:(u[s]=h,n.addEventListener(l,r?v:p,r)):n.removeEventListener(l,r?v:p,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function V(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u[c])u[c]=h++;else if(u[c]<t[s])return;return t(l.event?l.event(u):u)}}}function q(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,d,_,k,x,M,$,I,P,A,H,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof T)try{if(k=u.props,x=T.prototype&&T.prototype.render,M=(a=T.contextType)&&i[a.__c],$=a?M?M.props.value:a.__:i,t.__c?_=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(k,$):(u.__c=h=new C(k,$),h.constructor=T,h.render=Q),M&&M.sub(h),h.state||(h.state={}),h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=m({},h.__s)),m(h.__s,T.getDerivedStateFromProps(k,h.__s))),v=h.props,y=h.state,h.__v=u,p)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(x&&null==T.getDerivedStateFromProps&&k!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,$),u.__v==t.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,$)){u.__v!=t.__v&&(h.props=k,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),w.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,$),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,d);});}if(h.context=$,h.props=k,h.__P=n,h.__e=!1,I=l.__r,P=0,x)h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),w.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(i=m(m({},i),h.getChildContext())),x&&!p&&null!=h.getSnapshotBeforeUpdate&&(d=h.getSnapshotBeforeUpdate(v,y)),A=null!=a&&a.type===S&&null==a.key?E(a.props.children):a,f=L(n,g(A)?A:[A],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),_&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else {for(H=o.length;H--;)b(o[H]);B(u);}else u.__e=t.__e,u.__k=t.__k,n.then||B(u);l.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=G(t.__e,u,t,i,r,o,e,c,s);return (a=l.diffed)&&a(u),128&u.__u?void 0:f}function B(n){n&&(n.__c&&(n.__c.__e=true),n.__k&&n.__k.some(B));}function D(n,u,t){for(var i=0;i<t.length;i++)J(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function E(n){return "object"!=typeof n||null==n||n.__b>0?n:g(n)?n.map(E):m({},n)}function G(u,t,i,r,o,e,f,c,s){var a,h,p,v,y,w,_,m=i.props||d,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((y=e[a])&&"setAttribute"in y==!!x&&(x?y.localName==x:3==y.nodeType)){u=y,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=false),e=null;}if(null==x)m===k||c&&u.data==k||(u.data=k);else {if(e=e&&n.call(u.childNodes),!c&&null!=e)for(m={},a=0;a<u.attributes.length;a++)m[(y=u.attributes[a]).name]=y.value;for(a in m)y=m[a],"dangerouslySetInnerHTML"==a?p=y:"children"==a||a in k||"value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k||N(u,a,null,y,o);for(a in k)y=k[a],"children"==a?v=y:"dangerouslySetInnerHTML"==a?h=y:"value"==a?w=y:"checked"==a?_=y:c&&"function"!=typeof y||m[a]===y||N(u,a,y,m[a],o);if(h)c||p&&(h.__html==p.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(p&&(u.innerHTML=""),L("template"==t.type?u.content:u,g(v)?v:[v],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&$(i,0),c,s),null!=e)for(a=e.length;a--;)b(e[a]);c||(a="value","progress"==x&&null==w?u.removeAttribute("value"):null!=w&&(w!==u[a]||"progress"==x&&!w||"option"==x&&w!=m[a])&&N(u,a,w,m[a],o),a="checked",null!=_&&_!=u[a]&&N(u,a,_,m[a],o));}return u}function J(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l.__e(n,t);}}function K(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||J(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&K(i[r],u,t||"function"!=typeof n.type);t||b(n.__e),n.__c=n.__=n.__e=void 0;}function Q(n,l,u){return this.constructor(n,u)}function R(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r="function"=="undefined")?null:t.__k,e=[],f=[],q(t,u=(t).__k=k(S,null,[u]),o||d,d,t.namespaceURI,o?null:t.firstChild?n.call(t.childNodes):null,e,o?o.__e:t.firstChild,r,f),D(e,u,f);}function W(l,u,t){var i,r,o,e,f=m({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=void 0===u[o]&&null!=e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),x(l.type,f,i||l.key,r||l.ref,null)}n=w.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u=0,t=function(n){return null!=n&&void 0===n.constructor},C.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=m({},this.state),"function"==typeof n&&(n=n(m({},u),this.props)),n&&m(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),A(this));},C.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),A(this));},C.prototype.render=S,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},H.__r=0,f=Math.random().toString(8),c="__d"+f,s="__a"+f,a=/(PointerCapture)$|Capture$/i,h=0,p=V(false),v=V(true);
|
|
179948
180072
|
|
|
179949
180073
|
function _arrayLikeToArray$1(r, a) {
|
|
179950
180074
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -180047,7 +180171,7 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
180047
180171
|
var _reactElement2VNode = function reactElement2VNode(el) {
|
|
180048
180172
|
// Among other things, react VNodes (and all its children) need to have constructor: undefined attributes in order to be recognised, cloneElement (applied recursively) does the necessary conversion
|
|
180049
180173
|
if (!(_typeof(el) === 'object')) return el;
|
|
180050
|
-
var res =
|
|
180174
|
+
var res = W(el);
|
|
180051
180175
|
if (res.props) {
|
|
180052
180176
|
var _res$props;
|
|
180053
180177
|
res.props = _objectSpread2({}, res.props);
|
|
@@ -180058,11 +180182,11 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
180058
180182
|
return res;
|
|
180059
180183
|
};
|
|
180060
180184
|
var isReactRenderable = function isReactRenderable(o) {
|
|
180061
|
-
return t(
|
|
180185
|
+
return t(W(o));
|
|
180062
180186
|
};
|
|
180063
180187
|
var render = function render(jsx, domEl) {
|
|
180064
180188
|
delete domEl.__k; // Wipe traces of previous preact renders
|
|
180065
|
-
|
|
180189
|
+
R(_reactElement2VNode(jsx), domEl);
|
|
180066
180190
|
};
|
|
180067
180191
|
|
|
180068
180192
|
function styleInject$1(css, ref) {
|
|
@@ -180448,10 +180572,14 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
180448
180572
|
} else {
|
|
180449
180573
|
var camPos = Object.assign({}, camera.position);
|
|
180450
180574
|
var camLookAt = getLookAt();
|
|
180451
|
-
state.tweenGroup.add(new Tween(camPos).to(finalPos, transitionDuration).easing(Easing.Quadratic.Out).onUpdate(setCameraPos).
|
|
180575
|
+
state.tweenGroup.add(new Tween(camPos).to(finalPos, transitionDuration).easing(Easing.Quadratic.Out).onUpdate(setCameraPos).onComplete(function () {
|
|
180576
|
+
state.tweenGroup.remove(this);
|
|
180577
|
+
}).start());
|
|
180452
180578
|
|
|
180453
180579
|
// Face direction in 1/3rd of time
|
|
180454
|
-
state.tweenGroup.add(new Tween(camLookAt).to(finalLookAt, transitionDuration / 3).easing(Easing.Quadratic.Out).onUpdate(setLookAt).
|
|
180580
|
+
state.tweenGroup.add(new Tween(camLookAt).to(finalLookAt, transitionDuration / 3).easing(Easing.Quadratic.Out).onUpdate(setLookAt).onComplete(function () {
|
|
180581
|
+
state.tweenGroup.remove(this);
|
|
180582
|
+
}).start());
|
|
180455
180583
|
}
|
|
180456
180584
|
return this;
|
|
180457
180585
|
}
|